| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 | 
							- (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 lM(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 vr={},Ld=[],Ln=()=>{},aX=()=>!1,iX=/^on[^a-z]/,j1=e=>iX.test(e),uM=e=>e.startsWith("onUpdate:"),Or=Object.assign,cM=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},oX=Object.prototype.hasOwnProperty,ln=(e,t)=>oX.call(e,t),st=Array.isArray,Rd=e=>im(e)==="[object Map]",Y1=e=>im(e)==="[object Set]",cf=e=>im(e)==="[object Date]",kt=e=>typeof e=="function",At=e=>typeof e=="string",jp=e=>typeof e=="symbol",Qt=e=>e!==null&&typeof e=="object",Yp=e=>Qt(e)&&kt(e.then)&&kt(e.catch),V5=Object.prototype.toString,im=e=>V5.call(e),M0=e=>im(e).slice(8,-1),Sb=e=>im(e)==="[object Object]",fM=e=>At(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,A0=lM(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),q1=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},sX=/-(\w)/g,Ki=q1(e=>e.replace(sX,(t,n)=>n?n.toUpperCase():"")),lX=/\B([A-Z])/g,ku=q1(e=>e.replace(lX,"-$1").toLowerCase()),om=q1(e=>e.charAt(0).toUpperCase()+e.slice(1)),E0=q1(e=>e?`on${om(e)}`:""),Zd=(e,t)=>!Object.is(e,t),I0=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Cb=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Zx=e=>{const t=parseFloat(e);return isNaN(t)?e:t},uX=e=>{const t=At(e)?Number(e):NaN;return isNaN(t)?e:t};let eP;const Qx=()=>eP||(eP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ft(e){if(st(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=At(r)?hX(r):ft(r);if(a)for(const i in a)t[i]=a[i]}return t}else{if(At(e))return e;if(Qt(e))return e}}const cX=/;(?![^(]*\))/g,fX=/:([^]+)/,dX=/\/\*[^]*?\*\//g;function hX(e){const t={};return e.replace(dX,"").split(cX).forEach(n=>{if(n){const r=n.split(fX);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function W(e){let t="";if(At(e))t=e;else if(st(e))for(let n=0;n<e.length;n++){const r=W(e[n]);r&&(t+=r+" ")}else if(Qt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function _o(e){if(!e)return null;let{class:t,style:n}=e;return t&&!At(t)&&(e.class=W(t)),n&&(e.style=ft(n)),e}const vX="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",pX=lM(vX);function F5(e){return!!e||e===""}function gX(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Qd(e[r],t[r]);return n}function Qd(e,t){if(e===t)return!0;let n=cf(e),r=cf(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=jp(e),r=jp(t),n||r)return e===t;if(n=st(e),r=st(t),n||r)return n&&r?gX(e,t):!1;if(n=Qt(e),r=Qt(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||!Qd(e[o],t[o]))return!1}}return String(e)===String(t)}function z5(e,t){return e.findIndex(n=>Qd(n,t))}const Ke=e=>At(e)?e:e==null?"":st(e)||Qt(e)&&(e.toString===V5||!kt(e.toString))?JSON.stringify(e,H5,2):String(e),H5=(e,t)=>t&&t.__v_isRef?H5(e,t.value):Rd(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:Y1(t)?{[`Set(${t.size})`]:[...t.values()]}:Qt(t)&&!st(t)&&!Sb(t)?String(t):t;let fi;class W5{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=fi,!t&&fi&&(this.index=(fi.scopes||(fi.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=fi;try{return fi=this,t()}finally{fi=n}}}on(){fi=this}off(){fi=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 G5(e){return new W5(e)}function mX(e,t=fi){t&&t.active&&t.effects.push(e)}function K5(){return fi}function U5(e){fi&&fi.cleanups.push(e)}const dM=e=>{const t=new Set(e);return t.w=0,t.n=0,t},j5=e=>(e.w&fu)>0,Y5=e=>(e.n&fu)>0,yX=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=fu},bX=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const a=t[r];j5(a)&&!Y5(a)?a.delete(e):t[n++]=a,a.w&=~fu,a.n&=~fu}t.length=n}},xb=new WeakMap;let Jv=0,fu=1;const Jx=30;let bo;const Xc=Symbol(""),e2=Symbol("");class hM{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,mX(this,r)}run(){if(!this.active)return this.fn();let t=bo,n=eu;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=bo,bo=this,eu=!0,fu=1<<++Jv,Jv<=Jx?yX(this):tP(this),this.fn()}finally{Jv<=Jx&&bX(this),fu=1<<--Jv,bo=this.parent,eu=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){bo===this?this.deferStop=!0:this.active&&(tP(this),this.onStop&&this.onStop(),this.active=!1)}}function tP(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let eu=!0;const q5=[];function Dh(){q5.push(eu),eu=!1}function Ph(){const e=q5.pop();eu=e===void 0?!0:e}function oi(e,t,n){if(eu&&bo){let r=xb.get(e);r||xb.set(e,r=new Map);let a=r.get(n);a||r.set(n,a=dM()),X5(a)}}function X5(e,t){let n=!1;Jv<=Jx?Y5(e)||(e.n|=fu,n=!j5(e)):n=!e.has(bo),n&&(e.add(bo),bo.deps.push(e))}function Zs(e,t,n,r,a,i){const o=xb.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(n==="length"&&st(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":st(e)?fM(n)&&s.push(o.get("length")):(s.push(o.get(Xc)),Rd(e)&&s.push(o.get(e2)));break;case"delete":st(e)||(s.push(o.get(Xc)),Rd(e)&&s.push(o.get(e2)));break;case"set":Rd(e)&&s.push(o.get(Xc));break}if(s.length===1)s[0]&&t2(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);t2(dM(l))}}function t2(e,t){const n=st(e)?e:[...e];for(const r of n)r.computed&&nP(r);for(const r of n)r.computed||nP(r)}function nP(e,t){(e!==bo||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function _X(e,t){var n;return(n=xb.get(e))==null?void 0:n.get(t)}const wX=lM("__proto__,__v_isRef,__isVue"),Z5=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(jp)),SX=vM(),CX=vM(!1,!0),xX=vM(!0),rP=TX();function TX(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=En(this);for(let i=0,o=this.length;i<o;i++)oi(r,"get",i+"");const a=r[t](...n);return a===-1||a===!1?r[t](...n.map(En)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Dh();const r=En(this)[t].apply(this,n);return Ph(),r}}),e}function kX(e){const t=En(this);return oi(t,"has",e),t.hasOwnProperty(e)}function vM(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?HX:nF:t?tF:eF).get(r))return r;const o=st(r);if(!e){if(o&&ln(rP,a))return Reflect.get(rP,a,i);if(a==="hasOwnProperty")return kX}const s=Reflect.get(r,a,i);return(jp(a)?Z5.has(a):wX(a))||(e||oi(r,"get",a),t)?s:Hn(s)?o&&fM(a)?s:s.value:Qt(s)?e?Lh(s):Sn(s):s}}const MX=Q5(),AX=Q5(!0);function Q5(e=!1){return function(n,r,a,i){let o=n[r];if(Jd(o)&&Hn(o)&&!Hn(a))return!1;if(!e&&(!Tb(a)&&!Jd(a)&&(o=En(o),a=En(a)),!st(n)&&Hn(o)&&!Hn(a)))return o.value=a,!0;const s=st(n)&&fM(r)?Number(r)<n.length:ln(n,r),l=Reflect.set(n,r,a,i);return n===En(i)&&(s?Zd(a,o)&&Zs(n,"set",r,a):Zs(n,"add",r,a)),l}}function EX(e,t){const n=ln(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Zs(e,"delete",t,void 0),r}function IX(e,t){const n=Reflect.has(e,t);return(!jp(t)||!Z5.has(t))&&oi(e,"has",t),n}function DX(e){return oi(e,"iterate",st(e)?"length":Xc),Reflect.ownKeys(e)}const J5={get:SX,set:MX,deleteProperty:EX,has:IX,ownKeys:DX},PX={get:xX,set(e,t){return!0},deleteProperty(e,t){return!0}},LX=Or({},J5,{get:CX,set:AX}),pM=e=>e,X1=e=>Reflect.getPrototypeOf(e);function ey(e,t,n=!1,r=!1){e=e.__v_raw;const a=En(e),i=En(t);n||(t!==i&&oi(a,"get",t),oi(a,"get",i));const{has:o}=X1(a),s=r?pM:n?yM:qp;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 ty(e,t=!1){const n=this.__v_raw,r=En(n),a=En(e);return t||(e!==a&&oi(r,"has",e),oi(r,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function ny(e,t=!1){return e=e.__v_raw,!t&&oi(En(e),"iterate",Xc),Reflect.get(e,"size",e)}function aP(e){e=En(e);const t=En(this);return X1(t).has.call(t,e)||(t.add(e),Zs(t,"add",e,e)),this}function iP(e,t){t=En(t);const n=En(this),{has:r,get:a}=X1(n);let i=r.call(n,e);i||(e=En(e),i=r.call(n,e));const o=a.call(n,e);return n.set(e,t),i?Zd(t,o)&&Zs(n,"set",e,t):Zs(n,"add",e,t),this}function oP(e){const t=En(this),{has:n,get:r}=X1(t);let a=n.call(t,e);a||(e=En(e),a=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return a&&Zs(t,"delete",e,void 0),i}function sP(){const e=En(this),t=e.size!==0,n=e.clear();return t&&Zs(e,"clear",void 0,void 0),n}function ry(e,t){return function(r,a){const i=this,o=i.__v_raw,s=En(o),l=t?pM:e?yM:qp;return!e&&oi(s,"iterate",Xc),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function ay(e,t,n){return function(...r){const a=this.__v_raw,i=En(a),o=Rd(i),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=a[e](...r),c=n?pM:t?yM:qp;return!t&&oi(i,"iterate",l?e2:Xc),{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 bl(e){return function(...t){return e==="delete"?!1:this}}function RX(){const e={get(i){return ey(this,i)},get size(){return ny(this)},has:ty,add:aP,set:iP,delete:oP,clear:sP,forEach:ry(!1,!1)},t={get(i){return ey(this,i,!1,!0)},get size(){return ny(this)},has:ty,add:aP,set:iP,delete:oP,clear:sP,forEach:ry(!1,!0)},n={get(i){return ey(this,i,!0)},get size(){return ny(this,!0)},has(i){return ty.call(this,i,!0)},add:bl("add"),set:bl("set"),delete:bl("delete"),clear:bl("clear"),forEach:ry(!0,!1)},r={get(i){return ey(this,i,!0,!0)},get size(){return ny(this,!0)},has(i){return ty.call(this,i,!0)},add:bl("add"),set:bl("set"),delete:bl("delete"),clear:bl("clear"),forEach:ry(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ay(i,!1,!1),n[i]=ay(i,!0,!1),t[i]=ay(i,!1,!0),r[i]=ay(i,!0,!0)}),[e,n,t,r]}const[OX,NX,$X,BX]=RX();function gM(e,t){const n=t?e?BX:$X:e?NX:OX;return(r,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(ln(n,a)&&a in r?n:r,a,i)}const VX={get:gM(!1,!1)},FX={get:gM(!1,!0)},zX={get:gM(!0,!1)},eF=new WeakMap,tF=new WeakMap,nF=new WeakMap,HX=new WeakMap;function WX(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function GX(e){return e.__v_skip||!Object.isExtensible(e)?0:WX(M0(e))}function Sn(e){return Jd(e)?e:mM(e,!1,J5,VX,eF)}function rF(e){return mM(e,!1,LX,FX,tF)}function Lh(e){return mM(e,!0,PX,zX,nF)}function mM(e,t,n,r,a){if(!Qt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=GX(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return a.set(e,s),s}function Od(e){return Jd(e)?Od(e.__v_raw):!!(e&&e.__v_isReactive)}function Jd(e){return!!(e&&e.__v_isReadonly)}function Tb(e){return!!(e&&e.__v_isShallow)}function aF(e){return Od(e)||Jd(e)}function En(e){const t=e&&e.__v_raw;return t?En(t):e}function tu(e){return Cb(e,"__v_skip",!0),e}const qp=e=>Qt(e)?Sn(e):e,yM=e=>Qt(e)?Lh(e):e;function bM(e){eu&&bo&&(e=En(e),X5(e.dep||(e.dep=dM())))}function Z1(e,t){e=En(e);const n=e.dep;n&&t2(n)}function Hn(e){return!!(e&&e.__v_isRef===!0)}function U(e){return iF(e,!1)}function zn(e){return iF(e,!0)}function iF(e,t){return Hn(e)?e:new KX(e,t)}class KX{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:En(t),this._value=n?t:qp(t)}get value(){return bM(this),this._value}set value(t){const n=this.__v_isShallow||Tb(t)||Jd(t);t=n?t:En(t),Zd(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:qp(t),Z1(this))}}function vv(e){Z1(e)}function y(e){return Hn(e)?e.value:e}function dYe(e){return kt(e)?e():y(e)}const UX={get:(e,t,n)=>y(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return Hn(a)&&!Hn(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function oF(e){return Od(e)?e:new Proxy(e,UX)}class jX{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>bM(this),()=>Z1(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function hYe(e){return new jX(e)}function Ur(e){const t=st(e)?new Array(e.length):{};for(const n in e)t[n]=sF(e,n);return t}class YX{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 _X(En(this._object),this._key)}}class qX{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function or(e,t,n){return Hn(e)?e:kt(e)?new qX(e):Qt(e)&&arguments.length>1?sF(e,t,n):U(e)}function sF(e,t,n){const r=e[t];return Hn(r)?r:new YX(e,t,n)}class XX{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 hM(t,()=>{this._dirty||(this._dirty=!0,Z1(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=En(this);return bM(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function lF(e,t,n=!1){let r,a;const i=kt(e);return i?(r=e,a=Ln):(r=e.get,a=e.set),new XX(r,a,i||!a,n)}function ZX(e,...t){}function nu(e,t,n,r){let a;try{a=r?e(...r):e()}catch(i){Q1(i,t,n)}return a}function Hi(e,t,n,r){if(kt(e)){const i=nu(e,t,n,r);return i&&Yp(i)&&i.catch(o=>{Q1(o,t,n)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(Hi(e[i],t,n,r));return a}function Q1(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){nu(l,null,10,[e,o,s]);return}}QX(e,n,a,r)}function QX(e,t,n,r=!0){console.error(e)}let Xp=!1,n2=!1;const ya=[];let rs=0;const Nd=[];let $s=null,kc=0;const uF=Promise.resolve();let _M=null;function ct(e){const t=_M||uF;return e?t.then(this?e.bind(this):e):t}function JX(e){let t=rs+1,n=ya.length;for(;t<n;){const r=t+n>>>1;Zp(ya[r])<e?t=r+1:n=r}return t}function wM(e){(!ya.length||!ya.includes(e,Xp&&e.allowRecurse?rs+1:rs))&&(e.id==null?ya.push(e):ya.splice(JX(e.id),0,e),cF())}function cF(){!Xp&&!n2&&(n2=!0,_M=uF.then(dF))}function eZ(e){const t=ya.indexOf(e);t>rs&&ya.splice(t,1)}function tZ(e){st(e)?Nd.push(...e):(!$s||!$s.includes(e,e.allowRecurse?kc+1:kc))&&Nd.push(e),cF()}function lP(e,t=Xp?rs+1:0){for(;t<ya.length;t++){const n=ya[t];n&&n.pre&&(ya.splice(t,1),t--,n())}}function fF(e){if(Nd.length){const t=[...new Set(Nd)];if(Nd.length=0,$s){$s.push(...t);return}for($s=t,$s.sort((n,r)=>Zp(n)-Zp(r)),kc=0;kc<$s.length;kc++)$s[kc]();$s=null,kc=0}}const Zp=e=>e.id==null?1/0:e.id,nZ=(e,t)=>{const n=Zp(e)-Zp(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function dF(e){n2=!1,Xp=!0,ya.sort(nZ);const t=Ln;try{for(rs=0;rs<ya.length;rs++){const n=ya[rs];n&&n.active!==!1&&nu(n,null,14)}}finally{rs=0,ya.length=0,fF(),Xp=!1,_M=null,(ya.length||Nd.length)&&dF()}}function rZ(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||vr;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]||vr;d&&(a=n.map(h=>At(h)?h.trim():h)),f&&(a=n.map(Zx))}let s,l=r[s=E0(t)]||r[s=E0(Ki(t))];!l&&i&&(l=r[s=E0(ku(t))]),l&&Hi(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,Hi(u,e,6,a)}}function hF(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(!kt(e)){const l=u=>{const c=hF(u,t,!0);c&&(s=!0,Or(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Qt(e)&&r.set(e,null),null):(st(i)?i.forEach(l=>o[l]=null):Or(o,i),Qt(e)&&r.set(e,o),o)}function J1(e,t){return!e||!j1(t)?!1:(t=t.slice(2).replace(/Once$/,""),ln(e,t[0].toLowerCase()+t.slice(1))||ln(e,ku(t))||ln(e,t))}let aa=null,e_=null;function kb(e){const t=aa;return aa=e,e_=e&&e.type.__scopeId||null,t}function vYe(e){e_=e}function pYe(){e_=null}function ce(e,t=aa,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&wP(-1);const i=kb(t);let o;try{o=e(...a)}finally{kb(i),r._d&&wP(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function jw(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=kb(e);try{if(n.shapeFlag&4){const S=a||r;g=ns(c.call(S,S,f,i,h,d,v)),m=l}else{const S=t;g=ns(S.length>1?S(i,{attrs:l,slots:s,emit:u}):S(i,null)),m=t.props?l:aZ(l)}}catch(S){yp.length=0,Q1(S,e,1),g=re(La)}let _=g;if(m&&p!==!1){const S=Object.keys(m),{shapeFlag:x}=_;S.length&&x&7&&(o&&S.some(uM)&&(m=iZ(m,o)),_=Js(_,m))}return n.dirs&&(_=Js(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),g=_,kb(b),g}const aZ=e=>{let t;for(const n in e)(n==="class"||n==="style"||j1(n))&&((t||(t={}))[n]=e[n]);return t},iZ=(e,t)=>{const n={};for(const r in e)(!uM(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function oZ(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?uP(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]&&!J1(u,d))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?uP(r,o,u):!0:!!o;return!1}function uP(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]&&!J1(n,i))return!0}return!1}function sZ({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const lZ=e=>e.__isSuspense;function uZ(e,t){t&&t.pendingBranch?st(e)?t.effects.push(...e):t.effects.push(e):tZ(e)}function yi(e,t){return SM(e,null,t)}const iy={};function Be(e,t,n){return SM(e,t,n)}function SM(e,t,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=vr){var s;const l=K5()===((s=Qr)==null?void 0:s.scope)?Qr:null;let u,c=!1,f=!1;if(Hn(e)?(u=()=>e.value,c=Tb(e)):Od(e)?(u=()=>e,r=!0):st(e)?(f=!0,c=e.some(S=>Od(S)||Tb(S)),u=()=>e.map(S=>{if(Hn(S))return S.value;if(Od(S))return Oc(S);if(kt(S))return nu(S,l,2)})):kt(e)?t?u=()=>nu(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),Hi(e,l,3,[h])}:u=Ln,t&&r){const S=u;u=()=>Oc(S())}let d,h=S=>{d=b.onStop=()=>{nu(S,l,4)}},v;if(tg)if(h=Ln,t?n&&Hi(t,l,3,[u(),f?[]:void 0,h]):u(),a==="sync"){const S=ZZ();v=S.__watcherHandles||(S.__watcherHandles=[])}else return Ln;let p=f?new Array(e.length).fill(iy):iy;const g=()=>{if(b.active)if(t){const S=b.run();(r||c||(f?S.some((x,C)=>Zd(x,p[C])):Zd(S,p)))&&(d&&d(),Hi(t,l,3,[S,p===iy?void 0:f&&p[0]===iy?[]:p,h]),p=S)}else b.run()};g.allowRecurse=!!t;let m;a==="sync"?m=g:a==="post"?m=()=>Qa(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),m=()=>wM(g));const b=new hM(u,m);t?n?g():p=b.run():a==="post"?Qa(b.run.bind(b),l&&l.suspense):b.run();const _=()=>{b.stop(),l&&l.scope&&cM(l.scope.effects,b)};return v&&v.push(_),_}function cZ(e,t,n){const r=this.proxy,a=At(e)?e.includes(".")?vF(r,e):()=>r[e]:e.bind(r,r);let i;kt(t)?i=t:(i=t.handler,n=t);const o=Qr;th(this);const s=SM(a,i.bind(r),n);return o?th(o):Zc(),s}function vF(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 Oc(e,t){if(!Qt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Hn(e))Oc(e.value,t);else if(st(e))for(let n=0;n<e.length;n++)Oc(e[n],t);else if(Y1(e)||Rd(e))e.forEach(n=>{Oc(n,t)});else if(Sb(e))for(const n in e)Oc(e[n],t);return e}function Ot(e,t){const n=aa;if(n===null)return e;const r=o_(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,l,u=vr]=t[i];o&&(kt(o)&&(o={mounted:o,updated:o}),o.deep&&Oc(s),a.push({dir:o,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function Wu(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&&(Dh(),Hi(l,n,8,[e.el,s,e,t]),Ph())}}function pF(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ft(()=>{e.isMounted=!0}),er(()=>{e.isUnmounting=!0}),e}const Ti=[Function,Array],gF={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ti,onEnter:Ti,onAfterEnter:Ti,onEnterCancelled:Ti,onBeforeLeave:Ti,onLeave:Ti,onAfterLeave:Ti,onLeaveCancelled:Ti,onBeforeAppear:Ti,onAppear:Ti,onAfterAppear:Ti,onAppearCancelled:Ti},fZ={name:"BaseTransition",props:gF,setup(e,{slots:t}){const n=Bt(),r=pF();let a;return()=>{const i=t.default&&CM(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==La){o=p;break}}const s=En(e),{mode:l}=s;if(r.isLeaving)return Yw(o);const u=cP(o);if(!u)return Yw(o);const c=Qp(u,s,r,n);Jp(u,c);const f=n.subTree,d=f&&cP(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!==La&&(!Mc(u,d)||h)){const p=Qp(d,s,r,n);if(Jp(d,p),l==="out-in")return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},Yw(o);l==="in-out"&&u.type!==La&&(p.delayLeave=(g,m,b)=>{const _=mF(r,d);_[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=b})}return o}}},dZ=fZ;function mF(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 Qp(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),S=mF(n,e),x=(k,M)=>{k&&Hi(k,r,9,M)},C=(k,M)=>{const I=M[1];x(k,M),st(k)?k.every(E=>E.length<=1)&&I():k.length<=1&&I()},w={mode:i,persisted:o,beforeEnter(k){let M=s;if(!n.isMounted)if(a)M=p||s;else return;k._leaveCb&&k._leaveCb(!0);const I=S[_];I&&Mc(e,I)&&I.el._leaveCb&&I.el._leaveCb(),x(M,[k])},enter(k){let M=l,I=u,E=c;if(!n.isMounted)if(a)M=g||l,I=m||u,E=b||c;else return;let D=!1;const P=k._enterCb=N=>{D||(D=!0,N?x(E,[k]):x(I,[k]),w.delayedLeave&&w.delayedLeave(),k._enterCb=void 0)};M?C(M,[k,P]):P()},leave(k,M){const I=String(e.key);if(k._enterCb&&k._enterCb(!0),n.isUnmounting)return M();x(f,[k]);let E=!1;const D=k._leaveCb=P=>{E||(E=!0,M(),P?x(v,[k]):x(h,[k]),k._leaveCb=void 0,S[I]===e&&delete S[I])};S[I]=e,d?C(d,[k,D]):D()},clone(k){return Qp(k,t,n,r)}};return w}function Yw(e){if(t_(e))return e=Js(e),e.children=null,e}function cP(e){return t_(e)?e.children?e.children[0]:void 0:e}function Jp(e,t){e.shapeFlag&6&&e.component?Jp(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 CM(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===dt?(o.patchFlag&128&&a++,r=r.concat(CM(o.children,t,s))):(t||o.type!==La)&&r.push(s!=null?Js(o,{key:s}):o)}if(a>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function te(e,t){return kt(e)?(()=>Or({name:e.name},t,{setup:e}))():e}const pp=e=>!!e.type.__asyncLoader,t_=e=>e.type.__isKeepAlive;function hZ(e,t){bF(e,"a",t)}function yF(e,t){bF(e,"da",t)}function bF(e,t,n=Qr){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(n_(t,r,n),n){let a=n.parent;for(;a&&a.parent;)t_(a.parent.vnode)&&vZ(r,t,n,a),a=a.parent}}function vZ(e,t,n,r){const a=n_(t,e,r,!0);Mu(()=>{cM(r[t],a)},n)}function n_(e,t,n=Qr,r=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Dh(),th(n);const s=Hi(t,n,e,o);return Zc(),Ph(),s});return r?a.unshift(i):a.push(i),i}}const ul=e=>(t,n=Qr)=>(!tg||e==="sp")&&n_(e,(...r)=>t(...r),n),r_=ul("bm"),Ft=ul("m"),_F=ul("bu"),cl=ul("u"),er=ul("bum"),Mu=ul("um"),pZ=ul("sp"),gZ=ul("rtg"),mZ=ul("rtc");function yZ(e,t=Qr){n_("ec",e,t)}const xM="components",bZ="directives";function Pt(e,t){return TM(xM,e,!0,t)||e}const wF=Symbol.for("v-ndc");function qt(e){return At(e)?TM(xM,e,!1)||e:e||wF}function eg(e){return TM(bZ,e)}function TM(e,t,n=!0,r=!1){const a=aa||Qr;if(a){const i=a.type;if(e===xM){const s=YZ(i,!1);if(s&&(s===t||s===Ki(t)||s===om(Ki(t))))return i}const o=fP(a[e]||i[e],t)||fP(a.appContext[e],t);return!o&&r?i:o}}function fP(e,t){return e&&(e[t]||e[Ki(t)]||e[om(Ki(t))])}function an(e,t,n,r){let a;const i=n&&n[r];if(st(e)||At(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(Qt(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 Qs(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(st(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 Re(e,t,n={},r,a){if(aa.isCE||aa.parent&&pp(aa.parent)&&aa.parent.isCE)return t!=="default"&&(n.name=t),re("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),$();const o=i&&SF(i(n)),s=Se(dt,{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 SF(e){return e.some(t=>ar(t)?!(t.type===La||t.type===dt&&!SF(t.children)):!0)?e:null}function _Z(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:E0(r)]=e[r];return n}const r2=e=>e?RF(e)?o_(e)||e.proxy:r2(e.parent):null,gp=Or(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=>r2(e.parent),$root:e=>r2(e.root),$emit:e=>e.emit,$options:e=>kM(e),$forceUpdate:e=>e.f||(e.f=()=>wM(e.update)),$nextTick:e=>e.n||(e.n=ct.bind(e.proxy)),$watch:e=>cZ.bind(e)}),qw=(e,t)=>e!==vr&&!e.__isScriptSetup&&ln(e,t),wZ={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(qw(r,t))return o[t]=1,r[t];if(a!==vr&&ln(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&ln(u,t))return o[t]=3,i[t];if(n!==vr&&ln(n,t))return o[t]=4,n[t];a2&&(o[t]=0)}}const c=gp[t];let f,d;if(c)return t==="$attrs"&&oi(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==vr&&ln(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,ln(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return qw(a,t)?(a[t]=n,!0):r!==vr&&ln(r,t)?(r[t]=n,!0):ln(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!==vr&&ln(e,o)||qw(t,o)||(s=i[0])&&ln(s,o)||ln(r,o)||ln(gp,o)||ln(a.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ln(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function da(){return CF().slots}function xf(){return CF().attrs}function CF(){const e=Bt();return e.setupContext||(e.setupContext=NF(e))}function dP(e){return st(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function gYe(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}let a2=!0;function SZ(e){const t=kM(e),n=e.proxy,r=e.ctx;a2=!1,t.beforeCreate&&hP(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:S,render:x,renderTracked:C,renderTriggered:w,errorCaptured:k,serverPrefetch:M,expose:I,inheritAttrs:E,components:D,directives:P,filters:N}=t;if(u&&CZ(u,r,null),o)for(const B in o){const V=o[B];kt(V)&&(r[B]=V.bind(n))}if(a){const B=a.call(n,n);Qt(B)&&(e.data=Sn(B))}if(a2=!0,i)for(const B in i){const V=i[B],L=kt(V)?V.bind(n,n):kt(V.get)?V.get.bind(n,n):Ln,G=!kt(V)&&kt(V.set)?V.set.bind(n):Ln,q=R({get:L,set:G});Object.defineProperty(r,B,{enumerable:!0,configurable:!0,get:()=>q.value,set:Q=>q.value=Q})}if(s)for(const B in s)xF(s[B],r,n,B);if(l){const B=kt(l)?l.call(n):l;Reflect.ownKeys(B).forEach(V=>{Jt(V,B[V])})}c&&hP(c,e,"c");function F(B,V){st(V)?V.forEach(L=>B(L.bind(n))):V&&B(V.bind(n))}if(F(r_,f),F(Ft,d),F(_F,h),F(cl,v),F(hZ,p),F(yF,g),F(yZ,k),F(mZ,C),F(gZ,w),F(er,b),F(Mu,S),F(pZ,M),st(I))if(I.length){const B=e.exposed||(e.exposed={});I.forEach(V=>{Object.defineProperty(B,V,{get:()=>n[V],set:L=>n[V]=L})})}else e.exposed||(e.exposed={});x&&e.render===Ln&&(e.render=x),E!=null&&(e.inheritAttrs=E),D&&(e.components=D),P&&(e.directives=P)}function CZ(e,t,n=Ln){st(e)&&(e=i2(e));for(const r in e){const a=e[r];let i;Qt(a)?"default"in a?i=lt(a.from||r,a.default,!0):i=lt(a.from||r):i=lt(a),Hn(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function hP(e,t,n){Hi(st(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function xF(e,t,n,r){const a=r.includes(".")?vF(n,r):()=>n[r];if(At(e)){const i=t[e];kt(i)&&Be(a,i)}else if(kt(e))Be(a,e.bind(n));else if(Qt(e))if(st(e))e.forEach(i=>xF(i,t,n,r));else{const i=kt(e.handler)?e.handler.bind(n):t[e.handler];kt(i)&&Be(a,i,e)}}function kM(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=>Mb(l,u,o,!0)),Mb(l,t,o)),Qt(t)&&i.set(t,l),l}function Mb(e,t,n,r=!1){const{mixins:a,extends:i}=t;i&&Mb(e,i,n,!0),a&&a.forEach(o=>Mb(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=xZ[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const xZ={data:vP,props:pP,emits:pP,methods:ep,computed:ep,beforeCreate:Ma,created:Ma,beforeMount:Ma,mounted:Ma,beforeUpdate:Ma,updated:Ma,beforeDestroy:Ma,beforeUnmount:Ma,destroyed:Ma,unmounted:Ma,activated:Ma,deactivated:Ma,errorCaptured:Ma,serverPrefetch:Ma,components:ep,directives:ep,watch:kZ,provide:vP,inject:TZ};function vP(e,t){return t?e?function(){return Or(kt(e)?e.call(this,this):e,kt(t)?t.call(this,this):t)}:t:e}function TZ(e,t){return ep(i2(e),i2(t))}function i2(e){if(st(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ma(e,t){return e?[...new Set([].concat(e,t))]:t}function ep(e,t){return e?Or(Object.create(null),e,t):t}function pP(e,t){return e?st(e)&&st(t)?[...new Set([...e,...t])]:Or(Object.create(null),dP(e),dP(t??{})):t}function kZ(e,t){if(!e)return t;if(!t)return e;const n=Or(Object.create(null),e);for(const r in t)n[r]=Ma(e[r],t[r]);return n}function TF(){return{app:null,config:{isNativeTag:aX,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 MZ=0;function AZ(e,t){return function(r,a=null){kt(r)||(r=Or({},r)),a!=null&&!Qt(a)&&(a=null);const i=TF(),o=new Set;let s=!1;const l=i.app={_uid:MZ++,_component:r,_props:a,_container:null,_context:i,_instance:null,version:QZ,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&kt(u.install)?(o.add(u),u.install(l,...c)):kt(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=re(r,a);return d.appContext=i,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,o_(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){Ab=l;try{return u()}finally{Ab=null}}};return l}}let Ab=null;function Jt(e,t){if(Qr){let n=Qr.provides;const r=Qr.parent&&Qr.parent.provides;r===n&&(n=Qr.provides=Object.create(r)),n[e]=t}}function lt(e,t,n=!1){const r=Qr||aa;if(r||Ab){const a=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Ab._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&kt(t)?t.call(r&&r.proxy):t}}function EZ(e,t,n,r=!1){const a={},i={};Cb(i,a_,1),e.propsDefaults=Object.create(null),kF(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);n?e.props=r?a:rF(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function IZ(e,t,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=En(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(J1(e.emitsOptions,d))continue;const h=t[d];if(l)if(ln(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const v=Ki(d);a[v]=o2(l,s,v,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{kF(e,t,a,i)&&(u=!0);let c;for(const f in s)(!t||!ln(t,f)&&((c=ku(f))===f||!ln(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(a[f]=o2(l,s,f,void 0,e,!0)):delete a[f]);if(i!==s)for(const f in i)(!t||!ln(t,f))&&(delete i[f],u=!0)}u&&Zs(e,"set","$attrs")}function kF(e,t,n,r){const[a,i]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(A0(l))continue;const u=t[l];let c;a&&ln(a,c=Ki(l))?!i||!i.includes(c)?n[c]=u:(s||(s={}))[c]=u:J1(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=En(n),u=s||vr;for(let c=0;c<i.length;c++){const f=i[c];n[f]=o2(a,l,f,u[f],e,!ln(u,f))}}return o}function o2(e,t,n,r,a,i){const o=e[n];if(o!=null){const s=ln(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&kt(l)){const{propsDefaults:u}=a;n in u?r=u[n]:(th(a),r=u[n]=l.call(null,t),Zc())}else r=l}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===ku(n))&&(r=!0))}return r}function MF(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(!kt(e)){const c=f=>{l=!0;const[d,h]=MF(f,t,!0);Or(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 Qt(e)&&r.set(e,Ld),Ld;if(st(i))for(let c=0;c<i.length;c++){const f=Ki(i[c]);gP(f)&&(o[f]=vr)}else if(i)for(const c in i){const f=Ki(c);if(gP(f)){const d=i[c],h=o[f]=st(d)||kt(d)?{type:d}:Or({},d);if(h){const v=bP(Boolean,h.type),p=bP(String,h.type);h[0]=v>-1,h[1]=p<0||v<p,(v>-1||ln(h,"default"))&&s.push(f)}}}const u=[o,s];return Qt(e)&&r.set(e,u),u}function gP(e){return e[0]!=="$"}function mP(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function yP(e,t){return mP(e)===mP(t)}function bP(e,t){return st(t)?t.findIndex(n=>yP(n,e)):kt(t)&&yP(t,e)?0:-1}const AF=e=>e[0]==="_"||e==="$stable",MM=e=>st(e)?e.map(ns):[ns(e)],DZ=(e,t,n)=>{if(t._n)return t;const r=ce((...a)=>MM(t(...a)),n);return r._c=!1,r},EF=(e,t,n)=>{const r=e._ctx;for(const a in e){if(AF(a))continue;const i=e[a];if(kt(i))t[a]=DZ(a,i,r);else if(i!=null){const o=MM(i);t[a]=()=>o}}},IF=(e,t)=>{const n=MM(t);e.slots.default=()=>n},PZ=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=En(t),Cb(t,"_",n)):EF(t,e.slots={})}else e.slots={},t&&IF(e,t);Cb(e.slots,a_,1)},LZ=(e,t,n)=>{const{vnode:r,slots:a}=e;let i=!0,o=vr;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(Or(a,t),!n&&s===1&&delete a._):(i=!t.$stable,EF(t,a)),o=t}else t&&(IF(e,t),o={default:1});if(i)for(const s in a)!AF(s)&&!(s in o)&&delete a[s]};function s2(e,t,n,r,a=!1){if(st(e)){e.forEach((d,h)=>s2(d,t&&(st(t)?t[h]:t),n,r,a));return}if(pp(r)&&!a)return;const i=r.shapeFlag&4?o_(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===vr?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(At(u)?(c[u]=null,ln(f,u)&&(f[u]=null)):Hn(u)&&(u.value=null)),kt(l))nu(l,s,12,[o,c]);else{const d=At(l),h=Hn(l);if(d||h){const v=()=>{if(e.f){const p=d?ln(f,l)?f[l]:c[l]:l.value;a?st(p)&&cM(p,i):st(p)?p.includes(i)||p.push(i):d?(c[l]=[i],ln(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,ln(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,Qa(v,n)):v()}}}const Qa=uZ;function RZ(e){return OZ(e)}function OZ(e,t){const n=Qx();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=Ln,insertStaticContent:v}=e,p=(X,ae,ge,ke=null,Pe=null,Me=null,ze=!1,Oe=null,Le=!!ae.dynamicChildren)=>{if(X===ae)return;X&&!Mc(X,ae)&&(ke=le(X),Q(X,Pe,Me,!0),X=null),ae.patchFlag===-2&&(Le=!1,ae.dynamicChildren=null);const{type:Ve,ref:qe,shapeFlag:nt}=ae;switch(Ve){case Rh:g(X,ae,ge,ke);break;case La:m(X,ae,ge,ke);break;case Xw:X==null&&b(ae,ge,ke,ze);break;case dt:D(X,ae,ge,ke,Pe,Me,ze,Oe,Le);break;default:nt&1?x(X,ae,ge,ke,Pe,Me,ze,Oe,Le):nt&6?P(X,ae,ge,ke,Pe,Me,ze,Oe,Le):(nt&64||nt&128)&&Ve.process(X,ae,ge,ke,Pe,Me,ze,Oe,Le,Ce)}qe!=null&&Pe&&s2(qe,X&&X.ref,Me,ae||X,!ae)},g=(X,ae,ge,ke)=>{if(X==null)r(ae.el=s(ae.children),ge,ke);else{const Pe=ae.el=X.el;ae.children!==X.children&&u(Pe,ae.children)}},m=(X,ae,ge,ke)=>{X==null?r(ae.el=l(ae.children||""),ge,ke):ae.el=X.el},b=(X,ae,ge,ke)=>{[X.el,X.anchor]=v(X.children,ae,ge,ke,X.el,X.anchor)},_=({el:X,anchor:ae},ge,ke)=>{let Pe;for(;X&&X!==ae;)Pe=d(X),r(X,ge,ke),X=Pe;r(ae,ge,ke)},S=({el:X,anchor:ae})=>{let ge;for(;X&&X!==ae;)ge=d(X),a(X),X=ge;a(ae)},x=(X,ae,ge,ke,Pe,Me,ze,Oe,Le)=>{ze=ze||ae.type==="svg",X==null?C(ae,ge,ke,Pe,Me,ze,Oe,Le):M(X,ae,Pe,Me,ze,Oe,Le)},C=(X,ae,ge,ke,Pe,Me,ze,Oe)=>{let Le,Ve;const{type:qe,props:nt,shapeFlag:ot,transition:_e,dirs:Je}=X;if(Le=X.el=o(X.type,Me,nt&&nt.is,nt),ot&8?c(Le,X.children):ot&16&&k(X.children,Le,null,ke,Pe,Me&&qe!=="foreignObject",ze,Oe),Je&&Wu(X,null,ke,"created"),w(Le,X,X.scopeId,ze,ke),nt){for(const Rt in nt)Rt!=="value"&&!A0(Rt)&&i(Le,Rt,null,nt[Rt],Me,X.children,ke,Pe,se);"value"in nt&&i(Le,"value",null,nt.value),(Ve=nt.onVnodeBeforeMount)&&jo(Ve,ke,X)}Je&&Wu(X,null,ke,"beforeMount");const St=(!Pe||Pe&&!Pe.pendingBranch)&&_e&&!_e.persisted;St&&_e.beforeEnter(Le),r(Le,ae,ge),((Ve=nt&&nt.onVnodeMounted)||St||Je)&&Qa(()=>{Ve&&jo(Ve,ke,X),St&&_e.enter(Le),Je&&Wu(X,null,ke,"mounted")},Pe)},w=(X,ae,ge,ke,Pe)=>{if(ge&&h(X,ge),ke)for(let Me=0;Me<ke.length;Me++)h(X,ke[Me]);if(Pe){let Me=Pe.subTree;if(ae===Me){const ze=Pe.vnode;w(X,ze,ze.scopeId,ze.slotScopeIds,Pe.parent)}}},k=(X,ae,ge,ke,Pe,Me,ze,Oe,Le=0)=>{for(let Ve=Le;Ve<X.length;Ve++){const qe=X[Ve]=Oe?Vl(X[Ve]):ns(X[Ve]);p(null,qe,ae,ge,ke,Pe,Me,ze,Oe)}},M=(X,ae,ge,ke,Pe,Me,ze)=>{const Oe=ae.el=X.el;let{patchFlag:Le,dynamicChildren:Ve,dirs:qe}=ae;Le|=X.patchFlag&16;const nt=X.props||vr,ot=ae.props||vr;let _e;ge&&Gu(ge,!1),(_e=ot.onVnodeBeforeUpdate)&&jo(_e,ge,ae,X),qe&&Wu(ae,X,ge,"beforeUpdate"),ge&&Gu(ge,!0);const Je=Pe&&ae.type!=="foreignObject";if(Ve?I(X.dynamicChildren,Ve,Oe,ge,ke,Je,Me):ze||V(X,ae,Oe,null,ge,ke,Je,Me,!1),Le>0){if(Le&16)E(Oe,ae,nt,ot,ge,ke,Pe);else if(Le&2&&nt.class!==ot.class&&i(Oe,"class",null,ot.class,Pe),Le&4&&i(Oe,"style",nt.style,ot.style,Pe),Le&8){const St=ae.dynamicProps;for(let Rt=0;Rt<St.length;Rt++){const Kt=St[Rt],gt=nt[Kt],Ie=ot[Kt];(Ie!==gt||Kt==="value")&&i(Oe,Kt,gt,Ie,Pe,X.children,ge,ke,se)}}Le&1&&X.children!==ae.children&&c(Oe,ae.children)}else!ze&&Ve==null&&E(Oe,ae,nt,ot,ge,ke,Pe);((_e=ot.onVnodeUpdated)||qe)&&Qa(()=>{_e&&jo(_e,ge,ae,X),qe&&Wu(ae,X,ge,"updated")},ke)},I=(X,ae,ge,ke,Pe,Me,ze)=>{for(let Oe=0;Oe<ae.length;Oe++){const Le=X[Oe],Ve=ae[Oe],qe=Le.el&&(Le.type===dt||!Mc(Le,Ve)||Le.shapeFlag&70)?f(Le.el):ge;p(Le,Ve,qe,null,ke,Pe,Me,ze,!0)}},E=(X,ae,ge,ke,Pe,Me,ze)=>{if(ge!==ke){if(ge!==vr)for(const Oe in ge)!A0(Oe)&&!(Oe in ke)&&i(X,Oe,ge[Oe],null,ze,ae.children,Pe,Me,se);for(const Oe in ke){if(A0(Oe))continue;const Le=ke[Oe],Ve=ge[Oe];Le!==Ve&&Oe!=="value"&&i(X,Oe,Ve,Le,ze,ae.children,Pe,Me,se)}"value"in ke&&i(X,"value",ge.value,ke.value)}},D=(X,ae,ge,ke,Pe,Me,ze,Oe,Le)=>{const Ve=ae.el=X?X.el:s(""),qe=ae.anchor=X?X.anchor:s("");let{patchFlag:nt,dynamicChildren:ot,slotScopeIds:_e}=ae;_e&&(Oe=Oe?Oe.concat(_e):_e),X==null?(r(Ve,ge,ke),r(qe,ge,ke),k(ae.children,ge,qe,Pe,Me,ze,Oe,Le)):nt>0&&nt&64&&ot&&X.dynamicChildren?(I(X.dynamicChildren,ot,ge,Pe,Me,ze,Oe),(ae.key!=null||Pe&&ae===Pe.subTree)&&AM(X,ae,!0)):V(X,ae,ge,qe,Pe,Me,ze,Oe,Le)},P=(X,ae,ge,ke,Pe,Me,ze,Oe,Le)=>{ae.slotScopeIds=Oe,X==null?ae.shapeFlag&512?Pe.ctx.activate(ae,ge,ke,ze,Le):N(ae,ge,ke,Pe,Me,ze,Le):z(X,ae,Le)},N=(X,ae,ge,ke,Pe,Me,ze)=>{const Oe=X.component=GZ(X,ke,Pe);if(t_(X)&&(Oe.ctx.renderer=Ce),KZ(Oe),Oe.asyncDep){if(Pe&&Pe.registerDep(Oe,F),!X.el){const Le=Oe.subTree=re(La);m(null,Le,ae,ge)}return}F(Oe,X,ae,ge,Pe,Me,ze)},z=(X,ae,ge)=>{const ke=ae.component=X.component;if(oZ(X,ae,ge))if(ke.asyncDep&&!ke.asyncResolved){B(ke,ae,ge);return}else ke.next=ae,eZ(ke.update),ke.update();else ae.el=X.el,ke.vnode=ae},F=(X,ae,ge,ke,Pe,Me,ze)=>{const Oe=()=>{if(X.isMounted){let{next:qe,bu:nt,u:ot,parent:_e,vnode:Je}=X,St=qe,Rt;Gu(X,!1),qe?(qe.el=Je.el,B(X,qe,ze)):qe=Je,nt&&I0(nt),(Rt=qe.props&&qe.props.onVnodeBeforeUpdate)&&jo(Rt,_e,qe,Je),Gu(X,!0);const Kt=jw(X),gt=X.subTree;X.subTree=Kt,p(gt,Kt,f(gt.el),le(gt),X,Pe,Me),qe.el=Kt.el,St===null&&sZ(X,Kt.el),ot&&Qa(ot,Pe),(Rt=qe.props&&qe.props.onVnodeUpdated)&&Qa(()=>jo(Rt,_e,qe,Je),Pe)}else{let qe;const{el:nt,props:ot}=ae,{bm:_e,m:Je,parent:St}=X,Rt=pp(ae);if(Gu(X,!1),_e&&I0(_e),!Rt&&(qe=ot&&ot.onVnodeBeforeMount)&&jo(qe,St,ae),Gu(X,!0),nt&&he){const Kt=()=>{X.subTree=jw(X),he(nt,X.subTree,X,Pe,null)};Rt?ae.type.__asyncLoader().then(()=>!X.isUnmounted&&Kt()):Kt()}else{const Kt=X.subTree=jw(X);p(null,Kt,ge,ke,X,Pe,Me),ae.el=Kt.el}if(Je&&Qa(Je,Pe),!Rt&&(qe=ot&&ot.onVnodeMounted)){const Kt=ae;Qa(()=>jo(qe,St,Kt),Pe)}(ae.shapeFlag&256||St&&pp(St.vnode)&&St.vnode.shapeFlag&256)&&X.a&&Qa(X.a,Pe),X.isMounted=!0,ae=ge=ke=null}},Le=X.effect=new hM(Oe,()=>wM(Ve),X.scope),Ve=X.update=()=>Le.run();Ve.id=X.uid,Gu(X,!0),Ve()},B=(X,ae,ge)=>{ae.component=X;const ke=X.vnode.props;X.vnode=ae,X.next=null,IZ(X,ae.props,ke,ge),LZ(X,ae.children,ge),Dh(),lP(),Ph()},V=(X,ae,ge,ke,Pe,Me,ze,Oe,Le=!1)=>{const Ve=X&&X.children,qe=X?X.shapeFlag:0,nt=ae.children,{patchFlag:ot,shapeFlag:_e}=ae;if(ot>0){if(ot&128){G(Ve,nt,ge,ke,Pe,Me,ze,Oe,Le);return}else if(ot&256){L(Ve,nt,ge,ke,Pe,Me,ze,Oe,Le);return}}_e&8?(qe&16&&se(Ve,Pe,Me),nt!==Ve&&c(ge,nt)):qe&16?_e&16?G(Ve,nt,ge,ke,Pe,Me,ze,Oe,Le):se(Ve,Pe,Me,!0):(qe&8&&c(ge,""),_e&16&&k(nt,ge,ke,Pe,Me,ze,Oe,Le))},L=(X,ae,ge,ke,Pe,Me,ze,Oe,Le)=>{X=X||Ld,ae=ae||Ld;const Ve=X.length,qe=ae.length,nt=Math.min(Ve,qe);let ot;for(ot=0;ot<nt;ot++){const _e=ae[ot]=Le?Vl(ae[ot]):ns(ae[ot]);p(X[ot],_e,ge,null,Pe,Me,ze,Oe,Le)}Ve>qe?se(X,Pe,Me,!0,!1,nt):k(ae,ge,ke,Pe,Me,ze,Oe,Le,nt)},G=(X,ae,ge,ke,Pe,Me,ze,Oe,Le)=>{let Ve=0;const qe=ae.length;let nt=X.length-1,ot=qe-1;for(;Ve<=nt&&Ve<=ot;){const _e=X[Ve],Je=ae[Ve]=Le?Vl(ae[Ve]):ns(ae[Ve]);if(Mc(_e,Je))p(_e,Je,ge,null,Pe,Me,ze,Oe,Le);else break;Ve++}for(;Ve<=nt&&Ve<=ot;){const _e=X[nt],Je=ae[ot]=Le?Vl(ae[ot]):ns(ae[ot]);if(Mc(_e,Je))p(_e,Je,ge,null,Pe,Me,ze,Oe,Le);else break;nt--,ot--}if(Ve>nt){if(Ve<=ot){const _e=ot+1,Je=_e<qe?ae[_e].el:ke;for(;Ve<=ot;)p(null,ae[Ve]=Le?Vl(ae[Ve]):ns(ae[Ve]),ge,Je,Pe,Me,ze,Oe,Le),Ve++}}else if(Ve>ot)for(;Ve<=nt;)Q(X[Ve],Pe,Me,!0),Ve++;else{const _e=Ve,Je=Ve,St=new Map;for(Ve=Je;Ve<=ot;Ve++){const ue=ae[Ve]=Le?Vl(ae[Ve]):ns(ae[Ve]);ue.key!=null&&St.set(ue.key,Ve)}let Rt,Kt=0;const gt=ot-Je+1;let Ie=!1,we=0;const ve=new Array(gt);for(Ve=0;Ve<gt;Ve++)ve[Ve]=0;for(Ve=_e;Ve<=nt;Ve++){const ue=X[Ve];if(Kt>=gt){Q(ue,Pe,Me,!0);continue}let rt;if(ue.key!=null)rt=St.get(ue.key);else for(Rt=Je;Rt<=ot;Rt++)if(ve[Rt-Je]===0&&Mc(ue,ae[Rt])){rt=Rt;break}rt===void 0?Q(ue,Pe,Me,!0):(ve[rt-Je]=Ve+1,rt>=we?we=rt:Ie=!0,p(ue,ae[rt],ge,null,Pe,Me,ze,Oe,Le),Kt++)}const $e=Ie?NZ(ve):Ld;for(Rt=$e.length-1,Ve=gt-1;Ve>=0;Ve--){const ue=Je+Ve,rt=ae[ue],Ct=ue+1<qe?ae[ue+1].el:ke;ve[Ve]===0?p(null,rt,ge,Ct,Pe,Me,ze,Oe,Le):Ie&&(Rt<0||Ve!==$e[Rt]?q(rt,ge,Ct,2):Rt--)}}},q=(X,ae,ge,ke,Pe=null)=>{const{el:Me,type:ze,transition:Oe,children:Le,shapeFlag:Ve}=X;if(Ve&6){q(X.component.subTree,ae,ge,ke);return}if(Ve&128){X.suspense.move(ae,ge,ke);return}if(Ve&64){ze.move(X,ae,ge,Ce);return}if(ze===dt){r(Me,ae,ge);for(let nt=0;nt<Le.length;nt++)q(Le[nt],ae,ge,ke);r(X.anchor,ae,ge);return}if(ze===Xw){_(X,ae,ge);return}if(ke!==2&&Ve&1&&Oe)if(ke===0)Oe.beforeEnter(Me),r(Me,ae,ge),Qa(()=>Oe.enter(Me),Pe);else{const{leave:nt,delayLeave:ot,afterLeave:_e}=Oe,Je=()=>r(Me,ae,ge),St=()=>{nt(Me,()=>{Je(),_e&&_e()})};ot?ot(Me,Je,St):St()}else r(Me,ae,ge)},Q=(X,ae,ge,ke=!1,Pe=!1)=>{const{type:Me,props:ze,ref:Oe,children:Le,dynamicChildren:Ve,shapeFlag:qe,patchFlag:nt,dirs:ot}=X;if(Oe!=null&&s2(Oe,null,ge,X,!0),qe&256){ae.ctx.deactivate(X);return}const _e=qe&1&&ot,Je=!pp(X);let St;if(Je&&(St=ze&&ze.onVnodeBeforeUnmount)&&jo(St,ae,X),qe&6)oe(X.component,ge,ke);else{if(qe&128){X.suspense.unmount(ge,ke);return}_e&&Wu(X,null,ae,"beforeUnmount"),qe&64?X.type.remove(X,ae,ge,Pe,Ce,ke):Ve&&(Me!==dt||nt>0&&nt&64)?se(Ve,ae,ge,!1,!0):(Me===dt&&nt&384||!Pe&&qe&16)&&se(Le,ae,ge),ke&&ie(X)}(Je&&(St=ze&&ze.onVnodeUnmounted)||_e)&&Qa(()=>{St&&jo(St,ae,X),_e&&Wu(X,null,ae,"unmounted")},ge)},ie=X=>{const{type:ae,el:ge,anchor:ke,transition:Pe}=X;if(ae===dt){de(ge,ke);return}if(ae===Xw){S(X);return}const Me=()=>{a(ge),Pe&&!Pe.persisted&&Pe.afterLeave&&Pe.afterLeave()};if(X.shapeFlag&1&&Pe&&!Pe.persisted){const{leave:ze,delayLeave:Oe}=Pe,Le=()=>ze(ge,Me);Oe?Oe(X.el,Me,Le):Le()}else Me()},de=(X,ae)=>{let ge;for(;X!==ae;)ge=d(X),a(X),X=ge;a(ae)},oe=(X,ae,ge)=>{const{bum:ke,scope:Pe,update:Me,subTree:ze,um:Oe}=X;ke&&I0(ke),Pe.stop(),Me&&(Me.active=!1,Q(ze,X,ae,ge)),Oe&&Qa(Oe,ae),Qa(()=>{X.isUnmounted=!0},ae),ae&&ae.pendingBranch&&!ae.isUnmounted&&X.asyncDep&&!X.asyncResolved&&X.suspenseId===ae.pendingId&&(ae.deps--,ae.deps===0&&ae.resolve())},se=(X,ae,ge,ke=!1,Pe=!1,Me=0)=>{for(let ze=Me;ze<X.length;ze++)Q(X[ze],ae,ge,ke,Pe)},le=X=>X.shapeFlag&6?le(X.component.subTree):X.shapeFlag&128?X.suspense.next():d(X.anchor||X.el),ne=(X,ae,ge)=>{X==null?ae._vnode&&Q(ae._vnode,null,null,!0):p(ae._vnode||null,X,ae,null,null,null,ge),lP(),fF(),ae._vnode=X},Ce={p,um:Q,m:q,r:ie,mt:N,mc:k,pc:V,pbc:I,n:le,o:e};let Te,he;return t&&([Te,he]=t(Ce)),{render:ne,hydrate:Te,createApp:AZ(ne,Te)}}function Gu({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function AM(e,t,n=!1){const r=e.children,a=t.children;if(st(r)&&st(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]=Vl(a[i]),s.el=o.el),n||AM(o,s)),s.type===Rh&&(s.el=o.el)}}function NZ(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 $Z=e=>e.__isTeleport,mp=e=>e&&(e.disabled||e.disabled===""),_P=e=>typeof SVGElement<"u"&&e instanceof SVGElement,l2=(e,t)=>{const n=e&&e.to;return At(n)?t?t(n):null:n},BZ={__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=mp(t.props);let{shapeFlag:b,children:_,dynamicChildren:S}=t;if(e==null){const x=t.el=p(""),C=t.anchor=p("");h(x,n,r),h(C,n,r);const w=t.target=l2(t.props,v),k=t.targetAnchor=p("");w&&(h(k,w),o=o||_P(w));const M=(I,E)=>{b&16&&c(_,I,E,a,i,o,s,l)};m?M(n,C):w&&M(w,k)}else{t.el=e.el;const x=t.anchor=e.anchor,C=t.target=e.target,w=t.targetAnchor=e.targetAnchor,k=mp(e.props),M=k?n:C,I=k?x:w;if(o=o||_P(C),S?(d(e.dynamicChildren,S,M,a,i,o,s),AM(e,t,!0)):l||f(e,t,M,I,a,i,o,s,!1),m)k||oy(t,n,x,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=l2(t.props,v);E&&oy(t,E,null,u,0)}else k&&oy(t,C,w,u,1)}DF(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||!mp(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:oy,hydrate:VZ};function oy(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||mp(c))&&l&16)for(let d=0;d<u.length;d++)a(u[d],t,n,2);f&&r(s,t,n)}function VZ(e,t,n,r,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=l2(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(mp(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)}DF(t)}return t.anchor&&o(t.anchor)}const sm=BZ;function DF(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 dt=Symbol.for("v-fgt"),Rh=Symbol.for("v-txt"),La=Symbol.for("v-cmt"),Xw=Symbol.for("v-stc"),yp=[];let vi=null;function $(e=!1){yp.push(vi=e?null:[])}function FZ(){yp.pop(),vi=yp[yp.length-1]||null}let eh=1;function wP(e){eh+=e}function PF(e){return e.dynamicChildren=eh>0?vi||Ld:null,FZ(),eh>0&&vi&&vi.push(e),e}function Z(e,t,n,r,a,i){return PF(ee(e,t,n,r,a,i,!0))}function Se(e,t,n,r,a){return PF(re(e,t,n,r,a,!0))}function ar(e){return e?e.__v_isVNode===!0:!1}function Mc(e,t){return e.type===t.type&&e.key===t.key}const a_="__vInternal",LF=({key:e})=>e??null,D0=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?At(e)||Hn(e)||kt(e)?{i:aa,r:e,k:t,f:!!n}:e:null);function ee(e,t=null,n=null,r=0,a=null,i=e===dt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&LF(t),ref:t&&D0(t),scopeId:e_,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:aa};return s?(EM(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=At(n)?8:16),eh>0&&!o&&vi&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&vi.push(l),l}const re=zZ;function zZ(e,t=null,n=null,r=0,a=null,i=!1){if((!e||e===wF)&&(e=La),ar(e)){const s=Js(e,t,!0);return n&&EM(s,n),eh>0&&!i&&vi&&(s.shapeFlag&6?vi[vi.indexOf(e)]=s:vi.push(s)),s.patchFlag|=-2,s}if(qZ(e)&&(e=e.__vccOpts),t){t=i_(t);let{class:s,style:l}=t;s&&!At(s)&&(t.class=W(s)),Qt(l)&&(aF(l)&&!st(l)&&(l=Or({},l)),t.style=ft(l))}const o=At(e)?1:lZ(e)?128:$Z(e)?64:Qt(e)?4:kt(e)?2:0;return ee(e,t,n,r,a,o,i,!0)}function i_(e){return e?aF(e)||a_ in e?Or({},e):e:null}function Js(e,t,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=e,s=t?Yt(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&LF(s),ref:t&&t.ref?n&&a?st(a)?a.concat(D0(t)):[a,D0(t)]:D0(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!==dt?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&&Js(e.ssContent),ssFallback:e.ssFallback&&Js(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function _n(e=" ",t=0){return re(Rh,null,e,t)}function me(e="",t=!1){return t?($(),Se(La,null,e)):re(La,null,e)}function ns(e){return e==null||typeof e=="boolean"?re(La):st(e)?re(dt,null,e.slice()):typeof e=="object"?Vl(e):re(Rh,null,String(e))}function Vl(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Js(e)}function EM(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(st(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),EM(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!(a_ in t)?t._ctx=aa:a===3&&aa&&(aa.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else kt(t)?(t={default:t,_ctx:aa},n=32):(t=String(t),r&64?(n=16,t=[_n(t)]):n=8);e.children=t,e.shapeFlag|=n}function Yt(...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=W([t.class,r.class]));else if(a==="style")t.style=ft([t.style,r.style]);else if(j1(a)){const i=t[a],o=r[a];o&&i!==o&&!(st(i)&&i.includes(o))&&(t[a]=i?[].concat(i,o):o)}else a!==""&&(t[a]=r[a])}return t}function jo(e,t,n,r=null){Hi(e,t,7,[n,r])}const HZ=TF();let WZ=0;function GZ(e,t,n){const r=e.type,a=(t?t.appContext:e.appContext)||HZ,i={uid:WZ++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new W5(!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:MF(r,a),emitsOptions:hF(r,a),emit:null,emitted:null,propsDefaults:vr,inheritAttrs:r.inheritAttrs,ctx:vr,data:vr,props:vr,attrs:vr,slots:vr,refs:vr,setupState:vr,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=rZ.bind(null,i),e.ce&&e.ce(i),i}let Qr=null;const Bt=()=>Qr||aa;let IM,Hf,SP="__VUE_INSTANCE_SETTERS__";(Hf=Qx()[SP])||(Hf=Qx()[SP]=[]),Hf.push(e=>Qr=e),IM=e=>{Hf.length>1?Hf.forEach(t=>t(e)):Hf[0](e)};const th=e=>{IM(e),e.scope.on()},Zc=()=>{Qr&&Qr.scope.off(),IM(null)};function RF(e){return e.vnode.shapeFlag&4}let tg=!1;function KZ(e,t=!1){tg=t;const{props:n,children:r}=e.vnode,a=RF(e);EZ(e,n,a,t),PZ(e,r);const i=a?UZ(e,t):void 0;return tg=!1,i}function UZ(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=tu(new Proxy(e.ctx,wZ));const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?NF(e):null;th(e),Dh();const i=nu(r,e,0,[e.props,a]);if(Ph(),Zc(),Yp(i)){if(i.then(Zc,Zc),t)return i.then(o=>{CP(e,o,t)}).catch(o=>{Q1(o,e,0)});e.asyncDep=i}else CP(e,i,t)}else OF(e,t)}function CP(e,t,n){kt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Qt(t)&&(e.setupState=oF(t)),OF(e,n)}let xP;function OF(e,t,n){const r=e.type;if(!e.render){if(!t&&xP&&!r.render){const a=r.template||kM(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Or(Or({isCustomElement:i,delimiters:s},o),l);r.render=xP(a,u)}}e.render=r.render||Ln}th(e),Dh(),SZ(e),Ph(),Zc()}function jZ(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return oi(e,"get","$attrs"),t[n]}}))}function NF(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return jZ(e)},slots:e.slots,emit:e.emit,expose:t}}function o_(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(oF(tu(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in gp)return gp[n](e)},has(t,n){return n in t||n in gp}}))}function YZ(e,t=!0){return kt(e)?e.displayName||e.name:e.name||t&&e.__name}function qZ(e){return kt(e)&&"__vccOpts"in e}const R=(e,t)=>lF(e,t,tg);function pt(e,t,n){const r=arguments.length;return r===2?Qt(t)&&!st(t)?ar(t)?re(e,null,[t]):re(e,t):re(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ar(n)&&(n=[n]),re(e,t,n))}const XZ=Symbol.for("v-scx"),ZZ=()=>lt(XZ);function mYe(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Zd(n[r],t[r]))return!1;return eh>0&&vi&&vi.push(e),!0}const QZ="3.3.4",JZ="http://www.w3.org/2000/svg",Ac=typeof document<"u"?document:null,TP=Ac&&Ac.createElement("template"),eQ={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?Ac.createElementNS(JZ,e):Ac.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>Ac.createTextNode(e),createComment:e=>Ac.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ac.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{TP.innerHTML=r?`<svg>${e}</svg>`:e;const s=TP.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 tQ(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 nQ(e,t,n){const r=e.style,a=At(n);if(n&&!a){if(t&&!At(t))for(const i in t)n[i]==null&&u2(r,i,"");for(const i in n)u2(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 kP=/\s*!important$/;function u2(e,t,n){if(st(n))n.forEach(r=>u2(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=rQ(e,t);kP.test(n)?e.setProperty(ku(r),n.replace(kP,""),"important"):e[r]=n}}const MP=["Webkit","Moz","ms"],Zw={};function rQ(e,t){const n=Zw[t];if(n)return n;let r=Ki(t);if(r!=="filter"&&r in e)return Zw[t]=r;r=om(r);for(let a=0;a<MP.length;a++){const i=MP[a]+r;if(i in e)return Zw[t]=i}return t}const AP="http://www.w3.org/1999/xlink";function aQ(e,t,n,r,a){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(AP,t.slice(6,t.length)):e.setAttributeNS(AP,t,n);else{const i=pX(t);n==null||i&&!F5(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function iQ(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=F5(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Wl(e,t,n,r){e.addEventListener(t,n,r)}function oQ(e,t,n,r){e.removeEventListener(t,n,r)}function sQ(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]=lQ(t);if(r){const u=i[t]=fQ(r,a);Wl(e,s,u,l)}else o&&(oQ(e,s,o,l),i[t]=void 0)}}const EP=/(?:Once|Passive|Capture)$/;function lQ(e){let t;if(EP.test(e)){t={};let r;for(;r=e.match(EP);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ku(e.slice(2)),t]}let Qw=0;const uQ=Promise.resolve(),cQ=()=>Qw||(uQ.then(()=>Qw=0),Qw=Date.now());function fQ(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Hi(dQ(r,n.value),t,5,[r])};return n.value=e,n.attached=cQ(),n}function dQ(e,t){if(st(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 IP=/^on[a-z]/,hQ=(e,t,n,r,a=!1,i,o,s,l)=>{t==="class"?tQ(e,r,a):t==="style"?nQ(e,n,r):j1(t)?uM(t)||sQ(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vQ(e,t,r,a))?iQ(e,t,r,i,o,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),aQ(e,t,r,a))};function vQ(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&IP.test(t)&&kt(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||IP.test(t)&&At(n)?!1:t in e}const _l="transition",pv="animation",xr=(e,{slots:t})=>pt(dZ,BF(e),t);xr.displayName="Transition";const $F={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},pQ=xr.props=Or({},gF,$F),Ku=(e,t=[])=>{st(e)?e.forEach(n=>n(...t)):e&&e(...t)},DP=e=>e?st(e)?e.some(t=>t.length>1):e.length>1:!1;function BF(e){const t={};for(const D in e)D in $F||(t[D]=e[D]);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=gQ(a),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:b,onEnterCancelled:_,onLeave:S,onLeaveCancelled:x,onBeforeAppear:C=m,onAppear:w=b,onAppearCancelled:k=_}=t,M=(D,P,N)=>{Ll(D,P?c:s),Ll(D,P?u:o),N&&N()},I=(D,P)=>{D._isLeaving=!1,Ll(D,f),Ll(D,h),Ll(D,d),P&&P()},E=D=>(P,N)=>{const z=D?w:b,F=()=>M(P,D,N);Ku(z,[P,F]),PP(()=>{Ll(P,D?l:i),Os(P,D?c:s),DP(z)||LP(P,r,p,F)})};return Or(t,{onBeforeEnter(D){Ku(m,[D]),Os(D,i),Os(D,o)},onBeforeAppear(D){Ku(C,[D]),Os(D,l),Os(D,u)},onEnter:E(!1),onAppear:E(!0),onLeave(D,P){D._isLeaving=!0;const N=()=>I(D,P);Os(D,f),FF(),Os(D,d),PP(()=>{D._isLeaving&&(Ll(D,f),Os(D,h),DP(S)||LP(D,r,g,N))}),Ku(S,[D,N])},onEnterCancelled(D){M(D,!1),Ku(_,[D])},onAppearCancelled(D){M(D,!0),Ku(k,[D])},onLeaveCancelled(D){I(D),Ku(x,[D])}})}function gQ(e){if(e==null)return null;if(Qt(e))return[Jw(e.enter),Jw(e.leave)];{const t=Jw(e);return[t,t]}}function Jw(e){return uX(e)}function Os(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ll(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 PP(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let mQ=0;function LP(e,t,n,r){const a=e._endId=++mQ,i=()=>{a===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=VF(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 VF(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),a=r(`${_l}Delay`),i=r(`${_l}Duration`),o=RP(a,i),s=r(`${pv}Delay`),l=r(`${pv}Duration`),u=RP(s,l);let c=null,f=0,d=0;t===_l?o>0&&(c=_l,f=o,d=i.length):t===pv?u>0&&(c=pv,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?_l:pv:null,d=c?c===_l?i.length:l.length:0);const h=c===_l&&/\b(transform|all)(,|$)/.test(r(`${_l}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function RP(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>OP(n)+OP(e[r])))}function OP(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function FF(){return document.body.offsetHeight}const zF=new WeakMap,HF=new WeakMap,WF={name:"TransitionGroup",props:Or({},pQ,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Bt(),r=pF();let a,i;return cl(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!SQ(a[0].el,n.vnode.el,o))return;a.forEach(bQ),a.forEach(_Q);const s=a.filter(wQ);FF(),s.forEach(l=>{const u=l.el,c=u.style;Os(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,Ll(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=En(e),s=BF(o);let l=o.tag||dt;a=i,i=t.default?CM(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Jp(c,Qp(c,s,r,n))}if(a)for(let u=0;u<a.length;u++){const c=a[u];Jp(c,Qp(c,s,r,n)),zF.set(c,c.el.getBoundingClientRect())}return re(l,null,i)}}},yQ=e=>delete e.mode;WF.props;const GF=WF;function bQ(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function _Q(e){HF.set(e,e.el.getBoundingClientRect())}function wQ(e){const t=zF.get(e),n=HF.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 SQ(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}=VF(r);return a.removeChild(r),i}const nh=e=>{const t=e.props["onUpdate:modelValue"]||!1;return st(t)?n=>I0(t,n):t};function CQ(e){e.target.composing=!0}function NP(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const DM={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e._assign=nh(a);const i=r||a.props&&a.props.type==="number";Wl(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=Zx(s)),e._assign(s)}),n&&Wl(e,"change",()=>{e.value=e.value.trim()}),t||(Wl(e,"compositionstart",CQ),Wl(e,"compositionend",NP),Wl(e,"change",NP))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},i){if(e._assign=nh(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(a||e.type==="number")&&Zx(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},Eb={deep:!0,created(e,t,n){e._assign=nh(n),Wl(e,"change",()=>{const r=e._modelValue,a=UF(e),i=e.checked,o=e._assign;if(st(r)){const s=z5(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(Y1(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(jF(e,i))})},mounted:$P,beforeUpdate(e,t,n){e._assign=nh(n),$P(e,t,n)}};function $P(e,{value:t,oldValue:n},r){e._modelValue=t,st(t)?e.checked=z5(t,r.props.value)>-1:Y1(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Qd(t,jF(e,!0)))}const KF={created(e,{value:t},n){e.checked=Qd(t,n.props.value),e._assign=nh(n),Wl(e,"change",()=>{e._assign(UF(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=nh(r),t!==n&&(e.checked=Qd(t,r.props.value))}};function UF(e){return"_value"in e?e._value:e.value}function jF(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const xQ=["ctrl","shift","alt","meta"],TQ={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)=>xQ.some(n=>e[`${n}Key`]&&!t.includes(n))},_t=(e,t)=>(n,...r)=>{for(let a=0;a<t.length;a++){const i=TQ[t[a]];if(i&&i(n,t))return}return e(n,...r)},kQ={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},vn=(e,t)=>n=>{if(!("key"in n))return;const r=ku(n.key);if(t.some(a=>a===r||kQ[a]===r))return e(n)},bn={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):gv(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),gv(e,!0),r.enter(e)):r.leave(e,()=>{gv(e,!1)}):gv(e,t))},beforeUnmount(e,{value:t}){gv(e,t)}};function gv(e,t){e.style.display=t?e._vod:"none"}const MQ=Or({patchProp:hQ},eQ);let BP;function YF(){return BP||(BP=RZ(MQ))}const rh=(...e)=>{YF().render(...e)},qF=(...e)=>{const t=YF().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=AQ(r);if(!a)return;const i=t._component;!kt(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 AQ(e){return At(e)?document.querySelector(e):e}const EQ=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},IQ={};function DQ(e,t){const n=Pt("router-view");return $(),Se(n)}const PQ=EQ(IQ,[["render",DQ]]),LQ="modulepreload",RQ=function(e,t){return new URL(e,t).href},VP={},wl=function(t,n,r){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=RQ(i,r),i in VP)return;VP[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":LQ,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})};/*!
 
-   * vue-router v4.0.16
 
-   * (c) 2022 Eduardo San Martin Morote
 
-   * @license MIT
 
-   */const XF=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Oh=e=>XF?Symbol(e):"_vr_"+e,OQ=Oh("rvlm"),FP=Oh("rvd"),s_=Oh("r"),PM=Oh("rl"),c2=Oh("rvl"),pd=typeof window<"u";function NQ(e){return e.__esModule||XF&&e[Symbol.toStringTag]==="Module"}const ir=Object.assign;function eS(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 bp=()=>{},$Q=/\/$/,BQ=e=>e.replace($Q,"");function tS(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=HQ(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function VQ(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function zP(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function FQ(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&ah(t.matched[r],n.matched[a])&&ZF(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ah(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ZF(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!zQ(e[n],t[n]))return!1;return!0}function zQ(e,t){return Array.isArray(e)?HP(e,t):Array.isArray(t)?HP(t,e):e===t}function HP(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function HQ(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 ng;(function(e){e.pop="pop",e.push="push"})(ng||(ng={}));var _p;(function(e){e.back="back",e.forward="forward",e.unknown=""})(_p||(_p={}));function WQ(e){if(!e)if(pd){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),BQ(e)}const GQ=/^[^#]+#/;function KQ(e,t){return e.replace(GQ,"#")+t}function UQ(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 l_=()=>({left:window.pageXOffset,top:window.pageYOffset});function jQ(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=UQ(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 WP(e,t){return(history.state?history.state.position-t:-1)+e}const f2=new Map;function YQ(e,t){f2.set(e,t)}function qQ(e){const t=f2.get(e);return f2.delete(e),t}let XQ=()=>location.protocol+"//"+location.host;function QF(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),zP(l,"")}return zP(n,e)+r+a}function ZQ(e,t,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const h=QF(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:ng.pop,direction:g?g>0?_p.forward:_p.back:_p.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(ir({},d.state,{scroll:l_()}),"")}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 GP(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?l_():null}}function QQ(e){const{history:t,location:n}=window,r={value:QF(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:XQ()+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=ir({},t.state,GP(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=ir({},a.value,t.state,{forward:l,scroll:l_()});i(c.current,c,!0);const f=ir({},GP(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 JQ(e){e=WQ(e);const t=QQ(e),n=ZQ(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=ir({location:"",base:e,go:r,createHref:KQ.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 eJ(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),JQ(e)}function tJ(e){return typeof e=="string"||e&&typeof e=="object"}function JF(e){return typeof e=="string"||typeof e=="symbol"}const Sl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ez=Oh("nf");var KP;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(KP||(KP={}));function ih(e,t){return ir(new Error,{type:e,[ez]:!0},t)}function Cl(e,t){return e instanceof Error&&ez in e&&(t==null||!!(e.type&t))}const UP="[^/]+?",nJ={sensitive:!1,strict:!1,start:!0,end:!0},rJ=/[.+*?^${}()[\]/\\]/g;function aJ(e,t){const n=ir({},nJ,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(rJ,"\\$&"),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||UP;if(b!==UP){h+=10;try{new RegExp(`(${b})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${v}" (${b}): `+S.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 iJ(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 oJ(e,t){let n=0;const r=e.score,a=t.score;for(;n<r.length&&n<a.length;){const i=iJ(r[n],a[n]);if(i)return i;n++}if(Math.abs(a.length-r.length)===1){if(jP(r))return 1;if(jP(a))return-1}return a.length-r.length}function jP(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const sJ={type:0,value:""},lJ=/[a-zA-Z0-9_]/;function uJ(e){if(!e)return[[]];if(e==="/")return[[sJ]];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:lJ.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 cJ(e,t,n){const r=aJ(uJ(e.path),n),a=ir(r,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function fJ(e,t){const n=[],r=new Map;t=qP({strict:!1,end:!0,sensitive:!1},t);function a(c){return r.get(c)}function i(c,f,d){const h=!d,v=hJ(c);v.aliasOf=d&&d.record;const p=qP(t,c),g=[v];if("alias"in c){const _=typeof c.alias=="string"?[c.alias]:c.alias;for(const S of _)g.push(ir({},v,{components:d?d.record.components:v.components,path:S,aliasOf:d?d.record:v}))}let m,b;for(const _ of g){const{path:S}=_;if(f&&S[0]!=="/"){const x=f.record.path,C=x[x.length-1]==="/"?"":"/";_.path=f.record.path+(S&&C+S)}if(m=cJ(_,f,p),d?d.alias.push(m):(b=b||m,b!==m&&b.alias.push(m),h&&c.name&&!YP(m)&&o(c.name)),"children"in v){const x=v.children;for(let C=0;C<x.length;C++)i(x[C],m,d&&d.children[C])}d=d||m,l(m)}return b?()=>{o(b)}:bp}function o(c){if(JF(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&&oJ(c,n[f])>=0&&(c.record.path!==n[f].record.path||!tz(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!YP(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 ih(1,{location:c});p=d.record.name,h=ir(dJ(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 ih(1,{location:c,currentLocation:f});p=d.record.name,h=ir({},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:pJ(g)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function dJ(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function hJ(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:vJ(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function vJ(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 YP(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function pJ(e){return e.reduce((t,n)=>ir(t,n.meta),{})}function qP(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function tz(e,t){return t.children.some(n=>n===e||tz(e,n))}const nz=/#/g,gJ=/&/g,mJ=/\//g,yJ=/=/g,bJ=/\?/g,rz=/\+/g,_J=/%5B/g,wJ=/%5D/g,az=/%5E/g,SJ=/%60/g,iz=/%7B/g,CJ=/%7C/g,oz=/%7D/g,xJ=/%20/g;function LM(e){return encodeURI(""+e).replace(CJ,"|").replace(_J,"[").replace(wJ,"]")}function TJ(e){return LM(e).replace(iz,"{").replace(oz,"}").replace(az,"^")}function d2(e){return LM(e).replace(rz,"%2B").replace(xJ,"+").replace(nz,"%23").replace(gJ,"%26").replace(SJ,"`").replace(iz,"{").replace(oz,"}").replace(az,"^")}function kJ(e){return d2(e).replace(yJ,"%3D")}function MJ(e){return LM(e).replace(nz,"%23").replace(bJ,"%3F")}function AJ(e){return e==null?"":MJ(e).replace(mJ,"%2F")}function Ib(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function EJ(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(rz," "),o=i.indexOf("="),s=Ib(o<0?i:i.slice(0,o)),l=o<0?null:Ib(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 XP(e){let t="";for(let n in e){const r=e[n];if(n=kJ(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Array.isArray(r)?r.map(i=>i&&d2(i)):[r&&d2(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function IJ(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 mv(){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 Fl(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(ih(4,{from:n,to:t})):f instanceof Error?s(f):tJ(f)?s(ih(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 nS(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(DJ(s)){const u=(s.__vccOpts||s)[t];u&&a.push(Fl(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=NQ(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&Fl(d,n,r,i,o)()}))}}return a}function DJ(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ZP(e){const t=lt(s_),n=lt(PM),r=R(()=>t.resolve(y(e.to))),a=R(()=>{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(ah.bind(null,c));if(d>-1)return d;const h=QP(l[u-2]);return u>1&&QP(c)===h&&f[f.length-1].path!==h?f.findIndex(ah.bind(null,l[u-2])):d}),i=R(()=>a.value>-1&&OJ(n.params,r.value.params)),o=R(()=>a.value>-1&&a.value===n.matched.length-1&&ZF(n.params,r.value.params));function s(l={}){return RJ(l)?t[y(e.replace)?"replace":"push"](y(e.to)).catch(bp):Promise.resolve()}return{route:r,href:R(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const PJ=te({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:ZP,setup(e,{slots:t}){const n=Sn(ZP(e)),{options:r}=lt(s_),a=R(()=>({[JP(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[JP(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:pt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),LJ=PJ;function RJ(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 OJ(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 QP(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const JP=(e,t,n)=>e??t??n,NJ=te({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=lt(c2),a=R(()=>e.route||r.value),i=lt(FP,0),o=R(()=>a.value.matched[i]);Jt(FP,i+1),Jt(OQ,o),Jt(c2,a);const s=U();return Be(()=>[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||!ah(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 eL(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=pt(c,ir({},h,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[f]=null)},ref:s}));return eL(n.default,{Component:p,route:l})||p}}});function eL(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const $J=NJ;function BJ(e){const t=fJ(e.routes,e),n=e.parseQuery||EJ,r=e.stringifyQuery||XP,a=e.history,i=mv(),o=mv(),s=mv(),l=zn(Sl);let u=Sl;pd&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=eS.bind(null,oe=>""+oe),f=eS.bind(null,AJ),d=eS.bind(null,Ib);function h(oe,se){let le,ne;return JF(oe)?(le=t.getRecordMatcher(oe),ne=se):ne=oe,t.addRoute(ne,le)}function v(oe){const se=t.getRecordMatcher(oe);se&&t.removeRoute(se)}function p(){return t.getRoutes().map(oe=>oe.record)}function g(oe){return!!t.getRecordMatcher(oe)}function m(oe,se){if(se=ir({},se||l.value),typeof oe=="string"){const X=tS(n,oe,se.path),ae=t.resolve({path:X.path},se),ge=a.createHref(X.fullPath);return ir(X,ae,{params:d(ae.params),hash:Ib(X.hash),redirectedFrom:void 0,href:ge})}let le;if("path"in oe)le=ir({},oe,{path:tS(n,oe.path,se.path).path});else{const X=ir({},oe.params);for(const ae in X)X[ae]==null&&delete X[ae];le=ir({},oe,{params:f(oe.params)}),se.params=f(se.params)}const ne=t.resolve(le,se),Ce=oe.hash||"";ne.params=c(d(ne.params));const Te=VQ(r,ir({},oe,{hash:TJ(Ce),path:ne.path})),he=a.createHref(Te);return ir({fullPath:Te,hash:Ce,query:r===XP?IJ(oe.query):oe.query||{}},ne,{redirectedFrom:void 0,href:he})}function b(oe){return typeof oe=="string"?tS(n,oe,l.value.path):ir({},oe)}function _(oe,se){if(u!==oe)return ih(8,{from:se,to:oe})}function S(oe){return w(oe)}function x(oe){return S(ir(b(oe),{replace:!0}))}function C(oe){const se=oe.matched[oe.matched.length-1];if(se&&se.redirect){const{redirect:le}=se;let ne=typeof le=="function"?le(oe):le;return typeof ne=="string"&&(ne=ne.includes("?")||ne.includes("#")?ne=b(ne):{path:ne},ne.params={}),ir({query:oe.query,hash:oe.hash,params:oe.params},ne)}}function w(oe,se){const le=u=m(oe),ne=l.value,Ce=oe.state,Te=oe.force,he=oe.replace===!0,X=C(le);if(X)return w(ir(b(X),{state:Ce,force:Te,replace:he}),se||le);const ae=le;ae.redirectedFrom=se;let ge;return!Te&&FQ(r,ne,le)&&(ge=ih(16,{to:ae,from:ne}),G(ne,ne,!0,!1)),(ge?Promise.resolve(ge):M(ae,ne)).catch(ke=>Cl(ke)?Cl(ke,2)?ke:L(ke):B(ke,ae,ne)).then(ke=>{if(ke){if(Cl(ke,2))return w(ir(b(ke.to),{state:Ce,force:Te,replace:he}),se||ae)}else ke=E(ae,ne,!0,he,Ce);return I(ae,ne,ke),ke})}function k(oe,se){const le=_(oe,se);return le?Promise.reject(le):Promise.resolve()}function M(oe,se){let le;const[ne,Ce,Te]=VJ(oe,se);le=nS(ne.reverse(),"beforeRouteLeave",oe,se);for(const X of ne)X.leaveGuards.forEach(ae=>{le.push(Fl(ae,oe,se))});const he=k.bind(null,oe,se);return le.push(he),Wf(le).then(()=>{le=[];for(const X of i.list())le.push(Fl(X,oe,se));return le.push(he),Wf(le)}).then(()=>{le=nS(Ce,"beforeRouteUpdate",oe,se);for(const X of Ce)X.updateGuards.forEach(ae=>{le.push(Fl(ae,oe,se))});return le.push(he),Wf(le)}).then(()=>{le=[];for(const X of oe.matched)if(X.beforeEnter&&!se.matched.includes(X))if(Array.isArray(X.beforeEnter))for(const ae of X.beforeEnter)le.push(Fl(ae,oe,se));else le.push(Fl(X.beforeEnter,oe,se));return le.push(he),Wf(le)}).then(()=>(oe.matched.forEach(X=>X.enterCallbacks={}),le=nS(Te,"beforeRouteEnter",oe,se),le.push(he),Wf(le))).then(()=>{le=[];for(const X of o.list())le.push(Fl(X,oe,se));return le.push(he),Wf(le)}).catch(X=>Cl(X,8)?X:Promise.reject(X))}function I(oe,se,le){for(const ne of s.list())ne(oe,se,le)}function E(oe,se,le,ne,Ce){const Te=_(oe,se);if(Te)return Te;const he=se===Sl,X=pd?history.state:{};le&&(ne||he?a.replace(oe.fullPath,ir({scroll:he&&X&&X.scroll},Ce)):a.push(oe.fullPath,Ce)),l.value=oe,G(oe,se,le,he),L()}let D;function P(){D||(D=a.listen((oe,se,le)=>{const ne=m(oe),Ce=C(ne);if(Ce){w(ir(Ce,{replace:!0}),ne).catch(bp);return}u=ne;const Te=l.value;pd&&YQ(WP(Te.fullPath,le.delta),l_()),M(ne,Te).catch(he=>Cl(he,12)?he:Cl(he,2)?(w(he.to,ne).then(X=>{Cl(X,20)&&!le.delta&&le.type===ng.pop&&a.go(-1,!1)}).catch(bp),Promise.reject()):(le.delta&&a.go(-le.delta,!1),B(he,ne,Te))).then(he=>{he=he||E(ne,Te,!1),he&&(le.delta?a.go(-le.delta,!1):le.type===ng.pop&&Cl(he,20)&&a.go(-1,!1)),I(ne,Te,he)}).catch(bp)}))}let N=mv(),z=mv(),F;function B(oe,se,le){L(oe);const ne=z.list();return ne.length?ne.forEach(Ce=>Ce(oe,se,le)):console.error(oe),Promise.reject(oe)}function V(){return F&&l.value!==Sl?Promise.resolve():new Promise((oe,se)=>{N.add([oe,se])})}function L(oe){return F||(F=!oe,P(),N.list().forEach(([se,le])=>oe?le(oe):se()),N.reset()),oe}function G(oe,se,le,ne){const{scrollBehavior:Ce}=e;if(!pd||!Ce)return Promise.resolve();const Te=!le&&qQ(WP(oe.fullPath,0))||(ne||!le)&&history.state&&history.state.scroll||null;return ct().then(()=>Ce(oe,se,Te)).then(he=>he&&jQ(he)).catch(he=>B(he,oe,se))}const q=oe=>a.go(oe);let Q;const ie=new Set;return{currentRoute:l,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:S,replace:x,go:q,back:()=>q(-1),forward:()=>q(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:z.add,isReady:V,install(oe){const se=this;oe.component("RouterLink",LJ),oe.component("RouterView",$J),oe.config.globalProperties.$router=se,Object.defineProperty(oe.config.globalProperties,"$route",{enumerable:!0,get:()=>y(l)}),pd&&!Q&&l.value===Sl&&(Q=!0,S(a.location).catch(Ce=>{}));const le={};for(const Ce in Sl)le[Ce]=R(()=>l.value[Ce]);oe.provide(s_,se),oe.provide(PM,Sn(le)),oe.provide(c2,l);const ne=oe.unmount;ie.add(oe),oe.unmount=function(){ie.delete(oe),ie.size<1&&(u=Sl,D&&D(),D=null,l.value=Sl,Q=!1,F=!1),ne()}}}}function Wf(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function VJ(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=>ah(u,s))?r.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>ah(u,l))||a.push(l))}return[n,r,a]}function yYe(){return lt(s_)}function bYe(){return lt(PM)}const RM=BJ({history:eJ(),routes:[{path:"/",name:"启动页",component:()=>wl(()=>import("./openpage-a1407ac0.js"),["./openpage-a1407ac0.js","./request-72c86d38.js","./header-ad193d60.js","./header-792950ce.css","./openpage-d0500907.css"],import.meta.url),meta:{keepAlive:!1,title:"启动页"},children:[{path:"/home/newfile",name:"首页",component:()=>wl(()=>import("./newfile-2910db76.js"),["./newfile-2910db76.js","./request-72c86d38.js","./newfile-fad98ce2.css"],import.meta.url)},{path:"/home/querylist",name:"打开",component:()=>wl(()=>import("./querylist-83a298b8.js"),["./querylist-83a298b8.js","./request-72c86d38.js","./querylist-e4808f15.css"],import.meta.url)},{path:"/home/savefile",name:"savefile",component:()=>wl(()=>import("./savefile-82afef20.js"),["./savefile-82afef20.js","./request-72c86d38.js"],import.meta.url)}]},{path:"/index",name:"主页1",component:()=>wl(()=>import("./index-0c344e39.js"),["./index-0c344e39.js","./f41-fb19f8ee.js","./request-72c86d38.js","./f41-9b395ed2.css","./header-ad193d60.js","./header-792950ce.css","./index-5fe584bb.js","./vue-flow-core-ee983800.js","./delete-d71df985.js","./delete-c44b0073.css","./f22-deb38015.js","./index-b2a1d9f7.css","./index-74b1ca7e.css"],import.meta.url),meta:{keepAlive:!1,title:"主页1"}},{path:"/home",name:"主页",component:()=>wl(()=>import("./home-378afcdd.js").then(e=>e.h),["./home-378afcdd.js","./f41-fb19f8ee.js","./request-72c86d38.js","./f41-9b395ed2.css","./header-ad193d60.js","./header-792950ce.css","./f22-deb38015.js","./vue-flow-core-ee983800.js","./vue-flow-background-9f89bff3.js","./home-1799048b.css"],import.meta.url),meta:{keepAlive:!1,title:"主页"}},{path:"/vueflow",name:"vueflow",component:()=>wl(()=>import("./index-5fe584bb.js").then(e=>e.i),["./index-5fe584bb.js","./vue-flow-core-ee983800.js","./delete-d71df985.js","./delete-c44b0073.css","./f22-deb38015.js","./index-b2a1d9f7.css"],import.meta.url),meta:{keepAlive:!1,title:"vueflow"}},{path:"/demo",name:"demo",component:()=>wl(()=>import("./demo-94383324.js"),["./demo-94383324.js","./vue-flow-core-ee983800.js","./vue-flow-background-9f89bff3.js","./delete-d71df985.js","./delete-c44b0073.css","./demo-22818a63.css"],import.meta.url),meta:{keepAlive:!1,title:"vueflow"}}]});RM.beforeEach((e,t,n)=>{window.document.title=e.name,n()});RM.afterEach((e,t,n)=>{window.scrollTo(0,0)});var FJ=!1;/*!
 
-  * pinia v2.1.6
 
-  * (c) 2023 Eduardo San Martin Morote
 
-  * @license MIT
 
-  */const zJ=Symbol();var tL;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(tL||(tL={}));function HJ(){const e=G5(!0),t=e.run(()=>U({}));let n=[],r=[];const a=tu({install(i){a._a=i,i.provide(zJ,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!FJ?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}function WJ(e){return typeof e=="object"&&e!==null}function nL(e,t){return e=WJ(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 GJ(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function KJ(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 UJ(e,t){return t.reduce((n,r)=>{const a=r.split(".");return KJ(n,a,GJ(e,a))},{})}function rL(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 aL(e,{storage:t,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?UJ(e,a):e;t.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function jJ(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=>nL(s,e)):[nL(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=>{aL(a.$state,s)})},a.$hydrate=({runHooks:s=!0}={})=>{o.forEach(l=>{const{beforeRestore:u,afterRestore:c}=l;s&&(u==null||u(t)),rL(a,l),s&&(c==null||c(t))})},o.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;l==null||l(t),rL(a,s),u==null||u(t),a.$subscribe((c,f)=>{aL(f,s)},{detached:!0})})}}var YJ=jJ();const sz=HJ();sz.use(YJ);const qJ='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',XJ=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,iL=e=>Array.from(e.querySelectorAll(qJ)).filter(t=>ZJ(t)&&XJ(t)),ZJ=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}},P0=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},lz=e=>!e.getAttribute("aria-owns"),uz=(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},L0=e=>{e&&(e.focus(),!lz(e)&&e.click())},cr=(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)},oL=e=>t=>t.pointerType==="mouse"?e(t):void 0;var QJ=Object.defineProperty,JJ=Object.defineProperties,eee=Object.getOwnPropertyDescriptors,sL=Object.getOwnPropertySymbols,tee=Object.prototype.hasOwnProperty,nee=Object.prototype.propertyIsEnumerable,lL=(e,t,n)=>t in e?QJ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ree=(e,t)=>{for(var n in t||(t={}))tee.call(t,n)&&lL(e,n,t[n]);if(sL)for(var n of sL(t))nee.call(t,n)&&lL(e,n,t[n]);return e},aee=(e,t)=>JJ(e,eee(t));function uL(e,t){var n;const r=zn();return yi(()=>{r.value=e()},aee(ree({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Lh(r)}var cL;const fn=typeof window<"u",iee=e=>typeof e<"u",oee=e=>typeof e=="function",see=e=>typeof e=="string",oh=()=>{},cz=fn&&((cL=window==null?void 0:window.navigator)==null?void 0:cL.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function du(e){return typeof e=="function"?e():y(e)}function fz(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 lee(e,t={}){let n,r,a=oh;const i=s=>{clearTimeout(s),a(),a=oh};return s=>{const l=du(e),u=du(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 uee(e,t=!0,n=!0,r=!1){let a=0,i,o=!0,s=oh,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=oh)};return f=>{const d=du(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 cee(e){return e}function u_(e){return K5()?(U5(e),!0):!1}function fee(e,t=200,n={}){return fz(lee(t,n),e)}function dee(e,t=200,n={}){const r=U(e.value),a=fee(()=>{r.value=e.value},t,n);return Be(e,()=>a()),r}function dz(e,t=200,n=!1,r=!0,a=!1){return fz(uee(t,n,r,a),e)}function OM(e,t=!0){Bt()?Ft(e):t?e():ct(e)}function ff(e,t,n={}){const{immediate:r=!0}=n,a=U(!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)},du(t))}return r&&(a.value=!0,fn&&l()),u_(s),{isPending:Lh(a),start:l,stop:s}}function pi(e){var t;const n=du(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Nh=fn?window:void 0,hee=fn?window.document:void 0;function Qn(...e){let t,n,r,a;if(see(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=Nh):[t,n,r,a]=e,!t)return oh;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=Be(()=>[pi(t),du(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 u_(u),u}let fL=!1;function NM(e,t,n={}){const{window:r=Nh,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;cz&&!fL&&(fL=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",oh)));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=pi(h);return v&&(d.target===v||d.composedPath().includes(v))}}),c=[Qn(r,"click",d=>{const h=pi(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}),Qn(r,"pointerdown",d=>{const h=pi(e);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&Qn(r,"blur",d=>{var h;const v=pi(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 vee(e,t=!1){const n=U(),r=()=>n.value=!!e();return r(),OM(r,t),n}function pee(e){return JSON.parse(JSON.stringify(e))}const dL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},hL="__vueuse_ssr_handlers__";dL[hL]=dL[hL]||{};function gee(e,t,{window:n=Nh,initialValue:r=""}={}){const a=U(r),i=R(()=>{var o;return pi(t)||((o=n==null?void 0:n.document)==null?void 0:o.documentElement)});return Be([i,()=>du(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}),Be(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(du(e),o)}),a}function mee({document:e=hee}={}){if(!e)return U("visible");const t=U(e.visibilityState);return Qn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var vL=Object.getOwnPropertySymbols,yee=Object.prototype.hasOwnProperty,bee=Object.prototype.propertyIsEnumerable,_ee=(e,t)=>{var n={};for(var r in e)yee.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&vL)for(var r of vL(e))t.indexOf(r)<0&&bee.call(e,r)&&(n[r]=e[r]);return n};function wa(e,t,n={}){const r=n,{window:a=Nh}=r,i=_ee(r,["window"]);let o;const s=vee(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Be(()=>pi(e),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(t),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return u_(c),{isSupported:s,stop:c}}function pL(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0}=t,o=U(0),s=U(0),l=U(0),u=U(0),c=U(0),f=U(0),d=U(0),h=U(0);function v(){const p=pi(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 wa(e,v),Be(()=>pi(e),p=>!p&&v()),a&&Qn("scroll",v,{capture:!0,passive:!0}),r&&Qn("resize",v,{passive:!0}),OM(()=>{i&&v()}),{height:o,bottom:s,left:l,right:u,top:c,width:f,x:d,y:h,update:v}}var gL;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(gL||(gL={}));var wee=Object.defineProperty,mL=Object.getOwnPropertySymbols,See=Object.prototype.hasOwnProperty,Cee=Object.prototype.propertyIsEnumerable,yL=(e,t,n)=>t in e?wee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xee=(e,t)=>{for(var n in t||(t={}))See.call(t,n)&&yL(e,n,t[n]);if(mL)for(var n of mL(t))Cee.call(t,n)&&yL(e,n,t[n]);return e};const Tee={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]};xee({linear:cee},Tee);function kee(e,t,n,r={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=r,d=Bt(),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?oee(s)?s(m):pee(m):m,g=()=>iee(e[t])?p(e[t]):f;if(l){const m=g(),b=U(m);return Be(()=>e[t],_=>b.value=p(_)),Be(b,_=>{(_!==e[t]||c)&&h(v,_)},{deep:c}),b}else return R({get(){return g()},set(m){h(v,m)}})}function Mee({window:e=Nh}={}){if(!e)return U(!1);const t=U(e.document.hasFocus());return Qn(e,"blur",()=>{t.value=!1}),Qn(e,"focus",()=>{t.value=!0}),t}function Aee(e={}){const{window:t=Nh,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=e,o=U(n),s=U(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(),OM(l),Qn("resize",l,{passive:!0}),a&&Qn("orientationchange",l,{passive:!0}),{width:o,height:s}}const hz=()=>fn&&/firefox/i.test(window.navigator.userAgent),Eee=(e,t)=>{if(!fn||!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},bL=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Iee=(e,t)=>Math.abs(bL(e)-bL(t)),$M=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 Dee=typeof global=="object"&&global&&global.Object===Object&&global;const vz=Dee;var Pee=typeof self=="object"&&self&&self.Object===Object&&self,Lee=vz||Pee||Function("return this")();const $o=Lee;var Ree=$o.Symbol;const Ui=Ree;var pz=Object.prototype,Oee=pz.hasOwnProperty,Nee=pz.toString,yv=Ui?Ui.toStringTag:void 0;function $ee(e){var t=Oee.call(e,yv),n=e[yv];try{e[yv]=void 0;var r=!0}catch{}var a=Nee.call(e);return r&&(t?e[yv]=n:delete e[yv]),a}var Bee=Object.prototype,Vee=Bee.toString;function Fee(e){return Vee.call(e)}var zee="[object Null]",Hee="[object Undefined]",_L=Ui?Ui.toStringTag:void 0;function Tf(e){return e==null?e===void 0?Hee:zee:_L&&_L in Object(e)?$ee(e):Fee(e)}function gs(e){return e!=null&&typeof e=="object"}var Wee="[object Symbol]";function c_(e){return typeof e=="symbol"||gs(e)&&Tf(e)==Wee}function gz(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 Gee=Array.isArray;const $a=Gee;var Kee=1/0,wL=Ui?Ui.prototype:void 0,SL=wL?wL.toString:void 0;function mz(e){if(typeof e=="string")return e;if($a(e))return gz(e,mz)+"";if(c_(e))return SL?SL.call(e):"";var t=e+"";return t=="0"&&1/e==-Kee?"-0":t}var Uee=/\s/;function jee(e){for(var t=e.length;t--&&Uee.test(e.charAt(t)););return t}var Yee=/^\s+/;function qee(e){return e&&e.slice(0,jee(e)+1).replace(Yee,"")}function Ba(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var CL=0/0,Xee=/^[-+]0x[0-9a-f]+$/i,Zee=/^0b[01]+$/i,Qee=/^0o[0-7]+$/i,Jee=parseInt;function h2(e){if(typeof e=="number")return e;if(c_(e))return CL;if(Ba(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ba(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=qee(e);var n=Zee.test(e);return n||Qee.test(e)?Jee(e.slice(2),n?2:8):Xee.test(e)?CL:+e}var xL=1/0,ete=17976931348623157e292;function tte(e){if(!e)return e===0?e:0;if(e=h2(e),e===xL||e===-xL){var t=e<0?-1:1;return t*ete}return e===e?e:0}function nte(e){var t=tte(e),n=t%1;return t===t?n?t-n:t:0}function BM(e){return e}var rte="[object AsyncFunction]",ate="[object Function]",ite="[object GeneratorFunction]",ote="[object Proxy]";function VM(e){if(!Ba(e))return!1;var t=Tf(e);return t==ate||t==ite||t==rte||t==ote}var ste=$o["__core-js_shared__"];const rS=ste;var TL=function(){var e=/[^.]+$/.exec(rS&&rS.keys&&rS.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function lte(e){return!!TL&&TL in e}var ute=Function.prototype,cte=ute.toString;function kf(e){if(e!=null){try{return cte.call(e)}catch{}try{return e+""}catch{}}return""}var fte=/[\\^$.*+?()[\]{}|]/g,dte=/^\[object .+?Constructor\]$/,hte=Function.prototype,vte=Object.prototype,pte=hte.toString,gte=vte.hasOwnProperty,mte=RegExp("^"+pte.call(gte).replace(fte,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function yte(e){if(!Ba(e)||lte(e))return!1;var t=VM(e)?mte:dte;return t.test(kf(e))}function bte(e,t){return e==null?void 0:e[t]}function Mf(e,t){var n=bte(e,t);return yte(n)?n:void 0}var _te=Mf($o,"WeakMap");const v2=_te;var kL=Object.create,wte=function(){function e(){}return function(t){if(!Ba(t))return{};if(kL)return kL(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Ste=wte;function Cte(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 xte(){}function yz(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Tte=800,kte=16,Mte=Date.now;function Ate(e){var t=0,n=0;return function(){var r=Mte(),a=kte-(r-n);if(n=r,a>0){if(++t>=Tte)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ete(e){return function(){return e}}var Ite=function(){try{var e=Mf(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Db=Ite;var Dte=Db?function(e,t){return Db(e,"toString",{configurable:!0,enumerable:!1,value:Ete(t),writable:!0})}:BM;const Pte=Dte;var Lte=Ate(Pte);const bz=Lte;function Rte(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function _z(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 Ote(e){return e!==e}function Nte(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function $te(e,t,n){return t===t?Nte(e,t,n):_z(e,Ote,n)}function Bte(e,t){var n=e==null?0:e.length;return!!n&&$te(e,t,0)>-1}var Vte=9007199254740991,Fte=/^(?:0|[1-9]\d*)$/;function f_(e,t){var n=typeof e;return t=t??Vte,!!t&&(n=="number"||n!="symbol"&&Fte.test(e))&&e>-1&&e%1==0&&e<t}function FM(e,t,n){t=="__proto__"&&Db?Db(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function lm(e,t){return e===t||e!==e&&t!==t}var zte=Object.prototype,Hte=zte.hasOwnProperty;function zM(e,t,n){var r=e[t];(!(Hte.call(e,t)&&lm(r,n))||n===void 0&&!(t in e))&&FM(e,t,n)}function um(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?FM(n,s,l):zM(n,s,l)}return n}var ML=Math.max;function wz(e,t,n){return t=ML(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=ML(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),Cte(e,this,s)}}function Sz(e,t){return bz(wz(e,t,BM),e+"")}var Wte=9007199254740991;function HM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Wte}function $h(e){return e!=null&&HM(e.length)&&!VM(e)}function Gte(e,t,n){if(!Ba(n))return!1;var r=typeof t;return(r=="number"?$h(n)&&f_(t,n.length):r=="string"&&t in n)?lm(n[t],e):!1}function Kte(e){return Sz(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&&Gte(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 Ute=Object.prototype;function WM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Ute;return e===n}function jte(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Yte="[object Arguments]";function AL(e){return gs(e)&&Tf(e)==Yte}var Cz=Object.prototype,qte=Cz.hasOwnProperty,Xte=Cz.propertyIsEnumerable,Zte=AL(function(){return arguments}())?AL:function(e){return gs(e)&&qte.call(e,"callee")&&!Xte.call(e,"callee")};const rg=Zte;function Qte(){return!1}var xz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,EL=xz&&typeof module=="object"&&module&&!module.nodeType&&module,Jte=EL&&EL.exports===xz,IL=Jte?$o.Buffer:void 0,ene=IL?IL.isBuffer:void 0,tne=ene||Qte;const ag=tne;var nne="[object Arguments]",rne="[object Array]",ane="[object Boolean]",ine="[object Date]",one="[object Error]",sne="[object Function]",lne="[object Map]",une="[object Number]",cne="[object Object]",fne="[object RegExp]",dne="[object Set]",hne="[object String]",vne="[object WeakMap]",pne="[object ArrayBuffer]",gne="[object DataView]",mne="[object Float32Array]",yne="[object Float64Array]",bne="[object Int8Array]",_ne="[object Int16Array]",wne="[object Int32Array]",Sne="[object Uint8Array]",Cne="[object Uint8ClampedArray]",xne="[object Uint16Array]",Tne="[object Uint32Array]",hr={};hr[mne]=hr[yne]=hr[bne]=hr[_ne]=hr[wne]=hr[Sne]=hr[Cne]=hr[xne]=hr[Tne]=!0;hr[nne]=hr[rne]=hr[pne]=hr[ane]=hr[gne]=hr[ine]=hr[one]=hr[sne]=hr[lne]=hr[une]=hr[cne]=hr[fne]=hr[dne]=hr[hne]=hr[vne]=!1;function kne(e){return gs(e)&&HM(e.length)&&!!hr[Tf(e)]}function GM(e){return function(t){return e(t)}}var Tz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wp=Tz&&typeof module=="object"&&module&&!module.nodeType&&module,Mne=wp&&wp.exports===Tz,aS=Mne&&vz.process,Ane=function(){try{var e=wp&&wp.require&&wp.require("util").types;return e||aS&&aS.binding&&aS.binding("util")}catch{}}();const sh=Ane;var DL=sh&&sh.isTypedArray,Ene=DL?GM(DL):kne;const KM=Ene;var Ine=Object.prototype,Dne=Ine.hasOwnProperty;function kz(e,t){var n=$a(e),r=!n&&rg(e),a=!n&&!r&&ag(e),i=!n&&!r&&!a&&KM(e),o=n||r||a||i,s=o?jte(e.length,String):[],l=s.length;for(var u in e)(t||Dne.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||f_(u,l)))&&s.push(u);return s}function Mz(e,t){return function(n){return e(t(n))}}var Pne=Mz(Object.keys,Object);const Lne=Pne;var Rne=Object.prototype,One=Rne.hasOwnProperty;function Nne(e){if(!WM(e))return Lne(e);var t=[];for(var n in Object(e))One.call(e,n)&&n!="constructor"&&t.push(n);return t}function cm(e){return $h(e)?kz(e):Nne(e)}function $ne(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Bne=Object.prototype,Vne=Bne.hasOwnProperty;function Fne(e){if(!Ba(e))return $ne(e);var t=WM(e),n=[];for(var r in e)r=="constructor"&&(t||!Vne.call(e,r))||n.push(r);return n}function fm(e){return $h(e)?kz(e,!0):Fne(e)}var zne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hne=/^\w*$/;function UM(e,t){if($a(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||c_(e)?!0:Hne.test(e)||!zne.test(e)||t!=null&&e in Object(t)}var Wne=Mf(Object,"create");const ig=Wne;function Gne(){this.__data__=ig?ig(null):{},this.size=0}function Kne(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Une="__lodash_hash_undefined__",jne=Object.prototype,Yne=jne.hasOwnProperty;function qne(e){var t=this.__data__;if(ig){var n=t[e];return n===Une?void 0:n}return Yne.call(t,e)?t[e]:void 0}var Xne=Object.prototype,Zne=Xne.hasOwnProperty;function Qne(e){var t=this.__data__;return ig?t[e]!==void 0:Zne.call(t,e)}var Jne="__lodash_hash_undefined__";function ere(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ig&&t===void 0?Jne:t,this}function df(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])}}df.prototype.clear=Gne;df.prototype.delete=Kne;df.prototype.get=qne;df.prototype.has=Qne;df.prototype.set=ere;function tre(){this.__data__=[],this.size=0}function d_(e,t){for(var n=e.length;n--;)if(lm(e[n][0],t))return n;return-1}var nre=Array.prototype,rre=nre.splice;function are(e){var t=this.__data__,n=d_(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():rre.call(t,n,1),--this.size,!0}function ire(e){var t=this.__data__,n=d_(t,e);return n<0?void 0:t[n][1]}function ore(e){return d_(this.__data__,e)>-1}function sre(e,t){var n=this.__data__,r=d_(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function fl(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])}}fl.prototype.clear=tre;fl.prototype.delete=are;fl.prototype.get=ire;fl.prototype.has=ore;fl.prototype.set=sre;var lre=Mf($o,"Map");const og=lre;function ure(){this.size=0,this.__data__={hash:new df,map:new(og||fl),string:new df}}function cre(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function h_(e,t){var n=e.__data__;return cre(t)?n[typeof t=="string"?"string":"hash"]:n.map}function fre(e){var t=h_(this,e).delete(e);return this.size-=t?1:0,t}function dre(e){return h_(this,e).get(e)}function hre(e){return h_(this,e).has(e)}function vre(e,t){var n=h_(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function dl(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])}}dl.prototype.clear=ure;dl.prototype.delete=fre;dl.prototype.get=dre;dl.prototype.has=hre;dl.prototype.set=vre;var pre="Expected a function";function v_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pre);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(v_.Cache||dl),n}v_.Cache=dl;var gre=500;function mre(e){var t=v_(e,function(r){return n.size===gre&&n.clear(),r}),n=t.cache;return t}var yre=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,bre=/\\(\\)?/g,_re=mre(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(yre,function(n,r,a,i){t.push(a?i.replace(bre,"$1"):r||n)}),t});const wre=_re;function Sre(e){return e==null?"":mz(e)}function p_(e,t){return $a(e)?e:UM(e,t)?[e]:wre(Sre(e))}var Cre=1/0;function dm(e){if(typeof e=="string"||c_(e))return e;var t=e+"";return t=="0"&&1/e==-Cre?"-0":t}function jM(e,t){t=p_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[dm(t[n++])];return n&&n==r?e:void 0}function tr(e,t,n){var r=e==null?void 0:jM(e,t);return r===void 0?n:r}function YM(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var PL=Ui?Ui.isConcatSpreadable:void 0;function xre(e){return $a(e)||rg(e)||!!(PL&&e&&e[PL])}function hm(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=xre),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?hm(s,t-1,n,r,a):YM(a,s):r||(a[a.length]=s)}return a}function Az(e){var t=e==null?0:e.length;return t?hm(e,1):[]}function Tre(e){return bz(wz(e,void 0,Az),e+"")}var kre=Mz(Object.getPrototypeOf,Object);const qM=kre;var Mre="[object Object]",Are=Function.prototype,Ere=Object.prototype,Ez=Are.toString,Ire=Ere.hasOwnProperty,Dre=Ez.call(Object);function Pre(e){if(!gs(e)||Tf(e)!=Mre)return!1;var t=qM(e);if(t===null)return!0;var n=Ire.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ez.call(n)==Dre}function hf(){if(!arguments.length)return[];var e=arguments[0];return $a(e)?e:[e]}function Lre(){this.__data__=new fl,this.size=0}function Rre(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ore(e){return this.__data__.get(e)}function Nre(e){return this.__data__.has(e)}var $re=200;function Bre(e,t){var n=this.__data__;if(n instanceof fl){var r=n.__data__;if(!og||r.length<$re-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dl(r)}return n.set(e,t),this.size=n.size,this}function To(e){var t=this.__data__=new fl(e);this.size=t.size}To.prototype.clear=Lre;To.prototype.delete=Rre;To.prototype.get=Ore;To.prototype.has=Nre;To.prototype.set=Bre;function Vre(e,t){return e&&um(t,cm(t),e)}function Fre(e,t){return e&&um(t,fm(t),e)}var Iz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,LL=Iz&&typeof module=="object"&&module&&!module.nodeType&&module,zre=LL&&LL.exports===Iz,RL=zre?$o.Buffer:void 0,OL=RL?RL.allocUnsafe:void 0;function Dz(e,t){if(t)return e.slice();var n=e.length,r=OL?OL(n):new e.constructor(n);return e.copy(r),r}function Hre(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 Pz(){return[]}var Wre=Object.prototype,Gre=Wre.propertyIsEnumerable,NL=Object.getOwnPropertySymbols,Kre=NL?function(e){return e==null?[]:(e=Object(e),Hre(NL(e),function(t){return Gre.call(e,t)}))}:Pz;const XM=Kre;function Ure(e,t){return um(e,XM(e),t)}var jre=Object.getOwnPropertySymbols,Yre=jre?function(e){for(var t=[];e;)YM(t,XM(e)),e=qM(e);return t}:Pz;const Lz=Yre;function qre(e,t){return um(e,Lz(e),t)}function Rz(e,t,n){var r=t(e);return $a(e)?r:YM(r,n(e))}function p2(e){return Rz(e,cm,XM)}function Xre(e){return Rz(e,fm,Lz)}var Zre=Mf($o,"DataView");const g2=Zre;var Qre=Mf($o,"Promise");const m2=Qre;var Jre=Mf($o,"Set");const $d=Jre;var $L="[object Map]",eae="[object Object]",BL="[object Promise]",VL="[object Set]",FL="[object WeakMap]",zL="[object DataView]",tae=kf(g2),nae=kf(og),rae=kf(m2),aae=kf($d),iae=kf(v2),yc=Tf;(g2&&yc(new g2(new ArrayBuffer(1)))!=zL||og&&yc(new og)!=$L||m2&&yc(m2.resolve())!=BL||$d&&yc(new $d)!=VL||v2&&yc(new v2)!=FL)&&(yc=function(e){var t=Tf(e),n=t==eae?e.constructor:void 0,r=n?kf(n):"";if(r)switch(r){case tae:return zL;case nae:return $L;case rae:return BL;case aae:return VL;case iae:return FL}return t});const sg=yc;var oae=Object.prototype,sae=oae.hasOwnProperty;function lae(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&sae.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var uae=$o.Uint8Array;const Pb=uae;function ZM(e){var t=new e.constructor(e.byteLength);return new Pb(t).set(new Pb(e)),t}function cae(e,t){var n=t?ZM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var fae=/\w*$/;function dae(e){var t=new e.constructor(e.source,fae.exec(e));return t.lastIndex=e.lastIndex,t}var HL=Ui?Ui.prototype:void 0,WL=HL?HL.valueOf:void 0;function hae(e){return WL?Object(WL.call(e)):{}}function Oz(e,t){var n=t?ZM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var vae="[object Boolean]",pae="[object Date]",gae="[object Map]",mae="[object Number]",yae="[object RegExp]",bae="[object Set]",_ae="[object String]",wae="[object Symbol]",Sae="[object ArrayBuffer]",Cae="[object DataView]",xae="[object Float32Array]",Tae="[object Float64Array]",kae="[object Int8Array]",Mae="[object Int16Array]",Aae="[object Int32Array]",Eae="[object Uint8Array]",Iae="[object Uint8ClampedArray]",Dae="[object Uint16Array]",Pae="[object Uint32Array]";function Lae(e,t,n){var r=e.constructor;switch(t){case Sae:return ZM(e);case vae:case pae:return new r(+e);case Cae:return cae(e,n);case xae:case Tae:case kae:case Mae:case Aae:case Eae:case Iae:case Dae:case Pae:return Oz(e,n);case gae:return new r;case mae:case _ae:return new r(e);case yae:return dae(e);case bae:return new r;case wae:return hae(e)}}function Nz(e){return typeof e.constructor=="function"&&!WM(e)?Ste(qM(e)):{}}var Rae="[object Map]";function Oae(e){return gs(e)&&sg(e)==Rae}var GL=sh&&sh.isMap,Nae=GL?GM(GL):Oae;const $ae=Nae;var Bae="[object Set]";function Vae(e){return gs(e)&&sg(e)==Bae}var KL=sh&&sh.isSet,Fae=KL?GM(KL):Vae;const zae=Fae;var Hae=1,Wae=2,Gae=4,$z="[object Arguments]",Kae="[object Array]",Uae="[object Boolean]",jae="[object Date]",Yae="[object Error]",Bz="[object Function]",qae="[object GeneratorFunction]",Xae="[object Map]",Zae="[object Number]",Vz="[object Object]",Qae="[object RegExp]",Jae="[object Set]",eie="[object String]",tie="[object Symbol]",nie="[object WeakMap]",rie="[object ArrayBuffer]",aie="[object DataView]",iie="[object Float32Array]",oie="[object Float64Array]",sie="[object Int8Array]",lie="[object Int16Array]",uie="[object Int32Array]",cie="[object Uint8Array]",fie="[object Uint8ClampedArray]",die="[object Uint16Array]",hie="[object Uint32Array]",ur={};ur[$z]=ur[Kae]=ur[rie]=ur[aie]=ur[Uae]=ur[jae]=ur[iie]=ur[oie]=ur[sie]=ur[lie]=ur[uie]=ur[Xae]=ur[Zae]=ur[Vz]=ur[Qae]=ur[Jae]=ur[eie]=ur[tie]=ur[cie]=ur[fie]=ur[die]=ur[hie]=!0;ur[Yae]=ur[Bz]=ur[nie]=!1;function Sp(e,t,n,r,a,i){var o,s=t&Hae,l=t&Wae,u=t&Gae;if(n&&(o=a?n(e,r,a,i):n(e)),o!==void 0)return o;if(!Ba(e))return e;var c=$a(e);if(c){if(o=lae(e),!s)return yz(e,o)}else{var f=sg(e),d=f==Bz||f==qae;if(ag(e))return Dz(e,s);if(f==Vz||f==$z||d&&!a){if(o=l||d?{}:Nz(e),!s)return l?qre(e,Fre(o,e)):Ure(e,Vre(o,e))}else{if(!ur[f])return a?e:{};o=Lae(e,f,s)}}i||(i=new To);var h=i.get(e);if(h)return h;i.set(e,o),zae(e)?e.forEach(function(g){o.add(Sp(g,t,n,g,e,i))}):$ae(e)&&e.forEach(function(g,m){o.set(m,Sp(g,t,n,m,e,i))});var v=u?l?Xre:p2:l?fm:cm,p=c?void 0:v(e);return Rte(p||e,function(g,m){p&&(m=g,g=e[m]),zM(o,m,Sp(g,t,n,m,e,i))}),o}var vie=4;function UL(e){return Sp(e,vie)}var pie=1,gie=4;function Lb(e){return Sp(e,pie|gie)}var mie="__lodash_hash_undefined__";function yie(e){return this.__data__.set(e,mie),this}function bie(e){return this.__data__.has(e)}function lg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new dl;++t<n;)this.add(e[t])}lg.prototype.add=lg.prototype.push=yie;lg.prototype.has=bie;function _ie(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 Fz(e,t){return e.has(t)}var wie=1,Sie=2;function zz(e,t,n,r,a,i){var o=n&wie,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&Sie?new lg: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(!_ie(t,function(m,b){if(!Fz(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 Cie(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function QM(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var xie=1,Tie=2,kie="[object Boolean]",Mie="[object Date]",Aie="[object Error]",Eie="[object Map]",Iie="[object Number]",Die="[object RegExp]",Pie="[object Set]",Lie="[object String]",Rie="[object Symbol]",Oie="[object ArrayBuffer]",Nie="[object DataView]",jL=Ui?Ui.prototype:void 0,iS=jL?jL.valueOf:void 0;function $ie(e,t,n,r,a,i,o){switch(n){case Nie:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Oie:return!(e.byteLength!=t.byteLength||!i(new Pb(e),new Pb(t)));case kie:case Mie:case Iie:return lm(+e,+t);case Aie:return e.name==t.name&&e.message==t.message;case Die:case Lie:return e==t+"";case Eie:var s=Cie;case Pie:var l=r&xie;if(s||(s=QM),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=Tie,o.set(e,t);var c=zz(s(e),s(t),r,a,i,o);return o.delete(e),c;case Rie:if(iS)return iS.call(e)==iS.call(t)}return!1}var Bie=1,Vie=Object.prototype,Fie=Vie.hasOwnProperty;function zie(e,t,n,r,a,i){var o=n&Bie,s=p2(e),l=s.length,u=p2(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:Fie.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 S=e.constructor,x=t.constructor;S!=x&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof x=="function"&&x instanceof x)&&(p=!1)}return i.delete(e),i.delete(t),p}var Hie=1,YL="[object Arguments]",qL="[object Array]",sy="[object Object]",Wie=Object.prototype,XL=Wie.hasOwnProperty;function Gie(e,t,n,r,a,i){var o=$a(e),s=$a(t),l=o?qL:sg(e),u=s?qL:sg(t);l=l==YL?sy:l,u=u==YL?sy:u;var c=l==sy,f=u==sy,d=l==u;if(d&&ag(e)){if(!ag(t))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new To),o||KM(e)?zz(e,t,n,r,a,i):$ie(e,t,l,n,r,a,i);if(!(n&Hie)){var h=c&&XL.call(e,"__wrapped__"),v=f&&XL.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,g=v?t.value():t;return i||(i=new To),a(p,g,n,r,i)}}return d?(i||(i=new To),zie(e,t,n,r,a,i)):!1}function g_(e,t,n,r,a){return e===t?!0:e==null||t==null||!gs(e)&&!gs(t)?e!==e&&t!==t:Gie(e,t,n,r,g_,a)}var Kie=1,Uie=2;function jie(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 To;if(r)var d=r(u,c,l,e,t,f);if(!(d===void 0?g_(c,u,Kie|Uie,r,f):d))return!1}}return!0}function Hz(e){return e===e&&!Ba(e)}function Yie(e){for(var t=cm(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,Hz(a)]}return t}function Wz(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function qie(e){var t=Yie(e);return t.length==1&&t[0][2]?Wz(t[0][0],t[0][1]):function(n){return n===e||jie(n,e,t)}}function Xie(e,t){return e!=null&&t in Object(e)}function Zie(e,t,n){t=p_(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=dm(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&&HM(a)&&f_(o,a)&&($a(e)||rg(e)))}function Gz(e,t){return e!=null&&Zie(e,t,Xie)}var Qie=1,Jie=2;function eoe(e,t){return UM(e)&&Hz(t)?Wz(dm(e),t):function(n){var r=tr(n,e);return r===void 0&&r===t?Gz(n,e):g_(t,r,Qie|Jie)}}function toe(e){return function(t){return t==null?void 0:t[e]}}function noe(e){return function(t){return jM(t,e)}}function roe(e){return UM(e)?toe(dm(e)):noe(e)}function Kz(e){return typeof e=="function"?e:e==null?BM:typeof e=="object"?$a(e)?eoe(e[0],e[1]):qie(e):roe(e)}function aoe(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 ioe=aoe();const Uz=ioe;function ooe(e,t){return e&&Uz(e,t,cm)}function soe(e,t){return function(n,r){if(n==null)return n;if(!$h(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 loe=soe(ooe);const uoe=loe;var coe=function(){return $o.Date.now()};const oS=coe;var foe="Expected a function",doe=Math.max,hoe=Math.min;function Va(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(foe);t=h2(t)||0,Ba(n)&&(c=!!n.leading,f="maxWait"in n,i=f?doe(h2(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(C){var w=r,k=a;return r=a=void 0,u=C,o=e.apply(k,w),o}function v(C){return u=C,s=setTimeout(m,t),c?h(C):o}function p(C){var w=C-l,k=C-u,M=t-w;return f?hoe(M,i-k):M}function g(C){var w=C-l,k=C-u;return l===void 0||w>=t||w<0||f&&k>=i}function m(){var C=oS();if(g(C))return b(C);s=setTimeout(m,p(C))}function b(C){return s=void 0,d&&r?h(C):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(oS())}function x(){var C=oS(),w=g(C);if(r=arguments,a=this,l=C,w){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 x.cancel=_,x.flush=S,x}function y2(e,t,n){(n!==void 0&&!lm(e[t],n)||n===void 0&&!(t in e))&&FM(e,t,n)}function jz(e){return gs(e)&&$h(e)}function b2(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function voe(e){return um(e,fm(e))}function poe(e,t,n,r,a,i,o){var s=b2(e,n),l=b2(t,n),u=o.get(l);if(u){y2(e,n,u);return}var c=i?i(s,l,n+"",e,t,o):void 0,f=c===void 0;if(f){var d=$a(l),h=!d&&ag(l),v=!d&&!h&&KM(l);c=l,d||h||v?$a(s)?c=s:jz(s)?c=yz(s):h?(f=!1,c=Dz(l,!0)):v?(f=!1,c=Oz(l,!0)):c=[]:Pre(l)||rg(l)?(c=s,rg(s)?c=voe(s):(!Ba(s)||VM(s))&&(c=Nz(l))):f=!1}f&&(o.set(l,c),a(c,l,r,i,o),o.delete(l)),y2(e,n,c)}function Yz(e,t,n,r,a){e!==t&&Uz(t,function(i,o){if(a||(a=new To),Ba(i))poe(e,t,o,n,Yz,r,a);else{var s=r?r(b2(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),y2(e,o,s)}},fm)}function goe(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 moe=Math.max,yoe=Math.min;function boe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return n!==void 0&&(a=nte(n),a=n<0?moe(r+a,0):yoe(a,r-1)),_z(e,Kz(t),a,!0)}function _oe(e,t){var n=-1,r=$h(e)?Array(e.length):[];return uoe(e,function(a,i,o){r[++n]=t(a,i,o)}),r}function woe(e,t){var n=$a(e)?gz:_oe;return n(e,Kz(t))}function Soe(e,t){return hm(woe(e,t),1)}var Coe=1/0;function xoe(e){var t=e==null?0:e.length;return t?hm(e,Coe):[]}function Rb(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 ni(e,t){return g_(e,t)}function Lr(e){return e==null}function Toe(e){return e===void 0}var koe=Kte(function(e,t,n){Yz(e,t,n)});const qz=koe;function Xz(e,t,n,r){if(!Ba(e))return e;t=p_(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var l=dm(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=Ba(c)?c:f_(t[a+1])?[]:{})}zM(s,l,u),s=s[l]}return e}function Moe(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=jM(e,o);n(s,o)&&Xz(i,p_(o,e),s)}return i}function Aoe(e,t){return Moe(e,t,function(n,r){return Gz(e,r)})}var Eoe=Tre(function(e,t){return e==null?{}:Aoe(e,t)});const Hs=Eoe;function Ioe(e,t,n){return e==null?e:Xz(e,t,n)}var Doe="Expected a function";function Qc(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(Doe);return Ba(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Va(e,t,{leading:r,maxWait:t,trailing:a})}var Poe=1/0,Loe=$d&&1/QM(new $d([,-0]))[1]==Poe?function(e){return new $d(e)}:xte;const Roe=Loe;var Ooe=200;function Noe(e,t,n){var r=-1,a=Bte,i=e.length,o=!0,s=[],l=s;if(n)o=!1,a=goe;else if(i>=Ooe){var u=t?null:Roe(e);if(u)return QM(u);o=!1,a=Fz,l=new lg}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 $oe=Sz(function(e){return Noe(hm(e,1,jz,!0))});const sS=$oe,Vr=e=>e===void 0,Rr=e=>typeof e=="boolean",Tt=e=>typeof e=="number",Bi=e=>!e&&e!==0||st(e)&&e.length===0||Qt(e)&&!Object.keys(e).length,ji=e=>typeof Element>"u"?!1:e instanceof Element,Boe=e=>Lr(e),Voe=e=>At(e)?!Number.isNaN(Number(e)):!1,Zz=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),as=e=>om(e),ug=e=>Object.keys(e),Foe=e=>Object.entries(e),R0=(e,t,n)=>({get value(){return tr(e,t,n)},set value(r){Ioe(e,t,r)}});class zoe extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Nr(e,t){throw new zoe(`[${e}] ${t}`)}const Qz=(e="")=>e.split(" ").filter(t=>!!t.trim()),ko=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},ss=(e,t)=>{!e||!t.trim()||e.classList.add(...Qz(t))},ri=(e,t)=>{!e||!t.trim()||e.classList.remove(...Qz(t))},Gl=(e,t)=>{var n;if(!fn||!e||!t)return"";let r=Ki(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 gr(e,t="px"){if(!e)return"";if(Tt(e)||Voe(e))return`${e}${t}`;if(At(e))return e}const Hoe=(e,t)=>{if(!fn)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Gl(e,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},JM=(e,t)=>{if(!fn)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Hoe(n,t))return n;n=n.parentNode}return n};let ly;const Jz=e=>{var t;if(!fn)return 0;if(ly!==void 0)return ly;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),ly=r-i,ly};function e6(e,t){if(!fn)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.3.1 */var Woe=te({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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"})]))}}),Au=Woe,Goe=te({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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"})]))}}),hu=Goe,Koe=te({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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"})]))}}),Ra=Koe,Uoe=te({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),m_=Uoe,joe=te({name:"Back",__name:"back",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),ee("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),Yoe=joe,qoe=te({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-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 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Xoe=qoe,Zoe=te({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),_Ye=Zoe,Qoe=te({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),t6=Qoe,Joe=te({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),ese=Joe,tse=te({name:"Check",__name:"check",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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"})]))}}),vm=tse,nse=te({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),rse=nse,ase=te({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ee("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"})]))}}),eA=ase,ise=te({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),tA=ise,ose=te({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),ee("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Eu=ose,sse=te({name:"Clock",__name:"clock",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ee("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),ee("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),n6=sse,lse=te({name:"Close",__name:"close",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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"})]))}}),Do=lse,use=te({name:"Crop",__name:"crop",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),ee("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),wYe=use,cse=te({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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"})]))}}),lh=cse,fse=te({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),uh=fse,dse=te({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),SYe=dse,hse=te({name:"Delete",__name:"delete",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),vse=hse,pse=te({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248 90.496-90.496z"})]))}}),CYe=pse,gse=te({name:"Document",__name:"document",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),mse=gse,yse=te({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),bse=yse,_se=te({name:"Hide",__name:"hide",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.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"}),ee("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"})]))}}),wse=_se,Sse=te({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.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"})]))}}),nA=Sse,Cse=te({name:"Loading",__name:"loading",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.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 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Iu=Cse,xse=te({name:"Minus",__name:"minus",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Tse=xse,kse=te({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),ZL=kse,Mse=te({name:"More",__name:"more",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Ase=Mse,Ese=te({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Ise=Ese,Dse=te({name:"Plus",__name:"plus",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),r6=Dse,Pse=te({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.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"})]))}}),Lse=Pse,Rse=te({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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"})]))}}),Ose=Rse,Nse=te({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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"})]))}}),$se=Nse,Bse=te({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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.118M512 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.412M512 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 512"})]))}}),Vse=Bse,Fse=te({name:"Search",__name:"search",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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 704"})]))}}),zse=Fse,Hse=te({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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 0"})]))}}),Wse=Hse,Gse=te({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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.248"})]))}}),Kse=Gse,Use=te({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("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"})]))}}),uy=Use,jse=te({name:"Star",__name:"star",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),Yse=jse,qse=te({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),a6=qse,Xse=te({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),xYe=Xse,Zse=te({name:"View",__name:"view",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Qse=Zse,Jse=te({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 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 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),y_=Jse,ele=te({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),i6=ele,tle=te({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>($(),Z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),nle=tle;const o6="__epPropKey",ye=e=>e,rle=e=>Qt(e)&&!!e[o6],Bo=(e,t)=>{if(!Qt(e)||rle(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),ln(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(", ");ZX(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[o6]:!0};return ln(e,"default")&&(l.default=a),l},je=e=>Rb(Object.entries(e).map(([t,n])=>[t,Bo(n,t)])),Wn=ye([String,Object,Function]),s6={Close:Do},rA={Close:Do,SuccessFilled:a6,InfoFilled:nA,WarningFilled:y_,CircleCloseFilled:tA},vu={success:a6,warning:y_,error:tA,info:nA},aA={validating:Iu,success:eA,error:Eu},Ht=(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},l6=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),ale=(e,t)=>(e.install=n=>{n.directive(t,e)},e),fr=e=>(e.install=Ln,e),b_=(...e)=>t=>{e.forEach(n=>{kt(n)?n(t):n.value=t})},vt={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"},ile=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],lS=["sun","mon","tue","wed","thu","fri","sat"],Gt="update:modelValue",qn="change",Oa="input",QL=Symbol("INSTALLED_KEY"),xs=["","default","small","large"],ole={large:40,default:32,small:24},sle=e=>ole[e||"default"],__=e=>["",...xs].includes(e);var Li=(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))(Li||{});function _2(e){return ar(e)&&e.type===dt}function lle(e){return ar(e)&&e.type===La}function ule(e){return ar(e)&&!_2(e)&&!lle(e)}const cle=e=>{if(!ar(e))return{};const t=e.props||{},n=(ar(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(a=>{ln(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(t).forEach(a=>{r[Ki(a)]=t[a]}),r},fle=e=>{if(!st(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Bd=e=>{const t=st(e)?e:[e],n=[];return t.forEach(r=>{var a;st(r)?n.push(...Bd(r)):ar(r)&&st(r.children)?n.push(...Bd(r.children)):(n.push(r),ar(r)&&((a=r.component)!=null&&a.subTree)&&n.push(...Bd(r.component.subTree)))}),n},JL=e=>[...new Set(e)],Ys=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],w_=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),ch=e=>fn?window.requestAnimationFrame(e):setTimeout(e,16),S_=e=>fn?window.cancelAnimationFrame(e):clearTimeout(e),C_=()=>Math.floor(Math.random()*1e4),nr=e=>e,dle=["class","style"],hle=/^on[A-Z]/,iA=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=R(()=>((n==null?void 0:n.value)||[]).concat(dle)),a=Bt();return R(a?()=>{var i;return Rb(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!r.value.includes(o)&&!(t&&hle.test(o))))}:()=>({}))},ms=({from:e,replacement:t,scope:n,version:r,ref:a,type:i="API"},o)=>{Be(()=>y(o),s=>{},{immediate:!0})},u6=(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,S=-v+f,x=m-h-p+c,C=b-v-g+f,w=M=>{const I=Math.min(Math.max(c+M.clientX-l,_),x),E=Math.min(Math.max(f+M.clientY-u,S),C);r={offsetX:I,offsetY:E},e.value.style.transform=`translate(${gr(I)}, ${gr(E)})`},k=()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",k)};document.addEventListener("mousemove",w),document.addEventListener("mouseup",k)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",a)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};Ft(()=>{yi(()=>{n.value?i():o()})}),er(()=>{o()})};var vle={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 ple=e=>(t,n)=>gle(t,n,y(e)),gle=(e,t,n)=>tr(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=R(()=>y(e).name),n=Hn(e)?e:U(e);return{lang:t,locale:n,t:ple(e)}},c6=Symbol("localeContextKey"),pn=e=>{const t=e||lt(c6,U());return mle(R(()=>t.value||vle))},Cp="el",yle="is-",Uu=(e,t,n,r,a)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},f6=Symbol("namespaceContextKey"),oA=e=>{const t=e||(Bt()?lt(f6,U(Cp)):U(Cp));return R(()=>y(t)||Cp)},Fe=(e,t)=>{const n=oA(t);return{namespace:n,b:(p="")=>Uu(n.value,e,p,"",""),e:p=>p?Uu(n.value,e,"",p,""):"",m:p=>p?Uu(n.value,e,"","",p):"",be:(p,g)=>p&&g?Uu(n.value,e,p,g,""):"",em:(p,g)=>p&&g?Uu(n.value,e,"",p,g):"",bm:(p,g)=>p&&g?Uu(n.value,e,p,"",g):"",bem:(p,g,m)=>p&&g&&m?Uu(n.value,e,p,g,m):"",is:(p,...g)=>{const m=g.length>=1?g[0]:!0;return p&&m?`${yle}${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}`}},d6=(e,t={})=>{Hn(e)||Nr("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Fe("popup"),r=lF(()=>n.bm("parent","hidden"));if(!fn||ko(document.body,r.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{ri(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=o)},200)};Be(e,l=>{if(!l){s();return}i=!ko(document.body,r.value),i&&(o=document.body.style.width),a=Jz(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=Gl(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),ss(document.body,r.value)}),U5(()=>s())},ble=Bo({type:ye(Boolean),default:null}),_le=Bo({type:ye(Function)}),h6=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:ble,[n]:_le};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=Bt(),{emit:h}=d,v=d.props,p=R(()=>kt(v[n])),g=R(()=>v[e]===null),m=w=>{o.value!==!0&&(o.value=!0,s&&(s.value=w),kt(c)&&c(w))},b=w=>{o.value!==!1&&(o.value=!1,s&&(s.value=w),kt(f)&&f(w))},_=w=>{if(v.disabled===!0||kt(u)&&!u())return;const k=p.value&&fn;k&&h(t,!0),(g.value||!k)&&m(w)},S=w=>{if(v.disabled===!0||!fn)return;const k=p.value&&fn;k&&h(t,!1),(g.value||!k)&&b(w)},x=w=>{Rr(w)&&(v.disabled&&w?p.value&&h(t,!1):o.value!==w&&(w?m():b()))},C=()=>{o.value?S():_()};return Be(()=>v[e],x),l&&d.appContext.config.globalProperties.$route!==void 0&&Be(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&S()}),Ft(()=>{x(v[e])}),{hide:S,show:_,toggle:C,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:r}};h6("modelValue");const v6=e=>{const t=Bt();return R(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var ai="top",Yi="bottom",qi="right",ii="left",sA="auto",pm=[ai,Yi,qi,ii],fh="start",cg="end",wle="clippingParents",p6="viewport",bv="popper",Sle="reference",eR=pm.reduce(function(e,t){return e.concat([t+"-"+fh,t+"-"+cg])},[]),Af=[].concat(pm,[sA]).reduce(function(e,t){return e.concat([t,t+"-"+fh,t+"-"+cg])},[]),Cle="beforeRead",xle="read",Tle="afterRead",kle="beforeMain",Mle="main",Ale="afterMain",Ele="beforeWrite",Ile="write",Dle="afterWrite",Ple=[Cle,xle,Tle,kle,Mle,Ale,Ele,Ile,Dle];function ys(e){return e?(e.nodeName||"").toLowerCase():null}function Vo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function dh(e){var t=Vo(e).Element;return e instanceof t||e instanceof Element}function Wi(e){var t=Vo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function lA(e){if(typeof ShadowRoot>"u")return!1;var t=Vo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Lle(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];!Wi(i)||!ys(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 Rle(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},{});!Wi(a)||!ys(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var g6={name:"applyStyles",enabled:!0,phase:"write",fn:Lle,effect:Rle,requires:["computeStyles"]};function ds(e){return e.split("-")[0]}var Jc=Math.max,Ob=Math.min,hh=Math.round;function vh(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(Wi(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(r=hh(n.width)/o||1),i>0&&(a=hh(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 uA(e){var t=vh(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 m6(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&lA(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function el(e){return Vo(e).getComputedStyle(e)}function Ole(e){return["table","td","th"].indexOf(ys(e))>=0}function Du(e){return((dh(e)?e.ownerDocument:e.document)||window.document).documentElement}function x_(e){return ys(e)==="html"?e:e.assignedSlot||e.parentNode||(lA(e)?e.host:null)||Du(e)}function tR(e){return!Wi(e)||el(e).position==="fixed"?null:e.offsetParent}function Nle(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Wi(e)){var r=el(e);if(r.position==="fixed")return null}var a=x_(e);for(lA(a)&&(a=a.host);Wi(a)&&["html","body"].indexOf(ys(a))<0;){var i=el(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 gm(e){for(var t=Vo(e),n=tR(e);n&&Ole(n)&&el(n).position==="static";)n=tR(n);return n&&(ys(n)==="html"||ys(n)==="body"&&el(n).position==="static")?t:n||Nle(e)||t}function cA(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xp(e,t,n){return Jc(e,Ob(t,n))}function $le(e,t,n){var r=xp(e,t,n);return r>n?n:r}function y6(){return{top:0,right:0,bottom:0,left:0}}function b6(e){return Object.assign({},y6(),e)}function _6(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ble=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,b6(typeof e!="number"?e:_6(e,pm))};function Vle(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=ds(n.placement),l=cA(s),u=[ii,qi].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var f=Ble(a.padding,n),d=uA(i),h=l==="y"?ai:ii,v=l==="y"?Yi:qi,p=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],m=gm(i),b=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,S=f[h],x=b-d[c]-f[v],C=b/2-d[c]/2+_,w=xp(S,C,x),k=l;n.modifiersData[r]=(t={},t[k]=w,t.centerOffset=w-C,t)}}function Fle(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)||!m6(t.elements.popper,a)||(t.elements.arrow=a))}var zle={name:"arrow",enabled:!0,phase:"main",fn:Vle,effect:Fle,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ph(e){return e.split("-")[1]}var Hle={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Wle(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:hh(t*a)/a||0,y:hh(n*a)/a||0}}function nR(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"),_=ii,S=ai,x=window;if(u){var C=gm(n),w="clientHeight",k="clientWidth";if(C===Vo(n)&&(C=Du(n),el(C).position!=="static"&&s==="absolute"&&(w="scrollHeight",k="scrollWidth")),C=C,a===ai||(a===ii||a===qi)&&i===cg){S=Yi;var M=f&&C===x&&x.visualViewport?x.visualViewport.height:C[w];p-=M-r.height,p*=l?1:-1}if(a===ii||(a===ai||a===Yi)&&i===cg){_=qi;var I=f&&C===x&&x.visualViewport?x.visualViewport.width:C[k];h-=I-r.width,h*=l?1:-1}}var E=Object.assign({position:s},u&&Hle),D=c===!0?Wle({x:h,y:p}):{x:h,y:p};if(h=D.x,p=D.y,l){var P;return Object.assign({},E,(P={},P[S]=b?"0":"",P[_]=m?"0":"",P.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",P))}return Object.assign({},E,(t={},t[S]=b?p+"px":"",t[_]=m?h+"px":"",t.transform="",t))}function Gle(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:ds(t.placement),variation:ph(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,nR(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,nR(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 w6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gle,data:{}},cy={passive:!0};function Kle(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=Vo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,cy)}),s&&l.addEventListener("resize",n.update,cy),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,cy)}),s&&l.removeEventListener("resize",n.update,cy)}}var S6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Kle,data:{}},Ule={left:"right",right:"left",bottom:"top",top:"bottom"};function O0(e){return e.replace(/left|right|bottom|top/g,function(t){return Ule[t]})}var jle={start:"end",end:"start"};function rR(e){return e.replace(/start|end/g,function(t){return jle[t]})}function fA(e){var t=Vo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function dA(e){return vh(Du(e)).left+fA(e).scrollLeft}function Yle(e){var t=Vo(e),n=Du(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+dA(e),y:s}}function qle(e){var t,n=Du(e),r=fA(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Jc(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Jc(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+dA(e),l=-r.scrollTop;return el(a||n).direction==="rtl"&&(s+=Jc(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function hA(e){var t=el(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function C6(e){return["html","body","#document"].indexOf(ys(e))>=0?e.ownerDocument.body:Wi(e)&&hA(e)?e:C6(x_(e))}function Tp(e,t){var n;t===void 0&&(t=[]);var r=C6(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Vo(r),o=a?[i].concat(i.visualViewport||[],hA(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(Tp(x_(o)))}function w2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xle(e){var t=vh(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 aR(e,t){return t===p6?w2(Yle(e)):dh(t)?Xle(t):w2(qle(Du(e)))}function Zle(e){var t=Tp(x_(e)),n=["absolute","fixed"].indexOf(el(e).position)>=0,r=n&&Wi(e)?gm(e):e;return dh(r)?t.filter(function(a){return dh(a)&&m6(a,r)&&ys(a)!=="body"}):[]}function Qle(e,t,n){var r=t==="clippingParents"?Zle(e):[].concat(t),a=[].concat(r,[n]),i=a[0],o=a.reduce(function(s,l){var u=aR(e,l);return s.top=Jc(u.top,s.top),s.right=Ob(u.right,s.right),s.bottom=Ob(u.bottom,s.bottom),s.left=Jc(u.left,s.left),s},aR(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 x6(e){var t=e.reference,n=e.element,r=e.placement,a=r?ds(r):null,i=r?ph(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case ai:l={x:o,y:t.y-n.height};break;case Yi:l={x:o,y:t.y+t.height};break;case qi:l={x:t.x+t.width,y:s};break;case ii:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?cA(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case fh:l[u]=l[u]-(t[c]/2-n[c]/2);break;case cg:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function fg(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?wle:i,s=n.rootBoundary,l=s===void 0?p6:s,u=n.elementContext,c=u===void 0?bv:u,f=n.altBoundary,d=f===void 0?!1:f,h=n.padding,v=h===void 0?0:h,p=b6(typeof v!="number"?v:_6(v,pm)),g=c===bv?Sle:bv,m=e.rects.popper,b=e.elements[d?g:c],_=Qle(dh(b)?b:b.contextElement||Du(e.elements.popper),o,l),S=vh(e.elements.reference),x=x6({reference:S,element:m,strategy:"absolute",placement:a}),C=w2(Object.assign({},m,x)),w=c===bv?C:S,k={top:_.top-w.top+p.top,bottom:w.bottom-_.bottom+p.bottom,left:_.left-w.left+p.left,right:w.right-_.right+p.right},M=e.modifiersData.offset;if(c===bv&&M){var I=M[a];Object.keys(k).forEach(function(E){var D=[qi,Yi].indexOf(E)>=0?1:-1,P=[ai,Yi].indexOf(E)>=0?"y":"x";k[E]+=I[P]*D})}return k}function Jle(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?Af:l,c=ph(r),f=c?s?eR:eR.filter(function(v){return ph(v)===c}):pm,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]=fg(e,{placement:p,boundary:a,rootBoundary:i,padding:o})[ds(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function eue(e){if(ds(e)===sA)return[];var t=O0(e);return[rR(e),t,rR(t)]}function tue(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=ds(g),b=m===g,_=l||(b||!v?[O0(g)]:eue(g)),S=[g].concat(_).reduce(function(de,oe){return de.concat(ds(oe)===sA?Jle(t,{placement:oe,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:p}):oe)},[]),x=t.rects.reference,C=t.rects.popper,w=new Map,k=!0,M=S[0],I=0;I<S.length;I++){var E=S[I],D=ds(E),P=ph(E)===fh,N=[ai,Yi].indexOf(D)>=0,z=N?"width":"height",F=fg(t,{placement:E,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),B=N?P?qi:ii:P?Yi:ai;x[z]>C[z]&&(B=O0(B));var V=O0(B),L=[];if(i&&L.push(F[D]<=0),s&&L.push(F[B]<=0,F[V]<=0),L.every(function(de){return de})){M=E,k=!1;break}w.set(E,L)}if(k)for(var G=v?3:1,q=function(de){var oe=S.find(function(se){var le=w.get(se);if(le)return le.slice(0,de).every(function(ne){return ne})});if(oe)return M=oe,"break"},Q=G;Q>0;Q--){var ie=q(Q);if(ie==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}var nue={name:"flip",enabled:!0,phase:"main",fn:tue,requiresIfExists:["offset"],data:{_skip:!1}};function iR(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 oR(e){return[ai,qi,Yi,ii].some(function(t){return e[t]>=0})}function rue(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=fg(t,{elementContext:"reference"}),s=fg(t,{altBoundary:!0}),l=iR(o,r),u=iR(s,a,i),c=oR(l),f=oR(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 aue={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:rue};function iue(e,t,n){var r=ds(e),a=[ii,ai].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,[ii,qi].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function oue(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=Af.reduce(function(c,f){return c[f]=iue(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 sue={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oue};function lue(e){var t=e.state,n=e.name;t.modifiersData[n]=x6({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var T6={name:"popperOffsets",enabled:!0,phase:"read",fn:lue,data:{}};function uue(e){return e==="x"?"y":"x"}function cue(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=fg(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=ds(t.placement),b=ph(t.placement),_=!b,S=cA(m),x=uue(S),C=t.modifiersData.popperOffsets,w=t.rects.reference,k=t.rects.popper,M=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,I=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(C){if(i){var P,N=S==="y"?ai:ii,z=S==="y"?Yi:qi,F=S==="y"?"height":"width",B=C[S],V=B+g[N],L=B-g[z],G=h?-k[F]/2:0,q=b===fh?w[F]:k[F],Q=b===fh?-k[F]:-w[F],ie=t.elements.arrow,de=h&&ie?uA(ie):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:y6(),se=oe[N],le=oe[z],ne=xp(0,w[F],de[F]),Ce=_?w[F]/2-G-ne-se-I.mainAxis:q-ne-se-I.mainAxis,Te=_?-w[F]/2+G+ne+le+I.mainAxis:Q+ne+le+I.mainAxis,he=t.elements.arrow&&gm(t.elements.arrow),X=he?S==="y"?he.clientTop||0:he.clientLeft||0:0,ae=(P=E==null?void 0:E[S])!=null?P:0,ge=B+Ce-ae-X,ke=B+Te-ae,Pe=xp(h?Ob(V,ge):V,B,h?Jc(L,ke):L);C[S]=Pe,D[S]=Pe-B}if(s){var Me,ze=S==="x"?ai:ii,Oe=S==="x"?Yi:qi,Le=C[x],Ve=x==="y"?"height":"width",qe=Le+g[ze],nt=Le-g[Oe],ot=[ai,ii].indexOf(m)!==-1,_e=(Me=E==null?void 0:E[x])!=null?Me:0,Je=ot?qe:Le-w[Ve]-k[Ve]-_e+I.altAxis,St=ot?Le+w[Ve]+k[Ve]-_e-I.altAxis:nt,Rt=h&&ot?$le(Je,Le,St):xp(h?Je:qe,Le,h?St:nt);C[x]=Rt,D[x]=Rt-Le}t.modifiersData[r]=D}}var fue={name:"preventOverflow",enabled:!0,phase:"main",fn:cue,requiresIfExists:["offset"]};function due(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function hue(e){return e===Vo(e)||!Wi(e)?fA(e):due(e)}function vue(e){var t=e.getBoundingClientRect(),n=hh(t.width)/e.offsetWidth||1,r=hh(t.height)/e.offsetHeight||1;return n!==1||r!==1}function pue(e,t,n){n===void 0&&(n=!1);var r=Wi(t),a=Wi(t)&&vue(t),i=Du(t),o=vh(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ys(t)!=="body"||hA(i))&&(s=hue(t)),Wi(t)?(l=vh(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=dA(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function gue(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=gue(e);return Ple.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function yue(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function bue(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 sR={placement:"bottom",modifiers:[],strategy:"absolute"};function lR(){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 vA(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?sR:a;return function(o,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},sR,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:dh(o)?Tp(o):o.contextElement?Tp(o.contextElement):[],popper:Tp(s)};var m=mue(bue([].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(lR(g,m)){u.rects={reference:pue(g,gm(m),u.options.strategy==="fixed"),popper:uA(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(k){return u.modifiersData[k.name]=Object.assign({},k.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var _=u.orderedModifiers[b],S=_.fn,x=_.options,C=x===void 0?{}:x,w=_.name;typeof S=="function"&&(u=S({state:u,options:C,name:w,instance:d})||u)}}}},update:yue(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){v(),f=!0}};if(!lR(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 S=_({state:u,name:g,instance:d,options:b}),x=function(){};c.push(S||x)}})}function v(){c.forEach(function(p){return p()}),c=[]}return d}}vA();var _ue=[S6,T6,w6,g6];vA({defaultModifiers:_ue});var wue=[S6,T6,w6,g6,sue,nue,fue,zle,aue],k6=vA({defaultModifiers:wue});const Sue=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=Cue(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=R(()=>{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=zn(),o=U({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 Be(a,l=>{const u=y(i);u&&u.setOptions(l)},{deep:!0}),Be([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=k6(l,u,y(a)))}),er(()=>{s()}),{state:R(()=>{var l;return{...((l=y(i))==null?void 0:l.state)||{}}}),styles:R(()=>y(o).styles),attributes:R(()=>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:R(()=>y(i))}};function Cue(e){const t=Object.keys(e.elements),n=Rb(t.map(a=>[a,e.styles[a]||{}])),r=Rb(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}const pA=e=>{if(!e)return{onClick:Ln,onMousedown:Ln,onMouseup:Ln};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}}},xue=(e,t=0)=>{if(t===0)return e;const n=U(!1);let r=0;const a=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=e.value},t)};return Ft(a),Be(()=>e.value,i=>{i?a():n.value=i}),n};function uR(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return u_(()=>n()),{registerTimeout:t,cancelTimeout:n}}const cR={prefix:Math.floor(Math.random()*1e4),current:0},Tue=Symbol("elIdInjection"),M6=()=>Bt()?lt(Tue,cR):cR,Xi=e=>{const t=M6(),n=oA();return R(()=>y(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let gd=[];const fR=e=>{const t=e;t.key===vt.esc&&gd.forEach(n=>n(t))},kue=e=>{Ft(()=>{gd.length===0&&document.addEventListener("keydown",fR),fn&&gd.push(e)}),er(()=>{gd=gd.filter(t=>t!==e),gd.length===0&&fn&&document.removeEventListener("keydown",fR)})};let dR;const A6=()=>{const e=oA(),t=M6(),n=R(()=>`${e.value}-popper-container-${t.prefix}`),r=R(()=>`#${n.value}`);return{id:n,selector:r}},Mue=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Aue=()=>{const{id:e,selector:t}=A6();return r_(()=>{fn&&!dR&&!document.body.querySelector(t.value)&&(dR=Mue(e.value))}),{id:e,selector:t}},Eue=je({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),E6=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=uR(),{registerTimeout:o,cancelTimeout:s}=uR();return{onOpen:c=>{i(()=>{r(c);const f=y(n);Tt(f)&&f>0&&o(()=>{a(c)},f)},y(e))},onClose:c=>{s(),i(()=>{a(c)},y(t))}}},I6=Symbol("elForwardRef"),Iue=e=>{Jt(I6,{setForwardRef:n=>{e.value=n}})},Due=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),hR=U(0),D6=2e3,P6=Symbol("zIndexContextKey"),Bh=e=>{const t=e||(Bt()?lt(P6,void 0):void 0),n=R(()=>{const i=y(t);return Tt(i)?i:D6}),r=R(()=>n.value+hR.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(hR.value++,r.value)}},dg=Math.min,Vd=Math.max,Nb=Math.round,pu=e=>({x:e,y:e});function Pue(e,t,n){return Vd(e,dg(t,n))}function L6(e,t){return typeof e=="function"?e(t):e}function gA(e){return e.split("-")[0]}function mA(e){return e.split("-")[1]}function Lue(e){return e==="x"?"y":"x"}function R6(e){return e==="y"?"height":"width"}function yA(e){return["top","bottom"].includes(gA(e))?"y":"x"}function O6(e){return Lue(yA(e))}function Rue(e){return{top:0,right:0,bottom:0,left:0,...e}}function Oue(e){return typeof e!="number"?Rue(e):{top:e,right:e,bottom:e,left:e}}function N6(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function vR(e,t,n){let{reference:r,floating:a}=e;const i=yA(t),o=O6(t),s=R6(o),l=gA(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(mA(t)){case"start":h[o]-=d*(n&&u?-1:1);break;case"end":h[o]+=d*(n&&u?-1:1);break}return h}const Nue=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}=vR(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:S,reset:x}=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],...S}},x&&v<=50){v++,typeof x=="object"&&(x.placement&&(d=x.placement),x.rects&&(u=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):x.rects),{x:c,y:f}=vR(u,d,l)),p=-1;continue}}return{x:c,y:f,placement:d,strategy:a,middlewareData:h}},$ue=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}=L6(e,t)||{};if(u==null)return{};const f=Oue(c),d={x:n,y:r},h=O6(a),v=R6(h),p=await o.getDimensions(u),g=h==="y",m=g?"top":"left",b=g?"bottom":"right",_=g?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[h]-d[h]-i.floating[v],x=d[h]-i.reference[h],C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let w=C?C[_]:0;(!w||!await(o.isElement==null?void 0:o.isElement(C)))&&(w=s.floating[_]||i.floating[v]);const k=S/2-x/2,M=w/2-p[v]/2-1,I=dg(f[m],M),E=dg(f[b],M),D=I,P=w-p[v]-E,N=w/2-p[v]/2+k,z=Pue(D,N,P),F=!l.arrow&&mA(a)!=null&&N!=z&&i.reference[v]/2-(N<D?I:E)-p[v]/2<0,B=F?N<D?N-D:N-P:0;return{[h]:d[h]+B,data:{[h]:z,centerOffset:N-z-B,...F&&{alignmentOffset:B}},reset:F}}});async function Bue(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=gA(n),s=mA(n),l=yA(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,f=L6(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 Vue=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,a=await Bue(t,e);return{x:n+a.x,y:r+a.y,data:a}}}};function gu(e){return $6(e)?(e.nodeName||"").toLowerCase():"#document"}function bi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pu(e){var t;return(t=($6(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $6(e){return e instanceof Node||e instanceof bi(e).Node}function tl(e){return e instanceof Element||e instanceof bi(e).Element}function bs(e){return e instanceof HTMLElement||e instanceof bi(e).HTMLElement}function pR(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bi(e).ShadowRoot}function mm(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Zi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function Fue(e){return["table","td","th"].includes(gu(e))}function bA(e){const t=_A(),n=Zi(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 zue(e){let t=gh(e);for(;bs(t)&&!T_(t);){if(bA(t))return t;t=gh(t)}return null}function _A(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function T_(e){return["html","body","#document"].includes(gu(e))}function Zi(e){return bi(e).getComputedStyle(e)}function k_(e){return tl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function gh(e){if(gu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pR(e)&&e.host||Pu(e);return pR(t)?t.host:t}function B6(e){const t=gh(e);return T_(t)?e.ownerDocument?e.ownerDocument.body:e.body:bs(t)&&mm(t)?t:B6(t)}function S2(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=B6(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=bi(a);return i?t.concat(o,o.visualViewport||[],mm(a)?a:[],o.frameElement&&n?S2(o.frameElement):[]):t.concat(a,S2(a,[],n))}function V6(e){const t=Zi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=bs(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=Nb(n)!==i||Nb(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function F6(e){return tl(e)?e:e.contextElement}function Fd(e){const t=F6(e);if(!bs(t))return pu(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=V6(t);let o=(i?Nb(n.width):n.width)/r,s=(i?Nb(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Hue=pu(0);function z6(e){const t=bi(e);return!_A()||!t.visualViewport?Hue:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wue(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==bi(e)?!1:t}function hg(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=F6(e);let o=pu(1);t&&(r?tl(r)&&(o=Fd(r)):o=Fd(e));const s=Wue(i,n,r)?z6(i):pu(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=bi(i),h=r&&tl(r)?bi(r):r;let v=d.frameElement;for(;v&&r&&h!==d;){const p=Fd(v),g=v.getBoundingClientRect(),m=Zi(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=bi(v).frameElement}}return N6({width:c,height:f,x:l,y:u})}function Gue(e){let{rect:t,offsetParent:n,strategy:r}=e;const a=bs(n),i=Pu(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},s=pu(1);const l=pu(0);if((a||!a&&r!=="fixed")&&((gu(n)!=="body"||mm(i))&&(o=k_(n)),bs(n))){const u=hg(n);s=Fd(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 Kue(e){return Array.from(e.getClientRects())}function H6(e){return hg(Pu(e)).left+k_(e).scrollLeft}function Uue(e){const t=Pu(e),n=k_(e),r=e.ownerDocument.body,a=Vd(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Vd(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+H6(e);const s=-n.scrollTop;return Zi(r).direction==="rtl"&&(o+=Vd(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function jue(e,t){const n=bi(e),r=Pu(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=_A();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function Yue(e,t){const n=hg(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=bs(e)?Fd(e):pu(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 gR(e,t,n){let r;if(t==="viewport")r=jue(e,n);else if(t==="document")r=Uue(Pu(e));else if(tl(t))r=Yue(t,n);else{const a=z6(e);r={...t,x:t.x-a.x,y:t.y-a.y}}return N6(r)}function W6(e,t){const n=gh(e);return n===t||!tl(n)||T_(n)?!1:Zi(n).position==="fixed"||W6(n,t)}function que(e,t){const n=t.get(e);if(n)return n;let r=S2(e,[],!1).filter(s=>tl(s)&&gu(s)!=="body"),a=null;const i=Zi(e).position==="fixed";let o=i?gh(e):e;for(;tl(o)&&!T_(o);){const s=Zi(o),l=bA(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||mm(o)&&!l&&W6(e,o))?r=r.filter(c=>c!==o):a=s,o=gh(o)}return t.set(e,r),r}function Xue(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?que(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const f=gR(t,c,a);return u.top=Vd(f.top,u.top),u.right=dg(f.right,u.right),u.bottom=dg(f.bottom,u.bottom),u.left=Vd(f.left,u.left),u},gR(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Zue(e){return V6(e)}function Que(e,t,n){const r=bs(t),a=Pu(t),i=n==="fixed",o=hg(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=pu(0);if(r||!r&&!i)if((gu(t)!=="body"||mm(a))&&(s=k_(t)),r){const u=hg(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else a&&(l.x=H6(a));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function mR(e,t){return!bs(e)||Zi(e).position==="fixed"?null:t?t(e):e.offsetParent}function G6(e,t){const n=bi(e);if(!bs(e))return n;let r=mR(e,t);for(;r&&Fue(r)&&Zi(r).position==="static";)r=mR(r,t);return r&&(gu(r)==="html"||gu(r)==="body"&&Zi(r).position==="static"&&!bA(r))?n:r||zue(e)||n}const Jue=async function(e){let{reference:t,floating:n,strategy:r}=e;const a=this.getOffsetParent||G6,i=this.getDimensions;return{reference:Que(t,await a(n),r),floating:{x:0,y:0,...await i(n)}}};function ece(e){return Zi(e).direction==="rtl"}const tce={convertOffsetParentRelativeRectToViewportRelativeRect:Gue,getDocumentElement:Pu,getClippingRect:Xue,getOffsetParent:G6,getElementRects:Jue,getClientRects:Kue,getDimensions:Zue,getScale:Fd,isElement:tl,isRTL:ece},nce=(e,t,n)=>{const r=new Map,a={platform:tce,...n},i={...a.platform,_c:r};return Nue(e,t,{...a,platform:i})};je({});const rce=e=>{if(!fn)return;if(!e)return e;const t=pi(e);return t||(Hn(e)?t:e)},ace=({middleware:e,placement:t,strategy:n})=>{const r=U(),a=U(),i=U(),o=U(),s=U({}),l={x:i,y:o,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!fn)return;const c=rce(r),f=pi(a);if(!c||!f)return;const d=await nce(c,f,{placement:y(t),strategy:y(n),middleware:y(e)});ug(l).forEach(h=>{l[h].value=d[h]})};return Ft(()=>{yi(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:a}},ice=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=y(e);return r?$ue({element:r,padding:t}).fn(n):{}}});function oce(e){const t=U();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 sce=(e,t,n)=>Bd(e.subTree).filter(i=>{var o;return ar(i)&&((o=i.type)==null?void 0:o.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),wA=(e,t)=>{const n={},r=zn([]);return{children:r,addChild:o=>{n[o.uid]=o,r.value=sce(e,t,n)},removeChild:o=>{delete n[o],r.value=r.value.filter(s=>s.uid!==o)}}},la=Bo({type:String,values:xs,required:!1}),K6=Symbol("size"),lce=()=>{const e=lt(K6,{});return R(()=>y(e.size)||"")};function uce(e,{afterFocus:t,afterBlur:n}={}){const r=Bt(),{emit:a}=r,i=zn(),o=U(!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 Be(i,c=>{c&&c.setAttribute("tabindex","-1")}),Qn(i,"click",u),{wrapperRef:i,isFocused:o,handleFocus:s,handleBlur:l}}const U6=Symbol(),$b=U();function M_(e,t=void 0){const n=Bt()?lt(U6,$b):$b;return e?R(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function A_(e,t){const n=M_(),r=Fe(e,R(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Cp})),a=pn(R(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=Bh(R(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||D6})),o=R(()=>{var s;return y(t)||((s=n.value)==null?void 0:s.size)||""});return SA(R(()=>y(n)||{})),{ns:r,locale:a,zIndex:i,size:o}}const SA=(e,t,n=!1)=>{var r;const a=!!Bt(),i=a?M_():void 0,o=(r=t==null?void 0:t.provide)!=null?r:a?Jt:void 0;if(!o)return;const s=R(()=>{const l=y(e);return i!=null&&i.value?cce(i.value,l):l});return o(U6,s),o(c6,R(()=>s.value.locale)),o(f6,R(()=>s.value.namespace)),o(P6,R(()=>s.value.zIndex)),o(K6,{size:R(()=>s.value.size||"")}),(n||!$b.value)&&($b.value=s.value),s},cce=(e,t)=>{var n;const r=[...new Set([...ug(e),...ug(t)])],a={};for(const i of r)a[i]=(n=t[i])!=null?n:e[i];return a},fce=je({a11y:{type:Boolean,default:!0},locale:{type:ye(Object)},size:la,button:{type:ye(Object)},experimentalFeatures:{type:ye(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ye(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),C2={},dce=te({name:"ElConfigProvider",props:fce,setup(e,{slots:t}){Be(()=>e.message,r=>{Object.assign(C2,r??{})},{immediate:!0,deep:!0});const n=SA(e);return()=>Re(t,"default",{config:n==null?void 0:n.value})}}),hce=Ht(dce),vce="2.3.14",pce=(e=[])=>({version:vce,install:(n,r)=>{n[QL]||(n[QL]=!0,e.forEach(a=>n.use(a)),r&&SA(r,n,!0))}}),gce=je({zIndex:{type:ye([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})=>Tt(e)&&Rr(t),[qn]:e=>Rr(e)};var Ue=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const j6="ElAffix",yce=te({name:j6}),bce=te({...yce,props:gce,emits:mce,setup(e,{expose:t,emit:n}){const r=e,a=Fe("affix"),i=zn(),o=zn(),s=zn(),{height:l}=Aee(),{height:u,width:c,top:f,bottom:d,update:h}=pL(o,{windowScroll:!1}),v=pL(i),p=U(!1),g=U(0),m=U(0),b=R(()=>({height:p.value?`${u.value}px`:"",width:p.value?`${c.value}px`:""})),_=R(()=>{if(!p.value)return{};const C=r.offset?gr(r.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:r.position==="top"?C:"",bottom:r.position==="bottom"?C:"",transform:m.value?`translateY(${m.value}px)`:"",zIndex:r.zIndex}}),S=()=>{if(s.value)if(g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const C=v.bottom.value-r.offset-u.value;p.value=r.offset>f.value&&v.bottom.value>0,m.value=C<0?C:0}else p.value=r.offset>f.value;else if(r.target){const C=l.value-v.top.value-r.offset-u.value;p.value=l.value-r.offset<d.value&&l.value>v.top.value,m.value=C<0?-C:0}else p.value=l.value-r.offset<d.value},x=()=>{h(),n("scroll",{scrollTop:g.value,fixed:p.value})};return Be(p,C=>n("change",C)),Ft(()=>{var C;r.target?(i.value=(C=document.querySelector(r.target))!=null?C:void 0,i.value||Nr(j6,`Target is not existed: ${r.target}`)):i.value=document.documentElement,s.value=JM(o.value,!0),h()}),Qn(s,"scroll",x),yi(S),t({update:S,updateRoot:h}),(C,w)=>($(),Z("div",{ref_key:"root",ref:o,class:W(y(a).b()),style:ft(y(b))},[ee("div",{class:W({[y(a).m("fixed")]:p.value}),style:ft(y(_))},[Re(C.$slots,"default")],6)],6))}});var _ce=Ue(bce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const wce=Ht(_ce),Sce=je({size:{type:ye([Number,String])},color:{type:String}}),Cce=te({name:"ElIcon",inheritAttrs:!1}),xce=te({...Cce,props:Sce,setup(e){const t=e,n=Fe("icon"),r=R(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:Vr(a)?void 0:gr(a),"--color":i}});return(a,i)=>($(),Z("i",Yt({class:y(n).b(),style:y(r)},a.$attrs),[Re(a.$slots,"default")],16))}});var Tce=Ue(xce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ut=Ht(Tce),kce=["light","dark"],Mce=je({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:ug(vu),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:kce,default:"light"}}),Ace={close:e=>e instanceof MouseEvent},Ece=te({name:"ElAlert"}),Ice=te({...Ece,props:Mce,emits:Ace,setup(e,{emit:t}){const n=e,{Close:r}=rA,a=da(),i=Fe("alert"),o=U(!0),s=R(()=>vu[n.type]),l=R(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!a.default}]),u=R(()=>({[i.is("bold")]:n.description||a.default})),c=f=>{o.value=!1,t("close",f)};return(f,d)=>($(),Se(xr,{name:y(i).b("fade"),persisted:""},{default:ce(()=>[Ot(ee("div",{class:W([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)?($(),Se(y(ut),{key:0,class:W(y(l))},{default:ce(()=>[($(),Se(qt(y(s))))]),_:1},8,["class"])):me("v-if",!0),ee("div",{class:W(y(i).e("content"))},[f.title||f.$slots.title?($(),Z("span",{key:0,class:W([y(i).e("title"),y(u)])},[Re(f.$slots,"title",{},()=>[_n(Ke(f.title),1)])],2)):me("v-if",!0),f.$slots.default||f.description?($(),Z("p",{key:1,class:W(y(i).e("description"))},[Re(f.$slots,"default",{},()=>[_n(Ke(f.description),1)])],2)):me("v-if",!0),f.closable?($(),Z(dt,{key:2},[f.closeText?($(),Z("div",{key:0,class:W([y(i).e("close-btn"),y(i).is("customed")]),onClick:c},Ke(f.closeText),3)):($(),Se(y(ut),{key:1,class:W(y(i).e("close-btn")),onClick:c},{default:ce(()=>[re(y(r))]),_:1},8,["class"]))],64)):me("v-if",!0)],2)],2),[[bn,o.value]])]),_:3},8,["name"]))}});var Dce=Ue(Ice,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const Pce=Ht(Dce),Ef=Symbol("formContextKey"),_s=Symbol("formItemContextKey"),$r=(e,t={})=>{const n=U(void 0),r=t.prop?n:v6("size"),a=t.global?n:lce(),i=t.form?{size:void 0}:lt(Ef,void 0),o=t.formItem?{size:void 0}:lt(_s,void 0);return R(()=>r.value||y(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},li=e=>{const t=v6("disabled"),n=lt(Ef,void 0);return R(()=>t.value||y(e)||(n==null?void 0:n.disabled)||!1)},Ga=()=>{const e=lt(Ef,void 0),t=lt(_s,void 0);return{form:e,formItem:t}},Lu=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=U(!1)),r||(r=U(!1));const a=U();let i;const o=R(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return Ft(()=>{i=Be([or(e,"id"),n],([s,l])=>{const u=s??(l?void 0:Xi().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})}),Mu(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},Lce=je({size:{type:String,values:xs},disabled:Boolean}),Rce=je({...Lce,model:Object,rules:{type:ye(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]}}),Oce={validate:(e,t,n)=>(st(e)||At(e))&&Rr(t)&&At(n)};function Nce(){const e=U([]),t=R(()=>{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 fy=(e,t)=>{const n=hf(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},$ce="ElForm",Bce=te({name:$ce}),Vce=te({...Bce,props:Rce,emits:Oce,setup(e,{expose:t,emit:n}){const r=e,a=[],i=$r(),o=Fe("form"),s=R(()=>{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&&fy(a,b).forEach(_=>_.resetField())},f=(b=[])=>{fy(a,b).forEach(_=>_.clearValidate())},d=R(()=>!!r.model),h=b=>{if(a.length===0)return[];const _=fy(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 S={};for(const x of _)try{await x.validate("")}catch(C){S={...S,...C}}return Object.keys(S).length===0?!0:Promise.reject(S)},g=async(b=[],_)=>{const S=!kt(_);try{const x=await p(b);return x===!0&&(_==null||_(x)),x}catch(x){if(x instanceof Error)throw x;const C=x;return r.scrollToError&&m(Object.keys(C)[0]),_==null||_(!1,C),S&&Promise.reject(C)}},m=b=>{var _;const S=fy(a,b)[0];S&&((_=S.$el)==null||_.scrollIntoView(r.scrollIntoViewOptions))};return Be(()=>r.rules,()=>{r.validateOnRuleChange&&v().catch(b=>void 0)},{deep:!0}),Jt(Ef,Sn({...Ur(r),emit:n,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...Nce()})),t({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(b,_)=>($(),Z("form",{class:W(y(s))},[Re(b.$slots,"default")],2))}});var Fce=Ue(Vce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Nc(){return Nc=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},Nc.apply(this,arguments)}function zce(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vg(e,t)}function x2(e){return x2=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},x2(e)}function vg(e,t){return vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},vg(e,t)}function Hce(){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 N0(e,t,n){return Hce()?N0=Reflect.construct.bind():N0=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&vg(u,o.prototype),u},N0.apply(null,arguments)}function Wce(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function T2(e){var t=typeof Map=="function"?new Map:void 0;return T2=function(r){if(r===null||!Wce(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 N0(r,arguments,x2(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),vg(a,r)},T2(e)}var Gce=/%[sdj%]/g,Kce=function(){};typeof process<"u"&&process.env;function k2(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 gi(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(Gce,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 Uce(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function jr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Uce(t)&&typeof e=="string"&&!e)}function jce(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 yR(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 Yce(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var bR=function(e){zce(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}(T2(Error));function qce(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 bR(m,k2(m))):d(a)},p=Yce(e);yR(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 bR(c,k2(c))):d(a)};s.length||(r(c),d(a)),s.forEach(function(p){var g=e[p];o.indexOf(p)!==-1?yR(g,n,v):jce(g,n,v)})});return f.catch(function(d){return d}),f}function Xce(e){return!!(e&&e.message!==void 0)}function Zce(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function _R(e,t){return function(n){var r;return e.fullFields?r=Zce(t,e.fullFields):r=t[n.field||e.fullField],Xce(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 wR(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]=Nc({},e[n],r):e[n]=r}}return e}var Y6=function(t,n,r,a,i,o){t.required&&(!r.hasOwnProperty(t.field)||jr(n,o||t.type))&&a.push(gi(i.messages.required,t.fullField))},Qce=function(t,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(gi(i.messages.whitespace,t.fullField))},dy,Jce=function(){if(dy)return dy;var e="[a-fA-F\\d:]",t=function(S){return S&&S.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=(`
 
- (?:
 
- (?:`+r+":){7}(?:"+r+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
 
- (?:`+r+":){6}(?:"+n+"|:"+r+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
 
- (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
 
- (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
 
- (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
 
- (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
 
- (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
 
- (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
 
- )(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
 
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),o=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),l=function(S){return S&&S.exact?i:new RegExp("(?:"+t(S)+n+t(S)+")|(?:"+t(S)+a+t(S)+")","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 dy=new RegExp("(?:^"+b+"$)","i"),dy},SR={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},tp={integer:function(t){return tp.number(t)&&parseInt(t,10)===t},float:function(t){return tp.number(t)&&!tp.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"&&!tp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(SR.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Jce())},hex:function(t){return typeof t=="string"&&!!t.match(SR.hex)}},efe=function(t,n,r,a,i){if(t.required&&n===void 0){Y6(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?tp[s](n)||a.push(gi(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&a.push(gi(i.messages.types[s],t.fullField,t.type))},tfe=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(gi(i.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?a.push(gi(i.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?a.push(gi(i.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&a.push(gi(i.messages[f].range,t.fullField,t.min,t.max))},Gf="enum",nfe=function(t,n,r,a,i){t[Gf]=Array.isArray(t[Gf])?t[Gf]:[],t[Gf].indexOf(n)===-1&&a.push(gi(i.messages[Gf],t.fullField,t[Gf].join(", ")))},rfe=function(t,n,r,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(gi(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(gi(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Nn={required:Y6,whitespace:Qce,type:efe,range:tfe,enum:nfe,pattern:rfe},afe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n,"string")&&!t.required)return r();Nn.required(t,n,a,o,i,"string"),jr(n,"string")||(Nn.type(t,n,a,o,i),Nn.range(t,n,a,o,i),Nn.pattern(t,n,a,o,i),t.whitespace===!0&&Nn.whitespace(t,n,a,o,i))}r(o)},ife=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Nn.required(t,n,a,o,i),n!==void 0&&Nn.type(t,n,a,o,i)}r(o)},ofe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),jr(n)&&!t.required)return r();Nn.required(t,n,a,o,i),n!==void 0&&(Nn.type(t,n,a,o,i),Nn.range(t,n,a,o,i))}r(o)},sfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Nn.required(t,n,a,o,i),n!==void 0&&Nn.type(t,n,a,o,i)}r(o)},lfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Nn.required(t,n,a,o,i),jr(n)||Nn.type(t,n,a,o,i)}r(o)},ufe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Nn.required(t,n,a,o,i),n!==void 0&&(Nn.type(t,n,a,o,i),Nn.range(t,n,a,o,i))}r(o)},cfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Nn.required(t,n,a,o,i),n!==void 0&&(Nn.type(t,n,a,o,i),Nn.range(t,n,a,o,i))}r(o)},ffe=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();Nn.required(t,n,a,o,i,"array"),n!=null&&(Nn.type(t,n,a,o,i),Nn.range(t,n,a,o,i))}r(o)},dfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Nn.required(t,n,a,o,i),n!==void 0&&Nn.type(t,n,a,o,i)}r(o)},hfe="enum",vfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Nn.required(t,n,a,o,i),n!==void 0&&Nn[hfe](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(jr(n,"string")&&!t.required)return r();Nn.required(t,n,a,o,i),jr(n,"string")||Nn.pattern(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(jr(n,"date")&&!t.required)return r();if(Nn.required(t,n,a,o,i),!jr(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Nn.type(t,l,a,o,i),l&&Nn.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;Nn.required(t,n,a,o,i,s),r(o)},uS=function(t,n,r,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(jr(n,o)&&!t.required)return r();Nn.required(t,n,a,s,i,o),jr(n,o)||Nn.type(t,n,a,s,i)}r(s)},yfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(jr(n)&&!t.required)return r();Nn.required(t,n,a,o,i)}r(o)},kp={string:afe,method:ife,number:ofe,boolean:sfe,regexp:lfe,integer:ufe,float:cfe,array:ffe,object:dfe,enum:vfe,pattern:pfe,date:gfe,url:uS,hex:uS,email:uS,required:mfe,any:yfe};function M2(){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 A2=M2(),ym=function(){function e(n){this.rules=null,this._messages=A2,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=wR(M2(),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(S){if(Array.isArray(S)){var x;g=(x=g).concat.apply(x,S)}else g.push(S)}for(var _=0;_<p.length;_++)b(p[_]);g.length?(m=k2(g),u(g,m)):u(null,s)}if(l.messages){var f=this.messages();f===A2&&(f=M2()),wR(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=Nc({},s)),m=s[p]=_.transform(m)),typeof _=="function"?_={validator:_}:_=Nc({},_),_.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 qce(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 _(C,w){return Nc({},w,{fullField:m.fullField+"."+C,fullFields:m.fullFields?[].concat(m.fullFields,[C]):[C]})}function S(C){C===void 0&&(C=[]);var w=Array.isArray(C)?C:[C];!l.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&m.message!==void 0&&(w=[].concat(m.message));var k=w.map(_R(m,s));if(l.first&&k.length)return v[m.field]=1,g(k);if(!b)g(k);else{if(m.required&&!p.value)return m.message!==void 0?k=[].concat(m.message).map(_R(m,s)):l.error&&(k=[l.error(m,gi(l.messages.required,m.field))]),g(k);var M={};m.defaultField&&Object.keys(p.value).map(function(D){M[D]=m.defaultField}),M=Nc({},M,p.rule.fields);var I={};Object.keys(M).forEach(function(D){var P=M[D],N=Array.isArray(P)?P:[P];I[D]=N.map(_.bind(null,D))});var E=new e(I);E.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),E.validate(p.value,p.rule.options||l,function(D){var P=[];k&&k.length&&P.push.apply(P,k),D&&D.length&&P.push.apply(P,D),g(P.length?P:null)})}}var x;if(m.asyncValidator)x=m.asyncValidator(m,p.value,S,p.source,l);else if(m.validator){try{x=m.validator(m,p.value,S,p.source,l)}catch(C){console.error==null||console.error(C),l.suppressValidatorError||setTimeout(function(){throw C},0),S(C.message)}x===!0?S():x===!1?S(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):x instanceof Array?S(x):x instanceof Error&&S(x.message)}x&&x.then&&x.then(function(){return S()},function(C){return S(C)})},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&&!kp.hasOwnProperty(r.type))throw new Error(gi("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"?kp.required:kp[this.getType(r)]||void 0},e}();ym.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");kp[t]=n};ym.warning=Kce;ym.messages=A2;ym.validators=kp;const bfe=["","error","validating","success"],_fe=je({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:ye([String,Array])},required:{type:Boolean,default:void 0},rules:{type:ye([Object,Array])},error:String,validateStatus:{type:String,values:bfe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:xs}}),CR="ElLabelWrap";var wfe=te({name:CR,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=lt(Ef,void 0),r=lt(_s);r||Nr(CR,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Fe("form"),i=U(),o=U(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")=>{ct(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},u=()=>l("update");return Ft(()=>{u()}),er(()=>{l("remove")}),cl(()=>u()),Be(o,(c,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,f))}),wa(R(()=>{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 re("div",{ref:i,class:[a.be("item","label-wrap")],style:p},[(c=t.default)==null?void 0:c.call(t)])}else return re(dt,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const Sfe=["role","aria-labelledby"],Cfe=te({name:"ElFormItem"}),xfe=te({...Cfe,props:_fe,setup(e,{expose:t}){const n=e,r=da(),a=lt(Ef,void 0),i=lt(_s,void 0),o=$r(void 0,{formItem:!1}),s=Fe("form-item"),l=Xi().value,u=U([]),c=U(""),f=dee(c,100),d=U(""),h=U();let v,p=!1;const g=R(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const le=gr(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return le?{width:le}:{}}),m=R(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&M)return{};const le=gr(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!r.label?{marginLeft:le}:{}}),b=R(()=>[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",N.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}]),_=R(()=>Rr(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),S=R(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),x=R(()=>n.prop?At(n.prop)?n.prop:n.prop.join("."):""),C=R(()=>!!(n.label||r.label)),w=R(()=>n.for||u.value.length===1?u.value[0]:void 0),k=R(()=>!w.value&&C.value),M=!!i,I=R(()=>{const le=a==null?void 0:a.model;if(!(!le||!n.prop))return R0(le,n.prop).value}),E=R(()=>{const{required:le}=n,ne=[];n.rules&&ne.push(...hf(n.rules));const Ce=a==null?void 0:a.rules;if(Ce&&n.prop){const Te=R0(Ce,n.prop).value;Te&&ne.push(...hf(Te))}if(le!==void 0){const Te=ne.map((he,X)=>[he,X]).filter(([he])=>Object.keys(he).includes("required"));if(Te.length>0)for(const[he,X]of Te)he.required!==le&&(ne[X]={...he,required:le});else ne.push({required:le})}return ne}),D=R(()=>E.value.length>0),P=le=>E.value.filter(Ce=>!Ce.trigger||!le?!0:Array.isArray(Ce.trigger)?Ce.trigger.includes(le):Ce.trigger===le).map(({trigger:Ce,...Te})=>Te),N=R(()=>E.value.some(le=>le.required)),z=R(()=>{var le;return f.value==="error"&&n.showMessage&&((le=a==null?void 0:a.showMessage)!=null?le:!0)}),F=R(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),B=le=>{c.value=le},V=le=>{var ne,Ce;const{errors:Te,fields:he}=le;(!Te||!he)&&console.error(le),B("error"),d.value=Te?(Ce=(ne=Te==null?void 0:Te[0])==null?void 0:ne.message)!=null?Ce:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,d.value)},L=()=>{B("success"),a==null||a.emit("validate",n.prop,!0,"")},G=async le=>{const ne=x.value;return new ym({[ne]:le}).validate({[ne]:I.value},{firstFields:!0}).then(()=>(L(),!0)).catch(Te=>(V(Te),Promise.reject(Te)))},q=async(le,ne)=>{if(p||!n.prop)return!1;const Ce=kt(ne);if(!D.value)return ne==null||ne(!1),!1;const Te=P(le);return Te.length===0?(ne==null||ne(!0),!0):(B("validating"),G(Te).then(()=>(ne==null||ne(!0),!0)).catch(he=>{const{fields:X}=he;return ne==null||ne(!1,X),Ce?!1:Promise.reject(X)}))},Q=()=>{B(""),d.value="",p=!1},ie=async()=>{const le=a==null?void 0:a.model;if(!le||!n.prop)return;const ne=R0(le,n.prop);p=!0,ne.value=UL(v),await ct(),Q(),p=!1},de=le=>{u.value.includes(le)||u.value.push(le)},oe=le=>{u.value=u.value.filter(ne=>ne!==le)};Be(()=>n.error,le=>{d.value=le||"",B(le?"error":"")},{immediate:!0}),Be(()=>n.validateStatus,le=>B(le||""));const se=Sn({...Ur(n),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:k,hasLabel:C,addInputId:de,removeInputId:oe,resetField:ie,clearValidate:Q,validate:q});return Jt(_s,se),Ft(()=>{n.prop&&(a==null||a.addField(se),v=UL(I.value))}),er(()=>{a==null||a.removeField(se)}),t({size:o,validateMessage:d,validateState:c,validate:q,clearValidate:Q,resetField:ie}),(le,ne)=>{var Ce;return $(),Z("div",{ref_key:"formItemRef",ref:h,class:W(y(b)),role:y(k)?"group":void 0,"aria-labelledby":y(k)?y(l):void 0},[re(y(wfe),{"is-auto-width":y(g).width==="auto","update-all":((Ce=y(a))==null?void 0:Ce.labelWidth)==="auto"},{default:ce(()=>[y(C)?($(),Se(qt(y(w)?"label":"div"),{key:0,id:y(l),for:y(w),class:W(y(s).e("label")),style:ft(y(g))},{default:ce(()=>[Re(le.$slots,"label",{label:y(F)},()=>[_n(Ke(y(F)),1)])]),_:3},8,["id","for","class","style"])):me("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ee("div",{class:W(y(s).e("content")),style:ft(y(m))},[Re(le.$slots,"default"),re(GF,{name:`${y(s).namespace.value}-zoom-in-top`},{default:ce(()=>[y(z)?Re(le.$slots,"error",{key:0,error:d.value},()=>[ee("div",{class:W(y(S))},Ke(d.value),3)]):me("v-if",!0)]),_:3},8,["name"])],6)],10,Sfe)}}});var q6=Ue(xfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Tfe=Ht(Fce,{FormItem:q6}),kfe=fr(q6);let uo;const Mfe=`
 
-   height:0 !important;
 
-   visibility:hidden !important;
 
-   ${hz()?"":"overflow:hidden !important;"}
 
-   position:absolute !important;
 
-   z-index:-1000 !important;
 
-   top:0 !important;
 
-   right:0 !important;
 
- `,Afe=["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 Efe(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:Afe.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function xR(e,t=1,n){var r;uo||(uo=document.createElement("textarea"),document.body.appendChild(uo));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=Efe(e);uo.setAttribute("style",`${s};${Mfe}`),uo.value=e.value||e.placeholder||"";let l=uo.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),uo.value="";const c=uo.scrollHeight-a;if(Tt(t)){let f=c*t;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(Tt(n)){let f=c*n;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(r=uo.parentNode)==null||r.removeChild(uo),uo=void 0,u}const Ife=je({id:{type:String,default:void 0},size:la,disabled:Boolean,modelValue:{type:ye([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ye([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:Wn},prefixIcon:{type:Wn},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:ye([Object,Array,String]),default:()=>nr({})},autofocus:{type:Boolean,default:!1}}),Dfe={[Gt]:e=>At(e),input:e=>At(e),change:e=>At(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},Pfe=["role"],Lfe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Rfe=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Ofe=te({name:"ElInput",inheritAttrs:!1}),Nfe=te({...Ofe,props:Ife,emits:Dfe,setup(e,{expose:t,emit:n}){const r=e,a=xf(),i=da(),o=R(()=>{const _e={};return r.containerRole==="combobox"&&(_e["aria-haspopup"]=a["aria-haspopup"],_e["aria-owns"]=a["aria-owns"],_e["aria-expanded"]=a["aria-expanded"]),_e}),s=R(()=>[r.type==="textarea"?g.b():p.b(),p.m(h.value),p.is("disabled",v.value),p.is("exceed",de.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")]:G.value&&q.value},a.class]),l=R(()=>[p.e("wrapper"),p.is("focus",I.value)]),u=iA({excludeKeys:R(()=>Object.keys(o.value))}),{form:c,formItem:f}=Ga(),{inputId:d}=Lu(r,{formItemContext:f}),h=$r(),v=li(),p=Fe("input"),g=Fe("textarea"),m=zn(),b=zn(),_=U(!1),S=U(!1),x=U(!1),C=U(),w=zn(r.inputStyle),k=R(()=>m.value||b.value),{wrapperRef:M,isFocused:I,handleFocus:E,handleBlur:D}=uce(k,{afterBlur(){var _e;r.validateEvent&&((_e=f==null?void 0:f.validate)==null||_e.call(f,"blur").catch(Je=>void 0))}}),P=R(()=>{var _e;return(_e=c==null?void 0:c.statusIcon)!=null?_e:!1}),N=R(()=>(f==null?void 0:f.validateState)||""),z=R(()=>N.value&&aA[N.value]),F=R(()=>x.value?Qse:wse),B=R(()=>[a.style,r.inputStyle]),V=R(()=>[r.inputStyle,w.value,{resize:r.resize}]),L=R(()=>Lr(r.modelValue)?"":String(r.modelValue)),G=R(()=>r.clearable&&!v.value&&!r.readonly&&!!L.value&&(I.value||_.value)),q=R(()=>r.showPassword&&!v.value&&!r.readonly&&!!L.value&&(!!L.value||I.value)),Q=R(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!v.value&&!r.readonly&&!r.showPassword),ie=R(()=>L.value.length),de=R(()=>!!Q.value&&ie.value>Number(u.value.maxlength)),oe=R(()=>!!i.suffix||!!r.suffixIcon||G.value||r.showPassword||Q.value||!!N.value&&P.value),[se,le]=oce(m);wa(b,_e=>{if(Te(),!Q.value||r.resize!=="both")return;const Je=_e[0],{width:St}=Je.contentRect;C.value={right:`calc(100% - ${St+15+6}px)`}});const ne=()=>{const{type:_e,autosize:Je}=r;if(!(!fn||_e!=="textarea"||!b.value))if(Je){const St=Qt(Je)?Je.minRows:void 0,Rt=Qt(Je)?Je.maxRows:void 0,Kt=xR(b.value,St,Rt);w.value={overflowY:"hidden",...Kt},ct(()=>{b.value.offsetHeight,w.value=Kt})}else w.value={minHeight:xR(b.value).minHeight}},Te=(_e=>{let Je=!1;return()=>{var St;if(Je||!r.autosize)return;((St=b.value)==null?void 0:St.offsetParent)===null||(_e(),Je=!0)}})(ne),he=()=>{const _e=k.value,Je=r.formatter?r.formatter(L.value):L.value;!_e||_e.value===Je||(_e.value=Je)},X=async _e=>{se();let{value:Je}=_e.target;if(r.formatter&&(Je=r.parser?r.parser(Je):Je),!S.value){if(Je===L.value){he();return}n(Gt,Je),n("input",Je),await ct(),he(),le()}},ae=_e=>{n("change",_e.target.value)},ge=_e=>{n("compositionstart",_e),S.value=!0},ke=_e=>{var Je;n("compositionupdate",_e);const St=(Je=_e.target)==null?void 0:Je.value,Rt=St[St.length-1]||"";S.value=!w_(Rt)},Pe=_e=>{n("compositionend",_e),S.value&&(S.value=!1,X(_e))},Me=()=>{x.value=!x.value,ze()},ze=async()=>{var _e;await ct(),(_e=k.value)==null||_e.focus()},Oe=()=>{var _e;return(_e=k.value)==null?void 0:_e.blur()},Le=_e=>{_.value=!1,n("mouseleave",_e)},Ve=_e=>{_.value=!0,n("mouseenter",_e)},qe=_e=>{n("keydown",_e)},nt=()=>{var _e;(_e=k.value)==null||_e.select()},ot=()=>{n(Gt,""),n("change",""),n("clear"),n("input","")};return Be(()=>r.modelValue,()=>{var _e;ct(()=>ne()),r.validateEvent&&((_e=f==null?void 0:f.validate)==null||_e.call(f,"change").catch(Je=>void 0))}),Be(L,()=>he()),Be(()=>r.type,async()=>{await ct(),he(),ne()}),Ft(()=>{!r.formatter&&r.parser,he(),ct(ne)}),t({input:m,textarea:b,ref:k,textareaStyle:V,autosize:or(r,"autosize"),focus:ze,blur:Oe,select:nt,clear:ot,resizeTextarea:ne}),(_e,Je)=>Ot(($(),Z("div",Yt(y(o),{class:y(s),style:y(B),role:_e.containerRole,onMouseenter:Ve,onMouseleave:Le}),[me(" input "),_e.type!=="textarea"?($(),Z(dt,{key:0},[me(" prepend slot "),_e.$slots.prepend?($(),Z("div",{key:0,class:W(y(p).be("group","prepend"))},[Re(_e.$slots,"prepend")],2)):me("v-if",!0),ee("div",{ref_key:"wrapperRef",ref:M,class:W(y(l))},[me(" prefix slot "),_e.$slots.prefix||_e.prefixIcon?($(),Z("span",{key:0,class:W(y(p).e("prefix"))},[ee("span",{class:W(y(p).e("prefix-inner"))},[Re(_e.$slots,"prefix"),_e.prefixIcon?($(),Se(y(ut),{key:0,class:W(y(p).e("icon"))},{default:ce(()=>[($(),Se(qt(_e.prefixIcon)))]),_:1},8,["class"])):me("v-if",!0)],2)],2)):me("v-if",!0),ee("input",Yt({id:y(d),ref_key:"input",ref:m,class:y(p).e("inner")},y(u),{type:_e.showPassword?x.value?"text":"password":_e.type,disabled:y(v),formatter:_e.formatter,parser:_e.parser,readonly:_e.readonly,autocomplete:_e.autocomplete,tabindex:_e.tabindex,"aria-label":_e.label,placeholder:_e.placeholder,style:_e.inputStyle,form:r.form,autofocus:r.autofocus,onCompositionstart:ge,onCompositionupdate:ke,onCompositionend:Pe,onInput:X,onFocus:Je[0]||(Je[0]=(...St)=>y(E)&&y(E)(...St)),onBlur:Je[1]||(Je[1]=(...St)=>y(D)&&y(D)(...St)),onChange:ae,onKeydown:qe}),null,16,Lfe),me(" suffix slot "),y(oe)?($(),Z("span",{key:1,class:W(y(p).e("suffix"))},[ee("span",{class:W(y(p).e("suffix-inner"))},[!y(G)||!y(q)||!y(Q)?($(),Z(dt,{key:0},[Re(_e.$slots,"suffix"),_e.suffixIcon?($(),Se(y(ut),{key:0,class:W(y(p).e("icon"))},{default:ce(()=>[($(),Se(qt(_e.suffixIcon)))]),_:1},8,["class"])):me("v-if",!0)],64)):me("v-if",!0),y(G)?($(),Se(y(ut),{key:1,class:W([y(p).e("icon"),y(p).e("clear")]),onMousedown:_t(y(Ln),["prevent"]),onClick:ot},{default:ce(()=>[re(y(Eu))]),_:1},8,["class","onMousedown"])):me("v-if",!0),y(q)?($(),Se(y(ut),{key:2,class:W([y(p).e("icon"),y(p).e("password")]),onClick:Me},{default:ce(()=>[($(),Se(qt(y(F))))]),_:1},8,["class"])):me("v-if",!0),y(Q)?($(),Z("span",{key:3,class:W(y(p).e("count"))},[ee("span",{class:W(y(p).e("count-inner"))},Ke(y(ie))+" / "+Ke(y(u).maxlength),3)],2)):me("v-if",!0),y(N)&&y(z)&&y(P)?($(),Se(y(ut),{key:4,class:W([y(p).e("icon"),y(p).e("validateIcon"),y(p).is("loading",y(N)==="validating")])},{default:ce(()=>[($(),Se(qt(y(z))))]),_:1},8,["class"])):me("v-if",!0)],2)],2)):me("v-if",!0)],2),me(" append slot "),_e.$slots.append?($(),Z("div",{key:1,class:W(y(p).be("group","append"))},[Re(_e.$slots,"append")],2)):me("v-if",!0)],64)):($(),Z(dt,{key:1},[me(" textarea "),ee("textarea",Yt({id:y(d),ref_key:"textarea",ref:b,class:y(g).e("inner")},y(u),{tabindex:_e.tabindex,disabled:y(v),readonly:_e.readonly,autocomplete:_e.autocomplete,style:y(V),"aria-label":_e.label,placeholder:_e.placeholder,form:r.form,autofocus:r.autofocus,onCompositionstart:ge,onCompositionupdate:ke,onCompositionend:Pe,onInput:X,onFocus:Je[2]||(Je[2]=(...St)=>y(E)&&y(E)(...St)),onBlur:Je[3]||(Je[3]=(...St)=>y(D)&&y(D)(...St)),onChange:ae,onKeydown:qe}),null,16,Rfe),y(Q)?($(),Z("span",{key:0,style:ft(C.value),class:W(y(p).e("count"))},Ke(y(ie))+" / "+Ke(y(u).maxlength),7)):me("v-if",!0)],64))],16,Pfe)),[[bn,_e.type!=="hidden"]])}});var $fe=Ue(Nfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const ba=Ht($fe),Td=4,X6={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"}},Bfe=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),Z6=Symbol("scrollbarContextKey"),Vfe=je({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Ffe="Thumb",zfe=te({__name:"thumb",props:Vfe,setup(e){const t=e,n=lt(Z6),r=Fe("scrollbar");n||Nr(Ffe,"can not inject scrollbar context");const a=U(),i=U(),o=U({}),s=U(!1);let l=!1,u=!1,c=fn?document.onselectstart:null;const f=R(()=>X6[t.vertical?"vertical":"horizontal"]),d=R(()=>Bfe({size:t.size,move:t.move,bar:f.value})),h=R(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),v=C=>{var w;if(C.stopPropagation(),C.ctrlKey||[1,2].includes(C.button))return;(w=window.getSelection())==null||w.removeAllRanges(),g(C);const k=C.currentTarget;k&&(o.value[f.value.axis]=k[f.value.offset]-(C[f.value.client]-k.getBoundingClientRect()[f.value.direction]))},p=C=>{if(!i.value||!a.value||!n.wrapElement)return;const w=Math.abs(C.target.getBoundingClientRect()[f.value.direction]-C[f.value.client]),k=i.value[f.value.offset]/2,M=(w-k)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=M*n.wrapElement[f.value.scrollSize]/100},g=C=>{C.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",b),c=document.onselectstart,document.onselectstart=()=>!1},m=C=>{if(!a.value||!i.value||l===!1)return;const w=o.value[f.value.axis];if(!w)return;const k=(a.value.getBoundingClientRect()[f.value.direction]-C[f.value.client])*-1,M=i.value[f.value.offset]-w,I=(k-M)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=I*n.wrapElement[f.value.scrollSize]/100},b=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",b),x(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},S=()=>{u=!0,s.value=l};er(()=>{x(),document.removeEventListener("mouseup",b)});const x=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Qn(or(n,"scrollbarElement"),"mousemove",_),Qn(or(n,"scrollbarElement"),"mouseleave",S),(C,w)=>($(),Se(xr,{name:y(r).b("fade"),persisted:""},{default:ce(()=>[Ot(ee("div",{ref_key:"instance",ref:a,class:W([y(r).e("bar"),y(r).is(y(f).key)]),onMousedown:p},[ee("div",{ref_key:"thumb",ref:i,class:W(y(r).e("thumb")),style:ft(y(d)),onMousedown:v},null,38)],34),[[bn,C.always||s.value]])]),_:1},8,["name"]))}});var TR=Ue(zfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Hfe=je({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),Wfe=te({__name:"bar",props:Hfe,setup(e,{expose:t}){const n=e,r=U(0),a=U(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-Td,l=o.offsetWidth-Td;a.value=o.scrollTop*100/s*n.ratioY,r.value=o.scrollLeft*100/l*n.ratioX}}}),(o,s)=>($(),Z(dt,null,[re(TR,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),re(TR,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var Gfe=Ue(Wfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const Kfe=je({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:ye([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}}),Ufe={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Tt)},jfe="ElScrollbar",Yfe=te({name:jfe}),qfe=te({...Yfe,props:Kfe,emits:Ufe,setup(e,{expose:t,emit:n}){const r=e,a=Fe("scrollbar");let i,o;const s=U(),l=U(),u=U(),c=U("0"),f=U("0"),d=U(),h=U(1),v=U(1),p=R(()=>{const w={};return r.height&&(w.height=gr(r.height)),r.maxHeight&&(w.maxHeight=gr(r.maxHeight)),[r.wrapStyle,w]}),g=R(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),m=R(()=>[a.e("view"),r.viewClass]),b=()=>{var w;l.value&&((w=d.value)==null||w.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(w,k){Qt(w)?l.value.scrollTo(w):Tt(w)&&Tt(k)&&l.value.scrollTo(w,k)}const S=w=>{Tt(w)&&(l.value.scrollTop=w)},x=w=>{Tt(w)&&(l.value.scrollLeft=w)},C=()=>{if(!l.value)return;const w=l.value.offsetHeight-Td,k=l.value.offsetWidth-Td,M=w**2/l.value.scrollHeight,I=k**2/l.value.scrollWidth,E=Math.max(M,r.minSize),D=Math.max(I,r.minSize);h.value=M/(w-M)/(E/(w-E)),v.value=I/(k-I)/(D/(k-D)),f.value=E+Td<w?`${E}px`:"",c.value=D+Td<k?`${D}px`:""};return Be(()=>r.noresize,w=>{w?(i==null||i(),o==null||o()):({stop:i}=wa(u,C),o=Qn("resize",C))},{immediate:!0}),Be(()=>[r.maxHeight,r.height],()=>{r.native||ct(()=>{var w;C(),l.value&&((w=d.value)==null||w.handleScroll(l.value))})}),Jt(Z6,Sn({scrollbarElement:s,wrapElement:l})),Ft(()=>{r.native||ct(()=>{C()})}),cl(()=>C()),t({wrapRef:l,update:C,scrollTo:_,setScrollTop:S,setScrollLeft:x,handleScroll:b}),(w,k)=>($(),Z("div",{ref_key:"scrollbarRef",ref:s,class:W(y(a).b())},[ee("div",{ref_key:"wrapRef",ref:l,class:W(y(g)),style:ft(y(p)),onScroll:b},[($(),Se(qt(w.tag),{ref_key:"resizeRef",ref:u,class:W(y(m)),style:ft(w.viewStyle)},{default:ce(()=>[Re(w.$slots,"default")]),_:3},8,["class","style"]))],38),w.native?me("v-if",!0):($(),Se(Gfe,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:w.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Xfe=Ue(qfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const hl=Ht(Xfe),CA=Symbol("popper"),Q6=Symbol("popperContent"),Zfe=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],J6=je({role:{type:String,values:Zfe,default:"tooltip"}}),Qfe=te({name:"ElPopper",inheritAttrs:!1}),Jfe=te({...Qfe,props:J6,setup(e,{expose:t}){const n=e,r=U(),a=U(),i=U(),o=U(),s=R(()=>n.role),l={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return t(l),Jt(CA,l),(u,c)=>Re(u.$slots,"default")}});var ede=Ue(Jfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const e8=je({arrowOffset:{type:Number,default:5}}),tde=te({name:"ElPopperArrow",inheritAttrs:!1}),nde=te({...tde,props:e8,setup(e,{expose:t}){const n=e,r=Fe("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=lt(Q6,void 0);return Be(()=>n.arrowOffset,s=>{a.value=s}),er(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>($(),Z("span",{ref_key:"arrowRef",ref:i,class:W(y(r).e("arrow")),style:ft(y(o)),"data-popper-arrow":""},null,6))}});var rde=Ue(nde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const ade="ElOnlyChild",t8=te({name:ade,setup(e,{slots:t,attrs:n}){var r;const a=lt(I6),i=Due((r=a==null?void 0:a.setForwardRef)!=null?r:Ln);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,n);if(!s||s.length>1)return null;const l=n8(s);return l?Ot(Js(l,n),[[i]]):null}}});function n8(e){if(!e)return null;const t=e;for(const n of t){if(Qt(n))switch(n.type){case La:continue;case Rh:case"svg":return kR(n);case dt:return n8(n.children);default:return n}return kR(n)}return null}function kR(e){const t=Fe("only-child");return re("span",{class:t.e("content")},[e])}const r8=je({virtualRef:{type:ye(Object)},virtualTriggering:Boolean,onMouseenter:{type:ye(Function)},onMouseleave:{type:ye(Function)},onClick:{type:ye(Function)},onKeydown:{type:ye(Function)},onFocus:{type:ye(Function)},onBlur:{type:ye(Function)},onContextmenu:{type:ye(Function)},id:String,open:Boolean}),ide=te({name:"ElPopperTrigger",inheritAttrs:!1}),ode=te({...ide,props:r8,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=lt(CA,void 0);Iue(a);const i=R(()=>s.value?n.id:void 0),o=R(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=R(()=>{if(r&&r.value!=="tooltip")return r.value}),l=R(()=>s.value?`${n.open}`:void 0);let u;return Ft(()=>{Be(()=>n.virtualRef,c=>{c&&(a.value=pi(c))},{immediate:!0}),Be(a,(c,f)=>{u==null||u(),u=void 0,ji(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=Be([i,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{Lr(d[v])?c.removeAttribute(h):c.setAttribute(h,d[v])})},{immediate:!0})),ji(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),er(()=>{u==null||u(),u=void 0}),t({triggerRef:a}),(c,f)=>c.virtualTriggering?me("v-if",!0):($(),Se(y(t8),Yt({key:0},c.$attrs,{"aria-controls":y(i),"aria-describedby":y(o),"aria-expanded":y(l),"aria-haspopup":y(s)}),{default:ce(()=>[Re(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var sde=Ue(ode,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const cS="focus-trap.focus-after-trapped",fS="focus-trap.focus-after-released",lde="focus-trap.focusout-prevented",MR={cancelable:!0,bubbles:!1},ude={cancelable:!0,bubbles:!1},AR="focusAfterTrapped",ER="focusAfterReleased",xA=Symbol("elFocusTrap"),TA=U(),E_=U(0),kA=U(0);let hy=0;const a8=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},IR=(e,t)=>{for(const n of e)if(!cde(n,t))return n},cde=(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},fde=e=>{const t=a8(e),n=IR(t,e),r=IR(t.reverse(),e);return[n,r]},dde=e=>e instanceof HTMLInputElement&&"select"in e,Rl=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),kA.value=window.performance.now(),e!==n&&dde(e)&&t&&e.select()}};function DR(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const hde=()=>{let e=[];return{push:r=>{const a=e[0];a&&r!==a&&a.pause(),e=DR(e,r),e.unshift(r)},remove:r=>{var a,i;e=DR(e,r),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},vde=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Rl(r,t),document.activeElement!==n)return},PR=hde(),pde=()=>E_.value>kA.value,vy=()=>{TA.value="pointer",E_.value=window.performance.now()},LR=()=>{TA.value="keyboard",E_.value=window.performance.now()},gde=()=>(Ft(()=>{hy===0&&(document.addEventListener("mousedown",vy),document.addEventListener("touchstart",vy),document.addEventListener("keydown",LR)),hy++}),er(()=>{hy--,hy<=0&&(document.removeEventListener("mousedown",vy),document.removeEventListener("touchstart",vy),document.removeEventListener("keydown",LR))}),{focusReason:TA,lastUserFocusTimestamp:E_,lastAutomatedFocusTimestamp:kA}),py=e=>new CustomEvent(lde,{...ude,detail:e}),mde=te({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[AR,ER,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=U();let r,a;const{focusReason:i}=gde();kue(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:S}=v,{loop:x}=e,C=p===vt.tab&&!g&&!m&&!b,w=document.activeElement;if(C&&w){const k=_,[M,I]=fde(k);if(M&&I){if(!S&&w===I){const D=py({focusReason:i.value});t("focusout-prevented",D),D.defaultPrevented||(v.preventDefault(),x&&Rl(M,!0))}else if(S&&[M,k].includes(w)){const D=py({focusReason:i.value});t("focusout-prevented",D),D.defaultPrevented||(v.preventDefault(),x&&Rl(I,!0))}}else if(w===k){const D=py({focusReason:i.value});t("focusout-prevented",D),D.defaultPrevented||v.preventDefault()}}};Jt(xA,{focusTrapRef:n,onKeydown:s}),Be(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),Be([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(AR,v)},u=v=>t(ER,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:Rl(a,!0))},f=v=>{const p=y(n);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!Lr(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=py({focusReason:i.value});t("focusout-prevented",m),m.defaultPrevented||Rl(a,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await ct();const v=y(n);if(v){PR.push(o);const p=v.contains(document.activeElement)?r:document.activeElement;if(r=p,!v.contains(p)){const m=new Event(cS,MR);v.addEventListener(cS,l),v.dispatchEvent(m),m.defaultPrevented||ct(()=>{let b=e.focusStartEl;At(b)||(Rl(b),document.activeElement!==b&&(b="first")),b==="first"&&vde(a8(v),!0),(document.activeElement===p||b==="container")&&Rl(v)})}}}function h(){const v=y(n);if(v){v.removeEventListener(cS,l);const p=new CustomEvent(fS,{...MR,detail:{focusReason:i.value}});v.addEventListener(fS,u),v.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!pde()||v.contains(document.activeElement))&&Rl(r??document.body),v.removeEventListener(fS,u),PR.remove(o)}}return Ft(()=>{e.trapped&&d(),Be(()=>e.trapped,v=>{v?d():h()})}),er(()=>{e.trapped&&h()}),{onKeydown:s}}});function yde(e,t,n,r,a,i){return Re(e.$slots,"default",{handleKeydown:e.onKeydown})}var I_=Ue(mde,[["render",yde],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const bde=["fixed","absolute"],_de=je({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ye(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Af,default:"bottom"},popperOptions:{type:ye(Object),default:()=>({})},strategy:{type:String,values:bde,default:"absolute"}}),i8=je({..._de,id:String,style:{type:ye([String,Array,Object])},className:{type:ye([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:ye([String,Array,Object])},popperStyle:{type:ye([String,Array,Object])},referenceEl:{type:ye(Object)},triggerTargetEl:{type:ye(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),wde={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Sde=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,i={placement:n,strategy:r,...a,modifiers:[...xde(e),...t]};return Tde(i,a==null?void 0:a.modifiers),i},Cde=e=>{if(fn)return pi(e)};function xde(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 Tde(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const kde=0,Mde=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=lt(CA,void 0),i=U(),o=U(),s=R(()=>({name:"eventListeners",enabled:!!e.visible})),l=R(()=>{var m;const b=y(i),_=(m=y(o))!=null?m:kde;return{name:"arrow",enabled:!Toe(b),options:{element:b,padding:_}}}),u=R(()=>({onFirstUpdate:()=>{v()},...Sde(e,[y(l),y(s)])})),c=R(()=>Cde(e.referenceEl)||y(r)),{attributes:f,state:d,styles:h,update:v,forceUpdate:p,instanceRef:g}=Sue(c,n,u);return Be(g,m=>t.value=m),Ft(()=>{Be(()=>{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}},Ade=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=Bh(),i=Fe("popper"),o=R(()=>y(t).popper),s=U(e.zIndex||a()),l=R(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=R(()=>[{zIndex:y(s)},y(n).popper,e.popperStyle||{}]),c=R(()=>r.value==="dialog"?"false":void 0),f=R(()=>y(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=e.zIndex||a()}}},Ede=(e,t)=>{const n=U(!1),r=U();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")}}},Ide=te({name:"ElPopperContent"}),Dde=te({...Ide,props:i8,emits:wde,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=Ede(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:v,instanceRef:p,role:g,update:m}=Mde(r),{ariaModal:b,arrowStyle:_,contentAttrs:S,contentClass:x,contentStyle:C,updateZIndex:w}=Ade(r,{styles:v,attributes:f,role:g}),k=lt(_s,void 0),M=U();Jt(Q6,{arrowStyle:_,arrowRef:d,arrowOffset:M}),k&&(k.addInputId||k.removeInputId)&&Jt(_s,{...k,addInputId:Ln,removeInputId:Ln});let I;const E=(P=!0)=>{m(),P&&w()},D=()=>{E(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return Ft(()=>{Be(()=>r.triggerTargetEl,(P,N)=>{I==null||I(),I=void 0;const z=y(P||h.value),F=y(N||h.value);ji(z)&&(I=Be([g,()=>r.ariaLabel,b,()=>r.id],B=>{["role","aria-label","aria-modal","id"].forEach((V,L)=>{Lr(B[L])?z.removeAttribute(V):z.setAttribute(V,B[L])})},{immediate:!0})),F!==z&&ji(F)&&["role","aria-label","aria-modal","id"].forEach(B=>{F.removeAttribute(B)})},{immediate:!0}),Be(()=>r.visible,D,{immediate:!0})}),er(()=>{I==null||I(),I=void 0}),t({popperContentRef:h,popperInstanceRef:p,updatePopper:E,contentStyle:C}),(P,N)=>($(),Z("div",Yt({ref_key:"contentRef",ref:h},y(S),{style:y(C),class:y(x),tabindex:"-1",onMouseenter:N[0]||(N[0]=z=>P.$emit("mouseenter",z)),onMouseleave:N[1]||(N[1]=z=>P.$emit("mouseleave",z))}),[re(y(I_),{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:ce(()=>[Re(P.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Pde=Ue(Dde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const o8=Ht(ede),D_=Symbol("elTooltip"),Xr=je({...Eue,...i8,appendTo:{type:ye([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:ye(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),pg=je({...r8,disabled:Boolean,trigger:{type:ye([String,Array]),default:"hover"},triggerKeys:{type:ye(Array),default:()=>[vt.enter,vt.space]}}),{useModelToggleProps:Lde,useModelToggleEmits:Rde,useModelToggle:Ode}=h6("visible"),Nde=je({...J6,...Lde,...Xr,...pg,...e8,showArrow:{type:Boolean,default:!0}}),$de=[...Rde,"before-show","before-hide","show","hide","open","close"],Bde=(e,t)=>st(e)?e.includes(t):e===t,Kf=(e,t,n)=>r=>{Bde(y(e),t)&&n(r)},Vde=te({name:"ElTooltipTrigger"}),Fde=te({...Vde,props:pg,setup(e,{expose:t}){const n=e,r=Fe("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=lt(D_,void 0),c=U(null),f=()=>{if(y(a)||n.disabled)return!0},d=or(n,"trigger"),h=cr(f,Kf(d,"hover",s)),v=cr(f,Kf(d,"hover",l)),p=cr(f,Kf(d,"click",S=>{S.button===0&&u(S)})),g=cr(f,Kf(d,"focus",s)),m=cr(f,Kf(d,"focus",l)),b=cr(f,Kf(d,"contextmenu",S=>{S.preventDefault(),u(S)})),_=cr(f,S=>{const{code:x}=S;n.triggerKeys.includes(x)&&(S.preventDefault(),u(S))});return t({triggerRef:c}),(S,x)=>($(),Se(y(sde),{id:y(i),"virtual-ref":S.virtualRef,open:y(o),"virtual-triggering":S.virtualTriggering,class:W(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:ce(()=>[Re(S.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var zde=Ue(Fde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Hde=te({name:"ElTooltipContent",inheritAttrs:!1}),Wde=te({...Hde,props:Xr,setup(e,{expose:t}){const n=e,{selector:r}=A6(),a=Fe("tooltip"),i=U(null),o=U(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:v,onBeforeShow:p,onBeforeHide:g}=lt(D_,void 0),m=R(()=>n.transition||`${a.namespace.value}-fade-in-linear`),b=R(()=>n.persistent);er(()=>{o.value=!0});const _=R(()=>y(b)?!0:y(u)),S=R(()=>n.disabled?!1:y(u)),x=R(()=>n.appendTo||r.value),C=R(()=>{var B;return(B=n.style)!=null?B:{}}),w=R(()=>!y(u)),k=()=>{v()},M=()=>{if(y(s))return!0},I=cr(M,()=>{n.enterable&&y(c)==="hover"&&d()}),E=cr(M,()=>{y(c)==="hover"&&f()}),D=()=>{var B,V;(V=(B=i.value)==null?void 0:B.updatePopper)==null||V.call(B),p==null||p()},P=()=>{g==null||g()},N=()=>{h(),F=NM(R(()=>{var B;return(B=i.value)==null?void 0:B.popperContentRef}),()=>{if(y(s))return;y(c)!=="hover"&&f()})},z=()=>{n.virtualTriggering||f()};let F;return Be(()=>y(u),B=>{B||F==null||F()},{flush:"post"}),Be(()=>n.content,()=>{var B,V;(V=(B=i.value)==null?void 0:B.updatePopper)==null||V.call(B)}),t({contentRef:i}),(B,V)=>($(),Se(sm,{disabled:!B.teleported,to:y(x)},[re(xr,{name:y(m),onAfterLeave:k,onBeforeEnter:D,onAfterEnter:N,onBeforeLeave:P},{default:ce(()=>[y(_)?Ot(($(),Se(y(Pde),Yt({key:0,id:y(l),ref_key:"contentRef",ref:i},B.$attrs,{"aria-label":B.ariaLabel,"aria-hidden":y(w),"boundaries-padding":B.boundariesPadding,"fallback-placements":B.fallbackPlacements,"gpu-acceleration":B.gpuAcceleration,offset:B.offset,placement:B.placement,"popper-options":B.popperOptions,strategy:B.strategy,effect:B.effect,enterable:B.enterable,pure:B.pure,"popper-class":B.popperClass,"popper-style":[B.popperStyle,y(C)],"reference-el":B.referenceEl,"trigger-target-el":B.triggerTargetEl,visible:y(S),"z-index":B.zIndex,onMouseenter:y(I),onMouseleave:y(E),onBlur:z,onClose:y(f)}),{default:ce(()=>[o.value?me("v-if",!0):Re(B.$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"])),[[bn,y(S)]]):me("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Gde=Ue(Wde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Kde=["innerHTML"],Ude={key:1},jde=te({name:"ElTooltip"}),Yde=te({...jde,props:Nde,emits:$de,setup(e,{expose:t,emit:n}){const r=e;Aue();const a=Xi(),i=U(),o=U(),s=()=>{var m;const b=y(i);b&&((m=b.popperInstanceRef)==null||m.update())},l=U(!1),u=U(),{show:c,hide:f,hasUpdateHandler:d}=Ode({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=E6({showAfter:or(r,"showAfter"),hideAfter:or(r,"hideAfter"),autoClose:or(r,"autoClose"),open:c,close:f}),p=R(()=>Rr(r.visible)&&!d.value);Jt(D_,{controlled:p,id:a,open:Lh(l),trigger:or(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}),Be(()=>r.disabled,m=>{m&&l.value&&(l.value=!1)});const g=m=>{var b,_;const S=(_=(b=o.value)==null?void 0:b.contentRef)==null?void 0:_.popperContentRef,x=(m==null?void 0:m.relatedTarget)||document.activeElement;return S&&S.contains(x)};return yF(()=>l.value&&f()),t({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:f}),(m,b)=>($(),Se(y(o8),{ref_key:"popperRef",ref:i,role:m.role},{default:ce(()=>[re(zde,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:ce(()=>[m.$slots.default?Re(m.$slots,"default",{key:0}):me("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),re(Gde,{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:ce(()=>[Re(m.$slots,"content",{},()=>[m.rawContent?($(),Z("span",{key:0,innerHTML:m.content},null,8,Kde)):($(),Z("span",Ude,Ke(m.content),1))]),m.showArrow?($(),Se(y(rde),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):me("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 qde=Ue(Yde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Fa=Ht(qde),Xde=je({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:ye(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:ye([Function,Array]),default:Ln},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Xr.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),Zde={[Gt]:e=>At(e),[Oa]:e=>At(e),[qn]:e=>At(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Qt(e)},Qde=["aria-expanded","aria-owns"],Jde={key:0},ehe=["id","aria-selected","onClick"],s8="ElAutocomplete",the=te({name:s8,inheritAttrs:!1}),nhe=te({...the,props:Xde,emits:Zde,setup(e,{expose:t,emit:n}){const r=e,a=iA(),i=xf(),o=li(),s=Fe("autocomplete"),l=U(),u=U(),c=U(),f=U();let d=!1,h=!1;const v=U([]),p=U(-1),g=U(""),m=U(!1),b=U(!1),_=U(!1),S=R(()=>s.b(String(C_()))),x=R(()=>i.style),C=R(()=>(v.value.length>0||_.value)&&m.value),w=R(()=>!r.hideLoading&&_.value),k=R(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),M=()=>{C.value&&(g.value=`${l.value.$el.offsetWidth}px`)},I=()=>{p.value=-1},D=Va(async se=>{if(b.value)return;const le=ne=>{_.value=!1,!b.value&&(st(ne)?(v.value=ne,p.value=r.highlightFirstItem?0:-1):Nr(s8,"autocomplete suggestions must be an array"))};if(_.value=!0,st(r.fetchSuggestions))le(r.fetchSuggestions);else{const ne=await r.fetchSuggestions(se,le);st(ne)&&le(ne)}},r.debounce),P=se=>{const le=!!se;if(n(Oa,se),n(Gt,se),b.value=!1,m.value||(m.value=le),!r.triggerOnFocus&&!se){b.value=!0,v.value=[];return}D(se)},N=se=>{var le;o.value||(((le=se.target)==null?void 0:le.tagName)!=="INPUT"||k.value.includes(document.activeElement))&&(m.value=!0)},z=se=>{n(qn,se)},F=se=>{h?h=!1:(m.value=!0,n("focus",se),r.triggerOnFocus&&!d&&D(String(r.modelValue)))},B=se=>{setTimeout(()=>{var le;if((le=c.value)!=null&&le.isFocusInsideContent()){h=!0;return}m.value&&q(),n("blur",se)})},V=()=>{m.value=!1,n(Gt,""),n("clear")},L=async()=>{C.value&&p.value>=0&&p.value<v.value.length?de(v.value[p.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),v.value=[],p.value=-1)},G=se=>{C.value&&(se.preventDefault(),se.stopPropagation(),q())},q=()=>{m.value=!1},Q=()=>{var se;(se=l.value)==null||se.focus()},ie=()=>{var se;(se=l.value)==null||se.blur()},de=async se=>{n(Oa,se[r.valueKey]),n(Gt,se[r.valueKey]),n("select",se),v.value=[],p.value=-1},oe=se=>{if(!C.value||_.value)return;if(se<0){p.value=-1;return}se>=v.value.length&&(se=v.value.length-1);const le=u.value.querySelector(`.${s.be("suggestion","wrap")}`),Ce=le.querySelectorAll(`.${s.be("suggestion","list")} li`)[se],Te=le.scrollTop,{offsetTop:he,scrollHeight:X}=Ce;he+X>Te+le.clientHeight&&(le.scrollTop+=X),he<Te&&(le.scrollTop-=X),p.value=se,l.value.ref.setAttribute("aria-activedescendant",`${S.value}-item-${p.value}`)};return NM(f,()=>{C.value&&q()}),Ft(()=>{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",`${S.value}-item-${p.value}`),d=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:p,activated:m,loading:_,inputRef:l,popperRef:c,suggestions:v,handleSelect:de,handleKeyEnter:L,focus:Q,blur:ie,close:q,highlight:oe}),(se,le)=>($(),Se(y(Fa),{ref_key:"popperRef",ref:c,visible:y(C),placement:se.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[y(s).e("popper"),se.popperClass],teleported:se.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:I},{content:ce(()=>[ee("div",{ref_key:"regionRef",ref:u,class:W([y(s).b("suggestion"),y(s).is("loading",y(w))]),style:ft({[se.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[re(y(hl),{id:y(S),tag:"ul","wrap-class":y(s).be("suggestion","wrap"),"view-class":y(s).be("suggestion","list"),role:"listbox"},{default:ce(()=>[y(w)?($(),Z("li",Jde,[re(y(ut),{class:W(y(s).is("loading"))},{default:ce(()=>[re(y(Iu))]),_:1},8,["class"])])):($(!0),Z(dt,{key:1},an(v.value,(ne,Ce)=>($(),Z("li",{id:`${y(S)}-item-${Ce}`,key:Ce,class:W({highlighted:p.value===Ce}),role:"option","aria-selected":p.value===Ce,onClick:Te=>de(ne)},[Re(se.$slots,"default",{item:ne},()=>[_n(Ke(ne[se.valueKey]),1)])],10,ehe))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:ce(()=>[ee("div",{ref_key:"listboxRef",ref:f,class:W([y(s).b(),se.$attrs.class]),style:ft(y(x)),role:"combobox","aria-haspopup":"listbox","aria-expanded":y(C),"aria-owns":y(S)},[re(y(ba),Yt({ref_key:"inputRef",ref:l},y(a),{clearable:se.clearable,disabled:y(o),name:se.name,"model-value":se.modelValue,onInput:P,onChange:z,onFocus:F,onBlur:B,onClear:V,onKeydown:[le[0]||(le[0]=vn(_t(ne=>oe(p.value-1),["prevent"]),["up"])),le[1]||(le[1]=vn(_t(ne=>oe(p.value+1),["prevent"]),["down"])),vn(L,["enter"]),vn(q,["tab"]),vn(G,["esc"])],onMousedown:N}),Qs({_:2},[se.$slots.prepend?{name:"prepend",fn:ce(()=>[Re(se.$slots,"prepend")])}:void 0,se.$slots.append?{name:"append",fn:ce(()=>[Re(se.$slots,"append")])}:void 0,se.$slots.prefix?{name:"prefix",fn:ce(()=>[Re(se.$slots,"prefix")])}:void 0,se.$slots.suffix?{name:"suffix",fn:ce(()=>[Re(se.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,Qde)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var rhe=Ue(nhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const ahe=Ht(rhe),ihe=je({size:{type:[Number,String],values:xs,default:"",validator:e=>Tt(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Wn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:ye(String),default:"cover"}}),ohe={error:e=>e instanceof Event},she=["src","alt","srcset"],lhe=te({name:"ElAvatar"}),uhe=te({...lhe,props:ihe,emits:ohe,setup(e,{emit:t}){const n=e,r=Fe("avatar"),a=U(!1),i=R(()=>{const{size:u,icon:c,shape:f}=n,d=[r.b()];return At(u)&&d.push(r.m(u)),c&&d.push(r.m("icon")),f&&d.push(r.m(f)),d}),o=R(()=>{const{size:u}=n;return Tt(u)?r.cssVarBlock({size:gr(u)||""}):void 0}),s=R(()=>({objectFit:n.fit}));Be(()=>n.src,()=>a.value=!1);function l(u){a.value=!0,t("error",u)}return(u,c)=>($(),Z("span",{class:W(y(i)),style:ft(y(o))},[(u.src||u.srcSet)&&!a.value?($(),Z("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:ft(y(s)),onError:l},null,44,she)):u.icon?($(),Se(y(ut),{key:1},{default:ce(()=>[($(),Se(qt(u.icon)))]),_:1})):Re(u.$slots,"default",{key:2})],6))}});var che=Ue(uhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const fhe=Ht(che),dhe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},hhe={click:e=>e instanceof MouseEvent},vhe=(e,t,n)=>{const r=zn(),a=zn(),i=U(!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=dz(o,300,!0);return Qn(a,"scroll",l),Ft(()=>{var u;a.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||Nr(n,`target does not exist: ${e.target}`),a.value=r.value),o()}),{visible:i,handleClick:s}},l8="ElBacktop",phe=te({name:l8}),ghe=te({...phe,props:dhe,emits:hhe,setup(e,{emit:t}){const n=e,r=Fe("backtop"),{handleClick:a,visible:i}=vhe(n,t,l8),o=R(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>($(),Se(xr,{name:`${y(r).namespace.value}-fade-in`},{default:ce(()=>[y(i)?($(),Z("div",{key:0,style:ft(y(o)),class:W(y(r).b()),onClick:l[0]||(l[0]=_t((...u)=>y(a)&&y(a)(...u),["stop"]))},[Re(s.$slots,"default",{},()=>[re(y(ut),{class:W(y(r).e("icon"))},{default:ce(()=>[re(y(ese))]),_:1},8,["class"])])],6)):me("v-if",!0)]),_:3},8,["name"]))}});var mhe=Ue(ghe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const yhe=Ht(mhe),bhe=je({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"}}),_he=["textContent"],whe=te({name:"ElBadge"}),She=te({...whe,props:bhe,setup(e,{expose:t}){const n=e,r=Fe("badge"),a=R(()=>n.isDot?"":Tt(n.value)&&Tt(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:a}),(i,o)=>($(),Z("div",{class:W(y(r).b())},[Re(i.$slots,"default"),re(xr,{name:`${y(r).namespace.value}-zoom-in-center`,persisted:""},{default:ce(()=>[Ot(ee("sup",{class:W([y(r).e("content"),y(r).em("content",i.type),y(r).is("fixed",!!i.$slots.default),y(r).is("dot",i.isDot)]),textContent:Ke(y(a))},null,10,_he),[[bn,!i.hidden&&(y(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var Che=Ue(She,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const u8=Ht(Che),c8=Symbol("breadcrumbKey"),xhe=je({separator:{type:String,default:"/"},separatorIcon:{type:Wn}}),The=te({name:"ElBreadcrumb"}),khe=te({...The,props:xhe,setup(e){const t=e,n=Fe("breadcrumb"),r=U();return Jt(c8,t),Ft(()=>{const a=r.value.querySelectorAll(`.${n.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>($(),Z("div",{ref_key:"breadcrumb",ref:r,class:W(y(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[Re(a.$slots,"default")],2))}});var Mhe=Ue(khe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const Ahe=je({to:{type:ye([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Ehe=te({name:"ElBreadcrumbItem"}),Ihe=te({...Ehe,props:Ahe,setup(e){const t=e,n=Bt(),r=lt(c8,void 0),a=Fe("breadcrumb"),i=n.appContext.config.globalProperties.$router,o=U(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var c,f;return $(),Z("span",{class:W(y(a).e("item"))},[ee("span",{ref_key:"link",ref:o,class:W([y(a).e("inner"),y(a).is("link",!!l.to)]),role:"link",onClick:s},[Re(l.$slots,"default")],2),(c=y(r))!=null&&c.separatorIcon?($(),Se(y(ut),{key:0,class:W(y(a).e("separator"))},{default:ce(()=>[($(),Se(qt(y(r).separatorIcon)))]),_:1},8,["class"])):($(),Z("span",{key:1,class:W(y(a).e("separator")),role:"presentation"},Ke((f=y(r))==null?void 0:f.separator),3))],2)}}});var f8=Ue(Ihe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const Dhe=Ht(Mhe,{BreadcrumbItem:f8}),Phe=fr(f8),d8=Symbol("buttonGroupContextKey"),Lhe=(e,t)=>{ms({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},R(()=>e.type==="text"));const n=lt(d8,void 0),r=M_("button"),{form:a}=Ga(),i=$r(R(()=>n==null?void 0:n.size)),o=li(),s=U(),l=da(),u=R(()=>e.type||(n==null?void 0:n.type)||""),c=R(()=>{var v,p,g;return(g=(p=e.autoInsertSpace)!=null?p:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?g:!1}),f=R(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),d=R(()=>{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)===Rh){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)}}},E2=["default","primary","success","warning","info","danger","text",""],Rhe=["button","submit","reset"],I2=je({size:la,disabled:Boolean,type:{type:String,values:E2,default:""},icon:{type:Wn},nativeType:{type:String,values:Rhe,default:"button"},loading:Boolean,loadingIcon:{type:Wn,default:()=>Iu},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:ye([String,Object]),default:"button"}}),Ohe={click:e=>e instanceof MouseEvent};function ia(e,t){Nhe(e)&&(e="100%");var n=$he(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 gy(e){return Math.min(1,Math.max(0,e))}function Nhe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function $he(e){return typeof e=="string"&&e.indexOf("%")!==-1}function h8(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function my(e){return e<=1?"".concat(Number(e)*100,"%"):e}function $c(e){return e.length===1?"0"+e:String(e)}function Bhe(e,t,n){return{r:ia(e,255)*255,g:ia(t,255)*255,b:ia(n,255)*255}}function RR(e,t,n){e=ia(e,255),t=ia(t,255),n=ia(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 dS(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 Vhe(e,t,n){var r,a,i;if(e=ia(e,360),t=ia(t,100),n=ia(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=dS(s,o,e+1/3),a=dS(s,o,e),i=dS(s,o,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function OR(e,t,n){e=ia(e,255),t=ia(t,255),n=ia(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 Fhe(e,t,n){e=ia(e,360)*6,t=ia(t,100),n=ia(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 NR(e,t,n,r){var a=[$c(Math.round(e).toString(16)),$c(Math.round(t).toString(16)),$c(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 zhe(e,t,n,r,a){var i=[$c(Math.round(e).toString(16)),$c(Math.round(t).toString(16)),$c(Math.round(n).toString(16)),$c(Hhe(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 Hhe(e){return Math.round(parseFloat(e)*255).toString(16)}function $R(e){return ci(e)/255}function ci(e){return parseInt(e,16)}function Whe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var D2={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 Ghe(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=jhe(e)),typeof e=="object"&&(Ds(e.r)&&Ds(e.g)&&Ds(e.b)?(t=Bhe(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ds(e.h)&&Ds(e.s)&&Ds(e.v)?(r=my(e.s),a=my(e.v),t=Fhe(e.h,r,a),o=!0,s="hsv"):Ds(e.h)&&Ds(e.s)&&Ds(e.l)&&(r=my(e.s),i=my(e.l),t=Vhe(e.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=h8(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 Khe="[-\\+]?\\d+%?",Uhe="[-\\+]?\\d*\\.\\d+%?",Kl="(?:".concat(Uhe,")|(?:").concat(Khe,")"),hS="[\\s|\\(]+(".concat(Kl,")[,|\\s]+(").concat(Kl,")[,|\\s]+(").concat(Kl,")\\s*\\)?"),vS="[\\s|\\(]+(".concat(Kl,")[,|\\s]+(").concat(Kl,")[,|\\s]+(").concat(Kl,")[,|\\s]+(").concat(Kl,")\\s*\\)?"),ho={CSS_UNIT:new RegExp(Kl),rgb:new RegExp("rgb"+hS),rgba:new RegExp("rgba"+vS),hsl:new RegExp("hsl"+hS),hsla:new RegExp("hsla"+vS),hsv:new RegExp("hsv"+hS),hsva:new RegExp("hsva"+vS),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 jhe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(D2[e])e=D2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ho.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ho.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ho.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ho.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ho.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ho.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ho.hex8.exec(e),n?{r:ci(n[1]),g:ci(n[2]),b:ci(n[3]),a:$R(n[4]),format:t?"name":"hex8"}:(n=ho.hex6.exec(e),n?{r:ci(n[1]),g:ci(n[2]),b:ci(n[3]),format:t?"name":"hex"}:(n=ho.hex4.exec(e),n?{r:ci(n[1]+n[1]),g:ci(n[2]+n[2]),b:ci(n[3]+n[3]),a:$R(n[4]+n[4]),format:t?"name":"hex8"}:(n=ho.hex3.exec(e),n?{r:ci(n[1]+n[1]),g:ci(n[2]+n[2]),b:ci(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ds(e){return!!ho.CSS_UNIT.exec(String(e))}var v8=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=Whe(t)),this.originalInput=t;var a=Ghe(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=h8(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=OR(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=OR(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=RR(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=RR(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),NR(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),zhe(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(ia(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(ia(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="#"+NR(this.r,this.g,this.b,!1),n=0,r=Object.entries(D2);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=gy(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=gy(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=gy(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=gy(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 xl(e,t=20){return e.mix("#141414",t).toString()}function Yhe(e){const t=li(),n=Fe("button");return R(()=>{let r={};const a=e.color;if(a){const i=new v8(a),o=e.dark?i.tint(20).toString():xl(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?xl(i,90):i.tint(90).toString(),"text-color":a,"border-color":e.dark?xl(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?xl(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?xl(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?xl(i,80):i.tint(80).toString());else{const s=e.dark?xl(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?xl(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 qhe=te({name:"ElButton"}),Xhe=te({...qhe,props:I2,emits:Ohe,setup(e,{expose:t,emit:n}){const r=e,a=Yhe(r),i=Fe("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=Lhe(r,n);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(h,v)=>($(),Se(qt(h.tag),Yt({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:ce(()=>[h.loading?($(),Z(dt,{key:0},[h.$slots.loading?Re(h.$slots,"loading",{key:0}):($(),Se(y(ut),{key:1,class:W(y(i).is("loading"))},{default:ce(()=>[($(),Se(qt(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?($(),Se(y(ut),{key:1},{default:ce(()=>[h.icon?($(),Se(qt(h.icon),{key:0})):Re(h.$slots,"icon",{key:1})]),_:3})):me("v-if",!0),h.$slots.default?($(),Z("span",{key:2,class:W({[y(i).em("text","expand")]:y(f)})},[Re(h.$slots,"default")],2)):me("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Zhe=Ue(Xhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Qhe={size:I2.size,type:I2.type},Jhe=te({name:"ElButtonGroup"}),eve=te({...Jhe,props:Qhe,setup(e){const t=e;Jt(d8,Sn({size:or(t,"size"),type:or(t,"type")}));const n=Fe("button");return(r,a)=>($(),Z("div",{class:W(`${y(n).b("group")}`)},[Re(r.$slots,"default")],2))}});var p8=Ue(eve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const oa=Ht(Zhe,{ButtonGroup:p8}),g8=fr(p8);var Ts=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var m8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ts,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(N){var z=["th","st","nd","rd"],F=N%100;return"["+N+(z[(F-20)%10]||z[F]||z[0])+"]"}},_=function(N,z,F){var B=String(N);return!B||B.length>=z?N:""+Array(z+1-B.length).join(F)+N},S={s:_,z:function(N){var z=-N.utcOffset(),F=Math.abs(z),B=Math.floor(F/60),V=F%60;return(z<=0?"+":"-")+_(B,2,"0")+":"+_(V,2,"0")},m:function N(z,F){if(z.date()<F.date())return-N(F,z);var B=12*(F.year()-z.year())+(F.month()-z.month()),V=z.clone().add(B,f),L=F-V<0,G=z.clone().add(B+(L?-1:1),f);return+(-(B+(F-V)/(L?V-G:G-V))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:h,w:c,d:u,D:v,h:l,m:s,s:o,ms:i,Q:d}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},x="en",C={};C[x]=b;var w="$isDayjsObject",k=function(N){return N instanceof D||!(!N||!N[w])},M=function N(z,F,B){var V;if(!z)return x;if(typeof z=="string"){var L=z.toLowerCase();C[L]&&(V=L),F&&(C[L]=F,V=L);var G=z.split("-");if(!V&&G.length>1)return N(G[0])}else{var q=z.name;C[q]=z,V=q}return!B&&V&&(x=V),V||!B&&x},I=function(N,z){if(k(N))return N.clone();var F=typeof z=="object"?z:{};return F.date=N,F.args=arguments,new D(F)},E=S;E.l=M,E.i=k,E.w=function(N,z){return I(N,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var D=function(){function N(F){this.$L=M(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[w]=!0}var z=N.prototype;return z.parse=function(F){this.$d=function(B){var V=B.date,L=B.utc;if(V===null)return new Date(NaN);if(E.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var G=V.match(g);if(G){var q=G[2]-1||0,Q=(G[7]||"0").substring(0,3);return L?new Date(Date.UTC(G[1],q,G[3]||1,G[4]||0,G[5]||0,G[6]||0,Q)):new Date(G[1],q,G[3]||1,G[4]||0,G[5]||0,G[6]||0,Q)}}return new Date(V)}(F),this.init()},z.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},z.$utils=function(){return E},z.isValid=function(){return this.$d.toString()!==p},z.isSame=function(F,B){var V=I(F);return this.startOf(B)<=V&&V<=this.endOf(B)},z.isAfter=function(F,B){return I(F)<this.startOf(B)},z.isBefore=function(F,B){return this.endOf(B)<I(F)},z.$g=function(F,B,V){return E.u(F)?this[B]:this.set(V,F)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(F,B){var V=this,L=!!E.u(B)||B,G=E.p(F),q=function(Ce,Te){var he=E.w(V.$u?Date.UTC(V.$y,Te,Ce):new Date(V.$y,Te,Ce),V);return L?he:he.endOf(u)},Q=function(Ce,Te){return E.w(V.toDate()[Ce].apply(V.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(Te)),V)},ie=this.$W,de=this.$M,oe=this.$D,se="set"+(this.$u?"UTC":"");switch(G){case h:return L?q(1,0):q(31,11);case f:return L?q(1,de):q(0,de+1);case c:var le=this.$locale().weekStart||0,ne=(ie<le?ie+7:ie)-le;return q(L?oe-ne:oe+(6-ne),de);case u:case v:return Q(se+"Hours",0);case l:return Q(se+"Minutes",1);case s:return Q(se+"Seconds",2);case o:return Q(se+"Milliseconds",3);default:return this.clone()}},z.endOf=function(F){return this.startOf(F,!1)},z.$set=function(F,B){var V,L=E.p(F),G="set"+(this.$u?"UTC":""),q=(V={},V[u]=G+"Date",V[v]=G+"Date",V[f]=G+"Month",V[h]=G+"FullYear",V[l]=G+"Hours",V[s]=G+"Minutes",V[o]=G+"Seconds",V[i]=G+"Milliseconds",V)[L],Q=L===u?this.$D+(B-this.$W):B;if(L===f||L===h){var ie=this.clone().set(v,1);ie.$d[q](Q),ie.init(),this.$d=ie.set(v,Math.min(this.$D,ie.daysInMonth())).$d}else q&&this.$d[q](Q);return this.init(),this},z.set=function(F,B){return this.clone().$set(F,B)},z.get=function(F){return this[E.p(F)]()},z.add=function(F,B){var V,L=this;F=Number(F);var G=E.p(B),q=function(de){var oe=I(L);return E.w(oe.date(oe.date()+Math.round(de*F)),L)};if(G===f)return this.set(f,this.$M+F);if(G===h)return this.set(h,this.$y+F);if(G===u)return q(1);if(G===c)return q(7);var Q=(V={},V[s]=r,V[l]=a,V[o]=n,V)[G]||1,ie=this.$d.getTime()+F*Q;return E.w(ie,this)},z.subtract=function(F,B){return this.add(-1*F,B)},z.format=function(F){var B=this,V=this.$locale();if(!this.isValid())return V.invalidDate||p;var L=F||"YYYY-MM-DDTHH:mm:ssZ",G=E.z(this),q=this.$H,Q=this.$m,ie=this.$M,de=V.weekdays,oe=V.months,se=V.meridiem,le=function(Te,he,X,ae){return Te&&(Te[he]||Te(B,L))||X[he].slice(0,ae)},ne=function(Te){return E.s(q%12||12,Te,"0")},Ce=se||function(Te,he,X){var ae=Te<12?"AM":"PM";return X?ae.toLowerCase():ae};return L.replace(m,function(Te,he){return he||function(X){switch(X){case"YY":return String(B.$y).slice(-2);case"YYYY":return E.s(B.$y,4,"0");case"M":return ie+1;case"MM":return E.s(ie+1,2,"0");case"MMM":return le(V.monthsShort,ie,oe,3);case"MMMM":return le(oe,ie);case"D":return B.$D;case"DD":return E.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return le(V.weekdaysMin,B.$W,de,2);case"ddd":return le(V.weekdaysShort,B.$W,de,3);case"dddd":return de[B.$W];case"H":return String(q);case"HH":return E.s(q,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return Ce(q,Q,!0);case"A":return Ce(q,Q,!1);case"m":return String(Q);case"mm":return E.s(Q,2,"0");case"s":return String(B.$s);case"ss":return E.s(B.$s,2,"0");case"SSS":return E.s(B.$ms,3,"0");case"Z":return G}return null}(Te)||G.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(F,B,V){var L,G=this,q=E.p(B),Q=I(F),ie=(Q.utcOffset()-this.utcOffset())*r,de=this-Q,oe=function(){return E.m(G,Q)};switch(q){case h:L=oe()/12;break;case f:L=oe();break;case d:L=oe()/3;break;case c:L=(de-ie)/6048e5;break;case u:L=(de-ie)/864e5;break;case l:L=de/a;break;case s:L=de/r;break;case o:L=de/n;break;default:L=de}return V?L:E.a(L)},z.daysInMonth=function(){return this.endOf(f).$D},z.$locale=function(){return C[this.$L]},z.locale=function(F,B){if(!F)return this.$L;var V=this.clone(),L=M(F,B,!0);return L&&(V.$L=L),V},z.clone=function(){return E.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},N}(),P=D.prototype;return I.prototype=P,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",v]].forEach(function(N){P[N[1]]=function(z){return this.$g(z,N[0],N[1])}}),I.extend=function(N,z){return N.$i||(N(z,D,I),N.$i=!0),I},I.locale=M,I.isDayjs=k,I.unix=function(N){return I(1e3*N)},I.en=C[x],I.Ls=C,I.p={},I})})(m8);var tve=m8.exports;const Vt=Fo(tve);var y8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ts,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,I,E){var D=E&&E.toUpperCase();return I||m[E]||n[E]||m[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,N,z){return N||z.slice(1)})})).match(r),_=b.length,S=0;S<_;S+=1){var x=b[S],C=h[x],w=C&&C[0],k=C&&C[1];b[S]=k?{regex:w,parser:k}:x.replace(/^\[|\]$/g,"")}return function(M){for(var I={},E=0,D=0;E<_;E+=1){var P=b[E];if(typeof P=="string")D+=P.length;else{var N=P.regex,z=P.parser,F=M.slice(D),B=N.exec(F)[0];z.call(I,B),M=M.replace(B,"")}}return function(V){var L=V.afternoon;if(L!==void 0){var G=V.hours;L?G<12&&(V.hours+=12):G===12&&(V.hours=0),delete V.afternoon}}(I),I}}return function(p,g,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(l=p.parseTwoDigitYear);var b=g.prototype,_=b.parse;b.parse=function(S){var x=S.date,C=S.utc,w=S.args;this.$u=C;var k=w[1];if(typeof k=="string"){var M=w[2]===!0,I=w[3]===!0,E=M||I,D=w[2];I&&(D=w[2]),s=this.$locale(),!M&&D&&(s=m.Ls[D]),this.$d=function(F,B,V){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*F);var L=v(B)(F),G=L.year,q=L.month,Q=L.day,ie=L.hours,de=L.minutes,oe=L.seconds,se=L.milliseconds,le=L.zone,ne=new Date,Ce=Q||(G||q?1:ne.getDate()),Te=G||ne.getFullYear(),he=0;G&&!q||(he=q>0?q-1:ne.getMonth());var X=ie||0,ae=de||0,ge=oe||0,ke=se||0;return le?new Date(Date.UTC(Te,he,Ce,X,ae,ge,ke+60*le.offset*1e3)):V?new Date(Date.UTC(Te,he,Ce,X,ae,ge,ke)):new Date(Te,he,Ce,X,ae,ge,ke)}catch{return new Date("")}}(x,k,C),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),E&&x!=this.format(k)&&(this.$d=new Date("")),s={}}else if(k instanceof Array)for(var P=k.length,N=1;N<=P;N+=1){w[1]=k[N-1];var z=m.apply(this,w);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}N===P&&(this.$d=new Date(""))}else _.call(this,S)}}})})(y8);var nve=y8.exports;const MA=Fo(nve),BR=["hours","minutes","seconds"],P2="HH:mm:ss",md="YYYY-MM-DD",rve={date:md,dates:md,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${md} ${P2}`,monthrange:"YYYY-MM",daterange:md,datetimerange:`${md} ${P2}`},pS=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],ru=e=>Array.from(Array.from({length:e}).keys()),b8=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),_8=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),VR=function(e,t){const n=cf(e),r=cf(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},FR=function(e,t){const n=st(e),r=st(t);return n&&r?e.length!==t.length?!1:e.every((a,i)=>VR(a,t[i])):!n&&!r?VR(e,t):!1},zR=function(e,t,n){const r=Bi(t)||t==="x"?Vt(e).locale(n):Vt(e,t).locale(n);return r.isValid()?r:void 0},HR=function(e,t,n){return Bi(t)?e:t==="x"?+e:Vt(e).locale(n).format(t)},gS=(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},w8=je({disabledHours:{type:ye(Function)},disabledMinutes:{type:ye(Function)},disabledSeconds:{type:ye(Function)}}),S8=je({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),AA=je({id:{type:ye([Array,String])},name:{type:ye([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:ye([String,Object]),default:Eu},editable:{type:Boolean,default:!0},prefixIcon:{type:ye([String,Object]),default:""},size:la,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:ye(Object),default:()=>({})},modelValue:{type:ye([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:ye([Date,Array])},defaultTime:{type:ye([Date,Array])},isRange:{type:Boolean,default:!1},...w8,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:ye([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),ave=["id","name","placeholder","value","disabled","readonly"],ive=["id","name","placeholder","value","disabled","readonly"],ove=te({name:"Picker"}),sve=te({...ove,props:AA,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,a=xf(),{lang:i}=pn(),o=Fe("date"),s=Fe("input"),l=Fe("range"),{form:u,formItem:c}=Ga(),f=lt("ElPopperOptions",{}),d=U(),h=U(),v=U(!1),p=U(!1),g=U(null);let m=!1,b=!1;const _=R(()=>[o.b("editor"),o.bm("editor",r.type),s.e("wrapper"),o.is("disabled",Q.value),o.is("active",v.value),l.b("editor"),Me?l.bm("editor",Me.value):"",a.class]),S=R(()=>[s.e("icon"),l.e("close-icon"),Ce.value?"":l.e("close-icon--hidden")]);Be(v,ue=>{ue?ct(()=>{ue&&(g.value=r.modelValue)}):(Le.value=null,ct(()=>{x(r.modelValue)}))});const x=(ue,rt)=>{(rt||!FR(ue,g.value))&&(n("change",ue),r.validateEvent&&(c==null||c.validate("change").catch(Ct=>void 0)))},C=ue=>{if(!FR(r.modelValue,ue)){let rt;st(ue)?rt=ue.map(Ct=>HR(Ct,r.valueFormat,i.value)):ue&&(rt=HR(ue,r.valueFormat,i.value)),n("update:modelValue",ue&&rt,i.value)}},w=ue=>{n("keydown",ue)},k=R(()=>{if(h.value){const ue=Pe.value?h.value:h.value.$el;return Array.from(ue.querySelectorAll("input"))}return[]}),M=(ue,rt,Ct)=>{const jt=k.value;jt.length&&(!Ct||Ct==="min"?(jt[0].setSelectionRange(ue,rt),jt[0].focus()):Ct==="max"&&(jt[1].setSelectionRange(ue,rt),jt[1].focus()))},I=()=>{V(!0,!0),ct(()=>{b=!1})},E=(ue="",rt=!1)=>{rt||(b=!0),v.value=rt;let Ct;st(ue)?Ct=ue.map(jt=>jt.toDate()):Ct=ue&&ue.toDate(),Le.value=null,C(Ct)},D=()=>{p.value=!0},P=()=>{n("visible-change",!0)},N=ue=>{(ue==null?void 0:ue.key)===vt.esc&&V(!0,!0)},z=()=>{p.value=!1,v.value=!1,b=!1,n("visible-change",!1)},F=()=>{v.value=!0},B=()=>{v.value=!1},V=(ue=!0,rt=!1)=>{b=rt;const[Ct,jt]=y(k);let dr=Ct;!ue&&Pe.value&&(dr=jt),dr&&dr.focus()},L=ue=>{r.readonly||Q.value||v.value||b||(v.value=!0,n("focus",ue))};let G;const q=ue=>{const rt=async()=>{setTimeout(()=>{var Ct;G===rt&&(!((Ct=d.value)!=null&&Ct.isFocusInsideContent()&&!m)&&k.value.filter(jt=>jt.contains(document.activeElement)).length===0&&(Ve(),v.value=!1,n("blur",ue),r.validateEvent&&(c==null||c.validate("blur").catch(jt=>void 0))),m=!1)},0)};G=rt,rt()},Q=R(()=>r.disabled||(u==null?void 0:u.disabled)),ie=R(()=>{let ue;if(he.value?Ie.value.getDefaultValue&&(ue=Ie.value.getDefaultValue()):st(r.modelValue)?ue=r.modelValue.map(rt=>zR(rt,r.valueFormat,i.value)):ue=zR(r.modelValue,r.valueFormat,i.value),Ie.value.getRangeAvailableTime){const rt=Ie.value.getRangeAvailableTime(ue);ni(rt,ue)||(ue=rt,C(st(ue)?ue.map(Ct=>Ct.toDate()):ue.toDate()))}return st(ue)&&ue.some(rt=>!rt)&&(ue=[]),ue}),de=R(()=>{if(!Ie.value.panelReady)return"";const ue=nt(ie.value);return st(Le.value)?[Le.value[0]||ue&&ue[0]||"",Le.value[1]||ue&&ue[1]||""]:Le.value!==null?Le.value:!se.value&&he.value||!v.value&&he.value?"":ue?le.value?ue.join(", "):ue:""}),oe=R(()=>r.type.includes("time")),se=R(()=>r.type.startsWith("time")),le=R(()=>r.type==="dates"),ne=R(()=>r.prefixIcon||(oe.value?n6:Xoe)),Ce=U(!1),Te=ue=>{r.readonly||Q.value||Ce.value&&(ue.stopPropagation(),I(),C(null),x(null,!0),Ce.value=!1,v.value=!1,Ie.value.handleClear&&Ie.value.handleClear())},he=R(()=>{const{modelValue:ue}=r;return!ue||st(ue)&&!ue.filter(Boolean).length}),X=async ue=>{var rt;r.readonly||Q.value||(((rt=ue.target)==null?void 0:rt.tagName)!=="INPUT"||k.value.includes(document.activeElement))&&(v.value=!0)},ae=()=>{r.readonly||Q.value||!he.value&&r.clearable&&(Ce.value=!0)},ge=()=>{Ce.value=!1},ke=ue=>{var rt;r.readonly||Q.value||(((rt=ue.touches[0].target)==null?void 0:rt.tagName)!=="INPUT"||k.value.includes(document.activeElement))&&(v.value=!0)},Pe=R(()=>r.type.includes("range")),Me=$r(),ze=R(()=>{var ue,rt;return(rt=(ue=y(d))==null?void 0:ue.popperRef)==null?void 0:rt.contentRef}),Oe=R(()=>{var ue;return y(Pe)?y(h):(ue=y(h))==null?void 0:ue.$el});NM(Oe,ue=>{const rt=y(ze),Ct=y(Oe);rt&&(ue.target===rt||ue.composedPath().includes(rt))||ue.target===Ct||ue.composedPath().includes(Ct)||(v.value=!1)});const Le=U(null),Ve=()=>{if(Le.value){const ue=qe(de.value);ue&&ot(ue)&&(C(st(ue)?ue.map(rt=>rt.toDate()):ue.toDate()),Le.value=null)}Le.value===""&&(C(null),x(null),Le.value=null)},qe=ue=>ue?Ie.value.parseUserInput(ue):null,nt=ue=>ue?Ie.value.formatToString(ue):null,ot=ue=>Ie.value.isValidValue(ue),_e=async ue=>{if(r.readonly||Q.value)return;const{code:rt}=ue;if(w(ue),rt===vt.esc){v.value===!0&&(v.value=!1,ue.preventDefault(),ue.stopPropagation());return}if(rt===vt.down&&(Ie.value.handleFocusPicker&&(ue.preventDefault(),ue.stopPropagation()),v.value===!1&&(v.value=!0,await ct()),Ie.value.handleFocusPicker)){Ie.value.handleFocusPicker();return}if(rt===vt.tab){m=!0;return}if(rt===vt.enter||rt===vt.numpadEnter){(Le.value===null||Le.value===""||ot(qe(de.value)))&&(Ve(),v.value=!1),ue.stopPropagation();return}if(Le.value){ue.stopPropagation();return}Ie.value.handleKeydownInput&&Ie.value.handleKeydownInput(ue)},Je=ue=>{Le.value=ue,v.value||(v.value=!0)},St=ue=>{const rt=ue.target;Le.value?Le.value=[rt.value,Le.value[1]]:Le.value=[rt.value,null]},Rt=ue=>{const rt=ue.target;Le.value?Le.value=[Le.value[0],rt.value]:Le.value=[null,rt.value]},Kt=()=>{var ue;const rt=Le.value,Ct=qe(rt&&rt[0]),jt=y(ie);if(Ct&&Ct.isValid()){Le.value=[nt(Ct),((ue=de.value)==null?void 0:ue[1])||null];const dr=[Ct,jt&&(jt[1]||null)];ot(dr)&&(C(dr),Le.value=null)}},gt=()=>{var ue;const rt=y(Le),Ct=qe(rt&&rt[1]),jt=y(ie);if(Ct&&Ct.isValid()){Le.value=[((ue=y(de))==null?void 0:ue[0])||null,nt(Ct)];const dr=[jt&&jt[0],Ct];ot(dr)&&(C(dr),Le.value=null)}},Ie=U({}),we=ue=>{Ie.value[ue[0]]=ue[1],Ie.value.panelReady=!0},ve=ue=>{n("calendar-change",ue)},$e=(ue,rt,Ct)=>{n("panel-change",ue,rt,Ct)};return Jt("EP_PICKER_BASE",{props:r}),t({focus:V,handleFocusInput:L,handleBlurInput:q,handleOpen:F,handleClose:B,onPick:E}),(ue,rt)=>($(),Se(y(Fa),Yt({ref_key:"refPopper",ref:d,visible:v.value,effect:"light",pure:"",trigger:"click"},ue.$attrs,{role:"dialog",teleported:"",transition:`${y(o).namespace.value}-zoom-in-top`,"popper-class":[`${y(o).namespace.value}-picker__popper`,ue.popperClass],"popper-options":y(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:D,onShow:P,onHide:z}),{default:ce(()=>[y(Pe)?($(),Z("div",{key:1,ref_key:"inputRef",ref:h,class:W(y(_)),style:ft(ue.$attrs.style),onClick:L,onMouseenter:ae,onMouseleave:ge,onTouchstart:ke,onKeydown:_e},[y(ne)?($(),Se(y(ut),{key:0,class:W([y(s).e("icon"),y(l).e("icon")]),onMousedown:_t(X,["prevent"]),onTouchstart:ke},{default:ce(()=>[($(),Se(qt(y(ne))))]),_:1},8,["class","onMousedown"])):me("v-if",!0),ee("input",{id:ue.id&&ue.id[0],autocomplete:"off",name:ue.name&&ue.name[0],placeholder:ue.startPlaceholder,value:y(de)&&y(de)[0],disabled:y(Q),readonly:!ue.editable||ue.readonly,class:W(y(l).b("input")),onMousedown:X,onInput:St,onChange:Kt,onFocus:L,onBlur:q},null,42,ave),Re(ue.$slots,"range-separator",{},()=>[ee("span",{class:W(y(l).b("separator"))},Ke(ue.rangeSeparator),3)]),ee("input",{id:ue.id&&ue.id[1],autocomplete:"off",name:ue.name&&ue.name[1],placeholder:ue.endPlaceholder,value:y(de)&&y(de)[1],disabled:y(Q),readonly:!ue.editable||ue.readonly,class:W(y(l).b("input")),onMousedown:X,onFocus:L,onBlur:q,onInput:Rt,onChange:gt},null,42,ive),ue.clearIcon?($(),Se(y(ut),{key:1,class:W(y(S)),onClick:Te},{default:ce(()=>[($(),Se(qt(ue.clearIcon)))]),_:1},8,["class"])):me("v-if",!0)],38)):($(),Se(y(ba),{key:0,id:ue.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":y(de),name:ue.name,size:y(Me),disabled:y(Q),placeholder:ue.placeholder,class:W([y(o).b("editor"),y(o).bm("editor",ue.type),ue.$attrs.class]),style:ft(ue.$attrs.style),readonly:!ue.editable||ue.readonly||y(le)||ue.type==="week",label:ue.label,tabindex:ue.tabindex,"validate-event":!1,onInput:Je,onFocus:L,onBlur:q,onKeydown:_e,onChange:Ve,onMousedown:X,onMouseenter:ae,onMouseleave:ge,onTouchstart:ke,onClick:rt[0]||(rt[0]=_t(()=>{},["stop"]))},{prefix:ce(()=>[y(ne)?($(),Se(y(ut),{key:0,class:W(y(s).e("icon")),onMousedown:_t(X,["prevent"]),onTouchstart:ke},{default:ce(()=>[($(),Se(qt(y(ne))))]),_:1},8,["class","onMousedown"])):me("v-if",!0)]),suffix:ce(()=>[Ce.value&&ue.clearIcon?($(),Se(y(ut),{key:0,class:W(`${y(s).e("icon")} clear-icon`),onClick:_t(Te,["stop"])},{default:ce(()=>[($(),Se(qt(ue.clearIcon)))]),_:1},8,["class","onClick"])):me("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:ce(()=>[Re(ue.$slots,"default",{visible:v.value,actualVisible:p.value,parsedValue:y(ie),format:ue.format,unlinkPanels:ue.unlinkPanels,type:ue.type,defaultValue:ue.defaultValue,onPick:E,onSelectRange:M,onSetPickerOption:we,onCalendarChange:ve,onPanelChange:$e,onKeydown:N,onMousedown:rt[1]||(rt[1]=_t(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var C8=Ue(sve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const lve=je({...S8,datetimeRole:String,parsedValue:{type:ye(Object)}}),x8=({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}}},mS=e=>{const t=(r,a)=>r||a,n=r=>r!==!0;return e.map(t).filter(n)},T8=(e,t,n)=>({getHoursList:(o,s)=>gS(24,e&&(()=>e==null?void 0:e(o,s))),getMinutesList:(o,s,l)=>gS(60,t&&(()=>t==null?void 0:t(o,s,l))),getSecondsList:(o,s,l,u)=>gS(60,n&&(()=>n==null?void 0:n(o,s,l,u)))}),k8=(e,t,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=T8(e,t,n);return{getAvailableHours:(u,c)=>mS(r(u,c)),getAvailableMinutes:(u,c,f)=>mS(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>mS(i(u,c,f,d))}},M8=e=>{const t=U(e.parsedValue);return Be(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Ol=new Map;let WR;fn&&(document.addEventListener("mousedown",e=>WR=e),document.addEventListener("mouseup",e=>{for(const t of Ol.values())for(const{documentHandler:n}of t)n(e,WR)}));function GR(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:ji(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 mu={beforeMount(e,t){Ol.has(e)||Ol.set(e,[]),Ol.get(e).push({documentHandler:GR(e,t),bindingFn:t.value})},updated(e,t){Ol.has(e)||Ol.set(e,[]);const n=Ol.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:GR(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){Ol.delete(e)}},uve=100,cve=600,Bb={beforeMount(e,t){const n=t.value,{interval:r=uve,delay:a=cve}=kt(n)?{}:n;let i,o;const s=()=>kt(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))})}},L2="_trap-focus-children",Bc=[],KR=e=>{if(Bc.length===0)return;const t=Bc[Bc.length-1][L2];if(t.length>0&&e.code===vt.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())}},fve={beforeMount(e){e[L2]=iL(e),Bc.push(e),Bc.length<=1&&document.addEventListener("keydown",KR)},updated(e){ct(()=>{e[L2]=iL(e)})},unmounted(){Bc.shift(),Bc.length===0&&document.removeEventListener("keydown",KR)}};var UR=!1,Ec,R2,O2,$0,B0,A8,V0,N2,$2,B2,E8,V2,F2,I8,D8;function Ya(){if(!UR){UR=!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(V2=/\b(iPhone|iP[ao]d)/.exec(e),F2=/\b(iP[ao]d)/.exec(e),B2=/Android/i.exec(e),I8=/FBAN\/\w+;/i.exec(e),D8=/Mobile/i.exec(e),E8=!!/Win64/.exec(e),t){Ec=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ec&&document&&document.documentMode&&(Ec=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);A8=r?parseFloat(r[1])+4:Ec,R2=t[2]?parseFloat(t[2]):NaN,O2=t[3]?parseFloat(t[3]):NaN,$0=t[4]?parseFloat(t[4]):NaN,$0?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),B0=t&&t[1]?parseFloat(t[1]):NaN):B0=NaN}else Ec=R2=O2=B0=$0=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);V0=a?parseFloat(a[1].replace("_",".")):!0}else V0=!1;N2=!!n[2],$2=!!n[3]}else V0=N2=$2=!1}}var z2={ie:function(){return Ya()||Ec},ieCompatibilityMode:function(){return Ya()||A8>Ec},ie64:function(){return z2.ie()&&E8},firefox:function(){return Ya()||R2},opera:function(){return Ya()||O2},webkit:function(){return Ya()||$0},safari:function(){return z2.webkit()},chrome:function(){return Ya()||B0},windows:function(){return Ya()||N2},osx:function(){return Ya()||V0},linux:function(){return Ya()||$2},iphone:function(){return Ya()||V2},mobile:function(){return Ya()||V2||F2||B2||D8},nativeApp:function(){return Ya()||I8},android:function(){return Ya()||B2},ipad:function(){return Ya()||F2}},dve=z2,yy=!!(typeof window<"u"&&window.document&&window.document.createElement),hve={canUseDOM:yy,canUseWorkers:typeof Worker<"u",canUseEventListeners:yy&&!!(window.addEventListener||window.attachEvent),canUseViewport:yy&&!!window.screen,isInWorker:!yy},P8=hve,L8;P8.canUseDOM&&(L8=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function vve(e,t){if(!P8.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&&L8&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var pve=vve,jR=10,YR=40,qR=800;function R8(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*jR,a=n*jR,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=YR,a*=YR):(r*=qR,a*=qR)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}R8.getEventType=function(){return dve.firefox()?"DOMMouseScroll":pve("wheel")?"wheel":"mousewheel"};var gve=R8;/**
 
- * Checks if an event is supported in the current execution environment.
 
- *
 
- * NOTE: This will not work correctly for non-generic events such as `change`,
 
- * `reset`, `load`, `error`, and `select`.
 
- *
 
- * Borrows from Modernizr.
 
- *
 
- * @param {string} eventNameSuffix Event name, e.g. "click".
 
- * @param {?boolean} capture Check if the capture phase is supported.
 
- * @return {boolean} True if the event is supported.
 
- * @internal
 
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
 
- */const mve=function(e,t){if(e&&e.addEventListener){const n=function(r){const a=gve(r);t&&Reflect.apply(t,this,[r,a])};e.addEventListener("wheel",n,{passive:!0})}},yve={beforeMount(e,t){mve(e,t.value)}},bve=je({role:{type:String,required:!0},spinnerDate:{type:ye(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ye(String),default:""},...w8}),_ve=["onClick"],wve=["onMouseenter"],Sve=te({__name:"basic-time-spinner",props:bve,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=Fe("time"),{getHoursList:a,getMinutesList:i,getSecondsList:o}=T8(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=U(),u=U(),c=U(),f=U(),d={hours:u,minutes:c,seconds:f},h=R(()=>n.showSeconds?BR:BR.slice(0,2)),v=R(()=>{const{spinnerDate:L}=n,G=L.hour(),q=L.minute(),Q=L.second();return{hours:G,minutes:q,seconds:Q}}),p=R(()=>{const{hours:L,minutes:G}=y(v);return{hours:a(n.role),minutes:i(L,n.role),seconds:o(L,G,n.role)}}),g=R(()=>{const{hours:L,minutes:G,seconds:q}=y(v);return{hours:pS(L,23),minutes:pS(G,59),seconds:pS(q,59)}}),m=Va(L=>{s=!1,S(L)},200),b=L=>{if(!!!n.amPmMode)return"";const q=n.amPmMode==="A";let Q=L<12?" am":" pm";return q&&(Q=Q.toUpperCase()),Q},_=L=>{let G;switch(L){case"hours":G=[0,2];break;case"minutes":G=[3,5];break;case"seconds":G=[6,8];break}const[q,Q]=G;t("select-range",q,Q),l.value=L},S=L=>{w(L,y(v)[L])},x=()=>{S("hours"),S("minutes"),S("seconds")},C=L=>L.querySelector(`.${r.namespace.value}-scrollbar__wrap`),w=(L,G)=>{if(n.arrowControl)return;const q=y(d[L]);q&&q.$el&&(C(q.$el).scrollTop=Math.max(0,G*k(L)))},k=L=>{const G=y(d[L]),q=G==null?void 0:G.$el.querySelector("li");return q&&Number.parseFloat(Gl(q,"height"))||0},M=()=>{E(1)},I=()=>{E(-1)},E=L=>{l.value||_("hours");const G=l.value,q=y(v)[G],Q=l.value==="hours"?24:60,ie=D(G,q,L,Q);P(G,ie),w(G,ie),ct(()=>_(G))},D=(L,G,q,Q)=>{let ie=(G+q+Q)%Q;const de=y(p)[L];for(;de[ie]&&ie!==G;)ie=(ie+q+Q)%Q;return ie},P=(L,G)=>{if(y(p)[L][G])return;const{hours:ie,minutes:de,seconds:oe}=y(v);let se;switch(L){case"hours":se=n.spinnerDate.hour(G).minute(de).second(oe);break;case"minutes":se=n.spinnerDate.hour(ie).minute(G).second(oe);break;case"seconds":se=n.spinnerDate.hour(ie).minute(de).second(G);break}t("change",se)},N=(L,{value:G,disabled:q})=>{q||(P(L,G),_(L),w(L,G))},z=L=>{s=!0,m(L);const G=Math.min(Math.round((C(y(d[L]).$el).scrollTop-(F(L)*.5-10)/k(L)+3)/k(L)),L==="hours"?23:59);P(L,G)},F=L=>y(d[L]).$el.offsetHeight,B=()=>{const L=G=>{const q=y(d[G]);q&&q.$el&&(C(q.$el).onscroll=()=>{z(G)})};L("hours"),L("minutes"),L("seconds")};Ft(()=>{ct(()=>{!n.arrowControl&&B(),x(),n.role==="start"&&_("hours")})});const V=(L,G)=>{d[G].value=L};return t("set-option",[`${n.role}_scrollDown`,E]),t("set-option",[`${n.role}_emitSelectRange`,_]),Be(()=>n.spinnerDate,()=>{s||x()}),(L,G)=>($(),Z("div",{class:W([y(r).b("spinner"),{"has-seconds":L.showSeconds}])},[L.arrowControl?me("v-if",!0):($(!0),Z(dt,{key:0},an(y(h),q=>($(),Se(y(hl),{key:q,ref_for:!0,ref:Q=>V(Q,q),class:W(y(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":y(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Q=>_(q),onMousemove:Q=>S(q)},{default:ce(()=>[($(!0),Z(dt,null,an(y(p)[q],(Q,ie)=>($(),Z("li",{key:ie,class:W([y(r).be("spinner","item"),y(r).is("active",ie===y(v)[q]),y(r).is("disabled",Q)]),onClick:de=>N(q,{value:ie,disabled:Q})},[q==="hours"?($(),Z(dt,{key:0},[_n(Ke(("0"+(L.amPmMode?ie%12||12:ie)).slice(-2))+Ke(b(ie)),1)],64)):($(),Z(dt,{key:1},[_n(Ke(("0"+ie).slice(-2)),1)],64))],10,_ve))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),L.arrowControl?($(!0),Z(dt,{key:1},an(y(h),q=>($(),Z("div",{key:q,class:W([y(r).be("spinner","wrapper"),y(r).is("arrow")]),onMouseenter:Q=>_(q)},[Ot(($(),Se(y(ut),{class:W(["arrow-up",y(r).be("spinner","arrow")])},{default:ce(()=>[re(y(m_))]),_:1},8,["class"])),[[y(Bb),I]]),Ot(($(),Se(y(ut),{class:W(["arrow-down",y(r).be("spinner","arrow")])},{default:ce(()=>[re(y(Au))]),_:1},8,["class"])),[[y(Bb),M]]),ee("ul",{class:W(y(r).be("spinner","list"))},[($(!0),Z(dt,null,an(y(g)[q],(Q,ie)=>($(),Z("li",{key:ie,class:W([y(r).be("spinner","item"),y(r).is("active",Q===y(v)[q]),y(r).is("disabled",y(p)[q][Q])])},[typeof Q=="number"?($(),Z(dt,{key:0},[q==="hours"?($(),Z(dt,{key:0},[_n(Ke(("0"+(L.amPmMode?Q%12||12:Q)).slice(-2))+Ke(b(Q)),1)],64)):($(),Z(dt,{key:1},[_n(Ke(("0"+Q).slice(-2)),1)],64))],64)):me("v-if",!0)],2))),128))],2)],42,wve))),128)):me("v-if",!0)],2))}});var H2=Ue(Sve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const Cve=te({__name:"panel-time-pick",props:lve,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=lt("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=k8(i,o,s),d=Fe("time"),{t:h,lang:v}=pn(),p=U([0,2]),g=M8(n),m=R(()=>Vr(n.actualVisible)?`${d.namespace.value}-zoom-in-top`:""),b=R(()=>n.format.includes("ss")),_=R(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=V=>{const L=Vt(V).locale(v.value),G=N(L);return L.isSame(G)},x=()=>{t("pick",g.value,!1)},C=(V=!1,L=!1)=>{L||t("pick",n.parsedValue,V)},w=V=>{if(!n.visible)return;const L=N(V).millisecond(0);t("pick",L,!0)},k=(V,L)=>{t("select-range",V,L),p.value=[V,L]},M=V=>{const L=[0,3].concat(b.value?[6]:[]),G=["hours","minutes"].concat(b.value?["seconds"]:[]),Q=(L.indexOf(p.value[0])+V+L.length)%L.length;E.start_emitSelectRange(G[Q])},I=V=>{const L=V.code,{left:G,right:q,up:Q,down:ie}=vt;if([G,q].includes(L)){M(L===G?-1:1),V.preventDefault();return}if([Q,ie].includes(L)){const de=L===Q?-1:1;E.start_scrollDown(de),V.preventDefault();return}},{timePickerOptions:E,onSetOption:D,getAvailableTime:P}=x8({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),N=V=>P(V,n.datetimeRole||"",!0),z=V=>V?Vt(V,n.format).locale(v.value):null,F=V=>V?V.format(n.format):null,B=()=>Vt(l).locale(v.value);return t("set-picker-option",["isValidValue",S]),t("set-picker-option",["formatToString",F]),t("set-picker-option",["parseUserInput",z]),t("set-picker-option",["handleKeydownInput",I]),t("set-picker-option",["getRangeAvailableTime",N]),t("set-picker-option",["getDefaultValue",B]),(V,L)=>($(),Se(xr,{name:y(m)},{default:ce(()=>[V.actualVisible||V.visible?($(),Z("div",{key:0,class:W(y(d).b("panel"))},[ee("div",{class:W([y(d).be("panel","content"),{"has-seconds":y(b)}])},[re(H2,{ref:"spinner",role:V.datetimeRole||"start","arrow-control":y(a),"show-seconds":y(b),"am-pm-mode":y(_),"spinner-date":V.parsedValue,"disabled-hours":y(i),"disabled-minutes":y(o),"disabled-seconds":y(s),onChange:w,onSetOption:y(D),onSelectRange:k},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),ee("div",{class:W(y(d).be("panel","footer"))},[ee("button",{type:"button",class:W([y(d).be("panel","btn"),"cancel"]),onClick:x},Ke(y(h)("el.datepicker.cancel")),3),ee("button",{type:"button",class:W([y(d).be("panel","btn"),"confirm"]),onClick:L[0]||(L[0]=G=>C())},Ke(y(h)("el.datepicker.confirm")),3)],2)],2)):me("v-if",!0)]),_:1},8,["name"]))}});var Vb=Ue(Cve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const xve=je({...S8,parsedValue:{type:ye(Array)}}),Tve=["disabled"],kve=te({__name:"panel-time-range",props:xve,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(he,X)=>{const ae=[];for(let ge=he;ge<=X;ge++)ae.push(ge);return ae},{t:a,lang:i}=pn(),o=Fe("time"),s=Fe("picker"),l=lt("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:d,defaultValue:h}=l.props,v=R(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),S.value?"has-seconds":""]),p=R(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),S.value?"has-seconds":""]),g=R(()=>n.parsedValue[0]),m=R(()=>n.parsedValue[1]),b=M8(n),_=()=>{t("pick",b.value,!1)},S=R(()=>n.format.includes("ss")),x=R(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),C=(he=!1)=>{t("pick",[g.value,m.value],he)},w=he=>{I(he.millisecond(0),m.value)},k=he=>{I(g.value,he.millisecond(0))},M=he=>{const X=he.map(ge=>Vt(ge).locale(i.value)),ae=q(X);return X[0].isSame(ae[0])&&X[1].isSame(ae[1])},I=(he,X)=>{t("pick",[he,X],!0)},E=R(()=>g.value>m.value),D=U([0,2]),P=(he,X)=>{t("select-range",he,X,"min"),D.value=[he,X]},N=R(()=>S.value?11:8),z=(he,X)=>{t("select-range",he,X,"max");const ae=y(N);D.value=[he+ae,X+ae]},F=he=>{const X=S.value?[0,3,6,11,14,17]:[0,3,8,11],ae=["hours","minutes"].concat(S.value?["seconds"]:[]),ke=(X.indexOf(D.value[0])+he+X.length)%X.length,Pe=X.length/2;ke<Pe?oe.start_emitSelectRange(ae[ke]):oe.end_emitSelectRange(ae[ke-Pe])},B=he=>{const X=he.code,{left:ae,right:ge,up:ke,down:Pe}=vt;if([ae,ge].includes(X)){F(X===ae?-1:1),he.preventDefault();return}if([ke,Pe].includes(X)){const Me=X===ke?-1:1,ze=D.value[0]<N.value?"start":"end";oe[`${ze}_scrollDown`](Me),he.preventDefault();return}},V=(he,X)=>{const ae=c?c(he):[],ge=he==="start",Pe=(X||(ge?m.value:g.value)).hour(),Me=ge?r(Pe+1,23):r(0,Pe-1);return sS(ae,Me)},L=(he,X,ae)=>{const ge=f?f(he,X):[],ke=X==="start",Pe=ae||(ke?m.value:g.value),Me=Pe.hour();if(he!==Me)return ge;const ze=Pe.minute(),Oe=ke?r(ze+1,59):r(0,ze-1);return sS(ge,Oe)},G=(he,X,ae,ge)=>{const ke=d?d(he,X,ae):[],Pe=ae==="start",Me=ge||(Pe?m.value:g.value),ze=Me.hour(),Oe=Me.minute();if(he!==ze||X!==Oe)return ke;const Le=Me.second(),Ve=Pe?r(Le+1,59):r(0,Le-1);return sS(ke,Ve)},q=([he,X])=>[se(he,"start",!0,X),se(X,"end",!1,he)],{getAvailableHours:Q,getAvailableMinutes:ie,getAvailableSeconds:de}=k8(V,L,G),{timePickerOptions:oe,getAvailableTime:se,onSetOption:le}=x8({getAvailableHours:Q,getAvailableMinutes:ie,getAvailableSeconds:de}),ne=he=>he?st(he)?he.map(X=>Vt(X,n.format).locale(i.value)):Vt(he,n.format).locale(i.value):null,Ce=he=>he?st(he)?he.map(X=>X.format(n.format)):he.format(n.format):null,Te=()=>{if(st(h))return h.map(X=>Vt(X).locale(i.value));const he=Vt(h).locale(i.value);return[he,he.add(60,"m")]};return t("set-picker-option",["formatToString",Ce]),t("set-picker-option",["parseUserInput",ne]),t("set-picker-option",["isValidValue",M]),t("set-picker-option",["handleKeydownInput",B]),t("set-picker-option",["getDefaultValue",Te]),t("set-picker-option",["getRangeAvailableTime",q]),(he,X)=>he.actualVisible?($(),Z("div",{key:0,class:W([y(o).b("range-picker"),y(s).b("panel")])},[ee("div",{class:W(y(o).be("range-picker","content"))},[ee("div",{class:W(y(o).be("range-picker","cell"))},[ee("div",{class:W(y(o).be("range-picker","header"))},Ke(y(a)("el.datepicker.startTime")),3),ee("div",{class:W(y(v))},[re(H2,{ref:"minSpinner",role:"start","show-seconds":y(S),"am-pm-mode":y(x),"arrow-control":y(u),"spinner-date":y(g),"disabled-hours":V,"disabled-minutes":L,"disabled-seconds":G,onChange:w,onSetOption:y(le),onSelectRange:P},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),ee("div",{class:W(y(o).be("range-picker","cell"))},[ee("div",{class:W(y(o).be("range-picker","header"))},Ke(y(a)("el.datepicker.endTime")),3),ee("div",{class:W(y(p))},[re(H2,{ref:"maxSpinner",role:"end","show-seconds":y(S),"am-pm-mode":y(x),"arrow-control":y(u),"spinner-date":y(m),"disabled-hours":V,"disabled-minutes":L,"disabled-seconds":G,onChange:k,onSetOption:y(le),onSelectRange:z},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),ee("div",{class:W(y(o).be("panel","footer"))},[ee("button",{type:"button",class:W([y(o).be("panel","btn"),"cancel"]),onClick:X[0]||(X[0]=ae=>_())},Ke(y(a)("el.datepicker.cancel")),3),ee("button",{type:"button",class:W([y(o).be("panel","btn"),"confirm"]),disabled:y(E),onClick:X[1]||(X[1]=ae=>C())},Ke(y(a)("el.datepicker.confirm")),11,Tve)],2)],2)):me("v-if",!0)}});var Mve=Ue(kve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);Vt.extend(MA);var Ave=te({name:"ElTimePicker",install:null,props:{...AA,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=U(),[r,a]=e.isRange?["timerange",Mve]:["time",Vb],i=o=>t.emit("update:modelValue",o);return Jt("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:P2;return re(C8,Yt(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>re(a,l,null)})}}});const F0=Ave;F0.install=e=>{e.component(F0.name,F0)};const Eve=F0,Ive=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return ru(t).map((r,a)=>n-(t-a-1))},Dve=e=>{const t=e.daysInMonth();return ru(t).map((n,r)=>r+1)},Pve=e=>ru(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),Lve=je({selectedDay:{type:ye(Object)},range:{type:ye(Array)},date:{type:ye(Object),required:!0},hideHeader:{type:Boolean}}),Rve={pick:e=>Qt(e)};var O8={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ts,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(x){return x.slice(0,v)});if(!p)return _;var S=g.weekStart;return _.map(function(x,C){return _[(C+(S||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)}}})})(O8);var Ove=O8.exports;const N8=Fo(Ove),Nve=(e,t)=>{Vt.extend(N8);const n=Vt.localeData().firstDayOfWeek(),{t:r,lang:a}=pn(),i=Vt().locale(a.value),o=R(()=>!!e.range&&!!e.range.length),s=R(()=>{let d=[];if(o.value){const[h,v]=e.range,p=ru(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=ru(g).map((b,_)=>({text:_+1,type:"next"}));d=p.concat(m)}else{const h=e.date.startOf("month").day(),v=Ive(e.date,(h-n+7)%7).map(b=>({text:b,type:"prev"})),p=Dve(e.date).map(b=>({text:b,type:"current"}));d=[...v,...p];const g=7-(d.length%7||7),m=ru(g).map((b,_)=>({text:_+1,type:"next"}));d=d.concat(m)}return Pve(d)}),l=R(()=>{const d=n;return d===0?lS.map(h=>r(`el.datepicker.weeks.${h}`)):lS.slice(d).concat(lS.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()}}}},$ve={key:0},Bve=["onClick"],Vve=te({name:"DateTable"}),Fve=te({...Vve,props:Lve,emits:Rve,setup(e,{expose:t,emit:n}){const r=e,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=Nve(r,n),f=Fe("calendar-table"),d=Fe("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)=>($(),Z("table",{class:W([y(f).b(),y(f).is("range",y(a))]),cellspacing:"0",cellpadding:"0"},[v.hideHeader?me("v-if",!0):($(),Z("thead",$ve,[($(!0),Z(dt,null,an(y(s),g=>($(),Z("th",{key:g},Ke(g),1))),128))])),ee("tbody",null,[($(!0),Z(dt,null,an(y(o),(g,m)=>($(),Z("tr",{key:m,class:W({[y(f).e("row")]:!0,[y(f).em("row","hide-border")]:m===0&&v.hideHeader})},[($(!0),Z(dt,null,an(g,(b,_)=>($(),Z("td",{key:_,class:W(h(b)),onClick:S=>y(u)(b)},[ee("div",{class:W(y(d).b())},[Re(v.$slots,"date-cell",{data:y(c)(b)},()=>[ee("span",null,Ke(b.text),1)])],2)],10,Bve))),128))],2))),128))])],2))}});var XR=Ue(Fve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const zve=(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]]},Hve=(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]]},Wve=(e,t,n)=>{const r=da(),{lang:a}=pn(),i=U(),o=Vt().locale(a.value),s=R({get(){return e.modelValue?u.value:i.value},set(m){if(!m)return;i.value=m;const b=m.toDate();t(Oa,b),t(Gt,b)}}),l=R(()=>{if(!e.range)return[];const m=e.range.map(S=>Vt(S).locale(a.value)),[b,_]=m;return b.isAfter(_)?[]:b.isSame(_,"month")?v(b,_):b.add(1,"month").month()!==_.month()?[]:v(b,_)}),u=R(()=>e.modelValue?Vt(e.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:o)),c=R(()=>u.value.subtract(1,"month").date(1)),f=R(()=>u.value.add(1,"month").date(1)),d=R(()=>u.value.subtract(1,"year").date(1)),h=R(()=>u.value.add(1,"year").date(1)),v=(m,b)=>{const _=m.startOf("week"),S=b.endOf("week"),x=_.get("month"),C=S.get("month");return x===C?[[_,S]]:(x+1)%12===C?zve(_,S):x+2===C||(x+1)%11===C?Hve(_,S):[]},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 ms({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},R(()=>!!r.dateCell)),{calculateValidatedDateRange:v,date:u,realSelectedDay:s,pickDay:p,selectDate:g,validatedRange:l}},Gve=e=>st(e)&&e.length===2&&e.every(t=>cf(t)),Kve=je({modelValue:{type:Date},range:{type:ye(Array),validator:Gve}}),Uve={[Gt]:e=>cf(e),[Oa]:e=>cf(e)},jve="ElCalendar",Yve=te({name:jve}),qve=te({...Yve,props:Kve,emits:Uve,setup(e,{expose:t,emit:n}){const r=e,a=Fe("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=Wve(r,n),{t:f}=pn(),d=R(()=>{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)=>($(),Z("div",{class:W(y(a).b())},[ee("div",{class:W(y(a).e("header"))},[Re(h.$slots,"header",{date:y(d)},()=>[ee("div",{class:W(y(a).e("title"))},Ke(y(d)),3),y(c).length===0?($(),Z("div",{key:0,class:W(y(a).e("button-group"))},[re(y(g8),null,{default:ce(()=>[re(y(oa),{size:"small",onClick:v[0]||(v[0]=p=>y(u)("prev-month"))},{default:ce(()=>[_n(Ke(y(f)("el.datepicker.prevMonth")),1)]),_:1}),re(y(oa),{size:"small",onClick:v[1]||(v[1]=p=>y(u)("today"))},{default:ce(()=>[_n(Ke(y(f)("el.datepicker.today")),1)]),_:1}),re(y(oa),{size:"small",onClick:v[2]||(v[2]=p=>y(u)("next-month"))},{default:ce(()=>[_n(Ke(y(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):me("v-if",!0)])],2),y(c).length===0?($(),Z("div",{key:0,class:W(y(a).e("body"))},[re(XR,{date:y(o),"selected-day":y(l),onPick:y(s)},Qs({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:ce(p=>[h.$slots["date-cell"]?Re(h.$slots,"date-cell",_o(Yt({key:0},p))):Re(h.$slots,"dateCell",_o(Yt({key:1},p)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):($(),Z("div",{key:1,class:W(y(a).e("body"))},[($(!0),Z(dt,null,an(y(c),(p,g)=>($(),Se(XR,{key:g,date:p[0],"selected-day":y(l),range:p,"hide-header":g!==0,onPick:y(s)},Qs({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:ce(m=>[h.$slots["date-cell"]?Re(h.$slots,"date-cell",_o(Yt({key:0},m))):Re(h.$slots,"dateCell",_o(Yt({key:1},m)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var Xve=Ue(qve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const Zve=Ht(Xve),Qve=je({header:{type:String,default:""},bodyStyle:{type:ye([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),Jve=te({name:"ElCard"}),epe=te({...Jve,props:Qve,setup(e){const t=Fe("card");return(n,r)=>($(),Z("div",{class:W([y(t).b(),y(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?($(),Z("div",{key:0,class:W(y(t).e("header"))},[Re(n.$slots,"header",{},()=>[_n(Ke(n.header),1)])],2)):me("v-if",!0),ee("div",{class:W([y(t).e("body"),n.bodyClass]),style:ft(n.bodyStyle)},[Re(n.$slots,"default")],6)],2))}});var tpe=Ue(epe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const npe=Ht(tpe),rpe=je({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}}),ape={change:(e,t)=>[e,t].every(Tt)},$8=Symbol("carouselContextKey"),ZR=300,ipe=(e,t,n)=>{const{children:r,addChild:a,removeChild:i}=wA(Bt(),"ElCarouselItem"),o=U(-1),s=U(null),l=U(!1),u=U(),c=U(0),f=R(()=>e.arrow!=="never"&&!y(v)),d=R(()=>r.value.some(L=>L.props.label.toString().length>0)),h=R(()=>e.type==="card"),v=R(()=>e.direction==="vertical"),p=R(()=>e.height!=="auto"?{height:e.height}:{height:`${c.value}px`,overflow:"hidden"}),g=Qc(L=>{x(L)},ZR,{trailing:!0}),m=Qc(L=>{P(L)},ZR);function b(){s.value&&(clearInterval(s.value),s.value=null)}function _(){e.interval<=0||!e.autoplay||s.value||(s.value=setInterval(()=>S(),e.interval))}const S=()=>{o.value<r.value.length-1?o.value=o.value+1:e.loop&&(o.value=0)};function x(L){if(At(L)){const Q=r.value.filter(ie=>ie.props.name===L);Q.length>0&&(L=r.value.indexOf(Q[0]))}if(L=Number(L),Number.isNaN(L)||L!==Math.floor(L))return;const G=r.value.length,q=o.value;L<0?o.value=e.loop?G-1:0:L>=G?o.value=e.loop?0:G-1:o.value=L,q===o.value&&C(q),F()}function C(L){r.value.forEach((G,q)=>{G.translateItem(q,o.value,L)})}function w(L,G){var q,Q,ie,de;const oe=y(r),se=oe.length;if(se===0||!L.states.inStage)return!1;const le=G+1,ne=G-1,Ce=se-1,Te=oe[Ce].states.active,he=oe[0].states.active,X=(Q=(q=oe[le])==null?void 0:q.states)==null?void 0:Q.active,ae=(de=(ie=oe[ne])==null?void 0:ie.states)==null?void 0:de.active;return G===Ce&&he||X?"left":G===0&&Te||ae?"right":!1}function k(){l.value=!0,e.pauseOnHover&&b()}function M(){l.value=!1,_()}function I(L){y(v)||r.value.forEach((G,q)=>{L===w(G,q)&&(G.states.hover=!0)})}function E(){y(v)||r.value.forEach(L=>{L.states.hover=!1})}function D(L){o.value=L}function P(L){e.trigger==="hover"&&L!==o.value&&(o.value=L)}function N(){x(o.value-1)}function z(){x(o.value+1)}function F(){b(),_()}function B(L){e.height==="auto"&&(c.value=L)}Be(()=>o.value,(L,G)=>{C(G),G>-1&&t("change",L,G)}),Be(()=>e.autoplay,L=>{L?_():b()}),Be(()=>e.loop,()=>{x(o.value)}),Be(()=>e.interval,()=>{F()}),Be(()=>r.value,()=>{r.value.length>0&&x(e.initialIndex)});const V=zn();return Ft(()=>{V.value=wa(u.value,()=>{C()}),_()}),er(()=>{b(),u.value&&V.value&&V.value.stop()}),Jt($8,{root:u,isCardType:h,isVertical:v,items:r,loop:e.loop,addItem:a,removeItem:i,setActiveItem:x,setContainerHeight:B}),{root:u,activeIndex:o,arrowDisplay:f,hasLabel:d,hover:l,isCardType:h,items:r,isVertical:v,containerStyle:p,handleButtonEnter:I,handleButtonLeave:E,handleIndicatorClick:D,handleMouseEnter:k,handleMouseLeave:M,setActiveItem:x,prev:N,next:z,throttledArrowClick:g,throttledIndicatorHover:m}},ope=["onMouseenter","onClick"],spe={key:0},lpe="ElCarousel",upe=te({name:lpe}),cpe=te({...upe,props:rpe,emits:ape,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:S,throttledArrowClick:x,throttledIndicatorHover:C}=ipe(r,n),w=Fe("carousel"),k=R(()=>{const I=[w.b(),w.m(r.direction)];return y(u)&&I.push(w.m("card")),I}),M=R(()=>{const I=[w.e("indicators"),w.em("indicators",r.direction)];return y(s)&&I.push(w.em("indicators","labels")),r.indicatorPosition==="outside"&&I.push(w.em("indicators","outside")),y(f)&&I.push(w.em("indicators","right")),I});return t({setActiveItem:b,prev:_,next:S}),(I,E)=>($(),Z("div",{ref_key:"root",ref:a,class:W(y(k)),onMouseenter:E[6]||(E[6]=_t((...D)=>y(g)&&y(g)(...D),["stop"])),onMouseleave:E[7]||(E[7]=_t((...D)=>y(m)&&y(m)(...D),["stop"]))},[ee("div",{class:W(y(w).e("container")),style:ft(y(d))},[y(o)?($(),Se(xr,{key:0,name:"carousel-arrow-left",persisted:""},{default:ce(()=>[Ot(ee("button",{type:"button",class:W([y(w).e("arrow"),y(w).em("arrow","left")]),onMouseenter:E[0]||(E[0]=D=>y(h)("left")),onMouseleave:E[1]||(E[1]=(...D)=>y(v)&&y(v)(...D)),onClick:E[2]||(E[2]=_t(D=>y(x)(y(i)-1),["stop"]))},[re(y(ut),null,{default:ce(()=>[re(y(hu))]),_:1})],34),[[bn,(I.arrow==="always"||y(l))&&(r.loop||y(i)>0)]])]),_:1})):me("v-if",!0),y(o)?($(),Se(xr,{key:1,name:"carousel-arrow-right",persisted:""},{default:ce(()=>[Ot(ee("button",{type:"button",class:W([y(w).e("arrow"),y(w).em("arrow","right")]),onMouseenter:E[3]||(E[3]=D=>y(h)("right")),onMouseleave:E[4]||(E[4]=(...D)=>y(v)&&y(v)(...D)),onClick:E[5]||(E[5]=_t(D=>y(x)(y(i)+1),["stop"]))},[re(y(ut),null,{default:ce(()=>[re(y(Ra))]),_:1})],34),[[bn,(I.arrow==="always"||y(l))&&(r.loop||y(i)<y(c).length-1)]])]),_:1})):me("v-if",!0),Re(I.$slots,"default")],6),I.indicatorPosition!=="none"?($(),Z("ul",{key:0,class:W(y(M))},[($(!0),Z(dt,null,an(y(c),(D,P)=>($(),Z("li",{key:P,class:W([y(w).e("indicator"),y(w).em("indicator",I.direction),y(w).is("active",P===y(i))]),onMouseenter:N=>y(C)(P),onClick:_t(N=>y(p)(P),["stop"])},[ee("button",{class:W(y(w).e("button"))},[y(s)?($(),Z("span",spe,Ke(D.props.label),1)):me("v-if",!0)],2)],42,ope))),128))],2)):me("v-if",!0)],34))}});var fpe=Ue(cpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const dpe=je({name:{type:String,default:""},label:{type:[String,Number],default:""}}),hpe=(e,t)=>{const n=lt($8),r=Bt(),a=.83,i=U(),o=U(!1),s=U(0),l=U(1),u=U(!1),c=U(!1),f=U(!1),d=U(!1),{isCardType:h,isVertical:v}=n;function p(S,x,C){const w=C-1,k=x-1,M=x+1,I=C/2;return x===0&&S===w?-1:x===w&&S===0?C:S<k&&x-S>=I?C+1:S>M&&S-x>=I?-2:S}function g(S,x){var C,w;const k=y(v)?((C=n.root.value)==null?void 0:C.offsetHeight)||0:((w=n.root.value)==null?void 0:w.offsetWidth)||0;return f.value?k*((2-a)*(S-x)+1)/4:S<x?-(1+a)*k/4:(3+a)*k/4}function m(S,x,C){const w=n.root.value;return w?((C?w.offsetHeight:w.offsetWidth)||0)*(S-x):0}const b=(S,x,C)=>{var w;const k=y(h),M=(w=n.items.value.length)!=null?w:Number.NaN,I=S===x;!k&&!Vr(C)&&(d.value=I||S===C),!I&&M>2&&n.loop&&(S=p(S,x,M));const E=y(v);u.value=I,k?(f.value=Math.round(Math.abs(S-x))<=1,s.value=g(S,x),l.value=y(u)?1:a):s.value=m(S,x,E),c.value=!0,I&&i.value&&n.setContainerHeight(i.value.offsetHeight)};function _(){if(n&&y(h)){const S=n.items.value.findIndex(({uid:x})=>x===r.uid);n.setActiveItem(S)}}return Ft(()=>{n.addItem({props:e,states:Sn({hover:o,translate:s,scale:l,active:u,ready:c,inStage:f,animating:d}),uid:r.uid,translateItem:b})}),Mu(()=>{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:_}},vpe=te({name:"ElCarouselItem"}),ppe=te({...vpe,props:dpe,setup(e){const t=e,n=Fe("carousel"),{carouselItemRef:r,active:a,animating:i,hover:o,inStage:s,isVertical:l,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:h}=hpe(t),v=R(()=>{const g=`${`translate${y(l)?"Y":"X"}`}(${y(u)}px)`,m=`scale(${y(f)})`;return{transform:[g,m].join(" ")}});return(p,g)=>Ot(($(),Z("div",{ref_key:"carouselItemRef",ref:r,class:W([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:ft(y(v)),onClick:g[0]||(g[0]=(...m)=>y(h)&&y(h)(...m))},[y(c)?Ot(($(),Z("div",{key:0,class:W(y(n).e("mask"))},null,2)),[[bn,!y(a)]]):me("v-if",!0),Re(p.$slots,"default")],6)),[[bn,y(d)]])}});var B8=Ue(ppe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const gpe=Ht(fpe,{CarouselItem:B8}),mpe=fr(B8),V8={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:la,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},F8={[Gt]:e=>At(e)||Tt(e)||Rr(e),change:e=>At(e)||Tt(e)||Rr(e)},Vh=Symbol("checkboxGroupContextKey"),ype=({model:e,isChecked:t})=>{const n=lt(Vh,void 0),r=R(()=>{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!Vr(s)&&e.value.length>=s&&!t.value||!Vr(l)&&e.value.length<=l&&t.value});return{isDisabled:li(R(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},bpe=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const o=lt(Vh,void 0),{formItem:s}=Ga(),{emit:l}=Bt();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 ct(),c(t.value,v)))}const h=R(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return Be(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},_pe=e=>{const t=U(!1),{emit:n}=Bt(),r=lt(Vh,void 0),a=R(()=>Vr(r)===!1),i=U(!1);return{model:R({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&&st(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(Gt,s),t.value=s)}}),isGroup:a,isLimitExceeded:i}},wpe=(e,t,{model:n})=>{const r=lt(Vh,void 0),a=U(!1),i=R(()=>{const u=n.value;return Rr(u)?u:st(u)?Qt(e.label)?u.map(En).some(c=>ni(c,e.label)):u.map(En).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=$r(R(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=$r(R(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=R(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:l}},Spe=(e,{model:t})=>{function n(){st(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},z8=(e,t)=>{const{formItem:n}=Ga(),{model:r,isGroup:a,isLimitExceeded:i}=_pe(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=wpe(e,t,{model:r}),{isDisabled:f}=ype({model:r,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=Lu(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:v,onClickRoot:p}=bpe(e,{model:r,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return Spe(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}},Cpe=["tabindex","role","aria-checked"],xpe=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Tpe=["id","aria-hidden","disabled","value","name","tabindex"],kpe=te({name:"ElCheckbox"}),Mpe=te({...kpe,props:V8,emits:F8,setup(e){const t=e,n=da(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=z8(t,n),h=Fe("checkbox"),v=R(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",i.value)]),p=R(()=>[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)=>($(),Se(qt(!y(u)&&y(a)?"span":"label"),{class:W(y(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:y(d)},{default:ce(()=>[ee("span",{class:W(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?Ot(($(),Z("input",{key:0,id:y(r),"onUpdate:modelValue":m[0]||(m[0]=b=>Hn(c)?c.value=b:null),class:W(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]=_t(()=>{},["stop"]))},null,42,xpe)),[[Eb,y(c)]]):Ot(($(),Z("input",{key:1,id:y(r),"onUpdate:modelValue":m[5]||(m[5]=b=>Hn(c)?c.value=b:null),class:W(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]=_t(()=>{},["stop"]))},null,42,Tpe)),[[Eb,y(c)]]),ee("span",{class:W(y(h).e("inner"))},null,2)],10,Cpe),y(u)?($(),Z("span",{key:0,class:W(y(h).e("label"))},[Re(g.$slots,"default"),g.$slots.default?me("v-if",!0):($(),Z(dt,{key:0},[_n(Ke(g.label),1)],64))],2)):me("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Ape=Ue(Mpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const Epe=["name","tabindex","disabled","true-value","false-value"],Ipe=["name","tabindex","disabled","value"],Dpe=te({name:"ElCheckboxButton"}),Ppe=te({...Dpe,props:V8,emits:F8,setup(e){const t=e,n=da(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:l}=z8(t,n),u=lt(Vh,void 0),c=Fe("checkbox"),f=R(()=>{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=R(()=>[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)=>($(),Z("label",{class:W(y(d))},[h.trueLabel||h.falseLabel?Ot(($(),Z("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>Hn(s)?s.value=p:null),class:W(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]=_t(()=>{},["stop"]))},null,42,Epe)),[[Eb,y(s)]]):Ot(($(),Z("input",{key:1,"onUpdate:modelValue":v[5]||(v[5]=p=>Hn(s)?s.value=p:null),class:W(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]=_t(()=>{},["stop"]))},null,42,Ipe)),[[Eb,y(s)]]),h.$slots.default||h.label?($(),Z("span",{key:2,class:W(y(c).be("button","inner")),style:ft(y(a)?y(f):void 0)},[Re(h.$slots,"default",{},()=>[_n(Ke(h.label),1)])],6)):me("v-if",!0)],2))}});var H8=Ue(Ppe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const Lpe=je({modelValue:{type:ye(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:la,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),Rpe={[Gt]:e=>st(e),change:e=>st(e)},Ope=te({name:"ElCheckboxGroup"}),Npe=te({...Ope,props:Lpe,emits:Rpe,setup(e,{emit:t}){const n=e,r=Fe("checkbox"),{formItem:a}=Ga(),{inputId:i,isLabeledByFormItem:o}=Lu(n,{formItemContext:a}),s=async u=>{t(Gt,u),await ct(),t("change",u)},l=R({get(){return n.modelValue},set(u){s(u)}});return Jt(Vh,{...Hs(Ur(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Be(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return $(),Se(qt(u.tag),{id:y(i),class:W(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:ce(()=>[Re(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var W8=Ue(Npe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Qi=Ht(Ape,{CheckboxButton:H8,CheckboxGroup:W8}),$pe=fr(H8),G8=fr(W8),K8=je({size:la,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Bpe=je({...K8,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),U8={[Gt]:e=>At(e)||Tt(e)||Rr(e),[qn]:e=>At(e)||Tt(e)||Rr(e)},j8=Symbol("radioGroupKey"),Y8=(e,t)=>{const n=U(),r=lt(j8,void 0),a=R(()=>!!r),i=R({get(){return a.value?r.modelValue:e.modelValue},set(c){a.value?r.changeEvent(c):t&&t(Gt,c),n.value.checked=e.modelValue===e.label}}),o=$r(R(()=>r==null?void 0:r.size)),s=li(R(()=>r==null?void 0:r.disabled)),l=U(!1),u=R(()=>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}},Vpe=["value","name","disabled"],Fpe=te({name:"ElRadio"}),zpe=te({...Fpe,props:Bpe,emits:U8,setup(e,{emit:t}){const n=e,r=Fe("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=Y8(n,t);function c(){ct(()=>t("change",u.value))}return(f,d)=>{var h;return $(),Z("label",{class:W([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))])},[ee("span",{class:W([y(r).e("input"),y(r).is("disabled",y(l)),y(r).is("checked",y(u)===f.label)])},[Ot(ee("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=v=>Hn(u)?u.value=v:null),class:W(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]=_t(()=>{},["stop"]))},null,42,Vpe),[[KF,y(u)]]),ee("span",{class:W(y(r).e("inner"))},null,2)],2),ee("span",{class:W(y(r).e("label")),onKeydown:d[4]||(d[4]=_t(()=>{},["stop"]))},[Re(f.$slots,"default",{},()=>[_n(Ke(f.label),1)])],34)],2)}}});var Hpe=Ue(zpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Wpe=je({...K8,name:{type:String,default:""}}),Gpe=["value","name","disabled"],Kpe=te({name:"ElRadioButton"}),Upe=te({...Kpe,props:Wpe,setup(e){const t=e,n=Fe("radio"),{radioRef:r,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=Y8(t),u=R(()=>({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 $(),Z("label",{class:W([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))])},[Ot(ee("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=h=>Hn(s)?s.value=h:null),class:W(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]=_t(()=>{},["stop"]))},null,42,Gpe),[[KF,y(s)]]),ee("span",{class:W(y(n).be("button","inner")),style:ft(y(s)===c.label?y(u):{}),onKeydown:f[4]||(f[4]=_t(()=>{},["stop"]))},[Re(c.$slots,"default",{},()=>[_n(Ke(c.label),1)])],38)],2)}}});var q8=Ue(Upe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const jpe=je({id:{type:String,default:void 0},size:la,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}}),Ype=U8,qpe=["id","aria-label","aria-labelledby"],Xpe=te({name:"ElRadioGroup"}),Zpe=te({...Xpe,props:jpe,emits:Ype,setup(e,{emit:t}){const n=e,r=Fe("radio"),a=Xi(),i=U(),{formItem:o}=Ga(),{inputId:s,isLabeledByFormItem:l}=Lu(n,{formItemContext:o}),u=f=>{t(Gt,f),ct(()=>t("change",f))};Ft(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=R(()=>n.name||a.value);return Jt(j8,Sn({...Ur(n),changeEvent:u,name:c})),Be(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>($(),Z("div",{id:y(s),ref_key:"radioGroupRef",ref:i,class:W(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},[Re(f.$slots,"default")],10,qpe))}});var X8=Ue(Zpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const Z8=Ht(Hpe,{RadioButton:q8,RadioGroup:X8}),Qpe=fr(X8),Jpe=fr(q8);var ege=te({name:"NodeContent",setup(){return{ns:Fe("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:a}=t,{renderLabelFn:i}=n;return pt("span",{class:e.e("label")},i?i({node:t,data:r}):a)}});const EA=Symbol(),tge=te({name:"ElCascaderNode",components:{ElCheckbox:Qi,ElRadio:Z8,NodeContent:ege,ElIcon:ut,Check:vm,Loading:Iu,ArrowRight:Ra},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=lt(EA),r=Fe("cascader-node"),a=R(()=>n.isHoverMenu),i=R(()=>n.config.multiple),o=R(()=>n.config.checkStrictly),s=R(()=>{var C;return(C=n.checkedNodes[0])==null?void 0:C.uid}),l=R(()=>e.node.isDisabled),u=R(()=>e.node.isLeaf),c=R(()=>o.value&&!u.value||!l.value),f=R(()=>h(n.expandingNode)),d=R(()=>o.value&&n.checkedNodes.some(h)),h=C=>{var w;const{level:k,uid:M}=e.node;return((w=C==null?void 0:C.pathNodes[k-1])==null?void 0:w.uid)===M},v=()=>{f.value||n.expandNode(e.node)},p=C=>{const{node:w}=e;C!==w.checked&&n.handleCheckChange(w,C)},g=()=>{n.lazyLoad(e.node,()=>{u.value||v()})},m=C=>{a.value&&(b(),!u.value&&t("expand",C))},b=()=>{const{node:C}=e;!c.value||C.loading||(C.loaded?v():g())},_=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?x(!0):b())},S=C=>{o.value?(p(C),e.node.loaded&&v()):x(C)},x=C=>{e.node.loaded?(p(C),!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:x,handleSelectCheck:S}}}),nge=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],rge=ee("span",null,null,-1);function age(e,t,n,r,a,i){const o=Pt("el-checkbox"),s=Pt("el-radio"),l=Pt("check"),u=Pt("el-icon"),c=Pt("node-content"),f=Pt("loading"),d=Pt("arrow-right");return $(),Z("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:W([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))},[me(" prefix "),e.multiple?($(),Se(o,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=_t(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?($(),Se(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=_t(()=>{},["stop"]))},{default:ce(()=>[me(`
 
-         Add an empty element to avoid render label,
 
-         do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
 
-       `),rge]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?($(),Se(u,{key:2,class:W(e.ns.e("prefix"))},{default:ce(()=>[re(l)]),_:1},8,["class"])):me("v-if",!0),me(" content "),re(c),me(" postfix "),e.isLeaf?me("v-if",!0):($(),Z(dt,{key:3},[e.node.loading?($(),Se(u,{key:0,class:W([e.ns.is("loading"),e.ns.e("postfix")])},{default:ce(()=>[re(f)]),_:1},8,["class"])):($(),Se(u,{key:1,class:W(["arrow-right",e.ns.e("postfix")])},{default:ce(()=>[re(d)]),_:1},8,["class"]))],64))],42,nge)}var ige=Ue(tge,[["render",age],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const oge=te({name:"ElCascaderMenu",components:{Loading:Iu,ElIcon:ut,ElScrollbar:hl,ElCascaderNode:ige},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Bt(),n=Fe("cascader-menu"),{t:r}=pn(),a=C_();let i=null,o=null;const s=lt(EA),l=U(null),u=R(()=>!e.nodes.length),c=R(()=>!s.initialLoaded),f=R(()=>`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:S}=m,x=g.clientX-b,C=i.offsetTop,w=C+i.offsetHeight;l.value.innerHTML=`
 
-           <path style="pointer-events: auto;" fill="transparent" d="M${x} ${C} L${_} 0 V${C} Z" />
 
-           <path style="pointer-events: auto;" fill="transparent" d="M${x} ${w} L${_} ${S} V${w} Z" />
 
-         `}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 sge(e,t,n,r,a,i){const o=Pt("el-cascader-node"),s=Pt("loading"),l=Pt("el-icon"),u=Pt("el-scrollbar");return $(),Se(u,{key:e.menuId,tag:"ul",role:"menu",class:W(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:ce(()=>{var c;return[($(!0),Z(dt,null,an(e.nodes,f=>($(),Se(o,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?($(),Z("div",{key:0,class:W(e.ns.e("empty-text"))},[re(l,{size:"14",class:W(e.ns.is("loading"))},{default:ce(()=>[re(s)]),_:1},8,["class"]),_n(" "+Ke(e.t("el.cascader.loading")),1)],2)):e.isEmpty?($(),Z("div",{key:1,class:W(e.ns.e("empty-text"))},Ke(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?($(),Z("svg",{key:2,ref:"hoverZone",class:W(e.ns.e("hover-zone"))},null,2)):me("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var lge=Ue(oge,[["render",sge],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let uge=0;const cge=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let W2=class G2{constructor(t,n,r,a=!1){this.data=t,this.config=n,this.parent=r,this.root=a,this.uid=uge++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=n,l=t[s],u=cge(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 G2(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!Bi(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(kt(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=kt(o)?o(t,this):t[o];return Vr(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 G2(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${as(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[r]&&a[r](...n))})}emit(t,...n){const{parent:r}=this,a=`onChild${as(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 K2=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(K2(r.children,t))),n),[]);class QR{constructor(t,n){this.config=n;const r=(t||[]).map(a=>new W2(a,this.config));this.nodes=r,this.allNodes=K2(r,!1),this.leafNodes=K2(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new W2(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=>ni(a.value,t)||ni(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:a})=>ni(t.value,r)&&t.level===a)||null}}const Q8=je({modelValue:{type:ye([Number,String,Array])},options:{type:ye(Array),default:()=>[]},props:{type:ye(Object),default:()=>({})}}),fge={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Ln,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},dge=e=>R(()=>({...fge,...e.props})),JR=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},hge=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():lz(e)&&e.click()},vge=(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},pge=te({name:"ElCascaderPanel",components:{ElCascaderMenu:lge},props:{...Q8,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Gt,qn,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const a=Fe("cascader"),i=dge(e);let o=null;const s=U(!0),l=U([]),u=U(null),c=U([]),f=U(null),d=U([]),h=R(()=>i.value.expandTrigger==="hover"),v=R(()=>e.renderLabel||n.default),p=()=>{const{options:D}=e,P=i.value;r=!1,o=new QR(D,P),c.value=[o.getNodes()],P.lazy&&Bi(e.options)?(s.value=!1,g(void 0,N=>{N&&(o=new QR(N,P),c.value=[o.getNodes()]),s.value=!0,k(!1,!0)})):k(!1,!0)},g=(D,P)=>{const N=i.value;D=D||new W2({},N,void 0,!0),D.loading=!0;const z=F=>{const B=D,V=B.root?null:B;F&&(o==null||o.appendNodes(F,V)),B.loading=!1,B.loaded=!0,B.childrenData=B.childrenData||[],P&&P(F)};N.lazyLoad(D,z)},m=(D,P)=>{var N;const{level:z}=D,F=c.value.slice(0,z);let B;D.isLeaf?B=D.pathNodes[z-2]:(B=D,F.push(D.children)),((N=f.value)==null?void 0:N.uid)!==(B==null?void 0:B.uid)&&(f.value=D,c.value=F,!P&&t("expand-change",(D==null?void 0:D.pathValues)||[]))},b=(D,P,N=!0)=>{const{checkStrictly:z,multiple:F}=i.value,B=d.value[0];r=!0,!F&&(B==null||B.doCheck(!1)),D.doCheck(P),w(),N&&!F&&!z&&t("close"),!N&&!F&&!z&&_(D)},_=D=>{D&&(D=D.parent,_(D),D&&m(D))},S=D=>o==null?void 0:o.getFlattedNodes(D),x=D=>{var P;return(P=S(D))==null?void 0:P.filter(N=>N.checked!==!1)},C=()=>{d.value.forEach(D=>D.doCheck(!1)),w(),c.value=c.value.slice(0,1),f.value=null,t("expand-change",[])},w=()=>{var D;const{checkStrictly:P,multiple:N}=i.value,z=d.value,F=x(!P),B=vge(z,F),V=B.map(L=>L.valueByOption);d.value=B,u.value=N?V:(D=V[0])!=null?D:null},k=(D=!1,P=!1)=>{const{modelValue:N}=e,{lazy:z,multiple:F,checkStrictly:B}=i.value,V=!B;if(!(!s.value||r||!P&&ni(N,u.value)))if(z&&!D){const G=JL(xoe(Ys(N))).map(q=>o==null?void 0:o.getNodeByValue(q)).filter(q=>!!q&&!q.loaded&&!q.loading);G.length?G.forEach(q=>{g(q,()=>k(!1,P))}):k(!0,P)}else{const L=F?Ys(N):[N],G=JL(L.map(q=>o==null?void 0:o.getNodeByValue(q,V)));M(G,P),u.value=Lb(N)}},M=(D,P=!0)=>{const{checkStrictly:N}=i.value,z=d.value,F=D.filter(L=>!!L&&(N||L.isLeaf)),B=o==null?void 0:o.getSameNode(f.value),V=P&&B||F[0];V?V.pathNodes.forEach(L=>m(L,!0)):f.value=null,z.forEach(L=>L.doCheck(!1)),e.props.multiple?Sn(F).forEach(L=>L.doCheck(!0)):F.forEach(L=>L.doCheck(!0)),d.value=F,ct(I)},I=()=>{fn&&l.value.forEach(D=>{const P=D==null?void 0:D.$el;if(P){const N=P.querySelector(`.${a.namespace.value}-scrollbar__wrap`),z=P.querySelector(`.${a.b("node")}.${a.is("active")}`)||P.querySelector(`.${a.b("node")}.in-active-path`);e6(N,z)}})},E=D=>{const P=D.target,{code:N}=D;switch(N){case vt.up:case vt.down:{D.preventDefault();const z=N===vt.up?-1:1;L0(uz(P,z,`.${a.b("node")}[tabindex="-1"]`));break}case vt.left:{D.preventDefault();const z=l.value[JR(P)-1],F=z==null?void 0:z.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);L0(F);break}case vt.right:{D.preventDefault();const z=l.value[JR(P)+1],F=z==null?void 0:z.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);L0(F);break}case vt.enter:hge(P);break}};return Jt(EA,Sn({config:i,expandingNode:f,checkedNodes:d,isHoverMenu:h,initialLoaded:s,renderLabelFn:v,lazyLoad:g,expandNode:m,handleCheckChange:b})),Be([i,()=>e.options],p,{deep:!0,immediate:!0}),Be(()=>e.modelValue,()=>{r=!1,k()},{deep:!0}),Be(()=>u.value,D=>{ni(D,e.modelValue)||(t(Gt,D),t(qn,D))}),_F(()=>l.value=[]),Ft(()=>!Bi(e.modelValue)&&k()),{ns:a,menuList:l,menus:c,checkedNodes:d,handleKeyDown:E,handleCheckChange:b,getFlattedNodes:S,getCheckedNodes:x,clearCheckedNodes:C,calculateCheckedValue:w,scrollToExpandingNode:I}}});function gge(e,t,n,r,a,i){const o=Pt("el-cascader-menu");return $(),Z("div",{class:W([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...s)=>e.handleKeyDown&&e.handleKeyDown(...s))},[($(!0),Z(dt,null,an(e.menus,(s,l)=>($(),Se(o,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var z0=Ue(pge,[["render",gge],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);z0.install=e=>{e.component(z0.name,z0)};const J8=z0,mge=J8,IA=je({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:xs,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),yge={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},bge=te({name:"ElTag"}),_ge=te({...bge,props:IA,emits:yge,setup(e,{emit:t}){const n=e,r=$r(),a=Fe("tag"),i=R(()=>{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?($(),Z("span",{key:0,class:W(y(i)),style:ft({backgroundColor:l.color}),onClick:s},[ee("span",{class:W(y(a).e("content"))},[Re(l.$slots,"default")],2),l.closable?($(),Se(y(ut),{key:0,class:W(y(a).e("close")),onClick:_t(o,["stop"])},{default:ce(()=>[re(y(Do))]),_:1},8,["class","onClick"])):me("v-if",!0)],6)):($(),Se(xr,{key:1,name:`${y(a).namespace.value}-zoom-in-center`,appear:""},{default:ce(()=>[ee("span",{class:W(y(i)),style:ft({backgroundColor:l.color}),onClick:s},[ee("span",{class:W(y(a).e("content"))},[Re(l.$slots,"default")],2),l.closable?($(),Se(y(ut),{key:0,class:W(y(a).e("close")),onClick:_t(o,["stop"])},{default:ce(()=>[re(y(Do))]),_:1},8,["class","onClick"])):me("v-if",!0)],6)]),_:3},8,["name"]))}});var wge=Ue(_ge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const gg=Ht(wge),Sge=je({...Q8,size:la,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:ye(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:ye(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Xr.teleported,tagType:{...IA.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),Cge={[Gt]:e=>!!e||e===null,[qn]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Rr(e),expandChange:e=>!!e,removeTag:e=>!!e},xge={key:0},Tge=["placeholder","onKeydown"],kge=["onClick"],Mge="ElCascader",Age=te({name:Mge}),Ege=te({...Age,props:Sge,emits:Cge,setup(e,{expose:t,emit:n}){const r=e,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:we})=>{const{modifiersData:ve,placement:$e}=we;["right","left","bottom","top"].includes($e)||(ve.arrow.x=35)},requires:["arrow"]}]},i=xf();let o=0,s=0;const l=Fe("cascader"),u=Fe("input"),{t:c}=pn(),{form:f,formItem:d}=Ga(),h=U(null),v=U(null),p=U(null),g=U(null),m=U(null),b=U(!1),_=U(!1),S=U(!1),x=U(!1),C=U(""),w=U(""),k=U([]),M=U([]),I=U([]),E=U(!1),D=R(()=>i.style),P=R(()=>r.disabled||(f==null?void 0:f.disabled)),N=R(()=>r.placeholder||c("el.cascader.placeholder")),z=R(()=>w.value||k.value.length>0||E.value?"":N.value),F=$r(),B=R(()=>["small"].includes(F.value)?"small":"default"),V=R(()=>!!r.props.multiple),L=R(()=>!r.filterable||V.value),G=R(()=>V.value?w.value:C.value),q=R(()=>{var we;return((we=g.value)==null?void 0:we.checkedNodes)||[]}),Q=R(()=>!r.clearable||P.value||S.value||!_.value?!1:!!q.value.length),ie=R(()=>{const{showAllLevels:we,separator:ve}=r,$e=q.value;return $e.length?V.value?"":$e[0].calcText(we,ve):""}),de=R({get(){return Lb(r.modelValue)},set(we){n(Gt,we),n(qn,we),r.validateEvent&&(d==null||d.validate("change").catch(ve=>void 0))}}),oe=R(()=>[l.b(),l.m(F.value),l.is("disabled",P.value),i.class]),se=R(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",b.value)]),le=R(()=>l.is("focus",b.value||x.value)),ne=R(()=>{var we,ve;return(ve=(we=h.value)==null?void 0:we.popperRef)==null?void 0:ve.contentRef}),Ce=we=>{var ve,$e,ue;P.value||(we=we??!b.value,we!==b.value&&(b.value=we,($e=(ve=v.value)==null?void 0:ve.input)==null||$e.setAttribute("aria-expanded",`${we}`),we?(Te(),ct((ue=g.value)==null?void 0:ue.scrollToExpandingNode)):r.filterable&&nt(),n("visibleChange",we)))},Te=()=>{ct(()=>{var we;(we=h.value)==null||we.updatePopper()})},he=()=>{S.value=!1},X=we=>{const{showAllLevels:ve,separator:$e}=r;return{node:we,key:we.uid,text:we.calcText(ve,$e),hitState:!1,closable:!P.value&&!we.isDisabled,isCollapseTag:!1}},ae=we=>{var ve;const $e=we.node;$e.doCheck(!1),(ve=g.value)==null||ve.calculateCheckedValue(),n("removeTag",$e.valueByOption)},ge=()=>{if(!V.value)return;const we=q.value,ve=[],$e=[];if(we.forEach(ue=>$e.push(X(ue))),M.value=$e,we.length){we.slice(0,r.maxCollapseTags).forEach(Ct=>ve.push(X(Ct)));const ue=we.slice(r.maxCollapseTags),rt=ue.length;rt&&(r.collapseTags?ve.push({key:-1,text:`+ ${rt}`,closable:!1,isCollapseTag:!0}):ue.forEach(Ct=>ve.push(X(Ct))))}k.value=ve},ke=()=>{var we,ve;const{filterMethod:$e,showAllLevels:ue,separator:rt}=r,Ct=(ve=(we=g.value)==null?void 0:we.getFlattedNodes(!r.props.checkStrictly))==null?void 0:ve.filter(jt=>jt.isDisabled?!1:(jt.calcText(ue,rt),$e(jt,G.value)));V.value&&(k.value.forEach(jt=>{jt.hitState=!1}),M.value.forEach(jt=>{jt.hitState=!1})),S.value=!0,I.value=Ct,Te()},Pe=()=>{var we;let ve;S.value&&m.value?ve=m.value.$el.querySelector(`.${l.e("suggestion-item")}`):ve=(we=g.value)==null?void 0:we.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),ve&&(ve.focus(),!S.value&&ve.click())},Me=()=>{var we,ve;const $e=(we=v.value)==null?void 0:we.input,ue=p.value,rt=(ve=m.value)==null?void 0:ve.$el;if(!(!fn||!$e)){if(rt){const Ct=rt.querySelector(`.${l.e("suggestion-list")}`);Ct.style.minWidth=`${$e.offsetWidth}px`}if(ue){const{offsetHeight:Ct}=ue,jt=k.value.length>0?`${Math.max(Ct+6,o)}px`:`${o}px`;$e.style.height=jt,Te()}}},ze=we=>{var ve;return(ve=g.value)==null?void 0:ve.getCheckedNodes(we)},Oe=we=>{Te(),n("expandChange",we)},Le=we=>{var ve;const $e=(ve=we.target)==null?void 0:ve.value;if(we.type==="compositionend")E.value=!1,ct(()=>gt($e));else{const ue=$e[$e.length-1]||"";E.value=!w_(ue)}},Ve=we=>{if(!E.value)switch(we.code){case vt.enter:Ce();break;case vt.down:Ce(!0),ct(Pe),we.preventDefault();break;case vt.esc:b.value===!0&&(we.preventDefault(),we.stopPropagation(),Ce(!1));break;case vt.tab:Ce(!1);break}},qe=()=>{var we;(we=g.value)==null||we.clearCheckedNodes(),!b.value&&r.filterable&&nt(),Ce(!1)},nt=()=>{const{value:we}=ie;C.value=we,w.value=we},ot=we=>{var ve,$e;const{checked:ue}=we;V.value?(ve=g.value)==null||ve.handleCheckChange(we,!ue,!1):(!ue&&(($e=g.value)==null||$e.handleCheckChange(we,!0,!1)),Ce(!1))},_e=we=>{const ve=we.target,{code:$e}=we;switch($e){case vt.up:case vt.down:{const ue=$e===vt.up?-1:1;L0(uz(ve,ue,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case vt.enter:ve.click();break}},Je=()=>{const we=k.value,ve=we[we.length-1];s=w.value?0:s+1,!(!ve||!s||r.collapseTags&&we.length>1)&&(ve.hitState?ae(ve):ve.hitState=!0)},St=we=>{const ve=we.target,$e=l.e("search-input");ve.className===$e&&(x.value=!0),n("focus",we)},Rt=we=>{x.value=!1,n("blur",we)},Kt=Va(()=>{const{value:we}=G;if(!we)return;const ve=r.beforeFilter(we);Yp(ve)?ve.then(ke).catch(()=>{}):ve!==!1?ke():he()},r.debounce),gt=(we,ve)=>{!b.value&&Ce(!0),!(ve!=null&&ve.isComposing)&&(we?Kt():he())},Ie=we=>Number.parseFloat(gee(u.cssVarName("input-height"),we).value)-2;return Be(S,Te),Be([q,P],ge),Be(k,()=>{ct(()=>Me())}),Be(F,async()=>{await ct();const we=v.value.input;o=Ie(we)||o,Me()}),Be(ie,nt,{immediate:!0}),Ft(()=>{const we=v.value.input,ve=Ie(we);o=we.offsetHeight||ve,wa(we,Me)}),t({getCheckedNodes:ze,cascaderPanelRef:g,togglePopperVisible:Ce,contentRef:ne}),(we,ve)=>($(),Se(y(Fa),{ref_key:"tooltipRef",ref:h,visible:b.value,teleported:we.teleported,"popper-class":[y(l).e("dropdown"),we.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:he},{default:ce(()=>[Ot(($(),Z("div",{class:W(y(oe)),style:ft(y(D)),onClick:ve[5]||(ve[5]=()=>Ce(y(L)?void 0:!0)),onKeydown:Ve,onMouseenter:ve[6]||(ve[6]=$e=>_.value=!0),onMouseleave:ve[7]||(ve[7]=$e=>_.value=!1)},[re(y(ba),{ref_key:"input",ref:v,modelValue:C.value,"onUpdate:modelValue":ve[1]||(ve[1]=$e=>C.value=$e),placeholder:y(z),readonly:y(L),disabled:y(P),"validate-event":!1,size:y(F),class:W(y(le)),tabindex:y(V)&&we.filterable&&!y(P)?-1:void 0,onCompositionstart:Le,onCompositionupdate:Le,onCompositionend:Le,onFocus:St,onBlur:Rt,onInput:gt},{suffix:ce(()=>[y(Q)?($(),Se(y(ut),{key:"clear",class:W([y(u).e("icon"),"icon-circle-close"]),onClick:_t(qe,["stop"])},{default:ce(()=>[re(y(Eu))]),_:1},8,["class","onClick"])):($(),Se(y(ut),{key:"arrow-down",class:W(y(se)),onClick:ve[0]||(ve[0]=_t($e=>Ce(),["stop"]))},{default:ce(()=>[re(y(Au))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),y(V)?($(),Z("div",{key:0,ref_key:"tagWrapper",ref:p,class:W(y(l).e("tags"))},[($(!0),Z(dt,null,an(k.value,$e=>($(),Se(y(gg),{key:$e.key,type:we.tagType,size:y(B),hit:$e.hitState,closable:$e.closable,"disable-transitions":"",onClose:ue=>ae($e)},{default:ce(()=>[$e.isCollapseTag===!1?($(),Z("span",xge,Ke($e.text),1)):($(),Se(y(Fa),{key:1,disabled:b.value||!we.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:ce(()=>[ee("span",null,Ke($e.text),1)]),content:ce(()=>[ee("div",{class:W(y(l).e("collapse-tags"))},[($(!0),Z(dt,null,an(M.value.slice(we.maxCollapseTags),(ue,rt)=>($(),Z("div",{key:rt,class:W(y(l).e("collapse-tag"))},[($(),Se(y(gg),{key:ue.key,class:"in-tooltip",type:we.tagType,size:y(B),hit:ue.hitState,closable:ue.closable,"disable-transitions":"",onClose:Ct=>ae(ue)},{default:ce(()=>[ee("span",null,Ke(ue.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),we.filterable&&!y(P)?Ot(($(),Z("input",{key:0,"onUpdate:modelValue":ve[2]||(ve[2]=$e=>w.value=$e),type:"text",class:W(y(l).e("search-input")),placeholder:y(ie)?"":y(N),onInput:ve[3]||(ve[3]=$e=>gt(w.value,$e)),onClick:ve[4]||(ve[4]=_t($e=>Ce(!0),["stop"])),onKeydown:vn(Je,["delete"]),onCompositionstart:Le,onCompositionupdate:Le,onCompositionend:Le,onFocus:St,onBlur:Rt},null,42,Tge)),[[DM,w.value]]):me("v-if",!0)],2)):me("v-if",!0)],38)),[[y(mu),()=>Ce(!1),y(ne)]])]),content:ce(()=>[Ot(re(y(J8),{ref_key:"cascaderPanelRef",ref:g,modelValue:y(de),"onUpdate:modelValue":ve[8]||(ve[8]=$e=>Hn(de)?de.value=$e:null),options:we.options,props:r.props,border:!1,"render-label":we.$slots.default,onExpandChange:Oe,onClose:ve[9]||(ve[9]=$e=>we.$nextTick(()=>Ce(!1)))},null,8,["modelValue","options","props","render-label"]),[[bn,!S.value]]),we.filterable?Ot(($(),Se(y(hl),{key:0,ref_key:"suggestionPanel",ref:m,tag:"ul",class:W(y(l).e("suggestion-panel")),"view-class":y(l).e("suggestion-list"),onKeydown:_e},{default:ce(()=>[I.value.length?($(!0),Z(dt,{key:0},an(I.value,$e=>($(),Z("li",{key:$e.uid,class:W([y(l).e("suggestion-item"),y(l).is("checked",$e.checked)]),tabindex:-1,onClick:ue=>ot($e)},[ee("span",null,Ke($e.text),1),$e.checked?($(),Se(y(ut),{key:0},{default:ce(()=>[re(y(vm))]),_:1})):me("v-if",!0)],10,kge))),128)):Re(we.$slots,"empty",{key:1},()=>[ee("li",{class:W(y(l).e("empty-text"))},Ke(y(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[bn,S.value]]):me("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var H0=Ue(Ege,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);H0.install=e=>{e.component(H0.name,H0)};const Ige=H0,Dge=Ige,Pge=je({checked:{type:Boolean,default:!1}}),Lge={"update:checked":e=>Rr(e),[qn]:e=>Rr(e)},Rge=te({name:"ElCheckTag"}),Oge=te({...Rge,props:Pge,emits:Lge,setup(e,{emit:t}){const n=e,r=Fe("check-tag"),a=R(()=>[r.b(),r.is("checked",n.checked)]),i=()=>{const o=!n.checked;t(qn,o),t("update:checked",o)};return(o,s)=>($(),Z("span",{class:W(y(a)),onClick:i},[Re(o.$slots,"default")],2))}});var Nge=Ue(Oge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const $ge=Ht(Nge),eH=Symbol("rowContextKey"),Bge=["start","center","end","space-around","space-between","space-evenly"],Vge=["top","middle","bottom"],Fge=je({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Bge,default:"start"},align:{type:String,values:Vge}}),zge=te({name:"ElRow"}),Hge=te({...zge,props:Fge,setup(e){const t=e,n=Fe("row"),r=R(()=>t.gutter);Jt(eH,{gutter:r});const a=R(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),i=R(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(o,s)=>($(),Se(qt(o.tag),{class:W(y(i)),style:ft(y(a))},{default:ce(()=>[Re(o.$slots,"default")]),_:3},8,["class","style"]))}});var Wge=Ue(Hge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Gge=Ht(Wge),Kge=je({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:ye([Number,Object]),default:()=>nr({})},sm:{type:ye([Number,Object]),default:()=>nr({})},md:{type:ye([Number,Object]),default:()=>nr({})},lg:{type:ye([Number,Object]),default:()=>nr({})},xl:{type:ye([Number,Object]),default:()=>nr({})}}),Uge=te({name:"ElCol"}),jge=te({...Uge,props:Kge,setup(e){const t=e,{gutter:n}=lt(eH,{gutter:R(()=>0)}),r=Fe("col"),a=R(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),i=R(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];Tt(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=>{Tt(t[u])?o.push(r.b(`${u}-${t[u]}`)):Qt(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)=>($(),Se(qt(o.tag),{class:W(y(i)),style:ft(y(a))},{default:ce(()=>[Re(o.$slots,"default")]),_:3},8,["class","style"]))}});var Yge=Ue(jge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const qge=Ht(Yge),eO=e=>typeof Tt(e),Xge=je({accordion:Boolean,modelValue:{type:ye([Array,String,Number]),default:()=>nr([])}}),Zge={[Gt]:eO,[qn]:eO},tH=Symbol("collapseContextKey"),Qge=(e,t)=>{const n=U(hf(e.modelValue)),r=i=>{n.value=i;const o=e.accordion?n.value[0]:n.value;t(Gt,o),t(qn,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 Be(()=>e.modelValue,()=>n.value=hf(e.modelValue),{deep:!0}),Jt(tH,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},Jge=()=>{const e=Fe("collapse");return{rootKls:R(()=>e.b())}},eme=te({name:"ElCollapse"}),tme=te({...eme,props:Xge,emits:Zge,setup(e,{expose:t,emit:n}){const r=e,{activeNames:a,setActiveNames:i}=Qge(r,n),{rootKls:o}=Jge();return t({activeNames:a,setActiveNames:i}),(s,l)=>($(),Z("div",{class:W(y(o))},[Re(s.$slots,"default")],2))}});var nme=Ue(tme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const rme=te({name:"ElCollapseTransition"}),ame=te({...rme,setup(e){const t=Fe("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)=>($(),Se(xr,Yt({name:y(t).b()},_Z(r)),{default:ce(()=>[Re(a.$slots,"default")]),_:3},16,["name"]))}});var W0=Ue(ame,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);W0.install=e=>{e.component(W0.name,W0)};const P_=W0,ime=P_,ome=je({title:{type:String,default:""},name:{type:ye([String,Number]),default:()=>C_()},disabled:Boolean}),sme=e=>{const t=lt(tH),n=U(!1),r=U(!1),a=U(C_()),i=R(()=>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)}}},lme=(e,{focusing:t,isActive:n,id:r})=>{const a=Fe("collapse"),i=R(()=>[a.b("item"),a.is("active",y(n)),a.is("disabled",e.disabled)]),o=R(()=>[a.be("item","header"),a.is("active",y(n)),{focusing:y(t)&&!e.disabled}]),s=R(()=>[a.be("item","arrow"),a.is("active",y(n))]),l=R(()=>a.be("item","wrap")),u=R(()=>a.be("item","content")),c=R(()=>a.b(`content-${y(r)}`)),f=R(()=>a.b(`head-${y(r)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},ume=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],cme=["id","aria-hidden","aria-labelledby"],fme=te({name:"ElCollapseItem"}),dme=te({...fme,props:ome,setup(e,{expose:t}){const n=e,{focusing:r,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=sme(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:d,itemContentKls:h,scopedContentId:v,scopedHeadId:p}=lme(n,{focusing:r,isActive:i,id:a});return t({isActive:i}),(g,m)=>($(),Z("div",{class:W(y(f))},[ee("button",{id:y(p),class:W(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]=vn(_t((...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)},[Re(g.$slots,"title",{},()=>[_n(Ke(g.title),1)]),re(y(ut),{class:W(y(u))},{default:ce(()=>[re(y(Ra))]),_:1},8,["class"])],42,ume),re(y(P_),null,{default:ce(()=>[Ot(ee("div",{id:y(v),role:"region",class:W(y(d)),"aria-hidden":!y(i),"aria-labelledby":y(p)},[ee("div",{class:W(y(h))},[Re(g.$slots,"default")],2)],10,cme),[[bn,y(i)]])]),_:3})],2))}});var nH=Ue(dme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const hme=Ht(nme,{CollapseItem:nH}),vme=fr(nH),pme=je({color:{type:ye(Object),required:!0},vertical:{type:Boolean,default:!1}});let yS=!1;function mg(e,t){if(!fn)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,yS=!1,(o=t.end)==null||o.call(t,i)},a=function(i){var o;yS||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),yS=!0,(o=t.start)==null||o.call(t,i))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a)}const gme=e=>{const t=Bt(),n=zn(),r=zn();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}=$M(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=Bt(),i=Fe("color-alpha-slider"),o=U(0),s=U(0),l=U();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:S}=e.color.toRgb();return`linear-gradient(to right, rgba(${b}, ${_}, ${S}, 0) 0%, rgba(${b}, ${_}, ${S}, 1) 100%)`}return""}function d(){o.value=u(),s.value=c(),l.value=f()}Ft(()=>{if(!t.value||!n.value)return;const b={drag:_=>{r(_)},end:_=>{r(_)}};mg(t.value,b),mg(n.value,b),d()}),Be(()=>e.color.get("alpha"),()=>d()),Be(()=>e.color.value,()=>d());const h=R(()=>[i.b(),i.is("vertical",e.vertical)]),v=R(()=>i.e("bar")),p=R(()=>i.e("thumb")),g=R(()=>({background:l.value})),m=R(()=>({left:gr(o.value),top:gr(s.value)}));return{rootKls:h,barKls:v,barStyle:g,thumbKls:p,thumbStyle:m,update:d}},yme="ElColorAlphaSlider",bme=te({name:yme}),_me=te({...bme,props:pme,setup(e,{expose:t}){const n=e,{bar:r,thumb:a,handleDrag:i,handleClick:o}=gme(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)=>($(),Z("div",{class:W(y(s))},[ee("div",{ref_key:"bar",ref:r,class:W(y(l)),style:ft(y(u)),onClick:v[0]||(v[0]=(...p)=>y(o)&&y(o)(...p))},null,6),ee("div",{ref_key:"thumb",ref:a,class:W(y(c)),style:ft(y(f))},null,6)],2))}});var wme=Ue(_me,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const Sme=te({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Fe("color-hue-slider"),n=Bt(),r=U(),a=U(),i=U(0),o=U(0),s=R(()=>e.color.get("hue"));Be(()=>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}=$M(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 Ft(()=>{if(!a.value||!r.value)return;const h={drag:v=>{u(v)},end:v=>{u(v)}};mg(a.value,h),mg(r.value,h),d()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:t}}});function Cme(e,t,n,r,a,i){return $(),Z("div",{class:W([e.ns.b(),e.ns.is("vertical",e.vertical)])},[ee("div",{ref:"bar",class:W(e.ns.e("bar")),onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},null,2),ee("div",{ref:"thumb",class:W(e.ns.e("thumb")),style:ft({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var xme=Ue(Sme,[["render",Cme],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const Tme=je({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:la,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:ye(Array)},validateEvent:{type:Boolean,default:!0}}),kme={[Gt]:e=>At(e)||Lr(e),[qn]:e=>At(e)||Lr(e),activeChange:e=>At(e)||Lr(e)},rH=Symbol("colorPickerContextKey"),tO=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Mme=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},Ame=function(e){return typeof e=="string"&&e.includes("%")},zd=function(e,t){Mme(e)&&(e="100%");const n=Ame(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)},nO={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},G0=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${nO[t]||t}${nO[n]||n}`},rO=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${G0(e)}${G0(t)}${G0(n)}`},bS={A:10,B:11,C:12,D:13,E:14,F:15},ju=function(e){return e.length===2?(bS[e[0].toUpperCase()]||+e[0])*16+(bS[e[1].toUpperCase()]||+e[1]):bS[e[1].toUpperCase()]||+e[1]},Eme=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}},aO=(e,t,n)=>{e=zd(e,255),t=zd(t,255),n=zd(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}},_v=function(e,t,n){e=zd(e,360)*6,t=zd(t,100),n=zd(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 Mp{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)ln(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)ln(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 _v(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}=Eme(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}=aO(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=ju(r[0]+r[0]),i=ju(r[1]+r[1]),o=ju(r[2]+r[2])):(r.length===6||r.length===8)&&(a=ju(r.slice(0,2)),i=ju(r.slice(2,4)),o=ju(r.slice(4,6))),r.length===8?this._alpha=ju(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=aO(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=tO(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=`${rO(_v(t,n,r))}${G0(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=_v(t,n,r);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=tO(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}=_v(t,n,r);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=rO(_v(t,n,r))}}}const Ime=te({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Fe("color-predefine"),{currentColor:n}=lt(rH),r=U(i(e.colors,e.color));Be(()=>n.value,o=>{const s=new Mp;s.fromString(o),r.value.forEach(l=>{l.selected=s.compare(l)})}),yi(()=>{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 Mp;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:a,ns:t}}}),Dme=["onClick"];function Pme(e,t,n,r,a,i){return $(),Z("div",{class:W(e.ns.b())},[ee("div",{class:W(e.ns.e("colors"))},[($(!0),Z(dt,null,an(e.rgbaColors,(o,s)=>($(),Z("div",{key:e.colors[s],class:W([e.ns.e("color-selector"),e.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>e.handleSelect(s)},[ee("div",{style:ft({backgroundColor:o.value})},null,4)],10,Dme))),128))],2)],2)}var Lme=Ue(Ime,[["render",Pme],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Rme=te({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Fe("color-svpanel"),n=Bt(),r=U(0),a=U(0),i=U("hsl(0, 100%, 50%)"),o=R(()=>{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}=$M(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 Be(()=>o.value,()=>{s()}),Ft(()=>{mg(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}}}),Ome=ee("div",null,null,-1),Nme=[Ome];function $me(e,t,n,r,a,i){return $(),Z("div",{class:W(e.ns.b()),style:ft({backgroundColor:e.background})},[ee("div",{class:W(e.ns.e("white"))},null,2),ee("div",{class:W(e.ns.e("black"))},null,2),ee("div",{class:W(e.ns.e("cursor")),style:ft({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Nme,6)],6)}var Bme=Ue(Rme,[["render",$me],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const Vme=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],Fme=te({name:"ElColorPicker"}),zme=te({...Fme,props:Tme,emits:kme,setup(e,{expose:t,emit:n}){const r=e,{t:a}=pn(),i=Fe("color"),{formItem:o}=Ga(),s=$r(),l=li(),{inputId:u,isLabeledByFormItem:c}=Lu(r,{formItemContext:o}),f=U(),d=U(),h=U(),v=U();let p=!0;const g=Sn(new Mp({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),m=U(!1),b=U(!1),_=U(""),S=R(()=>!r.modelValue&&!b.value?"transparent":M(g,r.showAlpha)),x=R(()=>!r.modelValue&&!b.value?"":g.value),C=R(()=>c.value?void 0:r.label||a("el.colorpicker.defaultLabel")),w=R(()=>c.value?o==null?void 0:o.labelId:void 0),k=R(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value)]);function M(L,G){if(!(L instanceof Mp))throw new TypeError("color should be instance of _color Class");const{r:q,g:Q,b:ie}=L.toRgb();return G?`rgba(${q}, ${Q}, ${ie}, ${L.get("alpha")/100})`:`rgb(${q}, ${Q}, ${ie})`}function I(L){m.value=L}const E=Va(I,100);function D(){l.value||I(!0)}function P(){E(!1),N()}function N(){ct(()=>{r.modelValue?g.fromString(r.modelValue):(g.value="",ct(()=>{b.value=!1}))})}function z(){l.value||E(!m.value)}function F(){g.fromString(_.value)}function B(){const L=g.value;n(Gt,L),n("change",L),r.validateEvent&&(o==null||o.validate("change").catch(G=>void 0)),E(!1),ct(()=>{const G=new Mp({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});g.compare(G)||N()})}function V(){E(!1),n(Gt,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(o==null||o.validate("change").catch(L=>void 0)),N()}return Ft(()=>{r.modelValue&&(_.value=x.value)}),Be(()=>r.modelValue,L=>{L?L&&L!==g.value&&(p=!1,g.fromString(L)):b.value=!1}),Be(()=>x.value,L=>{_.value=L,p&&n("activeChange",L),p=!0}),Be(()=>g.value,()=>{!r.modelValue&&!b.value&&(b.value=!0)}),Be(()=>m.value,()=>{ct(()=>{var L,G,q;(L=f.value)==null||L.update(),(G=d.value)==null||G.update(),(q=h.value)==null||q.update()})}),Jt(rH,{currentColor:x}),t({color:g,show:D,hide:P}),(L,G)=>($(),Se(y(Fa),{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"),L.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${y(i).namespace.value}-zoom-in-top`,persistent:""},{content:ce(()=>[Ot(($(),Z("div",null,[ee("div",{class:W(y(i).be("dropdown","main-wrapper"))},[re(xme,{ref_key:"hue",ref:f,class:"hue-slider",color:y(g),vertical:""},null,8,["color"]),re(Bme,{ref_key:"sv",ref:d,color:y(g)},null,8,["color"])],2),L.showAlpha?($(),Se(wme,{key:0,ref_key:"alpha",ref:h,color:y(g)},null,8,["color"])):me("v-if",!0),L.predefine?($(),Se(Lme,{key:1,ref:"predefine",color:y(g),colors:L.predefine},null,8,["color","colors"])):me("v-if",!0),ee("div",{class:W(y(i).be("dropdown","btns"))},[ee("span",{class:W(y(i).be("dropdown","value"))},[re(y(ba),{modelValue:_.value,"onUpdate:modelValue":G[0]||(G[0]=q=>_.value=q),"validate-event":!1,size:"small",onKeyup:vn(F,["enter"]),onBlur:F},null,8,["modelValue","onKeyup"])],2),re(y(oa),{class:W(y(i).be("dropdown","link-btn")),text:"",size:"small",onClick:V},{default:ce(()=>[_n(Ke(y(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),re(y(oa),{plain:"",size:"small",class:W(y(i).be("dropdown","btn")),onClick:B},{default:ce(()=>[_n(Ke(y(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[y(mu),P]])]),default:ce(()=>[ee("div",{id:y(u),class:W(y(k)),role:"button","aria-label":y(C),"aria-labelledby":y(w),"aria-description":y(a)("el.colorpicker.description",{color:L.modelValue||""}),tabindex:L.tabindex,onKeydown:vn(z,["enter"])},[y(l)?($(),Z("div",{key:0,class:W(y(i).be("picker","mask"))},null,2)):me("v-if",!0),ee("div",{class:W(y(i).be("picker","trigger")),onClick:z},[ee("span",{class:W([y(i).be("picker","color"),y(i).is("alpha",L.showAlpha)])},[ee("span",{class:W(y(i).be("picker","color-inner")),style:ft({backgroundColor:y(S)})},[Ot(re(y(ut),{class:W([y(i).be("picker","icon"),y(i).is("icon-arrow-down")])},{default:ce(()=>[re(y(Au))]),_:1},8,["class"]),[[bn,L.modelValue||b.value]]),Ot(re(y(ut),{class:W([y(i).be("picker","empty"),y(i).is("icon-close")])},{default:ce(()=>[re(y(Do))]),_:1},8,["class"]),[[bn,!L.modelValue&&!b.value]])],6)],2)],2)],42,Vme)]),_:1},8,["visible","popper-class","transition"]))}});var Hme=Ue(zme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const Wme=Ht(Hme),Gme=te({name:"ElContainer"}),Kme=te({...Gme,props:{direction:{type:String}},setup(e){const t=e,n=da(),r=Fe("container"),a=R(()=>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)=>($(),Z("section",{class:W([y(r).b(),y(r).is("vertical",y(a))])},[Re(i.$slots,"default")],2))}});var Ume=Ue(Kme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const jme=te({name:"ElAside"}),Yme=te({...jme,props:{width:{type:String,default:null}},setup(e){const t=e,n=Fe("aside"),r=R(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,i)=>($(),Z("aside",{class:W(y(n).b()),style:ft(y(r))},[Re(a.$slots,"default")],6))}});var aH=Ue(Yme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const qme=te({name:"ElFooter"}),Xme=te({...qme,props:{height:{type:String,default:null}},setup(e){const t=e,n=Fe("footer"),r=R(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>($(),Z("footer",{class:W(y(n).b()),style:ft(y(r))},[Re(a.$slots,"default")],6))}});var iH=Ue(Xme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const Zme=te({name:"ElHeader"}),Qme=te({...Zme,props:{height:{type:String,default:null}},setup(e){const t=e,n=Fe("header"),r=R(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>($(),Z("header",{class:W(y(n).b()),style:ft(y(r))},[Re(a.$slots,"default")],6))}});var oH=Ue(Qme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const Jme=te({name:"ElMain"}),eye=te({...Jme,setup(e){const t=Fe("main");return(n,r)=>($(),Z("main",{class:W(y(t).b())},[Re(n.$slots,"default")],2))}});var sH=Ue(eye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const tye=Ht(Ume,{Aside:aH,Footer:iH,Header:oH,Main:sH}),nye=fr(aH),rye=fr(iH),aye=fr(oH),iye=fr(sH);var lH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ts,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)}}})})(lH);var oye=lH.exports;const sye=Fo(oye);var uH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ts,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)}}})})(uH);var lye=uH.exports;const uye=Fo(lye);var cH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ts,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}}})})(cH);var cye=cH.exports;const fye=Fo(cye);var fH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ts,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")}}})})(fH);var dye=fH.exports;const hye=Fo(dye);var dH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ts,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(dH);var vye=dH.exports;const pye=Fo(vye);var hH={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ts,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(hH);var gye=hH.exports;const mye=Fo(gye),DA=Symbol(),yye=je({...AA,type:{type:ye(String),default:"date"}}),bye=["date","dates","year","month","week","range"],PA=je({disabledDate:{type:ye(Function)},date:{type:ye(Object),required:!0},minDate:{type:ye(Object)},maxDate:{type:ye(Object)},parsedValue:{type:ye([Object,Array])},rangeState:{type:ye(Object),default:()=>({endDate:null,selecting:!1})}}),vH=je({type:{type:ye(String),required:!0,values:ile}}),pH=je({unlinkPanels:Boolean,parsedValue:{type:ye(Array)}}),gH=e=>({type:String,values:bye,default:e}),_ye=je({...vH,parsedValue:{type:ye([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),wye=je({...PA,cellClassName:{type:ye(Function)},showWeekNumber:Boolean,selectionMode:gH("date")}),Sye=["changerange","pick","select"],U2=e=>{if(!st(e))return!1;const[t,n]=e;return Vt.isDayjs(t)&&Vt.isDayjs(n)&&t.isSameOrBefore(n)},mH=(e,{lang:t,unit:n,unlinkPanels:r})=>{let a;if(st(e)){let[i,o]=e.map(s=>Vt(s).locale(t));return r||(o=i.add(1,n)),[i,o]}else e?a=Vt(e):a=Vt();return a=a.locale(t),[a,a.add(1,n)]},Cye=(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)}},j2=(e="")=>["normal","today"].includes(e),xye=(e,t)=>{const{lang:n}=pn(),r=U(),a=U(),i=U(),o=U(),s=U([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(L=>L.toLowerCase()),f=R(()=>u>3?7-u:-u),d=R(()=>{const L=e.date.startOf("month");return L.subtract(L.day()||7,"day")}),h=R(()=>c.concat(c).slice(u,u+7)),v=R(()=>Az(y(S)).some(L=>L.isCurrent)),p=R(()=>{const L=e.date.startOf("month"),G=L.day()||7,q=L.daysInMonth(),Q=L.subtract(1,"month").daysInMonth();return{startOfMonthDay:G,dateCountOfMonth:q,dateCountOfLastMonth:Q}}),g=R(()=>e.selectionMode==="dates"?Ys(e.parsedValue):[]),m=(L,{count:G,rowIndex:q,columnIndex:Q})=>{const{startOfMonthDay:ie,dateCountOfMonth:de,dateCountOfLastMonth:oe}=y(p),se=y(f);if(q>=0&&q<=1){const le=ie+se<0?7+ie+se:ie+se;if(Q+q*7>=le)return L.text=G,!0;L.text=oe-(le-Q%7)+1+q*7,L.type="prev-month"}else return G<=de?L.text=G:(L.text=G-de,L.type="next-month"),!0;return!1},b=(L,{columnIndex:G,rowIndex:q},Q)=>{const{disabledDate:ie,cellClassName:de}=e,oe=y(g),se=m(L,{count:Q,rowIndex:q,columnIndex:G}),le=L.dayjs.toDate();return L.selected=oe.find(ne=>ne.valueOf()===L.dayjs.valueOf()),L.isSelected=!!L.selected,L.isCurrent=C(L),L.disabled=ie==null?void 0:ie(le),L.customClass=de==null?void 0:de(le),se},_=L=>{if(e.selectionMode==="week"){const[G,q]=e.showWeekNumber?[1,7]:[0,6],Q=V(L[G+1]);L[G].inRange=Q,L[G].start=Q,L[q].inRange=Q,L[q].end=Q}},S=R(()=>{const{minDate:L,maxDate:G,rangeState:q,showWeekNumber:Q}=e,ie=y(f),de=y(s),oe="day";let se=1;if(Q)for(let le=0;le<6;le++)de[le][0]||(de[le][0]={type:"week",text:y(d).add(le*7+1,oe).week()});return Cye({row:6,column:7},de,{startDate:L,columnIndexOffset:Q?1:0,nextEndDate:q.endDate||G||q.selecting&&L||null,now:Vt().locale(y(n)).startOf(oe),unit:oe,relativeDateGetter:le=>y(d).add(le-ie,oe),setCellMetadata:(...le)=>{b(...le,se)&&(se+=1)},setRowMetadata:_}),de});Be(()=>e.date,async()=>{var L;(L=y(r))!=null&&L.contains(document.activeElement)&&(await ct(),await x())});const x=async()=>{var L;return(L=y(a))==null?void 0:L.focus()},C=L=>e.selectionMode==="date"&&j2(L.type)&&w(L,e.parsedValue),w=(L,G)=>G?Vt(G).locale(y(n)).isSame(e.date.date(Number(L.text)),"day"):!1,k=(L,G)=>{const q=L*7+(G-(e.showWeekNumber?1:0))-y(f);return y(d).add(q,"day")},M=L=>{var G;if(!e.rangeState.selecting)return;let q=L.target;if(q.tagName==="SPAN"&&(q=(G=q.parentNode)==null?void 0:G.parentNode),q.tagName==="DIV"&&(q=q.parentNode),q.tagName!=="TD")return;const Q=q.parentNode.rowIndex-1,ie=q.cellIndex;y(S)[Q][ie].disabled||(Q!==y(i)||ie!==y(o))&&(i.value=Q,o.value=ie,t("changerange",{selecting:!0,endDate:k(Q,ie)}))},I=L=>!y(v)&&(L==null?void 0:L.text)===1&&L.type==="normal"||L.isCurrent,E=L=>{l||y(v)||e.selectionMode!=="date"||B(L,!0)},D=L=>{L.target.closest("td")&&(l=!0)},P=L=>{L.target.closest("td")&&(l=!1)},N=L=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:L,maxDate:null}),t("select",!0)):(L>=e.minDate?t("pick",{minDate:e.minDate,maxDate:L}):t("pick",{minDate:L,maxDate:e.minDate}),t("select",!1))},z=L=>{const G=L.week(),q=`${L.year()}w${G}`;t("pick",{year:L.year(),week:G,value:q,date:L.startOf("week")})},F=(L,G)=>{const q=G?Ys(e.parsedValue).filter(Q=>(Q==null?void 0:Q.valueOf())!==L.valueOf()):Ys(e.parsedValue).concat([L]);t("pick",q)},B=(L,G=!1)=>{const q=L.target.closest("td");if(!q)return;const Q=q.parentNode.rowIndex-1,ie=q.cellIndex,de=y(S)[Q][ie];if(de.disabled||de.type==="week")return;const oe=k(Q,ie);switch(e.selectionMode){case"range":{N(oe);break}case"date":{t("pick",oe,G);break}case"week":{z(oe);break}case"dates":{F(oe,!!de.selected);break}}},V=L=>{if(e.selectionMode!=="week")return!1;let G=e.date.startOf("day");if(L.type==="prev-month"&&(G=G.subtract(1,"month")),L.type==="next-month"&&(G=G.add(1,"month")),G=G.date(Number.parseInt(L.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const q=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(q,"day").isSame(G,"day")}return!1};return{WEEKS:h,rows:S,tbodyRef:r,currentCellRef:a,focus:x,isCurrent:C,isWeekActive:V,isSelectedCell:I,handlePickDate:B,handleMouseUp:P,handleMouseDown:D,handleMouseMove:M,handleFocus:E}},Tye=(e,{isCurrent:t,isWeekActive:n})=>{const r=Fe("date-table"),{t:a}=pn(),i=R(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"}]),o=R(()=>a("el.datepicker.dateTablePrompt")),s=R(()=>a("el.datepicker.week"));return{tableKls:i,tableLabel:o,weekLabel:s,getCellClasses:c=>{const f=[];return j2(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),t(c)&&f.push("current"),c.inRange&&(j2(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}},kye=je({cell:{type:ye(Object)}});var Mye=te({name:"ElDatePickerCell",props:kye,setup(e){const t=Fe("date-table-cell"),{slots:n}=lt(DA);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 re("div",{class:t.b()},[re("span",{class:t.e("text")},[r==null?void 0:r.text])])}}});const Aye=["aria-label"],Eye={key:0,scope:"col"},Iye=["aria-label"],Dye=["aria-current","aria-selected","tabindex"],Pye=te({__name:"basic-date-table",props:wye,emits:Sye,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}=xye(r,n),{tableLabel:m,tableKls:b,weekLabel:_,getCellClasses:S,getRowKls:x,t:C}=Tye(r,{isCurrent:u,isWeekActive:c});return t({focus:l}),(w,k)=>($(),Z("table",{"aria-label":y(m),class:W(y(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:k[1]||(k[1]=(...M)=>y(d)&&y(d)(...M)),onMousemove:k[2]||(k[2]=(...M)=>y(p)&&y(p)(...M)),onMousedown:k[3]||(k[3]=_t((...M)=>y(v)&&y(v)(...M),["prevent"])),onMouseup:k[4]||(k[4]=(...M)=>y(h)&&y(h)(...M))},[ee("tbody",{ref_key:"tbodyRef",ref:o},[ee("tr",null,[w.showWeekNumber?($(),Z("th",Eye,Ke(y(_)),1)):me("v-if",!0),($(!0),Z(dt,null,an(y(a),(M,I)=>($(),Z("th",{key:I,"aria-label":y(C)("el.datepicker.weeksFull."+M),scope:"col"},Ke(y(C)("el.datepicker.weeks."+M)),9,Iye))),128))]),($(!0),Z(dt,null,an(y(i),(M,I)=>($(),Z("tr",{key:I,class:W(y(x)(M[1]))},[($(!0),Z(dt,null,an(M,(E,D)=>($(),Z("td",{key:`${I}.${D}`,ref_for:!0,ref:P=>y(f)(E)&&(s.value=P),class:W(y(S)(E)),"aria-current":E.isCurrent?"date":void 0,"aria-selected":E.isCurrent,tabindex:y(f)(E)?0:-1,onFocus:k[0]||(k[0]=(...P)=>y(g)&&y(g)(...P))},[re(y(Mye),{cell:E},null,8,["cell"])],42,Dye))),128))],2))),128))],512)],42,Aye))}});var Y2=Ue(Pye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const Lye=je({...PA,selectionMode:gH("month")}),Rye=["aria-label"],Oye=["aria-selected","aria-label","tabindex","onKeydown"],Nye={class:"cell"},$ye=te({__name:"basic-month-table",props:Lye,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=(S,x,C)=>{const w=Vt().locale(C).startOf("month").month(x).year(S),k=w.daysInMonth();return ru(k).map(M=>w.add(M,"day").toDate())},i=Fe("month-table"),{t:o,lang:s}=pn(),l=U(),u=U(),c=U(r.date.locale("en").localeData().monthsShort().map(S=>S.toLowerCase())),f=U([[],[],[]]),d=U(),h=U(),v=R(()=>{var S,x;const C=f.value,w=Vt().locale(s.value).startOf("month");for(let k=0;k<3;k++){const M=C[k];for(let I=0;I<4;I++){const E=M[I]||(M[I]={row:k,column:I,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});E.type="normal";const D=k*4+I,P=r.date.startOf("year").month(D),N=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;E.inRange=!!(r.minDate&&P.isSameOrAfter(r.minDate,"month")&&N&&P.isSameOrBefore(N,"month"))||!!(r.minDate&&P.isSameOrBefore(r.minDate,"month")&&N&&P.isSameOrAfter(N,"month")),(S=r.minDate)!=null&&S.isSameOrAfter(N)?(E.start=!!(N&&P.isSame(N,"month")),E.end=r.minDate&&P.isSame(r.minDate,"month")):(E.start=!!(r.minDate&&P.isSame(r.minDate,"month")),E.end=!!(N&&P.isSame(N,"month"))),w.isSame(P)&&(E.type="today"),E.text=D,E.disabled=((x=r.disabledDate)==null?void 0:x.call(r,P.toDate()))||!1}}return C}),p=()=>{var S;(S=u.value)==null||S.focus()},g=S=>{const x={},C=r.date.year(),w=new Date,k=S.text;return x.disabled=r.disabledDate?a(C,k,s.value).every(r.disabledDate):!1,x.current=Ys(r.parsedValue).findIndex(M=>Vt.isDayjs(M)&&M.year()===C&&M.month()===k)>=0,x.today=w.getFullYear()===C&&w.getMonth()===k,S.inRange&&(x["in-range"]=!0,S.start&&(x["start-date"]=!0),S.end&&(x["end-date"]=!0)),x},m=S=>{const x=r.date.year(),C=S.text;return Ys(r.date).findIndex(w=>w.year()===x&&w.month()===C)>=0},b=S=>{var x;if(!r.rangeState.selecting)return;let C=S.target;if(C.tagName==="A"&&(C=(x=C.parentNode)==null?void 0:x.parentNode),C.tagName==="DIV"&&(C=C.parentNode),C.tagName!=="TD")return;const w=C.parentNode.rowIndex,k=C.cellIndex;v.value[w][k].disabled||(w!==d.value||k!==h.value)&&(d.value=w,h.value=k,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(w*4+k)}))},_=S=>{var x;const C=(x=S.target)==null?void 0:x.closest("td");if((C==null?void 0:C.tagName)!=="TD"||ko(C,"disabled"))return;const w=C.cellIndex,M=C.parentNode.rowIndex*4+w,I=r.date.startOf("year").month(M);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&I>=r.minDate?n("pick",{minDate:r.minDate,maxDate:I}):n("pick",{minDate:I,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:I,maxDate:null}),n("select",!0)):n("pick",M)};return Be(()=>r.date,async()=>{var S,x;(S=l.value)!=null&&S.contains(document.activeElement)&&(await ct(),(x=u.value)==null||x.focus())}),t({focus:p}),(S,x)=>($(),Z("table",{role:"grid","aria-label":y(o)("el.datepicker.monthTablePrompt"),class:W(y(i).b()),onClick:_,onMousemove:b},[ee("tbody",{ref_key:"tbodyRef",ref:l},[($(!0),Z(dt,null,an(y(v),(C,w)=>($(),Z("tr",{key:w},[($(!0),Z(dt,null,an(C,(k,M)=>($(),Z("td",{key:M,ref_for:!0,ref:I=>m(k)&&(u.value=I),class:W(g(k)),"aria-selected":`${m(k)}`,"aria-label":y(o)(`el.datepicker.month${+k.text+1}`),tabindex:m(k)?0:-1,onKeydown:[vn(_t(_,["prevent","stop"]),["space"]),vn(_t(_,["prevent","stop"]),["enter"])]},[ee("div",null,[ee("span",Nye,Ke(y(o)("el.datepicker.months."+c.value[k.text])),1)])],42,Oye))),128))]))),128))],512)],42,Rye))}});var q2=Ue($ye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:Bye,disabledDate:Vye,parsedValue:Fye}=PA,zye=je({date:Bye,disabledDate:Vye,parsedValue:Fye}),Hye=["aria-label"],Wye=["aria-selected","tabindex","onKeydown"],Gye={class:"cell"},Kye={key:1},Uye=te({__name:"basic-year-table",props:zye,emits:["pick"],setup(e,{expose:t,emit:n}){const r=e,a=(p,g)=>{const m=Vt(String(p)).locale(g).startOf("year"),_=m.endOf("year").dayOfYear();return ru(_).map(S=>m.add(S,"day").toDate())},i=Fe("year-table"),{t:o,lang:s}=pn(),l=U(),u=U(),c=R(()=>Math.floor(r.date.year()/10)*10),f=()=>{var p;(p=u.value)==null||p.focus()},d=p=>{const g={},m=Vt().locale(s.value);return g.disabled=r.disabledDate?a(p,s.value).every(r.disabledDate):!1,g.current=Ys(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||Ys(r.date).findIndex(g=>g.year()===p)>=0,v=p=>{const m=p.target.closest("td");if(m&&m.textContent){if(ko(m,"disabled"))return;const b=m.textContent||m.innerText;n("pick",Number(b))}};return Be(()=>r.date,async()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&(await ct(),(g=u.value)==null||g.focus())}),t({focus:f}),(p,g)=>($(),Z("table",{role:"grid","aria-label":y(o)("el.datepicker.yearTablePrompt"),class:W(y(i).b()),onClick:v},[ee("tbody",{ref_key:"tbodyRef",ref:l},[($(),Z(dt,null,an(3,(m,b)=>ee("tr",{key:b},[($(),Z(dt,null,an(4,(_,S)=>($(),Z(dt,{key:b+"_"+S},[b*4+S<10?($(),Z("td",{key:0,ref_for:!0,ref:x=>h(y(c)+b*4+S)&&(u.value=x),class:W(["available",d(y(c)+b*4+S)]),"aria-selected":`${h(y(c)+b*4+S)}`,tabindex:h(y(c)+b*4+S)?0:-1,onKeydown:[vn(_t(v,["prevent","stop"]),["space"]),vn(_t(v,["prevent","stop"]),["enter"])]},[ee("span",Gye,Ke(y(c)+b*4+S),1)],42,Wye)):($(),Z("td",Kye))],64))),64))])),64))],512)],10,Hye))}});var jye=Ue(Uye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const Yye=["onClick"],qye=["aria-label"],Xye=["aria-label"],Zye=["aria-label"],Qye=["aria-label"],Jye=te({__name:"panel-date-pick",props:_ye,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(Ie,we,ve)=>!0,a=Fe("picker-panel"),i=Fe("date-picker"),o=xf(),s=da(),{t:l,lang:u}=pn(),c=lt("EP_PICKER_BASE"),f=lt(D_),{shortcuts:d,disabledDate:h,cellClassName:v,defaultTime:p}=c.props,g=or(c.props,"defaultValue"),m=U(),b=U(Vt().locale(u.value)),_=U(!1);let S=!1;const x=R(()=>Vt(p).locale(u.value)),C=R(()=>b.value.month()),w=R(()=>b.value.year()),k=U([]),M=U(null),I=U(null),E=Ie=>k.value.length>0?r(Ie,k.value,n.format||"HH:mm:ss"):!0,D=Ie=>p&&!ge.value&&!_.value&&!S?x.value.year(Ie.year()).month(Ie.month()).date(Ie.date()):se.value?Ie.millisecond(0):Ie.startOf("day"),P=(Ie,...we)=>{if(!Ie)t("pick",Ie,...we);else if(st(Ie)){const ve=Ie.map(D);t("pick",ve,...we)}else t("pick",D(Ie),...we);M.value=null,I.value=null,_.value=!1,S=!1},N=(Ie,we)=>{if(G.value==="date"){Ie=Ie;let ve=n.parsedValue?n.parsedValue.year(Ie.year()).month(Ie.month()).date(Ie.date()):Ie;E(ve)||(ve=k.value[0][0].year(Ie.year()).month(Ie.month()).date(Ie.date())),b.value=ve,P(ve,se.value||we)}else G.value==="week"?P(Ie.date):G.value==="dates"&&P(Ie,!0)},z=Ie=>{const we=Ie?"add":"subtract";b.value=b.value[we](1,"month"),gt("month")},F=Ie=>{const we=b.value,ve=Ie?"add":"subtract";b.value=B.value==="year"?we[ve](10,"year"):we[ve](1,"year"),gt("year")},B=U("date"),V=R(()=>{const Ie=l("el.datepicker.year");if(B.value==="year"){const we=Math.floor(w.value/10)*10;return Ie?`${we} ${Ie} - ${we+9} ${Ie}`:`${we} - ${we+9}`}return`${w.value} ${Ie}`}),L=Ie=>{const we=kt(Ie.value)?Ie.value():Ie.value;if(we){S=!0,P(Vt(we).locale(u.value));return}Ie.onClick&&Ie.onClick({attrs:o,slots:s,emit:t})},G=R(()=>{const{type:Ie}=n;return["week","month","year","dates"].includes(Ie)?Ie:"date"}),q=R(()=>G.value==="date"?B.value:G.value),Q=R(()=>!!d.length),ie=async Ie=>{b.value=b.value.startOf("month").month(Ie),G.value==="month"?P(b.value,!1):(B.value="date",["month","year","date","week"].includes(G.value)&&(P(b.value,!0),await ct(),St())),gt("month")},de=async Ie=>{G.value==="year"?(b.value=b.value.startOf("year").year(Ie),P(b.value,!1)):(b.value=b.value.year(Ie),B.value="month",["month","year","date","week"].includes(G.value)&&(P(b.value,!0),await ct(),St())),gt("year")},oe=async Ie=>{B.value=Ie,await ct(),St()},se=R(()=>n.type==="datetime"||n.type==="datetimerange"),le=R(()=>se.value||G.value==="dates"),ne=R(()=>h?n.parsedValue?st(n.parsedValue)?h(n.parsedValue[0].toDate()):h(n.parsedValue.toDate()):!0:!1),Ce=()=>{if(G.value==="dates")P(n.parsedValue);else{let Ie=n.parsedValue;if(!Ie){const we=Vt(p).locale(u.value),ve=Je();Ie=we.year(ve.year()).month(ve.month()).date(ve.date())}b.value=Ie,P(Ie)}},Te=R(()=>h?h(Vt().locale(u.value).toDate()):!1),he=()=>{const we=Vt().locale(u.value).toDate();_.value=!0,(!h||!h(we))&&E(we)&&(b.value=Vt().locale(u.value),P(b.value))},X=R(()=>_8(n.format)),ae=R(()=>b8(n.format)),ge=R(()=>{if(I.value)return I.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||b.value).format(X.value)}),ke=R(()=>{if(M.value)return M.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||b.value).format(ae.value)}),Pe=U(!1),Me=()=>{Pe.value=!0},ze=()=>{Pe.value=!1},Oe=Ie=>({hour:Ie.hour(),minute:Ie.minute(),second:Ie.second(),year:Ie.year(),month:Ie.month(),date:Ie.date()}),Le=(Ie,we,ve)=>{const{hour:$e,minute:ue,second:rt}=Oe(Ie),Ct=n.parsedValue?n.parsedValue.hour($e).minute(ue).second(rt):Ie;b.value=Ct,P(b.value,!0),ve||(Pe.value=we)},Ve=Ie=>{const we=Vt(Ie,X.value).locale(u.value);if(we.isValid()&&E(we)){const{year:ve,month:$e,date:ue}=Oe(b.value);b.value=we.year(ve).month($e).date(ue),I.value=null,Pe.value=!1,P(b.value,!0)}},qe=Ie=>{const we=Vt(Ie,ae.value).locale(u.value);if(we.isValid()){if(h&&h(we.toDate()))return;const{hour:ve,minute:$e,second:ue}=Oe(b.value);b.value=we.hour(ve).minute($e).second(ue),M.value=null,P(b.value,!0)}},nt=Ie=>Vt.isDayjs(Ie)&&Ie.isValid()&&(h?!h(Ie.toDate()):!0),ot=Ie=>G.value==="dates"?Ie.map(we=>we.format(n.format)):Ie.format(n.format),_e=Ie=>Vt(Ie,n.format).locale(u.value),Je=()=>{const Ie=Vt(g.value).locale(u.value);if(!g.value){const we=x.value;return Vt().hour(we.hour()).minute(we.minute()).second(we.second()).locale(u.value)}return Ie},St=async()=>{var Ie;["week","month","year","date"].includes(G.value)&&((Ie=m.value)==null||Ie.focus(),G.value==="week"&&Kt(vt.down))},Rt=Ie=>{const{code:we}=Ie;[vt.up,vt.down,vt.left,vt.right,vt.home,vt.end,vt.pageUp,vt.pageDown].includes(we)&&(Kt(we),Ie.stopPropagation(),Ie.preventDefault()),[vt.enter,vt.space,vt.numpadEnter].includes(we)&&M.value===null&&I.value===null&&(Ie.preventDefault(),P(b.value,!1))},Kt=Ie=>{var we;const{up:ve,down:$e,left:ue,right:rt,home:Ct,end:jt,pageUp:dr,pageDown:kr}=vt,Ir={year:{[ve]:-4,[$e]:4,[ue]:-1,[rt]:1,offset:(De,tt)=>De.setFullYear(De.getFullYear()+tt)},month:{[ve]:-4,[$e]:4,[ue]:-1,[rt]:1,offset:(De,tt)=>De.setMonth(De.getMonth()+tt)},week:{[ve]:-1,[$e]:1,[ue]:-1,[rt]:1,offset:(De,tt)=>De.setDate(De.getDate()+tt*7)},date:{[ve]:-7,[$e]:7,[ue]:-1,[rt]:1,[Ct]:De=>-De.getDay(),[jt]:De=>-De.getDay()+6,[dr]:De=>-new Date(De.getFullYear(),De.getMonth(),0).getDate(),[kr]:De=>new Date(De.getFullYear(),De.getMonth()+1,0).getDate(),offset:(De,tt)=>De.setDate(De.getDate()+tt)}},yr=b.value.toDate();for(;Math.abs(b.value.diff(yr,"year",!0))<1;){const De=Ir[q.value];if(!De)return;if(De.offset(yr,kt(De[Ie])?De[Ie](yr):(we=De[Ie])!=null?we:0),h&&h(yr))break;const tt=Vt(yr).locale(u.value);b.value=tt,t("pick",tt,!0);break}},gt=Ie=>{t("panel-change",b.value.toDate(),Ie,B.value)};return Be(()=>G.value,Ie=>{if(["month","year"].includes(Ie)){B.value=Ie;return}B.value="date"},{immediate:!0}),Be(()=>B.value,()=>{f==null||f.updatePopper()}),Be(()=>g.value,Ie=>{Ie&&(b.value=Je())},{immediate:!0}),Be(()=>n.parsedValue,Ie=>{if(Ie){if(G.value==="dates"||Array.isArray(Ie))return;b.value=Ie}else b.value=Je()},{immediate:!0}),t("set-picker-option",["isValidValue",nt]),t("set-picker-option",["formatToString",ot]),t("set-picker-option",["parseUserInput",_e]),t("set-picker-option",["handleFocusPicker",St]),(Ie,we)=>($(),Z("div",{class:W([y(a).b(),y(i).b(),{"has-sidebar":Ie.$slots.sidebar||y(Q),"has-time":y(se)}])},[ee("div",{class:W(y(a).e("body-wrapper"))},[Re(Ie.$slots,"sidebar",{class:W(y(a).e("sidebar"))}),y(Q)?($(),Z("div",{key:0,class:W(y(a).e("sidebar"))},[($(!0),Z(dt,null,an(y(d),(ve,$e)=>($(),Z("button",{key:$e,type:"button",class:W(y(a).e("shortcut")),onClick:ue=>L(ve)},Ke(ve.text),11,Yye))),128))],2)):me("v-if",!0),ee("div",{class:W(y(a).e("body"))},[y(se)?($(),Z("div",{key:0,class:W(y(i).e("time-header"))},[ee("span",{class:W(y(i).e("editor-wrap"))},[re(y(ba),{placeholder:y(l)("el.datepicker.selectDate"),"model-value":y(ke),size:"small","validate-event":!1,onInput:we[0]||(we[0]=ve=>M.value=ve),onChange:qe},null,8,["placeholder","model-value"])],2),Ot(($(),Z("span",{class:W(y(i).e("editor-wrap"))},[re(y(ba),{placeholder:y(l)("el.datepicker.selectTime"),"model-value":y(ge),size:"small","validate-event":!1,onFocus:Me,onInput:we[1]||(we[1]=ve=>I.value=ve),onChange:Ve},null,8,["placeholder","model-value"]),re(y(Vb),{visible:Pe.value,format:y(X),"parsed-value":b.value,onPick:Le},null,8,["visible","format","parsed-value"])],2)),[[y(mu),ze]])],2)):me("v-if",!0),Ot(ee("div",{class:W([y(i).e("header"),(B.value==="year"||B.value==="month")&&y(i).e("header--bordered")])},[ee("span",{class:W(y(i).e("prev-btn"))},[ee("button",{type:"button","aria-label":y(l)("el.datepicker.prevYear"),class:W(["d-arrow-left",y(a).e("icon-btn")]),onClick:we[2]||(we[2]=ve=>F(!1))},[re(y(ut),null,{default:ce(()=>[re(y(lh))]),_:1})],10,qye),Ot(ee("button",{type:"button","aria-label":y(l)("el.datepicker.prevMonth"),class:W([y(a).e("icon-btn"),"arrow-left"]),onClick:we[3]||(we[3]=ve=>z(!1))},[re(y(ut),null,{default:ce(()=>[re(y(hu))]),_:1})],10,Xye),[[bn,B.value==="date"]])],2),ee("span",{role:"button",class:W(y(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:we[4]||(we[4]=vn(ve=>oe("year"),["enter"])),onClick:we[5]||(we[5]=ve=>oe("year"))},Ke(y(V)),35),Ot(ee("span",{role:"button","aria-live":"polite",tabindex:"0",class:W([y(i).e("header-label"),{active:B.value==="month"}]),onKeydown:we[6]||(we[6]=vn(ve=>oe("month"),["enter"])),onClick:we[7]||(we[7]=ve=>oe("month"))},Ke(y(l)(`el.datepicker.month${y(C)+1}`)),35),[[bn,B.value==="date"]]),ee("span",{class:W(y(i).e("next-btn"))},[Ot(ee("button",{type:"button","aria-label":y(l)("el.datepicker.nextMonth"),class:W([y(a).e("icon-btn"),"arrow-right"]),onClick:we[8]||(we[8]=ve=>z(!0))},[re(y(ut),null,{default:ce(()=>[re(y(Ra))]),_:1})],10,Zye),[[bn,B.value==="date"]]),ee("button",{type:"button","aria-label":y(l)("el.datepicker.nextYear"),class:W([y(a).e("icon-btn"),"d-arrow-right"]),onClick:we[9]||(we[9]=ve=>F(!0))},[re(y(ut),null,{default:ce(()=>[re(y(uh))]),_:1})],10,Qye)],2)],2),[[bn,B.value!=="time"]]),ee("div",{class:W(y(a).e("content")),onKeydown:Rt},[B.value==="date"?($(),Se(Y2,{key:0,ref_key:"currentViewRef",ref:m,"selection-mode":y(G),date:b.value,"parsed-value":Ie.parsedValue,"disabled-date":y(h),"cell-class-name":y(v),onPick:N},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):me("v-if",!0),B.value==="year"?($(),Se(jye,{key:1,ref_key:"currentViewRef",ref:m,date:b.value,"disabled-date":y(h),"parsed-value":Ie.parsedValue,onPick:de},null,8,["date","disabled-date","parsed-value"])):me("v-if",!0),B.value==="month"?($(),Se(q2,{key:2,ref_key:"currentViewRef",ref:m,date:b.value,"parsed-value":Ie.parsedValue,"disabled-date":y(h),onPick:ie},null,8,["date","parsed-value","disabled-date"])):me("v-if",!0)],34)],2)],2),Ot(ee("div",{class:W(y(a).e("footer"))},[Ot(re(y(oa),{text:"",size:"small",class:W(y(a).e("link-btn")),disabled:y(Te),onClick:he},{default:ce(()=>[_n(Ke(y(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[bn,y(G)!=="dates"]]),re(y(oa),{plain:"",size:"small",class:W(y(a).e("link-btn")),disabled:y(ne),onClick:Ce},{default:ce(()=>[_n(Ke(y(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[bn,y(le)&&B.value==="date"]])],2))}});var e0e=Ue(Jye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const t0e=je({...vH,...pH}),n0e=e=>{const{emit:t}=Bt(),n=xf(),r=da();return i=>{const o=kt(i.value)?i.value():i.value;if(o){t("pick",[Vt(o[0]).locale(e.value),Vt(o[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:t})}},yH=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:o}=Bt(),{pickerNs:s}=lt(DA),l=Fe("date-range-picker"),{t:u,lang:c}=pn(),f=n0e(c),d=U(),h=U(),v=U({endDate:null,selecting:!1}),p=_=>{v.value=_},g=(_=!1)=>{const S=y(d),x=y(h);U2([S,x])&&o("pick",[S,x],_)},m=_=>{v.value.selecting=_,_||(v.value.endDate=null)},b=()=>{const[_,S]=mH(y(t),{lang:y(c),unit:a,unlinkPanels:e.unlinkPanels});d.value=void 0,h.value=void 0,n.value=_,r.value=S};return Be(t,_=>{_&&b()},{immediate:!0}),Be(()=>e.parsedValue,_=>{if(st(_)&&_.length===2){const[S,x]=_;d.value=S,n.value=S,h.value=x,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}},r0e=["onClick"],a0e=["aria-label"],i0e=["aria-label"],o0e=["disabled","aria-label"],s0e=["disabled","aria-label"],l0e=["disabled","aria-label"],u0e=["disabled","aria-label"],c0e=["aria-label"],f0e=["aria-label"],by="month",d0e=te({__name:"panel-date-range",props:t0e,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=lt("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:o,defaultTime:s,clearable:l}=r.props,u=or(r.props,"shortcuts"),c=or(r.props,"defaultValue"),{lang:f}=pn(),d=U(Vt().locale(f.value)),h=U(Vt().locale(f.value).add(1,by)),{minDate:v,maxDate:p,rangeState:g,ppNs:m,drpNs:b,handleChangeRange:_,handleRangeConfirm:S,handleShortcutClick:x,onSelect:C,t:w}=yH(n,{defaultValue:c,leftDate:d,rightDate:h,unit:by,onParsedValueChanged:we}),k=U({min:null,max:null}),M=U({min:null,max:null}),I=R(()=>`${d.value.year()} ${w("el.datepicker.year")} ${w(`el.datepicker.month${d.value.month()+1}`)}`),E=R(()=>`${h.value.year()} ${w("el.datepicker.year")} ${w(`el.datepicker.month${h.value.month()+1}`)}`),D=R(()=>d.value.year()),P=R(()=>d.value.month()),N=R(()=>h.value.year()),z=R(()=>h.value.month()),F=R(()=>!!u.value.length),B=R(()=>k.value.min!==null?k.value.min:v.value?v.value.format(Q.value):""),V=R(()=>k.value.max!==null?k.value.max:p.value||v.value?(p.value||v.value).format(Q.value):""),L=R(()=>M.value.min!==null?M.value.min:v.value?v.value.format(q.value):""),G=R(()=>M.value.max!==null?M.value.max:p.value||v.value?(p.value||v.value).format(q.value):""),q=R(()=>_8(o)),Q=R(()=>b8(o)),ie=ve=>U2(ve)&&(a?!a(ve[0].toDate())&&!a(ve[1].toDate()):!0),de=()=>{d.value=d.value.subtract(1,"year"),n.unlinkPanels||(h.value=d.value.add(1,"month")),X("year")},oe=()=>{d.value=d.value.subtract(1,"month"),n.unlinkPanels||(h.value=d.value.add(1,"month")),X("month")},se=()=>{n.unlinkPanels?h.value=h.value.add(1,"year"):(d.value=d.value.add(1,"year"),h.value=d.value.add(1,"month")),X("year")},le=()=>{n.unlinkPanels?h.value=h.value.add(1,"month"):(d.value=d.value.add(1,"month"),h.value=d.value.add(1,"month")),X("month")},ne=()=>{d.value=d.value.add(1,"year"),X("year")},Ce=()=>{d.value=d.value.add(1,"month"),X("month")},Te=()=>{h.value=h.value.subtract(1,"year"),X("year")},he=()=>{h.value=h.value.subtract(1,"month"),X("month")},X=ve=>{t("panel-change",[d.value.toDate(),h.value.toDate()],ve)},ae=R(()=>{const ve=(P.value+1)%12,$e=P.value+1>=12?1:0;return n.unlinkPanels&&new Date(D.value+$e,ve)<new Date(N.value,z.value)}),ge=R(()=>n.unlinkPanels&&N.value*12+z.value-(D.value*12+P.value+1)>=12),ke=R(()=>!(v.value&&p.value&&!g.value.selecting&&U2([v.value,p.value]))),Pe=R(()=>n.type==="datetime"||n.type==="datetimerange"),Me=(ve,$e)=>{if(ve)return s?Vt(s[$e]||s).locale(f.value).year(ve.year()).month(ve.month()).date(ve.date()):ve},ze=(ve,$e=!0)=>{const ue=ve.minDate,rt=ve.maxDate,Ct=Me(ue,0),jt=Me(rt,1);p.value===jt&&v.value===Ct||(t("calendar-change",[ue.toDate(),rt&&rt.toDate()]),p.value=jt,v.value=Ct,!(!$e||Pe.value)&&S())},Oe=U(!1),Le=U(!1),Ve=()=>{Oe.value=!1},qe=()=>{Le.value=!1},nt=(ve,$e)=>{k.value[$e]=ve;const ue=Vt(ve,Q.value).locale(f.value);if(ue.isValid()){if(a&&a(ue.toDate()))return;$e==="min"?(d.value=ue,v.value=(v.value||d.value).year(ue.year()).month(ue.month()).date(ue.date()),!n.unlinkPanels&&(!p.value||p.value.isBefore(v.value))&&(h.value=ue.add(1,"month"),p.value=v.value.add(1,"month"))):(h.value=ue,p.value=(p.value||h.value).year(ue.year()).month(ue.month()).date(ue.date()),!n.unlinkPanels&&(!v.value||v.value.isAfter(p.value))&&(d.value=ue.subtract(1,"month"),v.value=p.value.subtract(1,"month")))}},ot=(ve,$e)=>{k.value[$e]=null},_e=(ve,$e)=>{M.value[$e]=ve;const ue=Vt(ve,q.value).locale(f.value);ue.isValid()&&($e==="min"?(Oe.value=!0,v.value=(v.value||d.value).hour(ue.hour()).minute(ue.minute()).second(ue.second()),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value)):(Le.value=!0,p.value=(p.value||h.value).hour(ue.hour()).minute(ue.minute()).second(ue.second()),h.value=p.value,p.value&&p.value.isBefore(v.value)&&(v.value=p.value)))},Je=(ve,$e)=>{M.value[$e]=null,$e==="min"?(d.value=v.value,Oe.value=!1):(h.value=p.value,Le.value=!1)},St=(ve,$e,ue)=>{M.value.min||(ve&&(d.value=ve,v.value=(v.value||d.value).hour(ve.hour()).minute(ve.minute()).second(ve.second())),ue||(Oe.value=$e),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value,h.value=ve))},Rt=(ve,$e,ue)=>{M.value.max||(ve&&(h.value=ve,p.value=(p.value||h.value).hour(ve.hour()).minute(ve.minute()).second(ve.second())),ue||(Le.value=$e),p.value&&p.value.isBefore(v.value)&&(v.value=p.value))},Kt=()=>{d.value=mH(y(c),{lang:y(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],h.value=d.value.add(1,"month"),t("pick",null)},gt=ve=>st(ve)?ve.map($e=>$e.format(o)):ve.format(o),Ie=ve=>st(ve)?ve.map($e=>Vt($e,o).locale(f.value)):Vt(ve,o).locale(f.value);function we(ve,$e){if(n.unlinkPanels&&$e){const ue=(ve==null?void 0:ve.year())||0,rt=(ve==null?void 0:ve.month())||0,Ct=$e.year(),jt=$e.month();h.value=ue===Ct&&rt===jt?$e.add(1,by):$e}else h.value=d.value.add(1,by),$e&&(h.value=h.value.hour($e.hour()).minute($e.minute()).second($e.second()))}return t("set-picker-option",["isValidValue",ie]),t("set-picker-option",["parseUserInput",Ie]),t("set-picker-option",["formatToString",gt]),t("set-picker-option",["handleClear",Kt]),(ve,$e)=>($(),Z("div",{class:W([y(m).b(),y(b).b(),{"has-sidebar":ve.$slots.sidebar||y(F),"has-time":y(Pe)}])},[ee("div",{class:W(y(m).e("body-wrapper"))},[Re(ve.$slots,"sidebar",{class:W(y(m).e("sidebar"))}),y(F)?($(),Z("div",{key:0,class:W(y(m).e("sidebar"))},[($(!0),Z(dt,null,an(y(u),(ue,rt)=>($(),Z("button",{key:rt,type:"button",class:W(y(m).e("shortcut")),onClick:Ct=>y(x)(ue)},Ke(ue.text),11,r0e))),128))],2)):me("v-if",!0),ee("div",{class:W(y(m).e("body"))},[y(Pe)?($(),Z("div",{key:0,class:W(y(b).e("time-header"))},[ee("span",{class:W(y(b).e("editors-wrap"))},[ee("span",{class:W(y(b).e("time-picker-wrap"))},[re(y(ba),{size:"small",disabled:y(g).selecting,placeholder:y(w)("el.datepicker.startDate"),class:W(y(b).e("editor")),"model-value":y(B),"validate-event":!1,onInput:$e[0]||($e[0]=ue=>nt(ue,"min")),onChange:$e[1]||($e[1]=ue=>ot(ue,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),Ot(($(),Z("span",{class:W(y(b).e("time-picker-wrap"))},[re(y(ba),{size:"small",class:W(y(b).e("editor")),disabled:y(g).selecting,placeholder:y(w)("el.datepicker.startTime"),"model-value":y(L),"validate-event":!1,onFocus:$e[2]||($e[2]=ue=>Oe.value=!0),onInput:$e[3]||($e[3]=ue=>_e(ue,"min")),onChange:$e[4]||($e[4]=ue=>Je(ue,"min"))},null,8,["class","disabled","placeholder","model-value"]),re(y(Vb),{visible:Oe.value,format:y(q),"datetime-role":"start","parsed-value":d.value,onPick:St},null,8,["visible","format","parsed-value"])],2)),[[y(mu),Ve]])],2),ee("span",null,[re(y(ut),null,{default:ce(()=>[re(y(Ra))]),_:1})]),ee("span",{class:W([y(b).e("editors-wrap"),"is-right"])},[ee("span",{class:W(y(b).e("time-picker-wrap"))},[re(y(ba),{size:"small",class:W(y(b).e("editor")),disabled:y(g).selecting,placeholder:y(w)("el.datepicker.endDate"),"model-value":y(V),readonly:!y(v),"validate-event":!1,onInput:$e[5]||($e[5]=ue=>nt(ue,"max")),onChange:$e[6]||($e[6]=ue=>ot(ue,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Ot(($(),Z("span",{class:W(y(b).e("time-picker-wrap"))},[re(y(ba),{size:"small",class:W(y(b).e("editor")),disabled:y(g).selecting,placeholder:y(w)("el.datepicker.endTime"),"model-value":y(G),readonly:!y(v),"validate-event":!1,onFocus:$e[7]||($e[7]=ue=>y(v)&&(Le.value=!0)),onInput:$e[8]||($e[8]=ue=>_e(ue,"max")),onChange:$e[9]||($e[9]=ue=>Je(ue,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),re(y(Vb),{"datetime-role":"end",visible:Le.value,format:y(q),"parsed-value":h.value,onPick:Rt},null,8,["visible","format","parsed-value"])],2)),[[y(mu),qe]])],2)],2)):me("v-if",!0),ee("div",{class:W([[y(m).e("content"),y(b).e("content")],"is-left"])},[ee("div",{class:W(y(b).e("header"))},[ee("button",{type:"button",class:W([y(m).e("icon-btn"),"d-arrow-left"]),"aria-label":y(w)("el.datepicker.prevYear"),onClick:de},[re(y(ut),null,{default:ce(()=>[re(y(lh))]),_:1})],10,a0e),ee("button",{type:"button",class:W([y(m).e("icon-btn"),"arrow-left"]),"aria-label":y(w)("el.datepicker.prevMonth"),onClick:oe},[re(y(ut),null,{default:ce(()=>[re(y(hu))]),_:1})],10,i0e),ve.unlinkPanels?($(),Z("button",{key:0,type:"button",disabled:!y(ge),class:W([[y(m).e("icon-btn"),{"is-disabled":!y(ge)}],"d-arrow-right"]),"aria-label":y(w)("el.datepicker.nextYear"),onClick:ne},[re(y(ut),null,{default:ce(()=>[re(y(uh))]),_:1})],10,o0e)):me("v-if",!0),ve.unlinkPanels?($(),Z("button",{key:1,type:"button",disabled:!y(ae),class:W([[y(m).e("icon-btn"),{"is-disabled":!y(ae)}],"arrow-right"]),"aria-label":y(w)("el.datepicker.nextMonth"),onClick:Ce},[re(y(ut),null,{default:ce(()=>[re(y(Ra))]),_:1})],10,s0e)):me("v-if",!0),ee("div",null,Ke(y(I)),1)],2),re(Y2,{"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:ze,onSelect:y(C)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),ee("div",{class:W([[y(m).e("content"),y(b).e("content")],"is-right"])},[ee("div",{class:W(y(b).e("header"))},[ve.unlinkPanels?($(),Z("button",{key:0,type:"button",disabled:!y(ge),class:W([[y(m).e("icon-btn"),{"is-disabled":!y(ge)}],"d-arrow-left"]),"aria-label":y(w)("el.datepicker.prevYear"),onClick:Te},[re(y(ut),null,{default:ce(()=>[re(y(lh))]),_:1})],10,l0e)):me("v-if",!0),ve.unlinkPanels?($(),Z("button",{key:1,type:"button",disabled:!y(ae),class:W([[y(m).e("icon-btn"),{"is-disabled":!y(ae)}],"arrow-left"]),"aria-label":y(w)("el.datepicker.prevMonth"),onClick:he},[re(y(ut),null,{default:ce(()=>[re(y(hu))]),_:1})],10,u0e)):me("v-if",!0),ee("button",{type:"button","aria-label":y(w)("el.datepicker.nextYear"),class:W([y(m).e("icon-btn"),"d-arrow-right"]),onClick:se},[re(y(ut),null,{default:ce(()=>[re(y(uh))]),_:1})],10,c0e),ee("button",{type:"button",class:W([y(m).e("icon-btn"),"arrow-right"]),"aria-label":y(w)("el.datepicker.nextMonth"),onClick:le},[re(y(ut),null,{default:ce(()=>[re(y(Ra))]),_:1})],10,f0e),ee("div",null,Ke(y(E)),1)],2),re(Y2,{"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:ze,onSelect:y(C)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),y(Pe)?($(),Z("div",{key:0,class:W(y(m).e("footer"))},[y(l)?($(),Se(y(oa),{key:0,text:"",size:"small",class:W(y(m).e("link-btn")),onClick:Kt},{default:ce(()=>[_n(Ke(y(w)("el.datepicker.clear")),1)]),_:1},8,["class"])):me("v-if",!0),re(y(oa),{plain:"",size:"small",class:W(y(m).e("link-btn")),disabled:y(ke),onClick:$e[10]||($e[10]=ue=>y(S)(!1))},{default:ce(()=>[_n(Ke(y(w)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):me("v-if",!0)],2))}});var h0e=Ue(d0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const v0e=je({...pH}),p0e=["pick","set-picker-option","calendar-change"],g0e=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=pn(),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=R(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=R(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=R(()=>t.value.year()),f=R(()=>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"],y0e=["disabled"],b0e=["disabled"],_y="year",_0e=te({name:"DatePickerMonthRange"}),w0e=te({..._0e,props:v0e,emits:p0e,setup(e,{emit:t}){const n=e,{lang:r}=pn(),a=lt("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:s}=a.props,l=or(a.props,"defaultValue"),u=U(Vt().locale(r.value)),c=U(Vt().locale(r.value).add(1,_y)),{minDate:f,maxDate:d,rangeState:h,ppNs:v,drpNs:p,handleChangeRange:g,handleRangeConfirm:m,handleShortcutClick:b,onSelect:_}=yH(n,{defaultValue:l,leftDate:u,rightDate:c,unit:_y,onParsedValueChanged:F}),S=R(()=>!!i.length),{leftPrevYear:x,rightNextYear:C,leftNextYear:w,rightPrevYear:k,leftLabel:M,rightLabel:I,leftYear:E,rightYear:D}=g0e({unlinkPanels:or(n,"unlinkPanels"),leftDate:u,rightDate:c}),P=R(()=>n.unlinkPanels&&D.value>E.value+1),N=(B,V=!0)=>{const L=B.minDate,G=B.maxDate;d.value===G&&f.value===L||(t("calendar-change",[L.toDate(),G&&G.toDate()]),d.value=G,f.value=L,V&&m())},z=B=>B.map(V=>V.format(s));function F(B,V){if(n.unlinkPanels&&V){const L=(B==null?void 0:B.year())||0,G=V.year();c.value=L===G?V.add(1,_y):V}else c.value=u.value.add(1,_y)}return t("set-picker-option",["formatToString",z]),(B,V)=>($(),Z("div",{class:W([y(v).b(),y(p).b(),{"has-sidebar":!!B.$slots.sidebar||y(S)}])},[ee("div",{class:W(y(v).e("body-wrapper"))},[Re(B.$slots,"sidebar",{class:W(y(v).e("sidebar"))}),y(S)?($(),Z("div",{key:0,class:W(y(v).e("sidebar"))},[($(!0),Z(dt,null,an(y(i),(L,G)=>($(),Z("button",{key:G,type:"button",class:W(y(v).e("shortcut")),onClick:q=>y(b)(L)},Ke(L.text),11,m0e))),128))],2)):me("v-if",!0),ee("div",{class:W(y(v).e("body"))},[ee("div",{class:W([[y(v).e("content"),y(p).e("content")],"is-left"])},[ee("div",{class:W(y(p).e("header"))},[ee("button",{type:"button",class:W([y(v).e("icon-btn"),"d-arrow-left"]),onClick:V[0]||(V[0]=(...L)=>y(x)&&y(x)(...L))},[re(y(ut),null,{default:ce(()=>[re(y(lh))]),_:1})],2),B.unlinkPanels?($(),Z("button",{key:0,type:"button",disabled:!y(P),class:W([[y(v).e("icon-btn"),{[y(v).is("disabled")]:!y(P)}],"d-arrow-right"]),onClick:V[1]||(V[1]=(...L)=>y(w)&&y(w)(...L))},[re(y(ut),null,{default:ce(()=>[re(y(uh))]),_:1})],10,y0e)):me("v-if",!0),ee("div",null,Ke(y(M)),1)],2),re(q2,{"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:N,onSelect:y(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),ee("div",{class:W([[y(v).e("content"),y(p).e("content")],"is-right"])},[ee("div",{class:W(y(p).e("header"))},[B.unlinkPanels?($(),Z("button",{key:0,type:"button",disabled:!y(P),class:W([[y(v).e("icon-btn"),{"is-disabled":!y(P)}],"d-arrow-left"]),onClick:V[2]||(V[2]=(...L)=>y(k)&&y(k)(...L))},[re(y(ut),null,{default:ce(()=>[re(y(lh))]),_:1})],10,b0e)):me("v-if",!0),ee("button",{type:"button",class:W([y(v).e("icon-btn"),"d-arrow-right"]),onClick:V[3]||(V[3]=(...L)=>y(C)&&y(C)(...L))},[re(y(ut),null,{default:ce(()=>[re(y(uh))]),_:1})],2),ee("div",null,Ke(y(I)),1)],2),re(q2,{"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:N,onSelect:y(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var S0e=Ue(w0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const C0e=function(e){switch(e){case"daterange":case"datetimerange":return h0e;case"monthrange":return S0e;default:return e0e}};Vt.extend(N8);Vt.extend(sye);Vt.extend(MA);Vt.extend(uye);Vt.extend(fye);Vt.extend(hye);Vt.extend(pye);Vt.extend(mye);var x0e=te({name:"ElDatePicker",install:null,props:yye,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const a=Fe("picker-panel");Jt("ElPopperOptions",Sn(or(e,"popperOptions"))),Jt(DA,{slots:r,pickerNs:a});const i=U();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:rve[e.type]||md,c=C0e(e.type);return re(C8,Yt(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:f=>re(c,f,null),"range-separator":r["range-separator"]})}}});const K0=x0e;K0.install=e=>{e.component(K0.name,K0)};const T0e=K0,LA=Symbol("elDescriptions");var wv=te({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:lt(LA,{})}},render(){var e,t,n,r,a,i;const o=cle(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:gr(o.width),minWidth:gr(o.minWidth)},b=Fe("descriptions");switch(this.type){case"label":return pt(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 pt(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 pt("td",{style:m,class:[b.e("cell"),h],colSpan:d},[Lr(c)?void 0:pt("span",{class:[b.e("label"),g]},c),pt("span",{class:[b.e("content"),p]},f)])}}});const k0e=je({row:{type:Array,default:()=>[]}}),M0e={key:1},A0e=te({name:"ElDescriptionsRow"}),E0e=te({...A0e,props:k0e,setup(e){const t=lt(LA,{});return(n,r)=>y(t).direction==="vertical"?($(),Z(dt,{key:0},[ee("tr",null,[($(!0),Z(dt,null,an(n.row,(a,i)=>($(),Se(y(wv),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),ee("tr",null,[($(!0),Z(dt,null,an(n.row,(a,i)=>($(),Se(y(wv),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):($(),Z("tr",M0e,[($(!0),Z(dt,null,an(n.row,(a,i)=>($(),Z(dt,{key:`tr3-${i}`},[y(t).border?($(),Z(dt,{key:0},[re(y(wv),{cell:a,tag:"td",type:"label"},null,8,["cell"]),re(y(wv),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):($(),Se(y(wv),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var I0e=Ue(E0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const D0e=je({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:la,title:{type:String,default:""},extra:{type:String,default:""}}),P0e=te({name:"ElDescriptions"}),L0e=te({...P0e,props:D0e,setup(e){const t=e,n=Fe("descriptions"),r=$r(),a=da();Jt(LA,t);const i=R(()=>[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=Bd((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)=>($(),Z("div",{class:W(y(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?($(),Z("div",{key:0,class:W(y(n).e("header"))},[ee("div",{class:W(y(n).e("title"))},[Re(l.$slots,"title",{},()=>[_n(Ke(l.title),1)])],2),ee("div",{class:W(y(n).e("extra"))},[Re(l.$slots,"extra",{},()=>[_n(Ke(l.extra),1)])],2)],2)):me("v-if",!0),ee("div",{class:W(y(n).e("body"))},[ee("table",{class:W([y(n).e("table"),y(n).is("bordered",l.border)])},[ee("tbody",null,[($(!0),Z(dt,null,an(s(),(c,f)=>($(),Se(I0e,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var R0e=Ue(L0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),bH=te({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 O0e=Ht(R0e,{DescriptionsItem:bH}),N0e=fr(bH),$0e=je({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:ye([String,Array,Object])},zIndex:{type:ye([String,Number])}}),B0e={click:e=>e instanceof MouseEvent},V0e="overlay";var F0e=te({name:"ElOverlay",props:$0e,emits:B0e,setup(e,{slots:t,emit:n}){const r=Fe(V0e),a=l=>{n("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=pA(e.customMaskEvent?void 0:a);return()=>e.mask?re("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:s},[Re(t,"default")],Li.STYLE|Li.CLASS|Li.PROPS,["onClick","onMouseup","onMousedown"]):pt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Re(t,"default")])}});const RA=F0e,_H=Symbol("dialogInjectionKey"),wH=je({center:Boolean,alignCenter:Boolean,closeIcon:{type:Wn},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),z0e={close:()=>!0},H0e=["aria-level"],W0e=["aria-label"],G0e=["id"],K0e=te({name:"ElDialogContent"}),U0e=te({...K0e,props:wH,emits:z0e,setup(e){const t=e,{t:n}=pn(),{Close:r}=s6,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:l}=lt(_H),{focusTrapRef:u}=lt(xA),c=R(()=>[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=b_(u,a),d=R(()=>t.draggable);return u6(a,i,d),(h,v)=>($(),Z("div",{ref:y(f),class:W(y(c)),style:ft(y(l)),tabindex:"-1"},[ee("header",{ref_key:"headerRef",ref:i,class:W(y(s).e("header"))},[Re(h.$slots,"header",{},()=>[ee("span",{role:"heading","aria-level":h.ariaLevel,class:W(y(s).e("title"))},Ke(h.title),11,H0e)]),h.showClose?($(),Z("button",{key:0,"aria-label":y(n)("el.dialog.close"),class:W(y(s).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=p=>h.$emit("close"))},[re(y(ut),{class:W(y(s).e("close"))},{default:ce(()=>[($(),Se(qt(h.closeIcon||y(r))))]),_:1},8,["class"])],10,W0e)):me("v-if",!0)],2),ee("div",{id:y(o),class:W(y(s).e("body"))},[Re(h.$slots,"default")],10,G0e),h.$slots.footer?($(),Z("footer",{key:0,class:W(y(s).e("footer"))},[Re(h.$slots,"footer")],2)):me("v-if",!0)],6))}});var j0e=Ue(U0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const SH=je({...wH,appendToBody:Boolean,beforeClose:{type:ye(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"}}),CH={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Gt]:e=>Rr(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},xH=(e,t)=>{const r=Bt().emit,{nextZIndex:a}=Bh();let i="";const o=Xi(),s=Xi(),l=U(!1),u=U(!1),c=U(!1),f=U(e.zIndex||a());let d,h;const v=M_("namespace",Cp),p=R(()=>{const N={},z=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(N[`${z}-margin-top`]=e.top),e.width&&(N[`${z}-width`]=gr(e.width))),N}),g=R(()=>e.alignCenter?{display:"flex"}:{});function m(){r("opened")}function b(){r("closed"),r(Gt,!1),e.destroyOnClose&&(c.value=!1)}function _(){r("close")}function S(){h==null||h(),d==null||d(),e.openDelay&&e.openDelay>0?{stop:d}=ff(()=>k(),e.openDelay):k()}function x(){d==null||d(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=ff(()=>M(),e.closeDelay):M()}function C(){function N(z){z||(u.value=!0,l.value=!1)}e.beforeClose?e.beforeClose(N):x()}function w(){e.closeOnClickModal&&C()}function k(){fn&&(l.value=!0)}function M(){l.value=!1}function I(){r("openAutoFocus")}function E(){r("closeAutoFocus")}function D(N){var z;((z=N.detail)==null?void 0:z.focusReason)==="pointer"&&N.preventDefault()}e.lockScroll&&d6(l);function P(){e.closeOnPressEscape&&C()}return Be(()=>e.modelValue,N=>{N?(u.value=!1,S(),c.value=!0,f.value=e.zIndex?f.value++:a(),ct(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):l.value&&x()}),Be(()=>e.fullscreen,N=>{t.value&&(N?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),Ft(()=>{e.modelValue&&(l.value=!0,c.value=!0,S())}),{afterEnter:m,afterLeave:b,beforeLeave:_,handleClose:C,onModalClick:w,close:x,doClose:M,onOpenAutoFocus:I,onCloseAutoFocus:E,onCloseRequested:P,onFocusoutPrevented:D,titleId:o,bodyId:s,closed:u,style:p,overlayDialogStyle:g,rendered:c,visible:l,zIndex:f}},Y0e=["aria-label","aria-labelledby","aria-describedby"],q0e=te({name:"ElDialog",inheritAttrs:!1}),X0e=te({...q0e,props:SH,emits:CH,setup(e,{expose:t}){const n=e,r=da();ms({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"},R(()=>!!r.title)),ms({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"},R(()=>!!n.customClass));const a=Fe("dialog"),i=U(),o=U(),s=U(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:v,afterEnter:p,afterLeave:g,beforeLeave:m,handleClose:b,onModalClick:_,onOpenAutoFocus:S,onCloseAutoFocus:x,onCloseRequested:C,onFocusoutPrevented:w}=xH(n,i);Jt(_H,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:f});const k=pA(_),M=R(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:s}),(I,E)=>($(),Se(sm,{to:"body",disabled:!I.appendToBody},[re(xr,{name:"dialog-fade",onAfterEnter:y(p),onAfterLeave:y(g),onBeforeLeave:y(m),persisted:""},{default:ce(()=>[Ot(re(y(RA),{"custom-mask-event":"",mask:I.modal,"overlay-class":I.modalClass,"z-index":y(v)},{default:ce(()=>[ee("div",{role:"dialog","aria-modal":"true","aria-label":I.title||void 0,"aria-labelledby":I.title?void 0:y(u),"aria-describedby":y(c),class:W(`${y(a).namespace.value}-overlay-dialog`),style:ft(y(d)),onClick:E[0]||(E[0]=(...D)=>y(k).onClick&&y(k).onClick(...D)),onMousedown:E[1]||(E[1]=(...D)=>y(k).onMousedown&&y(k).onMousedown(...D)),onMouseup:E[2]||(E[2]=(...D)=>y(k).onMouseup&&y(k).onMouseup(...D))},[re(y(I_),{loop:"",trapped:y(l),"focus-start-el":"container",onFocusAfterTrapped:y(S),onFocusAfterReleased:y(x),onFocusoutPrevented:y(w),onReleaseRequested:y(C)},{default:ce(()=>[y(h)?($(),Se(j0e,Yt({key:0,ref_key:"dialogContentRef",ref:s},I.$attrs,{"custom-class":I.customClass,center:I.center,"align-center":I.alignCenter,"close-icon":I.closeIcon,draggable:y(M),fullscreen:I.fullscreen,"show-close":I.showClose,title:I.title,"aria-level":I.headerAriaLevel,onClose:y(b)}),Qs({header:ce(()=>[I.$slots.title?Re(I.$slots,"title",{key:1}):Re(I.$slots,"header",{key:0,close:y(b),titleId:y(u),titleClass:y(a).e("title")})]),default:ce(()=>[Re(I.$slots,"default")]),_:2},[I.$slots.footer?{name:"footer",fn:ce(()=>[Re(I.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):me("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,Y0e)]),_:3},8,["mask","overlay-class","z-index"]),[[bn,y(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var Z0e=Ue(X0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const Q0e=Ht(Z0e),J0e=je({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ye(String),default:"solid"}}),ebe=te({name:"ElDivider"}),tbe=te({...ebe,props:J0e,setup(e){const t=e,n=Fe("divider"),r=R(()=>n.cssVar({"border-style":t.borderStyle}));return(a,i)=>($(),Z("div",{class:W([y(n).b(),y(n).m(a.direction)]),style:ft(y(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?($(),Z("div",{key:0,class:W([y(n).e("text"),y(n).is(a.contentPosition)])},[Re(a.$slots,"default")],2)):me("v-if",!0)],6))}});var nbe=Ue(tbe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const TH=Ht(nbe),rbe=je({...SH,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"}}),abe=CH,ibe=te({name:"ElDrawer",components:{ElOverlay:RA,ElFocusTrap:I_,ElIcon:ut,Close:Do},inheritAttrs:!1,props:rbe,emits:abe,setup(e,{slots:t}){ms({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"},R(()=>!!t.title)),ms({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"},R(()=>!!e.customClass));const n=U(),r=U(),a=Fe("drawer"),{t:i}=pn(),o=R(()=>e.direction==="rtl"||e.direction==="ltr"),s=R(()=>gr(e.size));return{...xH(e,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:s,ns:a,t:i}}}),obe=["aria-label","aria-labelledby","aria-describedby"],sbe=["id","aria-level"],lbe=["aria-label"],ube=["id"];function cbe(e,t,n,r,a,i){const o=Pt("close"),s=Pt("el-icon"),l=Pt("el-focus-trap"),u=Pt("el-overlay");return $(),Se(sm,{to:"body",disabled:!e.appendToBody},[re(xr,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:ce(()=>[Ot(re(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:ce(()=>[re(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ce(()=>[ee("div",Yt({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]=_t(()=>{},["stop"]))}),[ee("span",{ref:"focusStartRef",class:W(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?($(),Z("header",{key:0,class:W(e.ns.e("header"))},[e.$slots.title?Re(e.$slots,"title",{key:1},()=>[me(" DEPRECATED SLOT ")]):Re(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?me("v-if",!0):($(),Z("span",{key:0,id:e.titleId,role:"heading","aria-level":e.headerAriaLevel,class:W(e.ns.e("title"))},Ke(e.title),11,sbe))]),e.showClose?($(),Z("button",{key:2,"aria-label":e.t("el.drawer.close"),class:W(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...c)=>e.handleClose&&e.handleClose(...c))},[re(s,{class:W(e.ns.e("close"))},{default:ce(()=>[re(o)]),_:1},8,["class"])],10,lbe)):me("v-if",!0)],2)):me("v-if",!0),e.rendered?($(),Z("div",{key:1,id:e.bodyId,class:W(e.ns.e("body"))},[Re(e.$slots,"default")],10,ube)):me("v-if",!0),e.$slots.footer?($(),Z("div",{key:2,class:W(e.ns.e("footer"))},[Re(e.$slots,"footer")],2)):me("v-if",!0)],16,obe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[bn,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var fbe=Ue(ibe,[["render",cbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const dbe=Ht(fbe),hbe=te({inheritAttrs:!1});function vbe(e,t,n,r,a,i){return Re(e.$slots,"default")}var pbe=Ue(hbe,[["render",vbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const gbe=te({name:"ElCollectionItem",inheritAttrs:!1});function mbe(e,t,n,r,a,i){return Re(e.$slots,"default")}var ybe=Ue(gbe,[["render",mbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const kH="data-el-collection-item",MH=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),i={...pbe,name:t,setup(){const s=U(null),l=new Map;Jt(r,{itemMap:l,getItems:()=>{const c=y(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${kH}]`));return[...l.values()].sort((h,v)=>f.indexOf(h.ref)-f.indexOf(v.ref))},collectionRef:s})}},o={...ybe,name:n,setup(s,{attrs:l}){const u=U(null),c=lt(r,void 0);Jt(a,{collectionItemRef:u}),Ft(()=>{const f=y(u);f&&c.itemMap.set(f,{ref:f,...l})}),er(()=>{const f=y(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},bbe=je({style:{type:ye([String,Array,Object])},currentTabId:{type:ye(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ye(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:_be,ElCollectionItem:wbe,COLLECTION_INJECTION_KEY:OA,COLLECTION_ITEM_INJECTION_KEY:Sbe}=MH("RovingFocusGroup"),NA=Symbol("elRovingFocusGroup"),AH=Symbol("elRovingFocusGroupItem"),Cbe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},xbe=(e,t)=>{if(t!=="rtl")return e;switch(e){case vt.right:return vt.left;case vt.left:return vt.right;default:return e}},Tbe=(e,t,n)=>{const r=xbe(e.key,n);if(!(t==="vertical"&&[vt.left,vt.right].includes(r))&&!(t==="horizontal"&&[vt.up,vt.down].includes(r)))return Cbe[r]},kbe=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),$A=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},iO="currentTabIdChange",oO="rovingFocusGroup.entryFocus",Mbe={bubbles:!1,cancelable:!0},Abe=te({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:bbe,emits:[iO,"entryFocus"],setup(e,{emit:t}){var n;const r=U((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=U(!1),i=U(!1),o=U(null),{getItems:s}=lt(OA,void 0),l=R(()=>[{outline:"none"},e.style]),u=p=>{t(iO,p)},c=()=>{a.value=!0},f=cr(p=>{var g;(g=e.onMousedown)==null||g.call(e,p)},()=>{i.value=!0}),d=cr(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(oO,Mbe);if(b==null||b.dispatchEvent(_),!_.defaultPrevented){const S=s().filter(M=>M.focusable),x=S.find(M=>M.active),C=S.find(M=>M.id===y(r)),k=[x,C,...S].filter(Boolean).map(M=>M.ref);$A(k)}}i.value=!1}),h=cr(p=>{var g;(g=e.onBlur)==null||g.call(e,p)},()=>{a.value=!1}),v=(...p)=>{t("entryFocus",...p)};Jt(NA,{currentTabbedId:Lh(r),loop:or(e,"loop"),tabIndex:R(()=>y(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:or(e,"orientation"),dir:or(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:d,onMousedown:f}),Be(()=>e.currentTabId,p=>{r.value=p??null}),Qn(o,oO,v)}});function Ebe(e,t,n,r,a,i){return Re(e.$slots,"default")}var Ibe=Ue(Abe,[["render",Ebe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const Dbe=te({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:_be,ElRovingFocusGroupImpl:Ibe}});function Pbe(e,t,n,r,a,i){const o=Pt("el-roving-focus-group-impl"),s=Pt("el-focus-group-collection");return $(),Se(s,null,{default:ce(()=>[re(o,_o(i_(e.$attrs)),{default:ce(()=>[Re(e.$slots,"default")]),_:3},16)]),_:3})}var Lbe=Ue(Dbe,[["render",Pbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const Rbe=te({components:{ElRovingFocusCollectionItem:wbe},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}=lt(NA,void 0),{getItems:o}=lt(OA,void 0),s=Xi(),l=U(null),u=cr(h=>{t("mousedown",h)},h=>{e.focusable?a(y(s)):h.preventDefault()}),c=cr(h=>{t("focus",h)},()=>{a(y(s))}),f=cr(h=>{t("keydown",h)},h=>{const{key:v,shiftKey:p,target:g,currentTarget:m}=h;if(v===vt.tab&&p){i();return}if(g!==m)return;const b=Tbe(h);if(b){h.preventDefault();let S=o().filter(x=>x.focusable).map(x=>x.ref);switch(b){case"last":{S.reverse();break}case"prev":case"next":{b==="prev"&&S.reverse();const x=S.indexOf(m);S=r.value?kbe(S,x+1):S.slice(x+1);break}}ct(()=>{$A(S)})}}),d=R(()=>n.value===y(s));return Jt(AH,{rovingFocusGroupItemRef:l,tabIndex:R(()=>y(d)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:s,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function Obe(e,t,n,r,a,i){const o=Pt("el-roving-focus-collection-item");return $(),Se(o,{id:e.id,focusable:e.focusable,active:e.active},{default:ce(()=>[Re(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Nbe=Ue(Rbe,[["render",Obe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const U0=je({trigger:pg.trigger,effect:{...Xr.effect,default:"light"},type:{type:ye(String)},placement:{type:ye(String),default:"bottom"},popperOptions:{type:ye(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:ye([Number,String]),default:0},maxHeight:{type:ye([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:ye(Object)},teleported:Xr.teleported}),EH=je({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Wn}}),$be=je({onKeydown:{type:ye(Function)}}),Bbe=[vt.down,vt.pageDown,vt.home],IH=[vt.up,vt.pageUp,vt.end],Vbe=[...Bbe,...IH],{ElCollection:Fbe,ElCollectionItem:zbe,COLLECTION_INJECTION_KEY:Hbe,COLLECTION_ITEM_INJECTION_KEY:Wbe}=MH("Dropdown"),L_=Symbol("elDropdown"),{ButtonGroup:Gbe}=oa,Kbe=te({name:"ElDropdown",components:{ElButton:oa,ElButtonGroup:Gbe,ElScrollbar:hl,ElDropdownCollection:Fbe,ElTooltip:Fa,ElRovingFocusGroup:Lbe,ElOnlyChild:t8,ElIcon:ut,ArrowDown:Au},props:U0,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Bt(),r=Fe("dropdown"),{t:a}=pn(),i=U(),o=U(),s=U(null),l=U(null),u=U(null),c=U(null),f=U(!1),d=[vt.enter,vt.space,vt.down],h=R(()=>({maxHeight:gr(e.maxHeight)})),v=R(()=>[r.m(x.value)]),p=R(()=>hf(e.trigger)),g=Xi().value,m=R(()=>e.id||g);Be([i,p],([B,V],[L])=>{var G,q,Q;(G=L==null?void 0:L.$el)!=null&&G.removeEventListener&&L.$el.removeEventListener("pointerenter",w),(q=B==null?void 0:B.$el)!=null&&q.removeEventListener&&B.$el.removeEventListener("pointerenter",w),(Q=B==null?void 0:B.$el)!=null&&Q.addEventListener&&V.includes("hover")&&B.$el.addEventListener("pointerenter",w)},{immediate:!0}),er(()=>{var B,V;(V=(B=i.value)==null?void 0:B.$el)!=null&&V.removeEventListener&&i.value.$el.removeEventListener("pointerenter",w)});function b(){_()}function _(){var B;(B=s.value)==null||B.onClose()}function S(){var B;(B=s.value)==null||B.onOpen()}const x=$r();function C(...B){t("command",...B)}function w(){var B,V;(V=(B=i.value)==null?void 0:B.$el)==null||V.focus()}function k(){}function M(){const B=y(l);p.value.includes("hover")&&(B==null||B.focus()),c.value=null}function I(B){c.value=B}function E(B){f.value||(B.preventDefault(),B.stopImmediatePropagation())}function D(){t("visible-change",!0)}function P(B){(B==null?void 0:B.type)==="keydown"&&l.value.focus()}function N(){t("visible-change",!1)}return Jt(L_,{contentRef:l,role:R(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:k,onItemLeave:M}),Jt("elDropdown",{instance:n,dropdownSize:x,handleClick:b,commandHandler:C,trigger:or(e,"trigger"),hideOnClick:or(e,"hideOnClick")}),{t:a,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:v,dropdownSize:x,triggerId:m,triggerKeys:d,currentTabId:c,handleCurrentTabIdChange:I,handlerMainButtonClick:B=>{t("click",B)},handleEntryFocus:E,handleClose:_,handleOpen:S,handleBeforeShowTooltip:D,handleShowTooltip:P,handleBeforeHideTooltip:N,onFocusAfterTrapped:B=>{var V,L;B.preventDefault(),(L=(V=l.value)==null?void 0:V.focus)==null||L.call(V,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function Ube(e,t,n,r,a,i){var o;const s=Pt("el-dropdown-collection"),l=Pt("el-roving-focus-group"),u=Pt("el-scrollbar"),c=Pt("el-only-child"),f=Pt("el-tooltip"),d=Pt("el-button"),h=Pt("arrow-down"),v=Pt("el-icon"),p=Pt("el-button-group");return $(),Z("div",{class:W([e.ns.b(),e.ns.is("disabled",e.disabled)])},[re(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},Qs({content:ce(()=>[re(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ce(()=>[re(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:ce(()=>[re(s,null,{default:ce(()=>[Re(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:ce(()=>[re(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ce(()=>[Re(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?($(),Se(p,{key:0},{default:ce(()=>[re(d,Yt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ce(()=>[Re(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),re(d,Yt({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:ce(()=>[re(v,{class:W(e.ns.e("icon"))},{default:ce(()=>[re(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):me("v-if",!0)],2)}var jbe=Ue(Kbe,[["render",Ube],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const Ybe=te({name:"DropdownItemImpl",components:{ElIcon:ut},props:EH,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Fe("dropdown"),{role:r}=lt(L_,void 0),{collectionItemRef:a}=lt(Wbe,void 0),{collectionItemRef:i}=lt(Sbe,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=lt(AH,void 0),f=b_(a,i,o),d=R(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=cr(v=>{const{code:p}=v;if(p===vt.enter||p===vt.space)return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},u);return{ns:n,itemRef:f,dataset:{[kH]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}}),qbe=["aria-disabled","tabindex","role"];function Xbe(e,t,n,r,a,i){const o=Pt("el-icon");return $(),Z(dt,null,[e.divided?($(),Z("li",Yt({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):me("v-if",!0),ee("li",Yt({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]=_t((...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?($(),Se(o,{key:0},{default:ce(()=>[($(),Se(qt(e.icon)))]),_:1})):me("v-if",!0),Re(e.$slots,"default")],16,qbe)],64)}var Zbe=Ue(Ybe,[["render",Xbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const DH=()=>{const e=lt("elDropdown",{}),t=R(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},Qbe=te({name:"ElDropdownItem",components:{ElDropdownCollectionItem:zbe,ElRovingFocusItem:Nbe,ElDropdownItemImpl:Zbe},inheritAttrs:!1,props:EH,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=DH(),a=Bt(),i=U(null),o=R(()=>{var h,v;return(v=(h=y(i))==null?void 0:h.textContent)!=null?v:""}),{onItemEnter:s,onItemLeave:l}=lt(L_,void 0),u=cr(h=>(t("pointermove",h),h.defaultPrevented),oL(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=cr(h=>(t("pointerleave",h),h.defaultPrevented),oL(h=>{l(h)})),f=cr(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=R(()=>({...e,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:d}}});function Jbe(e,t,n,r,a,i){var o;const s=Pt("el-dropdown-item-impl"),l=Pt("el-roving-focus-item"),u=Pt("el-dropdown-collection-item");return $(),Se(u,{disabled:e.disabled,"text-value":(o=e.textValue)!=null?o:e.textContent},{default:ce(()=>[re(l,{focusable:!e.disabled},{default:ce(()=>[re(s,Yt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:ce(()=>[Re(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var PH=Ue(Qbe,[["render",Jbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const e1e=te({name:"ElDropdownMenu",props:$be,setup(e){const t=Fe("dropdown"),{_elDropdownSize:n}=DH(),r=n.value,{focusTrapRef:a,onKeydown:i}=lt(xA,void 0),{contentRef:o,role:s,triggerId:l}=lt(L_,void 0),{collectionRef:u,getItems:c}=lt(Hbe,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:d,tabIndex:h,onBlur:v,onFocus:p,onMousedown:g}=lt(NA,void 0),{collectionRef:m}=lt(OA,void 0),b=R(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),_=b_(o,u,a,f,m),S=cr(C=>{var w;(w=e.onKeydown)==null||w.call(e,C)},C=>{const{currentTarget:w,code:k,target:M}=C;if(w.contains(M),vt.tab===k&&C.stopImmediatePropagation(),C.preventDefault(),M!==y(o)||!Vbe.includes(k))return;const E=c().filter(D=>!D.disabled).map(D=>D.ref);IH.includes(k)&&E.reverse(),$A(E)});return{size:r,rovingFocusGroupRootStyle:d,tabIndex:h,dropdownKls:b,role:s,triggerId:l,dropdownListWrapperRef:_,handleKeydown:C=>{S(C),i(C)},onBlur:v,onFocus:p,onMousedown:g}}}),t1e=["role","aria-labelledby"];function n1e(e,t,n,r,a,i){return $(),Z("ul",{ref:e.dropdownListWrapperRef,class:W(e.dropdownKls),style:ft(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]=_t((...o)=>e.handleKeydown&&e.handleKeydown(...o),["self"])),onMousedown:t[3]||(t[3]=_t((...o)=>e.onMousedown&&e.onMousedown(...o),["self"]))},[Re(e.$slots,"default")],46,t1e)}var LH=Ue(e1e,[["render",n1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const r1e=Ht(jbe,{DropdownItem:PH,DropdownMenu:LH}),a1e=fr(PH),i1e=fr(LH),o1e={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},s1e=["id"],l1e=["stop-color"],u1e=["stop-color"],c1e=["id"],f1e=["stop-color"],d1e=["stop-color"],h1e=["id"],v1e={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},p1e={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},g1e={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},m1e=["fill"],y1e=["fill"],b1e={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)"},_1e=["fill"],w1e=["fill"],S1e=["fill"],C1e=["fill"],x1e=["fill"],T1e={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},k1e=["fill","xlink:href"],M1e=["fill","mask"],A1e=["fill"],E1e=te({name:"ImgEmpty"}),I1e=te({...E1e,setup(e){const t=Fe("empty"),n=Xi();return(r,a)=>($(),Z("svg",o1e,[ee("defs",null,[ee("linearGradient",{id:`linearGradient-1-${y(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[ee("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,l1e),ee("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,u1e)],8,s1e),ee("linearGradient",{id:`linearGradient-2-${y(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[ee("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,f1e),ee("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,d1e)],8,c1e),ee("rect",{id:`path-3-${y(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,h1e)]),ee("g",v1e,[ee("g",p1e,[ee("g",g1e,[ee("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),ee("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,y1e),ee("g",b1e,[ee("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,_1e),ee("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,w1e),ee("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,S1e),ee("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,C1e)]),ee("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${y(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,x1e),ee("g",T1e,[ee("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,k1e),ee("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,M1e)]),ee("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,A1e)])])])]))}});var D1e=Ue(I1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const P1e=je({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),L1e=["src"],R1e={key:1},O1e=te({name:"ElEmpty"}),N1e=te({...O1e,props:P1e,setup(e){const t=e,{t:n}=pn(),r=Fe("empty"),a=R(()=>t.description||n("el.table.emptyText")),i=R(()=>({width:gr(t.imageSize)}));return(o,s)=>($(),Z("div",{class:W(y(r).b())},[ee("div",{class:W(y(r).e("image")),style:ft(y(i))},[o.image?($(),Z("img",{key:0,src:o.image,ondragstart:"return false"},null,8,L1e)):Re(o.$slots,"image",{key:1},()=>[re(D1e)])],6),ee("div",{class:W(y(r).e("description"))},[o.$slots.description?Re(o.$slots,"description",{key:0}):($(),Z("p",R1e,Ke(y(a)),1))],2),o.$slots.default?($(),Z("div",{key:0,class:W(y(r).e("bottom"))},[Re(o.$slots,"default")],2)):me("v-if",!0)],2))}});var $1e=Ue(N1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const RH=Ht($1e),B1e=je({urlList:{type:ye(Array),default:()=>nr([])},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}}),V1e={close:()=>!0,switch:e=>Tt(e),rotate:e=>Tt(e)},F1e=["src"],z1e=te({name:"ElImageViewer"}),H1e=te({...z1e,props:B1e,emits:V1e,setup(e,{expose:t,emit:n}){const r=e,a={CONTAIN:{name:"contain",icon:tu(bse)},ORIGINAL:{name:"original",icon:tu(Vse)}},{t:i}=pn(),o=Fe("image-viewer"),{nextZIndex:s}=Bh(),l=U(),u=U([]),c=G5(),f=U(!0),d=U(r.initialIndex),h=zn(a.CONTAIN),v=U({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),p=R(()=>{const{urlList:L}=r;return L.length<=1}),g=R(()=>d.value===0),m=R(()=>d.value===r.urlList.length-1),b=R(()=>r.urlList[d.value]),_=R(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!r.infinite&&g.value)]),S=R(()=>[o.e("btn"),o.e("next"),o.is("disabled",!r.infinite&&m.value)]),x=R(()=>{const{scale:L,deg:G,offsetX:q,offsetY:Q,enableTransition:ie}=v.value;let de=q/L,oe=Q/L;switch(G%360){case 90:case-270:[de,oe]=[oe,-de];break;case 180:case-180:[de,oe]=[-de,-oe];break;case 270:case-90:[de,oe]=[-oe,de];break}const se={transform:`scale(${L}) rotate(${G}deg) translate(${de}px, ${oe}px)`,transition:ie?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(se.maxWidth=se.maxHeight="100%"),se}),C=R(()=>Tt(r.zIndex)?r.zIndex:s());function w(){M(),n("close")}function k(){const L=Qc(q=>{switch(q.code){case vt.esc:r.closeOnPressEscape&&w();break;case vt.space:N();break;case vt.left:F();break;case vt.up:V("zoomIn");break;case vt.right:B();break;case vt.down:V("zoomOut");break}}),G=Qc(q=>{const Q=q.deltaY||q.deltaX;V(Q<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});c.run(()=>{Qn(document,"keydown",L),Qn(document,"wheel",G)})}function M(){c.stop()}function I(){f.value=!1}function E(L){f.value=!1,L.target.alt=i("el.image.error")}function D(L){if(f.value||L.button!==0||!l.value)return;v.value.enableTransition=!1;const{offsetX:G,offsetY:q}=v.value,Q=L.pageX,ie=L.pageY,de=Qc(se=>{v.value={...v.value,offsetX:G+se.pageX-Q,offsetY:q+se.pageY-ie}}),oe=Qn(document,"mousemove",de);Qn(document,"mouseup",()=>{oe()}),L.preventDefault()}function P(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function N(){if(f.value)return;const L=ug(a),G=Object.values(a),q=h.value.name,ie=(G.findIndex(de=>de.name===q)+1)%L.length;h.value=a[L[ie]],P()}function z(L){const G=r.urlList.length;d.value=(L+G)%G}function F(){g.value&&!r.infinite||z(d.value-1)}function B(){m.value&&!r.infinite||z(d.value+1)}function V(L,G={}){if(f.value)return;const{zoomRate:q,rotateDeg:Q,enableTransition:ie}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...G};switch(L){case"zoomOut":v.value.scale>.2&&(v.value.scale=Number.parseFloat((v.value.scale/q).toFixed(3)));break;case"zoomIn":v.value.scale<7&&(v.value.scale=Number.parseFloat((v.value.scale*q).toFixed(3)));break;case"clockwise":v.value.deg+=Q,n("rotate",v.value.deg);break;case"anticlockwise":v.value.deg-=Q,n("rotate",v.value.deg);break}v.value.enableTransition=ie}return Be(b,()=>{ct(()=>{const L=u.value[0];L!=null&&L.complete||(f.value=!0)})}),Be(d,L=>{P(),n("switch",L)}),Ft(()=>{var L,G;k(),(G=(L=l.value)==null?void 0:L.focus)==null||G.call(L)}),t({setActiveItem:z}),(L,G)=>($(),Se(sm,{to:"body",disabled:!L.teleported},[re(xr,{name:"viewer-fade",appear:""},{default:ce(()=>[ee("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:W(y(o).e("wrapper")),style:ft({zIndex:y(C)})},[ee("div",{class:W(y(o).e("mask")),onClick:G[0]||(G[0]=_t(q=>L.hideOnClickModal&&w(),["self"]))},null,2),me(" CLOSE "),ee("span",{class:W([y(o).e("btn"),y(o).e("close")]),onClick:w},[re(y(ut),null,{default:ce(()=>[re(y(Do))]),_:1})],2),me(" ARROW "),y(p)?me("v-if",!0):($(),Z(dt,{key:0},[ee("span",{class:W(y(_)),onClick:F},[re(y(ut),null,{default:ce(()=>[re(y(hu))]),_:1})],2),ee("span",{class:W(y(S)),onClick:B},[re(y(ut),null,{default:ce(()=>[re(y(Ra))]),_:1})],2)],64)),me(" ACTIONS "),ee("div",{class:W([y(o).e("btn"),y(o).e("actions")])},[ee("div",{class:W(y(o).e("actions__inner"))},[re(y(ut),{onClick:G[1]||(G[1]=q=>V("zoomOut"))},{default:ce(()=>[re(y(nle))]),_:1}),re(y(ut),{onClick:G[2]||(G[2]=q=>V("zoomIn"))},{default:ce(()=>[re(y(i6))]),_:1}),ee("i",{class:W(y(o).e("actions__divider"))},null,2),re(y(ut),{onClick:N},{default:ce(()=>[($(),Se(qt(y(h).icon)))]),_:1}),ee("i",{class:W(y(o).e("actions__divider"))},null,2),re(y(ut),{onClick:G[3]||(G[3]=q=>V("anticlockwise"))},{default:ce(()=>[re(y(Ose))]),_:1}),re(y(ut),{onClick:G[4]||(G[4]=q=>V("clockwise"))},{default:ce(()=>[re(y($se))]),_:1})],2)],2),me(" CANVAS "),ee("div",{class:W(y(o).e("canvas"))},[($(!0),Z(dt,null,an(L.urlList,(q,Q)=>Ot(($(),Z("img",{ref_for:!0,ref:ie=>u.value[Q]=ie,key:q,src:q,style:ft(y(x)),class:W(y(o).e("img")),onLoad:I,onError:E,onMousedown:D},null,46,F1e)),[[bn,Q===d.value]])),128))],2),Re(L.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var W1e=Ue(H1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const OH=Ht(W1e),G1e=je({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:ye([String,Object])},previewSrcList:{type:ye(Array),default:()=>nr([])},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}}),K1e={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Tt(e),close:()=>!0,show:()=>!0},U1e=["src","loading"],j1e={key:0},Y1e=te({name:"ElImage",inheritAttrs:!1}),q1e=te({...Y1e,props:G1e,emits:K1e,setup(e,{emit:t}){const n=e;let r="";const{t:a}=pn(),i=Fe("image"),o=xf(),s=iA(),l=U(),u=U(!1),c=U(!0),f=U(!1),d=U(),h=U(),v=fn&&"loading"in HTMLImageElement.prototype;let p,g;const m=R(()=>[i.e("inner"),S.value&&i.e("preview"),c.value&&i.is("loading")]),b=R(()=>o.style),_=R(()=>{const{fit:V}=n;return fn&&V?{objectFit:V}:{}}),S=R(()=>{const{previewSrcList:V}=n;return Array.isArray(V)&&V.length>0}),x=R(()=>{const{previewSrcList:V,initialIndex:L}=n;let G=L;return L>V.length-1&&(G=0),G}),C=R(()=>n.loading==="eager"?!1:!v&&n.loading==="lazy"||n.lazy),w=()=>{fn&&(c.value=!0,u.value=!1,l.value=n.src)};function k(V){c.value=!1,u.value=!1,t("load",V)}function M(V){c.value=!1,u.value=!0,t("error",V)}function I(){Eee(d.value,h.value)&&(w(),P())}const E=dz(I,200,!0);async function D(){var V;if(!fn)return;await ct();const{scrollContainer:L}=n;ji(L)?h.value=L:At(L)&&L!==""?h.value=(V=document.querySelector(L))!=null?V:void 0:d.value&&(h.value=JM(d.value)),h.value&&(p=Qn(h,"scroll",E),setTimeout(()=>I(),100))}function P(){!fn||!h.value||!E||(p==null||p(),h.value=void 0)}function N(V){if(V.ctrlKey){if(V.deltaY<0)return V.preventDefault(),!1;if(V.deltaY>0)return V.preventDefault(),!1}}function z(){S.value&&(g=Qn("wheel",N,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function F(){g==null||g(),document.body.style.overflow=r,f.value=!1,t("close")}function B(V){t("switch",V)}return Be(()=>n.src,()=>{C.value?(c.value=!0,u.value=!1,P(),D()):w()}),Ft(()=>{C.value?D():w()}),(V,L)=>($(),Z("div",{ref_key:"container",ref:d,class:W([y(i).b(),V.$attrs.class]),style:ft(y(b))},[u.value?Re(V.$slots,"error",{key:0},()=>[ee("div",{class:W(y(i).e("error"))},Ke(y(a)("el.image.error")),3)]):($(),Z(dt,{key:1},[l.value!==void 0?($(),Z("img",Yt({key:0},y(s),{src:l.value,loading:V.loading,style:y(_),class:y(m),onClick:z,onLoad:k,onError:M}),null,16,U1e)):me("v-if",!0),c.value?($(),Z("div",{key:1,class:W(y(i).e("wrapper"))},[Re(V.$slots,"placeholder",{},()=>[ee("div",{class:W(y(i).e("placeholder"))},null,2)])],2)):me("v-if",!0)],64)),y(S)?($(),Z(dt,{key:2},[f.value?($(),Se(y(OH),{key:0,"z-index":V.zIndex,"initial-index":y(x),infinite:V.infinite,"zoom-rate":V.zoomRate,"url-list":V.previewSrcList,"hide-on-click-modal":V.hideOnClickModal,teleported:V.previewTeleported,"close-on-press-escape":V.closeOnPressEscape,onClose:F,onSwitch:B},{default:ce(()=>[V.$slots.viewer?($(),Z("div",j1e,[Re(V.$slots,"viewer")])):me("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):me("v-if",!0)],64)):me("v-if",!0)],6))}});var X1e=Ue(q1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const Z1e=Ht(X1e),Q1e=je({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:la,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||Tt(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}}),J1e={[qn]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Oa]:e=>Tt(e)||Lr(e),[Gt]:e=>Tt(e)||Lr(e)},e_e=["aria-label","onKeydown"],t_e=["aria-label","onKeydown"],n_e=te({name:"ElInputNumber"}),r_e=te({...n_e,props:Q1e,emits:J1e,setup(e,{expose:t,emit:n}){const r=e,{t:a}=pn(),i=Fe("input-number"),o=U(),s=Sn({currentValue:r.modelValue,userInput:null}),{formItem:l}=Ga(),u=R(()=>Tt(r.modelValue)&&r.modelValue<=r.min),c=R(()=>Tt(r.modelValue)&&r.modelValue>=r.max),f=R(()=>{const P=m(r.step);return Vr(r.precision)?Math.max(m(r.modelValue),P):(P>r.precision,r.precision)}),d=R(()=>r.controls&&r.controlsPosition==="right"),h=$r(),v=li(),p=R(()=>{if(s.userInput!==null)return s.userInput;let P=s.currentValue;if(Lr(P))return"";if(Tt(P)){if(Number.isNaN(P))return"";Vr(r.precision)||(P=P.toFixed(r.precision))}return P}),g=(P,N)=>{if(Vr(N)&&(N=f.value),N===0)return Math.round(P);let z=String(P);const F=z.indexOf(".");if(F===-1||!z.replace(".","").split("")[F+N])return P;const L=z.length;return z.charAt(L-1)==="5"&&(z=`${z.slice(0,Math.max(0,L-1))}6`),Number.parseFloat(Number(z).toFixed(N))},m=P=>{if(Lr(P))return 0;const N=P.toString(),z=N.indexOf(".");let F=0;return z!==-1&&(F=N.length-z-1),F},b=(P,N=1)=>Tt(P)?g(P+r.step*N):s.currentValue,_=()=>{if(r.readonly||v.value||c.value)return;const P=Number(p.value)||0,N=b(P);C(N),n(Oa,s.currentValue)},S=()=>{if(r.readonly||v.value||u.value)return;const P=Number(p.value)||0,N=b(P,-1);C(N),n(Oa,s.currentValue)},x=(P,N)=>{const{max:z,min:F,step:B,precision:V,stepStrictly:L,valueOnClear:G}=r;z<F&&Nr("InputNumber","min should not be greater than max.");let q=Number(P);if(Lr(P)||Number.isNaN(q))return null;if(P===""){if(G===null)return null;q=At(G)?{min:F,max:z}[G]:G}return L&&(q=g(Math.round(q/B)*B,V)),Vr(V)||(q=g(q,V)),(q>z||q<F)&&(q=q>z?z:F,N&&n(Gt,q)),q},C=(P,N=!0)=>{var z;const F=s.currentValue,B=x(P);if(!N){n(Gt,B);return}F!==B&&(s.userInput=null,n(Gt,B),n(qn,B,F),r.validateEvent&&((z=l==null?void 0:l.validate)==null||z.call(l,"change").catch(V=>void 0)),s.currentValue=B)},w=P=>{s.userInput=P;const N=P===""?null:Number(P);n(Oa,N),C(N,!1)},k=P=>{const N=P!==""?Number(P):"";(Tt(N)&&!Number.isNaN(N)||P==="")&&C(N),s.userInput=null},M=()=>{var P,N;(N=(P=o.value)==null?void 0:P.focus)==null||N.call(P)},I=()=>{var P,N;(N=(P=o.value)==null?void 0:P.blur)==null||N.call(P)},E=P=>{n("focus",P)},D=P=>{var N;n("blur",P),r.validateEvent&&((N=l==null?void 0:l.validate)==null||N.call(l,"blur").catch(z=>void 0))};return Be(()=>r.modelValue,P=>{const N=x(s.userInput),z=x(P,!0);!Tt(N)&&(!N||N!==z)&&(s.currentValue=z,s.userInput=null)},{immediate:!0}),Ft(()=>{var P;const{min:N,max:z,modelValue:F}=r,B=(P=o.value)==null?void 0:P.input;if(B.setAttribute("role","spinbutton"),Number.isFinite(z)?B.setAttribute("aria-valuemax",String(z)):B.removeAttribute("aria-valuemax"),Number.isFinite(N)?B.setAttribute("aria-valuemin",String(N)):B.removeAttribute("aria-valuemin"),B.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),B.setAttribute("aria-disabled",String(v.value)),!Tt(F)&&F!=null){let V=Number(F);Number.isNaN(V)&&(V=null),n(Gt,V)}}),cl(()=>{var P,N;const z=(P=o.value)==null?void 0:P.input;z==null||z.setAttribute("aria-valuenow",`${(N=s.currentValue)!=null?N:""}`)}),t({focus:M,blur:I}),(P,N)=>($(),Z("div",{class:W([y(i).b(),y(i).m(y(h)),y(i).is("disabled",y(v)),y(i).is("without-controls",!P.controls),y(i).is("controls-right",y(d))]),onDragstart:N[1]||(N[1]=_t(()=>{},["prevent"]))},[P.controls?Ot(($(),Z("span",{key:0,role:"button","aria-label":y(a)("el.inputNumber.decrease"),class:W([y(i).e("decrease"),y(i).is("disabled",y(u))]),onKeydown:vn(S,["enter"])},[re(y(ut),null,{default:ce(()=>[y(d)?($(),Se(y(Au),{key:0})):($(),Se(y(Tse),{key:1}))]),_:1})],42,e_e)),[[y(Bb),S]]):me("v-if",!0),P.controls?Ot(($(),Z("span",{key:1,role:"button","aria-label":y(a)("el.inputNumber.increase"),class:W([y(i).e("increase"),y(i).is("disabled",y(c))]),onKeydown:vn(_,["enter"])},[re(y(ut),null,{default:ce(()=>[y(d)?($(),Se(y(m_),{key:0})):($(),Se(y(r6),{key:1}))]),_:1})],42,t_e)),[[y(Bb),_]]):me("v-if",!0),re(y(ba),{id:P.id,ref_key:"input",ref:o,type:"number",step:P.step,"model-value":y(p),placeholder:P.placeholder,readonly:P.readonly,disabled:y(v),size:y(h),max:P.max,min:P.min,name:P.name,label:P.label,"validate-event":!1,onWheel:N[0]||(N[0]=_t(()=>{},["prevent"])),onKeydown:[vn(_t(_,["prevent"]),["up"]),vn(_t(S,["prevent"]),["down"])],onBlur:D,onFocus:E,onInput:w,onChange:k},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var a_e=Ue(r_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const NH=Ht(a_e),i_e=je({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:Wn}}),o_e={click:e=>e instanceof MouseEvent},s_e=["href"],l_e=te({name:"ElLink"}),u_e=te({...l_e,props:i_e,emits:o_e,setup(e,{emit:t}){const n=e,r=Fe("link"),a=R(()=>[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)=>($(),Z("a",{class:W(y(a)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?($(),Se(y(ut),{key:0},{default:ce(()=>[($(),Se(qt(o.icon)))]),_:1})):me("v-if",!0),o.$slots.default?($(),Z("span",{key:1,class:W(y(r).e("inner"))},[Re(o.$slots,"default")],2)):me("v-if",!0),o.$slots.icon?Re(o.$slots,"icon",{key:2}):me("v-if",!0)],10,s_e))}});var c_e=Ue(u_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const f_e=Ht(c_e);let d_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 vt.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case vt.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case vt.tab:{P0(t,"mouseleave");break}case vt.enter:case vt.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}},h_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 d_e(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case vt.down:{P0(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case vt.up:{P0(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case vt.tab:{P0(t.currentTarget,"mouseleave");break}case vt.enter:case vt.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},v_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 h_e(r,t)})}};const p_e=te({name:"ElMenuCollapseTransition",setup(){const e=Fe("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){ss(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){ri(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),ko(n,e.m("collapse"))?(ri(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),ss(n,e.m("collapse"))):(ss(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),ri(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){ss(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function g_e(e,t,n,r,a,i){return $(),Se(xr,Yt({mode:"out-in"},e.listeners),{default:ce(()=>[Re(e.$slots,"default")]),_:3},16)}var m_e=Ue(p_e,[["render",g_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function $H(e,t){const n=R(()=>{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:R(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function y_e(e){return R(()=>{const n=e.backgroundColor;return n?new v8(n).shade(20).toString():""})}const BH=(e,t)=>{const n=Fe("menu");return R(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":y_e(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},b_e=je({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:Wn},expandOpenIcon:{type:Wn},collapseCloseIcon:{type:Wn},collapseOpenIcon:{type:Wn}}),wy="ElSubMenu";var BA=te({name:wy,props:b_e,setup(e,{slots:t,expose:n}){ms({from:"popper-append-to-body",replacement:"teleported",scope:wy,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},R(()=>e.popperAppendToBody!==void 0));const r=Bt(),{indexPath:a,parentMenu:i}=$H(r,R(()=>e.index)),o=Fe("menu"),s=Fe("sub-menu"),l=lt("rootMenu");l||Nr(wy,"can not inject root menu");const u=lt(`subMenu:${i.value.uid}`);u||Nr(wy,"can not inject sub menu");const c=U({}),f=U({});let d;const h=U(!1),v=U(),p=U(null),g=R(()=>E.value==="horizontal"&&b.value?"bottom-start":"right-start"),m=R(()=>E.value==="horizontal"&&b.value||E.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?C.value?e.expandOpenIcon:e.expandCloseIcon:Au:e.collapseCloseIcon&&e.collapseOpenIcon?C.value?e.collapseOpenIcon:e.collapseCloseIcon:Ra),b=R(()=>u.level===0),_=R(()=>{var G;const q=(G=e.teleported)!=null?G:e.popperAppendToBody;return q===void 0?b.value:q}),S=R(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),x=R(()=>E.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"]),C=R(()=>l.openedMenus.includes(e.index)),w=R(()=>{let G=!1;return Object.values(c.value).forEach(q=>{q.active&&(G=!0)}),Object.values(f.value).forEach(q=>{q.active&&(G=!0)}),G}),k=R(()=>l.props.backgroundColor||""),M=R(()=>l.props.activeTextColor||""),I=R(()=>l.props.textColor||""),E=R(()=>l.props.mode),D=Sn({index:e.index,indexPath:a,active:w}),P=BH(l.props,u.level+1),N=R(()=>E.value!=="horizontal"?{color:I.value}:{borderBottomColor:w.value?l.props.activeTextColor?M.value:"":"transparent",color:w.value?M.value:I.value}),z=()=>{var G,q,Q;return(Q=(q=(G=p.value)==null?void 0:G.popperRef)==null?void 0:q.popperInstanceRef)==null?void 0:Q.destroy()},F=G=>{G||z()},B=()=>{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:w.value})},V=(G,q=e.showTimeout)=>{var Q;G.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}=ff(()=>{l.openMenu(e.index,a.value)},q),_.value&&((Q=i.value.vnode.el)==null||Q.dispatchEvent(new MouseEvent("mouseenter")))))},L=(G=!1)=>{var q,Q;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=ff(()=>!h.value&&l.closeMenu(e.index,a.value),e.hideTimeout),_.value&&G&&((q=r.parent)==null?void 0:q.type.name)==="ElSubMenu"&&((Q=u.handleMouseleave)==null||Q.call(u,!0)))};Be(()=>l.props.collapse,G=>F(!!G));{const G=Q=>{f.value[Q.index]=Q},q=Q=>{delete f.value[Q.index]};Jt(`subMenu:${r.uid}`,{addSubMenu:G,removeSubMenu:q,handleMouseleave:L,mouseInChild:h,level:u.level+1})}return n({opened:C}),Ft(()=>{l.addSubMenu(D),u.addSubMenu(D)}),er(()=>{u.removeSubMenu(D),l.removeSubMenu(D)}),()=>{var G;const q=[(G=t.title)==null?void 0:G.call(t),pt(ut,{class:s.e("icon-arrow"),style:{transform:C.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>At(m.value)?pt(r.appContext.components[m.value]):pt(m.value)})],Q=l.isMenuPopup?pt(Fa,{ref:p,visible:C.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:_.value,fallbackPlacements:x.value,transition:S.value,gpuAcceleration:!1},{content:()=>{var ie;return pt("div",{class:[o.m(E.value),o.m("popup-container"),e.popperClass],onMouseenter:de=>V(de,100),onMouseleave:()=>L(!0),onFocus:de=>V(de,100)},[pt("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:P.value},[(ie=t.default)==null?void 0:ie.call(t)])])},default:()=>pt("div",{class:s.e("title"),style:[N.value,{backgroundColor:k.value}],onClick:B},q)}):pt(dt,{},[pt("div",{class:s.e("title"),style:[N.value,{backgroundColor:k.value}],ref:v,onClick:B},q),pt(P_,{},{default:()=>{var ie;return Ot(pt("ul",{role:"menu",class:[o.b(),o.m("inline")],style:P.value},[(ie=t.default)==null?void 0:ie.call(t)]),[[bn,C.value]])}})]);return pt("li",{class:[s.b(),s.is("active",w.value),s.is("opened",C.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:C.value,onMouseenter:V,onMouseleave:()=>L(!0),onFocus:V},[Q])}}});const __e=je({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ye(Array),default:()=>nr([])},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"}}),_S=e=>Array.isArray(e)&&e.every(t=>At(t)),w_e={close:(e,t)=>At(e)&&_S(t),open:(e,t)=>At(e)&&_S(t),select:(e,t,n,r)=>At(e)&&_S(t)&&Qt(n)&&(r===void 0||r instanceof Promise)};var S_e=te({name:"ElMenu",props:__e,emits:w_e,setup(e,{emit:t,slots:n,expose:r}){const a=Bt(),i=a.appContext.config.globalProperties.$router,o=U(),s=Fe("menu"),l=Fe("sub-menu"),u=U(-1),c=U(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=U(e.defaultActive),d=U({}),h=U({}),v=R(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const E=f.value&&d.value[f.value];if(!E||e.mode==="horizontal"||e.collapse)return;E.indexPath.forEach(P=>{const N=h.value[P];N&&g(P,N.indexPath)})},g=(E,D)=>{c.value.includes(E)||(e.uniqueOpened&&(c.value=c.value.filter(P=>D.includes(P))),c.value.push(E),t("open",E,D))},m=E=>{const D=c.value.indexOf(E);D!==-1&&c.value.splice(D,1)},b=(E,D)=>{m(E),t("close",E,D)},_=({index:E,indexPath:D})=>{c.value.includes(E)?b(E,D):g(E,D)},S=E=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:D,indexPath:P}=E;if(!(Lr(D)||Lr(P)))if(e.router&&i){const N=E.route||D,z=i.push(N).then(F=>(F||(f.value=D),F));t("select",D,P,{index:D,indexPath:P,route:N},z)}else f.value=D,t("select",D,P,{index:D,indexPath:P})},x=E=>{const D=d.value,P=D[E]||f.value&&D[f.value]||D[e.defaultActive];P?f.value=P.index:f.value=E},C=()=>{var E,D;if(!o.value)return-1;const P=Array.from((D=(E=o.value)==null?void 0:E.childNodes)!=null?D:[]).filter(G=>G.nodeName!=="#comment"&&(G.nodeName!=="#text"||G.nodeValue)),N=64,z=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),F=Number.parseInt(getComputedStyle(o.value).paddingRight,10),B=o.value.clientWidth-z-F;let V=0,L=0;return P.forEach((G,q)=>{V+=G.offsetWidth||0,V<=B-N&&(L=q+1)}),L===P.length?-1:L},w=(E,D=33.34)=>{let P;return()=>{P&&clearTimeout(P),P=setTimeout(()=>{E()},D)}};let k=!0;const M=()=>{const E=()=>{u.value=-1,ct(()=>{u.value=C()})};k?E():w(E)(),k=!1};Be(()=>e.defaultActive,E=>{d.value[E]||(f.value=""),x(E)}),Be(()=>e.collapse,E=>{E&&(c.value=[])}),Be(d.value,p);let I;yi(()=>{e.mode==="horizontal"&&e.ellipsis?I=wa(o,M).stop:I==null||I()});{const E=z=>{h.value[z.index]=z},D=z=>{delete h.value[z.index]};Jt("rootMenu",Sn({props:e,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:v,addMenuItem:z=>{d.value[z.index]=z},removeMenuItem:z=>{delete d.value[z.index]},addSubMenu:E,removeSubMenu:D,openMenu:g,closeMenu:b,handleMenuItemClick:S,handleSubMenuClick:_})),Jt(`subMenu:${a.uid}`,{addSubMenu:E,removeSubMenu:D,mouseInChild:U(!1),level:0})}return Ft(()=>{e.mode==="horizontal"&&new v_e(a.vnode.el,s.namespace.value)}),r({open:D=>{const{indexPath:P}=h.value[D];P.forEach(N=>g(N,P))},close:m,handleResize:M}),()=>{var E,D;let P=(D=(E=n.default)==null?void 0:E.call(n))!=null?D:[];const N=[];if(e.mode==="horizontal"&&o.value){const B=Bd(P),V=u.value===-1?B:B.slice(0,u.value),L=u.value===-1?[]:B.slice(u.value);L!=null&&L.length&&e.ellipsis&&(P=V,N.push(pt(BA,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>pt(ut,{class:l.e("icon-more")},{default:()=>pt(Ase)}),default:()=>L})))}const z=BH(e,0),F=pt("ul",{key:String(e.collapse),role:"menubar",ref:o,style:z.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...P,...N]);return e.collapseTransition&&e.mode==="vertical"?pt(m_e,()=>F):F}}});const C_e=je({index:{type:ye([String,null]),default:null},route:{type:ye([String,Object])},disabled:Boolean}),x_e={click:e=>At(e.index)&&Array.isArray(e.indexPath)},wS="ElMenuItem",T_e=te({name:wS,components:{ElTooltip:Fa},props:C_e,emits:x_e,setup(e,{emit:t}){const n=Bt(),r=lt("rootMenu"),a=Fe("menu"),i=Fe("menu-item");r||Nr(wS,"can not inject root menu");const{parentMenu:o,indexPath:s}=$H(n,or(e,"index")),l=lt(`subMenu:${o.value.uid}`);l||Nr(wS,"can not inject sub menu");const u=R(()=>e.index===r.activeIndex),c=Sn({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 Ft(()=>{l.addSubMenu(c),r.addMenuItem(c)}),er(()=>{l.removeSubMenu(c),r.removeMenuItem(c)}),{parentMenu:o,rootMenu:r,active:u,nsMenu:a,nsMenuItem:i,handleClick:f}}});function k_e(e,t,n,r,a,i){const o=Pt("el-tooltip");return $(),Z("li",{class:W([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?($(),Se(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:ce(()=>[Re(e.$slots,"title")]),default:ce(()=>[ee("div",{class:W(e.nsMenu.be("tooltip","trigger"))},[Re(e.$slots,"default")],2)]),_:3},8,["effect"])):($(),Z(dt,{key:1},[Re(e.$slots,"default"),Re(e.$slots,"title")],64))],2)}var VH=Ue(T_e,[["render",k_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const M_e={title:String},A_e="ElMenuItemGroup",E_e=te({name:A_e,props:M_e,setup(){return{ns:Fe("menu-item-group")}}});function I_e(e,t,n,r,a,i){return $(),Z("li",{class:W(e.ns.b())},[ee("div",{class:W(e.ns.e("title"))},[e.$slots.title?Re(e.$slots,"title",{key:1}):($(),Z(dt,{key:0},[_n(Ke(e.title),1)],64))],2),ee("ul",null,[Re(e.$slots,"default")])],2)}var FH=Ue(E_e,[["render",I_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const D_e=Ht(S_e,{MenuItem:VH,MenuItemGroup:FH,SubMenu:BA}),P_e=fr(VH),L_e=fr(FH),R_e=fr(BA),O_e=je({icon:{type:Wn,default:()=>Yoe},title:String,content:{type:String,default:""}}),N_e={back:()=>!0},$_e=["aria-label"],B_e=te({name:"ElPageHeader"}),V_e=te({...B_e,props:O_e,emits:N_e,setup(e,{emit:t}){const n=da(),{t:r}=pn(),a=Fe("page-header"),i=R(()=>[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)=>($(),Z("div",{class:W(y(i))},[s.$slots.breadcrumb?($(),Z("div",{key:0,class:W(y(a).e("breadcrumb"))},[Re(s.$slots,"breadcrumb")],2)):me("v-if",!0),ee("div",{class:W(y(a).e("header"))},[ee("div",{class:W(y(a).e("left"))},[ee("div",{class:W(y(a).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?($(),Z("div",{key:0,"aria-label":s.title||y(r)("el.pageHeader.title"),class:W(y(a).e("icon"))},[Re(s.$slots,"icon",{},()=>[s.icon?($(),Se(y(ut),{key:0},{default:ce(()=>[($(),Se(qt(s.icon)))]),_:1})):me("v-if",!0)])],10,$_e)):me("v-if",!0),ee("div",{class:W(y(a).e("title"))},[Re(s.$slots,"title",{},()=>[_n(Ke(s.title||y(r)("el.pageHeader.title")),1)])],2)],2),re(y(TH),{direction:"vertical"}),ee("div",{class:W(y(a).e("content"))},[Re(s.$slots,"content",{},()=>[_n(Ke(s.content),1)])],2)],2),s.$slots.extra?($(),Z("div",{key:0,class:W(y(a).e("extra"))},[Re(s.$slots,"extra")],2)):me("v-if",!0)],2),s.$slots.default?($(),Z("div",{key:1,class:W(y(a).e("main"))},[Re(s.$slots,"default")],2)):me("v-if",!0)],2))}});var F_e=Ue(V_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const z_e=Ht(F_e),zH=Symbol("elPaginationKey"),H_e=je({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Wn}}),W_e={click:e=>e instanceof MouseEvent},G_e=["disabled","aria-label","aria-disabled"],K_e={key:0},U_e=te({name:"ElPaginationPrev"}),j_e=te({...U_e,props:H_e,emits:W_e,setup(e){const t=e,{t:n}=pn(),r=R(()=>t.disabled||t.currentPage<=1);return(a,i)=>($(),Z("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?($(),Z("span",K_e,Ke(a.prevText),1)):($(),Se(y(ut),{key:1},{default:ce(()=>[($(),Se(qt(a.prevIcon)))]),_:1}))],8,G_e))}});var Y_e=Ue(j_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const q_e=je({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Wn}}),X_e=["disabled","aria-label","aria-disabled"],Z_e={key:0},Q_e=te({name:"ElPaginationNext"}),J_e=te({...Q_e,props:q_e,emits:["click"],setup(e){const t=e,{t:n}=pn(),r=R(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,i)=>($(),Z("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?($(),Z("span",Z_e,Ke(a.nextText),1)):($(),Se(y(ut),{key:1},{default:ce(()=>[($(),Se(qt(a.nextIcon)))]),_:1}))],8,X_e))}});var ewe=Ue(J_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const HH=Symbol("ElSelectGroup"),bm=Symbol("ElSelect");function twe(e,t){const n=lt(bm),r=lt(HH,{disabled:!1}),a=R(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),i=R(()=>n.props.multiple?f(n.props.modelValue,e.value):d(e.value,n.props.modelValue)),o=R(()=>{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=R(()=>e.label||(a.value?"":e.value)),l=R(()=>e.value||e.label||""),u=R(()=>e.disabled||t.groupDisabled||o.value),c=Bt(),f=(p=[],g)=>{if(a.value){const m=n.props.valueKey;return p&&p.some(b=>En(tr(b,m))===tr(g,m))}else return p&&p.includes(g)},d=(p,g)=>{if(a.value){const{valueKey:m}=n.props;return tr(p,m)===tr(g,m)}else return p===g},h=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};Be(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),Be(()=>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()}}),Be(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:v}=En(n);return Be(v,p=>{const{query:g}=y(p),m=new RegExp(Zz(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 nwe=te({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Fe("select"),n=R(()=>[t.be("dropdown","item"),t.is("disabled",y(o)),{selected:y(i),hover:y(c)}]),r=Sn({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l}=twe(e,r),{visible:u,hover:c}=Ur(r),f=Bt().proxy;s.onOptionCreate(f),er(()=>{const h=f.value,{selected:v}=s,g=(s.props.multiple?v:[v]).some(m=>m.value===f.value);ct(()=>{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 rwe(e,t,n,r,a,i){return Ot(($(),Z("li",{class:W(e.containerKls),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=_t((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[Re(e.$slots,"default",{},()=>[ee("span",null,Ke(e.currentLabel),1)])],34)),[[bn,e.visible]])}var VA=Ue(nwe,[["render",rwe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const awe=te({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=lt(bm),t=Fe("select"),n=R(()=>e.props.popperClass),r=R(()=>e.props.multiple),a=R(()=>e.props.fitInputWidth),i=U("");function o(){var s;i.value=`${(s=e.selectWrapper)==null?void 0:s.offsetWidth}px`}return Ft(()=>{o(),wa(e.selectWrapper,o)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function iwe(e,t,n,r,a,i){return $(),Z("div",{class:W([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:ft({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[Re(e.$slots,"default")],6)}var owe=Ue(awe,[["render",iwe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function swe(e){const{t}=pn();return Sn({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 lwe=(e,t,n)=>{const{t:r}=pn(),a=Fe("select");ms({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},R(()=>e.suffixTransition===!1));const i=U(null),o=U(null),s=U(null),l=U(null),u=U(null),c=U(null),f=U(null),d=U(null),h=U(-1),v=zn({query:""}),p=zn(""),g=U([]);let m=0;const{form:b,formItem:_}=Ga(),S=R(()=>!e.filterable||e.multiple||!t.visible),x=R(()=>e.disabled||(b==null?void 0:b.disabled)),C=R(()=>{const De=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!x.value&&t.inputHovering&&De}),w=R(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),k=R(()=>a.is("reverse",w.value&&t.visible&&e.suffixTransition)),M=R(()=>(b==null?void 0:b.statusIcon)&&(_==null?void 0:_.validateState)&&aA[_==null?void 0:_.validateState]),I=R(()=>e.remote?300:0),E=R(()=>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),D=R(()=>{const De=Array.from(t.options.values()),tt=[];return g.value.forEach(be=>{const Ze=De.findIndex(Wt=>Wt.currentLabel===be);Ze>-1&&tt.push(De[Ze])}),tt.length>=De.length?tt:De}),P=R(()=>Array.from(t.cachedOptions.values())),N=R(()=>{const De=D.value.filter(tt=>!tt.created).some(tt=>tt.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!De}),z=$r(),F=R(()=>["small"].includes(z.value)?"small":"default"),B=R({get(){return t.visible&&E.value!==!1},set(De){t.visible=De}});Be([()=>x.value,()=>z.value,()=>b==null?void 0:b.size],()=>{ct(()=>{V()})}),Be(()=>e.placeholder,De=>{t.cachedPlaceHolder=t.currentPlaceholder=De,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),Be(()=>e.modelValue,(De,tt)=>{e.multiple&&(V(),De&&De.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",L(t.query))),Q(),e.filterable&&!e.multiple&&(t.inputLength=20),!ni(De,tt)&&e.validateEvent&&(_==null||_.validate("change").catch(be=>void 0))},{flush:"post",deep:!0}),Be(()=>t.visible,De=>{var tt,be,Ze,Wt,hn;De?((be=(tt=l.value)==null?void 0:tt.updatePopper)==null||be.call(tt),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(Wt=(Ze=s.value)==null?void 0:Ze.focus)==null||Wt.call(Ze),e.multiple?(hn=o.value)==null||hn.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),L(t.query),!e.multiple&&!e.remote&&(v.value.query="",vv(v),vv(p)))):(e.filterable&&(kt(e.filterMethod)&&e.filterMethod(""),kt(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,de(),ct(()=>{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",De)}),Be(()=>t.options.entries(),()=>{var De,tt,be;if(!fn)return;(tt=(De=l.value)==null?void 0:De.updatePopper)==null||tt.call(De),e.multiple&&V();const Ze=((be=f.value)==null?void 0:be.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!Vr(e.modelValue)||!Array.from(Ze).includes(document.activeElement))&&Q(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&q()},{flush:"post"}),Be(()=>t.hoverIndex,De=>{Tt(De)&&De>-1?h.value=D.value[De]||{}:h.value={},D.value.forEach(tt=>{tt.hover=h.value===tt})});const V=()=>{ct(()=>{var De,tt;if(!i.value)return;const be=i.value.$el.querySelector("input");m=m||(be.clientHeight>0?be.clientHeight+2:0);const Ze=c.value,Wt=sle(z.value||(b==null?void 0:b.size)),hn=z.value||Wt===m||m<=0?Wt:m;!(be.offsetParent===null)&&(be.style.height=`${(t.selected.length===0?hn:Math.max(Ze?Ze.clientHeight+(Ze.clientHeight>hn?6:0):0,hn))-2}px`),t.visible&&E.value!==!1&&((tt=(De=l.value)==null?void 0:De.updatePopper)==null||tt.call(De))})},L=async De=>{if(!(t.previousQuery===De||t.isOnComposition)){if(t.previousQuery===null&&(kt(e.filterMethod)||kt(e.remoteMethod))){t.previousQuery=De;return}t.previousQuery=De,ct(()=>{var tt,be;t.visible&&((be=(tt=l.value)==null?void 0:tt.updatePopper)==null||be.call(tt))}),t.hoverIndex=-1,e.multiple&&e.filterable&&ct(()=>{if(!x.value){const tt=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,tt):tt,G()}V()}),e.remote&&kt(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(De)):kt(e.filterMethod)?(e.filterMethod(De),vv(p)):(t.filteredOptionsCount=t.optionsCount,v.value.query=De,vv(v),vv(p)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await ct(),q())}},G=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},q=()=>{const De=D.value.filter(Ze=>Ze.visible&&!Ze.disabled&&!Ze.states.groupDisabled),tt=De.find(Ze=>Ze.created),be=De[0];t.hoverIndex=Pe(D.value,tt||be)},Q=()=>{var De;if(e.multiple)t.selectedLabel="";else{const be=ie(e.modelValue);(De=be.props)!=null&&De.created?(t.createdLabel=be.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=be.currentLabel,t.selected=be,e.filterable&&(t.query=t.selectedLabel);return}const tt=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(be=>{tt.push(ie(be))}),t.selected=tt,ct(()=>{V()})},ie=De=>{let tt;const be=M0(De).toLowerCase()==="object",Ze=M0(De).toLowerCase()==="null",Wt=M0(De).toLowerCase()==="undefined";for(let _r=t.cachedOptions.size-1;_r>=0;_r--){const wr=P.value[_r];if(be?tr(wr.value,e.valueKey)===tr(De,e.valueKey):wr.value===De){tt={value:De,currentLabel:wr.currentLabel,isDisabled:wr.isDisabled};break}}if(tt)return tt;const hn=be?De.label:!Ze&&!Wt?De:"",br={value:De,currentLabel:hn};return e.multiple&&(br.hitState=!1),br},de=()=>{setTimeout(()=>{const De=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(tt=>D.value.findIndex(be=>tr(be,De)===tr(tt,De)))):t.hoverIndex=-1:t.hoverIndex=D.value.findIndex(tt=>$e(tt)===$e(t.selected))},300)},oe=()=>{var De,tt;se(),(tt=(De=l.value)==null?void 0:De.updatePopper)==null||tt.call(De),e.multiple&&V()},se=()=>{var De;t.inputWidth=(De=i.value)==null?void 0:De.$el.offsetWidth},le=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,L(t.query))},ne=Va(()=>{le()},I.value),Ce=Va(De=>{L(De.target.value)},I.value),Te=De=>{ni(e.modelValue,De)||n.emit(qn,De)},he=De=>boe(De,tt=>!t.disabledOptions.has(tt)),X=De=>{if(De.code!==vt.delete){if(De.target.value.length<=0&&!qe()){const tt=e.modelValue.slice(),be=he(tt);if(be<0)return;tt.splice(be,1),n.emit(Gt,tt),Te(tt)}De.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},ae=(De,tt)=>{const be=t.selected.indexOf(tt);if(be>-1&&!x.value){const Ze=e.modelValue.slice();Ze.splice(be,1),n.emit(Gt,Ze),Te(Ze),n.emit("remove-tag",tt.value)}De.stopPropagation(),Je()},ge=De=>{De.stopPropagation();const tt=e.multiple?[]:"";if(!At(tt))for(const be of t.selected)be.isDisabled&&tt.push(be.value);n.emit(Gt,tt),Te(tt),t.hoverIndex=-1,t.visible=!1,n.emit("clear"),Je()},ke=De=>{var tt;if(e.multiple){const be=(e.modelValue||[]).slice(),Ze=Pe(be,De.value);Ze>-1?be.splice(Ze,1):(e.multipleLimit<=0||be.length<e.multipleLimit)&&be.push(De.value),n.emit(Gt,be),Te(be),De.created&&(t.query="",L(""),t.inputLength=20),e.filterable&&((tt=o.value)==null||tt.focus())}else n.emit(Gt,De.value),Te(De.value),t.visible=!1;Me(),!t.visible&&ct(()=>{ze(De)})},Pe=(De=[],tt)=>{if(!Qt(tt))return De.indexOf(tt);const be=e.valueKey;let Ze=-1;return De.some((Wt,hn)=>En(tr(Wt,be))===tr(tt,be)?(Ze=hn,!0):!1),Ze},Me=()=>{const De=o.value||i.value;De&&(De==null||De.focus())},ze=De=>{var tt,be,Ze,Wt,hn;const br=Array.isArray(De)?De[0]:De;let _r=null;if(br!=null&&br.value){const wr=D.value.filter(Sr=>Sr.value===br.value);wr.length>0&&(_r=wr[0].$el)}if(l.value&&_r){const wr=(Wt=(Ze=(be=(tt=l.value)==null?void 0:tt.popperRef)==null?void 0:be.contentRef)==null?void 0:Ze.querySelector)==null?void 0:Wt.call(Ze,`.${a.be("dropdown","wrap")}`);wr&&e6(wr,_r)}(hn=d.value)==null||hn.handleScroll()},Oe=De=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(De.value,De),t.cachedOptions.set(De.value,De),De.disabled&&t.disabledOptions.set(De.value,De)},Le=(De,tt)=>{t.options.get(De)===tt&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(De))},Ve=De=>{De.code!==vt.backspace&&qe(!1),t.inputLength=o.value.value.length*15+20,V()},qe=De=>{if(!Array.isArray(t.selected))return;const tt=he(t.selected.map(Ze=>Ze.value)),be=t.selected[tt];if(be)return De===!0||De===!1?(be.hitState=De,De):(be.hitState=!be.hitState,be.hitState)},nt=De=>{const tt=De.target.value;if(De.type==="compositionend")t.isOnComposition=!1,ct(()=>L(tt));else{const be=tt[tt.length-1]||"";t.isOnComposition=!w_(be)}},ot=()=>{ct(()=>ze(t.selected))},_e=De=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,n.emit("focus",De))},Je=()=>{var De,tt;t.visible?(De=o.value||i.value)==null||De.focus():(tt=i.value)==null||tt.focus()},St=()=>{var De,tt,be;t.visible=!1,(De=i.value)==null||De.blur(),(be=(tt=s.value)==null?void 0:tt.blur)==null||be.call(tt)},Rt=De=>{var tt,be,Ze;(tt=l.value)!=null&&tt.isFocusInsideContent(De)||(be=u.value)!=null&&be.isFocusInsideContent(De)||(Ze=f.value)!=null&&Ze.contains(De.relatedTarget)||(t.visible&>(),t.focused=!1,n.emit("blur",De))},Kt=De=>{ge(De)},gt=()=>{t.visible=!1},Ie=De=>{t.visible&&(De.preventDefault(),De.stopPropagation(),t.visible=!1)},we=De=>{De&&!t.mouseEnter||x.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),Je())},ve=()=>{t.visible?D.value[t.hoverIndex]&&ke(D.value[t.hoverIndex]):we()},$e=De=>Qt(De.value)?tr(De.value,e.valueKey):De.value,ue=R(()=>D.value.filter(De=>De.visible).every(De=>De.disabled)),rt=R(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),Ct=R(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),jt=De=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!ue.value){De==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):De==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const tt=D.value[t.hoverIndex];(tt.disabled===!0||tt.states.groupDisabled===!0||!tt.visible)&&jt(De),ct(()=>ze(h.value))}},dr=()=>{t.mouseEnter=!0},kr=()=>{t.mouseEnter=!1},Ir=(De,tt)=>{var be,Ze;ae(De,tt),(Ze=(be=u.value)==null?void 0:be.updatePopper)==null||Ze.call(be)},yr=R(()=>({maxWidth:`${y(t.inputWidth)-32-(M.value?22:0)}px`,width:"100%"}));return{optionList:g,optionsArray:D,selectSize:z,handleResize:oe,debouncedOnInputChange:ne,debouncedQueryChange:Ce,deletePrevTag:X,deleteTag:ae,deleteSelected:ge,handleOptionSelect:ke,scrollToOption:ze,readonly:S,resetInputHeight:V,showClose:C,iconComponent:w,iconReverse:k,showNewOption:N,collapseTagSize:F,setSelected:Q,managePlaceholder:G,selectDisabled:x,emptyText:E,toggleLastOptionHitState:qe,resetInputState:Ve,handleComposition:nt,onOptionCreate:Oe,onOptionDestroy:Le,handleMenuEnter:ot,handleFocus:_e,focus:Je,blur:St,handleBlur:Rt,handleClearClick:Kt,handleClose:gt,handleKeydownEscape:Ie,toggleMenu:we,selectOption:ve,getValueKey:$e,navigateOptions:jt,handleDeleteTooltipTag:Ir,dropMenuVisible:B,queryChange:v,groupQueryChange:p,showTagList:rt,collapseTagList:Ct,selectTagsStyle:yr,reference:i,input:o,iOSInput:s,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:f,scrollbar:d,handleMouseEnter:dr,handleMouseLeave:kr}};var uwe=te({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(!At(f.children)&&!Array.isArray(f.children)&&kt((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 sO="ElSelect",cwe=te({name:sO,componentName:sO,components:{ElInput:ba,ElSelectMenu:owe,ElOption:VA,ElOptions:uwe,ElTag:gg,ElScrollbar:hl,ElTooltip:Fa,ElIcon:ut},directives:{ClickOutside:mu},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:__},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:Xr.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Wn,default:Eu},fitInputWidth:Boolean,suffixIcon:{type:Wn,default:Au},tagType:{...IA.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Af,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[Gt,qn,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Fe("select"),r=Fe("input"),{t:a}=pn(),i=swe(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:S,managePlaceholder:x,showClose:C,selectDisabled:w,iconComponent:k,iconReverse:M,showNewOption:I,emptyText:E,toggleLastOptionHitState:D,resetInputState:P,handleComposition:N,onOptionCreate:z,onOptionDestroy:F,handleMenuEnter:B,handleFocus:V,focus:L,blur:G,handleBlur:q,handleClearClick:Q,handleClose:ie,handleKeydownEscape:de,toggleMenu:oe,selectOption:se,getValueKey:le,navigateOptions:ne,handleDeleteTooltipTag:Ce,dropMenuVisible:Te,reference:he,input:X,iOSInput:ae,tooltipRef:ge,tagTooltipRef:ke,tags:Pe,selectWrapper:Me,scrollbar:ze,queryChange:Oe,groupQueryChange:Le,handleMouseEnter:Ve,handleMouseLeave:qe,showTagList:nt,collapseTagList:ot,selectTagsStyle:_e}=lwe(e,i,t),{inputWidth:Je,selected:St,inputLength:Rt,filteredOptionsCount:Kt,visible:gt,selectedLabel:Ie,hoverIndex:we,query:ve,inputHovering:$e,currentPlaceholder:ue,menuVisibleOnFocus:rt,isOnComposition:Ct,options:jt,cachedOptions:dr,optionsCount:kr,prefixWidth:Ir}=Ur(i),yr=R(()=>{const Sr=[n.b()],oo=y(l);return oo&&Sr.push(n.m(oo)),e.disabled&&Sr.push(n.m("disabled")),Sr}),De=R(()=>[n.e("tags"),n.is("disabled",y(w))]),tt=R(()=>[n.b("tags-wrapper"),{"has-prefix":y(Ir)&&y(St).length}]),be=R(()=>[n.e("input"),n.is(y(l)),n.is("disabled",y(w))]),Ze=R(()=>[n.e("input"),n.is(y(l)),n.em("input","iOS")]),Wt=R(()=>[n.is("empty",!e.allowCreate&&!!y(ve)&&y(Kt)===0)]),hn=R(()=>({maxWidth:`${y(Je)>123?y(Je)-123:y(Je)-75}px`})),br=R(()=>({marginLeft:`${y(Ir)}px`,flexGrow:1,width:`${y(Rt)/(y(Je)-32)}%`,maxWidth:`${y(Je)-42}px`}));Jt(bm,Sn({props:e,options:jt,optionsArray:s,cachedOptions:dr,optionsCount:kr,filteredOptionsCount:Kt,hoverIndex:we,handleOptionSelect:m,onOptionCreate:z,onOptionDestroy:F,selectWrapper:Me,selected:St,setSelected:_,queryChange:Oe,groupQueryChange:Le})),Ft(()=>{i.cachedPlaceHolder=ue.value=e.placeholder||(()=>a("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(ue.value=""),wa(Me,c),e.remote&&e.multiple&&S(),ct(()=>{const Sr=he.value&&he.value.$el;if(Sr&&(Je.value=Sr.getBoundingClientRect().width,t.slots.prefix)){const oo=Sr.querySelector(`.${r.e("prefix")}`);Ir.value=Math.max(oo.getBoundingClientRect().width+11,30)}}),_()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Gt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Gt,"");const _r=R(()=>{var Sr,oo;return(oo=(Sr=ge.value)==null?void 0:Sr.popperRef)==null?void 0:oo.contentRef});return{isIOS:cz,onOptionsRendered:Sr=>{o.value=Sr},prefixWidth:Ir,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:v,deleteTag:p,handleDeleteTooltipTag:Ce,deleteSelected:g,handleOptionSelect:m,scrollToOption:b,inputWidth:Je,selected:St,inputLength:Rt,filteredOptionsCount:Kt,visible:gt,selectedLabel:Ie,hoverIndex:we,query:ve,inputHovering:$e,currentPlaceholder:ue,menuVisibleOnFocus:rt,isOnComposition:Ct,options:jt,resetInputHeight:S,managePlaceholder:x,showClose:C,selectDisabled:w,iconComponent:k,iconReverse:M,showNewOption:I,emptyText:E,toggleLastOptionHitState:D,resetInputState:P,handleComposition:N,handleMenuEnter:B,handleFocus:V,focus:L,blur:G,handleBlur:q,handleClearClick:Q,handleClose:ie,handleKeydownEscape:de,toggleMenu:oe,selectOption:se,getValueKey:le,navigateOptions:ne,dropMenuVisible:Te,reference:he,input:X,iOSInput:ae,tooltipRef:ge,popperPaneRef:_r,tags:Pe,selectWrapper:Me,scrollbar:ze,wrapperKls:yr,tagsKls:De,tagWrapperKls:tt,inputKls:be,iOSInputKls:Ze,scrollbarKls:Wt,selectTagsStyle:_e,nsSelect:n,tagTextStyle:hn,inputStyle:br,handleMouseEnter:Ve,handleMouseLeave:qe,showTagList:nt,collapseTagList:ot,tagTooltipRef:ke}}}),fwe=["disabled","autocomplete","aria-label"],dwe=["disabled"],hwe={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function vwe(e,t,n,r,a,i){const o=Pt("el-tag"),s=Pt("el-tooltip"),l=Pt("el-icon"),u=Pt("el-input"),c=Pt("el-option"),f=Pt("el-options"),d=Pt("el-scrollbar"),h=Pt("el-select-menu"),v=eg("click-outside");return Ot(($(),Z("div",{ref:"selectWrapper",class:W(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]=_t((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},[re(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:ce(()=>[ee("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=p=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=p=>e.inputHovering=!1)},[e.multiple?($(),Z("div",{key:0,ref:"tags",tabindex:"-1",class:W(e.tagsKls),style:ft(e.selectTagsStyle),onClick:t[15]||(t[15]=(...p)=>e.focus&&e.focus(...p))},[e.collapseTags&&e.selected.length?($(),Se(xr,{key:0,onAfterLeave:e.resetInputHeight},{default:ce(()=>[ee("span",{class:W(e.tagWrapperKls)},[($(!0),Z(dt,null,an(e.showTagList,p=>($(),Se(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:ce(()=>[ee("span",{class:W(e.nsSelect.e("tags-text")),style:ft(e.tagTextStyle)},Ke(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?($(),Se(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:ce(()=>[e.collapseTagsTooltip?($(),Se(s,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:ce(()=>[ee("span",{class:W(e.nsSelect.e("tags-text"))},"+ "+Ke(e.selected.length-e.maxCollapseTags),3)]),content:ce(()=>[ee("div",{class:W(e.nsSelect.e("collapse-tags"))},[($(!0),Z(dt,null,an(e.collapseTagList,p=>($(),Z("div",{key:e.getValueKey(p),class:W(e.nsSelect.e("collapse-tag"))},[re(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:ce(()=>[ee("span",{class:W(e.nsSelect.e("tags-text")),style:ft({maxWidth:e.inputWidth-75+"px"})},Ke(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):($(),Z("span",{key:1,class:W(e.nsSelect.e("tags-text"))},"+ "+Ke(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):me("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):me("v-if",!0),e.collapseTags?me("v-if",!0):($(),Se(xr,{key:1,onAfterLeave:e.resetInputHeight},{default:ce(()=>[ee("span",{class:W(e.tagWrapperKls),style:ft(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[($(!0),Z(dt,null,an(e.selected,p=>($(),Se(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:ce(()=>[ee("span",{class:W(e.nsSelect.e("tags-text")),style:ft({maxWidth:e.inputWidth-75+"px"})},Ke(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?Ot(($(),Z("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=p=>e.query=p),type:"text",class:W(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:ft(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]=vn(_t(p=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=vn(_t(p=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=vn((...p)=>e.handleKeydownEscape&&e.handleKeydownEscape(...p),["esc"])),t[8]||(t[8]=vn(_t((...p)=>e.selectOption&&e.selectOption(...p),["stop","prevent"]),["enter"])),t[9]||(t[9]=vn((...p)=>e.deletePrevTag&&e.deletePrevTag(...p),["delete"])),t[10]||(t[10]=vn(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,fwe)),[[DM,e.query]]):me("v-if",!0)],6)):me("v-if",!0),me(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?($(),Z("input",{key:1,ref:"iOSInput",class:W(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,dwe)):me("v-if",!0),re(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:W([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]=vn(_t(p=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=vn(_t(p=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),vn(_t(e.selectOption,["stop","prevent"]),["enter"]),vn(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=vn(p=>e.visible=!1,["tab"]))]},Qs({suffix:ce(()=>[e.iconComponent&&!e.showClose?($(),Se(l,{key:0,class:W([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ce(()=>[($(),Se(qt(e.iconComponent)))]),_:1},8,["class"])):me("v-if",!0),e.showClose&&e.clearIcon?($(),Se(l,{key:1,class:W([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:ce(()=>[($(),Se(qt(e.clearIcon)))]),_:1},8,["class","onClick"])):me("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:ce(()=>[ee("div",hwe,[Re(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:ce(()=>[re(h,null,{default:ce(()=>[Ot(re(d,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:W(e.scrollbarKls)},{default:ce(()=>[e.showNewOption?($(),Se(c,{key:0,value:e.query,created:!0},null,8,["value"])):me("v-if",!0),re(f,{onUpdateOptions:e.onOptionsRendered},{default:ce(()=>[Re(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[bn,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?($(),Z(dt,{key:0},[e.$slots.empty?Re(e.$slots,"empty",{key:0}):($(),Z("p",{key:1,class:W(e.nsSelect.be("dropdown","empty"))},Ke(e.emptyText),3))],64)):me("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[v,e.handleClose,e.popperPaneRef]])}var pwe=Ue(cwe,[["render",vwe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const gwe=te({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Fe("select"),n=U(!0),r=Bt(),a=U([]);Jt(HH,Sn({...Ur(e)}));const i=lt(bm);Ft(()=>{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}=En(i);return Be(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 Ot(($(),Z("ul",{class:W(e.ns.be("group","wrap"))},[ee("li",{class:W(e.ns.be("group","title"))},Ke(e.label),3),ee("li",null,[ee("ul",{class:W(e.ns.b("group"))},[Re(e.$slots,"default")],2)])],2)),[[bn,e.visible]])}var WH=Ue(gwe,[["render",mwe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const vf=Ht(pwe,{Option:VA,OptionGroup:WH}),Fb=fr(VA),ywe=fr(WH),FA=()=>lt(zH,{}),bwe=je({pageSize:{type:Number,required:!0},pageSizes:{type:ye(Array),default:()=>nr([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:xs}}),_we=te({name:"ElPaginationSizes"}),wwe=te({..._we,props:bwe,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=pn(),a=Fe("pagination"),i=FA(),o=U(n.pageSize);Be(()=>n.pageSizes,(u,c)=>{if(!ni(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),Be(()=>n.pageSize,u=>{o.value=u});const s=R(()=>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)=>($(),Z("span",{class:W(y(a).e("sizes"))},[re(y(vf),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:ce(()=>[($(!0),Z(dt,null,an(y(s),f=>($(),Se(y(Fb),{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 Swe=Ue(wwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const Cwe=je({size:{type:String,values:xs}}),xwe=["disabled"],Twe=te({name:"ElPaginationJumper"}),kwe=te({...Twe,props:Cwe,setup(e){const{t}=pn(),n=Fe("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:o}=FA(),s=U(),l=R(()=>{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)=>($(),Z("span",{class:W(y(n).e("jump")),disabled:y(a)},[ee("span",{class:W([y(n).e("goto")])},Ke(y(t)("el.pagination.goto")),3),re(y(ba),{size:f.size,class:W([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"]),ee("span",{class:W([y(n).e("classifier")])},Ke(y(t)("el.pagination.pageClassifier")),3)],10,xwe))}});var Mwe=Ue(kwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const Awe=je({total:{type:Number,default:1e3}}),Ewe=["disabled"],Iwe=te({name:"ElPaginationTotal"}),Dwe=te({...Iwe,props:Awe,setup(e){const{t}=pn(),n=Fe("pagination"),{disabled:r}=FA();return(a,i)=>($(),Z("span",{class:W(y(n).e("total")),disabled:y(r)},Ke(y(t)("el.pagination.total",{total:a.total})),11,Ewe))}});var Pwe=Ue(Dwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const Lwe=je({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Rwe=["onKeyup"],Owe=["aria-current","aria-label","tabindex"],Nwe=["tabindex","aria-label"],$we=["aria-current","aria-label","tabindex"],Bwe=["tabindex","aria-label"],Vwe=["aria-current","aria-label","tabindex"],Fwe=te({name:"ElPaginationPager"}),zwe=te({...Fwe,props:Lwe,emits:["change"],setup(e,{emit:t}){const n=e,r=Fe("pager"),a=Fe("icon"),{t:i}=pn(),o=U(!1),s=U(!1),l=U(!1),u=U(!1),c=U(!1),f=U(!1),d=R(()=>{const S=n.pagerCount,x=(S-1)/2,C=Number(n.currentPage),w=Number(n.pageCount);let k=!1,M=!1;w>S&&(C>S-x&&(k=!0),C<w-x&&(M=!0));const I=[];if(k&&!M){const E=w-(S-2);for(let D=E;D<w;D++)I.push(D)}else if(!k&&M)for(let E=2;E<S;E++)I.push(E);else if(k&&M){const E=Math.floor(S/2)-1;for(let D=C-E;D<=C+E;D++)I.push(D)}else for(let E=2;E<w;E++)I.push(E);return I}),h=R(()=>["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)]),v=R(()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)]),p=R(()=>n.disabled?-1:0);yi(()=>{const S=(n.pagerCount-1)/2;o.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-S&&(o.value=!0),n.currentPage<n.pageCount-S&&(s.value=!0))});function g(S=!1){n.disabled||(S?l.value=!0:u.value=!0)}function m(S=!1){S?c.value=!0:f.value=!0}function b(S){const x=S.target;if(x.tagName.toLowerCase()==="li"&&Array.from(x.classList).includes("number")){const C=Number(x.textContent);C!==n.currentPage&&t("change",C)}else x.tagName.toLowerCase()==="li"&&Array.from(x.classList).includes("more")&&_(S)}function _(S){const x=S.target;if(x.tagName.toLowerCase()==="ul"||n.disabled)return;let C=Number(x.textContent);const w=n.pageCount,k=n.currentPage,M=n.pagerCount-2;x.className.includes("more")&&(x.className.includes("quickprev")?C=k-M:x.className.includes("quicknext")&&(C=k+M)),Number.isNaN(+C)||(C<1&&(C=1),C>w&&(C=w)),C!==k&&t("change",C)}return(S,x)=>($(),Z("ul",{class:W(y(r).b()),onClick:_,onKeyup:vn(b,["enter"])},[S.pageCount>0?($(),Z("li",{key:0,class:W([[y(r).is("active",S.currentPage===1),y(r).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===1,"aria-label":y(i)("el.pagination.currentPage",{pager:1}),tabindex:y(p)}," 1 ",10,Owe)):me("v-if",!0),o.value?($(),Z("li",{key:1,class:W(y(h)),tabindex:y(p),"aria-label":y(i)("el.pagination.prevPages",{pager:S.pagerCount-2}),onMouseenter:x[0]||(x[0]=C=>g(!0)),onMouseleave:x[1]||(x[1]=C=>l.value=!1),onFocus:x[2]||(x[2]=C=>m(!0)),onBlur:x[3]||(x[3]=C=>c.value=!1)},[(l.value||c.value)&&!S.disabled?($(),Se(y(lh),{key:0})):($(),Se(y(ZL),{key:1}))],42,Nwe)):me("v-if",!0),($(!0),Z(dt,null,an(y(d),C=>($(),Z("li",{key:C,class:W([[y(r).is("active",S.currentPage===C),y(r).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===C,"aria-label":y(i)("el.pagination.currentPage",{pager:C}),tabindex:y(p)},Ke(C),11,$we))),128)),s.value?($(),Z("li",{key:2,class:W(y(v)),tabindex:y(p),"aria-label":y(i)("el.pagination.nextPages",{pager:S.pagerCount-2}),onMouseenter:x[4]||(x[4]=C=>g()),onMouseleave:x[5]||(x[5]=C=>u.value=!1),onFocus:x[6]||(x[6]=C=>m()),onBlur:x[7]||(x[7]=C=>f.value=!1)},[(u.value||f.value)&&!S.disabled?($(),Se(y(uh),{key:0})):($(),Se(y(ZL),{key:1}))],42,Bwe)):me("v-if",!0),S.pageCount>1?($(),Z("li",{key:3,class:W([[y(r).is("active",S.currentPage===S.pageCount),y(r).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===S.pageCount,"aria-label":y(i)("el.pagination.currentPage",{pager:S.pageCount}),tabindex:y(p)},Ke(S.pageCount),11,Vwe)):me("v-if",!0)],42,Rwe))}});var Hwe=Ue(zwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Ta=e=>typeof e!="number",Wwe=je({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Tt(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:ye(Array),default:()=>nr([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Wn,default:()=>hu},nextText:{type:String,default:""},nextIcon:{type:Wn,default:()=>Ra},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),Gwe={"update:current-page":e=>Tt(e),"update:page-size":e=>Tt(e),"size-change":e=>Tt(e),"current-change":e=>Tt(e),"prev-click":e=>Tt(e),"next-click":e=>Tt(e)},lO="ElPagination";var Kwe=te({name:lO,props:Wwe,emits:Gwe,setup(e,{emit:t,slots:n}){const{t:r}=pn(),a=Fe("pagination"),i=Bt().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=R(()=>{if(Ta(e.total)&&Ta(e.pageCount)||!Ta(e.currentPage)&&!o)return!1;if(e.layout.includes("sizes")){if(Ta(e.pageCount)){if(!Ta(e.total)&&!Ta(e.pageSize)&&!s)return!1}else if(!s)return!1}return!0}),u=U(Ta(e.defaultPageSize)?10:e.defaultPageSize),c=U(Ta(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=R({get(){return Ta(e.pageSize)?u.value:e.pageSize},set(_){Ta(e.pageSize)&&(u.value=_),s&&(t("update:page-size",_),t("size-change",_))}}),d=R(()=>{let _=0;return Ta(e.pageCount)?Ta(e.total)||(_=Math.max(1,Math.ceil(e.total/f.value))):_=e.pageCount,_}),h=R({get(){return Ta(e.currentPage)?c.value:e.currentPage},set(_){let S=_;_<1?S=1:_>d.value&&(S=d.value),Ta(e.currentPage)&&(c.value=S),o&&(t("update:current-page",S),t("current-change",S))}});Be(d,_=>{h.value>_&&(h.value=_)});function v(_){h.value=_}function p(_){f.value=_;const S=d.value;h.value>S&&(h.value=S)}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(_,S){_&&(_.props||(_.props={}),_.props.class=[_.props.class,S].join(" "))}return Jt(zH,{pageCount:d,disabled:R(()=>e.disabled),currentPage:h,changeEvent:v,handleSizeChange:p}),()=>{var _,S;if(!l.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&d.value<=1)return null;const x=[],C=[],w=pt("div",{class:a.e("rightwrapper")},C),k={prev:pt(Y_e,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:g}),jumper:pt(Mwe,{size:e.small?"small":"default"}),pager:pt(Hwe,{currentPage:h.value,pageCount:d.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:pt(ewe,{disabled:e.disabled,currentPage:h.value,pageCount:d.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:m}),sizes:pt(Swe,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(S=(_=n==null?void 0:n.default)==null?void 0:_.call(n))!=null?S:null,total:pt(Pwe,{total:Ta(e.total)?0:e.total})},M=e.layout.split(",").map(E=>E.trim());let I=!1;return M.forEach(E=>{if(E==="->"){I=!0;return}I?C.push(k[E]):x.push(k[E])}),b(x[0],a.is("first")),b(x[x.length-1],a.is("last")),I&&C.length>0&&(b(C[0],a.is("first")),b(C[C.length-1],a.is("last")),x.push(w)),pt("div",{class:[a.b(),a.is("background",e.background),{[a.m("small")]:e.small}]},x)}}});const Uwe=Ht(Kwe),jwe=je({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:E2,default:"primary"},cancelButtonType:{type:String,values:E2,default:"text"},icon:{type:Wn,default:()=>Lse},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Xr.teleported,persistent:Xr.persistent,width:{type:[String,Number],default:150}}),Ywe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},qwe=te({name:"ElPopconfirm"}),Xwe=te({...qwe,props:jwe,emits:Ywe,setup(e,{emit:t}){const n=e,{t:r}=pn(),a=Fe("popconfirm"),i=U(),o=()=>{var d,h;(h=(d=i.value)==null?void 0:d.onClose)==null||h.call(d)},s=R(()=>({width:gr(n.width)})),l=d=>{t("confirm",d),o()},u=d=>{t("cancel",d),o()},c=R(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),f=R(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(d,h)=>($(),Se(y(Fa),Yt({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:ce(()=>[ee("div",{class:W(y(a).b())},[ee("div",{class:W(y(a).e("main"))},[!d.hideIcon&&d.icon?($(),Se(y(ut),{key:0,class:W(y(a).e("icon")),style:ft({color:d.iconColor})},{default:ce(()=>[($(),Se(qt(d.icon)))]),_:1},8,["class","style"])):me("v-if",!0),_n(" "+Ke(d.title),1)],2),ee("div",{class:W(y(a).e("action"))},[re(y(oa),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:ce(()=>[_n(Ke(y(f)),1)]),_:1},8,["type","text"]),re(y(oa),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:l},{default:ce(()=>[_n(Ke(y(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:ce(()=>[d.$slots.reference?Re(d.$slots,"reference",{key:0}):me("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Zwe=Ue(Xwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const Qwe=Ht(Zwe),Jwe=je({trigger:pg.trigger,placement:U0.placement,disabled:pg.disabled,visible:Xr.visible,transition:Xr.transition,popperOptions:U0.popperOptions,tabindex:U0.tabindex,content:Xr.content,popperStyle:Xr.popperStyle,popperClass:Xr.popperClass,enterable:{...Xr.enterable,default:!0},effect:{...Xr.effect,default:"light"},teleported:Xr.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}}),eSe={"update:visible":e=>Rr(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},tSe="onUpdate:visible",nSe=te({name:"ElPopover"}),rSe=te({...nSe,props:Jwe,emits:eSe,setup(e,{expose:t,emit:n}){const r=e,a=R(()=>r[tSe]),i=Fe("popover"),o=U(),s=R(()=>{var g;return(g=y(o))==null?void 0:g.popperRef}),l=R(()=>[{width:gr(r.width)},r.popperStyle]),u=R(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),c=R(()=>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)=>($(),Se(y(Fa),Yt({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:ce(()=>[g.title?($(),Z("div",{key:0,class:W(y(i).e("title")),role:"title"},Ke(g.title),3)):me("v-if",!0),Re(g.$slots,"default",{},()=>[_n(Ke(g.content),1)])]),default:ce(()=>[g.$slots.reference?Re(g.$slots,"reference",{key:0}):me("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 aSe=Ue(rSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const uO=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var iSe={mounted(e,t){uO(e,t)},updated(e,t){uO(e,t)}};const oSe="popover",GH=ale(iSe,oSe),sSe=Ht(aSe,{directive:GH}),lSe=je({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:ye(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ye([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:ye(Function),default:e=>`${e}%`}}),uSe=["aria-valuenow"],cSe={viewBox:"0 0 100 100"},fSe=["d","stroke","stroke-linecap","stroke-width"],dSe=["d","stroke","opacity","stroke-linecap","stroke-width"],hSe={key:0},vSe=te({name:"ElProgress"}),pSe=te({...vSe,props:lSe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Fe("progress"),a=R(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:b(t.percentage)})),i=R(()=>(t.strokeWidth/t.width*100).toFixed(1)),o=R(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=R(()=>{const _=o.value,S=t.type==="dashboard";return`
 
-           M 50 50
 
-           m 0 ${S?"":"-"}${_}
 
-           a ${_} ${_} 0 1 1 0 ${S?"-":""}${_*2}
 
-           a ${_} ${_} 0 1 1 0 ${S?"":"-"}${_*2}
 
-           `}),l=R(()=>2*Math.PI*o.value),u=R(()=>t.type==="dashboard"?.75:1),c=R(()=>`${-1*l.value*(1-u.value)/2}px`),f=R(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=R(()=>({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=R(()=>{let _;return t.color?_=b(t.percentage):_=n[t.status]||n.default,_}),v=R(()=>t.status==="warning"?y_:t.type==="line"?t.status==="success"?eA:Eu:t.status==="success"?vm:Do),p=R(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=R(()=>t.format(t.percentage));function m(_){const S=100/_.length;return _.map((C,w)=>At(C)?{color:C,percentage:(w+1)*S}:C).sort((C,w)=>C.percentage-w.percentage)}const b=_=>{var S;const{color:x}=t;if(kt(x))return x(_);if(At(x))return x;{const C=m(x);for(const w of C)if(w.percentage>_)return w.color;return(S=C[C.length-1])==null?void 0:S.color}};return(_,S)=>($(),Z("div",{class:W([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"?($(),Z("div",{key:0,class:W(y(r).b("bar"))},[ee("div",{class:W(y(r).be("bar","outer")),style:ft({height:`${_.strokeWidth}px`})},[ee("div",{class:W([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:ft(y(a))},[(_.showText||_.$slots.default)&&_.textInside?($(),Z("div",{key:0,class:W(y(r).be("bar","innerText"))},[Re(_.$slots,"default",{percentage:_.percentage},()=>[ee("span",null,Ke(y(g)),1)])],2)):me("v-if",!0)],6)],6)],2)):($(),Z("div",{key:1,class:W(y(r).b("circle")),style:ft({height:`${_.width}px`,width:`${_.width}px`})},[($(),Z("svg",cSe,[ee("path",{class:W(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:ft(y(f))},null,14,fSe),ee("path",{class:W(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:ft(y(d))},null,14,dSe)]))],6)),(_.showText||_.$slots.default)&&!_.textInside?($(),Z("div",{key:2,class:W(y(r).e("text")),style:ft({fontSize:`${y(p)}px`})},[Re(_.$slots,"default",{percentage:_.percentage},()=>[_.status?($(),Se(y(ut),{key:1},{default:ce(()=>[($(),Se(qt(y(v))))]),_:1})):($(),Z("span",hSe,Ke(y(g)),1))])],6)):me("v-if",!0)],10,uSe))}});var gSe=Ue(pSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const KH=Ht(gSe),mSe=je({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:ye([Array,Object]),default:()=>nr(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ye([Array,Object]),default:()=>[uy,uy,uy]},voidIcon:{type:Wn,default:()=>Yse},disabledVoidIcon:{type:Wn,default:()=>uy},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ye(Array),default:()=>nr(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:la,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),ySe={[qn]:e=>Tt(e),[Gt]:e=>Tt(e)},bSe=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],_Se=["onMousemove","onClick"],wSe=te({name:"ElRate"}),SSe=te({...wSe,props:mSe,emits:ySe,setup(e,{expose:t,emit:n}){const r=e;function a(F,B){const V=q=>Qt(q),L=Object.keys(B).map(q=>+q).filter(q=>{const Q=B[q];return(V(Q)?Q.excluded:!1)?F<q:F<=q}).sort((q,Q)=>q-Q),G=B[L[0]];return V(G)&&G.value||G}const i=lt(Ef,void 0),o=lt(_s,void 0),s=$r(),l=Fe("rate"),{inputId:u,isLabeledByFormItem:c}=Lu(r,{formItemContext:o}),f=U(r.modelValue),d=U(-1),h=U(!0),v=R(()=>[l.b(),l.m(s.value)]),p=R(()=>r.disabled||(i==null?void 0:i.disabled)),g=R(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":S.value})),m=R(()=>{let F="";return r.showScore?F=r.scoreTemplate.replace(/\{\s*value\s*\}/,p.value?`${r.modelValue}`:`${f.value}`):r.showText&&(F=r.texts[Math.ceil(f.value)-1]),F}),b=R(()=>r.modelValue*100-Math.floor(r.modelValue)*100),_=R(()=>st(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),S=R(()=>{const F=a(f.value,_.value);return Qt(F)?"":F}),x=R(()=>{let F="";return p.value?F=`${b.value}%`:r.allowHalf&&(F="50%"),{color:S.value,width:F}}),C=R(()=>{let F=st(r.icons)?[...r.icons]:{...r.icons};return F=tu(F),st(F)?{[r.lowThreshold]:F[0],[r.highThreshold]:{value:F[1],excluded:!0},[r.max]:F[2]}:F}),w=R(()=>a(r.modelValue,C.value)),k=R(()=>p.value?At(r.disabledVoidIcon)?r.disabledVoidIcon:tu(r.disabledVoidIcon):At(r.voidIcon)?r.voidIcon:tu(r.voidIcon)),M=R(()=>a(f.value,C.value));function I(F){const B=p.value&&b.value>0&&F-1<r.modelValue&&F>r.modelValue,V=r.allowHalf&&h.value&&F-.5<=f.value&&F>f.value;return B||V}function E(F){r.clearable&&F===r.modelValue&&(F=0),n(Gt,F),r.modelValue!==F&&n("change",F)}function D(F){p.value||(r.allowHalf&&h.value?E(f.value):E(F))}function P(F){if(p.value)return;let B=f.value;const V=F.code;return V===vt.up||V===vt.right?(r.allowHalf?B+=.5:B+=1,F.stopPropagation(),F.preventDefault()):(V===vt.left||V===vt.down)&&(r.allowHalf?B-=.5:B-=1,F.stopPropagation(),F.preventDefault()),B=B<0?0:B,B=B>r.max?r.max:B,n(Gt,B),n("change",B),B}function N(F,B){if(!p.value){if(r.allowHalf&&B){let V=B.target;ko(V,l.e("item"))&&(V=V.querySelector(`.${l.e("icon")}`)),(V.clientWidth===0||ko(V,l.e("decimal")))&&(V=V.parentNode),h.value=B.offsetX*2<=V.clientWidth,f.value=h.value?F-.5:F}else f.value=F;d.value=F}}function z(){p.value||(r.allowHalf&&(h.value=r.modelValue!==Math.floor(r.modelValue)),f.value=r.modelValue,d.value=-1)}return Be(()=>r.modelValue,F=>{f.value=F,h.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(Gt,0),t({setCurrentValue:N,resetCurrentValue:z}),(F,B)=>{var V;return $(),Z("div",{id:y(u),class:W([y(v),y(l).is("disabled",y(p))]),role:"slider","aria-label":y(c)?void 0:F.label||"rating","aria-labelledby":y(c)?(V=y(o))==null?void 0:V.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":y(m)||void 0,"aria-valuemin":"0","aria-valuemax":F.max,tabindex:"0",style:ft(y(g)),onKeydown:P},[($(!0),Z(dt,null,an(F.max,(L,G)=>($(),Z("span",{key:G,class:W(y(l).e("item")),onMousemove:q=>N(L,q),onMouseleave:z,onClick:q=>D(L)},[re(y(ut),{class:W([y(l).e("icon"),{hover:d.value===L},y(l).is("active",L<=f.value)])},{default:ce(()=>[I(L)?me("v-if",!0):($(),Z(dt,{key:0},[Ot(($(),Se(qt(y(M)),null,null,512)),[[bn,L<=f.value]]),Ot(($(),Se(qt(y(k)),null,null,512)),[[bn,!(L<=f.value)]])],64)),I(L)?($(),Se(y(ut),{key:1,style:ft(y(x)),class:W([y(l).e("icon"),y(l).e("decimal")])},{default:ce(()=>[($(),Se(qt(y(w))))]),_:1},8,["style","class"])):me("v-if",!0)]),_:2},1032,["class"])],42,_Se))),128)),F.showText||F.showScore?($(),Z("span",{key:0,class:W(y(l).e("text")),style:ft({color:F.textColor})},Ke(y(m)),7)):me("v-if",!0)],46,bSe)}}});var CSe=Ue(SSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const xSe=Ht(CSe),kd={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},cO={[kd.success]:rse,[kd.warning]:y_,[kd.error]:tA,[kd.info]:nA},TSe=je({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),kSe=te({name:"ElResult"}),MSe=te({...kSe,props:TSe,setup(e){const t=e,n=Fe("result"),r=R(()=>{const a=t.icon,i=a&&kd[a]?kd[a]:"icon-info",o=cO[i]||cO["icon-info"];return{class:i,component:o}});return(a,i)=>($(),Z("div",{class:W(y(n).b())},[ee("div",{class:W(y(n).e("icon"))},[Re(a.$slots,"icon",{},()=>[y(r).component?($(),Se(qt(y(r).component),{key:0,class:W(y(r).class)},null,8,["class"])):me("v-if",!0)])],2),a.title||a.$slots.title?($(),Z("div",{key:0,class:W(y(n).e("title"))},[Re(a.$slots,"title",{},()=>[ee("p",null,Ke(a.title),1)])],2)):me("v-if",!0),a.subTitle||a.$slots["sub-title"]?($(),Z("div",{key:1,class:W(y(n).e("subtitle"))},[Re(a.$slots,"sub-title",{},()=>[ee("p",null,Ke(a.subTitle),1)])],2)):me("v-if",!0),a.$slots.extra?($(),Z("div",{key:2,class:W(y(n).e("extra"))},[Re(a.$slots,"extra")],2)):me("v-if",!0)],2))}});var ASe=Ue(MSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const ESe=Ht(ASe);var fO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ISe(e,t){return!!(e===t||fO(e)&&fO(t))}function DSe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!ISe(e[n],t[n]))return!1;return!0}function PSe(e,t){t===void 0&&(t=DSe);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 UH=()=>{const t=Bt().proxy.$props;return R(()=>{const n=(r,a,i)=>({});return t.perfMode?v_(n):PSe(n)})},X2=50,zb="itemRendered",Hb="scroll",Md="forward",Wb="backward",Fi="auto",R_="smart",yg="start",ls="center",bg="end",mh="horizontal",zA="vertical",LSe="ltr",Hd="rtl",_g="negative",HA="positive-ascending",WA="positive-descending",RSe={[mh]:"left",[zA]:"top"},OSe=20,NSe={[mh]:"deltaX",[zA]:"deltaY"},$Se=({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=>{S_(a);const u=l[NSe[n.value]];o(i)&&o(i+u)||(i+=u,hz()||l.preventDefault(),a=ch(()=>{r(i),i=0}))}}},Z2=Bo({type:ye([Number,Function]),required:!0}),Q2=Bo({type:Number}),J2=Bo({type:Number,default:2}),BSe=Bo({type:String,values:["ltr","rtl"],default:"ltr"}),eT=Bo({type:Number,default:0}),Gb=Bo({type:Number,required:!0}),jH=Bo({type:String,values:["horizontal","vertical"],default:zA}),YH=je({className:{type:String,default:""},containerElement:{type:ye([String,Object]),default:"div"},data:{type:ye(Array),default:()=>nr([])},direction:BSe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:ye([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),qH=je({cache:J2,estimatedItemSize:Q2,layout:jH,initScrollOffset:eT,total:Gb,itemSize:Z2,...YH}),tT={type:Number,default:6},XH={type:Number,default:0},ZH={type:Number,default:2},ef=je({columnCache:J2,columnWidth:Z2,estimatedColumnWidth:Q2,estimatedRowHeight:Q2,initScrollLeft:eT,initScrollTop:eT,itemKey:{type:ye(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:J2,rowHeight:Z2,totalColumn:Gb,totalRow:Gb,hScrollbarSize:tT,vScrollbarSize:tT,scrollbarStartGap:XH,scrollbarEndGap:ZH,role:String,...YH}),QH=je({alwaysOn:Boolean,class:String,layout:jH,total:Gb,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:tT,startGap:XH,endGap:ZH,visible:Boolean}),Vc=(e,t)=>e<t?Md:Wb,wg=e=>e===LSe||e===Hd||e===mh,dO=e=>e===Hd;let Uf=null;function Kb(e=!1){if(Uf===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?Uf=WA:(t.scrollLeft=1,t.scrollLeft===0?Uf=_g:Uf=HA),document.body.removeChild(t),Uf}return Uf}function VSe({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 nT=te({name:"ElVirtualScrollBar",props:QH,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=R(()=>e.startGap+e.endGap),r=Fe("virtual-scrollbar"),a=Fe("scrollbar"),i=U(),o=U();let s=null,l=null;const u=Sn({isDragging:!1,traveled:0}),c=R(()=>X6[e.layout]),f=R(()=>e.clientSize-y(n)),d=R(()=>({position:"absolute",width:`${mh===e.layout?f.value:e.scrollbarSize}px`,height:`${mh===e.layout?e.scrollbarSize:f.value}px`,[RSe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=R(()=>{const C=e.ratio,w=e.clientSize;if(C>=100)return Number.POSITIVE_INFINITY;if(C>=50)return C*w/100;const k=w/3;return Math.floor(Math.min(Math.max(C*w,OSe),k))}),v=R(()=>{if(!Number.isFinite(h.value))return{display:"none"};const C=`${h.value}px`;return VSe({bar:c.value,size:C,move:u.traveled},e.layout)}),p=R(()=>Math.floor(e.clientSize-h.value-y(n))),g=()=>{window.addEventListener("mousemove",S),window.addEventListener("mouseup",_);const C=y(o);C&&(l=document.onselectstart,document.onselectstart=()=>!1,C.addEventListener("touchmove",S),C.addEventListener("touchend",_))},m=()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",_),document.onselectstart=l,l=null;const C=y(o);C&&(C.removeEventListener("touchmove",S),C.removeEventListener("touchend",_))},b=C=>{C.stopImmediatePropagation(),!(C.ctrlKey||[1,2].includes(C.button))&&(u.isDragging=!0,u[c.value.axis]=C.currentTarget[c.value.offset]-(C[c.value.client]-C.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),g())},_=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),m()},S=C=>{const{isDragging:w}=u;if(!w||!o.value||!i.value)return;const k=u[c.value.axis];if(!k)return;S_(s);const M=(i.value.getBoundingClientRect()[c.value.direction]-C[c.value.client])*-1,I=o.value[c.value.offset]-k,E=M-I;s=ch(()=>{u.traveled=Math.max(e.startGap,Math.min(E,p.value)),t("scroll",E,p.value)})},x=C=>{const w=Math.abs(C.target.getBoundingClientRect()[c.value.direction]-C[c.value.client]),k=o.value[c.value.offset]/2,M=w-k;u.traveled=Math.max(0,Math.min(M,p.value)),t("scroll",M,p.value)};return Be(()=>e.scrollFrom,C=>{u.isDragging||(u.traveled=Math.ceil(C*p.value))}),er(()=>{m()}),()=>pt("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:_t(x,["stop","prevent"]),onTouchstartPrevent:b},pt("div",{ref:o,class:a.e("thumb"),style:v.value,onMousedown:b},[]))}}),JH=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>te({name:e??"ElVirtualList",props:qH,emits:[zb,Hb],setup(c,{emit:f,expose:d}){u(c);const h=Bt(),v=Fe("vl"),p=U(s(c,h)),g=UH(),m=U(),b=U(),_=U(),S=U({isScrolling:!1,scrollDir:"forward",scrollOffset:Tt(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),x=R(()=>{const{total:ie,cache:de}=c,{isScrolling:oe,scrollDir:se,scrollOffset:le}=y(S);if(ie===0)return[0,0,0,0];const ne=i(c,le,y(p)),Ce=o(c,ne,le,y(p)),Te=!oe||se===Wb?Math.max(1,de):1,he=!oe||se===Md?Math.max(1,de):1;return[Math.max(0,ne-Te),Math.max(0,Math.min(ie-1,Ce+he)),ne,Ce]}),C=R(()=>a(c,y(p))),w=R(()=>wg(c.layout)),k=R(()=>[{position:"relative",[`overflow-${w.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:Tt(c.height)?`${c.height}px`:c.height,width:Tt(c.width)?`${c.width}px`:c.width},c.style]),M=R(()=>{const ie=y(C),de=y(w);return{height:de?"100%":`${ie}px`,pointerEvents:y(S).isScrolling?"none":void 0,width:de?`${ie}px`:"100%"}}),I=R(()=>w.value?c.width:c.height),{onWheel:E}=$Se({atStartEdge:R(()=>S.value.scrollOffset<=0),atEndEdge:R(()=>S.value.scrollOffset>=C.value),layout:R(()=>c.layout)},ie=>{var de,oe;(oe=(de=_.value).onMouseUp)==null||oe.call(de),B(Math.min(S.value.scrollOffset+ie,C.value-I.value))}),D=()=>{const{total:ie}=c;if(ie>0){const[le,ne,Ce,Te]=y(x);f(zb,le,ne,Ce,Te)}const{scrollDir:de,scrollOffset:oe,updateRequested:se}=y(S);f(Hb,de,oe,se)},P=ie=>{const{clientHeight:de,scrollHeight:oe,scrollTop:se}=ie.currentTarget,le=y(S);if(le.scrollOffset===se)return;const ne=Math.max(0,Math.min(se,oe-de));S.value={...le,isScrolling:!0,scrollDir:Vc(le.scrollOffset,ne),scrollOffset:ne,updateRequested:!1},ct(G)},N=ie=>{const{clientWidth:de,scrollLeft:oe,scrollWidth:se}=ie.currentTarget,le=y(S);if(le.scrollOffset===oe)return;const{direction:ne}=c;let Ce=oe;if(ne===Hd)switch(Kb()){case _g:{Ce=-oe;break}case WA:{Ce=se-de-oe;break}}Ce=Math.max(0,Math.min(Ce,se-de)),S.value={...le,isScrolling:!0,scrollDir:Vc(le.scrollOffset,Ce),scrollOffset:Ce,updateRequested:!1},ct(G)},z=ie=>{y(w)?N(ie):P(ie),D()},F=(ie,de)=>{const oe=(C.value-I.value)/de*ie;B(Math.min(C.value-I.value,oe))},B=ie=>{ie=Math.max(ie,0),ie!==y(S).scrollOffset&&(S.value={...y(S),scrollOffset:ie,scrollDir:Vc(y(S).scrollOffset,ie),updateRequested:!0},ct(G))},V=(ie,de=Fi)=>{const{scrollOffset:oe}=y(S);ie=Math.max(0,Math.min(ie,c.total-1)),B(t(c,ie,de,oe,y(p)))},L=ie=>{const{direction:de,itemSize:oe,layout:se}=c,le=g.value(l&&oe,l&&se,l&&de);let ne;if(ln(le,String(ie)))ne=le[ie];else{const Ce=r(c,ie,y(p)),Te=n(c,ie,y(p)),he=y(w),X=de===Hd,ae=he?Ce:0;le[ie]=ne={position:"absolute",left:X?void 0:`${ae}px`,right:X?`${ae}px`:void 0,top:he?0:`${Ce}px`,height:he?"100%":`${Te}px`,width:he?`${Te}px`:"100%"}}return ne},G=()=>{S.value.isScrolling=!1,ct(()=>{g.value(-1,null,null)})},q=()=>{const ie=m.value;ie&&(ie.scrollTop=0)};Ft(()=>{if(!fn)return;const{initScrollOffset:ie}=c,de=y(m);Tt(ie)&&de&&(y(w)?de.scrollLeft=ie:de.scrollTop=ie),D()}),cl(()=>{const{direction:ie,layout:de}=c,{scrollOffset:oe,updateRequested:se}=y(S),le=y(m);if(se&&le)if(de===mh)if(ie===Hd)switch(Kb()){case _g:{le.scrollLeft=-oe;break}case HA:{le.scrollLeft=oe;break}default:{const{clientWidth:ne,scrollWidth:Ce}=le;le.scrollLeft=Ce-ne-oe;break}}else le.scrollLeft=oe;else le.scrollTop=oe});const Q={ns:v,clientSize:I,estimatedTotalSize:C,windowStyle:k,windowRef:m,innerRef:b,innerStyle:M,itemsToRender:x,scrollbarRef:_,states:S,getItemStyle:L,onScroll:z,onScrollbarScroll:F,onWheel:E,scrollTo:B,scrollToItem:V,resetScrollTop:q};return d({windowRef:m,innerRef:b,getItemStyleCache:g,scrollTo:B,scrollToItem:V,resetScrollTop:q,states:S}),Q},render(c){var f;const{$slots:d,className:h,clientSize:v,containerElement:p,data:g,getItemStyle:m,innerElement:b,itemsToRender:_,innerStyle:S,layout:x,total:C,onScroll:w,onScrollbarScroll:k,onWheel:M,states:I,useIsScrolling:E,windowStyle:D,ns:P}=c,[N,z]=_,F=qt(p),B=qt(b),V=[];if(C>0)for(let Q=N;Q<=z;Q++)V.push((f=d.default)==null?void 0:f.call(d,{data:g,key:Q,index:Q,isScrolling:E?I.isScrolling:void 0,style:m(Q)}));const L=[pt(B,{style:S,ref:"innerRef"},At(B)?V:{default:()=>V})],G=pt(nT,{ref:"scrollbarRef",clientSize:v,layout:x,onScroll:k,ratio:v*100/this.estimatedTotalSize,scrollFrom:I.scrollOffset/(this.estimatedTotalSize-v),total:C}),q=pt(F,{class:[P.e("window"),h],style:D,onScroll:w,onWheel:M,ref:"windowRef",key:0},At(F)?[L]:{default:()=>[L]});return pt("div",{key:0,class:[P.e("wrapper"),I.scrollbarAlwaysOn?"always-on":""]},[q,G])}}),eW=JH({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=wg(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===R_&&(s>=f-l&&s<=c+l?o=Fi:o=ls),o){case yg:return c;case bg:return f;case ls:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d}case Fi: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=wg(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(){}}),Ad=(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]},FSe=(e,t,n)=>{const{items:r,lastVisitedIndex:a}=t;return(a>0?r[a].offset:0)>=n?tW(e,t,0,a,n):zSe(e,t,Math.max(0,a),n)},tW=(e,t,n,r,a)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),o=Ad(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)},zSe=(e,t,n,r)=>{const{total:a}=e;let i=1;for(;n<a&&Ad(e,n,t).offset<r;)n+=i,i*=2;return tW(e,t,Math.floor(n/2),Math.min(n,a-1),r)},hO=({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},HSe=JH({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Ad(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:hO,getOffset:(e,t,n,r,a)=>{const{height:i,layout:o,width:s}=e,l=wg(o)?s:i,u=Ad(e,t,a),c=hO(e,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(n===R_&&(r>=d-l&&r<=f+l?n=Fi:n=ls),n){case yg:return f;case bg:return d;case ls:return Math.round(d+(f-d)/2);case Fi:default:return r>=d&&r<=f?r:r<d?d:f}},getStartIndexForOffset:(e,t,n)=>FSe(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:a,total:i,layout:o,width:s}=e,l=wg(o)?s:a,u=Ad(e,t,r),c=n+l;let f=u.offset+u.size,d=t;for(;d<i-1&&f<c;)d++,f+=Ad(e,d,r).size;return d},initCache({estimatedItemSize:e=X2},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})=>{}}),WSe=({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=>{S_(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=ch(()=>{a(o,s),o=0,s=0}))}}},nW=({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})=>te({name:e??"ElVirtualList",props:ef,emits:[zb,Hb],setup(p,{emit:g,expose:m,slots:b}){const _=Fe("vl");v(p);const S=Bt(),x=U(d(p,S));h==null||h(S,x);const C=U(),w=U(),k=U(),M=U(null),I=U({isScrolling:!1,scrollLeft:Tt(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:Tt(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Md,yAxisScrollDir:Md}),E=UH(),D=R(()=>Number.parseInt(`${p.height}`,10)),P=R(()=>Number.parseInt(`${p.width}`,10)),N=R(()=>{const{totalColumn:Me,totalRow:ze,columnCache:Oe}=p,{isScrolling:Le,xAxisScrollDir:Ve,scrollLeft:qe}=y(I);if(Me===0||ze===0)return[0,0,0,0];const nt=r(p,qe,y(x)),ot=a(p,nt,qe,y(x)),_e=!Le||Ve===Wb?Math.max(1,Oe):1,Je=!Le||Ve===Md?Math.max(1,Oe):1;return[Math.max(0,nt-_e),Math.max(0,Math.min(Me-1,ot+Je)),nt,ot]}),z=R(()=>{const{totalColumn:Me,totalRow:ze,rowCache:Oe}=p,{isScrolling:Le,yAxisScrollDir:Ve,scrollTop:qe}=y(I);if(Me===0||ze===0)return[0,0,0,0];const nt=c(p,qe,y(x)),ot=f(p,nt,qe,y(x)),_e=!Le||Ve===Wb?Math.max(1,Oe):1,Je=!Le||Ve===Md?Math.max(1,Oe):1;return[Math.max(0,nt-_e),Math.max(0,Math.min(ze-1,ot+Je)),nt,ot]}),F=R(()=>i(p,y(x))),B=R(()=>o(p,y(x))),V=R(()=>{var Me;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:Tt(p.height)?`${p.height}px`:p.height,width:Tt(p.width)?`${p.width}px`:p.width},(Me=p.style)!=null?Me:{}]}),L=R(()=>{const Me=`${y(B)}px`;return{height:`${y(F)}px`,pointerEvents:y(I).isScrolling?"none":void 0,width:Me}}),G=()=>{const{totalColumn:Me,totalRow:ze}=p;if(Me>0&&ze>0){const[ot,_e,Je,St]=y(N),[Rt,Kt,gt,Ie]=y(z);g(zb,{columnCacheStart:ot,columnCacheEnd:_e,rowCacheStart:Rt,rowCacheEnd:Kt,columnVisibleStart:Je,columnVisibleEnd:St,rowVisibleStart:gt,rowVisibleEnd:Ie})}const{scrollLeft:Oe,scrollTop:Le,updateRequested:Ve,xAxisScrollDir:qe,yAxisScrollDir:nt}=y(I);g(Hb,{xAxisScrollDir:qe,scrollLeft:Oe,yAxisScrollDir:nt,scrollTop:Le,updateRequested:Ve})},q=Me=>{const{clientHeight:ze,clientWidth:Oe,scrollHeight:Le,scrollLeft:Ve,scrollTop:qe,scrollWidth:nt}=Me.currentTarget,ot=y(I);if(ot.scrollTop===qe&&ot.scrollLeft===Ve)return;let _e=Ve;if(dO(p.direction))switch(Kb()){case _g:_e=-Ve;break;case WA:_e=nt-Oe-Ve;break}I.value={...ot,isScrolling:!0,scrollLeft:_e,scrollTop:Math.max(0,Math.min(qe,Le-ze)),updateRequested:!0,xAxisScrollDir:Vc(ot.scrollLeft,_e),yAxisScrollDir:Vc(ot.scrollTop,qe)},ct(()=>ne()),Ce(),G()},Q=(Me,ze)=>{const Oe=y(D),Le=(F.value-Oe)/ze*Me;oe({scrollTop:Math.min(F.value-Oe,Le)})},ie=(Me,ze)=>{const Oe=y(P),Le=(B.value-Oe)/ze*Me;oe({scrollLeft:Math.min(B.value-Oe,Le)})},{onWheel:de}=WSe({atXStartEdge:R(()=>I.value.scrollLeft<=0),atXEndEdge:R(()=>I.value.scrollLeft>=B.value-y(P)),atYStartEdge:R(()=>I.value.scrollTop<=0),atYEndEdge:R(()=>I.value.scrollTop>=F.value-y(D))},(Me,ze)=>{var Oe,Le,Ve,qe;(Le=(Oe=w.value)==null?void 0:Oe.onMouseUp)==null||Le.call(Oe),(qe=(Ve=k.value)==null?void 0:Ve.onMouseUp)==null||qe.call(Ve);const nt=y(P),ot=y(D);oe({scrollLeft:Math.min(I.value.scrollLeft+Me,B.value-nt),scrollTop:Math.min(I.value.scrollTop+ze,F.value-ot)})}),oe=({scrollLeft:Me=I.value.scrollLeft,scrollTop:ze=I.value.scrollTop})=>{Me=Math.max(Me,0),ze=Math.max(ze,0);const Oe=y(I);ze===Oe.scrollTop&&Me===Oe.scrollLeft||(I.value={...Oe,xAxisScrollDir:Vc(Oe.scrollLeft,Me),yAxisScrollDir:Vc(Oe.scrollTop,ze),scrollLeft:Me,scrollTop:ze,updateRequested:!0},ct(()=>ne()),Ce(),G())},se=(Me=0,ze=0,Oe=Fi)=>{const Le=y(I);ze=Math.max(0,Math.min(ze,p.totalColumn-1)),Me=Math.max(0,Math.min(Me,p.totalRow-1));const Ve=Jz(_.namespace.value),qe=y(x),nt=i(p,qe),ot=o(p,qe);oe({scrollLeft:s(p,ze,Oe,Le.scrollLeft,qe,ot>p.width?Ve:0),scrollTop:l(p,Me,Oe,Le.scrollTop,qe,nt>p.height?Ve:0)})},le=(Me,ze)=>{const{columnWidth:Oe,direction:Le,rowHeight:Ve}=p,qe=E.value(t&&Oe,t&&Ve,t&&Le),nt=`${Me},${ze}`;if(ln(qe,nt))return qe[nt];{const[,ot]=n(p,ze,y(x)),_e=y(x),Je=dO(Le),[St,Rt]=u(p,Me,_e),[Kt]=n(p,ze,_e);return qe[nt]={position:"absolute",left:Je?void 0:`${ot}px`,right:Je?`${ot}px`:void 0,top:`${Rt}px`,height:`${St}px`,width:`${Kt}px`},qe[nt]}},ne=()=>{I.value.isScrolling=!1,ct(()=>{E.value(-1,null,null)})};Ft(()=>{if(!fn)return;const{initScrollLeft:Me,initScrollTop:ze}=p,Oe=y(C);Oe&&(Tt(Me)&&(Oe.scrollLeft=Me),Tt(ze)&&(Oe.scrollTop=ze)),G()});const Ce=()=>{const{direction:Me}=p,{scrollLeft:ze,scrollTop:Oe,updateRequested:Le}=y(I),Ve=y(C);if(Le&&Ve){if(Me===Hd)switch(Kb()){case _g:{Ve.scrollLeft=-ze;break}case HA:{Ve.scrollLeft=ze;break}default:{const{clientWidth:qe,scrollWidth:nt}=Ve;Ve.scrollLeft=nt-qe-ze;break}}else Ve.scrollLeft=Math.max(0,ze);Ve.scrollTop=Math.max(0,Oe)}},{resetAfterColumnIndex:Te,resetAfterRowIndex:he,resetAfter:X}=S.proxy;m({windowRef:C,innerRef:M,getItemStyleCache:E,scrollTo:oe,scrollToItem:se,states:I,resetAfterColumnIndex:Te,resetAfterRowIndex:he,resetAfter:X});const ae=()=>{const{scrollbarAlwaysOn:Me,scrollbarStartGap:ze,scrollbarEndGap:Oe,totalColumn:Le,totalRow:Ve}=p,qe=y(P),nt=y(D),ot=y(B),_e=y(F),{scrollLeft:Je,scrollTop:St}=y(I),Rt=pt(nT,{ref:w,alwaysOn:Me,startGap:ze,endGap:Oe,class:_.e("horizontal"),clientSize:qe,layout:"horizontal",onScroll:ie,ratio:qe*100/ot,scrollFrom:Je/(ot-qe),total:Ve,visible:!0}),Kt=pt(nT,{ref:k,alwaysOn:Me,startGap:ze,endGap:Oe,class:_.e("vertical"),clientSize:nt,layout:"vertical",onScroll:Q,ratio:nt*100/_e,scrollFrom:St/(_e-nt),total:Le,visible:!0});return{horizontalScrollbar:Rt,verticalScrollbar:Kt}},ge=()=>{var Me;const[ze,Oe]=y(N),[Le,Ve]=y(z),{data:qe,totalColumn:nt,totalRow:ot,useIsScrolling:_e,itemKey:Je}=p,St=[];if(ot>0&&nt>0)for(let Rt=Le;Rt<=Ve;Rt++)for(let Kt=ze;Kt<=Oe;Kt++)St.push((Me=b.default)==null?void 0:Me.call(b,{columnIndex:Kt,data:qe,key:Je({columnIndex:Kt,data:qe,rowIndex:Rt}),isScrolling:_e?y(I).isScrolling:void 0,style:le(Rt,Kt),rowIndex:Rt}));return St},ke=()=>{const Me=qt(p.innerElement),ze=ge();return[pt(Me,{style:y(L),ref:M},At(Me)?ze:{default:()=>ze})]};return()=>{const Me=qt(p.containerElement),{horizontalScrollbar:ze,verticalScrollbar:Oe}=ae(),Le=ke();return pt("div",{key:0,class:_.e("wrapper"),role:p.role},[pt(Me,{class:p.className,style:y(V),onScroll:q,onWheel:de,ref:C},At(Me)?Le:{default:()=>Le}),ze,Oe])}}}),GSe=nW({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=Fi:a=ls),a){case yg:return u;case bg:return c;case ls:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case Fi: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===R_&&(i>=c-t&&i<=u+t?a=Fi:a=ls),a){case yg:return u;case bg:return c;case ls:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case Fi: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:Ub,min:rW,floor:aW}=Math,KSe={column:"columnWidth",row:"rowHeight"},rT={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Fs=(e,t,n,r)=>{const[a,i,o]=[n[r],e[KSe[r]],n[rT[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[rT[r]]=t}return a[t]},iW=(e,t,n,r,a,i)=>{for(;n<=r;){const o=n+aW((r-n)/2),s=Fs(e,o,t,i).offset;if(s===a)return o;s<a?n=o+1:r=o-1}return Ub(0,n-1)},USe=(e,t,n,r,a)=>{const i=a==="column"?e.totalColumn:e.totalRow;let o=1;for(;n<i&&Fs(e,n,t,a).offset<r;)n+=o,o*=2;return iW(e,t,aW(n/2),rW(n,i-1),r,a)},vO=(e,t,n,r)=>{const[a,i]=[t[r],t[rT[r]]];return(i>0?a[i].offset:0)>=n?iW(e,t,0,i,n,r):USe(e,t,Ub(0,i),n,r)},oW=({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},sW=({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},jSe={column:sW,row:oW},pO=(e,t,n,r,a,i,o)=>{const[s,l]=[i==="row"?e.height:e.width,jSe[i]],u=Fs(e,t,a,i),c=l(e,a),f=Ub(0,rW(c-s,u.offset)),d=Ub(0,u.offset-s+o+u.size);switch(n===R_&&(r>=d-s&&r<=f+s?n=Fi:n=ls),n){case yg:return f;case bg:return d;case ls:return Math.round(d+(f-d)/2);case Fi:default:return r>=d&&r<=f?r:d>f||r<d?d:f}},YSe=nW({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=Fs(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=Fs(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,a,i)=>pO(e,t,n,r,a,"column",i),getRowOffset:(e,t,n,r,a,i)=>pO(e,t,n,r,a,"row",i),getColumnStartIndexForOffset:(e,t,n)=>vO(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const a=Fs(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+=Fs(e,t,r,"column").size;return s},getEstimatedTotalHeight:oW,getEstimatedTotalWidth:sW,getRowStartIndexForOffset:(e,t,n)=>vO(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:a,height:i}=e,o=Fs(e,t,r,"row"),s=n+i;let l=o.size+o.offset,u=t;for(;u<a-1&&l<s;)u++,l+=Fs(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=Vr(s)?!0:s,Tt(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),Tt(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=X2,estimatedRowHeight:t=X2})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),qSe=te({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Fe("select")}}});function XSe(e,t,n,r,a,i){return e.item.isTitle?($(),Z("div",{key:0,class:W(e.ns.be("group","title")),style:ft([e.style,{lineHeight:`${e.height}px`}])},Ke(e.item.label),7)):($(),Z("div",{key:1,class:W(e.ns.be("group","split")),style:ft(e.style)},[ee("span",{class:W(e.ns.be("group","split-dash")),style:ft({top:`${e.height/2}px`})},null,6)],6))}var ZSe=Ue(qSe,[["render",XSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function QSe(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const JSe={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:Eu},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:Xr.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:__},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:ye(String),values:Af,default:"bottom-start"}},eCe={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},tCe=te({props:eCe,emits:["select","hover"],setup(e,{emit:t}){const n=Fe("select"),{hoverItem:r,selectOptionClick:a}=QSe(e,{emit:t});return{ns:n,hoverItem:r,selectOptionClick:a}}}),nCe=["aria-selected"];function rCe(e,t,n,r,a,i){return $(),Z("li",{"aria-selected":e.selected,style:ft(e.style),class:W([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]=_t((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[Re(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[ee("span",null,Ke(e.item.label),1)])],46,nCe)}var aCe=Ue(tCe,[["render",rCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const lW=Symbol("ElSelectV2Injection");var iCe=te({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=lt(lW),a=Fe("select"),i=U([]),o=U(),s=R(()=>e.data.length);Be(()=>s.value,()=>{var k,M;(M=(k=r.popper.value).updatePopper)==null||M.call(k)});const l=R(()=>Vr(r.props.estimatedOptionHeight)),u=R(()=>l.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:k=>i.value[k]}),c=(k=[],M)=>{const{props:{valueKey:I}}=r;return Qt(M)?k&&k.some(E=>tr(E,I)===tr(M,I)):k.includes(M)},f=(k,M)=>{if(Qt(M)){const{valueKey:I}=r.props;return tr(k,I)===tr(M,I)}else return k===M},d=(k,M)=>{const{valueKey:I}=r.props;return r.props.multiple?c(k,tr(M,I)):f(k,tr(M,I))},h=(k,M)=>{const{disabled:I,multiple:E,multipleLimit:D}=r.props;return I||!M&&(E?D>0&&k.length>=D:!1)},v=k=>e.hoveringIndex===k;n({listRef:o,isSized:l,isItemDisabled:h,isItemHovering:v,isItemSelected:d,scrollToItem:k=>{const M=o.value;M&&M.scrollToItem(k)},resetScrollTop:()=>{const k=o.value;k&&k.resetScrollTop()}});const m=k=>{const{index:M,data:I,style:E}=k,D=y(l),{itemSize:P,estimatedSize:N}=y(u),{modelValue:z}=r.props,{onSelect:F,onHover:B}=r,V=I[M];if(V.type==="Group")return re(ZSe,{item:V,style:E,height:D?P:N},null);const L=d(z,V),G=h(z,L),q=v(M);return re(aCe,Yt(k,{selected:L,disabled:V.disabled||G,created:!!V.created,hovering:q,item:V,onSelect:F,onHover:B}),{default:Q=>{var ie;return((ie=t.default)==null?void 0:ie.call(t,Q))||re("span",null,[V.label])}})},{onKeyboardNavigate:b,onKeyboardSelect:_}=r,S=()=>{b("forward")},x=()=>{b("backward")},C=()=>{r.expanded=!1},w=k=>{const{code:M}=k,{tab:I,esc:E,down:D,up:P,enter:N}=vt;switch(M!==I&&(k.preventDefault(),k.stopPropagation()),M){case I:case E:{C();break}case D:{S();break}case P:{x();break}case N:{_();break}}};return()=>{var k;const{data:M,width:I}=e,{height:E,multiple:D,scrollbarAlwaysOn:P}=r.props;if(M.length===0)return re("div",{class:a.b("dropdown"),style:{width:`${I}px`}},[(k=t.empty)==null?void 0:k.call(t)]);const N=y(l)?eW:HSe;return re("div",{class:[a.b("dropdown"),a.is("multiple",D)]},[re(N,Yt({ref:o},y(u),{className:a.be("dropdown","list"),scrollbarAlwaysOn:P,data:M,height:E,width:I,total:M.length,onKeydown:w}),{default:z=>re(m,z,null)})])}}});function oCe(e,t){const n=U(0),r=U(null),a=R(()=>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 sCe=e=>{const t=[];return e.forEach(n=>{st(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 lCe(e){const t=U(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,s=o[o.length-1]||"";t.value=!w_(s)},handleCompositionEnd:i=>{t.value&&(t.value=!1,kt(e)&&e(i))}}}const gO="",mO=11,uCe={larget:51,default:42,small:33},cCe=(e,t)=>{const{t:n}=pn(),r=Fe("select-v2"),a=Fe("input"),{form:i,formItem:o}=Ga(),s=Sn({inputValue:gO,displayInputValue:gO,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=U(-1),u=U(-1),c=U(null),f=U(null),d=U(null),h=U(null),v=U(null),p=U(null),g=U(null),m=U(!1),b=R(()=>e.disabled||(i==null?void 0:i.disabled)),_=R(()=>{const be=D.value.length*34;return be>e.height?e.height:be}),S=R(()=>!Lr(e.modelValue)),x=R(()=>{const be=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:S.value;return e.clearable&&!b.value&&s.comboBoxHovering&&be}),C=R(()=>e.remote&&e.filterable?"":m_),w=R(()=>C.value&&r.is("reverse",m.value)),k=R(()=>(o==null?void 0:o.validateState)||""),M=R(()=>aA[k.value]),I=R(()=>e.remote?300:0),E=R(()=>{const be=D.value;return e.loading?e.loadingText||n("el.select.loading"):e.remote&&s.inputValue===""&&be.length===0?!1:e.filterable&&s.inputValue&&be.length>0?e.noMatchText||n("el.select.noMatch"):be.length===0?e.noDataText||n("el.select.noData"):null}),D=R(()=>{const be=Ze=>{const Wt=s.inputValue,hn=new RegExp(Zz(Wt),"i");return Wt?hn.test(Ze.label||""):!0};return e.loading?[]:sCe(e.options.concat(s.createdOptions).map(Ze=>{if(st(Ze.options)){const Wt=Ze.options.filter(be);if(Wt.length>0)return{...Ze,options:Wt}}else if(e.remote||be(Ze))return Ze;return null}).filter(Ze=>Ze!==null))}),P=R(()=>{const be=new Map;return D.value.forEach((Ze,Wt)=>{be.set(qe(Ze),{option:Ze,index:Wt})}),be}),N=R(()=>D.value.every(be=>be.disabled)),z=$r(),F=R(()=>z.value==="small"?"small":"default"),B=R(()=>{const be=p.value,Ze=F.value||"default",Wt=be?Number.parseInt(getComputedStyle(be).paddingLeft):0,hn=be?Number.parseInt(getComputedStyle(be).paddingRight):0;return s.selectWidth-hn-Wt-uCe[Ze]}),V=()=>{var be;u.value=((be=v.value)==null?void 0:be.offsetWidth)||200},L=R(()=>({width:`${s.calculatedWidth===0?mO:Math.ceil(s.calculatedWidth)+mO}px`})),G=R(()=>st(e.modelValue)?e.modelValue.length===0&&!s.displayInputValue:e.filterable?s.displayInputValue.length===0:!0),q=R(()=>{const be=e.placeholder||n("el.select.placeholder");return e.multiple||Lr(e.modelValue)?be:s.selectedLabel}),Q=R(()=>{var be,Ze;return(Ze=(be=h.value)==null?void 0:be.popperRef)==null?void 0:Ze.contentRef}),ie=R(()=>{if(e.multiple){const be=e.modelValue.length;if(e.modelValue.length>0&&P.value.has(e.modelValue[be-1])){const{index:Ze}=P.value.get(e.modelValue[be-1]);return Ze}}else if(e.modelValue&&P.value.has(e.modelValue)){const{index:be}=P.value.get(e.modelValue);return be}return-1}),de=R({get(){return m.value&&E.value!==!1},set(be){m.value=be}}),oe=R(()=>s.cachedOptions.slice(0,e.maxCollapseTags)),se=R(()=>s.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:le,removeNewOption:ne,selectNewOption:Ce,clearAllNewOption:Te}=oCe(e,s),{handleCompositionStart:he,handleCompositionUpdate:X,handleCompositionEnd:ae}=lCe(be=>kr(be)),ge=()=>{var be,Ze,Wt;(Ze=(be=f.value)==null?void 0:be.focus)==null||Ze.call(be),(Wt=h.value)==null||Wt.updatePopper()},ke=()=>{if(!e.automaticDropdown&&!b.value)return s.isComposing&&(s.softFocus=!0),ct(()=>{var be,Ze;m.value=!m.value,(Ze=(be=f.value)==null?void 0:be.focus)==null||Ze.call(be)})},Pe=()=>(e.filterable&&s.inputValue!==s.selectedLabel&&(s.query=s.selectedLabel),ze(s.inputValue),ct(()=>{le(s.inputValue)})),Me=Va(Pe,I.value),ze=be=>{s.previousQuery!==be&&(s.previousQuery=be,e.filterable&&kt(e.filterMethod)?e.filterMethod(be):e.filterable&&e.remote&&kt(e.remoteMethod)&&e.remoteMethod(be))},Oe=be=>{ni(e.modelValue,be)||t(qn,be)},Le=be=>{t(Gt,be),Oe(be),s.previousValue=be==null?void 0:be.toString()},Ve=(be=[],Ze)=>{if(!Qt(Ze))return be.indexOf(Ze);const Wt=e.valueKey;let hn=-1;return be.some((br,_r)=>tr(br,Wt)===tr(Ze,Wt)?(hn=_r,!0):!1),hn},qe=be=>Qt(be)?tr(be,e.valueKey):be,nt=be=>Qt(be)?be.label:be,ot=()=>ct(()=>{var be,Ze;if(!f.value)return;const Wt=p.value;v.value.height=Wt.offsetHeight,m.value&&E.value!==!1&&((Ze=(be=h.value)==null?void 0:be.updatePopper)==null||Ze.call(be))}),_e=()=>{var be,Ze;if(Je(),V(),(Ze=(be=h.value)==null?void 0:be.updatePopper)==null||Ze.call(be),e.multiple)return ot()},Je=()=>{const be=p.value;be&&(s.selectWidth=be.getBoundingClientRect().width)},St=(be,Ze,Wt=!0)=>{var hn,br;if(e.multiple){let _r=e.modelValue.slice();const wr=Ve(_r,qe(be));wr>-1?(_r=[..._r.slice(0,wr),..._r.slice(wr+1)],s.cachedOptions.splice(wr,1),ne(be)):(e.multipleLimit<=0||_r.length<e.multipleLimit)&&(_r=[..._r,qe(be)],s.cachedOptions.push(be),Ce(be),Ct(Ze)),Le(_r),be.created&&(s.query="",ze(""),s.inputLength=20),e.filterable&&!e.reserveKeyword&&((br=(hn=f.value).focus)==null||br.call(hn),$e("")),e.filterable&&(s.calculatedWidth=g.value.getBoundingClientRect().width),ot(),dr()}else l.value=Ze,s.selectedLabel=be.label,Le(qe(be)),m.value=!1,s.isComposing=!1,s.isSilentBlur=Wt,Ce(be),be.created||Te(),Ct(Ze)},Rt=(be,Ze)=>{const{valueKey:Wt}=e,hn=e.modelValue.indexOf(tr(Ze,Wt));if(hn>-1&&!b.value){const br=[...e.modelValue.slice(0,hn),...e.modelValue.slice(hn+1)];return s.cachedOptions.splice(hn,1),Le(br),t("remove-tag",tr(Ze,Wt)),s.softFocus=!0,ne(Ze),ct(ge)}be.stopPropagation()},Kt=be=>{const Ze=s.isComposing;s.isComposing=!0,s.softFocus?s.softFocus=!1:Ze||t("focus",be)},gt=be=>(s.softFocus=!1,ct(()=>{var Ze,Wt;(Wt=(Ze=f.value)==null?void 0:Ze.blur)==null||Wt.call(Ze),g.value&&(s.calculatedWidth=g.value.getBoundingClientRect().width),s.isSilentBlur?s.isSilentBlur=!1:s.isComposing&&t("blur",be),s.isComposing=!1})),Ie=()=>{s.displayInputValue.length>0?$e(""):m.value=!1},we=be=>{if(s.displayInputValue.length===0){be.preventDefault();const Ze=e.modelValue.slice();Ze.pop(),ne(s.cachedOptions.pop()),Le(Ze)}},ve=()=>{let be;return st(e.modelValue)?be=[]:be=void 0,s.softFocus=!0,e.multiple?s.cachedOptions=[]:s.selectedLabel="",m.value=!1,Le(be),t("clear"),Te(),ct(ge)},$e=be=>{s.displayInputValue=be,s.inputValue=be},ue=(be,Ze=void 0)=>{const Wt=D.value;if(!["forward","backward"].includes(be)||b.value||Wt.length<=0||N.value)return;if(!m.value)return ke();Ze===void 0&&(Ze=s.hoveringIndex);let hn=-1;be==="forward"?(hn=Ze+1,hn>=Wt.length&&(hn=0)):be==="backward"&&(hn=Ze-1,(hn<0||hn>=Wt.length)&&(hn=Wt.length-1));const br=Wt[hn];if(br.disabled||br.type==="Group")return ue(be,hn);Ct(hn),De(hn)},rt=()=>{if(m.value)~s.hoveringIndex&&D.value[s.hoveringIndex]&&St(D.value[s.hoveringIndex],s.hoveringIndex,!1);else return ke()},Ct=be=>{s.hoveringIndex=be},jt=()=>{s.hoveringIndex=-1},dr=()=>{var be;const Ze=f.value;Ze&&((be=Ze.focus)==null||be.call(Ze))},kr=be=>{const Ze=be.target.value;if($e(Ze),s.displayInputValue.length>0&&!m.value&&(m.value=!0),s.calculatedWidth=g.value.getBoundingClientRect().width,e.multiple&&ot(),e.remote)Me();else return Pe()},Ir=()=>(m.value=!1,gt()),yr=()=>(s.inputValue=s.displayInputValue,ct(()=>{~ie.value&&(Ct(ie.value),De(s.hoveringIndex))})),De=be=>{d.value.scrollToItem(be)},tt=()=>{if(jt(),e.multiple)if(e.modelValue.length>0){let be=!1;s.cachedOptions.length=0,s.previousValue=e.modelValue.toString();for(const Ze of e.modelValue)if(P.value.has(Ze)){const{index:Wt,option:hn}=P.value.get(Ze);s.cachedOptions.push(hn),be||Ct(Wt),be=!0}}else s.cachedOptions=[],s.previousValue=void 0;else if(S.value){s.previousValue=e.modelValue;const be=D.value,Ze=be.findIndex(Wt=>qe(Wt)===qe(e.modelValue));~Ze?(s.selectedLabel=be[Ze].label,Ct(Ze)):s.selectedLabel=`${e.modelValue}`}else s.selectedLabel="",s.previousValue=void 0;Te(),V()};return Be(m,be=>{var Ze,Wt;t("visible-change",be),be?(Wt=(Ze=h.value).update)==null||Wt.call(Ze):(s.displayInputValue="",s.previousQuery=null,le(""))}),Be(()=>e.modelValue,(be,Ze)=>{var Wt;(!be||be.toString()!==s.previousValue)&&tt(),!ni(be,Ze)&&e.validateEvent&&((Wt=o==null?void 0:o.validate)==null||Wt.call(o,"change").catch(hn=>void 0))},{deep:!0}),Be(()=>e.options,()=>{const be=f.value;(!be||be&&document.activeElement!==be)&&tt()},{deep:!0}),Be(D,()=>ct(d.value.resetScrollTop)),Be(()=>de.value,be=>{be||jt()}),Ft(()=>{tt()}),wa(v,_e),{collapseTagSize:F,currentPlaceholder:q,expanded:m,emptyText:E,popupHeight:_,debounce:I,filteredOptions:D,iconComponent:C,iconReverse:w,inputWrapperStyle:L,popperSize:u,dropdownMenuVisible:de,hasModelValue:S,shouldShowPlaceholder:G,selectDisabled:b,selectSize:z,showClearBtn:x,states:s,tagMaxWidth:B,nsSelectV2:r,nsInput:a,calculatorRef:g,controlRef:c,inputRef:f,menuRef:d,popper:h,selectRef:v,selectionRef:p,popperRef:Q,validateState:k,validateIcon:M,showTagList:oe,collapseTagList:se,debouncedOnInputChange:Me,deleteTag:Rt,getLabel:nt,getValueKey:qe,handleBlur:gt,handleClear:ve,handleClickOutside:Ir,handleDel:we,handleEsc:Ie,handleFocus:Kt,handleMenuEnter:yr,handleResize:_e,toggleMenu:ke,scrollTo:De,onInput:kr,onKeyboardNavigate:ue,onKeyboardSelect:rt,onSelect:St,onHover:Ct,onUpdateInputValue:$e,handleCompositionStart:he,handleCompositionEnd:ae,handleCompositionUpdate:X}},fCe=te({name:"ElSelectV2",components:{ElSelectMenu:iCe,ElTag:gg,ElTooltip:Fa,ElIcon:ut},directives:{ClickOutside:mu,ModelText:DM},props:JSe,emits:[Gt,qn,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=R(()=>{const{modelValue:a,multiple:i}=e,o=i?[]:void 0;return st(a)?i?a:o:i?o:a}),r=cCe(Sn({...Ur(e),modelValue:n}),t);return Jt(lW,{props:Sn({...Ur(e),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),dCe={key:0},hCe=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],vCe=["textContent"],pCe=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],gCe=["textContent"];function mCe(e,t,n,r,a,i){const o=Pt("el-tag"),s=Pt("el-tooltip"),l=Pt("el-icon"),u=Pt("el-select-menu"),c=eg("model-text"),f=eg("click-outside");return Ot(($(),Z("div",{ref:"selectRef",class:W([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=_t((...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)},[re(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:ce(()=>[ee("div",{ref:"selectionRef",class:W([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?($(),Z("div",dCe,[Re(e.$slots,"prefix")])):me("v-if",!0),e.multiple?($(),Z("div",{key:1,class:W(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?($(),Z(dt,{key:0},[($(!0),Z(dt,null,an(e.showTagList,d=>($(),Z("div",{key:e.getValueKey(d),class:W(e.nsSelectV2.e("selected-item"))},[re(o,{closable:!e.selectDisabled&&!(d!=null&&d.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:ce(()=>[ee("span",{class:W(e.nsSelectV2.e("tags-text")),style:ft({maxWidth:`${e.tagMaxWidth}px`})},Ke(d==null?void 0:d.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),ee("div",{class:W(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?($(),Se(o,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:ce(()=>[e.collapseTagsTooltip?($(),Se(s,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:ce(()=>[ee("span",{class:W(e.nsSelectV2.e("tags-text")),style:ft({maxWidth:`${e.tagMaxWidth}px`})},"+ "+Ke(e.modelValue.length-e.maxCollapseTags),7)]),content:ce(()=>[ee("div",{class:W(e.nsSelectV2.e("selection"))},[($(!0),Z(dt,null,an(e.collapseTagList,d=>($(),Z("div",{key:e.getValueKey(d),class:W(e.nsSelectV2.e("selected-item"))},[re(o,{closable:!e.selectDisabled&&!d.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:ce(()=>[ee("span",{class:W(e.nsSelectV2.e("tags-text")),style:ft({maxWidth:`${e.tagMaxWidth}px`})},Ke(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):($(),Z("span",{key:1,class:W(e.nsSelectV2.e("tags-text")),style:ft({maxWidth:`${e.tagMaxWidth}px`})},"+ "+Ke(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):me("v-if",!0)],2)],64)):($(!0),Z(dt,{key:1},an(e.states.cachedOptions,d=>($(),Z("div",{key:e.getValueKey(d),class:W(e.nsSelectV2.e("selected-item"))},[re(o,{closable:!e.selectDisabled&&!d.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:ce(()=>[ee("span",{class:W(e.nsSelectV2.e("tags-text")),style:ft({maxWidth:`${e.tagMaxWidth}px`})},Ke(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),ee("div",{class:W([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:ft(e.inputWrapperStyle)},[Ot(ee("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:W([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]=vn(_t(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=vn(_t(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=vn(_t((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[10]||(t[10]=vn(_t((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"])),t[11]||(t[11]=vn(_t((...d)=>e.handleDel&&e.handleDel(...d),["stop"]),["delete"]))]},null,42,hCe),[[c,e.states.displayInputValue]]),e.filterable?($(),Z("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:W(e.nsSelectV2.e("input-calculator")),textContent:Ke(e.states.displayInputValue)},null,10,vCe)):me("v-if",!0)],6)],2)):($(),Z(dt,{key:2},[ee("div",{class:W([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[Ot(ee("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:W(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]=vn(_t(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=vn(_t(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=vn(_t((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[21]||(t[21]=vn(_t((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d))},null,42,pCe),[[c,e.states.displayInputValue]])],2),e.filterable?($(),Z("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:W([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:Ke(e.states.displayInputValue)},null,10,gCe)):me("v-if",!0)],64)),e.shouldShowPlaceholder?($(),Z("span",{key:3,class:W([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},Ke(e.currentPlaceholder),3)):me("v-if",!0),ee("span",{class:W(e.nsSelectV2.e("suffix"))},[e.iconComponent?Ot(($(),Se(l,{key:0,class:W([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ce(()=>[($(),Se(qt(e.iconComponent)))]),_:1},8,["class"])),[[bn,!e.showClearBtn]]):me("v-if",!0),e.showClearBtn&&e.clearIcon?($(),Se(l,{key:1,class:W([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:_t(e.handleClear,["prevent","stop"])},{default:ce(()=>[($(),Se(qt(e.clearIcon)))]),_:1},8,["class","onClick"])):me("v-if",!0),e.validateState&&e.validateIcon?($(),Se(l,{key:2,class:W([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:ce(()=>[($(),Se(qt(e.validateIcon)))]),_:1},8,["class"])):me("v-if",!0)],2)],2)]),content:ce(()=>[re(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:ce(d=>[Re(e.$slots,"default",_o(i_(d)))]),empty:ce(()=>[Re(e.$slots,"empty",{},()=>[ee("p",{class:W(e.nsSelectV2.e("empty"))},Ke(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 j0=Ue(fCe,[["render",mCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);j0.install=e=>{e.component(j0.name,j0)};const yCe=j0,bCe=yCe,_Ce=je({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),wCe=je({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),SCe=te({name:"ElSkeletonItem"}),CCe=te({...SCe,props:wCe,setup(e){const t=Fe("skeleton");return(n,r)=>($(),Z("div",{class:W([y(t).e("item"),y(t).e(n.variant)])},[n.variant==="image"?($(),Se(y(Ise),{key:0})):me("v-if",!0)],2))}});var jb=Ue(CCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const xCe=te({name:"ElSkeleton"}),TCe=te({...xCe,props:_Ce,setup(e,{expose:t}){const n=e,r=Fe("skeleton"),a=xue(or(n,"loading"),n.throttle);return t({uiLoading:a}),(i,o)=>y(a)?($(),Z("div",Yt({key:0,class:[y(r).b(),y(r).is("animated",i.animated)]},i.$attrs),[($(!0),Z(dt,null,an(i.count,s=>($(),Z(dt,{key:s},[i.loading?Re(i.$slots,"template",{key:s},()=>[re(jb,{class:W(y(r).is("first")),variant:"p"},null,8,["class"]),($(!0),Z(dt,null,an(i.rows,l=>($(),Se(jb,{key:l,class:W([y(r).e("paragraph"),y(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):me("v-if",!0)],64))),128))],16)):Re(i.$slots,"default",_o(Yt({key:1},i.$attrs)))}});var kCe=Ue(TCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const MCe=Ht(kCe,{SkeletonItem:jb}),ACe=fr(jb),uW=Symbol("sliderContextKey"),ECe=je({modelValue:{type:ye([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:la,inputSize:la,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:ye(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:ye(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Af,default:"top"},marks:{type:ye(Object)},validateEvent:{type:Boolean,default:!0}}),SS=e=>Tt(e)||st(e)&&e.every(Tt),ICe={[Gt]:SS,[Oa]:SS,[qn]:SS},DCe=(e,t,n)=>{const r=U();return Ft(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),Qn(window,"resize",n),await ct(),n()}),{sliderWrapper:r}},PCe=e=>R(()=>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]})):[]),LCe=(e,t,n)=>{const{form:r,formItem:a}=Ga(),i=zn(),o=U(),s=U(),l={firstButton:o,secondButton:s},u=R(()=>e.disabled||(r==null?void 0:r.disabled)||!1),c=R(()=>Math.min(t.firstValue,t.secondValue)),f=R(()=>Math.max(t.firstValue,t.secondValue)),d=R(()=>e.range?`${100*(f.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=R(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),v=R(()=>e.vertical?{height:e.height}:{}),p=R(()=>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=E=>{const D=e.min+E*(e.max-e.min)/100;if(!e.range)return o;let P;return Math.abs(c.value-D)<Math.abs(f.value-D)?P=t.firstValue<t.secondValue?"firstButton":"secondButton":P=t.firstValue>t.secondValue?"firstButton":"secondButton",l[P]},b=E=>{const D=m(E);return D.value.setPosition(E),D},_=E=>{t.firstValue=E,x(e.range?[c.value,f.value]:E)},S=E=>{t.secondValue=E,e.range&&x([c.value,f.value])},x=E=>{n(Gt,E),n(Oa,E)},C=async()=>{await ct(),n(qn,e.range?[c.value,f.value]:e.modelValue)},w=E=>{var D,P,N,z,F,B;if(u.value||t.dragging)return;g();let V=0;if(e.vertical){const L=(N=(P=(D=E.touches)==null?void 0:D.item(0))==null?void 0:P.clientY)!=null?N:E.clientY;V=(i.value.getBoundingClientRect().bottom-L)/t.sliderSize*100}else{const L=(B=(F=(z=E.touches)==null?void 0:z.item(0))==null?void 0:F.clientX)!=null?B:E.clientX,G=i.value.getBoundingClientRect().left;V=(L-G)/t.sliderSize*100}if(!(V<0||V>100))return b(V)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:v,barStyle:p,resetSize:g,setPosition:b,emitChange:C,onSliderWrapperPrevent:E=>{var D,P;((D=l.firstButton.value)!=null&&D.dragging||(P=l.secondButton.value)!=null&&P.dragging)&&E.preventDefault()},onSliderClick:E=>{w(E)&&C()},onSliderDown:async E=>{const D=w(E);D&&(await ct(),D.value.onButtonDown(E))},setFirstValue:_,setSecondValue:S}},{left:RCe,down:OCe,right:NCe,up:$Ce,home:BCe,end:VCe,pageUp:FCe,pageDown:zCe}=vt,HCe=(e,t,n)=>{const r=U(),a=U(!1),i=R(()=>t.value instanceof Function),o=R(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=Va(()=>{n.value&&(a.value=!0)},50),l=Va(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},WCe=(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}=lt(uW),{tooltip:v,tooltipVisible:p,formatValue:g,displayTooltip:m,hideTooltip:b}=HCe(e,c,s),_=U(),S=R(()=>`${(e.modelValue-a.value)/(i.value-a.value)*100}%`),x=R(()=>e.vertical?{bottom:S.value}:{left:S.value}),C=()=>{t.hovering=!0,m()},w=()=>{t.hovering=!1,t.dragging||b()},k=Q=>{r.value||(Q.preventDefault(),V(Q),window.addEventListener("mousemove",L),window.addEventListener("touchmove",L),window.addEventListener("mouseup",G),window.addEventListener("touchend",G),window.addEventListener("contextmenu",G),_.value.focus())},M=Q=>{r.value||(t.newPosition=Number.parseFloat(S.value)+Q/(i.value-a.value)*100,q(t.newPosition),f())},I=()=>{M(-o.value)},E=()=>{M(o.value)},D=()=>{M(-o.value*4)},P=()=>{M(o.value*4)},N=()=>{r.value||(q(0),f())},z=()=>{r.value||(q(100),f())},F=Q=>{let ie=!0;[RCe,OCe].includes(Q.key)?I():[NCe,$Ce].includes(Q.key)?E():Q.key===BCe?N():Q.key===VCe?z():Q.key===zCe?D():Q.key===FCe?P():ie=!1,ie&&Q.preventDefault()},B=Q=>{let ie,de;return Q.type.startsWith("touch")?(de=Q.touches[0].clientY,ie=Q.touches[0].clientX):(de=Q.clientY,ie=Q.clientX),{clientX:ie,clientY:de}},V=Q=>{t.dragging=!0,t.isClick=!0;const{clientX:ie,clientY:de}=B(Q);e.vertical?t.startY=de:t.startX=ie,t.startPosition=Number.parseFloat(S.value),t.newPosition=t.startPosition},L=Q=>{if(t.dragging){t.isClick=!1,m(),d();let ie;const{clientX:de,clientY:oe}=B(Q);e.vertical?(t.currentY=oe,ie=(t.startY-t.currentY)/u.value*100):(t.currentX=de,ie=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+ie,q(t.newPosition)}},G=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||q(t.newPosition),f()},0),window.removeEventListener("mousemove",L),window.removeEventListener("touchmove",L),window.removeEventListener("mouseup",G),window.removeEventListener("touchend",G),window.removeEventListener("contextmenu",G))},q=async Q=>{if(Q===null||Number.isNaN(+Q))return;Q<0?Q=0:Q>100&&(Q=100);const ie=100/((i.value-a.value)/o.value);let oe=Math.round(Q/ie)*ie*(i.value-a.value)*.01+a.value;oe=Number.parseFloat(oe.toFixed(l.value)),oe!==e.modelValue&&n(Gt,oe),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await ct(),t.dragging&&m(),v.value.updatePopper()};return Be(()=>t.dragging,Q=>{h(Q)}),{disabled:r,button:_,tooltip:v,tooltipVisible:p,showTooltip:s,wrapperStyle:x,formatValue:g,handleMouseEnter:C,handleMouseLeave:w,onButtonDown:k,onKeyDown:F,setPosition:q}},GCe=(e,t,n,r)=>({stops:R(()=>{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}%`}}),KCe=(e,t,n,r,a,i)=>{const o=u=>{a(Gt,u),a(Oa,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&&Nr("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(),Be(()=>t.dragging,u=>{u||l()}),Be(()=>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}),Be(()=>[e.min,e.max],()=>{l()})},UCe=je({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Af,default:"top"}}),jCe={[Gt]:e=>Tt(e)},YCe=["tabindex"],qCe=te({name:"ElSliderButton"}),XCe=te({...qCe,props:UCe,emits:jCe,setup(e,{expose:t,emit:n}){const r=e,a=Fe("slider"),i=Sn({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}=WCe(r,i,n),{hovering:b,dragging:_}=Ur(i);return t({onButtonDown:p,onKeyDown:g,setPosition:m,hovering:b,dragging:_}),(S,x)=>($(),Z("div",{ref_key:"button",ref:s,class:W([y(a).e("button-wrapper"),{hover:y(b),dragging:y(_)}]),style:ft(y(f)),tabindex:y(o)?-1:0,onMouseenter:x[0]||(x[0]=(...C)=>y(h)&&y(h)(...C)),onMouseleave:x[1]||(x[1]=(...C)=>y(v)&&y(v)(...C)),onMousedown:x[2]||(x[2]=(...C)=>y(p)&&y(p)(...C)),onTouchstart:x[3]||(x[3]=(...C)=>y(p)&&y(p)(...C)),onFocus:x[4]||(x[4]=(...C)=>y(h)&&y(h)(...C)),onBlur:x[5]||(x[5]=(...C)=>y(v)&&y(v)(...C)),onKeydown:x[6]||(x[6]=(...C)=>y(g)&&y(g)(...C))},[re(y(Fa),{ref_key:"tooltip",ref:l,visible:y(c),placement:S.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":S.tooltipClass,disabled:!y(u),persistent:""},{content:ce(()=>[ee("span",null,Ke(y(d)),1)]),default:ce(()=>[ee("div",{class:W([y(a).e("button"),{hover:y(b),dragging:y(_)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,YCe))}});var yO=Ue(XCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const ZCe=je({mark:{type:ye([String,Object]),default:void 0}});var QCe=te({name:"ElSliderMarker",props:ZCe,setup(e){const t=Fe("slider"),n=R(()=>At(e.mark)?e.mark:e.mark.label),r=R(()=>At(e.mark)?void 0:e.mark.style);return()=>pt("div",{class:t.e("marks-text"),style:r.value},n.value)}});const JCe=["id","role","aria-label","aria-labelledby"],exe={key:1},txe=te({name:"ElSlider"}),nxe=te({...txe,props:ECe,emits:ICe,setup(e,{expose:t,emit:n}){const r=e,a=Fe("slider"),{t:i}=pn(),o=Sn({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:S,setFirstValue:x,setSecondValue:C}=LCe(r,o,n),{stops:w,getStopStyle:k}=GCe(r,o,d,h),{inputId:M,isLabeledByFormItem:I}=Lu(r,{formItemContext:s}),E=$r(),D=R(()=>r.inputSize||E.value),P=R(()=>r.label||i("el.slider.defaultLabel",{min:r.min,max:r.max})),N=R(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):P.value),z=R(()=>r.formatValueText?r.formatValueText(Q.value):`${Q.value}`),F=R(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),B=R(()=>r.formatValueText?r.formatValueText(ie.value):`${ie.value}`),V=R(()=>[a.b(),a.m(E.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),L=PCe(r);KCe(r,o,d,h,n,s);const G=R(()=>{const se=[r.min,r.max,r.step].map(le=>{const ne=`${le}`.split(".")[1];return ne?ne.length:0});return Math.max.apply(null,se)}),{sliderWrapper:q}=DCe(r,o,g),{firstValue:Q,secondValue:ie,sliderSize:de}=Ur(o),oe=se=>{o.dragging=se};return Jt(uW,{...Ur(r),sliderSize:de,disabled:f,precision:G,emitChange:m,resetSize:g,updateDragging:oe}),t({onSliderClick:_}),(se,le)=>{var ne,Ce;return $(),Z("div",{id:se.range?y(M):void 0,ref_key:"sliderWrapper",ref:q,class:W(y(V)),role:se.range?"group":void 0,"aria-label":se.range&&!y(I)?y(P):void 0,"aria-labelledby":se.range&&y(I)?(ne=y(s))==null?void 0:ne.labelId:void 0,onTouchstart:le[2]||(le[2]=(...Te)=>y(b)&&y(b)(...Te)),onTouchmove:le[3]||(le[3]=(...Te)=>y(b)&&y(b)(...Te))},[ee("div",{ref_key:"slider",ref:l,class:W([y(a).e("runway"),{"show-input":se.showInput&&!se.range},y(a).is("disabled",y(f))]),style:ft(y(v)),onMousedown:le[0]||(le[0]=(...Te)=>y(S)&&y(S)(...Te)),onTouchstart:le[1]||(le[1]=(...Te)=>y(S)&&y(S)(...Te))},[ee("div",{class:W(y(a).e("bar")),style:ft(y(p))},null,6),re(yO,{id:se.range?void 0:y(M),ref_key:"firstButton",ref:u,"model-value":y(Q),vertical:se.vertical,"tooltip-class":se.tooltipClass,placement:se.placement,role:"slider","aria-label":se.range||!y(I)?y(N):void 0,"aria-labelledby":!se.range&&y(I)?(Ce=y(s))==null?void 0:Ce.labelId:void 0,"aria-valuemin":se.min,"aria-valuemax":se.range?y(ie):se.max,"aria-valuenow":y(Q),"aria-valuetext":y(z),"aria-orientation":se.vertical?"vertical":"horizontal","aria-disabled":y(f),"onUpdate:modelValue":y(x)},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"]),se.range?($(),Se(yO,{key:0,ref_key:"secondButton",ref:c,"model-value":y(ie),vertical:se.vertical,"tooltip-class":se.tooltipClass,placement:se.placement,role:"slider","aria-label":y(F),"aria-valuemin":y(Q),"aria-valuemax":se.max,"aria-valuenow":y(ie),"aria-valuetext":y(B),"aria-orientation":se.vertical?"vertical":"horizontal","aria-disabled":y(f),"onUpdate:modelValue":y(C)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):me("v-if",!0),se.showStops?($(),Z("div",exe,[($(!0),Z(dt,null,an(y(w),(Te,he)=>($(),Z("div",{key:he,class:W(y(a).e("stop")),style:ft(y(k)(Te))},null,6))),128))])):me("v-if",!0),y(L).length>0?($(),Z(dt,{key:2},[ee("div",null,[($(!0),Z(dt,null,an(y(L),(Te,he)=>($(),Z("div",{key:he,style:ft(y(k)(Te.position)),class:W([y(a).e("stop"),y(a).e("marks-stop")])},null,6))),128))]),ee("div",{class:W(y(a).e("marks"))},[($(!0),Z(dt,null,an(y(L),(Te,he)=>($(),Se(y(QCe),{key:he,mark:Te.mark,style:ft(y(k)(Te.position))},null,8,["mark","style"]))),128))],2)],64)):me("v-if",!0)],38),se.showInput&&!se.range?($(),Se(y(NH),{key:0,ref:"input","model-value":y(Q),class:W(y(a).e("input")),step:se.step,disabled:y(f),controls:se.showInputControls,min:se.min,max:se.max,debounce:se.debounce,size:y(D),"onUpdate:modelValue":y(x),onChange:y(m)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):me("v-if",!0)],42,JCe)}}});var rxe=Ue(nxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const axe=Ht(rxe),ixe=je({prefixCls:{type:String}}),bO=te({name:"ElSpaceItem",props:ixe,setup(e,{slots:t}){const n=Fe("space"),r=R(()=>`${e.prefixCls||n.b()}__item`);return()=>pt("div",{class:r.value},Re(t,"default"))}}),_O={small:8,default:12,large:16};function oxe(e){const t=Fe("space"),n=R(()=>[t.b(),t.m(e.direction),e.class]),r=U(0),a=U(0),i=R(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`}:{},l={alignItems:e.alignment};return[s,l,e.style]}),o=R(()=>{const s={paddingBottom:`${a.value}px`,marginRight:`${r.value}px`},l=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[s,l]});return yi(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=e;if(st(s)){const[f=0,d=0]=s;r.value=f,a.value=d}else{let f;Tt(s)?f=s:f=_O[s||"small"]||_O.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 sxe=je({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:ye([String,Object,Array]),default:""},style:{type:ye([String,Array,Object]),default:""},alignment:{type:ye(String),default:"center"},prefixCls:{type:String},spacer:{type:ye([Object,String,Number,Array]),default:null,validator:e=>ar(e)||Tt(e)||At(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:xs,validator:e=>Tt(e)||st(e)&&e.length===2&&e.every(Tt)}}),lxe=te({name:"ElSpace",props:sxe,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:a}=oxe(e);function i(o,s="",l=[]){const{prefixCls:u}=e;return o.forEach((c,f)=>{_2(c)?st(c.children)&&c.children.forEach((d,h)=>{_2(d)&&st(d.children)?i(d.children,`${s+h}-`,l):l.push(re(bO,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[d]},Li.PROPS|Li.STYLE,["style","prefixCls"]))}):ule(c)&&l.push(re(bO,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},Li.PROPS|Li.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=e,u=Re(t,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(st(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(re("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[ar(s)?s:_n(s,Li.TEXT)],Li.STYLE)),p},[])}return re("div",{class:n.value,style:r.value},c,Li.STYLE|Li.CLASS)}return u.children}}}),uxe=Ht(lxe),cxe=je({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:ye([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:ye([String,Object,Array])}}),fxe=te({name:"ElStatistic"}),dxe=te({...fxe,props:cxe,setup(e,{expose:t}){const n=e,r=Fe("statistic"),a=R(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(kt(o))return o(i);if(!Tt(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)=>($(),Z("div",{class:W(y(r).b())},[i.$slots.title||i.title?($(),Z("div",{key:0,class:W(y(r).e("head"))},[Re(i.$slots,"title",{},()=>[_n(Ke(i.title),1)])],2)):me("v-if",!0),ee("div",{class:W(y(r).e("content"))},[i.$slots.prefix||i.prefix?($(),Z("div",{key:0,class:W(y(r).e("prefix"))},[Re(i.$slots,"prefix",{},()=>[ee("span",null,Ke(i.prefix),1)])],2)):me("v-if",!0),ee("span",{class:W(y(r).e("number")),style:ft(i.valueStyle)},Ke(y(a)),7),i.$slots.suffix||i.suffix?($(),Z("div",{key:1,class:W(y(r).e("suffix"))},[Re(i.$slots,"suffix",{},()=>[ee("span",null,Ke(i.suffix),1)])],2)):me("v-if",!0)],2)],2))}});var hxe=Ue(dxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const cW=Ht(hxe),vxe=je({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:ye([Number,Object]),default:0},valueStyle:{type:ye([String,Object,Array])}}),pxe={finish:()=>!0,[qn]:e=>Tt(e)},gxe=[["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]],wO=e=>Tt(e)?new Date(e).getTime():e.valueOf(),SO=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return gxe.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=te({name:"ElCountdown"}),yxe=te({...mxe,props:vxe,emits:pxe,setup(e,{expose:t,emit:n}){const r=e;let a;const i=U(wO(r.value)-Date.now()),o=R(()=>SO(i.value,r.format)),s=c=>SO(c,r.format),l=()=>{a&&(S_(a),a=void 0)},u=()=>{const c=wO(r.value),f=()=>{let d=c-Date.now();n("change",d),d<=0?(d=0,l(),n("finish")):a=ch(f),i.value=d};a=ch(f)};return Be(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0}),er(()=>{l()}),t({displayValue:o}),(c,f)=>($(),Se(y(cW),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},Qs({_:2},[an(c.$slots,(d,h)=>({name:h,fn:ce(()=>[Re(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var bxe=Ue(yxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const _xe=Ht(bxe),wxe=je({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"}}),Sxe={[qn]:(e,t)=>[e,t].every(Tt)},Cxe=te({name:"ElSteps"}),xxe=te({...Cxe,props:wxe,emits:Sxe,setup(e,{emit:t}){const n=e,r=Fe("steps"),{children:a,addChild:i,removeChild:o}=wA(Bt(),"ElStep");return Be(a,()=>{a.value.forEach((s,l)=>{s.setIndex(l)})}),Jt("ElSteps",{props:n,steps:a,addStep:i,removeStep:o}),Be(()=>n.active,(s,l)=>{t(qn,s,l)}),(s,l)=>($(),Z("div",{class:W([y(r).b(),y(r).m(s.simple?"simple":s.direction)])},[Re(s.$slots,"default")],2))}});var Txe=Ue(xxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const kxe=je({title:{type:String,default:""},icon:{type:Wn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Mxe=te({name:"ElStep"}),Axe=te({...Mxe,props:kxe,setup(e){const t=e,n=Fe("step"),r=U(-1),a=U({}),i=U(""),o=lt("ElSteps"),s=Bt();Ft(()=>{Be([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([C])=>{S(C)},{immediate:!0})}),er(()=>{o.removeStep(x.uid)});const l=R(()=>t.status||i.value),u=R(()=>{const C=o.steps.value[r.value-1];return C?C.currentStatus:"wait"}),c=R(()=>o.props.alignCenter),f=R(()=>o.props.direction==="vertical"),d=R(()=>o.props.simple),h=R(()=>o.steps.value.length),v=R(()=>{var C;return((C=o.steps.value[h.value-1])==null?void 0:C.uid)===(s==null?void 0:s.uid)}),p=R(()=>d.value?"":o.props.space),g=R(()=>[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=R(()=>{const C={flexBasis:Tt(p.value)?`${p.value}px`:p.value?p.value:`${100/(h.value-(c.value?0:1))}%`};return f.value||v.value&&(C.maxWidth=`${100/h.value}%`),C}),b=C=>{r.value=C},_=C=>{const w=C==="wait",k={transitionDelay:`${w?"-":""}${150*r.value}ms`},M=C===o.props.processStatus||w?0:100;k.borderWidth=M&&!d.value?"1px":0,k[o.props.direction==="vertical"?"height":"width"]=`${M}%`,a.value=k},S=C=>{C>r.value?i.value=o.props.finishStatus:C===r.value&&u.value!=="error"?i.value=o.props.processStatus:i.value="wait";const w=o.steps.value[r.value-1];w&&w.calcProgress(i.value)},x=Sn({uid:s.uid,currentStatus:l,setIndex:b,calcProgress:_});return o.addStep(x),(C,w)=>($(),Z("div",{style:ft(y(m)),class:W(y(g))},[me(" icon & line "),ee("div",{class:W([y(n).e("head"),y(n).is(y(l))])},[y(d)?me("v-if",!0):($(),Z("div",{key:0,class:W(y(n).e("line"))},[ee("i",{class:W(y(n).e("line-inner")),style:ft(a.value)},null,6)],2)),ee("div",{class:W([y(n).e("icon"),y(n).is(C.icon||C.$slots.icon?"icon":"text")])},[Re(C.$slots,"icon",{},()=>[C.icon?($(),Se(y(ut),{key:0,class:W(y(n).e("icon-inner"))},{default:ce(()=>[($(),Se(qt(C.icon)))]),_:1},8,["class"])):y(l)==="success"?($(),Se(y(ut),{key:1,class:W([y(n).e("icon-inner"),y(n).is("status")])},{default:ce(()=>[re(y(vm))]),_:1},8,["class"])):y(l)==="error"?($(),Se(y(ut),{key:2,class:W([y(n).e("icon-inner"),y(n).is("status")])},{default:ce(()=>[re(y(Do))]),_:1},8,["class"])):y(d)?me("v-if",!0):($(),Z("div",{key:3,class:W(y(n).e("icon-inner"))},Ke(r.value+1),3))])],2)],2),me(" title & description "),ee("div",{class:W(y(n).e("main"))},[ee("div",{class:W([y(n).e("title"),y(n).is(y(l))])},[Re(C.$slots,"title",{},()=>[_n(Ke(C.title),1)])],2),y(d)?($(),Z("div",{key:0,class:W(y(n).e("arrow"))},null,2)):($(),Z("div",{key:1,class:W([y(n).e("description"),y(n).is(y(l))])},[Re(C.$slots,"description",{},()=>[_n(Ke(C.description),1)])],2))],2)],6))}});var fW=Ue(Axe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const Exe=Ht(Txe,{Step:fW}),Ixe=fr(fW),Dxe=je({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:__},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:Wn},activeActionIcon:{type:Wn},activeIcon:{type:Wn},inactiveIcon:{type:Wn},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:ye(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),Pxe={[Gt]:e=>Rr(e)||At(e)||Tt(e),[qn]:e=>Rr(e)||At(e)||Tt(e),[Oa]:e=>Rr(e)||At(e)||Tt(e)},Lxe=["onClick"],Rxe=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],Oxe=["aria-hidden"],Nxe=["aria-hidden"],$xe=["aria-hidden"],aT="ElSwitch",Bxe=te({name:aT}),Vxe=te({...Bxe,props:Dxe,emits:Pxe,setup(e,{expose:t,emit:n}){const r=e,a=Bt(),{formItem:i}=Ga(),o=$r(),s=Fe("switch");(k=>{k.forEach(M=>{ms({from:M[0],replacement:M[1],scope:aT,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},R(()=>{var I;return!!((I=a.vnode.props)!=null&&I[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}=Lu(r,{formItemContext:i}),c=li(R(()=>r.loading)),f=U(r.modelValue!==!1),d=U(),h=U(),v=R(()=>[s.b(),s.m(o.value),s.is("disabled",c.value),s.is("checked",_.value)]),p=R(()=>[s.e("label"),s.em("label","left"),s.is("active",!_.value)]),g=R(()=>[s.e("label"),s.em("label","right"),s.is("active",_.value)]),m=R(()=>({width:gr(r.width)}));Be(()=>r.modelValue,()=>{f.value=!0}),Be(()=>r.value,()=>{f.value=!1});const b=R(()=>f.value?r.modelValue:r.value),_=R(()=>b.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(b.value)||(n(Gt,r.inactiveValue),n(qn,r.inactiveValue),n(Oa,r.inactiveValue)),Be(_,k=>{var M;d.value.checked=k,r.validateEvent&&((M=i==null?void 0:i.validate)==null||M.call(i,"change").catch(I=>void 0))});const S=()=>{const k=_.value?r.inactiveValue:r.activeValue;n(Gt,k),n(qn,k),n(Oa,k),ct(()=>{d.value.checked=_.value})},x=()=>{if(c.value)return;const{beforeChange:k}=r;if(!k){S();return}const M=k();[Yp(M),Rr(M)].includes(!0)||Nr(aT,"beforeChange must return type `Promise<boolean>` or `boolean`"),Yp(M)?M.then(E=>{E&&S()}).catch(E=>{}):M&&S()},C=R(()=>s.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),w=()=>{var k,M;(M=(k=d.value)==null?void 0:k.focus)==null||M.call(k)};return Ft(()=>{d.value.checked=_.value}),t({focus:w,checked:_}),(k,M)=>($(),Z("div",{class:W(y(v)),style:ft(y(C)),onClick:_t(x,["prevent"])},[ee("input",{id:y(u),ref_key:"input",ref:d,class:W(y(s).e("input")),type:"checkbox",role:"switch","aria-checked":y(_),"aria-disabled":y(c),name:k.name,"true-value":k.activeValue,"false-value":k.inactiveValue,disabled:y(c),tabindex:k.tabindex,onChange:S,onKeydown:vn(x,["enter"])},null,42,Rxe),!k.inlinePrompt&&(k.inactiveIcon||k.inactiveText)?($(),Z("span",{key:0,class:W(y(p))},[k.inactiveIcon?($(),Se(y(ut),{key:0},{default:ce(()=>[($(),Se(qt(k.inactiveIcon)))]),_:1})):me("v-if",!0),!k.inactiveIcon&&k.inactiveText?($(),Z("span",{key:1,"aria-hidden":y(_)},Ke(k.inactiveText),9,Oxe)):me("v-if",!0)],2)):me("v-if",!0),ee("span",{ref_key:"core",ref:h,class:W(y(s).e("core")),style:ft(y(m))},[k.inlinePrompt?($(),Z("div",{key:0,class:W(y(s).e("inner"))},[k.activeIcon||k.inactiveIcon?($(),Se(y(ut),{key:0,class:W(y(s).is("icon"))},{default:ce(()=>[($(),Se(qt(y(_)?k.activeIcon:k.inactiveIcon)))]),_:1},8,["class"])):k.activeText||k.inactiveText?($(),Z("span",{key:1,class:W(y(s).is("text")),"aria-hidden":!y(_)},Ke(y(_)?k.activeText:k.inactiveText),11,Nxe)):me("v-if",!0)],2)):me("v-if",!0),ee("div",{class:W(y(s).e("action"))},[k.loading?($(),Se(y(ut),{key:0,class:W(y(s).is("loading"))},{default:ce(()=>[re(y(Iu))]),_:1},8,["class"])):k.activeActionIcon&&y(_)?($(),Se(y(ut),{key:1},{default:ce(()=>[($(),Se(qt(k.activeActionIcon)))]),_:1})):k.inactiveActionIcon&&!y(_)?($(),Se(y(ut),{key:2},{default:ce(()=>[($(),Se(qt(k.inactiveActionIcon)))]),_:1})):me("v-if",!0)],2)],6),!k.inlinePrompt&&(k.activeIcon||k.activeText)?($(),Z("span",{key:1,class:W(y(g))},[k.activeIcon?($(),Se(y(ut),{key:0},{default:ce(()=>[($(),Se(qt(k.activeIcon)))]),_:1})):me("v-if",!0),!k.activeIcon&&k.activeText?($(),Z("span",{key:1,"aria-hidden":!y(_)},Ke(k.activeText),9,$xe)):me("v-if",!0)],2)):me("v-if",!0)],14,Lxe))}});var Fxe=Ue(Vxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const zxe=Ht(Fxe);/*!
 
-  * escape-html
 
-  * Copyright(c) 2012-2013 TJ Holowaychuk
 
-  * Copyright(c) 2015 Andreas Lubbe
 
-  * Copyright(c) 2015 Tiancheng "Timothy" Gu
 
-  * MIT Licensed
 
-  */var Hxe=/["'&<>]/,Wxe=Gxe;function Gxe(e){var t=""+e,n=Hxe.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=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";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 Kxe=Fo(Wxe),CS=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Uxe=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"?tr(s,u):u(s,l,e))):(t!=="$key"&&Qt(s)&&"$value"in s&&(s=s.$value),[Qt(s)?tr(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)},dW=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},jxe=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||Nr("ElTable",`No column matching with column-key: ${t}`),n},CO=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?dW(e,r[0]):null},ra=(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)},Fc=function(e,t){const n={};return(e||[]).forEach((r,a)=>{n[ra(r,t)]={row:r,index:a}}),n};function Yxe(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(ln(t,r)){const a=t[r];typeof a<"u"&&(n[r]=a)}return n}function GA(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function hW(e){return e===""||e!==void 0&&(e=GA(e),Number.isNaN(e)&&(e=80)),e}function qxe(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Xxe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Ap(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,st(t.children)&&t.children.forEach(l=>{Ap(e,l,n??!i)})};return Rr(n)?n&&!i?o("add"):!n&&i&&o("remove"):o(i?"remove":"add"),r}function Zxe(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 Ns;function Qxe(e,t,n,r,a){a=qz({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=Kxe(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()}Ns==null||Ns(),Ns=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",Ns),Ns=void 0}catch{}};let c=null,f=u,d=Ns;a.enterable&&({onOpen:f,onClose:d}=E6({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:Ns}));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=k6(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",Ns),c}function vW(e){return e.children?Soe(e.children,vW):[e]}function xO(e,t){return e+t.colSpan}const pW=(e,t,n,r)=>{let a=0,i=e;const o=n.states.columns.value;if(r){const l=vW(r[e]);a=o.slice(0,o.indexOf(l[0])).reduce(xO,0),i=a+l.reduce(xO,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}:{}},KA=(e,t,n,r,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=pW(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 TO(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const UA=(e,t,n,r)=>{const{direction:a,start:i=0,after:o=0}=pW(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(TO,0):s.right=u.slice(o+1).reverse().reduce(TO,0),s},yh=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function Jxe(e){const t=Bt(),n=U(!1),r=U([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=Fc(r.value,u);r.value=l.reduce((f,d)=>{const h=ra(d,u);return c[h]&&f.push(d),f},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{Ap(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=Fc(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?!!Fc(r.value,u)[ra(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function e2e(e){const t=Bt(),n=U(null),r=U(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=>ra(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=ra(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 t2e(e){const t=U([]),n=U({}),r=U(16),a=U(!1),i=U({}),o=U("hasChildren"),s=U("children"),l=Bt(),u=R(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return f(m)}),c=R(()=>{const m=e.rowKey.value,b=Object.keys(i.value),_={};return b.length&&b.forEach(S=>{if(i.value[S].length){const x={children:[]};i.value[S].forEach(C=>{const w=ra(C,m);x.children.push(w),C[o.value]&&!_[w]&&(_[w]={children:[]})}),_[S]=x}}),_}),f=m=>{const b=e.rowKey.value,_={};return Zxe(m,(S,x,C)=>{const w=ra(S,b);Array.isArray(x)?_[w]={children:x.map(k=>ra(k,b)),level:C}:a.value&&(_[w]={children:[],lazy:!0,level:C})},s.value,o.value),_},d=(m=!1,b=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const S=u.value,x=c.value,C=Object.keys(S),w={};if(C.length){const k=y(n),M=[],I=(D,P)=>{if(m)return t.value?b||t.value.includes(P):!!(b||D!=null&&D.expanded);{const N=b||t.value&&t.value.includes(P);return!!(D!=null&&D.expanded||N)}};C.forEach(D=>{const P=k[D],N={...S[D]};if(N.expanded=I(P,D),N.lazy){const{loaded:z=!1,loading:F=!1}=P||{};N.loaded=!!z,N.loading=!!F,M.push(D)}w[D]=N});const E=Object.keys(x);a.value&&E.length&&M.length&&E.forEach(D=>{const P=k[D],N=x[D].children;if(M.includes(D)){if(w[D].children.length!==0)throw new Error("[ElTable]children must be an empty array.");w[D].children=N}else{const{loaded:z=!1,loading:F=!1}=P||{};w[D]={lazy:!0,loaded:!!z,loading:!!F,expanded:I(P,D),children:N,level:""}}})}n.value=w,(_=l.store)==null||_.updateTableScrollY()};Be(()=>t.value,()=>{d(!0)}),Be(()=>u.value,()=>{d()}),Be(()=>c.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,b)=>{l.store.assertRowKey();const _=e.rowKey.value,S=ra(m,_),x=S&&n.value[S];if(S&&x&&"expanded"in x){const C=x.expanded;b=typeof b>"u"?!x.expanded:b,n.value[S].expanded=b,C!==b&&l.emit("expand-change",m,b),l.store.updateTableScrollY()}},p=m=>{l.store.assertRowKey();const b=e.rowKey.value,_=ra(m,b),S=n.value[_];a.value&&S&&"loaded"in S&&!S.loaded?g(m,_,S):v(m,void 0)},g=(m,b,_)=>{const{load:S}=l.props;S&&!n.value[b].loaded&&(n.value[b].loading=!0,S(m,_,x=>{if(!Array.isArray(x))throw new TypeError("[ElTable] data must be an array");n.value[b].loading=!1,n.value[b].loaded=!0,n.value[b].expanded=!0,x.length&&(i.value[b]=x),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 n2e=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:Uxe(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Y0=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Y0(n.children)):t.push(n)}),t};function r2e(){var e;const t=Bt(),{size:n}=Ur((e=t.proxy)==null?void 0:e.$props),r=U(null),a=U([]),i=U([]),o=U(!1),s=U([]),l=U([]),u=U([]),c=U([]),f=U([]),d=U([]),h=U([]),v=U([]),p=[],g=U(0),m=U(0),b=U(0),_=U(!1),S=U([]),x=U(!1),C=U(!1),w=U(null),k=U({}),M=U(null),I=U(null),E=U(null),D=U(null),P=U(null);Be(a,()=>t.state&&B(!1),{deep:!0});const N=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},z=gt=>{var Ie;(Ie=gt.children)==null||Ie.forEach(we=>{we.fixed=gt.fixed,z(we)})},F=()=>{s.value.forEach($e=>{z($e)}),c.value=s.value.filter($e=>$e.fixed===!0||$e.fixed==="left"),f.value=s.value.filter($e=>$e.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 gt=s.value.filter($e=>!$e.fixed);l.value=[].concat(c.value).concat(gt).concat(f.value);const Ie=Y0(gt),we=Y0(c.value),ve=Y0(f.value);g.value=Ie.length,m.value=we.length,b.value=ve.length,u.value=[].concat(we).concat(Ie).concat(ve),o.value=c.value.length>0||f.value.length>0},B=(gt,Ie=!1)=>{gt&&F(),Ie?t.state.doLayout():t.state.debouncedUpdateLayout()},V=gt=>S.value.includes(gt),L=()=>{_.value=!1,S.value.length&&(S.value=[],t.emit("selection-change",[]))},G=()=>{let gt;if(r.value){gt=[];const Ie=Fc(S.value,r.value),we=Fc(a.value,r.value);for(const ve in Ie)ln(Ie,ve)&&!we[ve]&>.push(Ie[ve].row)}else gt=S.value.filter(Ie=>!a.value.includes(Ie));if(gt.length){const Ie=S.value.filter(we=>!gt.includes(we));S.value=Ie,t.emit("selection-change",Ie.slice())}},q=()=>(S.value||[]).slice(),Q=(gt,Ie=void 0,we=!0)=>{if(Ap(S.value,gt,Ie)){const $e=(S.value||[]).slice();we&&t.emit("select",$e,gt),t.emit("selection-change",$e)}},ie=()=>{var gt,Ie;const we=C.value?!_.value:!(_.value||S.value.length);_.value=we;let ve=!1,$e=0;const ue=(Ie=(gt=t==null?void 0:t.store)==null?void 0:gt.states)==null?void 0:Ie.rowKey.value;a.value.forEach((rt,Ct)=>{const jt=Ct+$e;w.value?w.value.call(null,rt,jt)&&Ap(S.value,rt,we)&&(ve=!0):Ap(S.value,rt,we)&&(ve=!0),$e+=se(ra(rt,ue))}),ve&&t.emit("selection-change",S.value?S.value.slice():[]),t.emit("select-all",S.value)},de=()=>{const gt=Fc(S.value,r.value);a.value.forEach(Ie=>{const we=ra(Ie,r.value),ve=gt[we];ve&&(S.value[ve.index]=Ie)})},oe=()=>{var gt,Ie,we;if(((gt=a.value)==null?void 0:gt.length)===0){_.value=!1;return}let ve;r.value&&(ve=Fc(S.value,r.value));const $e=function(jt){return ve?!!ve[ra(jt,r.value)]:S.value.includes(jt)};let ue=!0,rt=0,Ct=0;for(let jt=0,dr=(a.value||[]).length;jt<dr;jt++){const kr=(we=(Ie=t==null?void 0:t.store)==null?void 0:Ie.states)==null?void 0:we.rowKey.value,Ir=jt+Ct,yr=a.value[jt],De=w.value&&w.value.call(null,yr,Ir);if($e(yr))rt++;else if(!w.value||De){ue=!1;break}Ct+=se(ra(yr,kr))}rt===0&&(ue=!1),_.value=ue},se=gt=>{var Ie;if(!t||!t.store)return 0;const{treeData:we}=t.store.states;let ve=0;const $e=(Ie=we.value[gt])==null?void 0:Ie.children;return $e&&(ve+=$e.length,$e.forEach(ue=>{ve+=se(ue)})),ve},le=(gt,Ie)=>{Array.isArray(gt)||(gt=[gt]);const we={};return gt.forEach(ve=>{k.value[ve.id]=Ie,we[ve.columnKey||ve.id]=Ie}),we},ne=(gt,Ie,we)=>{I.value&&I.value!==gt&&(I.value.order=null),I.value=gt,E.value=Ie,D.value=we},Ce=()=>{let gt=y(i);Object.keys(k.value).forEach(Ie=>{const we=k.value[Ie];if(!we||we.length===0)return;const ve=dW({columns:u.value},Ie);ve&&ve.filterMethod&&(gt=gt.filter($e=>we.some(ue=>ve.filterMethod.call(null,ue,$e,ve))))}),M.value=gt},Te=()=>{a.value=n2e(M.value,{sortingColumn:I.value,sortProp:E.value,sortOrder:D.value})},he=(gt=void 0)=>{gt&>.filter||Ce(),Te()},X=gt=>{const{tableHeaderRef:Ie}=t.refs;if(!Ie)return;const we=Object.assign({},Ie.filterPanels),ve=Object.keys(we);if(ve.length)if(typeof gt=="string"&&(gt=[gt]),Array.isArray(gt)){const $e=gt.map(ue=>jxe({columns:u.value},ue));ve.forEach(ue=>{const rt=$e.find(Ct=>Ct.id===ue);rt&&(rt.filteredValue=[])}),t.store.commit("filterChange",{column:$e,values:[],silent:!0,multi:!0})}else ve.forEach($e=>{const ue=u.value.find(rt=>rt.id===$e);ue&&(ue.filteredValue=[])}),k.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},ae=()=>{I.value&&(ne(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ge,toggleRowExpansion:ke,updateExpandRows:Pe,states:Me,isRowExpanded:ze}=Jxe({data:a,rowKey:r}),{updateTreeExpandKeys:Oe,toggleTreeExpansion:Le,updateTreeData:Ve,loadOrToggle:qe,states:nt}=t2e({data:a,rowKey:r}),{updateCurrentRowData:ot,updateCurrentRow:_e,setCurrentRowKey:Je,states:St}=e2e({data:a,rowKey:r});return{assertRowKey:N,updateColumns:F,scheduleLayout:B,isSelected:V,clearSelection:L,cleanSelection:G,getSelectionRows:q,toggleRowSelection:Q,_toggleAllSelection:ie,toggleAllSelection:null,updateSelectionByRowKey:de,updateAllSelected:oe,updateFilters:le,updateCurrentRow:_e,updateSort:ne,execFilter:Ce,execSort:Te,execQuery:he,clearFilter:X,clearSort:ae,toggleRowExpansion:ke,setExpandRowKeysAdapter:gt=>{ge(gt),Oe(gt)},setCurrentRowKey:Je,toggleRowExpansionAdapter:(gt,Ie)=>{u.value.some(({type:ve})=>ve==="expand")?ke(gt,Ie):Le(gt,Ie)},isRowExpanded:ze,updateExpandRows:Pe,updateCurrentRowData:ot,loadOrToggle:qe,updateTreeData:Ve,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:S,reserveSelection:x,selectOnIndeterminate:C,selectable:w,filters:k,filteredData:M,sortingColumn:I,sortProp:E,sortOrder:D,hoverRow:P,...Me,...nt,...St}}}function iT(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=iT(n.children,t)),n)})}function oT(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&oT(t.children)}),e.sort((t,n)=>t.no-n.no)}function a2e(){const e=Bt(),t=r2e();return{ns:Fe("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=iT(c,l)):(c.push(s),f=c),oT(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&&(oT(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),ct(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=iT(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(){ct(()=>e.layout.updateScrollY.apply(e.layout))}}}const Ep={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 i2e(e,t){if(!e)throw new Error("Table is required.");const n=a2e();return n.toggleAllSelection=Va(n._toggleAllSelection,10),Object.keys(Ep).forEach(r=>{gW(mW(t,r),r,n)}),o2e(n,t),n}function o2e(e,t){Object.keys(Ep).forEach(n=>{Be(()=>mW(t,n),r=>{gW(r,n,e)})})}function gW(e,t,n){let r=e,a=Ep[t];typeof Ep[t]=="object"&&(a=a.key,r=r||Ep[t].default),n.states[a].value=r}function mW(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 s2e{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=U(null),this.scrollX=U(!1),this.scrollY=U(!1),this.bodyWidth=U(null),this.fixedWidth=U(null),this.rightFixedWidth=U(null),this.gutterWidth=0;for(const n in t)ln(t,n)&&(Hn(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(!fn)return;const r=this.table.vnode.el;if(t=qxe(t),this.height.value=Number(t),!r&&(t||t===0))return ct(()=>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(!fn)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:l2e}=Qi,u2e=te({name:"ElTableFilterPanel",components:{ElCheckbox:Qi,ElCheckboxGroup:l2e,ElScrollbar:hl,ElTooltip:Fa,ElIcon:ut,ArrowDown:Au,ArrowUp:m_},directives:{ClickOutside:mu},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=Bt(),{t:n}=pn(),r=Fe("table-filter"),a=t==null?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const i=U(!1),o=U(null),s=R(()=>e.column&&e.column.filters),l=R({get:()=>{var S;return(((S=e.column)==null?void 0:S.filteredValue)||[])[0]},set:S=>{u.value&&(typeof S<"u"&&S!==null?u.value.splice(0,1,S):u.value.splice(0,1))}}),u=R({get(){return e.column?e.column.filteredValue||[]:[]},set(S){e.column&&e.upDataColumn("filteredValue",S)}}),c=R(()=>e.column?e.column.filterMultiple:!0),f=S=>S.value===l.value,d=()=>{i.value=!1},h=S=>{S.stopPropagation(),i.value=!i.value},v=()=>{i.value=!1},p=()=>{b(u.value),d()},g=()=>{u.value=[],b(u.value),d()},m=S=>{l.value=S,b(typeof S<"u"&&S!==null?u.value:[]),d()},b=S=>{e.store.commit("filterChange",{column:e.column,values:S}),e.store.updateAllSelected()};Be(i,S=>{e.column&&e.upDataColumn("filterOpened",S)},{immediate:!0});const _=R(()=>{var S,x;return(x=(S=o.value)==null?void 0:S.popperRef)==null?void 0:x.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}}}),c2e={key:0},f2e=["disabled"],d2e=["label","onClick"];function h2e(e,t,n,r,a,i){const o=Pt("el-checkbox"),s=Pt("el-checkbox-group"),l=Pt("el-scrollbar"),u=Pt("arrow-up"),c=Pt("arrow-down"),f=Pt("el-icon"),d=Pt("el-tooltip"),h=eg("click-outside");return $(),Se(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:ce(()=>[e.multiple?($(),Z("div",c2e,[ee("div",{class:W(e.ns.e("content"))},[re(l,{"wrap-class":e.ns.e("wrap")},{default:ce(()=>[re(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:W(e.ns.e("checkbox-group"))},{default:ce(()=>[($(!0),Z(dt,null,an(e.filters,v=>($(),Se(o,{key:v.value,label:v.value},{default:ce(()=>[_n(Ke(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),ee("div",{class:W(e.ns.e("bottom"))},[ee("button",{class:W({[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))},Ke(e.t("el.table.confirmFilter")),11,f2e),ee("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},Ke(e.t("el.table.resetFilter")),1)],2)])):($(),Z("ul",{key:1,class:W(e.ns.e("list"))},[ee("li",{class:W([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))},Ke(e.t("el.table.clearFilter")),3),($(!0),Z(dt,null,an(e.filters,v=>($(),Z("li",{key:v.value,class:W([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},Ke(v.text),11,d2e))),128))],2))]),default:ce(()=>[Ot(($(),Z("span",{class:W([`${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))},[re(f,null,{default:ce(()=>[e.column.filterOpened?($(),Se(u,{key:0})):($(),Se(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var v2e=Ue(u2e,[["render",h2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function yW(e){const t=Bt();r_(()=>{n.value.addObserver(t)}),Ft(()=>{r(n.value),a(n.value)}),cl(()=>{r(n.value),a(n.value)}),Mu(()=>{n.value.removeObserver(t)});const n=R(()=>{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 ks=Symbol("ElTable");function p2e(e,t){const n=Bt(),r=lt(ks),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=U(null),l=U(!1),u=U({}),c=(p,g)=>{if(fn&&!(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,S=n.vnode.el.querySelector(`th.${g.id}`),x=S.getBoundingClientRect(),C=x.left-_+30;ss(S,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:x.right-_,startColumnLeft:x.left-_,tableLeft:_};const w=m==null?void 0:m.refs.resizeProxy;w.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const k=I=>{const E=I.clientX-u.value.startMouseLeft,D=u.value.startLeft+E;w.style.left=`${Math.max(C,D)}px`},M=()=>{if(l.value){const{startColumnLeft:I,startLeft:E}=u.value,P=Number.parseInt(w.style.left,10)-I;g.width=g.realWidth=P,m==null||m.emit("header-dragend",g.width,E-I,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",k),document.removeEventListener("mouseup",M),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ri(S,"noclick")},0)};document.addEventListener("mousemove",k),document.addEventListener("mouseup",M)}},f=(p,g)=>{if(g.children&&g.children.length>0)return;const m=p.target;if(!ji(m))return;const b=m==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const _=b.getBoundingClientRect(),S=document.body.style;_.width>12&&_.right-p.pageX<8?(S.cursor="col-resize",ko(b,"is-sortable")&&(b.style.cursor="col-resize"),s.value=g):l.value||(S.cursor="",ko(b,"is-sortable")&&(b.style.cursor="pointer"),s.value=null)}},d=()=>{fn&&(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),S=(b=p.target)==null?void 0:b.closest("th");if(S&&ko(S,"noclick")){ri(S,"noclick");return}if(!g.sortable)return;const x=e.store.states;let C=x.sortProp.value,w;const k=x.sortingColumn.value;(k!==g||k===g&&k.order===null)&&(k&&(k.order=null),x.sortingColumn.value=g,C=g.property),_?w=g.order=_:w=g.order=null,x.sortProp.value=C,x.sortOrder.value=w,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:v,handleFilterClick:a}}function g2e(e){const t=lt(ks),n=Fe("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=UA(l,c.fixed,e.store,u);return yh(h,"left"),yh(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=KA(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 bW=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,bW(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 bW(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 y2e(e){const t=lt(ks),n=R(()=>m2e(e.store.states.originColumns.value));return{isGroup:R(()=>{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 b2e=te({name:"ElTableHeader",components:{ElCheckbox:Qi},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=Bt(),r=lt(ks),a=Fe("table"),i=U({}),{onColumnsChange:o,onScrollableChange:s}=yW(r);Ft(async()=>{await ct(),await ct();const{prop:C,order:w}=e.defaultSort;r==null||r.store.commit("sort",{prop:C,order:w,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=p2e(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:b}=g2e(e),{isGroup:_,toggleAllSelection:S,columnRows:x}=y2e(e);return n.state={onColumnsChange:o,onScrollableChange:s},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:s,columnRows:x,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:b,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v,isGroup:_,toggleAllSelection:S}},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 pt("thead",{class:{[e.is("group")]:t}},n.map((g,m)=>pt("tr",{class:i(m),key:m,style:o(m)},g.map((b,_)=>(b.rowSpan>p&&(p=b.rowSpan),pt("th",{class:a(m,_,g,b),colspan:b.colSpan,key:`${b.id}-thead`,rowspan:b.rowSpan,style:r(m,_,g,b),onClick:S=>s(S,b),onContextmenu:S=>l(S,b),onMousedown:S=>u(S,b),onMousemove:S=>c(S,b),onMouseout:d},[pt("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&&pt("span",{onClick:S=>f(S,b),class:"caret-wrapper"},[pt("i",{onClick:S=>f(S,b,"ascending"),class:"sort-caret ascending"}),pt("i",{onClick:S=>f(S,b,"descending"),class:"sort-caret descending"})]),b.filterable&&pt(v2e,{store:h,placement:b.filterPlacement||"bottom-start",column:b,upDataColumn:(S,x)=>{b[S]=x}})])]))))))}});function _2e(e){const t=lt(ks),n=U(""),r=U(pt("div")),{nextZIndex:a}=Bh(),i=(v,p,g)=>{var m;const b=t,_=CS(v);let S;const x=(m=b==null?void 0:b.vnode.el)==null?void 0:m.dataset.prefix;_&&(S=CO({columns:e.store.states.columns.value},_,x),S&&(b==null||b.emit(`cell-${g}`,p,S,_,v))),b==null||b.emit(`row-${g}`,p,S,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=Va(v=>{e.store.commit("setHoverRow",v)},30),c=Va(()=>{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,_=CS(v),S=(m=b==null?void 0:b.vnode.el)==null?void 0:m.dataset.prefix;if(_){const B=CO({columns:e.store.states.columns.value},_,S),V=b.hoverState={cell:_,column:B,row:p};b==null||b.emit("cell-mouse-enter",V.row,V.column,V.cell,v)}if(!g)return;const x=v.target.querySelector(".cell");if(!(ko(x,`${S}-tooltip`)&&x.childNodes.length))return;const C=document.createRange();C.setStart(x,0),C.setEnd(x,x.childNodes.length);let w=C.getBoundingClientRect().width,k=C.getBoundingClientRect().height;w-Math.floor(w)<.001&&(w=Math.floor(w)),k-Math.floor(k)<.001&&(k=Math.floor(k));const{top:E,left:D,right:P,bottom:N}=f(x),z=D+P,F=E+N;(w+z>x.offsetWidth||k+F>x.offsetHeight||x.scrollWidth>x.offsetWidth)&&Qxe(t==null?void 0:t.refs.tableWrapper,_,_.innerText||_.textContent,a,g)},handleCellMouseLeave:v=>{if(!CS(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 w2e(e){const t=lt(ks),n=Fe("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=UA(c,e==null?void 0:e.fixed,e.store);return yh(p,"left"),yh(p,"right"),Object.assign({},v,p)},getCellClass:(u,c,f,d,h)=>{const v=KA(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 S2e(e){const t=lt(ks),n=Fe("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=_2e(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=w2e(e),b=R(()=>e.store.states.columns.value.findIndex(({type:w})=>w==="default")),_=(w,k)=>{const M=t.props.rowKey;return M?ra(w,M):k},S=(w,k,M,I=!1)=>{const{tooltipEffect:E,tooltipOptions:D,store:P}=e,{indent:N,columns:z}=P.states,F=h(w,k);let B=!0;return M&&(F.push(n.em("row",`level-${M.level}`)),B=M.display),pt("tr",{style:[B?null:{display:"none"},d(w,k)],class:F,key:_(w,k),onDblclick:L=>r(L,w),onClick:L=>a(L,w),onContextmenu:L=>i(L,w),onMouseenter:()=>o(k),onMouseleave:s},z.value.map((L,G)=>{const{rowspan:q,colspan:Q}=g(w,L,k,G);if(!q||!Q)return null;const ie=Object.assign({},L);ie.realWidth=m(z.value,Q,G);const de={store:e.store,_self:e.context||t,column:ie,row:w,$index:k,cellIndex:G,expanded:I};G===b.value&&M&&(de.treeNode={indent:M.level*N.value,level:M.level},typeof M.expanded=="boolean"&&(de.treeNode.expanded=M.expanded,"loading"in M&&(de.treeNode.loading=M.loading),"noLazyChildren"in M&&(de.treeNode.noLazyChildren=M.noLazyChildren)));const oe=`${k},${G}`,se=ie.columnKey||ie.rawColumnKey||"",le=x(G,L,de),ne=L.showOverflowTooltip&&qz({effect:E},D,L.showOverflowTooltip);return pt("td",{style:v(k,G,w,L),class:p(k,G,w,L,Q-1),key:`${se}${oe}`,rowspan:q,colspan:Q,onMouseenter:Ce=>l(Ce,w,ne),onMouseleave:u},[le])}))},x=(w,k,M)=>k.renderCell(M);return{wrappedRowRender:(w,k)=>{const M=e.store,{isRowExpanded:I,assertRowKey:E}=M,{treeData:D,lazyTreeNodeMap:P,childrenColumnName:N,rowKey:z}=M.states,F=M.states.columns.value;if(F.some(({type:V})=>V==="expand")){const V=I(w),L=S(w,k,void 0,V),G=t.renderExpanded;return V?G?[[L,pt("tr",{key:`expanded-row__${L.key}`},[pt("td",{colspan:F.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[G({row:w,$index:k,store:M,expanded:V})])])]]:(console.error("[Element Error]renderExpanded is required."),L):[[L]]}else if(Object.keys(D.value).length){E();const V=ra(w,z.value);let L=D.value[V],G=null;L&&(G={expanded:L.expanded,level:L.level,display:!0},typeof L.lazy=="boolean"&&(typeof L.loaded=="boolean"&&L.loaded&&(G.noLazyChildren=!(L.children&&L.children.length)),G.loading=L.loading));const q=[S(w,k,G)];if(L){let Q=0;const ie=(oe,se)=>{oe&&oe.length&&se&&oe.forEach(le=>{const ne={display:se.display&&se.expanded,level:se.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Ce=ra(le,z.value);if(Ce==null)throw new Error("For nested data item, row-key is required.");if(L={...D.value[Ce]},L&&(ne.expanded=L.expanded,L.level=L.level||ne.level,L.display=!!(L.expanded&&ne.display),typeof L.lazy=="boolean"&&(typeof L.loaded=="boolean"&&L.loaded&&(ne.noLazyChildren=!(L.children&&L.children.length)),ne.loading=L.loading)),Q++,q.push(S(le,k+Q,ne)),L){const Te=P.value[Ce]||le[N.value];ie(Te,L)}})};L.display=!0;const de=P.value[V]||w[N.value];ie(de,L)}return q}else return S(w,k,void 0)},tooltipContent:c,tooltipTrigger:f}}const C2e={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 x2e=te({name:"ElTableBody",props:C2e,setup(e){const t=Bt(),n=lt(ks),r=Fe("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=S2e(e),{onColumnsChange:s,onScrollableChange:l}=yW(n);return Be(e.store.states.hoverRow,(u,c)=>{!e.store.states.isComplex.value||!fn||ch(()=>{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&&ri(h,"hover-row"),v&&ss(v,"hover-row")})}),Mu(()=>{var u;(u=Ns)==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 pt("tbody",{tabIndex:-1},[n.reduce((r,a)=>r.concat(e(a,r.length)),[])])}});function jA(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 pt("colgroup",{},n.map(a=>pt("col",r(a))))}jA.props=["columns","tableLayout"];function T2e(){const e=lt(ks),t=e==null?void 0:e.store,n=R(()=>t.states.fixedLeafColumnsLength.value),r=R(()=>t.states.rightFixedColumns.value.length),a=R(()=>t.states.columns.value.length),i=R(()=>t.states.fixedColumns.value.length),o=R(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:t.states.columns}}function k2e(e){const{columns:t}=T2e(),n=Fe("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[n.e("cell"),s.id,s.align,s.labelClassName,...KA(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=UA(o,i.fixed,e.store);return yh(s,"left"),yh(s,"right"),s},columns:t}}var M2e=te({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}=k2e(e);return{ns:Fe("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)}),pt("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[jA({columns:e}),pt("tbody",[pt("tr",{},[...e.map((l,u)=>pt("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,u),style:t(l,u)},[pt("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function A2e(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 E2e(e,t,n,r){const a=U(!1),i=U(null),o=U(!1),s=L=>{o.value=L},l=U({width:null,height:null,headerHeight:null}),u=U(!1),c={display:"inline-block",verticalAlign:"middle"},f=U(),d=U(0),h=U(0),v=U(0),p=U(0),g=U(0);yi(()=>{t.setHeight(e.height)}),yi(()=>{t.setMaxHeight(e.maxHeight)}),Be(()=>[e.currentRowKey,n.states.rowKey],([L,G])=>{!y(G)||!y(L)||n.setCurrentRowKey(`${L}`)},{immediate:!0}),Be(()=>e.data,L=>{r.store.commit("setData",L)},{immediate:!0,deep:!0}),yi(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const m=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},b=(L,G)=>{const{pixelX:q,pixelY:Q}=G;Math.abs(q)>=Math.abs(Q)&&(r.refs.bodyWrapper.scrollLeft+=G.pixelX/5)},_=R(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),S=R(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),x=()=>{_.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(M)};Ft(async()=>{await ct(),n.updateColumns(),I(),requestAnimationFrame(x);const L=r.vnode.el,G=r.refs.headerWrapper;e.flexible&&L&&L.parentElement&&(L.parentElement.style.minWidth="0"),l.value={width:f.value=L.offsetWidth,height:L.offsetHeight,headerHeight:e.showHeader&&G?G.offsetHeight:null},n.states.columns.value.forEach(q=>{q.filteredValue&&q.filteredValue.length&&r.store.commit("filterChange",{column:q,values:q.filteredValue,silent:!0})}),r.$ready=!0});const C=(L,G)=>{if(!L)return;const q=Array.from(L.classList).filter(Q=>!Q.startsWith("is-scrolling-"));q.push(t.scrollX.value?G:"is-scrolling-none"),L.className=q.join(" ")},w=L=>{const{tableWrapper:G}=r.refs;C(G,L)},k=L=>{const{tableWrapper:G}=r.refs;return!!(G&&G.classList.contains(L))},M=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const se="is-scrolling-none";k(se)||w(se);return}const L=r.refs.scrollBarRef.wrapRef;if(!L)return;const{scrollLeft:G,offsetWidth:q,scrollWidth:Q}=L,{headerWrapper:ie,footerWrapper:de}=r.refs;ie&&(ie.scrollLeft=G),de&&(de.scrollLeft=G);const oe=Q-q-1;G>=oe?w("is-scrolling-right"):w(G===0?"is-scrolling-left":"is-scrolling-middle")},I=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Qn(r.refs.scrollBarRef.wrapRef,"scroll",M,{passive:!0}),e.fit?wa(r.vnode.el,E):Qn(window,"resize",E),wa(r.refs.bodyWrapper,()=>{var L,G;E(),(G=(L=r.refs)==null?void 0:L.scrollBarRef)==null||G.update()}))},E=()=>{var L,G,q,Q;const ie=r.vnode.el;if(!r.$ready||!ie)return;let de=!1;const{width:oe,height:se,headerHeight:le}=l.value,ne=f.value=ie.offsetWidth;oe!==ne&&(de=!0);const Ce=ie.offsetHeight;(e.height||_.value)&&se!==Ce&&(de=!0);const Te=e.tableLayout==="fixed"?r.refs.headerWrapper:(L=r.refs.tableHeaderRef)==null?void 0:L.$el;e.showHeader&&(Te==null?void 0:Te.offsetHeight)!==le&&(de=!0),d.value=((G=r.refs.tableWrapper)==null?void 0:G.scrollHeight)||0,v.value=(Te==null?void 0:Te.scrollHeight)||0,p.value=((q=r.refs.footerWrapper)==null?void 0:q.offsetHeight)||0,g.value=((Q=r.refs.appendWrapper)==null?void 0:Q.offsetHeight)||0,h.value=d.value-v.value-p.value-g.value,de&&(l.value={width:ne,height:Ce,headerHeight:e.showHeader&&(Te==null?void 0:Te.offsetHeight)||0},x())},D=$r(),P=R(()=>{const{bodyWidth:L,scrollY:G,gutterWidth:q}=t;return L.value?`${L.value-(G.value?q:0)}px`:""}),N=R(()=>e.maxHeight?"fixed":e.tableLayout),z=R(()=>{if(e.data&&e.data.length)return null;let L="100%";e.height&&h.value&&(L=`${h.value}px`);const G=f.value;return{width:G?`${G}px`:"",height:L}}),F=R(()=>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`}:{}),B=R(()=>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:D,emptyBlockStyle:z,handleFixedMousewheel:(L,G)=>{const q=r.refs.bodyWrapper;if(Math.abs(G.spinY)>0){const Q=q.scrollTop;G.pixelY<0&&Q!==0&&L.preventDefault(),G.pixelY>0&&q.scrollHeight-q.clientHeight>Q&&L.preventDefault(),q.scrollTop+=Math.ceil(G.pixelY/5)}else q.scrollLeft+=Math.ceil(G.pixelX/5)},resizeProxyVisible:o,bodyWidth:P,resizeState:l,doLayout:x,tableBodyStyles:S,tableLayout:N,scrollbarViewStyle:c,tableInnerStyle:F,scrollbarStyle:B}}function I2e(e){const t=U(),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)};Ft(()=>{n()}),Mu(()=>{var r;(r=t.value)==null||r.disconnect()})}var D2e={data:{type:Array,default:()=>[]},size:la,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 P2e=()=>{const e=U(),t=(i,o)=>{const s=e.value;s&&s.scrollTo(i,o)},n=(i,o)=>{const s=e.value;s&&Tt(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 L2e=1;const R2e=te({name:"ElTable",directives:{Mousewheel:yve},components:{TableHeader:b2e,TableBody:x2e,TableFooter:M2e,ElScrollbar:hl,hColgroup:jA},props:D2e,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}=pn(),n=Fe("table"),r=Bt();Jt(ks,r);const a=i2e(r,e);r.store=a;const i=new s2e({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const o=R(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=A2e(a),{isHidden:g,renderExpanded:m,setDragVisible:b,isGroup:_,handleMouseLeave:S,handleHeaderFooterMousewheel:x,tableSize:C,emptyBlockStyle:w,handleFixedMousewheel:k,resizeProxyVisible:M,bodyWidth:I,resizeState:E,doLayout:D,tableBodyStyles:P,tableLayout:N,scrollbarViewStyle:z,tableInnerStyle:F,scrollbarStyle:B}=E2e(e,i,a,r),{scrollBarRef:V,scrollTo:L,setScrollLeft:G,setScrollTop:q}=P2e(),Q=Va(D,50),ie=`${n.namespace.value}-table_${L2e++}`;r.tableId=ie,r.state={isGroup:_,resizeState:E,doLayout:D,debouncedUpdateLayout:Q};const de=R(()=>e.sumText||t("el.table.sumText")),oe=R(()=>e.emptyText||t("el.table.emptyText"));return I2e(r),{ns:n,layout:i,store:a,handleHeaderFooterMousewheel:x,handleMouseLeave:S,tableId:ie,tableSize:C,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:M,resizeState:E,isGroup:_,bodyWidth:I,tableBodyStyles:P,emptyBlockStyle:w,debouncedUpdateLayout:Q,handleFixedMousewheel:k,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:D,sort:p,t,setDragVisible:b,context:r,computedSumText:de,computedEmptyText:oe,tableLayout:N,scrollbarViewStyle:z,tableInnerStyle:F,scrollbarStyle:B,scrollBarRef:V,scrollTo:L,setScrollLeft:G,setScrollTop:q}}}),O2e=["data-prefix"],N2e={ref:"hiddenColumns",class:"hidden-columns"};function $2e(e,t,n,r,a,i){const o=Pt("hColgroup"),s=Pt("table-header"),l=Pt("table-body"),u=Pt("el-scrollbar"),c=Pt("table-footer"),f=eg("mousewheel");return $(),Z("div",{ref:"tableWrapper",class:W([{[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:ft(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...d)=>e.handleMouseLeave&&e.handleMouseLeave(...d))},[ee("div",{class:W(e.ns.e("inner-wrapper")),style:ft(e.tableInnerStyle)},[ee("div",N2e,[Re(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Ot(($(),Z("div",{key:0,ref:"headerWrapper",class:W(e.ns.e("header-wrapper"))},[ee("table",{ref:"tableHeader",class:W(e.ns.e("header")),style:ft(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[re(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),re(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]]):me("v-if",!0),ee("div",{ref:"bodyWrapper",class:W(e.ns.e("body-wrapper"))},[re(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:ce(()=>[ee("table",{ref:"tableBody",class:W(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:ft({width:e.bodyWidth,tableLayout:e.tableLayout})},[re(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?($(),Se(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"])):me("v-if",!0),re(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?($(),Z("div",{key:0,ref:"emptyBlock",style:ft(e.emptyBlockStyle),class:W(e.ns.e("empty-block"))},[ee("span",{class:W(e.ns.e("empty-text"))},[Re(e.$slots,"empty",{},()=>[_n(Ke(e.computedEmptyText),1)])],2)],6)):me("v-if",!0),e.$slots.append?($(),Z("div",{key:1,ref:"appendWrapper",class:W(e.ns.e("append-wrapper"))},[Re(e.$slots,"append")],2)):me("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?Ot(($(),Z("div",{key:1,ref:"footerWrapper",class:W(e.ns.e("footer-wrapper"))},[re(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:ft(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[bn,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):me("v-if",!0),e.border||e.isGroup?($(),Z("div",{key:2,class:W(e.ns.e("border-left-patch"))},null,2)):me("v-if",!0)],6),Ot(ee("div",{ref:"resizeProxy",class:W(e.ns.e("column-resize-proxy"))},null,2),[[bn,e.resizeProxyVisible]])],46,O2e)}var B2e=Ue(R2e,[["render",$2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const V2e={selection:"table-column--selection",expand:"table__expand-column"},F2e={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:""}},z2e=e=>V2e[e]||"",H2e={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return pt(Qi,{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 pt(Qi,{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)),pt("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")),pt("div",{class:a,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[pt(ut,null,{default:()=>[pt(Ra)]})]})},sortable:!1,resizable:!1}};function W2e({row:e,column:t,$index:n}){var r;const a=t.property,i=a&&R0(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 G2e({row:e,treeNode:t,store:n},r=!1){const{ns:a}=n;if(!t)return r?[pt("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(pt("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=Ra;t.loading&&(l=Iu),i.push(pt("div",{class:s,onClick:o},{default:()=>[pt(ut,{class:{[a.is("loading")]:t.loading}},{default:()=>[pt(l)]})]}))}else i.push(pt("span",{class:a.e("placeholder")}));return i}function kO(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function K2e(e,t){const n=Bt();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=kO(i,o);Object.keys(s).forEach(l=>{const u=o[l];ln(t,u)&&Be(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=GA(c)),u==="minWidth"&&l==="realMinWidth"&&(f=hW(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=kO(i,o);Object.keys(s).forEach(l=>{const u=o[l];ln(t,u)&&Be(()=>t[u],c=>{n.columnConfig.value[l]=c})})}}}function U2e(e,t,n){const r=Bt(),a=U(""),i=U(!1),o=U(),s=U(),l=Fe("table");yi(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),yi(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=R(()=>{let S=r.vnode.vParent||r.parent;for(;S&&!S.tableId&&!S.columnId;)S=S.vnode.vParent||S.parent;return S}),c=R(()=>{const{store:S}=r.parent;if(!S)return!1;const{treeData:x}=S.states,C=x.value;return C&&Object.keys(C).length>0}),f=U(GA(e.width)),d=U(hW(e.minWidth)),h=S=>(f.value&&(S.width=f.value),d.value&&(S.minWidth=d.value),!f.value&&d.value&&(S.width=void 0),S.minWidth||(S.minWidth=80),S.realWidth=Number(S.width===void 0?S.minWidth:S.width),S),v=S=>{const x=S.type,C=H2e[x]||{};Object.keys(C).forEach(k=>{const M=C[k];k!=="className"&&M!==void 0&&(S[k]=M)});const w=z2e(x);if(w){const k=`${y(l.namespace)}-${w}`;S.className=S.className?`${S.className} ${k}`:k}return S},p=S=>{Array.isArray(S)?S.forEach(C=>x(C)):x(S);function x(C){var w;((w=C==null?void 0:C.type)==null?void 0:w.name)==="ElTableColumn"&&(C.vParent=r)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:S=>{e.renderHeader||S.type!=="selection"&&(S.renderHeader=C=>{r.columnConfig.value.label;const w=t.header;return w?w(C):S.label});let x=S.renderCell;return S.type==="expand"?(S.renderCell=C=>pt("div",{class:"cell"},[x(C)]),n.value.renderExpanded=C=>t.default?t.default(C):t.default):(x=x||W2e,S.renderCell=C=>{let w=null;if(t.default){const P=t.default(C);w=P.some(N=>N.type!==La)?P:x(C)}else w=x(C);const{columns:k}=n.value.store.states,M=k.value.findIndex(P=>P.type==="default"),I=c.value&&C.cellIndex===M,E=G2e(C,I),D={class:"cell",style:{}};return S.showOverflowTooltip&&(D.class=`${D.class} ${y(l.namespace)}-tooltip`,D.style={width:`${(C.column.realWidth||Number(C.column.width))-1}px`}),p(w),pt("div",D,[E,w])}),S},getPropsData:(...S)=>S.reduce((x,C)=>(Array.isArray(C)&&C.forEach(w=>{x[w]=e[w]}),x),{}),getColumnElIndex:(S,x)=>Array.prototype.indexOf.call(S,x),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var j2e={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 Y2e=1;var _W=te({name:"ElTableColumn",components:{ElCheckbox:Qi},props:j2e,setup(e,{slots:t}){const n=Bt(),r=U({}),a=R(()=>{let _=n.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:i,registerComplexWatchers:o}=K2e(a,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g,updateColumnOrder:m}=U2e(e,t,a),b=c.value;s.value=`${b.tableId||b.columnId}_column_${Y2e++}`,r_(()=>{l.value=a.value!==b;const _=e.type||"default",S=e.sortable===""?!0:e.sortable,x=Vr(e.showOverflowTooltip)?b.props.showOverflowTooltip:e.showOverflowTooltip,C={...F2e[_],id:s.value,type:_,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:x,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:S,index:e.index,rawColumnKey:n.vnode.key};let E=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);E=Yxe(C,E),E=Xxe(h,f,d)(E),r.value=E,i(),o()}),Ft(()=>{var _;const S=c.value,x=l.value?S.vnode.el.children:(_=S.refs.hiddenColumns)==null?void 0:_.children,C=()=>p(x||[],n.vnode.el);r.value.getColumnIndex=C,C()>-1&&a.value.store.commit("insertColumn",r.value,l.value?S.columnConfig.value:null,m)}),er(()=>{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===dt&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!At(s==null?void 0:s.children)&&a.push(s)});return pt("div",a)}catch{return pt("div",[])}}});const q2e=Ht(B2e,{TableColumn:_W}),X2e=fr(_W);var Sg=(e=>(e.ASC="asc",e.DESC="desc",e))(Sg||{}),Cg=(e=>(e.CENTER="center",e.RIGHT="right",e))(Cg||{}),wW=(e=>(e.LEFT="left",e.RIGHT="right",e))(wW||{});const sT={asc:"desc",desc:"asc"},xg=Symbol("placeholder"),Z2e=(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 Q2e(e,t,n){const r=R(()=>y(t).filter(p=>!p.hidden)),a=R(()=>y(r).filter(p=>p.fixed==="left"||p.fixed===!0)),i=R(()=>y(r).filter(p=>p.fixed==="right")),o=R(()=>y(r).filter(p=>!p.fixed)),s=R(()=>{const p=[];return y(a).forEach(g=>{p.push({...g,placeholderSign:xg})}),y(o).forEach(g=>{p.push(g)}),y(i).forEach(g=>{p.push({...g,placeholderSign:xg})}),p}),l=R(()=>y(a).length||y(i).length),u=R(()=>y(t).reduce((g,m)=>(g[m.key]=Z2e(m,y(n),e.fixed),g),{})),c=R(()=>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 S=Sg.ASC;Qt(b)?S=sT[b[m]]:S=sT[_.order],(g=e.onColumnSort)==null||g.call(e,{column:f(m),key:m,order:S})}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 J2e=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const i=U({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 Be(()=>y(i).scrollTop,(h,v)=>{h>v&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},eTe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r})=>{const a=Bt(),{emit:i}=a,o=zn(!1),s=zn(null),l=U(e.defaultExpandedRowKeys||[]),u=U(-1),c=zn(null),f=U({}),d=U({}),h=zn({}),v=zn({}),p=zn({}),g=R(()=>Tt(e.estimatedRowHeight));function m(k){var M;(M=e.onRowsRendered)==null||M.call(e,k),k.rowCacheEnd>y(u)&&(u.value=k.rowCacheEnd)}function b({hovered:k,rowKey:M}){s.value=k?M:null}function _({expanded:k,rowData:M,rowIndex:I,rowKey:E}){var D,P;const N=[...y(l)],z=N.indexOf(E);k?z===-1&&N.push(E):z>-1&&N.splice(z,1),l.value=N,i("update:expandedRowKeys",N),(D=e.onRowExpand)==null||D.call(e,{expanded:k,rowData:M,rowIndex:I,rowKey:E}),(P=e.onExpandedRowsChange)==null||P.call(e,N)}const S=Va(()=>{var k,M,I,E;o.value=!0,f.value={...y(f),...y(d)},x(y(c),!1),d.value={},c.value=null,(k=t.value)==null||k.forceUpdate(),(M=n.value)==null||M.forceUpdate(),(I=r.value)==null||I.forceUpdate(),(E=a.proxy)==null||E.$forceUpdate(),o.value=!1},0);function x(k,M=!1){y(g)&&[t,n,r].forEach(I=>{const E=y(I);E&&E.resetAfterRowIndex(k,M)})}function C(k,M,I){const E=y(c);(E===null||E>I)&&(c.value=I),d.value[k]=M}function w({rowKey:k,height:M,rowIndex:I},E){E?E===wW.RIGHT?p.value[k]=M:h.value[k]=M:v.value[k]=M;const D=Math.max(...[h,p,v].map(P=>P.value[k]||0));y(f)[k]!==D&&(C(k,D,I),S())}return{hoveringRowKey:s,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:g,isResetting:o,rowHeights:f,resetAfterIndex:x,onRowExpanded:_,onRowHovered:b,onRowsRendered:m,onRowHeightChange:w}},tTe=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=U({}),i=R(()=>{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=R(()=>{const{data:s,expandColumnKey:l}=e;return l?y(i):s});return Be(o,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:o,depthMap:a}},nTe=(e,t)=>e+t,q0=e=>st(e)?e.reduce(nTe,0):e,pf=(e,t,n={})=>kt(e)?e(t):e??n,Ul=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=gr(e[t])}),e),SW=e=>ar(e)?t=>pt(e,t):e,rTe=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=R(()=>{const{fixed:_,width:S,vScrollbarSize:x}=e,C=S-x;return _?Math.max(Math.round(y(t)),C):C}),o=R(()=>y(i)+(e.fixed?e.vScrollbarSize:0)),s=R(()=>{const{height:_=0,maxHeight:S=0,footerHeight:x,hScrollbarSize:C}=e;if(S>0){const w=y(v),k=y(l),I=y(h)+w+k+C;return Math.min(I,S-x)}return _-x}),l=R(()=>{const{rowHeight:_,estimatedRowHeight:S}=e,x=y(n);return Tt(S)?x.length*S:x.length*_}),u=R(()=>{const{maxHeight:_}=e,S=y(s);if(Tt(_)&&_>0)return S;const x=y(l)+y(h)+y(v);return Math.min(S,x)}),c=_=>_.width,f=R(()=>q0(y(r).map(c))),d=R(()=>q0(y(a).map(c))),h=R(()=>q0(e.headerHeight)),v=R(()=>{var _;return(((_=e.fixedData)==null?void 0:_.length)||0)*e.rowHeight}),p=R(()=>y(s)-y(h)-y(v)),g=R(()=>{const{style:_={},height:S,width:x}=e;return Ul({..._,height:S,width:x})}),m=R(()=>Ul({height:e.footerHeight})),b=R(()=>({top:gr(y(h)),bottom:gr(e.footerHeight),width:gr(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}},aTe=e=>{const t=U(),n=U(0),r=U(0);let a;return Ft(()=>{a=wa(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}),er(()=>{a==null||a()}),Be([n,r],([i,o])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:o})}),{sizer:t,width:n,height:r}};function iTe(e){const t=U(),n=U(),r=U(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=Q2e(e,or(e,"columns"),or(e,"fixed")),{scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m,scrollPos:b}=J2e(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:X}),{expandedRowKeys:_,hoveringRowKey:S,lastRenderedRowIndex:x,isDynamic:C,isResetting:w,rowHeights:k,resetAfterIndex:M,onRowExpanded:I,onRowHeightChange:E,onRowHovered:D,onRowsRendered:P}=eTe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r}),{data:N,depthMap:z}=tTe(e,{expandedRowKeys:_,lastRenderedRowIndex:x,resetAfterIndex:M}),{bodyWidth:F,fixedTableHeight:B,mainTableHeight:V,leftTableWidth:L,rightTableWidth:G,headerWidth:q,rowsHeight:Q,windowHeight:ie,footerHeight:de,emptyStyle:oe,rootStyle:se,headerHeight:le}=rTe(e,{columnsTotalWidth:o,data:N,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),ne=zn(!1),Ce=U(),Te=R(()=>{const ae=y(N).length===0;return st(e.fixedData)?e.fixedData.length===0&&ae:ae});function he(ae){const{estimatedRowHeight:ge,rowHeight:ke,rowKey:Pe}=e;return ge?y(k)[y(N)[ae][Pe]]||ge:ke}function X(){const{onEndReached:ae}=e;if(!ae)return;const{scrollTop:ge}=y(b),ke=y(Q),Pe=y(ie),Me=ke-(ge+Pe)+e.hScrollbarSize;y(x)>=0&&ke===ge+y(V)-y(le)&&ae(Me)}return Be(()=>e.expandedRowKeys,ae=>_.value=ae,{deep:!0}),{columns:a,containerRef:Ce,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:C,isResetting:w,isScrolling:ne,hoveringRowKey:S,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:N,expandedRowKeys:_,depthMap:z,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:F,emptyStyle:oe,rootStyle:se,headerWidth:q,footerHeight:de,mainTableHeight:V,fixedTableHeight:B,leftTableWidth:L,rightTableWidth:G,showEmpty:Te,getRowHeight:he,onColumnSorted:f,onRowHovered:D,onRowExpanded:I,onRowsRendered:P,onRowHeightChange:E,scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m}}const YA=Symbol("tableV2"),CW=String,_m={type:ye(Array),required:!0},qA={type:ye(Array)},xW={...qA,required:!0},oTe=String,MO={type:ye(Array),default:()=>nr([])},Ic={type:Number,required:!0},TW={type:ye([String,Number,Symbol]),default:"id"},AO={type:ye(Object)},zc=je({class:String,columns:_m,columnsStyles:{type:ye(Object),required:!0},depth:Number,expandColumnKey:oTe,estimatedRowHeight:{...ef.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:ye(Function)},onRowHover:{type:ye(Function)},onRowHeightChange:{type:ye(Function)},rowData:{type:ye(Object),required:!0},rowEventHandlers:{type:ye(Object)},rowIndex:{type:Number,required:!0},rowKey:TW,style:{type:ye(Object)}}),xS={type:Number,required:!0},XA=je({class:String,columns:_m,fixedHeaderData:{type:ye(Array)},headerData:{type:ye(Array),required:!0},headerHeight:{type:ye([Number,Array]),default:50},rowWidth:xS,rowHeight:{type:Number,default:50},height:xS,width:xS}),X0=je({columns:_m,data:xW,fixedData:qA,estimatedRowHeight:zc.estimatedRowHeight,width:Ic,height:Ic,headerWidth:Ic,headerHeight:XA.headerHeight,bodyWidth:Ic,rowHeight:Ic,cache:qH.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:ef.scrollbarAlwaysOn,scrollbarStartGap:ef.scrollbarStartGap,scrollbarEndGap:ef.scrollbarEndGap,class:CW,style:AO,containerStyle:AO,getRowHeight:{type:ye(Function),required:!0},rowKey:zc.rowKey,onRowsRendered:{type:ye(Function)},onScroll:{type:ye(Function)}}),sTe=je({cache:X0.cache,estimatedRowHeight:zc.estimatedRowHeight,rowKey:TW,headerClass:{type:ye([String,Function])},headerProps:{type:ye([Object,Function])},headerCellProps:{type:ye([Object,Function])},headerHeight:XA.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:ye([String,Function])},rowProps:{type:ye([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:ye([Object,Function])},columns:_m,data:xW,dataGetter:{type:ye(Function)},fixedData:qA,expandColumnKey:zc.expandColumnKey,expandedRowKeys:MO,defaultExpandedRowKeys:MO,class:CW,fixed:Boolean,style:{type:ye(Object)},width:Ic,height:Ic,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:ef.hScrollbarSize,vScrollbarSize:ef.vScrollbarSize,scrollbarAlwaysOn:QH.alwaysOn,sortBy:{type:ye(Object),default:()=>({})},sortState:{type:ye(Object),default:void 0},onColumnSort:{type:ye(Function)},onExpandedRowsChange:{type:ye(Function)},onEndReached:{type:ye(Function)},onRowExpand:zc.onRowExpand,onScroll:X0.onScroll,onRowsRendered:X0.onRowsRendered,rowEventHandlers:zc.rowEventHandlers}),ZA=(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 re("div",{class:e.class,title:i,style:a},[t.default?t.default(e):i])};ZA.displayName="ElTableV2Cell";ZA.inheritAttrs=!1;const QA=(e,{slots:t})=>{var n,r;return t.default?t.default(e):re("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])};QA.displayName="ElTableV2HeaderCell";QA.inheritAttrs=!1;const lTe=je({class:String,columns:_m,columnsStyles:{type:ye(Object),required:!0},headerIndex:Number,style:{type:ye(Object)}}),uTe=te({name:"ElTableV2HeaderRow",props:lTe,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=>st(s)&&s.length===1?s[0]:s),columns:n,headerIndex:a})),re("div",{class:e.class,style:i,role:"row"},[o])}}}),cTe="ElTableV2Header",fTe=te({name:cTe,props:XA,setup(e,{slots:t,expose:n}){const r=Fe("table-v2"),a=U(),i=R(()=>Ul({width:e.width,height:e.height})),o=R(()=>Ul({width:e.rowWidth,height:e.height})),s=R(()=>hf(y(e.headerHeight))),l=f=>{const d=y(a);ct(()=>{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=Ul({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=Ul({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 re("div",{ref:a,class:e.class,style:y(i),role:"rowgroup"},[re("div",{style:y(o),class:r.e("header")},[c(),u()])])}}}),dTe=e=>{const{isScrolling:t}=lt(YA),n=U(!1),r=U(),a=R(()=>Tt(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,ct(()=>{if(l||p!==Number.parseInt(v.height)){const g=c[0],m=(g==null?void 0:g.placeholderSign)===xg;f==null||f({rowKey:d,height:p,rowIndex:h},g&&!m&&g.fixed)}})},o=R(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=e,d=e.rowEventHandlers||{},h={};return Object.entries(d).forEach(([v,p])=>{kt(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 Ft(()=>{y(a)&&i(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:r,eventHandlers:o,onExpand:s}},hTe="ElTableV2TableRow",vTe=te({name:hTe,props:zc,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=dTe(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 S=st(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:S?{rowData:v,rowIndex:p,onExpand:u}:void 0})});if(n.row&&(m=n.row({cells:m.map(b=>st(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||{},S=y(s);return re("div",Yt({ref:l,class:e.class,style:S?g:_,role:"row"},r,y(a)),[m])}return re("div",Yt(r,{ref:l,class:e.class,style:g,role:"row"},y(a)),[m])}}}),pTe=e=>{const{sortOrder:t}=e;return re(ut,{size:14,class:e.class},{default:()=>[t===Sg.ASC?re(Kse,null,null):re(Wse,null,null)]})},gTe=e=>{const{expanded:t,expandable:n,onExpand:r,style:a,size:i}=e,o={onClick:n?()=>r(!t):void 0,class:e.class};return re(ut,Yt(o,{size:i,style:a}),{default:()=>[re(Ra,null,null)]})},mTe="ElTableV2Grid",yTe=e=>{const t=U(),n=U(),r=R(()=>{const{data:p,rowHeight:g,estimatedRowHeight:m}=e;if(!m)return p.length*g}),a=R(()=>{const{fixedData:p,rowHeight:g}=e;return((p==null?void 0:p.length)||0)*g}),i=R(()=>q0(e.headerHeight)),o=R(()=>{const{height:p}=e;return Math.max(0,p-y(i)-y(a))}),s=R(()=>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||(Qt(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}},JA=te({name:mTe,props:X0,setup(e,{slots:t,expose:n}){const{ns:r}=lt(YA),{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}=yTe(e);n({forceUpdate:f,totalHeight:c,scrollTo:p,scrollToTop:g,scrollToRow:m,resetAfterRowIndex:v});const b=()=>e.bodyWidth;return()=>{const{cache:_,columns:S,data:x,fixedData:C,useIsScrolling:w,scrollbarAlwaysOn:k,scrollbarEndGap:M,scrollbarStartGap:I,style:E,rowHeight:D,bodyWidth:P,estimatedRowHeight:N,headerWidth:z,height:F,width:B,getRowHeight:V,onScroll:L}=e,G=Tt(N),q=G?YSe:GSe,Q=y(u);return re("div",{role:"table",class:[r.e("table"),e.class],style:E},[re(q,{ref:a,data:x,useIsScrolling:w,itemKey:d,columnCache:0,columnWidth:G?b:P,totalColumn:1,totalRow:x.length,rowCache:_,rowHeight:G?V:D,width:B,height:y(o),class:r.e("body"),role:"rowgroup",scrollbarStartGap:I,scrollbarEndGap:M,scrollbarAlwaysOn:k,onScroll:L,onItemRendered:h,perfMode:!1},{default:ie=>{var de;const oe=x[ie.rowIndex];return(de=t.row)==null?void 0:de.call(t,{...ie,columns:S,rowData:oe})}}),y(s)&&re(fTe,{ref:l,class:r.e("header-wrapper"),columns:S,headerData:x,headerHeight:e.headerHeight,fixedHeaderData:C,rowWidth:z,rowHeight:D,width:B,height:Math.min(Q+y(i),F)},{dynamic:t.header,fixed:t.row})])}}});function bTe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ar(e)}const _Te=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return re(JA,Yt({ref:n},r),bTe(t)?t:{default:()=>[t]})};function wTe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ar(e)}const STe=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return re(JA,Yt({ref:n},r),wTe(t)?t:{default:()=>[t]})};function CTe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ar(e)}const xTe=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return re(JA,Yt({ref:n},r),CTe(t)?t:{default:()=>[t]})};function TTe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ar(e)}const kTe=(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:S}=e,x=pf(p,{columns:n,rowData:c,rowIndex:f},""),C=pf(v,{columns:n,rowData:c,rowIndex:f}),w=c[g],k=a[w]||0,M=!!i,I=f<0,E=[b.e("row"),x,{[b.e(`row-depth-${k}`)]:M&&f>=0,[b.is("expanded")]:M&&o.includes(w),[b.is("hovered")]:!h&&w===u,[b.is("fixed")]:!k&&I,[b.is("customized")]:!!t.row}],D=l?_:void 0,P={...C,columns:n,columnsStyles:r,class:E,depth:k,expandColumnKey:i,estimatedRowHeight:I?void 0:s,isScrolling:h,rowIndex:f,rowData:c,rowKey:w,rowEventHandlers:m,style:d};return re(vTe,Yt(P,{onRowHover:D,onRowExpand:S}),TTe(t)?t:{default:()=>[t]})},lT=({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=Ul(l);if(t.placeholderSign===xg)return re("div",{class:c.em("row-cell","placeholder"),style:m},null);const{cellRenderer:b,dataKey:_,dataGetter:S}=t,C=SW(b)||g.default||(F=>re(ZA,F,null)),w=kt(S)?S({columns:e,column:t,columnIndex:n,rowData:o,rowIndex:s}):tr(o,_??""),k=pf(f,{cellData:w,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:o}),M={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:w,isScrolling:i,rowData:o,rowIndex:s},I=C(M),E=[c.e("row-cell"),t.class,t.align===Cg.CENTER&&c.is("align-center"),t.align===Cg.RIGHT&&c.is("align-right")],D=s>=0&&d&&t.key===d,P=s>=0&&u.includes(o[p]);let N;const z=`margin-inline-start: ${r*h}px;`;return D&&(Qt(a)?N=re(gTe,Yt(a,{class:[c.e("expand-icon"),c.is("expanded",P)],size:v,expanded:P,style:z,expandable:!0}),null):N=re("div",{style:[z,`width: ${v}px; height: ${v}px;`].join(" ")},null)),re("div",Yt({class:E,style:m},k,{role:"cell"}),[N,I])};lT.inheritAttrs=!1;function MTe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ar(e)}const ATe=({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"),pf(a,l,""),{[o.is("customized")]:!!s.header}],c={...pf(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return re(uTe,c,MTe(s)?s:{default:()=>[s]})},EO=(e,{slots:t})=>{const{column:n,ns:r,style:a,onColumnSorted:i}=e,o=Ul(a);if(n.placeholderSign===xg)return re("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=(SW(s)||t.default||(S=>re(QA,S,null)))(c),{sortBy:h,sortState:v,headerCellProps:p}=e;let g,m;if(v){const S=v[n.key];g=!!sT[S],m=g?S:Sg.ASC}else g=n.key===h.key,m=g?h.order:Sg.ASC;const b=[r.e("header-cell"),pf(l,e,""),n.align===Cg.CENTER&&r.is("align-center"),n.align===Cg.RIGHT&&r.is("align-right"),u&&r.is("sortable")],_={...pf(p,e),onClick:n.sortable?i:void 0,class:b,style:o,"data-key":n.key};return re("div",Yt(_,{role:"columnheader"}),[d,u&&re(pTe,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:m},null)])},kW=(e,{slots:t})=>{var n;return re("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};kW.displayName="ElTableV2Footer";const MW=(e,{slots:t})=>re("div",{class:e.class,style:e.style},[t.default?t.default():re(RH,null,null)]);MW.displayName="ElTableV2Empty";const AW=(e,{slots:t})=>{var n;return re("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};AW.displayName="ElTableV2Overlay";function Sv(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ar(e)}const ETe="ElTableV2",ITe=te({name:ETe,props:sTe,setup(e,{slots:t,expose:n}){const r=Fe("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:S,isResetting:x,isScrolling:C,bodyWidth:w,emptyStyle:k,rootStyle:M,headerWidth:I,footerHeight:E,showEmpty:D,scrollTo:P,scrollToLeft:N,scrollToTop:z,scrollToRow:F,getRowHeight:B,onColumnSorted:V,onRowHeightChange:L,onRowHovered:G,onRowExpanded:q,onRowsRendered:Q,onScroll:ie,onVerticalScroll:de}=iTe(e);return n({scrollTo:P,scrollToLeft:N,scrollToTop:z,scrollToRow:F}),Jt(YA,{ns:r,isResetting:x,hoveringRowKey:g,isScrolling:C}),()=>{const{cache:oe,cellProps:se,estimatedRowHeight:le,expandColumnKey:ne,fixedData:Ce,headerHeight:Te,headerClass:he,headerProps:X,headerCellProps:ae,sortBy:ge,sortState:ke,rowHeight:Pe,rowClass:Me,rowEventHandlers:ze,rowKey:Oe,rowProps:Le,scrollbarAlwaysOn:Ve,indentSize:qe,iconSize:nt,useIsScrolling:ot,vScrollbarSize:_e,width:Je}=e,St=y(d),Rt={cache:oe,class:r.e("main"),columns:y(s),data:St,fixedData:Ce,estimatedRowHeight:le,bodyWidth:y(w)+_e,headerHeight:Te,headerWidth:y(I),height:y(l),mainTableRef:m,rowKey:Oe,rowHeight:Pe,scrollbarAlwaysOn:Ve,scrollbarStartGap:2,scrollbarEndGap:_e,useIsScrolling:ot,width:Je,getRowHeight:B,onRowsRendered:Q,onScroll:ie},Kt=y(c),gt=y(u),Ie={cache:oe,class:r.e("left"),columns:y(i),data:St,estimatedRowHeight:le,leftTableRef:b,rowHeight:Pe,bodyWidth:Kt,headerWidth:Kt,headerHeight:Te,height:gt,rowKey:Oe,scrollbarAlwaysOn:Ve,scrollbarStartGap:2,scrollbarEndGap:_e,useIsScrolling:ot,width:Kt,getRowHeight:B,onScroll:de},ve=y(f)+_e,$e={cache:oe,class:r.e("right"),columns:y(o),data:St,estimatedRowHeight:le,rightTableRef:_,rowHeight:Pe,bodyWidth:ve,headerWidth:ve,headerHeight:Te,height:gt,rowKey:Oe,scrollbarAlwaysOn:Ve,scrollbarStartGap:2,scrollbarEndGap:_e,width:ve,style:`--${y(r.namespace)}-table-scrollbar-size: ${_e}px`,useIsScrolling:ot,getRowHeight:B,onScroll:de},ue=y(a),rt={ns:r,depthMap:y(h),columnsStyles:ue,expandColumnKey:ne,expandedRowKeys:y(v),estimatedRowHeight:le,hasFixedColumns:y(p),hoveringRowKey:y(g),rowProps:Le,rowClass:Me,rowKey:Oe,rowEventHandlers:ze,onRowHovered:G,onRowExpanded:q,onRowHeightChange:L},Ct={cellProps:se,expandColumnKey:ne,indentSize:qe,iconSize:nt,rowKey:Oe,expandedRowKeys:y(v),ns:r},jt={ns:r,headerClass:he,headerProps:X,columnsStyles:ue},dr={ns:r,sortBy:ge,sortState:ke,headerCellProps:ae,onColumnSorted:V},kr={row:De=>re(kTe,Yt(De,rt),{row:t.row,cell:tt=>{let be;return t.cell?re(lT,Yt(tt,Ct,{style:ue[tt.column.key]}),Sv(be=t.cell(tt))?be:{default:()=>[be]}):re(lT,Yt(tt,Ct,{style:ue[tt.column.key]}),null)}}),header:De=>re(ATe,Yt(De,jt),{header:t.header,cell:tt=>{let be;return t["header-cell"]?re(EO,Yt(tt,dr,{style:ue[tt.column.key]}),Sv(be=t["header-cell"](tt))?be:{default:()=>[be]}):re(EO,Yt(tt,dr,{style:ue[tt.column.key]}),null)}})},Ir=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:y(S)}],yr={class:r.e("footer"),style:y(E)};return re("div",{class:Ir,style:y(M)},[re(_Te,Rt,Sv(kr)?kr:{default:()=>[kr]}),re(STe,Ie,Sv(kr)?kr:{default:()=>[kr]}),re(xTe,$e,Sv(kr)?kr:{default:()=>[kr]}),t.footer&&re(kW,yr,{default:t.footer}),y(D)&&re(MW,{class:r.e("empty"),style:y(k)},{default:t.empty}),t.overlay&&re(AW,{class:r.e("overlay")},{default:t.overlay})])}}}),DTe=je({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:ye(Function)}}),PTe=te({name:"ElAutoResizer",props:DTe,setup(e,{slots:t}){const n=Fe("auto-resizer"),{height:r,width:a,sizer:i}=aTe(e),o={width:"100%",height:"100%"};return()=>{var s;return re("div",{ref:i,class:n.b(),style:o},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:a.value})])}}}),LTe=Ht(ITe),RTe=Ht(PTe),O_=Symbol("tabsRootContextKey"),OTe=je({tabs:{type:ye(Array),default:()=>nr([])}}),EW="ElTabBar",NTe=te({name:EW}),$Te=te({...NTe,props:OTe,setup(e,{expose:t}){const n=e,r=Bt(),a=lt(O_);a||Nr(EW,"<el-tabs><el-tab-bar /></el-tabs>");const i=Fe("tabs"),o=U(),s=U(),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${as(v)}`],f=b[`client${as(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${as(h)}(${c}px)`}},u=()=>s.value=l();return Be(()=>n.tabs,async()=>{await ct(),u()},{immediate:!0}),wa(o,()=>u()),t({ref:o,update:u}),(c,f)=>($(),Z("div",{ref_key:"barRef",ref:o,class:W([y(i).e("active-bar"),y(i).is(y(a).props.tabPosition)]),style:ft(s.value)},null,6))}});var BTe=Ue($Te,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const VTe=je({panes:{type:ye(Array),default:()=>nr([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),FTe={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},IO="ElTabNav",zTe=te({name:IO,props:VTe,emits:FTe,setup(e,{expose:t,emit:n}){const r=Bt(),a=lt(O_);a||Nr(IO,"<el-tabs><tab-nav /></el-tabs>");const i=Fe("tabs"),o=mee(),s=Mee(),l=U(),u=U(),c=U(),f=U(),d=U(!1),h=U(0),v=U(!1),p=U(!0),g=R(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),m=R(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),b=()=>{if(!l.value)return;const M=l.value[`offset${as(g.value)}`],I=h.value;if(!I)return;const E=I>M?I-M:0;h.value=E},_=()=>{if(!l.value||!u.value)return;const M=u.value[`offset${as(g.value)}`],I=l.value[`offset${as(g.value)}`],E=h.value;if(M-E<=I)return;const D=M-E>I*2?E+I:M-I;h.value=D},S=async()=>{const M=u.value;if(!d.value||!c.value||!l.value||!M)return;await ct();const I=c.value.querySelector(".is-active");if(!I)return;const E=l.value,D=["top","bottom"].includes(a.props.tabPosition),P=I.getBoundingClientRect(),N=E.getBoundingClientRect(),z=D?M.offsetWidth-N.width:M.offsetHeight-N.height,F=h.value;let B=F;D?(P.left<N.left&&(B=F-(N.left-P.left)),P.right>N.right&&(B=F+P.right-N.right)):(P.top<N.top&&(B=F-(N.top-P.top)),P.bottom>N.bottom&&(B=F+(P.bottom-N.bottom))),B=Math.max(B,0),h.value=Math.min(B,z)},x=()=>{var M;if(!u.value||!l.value)return;e.stretch&&((M=f.value)==null||M.update());const I=u.value[`offset${as(g.value)}`],E=l.value[`offset${as(g.value)}`],D=h.value;E<I?(d.value=d.value||{},d.value.prev=D,d.value.next=D+E<I,I-D<E&&(h.value=I-E)):(d.value=!1,D>0&&(h.value=0))},C=M=>{const I=M.code,{up:E,down:D,left:P,right:N}=vt;if(![E,D,P,N].includes(I))return;const z=Array.from(M.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),F=z.indexOf(M.target);let B;I===P||I===E?F===0?B=z.length-1:B=F-1:F<z.length-1?B=F+1:B=0,z[B].focus({preventScroll:!0}),z[B].click(),w()},w=()=>{p.value&&(v.value=!0)},k=()=>v.value=!1;return Be(o,M=>{M==="hidden"?p.value=!1:M==="visible"&&setTimeout(()=>p.value=!0,50)}),Be(s,M=>{M?setTimeout(()=>p.value=!0,50):p.value=!1}),wa(c,x),Ft(()=>setTimeout(()=>S(),0)),cl(()=>x()),t({scrollToActiveTab:S,removeFocus:k}),Be(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const M=d.value?[re("span",{class:[i.e("nav-prev"),i.is("disabled",!d.value.prev)],onClick:b},[re(ut,null,{default:()=>[re(hu,null,null)]})]),re("span",{class:[i.e("nav-next"),i.is("disabled",!d.value.next)],onClick:_},[re(ut,null,{default:()=>[re(Ra,null,null)]})])]:null,I=e.panes.map((E,D)=>{var P,N,z,F;const B=E.uid,V=E.props.disabled,L=(N=(P=E.props.name)!=null?P:E.index)!=null?N:`${D}`,G=!V&&(E.isClosable||e.editable);E.index=`${D}`;const q=G?re(ut,{class:"is-icon-close",onClick:de=>n("tabRemove",E,de)},{default:()=>[re(Do,null,null)]}):null,Q=((F=(z=E.slots).label)==null?void 0:F.call(z))||E.props.label,ie=!V&&E.active?0:-1;return re("div",{ref:`tab-${B}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",E.active),i.is("disabled",V),i.is("closable",G),i.is("focus",v.value)],id:`tab-${L}`,key:`tab-${B}`,"aria-controls":`pane-${L}`,role:"tab","aria-selected":E.active,tabindex:ie,onFocus:()=>w(),onBlur:()=>k(),onClick:de=>{k(),n("tabClick",E,L,de)},onKeydown:de=>{G&&(de.code===vt.delete||de.code===vt.backspace)&&n("tabRemove",E,de)}},[Q,q])});return re("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!d.value),i.is(a.props.tabPosition)]},[M,re("div",{class:i.e("nav-scroll"),ref:l},[re("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:C},[e.type?null:re(BTe,{ref:f,tabs:[...e.panes]},null),I])])])}}}),HTe=je({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:ye(Function),default:()=>!0},stretch:Boolean}),TS=e=>At(e)||Tt(e),WTe={[Gt]:e=>TS(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>TS(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>TS(e),tabAdd:()=>!0};var GTe=te({name:"ElTabs",props:HTe,emits:WTe,setup(e,{emit:t,slots:n,expose:r}){var a,i;const o=Fe("tabs"),{children:s,addChild:l,removeChild:u}=wA(Bt(),"ElTabPane"),c=U(),f=U((i=(a=e.modelValue)!=null?a:e.activeName)!=null?i:"0"),d=m=>{f.value=m,t(Gt,m),t("tabChange",m)},h=async m=>{var b,_,S;if(!(f.value===m||Vr(m)))try{await((b=e.beforeLeave)==null?void 0:b.call(e,m,f.value))!==!1&&(d(m),(S=(_=c.value)==null?void 0:_.removeFocus)==null||S.call(_))}catch{}},v=(m,b,_)=>{m.props.disabled||(h(b),t("tabClick",m,_))},p=(m,b)=>{m.props.disabled||Vr(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 ms({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"},R(()=>!!e.activeName)),Be(()=>e.activeName,m=>h(m)),Be(()=>e.modelValue,m=>h(m)),Be(f,async()=>{var m;await ct(),(m=c.value)==null||m.scrollToActiveTab()}),Jt(O_,{props:e,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const m=e.editable||e.addable?re("span",{class:o.e("new-tab"),tabindex:"0",onClick:g,onKeydown:S=>{S.code===vt.enter&&g()}},[re(ut,{class:o.is("icon-plus")},{default:()=>[re(r6,null,null)]})]):null,b=re("div",{class:[o.e("header"),o.is(e.tabPosition)]},[m,re(zTe,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:v,onTabRemove:p},null)]),_=re("div",{class:o.e("content")},[Re(n,"default")]);return re("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 KTe=je({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),UTe=["id","aria-hidden","aria-labelledby"],IW="ElTabPane",jTe=te({name:IW}),YTe=te({...jTe,props:KTe,setup(e){const t=e,n=Bt(),r=da(),a=lt(O_);a||Nr(IW,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Fe("tab-pane"),o=U(),s=R(()=>t.closable||a.props.closable),l=uL(()=>{var h;return a.currentName.value===((h=t.name)!=null?h:o.value)}),u=U(l.value),c=R(()=>{var h;return(h=t.name)!=null?h:o.value}),f=uL(()=>!t.lazy||u.value||l.value);Be(l,h=>{h&&(u.value=!0)});const d=Sn({uid:n.uid,slots:r,props:t,paneName:c,active:l,index:o,isClosable:s});return Ft(()=>{a.registerPane(d)}),Mu(()=>{a.unregisterPane(d.uid)}),(h,v)=>y(f)?Ot(($(),Z("div",{key:0,id:`pane-${y(c)}`,class:W(y(i).b()),role:"tabpanel","aria-hidden":!y(l),"aria-labelledby":`tab-${y(c)}`},[Re(h.$slots,"default")],10,UTe)),[[bn,y(l)]]):me("v-if",!0)}});var DW=Ue(YTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const qTe=Ht(GTe,{TabPane:DW}),XTe=fr(DW),ZTe=je({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:xs,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),QTe=te({name:"ElText"}),JTe=te({...QTe,props:ZTe,setup(e){const t=e,n=$r(),r=Fe("text"),a=R(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated)]);return(i,o)=>($(),Se(qt(i.tag),{class:W(y(a))},{default:ce(()=>[Re(i.$slots,"default")]),_:3},8,["class"]))}});var eke=Ue(JTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const tke=Ht(eke),nke=je({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:la,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:ye([String,Object]),default:()=>n6},clearIcon:{type:ye([String,Object]),default:()=>Eu}}),zs=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},kS=(e,t)=>{const n=zs(e);if(!n)return-1;const r=zs(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},DO=e=>`${e}`.padStart(2,"0"),yd=e=>`${DO(e.hours)}:${DO(e.minutes)}`,rke=(e,t)=>{const n=zs(e);if(!n)return"";const r=zs(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,yd(a)},ake=te({name:"ElTimeSelect"}),ike=te({...ake,props:nke,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;Vt.extend(MA);const{Option:r}=vf,a=Fe("input"),i=U(),o=li(),s=R(()=>n.modelValue),l=R(()=>{const g=zs(n.start);return g?yd(g):null}),u=R(()=>{const g=zs(n.end);return g?yd(g):null}),c=R(()=>{const g=zs(n.step);return g?yd(g):null}),f=R(()=>{const g=zs(n.minTime||"");return g?yd(g):null}),d=R(()=>{const g=zs(n.maxTime||"");return g?yd(g):null}),h=R(()=>{const g=[];if(n.start&&n.end&&n.step){let m=l.value,b;for(;m&&u.value&&kS(m,u.value)<=0;)b=Vt(m,"HH:mm").format(n.format),g.push({value:b,disabled:kS(m,f.value||"-1:-1")<=0||kS(m,d.value||"100:100")>=0}),m=rke(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)=>($(),Se(y(vf),{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:ce(()=>[g.prefixIcon?($(),Se(y(ut),{key:0,class:W(y(a).e("prefix-icon"))},{default:ce(()=>[($(),Se(qt(g.prefixIcon)))]),_:1},8,["class"])):me("v-if",!0)]),default:ce(()=>[($(!0),Z(dt,null,an(y(h),b=>($(),Se(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 Z0=Ue(ike,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);Z0.install=e=>{e.component(Z0.name,Z0)};const oke=Z0,ske=oke,lke=te({name:"ElTimeline",setup(e,{slots:t}){const n=Fe("timeline");return Jt("timeline",t),()=>pt("ul",{class:[n.b()]},[Re(t,"default")])}}),uke=je({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:Wn},hollow:{type:Boolean,default:!1}}),cke=te({name:"ElTimelineItem"}),fke=te({...cke,props:uke,setup(e){const t=e,n=Fe("timeline-item"),r=R(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(a,i)=>($(),Z("li",{class:W([y(n).b(),{[y(n).e("center")]:a.center}])},[ee("div",{class:W(y(n).e("tail"))},null,2),a.$slots.dot?me("v-if",!0):($(),Z("div",{key:0,class:W(y(r)),style:ft({backgroundColor:a.color})},[a.icon?($(),Se(y(ut),{key:0,class:W(y(n).e("icon"))},{default:ce(()=>[($(),Se(qt(a.icon)))]),_:1},8,["class"])):me("v-if",!0)],6)),a.$slots.dot?($(),Z("div",{key:1,class:W(y(n).e("dot"))},[Re(a.$slots,"dot")],2)):me("v-if",!0),ee("div",{class:W(y(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?($(),Z("div",{key:0,class:W([y(n).e("timestamp"),y(n).is("top")])},Ke(a.timestamp),3)):me("v-if",!0),ee("div",{class:W(y(n).e("content"))},[Re(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?($(),Z("div",{key:1,class:W([y(n).e("timestamp"),y(n).is("bottom")])},Ke(a.timestamp),3)):me("v-if",!0)],2)],2))}});var PW=Ue(fke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const dke=Ht(lke,{TimelineItem:PW}),hke=fr(PW),LW=je({nowrap:Boolean});var RW=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(RW||{});const vke=Object.values(RW),eE=je({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:ye(Object),default:null}}),pke=je({side:{type:ye(String),values:vke,required:!0}}),gke=["absolute","fixed"],mke=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],tE=je({ariaLabel:String,arrowPadding:{type:ye(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:ye(String),values:mke,default:"bottom"},reference:{type:ye(Object),default:null},offset:{type:Number,default:8},strategy:{type:ye(String),values:gke,default:"absolute"},showArrow:{type:Boolean,default:!1}}),nE=je({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:ye(Function)},"onUpdate:open":{type:ye(Function)}}),jf={type:ye(Function)},rE=je({onBlur:jf,onClick:jf,onFocus:jf,onMouseDown:jf,onMouseEnter:jf,onMouseLeave:jf}),yke=je({...nE,...eE,...rE,...tE,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:ye(Object),default:null},teleported:Boolean,to:{type:ye(String),default:"body"}}),N_=Symbol("tooltipV2"),OW=Symbol("tooltipV2Content"),MS="tooltip_v2.open",bke=te({name:"ElTooltipV2Root"}),_ke=te({...bke,props:nE,setup(e,{expose:t}){const n=e,r=U(n.defaultOpen),a=U(null),i=R({get:()=>Boe(n.open)?r.value:n.open,set:g=>{var m;r.value=g,(m=n["onUpdate:open"])==null||m.call(n,g)}}),o=R(()=>Tt(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=ff(()=>{i.value=!0},R(()=>n.delayDuration),{immediate:!1}),u=Fe("tooltip-v2"),c=Xi(),f=()=>{l(),i.value=!0},d=()=>{y(o)?s():f()},h=f,v=()=>{l(),i.value=!1};return Be(i,g=>{var m;g&&(document.dispatchEvent(new CustomEvent(MS)),h()),(m=n.onOpenChange)==null||m.call(n,g)}),Ft(()=>{document.addEventListener(MS,v)}),er(()=>{l(),document.removeEventListener(MS,v)}),Jt(N_,{contentId:c,triggerRef:a,ns:u,onClose:v,onDelayOpen:d,onOpen:h}),t({onOpen:h,onClose:v}),(g,m)=>Re(g.$slots,"default",{open:y(i)})}});var wke=Ue(_ke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const Ske=te({name:"ElTooltipV2Arrow"}),Cke=te({...Ske,props:{...eE,...pke},setup(e){const t=e,{ns:n}=lt(N_),{arrowRef:r}=lt(OW),a=R(()=>{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)=>($(),Z("span",{ref_key:"arrowRef",ref:r,style:ft(y(a)),class:W(y(n).e("arrow"))},null,6))}});var PO=Ue(Cke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const xke=je({style:{type:ye([String,Object,Array]),default:()=>({})}}),Tke=te({name:"ElVisuallyHidden"}),kke=te({...Tke,props:xke,setup(e){const t=e,n=R(()=>[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)=>($(),Z("span",Yt(r.$attrs,{style:y(n)}),[Re(r.$slots,"default")],16))}});var Mke=Ue(kke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const Ake=["data-side"],Eke=te({name:"ElTooltipV2Content"}),Ike=te({...Eke,props:{...tE,...LW},setup(e){const t=e,{triggerRef:n,contentId:r}=lt(N_),a=U(t.placement),i=U(t.strategy),o=U(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:f,update:d}=ace({placement:a,strategy:i,middleware:R(()=>{const _=[Vue(t.offset)];return t.showArrow&&_.push(ice({arrowRef:o})),_})}),h=Bh().nextZIndex(),v=Fe("tooltip-v2"),p=R(()=>a.value.split("-")[0]),g=R(()=>({position:y(i),top:`${y(f)||0}px`,left:`${y(c)||0}px`,zIndex:h})),m=R(()=>{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=R(()=>[v.e("content"),v.is("dark",t.effect==="dark"),v.is(y(i)),t.contentClass]);return Be(o,()=>d()),Be(()=>t.placement,_=>a.value=_),Ft(()=>{Be(()=>t.reference||n.value,_=>{s.value=_||void 0},{immediate:!0})}),Jt(OW,{arrowRef:o}),(_,S)=>($(),Z("div",{ref_key:"contentRef",ref:l,style:ft(y(g)),"data-tooltip-v2-root":""},[_.nowrap?me("v-if",!0):($(),Z("div",{key:0,"data-side":y(p),class:W(y(b))},[Re(_.$slots,"default",{contentStyle:y(g),contentClass:y(b)}),re(y(Mke),{id:y(r),role:"tooltip"},{default:ce(()=>[_.ariaLabel?($(),Z(dt,{key:0},[_n(Ke(_.ariaLabel),1)],64)):Re(_.$slots,"default",{key:1})]),_:3},8,["id"]),Re(_.$slots,"arrow",{style:ft(y(m)),side:y(p)})],10,Ake))],4))}});var LO=Ue(Ike,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const Dke=je({setRef:{type:ye(Function),required:!0},onlyChild:Boolean});var Pke=te({props:Dke,setup(e,{slots:t}){const n=U(),r=b_(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?fle(i.children):i.children;return re(dt,{ref:r},[o])}}});const Lke=te({name:"ElTooltipV2Trigger"}),Rke=te({...Lke,props:{...LW,...rE},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:o}=lt(N_);let s=!1;const l=b=>{i.value=b},u=()=>{s=!1},c=cr(t.onMouseEnter,a),f=cr(t.onMouseLeave,n),d=cr(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=cr(t.onFocus,()=>{s||r()}),v=cr(t.onBlur,n),p=cr(t.onClick,b=>{b.detail===0&&n()}),g={blur:v,click:p,focus:h,mousedown:d,mouseenter:c,mouseleave:f},m=(b,_,S)=>{b&&Object.entries(_).forEach(([x,C])=>{b[S](x,C)})};return Be(i,(b,_)=>{m(b,g,"addEventListener"),m(_,g,"removeEventListener"),b&&b.setAttribute("aria-describedby",o.value)}),er(()=>{m(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(b,_)=>b.nowrap?($(),Se(y(Pke),{key:0,"set-ref":l,"only-child":""},{default:ce(()=>[Re(b.$slots,"default")]),_:3})):($(),Z("button",Yt({key:1,ref_key:"triggerRef",ref:i},b.$attrs),[Re(b.$slots,"default")],16))}});var Oke=Ue(Rke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const Nke=te({name:"ElTooltipV2"}),$ke=te({...Nke,props:yke,setup(e){const n=Ur(e),r=Sn(Hs(n,Object.keys(eE))),a=Sn(Hs(n,Object.keys(tE))),i=Sn(Hs(n,Object.keys(nE))),o=Sn(Hs(n,Object.keys(rE)));return(s,l)=>($(),Se(wke,_o(i_(i)),{default:ce(({open:u})=>[re(Oke,Yt(o,{nowrap:""}),{default:ce(()=>[Re(s.$slots,"trigger")]),_:3},16),($(),Se(sm,{to:s.to,disabled:!s.teleported},[s.fullTransition?($(),Se(xr,_o(Yt({key:0},s.transitionProps)),{default:ce(()=>[s.alwaysOn||u?($(),Se(LO,_o(Yt({key:0},a)),{arrow:ce(({style:c,side:f})=>[s.showArrow?($(),Se(PO,Yt({key:0},r,{style:c,side:f}),null,16,["style","side"])):me("v-if",!0)]),default:ce(()=>[Re(s.$slots,"default")]),_:3},16)):me("v-if",!0)]),_:2},1040)):($(),Z(dt,{key:1},[s.alwaysOn||u?($(),Se(LO,_o(Yt({key:0},a)),{arrow:ce(({style:c,side:f})=>[s.showArrow?($(),Se(PO,Yt({key:0},r,{style:c,side:f}),null,16,["style","side"])):me("v-if",!0)]),default:ce(()=>[Re(s.$slots,"default")]),_:3},16)):me("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var Bke=Ue($ke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const Vke=Ht(Bke),NW="left-check-change",$W="right-check-change",bd=je({data:{type:ye(Array),default:()=>[]},titles:{type:ye(Array),default:()=>[]},buttonTexts:{type:ye(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:ye(Function)},leftDefaultChecked:{type:ye(Array),default:()=>[]},rightDefaultChecked:{type:ye(Array),default:()=>[]},renderContent:{type:ye(Function)},modelValue:{type:ye(Array),default:()=>[]},format:{type:ye(Object),default:()=>({})},filterable:Boolean,props:{type:ye(Object),default:()=>nr({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),uT=(e,t)=>[e,t].every(st)||st(e)&&Lr(t),Fke={[qn]:(e,t,n)=>[e,n].every(st)&&["left","right"].includes(t),[Gt]:e=>st(e),[NW]:uT,[$W]:uT},cT="checked-change",zke=je({data:bd.data,optionRender:{type:ye(Function)},placeholder:String,title:String,filterable:Boolean,format:bd.format,filterMethod:bd.filterMethod,defaultChecked:bd.leftDefaultChecked,props:bd.props}),Hke={[cT]:uT},wm=e=>{const t={label:"label",key:"key",disabled:"disabled"};return R(()=>({...t,...e.props}))},Wke=(e,t,n)=>{const r=wm(e),a=R(()=>e.data.filter(c=>kt(e.filterMethod)?e.filterMethod(t.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=R(()=>a.value.filter(c=>!c[r.value.disabled])),o=R(()=>{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=R(()=>{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 Be(()=>t.checked,(c,f)=>{if(l(),t.checkChangeByUser){const d=c.concat(f).filter(h=>!c.includes(h)||!f.includes(h));n(cT,c,d)}else n(cT,c),t.checkChangeByUser=!0}),Be(i,()=>{l()}),Be(()=>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}),Be(()=>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}},Gke=(e,t)=>({onSourceCheckedChange:(a,i)=>{e.leftChecked=a,i&&t(NW,a,i)},onTargetCheckedChange:(a,i)=>{e.rightChecked=a,i&&t($W,a,i)}}),Kke=e=>{const t=wm(e),n=R(()=>e.data.reduce((i,o)=>(i[o[t.value.key]]=o)&&i,{})),r=R(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),a=R(()=>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}},Uke=(e,t,n)=>{const r=wm(e),a=(s,l,u)=>{n(Gt,s),n(qn,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)}}},jke=te({name:"ElTransferPanel"}),Yke=te({...jke,props:zke,emits:Hke,setup(e,{expose:t,emit:n}){const r=e,a=da(),i=({option:_})=>_,{t:o}=pn(),s=Fe("transfer"),l=Sn({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=wm(r),{filteredData:c,checkedSummary:f,isIndeterminate:d,handleAllCheckedChange:h}=Wke(r,l,n),v=R(()=>!Bi(l.query)&&Bi(c.value)),p=R(()=>!Bi(a.default()[0].children)),{checked:g,allChecked:m,query:b}=Ur(l);return t({query:b}),(_,S)=>($(),Z("div",{class:W(y(s).b("panel"))},[ee("p",{class:W(y(s).be("panel","header"))},[re(y(Qi),{modelValue:y(m),"onUpdate:modelValue":S[0]||(S[0]=x=>Hn(m)?m.value=x:null),indeterminate:y(d),"validate-event":!1,onChange:y(h)},{default:ce(()=>[_n(Ke(_.title)+" ",1),ee("span",null,Ke(y(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),ee("div",{class:W([y(s).be("panel","body"),y(s).is("with-footer",y(p))])},[_.filterable?($(),Se(y(ba),{key:0,modelValue:y(b),"onUpdate:modelValue":S[1]||(S[1]=x=>Hn(b)?b.value=x:null),class:W(y(s).be("panel","filter")),size:"default",placeholder:_.placeholder,"prefix-icon":y(zse),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):me("v-if",!0),Ot(re(y(G8),{modelValue:y(g),"onUpdate:modelValue":S[2]||(S[2]=x=>Hn(g)?g.value=x:null),"validate-event":!1,class:W([y(s).is("filterable",_.filterable),y(s).be("panel","list")])},{default:ce(()=>[($(!0),Z(dt,null,an(y(c),x=>($(),Se(y(Qi),{key:x[y(u).key],class:W(y(s).be("panel","item")),label:x[y(u).key],disabled:x[y(u).disabled],"validate-event":!1},{default:ce(()=>{var C;return[re(i,{option:(C=_.optionRender)==null?void 0:C.call(_,x)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[bn,!y(v)&&!y(Bi)(_.data)]]),Ot(ee("p",{class:W(y(s).be("panel","empty"))},Ke(y(v)?y(o)("el.transfer.noMatch"):y(o)("el.transfer.noData")),3),[[bn,y(v)||y(Bi)(_.data)]])],2),y(p)?($(),Z("p",{key:0,class:W(y(s).be("panel","footer"))},[Re(_.$slots,"default")],2)):me("v-if",!0)],2))}});var RO=Ue(Yke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const qke={key:0},Xke={key:0},Zke=te({name:"ElTransfer"}),Qke=te({...Zke,props:bd,emits:Fke,setup(e,{expose:t,emit:n}){const r=e,a=da(),{t:i}=pn(),o=Fe("transfer"),{formItem:s}=Ga(),l=Sn({leftChecked:[],rightChecked:[]}),u=wm(r),{sourceData:c,targetData:f}=Kke(r),{onSourceCheckedChange:d,onTargetCheckedChange:h}=Gke(l,n),{addToLeft:v,addToRight:p}=Uke(r,l,n),g=U(),m=U(),b=k=>{switch(k){case"left":g.value.query="";break;case"right":m.value.query="";break}},_=R(()=>r.buttonTexts.length===2),S=R(()=>r.titles[0]||i("el.transfer.titles.0")),x=R(()=>r.titles[1]||i("el.transfer.titles.1")),C=R(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));Be(()=>r.modelValue,()=>{var k;r.validateEvent&&((k=s==null?void 0:s.validate)==null||k.call(s,"change").catch(M=>void 0))});const w=R(()=>k=>r.renderContent?r.renderContent(pt,k):a.default?a.default({option:k}):pt("span",k[u.value.label]||k[u.value.key]));return t({clearQuery:b,leftPanel:g,rightPanel:m}),(k,M)=>($(),Z("div",{class:W(y(o).b())},[re(RO,{ref_key:"leftPanel",ref:g,data:y(c),"option-render":y(w),placeholder:y(C),title:y(S),filterable:k.filterable,format:k.format,"filter-method":k.filterMethod,"default-checked":k.leftDefaultChecked,props:r.props,onCheckedChange:y(d)},{default:ce(()=>[Re(k.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),ee("div",{class:W(y(o).e("buttons"))},[re(y(oa),{type:"primary",class:W([y(o).e("button"),y(o).is("with-texts",y(_))]),disabled:y(Bi)(l.rightChecked),onClick:y(v)},{default:ce(()=>[re(y(ut),null,{default:ce(()=>[re(y(hu))]),_:1}),y(Vr)(k.buttonTexts[0])?me("v-if",!0):($(),Z("span",qke,Ke(k.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),re(y(oa),{type:"primary",class:W([y(o).e("button"),y(o).is("with-texts",y(_))]),disabled:y(Bi)(l.leftChecked),onClick:y(p)},{default:ce(()=>[y(Vr)(k.buttonTexts[1])?me("v-if",!0):($(),Z("span",Xke,Ke(k.buttonTexts[1]),1)),re(y(ut),null,{default:ce(()=>[re(y(Ra))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),re(RO,{ref_key:"rightPanel",ref:m,data:y(f),"option-render":y(w),placeholder:y(C),filterable:k.filterable,format:k.format,"filter-method":k.filterMethod,title:y(x),"default-checked":k.rightDefaultChecked,props:r.props,onCheckedChange:y(h)},{default:ce(()=>[Re(k.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Jke=Ue(Qke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const eMe=Ht(Jke),Wd="$treeNodeId",OO=function(e,t){!t||t[Wd]||Object.defineProperty(t,Wd,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},aE=function(e,t){return e?t[e]:t[Wd]},fT=(e,t,n)=>{const r=e.value.currentNode;n();const a=e.value.currentNode;r!==a&&t("current-change",a?a.data:null,a)},dT=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}},Q0=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=dT(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||Q0(a)},Sy=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 tMe=0,hT=class J0{constructor(t){this.id=tMe++,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)ln(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=Sy(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)||OO(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)||OO(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Sy(this,"children")||[];for(let r=0,a=n.length;r<a;r++)this.insertChild({data:n[r]})}get label(){return Sy(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Sy(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 J0)){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=Sn(new J0(t)),t instanceof J0&&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||Q0(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}=dT(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}=dT(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),Q0(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||Q0(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[Wd];!!s&&n.findIndex(u=>u[Wd]===s)>=0?r[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||n.forEach(i=>{r[i[Wd]]||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 nMe{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)ln(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new hT({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 hT)return t;const n=Qt(t)?aE(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)ln(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 rMe=te({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Fe("tree"),n=lt("NodeInstance"),r=lt("RootTree");return()=>{const a=e.node,{data:i,store:o}=a;return e.renderContent?e.renderContent(pt,{_self:n,node:a,data:i,store:o}):r.ctx.slots.default?r.ctx.slots.default({node:a,data:i}):pt("span",{class:t.be("node","label")},[a.label])}}});var aMe=Ue(rMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function BW(e){const t=lt("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),Jt("TreeNodeMap",n),{broadcastExpanded:r=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const VW=Symbol("dragEvents");function iMe({props:e,ctx:t,el$:n,dropIndicator$:r,store:a}){const i=Fe("tree"),o=U({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Jt(VW,{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&&ri(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(),S=n.value.getBoundingClientRect();let x;const C=p?g?.25:m?.45:1:-1,w=m?g?.75:p?.55:0:1;let k=-9999;const M=c.clientY-_.top;M<_.height*C?x="before":M>_.height*w?x="after":g?x="inner":x="none";const I=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),E=r.value;x==="before"?k=I.top-S.top:x==="after"&&(k=I.bottom-S.top),E.style.top=`${k}px`,E.style.left=`${I.right-S.left}px`,x==="inner"?ss(d.$el,i.is("drop-inner")):ri(d.$el,i.is("drop-inner")),o.value.showDropIndicator=x==="before"||x==="after",o.value.allowDrop=o.value.showDropIndicator||b,o.value.dropType=x,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),ri(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 oMe=te({name:"ElTreeNode",components:{ElCollapseTransition:P_,ElCheckbox:Qi,NodeContent:aMe,ElIcon:ut,Loading:Iu},props:{node:{type:hT,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Fe("tree"),{broadcastExpanded:r}=BW(e),a=lt("RootTree"),i=U(!1),o=U(!1),s=U(null),l=U(null),u=U(null),c=lt(VW),f=Bt();Jt("NodeInstance",f),e.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.props.children||"children";Be(()=>{const M=e.node.data[d];return M&&[...M]},()=>{e.node.updateChildren()}),Be(()=>e.node.indeterminate,M=>{p(e.node.checked,M)}),Be(()=>e.node.checked,M=>{p(M,e.node.indeterminate)}),Be(()=>e.node.expanded,M=>{ct(()=>i.value=M),M&&(o.value=!0)});const h=M=>aE(a.props.nodeKey,M.data),v=M=>{const I=e.props.class;if(!I)return{};let E;if(kt(I)){const{data:D}=M;E=I(D,M)}else E=I;return At(E)?{[E]:!0}:E},p=(M,I)=>{(s.value!==M||l.value!==I)&&a.ctx.emit("check-change",e.node.data,M,I),s.value=M,l.value=I},g=M=>{fT(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,I)=>{e.node.setChecked(I.target.checked,!a.props.checkStrictly),ct(()=>{const E=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:E.getCheckedNodes(),checkedKeys:E.getCheckedKeys(),halfCheckedNodes:E.getHalfCheckedNodes(),halfCheckedKeys:E.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,I,E)=>{r(I),a.ctx.emit("node-expand",M,I,E)},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:t6}}}),sMe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],lMe=["aria-expanded"];function uMe(e,t,n,r,a,i){const o=Pt("el-icon"),s=Pt("el-checkbox"),l=Pt("loading"),u=Pt("node-content"),c=Pt("el-tree-node"),f=Pt("el-collapse-transition");return Ot(($(),Z("div",{ref:"node$",class:W([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]=_t((...d)=>e.handleClick&&e.handleClick(...d),["stop"])),onContextmenu:t[2]||(t[2]=(...d)=>e.handleContextMenu&&e.handleContextMenu(...d)),onDragstart:t[3]||(t[3]=_t((...d)=>e.handleDragStart&&e.handleDragStart(...d),["stop"])),onDragover:t[4]||(t[4]=_t((...d)=>e.handleDragOver&&e.handleDragOver(...d),["stop"])),onDragend:t[5]||(t[5]=_t((...d)=>e.handleDragEnd&&e.handleDragEnd(...d),["stop"])),onDrop:t[6]||(t[6]=_t((...d)=>e.handleDrop&&e.handleDrop(...d),["stop"]))},[ee("div",{class:W(e.ns.be("node","content")),style:ft({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?($(),Se(o,{key:0,class:W([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:_t(e.handleExpandIconClick,["stop"])},{default:ce(()=>[($(),Se(qt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):me("v-if",!0),e.showCheckbox?($(),Se(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=_t(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):me("v-if",!0),e.node.loading?($(),Se(o,{key:2,class:W([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ce(()=>[re(l)]),_:1},8,["class"])):me("v-if",!0),re(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),re(f,null,{default:ce(()=>[!e.renderAfterExpand||e.childNodeRendered?Ot(($(),Z("div",{key:0,class:W(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[($(!0),Z(dt,null,an(e.node.childNodes,d=>($(),Se(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,lMe)),[[bn,e.expanded]]):me("v-if",!0)]),_:1})],42,sMe)),[[bn,e.node.visible]])}var cMe=Ue(oMe,[["render",uMe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function fMe({el$:e},t){const n=Fe("tree"),r=zn([]),a=zn([]);Ft(()=>{o()}),cl(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),Be(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),Qn(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([vt.up,vt.down].includes(u)){if(s.preventDefault(),u===vt.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()}[vt.left,vt.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[vt.enter,vt.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 dMe=te({name:"ElTree",components:{ElTreeNode:cMe},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:Wn}},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}=pn(),r=Fe("tree"),a=U(new nMe({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=U(a.value.root),o=U(null),s=U(null),l=U(null),{broadcastExpanded:u}=BW(e),{dragState:c}=iMe({props:e,ctx:t,el$:s,dropIndicator$:l,store:a});fMe({el$:s},a);const f=R(()=>{const{childNodes:B}=i.value;return!B||B.length===0||B.every(({visible:V})=>!V)});Be(()=>e.currentNodeKey,B=>{a.value.setCurrentNodeKey(B)}),Be(()=>e.defaultCheckedKeys,B=>{a.value.setDefaultCheckedKey(B)}),Be(()=>e.defaultExpandedKeys,B=>{a.value.setDefaultExpandedKeys(B)}),Be(()=>e.data,B=>{a.value.setData(B)},{deep:!0}),Be(()=>e.checkStrictly,B=>{a.value.checkStrictly=B});const d=B=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(B)},h=B=>aE(e.nodeKey,B.data),v=B=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const V=a.value.getNode(B);if(!V)return[];const L=[V.data];let G=V.parent;for(;G&&G!==i.value;)L.push(G.data),G=G.parent;return L.reverse()},p=(B,V)=>a.value.getCheckedNodes(B,V),g=B=>a.value.getCheckedKeys(B),m=()=>{const B=a.value.getCurrentNode();return B?B.data:null},b=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const B=m();return B?B[e.nodeKey]:null},_=(B,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(B,V)},S=(B,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(B,V)},x=(B,V,L)=>{a.value.setChecked(B,V,L)},C=()=>a.value.getHalfCheckedNodes(),w=()=>a.value.getHalfCheckedKeys(),k=(B,V=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");fT(a,t.emit,()=>a.value.setUserCurrentNode(B,V))},M=(B,V=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");fT(a,t.emit,()=>a.value.setCurrentNodeKey(B,V))},I=B=>a.value.getNode(B),E=B=>{a.value.remove(B)},D=(B,V)=>{a.value.append(B,V)},P=(B,V)=>{a.value.insertBefore(B,V)},N=(B,V)=>{a.value.insertAfter(B,V)},z=(B,V,L)=>{u(V),t.emit("node-expand",B,V,L)},F=(B,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(B,V)};return Jt("RootTree",{ctx:t,props:e,store:a,root:i,currentNode:o,instance:Bt()}),Jt(_s,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:S,setChecked:x,getHalfCheckedNodes:C,getHalfCheckedKeys:w,setCurrentNode:k,setCurrentKey:M,t:n,getNode:I,remove:E,append:D,insertBefore:P,insertAfter:N,handleNodeExpand:z,updateKeyChildren:F}}});function hMe(e,t,n,r,a,i){const o=Pt("el-tree-node");return $(),Z("div",{ref:"el$",class:W([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"},[($(!0),Z(dt,null,an(e.root.childNodes,s=>($(),Se(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?($(),Z("div",{key:0,class:W(e.ns.e("empty-block"))},[Re(e.$slots,"empty",{},()=>{var s;return[ee("span",{class:W(e.ns.e("empty-text"))},Ke((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):me("v-if",!0),Ot(ee("div",{ref:"dropIndicator$",class:W(e.ns.e("drop-indicator"))},null,2),[[bn,e.dragState.showDropIndicator]])],2)}var eb=Ue(dMe,[["render",hMe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);eb.install=e=>{e.component(eb.name,eb)};const Yb=eb,vMe=Yb,pMe=(e,{attrs:t},{tree:n,key:r})=>{const a=Fe("tree-select"),i={...Hs(Ur(e),Object.keys(vf.props)),...t,valueKey:r,popperClass:R(()=>{const o=[a.e("popper")];return e.popperClass&&o.push(e.popperClass),o.join(" ")}),filterMethod:(o="")=>{e.filterMethod&&e.filterMethod(o),ct(()=>{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},gMe=te({extends:Fb,setup(e,t){const n=Fb.setup(e,t);delete n.selectOptionClick;const r=Bt().proxy;return ct(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function vT(e){return e||e===0}function iE(e){return Array.isArray(e)&&e.length}function Cv(e){return Array.isArray(e)?e:vT(e)?[e]:[]}function tb(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(iE(s)){const l=tb(s,t,n,r,o);if(l)return l}}}}function FW(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);iE(o)&&FW(o,t,n,i)}}const mMe=(e,{attrs:t,slots:n,emit:r},{select:a,tree:i,key:o})=>{Be(()=>e.modelValue,()=>{e.showCheckbox&&ct(()=>{const d=i.value;d&&!ni(d.getCheckedKeys(),Cv(e.modelValue))&&d.setCheckedKeys(Cv(e.modelValue))})},{immediate:!0,deep:!0});const s=R(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(d,h)=>{var v;const p=s.value[d];return kt(p)?p(h,(v=i.value)==null?void 0:v.getNode(l("value",h))):h[p]},u=Cv(e.modelValue).map(d=>tb(e.data||[],h=>l("value",h)===d,h=>l("children",h),(h,v,p,g)=>g&&l("value",g))).filter(d=>vT(d)),c=R(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const d=[];return FW(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=R(()=>c.value.reduce((d,h)=>({...d,[h.value]:h}),{}));return{...Hs(Ur(e),Object.keys(Yb.props)),...t,nodeKey:o,expandOnClickNode:R(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:R(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:h,data:v,store:p})=>d(gMe,{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?Cv(e.modelValue).filter(b=>b in f.value&&!i.value.getNode(b)&&!p.includes(b)):[],m=p.concat(g);if(e.checkStrictly)r(Gt,e.multiple?m:m.includes(v)?v:void 0);else if(e.multiple)r(Gt,i.value.getCheckedKeys(!0));else{const b=tb([d],x=>!iE(l("children",x))&&!l("disabled",x),x=>l("children",x)),_=b?l("value",b):void 0,S=vT(e.modelValue)&&!!tb([d],x=>l("value",x)===e.modelValue,x=>l("children",x));r(Gt,_===e.modelValue||S?void 0:_)}ct(()=>{var b;const _=Cv(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 yMe=te({props:{data:{type:Array,default:()=>[]}},setup(e){const t=lt(bm);return Be(()=>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 bMe=te({name:"ElTreeSelect",inheritAttrs:!1,props:{...vf.props,...Yb.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,a=U(),i=U(),o=R(()=>e.nodeKey||e.valueKey||"value"),s=pMe(e,t,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=mMe(e,t,{select:a,tree:i,key:o}),c=Sn({});return r(c),Ft(()=>{Object.assign(c,{...Hs(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Hs(a.value,["focus","blur"])})}),()=>pt(vf,Sn({...s,ref:f=>a.value=f}),{...n,default:()=>[pt(yMe,{data:l.value}),pt(Yb,Sn({...u,ref:f=>i.value=f}))]})}});var nb=Ue(bMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);nb.install=e=>{e.component(nb.name,nb)};const _Me=nb,wMe=_Me,oE=Symbol(),SMe={key:-1,level:-1,data:{}};var np=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(np||{}),pT=(e=>(e.ADD="add",e.DELETE="delete",e))(pT||{});const zW={type:Number,default:26},CMe=je({data:{type:ye(Array),default:()=>nr([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:ye(Object),default:()=>nr({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:ye(Array),default:()=>nr([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:ye(Array),default:()=>nr([])},indent:{type:Number,default:16},itemSize:zW,icon:{type:Wn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:ye([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:ye(Function)},perfMode:{type:Boolean,default:!0}}),xMe=je({node:{type:ye(Object),default:()=>nr(SMe)},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:zW}),TMe=je({node:{type:ye(Object),required:!0}}),HW="node-click",WW="node-expand",GW="node-collapse",KW="current-change",UW="check",jW="check-change",YW="node-contextmenu",kMe={[HW]:(e,t,n)=>e&&t&&n,[WW]:(e,t)=>e&&t,[GW]:(e,t)=>e&&t,[KW]:(e,t)=>e&&t,[UW]:(e,t)=>e&&t,[jW]:(e,t)=>e&&typeof t=="boolean",[YW]:(e,t,n)=>e&&t&&n},MMe={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function AMe(e,t){const n=U(new Set),r=U(new Set),{emit:a}=Bt();Be([()=>t.value,()=>e.defaultCheckedKeys],()=>ct(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:_,maxLevel:S}=t.value,x=n.value,C=new Set;for(let w=S-1;w>=1;--w){const k=_.get(w);k&&k.forEach(M=>{const I=M.children;if(I){let E=!0,D=!1;for(const P of I){const N=P.key;if(x.has(N))D=!0;else if(C.has(N)){E=!1,D=!0;break}else E=!1}E?x.add(M.key):D?(C.add(M.key),x.delete(M.key)):(x.delete(M.key),C.delete(M.key))}})}r.value=C},o=_=>n.value.has(_.key),s=_=>r.value.has(_.key),l=(_,S,x=!0)=>{const C=n.value,w=(k,M)=>{C[M?pT.ADD:pT.DELETE](k.key);const I=k.children;!e.checkStrictly&&I&&I.forEach(E=>{E.disabled||w(E,M)})};w(_,S),i(),x&&u(_,S)},u=(_,S)=>{const{checkedNodes:x,checkedKeys:C}=v(),{halfCheckedNodes:w,halfCheckedKeys:k}=p();a(UW,_.data,{checkedKeys:C,checkedNodes:x,halfCheckedKeys:k,halfCheckedNodes:w}),a(jW,_.data,S)};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 S=[],x=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:C}=t.value;n.value.forEach(w=>{const k=C.get(w);k&&(!_||_&&k.isLeaf)&&(x.push(w),S.push(k.data))})}return{checkedKeys:x,checkedNodes:S}}function p(){const _=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:x}=t.value;r.value.forEach(C=>{const w=x.get(C);w&&(S.push(C),_.push(w.data))})}return{halfCheckedNodes:_,halfCheckedKeys:S}}function g(_){n.value.clear(),r.value.clear(),b(_)}function m(_,S){if(t!=null&&t.value&&e.showCheckbox){const x=t.value.treeNodeMap.get(_);x&&l(x,S,!1)}}function b(_){if(t!=null&&t.value){const{treeNodeMap:S}=t.value;if(e.showCheckbox&&S&&_)for(const x of _){const C=S.get(x);C&&!o(C)&&l(C,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:g}}function EMe(e,t){const n=U(new Set([])),r=U(new Set([])),a=R(()=>kt(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 S of b)if(!f.has(S.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 IMe(e,t){const n=U(new Set(e.defaultExpandedKeys)),r=U(),a=zn();Be(()=>e.currentNodeKey,ne=>{r.value=ne},{immediate:!0}),Be(()=>e.data,ne=>{se(ne)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:s,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h}=AMe(e,a),{doFilter:v,hiddenNodeKeySet:p,isForceHiddenExpandIcon:g}=EMe(e,a),m=R(()=>{var ne;return((ne=e.props)==null?void 0:ne.value)||np.KEY}),b=R(()=>{var ne;return((ne=e.props)==null?void 0:ne.children)||np.CHILDREN}),_=R(()=>{var ne;return((ne=e.props)==null?void 0:ne.disabled)||np.DISABLED}),S=R(()=>{var ne;return((ne=e.props)==null?void 0:ne.label)||np.LABEL}),x=R(()=>{const ne=n.value,Ce=p.value,Te=[],he=a.value&&a.value.treeNodes||[];function X(){const ae=[];for(let ge=he.length-1;ge>=0;--ge)ae.push(he[ge]);for(;ae.length;){const ge=ae.pop();if(ge&&(Ce.has(ge.key)||Te.push(ge),ne.has(ge.key))){const ke=ge.children;if(ke){const Pe=ke.length;for(let Me=Pe-1;Me>=0;--Me)ae.push(ke[Me])}}}}return X(),Te}),C=R(()=>x.value.length>0);function w(ne){const Ce=new Map,Te=new Map;let he=1;function X(ge,ke=1,Pe=void 0){var Me;const ze=[];for(const Oe of ge){const Le=I(Oe),Ve={level:ke,key:Le,data:Oe};Ve.label=D(Oe),Ve.parent=Pe;const qe=M(Oe);Ve.disabled=E(Oe),Ve.isLeaf=!qe||qe.length===0,qe&&qe.length&&(Ve.children=X(qe,ke+1,Ve)),ze.push(Ve),Ce.set(Le,Ve),Te.has(ke)||Te.set(ke,[]),(Me=Te.get(ke))==null||Me.push(Ve)}return ke>he&&(he=ke),ze}const ae=X(ne);return{treeNodeMap:Ce,levelTreeNodeMap:Te,maxLevel:he,treeNodes:ae}}function k(ne){const Ce=v(ne);Ce&&(n.value=Ce)}function M(ne){return ne[b.value]}function I(ne){return ne?ne[m.value]:""}function E(ne){return ne[_.value]}function D(ne){return ne[S.value]}function P(ne){n.value.has(ne.key)?L(ne):V(ne)}function N(ne){n.value=new Set(ne)}function z(ne,Ce){t(HW,ne.data,ne,Ce),F(ne),e.expandOnClickNode&&P(ne),e.showCheckbox&&e.checkOnClickNode&&!ne.disabled&&s(ne,!o(ne),!0)}function F(ne){Q(ne)||(r.value=ne.key,t(KW,ne.data,ne))}function B(ne,Ce){s(ne,Ce)}function V(ne){const Ce=n.value;if(a.value&&e.accordion){const{treeNodeMap:Te}=a.value;Ce.forEach(he=>{const X=Te.get(he);ne&&ne.level===(X==null?void 0:X.level)&&Ce.delete(he)})}Ce.add(ne.key),t(WW,ne.data,ne)}function L(ne){n.value.delete(ne.key),t(GW,ne.data,ne)}function G(ne){return n.value.has(ne.key)}function q(ne){return!!ne.disabled}function Q(ne){const Ce=r.value;return Ce!==void 0&&Ce===ne.key}function ie(){var ne,Ce;if(r.value)return(Ce=(ne=a.value)==null?void 0:ne.treeNodeMap.get(r.value))==null?void 0:Ce.data}function de(){return r.value}function oe(ne){r.value=ne}function se(ne){ct(()=>a.value=w(ne))}function le(ne){var Ce;const Te=Qt(ne)?I(ne):ne;return(Ce=a.value)==null?void 0:Ce.treeNodeMap.get(Te)}return{tree:a,flattenTree:x,isNotEmpty:C,getKey:I,getChildren:M,toggleExpand:P,toggleCheckbox:s,isExpanded:G,isChecked:o,isIndeterminate:i,isDisabled:q,isCurrent:Q,isForceHiddenExpandIcon:g,handleNodeClick:z,handleNodeCheck:B,getCurrentNode:ie,getCurrentKey:de,setCurrentKey:oe,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h,filter:k,setData:se,getNode:le,expandNode:V,collapseNode:L,setExpandedKeys:N}}var DMe=te({name:"ElTreeNodeContent",props:TMe,setup(e){const t=lt(oE),n=Fe("tree");return()=>{const r=e.node,{data:a}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:a}):pt("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const PMe=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],LMe=te({name:"ElTreeNode"}),RMe=te({...LMe,props:xMe,emits:MMe,setup(e,{emit:t}){const n=e,r=lt(oE),a=Fe("tree"),i=R(()=>{var f;return(f=r==null?void 0:r.props.indent)!=null?f:16}),o=R(()=>{var f;return(f=r==null?void 0:r.props.icon)!=null?f:t6}),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(YW,f,(p=n.node)==null?void 0:p.data,n.node)};return(f,d)=>{var h,v,p;return $(),Z("div",{ref:"node$",class:W([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:_t(s,["stop"]),onContextmenu:c},[ee("div",{class:W(y(a).be("node","content")),style:ft({paddingLeft:`${(f.node.level-1)*y(i)}px`,height:f.itemSize+"px"})},[y(o)?($(),Se(y(ut),{key:0,class:W([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:_t(l,["stop"])},{default:ce(()=>[($(),Se(qt(y(o))))]),_:1},8,["class","onClick"])):me("v-if",!0),f.showCheckbox?($(),Se(y(Qi),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:d[0]||(d[0]=_t(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):me("v-if",!0),re(y(DMe),{node:f.node},null,8,["node"])],6)],42,PMe)}}});var OMe=Ue(RMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const NMe=te({name:"ElTreeV2"}),$Me=te({...NMe,props:CMe,emits:kMe,setup(e,{expose:t,emit:n}){const r=e,a=da(),i=R(()=>r.itemSize);Jt(oE,{ctx:{emit:n,slots:a},props:r,instance:Bt()}),Jt(_s,void 0);const{t:o}=pn(),s=Fe("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:S,getCurrentKey:x,setCurrentKey:C,getCheckedKeys:w,getCheckedNodes:k,getHalfCheckedKeys:M,getHalfCheckedNodes:I,setChecked:E,setCheckedKeys:D,filter:P,setData:N,getNode:z,expandNode:F,collapseNode:B,setExpandedKeys:V}=IMe(r,n);return t({toggleCheckbox:_,getCurrentNode:S,getCurrentKey:x,setCurrentKey:C,getCheckedKeys:w,getCheckedNodes:k,getHalfCheckedKeys:M,getHalfCheckedNodes:I,setChecked:E,setCheckedKeys:D,filter:P,setData:N,getNode:z,expandNode:F,collapseNode:B,setExpandedKeys:V}),(L,G)=>{var q;return $(),Z("div",{class:W([y(s).b(),{[y(s).m("highlight-current")]:L.highlightCurrent}]),role:"tree"},[y(u)?($(),Se(y(eW),{key:0,"class-name":y(s).b("virtual-list"),data:y(l),total:y(l).length,height:L.height,"item-size":y(i),"perf-mode":L.perfMode},{default:ce(({data:Q,index:ie,style:de})=>[($(),Se(OMe,{key:Q[ie].key,style:ft(de),node:Q[ie],expanded:y(f)(Q[ie]),"show-checkbox":L.showCheckbox,checked:y(h)(Q[ie]),indeterminate:y(d)(Q[ie]),"item-size":y(i),disabled:y(v)(Q[ie]),current:y(p)(Q[ie]),"hidden-expand-icon":y(g)(Q[ie]),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"])):($(),Z("div",{key:1,class:W(y(s).e("empty-block"))},[ee("span",{class:W(y(s).e("empty-text"))},Ke((q=L.emptyText)!=null?q:y(o)("el.tree.emptyText")),3)],2))],2)}}});var BMe=Ue($Me,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const VMe=Ht(BMe),qW=Symbol("uploadContextKey"),FMe="ElUpload";class zMe extends Error{constructor(t,n,r,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function NO(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 zMe(r,n.status,t.method,e)}function HMe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const WMe=e=>{typeof XMLHttpRequest>"u"&&Nr(FMe,"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))st(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(NO(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(NO(n,e,t));e.onSuccess(HMe(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))Lr(o)||t.setRequestHeader(i,String(o));return t.send(r),t},XW=["text","picture","picture-card"];let GMe=1;const gT=()=>Date.now()+GMe++,ZW=je({action:{type:String,default:"#"},headers:{type:ye(Object)},method:{type:String,default:"post"},data:{type:ye([Object,Function,Promise]),default:()=>nr({})},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:ye(Array),default:()=>nr([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:XW,default:"text"},httpRequest:{type:ye(Function),default:WMe},disabled:Boolean,limit:Number}),KMe=je({...ZW,beforeUpload:{type:ye(Function),default:Ln},beforeRemove:{type:ye(Function)},onRemove:{type:ye(Function),default:Ln},onChange:{type:ye(Function),default:Ln},onPreview:{type:ye(Function),default:Ln},onSuccess:{type:ye(Function),default:Ln},onProgress:{type:ye(Function),default:Ln},onError:{type:ye(Function),default:Ln},onExceed:{type:ye(Function),default:Ln}}),UMe=je({files:{type:ye(Array),default:()=>nr([])},disabled:{type:Boolean,default:!1},handlePreview:{type:ye(Function),default:Ln},listType:{type:String,values:XW,default:"text"}}),jMe={remove:e=>!!e},YMe=["onKeydown"],qMe=["src"],XMe=["onClick"],ZMe=["title"],QMe=["onClick"],JMe=["onClick"],eAe=te({name:"ElUploadList"}),tAe=te({...eAe,props:UMe,emits:jMe,setup(e,{emit:t}){const{t:n}=pn(),r=Fe("upload"),a=Fe("icon"),i=Fe("list"),o=li(),s=U(!1),l=u=>{t("remove",u)};return(u,c)=>($(),Se(GF,{tag:"ul",class:W([y(r).b("list"),y(r).bm("list",u.listType),y(r).is("disabled",y(o))]),name:y(i).b()},{default:ce(()=>[($(!0),Z(dt,null,an(u.files,f=>($(),Z("li",{key:f.uid||f.name,class:W([y(r).be("list","item"),y(r).is(f.status),{focusing:s.value}]),tabindex:"0",onKeydown:vn(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)},[Re(u.$slots,"default",{file:f},()=>[u.listType==="picture"||f.status!=="uploading"&&u.listType==="picture-card"?($(),Z("img",{key:0,class:W(y(r).be("list","item-thumbnail")),src:f.url,alt:""},null,10,qMe)):me("v-if",!0),f.status==="uploading"||u.listType!=="picture-card"?($(),Z("div",{key:1,class:W(y(r).be("list","item-info"))},[ee("a",{class:W(y(r).be("list","item-name")),onClick:_t(d=>u.handlePreview(f),["prevent"])},[re(y(ut),{class:W(y(a).m("document"))},{default:ce(()=>[re(y(mse))]),_:1},8,["class"]),ee("span",{class:W(y(r).be("list","item-file-name")),title:f.name},Ke(f.name),11,ZMe)],10,XMe),f.status==="uploading"?($(),Se(y(KH),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:ft(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):me("v-if",!0)],2)):me("v-if",!0),ee("label",{class:W(y(r).be("list","item-status-label"))},[u.listType==="text"?($(),Se(y(ut),{key:0,class:W([y(a).m("upload-success"),y(a).m("circle-check")])},{default:ce(()=>[re(y(eA))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?($(),Se(y(ut),{key:1,class:W([y(a).m("upload-success"),y(a).m("check")])},{default:ce(()=>[re(y(vm))]),_:1},8,["class"])):me("v-if",!0)],2),y(o)?me("v-if",!0):($(),Se(y(ut),{key:2,class:W(y(a).m("close")),onClick:d=>l(f)},{default:ce(()=>[re(y(Do))]),_:2},1032,["class","onClick"])),me(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),me(" This is a bug which needs to be fixed "),me(" TODO: Fix the incorrect navigation interaction "),y(o)?me("v-if",!0):($(),Z("i",{key:3,class:W(y(a).m("close-tip"))},Ke(y(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?($(),Z("span",{key:4,class:W(y(r).be("list","item-actions"))},[ee("span",{class:W(y(r).be("list","item-preview")),onClick:d=>u.handlePreview(f)},[re(y(ut),{class:W(y(a).m("zoom-in"))},{default:ce(()=>[re(y(i6))]),_:1},8,["class"])],10,QMe),y(o)?me("v-if",!0):($(),Z("span",{key:0,class:W(y(r).be("list","item-delete")),onClick:d=>l(f)},[re(y(ut),{class:W(y(a).m("delete"))},{default:ce(()=>[re(y(vse))]),_:1},8,["class"])],10,JMe))],2)):me("v-if",!0)])],42,YMe))),128)),Re(u.$slots,"append")]),_:3},8,["class","name"]))}});var $O=Ue(tAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const nAe=je({disabled:{type:Boolean,default:!1}}),rAe={file:e=>st(e)},aAe=["onDrop","onDragover"],QW="ElUploadDrag",iAe=te({name:QW}),oAe=te({...iAe,props:nAe,emits:rAe,setup(e,{emit:t}){const n=lt(qW);n||Nr(QW,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Fe("upload"),a=U(!1),i=li(),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)=>($(),Z("div",{class:W([y(r).b("dragger"),y(r).is("dragover",a.value)]),onDrop:_t(o,["prevent"]),onDragover:_t(s,["prevent"]),onDragleave:u[0]||(u[0]=_t(c=>a.value=!1,["prevent"]))},[Re(l.$slots,"default")],42,aAe))}});var sAe=Ue(oAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const lAe=je({...ZW,beforeUpload:{type:ye(Function),default:Ln},onRemove:{type:ye(Function),default:Ln},onStart:{type:ye(Function),default:Ln},onSuccess:{type:ye(Function),default:Ln},onProgress:{type:ye(Function),default:Ln},onError:{type:ye(Function),default:Ln},onExceed:{type:ye(Function),default:Ln}}),uAe=["onKeydown"],cAe=["name","multiple","accept"],fAe=te({name:"ElUploadContent",inheritAttrs:!1}),dAe=te({...fAe,props:lAe,setup(e,{expose:t}){const n=e,r=Fe("upload"),a=li(),i=zn({}),o=zn(),s=p=>{if(p.length===0)return;const{autoUpload:g,limit:m,fileList:b,multiple:_,onStart:S,onExceed:x}=n;if(m&&b.length+p.length>m){x(p,b);return}_||(p=p.slice(0,1));for(const C of p){const w=C;w.uid=gT(),S(w),g&&l(w)}},l=async p=>{if(o.value.value="",!n.beforeUpload)return c(p);let g,m={};try{const _=n.data,S=n.beforeUpload(p);m=Sb(n.data)?Lb(n.data):n.data,g=await S,Sb(n.data)&&ni(_,m)&&(m=Lb(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)=>kt(p)?p(g):p,c=async(p,g)=>{const{headers:m,data:b,method:_,withCredentials:S,name:x,action:C,onProgress:w,onSuccess:k,onError:M,httpRequest:I}=n;try{g=await u(g??b,p)}catch{n.onRemove(p);return}const{uid:E}=p,D={headers:m||{},withCredentials:S,file:p,data:g,method:_,filename:x,action:C,onProgress:N=>{w(N,p)},onSuccess:N=>{k(N,p),delete i.value[E]},onError:N=>{M(N,p),delete i.value[E]}},P=I(D);i.value[E]=P,P instanceof Promise&&P.then(D.onSuccess,D.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=>{Foe(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)=>($(),Z("div",{class:W([y(r).b(),y(r).m(p.listType),y(r).is("drag",p.drag)]),tabindex:"0",onClick:d,onKeydown:vn(_t(h,["self"]),["enter","space"])},[p.drag?($(),Se(sAe,{key:0,disabled:y(a),onFile:s},{default:ce(()=>[Re(p.$slots,"default")]),_:3},8,["disabled"])):Re(p.$slots,"default",{key:1}),ee("input",{ref_key:"inputRef",ref:o,class:W(y(r).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=_t(()=>{},["stop"]))},null,42,cAe)],42,uAe))}});var BO=Ue(dAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const VO="ElUpload",FO=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},hAe=(e,t)=>{const n=kee(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=>{Lr(d.uid)&&(d.uid=gT());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||Nr(VO,"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),FO(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 Be(()=>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}))}),Be(n,d=>{for(const h of d)h.uid||(h.uid=gT()),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:FO}},vAe=te({name:"ElUpload"}),pAe=te({...vAe,props:KMe,setup(e,{expose:t}){const n=e,r=li(),a=zn(),{abort:i,submit:o,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:d,handleProgress:h,revokeFileObjectURL:v}=hAe(n,a),p=R(()=>n.listType==="picture-card"),g=R(()=>({...n,fileList:l.value,onStart:u,onProgress:h,onSuccess:d,onError:c,onRemove:f}));return er(()=>{l.value.forEach(v)}),Jt(qW,{accept:or(n,"accept")}),t({abort:i,submit:o,clearFiles:s,handleStart:u,handleRemove:f}),(m,b)=>($(),Z("div",null,[y(p)&&m.showFileList?($(),Se($O,{key:0,disabled:y(r),"list-type":m.listType,files:y(l),"handle-preview":m.onPreview,onRemove:y(f)},Qs({append:ce(()=>[re(BO,Yt({ref_key:"uploadRef",ref:a},y(g)),{default:ce(()=>[m.$slots.trigger?Re(m.$slots,"trigger",{key:0}):me("v-if",!0),!m.$slots.trigger&&m.$slots.default?Re(m.$slots,"default",{key:1}):me("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:ce(({file:_})=>[Re(m.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):me("v-if",!0),!y(p)||y(p)&&!m.showFileList?($(),Se(BO,Yt({key:1,ref_key:"uploadRef",ref:a},y(g)),{default:ce(()=>[m.$slots.trigger?Re(m.$slots,"trigger",{key:0}):me("v-if",!0),!m.$slots.trigger&&m.$slots.default?Re(m.$slots,"default",{key:1}):me("v-if",!0)]),_:3},16)):me("v-if",!0),m.$slots.trigger?Re(m.$slots,"default",{key:2}):me("v-if",!0),Re(m.$slots,"tip"),!y(p)&&m.showFileList?($(),Se($O,{key:3,disabled:y(r),"list-type":m.listType,files:y(l),"handle-preview":m.onPreview,onRemove:y(f)},Qs({_:2},[m.$slots.file?{name:"default",fn:ce(({file:_})=>[Re(m.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):me("v-if",!0)]))}});var gAe=Ue(pAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const mAe=Ht(gAe);var yAe=[wce,Pce,ahe,RTe,fhe,yhe,u8,Dhe,Phe,oa,g8,Zve,npe,gpe,mpe,Dge,mge,$ge,Qi,$pe,G8,qge,hme,vme,ime,Wme,hce,tye,nye,rye,aye,iye,T0e,O0e,N0e,Q0e,TH,dbe,r1e,a1e,i1e,RH,Tfe,kfe,ut,Z1e,OH,ba,NH,f_e,D_e,P_e,L_e,R_e,z_e,Uwe,Qwe,sSe,o8,KH,Z8,Jpe,Qpe,xSe,ESe,Gge,hl,vf,Fb,ywe,bCe,MCe,ACe,axe,uxe,cW,_xe,Exe,Ixe,zxe,q2e,X2e,LTe,qTe,XTe,gg,tke,Eve,ske,dke,hke,Fa,Vke,eMe,vMe,wMe,VMe,mAe];const yo="ElInfiniteScroll",bAe=50,_Ae=200,wAe=0,SAe={delay:{type:Number,default:_Ae},distance:{type:Number,default:wAe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},sE=(e,t)=>Object.entries(SAe).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},{}),JW=e=>{const{observer:t}=e[yo];t&&(t.disconnect(),delete e[yo].observer)},CAe=(e,t)=>{const{container:n,containerEl:r,instance:a,observer:i,lastScrollTop:o}=e[yo],{disabled:s,distance:l}=sE(e,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=r,d=f-o;if(e[yo].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=Iee(e,r);h=f+u>=g+v+p-l}h&&t.call(a)};function AS(e,t){const{containerEl:n,instance:r}=e[yo],{disabled:a}=sE(e,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):JW(e))}const xAe={async mounted(e,t){const{instance:n,value:r}=t;kt(r)||Nr(yo,"'v-infinite-scroll' binding value must be a function"),await ct();const{delay:a,immediate:i}=sE(e,n),o=JM(e,!0),s=o===window?document.documentElement:o,l=Qc(CAe.bind(null,e,r),a);if(o){if(e[yo]={instance:n,container:o,containerEl:s,delay:a,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(Qc(AS.bind(null,e,r),bAe));e[yo].observer=u,u.observe(e,{childList:!0,subtree:!0}),AS(e,r)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:n}=e[yo];t==null||t.removeEventListener("scroll",n),JW(e)},async updated(e){if(!e[yo])await ct();else{const{containerEl:t,cb:n,observer:r}=e[yo];t.clientHeight&&r&&AS(e,n)}}},mT=xAe;mT.install=e=>{e.directive("InfiniteScroll",mT)};const TAe=mT;function kAe(e){let t;const n=U(!1),r=Sn({...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()):(ri(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),ri(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=te({name:"ElLoading",setup(d,{expose:h}){const{ns:v,zIndex:p}=A_("loading");return h({ns:v,zIndex:p}),()=>{const g=r.spinner||r.svg,m=pt("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[pt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=r.text?pt("p",{class:v.b("text")},[r.text]):void 0;return pt(xr,{name:v.b("fade"),onAfterLeave:l},{default:ce(()=>[Ot(re("div",{style:{backgroundColor:r.background||""},class:[v.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[pt("div",{class:v.b("spinner")},[m,b])]),[[bn,r.visible]])])})}}}),c=qF(u),f=c.mount(document.createElement("div"));return{...Ur(r),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let Cy;const yT=function(e={}){if(!fn)return;const t=MAe(e);if(t.fullscreen&&Cy)return Cy;const n=kAe({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Cy=void 0)}});AAe(t,t.parent,n),zO(t,t.parent,n),t.parent.vLoadingAddClassList=()=>zO(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),ct(()=>n.visible.value=t.visible),t.fullscreen&&(Cy=n),n},MAe=e=>{var t,n,r,a;let i;return At(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}},AAe=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=Gl(document.body,"position"),n.originalOverflow.value=Gl(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Gl(document.body,"position"),await ct();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(Gl(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Gl(t,"position");for(const[i,o]of Object.entries(a))n.$el.style[i]=o},zO=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ri(t,r.bm("parent","relative")):ss(t,r.bm("parent","relative")),e.fullscreen&&e.lock?ss(t,r.bm("parent","hidden")):ri(t,r.bm("parent","hidden"))},bT=Symbol("ElLoading"),HO=(e,t)=>{var n,r,a,i;const o=t.instance,s=d=>Qt(t.value)?t.value[d]:void 0,l=d=>{const h=At(d)&&(o==null?void 0:o[d])||d;return h&&U(h)},u=d=>l(s(d)||e.getAttribute(`element-loading-${ku(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[bT]={options:f,instance:yT(f)}},EAe=(e,t)=>{for(const n of Object.keys(t))Hn(t[n])&&(t[n].value=e[n])},WO={mounted(e,t){t.value&&HO(e,t)},updated(e,t){const n=e[bT];t.oldValue!==t.value&&(t.value&&!t.oldValue?HO(e,t):t.value&&t.oldValue?Qt(t.value)&&EAe(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[bT])==null||t.instance.close()}},IAe={install(e){e.directive("loading",WO),e.config.globalProperties.$loading=yT},directive:WO,service:yT},eG=["success","info","warning","error"],Za=nr({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:fn?document.body:void 0}),DAe=je({customClass:{type:String,default:Za.customClass},center:{type:Boolean,default:Za.center},dangerouslyUseHTMLString:{type:Boolean,default:Za.dangerouslyUseHTMLString},duration:{type:Number,default:Za.duration},icon:{type:Wn,default:Za.icon},id:{type:String,default:Za.id},message:{type:ye([String,Object,Function]),default:Za.message},onClose:{type:ye(Function),required:!1},showClose:{type:Boolean,default:Za.showClose},type:{type:String,values:eG,default:Za.type},offset:{type:Number,default:Za.offset},zIndex:{type:Number,default:Za.zIndex},grouping:{type:Boolean,default:Za.grouping},repeatNum:{type:Number,default:Za.repeatNum}}),PAe={destroy:()=>!0},wo=rF([]),LAe=e=>{const t=wo.findIndex(a=>a.id===e),n=wo[t];let r;return t>0&&(r=wo[t-1]),{current:n,prev:r}},RAe=e=>{const{prev:t}=LAe(e);return t?t.vm.exposed.bottom.value:0},OAe=(e,t)=>wo.findIndex(r=>r.id===e)>0?20:t,NAe=["id"],$Ae=["innerHTML"],BAe=te({name:"ElMessage"}),VAe=te({...BAe,props:DAe,emits:PAe,setup(e,{expose:t}){const n=e,{Close:r}=rA,{ns:a,zIndex:i}=A_("message"),{currentZIndex:o,nextZIndex:s}=i,l=U(),u=U(!1),c=U(0);let f;const d=R(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=R(()=>{const w=n.type;return{[a.bm("icon",w)]:w&&vu[w]}}),v=R(()=>n.icon||vu[n.type]||""),p=R(()=>RAe(n.id)),g=R(()=>OAe(n.id,n.offset)+p.value),m=R(()=>c.value+g.value),b=R(()=>({top:`${g.value}px`,zIndex:o.value}));function _(){n.duration!==0&&({stop:f}=ff(()=>{x()},n.duration))}function S(){f==null||f()}function x(){u.value=!1}function C({code:w}){w===vt.esc&&x()}return Ft(()=>{_(),s(),u.value=!0}),Be(()=>n.repeatNum,()=>{S(),_()}),Qn(document,"keydown",C),wa(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:m,close:x}),(w,k)=>($(),Se(xr,{name:y(a).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:k[0]||(k[0]=M=>w.$emit("destroy")),persisted:""},{default:ce(()=>[Ot(ee("div",{id:w.id,ref_key:"messageRef",ref:l,class:W([y(a).b(),{[y(a).m(w.type)]:w.type&&!w.icon},y(a).is("center",w.center),y(a).is("closable",w.showClose),w.customClass]),style:ft(y(b)),role:"alert",onMouseenter:S,onMouseleave:_},[w.repeatNum>1?($(),Se(y(u8),{key:0,value:w.repeatNum,type:y(d),class:W(y(a).e("badge"))},null,8,["value","type","class"])):me("v-if",!0),y(v)?($(),Se(y(ut),{key:1,class:W([y(a).e("icon"),y(h)])},{default:ce(()=>[($(),Se(qt(y(v))))]),_:1},8,["class"])):me("v-if",!0),Re(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?($(),Z(dt,{key:1},[me(" Caution here, message could've been compromised, never use user's input as message "),ee("p",{class:W(y(a).e("content")),innerHTML:w.message},null,10,$Ae)],2112)):($(),Z("p",{key:0,class:W(y(a).e("content"))},Ke(w.message),3))]),w.showClose?($(),Se(y(ut),{key:2,class:W(y(a).e("closeBtn")),onClick:_t(x,["stop"])},{default:ce(()=>[re(y(r))]),_:1},8,["class","onClick"])):me("v-if",!0)],46,NAe),[[bn,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var FAe=Ue(VAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let zAe=1;const tG=e=>{const t=!e||At(e)||ar(e)||kt(e)?{message:e}:e,n={...Za,...t};if(!n.appendTo)n.appendTo=document.body;else if(At(n.appendTo)){let r=document.querySelector(n.appendTo);ji(r)||(r=document.body),n.appendTo=r}return n},HAe=e=>{const t=wo.indexOf(e);if(t===-1)return;wo.splice(t,1);const{handler:n}=e;n.close()},WAe=({appendTo:e,...t},n)=>{const r=`message_${zAe++}`,a=t.onClose,i=document.createElement("div"),o={...t,id:r,onClose:()=>{a==null||a(),HAe(c)},onDestroy:()=>{rh(null,i)}},s=re(FAe,o,kt(o.message)||ar(o.message)?{default:kt(o.message)?o.message:()=>o.message}:null);s.appContext=n||bh._context,rh(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},bh=(e={},t)=>{if(!fn)return{close:()=>{}};if(Tt(C2.max)&&wo.length>=C2.max)return{close:()=>{}};const n=tG(e);if(n.grouping&&wo.length){const a=wo.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=WAe(n,t);return wo.push(r),r.handler};eG.forEach(e=>{bh[e]=(t={},n)=>{const r=tG(t);return bh({...r,type:e},n)}});function GAe(e){for(const t of wo)(!e||e===t.props.type)&&t.handler.close()}bh.closeAll=GAe;bh._context=null;const KAe=l6(bh,"$message"),UAe=te({name:"ElMessageBox",directives:{TrapFocus:fve},components:{ElButton:oa,ElFocusTrap:I_,ElInput:ba,ElOverlay:RA,ElIcon:ut,...rA},inheritAttrs:!1,props:{buttonSize:{type:String,validator:__},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}=A_("message-box",R(()=>e.buttonSize)),{t:o}=n,{nextZIndex:s}=r,l=U(!1),u=Sn({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=R(()=>{const z=u.type;return{[a.bm("icon",z)]:z&&vu[z]}}),f=Xi(),d=Xi(),h=R(()=>u.icon||vu[u.type]||""),v=R(()=>!!u.message),p=U(),g=U(),m=U(),b=U(),_=U(),S=R(()=>u.confirmButtonClass);Be(()=>u.inputValue,async z=>{await ct(),e.boxType==="prompt"&&z!==null&&E()},{immediate:!0}),Be(()=>l.value,z=>{var F,B;z&&(e.boxType!=="prompt"&&(u.autofocus?m.value=(B=(F=_.value)==null?void 0:F.$el)!=null?B:p.value:m.value=p.value),u.zIndex=s()),e.boxType==="prompt"&&(z?ct().then(()=>{var V;b.value&&b.value.$el&&(u.autofocus?m.value=(V=D())!=null?V:p.value:m.value=p.value)}):(u.editorErrorMessage="",u.validateError=!1))});const x=R(()=>e.draggable);u6(p,g,x),Ft(async()=>{await ct(),e.closeOnHashChange&&window.addEventListener("hashchange",C)}),er(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",C)});function C(){l.value&&(l.value=!1,ct(()=>{u.action&&t("action",u.action)}))}const w=()=>{e.closeOnClickModal&&I(u.distinguishCancelAndClose?"close":"cancel")},k=pA(w),M=z=>{if(u.inputType!=="textarea")return z.preventDefault(),I("confirm")},I=z=>{var F;e.boxType==="prompt"&&z==="confirm"&&!E()||(u.action=z,u.beforeClose?(F=u.beforeClose)==null||F.call(u,z,u,C):C())},E=()=>{if(e.boxType==="prompt"){const z=u.inputPattern;if(z&&!z.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const F=u.inputValidator;if(typeof F=="function"){const B=F(u.inputValue);if(B===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof B=="string")return u.editorErrorMessage=B,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},D=()=>{const z=b.value.$refs;return z.input||z.textarea},P=()=>{I("close")},N=()=>{e.closeOnPressEscape&&P()};return e.lockScroll&&d6(l),{...Ur(u),ns:a,overlayEvent:k,visible:l,hasMessage:v,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:h,confirmButtonClasses:S,rootRef:p,focusStartRef:m,headerRef:g,inputRef:b,confirmRef:_,doClose:C,handleClose:P,onCloseRequested:N,handleWrapperClick:w,handleInputEnter:M,handleAction:I,t:o}}}),jAe=["aria-label","aria-describedby"],YAe=["aria-label"],qAe=["id"];function XAe(e,t,n,r,a,i){const o=Pt("el-icon"),s=Pt("close"),l=Pt("el-input"),u=Pt("el-button"),c=Pt("el-focus-trap"),f=Pt("el-overlay");return $(),Se(xr,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=d=>e.$emit("vanish")),persisted:""},{default:ce(()=>[Ot(re(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ce(()=>[ee("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:W(`${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))},[re(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ce(()=>[ee("div",{ref:"rootRef",class:W([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:ft(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=_t(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?($(),Z("div",{key:0,ref:"headerRef",class:W(e.ns.e("header"))},[ee("div",{class:W(e.ns.e("title"))},[e.iconComponent&&e.center?($(),Se(o,{key:0,class:W([e.ns.e("status"),e.typeClass])},{default:ce(()=>[($(),Se(qt(e.iconComponent)))]),_:1},8,["class"])):me("v-if",!0),ee("span",null,Ke(e.title),1)],2),e.showClose?($(),Z("button",{key:0,type:"button",class:W(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]=vn(_t(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[re(o,{class:W(e.ns.e("close"))},{default:ce(()=>[re(s)]),_:1},8,["class"])],42,YAe)):me("v-if",!0)],2)):me("v-if",!0),ee("div",{id:e.contentId,class:W(e.ns.e("content"))},[ee("div",{class:W(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?($(),Se(o,{key:0,class:W([e.ns.e("status"),e.typeClass])},{default:ce(()=>[($(),Se(qt(e.iconComponent)))]),_:1},8,["class"])):me("v-if",!0),e.hasMessage?($(),Z("div",{key:1,class:W(e.ns.e("message"))},[Re(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?($(),Se(qt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):($(),Se(qt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:ce(()=>[_n(Ke(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):me("v-if",!0)],2),Ot(ee("div",{class:W(e.ns.e("input"))},[re(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:W({invalid:e.validateError}),onKeydown:vn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),ee("div",{class:W(e.ns.e("errormsg")),style:ft({visibility:e.editorErrorMessage?"visible":"hidden"})},Ke(e.editorErrorMessage),7)],2),[[bn,e.showInput]])],10,qAe),ee("div",{class:W(e.ns.e("btns"))},[e.showCancelButton?($(),Se(u,{key:0,loading:e.cancelButtonLoading,class:W([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=d=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=vn(_t(d=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ce(()=>[_n(Ke(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):me("v-if",!0),Ot(re(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:W([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]=vn(_t(d=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ce(()=>[_n(Ke(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[bn,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,jAe)]),_:3},8,["z-index","overlay-class","mask"]),[[bn,e.visible]])]),_:3})}var ZAe=Ue(UAe,[["render",XAe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const Tg=new Map,QAe=e=>{let t=document.body;return e.appendTo&&(At(e.appendTo)&&(t=document.querySelector(e.appendTo)),ji(e.appendTo)&&(t=e.appendTo),ji(t)||(t=document.body)),t},JAe=(e,t,n=null)=>{const r=re(ZAe,e,kt(e.message)||ar(e.message)?{default:kt(e.message)?e.message:()=>e.message}:null);return r.appContext=n,rh(r,t),QAe(e).appendChild(t.firstElementChild),r.component},eEe=()=>document.createElement("div"),tEe=(e,t)=>{const n=eEe();e.onVanish=()=>{rh(null,n),Tg.delete(a)},e.onAction=i=>{const o=Tg.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=JAe(e,n,t),a=r.proxy;for(const i in e)ln(e,i)&&!ln(a.$props,i)&&(a[i]=e[i]);return a.visible=!0,a};function Fh(e,t=null){if(!fn)return Promise.reject();let n;return At(e)||ar(e)?e={message:e}:n=e.callback,new Promise((r,a)=>{const i=tEe(e,t??Fh._context);Tg.set(i,{options:e,callback:n,resolve:r,reject:a})})}const nEe=["alert","confirm","prompt"],rEe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};nEe.forEach(e=>{Fh[e]=aEe(e)});function aEe(e){return(t,n,r,a)=>{let i="";return Qt(n)?(r=n,i=""):Vr(n)?i="":i=n,Fh(Object.assign({title:i,message:t,type:"",...rEe[e]},r,{boxType:e}),a)}}Fh.close=()=>{Tg.forEach((e,t)=>{t.doClose()}),Tg.clear()};Fh._context=null;const Nl=Fh;Nl.install=e=>{Nl._context=e._context,e.config.globalProperties.$msgbox=Nl,e.config.globalProperties.$messageBox=Nl,e.config.globalProperties.$alert=Nl.alert,e.config.globalProperties.$confirm=Nl.confirm,e.config.globalProperties.$prompt=Nl.prompt};const iEe=Nl,nG=["success","info","warning","error"],oEe=je({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Wn},id:{type:String,default:""},message:{type:ye([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:ye(Function),default:()=>{}},onClose:{type:ye(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:[...nG,""],default:""},zIndex:Number}),sEe={destroy:()=>!0},lEe=["id"],uEe=["textContent"],cEe={key:0},fEe=["innerHTML"],dEe=te({name:"ElNotification"}),hEe=te({...dEe,props:oEe,emits:sEe,setup(e,{expose:t}){const n=e,{ns:r,zIndex:a}=A_("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=s6,l=U(!1);let u;const c=R(()=>{const _=n.type;return _&&vu[n.type]?r.m(_):""}),f=R(()=>n.type&&vu[n.type]||n.icon),d=R(()=>n.position.endsWith("right")?"right":"left"),h=R(()=>n.position.startsWith("top")?"top":"bottom"),v=R(()=>{var _;return{[h.value]:`${n.offset}px`,zIndex:(_=n.zIndex)!=null?_:o.value}});function p(){n.duration>0&&({stop:u}=ff(()=>{l.value&&m()},n.duration))}function g(){u==null||u()}function m(){l.value=!1}function b({code:_}){_===vt.delete||_===vt.backspace?g():_===vt.esc?l.value&&m():p()}return Ft(()=>{p(),i(),l.value=!0}),Qn(document,"keydown",b),t({visible:l,close:m}),(_,S)=>($(),Se(xr,{name:y(r).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:S[1]||(S[1]=x=>_.$emit("destroy")),persisted:""},{default:ce(()=>[Ot(ee("div",{id:_.id,class:W([y(r).b(),_.customClass,y(d)]),style:ft(y(v)),role:"alert",onMouseenter:g,onMouseleave:p,onClick:S[0]||(S[0]=(...x)=>_.onClick&&_.onClick(...x))},[y(f)?($(),Se(y(ut),{key:0,class:W([y(r).e("icon"),y(c)])},{default:ce(()=>[($(),Se(qt(y(f))))]),_:1},8,["class"])):me("v-if",!0),ee("div",{class:W(y(r).e("group"))},[ee("h2",{class:W(y(r).e("title")),textContent:Ke(_.title)},null,10,uEe),Ot(ee("div",{class:W(y(r).e("content")),style:ft(_.title?void 0:{margin:0})},[Re(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?($(),Z(dt,{key:1},[me(" Caution here, message could've been compromised, never use user's input as message "),ee("p",{innerHTML:_.message},null,8,fEe)],2112)):($(),Z("p",cEe,Ke(_.message),1))])],6),[[bn,_.message]]),_.showClose?($(),Se(y(ut),{key:0,class:W(y(r).e("closeBtn")),onClick:_t(m,["stop"])},{default:ce(()=>[re(y(s))]),_:1},8,["class","onClick"])):me("v-if",!0)],2)],46,lEe),[[bn,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var vEe=Ue(hEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const qb={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},_T=16;let pEe=1;const _h=function(e={},t=null){if(!fn)return{close:()=>{}};(typeof e=="string"||ar(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;qb[n].forEach(({vm:c})=>{var f;r+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+_T}),r+=_T;const a=`notification_${pEe++}`,i=e.onClose,o={...e,offset:r,id:a,onClose:()=>{gEe(a,n,i)}};let s=document.body;ji(e.appendTo)?s=e.appendTo:At(e.appendTo)&&(s=document.querySelector(e.appendTo)),ji(s)||(s=document.body);const l=document.createElement("div"),u=re(vEe,o,ar(o.message)?{default:()=>o.message}:null);return u.appContext=t??_h._context,u.props.onDestroy=()=>{rh(null,l)},rh(u,l),qb[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};nG.forEach(e=>{_h[e]=(t={})=>((typeof t=="string"||ar(t))&&(t={message:t}),_h({...t,type:e}))});function gEe(e,t,n){const r=qb[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-_T;f.props.offset=d}}function mEe(){for(const e of Object.values(qb))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}_h.closeAll=mEe;_h._context=null;const yEe=l6(_h,"$notify");var bEe=[TAe,IAe,KAe,iEe,yEe,GH],_Ee=pce([...yAe,...bEe]);var rG={exports:{}};/*!
 
-  * jQuery JavaScript Library v3.7.1
 
-  * https://jquery.com/
 
-  *
 
-  * Copyright OpenJS Foundation and other contributors
 
-  * Released under the MIT license
 
-  * https://jquery.org/license
 
-  *
 
-  * Date: 2023-08-28T13:37Z
 
-  */(function(e){(function(t,n){e.exports=t.document?n(t,!0):function(r){if(!r.document)throw new Error("jQuery requires a window with a document");return n(r)}})(typeof window<"u"?window:Ts,function(t,n){var r=[],a=Object.getPrototypeOf,i=r.slice,o=r.flat?function(T){return r.flat.call(T)}:function(T){return r.concat.apply([],T)},s=r.push,l=r.indexOf,u={},c=u.toString,f=u.hasOwnProperty,d=f.toString,h=d.call(Object),v={},p=function(A){return typeof A=="function"&&typeof A.nodeType!="number"&&typeof A.item!="function"},g=function(A){return A!=null&&A===A.window},m=t.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function _(T,A,O){O=O||m;var H,j,Y=O.createElement("script");if(Y.text=T,A)for(H in b)j=A[H]||A.getAttribute&&A.getAttribute(H),j&&Y.setAttribute(H,j);O.head.appendChild(Y).parentNode.removeChild(Y)}function S(T){return T==null?T+"":typeof T=="object"||typeof T=="function"?u[c.call(T)]||"object":typeof T}var x="3.7.1",C=/HTML$/i,w=function(T,A){return new w.fn.init(T,A)};w.fn=w.prototype={jquery:x,constructor:w,length:0,toArray:function(){return i.call(this)},get:function(T){return T==null?i.call(this):T<0?this[T+this.length]:this[T]},pushStack:function(T){var A=w.merge(this.constructor(),T);return A.prevObject=this,A},each:function(T){return w.each(this,T)},map:function(T){return this.pushStack(w.map(this,function(A,O){return T.call(A,O,A)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(T,A){return(A+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(T,A){return A%2}))},eq:function(T){var A=this.length,O=+T+(T<0?A:0);return this.pushStack(O>=0&&O<A?[this[O]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:r.sort,splice:r.splice},w.extend=w.fn.extend=function(){var T,A,O,H,j,Y,J=arguments[0]||{},xe=1,pe=arguments.length,Ne=!1;for(typeof J=="boolean"&&(Ne=J,J=arguments[xe]||{},xe++),typeof J!="object"&&!p(J)&&(J={}),xe===pe&&(J=this,xe--);xe<pe;xe++)if((T=arguments[xe])!=null)for(A in T)H=T[A],!(A==="__proto__"||J===H)&&(Ne&&H&&(w.isPlainObject(H)||(j=Array.isArray(H)))?(O=J[A],j&&!Array.isArray(O)?Y=[]:!j&&!w.isPlainObject(O)?Y={}:Y=O,j=!1,J[A]=w.extend(Ne,Y,H)):H!==void 0&&(J[A]=H));return J},w.extend({expando:"jQuery"+(x+Math.random()).replace(/\D/g,""),isReady:!0,error:function(T){throw new Error(T)},noop:function(){},isPlainObject:function(T){var A,O;return!T||c.call(T)!=="[object Object]"?!1:(A=a(T),A?(O=f.call(A,"constructor")&&A.constructor,typeof O=="function"&&d.call(O)===h):!0)},isEmptyObject:function(T){var A;for(A in T)return!1;return!0},globalEval:function(T,A,O){_(T,{nonce:A&&A.nonce},O)},each:function(T,A){var O,H=0;if(k(T))for(O=T.length;H<O&&A.call(T[H],H,T[H])!==!1;H++);else for(H in T)if(A.call(T[H],H,T[H])===!1)break;return T},text:function(T){var A,O="",H=0,j=T.nodeType;if(!j)for(;A=T[H++];)O+=w.text(A);return j===1||j===11?T.textContent:j===9?T.documentElement.textContent:j===3||j===4?T.nodeValue:O},makeArray:function(T,A){var O=A||[];return T!=null&&(k(Object(T))?w.merge(O,typeof T=="string"?[T]:T):s.call(O,T)),O},inArray:function(T,A,O){return A==null?-1:l.call(A,T,O)},isXMLDoc:function(T){var A=T&&T.namespaceURI,O=T&&(T.ownerDocument||T).documentElement;return!C.test(A||O&&O.nodeName||"HTML")},merge:function(T,A){for(var O=+A.length,H=0,j=T.length;H<O;H++)T[j++]=A[H];return T.length=j,T},grep:function(T,A,O){for(var H,j=[],Y=0,J=T.length,xe=!O;Y<J;Y++)H=!A(T[Y],Y),H!==xe&&j.push(T[Y]);return j},map:function(T,A,O){var H,j,Y=0,J=[];if(k(T))for(H=T.length;Y<H;Y++)j=A(T[Y],Y,O),j!=null&&J.push(j);else for(Y in T)j=A(T[Y],Y,O),j!=null&&J.push(j);return o(J)},guid:1,support:v}),typeof Symbol=="function"&&(w.fn[Symbol.iterator]=r[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(T,A){u["[object "+A+"]"]=A.toLowerCase()});function k(T){var A=!!T&&"length"in T&&T.length,O=S(T);return p(T)||g(T)?!1:O==="array"||A===0||typeof A=="number"&&A>0&&A-1 in T}function M(T,A){return T.nodeName&&T.nodeName.toLowerCase()===A.toLowerCase()}var I=r.pop,E=r.sort,D=r.splice,P="[\\x20\\t\\r\\n\\f]",N=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g");w.contains=function(T,A){var O=A&&A.parentNode;return T===O||!!(O&&O.nodeType===1&&(T.contains?T.contains(O):T.compareDocumentPosition&&T.compareDocumentPosition(O)&16))};var z=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function F(T,A){return A?T==="\0"?"�":T.slice(0,-1)+"\\"+T.charCodeAt(T.length-1).toString(16)+" ":"\\"+T}w.escapeSelector=function(T){return(T+"").replace(z,F)};var B=m,V=s;(function(){var T,A,O,H,j,Y=V,J,xe,pe,Ne,Qe,it=w.expando,We=0,mt=0,gn=Xm(),Vn=Xm(),An=Xm(),ta=Xm(),zr=function(fe,Ee){return fe===Ee&&(j=!0),0},Ho="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",Wo="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Rn="\\["+P+"*("+Wo+")(?:"+P+"*([*^$|!~]?=)"+P+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+Wo+"))|)"+P+"*\\]",zu=":("+Wo+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Rn+")*)|.*)\\)|)",Fn=new RegExp(P+"+","g"),Mr=new RegExp("^"+P+"*,"+P+"*"),fv=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),Fw=new RegExp(P+"|>"),Go=new RegExp(zu),dv=new RegExp("^"+Wo+"$"),Ko={ID:new RegExp("^#("+Wo+")"),CLASS:new RegExp("^\\.("+Wo+")"),TAG:new RegExp("^("+Wo+"|[*])"),ATTR:new RegExp("^"+Rn),PSEUDO:new RegExp("^"+zu),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+Ho+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},gl=/^(?:input|select|textarea|button)$/i,ml=/^h\d$/i,Ci=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,zw=/[+~]/,Es=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),Is=function(fe,Ee){var He="0x"+fe.slice(1)-65536;return Ee||(He<0?String.fromCharCode(He+65536):String.fromCharCode(He>>10|55296,He&1023|56320))},Zq=function(){yl()},Qq=Qm(function(fe){return fe.disabled===!0&&M(fe,"fieldset")},{dir:"parentNode",next:"legend"});function Jq(){try{return J.activeElement}catch{}}try{Y.apply(r=i.call(B.childNodes),B.childNodes),r[B.childNodes.length].nodeType}catch{Y={apply:function(Ee,He){V.apply(Ee,i.call(He))},call:function(Ee){V.apply(Ee,i.call(arguments,1))}}}function Xn(fe,Ee,He,Ye){var at,xt,It,Ut,Dt,Dn,cn,yn=Ee&&Ee.ownerDocument,Pn=Ee?Ee.nodeType:9;if(He=He||[],typeof fe!="string"||!fe||Pn!==1&&Pn!==9&&Pn!==11)return He;if(!Ye&&(yl(Ee),Ee=Ee||J,pe)){if(Pn!==11&&(Dt=Ci.exec(fe)))if(at=Dt[1]){if(Pn===9)if(It=Ee.getElementById(at)){if(It.id===at)return Y.call(He,It),He}else return He;else if(yn&&(It=yn.getElementById(at))&&Xn.contains(Ee,It)&&It.id===at)return Y.call(He,It),He}else{if(Dt[2])return Y.apply(He,Ee.getElementsByTagName(fe)),He;if((at=Dt[3])&&Ee.getElementsByClassName)return Y.apply(He,Ee.getElementsByClassName(at)),He}if(!ta[fe+" "]&&(!Ne||!Ne.test(fe))){if(cn=fe,yn=Ee,Pn===1&&(Fw.test(fe)||fv.test(fe))){for(yn=zw.test(fe)&&Hw(Ee.parentNode)||Ee,(yn!=Ee||!v.scope)&&((Ut=Ee.getAttribute("id"))?Ut=w.escapeSelector(Ut):Ee.setAttribute("id",Ut=it)),Dn=hv(fe),xt=Dn.length;xt--;)Dn[xt]=(Ut?"#"+Ut:":scope")+" "+Zm(Dn[xt]);cn=Dn.join(",")}try{return Y.apply(He,yn.querySelectorAll(cn)),He}catch{ta(fe,!0)}finally{Ut===it&&Ee.removeAttribute("id")}}}return JD(fe.replace(N,"$1"),Ee,He,Ye)}function Xm(){var fe=[];function Ee(He,Ye){return fe.push(He+" ")>A.cacheLength&&delete Ee[fe.shift()],Ee[He+" "]=Ye}return Ee}function lo(fe){return fe[it]=!0,fe}function Ff(fe){var Ee=J.createElement("fieldset");try{return!!fe(Ee)}catch{return!1}finally{Ee.parentNode&&Ee.parentNode.removeChild(Ee),Ee=null}}function eX(fe){return function(Ee){return M(Ee,"input")&&Ee.type===fe}}function tX(fe){return function(Ee){return(M(Ee,"input")||M(Ee,"button"))&&Ee.type===fe}}function ZD(fe){return function(Ee){return"form"in Ee?Ee.parentNode&&Ee.disabled===!1?"label"in Ee?"label"in Ee.parentNode?Ee.parentNode.disabled===fe:Ee.disabled===fe:Ee.isDisabled===fe||Ee.isDisabled!==!fe&&Qq(Ee)===fe:Ee.disabled===fe:"label"in Ee?Ee.disabled===fe:!1}}function Hu(fe){return lo(function(Ee){return Ee=+Ee,lo(function(He,Ye){for(var at,xt=fe([],He.length,Ee),It=xt.length;It--;)He[at=xt[It]]&&(He[at]=!(Ye[at]=He[at]))})})}function Hw(fe){return fe&&typeof fe.getElementsByTagName<"u"&&fe}function yl(fe){var Ee,He=fe?fe.ownerDocument||fe:B;return He==J||He.nodeType!==9||!He.documentElement||(J=He,xe=J.documentElement,pe=!w.isXMLDoc(J),Qe=xe.matches||xe.webkitMatchesSelector||xe.msMatchesSelector,xe.msMatchesSelector&&B!=J&&(Ee=J.defaultView)&&Ee.top!==Ee&&Ee.addEventListener("unload",Zq),v.getById=Ff(function(Ye){return xe.appendChild(Ye).id=w.expando,!J.getElementsByName||!J.getElementsByName(w.expando).length}),v.disconnectedMatch=Ff(function(Ye){return Qe.call(Ye,"*")}),v.scope=Ff(function(){return J.querySelectorAll(":scope")}),v.cssHas=Ff(function(){try{return J.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),v.getById?(A.filter.ID=function(Ye){var at=Ye.replace(Es,Is);return function(xt){return xt.getAttribute("id")===at}},A.find.ID=function(Ye,at){if(typeof at.getElementById<"u"&&pe){var xt=at.getElementById(Ye);return xt?[xt]:[]}}):(A.filter.ID=function(Ye){var at=Ye.replace(Es,Is);return function(xt){var It=typeof xt.getAttributeNode<"u"&&xt.getAttributeNode("id");return It&&It.value===at}},A.find.ID=function(Ye,at){if(typeof at.getElementById<"u"&&pe){var xt,It,Ut,Dt=at.getElementById(Ye);if(Dt){if(xt=Dt.getAttributeNode("id"),xt&&xt.value===Ye)return[Dt];for(Ut=at.getElementsByName(Ye),It=0;Dt=Ut[It++];)if(xt=Dt.getAttributeNode("id"),xt&&xt.value===Ye)return[Dt]}return[]}}),A.find.TAG=function(Ye,at){return typeof at.getElementsByTagName<"u"?at.getElementsByTagName(Ye):at.querySelectorAll(Ye)},A.find.CLASS=function(Ye,at){if(typeof at.getElementsByClassName<"u"&&pe)return at.getElementsByClassName(Ye)},Ne=[],Ff(function(Ye){var at;xe.appendChild(Ye).innerHTML="<a id='"+it+"' href='' disabled='disabled'></a><select id='"+it+"-\r\\' disabled='disabled'><option selected=''></option></select>",Ye.querySelectorAll("[selected]").length||Ne.push("\\["+P+"*(?:value|"+Ho+")"),Ye.querySelectorAll("[id~="+it+"-]").length||Ne.push("~="),Ye.querySelectorAll("a#"+it+"+*").length||Ne.push(".#.+[+~]"),Ye.querySelectorAll(":checked").length||Ne.push(":checked"),at=J.createElement("input"),at.setAttribute("type","hidden"),Ye.appendChild(at).setAttribute("name","D"),xe.appendChild(Ye).disabled=!0,Ye.querySelectorAll(":disabled").length!==2&&Ne.push(":enabled",":disabled"),at=J.createElement("input"),at.setAttribute("name",""),Ye.appendChild(at),Ye.querySelectorAll("[name='']").length||Ne.push("\\["+P+"*name"+P+"*="+P+`*(?:''|"")`)}),v.cssHas||Ne.push(":has"),Ne=Ne.length&&new RegExp(Ne.join("|")),zr=function(Ye,at){if(Ye===at)return j=!0,0;var xt=!Ye.compareDocumentPosition-!at.compareDocumentPosition;return xt||(xt=(Ye.ownerDocument||Ye)==(at.ownerDocument||at)?Ye.compareDocumentPosition(at):1,xt&1||!v.sortDetached&&at.compareDocumentPosition(Ye)===xt?Ye===J||Ye.ownerDocument==B&&Xn.contains(B,Ye)?-1:at===J||at.ownerDocument==B&&Xn.contains(B,at)?1:H?l.call(H,Ye)-l.call(H,at):0:xt&4?-1:1)}),J}Xn.matches=function(fe,Ee){return Xn(fe,null,null,Ee)},Xn.matchesSelector=function(fe,Ee){if(yl(fe),pe&&!ta[Ee+" "]&&(!Ne||!Ne.test(Ee)))try{var He=Qe.call(fe,Ee);if(He||v.disconnectedMatch||fe.document&&fe.document.nodeType!==11)return He}catch{ta(Ee,!0)}return Xn(Ee,J,null,[fe]).length>0},Xn.contains=function(fe,Ee){return(fe.ownerDocument||fe)!=J&&yl(fe),w.contains(fe,Ee)},Xn.attr=function(fe,Ee){(fe.ownerDocument||fe)!=J&&yl(fe);var He=A.attrHandle[Ee.toLowerCase()],Ye=He&&f.call(A.attrHandle,Ee.toLowerCase())?He(fe,Ee,!pe):void 0;return Ye!==void 0?Ye:fe.getAttribute(Ee)},Xn.error=function(fe){throw new Error("Syntax error, unrecognized expression: "+fe)},w.uniqueSort=function(fe){var Ee,He=[],Ye=0,at=0;if(j=!v.sortStable,H=!v.sortStable&&i.call(fe,0),E.call(fe,zr),j){for(;Ee=fe[at++];)Ee===fe[at]&&(Ye=He.push(at));for(;Ye--;)D.call(fe,He[Ye],1)}return H=null,fe},w.fn.uniqueSort=function(){return this.pushStack(w.uniqueSort(i.apply(this)))},A=w.expr={cacheLength:50,createPseudo:lo,match:Ko,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(fe){return fe[1]=fe[1].replace(Es,Is),fe[3]=(fe[3]||fe[4]||fe[5]||"").replace(Es,Is),fe[2]==="~="&&(fe[3]=" "+fe[3]+" "),fe.slice(0,4)},CHILD:function(fe){return fe[1]=fe[1].toLowerCase(),fe[1].slice(0,3)==="nth"?(fe[3]||Xn.error(fe[0]),fe[4]=+(fe[4]?fe[5]+(fe[6]||1):2*(fe[3]==="even"||fe[3]==="odd")),fe[5]=+(fe[7]+fe[8]||fe[3]==="odd")):fe[3]&&Xn.error(fe[0]),fe},PSEUDO:function(fe){var Ee,He=!fe[6]&&fe[2];return Ko.CHILD.test(fe[0])?null:(fe[3]?fe[2]=fe[4]||fe[5]||"":He&&Go.test(He)&&(Ee=hv(He,!0))&&(Ee=He.indexOf(")",He.length-Ee)-He.length)&&(fe[0]=fe[0].slice(0,Ee),fe[2]=He.slice(0,Ee)),fe.slice(0,3))}},filter:{TAG:function(fe){var Ee=fe.replace(Es,Is).toLowerCase();return fe==="*"?function(){return!0}:function(He){return M(He,Ee)}},CLASS:function(fe){var Ee=gn[fe+" "];return Ee||(Ee=new RegExp("(^|"+P+")"+fe+"("+P+"|$)"))&&gn(fe,function(He){return Ee.test(typeof He.className=="string"&&He.className||typeof He.getAttribute<"u"&&He.getAttribute("class")||"")})},ATTR:function(fe,Ee,He){return function(Ye){var at=Xn.attr(Ye,fe);return at==null?Ee==="!=":Ee?(at+="",Ee==="="?at===He:Ee==="!="?at!==He:Ee==="^="?He&&at.indexOf(He)===0:Ee==="*="?He&&at.indexOf(He)>-1:Ee==="$="?He&&at.slice(-He.length)===He:Ee==="~="?(" "+at.replace(Fn," ")+" ").indexOf(He)>-1:Ee==="|="?at===He||at.slice(0,He.length+1)===He+"-":!1):!0}},CHILD:function(fe,Ee,He,Ye,at){var xt=fe.slice(0,3)!=="nth",It=fe.slice(-4)!=="last",Ut=Ee==="of-type";return Ye===1&&at===0?function(Dt){return!!Dt.parentNode}:function(Dt,Dn,cn){var yn,Pn,on,lr,ja,ha=xt!==It?"nextSibling":"previousSibling",xi=Dt.parentNode,Uo=Ut&&Dt.nodeName.toLowerCase(),zf=!cn&&!Ut,xa=!1;if(xi){if(xt){for(;ha;){for(on=Dt;on=on[ha];)if(Ut?M(on,Uo):on.nodeType===1)return!1;ja=ha=fe==="only"&&!ja&&"nextSibling"}return!0}if(ja=[It?xi.firstChild:xi.lastChild],It&&zf){for(Pn=xi[it]||(xi[it]={}),yn=Pn[fe]||[],lr=yn[0]===We&&yn[1],xa=lr&&yn[2],on=lr&&xi.childNodes[lr];on=++lr&&on&&on[ha]||(xa=lr=0)||ja.pop();)if(on.nodeType===1&&++xa&&on===Dt){Pn[fe]=[We,lr,xa];break}}else if(zf&&(Pn=Dt[it]||(Dt[it]={}),yn=Pn[fe]||[],lr=yn[0]===We&&yn[1],xa=lr),xa===!1)for(;(on=++lr&&on&&on[ha]||(xa=lr=0)||ja.pop())&&!((Ut?M(on,Uo):on.nodeType===1)&&++xa&&(zf&&(Pn=on[it]||(on[it]={}),Pn[fe]=[We,xa]),on===Dt)););return xa-=at,xa===Ye||xa%Ye===0&&xa/Ye>=0}}},PSEUDO:function(fe,Ee){var He,Ye=A.pseudos[fe]||A.setFilters[fe.toLowerCase()]||Xn.error("unsupported pseudo: "+fe);return Ye[it]?Ye(Ee):Ye.length>1?(He=[fe,fe,"",Ee],A.setFilters.hasOwnProperty(fe.toLowerCase())?lo(function(at,xt){for(var It,Ut=Ye(at,Ee),Dt=Ut.length;Dt--;)It=l.call(at,Ut[Dt]),at[It]=!(xt[It]=Ut[Dt])}):function(at){return Ye(at,0,He)}):Ye}},pseudos:{not:lo(function(fe){var Ee=[],He=[],Ye=Uw(fe.replace(N,"$1"));return Ye[it]?lo(function(at,xt,It,Ut){for(var Dt,Dn=Ye(at,null,Ut,[]),cn=at.length;cn--;)(Dt=Dn[cn])&&(at[cn]=!(xt[cn]=Dt))}):function(at,xt,It){return Ee[0]=at,Ye(Ee,null,It,He),Ee[0]=null,!He.pop()}}),has:lo(function(fe){return function(Ee){return Xn(fe,Ee).length>0}}),contains:lo(function(fe){return fe=fe.replace(Es,Is),function(Ee){return(Ee.textContent||w.text(Ee)).indexOf(fe)>-1}}),lang:lo(function(fe){return dv.test(fe||"")||Xn.error("unsupported lang: "+fe),fe=fe.replace(Es,Is).toLowerCase(),function(Ee){var He;do if(He=pe?Ee.lang:Ee.getAttribute("xml:lang")||Ee.getAttribute("lang"))return He=He.toLowerCase(),He===fe||He.indexOf(fe+"-")===0;while((Ee=Ee.parentNode)&&Ee.nodeType===1);return!1}}),target:function(fe){var Ee=t.location&&t.location.hash;return Ee&&Ee.slice(1)===fe.id},root:function(fe){return fe===xe},focus:function(fe){return fe===Jq()&&J.hasFocus()&&!!(fe.type||fe.href||~fe.tabIndex)},enabled:ZD(!1),disabled:ZD(!0),checked:function(fe){return M(fe,"input")&&!!fe.checked||M(fe,"option")&&!!fe.selected},selected:function(fe){return fe.parentNode&&fe.parentNode.selectedIndex,fe.selected===!0},empty:function(fe){for(fe=fe.firstChild;fe;fe=fe.nextSibling)if(fe.nodeType<6)return!1;return!0},parent:function(fe){return!A.pseudos.empty(fe)},header:function(fe){return ml.test(fe.nodeName)},input:function(fe){return gl.test(fe.nodeName)},button:function(fe){return M(fe,"input")&&fe.type==="button"||M(fe,"button")},text:function(fe){var Ee;return M(fe,"input")&&fe.type==="text"&&((Ee=fe.getAttribute("type"))==null||Ee.toLowerCase()==="text")},first:Hu(function(){return[0]}),last:Hu(function(fe,Ee){return[Ee-1]}),eq:Hu(function(fe,Ee,He){return[He<0?He+Ee:He]}),even:Hu(function(fe,Ee){for(var He=0;He<Ee;He+=2)fe.push(He);return fe}),odd:Hu(function(fe,Ee){for(var He=1;He<Ee;He+=2)fe.push(He);return fe}),lt:Hu(function(fe,Ee,He){var Ye;for(He<0?Ye=He+Ee:He>Ee?Ye=Ee:Ye=He;--Ye>=0;)fe.push(Ye);return fe}),gt:Hu(function(fe,Ee,He){for(var Ye=He<0?He+Ee:He;++Ye<Ee;)fe.push(Ye);return fe})}},A.pseudos.nth=A.pseudos.eq;for(T in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})A.pseudos[T]=eX(T);for(T in{submit:!0,reset:!0})A.pseudos[T]=tX(T);function QD(){}QD.prototype=A.filters=A.pseudos,A.setFilters=new QD;function hv(fe,Ee){var He,Ye,at,xt,It,Ut,Dt,Dn=Vn[fe+" "];if(Dn)return Ee?0:Dn.slice(0);for(It=fe,Ut=[],Dt=A.preFilter;It;){(!He||(Ye=Mr.exec(It)))&&(Ye&&(It=It.slice(Ye[0].length)||It),Ut.push(at=[])),He=!1,(Ye=fv.exec(It))&&(He=Ye.shift(),at.push({value:He,type:Ye[0].replace(N," ")}),It=It.slice(He.length));for(xt in A.filter)(Ye=Ko[xt].exec(It))&&(!Dt[xt]||(Ye=Dt[xt](Ye)))&&(He=Ye.shift(),at.push({value:He,type:xt,matches:Ye}),It=It.slice(He.length));if(!He)break}return Ee?It.length:It?Xn.error(fe):Vn(fe,Ut).slice(0)}function Zm(fe){for(var Ee=0,He=fe.length,Ye="";Ee<He;Ee++)Ye+=fe[Ee].value;return Ye}function Qm(fe,Ee,He){var Ye=Ee.dir,at=Ee.next,xt=at||Ye,It=He&&xt==="parentNode",Ut=mt++;return Ee.first?function(Dt,Dn,cn){for(;Dt=Dt[Ye];)if(Dt.nodeType===1||It)return fe(Dt,Dn,cn);return!1}:function(Dt,Dn,cn){var yn,Pn,on=[We,Ut];if(cn){for(;Dt=Dt[Ye];)if((Dt.nodeType===1||It)&&fe(Dt,Dn,cn))return!0}else for(;Dt=Dt[Ye];)if(Dt.nodeType===1||It)if(Pn=Dt[it]||(Dt[it]={}),at&&M(Dt,at))Dt=Dt[Ye]||Dt;else{if((yn=Pn[xt])&&yn[0]===We&&yn[1]===Ut)return on[2]=yn[2];if(Pn[xt]=on,on[2]=fe(Dt,Dn,cn))return!0}return!1}}function Ww(fe){return fe.length>1?function(Ee,He,Ye){for(var at=fe.length;at--;)if(!fe[at](Ee,He,Ye))return!1;return!0}:fe[0]}function nX(fe,Ee,He){for(var Ye=0,at=Ee.length;Ye<at;Ye++)Xn(fe,Ee[Ye],He);return He}function Jm(fe,Ee,He,Ye,at){for(var xt,It=[],Ut=0,Dt=fe.length,Dn=Ee!=null;Ut<Dt;Ut++)(xt=fe[Ut])&&(!He||He(xt,Ye,at))&&(It.push(xt),Dn&&Ee.push(Ut));return It}function Gw(fe,Ee,He,Ye,at,xt){return Ye&&!Ye[it]&&(Ye=Gw(Ye)),at&&!at[it]&&(at=Gw(at,xt)),lo(function(It,Ut,Dt,Dn){var cn,yn,Pn,on,lr=[],ja=[],ha=Ut.length,xi=It||nX(Ee||"*",Dt.nodeType?[Dt]:Dt,[]),Uo=fe&&(It||!Ee)?Jm(xi,lr,fe,Dt,Dn):xi;if(He?(on=at||(It?fe:ha||Ye)?[]:Ut,He(Uo,on,Dt,Dn)):on=Uo,Ye)for(cn=Jm(on,ja),Ye(cn,[],Dt,Dn),yn=cn.length;yn--;)(Pn=cn[yn])&&(on[ja[yn]]=!(Uo[ja[yn]]=Pn));if(It){if(at||fe){if(at){for(cn=[],yn=on.length;yn--;)(Pn=on[yn])&&cn.push(Uo[yn]=Pn);at(null,on=[],cn,Dn)}for(yn=on.length;yn--;)(Pn=on[yn])&&(cn=at?l.call(It,Pn):lr[yn])>-1&&(It[cn]=!(Ut[cn]=Pn))}}else on=Jm(on===Ut?on.splice(ha,on.length):on),at?at(null,Ut,on,Dn):Y.apply(Ut,on)})}function Kw(fe){for(var Ee,He,Ye,at=fe.length,xt=A.relative[fe[0].type],It=xt||A.relative[" "],Ut=xt?1:0,Dt=Qm(function(yn){return yn===Ee},It,!0),Dn=Qm(function(yn){return l.call(Ee,yn)>-1},It,!0),cn=[function(yn,Pn,on){var lr=!xt&&(on||Pn!=O)||((Ee=Pn).nodeType?Dt(yn,Pn,on):Dn(yn,Pn,on));return Ee=null,lr}];Ut<at;Ut++)if(He=A.relative[fe[Ut].type])cn=[Qm(Ww(cn),He)];else{if(He=A.filter[fe[Ut].type].apply(null,fe[Ut].matches),He[it]){for(Ye=++Ut;Ye<at&&!A.relative[fe[Ye].type];Ye++);return Gw(Ut>1&&Ww(cn),Ut>1&&Zm(fe.slice(0,Ut-1).concat({value:fe[Ut-2].type===" "?"*":""})).replace(N,"$1"),He,Ut<Ye&&Kw(fe.slice(Ut,Ye)),Ye<at&&Kw(fe=fe.slice(Ye)),Ye<at&&Zm(fe))}cn.push(He)}return Ww(cn)}function rX(fe,Ee){var He=Ee.length>0,Ye=fe.length>0,at=function(xt,It,Ut,Dt,Dn){var cn,yn,Pn,on=0,lr="0",ja=xt&&[],ha=[],xi=O,Uo=xt||Ye&&A.find.TAG("*",Dn),zf=We+=xi==null?1:Math.random()||.1,xa=Uo.length;for(Dn&&(O=It==J||It||Dn);lr!==xa&&(cn=Uo[lr])!=null;lr++){if(Ye&&cn){for(yn=0,!It&&cn.ownerDocument!=J&&(yl(cn),Ut=!pe);Pn=fe[yn++];)if(Pn(cn,It||J,Ut)){Y.call(Dt,cn);break}Dn&&(We=zf)}He&&((cn=!Pn&&cn)&&on--,xt&&ja.push(cn))}if(on+=lr,He&&lr!==on){for(yn=0;Pn=Ee[yn++];)Pn(ja,ha,It,Ut);if(xt){if(on>0)for(;lr--;)ja[lr]||ha[lr]||(ha[lr]=I.call(Dt));ha=Jm(ha)}Y.apply(Dt,ha),Dn&&!xt&&ha.length>0&&on+Ee.length>1&&w.uniqueSort(Dt)}return Dn&&(We=zf,O=xi),ja};return He?lo(at):at}function Uw(fe,Ee){var He,Ye=[],at=[],xt=An[fe+" "];if(!xt){for(Ee||(Ee=hv(fe)),He=Ee.length;He--;)xt=Kw(Ee[He]),xt[it]?Ye.push(xt):at.push(xt);xt=An(fe,rX(at,Ye)),xt.selector=fe}return xt}function JD(fe,Ee,He,Ye){var at,xt,It,Ut,Dt,Dn=typeof fe=="function"&&fe,cn=!Ye&&hv(fe=Dn.selector||fe);if(He=He||[],cn.length===1){if(xt=cn[0]=cn[0].slice(0),xt.length>2&&(It=xt[0]).type==="ID"&&Ee.nodeType===9&&pe&&A.relative[xt[1].type]){if(Ee=(A.find.ID(It.matches[0].replace(Es,Is),Ee)||[])[0],Ee)Dn&&(Ee=Ee.parentNode);else return He;fe=fe.slice(xt.shift().value.length)}for(at=Ko.needsContext.test(fe)?0:xt.length;at--&&(It=xt[at],!A.relative[Ut=It.type]);)if((Dt=A.find[Ut])&&(Ye=Dt(It.matches[0].replace(Es,Is),zw.test(xt[0].type)&&Hw(Ee.parentNode)||Ee))){if(xt.splice(at,1),fe=Ye.length&&Zm(xt),!fe)return Y.apply(He,Ye),He;break}}return(Dn||Uw(fe,cn))(Ye,Ee,!pe,He,!Ee||zw.test(fe)&&Hw(Ee.parentNode)||Ee),He}v.sortStable=it.split("").sort(zr).join("")===it,yl(),v.sortDetached=Ff(function(fe){return fe.compareDocumentPosition(J.createElement("fieldset"))&1}),w.find=Xn,w.expr[":"]=w.expr.pseudos,w.unique=w.uniqueSort,Xn.compile=Uw,Xn.select=JD,Xn.setDocument=yl,Xn.tokenize=hv,Xn.escape=w.escapeSelector,Xn.getText=w.text,Xn.isXML=w.isXMLDoc,Xn.selectors=w.expr,Xn.support=w.support,Xn.uniqueSort=w.uniqueSort})();var L=function(T,A,O){for(var H=[],j=O!==void 0;(T=T[A])&&T.nodeType!==9;)if(T.nodeType===1){if(j&&w(T).is(O))break;H.push(T)}return H},G=function(T,A){for(var O=[];T;T=T.nextSibling)T.nodeType===1&&T!==A&&O.push(T);return O},q=w.expr.match.needsContext,Q=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function ie(T,A,O){return p(A)?w.grep(T,function(H,j){return!!A.call(H,j,H)!==O}):A.nodeType?w.grep(T,function(H){return H===A!==O}):typeof A!="string"?w.grep(T,function(H){return l.call(A,H)>-1!==O}):w.filter(A,T,O)}w.filter=function(T,A,O){var H=A[0];return O&&(T=":not("+T+")"),A.length===1&&H.nodeType===1?w.find.matchesSelector(H,T)?[H]:[]:w.find.matches(T,w.grep(A,function(j){return j.nodeType===1}))},w.fn.extend({find:function(T){var A,O,H=this.length,j=this;if(typeof T!="string")return this.pushStack(w(T).filter(function(){for(A=0;A<H;A++)if(w.contains(j[A],this))return!0}));for(O=this.pushStack([]),A=0;A<H;A++)w.find(T,j[A],O);return H>1?w.uniqueSort(O):O},filter:function(T){return this.pushStack(ie(this,T||[],!1))},not:function(T){return this.pushStack(ie(this,T||[],!0))},is:function(T){return!!ie(this,typeof T=="string"&&q.test(T)?w(T):T||[],!1).length}});var de,oe=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,se=w.fn.init=function(T,A,O){var H,j;if(!T)return this;if(O=O||de,typeof T=="string")if(T[0]==="<"&&T[T.length-1]===">"&&T.length>=3?H=[null,T,null]:H=oe.exec(T),H&&(H[1]||!A))if(H[1]){if(A=A instanceof w?A[0]:A,w.merge(this,w.parseHTML(H[1],A&&A.nodeType?A.ownerDocument||A:m,!0)),Q.test(H[1])&&w.isPlainObject(A))for(H in A)p(this[H])?this[H](A[H]):this.attr(H,A[H]);return this}else return j=m.getElementById(H[2]),j&&(this[0]=j,this.length=1),this;else return!A||A.jquery?(A||O).find(T):this.constructor(A).find(T);else{if(T.nodeType)return this[0]=T,this.length=1,this;if(p(T))return O.ready!==void 0?O.ready(T):T(w)}return w.makeArray(T,this)};se.prototype=w.fn,de=w(m);var le=/^(?:parents|prev(?:Until|All))/,ne={children:!0,contents:!0,next:!0,prev:!0};w.fn.extend({has:function(T){var A=w(T,this),O=A.length;return this.filter(function(){for(var H=0;H<O;H++)if(w.contains(this,A[H]))return!0})},closest:function(T,A){var O,H=0,j=this.length,Y=[],J=typeof T!="string"&&w(T);if(!q.test(T)){for(;H<j;H++)for(O=this[H];O&&O!==A;O=O.parentNode)if(O.nodeType<11&&(J?J.index(O)>-1:O.nodeType===1&&w.find.matchesSelector(O,T))){Y.push(O);break}}return this.pushStack(Y.length>1?w.uniqueSort(Y):Y)},index:function(T){return T?typeof T=="string"?l.call(w(T),this[0]):l.call(this,T.jquery?T[0]:T):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(T,A){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(T,A))))},addBack:function(T){return this.add(T==null?this.prevObject:this.prevObject.filter(T))}});function Ce(T,A){for(;(T=T[A])&&T.nodeType!==1;);return T}w.each({parent:function(T){var A=T.parentNode;return A&&A.nodeType!==11?A:null},parents:function(T){return L(T,"parentNode")},parentsUntil:function(T,A,O){return L(T,"parentNode",O)},next:function(T){return Ce(T,"nextSibling")},prev:function(T){return Ce(T,"previousSibling")},nextAll:function(T){return L(T,"nextSibling")},prevAll:function(T){return L(T,"previousSibling")},nextUntil:function(T,A,O){return L(T,"nextSibling",O)},prevUntil:function(T,A,O){return L(T,"previousSibling",O)},siblings:function(T){return G((T.parentNode||{}).firstChild,T)},children:function(T){return G(T.firstChild)},contents:function(T){return T.contentDocument!=null&&a(T.contentDocument)?T.contentDocument:(M(T,"template")&&(T=T.content||T),w.merge([],T.childNodes))}},function(T,A){w.fn[T]=function(O,H){var j=w.map(this,A,O);return T.slice(-5)!=="Until"&&(H=O),H&&typeof H=="string"&&(j=w.filter(H,j)),this.length>1&&(ne[T]||w.uniqueSort(j),le.test(T)&&j.reverse()),this.pushStack(j)}});var Te=/[^\x20\t\r\n\f]+/g;function he(T){var A={};return w.each(T.match(Te)||[],function(O,H){A[H]=!0}),A}w.Callbacks=function(T){T=typeof T=="string"?he(T):w.extend({},T);var A,O,H,j,Y=[],J=[],xe=-1,pe=function(){for(j=j||T.once,H=A=!0;J.length;xe=-1)for(O=J.shift();++xe<Y.length;)Y[xe].apply(O[0],O[1])===!1&&T.stopOnFalse&&(xe=Y.length,O=!1);T.memory||(O=!1),A=!1,j&&(O?Y=[]:Y="")},Ne={add:function(){return Y&&(O&&!A&&(xe=Y.length-1,J.push(O)),function Qe(it){w.each(it,function(We,mt){p(mt)?(!T.unique||!Ne.has(mt))&&Y.push(mt):mt&&mt.length&&S(mt)!=="string"&&Qe(mt)})}(arguments),O&&!A&&pe()),this},remove:function(){return w.each(arguments,function(Qe,it){for(var We;(We=w.inArray(it,Y,We))>-1;)Y.splice(We,1),We<=xe&&xe--}),this},has:function(Qe){return Qe?w.inArray(Qe,Y)>-1:Y.length>0},empty:function(){return Y&&(Y=[]),this},disable:function(){return j=J=[],Y=O="",this},disabled:function(){return!Y},lock:function(){return j=J=[],!O&&!A&&(Y=O=""),this},locked:function(){return!!j},fireWith:function(Qe,it){return j||(it=it||[],it=[Qe,it.slice?it.slice():it],J.push(it),A||pe()),this},fire:function(){return Ne.fireWith(this,arguments),this},fired:function(){return!!H}};return Ne};function X(T){return T}function ae(T){throw T}function ge(T,A,O,H){var j;try{T&&p(j=T.promise)?j.call(T).done(A).fail(O):T&&p(j=T.then)?j.call(T,A,O):A.apply(void 0,[T].slice(H))}catch(Y){O.apply(void 0,[Y])}}w.extend({Deferred:function(T){var A=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],O="pending",H={state:function(){return O},always:function(){return j.done(arguments).fail(arguments),this},catch:function(Y){return H.then(null,Y)},pipe:function(){var Y=arguments;return w.Deferred(function(J){w.each(A,function(xe,pe){var Ne=p(Y[pe[4]])&&Y[pe[4]];j[pe[1]](function(){var Qe=Ne&&Ne.apply(this,arguments);Qe&&p(Qe.promise)?Qe.promise().progress(J.notify).done(J.resolve).fail(J.reject):J[pe[0]+"With"](this,Ne?[Qe]:arguments)})}),Y=null}).promise()},then:function(Y,J,xe){var pe=0;function Ne(Qe,it,We,mt){return function(){var gn=this,Vn=arguments,An=function(){var zr,Ho;if(!(Qe<pe)){if(zr=We.apply(gn,Vn),zr===it.promise())throw new TypeError("Thenable self-resolution");Ho=zr&&(typeof zr=="object"||typeof zr=="function")&&zr.then,p(Ho)?mt?Ho.call(zr,Ne(pe,it,X,mt),Ne(pe,it,ae,mt)):(pe++,Ho.call(zr,Ne(pe,it,X,mt),Ne(pe,it,ae,mt),Ne(pe,it,X,it.notifyWith))):(We!==X&&(gn=void 0,Vn=[zr]),(mt||it.resolveWith)(gn,Vn))}},ta=mt?An:function(){try{An()}catch(zr){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(zr,ta.error),Qe+1>=pe&&(We!==ae&&(gn=void 0,Vn=[zr]),it.rejectWith(gn,Vn))}};Qe?ta():(w.Deferred.getErrorHook?ta.error=w.Deferred.getErrorHook():w.Deferred.getStackHook&&(ta.error=w.Deferred.getStackHook()),t.setTimeout(ta))}}return w.Deferred(function(Qe){A[0][3].add(Ne(0,Qe,p(xe)?xe:X,Qe.notifyWith)),A[1][3].add(Ne(0,Qe,p(Y)?Y:X)),A[2][3].add(Ne(0,Qe,p(J)?J:ae))}).promise()},promise:function(Y){return Y!=null?w.extend(Y,H):H}},j={};return w.each(A,function(Y,J){var xe=J[2],pe=J[5];H[J[1]]=xe.add,pe&&xe.add(function(){O=pe},A[3-Y][2].disable,A[3-Y][3].disable,A[0][2].lock,A[0][3].lock),xe.add(J[3].fire),j[J[0]]=function(){return j[J[0]+"With"](this===j?void 0:this,arguments),this},j[J[0]+"With"]=xe.fireWith}),H.promise(j),T&&T.call(j,j),j},when:function(T){var A=arguments.length,O=A,H=Array(O),j=i.call(arguments),Y=w.Deferred(),J=function(xe){return function(pe){H[xe]=this,j[xe]=arguments.length>1?i.call(arguments):pe,--A||Y.resolveWith(H,j)}};if(A<=1&&(ge(T,Y.done(J(O)).resolve,Y.reject,!A),Y.state()==="pending"||p(j[O]&&j[O].then)))return Y.then();for(;O--;)ge(j[O],J(O),Y.reject);return Y.promise()}});var ke=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(T,A){t.console&&t.console.warn&&T&&ke.test(T.name)&&t.console.warn("jQuery.Deferred exception: "+T.message,T.stack,A)},w.readyException=function(T){t.setTimeout(function(){throw T})};var Pe=w.Deferred();w.fn.ready=function(T){return Pe.then(T).catch(function(A){w.readyException(A)}),this},w.extend({isReady:!1,readyWait:1,ready:function(T){(T===!0?--w.readyWait:w.isReady)||(w.isReady=!0,!(T!==!0&&--w.readyWait>0)&&Pe.resolveWith(m,[w]))}}),w.ready.then=Pe.then;function Me(){m.removeEventListener("DOMContentLoaded",Me),t.removeEventListener("load",Me),w.ready()}m.readyState==="complete"||m.readyState!=="loading"&&!m.documentElement.doScroll?t.setTimeout(w.ready):(m.addEventListener("DOMContentLoaded",Me),t.addEventListener("load",Me));var ze=function(T,A,O,H,j,Y,J){var xe=0,pe=T.length,Ne=O==null;if(S(O)==="object"){j=!0;for(xe in O)ze(T,A,xe,O[xe],!0,Y,J)}else if(H!==void 0&&(j=!0,p(H)||(J=!0),Ne&&(J?(A.call(T,H),A=null):(Ne=A,A=function(Qe,it,We){return Ne.call(w(Qe),We)})),A))for(;xe<pe;xe++)A(T[xe],O,J?H:H.call(T[xe],xe,A(T[xe],O)));return j?T:Ne?A.call(T):pe?A(T[0],O):Y},Oe=/^-ms-/,Le=/-([a-z])/g;function Ve(T,A){return A.toUpperCase()}function qe(T){return T.replace(Oe,"ms-").replace(Le,Ve)}var nt=function(T){return T.nodeType===1||T.nodeType===9||!+T.nodeType};function ot(){this.expando=w.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(T){var A=T[this.expando];return A||(A={},nt(T)&&(T.nodeType?T[this.expando]=A:Object.defineProperty(T,this.expando,{value:A,configurable:!0}))),A},set:function(T,A,O){var H,j=this.cache(T);if(typeof A=="string")j[qe(A)]=O;else for(H in A)j[qe(H)]=A[H];return j},get:function(T,A){return A===void 0?this.cache(T):T[this.expando]&&T[this.expando][qe(A)]},access:function(T,A,O){return A===void 0||A&&typeof A=="string"&&O===void 0?this.get(T,A):(this.set(T,A,O),O!==void 0?O:A)},remove:function(T,A){var O,H=T[this.expando];if(H!==void 0){if(A!==void 0)for(Array.isArray(A)?A=A.map(qe):(A=qe(A),A=A in H?[A]:A.match(Te)||[]),O=A.length;O--;)delete H[A[O]];(A===void 0||w.isEmptyObject(H))&&(T.nodeType?T[this.expando]=void 0:delete T[this.expando])}},hasData:function(T){var A=T[this.expando];return A!==void 0&&!w.isEmptyObject(A)}};var _e=new ot,Je=new ot,St=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Rt=/[A-Z]/g;function Kt(T){return T==="true"?!0:T==="false"?!1:T==="null"?null:T===+T+""?+T:St.test(T)?JSON.parse(T):T}function gt(T,A,O){var H;if(O===void 0&&T.nodeType===1)if(H="data-"+A.replace(Rt,"-$&").toLowerCase(),O=T.getAttribute(H),typeof O=="string"){try{O=Kt(O)}catch{}Je.set(T,A,O)}else O=void 0;return O}w.extend({hasData:function(T){return Je.hasData(T)||_e.hasData(T)},data:function(T,A,O){return Je.access(T,A,O)},removeData:function(T,A){Je.remove(T,A)},_data:function(T,A,O){return _e.access(T,A,O)},_removeData:function(T,A){_e.remove(T,A)}}),w.fn.extend({data:function(T,A){var O,H,j,Y=this[0],J=Y&&Y.attributes;if(T===void 0){if(this.length&&(j=Je.get(Y),Y.nodeType===1&&!_e.get(Y,"hasDataAttrs"))){for(O=J.length;O--;)J[O]&&(H=J[O].name,H.indexOf("data-")===0&&(H=qe(H.slice(5)),gt(Y,H,j[H])));_e.set(Y,"hasDataAttrs",!0)}return j}return typeof T=="object"?this.each(function(){Je.set(this,T)}):ze(this,function(xe){var pe;if(Y&&xe===void 0)return pe=Je.get(Y,T),pe!==void 0||(pe=gt(Y,T),pe!==void 0)?pe:void 0;this.each(function(){Je.set(this,T,xe)})},null,A,arguments.length>1,null,!0)},removeData:function(T){return this.each(function(){Je.remove(this,T)})}}),w.extend({queue:function(T,A,O){var H;if(T)return A=(A||"fx")+"queue",H=_e.get(T,A),O&&(!H||Array.isArray(O)?H=_e.access(T,A,w.makeArray(O)):H.push(O)),H||[]},dequeue:function(T,A){A=A||"fx";var O=w.queue(T,A),H=O.length,j=O.shift(),Y=w._queueHooks(T,A),J=function(){w.dequeue(T,A)};j==="inprogress"&&(j=O.shift(),H--),j&&(A==="fx"&&O.unshift("inprogress"),delete Y.stop,j.call(T,J,Y)),!H&&Y&&Y.empty.fire()},_queueHooks:function(T,A){var O=A+"queueHooks";return _e.get(T,O)||_e.access(T,O,{empty:w.Callbacks("once memory").add(function(){_e.remove(T,[A+"queue",O])})})}}),w.fn.extend({queue:function(T,A){var O=2;return typeof T!="string"&&(A=T,T="fx",O--),arguments.length<O?w.queue(this[0],T):A===void 0?this:this.each(function(){var H=w.queue(this,T,A);w._queueHooks(this,T),T==="fx"&&H[0]!=="inprogress"&&w.dequeue(this,T)})},dequeue:function(T){return this.each(function(){w.dequeue(this,T)})},clearQueue:function(T){return this.queue(T||"fx",[])},promise:function(T,A){var O,H=1,j=w.Deferred(),Y=this,J=this.length,xe=function(){--H||j.resolveWith(Y,[Y])};for(typeof T!="string"&&(A=T,T=void 0),T=T||"fx";J--;)O=_e.get(Y[J],T+"queueHooks"),O&&O.empty&&(H++,O.empty.add(xe));return xe(),j.promise(A)}});var Ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,we=new RegExp("^(?:([+-])=|)("+Ie+")([a-z%]*)$","i"),ve=["Top","Right","Bottom","Left"],$e=m.documentElement,ue=function(T){return w.contains(T.ownerDocument,T)},rt={composed:!0};$e.getRootNode&&(ue=function(T){return w.contains(T.ownerDocument,T)||T.getRootNode(rt)===T.ownerDocument});var Ct=function(T,A){return T=A||T,T.style.display==="none"||T.style.display===""&&ue(T)&&w.css(T,"display")==="none"};function jt(T,A,O,H){var j,Y,J=20,xe=H?function(){return H.cur()}:function(){return w.css(T,A,"")},pe=xe(),Ne=O&&O[3]||(w.cssNumber[A]?"":"px"),Qe=T.nodeType&&(w.cssNumber[A]||Ne!=="px"&&+pe)&&we.exec(w.css(T,A));if(Qe&&Qe[3]!==Ne){for(pe=pe/2,Ne=Ne||Qe[3],Qe=+pe||1;J--;)w.style(T,A,Qe+Ne),(1-Y)*(1-(Y=xe()/pe||.5))<=0&&(J=0),Qe=Qe/Y;Qe=Qe*2,w.style(T,A,Qe+Ne),O=O||[]}return O&&(Qe=+Qe||+pe||0,j=O[1]?Qe+(O[1]+1)*O[2]:+O[2],H&&(H.unit=Ne,H.start=Qe,H.end=j)),j}var dr={};function kr(T){var A,O=T.ownerDocument,H=T.nodeName,j=dr[H];return j||(A=O.body.appendChild(O.createElement(H)),j=w.css(A,"display"),A.parentNode.removeChild(A),j==="none"&&(j="block"),dr[H]=j,j)}function Ir(T,A){for(var O,H,j=[],Y=0,J=T.length;Y<J;Y++)H=T[Y],H.style&&(O=H.style.display,A?(O==="none"&&(j[Y]=_e.get(H,"display")||null,j[Y]||(H.style.display="")),H.style.display===""&&Ct(H)&&(j[Y]=kr(H))):O!=="none"&&(j[Y]="none",_e.set(H,"display",O)));for(Y=0;Y<J;Y++)j[Y]!=null&&(T[Y].style.display=j[Y]);return T}w.fn.extend({show:function(){return Ir(this,!0)},hide:function(){return Ir(this)},toggle:function(T){return typeof T=="boolean"?T?this.show():this.hide():this.each(function(){Ct(this)?w(this).show():w(this).hide()})}});var yr=/^(?:checkbox|radio)$/i,De=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,tt=/^$|^module$|\/(?:java|ecma)script/i;(function(){var T=m.createDocumentFragment(),A=T.appendChild(m.createElement("div")),O=m.createElement("input");O.setAttribute("type","radio"),O.setAttribute("checked","checked"),O.setAttribute("name","t"),A.appendChild(O),v.checkClone=A.cloneNode(!0).cloneNode(!0).lastChild.checked,A.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!A.cloneNode(!0).lastChild.defaultValue,A.innerHTML="<option></option>",v.option=!!A.lastChild})();var be={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,v.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);function Ze(T,A){var O;return typeof T.getElementsByTagName<"u"?O=T.getElementsByTagName(A||"*"):typeof T.querySelectorAll<"u"?O=T.querySelectorAll(A||"*"):O=[],A===void 0||A&&M(T,A)?w.merge([T],O):O}function Wt(T,A){for(var O=0,H=T.length;O<H;O++)_e.set(T[O],"globalEval",!A||_e.get(A[O],"globalEval"))}var hn=/<|&#?\w+;/;function br(T,A,O,H,j){for(var Y,J,xe,pe,Ne,Qe,it=A.createDocumentFragment(),We=[],mt=0,gn=T.length;mt<gn;mt++)if(Y=T[mt],Y||Y===0)if(S(Y)==="object")w.merge(We,Y.nodeType?[Y]:Y);else if(!hn.test(Y))We.push(A.createTextNode(Y));else{for(J=J||it.appendChild(A.createElement("div")),xe=(De.exec(Y)||["",""])[1].toLowerCase(),pe=be[xe]||be._default,J.innerHTML=pe[1]+w.htmlPrefilter(Y)+pe[2],Qe=pe[0];Qe--;)J=J.lastChild;w.merge(We,J.childNodes),J=it.firstChild,J.textContent=""}for(it.textContent="",mt=0;Y=We[mt++];){if(H&&w.inArray(Y,H)>-1){j&&j.push(Y);continue}if(Ne=ue(Y),J=Ze(it.appendChild(Y),"script"),Ne&&Wt(J),O)for(Qe=0;Y=J[Qe++];)tt.test(Y.type||"")&&O.push(Y)}return it}var _r=/^([^.]*)(?:\.(.+)|)/;function wr(){return!0}function Sr(){return!1}function oo(T,A,O,H,j,Y){var J,xe;if(typeof A=="object"){typeof O!="string"&&(H=H||O,O=void 0);for(xe in A)oo(T,xe,O,H,A[xe],Y);return T}if(H==null&&j==null?(j=O,H=O=void 0):j==null&&(typeof O=="string"?(j=H,H=void 0):(j=H,H=O,O=void 0)),j===!1)j=Sr;else if(!j)return T;return Y===1&&(J=j,j=function(pe){return w().off(pe),J.apply(this,arguments)},j.guid=J.guid||(J.guid=w.guid++)),T.each(function(){w.event.add(this,A,j,H,O)})}w.event={global:{},add:function(T,A,O,H,j){var Y,J,xe,pe,Ne,Qe,it,We,mt,gn,Vn,An=_e.get(T);if(nt(T))for(O.handler&&(Y=O,O=Y.handler,j=Y.selector),j&&w.find.matchesSelector($e,j),O.guid||(O.guid=w.guid++),(pe=An.events)||(pe=An.events=Object.create(null)),(J=An.handle)||(J=An.handle=function(ta){return typeof w<"u"&&w.event.triggered!==ta.type?w.event.dispatch.apply(T,arguments):void 0}),A=(A||"").match(Te)||[""],Ne=A.length;Ne--;)xe=_r.exec(A[Ne])||[],mt=Vn=xe[1],gn=(xe[2]||"").split(".").sort(),mt&&(it=w.event.special[mt]||{},mt=(j?it.delegateType:it.bindType)||mt,it=w.event.special[mt]||{},Qe=w.extend({type:mt,origType:Vn,data:H,handler:O,guid:O.guid,selector:j,needsContext:j&&w.expr.match.needsContext.test(j),namespace:gn.join(".")},Y),(We=pe[mt])||(We=pe[mt]=[],We.delegateCount=0,(!it.setup||it.setup.call(T,H,gn,J)===!1)&&T.addEventListener&&T.addEventListener(mt,J)),it.add&&(it.add.call(T,Qe),Qe.handler.guid||(Qe.handler.guid=O.guid)),j?We.splice(We.delegateCount++,0,Qe):We.push(Qe),w.event.global[mt]=!0)},remove:function(T,A,O,H,j){var Y,J,xe,pe,Ne,Qe,it,We,mt,gn,Vn,An=_e.hasData(T)&&_e.get(T);if(!(!An||!(pe=An.events))){for(A=(A||"").match(Te)||[""],Ne=A.length;Ne--;){if(xe=_r.exec(A[Ne])||[],mt=Vn=xe[1],gn=(xe[2]||"").split(".").sort(),!mt){for(mt in pe)w.event.remove(T,mt+A[Ne],O,H,!0);continue}for(it=w.event.special[mt]||{},mt=(H?it.delegateType:it.bindType)||mt,We=pe[mt]||[],xe=xe[2]&&new RegExp("(^|\\.)"+gn.join("\\.(?:.*\\.|)")+"(\\.|$)"),J=Y=We.length;Y--;)Qe=We[Y],(j||Vn===Qe.origType)&&(!O||O.guid===Qe.guid)&&(!xe||xe.test(Qe.namespace))&&(!H||H===Qe.selector||H==="**"&&Qe.selector)&&(We.splice(Y,1),Qe.selector&&We.delegateCount--,it.remove&&it.remove.call(T,Qe));J&&!We.length&&((!it.teardown||it.teardown.call(T,gn,An.handle)===!1)&&w.removeEvent(T,mt,An.handle),delete pe[mt])}w.isEmptyObject(pe)&&_e.remove(T,"handle events")}},dispatch:function(T){var A,O,H,j,Y,J,xe=new Array(arguments.length),pe=w.event.fix(T),Ne=(_e.get(this,"events")||Object.create(null))[pe.type]||[],Qe=w.event.special[pe.type]||{};for(xe[0]=pe,A=1;A<arguments.length;A++)xe[A]=arguments[A];if(pe.delegateTarget=this,!(Qe.preDispatch&&Qe.preDispatch.call(this,pe)===!1)){for(J=w.event.handlers.call(this,pe,Ne),A=0;(j=J[A++])&&!pe.isPropagationStopped();)for(pe.currentTarget=j.elem,O=0;(Y=j.handlers[O++])&&!pe.isImmediatePropagationStopped();)(!pe.rnamespace||Y.namespace===!1||pe.rnamespace.test(Y.namespace))&&(pe.handleObj=Y,pe.data=Y.data,H=((w.event.special[Y.origType]||{}).handle||Y.handler).apply(j.elem,xe),H!==void 0&&(pe.result=H)===!1&&(pe.preventDefault(),pe.stopPropagation()));return Qe.postDispatch&&Qe.postDispatch.call(this,pe),pe.result}},handlers:function(T,A){var O,H,j,Y,J,xe=[],pe=A.delegateCount,Ne=T.target;if(pe&&Ne.nodeType&&!(T.type==="click"&&T.button>=1)){for(;Ne!==this;Ne=Ne.parentNode||this)if(Ne.nodeType===1&&!(T.type==="click"&&Ne.disabled===!0)){for(Y=[],J={},O=0;O<pe;O++)H=A[O],j=H.selector+" ",J[j]===void 0&&(J[j]=H.needsContext?w(j,this).index(Ne)>-1:w.find(j,this,null,[Ne]).length),J[j]&&Y.push(H);Y.length&&xe.push({elem:Ne,handlers:Y})}}return Ne=this,pe<A.length&&xe.push({elem:Ne,handlers:A.slice(pe)}),xe},addProp:function(T,A){Object.defineProperty(w.Event.prototype,T,{enumerable:!0,configurable:!0,get:p(A)?function(){if(this.originalEvent)return A(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[T]},set:function(O){Object.defineProperty(this,T,{enumerable:!0,configurable:!0,writable:!0,value:O})}})},fix:function(T){return T[w.expando]?T:new w.Event(T)},special:{load:{noBubble:!0},click:{setup:function(T){var A=this||T;return yr.test(A.type)&&A.click&&M(A,"input")&&Um(A,"click",!0),!1},trigger:function(T){var A=this||T;return yr.test(A.type)&&A.click&&M(A,"input")&&Um(A,"click"),!0},_default:function(T){var A=T.target;return yr.test(A.type)&&A.click&&M(A,"input")&&_e.get(A,"click")||M(A,"a")}},beforeunload:{postDispatch:function(T){T.result!==void 0&&T.originalEvent&&(T.originalEvent.returnValue=T.result)}}}};function Um(T,A,O){if(!O){_e.get(T,A)===void 0&&w.event.add(T,A,wr);return}_e.set(T,A,!1),w.event.add(T,A,{namespace:!1,handler:function(H){var j,Y=_e.get(this,A);if(H.isTrigger&1&&this[A]){if(Y)(w.event.special[A]||{}).delegateType&&H.stopPropagation();else if(Y=i.call(arguments),_e.set(this,A,Y),this[A](),j=_e.get(this,A),_e.set(this,A,!1),Y!==j)return H.stopImmediatePropagation(),H.preventDefault(),j}else Y&&(_e.set(this,A,w.event.trigger(Y[0],Y.slice(1),this)),H.stopPropagation(),H.isImmediatePropagationStopped=wr)}})}w.removeEvent=function(T,A,O){T.removeEventListener&&T.removeEventListener(A,O)},w.Event=function(T,A){if(!(this instanceof w.Event))return new w.Event(T,A);T&&T.type?(this.originalEvent=T,this.type=T.type,this.isDefaultPrevented=T.defaultPrevented||T.defaultPrevented===void 0&&T.returnValue===!1?wr:Sr,this.target=T.target&&T.target.nodeType===3?T.target.parentNode:T.target,this.currentTarget=T.currentTarget,this.relatedTarget=T.relatedTarget):this.type=T,A&&w.extend(this,A),this.timeStamp=T&&T.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Sr,isPropagationStopped:Sr,isImmediatePropagationStopped:Sr,isSimulated:!1,preventDefault:function(){var T=this.originalEvent;this.isDefaultPrevented=wr,T&&!this.isSimulated&&T.preventDefault()},stopPropagation:function(){var T=this.originalEvent;this.isPropagationStopped=wr,T&&!this.isSimulated&&T.stopPropagation()},stopImmediatePropagation:function(){var T=this.originalEvent;this.isImmediatePropagationStopped=wr,T&&!this.isSimulated&&T.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(T,A){function O(H){if(m.documentMode){var j=_e.get(this,"handle"),Y=w.event.fix(H);Y.type=H.type==="focusin"?"focus":"blur",Y.isSimulated=!0,j(H),Y.target===Y.currentTarget&&j(Y)}else w.event.simulate(A,H.target,w.event.fix(H))}w.event.special[T]={setup:function(){var H;if(Um(this,T,!0),m.documentMode)H=_e.get(this,A),H||this.addEventListener(A,O),_e.set(this,A,(H||0)+1);else return!1},trigger:function(){return Um(this,T),!0},teardown:function(){var H;if(m.documentMode)H=_e.get(this,A)-1,H?_e.set(this,A,H):(this.removeEventListener(A,O),_e.remove(this,A));else return!1},_default:function(H){return _e.get(H.target,T)},delegateType:A},w.event.special[A]={setup:function(){var H=this.ownerDocument||this.document||this,j=m.documentMode?this:H,Y=_e.get(j,A);Y||(m.documentMode?this.addEventListener(A,O):H.addEventListener(T,O,!0)),_e.set(j,A,(Y||0)+1)},teardown:function(){var H=this.ownerDocument||this.document||this,j=m.documentMode?this:H,Y=_e.get(j,A)-1;Y?_e.set(j,A,Y):(m.documentMode?this.removeEventListener(A,O):H.removeEventListener(T,O,!0),_e.remove(j,A))}}}),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(T,A){w.event.special[T]={delegateType:A,bindType:A,handle:function(O){var H,j=this,Y=O.relatedTarget,J=O.handleObj;return(!Y||Y!==j&&!w.contains(j,Y))&&(O.type=J.origType,H=J.handler.apply(this,arguments),O.type=A),H}}}),w.fn.extend({on:function(T,A,O,H){return oo(this,T,A,O,H)},one:function(T,A,O,H){return oo(this,T,A,O,H,1)},off:function(T,A,O){var H,j;if(T&&T.preventDefault&&T.handleObj)return H=T.handleObj,w(T.delegateTarget).off(H.namespace?H.origType+"."+H.namespace:H.origType,H.selector,H.handler),this;if(typeof T=="object"){for(j in T)this.off(j,A,T[j]);return this}return(A===!1||typeof A=="function")&&(O=A,A=void 0),O===!1&&(O=Sr),this.each(function(){w.event.remove(this,T,O,A)})}});var yq=/<script|<style|<link/i,bq=/checked\s*(?:[^=]|=\s*.checked.)/i,_q=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function AD(T,A){return M(T,"table")&&M(A.nodeType!==11?A:A.firstChild,"tr")&&w(T).children("tbody")[0]||T}function wq(T){return T.type=(T.getAttribute("type")!==null)+"/"+T.type,T}function Sq(T){return(T.type||"").slice(0,5)==="true/"?T.type=T.type.slice(5):T.removeAttribute("type"),T}function ED(T,A){var O,H,j,Y,J,xe,pe;if(A.nodeType===1){if(_e.hasData(T)&&(Y=_e.get(T),pe=Y.events,pe)){_e.remove(A,"handle events");for(j in pe)for(O=0,H=pe[j].length;O<H;O++)w.event.add(A,j,pe[j][O])}Je.hasData(T)&&(J=Je.access(T),xe=w.extend({},J),Je.set(A,xe))}}function Cq(T,A){var O=A.nodeName.toLowerCase();O==="input"&&yr.test(T.type)?A.checked=T.checked:(O==="input"||O==="textarea")&&(A.defaultValue=T.defaultValue)}function Bf(T,A,O,H){A=o(A);var j,Y,J,xe,pe,Ne,Qe=0,it=T.length,We=it-1,mt=A[0],gn=p(mt);if(gn||it>1&&typeof mt=="string"&&!v.checkClone&&bq.test(mt))return T.each(function(Vn){var An=T.eq(Vn);gn&&(A[0]=mt.call(this,Vn,An.html())),Bf(An,A,O,H)});if(it&&(j=br(A,T[0].ownerDocument,!1,T,H),Y=j.firstChild,j.childNodes.length===1&&(j=Y),Y||H)){for(J=w.map(Ze(j,"script"),wq),xe=J.length;Qe<it;Qe++)pe=j,Qe!==We&&(pe=w.clone(pe,!0,!0),xe&&w.merge(J,Ze(pe,"script"))),O.call(T[Qe],pe,Qe);if(xe)for(Ne=J[J.length-1].ownerDocument,w.map(J,Sq),Qe=0;Qe<xe;Qe++)pe=J[Qe],tt.test(pe.type||"")&&!_e.access(pe,"globalEval")&&w.contains(Ne,pe)&&(pe.src&&(pe.type||"").toLowerCase()!=="module"?w._evalUrl&&!pe.noModule&&w._evalUrl(pe.src,{nonce:pe.nonce||pe.getAttribute("nonce")},Ne):_(pe.textContent.replace(_q,""),pe,Ne))}return T}function ID(T,A,O){for(var H,j=A?w.filter(A,T):T,Y=0;(H=j[Y])!=null;Y++)!O&&H.nodeType===1&&w.cleanData(Ze(H)),H.parentNode&&(O&&ue(H)&&Wt(Ze(H,"script")),H.parentNode.removeChild(H));return T}w.extend({htmlPrefilter:function(T){return T},clone:function(T,A,O){var H,j,Y,J,xe=T.cloneNode(!0),pe=ue(T);if(!v.noCloneChecked&&(T.nodeType===1||T.nodeType===11)&&!w.isXMLDoc(T))for(J=Ze(xe),Y=Ze(T),H=0,j=Y.length;H<j;H++)Cq(Y[H],J[H]);if(A)if(O)for(Y=Y||Ze(T),J=J||Ze(xe),H=0,j=Y.length;H<j;H++)ED(Y[H],J[H]);else ED(T,xe);return J=Ze(xe,"script"),J.length>0&&Wt(J,!pe&&Ze(T,"script")),xe},cleanData:function(T){for(var A,O,H,j=w.event.special,Y=0;(O=T[Y])!==void 0;Y++)if(nt(O)){if(A=O[_e.expando]){if(A.events)for(H in A.events)j[H]?w.event.remove(O,H):w.removeEvent(O,H,A.handle);O[_e.expando]=void 0}O[Je.expando]&&(O[Je.expando]=void 0)}}}),w.fn.extend({detach:function(T){return ID(this,T,!0)},remove:function(T){return ID(this,T)},text:function(T){return ze(this,function(A){return A===void 0?w.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=A)})},null,T,arguments.length)},append:function(){return Bf(this,arguments,function(T){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var A=AD(this,T);A.appendChild(T)}})},prepend:function(){return Bf(this,arguments,function(T){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var A=AD(this,T);A.insertBefore(T,A.firstChild)}})},before:function(){return Bf(this,arguments,function(T){this.parentNode&&this.parentNode.insertBefore(T,this)})},after:function(){return Bf(this,arguments,function(T){this.parentNode&&this.parentNode.insertBefore(T,this.nextSibling)})},empty:function(){for(var T,A=0;(T=this[A])!=null;A++)T.nodeType===1&&(w.cleanData(Ze(T,!1)),T.textContent="");return this},clone:function(T,A){return T=T??!1,A=A??T,this.map(function(){return w.clone(this,T,A)})},html:function(T){return ze(this,function(A){var O=this[0]||{},H=0,j=this.length;if(A===void 0&&O.nodeType===1)return O.innerHTML;if(typeof A=="string"&&!yq.test(A)&&!be[(De.exec(A)||["",""])[1].toLowerCase()]){A=w.htmlPrefilter(A);try{for(;H<j;H++)O=this[H]||{},O.nodeType===1&&(w.cleanData(Ze(O,!1)),O.innerHTML=A);O=0}catch{}}O&&this.empty().append(A)},null,T,arguments.length)},replaceWith:function(){var T=[];return Bf(this,arguments,function(A){var O=this.parentNode;w.inArray(this,T)<0&&(w.cleanData(Ze(this)),O&&O.replaceChild(A,this))},T)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(T,A){w.fn[T]=function(O){for(var H,j=[],Y=w(O),J=Y.length-1,xe=0;xe<=J;xe++)H=xe===J?this:this.clone(!0),w(Y[xe])[A](H),s.apply(j,H.get());return this.pushStack(j)}});var Aw=new RegExp("^("+Ie+")(?!px)[a-z%]+$","i"),Ew=/^--/,jm=function(T){var A=T.ownerDocument.defaultView;return(!A||!A.opener)&&(A=t),A.getComputedStyle(T)},DD=function(T,A,O){var H,j,Y={};for(j in A)Y[j]=T.style[j],T.style[j]=A[j];H=O.call(T);for(j in A)T.style[j]=Y[j];return H},xq=new RegExp(ve.join("|"),"i");(function(){function T(){if(Ne){pe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Ne.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",$e.appendChild(pe).appendChild(Ne);var Qe=t.getComputedStyle(Ne);O=Qe.top!=="1%",xe=A(Qe.marginLeft)===12,Ne.style.right="60%",Y=A(Qe.right)===36,H=A(Qe.width)===36,Ne.style.position="absolute",j=A(Ne.offsetWidth/3)===12,$e.removeChild(pe),Ne=null}}function A(Qe){return Math.round(parseFloat(Qe))}var O,H,j,Y,J,xe,pe=m.createElement("div"),Ne=m.createElement("div");Ne.style&&(Ne.style.backgroundClip="content-box",Ne.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle=Ne.style.backgroundClip==="content-box",w.extend(v,{boxSizingReliable:function(){return T(),H},pixelBoxStyles:function(){return T(),Y},pixelPosition:function(){return T(),O},reliableMarginLeft:function(){return T(),xe},scrollboxSize:function(){return T(),j},reliableTrDimensions:function(){var Qe,it,We,mt;return J==null&&(Qe=m.createElement("table"),it=m.createElement("tr"),We=m.createElement("div"),Qe.style.cssText="position:absolute;left:-11111px;border-collapse:separate",it.style.cssText="box-sizing:content-box;border:1px solid",it.style.height="1px",We.style.height="9px",We.style.display="block",$e.appendChild(Qe).appendChild(it).appendChild(We),mt=t.getComputedStyle(it),J=parseInt(mt.height,10)+parseInt(mt.borderTopWidth,10)+parseInt(mt.borderBottomWidth,10)===it.offsetHeight,$e.removeChild(Qe)),J}}))})();function sv(T,A,O){var H,j,Y,J,xe=Ew.test(A),pe=T.style;return O=O||jm(T),O&&(J=O.getPropertyValue(A)||O[A],xe&&J&&(J=J.replace(N,"$1")||void 0),J===""&&!ue(T)&&(J=w.style(T,A)),!v.pixelBoxStyles()&&Aw.test(J)&&xq.test(A)&&(H=pe.width,j=pe.minWidth,Y=pe.maxWidth,pe.minWidth=pe.maxWidth=pe.width=J,J=O.width,pe.width=H,pe.minWidth=j,pe.maxWidth=Y)),J!==void 0?J+"":J}function PD(T,A){return{get:function(){if(T()){delete this.get;return}return(this.get=A).apply(this,arguments)}}}var LD=["Webkit","Moz","ms"],RD=m.createElement("div").style,OD={};function Tq(T){for(var A=T[0].toUpperCase()+T.slice(1),O=LD.length;O--;)if(T=LD[O]+A,T in RD)return T}function Iw(T){var A=w.cssProps[T]||OD[T];return A||(T in RD?T:OD[T]=Tq(T)||T)}var kq=/^(none|table(?!-c[ea]).+)/,Mq={position:"absolute",visibility:"hidden",display:"block"},ND={letterSpacing:"0",fontWeight:"400"};function $D(T,A,O){var H=we.exec(A);return H?Math.max(0,H[2]-(O||0))+(H[3]||"px"):A}function Dw(T,A,O,H,j,Y){var J=A==="width"?1:0,xe=0,pe=0,Ne=0;if(O===(H?"border":"content"))return 0;for(;J<4;J+=2)O==="margin"&&(Ne+=w.css(T,O+ve[J],!0,j)),H?(O==="content"&&(pe-=w.css(T,"padding"+ve[J],!0,j)),O!=="margin"&&(pe-=w.css(T,"border"+ve[J]+"Width",!0,j))):(pe+=w.css(T,"padding"+ve[J],!0,j),O!=="padding"?pe+=w.css(T,"border"+ve[J]+"Width",!0,j):xe+=w.css(T,"border"+ve[J]+"Width",!0,j));return!H&&Y>=0&&(pe+=Math.max(0,Math.ceil(T["offset"+A[0].toUpperCase()+A.slice(1)]-Y-pe-xe-.5))||0),pe+Ne}function BD(T,A,O){var H=jm(T),j=!v.boxSizingReliable()||O,Y=j&&w.css(T,"boxSizing",!1,H)==="border-box",J=Y,xe=sv(T,A,H),pe="offset"+A[0].toUpperCase()+A.slice(1);if(Aw.test(xe)){if(!O)return xe;xe="auto"}return(!v.boxSizingReliable()&&Y||!v.reliableTrDimensions()&&M(T,"tr")||xe==="auto"||!parseFloat(xe)&&w.css(T,"display",!1,H)==="inline")&&T.getClientRects().length&&(Y=w.css(T,"boxSizing",!1,H)==="border-box",J=pe in T,J&&(xe=T[pe])),xe=parseFloat(xe)||0,xe+Dw(T,A,O||(Y?"border":"content"),J,H,xe)+"px"}w.extend({cssHooks:{opacity:{get:function(T,A){if(A){var O=sv(T,"opacity");return O===""?"1":O}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(T,A,O,H){if(!(!T||T.nodeType===3||T.nodeType===8||!T.style)){var j,Y,J,xe=qe(A),pe=Ew.test(A),Ne=T.style;if(pe||(A=Iw(xe)),J=w.cssHooks[A]||w.cssHooks[xe],O!==void 0){if(Y=typeof O,Y==="string"&&(j=we.exec(O))&&j[1]&&(O=jt(T,A,j),Y="number"),O==null||O!==O)return;Y==="number"&&!pe&&(O+=j&&j[3]||(w.cssNumber[xe]?"":"px")),!v.clearCloneStyle&&O===""&&A.indexOf("background")===0&&(Ne[A]="inherit"),(!J||!("set"in J)||(O=J.set(T,O,H))!==void 0)&&(pe?Ne.setProperty(A,O):Ne[A]=O)}else return J&&"get"in J&&(j=J.get(T,!1,H))!==void 0?j:Ne[A]}},css:function(T,A,O,H){var j,Y,J,xe=qe(A),pe=Ew.test(A);return pe||(A=Iw(xe)),J=w.cssHooks[A]||w.cssHooks[xe],J&&"get"in J&&(j=J.get(T,!0,O)),j===void 0&&(j=sv(T,A,H)),j==="normal"&&A in ND&&(j=ND[A]),O===""||O?(Y=parseFloat(j),O===!0||isFinite(Y)?Y||0:j):j}}),w.each(["height","width"],function(T,A){w.cssHooks[A]={get:function(O,H,j){if(H)return kq.test(w.css(O,"display"))&&(!O.getClientRects().length||!O.getBoundingClientRect().width)?DD(O,Mq,function(){return BD(O,A,j)}):BD(O,A,j)},set:function(O,H,j){var Y,J=jm(O),xe=!v.scrollboxSize()&&J.position==="absolute",pe=xe||j,Ne=pe&&w.css(O,"boxSizing",!1,J)==="border-box",Qe=j?Dw(O,A,j,Ne,J):0;return Ne&&xe&&(Qe-=Math.ceil(O["offset"+A[0].toUpperCase()+A.slice(1)]-parseFloat(J[A])-Dw(O,A,"border",!1,J)-.5)),Qe&&(Y=we.exec(H))&&(Y[3]||"px")!=="px"&&(O.style[A]=H,H=w.css(O,A)),$D(O,H,Qe)}}}),w.cssHooks.marginLeft=PD(v.reliableMarginLeft,function(T,A){if(A)return(parseFloat(sv(T,"marginLeft"))||T.getBoundingClientRect().left-DD(T,{marginLeft:0},function(){return T.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(T,A){w.cssHooks[T+A]={expand:function(O){for(var H=0,j={},Y=typeof O=="string"?O.split(" "):[O];H<4;H++)j[T+ve[H]+A]=Y[H]||Y[H-2]||Y[0];return j}},T!=="margin"&&(w.cssHooks[T+A].set=$D)}),w.fn.extend({css:function(T,A){return ze(this,function(O,H,j){var Y,J,xe={},pe=0;if(Array.isArray(H)){for(Y=jm(O),J=H.length;pe<J;pe++)xe[H[pe]]=w.css(O,H[pe],!1,Y);return xe}return j!==void 0?w.style(O,H,j):w.css(O,H)},T,A,arguments.length>1)}});function Ua(T,A,O,H,j){return new Ua.prototype.init(T,A,O,H,j)}w.Tween=Ua,Ua.prototype={constructor:Ua,init:function(T,A,O,H,j,Y){this.elem=T,this.prop=O,this.easing=j||w.easing._default,this.options=A,this.start=this.now=this.cur(),this.end=H,this.unit=Y||(w.cssNumber[O]?"":"px")},cur:function(){var T=Ua.propHooks[this.prop];return T&&T.get?T.get(this):Ua.propHooks._default.get(this)},run:function(T){var A,O=Ua.propHooks[this.prop];return this.options.duration?this.pos=A=w.easing[this.easing](T,this.options.duration*T,0,1,this.options.duration):this.pos=A=T,this.now=(this.end-this.start)*A+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),O&&O.set?O.set(this):Ua.propHooks._default.set(this),this}},Ua.prototype.init.prototype=Ua.prototype,Ua.propHooks={_default:{get:function(T){var A;return T.elem.nodeType!==1||T.elem[T.prop]!=null&&T.elem.style[T.prop]==null?T.elem[T.prop]:(A=w.css(T.elem,T.prop,""),!A||A==="auto"?0:A)},set:function(T){w.fx.step[T.prop]?w.fx.step[T.prop](T):T.elem.nodeType===1&&(w.cssHooks[T.prop]||T.elem.style[Iw(T.prop)]!=null)?w.style(T.elem,T.prop,T.now+T.unit):T.elem[T.prop]=T.now}}},Ua.propHooks.scrollTop=Ua.propHooks.scrollLeft={set:function(T){T.elem.nodeType&&T.elem.parentNode&&(T.elem[T.prop]=T.now)}},w.easing={linear:function(T){return T},swing:function(T){return .5-Math.cos(T*Math.PI)/2},_default:"swing"},w.fx=Ua.prototype.init,w.fx.step={};var Vf,Ym,Aq=/^(?:toggle|show|hide)$/,Eq=/queueHooks$/;function Pw(){Ym&&(m.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(Pw):t.setTimeout(Pw,w.fx.interval),w.fx.tick())}function VD(){return t.setTimeout(function(){Vf=void 0}),Vf=Date.now()}function qm(T,A){var O,H=0,j={height:T};for(A=A?1:0;H<4;H+=2-A)O=ve[H],j["margin"+O]=j["padding"+O]=T;return A&&(j.opacity=j.width=T),j}function FD(T,A,O){for(var H,j=(so.tweeners[A]||[]).concat(so.tweeners["*"]),Y=0,J=j.length;Y<J;Y++)if(H=j[Y].call(O,A,T))return H}function Iq(T,A,O){var H,j,Y,J,xe,pe,Ne,Qe,it="width"in A||"height"in A,We=this,mt={},gn=T.style,Vn=T.nodeType&&Ct(T),An=_e.get(T,"fxshow");O.queue||(J=w._queueHooks(T,"fx"),J.unqueued==null&&(J.unqueued=0,xe=J.empty.fire,J.empty.fire=function(){J.unqueued||xe()}),J.unqueued++,We.always(function(){We.always(function(){J.unqueued--,w.queue(T,"fx").length||J.empty.fire()})}));for(H in A)if(j=A[H],Aq.test(j)){if(delete A[H],Y=Y||j==="toggle",j===(Vn?"hide":"show"))if(j==="show"&&An&&An[H]!==void 0)Vn=!0;else continue;mt[H]=An&&An[H]||w.style(T,H)}if(pe=!w.isEmptyObject(A),!(!pe&&w.isEmptyObject(mt))){it&&T.nodeType===1&&(O.overflow=[gn.overflow,gn.overflowX,gn.overflowY],Ne=An&&An.display,Ne==null&&(Ne=_e.get(T,"display")),Qe=w.css(T,"display"),Qe==="none"&&(Ne?Qe=Ne:(Ir([T],!0),Ne=T.style.display||Ne,Qe=w.css(T,"display"),Ir([T]))),(Qe==="inline"||Qe==="inline-block"&&Ne!=null)&&w.css(T,"float")==="none"&&(pe||(We.done(function(){gn.display=Ne}),Ne==null&&(Qe=gn.display,Ne=Qe==="none"?"":Qe)),gn.display="inline-block")),O.overflow&&(gn.overflow="hidden",We.always(function(){gn.overflow=O.overflow[0],gn.overflowX=O.overflow[1],gn.overflowY=O.overflow[2]})),pe=!1;for(H in mt)pe||(An?"hidden"in An&&(Vn=An.hidden):An=_e.access(T,"fxshow",{display:Ne}),Y&&(An.hidden=!Vn),Vn&&Ir([T],!0),We.done(function(){Vn||Ir([T]),_e.remove(T,"fxshow");for(H in mt)w.style(T,H,mt[H])})),pe=FD(Vn?An[H]:0,H,We),H in An||(An[H]=pe.start,Vn&&(pe.end=pe.start,pe.start=0))}}function Dq(T,A){var O,H,j,Y,J;for(O in T)if(H=qe(O),j=A[H],Y=T[O],Array.isArray(Y)&&(j=Y[1],Y=T[O]=Y[0]),O!==H&&(T[H]=Y,delete T[O]),J=w.cssHooks[H],J&&"expand"in J){Y=J.expand(Y),delete T[H];for(O in Y)O in T||(T[O]=Y[O],A[O]=j)}else A[H]=j}function so(T,A,O){var H,j,Y=0,J=so.prefilters.length,xe=w.Deferred().always(function(){delete pe.elem}),pe=function(){if(j)return!1;for(var it=Vf||VD(),We=Math.max(0,Ne.startTime+Ne.duration-it),mt=We/Ne.duration||0,gn=1-mt,Vn=0,An=Ne.tweens.length;Vn<An;Vn++)Ne.tweens[Vn].run(gn);return xe.notifyWith(T,[Ne,gn,We]),gn<1&&An?We:(An||xe.notifyWith(T,[Ne,1,0]),xe.resolveWith(T,[Ne]),!1)},Ne=xe.promise({elem:T,props:w.extend({},A),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},O),originalProperties:A,originalOptions:O,startTime:Vf||VD(),duration:O.duration,tweens:[],createTween:function(it,We){var mt=w.Tween(T,Ne.opts,it,We,Ne.opts.specialEasing[it]||Ne.opts.easing);return Ne.tweens.push(mt),mt},stop:function(it){var We=0,mt=it?Ne.tweens.length:0;if(j)return this;for(j=!0;We<mt;We++)Ne.tweens[We].run(1);return it?(xe.notifyWith(T,[Ne,1,0]),xe.resolveWith(T,[Ne,it])):xe.rejectWith(T,[Ne,it]),this}}),Qe=Ne.props;for(Dq(Qe,Ne.opts.specialEasing);Y<J;Y++)if(H=so.prefilters[Y].call(Ne,T,Qe,Ne.opts),H)return p(H.stop)&&(w._queueHooks(Ne.elem,Ne.opts.queue).stop=H.stop.bind(H)),H;return w.map(Qe,FD,Ne),p(Ne.opts.start)&&Ne.opts.start.call(T,Ne),Ne.progress(Ne.opts.progress).done(Ne.opts.done,Ne.opts.complete).fail(Ne.opts.fail).always(Ne.opts.always),w.fx.timer(w.extend(pe,{elem:T,anim:Ne,queue:Ne.opts.queue})),Ne}w.Animation=w.extend(so,{tweeners:{"*":[function(T,A){var O=this.createTween(T,A);return jt(O.elem,T,we.exec(A),O),O}]},tweener:function(T,A){p(T)?(A=T,T=["*"]):T=T.match(Te);for(var O,H=0,j=T.length;H<j;H++)O=T[H],so.tweeners[O]=so.tweeners[O]||[],so.tweeners[O].unshift(A)},prefilters:[Iq],prefilter:function(T,A){A?so.prefilters.unshift(T):so.prefilters.push(T)}}),w.speed=function(T,A,O){var H=T&&typeof T=="object"?w.extend({},T):{complete:O||!O&&A||p(T)&&T,duration:T,easing:O&&A||A&&!p(A)&&A};return w.fx.off?H.duration=0:typeof H.duration!="number"&&(H.duration in w.fx.speeds?H.duration=w.fx.speeds[H.duration]:H.duration=w.fx.speeds._default),(H.queue==null||H.queue===!0)&&(H.queue="fx"),H.old=H.complete,H.complete=function(){p(H.old)&&H.old.call(this),H.queue&&w.dequeue(this,H.queue)},H},w.fn.extend({fadeTo:function(T,A,O,H){return this.filter(Ct).css("opacity",0).show().end().animate({opacity:A},T,O,H)},animate:function(T,A,O,H){var j=w.isEmptyObject(T),Y=w.speed(A,O,H),J=function(){var xe=so(this,w.extend({},T),Y);(j||_e.get(this,"finish"))&&xe.stop(!0)};return J.finish=J,j||Y.queue===!1?this.each(J):this.queue(Y.queue,J)},stop:function(T,A,O){var H=function(j){var Y=j.stop;delete j.stop,Y(O)};return typeof T!="string"&&(O=A,A=T,T=void 0),A&&this.queue(T||"fx",[]),this.each(function(){var j=!0,Y=T!=null&&T+"queueHooks",J=w.timers,xe=_e.get(this);if(Y)xe[Y]&&xe[Y].stop&&H(xe[Y]);else for(Y in xe)xe[Y]&&xe[Y].stop&&Eq.test(Y)&&H(xe[Y]);for(Y=J.length;Y--;)J[Y].elem===this&&(T==null||J[Y].queue===T)&&(J[Y].anim.stop(O),j=!1,J.splice(Y,1));(j||!O)&&w.dequeue(this,T)})},finish:function(T){return T!==!1&&(T=T||"fx"),this.each(function(){var A,O=_e.get(this),H=O[T+"queue"],j=O[T+"queueHooks"],Y=w.timers,J=H?H.length:0;for(O.finish=!0,w.queue(this,T,[]),j&&j.stop&&j.stop.call(this,!0),A=Y.length;A--;)Y[A].elem===this&&Y[A].queue===T&&(Y[A].anim.stop(!0),Y.splice(A,1));for(A=0;A<J;A++)H[A]&&H[A].finish&&H[A].finish.call(this);delete O.finish})}}),w.each(["toggle","show","hide"],function(T,A){var O=w.fn[A];w.fn[A]=function(H,j,Y){return H==null||typeof H=="boolean"?O.apply(this,arguments):this.animate(qm(A,!0),H,j,Y)}}),w.each({slideDown:qm("show"),slideUp:qm("hide"),slideToggle:qm("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(T,A){w.fn[T]=function(O,H,j){return this.animate(A,O,H,j)}}),w.timers=[],w.fx.tick=function(){var T,A=0,O=w.timers;for(Vf=Date.now();A<O.length;A++)T=O[A],!T()&&O[A]===T&&O.splice(A--,1);O.length||w.fx.stop(),Vf=void 0},w.fx.timer=function(T){w.timers.push(T),w.fx.start()},w.fx.interval=13,w.fx.start=function(){Ym||(Ym=!0,Pw())},w.fx.stop=function(){Ym=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(T,A){return T=w.fx&&w.fx.speeds[T]||T,A=A||"fx",this.queue(A,function(O,H){var j=t.setTimeout(O,T);H.stop=function(){t.clearTimeout(j)}})},function(){var T=m.createElement("input"),A=m.createElement("select"),O=A.appendChild(m.createElement("option"));T.type="checkbox",v.checkOn=T.value!=="",v.optSelected=O.selected,T=m.createElement("input"),T.value="t",T.type="radio",v.radioValue=T.value==="t"}();var zD,lv=w.expr.attrHandle;w.fn.extend({attr:function(T,A){return ze(this,w.attr,T,A,arguments.length>1)},removeAttr:function(T){return this.each(function(){w.removeAttr(this,T)})}}),w.extend({attr:function(T,A,O){var H,j,Y=T.nodeType;if(!(Y===3||Y===8||Y===2)){if(typeof T.getAttribute>"u")return w.prop(T,A,O);if((Y!==1||!w.isXMLDoc(T))&&(j=w.attrHooks[A.toLowerCase()]||(w.expr.match.bool.test(A)?zD:void 0)),O!==void 0){if(O===null){w.removeAttr(T,A);return}return j&&"set"in j&&(H=j.set(T,O,A))!==void 0?H:(T.setAttribute(A,O+""),O)}return j&&"get"in j&&(H=j.get(T,A))!==null?H:(H=w.find.attr(T,A),H??void 0)}},attrHooks:{type:{set:function(T,A){if(!v.radioValue&&A==="radio"&&M(T,"input")){var O=T.value;return T.setAttribute("type",A),O&&(T.value=O),A}}}},removeAttr:function(T,A){var O,H=0,j=A&&A.match(Te);if(j&&T.nodeType===1)for(;O=j[H++];)T.removeAttribute(O)}}),zD={set:function(T,A,O){return A===!1?w.removeAttr(T,O):T.setAttribute(O,O),O}},w.each(w.expr.match.bool.source.match(/\w+/g),function(T,A){var O=lv[A]||w.find.attr;lv[A]=function(H,j,Y){var J,xe,pe=j.toLowerCase();return Y||(xe=lv[pe],lv[pe]=J,J=O(H,j,Y)!=null?pe:null,lv[pe]=xe),J}});var Pq=/^(?:input|select|textarea|button)$/i,Lq=/^(?:a|area)$/i;w.fn.extend({prop:function(T,A){return ze(this,w.prop,T,A,arguments.length>1)},removeProp:function(T){return this.each(function(){delete this[w.propFix[T]||T]})}}),w.extend({prop:function(T,A,O){var H,j,Y=T.nodeType;if(!(Y===3||Y===8||Y===2))return(Y!==1||!w.isXMLDoc(T))&&(A=w.propFix[A]||A,j=w.propHooks[A]),O!==void 0?j&&"set"in j&&(H=j.set(T,O,A))!==void 0?H:T[A]=O:j&&"get"in j&&(H=j.get(T,A))!==null?H:T[A]},propHooks:{tabIndex:{get:function(T){var A=w.find.attr(T,"tabindex");return A?parseInt(A,10):Pq.test(T.nodeName)||Lq.test(T.nodeName)&&T.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(w.propHooks.selected={get:function(T){var A=T.parentNode;return A&&A.parentNode&&A.parentNode.selectedIndex,null},set:function(T){var A=T.parentNode;A&&(A.selectedIndex,A.parentNode&&A.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this});function Vu(T){var A=T.match(Te)||[];return A.join(" ")}function Fu(T){return T.getAttribute&&T.getAttribute("class")||""}function Lw(T){return Array.isArray(T)?T:typeof T=="string"?T.match(Te)||[]:[]}w.fn.extend({addClass:function(T){var A,O,H,j,Y,J;return p(T)?this.each(function(xe){w(this).addClass(T.call(this,xe,Fu(this)))}):(A=Lw(T),A.length?this.each(function(){if(H=Fu(this),O=this.nodeType===1&&" "+Vu(H)+" ",O){for(Y=0;Y<A.length;Y++)j=A[Y],O.indexOf(" "+j+" ")<0&&(O+=j+" ");J=Vu(O),H!==J&&this.setAttribute("class",J)}}):this)},removeClass:function(T){var A,O,H,j,Y,J;return p(T)?this.each(function(xe){w(this).removeClass(T.call(this,xe,Fu(this)))}):arguments.length?(A=Lw(T),A.length?this.each(function(){if(H=Fu(this),O=this.nodeType===1&&" "+Vu(H)+" ",O){for(Y=0;Y<A.length;Y++)for(j=A[Y];O.indexOf(" "+j+" ")>-1;)O=O.replace(" "+j+" "," ");J=Vu(O),H!==J&&this.setAttribute("class",J)}}):this):this.attr("class","")},toggleClass:function(T,A){var O,H,j,Y,J=typeof T,xe=J==="string"||Array.isArray(T);return p(T)?this.each(function(pe){w(this).toggleClass(T.call(this,pe,Fu(this),A),A)}):typeof A=="boolean"&&xe?A?this.addClass(T):this.removeClass(T):(O=Lw(T),this.each(function(){if(xe)for(Y=w(this),j=0;j<O.length;j++)H=O[j],Y.hasClass(H)?Y.removeClass(H):Y.addClass(H);else(T===void 0||J==="boolean")&&(H=Fu(this),H&&_e.set(this,"__className__",H),this.setAttribute&&this.setAttribute("class",H||T===!1?"":_e.get(this,"__className__")||""))}))},hasClass:function(T){var A,O,H=0;for(A=" "+T+" ";O=this[H++];)if(O.nodeType===1&&(" "+Vu(Fu(O))+" ").indexOf(A)>-1)return!0;return!1}});var Rq=/\r/g;w.fn.extend({val:function(T){var A,O,H,j=this[0];return arguments.length?(H=p(T),this.each(function(Y){var J;this.nodeType===1&&(H?J=T.call(this,Y,w(this).val()):J=T,J==null?J="":typeof J=="number"?J+="":Array.isArray(J)&&(J=w.map(J,function(xe){return xe==null?"":xe+""})),A=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()],(!A||!("set"in A)||A.set(this,J,"value")===void 0)&&(this.value=J))})):j?(A=w.valHooks[j.type]||w.valHooks[j.nodeName.toLowerCase()],A&&"get"in A&&(O=A.get(j,"value"))!==void 0?O:(O=j.value,typeof O=="string"?O.replace(Rq,""):O??"")):void 0}}),w.extend({valHooks:{option:{get:function(T){var A=w.find.attr(T,"value");return A??Vu(w.text(T))}},select:{get:function(T){var A,O,H,j=T.options,Y=T.selectedIndex,J=T.type==="select-one",xe=J?null:[],pe=J?Y+1:j.length;for(Y<0?H=pe:H=J?Y:0;H<pe;H++)if(O=j[H],(O.selected||H===Y)&&!O.disabled&&(!O.parentNode.disabled||!M(O.parentNode,"optgroup"))){if(A=w(O).val(),J)return A;xe.push(A)}return xe},set:function(T,A){for(var O,H,j=T.options,Y=w.makeArray(A),J=j.length;J--;)H=j[J],(H.selected=w.inArray(w.valHooks.option.get(H),Y)>-1)&&(O=!0);return O||(T.selectedIndex=-1),Y}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(T,A){if(Array.isArray(A))return T.checked=w.inArray(w(T).val(),A)>-1}},v.checkOn||(w.valHooks[this].get=function(T){return T.getAttribute("value")===null?"on":T.value})});var uv=t.location,HD={guid:Date.now()},Rw=/\?/;w.parseXML=function(T){var A,O;if(!T||typeof T!="string")return null;try{A=new t.DOMParser().parseFromString(T,"text/xml")}catch{}return O=A&&A.getElementsByTagName("parsererror")[0],(!A||O)&&w.error("Invalid XML: "+(O?w.map(O.childNodes,function(H){return H.textContent}).join(`
 
- `):T)),A};var WD=/^(?:focusinfocus|focusoutblur)$/,GD=function(T){T.stopPropagation()};w.extend(w.event,{trigger:function(T,A,O,H){var j,Y,J,xe,pe,Ne,Qe,it,We=[O||m],mt=f.call(T,"type")?T.type:T,gn=f.call(T,"namespace")?T.namespace.split("."):[];if(Y=it=J=O=O||m,!(O.nodeType===3||O.nodeType===8)&&!WD.test(mt+w.event.triggered)&&(mt.indexOf(".")>-1&&(gn=mt.split("."),mt=gn.shift(),gn.sort()),pe=mt.indexOf(":")<0&&"on"+mt,T=T[w.expando]?T:new w.Event(mt,typeof T=="object"&&T),T.isTrigger=H?2:3,T.namespace=gn.join("."),T.rnamespace=T.namespace?new RegExp("(^|\\.)"+gn.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,T.result=void 0,T.target||(T.target=O),A=A==null?[T]:w.makeArray(A,[T]),Qe=w.event.special[mt]||{},!(!H&&Qe.trigger&&Qe.trigger.apply(O,A)===!1))){if(!H&&!Qe.noBubble&&!g(O)){for(xe=Qe.delegateType||mt,WD.test(xe+mt)||(Y=Y.parentNode);Y;Y=Y.parentNode)We.push(Y),J=Y;J===(O.ownerDocument||m)&&We.push(J.defaultView||J.parentWindow||t)}for(j=0;(Y=We[j++])&&!T.isPropagationStopped();)it=Y,T.type=j>1?xe:Qe.bindType||mt,Ne=(_e.get(Y,"events")||Object.create(null))[T.type]&&_e.get(Y,"handle"),Ne&&Ne.apply(Y,A),Ne=pe&&Y[pe],Ne&&Ne.apply&&nt(Y)&&(T.result=Ne.apply(Y,A),T.result===!1&&T.preventDefault());return T.type=mt,!H&&!T.isDefaultPrevented()&&(!Qe._default||Qe._default.apply(We.pop(),A)===!1)&&nt(O)&&pe&&p(O[mt])&&!g(O)&&(J=O[pe],J&&(O[pe]=null),w.event.triggered=mt,T.isPropagationStopped()&&it.addEventListener(mt,GD),O[mt](),T.isPropagationStopped()&&it.removeEventListener(mt,GD),w.event.triggered=void 0,J&&(O[pe]=J)),T.result}},simulate:function(T,A,O){var H=w.extend(new w.Event,O,{type:T,isSimulated:!0});w.event.trigger(H,null,A)}}),w.fn.extend({trigger:function(T,A){return this.each(function(){w.event.trigger(T,A,this)})},triggerHandler:function(T,A){var O=this[0];if(O)return w.event.trigger(T,A,O,!0)}});var Oq=/\[\]$/,KD=/\r?\n/g,Nq=/^(?:submit|button|image|reset|file)$/i,$q=/^(?:input|select|textarea|keygen)/i;function Ow(T,A,O,H){var j;if(Array.isArray(A))w.each(A,function(Y,J){O||Oq.test(T)?H(T,J):Ow(T+"["+(typeof J=="object"&&J!=null?Y:"")+"]",J,O,H)});else if(!O&&S(A)==="object")for(j in A)Ow(T+"["+j+"]",A[j],O,H);else H(T,A)}w.param=function(T,A){var O,H=[],j=function(Y,J){var xe=p(J)?J():J;H[H.length]=encodeURIComponent(Y)+"="+encodeURIComponent(xe??"")};if(T==null)return"";if(Array.isArray(T)||T.jquery&&!w.isPlainObject(T))w.each(T,function(){j(this.name,this.value)});else for(O in T)Ow(O,T[O],A,j);return H.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var T=w.prop(this,"elements");return T?w.makeArray(T):this}).filter(function(){var T=this.type;return this.name&&!w(this).is(":disabled")&&$q.test(this.nodeName)&&!Nq.test(T)&&(this.checked||!yr.test(T))}).map(function(T,A){var O=w(this).val();return O==null?null:Array.isArray(O)?w.map(O,function(H){return{name:A.name,value:H.replace(KD,`\r
 
- `)}}):{name:A.name,value:O.replace(KD,`\r
 
- `)}}).get()}});var Bq=/%20/g,Vq=/#.*$/,Fq=/([?&])_=[^&]*/,zq=/^(.*?):[ \t]*([^\r\n]*)$/mg,Hq=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Wq=/^(?:GET|HEAD)$/,Gq=/^\/\//,UD={},Nw={},jD="*/".concat("*"),$w=m.createElement("a");$w.href=uv.href;function YD(T){return function(A,O){typeof A!="string"&&(O=A,A="*");var H,j=0,Y=A.toLowerCase().match(Te)||[];if(p(O))for(;H=Y[j++];)H[0]==="+"?(H=H.slice(1)||"*",(T[H]=T[H]||[]).unshift(O)):(T[H]=T[H]||[]).push(O)}}function qD(T,A,O,H){var j={},Y=T===Nw;function J(xe){var pe;return j[xe]=!0,w.each(T[xe]||[],function(Ne,Qe){var it=Qe(A,O,H);if(typeof it=="string"&&!Y&&!j[it])return A.dataTypes.unshift(it),J(it),!1;if(Y)return!(pe=it)}),pe}return J(A.dataTypes[0])||!j["*"]&&J("*")}function Bw(T,A){var O,H,j=w.ajaxSettings.flatOptions||{};for(O in A)A[O]!==void 0&&((j[O]?T:H||(H={}))[O]=A[O]);return H&&w.extend(!0,T,H),T}function Kq(T,A,O){for(var H,j,Y,J,xe=T.contents,pe=T.dataTypes;pe[0]==="*";)pe.shift(),H===void 0&&(H=T.mimeType||A.getResponseHeader("Content-Type"));if(H){for(j in xe)if(xe[j]&&xe[j].test(H)){pe.unshift(j);break}}if(pe[0]in O)Y=pe[0];else{for(j in O){if(!pe[0]||T.converters[j+" "+pe[0]]){Y=j;break}J||(J=j)}Y=Y||J}if(Y)return Y!==pe[0]&&pe.unshift(Y),O[Y]}function Uq(T,A,O,H){var j,Y,J,xe,pe,Ne={},Qe=T.dataTypes.slice();if(Qe[1])for(J in T.converters)Ne[J.toLowerCase()]=T.converters[J];for(Y=Qe.shift();Y;)if(T.responseFields[Y]&&(O[T.responseFields[Y]]=A),!pe&&H&&T.dataFilter&&(A=T.dataFilter(A,T.dataType)),pe=Y,Y=Qe.shift(),Y){if(Y==="*")Y=pe;else if(pe!=="*"&&pe!==Y){if(J=Ne[pe+" "+Y]||Ne["* "+Y],!J){for(j in Ne)if(xe=j.split(" "),xe[1]===Y&&(J=Ne[pe+" "+xe[0]]||Ne["* "+xe[0]],J)){J===!0?J=Ne[j]:Ne[j]!==!0&&(Y=xe[0],Qe.unshift(xe[1]));break}}if(J!==!0)if(J&&T.throws)A=J(A);else try{A=J(A)}catch(it){return{state:"parsererror",error:J?it:"No conversion from "+pe+" to "+Y}}}}return{state:"success",data:A}}w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:uv.href,type:"GET",isLocal:Hq.test(uv.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jD,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(T,A){return A?Bw(Bw(T,w.ajaxSettings),A):Bw(w.ajaxSettings,T)},ajaxPrefilter:YD(UD),ajaxTransport:YD(Nw),ajax:function(T,A){typeof T=="object"&&(A=T,T=void 0),A=A||{};var O,H,j,Y,J,xe,pe,Ne,Qe,it,We=w.ajaxSetup({},A),mt=We.context||We,gn=We.context&&(mt.nodeType||mt.jquery)?w(mt):w.event,Vn=w.Deferred(),An=w.Callbacks("once memory"),ta=We.statusCode||{},zr={},Ho={},Wo="canceled",Rn={readyState:0,getResponseHeader:function(Fn){var Mr;if(pe){if(!Y)for(Y={};Mr=zq.exec(j);)Y[Mr[1].toLowerCase()+" "]=(Y[Mr[1].toLowerCase()+" "]||[]).concat(Mr[2]);Mr=Y[Fn.toLowerCase()+" "]}return Mr==null?null:Mr.join(", ")},getAllResponseHeaders:function(){return pe?j:null},setRequestHeader:function(Fn,Mr){return pe==null&&(Fn=Ho[Fn.toLowerCase()]=Ho[Fn.toLowerCase()]||Fn,zr[Fn]=Mr),this},overrideMimeType:function(Fn){return pe==null&&(We.mimeType=Fn),this},statusCode:function(Fn){var Mr;if(Fn)if(pe)Rn.always(Fn[Rn.status]);else for(Mr in Fn)ta[Mr]=[ta[Mr],Fn[Mr]];return this},abort:function(Fn){var Mr=Fn||Wo;return O&&O.abort(Mr),zu(0,Mr),this}};if(Vn.promise(Rn),We.url=((T||We.url||uv.href)+"").replace(Gq,uv.protocol+"//"),We.type=A.method||A.type||We.method||We.type,We.dataTypes=(We.dataType||"*").toLowerCase().match(Te)||[""],We.crossDomain==null){xe=m.createElement("a");try{xe.href=We.url,xe.href=xe.href,We.crossDomain=$w.protocol+"//"+$w.host!=xe.protocol+"//"+xe.host}catch{We.crossDomain=!0}}if(We.data&&We.processData&&typeof We.data!="string"&&(We.data=w.param(We.data,We.traditional)),qD(UD,We,A,Rn),pe)return Rn;Ne=w.event&&We.global,Ne&&w.active++===0&&w.event.trigger("ajaxStart"),We.type=We.type.toUpperCase(),We.hasContent=!Wq.test(We.type),H=We.url.replace(Vq,""),We.hasContent?We.data&&We.processData&&(We.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(We.data=We.data.replace(Bq,"+")):(it=We.url.slice(H.length),We.data&&(We.processData||typeof We.data=="string")&&(H+=(Rw.test(H)?"&":"?")+We.data,delete We.data),We.cache===!1&&(H=H.replace(Fq,"$1"),it=(Rw.test(H)?"&":"?")+"_="+HD.guid+++it),We.url=H+it),We.ifModified&&(w.lastModified[H]&&Rn.setRequestHeader("If-Modified-Since",w.lastModified[H]),w.etag[H]&&Rn.setRequestHeader("If-None-Match",w.etag[H])),(We.data&&We.hasContent&&We.contentType!==!1||A.contentType)&&Rn.setRequestHeader("Content-Type",We.contentType),Rn.setRequestHeader("Accept",We.dataTypes[0]&&We.accepts[We.dataTypes[0]]?We.accepts[We.dataTypes[0]]+(We.dataTypes[0]!=="*"?", "+jD+"; q=0.01":""):We.accepts["*"]);for(Qe in We.headers)Rn.setRequestHeader(Qe,We.headers[Qe]);if(We.beforeSend&&(We.beforeSend.call(mt,Rn,We)===!1||pe))return Rn.abort();if(Wo="abort",An.add(We.complete),Rn.done(We.success),Rn.fail(We.error),O=qD(Nw,We,A,Rn),!O)zu(-1,"No Transport");else{if(Rn.readyState=1,Ne&&gn.trigger("ajaxSend",[Rn,We]),pe)return Rn;We.async&&We.timeout>0&&(J=t.setTimeout(function(){Rn.abort("timeout")},We.timeout));try{pe=!1,O.send(zr,zu)}catch(Fn){if(pe)throw Fn;zu(-1,Fn)}}function zu(Fn,Mr,fv,Fw){var Go,dv,Ko,gl,ml,Ci=Mr;pe||(pe=!0,J&&t.clearTimeout(J),O=void 0,j=Fw||"",Rn.readyState=Fn>0?4:0,Go=Fn>=200&&Fn<300||Fn===304,fv&&(gl=Kq(We,Rn,fv)),!Go&&w.inArray("script",We.dataTypes)>-1&&w.inArray("json",We.dataTypes)<0&&(We.converters["text script"]=function(){}),gl=Uq(We,gl,Rn,Go),Go?(We.ifModified&&(ml=Rn.getResponseHeader("Last-Modified"),ml&&(w.lastModified[H]=ml),ml=Rn.getResponseHeader("etag"),ml&&(w.etag[H]=ml)),Fn===204||We.type==="HEAD"?Ci="nocontent":Fn===304?Ci="notmodified":(Ci=gl.state,dv=gl.data,Ko=gl.error,Go=!Ko)):(Ko=Ci,(Fn||!Ci)&&(Ci="error",Fn<0&&(Fn=0))),Rn.status=Fn,Rn.statusText=(Mr||Ci)+"",Go?Vn.resolveWith(mt,[dv,Ci,Rn]):Vn.rejectWith(mt,[Rn,Ci,Ko]),Rn.statusCode(ta),ta=void 0,Ne&&gn.trigger(Go?"ajaxSuccess":"ajaxError",[Rn,We,Go?dv:Ko]),An.fireWith(mt,[Rn,Ci]),Ne&&(gn.trigger("ajaxComplete",[Rn,We]),--w.active||w.event.trigger("ajaxStop")))}return Rn},getJSON:function(T,A,O){return w.get(T,A,O,"json")},getScript:function(T,A){return w.get(T,void 0,A,"script")}}),w.each(["get","post"],function(T,A){w[A]=function(O,H,j,Y){return p(H)&&(Y=Y||j,j=H,H=void 0),w.ajax(w.extend({url:O,type:A,dataType:Y,data:H,success:j},w.isPlainObject(O)&&O))}}),w.ajaxPrefilter(function(T){var A;for(A in T.headers)A.toLowerCase()==="content-type"&&(T.contentType=T.headers[A]||"")}),w._evalUrl=function(T,A,O){return w.ajax({url:T,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(H){w.globalEval(H,A,O)}})},w.fn.extend({wrapAll:function(T){var A;return this[0]&&(p(T)&&(T=T.call(this[0])),A=w(T,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&A.insertBefore(this[0]),A.map(function(){for(var O=this;O.firstElementChild;)O=O.firstElementChild;return O}).append(this)),this},wrapInner:function(T){return p(T)?this.each(function(A){w(this).wrapInner(T.call(this,A))}):this.each(function(){var A=w(this),O=A.contents();O.length?O.wrapAll(T):A.append(T)})},wrap:function(T){var A=p(T);return this.each(function(O){w(this).wrapAll(A?T.call(this,O):T)})},unwrap:function(T){return this.parent(T).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(T){return!w.expr.pseudos.visible(T)},w.expr.pseudos.visible=function(T){return!!(T.offsetWidth||T.offsetHeight||T.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var jq={0:200,1223:204},cv=w.ajaxSettings.xhr();v.cors=!!cv&&"withCredentials"in cv,v.ajax=cv=!!cv,w.ajaxTransport(function(T){var A,O;if(v.cors||cv&&!T.crossDomain)return{send:function(H,j){var Y,J=T.xhr();if(J.open(T.type,T.url,T.async,T.username,T.password),T.xhrFields)for(Y in T.xhrFields)J[Y]=T.xhrFields[Y];T.mimeType&&J.overrideMimeType&&J.overrideMimeType(T.mimeType),!T.crossDomain&&!H["X-Requested-With"]&&(H["X-Requested-With"]="XMLHttpRequest");for(Y in H)J.setRequestHeader(Y,H[Y]);A=function(xe){return function(){A&&(A=O=J.onload=J.onerror=J.onabort=J.ontimeout=J.onreadystatechange=null,xe==="abort"?J.abort():xe==="error"?typeof J.status!="number"?j(0,"error"):j(J.status,J.statusText):j(jq[J.status]||J.status,J.statusText,(J.responseType||"text")!=="text"||typeof J.responseText!="string"?{binary:J.response}:{text:J.responseText},J.getAllResponseHeaders()))}},J.onload=A(),O=J.onerror=J.ontimeout=A("error"),J.onabort!==void 0?J.onabort=O:J.onreadystatechange=function(){J.readyState===4&&t.setTimeout(function(){A&&O()})},A=A("abort");try{J.send(T.hasContent&&T.data||null)}catch(xe){if(A)throw xe}},abort:function(){A&&A()}}}),w.ajaxPrefilter(function(T){T.crossDomain&&(T.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(T){return w.globalEval(T),T}}}),w.ajaxPrefilter("script",function(T){T.cache===void 0&&(T.cache=!1),T.crossDomain&&(T.type="GET")}),w.ajaxTransport("script",function(T){if(T.crossDomain||T.scriptAttrs){var A,O;return{send:function(H,j){A=w("<script>").attr(T.scriptAttrs||{}).prop({charset:T.scriptCharset,src:T.url}).on("load error",O=function(Y){A.remove(),O=null,Y&&j(Y.type==="error"?404:200,Y.type)}),m.head.appendChild(A[0])},abort:function(){O&&O()}}}});var XD=[],Vw=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var T=XD.pop()||w.expando+"_"+HD.guid++;return this[T]=!0,T}}),w.ajaxPrefilter("json jsonp",function(T,A,O){var H,j,Y,J=T.jsonp!==!1&&(Vw.test(T.url)?"url":typeof T.data=="string"&&(T.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Vw.test(T.data)&&"data");if(J||T.dataTypes[0]==="jsonp")return H=T.jsonpCallback=p(T.jsonpCallback)?T.jsonpCallback():T.jsonpCallback,J?T[J]=T[J].replace(Vw,"$1"+H):T.jsonp!==!1&&(T.url+=(Rw.test(T.url)?"&":"?")+T.jsonp+"="+H),T.converters["script json"]=function(){return Y||w.error(H+" was not called"),Y[0]},T.dataTypes[0]="json",j=t[H],t[H]=function(){Y=arguments},O.always(function(){j===void 0?w(t).removeProp(H):t[H]=j,T[H]&&(T.jsonpCallback=A.jsonpCallback,XD.push(H)),Y&&p(j)&&j(Y[0]),Y=j=void 0}),"script"}),v.createHTMLDocument=function(){var T=m.implementation.createHTMLDocument("").body;return T.innerHTML="<form></form><form></form>",T.childNodes.length===2}(),w.parseHTML=function(T,A,O){if(typeof T!="string")return[];typeof A=="boolean"&&(O=A,A=!1);var H,j,Y;return A||(v.createHTMLDocument?(A=m.implementation.createHTMLDocument(""),H=A.createElement("base"),H.href=m.location.href,A.head.appendChild(H)):A=m),j=Q.exec(T),Y=!O&&[],j?[A.createElement(j[1])]:(j=br([T],A,Y),Y&&Y.length&&w(Y).remove(),w.merge([],j.childNodes))},w.fn.load=function(T,A,O){var H,j,Y,J=this,xe=T.indexOf(" ");return xe>-1&&(H=Vu(T.slice(xe)),T=T.slice(0,xe)),p(A)?(O=A,A=void 0):A&&typeof A=="object"&&(j="POST"),J.length>0&&w.ajax({url:T,type:j||"GET",dataType:"html",data:A}).done(function(pe){Y=arguments,J.html(H?w("<div>").append(w.parseHTML(pe)).find(H):pe)}).always(O&&function(pe,Ne){J.each(function(){O.apply(this,Y||[pe.responseText,Ne,pe])})}),this},w.expr.pseudos.animated=function(T){return w.grep(w.timers,function(A){return T===A.elem}).length},w.offset={setOffset:function(T,A,O){var H,j,Y,J,xe,pe,Ne,Qe=w.css(T,"position"),it=w(T),We={};Qe==="static"&&(T.style.position="relative"),xe=it.offset(),Y=w.css(T,"top"),pe=w.css(T,"left"),Ne=(Qe==="absolute"||Qe==="fixed")&&(Y+pe).indexOf("auto")>-1,Ne?(H=it.position(),J=H.top,j=H.left):(J=parseFloat(Y)||0,j=parseFloat(pe)||0),p(A)&&(A=A.call(T,O,w.extend({},xe))),A.top!=null&&(We.top=A.top-xe.top+J),A.left!=null&&(We.left=A.left-xe.left+j),"using"in A?A.using.call(T,We):it.css(We)}},w.fn.extend({offset:function(T){if(arguments.length)return T===void 0?this:this.each(function(j){w.offset.setOffset(this,T,j)});var A,O,H=this[0];if(H)return H.getClientRects().length?(A=H.getBoundingClientRect(),O=H.ownerDocument.defaultView,{top:A.top+O.pageYOffset,left:A.left+O.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var T,A,O,H=this[0],j={top:0,left:0};if(w.css(H,"position")==="fixed")A=H.getBoundingClientRect();else{for(A=this.offset(),O=H.ownerDocument,T=H.offsetParent||O.documentElement;T&&(T===O.body||T===O.documentElement)&&w.css(T,"position")==="static";)T=T.parentNode;T&&T!==H&&T.nodeType===1&&(j=w(T).offset(),j.top+=w.css(T,"borderTopWidth",!0),j.left+=w.css(T,"borderLeftWidth",!0))}return{top:A.top-j.top-w.css(H,"marginTop",!0),left:A.left-j.left-w.css(H,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var T=this.offsetParent;T&&w.css(T,"position")==="static";)T=T.offsetParent;return T||$e})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(T,A){var O=A==="pageYOffset";w.fn[T]=function(H){return ze(this,function(j,Y,J){var xe;if(g(j)?xe=j:j.nodeType===9&&(xe=j.defaultView),J===void 0)return xe?xe[A]:j[Y];xe?xe.scrollTo(O?xe.pageXOffset:J,O?J:xe.pageYOffset):j[Y]=J},T,H,arguments.length)}}),w.each(["top","left"],function(T,A){w.cssHooks[A]=PD(v.pixelPosition,function(O,H){if(H)return H=sv(O,A),Aw.test(H)?w(O).position()[A]+"px":H})}),w.each({Height:"height",Width:"width"},function(T,A){w.each({padding:"inner"+T,content:A,"":"outer"+T},function(O,H){w.fn[H]=function(j,Y){var J=arguments.length&&(O||typeof j!="boolean"),xe=O||(j===!0||Y===!0?"margin":"border");return ze(this,function(pe,Ne,Qe){var it;return g(pe)?H.indexOf("outer")===0?pe["inner"+T]:pe.document.documentElement["client"+T]:pe.nodeType===9?(it=pe.documentElement,Math.max(pe.body["scroll"+T],it["scroll"+T],pe.body["offset"+T],it["offset"+T],it["client"+T])):Qe===void 0?w.css(pe,Ne,xe):w.style(pe,Ne,Qe,xe)},A,J?j:void 0,J)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(T,A){w.fn[A]=function(O){return this.on(A,O)}}),w.fn.extend({bind:function(T,A,O){return this.on(T,null,A,O)},unbind:function(T,A){return this.off(T,null,A)},delegate:function(T,A,O,H){return this.on(A,T,O,H)},undelegate:function(T,A,O){return arguments.length===1?this.off(T,"**"):this.off(A,T||"**",O)},hover:function(T,A){return this.on("mouseenter",T).on("mouseleave",A||T)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(T,A){w.fn[A]=function(O,H){return arguments.length>0?this.on(A,null,O,H):this.trigger(A)}});var Yq=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;w.proxy=function(T,A){var O,H,j;if(typeof A=="string"&&(O=T[A],A=T,T=O),!!p(T))return H=i.call(arguments,2),j=function(){return T.apply(A||this,H.concat(i.call(arguments)))},j.guid=T.guid=T.guid||w.guid++,j},w.holdReady=function(T){T?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=M,w.isFunction=p,w.isWindow=g,w.camelCase=qe,w.type=S,w.now=Date.now,w.isNumeric=function(T){var A=w.type(T);return(A==="number"||A==="string")&&!isNaN(T-parseFloat(T))},w.trim=function(T){return T==null?"":(T+"").replace(Yq,"$1")};var qq=t.jQuery,Xq=t.$;return w.noConflict=function(T){return t.$===w&&(t.$=Xq),T&&t.jQuery===w&&(t.jQuery=qq),w},typeof n>"u"&&(t.jQuery=t.$=w),w})})(rG);var wEe=rG.exports;const AYe=Fo(wEe);/*! *****************************************************************************
 
- Copyright (c) Microsoft Corporation.
 
- Permission to use, copy, modify, and/or distribute this software for any
 
- purpose with or without fee is hereby granted.
 
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
 
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
 
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
 
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 
- PERFORMANCE OF THIS SOFTWARE.
 
- ***************************************************************************** */var wT=function(e,t){return wT=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])},wT(e,t)};function Ae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wT(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var SEe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),CEe=function(){function e(){this.browser=new SEe,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}(),bc=new CEe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(bc.wxa=!0,bc.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?bc.worker=!0:typeof navigator>"u"?(bc.node=!0,bc.svgSupported=!0):xEe(navigator.userAgent,bc);function xEe(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 Tn=bc;var lE=12,aG="sans-serif",yu=lE+"px "+aG,TEe=20,kEe=100,MEe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function AEe(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)-TEe)/kEe;t[r]=a}return t}var EEe=AEe(MEe),Po={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var a=Po.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==r&&(t=e.font=r||yu),e.measureText(n);n=n||"",r=r||yu;var i=/(\d+)px/.exec(r),o=i&&+i[1]||lE,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var u=EEe[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 iG(e){for(var t in Po)e[t]&&(Po[t]=e[t])}var oG=Ji(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),sG=Ji(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),zh=Object.prototype.toString,$_=Array.prototype,IEe=$_.forEach,DEe=$_.filter,uE=$_.slice,PEe=$_.map,GO=(function(){}).constructor,xy=GO?GO.prototype:null,cE="__proto__",LEe=2311;function fE(){return LEe++}function B_(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function $t(e){if(e==null||typeof e!="object")return e;var t=e,n=zh.call(e);if(n==="[object Array]"){if(!Gd(e)){t=[];for(var r=0,a=e.length;r<a;r++)t[r]=$t(e[r])}}else if(sG[n]){if(!Gd(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(!oG[n]&&!Gd(e)&&!wh(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==cE&&(t[o]=$t(e[o]))}return t}function en(e,t,n){if(!Nt(t)||!Nt(e))return n?$t(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==cE){var a=e[r],i=t[r];Nt(i)&&Nt(a)&&!Xe(i)&&!Xe(a)&&!wh(i)&&!wh(a)&&!ST(i)&&!ST(a)&&!Gd(i)&&!Gd(a)?en(a,i,n):(n||!(r in e))&&(e[r]=$t(t[r]))}return e}function V_(e,t){for(var n=e[0],r=1,a=e.length;r<a;r++)n=en(n,e[r],t);return n}function Ge(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==cE&&(e[n]=t[n]);return e}function Lt(e,t,n){for(var r=mn(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 REe=Po.createCanvas;function sn(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 dE(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 Tr(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 Lt(e,t,n)}function ua(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function K(e,t,n){if(e&&t)if(e.forEach&&e.forEach===IEe)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 et(e,t,n){if(!e)return[];if(!t)return F_(e);if(e.map&&e.map===PEe)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 Ji(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 Bn(e,t,n){if(!e)return[];if(!t)return F_(e);if(e.filter&&e.filter===DEe)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 lG(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 mn(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 OEe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(uE.call(arguments)))}}var bt=xy&&Et(xy.bind)?xy.call.bind(xy.bind):OEe;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(uE.call(arguments)))}}function Xe(e){return Array.isArray?Array.isArray(e):zh.call(e)==="[object Array]"}function Et(e){return typeof e=="function"}function yt(e){return typeof e=="string"}function Xb(e){return zh.call(e)==="[object String]"}function kn(e){return typeof e=="number"}function Nt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function ST(e){return!!oG[zh.call(e)]}function si(e){return!!sG[zh.call(e)]}function wh(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Sm(e){return e.colorStops!=null}function uG(e){return e.image!=null}function cG(e){return zh.call(e)==="[object RegExp]"}function Sh(e){return e!==e}function Wr(){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 nn(e,t){return e??t}function Mo(e,t,n){return e??t??n}function F_(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return uE.apply(e,t)}function z_(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 Sa(e,t){if(!e)throw new Error(t)}function zi(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var fG="__ec_primitive__";function kg(e){e[fG]=!0}function Gd(e){return e[fG]}var NEe=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 mn(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e}(),dG=typeof Map=="function";function $Ee(){return dG?new Map:new NEe}var hG=function(){function e(t){var n=Xe(t);this.data=$Ee();var r=this;t instanceof e?t.each(a):t&&K(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 dG?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Mt(e){return new hG(e)}function Mg(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 Cm(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Ge(n,t),n}function hE(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function wt(e,t){return e.hasOwnProperty(t)}function Cr(){}var Ip=180/Math.PI;const BEe=Object.freeze(Object.defineProperty({__proto__:null,HashMap:hG,RADIAN_TO_DEGREE:Ip,assert:Sa,bind:bt,clone:$t,concatArray:Mg,createCanvas:REe,createHashMap:Mt,createObject:Cm,curry:Xt,defaults:Lt,disableUserSelect:hE,each:K,eqNaN:Sh,extend:Ge,filter:Bn,find:lG,guid:fE,hasOwn:wt,indexOf:sn,inherits:dE,isArray:Xe,isArrayLike:ua,isBuiltInObject:ST,isDom:wh,isFunction:Et,isGradientObject:Sm,isImagePatternObject:uG,isNumber:kn,isObject:Nt,isPrimitive:Gd,isRegExp:cG,isString:yt,isStringSafe:Xb,isTypedArray:si,keys:mn,logError:B_,map:et,merge:en,mergeAll:V_,mixin:Tr,noop:Cr,normalizeCssArray:z_,reduce:Ji,retrieve:Wr,retrieve2:nn,retrieve3:Mo,setAsPrimitive:kg,slice:F_,trim:zi},Symbol.toStringTag,{value:"Module"}));function Ru(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function ga(e,t){return e[0]=t[0],e[1]=t[1],e}function hs(e){return[e[0],e[1]]}function vG(e,t,n){return e[0]=t,e[1]=n,e}function CT(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Zb(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function jl(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Ag(e){return Math.sqrt(vE(e))}var VEe=Ag;function vE(e){return e[0]*e[0]+e[1]*e[1]}var FEe=vE;function zEe(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function HEe(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function WEe(e,t){return e[0]*t[0]+e[1]*t[1]}function Dp(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function If(e,t){var n=Ag(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Qb(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ws=Qb;function pG(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var au=pG;function GEe(e,t){return e[0]=-t[0],e[1]=-t[1],e}function Pp(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 Jr(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 Gs(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ks(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}const KEe=Object.freeze(Object.defineProperty({__proto__:null,add:CT,applyTransform:Jr,clone:hs,copy:ga,create:Ru,dist:Ws,distSquare:au,distance:Qb,distanceSquare:pG,div:HEe,dot:WEe,len:Ag,lenSquare:vE,length:VEe,lengthSquare:FEe,lerp:Pp,max:Ks,min:Gs,mul:zEe,negate:GEe,normalize:If,scale:Dp,scaleAndAdd:Zb,set:vG,sub:jl},Symbol.toStringTag,{value:"Module"}));var Yf=function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e}(),UEe=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 Yf(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 Yf(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 Yf(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Yf(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Yf(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Yf(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const jEe=UEe;var YEe=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 to=YEe;var qEe=Math.log(2);function xT(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)/qEe);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]*xT(e,t-1,c,u,a|v,i),h++)}return i[o]=f,f}function KO(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=xT(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)*xT(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 UO="___zrEVENTSAVED",ES=[];function XEe(e,t,n,r,a){return TT(ES,t,r,a,!0)&&TT(e,n,ES[0],ES[1])}function TT(e,t,n,r,a){if(t.getBoundingClientRect&&Tn.domSupported&&!gG(t)){var i=t[UO]||(t[UO]={}),o=ZEe(t,i),s=QEe(o,i,a);if(s)return s(e,n,r),!0}return!1}function ZEe(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 QEe(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?KO(s,o):KO(o,s))}function gG(e){return e.nodeName.toUpperCase()==="CANVAS"}var JEe=/([&<>"'])/g,eIe={"&":"&","<":"<",">":">",'"':""","'":"'"};function Pa(e){return e==null?"":(e+"").replace(JEe,function(t,n){return eIe[n]})}var tIe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,IS=[],nIe=Tn.browser.firefox&&+Tn.browser.version.split(".")[0]<39;function kT(e,t,n,r){return n=n||{},r?jO(e,t,n):nIe&&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):jO(e,t,n),n}function jO(e,t,n){if(Tn.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(gG(e)){var i=e.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(TT(IS,e,r,a)){n.zrX=IS[0],n.zrY=IS[1];return}}n.zrX=n.zrY=0}function pE(e){return e||window.event}function Di(e,t,n){if(t=pE(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&&kT(e,o,t,n)}else{kT(e,t,t,n);var i=rIe(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&tIe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function rIe(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 MT(e,t,n,r){e.addEventListener(t,n,r)}function aIe(e,t,n,r){e.removeEventListener(t,n,r)}var nl=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function YO(e){return e.which===2||e.which===3}var iIe=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=kT(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 DS)if(DS.hasOwnProperty(n)){var r=DS[n](this._track,t);if(r)return r}},e}();function qO(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function oIe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var DS={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=qO(r)/qO(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=oIe(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function wi(){return[1,0,0,1,0,0]}function xm(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function H_(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 vs(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 Lo(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 Ou(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 W_(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 Df(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 mG(e){var t=wi();return H_(t,e),t}const sIe=Object.freeze(Object.defineProperty({__proto__:null,clone:mG,copy:H_,create:wi,identity:xm,invert:Df,mul:vs,rotate:Ou,scale:W_,translate:Lo},Symbol.toStringTag,{value:"Module"}));var lIe=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 tn=lIe;var Ty=Math.min,ky=Math.max,Yu=new tn,qu=new tn,Xu=new tn,Zu=new tn,xv=new tn,Tv=new tn,uIe=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=Ty(t.x,this.x),r=Ty(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ky(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ky(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=wi();return Lo(i,i,[-n.x,-n.y]),W_(i,i,[r,a]),Lo(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),S=Math.min(m,b);i<l||u<a?_>v&&(v=_,p<g?tn.set(Tv,-p,0):tn.set(Tv,g,0)):_<h&&(h=_,p<g?tn.set(xv,p,0):tn.set(xv,-g,0)),s<c||f<o?S>v&&(v=S,m<b?tn.set(Tv,0,-m):tn.set(Tv,0,b)):_<h&&(h=_,m<b?tn.set(xv,0,m):tn.set(xv,0,-b))}return n&&tn.copy(n,d?xv:Tv),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}Yu.x=Xu.x=n.x,Yu.y=Zu.y=n.y,qu.x=Zu.x=n.x+n.width,qu.y=Xu.y=n.y+n.height,Yu.transform(r),Zu.transform(r),qu.transform(r),Xu.transform(r),t.x=Ty(Yu.x,qu.x,Xu.x,Zu.x),t.y=Ty(Yu.y,qu.y,Xu.y,Zu.y);var l=ky(Yu.x,qu.x,Xu.x,Zu.x),u=ky(Yu.y,qu.y,Xu.y,Zu.y);t.width=l-t.x,t.height=u-t.y},e}();const rn=uIe;var yG="silent";function cIe(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:fIe}}function fIe(){nl(this.event)}var dIe=function(e){Ae(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}(to),kv=function(){function e(t,n){this.x=t,this.y=n}return e}(),hIe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],PS=new rn(0,0,0,0),bG=function(e){Ae(t,e);function t(n,r,a,i,o){var s=e.call(this)||this;return s._hovered=new kv(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new dIe,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new jEe(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(K(hIe,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=_G(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 kv(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 kv(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=cIe(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 kv(n,r);if(XO(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new rn(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)&&(PS.copy(d.getBoundingRect()),d.transform&&PS.applyTransform(d.transform),PS.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(XO(s,o,b,_,a),o.target)return o}}return o},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new iIe);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 kv;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(to);K(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){bG.prototype[e]=function(t){var n=t.zrX,r=t.zrY,a=_G(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||Ws(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function vIe(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?yG:!0}return!1}function XO(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=vIe(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==yG)){t.target=o;break}}}function _G(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}const pIe=bG;var wG=32,Mv=7;function gIe(e){for(var t=0;e>=wG;)t|=e&1,e>>=1;return e+t}function ZO(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++;mIe(e,t,a)}else for(;a<n&&r(e[a],e[a-1])>=0;)a++;return a-t}function mIe(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function QO(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 LS(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 RS(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 yIe(e,t){var n=Mv,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=RS(e[g],e,v,p,0,t);v+=b,p-=b,p!==0&&(m=LS(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,S=h;if(e[S++]=e[_++],--g===0){for(m=0;m<v;m++)e[S+m]=o[b+m];return}if(v===1){for(m=0;m<g;m++)e[S+m]=e[_+m];e[S+g]=o[b];return}for(var x=n,C,w,k;;){C=0,w=0,k=!1;do if(t(e[_],o[b])<0){if(e[S++]=e[_++],w++,C=0,--g===0){k=!0;break}}else if(e[S++]=o[b++],C++,w=0,--v===1){k=!0;break}while((C|w)<x);if(k)break;do{if(C=RS(e[_],o,b,v,0,t),C!==0){for(m=0;m<C;m++)e[S+m]=o[b+m];if(S+=C,b+=C,v-=C,v<=1){k=!0;break}}if(e[S++]=e[_++],--g===0){k=!0;break}if(w=LS(o[b],e,_,g,0,t),w!==0){for(m=0;m<w;m++)e[S+m]=e[_+m];if(S+=w,_+=w,g-=w,g===0){k=!0;break}}if(e[S++]=o[b++],--v===1){k=!0;break}x--}while(C>=Mv||w>=Mv);if(k)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),v===1){for(m=0;m<g;m++)e[S+m]=e[_+m];e[S+g]=o[b]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[S+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,S=p+g-1,x=0,C=0;if(e[S--]=e[b--],--v===0){for(x=S-(g-1),m=0;m<g;m++)e[x+m]=o[m];return}if(g===1){for(S-=v,b-=v,C=S+1,x=b+1,m=v-1;m>=0;m--)e[C+m]=e[x+m];e[S]=o[_];return}for(var w=n;;){var k=0,M=0,I=!1;do if(t(o[_],e[b])<0){if(e[S--]=e[b--],k++,M=0,--v===0){I=!0;break}}else if(e[S--]=o[_--],M++,k=0,--g===1){I=!0;break}while((k|M)<w);if(I)break;do{if(k=v-RS(o[_],e,h,v,v-1,t),k!==0){for(S-=k,b-=k,v-=k,C=S+1,x=b+1,m=k-1;m>=0;m--)e[C+m]=e[x+m];if(v===0){I=!0;break}}if(e[S--]=o[_--],--g===1){I=!0;break}if(M=g-LS(e[b],o,0,g,g-1,t),M!==0){for(S-=M,_-=M,g-=M,C=S+1,x=_+1,m=0;m<M;m++)e[C+m]=o[x+m];if(g<=1){I=!0;break}}if(e[S--]=e[b--],--v===0){I=!0;break}w--}while(k>=Mv||M>=Mv);if(I)break;w<0&&(w=0),w+=2}if(n=w,n<1&&(n=1),g===1){for(S-=v,b-=v,C=S+1,x=b+1,m=v-1;m>=0;m--)e[C+m]=e[x+m];e[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),m=0;m<g;m++)e[x+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function rb(e,t,n,r){n||(n=0),r||(r=e.length);var a=r-n;if(!(a<2)){var i=0;if(a<wG){i=ZO(e,n,r,t),QO(e,n,r,n+i,t);return}var o=yIe(e,t),s=gIe(a);do{if(i=ZO(e,n,r,t),i<s){var l=a;l>s&&(l=s),QO(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 di=1,rp=2,_d=4,JO=!1;function OS(){JO||(JO=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function eN(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var bIe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=eN}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,rb(r,eN)},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|=di),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)&&(OS(),c.z=0),isNaN(c.z2)&&(OS(),c.z2=0),isNaN(c.zlevel)&&(OS(),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=sn(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 _Ie=bIe;var SG;SG=Tn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const AT=SG;var ab={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-ab.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?ab.bounceIn(e*2)*.5:ab.bounceOut(e*2-1)*.5+.5}};const CG=ab;var My=Math.pow,iu=Math.sqrt,Jb=1e-8,xG=1e-4,tN=iu(3),Ay=1/3,is=Ru(),Ni=Ru(),Kd=Ru();function Yl(e){return e>-Jb&&e<Jb}function TG(e){return e>Jb||e<-Jb}function Hr(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 nN(e,t,n,r,a){var i=1-a;return 3*(((t-e)*i+2*(n-t)*a)*i+(r-n)*a*a)}function e1(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(Yl(c)&&Yl(f))if(Yl(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(Yl(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=iu(p),_=c*s+1.5*o*(-f+b),S=c*s+1.5*o*(-f-b);_<0?_=-My(-_,Ay):_=My(_,Ay),S<0?S=-My(-S,Ay):S=My(S,Ay);var v=(-s-(_+S))/(3*o);v>=0&&v<=1&&(i[h++]=v)}else{var x=(2*c*s-3*o*f)/(2*iu(c*c*c)),C=Math.acos(x)/3,w=iu(c),k=Math.cos(C),v=(-s-2*w*k)/(3*o),m=(-s+w*(k+tN*Math.sin(C)))/(3*o),M=(-s+w*(k-tN*Math.sin(C)))/(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 kG(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(Yl(o)){if(TG(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Yl(c))a[0]=-i/(2*o);else if(c>0){var f=iu(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 bu(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 MG(e,t,n,r,a,i,o,s,l,u,c){var f,d=.005,h=1/0,v,p,g,m;is[0]=l,is[1]=u;for(var b=0;b<1;b+=.05)Ni[0]=Hr(e,n,a,o,b),Ni[1]=Hr(t,r,i,s,b),g=au(is,Ni),g<h&&(f=b,h=g);h=1/0;for(var _=0;_<32&&!(d<xG);_++)v=f-d,p=f+d,Ni[0]=Hr(e,n,a,o,v),Ni[1]=Hr(t,r,i,s,v),g=au(Ni,is),v>=0&&g<h?(f=v,h=g):(Kd[0]=Hr(e,n,a,o,p),Kd[1]=Hr(t,r,i,s,p),m=au(Kd,is),p<=1&&m<h?(f=p,h=m):d*=.5);return c&&(c[0]=Hr(e,n,a,o,f),c[1]=Hr(t,r,i,s,f)),iu(h)}function wIe(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=Hr(e,n,a,o,v),g=Hr(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 Zr(e,t,n,r){var a=1-r;return a*(a*e+2*r*t)+r*r*n}function ET(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function SIe(e,t,n,r,a){var i=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(Yl(i)){if(TG(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Yl(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=iu(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 AG(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Eg(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 EG(e,t,n,r,a,i,o,s,l){var u,c=.005,f=1/0;is[0]=o,is[1]=s;for(var d=0;d<1;d+=.05){Ni[0]=Zr(e,n,a,d),Ni[1]=Zr(t,r,i,d);var h=au(is,Ni);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<xG);v++){var p=u-c,g=u+c;Ni[0]=Zr(e,n,a,p),Ni[1]=Zr(t,r,i,p);var h=au(Ni,is);if(p>=0&&h<f)u=p,f=h;else{Kd[0]=Zr(e,n,a,g),Kd[1]=Zr(t,r,i,g);var m=au(Kd,is);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=Zr(e,n,a,u),l[1]=Zr(t,r,i,u)),iu(f)}function CIe(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=Zr(e,n,a,d),v=Zr(t,r,i,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var xIe=/cubic-bezier\(([0-9,\.e ]+)\)/;function gE(e){var t=e&&xIe.exec(e);if(t){var n=t[1].split(","),r=+zi(n[0]),a=+zi(n[1]),i=+zi(n[2]),o=+zi(n[3]);if(isNaN(r+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:e1(0,r,i,1,l,s)&&Hr(0,a,o,1,s[0])}}}var TIe=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||Cr,this.ondestroy=t.ondestroy||Cr,this.onrestart=t.onrestart||Cr,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=Et(t)?t:CG[t]||gE(t)},e}();const kIe=TIe;var IG=function(){function e(t){this.value=t}return e}(),MIe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new IG(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}(),AIe=function(){function e(t){this._list=new MIe,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 IG(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 Tm=AIe;var rN={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 Ao(e){return e=Math.round(e),e<0?0:e>255?255:e}function EIe(e){return e=Math.round(e),e<0?0:e>360?360:e}function Ig(e){return e<0?0:e>1?1:e}function NS(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ao(parseFloat(t)/100*255):Ao(parseInt(t,10))}function tf(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Ig(parseFloat(t)/100):Ig(parseFloat(t))}function $S(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 ql(e,t,n){return e+(t-e)*n}function Ii(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function IT(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var DG=new Tm(20),Ey=null;function qf(e,t){Ey&&IT(Ey,t),Ey=DG.put(e,Ey||t.slice())}function Na(e,t){if(e){t=t||[];var n=DG.get(e);if(n)return IT(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in rN)return IT(t,rN[r]),qf(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)){Ii(t,0,0,0,1);return}return Ii(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),qf(e,t),t}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Ii(t,0,0,0,1);return}return Ii(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),qf(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?Ii(t,+u[0],+u[1],+u[2],1):Ii(t,0,0,0,1);c=tf(u.pop());case"rgb":if(u.length>=3)return Ii(t,NS(u[0]),NS(u[1]),NS(u[2]),u.length===3?c:tf(u[3])),qf(e,t),t;Ii(t,0,0,0,1);return;case"hsla":if(u.length!==4){Ii(t,0,0,0,1);return}return u[3]=tf(u[3]),DT(u,t),qf(e,t),t;case"hsl":if(u.length!==3){Ii(t,0,0,0,1);return}return DT(u,t),qf(e,t),t;default:return}}Ii(t,0,0,0,1)}}function DT(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=tf(e[1]),a=tf(e[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return t=t||[],Ii(t,Ao($S(o,i,n+1/3)*255),Ao($S(o,i,n)*255),Ao($S(o,i,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function IIe(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 t1(e,t){var n=Na(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 Eo(n,n.length===4?"rgba":"rgb")}}function DIe(e){var t=Na(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Lp(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]=Ao(ql(o[0],s[0],l)),n[1]=Ao(ql(o[1],s[1],l)),n[2]=Ao(ql(o[2],s[2],l)),n[3]=Ig(ql(o[3],s[3],l)),n}}var PIe=Lp;function mE(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=Na(t[a]),s=Na(t[i]),l=r-a,u=Eo([Ao(ql(o[0],s[0],l)),Ao(ql(o[1],s[1],l)),Ao(ql(o[2],s[2],l)),Ig(ql(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}var LIe=mE;function Ud(e,t,n,r){var a=Na(e);if(e)return a=IIe(a),t!=null&&(a[0]=EIe(t)),n!=null&&(a[1]=tf(n)),r!=null&&(a[2]=tf(r)),Eo(DT(a),"rgba")}function Dg(e,t){var n=Na(e);if(n&&t!=null)return n[3]=Ig(t),Eo(n,"rgba")}function Eo(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 Pg(e,t){var n=Na(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function RIe(){return Eo([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const OIe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Lp,fastMapToColor:PIe,lerp:mE,lift:t1,lum:Pg,mapToColor:LIe,modifyAlpha:Dg,modifyHSL:Ud,parse:Na,random:RIe,stringify:Eo,toHex:DIe},Symbol.toStringTag,{value:"Module"}));var n1=Math.round;function Lg(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=Na(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var aN=1e-4;function Xl(e){return e<aN&&e>-aN}function Iy(e){return n1(e*1e3)/1e3}function PT(e){return n1(e*1e4)/1e4}function NIe(e){return"matrix("+Iy(e[0])+","+Iy(e[1])+","+Iy(e[2])+","+Iy(e[3])+","+PT(e[4])+","+PT(e[5])+")"}var $Ie={left:"start",right:"end",center:"middle",middle:"middle"};function BIe(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function VIe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function FIe(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 PG(e){return e&&!!e.image}function zIe(e){return e&&!!e.svgElement}function yE(e){return PG(e)||zIe(e)}function LG(e){return e.type==="linear"}function RG(e){return e.type==="radial"}function OG(e){return e&&(e.type==="linear"||e.type==="radial")}function G_(e){return"url(#"+e+")"}function NG(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 $G(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Ip,a=nn(e.scaleX,1),i=nn(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("+n1(o*Ip)+"deg, "+n1(s*Ip)+"deg)"),l.join(" ")}var HIe=function(){return Tn.hasGlobalWindow&&Et(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}}(),LT=Array.prototype.slice;function Bs(e,t,n){return(t-e)*n+e}function BS(e,t,n,r){for(var a=t.length,i=0;i<a;i++)e[i]=Bs(t[i],n[i],r);return e}function WIe(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]=Bs(t[o][s],n[o][s],r)}return e}function Dy(e,t,n,r){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+n[i]*r;return e}function iN(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 GIe(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 KIe(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]:LT.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 Rp(e){if(ua(e)){var t=e.length;if(ua(e[0])){for(var n=[],r=0;r<t;r++)n.push(LT.call(e[r]));return n}return LT.call(e)}return e}function ib(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 UIe(e){return ua(e&&e[0])?2:1}var Py=0,ob=1,BG=2,ap=3,RT=4,OT=5,oN=6;function sN(e){return e===RT||e===OT}function Ly(e){return e===ob||e===BG}var Av=[0,0,0,0],jIe=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=oN,l=n;if(ua(n)){var u=UIe(n);s=u,(u===1&&!kn(n[0])||u===2&&!kn(n[0][0]))&&(o=!0)}else if(kn(n)&&!Sh(n))s=Py;else if(yt(n))if(!isNaN(+n))s=Py;else{var c=Na(n);c&&(l=c,s=ap)}else if(Sm(n)){var f=Ge({},l);f.colorStops=et(n.colorStops,function(h){return{offset:h.offset,color:Na(h.color)}}),LG(n)?s=RT:RG(n)&&(s=OT),l=f}i===0?this.valType=s:(s!==this.valType||s===oN)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=Et(r)?r:CG[r]||gE(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=Ly(a),u=sN(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?KIe(d,h,a):u&&GIe(d.colorStops,h.colorStops))}if(!s&&a!==OT&&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===Py?r[c].additiveValue=r[c].value-v:a===ap?r[c].additiveValue=Dy([],r[c].value,v,-1):Ly(a)&&(r[c].additiveValue=a===ob?Dy([],r[c].value,v,-1):iN([],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===ap,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?Av:t[l];if((Ly(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(Ly(i))i===ob?BS(b,h[a],v[a],m):WIe(b,h[a],v[a],m);else if(sN(i)){var _=h[a],S=v[a],x=i===RT;t[l]={type:x?"linear":"radial",x:Bs(_.x,S.x,m),y:Bs(_.y,S.y,m),colorStops:et(_.colorStops,function(w,k){var M=S.colorStops[k];return{offset:Bs(w.offset,M.offset,m),color:ib(BS([],w.color,M.color,m))}}),global:S.global},x?(t[l].x2=Bs(_.x2,S.x2,m),t[l].y2=Bs(_.y2,S.y2,m)):t[l].r=Bs(_.r,S.r,m)}else if(u)BS(b,h[a],v[a],m),r||(t[l]=ib(b));else{var C=Bs(h[a],v[a],m);r?this._additiveValue=C:t[l]=C}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,a=this._additiveValue;n===Py?t[r]=t[r]+a:n===ap?(Na(t[r],Av),Dy(Av,Av,a,1),t[r]=ib(Av)):n===ob?Dy(t[r],t[r],a,1):n===BG&&iN(t[r],t[r],a,1)},e}(),YIe=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){B_("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,mn(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 jIe(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===ap&&u&&(u=ib(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Rp(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Rp(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 kIe({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 et(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]=Rp(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||mn(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 bE=YIe;function Ed(){return new Date().getTime()}var qIe=function(e){Ae(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=Ed()-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&&(AT(r),!n._paused&&n.update())}AT(r)},t.prototype.start=function(){this._running||(this._time=Ed(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ed(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ed()-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 bE(n,r.loop);return this.addAnimator(a),a},t}(to);const XIe=qIe;var ZIe=300,VS=Tn.domSupported,FS=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=et(e,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:r}}(),lN={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},uN=!1;function NT(e){var t=e.pointerType;return t==="pen"||t==="touch"}function QIe(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 zS(e){e&&(e.zrByTouch=!0)}function JIe(e,t){return Di(e.dom,new eDe(e,t),!0)}function VG(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 eDe=function(){function e(t,n){this.stopPropagation=Cr,this.stopImmediatePropagation=Cr,this.preventDefault=Cr,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),po={mousedown:function(e){e=Di(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Di(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=Di(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Di(this.dom,e);var t=e.toElement||e.relatedTarget;VG(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){uN=!0,e=Di(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){uN||(e=Di(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Di(this.dom,e),zS(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),po.mousemove.call(this,e),po.mousedown.call(this,e)},touchmove:function(e){e=Di(this.dom,e),zS(e),this.handler.processGesture(e,"change"),po.mousemove.call(this,e)},touchend:function(e){e=Di(this.dom,e),zS(e),this.handler.processGesture(e,"end"),po.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<ZIe&&po.click.call(this,e)},pointerdown:function(e){po.mousedown.call(this,e)},pointermove:function(e){NT(e)||po.mousemove.call(this,e)},pointerup:function(e){po.mouseup.call(this,e)},pointerout:function(e){NT(e)||po.mouseout.call(this,e)}};K(["click","dblclick","contextmenu"],function(e){po[e]=function(t){t=Di(this.dom,t),this.trigger(e,t)}});var $T={pointermove:function(e){NT(e)||$T.mousemove.call(this,e)},pointerup:function(e){$T.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 tDe(e,t){var n=t.domHandlers;Tn.pointerEventsSupported?K(FS.pointer,function(r){sb(t,r,function(a){n[r].call(e,a)})}):(Tn.touchEventsSupported&&K(FS.touch,function(r){sb(t,r,function(a){n[r].call(e,a),QIe(t)})}),K(FS.mouse,function(r){sb(t,r,function(a){a=pE(a),t.touching||n[r].call(e,a)})}))}function nDe(e,t){Tn.pointerEventsSupported?K(lN.pointer,n):Tn.touchEventsSupported||K(lN.mouse,n);function n(r){function a(i){i=pE(i),VG(e,i.target)||(i=JIe(e,i),t.domHandlers[r].call(e,i))}sb(t,r,a,{capture:!0})}}function sb(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,MT(e.domTarget,t,n,r)}function HS(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&aIe(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var cN=function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e}(),rDe=function(e){Ae(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 cN(n,po),VS&&(a._globalHandlerScope=new cN(document,$T)),tDe(a,a._localHandlerScope),a}return t.prototype.dispose=function(){HS(this._localHandlerScope),VS&&HS(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,VS&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?nDe(this,r):HS(r)}},t}(to);const aDe=rDe;var FG=1;Tn.hasGlobalWindow&&(FG=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var r1=FG,BT=.4,VT="#333",FT="#ccc",iDe="#eee",fN=xm,dN=5e-5;function Qu(e){return e>dN||e<-dN}var Ju=[],Xf=[],WS=wi(),GS=Math.abs,oDe=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 Qu(this.rotation)||Qu(this.x)||Qu(this.y)||Qu(this.scaleX-1)||Qu(this.scaleY-1)||Qu(this.skewX)||Qu(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(fN(r),this.invTransform=null);return}r=r||wi(),n?this.getLocalTransform(r):fN(r),t&&(n?vs(r,t,r):H_(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Ju);var r=Ju[0]<0?-1:1,a=Ju[1]<0?-1:1,i=((Ju[0]-r)*n+r)/Ju[0]||0,o=((Ju[1]-a)*n+a)/Ju[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||wi(),Df(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&&(vs(Xf,t.invTransform,n),n=Xf);var r=this.originX,a=this.originY;(r||a)&&(WS[4]=r,WS[5]=a,vs(Xf,n,WS),Xf[4]-=r,Xf[5]-=a,n=Xf),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&&Jr(r,r,a),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],a=this.transform;return a&&Jr(r,r,a),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&GS(t[0]-1)>1e-10&&GS(t[3]-1)>1e-10?Math.sqrt(GS(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){zG(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&&Ou(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}(),ws=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function zG(e,t){for(var n=0;n<ws.length;n++){var r=ws[n];e[r]=t[r]}}const Us=oDe;var hN={};function _i(e,t){t=t||yu;var n=hN[t];n||(n=hN[t]=new Tm(500));var r=n.get(e);return r==null&&(r=Po.measureText(e,t).width,n.put(e,r)),r}function vN(e,t,n,r){var a=_i(e,t),i=K_(t),o=ip(0,a,n),s=wd(0,i,r),l=new rn(o,s,a,i);return l}function km(e,t,n,r){var a=((e||"")+"").split(`
 
- `),i=a.length;if(i===1)return vN(a[0],t,n,r);for(var o=new rn(0,0,0,0),s=0;s<a.length;s++){var l=vN(a[s],t,n,r);s===0?o.copy(l):o.union(l)}return o}function ip(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function wd(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function K_(e){return _i("国",e)}function Ro(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function a1(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+=Ro(r[0],n.width),u+=Ro(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 KS="__zr_normal__",US=ws.concat(["ignore"]),sDe=Ji(ws,function(e,t){return e[t]=!0,e},{ignore:!1}),Zf={},lDe=new rn(0,0,0,0),_E=function(){function e(t){this.id=fE(),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=lDe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Zf,r,c):a1(Zf,r,c),i.x=Zf.x,i.y=Zf.y,o=Zf.align,s=Zf.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=Ro(f[0],c.width),h=Ro(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|=di,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()?FT:VT},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Na(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,Eo(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||{},Ge(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(Nt(t))for(var r=t,a=mn(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!==KS)){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,US)},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(KS,!1,t)},e.prototype.useState=function(t,n,r,a){var i=t===KS,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(sn(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){B_("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&=~di),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&=~di)}},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=sn(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=sn(a,t),o=sn(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];Ge(n,i),i.textConfig&&(r=r||{},Ge(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=Ge({},a?this.textConfig:r.textConfig),Ge(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<US.length;c++){var f=US[c],d=i&&sDe[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 Us,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Ge(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|=di;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 bE(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=sn(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){jS(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){jS(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,a){for(var i=jS(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=di;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}();Tr(_E,to);Tr(_E,Us);function jS(e,t,n,r,a){n=n||{};var i=[];HG(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 YS(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function uDe(e){return ua(e[0])}function cDe(e,t,n){if(ua(t[n]))if(ua(e[n])||(e[n]=[]),si(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),YS(e[n],t[n],r))}else{var a=t[n],i=e[n],o=a.length;if(uDe(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?YS(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else YS(i,a,o);i.length=a.length}else e[n]=t[n]}function fDe(e,t){return e===t||ua(e)&&ua(t)&&dDe(e,t)}function dDe(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 HG(e,t,n,r,a,i,o,s){for(var l=mn(r),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!Nt(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(Nt(b)&&!ua(b)&&!Sm(b)){if(t){s||(n[m]=b,e.updateDuringAnimation(t));continue}HG(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 S=0;S<v.length;S++){var x=v[S];if(x.targetName===t){var C=x.stopTracks(p);if(C){var w=sn(v,x);v.splice(w,1)}}}if(a.force||(p=Bn(p,function(E){return!fDe(r[E],n[E])}),_=p.length),_>0||a.force&&!o.length){var k=void 0,M=void 0,I=void 0;if(s){M={},d&&(k={});for(var S=0;S<_;S++){var m=p[S];M[m]=n[m],d?k[m]=r[m]:n[m]=r[m]}}else if(d){I={};for(var S=0;S<_;S++){var m=p[S];I[m]=Rp(n[m]),cDe(n,r,m)}}var x=new bE(n,!1,!1,f?Bn(v,function(D){return D.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),d&&k&&x.whenWithKeys(0,k,p),I&&x.whenWithKeys(0,I,p),x.whenWithKeys(u??500,s?M:r,p).delay(c||0),e.addAnimator(x,t),o.push(x)}}const WG=_E;var GG=function(e){Ae(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=sn(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=sn(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 rn(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?(rn.applyTransform(r,u,c),o=o||r.clone(),o.union(r)):(o=o||u.clone(),o.union(u))}}return o||r},t}(WG);GG.prototype.type="group";const zt=GG;/*!
 
- * ZRender, a high performance 2d drawing library.
 
- *
 
- * Copyright (c) 2013, Baidu Inc.
 
- * All rights reserved.
 
- *
 
- * LICENSE
 
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
 
- */var lb={},Hc={};function hDe(e){delete Hc[e]}function vDe(e){if(!e)return!1;if(typeof e=="string")return Pg(e,1)<BT;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,a=0;a<r;a++)n+=Pg(t[a].color,1);return n/=r,n<BT}return!1}var pDe=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 _Ie,o=r.renderer||"canvas";lb[o]||(o=mn(lb)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new lb[o](n,i,r,t),l=r.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Tn.node&&!Tn.worker&&!l?new aDe(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Tn.touchEventsSupported:!!c,d=44,h;f&&(h=nn(r.pointerSize,d)),this.handler=new pIe(i,s,u,s.root,h),this.animation=new XIe({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=vDe(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=Ed();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=Ed();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 zt&&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,hDe(this.id)},e}();function zT(e,t){var n=new pDe(fE(),e,t);return Hc[n.id]=n,n}function gDe(e){e.dispose()}function mDe(){for(var e in Hc)Hc.hasOwnProperty(e)&&Hc[e].dispose();Hc={}}function yDe(e){return Hc[e]}function KG(e,t){lb[e]=t}var bDe="5.4.4";const _De=Object.freeze(Object.defineProperty({__proto__:null,dispose:gDe,disposeAll:mDe,getInstance:yDe,init:zT,registerPainter:KG,version:bDe},Symbol.toStringTag,{value:"Module"}));var pN=1e-4,UG=20;function wDe(e){return e.replace(/^\s+|\s+$/g,"")}function $n(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 ht(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 yt(e)?wDe(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function pr(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),UG),e=(+e).toFixed(t),n?e:+e}function mi(e){return e.sort(function(t,n){return t-n}),e}function So(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 jG(e)}function jG(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 wE(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 SDe(e,t,n){if(!e[t])return 0;var r=YG(e,n);return r[t]||0}function YG(e,t){var n=Ji(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(n===0)return[];for(var r=Math.pow(10,t),a=et(e,function(h){return(isNaN(h)?0:h)/n*r*100}),i=r*100,o=et(a,function(h){return Math.floor(h)}),s=Ji(o,function(h,v){return h+v},0),l=et(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 et(o,function(h){return h/r})}function CDe(e,t){var n=Math.max(So(e),So(t)),r=e+t;return n>UG?r:pr(r,n)}var HT=9007199254740991;function SE(e){var t=Math.PI*2;return(e%t+t)%t}function Rg(e){return e>-pN&&e<pN}var xDe=/^(?:(\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 Si(e){if(e instanceof Date)return e;if(yt(e)){var t=xDe.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 qG(e){return Math.pow(10,U_(e))}function U_(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 CE(e,t){var n=U_(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 ub(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 WT(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 Ss(e){var t=parseFloat(e);return t==e&&(t!==0||!yt(e)||e.indexOf("x")<=0)?t:NaN}function xE(e){return!isNaN(Ss(e))}function XG(){return Math.round(Math.random()*9)}function ZG(e,t){return t===0?e:ZG(t,e%t)}function gN(e,t){return e==null?t:t==null?e:e*t/ZG(e,t)}function On(e){throw new Error(e)}function mN(e,t,n){return(t-e)*n+e}var QG="series\0",JG="\0_ec_\0";function Kn(e){return e instanceof Array?e:e==null?[]:[e]}function gf(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 yN=["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 Hh(e){return Nt(e)&&!Xe(e)&&!(e instanceof Date)?e.value:e}function TDe(e){return Nt(e)&&!(e instanceof Array)}function e9(e,t,n){var r=n==="normalMerge",a=n==="replaceMerge",i=n==="replaceAll";e=e||[],t=(t||[]).slice();var o=Mt();K(t,function(l,u){if(!Nt(l)){t[u]=null;return}});var s=kDe(e,o,n);return(r||a)&&MDe(s,e,o,t),r&&ADe(s,t),r||a?EDe(s,t,a):i&&IDe(s,t),DDe(s),s}function kDe(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"||Og(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function MDe(e,t,n,r){K(r,function(a,i){if(!(!a||a.id==null)){var o=Op(a.id),s=n.get(o);if(s!=null){var l=e[s];Sa(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],r[i]=null}}})}function ADe(e,t){K(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)&&!Og(n)&&!Og(i)&&t9("name",i,n)){e[a].newOption=n,t[r]=null;return}}})}function EDe(e,t,n){K(t,function(r){if(r){for(var a,i=0;(a=e[i])&&(a.newOption||Og(a.existing)||a.existing&&r.id!=null&&!t9("id",r,a.existing));)i++;a?(a.newOption=r,a.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),i++}})}function IDe(e,t){K(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function DDe(e){var t=Mt();K(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),K(e,function(n){var r=n.newOption;Sa(!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={})}),K(e,function(n,r){var a=n.existing,i=n.newOption,o=n.keyInfo;if(Nt(i)){if(o.name=i.name!=null?Op(i.name):a?a.name:QG+r,a)o.id=Op(a.id);else if(i.id!=null)o.id=Op(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 t9(e,t,n){var r=Fr(t[e],null),a=Fr(n[e],null);return r!=null&&a!=null&&r===a}function Op(e){return Fr(e,"")}function Fr(e,t){return e==null?t:yt(e)?e:kn(e)||Xb(e)?e+"":t}function TE(e){var t=e.name;return!!(t&&t.indexOf(QG))}function Og(e){return e&&e.id!=null&&Op(e.id).indexOf(JG)===0}function PDe(e){return JG+e}function LDe(e,t,n){K(e,function(r){var a=r.newOption;Nt(a)&&(r.keyInfo.mainType=t,r.keyInfo.subType=RDe(t,a,r.existing,n))})}function RDe(e,t,n,r){var a=t.type?t.type:n?n.subType:r.determineSubType(e,t);return a}function ODe(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=Fr(o[u].seriesId,null);if(f==null)return;for(var d=Kn(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 mf(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Xe(t.dataIndex)?et(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Xe(t.name)?et(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function Mn(){var e="__ec_inner_"+NDe++;return function(t){return t[e]||(t[e]={})}}var NDe=XG();function Np(e,t,n){var r=kE(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=Mm(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 kE(e,t){var n;if(yt(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var a=Mt(),i={},o=!1;return K(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&&sn(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 Pr={useDefault:!0,enableAll:!1,enableNone:!1},$De={useDefault:!1,enableAll:!0,enableNone:!0};function Mm(e,t,n,r){r=r||Pr;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?(Sa(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Sa(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 n9(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function BDe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function VDe(e){return e==="auto"?Tn.domSupported?"html":"richText":e||"html"}function GT(e,t){var n=Mt(),r=[];return K(e,function(a){var i=t(a);(n.get(i)||(r.push(i),n.set(i,[]))).push(a)}),{keys:r,buckets:n}}function r9(e,t,n,r,a){var i=t==null||t==="auto";if(r==null)return r;if(kn(r)){var o=mN(n||0,r,a);return pr(o,i?Math.max(So(n||0),So(r)):t)}else{if(yt(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=mN(h,v,a);s[f]=pr(o,i?Math.max(So(h),So(v)):t)}}return s}}var FDe=".",ec="___EC__COMPONENT__CONTAINER___",a9="___EC__EXTENDED_CLASS___";function us(e){var t={main:"",sub:""};if(e){var n=e.split(FDe);t.main=n[0]||"",t.sub=n[1]||""}return t}function zDe(e){Sa(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function HDe(e){return!!(e&&e[a9])}function ME(e,t){e.$constructor=e,e.extend=function(n){var r=this,a;return WDe(r)?a=function(i){Ae(o,i);function o(){return i.apply(this,arguments)||this}return o}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},dE(a,this)),Ge(a.prototype,n),a[a9]=!0,a.extend=this.extend,a.superCall=UDe,a.superApply=jDe,a.superClass=r,a}}function WDe(e){return Et(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function i9(e,t){e.extend=t.extend}var GDe=Math.round(Math.random()*10);function KDe(e){var t=["__\0is_clz",GDe++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function UDe(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 jDe(e,t,n){return this.superClass.prototype[t].apply(e,n)}function j_(e){var t={};e.registerClass=function(r){var a=r.type||r.prototype.type;if(a){zDe(a),r.prototype.type=a;var i=us(a);if(!i.sub)t[i.main]=r;else if(i.sub!==ec){var o=n(i);o[i.sub]=r}}return r},e.getClass=function(r,a,i){var o=t[r];if(o&&o[ec]&&(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=us(r),i=[],o=t[a.main];return o&&o[ec]?K(o,function(s,l){l!==ec&&i.push(s)}):i.push(o),i},e.hasClass=function(r){var a=us(r);return!!t[a.main]},e.getAllClassMainTypes=function(){var r=[];return K(t,function(a,i){r.push(i)}),r},e.hasSubTypes=function(r){var a=us(r),i=t[a.main];return i&&i[ec]};function n(r){var a=t[r.main];return(!a||!a[ec])&&(a=t[r.main]={},a[ec]=!0),a}}function yf(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&&sn(a,l)>=0||i&&sn(i,l)<0)){var u=r.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var YDe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],qDe=yf(YDe),XDe=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return qDe(this,t,n)},e}(),KT=new Tm(50);function ZDe(e){if(typeof e=="string"){var t=KT.get(e);return t&&t.image}else return e}function AE(e,t,n,r,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var i=KT.get(e),o={hostEl:n,cb:r,cbPayload:a};return i?(t=i.image,!Y_(t)&&i.pending.push(o)):(t=Po.loadImage(e,bN,bN),t.__zrImageSrc=e,KT.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function bN(){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 Y_(e){return e&&e.width&&e.height}var qS=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function o9(e,t,n,r,a){if(!t)return"";var i=(e+"").split(`
 
- `);a=s9(t,n,r,a);for(var o=0,s=i.length;o<s;o++)i[o]=l9(i[o],a);return i.join(`
 
- `)}function s9(e,t,n,r){r=r||{};var a=Ge({},r);a.font=t,n=nn(n,"..."),a.maxIterations=nn(r.maxIterations,2);var i=a.minChar=nn(r.minChar,0);a.cnCharWidth=_i("国",t);var o=a.ascCharWidth=_i("a",t);a.placeholder=nn(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=_i(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 l9(e,t){var n=t.containerWidth,r=t.font,a=t.contentWidth;if(!n)return"";var i=_i(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?QDe(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=_i(e,r)}return e===""&&(e=t.placeholder),e}function QDe(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 JDe(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,a=t.font,i=n==="truncate",o=K_(a),s=nn(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(n==="break"||n==="breakAll")?f=e?u9(e,t.font,c,n==="breakAll",0).lines:[]:f=e?e.split(`
 
- `):[];var d=f.length*s,h=nn(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=s9(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=l9(f[g],p);for(var m=h,b=0,g=0;g<f.length;g++)b=Math.max(_i(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 ePe=function(){function e(){}return e}(),_N=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),tPe=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 nPe(e,t){var n=new tPe;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=qS.lastIndex=0,l;(l=qS.exec(e))!=null;){var u=l.index;u>s&&XS(n,e.substring(s,u),t,o),XS(n,l[2],t,o,l[1]),s=qS.lastIndex}s<e.length&&XS(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(V,L,G){V.width=L,V.lineHeight=G,f+=G,d=Math.max(d,L)}e:for(var m=0;m<n.lines.length;m++){for(var b=n.lines[m],_=0,S=0,x=0;x<b.tokens.length;x++){var C=b.tokens[x],w=C.styleName&&t.rich[C.styleName]||{},k=C.textPadding=w.padding,M=k?k[1]+k[3]:0,I=C.font=w.font||t.font;C.contentHeight=K_(I);var E=nn(w.height,C.contentHeight);if(C.innerHeight=E,k&&(E+=k[0]+k[2]),C.height=E,C.lineHeight=Mo(w.lineHeight,t.lineHeight,E),C.align=w&&w.align||t.align,C.verticalAlign=w&&w.verticalAlign||"middle",p&&a!=null&&f+C.lineHeight>a){x>0?(b.tokens=b.tokens.slice(0,x),g(b,S,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var D=w.width,P=D==null||D==="auto";if(typeof D=="string"&&D.charAt(D.length-1)==="%")C.percentWidth=D,c.push(C),C.contentWidth=_i(C.text,I);else{if(P){var N=w.backgroundColor,z=N&&N.image;z&&(z=ZDe(z),Y_(z)&&(C.width=Math.max(C.width,z.width*E/z.height)))}var F=v&&r!=null?r-S:null;F!=null&&F<C.width?!P||F<M?(C.text="",C.width=C.contentWidth=0):(C.text=o9(C.text,F-M,I,t.ellipsis,{minChar:t.truncateMinChar}),C.width=C.contentWidth=_i(C.text,I)):C.contentWidth=_i(C.text,I)}C.width+=M,S+=C.width,w&&(_=Math.max(_,C.lineHeight))}g(b,S,_)}n.outerWidth=n.width=nn(r,d),n.outerHeight=n.height=nn(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 C=c[m],B=C.percentWidth;C.width=parseInt(B,10)/100*n.width}return n}function XS(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=Ro(o.width,r.width)+h;s.length>0&&v+r.accumWidth>r.width&&(c=t.split(`
 
- `),u=!0),r.accumWidth=v}else{var p=u9(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=t.split(`
 
- `);for(var g=0;g<c.length;g++){var m=c[g],b=new ePe;if(b.styleName=a,b.text=m,b.isLineHolder=!m&&!i,typeof o.width=="number"?b.width=o.width:b.width=f?f[g]:_i(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new _N)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=b:(m||!S||i)&&_.push(b)}else s.push(new _N([b]))}}function rPe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var aPe=Ji(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function iPe(e){return rPe(e)?!!aPe[e]:!0}function u9(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===`
 
- `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=_i(d,t),v=r?!1:!iPe(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 UT="__zr_style_"+Math.round(Math.random()*10),nf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},q_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};nf[UT]=!0;var wN=["z","z2","invisible"],oPe=["invisible"],sPe=function(e){Ae(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=mn(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&&lPe(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 rn(0,0,0,0)),r?rn.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 rn(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:Ge(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=rp,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&rp)},t.prototype.styleUpdated=function(){this.__dirty&=~rp},t.prototype.createStyle=function(n){return Cm(nf,n)},t.prototype.useStyle=function(n){n[UT]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[UT]},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,wN)},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=mn(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=mn(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?oPe:wN,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 Ge(n,r),n},t.prototype.getAnimationStyleProps=function(){return q_},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=di|rp}(),t}(WG),ZS=new rn(0,0,0,0),QS=new rn(0,0,0,0);function lPe(e,t,n){return ZS.copy(e.getBoundingRect()),e.transform&&ZS.applyTransform(e.transform),QS.width=t,QS.height=n,!ZS.intersect(QS)}const eo=sPe;var Ja=Math.min,ei=Math.max,JS=Math.sin,eC=Math.cos,tc=Math.PI*2,Ry=Ru(),Oy=Ru(),Ny=Ru();function X_(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=Ja(a,r[0]),i=ei(i,r[0]),o=Ja(o,r[1]),s=ei(s,r[1]);t[0]=a,t[1]=o,n[0]=i,n[1]=s}}function SN(e,t,n,r,a,i){a[0]=Ja(e,n),a[1]=Ja(t,r),i[0]=ei(e,n),i[1]=ei(t,r)}var CN=[],xN=[];function uPe(e,t,n,r,a,i,o,s,l,u){var c=kG,f=Hr,d=c(e,n,a,o,CN);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,CN[h]);l[0]=Ja(v,l[0]),u[0]=ei(v,u[0])}d=c(t,r,i,s,xN);for(var h=0;h<d;h++){var p=f(t,r,i,s,xN[h]);l[1]=Ja(p,l[1]),u[1]=ei(p,u[1])}l[0]=Ja(e,l[0]),u[0]=ei(e,u[0]),l[0]=Ja(o,l[0]),u[0]=ei(o,u[0]),l[1]=Ja(t,l[1]),u[1]=ei(t,u[1]),l[1]=Ja(s,l[1]),u[1]=ei(s,u[1])}function cPe(e,t,n,r,a,i,o,s){var l=AG,u=Zr,c=ei(Ja(l(e,n,a),1),0),f=ei(Ja(l(t,r,i),1),0),d=u(e,n,a,c),h=u(t,r,i,f);o[0]=Ja(e,a,d),o[1]=Ja(t,i,h),s[0]=ei(e,a,d),s[1]=ei(t,i,h)}function fPe(e,t,n,r,a,i,o,s,l){var u=Gs,c=Ks,f=Math.abs(a-i);if(f%tc<1e-4&&f>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(Ry[0]=eC(a)*n+e,Ry[1]=JS(a)*r+t,Oy[0]=eC(i)*n+e,Oy[1]=JS(i)*r+t,u(s,Ry,Oy),c(l,Ry,Oy),a=a%tc,a<0&&(a=a+tc),i=i%tc,i<0&&(i=i+tc),a>i&&!o?i+=tc:a<i&&o&&(a+=tc),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(Ny[0]=eC(h)*n+e,Ny[1]=JS(h)*r+t,u(s,Ny,s),c(l,Ny,l))}var jn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},nc=[],rc=[],Yo=[],Tl=[],qo=[],Xo=[],tC=Math.min,nC=Math.max,ac=Math.cos,ic=Math.sin,Ps=Math.abs,jT=Math.PI,$l=jT*2,rC=typeof Float32Array<"u",Ev=[];function aC(e){var t=Math.round(e/jT*1e8)/1e8;return t%2*jT}function c9(e,t){var n=aC(e[0]);n<0&&(n+=$l);var r=n-e[0],a=e[1];a+=r,!t&&a-n>=$l?a=n+$l:t&&n-a>=$l?a=n-$l:!t&&n>a?a=n+($l-aC(n-a)):t&&n<a&&(a=n-($l-aC(a-n))),e[0]=n,e[1]=a}var dPe=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=Ps(r/r1/t)||0,this._uy=Ps(r/r1/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(jn.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=Ps(t-this._xi),a=Ps(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(jn.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(jn.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(jn.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(),Ev[0]=a,Ev[1]=i,c9(Ev,o),a=Ev[0],i=Ev[1];var s=i-a;return this.addData(jn.A,t,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,n,r,a,i,o),this._xi=ac(i)*r+t,this._yi=ic(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(jn.R,t,n,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(jn.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)&&rC&&(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();rC&&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,rC&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Yo[0]=Yo[1]=qo[0]=qo[1]=Number.MAX_VALUE,Tl[0]=Tl[1]=Xo[0]=Xo[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 jn.M:n=a=t[o++],r=i=t[o++],qo[0]=a,qo[1]=i,Xo[0]=a,Xo[1]=i;break;case jn.L:SN(n,r,t[o],t[o+1],qo,Xo),n=t[o++],r=t[o++];break;case jn.C:uPe(n,r,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],qo,Xo),n=t[o++],r=t[o++];break;case jn.Q:cPe(n,r,t[o++],t[o++],t[o],t[o+1],qo,Xo),n=t[o++],r=t[o++];break;case jn.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=ac(h)*f+u,i=ic(h)*d+c),fPe(u,c,f,d,h,v,p,qo,Xo),n=ac(v)*f+u,r=ic(v)*d+c;break;case jn.R:a=n=t[o++],i=r=t[o++];var g=t[o++],m=t[o++];SN(a,i,a+g,i+m,qo,Xo);break;case jn.Z:n=a,r=i;break}Gs(Yo,Yo,qo),Ks(Tl,Tl,Xo)}return o===0&&(Yo[0]=Yo[1]=Tl[0]=Tl[1]=0),new rn(Yo[0],Yo[1],Tl[0]-Yo[0],Tl[1]-Yo[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 jn.M:i=s=t[d++],o=l=t[d++];break;case jn.L:{var g=t[d++],m=t[d++],b=g-i,_=m-o;(Ps(b)>r||Ps(_)>a||d===n-1)&&(p=Math.sqrt(b*b+_*_),i=g,o=m);break}case jn.C:{var S=t[d++],x=t[d++],g=t[d++],m=t[d++],C=t[d++],w=t[d++];p=wIe(i,o,S,x,g,m,C,w,10),i=C,o=w;break}case jn.Q:{var S=t[d++],x=t[d++],g=t[d++],m=t[d++];p=CIe(i,o,S,x,g,m,10),i=g,o=m;break}case jn.A:var k=t[d++],M=t[d++],I=t[d++],E=t[d++],D=t[d++],P=t[d++],N=P+D;d+=1,t[d++],v&&(s=ac(D)*I+k,l=ic(D)*E+M),p=nC(I,E)*tC($l,Math.abs(P)),i=ac(N)*I+k,o=ic(N)*E+M;break;case jn.R:{s=i=t[d++],l=o=t[d++];var z=t[d++],F=t[d++];p=z*2+F*2;break}case jn.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,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,b=n*p,!b)))e:for(var C=0;C<o;){var w=r[C++],k=C===1;switch(k&&(u=r[C],c=r[C+1],s=u,l=c),w!==jn.L&&_>0&&(t.lineTo(S,x),_=0),w){case jn.M:s=u=r[C++],l=c=r[C++],t.moveTo(u,c);break;case jn.L:{f=r[C++],d=r[C++];var M=Ps(f-u),I=Ps(d-c);if(M>a||I>i){if(h){var E=v[m++];if(g+E>b){var D=(b-g)/E;t.lineTo(u*(1-D)+f*D,c*(1-D)+d*D);break e}g+=E}t.lineTo(f,d),u=f,c=d,_=0}else{var P=M*M+I*I;P>_&&(S=f,x=d,_=P)}break}case jn.C:{var N=r[C++],z=r[C++],F=r[C++],B=r[C++],V=r[C++],L=r[C++];if(h){var E=v[m++];if(g+E>b){var D=(b-g)/E;bu(u,N,F,V,D,nc),bu(c,z,B,L,D,rc),t.bezierCurveTo(nc[1],rc[1],nc[2],rc[2],nc[3],rc[3]);break e}g+=E}t.bezierCurveTo(N,z,F,B,V,L),u=V,c=L;break}case jn.Q:{var N=r[C++],z=r[C++],F=r[C++],B=r[C++];if(h){var E=v[m++];if(g+E>b){var D=(b-g)/E;Eg(u,N,F,D,nc),Eg(c,z,B,D,rc),t.quadraticCurveTo(nc[1],rc[1],nc[2],rc[2]);break e}g+=E}t.quadraticCurveTo(N,z,F,B),u=F,c=B;break}case jn.A:var G=r[C++],q=r[C++],Q=r[C++],ie=r[C++],de=r[C++],oe=r[C++],se=r[C++],le=!r[C++],ne=Q>ie?Q:ie,Ce=Ps(Q-ie)>.001,Te=de+oe,he=!1;if(h){var E=v[m++];g+E>b&&(Te=de+oe*(b-g)/E,he=!0),g+=E}if(Ce&&t.ellipse?t.ellipse(G,q,Q,ie,se,de,Te,le):t.arc(G,q,ne,de,Te,le),he)break e;k&&(s=ac(de)*Q+G,l=ic(de)*ie+q),u=ac(Te)*Q+G,c=ic(Te)*ie+q;break;case jn.R:s=u=r[C],l=c=r[C+1],f=r[C++],d=r[C++];var X=r[C++],ae=r[C++];if(h){var E=v[m++];if(g+E>b){var ge=b-g;t.moveTo(f,d),t.lineTo(f+tC(ge,X),d),ge-=X,ge>0&&t.lineTo(f+X,d+tC(ge,ae)),ge-=ae,ge>0&&t.lineTo(f+nC(X-ge,0),d+ae),ge-=X,ge>0&&t.lineTo(f,d+nC(ae-ge,0));break e}g+=E}t.rect(f,d,X,ae);break;case jn.Z:if(h){var E=v[m++];if(g+E>b){var D=(b-g)/E;t.lineTo(u*(1-D)+s*D,c*(1-D)+l*D);break e}g+=E}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=jn,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Cs=dPe;function zl(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 hPe(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=MG(e,t,n,r,a,i,o,s,u,c,null);return d<=f/2}function f9(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=EG(e,t,n,r,a,i,s,l,null);return c<=u/2}var TN=Math.PI*2;function Co(e){return e%=TN,e<0&&(e+=TN),e}var Iv=Math.PI*2;function vPe(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)%Iv<1e-4)return!0;if(i){var f=r;r=Co(a),a=Co(f)}else r=Co(r),a=Co(a);r>a&&(a+=Iv);var d=Math.atan2(l,s);return d<0&&(d+=Iv),d>=r&&d<=a||d+Iv>=r&&d+Iv<=a}function Vs(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 kl=Cs.CMD,oc=Math.PI*2,pPe=1e-4;function gPe(e,t){return Math.abs(e-t)<pPe}var Ea=[-1,-1,-1],Ri=[-1,-1];function mPe(){var e=Ri[0];Ri[0]=Ri[1],Ri[1]=e}function yPe(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=e1(t,r,i,s,u,Ea);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,p=0;p<c;p++){var g=Ea[p],m=g===0||g===1?.5:1,b=Hr(e,n,a,o,g);b<l||(d<0&&(d=kG(t,r,i,s,Ri),Ri[1]<Ri[0]&&d>1&&mPe(),h=Hr(t,r,i,s,Ri[0]),d>1&&(v=Hr(t,r,i,s,Ri[1]))),d===2?g<Ri[0]?f+=h<t?m:-m:g<Ri[1]?f+=v<h?m:-m:f+=s<v?m:-m:g<Ri[0]?f+=h<t?m:-m:f+=s<h?m:-m)}return f}function bPe(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=SIe(t,r,i,s,Ea);if(l===0)return 0;var u=AG(t,r,i);if(u>=0&&u<=1){for(var c=0,f=Zr(t,r,i,u),d=0;d<l;d++){var h=Ea[d]===0||Ea[d]===1?.5:1,v=Zr(e,n,a,Ea[d]);v<o||(Ea[d]<u?c+=f<t?h:-h:c+=i<f?h:-h)}return c}else{var h=Ea[0]===0||Ea[0]===1?.5:1,v=Zr(e,n,a,Ea[0]);return v<o?0:i<t?h:-h}}function _Pe(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);Ea[0]=-l,Ea[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=oc-1e-4){r=0,a=oc;var c=i?1:-1;return o>=Ea[0]+e&&o<=Ea[1]+e?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=oc,a+=oc);for(var d=0,h=0;h<2;h++){var v=Ea[h];if(v+e>o){var p=Math.atan2(s,v),c=i?1:-1;p<0&&(p=oc+p),(p>=r&&p<=a||p+oc>=r&&p+oc<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function d9(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===kl.M&&v>1&&(n||(s+=Vs(l,u,c,f,r,a))),g&&(l=i[v],u=i[v+1],c=l,f=u),p){case kl.M:c=i[v++],f=i[v++],l=c,u=f;break;case kl.L:if(n){if(zl(l,u,i[v],i[v+1],t,r,a))return!0}else s+=Vs(l,u,i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case kl.C:if(n){if(hPe(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,r,a))return!0}else s+=yPe(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 kl.Q:if(n){if(f9(l,u,i[v++],i[v++],i[v],i[v+1],t,r,a))return!0}else s+=bPe(l,u,i[v++],i[v++],i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case kl.A:var m=i[v++],b=i[v++],_=i[v++],S=i[v++],x=i[v++],C=i[v++];v+=1;var w=!!(1-i[v++]);d=Math.cos(x)*_+m,h=Math.sin(x)*S+b,g?(c=d,f=h):s+=Vs(l,u,d,h,r,a);var k=(r-m)*S/_+m;if(n){if(vPe(m,b,S,x,x+C,w,t,k,a))return!0}else s+=_Pe(m,b,S,x,x+C,w,k,a);l=Math.cos(x+C)*_+m,u=Math.sin(x+C)*S+b;break;case kl.R:c=l=i[v++],f=u=i[v++];var M=i[v++],I=i[v++];if(d=c+M,h=f+I,n){if(zl(c,f,d,f,t,r,a)||zl(d,f,d,h,t,r,a)||zl(d,h,c,h,t,r,a)||zl(c,h,c,f,t,r,a))return!0}else s+=Vs(d,f,d,h,r,a),s+=Vs(c,h,c,f,r,a);break;case kl.Z:if(n){if(zl(l,u,c,f,t,r,a))return!0}else s+=Vs(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!gPe(u,f)&&(s+=Vs(l,u,c,f,r,a)||0),s!==0}function wPe(e,t,n){return d9(e,0,!1,t,n)}function SPe(e,t,n,r){return d9(e,t,!0,n,r)}var i1=Lt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},nf),CPe={style:Lt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},q_.style)},iC=ws.concat(["invisible","culling","z","z2","zlevel","parent"]),xPe=function(e){Ae(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<iC.length;++s)a[iC[s]]=this[iC[s]];a.__dirty|=di}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=mn(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?Ge(this.style,s):this.useStyle(s):o==="shape"?Ge(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(yt(n)){var r=Pg(n,0);return r>.5?VT:r>.2?iDe:FT}else if(n)return FT}return VT},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(yt(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Pg(n,0)<BT;if(i===o)return r}},t.prototype.buildPath=function(n,r,a){},t.prototype.pathUpdated=function(){this.__dirty&=~_d},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 Cs(!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&_d)&&(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)),SPe(s,l/u,n,r)))return!0}if(this.hasFill())return wPe(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=_d,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:Ge(a,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&_d)},t.prototype.createStyle=function(n){return Cm(i1,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Ge({},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=Ge({},a.shape),Ge(u,r.shape)):(u=Ge({},i?this.shape:a.shape),Ge(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=Ge({},this.shape);for(var c={},f=mn(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 CPe},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=function(i){Ae(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 $t(n.style)},o.prototype.getDefaultShape=function(){return $t(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=di|rp|_d}(),t}(eo);const dn=xPe;var TPe=Lt({strokeFirst:!0,font:yu,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},i1),h9=function(e){Ae(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 Cm(TPe,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=km(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}(eo);h9.prototype.type="tspan";const Ng=h9;var kPe=Lt({x:0,y:0},nf),MPe={style:Lt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},q_.style)};function APe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var v9=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return Cm(kPe,n)},t.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=APe(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 MPe},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new rn(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(eo);v9.prototype.type="image";const ea=v9;function EPe(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 Id=Math.round;function p9(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&&(Id(r*2)===Id(a*2)&&(e.x1=e.x2=Wc(r,s,!0)),Id(i*2)===Id(o*2)&&(e.y1=e.y2=Wc(i,s,!0))),e}}function g9(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=Wc(r,s,!0),e.y=Wc(a,s,!0),e.width=Math.max(Wc(r+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(Wc(a+o,s,!1)-e.y,o===0?0:1)),e}}function Wc(e,t,n){if(!t)return e;var r=Id(e*2);return(r+Id(t))%2===0?r/2:(r+(n?1:-1))/2}var IPe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),DPe={},m9=function(e){Ae(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new IPe},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=g9(DPe,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?EPe(n,r):n.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(dn);m9.prototype.type="rect";const xn=m9;var kN={fill:"#000"},MN=2,PPe={style:Lt({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},q_.style)},y9=function(e){Ae(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=kN,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,OPe(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 rn(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||kN},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,i=n.rich||a&&{};return Ge(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=mn(r),i=0;i<a.length;i++){var o=a[i];n[o]=n[o]||{},Ge(n[o],r[o])}},t.prototype.getAnimationStyleProps=function(){return PPe},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||yu,a=n.padding,i=RN(n),o=JDe(i,n),s=oC(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,S=wd(g,o.contentHeight,b);if(s||a){var x=ip(p,c,m),C=wd(g,u,b);s&&this._renderBackground(n,n,x,C,c,u)}S+=h/2,a&&(_=LN(p,m,a),b==="top"?S+=a[0]:b==="bottom"&&(S-=a[2]));for(var w=0,k=!1,M=PN("fill"in n?n.fill:(k=!0,v.fill)),I=DN("stroke"in n?n.stroke:!l&&(!v.autoStroke||k)?(w=MN,v.stroke):null),E=n.textShadowBlur>0,D=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),P=o.calculatedLineHeight,N=0;N<d.length;N++){var z=this._getOrCreateChild(Ng),F=z.createStyle();z.useStyle(F),F.text=d[N],F.x=_,F.y=S,m&&(F.textAlign=m),F.textBaseline="middle",F.opacity=n.opacity,F.strokeFirst=!0,E&&(F.shadowBlur=n.textShadowBlur||0,F.shadowColor=n.textShadowColor||"transparent",F.shadowOffsetX=n.textShadowOffsetX||0,F.shadowOffsetY=n.textShadowOffsetY||0),F.stroke=I,F.fill=M,I&&(F.lineWidth=n.lineWidth||w,F.lineDash=n.lineDash,F.lineDashOffset=n.lineDashOffset||0),F.font=r,EN(F,n),S+=h,D&&z.setBoundingRect(new rn(ip(F.x,n.width,F.textAlign),wd(F.y,P,F.textBaseline),f,P))}},t.prototype._updateRichTexts=function(){var n=this.style,r=RN(n),a=nPe(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=ip(u,o,d),p=wd(c,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var b=g+i;oC(n)&&this._renderBackground(n,n,v,p,o,s);for(var _=!!n.backgroundColor,S=0;S<a.lines.length;S++){for(var x=a.lines[S],C=x.tokens,w=C.length,k=x.lineHeight,M=x.width,I=0,E=g,D=b,P=w-1,N=void 0;I<w&&(N=C[I],!N.align||N.align==="left");)this._placeToken(N,n,k,m,E,"left",_),M-=N.width,E+=N.width,I++;for(;P>=0&&(N=C[P],N.align==="right");)this._placeToken(N,n,k,m,D,"right",_),M-=N.width,D-=N.width,P--;for(E+=(i-(E-g)-(b-D)-M)/2;I<=P;)N=C[I],this._placeToken(N,n,k,m,E+N.width/2,"center",_),E+=N.width,I++;m+=k}},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&&oC(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=LN(o,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var p=this._getOrCreateChild(Ng),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,b=!1,_=0,S=PN("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,m.fill)),x=DN("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!m.autoStroke||b)?(_=MN,m.stroke):null),C=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=f,C&&(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||yu,g.opacity=Mo(u.opacity,r.opacity,1),EN(g,u),x&&(g.lineWidth=Mo(u.lineWidth,r.lineWidth,_),g.lineDash=nn(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var w=n.contentWidth,k=n.contentHeight;p.setBoundingRect(new rn(ip(g.x,w,g.textAlign),wd(g.y,k,g.textBaseline),w,k))},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(xn),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=nn(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(ea),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=nn(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 S=(p||g).style;S.shadowBlur=n.shadowBlur||0,S.shadowColor=n.shadowColor||"transparent",S.shadowOffsetX=n.shadowOffsetX||0,S.shadowOffsetY=n.shadowOffsetY||0,S.opacity=Mo(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return _9(n)&&(r=[n.fontStyle,n.fontWeight,b9(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&zi(r)||n.textFont||n.font},t}(eo),LPe={left:!0,right:1,center:1},RPe={top:1,bottom:1,middle:1},AN=["fontStyle","fontWeight","fontSize","fontFamily"];function b9(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?lE+"px":e+"px"}function EN(e,t){for(var n=0;n<AN.length;n++){var r=AN[n],a=t[r];a!=null&&(e[r]=a)}}function _9(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function OPe(e){return IN(e),K(e.rich,IN),e}function IN(e){if(e){e.font=y9.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||LPe[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||RPe[n]?n:"top";var r=e.padding;r&&(e.padding=z_(e.padding))}}function DN(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function PN(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function LN(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function RN(e){var t=e.text;return t!=null&&(t+=""),t}function oC(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Cn=y9;var Zt=Mn(),YT=function(e,t,n,r){if(r){var a=Zt(r);a.dataIndex=n,a.dataType=t,a.seriesIndex=e,r.type==="group"&&r.traverse(function(i){var o=Zt(i);o.seriesIndex=e,o.dataIndex=n,o.dataType=t})}},ON=1,NN={},w9=Mn(),EE=Mn(),IE=0,Am=1,Z_=2,za=["emphasis","blur","select"],$g=["normal","emphasis","blur","select"],Wh=10,NPe=9,rf="highlight",cb="downplay",$p="select",fb="unselect",Bp="toggleSelect";function Qf(e){return e!=null&&e!=="none"}var $N=new Tm(100);function BN(e){if(yt(e)){var t=$N.get(e);return t||(t=t1(e,-.1),$N.put(e,t)),t}else if(Sm(e)){var n=Ge({},e);return n.colorStops=et(e.colorStops,function(r){return{offset:r.offset,color:t1(r.color,-.1)}}),n}return e}function Q_(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function S9(e){Q_(e,"emphasis",Z_)}function C9(e){e.hoverState===Z_&&Q_(e,"normal",IE)}function DE(e){Q_(e,"blur",Am)}function x9(e){e.hoverState===Am&&Q_(e,"normal",IE)}function $Pe(e){e.selected=!0}function BPe(e){e.selected=!1}function VN(e,t,n){t(e,n)}function vl(e,t,n){VN(e,t,n),e.isGroup&&e.traverse(function(r){VN(r,t,n)})}function o1(e,t){switch(t){case"emphasis":e.hoverState=Z_;break;case"normal":e.hoverState=IE;break;case"blur":e.hoverState=Am;break;case"select":e.selected=!0}}function VPe(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 FPe(e,t,n,r){var a=n&&sn(n,"select")>=0,i=!1;if(e instanceof dn){var o=w9(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Qf(s)||Qf(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=Ge({},r),u=Ge({},u),u.fill=s):!Qf(u.fill)&&Qf(s)?(i=!0,r=Ge({},r),u=Ge({},u),u.fill=BN(s)):!Qf(u.stroke)&&Qf(l)&&(i||(r=Ge({},r),u=Ge({},u)),u.stroke=BN(l)),r.style=u}}if(r&&r.z2==null){i||(r=Ge({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??Wh)}return r}function zPe(e,t,n){if(n&&n.z2==null){n=Ge({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??NPe)}return n}function HPe(e,t,n){var r=sn(e.currentStates,t)>=0,a=e.style.opacity,i=r?null:VPe(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=Ge({},n),o=Ge({opacity:r?a:i.opacity*.1},o),n.style=o),n}function sC(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return FPe(this,e,t,n);if(e==="blur")return HPe(this,e,n);if(e==="select")return zPe(this,e,n)}return n}function bf(e){e.stateProxy=sC;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=sC),n&&(n.stateProxy=sC)}function FN(e,t){!A9(e,t)&&!e.__highByOuter&&vl(e,S9)}function zN(e,t){!A9(e,t)&&!e.__highByOuter&&vl(e,C9)}function rl(e,t){e.__highByOuter|=1<<(t||0),vl(e,S9)}function al(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&vl(e,C9)}function T9(e){vl(e,DE)}function PE(e){vl(e,x9)}function k9(e){vl(e,$Pe)}function M9(e){vl(e,BPe)}function A9(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function E9(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(a,i){var o=EE(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){x9(u)}),s&&n.push(i)),o.isBlured=!1}),K(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,t)})}function qT(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&&PE(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"||DE(g)}),ua(t))i(u.getData(),t);else if(Nt(t))for(var v=mn(t),p=0;p<v.length;p++)i(u.getData(v[p]),t[v[p]]);l.push(u),EE(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 XT(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){EE(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(i){DE(i)})}}}function WPe(e,t,n){var r=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=mf(a,t);i=(Xe(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=Zt(o);qT(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&qT(r,c,f,n)}}}function LE(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(Zt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function GPe(e,t,n){var r=Zt(e),a=LE(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=a.dispatchers,o=a.focusSelf;i?(o&&XT(r.componentMainType,r.componentIndex,n),K(i,function(s){return FN(s,t)})):(qT(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&XT(r.componentMainType,r.componentIndex,n),FN(e,t))}function KPe(e,t,n){E9(n);var r=Zt(e),a=LE(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?K(a,function(i){return zN(i,t)}):zN(e,t)}function UPe(e,t,n){if(QT(t)){var r=t.dataType,a=e.getData(r),i=mf(a,t);Xe(i)||(i=[i]),e[t.type===Bp?"toggleSelect":t.type===$p?"select":"unselect"](i,r)}}function HN(e){var t=e.getAllData();K(t,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?k9(i):M9(i)})})}function jPe(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();K(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 ou(e,t,n){Gc(e,!0),vl(e,bf),ZT(e,t,n)}function YPe(e){Gc(e,!1)}function mr(e,t,n,r){r?YPe(e):ou(e,t,n)}function ZT(e,t,n){var r=Zt(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var WN=["emphasis","blur","select"],qPe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ca(e,t,n,r){n=n||"itemStyle";for(var a=0;a<WN.length;a++){var i=WN[a],o=t.getModel([i,n]),s=e.ensureState(i);s.style=r?r(o):o[qPe[n]]()}}function Gc(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 Bg(e){return!!(e&&e.__highDownDispatcher)}function XPe(e,t,n){var r=Zt(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function ZPe(e){var t=NN[e];return t==null&&ON<=32&&(t=NN[e]=ON++),t}function QT(e){var t=e.type;return t===$p||t===fb||t===Bp}function GN(e){var t=e.type;return t===rf||t===cb}function QPe(e){var t=w9(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 Jf=Cs.CMD,JPe=[[],[],[]],KN=Math.sqrt,eLe=Math.atan2;function I9(e,t){if(t){var n=e.data,r=e.len(),a,i,o,s,l,u,c=Jf.M,f=Jf.C,d=Jf.L,h=Jf.R,v=Jf.A,p=Jf.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=KN(t[0]*t[0]+t[1]*t[1]),_=KN(t[2]*t[2]+t[3]*t[3]),S=eLe(-t[1]/_,t[0]/b);n[o]*=b,n[o++]+=g,n[o]*=_,n[o++]+=m,n[o++]*=b,n[o++]*=_,n[o++]+=S,n[o++]+=S,o+=2,s=o;break;case h:u[0]=n[o++],u[1]=n[o++],Jr(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[o++],u[1]+=n[o++],Jr(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<i;l++){var x=JPe[l];x[0]=n[o++],x[1]=n[o++],Jr(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var lC=Math.sqrt,$y=Math.sin,By=Math.cos,Dv=Math.PI;function UN(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function JT(e,t){return(e[0]*t[0]+e[1]*t[1])/(UN(e)*UN(t))}function jN(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(JT(e,t))}function YN(e,t,n,r,a,i,o,s,l,u,c){var f=l*(Dv/180),d=By(f)*(e-n)/2+$y(f)*(t-r)/2,h=-1*$y(f)*(e-n)/2+By(f)*(t-r)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=lC(v),s*=lC(v));var p=(a===i?-1:1)*lC((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+By(f)*g-$y(f)*m,_=(t+r)/2+$y(f)*g+By(f)*m,S=jN([1,0],[(d-g)/o,(h-m)/s]),x=[(d-g)/o,(h-m)/s],C=[(-1*d-g)/o,(-1*h-m)/s],w=jN(x,C);if(JT(x,C)<=-1&&(w=Dv),JT(x,C)>=1&&(w=0),w<0){var k=Math.round(w/Dv*1e6)/1e6;w=Dv*2+k%2*Dv}c.addData(u,b,_,o,s,S,w,f,i)}var tLe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,nLe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function rLe(e){var t=new Cs;if(!e)return t;var n=0,r=0,a=n,i=r,o,s=Cs.CMD,l=e.match(tLe);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(nLe)||[],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,S=void 0,x=void 0,C=void 0,w=void 0,k=n,M=r,I=void 0,E=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,I=t.len(),E=t.data,o===s.C&&(m+=n-E[I-4],b+=r-E[I-3]),d=s.C,k=h[g++],M=h[g++],n=h[g++],r=h[g++],t.addData(d,m,b,k,M,n,r);break;case"s":m=n,b=r,I=t.len(),E=t.data,o===s.C&&(m+=n-E[I-4],b+=r-E[I-3]),d=s.C,k=n+h[g++],M=r+h[g++],n+=h[g++],r+=h[g++],t.addData(d,m,b,k,M,n,r);break;case"Q":k=h[g++],M=h[g++],n=h[g++],r=h[g++],d=s.Q,t.addData(d,k,M,n,r);break;case"q":k=h[g++]+n,M=h[g++]+r,n+=h[g++],r+=h[g++],d=s.Q,t.addData(d,k,M,n,r);break;case"T":m=n,b=r,I=t.len(),E=t.data,o===s.Q&&(m+=n-E[I-4],b+=r-E[I-3]),n=h[g++],r=h[g++],d=s.Q,t.addData(d,m,b,n,r);break;case"t":m=n,b=r,I=t.len(),E=t.data,o===s.Q&&(m+=n-E[I-4],b+=r-E[I-3]),n+=h[g++],r+=h[g++],d=s.Q,t.addData(d,m,b,n,r);break;case"A":_=h[g++],S=h[g++],x=h[g++],C=h[g++],w=h[g++],k=n,M=r,n=h[g++],r=h[g++],d=s.A,YN(k,M,n,r,C,w,_,S,x,d,t);break;case"a":_=h[g++],S=h[g++],x=h[g++],C=h[g++],w=h[g++],k=n,M=r,n+=h[g++],r+=h[g++],d=s.A,YN(k,M,n,r,C,w,_,S,x,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),n=a,r=i),o=d}return t.toStatic(),t}var D9=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t}(dn);function P9(e){return e.setData!=null}function L9(e,t){var n=rLe(e),r=Ge({},t);return r.buildPath=function(a){if(P9(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){I9(n,a),this.dirtyShape()},r}function R9(e,t){return new D9(L9(e,t))}function aLe(e,t){var n=L9(e,t),r=function(a){Ae(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return i}(D9);return r}function iLe(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 dn(t);return o.createPathProxy(),o.buildPath=function(s){if(P9(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function RE(e,t){t=t||{};var n=new dn;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?I9(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 oLe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),O9=function(e){Ae(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new oLe},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}(dn);O9.prototype.type="circle";const Oo=O9;var sLe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),N9=function(e){Ae(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new sLe},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}(dn);N9.prototype.type="ellipse";const J_=N9;var $9=Math.PI,uC=$9*2,sc=Math.sin,ed=Math.cos,lLe=Math.acos,va=Math.atan2,qN=Math.abs,Vp=Math.sqrt,op=Math.max,Zo=Math.min,vo=1e-4;function uLe(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<vo))return d=(c*(t-i)-f*(e-a))/d,[e+d*l,t+d*u]}function Vy(e,t,n,r,a,i,o){var s=e-n,l=t-r,u=(o?i:-i)/Vp(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,S=b*b+_*_,x=a-i,C=d*p-v*h,w=(_<0?-1:1)*Vp(op(0,x*x*S-C*C)),k=(C*_-b*w)/S,M=(-C*b-_*w)/S,I=(C*_+b*w)/S,E=(-C*b+_*w)/S,D=k-g,P=M-m,N=I-g,z=E-m;return D*D+P*P>N*N+z*z&&(k=I,M=E),{cx:k,cy:M,x0:-c,y0:-f,x1:k*(a/x-1),y1:M*(a/x-1)}}function cLe(e){var t;if(Xe(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 fLe(e,t){var n,r=op(t.r,0),a=op(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=qN(u-l),v=h>uC&&h%uC;if(v>vo&&(h=v),!(r>vo))e.moveTo(c,f);else if(h>uC-vo)e.moveTo(c+r*ed(l),f+r*sc(l)),e.arc(c,f,r,l,u,!d),a>vo&&(e.moveTo(c+a*ed(u),f+a*sc(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,S=void 0,x=void 0,C=void 0,w=void 0,k=void 0,M=void 0,I=void 0,E=void 0,D=void 0,P=void 0,N=void 0,z=r*ed(l),F=r*sc(l),B=a*ed(u),V=a*sc(u),L=h>vo;if(L){var G=t.cornerRadius;G&&(n=cLe(G),p=n[0],g=n[1],m=n[2],b=n[3]);var q=qN(r-a)/2;if(_=Zo(q,m),S=Zo(q,b),x=Zo(q,p),C=Zo(q,g),M=w=op(_,S),I=k=op(x,C),(w>vo||k>vo)&&(E=r*ed(u),D=r*sc(u),P=a*ed(l),N=a*sc(l),h<$9)){var Q=uLe(z,F,P,N,E,D,B,V);if(Q){var ie=z-Q[0],de=F-Q[1],oe=E-Q[0],se=D-Q[1],le=1/sc(lLe((ie*oe+de*se)/(Vp(ie*ie+de*de)*Vp(oe*oe+se*se)))/2),ne=Vp(Q[0]*Q[0]+Q[1]*Q[1]);M=Zo(w,(r-ne)/(le+1)),I=Zo(k,(a-ne)/(le-1))}}}if(!L)e.moveTo(c+z,f+F);else if(M>vo){var Ce=Zo(m,M),Te=Zo(b,M),he=Vy(P,N,z,F,r,Ce,d),X=Vy(E,D,B,V,r,Te,d);e.moveTo(c+he.cx+he.x0,f+he.cy+he.y0),M<w&&Ce===Te?e.arc(c+he.cx,f+he.cy,M,va(he.y0,he.x0),va(X.y0,X.x0),!d):(Ce>0&&e.arc(c+he.cx,f+he.cy,Ce,va(he.y0,he.x0),va(he.y1,he.x1),!d),e.arc(c,f,r,va(he.cy+he.y1,he.cx+he.x1),va(X.cy+X.y1,X.cx+X.x1),!d),Te>0&&e.arc(c+X.cx,f+X.cy,Te,va(X.y1,X.x1),va(X.y0,X.x0),!d))}else e.moveTo(c+z,f+F),e.arc(c,f,r,l,u,!d);if(!(a>vo)||!L)e.lineTo(c+B,f+V);else if(I>vo){var Ce=Zo(p,I),Te=Zo(g,I),he=Vy(B,V,E,D,a,-Te,d),X=Vy(z,F,P,N,a,-Ce,d);e.lineTo(c+he.cx+he.x0,f+he.cy+he.y0),I<k&&Ce===Te?e.arc(c+he.cx,f+he.cy,I,va(he.y0,he.x0),va(X.y0,X.x0),!d):(Te>0&&e.arc(c+he.cx,f+he.cy,Te,va(he.y0,he.x0),va(he.y1,he.x1),!d),e.arc(c,f,a,va(he.cy+he.y1,he.cx+he.x1),va(X.cy+X.y1,X.cx+X.x1),d),Ce>0&&e.arc(c+X.cx,f+X.cy,Ce,va(X.y1,X.x1),va(X.y0,X.x0),!d))}else e.lineTo(c+B,f+V),e.arc(c,f,a,u,l,d)}e.closePath()}}}var dLe=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}(),B9=function(e){Ae(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new dLe},t.prototype.buildPath=function(n,r){fLe(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(dn);B9.prototype.type="sector";const Ha=B9;var hLe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),V9=function(e){Ae(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new hLe},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}(dn);V9.prototype.type="ring";const Em=V9;function vLe(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++)Gs(c,c,e[d]),Ks(f,f,e[d]);Gs(c,c,r[0]),Ks(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(hs(e[d]));continue}else l=e[d-1],u=e[d+1];jl(i,u,l),Dp(i,i,t);var p=Qb(v,l),g=Qb(v,u),m=p+g;m!==0&&(p/=m,g/=m),Dp(o,i,-p),Dp(s,i,g);var b=CT([],v,o),_=CT([],v,s);r&&(Ks(b,b,c),Gs(b,b,f),Ks(_,_,c),Gs(_,_,f)),a.push(b),a.push(_)}return n&&a.push(a.shift()),a}function F9(e,t,n){var r=t.smooth,a=t.points;if(a&&a.length>=2){if(r){var i=vLe(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 pLe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),z9=function(e){Ae(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){F9(n,r,!0)},t}(dn);z9.prototype.type="polygon";const Wa=z9;var gLe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),H9=function(e){Ae(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 gLe},t.prototype.buildPath=function(n,r){F9(n,r,!1)},t}(dn);H9.prototype.type="polyline";const Ka=H9;var mLe={},yLe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),W9=function(e){Ae(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 yLe},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=p9(mLe,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}(dn);W9.prototype.type="line";const Gr=W9;var qa=[],bLe=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 XN(e,t,n){var r=e.cpx2,a=e.cpy2;return r!=null||a!=null?[(n?nN:Hr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?nN:Hr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?ET:Zr)(e.x1,e.cpx1,e.x2,t),(n?ET:Zr)(e.y1,e.cpy1,e.y2,t)]}var G9=function(e){Ae(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 bLe},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&&(Eg(a,l,o,d,qa),l=qa[1],o=qa[2],Eg(i,u,s,d,qa),u=qa[1],s=qa[2]),n.quadraticCurveTo(l,u,o,s)):(d<1&&(bu(a,l,c,o,d,qa),l=qa[1],c=qa[2],o=qa[3],bu(i,u,f,s,d,qa),u=qa[1],f=qa[2],s=qa[3]),n.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(n){return XN(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=XN(this.shape,n,!0);return If(r,r)},t}(dn);G9.prototype.type="bezier-curve";const Im=G9;var _Le=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}(),K9=function(e){Ae(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 _Le},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}(dn);K9.prototype.type="arc";const ew=K9;var wLe=function(e){Ae(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),dn.prototype.getBoundingRect.call(this)},t}(dn);const tw=wLe;var SLe=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e}();const U9=SLe;var CLe=function(e){Ae(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}(U9);const Gh=CLe;var xLe=function(e){Ae(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}(U9);const OE=xLe;var lc=[0,0],uc=[0,0],Fy=new tn,zy=new tn,TLe=function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new tn;for(var r=0;r<2;r++)this._axes[r]=new tn;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);tn.sub(a[0],r[1],r[0]),tn.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 Fy.set(1/0,1/0),zy.set(0,0),!this._intersectCheckOneSide(this,t,Fy,zy,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(t,this,Fy,zy,a,-1)&&(r=!1,a)||a||tn.copy(n,r?Fy:zy),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,lc),this._getProjMinMaxOnAxis(l,n._corners,uc),lc[1]<uc[0]||lc[0]>uc[1]){if(s=!1,i)return s;var c=Math.abs(uc[0]-lc[1]),f=Math.abs(lc[0]-uc[1]);Math.min(c,f)>a.len()&&(c<f?tn.scale(a,u,-c*o):tn.scale(a,u,f*o))}else if(r){var c=Math.abs(uc[0]-lc[1]),f=Math.abs(lc[0]-uc[1]);Math.min(c,f)<r.len()&&(c<f?tn.scale(r,u,c*o):tn.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 s1=TLe;var kLe=[],MLe=function(e){Ae(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 rn(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(kLe)),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}(eo);const j9=MLe;var Y9=Mn();function Kh(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=nn(r.duration,200),c=nn(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)),Et(f)&&(f=f(n,a)),Et(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function NE(e,t,n,r,a,i,o){var s=!1,l;Et(a)?(o=i,i=a,a=null):Nt(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=Kh(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 In(e,t,n,r,a,i){NE("update",e,t,n,r,a,i)}function rr(e,t,n,r,a,i){NE("enter",e,t,n,r,a,i)}function jd(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 _u(e,t,n,r,a,i){jd(e)||NE("leave",e,t,n,r,a,i)}function ZN(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),_u(e,{style:{opacity:0}},t,n,r)}function Vg(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||ZN(a,t,n,r)}):ZN(e,t,n,r)}function No(e){Y9(e).oldStyle=e.style}function ALe(e){return Y9(e).oldStyle}var l1=Math.max,u1=Math.min,ek={};function q9(e){return dn.extend(e)}var ELe=aLe;function X9(e,t){return ELe(e,t)}function no(e,t){ek[e]=t}function nw(e){if(ek.hasOwnProperty(e))return ek[e]}function Dm(e,t,n,r){var a=R9(e,t);return n&&(r==="center"&&(n=Z9(n,a.getBoundingRect())),BE(a,n)),a}function $E(e,t,n){var r=new ea({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(Z9(t,i))}}});return r}function Z9(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 hi=iLe;function BE(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function Ch(e,t){return p9(e,e,{lineWidth:t}),e}function ILe(e){return g9(e.shape,e.shape,e.style),e}var db=Wc;function su(e,t){for(var n=xm([]);e&&e!==t;)vs(n,e.getLocalTransform(),n),e=e.parent;return n}function Io(e,t,n){return t&&!ua(t)&&(t=Us.getLocalTransform(t)),n&&(t=Df([],t)),Jr([],e,t)}function rw(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=Io(i,t,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function QN(e){return!e.isGroup}function DLe(e){return e.shape!=null}function Pm(e,t,n){if(!e||!t)return;function r(o){var s={};return o.traverse(function(l){QN(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return DLe(o)&&(s.shape=Ge({},o.shape)),s}var i=r(e);t.traverse(function(o){if(QN(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),In(o,l,n,Zt(o).dataIndex)}}})}function VE(e,t){return et(e,function(n){var r=n[0];r=l1(r,t.x),r=u1(r,t.x+t.width);var a=n[1];return a=l1(a,t.y),a=u1(a,t.y+t.height),[r,a]})}function Q9(e,t){var n=l1(e.x,t.x),r=u1(e.x+e.width,t.x+t.width),a=l1(e.y,t.y),i=u1(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 Uh(e,t,n){var r=Ge({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),Lt(a,n),new ea(r)):Dm(e.replace("path://",""),r,n,"center")}function sp(e,t,n,r,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(J9(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function J9(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=cC(c,f,l,u);if(PLe(d))return!1;var h=e-a,v=t-i,p=cC(h,v,l,u)/d;if(p<0||p>1)return!1;var g=cC(h,v,c,f)/d;return!(g<0||g>1)}function cC(e,t,n,r){return e*r-n*t}function PLe(e){return e<=1e-6&&e>=-1e-6}function jh(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,a=yt(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&&K(mn(l),function(c){wt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Zt(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:Lt({content:r,formatterParams:s},a)}}function JN(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Nu(e,t){if(e)if(Xe(e))for(var n=0;n<e.length;n++)JN(e[n],t);else JN(e,t)}no("circle",Oo);no("ellipse",J_);no("sector",Ha);no("ring",Em);no("polygon",Wa);no("polyline",Ka);no("rect",xn);no("line",Gr);no("bezierCurve",Im);no("arc",ew);const Lm=Object.freeze(Object.defineProperty({__proto__:null,Arc:ew,BezierCurve:Im,BoundingRect:rn,Circle:Oo,CompoundPath:tw,Ellipse:J_,Group:zt,Image:ea,IncrementalDisplayable:j9,Line:Gr,LinearGradient:Gh,OrientedBoundingRect:s1,Path:dn,Point:tn,Polygon:Wa,Polyline:Ka,RadialGradient:OE,Rect:xn,Ring:Em,Sector:Ha,Text:Cn,applyTransform:Io,clipPointsByRect:VE,clipRectByRect:Q9,createIcon:Uh,extendPath:X9,extendShape:q9,getShapeClass:nw,getTransform:su,groupTransition:Pm,initProps:rr,isElementRemoved:jd,lineLineIntersect:J9,linePolygonIntersect:sp,makeImage:$E,makePath:Dm,mergePath:hi,registerShape:no,removeElement:_u,removeElementWithFadeOut:Vg,resizePath:BE,setTooltipConfig:jh,subPixelOptimize:db,subPixelOptimizeLine:Ch,subPixelOptimizeRect:ILe,transformDirection:rw,traverseElements:Nu,updateProps:In},Symbol.toStringTag,{value:"Module"}));var aw={};function e7(e,t){for(var n=0;n<za.length;n++){var r=za[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 tk(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=Et(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:s},u=0;u<za.length;u++){var c=za[u],f=t[c];l[c]=nn(r?r.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function fa(e,t,n,r){n=n||aw;for(var a=e instanceof Cn,i=!1,o=0;o<$g.length;o++){var s=t[$g[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new Cn,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=tk(n,t),c=t.normal,f=!!c.getShallow("show"),d=Yn(c,r&&r.normal,n,!1,!a);d.text=u.normal,a||e.setTextConfig(c1(c,n,!1));for(var o=0;o<za.length;o++){var h=za[o],s=t[h];if(s){var v=l.ensureState(h),p=!!nn(s.getShallow("show"),f);if(p!==f&&(v.ignore=!p),v.style=Yn(s,r&&r[h],n,!0,!a),v.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=c1(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&&(Yh(l).setLabelText=function(m){var b=tk(n,t,m);e7(l,b)})}else l&&(l.ignore=!0);e.dirty()}function Yr(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<za.length;r++){var a=za[r];n[a]=e.getModel([a,t])}return n}function Yn(e,t,n,r,a){var i={};return LLe(i,e,n,r,a),t&&Ge(i,t),i}function c1(e,t,n){t=t||{};var r={},a,i=e.getShallow("rotate"),o=nn(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 LLe(e,t,n,r,a){n=n||aw;var i=t.ecModel,o=i&&i.option.textStyle,s=RLe(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);r$(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),r$(e,t,o,n,r,a,!0,!1)}function RLe(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||aw).rich;if(n){t=t||{};for(var r=mn(n),a=0;a<r.length;a++){var i=r[a];t[i]=1}}e=e.parentModel}return t}var e$=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],t$=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],n$=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function r$(e,t,n,r,a,i,o,s){n=!a&&n||aw;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=nn(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=nn(t.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(e.lineWidth=d);var h=nn(t.getShallow("textBorderType"),n.textBorderType);h!=null&&(e.lineDash=h);var v=nn(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<e$.length;p++){var g=e$[p],m=nn(t.getShallow(g),n[g]);m!=null&&(e[g]=m)}for(var p=0;p<t$.length;p++){var g=t$[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<n$.length;p++){var g=n$[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 t7(e,t){var n=t&&t.getModel("textStyle");return zi([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 Yh=Mn();function n7(e,t,n,r){if(e){var a=Yh(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 r7(e,t,n,r,a){var i=Yh(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=nn(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=r9(n,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=tk({labelDataIndex:t,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);e7(e,d)}e.percent=0,(i.prevValue==null?rr:In)(e,{percent:1},r,t,null,u)}var OLe=["textStyle","color"],fC=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],dC=new Cn,NLe=function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(OLe):null)},e.prototype.getFont=function(){return t7({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<fC.length;r++)n[fC[r]]=this.getShallow(fC[r]);return dC.useStyle(n),dC.update(),dC.getBoundingRect()},e}();const $Le=NLe;var a7=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],BLe=yf(a7),VLe=function(){function e(){}return e.prototype.getLineStyle=function(t){return BLe(this,t)},e}(),i7=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],FLe=yf(i7),zLe=function(){function e(){}return e.prototype.getItemStyle=function(t,n){return FLe(this,t,n)},e}(),Pf=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){en(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($t(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(!Tn.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}();ME(Pf);KDe(Pf);Tr(Pf,VLe);Tr(Pf,zLe);Tr(Pf,XDe);Tr(Pf,$Le);const Gn=Pf;var HLe=Math.round(Math.random()*10);function qh(e){return[e||"",HLe++].join("_")}function WLe(e){var t={};e.registerSubTypeDefaulter=function(n,r){var a=us(n);t[a.main]=r},e.determineSubType=function(n,r){var a=r.type;if(!a){var i=us(n).main;e.hasSubTypes(n)&&t[i]&&(a=t[i](r))}return a}}function GLe(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(K(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]),K(v.successor,p?m:g)}K(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 K(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),K(f,function(d){sn(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(o,d);sn(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 K(i,function(l){sn(o,l)>=0&&s.push(l)}),s}}function $u(e,t){return en(en({},e,!0),t,!0)}const KLe={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:". "}}}},ULe={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 f1="ZH",FE="EN",Fg=FE,hb={},zE={},o7=Tn.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(f1)>-1?f1:Fg}():Fg;function HE(e,t){e=e.toUpperCase(),zE[e]=new Gn(t),hb[e]=t}function jLe(e){if(yt(e)){var t=hb[e.toUpperCase()]||{};return e===f1||e===FE?$t(t):en($t(t),$t(hb[Fg]),!1)}else return en($t(e),$t(hb[Fg]),!1)}function nk(e){return zE[e]}function YLe(){return zE[Fg]}HE(FE,KLe);HE(f1,ULe);var WE=1e3,GE=WE*60,Fp=GE*60,Vi=Fp*24,a$=Vi*365,lp={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}"},Hy="{yyyy}-{MM}-{dd}",i$={year:"{yyyy}",month:"{yyyy}-{MM}",day:Hy,hour:Hy+" "+lp.hour,minute:Hy+" "+lp.minute,second:Hy+" "+lp.second,millisecond:lp.none},hC=["year","month","day","hour","minute","second","millisecond"],s7=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ia(e,t){return e+="","0000".substr(0,t-e.length)+e}function Yd(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 qLe(e){return e===Yd(e)}function XLe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Rm(e,t,n,r){var a=Si(e),i=a[KE(n)](),o=a[qd(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[iw(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[zg(n)](),f=(c-1)%12+1,d=a[ow(n)](),h=a[sw(n)](),v=a[lw(n)](),p=r instanceof Gn?r:nk(r||o7)||YLe(),g=p.getModel("time"),m=g.get("month"),b=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ia(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Ia(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ia(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ia(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ia(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ia(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Ia(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ia(v,3)).replace(/{S}/g,v+"")}function ZLe(e,t,n,r,a){var i=null;if(yt(n))i=n;else if(Et(n))i=n(e.value,t,{level:e.level});else{var o=Ge({},lp);if(e.level>0)for(var s=0;s<hC.length;++s)o[hC[s]]="{primary|"+o[hC[s]]+"}";var l=n?n.inherit===!1?n:Lt(n,o):o,u=l7(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=s7.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(Xe(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 Rm(new Date(e.value),i,a,r)}function l7(e,t){var n=Si(e),r=n[qd(t)]()+1,a=n[iw(t)](),i=n[zg(t)](),o=n[ow(t)](),s=n[sw(t)](),l=n[lw(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 o$(e,t,n){var r=kn(e)?Si(e):e;switch(t=t||l7(e,n),t){case"year":return r[KE(n)]();case"half-year":return r[qd(n)]()>=6?1:0;case"quarter":return Math.floor((r[qd(n)]()+1)/4);case"month":return r[qd(n)]();case"day":return r[iw(n)]();case"half-day":return r[zg(n)]()/24;case"hour":return r[zg(n)]();case"minute":return r[ow(n)]();case"second":return r[sw(n)]();case"millisecond":return r[lw(n)]()}}function KE(e){return e?"getUTCFullYear":"getFullYear"}function qd(e){return e?"getUTCMonth":"getMonth"}function iw(e){return e?"getUTCDate":"getDate"}function zg(e){return e?"getUTCHours":"getHours"}function ow(e){return e?"getUTCMinutes":"getMinutes"}function sw(e){return e?"getUTCSeconds":"getSeconds"}function lw(e){return e?"getUTCMilliseconds":"getMilliseconds"}function QLe(e){return e?"setUTCFullYear":"setFullYear"}function u7(e){return e?"setUTCMonth":"setMonth"}function c7(e){return e?"setUTCDate":"setDate"}function f7(e){return e?"setUTCHours":"setHours"}function d7(e){return e?"setUTCMinutes":"setMinutes"}function h7(e){return e?"setUTCSeconds":"setSeconds"}function v7(e){return e?"setUTCMilliseconds":"setMilliseconds"}function JLe(e,t,n,r,a,i,o,s){var l=new Cn({style:{text:e,font:t,align:n,verticalAlign:r,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function UE(e){if(!xE(e))return yt(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function jE(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 Lf=z_;function rk(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&zi(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?Si(e):e;if(isNaN(+l)){if(s)return"-"}else return Rm(l,r,n)}if(t==="ordinal")return Xb(e)?a(e):kn(e)&&i(e)?e+"":"-";var u=Ss(e);return i(u)?UE(u):Xb(e)?a(e):typeof e=="boolean"?e+"":"-"}var s$=["a","b","c","d","e","f","g"],vC=function(e,t){return"{"+e+(t??"")+"}"};function YE(e,t,n){Xe(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=s$[i];e=e.replace(vC(o),vC(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(vC(s$[l],s),n?Pa(u):u)}return e}function eRe(e,t,n){return K(t,function(r,a){e=e.replace("{"+a+"}",n?Pa(r):r)}),e}function p7(e,t){var n=yt(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:'+Pa(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Pa(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 tRe(e,t,n){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
 
- yyyy`);var r=Si(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",Ia(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Ia(i%100+"",2)).replace("dd",Ia(s,2)).replace("d",s).replace("hh",Ia(l,2)).replace("h",l).replace("mm",Ia(u,2)).replace("m",u).replace("ss",Ia(c,2)).replace("s",c).replace("SSS",Ia(f,3)),e}function nRe(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function _f(e,t){return t=t||"transparent",yt(e)?e:Nt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function d1(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var vb=K,g7=["left","right","top","bottom","width","height"],Kc=[["width","left","right"],["height","top","bottom"]];function qE(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 af=qE;Xt(qE,"vertical");Xt(qE,"horizontal");function rRe(e,t,n){var r=t.width,a=t.height,i=ht(e.left,r),o=ht(e.top,a),s=ht(e.right,r),l=ht(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=Lf(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function Br(e,t,n){n=Lf(n||0);var r=t.width,a=t.height,i=ht(e.left,r),o=ht(e.top,a),s=ht(e.right,r),l=ht(e.bottom,a),u=ht(e.width,r),c=ht(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 rn(i+n[3],o+n[0],u,c);return v.margin=n,v}function uw(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 rn(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=Br(Lt({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 aRe(e,t){return e[Kc[t][0]]!=null||e[Kc[t][1]]!=null&&e[Kc[t][2]]!=null}function Hg(e){var t=e.layoutMode||e.constructor.layoutMode;return Nt(t)?t:t?{type:t}:null}function wu(e,t,n){var r=n&&n.ignoreSize;!Xe(r)&&(r=[r,r]);var a=o(Kc[0],0),i=o(Kc[1],1);u(Kc[0],e,a),u(Kc[1],e,i);function o(c,f){var d={},h=0,v={},p=0,g=2;if(vb(c,function(_){v[_]=e[_]}),vb(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){vb(c,function(h){f[h]=d[h]})}}function Xh(e){return m7({},e)}function m7(e,t){return t&&e&&vb(g7,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var iRe=Mn(),Zh=function(e){Ae(t,e);function t(n,r,a){var i=e.call(this,n,r,a)||this;return i.uid=qh("ec_cpt_model"),i}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Hg(this),i=a?Xh(n):{},o=r.getTheme();en(n,o.get(this.mainType)),en(n,this.getDefaultOption()),a&&wu(n,i,a)},t.prototype.mergeOption=function(n,r){en(this.option,n,!0);var a=Hg(this);a&&wu(this.option,n,a)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!HDe(n))return n.defaultOption;var r=iRe(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=en(s,a[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return Mm(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}(Gn);i9(Zh,Gn);j_(Zh);WLe(Zh);GLe(Zh,oRe);function oRe(e){var t=[];return K(Zh.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=et(t,function(n){return us(n).main}),e!=="dataset"&&sn(t,"dataset")<=0&&t.unshift("dataset"),t}const wn=Zh;var y7="";typeof navigator<"u"&&(y7=navigator.platform||"");var td="rgba(0, 0, 0, 0.2)";const sRe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:td,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:td,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:td,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:td,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:td,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:td,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:y7.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 b7=Mt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),ro="original",Ca="arrayRows",ao="objectRows",Ms="keyedColumns",lu="typedArray",_7="unknown",ps="column",Qh="row",na={Must:1,Might:2,Not:3},w7=Mn();function lRe(e){w7(e).datasetMap=Mt()}function S7(e,t,n){var r={},a=ZE(t);if(!a||!e)return r;var i=[],o=[],s=t.ecModel,l=w7(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),K(e,function(p,g){var m=Nt(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});K(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 XE(e,t,n){var r={},a=ZE(e);if(!a)return r;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===ao||i===Ms)&&K(o,function(c,f){(Nt(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=x7(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);d.push(p);var g=p===na.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===na.Not)&&(c.n=h),m(c)&&d[c.n]!==na.Not)return c;g||(p===na.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 ZE(e){var t=e.get("data",!0);if(!t)return Mm(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Pr).models[0]}function uRe(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Mm(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Pr).models}function C7(e,t){return x7(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function x7(e,t,n,r,a,i){var o,s=5;if(si(e))return na.Not;var l,u;if(r){var c=r[i];Nt(c)?(l=c.name,u=c.type):yt(c)&&(l=c)}if(u!=null)return u==="ordinal"?na.Must:na.Not;if(t===Ca){var f=e;if(n===Qh){for(var d=f[i],h=0;h<(d||[]).length&&h<s;h++)if((o=S(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=S(v[i]))!=null)return o}}else if(t===ao){var p=e;if(!l)return na.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Ms){var m=e;if(!l)return na.Not;var d=m[l];if(!d||si(d))return na.Not;for(var h=0;h<d.length&&h<s;h++)if((o=S(d[h]))!=null)return o}else if(t===ro)for(var b=e,h=0;h<b.length&&h<s;h++){var g=b[h],_=Hh(g);if(!Xe(_))return na.Not;if((o=S(_[i]))!=null)return o}function S(x){var C=yt(x);if(x!=null&&isFinite(x)&&x!=="")return C?na.Might:na.Not;if(C&&x!=="-")return na.Must}return na.Not}var ak=Mt();function cRe(e,t){Sa(ak.get(e)==null&&t),ak.set(e,t)}function fRe(e,t,n){var r=ak.get(t);if(!r)return n;var a=r(e);return a?n.concat(a):n}var l$=Mn(),dRe=Mn(),QE=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var a=Kn(this.get("color",!0)),i=this.get("colorLayer",!0);return T7(this,l$,a,i,t,n,r)},e.prototype.clearColorPalette=function(){vRe(this,l$)},e}();function ik(e,t,n,r){var a=Kn(e.get(["aria","decal","decals"]));return T7(e,dRe,a,null,t,n,r)}function hRe(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 T7(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:hRe(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 vRe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Wy,Pv,u$,c$="\0_ec_inner",pRe=1,k7=function(e){Ae(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 Gn(i),this._locale=new Gn(o),this._optionManager=s},t.prototype.setOption=function(n,r,a){var i=h$(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(n,r){return this._resetOption(n,h$(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"?u$(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&&K(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=Mt(),u=r&&r.replaceMergeMainTypeMap;lRe(this),K(n,function(f,d){f!=null&&(wn.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?$t(f):en(a[d],f,!0))}),u&&u.each(function(f,d){wn.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),wn.topologicalTravel(s,wn.getAllClassMainTypes(),c,this);function c(f){var d=fRe(this,f,Kn(n[f])),h=i.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=e9(h,d,v);LDe(p,f,wn),a[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],b=0,_;K(p,function(S,x){var C=S.existing,w=S.newOption;if(!w)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var k=f==="series",M=wn.getClass(f,S.keyInfo.subType,!k);if(!M)return;if(f==="tooltip"){if(_)return;_=!0}if(C&&C.constructor===M)C.name=S.keyInfo.name,C.mergeOption(w,this),C.optionUpdated(w,!1);else{var I=Ge({componentIndex:x},S.keyInfo);C=new M(w,this,this,I),Ge(C,I),S.brandNew&&(C.__requireNewView=!0),C.init(w,this,this),C.optionUpdated(null,!0)}}C?(g.push(C.option),m.push(C),b++):(g.push(void 0),m.push(void 0))},this),a[f]=g,i.set(f,m),o.set(f,b),f==="series"&&Wy(this)}this._seriesIndices||Wy(this)},t.prototype.getOption=function(){var n=$t(this.option);return K(n,function(r,a){if(wn.hasClass(a)){for(var i=Kn(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Og(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[c$],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=[],K(Kn(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=f$("id",i,s):o!=null?l=f$("name",o,s):l=Bn(s,function(u){return!!u}),d$(l,n)},t.prototype.findComponents=function(n){var r=n.query,a=n.mainType,i=s(r),o=i?this.queryComponents(i):Bn(this._componentsMap.get(a),function(u){return!!u});return l(d$(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?Bn(u,n.filter):u}},t.prototype.eachComponent=function(n,r,a){var i=this._componentsMap;if(Et(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=yt(n)?i.get(n):Nt(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=Fr(n,null);return Bn(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 Bn(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return Bn(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){Pv(this),K(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];n.call(r,i,a)},this)},t.prototype.eachRawSeries=function(n,r){K(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,a){Pv(this),K(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 K(this.getSeriesByType(n),r,a)},t.prototype.isSeriesFiltered=function(n){return Pv(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){Pv(this);var a=[];K(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=Mt(a)},t.prototype.restoreData=function(n){Wy(this);var r=this._componentsMap,a=[];r.each(function(i,o){wn.hasClass(o)&&a.push(o)}),wn.topologicalTravel(a,wn.getAllClassMainTypes(),function(i){K(r.get(i),function(o){o&&(i!=="series"||!gRe(o,n))&&o.restoreData()})})},t.internalField=function(){Wy=function(n){var r=n._seriesIndices=[];K(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=Mt(r)},Pv=function(n){},u$=function(n,r){n.option={},n.option[c$]=pRe,n._componentsMap=Mt({series:[]}),n._componentsCount=Mt();var a=r.aria;Nt(a)&&a.enabled==null&&(a.enabled=!0),mRe(r,n._theme.option),en(r,sRe,!1),n._mergeOption(r,null)}}(),t}(Gn);function gRe(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 mRe(e,t){var n=e.color&&!e.colorLayer;K(t,function(r,a){a==="colorLayer"&&n||wn.hasClass(a)||(typeof r=="object"?e[a]=e[a]?en(e[a],r,!1):$t(r):e[a]==null&&(e[a]=r))})}function f$(e,t,n){if(Xe(t)){var r=Mt();return K(t,function(i){if(i!=null){var o=Fr(i,null);o!=null&&r.set(i,!0)}}),Bn(n,function(i){return i&&r.get(i[e])})}else{var a=Fr(t,null);return Bn(n,function(i){return i&&a!=null&&i[e]===a})}}function d$(e,t){return t.hasOwnProperty("subType")?Bn(e,function(n){return n&&n.subType===t.subType}):e}function h$(e){var t=Mt();return e&&K(Kn(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Tr(k7,QE);const M7=k7;var yRe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],bRe=function(){function e(t){K(yRe,function(n){this[n]=bt(t[n],t)},this)}return e}();const A7=bRe;var pC={},_Re=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];K(pC,function(a,i){var o=a.create(t,n);r=r.concat(o||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){K(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){pC[t]=n},e.get=function(t){return pC[t]},e}();const Jh=_Re;var wRe=/^(min|max)?(.+)$/,SRe=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(K(Kn(t.series),function(o){o&&o.data&&si(o.data)&&kg(o.data)}),K(Kn(t.dataset),function(o){o&&o.source&&si(o.source)&&kg(o.source)})),t=$t(t);var a=this._optionBackup,i=CRe(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=[],$t(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=$t(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++)xRe(a[l].query,n,r)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!kRe(o,this._currentMediaIndices)&&(s=et(o,function(c){return $t(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function CRe(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&&Xe(u)&&K(u,function(h){h&&h.option&&(h.query?r.push(h):a||(a=h))}),d(i),K(l,function(h){return d(h)}),K(r,function(h){return d(h.option)});function d(h){K(t,function(v){v(h,n)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:r}}function xRe(e,t,n){var r={width:t,height:n,aspectratio:t/n},a=!0;return K(e,function(i,o){var s=o.match(wRe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();TRe(r[u],i,l)||(a=!1)}}),a}function TRe(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function kRe(e,t){return e.join(",")===t.join(",")}const MRe=SRe;var co=K,Wg=Nt,v$=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function gC(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=v$.length;n<r;n++){var a=v$[n],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?en(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?en(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function ma(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,Lt(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 up(e){ma(e,"itemStyle"),ma(e,"lineStyle"),ma(e,"areaStyle"),ma(e,"label"),ma(e,"labelLine"),ma(e,"upperLabel"),ma(e,"edgeLabel")}function Dr(e,t){var n=Wg(e)&&e[t],r=Wg(n)&&n.textStyle;if(r)for(var a=0,i=yN.length;a<i;a++){var o=yN[a];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Pi(e){e&&(up(e),Dr(e,"label"),e.emphasis&&Dr(e.emphasis,"label"))}function ARe(e){if(Wg(e)){gC(e),up(e),Dr(e,"label"),Dr(e,"upperLabel"),Dr(e,"edgeLabel"),e.emphasis&&(Dr(e.emphasis,"label"),Dr(e.emphasis,"upperLabel"),Dr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(gC(t),Pi(t));var n=e.markLine;n&&(gC(n),Pi(n));var r=e.markArea;r&&Pi(r);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!si(i))for(var o=0;o<i.length;o++)Pi(i[o]);K(e.categories,function(u){up(u)})}if(a&&!si(a))for(var o=0;o<a.length;o++)Pi(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Pi(s[o]);if(n=e.markLine,n&&n.data)for(var l=n.data,o=0;o<l.length;o++)Xe(l[o])?(Pi(l[o][0]),Pi(l[o][1])):Pi(l[o]);e.type==="gauge"?(Dr(e,"axisLabel"),Dr(e,"title"),Dr(e,"detail")):e.type==="treemap"?(ma(e.breadcrumb,"itemStyle"),K(e.levels,function(u){up(u)})):e.type==="tree"&&up(e.leaves)}}function Ls(e){return Xe(e)?e:e?[e]:[]}function p$(e){return(Xe(e)?e[0]:e)||{}}function ERe(e,t){co(Ls(e.series),function(r){Wg(r)&&ARe(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),co(n,function(r){co(Ls(e[r]),function(a){a&&(Dr(a,"axisLabel"),Dr(a.axisPointer,"label"))})}),co(Ls(e.parallel),function(r){var a=r&&r.parallelAxisDefault;Dr(a,"axisLabel"),Dr(a&&a.axisPointer,"label")}),co(Ls(e.calendar),function(r){ma(r,"itemStyle"),Dr(r,"dayLabel"),Dr(r,"monthLabel"),Dr(r,"yearLabel")}),co(Ls(e.radar),function(r){Dr(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)}),co(Ls(e.geo),function(r){Wg(r)&&(Pi(r),co(Ls(r.regions),function(a){Pi(a)}))}),co(Ls(e.timeline),function(r){Pi(r),ma(r,"label"),ma(r,"itemStyle"),ma(r,"controlStyle",!0);var a=r.data;Xe(a)&&K(a,function(i){Nt(i)&&(ma(i,"label"),ma(i,"itemStyle"))})}),co(Ls(e.toolbox),function(r){ma(r,"iconStyle"),co(r.feature,function(a){ma(a,"iconStyle")})}),Dr(p$(e.axisPointer),"label"),Dr(p$(e.tooltip).axisPointer,"label")}function IRe(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 DRe(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 g$(e){e&&K(PRe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var PRe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],LRe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],mC=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Lv(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<mC.length;n++){var r=mC[n][1],a=mC[n][0];t[r]!=null&&(t[a]=t[r])}}function m$(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function y$(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function RRe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function E7(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&E7(e[n].children,t)}function I7(e,t){ERe(e,t),e.series=Kn(e.series),K(e.series,function(n){if(Nt(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),m$(n.label);var a=n.data;if(a&&!si(a))for(var i=0;i<a.length;i++)m$(a[i]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=IRe(n,"pointer.color");o!=null&&DRe(n,"itemStyle.color",o)}else if(r==="bar"){Lv(n),Lv(n.backgroundStyle),Lv(n.emphasis);var a=n.data;if(a&&!si(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Lv(a[i]),Lv(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)),y$(n),E7(n.data,y$)}else r==="graph"||r==="sankey"?RRe(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Lt(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),g$(n)}}),e.dataRange&&(e.visualMap=e.dataRange),K(LRe,function(n){var r=e[n];r&&(Xe(r)||(r=[r]),K(r,function(a){g$(a)}))})}function ORe(e){var t=Mt();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(NRe)}function NRe(e){K(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=CDe(d,b),p=b;break}}}return r[0]=d,r[1]=p,r})})}var cw=function(){function e(t){this.data=t.data||(t.sourceFormat===Ms?{}:[]),this.sourceFormat=t.sourceFormat||_7,this.seriesLayoutBy=t.seriesLayoutBy||ps,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&&C7(this,r)===na.Must&&(a.type="ordinal")}}return e}();function JE(e){return e instanceof cw}function ok(e,t,n){n=n||D7(e);var r=t.seriesLayoutBy,a=BRe(e,n,r,t.sourceHeader,t.dimensions),i=new cw({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:$t(t)});return i}function eI(e){return new cw({data:e,sourceFormat:si(e)?lu:ro})}function $Re(e){return new cw({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:$t(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function D7(e){var t=_7;if(si(e))t=lu;else if(Xe(e)){e.length===0&&(t=Ca);for(var n=0,r=e.length;n<r;n++){var a=e[n];if(a!=null){if(Xe(a)){t=Ca;break}else if(Nt(a)){t=ao;break}}}}else if(Nt(e)){for(var i in e)if(wt(e,i)&&ua(e[i])){t=Ms;break}}return t}function BRe(e,t,n,r,a){var i,o;if(!e)return{dimensionsDefine:b$(a),startIndex:o,dimensionsDetectedCount:i};if(t===Ca){var s=e;r==="auto"||r==null?_$(function(u){u!=null&&u!=="-"&&(yt(u)?o==null&&(o=1):o=0)},n,s,10):o=kn(r)?r:r?1:0,!a&&o===1&&(a=[],_$(function(u,c){a[c]=u!=null?u+"":""},n,s,1/0)),i=a?a.length:n===Qh?s.length:s[0]?s[0].length:null}else if(t===ao)a||(a=VRe(e));else if(t===Ms)a||(a=[],K(e,function(u,c){a.push(c)}));else if(t===ro){var l=Hh(e[0]);i=Xe(l)&&l.length||1}return{startIndex:o,dimensionsDefine:b$(a),dimensionsDetectedCount:i}}function VRe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return mn(n)}function b$(e){if(e){var t=Mt();return et(e,function(n,r){n=Nt(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 _$(e,t,n,r){if(t===Qh)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 P7(e){var t=e.sourceFormat;return t===ao||t===Ms}var cc,fc,dc,w$,S$,L7=function(){function e(t,n){var r=JE(t)?t:eI(t);this._source=r;var a=this._data=r.data;r.sourceFormat===lu&&(this._offset=0,this._dimSize=n,this._data=a),S$(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;S$=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=w$[tI(u,c)];if(Ge(o,h),u===lu)o.getItem=n,o.count=a,o.fillStorage=r;else{var v=R7(u,c);o.getItem=bt(v,null,s,f,d);var p=O7(u,c);o.count=bt(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};w$=(t={},t[Ca+"_"+ps]={pure:!0,appendData:i},t[Ca+"_"+Qh]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ao]={pure:!0,appendData:i},t[Ms]={pure:!0,appendData:function(o){var s=this._data;K(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[ro]={appendData:i},t[lu]={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}(),C$=function(e,t,n,r){return e[r]},FRe=(cc={},cc[Ca+"_"+ps]=function(e,t,n,r){return e[r+t]},cc[Ca+"_"+Qh]=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},cc[ao]=C$,cc[Ms]=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},cc[ro]=C$,cc);function R7(e,t){var n=FRe[tI(e,t)];return n}var x$=function(e,t,n){return e.length},zRe=(fc={},fc[Ca+"_"+ps]=function(e,t,n){return Math.max(0,e.length-t)},fc[Ca+"_"+Qh]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},fc[ao]=x$,fc[Ms]=function(e,t,n){var r=n[0].name,a=e[r];return a?a.length:0},fc[ro]=x$,fc);function O7(e,t){var n=zRe[tI(e,t)];return n}var yC=function(e,t,n){return e[t]},HRe=(dc={},dc[Ca]=yC,dc[ao]=function(e,t,n){return e[n]},dc[Ms]=yC,dc[ro]=function(e,t,n){var r=Hh(e);return r instanceof Array?r[t]:r},dc[lu]=yC,dc);function N7(e){var t=HRe[e];return t}function tI(e,t){return e===Ca?e+"_"+t:e}function xh(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 N7(i)(r,o,s)}else{var l=r;return i===ro&&(l=Hh(r)),l}}}}var WRe=/\{@(.+?)\}/g,nI=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&&Xe(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(Et(i))return l.status=n,l.dimensionIndex=a,i(l);if(yt(i)){var c=YE(i,l);return c.replace(WRe,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=xh(s,t,v);if(o&&Xe(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,n){return xh(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function T$(e){var t,n;return Nt(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function zp(e){return new GRe(e)}var GRe=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(Xe(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){k$.reset(n,r,a,i),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:k$.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),Xe(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}(),k$=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 uu(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!kn(e)&&e!=null&&e!=="-"&&(e=+Si(e)),e==null||e===""?NaN:+e)}var KRe=Mt({number:function(e){return parseFloat(e)},time:function(e){return+Si(e)},trim:function(e){return yt(e)?zi(e):e}});function $7(e){return KRe.get(e)}var B7={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}},URe=function(){function e(t,n){if(!kn(n)){var r="";On(r)}this._opFn=B7[t],this._rvalFloat=Ss(n)}return e.prototype.evaluate=function(t){return kn(t)?this._opFn(t,this._rvalFloat):this._opFn(Ss(t),this._rvalFloat)},e}(),V7=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=kn(t)?t:Ss(t),a=kn(n)?n:Ss(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=yt(t),l=yt(n);s&&(r=l?t:0),l&&(a=s?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},e}(),jRe=function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=Ss(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=Ss(t)===this._rvalFloat)}return this._isEQ?n:!n},e}();function YRe(e,t){return e==="eq"||e==="ne"?new jRe(e==="eq",t):wt(B7,e)?new URe(e,t):null}var qRe=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 uu(t,n)},e}();function XRe(e,t){var n=new qRe,r=e.data,a=n.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==ps&&On(o);var s=[],l={},u=e.dimensionsDefine;if(u)K(u,function(p,g){var m=p.name,b={index:g,name:m,displayName:p.displayName};if(s.push(b),m!=null){var _="";wt(l,m)&&On(_),l[m]=b}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=R7(a,ps);t.__isBuiltIn&&(n.getRawDataItem=function(p){return f(r,i,s,p)},n.getRawData=bt(ZRe,null,e)),n.cloneRawData=bt(QRe,null,e);var d=O7(a,ps);n.count=bt(d,null,r,i,s);var h=N7(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=bt(JRe,null,s,l),n.cloneAllDimensionInfo=bt(eOe,null,s),n}function ZRe(e){var t=e.sourceFormat;if(!rI(t)){var n="";On(n)}return e.data}function QRe(e){var t=e.sourceFormat,n=e.data;if(!rI(t)){var r="";On(r)}if(t===Ca){for(var a=[],i=0,o=n.length;i<o;i++)a.push(n[i].slice());return a}else if(t===ao){for(var a=[],i=0,o=n.length;i<o;i++)a.push(Ge({},n[i]));return a}}function JRe(e,t,n){if(n!=null){if(kn(n)||!isNaN(n)&&!wt(t,n))return e[n];if(wt(t,n))return t[n]}}function eOe(e){return $t(e)}var F7=Mt();function tOe(e){e=$t(e);var t=e.type,n="";t||On(n);var r=t.split(":");r.length!==2&&On(n);var a=!1;r[0]==="echarts"&&(t=r[1],a=!0),e.__isBuiltIn=a,F7.set(t,e)}function nOe(e,t,n){var r=Kn(e),a=r.length,i="";a||On(i);for(var o=0,s=a;o<s;o++){var l=r[o];t=rOe(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function rOe(e,t,n,r){var a="";t.length||On(a),Nt(e)||On(a);var i=e.type,o=F7.get(i);o||On(a);var s=et(t,function(u){return XRe(u,o)}),l=Kn(o.transform({upstream:s[0],upstreamList:s,config:$t(e.config)}));return et(l,function(u,c){var f="";Nt(u)||On(f),u.data||On(f);var d=D7(u.data);rI(d)||On(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:ps,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:ps,sourceHeader:0,dimensions:u.dimensions};return ok(u.data,h,null)})}function rI(e){return e===Ca||e===ao}var fw="undefined",aOe=typeof Uint32Array===fw?Array:Uint32Array,iOe=typeof Uint16Array===fw?Array:Uint16Array,z7=typeof Int32Array===fw?Array:Int32Array,M$=typeof Float64Array===fw?Array:Float64Array,H7={float:M$,int:z7,ordinal:Array,number:Array,time:M$},bC;function Rv(e){return e>65535?aOe:iOe}function nd(){return[1/0,-1/0]}function oOe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function A$(e,t,n,r,a){var i=H7[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 sOe=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Mt()}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=bC[a.sourceFormat];this._dimValueGetter=r||i,this._rawExtent=[],P7(a),this._dimensions=et(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 H7[n||"float"](this._rawCount),this._rawExtent[i]=nd(),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]=nd());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];A$(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=bC.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=et(o,function(b){return b.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=nd()),A$(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=Rv(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=Rv(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=mn(t),i=a.length;if(!i)return this;var o=n.count(),s=Rv(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]],S=t[a[1]][0],x=t[a[1]][1],m=0;m<r;m++){var b=g[m],C=_[m];(b>=f&&b<=d||isNaN(b))&&(C>=S&&C<=x||isNaN(C))&&(l[u++]=p),p++}v=!0}}if(!v)if(i===1)for(var m=0;m<o;m++){var w=n.getRawIndex(m),b=h[a[0]][w];(b>=f&&b<=d||isNaN(b))&&(l[u++]=w)}else for(var m=0;m<o;m++){for(var k=!0,w=n.getRawIndex(m),M=0;M<i;M++){var I=a[M],b=h[I][w];(b<t[I][0]||b>t[I][1])&&(k=!1)}k&&(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]]=nd();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(Rv(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 S=this.getRawIndex(_),x=i[S];isNaN(x)||(b+=x)}b/=g-p;var C=v,w=Math.min(v+l,o),k=v-1,M=i[u];c=-1,d=C;for(var I=-1,E=0,_=C;_<w;_++){var S=this.getRawIndex(_),x=i[S];if(isNaN(x)){E++,I<0&&(I=S);continue}f=Math.abs((k-m)*(x-M)-(k-_)*(b-M)),f>c&&(c=f,d=S)}E>0&&E<w-C&&(h[s++]=Math.min(I,d),d=Math.max(I,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]=nd(),d=new(Rv(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=nd();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&&Ji(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)r._chunks[o]=i[o]?oOe(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=$t(this._extent),t._rawExtent=$t(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 uu(n[i],this._dimensions[i])}bC={arrayRows:t,objectRows:function(n,r,a,i){return uu(n[r],this._dimensions[i])},keyedColumns:t,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return uu(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),e}();const sk=sOe;var W7=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(Gy(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=si(s)?lu:ro,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=nn(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=nn(f.sourceHeader,d.sourceHeader),p=nn(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;a=g?[ok(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=[ok(_,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&&I$(i)}var o,s=[],l=[];return K(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&I$(f),s.push(c),l.push(u._getVersionSign())}),r?o=nOe(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[$Re(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];Gy(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new sk,s.initData(new L7(n,t.length),t)),o[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Gy(t)){var n=ZE(t);return n?[n.getSourceManager()]:[]}else return et(uRe(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,a;if(Gy(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 E$(e){var t=e.option.transform;t&&kg(e.option.transform)}function Gy(e){return e.mainType==="series"}function I$(e){throw new Error(e)}var G7="line-height:1";function K7(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:"+Pa(r+"")+"px;color:"+Pa(n)+";font-weight:"+Pa(a+""),valueStyle:"font-size:"+Pa(o+"")+"px;color:"+Pa(i)+";font-weight:"+Pa(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var lOe=[0,10,20,30],uOe=["",`
 
- `,`
 
- `,`
 
- `];function qr(e,t){return t.type=e,t}function lk(e){return e.type==="section"}function U7(e){return lk(e)?cOe:fOe}function j7(e){if(lk(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return K(e.blocks,function(a){var i=j7(a);i>=t&&(t=i+ +(r&&(!i||lk(a)&&!a.noHeader)))}),t}return 0}function cOe(e,t,n,r){var a=t.noHeader,i=dOe(j7(t)),o=[],s=t.blocks||[];Sa(!s||Xe(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(wt(u,l)){var c=new V7(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}K(s,function(v,p){var g=t.valueFormatter,m=U7(v)(g?Ge(Ge({},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):uk(o.join(""),a?n:i.html);if(a)return f;var d=rk(t.header,"ordinal",e.useUTC),h=K7(r,e.renderMode).nameStyle;return e.renderMode==="richText"?Y7(e,d,h)+i.richText+f:uk('<div style="'+h+";"+G7+';">'+Pa(d)+"</div>"+f,n)}function fOe(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(S){return S=Xe(S)?S:[S],et(S,function(x,C){return rk(x,Xe(h)?h[C]:h,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":rk(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value),p=!s||!i,g=!s&&i,m=K7(r,a),b=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":Y7(e,d,b))+(o?"":pOe(e,v,p,g,_)):uk((s?"":f)+(i?"":hOe(d,!s,b))+(o?"":vOe(v,p,g,_)),n)}}function D$(e,t,n,r,a,i){if(e){var o=U7(e),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function dOe(e){return{html:lOe[e],richText:uOe[e]}}function uk(e,t){var n='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+G7+';">'+e+n+"</div>"}function hOe(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Pa(e)+"</span>"}function vOe(e,t,n,r){var a=n?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=Xe(e)?e:[e],'<span style="'+i+";"+r+'">'+et(e,function(o){return Pa(o)}).join("  ")+"</span>"}function Y7(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function pOe(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(Xe(t)?t.join("  "):t,i)}function q7(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return _f(r)}function X7(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var _C=function(){function e(){this.richTextStyles={},this._nextStyleNameId=XG()}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=p7({color:n,type:t,renderMode:r,markerId:a});return yt(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Xe(n)?K(n,function(i){return Ge(r,i)}):Ge(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function Z7(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=Xe(s),u=q7(t,n),c,f,d,h;if(o>1||l&&!o){var v=gOe(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=xh(a,n,i[0]),f=p.type}else h=c=l?s[0]:s;var g=TE(t),m=g&&t.name||"",b=a.getName(n),_=r?m:b;return qr("section",{header:m,noHeader:r||!g,sortParam:h,blocks:[qr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!zi(_),value:c,valueType:f})].concat(d||[])})}function gOe(e,t,n,r,a){var i=t.getData(),o=Ji(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?K(r,function(f){c(xh(i,n,f),f)}):K(e,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(qr("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 Ml=Mn();function Ky(e,t){return e.getName(t)||e.getId(t)}var pb="__universalTransitionEnabled",dw=function(e){Ae(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=zp({count:yOe,reset:bOe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=Ml(this).sourceManager=new W7(this);i.prepareSource();var o=this.getInitialData(n,a);L$(o,this),this.dataTask.context.data=o,Ml(this).dataBeforeProcessed=o,P$(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Hg(this),i=a?Xh(n):{},o=this.subType;wn.hasClass(o)&&(o+="Series"),en(n,r.getTheme().get(this.subType)),en(n,this.getDefaultOption()),gf(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&wu(n,i,a)},t.prototype.mergeOption=function(n,r){n=en(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Hg(this);a&&wu(this.option,n,a);var i=Ml(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);L$(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ml(this).dataBeforeProcessed=o,P$(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(n){if(n&&!si(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&gf(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=ck(this);if(r){var a=r.context.data;return n==null?a:a.getLinkedData(n)}else return Ml(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=ck(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}Ml(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Mt(n)},t.prototype.getSourceManager=function(){return Ml(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ml(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 Z7({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Tn.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=QE.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=Ky(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=mn(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[Ky(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[pb])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"){Nt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=r[c],d=Ky(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=Ky(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 wn.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}(wn);Tr(dw,nI);Tr(dw,QE);i9(dw,wn);function P$(e){var t=e.name;TE(e)||(e.name=mOe(e)||t)}function mOe(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return K(n,function(a){var i=t.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function yOe(e){return e.model.getRawData().count()}function bOe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_Oe}function _Oe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function L$(e,t){K(Mg(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Xt(wOe,t))})}function wOe(e,t){var n=ck(e);return n&&n.setOutputEnd((t||this).count()),t}function ck(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 Jn=dw;var aI=function(){function e(){this.group=new zt,this.uid=qh("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}();ME(aI);j_(aI);const sr=aI;function ev(){var e=Mn();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 Q7=Mn(),SOe=ev(),iI=function(){function e(){this.group=new zt,this.uid=qh("viewChart"),this.renderTask=zp({plan:COe,reset:xOe}),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&&O$(i,a,"emphasis")},e.prototype.downplay=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&O$(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){Nu(this.group,t)},e.markUpdateMethod=function(t,n){Q7(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function R$(e,t,n){e&&Bg(e)&&(t==="emphasis"?rl:al)(e,n)}function O$(e,t,n){var r=mf(e,t),a=t&&t.highlightKey!=null?ZPe(t.highlightKey):null;r!=null?K(Kn(r),function(i){R$(e.getItemGraphicEl(i),n,a)}):e.eachItemGraphicEl(function(i){R$(i,n,a)})}ME(iI);j_(iI);function COe(e){return SOe(e.model)}function xOe(e){var t=e.model,n=e.ecModel,r=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&Q7(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,r,a),TOe[l]}var TOe={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 Un=iI;var h1="\0__throttleOriginMethod",N$="\0__throttleRate",$$="\0__throttleType";function hw(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 tv(e,t,n,r){var a=e[t];if(a){var i=a[h1]||a,o=a[$$],s=a[N$];if(s!==n||o!==r){if(n==null||!r)return e[t]=i;a=e[t]=hw(i,n,r==="debounce"),a[h1]=i,a[$$]=r,a[N$]=n}return a}}function Gg(e,t){var n=e[t];n&&n[h1]&&(n.clear&&n.clear(),e[t]=n[h1])}var B$=Mn(),V$={itemStyle:yf(i7,!0),lineStyle:yf(a7,!0)},kOe={lineStyle:"stroke",itemStyle:"fill"};function J7(e,t){var n=e.visualStyleMapper||V$[t];return n||(console.warn("Unknown style type '"+t+"'."),V$.itemStyle)}function eK(e,t){var n=e.visualDrawType||kOe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var MOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=e.getModel(r),i=J7(e,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=eK(e,r),u=o[l],c=Et(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"||Et(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Et(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=Ge({},o);g[l]=c(p),h.setItemVisual(v,"style",g)}}}},Ov=new Gn,AOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=J7(e,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){Ov.option=l[r];var u=a(Ov),c=o.ensureUniqueItemVisual(s,"style");Ge(c,u),Ov.option.decal&&(o.setItemVisual(s,"decal",Ov.option.decal),Ov.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},EOe={performRawSeries:!0,overallReset:function(e){var t=Mt();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)),B$(n).scope=i}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=B$(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=eK(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)}})}})}},Uy=Math.PI;function IOe(e,t){t=t||{},Lt(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 zt,r=new xn({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var a=new Cn({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 xn({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 ew({shape:{startAngle:-Uy/2,endAngle:-Uy/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:Uy*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Uy*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 DOe=function(){function e(t,n,r,a){this._stageTaskMap=Mt(),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=Mt();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;K(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Sa(!(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;K(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=Mt(),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)||zp({plan:NOe,reset:$Oe,count:VOe}));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||zp({reset:POe});o.context={ecModel:r,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Mt(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";Sa(!t.createOnAllSeries,h),u?r.eachRawSeriesByType(u,v):c?c(r,a).each(v):(f=!1,K(r.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,zp({reset:LOe,onDirty:OOe})));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 Et(t)&&(t={overallReset:t,seriesType:FOe(t)}),t.uid=qh("stageHandler"),n&&(t.visualType=n),t},e}();function POe(e){e.overallReset(e.ecModel,e.api,e.payload)}function LOe(e){return e.overallProgress&&ROe}function ROe(){this.agent.dirty(),this.getDownstream().dirty()}function OOe(){this.agent&&this.agent.dirty()}function NOe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function $Oe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Kn(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?et(t,function(n,r){return tK(r)}):BOe}var BOe=tK(0);function tK(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 VOe(e){return e.data.count()}function FOe(e){v1=null;try{e(Kg,nK)}catch{}return v1}var Kg={},nK={},v1;rK(Kg,M7);rK(nK,A7);Kg.eachSeriesByType=Kg.eachRawSeriesByType=function(e){v1=e};Kg.eachComponent=function(e){e.mainType==="series"&&e.subType&&(v1=e.subType)};function rK(e,t){for(var n in t.prototype)e[n]=Cr}const aK=DOe;var F$=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const zOe={color:F$,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],F$]};var Aa="#B9B8CE",z$="#100C2A",jy=function(){return{axisLine:{lineStyle:{color:Aa}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},H$=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],iK={darkMode:!0,color:H$,backgroundColor:z$,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Aa}},textStyle:{color:Aa},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Aa}},dataZoom:{borderColor:"#71708A",textStyle:{color:Aa},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:Aa}},timeline:{lineStyle:{color:Aa},label:{color:Aa},controlStyle:{color:Aa,borderColor:Aa}},calendar:{itemStyle:{color:z$},dayLabel:{color:Aa},monthLabel:{color:Aa},yearLabel:{color:Aa}},timeAxis:jy(),logAxis:jy(),valueAxis:jy(),categoryAxis:jy(),line:{symbol:"circle"},graph:{color:H$},gauge:{title:{color:Aa},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Aa},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};iK.categoryAxis.splitLine.show=!1;const HOe=iK;var WOe=function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},a={};if(yt(t)){var i=us(t);n.mainType=i.main||null,n.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};K(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}(),fk=["symbol","symbolSize","symbolRotate","symbolOffset"],W$=fk.concat(["symbolKeepAspect"]),GOe={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<fk.length;o++){var s=fk[o],l=e.get(s);Et(l)?(i=!0,a[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Ge({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=mn(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}}},KOe={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<W$.length;s++){var l=W$[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function oI(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 Om(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 oK(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 sK(e,t){function n(r,a){var i=[];return r.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}K([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(r){t(r[0],function(a,i,o){a=Ge({},a),o.dispatchAction(Ge(a,{type:r[1],seriesIndex:n(i,a)}))})})}function rd(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=mf(f,a.fromActionPayload);n.trigger(i,{type:i,seriesId:o.id,name:Xe(d)?f.getName(d[0]):f.getName(d),selected:yt(l)?l:Ge({},l)})}})}function UOe(e,t,n){e.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(rd("map","selectchanged",t,a,r),rd("pie","selectchanged",t,a,r)):r.fromAction==="select"?(rd("map","selected",t,a,r),rd("pie","selected",t,a,r)):r.fromAction==="unselect"&&(rd("map","unselected",t,a,r),rd("pie","unselected",t,a,r))})}function Uc(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var jOe=Math.round(Math.random()*9),YOe=typeof Object.defineProperty=="function",qOe=function(){function e(){this._id="__ec_inner_"+jOe++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return YOe?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 XOe=qOe;var ZOe=dn.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()}}),QOe=dn.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()}}),JOe=dn.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()}}),eNe=dn.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()}}),tNe={line:Gr,rect:xn,roundRect:xn,square:xn,circle:Oo,diamond:QOe,pin:JOe,arrow:eNe,triangle:ZOe},nNe={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}},p1={};K(tNe,function(e,t){p1[t]=new e});var rNe=dn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=a1(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=p1[r];a||(r="rect",a=p1[r]),nNe[r](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,n)}}});function aNe(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 Er(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=$E(e.slice(8),new rn(t,n,r,a),o?"center":"cover"):e.indexOf("path://")===0?l=Dm(e.slice(7),{},new rn(t,n,r,a),o?"center":"cover"):l=new rNe({shape:{symbolType:e,x:t,y:n,width:r,height:a}}),l.__isEmptyBrush=s,l.setColor=aNe,i&&l.setColor(i),l}function nv(e){return Xe(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Rf(e,t){if(e!=null)return Xe(e)||(e=[e,e]),[ht(e[0],t[0])||0,ht(nn(e[1],e[0]),t[1])||0]}function jc(e){return isFinite(e)}function iNe(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=jc(r)?r:0,a=jc(a)?a:1,i=jc(i)?i:0,o=jc(o)?o:0;var s=e.createLinearGradient(r,i,a,o);return s}function oNe(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=jc(o)?o:.5,s=jc(s)?s:.5,l=l>=0&&jc(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function dk(e,t,n){for(var r=t.type==="radial"?oNe(e,t,n):iNe(e,t,n),a=t.colorStops,i=0;i<a.length;i++)r.addColorStop(a[i].offset,a[i].color);return r}function sNe(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 Yy(e){return parseInt(e,10)}function Dd(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]||Yy(s[r])||Yy(e.style[r]))-(Yy(s[i])||0)-(Yy(s[o])||0)|0}function lNe(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:kn(e)?[e]:Xe(e)?e:null}function sI(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&lNe(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(n=et(n,function(i){return i/a}),r/=a)}return[n,r]}var uNe=new Cs(!0);function g1(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function G$(e){return typeof e=="string"&&e!=="none"}function m1(e){var t=e.fill;return t!=null&&t!=="none"}function K$(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 U$(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 hk(e,t,n){var r=AE(t.image,t.__image,n);if(Y_(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)*Ip),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function cNe(e,t,n,r){var a,i=g1(n),o=m1(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||uNe,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,S=void 0,x=void 0,C=void 0;(v||p)&&(C=t.getBoundingRect()),v&&(b=f?dk(e,d,C):t.__canvasFillGradient,t.__canvasFillGradient=b),p&&(_=f?dk(e,h,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=f||!t.__canvasFillPattern?hk(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(x=f||!t.__canvasStrokePattern?hk(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),v?e.fillStyle=b:g&&(S?e.fillStyle=S:o=!1),p?e.strokeStyle=_:m&&(x?e.strokeStyle=x:i=!1)}var w=t.getGlobalScale();c.setScale(w[0],w[1],t.segmentIgnoreThreshold);var k,M;e.setLineDash&&n.lineDash&&(a=sI(t),k=a[0],M=a[1]);var I=!0;(u||f&_d)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),I=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),I&&c.rebuildPath(e,l?s:1),k&&(e.setLineDash(k),e.lineDashOffset=M),r||(n.strokeFirst?(i&&U$(e,n),o&&K$(e,n)):(o&&K$(e,n),i&&U$(e,n))),k&&e.setLineDash([])}function fNe(e,t,n){var r=t.__image=AE(n.image,t.__image,t,t.onload);if(!(!r||!Y_(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 dNe(e,t,n){var r,a=n.text;if(a!=null&&(a+=""),a){e.font=n.font||yu,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=sI(t),i=r[0],o=r[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),n.strokeFirst?(g1(n)&&e.strokeText(a,n.x,n.y),m1(n)&&e.fillText(a,n.x,n.y)):(m1(n)&&e.fillText(a,n.x,n.y),g1(n)&&e.strokeText(a,n.x,n.y)),i&&e.setLineDash([])}}var j$=["shadowBlur","shadowOffsetX","shadowOffsetY"],Y$=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function lK(e,t,n,r,a){var i=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){ti(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?nf.opacity:o}(r||t.blend!==n.blend)&&(i||(ti(e,a),i=!0),e.globalCompositeOperation=t.blend||nf.blend);for(var s=0;s<j$.length;s++){var l=j$[s];(r||t[l]!==n[l])&&(i||(ti(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(i||(ti(e,a),i=!0),e.shadowColor=t.shadowColor||nf.shadowColor),i}function q$(e,t,n,r,a){var i=Ug(t,a.inHover),o=r?null:n&&Ug(n,a.inHover)||{};if(i===o)return!1;var s=lK(e,i,o,r,a);if((r||i.fill!==o.fill)&&(s||(ti(e,a),s=!0),G$(i.fill)&&(e.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(s||(ti(e,a),s=!0),G$(i.stroke)&&(e.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(s||(ti(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||(ti(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<Y$.length;c++){var f=Y$[c],d=f[0];(r||i[d]!==o[d])&&(s||(ti(e,a),s=!0),e[d]=i[d]||f[1])}return s}function hNe(e,t,n,r,a){return lK(e,Ug(t,a.inHover),n&&Ug(n,a.inHover),r,a)}function uK(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 vNe(e,t,n){for(var r=!1,a=0;a<e.length;a++){var i=e[a];r=r||i.isZeroArea(),uK(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}n.allClipped=r}function pNe(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 X$=1,Z$=2,Q$=3,J$=4;function gNe(e){var t=m1(e),n=g1(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 ti(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Ug(e,t){return t&&e.__hoverStyle||e.style}function lI(e,t){Yc(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Yc(e,t,n,r){var a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~di,t.__isRendered=!1;return}var i=t.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if((!o||sNe(i,o))&&(o&&o.length&&(ti(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(ti(e,n),e.save(),vNe(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 dn&&t.autoBatch&&gNe(t.style);s||pNe(a,u.transform)?(ti(e,n),uK(e,t)):c||ti(e,n);var f=Ug(t,n.inHover);t instanceof dn?(n.lastDrawType!==X$&&(l=!0,n.lastDrawType=X$),q$(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),cNe(e,t,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof Ng?(n.lastDrawType!==Q$&&(l=!0,n.lastDrawType=Q$),q$(e,t,u,l,n),dNe(e,t,f)):t instanceof ea?(n.lastDrawType!==Z$&&(l=!0,n.lastDrawType=Z$),hNe(e,t,u,l,n),fNe(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==J$&&(l=!0,n.lastDrawType=J$),mNe(e,t,n)),c&&r&&ti(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function mNe(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(),Yc(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(),Yc(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var wC=new XOe,e3=new Tm(100),t3=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Th(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),a=r.painter.type==="svg";e.dirty&&wC.delete(e);var i=wC.get(e);if(i)return i;var o=Lt(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,wC.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<t3.length;++d){var h=o[t3[d]];if(h!=null&&!Xe(h)&&!yt(h)&&!kn(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(a?"-svg":"");var p=e3.get(v);p&&(a?u.svgElement=p:u.image=p)}var g=fK(o.dashArrayX),m=yNe(o.dashArrayY),b=cK(o.symbol),_=bNe(g),S=dK(m),x=!a&&Po.createCanvas(),C=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=M(),k;x&&(x.width=w.width*n,x.height=w.height*n,k=x.getContext("2d")),I(),f&&e3.put(v,x||C),u.image=x,u.svgElement=C,u.svgWidth=w.width,u.svgHeight=w.height;function M(){for(var E=1,D=0,P=_.length;D<P;++D)E=gN(E,_[D]);for(var N=1,D=0,P=b.length;D<P;++D)N=gN(N,b[D].length);E*=N;var z=S*_.length*b.length;return{width:Math.max(1,Math.min(E,o.maxTileWidth)),height:Math.max(1,Math.min(z,o.maxTileHeight))}}function I(){k&&(k.clearRect(0,0,x.width,x.height),o.backgroundColor&&(k.fillStyle=o.backgroundColor,k.fillRect(0,0,x.width,x.height)));for(var E=0,D=0;D<m.length;++D)E+=m[D];if(E<=0)return;for(var P=-S,N=0,z=0,F=0;P<w.height;){if(N%2===0){for(var B=z/2%b.length,V=0,L=0,G=0;V<w.width*2;){for(var q=0,D=0;D<g[F].length;++D)q+=g[F][D];if(q<=0)break;if(L%2===0){var Q=(1-o.symbolSize)*.5,ie=V+g[F][L]*Q,de=P+m[N]*Q,oe=g[F][L]*o.symbolSize,se=m[N]*o.symbolSize,le=G/2%b[B].length;ne(ie,de,oe,se,b[B][le])}V+=g[F][L],++G,++L,L===g[F].length&&(L=0)}++F,F===g.length&&(F=0)}P+=m[N],++z,++N,N===m.length&&(N=0)}function ne(Ce,Te,he,X,ae){var ge=a?1:n,ke=Er(ae,Ce*ge,Te*ge,he*ge,X*ge,o.color,o.symbolKeepAspect);if(a){var Pe=r.painter.renderOneToVNode(ke);Pe&&C.children.push(Pe)}else lI(k,ke)}}}}function cK(e){if(!e||e.length===0)return[["rect"]];if(yt(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!yt(e[n])){t=!1;break}if(t)return cK([e]);for(var r=[],n=0;n<e.length;++n)yt(e[n])?r.push([e[n]]):r.push(e[n]);return r}function fK(e){if(!e||e.length===0)return[[0,0]];if(kn(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!kn(e[r])){n=!1;break}if(n)return fK([e]);for(var a=[],r=0;r<e.length;++r)if(kn(e[r])){var t=Math.ceil(e[r]);a.push([t,t])}else{var t=et(e[r],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function yNe(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(kn(e)){var t=Math.ceil(e);return[t,t]}var n=et(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function bNe(e){return et(e,function(t){return dK(t)})}function dK(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function _Ne(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=Th(s,t)}});var a=r.getVisual("decal");if(a){var i=r.getVisual("style");i.decal=Th(a,t)}}})}var wNe=new to;const go=wNe;var hK={};function SNe(e,t){hK[e]=t}function vK(e){return hK[e]}var CNe="5.4.3",xNe={zrender:"5.4.4"},TNe=1,kNe=800,MNe=900,ANe=1e3,ENe=2e3,INe=5e3,pK=1e3,DNe=1100,uI=2e3,gK=3e3,PNe=4e3,vw=4500,LNe=4600,RNe=5e3,ONe=6e3,mK=7e3,yK={PROCESSOR:{FILTER:ANe,SERIES_FILTER:kNe,STATISTIC:INe},VISUAL:{LAYOUT:pK,PROGRESSIVE_LAYOUT:DNe,GLOBAL:uI,CHART:gK,POST_CHART_LAYOUT:LNe,COMPONENT:PNe,BRUSH:RNe,CHART_ITEM:vw,ARIA:ONe,DECAL:mK}},pa="__flagInMainProcess",Xa="__pendingUpdate",SC="__needsUpdateStatus",n3=/^[a-zA-Z0-9_]+$/,CC="__connectUpdateStatus",r3=0,NNe=1,$Ne=2;function bK(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return wK(this,e,t)}}function _K(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return wK(this,e,t)}}function wK(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),to.prototype[t].apply(e,n)}var SK=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(to),CK=SK.prototype;CK.on=_K("on");CK.off=_K("off");var ad,xC,qy,Al,TC,kC,MC,Nv,$v,a3,i3,AC,o3,Xy,s3,xK,ki,l3,y1=function(e){Ae(t,e);function t(n,r,a){var i=e.call(this,new WOe)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},yt(r)&&(r=TK[r]),i._dom=n;var o="canvas",s="auto",l=!1,u=i._zr=zT(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:nn(a.useDirtyRect,l),useCoarsePointer:nn(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=hw(bt(u.flush,u),17),r=$t(r),r&&I7(r,!0),i._theme=r,i._locale=jLe(a.locale||o7),i._coordSysMgr=new Jh;var c=i._api=s3(i);function f(d,h){return d.__prio-h.__prio}return rb(_1,f),rb(vk,f),i._scheduler=new aK(i,c,vk,_1),i._messageCenter=new SK,i._initEvents(),i.resize=bt(i.resize,i),u.animation.on("frame",i._onframe,i),a3(u,i),i3(u,i),kg(i),i}return t.prototype._onframe=function(){if(!this._disposed){l3(this);var n=this._scheduler;if(this[Xa]){var r=this[Xa].silent;this[pa]=!0;try{ad(this),Al.update.call(this,null,this[Xa].updateParams)}catch(l){throw this[pa]=!1,this[Xa]=null,l}this._zr.flush(),this[pa]=!1,this[Xa]=null,Nv.call(this,r),$v.call(this,r)}else if(n.unfinished){var a=TNe,i=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),kC(this,i),n.performVisualTasks(i),Xy(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[pa]){if(this._disposed){this.id;return}var i,o,s;if(Nt(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[pa]=!0,!this._model||r){var l=new MRe(this._api),u=this._theme,c=this._model=new M7;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},pk);var f={seriesTransition:s,optionChanged:!0};if(a)this[Xa]={silent:i,updateParams:f},this[pa]=!1,this.getZr().wakeUp();else{try{ad(this),Al.update.call(this,null,f)}catch(d){throw this[Xa]=null,this[pa]=!1,d}this._ssr||this._zr.flush(),this[Xa]=null,this[pa]=!1,Nv.call(this,i),$v.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||Tn.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(Tn.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return K(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;K(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 K(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(w1[a]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();K(of,function(_,S){if(_.group===a){var x=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas($t(n)),C=_.getDom().getBoundingClientRect();l=i(C.left,l),u=i(C.top,u),c=o(C.right,c),f=o(C.bottom,f),d.push({dom:x,left:C.left,top:C.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,p=f-u,g=Po.createCanvas(),m=zT(g,{renderer:r?"svg":"canvas"});if(m.resize({width:v,height:p}),r){var b="";return K(d,function(_){var S=_.left-l,x=_.top-u;b+='<g transform="translate('+S+","+x+')">'+_.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 xn({shape:{x:0,y:0,width:v,height:p},style:{fill:n.connectedBackgroundColor}})),K(d,function(_){var S=new ea({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return TC(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return TC(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=Np(a,n);return K(o,function(s,l){l.indexOf("Models")>=0&&K(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=Np(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?oI(s,l,r):Om(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;K(BNe,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&Uc(s,function(v){var p=Zt(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=Ge({},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)}),K(Hp,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),K(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),UOe(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&&n9(this.getDom(),fI,"");var r=this,a=r._api,i=r._model;K(r._componentsViews,function(o){o.dispose(i,a)}),K(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 of[r.id]},t.prototype.resize=function(n){if(!this[pa]){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[Xa]&&(i==null&&(i=this[Xa].silent),a=!0,this[Xa]=null),this[pa]=!0;try{a&&ad(this),Al.update.call(this,{type:"resize",animation:Ge({duration:0},n&&n.animation)})}catch(o){throw this[pa]=!1,o}this[pa]=!1,Nv.call(this,i),$v.call(this,i)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Nt(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!gk[n]){var a=gk[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=Ge({},n);return r.type=Hp[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Nt(r)||(r={silent:!!r}),!!b1[n.type]&&this._model){if(this[pa]){this._pendingActions.push(n);return}var a=r.silent;MC.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&Tn.browser.weChat&&this._throttledZrFlush(),Nv.call(this,a),$v.call(this,a)}},t.prototype.updateLabelLayout=function(){go.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(){ad=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),xC(f,!0),xC(f,!1),d.plan()},xC=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(C,w){C!=="series"&&S(w)}):h.eachSeries(S);function S(C){var w=C.__requireNewView;C.__requireNewView=!1;var k="_ec_"+C.id+"_"+C.type,M=!w&&g[k];if(!M){var I=us(C.type),E=d?sr.getClass(I.main,I.sub):Un.getClass(I.sub);M=new E,M.init(h,b),g[k]=M,p.push(M),m.add(M.group)}C.__viewId=M.__id=k,M.__alive=!0,M.__model=C,M.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&v.prepareView(M,C,h,b)}for(var _=0;_<p.length;){var x=p[_];x.__alive?_++:(!d&&x.renderTask.dispose(),m.remove(x.group),x.dispose(h,b),p.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},qy=function(f,d,h,v,p){var g=f._model;if(g.setUpdatePayload(h),!v){K([].concat(f._componentsViews).concat(f._chartsViews),x);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,S;_!=null&&(S=Mt(),K(Kn(_),function(C){var w=Fr(C,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(b,function(C){var w=S&&S.get(C.id)!=null;if(!w)if(GN(h))if(C instanceof Jn)h.type===rf&&!h.notBlur&&!C.get(["emphasis","disabled"])&&WPe(C,h,f._api);else{var k=LE(C.mainType,C.componentIndex,h.name,f._api),M=k.focusSelf,I=k.dispatchers;h.type===rf&&M&&!h.notBlur&&XT(C.mainType,C.componentIndex,f._api),I&&K(I,function(E){h.type===rf?rl(E):al(E)})}else QT(h)&&C instanceof Jn&&(UPe(C,h,f._api),HN(C),ki(f))},f),g&&g.eachComponent(b,function(C){var w=S&&S.get(C.id)!=null;w||x(f[v==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},f);function x(C){C&&C.__alive&&C[d]&&C[d](C.__model,g,f._api,h)}},Al={prepareAndUpdate:function(f){ad(this),Al.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),kC(this,h),g.update(h,v),n(h),m.performVisualTasks(h,f),AC(this,h,v,f,d);var b=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(b),_!=null&&_!=="auto"&&p.setDarkMode(_),go.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 S=_.updateTransform(b,h,v,f);S&&S.update&&p.push(_)}else p.push(_)}});var g=Mt();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}),Xy(this,h,v,f,{},g),go.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Un.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),AC(this,d,this._api,f,{}),go.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()}),Un.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)}),go.trigger("afterupdate",h,this._api))},updateLayout:function(f){Al.update.call(this,f)}},TC=function(f,d,h,v){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,b=Np(p,h),_=0;_<g.length;_++){var S=g[_];if(S[d]&&(m=S[d](p,b,v))!=null)return m}},kC=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},MC=function(f,d){var h=this,v=this.getModel(),p=f.type,g=f.escapeConnect,m=b1[p],b=m.actionInfo,_=(b.update||"update").split(":"),S=_.pop(),x=_[0]!=null&&us(_[0]);this[pa]=!0;var C=[f],w=!1;f.batch&&(w=!0,C=et(f.batch,function(N){return N=Lt(Ge({},N),f),N.batch=null,N}));var k=[],M,I=QT(f),E=GN(f);if(E&&E9(this._api),K(C,function(N){if(M=m.action(N,h._model,h._api),M=M||Ge({},N),M.type=b.event||M.type,k.push(M),E){var z=kE(f),F=z.queryOptionMap,B=z.mainTypeSpecified,V=B?F.keys()[0]:"series";qy(h,S,N,V),ki(h)}else I?(qy(h,S,N,"series"),ki(h)):x&&qy(h,S,N,x.main,x.sub)}),S!=="none"&&!E&&!I&&!x)try{this[Xa]?(ad(this),Al.update.call(this,f),this[Xa]=null):Al[S].call(this,f)}catch(N){throw this[pa]=!1,N}if(w?M={type:b.event||p,escapeConnect:g,batch:k}:M=k[0],this[pa]=!1,!d){var D=this._messageCenter;if(D.trigger(M.type,M),I){var P={type:"selectchanged",escapeConnect:g,selected:jPe(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};D.trigger(P.type,P)}}},Nv=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();MC.call(this,h,f)}},$v=function(f){!f&&this.trigger("updated")},a3=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[Xa]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},i3=function(f,d){f.on("mouseover",function(h){var v=h.target,p=Uc(v,Bg);p&&(GPe(p,h,d._api),ki(d))}).on("mouseout",function(h){var v=h.target,p=Uc(v,Bg);p&&(KPe(p,h,d._api),ki(d))}).on("click",function(h){var v=h.target,p=Uc(v,function(b){return Zt(b).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Zt(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 S=_.get("zlevel")||0,x=_.get("z")||0,C=_.getZLevelKey();v=v||!!C,(b==="series"?h:d).push({zlevel:S,z:x,idx:_.componentIndex,type:b,key:C})}),v){var p=d.concat(h),g,m;rb(p,function(b,_){return b.zlevel===_.zlevel?b.z-_.z:b.zlevel-_.zlevel}),K(p,function(b){var _=f.getComponent(b.type,b.idx),S=b.zlevel,x=b.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==m&&S++,m=x):m&&(S===g&&S++,m=""),g=S,_.setZLevel(S)})}}AC=function(f,d,h,v,p){r(d),o3(f,d,h,v,p),K(f._chartsViews,function(g){g.__alive=!1}),Xy(f,d,h,v,p),K(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},o3=function(f,d,h,v,p,g){K(g||f._componentsViews,function(m){var b=m.__model;u(b,m),m.render(b,d,h,v),s(b,m),c(b,m)})},Xy=function(f,d,h,v,p,g){var m=f._scheduler;p=Ge(p||{},{updatedSeries:d.getSeries()}),go.trigger("series:beforeupdate",d,h,p);var b=!1;d.eachSeries(function(_){var S=f._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;m.updatePayload(x,v),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(m.getPerformArgs(x))&&(b=!0),S.group.silent=!!_.get("silent"),o(_,S),HN(_)}),m.unfinished=b||m.unfinished,go.trigger("series:layoutlabels",d,h,p),go.trigger("series:transition",d,h,p),d.eachSeries(function(_){var S=f._chartsMap[_.__viewId];s(_,S),c(_,S)}),i(f,d),go.trigger("series:afterupdate",d,h,p)},ki=function(f){f[SC]=!0,f.getZr().wakeUp()},l3=function(f){f[SC]&&(f.getZr().storage.traverse(function(d){jd(d)||a(d)}),f[SC]=!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===Z_&&f.states.emphasis?d.push("emphasis"):f.hoverState===Am&&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")&&!Tn.node&&!Tn.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 S=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(S&&S.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!jd(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(jd(m))return;if(m instanceof dn&&QPe(m),m.__dirty){var b=m.prevStates;b&&m.useStates(b)}if(v){m.stateTransition=g;var _=m.getTextContent(),S=m.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}s3=function(f){return new(function(d){Ae(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){rl(v,p),ki(f)},h.prototype.leaveEmphasis=function(v,p){al(v,p),ki(f)},h.prototype.enterBlur=function(v){T9(v),ki(f)},h.prototype.leaveBlur=function(v){PE(v),ki(f)},h.prototype.enterSelect=function(v){k9(v),ki(f)},h.prototype.leaveSelect=function(v){M9(v),ki(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}(A7))(f)},xK=function(f){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[CC]=v}}K(Hp,function(h,v){f._messageCenter.on(v,function(p){if(w1[f.group]&&f[CC]!==r3){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];K(of,function(b){b!==f&&b.group===f.group&&m.push(b)}),d(m,r3),K(m,function(b){b[CC]!==NNe&&b.dispatchAction(g)}),d(m,$Ne)}})})}}(),t}(to),cI=y1.prototype;cI.on=bK("on");cI.off=bK("off");cI.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 BNe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var b1={},Hp={},vk=[],pk=[],_1=[],TK={},gk={},of={},w1={},VNe=+new Date-0,FNe=+new Date-0,fI="_echarts_instance_";function zNe(e,t,n){var r=!(n&&n.ssr);if(r){var a=dI(e);if(a)return a}var i=new y1(e,t,n);return i.id="ec_"+VNe++,of[i.id]=i,r&&n9(e,fI,i.id),xK(i),go.trigger("afterinit",i),i}function HNe(e){if(Xe(e)){var t=e;e=null,K(t,function(n){n.group!=null&&(e=n.group)}),e=e||"g_"+FNe++,K(t,function(n){n.group=e})}return w1[e]=!0,e}function kK(e){w1[e]=!1}var WNe=kK;function GNe(e){yt(e)?e=of[e]:e instanceof y1||(e=dI(e)),e instanceof y1&&!e.isDisposed()&&e.dispose()}function dI(e){return of[BDe(e,fI)]}function KNe(e){return of[e]}function hI(e,t){TK[e]=t}function vI(e){sn(pk,e)<0&&pk.push(e)}function pI(e,t){gI(vk,e,t,ENe)}function MK(e){pw("afterinit",e)}function AK(e){pw("afterupdate",e)}function pw(e,t){go.on(e,t)}function zo(e,t,n){Et(t)&&(n=t,t="");var r=Nt(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!Hp[t]&&(Sa(n3.test(r)&&n3.test(t)),b1[r]||(b1[r]={action:n,actionInfo:e}),Hp[t]=r)}function EK(e,t){Jh.register(e,t)}function UNe(e){var t=Jh.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function IK(e,t){gI(_1,e,t,pK,"layout")}function Bu(e,t){gI(_1,e,t,gK,"visual")}var u3=[];function gI(e,t,n,r,a){if((Et(t)||Nt(t))&&(n=t,t=r),!(sn(u3,n)>=0)){u3.push(n);var i=aK.wrapStageHandler(n,a);i.__prio=t,i.__raw=n,e.push(i)}}function mI(e,t){gk[e]=t}function jNe(e){iG({createCanvas:e})}function DK(e,t,n){var r=vK("registerMap");r&&r(e,t,n)}function YNe(e){var t=vK("getMap");return t&&t(e)}var PK=tOe;Bu(uI,MOe);Bu(vw,AOe);Bu(vw,EOe);Bu(uI,GOe);Bu(vw,KOe);Bu(mK,_Ne);vI(I7);pI(MNe,ORe);mI("default",IOe);zo({type:rf,event:rf,update:rf},Cr);zo({type:cb,event:cb,update:cb},Cr);zo({type:$p,event:$p,update:$p},Cr);zo({type:fb,event:fb,update:fb},Cr);zo({type:Bp,event:Bp,update:Bp},Cr);hI("light",zOe);hI("dark",HOe);var qNe={},c3=[],XNe={registerPreprocessor:vI,registerProcessor:pI,registerPostInit:MK,registerPostUpdate:AK,registerUpdateLifecycle:pw,registerAction:zo,registerCoordinateSystem:EK,registerLayout:IK,registerVisual:Bu,registerTransform:PK,registerLoading:mI,registerMap:DK,registerImpl:SNe,PRIORITY:yK,ComponentModel:wn,ComponentView:sr,SeriesModel:Jn,ChartView:Un,registerComponentModel:function(e){wn.registerClass(e)},registerComponentView:function(e){sr.registerClass(e)},registerSeriesModel:function(e){Jn.registerClass(e)},registerChartView:function(e){Un.registerClass(e)},registerSubTypeDefaulter:function(e,t){wn.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){KG(e,t)}};function un(e){if(Xe(e)){K(e,function(t){un(t)});return}sn(c3,e)>=0||(c3.push(e),Et(e)&&(e={install:e}),e.install(XNe))}function Bv(e){return e==null?0:e.length||1}function f3(e){return e}var ZNe=function(){function e(t,n,r,a,i,o){this._old=t,this._new=n,this._oldKeyGetter=r||f3,this._newKeyGetter=a||f3,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=Bv(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=Bv(u),d=Bv(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=Bv(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=Bv(l);u===0?(n[s]=o,i&&r.push(s)):u===1?n[s]=[l,o]:l.push(o)}}},e}();const il=ZNe;var QNe=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 JNe(e,t){var n={},r=n.encode={},a=Mt(),i=[],o=[],s={};K(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;EC(r,v)[p]=d,h.isExtraCoord||(a.set(v,1),e$e(h.type)&&(i[0]=d),EC(s,v)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}b7.each(function(g,m){var b=EC(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=et(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 QNe(s,t),n}function EC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function S1(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function e$e(e){return!(e==="ordinal"||e==="time")}var t$e=function(){function e(t){this.otherDims={},t!=null&&Ge(this,t)}return e}();const gb=t$e;var n$e=Mn(),r$e={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},LK=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=NK(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return nn(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=P7(this.source),r=!$K(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+=r$e[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 RK(e){return e instanceof LK}function OK(e){for(var t=Mt(),n=0;n<(e||[]).length;n++){var r=e[n],a=Nt(r)?r.name:r;a!=null&&t.get(a)==null&&t.set(a,n)}return t}function NK(e){var t=n$e(e);return t.dimNameMap||(t.dimNameMap=OK(e.dimensionsDefine))}function $K(e){return e>30}var Vv=Nt,El=et,a$e=typeof Int32Array>"u"?Array:Int32Array,i$e="e\0\0",d3=-1,o$e=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],s$e=["_approximateExtent"],h3,Zy,Fv,zv,IC,Qy,DC,l$e=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;RK(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=yt(f)?new gb({name:f}):f instanceof gb?f:new gb(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=Mt();K(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(kn(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 sk&&(i=t),!i){var o=this.dimensions,s=JE(t)||ua(t)?new L7(t,o.length):t;i=new sk;var l=El(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=JNe(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&&DC(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!==lu&&!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===ro;if(l&&!a.pure)for(var u=[],c=t;c<n;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&TDe(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=Fr(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=Fr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)DC(this,c);h3(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){Vv(t)?Ge(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=Fv(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 Zy(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 Xe(t)?a.getValues(El(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)?d3:a},e.prototype.indicesOfNearest=function(t,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),n,r)},e.prototype.each=function(t,n,r){Et(t)&&(r=n,n=t,t=[]);var a=r||this,i=El(zv(t),this._getStoreDimIndex,this);this._store.each(i,a?bt(n,a):n)},e.prototype.filterSelf=function(t,n,r){Et(t)&&(r=n,n=t,t=[]);var a=r||this,i=El(zv(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?bt(n,a):n),this},e.prototype.selectRange=function(t){var n=this,r={},a=mn(t);return K(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){Et(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=El(zv(t),this._getStoreDimIndex,this),s=Qy(this);return s._store=this._store.map(o,i?bt(n,i):n),s},e.prototype.modify=function(t,n,r,a){var i=r||a||this,o=El(zv(t),this._getStoreDimIndex,this);this._store.modify(o,i?bt(n,i):n)},e.prototype.downSample=function(t,n,r,a){var i=Qy(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),n,r,a),i},e.prototype.lttbDownSample=function(t,n){var r=Qy(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 Gn(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new il(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Zy(t,r)},function(r){return Zy(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||{},Vv(t)?Ge(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),Xe(i)?i=i.slice():Vv(i)&&(i=Ge({},i)),a[n]=i),i},e.prototype.setItemVisual=function(t,n,r){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Vv(n)?Ge(a,n):a[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){Vv(t)?Ge(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?Ge(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;YT(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){K(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:El(this.dimensions,this._getDimInfo,this),this.hostModel)),IC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];Et(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(F_(arguments)))})},e.internalField=function(){h3=function(t){var n=t._invertedIndicesMap;K(n,function(r,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){r=n[a]=new a$e(o.categories.length);for(var l=0;l<r.length;l++)r[l]=d3;for(var l=0;l<s.count();l++)r[s.get(i.storeDimIndex,l)]=l}})},Fv=function(t,n,r){return Fr(t._getCategory(n,r),null)},Zy=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=Fv(t,t._idDimIdx,n)),r==null&&(r=i$e+n),r},zv=function(t){return Xe(t)||(t=t!=null?[t]:[]),t},Qy=function(t){var n=new e(t._schema?t._schema:El(t.dimensions,t._getDimInfo,t),t.hostModel);return IC(n,t),n},IC=function(t,n){K(o$e.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,K(s$e,function(r){t[r]=$t(n[r])}),t._calculationInfo=Ge({},n._calculationInfo)},DC=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=Fv(t,i,n)),l==null&&o!=null&&(a[n]=l=Fv(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 _a=l$e;function u$e(e,t){return rv(e,t).dimensions}function rv(e,t){JE(e)||(e=eI(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],a=Mt(),i=[],o=f$e(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&$K(o),l=r===e.dimensionsDefine,u=l?NK(e):OK(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Mt(c),d=new z7(o),h=0;h<d.length;h++)d[h]=-1;function v(M){var I=d[M];if(I<0){var E=r[M],D=Nt(E)?E:{name:E},P=new gb,N=D.name;N!=null&&u.get(N)!=null&&(P.name=P.displayName=N),D.type!=null&&(P.type=D.type),D.displayName!=null&&(P.displayName=D.displayName);var z=i.length;return d[M]=z,P.storeDimIndex=M,i.push(P),P}return i[I]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(M,I){var E=Kn(M).slice();if(E.length===1&&!yt(E[0])&&E[0]<0){f.set(I,!1);return}var D=f.set(I,[]);K(E,function(P,N){var z=yt(P)?u.get(P):P;z!=null&&z<o&&(D[N]=z,g(v(z),I,N))})});var p=0;K(n,function(M){var I,E,D,P;if(yt(M))I=M,P={};else{P=M,I=P.name;var N=P.ordinalMeta;P.ordinalMeta=null,P=Ge({},P),P.ordinalMeta=N,E=P.dimsDef,D=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var z=f.get(I);if(z!==!1){if(z=Kn(z),!z.length)for(var F=0;F<(E&&E.length||1);F++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&z.push(p++)}K(z,function(B,V){var L=v(B);if(l&&P.type!=null&&(L.type=P.type),g(Lt(L,P),I,V),L.name==null&&E){var G=E[V];!Nt(G)&&(G={name:G}),L.name=L.displayName=G.name,L.defaultTooltip=G.defaultTooltip}D&&Lt(L.otherDims,D)})}});function g(M,I,E){b7.get(I)!=null?M.otherDims[I]=E:(M.coordDim=I,M.coordDimIndex=E,a.set(I,!0))}var m=t.generateCoord,b=t.generateCoordCount,_=b!=null;b=m?b||1:0;var S=m||"value";function x(M){M.name==null&&(M.name=M.coordDim)}if(s)K(i,function(M){x(M)}),i.sort(function(M,I){return M.storeDimIndex-I.storeDimIndex});else for(var C=0;C<o;C++){var w=v(C),k=w.coordDim;k==null&&(w.coordDim=d$e(S,a,_),w.coordDimIndex=0,(!m||b<=0)&&(w.isExtraCoord=!0),b--),x(w),w.type==null&&(C7(e,C)===na.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return c$e(i),new LK({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function c$e(e){for(var t=Mt(),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 f$e(e,t,n,r){var a=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return K(t,function(i){var o;Nt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function d$e(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 h$e=function(){function e(t){this.coordSysDims=[],this.axisMap=Mt(),this.categoryAxisMap=Mt(),this.coordSysName=t}return e}();function v$e(e){var t=e.get("coordinateSystem"),n=new h$e(t),r=p$e[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var p$e={cartesian2d:function(e,t,n,r){var a=e.getReferringComponents("xAxis",Pr).models[0],i=e.getReferringComponents("yAxis",Pr).models[0];t.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),id(a)&&(r.set("x",a),t.firstCategoryDimIndex=0),id(i)&&(r.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var a=e.getReferringComponents("singleAxis",Pr).models[0];t.coordSysDims=["single"],n.set("single",a),id(a)&&(r.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var a=e.getReferringComponents("polar",Pr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),id(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),id(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();K(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),id(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function id(e){return e.get("type")==="category"}function BK(e,t,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;g$e(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(K(i,function(b,_){yt(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;K(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 g$e(e){return!RK(e.schema)}function ol(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function yI(e,t){return ol(e,t)?e.getCalculationInfo("stackResultDimension"):t}function m$e(e,t){var n=e.get("coordinateSystem"),r=Jh.get(n),a;return t&&t.coordSysDims&&(a=et(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=S1(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function y$e(e,t,n){var r,a;return n&&K(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 As(e,t,n){n=n||{};var r=t.getSourceManager(),a,i=!1;e?(i=!0,a=eI(e)):(a=r.getSource(),i=a.sourceFormat===ro);var o=v$e(t),s=m$e(t,o),l=n.useEncodeDefaulter,u=Et(l)?l:l?Xt(S7,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=rv(a,c),d=y$e(f.dimensions,n.createInvertedIndices,o),h=i?null:r.getSharedDataStore(f),v=BK(t,{schema:f,store:h}),p=new _a(f,t);p.setCalculationInfo(v);var g=d!=null&&b$e(a)?function(m,b,_,S){return S===d?_:this.defaultDimValueGetter(m,b,_,S)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function b$e(e){if(e.sourceFormat===ro){var t=_$e(e.data||[]);return!Xe(Hh(t))}}function _$e(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var VK=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}();j_(VK);const pl=VK;var w$e=0,S$e=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++w$e}return e.createByAxisModel=function(t){var n=t.option,r=n.data,a=r&&et(r,C$e);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(!yt(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=Mt(this.categories))},e}();function C$e(e){return Nt(e)&&e.value!=null?e.value:e+""}const mk=S$e;function yk(e){return e.type==="interval"||e.type==="log"}function x$e(e,t,n,r){var a={},i=e[1]-e[0],o=a.interval=CE(i/t,!0);n!=null&&o<n&&(o=a.interval=n),r!=null&&o>r&&(o=a.interval=r);var s=a.intervalPrecision=FK(o),l=a.niceTickExtent=[pr(Math.ceil(e[0]/o)*o,s),pr(Math.floor(e[1]/o)*o,s)];return T$e(l,e),a}function PC(e){var t=Math.pow(10,U_(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,pr(n*t)}function FK(e){return So(e)+2}function v3(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function T$e(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),v3(e,0,t),v3(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function gw(e,t){return e>=t[0]&&e<=t[1]}function mw(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function yw(e,t){return e*(t[1]-t[0])+t[0]}var zK=function(e){Ae(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new mk({})),Xe(a)&&(a=new mk({categories:et(a,function(i){return Nt(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:yt(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),gw(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),mw(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(yw(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}(pl);pl.registerClass(zK);const bI=zK;var hc=pr,HK=function(e){Ae(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 gw(n,this._extent)},t.prototype.normalize=function(n){return mw(n,this._extent)},t.prototype.scale=function(n){return yw(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=FK(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:hc(i[0]-r,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=hc(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:hc(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=hc(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=So(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=hc(n.value,a,!0);return UE(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=x$e(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]=hc(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=hc(Math.ceil(r[1]/o)*o))},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t}(pl);pl.registerClass(HK);const Su=HK;var WK=typeof Float32Array<"u",k$e=WK?Float32Array:Array;function cs(e){return Xe(e)?WK?new Float32Array(e):e:new k$e(e)}var bk="__ec_stack_";function _I(e){return e.get("stack")||bk+e.seriesIndex}function wI(e){return e.dim+e.index}function M$e(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(Lt({bandWidth:a,axisKey:r,stackId:bk+i},e));for(var o=UK(t),s=[],i=0;i<e.count;i++){var l=o[r][bk+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function GK(e,t){var n=[];return t.eachSeriesByType(e,function(r){qK(r)&&n.push(r)}),n}function A$e(e){var t={};K(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 KK(e){var t=A$e(e),n=[];return K(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=ht(r.get("barWidth"),s),p=ht(r.get("barMaxWidth"),s),g=ht(r.get("barMinWidth")||(XK(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:wI(i),stackId:_I(r)})}),UK(n)}function UK(e){var t={};K(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 K(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=mn(i).length;s=Math.max(35-l*4,15)+"%"}var u=ht(s,o),c=ht(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),K(i,function(m){var b=m.maxWidth,_=m.minWidth;if(m.width){var S=m.width;b&&(S=Math.min(S,b)),_&&(S=Math.max(S,_)),m.width=S,f-=S+c*S,d--}else{var S=h;b&&b<S&&(S=Math.min(b,f)),_&&_>S&&(S=_),S!==h&&(m.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,p;K(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;K(i,function(m,b){n[a][b]=n[a][b]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),n}function E$e(e,t,n){if(e&&t){var r=e[wI(t)];return r!=null&&n!=null?r[_I(n)]:r}}function jK(e,t){var n=GK(e,t),r=KK(n);K(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=_I(a),u=r[wI(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function YK(e){return{seriesType:e,plan:ev(),reset:function(t){if(qK(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=ol(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=I$e(a,i),v=XK(t),p=t.get("barMinHeight")||0,g=c&&n.getDimensionIndex(c),m=n.getLayout("size"),b=n.getLayout("offset");return{progress:function(_,S){for(var x=_.count,C=v&&cs(x*3),w=v&&l&&cs(x*3),k=v&&cs(x),M=r.master.getRect(),I=d?M.width:M.height,E,D=S.getStore(),P=0;(E=_.next())!=null;){var N=D.get(f?g:o,E),z=D.get(s,E),F=h,B=void 0;f&&(B=+N-D.get(o,E));var V=void 0,L=void 0,G=void 0,q=void 0;if(d){var Q=r.dataToPoint([N,z]);if(f){var ie=r.dataToPoint([B,z]);F=ie[0]}V=F,L=Q[1]+b,G=Q[0]-F,q=m,Math.abs(G)<p&&(G=(G<0?-1:1)*p)}else{var Q=r.dataToPoint([z,N]);if(f){var ie=r.dataToPoint([z,B]);F=ie[1]}V=Q[0]+b,L=F,G=m,q=Q[1]-F,Math.abs(q)<p&&(q=(q<=0?-1:1)*p)}v?(C[P]=V,C[P+1]=L,C[P+2]=d?G:q,w&&(w[P]=d?M.x:V,w[P+1]=d?L:M.y,w[P+2]=I),k[E]=E):S.setItemLayout(E,{x:V,y:L,width:G,height:q}),P+=3}v&&S.setLayout({largePoints:C,largeDataIndices:k,largeBackgroundPoints:w,valueAxisHorizontal:d})}}}}}}function qK(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function XK(e){return e.pipelineContext&&e.pipelineContext.large}function I$e(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var D$e=function(e,t,n,r){for(;n<r;){var a=n+r>>>1;e[a][1]<t?n=a+1:r=a}return n},ZK=function(e){Ae(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 Rm(n.value,i$[XLe(Yd(this._minLevelUnit))]||i$.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return ZLe(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=B$e(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]-=Vi,r[1]+=Vi),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]-Vi}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=Jy.length,l=Math.min(D$e(Jy,this._approxInterval,0,s),s-1);this._interval=Jy[l][1],this._minLevelUnit=Jy[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return kn(n)?n:+Si(n)},t.prototype.contain=function(n){return gw(this.parse(n),this._extent)},t.prototype.normalize=function(n){return mw(this.parse(n),this._extent)},t.prototype.scale=function(n){return yw(n,this._extent)},t.type="time",t}(Su),Jy=[["second",WE],["minute",GE],["hour",Fp],["quarter-day",Fp*6],["half-day",Fp*12],["day",Vi*1.2],["half-week",Vi*3.5],["week",Vi*7],["month",Vi*31],["quarter",Vi*95],["half-year",a$/2],["year",a$]];function P$e(e,t,n,r){var a=Si(t),i=Si(n),o=function(v){return o$(a,v,r)===o$(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 L$e(e,t){return e/=Vi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function R$e(e){var t=30*Vi;return e/=t,e>6?6:e>3?3:e>2?2:1}function O$e(e){return e/=Fp,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function p3(e,t){return e/=t?GE:WE,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function N$e(e){return CE(e,!0)}function $$e(e,t,n){var r=new Date(e);switch(Yd(t)){case"year":case"month":r[u7(n)](0);case"day":r[c7(n)](1);case"hour":r[f7(n)](0);case"minute":r[d7(n)](0);case"second":r[h7(n)](0),r[v7(n)](0)}return r.getTime()}function B$e(e,t,n,r){var a=1e4,i=s7,o=0;function s(I,E,D,P,N,z,F){for(var B=new Date(E),V=E,L=B[P]();V<D&&V<=r[1];)F.push({value:V}),L+=I,B[N](L),V=B.getTime();F.push({value:V,notAdd:!0})}function l(I,E,D){var P=[],N=!E.length;if(!P$e(Yd(I),r[0],r[1],n)){N&&(E=[{value:$$e(new Date(r[0]),I,n)},{value:r[1]}]);for(var z=0;z<E.length-1;z++){var F=E[z].value,B=E[z+1].value;if(F!==B){var V=void 0,L=void 0,G=void 0,q=!1;switch(I){case"year":V=Math.max(1,Math.round(t/Vi/365)),L=KE(n),G=QLe(n);break;case"half-year":case"quarter":case"month":V=R$e(t),L=qd(n),G=u7(n);break;case"week":case"half-week":case"day":V=L$e(t),L=iw(n),G=c7(n),q=!0;break;case"half-day":case"quarter-day":case"hour":V=O$e(t),L=zg(n),G=f7(n);break;case"minute":V=p3(t,!0),L=ow(n),G=d7(n);break;case"second":V=p3(t,!1),L=sw(n),G=h7(n);break;case"millisecond":V=N$e(t),L=lw(n),G=v7(n);break}s(V,F,B,L,G,q,P),I==="year"&&D.length>1&&z===0&&D.unshift({value:D[0].value-V})}}for(var z=0;z<P.length;z++)D.push(P[z]);return P}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var v=Yd(i[h]);if(qLe(i[h])){l(i[h],u[u.length-1]||[],c);var p=i[h+1]?Yd(i[h+1]):null;if(v!==p){if(c.length){d=f,c.sort(function(I,E){return I.value-E.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 S=Bn(et(u,function(I){return Bn(I,function(E){return E.value>=r[0]&&E.value<=r[1]&&!E.notAdd})}),function(I){return I.length>0}),x=[],C=S.length-1,h=0;h<S.length;++h)for(var w=S[h],k=0;k<w.length;++k)x.push({value:w[k].value,level:C-h});x.sort(function(I,E){return I.value-E.value});for(var M=[],h=0;h<x.length;++h)(h===0||x[h].value!==x[h-1].value)&&M.push(x[h]);return M}pl.registerClass(ZK);const QK=ZK;var g3=pl.prototype,Wp=Su.prototype,V$e=pr,F$e=Math.floor,z$e=Math.ceil,e0=Math.pow,fo=Math.log,SI=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new Su,n._interval=0,n}return t.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,i=r.getExtent(),o=Wp.getTicks.call(this,n);return et(o,function(s){var l=s.value,u=pr(e0(this.base,l));return u=l===a[0]&&this._fixMin?t0(u,i[0]):u,u=l===a[1]&&this._fixMax?t0(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(n,r){var a=fo(this.base);n=fo(Math.max(0,n))/a,r=fo(Math.max(0,r))/a,Wp.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=g3.getExtent.call(this);r[0]=e0(n,r[0]),r[1]=e0(n,r[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(r[0]=t0(r[0],i[0])),this._fixMax&&(r[1]=t0(r[1],i[1])),r},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=fo(n[0])/fo(r),n[1]=fo(n[1])/fo(r),g3.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=qG(a),o=n/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[pr(z$e(r[0]/i)*i),pr(F$e(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){Wp.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=fo(n)/fo(this.base),gw(n,this._extent)},t.prototype.normalize=function(n){return n=fo(n)/fo(this.base),mw(n,this._extent)},t.prototype.scale=function(n){return n=yw(n,this._extent),e0(this.base,n)},t.type="log",t}(pl),JK=SI.prototype;JK.getMinorTicks=Wp.getMinorTicks;JK.getLabel=Wp.getLabel;function t0(e,t){return V$e(e,So(t))}pl.registerClass(SI);const H$e=SI;var W$e=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);Et(i)?this._modelMinNum=n0(t,i({min:r[0],max:r[1]})):i!=="dataMin"&&(this._modelMinNum=n0(t,i));var o=this._modelMaxRaw=n.get("max",!0);if(Et(o)?this._modelMaxNum=n0(t,o({min:r[0],max:r[1]})):o!=="dataMax"&&(this._modelMaxNum=n0(t,o)),a)this._axisDataLen=n.getCategories().length;else{var s=n.get("boundaryGap"),l=Xe(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ro(l[0],1),Ro(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=Sh(s)||Sh(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[K$e[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=G$e[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),G$e={min:"_determinedMin",max:"_determinedMax"},K$e={min:"_dataMin",max:"_dataMax"};function eU(e,t,n){var r=e.rawExtentInfo;return r||(r=new W$e(e,t,n),e.rawExtentInfo=r,r)}function n0(e,t){return t==null?null:Sh(t)?NaN:e.parse(t)}function tU(e,t){var n=e.type,r=eU(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=GK("bar",o),l=!1;if(K(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=KK(s),c=U$e(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function U$e(e,t,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=E$e(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;K(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;K(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 wf(e,t){var n=t,r=tU(e,n),a=r.extent,i=n.get("splitNumber");e instanceof H$e&&(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 Nm(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new bI({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new QK({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(pl.getClass(t)||Su)}}function j$e(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function $m(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):yt(t)?function(r){return function(a){var i=e.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(t):Et(t)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r(CI(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function CI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Y$e(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof bI?a=n.count():(r=n.getTicks(),a=r.length);var o=e.getLabelModel(),s=$m(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=q$e(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function q$e(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 rn(e.x,e.y,i,o);return s}function xI(e){var t=e.get("interval");return t??"auto"}function nU(e){return e.type==="category"&&xI(e.getLabelModel())===0}function C1(e,t){var n={};return K(e.mapDimensionsAll(t),function(r){n[yI(e,r)]=!0}),mn(n)}function X$e(e,t,n){t&&K(C1(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 av=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function Z$e(e){return As(null,e)}var Q$e={isDimensionStacked:ol,enableDataStack:BK,getStackedDimension:yI};function J$e(e,t){var n=t;t instanceof Gn||(n=new Gn(t));var r=Nm(n);return r.setExtent(e[0],e[1]),wf(r,n),r}function e3e(e){Tr(e,av)}function t3e(e,t){return t=t||{},Yn(e,null,null,t.state!=="normal")}const n3e=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:u$e,createList:Z$e,createScale:J$e,createSymbol:Er,createTextStyle:t3e,dataStack:Q$e,enableHoverEmphasis:ou,getECData:Zt,getLayoutRect:Br,mixinAxisModelCommonMethods:e3e},Symbol.toStringTag,{value:"Module"}));var r3e=1e-8;function m3(e,t){return Math.abs(e-t)<r3e}function Dc(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+=Vs(a[0],a[1],o[0],o[1],t,n),a=o}var s=e[0];return(!m3(a[0],s[0])||!m3(a[1],s[1]))&&(r+=Vs(a[0],a[1],s[0],s[1],t,n)),r!==0}var a3e=[];function LC(e,t){for(var n=0;n<e.length;n++)Jr(e[n],e[n],t)}function y3(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])&&(Gs(t,t,i),Ks(n,n,i))}}function i3e(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 rU=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}(),b3=function(){function e(t,n){this.type="polygon",this.exterior=t,this.interiors=n}return e}(),_3=function(){function e(t){this.type="linestring",this.points=t}return e}(),aU=function(e){Ae(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 i3e(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 K(o,function(s){s.type==="polygon"?y3(s.exterior,a,i,n):K(s.points,function(l){y3(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 rn(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(Dc(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(Dc(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 rn(n,r,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(LC(d.exterior,u),K(d.interiors,function(h){LC(h,u)})):K(d.points,function(h){LC(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}(rU),o3e=function(e){Ae(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=xm(a3e),o=n;o&&!o.isGeoSVGGraphicRoot;)vs(i,o.getLocalTransform(),i),o=o.parent;return Df(i,i),Jr(a,a,i),a},t}(rU);function s3e(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n==null&&(n=1024);var r=t.features;return K(r,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=iU(s,o,n);break;case"Polygon":RC(s,o,n);break;case"MultiLineString":RC(s,o,n);break;case"MultiPolygon":K(s,function(l,u){return RC(l,o[u],n)})}}),t.UTF8Encoding=!1,t}function RC(e,t,n){for(var r=0;r<e.length;r++)e[r]=iU(e[r],t[r],n)}function iU(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 _k(e,t){return e=s3e(e),et(Bn(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 b3(o[0],o.slice(1)));break;case"MultiPolygon":K(a.coordinates,function(l){l[0]&&i.push(new b3(l[0],l.slice(1)))});break;case"LineString":i.push(new _3([a.coordinates]));break;case"MultiLineString":i.push(new _3(a.coordinates))}var s=new aU(r[t||"name"],i,r.cp);return s.properties=r,s})}const l3e=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:HT,asc:mi,getPercentWithPrecision:SDe,getPixelPrecision:wE,getPrecision:So,getPrecisionSafe:jG,isNumeric:xE,isRadianAroundZero:Rg,linearMap:$n,nice:CE,numericToNumber:Ss,parseDate:Si,quantile:ub,quantity:qG,quantityExponent:U_,reformIntervals:WT,remRadian:SE,round:pr},Symbol.toStringTag,{value:"Module"})),u3e=Object.freeze(Object.defineProperty({__proto__:null,format:Rm,parse:Si},Symbol.toStringTag,{value:"Module"})),c3e=Object.freeze(Object.defineProperty({__proto__:null,Arc:ew,BezierCurve:Im,BoundingRect:rn,Circle:Oo,CompoundPath:tw,Ellipse:J_,Group:zt,Image:ea,IncrementalDisplayable:j9,Line:Gr,LinearGradient:Gh,Polygon:Wa,Polyline:Ka,RadialGradient:OE,Rect:xn,Ring:Em,Sector:Ha,Text:Cn,clipPointsByRect:VE,clipRectByRect:Q9,createIcon:Uh,extendPath:X9,extendShape:q9,getShapeClass:nw,getTransform:su,initProps:rr,makeImage:$E,makePath:Dm,mergePath:hi,registerShape:no,resizePath:BE,updateProps:In},Symbol.toStringTag,{value:"Module"})),f3e=Object.freeze(Object.defineProperty({__proto__:null,addCommas:UE,capitalFirst:nRe,encodeHTML:Pa,formatTime:tRe,formatTpl:YE,getTextRect:JLe,getTooltipMarker:p7,normalizeCssArray:Lf,toCamelCase:jE,truncateText:o9},Symbol.toStringTag,{value:"Module"})),d3e=Object.freeze(Object.defineProperty({__proto__:null,bind:bt,clone:$t,curry:Xt,defaults:Lt,each:K,extend:Ge,filter:Bn,indexOf:sn,inherits:dE,isArray:Xe,isFunction:Et,isObject:Nt,isString:yt,map:et,merge:en,reduce:Ji},Symbol.toStringTag,{value:"Module"}));var jg=Mn();function h3e(e){return e.type==="category"?p3e(e):m3e(e)}function v3e(e,t){return e.type==="category"?g3e(e,t):{ticks:et(e.scale.getTicks(),function(n){return n.value})}}function p3e(e){var t=e.getLabelModel(),n=oU(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function oU(e,t){var n=sU(e,"labels"),r=xI(t),a=lU(n,r);if(a)return a;var i,o;return Et(r)?i=fU(e,r):(o=r==="auto"?y3e(e):r,i=cU(e,o)),uU(n,r,{labels:i,labelCategoryInterval:o})}function g3e(e,t){var n=sU(e,"ticks"),r=xI(t),a=lU(n,r);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),Et(r))i=fU(e,r,!0);else if(r==="auto"){var s=oU(e,e.getLabelModel());o=s.labelCategoryInterval,i=et(s.labels,function(l){return l.tickValue})}else o=r,i=cU(e,o,!0);return uU(n,r,{ticks:i,tickCategoryInterval:o})}function m3e(e){var t=e.scale.getTicks(),n=$m(e);return{labels:et(t,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function sU(e,t){return jg(e)[t]||(jg(e)[t]=[])}function lU(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function uU(e,t,n){return e.push({key:t,value:n}),n}function y3e(e){var t=jg(e).autoInterval;return t??(jg(e).autoInterval=e.calculateCategoryInterval())}function b3e(e){var t=_3e(e),n=$m(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=km(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))),S=jg(e.model),x=e.getExtent(),C=S.lastAutoInterval,w=S.lastTickCount;return C!=null&&w!=null&&Math.abs(C-_)<=1&&Math.abs(w-o)<=1&&C>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=C:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function _3e(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 cU(e,t,n){var r=$m(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=nU(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 fU(e,t,n){var r=e.scale,a=$m(e),i=[];return K(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 w3=[0,1],w3e=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 wE(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(),S3(r,a.count())),$n(t,w3,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),S3(r,a.count()));var i=$n(t,r,w3,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=v3e(this,n),a=r.ticks,i=et(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return S3e(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=et(r,function(i){return et(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return h3e(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 b3e(this)},e}();function S3(e,t){var n=e[1]-e[0],r=t,a=n/r/2;e[0]+=a,e[1]-=a}function S3e(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;K(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=pr(h),v=pr(v),f?h>v:h<v}}const io=w3e;function C3e(e){var t=wn.extend(e);return wn.registerClass(t),t}function x3e(e){var t=sr.extend(e);return sr.registerClass(t),t}function T3e(e){var t=Jn.extend(e);return Jn.registerClass(t),t}function k3e(e){var t=Un.extend(e);return Un.registerClass(t),t}var Hv=Math.PI*2,vc=Cs.CMD,M3e=["top","right","bottom","left"];function A3e(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 E3e(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)%Hv<1e-4)return l[0]=c,l[1]=f,u-n;if(i){var d=r;r=Co(a),a=Co(d)}else r=Co(r),a=Co(a);r>a&&(a+=Hv);var h=Math.atan2(s,o);if(h<0&&(h+=Hv),h>=r&&h<=a||h+Hv>=r&&h+Hv<=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 x1(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 dU(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 mo=[];function I3e(e,t,n){var r=dU(t.x,t.y,t.width,t.height,e.x,e.y,mo);return n.set(mo[0],mo[1]),r}function D3e(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 vc.M:i=c[h++],o=c[h++],r=i,a=o;break;case vc.L:p=x1(r,a,c[h],c[h+1],f,d,mo,!0),r=c[h++],a=c[h++];break;case vc.C:p=MG(r,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,mo),r=c[h++],a=c[h++];break;case vc.Q:p=EG(r,a,c[h++],c[h++],c[h],c[h+1],f,d,mo),r=c[h++],a=c[h++];break;case vc.A:var g=c[h++],m=c[h++],b=c[h++],_=c[h++],S=c[h++],x=c[h++];h+=1;var C=!!(1-c[h++]);s=Math.cos(S)*b+g,l=Math.sin(S)*_+m,h<=1&&(i=s,o=l);var w=(f-g)*_/b+g;p=E3e(g,m,_,S,S+x,C,w,d,mo),r=Math.cos(S+x)*b+g,a=Math.sin(S+x)*_+m;break;case vc.R:i=r=c[h++],o=a=c[h++];var k=c[h++],M=c[h++];p=dU(i,o,k,M,f,d,mo);break;case vc.Z:p=x1(r,a,i,o,f,d,mo,!0),r=i,a=o;break}p<u&&(u=p,n.set(mo[0],mo[1]))}return u}var xo=new tn,Zn=new tn,Ar=new tn,fs=new tn,os=new tn;function C3(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||M3e,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=a.anchor,c=e.getComputedTransform(),f=c&&Df([],c),d=t.get("length2")||0;u&&Ar.copy(u);for(var h=0;h<o.length;h++){var v=o[h];A3e(v,0,s,xo,fs),tn.scaleAndAdd(Zn,xo,fs,d),Zn.transform(f);var p=e.getBoundingRect(),g=u?u.distance(Zn):e instanceof dn?D3e(Zn,e.path,Ar):I3e(Zn,p,Ar);g<l&&(l=g,Zn.transform(c),Ar.transform(c),Ar.toArray(i[0]),Zn.toArray(i[1]),xo.toArray(i[2]))}hU(i,t.get("minTurnAngle")),n.setShape({points:i})}}}var T1=[],Da=new tn;function hU(e,t){if(t<=180&&t>0){t=t/180*Math.PI,xo.fromArray(e[0]),Zn.fromArray(e[1]),Ar.fromArray(e[2]),tn.sub(fs,xo,Zn),tn.sub(os,Ar,Zn);var n=fs.len(),r=os.len();if(!(n<.001||r<.001)){fs.scale(1/n),os.scale(1/r);var a=fs.dot(os),i=Math.cos(t);if(i<a){var o=x1(Zn.x,Zn.y,Ar.x,Ar.y,xo.x,xo.y,T1,!1);Da.fromArray(T1),Da.scaleAndAdd(os,o/Math.tan(Math.PI-t));var s=Ar.x!==Zn.x?(Da.x-Zn.x)/(Ar.x-Zn.x):(Da.y-Zn.y)/(Ar.y-Zn.y);if(isNaN(s))return;s<0?tn.copy(Da,Zn):s>1&&tn.copy(Da,Ar),Da.toArray(e[1])}}}}function P3e(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,xo.fromArray(e[0]),Zn.fromArray(e[1]),Ar.fromArray(e[2]),tn.sub(fs,Zn,xo),tn.sub(os,Ar,Zn);var r=fs.len(),a=os.len();if(!(r<.001||a<.001)){fs.scale(1/r),os.scale(1/a);var i=fs.dot(t),o=Math.cos(n);if(i<o){var s=x1(Zn.x,Zn.y,Ar.x,Ar.y,xo.x,xo.y,T1,!1);Da.fromArray(T1);var l=Math.PI/2,u=Math.acos(os.dot(t)),c=l+u-n;if(c>=l)tn.copy(Da,Ar);else{Da.scaleAndAdd(os,s/Math.tan(Math.PI/2-c));var f=Ar.x!==Zn.x?(Da.x-Zn.x)/(Ar.x-Zn.x):(Da.y-Zn.y)/(Ar.y-Zn.y);if(isNaN(f))return;f<0?tn.copy(Da,Zn):f>1&&tn.copy(Da,Ar)}Da.toArray(e[1])}}}}function x3(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 L3e(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=Ws(r[0],r[1]),i=Ws(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=Pp([],r[1],r[0],o/a),l=Pp([],r[1],r[2],o/i),u=Pp([],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 TI(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<$g.length;l++){var u=$g[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:nn(a.states[u]&&a.states[u].ignore,s);if(h||!nn(d,o)){var v=f?r:r&&r.states[u];v&&(v.ignore=!0);continue}r||(r=new Ka,e.setTextGuideLine(r),!f&&(s||!o)&&x3(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),x3(r,!1,u,c)}}if(r){Lt(r.style,n),r.style.fill=null;var p=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,r.buildPath=L3e}}function kI(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<za.length;r++){var a=za[r];n[a]=e.getModel([a,t])}return n}function vU(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 s1(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 pU(e,t,n,r,a,i){var o=e.length;if(o<2)return;e.sort(function(k,M){return k.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&&x(-c/o,0,o);var p=e[0],g=e[o-1],m,b;_(),m<0&&C(-m,.8),b<0&&C(b,.8),_(),S(m,b,1),S(b,m,-1),_(),m<0&&w(-m),b<0&&w(b);function _(){m=p.rect[t]-r,b=a-g.rect[t]-g.rect[n]}function S(k,M,I){if(k<0){var E=Math.min(M,-k);if(E>0){x(E*I,0,o);var D=E+k;D<0&&C(-D*I,1)}else C(-k*I,1)}}function x(k,M,I){k!==0&&(u=!0);for(var E=M;E<I;E++){var D=e[E],P=D.rect;P[t]+=k,D.label[t]+=k}}function C(k,M){for(var I=[],E=0,D=1;D<o;D++){var P=e[D-1].rect,N=Math.max(e[D].rect[t]-P[t]-P[n],0);I.push(N),E+=N}if(E){var z=Math.min(Math.abs(k)/E,M);if(k>0)for(var D=0;D<o-1;D++){var F=I[D]*z;x(F,0,D+1)}else for(var D=o-1;D>0;D--){var F=I[D-1]*z;x(-F,D,o)}}}function w(k){var M=k<0?-1:1;k=Math.abs(k);for(var I=Math.ceil(k/(o-1)),E=0;E<o-1;E++)if(M>0?x(I,0,E+1):x(-I,o-E-1,o),k-=I,k<=0)return}return u}function R3e(e,t,n,r){return pU(e,"x","width",t,n,r)}function gU(e,t,n,r){return pU(e,"y","height",t,n,r)}function mU(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var n=new rn(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 s1(v.localRect,v.transform)),f||(f=new s1(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 O3e(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function N3e(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:O3e(r&&r.shape.points)}}var T3=["align","verticalAlign","width","height","fontSize"],ka=new Us,OC=Mn(),$3e=Mn();function r0(e,t,n){for(var r=0;r<n.length;r++){var a=n[r];t[a]!=null&&(e[a]=t[a])}}var a0=["x","y","rotation"],B3e=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();rn.applyTransform(c,c,u),u?ka.setLocalTransform(u):(ka.x=ka.y=ka.rotation=ka.originX=ka.originY=0,ka.scaleX=ka.scaleY=1),ka.rotation=Co(ka.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();rn.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:ka.x,y:ka.y,scaleX:ka.scaleX,scaleY:ka.scaleY,rotation:ka.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");(Et(a)||mn(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Zt(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(_,S){return function(){C3(_,S)}}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;Et(o.layoutOption)?c=o.layoutOption(N3e(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=ht(c.x,n),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=ht(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=OC(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<T3.length;p++){var g=T3[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=vU(this._labelList),i=Bn(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Bn(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});R3e(i,0,n),gU(o,0,r);var s=Bn(a,function(l){return l.layoutOption.hideOverlap});mU(s)},e.prototype.processLabelsOverall=function(){var t=this;K(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=OC(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,r),i&&t._animateLabels(o,r)})})},e.prototype._updateLabelLine=function(t,n){var r=t.getTextContent(),a=Zt(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");TI(t,kI(s),l),C3(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&&!jd(t))){var i=OC(r),o=i.oldLayout,s=Zt(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&&(sn(d,"select")>=0&&r.attr(i.oldLayoutSelect),sn(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),In(r,u,n,l)}else if(r.attr(u),!Yh(r).valueAnimation){var f=nn(r.style.opacity,1);r.style.opacity=0,rr(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};r0(h,u,a0),r0(h,r.states.select,a0)}if(r.states.emphasis){var v=i.oldLayoutEmphasis={};r0(v,u,a0),r0(v,r.states.emphasis,a0)}r7(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=$3e(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),In(a,{shape:p},n)):(a.setShape(p),a.style.strokePercent=0,rr(a,{style:{strokePercent:1}},n)),i.oldLayout=p}},e}();const V3e=B3e;var NC=Mn();function F3e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var a=NC(n).labelManager;a||(a=NC(n).labelManager=new V3e),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var a=NC(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var $C=Math.sin,BC=Math.cos,yU=Math.PI,pc=Math.PI*2,z3e=180/yU,H3e=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=Xl(f-pc)||(c?u>=pc:-u>=pc),h=u>0?u%pc:u%pc+pc,v=!1;d?v=!0:Xl(f)?v=!1:v=h>=yU==!!c;var p=t+r*BC(o),g=n+a*$C(o);this._start&&this._add("M",p,g);var m=Math.round(i*z3e);if(d){var b=1/this._p,_=(c?1:-1)*(pc-b);this._add("A",r,a,m,1,+c,t+r*BC(o+_),n+a*$C(o+_)),b>.01&&this._add("A",r,a,m,0,+c,p,g)}else{var S=t+r*BC(s),x=n+a*$C(s);this._add("A",r,a,m,+v,+c,S,x)}},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 bU=H3e;var Gp="none",W3e=Math.round;function G3e(e){var t=e.fill;return t!=null&&t!==Gp}function K3e(e){var t=e.stroke;return t!=null&&t!==Gp}var wk=["lineCap","miterLimit","lineJoin"],U3e=et(wk,function(e){return"stroke-"+e.toLowerCase()});function j3e(e,t,n,r){var a=t.opacity==null?1:t.opacity;if(n instanceof ea){e("opacity",a);return}if(G3e(t)){var i=Lg(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",Gp);if(K3e(t)){var s=Lg(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=sI(n),h=d[0],v=d[1];h&&(v=W3e(v||0),e("stroke-dasharray",h.join(",")),(v||r)&&e("stroke-dashoffset",v))}else r&&e("stroke-dasharray",Gp);for(var p=0;p<wk.length;p++){var g=wk[p];if(r||t[g]!==i1[g]){var m=t[g]||i1[g];m&&e(U3e[p],m)}}}else r&&e("stroke",Gp)}var _U="http://www.w3.org/2000/svg",wU="http://www.w3.org/1999/xlink",Y3e="http://www.w3.org/2000/xmlns/",q3e="http://www.w3.org/XML/1998/namespace";function SU(e){return document.createElementNS(_U,e)}function Kr(e,t,n,r,a){return{tag:e,attrs:n||{},children:r,text:a,key:t}}function X3e(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 Z3e(e){return"</"+e+">"}function MI(e,t){t=t||{};var n=t.newline?`
 
- `:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return X3e(o,s)+(o!=="style"?Pa(l):l||"")+(i?""+n+et(i,function(u){return r(u)}).join(n)+n:"")+Z3e(o)}return r(e)}function Q3e(e,t,n){n=n||{};var r=n.newline?`
 
- `:"",a=" {"+r,i=r+"}",o=et(mn(e),function(l){return l+a+et(mn(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+i}).join(r),s=et(mn(t),function(l){return"@keyframes "+l+a+et(mn(t[l]),function(u){return u+a+et(mn(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 Sk(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function k3(e,t,n,r){return Kr("svg","root",{width:e,height:t,xmlns:_U,"xmlns:xlink":wU,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var M3={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"},_c="transform-origin";function J3e(e,t,n){var r=Ge({},e.shape);Ge(r,t),e.buildPath(n,r);var a=new bU;return a.reset(NG(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function e4e(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[_c]=n+"px "+r+"px")}var t4e={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function CU(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function n4e(e,t,n){var r=e.shape.paths,a={},i,o;if(K(r,function(l){var u=Sk(n.zrId);u.animation=!0,bw(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=mn(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=CU(a,n);return i.replace(o,s)}}function A3(e){return yt(e)?M3[e]?"cubic-bezier("+M3[e]+")":gE(e)?e:"":""}function bw(e,t,n,r){var a=e.animators,i=a.length,o=[];if(e instanceof tw){var s=n4e(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=A3(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],S=_.length,x={},C={},w={},k="animation-timing-function";function M(ne,Ce,Te){for(var he=ne.getTracks(),X=ne.getMaxTime(),ae=0;ae<he.length;ae++){var ge=he[ae];if(ge.needsAnimate()){var ke=ge.keyframes,Pe=ge.propName;if(Te&&(Pe=Te(Pe)),Pe)for(var Me=0;Me<ke.length;Me++){var ze=ke[Me],Oe=Math.round(ze.time/X*100)+"%",Le=A3(ze.easing),Ve=ze.rawValue;(yt(Ve)||kn(Ve))&&(Ce[Oe]=Ce[Oe]||{},Ce[Oe][Pe]=ze.rawValue,Le&&(Ce[Oe][k]=Le))}}}}for(var I=0;I<S;I++){var E=_[I],D=E.targetName;D?D==="shape"&&M(E,C):!r&&M(E,x)}for(var P in x){var N={};zG(N,e),Ge(N,x[P]);var z=$G(N),F=x[P][k];w[P]=z?{transform:z}:{},e4e(w[P],N),F&&(w[P][k]=F)}var B,V=!0;for(var P in C){w[P]=w[P]||{};var L=!B,F=C[P][k];L&&(B=new Cs);var G=B.len();B.reset(),w[P].d=J3e(e,C[P],B);var q=B.len();if(!L&&G!==q){V=!1;break}F&&(w[P][k]=F)}if(!V)for(var P in w)delete w[P].d;if(!r)for(var I=0;I<S;I++){var E=_[I],D=E.targetName;D==="style"&&M(E,w,function(he){return t4e[he]})}for(var Q=mn(w),ie=!0,de,I=1;I<Q.length;I++){var oe=Q[I-1],se=Q[I];if(w[oe][_c]!==w[se][_c]){ie=!1;break}de=w[oe][_c]}if(ie&&de){for(var P in w)w[P][_c]&&delete w[P][_c];t[_c]=de}if(Bn(Q,function(ne){return mn(w[ne]).length>0}).length){var le=CU(w,n);return le+" "+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 Yg=Math.round;function xU(e){return e&&yt(e.src)}function TU(e){return e&&Et(e.toDataURL)}function AI(e,t,n,r){j3e(function(a,i){var o=a==="fill"||a==="stroke";o&&OG(i)?MU(t,e,a,r):o&&yE(i)?AU(n,e,a,r):e[a]=i},t,n,!1),u4e(n,e,r)}function E3(e){return Xl(e[0]-1)&&Xl(e[1])&&Xl(e[2])&&Xl(e[3]-1)}function r4e(e){return Xl(e[4])&&Xl(e[5])}function EI(e,t,n){if(t&&!(r4e(t)&&E3(t))){var r=n?10:1e4;e.transform=E3(t)?"translate("+Yg(t[4]*r)/r+" "+Yg(t[5]*r)/r+")":NIe(t)}}function I3(e,t,n){for(var r=e.points,a=[],i=0;i<r.length;i++)a.push(Yg(r[i][0]*n)/n),a.push(Yg(r[i][1]*n)/n);t.points=a.join(" ")}function D3(e){return!e.smooth}function a4e(e){var t=et(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]]=Yg(s*a)/a)}}}var i4e={circle:[a4e(["cx","cy","r"])],polyline:[I3,D3],polygon:[I3,D3]};function o4e(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName==="shape")return!0;return!1}function kU(e,t){var n=e.style,r=e.shape,a=i4e[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&NG(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](r))&&!(o&&o4e(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 bU),p.reset(u),d.rebuildPath(p,l),p.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),i.d=p.getStr()}return EI(i,e.transform),AI(i,n,e,t),t.animation&&bw(e,i,t),Kr(s,e.id+"",i)}function s4e(e,t){var n=e.style,r=n.image;if(r&&!yt(r)&&(xU(r)?r=r.src:TU(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),EI(l,e.transform),AI(l,n,e,t),t.animation&&bw(e,l,t),Kr("image",e.id+"",l)}}function l4e(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var a=n.font||yu,i=n.x||0,o=BIe(n.y||0,K_(a),n.textBaseline),s=$Ie[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(_9(n)){var u="",c=n.fontStyle,f=b9(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||aG,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),EI(l,e.transform),AI(l,n,e,t),t.animation&&bw(e,l,t),Kr("text",e.id+"",l,void 0,r)}}function P3(e,t){if(e instanceof dn)return kU(e,t);if(e instanceof ea)return s4e(e,t);if(e instanceof Ng)return l4e(e,t)}function u4e(e,t,n){var r=e.style;if(VIe(r)){var a=FIe(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=Lg(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]=Kr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Kr("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:b,"flood-color":p,"flood-opacity":v})]),i[a]=o}t.filter=G_(o)}}function MU(e,t,n,r){var a=e[n],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(LG(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(RG(a))i="radialGradient",o.cx=nn(a.x,.5),o.cy=nn(a.y,.5),o.r=nn(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=PT(s[u].offset)*100+"%",d=s[u].color,h=Lg(d),v=h.color,p=h.opacity,g={offset:f};g["stop-color"]=v,p<1&&(g["stop-opacity"]=p),l.push(Kr("stop",u+"",g))}var m=Kr(i,"",o,l),b=MI(m),_=r.gradientCache,S=_[b];S||(S=r.zrId+"-g"+r.gradientIdx++,_[b]=S,o.id=S,r.defs[S]=Kr(i,S,o,l)),t[n]=G_(S)}function AU(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(PG(a)){var d=a.imageWidth,h=a.imageHeight,v=void 0,p=a.image;if(yt(p)?v=p:xU(p)?v=p.src:TU(p)&&(v=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Sa(d,g),Sa(h,g)}else if(d==null||h==null){var m=function(I,E){if(I){var D=I.elm,P=d||E.width,N=h||E.height;I.tag==="pattern"&&(u?(N=1,P/=i.width):c&&(P=1,N/=i.height)),I.attrs.width=P,I.attrs.height=N,D&&(D.setAttribute("width",P),D.setAttribute("height",N))}},b=AE(v,null,e,function(I){l||m(C,I),m(f,I)});b&&b.width&&b.height&&(d=d||b.width,h=h||b.height)}f=Kr("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=$t(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):c?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var x=$G(a);x&&(o.patternTransform=x);var C=Kr("pattern","",o,[f]),w=MI(C),k=r.patternCache,M=k[w];M||(M=r.zrId+"-p"+r.patternIdx++,k[w]=M,o.id=M,C=r.defs[M]=Kr("pattern",M,o,[f])),t[n]=G_(M)}}function c4e(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]=Kr("clipPath",i,o,[kU(e,n)])}t["clip-path"]=G_(i)}function L3(e){return document.createTextNode(e)}function Pc(e,t,n){e.insertBefore(t,n)}function R3(e,t){e.removeChild(t)}function O3(e,t){e.appendChild(t)}function EU(e){return e.parentNode}function IU(e){return e.nextSibling}function VC(e,t){e.textContent=t}var N3=58,f4e=120,d4e=Kr("","");function Ck(e){return e===void 0}function ts(e){return e!==void 0}function h4e(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 cp(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function qg(e){var t,n=e.children,r=e.tag;if(ts(r)){var a=e.elm=SU(r);if(II(d4e,e),Xe(n))for(t=0;t<n.length;++t){var i=n[t];i!=null&&O3(a,qg(i))}else ts(e.text)&&!Nt(e.text)&&O3(a,L3(e.text))}else e.elm=L3(e.text);return e.elm}function DU(e,t,n,r,a){for(;r<=a;++r){var i=n[r];i!=null&&Pc(e,qg(i),t)}}function k1(e,t,n,r){for(;n<=r;++n){var a=t[n];if(a!=null)if(ts(a.tag)){var i=EU(a.elm);R3(i,a.elm)}else R3(e,a.elm)}}function II(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)!==f4e?r.setAttribute(n,o):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(Y3e,n,o):n.charCodeAt(3)===N3?r.setAttributeNS(q3e,n,o):n.charCodeAt(5)===N3?r.setAttributeNS(wU,n,o):r.setAttribute(n,o))}for(n in a)n in i||r.removeAttribute(n)}}function v4e(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]:cp(o,u)?(Sd(o,u),o=t[++r],u=n[++a]):cp(s,c)?(Sd(s,c),s=t[--i],c=n[--l]):cp(o,c)?(Sd(o,c),Pc(e,o.elm,IU(s.elm)),o=t[++r],c=n[--l]):cp(s,u)?(Sd(s,u),Pc(e,s.elm,o.elm),s=t[--i],u=n[++a]):(Ck(f)&&(f=h4e(t,r,i)),d=f[u.key],Ck(d)?Pc(e,qg(u),o.elm):(h=t[d],h.tag!==u.tag?Pc(e,qg(u),o.elm):(Sd(h,u),t[d]=void 0,Pc(e,h.elm,o.elm))),u=n[++a]);(r<=i||a<=l)&&(r>i?(v=n[l+1]==null?null:n[l+1].elm,DU(e,v,n,a,l)):k1(e,t,r,i))}function Sd(e,t){var n=t.elm=e.elm,r=e.children,a=t.children;e!==t&&(II(e,t),Ck(t.text)?ts(r)&&ts(a)?r!==a&&v4e(n,r,a):ts(a)?(ts(e.text)&&VC(n,""),DU(n,null,a,0,a.length-1)):ts(r)?k1(n,r,0,r.length-1):ts(e.text)&&VC(n,""):e.text!==t.text&&(ts(r)&&k1(n,r,0,r.length-1),VC(n,t.text)))}function p4e(e,t){if(cp(e,t))Sd(e,t);else{var n=e.elm,r=EU(n);qg(t),r!==null&&(Pc(r,t.elm,IU(n)),k1(r,[e],0,0))}return t}var g4e=0,m4e=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=$3(),this.configLayer=$3(),this.storage=n,this._opts=r=Ge({},r),this.root=t,this._id="zr"+g4e++,this._oldVNode=k3(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=SU("svg");II(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",p4e(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return P3(t,Sk(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=Sk(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],s=this._bgVNode=y4e(r,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=Kr("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=et(mn(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(Kr("defs","defs",{},u)),t.animation){var c=Q3e(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=Kr("style","stl",{},[],c);o.push(f)}}return k3(r,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},MI(this.renderToVNode({animation:nn(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:nn(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={};c4e(d[m],b,n);var _=Kr("g","clip-g-"+u++,b,[]);(s?s.children:r).push(_),i[o++]=_,s=_}l=d;var S=P3(f,n);S&&(s?s.children:r).push(S)}}},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=Dd(a,0,r),n=Dd(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(yE(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=HIe(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},e}();function $3(e){return function(){}}function y4e(e,t,n,r){var a;if(n&&n!=="none")if(a=Kr("rect","bg",{width:e,height:t,x:"0",y:"0",id:"0"}),OG(n))MU({fill:n},a.attrs,"fill",r);else if(yE(n))AU({style:{fill:n},dirty:Cr,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",r);else{var i=Lg(n),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const b4e=m4e;function _4e(e){e.registerPainter("svg",b4e)}function B3(e,t,n){var r=Po.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 w4e=function(e){Ae(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||r1,typeof n=="string"?o=B3(n,r,a):Nt(n)&&(o=n,n=o.id),i.id=n,i.dom=o;var s=o.style;return s&&(hE(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=B3("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 rn(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(o.length===0){var _=new rn(0,0,0,0);_.copy(b),o.push(_)}else{for(var S=!1,x=1/0,C=0,w=0;w<o.length;++w){var k=o[w];if(k.intersect(b)){var M=new rn(0,0,0,0);M.copy(k),M.union(b),o[w]=M,S=!0;break}else if(l){u.copy(b),u.union(k);var I=b.width*b.height,E=k.width*k.height,D=u.width*u.height,P=D-I-E;P<x&&(x=P,C=w)}}if(l&&(o[C].union(b),S=!0),!S){var _=new rn(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&di||!h)?d.getPrevPaintRect():null;v&&c(v);var p=h&&(d.__dirty&di||!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(Sm(r)){var S=r.global||r.__width===m&&r.__height===b;_=S&&r.__canvasGradient||dk(o,r,{x:0,y:0,width:m,height:b}),r.__canvasGradient=_,r.__width=m,r.__height=b}else uG(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,_=hk(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&&K(a,function(p){v(p.x*f,p.y*f,p.width*f,p.height*f)})},t}(to);const FC=w4e;var V3=1e5,gc=314159,i0=.01,S4e=.001;function C4e(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function x4e(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 T4e=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=Ge({},r||{}),this.dpr=r.devicePixelRatio||r1,this._singleCanvas=i,this.root=t;var o=t.style;o&&(hE(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 FC(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[gc]=h,h.zlevel=gc,s.push(gc),this._domRoot=t}else{this._width=Dd(t,0,r),this._height=Dd(t,1,r);var u=this._domRoot=x4e(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(V3)),i||(i=r.ctx,i.save()),Yc(i,s,a,o===n-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(V3)},e.prototype.paintOne=function(t,n){lI(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;AT(function(){l._paintList(t,n,r,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(gc).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,S=!r&&g.incremental&&Date.now,x=S&&Date.now(),C=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,C,b);else if(_===g.__startIndex){var w=t[_];(!w.incremental||!w.notClear||r)&&g.clear(!1,C,b)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var k,M=function(P){var N={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(k=_;k<g.__endIndex;k++){var z=t[k];if(z.__inHover&&(f=!0),a._doPaintEl(z,g,o,P,N,k===g.__endIndex-1),S){var F=Date.now()-x;if(F>15)break}}N.prevElClipPaths&&m.restore()};if(b)if(b.length===0)k=g.__endIndex;else for(var I=h.dpr,E=0;E<b.length;++E){var D=b[E];m.save(),m.beginPath(),m.rect(D.x*I,D.y*I,D.width*I,D.height*I),m.clip(),M(D),m.restore()}else m.save(),M(),m.restore();g.__drawIndex=k,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<i.length;v++)d(v);return Tn.wxa&&K(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))&&(Yc(s,t,i,o),t.setPrevPaintRect(l))}else Yc(s,t,i,o)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=gc);var r=this._layers[t];return r||(r=new FC("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?en(r,this._layerConfig[t],!0):this._layerConfig[t-i0]&&en(r,this._layerConfig[t-i0],!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]&&C4e(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+S4e,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?i0:0),this._needsManuallyCompositing),c.__builtin__||B_("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&di&&!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,K(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?en(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+i0){var o=this._layers[i];en(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(sn(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=Dd(i,0,a),n=Dd(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(gc).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[gc].dom;var n=new FC("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];Yc(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 k4e=T4e;function M4e(e){e.registerPainter("canvas",k4e)}var A4e=function(e){Ae(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 As(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new zt,a=Er("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=Er(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}(Jn);const E4e=A4e;function kh(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=xh(e,t,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o<n.length;o++)i.push(xh(e,t,n[o]));return i.join(" ")}}function PU(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Xe(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 I4e=function(e){Ae(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=Er(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=D4e,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(){rl(this.childAt(0))},t.prototype.downplay=function(){al(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):In(d,h,s,r),No(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,rr(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=Yr(b),g=_.getShallow("scale"),m=b.getShallow("cursor")}var S=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Rf(n.getItemVisual(r,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),m&&s.attr("cursor",m);var C=n.getItemVisual(r,"style"),w=C.fill;if(s instanceof ea){var k=s.style;s.useStyle(Ge({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},C))}else s.__isEmptyBrush?s.useStyle(Ge({},C)):s.useStyle(C),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=n.getItemVisual(r,"liftZ"),I=this._z2;M!=null?I==null&&(this._z2=s.z2,s.z2+=M):I!=null&&(s.z2=I,this._z2=null);var E=o&&o.useNameLabel;fa(s,p,{labelFetcher:l,labelDataIndex:r,defaultText:D,inheritColor:w,defaultOpacity:C.opacity});function D(z){return E?n.getName(z):kh(n,z)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var N=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*N,P.scaleY=this._sizeY*N,this.setSymbolScale(1),mr(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=Zt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&_u(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();_u(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return nv(n.getItemVisual(r,"symbolSize"))},t}(zt);function D4e(e,t){this.parent.drift(e,t)}const Bm=I4e;function zC(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 F3(e){return e!=null&&!Nt(e)&&(e={isIgnore:e}),e||{}}function z3(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:Yr(t),cursorStyle:t.get("cursor")}}var P4e=function(){function e(t){this.group=new zt,this._SymbolCtor=t||Bm}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=F3(n);var r=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=z3(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(zC(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(!zC(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):In(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=z3(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=F3(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(zC(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){Nu(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 Vm=P4e;function LU(e,t,n){var r=e.getBaseAxis(),a=e.getOtherAxis(r),i=L4e(a,n),o=r.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=et(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return ol(t,f[0])&&(d=!0,f[0]=h),ol(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 L4e(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:kn(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function RU(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 R4e(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 O4e(e,t,n,r,a,i,o,s){for(var l=R4e(e,t),u=[],c=[],f=[],d=[],h=[],v=[],p=[],g=LU(a,t,o),m=e.getLayout("points")||[],b=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,C=void 0,w=void 0;switch(S.cmd){case"=":C=S.idx*2,w=S.idx1*2;var k=m[C],M=m[C+1],I=b[w],E=b[w+1];(isNaN(k)||isNaN(M))&&(k=I,M=E),u.push(k,M),c.push(I,E),f.push(n[C],n[C+1]),d.push(r[w],r[w+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var D=S.idx,P=g.dataDimsForPoint,N=a.dataToPoint([t.get(P[0],D),t.get(P[1],D)]);w=D*2,u.push(N[0],N[1]),c.push(b[w],b[w+1]);var z=RU(g,a,t,D);f.push(z[0],z[1]),d.push(r[w],r[w+1]),p.push(t.getRawIndex(D));break;case"-":x=!1}x&&(h.push(S),v.push(v.length))}v.sort(function(oe,se){return p[oe]-p[se]});for(var F=u.length,B=cs(F),V=cs(F),L=cs(F),G=cs(F),q=[],_=0;_<v.length;_++){var Q=v[_],ie=_*2,de=Q*2;B[ie]=u[de],B[ie+1]=u[de+1],V[ie]=c[de],V[ie+1]=c[de+1],L[ie]=f[de],L[ie+1]=f[de+1],G[ie]=d[de],G[ie+1]=d[de+1],q[_]=h[Q]}return{current:B,next:V,stackedOnCurrent:L,stackedOnNext:G,status:q}}var Il=Math.min,Dl=Math.max;function sf(e,t){return isNaN(e)||isNaN(t)}function xk(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(sf(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,S=b-c;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var x=p+i,C=t[x*2],w=t[x*2+1];C===m&&w===b&&g<r;)g++,x+=i,p+=i,C=t[x*2],w=t[x*2+1],m=t[p*2],b=t[p*2+1],_=m-u,S=b-c;var k=g+1;if(l)for(;sf(C,w)&&k<r;)k++,x+=i,C=t[x*2],w=t[x*2+1];var M=.5,I=0,E=0,D=void 0,P=void 0;if(k>=r||sf(C,w))h=m,v=b;else{I=C-u,E=w-c;var N=m-u,z=C-m,F=b-c,B=w-b,V=void 0,L=void 0;if(s==="x"){V=Math.abs(N),L=Math.abs(z);var G=I>0?1:-1;h=m-G*V*o,v=b,D=m+G*L*o,P=b}else if(s==="y"){V=Math.abs(F),L=Math.abs(B);var q=E>0?1:-1;h=m,v=b-q*V*o,D=m,P=b+q*L*o}else V=Math.sqrt(N*N+F*F),L=Math.sqrt(z*z+B*B),M=L/(L+V),h=m-I*o*(1-M),v=b-E*o*(1-M),D=m+I*o*M,P=b+E*o*M,D=Il(D,Dl(C,m)),P=Il(P,Dl(w,b)),D=Dl(D,Il(C,m)),P=Dl(P,Il(w,b)),I=D-m,E=P-b,h=m-I*V/L,v=b-E*V/L,h=Il(h,Dl(u,m)),v=Il(v,Dl(c,b)),h=Dl(h,Il(u,m)),v=Dl(v,Il(c,b)),I=m-h,E=b-v,D=m+I*L/V,P=b+E*L/V}e.bezierCurveTo(f,d,h,v,m,b),f=D,d=P}else e.lineTo(m,b)}u=m,c=b,p+=i}return g}var OU=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),N4e=function(e){Ae(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 OU},t.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&sf(a[o*2-2],a[o*2-1]);o--);for(;i<o&&sf(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=xk(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=Cs.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 S=u?(v-l)*_+l:(h-s)*_+s;return u?[n,S]:[S,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 x=u?e1(s,h,p,m,n,c):e1(l,v,g,b,n,c);if(x>0)for(var C=0;C<x;C++){var w=c[C];if(w<=1&&w>=0){var S=u?Hr(l,v,g,b,w):Hr(s,h,p,m,w);return u?[n,S]:[S,n]}}s=m,l=b;break}}},t}(dn),$4e=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(OU),NU=function(e){Ae(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 $4e},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&&sf(a[s*2-2],a[s*2-1]);s--);for(;o<s&&sf(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=xk(n,a,o,s,s,1,r.smooth,l,r.connectNulls);xk(n,i,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,n.closePath()}},t}(dn);function $U(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 xn({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=Et(a)?function(g){a(g,f)}:null;rr(f,{shape:{width:l,height:u,x:o,y:s}},n,null,r,p)}return f}function BU(e,t,n){var r=e.getArea(),a=pr(r.r0,1),i=pr(r.r,1),o=new Ha({shape:{cx:pr(e.cx,1),cy:pr(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,rr(o,{shape:{endAngle:r.endAngle,r:i}},n)}return o}function _w(e,t,n,r,a){if(e){if(e.type==="polar")return BU(e,t,n);if(e.type==="cartesian2d")return $U(e,t,n,r,a)}else return null;return null}function Of(e,t){return e.type===t}function H3(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function W3(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 G3(e,t){var n=W3(e),r=n[0],a=n[1],i=W3(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 K3(e){return kn(e)?e:e?.5:0}function B4e(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),a=cs(r*2),i=0;i<r;i++){var o=RU(n,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Pl(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 V4e(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=mE(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 F4e(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=et(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=V4e(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";K(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 Gh(0,0,0,0,d,!0);return b[a]=p,b[a+"2"]=g,b}}}function z4e(e,t,n){var r=e.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&H4e(i,t))){var o=t.mapDimension(i.dim),s={};return K(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function H4e(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(Bm.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function W4e(e,t){return isNaN(e)||isNaN(t)}function G4e(e){for(var t=e.length/2;t>0&&W4e(e[t*2-2],e[t*2-1]);t--);return t-1}function U3(e,t){return[e[t*2],e[t*2+1]]}function K4e(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 VU(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<za.length;t++)if(e.get([za[t],"endLabel","show"]))return!0;return!1}function HC(e,t,n,r){if(Of(t,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=VU(r)?function(h,v){e._endLabelOnDuring(h,v,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=$U(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 BU(t,n,r)}function U4e(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 j4e=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new zt,r=new Vm;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(),S=c.get("origin"),x=LU(o,l,S),C=_&&B4e(o,l,x),w=n.get("showSymbol"),k=n.get("connectNulls"),M=w&&!d&&z4e(n,l,o),I=this._data;I&&I.eachItemGraphicEl(function(se,le){se.__temp&&(s.remove(se),I.setItemGraphicEl(le,null))}),w||v.remove(),s.add(m);var E=d?!1:n.get("step"),D;o&&o.getArea&&n.get("clip",!0)&&(D=o.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var P=F4e(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&E===this._step))w&&v.updateData(l,{isIgnore:M,clipShape:D,disableAnimation:!0,getSymbolPoint:function(se){return[f[se*2],f[se*2+1]]}}),b&&this._initSymbolLabelAnimation(l,o,D),E&&(f=Pl(f,o,E,k),C&&(C=Pl(C,o,E,k))),p=this._newPolyline(f),_?g=this._newPolygon(f,C):g&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,_f(P)),m.setClipPath(HC(this,o,!0,n));else{_&&!g?g=this._newPolygon(f,C):g&&!_&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,_f(P));var N=m.getClipPath();if(N){var z=HC(this,o,!1,n);rr(N,{shape:z.shape},n)}else m.setClipPath(HC(this,o,!0,n));w&&v.updateData(l,{isIgnore:M,clipShape:D,disableAnimation:!0,getSymbolPoint:function(se){return[f[se*2],f[se*2+1]]}}),(!H3(this._stackedOnPoints,C)||!H3(this._points,f))&&(b?this._doUpdateAnimation(l,C,o,a,E,S,k):(E&&(f=Pl(f,o,E,k),C&&(C=Pl(C,o,E,k))),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:C})))}var F=n.getModel("emphasis"),B=F.get("focus"),V=F.get("blurScope"),L=F.get("disabled");if(p.useStyle(Lt(u.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),ca(p,n,"lineStyle"),p.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var G=p.getState("emphasis").style;G.lineWidth=+p.style.lineWidth+1}Zt(p).seriesIndex=n.seriesIndex,mr(p,B,V,L);var q=K3(n.get("smooth")),Q=n.get("smoothMonotone");if(p.setShape({smooth:q,smoothMonotone:Q,connectNulls:k}),g){var ie=l.getCalculationInfo("stackedOnSeries"),de=0;g.useStyle(Lt(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ie&&(de=K3(ie.get("smooth"))),g.setShape({smooth:q,stackedOnSmooth:de,smoothMonotone:Q,connectNulls:k}),ca(g,n,"areaStyle"),Zt(g).seriesIndex=n.seriesIndex,mr(g,B,V,L)}var oe=function(se){i._changePolyState(se)};l.eachItemGraphicEl(function(se){se&&(se.onHoverStateChange=oe)}),this._polyline.onHoverStateChange=oe,this._data=l,this._coordSys=o,this._stackedOnPoints=C,this._points=f,this._step=E,this._valueOrigin=S,n.get("triggerLineEvent")&&(this.packEventData(n,p),g&&this.packEventData(n,g))},t.prototype.packEventData=function(n,r){Zt(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=mf(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 Bm(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 Un.prototype.highlight.call(this,n,r,a,i)},t.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=mf(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 Un.prototype.downplay.call(this,n,r,a,i)},t.prototype._changePolyState=function(n){var r=this._polygon;o1(this._polyline,n),r&&o1(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new N4e({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 NU({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");Et(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Et(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 S=a,x=r.pointToCoord(g);i?(m=S.startAngle,b=S.endAngle,_=-x[1]/180*Math.PI):(m=S.r0,b=S.r,_=x[0])}else{var C=a;i?(m=C.x,b=C.x+C.width,_=h.x):(m=C.y+C.height,b=C.y,_=h.y)}var w=b===m?0:(_-m)/(b-m);l&&(w=1-w);var k=Et(f)?f(v):c*w+d,M=p.getSymbolPath(),I=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:k}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:k}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(VU(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 Cn({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=G4e(l);c>=0&&(fa(s,Yr(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?PU(o,h):kh(o,f)},enableTextSetter:!0},U4e(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,S=b?m?_.x:_.y+_.height:m?_.x+_.width:_.y,x=(m?p:0)*(b?-1:1),C=(m?0:-p)*(b?-1:1),w=m?"x":"y",k=K4e(f,S,w),M=k.range,I=M[1]-M[0],E=void 0;if(I>=1){if(I>1&&!h){var D=U3(f,M[0]);u.attr({x:D[0]+x,y:D[1]+C}),o&&(E=d.getRawValue(M[0]))}else{var D=c.getPointOn(S,w);D&&u.attr({x:D[0]+x,y:D[1]+C});var P=d.getRawValue(M[0]),N=d.getRawValue(M[1]);o&&(E=r9(a,v,P,N,k.t))}i.lastFrameIndex=M[0]}else{var z=n===1||i.lastFrameIndex>0?M[0]:0,D=U3(f,z);o&&(E=d.getRawValue(z)),u.attr({x:D[0]+x,y:D[1]+C})}if(o){var F=Yh(u);typeof F.setLabelText=="function"&&F.setLabelText(E)}}},t.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=O4e(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=Pl(d.current,a,o,l),v=Pl(d.stackedOnCurrent,a,o,l),p=Pl(d.next,a,o,l),g=Pl(d.stackedOnNext,a,o,l)),G3(h,p)>3e3||c&&G3(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(),In(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),In(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=d.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var C=n.getItemGraphicEl(_[S].idx1);C&&b.push({el:C,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,k=0;k<b.length;k++){var M=b[k].el,I=b[k].ptIdx*2;M.x=w[I],M.y=w[I+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}(Un);const Y4e=j4e;function Fm(e,t){return{seriesType:e,plan:ev(),reset:function(n){var r=n.getData(),a=n.coordinateSystem,i=n.pipelineContext,o=t||i.large;if(a){var s=et(a.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");ol(r,s[0])&&(s[0]=u),ol(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&&cs(p*l),m=[],b=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(l===1){var C=c.get(f,_);x=a.dataToPoint(C,null,b)}else m[0]=c.get(f,_),m[1]=c.get(d,_),x=a.dataToPoint(m,null,b);o?(g[S++]=x[0],g[S++]=x[1]):v.setItemLayout(_,x.slice())}o&&v.setLayout("points",g)}}}}}}var q4e={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]}},X4e=function(e){return Math.round(e.length/2)};function FU(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;yt(i)?v=q4e[i]:Et(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,v,X4e))}}}}}function Z4e(e){e.registerChartView(Y4e),e.registerSeriesModel(E4e),e.registerLayout(Fm("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,FU("line"))}var zU=function(e){Ae(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 As(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)K(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,S=0;S<v.length;S++){var x=v[S].coord,C=S===v.length-1?v[S-1].tickValue+_:v[S].tickValue;if(C===p){b=x;break}else if(C<p)m=x;else if(m!=null&&C>p){b=(x+m)/2;break}S===1&&(_=C-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}(Jn);Jn.registerClass(zU);const M1=zU;var Q4e=function(e){Ae(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 As(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=$u(M1.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}(M1);const J4e=Q4e;var eBe=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}(),tBe=function(e){Ae(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new eBe},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}(dn);const A1=tBe;function nBe(e,t){t=t||{};var n=t.isRoundCap;return function(r,a,i){var o=a.position;if(!o||o instanceof Array)return a1(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,S=Math.sin,x=c+d*_(p),C=f+d*S(p),w="left",k="top";switch(s){case"startArc":x=c+(h-l)*_(m),C=f+(h-l)*S(m),w="center",k="top";break;case"insideStartArc":x=c+(h+l)*_(m),C=f+(h+l)*S(m),w="center",k="bottom";break;case"startAngle":x=c+v*_(p)+o0(p,l+b,!1),C=f+v*S(p)+s0(p,l+b,!1),w="right",k="middle";break;case"insideStartAngle":x=c+v*_(p)+o0(p,-l+b,!1),C=f+v*S(p)+s0(p,-l+b,!1),w="left",k="middle";break;case"middle":x=c+v*_(m),C=f+v*S(m),w="center",k="middle";break;case"endArc":x=c+(d+l)*_(m),C=f+(d+l)*S(m),w="center",k="bottom";break;case"insideEndArc":x=c+(d-l)*_(m),C=f+(d-l)*S(m),w="center",k="top";break;case"endAngle":x=c+v*_(g)+o0(g,l+b,!0),C=f+v*S(g)+s0(g,l+b,!0),w="left",k="middle";break;case"insideEndAngle":x=c+v*_(g)+o0(g,-l+b,!0),C=f+v*S(g)+s0(g,-l+b,!0),w="right",k="middle";break;default:return a1(r,a,i)}return r=r||{},r.x=x,r.y=C,r.align=w,r.verticalAlign=k,r}}function rBe(e,t,n,r){if(kn(r)){e.setTextConfig({rotation:r});return}else if(Xe(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 o0(e,t,n){return t*Math.sin(e)*(n?-1:1)}function s0(e,t,n){return t*Math.cos(e)*(n?1:-1)}function qc(e,t,n){var r=e.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;Xe(r)||(r=[r,r,r,r]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:et(r,function(i){return Ro(i,a)})}}var WC=Math.max,GC=Math.min;function aBe(e,t){var n=e.getArea&&e.getArea();if(Of(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 iBe=function(e){Ae(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){Nu(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=oBe(n,u);h&&this._enableRealtimeSort(h,s,a);var v=n.get("clip",!0)||h,p=aBe(u,s);o.removeClipPath();var g=n.get("roundCap",!0),m=n.get("showBackground",!0),b=n.getModel("backgroundStyle"),_=b.get("borderRadius")||0,S=[],x=this._backgroundEls,C=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function k(E){var D=l0[u.type](s,E),P=hBe(u,f,D);return P.useStyle(b.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),S[E]=P,P}s.diff(l).add(function(E){var D=s.getItemModel(E),P=l0[u.type](s,E,D);if(m&&k(E),!(!s.hasValue(E)||!Z3[u.type](P))){var N=!1;v&&(N=j3[u.type](p,P));var z=Y3[u.type](n,s,E,P,f,d,c.model,!1,g);h&&(z.forceLabelAnimation=!0),Q3(z,s,E,D,P,n,f,u.type==="polar"),C?z.attr({shape:P}):h?q3(h,d,z,P,E,f,!1,!1):rr(z,{shape:P},n,E),s.setItemGraphicEl(E,z),o.add(z),z.ignore=N}}).update(function(E,D){var P=s.getItemModel(E),N=l0[u.type](s,E,P);if(m){var z=void 0;x.length===0?z=k(D):(z=x[D],z.useStyle(b.getItemStyle()),u.type==="cartesian2d"?z.setShape("r",_):z.setShape("cornerRadius",_),S[E]=z);var F=l0[u.type](s,E),B=WU(f,F,u);In(z,{shape:B},d,E)}var V=l.getItemGraphicEl(D);if(!s.hasValue(E)||!Z3[u.type](N)){o.remove(V);return}var L=!1;if(v&&(L=j3[u.type](p,N),L&&o.remove(V)),V?No(V):V=Y3[u.type](n,s,E,N,f,d,c.model,!!V,g),h&&(V.forceLabelAnimation=!0),w){var G=V.getTextContent();if(G){var q=Yh(G);q.prevValue!=null&&(q.prevValue=q.value)}}else Q3(V,s,E,P,N,n,f,u.type==="polar");C?V.attr({shape:N}):h?q3(h,d,V,N,E,f,!0,w):In(V,{shape:N},n,E,null),s.setItemGraphicEl(E,V),V.ignore=L,o.add(V)}).remove(function(E){var D=l.getItemGraphicEl(E);D&&Vg(D,n,E)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new zt);M.removeAll();for(var I=0;I<S.length;++I)M.add(S[I]);o.add(M),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(n,r,a){this._clear(),e4(n,this.group),this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),e4(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&_w(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:et(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){Vg(i,n,Zt(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}(Un),j3={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=WC(t.x,e.x),s=GC(t.x+t.width,a),l=WC(t.y,e.y),u=GC(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=GC(t.r,e.r),i=WC(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}},Y3={cartesian2d:function(e,t,n,r,a,i,o,s,l){var u=new xn({shape:Ge({},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?A1:Ha,c=new u({shape:r,z2:1});c.name="item";var f=HU(a);if(c.calculateTextPosition=nBe(f,{isRoundCap:u===A1}),i){var d=c.shape,h=a?"r":"endAngle",v={};d[h]=a?r.r0:r.startAngle,v[h]=r[h],(s?In:rr)(c,{shape:v},i)}return c}};function oBe(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 q3(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?In:rr)(n,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?In:rr)(n,{shape:u},c,a)}function X3(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var sBe=["x","y","width","height"],lBe=["cx","cy","r","startAngle","endAngle"],Z3={cartesian2d:function(e){return!X3(e,sBe)},polar:function(e){return!X3(e,lBe)}},l0={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),a=n?cBe(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 uBe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function HU(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 Q3(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=qc(r.getModel("itemStyle"),c,!0);Ge(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=Yr(r);fa(e,v,{labelFetcher:i,labelDataIndex:n,defaultText:kh(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,rBe(e,g==="outside"?h:g,HU(o),r.get(["label","rotate"]))}n7(p,v,i.getRawValue(n),function(b){return PU(t,b)});var m=r.getModel(["emphasis"]);mr(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),ca(e,r),uBe(a)&&(e.style.fill="none",e.style.stroke="none",K(e.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function cBe(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 fBe=function(){function e(){}return e}(),J3=function(e){Ae(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new fBe},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}(dn);function e4(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 J3({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 J3({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")),Zt(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",t4),f.on("mousemove",t4)),n&&n.push(f)}var t4=hw(function(e){var t=this,n=dBe(t,e.offsetX,e.offsetY);Zt(t).dataIndex=n>=0?n:null},30,!1);function dBe(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 WU(e,t,n){if(Of(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 hBe(e,t,n){var r=e.type==="polar"?Ha:xn;return new r({shape:WU(t,n,e),silent:!0,z2:0})}const vBe=iBe;function pBe(e){e.registerChartView(vBe),e.registerSeriesModel(J4e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Xt(jK,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,YK("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,FU("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 u0=Math.PI*2,n4=Math.PI/180;function GU(e,t){return Br(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function KU(e,t){var n=GU(e,t),r=e.get("center"),a=e.get("radius");Xe(a)||(a=[0,a]);var i=ht(n.width,t.getWidth()),o=ht(n.height,t.getHeight()),s=Math.min(i,o),l=ht(a[0],s/2),u=ht(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 Xe(r)||(r=[r,r]),c=ht(r[0],i)+n.x,f=ht(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function gBe(e,t,n){t.eachSeriesByType(e,function(r){var a=r.getData(),i=a.mapDimension("value"),o=GU(r,n),s=KU(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*n4,h=r.get("minAngle")*n4,v=0;a.each(i,function(I){!isNaN(I)&&v++});var p=a.getSum(i),g=Math.PI/(p||v)*2,m=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var x=u0,C=0,w=d,k=m?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(I,E){var D;if(isNaN(I)){a.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:b?NaN:c});return}b!=="area"?D=p===0&&_?g:I*g:D=u0/v,D<h?(D=h,x-=h):C+=I;var P=w+k*D;a.setItemLayout(E,{angle:D,startAngle:w,endAngle:P,clockwise:m,cx:l,cy:u,r0:f,r:b?$n(I,S,[f,c]):c}),w=P}),x<u0&&v)if(x<=.001){var M=u0/v;a.each(i,function(I,E){if(!isNaN(I)){var D=a.getItemLayout(E);D.angle=M,D.startAngle=d+k*E*M,D.endAngle=d+k*(E+1)*M}})}else g=x/C,w=d,a.each(i,function(I,E){if(!isNaN(I)){var D=a.getItemLayout(E),P=D.angle===h?h:I*g;D.startAngle=w,D.endAngle=w+k*P,w+=k*P}})})}function zm(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 mBe=Math.PI/180;function r4(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],S=Math.abs(_.label.y-n),x=r+_.len,C=x*x,w=Math.sqrt((1-Math.abs(S*S/m))*C),k=t+(w+_.len2)*a,M=k-_.label.x,I=_.targetTextWidth-M*a;UU(_,I,!0),_.label.x=k}}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],S=_.label.y>n?m:g,x=Math.abs(_.label.y-n);if(x>=S.maxY){var C=_.label.x-t-_.len2*a,w=r+_.len,k=Math.abs(C)<w?Math.sqrt(x*x/(1-C*C/w/w)):w;S.rB=k,S.maxY=x}S.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}gU(e,l,l+o)&&f(e)}function yBe(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;KC(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(!KC(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,UU(v,g)}}r4(u,t,n,r,1,a,i,o,s,f),r4(l,t,n,r,-1,a,i,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!KC(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",b=h.style.padding,_=b?b[1]+b[3]:0,S=h.style.backgroundColor?0:_,x=v.rect.width+S,C=p[1][0]-p[2][0];m?h.x<t?p[2][0]=o+v.edgeDistance+x+v.labelDistance:p[2][0]=o+a-v.edgeDistance-x-v.labelDistance:(h.x<t?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+C),p[1][1]=p[2][1]=h.y}}}function UU(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 KC(e){return e.position==="center"}function bBe(e){var t=e.getData(),n=[],r,a,i=!1,o=(e.get("minShowLabelAngle")||0)*mBe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(C){C.ignore=!0}function v(C){if(!C.ignore)return!0;for(var w in C.states)if(C.states[w].ignore===!1)return!0;return!1}t.each(function(C){var w=t.getItemGraphicEl(C),k=w.shape,M=w.getTextContent(),I=w.getTextGuideLine(),E=t.getItemModel(C),D=E.getModel("label"),P=D.get("position")||E.get(["emphasis","label","position"]),N=D.get("distanceToLabelLine"),z=D.get("alignTo"),F=ht(D.get("edgeDistance"),u),B=D.get("bleedMargin"),V=E.getModel("labelLine"),L=V.get("length");L=ht(L,u);var G=V.get("length2");if(G=ht(G,u),Math.abs(k.endAngle-k.startAngle)<o){K(M.states,h),M.ignore=!0,I&&(K(I.states,h),I.ignore=!0);return}if(v(M)){var q=(k.startAngle+k.endAngle)/2,Q=Math.cos(q),ie=Math.sin(q),de,oe,se,le;r=k.cx,a=k.cy;var ne=P==="inside"||P==="inner";if(P==="center")de=k.cx,oe=k.cy,le="center";else{var Ce=(ne?(k.r+k.r0)/2*Q:k.r*Q)+r,Te=(ne?(k.r+k.r0)/2*ie:k.r*ie)+a;if(de=Ce+Q*3,oe=Te+ie*3,!ne){var he=Ce+Q*(L+l-k.r),X=Te+ie*(L+l-k.r),ae=he+(Q<0?-1:1)*G,ge=X;z==="edge"?de=Q<0?c+F:c+u-F:de=ae+(Q<0?-N:N),oe=ge,se=[[Ce,Te],[he,X],[ae,ge]]}le=ne?"center":z==="edge"?Q>0?"right":"left":Q>0?"left":"right"}var ke=Math.PI,Pe=0,Me=D.get("rotate");if(kn(Me))Pe=Me*(ke/180);else if(P==="center")Pe=0;else if(Me==="radial"||Me===!0){var ze=Q<0?-q+ke:-q;Pe=ze}else if(Me==="tangential"&&P!=="outside"&&P!=="outer"){var Oe=Math.atan2(Q,ie);Oe<0&&(Oe=ke*2+Oe);var Le=ie>0;Le&&(Oe=ke+Oe),Pe=Oe-ke}if(i=!!Pe,M.x=de,M.y=oe,M.rotation=Pe,M.setStyle({verticalAlign:"middle"}),ne){M.setStyle({align:le});var nt=M.states.select;nt&&(nt.x+=M.x,nt.y+=M.y)}else{var Ve=M.getBoundingRect().clone();Ve.applyTransform(M.getComputedTransform());var qe=(M.style.margin||0)+2.1;Ve.y-=qe/2,Ve.height+=qe,n.push({label:M,labelLine:I,position:P,len:L,len2:G,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new tn(Q,ie),linePoints:se,textAlign:le,labelDistance:N,labelAlignTo:z,edgeDistance:F,bleedMargin:B,rect:Ve,unconstrainedWidth:Ve.width,labelStyleWidth:M.style.width})}w.setTextConfig({inside:ne})}}),!i&&e.get("avoidLabelOverlap")&&yBe(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}),_&&(K(m.states,h),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(b){var x=g.linePoints;_||!x?(K(b.states,h),b.ignore=!0):(hU(x,g.minTurnAngle),P3e(x,g.surfaceNormal,g.maxSurfaceAngle),b.setShape({points:x}),m.__hostTarget.textGuideLineConfig={anchor:new tn(x[0][0],x[0][1])})}}}var _Be=function(e){Ae(t,e);function t(n,r,a){var i=e.call(this)||this;i.z2=2;var o=new Cn;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=Ge(qc(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?(rr(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,rr(o,{shape:{r:c.r}},s,r)):a!=null?(o.setShape({startAngle:a,endAngle:a}),rr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(o.shape.endAngle=c.startAngle,In(o,{shape:{endAngle:c.endAngle}},s,r))}else No(o),In(o,{shape:f},s,r);o.useStyle(n.getItemVisual(r,"style")),ca(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=Ge({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},qc(u.getModel("itemStyle"),c)),Ge(o.ensureState("select"),{x:p,y:g,shape:qc(l.getModel(["select","itemStyle"]),c)}),Ge(o.ensureState("blur"),{shape:qc(l.getModel(["blur","itemStyle"]),c)});var b=o.getTextGuideLine(),_=o.getTextContent();b&&Ge(b.ensureState("select"),{x:p,y:g}),Ge(_.ensureState("select"),{x:p,y:g}),mr(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;fa(i,Yr(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 Ka,this.setTextGuideLine(h)),TI(this,kI(o),{stroke:u,opacity:Mo(s.get(["lineStyle","opacity"]),c,1)})}},t}(Ha),wBe=function(e){Ae(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 Ha({shape:KU(n,a)});d.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new _Be(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);Vg(v,n,h)}).execute(),bBe(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}(Un);const SBe=wBe;function iv(e,t,n){t=Xe(t)&&{coordDimensions:t}||Ge({encodeDefine:e.getEncode()},t);var r=e.getSource(),a=rv(r,t).dimensions,i=new _a(a,e);return i.initData(r,n),i}var CBe=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 Hm=CBe;var xBe=Mn(),TBe=function(e){Ae(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 Hm(bt(this.getData,this),bt(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return iv(this,{coordDimensions:["value"],encodeDefaulter:Xt(XE,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),a=xBe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=YG(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){gf(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}(Jn);const kBe=TBe;function MBe(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!(kn(o)&&!isNaN(o)&&o<0)})}}}function ABe(e){e.registerChartView(SBe),e.registerSeriesModel(kBe),sK("pie",e.registerAction),e.registerLayout(Xt(gBe,"pie")),e.registerProcessor(zm("pie")),e.registerProcessor(MBe("pie"))}var EBe=function(e){Ae(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 As(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}(Jn);const IBe=EBe;var jU=4,DBe=function(){function e(){}return e}(),PBe=function(e){Ae(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 DBe},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]<jU,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 rn(l-o/2,u-s/2,c-l+o,f-u+s)}return n},t}(dn),LBe=function(){function e(){this.group=new zt}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 PBe({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=Er(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<jU;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=Zt(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 RBe=LBe;var OBe=function(e){Ae(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=Fm("").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 RBe:new Vm,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}(Un);const NBe=OBe;var $Be=function(e){Ae(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}(wn);const BBe=$Be;var Tk=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Pr).models[0]},t.type="cartesian2dAxis",t}(wn);Tr(Tk,av);var YU={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)"]}}},VBe=en({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},YU),DI=en({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}}},YU),FBe=en({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},DI),zBe=Lt({logBase:10},DI);const qU={category:VBe,value:DI,time:FBe,log:zBe};var HBe={value:1,category:1,time:1,log:1};function Mh(e,t,n,r){K(HBe,function(a,i){var o=en(en({},qU[i],!0),r,!0),s=function(l){Ae(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=Hg(this),h=d?Xh(c):{},v=f.getTheme();en(c,v.get(i+"Axis")),en(c,this.getDefaultOption()),c.type=a4(c),d&&wu(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=mk.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",a4)}function a4(e){return e.type||(e.data?"category":"value")}var WBe=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 et(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Bn(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 GBe=WBe;var kk=["x","y"];function i4(e){return e.type==="interval"||e.type==="time"}var KBe=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=kk,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!i4(n)||!i4(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=Df([],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 rn(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 Jr(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 Jr(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 rn(a,i,o,s)},t}(GBe),UBe=function(e){Ae(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}(io);const jBe=UBe;function Mk(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),Wr(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 o4(e){return e.get("coordinateSystem")==="cartesian2d"}function s4(e){var t={xAxisModel:null,yAxisModel:null};return K(t,function(n,r){var a=r.replace(/Model$/,""),i=e.getReferringComponents(a,Pr).models[0];t[r]=i}),t}var UC=Math.log;function XU(e,t,n){var r=Su.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=tU(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=UC(e.base);u=[UC(u[0])/d,UC(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=PC(v),g=u[0]+v*o;else if(f)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=PC(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=PC(v));var b=v*o;g=Math.ceil(u[1]/v)*v,p=pr(g-b),p<0&&u[0]>=0?(p=0,g=pr(b)):g>0&&u[1]<=0&&(g=0,p=-pr(b))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(e,p+v*_,g+v*S),r.setInterval.call(e,v),(_||S)&&r.setNiceExtent.call(e,p+v,g-v)}var YBe=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kk,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=mn(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;yk(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(wf(p,v),yk(p)&&(s=h))}c.length&&(s||(s=c.pop(),wf(s.scale,s.model)),K(c,function(g){XU(g.scale,g.model,s.scale)}))}}a(r.x),a(r.y);var i={};K(r.x,function(o){l4(r,"y",o,i)}),K(r.y,function(o){l4(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=Br(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(K(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Y$e(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()),K(this._coordsList,function(u){u.calcAffineTransform()});function l(){K(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]),qBe(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]}Nt(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",Pr).models[0],a=t.yAxisModel||n&&n.getReferringComponents("yAxis",Pr).models[0],i=t.gridModel,o=this._coordsList,s,l;if(n)s=n.coordinateSystem,sn(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,K(s.x,function(c,f){K(s.y,function(d,h){var v="x"+f+"y"+h,p=new KBe(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(jC(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 jBe(c,Nm(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){K(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(o4(a)){var i=s4(a),o=i.xAxisModel,s=i.yAxisModel;if(!jC(o,n)||!jC(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){K(C1(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return K(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);sn(n,i)<0&&n.push(i),sn(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(o4(a)){var i=s4(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),r},e.dimensions=kk,e}();function jC(e,t){return e.getCoordSysModel()===t}function l4(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)u4(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&u4(a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function u4(e){return e&&e.type!=="category"&&e.type!=="time"&&j$e(e)}function qBe(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 XBe=YBe;var Zl=Math.PI,lf=function(){function e(t,n){this.group=new zt,this.opt=n,this.axisModel=t,Lt(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new zt({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!c4[t]},e.prototype.add=function(t){c4[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var a=SE(n-t),i,o;return Rg(a)?(o=r>0?"top":"bottom",i="center"):Rg(a-Zl)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Zl?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}(),c4={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&&(Jr(s,s,o),Jr(l,l,o));var c=Ge({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Gr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Ch(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"]);yt(d)&&(d=[d,d]),(yt(h)||kn(h))&&(h=[h,h]);var v=Rf(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];K([{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 _=Er(d[b],-p/2,-g/2,p,g,c.stroke,!0),S=m.r+m.offset,x=u?l:s;_.attr({rotation:m.rotate,x:x[0]+S*Math.cos(e.rotation),y:x[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),n.add(_)}})}}},axisTickLabel:function(e,t,n,r){var a=JBe(n,r,t,e),i=tVe(n,r,t,e);if(QBe(t,i,a),eVe(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=vU(et(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));mU(o)}},axisName:function(e,t,n,r){var a=Wr(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,d4(i)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Zl/180);var v;d4(i)?d=lf.innerTextLayout(e.rotation,h??e.rotation,o):(d=ZBe(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=Wr(e.nameTruncateMaxWidth,g.maxWidth,v),_=new Cn({x:f[0],y:f[1],rotation:d.rotation,silent:lf.isLabelSilent(t),style:Yn(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(jh({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=lf.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,Zt(_).eventData=S}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function ZBe(e,t,n,r){var a=SE(n-e),i,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return Rg(a-Zl/2)?(o=l?"bottom":"top",i="center"):Rg(a-Zl*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Zl*1.5&&a>Zl/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function QBe(e,t,n){if(!nU(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?(Mi(i),Mi(u)):f4(i,o)&&(r?(Mi(o),Mi(c)):(Mi(i),Mi(u))),a===!1?(Mi(s),Mi(f)):f4(l,s)&&(a?(Mi(l),Mi(d)):(Mi(s),Mi(f)))}}function Mi(e){e&&(e.ignore=!0)}function f4(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var a=xm([]);return Ou(a,a,-e.rotation),n.applyTransform(vs([],a,e.getLocalTransform())),r.applyTransform(vs([],a,t.getLocalTransform())),n.intersect(r)}}function d4(e){return e==="middle"||e==="center"}function ZU(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&&(Jr(o,o,t),Jr(s,s,t));var c=new Gr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Ch(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function JBe(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=ZU(u,t.transform,l,Lt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function eVe(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=Lt(s.getLineStyle(),Lt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=ZU(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function tVe(e,t,n,r){var a=n.axis,i=Wr(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=n.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Wr(r.labelRotate,o.get("rotate"))||0)*Zl/180,c=lf.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=lf.isLabelSilent(n),v=n.get("triggerEvent");return K(l,function(p,g){var m=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,b=p.formattedLabel,_=p.rawLabel,S=o;if(f&&f[m]){var x=f[m];Nt(x)&&x.textStyle&&(S=new Gn(x.textStyle,o,n.ecModel))}var C=S.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=a.dataToCoord(m),k=new Cn({x:w,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:Yn(S,{text:b,align:S.getShallow("align",!0)||c.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,fill:Et(C)?C(a.type==="category"?_:a.type==="value"?m+"":m,g):C})});if(k.anid="label_"+m,v){var M=lf.makeAxisEventDataBase(n);M.targetType="axisLabel",M.value=_,M.tickIndex=g,a.type==="category"&&(M.dataIndex=m),Zt(k).eventData=M}t.add(k),k.updateTransform(),d.push(k),e.add(k),k.decomposeTransform()}),d}}const sl=lf;function nVe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return rVe(n,e,t),n.seriesInvolved&&iVe(n,e),n}function rVe(e,t,n){var r=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];K(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Xg(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(K(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)&&K(v.baseAxes,Xt(p,h?"cross":!0,d)),h&&K(v.otherAxes,Xt(p,"cross",!1))}function p(g,m,b){var _=b.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Ak(_))){m==null&&(m=_.get("triggerTooltip")),_=g?aVe(b,f,a,t,g,m):_;var x=_.get("snap"),C=_.get("triggerEmphasis"),w=Xg(b.model),k=m||x||b.type==="category",M=e.axesInfo[w]={key:w,axis:b,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:C,involveSeries:k,snap:x,useHandle:Ak(_),seriesModels:[],linkGroup:null};u[w]=M,e.seriesInvolved=e.seriesInvolved||k;var I=oVe(i,b);if(I!=null){var E=o[I]||(o[I]={axesInfo:{}});E.axesInfo[w]=M,E.mapper=i[I].mapper,M.linkGroup=E}}}})}function aVe(e,t,n,r,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};K(s,function(d){l[d]=$t(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&&Lt(u,f.textStyle)}}return e.model.getModel("axisPointer",new Gn(l,n,r))}function iVe(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||K(e.coordSysAxesInfo[Xg(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 oVe(e,t){for(var n=t.model,r=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(YC(i[r+"AxisId"],n.id)||YC(i[r+"AxisIndex"],n.componentIndex)||YC(i[r+"AxisName"],n.name))return a}}function YC(e,t){return e==="all"||Xe(e)&&sn(e,t)>=0||e===t}function sVe(e){var t=PI(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=Ak(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 PI(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Xg(e)]}function lVe(e){var t=PI(e);return t&&t.axisPointerModel}function Ak(e){return!!e.get(["handle","show"])}function Xg(e){return e.type+"||"+e.id}var h4={},uVe=function(e){Ae(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&&sVe(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=lVe(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){h4[n]=r},t.getAxisPointerClass=function(n){return n&&h4[n]},t.type="axis",t}(sr);const Nf=uVe;var Ek=Mn();function QU(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=Ek(e).splitAreaColors,d=Mt(),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=Xe(s)?s:[s];for(var v=1;v<u.length;v++){var b=a.toGlobalCoord(u[v].coord),_=void 0,S=void 0,x=void 0,C=void 0;a.isHorizontal()?(_=g,S=l.y,x=b-_,C=l.height,g=_+x):(_=l.x,S=g,x=l.width,C=b-S,g=S+C);var w=u[v-1].tickValue;w!=null&&d.set(w,h),t.add(new xn({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:x,height:C},style:Lt({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}Ek(e).splitAreaColors=d}}}function JU(e){Ek(e).splitAreaColors=null}var cVe=["axisLine","axisTickLabel","axisName"],fVe=["splitArea","splitLine","minorSplitLine"],ej=function(e){Ae(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 zt,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=Mk(s,n),u=new sl(n,Ge({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(yk(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));K(cVe,u.add,u),this._axisGroup.add(u.getGroup()),K(fVe,function(f){n.get([f,"show"])&&dVe[f](this,this._axisGroup,n,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||Pm(o,this._axisGroup,n),e.prototype.render.call(this,n,r,a,i)}},t.prototype.remove=function(){JU(this)},t.type="cartesianAxis",t}(Nf),dVe={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=Xe(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 Gr({anid:b!=null?"line_"+f[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:Lt({stroke:s[m]},v),silent:!0});Ch(_.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 Gr({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});Ch(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){QU(e,t,n,r)}},tj=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t}(ej),hVe=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=tj.type,n}return t.type="yAxis",t}(ej),vVe=function(e){Ae(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 xn({shape:n.coordinateSystem.getRect(),style:Lt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(sr),v4={offset:0};function nj(e){e.registerComponentView(vVe),e.registerComponentModel(BBe),e.registerCoordinateSystem("cartesian2d",XBe),Mh(e,"x",Tk,v4),Mh(e,"y",Tk,v4),e.registerComponentView(tj),e.registerComponentView(hVe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function pVe(e){un(nj),e.registerSeriesModel(IBe),e.registerChartView(NBe),e.registerLayout(Fm("scatter"))}function gVe(e){e.eachSeriesByType("radar",function(t){var n=t.getData(),r=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();K(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]=p4(c)?c:g4(a)})}),n.each(function(o){var s=lG(r[o],function(l){return p4(l)})||g4(a);r[o].push(s.slice()),n.setItemLayout(o,r[o])})}})}function p4(e){return!isNaN(e[0])&&!isNaN(e[1])}function g4(e){return[e.cx,e.cy]}function mVe(e){var t=e.polar;if(t){Xe(t)||(t=[t]);var n=[];K(t,function(r,a){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),e.radar=e.radar||[],Xe(e.radar)||(e.radar=[e.radar]),e.radar.push(r)):n.push(r)}),e.polar=n}K(e.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var yVe=function(e){Ae(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=nv(d.getItemVisual(h,"symbolSize")),g=Er(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]),Lm[m?"initProps":"updateProps"](_,{x:h[b][0],y:h[b][1]},n,g)):_.setPosition(h[b]),v.add(_))}}function f(d){return et(d,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var v=new Wa,p=new Ka,g={shape:{points:h}};v.shape.points=f(h),p.shape.points=f(h),rr(v,g,n,d),rr(p,g,n,d);var m=new zt,b=new zt;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),No(g),No(p),In(p,b,n),In(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(Lt(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),ca(p,v,"lineStyle"),ca(g,v,"areaStyle");var S=v.getModel("areaStyle"),x=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=x,K(["emphasis","select","blur"],function(k){var M=v.getModel([k,"areaStyle"]),I=M.isEmpty()&&M.parentModel.isEmpty();g.ensureState(k).ignore=I&&x}),g.useStyle(Lt(S.getAreaStyle(),{fill:_,opacity:.7,decal:b.decal}));var C=v.getModel("emphasis"),w=C.getModel("itemStyle").getItemStyle();m.eachChild(function(k){if(k instanceof ea){var M=k.style;k.useStyle(Ge({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else k.useStyle(b),k.setColor(_),k.style.strokeNoScale=!0;var I=k.ensureState("emphasis");I.style=$t(w);var E=s.getStore().get(s.getDimensionIndex(k.__dimIdx),h);(E==null||isNaN(E))&&(E=""),fa(k,Yr(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:k.__dimIdx,defaultText:E,inheritColor:_,defaultOpacity:b.opacity})}),mr(d,C.get("focus"),C.get("blurScope"),C.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Un);const bVe=yVe;var _Ve=function(e){Ae(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 Hm(bt(this.getData,this),bt(this.getRawData,this))},t.prototype.getInitialData=function(n,r){return iv(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=q7(this,n);return qr("section",{header:u,sortBlocks:!0,blocks:et(s,function(f){var d=i.get(i.mapDimension(f.dim),n);return qr("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(et(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}(Jn);const wVe=_Ve;var Wv=qU.value;function c0(e,t){return Lt({show:t},e)}var SVe=function(e){Ae(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=et(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=Lt({color:v.color},l));var g=en($t(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(yt(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else Et(c)&&(g.name=c(g.name,g));var b=new Gn(g,null,this.ecModel);return Tr(b,av.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:en({lineStyle:{color:"#bbb"}},Wv.axisLine),axisLabel:c0(Wv.axisLabel,!1),axisTick:c0(Wv.axisTick,!1),splitLine:c0(Wv.splitLine,!0),splitArea:c0(Wv.splitArea,!0),indicator:[]},t}(wn);const CVe=SVe;var xVe=["axisLine","axisTickLabel","axisName"],TVe=function(e){Ae(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=et(a,function(o){var s=o.model.get("showName")?o.name:"",l=new sl(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});K(i,function(o){K(xVe,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=Xe(d)?d:[d],p=Xe(h)?h:[h],g=[],m=[];function b(z,F,B){var V=B%F.length;return z[V]=z[V]||[],V}if(i==="circle")for(var _=a[0].getTicksCoords(),S=r.cx,x=r.cy,C=0;C<_.length;C++){if(c){var w=b(g,v,C);g[w].push(new Oo({shape:{cx:S,cy:x,r:_[C].coord}}))}if(f&&C<_.length-1){var w=b(m,p,C);m[w].push(new Em({shape:{cx:S,cy:x,r0:_[C].coord,r:_[C+1].coord}}))}}else for(var k,M=et(a,function(z,F){var B=z.getTicksCoords();return k=k==null?B.length-1:Math.min(B.length-1,k),et(B,function(V){return r.coordToPoint(V.coord,F)})}),I=[],C=0;C<=k;C++){for(var E=[],D=0;D<a.length;D++)E.push(M[D][C]);if(E[0]&&E.push(E[0].slice()),c){var w=b(g,v,C);g[w].push(new Ka({shape:{points:E}}))}if(f&&I){var w=b(m,p,C-1);m[w].push(new Wa({shape:{points:E.concat(I)}}))}I=E.slice().reverse()}var P=l.getLineStyle(),N=u.getAreaStyle();K(m,function(z,F){this.group.add(hi(z,{style:Lt({stroke:"none",fill:p[F%p.length]},N),silent:!0}))},this),K(g,function(z,F){this.group.add(hi(z,{style:Lt({fill:"none",stroke:v[F%v.length]},P),silent:!0}))},this)},t.type="radar",t}(sr);const kVe=TVe;var MVe=function(e){Ae(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}(io);const AVe=MVe;var EVe=function(){function e(t,n,r){this.dimensions=[],this._model=t,this._indicatorAxes=et(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new AVe(o,new Su);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=ht(r[0],a),this.cy=ht(r[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(yt(s)||kn(s))&&(s=[0,s]),this.r0=ht(s[0],o),this.r=ht(s[1],o),K(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;K(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();K(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new Su;o.setExtent(0,i),o.setInterval(1),K(r,function(s,l){XU(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 IVe=EVe;function DVe(e){e.registerCoordinateSystem("radar",IVe),e.registerComponentModel(CVe),e.registerComponentView(kVe),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 PVe(e){un(DVe),e.registerChartView(bVe),e.registerSeriesModel(wVe),e.registerLayout(gVe),e.registerProcessor(zm("radar")),e.registerPreprocessor(mVe)}var m4="\0_ec_interaction_mutex";function LVe(e,t,n){var r=LI(e);r[t]=n}function RVe(e,t,n){var r=LI(e),a=r[t];a===n&&(r[t]=null)}function y4(e,t){return!!LI(e)[t]}function LI(e){return e[m4]||(e[m4]={})}zo({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Cr);var OVe=function(e){Ae(t,e);function t(n){var r=e.call(this)||this;r._zr=n;var a=bt(r._mousedownHandler,r),i=bt(r._mousemoveHandler,r),o=bt(r._mouseupHandler,r),s=bt(r._mousewheelHandler,r),l=bt(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=Lt($t(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(!YO(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||!mb("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||y4(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&&nl(n.event),rj(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:i,oldY:o,newX:r,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(n){YO(n)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(n){var r=mb("zoomOnMouseWheel",n,this._opt),a=mb("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;qC(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);qC(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!y4(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;qC(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t}(to);function qC(e,t,n,r,a){e.pointerChecker&&e.pointerChecker(r,a.originX,a.originY)&&(nl(r.event),rj(e,t,n,r,a))}function rj(e,t,n,r,a){a.isAvailableBehavior=bt(mb,null,n,r),e.trigger(t,a)}function mb(e,t,n){var r=n[e];return!e||r&&(!yt(r)||t.event[r+"Key"])}const Wm=OVe;function RI(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function OI(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 NVe={axisPointer:1,tooltip:1,brush:1};function ww(e,t,n){var r=t.getComponentByElement(e.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!NVe.hasOwnProperty(r.mainType)&&a&&a.model!==n}function aj(e){if(yt(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 XC,E1={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"},b4=mn(E1),I1={"alignment-baseline":"textBaseline","stop-color":"stopColor"},_4=mn(I1),$Ve=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=aj(t);this._defsUsePending=[];var a=new zt;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),ui(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;FVe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Sw(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=oj(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var h=a;a=new zt,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 xn({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=XC[s];if(c&&wt(XC,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=w4[s];if(h&&wt(w4,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 Ng({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ai(n,r),ui(t,r,this._defsUsePending,!1,!1),BVe(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(){XC={g:function(t,n){var r=new zt;return Ai(n,r),ui(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new xn;return Ai(n,r),ui(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 Oo;return Ai(n,r),ui(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 Gr;return Ai(n,r),ui(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 J_;return Ai(n,r),ui(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=x4(r));var i=new Wa({shape:{points:a||[]},silent:!0});return Ai(n,i),ui(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,n){var r=t.getAttribute("points"),a;r&&(a=x4(r));var i=new Ka({shape:{points:a||[]},silent:!0});return Ai(n,i),ui(t,i,this._defsUsePending,!1,!1),i},image:function(t,n){var r=new ea;return Ai(n,r),ui(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 zt;return Ai(n,s),ui(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 zt;return Ai(n,s),ui(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=R9(r);return Ai(n,a),ui(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),w4={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 Gh(t,n,r,a);return S4(e,i),C4(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 OE(t,n,r);return S4(e,a),C4(e,a),a}};function S4(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function C4(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={};ij(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function Ai(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Lt(t.__inheritedStyle,e.__inheritedStyle))}function x4(e){for(var t=Sw(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 ui(e,t,n,r,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(WVe(e,t),ij(e,o,s),r||GVe(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=T4(i,"fill",o.fill,n)),o.stroke!=null&&(i.style.stroke=T4(i,"stroke",o.stroke,n)),K(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),K(["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=et(Sw(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function BVe(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 VVe=/^url\(\s*#(.*?)\)/;function T4(e,t,n,r){var a=n&&n.match(VVe);if(a){var i=zi(a[1]);r.push([e,t,i]);return}return n==="none"&&(n=null),n}function FVe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var zVe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Sw(e){return e.match(zVe)||[]}var HVe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ZC=Math.PI/180;function WVe(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],a=null;n.replace(HVe,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=Sw(o);switch(a=a||wi(),s){case"translate":Lo(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":W_(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ou(a,a,-parseFloat(l[0])*ZC);break;case"skewX":var u=Math.tan(parseFloat(l[0])*ZC);vs(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*ZC);vs(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 k4=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ij(e,t,n){var r=e.getAttribute("style");if(r){k4.lastIndex=0;for(var a;(a=k4.exec(r))!=null;){var i=a[1],o=wt(E1,i)?E1[i]:null;o&&(t[o]=a[2]);var s=wt(I1,i)?I1[i]:null;s&&(n[s]=a[2])}}}function GVe(e,t,n){for(var r=0;r<b4.length;r++){var a=b4[r],i=e.getAttribute(a);i!=null&&(t[E1[a]]=i)}for(var r=0;r<_4.length;r++){var a=_4[r],i=e.getAttribute(a);i!=null&&(n[I1[a]]=i)}}function oj(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 KVe(e,t){var n=new $Ve;return n.parse(e,t)}var UVe=Mt(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),jVe=function(){function e(t,n){this.type="geoSVG",this._usedGraphicMap=Mt(),this._freedGraphics=[],this._mapName=t,this._parsedXML=aj(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=qVe(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&&KVe(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,Sa(r!=null)}catch(g){throw new Error(`Invalid svg format
 
- `+g.message)}var a=new zt;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 rn(u,c,f,d)}if(s){var v=oj(s,l);r.scaleX=r.scaleY=v.scale,r.x=v.x,r.y=v.y}a.setClipPath(new xn({shape:l.plain()}));var p=[];return K(n.named,function(g){UVe.get(g.svgNodeTagLower)!=null&&(p.push(g),YVe(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 YVe(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function qVe(e){var t=[],n=Mt();return K(e,function(r){if(r.namedFrom==null){var a=new o3e(r.name,r.el);t.push(a),n.set(r.name,a)}}),{regions:t,regionsMap:n}}var Ik=[126,25],M4="南海诸岛",wc=[[[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 mc=0;mc<wc.length;mc++)for(var od=0;od<wc[mc].length;od++)wc[mc][od][0]/=10.5,wc[mc][od][1]/=-10.5/.75,wc[mc][od][0]+=Ik[0],wc[mc][od][1]+=Ik[1];function XVe(e,t){if(e==="china"){for(var n=0;n<t.length;n++)if(t[n].name===M4)return;t.push(new aU(M4,et(wc,function(r){return{type:"polygon",exterior:r}}),Ik))}}var ZVe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function QVe(e,t){if(e==="china"){var n=ZVe[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 JVe=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function e5e(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:JVe[0]})}var t5e="name",n5e=function(){function e(t,n,r){this.type="geoJSON",this._parsedMap=Mt(),this._mapName=t,this._specialAreas=r,this._geoJSON=a5e(n)}return e.prototype.load=function(t,n){n=n||t5e;var r=this._parsedMap.get(n);if(!r){var a=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:a,boundingRect:r5e(a)})}var i=Mt(),o=[];return K(r.regions,function(s){var l=s.name;t&&wt(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new rn(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var n=this._mapName,r=this._geoJSON,a;try{a=r?_k(r,t):[]}catch(i){throw new Error(`Invalid geoJson format
 
- `+i.message)}return XVe(n,a),K(a,function(i){var o=i.name;QVe(n,i),e5e(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 r5e(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 a5e(e){return yt(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Gv=Mt();const ll={registerMap:function(e,t,n){if(t.svg){var r=new jVe(e,t.svg);Gv.set(e,r)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?n=t.specialAreas:a=t;var r=new n5e(e,a,n);Gv.set(e,r)}},getGeoResource:function(e){return Gv.get(e)},getMapForUser:function(e){var t=Gv.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,n){var r=Gv.get(e);if(r)return r.load(t,n)}};var NI=["rect","circle","line","ellipse","polygon","polyline","path"],i5e=Mt(NI),o5e=Mt(NI.concat(["g"])),s5e=Mt(NI.concat(["g"])),sj=Mn();function f0(e){var t=e.getItemStyle(),n=e.get("areaColor");return n!=null&&(t.fill=n),t}function A4(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var l5e=function(){function e(t){var n=new zt;this.uid=qh("ec_map_draw"),this._controller=new Wm(t.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new zt),n.add(this._svgGroup=new zt)}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()):In(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=Mt(),r=Mt(),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(),K(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 zt),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 _=[],S=[];K(h.geometries,function(w){if(w.type==="polygon"){var k=[w.exterior].concat(w.interiors||[]);u&&(k=R4(k,u)),K(k,function(I){_.push(new Wa(d(I)))})}else{var M=w.points;u&&(M=R4(M,u,!0)),K(M,function(I){S.push(new Ka(d(I)))})}});var x=c(h.getCenter(),l&&l.project);function C(w,k){if(w.length){var M=new tw({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});p.add(M),E4(t,M,m,b),I4(t,M,v,b,o,m,x),k&&(A4(M),K(M.states,A4))}}C(_),C(S,!0)}),n.each(function(h,v){var p=r.get(v),g=p.dataIdx,m=p.regionModel;D4(t,h,v,m,o,g),P4(t,h,v,m,o),L4(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=Mt(),i=!1;K(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(i5e.get(c)!=null&&f instanceof eo&&E4(t,f,d,h),f instanceof eo&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(s5e.get(c)!=null&&I4(t,f,s,h,l,d,null),D4(t,f,s,h,l,d),P4(t,f,s,h,l),o5e.get(c)!=null)){var v=L4(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){bf(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=ll.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=ll.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,RI(o,u.dx,u.dy),r.dispatchAction(Ge(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,OI(o,u.scale,u.originX,u.originY),r.dispatchAction(Ge(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])&&!ww(u,r,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var n=t.getTextContent();n&&(n.ignore=sj(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 E4(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=f0(a),u=f0(i),c=f0(s),f=f0(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=Th(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,bf(t)}function I4(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;fa(t,Yr(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var v=t.getTextContent();if(v&&(sj(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 D4(e,t,n,r,a,i){e.data?e.data.setItemGraphicEl(i,t):Zt(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function P4(e,t,n,r,a){e.data||jh({el:t,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function L4(e,t,n,r,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return mr(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&XPe(t,a,n),o}function R4(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(),K(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 lj=l5e;var u5e=function(e){Ae(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 lj(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 Oo({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Wh+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);fa(d,Yr(g),{labelFetcher:{getFormattedLabel:function(_,S){return n.getFormattedLabel(p,S)}},defaultText:v}),d.disableLabelAnimation=!0,m.get("position")||d.setTextConfig({position:"bottom"}),b.onHoverStateChange=function(_){o1(d,_)}}o.add(d)}}})},t.type="map",t}(Un);const c5e=u5e;var f5e=function(e){Ae(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=iv(this,{coordDimensions:["value"],encodeDefaulter:Xt(XE,this)}),a=Mt(),i=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);a.set(l,!0)}var u=ll.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return K(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 qr("section",{header:u.join(", "),noHeader:!u.length,blocks:[qr("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=Er(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}(Jn);const d5e=f5e;function h5e(e,t){var n={};return K(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 v5e(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)}),K(t,function(n,r){for(var a=h5e(et(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 p5e(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var a={};K(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 O4=Jr,g5e=function(e){Ae(t,e);function t(n){var r=e.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Us,r._rawTransformable=new Us,r.name=n,r}return t.prototype.setBoundingRect=function(n,r,a,i){return this._rect=new rn(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 rn(n,r,a,i)},t.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new rn(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=[ht(n[0],r.getWidth()),ht(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=Jr([],i,n),a=Jr([],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(),H_(this.transform||(this.transform=[]),r.transform||wi()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],Df(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,a=new Us;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?O4(a,n,i):ga(a,n)},t.prototype.pointToData=function(n){var r=this.invTransform;return r?O4([],n,r):[n[0],n[1]]},t.prototype.convertToPixel=function(n,r,a){var i=N4(r);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var i=N4(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}(Us);function N4(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const Gm=g5e;var m5e={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},uj=["lng","lat"],cj=function(e){Ae(t,e);function t(n,r,a){var i=e.call(this,n)||this;i.dimensions=uj,i.type="geo",i._nameCoordMap=Mt(),i.map=r;var o=a.projection,s=ll.load(r,a.nameMap,a.nameProperty),l=ll.getGeoResource(r);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=m5e[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:nn(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 rn(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(yt(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=$4(r);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var i=$4(r);return i===this?i.pointToData(a):null},t}(Gm);Tr(cj,Gm);function $4(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Pr).models[0]||{}).coordinateSystem:null}const B4=cj;function V4(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(C,w,k,M){for(var I=k-C,E=M-w,D=0;D<=100;D++){var P=D/100,N=i.project([C+I*P,w+E*P]);Gs(r,r,N),Ks(a,a,N)}};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=[ht(d[0],v),ht(d[1],p)],_=ht(h,Math.min(v,p)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(_)&&(m=!0));var S;if(m)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var x=e.getBoxLayoutParams();x.aspect=g,S=Br(x,{width:v,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function y5e(e,t){K(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var b5e=function(){function e(){this.dimensions=uj}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 B4(l+s,l,Ge({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=V4,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)}}),K(i,function(o,s){var l=et(o,function(c){return c.get("nameMap")}),u=new B4(s,s,Ge({nameMap:V_(l)},a(o[0])));u.zoomLimit=Wr.apply(null,et(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=V4,u.resize(o[0],n),K(o,function(c){c.coordinateSystem=u,y5e(u,c)})}),r},e.prototype.getFilledRegions=function(t,n,r,a){for(var i=(t||[]).slice(),o=Mt(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ll.load(n,r,a);return K(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},e}(),_5e=new b5e;const fj=_5e;var w5e=function(e){Ae(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=ll.getGeoResource(n.map);if(i&&i.type==="geoJSON"){var o=n.itemStyle=n.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(n,a),gf(n,"label",["show"])},t.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=fj.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var a={};this._optionModelMap=Ji(r.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Gn(o,n,n.ecModel)),o.selected&&(a[s]=!0)),i},Mt()),r.selectedMap||(r.selectedMap=a)},t.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new Gn(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(Et(i))return o.status=r,i(o);if(yt(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}(wn);const S5e=w5e;function F4(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function $I(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(F4(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(F4(e,s),r),e.setZoom(o*a)}return{center:e.getCenter(),zoom:e.getZoom()}}var C5e=function(e){Ae(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 lj(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;Uc(n.target,function(a){return(r=Zt(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=Zt(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}(sr);const x5e=C5e;function T5e(e,t,n){ll.registerMap(e,t,n)}function dj(e){e.registerCoordinateSystem("geo",fj),e.registerComponentModel(S5e),e.registerComponentView(x5e),e.registerImpl("registerMap",T5e),e.registerImpl("getMap",function(n){return ll.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;K(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];K(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=$I(s,n,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&K(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function k5e(e){un(dj),e.registerChartView(c5e),e.registerSeriesModel(d5e),e.registerLayout(p5e),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,v5e),sK("map",e.registerAction)}function M5e(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 A5e(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){D5e(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=P5e(e,a,e.parentNode.hierNode.defaultAncestor||r[0],t)}function E5e(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function z4(e){return arguments.length?e:O5e}function fp(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function I5e(e,t){return Br(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function D5e(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 P5e(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=QC(s),i=JC(i),s&&i;){a=QC(a),o=JC(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(R5e(L5e(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&&!QC(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!JC(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=e)}return n}function QC(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function JC(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function L5e(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function R5e(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 O5e(e,t){return e.parentNode===t.parentNode?1:2}var N5e=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),$5e=function(e){Ae(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 N5e},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=ht(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}(dn),B5e=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new zt,n}return t.prototype.init=function(n,r){this._controller=new Wm(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){H4(i,c)&&W4(i,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!H4(i,c)){d&&K4(u,f,d,s,n);return}W4(i,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&K4(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=[];X_(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 Gm;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)&&!ww(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){RI(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){OI(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}(Un);function H4(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function W4(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 Bm(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,In(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,S=void 0,x=void 0;if(p.x===b.x&&o.isExpand===!0&&m.children.length){var C={x:(m.children[0].getLayout().x+m.children[_-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[_-1].getLayout().y)/2};S=Math.atan2(C.y-b.y,C.x-b.x),S<0&&(S=Math.PI*2+S),x=C.x<b.x,x&&(S=S-Math.PI)}else S=Math.atan2(p.y-b.y,p.x-b.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=p.x<b.x,x&&(S=S-Math.PI)):(x=p.x>b.x,x||(S=S-Math.PI));var w=x?"left":"right",k=s.getModel("label"),M=k.get("rotate"),I=M*(Math.PI/180),E=g.getTextContent();E&&(g.setTextConfig({position:k.get("position")||w,rotation:M==null?-S:I,origin:"center"}),E.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),P=D==="relative"?Mg(o.getAncestorsIndices(),o.getDescendantIndices()):D==="ancestor"?o.getAncestorsIndices():D==="descendant"?o.getDescendantIndices():null;P&&(Zt(n).focus=P),V5e(a,o,c,n,v,h,p,r),n.__edge&&(n.onHoverStateChange=function(N){if(N!=="blur"){var z=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);z&&z.hoverState===Am||o1(n.__edge,N)}})}function V5e(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 Im({shape:Dk(c,f,d,a,a)})),In(p,{shape:Dk(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 $5e({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),In(p,{shape:{parentPoint:[o.x,o.y],childPoints:m}},e)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(Lt({strokeNoScale:!0,fill:null},v)),ca(p,l,"lineStyle"),bf(p),s.add(p))}function G4(e,t,n,r,a){var i=t.tree.root,o=hj(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"?_u(d,{shape:Dk(v,p,g,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}):h==="polyline"&&r.get("layout")==="orthogonal"&&_u(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}))}}function hj(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 K4(e,t,n,r,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=hj(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};_u(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){G4(u,e,r,a,l)}),G4(i,e,r,a,l)}function Dk(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=fp(u,f),v=fp(u,f+(d-f)*n),p=fp(c,d+(f-d)*n),g=fp(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 F5e=B5e;var Gi=Mn();function vj(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,pj(t,n,e),K(n,function(r){K(t.TRANSFERABLE_METHODS,function(a){r.wrapMethod(a,Xt(z5e,e))})}),t.wrapMethod("cloneShallow",Xt(W5e,e)),K(t.CHANGABLE_METHODS,function(r){t.wrapMethod(r,Xt(H5e,e))}),Sa(n[t.dataType]===t)}function z5e(e,t){if(U5e(this)){var n=Ge({},Gi(this).datas);n[this.dataType]=t,pj(t,n,e)}else BI(t,this.dataType,Gi(this).mainData,e);return t}function H5e(e,t){return e.struct&&e.struct.update(),t}function W5e(e,t){return K(Gi(t).datas,function(n,r){n!==t&&BI(n.cloneShallow(),r,t,e)}),t}function G5e(e){var t=Gi(this).mainData;return e==null||t==null?t:Gi(t).datas[e]}function K5e(){var e=Gi(this).mainData;return e==null?[{data:e}]:et(mn(Gi(e).datas),function(t){return{type:t,data:Gi(e).datas[t]}})}function U5e(e){return Gi(e).mainData===e}function pj(e,t,n){Gi(e).datas={},K(t,function(r,a){BI(r,a,e,n)})}function BI(e,t,n,r){Gi(n).datas[t]=e,Gi(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=G5e,e.getLinkedDataAll=K5e}var j5e=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){Et(t)&&(r=n,n=t,t=null),t=t||{},yt(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}(),Y5e=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,Xe(d)?d.length:1),i.push(c);var h=new j5e(Fr(c.name,""),a);f?q5e(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=rv(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new _a(l,n);return u.initData(i),r&&r(u),vj({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function q5e(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}const VI=Y5e;function Zg(e,t,n){if(e&&sn(t,e.type)>=0){var r=n.getData().tree.root,a=e.targetNode;if(yt(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 gj(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function FI(e,t){var n=gj(e);return sn(n,t)>=0}function Cw(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 X5e=function(e){Ae(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 Gn(a,this,this.ecModel),o=VI.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 qr("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=Cw(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}(Jn);const Z5e=X5e;function Q5e(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 Kv(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 J5e(e,t){e.eachSeriesByType("tree",function(n){eFe(n,t)})}function eFe(e,t){var n=I5e(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=z4(function(_,S){return(_.parentNode===S.parentNode?1:2)/_.depth})):(a=n.width,i=n.height,o=z4());var s=e.getData().tree.root,l=s.children[0];if(l){M5e(s),Q5e(l,A5e,o),s.hierNode.modifier=-l.hierNode.prelim,Kv(l,E5e);var u=l,c=l,f=l;Kv(l,function(_){var S=_.getLayout().x;S<u.getLayout().x&&(u=_),S>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),Kv(l,function(_){g=(_.getLayout().x+h)*v,m=(_.depth-1)*p;var S=fp(g,m);_.setLayout({x:S.x,y:S.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),Kv(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),Kv(l,function(_){g=(_.getLayout().x+h)*v,m=b==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y:m},!0)}))}}}function tFe(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");Ge(s,o)})})}function nFe(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=$I(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function rFe(e){e.registerChartView(F5e),e.registerSeriesModel(Z5e),e.registerLayout(J5e),e.registerVisual(tFe),nFe(e)}var U4=["treemapZoomToNode","treemapRender","treemapMove"];function aFe(e){for(var t=0;t<U4.length;t++)e.registerAction({type:U4[t],update:"updateView"},Cr);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=Zg(n,s,i);if(l){var u=i.getViewRoot();u&&(n.direction=FI(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function mj(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=ik(e.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var iFe=function(e){Ae(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};yj(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new Gn({itemStyle:o},this,r);i=n.levels=oFe(i,r);var l=et(i||[],function(f){return new Gn(f,s,r)},this),u=VI.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 qr("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=Cw(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},Ge(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Mt(),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(){mj(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}(Jn);function yj(e){var t=0;K(e.children,function(r){yj(r);var a=r.value;Xe(a)&&(a=a[0]),t+=a});var n=e.value;Xe(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Xe(e.value)?e.value[0]=n:e.value=n}function oFe(e,t){var n=Kn(t.get("color")),r=Kn(t.get(["aria","decal","decals"]));if(n){e=e||[];var a,i;K(e,function(s){var l=new Gn(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 sFe=iFe;var lFe=8,j4=8,ex=5,uFe=function(){function e(t){this.group=new zt,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),uw(o,f.pos,f.box)}},e.prototype._prepare=function(t,n,r){for(var a=t;a;a=a.parentNode){var i=Fr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+lFe*2,n.emptyItemWidth);n.totalWidth+=s+j4,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=rRe(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 S=new Wa({shape:{points:cFe(l,0,b,c,p===h.length-1,p===0)},style:Lt(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Cn({style:Yn(i,{text:_})}),textConfig:{position:"inside"},z2:Wh*1e4,onclick:Xt(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=Yn(o,{text:_}),S.ensureState("emphasis").style=v,mr(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),fFe(S,t,m),l+=b+j4}},e.prototype.remove=function(){this.group.removeAll()},e}();function cFe(e,t,n,r,a,i){var o=[[a?e:e-ex,t],[e+n,t],[e+n,t+r],[a?e:e-ex,t+r]];return!i&&o.splice(2,0,[e+n+ex,t+r/2]),!a&&o.push([e,t+r/2]),o}function fFe(e,t,n){Zt(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&&Cw(n,t)}}const dFe=uFe;var hFe=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 vFe(){return new hFe}var Pk=zt,Y4=xn,q4=3,X4="label",Z4="upperLabel",pFe=Wh*10,gFe=Wh*2,mFe=Wh*3,Sc=yf([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),Q4=function(e){var t=Sc(e);return t.stroke=t.fill=t.lineWidth=null,t},D1=Mn(),yFe=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=Uv(),n}return t.prototype.render=function(n,r,a,i){var o=r.findComponents({mainType:"series",subType:"treemap",query:i});if(!(sn(o,n)<0)){this.seriesModel=n,this.api=a,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=Zg(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 Pk,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=Uv(),l=Uv(),u=this._storage,c=[];function f(g,m,b,_){return bFe(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,_,S){_?(m=g,K(g,function(w,k){!w.isRemoved()&&C(k,k)})):new il(m,g,x,x).add(C).update(C).remove(Xt(C,null)).execute();function x(w){return w.getId()}function C(w,k){var M=w!=null?g[w]:null,I=k!=null?m[k]:null,E=f(M,I,b,S);E&&h(M&&M.viewChildren||[],I&&I.viewChildren||[],E,_,S+1)}}function v(g){var m=Uv();return g&&K(g,function(b,_){var S=m[_];K(b,function(x){x&&(S.push(x),D1(x).willDelete=!0)})}),m}function p(){K(d,function(g){K(g,function(m){m.parent&&m.parent.remove(m)})}),K(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=(Et(o)?0:o)||0,u=(Et(s)?null:s)||"cubicOut",c=vFe();K(r.willDeleteEls,function(f,d){K(f,function(h,v){if(!h.invisible){var p=h.parent,g,m=D1(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)}})}),K(this._storage,function(f,d){K(f,function(h,v){var p=r.lastsForAnimation[d][v],g={};p&&(h instanceof zt?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=Ge({},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(bt(function(){this._state="ready",r.renderFinally()},this)).start()},t.prototype._resetController=function(n){var r=this._controller;r||(r=this._controller=new Wm(n.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",bt(this._onPan,this)),r.on("zoom",bt(this._onZoom,this)));var a=new rn(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)>q4||Math.abs(n.dy)>q4)){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 rn(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=wi();Lo(u,u,[-r,-a]),W_(u,u,[n.scale,n.scale]),Lo(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&&d1(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 dFe(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(FI(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Uv(),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}(Un);function Uv(){return{nodeGroup:[],background:[],content:[]}}function bFe(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,S=c.upperHeight,x=_&&_.length,C=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),k=d.getModel(["blur","itemStyle"]),M=d.getModel(["select","itemStyle"]),I=C.get("borderRadius")||0,E=de("nodeGroup",Pk);if(!E)return;if(l.add(E),E.x=c.x||0,E.y=c.y||0,E.markRedraw(),D1(E).nodeWidth=h,D1(E).nodeHeight=v,c.isAboveViewRoot)return E;var D=de("background",Y4,u,gFe);D&&L(E,D,x&&c.upperLabelHeight);var P=d.getModel("emphasis"),N=P.get("focus"),z=P.get("blurScope"),F=P.get("disabled"),B=N==="ancestor"?o.getAncestorsIndices():N==="descendant"?o.getDescendantIndices():N;if(x)Bg(E)&&Gc(E,!1),D&&(Gc(D,!F),f.setItemGraphicEl(o.dataIndex,D),ZT(D,B,z));else{var V=de("content",Y4,u,mFe);V&&G(E,V),D.disableMorphing=!0,D&&Bg(D)&&Gc(D,!1),Gc(E,!F),f.setItemGraphicEl(o.dataIndex,E),ZT(E,B,z)}return E;function L(le,ne,Ce){var Te=Zt(ne);if(Te.dataIndex=o.dataIndex,Te.seriesIndex=e.seriesIndex,ne.setShape({x:0,y:0,width:h,height:v,r:I}),g)q(ne);else{ne.invisible=!1;var he=o.getVisual("style"),X=he.stroke,ae=Q4(C);ae.fill=X;var ge=Sc(w);ge.fill=w.get("borderColor");var ke=Sc(k);ke.fill=k.get("borderColor");var Pe=Sc(M);if(Pe.fill=M.get("borderColor"),Ce){var Me=h-2*p;Q(ne,X,he.opacity,{x:p,y:0,width:Me,height:S})}else ne.removeTextContent();ne.setStyle(ae),ne.ensureState("emphasis").style=ge,ne.ensureState("blur").style=ke,ne.ensureState("select").style=Pe,bf(ne)}le.add(ne)}function G(le,ne){var Ce=Zt(ne);Ce.dataIndex=o.dataIndex,Ce.seriesIndex=e.seriesIndex;var Te=Math.max(h-2*p,0),he=Math.max(v-2*p,0);if(ne.culling=!0,ne.setShape({x:p,y:p,width:Te,height:he,r:I}),g)q(ne);else{ne.invisible=!1;var X=o.getVisual("style"),ae=X.fill,ge=Q4(C);ge.fill=ae,ge.decal=X.decal;var ke=Sc(w),Pe=Sc(k),Me=Sc(M);Q(ne,ae,X.opacity,null),ne.setStyle(ge),ne.ensureState("emphasis").style=ke,ne.ensureState("blur").style=Pe,ne.ensureState("select").style=Me,bf(ne)}le.add(ne)}function q(le){!le.invisible&&i.push(le)}function Q(le,ne,Ce,Te){var he=d.getModel(Te?Z4:X4),X=Fr(d.get("name"),null),ae=he.getShallow("show");fa(le,Yr(d,Te?Z4:X4),{defaultText:ae?X:null,inheritColor:ne,defaultOpacity:Ce,labelFetcher:e,labelDataIndex:o.dataIndex});var ge=le.getTextContent();if(ge){var ke=ge.style,Pe=z_(ke.padding||0);Te&&(le.setTextConfig({layoutRect:Te}),ge.disableLabelLayout=!0),ge.beforeUpdate=function(){var ze=Math.max((Te?Te.width:le.shape.width)-Pe[1]-Pe[3],0),Oe=Math.max((Te?Te.height:le.shape.height)-Pe[0]-Pe[2],0);(ke.width!==ze||ke.height!==Oe)&&ge.setStyle({width:ze,height:Oe})},ke.truncateMinChar=2,ke.lineOverflow="truncate",ie(ke,Te,c);var Me=ge.getState("emphasis");ie(Me?Me.style:null,Te,c)}}function ie(le,ne,Ce){var Te=le?le.text:null;if(!ne&&Ce.isLeafRoot&&Te!=null){var he=e.get("drillDownIcon",!0);le.text=he?he+" "+Te:Te}}function de(le,ne,Ce,Te){var he=b!=null&&n[le][b],X=a[le];return he?(n[le][b]=null,oe(X,he)):g||(he=new ne,he instanceof eo&&(he.z2=_Fe(Ce,Te)),se(X,he)),t[le][m]=he}function oe(le,ne){var Ce=le[m]={};ne instanceof Pk?(Ce.oldX=ne.x,Ce.oldY=ne.y):Ce.oldShape=Ge({},ne.shape)}function se(le,ne){var Ce=le[m]={},Te=o.parentNode,he=ne instanceof zt;if(Te&&(!r||r.direction==="drillDown")){var X=0,ae=0,ge=a.background[Te.getRawIndex()];!r&&ge&&ge.oldShape&&(X=ge.oldShape.width,ae=ge.oldShape.height),he?(Ce.oldX=0,Ce.oldY=ae):Ce.oldShape={x:X,y:ae,width:0,height:0}}Ce.fadein=!he}}function _Fe(e,t){return e*pFe+t}const wFe=yFe;var Qg=K,SFe=Nt,P1=-1,zI=function(){function e(t){var n=t.mappingMethod,r=t.type,a=this.option=$t(t);this.type=r,this.mappingMethod=n,this._normalizeData=TFe[n];var i=e.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(tx(a),CFe(a)):n==="category"?a.categories?xFe(a):tx(a,!0):(Sa(n!=="linear"||a.dataExtent),tx(a))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return bt(this._normalizeData,this)},e.listVisualTypes=function(){return mn(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){Nt(t)?K(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var a,i=Xe(t)?[]:Nt(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&&Qg(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(Xe(t))t=t.slice();else if(SFe(t)){var n=[];Qg(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||yt(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(h0(f[1],t,c[1]))return o}else if(c[1]===1/0){if(h0(f[0],c[0],t))return o}else if(h0(f[0],c[0],t)&&h0(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:jv("color"),getColorMapper:function(){var t=this.option;return bt(t.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),dp.call(this,n)}:function(n,r,a){var i=!!a;return!r&&(n=this._normalizeData(n)),a=Lp(n,t.parsedVisual,a),i?a:Eo(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Eo(Lp(t,this.option.parsedVisual),"rgba")},category:dp,piecewise:function(t,n){var r=Rk.call(this,n);return r==null&&(r=Eo(Lp(t,this.option.parsedVisual),"rgba")),r},fixed:Cc}},colorHue:d0(function(t,n){return Ud(t,n)}),colorSaturation:d0(function(t,n){return Ud(t,null,n)}),colorLightness:d0(function(t,n){return Ud(t,null,null,n)}),colorAlpha:d0(function(t,n){return Dg(t,n)}),decal:{applyVisual:jv("decal"),_normalizedToVisual:{linear:null,category:dp,piecewise:null,fixed:null}},opacity:{applyVisual:jv("opacity"),_normalizedToVisual:Lk([0,1])},liftZ:{applyVisual:jv("liftZ"),_normalizedToVisual:{linear:Cc,category:Cc,piecewise:Cc,fixed:Cc}},symbol:{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("symbol",a)},_normalizedToVisual:{linear:J4,category:dp,piecewise:function(t,n){var r=Rk.call(this,n);return r==null&&(r=J4.call(this,t)),r},fixed:Cc}},symbolSize:{applyVisual:jv("symbolSize"),_normalizedToVisual:Lk([0,1])}},e}();function CFe(e){var t=e.pieceList;e.hasSpecialVisual=!1,K(t,function(n,r){n.originIndex=r,n.visual!=null&&(e.hasSpecialVisual=!0)})}function xFe(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(Qg(t,function(o,s){n[o]=s}),!Xe(r)){var a=[];Nt(r)?Qg(r,function(o,s){var l=n[s];a[l??P1]=o}):a[P1]=r,r=bj(e,a)}for(var i=t.length-1;i>=0;i--)r[i]==null&&(delete n[t[i]],t.pop())}function tx(e,t){var n=e.visual,r=[];Nt(n)?Qg(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]),bj(e,r)}function d0(e){return{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("color",e(n("color"),a))},_normalizedToVisual:Lk([0,1])}}function J4(e){var t=this.option.visual;return t[Math.round($n(e,[0,1],[0,t.length-1],!0))]||{}}function jv(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function dp(e){var t=this.option.visual;return t[this.option.loop&&e!==P1?e%t.length:e]}function Cc(){return this.option.visual[0]}function Lk(e){return{linear:function(t){return $n(t,e,this.option.visual,!0)},category:dp,piecewise:function(t,n){var r=Rk.call(this,n);return r==null&&(r=$n(t,e,this.option.visual,!0)),r},fixed:Cc}}function Rk(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=zI.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function bj(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=et(t,function(n){var r=Na(n);return r||[0,0,0,1]})),t}var TFe={linear:function(e){return $n(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=zI.findPieceIndex(e,t,!0);if(n!=null)return $n(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??P1},fixed:Cr};function h0(e,t,n){return e?t<=n:t<n}const sa=zI;var kFe="itemStyle",_j=Mn();const MFe={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||wj(n,{},e.getViewRoot().getAncestors(),e)}};function wj(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(kFe),l=AFe(s,t,r),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=eB(l),c=EFe(f,d)),u.stroke=c;var h=e.viewChildren;if(!h||!h.length)d=eB(l),u.fill=d;else{var v=IFe(e,a,i,s,l,h);K(h,function(p,g){if(p.depth>=n.length||p===n[p.depth]){var m=DFe(a,l,p,g,v,r);wj(p,m,n,r)}})}}}function AFe(e,t,n){var r=Ge({},t),a=n.designatedVisualItemStyle;return K(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function eB(e){var t=nx(e,"color");if(t){var n=nx(e,"colorAlpha"),r=nx(e,"colorSaturation");return r&&(t=Ud(t,null,null,r)),n&&(t=Dg(t,n)),t}}function EFe(e,t){return t!=null?Ud(t,null,null,e):null}function nx(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function IFe(e,t,n,r,a,i){if(!(!i||!i.length)){var o=rx(t,"color")||a.color!=null&&a.color!=="none"&&(rx(t,"colorAlpha")||rx(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 sa(f);return _j(d).drColorMappingBy=c,d}}}function rx(e,t){var n=e.get(t);return Xe(n)&&n.length?{name:t,range:n}:null}function DFe(e,t,n,r,a,i){var o=Ge({},t);if(a){var s=a.type,l=s==="color"&&_j(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 Jg=Math.max,L1=Math.min,tB=Wr,HI=K,Sj=["itemStyle","borderWidth"],PFe=["itemStyle","gapWidth"],LFe=["upperLabel","show"],RFe=["upperLabel","height"];const OFe={seriesType:"treemap",reset:function(e,t,n,r){var a=n.getWidth(),i=n.getHeight(),o=e.option,s=Br(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=ht(tB(s.width,l[0]),a),c=ht(tB(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],h=Zg(r,d,e),v=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,p=e.getViewRoot(),g=gj(p);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?zFe(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 S={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(S),Cj(p,_,!1,0),S=p.getLayout(),HI(g,function(C,w){var k=(g[w+1]||p).getValue();C.setLayout(Ge({dataExtent:[k,k],borderWidth:0,upperHeight:0},S))})}var x=e.getData().tree.root;x.setLayout(HFe(s,v,h),!0),e.setLayoutInfo(s),xj(x,new rn(-s.x,-s.y,a,i),g,p,0)}};function Cj(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(Sj),u=s.get(PFe)/2,c=Tj(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=Jg(a-2*d,0),i=Jg(i-d-h,0);var v=a*i,p=NFe(e,s,v,t,n,r);if(p.length){var g={x:d,y:h,width:a,height:i},m=L1(a,i),b=1/0,_=[];_.area=0;for(var S=0,x=p.length;S<x;){var C=p[S];_.push(C),_.area+=C.getLayout().area;var w=FFe(_,m,t.squareRatio);w<=b?(S++,b=w):(_.area-=_.pop().getLayout().area,nB(_,m,g,u,!1),m=L1(g.width,g.height),_.length=_.area=0,b=1/0)}if(_.length&&nB(_,m,g,u,!0),!n){var k=s.get("childrenVisibleMin");k!=null&&v<k&&(n=!0)}for(var S=0,x=p.length;S<x;S++)Cj(p[S],t,n,r+1)}}}function NFe(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=Bn(o,function(h){return!h.isRemoved()}),BFe(o,s);var u=VFe(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=$Fe(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 $Fe(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 BFe(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 VFe(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],HI(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 FFe(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?Jg(u*r/l,l/(u*a)):1/0}function nB(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]]=Jg(c-2*r,0),m=n[s[i]]+n[l[i]]-u,b=f===d-1||m<p?m:p,_=v[l[i]]=Jg(b-2*r,0);v[s[o]]=n[s[o]]+L1(r,g/2),v[s[i]]=u+L1(r,_/2),u+=b,h.setLayout(v,!0)}n[s[o]]+=c,n[l[o]]-=c}function zFe(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(Sj),m=Math.max(g,Tj(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>HT&&(u=HT),i=s}u<l&&(u=l);var b=Math.pow(u/l,.5);return[r*b,a*b]}function HFe(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 xj(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 rn(t.x-i.x,t.y-i.y,t.width,t.height);HI(e.viewChildren||[],function(u){xj(u,l,n,r,a+1)})}}function Tj(e){return e.get(LFe)?e.get(RFe):0}function WFe(e){e.registerSeriesModel(sFe),e.registerChartView(wFe),e.registerVisual(MFe),e.registerLayout(OFe),aFe(e)}function GFe(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){kn(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function KFe(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){yt(l)&&(l=i["ec-"+l]);var u=r.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");Ge(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 v0(e){return e instanceof Array||(e=[e,e]),e}function UFe(e){e.eachSeriesByType("graph",function(t){var n=t.getGraph(),r=t.getEdgeData(),a=v0(t.get("edgeSymbol")),i=v0(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=v0(s.getShallow("symbol",!0)),c=v0(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(o,"style");switch(Ge(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 Ok="-->",xw=function(e){return e.get("autoCurveness")||null},kj=function(e,t){var n=xw(e),r=20,a=[];if(kn(n))r=n;else if(Xe(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},em=function(e,t,n){var r=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[n.uid,r,a].join(Ok)},Mj=function(e){var t=e.split(Ok);return[t[0],t[2],t[1]].join(Ok)},jFe=function(e,t){var n=em(e.node1,e.node2,t);return t.__edgeMap[n]},YFe=function(e,t){var n=Nk(em(e.node1,e.node2,t),t),r=Nk(em(e.node2,e.node1,t),t);return n+r},Nk=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function qFe(e){xw(e)&&(e.__curvenessList=[],e.__edgeMap={},kj(e))}function XFe(e,t,n,r){if(xw(n)){var a=em(e,t,n),i=n.__edgeMap,o=i[Mj(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 WI(e,t,n,r){var a=xw(t),i=Xe(a);if(!a)return null;var o=jFe(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=YFe(e,t);kj(t,u),e.lineStyle=e.lineStyle||{};var c=em(e.node1,e.node2,t),f=t.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var h=Mj(c),v=Nk(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 Aj(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")])}),GI(n,e)}}function GI(e,t){e.eachEdge(function(n,r){var a=Mo(n.getModel().get(["lineStyle","curveness"]),-WI(n,t,r,!0),0),i=hs(n.node1.getLayout()),o=hs(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 ZFe(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=[];K(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])}GI(i.graph,n)}else(!r||r==="none")&&Aj(n)})}function hp(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 vp(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var rB=Math.PI,ax=[];function KI(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];If(p,p),Dp(p,p,c),n.setLayout([l+p[0],u+p[1]],!0);var g=e.get(["circular","rotateLabel"]);Ej(n,g,l,u)}QFe[t](e,s,o,c,l,u,f),s.eachEdge(function(m,b){var _=Mo(m.getModel().get(["lineStyle","curveness"]),WI(m,e,b),0),S=hs(m.node1.getLayout()),x=hs(m.node2.getLayout()),C,w=(S[0]+x[0])/2,k=(S[1]+x[1])/2;+_&&(_*=3,C=[l*_+w*(1-_),u*_+k*(1-_)]),m.setLayout([S,x,C])})}}}var QFe={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;ax.length=o;var l=hp(e);t.eachNode(function(f){var d=vp(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/r);isNaN(h)&&(h=rB/2),ax[f.dataIndex]=h,s+=h*2});var u=(2*rB-s)/o/2,c=0;t.eachNode(function(f){var d=u+ax[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+a,r*Math.sin(c)+i]),c+=d})}};function Ej(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");Ge(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function JFe(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&KI(t,"symbolSize")})}var sd=Zb;function eze(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=Ru(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=hs(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 S=a[_];if(!S.ignoreForceLayout){var x=S.n1,C=S.n2;jl(m,C.p,x.p);var w=Ag(m)-S.d,k=C.w/(x.w+C.w);isNaN(k)&&(k=0),If(m,m),!x.fixed&&sd(x.p,x.p,m,k*w*h),!C.fixed&&sd(C.p,C.p,m,-(1-k)*w*h)}}for(var _=0;_<b;_++){var M=r[_];M.fixed||(jl(m,l,M.p),sd(M.p,M.p,m,u*h))}for(var _=0;_<b;_++)for(var x=r[_],I=_+1;I<b;I++){var C=r[I];jl(m,C.p,x.p);var w=Ag(m);w===0&&(vG(m,Math.random()-.5,Math.random()-.5),w=1);var E=(x.rep+C.rep)/w/w;!x.fixed&&sd(x.pp,x.pp,m,E),!C.fixed&&sd(C.pp,C.pp,m,-E)}for(var D=[],_=0;_<b;_++){var M=r[_];M.fixed||(jl(D,M.p,M.pp),sd(M.p,M.p,D,h),ga(M.pp,M.p))}h=h*.992;var P=h<.01;p&&p(r,a,P),g&&g(P)}}}function tze(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 S=i.getId(_);i.setItemLayout(_,r[S]||[NaN,NaN])}):!l||l==="none"?Aj(t):l==="circular"&&KI(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=Xe(f)?f:[f,f],v=Xe(d)?d:[d,d];v=[v[1],v[0]];var p=i.mapArray("value",function(_,S){var x=i.getItemLayout(S),C=$n(_,u,h);return isNaN(C)&&(C=(h[0]+h[1])/2),{w:C,rep:C,fixed:i.getItemModel(S).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(_,S){var x=a.getEdgeByIndex(S),C=$n(_,c,v);isNaN(C)&&(C=(v[0]+v[1])/2);var w=x.getModel(),k=Mo(x.getModel().get(["lineStyle","curveness"]),-WI(x,t,S,!0),0);return{n1:p[x.node1.dataIndex],n2:p[x.node2.dataIndex],d:C,curveness:k,ignoreForceLayout:w.get("ignoreForceLayout")}}),m=n.getBoundingRect(),b=eze(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});b.beforeStep(function(_,S){for(var x=0,C=_.length;x<C;x++)_[x].fixed&&ga(_[x].p,a.getNodeByIndex(x).getLayout())}),b.afterStep(function(_,S,x){for(var C=0,w=_.length;C<w;C++)_[C].fixed||a.getNodeByIndex(C).setLayout(_[C].p),r[i.getId(C)]=_[C].p;for(var C=0,w=S.length;C<w;C++){var k=S[C],M=a.getEdgeByIndex(C),I=k.n1.p,E=k.n2.p,D=M.getLayout();D=D?D.slice():[],D[0]=D[0]||[],D[1]=D[1]||[],ga(D[0],I),ga(D[1],E),+k.curveness&&(D[2]=[(I[0]+E[0])/2-(I[1]-E[1])*k.curveness,(I[1]+E[1])/2-(E[0]-I[0])*k.curveness]),M.setLayout(D)}}),t.forceLayout=b,t.preservedPoints=r,b.step()}else t.forceLayout=null})}function nze(e,t,n){var r=Ge(e.getBoxLayoutParams(),{aspect:n});return Br(r,{width:t.getWidth(),height:t.getHeight()})}function rze(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=[];X_(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=nze(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 Gm;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 aB=Gr.prototype,ix=Im.prototype,Ij=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Ij);function ox(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var aze=function(e){Ae(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 Ij},t.prototype.buildPath=function(n,r){ox(r)?aB.buildPath.call(this,n,r):ix.buildPath.call(this,n,r)},t.prototype.pointAt=function(n){return ox(this.shape)?aB.pointAt.call(this,n):ix.pointAt.call(this,n)},t.prototype.tangentAt=function(n){var r=this.shape,a=ox(r)?[r.x2-r.x1,r.y2-r.y1]:ix.tangentAt.call(this,n);return If(a,a)},t}(dn);const ize=aze;var sx=["fromSymbol","toSymbol"];function iB(e){return"_"+e+"Type"}function oB(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=nv(a),u=Rf(o||0,l);return r+l+u+(i||"")+(s||"")}function sB(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=nv(a),u=Rf(o||0,l),c=Er(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 oze(e){var t=new ize({name:"line",subPixelOptimize:!0});return $k(t.shape,e),t}function $k(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 sze=function(e){Ae(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=oze(o);s.shape.percent=0,rr(s,{shape:{percent:1}},i,r),this.add(s),K(sx,function(l){var u=sB(l,n,r);this.add(u),this[iB(l)]=oB(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:{}};$k(l.shape,s),In(o,l,i,r),K(sx,function(u){var c=oB(u,n,r),f=iB(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=sB(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=Yr(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,K(sx,function(C){var w=this.childOfName(C);if(w){w.setColor(m),w.style.opacity=g.opacity;for(var k=0;k<za.length;k++){var M=za[k],I=o.getState(M);if(I){var E=I.style||{},D=w.ensureState(M),P=D.style||(D.style={});E.stroke!=null&&(P[w.__isEmptyBrush?"stroke":"fill"]=E.stroke),E.opacity!=null&&(P.opacity=E.opacity)}}w.markRedraw()}},this);var b=i.getRawValue(r);fa(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(C,w){return i.getFormattedLabel(C,w,n.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(b==null?n.getName(r):isFinite(b)?pr(b):b)+""});var _=this.getTextContent();if(_){var S=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");Xe(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),mr(this,d,h,f)},t.prototype.highlight=function(){rl(this)},t.prototype.downplay=function(){al(this)},t.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},t.prototype.setLinePoints=function(n){var r=this.childOfName("line");$k(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=jl([],f,c);If(d,d);function h(I,E){var D=I.__specifiedRotation;if(D==null){var P=l.tangentAt(E);I.attr("rotation",(E===1?-1:1)*Math.PI/2-Math.atan2(P[1],P[0]))}else I.attr("rotation",D)}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,S=l.tangentAt(_),x=[S[1],-S[0]],C=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var k=-Math.atan2(S[1],S[0]);f[0]<c[0]&&(k=Math.PI+k),i.rotation=k}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*w+c[0],i.y=c[1]+M,v=S[0]<0?"right":"left",i.originX=-m*w,i.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=C[0],i.y=C[1]+M,v="center",i.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*w+f[0],i.y=f[1]+M,v=S[0]>=0?"right":"left",i.originX=m*w,i.originY=-M;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||v})}},t}(zt);const UI=sze;var lze=function(){function e(t){this.group=new zt,this._LineCtor=t||UI}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=lB(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=lB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!uze(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=n.getItemLayout(a);if(lx(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){Nu(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,n,r){var a=t.getItemLayout(n);if(lx(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(!lx(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 uze(e){return e.animators&&e.animators.length>0}function lB(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:Yr(t)}}function uB(e){return isNaN(e[0])||isNaN(e[1])}function lx(e){return e&&!uB(e[0])&&!uB(e[1])}const jI=lze;var ux=[],cx=[],fx=[],ld=Zr,dx=au,cB=Math.abs;function fB(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){ux[0]=ld(r[0],a[0],i[0],c),ux[1]=ld(r[1],a[1],i[1],c);var f=cB(dx(ux,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;cx[0]=ld(r[0],a[0],i[0],s),cx[1]=ld(r[1],a[1],i[1],s),fx[0]=ld(r[0],a[0],i[0],h),fx[1]=ld(r[1],a[1],i[1],h);var f=dx(cx,t)-l;if(cB(f)<.01)break;var v=dx(fx,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 hx(e,t){var n=[],r=Eg,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=[hs(u[0]),hs(u[1])],u[2]&&u.__original.push(hs(u[2])));var d=u.__original;if(u[2]!=null){if(ga(a[0],d[0]),ga(a[1],d[2]),ga(a[2],d[1]),c&&c!=="none"){var h=vp(s.node1),v=fB(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=vp(s.node2),v=fB(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]}ga(u[0],a[0]),ga(u[1],a[2]),ga(u[2],a[1])}else{if(ga(i[0],d[0]),ga(i[1],d[1]),jl(o,i[1],i[0]),If(o,o),c&&c!=="none"){var h=vp(s.node1);Zb(i[0],i[0],o,h*t)}if(f&&f!=="none"){var h=vp(s.node2);Zb(i[1],i[1],o,-h*t)}ga(u[0],i[0]),ga(u[1],i[1])}})}function dB(e){return e.type==="view"}var cze=function(e){Ae(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 Vm,i=new jI,o=this.group;this._controller=new Wm(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(dB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):In(u,c,n)}hx(n.getGraph(),hp(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 S=_.dataIndex,x=_.getGraphicEl(),C=_.getModel();if(x){x.off("drag").off("dragend");var w=C.get("draggable");w&&x.on("drag",function(M){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(S),f.setItemLayout(S,[x.x,x.y]);break;case"circular":f.setItemLayout(S,[x.x,x.y]),_.setLayout({fixed:!0},!0),KI(n,"symbolSize",_,[M.offsetX,M.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(S,[x.x,x.y]),GI(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),x.setDraggable(w,!!C.get("cursor"));var k=C.get(["emphasis","focus"]);k==="adjacency"&&(Zt(x).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var S=_.getGraphicEl(),x=_.getModel().get(["emphasis","focus"]);S&&x==="adjacency"&&(Zt(S).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(_){Ej(_,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)&&!ww(u,a,n)}),!dB(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){RI(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){OI(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(),hx(n.getGraph(),hp(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=hp(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(n){hx(n.getGraph(),hp(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}(Un);const fze=cze;function ud(e){return"_EC_"+e}var dze=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[ud(t)]){var a=new xc(t,n);return a.hostGraph=this,this.nodes.push(a),r[ud(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[ud(t)]},e.prototype.addEdge=function(t,n,r){var a=this._nodesMap,i=this._edgesMap;if(kn(t)&&(t=this.nodes[t]),kn(n)&&(n=this.nodes[n]),t instanceof xc||(t=a[ud(t)]),n instanceof xc||(n=a[ud(n)]),!(!t||!n)){var o=t.id+"-"+n.id,s=new Dj(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 xc&&(t=t.id),n instanceof xc&&(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 xc||(n=this._nodesMap[ud(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}(),xc=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=Mt(),n=Mt(),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}(),Dj=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=Mt(),n=Mt();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 Pj(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)}}}Tr(xc,Pj("hostGraph","data"));Tr(Dj,Pj("hostGraph","edgeData"));const hze=dze;function Lj(e,t,n,r,a){for(var i=new hze(r),o=0;o<e.length;o++)i.addNode(Wr(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(Wr(Fr(c.id,null),f+" > "+d)),u++)}var h=n.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=As(e,n);else{var p=Jh.get(h),g=p?p.dimensions||[]:[];sn(g,"value")<0&&g.concat(["value"]);var m=rv(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;v=new _a(m,n),v.initData(e)}var b=new _a(["value"],n);return b.initData(l,s),a&&a(v,b),vj({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var vze=function(e){Ae(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 Hm(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),gf(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){qFe(this);var s=Lj(i,a,this,!0,l);return K(s.edges,function(u){XFe(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=Gn.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),qr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=Z7({series:this,dataIndex:n,multipleSeries:r});return f},t.prototype._updateCategoriesData=function(){var n=et(this.option.categories||[],function(a){return a.value!=null?a:Ge({value:0},a)}),r=new _a(["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}(Jn);const pze=vze;var gze={type:"graphRoam",event:"graphRoam",update:"none"};function mze(e){e.registerChartView(fze),e.registerSeriesModel(pze),e.registerProcessor(GFe),e.registerVisual(KFe),e.registerVisual(UFe),e.registerLayout(ZFe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,JFe),e.registerLayout(tze),e.registerCoordinateSystem("graphView",{dimensions:Gm.dimensions,create:rze}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Cr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Cr),e.registerAction(gze,function(t,n,r){n.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=$I(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var yze=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),bze=function(e){Ae(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new yze},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}(dn);const _ze=bze;function wze(e,t){var n=e.get("center"),r=t.getWidth(),a=t.getHeight(),i=Math.min(r,a),o=ht(n[0],t.getWidth()),s=ht(n[1],t.getHeight()),l=ht(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function p0(e,t){var n=e==null?"":e+"";return t&&(yt(t)?n=t.replace("{value}",n):Et(t)&&(n=t(e))),n}var Sze=function(e){Ae(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=wze(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?A1:Ha,v=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];c9(m,!l),u=m[0],c=m[1];for(var b=c-u,_=u,S=[],x=0;v&&x<i.length;x++){var C=Math.min(Math.max(i[x][0],0),1);c=u+b*C;var w=new h({shape:{startAngle:_,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[x][1]}),w.setStyle(p.getLineStyle(["color","width"])),S.push(w),_=c}S.reverse(),K(S,function(M){return s.add(M)});var k=function(M){if(M<=0)return i[0][1];var I;for(I=0;I<i.length;I++)if(i[I][0]>=M&&(I===0?0:i[I-1][0])<M)return i[I][1];return i[I-1][1]};this._renderTicks(n,r,a,k,o,u,c,l,g),this._renderTitleAndDetail(n,r,a,k,o),this._renderAnchor(n,o),this._renderPointer(n,r,a,k,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"),S=n.get("splitNumber"),x=b.get("splitNumber"),C=ht(m.get("length"),v),w=ht(b.get("length"),v),k=s,M=(l-s)/S,I=M/x,E=m.getModel("lineStyle").getLineStyle(),D=b.getModel("lineStyle").getLineStyle(),P=m.get("distance"),N,z,F=0;F<=S;F++){if(N=Math.cos(k),z=Math.sin(k),m.get("show")){var B=P?P+c:c,V=new Gr({shape:{x1:N*(v-B)+d,y1:z*(v-B)+h,x2:N*(v-C-B)+d,y2:z*(v-C-B)+h},style:E,silent:!0});E.stroke==="auto"&&V.setStyle({stroke:i(F/S)}),f.add(V)}if(_.get("show")){var B=_.get("distance")+P,L=p0(pr(F/S*(g-p)+p),_.get("formatter")),G=i(F/S),q=N*(v-C-B)+d,Q=z*(v-C-B)+h,ie=_.get("rotate"),de=0;ie==="radial"?(de=-k+2*Math.PI,de>Math.PI/2&&(de+=Math.PI)):ie==="tangential"?de=-k-Math.PI/2:kn(ie)&&(de=ie*Math.PI/180),de===0?f.add(new Cn({style:Yn(_,{text:L,x:q,y:Q,verticalAlign:z<-.8?"top":z>.8?"bottom":"middle",align:N<-.4?"left":N>.4?"right":"center"},{inheritColor:G}),silent:!0})):f.add(new Cn({style:Yn(_,{text:L,x:q,y:Q,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:q,originY:Q,rotation:de}))}if(b.get("show")&&F!==S){var B=b.get("distance");B=B?B+c:c;for(var oe=0;oe<=x;oe++){N=Math.cos(k),z=Math.sin(k);var se=new Gr({shape:{x1:N*(v-B)+d,y1:z*(v-B)+h,x2:N*(v-w-B)+d,y2:z*(v-w-B)+h},silent:!0,style:D});D.stroke==="auto"&&se.setStyle({stroke:i((F+oe/x)/S)}),f.add(se),k+=I}k-=I}else k+=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"),S=+n.get("min"),x=+n.get("max"),C=[S,x],w=[s,l];function k(I,E){var D=b.getItemModel(I),P=D.getModel("pointer"),N=ht(P.get("width"),o.r),z=ht(P.get("length"),o.r),F=n.get(["pointer","icon"]),B=P.get("offsetCenter"),V=ht(B[0],o.r),L=ht(B[1],o.r),G=P.get("keepAspect"),q;return F?q=Er(F,V-N/2,L-z,N,z,null,G):q=new _ze({shape:{angle:-Math.PI/2,width:N,r:z,x:V,y:L}}),q.rotation=-(E+Math.PI/2),q.x=o.cx,q.y=o.cy,q}function M(I,E){var D=g.get("roundCap"),P=D?A1:Ha,N=g.get("overlap"),z=N?g.get("width"):c/b.count(),F=N?o.r-z:o.r-(I+1)*z,B=N?o.r:o.r-I*z,V=new P({shape:{startAngle:s,endAngle:E,cx:o.cx,cy:o.cy,clockwise:u,r0:F,r:B}});return N&&(V.z2=x-b.get(_,I)%x),V}(m||p)&&(b.diff(d).add(function(I){var E=b.get(_,I);if(p){var D=k(I,s);rr(D,{rotation:-((isNaN(+E)?w[0]:$n(E,C,w,!0))+Math.PI/2)},n),f.add(D),b.setItemGraphicEl(I,D)}if(m){var P=M(I,s),N=g.get("clip");rr(P,{shape:{endAngle:$n(E,C,w,N)}},n),f.add(P),YT(n.seriesIndex,b.dataType,I,P),v[I]=P}}).update(function(I,E){var D=b.get(_,I);if(p){var P=d.getItemGraphicEl(E),N=P?P.rotation:s,z=k(I,N);z.rotation=N,In(z,{rotation:-((isNaN(+D)?w[0]:$n(D,C,w,!0))+Math.PI/2)},n),f.add(z),b.setItemGraphicEl(I,z)}if(m){var F=h[E],B=F?F.shape.endAngle:s,V=M(I,B),L=g.get("clip");In(V,{shape:{endAngle:$n(D,C,w,L)}},n),f.add(V),YT(n.seriesIndex,b.dataType,I,V),v[I]=V}}).execute(),b.each(function(I){var E=b.getItemModel(I),D=E.getModel("emphasis"),P=D.get("focus"),N=D.get("blurScope"),z=D.get("disabled");if(p){var F=b.getItemGraphicEl(I),B=b.getItemVisual(I,"style"),V=B.fill;if(F instanceof ea){var L=F.style;F.useStyle(Ge({image:L.image,x:L.x,y:L.y,width:L.width,height:L.height},B))}else F.useStyle(B),F.type!=="pointer"&&F.setColor(V);F.setStyle(E.getModel(["pointer","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",i($n(b.get(_,I),C,[0,1],!0))),F.z2EmphasisLift=0,ca(F,E),mr(F,P,N,z)}if(m){var G=v[I];G.useStyle(b.getItemVisual(I,"style")),G.setStyle(E.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,ca(G,E),mr(G,P,N,z)}}),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=Er(s,r.cx-o/2+ht(l[0],r.r),r.cy-o/2+ht(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 zt,h=[],v=[],p=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new Cn({silent:!0}),v[m]=new Cn({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),S=new zt,x=i($n(_,[c,f],[0,1],!0)),C=b.getModel("title");if(C.get("show")){var w=C.get("offsetCenter"),k=o.cx+ht(w[0],o.r),M=o.cy+ht(w[1],o.r),I=h[m];I.attr({z2:g?0:2,style:Yn(C,{x:k,y:M,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:x})}),S.add(I)}var E=b.getModel("detail");if(E.get("show")){var D=E.get("offsetCenter"),P=o.cx+ht(D[0],o.r),N=o.cy+ht(D[1],o.r),z=ht(E.get("width"),o.r),F=ht(E.get("height"),o.r),B=n.get(["progress","show"])?l.getItemVisual(m,"style").fill:x,I=v[m],V=E.get("formatter");I.attr({z2:g?0:2,style:Yn(E,{x:P,y:N,text:p0(_,V),width:isNaN(z)?null:z,height:isNaN(F)?null:F,align:"center",verticalAlign:"middle"},{inheritColor:B})}),n7(I,{normal:E},_,function(G){return p0(G,V)}),p&&r7(I,m,l,n,{getFormattedLabel:function(G,q,Q,ie,de,oe){return p0(oe?oe.interpolatedValue:_,V)}}),S.add(I)}d.add(S)}),this.group.add(d),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(Un);const Cze=Sze;var xze=function(e){Ae(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 iv(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}(Jn);const Tze=xze;function kze(e){e.registerChartView(Cze),e.registerSeriesModel(Tze)}var Mze=["itemStyle","opacity"],Aze=function(e){Ae(t,e);function t(n,r){var a=e.call(this)||this,i=a,o=new Ka,s=new Cn;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(Mze);c=c??1,a||No(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,rr(i,{style:{opacity:c}},o,r)):In(i,{style:{opacity:c},shape:{points:l.points}},o,r),ca(i,s),this._updateLabel(n,r),mr(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;fa(o,Yr(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 tn(h[0][0],h[0][1]):null},In(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),TI(a,kI(l),{stroke:d})},t}(Wa),Eze=function(e){Ae(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 Aze(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);Vg(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}(Un);const Ize=Eze;var Dze=function(e){Ae(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 Hm(bt(this.getData,this),bt(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return iv(this,{coordDimensions:["value"],encodeDefaulter:Xt(XE,this)})},t.prototype._defaultLabelLine=function(n){gf(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}(Jn);const Pze=Dze;function Lze(e,t){return Br(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Rze(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 Et(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?r[l]-r[u]:r[u]-r[l]}),a}function Oze(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 Nze(e,t){e.eachSeriesByType("funnel",function(n){var r=n.getData(),a=r.mapDimension("value"),i=n.get("sort"),o=Lze(n,t),s=n.get("orient"),l=o.width,u=o.height,c=Rze(r,i),f=o.x,d=o.y,h=s==="horizontal"?[ht(n.get("minSize"),u),ht(n.get("maxSize"),u)]:[ht(n.get("minSize"),l),ht(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,S=(_-b*(r.count()-1))/r.count(),x=function(N,z){if(s==="horizontal"){var F=r.get(a,N)||0,B=$n(F,[p,g],h,!0),V=void 0;switch(m){case"top":V=d;break;case"center":V=d+(u-B)/2;break;case"bottom":V=d+(u-B);break}return[[z,V],[z,V+B]]}var L=r.get(a,N)||0,G=$n(L,[p,g],h,!0),q;switch(m){case"left":q=f;break;case"center":q=f+(l-G)/2;break;case"right":q=f+l-G;break}return[[q,z],[q+G,z]]};i==="ascending"&&(S=-S,b=-b,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var C=0;C<c.length;C++){var w=c[C],k=c[C+1],M=r.getItemModel(w);if(s==="horizontal"){var I=M.get(["itemStyle","width"]);I==null?I=S:(I=ht(I,l),i==="ascending"&&(I=-I));var E=x(w,f),D=x(k,f+I);f+=I+b,r.setItemLayout(w,{points:E.concat(D.slice().reverse())})}else{var P=M.get(["itemStyle","height"]);P==null?P=S:(P=ht(P,u),i==="ascending"&&(P=-P));var E=x(w,d),D=x(k,d+P);d+=P+b,r.setItemLayout(w,{points:E.concat(D.slice().reverse())})}}Oze(r)})}function $ze(e){e.registerChartView(Ize),e.registerSeriesModel(Pze),e.registerLayout(Nze),e.registerProcessor(zm("funnel"))}var Bze=.3,Vze=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new zt,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=vB(n);s.diff(l).add(d).update(h).remove(v).execute();function d(g){var m=hB(s,o,g,c,u);vx(m,s,g,f)}function h(g,m){var b=l.getItemGraphicEl(m),_=Rj(s,g,c,u);s.setItemGraphicEl(g,b),In(b,{shape:{points:_}},n,g),No(b),vx(b,s,g,f)}function v(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var p=Fze(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=vB(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=hB(i,this._dataGroup,c,s,o);f.incremental=!0,vx(f,i,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Un);function Fze(e,t,n){var r=e.model,a=e.getRect(),i=new xn({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),rr(i,{shape:{width:a.width,height:a.height}},t,n),i}function Rj(e,t,n,r){for(var a=[],i=0;i<n.length;i++){var o=n[i],s=e.get(e.mapDimension(o),t);zze(s,r.getAxis(o).type)||a.push(r.dataToPoint(s,o))}return a}function hB(e,t,n,r,a){var i=Rj(e,n,r,a),o=new Ka({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function vB(e){var t=e.get("smooth",!0);return t===!0&&(t=Bze),t=Ss(t),Sh(t)&&(t=0),{smooth:t}}function vx(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");ca(e,a,"lineStyle"),mr(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function zze(e,t){return t==="category"?e==null:e==null||isNaN(e)}const Hze=Vze;var Wze=function(e){Ae(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 As(null,this,{useEncodeDefaulter:bt(Gze,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}(Jn);function Gze(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return K(t.dimensions,function(r){var a=Kze(r);n[r]=a}),n}}function Kze(e){return+e.replace("dim","")}const Uze=Wze;var jze=["lineStyle","opacity"],Yze={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(jze,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const qze=Yze;function Xze(e){Zze(e),Qze(e)}function Zze(e){if(!e.parallel){var t=!1;K(e.series,function(n){n&&n.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function Qze(e){var t=Kn(e.parallelAxis);K(t,function(n){if(Nt(n)){var r=n.parallelIndex||0,a=Kn(e.parallel)[r];a&&a.parallelAxisDefault&&en(n,a.parallelAxisDefault,!1)}})}var Jze=5,e6e=function(e){Ae(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={},K(t6e,function(i,o){a.getZr().on(o,this._handlers[o]=bt(i,this))},this)),tv(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(n,r){Gg(this,"_throttledDispatchExpand"),K(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(Ge({type:"parallelAxisExpand"},n))},t.type="parallel",t}(sr),t6e={mousedown:function(e){px(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(px(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>Jze)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||!px(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 px(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const n6e=e6e;var r6e=function(e){Ae(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&&en(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){K(["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=Bn(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);K(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}(wn);const a6e=r6e;var i6e=function(e){Ae(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}(io);const o6e=i6e;function $f(e,t,n,r,a,i){e=e||0;var o=n[1]-n[0];if(a!=null&&(a=cd(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=cd(s,[0,o]),a=i=cd(s,[a,i]),r=0}t[0]=cd(t[0],n),t[1]=cd(t[1],n);var l=gx(t,r);t[r]+=e;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=cd(t[r],c);var f;return f=gx(t,r),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-r]=t[r]+l.sign*a),f=gx(t,r),i!=null&&f.span>i&&(t[1-r]=t[r]+f.sign*i),t}function gx(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 cd(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var mx=K,Oj=Math.min,Nj=Math.max,pB=Math.floor,s6e=Math.ceil,gB=pr,l6e=Math.PI,u6e=function(){function e(t,n,r){this.type="parallel",this._axesMap=Mt(),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;mx(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new o6e(o,Nm(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();mx(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),wf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,n){this._rect=Br(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=g0(t.get("axisExpandWidth"),l),f=g0(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=g0(h[1]-h[0],l),h[1]=h[0]+v;else{v=g0(c*(f-1),l);var p=t.get("axisExpandCenter")||pB(u/2);h=[c*p-v/2],h[1]=h[0]+v}var g=(s-v)/(u-f);g<3&&(g=0);var m=[pB(gB(h[0]/c,1))+1,s6e(gB(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])}),mx(r,function(o,s){var l=(a.axisExpandable?f6e:c6e)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:l6e/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],h=wi();Ou(h,h,d),Lo(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=[];K(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 Io([t,0],r.transform)},e.prototype.getAxisLayout=function(t){return $t(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?$f(l,a,o,"all"):u="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[Nj(0,v-h/2)],a[1]=Oj(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},e}();function g0(e,t){return Oj(Nj(e,t[0]),t[1])}function c6e(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function f6e(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 d6e=u6e;function h6e(e,t){var n=[];return e.eachComponent("parallel",function(r,a){var i=new d6e(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",Pr).models[0];r.coordinateSystem=a.coordinateSystem}}),n}var v6e={create:h6e};const p6e=v6e;var $j=function(e){Ae(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 yf([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=$t(n);if(r)for(var a=r.length-1;a>=0;a--)mi(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}(wn);Tr($j,av);const mB=$j;var Sf=!0,tm=Math.min,Ah=Math.max,g6e=Math.pow,m6e=1e4,y6e=6,b6e=6,yB="globalPan",_6e={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},w6e={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},bB={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},S6e=0,C6e=function(e){Ae(t,e);function t(n){var r=e.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new zt,r._uid="brushController_"+S6e++,K(I6e,function(a,i){this._handlers[i]=bt(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||LVe(r,yB,this._uid),K(this._handlers,function(a,i){r.on(i,a)}),this._brushType=n.brushType,this._brushOption=en($t(bB),n,!0)},t.prototype._doDisableBrush=function(){var n=this._zr;RVe(n,yB,this._uid),K(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={};K(n,function(a){r[a.panelId]=$t(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=et(n,function(d){return en($t(bB),d,!0)});var r="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new il(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]):Vj(o,Bj(o,v));YI(o,p)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},t.prototype.unmount=function(){return this.enableBrush(!1),Bk(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(to);function Bj(e,t){var n=Tw[t.brushType].createCover(e,t);return n.__brushOption=t,zj(n,t),e.group.add(n),n}function Vj(e,t){var n=qI(t);return n.endCreating&&(n.endCreating(e,t),zj(t,t.__brushOption)),t}function Fj(e,t){var n=t.__brushOption;qI(t).updateCoverShape(e,t,n.range,n)}function zj(e,t){var n=t.z;n==null&&(n=m6e),e.traverse(function(r){r.z=n,r.z2=n})}function YI(e,t){qI(t).updateCommon(e,t),Fj(e,t)}function qI(e){return Tw[e.__brushOption.brushType]}function XI(e,t,n){var r=e._panels;if(!r)return Sf;var a,i=e._transform;return K(r,function(o){o.isTargetByCursor(t,n,i)&&(a=o)}),a}function Hj(e,t){var n=e._panels;if(!n)return Sf;var r=t.__brushOption.panelId;return r!=null?n[r]:Sf}function Bk(e){var t=e._covers,n=t.length;return K(t,function(r){e.group.remove(r)},e),t.length=0,!!n}function Cf(e,t){var n=et(e._covers,function(r){var a=r.__brushOption,i=$t(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function x6e(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=g6e(a*a+i*i,.5);return o>y6e}function Wj(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Gj(e,t,n,r){var a=new zt;return a.add(new xn({name:"main",style:ZI(n),silent:!0,draggable:!0,cursor:"move",drift:Xt(_B,e,t,a,["n","s","w","e"]),ondragend:Xt(Cf,t,{isEnd:!0})})),K(r,function(i){a.add(new xn({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Xt(_B,e,t,a,i),ondragend:Xt(Cf,t,{isEnd:!0})}))}),a}function Kj(e,t,n,r){var a=r.brushStyle.lineWidth||0,i=Ah(a,b6e),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;Rs(e,t,"main",o,s,v,p),r.transformable&&(Rs(e,t,"w",l,u,i,m),Rs(e,t,"e",d,u,i,m),Rs(e,t,"n",l,u,g,i),Rs(e,t,"s",l,h,g,i),Rs(e,t,"nw",l,u,i,i),Rs(e,t,"ne",d,u,i,i),Rs(e,t,"sw",l,h,i,i),Rs(e,t,"se",d,h,i,i))}function Vk(e,t){var n=t.__brushOption,r=n.transformable,a=t.childAt(0);a.useStyle(ZI(n)),a.attr({silent:!r,cursor:r?"move":"default"}),K([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Fk(e,i[0]):k6e(e,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?w6e[s]+"-resize":null})})}function Rs(e,t,n,r,a,i,o){var s=t.childOfName(n);s&&s.setShape(A6e(QI(e,t,[[r,a],[r+i,a+o]])))}function ZI(e){return Lt({strokeNoScale:!0},e.brushStyle)}function Uj(e,t,n,r){var a=[tm(e,n),tm(t,r)],i=[Ah(e,n),Ah(t,r)];return[[a[0],i[0]],[a[1],i[1]]]}function T6e(e){return su(e.group)}function Fk(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=rw(n[t],T6e(e));return r[a]}function k6e(e,t){var n=[Fk(e,t[0]),Fk(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function _B(e,t,n,r,a,i){var o=n.__brushOption,s=e.toRectRange(o.range),l=jj(t,a,i);K(r,function(u){var c=_6e[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(Uj(s[0][0],s[1][0],s[0][1],s[1][1])),YI(t,n),Cf(t,{isEnd:!1})}function M6e(e,t,n,r){var a=t.__brushOption.range,i=jj(e,n,r);K(a,function(o){o[0]+=i[0],o[1]+=i[1]}),YI(e,t),Cf(e,{isEnd:!1})}function jj(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 QI(e,t,n){var r=Hj(e,t);return r&&r!==Sf?r.clipPath(n,e._transform):$t(n)}function A6e(e){var t=tm(e[0][0],e[1][0]),n=tm(e[0][1],e[1][1]),r=Ah(e[0][0],e[1][0]),a=Ah(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:a-n}}function E6e(e,t,n){if(!(!e._brushType||D6e(e,t.offsetX,t.offsetY))){var r=e._zr,a=e._covers,i=XI(e,t,n);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Sf||s.panelId===i.panelId)&&Tw[s.brushType].contain(a[o],n[0],n[1]))return}i&&r.setCursorStyle("crosshair")}}function zk(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Hk(e,t,n){return e.childOfName("main").contain(t,n)}function Yj(e,t,n,r){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),x6e(e)||a){if(i&&!a){o.brushMode==="single"&&Bk(e);var l=$t(o);l.brushType=wB(l.brushType,i),l.panelId=i===Sf?null:i.panelId,a=e._creatingCover=Bj(e,l),e._covers.push(a)}if(a){var u=Tw[wB(e._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(QI(e,a,e._track)),r&&(Vj(e,a),u.updateCommon(e,a)),Fj(e,a),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&XI(e,t,n)&&Bk(e)&&(s={isEnd:r,removeOnClick:!0});return s}function wB(e,t){return e==="auto"?t.defaultBrushType:e}var I6e={mousedown:function(e){if(this._dragging)SB(this,e);else if(!e.target||!e.target.draggable){zk(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=XI(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(E6e(this,e,r),this._dragging){zk(e);var a=Yj(this,e,r,!1);a&&Cf(this,a)}},mouseup:function(e){SB(this,e)}};function SB(e,t){if(e._dragging){zk(t);var n=t.offsetX,r=t.offsetY,a=e.group.transformCoordToLocal(n,r),i=Yj(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&Cf(e,i)}}function D6e(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Tw={lineX:CB(0),lineY:CB(1),rect:{createCover:function(e,t){function n(r){return r}return Gj({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Wj(e);return Uj(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){Kj(e,t,n,r)},updateCommon:Vk,contain:Hk},polygon:{createCover:function(e,t){var n=new zt;return n.add(new Ka({name:"main",style:ZI(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Wa({name:"main",draggable:!0,drift:Xt(M6e,e,t),ondragend:Xt(Cf,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:QI(e,t,n)})},updateCommon:Vk,contain:Hk}};function CB(e){return{createCover:function(t,n){return Gj({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=Wj(t),r=tm(n[0][e],n[1][e]),a=Ah(n[0][e],n[1][e]);return[r,a]},updateCoverShape:function(t,n,r,a){var i,o=Hj(t,n);if(o!==Sf&&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(),Kj(t,n,l,a)},updateCommon:Vk,contain:Hk}}const JI=C6e;function qj(e){return e=eD(e),function(t){return VE(t,e)}}function Xj(e,t){return e=eD(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 Zj(e,t,n){var r=eD(e);return function(a,i){return r.contain(i[0],i[1])&&!ww(a,t,n)}}function eD(e){return rn.create(e)}var P6e=["axisLine","axisTickLabel","axisName"],L6e=function(e){Ae(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 JI(r.getZr())).on("brush",bt(this._onBrush,this))},t.prototype.render=function(n,r,a,i){if(!R6e(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new zt,this.group.add(this._axisGroup),!!n.get("show")){var s=N6e(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),h=Ge({strokeContainThreshold:c},d),v=new sl(n,h);K(P6e,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,n,s,c,a),Pm(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=rn.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:qj(f),isTargetByCursor:Zj(f,s,i),getLinearBrushOtherExtent:Xj(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(O6e(a))},t.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=et(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}(sr);function R6e(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function O6e(e){var t=e.axis;return et(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function N6e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const $6e=L6e;var B6e={type:"axisAreaSelect",event:"axisAreaSelected"};function V6e(e){e.registerAction(B6e,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 F6e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Qj(e){e.registerComponentView(n6e),e.registerComponentModel(a6e),e.registerCoordinateSystem("parallel",p6e),e.registerPreprocessor(Xze),e.registerComponentModel(mB),e.registerComponentView($6e),Mh(e,"parallel",mB,F6e),V6e(e)}function z6e(e){un(Qj),e.registerChartView(Hze),e.registerSeriesModel(Uze),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,qze)}var H6e=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}(),W6e=function(e){Ae(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new H6e},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(){rl(this)},t.prototype.downplay=function(){al(this)},t}(dn),G6e=function(e){Ae(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 W6e,g=Zt(p);g.dataIndex=v.dataIndex,g.seriesIndex=n.seriesIndex,g.dataType="edge";var m=v.getModel(),b=m.getModel("lineStyle"),_=b.get("curveness"),S=v.node1.getLayout(),x=v.node1.getModel(),C=x.get("localX"),w=x.get("localY"),k=v.node2.getLayout(),M=v.node2.getModel(),I=M.get("localX"),E=M.get("localY"),D=v.getLayout(),P,N,z,F,B,V,L,G;p.shape.extent=Math.max(1,D.dy),p.shape.orient=h,h==="vertical"?(P=(C!=null?C*u:S.x)+D.sy,N=(w!=null?w*c:S.y)+S.dy,z=(I!=null?I*u:k.x)+D.ty,F=E!=null?E*c:k.y,B=P,V=N*(1-_)+F*_,L=z,G=N*_+F*(1-_)):(P=(C!=null?C*u:S.x)+S.dx,N=(w!=null?w*c:S.y)+D.sy,z=I!=null?I*u:k.x,F=(E!=null?E*c:k.y)+D.ty,B=P*(1-_)+z*_,V=N,L=P*_+z*(1-_),G=F),p.setShape({x1:P,y1:N,x2:z,y2:F,cpx1:B,cpy1:V,cpx2:L,cpy2:G}),p.useStyle(b.getItemStyle()),xB(p.style,h,v);var q=""+m.get("value"),Q=Yr(m,"edgeLabel");fa(p,Q,{labelFetcher:{getFormattedLabel:function(oe,se,le,ne,Ce,Te){return n.getFormattedLabel(oe,se,"edge",ne,Mo(Ce,Q.normal&&Q.normal.get("formatter"),q),Te)}},labelDataIndex:v.dataIndex,defaultText:q}),p.setTextConfig({position:"inside"});var ie=m.getModel("emphasis");ca(p,m,"lineStyle",function(oe){var se=oe.getItemStyle();return xB(se,h,v),se}),s.add(p),d.setItemGraphicEl(v.dataIndex,p);var de=ie.get("focus");mr(p,de==="adjacency"?v.getAdjacentDataIndices():de==="trajectory"?v.getTrajectoryDataIndices():de,ie.get("blurScope"),ie.get("disabled"))}),o.eachNode(function(v){var p=v.getLayout(),g=v.getModel(),m=g.get("localX"),b=g.get("localY"),_=g.getModel("emphasis"),S=new xn({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});fa(S,Yr(g),{labelFetcher:{getFormattedLabel:function(C,w){return n.getFormattedLabel(C,w,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),S.disableLabelAnimation=!0,S.setStyle("fill",v.getVisual("color")),S.setStyle("decal",v.getVisual("style").decal),ca(S,g),s.add(S),f.setItemGraphicEl(v.dataIndex,S),Zt(S).dataType="node";var x=_.get("focus");mr(S,x==="adjacency"?v.getAdjacentDataIndices():x==="trajectory"?v.getTrajectoryDataIndices():x,_.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(K6e(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Un);function xB(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");yt(r)&&yt(a)&&(e.fill=new Gh(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function K6e(e,t,n){var r=new xn({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return rr(r,{shape:{width:e.width+20}},t,n),r}const U6e=G6e;var j6e=function(e){Ae(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 Gn(o[l],this,r));if(i&&a){var u=Lj(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 qr("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 qr("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}(Jn);const Y6e=j6e;function q6e(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=X6e(n,t);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;Q6e(u);var f=Bn(u,function(p){return p.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),v=n.get("nodeAlign");Z6e(u,c,r,a,o,s,d,h,v)})}function X6e(e,t){return Br(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Z6e(e,t,n,r,a,i,o,s,l){J6e(e,t,n,a,i,s,l),r8e(e,t,i,a,r,o,s),d8e(e,s)}function Q6e(e){K(e,function(t){var n=cu(t.outEdges,R1),r=cu(t.inEdges,R1),a=t.getValue()||0,i=Math.max(n,r,a);t.setLayout({value:i},!0)})}function J6e(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],S=t.indexOf(_);s[S]=0;var x=_.node2,C=e.indexOf(x);--l[C]===0&&c.indexOf(x)<0&&c.push(x)}}++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 w=h>f-1?h:f-1;o&&o!=="left"&&e8e(e,o,i,w);var k=i==="vertical"?(a-n)/w:(r-n)/w;n8e(e,k,i)}function Jj(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function e8e(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}K(e,function(f){Jj(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&t8e(e,r)}function t8e(e,t){K(e,function(n){!Jj(n)&&!n.outEdges.length&&n.setLayout({depth:t},!0)})}function n8e(e,t,n){K(e,function(r){var a=r.getLayout().depth*t;n==="vertical"?r.setLayout({y:a},!0):r.setLayout({x:a},!0)})}function r8e(e,t,n,r,a,i,o){var s=a8e(e,o);i8e(s,t,n,r,a,o),yx(s,a,n,r,o);for(var l=1;i>0;i--)l*=.99,o8e(s,l,o),yx(s,a,n,r,o),f8e(s,l,o),yx(s,a,n,r,o)}function a8e(e,t){var n=[],r=t==="vertical"?"y":"x",a=GT(e,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),K(a.keys,function(i){n.push(a.buckets.get(i))}),n}function i8e(e,t,n,r,a,i){var o=1/0;K(e,function(s){var l=s.length,u=0;K(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)}),K(e,function(s){K(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))})}),K(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function yx(e,t,n,r,a){var i=a==="vertical"?"x":"y";K(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 o8e(e,t,n){K(e.slice().reverse(),function(r){K(r,function(a){if(a.outEdges.length){var i=cu(a.outEdges,s8e,n)/cu(a.outEdges,R1);if(isNaN(i)){var o=a.outEdges.length;i=o?cu(a.outEdges,l8e,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-Cu(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Cu(a,n))*t;a.setLayout({y:l},!0)}}})})}function s8e(e,t){return Cu(e.node2,t)*e.getValue()}function l8e(e,t){return Cu(e.node2,t)}function u8e(e,t){return Cu(e.node1,t)*e.getValue()}function c8e(e,t){return Cu(e.node1,t)}function Cu(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function R1(e){return e.getValue()}function cu(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 f8e(e,t,n){K(e,function(r){K(r,function(a){if(a.inEdges.length){var i=cu(a.inEdges,u8e,n)/cu(a.inEdges,R1);if(isNaN(i)){var o=a.inEdges.length;i=o?cu(a.inEdges,c8e,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-Cu(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Cu(a,n))*t;a.setLayout({y:l},!0)}}})})}function d8e(e,t){var n=t==="vertical"?"x":"y";K(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]})}),K(e,function(r){var a=0,i=0;K(r.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),K(r.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function h8e(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;K(r,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),K(r,function(s){var l=new sa({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&&K(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function v8e(e){e.registerChartView(U6e),e.registerSeriesModel(Y6e),e.registerLayout(q6e),e.registerVisual(h8e),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 eY=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=[];K(g,function(S,x){var C;Xe(S)?(C=S.slice(),S.unshift(x)):Xe(S.value)?(C=Ge({},S),C.value=C.value.slice(),S.value.unshift(x)):C=S,m.push(C)}),t.data=m}var b=this.defaultValueDimensions,_=[{name:f,type:S1(v),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:S1(p),dimsDef:b.slice()}];return iv(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:Xt(S7,_,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),tY=function(e){Ae(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}(Jn);Tr(tY,eY,!0);const p8e=tY;var g8e=function(e){Ae(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=TB(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?(No(f),nY(d,f,i,u)):f=TB(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}(Un),m8e=function(){function e(){}return e}(),y8e=function(e){Ae(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new m8e},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}(dn);function TB(e,t,n,r,a){var i=e.ends,o=new y8e({shape:{points:a?b8e(i,r,e):i}});return nY(e,o,t,n,a),o}function nY(e,t,n,r,a){var i=n.hostModel,o=Lm[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");ca(t,s),mr(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function b8e(e,t,n){return et(e,function(r){return r=r.slice(),r[t]=n.initBaseline,r})}const _8e=g8e;var Kp=K;function w8e(e){var t=S8e(e);Kp(t,function(n){var r=n.seriesModels;r.length&&(C8e(n),Kp(r,function(a,i){x8e(a,n.boxOffsetList[i],n.boxWidthList[i])}))})}function S8e(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(r){var a=r.getBaseAxis(),i=sn(n,a);i<0&&(i=n.length,n[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(r)}),t}function C8e(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;Kp(n,function(v){l=Math.max(l,v.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Kp(n,function(v){var p=v.get("boxWidth");Xe(p)||(p=[p,p]),o.push([ht(p[0],s)||0,ht(p[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,h=d/2-c/2;Kp(n,function(v,p){i.push(h),h+=f+d,a.push(Math.min(Math.max(d,o[p][0]),o[p][1]))})}function x8e(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=[];S(b,p,!1),S(b,g,!0),b.push(v,p,m,g),x(b,v),x(b,m),x(b,h),a.setItemLayout(f,{initBaseline:h[s],ends:b})}function _(C,w,k){var M=a.get(w,k),I=[];I[o]=C,I[s]=M;var E;return isNaN(C)||isNaN(M)?E=[NaN,NaN]:(E=r.dataToPoint(I),E[o]+=t),E}function S(C,w,k){var M=w.slice(),I=w.slice();M[o]+=i,I[o]-=i,k?C.push(M,I):C.push(I,M)}function x(C,w){var k=w.slice(),M=w.slice();k[o]-=i,M[o]+=i,C.push(k,M)}}function T8e(e,t){t=t||{};for(var n=[],r=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=mi(e[o].slice()),l=ub(s,.25),u=ub(s,.5),c=ub(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=Et(g)?g({value:o}):yt(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 S=[m,_];r.push(S)}}}return{boxData:n,outliers:r}}var k8e={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==Ca){var r="";On(r)}var a=T8e(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function M8e(e){e.registerSeriesModel(p8e),e.registerChartView(_8e),e.registerLayout(w8e),e.registerTransform(k8e)}var A8e=["color","borderColor"],E8e=function(e){Ae(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){Nu(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&&kB(u,f))return;var d=bx(f,c,!0);rr(d,{shape:{points:f.ends}},n,c),_x(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&&kB(u,h)){i.remove(d);return}d?(In(d,{shape:{points:h.ends}},n,c),No(d)):d=bx(h),_x(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(),MB(n,this.group);var r=n.get("clip",!0)?_w(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=bx(s);_x(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){MB(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}(Un),I8e=function(){function e(){}return e}(),D8e=function(e){Ae(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new I8e},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}(dn);function bx(e,t,n){var r=e.ends;return new D8e({shape:{points:n?P8e(r,e):r},z2:100})}function kB(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 _x(e,t,n,r){var a=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,ca(e,a)}function P8e(e,t){return et(e,function(n){return n=n.slice(),n[1]=t.initBaseline,n})}var L8e=function(){function e(){}return e}(),Sx=function(e){Ae(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new L8e},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}(dn);function MB(e,t,n,r){var a=e.getData(),i=a.getLayout("largePoints"),o=new Sx({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new Sx({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new Sx({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),Cx(1,o,e),Cx(-1,s,e),Cx(0,l,e),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function Cx(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(A8e);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const R8e=E8e;var rY=function(e){Ae(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}(Jn);Tr(rY,eY,!0);const O8e=rY;function N8e(e){!e||!Xe(e.series)||K(e.series,function(t){Nt(t)&&t.type==="k"&&(t.type="candlestick")})}var $8e=["itemStyle","borderColor"],B8e=["itemStyle","borderColor0"],V8e=["itemStyle","borderColorDoji"],F8e=["itemStyle","color"],z8e=["itemStyle","color0"],H8e={seriesType:"candlestick",plan:ev(),performRawSeries:!0,reset:function(e,t){function n(i,o){return o.get(i>0?F8e:z8e)}function r(i,o){return o.get(i===0?V8e:i>0?$8e:B8e)}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");Ge(f,c)}}}}}};const W8e=H8e;var G8e={seriesType:"candlestick",plan:ev(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=K8e(e,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=et(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),S=b.get(u,m),x=b.get(c,m),C=b.get(f,m),w=b.get(d,m),k=Math.min(S,x),M=Math.max(S,x),I=B(k,_),E=B(M,_),D=B(C,_),P=B(w,_),N=[];V(N,E,0),V(N,I,1),N.push(G(P),G(E),G(D),G(I));var z=g.getItemModel(m),F=!!z.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:AB(b,m,S,x,c,F),initBaseline:S>x?E[i]:I[i],ends:N,brushRect:L(C,w,_)})}function B(q,Q){var ie=[];return ie[a]=Q,ie[i]=q,isNaN(Q)||isNaN(q)?[NaN,NaN]:t.dataToPoint(ie)}function V(q,Q,ie){var de=Q.slice(),oe=Q.slice();de[a]=db(de[a]+r/2,1,!1),oe[a]=db(oe[a]-r/2,1,!0),ie?q.push(de,oe):q.push(oe,de)}function L(q,Q,ie){var de=B(q,ie),oe=B(Q,ie);return de[a]-=r/2,oe[a]-=r/2,{x:de[0],y:de[1],width:r,height:oe[1]-de[1]}}function G(q){return q[a]=db(q[a],1),q}}function v(p,g){for(var m=cs(p.count*4),b=0,_,S=[],x=[],C,w=g.getStore(),k=!!e.get(["itemStyle","borderColorDoji"]);(C=p.next())!=null;){var M=w.get(s,C),I=w.get(u,C),E=w.get(c,C),D=w.get(f,C),P=w.get(d,C);if(isNaN(M)||isNaN(D)||isNaN(P)){m[b++]=NaN,b+=3;continue}m[b++]=AB(w,C,I,E,c,k),S[a]=M,S[i]=D,_=t.dataToPoint(S,null,x),m[b++]=_?_[0]:NaN,m[b++]=_?_[1]:NaN,S[i]=P,_=t.dataToPoint(S,null,x),m[b++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function AB(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 K8e(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=ht(nn(e.get("barMaxWidth"),a),a),o=ht(nn(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?ht(s,a):Math.max(Math.min(a/2,i),o)}const U8e=G8e;function j8e(e){e.registerChartView(R8e),e.registerSeriesModel(O8e),e.registerPreprocessor(N8e),e.registerVisual(W8e),e.registerLayout(U8e)}function EB(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 Y8e=function(e){Ae(t,e);function t(n,r){var a=e.call(this)||this,i=new Bm(n,r),o=new zt;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=Er(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)}EB(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}}EB(a,n)},t.prototype.highlight=function(){rl(this)},t.prototype.downplay=function(){al(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=nv(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=Rf(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,mr(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(n){n&&n()},t}(zt);const q8e=Y8e;var X8e=function(e){Ae(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 Vm(q8e)},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=Fm("").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=mG(r.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Un);const Z8e=X8e;var Q8e=function(e){Ae(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 As(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}(Jn);const J8e=Q8e;function eHe(e){e.registerChartView(Z8e),e.registerSeriesModel(J8e),e.registerLayout(Fm("effectScatter"))}var tHe=function(e){Ae(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 UI(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");Xe(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=Er(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=Wr(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;Et(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 Ws(n.__p1,n.__cp1)+Ws(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=Zr,c=ET;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=Ws(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*Ws(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}(zt);const aY=tHe;var nHe=function(e){Ae(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 Ka({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)}};In(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,mr(this,l,u,c)},t.prototype.updateLayout=function(n,r){var a=this.childAt(0);a.setShape("points",n.getItemLayout(r))},t}(zt);const iY=nHe;var rHe=function(e){Ae(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 iY(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+=Ws(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}(aY);const aHe=rHe;var iHe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),oHe=function(e){Ae(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 iHe},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(zl(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(f9(f,d,g,m,v,p,s,n,r))return l}else if(zl(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 rn(i,o,s,l)}return n},t}(dn),sHe=function(){function e(){this.group=new zt}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 oHe({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=Zt(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 lHe=sHe;var uHe={seriesType:"lines",plan:ev(),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 oY=uHe;var cHe=function(e){Ae(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)&&_w(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=oY.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 lHe:new jI(o?i?aHe:iY:i?aY:UI),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}(Un);const fHe=cHe;var dHe=typeof Uint32Array>"u"?Array:Uint32Array,hHe=typeof Float64Array>"u"?Array:Float64Array;function IB(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=et(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),V_([a,n[0],n[1]])}))}var vHe=function(e){Ae(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||[],IB(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(IB(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=Mg(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Mg(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),kn(n[0])){for(var a=n.length,i=new dHe(a),o=new hHe(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 _a(["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),qr("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}(Jn);const pHe=vHe;function m0(e){return e instanceof Array||(e=[e,e]),e}var gHe={seriesType:"lines",reset:function(e){var t=m0(e.get("symbol")),n=m0(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=m0(s.getShallow("symbol",!0)),u=m0(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 mHe=gHe;function yHe(e){e.registerChartView(fHe),e.registerSeriesModel(pHe),e.registerLayout(oY),e.registerVisual(mHe)}var bHe=256,_He=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Po.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 S=d.getImageData(0,0,f.width,f.height),x=S.data,C=0,w=x.length,k=this.minOpacity,M=this.maxOpacity,I=M-k;C<w;){var _=x[C+3]/256,E=Math.floor(_*(bHe-1))*4;if(_>0){var D=o(_)?l:u;_>0&&(_=_*I+k),x[C++]=D[E],x[C++]=D[E+1],x[C++]=D[E+2],x[C++]=D[E+3]*_*256}else C+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Po.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 wHe=_He;function SHe(e,t,n){var r=e[1]-e[0];t=et(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 CHe(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 DB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var xHe=function(e){Ae(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()):DB(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&&(DB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){Nu(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=Of(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(),S=n.get(["itemStyle","borderRadius"]),x=Yr(n),C=n.getModel("emphasis"),w=C.get("focus"),k=C.get("blurScope"),M=C.get("disabled"),I=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],E=a;E<i;E++){var D=void 0,P=g.getItemVisual(E,"style");if(l){var N=g.get(I[0],E),z=g.get(I[1],E);if(isNaN(g.get(I[2],E))||isNaN(N)||isNaN(z)||N<f[0]||N>f[1]||z<d[0]||z>d[1])continue;var F=s.dataToPoint([N,z]);D=new xn({shape:{x:F[0]-u/2,y:F[1]-c/2,width:u,height:c},style:P})}else{if(isNaN(g.get(I[1],E)))continue;D=new xn({z2:1,shape:s.dataToRect([g.get(I[0],E)]).contentShape,style:P})}if(g.hasItemOption){var B=g.getItemModel(E),V=B.getModel("emphasis");m=V.getModel("itemStyle").getItemStyle(),b=B.getModel(["blur","itemStyle"]).getItemStyle(),_=B.getModel(["select","itemStyle"]).getItemStyle(),S=B.get(["itemStyle","borderRadius"]),w=V.get("focus"),k=V.get("blurScope"),M=V.get("disabled"),x=Yr(B)}D.shape.r=S;var L=n.getRawValue(E),G="-";L&&L[2]!=null&&(G=L[2]+""),fa(D,x,{labelFetcher:n,labelDataIndex:E,defaultOpacity:P.opacity,defaultText:G}),D.ensureState("emphasis").style=m,D.ensureState("blur").style=b,D.ensureState("select").style=_,mr(D,w,k,M),D.incremental=o,o&&(D.states.emphasis.hoverLayer=!0),p.add(D),g.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},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 wHe;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(w,k,M){var I=n.dataToPoint([w,k]);return I[0]-=d,I[1]-=h,I.push(M),I}),S=a.getExtent(),x=a.type==="visualMap.continuous"?CHe(S,a.option.range):SHe(S,a.getPieceList(),a.option.selected);u.update(_,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var C=new ea({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(C)},t.type="heatmap",t}(Un);const THe=xHe;var kHe=function(e){Ae(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 As(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=Jh.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}(Jn);const MHe=kHe;function AHe(e){e.registerChartView(THe),e.registerSeriesModel(MHe)}var EHe=["itemStyle","borderWidth"],PB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],xx=new Oo,IHe=function(e){Ae(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:PB[+c],categoryDim:PB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var v=RB(o,h),p=LB(o,h,v,d),g=OB(o,d,p);o.setItemGraphicEl(h,g),i.add(g),$B(g,d,p)}}).update(function(h,v){var p=s.getItemGraphicEl(v);if(!o.hasValue(h)){i.remove(p);return}var g=RB(o,h),m=LB(o,h,g,d),b=dY(o,m);p&&b!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(h,null),p=null),p?$He(p,d,m):p=OB(o,d,m,!0),o.setItemGraphicEl(h,p),p.__pictorialSymbolMeta=m,i.add(p),$B(p,d,m)}).remove(function(h){var v=s.getItemGraphicEl(h);v&&NB(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){NB(i,Zt(o).dataIndex,n,o)}):a.removeAll()},t.type="pictorialBar",t}(Un);function LB(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};DHe(n,i,a,r,d),PHe(e,t,a,i,o,d.boundingLength,d.pxSign,c,r,d),LHe(n,d.symbolScale,u,r,d);var h=d.symbolSize,v=Rf(n.get("symbolOffset"),h);return RHe(n,h,a,i,o,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function DHe(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(Xe(o)){var f=[Tx(s,o[0])-l,Tx(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=Tx(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 Tx(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function PHe(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;Xe(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=ht(v[f.index],d),v[c.index]=ht(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 LHe(e,t,n,r,a){var i=e.get(EHe)||0;i&&(xx.attr({scaleX:t[0],scaleY:t[1],rotation:n}),xx.updateTransform(),i/=xx.getLineScale(),i*=t[r.valueDim.index]),a.valueLineWidth=i||0}function RHe(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=Wr(e.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var S=ht(b,t[h.index]),x=Math.max(p+S*2,0),C=_?0:S*2,w=xE(r),k=w?r:BB((m+C)/x),M=m-k*p;S=M/2/(_?k:Math.max(k-1,1)),x=p+S*2,C=_?0:S*2,!w&&r!=="fixed"&&(k=u?BB((Math.abs(u)+C)/x):0),g=k*x-C,f.repeatTimes=k,f.symbolMargin=S}var I=v*(g/2),E=f.pathPosition=[];E[d.index]=n[d.wh]/2,E[h.index]=o==="start"?I:o==="end"?l-I:l/2,i&&(E[0]+=i[0],E[1]+=i[1]);var D=f.bundlePosition=[];D[d.index]=n[d.xy],D[h.index]=n[h.xy];var P=f.barRectShape=Ge({},n);P[h.wh]=v*Math.max(Math.abs(n[h.wh]),Math.abs(E[h.index]+I)),P[d.wh]=n[d.wh];var N=f.clipShape={};N[d.xy]=-n[d.xy],N[d.wh]=c.ecSize[d.wh],N[h.xy]=0,N[h.wh]=n[h.wh]}function sY(e){var t=e.symbolPatternSize,n=Er(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function lY(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(tD(e,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?Xd(p,null,v(c),n,r):Xd(p,null,{scaleX:0,scaleY:0},n,r,function(){a.remove(p)}),c++});c<u;c++){var d=sY(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var h=v(c);Xd(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 uY(e,t,n,r){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?Xd(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=sY(n),a.add(i),Xd(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 cY(e,t,n){var r=Ge({},t.barRectShape),a=e.__pictorialBarRect;a?Xd(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new xn({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function fY(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,i=Ge({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)In(a,{shape:i},s,l);else{i[o.wh]=0,a=new xn({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],Lm[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function RB(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=OHe,n.isAnimationEnabled=NHe,n}function OHe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function NHe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function OB(e,t,n,r){var a=new zt,i=new zt;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?lY(a,t,n):uY(a,t,n),cY(a,n,r),fY(a,t,n,r),a.__pictorialShapeStr=dY(e,n),a.__pictorialSymbolMeta=n,a}function $He(e,t,n){var r=n.animationModel,a=n.dataIndex,i=e.__pictorialBundle;In(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?lY(e,t,n,!0):uY(e,t,n,!0),cY(e,n,!0),fY(e,t,n,!0)}function NB(e,t,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];tD(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),K(i,function(o){_u(o,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function dY(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function tD(e,t,n){K(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function Xd(e,t,n,r,a,i){t&&e.attr(t),r.symbolClip&&!a?n&&e.attr(n):n&&Lm[a?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function $B(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");tD(e,function(p){if(p instanceof ea){var g=p.style;p.useStyle(Ge({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;fa(v,Yr(a),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:kh(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),mr(e,c,f,i.get("disabled"))}function BB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const BHe=IHe;var VHe=function(e){Ae(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=$u(M1.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}(M1);const FHe=VHe;function zHe(e){e.registerChartView(BHe),e.registerSeriesModel(FHe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Xt(jK,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,YK("pictorialBar"))}var HHe=function(e){Ae(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 il(this._layersSeries||[],l,d,d),v=[];h.add(bt(p,this,"add")).update(bt(p,this,"update")).remove(bt(p,this,"remove")).execute();function p(g,m,b){var _=o._layers;if(g==="remove"){s.remove(_[m]);return}for(var S=[],x=[],C,w=l[m].indices,k=0;k<w.length;k++){var M=i.getItemLayout(w[k]),I=M.x,E=M.y0,D=M.y;S.push(I,E),x.push(I,E+D),C=i.getItemVisual(w[k],"style")}var P,N=i.getItemLayout(w[0]),z=n.getModel("label"),F=z.get("margin"),B=n.getModel("emphasis");if(g==="add"){var V=v[m]=new zt;P=new NU({shape:{points:S,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),V.add(P),s.add(V),n.isAnimationEnabled()&&P.setClipPath(WHe(P.getBoundingRect(),n,function(){P.removeClipPath()}))}else{var V=_[b];P=V.childAt(0),s.add(V),v[m]=V,In(P,{shape:{points:S,stackedOnPoints:x}},n),No(P)}fa(P,Yr(n),{labelDataIndex:w[k-1],defaultText:i.getName(w[k-1]),inheritColor:C.fill},{normal:{verticalAlign:"middle"}}),P.setTextConfig({position:null,local:!0});var L=P.getTextContent();L&&(L.x=N.x-F,L.y=N.y0+N.y/2),P.useStyle(C),i.setItemGraphicEl(m,P),ca(P,n),mr(P,B.get("focus"),B.get("blurScope"),B.get("disabled"))}this._layersSeries=l,this._layers=v},t.type="themeRiver",t}(Un);function WHe(e,t,n){var r=new xn({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return rr(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}const GHe=HHe;var kx=2,KHe=function(e){Ae(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 Hm(bt(this.getData,this),bt(this.getRawData,this))},t.prototype.fixData=function(n){var r=n.length,a={},i=GT(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",Pr).models[0],i=a.get("type"),o=Bn(n.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Mt(),c=0,f=0;f<s.length;++f)l.push(s[f][kx]),u.get(s[f][kx])||(u.set(s[f][kx],c),c++);var d=rv(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:S1(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new _a(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=GT(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){Xe(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 qr("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}(Jn);const UHe=KHe;function jHe(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]=ht(s[0],o.height),s[1]=ht(s[1],o.height);var u=o.height-s[0]-s[1];VB(r,n,u)}else{s[0]=ht(s[0],o.width),s[1]=ht(s[1],o.width);var c=o.width-s[0]-s[1];VB(r,n,c)}r.setLayout("layoutInfo",i)})}function VB(e,t,n){if(e.count())for(var r=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=et(a,function(g){return et(g.indices,function(m){var b=r.dataToPoint(e.get(i,m));return b[1]=e.get(o,m),b})}),l=YHe(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 YHe(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 qHe(e){e.registerChartView(GHe),e.registerSeriesModel(UHe),e.registerLayout(jHe),e.registerProcessor(zm("themeRiver"))}var XHe=2,ZHe=4,QHe=function(e){Ae(t,e);function t(n,r,a,i){var o=e.call(this)||this;o.z2=XHe,o.textConfig={inside:!0},Zt(o).seriesIndex=r.seriesIndex;var s=new Cn({z2:ZHe,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;Zt(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=Ge({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var h=r.getVisual("decal");h&&(d.decal=Th(h,o));var v=qc(l.getModel("itemStyle"),f,!0);Ge(f,v),K(za,function(b){var _=s.ensureState(b),S=l.getModel([b,"itemStyle"]);_.style=S.getItemStyle();var x=qc(S,f);x&&(_.shape=x)}),n?(s.setShape(f),s.shape.r=c.r0,rr(s,{shape:{r:c.r}},a,r.dataIndex)):(In(s,{shape:f},a),No(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;mr(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,K($g,function(m){var b=m==="normal"?a.getModel("label"):a.getModel([m,"label"]),_=m==="normal",S=_?d:d.ensureState(m),x=n.getFormattedLabel(h,m);_&&(x=x||r.node.name),S.style=Yn(b,{},null,m!=="normal",!0),x&&(S.style.text=x);var C=b.get("show");C!=null&&!_&&(S.ignore=!C);var w=g(b,"position"),k=_?f:f.states[m],M=k.style.fill;k.textConfig={outsideFill:b.get("color")==="inherit"?M:null,inside:w!=="outside"};var I,E=g(b,"distance")||0,D=g(b,"align");w==="outside"?(I=o.r+E,D=l>Math.PI/2?"right":"left"):!D||D==="center"?(s===2*Math.PI&&o.r0===0?I=0:I=(o.r+o.r0)/2,D="center"):D==="left"?(I=o.r0+E,l>Math.PI/2&&(D="right")):D==="right"&&(I=o.r-E,l>Math.PI/2&&(D="left")),S.style.align=D,S.style.verticalAlign=g(b,"verticalAlign")||"middle",S.x=I*u+o.cx,S.y=I*c+o.cy;var P=g(b,"rotate"),N=0;P==="radial"?(N=Co(-l),N>Math.PI/2&&N<Math.PI*1.5&&(N+=Math.PI)):P==="tangential"?(N=Math.PI/2-l,N>Math.PI/2?N-=Math.PI:N<-Math.PI/2&&(N+=Math.PI)):kn(P)&&(N=P*Math.PI/180),S.rotation=Co(N)});function g(m,b){var _=m.get(b);return _??i.get(b)}d.dirtyStyle()},t}(Ha);const FB=QHe;var Wk="sunburstRootToNode",zB="sunburstHighlight",JHe="sunburstUnhighlight";function eWe(e){e.registerAction({type:Wk,update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"sunburst",query:t},r);function r(a,i){var o=Zg(t,[Wk],a);if(o){var s=a.getViewRoot();s&&(t.direction=FI(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:zB,update:"none"},function(t,n,r){t=Ge({},t),n.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Zg(t,[zB],i);o&&(t.dataIndex=o.node.dataIndex)}r.dispatchAction(Ge(t,{type:"highlight"}))}),e.registerAction({type:JHe,update:"updateView"},function(t,n,r){t=Ge({},t),r.dispatchAction(Ge(t,{type:"downplay"}))})}var tWe=function(e){Ae(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 il(_,b,S,S).add(x).update(x).remove(Xt(x,null)).execute();function S(C){return C.getId()}function x(C,w){var k=C==null?null:b[C],M=w==null?null:_[w];p(k,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 S=new FB(b,n,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}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 FB(b,n,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){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";d1(u,c)}}a=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Wk,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}(Un);const nWe=tWe;var rWe=function(e){Ae(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};hY(a);var i=this._levelModels=et(n.levels||[],function(l){return new Gn(l,this,r)},this),o=VI.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=Cw(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(){mj(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}(Jn);function hY(e){var t=0;K(e.children,function(r){hY(r);var a=r.value;Xe(a)&&(a=a[0]),t+=a});var n=e.value;Xe(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Xe(e.value)?e.value[0]=n:e.value=n}const aWe=rWe;var HB=Math.PI/180;function iWe(e,t,n){t.eachSeriesByType(e,function(r){var a=r.get("center"),i=r.get("radius");Xe(i)||(i=[0,i]),Xe(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=ht(a[0],o),c=ht(a[1],s),f=ht(i[0],l/2),d=ht(i[1],l/2),h=-r.get("startAngle")*HB,v=r.get("minAngle")*HB,p=r.getData().tree.root,g=r.getViewRoot(),m=g.depth,b=r.get("sort");b!=null&&vY(g,b);var _=0;K(g.children,function(F){!isNaN(F.getValue())&&_++});var S=g.getValue(),x=Math.PI/(S||_)*2,C=g.depth>0,w=g.height-(C?-1:1),k=(d-f)/(w||1),M=r.get("clockwise"),I=r.get("stillShowZeroSum"),E=M?1:-1,D=function(F,B){if(F){var V=B;if(F!==p){var L=F.getValue(),G=S===0&&I?x:L*x;G<v&&(G=v),V=B+E*G;var q=F.depth-m-(C?-1:1),Q=f+k*q,ie=f+k*(q+1),de=r.getLevelModel(F);if(de){var oe=de.get("r0",!0),se=de.get("r",!0),le=de.get("radius",!0);le!=null&&(oe=le[0],se=le[1]),oe!=null&&(Q=ht(oe,l/2)),se!=null&&(ie=ht(se,l/2))}F.setLayout({angle:G,startAngle:B,endAngle:V,clockwise:M,cx:u,cy:c,r0:Q,r:ie})}if(F.children&&F.children.length){var ne=0;K(F.children,function(Ce){ne+=D(Ce,B+ne)})}return V-B}};if(C){var P=f,N=f+k,z=Math.PI*2;p.setLayout({angle:z,startAngle:h,endAngle:h+z,clockwise:M,cx:u,cy:c,r0:P,r:N})}D(g,h)})}function vY(e,t){var n=e.children||[];e.children=oWe(n,t),n.length&&K(e.children,function(r){vY(r,t)})}function oWe(e,t){if(Et(t)){var n=et(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)}),et(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 sWe(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&&yt(s)&&(s=t1(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");Ge(u,l)})})}function lWe(e){e.registerChartView(nWe),e.registerSeriesModel(aWe),e.registerLayout(Xt(iWe,"sunburst")),e.registerProcessor(Xt(zm,"sunburst")),e.registerVisual(sWe),eWe(e)}var WB={color:"fill",borderColor:"stroke"},uWe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},qs=Mn(),cWe=function(e){Ae(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 As(null,this)},t.prototype.getDataParams=function(n,r,a){var i=e.prototype.getDataParams.call(this,n,r);return a&&(i.info=qs(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}(Jn);const fWe=cWe;function dWe(e,t){return t=t||[0,0],et(["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 hWe(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:bt(dWe,e)}}}function vWe(e,t){return t=t||[0,0],et([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 pWe(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:bt(vWe,e)}}}function gWe(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 mWe(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:bt(gWe,e)}}}function yWe(e,t){return t=t||[0,0],et(["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 bWe(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:bt(yWe,e)}}}function _We(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 pY(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||wt(e,"text")))}function gY(e,t,n){var r=e,a,i,o;if(t==="text")o=r;else{o={},wt(r,"text")&&(o.text=r.text),wt(r,"rich")&&(o.rich=r.rich),wt(r,"textFill")&&(o.fill=r.textFill),wt(r,"textStroke")&&(o.stroke=r.textStroke),wt(r,"fontFamily")&&(o.fontFamily=r.fontFamily),wt(r,"fontSize")&&(o.fontSize=r.fontSize),wt(r,"fontStyle")&&(o.fontStyle=r.fontStyle),wt(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=wt(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),wt(r,"textPosition")&&(a.position=r.textPosition),wt(r,"textOffset")&&(a.offset=r.textOffset),wt(r,"textRotation")&&(a.rotation=r.textRotation),wt(r,"textDistance")&&(a.distance=r.textDistance)}return GB(o,e),K(o.rich,function(l){GB(l,l)}),{textConfig:a,textContent:i}}function GB(e,t){t&&(t.font=t.textFont||t.font,wt(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),wt(t,"textAlign")&&(e.align=t.textAlign),wt(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),wt(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),wt(t,"textWidth")&&(e.width=t.textWidth),wt(t,"textHeight")&&(e.height=t.textHeight),wt(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),wt(t,"textPadding")&&(e.padding=t.textPadding),wt(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),wt(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),wt(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),wt(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),wt(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),wt(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),wt(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function KB(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";UB(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,K(t.rich,function(s){UB(s,s)}),r}function UB(e,t){t&&(wt(t,"fill")&&(e.textFill=t.fill),wt(t,"stroke")&&(e.textStroke=t.fill),wt(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),wt(t,"font")&&(e.font=t.font),wt(t,"fontStyle")&&(e.fontStyle=t.fontStyle),wt(t,"fontWeight")&&(e.fontWeight=t.fontWeight),wt(t,"fontSize")&&(e.fontSize=t.fontSize),wt(t,"fontFamily")&&(e.fontFamily=t.fontFamily),wt(t,"align")&&(e.textAlign=t.align),wt(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),wt(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),wt(t,"width")&&(e.textWidth=t.width),wt(t,"height")&&(e.textHeight=t.height),wt(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),wt(t,"padding")&&(e.textPadding=t.padding),wt(t,"borderColor")&&(e.textBorderColor=t.borderColor),wt(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),wt(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),wt(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),wt(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),wt(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),wt(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),wt(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),wt(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),wt(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),wt(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var mY={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},jB=mn(mY);Ji(ws,function(e,t){return e[t]=1,e},{});ws.join(", ");var O1=["","style","shape","extra"],Eh=Mn();function nD(e,t,n,r,a){var i=e+"Animation",o=Kh(e,r,a)||{},s=Eh(t).userDuring;return o.duration>0&&(o.during=s?bt(TWe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Ge(o,n[i]),o}function yb(e,t,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=Eh(e),u=t.style;l.userDuring=t.during;var c={},f={};if(MWe(e,t,f),qB("shape",t,f),qB("extra",t,f),!i&&s&&(kWe(e,t,c),YB("shape",e,t,c),YB("extra",e,t,c),AWe(e,t,u,c)),f.style=u,wWe(e,f,o),CWe(e,t),s)if(i){var d={};K(O1,function(v){var p=v?t[v]:t;p&&p.enterFrom&&(v&&(d[v]=d[v]||{}),Ge(v?d[v]:d,p.enterFrom))});var h=nD("enter",e,t,n,a);h.duration>0&&e.animateFrom(d,h)}else SWe(e,t,a||0,n,c);yY(e,t),u?e.dirty():e.markRedraw()}function yY(e,t){for(var n=Eh(e).leaveToProps,r=0;r<O1.length;r++){var a=O1[r],i=a?t[a]:t;i&&i.leaveTo&&(n||(n=Eh(e).leaveToProps={}),a&&(n[a]=n[a]||{}),Ge(a?n[a]:n,i.leaveTo))}}function kw(e,t,n,r){if(e){var a=e.parent,i=Eh(e).leaveToProps;if(i){var o=nD("update",e,t,n,0);o.done=function(){a.remove(e),r&&r()},e.animateTo(i,o)}else a.remove(e),r&&r()}}function uf(e){return e==="all"}function wWe(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 SWe(e,t,n,r,a){if(a){var i=nD("update",e,t,r,n);i.duration>0&&e.animateFrom(a,i)}}function CWe(e,t){wt(t,"silent")&&(e.silent=t.silent),wt(t,"ignore")&&(e.ignore=t.ignore),e instanceof eo&&wt(t,"invisible")&&(e.invisible=t.invisible),e instanceof dn&&wt(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Jo={},xWe={setTransform:function(e,t){return Jo.el[e]=t,this},getTransform:function(e){return Jo.el[e]},setShape:function(e,t){var n=Jo.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=Jo.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=Jo.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=Jo.el.style;if(t)return t[e]},setExtra:function(e,t){var n=Jo.el.extra||(Jo.el.extra={});return n[e]=t,this},getExtra:function(e){var t=Jo.el.extra;if(t)return t[e]}};function TWe(){var e=this,t=e.el;if(t){var n=Eh(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}Jo.el=t,r(xWe)}}function YB(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]={}),uf(l))Ge(o,i);else for(var u=Kn(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(uf(s)||sn(s,e)>=0){!o&&(o=r[e]={});for(var h=mn(i),c=0;c<h.length;c++){var f=h[c],d=i[f];EWe(a[f],d)&&(o[f]=d)}}}}}function qB(e,t,n){var r=t[e];if(r)for(var a=n[e]={},i=mn(r),o=0;o<i.length;o++){var s=i[o];a[s]=Rp(r[s])}}function kWe(e,t,n){for(var r=t.transition,a=uf(r)?ws:Kn(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 MWe(e,t,n){for(var r=0;r<jB.length;r++){var a=jB[r],i=mY[a],o=t[a];o&&(n[i[0]]=o[0],n[i[1]]=o[1])}for(var r=0;r<ws.length;r++){var s=ws[r];t[s]!=null&&(n[s]=t[s])}}function AWe(e,t,n,r){if(n){var a=e.style,i;if(a){var o=n.transition,s=t.transition;if(o&&!uf(o)){var l=Kn(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&&(uf(s)||uf(o)||sn(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=r.style={});for(var v=mn(n),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function EWe(e,t){return ua(e)?e!==t:e!=null&&isFinite(e)}var bY=Mn(),IWe=["percent","easing","shape","style","extra"];function _Y(e){e.stopAnimation("keyframe"),e.attr(bY(e))}function N1(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(Xe(t)){K(t,function(s){N1(e,s,n)});return}var r=t.keyframes,a=t.duration;if(n&&a==null){var i=Kh("enter",n,0);a=i&&i.duration}if(!(!r||!a)){var o=bY(e);K(O1,function(s){if(!(s&&!e[s])){var l;r.sort(function(u,c){return u.percent-c.percent}),K(r,function(u){var c=e.animators,f=s?u[s]:u;if(f){var d=mn(f);if(s||(d=Bn(d,function(p){return sn(IWe,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;K(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 Xs="emphasis",Ql="normal",rD="blur",aD="select",xu=[Ql,Xs,rD,aD],Mx={normal:["itemStyle"],emphasis:[Xs,"itemStyle"],blur:[rD,"itemStyle"],select:[aD,"itemStyle"]},Ax={normal:["label"],emphasis:[Xs,"label"],blur:[rD,"label"],select:[aD,"label"]},DWe=["x","y"],PWe="e\0\0",Ei={normal:{},emphasis:{},blur:{},select:{}},LWe={cartesian2d:hWe,geo:pWe,single:mWe,polar:bWe,calendar:_We};function Gk(e){return e instanceof dn}function Kk(e){return e instanceof eo}function RWe(e,t){t.copyTransform(e),Kk(t)&&Kk(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,Gk(t)&&Gk(e)&&t.setShape(e.shape))}var OWe=function(e){Ae(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=XB(n,s,r,a);o||l.removeAll(),s.diff(o).add(function(f){Ex(a,null,f,u(f,i),n,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&kw(d,qs(d).option,n)}).update(function(f,d){var h=o.getItemGraphicEl(d);Ex(a,h,f,u(f,i),n,l,s)}).execute();var c=n.get("clip",!0)?_w(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=XB(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=Ex(null,null,f,l(f,o),r,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(n){Nu(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}(Un);const NWe=OWe;function iD(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=CY(r);n=Dm(i,null,a,r.layout||"center"),qs(n).customPathData=i}else if(t==="image")n=new ea({}),qs(n).customImagePath=e.style.image;else if(t==="text")n=new Cn({});else if(t==="group")n=new zt;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=nw(t);if(!o){var s="";On(s)}n=new o}return qs(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function oD(e,t,n,r,a,i,o){_Y(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=DWe);var l=r&&r.style;if(l){if(t.type==="text"){var u=l;wt(u,"textFill")&&(u.fill=u.textFill),wt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=Gk(t)?l.decal:null;e&&f&&(f.dirty=!0,c=Th(f,e)),l.__decalPattern=c}if(Kk(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}yb(t,r,i,{dataIndex:n,isInit:o,clearStyle:!0}),N1(t,r.keyframeAnimation,i)}function wY(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),bf(i)}}function $We(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<xu.length;s++)BWe(r,t,xu[s])}}function BWe(e,t,n){var r=n===Ql,a=r?t:$1(t,n),i=a?a.z2:null,o;i!=null&&(o=r?e:e.ensureState(n),o.z2=i||0)}function XB(e,t,n,r){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):LWe[i.type](i));for(var s=Lt({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:S,style:C,ordinalRawValue:x,styleEmphasis:w,visual:I,barLayout:E,currentSeriesIndices:D,font:P},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:VWe(e.getData())},u,c,f={},d={},h={},v={},p=0;p<xu.length;p++){var g=xu[p];h[g]=e.getModel(Mx[g]),v[g]=e.getModel(Ax[g])}function m(N){return N===u?c||(c=t.getItemModel(N)):t.getItemModel(N)}function b(N,z){return t.hasItemOption?N===u?f[z]||(f[z]=m(N).getModel(Mx[z])):m(N).getModel(Mx[z]):h[z]}function _(N,z){return t.hasItemOption?N===u?d[z]||(d[z]=m(N).getModel(Ax[z])):m(N).getModel(Ax[z]):v[z]}return function(N,z){return u=N,c=null,f={},d={},a&&a(Lt({dataIndexInside:N,dataIndex:t.getRawIndex(N),actionType:z?z.type:null},l),s)};function S(N,z){return z==null&&(z=u),t.getStore().get(t.getDimensionIndex(N||0),z)}function x(N,z){z==null&&(z=u),N=N||0;var F=t.getDimensionInfo(N);if(!F){var B=t.getDimensionIndex(N);return B>=0?t.getStore().get(B,z):void 0}var V=t.get(F.name,z),L=F&&F.ordinalMeta;return L?L.categories[V]:V}function C(N,z){z==null&&(z=u);var F=t.getItemVisual(z,"style"),B=F&&F.fill,V=F&&F.opacity,L=b(z,Ql).getItemStyle();B!=null&&(L.fill=B),V!=null&&(L.opacity=V);var G={inheritColor:yt(B)?B:"#000"},q=_(z,Ql),Q=Yn(q,null,G,!1,!0);Q.text=q.getShallow("show")?nn(e.getFormattedLabel(z,Ql),kh(t,z)):null;var ie=c1(q,G,!1);return M(N,L),L=KB(L,Q,ie),N&&k(L,N),L.legacy=!0,L}function w(N,z){z==null&&(z=u);var F=b(z,Xs).getItemStyle(),B=_(z,Xs),V=Yn(B,null,null,!0,!0);V.text=B.getShallow("show")?Mo(e.getFormattedLabel(z,Xs),e.getFormattedLabel(z,Ql),kh(t,z)):null;var L=c1(B,null,!0);return M(N,F),F=KB(F,V,L),N&&k(F,N),F.legacy=!0,F}function k(N,z){for(var F in z)wt(z,F)&&(N[F]=z[F])}function M(N,z){N&&(N.textFill&&(z.textFill=N.textFill),N.textPosition&&(z.textPosition=N.textPosition))}function I(N,z){if(z==null&&(z=u),wt(WB,N)){var F=t.getItemVisual(z,"style");return F?F[WB[N]]:null}if(wt(uWe,N))return t.getItemVisual(z,N)}function E(N){if(i.type==="cartesian2d"){var z=i.getBaseAxis();return M$e(Lt({axis:z},N))}}function D(){return n.getCurrentSeriesIndices()}function P(N){return t7(N,n)}}function VWe(e){var t={};return K(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 Ex(e,t,n,r,a,i,o){if(!r){i.remove(t);return}var s=sD(e,t,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&mr(s,r.focus,r.blurScope,r.emphasisDisabled),s}function sD(e,t,n,r,a,i){var o=-1,s=t;t&&SY(t,r,a)&&(o=sn(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=iD(r),s&&RWe(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ei.normal.cfg=Ei.normal.conOpt=Ei.emphasis.cfg=Ei.emphasis.conOpt=Ei.blur.cfg=Ei.blur.conOpt=Ei.select.cfg=Ei.select.conOpt=null,Ei.isLegacy=!1,zWe(u,n,r,a,l,Ei),FWe(u,n,r,a,l),oD(e,u,n,r,Ei,a,l),wt(r,"info")&&(qs(u).info=r.info);for(var c=0;c<xu.length;c++){var f=xu[c];if(f!==Ql){var d=$1(r,f),h=lD(r,d,f);wY(f,u,d,h,Ei)}}return $We(u,r,a),r.type==="group"&&HWe(e,u,n,r,a),o>=0?i.replaceAt(u,o):i.add(u),u}function SY(e,t,n){var r=qs(e),a=t.type,i=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&UWe(i)&&CY(i)!==r.customPathData||a==="image"&&wt(o,"image")&&o.image!==r.customImagePath}function FWe(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&&SY(o,i,r)&&(o=null),o||(o=iD(i),e.setClipPath(o)),oD(null,o,t,i,null,r,a)}}function zWe(e,t,n,r,a,i){if(!e.isGroup){ZB(n,null,i),ZB(n,Xs,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=iD(o),e.setTextContent(c)),oD(null,c,t,o,null,r,a);for(var f=o&&o.style,d=0;d<xu.length;d++){var h=xu[d];if(h!==Ql){var v=i[h].conOpt;wY(h,c,v,lD(o,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function ZB(e,t,n){var r=t?$1(e,t):e,a=t?lD(e,r,Xs):e.style,i=e.type,o=r?r.textConfig:null,s=e.textContent,l=s?t?$1(s,t):s:null;if(a&&(n.isLegacy||pY(a,i,!!o,!!l))){n.isLegacy=!0;var u=gY(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 $1(e,t){return t?e?e[t]:null:e}function lD(e,t,n){var r=t&&t.style;return r==null&&n===Xs&&e&&(r=e.styleEmphasis),r}function HWe(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){GWe({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),sD(e,d,n,f,a,t)):d.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var v=t.childAt(h);WWe(t,v,a)}}}function WWe(e,t,n){t&&kw(t,qs(e).option,n)}function GWe(e){new il(e.oldChildren,e.newChildren,QB,QB,e).add(JB).update(JB).remove(KWe).execute()}function QB(e,t){var n=e&&e.name;return n??PWe+t}function JB(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,a=t!=null?n.oldChildren[t]:null;sD(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function KWe(e){var t=this.context,n=t.oldChildren[e];n&&kw(n,qs(n).option,t.seriesModel)}function CY(e){return e&&(e.pathData||e.d)}function UWe(e){return e&&(wt(e,"pathData")||wt(e,"d"))}function jWe(e){e.registerChartView(NWe),e.registerSeriesModel(fWe)}var Lc=Mn(),eV=$t,Ix=bt,YWe=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 zt,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=Xt(tV,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}rV(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=PI(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=Lc(t).pointerEl=new Lm[i.type](eV(n.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,n,r,a){if(n.label){var i=Lc(t).labelEl=new Cn(eV(n.label));t.add(i),nV(i,a)}},e.prototype.updatePointerEl=function(t,n,r){var a=Lc(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=Lc(t).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),nV(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=Uh(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){nl(u.event)},onmousedown:Ix(this._onHandleDragMove,this,0,0),drift:Ix(this._onHandleDragMove,this),ondragend:Ix(this._onHandleDragEnd,this)}),r.add(a)),rV(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Xe(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,tv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){tV(this._axisPointerModel,!n&&this._moveAnimation,this._handle,Dx(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(Dx(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(Dx(a)),Lc(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),Gg(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 tV(e,t,n,r){xY(Lc(n).lastProp,r)||(Lc(n).lastProp=r,t?In(n,r,e):(n.stopAnimation(),n.attr(r)))}function xY(e,t){if(Nt(e)&&Nt(t)){var n=!0;return K(t,function(r,a){n=n&&xY(e[a],r)}),!!n}else return e===t}function nV(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Dx(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function rV(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 uD=YWe;function cD(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 TY(e,t,n,r,a){var i=n.get("value"),o=kY(i,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Lf(s.get("padding")||0),u=s.getFont(),c=km(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),qWe(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:Yn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function qWe(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 kY(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:CI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};K(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),yt(o)?i=o.replace("{value}",i):Et(o)&&(i=o(s))}return i}function fD(e,t,n){var r=wi();return Ou(r,r,n.rotation),Lo(r,r,n.position),Io([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function MY(e,t,n,r,a,i){var o=sl.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),TY(t,r,a,i,{position:fD(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function dD(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function AY(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function aV(e,t,n,r,a,i){return{cx:e,cy:t,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var XWe=function(e){Ae(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=iV(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=cD(i),h=ZWe[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=Mk(l.model,a);MY(r,n,v,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=Mk(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=fD(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=iV(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}(uD);function iV(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var ZWe={line:function(e,t,n){var r=dD([t,n[0]],[t,n[1]],oV(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:AY([t-r/2,n[0]],[r,a],oV(e))}}};function oV(e){return e.dim==="x"?0:1}const QWe=XWe;var JWe=function(e){Ae(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}(wn);const eGe=JWe;var js=Mn(),tGe=K;function EY(e,t,n){if(!Tn.node){var r=t.getZr();js(r).records||(js(r).records={}),nGe(r,t);var a=js(r).records[e]||(js(r).records[e]={});a.handler=n}}function nGe(e,t){if(js(e).initialized)return;js(e).initialized=!0,n("click",Xt(sV,"click")),n("mousemove",Xt(sV,"mousemove")),n("globalout",aGe);function n(r,a){e.on(r,function(i){var o=iGe(t);tGe(js(e).records,function(s){s&&a(s,i,o.dispatchAction)}),rGe(o.pendings,t)})}}function rGe(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 aGe(e,t,n){e.handler("leave",null,n)}function sV(e,t,n,r){t.handler(e,n,r)}function iGe(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 Uk(e,t){if(!Tn.node){var n=t.getZr(),r=(js(n).records||{})[e];r&&(js(n).records[e]=null)}}var oGe=function(e){Ae(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";EY("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){Uk("axisPointer",r)},t.prototype.dispose=function(n,r){Uk("axisPointer",r)},t.type="axisPointer",t}(sr);const sGe=oGe;function IY(e,t){var n=[],r=e.seriesIndex,a;if(r==null||!(a=t.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=mf(i,e);if(o==null||o<0||Xe(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(et(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 lV=Mn();function lGe(e,t,n){var r=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||bt(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){bb(a)&&(a=IY({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=bb(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||bb(a),d={},h={},v={list:[],map:{}},p={showPointer:Xt(cGe,h),showTooltip:Xt(fGe,v)};K(s.coordSysMap,function(m,b){var _=l||m.containPoint(a);K(s.coordSysAxesInfo[b],function(S,x){var C=S.axis,w=pGe(u,S);if(!f&&_&&(!u||w)){var k=w&&w.value;k==null&&!l&&(k=C.pointToData(a)),k!=null&&uV(S,k,p,!1,d)}})});var g={};return K(c,function(m,b){var _=m.linkGroup;_&&!h[b]&&K(_.axesInfo,function(S,x){var C=h[x];if(S!==m&&C){var w=C.value;_.mapper&&(w=m.axis.scale.parse(_.mapper(w,cV(S),cV(m)))),g[m.key]=w}})}),K(g,function(m,b){uV(c[b],m,p,!0,d)}),dGe(h,c,d),hGe(v,a,e,o),vGe(c,o,n),d}}function uV(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=uGe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&Ge(a,s[0]),!r&&e.snap&&i.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}}function uGe(e,t){var n=t.axis,r=n.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return K(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),K(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function cGe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function fGe(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=Xg(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 dGe(e,t,n){var r=n.axesInfo=[];K(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 hGe(e,t,n,r){if(bb(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 vGe(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",i=lV(r)[a]||{},o=lV(r)[a]={};K(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&K(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];K(i,function(u,c){!o[c]&&l.push(u)}),K(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 pGe(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 cV(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 bb(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Km(e){Nf.registerAxisPointerClass("CartesianAxisPointer",QWe),e.registerComponentModel(eGe),e.registerComponentView(sGe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Xe(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=nVe(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},lGe)}function gGe(e){un(nj),un(Km)}var mGe=function(e){Ae(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=cD(i),v=bGe[d](s,l,f,c);v.style=h,n.graphicKey=v.type,n.pointer=v}var p=i.get(["label","margin"]),g=yGe(r,a,i,l,p);TY(n,a,i,o,g)},t}(uD);function yGe(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=wi();Ou(d,d,s),Lo(d,d,[r.cx,r.cy]),u=Io([o,-a],d);var h=t.getModel("axisLabel").get("rotate")||0,v=sl.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 bGe={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:dD(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:aV(t.cx,t.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:aV(t.cx,t.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const _Ge=mGe;var wGe=function(e){Ae(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}(wn);const SGe=wGe;var hD=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Pr).models[0]},t.type="polarAxis",t}(wn);Tr(hD,av);var CGe=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t}(hD),xGe=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t}(hD),vD=function(e){Ae(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}(io);vD.prototype.dataToRadius=io.prototype.dataToCoord;vD.prototype.radiusToData=io.prototype.coordToData;const TGe=vD;var kGe=Mn(),pD=function(e){Ae(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=km(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=kGe(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}(io);pD.prototype.dataToAngle=io.prototype.dataToCoord;pD.prototype.angleToData=io.prototype.coordToData;const MGe=pD;var DY=["radius","angle"],AGe=function(){function e(t){this.dimensions=DY,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new TGe,this._angleAxis=new MGe,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=fV(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=fV(n);return a===this?this.pointToData(r):null},e}();function fV(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const EGe=AGe;function IGe(e,t,n){var r=t.get("center"),a=n.getWidth(),i=n.getHeight();e.cx=ht(r[0],a),e.cy=ht(r[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:Xe(l)||(l=[0,l]);var u=[ht(l[0],s),ht(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function DGe(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();K(C1(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),K(C1(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),wf(r.scale,r.model),wf(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 PGe(e){return e.mainType==="angleAxis"}function dV(e,t){if(e.type=t.get("type"),e.scale=Nm(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),PGe(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 LGe={dimensions:DY,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,a){var i=new EGe(a+"");i.update=DGe;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");dV(o,l),dV(s,u),IGe(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",Pr).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const RGe=LGe;var OGe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function y0(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 b0(e){var t=e.getRadiusAxis();return t.inverse?0:1}function hV(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 NGe=function(e){Ae(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=et(a.getViewLabels(),function(c){c=$t(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});hV(u),hV(s),K(OGe,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&$Ge[c](this.group,n,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Nf),$Ge={axisLine:function(e,t,n,r,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=b0(n),l=s?0:1,u;i[l]===0?u=new Oo({shape:{cx:n.cx,cy:n.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Em({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[b0(n)],u=et(r,function(c){return new Gr({shape:y0(n,[l,l+s],c.coord)})});e.add(hi(u,{style:Lt(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[b0(n)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new Gr({shape:y0(n,[u,u+l],a[f][d].coord)}));e.add(hi(c,{style:Lt(s.getModel("lineStyle").getLineStyle(),Lt(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");K(o,function(f,d){var h=l,v=f.tickValue,p=i[b0(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",S=Math.abs(g[1]-b)/p<.3?"middle":g[1]>b?"top":"bottom";if(s&&s[v]){var x=s[v];Nt(x)&&x.textStyle&&(h=new Gn(x.textStyle,l,l.ecModel))}var C=new Cn({silent:sl.isLabelSilent(t),style:Yn(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:S})});if(e.add(C),c){var w=sl.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=f.rawLabel,Zt(C).eventData=w}},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 Gr({shape:y0(n,i,r[f].coord)}))}for(var f=0;f<c.length;f++)e.add(hi(c[f],{style:Lt({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 Gr({shape:y0(n,i,a[u][c].coord)}));e.add(hi(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 Ha({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(hi(c[g],{style:Lt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const BGe=NGe;var VGe=["axisLine","axisTickLabel","axisName"],FGe=["splitLine","splitArea","minorSplitLine"],zGe=function(e){Ae(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 zt;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=WGe(s,n,f),v=new sl(n,h);K(VGe,v.add,v),i.add(v.getGroup()),Pm(a,i,n),K(FGe,function(p){n.get([p,"show"])&&!o.scale.isBlank()&&HGe[p](this.group,n,s,f,d,u,c)},this)}},t.type="radiusAxis",t}(Nf),HGe={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 Oo({shape:{cx:n.cx,cy:n.cy,r:Math.max(i[f].coord,0)}}))}for(var f=0;f<c.length;f++)e.add(hi(c[f],{style:Lt({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 Oo({shape:{cx:n.cx,cy:n.cy,r:o[c][f].coord}}));e.add(hi(u,{style:Lt({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 Ha({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(hi(c[d],{style:Lt({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function WGe(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 GGe=zGe;function PY(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function LY(e,t){return t.dim+e.model.componentIndex}function KGe(e,t,n){var r={},a=UGe(Bn(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=LY(s,l),c=PY(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),S=o.mapDimension(l.dim),x=ol(o,_),C=l.dim!=="radius"||!i.get("roundCap",!0),w=v.dataToCoord(0),k=0,M=o.count();k<M;k++){var I=o.get(_,k),E=o.get(S,k),D=I>=0?"p":"n",P=w;x&&(r[c][E]||(r[c][E]={p:w,n:w}),P=r[c][E][D]);var N=void 0,z=void 0,F=void 0,B=void 0;if(v.dim==="radius"){var V=v.dataToCoord(I)-w,L=l.dataToCoord(E);Math.abs(V)<m&&(V=(V<0?-1:1)*m),N=P,z=P+V,F=L-d,B=F-h,x&&(r[c][E][D]=z)}else{var G=v.dataToCoord(I,C)-w,q=l.dataToCoord(E);Math.abs(G)<b&&(G=(G<0?-1:1)*b),N=q+d,z=N+h,F=P,B=P+G,x&&(r[c][E][D]=B)}o.setItemLayout(k,{cx:p,cy:g,r0:N,r:z,startAngle:-F*Math.PI/180,endAngle:-B*Math.PI/180,clockwise:F>=B})}}})}function UGe(e){var t={};K(e,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=LY(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=PY(r);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var v=ht(r.get("barWidth"),c),p=ht(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 K(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=ht(r.categoryGap,o),l=ht(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),K(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;K(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;K(i,function(p,g){n[a][g]=n[a][g]||{offset:v,width:p.width},v+=p.width*(1+l)})}),n}var jGe={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},YGe={splitNumber:5},qGe=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="polar",t}(sr);function XGe(e){un(Km),Nf.registerAxisPointerClass("PolarAxisPointer",_Ge),e.registerCoordinateSystem("polar",RGe),e.registerComponentModel(SGe),e.registerComponentView(qGe),Mh(e,"angle",CGe,jGe),Mh(e,"radius",xGe,YGe),e.registerComponentView(BGe),e.registerComponentView(GGe),e.registerLayout(Xt(KGe,"bar"))}function jk(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),Wr(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 ZGe=["axisLine","axisTickLabel","axisName"],QGe=["splitArea","splitLine"],JGe=function(e){Ae(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 zt;var l=jk(n),u=new sl(n,l);K(ZGe,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),K(QGe,function(c){n.get([c,"show"])&&e9e[c](this,this.group,this._axisGroup,n)},this),Pm(s,this._axisGroup,n),e.prototype.render.call(this,n,r,a,i)},t.prototype.remove=function(){JU(this)},t.type="singleAxis",t}(Nf),e9e={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 Gr({shape:{x1:v[0],y1:v[1],x2:p[0],y2:p[1]},silent:!0});Ch(b.shape,l);var _=d++%s.length;f[_]=f[_]||[],f[_].push(b)}for(var S=o.getLineStyle(["color"]),g=0;g<f.length;++g)t.add(hi(f[g],{style:Lt({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(e,t,n,r){QU(e,n,r,r)}};const t9e=JGe;var RY=function(e){Ae(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}(wn);Tr(RY,av.prototype);const Px=RY;var n9e=function(e){Ae(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}(io);const r9e=n9e;var OY=["single"],a9e=function(){function e(t,n,r){this.type="single",this.dimension="single",this.dimensions=OY,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 r9e(a,Nm(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();K(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),wf(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,n){this._rect=Br({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=vV(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=vV(n);return a===this?this.pointToData(r):null},e}();function vV(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function i9e(e,t){var n=[];return e.eachComponent("singleAxis",function(r,a){var i=new a9e(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",Pr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var o9e={create:i9e,dimensions:OY};const s9e=o9e;var pV=["x","y"],l9e=["width","height"],u9e=function(e){Ae(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=Lx(l,1-B1(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=cD(i),h=c9e[f](s,c,u);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=jk(a);MY(r,n,v,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=jk(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=fD(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=B1(o),u=Lx(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=Lx(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}(uD),c9e={line:function(e,t,n){var r=dD([t,n[0]],[t,n[1]],B1(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:AY([t-r/2,n[0]],[r,a],B1(e))}}};function B1(e){return e.isHorizontal()?0:1}function Lx(e,t){var n=e.getRect();return[n[pV[t]],n[pV[t]]+n[l9e[t]]]}const f9e=u9e;var d9e=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t}(sr);function h9e(e){un(Km),Nf.registerAxisPointerClass("SingleAxisPointer",f9e),e.registerComponentView(d9e),e.registerComponentView(t9e),e.registerComponentModel(Px),Mh(e,"single",Px,Px.defaultOption),e.registerCoordinateSystem("single",s9e)}var v9e=function(e){Ae(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=Xh(n);e.prototype.init.apply(this,arguments),gV(n,i)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),gV(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}(wn);function gV(e,t){var n=e.cellSize,r;Xe(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=et([0,1],function(i){return aRe(t,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});wu(e,t,{type:"box",ignoreSize:a})}const p9e=v9e;var g9e=function(e){Ae(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 xn({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 Ka({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 yt(n)&&n?eRe(n,r):Et(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 Cn({z2:30,style:Yn(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||yt(s))&&(s&&(r=nk(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"),S=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:S},C=this._formatterLabel(_,x),w=new Cn({z2:30,style:Ge(Yn(o,{text:C}),this._monthTextPositionControl(g,v,a,u,l))});i.add(w)}}},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||yt(c)){c&&(r=nk(c)||r);var h=r.get(["time","dayOfWeekShort"]);c=h||et(r.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var v=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=ht(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 S=new Cn({z2:30,style:Ge(Yn(s,{text:c[_]}),this._weekTextPositionControl(b,i,u,f,p))});o.add(S)}}},t.type="calendar",t}(sr);const m9e=g9e;var Rx=864e5,y9e=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=Si(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];K([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=Br(o,l);K([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){Xe(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+Rx))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=mV(n);return a===this?a.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=mV(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(Xe(t)&&t.length===1&&(t=t[0]),Xe(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/Rx)-Math.floor(n[0].time/Rx)+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 mV(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}const b9e=y9e;function _9e(e){e.registerComponentModel(p9e),e.registerComponentView(m9e),e.registerCoordinateSystem("calendar",b9e)}function w9e(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 yV(e,t){var n;return K(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function S9e(e,t,n){var r=Ge({},n),a=e[t],i=n.$action||"merge";i==="merge"?a?(en(a,r,!0),wu(a,r,{ignoreSize:!0}),m7(n,a),_0(n,a),_0(n,a,"shape"),_0(n,a,"style"),_0(n,a,"extra"),n.clipPath=a.clipPath):e[t]=r:i==="replace"?e[t]=r:i==="remove"&&a&&(e[t]=null)}var NY=["transition","enterFrom","leaveTo"],C9e=NY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function _0(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?NY:C9e,a=0;a<r.length;a++){var i=r[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function x9e(e,t){if(e&&(e.hv=t.hv=[yV(t,["left","right"]),yV(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 T9e=function(e){Ae(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=e9(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];K(l,function(c,f){var d=c.newOption;d&&(u.push(d),w9e(c,d),S9e(o,f,d),x9e(o[f],d))},this),a.elements=Bn(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(n,r,a){K(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}(wn),bV={path:null,compoundPath:null,group:zt,image:ea,text:Cn},Oi=Mn(),k9e=function(e){Ae(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=Mt()},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");K(r,function(l){var u=Fr(l.id,null),c=u!=null?a.get(u):null,f=Fr(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&&pY(v,h,!!g,!!p)){var m=gY(v,h,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var b=M9e(l),_=l.$action||"merge",S=_==="merge",x=_==="replace";if(S){var C=!c,w=c;C?w=_V(u,d,l.type,a):(w&&(Oi(w).isNew=!1),_Y(w)),w&&(yb(w,b,n,{isInit:C}),wV(w,l,o,s))}else if(x){_b(c,l,a,n);var k=_V(u,d,l.type,a);k&&(yb(k,b,n,{isInit:!0}),wV(k,l,o,s))}else _==="remove"&&(yY(c,l),_b(c,l,a,n));var M=a.get(u);if(M&&p)if(S){var I=M.getTextContent();I?I.attr(p):M.setTextContent(new Cn(p))}else x&&M.setTextContent(new Cn(p));if(M){var E=l.clipPath;if(E){var D=E.type,P=void 0,C=!1;if(S){var N=M.getClipPath();C=!N||Oi(N).type!==D,P=C?Yk(D):N}else x&&(C=!0,P=Yk(D));M.setClipPath(P),yb(P,E,n,{isInit:C}),N1(P,E.keyframeAnimation,n)}var z=Oi(M);M.setTextConfig(g),z.option=l,A9e(M,n,l),jh({el:M,componentModel:n,itemName:M.name,itemTooltipOption:l.tooltip}),N1(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=Fr(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var v=h.parent,p=v===i,g=Oi(h),m=Oi(v);g.width=ht(g.option.width,p?s:m.width)||0,g.height=ht(g.option.height,p?l:m.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=Fr(f.id,null),h=d!=null?o.get(d):null;if(h){var v=h.parent,m=Oi(v),b=v===i?{width:s,height:l}:{width:m.width,height:m.height},_={},S=uw(h,f,b,null,{hv:f.hv,boundingMode:f.bounding},_);if(!Oi(h).isNew&&S){for(var x=f.transition,C={},w=0;w<u.length;w++){var k=u[w],M=_[k];x&&(uf(x)||sn(x,k)>=0)?C[k]=M:h[k]=M}In(h,C,n,0)}else h.attr(_)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){_b(a,Oi(a).option,r,n._lastGraphicModel)}),this._elMap=Mt()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(sr);function Yk(e){var t=wt(bV,e)?bV[e]:nw(e),n=new t({});return Oi(n).type=e,n}function _V(e,t,n,r){var a=Yk(n);return t.add(a),r.set(e,a),Oi(a).id=e,Oi(a).isNew=!0,a}function _b(e,t,n,r){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){_b(i,t,n,r)}),kw(e,t,r),n.removeKey(Oi(e).id))}function wV(e,t,n,r){e.isGroup||K([["cursor",eo.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];wt(t,i)?e[i]=nn(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),K(mn(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=Et(i)?i:null}}),wt(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function M9e(e){return e=Ge({},e),K(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(g7),function(t){delete e[t]}),e}function A9e(e,t,n){var r=Zt(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Zt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function E9e(e){e.registerComponentModel(T9e),e.registerComponentView(k9e),e.registerPreprocessor(function(t){var n=t.graphic;Xe(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var SV=["x","y","radius","angle","single"],I9e=["cartesian2d","polar","singleAxis"];function D9e(e){var t=e.get("coordinateSystem");return sn(I9e,t)>=0}function Jl(e){return e+"Axis"}function P9e(e,t){var n=Mt(),r=[],a=Mt();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 $Y(e){var t=e.ecModel,n={infoList:[],infoMap:Mt()};return e.eachTargetAxis(function(r,a){var i=t.getComponent(Jl(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 Ox=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}(),L9e=function(e){Ae(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=CV(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},t.prototype.mergeOption=function(n){var r=CV(n);en(this.option,n,!0),en(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;K([["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=Mt(),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 K(SV,function(a){var i=this.getReferringComponents(Jl(a),$De);if(i.specified){r=!0;var o=new Ox;K(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 Ox;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",Pr).models[0];h&&K(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Pr).models[0]&&d.add(v.componentIndex)})}}}i&&K(SV,function(u){if(i){var c=a.findComponents({mainType:Jl(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new Ox;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");K([["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(Jl(r),a))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){K(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(Jl(n),r)},t.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;K([["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;K(["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}(wn);function CV(e){var t={};return K(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}const nm=L9e;var R9e=function(e){Ae(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}(nm);const O9e=R9e;var N9e=function(e){Ae(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}(sr);const gD=N9e;var $9e=function(e){Ae(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}(gD);const B9e=$9e;var Cd=K,xV=mi,V9e=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(D9e(n)){var r=Jl(this._dimName),a=n.getReferringComponents(r,Pr).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 $t(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;Cd(["start","end"],function(d,h){var v=t[d],p=t[d+"Value"];i[h]==="percent"?(v==null&&(v=o[h]),p=a.parse($n(v,o,n))):(u=!0,p=p==null?n[h]:a.parse(p),v=$n(p,n,o)),l[h]=p==null||isNaN(p)?n[h]:p,s[h]=v==null||isNaN(v)?o[h]:v}),xV(l),xV(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";$f(0,d,v,"all",c["min"+m],c["max"+m]);for(var b=0;b<2;b++)h[b]=$n(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=F9e(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;Cd(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=et(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),S=b<o[0],x=b>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(v=!0),x&&(p=!0)}return g&&v&&p})}else Cd(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)}});Cd(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;Cd(["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=$n(r[0]+o,r,[0,100],!0):i!=null&&(o=$n(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=wE(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 F9e(e,t,n){var r=[1/0,-1/0];Cd(n,function(o){X$e(r,o.getData(),t)});var a=e.getAxisModel(),i=eU(a.axis.scale,a,r).calculate();return[i.min,i.max]}const z9e=V9e;var H9e={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(Jl(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 z9e(a,i,s,e),n.push(o.__dzAxisProxy))});var r=Mt();return K(n,function(a){K(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 W9e=H9e;function G9e(e){e.registerAction("dataZoom",function(t,n){var r=P9e(n,t);K(r,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var TV=!1;function mD(e){TV||(TV=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,W9e),G9e(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function K9e(e){e.registerComponentModel(O9e),e.registerComponentView(B9e),mD(e)}var $i=function(){function e(){}return e}(),BY={};function xd(e,t){BY[e]=t}function VY(e){return BY[e]}var U9e=function(e){Ae(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;K(this.option.feature,function(r,a){var i=VY(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),en(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}(wn);const j9e=U9e;function Y9e(e,t,n){var r=t.getBoxLayoutParams(),a=t.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=Br(r,i,a);af(t.get("orient"),e,t.get("itemGap"),o.width,o.height),uw(e,r,i,a)}function FY(e,t){var n=Lf(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new xn({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 q9e=function(e){Ae(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=[];K(u,function(v,p){f.push(p)}),new il(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 Gn(b,n,n.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(b.title=i.newTitle),g&&!m){if(X9e(g))S={onclick:_.option.onclick,featureName:g};else{var x=VY(g);if(!x)return;S=new x}c[g]=S}else if(S=c[m],!S)return;S.uid=qh("toolbox-feature"),S.model=_,S.ecModel=r,S.api=a;var C=S instanceof $i;if(!g&&m){C&&S.dispose&&S.dispose(r,a);return}if(!_.get("show")||C&&S.unusable){C&&S.remove&&S.remove(r,a);return}h(_,S,g),_.setIconStatus=function(w,k){var M=this.option,I=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[w]=k,I[w]&&(k==="emphasis"?rl:al)(I[w])},S instanceof $i&&S.render&&S.render(_,r,a,i)}function h(v,p,g){var m=v.getModel("iconStyle"),b=v.getModel(["emphasis","iconStyle"]),_=p instanceof $i&&p.getIcons?p.getIcons():v.get("icon"),S=v.get("title")||{},x,C;yt(_)?(x={},x[g]=_):x=_,yt(S)?(C={},C[g]=S):C=S;var w=v.iconPaths={};K(x,function(k,M){var I=Uh(k,{},{x:-s/2,y:-s/2,width:s,height:s});I.setStyle(m.getItemStyle());var E=I.ensureState("emphasis");E.style=b.getItemStyle();var D=new Cn({style:{text:C[M],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});I.setTextContent(D),jh({el:I,componentModel:n,itemName:M,formatterParamsExtra:{title:C[M]}}),I.__title=C[M],I.on("mouseover",function(){var P=b.getItemStyle(),N=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";D.setStyle({fill:b.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),I.setTextConfig({position:b.get("textPosition")||N}),D.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",M])!=="emphasis"&&a.leaveEmphasis(this),D.hide()}),(v.get(["iconStatus",M])==="emphasis"?rl:al)(I),o.add(I),I.on("click",bt(p.onclick,p,r,a,M)),w[M]=I})}Y9e(o,n,a),o.add(FY(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(_&&!Et(_)&&p){var S=_.style||(_.style={}),x=km(p,Cn.makeFont(S)),C=v.x+o.x,w=v.y+o.y+s,k=!1;w+x.height>a.getHeight()&&(m.position="top",k=!0);var M=k?-5-x.height:s+10;C+x.width/2>a.getWidth()?(m.position=["100%",M],S.align="right"):C-x.width/2<0&&(m.position=[0,M],S.align="left")}})},t.prototype.updateView=function(n,r,a,i){K(this._features,function(o){o instanceof $i&&o.updateView&&o.updateView(o.model,r,a,i)})},t.prototype.remove=function(n,r){K(this._features,function(a){a instanceof $i&&a.remove&&a.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){K(this._features,function(a){a instanceof $i&&a.dispose&&a.dispose(n,r)})},t.type="toolbox",t}(sr);function X9e(e){return e.indexOf("my")===0}const Z9e=q9e;var Q9e=function(e){Ae(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=Tn.browser;if(Et(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 S=_.contentWindow,x=S.document;x.open("image/svg+xml","replace"),x.write(v),x.close(),S.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var C=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(C&&C[0]||"")+'" /></body>',k=window.open();k.document.write(w),k.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}($i);const J9e=Q9e;var kV="__ec_magicType_stack__",e7e=[["line","bar"],["stack"]],t7e=function(e){Ae(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 K(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(MV[a]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,v=MV[a](d,h,f,i);v&&(Lt(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,Pr).models[0],S=_.componentIndex;s[b]=s[b]||[];for(var x=0;x<=S;x++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};K(e7e,function(f){sn(f,a)>=0&&K(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=en({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}($i),MV={line:function(e,t,n,r){if(e==="bar")return en({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 en({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")===kV;if(e==="line"||e==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),en({id:t,stack:a?"":kV},r.get(["option","stack"])||{},!0)}};zo({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const n7e=t7e;var Mw=new Array(60).join("-"),Ih="	";function r7e(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 a7e(e){var t=[];return K(e,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(et(n.series,function(h){return h.name})),l=[a.model.getCategories()];K(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(Ih)],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(Ih))}t.push(u.join(`
 
- `))}),t.join(`
 
- `+Mw+`
 
- `)}function i7e(e){return et(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+Ih:"")+a.join(Ih))}),r.join(`
 
- `)}).join(`
 
- `+Mw+`
 
- `)}function o7e(e){var t=r7e(e);return{value:Bn([a7e(t.seriesGroupByCategoryAxis),i7e(t.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
 
- `+Mw+`
 
- `),meta:t.meta}}function V1(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function s7e(e){var t=e.slice(0,e.indexOf(`
 
- `));if(t.indexOf(Ih)>=0)return!0}var qk=new RegExp("["+Ih+"]+","g");function l7e(e){for(var t=e.split(/\n+/g),n=V1(t.shift()).split(qk),r=[],a=et(n,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=V1(t[i]).split(qk);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 u7e(e){for(var t=e.split(/\n+/g),n=V1(t.shift()),r=[],a=0;a<t.length;a++){var i=V1(t[a]);if(i){var o=i.split(qk),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 c7e(e,t){var n=e.split(new RegExp(`
 
- *`+Mw+`
 
- *`,"g")),r={series:[]};return K(n,function(a,i){if(s7e(a)){var o=l7e(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=u7e(a);r.series.push(o)}}),r}var f7e=function(e){Ae(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=o7e(n);if(Et(f)){var v=f(r.getOption());yt(v)?u.innerHTML=v:wh(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"),S=document.createElement("div");b+=";background-color:"+i.get("buttonColor"),b+=";color:"+i.get("buttonTextColor");var x=this;function C(){a.removeChild(o),x._dom=null}MT(_,"click",C),MT(S,"click",function(){if(d==null&&f!=null||d!=null&&f==null){C();return}var w;try{Et(d)?w=d(u,r.getOption()):w=c7e(c.value,g)}catch(k){throw C(),new Error("Data view format error "+k)}w&&r.dispatchAction({type:"changeDataView",newOption:w}),C()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=b,!i.get("readOnly")&&m.appendChild(S),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}($i);function d7e(e,t){return et(e,function(n,r){var a=t&&t[r];if(Nt(a)&&!Xe(a)){var i=Nt(n)&&!Xe(n);i||(n={value:n});var o=a.name!=null&&n.name==null;return n=Lt(n,a),o&&delete n.name,n}else return n})}zo({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];K(e.newOption.series,function(r){var a=t.getSeriesByName(r.name)[0];if(!a)n.push(Ge({type:"scatter"},r));else{var i=a.get("data");n.push({name:r.name,data:d7e(r.data,i)})}}),t.mergeOption(Lt({series:n},e.newOption))});const h7e=f7e;var zY=K,HY=Mn();function v7e(e,t){var n=yD(e);zY(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 p7e(e){var t=yD(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return zY(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 g7e(e){HY(e).snapshots=null}function m7e(e){return yD(e).length}function yD(e){var t=HY(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var y7e=function(e){Ae(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){g7e(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}($i);zo({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const b7e=y7e;var _7e=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],w7e=function(){function e(t,n,r){var a=this;this._targetInfoList=[];var i=AV(n,t);K(S7e,function(o,s){(!r||!r.include||sn(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=Nx[r.brushType](0,i,a);r.__rangeOffset={offset:PV[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){K(t,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&K(i.coordSyses,function(o){var s=Nx[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},e.prototype.setInputRanges=function(t,n){K(t,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=Nx[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?PV[r.brushType](i.values,o.offset,C7e(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,n){return et(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:qj(a),isTargetByCursor:Zj(a,t,r.coordSysModel),getLinearBrushOtherExtent:Xj(a)}})},e.prototype.controlSeries=function(t,n,r){var a=this.findTargetInfo(t,r);return a===!0||a&&sn(a.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,a=AV(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<EV.length;l++)if(EV[l](a,o))return o}return!0},e}();function Xk(e){return e[0]>e[1]&&e.reverse(),e}function AV(e,t){return Np(e,t,{includeMainTypes:_7e})}var S7e={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,i=Mt(),o={},s={};!n&&!r&&!a||(K(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),K(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),K(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=[];K(u.getCartesians(),function(f,d){(sn(n,f.getAxis("x").model)>=0||sn(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:IV.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){K(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:IV.geo})})}},EV=[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}],IV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(su(e)),t}},Nx={lineX:Xt(DV,0),lineY:Xt(DV,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=[Xk([a[0],i[0]]),Xk([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=et(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 DV(e,t,n,r){var a=n.getAxis(["x","y"][e]),i=Xk(et([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 PV={lineX:Xt(LV,0),lineY:Xt(LV,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 et(e,function(r,a){return[r[0]-n[0]*t[a][0],r[1]-n[1]*t[a][1]]})}};function LV(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function C7e(e,t){var n=RV(e),r=RV(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 RV(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const bD=w7e;var Zk=K,x7e=PDe("toolbox-dataZoom_"),T7e=function(e){Ae(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 JI(a.getZr()),this._brushController.on("brush",bt(this._onBrush,this)).mount()),A7e(n,r,this,i,a),M7e(n,r)},t.prototype.onclick=function(n,r,a){k7e[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 bD(_D(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)}}),v7e(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=$f(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=[];Zk(n,function(a,i){r.push($t(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}($i),k7e={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(p7e(this.ecModel))}};function _D(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 M7e(e,t){e.setIconStatus("back",m7e(t)>1?"emphasis":"normal")}function A7e(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 bD(_D(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)}cRe("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=_D(r),o=Np(e,i);Zk(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Zk(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:x7e+u+f};d[c]=f,a.push(d)}return a});const E7e=T7e;function I7e(e){e.registerComponentModel(j9e),e.registerComponentView(Z9e),xd("saveAsImage",J9e),xd("magicType",n7e),xd("dataView",h7e),xd("dataZoom",E7e),xd("restore",b7e),un(K9e)}var D7e=function(e){Ae(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}(wn);const P7e=D7e;function WY(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function GY(e){if(Tn.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var KY=GY(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),L7e=GY(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function UY(e,t){if(!e)return t;t=jE(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function R7e(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var O7e=UY(L7e,"transition"),wD=UY(KY,"transform"),N7e="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Tn.transform3dSupported?"will-change:transform;":"");function $7e(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function B7e(e,t,n){if(!yt(n)||n==="inside")return"";var r=e.get("backgroundColor"),a=e.get("borderWidth");t=_f(t);var i=$7e(n),o=Math.max(Math.round(a)*1.5,6),s="",l=wD+":",u;sn(["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 V7e(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+=Tn.transformSupported?","+wD+r:",left"+r+",top"+r),O7e+":"+a}function OV(e,t,n){var r=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Tn.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=Tn.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+wD+":"+o+";":[["top",0],["left",0],[KY,o]]}function F7e(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),K(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function z7e(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=X7(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),t&&a&&r.push(V7e(a,n)),i&&r.push("background-color:"+i),K(["width","color","radius"],function(h){var v="border-"+h,p=jE(v),g=e.get(p);g!=null&&r.push(v+":"+g+(h==="color"?"":"px"))}),r.push(F7e(c)),f!=null&&r.push("padding:"+Lf(f).join("px ")+"px"),r.join(";")+";"}function NV(e,t,n,r,a){var i=t&&t.painter;if(n){var o=i&&i.getViewportRoot();o&&XEe(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 H7e=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,Tn.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;NV(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();Di(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=R7e(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=N7e+z7e(t,!this._firstShow,this._longHide)+OV(i[0],i[1],!0)+("border-color:"+_f(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(yt(i)&&r.get("trigger")==="item"&&!WY(r)&&(s=B7e(r,a,i)),yt(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Xe(t)||(t=[t]);for(var l=0;l<t.length;l++)wh(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(NV(r,this._zr,this._appendToBody,t,n),r[0]!=null&&r[1]!=null){var a=this.el.style,i=OV(r[0],r[1]);K(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",Tn.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(bt(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 W7e=H7e;var G7e=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),BV(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;Nt(t)&&On(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new Cn({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:X7(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),K(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),K(["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=$V(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;BV(a,this._zr,t,n),t=a[0],n=a[1];var i=r.style,o=Bl(i.borderWidth||0),s=$V(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(bt(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Bl(e){return Math.max(0,e)}function $V(e){var t=Bl(e.shadowBlur||0),n=Bl(e.shadowOffsetX||0),r=Bl(e.shadowOffsetY||0);return{left:Bl(t-n),right:Bl(t+n),top:Bl(t-r),bottom:Bl(t+r)}}function BV(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const K7e=G7e;var U7e=new xn({shape:{x:-1,y:-1,width:2,height:2}}),j7e=function(e){Ae(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(!(Tn.node||!r.getDom())){var a=n.getComponent("tooltip"),i=this._renderMode=VDe(a.get("renderMode"));this._tooltipContent=i==="richText"?new K7e(r):new W7e(r.getDom(),r,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(n,r,a){if(!(Tn.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")?tv(this,"_updatePosition",50,"fixRate"):Gg(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");EY("itemTooltip",this._api,bt(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||Tn.node||!a.getDom())){var o=VV(i,a);this._ticket="";var s=i.dataByCoordSys,l=Z7e(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=U7e;c.x=i.x,c.y=i.y,c.update(),Zt(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=IY(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(VV(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=Yv([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;Uc(a,function(u){if(Zt(u).dataIndex!=null)return s=u,!0;if(Zt(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=bt(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=Yv([r.tooltipOption],i),l=this._renderMode,u=[],c=qr("section",{blocks:[],noHeader:!0}),f=[],d=new _C;K(n,function(b){K(b.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var C=kY(x,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),w=qr("section",{header:C,noHeader:!zi(C),sortBlocks:!0,blocks:[]});c.blocks.push(w),K(_.seriesDataIndices,function(k){var M=a.getSeriesByIndex(k.seriesIndex),I=k.dataIndexInside,E=M.getDataParams(I);if(!(E.dataIndex<0)){E.axisDim=_.axisDim,E.axisIndex=_.axisIndex,E.axisType=_.axisType,E.axisId=_.axisId,E.axisValue=CI(S.axis,{value:x}),E.axisValueLabel=C,E.marker=d.makeTooltipMarker("item",_f(E.color),l);var D=T$(M.formatTooltip(I,!0,null)),P=D.frag;if(P){var N=Yv([M],i).get("valueFormatter");w.blocks.push(N?Ge({valueFormatter:N},P):P)}D.text&&f.push(D.text),u.push(E)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,v=s.get("order"),p=D$(c,d,l,v,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
 
- `:"<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=Zt(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=Yv([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 _C;m.marker=b.makeTooltipMarker("item",_f(m.color),h);var _=T$(u.formatTooltip(c,!1,f)),S=p.get("order"),x=p.get("valueFormatter"),C=_.frag,w=C?D$(x?Ge({valueFormatter:x},C):C,b,h,S,i.get("useUTC"),p.get("textStyle")):_.text,k="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,w,m,k,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=Zt(r),o=i.tooltipConfig,s=o.option||{};if(yt(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=Yv(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",p=new _C;this._showOrMove(d,function(){var g=$t(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(yt(d)){var g=n.ecModel.get("useUTC"),m=Xe(a)?a[0]:a,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,b&&(h=Rm(m.axisValue,h,g)),h=YE(h,a,!0)}else if(Et(d)){var _=bt(function(S,x){S===this._ticket&&(f.setContent(x,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"||Xe(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Xe(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),Et(r)&&(r=r([a,i],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),Xe(r))a=ht(r[0],u),i=ht(r[1],c);else if(Nt(r)){var p=r;p.width=f[0],p.height=f[1];var g=Br(p,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(yt(r)&&l){var m=X7e(r,v,f,n.get("borderWidth"));a=m[0],i=m[1]}else{var m=Y7e(a,i,o,u,c,d?null:20,h?null:20);a=m[0],i=m[1]}if(d&&(a-=FV(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=FV(h)?f[1]/2:h==="bottom"?f[1]:0),WY(n)){var m=q7e(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&&K(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&K(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&&K(p,function(m,b){var _=g[b];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&K(d.seriesDataIndices,function(m){var b=m.seriesIndex,_=r[b],S=i[b];_&&S&&S.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){Tn.node||!r.getDom()||(Gg(this,"_updatePosition"),this._tooltipContent.dispose(),Uk("itemTooltip",r))},t.type="tooltip",t}(sr);function Yv(e,t,n){var r=t.ecModel,a;n?(a=new Gn(n,r,r),a=new Gn(t.option,a,r)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Gn&&(o=o.get("tooltip",!0)),yt(o)&&(o={formatter:o}),o&&(a=new Gn(o,a,r)))}return a}function VV(e,t){return e.dispatchAction||bt(t.dispatchAction,t)}function Y7e(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 q7e(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 X7e(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 FV(e){return e==="center"||e==="middle"}function Z7e(e,t,n){var r=kE(e).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=Mm(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=Zt(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const Q7e=j7e;function J7e(e){un(Km),e.registerComponentModel(P7e),e.registerComponentView(Q7e),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Cr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Cr)}var eKe=["rect","polygon","keep","clear"];function tKe(e,t){var n=Kn(e?e.brush:[]);if(n.length){var r=[];K(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=e&&e.toolbox;Xe(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),nKe(s),t&&!s.length&&s.push.apply(s,eKe)}}function nKe(e){var t={};K(e,function(n){t[n]=1}),e.length=0,K(t,function(n,r){e.push(r)})}var zV=K;function HV(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function Qk(e,t,n){var r={};return zV(t,function(i){var o=r[i]=a();zV(e[i],function(s,l){if(sa.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new sa(u),l==="opacity"&&(u=$t(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new sa(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function jY(e,t,n){var r;K(n,function(a){t.hasOwnProperty(a)&&HV(t[a])&&(r=!0)}),r&&K(n,function(a){t.hasOwnProperty(a)&&HV(t[a])?e[a]=$t(t[a]):delete e[a]})}function rKe(e,t,n,r,a,i){var o={};K(e,function(f){var d=sa.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return oI(n,s,f)}function u(f,d){oK(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 aKe(e,t,n,r){var a={};return K(e,function(i){var o=sa.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(x){return oI(s,f,x)}function c(x,C){oK(s,f,x,C)}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 S=m[b];g[S]&&g[S].applyVisual(v,u,c)}}}}}function iKe(e){var t=e.brushType,n={point:function(r){return WV[t].point(r,n,e)},rect:function(r){return WV[t].rect(r,n,e)}};return n}var WV={lineX:GV(0),lineY:GV(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])&&Dc(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(Dc(r,a,i)||Dc(r,a+o,i)||Dc(r,a,i+s)||Dc(r,a+o,i+s)||rn.create(e).contain(l[0],l[1])||sp(a,i,a+o,i,r)||sp(a,i,a,i+s,r)||sp(a+o,i,a+o,i+s,r)||sp(a,i+s,a+o,i+s,r))return!0}}};function GV(e){var t=["x","y"],n=["width","height"];return{point:function(r,a,i){if(r){var o=i.range,s=r[e];return qv(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(),qv(s[0],o)||qv(s[1],o)||qv(o[0],s)||qv(o[1],s)}}}}function qv(e,t){return t[0]<=e&&e<=t[1]}var KV=["inBrush","outOfBrush"],$x="__ecBrushSelect",Jk="__ecInBrushSelectEvent";function YY(e){e.eachComponent({mainType:"brush"},function(t){var n=t.brushTargetManager=new bD(t.option,e);n.setInputRanges(t.areas,e)})}function oKe(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})}),YY(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:$t(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=et(o.areas,function(x){var C=cKe[x.brushType],w=Lt({boundingRect:C?C(x):void 0},x);return w.selectors=iKe(w),w}),g=Qk(o.option,KV,function(x){x.mappingMethod="fixed"});Xe(c)&&K(c,function(x){f[x]=1});function m(x){return c==="all"||!!f[x]}function b(x){return!!x.length}e.eachSeries(function(x,C){var w=h[C]=[];x.subType==="parallel"?_(x,C):S(x,C,w)});function _(x,C){var w=x.coordinateSystem;v=v||w.hasAxisBrushed(),m(C)&&w.eachActiveState(x.getData(),function(k,M){k==="active"&&(d[M]=1)})}function S(x,C,w){if(!(!x.brushSelector||uKe(o,C))&&(K(p,function(M){o.brushTargetManager.controlSeries(M,x,e)&&w.push(M),v=v||b(w)}),m(C)&&b(w))){var k=x.getData();k.each(function(M){UV(x,w,k,M)&&(d[M]=1)})}}e.eachSeries(function(x,C){var w={seriesId:x.id,seriesIndex:C,seriesName:x.name,dataIndex:[]};l.selected.push(w);var k=h[C],M=x.getData(),I=m(C)?function(E){return d[E]?(w.dataIndex.push(M.getRawIndex(E)),"inBrush"):"outOfBrush"}:function(E){return UV(x,k,M,E)?(w.dataIndex.push(M.getRawIndex(E)),"inBrush"):"outOfBrush"};(m(C)?v:b(k))&&rKe(KV,g,M,I)})}),sKe(t,a,i,r,n)}function sKe(e,t,n,r,a){if(a){var i=e.getZr();if(!i[Jk]){i[$x]||(i[$x]=lKe);var o=tv(i,$x,n,t);o(e,r)}}}function lKe(e,t){if(!e.isDisposed()){var n=e.getZr();n[Jk]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[Jk]=!1}}function UV(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 uKe(e,t){var n=e.option.seriesIndex;return n!=null&&n!=="all"&&(Xe(n)?sn(n,t)<0:t!==n)}var cKe={rect:function(e){return jV(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&&jV(t)}};function jV(e){return new rn(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var fKe=function(e){Ae(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 JI(r.getZr())).on("brush",bt(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){YY(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:$t(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:$t(a),$from:r})},t.type="brush",t}(sr);const dKe=fKe;var hKe="#ddd",vKe=function(e){Ae(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&&jY(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:hKe},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=et(n,function(r){return YV(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=YV(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}(wn);function YV(e,t){return en({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Gn(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const pKe=vKe;var gKe=["rect","polygon","lineX","lineY","keep","clear"],mKe=function(e){Ae(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,K(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 K(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:gKe.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}($i);const yKe=mKe;function bKe(e){e.registerComponentView(dKe),e.registerComponentModel(pKe),e.registerPreprocessor(tKe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,oKe),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"},Cr),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Cr),xd("brush",yKe)}var _Ke=function(e){Ae(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}(wn),wKe=function(e){Ae(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=nn(n.get("textBaseline"),n.get("textVerticalAlign")),c=new Cn({style:Yn(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),h=new Cn({style:Yn(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(){d1(v,"_"+n.get("target"))}),p&&h.on("click",function(){d1(p,"_"+n.get("subtarget"))}),Zt(c).eventData=Zt(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 _=Br(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 S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),m=i.getBoundingRect();var x=_.margin,C=n.getItemStyle(["color","opacity"]);C.fill=n.get("backgroundColor");var w=new xn({shape:{x:m.x-x[3],y:m.y-x[0],width:m.width+x[1]+x[3],height:m.height+x[0]+x[2],r:n.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(w)}},t.type="title",t}(sr);function SKe(e){e.registerComponentModel(_Ke),e.registerComponentView(wKe)}var CKe=function(e){Ae(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=[],K(r,function(u,c){var f=Fr(Hh(u),""),d;Nt(u)?(d=$t(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 _a([{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}(wn);const qV=CKe;var qY=function(e){Ae(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=$u(qV.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}(qV);Tr(qY,nI.prototype);const xKe=qY;var TKe=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(sr);const kKe=TKe;var MKe=function(e){Ae(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}(io);const AKe=MKe;var Bx=Math.PI,XV=Mn(),EKe=function(e){Ae(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 qr("nameValue",{noName:!0,value:c})},K(["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=DKe(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?"+":"-":yt(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:Bx/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*Bx/180;var b,_,S,x=d.get("position",!0),C=h&&d.get("showPlayBtn",!0),w=h&&d.get("showPrevBtn",!0),k=h&&d.get("showNextBtn",!0),M=0,I=f;x==="left"||x==="bottom"?(C&&(b=[0,0],M+=g),w&&(_=[M,0],M+=g),k&&(S=[I-v,0],I-=g)):(C&&(b=[I-v,0],I-=g),w&&(_=[0,0],M+=g),k&&(S=[I-v,0],I-=g));var E=[M,I];return n.get("inverse")&&E.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:S,axisExtent:E,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=wi(),l=o.x,u=o.y+o.height;Lo(s,s,[-l,-u]),Ou(s,s,-Bx/2),Lo(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||yt(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(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,x,C,w,k){S[w]+=C[w][k]-x[w][k]}},t.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=IKe(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 AKe("value",o,n.axisExtent,i);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new zt;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 Gr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Ge({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new Gr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Lt({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=[],K(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:bt(o._changeTimeline,o,u.value)},g=ZV(f,d,r,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=v.getItemStyle(),ou(g);var m=Zt(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=[],K(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 Cn({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:bt(o._changeTimeline,o,f),silent:!1,style:Yn(h,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});m.ensureState("emphasis").style=Yn(v),m.ensureState("progress").style=Yn(p),r.add(m),ou(m),XV(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",bt(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",bt(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",bt(this._handlePlayClick,this,!c),!0);function d(h,v,p,g){if(h){var m=Ro(nn(i.get(["controlStyle",v+"BtnSize"]),o),o),b=[0,-m/2,m,m],_=PKe(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(_),ou(_)}}},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=bt(u._handlePointerDrag,u),f.ondragend=bt(u._handlePointerDragend,u),QV(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){QV(f,u._progressLine,s,a,i)}};this._currentPointer=ZV(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=mi(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 Io(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",XV(a[i]).dataIndex<=n)},t.type="timeline.slider",t}(kKe);function IKe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new bI({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new QK({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new Su}}function DKe(e,t){return Br(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function PKe(e,t,n,r){var a=r.style,i=Uh(e.get(["controlStyle",t]),r||{},new rn(n[0],n[1],n[2],n[3]));return a&&i.setStyle(a),i}function ZV(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=Er(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=en({rectHover:!0,z2:100},r,!0);var u=nv(e.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Rf(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 QV(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 LKe=EKe;function RKe(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)}),Lt({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 OKe(e){var t=e&&e.timeline;Xe(t)||(t=t?[t]:[]),K(t,function(n){n&&NKe(n)})}function NKe(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),JV(e),Rc(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});Rc(r,"position")||(r.position=e.controlPosition),r.position==="none"&&!Rc(r,"show")&&(r.show=!1,delete r.position),delete e.controlPosition}K(e.data||[],function(a){Nt(a)&&!Xe(a)&&(!Rc(a,"value")&&Rc(a,"name")&&(a.value=a.name),JV(a))})}function JV(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};K(r,function(o,s){!i[s]&&!Rc(a,s)&&(a[s]=o)}),n.label&&!Rc(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function Rc(e,t){return e.hasOwnProperty(t)}function $Ke(e){e.registerComponentModel(xKe),e.registerComponentView(LKe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),RKe(e),e.registerPreprocessor(OKe)}function SD(e,t){if(!e)return!1;for(var n=Xe(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function w0(e){gf(e,"label",["show"])}var S0=Mn(),XY=function(e){Ae(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(Tn.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=S0(s)[o];if(!l||!l.data){S0(s)[o]=null;return}u?u._mergeOption(l,r,!0):(i&&w0(l),K(l.data,function(c){c instanceof Array?(w0(c[0]),w0(c[1])):w0(c)}),u=this.createMarkerModelFromSeries(l,this,r),Ge(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),S0(s)[o]=u},this)},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return qr("section",{header:this.name,blocks:[qr("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 S0(n)[r]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(wn);Tr(XY,nI.prototype);const Tu=XY;var BKe=function(e){Ae(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}(Tu);const VKe=BKe;function eM(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function FKe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function C0(e,t,n,r,a,i){var o=[],s=ol(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,u=CD(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=So(t.get(r,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var Vx={min:Xt(C0,"min"),max:Xt(C0,"max"),average:Xt(C0,"average"),median:Xt(C0,"median")};function rm(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!FKe(t)&&!Xe(t.coord)&&Xe(a)){var i=ZY(t,n,r,e);if(t=$t(t),t.type&&Vx[t.type]&&i.baseAxis&&i.valueAxis){var o=sn(a,i.baseAxis.dim),s=sn(a,i.valueAxis.dim),l=Vx[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||!Xe(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)Vx[u[c]]&&(u[c]=CD(n,n.mapDimension(a[c]),u[c]));return t}}function ZY(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(zKe(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 zKe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function am(e,t){return e&&e.containData&&t.coord&&!eM(t)?e.containData(t.coord):!0}function HKe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!eM(t)&&!eM(n)?e.containZone(t.coord,n.coord):!0}function QY(e,t){return e?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return uu(o,t[i])}:function(n,r,a,i){return uu(n.value,t[i])}}function CD(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 Fx=Mn(),WKe=function(e){Ae(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=Mt()},t.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){Fx(s).keep=!1}),r.eachSeries(function(s){var l=Tu.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!Fx(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(n){Fx(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var a=this;K(n,function(i){var o=Tu.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?T9(l):PE(l))})}})},t.type="marker",t}(sr);const xD=WKe;function e5(e,t,n){var r=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=ht(i.get("x"),n.getWidth()),l=ht(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 GKe=function(e){Ae(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=Tu.getMarkerModelFromSeries(i,"markPoint");o&&(e5(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 Vm),f=KKe(o,n,r);r.setData(f),e5(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(Et(v)||Et(p)||Et(g)||Et(m)){var _=r.getRawValue(d),S=r.getDataParams(d);Et(v)&&(v=v(_,S)),Et(p)&&(p=p(_,S)),Et(g)&&(g=g(_,S)),Et(m)&&(m=m(_,S))}var x=h.getModel("itemStyle").getItemStyle(),C=Om(l,"color");x.fill||(x.fill=C),f.setItemVisual(d,{symbol:v,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:b,style:x})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){Zt(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(xD);function KKe(e,t,n){var r;e?r=et(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Ge(Ge({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new _a(r,n),i=et(n.get("data"),Xt(rm,t));e&&(i=Bn(i,Xt(am,e)));var o=QY(!!e,r);return a.initData(i,null,o),a}const UKe=GKe;function jKe(e){e.registerComponentModel(VKe),e.registerComponentView(UKe),e.registerPreprocessor(function(t){SD(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var YKe=function(e){Ae(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}(Tu);const qKe=YKe;var x0=Mn(),XKe=function(e,t,n,r){var a=e.getData(),i;if(Xe(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=Wr(r.yAxis,r.xAxis);else{var u=ZY(r,a,t,e);s=u.valueAxis;var c=yI(a,u.valueDataDim);l=CD(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=$t(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&&kn(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=[rm(e,i[0]),rm(e,i[1]),Ge({},i[2])];return g[2].type=g[2].type||null,en(g[2],g[0]),en(g[2],g[1]),g};function F1(e){return!isNaN(e)&&!isFinite(e)}function t5(e,t,n,r){var a=1-e,i=r.dimensions[e];return F1(t[a])&&F1(n[a])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function ZKe(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(t5(1,n,r,e)||t5(0,n,r,e)))return!0}return am(e,t[0])&&am(e,t[1])}function zx(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=ht(o.get("x"),a.getWidth()),u=ht(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(Of(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),c=i.dimensions;F1(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):F1(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 QKe=function(e){Ae(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=Tu.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=x0(o).from,u=x0(o).to;l.each(function(c){zx(l,c,!0,i,a),zx(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 jI);this.group.add(c.group);var f=JKe(o,n,r),d=f.from,h=f.to,v=f.line;x0(r).from=d,x0(r).to=h,r.setData(v);var p=r.get("symbol"),g=r.get("symbolSize"),m=r.get("symbolRotate"),b=r.get("symbolOffset");Xe(p)||(p=[p,p]),Xe(g)||(g=[g,g]),Xe(m)||(m=[m,m]),Xe(b)||(b=[b,b]),f.from.each(function(S){_(d,S,!0),_(h,S,!1)}),v.each(function(S){var x=v.getItemModel(S).getModel("lineStyle").getLineStyle();v.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),x.stroke==null&&(x.stroke=d.getItemVisual(S,"style").fill),v.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:x})}),c.updateData(v),f.line.eachItemGraphicEl(function(S){Zt(S).dataModel=r,S.traverse(function(x){Zt(x).dataModel=r})});function _(S,x,C){var w=S.getItemModel(x);zx(S,x,C,n,i);var k=w.getModel("itemStyle").getItemStyle();k.fill==null&&(k.fill=Om(l,"color")),S.setItemVisual(x,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:nn(w.get("symbolOffset",!0),b[C?0:1]),symbolRotate:nn(w.get("symbolRotate",!0),m[C?0:1]),symbolSize:nn(w.get("symbolSize"),g[C?0:1]),symbol:nn(w.get("symbol",!0),p[C?0:1]),style:k})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(xD);function JKe(e,t,n){var r;e?r=et(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Ge(Ge({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new _a(r,n),i=new _a(r,n),o=new _a([],n),s=et(n.get("data"),Xt(XKe,t,e,n));e&&(s=Bn(s,Xt(ZKe,e)));var l=QY(!!e,r);return a.initData(et(s,function(u){return u[0]}),null,l),i.initData(et(s,function(u){return u[1]}),null,l),o.initData(et(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const eUe=QKe;function tUe(e){e.registerComponentModel(qKe),e.registerComponentView(eUe),e.registerPreprocessor(function(t){SD(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var nUe=function(e){Ae(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}(Tu);const rUe=nUe;var T0=Mn(),aUe=function(e,t,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=rm(e,a),s=rm(e,i),l=o.coord,u=s.coord;l[0]=Wr(l[0],-1/0),l[1]=Wr(l[1],-1/0),u[0]=Wr(u[0],1/0),u[1]=Wr(u[1],1/0);var c=V_([{},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 z1(e){return!isNaN(e)&&!isFinite(e)}function n5(e,t,n,r){var a=1-e;return z1(t[a])&&z1(n[a])}function iUe(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 Of(e,"cartesian2d")?n&&r&&(n5(1,n,r)||n5(0,n,r))?!0:HKe(e,a,i):am(e,a)||am(e,i)}function r5(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=ht(o.get(n[0]),a.getWidth()),u=ht(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(Of(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),p=e.get(n[0],t),g=e.get(n[1],t);z1(p)?s[0]=b.toGlobalCoord(b.getExtent()[n[0]==="x0"?0:1]):z1(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var a5=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],oUe=function(e){Ae(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=Tu.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=et(a5,function(f){return r5(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 zt});this.group.add(c.group),this.markKeep(c);var f=sUe(o,n,r);r.setData(f),f.each(function(d){var h=et(a5,function(k){return r5(f,d,k,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))];mi(b),mi(_);var S=!(g[0]>b[1]||g[1]<b[0]||m[0]>_[1]||m[1]<_[0]),x=!S;f.setItemLayout(d,{points:h,allClipped:x});var C=f.getItemModel(d).getModel("itemStyle").getItemStyle(),w=Om(l,"color");C.fill||(C.fill=w,yt(C.fill)&&(C.fill=Dg(C.fill,.4))),C.stroke||(C.stroke=w),f.setItemVisual(d,"style",C)}),f.diff(T0(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var v=new Wa({shape:{points:h.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,h){var v=T0(c).data.getItemGraphicEl(h),p=f.getItemLayout(d);p.allClipped?v&&c.group.remove(v):(v?In(v,{shape:{points:p.points}},r,d):v=new Wa({shape:{points:p.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var h=T0(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")),fa(d,Yr(v),{labelFetcher:r,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:yt(p.fill)?Dg(p.fill,1):"#000"}),ca(d,v),mr(d,null,null,v.get(["emphasis","disabled"])),Zt(d).dataModel=r}),T0(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(xD);function sUe(e,t,n){var r,a,i=["x0","y0","x1","y1"];if(e){var o=et(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Ge(Ge({},f),{name:u,ordinalMeta:null})});a=et(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new _a(a,n)}else a=[{name:"value",type:"float"}],r=new _a(a,n);var s=et(n.get("data"),Xt(aUe,t,e,n));e&&(s=Bn(s,Xt(iUe,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return uu(h,a[d])}:function(u,c,f,d){return uu(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}const lUe=oUe;function uUe(e){e.registerComponentModel(rUe),e.registerComponentView(lUe),e.registerPreprocessor(function(t){SD(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var cUe=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"])}},fUe=function(e){Ae(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"]),Xe(r)&&K(r,function(i,o){yt(i)&&(i={type:i}),r[o]=en(i,cUe(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&&TE(l)&&r.push(l.name)}),this._availableNames=a;var i=this.get("data")||r,o=Mt(),s=et(i,function(l){return(yt(l)||kn(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Gn(l,this,this.ecModel))},this);this._data=Bn(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;K(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;K(n,function(a){r[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;K(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])&&sn(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}(wn);const tM=fUe;var fd=Xt,nM=K,k0=zt,dUe=function(e){Ae(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 k0),this.group.add(this._selectorGroup=new k0),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=Br(c,f,d),v=this.layoutInner(n,o,h,i,l,u),p=Br(Lt({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=FY(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=Mt(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),nM(r.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
 
- `)){var g=new k0;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")||{},S=b.getVisual("legendIcon"),x=b.getVisual("style"),C=this._createItem(m,p,v,h,r,n,_,x,S,f,i);C.on("click",fd(i5,p,null,i,d)).on("mouseover",fd(rM,m.name,null,i,d)).on("mouseout",fd(aM,m.name,null,i,d)),c.set(p,!0)}else a.eachRawSeries(function(w){if(!c.get(p)&&w.legendVisualProvider){var k=w.legendVisualProvider;if(!k.containName(p))return;var M=k.indexOfName(p),I=k.getItemVisual(M,"style"),E=k.getItemVisual(M,"legendIcon"),D=Na(I.fill);D&&D[3]===0&&(D[3]=.2,I=Ge(Ge({},I),{fill:Eo(D,"rgba")}));var P=this._createItem(w,p,v,h,r,n,{},I,E,f,i);P.on("click",fd(i5,null,p,i,d)).on("mouseover",fd(rM,null,p,i,d)).on("mouseout",fd(aM,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();nM(n,function(u){var c=u.type,f=new Cn({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"]);fa(f,{normal:d,emphasis:h},{defaultText:u.title}),ou(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 S=hUe(c,i,l,u,h,g,d),x=new k0,C=i.getModel("textStyle");if(Et(n.getLegendIcon)&&(!_||_==="inherit"))x.add(n.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var w=_==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;x.add(vUe({itemWidth:v,itemHeight:p,icon:c,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var k=s==="left"?v+5:-5,M=s,I=o.get("formatter"),E=r;yt(I)&&I?E=I.replace("{name}",r??""):Et(I)&&(E=I(r));var D=g?C.getTextColor():i.get("inactiveColor");x.add(new Cn({style:Yn(C,{text:E,x:k,y:p/2,fill:D,align:M,verticalAlign:"middle"},{inheritColor:D})}));var P=new xn({shape:x.getBoundingRect(),invisible:!0}),N=i.getModel("tooltip");return N.get("show")&&jh({el:P,componentModel:o,itemName:r,itemTooltipOption:N.option}),x.add(P),x.eachChild(function(z){z.silent=!0}),P.silent=!f,this.getContentGroup().add(x),ou(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();af(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){af("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}(sr);function hUe(e,t,n,r,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),nM(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:Th(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 vUe(e){var t=e.icon||"roundRect",n=Er(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 i5(e,t,n,r){aM(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),rM(e,t,n,r)}function JY(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 rM(e,t,n,r){JY(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function aM(e,t,n,r){JY(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}const eq=dUe;function pUe(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 Xv(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();K(s,function(l){var u=l.get("name");if(!(u===`
 
- `||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 gUe(e){e.registerAction("legendToggleSelect","legendselectchanged",Xt(Xv,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Xt(Xv,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Xt(Xv,"inverseSelect")),e.registerAction("legendSelect","legendselected",Xt(Xv,"select")),e.registerAction("legendUnSelect","legendunselected",Xt(Xv,"unSelect"))}function tq(e){e.registerComponentModel(tM),e.registerComponentView(eq),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,pUe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),gUe(e)}var mUe=function(e){Ae(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=Xh(n);e.prototype.init.call(this,n,r,a),o5(this,n,i)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),o5(this,this.option,n)},t.type="legend.scroll",t.defaultOption=$u(tM.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}(tM);function o5(e,t,n){var r=e.getOrient(),a=[1,1];a[r.index]=0,wu(t,n,{type:"box",ignoreSize:!!a})}const yUe=mUe;var s5=zt,Hx=["width","height"],Wx=["x","y"],bUe=function(e){Ae(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 s5),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new s5)},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=Xe(f)?f:[f,f];v("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new Cn({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=Uh(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:bt(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=Hx[u],f=Wx[u],d=Hx[1-u],h=Wx[1-u];o&&af("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=$t(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;af(n.get("orient"),c,n.get("itemGap"),i?a.width:null,i?null:a.height),af("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],_=nn(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(p){var S=n.get("pageButtonPosition",!0);S==="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 x={x:0,y:0};if(x[o]=p?a[o]:h[o],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+b[1-i]),f.__rectSize=a[o],p){var C={x:0,y:0};C[o]=Math.max(a[o]-v[o]-_,0),C[s]=x[s],f.setClipPath(new xn({shape:C})),f.__rectSize=C[o]}else d.eachChild(function(k){k.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(n);return w.pageIndex!=null&&In(c,{x:w.contentPosition[0],y:w.contentPosition[1]},p?n:null),this._updatePageInfoView(n,w),x},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;K(["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",yt(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=Hx[o],l=Wx[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=S(f);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,b=p,_=null;g<=d;++g)_=S(c[g]),(!_&&b.e>m.s+i||_&&!x(_,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)_=S(c[g]),(!_||!x(b,_.s))&&m.i<b.i&&(b=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function S(C){if(C){var w=C.getBoundingRect(),k=w[l]+C[l];return{s:k,e:k+w[s],i:C.__legendDataIndex}}}function x(C,w){return C.e>=w&&C.s<=w+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}(eq);const _Ue=bUe;function wUe(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 SUe(e){un(tq),e.registerComponentModel(yUe),e.registerComponentView(_Ue),wUe(e)}function CUe(e){un(tq),un(SUe)}var xUe=function(e){Ae(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=$u(nm.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(nm);const TUe=xUe;var TD=Mn();function kUe(e,t,n){TD(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function MUe(e,t){for(var n=TD(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||nq(n,o))}}}function nq(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function AUe(e,t){var n={model:t,containsPoint:Xt(IUe,t),dispatchAction:Xt(EUe,e),dataZoomInfoMap:null,controller:null},r=n.controller=new Wm(e.getZr());return K(["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 EUe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function IUe(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function DUe(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 PUe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=TD(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=Mt());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=$Y(i);K(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,AUe(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Mt());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){nq(a,i);return}var c=DUe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),tv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var LUe=function(e){Ae(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(),kUe(a,n,{pan:bt(Gx.pan,this),zoom:bt(Gx.zoom,this),scrollMove:bt(Gx.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){MUe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(gD),Gx={zoom:function(e,t,n,r){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=Kx[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($f(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:l5(function(e,t,n,r,a,i){var o=Kx[r]([i.oldX,i.oldY],[i.newX,i.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:l5(function(e,t,n,r,a,i){var o=Kx[r]([0,0],[i.scrollDelta,i.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*i.scrollDelta})};function l5(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($f(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Kx={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 RUe=LUe;function rq(e){mD(e),e.registerComponentModel(TUe),e.registerComponentView(RUe),PUe(e)}var OUe=function(e){Ae(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=$u(nm.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}(nm);const NUe=OUe;var Zv=xn,u5=7,$Ue=1,Ux=30,BUe=7,Qv="horizontal",c5="vertical",VUe=5,FUe=["line","bar","candlestick","scatter"],zUe={easing:"cubicOut",duration:100,delay:0},HUe=function(e){Ae(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=bt(this._onBrush,this),this._onBrushEnd=bt(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,i){if(e.prototype.render.apply(this,arguments),tv(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(){Gg(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 zt;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?BUe:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Qv?{right:s.width-o.x-o.width,top:s.height-Ux-u5-i,width:o.width,height:Ux}:{right:u5,top:o.y,width:Ux,height:o.height},u=Xh(n.option);K(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Br(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===c5&&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===Qv&&!o?{scaleY:l?1:-1,scaleX:1}:a===Qv&&o?{scaleY:l?1:-1,scaleX:-1}:a===c5&&!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 Zv({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new Zv({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:bt(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]),S;o.each([l],function(M,I){if(_>0&&I%_){b+=m;return}var E=M==null||isNaN(M)||M==="",D=E?0:$n(M,f,h,!0);E&&!S&&I?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!E&&S&&(p.push([b,0]),g.push([b,0])),p.push([b,D]),g.push([b,D]),b+=m,S=E}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var x=this.dataZoomModel;function C(M){var I=x.getModel(M?"selectedDataBackground":"dataBackground"),E=new zt,D=new Wa({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Ka({shape:{points:c},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return E.add(D),E.add(P),E}for(var w=0;w<3;w++){var k=C(w===1);this._displayables.sliderGroup.add(k),this._displayables.dataShadowSegs.push(k)}},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();K(l,function(u){if(!a&&!(r!==!0&&sn(FUe,u.get("type"))<0)){var c=i.getComponent(Jl(o),s).axis,f=WUe(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 Zv({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Zv({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:$Ue,fill:"rgba(0,0,0,0)"}})),K([0,1],function(_){var S=l.get("handleIcon");!p1[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var x=Er(S,-1,0,2,2,null,!0);x.attr({cursor:f5(this._orient),draggable:!0,drift:bt(this._onDragMove,this,_),ondragend:bt(this._onDragEnd,this),onmouseover:bt(this._showDataInfo,this,!0),onmouseout:bt(this._showDataInfo,this,!1),z2:5});var C=x.getBoundingRect(),w=l.get("handleSize");this._handleHeight=ht(w,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ou(x);var k=l.get("handleColor");k!=null&&(x.style.fill=k),o.add(a[_]=x);var M=l.getModel("textStyle");n.add(i[_]=new Cn({silent:!0,invisible:!0,style:Yn(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=ht(l.get("moveHandleSize"),s[1]),p=r.moveHandle=new xn({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=Er(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 xn({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:f5(this._orient),drift:bt(this._onDragMove,this,"all"),ondragstart:bt(this._showDataInfo,this,!0),ondragend:bt(this._onDragEnd,this),onmouseover:bt(this._showDataInfo,this,!0),onmouseout:bt(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[$n(n[0],[0,100],r,!0),$n(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];$f(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?$n(s.minSpan,l,o,!0):null,s.maxSpan!=null?$n(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=mi([$n(i[0],o,l,!0),$n(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=mi(a.slice()),o=this._size;K([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 xn,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=mi(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var p=su(a.handles[v].parent,this.group),g=rw(v===0?"right":"left",p),m=this._handleWidth/2+VUe,b=Io([d[v]+(v===0?-m:m),this._size[1]/2],p);i[v].setStyle({x:b[0],y:b[1],verticalAlign:o===Qv?"middle":g,align:o===Qv?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 Et(i)?i(n,s):yt(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,nl(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Io([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 tn(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=mi([$n(a.x,o,s,!0),$n(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&&(nl(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 Zv({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?zUe:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=$Y(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}(gD);function WUe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function f5(e){return e==="vertical"?"ns-resize":"ew-resize"}const GUe=HUe;function aq(e){e.registerComponentModel(NUe),e.registerComponentView(GUe),mD(e)}function KUe(e){un(rq),un(aq)}var UUe={get:function(e,t,n){var r=$t((jUe[e]||{})[t]);return n&&Xe(r)?r[r.length-1]:r}},jUe={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 iq=UUe;var d5=sa.mapVisual,YUe=sa.eachVisual,qUe=Xe,h5=K,XUe=mi,ZUe=$n,QUe=function(e){Ae(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&&jY(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=bt(n,this),this.controllerVisuals=Qk(this.option.controller,r,n),this.targetVisuals=Qk(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=Kn(n),r},t.prototype.eachTargetSeries=function(n,r){K(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||["<",">"],Xe(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(yt(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Et(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=XUe([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={});en(i,a),en(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){qUe(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]={},h5(v,function(g,m){if(sa.isValidType(m)){var b=iq.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";h5(this.stateList,function(m){var b=this.itemSize,_=f[m];_||(_=f[m]={color:s?v:[v]}),_.symbol==null&&(_.symbol=d&&$t(d)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&$t(h)||(s?b[0]:[b[0],b[0]])),_.symbol=d5(_.symbol,function(C){return C==="none"?g:C});var S=_.symbolSize;if(S!=null){var x=-1/0;YUe(S,function(C){C>x&&(x=C)}),_.symbolSize=d5(S,function(C){return ZUe(C,[0,x],[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}(wn);const H1=QUe;var v5=[20,140],JUe=function(e){Ae(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]=v5[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=v5[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):Xe(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),K(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=mi((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=p5(this,"outOfRange",this.getExtent()),a=p5(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=$u(H1.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}(H1);function p5(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 eje=JUe;var tje=function(e){Ae(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=Lf(r.get("padding")||0),i=n.getBoundingRect();n.add(new xn({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=sa.prepareVisualTypes(f);return K(d,function(h){var v=f[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=f.__alphaForOpacity),sa.dependsOn(h,r)&&v&&v.applyVisual(n,u,c)}),s[r]},t.prototype.positionGroup=function(n){var r=this.visualMapModel,a=this.api;uw(n,r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(n,r,a,i){},t.type="visualMap",t}(sr);const oq=tje;var g5=[["left","right","width"],["top","bottom","height"]];function sq(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=g5[o],l=[0,null,10],u={},c=0;c<3;c++)u[g5[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=Br(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 wb(e,t){return K(e||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var es=$n,nje=K,m5=Math.min,jx=Math.max,rje=12,aje=6,ije=function(e){Ae(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 Cn({style:Yn(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=sq(r,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new zt;u.add(c),c.add(a.outOfRange=y5()),c.add(a.inRange=y5(null,s?_5(this._orient):null,bt(this._dragHandle,this,"all",!1),bt(this._dragHandle,this,"all",!0))),c.setClipPath(new xn({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=jx(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=bt(this._dragHandle,this,a,!1),u=bt(this._dragHandle,this,a,!0),c=Ro(n.get("handleSize"),i[0]),f=Er(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=_5(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){nl(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(),Gc(f,!0),r.add(f);var h=this.visualMapModel.textStyleModel,v=new Cn({cursor:d,draggable:!0,drift:l,onmousemove:function(m){nl(m.event)},ondragend:u,style:Yn(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=Ro(n.get("indicatorSize"),a[0]),l=Er(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 ea){var c=l.style;l.useStyle(Ge({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 Cn({silent:!0,invisible:!0,style:Yn(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?i/2:aje)+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():b5(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=[es(r[0],a,i,!0),es(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]];$f(r,i,o,n,0);var s=a.getExtent();this._dataInterval=[es(i[0],o,s,!0),es(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 Gh(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 zt(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();nje([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=es(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=Io(a.handleLabelPoints[c],su(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=es(n,s,u,!0),g=l[0]-v/2,m={x:f.x,y:f.y};f.y=p,f.x=g;var b=Io(c.indicatorLabelPoint,su(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),x=this._orient,C=x==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:C?S:"middle",align:C?"center":S});var w={x:g,y:p,style:{fill:h}},k={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(w,M),_.animateTo(k,M)}else f.attr(w),_.attr(k);this._firstShowIndicator=!1;var I=this._shapes.handleLabels;if(I)for(var E=0;E<I.length;E++)this._api.enterBlur(I[E])}},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]=m5(jx(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=m5(jx(o[0],n),o[1]);var l=oje(a,s,o),u=[n-l,n+l],c=es(n,o,s,!0),f=[es(u[0],o,s,!0),es(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||b5(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=ODe(d,h);this._dispatchHighDown("downplay",wb(v[0],a)),this._dispatchHighDown("highlight",wb(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Uc(n.target,function(l){var u=Zt(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",wb(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=su(r,i?null:this.group);return Xe(n)?Io(n,o,a):rw(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}(oq);function y5(e,t,n,r){return new Wa({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(a){nl(a.event)},ondragend:r})}function oje(e,t,n){var r=rje/2,a=e.get("hoverLinkDataSize");return a&&(r=es(a,t,n,!0)/2),r}function b5(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function _5(e){return e==="vertical"?"ns-resize":"ew-resize"}const sje=ije;var lje={type:"selectDataRange",event:"dataRangeSelected",update:"update"},uje=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(n){n.setSelected(e.selected)})},cje=[{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(aKe(r.stateList,r.targetVisuals,bt(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(bt(fje,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function fje(e,t,n,r){for(var a=t.targetVisuals[r],i=sa.prepareVisualTypes(a),o={color:Om(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 w5=K;function dje(e){var t=e&&e.visualMap;Xe(t)||(t=t?[t]:[]),w5(t,function(n){if(n){dd(n,"splitList")&&!dd(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&Xe(r)&&w5(r,function(a){Nt(a)&&(dd(a,"start")&&!dd(a,"min")&&(a.min=a.start),dd(a,"end")&&!dd(a,"max")&&(a.max=a.end))})}})}function dd(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var S5=!1;function lq(e){S5||(S5=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(lje,uje),K(cje,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(dje))}function uq(e){e.registerComponentModel(eje),e.registerComponentView(sje),lq(e)}var hje=function(e){Ae(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=[],vje[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=$t(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=et(this._pieceList,function(l){return l=$t(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=sa.listVisualTypes(),i=this.isCategory();K(n.pieces,function(s){K(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),K(r,function(s,l){var u=!1;K(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&K(this.stateList,function(c){(n[c]||(n[c]={}))[l]=iq.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,K(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;K(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=$t(n)},t.prototype.getValueState=function(n){var r=sa.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=sa.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 K(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=$u(H1.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}(H1),vje={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]}),WT(e),K(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;K(t.categories,function(n){e.push({text:this.formatValueText(n,!0),value:n})},this),C5(t,e)},pieces:function(e){var t=this.option;K(t.pieces,function(n,r){Nt(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=sa.retrieveVisuals(n),e.push(a)},this),C5(t,e),WT(e),K(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 C5(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}const pje=hje;var gje=function(e){Ae(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=Wr(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),K(c.viewPieceList,function(h){var v=h.piece,p=new zt;p.onclick=bt(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 Cn({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),af(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:wb(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return sq(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 zt,l=this.visualMapModel.textStyleModel;s.add(new Cn({style:Yn(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=et(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(Er(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=$t(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,K(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}(oq);const mje=gje;function cq(e){e.registerComponentModel(pje),e.registerComponentView(mje),lq(e)}function yje(e){un(uq),un(cq)}var bje={label:{enabled:!0},decal:{show:!1}},x5=Mn(),_je={};function wje(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=$t(bje);en(r.label,e.getLocaleModel().get("aria"),!1),en(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=Mt();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),x5(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Et(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var b=ik(d.ecModel,d.name,_je,e.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,b))}else{var v=d.getRawData(),p={},g=x5(d).scope;h.each(function(x){var C=h.getRawIndex(x);p[C]=x});var m=v.count();v.each(function(x){var C=p[x],w=v.getName(x)||x+"",k=ik(d.ecModel,w,g,m),M=h.getItemVisual(C,"decal");h.setItemVisual(C,"decal",S(M,k))})}function S(x,C){var w=x?Ge(Ge({},C),x):C;return w.dirty=!0,w}})}}function i(){var u=e.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=Lt(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 _=[],S=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(k,M){if(M<p){var I=void 0,E=k.get("name"),D=E?"withName":"withoutName";I=d>1?c.get(["series","multiple",D]):c.get(["series","single",D]),I=o(I,{seriesId:k.seriesIndex,seriesName:k.get("name"),seriesType:l(k.subType)});var P=k.getData();if(P.count()>h){var N=c.get(["data","partialData"]);I+=o(N,{displayCnt:h})}else I+=c.get(["data","allData"]);for(var z=c.get(["data","separator","middle"]),F=c.get(["data","separator","end"]),B=[],V=0;V<P.count();V++)if(V<h){var L=P.getName(V),G=P.getValues(V),q=c.get(["data",L?"withName":"withoutName"]);B.push(o(q,{name:L,value:G.join(z)}))}I+=B.join(z)+F,_.push(I)}});var x=c.getModel(["series","multiple","separator"]),C=x.get("middle"),w=x.get("end");g+=_.join(C)+w,f.setAttribute("aria-label",g)}}}function o(u,c){if(!yt(u))return u;var f=u;return K(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 Sje(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},K(["description","general","series","data"],function(n){t[n]!=null&&(t.label[n]=t[n])})}}function Cje(e){e.registerPreprocessor(Sje),e.registerVisual(e.PRIORITY.VISUAL.ARIA,wje)}var T5={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},xje=function(){function e(t){var n=this._condVal=yt(t)?new RegExp(t):cG(t)?t:null;if(n==null){var r="";On(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return yt(n)?this._condVal.test(t):kn(n)?this._condVal.test(t+""):!1},e}(),Tje=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),kje=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}(),Mje=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}(),Aje=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),Eje=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 kD(e,t){if(e===!0||e===!1){var n=new Tje;return n.value=e,n}var r="";return fq(e)||On(r),e.and?k5("and",e,t):e.or?k5("or",e,t):e.not?Ije(e,t):Dje(e,t)}function k5(e,t,n){var r=t[e],a="";Xe(r)||On(a),r.length||On(a);var i=e==="and"?new kje:new Mje;return i.children=et(r,function(o){return kD(o,n)}),i.children.length||On(a),i}function Ije(e,t){var n=e.not,r="";fq(n)||On(r);var a=new Aje;return a.child=kD(n,t),a.child||On(r),a}function Dje(e,t){for(var n="",r=t.prepareGetValue(e),a=[],i=mn(e),o=e.parser,s=o?$7(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=wt(T5,u)?T5[u]:u,f=e[u],d=s?s(f):f,h=YRe(c,d)||c==="reg"&&new xje(d);h||On(n),a.push(h)}}a.length||On(n);var v=new Eje;return v.valueGetterParam=r,v.valueParser=s,v.getValue=t.getValue,v.subCondList=a,v}function fq(e){return Nt(e)&&!ua(e)}var Pje=function(){function e(t,n){this._cond=kD(t,n)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function Lje(e,t){return new Pje(e,t)}var Rje={type:"echarts:filter",transform:function(e){for(var t=e.upstream,n,r=Lje(e.config,{valueGetterAttrMap:Mt({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;wt(s,"dimension")||On(l);var c=t.getDimensionInfo(u);return c||On(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}}},Oje={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",a=Kn(n);a.length||On(r);var i=[];K(a,function(c){var f=c.dimension,d=c.order,h=c.parser,v=c.incomparable;if(f==null&&On(r),d!=="asc"&&d!=="desc"&&On(r),v&&v!=="min"&&v!=="max"){var p="";On(p)}if(d!=="asc"&&d!=="desc"){var g="";On(g)}var m=t.getDimensionInfo(f);m||On(r);var b=h?$7(h):null;h&&!b&&On(r),i.push({dimIdx:m.index,parser:b,comparator:new V7(d,v)})});var o=t.sourceFormat;o!==Ca&&o!==ao&&On(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 Nje(e){e.registerTransform(Rje),e.registerTransform(Oje)}var $je=function(e){Ae(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 W7(this),E$(this)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),E$(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:ps},t}(wn),Bje=function(e){Ae(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.type="dataset",t}(sr);function Vje(e){e.registerComponentModel($je),e.registerComponentView(Bje)}var Qo=Cs.CMD;function Pd(e,t){return Math.abs(e-t)<1e-5}function iM(e){var t=e.data,n=e.len(),r=[],a,i=0,o=0,s=0,l=0;function u(P,N){a&&a.length>2&&r.push(a),a=[P,N]}function c(P,N,z,F){Pd(P,z)&&Pd(N,F)||a.push(P,N,z,F,z,F)}function f(P,N,z,F,B,V){var L=Math.abs(N-P),G=Math.tan(L/4)*4/3,q=N<P?-1:1,Q=Math.cos(P),ie=Math.sin(P),de=Math.cos(N),oe=Math.sin(N),se=Q*B+z,le=ie*V+F,ne=de*B+z,Ce=oe*V+F,Te=B*G*q,he=V*G*q;a.push(se-Te*ie,le+he*Q,ne+Te*oe,Ce-he*de,ne,Ce)}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===Qo.L||m===Qo.C||m===Qo.Q)&&(a=[s,l])),m){case Qo.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case Qo.L:d=t[g++],h=t[g++],c(i,o,d,h),i=d,o=h;break;case Qo.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case Qo.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 Qo.A:var _=t[g++],S=t[g++],x=t[g++],C=t[g++],w=t[g++],k=t[g++]+w;g+=1;var M=!t[g++];d=Math.cos(w)*x+_,h=Math.sin(w)*C+S,b?(s=d,l=h,u(s,l)):c(i,o,d,h),i=Math.cos(k)*x+_,o=Math.sin(k)*C+S;for(var I=(M?-1:1)*Math.PI/2,E=w;M?E>k:E<k;E+=I){var D=M?Math.max(E+I,k):Math.min(E+I,k);f(E,D,_,S,x,C)}break;case Qo.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 Qo.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&r.push(a),r}function oM(e,t,n,r,a,i,o,s,l,u){if(Pd(e,n)&&Pd(t,r)&&Pd(a,o)&&Pd(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,S=m*m+b*b;if(_<f&&S<f){l.push(o,s);return}var x=d*p+h*g,C=-d*m-h*b,w=_-x*x,k=S-C*C;if(w<f&&x>=0&&k<f&&C>=0){l.push(o,s);return}var M=[],I=[];bu(e,n,a,o,.5,M),bu(t,r,i,s,.5,I),oM(M[0],I[0],M[1],I[1],M[2],I[2],M[3],I[3],l,u),oM(M[4],I[4],M[5],I[5],M[6],I[6],M[7],I[7],l,u)}function Fje(e,t){var n=iM(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++];oM(s,l,c,f,d,h,v,p,o,t),s=v,l=p}r.push(o)}return r}function dq(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 M5(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=dq([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 zje(e,t,n){for(var r=e.width,a=e.height,i=r>a,o=dq([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 A5(e,t,n,r){return e*r-n*t}function Hje(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=A5(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-a,v=t-i,p=A5(h,v,c,f)/d;return p<0||p>1?null:new tn(p*l+e,p*u+t)}function Wje(e,t,n){var r=new tn;tn.sub(r,n,t),r.normalize();var a=new tn;tn.sub(a,e,t);var i=a.dot(r);return i}function hd(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function Gje(e,t,n){for(var r=e.length,a=[],i=0;i<r;i++){var o=e[i],s=e[(i+1)%r],l=Hje(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&a.push({projPt:Wje(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++)hd(v,e[i].slice());hd(v,h),hd(v,d);for(var i=c.idx+1;i<=u.idx+r;i++)hd(p,e[i%r].slice());return hd(p,d),hd(p,h),[{points:v},{points:p}]}function E5(e){var t=e.points,n=[],r=[];X_(t,n,r);var a=new rn(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 tn,c=new tn;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),Gje(t,u,c)}function W1(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);W1(e,i[0],a,r),W1(e,i[1],n-a,r)}return r}function Kje(e,t){for(var n=[],r=0;r<t;r++)n.push(RE(e));return n}function Uje(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function jje(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function Yje(e,t){var n=[],r=e.shape,a;switch(e.type){case"rect":zje(r,t,n),a=xn;break;case"sector":M5(r,t,n),a=Ha;break;case"circle":M5({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),a=Ha;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=et(Fje(e.getUpdatedPathProxy(),o),function(m){return jje(m)}),l=s.length;if(l===0)W1(E5,{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=et(s,function(m){var b=[],_=[];X_(m,b,_);var S=(_[1]-b[1])*(_[0]-b[0]);return c+=S,{poly:m,area:S}});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||(W1(E5,{points:h.poly},v,n),d-=v)}}a=Wa;break}if(!a)return Kje(e,t);for(var p=[],u=0;u<n.length;u++){var g=new a;g.setShape(n[u]),Uje(e,g),p.push(g)}return p}function qje(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++],S=o[h++],x=o[h++];if(d<=0){f.push(g,m,b,_,S,x);continue}for(var C=Math.min(d,c-1)+1,w=1;w<=C;w++){var k=w/C;bu(v,g,b,S,k,a),bu(p,m,_,x,k,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-=C-1}return o===e?[f,t]:[e,f]}function I5(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 Xje(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=qje(l,u),c=n[0],f=n[1],r=c,a=f):(f=I5(a||l,l),c=l):(c=I5(r||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function D5(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 Zje(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 Qje(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 Jje(e,t,n,r){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=D5(s),c=D5(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],h=0,v=1/0,p=[],g=s.length;i&&(s=Qje(s));for(var m=Zje(s,l,u,c)*6,b=g-2,_=0;_<b;_+=2){var S=(m+_)%b+2;f[_+2]=s[S]-u[0],f[_+3]=s[S+1]-u[1]}if(f[0]=s[m]-u[0],f[1]=s[m+1]-u[1],n>0)for(var x=r/n,C=-r/2;C<=r/2;C+=x){for(var w=Math.sin(C),k=Math.cos(C),M=0,_=0;_<s.length;_+=2){var I=f[_],E=f[_+1],D=l[_]-c[0],P=l[_+1]-c[1],N=D*k-P*w,z=D*w+P*k;p[_]=N,p[_+1]=z;var F=N-I,B=z-E;M+=F*F+B*B}if(M<v){v=M,h=C;for(var V=0;V<p.length;V++)d[V]=p[V]}}else for(var L=0;L<g;L+=2)d[L]=l[L]-c[0],d[L+1]=l[L+1]-c[1];a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return a}function G1(e){return e.__isCombineMorphing}var hq="__mOriginal_";function K1(e,t,n){var r=hq+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 Up(e,t){var n=hq+t;e[n]&&(e[t]=e[n],e[n]=null)}function P5(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 vq(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),a=Xje(iM(n),iM(r)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&P5(i,s),l&&P5(o,l),K1(t,"updateTransform",{replace:u}),t.transform=null;var c=Jje(i,o,10,Math.PI),f=[];K1(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,S=m.rotation*h,x=m.fromCp,C=m.toCp,w=Math.sin(S),k=Math.cos(S);Pp(p,x,C,h);for(var M=0;M<b.length;M+=2){var I=b[M],E=b[M+1],D=_[M],P=_[M+1],N=I*v+D*h,z=E*v+P*h;f[M]=N*k-z*w+p[0],f[M+1]=N*w+z*k+p[1]}var F=f[0],B=f[1];d.moveTo(F,B);for(var M=2;M<b.length;){var D=f[M++],P=f[M++],V=f[M++],L=f[M++],G=f[M++],q=f[M++];F===D&&B===P&&V===G&&L===q?d.lineTo(G,q):d.bezierCurveTo(D,P,V,L,G,q),F=G,B=q}}}})}function MD(e,t,n){if(!e||!t)return t;var r=n.done,a=n.during;vq(e,t),t.__morphT=0;function i(){Up(t,"buildPath"),Up(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Lt({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),r&&r()}},n)),t}function eYe(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 U1(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=et(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=et(i,function(s,l){return{cp:s,z:eYe(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 pq(e){return Yje(e.path,e.count)}function sM(){return{fromIndividuals:[],toIndividuals:[],count:0}}function tYe(e,t,n){var r=[];function a(x){for(var C=0;C<x.length;C++){var w=x[C];G1(w)?a(w.childrenRef()):w instanceof dn&&r.push(w)}}a(e);var i=r.length;if(!i)return sM();var o=n.dividePath||pq,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),sM();r=U1(r),s=U1(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new Us,d=0;d<i;d++){var h=r[d],v=s[d];v.parent=t,v.copyTransform(f),c||vq(h,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(x){for(var C=0;C<s.length;C++)s[C].addSelfToZr(x)}K1(t,"addSelfToZr",{after:function(x){p(x)}}),K1(t,"removeSelfFromZr",{after:function(x){for(var C=0;C<s.length;C++)s[C].removeSelfFromZr(x)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Up(t,"addSelfToZr"),Up(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 S=c?Lt({delay:(n.delay||0)+c(d,m,r[d],s[d]),done:_},n):n;MD(r[d],s[d],S)}else t.__morphT=0,t.animateTo({__morphT:1},Lt({during:function(x){for(var C=0;C<m;C++){var w=s[C];w.__morphT=t.__morphT,w.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<e.length;x++)Up(e[x],"updateTransform");l&&l()}},n));return t.__zr&&p(t.__zr),{fromIndividuals:r,toIndividuals:s,count:m}}function nYe(e,t,n){var r=t.length,a=[],i=n.dividePath||pq;function o(h){for(var v=0;v<h.length;v++){var p=h[v];G1(p)?o(p.childrenRef()):p instanceof dn&&a.push(p)}}if(G1(e)){o(e.childrenRef());var s=a.length;if(s<r)for(var l=0,u=s;u<r;u++)a.push(RE(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"),sM()}a=U1(a),t=U1(t);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?Lt({delay:(n.delay||0)+f(u,r,a[u],t[u])},n):n;MD(a[u],t[u],d)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function L5(e){return Xe(e[0])}function R5(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 rYe={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=RE(e.path);a.setStyle("opacity",n),t.push(a)}return t},split:null};function Yx(e,t,n,r,a,i){if(!e.length||!t.length)return;var o=Kh("update",r,a);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;L5(e)&&(u=e,c=t),L5(t)&&(u=t,c=e);function f(m,b,_,S,x){var C=m.many,w=m.one;if(C.length===1&&!x){var k=b?C[0]:w,M=b?w:C[0];if(G1(k))f({many:[k],one:M},!0,_,S,!0);else{var I=s?Lt({delay:s(_,S)},l):l;MD(k,M,I),i(k,M,k,M,I)}}else for(var E=Lt({dividePath:rYe[n],individualDelay:s&&function(B,V,L,G){return s(B+_,S)}},l),D=b?tYe(C,w,E):nYe(w,C,E),P=D.fromIndividuals,N=D.toIndividuals,z=P.length,F=0;F<z;F++){var I=s?Lt({delay:s(F,z)},l):l;i(P[F],N[F],b?C[F]:m.one,b?m.one:C[F],I)}}for(var d=u?u===e:e.length>t.length,h=u?R5(c,u):R5(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 Tc(e){if(!e)return[];if(Xe(e)){for(var t=[],n=0;n<e.length;n++)t.push(Tc(e[n]));return t}var r=[];return e.traverse(function(a){a instanceof dn&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var gq=1e4,aYe=Mn();function iYe(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 O5(e){var t=[];return K(e,function(n){var r=n.data;if(!(r.count()>gq))for(var a=r.getIndices(),i=iYe(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 qx(e,t,n){e.traverse(function(r){r instanceof dn&&rr(r,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function Xx(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function vd(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function oYe(e,t,n){var r=Kh("update",n,t);r&&e.traverse(function(a){if(a instanceof eo){var i=ALe(a);i&&a.animateFrom({style:i},r)}})}function sYe(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 mq(e,t,n){var r=O5(e),a=O5(t);function i(m,b,_,S,x){(_||m)&&b.animateFrom({style:_&&_!==m?Ge(Ge({},_.style),m.style):m.style},x)}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 S=_.data,x=_.dataIndex;if(b)return S.getId(x);var C=_.dataGroupId,w=m?s||l:l||s,k=w&&S.getDimensionInfo(w),M=k&&k.ordinalMeta;if(k){var I=S.get(k.name,x);return M&&M.categories[I]||I+""}var E=S.getRawDataItem(x);return E&&E.groupId?E.groupId+"":C||S.getId(x)}}var f=sYe(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],S=a[m],x=S.data.hostModel,C=_.data.getItemGraphicEl(_.dataIndex),w=S.data.getItemGraphicEl(S.dataIndex);if(C===w){w&&oYe(w,S.dataIndex,x);return}C&&d[C.id]||w&&(vd(w),C?(vd(C),Xx(C),u=!0,Yx(Tc(C),Tc(w),S.divide,x,m,i)):qx(w,x,m))}new il(r,a,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(m,b){var _=a[m],S=_.data,x=S.hostModel,C=S.getItemGraphicEl(_.dataIndex),w=Bn(et(b,function(k){return r[k].data.getItemGraphicEl(r[k].dataIndex)}),function(k){return k&&k!==C&&!d[k.id]});C&&(vd(C),w.length?(K(w,function(k){vd(k),Xx(k)}),u=!0,Yx(Tc(w),Tc(C),_.divide,x,m,i)):qx(C,x,_.dataIndex))}).updateOneToMany(function(m,b){var _=r[b],S=_.data.getItemGraphicEl(_.dataIndex);if(!(S&&d[S.id])){var x=Bn(et(m,function(w){return a[w].data.getItemGraphicEl(a[w].dataIndex)}),function(w){return w&&w!==S}),C=a[m[0]].data.hostModel;x.length&&(K(x,function(w){return vd(w)}),S?(vd(S),Xx(S),u=!0,Yx(Tc(S),Tc(x),_.divide,C,m[0],i)):K(x,function(w){return qx(w,C,m[0])}))}}).updateManyToMany(function(m,b){new il(b,m,function(_){return r[_].data.getId(r[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}).update(function(_,S){g(m[_],b[S])}).execute()}).execute(),u&&K(t,function(m){var b=m.data,_=b.hostModel,S=_&&n.getViewOfSeriesModel(_),x=Kh("update",_,0);S&&_.isAnimationEnabled()&&x&&x.duration>0&&S.group.traverse(function(C){C instanceof dn&&!C.animators.length&&C.animateFrom({style:{opacity:0}},x)})})}function N5(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function $5(e){return Xe(e)?e.sort().join(","):e}function Hl(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function lYe(e,t){var n=Mt(),r=Mt(),a=Mt();return K(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=N5(i),c=$5(u);r.set(c,{dataGroupId:s,data:l}),Xe(u)&&K(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),K(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=N5(i),u=$5(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Hl(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Hl(s),data:s}]});else if(Xe(l)){var f=[];K(l,function(v){var p=r.get(v);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Hl(p.data),data:p.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Hl(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:Hl(d.data)}],newSeries:[]},n.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Hl(s)})}}}}),n}function B5(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 uYe(e,t,n,r){var a=[],i=[];K(Kn(e.from),function(o){var s=B5(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Hl(t.oldData[s]),dim:o.dimension})}),K(Kn(e.to),function(o){var s=B5(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:Hl(l),dim:o.dimension})}}),a.length>0&&i.length>0&&mq(a,i,r)}function cYe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){K(Kn(r.seriesTransition),function(a){K(Kn(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][pb]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,n,r){var a=aYe(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)K(Kn(i),function(h){uYe(h,a,r,n)});else{var o=lYe(a,r);K(o.keys(),function(h){var v=o.get(h);mq(v.oldSeries,v.newSeries,n)})}K(r.updatedSeries,function(h){h[pb]&&(h[pb]=!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()<gq&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}un([M4e]);un([_4e]);un([Z4e,pBe,ABe,pVe,PVe,k5e,rFe,WFe,mze,kze,$ze,z6e,v8e,M8e,j8e,eHe,yHe,AHe,zHe,qHe,lWe,jWe]);un(gGe);un(XGe);un(dj);un(h9e);un(Qj);un(_9e);un(E9e);un(I7e);un(J7e);un(Km);un(bKe);un(SKe);un($Ke);un(jKe);un(tUe);un(uUe);un(CUe);un(KUe);un(rq);un(aq);un(yje);un(uq);un(cq);un(Cje);un(Nje);un(Vje);un(cYe);un(F3e);const fYe=Object.freeze(Object.defineProperty({__proto__:null,Axis:io,ChartView:Un,ComponentModel:wn,ComponentView:sr,List:_a,Model:Gn,PRIORITY:yK,SeriesModel:Jn,color:OIe,connect:HNe,dataTool:qNe,dependencies:xNe,disConnect:WNe,disconnect:kK,dispose:GNe,env:Tn,extendChartView:k3e,extendComponentModel:C3e,extendComponentView:x3e,extendSeriesModel:T3e,format:f3e,getCoordinateSystemDimensions:UNe,getInstanceByDom:dI,getInstanceById:KNe,getMap:YNe,graphic:c3e,helper:n3e,init:zNe,innerDrawElementOnCanvas:lI,matrix:sIe,number:l3e,parseGeoJSON:_k,parseGeoJson:_k,registerAction:zo,registerCoordinateSystem:EK,registerLayout:IK,registerLoading:mI,registerLocale:HE,registerMap:DK,registerPostInit:MK,registerPostUpdate:AK,registerPreprocessor:vI,registerProcessor:pI,registerTheme:hI,registerTransform:PK,registerUpdateLifecycle:pw,registerVisual:Bu,setCanvasCreator:jNe,setPlatformAPI:iG,throttle:hw,time:u3e,use:un,util:d3e,vector:KEe,version:CNe,zrUtil:BEe,zrender:_De},Symbol.toStringTag,{value:"Module"}));index.html;const ov=qF(PQ);ov.use(RM);ov.use(sz);ov.use(_Ee);ov.config.globalProperties.$echarts=fYe;ov.mount("#app");ov.config.errorHandler=function(e,t,n){console.error("Vue error:",e,n)};export{AYe as $,vf as A,_Ye as B,Se as C,Sn as D,oa as E,dt as F,te as G,or as H,Re as I,qt as J,ft as K,Gh as L,Be as M,bYe as N,Mu as O,DM as P,xYe as Q,$J as R,CYe as S,wYe as T,SYe as U,ct as V,vn as W,wl as X,En as Y,zn as Z,EQ as _,Pt as a,yi as a0,er as a1,dYe as a2,sz as a3,Ts as a4,Fo as a5,pt as a6,K5 as a7,lt as a8,G5 as a9,Jt as aa,Bt as ab,da as ac,U5 as ad,Ur as ae,hYe as af,r_ as ag,gYe as ah,mYe as ai,tu as aj,Lh as ak,xf as al,Yt as am,Z as b,R as c,re as d,ee as e,y as f,_n as g,pYe as h,Ft as i,KAe as j,Hn as k,an as l,Q0e as m,W as n,$ as o,vYe as p,me as q,U as r,Ot as s,Ke as t,yYe as u,bn as v,ce as w,zse as x,_t as y,zNe as z};
 
 
  |