index-390b947d.js 1.8 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function bT(e,t){const n=Object.create(null),r=e.split(",");for(let a=0;a<r.length;a++)n[r[a]]=!0;return t?a=>!!n[a.toLowerCase()]:a=>!!n[a]}const Ln={},xf=[],rn=()=>{},nY=()=>!1,rY=/^on[^a-z]/,Cb=e=>rY.test(e),_T=e=>e.startsWith("onUpdate:"),Yn=Object.assign,wT=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},aY=Object.prototype.hasOwnProperty,Nt=(e,t)=>aY.call(e,t),He=Array.isArray,Tf=e=>Gp(e)==="[object Map]",xb=e=>Gp(e)==="[object Set]",ac=e=>Gp(e)==="[object Date]",it=e=>typeof e=="function",lt=e=>typeof e=="string",Dv=e=>typeof e=="symbol",Mt=e=>e!==null&&typeof e=="object",Pv=e=>Mt(e)&&it(e.then)&&it(e.catch),xB=Object.prototype.toString,Gp=e=>xB.call(e),ry=e=>Gp(e).slice(8,-1),Jy=e=>Gp(e)==="[object Object]",ST=e=>lt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ay=bT(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Tb=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},iY=/-(\w)/g,ni=Tb(e=>e.replace(iY,(t,n)=>n?n.toUpperCase():"")),oY=/\B([A-Z])/g,xl=Tb(e=>e.replace(oY,"-$1").toLowerCase()),Wp=Tb(e=>e.charAt(0).toUpperCase()+e.slice(1)),iy=Tb(e=>e?`on${Wp(e)}`:""),Hf=(e,t)=>!Object.is(e,t),oy=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Qy=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},sC=e=>{const t=parseFloat(e);return isNaN(t)?e:t},sY=e=>{const t=lt(e)?Number(e):NaN;return isNaN(t)?e:t};let VE;const lC=()=>VE||(VE=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ye(e){if(He(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=lt(r)?fY(r):Ye(r);if(a)for(const i in a)t[i]=a[i]}return t}else{if(lt(e))return e;if(Mt(e))return e}}const lY=/;(?![^(]*\))/g,uY=/:([^]+)/,cY=/\/\*[^]*?\*\//g;function fY(e){const t={};return e.replace(cY,"").split(lY).forEach(n=>{if(n){const r=n.split(uY);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function V(e){let t="";if(lt(e))t=e;else if(He(e))for(let n=0;n<e.length;n++){const r=V(e[n]);r&&(t+=r+" ")}else if(Mt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ki(e){if(!e)return null;let{class:t,style:n}=e;return t&&!lt(t)&&(e.class=V(t)),n&&(e.style=Ye(n)),e}const dY="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",hY=bT(dY);function TB(e){return!!e||e===""}function vY(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Gf(e[r],t[r]);return n}function Gf(e,t){if(e===t)return!0;let n=ac(e),r=ac(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Dv(e),r=Dv(t),n||r)return e===t;if(n=He(e),r=He(t),n||r)return n&&r?vY(e,t):!1;if(n=Mt(e),r=Mt(t),n||r){if(!n||!r)return!1;const a=Object.keys(e).length,i=Object.keys(t).length;if(a!==i)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Gf(e[o],t[o]))return!1}}return String(e)===String(t)}function MB(e,t){return e.findIndex(n=>Gf(n,t))}const De=e=>lt(e)?e:e==null?"":He(e)||Mt(e)&&(e.toString===xB||!it(e.toString))?JSON.stringify(e,kB,2):String(e),kB=(e,t)=>t&&t.__v_isRef?kB(e,t.value):Tf(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:xb(t)?{[`Set(${t.size})`]:[...t.values()]}:Mt(t)&&!He(t)&&!Jy(t)?String(t):t;let xa;class AB{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=xa,!t&&xa&&(this.index=(xa.scopes||(xa.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=xa;try{return xa=this,t()}finally{xa=n}}}on(){xa=this}off(){xa=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function EB(e){return new AB(e)}function pY(e,t=xa){t&&t.active&&t.effects.push(e)}function IB(){return xa}function DB(e){xa&&xa.cleanups.push(e)}const CT=e=>{const t=new Set(e);return t.w=0,t.n=0,t},PB=e=>(e.w&ul)>0,LB=e=>(e.n&ul)>0,gY=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=ul},mY=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const a=t[r];PB(a)&&!LB(a)?a.delete(e):t[n++]=a,a.w&=~ul,a.n&=~ul}t.length=n}},e0=new WeakMap;let Nh=0,ul=1;const uC=30;let Mi;const Ku=Symbol(""),cC=Symbol("");class xT{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,pY(this,r)}run(){if(!this.active)return this.fn();let t=Mi,n=Js;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Mi,Mi=this,Js=!0,ul=1<<++Nh,Nh<=uC?gY(this):zE(this),this.fn()}finally{Nh<=uC&&mY(this),ul=1<<--Nh,Mi=this.parent,Js=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Mi===this?this.deferStop=!0:this.active&&(zE(this),this.onStop&&this.onStop(),this.active=!1)}}function zE(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Js=!0;const RB=[];function Sd(){RB.push(Js),Js=!1}function Cd(){const e=RB.pop();Js=e===void 0?!0:e}function ba(e,t,n){if(Js&&Mi){let r=e0.get(e);r||e0.set(e,r=new Map);let a=r.get(n);a||r.set(n,a=CT()),OB(a)}}function OB(e,t){let n=!1;Nh<=uC?LB(e)||(e.n|=ul,n=!PB(e)):n=!e.has(Mi),n&&(e.add(Mi),Mi.deps.push(e))}function Zo(e,t,n,r,a,i){const o=e0.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(n==="length"&&He(e)){const l=Number(r);o.forEach((u,c)=>{(c==="length"||c>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(o.get(n)),t){case"add":He(e)?ST(n)&&s.push(o.get("length")):(s.push(o.get(Ku)),Tf(e)&&s.push(o.get(cC)));break;case"delete":He(e)||(s.push(o.get(Ku)),Tf(e)&&s.push(o.get(cC)));break;case"set":Tf(e)&&s.push(o.get(Ku));break}if(s.length===1)s[0]&&fC(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);fC(CT(l))}}function fC(e,t){const n=He(e)?e:[...e];for(const r of n)r.computed&&FE(r);for(const r of n)r.computed||FE(r)}function FE(e,t){(e!==Mi||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function yY(e,t){var n;return(n=e0.get(e))==null?void 0:n.get(t)}const bY=bT("__proto__,__v_isRef,__isVue"),$B=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dv)),_Y=TT(),wY=TT(!1,!0),SY=TT(!0),HE=CY();function CY(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=tn(this);for(let i=0,o=this.length;i<o;i++)ba(r,"get",i+"");const a=r[t](...n);return a===-1||a===!1?r[t](...n.map(tn)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Sd();const r=tn(this)[t].apply(this,n);return Cd(),r}}),e}function xY(e){const t=tn(this);return ba(t,"has",e),t.hasOwnProperty(e)}function TT(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?zY:FB:t?zB:VB).get(r))return r;const o=He(r);if(!e){if(o&&Nt(HE,a))return Reflect.get(HE,a,i);if(a==="hasOwnProperty")return xY}const s=Reflect.get(r,a,i);return(Dv(a)?$B.has(a):bY(a))||(e||ba(r,"get",a),t)?s:cn(s)?o&&ST(a)?s:s.value:Mt(s)?e?xd(s):jt(s):s}}const TY=NB(),MY=NB(!0);function NB(e=!1){return function(n,r,a,i){let o=n[r];if(Wf(o)&&cn(o)&&!cn(a))return!1;if(!e&&(!t0(a)&&!Wf(a)&&(o=tn(o),a=tn(a)),!He(n)&&cn(o)&&!cn(a)))return o.value=a,!0;const s=He(n)&&ST(r)?Number(r)<n.length:Nt(n,r),l=Reflect.set(n,r,a,i);return n===tn(i)&&(s?Hf(a,o)&&Zo(n,"set",r,a):Zo(n,"add",r,a)),l}}function kY(e,t){const n=Nt(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Zo(e,"delete",t,void 0),r}function AY(e,t){const n=Reflect.has(e,t);return(!Dv(t)||!$B.has(t))&&ba(e,"has",t),n}function EY(e){return ba(e,"iterate",He(e)?"length":Ku),Reflect.ownKeys(e)}const BB={get:_Y,set:TY,deleteProperty:kY,has:AY,ownKeys:EY},IY={get:SY,set(e,t){return!0},deleteProperty(e,t){return!0}},DY=Yn({},BB,{get:wY,set:MY}),MT=e=>e,Mb=e=>Reflect.getPrototypeOf(e);function Ig(e,t,n=!1,r=!1){e=e.__v_raw;const a=tn(e),i=tn(t);n||(t!==i&&ba(a,"get",t),ba(a,"get",i));const{has:o}=Mb(a),s=r?MT:n?ET:Lv;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 Dg(e,t=!1){const n=this.__v_raw,r=tn(n),a=tn(e);return t||(e!==a&&ba(r,"has",e),ba(r,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Pg(e,t=!1){return e=e.__v_raw,!t&&ba(tn(e),"iterate",Ku),Reflect.get(e,"size",e)}function GE(e){e=tn(e);const t=tn(this);return Mb(t).has.call(t,e)||(t.add(e),Zo(t,"add",e,e)),this}function WE(e,t){t=tn(t);const n=tn(this),{has:r,get:a}=Mb(n);let i=r.call(n,e);i||(e=tn(e),i=r.call(n,e));const o=a.call(n,e);return n.set(e,t),i?Hf(t,o)&&Zo(n,"set",e,t):Zo(n,"add",e,t),this}function KE(e){const t=tn(this),{has:n,get:r}=Mb(t);let a=n.call(t,e);a||(e=tn(e),a=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return a&&Zo(t,"delete",e,void 0),i}function UE(){const e=tn(this),t=e.size!==0,n=e.clear();return t&&Zo(e,"clear",void 0,void 0),n}function Lg(e,t){return function(r,a){const i=this,o=i.__v_raw,s=tn(o),l=t?MT:e?ET:Lv;return!e&&ba(s,"iterate",Ku),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function Rg(e,t,n){return function(...r){const a=this.__v_raw,i=tn(a),o=Tf(i),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=a[e](...r),c=n?MT:t?ET:Lv;return!t&&ba(i,"iterate",l?cC:Ku),{next(){const{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:s?[c(f[0]),c(f[1])]:c(f),done:d}},[Symbol.iterator](){return this}}}}function ms(e){return function(...t){return e==="delete"?!1:this}}function PY(){const e={get(i){return Ig(this,i)},get size(){return Pg(this)},has:Dg,add:GE,set:WE,delete:KE,clear:UE,forEach:Lg(!1,!1)},t={get(i){return Ig(this,i,!1,!0)},get size(){return Pg(this)},has:Dg,add:GE,set:WE,delete:KE,clear:UE,forEach:Lg(!1,!0)},n={get(i){return Ig(this,i,!0)},get size(){return Pg(this,!0)},has(i){return Dg.call(this,i,!0)},add:ms("add"),set:ms("set"),delete:ms("delete"),clear:ms("clear"),forEach:Lg(!0,!1)},r={get(i){return Ig(this,i,!0,!0)},get size(){return Pg(this,!0)},has(i){return Dg.call(this,i,!0)},add:ms("add"),set:ms("set"),delete:ms("delete"),clear:ms("clear"),forEach:Lg(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Rg(i,!1,!1),n[i]=Rg(i,!0,!1),t[i]=Rg(i,!1,!0),r[i]=Rg(i,!0,!0)}),[e,n,t,r]}const[LY,RY,OY,$Y]=PY();function kT(e,t){const n=t?e?$Y:OY:e?RY:LY;return(r,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(Nt(n,a)&&a in r?n:r,a,i)}const NY={get:kT(!1,!1)},BY={get:kT(!1,!0)},VY={get:kT(!0,!1)},VB=new WeakMap,zB=new WeakMap,FB=new WeakMap,zY=new WeakMap;function FY(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function HY(e){return e.__v_skip||!Object.isExtensible(e)?0:FY(ry(e))}function jt(e){return Wf(e)?e:AT(e,!1,BB,NY,VB)}function HB(e){return AT(e,!1,DY,BY,zB)}function xd(e){return AT(e,!0,IY,VY,FB)}function AT(e,t,n,r,a){if(!Mt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=HY(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return a.set(e,s),s}function Mf(e){return Wf(e)?Mf(e.__v_raw):!!(e&&e.__v_isReactive)}function Wf(e){return!!(e&&e.__v_isReadonly)}function t0(e){return!!(e&&e.__v_isShallow)}function GB(e){return Mf(e)||Wf(e)}function tn(e){const t=e&&e.__v_raw;return t?tn(t):e}function Qs(e){return Qy(e,"__v_skip",!0),e}const Lv=e=>Mt(e)?jt(e):e,ET=e=>Mt(e)?xd(e):e;function IT(e){Js&&Mi&&(e=tn(e),OB(e.dep||(e.dep=CT())))}function kb(e,t){e=tn(e);const n=e.dep;n&&fC(n)}function cn(e){return!!(e&&e.__v_isRef===!0)}function H(e){return WB(e,!1)}function un(e){return WB(e,!0)}function WB(e,t){return cn(e)?e:new GY(e,t)}class GY{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:tn(t),this._value=n?t:Lv(t)}get value(){return IT(this),this._value}set value(t){const n=this.__v_isShallow||t0(t)||Wf(t);t=n?t:tn(t),Hf(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Lv(t),kb(this))}}function Jd(e){kb(e)}function y(e){return cn(e)?e.value:e}function wje(e){return it(e)?e():y(e)}const WY={get:(e,t,n)=>y(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return cn(a)&&!cn(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function KB(e){return Mf(e)?e:new Proxy(e,WY)}class KY{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>IT(this),()=>kb(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function Sje(e){return new KY(e)}function or(e){const t=He(e)?new Array(e.length):{};for(const n in e)t[n]=UB(e,n);return t}class UY{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 yY(tn(this._object),this._key)}}class YY{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function kn(e,t,n){return cn(e)?e:it(e)?new YY(e):Mt(e)&&arguments.length>1?UB(e,t,n):H(e)}function UB(e,t,n){const r=e[t];return cn(r)?r:new UY(e,t,n)}class jY{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 xT(t,()=>{this._dirty||(this._dirty=!0,kb(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=tn(this);return IT(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function YB(e,t,n=!1){let r,a;const i=it(e);return i?(r=e,a=rn):(r=e.get,a=e.set),new jY(r,a,i||!a,n)}function qY(e,...t){}function el(e,t,n,r){let a;try{a=r?e(...r):e()}catch(i){Ab(i,t,n)}return a}function Qa(e,t,n,r){if(it(e)){const i=el(e,t,n,r);return i&&Pv(i)&&i.catch(o=>{Ab(o,t,n)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(Qa(e[i],t,n,r));return a}function Ab(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){el(l,null,10,[e,o,s]);return}}XY(e,n,a,r)}function XY(e,t,n,r=!0){console.error(e)}let Rv=!1,dC=!1;const Lr=[];let ao=0;const kf=[];let No=null,wu=0;const jB=Promise.resolve();let DT=null;function Ue(e){const t=DT||jB;return e?t.then(this?e.bind(this):e):t}function ZY(e){let t=ao+1,n=Lr.length;for(;t<n;){const r=t+n>>>1;Ov(Lr[r])<e?t=r+1:n=r}return t}function PT(e){(!Lr.length||!Lr.includes(e,Rv&&e.allowRecurse?ao+1:ao))&&(e.id==null?Lr.push(e):Lr.splice(ZY(e.id),0,e),qB())}function qB(){!Rv&&!dC&&(dC=!0,DT=jB.then(ZB))}function JY(e){const t=Lr.indexOf(e);t>ao&&Lr.splice(t,1)}function QY(e){He(e)?kf.push(...e):(!No||!No.includes(e,e.allowRecurse?wu+1:wu))&&kf.push(e),qB()}function YE(e,t=Rv?ao+1:0){for(;t<Lr.length;t++){const n=Lr[t];n&&n.pre&&(Lr.splice(t,1),t--,n())}}function XB(e){if(kf.length){const t=[...new Set(kf)];if(kf.length=0,No){No.push(...t);return}for(No=t,No.sort((n,r)=>Ov(n)-Ov(r)),wu=0;wu<No.length;wu++)No[wu]();No=null,wu=0}}const Ov=e=>e.id==null?1/0:e.id,ej=(e,t)=>{const n=Ov(e)-Ov(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ZB(e){dC=!1,Rv=!0,Lr.sort(ej);const t=rn;try{for(ao=0;ao<Lr.length;ao++){const n=Lr[ao];n&&n.active!==!1&&el(n,null,14)}}finally{ao=0,Lr.length=0,XB(),Rv=!1,DT=null,(Lr.length||kf.length)&&ZB()}}function tj(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ln;let a=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in r){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=r[c]||Ln;d&&(a=n.map(h=>lt(h)?h.trim():h)),f&&(a=n.map(sC))}let s,l=r[s=iy(t)]||r[s=iy(ni(t))];!l&&i&&(l=r[s=iy(xl(t))]),l&&Qa(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,Qa(u,e,6,a)}}function JB(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(a!==void 0)return a;const i=e.emits;let o={},s=!1;if(!it(e)){const l=u=>{const c=JB(u,t,!0);c&&(s=!0,Yn(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Mt(e)&&r.set(e,null),null):(He(i)?i.forEach(l=>o[l]=null):Yn(o,i),Mt(e)&&r.set(e,o),o)}function Eb(e,t){return!e||!Cb(t)?!1:(t=t.slice(2).replace(/Once$/,""),Nt(e,t[0].toLowerCase()+t.slice(1))||Nt(e,xl(t))||Nt(e,t))}let yr=null,Ib=null;function n0(e){const t=yr;return yr=e,Ib=e&&e.type.__scopeId||null,t}function Cje(e){Ib=e}function xje(){Ib=null}function re(e,t=yr,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&oI(-1);const i=n0(t);let o;try{o=e(...a)}finally{n0(i),r._d&&oI(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function a_(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=n0(e);try{if(n.shapeFlag&4){const w=a||r;g=ro(c.call(w,w,f,i,h,d,v)),m=l}else{const w=t;g=ro(w.length>1?w(i,{attrs:l,slots:s,emit:u}):w(i,null)),m=t.props?l:nj(l)}}catch(w){nv.length=0,Ab(w,e,1),g=q(Yr)}let _=g;if(m&&p!==!1){const w=Object.keys(m),{shapeFlag:C}=_;w.length&&C&7&&(o&&w.some(_T)&&(m=rj(m,o)),_=Qo(_,m))}return n.dirs&&(_=Qo(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),g=_,n0(b),g}const nj=e=>{let t;for(const n in e)(n==="class"||n==="style"||Cb(n))&&((t||(t={}))[n]=e[n]);return t},rj=(e,t)=>{const n={};for(const r in e)(!_T(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function aj(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?jE(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]&&!Eb(u,d))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?jE(r,o,u):!0:!!o;return!1}function jE(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]&&!Eb(n,i))return!0}return!1}function ij({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const oj=e=>e.__isSuspense;function sj(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):QY(e)}function Da(e,t){return LT(e,null,t)}const Og={};function xe(e,t,n){return LT(e,t,n)}function LT(e,t,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=Ln){var s;const l=IB()===((s=dr)==null?void 0:s.scope)?dr:null;let u,c=!1,f=!1;if(cn(e)?(u=()=>e.value,c=t0(e)):Mf(e)?(u=()=>e,r=!0):He(e)?(f=!0,c=e.some(w=>Mf(w)||t0(w)),u=()=>e.map(w=>{if(cn(w))return w.value;if(Mf(w))return Iu(w);if(it(w))return el(w,l,2)})):it(e)?t?u=()=>el(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),Qa(e,l,3,[h])}:u=rn,t&&r){const w=u;u=()=>Iu(w())}let d,h=w=>{d=b.onStop=()=>{el(w,l,4)}},v;if(Vv)if(h=rn,t?n&&Qa(t,l,3,[u(),f?[]:void 0,h]):u(),a==="sync"){const w=qj();v=w.__watcherHandles||(w.__watcherHandles=[])}else return rn;let p=f?new Array(e.length).fill(Og):Og;const g=()=>{if(b.active)if(t){const w=b.run();(r||c||(f?w.some((C,S)=>Hf(C,p[S])):Hf(w,p)))&&(d&&d(),Qa(t,l,3,[w,p===Og?void 0:f&&p[0]===Og?[]:p,h]),p=w)}else b.run()};g.allowRecurse=!!t;let m;a==="sync"?m=g:a==="post"?m=()=>fa(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),m=()=>PT(g));const b=new xT(u,m);t?n?g():p=b.run():a==="post"?fa(b.run.bind(b),l&&l.suspense):b.run();const _=()=>{b.stop(),l&&l.scope&&wT(l.scope.effects,b)};return v&&v.push(_),_}function lj(e,t,n){const r=this.proxy,a=lt(e)?e.includes(".")?QB(r,e):()=>r[e]:e.bind(r,r);let i;it(t)?i=t:(i=t.handler,n=t);const o=dr;Uf(this);const s=LT(a,i.bind(r),n);return o?Uf(o):Uu(),s}function QB(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 Iu(e,t){if(!Mt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),cn(e))Iu(e.value,t);else if(He(e))for(let n=0;n<e.length;n++)Iu(e[n],t);else if(xb(e)||Tf(e))e.forEach(n=>{Iu(n,t)});else if(Jy(e))for(const n in e)Iu(e[n],t);return e}function dt(e,t){const n=yr;if(n===null)return e;const r=$b(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,l,u=Ln]=t[i];o&&(it(o)&&(o={mounted:o,updated:o}),o.deep&&Iu(s),a.push({dir:o,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function Bl(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&&(Sd(),Qa(l,n,8,[e.el,s,e,t]),Cd())}}function eV(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return yt(()=>{e.isMounted=!0}),wn(()=>{e.isUnmounting=!0}),e}const $a=[Function,Array],tV={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$a,onEnter:$a,onAfterEnter:$a,onEnterCancelled:$a,onBeforeLeave:$a,onLeave:$a,onAfterLeave:$a,onLeaveCancelled:$a,onBeforeAppear:$a,onAppear:$a,onAfterAppear:$a,onAppearCancelled:$a},uj={name:"BaseTransition",props:tV,setup(e,{slots:t}){const n=gt(),r=eV();let a;return()=>{const i=t.default&&RT(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==Yr){o=p;break}}const s=tn(e),{mode:l}=s;if(r.isLeaving)return i_(o);const u=qE(o);if(!u)return i_(o);const c=$v(u,s,r,n);Nv(u,c);const f=n.subTree,d=f&&qE(f);let h=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();a===void 0?a=p:p!==a&&(a=p,h=!0)}if(d&&d.type!==Yr&&(!Su(u,d)||h)){const p=$v(d,s,r,n);if(Nv(d,p),l==="out-in")return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},i_(o);l==="in-out"&&u.type!==Yr&&(p.delayLeave=(g,m,b)=>{const _=nV(r,d);_[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=b})}return o}}},cj=uj;function nV(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 $v(e,t,n,r){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:v,onBeforeAppear:p,onAppear:g,onAfterAppear:m,onAppearCancelled:b}=t,_=String(e.key),w=nV(n,e),C=(T,M)=>{T&&Qa(T,r,9,M)},S=(T,M)=>{const A=M[1];C(T,M),He(T)?T.every(k=>k.length<=1)&&A():T.length<=1&&A()},x={mode:i,persisted:o,beforeEnter(T){let M=s;if(!n.isMounted)if(a)M=p||s;else return;T._leaveCb&&T._leaveCb(!0);const A=w[_];A&&Su(e,A)&&A.el._leaveCb&&A.el._leaveCb(),C(M,[T])},enter(T){let M=l,A=u,k=c;if(!n.isMounted)if(a)M=g||l,A=m||u,k=b||c;else return;let E=!1;const D=T._enterCb=L=>{E||(E=!0,L?C(k,[T]):C(A,[T]),x.delayedLeave&&x.delayedLeave(),T._enterCb=void 0)};M?S(M,[T,D]):D()},leave(T,M){const A=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return M();C(f,[T]);let k=!1;const E=T._leaveCb=D=>{k||(k=!0,M(),D?C(v,[T]):C(h,[T]),T._leaveCb=void 0,w[A]===e&&delete w[A])};w[A]=e,d?S(d,[T,E]):E()},clone(T){return $v(T,t,n,r)}};return x}function i_(e){if(Db(e))return e=Qo(e),e.children=null,e}function qE(e){return Db(e)?e.children?e.children[0]:void 0:e}function Nv(e,t){e.shapeFlag&6&&e.component?Nv(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 RT(e,t=!1,n){let r=[],a=0;for(let i=0;i<e.length;i++){let o=e[i];const s=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===je?(o.patchFlag&128&&a++,r=r.concat(RT(o.children,t,s))):(t||o.type!==Yr)&&r.push(s!=null?Qo(o,{key:s}):o)}if(a>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function ne(e,t){return it(e)?(()=>Yn({name:e.name},t,{setup:e}))():e}const Qh=e=>!!e.type.__asyncLoader,Db=e=>e.type.__isKeepAlive;function fj(e,t){aV(e,"a",t)}function rV(e,t){aV(e,"da",t)}function aV(e,t,n=dr){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(Pb(t,r,n),n){let a=n.parent;for(;a&&a.parent;)Db(a.parent.vnode)&&dj(r,t,n,a),a=a.parent}}function dj(e,t,n,r){const a=Pb(t,e,r,!0);Tl(()=>{wT(r[t],a)},n)}function Pb(e,t,n=dr,r=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Sd(),Uf(n);const s=Qa(t,n,e,o);return Uu(),Cd(),s});return r?a.unshift(i):a.push(i),i}}const us=e=>(t,n=dr)=>(!Vv||e==="sp")&&Pb(e,(...r)=>t(...r),n),Lb=us("bm"),yt=us("m"),iV=us("bu"),cs=us("u"),wn=us("bum"),Tl=us("um"),hj=us("sp"),vj=us("rtg"),pj=us("rtc");function gj(e,t=dr){Pb("ec",e,t)}const OT="components",mj="directives";function ct(e,t){return $T(OT,e,!0,t)||e}const oV=Symbol.for("v-ndc");function Ct(e){return lt(e)?$T(OT,e,!1)||e:e||oV}function Bv(e){return $T(mj,e)}function $T(e,t,n=!0,r=!1){const a=yr||dr;if(a){const i=a.type;if(e===OT){const s=Uj(i,!1);if(s&&(s===t||s===ni(t)||s===Wp(ni(t))))return i}const o=XE(a[e]||i[e],t)||XE(a.appContext[e],t);return!o&&r?i:o}}function XE(e,t){return e&&(e[t]||e[ni(t)]||e[Wp(ni(t))])}function Ot(e,t,n,r){let a;const i=n&&n[r];if(He(e)||lt(e)){a=new Array(e.length);for(let o=0,s=e.length;o<s;o++)a[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){a=new Array(e);for(let o=0;o<e;o++)a[o]=t(o+1,o,void 0,i&&i[o])}else if(Mt(e))if(e[Symbol.iterator])a=Array.from(e,(o,s)=>t(o,s,void 0,i&&i[s]));else{const o=Object.keys(e);a=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];a[s]=t(e[u],u,s,i&&i[s])}}else a=[];return n&&(n[r]=a),a}function Jo(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(He(r))for(let a=0;a<r.length;a++)e[r[a].name]=r[a].fn;else r&&(e[r.name]=r.key?(...a)=>{const i=r.fn(...a);return i&&(i.key=r.key),i}:r.fn)}return e}function _e(e,t,n={},r,a){if(yr.isCE||yr.parent&&Qh(yr.parent)&&yr.parent.isCE)return t!=="default"&&(n.name=t),q("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),R();const o=i&&sV(i(n)),s=ce(je,{key:n.key||o&&o.key||`_${t}`},o||(r?r():[]),o&&e._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function sV(e){return e.some(t=>Tn(t)?!(t.type===Yr||t.type===je&&!sV(t.children)):!0)?e:null}function yj(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:iy(r)]=e[r];return n}const hC=e=>e?bV(e)?$b(e)||e.proxy:hC(e.parent):null,ev=Yn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>hC(e.parent),$root:e=>hC(e.root),$emit:e=>e.emit,$options:e=>NT(e),$forceUpdate:e=>e.f||(e.f=()=>PT(e.update)),$nextTick:e=>e.n||(e.n=Ue.bind(e.proxy)),$watch:e=>lj.bind(e)}),o_=(e,t)=>e!==Ln&&!e.__isScriptSetup&&Nt(e,t),bj={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(o_(r,t))return o[t]=1,r[t];if(a!==Ln&&Nt(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&Nt(u,t))return o[t]=3,i[t];if(n!==Ln&&Nt(n,t))return o[t]=4,n[t];vC&&(o[t]=0)}}const c=ev[t];let f,d;if(c)return t==="$attrs"&&ba(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Ln&&Nt(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,Nt(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return o_(a,t)?(a[t]=n,!0):r!==Ln&&Nt(r,t)?(r[t]=n,!0):Nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||e!==Ln&&Nt(e,o)||o_(t,o)||(s=i[0])&&Nt(s,o)||Nt(r,o)||Nt(ev,o)||Nt(a.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Nt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Mr(){return lV().slots}function yc(){return lV().attrs}function lV(){const e=gt();return e.setupContext||(e.setupContext=wV(e))}function ZE(e){return He(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Tje(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}let vC=!0;function _j(e){const t=NT(e),n=e.proxy,r=e.ctx;vC=!1,t.beforeCreate&&JE(t.beforeCreate,e,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:v,activated:p,deactivated:g,beforeDestroy:m,beforeUnmount:b,destroyed:_,unmounted:w,render:C,renderTracked:S,renderTriggered:x,errorCaptured:T,serverPrefetch:M,expose:A,inheritAttrs:k,components:E,directives:D,filters:L}=t;if(u&&wj(u,r,null),o)for(const O in o){const $=o[O];it($)&&(r[O]=$.bind(n))}if(a){const O=a.call(n,n);Mt(O)&&(e.data=jt(O))}if(vC=!0,i)for(const O in i){const $=i[O],I=it($)?$.bind(n,n):it($.get)?$.get.bind(n,n):rn,z=!it($)&&it($.set)?$.set.bind(n):rn,G=P({get:I,set:z});Object.defineProperty(r,O,{enumerable:!0,configurable:!0,get:()=>G.value,set:U=>G.value=U})}if(s)for(const O in s)uV(s[O],r,n,O);if(l){const O=it(l)?l.call(n):l;Reflect.ownKeys(O).forEach($=>{Et($,O[$])})}c&&JE(c,e,"c");function N(O,$){He($)?$.forEach(I=>O(I.bind(n))):$&&O($.bind(n))}if(N(Lb,f),N(yt,d),N(iV,h),N(cs,v),N(fj,p),N(rV,g),N(gj,T),N(pj,S),N(vj,x),N(wn,b),N(Tl,w),N(hj,M),He(A))if(A.length){const O=e.exposed||(e.exposed={});A.forEach($=>{Object.defineProperty(O,$,{get:()=>n[$],set:I=>n[$]=I})})}else e.exposed||(e.exposed={});C&&e.render===rn&&(e.render=C),k!=null&&(e.inheritAttrs=k),E&&(e.components=E),D&&(e.directives=D)}function wj(e,t,n=rn){He(e)&&(e=pC(e));for(const r in e){const a=e[r];let i;Mt(a)?"default"in a?i=Ge(a.from||r,a.default,!0):i=Ge(a.from||r):i=Ge(a),cn(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function JE(e,t,n){Qa(He(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function uV(e,t,n,r){const a=r.includes(".")?QB(n,r):()=>n[r];if(lt(e)){const i=t[e];it(i)&&xe(a,i)}else if(it(e))xe(a,e.bind(n));else if(Mt(e))if(He(e))e.forEach(i=>uV(i,t,n,r));else{const i=it(e.handler)?e.handler.bind(n):t[e.handler];it(i)&&xe(a,i,e)}}function NT(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=>r0(l,u,o,!0)),r0(l,t,o)),Mt(t)&&i.set(t,l),l}function r0(e,t,n,r=!1){const{mixins:a,extends:i}=t;i&&r0(e,i,n,!0),a&&a.forEach(o=>r0(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=Sj[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const Sj={data:QE,props:eI,emits:eI,methods:Bh,computed:Bh,beforeCreate:Fr,created:Fr,beforeMount:Fr,mounted:Fr,beforeUpdate:Fr,updated:Fr,beforeDestroy:Fr,beforeUnmount:Fr,destroyed:Fr,unmounted:Fr,activated:Fr,deactivated:Fr,errorCaptured:Fr,serverPrefetch:Fr,components:Bh,directives:Bh,watch:xj,provide:QE,inject:Cj};function QE(e,t){return t?e?function(){return Yn(it(e)?e.call(this,this):e,it(t)?t.call(this,this):t)}:t:e}function Cj(e,t){return Bh(pC(e),pC(t))}function pC(e){if(He(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Fr(e,t){return e?[...new Set([].concat(e,t))]:t}function Bh(e,t){return e?Yn(Object.create(null),e,t):t}function eI(e,t){return e?He(e)&&He(t)?[...new Set([...e,...t])]:Yn(Object.create(null),ZE(e),ZE(t??{})):t}function xj(e,t){if(!e)return t;if(!t)return e;const n=Yn(Object.create(null),e);for(const r in t)n[r]=Fr(e[r],t[r]);return n}function cV(){return{app:null,config:{isNativeTag:nY,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 Tj=0;function Mj(e,t){return function(r,a=null){it(r)||(r=Yn({},r)),a!=null&&!Mt(a)&&(a=null);const i=cV(),o=new Set;let s=!1;const l=i.app={_uid:Tj++,_component:r,_props:a,_container:null,_context:i,_instance:null,version:Xj,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&it(u.install)?(o.add(u),u.install(l,...c)):it(u)&&(o.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,f){if(!s){const d=q(r,a);return d.appContext=i,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,$b(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){a0=l;try{return u()}finally{a0=null}}};return l}}let a0=null;function Et(e,t){if(dr){let n=dr.provides;const r=dr.parent&&dr.parent.provides;r===n&&(n=dr.provides=Object.create(r)),n[e]=t}}function Ge(e,t,n=!1){const r=dr||yr;if(r||a0){const a=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:a0._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&it(t)?t.call(r&&r.proxy):t}}function kj(e,t,n,r=!1){const a={},i={};Qy(i,Rb,1),e.propsDefaults=Object.create(null),fV(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);n?e.props=r?a:HB(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function Aj(e,t,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=tn(a),[l]=e.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let d=c[f];if(Eb(e.emitsOptions,d))continue;const h=t[d];if(l)if(Nt(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const v=ni(d);a[v]=gC(l,s,v,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{fV(e,t,a,i)&&(u=!0);let c;for(const f in s)(!t||!Nt(t,f)&&((c=xl(f))===f||!Nt(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(a[f]=gC(l,s,f,void 0,e,!0)):delete a[f]);if(i!==s)for(const f in i)(!t||!Nt(t,f))&&(delete i[f],u=!0)}u&&Zo(e,"set","$attrs")}function fV(e,t,n,r){const[a,i]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(ay(l))continue;const u=t[l];let c;a&&Nt(a,c=ni(l))?!i||!i.includes(c)?n[c]=u:(s||(s={}))[c]=u:Eb(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=tn(n),u=s||Ln;for(let c=0;c<i.length;c++){const f=i[c];n[f]=gC(a,l,f,u[f],e,!Nt(u,f))}}return o}function gC(e,t,n,r,a,i){const o=e[n];if(o!=null){const s=Nt(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&it(l)){const{propsDefaults:u}=a;n in u?r=u[n]:(Uf(a),r=u[n]=l.call(null,t),Uu())}else r=l}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===xl(n))&&(r=!0))}return r}function dV(e,t,n=!1){const r=t.propsCache,a=r.get(e);if(a)return a;const i=e.props,o={},s=[];let l=!1;if(!it(e)){const c=f=>{l=!0;const[d,h]=dV(f,t,!0);Yn(o,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Mt(e)&&r.set(e,xf),xf;if(He(i))for(let c=0;c<i.length;c++){const f=ni(i[c]);tI(f)&&(o[f]=Ln)}else if(i)for(const c in i){const f=ni(c);if(tI(f)){const d=i[c],h=o[f]=He(d)||it(d)?{type:d}:Yn({},d);if(h){const v=aI(Boolean,h.type),p=aI(String,h.type);h[0]=v>-1,h[1]=p<0||v<p,(v>-1||Nt(h,"default"))&&s.push(f)}}}const u=[o,s];return Mt(e)&&r.set(e,u),u}function tI(e){return e[0]!=="$"}function nI(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function rI(e,t){return nI(e)===nI(t)}function aI(e,t){return He(t)?t.findIndex(n=>rI(n,e)):it(t)&&rI(t,e)?0:-1}const hV=e=>e[0]==="_"||e==="$stable",BT=e=>He(e)?e.map(ro):[ro(e)],Ej=(e,t,n)=>{if(t._n)return t;const r=re((...a)=>BT(t(...a)),n);return r._c=!1,r},vV=(e,t,n)=>{const r=e._ctx;for(const a in e){if(hV(a))continue;const i=e[a];if(it(i))t[a]=Ej(a,i,r);else if(i!=null){const o=BT(i);t[a]=()=>o}}},pV=(e,t)=>{const n=BT(t);e.slots.default=()=>n},Ij=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=tn(t),Qy(t,"_",n)):vV(t,e.slots={})}else e.slots={},t&&pV(e,t);Qy(e.slots,Rb,1)},Dj=(e,t,n)=>{const{vnode:r,slots:a}=e;let i=!0,o=Ln;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(Yn(a,t),!n&&s===1&&delete a._):(i=!t.$stable,vV(t,a)),o=t}else t&&(pV(e,t),o={default:1});if(i)for(const s in a)!hV(s)&&!(s in o)&&delete a[s]};function mC(e,t,n,r,a=!1){if(He(e)){e.forEach((d,h)=>mC(d,t&&(He(t)?t[h]:t),n,r,a));return}if(Qh(r)&&!a)return;const i=r.shapeFlag&4?$b(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Ln?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(lt(u)?(c[u]=null,Nt(f,u)&&(f[u]=null)):cn(u)&&(u.value=null)),it(l))el(l,s,12,[o,c]);else{const d=lt(l),h=cn(l);if(d||h){const v=()=>{if(e.f){const p=d?Nt(f,l)?f[l]:c[l]:l.value;a?He(p)&&wT(p,i):He(p)?p.includes(i)||p.push(i):d?(c[l]=[i],Nt(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,Nt(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,fa(v,n)):v()}}}const fa=sj;function Pj(e){return Lj(e)}function Lj(e,t){const n=lC();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=rn,insertStaticContent:v}=e,p=(W,X,oe,pe=null,Se=null,me=null,Ee=!1,Ce=null,we=!!X.dynamicChildren)=>{if(W===X)return;W&&!Su(W,X)&&(pe=ee(W),U(W,Se,me,!0),W=null),X.patchFlag===-2&&(we=!1,X.dynamicChildren=null);const{type:Te,ref:$e,shapeFlag:Be}=X;switch(Te){case Td:g(W,X,oe,pe);break;case Yr:m(W,X,oe,pe);break;case s_:W==null&&b(X,oe,pe,Ee);break;case je:E(W,X,oe,pe,Se,me,Ee,Ce,we);break;default:Be&1?C(W,X,oe,pe,Se,me,Ee,Ce,we):Be&6?D(W,X,oe,pe,Se,me,Ee,Ce,we):(Be&64||Be&128)&&Te.process(W,X,oe,pe,Se,me,Ee,Ce,we,de)}$e!=null&&Se&&mC($e,W&&W.ref,me,X||W,!X)},g=(W,X,oe,pe)=>{if(W==null)r(X.el=s(X.children),oe,pe);else{const Se=X.el=W.el;X.children!==W.children&&u(Se,X.children)}},m=(W,X,oe,pe)=>{W==null?r(X.el=l(X.children||""),oe,pe):X.el=W.el},b=(W,X,oe,pe)=>{[W.el,W.anchor]=v(W.children,X,oe,pe,W.el,W.anchor)},_=({el:W,anchor:X},oe,pe)=>{let Se;for(;W&&W!==X;)Se=d(W),r(W,oe,pe),W=Se;r(X,oe,pe)},w=({el:W,anchor:X})=>{let oe;for(;W&&W!==X;)oe=d(W),a(W),W=oe;a(X)},C=(W,X,oe,pe,Se,me,Ee,Ce,we)=>{Ee=Ee||X.type==="svg",W==null?S(X,oe,pe,Se,me,Ee,Ce,we):M(W,X,Se,me,Ee,Ce,we)},S=(W,X,oe,pe,Se,me,Ee,Ce)=>{let we,Te;const{type:$e,props:Be,shapeFlag:We,transition:Ae,dirs:Fe}=W;if(we=W.el=o(W.type,me,Be&&Be.is,Be),We&8?c(we,W.children):We&16&&T(W.children,we,null,pe,Se,me&&$e!=="foreignObject",Ee,Ce),Fe&&Bl(W,null,pe,"created"),x(we,W,W.scopeId,Ee,pe),Be){for(const vt in Be)vt!=="value"&&!ay(vt)&&i(we,vt,null,Be[vt],me,W.children,pe,Se,Q);"value"in Be&&i(we,"value",null,Be.value),(Te=Be.onVnodeBeforeMount)&&ji(Te,pe,W)}Fe&&Bl(W,null,pe,"beforeMount");const rt=(!Se||Se&&!Se.pendingBranch)&&Ae&&!Ae.persisted;rt&&Ae.beforeEnter(we),r(we,X,oe),((Te=Be&&Be.onVnodeMounted)||rt||Fe)&&fa(()=>{Te&&ji(Te,pe,W),rt&&Ae.enter(we),Fe&&Bl(W,null,pe,"mounted")},Se)},x=(W,X,oe,pe,Se)=>{if(oe&&h(W,oe),pe)for(let me=0;me<pe.length;me++)h(W,pe[me]);if(Se){let me=Se.subTree;if(X===me){const Ee=Se.vnode;x(W,Ee,Ee.scopeId,Ee.slotScopeIds,Se.parent)}}},T=(W,X,oe,pe,Se,me,Ee,Ce,we=0)=>{for(let Te=we;Te<W.length;Te++){const $e=W[Te]=Ce?Ns(W[Te]):ro(W[Te]);p(null,$e,X,oe,pe,Se,me,Ee,Ce)}},M=(W,X,oe,pe,Se,me,Ee)=>{const Ce=X.el=W.el;let{patchFlag:we,dynamicChildren:Te,dirs:$e}=X;we|=W.patchFlag&16;const Be=W.props||Ln,We=X.props||Ln;let Ae;oe&&Vl(oe,!1),(Ae=We.onVnodeBeforeUpdate)&&ji(Ae,oe,X,W),$e&&Bl(X,W,oe,"beforeUpdate"),oe&&Vl(oe,!0);const Fe=Se&&X.type!=="foreignObject";if(Te?A(W.dynamicChildren,Te,Ce,oe,pe,Fe,me):Ee||$(W,X,Ce,null,oe,pe,Fe,me,!1),we>0){if(we&16)k(Ce,X,Be,We,oe,pe,Se);else if(we&2&&Be.class!==We.class&&i(Ce,"class",null,We.class,Se),we&4&&i(Ce,"style",Be.style,We.style,Se),we&8){const rt=X.dynamicProps;for(let vt=0;vt<rt.length;vt++){const kt=rt[vt],Qe=Be[kt],ye=We[kt];(ye!==Qe||kt==="value")&&i(Ce,kt,Qe,ye,Se,W.children,oe,pe,Q)}}we&1&&W.children!==X.children&&c(Ce,X.children)}else!Ee&&Te==null&&k(Ce,X,Be,We,oe,pe,Se);((Ae=We.onVnodeUpdated)||$e)&&fa(()=>{Ae&&ji(Ae,oe,X,W),$e&&Bl(X,W,oe,"updated")},pe)},A=(W,X,oe,pe,Se,me,Ee)=>{for(let Ce=0;Ce<X.length;Ce++){const we=W[Ce],Te=X[Ce],$e=we.el&&(we.type===je||!Su(we,Te)||we.shapeFlag&70)?f(we.el):oe;p(we,Te,$e,null,pe,Se,me,Ee,!0)}},k=(W,X,oe,pe,Se,me,Ee)=>{if(oe!==pe){if(oe!==Ln)for(const Ce in oe)!ay(Ce)&&!(Ce in pe)&&i(W,Ce,oe[Ce],null,Ee,X.children,Se,me,Q);for(const Ce in pe){if(ay(Ce))continue;const we=pe[Ce],Te=oe[Ce];we!==Te&&Ce!=="value"&&i(W,Ce,Te,we,Ee,X.children,Se,me,Q)}"value"in pe&&i(W,"value",oe.value,pe.value)}},E=(W,X,oe,pe,Se,me,Ee,Ce,we)=>{const Te=X.el=W?W.el:s(""),$e=X.anchor=W?W.anchor:s("");let{patchFlag:Be,dynamicChildren:We,slotScopeIds:Ae}=X;Ae&&(Ce=Ce?Ce.concat(Ae):Ae),W==null?(r(Te,oe,pe),r($e,oe,pe),T(X.children,oe,$e,Se,me,Ee,Ce,we)):Be>0&&Be&64&&We&&W.dynamicChildren?(A(W.dynamicChildren,We,oe,Se,me,Ee,Ce),(X.key!=null||Se&&X===Se.subTree)&&VT(W,X,!0)):$(W,X,oe,$e,Se,me,Ee,Ce,we)},D=(W,X,oe,pe,Se,me,Ee,Ce,we)=>{X.slotScopeIds=Ce,W==null?X.shapeFlag&512?Se.ctx.activate(X,oe,pe,Ee,we):L(X,oe,pe,Se,me,Ee,we):B(W,X,we)},L=(W,X,oe,pe,Se,me,Ee)=>{const Ce=W.component=Hj(W,pe,Se);if(Db(W)&&(Ce.ctx.renderer=de),Gj(Ce),Ce.asyncDep){if(Se&&Se.registerDep(Ce,N),!W.el){const we=Ce.subTree=q(Yr);m(null,we,X,oe)}return}N(Ce,W,X,oe,Se,me,Ee)},B=(W,X,oe)=>{const pe=X.component=W.component;if(aj(W,X,oe))if(pe.asyncDep&&!pe.asyncResolved){O(pe,X,oe);return}else pe.next=X,JY(pe.update),pe.update();else X.el=W.el,pe.vnode=X},N=(W,X,oe,pe,Se,me,Ee)=>{const Ce=()=>{if(W.isMounted){let{next:$e,bu:Be,u:We,parent:Ae,vnode:Fe}=W,rt=$e,vt;Vl(W,!1),$e?($e.el=Fe.el,O(W,$e,Ee)):$e=Fe,Be&&oy(Be),(vt=$e.props&&$e.props.onVnodeBeforeUpdate)&&ji(vt,Ae,$e,Fe),Vl(W,!0);const kt=a_(W),Qe=W.subTree;W.subTree=kt,p(Qe,kt,f(Qe.el),ee(Qe),W,Se,me),$e.el=kt.el,rt===null&&ij(W,kt.el),We&&fa(We,Se),(vt=$e.props&&$e.props.onVnodeUpdated)&&fa(()=>ji(vt,Ae,$e,Fe),Se)}else{let $e;const{el:Be,props:We}=X,{bm:Ae,m:Fe,parent:rt}=W,vt=Qh(X);if(Vl(W,!1),Ae&&oy(Ae),!vt&&($e=We&&We.onVnodeBeforeMount)&&ji($e,rt,X),Vl(W,!0),Be&&ie){const kt=()=>{W.subTree=a_(W),ie(Be,W.subTree,W,Se,null)};vt?X.type.__asyncLoader().then(()=>!W.isUnmounted&&kt()):kt()}else{const kt=W.subTree=a_(W);p(null,kt,oe,pe,W,Se,me),X.el=kt.el}if(Fe&&fa(Fe,Se),!vt&&($e=We&&We.onVnodeMounted)){const kt=X;fa(()=>ji($e,rt,kt),Se)}(X.shapeFlag&256||rt&&Qh(rt.vnode)&&rt.vnode.shapeFlag&256)&&W.a&&fa(W.a,Se),W.isMounted=!0,X=oe=pe=null}},we=W.effect=new xT(Ce,()=>PT(Te),W.scope),Te=W.update=()=>we.run();Te.id=W.uid,Vl(W,!0),Te()},O=(W,X,oe)=>{X.component=W;const pe=W.vnode.props;W.vnode=X,W.next=null,Aj(W,X.props,pe,oe),Dj(W,X.children,oe),Sd(),YE(),Cd()},$=(W,X,oe,pe,Se,me,Ee,Ce,we=!1)=>{const Te=W&&W.children,$e=W?W.shapeFlag:0,Be=X.children,{patchFlag:We,shapeFlag:Ae}=X;if(We>0){if(We&128){z(Te,Be,oe,pe,Se,me,Ee,Ce,we);return}else if(We&256){I(Te,Be,oe,pe,Se,me,Ee,Ce,we);return}}Ae&8?($e&16&&Q(Te,Se,me),Be!==Te&&c(oe,Be)):$e&16?Ae&16?z(Te,Be,oe,pe,Se,me,Ee,Ce,we):Q(Te,Se,me,!0):($e&8&&c(oe,""),Ae&16&&T(Be,oe,pe,Se,me,Ee,Ce,we))},I=(W,X,oe,pe,Se,me,Ee,Ce,we)=>{W=W||xf,X=X||xf;const Te=W.length,$e=X.length,Be=Math.min(Te,$e);let We;for(We=0;We<Be;We++){const Ae=X[We]=we?Ns(X[We]):ro(X[We]);p(W[We],Ae,oe,null,Se,me,Ee,Ce,we)}Te>$e?Q(W,Se,me,!0,!1,Be):T(X,oe,pe,Se,me,Ee,Ce,we,Be)},z=(W,X,oe,pe,Se,me,Ee,Ce,we)=>{let Te=0;const $e=X.length;let Be=W.length-1,We=$e-1;for(;Te<=Be&&Te<=We;){const Ae=W[Te],Fe=X[Te]=we?Ns(X[Te]):ro(X[Te]);if(Su(Ae,Fe))p(Ae,Fe,oe,null,Se,me,Ee,Ce,we);else break;Te++}for(;Te<=Be&&Te<=We;){const Ae=W[Be],Fe=X[We]=we?Ns(X[We]):ro(X[We]);if(Su(Ae,Fe))p(Ae,Fe,oe,null,Se,me,Ee,Ce,we);else break;Be--,We--}if(Te>Be){if(Te<=We){const Ae=We+1,Fe=Ae<$e?X[Ae].el:pe;for(;Te<=We;)p(null,X[Te]=we?Ns(X[Te]):ro(X[Te]),oe,Fe,Se,me,Ee,Ce,we),Te++}}else if(Te>We)for(;Te<=Be;)U(W[Te],Se,me,!0),Te++;else{const Ae=Te,Fe=Te,rt=new Map;for(Te=Fe;Te<=We;Te++){const te=X[Te]=we?Ns(X[Te]):ro(X[Te]);te.key!=null&&rt.set(te.key,Te)}let vt,kt=0;const Qe=We-Fe+1;let ye=!1,fe=0;const le=new Array(Qe);for(Te=0;Te<Qe;Te++)le[Te]=0;for(Te=Ae;Te<=Be;Te++){const te=W[Te];if(kt>=Qe){U(te,Se,me,!0);continue}let Ve;if(te.key!=null)Ve=rt.get(te.key);else for(vt=Fe;vt<=We;vt++)if(le[vt-Fe]===0&&Su(te,X[vt])){Ve=vt;break}Ve===void 0?U(te,Se,me,!0):(le[Ve-Fe]=Te+1,Ve>=fe?fe=Ve:ye=!0,p(te,X[Ve],oe,null,Se,me,Ee,Ce,we),kt++)}const ke=ye?Rj(le):xf;for(vt=ke.length-1,Te=Qe-1;Te>=0;Te--){const te=Fe+Te,Ve=X[te],st=te+1<$e?X[te+1].el:pe;le[Te]===0?p(null,Ve,oe,st,Se,me,Ee,Ce,we):ye&&(vt<0||Te!==ke[vt]?G(Ve,oe,st,2):vt--)}}},G=(W,X,oe,pe,Se=null)=>{const{el:me,type:Ee,transition:Ce,children:we,shapeFlag:Te}=W;if(Te&6){G(W.component.subTree,X,oe,pe);return}if(Te&128){W.suspense.move(X,oe,pe);return}if(Te&64){Ee.move(W,X,oe,de);return}if(Ee===je){r(me,X,oe);for(let Be=0;Be<we.length;Be++)G(we[Be],X,oe,pe);r(W.anchor,X,oe);return}if(Ee===s_){_(W,X,oe);return}if(pe!==2&&Te&1&&Ce)if(pe===0)Ce.beforeEnter(me),r(me,X,oe),fa(()=>Ce.enter(me),Se);else{const{leave:Be,delayLeave:We,afterLeave:Ae}=Ce,Fe=()=>r(me,X,oe),rt=()=>{Be(me,()=>{Fe(),Ae&&Ae()})};We?We(me,Fe,rt):rt()}else r(me,X,oe)},U=(W,X,oe,pe=!1,Se=!1)=>{const{type:me,props:Ee,ref:Ce,children:we,dynamicChildren:Te,shapeFlag:$e,patchFlag:Be,dirs:We}=W;if(Ce!=null&&mC(Ce,null,oe,W,!0),$e&256){X.ctx.deactivate(W);return}const Ae=$e&1&&We,Fe=!Qh(W);let rt;if(Fe&&(rt=Ee&&Ee.onVnodeBeforeUnmount)&&ji(rt,X,W),$e&6)J(W.component,oe,pe);else{if($e&128){W.suspense.unmount(oe,pe);return}Ae&&Bl(W,null,X,"beforeUnmount"),$e&64?W.type.remove(W,X,oe,Se,de,pe):Te&&(me!==je||Be>0&&Be&64)?Q(Te,X,oe,!1,!0):(me===je&&Be&384||!Se&&$e&16)&&Q(we,X,oe),pe&&Z(W)}(Fe&&(rt=Ee&&Ee.onVnodeUnmounted)||Ae)&&fa(()=>{rt&&ji(rt,X,W),Ae&&Bl(W,null,X,"unmounted")},oe)},Z=W=>{const{type:X,el:oe,anchor:pe,transition:Se}=W;if(X===je){ae(oe,pe);return}if(X===s_){w(W);return}const me=()=>{a(oe),Se&&!Se.persisted&&Se.afterLeave&&Se.afterLeave()};if(W.shapeFlag&1&&Se&&!Se.persisted){const{leave:Ee,delayLeave:Ce}=Se,we=()=>Ee(oe,me);Ce?Ce(W.el,me,we):we()}else me()},ae=(W,X)=>{let oe;for(;W!==X;)oe=d(W),a(W),W=oe;a(X)},J=(W,X,oe)=>{const{bum:pe,scope:Se,update:me,subTree:Ee,um:Ce}=W;pe&&oy(pe),Se.stop(),me&&(me.active=!1,U(Ee,W,X,oe)),Ce&&fa(Ce,X),fa(()=>{W.isUnmounted=!0},X),X&&X.pendingBranch&&!X.isUnmounted&&W.asyncDep&&!W.asyncResolved&&W.suspenseId===X.pendingId&&(X.deps--,X.deps===0&&X.resolve())},Q=(W,X,oe,pe=!1,Se=!1,me=0)=>{for(let Ee=me;Ee<W.length;Ee++)U(W[Ee],X,oe,pe,Se)},ee=W=>W.shapeFlag&6?ee(W.component.subTree):W.shapeFlag&128?W.suspense.next():d(W.anchor||W.el),j=(W,X,oe)=>{W==null?X._vnode&&U(X._vnode,null,null,!0):p(X._vnode||null,W,X,null,null,null,oe),YE(),XB(),X._vnode=W},de={p,um:U,m:G,r:Z,mt:L,mc:T,pc:$,pbc:A,n:ee,o:e};let ve,ie;return t&&([ve,ie]=t(de)),{render:j,hydrate:ve,createApp:Mj(j,ve)}}function Vl({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function VT(e,t,n=!1){const r=e.children,a=t.children;if(He(r)&&He(a))for(let i=0;i<r.length;i++){const o=r[i];let s=a[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[i]=Ns(a[i]),s.el=o.el),n||VT(o,s)),s.type===Td&&(s.el=o.el)}}function Rj(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 Oj=e=>e.__isTeleport,tv=e=>e&&(e.disabled||e.disabled===""),iI=e=>typeof SVGElement<"u"&&e instanceof SVGElement,yC=(e,t)=>{const n=e&&e.to;return lt(n)?t?t(n):null:n},$j={__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=tv(t.props);let{shapeFlag:b,children:_,dynamicChildren:w}=t;if(e==null){const C=t.el=p(""),S=t.anchor=p("");h(C,n,r),h(S,n,r);const x=t.target=yC(t.props,v),T=t.targetAnchor=p("");x&&(h(T,x),o=o||iI(x));const M=(A,k)=>{b&16&&c(_,A,k,a,i,o,s,l)};m?M(n,S):x&&M(x,T)}else{t.el=e.el;const C=t.anchor=e.anchor,S=t.target=e.target,x=t.targetAnchor=e.targetAnchor,T=tv(e.props),M=T?n:S,A=T?C:x;if(o=o||iI(S),w?(d(e.dynamicChildren,w,M,a,i,o,s),VT(e,t,!0)):l||f(e,t,M,A,a,i,o,s,!1),m)T||$g(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const k=t.target=yC(t.props,v);k&&$g(t,k,null,u,0)}else T&&$g(t,S,x,u,1)}gV(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||!tv(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:$g,hydrate:Nj};function $g(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||tv(c))&&l&16)for(let d=0;d<u.length;d++)a(u[d],t,n,2);f&&r(s,t,n)}function Nj(e,t,n,r,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=yC(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(tv(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)}gV(t)}return t.anchor&&o(t.anchor)}const Kp=$j;function gV(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const je=Symbol.for("v-fgt"),Td=Symbol.for("v-txt"),Yr=Symbol.for("v-cmt"),s_=Symbol.for("v-stc"),nv=[];let ka=null;function R(e=!1){nv.push(ka=e?null:[])}function Bj(){nv.pop(),ka=nv[nv.length-1]||null}let Kf=1;function oI(e){Kf+=e}function mV(e){return e.dynamicChildren=Kf>0?ka||xf:null,Bj(),Kf>0&&ka&&ka.push(e),e}function K(e,t,n,r,a,i){return mV(Y(e,t,n,r,a,i,!0))}function ce(e,t,n,r,a){return mV(q(e,t,n,r,a,!0))}function Tn(e){return e?e.__v_isVNode===!0:!1}function Su(e,t){return e.type===t.type&&e.key===t.key}const Rb="__vInternal",yV=({key:e})=>e??null,sy=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?lt(e)||cn(e)||it(e)?{i:yr,r:e,k:t,f:!!n}:e:null);function Y(e,t=null,n=null,r=0,a=null,i=e===je?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&yV(t),ref:t&&sy(t),scopeId:Ib,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:yr};return s?(zT(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=lt(n)?8:16),Kf>0&&!o&&ka&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&ka.push(l),l}const q=Vj;function Vj(e,t=null,n=null,r=0,a=null,i=!1){if((!e||e===oV)&&(e=Yr),Tn(e)){const s=Qo(e,t,!0);return n&&zT(s,n),Kf>0&&!i&&ka&&(s.shapeFlag&6?ka[ka.indexOf(e)]=s:ka.push(s)),s.patchFlag|=-2,s}if(Yj(e)&&(e=e.__vccOpts),t){t=Ob(t);let{class:s,style:l}=t;s&&!lt(s)&&(t.class=V(s)),Mt(l)&&(GB(l)&&!He(l)&&(l=Yn({},l)),t.style=Ye(l))}const o=lt(e)?1:oj(e)?128:Oj(e)?64:Mt(e)?4:it(e)?2:0;return Y(e,t,n,r,a,o,i,!0)}function Ob(e){return e?GB(e)||Rb in e?Yn({},e):e:null}function Qo(e,t,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=e,s=t?St(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&yV(s),ref:t&&t.ref?n&&a?He(a)?a.concat(sy(t)):[a,sy(t)]:sy(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==je?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qo(e.ssContent),ssFallback:e.ssFallback&&Qo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ut(e=" ",t=0){return q(Td,null,e,t)}function se(e="",t=!1){return t?(R(),ce(Yr,null,e)):q(Yr,null,e)}function ro(e){return e==null||typeof e=="boolean"?q(Yr):He(e)?q(je,null,e.slice()):typeof e=="object"?Ns(e):q(Td,null,String(e))}function Ns(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qo(e)}function zT(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(He(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),zT(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!(Rb in t)?t._ctx=yr:a===3&&yr&&(yr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else it(t)?(t={default:t,_ctx:yr},n=32):(t=String(t),r&64?(n=16,t=[Ut(t)]):n=8);e.children=t,e.shapeFlag|=n}function St(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const a in r)if(a==="class")t.class!==r.class&&(t.class=V([t.class,r.class]));else if(a==="style")t.style=Ye([t.style,r.style]);else if(Cb(a)){const i=t[a],o=r[a];o&&i!==o&&!(He(i)&&i.includes(o))&&(t[a]=i?[].concat(i,o):o)}else a!==""&&(t[a]=r[a])}return t}function ji(e,t,n,r=null){Qa(e,t,7,[n,r])}const zj=cV();let Fj=0;function Hj(e,t,n){const r=e.type,a=(t?t.appContext:e.appContext)||zj,i={uid:Fj++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new AB(!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:dV(r,a),emitsOptions:JB(r,a),emit:null,emitted:null,propsDefaults:Ln,inheritAttrs:r.inheritAttrs,ctx:Ln,data:Ln,props:Ln,attrs:Ln,slots:Ln,refs:Ln,setupState:Ln,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=tj.bind(null,i),e.ce&&e.ce(i),i}let dr=null;const gt=()=>dr||yr;let FT,Pc,sI="__VUE_INSTANCE_SETTERS__";(Pc=lC()[sI])||(Pc=lC()[sI]=[]),Pc.push(e=>dr=e),FT=e=>{Pc.length>1?Pc.forEach(t=>t(e)):Pc[0](e)};const Uf=e=>{FT(e),e.scope.on()},Uu=()=>{dr&&dr.scope.off(),FT(null)};function bV(e){return e.vnode.shapeFlag&4}let Vv=!1;function Gj(e,t=!1){Vv=t;const{props:n,children:r}=e.vnode,a=bV(e);kj(e,n,a,t),Ij(e,r);const i=a?Wj(e,t):void 0;return Vv=!1,i}function Wj(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Qs(new Proxy(e.ctx,bj));const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?wV(e):null;Uf(e),Sd();const i=el(r,e,0,[e.props,a]);if(Cd(),Uu(),Pv(i)){if(i.then(Uu,Uu),t)return i.then(o=>{lI(e,o,t)}).catch(o=>{Ab(o,e,0)});e.asyncDep=i}else lI(e,i,t)}else _V(e,t)}function lI(e,t,n){it(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Mt(t)&&(e.setupState=KB(t)),_V(e,n)}let uI;function _V(e,t,n){const r=e.type;if(!e.render){if(!t&&uI&&!r.render){const a=r.template||NT(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Yn(Yn({isCustomElement:i,delimiters:s},o),l);r.render=uI(a,u)}}e.render=r.render||rn}Uf(e),Sd(),_j(e),Cd(),Uu()}function Kj(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return ba(e,"get","$attrs"),t[n]}}))}function wV(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Kj(e)},slots:e.slots,emit:e.emit,expose:t}}function $b(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(KB(Qs(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ev)return ev[n](e)},has(t,n){return n in t||n in ev}}))}function Uj(e,t=!0){return it(e)?e.displayName||e.name:e.name||t&&e.__name}function Yj(e){return it(e)&&"__vccOpts"in e}const P=(e,t)=>YB(e,t,Vv);function Ze(e,t,n){const r=arguments.length;return r===2?Mt(t)&&!He(t)?Tn(t)?q(e,null,[t]):q(e,t):q(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Tn(n)&&(n=[n]),q(e,t,n))}const jj=Symbol.for("v-scx"),qj=()=>Ge(jj);function Mje(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(Hf(n[r],t[r]))return!1;return Kf>0&&ka&&ka.push(e),!0}const Xj="3.3.4",Zj="http://www.w3.org/2000/svg",Cu=typeof document<"u"?document:null,cI=Cu&&Cu.createElement("template"),Jj={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?Cu.createElementNS(Zj,e):Cu.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>Cu.createTextNode(e),createComment:e=>Cu.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Cu.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{cI.innerHTML=r?`<svg>${e}</svg>`:e;const s=cI.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 Qj(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 eq(e,t,n){const r=e.style,a=lt(n);if(n&&!a){if(t&&!lt(t))for(const i in t)n[i]==null&&bC(r,i,"");for(const i in n)bC(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 fI=/\s*!important$/;function bC(e,t,n){if(He(n))n.forEach(r=>bC(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=tq(e,t);fI.test(n)?e.setProperty(xl(r),n.replace(fI,""),"important"):e[r]=n}}const dI=["Webkit","Moz","ms"],l_={};function tq(e,t){const n=l_[t];if(n)return n;let r=ni(t);if(r!=="filter"&&r in e)return l_[t]=r;r=Wp(r);for(let a=0;a<dI.length;a++){const i=dI[a]+r;if(i in e)return l_[t]=i}return t}const hI="http://www.w3.org/1999/xlink";function nq(e,t,n,r,a){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(hI,t.slice(6,t.length)):e.setAttributeNS(hI,t,n);else{const i=hY(t);n==null||i&&!TB(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function rq(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=TB(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function Fs(e,t,n,r){e.addEventListener(t,n,r)}function aq(e,t,n,r){e.removeEventListener(t,n,r)}function iq(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]=oq(t);if(r){const u=i[t]=uq(r,a);Fs(e,s,u,l)}else o&&(aq(e,s,o,l),i[t]=void 0)}}const vI=/(?:Once|Passive|Capture)$/;function oq(e){let t;if(vI.test(e)){t={};let r;for(;r=e.match(vI);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):xl(e.slice(2)),t]}let u_=0;const sq=Promise.resolve(),lq=()=>u_||(sq.then(()=>u_=0),u_=Date.now());function uq(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Qa(cq(r,n.value),t,5,[r])};return n.value=e,n.attached=lq(),n}function cq(e,t){if(He(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>a=>!a._stopped&&r&&r(a))}else return t}const pI=/^on[a-z]/,fq=(e,t,n,r,a=!1,i,o,s,l)=>{t==="class"?Qj(e,r,a):t==="style"?eq(e,n,r):Cb(t)?_T(t)||iq(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dq(e,t,r,a))?rq(e,t,r,i,o,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),nq(e,t,r,a))};function dq(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&pI.test(t)&&it(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||pI.test(t)&&lt(n)?!1:t in e}const ys="transition",Qd="animation",Bn=(e,{slots:t})=>Ze(cj,CV(e),t);Bn.displayName="Transition";const SV={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},hq=Bn.props=Yn({},tV,SV),zl=(e,t=[])=>{He(e)?e.forEach(n=>n(...t)):e&&e(...t)},gI=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function CV(e){const t={};for(const E in e)E in SV||(t[E]=e[E]);if(e.css===!1)return t;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=vq(a),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:b,onEnterCancelled:_,onLeave:w,onLeaveCancelled:C,onBeforeAppear:S=m,onAppear:x=b,onAppearCancelled:T=_}=t,M=(E,D,L)=>{Ds(E,D?c:s),Ds(E,D?u:o),L&&L()},A=(E,D)=>{E._isLeaving=!1,Ds(E,f),Ds(E,h),Ds(E,d),D&&D()},k=E=>(D,L)=>{const B=E?x:b,N=()=>M(D,E,L);zl(B,[D,N]),mI(()=>{Ds(D,E?l:i),Oo(D,E?c:s),gI(B)||yI(D,r,p,N)})};return Yn(t,{onBeforeEnter(E){zl(m,[E]),Oo(E,i),Oo(E,o)},onBeforeAppear(E){zl(S,[E]),Oo(E,l),Oo(E,u)},onEnter:k(!1),onAppear:k(!0),onLeave(E,D){E._isLeaving=!0;const L=()=>A(E,D);Oo(E,f),TV(),Oo(E,d),mI(()=>{E._isLeaving&&(Ds(E,f),Oo(E,h),gI(w)||yI(E,r,g,L))}),zl(w,[E,L])},onEnterCancelled(E){M(E,!1),zl(_,[E])},onAppearCancelled(E){M(E,!0),zl(T,[E])},onLeaveCancelled(E){A(E),zl(C,[E])}})}function vq(e){if(e==null)return null;if(Mt(e))return[c_(e.enter),c_(e.leave)];{const t=c_(e);return[t,t]}}function c_(e){return sY(e)}function Oo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ds(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 mI(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pq=0;function yI(e,t,n,r){const a=e._endId=++pq,i=()=>{a===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=xV(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 xV(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),a=r(`${ys}Delay`),i=r(`${ys}Duration`),o=bI(a,i),s=r(`${Qd}Delay`),l=r(`${Qd}Duration`),u=bI(s,l);let c=null,f=0,d=0;t===ys?o>0&&(c=ys,f=o,d=i.length):t===Qd?u>0&&(c=Qd,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?ys:Qd:null,d=c?c===ys?i.length:l.length:0);const h=c===ys&&/\b(transform|all)(,|$)/.test(r(`${ys}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function bI(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>_I(n)+_I(e[r])))}function _I(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function TV(){return document.body.offsetHeight}const MV=new WeakMap,kV=new WeakMap,AV={name:"TransitionGroup",props:Yn({},hq,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=gt(),r=eV();let a,i;return cs(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!_q(a[0].el,n.vnode.el,o))return;a.forEach(mq),a.forEach(yq);const s=a.filter(bq);TV(),s.forEach(l=>{const u=l.el,c=u.style;Oo(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u._moveCb=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,Ds(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=tn(e),s=CV(o);let l=o.tag||je;a=i,i=t.default?RT(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Nv(c,$v(c,s,r,n))}if(a)for(let u=0;u<a.length;u++){const c=a[u];Nv(c,$v(c,s,r,n)),MV.set(c,c.el.getBoundingClientRect())}return q(l,null,i)}}},gq=e=>delete e.mode;AV.props;const EV=AV;function mq(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function yq(e){kV.set(e,e.el.getBoundingClientRect())}function bq(e){const t=MV.get(e),n=kV.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 _q(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}=xV(r);return a.removeChild(r),i}const Yf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?n=>oy(t,n):t};function wq(e){e.target.composing=!0}function wI(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const HT={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e._assign=Yf(a);const i=r||a.props&&a.props.type==="number";Fs(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=sC(s)),e._assign(s)}),n&&Fs(e,"change",()=>{e.value=e.value.trim()}),t||(Fs(e,"compositionstart",wq),Fs(e,"compositionend",wI),Fs(e,"change",wI))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},i){if(e._assign=Yf(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(a||e.type==="number")&&sC(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},i0={deep:!0,created(e,t,n){e._assign=Yf(n),Fs(e,"change",()=>{const r=e._modelValue,a=DV(e),i=e.checked,o=e._assign;if(He(r)){const s=MB(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(xb(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(PV(e,i))})},mounted:SI,beforeUpdate(e,t,n){e._assign=Yf(n),SI(e,t,n)}};function SI(e,{value:t,oldValue:n},r){e._modelValue=t,He(t)?e.checked=MB(t,r.props.value)>-1:xb(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Gf(t,PV(e,!0)))}const IV={created(e,{value:t},n){e.checked=Gf(t,n.props.value),e._assign=Yf(n),Fs(e,"change",()=>{e._assign(DV(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Yf(r),t!==n&&(e.checked=Gf(t,r.props.value))}};function DV(e){return"_value"in e?e._value:e.value}function PV(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Sq=["ctrl","shift","alt","meta"],Cq={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)=>Sq.some(n=>e[`${n}Key`]&&!t.includes(n))},tt=(e,t)=>(n,...r)=>{for(let a=0;a<t.length;a++){const i=Cq[t[a]];if(i&&i(n,t))return}return e(n,...r)},xq={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ft=(e,t)=>n=>{if(!("key"in n))return;const r=xl(n.key);if(t.some(a=>a===r||xq[a]===r))return e(n)},Kt={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):eh(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),eh(e,!0),r.enter(e)):r.leave(e,()=>{eh(e,!1)}):eh(e,t))},beforeUnmount(e,{value:t}){eh(e,t)}};function eh(e,t){e.style.display=t?e._vod:"none"}const Tq=Yn({patchProp:fq},Jj);let CI;function LV(){return CI||(CI=Pj(Tq))}const jf=(...e)=>{LV().render(...e)},RV=(...e)=>{const t=LV().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=Mq(r);if(!a)return;const i=t._component;!it(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=n(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},t};function Mq(e){return lt(e)?document.querySelector(e):e}const kq=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Aq={};function Eq(e,t){const n=ct("router-view");return R(),ce(n)}const Iq=kq(Aq,[["render",Eq]]),Dq="modulepreload",Pq=function(e,t){return new URL(e,t).href},xI={},bs=function(t,n,r){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=Pq(i,r),i in xI)return;xI[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":Dq,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};/*!
  2. * vue-router v4.0.16
  3. * (c) 2022 Eduardo San Martin Morote
  4. * @license MIT
  5. */const OV=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Md=e=>OV?Symbol(e):"_vr_"+e,Lq=Md("rvlm"),TI=Md("rvd"),Nb=Md("r"),GT=Md("rl"),_C=Md("rvl"),of=typeof window<"u";function Rq(e){return e.__esModule||OV&&e[Symbol.toStringTag]==="Module"}const Mn=Object.assign;function f_(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 rv=()=>{},Oq=/\/$/,$q=e=>e.replace(Oq,"");function d_(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=zq(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function Nq(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function MI(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Bq(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&qf(t.matched[r],n.matched[a])&&$V(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function qf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function $V(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Vq(e[n],t[n]))return!1;return!0}function Vq(e,t){return Array.isArray(e)?kI(e,t):Array.isArray(t)?kI(t,e):e===t}function kI(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function zq(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 zv;(function(e){e.pop="pop",e.push="push"})(zv||(zv={}));var av;(function(e){e.back="back",e.forward="forward",e.unknown=""})(av||(av={}));function Fq(e){if(!e)if(of){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),$q(e)}const Hq=/^[^#]+#/;function Gq(e,t){return e.replace(Hq,"#")+t}function Wq(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 Bb=()=>({left:window.pageXOffset,top:window.pageYOffset});function Kq(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=Wq(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 AI(e,t){return(history.state?history.state.position-t:-1)+e}const wC=new Map;function Uq(e,t){wC.set(e,t)}function Yq(e){const t=wC.get(e);return wC.delete(e),t}let jq=()=>location.protocol+"//"+location.host;function NV(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),MI(l,"")}return MI(n,e)+r+a}function qq(e,t,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const h=NV(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:zv.pop,direction:g?g>0?av.forward:av.back:av.unknown})})};function l(){o=n.value}function u(d){a.push(d);const h=()=>{const v=a.indexOf(d);v>-1&&a.splice(v,1)};return i.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(Mn({},d.state,{scroll:Bb()}),"")}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 EI(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?Bb():null}}function Xq(e){const{history:t,location:n}=window,r={value:NV(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:jq()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),a.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function o(l,u){const c=Mn({},t.state,EI(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),r.value=l}function s(l,u){const c=Mn({},a.value,t.state,{forward:l,scroll:Bb()});i(c.current,c,!0);const f=Mn({},EI(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 Zq(e){e=Fq(e);const t=Xq(e),n=qq(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=Mn({location:"",base:e,go:r,createHref:Gq.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 Jq(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Zq(e)}function Qq(e){return typeof e=="string"||e&&typeof e=="object"}function BV(e){return typeof e=="string"||typeof e=="symbol"}const _s={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},VV=Md("nf");var II;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(II||(II={}));function Xf(e,t){return Mn(new Error,{type:e,[VV]:!0},t)}function ws(e,t){return e instanceof Error&&VV in e&&(t==null||!!(e.type&t))}const DI="[^/]+?",eX={sensitive:!1,strict:!1,start:!0,end:!0},tX=/[.+*?^${}()[\]/\\]/g;function nX(e,t){const n=Mn({},eX,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(tX,"\\$&"),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||DI;if(b!==DI){h+=10;try{new RegExp(`(${b})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${v}" (${b}): `+w.message)}}let _=p?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),a+=_,h+=20,g&&(h+=-8),p&&(h+=-20),b===".*"&&(h+=-50)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(a+="/?"),n.end?a+="$":n.strict&&(a+="(?:/|$)");const o=new RegExp(a,n.sensitive?"":"i");function s(u){const c=u.match(o),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",v=i[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:p,optional:g}=h,m=v in u?u[v]:"";if(Array.isArray(m)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const b=Array.isArray(m)?m.join("/"):m;if(!b)if(g)d.length<2&&e.length>1&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=b}}return c}return{re:o,score:r,keys:i,parse:s,stringify:l}}function rX(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 aX(e,t){let n=0;const r=e.score,a=t.score;for(;n<r.length&&n<a.length;){const i=rX(r[n],a[n]);if(i)return i;n++}if(Math.abs(a.length-r.length)===1){if(PI(r))return 1;if(PI(a))return-1}return a.length-r.length}function PI(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const iX={type:0,value:""},oX=/[a-zA-Z0-9_]/;function sX(e){if(!e)return[[]];if(e==="/")return[[iX]];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:oX.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 lX(e,t,n){const r=nX(sX(e.path),n),a=Mn(r,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function uX(e,t){const n=[],r=new Map;t=RI({strict:!1,end:!0,sensitive:!1},t);function a(c){return r.get(c)}function i(c,f,d){const h=!d,v=fX(c);v.aliasOf=d&&d.record;const p=RI(t,c),g=[v];if("alias"in c){const _=typeof c.alias=="string"?[c.alias]:c.alias;for(const w of _)g.push(Mn({},v,{components:d?d.record.components:v.components,path:w,aliasOf:d?d.record:v}))}let m,b;for(const _ of g){const{path:w}=_;if(f&&w[0]!=="/"){const C=f.record.path,S=C[C.length-1]==="/"?"":"/";_.path=f.record.path+(w&&S+w)}if(m=lX(_,f,p),d?d.alias.push(m):(b=b||m,b!==m&&b.alias.push(m),h&&c.name&&!LI(m)&&o(c.name)),"children"in v){const C=v.children;for(let S=0;S<C.length;S++)i(C[S],m,d&&d.children[S])}d=d||m,l(m)}return b?()=>{o(b)}:rv}function o(c){if(BV(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&&aX(c,n[f])>=0&&(c.record.path!==n[f].record.path||!zV(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!LI(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 Xf(1,{location:c});p=d.record.name,h=Mn(cX(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 Xf(1,{location:c,currentLocation:f});p=d.record.name,h=Mn({},f.params,c.params),v=d.stringify(h)}const g=[];let m=d;for(;m;)g.unshift(m.record),m=m.parent;return{name:p,path:v,params:h,matched:g,meta:hX(g)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function cX(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function fX(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:dX(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function dX(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 LI(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hX(e){return e.reduce((t,n)=>Mn(t,n.meta),{})}function RI(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function zV(e,t){return t.children.some(n=>n===e||zV(e,n))}const FV=/#/g,vX=/&/g,pX=/\//g,gX=/=/g,mX=/\?/g,HV=/\+/g,yX=/%5B/g,bX=/%5D/g,GV=/%5E/g,_X=/%60/g,WV=/%7B/g,wX=/%7C/g,KV=/%7D/g,SX=/%20/g;function WT(e){return encodeURI(""+e).replace(wX,"|").replace(yX,"[").replace(bX,"]")}function CX(e){return WT(e).replace(WV,"{").replace(KV,"}").replace(GV,"^")}function SC(e){return WT(e).replace(HV,"%2B").replace(SX,"+").replace(FV,"%23").replace(vX,"%26").replace(_X,"`").replace(WV,"{").replace(KV,"}").replace(GV,"^")}function xX(e){return SC(e).replace(gX,"%3D")}function TX(e){return WT(e).replace(FV,"%23").replace(mX,"%3F")}function MX(e){return e==null?"":TX(e).replace(pX,"%2F")}function o0(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function kX(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(HV," "),o=i.indexOf("="),s=o0(o<0?i:i.slice(0,o)),l=o<0?null:o0(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 OI(e){let t="";for(let n in e){const r=e[n];if(n=xX(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Array.isArray(r)?r.map(i=>i&&SC(i)):[r&&SC(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function AX(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 th(){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 Bs(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(Xf(4,{from:n,to:t})):f instanceof Error?s(f):Qq(f)?s(Xf(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 h_(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(EX(s)){const u=(s.__vccOpts||s)[t];u&&a.push(Bs(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=Rq(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&Bs(d,n,r,i,o)()}))}}return a}function EX(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function $I(e){const t=Ge(Nb),n=Ge(GT),r=P(()=>t.resolve(y(e.to))),a=P(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(qf.bind(null,c));if(d>-1)return d;const h=NI(l[u-2]);return u>1&&NI(c)===h&&f[f.length-1].path!==h?f.findIndex(qf.bind(null,l[u-2])):d}),i=P(()=>a.value>-1&&LX(n.params,r.value.params)),o=P(()=>a.value>-1&&a.value===n.matched.length-1&&$V(n.params,r.value.params));function s(l={}){return PX(l)?t[y(e.replace)?"replace":"push"](y(e.to)).catch(rv):Promise.resolve()}return{route:r,href:P(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const IX=ne({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:$I,setup(e,{slots:t}){const n=jt($I(e)),{options:r}=Ge(Nb),a=P(()=>({[BI(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[BI(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Ze("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),DX=IX;function PX(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 LX(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 NI(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const BI=(e,t,n)=>e??t??n,RX=ne({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ge(_C),a=P(()=>e.route||r.value),i=Ge(TI,0),o=P(()=>a.value.matched[i]);Et(TI,i+1),Et(Lq,o),Et(_C,a);const s=H();return xe(()=>[s.value,o.value,e.name],([l,u,c],[f,d,h])=>{u&&(u.instances[c]=l,d&&d!==u&&l&&l===f&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),l&&u&&(!d||!qf(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 VI(n.default,{Component:c,route:l});const d=u.props[e.name],h=d?d===!0?l.params:typeof d=="function"?d(l):d:null,p=Ze(c,Mn({},h,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[f]=null)},ref:s}));return VI(n.default,{Component:p,route:l})||p}}});function VI(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const OX=RX;function $X(e){const t=uX(e.routes,e),n=e.parseQuery||kX,r=e.stringifyQuery||OI,a=e.history,i=th(),o=th(),s=th(),l=un(_s);let u=_s;of&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=f_.bind(null,J=>""+J),f=f_.bind(null,MX),d=f_.bind(null,o0);function h(J,Q){let ee,j;return BV(J)?(ee=t.getRecordMatcher(J),j=Q):j=J,t.addRoute(j,ee)}function v(J){const Q=t.getRecordMatcher(J);Q&&t.removeRoute(Q)}function p(){return t.getRoutes().map(J=>J.record)}function g(J){return!!t.getRecordMatcher(J)}function m(J,Q){if(Q=Mn({},Q||l.value),typeof J=="string"){const W=d_(n,J,Q.path),X=t.resolve({path:W.path},Q),oe=a.createHref(W.fullPath);return Mn(W,X,{params:d(X.params),hash:o0(W.hash),redirectedFrom:void 0,href:oe})}let ee;if("path"in J)ee=Mn({},J,{path:d_(n,J.path,Q.path).path});else{const W=Mn({},J.params);for(const X in W)W[X]==null&&delete W[X];ee=Mn({},J,{params:f(J.params)}),Q.params=f(Q.params)}const j=t.resolve(ee,Q),de=J.hash||"";j.params=c(d(j.params));const ve=Nq(r,Mn({},J,{hash:CX(de),path:j.path})),ie=a.createHref(ve);return Mn({fullPath:ve,hash:de,query:r===OI?AX(J.query):J.query||{}},j,{redirectedFrom:void 0,href:ie})}function b(J){return typeof J=="string"?d_(n,J,l.value.path):Mn({},J)}function _(J,Q){if(u!==J)return Xf(8,{from:Q,to:J})}function w(J){return x(J)}function C(J){return w(Mn(b(J),{replace:!0}))}function S(J){const Q=J.matched[J.matched.length-1];if(Q&&Q.redirect){const{redirect:ee}=Q;let j=typeof ee=="function"?ee(J):ee;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=b(j):{path:j},j.params={}),Mn({query:J.query,hash:J.hash,params:J.params},j)}}function x(J,Q){const ee=u=m(J),j=l.value,de=J.state,ve=J.force,ie=J.replace===!0,W=S(ee);if(W)return x(Mn(b(W),{state:de,force:ve,replace:ie}),Q||ee);const X=ee;X.redirectedFrom=Q;let oe;return!ve&&Bq(r,j,ee)&&(oe=Xf(16,{to:X,from:j}),z(j,j,!0,!1)),(oe?Promise.resolve(oe):M(X,j)).catch(pe=>ws(pe)?ws(pe,2)?pe:I(pe):O(pe,X,j)).then(pe=>{if(pe){if(ws(pe,2))return x(Mn(b(pe.to),{state:de,force:ve,replace:ie}),Q||X)}else pe=k(X,j,!0,ie,de);return A(X,j,pe),pe})}function T(J,Q){const ee=_(J,Q);return ee?Promise.reject(ee):Promise.resolve()}function M(J,Q){let ee;const[j,de,ve]=NX(J,Q);ee=h_(j.reverse(),"beforeRouteLeave",J,Q);for(const W of j)W.leaveGuards.forEach(X=>{ee.push(Bs(X,J,Q))});const ie=T.bind(null,J,Q);return ee.push(ie),Lc(ee).then(()=>{ee=[];for(const W of i.list())ee.push(Bs(W,J,Q));return ee.push(ie),Lc(ee)}).then(()=>{ee=h_(de,"beforeRouteUpdate",J,Q);for(const W of de)W.updateGuards.forEach(X=>{ee.push(Bs(X,J,Q))});return ee.push(ie),Lc(ee)}).then(()=>{ee=[];for(const W of J.matched)if(W.beforeEnter&&!Q.matched.includes(W))if(Array.isArray(W.beforeEnter))for(const X of W.beforeEnter)ee.push(Bs(X,J,Q));else ee.push(Bs(W.beforeEnter,J,Q));return ee.push(ie),Lc(ee)}).then(()=>(J.matched.forEach(W=>W.enterCallbacks={}),ee=h_(ve,"beforeRouteEnter",J,Q),ee.push(ie),Lc(ee))).then(()=>{ee=[];for(const W of o.list())ee.push(Bs(W,J,Q));return ee.push(ie),Lc(ee)}).catch(W=>ws(W,8)?W:Promise.reject(W))}function A(J,Q,ee){for(const j of s.list())j(J,Q,ee)}function k(J,Q,ee,j,de){const ve=_(J,Q);if(ve)return ve;const ie=Q===_s,W=of?history.state:{};ee&&(j||ie?a.replace(J.fullPath,Mn({scroll:ie&&W&&W.scroll},de)):a.push(J.fullPath,de)),l.value=J,z(J,Q,ee,ie),I()}let E;function D(){E||(E=a.listen((J,Q,ee)=>{const j=m(J),de=S(j);if(de){x(Mn(de,{replace:!0}),j).catch(rv);return}u=j;const ve=l.value;of&&Uq(AI(ve.fullPath,ee.delta),Bb()),M(j,ve).catch(ie=>ws(ie,12)?ie:ws(ie,2)?(x(ie.to,j).then(W=>{ws(W,20)&&!ee.delta&&ee.type===zv.pop&&a.go(-1,!1)}).catch(rv),Promise.reject()):(ee.delta&&a.go(-ee.delta,!1),O(ie,j,ve))).then(ie=>{ie=ie||k(j,ve,!1),ie&&(ee.delta?a.go(-ee.delta,!1):ee.type===zv.pop&&ws(ie,20)&&a.go(-1,!1)),A(j,ve,ie)}).catch(rv)}))}let L=th(),B=th(),N;function O(J,Q,ee){I(J);const j=B.list();return j.length?j.forEach(de=>de(J,Q,ee)):console.error(J),Promise.reject(J)}function $(){return N&&l.value!==_s?Promise.resolve():new Promise((J,Q)=>{L.add([J,Q])})}function I(J){return N||(N=!J,D(),L.list().forEach(([Q,ee])=>J?ee(J):Q()),L.reset()),J}function z(J,Q,ee,j){const{scrollBehavior:de}=e;if(!of||!de)return Promise.resolve();const ve=!ee&&Yq(AI(J.fullPath,0))||(j||!ee)&&history.state&&history.state.scroll||null;return Ue().then(()=>de(J,Q,ve)).then(ie=>ie&&Kq(ie)).catch(ie=>O(ie,J,Q))}const G=J=>a.go(J);let U;const Z=new Set;return{currentRoute:l,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:w,replace:C,go:G,back:()=>G(-1),forward:()=>G(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:B.add,isReady:$,install(J){const Q=this;J.component("RouterLink",DX),J.component("RouterView",OX),J.config.globalProperties.$router=Q,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>y(l)}),of&&!U&&l.value===_s&&(U=!0,w(a.location).catch(de=>{}));const ee={};for(const de in _s)ee[de]=P(()=>l.value[de]);J.provide(Nb,Q),J.provide(GT,jt(ee)),J.provide(_C,l);const j=J.unmount;Z.add(J),J.unmount=function(){Z.delete(J),Z.size<1&&(u=_s,E&&E(),E=null,l.value=_s,U=!1,N=!1),j()}}}}function Lc(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function NX(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=>qf(u,s))?r.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>qf(u,l))||a.push(l))}return[n,r,a]}function kje(){return Ge(Nb)}function Aje(){return Ge(GT)}const KT=$X({history:Jq(),routes:[{path:"/",name:"启动页",component:()=>bs(()=>import("./openpage-53978433.js"),["./openpage-53978433.js","./request-6443a8b6.js","./header-fd068e01.js","./header-2a7231f3.css","./openpage-2a668526.css"],import.meta.url),meta:{keepAlive:!1,title:"启动页"},children:[{path:"/home/newfile",name:"首页",component:()=>bs(()=>import("./newfile-b9dca068.js"),["./newfile-b9dca068.js","./request-6443a8b6.js","./newfile-63f4fc88.css"],import.meta.url)},{path:"/home/querylist",name:"打开",component:()=>bs(()=>import("./querylist-2fd7a283.js"),["./querylist-2fd7a283.js","./request-6443a8b6.js","./querylist-35ebd990.css"],import.meta.url)},{path:"/home/savefile",name:"savefile",component:()=>bs(()=>import("./savefile-bb2f5220.js"),["./savefile-bb2f5220.js","./request-6443a8b6.js"],import.meta.url)}]},{path:"/index",name:"主页1",component:()=>bs(()=>import("./index-7f5c7a05.js"),["./index-7f5c7a05.js","./chine.vue_vue_type_style_index_0_scoped_9ca4274c_lang-b9547a88.js","./request-6443a8b6.js","./chine-f25f2f16.css","./header-fd068e01.js","./header-2a7231f3.css","./index-078b6996.js","./vue-flow-core-971c1fcd.js","./delete-0ef8a177.js","./delete-c44b0073.css","./index-04a05413.css","./index-74b1ca7e.css"],import.meta.url),meta:{keepAlive:!1,title:"主页1"}},{path:"/home",name:"主页",component:()=>bs(()=>import("./home-164ac29d.js"),["./home-164ac29d.js","./chine.vue_vue_type_style_index_0_scoped_9ca4274c_lang-b9547a88.js","./request-6443a8b6.js","./chine-f25f2f16.css","./header-fd068e01.js","./header-2a7231f3.css","./vue-flow-core-971c1fcd.js","./vue-flow-background-c96d11cd.js","./home-d5983078.css"],import.meta.url),meta:{keepAlive:!1,title:"主页"}},{path:"/vueflow",name:"vueflow",component:()=>bs(()=>import("./index-078b6996.js").then(e=>e.i),["./index-078b6996.js","./vue-flow-core-971c1fcd.js","./delete-0ef8a177.js","./delete-c44b0073.css","./index-04a05413.css"],import.meta.url),meta:{keepAlive:!1,title:"vueflow"}},{path:"/demo",name:"demo",component:()=>bs(()=>import("./demo-733df957.js"),["./demo-733df957.js","./vue-flow-core-971c1fcd.js","./vue-flow-background-c96d11cd.js","./delete-0ef8a177.js","./delete-c44b0073.css","./demo-22818a63.css"],import.meta.url),meta:{keepAlive:!1,title:"vueflow"}}]});KT.beforeEach((e,t,n)=>{window.document.title=e.name,n()});KT.afterEach((e,t,n)=>{window.scrollTo(0,0)});var BX=!1;/*!
  6. * pinia v2.1.6
  7. * (c) 2023 Eduardo San Martin Morote
  8. * @license MIT
  9. */const VX=Symbol();var zI;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(zI||(zI={}));function zX(){const e=EB(!0),t=e.run(()=>H({}));let n=[],r=[];const a=Qs({install(i){a._a=i,i.provide(VX,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!BX?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}function FX(e){return typeof e=="object"&&e!==null}function FI(e,t){return e=FX(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 HX(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function GX(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 WX(e,t){return t.reduce((n,r)=>{const a=r.split(".");return GX(n,a,HX(e,a))},{})}function HI(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 GI(e,{storage:t,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?WX(e,a):e;t.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function KX(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=>FI(s,e)):[FI(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=>{GI(a.$state,s)})},a.$hydrate=({runHooks:s=!0}={})=>{o.forEach(l=>{const{beforeRestore:u,afterRestore:c}=l;s&&(u==null||u(t)),HI(a,l),s&&(c==null||c(t))})},o.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;l==null||l(t),HI(a,s),u==null||u(t),a.$subscribe((c,f)=>{GI(f,s)},{detached:!0})})}}var UX=KX();const UV=zX();UV.use(UX);const YX='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',jX=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,WI=e=>Array.from(e.querySelectorAll(YX)).filter(t=>qX(t)&&jX(t)),qX=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}},ly=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},YV=e=>!e.getAttribute("aria-owns"),jV=(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},uy=e=>{e&&(e.focus(),!YV(e)&&e.click())},In=(e,t,{checkForDefaultPrevented:n=!0}={})=>a=>{const i=e==null?void 0:e(a);if(n===!1||!i)return t==null?void 0:t(a)},KI=e=>t=>t.pointerType==="mouse"?e(t):void 0;var XX=Object.defineProperty,ZX=Object.defineProperties,JX=Object.getOwnPropertyDescriptors,UI=Object.getOwnPropertySymbols,QX=Object.prototype.hasOwnProperty,eZ=Object.prototype.propertyIsEnumerable,YI=(e,t,n)=>t in e?XX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tZ=(e,t)=>{for(var n in t||(t={}))QX.call(t,n)&&YI(e,n,t[n]);if(UI)for(var n of UI(t))eZ.call(t,n)&&YI(e,n,t[n]);return e},nZ=(e,t)=>ZX(e,JX(t));function jI(e,t){var n;const r=un();return Da(()=>{r.value=e()},nZ(tZ({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),xd(r)}var qI;const Vt=typeof window<"u",rZ=e=>typeof e<"u",aZ=e=>typeof e=="function",iZ=e=>typeof e=="string",Zf=()=>{},qV=Vt&&((qI=window==null?void 0:window.navigator)==null?void 0:qI.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function cl(e){return typeof e=="function"?e():y(e)}function XV(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 oZ(e,t={}){let n,r,a=Zf;const i=s=>{clearTimeout(s),a(),a=Zf};return s=>{const l=cl(e),u=cl(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 sZ(e,t=!0,n=!0,r=!1){let a=0,i,o=!0,s=Zf,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=Zf)};return f=>{const d=cl(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 lZ(e){return e}function Vb(e){return IB()?(DB(e),!0):!1}function uZ(e,t=200,n={}){return XV(oZ(t,n),e)}function cZ(e,t=200,n={}){const r=H(e.value),a=uZ(()=>{r.value=e.value},t,n);return xe(e,()=>a()),r}function ZV(e,t=200,n=!1,r=!0,a=!1){return XV(sZ(t,n,r,a),e)}function UT(e,t=!0){gt()?yt(e):t?e():Ue(e)}function ic(e,t,n={}){const{immediate:r=!0}=n,a=H(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...u)},cl(t))}return r&&(a.value=!0,Vt&&l()),Vb(s),{isPending:xd(a),start:l,stop:s}}function Aa(e){var t;const n=cl(e);return(t=n==null?void 0:n.$el)!=null?t:n}const kd=Vt?window:void 0,fZ=Vt?window.document:void 0;function bn(...e){let t,n,r,a;if(iZ(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=kd):[t,n,r,a]=e,!t)return Zf;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,f,d,h)=>(c.addEventListener(f,d,h),()=>c.removeEventListener(f,d,h)),l=xe(()=>[Aa(t),cl(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 Vb(u),u}let XI=!1;function YT(e,t,n={}){const{window:r=kd,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;qV&&!XI&&(XI=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",Zf)));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=Aa(h);return v&&(d.target===v||d.composedPath().includes(v))}}),c=[bn(r,"click",d=>{const h=Aa(e);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}t(d)}},{passive:!0,capture:i}),bn(r,"pointerdown",d=>{const h=Aa(e);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&bn(r,"blur",d=>{var h;const v=Aa(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 dZ(e,t=!1){const n=H(),r=()=>n.value=!!e();return r(),UT(r,t),n}function hZ(e){return JSON.parse(JSON.stringify(e))}const ZI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},JI="__vueuse_ssr_handlers__";ZI[JI]=ZI[JI]||{};function vZ(e,t,{window:n=kd,initialValue:r=""}={}){const a=H(r),i=P(()=>{var o;return Aa(t)||((o=n==null?void 0:n.document)==null?void 0:o.documentElement)});return xe([i,()=>cl(e)],([o,s])=>{var l;if(o&&n){const u=(l=n.getComputedStyle(o).getPropertyValue(s))==null?void 0:l.trim();a.value=u||r}},{immediate:!0}),xe(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(cl(e),o)}),a}function pZ({document:e=fZ}={}){if(!e)return H("visible");const t=H(e.visibilityState);return bn(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var QI=Object.getOwnPropertySymbols,gZ=Object.prototype.hasOwnProperty,mZ=Object.prototype.propertyIsEnumerable,yZ=(e,t)=>{var n={};for(var r in e)gZ.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&QI)for(var r of QI(e))t.indexOf(r)<0&&mZ.call(e,r)&&(n[r]=e[r]);return n};function $r(e,t,n={}){const r=n,{window:a=kd}=r,i=yZ(r,["window"]);let o;const s=dZ(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=xe(()=>Aa(e),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(t),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return Vb(c),{isSupported:s,stop:c}}function eD(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0}=t,o=H(0),s=H(0),l=H(0),u=H(0),c=H(0),f=H(0),d=H(0),h=H(0);function v(){const p=Aa(e);if(!p){n&&(o.value=0,s.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,h.value=0);return}const g=p.getBoundingClientRect();o.value=g.height,s.value=g.bottom,l.value=g.left,u.value=g.right,c.value=g.top,f.value=g.width,d.value=g.x,h.value=g.y}return $r(e,v),xe(()=>Aa(e),p=>!p&&v()),a&&bn("scroll",v,{capture:!0,passive:!0}),r&&bn("resize",v,{passive:!0}),UT(()=>{i&&v()}),{height:o,bottom:s,left:l,right:u,top:c,width:f,x:d,y:h,update:v}}var tD;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(tD||(tD={}));var bZ=Object.defineProperty,nD=Object.getOwnPropertySymbols,_Z=Object.prototype.hasOwnProperty,wZ=Object.prototype.propertyIsEnumerable,rD=(e,t,n)=>t in e?bZ(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,SZ=(e,t)=>{for(var n in t||(t={}))_Z.call(t,n)&&rD(e,n,t[n]);if(nD)for(var n of nD(t))wZ.call(t,n)&&rD(e,n,t[n]);return e};const CZ={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]};SZ({linear:lZ},CZ);function xZ(e,t,n,r={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=r,d=gt(),h=n||(d==null?void 0:d.emit)||((a=d==null?void 0:d.$emit)==null?void 0:a.bind(d))||((o=(i=d==null?void 0:d.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(d==null?void 0:d.proxy));let v=u;t||(t="modelValue"),v=u||v||`update:${t.toString()}`;const p=m=>s?aZ(s)?s(m):hZ(m):m,g=()=>rZ(e[t])?p(e[t]):f;if(l){const m=g(),b=H(m);return xe(()=>e[t],_=>b.value=p(_)),xe(b,_=>{(_!==e[t]||c)&&h(v,_)},{deep:c}),b}else return P({get(){return g()},set(m){h(v,m)}})}function TZ({window:e=kd}={}){if(!e)return H(!1);const t=H(e.document.hasFocus());return bn(e,"blur",()=>{t.value=!1}),bn(e,"focus",()=>{t.value=!0}),t}function MZ(e={}){const{window:t=kd,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=e,o=H(n),s=H(r),l=()=>{t&&(i?(o.value=t.innerWidth,s.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),UT(l),bn("resize",l,{passive:!0}),a&&bn("orientationchange",l,{passive:!0}),{width:o,height:s}}const JV=()=>Vt&&/firefox/i.test(window.navigator.userAgent),kZ=(e,t)=>{if(!Vt||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},aD=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},AZ=(e,t)=>Math.abs(aD(e)-aD(t)),jT=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 EZ=typeof global=="object"&&global&&global.Object===Object&&global;const QV=EZ;var IZ=typeof self=="object"&&self&&self.Object===Object&&self,DZ=QV||IZ||Function("return this")();const Wi=DZ;var PZ=Wi.Symbol;const ri=PZ;var e5=Object.prototype,LZ=e5.hasOwnProperty,RZ=e5.toString,nh=ri?ri.toStringTag:void 0;function OZ(e){var t=LZ.call(e,nh),n=e[nh];try{e[nh]=void 0;var r=!0}catch{}var a=RZ.call(e);return r&&(t?e[nh]=n:delete e[nh]),a}var $Z=Object.prototype,NZ=$Z.toString;function BZ(e){return NZ.call(e)}var VZ="[object Null]",zZ="[object Undefined]",iD=ri?ri.toStringTag:void 0;function bc(e){return e==null?e===void 0?zZ:VZ:iD&&iD in Object(e)?OZ(e):BZ(e)}function yo(e){return e!=null&&typeof e=="object"}var FZ="[object Symbol]";function zb(e){return typeof e=="symbol"||yo(e)&&bc(e)==FZ}function t5(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 HZ=Array.isArray;const Zr=HZ;var GZ=1/0,oD=ri?ri.prototype:void 0,sD=oD?oD.toString:void 0;function n5(e){if(typeof e=="string")return e;if(Zr(e))return t5(e,n5)+"";if(zb(e))return sD?sD.call(e):"";var t=e+"";return t=="0"&&1/e==-GZ?"-0":t}var WZ=/\s/;function KZ(e){for(var t=e.length;t--&&WZ.test(e.charAt(t)););return t}var UZ=/^\s+/;function YZ(e){return e&&e.slice(0,KZ(e)+1).replace(UZ,"")}function Jr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var lD=0/0,jZ=/^[-+]0x[0-9a-f]+$/i,qZ=/^0b[01]+$/i,XZ=/^0o[0-7]+$/i,ZZ=parseInt;function CC(e){if(typeof e=="number")return e;if(zb(e))return lD;if(Jr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Jr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=YZ(e);var n=qZ.test(e);return n||XZ.test(e)?ZZ(e.slice(2),n?2:8):jZ.test(e)?lD:+e}var uD=1/0,JZ=17976931348623157e292;function QZ(e){if(!e)return e===0?e:0;if(e=CC(e),e===uD||e===-uD){var t=e<0?-1:1;return t*JZ}return e===e?e:0}function eJ(e){var t=QZ(e),n=t%1;return t===t?n?t-n:t:0}function qT(e){return e}var tJ="[object AsyncFunction]",nJ="[object Function]",rJ="[object GeneratorFunction]",aJ="[object Proxy]";function XT(e){if(!Jr(e))return!1;var t=bc(e);return t==nJ||t==rJ||t==tJ||t==aJ}var iJ=Wi["__core-js_shared__"];const v_=iJ;var cD=function(){var e=/[^.]+$/.exec(v_&&v_.keys&&v_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function oJ(e){return!!cD&&cD in e}var sJ=Function.prototype,lJ=sJ.toString;function _c(e){if(e!=null){try{return lJ.call(e)}catch{}try{return e+""}catch{}}return""}var uJ=/[\\^$.*+?()[\]{}|]/g,cJ=/^\[object .+?Constructor\]$/,fJ=Function.prototype,dJ=Object.prototype,hJ=fJ.toString,vJ=dJ.hasOwnProperty,pJ=RegExp("^"+hJ.call(vJ).replace(uJ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gJ(e){if(!Jr(e)||oJ(e))return!1;var t=XT(e)?pJ:cJ;return t.test(_c(e))}function mJ(e,t){return e==null?void 0:e[t]}function wc(e,t){var n=mJ(e,t);return gJ(n)?n:void 0}var yJ=wc(Wi,"WeakMap");const xC=yJ;var fD=Object.create,bJ=function(){function e(){}return function(t){if(!Jr(t))return{};if(fD)return fD(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const _J=bJ;function wJ(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 SJ(){}function r5(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var CJ=800,xJ=16,TJ=Date.now;function MJ(e){var t=0,n=0;return function(){var r=TJ(),a=xJ-(r-n);if(n=r,a>0){if(++t>=CJ)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function kJ(e){return function(){return e}}var AJ=function(){try{var e=wc(Object,"defineProperty");return e({},"",{}),e}catch{}}();const s0=AJ;var EJ=s0?function(e,t){return s0(e,"toString",{configurable:!0,enumerable:!1,value:kJ(t),writable:!0})}:qT;const IJ=EJ;var DJ=MJ(IJ);const a5=DJ;function PJ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function i5(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 LJ(e){return e!==e}function RJ(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function OJ(e,t,n){return t===t?RJ(e,t,n):i5(e,LJ,n)}function $J(e,t){var n=e==null?0:e.length;return!!n&&OJ(e,t,0)>-1}var NJ=9007199254740991,BJ=/^(?:0|[1-9]\d*)$/;function Fb(e,t){var n=typeof e;return t=t??NJ,!!t&&(n=="number"||n!="symbol"&&BJ.test(e))&&e>-1&&e%1==0&&e<t}function ZT(e,t,n){t=="__proto__"&&s0?s0(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Up(e,t){return e===t||e!==e&&t!==t}var VJ=Object.prototype,zJ=VJ.hasOwnProperty;function JT(e,t,n){var r=e[t];(!(zJ.call(e,t)&&Up(r,n))||n===void 0&&!(t in e))&&ZT(e,t,n)}function Yp(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?ZT(n,s,l):JT(n,s,l)}return n}var dD=Math.max;function o5(e,t,n){return t=dD(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=dD(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),wJ(e,this,s)}}function s5(e,t){return a5(o5(e,t,qT),e+"")}var FJ=9007199254740991;function QT(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=FJ}function Ad(e){return e!=null&&QT(e.length)&&!XT(e)}function HJ(e,t,n){if(!Jr(n))return!1;var r=typeof t;return(r=="number"?Ad(n)&&Fb(t,n.length):r=="string"&&t in n)?Up(n[t],e):!1}function GJ(e){return s5(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&&HJ(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 WJ=Object.prototype;function eM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||WJ;return e===n}function KJ(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var UJ="[object Arguments]";function hD(e){return yo(e)&&bc(e)==UJ}var l5=Object.prototype,YJ=l5.hasOwnProperty,jJ=l5.propertyIsEnumerable,qJ=hD(function(){return arguments}())?hD:function(e){return yo(e)&&YJ.call(e,"callee")&&!jJ.call(e,"callee")};const Fv=qJ;function XJ(){return!1}var u5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vD=u5&&typeof module=="object"&&module&&!module.nodeType&&module,ZJ=vD&&vD.exports===u5,pD=ZJ?Wi.Buffer:void 0,JJ=pD?pD.isBuffer:void 0,QJ=JJ||XJ;const Hv=QJ;var eQ="[object Arguments]",tQ="[object Array]",nQ="[object Boolean]",rQ="[object Date]",aQ="[object Error]",iQ="[object Function]",oQ="[object Map]",sQ="[object Number]",lQ="[object Object]",uQ="[object RegExp]",cQ="[object Set]",fQ="[object String]",dQ="[object WeakMap]",hQ="[object ArrayBuffer]",vQ="[object DataView]",pQ="[object Float32Array]",gQ="[object Float64Array]",mQ="[object Int8Array]",yQ="[object Int16Array]",bQ="[object Int32Array]",_Q="[object Uint8Array]",wQ="[object Uint8ClampedArray]",SQ="[object Uint16Array]",CQ="[object Uint32Array]",Pn={};Pn[pQ]=Pn[gQ]=Pn[mQ]=Pn[yQ]=Pn[bQ]=Pn[_Q]=Pn[wQ]=Pn[SQ]=Pn[CQ]=!0;Pn[eQ]=Pn[tQ]=Pn[hQ]=Pn[nQ]=Pn[vQ]=Pn[rQ]=Pn[aQ]=Pn[iQ]=Pn[oQ]=Pn[sQ]=Pn[lQ]=Pn[uQ]=Pn[cQ]=Pn[fQ]=Pn[dQ]=!1;function xQ(e){return yo(e)&&QT(e.length)&&!!Pn[bc(e)]}function tM(e){return function(t){return e(t)}}var c5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,iv=c5&&typeof module=="object"&&module&&!module.nodeType&&module,TQ=iv&&iv.exports===c5,p_=TQ&&QV.process,MQ=function(){try{var e=iv&&iv.require&&iv.require("util").types;return e||p_&&p_.binding&&p_.binding("util")}catch{}}();const Jf=MQ;var gD=Jf&&Jf.isTypedArray,kQ=gD?tM(gD):xQ;const nM=kQ;var AQ=Object.prototype,EQ=AQ.hasOwnProperty;function f5(e,t){var n=Zr(e),r=!n&&Fv(e),a=!n&&!r&&Hv(e),i=!n&&!r&&!a&&nM(e),o=n||r||a||i,s=o?KJ(e.length,String):[],l=s.length;for(var u in e)(t||EQ.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Fb(u,l)))&&s.push(u);return s}function d5(e,t){return function(n){return e(t(n))}}var IQ=d5(Object.keys,Object);const DQ=IQ;var PQ=Object.prototype,LQ=PQ.hasOwnProperty;function RQ(e){if(!eM(e))return DQ(e);var t=[];for(var n in Object(e))LQ.call(e,n)&&n!="constructor"&&t.push(n);return t}function jp(e){return Ad(e)?f5(e):RQ(e)}function OQ(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var $Q=Object.prototype,NQ=$Q.hasOwnProperty;function BQ(e){if(!Jr(e))return OQ(e);var t=eM(e),n=[];for(var r in e)r=="constructor"&&(t||!NQ.call(e,r))||n.push(r);return n}function qp(e){return Ad(e)?f5(e,!0):BQ(e)}var VQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,zQ=/^\w*$/;function rM(e,t){if(Zr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||zb(e)?!0:zQ.test(e)||!VQ.test(e)||t!=null&&e in Object(t)}var FQ=wc(Object,"create");const Gv=FQ;function HQ(){this.__data__=Gv?Gv(null):{},this.size=0}function GQ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var WQ="__lodash_hash_undefined__",KQ=Object.prototype,UQ=KQ.hasOwnProperty;function YQ(e){var t=this.__data__;if(Gv){var n=t[e];return n===WQ?void 0:n}return UQ.call(t,e)?t[e]:void 0}var jQ=Object.prototype,qQ=jQ.hasOwnProperty;function XQ(e){var t=this.__data__;return Gv?t[e]!==void 0:qQ.call(t,e)}var ZQ="__lodash_hash_undefined__";function JQ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Gv&&t===void 0?ZQ:t,this}function oc(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])}}oc.prototype.clear=HQ;oc.prototype.delete=GQ;oc.prototype.get=YQ;oc.prototype.has=XQ;oc.prototype.set=JQ;function QQ(){this.__data__=[],this.size=0}function Hb(e,t){for(var n=e.length;n--;)if(Up(e[n][0],t))return n;return-1}var eee=Array.prototype,tee=eee.splice;function nee(e){var t=this.__data__,n=Hb(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():tee.call(t,n,1),--this.size,!0}function ree(e){var t=this.__data__,n=Hb(t,e);return n<0?void 0:t[n][1]}function aee(e){return Hb(this.__data__,e)>-1}function iee(e,t){var n=this.__data__,r=Hb(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function fs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fs.prototype.clear=QQ;fs.prototype.delete=nee;fs.prototype.get=ree;fs.prototype.has=aee;fs.prototype.set=iee;var oee=wc(Wi,"Map");const Wv=oee;function see(){this.size=0,this.__data__={hash:new oc,map:new(Wv||fs),string:new oc}}function lee(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Gb(e,t){var n=e.__data__;return lee(t)?n[typeof t=="string"?"string":"hash"]:n.map}function uee(e){var t=Gb(this,e).delete(e);return this.size-=t?1:0,t}function cee(e){return Gb(this,e).get(e)}function fee(e){return Gb(this,e).has(e)}function dee(e,t){var n=Gb(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ds(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ds.prototype.clear=see;ds.prototype.delete=uee;ds.prototype.get=cee;ds.prototype.has=fee;ds.prototype.set=dee;var hee="Expected a function";function Wb(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hee);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(Wb.Cache||ds),n}Wb.Cache=ds;var vee=500;function pee(e){var t=Wb(e,function(r){return n.size===vee&&n.clear(),r}),n=t.cache;return t}var gee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mee=/\\(\\)?/g,yee=pee(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(gee,function(n,r,a,i){t.push(a?i.replace(mee,"$1"):r||n)}),t});const bee=yee;function _ee(e){return e==null?"":n5(e)}function Kb(e,t){return Zr(e)?e:rM(e,t)?[e]:bee(_ee(e))}var wee=1/0;function Xp(e){if(typeof e=="string"||zb(e))return e;var t=e+"";return t=="0"&&1/e==-wee?"-0":t}function aM(e,t){t=Kb(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Xp(t[n++])];return n&&n==r?e:void 0}function Sn(e,t,n){var r=e==null?void 0:aM(e,t);return r===void 0?n:r}function iM(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var mD=ri?ri.isConcatSpreadable:void 0;function See(e){return Zr(e)||Fv(e)||!!(mD&&e&&e[mD])}function Zp(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=See),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?Zp(s,t-1,n,r,a):iM(a,s):r||(a[a.length]=s)}return a}function h5(e){var t=e==null?0:e.length;return t?Zp(e,1):[]}function Cee(e){return a5(o5(e,void 0,h5),e+"")}var xee=d5(Object.getPrototypeOf,Object);const oM=xee;var Tee="[object Object]",Mee=Function.prototype,kee=Object.prototype,v5=Mee.toString,Aee=kee.hasOwnProperty,Eee=v5.call(Object);function Iee(e){if(!yo(e)||bc(e)!=Tee)return!1;var t=oM(e);if(t===null)return!0;var n=Aee.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&v5.call(n)==Eee}function sc(){if(!arguments.length)return[];var e=arguments[0];return Zr(e)?e:[e]}function Dee(){this.__data__=new fs,this.size=0}function Pee(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Lee(e){return this.__data__.get(e)}function Ree(e){return this.__data__.has(e)}var Oee=200;function $ee(e,t){var n=this.__data__;if(n instanceof fs){var r=n.__data__;if(!Wv||r.length<Oee-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ds(r)}return n.set(e,t),this.size=n.size,this}function Pi(e){var t=this.__data__=new fs(e);this.size=t.size}Pi.prototype.clear=Dee;Pi.prototype.delete=Pee;Pi.prototype.get=Lee;Pi.prototype.has=Ree;Pi.prototype.set=$ee;function Nee(e,t){return e&&Yp(t,jp(t),e)}function Bee(e,t){return e&&Yp(t,qp(t),e)}var p5=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yD=p5&&typeof module=="object"&&module&&!module.nodeType&&module,Vee=yD&&yD.exports===p5,bD=Vee?Wi.Buffer:void 0,_D=bD?bD.allocUnsafe:void 0;function g5(e,t){if(t)return e.slice();var n=e.length,r=_D?_D(n):new e.constructor(n);return e.copy(r),r}function zee(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 m5(){return[]}var Fee=Object.prototype,Hee=Fee.propertyIsEnumerable,wD=Object.getOwnPropertySymbols,Gee=wD?function(e){return e==null?[]:(e=Object(e),zee(wD(e),function(t){return Hee.call(e,t)}))}:m5;const sM=Gee;function Wee(e,t){return Yp(e,sM(e),t)}var Kee=Object.getOwnPropertySymbols,Uee=Kee?function(e){for(var t=[];e;)iM(t,sM(e)),e=oM(e);return t}:m5;const y5=Uee;function Yee(e,t){return Yp(e,y5(e),t)}function b5(e,t,n){var r=t(e);return Zr(e)?r:iM(r,n(e))}function TC(e){return b5(e,jp,sM)}function jee(e){return b5(e,qp,y5)}var qee=wc(Wi,"DataView");const MC=qee;var Xee=wc(Wi,"Promise");const kC=Xee;var Zee=wc(Wi,"Set");const Af=Zee;var SD="[object Map]",Jee="[object Object]",CD="[object Promise]",xD="[object Set]",TD="[object WeakMap]",MD="[object DataView]",Qee=_c(MC),ete=_c(Wv),tte=_c(kC),nte=_c(Af),rte=_c(xC),hu=bc;(MC&&hu(new MC(new ArrayBuffer(1)))!=MD||Wv&&hu(new Wv)!=SD||kC&&hu(kC.resolve())!=CD||Af&&hu(new Af)!=xD||xC&&hu(new xC)!=TD)&&(hu=function(e){var t=bc(e),n=t==Jee?e.constructor:void 0,r=n?_c(n):"";if(r)switch(r){case Qee:return MD;case ete:return SD;case tte:return CD;case nte:return xD;case rte:return TD}return t});const Kv=hu;var ate=Object.prototype,ite=ate.hasOwnProperty;function ote(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ite.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var ste=Wi.Uint8Array;const l0=ste;function lM(e){var t=new e.constructor(e.byteLength);return new l0(t).set(new l0(e)),t}function lte(e,t){var n=t?lM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var ute=/\w*$/;function cte(e){var t=new e.constructor(e.source,ute.exec(e));return t.lastIndex=e.lastIndex,t}var kD=ri?ri.prototype:void 0,AD=kD?kD.valueOf:void 0;function fte(e){return AD?Object(AD.call(e)):{}}function _5(e,t){var n=t?lM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var dte="[object Boolean]",hte="[object Date]",vte="[object Map]",pte="[object Number]",gte="[object RegExp]",mte="[object Set]",yte="[object String]",bte="[object Symbol]",_te="[object ArrayBuffer]",wte="[object DataView]",Ste="[object Float32Array]",Cte="[object Float64Array]",xte="[object Int8Array]",Tte="[object Int16Array]",Mte="[object Int32Array]",kte="[object Uint8Array]",Ate="[object Uint8ClampedArray]",Ete="[object Uint16Array]",Ite="[object Uint32Array]";function Dte(e,t,n){var r=e.constructor;switch(t){case _te:return lM(e);case dte:case hte:return new r(+e);case wte:return lte(e,n);case Ste:case Cte:case xte:case Tte:case Mte:case kte:case Ate:case Ete:case Ite:return _5(e,n);case vte:return new r;case pte:case yte:return new r(e);case gte:return cte(e);case mte:return new r;case bte:return fte(e)}}function w5(e){return typeof e.constructor=="function"&&!eM(e)?_J(oM(e)):{}}var Pte="[object Map]";function Lte(e){return yo(e)&&Kv(e)==Pte}var ED=Jf&&Jf.isMap,Rte=ED?tM(ED):Lte;const Ote=Rte;var $te="[object Set]";function Nte(e){return yo(e)&&Kv(e)==$te}var ID=Jf&&Jf.isSet,Bte=ID?tM(ID):Nte;const Vte=Bte;var zte=1,Fte=2,Hte=4,S5="[object Arguments]",Gte="[object Array]",Wte="[object Boolean]",Kte="[object Date]",Ute="[object Error]",C5="[object Function]",Yte="[object GeneratorFunction]",jte="[object Map]",qte="[object Number]",x5="[object Object]",Xte="[object RegExp]",Zte="[object Set]",Jte="[object String]",Qte="[object Symbol]",ene="[object WeakMap]",tne="[object ArrayBuffer]",nne="[object DataView]",rne="[object Float32Array]",ane="[object Float64Array]",ine="[object Int8Array]",one="[object Int16Array]",sne="[object Int32Array]",lne="[object Uint8Array]",une="[object Uint8ClampedArray]",cne="[object Uint16Array]",fne="[object Uint32Array]",En={};En[S5]=En[Gte]=En[tne]=En[nne]=En[Wte]=En[Kte]=En[rne]=En[ane]=En[ine]=En[one]=En[sne]=En[jte]=En[qte]=En[x5]=En[Xte]=En[Zte]=En[Jte]=En[Qte]=En[lne]=En[une]=En[cne]=En[fne]=!0;En[Ute]=En[C5]=En[ene]=!1;function ov(e,t,n,r,a,i){var o,s=t&zte,l=t&Fte,u=t&Hte;if(n&&(o=a?n(e,r,a,i):n(e)),o!==void 0)return o;if(!Jr(e))return e;var c=Zr(e);if(c){if(o=ote(e),!s)return r5(e,o)}else{var f=Kv(e),d=f==C5||f==Yte;if(Hv(e))return g5(e,s);if(f==x5||f==S5||d&&!a){if(o=l||d?{}:w5(e),!s)return l?Yee(e,Bee(o,e)):Wee(e,Nee(o,e))}else{if(!En[f])return a?e:{};o=Dte(e,f,s)}}i||(i=new Pi);var h=i.get(e);if(h)return h;i.set(e,o),Vte(e)?e.forEach(function(g){o.add(ov(g,t,n,g,e,i))}):Ote(e)&&e.forEach(function(g,m){o.set(m,ov(g,t,n,m,e,i))});var v=u?l?jee:TC:l?qp:jp,p=c?void 0:v(e);return PJ(p||e,function(g,m){p&&(m=g,g=e[m]),JT(o,m,ov(g,t,n,m,e,i))}),o}var dne=4;function DD(e){return ov(e,dne)}var hne=1,vne=4;function u0(e){return ov(e,hne|vne)}var pne="__lodash_hash_undefined__";function gne(e){return this.__data__.set(e,pne),this}function mne(e){return this.__data__.has(e)}function Uv(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ds;++t<n;)this.add(e[t])}Uv.prototype.add=Uv.prototype.push=gne;Uv.prototype.has=mne;function yne(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 T5(e,t){return e.has(t)}var bne=1,_ne=2;function M5(e,t,n,r,a,i){var o=n&bne,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&_ne?new Uv: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(!yne(t,function(m,b){if(!T5(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 wne(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function uM(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Sne=1,Cne=2,xne="[object Boolean]",Tne="[object Date]",Mne="[object Error]",kne="[object Map]",Ane="[object Number]",Ene="[object RegExp]",Ine="[object Set]",Dne="[object String]",Pne="[object Symbol]",Lne="[object ArrayBuffer]",Rne="[object DataView]",PD=ri?ri.prototype:void 0,g_=PD?PD.valueOf:void 0;function One(e,t,n,r,a,i,o){switch(n){case Rne:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Lne:return!(e.byteLength!=t.byteLength||!i(new l0(e),new l0(t)));case xne:case Tne:case Ane:return Up(+e,+t);case Mne:return e.name==t.name&&e.message==t.message;case Ene:case Dne:return e==t+"";case kne:var s=wne;case Ine:var l=r&Sne;if(s||(s=uM),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=Cne,o.set(e,t);var c=M5(s(e),s(t),r,a,i,o);return o.delete(e),c;case Pne:if(g_)return g_.call(e)==g_.call(t)}return!1}var $ne=1,Nne=Object.prototype,Bne=Nne.hasOwnProperty;function Vne(e,t,n,r,a,i){var o=n&$ne,s=TC(e),l=s.length,u=TC(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:Bne.call(t,d)))return!1}var h=i.get(e),v=i.get(t);if(h&&v)return h==t&&v==e;var p=!0;i.set(e,t),i.set(t,e);for(var g=o;++f<l;){d=s[f];var m=e[d],b=t[d];if(r)var _=o?r(b,m,d,t,e,i):r(m,b,d,e,t,i);if(!(_===void 0?m===b||a(m,b,n,r,i):_)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var w=e.constructor,C=t.constructor;w!=C&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(p=!1)}return i.delete(e),i.delete(t),p}var zne=1,LD="[object Arguments]",RD="[object Array]",Ng="[object Object]",Fne=Object.prototype,OD=Fne.hasOwnProperty;function Hne(e,t,n,r,a,i){var o=Zr(e),s=Zr(t),l=o?RD:Kv(e),u=s?RD:Kv(t);l=l==LD?Ng:l,u=u==LD?Ng:u;var c=l==Ng,f=u==Ng,d=l==u;if(d&&Hv(e)){if(!Hv(t))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new Pi),o||nM(e)?M5(e,t,n,r,a,i):One(e,t,l,n,r,a,i);if(!(n&zne)){var h=c&&OD.call(e,"__wrapped__"),v=f&&OD.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,g=v?t.value():t;return i||(i=new Pi),a(p,g,n,r,i)}}return d?(i||(i=new Pi),Vne(e,t,n,r,a,i)):!1}function Ub(e,t,n,r,a){return e===t?!0:e==null||t==null||!yo(e)&&!yo(t)?e!==e&&t!==t:Hne(e,t,n,r,Ub,a)}var Gne=1,Wne=2;function Kne(e,t,n,r){var a=n.length,i=a,o=!r;if(e==null)return!i;for(e=Object(e);a--;){var s=n[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){s=n[a];var l=s[0],u=e[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var f=new Pi;if(r)var d=r(u,c,l,e,t,f);if(!(d===void 0?Ub(c,u,Gne|Wne,r,f):d))return!1}}return!0}function k5(e){return e===e&&!Jr(e)}function Une(e){for(var t=jp(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,k5(a)]}return t}function A5(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Yne(e){var t=Une(e);return t.length==1&&t[0][2]?A5(t[0][0],t[0][1]):function(n){return n===e||Kne(n,e,t)}}function jne(e,t){return e!=null&&t in Object(e)}function qne(e,t,n){t=Kb(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=Xp(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&&QT(a)&&Fb(o,a)&&(Zr(e)||Fv(e)))}function E5(e,t){return e!=null&&qne(e,t,jne)}var Xne=1,Zne=2;function Jne(e,t){return rM(e)&&k5(t)?A5(Xp(e),t):function(n){var r=Sn(n,e);return r===void 0&&r===t?E5(n,e):Ub(t,r,Xne|Zne)}}function Qne(e){return function(t){return t==null?void 0:t[e]}}function ere(e){return function(t){return aM(t,e)}}function tre(e){return rM(e)?Qne(Xp(e)):ere(e)}function I5(e){return typeof e=="function"?e:e==null?qT:typeof e=="object"?Zr(e)?Jne(e[0],e[1]):Yne(e):tre(e)}function nre(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 rre=nre();const D5=rre;function are(e,t){return e&&D5(e,t,jp)}function ire(e,t){return function(n,r){if(n==null)return n;if(!Ad(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 ore=ire(are);const sre=ore;var lre=function(){return Wi.Date.now()};const m_=lre;var ure="Expected a function",cre=Math.max,fre=Math.min;function Qr(e,t,n){var r,a,i,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(ure);t=CC(t)||0,Jr(n)&&(c=!!n.leading,f="maxWait"in n,i=f?cre(CC(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(S){var x=r,T=a;return r=a=void 0,u=S,o=e.apply(T,x),o}function v(S){return u=S,s=setTimeout(m,t),c?h(S):o}function p(S){var x=S-l,T=S-u,M=t-x;return f?fre(M,i-T):M}function g(S){var x=S-l,T=S-u;return l===void 0||x>=t||x<0||f&&T>=i}function m(){var S=m_();if(g(S))return b(S);s=setTimeout(m,p(S))}function b(S){return s=void 0,d&&r?h(S):(r=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function w(){return s===void 0?o:b(m_())}function C(){var S=m_(),x=g(S);if(r=arguments,a=this,l=S,x){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(m,t),h(l)}return s===void 0&&(s=setTimeout(m,t)),o}return C.cancel=_,C.flush=w,C}function AC(e,t,n){(n!==void 0&&!Up(e[t],n)||n===void 0&&!(t in e))&&ZT(e,t,n)}function P5(e){return yo(e)&&Ad(e)}function EC(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function dre(e){return Yp(e,qp(e))}function hre(e,t,n,r,a,i,o){var s=EC(e,n),l=EC(t,n),u=o.get(l);if(u){AC(e,n,u);return}var c=i?i(s,l,n+"",e,t,o):void 0,f=c===void 0;if(f){var d=Zr(l),h=!d&&Hv(l),v=!d&&!h&&nM(l);c=l,d||h||v?Zr(s)?c=s:P5(s)?c=r5(s):h?(f=!1,c=g5(l,!0)):v?(f=!1,c=_5(l,!0)):c=[]:Iee(l)||Fv(l)?(c=s,Fv(s)?c=dre(s):(!Jr(s)||XT(s))&&(c=w5(l))):f=!1}f&&(o.set(l,c),a(c,l,r,i,o),o.delete(l)),AC(e,n,c)}function L5(e,t,n,r,a){e!==t&&D5(t,function(i,o){if(a||(a=new Pi),Jr(i))hre(e,t,o,n,L5,r,a);else{var s=r?r(EC(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),AC(e,o,s)}},qp)}function vre(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 pre=Math.max,gre=Math.min;function mre(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return n!==void 0&&(a=eJ(n),a=n<0?pre(r+a,0):gre(a,r-1)),i5(e,I5(t),a,!0)}function yre(e,t){var n=-1,r=Ad(e)?Array(e.length):[];return sre(e,function(a,i,o){r[++n]=t(a,i,o)}),r}function bre(e,t){var n=Zr(e)?t5:yre;return n(e,I5(t))}function _re(e,t){return Zp(bre(e,t),1)}var wre=1/0;function Sre(e){var t=e==null?0:e.length;return t?Zp(e,wre):[]}function c0(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r}function pa(e,t){return Ub(e,t)}function Kn(e){return e==null}function Cre(e){return e===void 0}var xre=GJ(function(e,t,n){L5(e,t,n)});const R5=xre;function O5(e,t,n,r){if(!Jr(e))return e;t=Kb(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var l=Xp(t[a]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(a!=o){var c=s[l];u=r?r(c,l,s):void 0,u===void 0&&(u=Jr(c)?c:Fb(t[a+1])?[]:{})}JT(s,l,u),s=s[l]}return e}function Tre(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=aM(e,o);n(s,o)&&O5(i,Kb(o,e),s)}return i}function Mre(e,t){return Tre(e,t,function(n,r){return E5(e,r)})}var kre=Cee(function(e,t){return e==null?{}:Mre(e,t)});const Ho=kre;function Are(e,t,n){return e==null?e:O5(e,t,n)}var Ere="Expected a function";function Yu(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(Ere);return Jr(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Qr(e,t,{leading:r,maxWait:t,trailing:a})}var Ire=1/0,Dre=Af&&1/uM(new Af([,-0]))[1]==Ire?function(e){return new Af(e)}:SJ;const Pre=Dre;var Lre=200;function Rre(e,t,n){var r=-1,a=$J,i=e.length,o=!0,s=[],l=s;if(n)o=!1,a=vre;else if(i>=Lre){var u=t?null:Pre(e);if(u)return uM(u);o=!1,a=T5,l=new Uv}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 Ore=s5(function(e){return Rre(Zp(e,1,P5,!0))});const y_=Ore,er=e=>e===void 0,Un=e=>typeof e=="boolean",at=e=>typeof e=="number",qa=e=>!e&&e!==0||He(e)&&e.length===0||Mt(e)&&!Object.keys(e).length,ai=e=>typeof Element>"u"?!1:e instanceof Element,$re=e=>Kn(e),Nre=e=>lt(e)?!Number.isNaN(Number(e)):!1,$5=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),io=e=>Wp(e),Yv=e=>Object.keys(e),Bre=e=>Object.entries(e),cy=(e,t,n)=>({get value(){return Sn(e,t,n)},set value(r){Are(e,t,r)}});class Vre extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function jn(e,t){throw new Vre(`[${e}] ${t}`)}const N5=(e="")=>e.split(" ").filter(t=>!!t.trim()),Li=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},lo=(e,t)=>{!e||!t.trim()||e.classList.add(...N5(t))},ga=(e,t)=>{!e||!t.trim()||e.classList.remove(...N5(t))},Hs=(e,t)=>{var n;if(!Vt||!e||!t)return"";let r=ni(t);r==="float"&&(r="cssFloat");try{const a=e.style[r];if(a)return a;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}};function On(e,t="px"){if(!e)return"";if(at(e)||Nre(e))return`${e}${t}`;if(lt(e))return e}const zre=(e,t)=>{if(!Vt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=Hs(e,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},cM=(e,t)=>{if(!Vt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(zre(n,t))return n;n=n.parentNode}return n};let Bg;const B5=e=>{var t;if(!Vt)return 0;if(Bg!==void 0)return Bg;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),Bg=r-i,Bg};function V5(e,t){if(!Vt)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const a=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=a+t.offsetHeight,o=e.scrollTop,s=o+e.clientHeight;a<o?e.scrollTop=a:i>s&&(e.scrollTop=i-e.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var qt=(e,t)=>{let n=e.__vccOpts||e;for(let[r,a]of t)n[r]=a;return n},Fre={name:"ArrowDown"},Hre={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Gre=Y("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),Wre=[Gre];function Kre(e,t,n,r,a,i){return R(),K("svg",Hre,Wre)}var Ml=qt(Fre,[["render",Kre],["__file","arrow-down.vue"]]),Ure={name:"ArrowLeft"},Yre={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jre=Y("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),qre=[jre];function Xre(e,t,n,r,a,i){return R(),K("svg",Yre,qre)}var fl=qt(Ure,[["render",Xre],["__file","arrow-left.vue"]]),Zre={name:"ArrowRight"},Jre={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Qre=Y("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),eae=[Qre];function tae(e,t,n,r,a,i){return R(),K("svg",Jre,eae)}var jr=qt(Zre,[["render",tae],["__file","arrow-right.vue"]]),nae={name:"ArrowUp"},rae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},aae=Y("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),iae=[aae];function oae(e,t,n,r,a,i){return R(),K("svg",rae,iae)}var Yb=qt(nae,[["render",oae],["__file","arrow-up.vue"]]),sae={name:"Back"},lae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},uae=Y("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),cae=Y("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),fae=[uae,cae];function dae(e,t,n,r,a,i){return R(),K("svg",lae,fae)}var hae=qt(sae,[["render",dae],["__file","back.vue"]]),vae={name:"Calendar"},pae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gae=Y("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),mae=[gae];function yae(e,t,n,r,a,i){return R(),K("svg",pae,mae)}var bae=qt(vae,[["render",yae],["__file","calendar.vue"]]),_ae={name:"CaretBottom"},wae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Sae=Y("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"},null,-1),Cae=[Sae];function xae(e,t,n,r,a,i){return R(),K("svg",wae,Cae)}var Eje=qt(_ae,[["render",xae],["__file","caret-bottom.vue"]]),Tae={name:"CaretRight"},Mae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kae=Y("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),Aae=[kae];function Eae(e,t,n,r,a,i){return R(),K("svg",Mae,Aae)}var z5=qt(Tae,[["render",Eae],["__file","caret-right.vue"]]),Iae={name:"CaretTop"},Dae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pae=Y("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),Lae=[Pae];function Rae(e,t,n,r,a,i){return R(),K("svg",Dae,Lae)}var Oae=qt(Iae,[["render",Rae],["__file","caret-top.vue"]]),$ae={name:"Check"},Nae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Bae=Y("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),Vae=[Bae];function zae(e,t,n,r,a,i){return R(),K("svg",Nae,Vae)}var Jp=qt($ae,[["render",zae],["__file","check.vue"]]),Fae={name:"CircleCheckFilled"},Hae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Gae=Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),Wae=[Gae];function Kae(e,t,n,r,a,i){return R(),K("svg",Hae,Wae)}var Uae=qt(Fae,[["render",Kae],["__file","circle-check-filled.vue"]]),Yae={name:"CircleCheck"},jae={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qae=Y("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Xae=Y("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),Zae=[qae,Xae];function Jae(e,t,n,r,a,i){return R(),K("svg",jae,Zae)}var fM=qt(Yae,[["render",Jae],["__file","circle-check.vue"]]),Qae={name:"CircleCloseFilled"},eie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tie=Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),nie=[tie];function rie(e,t,n,r,a,i){return R(),K("svg",eie,nie)}var dM=qt(Qae,[["render",rie],["__file","circle-close-filled.vue"]]),aie={name:"CircleClose"},iie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},oie=Y("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),sie=Y("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),lie=[oie,sie];function uie(e,t,n,r,a,i){return R(),K("svg",iie,lie)}var kl=qt(aie,[["render",uie],["__file","circle-close.vue"]]),cie={name:"Clock"},fie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},die=Y("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),hie=Y("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),vie=Y("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),pie=[die,hie,vie];function gie(e,t,n,r,a,i){return R(),K("svg",fie,pie)}var F5=qt(cie,[["render",gie],["__file","clock.vue"]]),mie={name:"Close"},yie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bie=Y("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),_ie=[bie];function wie(e,t,n,r,a,i){return R(),K("svg",yie,_ie)}var Bi=qt(mie,[["render",wie],["__file","close.vue"]]),Sie={name:"DArrowLeft"},Cie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xie=Y("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),Tie=[xie];function Mie(e,t,n,r,a,i){return R(),K("svg",Cie,Tie)}var Qf=qt(Sie,[["render",Mie],["__file","d-arrow-left.vue"]]),kie={name:"DArrowRight"},Aie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Eie=Y("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),Iie=[Eie];function Die(e,t,n,r,a,i){return R(),K("svg",Aie,Iie)}var ed=qt(kie,[["render",Die],["__file","d-arrow-right.vue"]]),Pie={name:"Delete"},Lie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Rie=Y("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Oie=[Rie];function $ie(e,t,n,r,a,i){return R(),K("svg",Lie,Oie)}var Nie=qt(Pie,[["render",$ie],["__file","delete.vue"]]),Bie={name:"Document"},Vie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},zie=Y("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),Fie=[zie];function Hie(e,t,n,r,a,i){return R(),K("svg",Vie,Fie)}var Gie=qt(Bie,[["render",Hie],["__file","document.vue"]]),Wie={name:"FullScreen"},Kie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Uie=Y("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),Yie=[Uie];function jie(e,t,n,r,a,i){return R(),K("svg",Kie,Yie)}var qie=qt(Wie,[["render",jie],["__file","full-screen.vue"]]),Xie={name:"Hide"},Zie={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jie=Y("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),Qie=Y("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),eoe=[Jie,Qie];function toe(e,t,n,r,a,i){return R(),K("svg",Zie,eoe)}var noe=qt(Xie,[["render",toe],["__file","hide.vue"]]),roe={name:"InfoFilled"},aoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ioe=Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),ooe=[ioe];function soe(e,t,n,r,a,i){return R(),K("svg",aoe,ooe)}var hM=qt(roe,[["render",soe],["__file","info-filled.vue"]]),loe={name:"Loading"},uoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},coe=Y("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),foe=[coe];function doe(e,t,n,r,a,i){return R(),K("svg",uoe,foe)}var Al=qt(loe,[["render",doe],["__file","loading.vue"]]),hoe={name:"Minus"},voe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},poe=Y("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),goe=[poe];function moe(e,t,n,r,a,i){return R(),K("svg",voe,goe)}var yoe=qt(hoe,[["render",moe],["__file","minus.vue"]]),boe={name:"MoreFilled"},_oe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},woe=Y("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),Soe=[woe];function Coe(e,t,n,r,a,i){return R(),K("svg",_oe,Soe)}var $D=qt(boe,[["render",Coe],["__file","more-filled.vue"]]),xoe={name:"More"},Toe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Moe=Y("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),koe=[Moe];function Aoe(e,t,n,r,a,i){return R(),K("svg",Toe,koe)}var Eoe=qt(xoe,[["render",Aoe],["__file","more.vue"]]),Ioe={name:"PictureFilled"},Doe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Poe=Y("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),Loe=[Poe];function Roe(e,t,n,r,a,i){return R(),K("svg",Doe,Loe)}var Ooe=qt(Ioe,[["render",Roe],["__file","picture-filled.vue"]]),$oe={name:"Plus"},Noe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Boe=Y("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),Voe=[Boe];function zoe(e,t,n,r,a,i){return R(),K("svg",Noe,Voe)}var H5=qt($oe,[["render",zoe],["__file","plus.vue"]]),Foe={name:"QuestionFilled"},Hoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Goe=Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),Woe=[Goe];function Koe(e,t,n,r,a,i){return R(),K("svg",Hoe,Woe)}var Uoe=qt(Foe,[["render",Koe],["__file","question-filled.vue"]]),Yoe={name:"RefreshLeft"},joe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qoe=Y("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),Xoe=[qoe];function Zoe(e,t,n,r,a,i){return R(),K("svg",joe,Xoe)}var Joe=qt(Yoe,[["render",Zoe],["__file","refresh-left.vue"]]),Qoe={name:"RefreshRight"},ese={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tse=Y("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),nse=[tse];function rse(e,t,n,r,a,i){return R(),K("svg",ese,nse)}var ase=qt(Qoe,[["render",rse],["__file","refresh-right.vue"]]),ise={name:"ScaleToOriginal"},ose={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sse=Y("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),lse=[sse];function use(e,t,n,r,a,i){return R(),K("svg",ose,lse)}var cse=qt(ise,[["render",use],["__file","scale-to-original.vue"]]),fse={name:"Search"},dse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hse=Y("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),vse=[hse];function pse(e,t,n,r,a,i){return R(),K("svg",dse,vse)}var gse=qt(fse,[["render",pse],["__file","search.vue"]]),mse={name:"SortDown"},yse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},bse=Y("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),_se=[bse];function wse(e,t,n,r,a,i){return R(),K("svg",yse,_se)}var Sse=qt(mse,[["render",wse],["__file","sort-down.vue"]]),Cse={name:"SortUp"},xse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Tse=Y("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),Mse=[Tse];function kse(e,t,n,r,a,i){return R(),K("svg",xse,Mse)}var Ase=qt(Cse,[["render",kse],["__file","sort-up.vue"]]),Ese={name:"StarFilled"},Ise={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Dse=Y("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),Pse=[Dse];function Lse(e,t,n,r,a,i){return R(),K("svg",Ise,Pse)}var Vg=qt(Ese,[["render",Lse],["__file","star-filled.vue"]]),Rse={name:"Star"},Ose={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$se=Y("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),Nse=[$se];function Bse(e,t,n,r,a,i){return R(),K("svg",Ose,Nse)}var Vse=qt(Rse,[["render",Bse],["__file","star.vue"]]),zse={name:"SuccessFilled"},Fse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Hse=Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),Gse=[Hse];function Wse(e,t,n,r,a,i){return R(),K("svg",Fse,Gse)}var G5=qt(zse,[["render",Wse],["__file","success-filled.vue"]]),Kse={name:"View"},Use={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Yse=Y("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),jse=[Yse];function qse(e,t,n,r,a,i){return R(),K("svg",Use,jse)}var Xse=qt(Kse,[["render",qse],["__file","view.vue"]]),Zse={name:"WarningFilled"},Jse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Qse=Y("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),ele=[Qse];function tle(e,t,n,r,a,i){return R(),K("svg",Jse,ele)}var jb=qt(Zse,[["render",tle],["__file","warning-filled.vue"]]),nle={name:"ZoomIn"},rle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ale=Y("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),ile=[ale];function ole(e,t,n,r,a,i){return R(),K("svg",rle,ile)}var W5=qt(nle,[["render",ole],["__file","zoom-in.vue"]]),sle={name:"ZoomOut"},lle={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ule=Y("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),cle=[ule];function fle(e,t,n,r,a,i){return R(),K("svg",lle,cle)}var dle=qt(sle,[["render",fle],["__file","zoom-out.vue"]]);const K5="__epPropKey",ue=e=>e,hle=e=>Mt(e)&&!!e[K5],Ki=(e,t)=>{if(!Mt(e)||hle(e))return e;const{values:n,required:r,default:a,type:i,validator:o}=e,l={type:i,required:!!r,validator:n||o?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),Nt(e,"default")&&f.push(a),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const d=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");qY(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[K5]:!0};return Nt(e,"default")&&(l.default=a),l},Le=e=>c0(Object.entries(e).map(([t,n])=>[t,Ki(n,t)])),fn=ue([String,Object,Function]),U5={Close:Bi},vM={Close:Bi,SuccessFilled:G5,InfoFilled:hM,WarningFilled:jb,CircleCloseFilled:dM},dl={success:G5,warning:jb,error:dM,info:hM},pM={validating:Al,success:fM,error:kl},_t=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t??{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return e},Y5=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),vle=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Dn=e=>(e.install=rn,e),qb=(...e)=>t=>{e.forEach(n=>{it(n)?n(t):n.value=t})},Xe={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ple=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],b_=["sun","mon","tue","wed","thu","fri","sat"],wt="update:modelValue",mn="change",qr="input",ND=Symbol("INSTALLED_KEY"),Mo=["","default","small","large"],gle={large:40,default:32,small:24},mle=e=>gle[e||"default"],Xb=e=>["",...Mo].includes(e);var Wa=(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))(Wa||{});function IC(e){return Tn(e)&&e.type===je}function yle(e){return Tn(e)&&e.type===Yr}function ble(e){return Tn(e)&&!IC(e)&&!yle(e)}const _le=e=>{if(!Tn(e))return{};const t=e.props||{},n=(Tn(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(a=>{Nt(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(t).forEach(a=>{r[ni(a)]=t[a]}),r},wle=e=>{if(!He(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},Ef=e=>{const t=He(e)?e:[e],n=[];return t.forEach(r=>{var a;He(r)?n.push(...Ef(r)):Tn(r)&&He(r.children)?n.push(...Ef(r.children)):(n.push(r),Tn(r)&&((a=r.component)!=null&&a.subTree)&&n.push(...Ef(r.component.subTree)))}),n},BD=e=>[...new Set(e)],jo=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],Zb=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),td=e=>Vt?window.requestAnimationFrame(e):setTimeout(e,16),Jb=e=>Vt?window.cancelAnimationFrame(e):clearTimeout(e),Qb=()=>Math.floor(Math.random()*1e4),Cn=e=>e,Sle=["class","style"],Cle=/^on[A-Z]/,gM=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=P(()=>((n==null?void 0:n.value)||[]).concat(Sle)),a=gt();return P(a?()=>{var i;return c0(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!r.value.includes(o)&&!(t&&Cle.test(o))))}:()=>({}))},bo=({from:e,replacement:t,scope:n,version:r,ref:a,type:i="API"},o)=>{xe(()=>y(o),s=>{},{immediate:!0})},j5=(e,t,n)=>{let r={offsetX:0,offsetY:0};const a=s=>{const l=s.clientX,u=s.clientY,{offsetX:c,offsetY:f}=r,d=e.value.getBoundingClientRect(),h=d.left,v=d.top,p=d.width,g=d.height,m=document.documentElement.clientWidth,b=document.documentElement.clientHeight,_=-h+c,w=-v+f,C=m-h-p+c,S=b-v-g+f,x=M=>{const A=Math.min(Math.max(c+M.clientX-l,_),C),k=Math.min(Math.max(f+M.clientY-u,w),S);r={offsetX:A,offsetY:k},e.value.style.transform=`translate(${On(A)}, ${On(k)})`},T=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",T)},i=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",a)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",a)};yt(()=>{Da(()=>{n.value?i():o()})}),wn(()=>{o()})};var xle={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 Tle=e=>(t,n)=>Mle(t,n,y(e)),Mle=(e,t,n)=>Sn(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),kle=e=>{const t=P(()=>y(e).name),n=cn(e)?e:H(e);return{lang:t,locale:n,t:Tle(e)}},q5=Symbol("localeContextKey"),Ht=e=>{const t=e||Ge(q5,H());return kle(P(()=>t.value||xle))},sv="el",Ale="is-",Fl=(e,t,n,r,a)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},X5=Symbol("namespaceContextKey"),mM=e=>{const t=e||(gt()?Ge(X5,H(sv)):H(sv));return P(()=>y(t)||sv)},Me=(e,t)=>{const n=mM(t);return{namespace:n,b:(p="")=>Fl(n.value,e,p,"",""),e:p=>p?Fl(n.value,e,"",p,""):"",m:p=>p?Fl(n.value,e,"","",p):"",be:(p,g)=>p&&g?Fl(n.value,e,p,g,""):"",em:(p,g)=>p&&g?Fl(n.value,e,"",p,g):"",bm:(p,g)=>p&&g?Fl(n.value,e,p,"",g):"",bem:(p,g,m)=>p&&g&&m?Fl(n.value,e,p,g,m):"",is:(p,...g)=>{const m=g.length>=1?g[0]:!0;return p&&m?`${Ale}${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}`}},Z5=(e,t={})=>{cn(e)||jn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Me("popup"),r=YB(()=>n.bm("parent","hidden"));if(!Vt||Li(document.body,r.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{ga(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=o)},200)};xe(e,l=>{if(!l){s();return}i=!Li(document.body,r.value),i&&(o=document.body.style.width),a=B5(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=Hs(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),lo(document.body,r.value)}),DB(()=>s())},Ele=Ki({type:ue(Boolean),default:null}),Ile=Ki({type:ue(Function)}),J5=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:Ele,[n]:Ile};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=gt(),{emit:h}=d,v=d.props,p=P(()=>it(v[n])),g=P(()=>v[e]===null),m=x=>{o.value!==!0&&(o.value=!0,s&&(s.value=x),it(c)&&c(x))},b=x=>{o.value!==!1&&(o.value=!1,s&&(s.value=x),it(f)&&f(x))},_=x=>{if(v.disabled===!0||it(u)&&!u())return;const T=p.value&&Vt;T&&h(t,!0),(g.value||!T)&&m(x)},w=x=>{if(v.disabled===!0||!Vt)return;const T=p.value&&Vt;T&&h(t,!1),(g.value||!T)&&b(x)},C=x=>{Un(x)&&(v.disabled&&x?p.value&&h(t,!1):o.value!==x&&(x?m():b()))},S=()=>{o.value?w():_()};return xe(()=>v[e],C),l&&d.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&w()}),yt(()=>{C(v[e])}),{hide:w,show:_,toggle:S,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:r}};J5("modelValue");const Q5=e=>{const t=gt();return P(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var ma="top",ii="bottom",oi="right",ya="left",yM="auto",Qp=[ma,ii,oi,ya],nd="start",jv="end",Dle="clippingParents",ez="viewport",rh="popper",Ple="reference",VD=Qp.reduce(function(e,t){return e.concat([t+"-"+nd,t+"-"+jv])},[]),Sc=[].concat(Qp,[yM]).reduce(function(e,t){return e.concat([t,t+"-"+nd,t+"-"+jv])},[]),Lle="beforeRead",Rle="read",Ole="afterRead",$le="beforeMain",Nle="main",Ble="afterMain",Vle="beforeWrite",zle="write",Fle="afterWrite",Hle=[Lle,Rle,Ole,$le,Nle,Ble,Vle,zle,Fle];function _o(e){return e?(e.nodeName||"").toLowerCase():null}function Ui(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function rd(e){var t=Ui(e).Element;return e instanceof t||e instanceof Element}function ei(e){var t=Ui(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bM(e){if(typeof ShadowRoot>"u")return!1;var t=Ui(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Gle(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];!ei(i)||!_o(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(o){var s=a[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function Wle(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},{});!ei(a)||!_o(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var tz={name:"applyStyles",enabled:!0,phase:"write",fn:Gle,effect:Wle,requires:["computeStyles"]};function vo(e){return e.split("-")[0]}var ju=Math.max,f0=Math.min,ad=Math.round;function id(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(ei(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(r=ad(n.width)/o||1),i>0&&(a=ad(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 _M(e){var t=id(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 nz(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bM(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function es(e){return Ui(e).getComputedStyle(e)}function Kle(e){return["table","td","th"].indexOf(_o(e))>=0}function El(e){return((rd(e)?e.ownerDocument:e.document)||window.document).documentElement}function e1(e){return _o(e)==="html"?e:e.assignedSlot||e.parentNode||(bM(e)?e.host:null)||El(e)}function zD(e){return!ei(e)||es(e).position==="fixed"?null:e.offsetParent}function Ule(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ei(e)){var r=es(e);if(r.position==="fixed")return null}var a=e1(e);for(bM(a)&&(a=a.host);ei(a)&&["html","body"].indexOf(_o(a))<0;){var i=es(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function eg(e){for(var t=Ui(e),n=zD(e);n&&Kle(n)&&es(n).position==="static";)n=zD(n);return n&&(_o(n)==="html"||_o(n)==="body"&&es(n).position==="static")?t:n||Ule(e)||t}function wM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lv(e,t,n){return ju(e,f0(t,n))}function Yle(e,t,n){var r=lv(e,t,n);return r>n?n:r}function rz(){return{top:0,right:0,bottom:0,left:0}}function az(e){return Object.assign({},rz(),e)}function iz(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var jle=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,az(typeof e!="number"?e:iz(e,Qp))};function qle(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=vo(n.placement),l=wM(s),u=[ya,oi].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var f=jle(a.padding,n),d=_M(i),h=l==="y"?ma:ya,v=l==="y"?ii:oi,p=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],m=eg(i),b=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,w=f[h],C=b-d[c]-f[v],S=b/2-d[c]/2+_,x=lv(w,S,C),T=l;n.modifiersData[r]=(t={},t[T]=x,t.centerOffset=x-S,t)}}function Xle(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)||!nz(t.elements.popper,a)||(t.elements.arrow=a))}var Zle={name:"arrow",enabled:!0,phase:"main",fn:qle,effect:Xle,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function od(e){return e.split("-")[1]}var Jle={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qle(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:ad(t*a)/a||0,y:ad(n*a)/a||0}}function FD(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,v=o.y,p=v===void 0?0:v,g=typeof c=="function"?c({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var m=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),_=ya,w=ma,C=window;if(u){var S=eg(n),x="clientHeight",T="clientWidth";if(S===Ui(n)&&(S=El(n),es(S).position!=="static"&&s==="absolute"&&(x="scrollHeight",T="scrollWidth")),S=S,a===ma||(a===ya||a===oi)&&i===jv){w=ii;var M=f&&S===C&&C.visualViewport?C.visualViewport.height:S[x];p-=M-r.height,p*=l?1:-1}if(a===ya||(a===ma||a===ii)&&i===jv){_=oi;var A=f&&S===C&&C.visualViewport?C.visualViewport.width:S[T];h-=A-r.width,h*=l?1:-1}}var k=Object.assign({position:s},u&&Jle),E=c===!0?Qle({x:h,y:p}):{x:h,y:p};if(h=E.x,p=E.y,l){var D;return Object.assign({},k,(D={},D[w]=b?"0":"",D[_]=m?"0":"",D.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",D))}return Object.assign({},k,(t={},t[w]=b?p+"px":"",t[_]=m?h+"px":"",t.transform="",t))}function eue(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:vo(t.placement),variation:od(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,FD(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,FD(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 oz={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:eue,data:{}},zg={passive:!0};function tue(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,l=Ui(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,zg)}),s&&l.addEventListener("resize",n.update,zg),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,zg)}),s&&l.removeEventListener("resize",n.update,zg)}}var sz={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tue,data:{}},nue={left:"right",right:"left",bottom:"top",top:"bottom"};function fy(e){return e.replace(/left|right|bottom|top/g,function(t){return nue[t]})}var rue={start:"end",end:"start"};function HD(e){return e.replace(/start|end/g,function(t){return rue[t]})}function SM(e){var t=Ui(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function CM(e){return id(El(e)).left+SM(e).scrollLeft}function aue(e){var t=Ui(e),n=El(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+CM(e),y:s}}function iue(e){var t,n=El(e),r=SM(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=ju(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=ju(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+CM(e),l=-r.scrollTop;return es(a||n).direction==="rtl"&&(s+=ju(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function xM(e){var t=es(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function lz(e){return["html","body","#document"].indexOf(_o(e))>=0?e.ownerDocument.body:ei(e)&&xM(e)?e:lz(e1(e))}function uv(e,t){var n;t===void 0&&(t=[]);var r=lz(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ui(r),o=a?[i].concat(i.visualViewport||[],xM(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(uv(e1(o)))}function DC(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function oue(e){var t=id(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 GD(e,t){return t===ez?DC(aue(e)):rd(t)?oue(t):DC(iue(El(e)))}function sue(e){var t=uv(e1(e)),n=["absolute","fixed"].indexOf(es(e).position)>=0,r=n&&ei(e)?eg(e):e;return rd(r)?t.filter(function(a){return rd(a)&&nz(a,r)&&_o(a)!=="body"}):[]}function lue(e,t,n){var r=t==="clippingParents"?sue(e):[].concat(t),a=[].concat(r,[n]),i=a[0],o=a.reduce(function(s,l){var u=GD(e,l);return s.top=ju(u.top,s.top),s.right=f0(u.right,s.right),s.bottom=f0(u.bottom,s.bottom),s.left=ju(u.left,s.left),s},GD(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 uz(e){var t=e.reference,n=e.element,r=e.placement,a=r?vo(r):null,i=r?od(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case ma:l={x:o,y:t.y-n.height};break;case ii:l={x:o,y:t.y+t.height};break;case oi:l={x:t.x+t.width,y:s};break;case ya:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?wM(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case nd:l[u]=l[u]-(t[c]/2-n[c]/2);break;case jv:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function qv(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?Dle:i,s=n.rootBoundary,l=s===void 0?ez:s,u=n.elementContext,c=u===void 0?rh:u,f=n.altBoundary,d=f===void 0?!1:f,h=n.padding,v=h===void 0?0:h,p=az(typeof v!="number"?v:iz(v,Qp)),g=c===rh?Ple:rh,m=e.rects.popper,b=e.elements[d?g:c],_=lue(rd(b)?b:b.contextElement||El(e.elements.popper),o,l),w=id(e.elements.reference),C=uz({reference:w,element:m,strategy:"absolute",placement:a}),S=DC(Object.assign({},m,C)),x=c===rh?S:w,T={top:_.top-x.top+p.top,bottom:x.bottom-_.bottom+p.bottom,left:_.left-x.left+p.left,right:x.right-_.right+p.right},M=e.modifiersData.offset;if(c===rh&&M){var A=M[a];Object.keys(T).forEach(function(k){var E=[oi,ii].indexOf(k)>=0?1:-1,D=[ma,ii].indexOf(k)>=0?"y":"x";T[k]+=A[D]*E})}return T}function uue(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?Sc:l,c=od(r),f=c?s?VD:VD.filter(function(v){return od(v)===c}):Qp,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]=qv(e,{placement:p,boundary:a,rootBoundary:i,padding:o})[vo(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function cue(e){if(vo(e)===yM)return[];var t=fy(e);return[HD(e),t,HD(t)]}function fue(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,p=n.allowedAutoPlacements,g=t.options.placement,m=vo(g),b=m===g,_=l||(b||!v?[fy(g)]:cue(g)),w=[g].concat(_).reduce(function(ae,J){return ae.concat(vo(J)===yM?uue(t,{placement:J,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:p}):J)},[]),C=t.rects.reference,S=t.rects.popper,x=new Map,T=!0,M=w[0],A=0;A<w.length;A++){var k=w[A],E=vo(k),D=od(k)===nd,L=[ma,ii].indexOf(E)>=0,B=L?"width":"height",N=qv(t,{placement:k,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),O=L?D?oi:ya:D?ii:ma;C[B]>S[B]&&(O=fy(O));var $=fy(O),I=[];if(i&&I.push(N[E]<=0),s&&I.push(N[O]<=0,N[$]<=0),I.every(function(ae){return ae})){M=k,T=!1;break}x.set(k,I)}if(T)for(var z=v?3:1,G=function(ae){var J=w.find(function(Q){var ee=x.get(Q);if(ee)return ee.slice(0,ae).every(function(j){return j})});if(J)return M=J,"break"},U=z;U>0;U--){var Z=G(U);if(Z==="break")break}t.placement!==M&&(t.modifiersData[r]._skip=!0,t.placement=M,t.reset=!0)}}var due={name:"flip",enabled:!0,phase:"main",fn:fue,requiresIfExists:["offset"],data:{_skip:!1}};function WD(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 KD(e){return[ma,oi,ii,ya].some(function(t){return e[t]>=0})}function hue(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=qv(t,{elementContext:"reference"}),s=qv(t,{altBoundary:!0}),l=WD(o,r),u=WD(s,a,i),c=KD(l),f=KD(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 vue={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hue};function pue(e,t,n){var r=vo(e),a=[ya,ma].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[ya,oi].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function gue(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=Sc.reduce(function(c,f){return c[f]=pue(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 mue={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gue};function yue(e){var t=e.state,n=e.name;t.modifiersData[n]=uz({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var cz={name:"popperOffsets",enabled:!0,phase:"read",fn:yue,data:{}};function bue(e){return e==="x"?"y":"x"}function _ue(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=qv(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=vo(t.placement),b=od(t.placement),_=!b,w=wM(m),C=bue(w),S=t.modifiersData.popperOffsets,x=t.rects.reference,T=t.rects.popper,M=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,A=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(S){if(i){var D,L=w==="y"?ma:ya,B=w==="y"?ii:oi,N=w==="y"?"height":"width",O=S[w],$=O+g[L],I=O-g[B],z=h?-T[N]/2:0,G=b===nd?x[N]:T[N],U=b===nd?-T[N]:-x[N],Z=t.elements.arrow,ae=h&&Z?_M(Z):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:rz(),Q=J[L],ee=J[B],j=lv(0,x[N],ae[N]),de=_?x[N]/2-z-j-Q-A.mainAxis:G-j-Q-A.mainAxis,ve=_?-x[N]/2+z+j+ee+A.mainAxis:U+j+ee+A.mainAxis,ie=t.elements.arrow&&eg(t.elements.arrow),W=ie?w==="y"?ie.clientTop||0:ie.clientLeft||0:0,X=(D=k==null?void 0:k[w])!=null?D:0,oe=O+de-X-W,pe=O+ve-X,Se=lv(h?f0($,oe):$,O,h?ju(I,pe):I);S[w]=Se,E[w]=Se-O}if(s){var me,Ee=w==="x"?ma:ya,Ce=w==="x"?ii:oi,we=S[C],Te=C==="y"?"height":"width",$e=we+g[Ee],Be=we-g[Ce],We=[ma,ya].indexOf(m)!==-1,Ae=(me=k==null?void 0:k[C])!=null?me:0,Fe=We?$e:we-x[Te]-T[Te]-Ae+A.altAxis,rt=We?we+x[Te]+T[Te]-Ae-A.altAxis:Be,vt=h&&We?Yle(Fe,we,rt):lv(h?Fe:$e,we,h?rt:Be);S[C]=vt,E[C]=vt-we}t.modifiersData[r]=E}}var wue={name:"preventOverflow",enabled:!0,phase:"main",fn:_ue,requiresIfExists:["offset"]};function Sue(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Cue(e){return e===Ui(e)||!ei(e)?SM(e):Sue(e)}function xue(e){var t=e.getBoundingClientRect(),n=ad(t.width)/e.offsetWidth||1,r=ad(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Tue(e,t,n){n===void 0&&(n=!1);var r=ei(t),a=ei(t)&&xue(t),i=El(t),o=id(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((_o(t)!=="body"||xM(i))&&(s=Cue(t)),ei(t)?(l=id(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=CM(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function Mue(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 kue(e){var t=Mue(e);return Hle.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function Aue(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Eue(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 UD={placement:"bottom",modifiers:[],strategy:"absolute"};function YD(){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 TM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?UD:a;return function(o,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},UD,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:rd(o)?uv(o):o.contextElement?uv(o.contextElement):[],popper:uv(s)};var m=kue(Eue([].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(YD(g,m)){u.rects={reference:Tue(g,eg(m),u.options.strategy==="fixed"),popper:_M(m)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var _=u.orderedModifiers[b],w=_.fn,C=_.options,S=C===void 0?{}:C,x=_.name;typeof w=="function"&&(u=w({state:u,options:S,name:x,instance:d})||u)}}}},update:Aue(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){v(),f=!0}};if(!YD(o,s))return d;d.setOptions(l).then(function(p){!f&&l.onFirstUpdate&&l.onFirstUpdate(p)});function h(){u.orderedModifiers.forEach(function(p){var g=p.name,m=p.options,b=m===void 0?{}:m,_=p.effect;if(typeof _=="function"){var w=_({state:u,name:g,instance:d,options:b}),C=function(){};c.push(w||C)}})}function v(){c.forEach(function(p){return p()}),c=[]}return d}}TM();var Iue=[sz,cz,oz,tz];TM({defaultModifiers:Iue});var Due=[sz,cz,oz,tz,mue,due,wue,Zle,vue],fz=TM({defaultModifiers:Due});const Pue=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=Lue(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=P(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=y(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),i=un(),o=H({styles:{popper:{position:y(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return xe(a,l=>{const u=y(i);u&&u.setOptions(l)},{deep:!0}),xe([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=fz(l,u,y(a)))}),wn(()=>{s()}),{state:P(()=>{var l;return{...((l=y(i))==null?void 0:l.state)||{}}}),styles:P(()=>y(o).styles),attributes:P(()=>y(o).attributes),update:()=>{var l;return(l=y(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=y(i))==null?void 0:l.forceUpdate()},instanceRef:P(()=>y(i))}};function Lue(e){const t=Object.keys(e.elements),n=c0(t.map(a=>[a,e.styles[a]||{}])),r=c0(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}const MM=e=>{if(!e)return{onClick:rn,onMousedown:rn,onMouseup:rn};let t=!1,n=!1;return{onClick:o=>{t&&n&&e(o),t=n=!1},onMousedown:o=>{t=o.target===o.currentTarget},onMouseup:o=>{n=o.target===o.currentTarget}}},Rue=(e,t=0)=>{if(t===0)return e;const n=H(!1);let r=0;const a=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=e.value},t)};return yt(a),xe(()=>e.value,i=>{i?a():n.value=i}),n};function jD(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return Vb(()=>n()),{registerTimeout:t,cancelTimeout:n}}const qD={prefix:Math.floor(Math.random()*1e4),current:0},Oue=Symbol("elIdInjection"),dz=()=>gt()?Ge(Oue,qD):qD,si=e=>{const t=dz(),n=mM();return P(()=>y(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let sf=[];const XD=e=>{const t=e;t.key===Xe.esc&&sf.forEach(n=>n(t))},$ue=e=>{yt(()=>{sf.length===0&&document.addEventListener("keydown",XD),Vt&&sf.push(e)}),wn(()=>{sf=sf.filter(t=>t!==e),sf.length===0&&Vt&&document.removeEventListener("keydown",XD)})};let ZD;const hz=()=>{const e=mM(),t=dz(),n=P(()=>`${e.value}-popper-container-${t.prefix}`),r=P(()=>`#${n.value}`);return{id:n,selector:r}},Nue=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},Bue=()=>{const{id:e,selector:t}=hz();return Lb(()=>{Vt&&!ZD&&!document.body.querySelector(t.value)&&(ZD=Nue(e.value))}),{id:e,selector:t}},Vue=Le({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),vz=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=jD(),{registerTimeout:o,cancelTimeout:s}=jD();return{onOpen:c=>{i(()=>{r(c);const f=y(n);at(f)&&f>0&&o(()=>{a(c)},f)},y(e))},onClose:c=>{s(),i(()=>{a(c)},y(t))}}},pz=Symbol("elForwardRef"),zue=e=>{Et(pz,{setForwardRef:n=>{e.value=n}})},Fue=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),JD=H(0),gz=2e3,mz=Symbol("zIndexContextKey"),Ed=e=>{const t=e||(gt()?Ge(mz,void 0):void 0),n=P(()=>{const i=y(t);return at(i)?i:gz}),r=P(()=>n.value+JD.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(JD.value++,r.value)}},Xv=Math.min,If=Math.max,d0=Math.round,hl=e=>({x:e,y:e});function Hue(e,t,n){return If(e,Xv(t,n))}function yz(e,t){return typeof e=="function"?e(t):e}function kM(e){return e.split("-")[0]}function AM(e){return e.split("-")[1]}function Gue(e){return e==="x"?"y":"x"}function bz(e){return e==="y"?"height":"width"}function EM(e){return["top","bottom"].includes(kM(e))?"y":"x"}function _z(e){return Gue(EM(e))}function Wue(e){return{top:0,right:0,bottom:0,left:0,...e}}function Kue(e){return typeof e!="number"?Wue(e):{top:e,right:e,bottom:e,left:e}}function wz(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function QD(e,t,n){let{reference:r,floating:a}=e;const i=EM(t),o=_z(t),s=bz(o),l=kM(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(AM(t)){case"start":h[o]-=d*(n&&u?-1:1);break;case"end":h[o]+=d*(n&&u?-1:1);break}return h}const Uue=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}=QD(u,r,l),d=r,h={},v=0;for(let p=0;p<s.length;p++){const{name:g,fn:m}=s[p],{x:b,y:_,data:w,reset:C}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:a,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});if(c=b??c,f=_??f,h={...h,[g]:{...h[g],...w}},C&&v<=50){v++,typeof C=="object"&&(C.placement&&(d=C.placement),C.rects&&(u=C.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:a}):C.rects),{x:c,y:f}=QD(u,d,l)),p=-1;continue}}return{x:c,y:f,placement:d,strategy:a,middlewareData:h}},Yue=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}=yz(e,t)||{};if(u==null)return{};const f=Kue(c),d={x:n,y:r},h=_z(a),v=bz(h),p=await o.getDimensions(u),g=h==="y",m=g?"top":"left",b=g?"bottom":"right",_=g?"clientHeight":"clientWidth",w=i.reference[v]+i.reference[h]-d[h]-i.floating[v],C=d[h]-i.reference[h],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let x=S?S[_]:0;(!x||!await(o.isElement==null?void 0:o.isElement(S)))&&(x=s.floating[_]||i.floating[v]);const T=w/2-C/2,M=x/2-p[v]/2-1,A=Xv(f[m],M),k=Xv(f[b],M),E=A,D=x-p[v]-k,L=x/2-p[v]/2+T,B=Hue(E,L,D),N=!l.arrow&&AM(a)!=null&&L!=B&&i.reference[v]/2-(L<E?A:k)-p[v]/2<0,O=N?L<E?L-E:L-D:0;return{[h]:d[h]+O,data:{[h]:B,centerOffset:L-B-O,...N&&{alignmentOffset:O}},reset:N}}});async function jue(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=kM(n),s=AM(n),l=EM(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,f=yz(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 que=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,a=await jue(t,e);return{x:n+a.x,y:r+a.y,data:a}}}};function vl(e){return Sz(e)?(e.nodeName||"").toLowerCase():"#document"}function Pa(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Il(e){var t;return(t=(Sz(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Sz(e){return e instanceof Node||e instanceof Pa(e).Node}function ts(e){return e instanceof Element||e instanceof Pa(e).Element}function wo(e){return e instanceof HTMLElement||e instanceof Pa(e).HTMLElement}function eP(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pa(e).ShadowRoot}function tg(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=li(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function Xue(e){return["table","td","th"].includes(vl(e))}function IM(e){const t=DM(),n=li(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=sd(e);for(;wo(t)&&!t1(t);){if(IM(t))return t;t=sd(t)}return null}function DM(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function t1(e){return["html","body","#document"].includes(vl(e))}function li(e){return Pa(e).getComputedStyle(e)}function n1(e){return ts(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function sd(e){if(vl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||eP(e)&&e.host||Il(e);return eP(t)?t.host:t}function Cz(e){const t=sd(e);return t1(t)?e.ownerDocument?e.ownerDocument.body:e.body:wo(t)&&tg(t)?t:Cz(t)}function PC(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Cz(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Pa(a);return i?t.concat(o,o.visualViewport||[],tg(a)?a:[],o.frameElement&&n?PC(o.frameElement):[]):t.concat(a,PC(a,[],n))}function xz(e){const t=li(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=wo(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=d0(n)!==i||d0(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function Tz(e){return ts(e)?e:e.contextElement}function Df(e){const t=Tz(e);if(!wo(t))return hl(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=xz(t);let o=(i?d0(n.width):n.width)/r,s=(i?d0(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Jue=hl(0);function Mz(e){const t=Pa(e);return!DM()||!t.visualViewport?Jue:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Que(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Pa(e)?!1:t}function Zv(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=Tz(e);let o=hl(1);t&&(r?ts(r)&&(o=Df(r)):o=Df(e));const s=Que(i,n,r)?Mz(i):hl(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=Pa(i),h=r&&ts(r)?Pa(r):r;let v=d.frameElement;for(;v&&r&&h!==d;){const p=Df(v),g=v.getBoundingClientRect(),m=li(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=Pa(v).frameElement}}return wz({width:c,height:f,x:l,y:u})}function ece(e){let{rect:t,offsetParent:n,strategy:r}=e;const a=wo(n),i=Il(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},s=hl(1);const l=hl(0);if((a||!a&&r!=="fixed")&&((vl(n)!=="body"||tg(i))&&(o=n1(n)),wo(n))){const u=Zv(n);s=Df(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 tce(e){return Array.from(e.getClientRects())}function kz(e){return Zv(Il(e)).left+n1(e).scrollLeft}function nce(e){const t=Il(e),n=n1(e),r=e.ownerDocument.body,a=If(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=If(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+kz(e);const s=-n.scrollTop;return li(r).direction==="rtl"&&(o+=If(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function rce(e,t){const n=Pa(e),r=Il(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=DM();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function ace(e,t){const n=Zv(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=wo(e)?Df(e):hl(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 tP(e,t,n){let r;if(t==="viewport")r=rce(e,n);else if(t==="document")r=nce(Il(e));else if(ts(t))r=ace(t,n);else{const a=Mz(e);r={...t,x:t.x-a.x,y:t.y-a.y}}return wz(r)}function Az(e,t){const n=sd(e);return n===t||!ts(n)||t1(n)?!1:li(n).position==="fixed"||Az(n,t)}function ice(e,t){const n=t.get(e);if(n)return n;let r=PC(e,[],!1).filter(s=>ts(s)&&vl(s)!=="body"),a=null;const i=li(e).position==="fixed";let o=i?sd(e):e;for(;ts(o)&&!t1(o);){const s=li(o),l=IM(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||tg(o)&&!l&&Az(e,o))?r=r.filter(c=>c!==o):a=s,o=sd(o)}return t.set(e,r),r}function oce(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?ice(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const f=tP(t,c,a);return u.top=If(f.top,u.top),u.right=Xv(f.right,u.right),u.bottom=Xv(f.bottom,u.bottom),u.left=If(f.left,u.left),u},tP(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function sce(e){return xz(e)}function lce(e,t,n){const r=wo(t),a=Il(t),i=n==="fixed",o=Zv(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=hl(0);if(r||!r&&!i)if((vl(t)!=="body"||tg(a))&&(s=n1(t)),r){const u=Zv(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else a&&(l.x=kz(a));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function nP(e,t){return!wo(e)||li(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ez(e,t){const n=Pa(e);if(!wo(e))return n;let r=nP(e,t);for(;r&&Xue(r)&&li(r).position==="static";)r=nP(r,t);return r&&(vl(r)==="html"||vl(r)==="body"&&li(r).position==="static"&&!IM(r))?n:r||Zue(e)||n}const uce=async function(e){let{reference:t,floating:n,strategy:r}=e;const a=this.getOffsetParent||Ez,i=this.getDimensions;return{reference:lce(t,await a(n),r),floating:{x:0,y:0,...await i(n)}}};function cce(e){return li(e).direction==="rtl"}const fce={convertOffsetParentRelativeRectToViewportRelativeRect:ece,getDocumentElement:Il,getClippingRect:oce,getOffsetParent:Ez,getElementRects:uce,getClientRects:tce,getDimensions:sce,getScale:Df,isElement:ts,isRTL:cce},dce=(e,t,n)=>{const r=new Map,a={platform:fce,...n},i={...a.platform,_c:r};return Uue(e,t,{...a,platform:i})};Le({});const hce=e=>{if(!Vt)return;if(!e)return e;const t=Aa(e);return t||(cn(e)?t:e)},vce=({middleware:e,placement:t,strategy:n})=>{const r=H(),a=H(),i=H(),o=H(),s=H({}),l={x:i,y:o,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!Vt)return;const c=hce(r),f=Aa(a);if(!c||!f)return;const d=await dce(c,f,{placement:y(t),strategy:y(n),middleware:y(e)});Yv(l).forEach(h=>{l[h].value=d[h]})};return yt(()=>{Da(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:a}},pce=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=y(e);return r?Yue({element:r,padding:t}).fn(n):{}}});function gce(e){const t=H();function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=e.value;if(a==null||i==null)return;const s=o.slice(0,Math.max(0,a)),l=o.slice(Math.max(0,i));t.value={selectionStart:a,selectionEnd:i,value:o,beforeTxt:s,afterTxt:l}}function r(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:s}=t.value;if(i==null||o==null||s==null)return;let l=a.length;if(a.endsWith(o))l=a.length-o.length;else if(a.startsWith(i))l=i.length;else{const u=i[s-1],c=a.indexOf(u,s-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[n,r]}const mce=(e,t,n)=>Ef(e.subTree).filter(i=>{var o;return Tn(i)&&((o=i.type)==null?void 0:o.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),PM=(e,t)=>{const n={},r=un([]);return{children:r,addChild:o=>{n[o.uid]=o,r.value=mce(e,t,n)},removeChild:o=>{delete n[o],r.value=r.value.filter(s=>s.uid!==o)}}},Sr=Ki({type:String,values:Mo,required:!1}),Iz=Symbol("size"),yce=()=>{const e=Ge(Iz,{});return P(()=>y(e.size)||"")};function bce(e,{afterFocus:t,afterBlur:n}={}){const r=gt(),{emit:a}=r,i=un(),o=H(!1),s=c=>{o.value||(o.value=!0,a("focus",c),t==null||t())},l=c=>{var f;c.relatedTarget&&((f=i.value)!=null&&f.contains(c.relatedTarget))||(o.value=!1,a("blur",c),n==null||n())},u=()=>{var c;(c=e.value)==null||c.focus()};return xe(i,c=>{c&&c.setAttribute("tabindex","-1")}),bn(i,"click",u),{wrapperRef:i,isFocused:o,handleFocus:s,handleBlur:l}}const Dz=Symbol(),h0=H();function r1(e,t=void 0){const n=gt()?Ge(Dz,h0):h0;return e?P(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function a1(e,t){const n=r1(),r=Me(e,P(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||sv})),a=Ht(P(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=Ed(P(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||gz})),o=P(()=>{var s;return y(t)||((s=n.value)==null?void 0:s.size)||""});return LM(P(()=>y(n)||{})),{ns:r,locale:a,zIndex:i,size:o}}const LM=(e,t,n=!1)=>{var r;const a=!!gt(),i=a?r1():void 0,o=(r=t==null?void 0:t.provide)!=null?r:a?Et:void 0;if(!o)return;const s=P(()=>{const l=y(e);return i!=null&&i.value?_ce(i.value,l):l});return o(Dz,s),o(q5,P(()=>s.value.locale)),o(X5,P(()=>s.value.namespace)),o(mz,P(()=>s.value.zIndex)),o(Iz,{size:P(()=>s.value.size||"")}),(n||!h0.value)&&(h0.value=s.value),s},_ce=(e,t)=>{var n;const r=[...new Set([...Yv(e),...Yv(t)])],a={};for(const i of r)a[i]=(n=t[i])!=null?n:e[i];return a},wce=Le({a11y:{type:Boolean,default:!0},locale:{type:ue(Object)},size:Sr,button:{type:ue(Object)},experimentalFeatures:{type:ue(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ue(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),LC={},Sce=ne({name:"ElConfigProvider",props:wce,setup(e,{slots:t}){xe(()=>e.message,r=>{Object.assign(LC,r??{})},{immediate:!0,deep:!0});const n=LM(e);return()=>_e(t,"default",{config:n==null?void 0:n.value})}}),Cce=_t(Sce),xce="2.3.14",Tce=(e=[])=>({version:xce,install:(n,r)=>{n[ND]||(n[ND]=!0,e.forEach(a=>n.use(a)),r&&LM(r,n,!0))}}),Mce=Le({zIndex:{type:ue([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),kce={scroll:({scrollTop:e,fixed:t})=>at(e)&&Un(t),[mn]:e=>Un(e)};var Pe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const Pz="ElAffix",Ace=ne({name:Pz}),Ece=ne({...Ace,props:Mce,emits:kce,setup(e,{expose:t,emit:n}){const r=e,a=Me("affix"),i=un(),o=un(),s=un(),{height:l}=MZ(),{height:u,width:c,top:f,bottom:d,update:h}=eD(o,{windowScroll:!1}),v=eD(i),p=H(!1),g=H(0),m=H(0),b=P(()=>({height:p.value?`${u.value}px`:"",width:p.value?`${c.value}px`:""})),_=P(()=>{if(!p.value)return{};const S=r.offset?On(r.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:r.position==="top"?S:"",bottom:r.position==="bottom"?S:"",transform:m.value?`translateY(${m.value}px)`:"",zIndex:r.zIndex}}),w=()=>{if(s.value)if(g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const S=v.bottom.value-r.offset-u.value;p.value=r.offset>f.value&&v.bottom.value>0,m.value=S<0?S:0}else p.value=r.offset>f.value;else if(r.target){const S=l.value-v.top.value-r.offset-u.value;p.value=l.value-r.offset<d.value&&l.value>v.top.value,m.value=S<0?-S:0}else p.value=l.value-r.offset<d.value},C=()=>{h(),n("scroll",{scrollTop:g.value,fixed:p.value})};return xe(p,S=>n("change",S)),yt(()=>{var S;r.target?(i.value=(S=document.querySelector(r.target))!=null?S:void 0,i.value||jn(Pz,`Target is not existed: ${r.target}`)):i.value=document.documentElement,s.value=cM(o.value,!0),h()}),bn(s,"scroll",C),Da(w),t({update:w,updateRoot:h}),(S,x)=>(R(),K("div",{ref_key:"root",ref:o,class:V(y(a).b()),style:Ye(y(b))},[Y("div",{class:V({[y(a).m("fixed")]:p.value}),style:Ye(y(_))},[_e(S.$slots,"default")],6)],6))}});var Ice=Pe(Ece,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const Dce=_t(Ice),Pce=Le({size:{type:ue([Number,String])},color:{type:String}}),Lce=ne({name:"ElIcon",inheritAttrs:!1}),Rce=ne({...Lce,props:Pce,setup(e){const t=e,n=Me("icon"),r=P(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:er(a)?void 0:On(a),"--color":i}});return(a,i)=>(R(),K("i",St({class:y(n).b(),style:y(r)},a.$attrs),[_e(a.$slots,"default")],16))}});var Oce=Pe(Rce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Ke=_t(Oce),$ce=["light","dark"],Nce=Le({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Yv(dl),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:$ce,default:"light"}}),Bce={close:e=>e instanceof MouseEvent},Vce=ne({name:"ElAlert"}),zce=ne({...Vce,props:Nce,emits:Bce,setup(e,{emit:t}){const n=e,{Close:r}=vM,a=Mr(),i=Me("alert"),o=H(!0),s=P(()=>dl[n.type]),l=P(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!a.default}]),u=P(()=>({[i.is("bold")]:n.description||a.default})),c=f=>{o.value=!1,t("close",f)};return(f,d)=>(R(),ce(Bn,{name:y(i).b("fade"),persisted:""},{default:re(()=>[dt(Y("div",{class:V([y(i).b(),y(i).m(f.type),y(i).is("center",f.center),y(i).is(f.effect)]),role:"alert"},[f.showIcon&&y(s)?(R(),ce(y(Ke),{key:0,class:V(y(l))},{default:re(()=>[(R(),ce(Ct(y(s))))]),_:1},8,["class"])):se("v-if",!0),Y("div",{class:V(y(i).e("content"))},[f.title||f.$slots.title?(R(),K("span",{key:0,class:V([y(i).e("title"),y(u)])},[_e(f.$slots,"title",{},()=>[Ut(De(f.title),1)])],2)):se("v-if",!0),f.$slots.default||f.description?(R(),K("p",{key:1,class:V(y(i).e("description"))},[_e(f.$slots,"default",{},()=>[Ut(De(f.description),1)])],2)):se("v-if",!0),f.closable?(R(),K(je,{key:2},[f.closeText?(R(),K("div",{key:0,class:V([y(i).e("close-btn"),y(i).is("customed")]),onClick:c},De(f.closeText),3)):(R(),ce(y(Ke),{key:1,class:V(y(i).e("close-btn")),onClick:c},{default:re(()=>[q(y(r))]),_:1},8,["class"]))],64)):se("v-if",!0)],2)],2),[[Kt,o.value]])]),_:3},8,["name"]))}});var Fce=Pe(zce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const Hce=_t(Fce),Cc=Symbol("formContextKey"),So=Symbol("formItemContextKey"),qn=(e,t={})=>{const n=H(void 0),r=t.prop?n:Q5("size"),a=t.global?n:yce(),i=t.form?{size:void 0}:Ge(Cc,void 0),o=t.formItem?{size:void 0}:Ge(So,void 0);return P(()=>r.value||y(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},wa=e=>{const t=Q5("disabled"),n=Ge(Cc,void 0);return P(()=>t.value||y(e)||(n==null?void 0:n.disabled)||!1)},aa=()=>{const e=Ge(Cc,void 0),t=Ge(So,void 0);return{form:e,formItem:t}},Dl=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=H(!1)),r||(r=H(!1));const a=H();let i;const o=P(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return yt(()=>{i=xe([kn(e,"id"),n],([s,l])=>{const u=s??(l?void 0:si().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})}),Tl(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},Gce=Le({size:{type:String,values:Mo},disabled:Boolean}),Wce=Le({...Gce,model:Object,rules:{type:ue(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),Kce={validate:(e,t,n)=>(He(e)||lt(e))&&Un(t)&&lt(n)};function Uce(){const e=H([]),t=P(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const o=e.value.indexOf(i);return o===-1&&t.value,o}function r(i,o){if(i&&o){const s=n(o);e.value.splice(s,1,i)}else i&&e.value.push(i)}function a(i){const o=n(i);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:a}}const Fg=(e,t)=>{const n=sc(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},Yce="ElForm",jce=ne({name:Yce}),qce=ne({...jce,props:Wce,emits:Kce,setup(e,{expose:t,emit:n}){const r=e,a=[],i=qn(),o=Me("form"),s=P(()=>{const{labelPosition:b,inline:_}=r;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${b}`)]:b,[o.m("inline")]:_}]}),l=b=>{a.push(b)},u=b=>{b.prop&&a.splice(a.indexOf(b),1)},c=(b=[])=>{r.model&&Fg(a,b).forEach(_=>_.resetField())},f=(b=[])=>{Fg(a,b).forEach(_=>_.clearValidate())},d=P(()=>!!r.model),h=b=>{if(a.length===0)return[];const _=Fg(a,b);return _.length?_:[]},v=async b=>g(void 0,b),p=async(b=[])=>{if(!d.value)return!1;const _=h(b);if(_.length===0)return!0;let w={};for(const C of _)try{await C.validate("")}catch(S){w={...w,...S}}return Object.keys(w).length===0?!0:Promise.reject(w)},g=async(b=[],_)=>{const w=!it(_);try{const C=await p(b);return C===!0&&(_==null||_(C)),C}catch(C){if(C instanceof Error)throw C;const S=C;return r.scrollToError&&m(Object.keys(S)[0]),_==null||_(!1,S),w&&Promise.reject(S)}},m=b=>{var _;const w=Fg(a,b)[0];w&&((_=w.$el)==null||_.scrollIntoView(r.scrollIntoViewOptions))};return xe(()=>r.rules,()=>{r.validateOnRuleChange&&v().catch(b=>void 0)},{deep:!0}),Et(Cc,jt({...or(r),emit:n,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...Uce()})),t({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(b,_)=>(R(),K("form",{class:V(y(s))},[_e(b.$slots,"default")],2))}});var Xce=Pe(qce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Du(){return Du=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},Du.apply(this,arguments)}function Zce(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jv(e,t)}function RC(e){return RC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},RC(e)}function Jv(e,t){return Jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Jv(e,t)}function Jce(){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 dy(e,t,n){return Jce()?dy=Reflect.construct.bind():dy=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&Jv(u,o.prototype),u},dy.apply(null,arguments)}function Qce(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function OC(e){var t=typeof Map=="function"?new Map:void 0;return OC=function(r){if(r===null||!Qce(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 dy(r,arguments,RC(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Jv(a,r)},OC(e)}var efe=/%[sdj%]/g,tfe=function(){};typeof process<"u"&&process.env;function $C(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 Ea(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(efe,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 nfe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function sr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||nfe(t)&&typeof e=="string"&&!e)}function rfe(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 rP(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 afe(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var aP=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}(OC(Error));function ife(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 aP(m,$C(m))):d(a)},p=afe(e);rP(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 aP(c,$C(c))):d(a)};s.length||(r(c),d(a)),s.forEach(function(p){var g=e[p];o.indexOf(p)!==-1?rP(g,n,v):rfe(g,n,v)})});return f.catch(function(d){return d}),f}function ofe(e){return!!(e&&e.message!==void 0)}function sfe(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function iP(e,t){return function(n){var r;return e.fullFields?r=sfe(t,e.fullFields):r=t[n.field||e.fullField],ofe(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 oP(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]=Du({},e[n],r):e[n]=r}}return e}var Lz=function(t,n,r,a,i,o){t.required&&(!r.hasOwnProperty(t.field)||sr(n,o||t.type))&&a.push(Ea(i.messages.required,t.fullField))},lfe=function(t,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(Ea(i.messages.whitespace,t.fullField))},Hg,ufe=function(){if(Hg)return Hg;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=(`
  10. (?:
  11. (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  12. (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
  13. (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
  14. (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
  15. (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
  16. (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
  17. (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
  18. (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
  19. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  20. `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),o=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),l=function(w){return w&&w.exact?i:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+a+t(w)+")","g")};l.v4=function(_){return _&&_.exact?o:new RegExp(""+t(_)+n+t(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+t(_)+a+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',b="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+v+p+")"+g+m;return Hg=new RegExp("(?:^"+b+"$)","i"),Hg},sP={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},Vh={integer:function(t){return Vh.number(t)&&parseInt(t,10)===t},float:function(t){return Vh.number(t)&&!Vh.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"&&!Vh.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(sP.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ufe())},hex:function(t){return typeof t=="string"&&!!t.match(sP.hex)}},cfe=function(t,n,r,a,i){if(t.required&&n===void 0){Lz(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?Vh[s](n)||a.push(Ea(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&a.push(Ea(i.messages.types[s],t.fullField,t.type))},ffe=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(Ea(i.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?a.push(Ea(i.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?a.push(Ea(i.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&a.push(Ea(i.messages[f].range,t.fullField,t.min,t.max))},Rc="enum",dfe=function(t,n,r,a,i){t[Rc]=Array.isArray(t[Rc])?t[Rc]:[],t[Rc].indexOf(n)===-1&&a.push(Ea(i.messages[Rc],t.fullField,t[Rc].join(", ")))},hfe=function(t,n,r,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Ea(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(Ea(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},on={required:Lz,whitespace:lfe,type:cfe,range:ffe,enum:dfe,pattern:hfe},vfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n,"string")&&!t.required)return r();on.required(t,n,a,o,i,"string"),sr(n,"string")||(on.type(t,n,a,o,i),on.range(t,n,a,o,i),on.pattern(t,n,a,o,i),t.whitespace===!0&&on.whitespace(t,n,a,o,i))}r(o)},pfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&on.type(t,n,a,o,i)}r(o)},gfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&(on.type(t,n,a,o,i),on.range(t,n,a,o,i))}r(o)},mfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&on.type(t,n,a,o,i)}r(o)},yfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),sr(n)||on.type(t,n,a,o,i)}r(o)},bfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&(on.type(t,n,a,o,i),on.range(t,n,a,o,i))}r(o)},_fe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&(on.type(t,n,a,o,i),on.range(t,n,a,o,i))}r(o)},wfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();on.required(t,n,a,o,i,"array"),n!=null&&(on.type(t,n,a,o,i),on.range(t,n,a,o,i))}r(o)},Sfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&on.type(t,n,a,o,i)}r(o)},Cfe="enum",xfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i),n!==void 0&&on[Cfe](t,n,a,o,i)}r(o)},Tfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n,"string")&&!t.required)return r();on.required(t,n,a,o,i),sr(n,"string")||on.pattern(t,n,a,o,i)}r(o)},Mfe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n,"date")&&!t.required)return r();if(on.required(t,n,a,o,i),!sr(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),on.type(t,l,a,o,i),l&&on.range(t,l.getTime(),a,o,i)}}r(o)},kfe=function(t,n,r,a,i){var o=[],s=Array.isArray(n)?"array":typeof n;on.required(t,n,a,o,i,s),r(o)},__=function(t,n,r,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(sr(n,o)&&!t.required)return r();on.required(t,n,a,s,i,o),sr(n,o)||on.type(t,n,a,s,i)}r(s)},Afe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(sr(n)&&!t.required)return r();on.required(t,n,a,o,i)}r(o)},cv={string:vfe,method:pfe,number:gfe,boolean:mfe,regexp:yfe,integer:bfe,float:_fe,array:wfe,object:Sfe,enum:xfe,pattern:Tfe,date:Mfe,url:__,hex:__,email:__,required:kfe,any:Afe};function NC(){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 BC=NC(),ng=function(){function e(n){this.rules=null,this._messages=BC,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=oP(NC(),r)),this._messages},t.validate=function(r,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=r,l=a,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(p){var g=[],m={};function b(w){if(Array.isArray(w)){var C;g=(C=g).concat.apply(C,w)}else g.push(w)}for(var _=0;_<p.length;_++)b(p[_]);g.length?(m=$C(g),u(g,m)):u(null,s)}if(l.messages){var f=this.messages();f===BC&&(f=NC()),oP(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=Du({},s)),m=s[p]=_.transform(m)),typeof _=="function"?_={validator:_}:_=Du({},_),_.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 ife(d,l,function(p,g){var m=p.rule,b=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");b=b&&(m.required||!m.required&&p.value),m.field=p.field;function _(S,x){return Du({},x,{fullField:m.fullField+"."+S,fullFields:m.fullFields?[].concat(m.fullFields,[S]):[S]})}function w(S){S===void 0&&(S=[]);var x=Array.isArray(S)?S:[S];!l.suppressWarning&&x.length&&e.warning("async-validator:",x),x.length&&m.message!==void 0&&(x=[].concat(m.message));var T=x.map(iP(m,s));if(l.first&&T.length)return v[m.field]=1,g(T);if(!b)g(T);else{if(m.required&&!p.value)return m.message!==void 0?T=[].concat(m.message).map(iP(m,s)):l.error&&(T=[l.error(m,Ea(l.messages.required,m.field))]),g(T);var M={};m.defaultField&&Object.keys(p.value).map(function(E){M[E]=m.defaultField}),M=Du({},M,p.rule.fields);var A={};Object.keys(M).forEach(function(E){var D=M[E],L=Array.isArray(D)?D:[D];A[E]=L.map(_.bind(null,E))});var k=new e(A);k.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),k.validate(p.value,p.rule.options||l,function(E){var D=[];T&&T.length&&D.push.apply(D,T),E&&E.length&&D.push.apply(D,E),g(D.length?D:null)})}}var C;if(m.asyncValidator)C=m.asyncValidator(m,p.value,w,p.source,l);else if(m.validator){try{C=m.validator(m,p.value,w,p.source,l)}catch(S){console.error==null||console.error(S),l.suppressValidatorError||setTimeout(function(){throw S},0),w(S.message)}C===!0?w():C===!1?w(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):C instanceof Array?w(C):C instanceof Error&&w(C.message)}C&&C.then&&C.then(function(){return w()},function(S){return w(S)})},function(p){c(p)},s)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!cv.hasOwnProperty(r.type))throw new Error(Ea("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"?cv.required:cv[this.getType(r)]||void 0},e}();ng.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");cv[t]=n};ng.warning=tfe;ng.messages=BC;ng.validators=cv;const Efe=["","error","validating","success"],Ife=Le({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:ue([String,Array])},required:{type:Boolean,default:void 0},rules:{type:ue([Object,Array])},error:String,validateStatus:{type:String,values:Efe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Mo}}),lP="ElLabelWrap";var Dfe=ne({name:lP,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Ge(Cc,void 0),r=Ge(So);r||jn(lP,"usage: <el-form-item><label-wrap /></el-form-item>");const a=Me("form"),i=H(),o=H(0),s=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{Ue(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},u=()=>l("update");return yt(()=>{u()}),wn(()=>{l("remove")}),cs(()=>u()),xe(o,(c,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,f))}),$r(P(()=>{var c,f;return(f=(c=i.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!t)return null;const{isAutoWidth:d}=e;if(d){const h=n==null?void 0:n.autoLabelWidth,v=r==null?void 0:r.hasLabel,p={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),m=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[m]=`${g}px`)}return q("div",{ref:i,class:[a.be("item","label-wrap")],style:p},[(c=t.default)==null?void 0:c.call(t)])}else return q(je,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const Pfe=["role","aria-labelledby"],Lfe=ne({name:"ElFormItem"}),Rfe=ne({...Lfe,props:Ife,setup(e,{expose:t}){const n=e,r=Mr(),a=Ge(Cc,void 0),i=Ge(So,void 0),o=qn(void 0,{formItem:!1}),s=Me("form-item"),l=si().value,u=H([]),c=H(""),f=cZ(c,100),d=H(""),h=H();let v,p=!1;const g=P(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const ee=On(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return ee?{width:ee}:{}}),m=P(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&M)return{};const ee=On(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!r.label?{marginLeft:ee}:{}}),b=P(()=>[s.b(),s.m(o.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",L.value||n.required),s.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:a==null?void 0:a.statusIcon}]),_=P(()=>Un(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),w=P(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),C=P(()=>n.prop?lt(n.prop)?n.prop:n.prop.join("."):""),S=P(()=>!!(n.label||r.label)),x=P(()=>n.for||u.value.length===1?u.value[0]:void 0),T=P(()=>!x.value&&S.value),M=!!i,A=P(()=>{const ee=a==null?void 0:a.model;if(!(!ee||!n.prop))return cy(ee,n.prop).value}),k=P(()=>{const{required:ee}=n,j=[];n.rules&&j.push(...sc(n.rules));const de=a==null?void 0:a.rules;if(de&&n.prop){const ve=cy(de,n.prop).value;ve&&j.push(...sc(ve))}if(ee!==void 0){const ve=j.map((ie,W)=>[ie,W]).filter(([ie])=>Object.keys(ie).includes("required"));if(ve.length>0)for(const[ie,W]of ve)ie.required!==ee&&(j[W]={...ie,required:ee});else j.push({required:ee})}return j}),E=P(()=>k.value.length>0),D=ee=>k.value.filter(de=>!de.trigger||!ee?!0:Array.isArray(de.trigger)?de.trigger.includes(ee):de.trigger===ee).map(({trigger:de,...ve})=>ve),L=P(()=>k.value.some(ee=>ee.required)),B=P(()=>{var ee;return f.value==="error"&&n.showMessage&&((ee=a==null?void 0:a.showMessage)!=null?ee:!0)}),N=P(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),O=ee=>{c.value=ee},$=ee=>{var j,de;const{errors:ve,fields:ie}=ee;(!ve||!ie)&&console.error(ee),O("error"),d.value=ve?(de=(j=ve==null?void 0:ve[0])==null?void 0:j.message)!=null?de:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,d.value)},I=()=>{O("success"),a==null||a.emit("validate",n.prop,!0,"")},z=async ee=>{const j=C.value;return new ng({[j]:ee}).validate({[j]:A.value},{firstFields:!0}).then(()=>(I(),!0)).catch(ve=>($(ve),Promise.reject(ve)))},G=async(ee,j)=>{if(p||!n.prop)return!1;const de=it(j);if(!E.value)return j==null||j(!1),!1;const ve=D(ee);return ve.length===0?(j==null||j(!0),!0):(O("validating"),z(ve).then(()=>(j==null||j(!0),!0)).catch(ie=>{const{fields:W}=ie;return j==null||j(!1,W),de?!1:Promise.reject(W)}))},U=()=>{O(""),d.value="",p=!1},Z=async()=>{const ee=a==null?void 0:a.model;if(!ee||!n.prop)return;const j=cy(ee,n.prop);p=!0,j.value=DD(v),await Ue(),U(),p=!1},ae=ee=>{u.value.includes(ee)||u.value.push(ee)},J=ee=>{u.value=u.value.filter(j=>j!==ee)};xe(()=>n.error,ee=>{d.value=ee||"",O(ee?"error":"")},{immediate:!0}),xe(()=>n.validateStatus,ee=>O(ee||""));const Q=jt({...or(n),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:T,hasLabel:S,addInputId:ae,removeInputId:J,resetField:Z,clearValidate:U,validate:G});return Et(So,Q),yt(()=>{n.prop&&(a==null||a.addField(Q),v=DD(A.value))}),wn(()=>{a==null||a.removeField(Q)}),t({size:o,validateMessage:d,validateState:c,validate:G,clearValidate:U,resetField:Z}),(ee,j)=>{var de;return R(),K("div",{ref_key:"formItemRef",ref:h,class:V(y(b)),role:y(T)?"group":void 0,"aria-labelledby":y(T)?y(l):void 0},[q(y(Dfe),{"is-auto-width":y(g).width==="auto","update-all":((de=y(a))==null?void 0:de.labelWidth)==="auto"},{default:re(()=>[y(S)?(R(),ce(Ct(y(x)?"label":"div"),{key:0,id:y(l),for:y(x),class:V(y(s).e("label")),style:Ye(y(g))},{default:re(()=>[_e(ee.$slots,"label",{label:y(N)},()=>[Ut(De(y(N)),1)])]),_:3},8,["id","for","class","style"])):se("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),Y("div",{class:V(y(s).e("content")),style:Ye(y(m))},[_e(ee.$slots,"default"),q(EV,{name:`${y(s).namespace.value}-zoom-in-top`},{default:re(()=>[y(B)?_e(ee.$slots,"error",{key:0,error:d.value},()=>[Y("div",{class:V(y(w))},De(d.value),3)]):se("v-if",!0)]),_:3},8,["name"])],6)],10,Pfe)}}});var Rz=Pe(Rfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Ofe=_t(Xce,{FormItem:Rz}),$fe=Dn(Rz);let mi;const Nfe=`
  21. height:0 !important;
  22. visibility:hidden !important;
  23. ${JV()?"":"overflow:hidden !important;"}
  24. position:absolute !important;
  25. z-index:-1000 !important;
  26. top:0 !important;
  27. right:0 !important;
  28. `,Bfe=["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 Vfe(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:Bfe.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function uP(e,t=1,n){var r;mi||(mi=document.createElement("textarea"),document.body.appendChild(mi));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=Vfe(e);mi.setAttribute("style",`${s};${Nfe}`),mi.value=e.value||e.placeholder||"";let l=mi.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),mi.value="";const c=mi.scrollHeight-a;if(at(t)){let f=c*t;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(at(n)){let f=c*n;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(r=mi.parentNode)==null||r.removeChild(mi),mi=void 0,u}const zfe=Le({id:{type:String,default:void 0},size:Sr,disabled:Boolean,modelValue:{type:ue([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ue([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:fn},prefixIcon:{type:fn},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:ue([Object,Array,String]),default:()=>Cn({})},autofocus:{type:Boolean,default:!1}}),Ffe={[wt]:e=>lt(e),input:e=>lt(e),change:e=>lt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Hfe=["role"],Gfe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Wfe=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Kfe=ne({name:"ElInput",inheritAttrs:!1}),Ufe=ne({...Kfe,props:zfe,emits:Ffe,setup(e,{expose:t,emit:n}){const r=e,a=yc(),i=Mr(),o=P(()=>{const Ae={};return r.containerRole==="combobox"&&(Ae["aria-haspopup"]=a["aria-haspopup"],Ae["aria-owns"]=a["aria-owns"],Ae["aria-expanded"]=a["aria-expanded"]),Ae}),s=P(()=>[r.type==="textarea"?g.b():p.b(),p.m(h.value),p.is("disabled",v.value),p.is("exceed",ae.value),{[p.b("group")]:i.prepend||i.append,[p.bm("group","append")]:i.append,[p.bm("group","prepend")]:i.prepend,[p.m("prefix")]:i.prefix||r.prefixIcon,[p.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[p.bm("suffix","password-clear")]:z.value&&G.value},a.class]),l=P(()=>[p.e("wrapper"),p.is("focus",A.value)]),u=gM({excludeKeys:P(()=>Object.keys(o.value))}),{form:c,formItem:f}=aa(),{inputId:d}=Dl(r,{formItemContext:f}),h=qn(),v=wa(),p=Me("input"),g=Me("textarea"),m=un(),b=un(),_=H(!1),w=H(!1),C=H(!1),S=H(),x=un(r.inputStyle),T=P(()=>m.value||b.value),{wrapperRef:M,isFocused:A,handleFocus:k,handleBlur:E}=bce(T,{afterBlur(){var Ae;r.validateEvent&&((Ae=f==null?void 0:f.validate)==null||Ae.call(f,"blur").catch(Fe=>void 0))}}),D=P(()=>{var Ae;return(Ae=c==null?void 0:c.statusIcon)!=null?Ae:!1}),L=P(()=>(f==null?void 0:f.validateState)||""),B=P(()=>L.value&&pM[L.value]),N=P(()=>C.value?Xse:noe),O=P(()=>[a.style,r.inputStyle]),$=P(()=>[r.inputStyle,x.value,{resize:r.resize}]),I=P(()=>Kn(r.modelValue)?"":String(r.modelValue)),z=P(()=>r.clearable&&!v.value&&!r.readonly&&!!I.value&&(A.value||_.value)),G=P(()=>r.showPassword&&!v.value&&!r.readonly&&!!I.value&&(!!I.value||A.value)),U=P(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!v.value&&!r.readonly&&!r.showPassword),Z=P(()=>I.value.length),ae=P(()=>!!U.value&&Z.value>Number(u.value.maxlength)),J=P(()=>!!i.suffix||!!r.suffixIcon||z.value||r.showPassword||U.value||!!L.value&&D.value),[Q,ee]=gce(m);$r(b,Ae=>{if(ve(),!U.value||r.resize!=="both")return;const Fe=Ae[0],{width:rt}=Fe.contentRect;S.value={right:`calc(100% - ${rt+15+6}px)`}});const j=()=>{const{type:Ae,autosize:Fe}=r;if(!(!Vt||Ae!=="textarea"||!b.value))if(Fe){const rt=Mt(Fe)?Fe.minRows:void 0,vt=Mt(Fe)?Fe.maxRows:void 0,kt=uP(b.value,rt,vt);x.value={overflowY:"hidden",...kt},Ue(()=>{b.value.offsetHeight,x.value=kt})}else x.value={minHeight:uP(b.value).minHeight}},ve=(Ae=>{let Fe=!1;return()=>{var rt;if(Fe||!r.autosize)return;((rt=b.value)==null?void 0:rt.offsetParent)===null||(Ae(),Fe=!0)}})(j),ie=()=>{const Ae=T.value,Fe=r.formatter?r.formatter(I.value):I.value;!Ae||Ae.value===Fe||(Ae.value=Fe)},W=async Ae=>{Q();let{value:Fe}=Ae.target;if(r.formatter&&(Fe=r.parser?r.parser(Fe):Fe),!w.value){if(Fe===I.value){ie();return}n(wt,Fe),n("input",Fe),await Ue(),ie(),ee()}},X=Ae=>{n("change",Ae.target.value)},oe=Ae=>{n("compositionstart",Ae),w.value=!0},pe=Ae=>{var Fe;n("compositionupdate",Ae);const rt=(Fe=Ae.target)==null?void 0:Fe.value,vt=rt[rt.length-1]||"";w.value=!Zb(vt)},Se=Ae=>{n("compositionend",Ae),w.value&&(w.value=!1,W(Ae))},me=()=>{C.value=!C.value,Ee()},Ee=async()=>{var Ae;await Ue(),(Ae=T.value)==null||Ae.focus()},Ce=()=>{var Ae;return(Ae=T.value)==null?void 0:Ae.blur()},we=Ae=>{_.value=!1,n("mouseleave",Ae)},Te=Ae=>{_.value=!0,n("mouseenter",Ae)},$e=Ae=>{n("keydown",Ae)},Be=()=>{var Ae;(Ae=T.value)==null||Ae.select()},We=()=>{n(wt,""),n("change",""),n("clear"),n("input","")};return xe(()=>r.modelValue,()=>{var Ae;Ue(()=>j()),r.validateEvent&&((Ae=f==null?void 0:f.validate)==null||Ae.call(f,"change").catch(Fe=>void 0))}),xe(I,()=>ie()),xe(()=>r.type,async()=>{await Ue(),ie(),j()}),yt(()=>{!r.formatter&&r.parser,ie(),Ue(j)}),t({input:m,textarea:b,ref:T,textareaStyle:$,autosize:kn(r,"autosize"),focus:Ee,blur:Ce,select:Be,clear:We,resizeTextarea:j}),(Ae,Fe)=>dt((R(),K("div",St(y(o),{class:y(s),style:y(O),role:Ae.containerRole,onMouseenter:Te,onMouseleave:we}),[se(" input "),Ae.type!=="textarea"?(R(),K(je,{key:0},[se(" prepend slot "),Ae.$slots.prepend?(R(),K("div",{key:0,class:V(y(p).be("group","prepend"))},[_e(Ae.$slots,"prepend")],2)):se("v-if",!0),Y("div",{ref_key:"wrapperRef",ref:M,class:V(y(l))},[se(" prefix slot "),Ae.$slots.prefix||Ae.prefixIcon?(R(),K("span",{key:0,class:V(y(p).e("prefix"))},[Y("span",{class:V(y(p).e("prefix-inner"))},[_e(Ae.$slots,"prefix"),Ae.prefixIcon?(R(),ce(y(Ke),{key:0,class:V(y(p).e("icon"))},{default:re(()=>[(R(),ce(Ct(Ae.prefixIcon)))]),_:1},8,["class"])):se("v-if",!0)],2)],2)):se("v-if",!0),Y("input",St({id:y(d),ref_key:"input",ref:m,class:y(p).e("inner")},y(u),{type:Ae.showPassword?C.value?"text":"password":Ae.type,disabled:y(v),formatter:Ae.formatter,parser:Ae.parser,readonly:Ae.readonly,autocomplete:Ae.autocomplete,tabindex:Ae.tabindex,"aria-label":Ae.label,placeholder:Ae.placeholder,style:Ae.inputStyle,form:r.form,autofocus:r.autofocus,onCompositionstart:oe,onCompositionupdate:pe,onCompositionend:Se,onInput:W,onFocus:Fe[0]||(Fe[0]=(...rt)=>y(k)&&y(k)(...rt)),onBlur:Fe[1]||(Fe[1]=(...rt)=>y(E)&&y(E)(...rt)),onChange:X,onKeydown:$e}),null,16,Gfe),se(" suffix slot "),y(J)?(R(),K("span",{key:1,class:V(y(p).e("suffix"))},[Y("span",{class:V(y(p).e("suffix-inner"))},[!y(z)||!y(G)||!y(U)?(R(),K(je,{key:0},[_e(Ae.$slots,"suffix"),Ae.suffixIcon?(R(),ce(y(Ke),{key:0,class:V(y(p).e("icon"))},{default:re(()=>[(R(),ce(Ct(Ae.suffixIcon)))]),_:1},8,["class"])):se("v-if",!0)],64)):se("v-if",!0),y(z)?(R(),ce(y(Ke),{key:1,class:V([y(p).e("icon"),y(p).e("clear")]),onMousedown:tt(y(rn),["prevent"]),onClick:We},{default:re(()=>[q(y(kl))]),_:1},8,["class","onMousedown"])):se("v-if",!0),y(G)?(R(),ce(y(Ke),{key:2,class:V([y(p).e("icon"),y(p).e("password")]),onClick:me},{default:re(()=>[(R(),ce(Ct(y(N))))]),_:1},8,["class"])):se("v-if",!0),y(U)?(R(),K("span",{key:3,class:V(y(p).e("count"))},[Y("span",{class:V(y(p).e("count-inner"))},De(y(Z))+" / "+De(y(u).maxlength),3)],2)):se("v-if",!0),y(L)&&y(B)&&y(D)?(R(),ce(y(Ke),{key:4,class:V([y(p).e("icon"),y(p).e("validateIcon"),y(p).is("loading",y(L)==="validating")])},{default:re(()=>[(R(),ce(Ct(y(B))))]),_:1},8,["class"])):se("v-if",!0)],2)],2)):se("v-if",!0)],2),se(" append slot "),Ae.$slots.append?(R(),K("div",{key:1,class:V(y(p).be("group","append"))},[_e(Ae.$slots,"append")],2)):se("v-if",!0)],64)):(R(),K(je,{key:1},[se(" textarea "),Y("textarea",St({id:y(d),ref_key:"textarea",ref:b,class:y(g).e("inner")},y(u),{tabindex:Ae.tabindex,disabled:y(v),readonly:Ae.readonly,autocomplete:Ae.autocomplete,style:y($),"aria-label":Ae.label,placeholder:Ae.placeholder,form:r.form,autofocus:r.autofocus,onCompositionstart:oe,onCompositionupdate:pe,onCompositionend:Se,onInput:W,onFocus:Fe[2]||(Fe[2]=(...rt)=>y(k)&&y(k)(...rt)),onBlur:Fe[3]||(Fe[3]=(...rt)=>y(E)&&y(E)(...rt)),onChange:X,onKeydown:$e}),null,16,Wfe),y(U)?(R(),K("span",{key:0,style:Ye(S.value),class:V(y(p).e("count"))},De(y(Z))+" / "+De(y(u).maxlength),7)):se("v-if",!0)],64))],16,Hfe)),[[Kt,Ae.type!=="hidden"]])}});var Yfe=Pe(Ufe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Rr=_t(Yfe),gf=4,Oz={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"}},jfe=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),$z=Symbol("scrollbarContextKey"),qfe=Le({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Xfe="Thumb",Zfe=ne({__name:"thumb",props:qfe,setup(e){const t=e,n=Ge($z),r=Me("scrollbar");n||jn(Xfe,"can not inject scrollbar context");const a=H(),i=H(),o=H({}),s=H(!1);let l=!1,u=!1,c=Vt?document.onselectstart:null;const f=P(()=>Oz[t.vertical?"vertical":"horizontal"]),d=P(()=>jfe({size:t.size,move:t.move,bar:f.value})),h=P(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),v=S=>{var x;if(S.stopPropagation(),S.ctrlKey||[1,2].includes(S.button))return;(x=window.getSelection())==null||x.removeAllRanges(),g(S);const T=S.currentTarget;T&&(o.value[f.value.axis]=T[f.value.offset]-(S[f.value.client]-T.getBoundingClientRect()[f.value.direction]))},p=S=>{if(!i.value||!a.value||!n.wrapElement)return;const x=Math.abs(S.target.getBoundingClientRect()[f.value.direction]-S[f.value.client]),T=i.value[f.value.offset]/2,M=(x-T)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=M*n.wrapElement[f.value.scrollSize]/100},g=S=>{S.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",b),c=document.onselectstart,document.onselectstart=()=>!1},m=S=>{if(!a.value||!i.value||l===!1)return;const x=o.value[f.value.axis];if(!x)return;const T=(a.value.getBoundingClientRect()[f.value.direction]-S[f.value.client])*-1,M=i.value[f.value.offset]-x,A=(T-M)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=A*n.wrapElement[f.value.scrollSize]/100},b=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",b),C(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},w=()=>{u=!0,s.value=l};wn(()=>{C(),document.removeEventListener("mouseup",b)});const C=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return bn(kn(n,"scrollbarElement"),"mousemove",_),bn(kn(n,"scrollbarElement"),"mouseleave",w),(S,x)=>(R(),ce(Bn,{name:y(r).b("fade"),persisted:""},{default:re(()=>[dt(Y("div",{ref_key:"instance",ref:a,class:V([y(r).e("bar"),y(r).is(y(f).key)]),onMousedown:p},[Y("div",{ref_key:"thumb",ref:i,class:V(y(r).e("thumb")),style:Ye(y(d)),onMousedown:v},null,38)],34),[[Kt,S.always||s.value]])]),_:1},8,["name"]))}});var cP=Pe(Zfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Jfe=Le({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),Qfe=ne({__name:"bar",props:Jfe,setup(e,{expose:t}){const n=e,r=H(0),a=H(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-gf,l=o.offsetWidth-gf;a.value=o.scrollTop*100/s*n.ratioY,r.value=o.scrollLeft*100/l*n.ratioX}}}),(o,s)=>(R(),K(je,null,[q(cP,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),q(cP,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var ede=Pe(Qfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const tde=Le({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:ue([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),nde={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(at)},rde="ElScrollbar",ade=ne({name:rde}),ide=ne({...ade,props:tde,emits:nde,setup(e,{expose:t,emit:n}){const r=e,a=Me("scrollbar");let i,o;const s=H(),l=H(),u=H(),c=H("0"),f=H("0"),d=H(),h=H(1),v=H(1),p=P(()=>{const x={};return r.height&&(x.height=On(r.height)),r.maxHeight&&(x.maxHeight=On(r.maxHeight)),[r.wrapStyle,x]}),g=P(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),m=P(()=>[a.e("view"),r.viewClass]),b=()=>{var x;l.value&&((x=d.value)==null||x.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(x,T){Mt(x)?l.value.scrollTo(x):at(x)&&at(T)&&l.value.scrollTo(x,T)}const w=x=>{at(x)&&(l.value.scrollTop=x)},C=x=>{at(x)&&(l.value.scrollLeft=x)},S=()=>{if(!l.value)return;const x=l.value.offsetHeight-gf,T=l.value.offsetWidth-gf,M=x**2/l.value.scrollHeight,A=T**2/l.value.scrollWidth,k=Math.max(M,r.minSize),E=Math.max(A,r.minSize);h.value=M/(x-M)/(k/(x-k)),v.value=A/(T-A)/(E/(T-E)),f.value=k+gf<x?`${k}px`:"",c.value=E+gf<T?`${E}px`:""};return xe(()=>r.noresize,x=>{x?(i==null||i(),o==null||o()):({stop:i}=$r(u,S),o=bn("resize",S))},{immediate:!0}),xe(()=>[r.maxHeight,r.height],()=>{r.native||Ue(()=>{var x;S(),l.value&&((x=d.value)==null||x.handleScroll(l.value))})}),Et($z,jt({scrollbarElement:s,wrapElement:l})),yt(()=>{r.native||Ue(()=>{S()})}),cs(()=>S()),t({wrapRef:l,update:S,scrollTo:_,setScrollTop:w,setScrollLeft:C,handleScroll:b}),(x,T)=>(R(),K("div",{ref_key:"scrollbarRef",ref:s,class:V(y(a).b())},[Y("div",{ref_key:"wrapRef",ref:l,class:V(y(g)),style:Ye(y(p)),onScroll:b},[(R(),ce(Ct(x.tag),{ref_key:"resizeRef",ref:u,class:V(y(m)),style:Ye(x.viewStyle)},{default:re(()=>[_e(x.$slots,"default")]),_:3},8,["class","style"]))],38),x.native?se("v-if",!0):(R(),ce(ede,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:x.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var ode=Pe(ide,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const hs=_t(ode),RM=Symbol("popper"),Nz=Symbol("popperContent"),sde=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Bz=Le({role:{type:String,values:sde,default:"tooltip"}}),lde=ne({name:"ElPopper",inheritAttrs:!1}),ude=ne({...lde,props:Bz,setup(e,{expose:t}){const n=e,r=H(),a=H(),i=H(),o=H(),s=P(()=>n.role),l={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return t(l),Et(RM,l),(u,c)=>_e(u.$slots,"default")}});var cde=Pe(ude,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const Vz=Le({arrowOffset:{type:Number,default:5}}),fde=ne({name:"ElPopperArrow",inheritAttrs:!1}),dde=ne({...fde,props:Vz,setup(e,{expose:t}){const n=e,r=Me("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=Ge(Nz,void 0);return xe(()=>n.arrowOffset,s=>{a.value=s}),wn(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>(R(),K("span",{ref_key:"arrowRef",ref:i,class:V(y(r).e("arrow")),style:Ye(y(o)),"data-popper-arrow":""},null,6))}});var hde=Pe(dde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const vde="ElOnlyChild",zz=ne({name:vde,setup(e,{slots:t,attrs:n}){var r;const a=Ge(pz),i=Fue((r=a==null?void 0:a.setForwardRef)!=null?r:rn);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,n);if(!s||s.length>1)return null;const l=Fz(s);return l?dt(Qo(l,n),[[i]]):null}}});function Fz(e){if(!e)return null;const t=e;for(const n of t){if(Mt(n))switch(n.type){case Yr:continue;case Td:case"svg":return fP(n);case je:return Fz(n.children);default:return n}return fP(n)}return null}function fP(e){const t=Me("only-child");return q("span",{class:t.e("content")},[e])}const Hz=Le({virtualRef:{type:ue(Object)},virtualTriggering:Boolean,onMouseenter:{type:ue(Function)},onMouseleave:{type:ue(Function)},onClick:{type:ue(Function)},onKeydown:{type:ue(Function)},onFocus:{type:ue(Function)},onBlur:{type:ue(Function)},onContextmenu:{type:ue(Function)},id:String,open:Boolean}),pde=ne({name:"ElPopperTrigger",inheritAttrs:!1}),gde=ne({...pde,props:Hz,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=Ge(RM,void 0);zue(a);const i=P(()=>s.value?n.id:void 0),o=P(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=P(()=>{if(r&&r.value!=="tooltip")return r.value}),l=P(()=>s.value?`${n.open}`:void 0);let u;return yt(()=>{xe(()=>n.virtualRef,c=>{c&&(a.value=Aa(c))},{immediate:!0}),xe(a,(c,f)=>{u==null||u(),u=void 0,ai(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=n[d];v&&(c.addEventListener(d.slice(2).toLowerCase(),v),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),v))}),u=xe([i,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{Kn(d[v])?c.removeAttribute(h):c.setAttribute(h,d[v])})},{immediate:!0})),ai(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),wn(()=>{u==null||u(),u=void 0}),t({triggerRef:a}),(c,f)=>c.virtualTriggering?se("v-if",!0):(R(),ce(y(zz),St({key:0},c.$attrs,{"aria-controls":y(i),"aria-describedby":y(o),"aria-expanded":y(l),"aria-haspopup":y(s)}),{default:re(()=>[_e(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var mde=Pe(gde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const w_="focus-trap.focus-after-trapped",S_="focus-trap.focus-after-released",yde="focus-trap.focusout-prevented",dP={cancelable:!0,bubbles:!1},bde={cancelable:!0,bubbles:!1},hP="focusAfterTrapped",vP="focusAfterReleased",OM=Symbol("elFocusTrap"),$M=H(),i1=H(0),NM=H(0);let Gg=0;const Gz=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},pP=(e,t)=>{for(const n of e)if(!_de(n,t))return n},_de=(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},wde=e=>{const t=Gz(e),n=pP(t,e),r=pP(t.reverse(),e);return[n,r]},Sde=e=>e instanceof HTMLInputElement&&"select"in e,Ps=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),NM.value=window.performance.now(),e!==n&&Sde(e)&&t&&e.select()}};function gP(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const Cde=()=>{let e=[];return{push:r=>{const a=e[0];a&&r!==a&&a.pause(),e=gP(e,r),e.unshift(r)},remove:r=>{var a,i;e=gP(e,r),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},xde=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Ps(r,t),document.activeElement!==n)return},mP=Cde(),Tde=()=>i1.value>NM.value,Wg=()=>{$M.value="pointer",i1.value=window.performance.now()},yP=()=>{$M.value="keyboard",i1.value=window.performance.now()},Mde=()=>(yt(()=>{Gg===0&&(document.addEventListener("mousedown",Wg),document.addEventListener("touchstart",Wg),document.addEventListener("keydown",yP)),Gg++}),wn(()=>{Gg--,Gg<=0&&(document.removeEventListener("mousedown",Wg),document.removeEventListener("touchstart",Wg),document.removeEventListener("keydown",yP))}),{focusReason:$M,lastUserFocusTimestamp:i1,lastAutomatedFocusTimestamp:NM}),Kg=e=>new CustomEvent(yde,{...bde,detail:e}),kde=ne({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[hP,vP,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=H();let r,a;const{focusReason:i}=Mde();$ue(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:p,altKey:g,ctrlKey:m,metaKey:b,currentTarget:_,shiftKey:w}=v,{loop:C}=e,S=p===Xe.tab&&!g&&!m&&!b,x=document.activeElement;if(S&&x){const T=_,[M,A]=wde(T);if(M&&A){if(!w&&x===A){const E=Kg({focusReason:i.value});t("focusout-prevented",E),E.defaultPrevented||(v.preventDefault(),C&&Ps(M,!0))}else if(w&&[M,T].includes(x)){const E=Kg({focusReason:i.value});t("focusout-prevented",E),E.defaultPrevented||(v.preventDefault(),C&&Ps(A,!0))}}else if(x===T){const E=Kg({focusReason:i.value});t("focusout-prevented",E),E.defaultPrevented||v.preventDefault()}}};Et(OM,{focusTrapRef:n,onKeydown:s}),xe(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),xe([n],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=v=>{t(hP,v)},u=v=>t(vP,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:Ps(a,!0))},f=v=>{const p=y(n);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!Kn(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=Kg({focusReason:i.value});t("focusout-prevented",m),m.defaultPrevented||Ps(a,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await Ue();const v=y(n);if(v){mP.push(o);const p=v.contains(document.activeElement)?r:document.activeElement;if(r=p,!v.contains(p)){const m=new Event(w_,dP);v.addEventListener(w_,l),v.dispatchEvent(m),m.defaultPrevented||Ue(()=>{let b=e.focusStartEl;lt(b)||(Ps(b),document.activeElement!==b&&(b="first")),b==="first"&&xde(Gz(v),!0),(document.activeElement===p||b==="container")&&Ps(v)})}}}function h(){const v=y(n);if(v){v.removeEventListener(w_,l);const p=new CustomEvent(S_,{...dP,detail:{focusReason:i.value}});v.addEventListener(S_,u),v.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!Tde()||v.contains(document.activeElement))&&Ps(r??document.body),v.removeEventListener(S_,u),mP.remove(o)}}return yt(()=>{e.trapped&&d(),xe(()=>e.trapped,v=>{v?d():h()})}),wn(()=>{e.trapped&&h()}),{onKeydown:s}}});function Ade(e,t,n,r,a,i){return _e(e.$slots,"default",{handleKeydown:e.onKeydown})}var o1=Pe(kde,[["render",Ade],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Ede=["fixed","absolute"],Ide=Le({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ue(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Sc,default:"bottom"},popperOptions:{type:ue(Object),default:()=>({})},strategy:{type:String,values:Ede,default:"absolute"}}),Wz=Le({...Ide,id:String,style:{type:ue([String,Array,Object])},className:{type:ue([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:ue([String,Array,Object])},popperStyle:{type:ue([String,Array,Object])},referenceEl:{type:ue(Object)},triggerTargetEl:{type:ue(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),Dde={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Pde=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,i={placement:n,strategy:r,...a,modifiers:[...Rde(e),...t]};return Ode(i,a==null?void 0:a.modifiers),i},Lde=e=>{if(Vt)return Aa(e)};function Rde(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 Ode(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const $de=0,Nde=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=Ge(RM,void 0),i=H(),o=H(),s=P(()=>({name:"eventListeners",enabled:!!e.visible})),l=P(()=>{var m;const b=y(i),_=(m=y(o))!=null?m:$de;return{name:"arrow",enabled:!Cre(b),options:{element:b,padding:_}}}),u=P(()=>({onFirstUpdate:()=>{v()},...Pde(e,[y(l),y(s)])})),c=P(()=>Lde(e.referenceEl)||y(r)),{attributes:f,state:d,styles:h,update:v,forceUpdate:p,instanceRef:g}=Pue(c,n,u);return xe(g,m=>t.value=m),yt(()=>{xe(()=>{var m;return(m=y(c))==null?void 0:m.getBoundingClientRect()},()=>{v()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:g,state:d,styles:h,role:a,forceUpdate:p,update:v}},Bde=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=Ed(),i=Me("popper"),o=P(()=>y(t).popper),s=H(e.zIndex||a()),l=P(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=P(()=>[{zIndex:y(s)},y(n).popper,e.popperStyle||{}]),c=P(()=>r.value==="dialog"?"false":void 0),f=P(()=>y(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=e.zIndex||a()}}},Vde=(e,t)=>{const n=H(!1),r=H();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},zde=ne({name:"ElPopperContent"}),Fde=ne({...zde,props:Wz,emits:Dde,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=Vde(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:v,instanceRef:p,role:g,update:m}=Nde(r),{ariaModal:b,arrowStyle:_,contentAttrs:w,contentClass:C,contentStyle:S,updateZIndex:x}=Bde(r,{styles:v,attributes:f,role:g}),T=Ge(So,void 0),M=H();Et(Nz,{arrowStyle:_,arrowRef:d,arrowOffset:M}),T&&(T.addInputId||T.removeInputId)&&Et(So,{...T,addInputId:rn,removeInputId:rn});let A;const k=(D=!0)=>{m(),D&&x()},E=()=>{k(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return yt(()=>{xe(()=>r.triggerTargetEl,(D,L)=>{A==null||A(),A=void 0;const B=y(D||h.value),N=y(L||h.value);ai(B)&&(A=xe([g,()=>r.ariaLabel,b,()=>r.id],O=>{["role","aria-label","aria-modal","id"].forEach(($,I)=>{Kn(O[I])?B.removeAttribute($):B.setAttribute($,O[I])})},{immediate:!0})),N!==B&&ai(N)&&["role","aria-label","aria-modal","id"].forEach(O=>{N.removeAttribute(O)})},{immediate:!0}),xe(()=>r.visible,E,{immediate:!0})}),wn(()=>{A==null||A(),A=void 0}),t({popperContentRef:h,popperInstanceRef:p,updatePopper:k,contentStyle:S}),(D,L)=>(R(),K("div",St({ref_key:"contentRef",ref:h},y(w),{style:y(S),class:y(C),tabindex:"-1",onMouseenter:L[0]||(L[0]=B=>D.$emit("mouseenter",B)),onMouseleave:L[1]||(L[1]=B=>D.$emit("mouseleave",B))}),[q(y(o1),{trapped:y(i),"trap-on-focus-in":!0,"focus-trap-el":y(h),"focus-start-el":y(a),onFocusAfterTrapped:y(s),onFocusAfterReleased:y(o),onFocusin:y(l),onFocusoutPrevented:y(u),onReleaseRequested:y(c)},{default:re(()=>[_e(D.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Hde=Pe(Fde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const Kz=_t(cde),s1=Symbol("elTooltip"),cr=Le({...Vue,...Wz,appendTo:{type:ue([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:ue(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),Qv=Le({...Hz,disabled:Boolean,trigger:{type:ue([String,Array]),default:"hover"},triggerKeys:{type:ue(Array),default:()=>[Xe.enter,Xe.space]}}),{useModelToggleProps:Gde,useModelToggleEmits:Wde,useModelToggle:Kde}=J5("visible"),Ude=Le({...Bz,...Gde,...cr,...Qv,...Vz,showArrow:{type:Boolean,default:!0}}),Yde=[...Wde,"before-show","before-hide","show","hide","open","close"],jde=(e,t)=>He(e)?e.includes(t):e===t,Oc=(e,t,n)=>r=>{jde(y(e),t)&&n(r)},qde=ne({name:"ElTooltipTrigger"}),Xde=ne({...qde,props:Qv,setup(e,{expose:t}){const n=e,r=Me("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=Ge(s1,void 0),c=H(null),f=()=>{if(y(a)||n.disabled)return!0},d=kn(n,"trigger"),h=In(f,Oc(d,"hover",s)),v=In(f,Oc(d,"hover",l)),p=In(f,Oc(d,"click",w=>{w.button===0&&u(w)})),g=In(f,Oc(d,"focus",s)),m=In(f,Oc(d,"focus",l)),b=In(f,Oc(d,"contextmenu",w=>{w.preventDefault(),u(w)})),_=In(f,w=>{const{code:C}=w;n.triggerKeys.includes(C)&&(w.preventDefault(),u(w))});return t({triggerRef:c}),(w,C)=>(R(),ce(y(mde),{id:y(i),"virtual-ref":w.virtualRef,open:y(o),"virtual-triggering":w.virtualTriggering,class:V(y(r).e("trigger")),onBlur:y(m),onClick:y(p),onContextmenu:y(b),onFocus:y(g),onMouseenter:y(h),onMouseleave:y(v),onKeydown:y(_)},{default:re(()=>[_e(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Zde=Pe(Xde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Jde=ne({name:"ElTooltipContent",inheritAttrs:!1}),Qde=ne({...Jde,props:cr,setup(e,{expose:t}){const n=e,{selector:r}=hz(),a=Me("tooltip"),i=H(null),o=H(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:v,onBeforeShow:p,onBeforeHide:g}=Ge(s1,void 0),m=P(()=>n.transition||`${a.namespace.value}-fade-in-linear`),b=P(()=>n.persistent);wn(()=>{o.value=!0});const _=P(()=>y(b)?!0:y(u)),w=P(()=>n.disabled?!1:y(u)),C=P(()=>n.appendTo||r.value),S=P(()=>{var O;return(O=n.style)!=null?O:{}}),x=P(()=>!y(u)),T=()=>{v()},M=()=>{if(y(s))return!0},A=In(M,()=>{n.enterable&&y(c)==="hover"&&d()}),k=In(M,()=>{y(c)==="hover"&&f()}),E=()=>{var O,$;($=(O=i.value)==null?void 0:O.updatePopper)==null||$.call(O),p==null||p()},D=()=>{g==null||g()},L=()=>{h(),N=YT(P(()=>{var O;return(O=i.value)==null?void 0:O.popperContentRef}),()=>{if(y(s))return;y(c)!=="hover"&&f()})},B=()=>{n.virtualTriggering||f()};let N;return xe(()=>y(u),O=>{O||N==null||N()},{flush:"post"}),xe(()=>n.content,()=>{var O,$;($=(O=i.value)==null?void 0:O.updatePopper)==null||$.call(O)}),t({contentRef:i}),(O,$)=>(R(),ce(Kp,{disabled:!O.teleported,to:y(C)},[q(Bn,{name:y(m),onAfterLeave:T,onBeforeEnter:E,onAfterEnter:L,onBeforeLeave:D},{default:re(()=>[y(_)?dt((R(),ce(y(Hde),St({key:0,id:y(l),ref_key:"contentRef",ref:i},O.$attrs,{"aria-label":O.ariaLabel,"aria-hidden":y(x),"boundaries-padding":O.boundariesPadding,"fallback-placements":O.fallbackPlacements,"gpu-acceleration":O.gpuAcceleration,offset:O.offset,placement:O.placement,"popper-options":O.popperOptions,strategy:O.strategy,effect:O.effect,enterable:O.enterable,pure:O.pure,"popper-class":O.popperClass,"popper-style":[O.popperStyle,y(S)],"reference-el":O.referenceEl,"trigger-target-el":O.triggerTargetEl,visible:y(w),"z-index":O.zIndex,onMouseenter:y(A),onMouseleave:y(k),onBlur:B,onClose:y(f)}),{default:re(()=>[o.value?se("v-if",!0):_e(O.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Kt,y(w)]]):se("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var ehe=Pe(Qde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const the=["innerHTML"],nhe={key:1},rhe=ne({name:"ElTooltip"}),ahe=ne({...rhe,props:Ude,emits:Yde,setup(e,{expose:t,emit:n}){const r=e;Bue();const a=si(),i=H(),o=H(),s=()=>{var m;const b=y(i);b&&((m=b.popperInstanceRef)==null||m.update())},l=H(!1),u=H(),{show:c,hide:f,hasUpdateHandler:d}=Kde({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=vz({showAfter:kn(r,"showAfter"),hideAfter:kn(r,"hideAfter"),autoClose:kn(r,"autoClose"),open:c,close:f}),p=P(()=>Un(r.visible)&&!d.value);Et(s1,{controlled:p,id:a,open:xd(l),trigger:kn(r,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{y(l)?v(m):h(m)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),xe(()=>r.disabled,m=>{m&&l.value&&(l.value=!1)});const g=m=>{var b,_;const w=(_=(b=o.value)==null?void 0:b.contentRef)==null?void 0:_.popperContentRef,C=(m==null?void 0:m.relatedTarget)||document.activeElement;return w&&w.contains(C)};return rV(()=>l.value&&f()),t({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:f}),(m,b)=>(R(),ce(y(Kz),{ref_key:"popperRef",ref:i,role:m.role},{default:re(()=>[q(Zde,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:re(()=>[m.$slots.default?_e(m.$slots,"default",{key:0}):se("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),q(ehe,{ref_key:"contentRef",ref:o,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:re(()=>[_e(m.$slots,"content",{},()=>[m.rawContent?(R(),K("span",{key:0,innerHTML:m.content},null,8,the)):(R(),K("span",nhe,De(m.content),1))]),m.showArrow?(R(),ce(y(hde),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):se("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var ihe=Pe(ahe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ea=_t(ihe),ohe=Le({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:ue(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:ue([Function,Array]),default:rn},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:cr.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),she={[wt]:e=>lt(e),[qr]:e=>lt(e),[mn]:e=>lt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Mt(e)},lhe=["aria-expanded","aria-owns"],uhe={key:0},che=["id","aria-selected","onClick"],Uz="ElAutocomplete",fhe=ne({name:Uz,inheritAttrs:!1}),dhe=ne({...fhe,props:ohe,emits:she,setup(e,{expose:t,emit:n}){const r=e,a=gM(),i=yc(),o=wa(),s=Me("autocomplete"),l=H(),u=H(),c=H(),f=H();let d=!1,h=!1;const v=H([]),p=H(-1),g=H(""),m=H(!1),b=H(!1),_=H(!1),w=P(()=>s.b(String(Qb()))),C=P(()=>i.style),S=P(()=>(v.value.length>0||_.value)&&m.value),x=P(()=>!r.hideLoading&&_.value),T=P(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),M=()=>{S.value&&(g.value=`${l.value.$el.offsetWidth}px`)},A=()=>{p.value=-1},E=Qr(async Q=>{if(b.value)return;const ee=j=>{_.value=!1,!b.value&&(He(j)?(v.value=j,p.value=r.highlightFirstItem?0:-1):jn(Uz,"autocomplete suggestions must be an array"))};if(_.value=!0,He(r.fetchSuggestions))ee(r.fetchSuggestions);else{const j=await r.fetchSuggestions(Q,ee);He(j)&&ee(j)}},r.debounce),D=Q=>{const ee=!!Q;if(n(qr,Q),n(wt,Q),b.value=!1,m.value||(m.value=ee),!r.triggerOnFocus&&!Q){b.value=!0,v.value=[];return}E(Q)},L=Q=>{var ee;o.value||(((ee=Q.target)==null?void 0:ee.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(m.value=!0)},B=Q=>{n(mn,Q)},N=Q=>{h?h=!1:(m.value=!0,n("focus",Q),r.triggerOnFocus&&!d&&E(String(r.modelValue)))},O=Q=>{setTimeout(()=>{var ee;if((ee=c.value)!=null&&ee.isFocusInsideContent()){h=!0;return}m.value&&G(),n("blur",Q)})},$=()=>{m.value=!1,n(wt,""),n("clear")},I=async()=>{S.value&&p.value>=0&&p.value<v.value.length?ae(v.value[p.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),v.value=[],p.value=-1)},z=Q=>{S.value&&(Q.preventDefault(),Q.stopPropagation(),G())},G=()=>{m.value=!1},U=()=>{var Q;(Q=l.value)==null||Q.focus()},Z=()=>{var Q;(Q=l.value)==null||Q.blur()},ae=async Q=>{n(qr,Q[r.valueKey]),n(wt,Q[r.valueKey]),n("select",Q),v.value=[],p.value=-1},J=Q=>{if(!S.value||_.value)return;if(Q<0){p.value=-1;return}Q>=v.value.length&&(Q=v.value.length-1);const ee=u.value.querySelector(`.${s.be("suggestion","wrap")}`),de=ee.querySelectorAll(`.${s.be("suggestion","list")} li`)[Q],ve=ee.scrollTop,{offsetTop:ie,scrollHeight:W}=de;ie+W>ve+ee.clientHeight&&(ee.scrollTop+=W),ie<ve&&(ee.scrollTop-=W),p.value=Q,l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${p.value}`)};return YT(f,()=>{S.value&&G()}),yt(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${w.value}-item-${p.value}`),d=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:p,activated:m,loading:_,inputRef:l,popperRef:c,suggestions:v,handleSelect:ae,handleKeyEnter:I,focus:U,blur:Z,close:G,highlight:J}),(Q,ee)=>(R(),ce(y(ea),{ref_key:"popperRef",ref:c,visible:y(S),placement:Q.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[y(s).e("popper"),Q.popperClass],teleported:Q.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${y(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:M,onHide:A},{content:re(()=>[Y("div",{ref_key:"regionRef",ref:u,class:V([y(s).b("suggestion"),y(s).is("loading",y(x))]),style:Ye({[Q.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[q(y(hs),{id:y(w),tag:"ul","wrap-class":y(s).be("suggestion","wrap"),"view-class":y(s).be("suggestion","list"),role:"listbox"},{default:re(()=>[y(x)?(R(),K("li",uhe,[q(y(Ke),{class:V(y(s).is("loading"))},{default:re(()=>[q(y(Al))]),_:1},8,["class"])])):(R(!0),K(je,{key:1},Ot(v.value,(j,de)=>(R(),K("li",{id:`${y(w)}-item-${de}`,key:de,class:V({highlighted:p.value===de}),role:"option","aria-selected":p.value===de,onClick:ve=>ae(j)},[_e(Q.$slots,"default",{item:j},()=>[Ut(De(j[Q.valueKey]),1)])],10,che))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:re(()=>[Y("div",{ref_key:"listboxRef",ref:f,class:V([y(s).b(),Q.$attrs.class]),style:Ye(y(C)),role:"combobox","aria-haspopup":"listbox","aria-expanded":y(S),"aria-owns":y(w)},[q(y(Rr),St({ref_key:"inputRef",ref:l},y(a),{clearable:Q.clearable,disabled:y(o),name:Q.name,"model-value":Q.modelValue,onInput:D,onChange:B,onFocus:N,onBlur:O,onClear:$,onKeydown:[ee[0]||(ee[0]=Ft(tt(j=>J(p.value-1),["prevent"]),["up"])),ee[1]||(ee[1]=Ft(tt(j=>J(p.value+1),["prevent"]),["down"])),Ft(I,["enter"]),Ft(G,["tab"]),Ft(z,["esc"])],onMousedown:L}),Jo({_:2},[Q.$slots.prepend?{name:"prepend",fn:re(()=>[_e(Q.$slots,"prepend")])}:void 0,Q.$slots.append?{name:"append",fn:re(()=>[_e(Q.$slots,"append")])}:void 0,Q.$slots.prefix?{name:"prefix",fn:re(()=>[_e(Q.$slots,"prefix")])}:void 0,Q.$slots.suffix?{name:"suffix",fn:re(()=>[_e(Q.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,lhe)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var hhe=Pe(dhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const vhe=_t(hhe),phe=Le({size:{type:[Number,String],values:Mo,default:"",validator:e=>at(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:fn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:ue(String),default:"cover"}}),ghe={error:e=>e instanceof Event},mhe=["src","alt","srcset"],yhe=ne({name:"ElAvatar"}),bhe=ne({...yhe,props:phe,emits:ghe,setup(e,{emit:t}){const n=e,r=Me("avatar"),a=H(!1),i=P(()=>{const{size:u,icon:c,shape:f}=n,d=[r.b()];return lt(u)&&d.push(r.m(u)),c&&d.push(r.m("icon")),f&&d.push(r.m(f)),d}),o=P(()=>{const{size:u}=n;return at(u)?r.cssVarBlock({size:On(u)||""}):void 0}),s=P(()=>({objectFit:n.fit}));xe(()=>n.src,()=>a.value=!1);function l(u){a.value=!0,t("error",u)}return(u,c)=>(R(),K("span",{class:V(y(i)),style:Ye(y(o))},[(u.src||u.srcSet)&&!a.value?(R(),K("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:Ye(y(s)),onError:l},null,44,mhe)):u.icon?(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(u.icon)))]),_:1})):_e(u.$slots,"default",{key:2})],6))}});var _he=Pe(bhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const whe=_t(_he),She={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},Che={click:e=>e instanceof MouseEvent},xhe=(e,t,n)=>{const r=un(),a=un(),i=H(!1),o=()=>{r.value&&(i.value=r.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=r.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=ZV(o,300,!0);return bn(a,"scroll",l),yt(()=>{var u;a.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||jn(n,`target does not exist: ${e.target}`),a.value=r.value),o()}),{visible:i,handleClick:s}},Yz="ElBacktop",The=ne({name:Yz}),Mhe=ne({...The,props:She,emits:Che,setup(e,{emit:t}){const n=e,r=Me("backtop"),{handleClick:a,visible:i}=xhe(n,t,Yz),o=P(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(R(),ce(Bn,{name:`${y(r).namespace.value}-fade-in`},{default:re(()=>[y(i)?(R(),K("div",{key:0,style:Ye(y(o)),class:V(y(r).b()),onClick:l[0]||(l[0]=tt((...u)=>y(a)&&y(a)(...u),["stop"]))},[_e(s.$slots,"default",{},()=>[q(y(Ke),{class:V(y(r).e("icon"))},{default:re(()=>[q(y(Oae))]),_:1},8,["class"])])],6)):se("v-if",!0)]),_:3},8,["name"]))}});var khe=Pe(Mhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const Ahe=_t(khe),Ehe=Le({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Ihe=["textContent"],Dhe=ne({name:"ElBadge"}),Phe=ne({...Dhe,props:Ehe,setup(e,{expose:t}){const n=e,r=Me("badge"),a=P(()=>n.isDot?"":at(n.value)&&at(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:a}),(i,o)=>(R(),K("div",{class:V(y(r).b())},[_e(i.$slots,"default"),q(Bn,{name:`${y(r).namespace.value}-zoom-in-center`,persisted:""},{default:re(()=>[dt(Y("sup",{class:V([y(r).e("content"),y(r).em("content",i.type),y(r).is("fixed",!!i.$slots.default),y(r).is("dot",i.isDot)]),textContent:De(y(a))},null,10,Ihe),[[Kt,!i.hidden&&(y(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var Lhe=Pe(Phe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const jz=_t(Lhe),qz=Symbol("breadcrumbKey"),Rhe=Le({separator:{type:String,default:"/"},separatorIcon:{type:fn}}),Ohe=ne({name:"ElBreadcrumb"}),$he=ne({...Ohe,props:Rhe,setup(e){const t=e,n=Me("breadcrumb"),r=H();return Et(qz,t),yt(()=>{const a=r.value.querySelectorAll(`.${n.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>(R(),K("div",{ref_key:"breadcrumb",ref:r,class:V(y(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[_e(a.$slots,"default")],2))}});var Nhe=Pe($he,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const Bhe=Le({to:{type:ue([String,Object]),default:""},replace:{type:Boolean,default:!1}}),Vhe=ne({name:"ElBreadcrumbItem"}),zhe=ne({...Vhe,props:Bhe,setup(e){const t=e,n=gt(),r=Ge(qz,void 0),a=Me("breadcrumb"),i=n.appContext.config.globalProperties.$router,o=H(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var c,f;return R(),K("span",{class:V(y(a).e("item"))},[Y("span",{ref_key:"link",ref:o,class:V([y(a).e("inner"),y(a).is("link",!!l.to)]),role:"link",onClick:s},[_e(l.$slots,"default")],2),(c=y(r))!=null&&c.separatorIcon?(R(),ce(y(Ke),{key:0,class:V(y(a).e("separator"))},{default:re(()=>[(R(),ce(Ct(y(r).separatorIcon)))]),_:1},8,["class"])):(R(),K("span",{key:1,class:V(y(a).e("separator")),role:"presentation"},De((f=y(r))==null?void 0:f.separator),3))],2)}}});var Xz=Pe(zhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const Fhe=_t(Nhe,{BreadcrumbItem:Xz}),Hhe=Dn(Xz),Zz=Symbol("buttonGroupContextKey"),Ghe=(e,t)=>{bo({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},P(()=>e.type==="text"));const n=Ge(Zz,void 0),r=r1("button"),{form:a}=aa(),i=qn(P(()=>n==null?void 0:n.size)),o=wa(),s=H(),l=Mr(),u=P(()=>e.type||(n==null?void 0:n.type)||""),c=P(()=>{var v,p,g;return(g=(p=e.autoInsertSpace)!=null?p:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?g:!1}),f=P(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),d=P(()=>{var v;const p=(v=l.default)==null?void 0:v.call(l);if(c.value&&(p==null?void 0:p.length)===1){const g=p[0];if((g==null?void 0:g.type)===Td){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)}}},VC=["default","primary","success","warning","info","danger","text",""],Whe=["button","submit","reset"],zC=Le({size:Sr,disabled:Boolean,type:{type:String,values:VC,default:""},icon:{type:fn},nativeType:{type:String,values:Whe,default:"button"},loading:Boolean,loadingIcon:{type:fn,default:()=>Al},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ue([String,Object]),default:"button"}}),Khe={click:e=>e instanceof MouseEvent};function br(e,t){Uhe(e)&&(e="100%");var n=Yhe(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 Ug(e){return Math.min(1,Math.max(0,e))}function Uhe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Yhe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Jz(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Yg(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Pu(e){return e.length===1?"0"+e:String(e)}function jhe(e,t,n){return{r:br(e,255)*255,g:br(t,255)*255,b:br(n,255)*255}}function bP(e,t,n){e=br(e,255),t=br(t,255),n=br(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,o=0,s=(r+a)/2;if(r===a)o=0,i=0;else{var l=r-a;switch(o=s>.5?l/(2-r-a):l/(r+a),r){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,l:s}}function C_(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 qhe(e,t,n){var r,a,i;if(e=br(e,360),t=br(t,100),n=br(n,100),t===0)a=n,i=n,r=n;else{var o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=C_(s,o,e+1/3),a=C_(s,o,e),i=C_(s,o,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function _P(e,t,n){e=br(e,255),t=br(t,255),n=br(n,255);var r=Math.max(e,t,n),a=Math.min(e,t,n),i=0,o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case e:i=(t-n)/s+(t<n?6:0);break;case t:i=(n-e)/s+2;break;case n:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:o}}function Xhe(e,t,n){e=br(e,360)*6,t=br(t,100),n=br(n,100);var r=Math.floor(e),a=e-r,i=n*(1-t),o=n*(1-a*t),s=n*(1-(1-a)*t),l=r%6,u=[n,o,i,i,s,n][l],c=[s,n,n,o,i,i][l],f=[i,i,s,n,n,o][l];return{r:u*255,g:c*255,b:f*255}}function wP(e,t,n,r){var a=[Pu(Math.round(e).toString(16)),Pu(Math.round(t).toString(16)),Pu(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=[Pu(Math.round(e).toString(16)),Pu(Math.round(t).toString(16)),Pu(Math.round(n).toString(16)),Pu(Jhe(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 Jhe(e){return Math.round(parseFloat(e)*255).toString(16)}function SP(e){return Ca(e)/255}function Ca(e){return parseInt(e,16)}function Qhe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var FC={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 eve(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=rve(e)),typeof e=="object"&&(Do(e.r)&&Do(e.g)&&Do(e.b)?(t=jhe(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Do(e.h)&&Do(e.s)&&Do(e.v)?(r=Yg(e.s),a=Yg(e.v),t=Xhe(e.h,r,a),o=!0,s="hsv"):Do(e.h)&&Do(e.s)&&Do(e.l)&&(r=Yg(e.s),i=Yg(e.l),t=qhe(e.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Jz(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 tve="[-\\+]?\\d+%?",nve="[-\\+]?\\d*\\.\\d+%?",Gs="(?:".concat(nve,")|(?:").concat(tve,")"),x_="[\\s|\\(]+(".concat(Gs,")[,|\\s]+(").concat(Gs,")[,|\\s]+(").concat(Gs,")\\s*\\)?"),T_="[\\s|\\(]+(".concat(Gs,")[,|\\s]+(").concat(Gs,")[,|\\s]+(").concat(Gs,")[,|\\s]+(").concat(Gs,")\\s*\\)?"),_i={CSS_UNIT:new RegExp(Gs),rgb:new RegExp("rgb"+x_),rgba:new RegExp("rgba"+T_),hsl:new RegExp("hsl"+x_),hsla:new RegExp("hsla"+T_),hsv:new RegExp("hsv"+x_),hsva:new RegExp("hsva"+T_),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 rve(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(FC[e])e=FC[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=_i.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=_i.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=_i.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=_i.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=_i.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=_i.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=_i.hex8.exec(e),n?{r:Ca(n[1]),g:Ca(n[2]),b:Ca(n[3]),a:SP(n[4]),format:t?"name":"hex8"}:(n=_i.hex6.exec(e),n?{r:Ca(n[1]),g:Ca(n[2]),b:Ca(n[3]),format:t?"name":"hex"}:(n=_i.hex4.exec(e),n?{r:Ca(n[1]+n[1]),g:Ca(n[2]+n[2]),b:Ca(n[3]+n[3]),a:SP(n[4]+n[4]),format:t?"name":"hex8"}:(n=_i.hex3.exec(e),n?{r:Ca(n[1]+n[1]),g:Ca(n[2]+n[2]),b:Ca(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Do(e){return!!_i.CSS_UNIT.exec(String(e))}var Qz=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=Qhe(t)),this.originalInput=t;var a=eve(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=Jz(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=_P(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=_P(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=bP(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=bP(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),wP(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(br(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(br(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+wP(this.r,this.g,this.b,!1),n=0,r=Object.entries(FC);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=Ug(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=Ug(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=Ug(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=Ug(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 Ss(e,t=20){return e.mix("#141414",t).toString()}function ave(e){const t=wa(),n=Me("button");return P(()=>{let r={};const a=e.color;if(a){const i=new Qz(a),o=e.dark?i.tint(20).toString():Ss(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Ss(i,90):i.tint(90).toString(),"text-color":a,"border-color":e.dark?Ss(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?Ss(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Ss(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Ss(i,80):i.tint(80).toString());else{const s=e.dark?Ss(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?Ss(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 ive=ne({name:"ElButton"}),ove=ne({...ive,props:zC,emits:Khe,setup(e,{expose:t,emit:n}){const r=e,a=ave(r),i=Me("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=Ghe(r,n);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(h,v)=>(R(),ce(Ct(h.tag),St({ref_key:"_ref",ref:o},y(c),{class:[y(i).b(),y(i).m(y(l)),y(i).m(y(s)),y(i).is("disabled",y(u)),y(i).is("loading",h.loading),y(i).is("plain",h.plain),y(i).is("round",h.round),y(i).is("circle",h.circle),y(i).is("text",h.text),y(i).is("link",h.link),y(i).is("has-bg",h.bg)],style:y(a),onClick:y(d)}),{default:re(()=>[h.loading?(R(),K(je,{key:0},[h.$slots.loading?_e(h.$slots,"loading",{key:0}):(R(),ce(y(Ke),{key:1,class:V(y(i).is("loading"))},{default:re(()=>[(R(),ce(Ct(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(R(),ce(y(Ke),{key:1},{default:re(()=>[h.icon?(R(),ce(Ct(h.icon),{key:0})):_e(h.$slots,"icon",{key:1})]),_:3})):se("v-if",!0),h.$slots.default?(R(),K("span",{key:2,class:V({[y(i).em("text","expand")]:y(f)})},[_e(h.$slots,"default")],2)):se("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var sve=Pe(ove,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const lve={size:zC.size,type:zC.type},uve=ne({name:"ElButtonGroup"}),cve=ne({...uve,props:lve,setup(e){const t=e;Et(Zz,jt({size:kn(t,"size"),type:kn(t,"type")}));const n=Me("button");return(r,a)=>(R(),K("div",{class:V(`${y(n).b("group")}`)},[_e(r.$slots,"default")],2))}});var eF=Pe(cve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const _r=_t(sve,{ButtonGroup:eF}),tF=Dn(eF);var vs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ko(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",v="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(L){var B=["th","st","nd","rd"],N=L%100;return"["+L+(B[(N-20)%10]||B[N]||B[0])+"]"}},_=function(L,B,N){var O=String(L);return!O||O.length>=B?L:""+Array(B+1-O.length).join(N)+L},w={s:_,z:function(L){var B=-L.utcOffset(),N=Math.abs(B),O=Math.floor(N/60),$=N%60;return(B<=0?"+":"-")+_(O,2,"0")+":"+_($,2,"0")},m:function L(B,N){if(B.date()<N.date())return-L(N,B);var O=12*(N.year()-B.year())+(N.month()-B.month()),$=B.clone().add(O,f),I=N-$<0,z=B.clone().add(O+(I?-1:1),f);return+(-(O+(N-$)/(I?$-z:z-$))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:f,y:h,w:c,d:u,D:v,h:l,m:s,s:o,ms:i,Q:d}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},C="en",S={};S[C]=b;var x="$isDayjsObject",T=function(L){return L instanceof E||!(!L||!L[x])},M=function L(B,N,O){var $;if(!B)return C;if(typeof B=="string"){var I=B.toLowerCase();S[I]&&($=I),N&&(S[I]=N,$=I);var z=B.split("-");if(!$&&z.length>1)return L(z[0])}else{var G=B.name;S[G]=B,$=G}return!O&&$&&(C=$),$||!O&&C},A=function(L,B){if(T(L))return L.clone();var N=typeof B=="object"?B:{};return N.date=L,N.args=arguments,new E(N)},k=w;k.l=M,k.i=T,k.w=function(L,B){return A(L,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var E=function(){function L(N){this.$L=M(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[x]=!0}var B=L.prototype;return B.parse=function(N){this.$d=function(O){var $=O.date,I=O.utc;if($===null)return new Date(NaN);if(k.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var z=$.match(g);if(z){var G=z[2]-1||0,U=(z[7]||"0").substring(0,3);return I?new Date(Date.UTC(z[1],G,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)):new Date(z[1],G,z[3]||1,z[4]||0,z[5]||0,z[6]||0,U)}}return new Date($)}(N),this.init()},B.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},B.$utils=function(){return k},B.isValid=function(){return this.$d.toString()!==p},B.isSame=function(N,O){var $=A(N);return this.startOf(O)<=$&&$<=this.endOf(O)},B.isAfter=function(N,O){return A(N)<this.startOf(O)},B.isBefore=function(N,O){return this.endOf(O)<A(N)},B.$g=function(N,O,$){return k.u(N)?this[O]:this.set($,N)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(N,O){var $=this,I=!!k.u(O)||O,z=k.p(N),G=function(de,ve){var ie=k.w($.$u?Date.UTC($.$y,ve,de):new Date($.$y,ve,de),$);return I?ie:ie.endOf(u)},U=function(de,ve){return k.w($.toDate()[de].apply($.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(ve)),$)},Z=this.$W,ae=this.$M,J=this.$D,Q="set"+(this.$u?"UTC":"");switch(z){case h:return I?G(1,0):G(31,11);case f:return I?G(1,ae):G(0,ae+1);case c:var ee=this.$locale().weekStart||0,j=(Z<ee?Z+7:Z)-ee;return G(I?J-j:J+(6-j),ae);case u:case v:return U(Q+"Hours",0);case l:return U(Q+"Minutes",1);case s:return U(Q+"Seconds",2);case o:return U(Q+"Milliseconds",3);default:return this.clone()}},B.endOf=function(N){return this.startOf(N,!1)},B.$set=function(N,O){var $,I=k.p(N),z="set"+(this.$u?"UTC":""),G=($={},$[u]=z+"Date",$[v]=z+"Date",$[f]=z+"Month",$[h]=z+"FullYear",$[l]=z+"Hours",$[s]=z+"Minutes",$[o]=z+"Seconds",$[i]=z+"Milliseconds",$)[I],U=I===u?this.$D+(O-this.$W):O;if(I===f||I===h){var Z=this.clone().set(v,1);Z.$d[G](U),Z.init(),this.$d=Z.set(v,Math.min(this.$D,Z.daysInMonth())).$d}else G&&this.$d[G](U);return this.init(),this},B.set=function(N,O){return this.clone().$set(N,O)},B.get=function(N){return this[k.p(N)]()},B.add=function(N,O){var $,I=this;N=Number(N);var z=k.p(O),G=function(ae){var J=A(I);return k.w(J.date(J.date()+Math.round(ae*N)),I)};if(z===f)return this.set(f,this.$M+N);if(z===h)return this.set(h,this.$y+N);if(z===u)return G(1);if(z===c)return G(7);var U=($={},$[s]=r,$[l]=a,$[o]=n,$)[z]||1,Z=this.$d.getTime()+N*U;return k.w(Z,this)},B.subtract=function(N,O){return this.add(-1*N,O)},B.format=function(N){var O=this,$=this.$locale();if(!this.isValid())return $.invalidDate||p;var I=N||"YYYY-MM-DDTHH:mm:ssZ",z=k.z(this),G=this.$H,U=this.$m,Z=this.$M,ae=$.weekdays,J=$.months,Q=$.meridiem,ee=function(ve,ie,W,X){return ve&&(ve[ie]||ve(O,I))||W[ie].slice(0,X)},j=function(ve){return k.s(G%12||12,ve,"0")},de=Q||function(ve,ie,W){var X=ve<12?"AM":"PM";return W?X.toLowerCase():X};return I.replace(m,function(ve,ie){return ie||function(W){switch(W){case"YY":return String(O.$y).slice(-2);case"YYYY":return k.s(O.$y,4,"0");case"M":return Z+1;case"MM":return k.s(Z+1,2,"0");case"MMM":return ee($.monthsShort,Z,J,3);case"MMMM":return ee(J,Z);case"D":return O.$D;case"DD":return k.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return ee($.weekdaysMin,O.$W,ae,2);case"ddd":return ee($.weekdaysShort,O.$W,ae,3);case"dddd":return ae[O.$W];case"H":return String(G);case"HH":return k.s(G,2,"0");case"h":return j(1);case"hh":return j(2);case"a":return de(G,U,!0);case"A":return de(G,U,!1);case"m":return String(U);case"mm":return k.s(U,2,"0");case"s":return String(O.$s);case"ss":return k.s(O.$s,2,"0");case"SSS":return k.s(O.$ms,3,"0");case"Z":return z}return null}(ve)||z.replace(":","")})},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(N,O,$){var I,z=this,G=k.p(O),U=A(N),Z=(U.utcOffset()-this.utcOffset())*r,ae=this-U,J=function(){return k.m(z,U)};switch(G){case h:I=J()/12;break;case f:I=J();break;case d:I=J()/3;break;case c:I=(ae-Z)/6048e5;break;case u:I=(ae-Z)/864e5;break;case l:I=ae/a;break;case s:I=ae/r;break;case o:I=ae/n;break;default:I=ae}return $?I:k.a(I)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return S[this.$L]},B.locale=function(N,O){if(!N)return this.$L;var $=this.clone(),I=M(N,O,!0);return I&&($.$L=I),$},B.clone=function(){return k.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},L}(),D=E.prototype;return A.prototype=D,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",v]].forEach(function(L){D[L[1]]=function(B){return this.$g(B,L[0],L[1])}}),A.extend=function(L,B){return L.$i||(L(B,E,A),L.$i=!0),A},A.locale=M,A.isDayjs=T,A.unix=function(L){return A(1e3*L)},A.en=S[C],A.Ls=S,A.p={},A})})(nF);var fve=nF.exports;const mt=ko(fve);var rF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},l=function(p){return(p=+p)+(p>68?1900:2e3)},u=function(p){return function(g){this[p]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var m=g.match(/([+-]|\d\d)/g),b=60*m[1]+(+m[2]||0);return b===0?0:m[0]==="+"?-b:b}(p)}],f=function(p){var g=s[p];return g&&(g.indexOf?g:g.s.concat(g.f))},d=function(p,g){var m,b=s.meridiem;if(b){for(var _=1;_<=24;_+=1)if(p.indexOf(b(_,0,g))>-1){m=_>12;break}}else m=p===(g?"pm":"PM");return m},h={A:[o,function(p){this.afternoon=d(p,!1)}],a:[o,function(p){this.afternoon=d(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[a,u("day")],Do:[o,function(p){var g=s.ordinal,m=p.match(/\d+/);if(this.day=m[0],g)for(var b=1;b<=31;b+=1)g(b).replace(/\[|\]/g,"")===p&&(this.day=b)}],M:[i,u("month")],MM:[a,u("month")],MMM:[o,function(p){var g=f("months"),m=(f("monthsShort")||g.map(function(b){return b.slice(0,3)})).indexOf(p)+1;if(m<1)throw new Error;this.month=m%12||m}],MMMM:[o,function(p){var g=f("months").indexOf(p)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(p){this.year=l(p)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function v(p){var g,m;g=p,m=s&&s.formats;for(var b=(p=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,A,k){var E=k&&k.toUpperCase();return A||m[k]||n[k]||m[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(D,L,B){return L||B.slice(1)})})).match(r),_=b.length,w=0;w<_;w+=1){var C=b[w],S=h[C],x=S&&S[0],T=S&&S[1];b[w]=T?{regex:x,parser:T}:C.replace(/^\[|\]$/g,"")}return function(M){for(var A={},k=0,E=0;k<_;k+=1){var D=b[k];if(typeof D=="string")E+=D.length;else{var L=D.regex,B=D.parser,N=M.slice(E),O=L.exec(N)[0];B.call(A,O),M=M.replace(O,"")}}return function($){var I=$.afternoon;if(I!==void 0){var z=$.hours;I?z<12&&($.hours+=12):z===12&&($.hours=0),delete $.afternoon}}(A),A}}return function(p,g,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(l=p.parseTwoDigitYear);var b=g.prototype,_=b.parse;b.parse=function(w){var C=w.date,S=w.utc,x=w.args;this.$u=S;var T=x[1];if(typeof T=="string"){var M=x[2]===!0,A=x[3]===!0,k=M||A,E=x[2];A&&(E=x[2]),s=this.$locale(),!M&&E&&(s=m.Ls[E]),this.$d=function(N,O,$){try{if(["x","X"].indexOf(O)>-1)return new Date((O==="X"?1e3:1)*N);var I=v(O)(N),z=I.year,G=I.month,U=I.day,Z=I.hours,ae=I.minutes,J=I.seconds,Q=I.milliseconds,ee=I.zone,j=new Date,de=U||(z||G?1:j.getDate()),ve=z||j.getFullYear(),ie=0;z&&!G||(ie=G>0?G-1:j.getMonth());var W=Z||0,X=ae||0,oe=J||0,pe=Q||0;return ee?new Date(Date.UTC(ve,ie,de,W,X,oe,pe+60*ee.offset*1e3)):$?new Date(Date.UTC(ve,ie,de,W,X,oe,pe)):new Date(ve,ie,de,W,X,oe,pe)}catch{return new Date("")}}(C,T,S),this.init(),E&&E!==!0&&(this.$L=this.locale(E).$L),k&&C!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var D=T.length,L=1;L<=D;L+=1){x[1]=T[L-1];var B=m.apply(this,x);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}L===D&&(this.$d=new Date(""))}else _.call(this,w)}}})})(rF);var dve=rF.exports;const BM=ko(dve),CP=["hours","minutes","seconds"],HC="HH:mm:ss",lf="YYYY-MM-DD",hve={date:lf,dates:lf,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${lf} ${HC}`,monthrange:"YYYY-MM",daterange:lf,datetimerange:`${lf} ${HC}`},M_=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],tl=e=>Array.from(Array.from({length:e}).keys()),aF=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),iF=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),xP=function(e,t){const n=ac(e),r=ac(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},TP=function(e,t){const n=He(e),r=He(t);return n&&r?e.length!==t.length?!1:e.every((a,i)=>xP(a,t[i])):!n&&!r?xP(e,t):!1},MP=function(e,t,n){const r=qa(t)||t==="x"?mt(e).locale(n):mt(e,t).locale(n);return r.isValid()?r:void 0},kP=function(e,t,n){return qa(t)?e:t==="x"?+e:mt(e).locale(n).format(t)},k_=(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},oF=Le({disabledHours:{type:ue(Function)},disabledMinutes:{type:ue(Function)},disabledSeconds:{type:ue(Function)}}),sF=Le({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),VM=Le({id:{type:ue([Array,String])},name:{type:ue([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:ue([String,Object]),default:kl},editable:{type:Boolean,default:!0},prefixIcon:{type:ue([String,Object]),default:""},size:Sr,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:ue(Object),default:()=>({})},modelValue:{type:ue([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:ue([Date,Array])},defaultTime:{type:ue([Date,Array])},isRange:{type:Boolean,default:!1},...oF,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:ue([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),vve=["id","name","placeholder","value","disabled","readonly"],pve=["id","name","placeholder","value","disabled","readonly"],gve=ne({name:"Picker"}),mve=ne({...gve,props:VM,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const r=e,a=yc(),{lang:i}=Ht(),o=Me("date"),s=Me("input"),l=Me("range"),{form:u,formItem:c}=aa(),f=Ge("ElPopperOptions",{}),d=H(),h=H(),v=H(!1),p=H(!1),g=H(null);let m=!1,b=!1;const _=P(()=>[o.b("editor"),o.bm("editor",r.type),s.e("wrapper"),o.is("disabled",U.value),o.is("active",v.value),l.b("editor"),me?l.bm("editor",me.value):"",a.class]),w=P(()=>[s.e("icon"),l.e("close-icon"),de.value?"":l.e("close-icon--hidden")]);xe(v,te=>{te?Ue(()=>{te&&(g.value=r.modelValue)}):(we.value=null,Ue(()=>{C(r.modelValue)}))});const C=(te,Ve)=>{(Ve||!TP(te,g.value))&&(n("change",te),r.validateEvent&&(c==null||c.validate("change").catch(st=>void 0)))},S=te=>{if(!TP(r.modelValue,te)){let Ve;He(te)?Ve=te.map(st=>kP(st,r.valueFormat,i.value)):te&&(Ve=kP(te,r.valueFormat,i.value)),n("update:modelValue",te&&Ve,i.value)}},x=te=>{n("keydown",te)},T=P(()=>{if(h.value){const te=Se.value?h.value:h.value.$el;return Array.from(te.querySelectorAll("input"))}return[]}),M=(te,Ve,st)=>{const It=T.value;It.length&&(!st||st==="min"?(It[0].setSelectionRange(te,Ve),It[0].focus()):st==="max"&&(It[1].setSelectionRange(te,Ve),It[1].focus()))},A=()=>{$(!0,!0),Ue(()=>{b=!1})},k=(te="",Ve=!1)=>{Ve||(b=!0),v.value=Ve;let st;He(te)?st=te.map(It=>It.toDate()):st=te&&te.toDate(),we.value=null,S(st)},E=()=>{p.value=!0},D=()=>{n("visible-change",!0)},L=te=>{(te==null?void 0:te.key)===Xe.esc&&$(!0,!0)},B=()=>{p.value=!1,v.value=!1,b=!1,n("visible-change",!1)},N=()=>{v.value=!0},O=()=>{v.value=!1},$=(te=!0,Ve=!1)=>{b=Ve;const[st,It]=y(T);let zn=st;!te&&Se.value&&(zn=It),zn&&zn.focus()},I=te=>{r.readonly||U.value||v.value||b||(v.value=!0,n("focus",te))};let z;const G=te=>{const Ve=async()=>{setTimeout(()=>{var st;z===Ve&&(!((st=d.value)!=null&&st.isFocusInsideContent()&&!m)&&T.value.filter(It=>It.contains(document.activeElement)).length===0&&(Te(),v.value=!1,n("blur",te),r.validateEvent&&(c==null||c.validate("blur").catch(It=>void 0))),m=!1)},0)};z=Ve,Ve()},U=P(()=>r.disabled||(u==null?void 0:u.disabled)),Z=P(()=>{let te;if(ie.value?ye.value.getDefaultValue&&(te=ye.value.getDefaultValue()):He(r.modelValue)?te=r.modelValue.map(Ve=>MP(Ve,r.valueFormat,i.value)):te=MP(r.modelValue,r.valueFormat,i.value),ye.value.getRangeAvailableTime){const Ve=ye.value.getRangeAvailableTime(te);pa(Ve,te)||(te=Ve,S(He(te)?te.map(st=>st.toDate()):te.toDate()))}return He(te)&&te.some(Ve=>!Ve)&&(te=[]),te}),ae=P(()=>{if(!ye.value.panelReady)return"";const te=Be(Z.value);return He(we.value)?[we.value[0]||te&&te[0]||"",we.value[1]||te&&te[1]||""]:we.value!==null?we.value:!Q.value&&ie.value||!v.value&&ie.value?"":te?ee.value?te.join(", "):te:""}),J=P(()=>r.type.includes("time")),Q=P(()=>r.type.startsWith("time")),ee=P(()=>r.type==="dates"),j=P(()=>r.prefixIcon||(J.value?F5:bae)),de=H(!1),ve=te=>{r.readonly||U.value||de.value&&(te.stopPropagation(),A(),S(null),C(null,!0),de.value=!1,v.value=!1,ye.value.handleClear&&ye.value.handleClear())},ie=P(()=>{const{modelValue:te}=r;return!te||He(te)&&!te.filter(Boolean).length}),W=async te=>{var Ve;r.readonly||U.value||(((Ve=te.target)==null?void 0:Ve.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(v.value=!0)},X=()=>{r.readonly||U.value||!ie.value&&r.clearable&&(de.value=!0)},oe=()=>{de.value=!1},pe=te=>{var Ve;r.readonly||U.value||(((Ve=te.touches[0].target)==null?void 0:Ve.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(v.value=!0)},Se=P(()=>r.type.includes("range")),me=qn(),Ee=P(()=>{var te,Ve;return(Ve=(te=y(d))==null?void 0:te.popperRef)==null?void 0:Ve.contentRef}),Ce=P(()=>{var te;return y(Se)?y(h):(te=y(h))==null?void 0:te.$el});YT(Ce,te=>{const Ve=y(Ee),st=y(Ce);Ve&&(te.target===Ve||te.composedPath().includes(Ve))||te.target===st||te.composedPath().includes(st)||(v.value=!1)});const we=H(null),Te=()=>{if(we.value){const te=$e(ae.value);te&&We(te)&&(S(He(te)?te.map(Ve=>Ve.toDate()):te.toDate()),we.value=null)}we.value===""&&(S(null),C(null),we.value=null)},$e=te=>te?ye.value.parseUserInput(te):null,Be=te=>te?ye.value.formatToString(te):null,We=te=>ye.value.isValidValue(te),Ae=async te=>{if(r.readonly||U.value)return;const{code:Ve}=te;if(x(te),Ve===Xe.esc){v.value===!0&&(v.value=!1,te.preventDefault(),te.stopPropagation());return}if(Ve===Xe.down&&(ye.value.handleFocusPicker&&(te.preventDefault(),te.stopPropagation()),v.value===!1&&(v.value=!0,await Ue()),ye.value.handleFocusPicker)){ye.value.handleFocusPicker();return}if(Ve===Xe.tab){m=!0;return}if(Ve===Xe.enter||Ve===Xe.numpadEnter){(we.value===null||we.value===""||We($e(ae.value)))&&(Te(),v.value=!1),te.stopPropagation();return}if(we.value){te.stopPropagation();return}ye.value.handleKeydownInput&&ye.value.handleKeydownInput(te)},Fe=te=>{we.value=te,v.value||(v.value=!0)},rt=te=>{const Ve=te.target;we.value?we.value=[Ve.value,we.value[1]]:we.value=[Ve.value,null]},vt=te=>{const Ve=te.target;we.value?we.value=[we.value[0],Ve.value]:we.value=[null,Ve.value]},kt=()=>{var te;const Ve=we.value,st=$e(Ve&&Ve[0]),It=y(Z);if(st&&st.isValid()){we.value=[Be(st),((te=ae.value)==null?void 0:te[1])||null];const zn=[st,It&&(It[1]||null)];We(zn)&&(S(zn),we.value=null)}},Qe=()=>{var te;const Ve=y(we),st=$e(Ve&&Ve[1]),It=y(Z);if(st&&st.isValid()){we.value=[((te=y(ae))==null?void 0:te[0])||null,Be(st)];const zn=[It&&It[0],st];We(zn)&&(S(zn),we.value=null)}},ye=H({}),fe=te=>{ye.value[te[0]]=te[1],ye.value.panelReady=!0},le=te=>{n("calendar-change",te)},ke=(te,Ve,st)=>{n("panel-change",te,Ve,st)};return Et("EP_PICKER_BASE",{props:r}),t({focus:$,handleFocusInput:I,handleBlurInput:G,handleOpen:N,handleClose:O,onPick:k}),(te,Ve)=>(R(),ce(y(ea),St({ref_key:"refPopper",ref:d,visible:v.value,effect:"light",pure:"",trigger:"click"},te.$attrs,{role:"dialog",teleported:"",transition:`${y(o).namespace.value}-zoom-in-top`,"popper-class":[`${y(o).namespace.value}-picker__popper`,te.popperClass],"popper-options":y(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:E,onShow:D,onHide:B}),{default:re(()=>[y(Se)?(R(),K("div",{key:1,ref_key:"inputRef",ref:h,class:V(y(_)),style:Ye(te.$attrs.style),onClick:I,onMouseenter:X,onMouseleave:oe,onTouchstart:pe,onKeydown:Ae},[y(j)?(R(),ce(y(Ke),{key:0,class:V([y(s).e("icon"),y(l).e("icon")]),onMousedown:tt(W,["prevent"]),onTouchstart:pe},{default:re(()=>[(R(),ce(Ct(y(j))))]),_:1},8,["class","onMousedown"])):se("v-if",!0),Y("input",{id:te.id&&te.id[0],autocomplete:"off",name:te.name&&te.name[0],placeholder:te.startPlaceholder,value:y(ae)&&y(ae)[0],disabled:y(U),readonly:!te.editable||te.readonly,class:V(y(l).b("input")),onMousedown:W,onInput:rt,onChange:kt,onFocus:I,onBlur:G},null,42,vve),_e(te.$slots,"range-separator",{},()=>[Y("span",{class:V(y(l).b("separator"))},De(te.rangeSeparator),3)]),Y("input",{id:te.id&&te.id[1],autocomplete:"off",name:te.name&&te.name[1],placeholder:te.endPlaceholder,value:y(ae)&&y(ae)[1],disabled:y(U),readonly:!te.editable||te.readonly,class:V(y(l).b("input")),onMousedown:W,onFocus:I,onBlur:G,onInput:vt,onChange:Qe},null,42,pve),te.clearIcon?(R(),ce(y(Ke),{key:1,class:V(y(w)),onClick:ve},{default:re(()=>[(R(),ce(Ct(te.clearIcon)))]),_:1},8,["class"])):se("v-if",!0)],38)):(R(),ce(y(Rr),{key:0,id:te.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":y(ae),name:te.name,size:y(me),disabled:y(U),placeholder:te.placeholder,class:V([y(o).b("editor"),y(o).bm("editor",te.type),te.$attrs.class]),style:Ye(te.$attrs.style),readonly:!te.editable||te.readonly||y(ee)||te.type==="week",label:te.label,tabindex:te.tabindex,"validate-event":!1,onInput:Fe,onFocus:I,onBlur:G,onKeydown:Ae,onChange:Te,onMousedown:W,onMouseenter:X,onMouseleave:oe,onTouchstart:pe,onClick:Ve[0]||(Ve[0]=tt(()=>{},["stop"]))},{prefix:re(()=>[y(j)?(R(),ce(y(Ke),{key:0,class:V(y(s).e("icon")),onMousedown:tt(W,["prevent"]),onTouchstart:pe},{default:re(()=>[(R(),ce(Ct(y(j))))]),_:1},8,["class","onMousedown"])):se("v-if",!0)]),suffix:re(()=>[de.value&&te.clearIcon?(R(),ce(y(Ke),{key:0,class:V(`${y(s).e("icon")} clear-icon`),onClick:tt(ve,["stop"])},{default:re(()=>[(R(),ce(Ct(te.clearIcon)))]),_:1},8,["class","onClick"])):se("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:re(()=>[_e(te.$slots,"default",{visible:v.value,actualVisible:p.value,parsedValue:y(Z),format:te.format,unlinkPanels:te.unlinkPanels,type:te.type,defaultValue:te.defaultValue,onPick:k,onSelectRange:M,onSetPickerOption:fe,onCalendarChange:le,onPanelChange:ke,onKeydown:L,onMousedown:Ve[1]||(Ve[1]=tt(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var lF=Pe(mve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const yve=Le({...sF,datetimeRole:String,parsedValue:{type:ue(Object)}}),uF=({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}}},A_=e=>{const t=(r,a)=>r||a,n=r=>r!==!0;return e.map(t).filter(n)},cF=(e,t,n)=>({getHoursList:(o,s)=>k_(24,e&&(()=>e==null?void 0:e(o,s))),getMinutesList:(o,s,l)=>k_(60,t&&(()=>t==null?void 0:t(o,s,l))),getSecondsList:(o,s,l,u)=>k_(60,n&&(()=>n==null?void 0:n(o,s,l,u)))}),fF=(e,t,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=cF(e,t,n);return{getAvailableHours:(u,c)=>A_(r(u,c)),getAvailableMinutes:(u,c,f)=>A_(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>A_(i(u,c,f,d))}},dF=e=>{const t=H(e.parsedValue);return xe(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},Ls=new Map;let AP;Vt&&(document.addEventListener("mousedown",e=>AP=e),document.addEventListener("mouseup",e=>{for(const t of Ls.values())for(const{documentHandler:n}of t)n(e,AP)}));function EP(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:ai(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 pl={beforeMount(e,t){Ls.has(e)||Ls.set(e,[]),Ls.get(e).push({documentHandler:EP(e,t),bindingFn:t.value})},updated(e,t){Ls.has(e)||Ls.set(e,[]);const n=Ls.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:EP(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){Ls.delete(e)}},bve=100,_ve=600,v0={beforeMount(e,t){const n=t.value,{interval:r=bve,delay:a=_ve}=it(n)?{}:n;let i,o;const s=()=>it(n)?n():n.handler(),l=()=>{o&&(clearTimeout(o),o=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),o=setTimeout(()=>{i=setInterval(()=>{s()},r)},a))})}},GC="_trap-focus-children",Lu=[],IP=e=>{if(Lu.length===0)return;const t=Lu[Lu.length-1][GC];if(t.length>0&&e.code===Xe.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],a=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),a&&!n&&(e.preventDefault(),t[0].focus())}},wve={beforeMount(e){e[GC]=WI(e),Lu.push(e),Lu.length<=1&&document.addEventListener("keydown",IP)},updated(e){Ue(()=>{e[GC]=WI(e)})},unmounted(){Lu.shift(),Lu.length===0&&document.removeEventListener("keydown",IP)}};var DP=!1,xu,WC,KC,hy,vy,hF,py,UC,YC,jC,vF,qC,XC,pF,gF;function sa(){if(!DP){DP=!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(qC=/\b(iPhone|iP[ao]d)/.exec(e),XC=/\b(iP[ao]d)/.exec(e),jC=/Android/i.exec(e),pF=/FBAN\/\w+;/i.exec(e),gF=/Mobile/i.exec(e),vF=!!/Win64/.exec(e),t){xu=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,xu&&document&&document.documentMode&&(xu=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);hF=r?parseFloat(r[1])+4:xu,WC=t[2]?parseFloat(t[2]):NaN,KC=t[3]?parseFloat(t[3]):NaN,hy=t[4]?parseFloat(t[4]):NaN,hy?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),vy=t&&t[1]?parseFloat(t[1]):NaN):vy=NaN}else xu=WC=KC=vy=hy=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);py=a?parseFloat(a[1].replace("_",".")):!0}else py=!1;UC=!!n[2],YC=!!n[3]}else py=UC=YC=!1}}var ZC={ie:function(){return sa()||xu},ieCompatibilityMode:function(){return sa()||hF>xu},ie64:function(){return ZC.ie()&&vF},firefox:function(){return sa()||WC},opera:function(){return sa()||KC},webkit:function(){return sa()||hy},safari:function(){return ZC.webkit()},chrome:function(){return sa()||vy},windows:function(){return sa()||UC},osx:function(){return sa()||py},linux:function(){return sa()||YC},iphone:function(){return sa()||qC},mobile:function(){return sa()||qC||XC||jC||gF},nativeApp:function(){return sa()||pF},android:function(){return sa()||jC},ipad:function(){return sa()||XC}},Sve=ZC,jg=!!(typeof window<"u"&&window.document&&window.document.createElement),Cve={canUseDOM:jg,canUseWorkers:typeof Worker<"u",canUseEventListeners:jg&&!!(window.addEventListener||window.attachEvent),canUseViewport:jg&&!!window.screen,isInWorker:!jg},mF=Cve,yF;mF.canUseDOM&&(yF=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function xve(e,t){if(!mF.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&&yF&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var Tve=xve,PP=10,LP=40,RP=800;function bF(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*PP,a=n*PP,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=LP,a*=LP):(r*=RP,a*=RP)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}bF.getEventType=function(){return Sve.firefox()?"DOMMouseScroll":Tve("wheel")?"wheel":"mousewheel"};var Mve=bF;/**
  29. * Checks if an event is supported in the current execution environment.
  30. *
  31. * NOTE: This will not work correctly for non-generic events such as `change`,
  32. * `reset`, `load`, `error`, and `select`.
  33. *
  34. * Borrows from Modernizr.
  35. *
  36. * @param {string} eventNameSuffix Event name, e.g. "click".
  37. * @param {?boolean} capture Check if the capture phase is supported.
  38. * @return {boolean} True if the event is supported.
  39. * @internal
  40. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  41. */const kve=function(e,t){if(e&&e.addEventListener){const n=function(r){const a=Mve(r);t&&Reflect.apply(t,this,[r,a])};e.addEventListener("wheel",n,{passive:!0})}},Ave={beforeMount(e,t){kve(e,t.value)}},Eve=Le({role:{type:String,required:!0},spinnerDate:{type:ue(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ue(String),default:""},...oF}),Ive=["onClick"],Dve=["onMouseenter"],Pve=ne({__name:"basic-time-spinner",props:Eve,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=Me("time"),{getHoursList:a,getMinutesList:i,getSecondsList:o}=cF(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=H(),u=H(),c=H(),f=H(),d={hours:u,minutes:c,seconds:f},h=P(()=>n.showSeconds?CP:CP.slice(0,2)),v=P(()=>{const{spinnerDate:I}=n,z=I.hour(),G=I.minute(),U=I.second();return{hours:z,minutes:G,seconds:U}}),p=P(()=>{const{hours:I,minutes:z}=y(v);return{hours:a(n.role),minutes:i(I,n.role),seconds:o(I,z,n.role)}}),g=P(()=>{const{hours:I,minutes:z,seconds:G}=y(v);return{hours:M_(I,23),minutes:M_(z,59),seconds:M_(G,59)}}),m=Qr(I=>{s=!1,w(I)},200),b=I=>{if(!!!n.amPmMode)return"";const G=n.amPmMode==="A";let U=I<12?" am":" pm";return G&&(U=U.toUpperCase()),U},_=I=>{let z;switch(I){case"hours":z=[0,2];break;case"minutes":z=[3,5];break;case"seconds":z=[6,8];break}const[G,U]=z;t("select-range",G,U),l.value=I},w=I=>{x(I,y(v)[I])},C=()=>{w("hours"),w("minutes"),w("seconds")},S=I=>I.querySelector(`.${r.namespace.value}-scrollbar__wrap`),x=(I,z)=>{if(n.arrowControl)return;const G=y(d[I]);G&&G.$el&&(S(G.$el).scrollTop=Math.max(0,z*T(I)))},T=I=>{const z=y(d[I]),G=z==null?void 0:z.$el.querySelector("li");return G&&Number.parseFloat(Hs(G,"height"))||0},M=()=>{k(1)},A=()=>{k(-1)},k=I=>{l.value||_("hours");const z=l.value,G=y(v)[z],U=l.value==="hours"?24:60,Z=E(z,G,I,U);D(z,Z),x(z,Z),Ue(()=>_(z))},E=(I,z,G,U)=>{let Z=(z+G+U)%U;const ae=y(p)[I];for(;ae[Z]&&Z!==z;)Z=(Z+G+U)%U;return Z},D=(I,z)=>{if(y(p)[I][z])return;const{hours:Z,minutes:ae,seconds:J}=y(v);let Q;switch(I){case"hours":Q=n.spinnerDate.hour(z).minute(ae).second(J);break;case"minutes":Q=n.spinnerDate.hour(Z).minute(z).second(J);break;case"seconds":Q=n.spinnerDate.hour(Z).minute(ae).second(z);break}t("change",Q)},L=(I,{value:z,disabled:G})=>{G||(D(I,z),_(I),x(I,z))},B=I=>{s=!0,m(I);const z=Math.min(Math.round((S(y(d[I]).$el).scrollTop-(N(I)*.5-10)/T(I)+3)/T(I)),I==="hours"?23:59);D(I,z)},N=I=>y(d[I]).$el.offsetHeight,O=()=>{const I=z=>{const G=y(d[z]);G&&G.$el&&(S(G.$el).onscroll=()=>{B(z)})};I("hours"),I("minutes"),I("seconds")};yt(()=>{Ue(()=>{!n.arrowControl&&O(),C(),n.role==="start"&&_("hours")})});const $=(I,z)=>{d[z].value=I};return t("set-option",[`${n.role}_scrollDown`,k]),t("set-option",[`${n.role}_emitSelectRange`,_]),xe(()=>n.spinnerDate,()=>{s||C()}),(I,z)=>(R(),K("div",{class:V([y(r).b("spinner"),{"has-seconds":I.showSeconds}])},[I.arrowControl?se("v-if",!0):(R(!0),K(je,{key:0},Ot(y(h),G=>(R(),ce(y(hs),{key:G,ref_for:!0,ref:U=>$(U,G),class:V(y(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":y(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:U=>_(G),onMousemove:U=>w(G)},{default:re(()=>[(R(!0),K(je,null,Ot(y(p)[G],(U,Z)=>(R(),K("li",{key:Z,class:V([y(r).be("spinner","item"),y(r).is("active",Z===y(v)[G]),y(r).is("disabled",U)]),onClick:ae=>L(G,{value:Z,disabled:U})},[G==="hours"?(R(),K(je,{key:0},[Ut(De(("0"+(I.amPmMode?Z%12||12:Z)).slice(-2))+De(b(Z)),1)],64)):(R(),K(je,{key:1},[Ut(De(("0"+Z).slice(-2)),1)],64))],10,Ive))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),I.arrowControl?(R(!0),K(je,{key:1},Ot(y(h),G=>(R(),K("div",{key:G,class:V([y(r).be("spinner","wrapper"),y(r).is("arrow")]),onMouseenter:U=>_(G)},[dt((R(),ce(y(Ke),{class:V(["arrow-up",y(r).be("spinner","arrow")])},{default:re(()=>[q(y(Yb))]),_:1},8,["class"])),[[y(v0),A]]),dt((R(),ce(y(Ke),{class:V(["arrow-down",y(r).be("spinner","arrow")])},{default:re(()=>[q(y(Ml))]),_:1},8,["class"])),[[y(v0),M]]),Y("ul",{class:V(y(r).be("spinner","list"))},[(R(!0),K(je,null,Ot(y(g)[G],(U,Z)=>(R(),K("li",{key:Z,class:V([y(r).be("spinner","item"),y(r).is("active",U===y(v)[G]),y(r).is("disabled",y(p)[G][U])])},[typeof U=="number"?(R(),K(je,{key:0},[G==="hours"?(R(),K(je,{key:0},[Ut(De(("0"+(I.amPmMode?U%12||12:U)).slice(-2))+De(b(U)),1)],64)):(R(),K(je,{key:1},[Ut(De(("0"+U).slice(-2)),1)],64))],64)):se("v-if",!0)],2))),128))],2)],42,Dve))),128)):se("v-if",!0)],2))}});var JC=Pe(Pve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const Lve=ne({__name:"panel-time-pick",props:yve,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=Ge("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=fF(i,o,s),d=Me("time"),{t:h,lang:v}=Ht(),p=H([0,2]),g=dF(n),m=P(()=>er(n.actualVisible)?`${d.namespace.value}-zoom-in-top`:""),b=P(()=>n.format.includes("ss")),_=P(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=$=>{const I=mt($).locale(v.value),z=L(I);return I.isSame(z)},C=()=>{t("pick",g.value,!1)},S=($=!1,I=!1)=>{I||t("pick",n.parsedValue,$)},x=$=>{if(!n.visible)return;const I=L($).millisecond(0);t("pick",I,!0)},T=($,I)=>{t("select-range",$,I),p.value=[$,I]},M=$=>{const I=[0,3].concat(b.value?[6]:[]),z=["hours","minutes"].concat(b.value?["seconds"]:[]),U=(I.indexOf(p.value[0])+$+I.length)%I.length;k.start_emitSelectRange(z[U])},A=$=>{const I=$.code,{left:z,right:G,up:U,down:Z}=Xe;if([z,G].includes(I)){M(I===z?-1:1),$.preventDefault();return}if([U,Z].includes(I)){const ae=I===U?-1:1;k.start_scrollDown(ae),$.preventDefault();return}},{timePickerOptions:k,onSetOption:E,getAvailableTime:D}=uF({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),L=$=>D($,n.datetimeRole||"",!0),B=$=>$?mt($,n.format).locale(v.value):null,N=$=>$?$.format(n.format):null,O=()=>mt(l).locale(v.value);return t("set-picker-option",["isValidValue",w]),t("set-picker-option",["formatToString",N]),t("set-picker-option",["parseUserInput",B]),t("set-picker-option",["handleKeydownInput",A]),t("set-picker-option",["getRangeAvailableTime",L]),t("set-picker-option",["getDefaultValue",O]),($,I)=>(R(),ce(Bn,{name:y(m)},{default:re(()=>[$.actualVisible||$.visible?(R(),K("div",{key:0,class:V(y(d).b("panel"))},[Y("div",{class:V([y(d).be("panel","content"),{"has-seconds":y(b)}])},[q(JC,{ref:"spinner",role:$.datetimeRole||"start","arrow-control":y(a),"show-seconds":y(b),"am-pm-mode":y(_),"spinner-date":$.parsedValue,"disabled-hours":y(i),"disabled-minutes":y(o),"disabled-seconds":y(s),onChange:x,onSetOption:y(E),onSelectRange:T},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),Y("div",{class:V(y(d).be("panel","footer"))},[Y("button",{type:"button",class:V([y(d).be("panel","btn"),"cancel"]),onClick:C},De(y(h)("el.datepicker.cancel")),3),Y("button",{type:"button",class:V([y(d).be("panel","btn"),"confirm"]),onClick:I[0]||(I[0]=z=>S())},De(y(h)("el.datepicker.confirm")),3)],2)],2)):se("v-if",!0)]),_:1},8,["name"]))}});var p0=Pe(Lve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const Rve=Le({...sF,parsedValue:{type:ue(Array)}}),Ove=["disabled"],$ve=ne({__name:"panel-time-range",props:Rve,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(ie,W)=>{const X=[];for(let oe=ie;oe<=W;oe++)X.push(oe);return X},{t:a,lang:i}=Ht(),o=Me("time"),s=Me("picker"),l=Ge("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:d,defaultValue:h}=l.props,v=P(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),p=P(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),w.value?"has-seconds":""]),g=P(()=>n.parsedValue[0]),m=P(()=>n.parsedValue[1]),b=dF(n),_=()=>{t("pick",b.value,!1)},w=P(()=>n.format.includes("ss")),C=P(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=(ie=!1)=>{t("pick",[g.value,m.value],ie)},x=ie=>{A(ie.millisecond(0),m.value)},T=ie=>{A(g.value,ie.millisecond(0))},M=ie=>{const W=ie.map(oe=>mt(oe).locale(i.value)),X=G(W);return W[0].isSame(X[0])&&W[1].isSame(X[1])},A=(ie,W)=>{t("pick",[ie,W],!0)},k=P(()=>g.value>m.value),E=H([0,2]),D=(ie,W)=>{t("select-range",ie,W,"min"),E.value=[ie,W]},L=P(()=>w.value?11:8),B=(ie,W)=>{t("select-range",ie,W,"max");const X=y(L);E.value=[ie+X,W+X]},N=ie=>{const W=w.value?[0,3,6,11,14,17]:[0,3,8,11],X=["hours","minutes"].concat(w.value?["seconds"]:[]),pe=(W.indexOf(E.value[0])+ie+W.length)%W.length,Se=W.length/2;pe<Se?J.start_emitSelectRange(X[pe]):J.end_emitSelectRange(X[pe-Se])},O=ie=>{const W=ie.code,{left:X,right:oe,up:pe,down:Se}=Xe;if([X,oe].includes(W)){N(W===X?-1:1),ie.preventDefault();return}if([pe,Se].includes(W)){const me=W===pe?-1:1,Ee=E.value[0]<L.value?"start":"end";J[`${Ee}_scrollDown`](me),ie.preventDefault();return}},$=(ie,W)=>{const X=c?c(ie):[],oe=ie==="start",Se=(W||(oe?m.value:g.value)).hour(),me=oe?r(Se+1,23):r(0,Se-1);return y_(X,me)},I=(ie,W,X)=>{const oe=f?f(ie,W):[],pe=W==="start",Se=X||(pe?m.value:g.value),me=Se.hour();if(ie!==me)return oe;const Ee=Se.minute(),Ce=pe?r(Ee+1,59):r(0,Ee-1);return y_(oe,Ce)},z=(ie,W,X,oe)=>{const pe=d?d(ie,W,X):[],Se=X==="start",me=oe||(Se?m.value:g.value),Ee=me.hour(),Ce=me.minute();if(ie!==Ee||W!==Ce)return pe;const we=me.second(),Te=Se?r(we+1,59):r(0,we-1);return y_(pe,Te)},G=([ie,W])=>[Q(ie,"start",!0,W),Q(W,"end",!1,ie)],{getAvailableHours:U,getAvailableMinutes:Z,getAvailableSeconds:ae}=fF($,I,z),{timePickerOptions:J,getAvailableTime:Q,onSetOption:ee}=uF({getAvailableHours:U,getAvailableMinutes:Z,getAvailableSeconds:ae}),j=ie=>ie?He(ie)?ie.map(W=>mt(W,n.format).locale(i.value)):mt(ie,n.format).locale(i.value):null,de=ie=>ie?He(ie)?ie.map(W=>W.format(n.format)):ie.format(n.format):null,ve=()=>{if(He(h))return h.map(W=>mt(W).locale(i.value));const ie=mt(h).locale(i.value);return[ie,ie.add(60,"m")]};return t("set-picker-option",["formatToString",de]),t("set-picker-option",["parseUserInput",j]),t("set-picker-option",["isValidValue",M]),t("set-picker-option",["handleKeydownInput",O]),t("set-picker-option",["getDefaultValue",ve]),t("set-picker-option",["getRangeAvailableTime",G]),(ie,W)=>ie.actualVisible?(R(),K("div",{key:0,class:V([y(o).b("range-picker"),y(s).b("panel")])},[Y("div",{class:V(y(o).be("range-picker","content"))},[Y("div",{class:V(y(o).be("range-picker","cell"))},[Y("div",{class:V(y(o).be("range-picker","header"))},De(y(a)("el.datepicker.startTime")),3),Y("div",{class:V(y(v))},[q(JC,{ref:"minSpinner",role:"start","show-seconds":y(w),"am-pm-mode":y(C),"arrow-control":y(u),"spinner-date":y(g),"disabled-hours":$,"disabled-minutes":I,"disabled-seconds":z,onChange:x,onSetOption:y(ee),onSelectRange:D},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),Y("div",{class:V(y(o).be("range-picker","cell"))},[Y("div",{class:V(y(o).be("range-picker","header"))},De(y(a)("el.datepicker.endTime")),3),Y("div",{class:V(y(p))},[q(JC,{ref:"maxSpinner",role:"end","show-seconds":y(w),"am-pm-mode":y(C),"arrow-control":y(u),"spinner-date":y(m),"disabled-hours":$,"disabled-minutes":I,"disabled-seconds":z,onChange:T,onSetOption:y(ee),onSelectRange:B},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),Y("div",{class:V(y(o).be("panel","footer"))},[Y("button",{type:"button",class:V([y(o).be("panel","btn"),"cancel"]),onClick:W[0]||(W[0]=X=>_())},De(y(a)("el.datepicker.cancel")),3),Y("button",{type:"button",class:V([y(o).be("panel","btn"),"confirm"]),disabled:y(k),onClick:W[1]||(W[1]=X=>S())},De(y(a)("el.datepicker.confirm")),11,Ove)],2)],2)):se("v-if",!0)}});var Nve=Pe($ve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);mt.extend(BM);var Bve=ne({name:"ElTimePicker",install:null,props:{...VM,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=H(),[r,a]=e.isRange?["timerange",Nve]:["time",p0],i=o=>t.emit("update:modelValue",o);return Et("ElPopperOptions",e.popperOptions),t.expose({focus:o=>{var s;(s=n.value)==null||s.handleFocusInput(o)},blur:o=>{var s;(s=n.value)==null||s.handleBlurInput(o)},handleOpen:()=>{var o;(o=n.value)==null||o.handleOpen()},handleClose:()=>{var o;(o=n.value)==null||o.handleClose()}}),()=>{var o;const s=(o=e.format)!=null?o:HC;return q(lF,St(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>q(a,l,null)})}}});const gy=Bve;gy.install=e=>{e.component(gy.name,gy)};const Vve=gy,zve=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return tl(t).map((r,a)=>n-(t-a-1))},Fve=e=>{const t=e.daysInMonth();return tl(t).map((n,r)=>r+1)},Hve=e=>tl(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),Gve=Le({selectedDay:{type:ue(Object)},range:{type:ue(Array)},date:{type:ue(Object),required:!0},hideHeader:{type:Boolean}}),Wve={pick:e=>Mt(e)};var _F={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){return function(n,r,a){var i=r.prototype,o=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,d,h,v,p){var g=f.name?f:f.$locale(),m=o(g[d]),b=o(g[h]),_=m||b.map(function(C){return C.slice(0,v)});if(!p)return _;var w=g.weekStart;return _.map(function(C,S){return _[(S+(w||0))%7]})},l=function(){return a.Ls[a.locale()]},u=function(f,d){return f.formats[d]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,p,g){return p||g.slice(1)})}(f.formats[d.toUpperCase()])},c=function(){var f=this;return{months:function(d){return d?d.format("MMMM"):s(f,"months")},monthsShort:function(d){return d?d.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):s(f,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return u(f.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return c.bind(this)()},a.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(d){return u(f,d)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(l(),"months")},a.monthsShort=function(){return s(l(),"monthsShort","months",3)},a.weekdays=function(f){return s(l(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}})})(_F);var Kve=_F.exports;const wF=ko(Kve),Uve=(e,t)=>{mt.extend(wF);const n=mt.localeData().firstDayOfWeek(),{t:r,lang:a}=Ht(),i=mt().locale(a.value),o=P(()=>!!e.range&&!!e.range.length),s=P(()=>{let d=[];if(o.value){const[h,v]=e.range,p=tl(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=tl(g).map((b,_)=>({text:_+1,type:"next"}));d=p.concat(m)}else{const h=e.date.startOf("month").day(),v=zve(e.date,(h-n+7)%7).map(b=>({text:b,type:"prev"})),p=Fve(e.date).map(b=>({text:b,type:"current"}));d=[...v,...p];const g=7-(d.length%7||7),m=tl(g).map((b,_)=>({text:_+1,type:"next"}));d=d.concat(m)}return Hve(d)}),l=P(()=>{const d=n;return d===0?b_.map(h=>r(`el.datepicker.weeks.${h}`)):b_.slice(d).concat(b_.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()}}}},Yve={key:0},jve=["onClick"],qve=ne({name:"DateTable"}),Xve=ne({...qve,props:Gve,emits:Wve,setup(e,{expose:t,emit:n}){const r=e,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=Uve(r,n),f=Me("calendar-table"),d=Me("calendar-day"),h=({text:v,type:p})=>{const g=[p];if(p==="current"){const m=l(v,p);m.isSame(r.selectedDay,"day")&&g.push(d.is("selected")),m.isSame(i,"day")&&g.push(d.is("today"))}return g};return t({getFormattedDate:l}),(v,p)=>(R(),K("table",{class:V([y(f).b(),y(f).is("range",y(a))]),cellspacing:"0",cellpadding:"0"},[v.hideHeader?se("v-if",!0):(R(),K("thead",Yve,[(R(!0),K(je,null,Ot(y(s),g=>(R(),K("th",{key:g},De(g),1))),128))])),Y("tbody",null,[(R(!0),K(je,null,Ot(y(o),(g,m)=>(R(),K("tr",{key:m,class:V({[y(f).e("row")]:!0,[y(f).em("row","hide-border")]:m===0&&v.hideHeader})},[(R(!0),K(je,null,Ot(g,(b,_)=>(R(),K("td",{key:_,class:V(h(b)),onClick:w=>y(u)(b)},[Y("div",{class:V(y(d).b())},[_e(v.$slots,"date-cell",{data:y(c)(b)},()=>[Y("span",null,De(b.text),1)])],2)],10,jve))),128))],2))),128))])],2))}});var OP=Pe(Xve,[["__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]]},Jve=(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]]},Qve=(e,t,n)=>{const r=Mr(),{lang:a}=Ht(),i=H(),o=mt().locale(a.value),s=P({get(){return e.modelValue?u.value:i.value},set(m){if(!m)return;i.value=m;const b=m.toDate();t(qr,b),t(wt,b)}}),l=P(()=>{if(!e.range)return[];const m=e.range.map(w=>mt(w).locale(a.value)),[b,_]=m;return b.isAfter(_)?[]:b.isSame(_,"month")?v(b,_):b.add(1,"month").month()!==_.month()?[]:v(b,_)}),u=P(()=>e.modelValue?mt(e.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:o)),c=P(()=>u.value.subtract(1,"month").date(1)),f=P(()=>u.value.add(1,"month").date(1)),d=P(()=>u.value.subtract(1,"year").date(1)),h=P(()=>u.value.add(1,"year").date(1)),v=(m,b)=>{const _=m.startOf("week"),w=b.endOf("week"),C=_.get("month"),S=w.get("month");return C===S?[[_,w]]:(C+1)%12===S?Zve(_,w):C+2===S||(C+1)%11===S?Jve(_,w):[]},p=m=>{s.value=m},g=m=>{const _={"prev-month":c.value,"next-month":f.value,"prev-year":d.value,"next-year":h.value,today:o}[m];_.isSame(u.value,"day")||p(_)};return bo({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},P(()=>!!r.dateCell)),{calculateValidatedDateRange:v,date:u,realSelectedDay:s,pickDay:p,selectDate:g,validatedRange:l}},epe=e=>He(e)&&e.length===2&&e.every(t=>ac(t)),tpe=Le({modelValue:{type:Date},range:{type:ue(Array),validator:epe}}),npe={[wt]:e=>ac(e),[qr]:e=>ac(e)},rpe="ElCalendar",ape=ne({name:rpe}),ipe=ne({...ape,props:tpe,emits:npe,setup(e,{expose:t,emit:n}){const r=e,a=Me("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=Qve(r,n),{t:f}=Ht(),d=P(()=>{const h=`el.datepicker.month${o.value.format("M")}`;return`${o.value.year()} ${f("el.datepicker.year")} ${f(h)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(h,v)=>(R(),K("div",{class:V(y(a).b())},[Y("div",{class:V(y(a).e("header"))},[_e(h.$slots,"header",{date:y(d)},()=>[Y("div",{class:V(y(a).e("title"))},De(y(d)),3),y(c).length===0?(R(),K("div",{key:0,class:V(y(a).e("button-group"))},[q(y(tF),null,{default:re(()=>[q(y(_r),{size:"small",onClick:v[0]||(v[0]=p=>y(u)("prev-month"))},{default:re(()=>[Ut(De(y(f)("el.datepicker.prevMonth")),1)]),_:1}),q(y(_r),{size:"small",onClick:v[1]||(v[1]=p=>y(u)("today"))},{default:re(()=>[Ut(De(y(f)("el.datepicker.today")),1)]),_:1}),q(y(_r),{size:"small",onClick:v[2]||(v[2]=p=>y(u)("next-month"))},{default:re(()=>[Ut(De(y(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):se("v-if",!0)])],2),y(c).length===0?(R(),K("div",{key:0,class:V(y(a).e("body"))},[q(OP,{date:y(o),"selected-day":y(l),onPick:y(s)},Jo({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:re(p=>[h.$slots["date-cell"]?_e(h.$slots,"date-cell",ki(St({key:0},p))):_e(h.$slots,"dateCell",ki(St({key:1},p)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(R(),K("div",{key:1,class:V(y(a).e("body"))},[(R(!0),K(je,null,Ot(y(c),(p,g)=>(R(),ce(OP,{key:g,date:p[0],"selected-day":y(l),range:p,"hide-header":g!==0,onPick:y(s)},Jo({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:re(m=>[h.$slots["date-cell"]?_e(h.$slots,"date-cell",ki(St({key:0},m))):_e(h.$slots,"dateCell",ki(St({key:1},m)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var ope=Pe(ipe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const spe=_t(ope),lpe=Le({header:{type:String,default:""},bodyStyle:{type:ue([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),upe=ne({name:"ElCard"}),cpe=ne({...upe,props:lpe,setup(e){const t=Me("card");return(n,r)=>(R(),K("div",{class:V([y(t).b(),y(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(R(),K("div",{key:0,class:V(y(t).e("header"))},[_e(n.$slots,"header",{},()=>[Ut(De(n.header),1)])],2)):se("v-if",!0),Y("div",{class:V([y(t).e("body"),n.bodyClass]),style:Ye(n.bodyStyle)},[_e(n.$slots,"default")],6)],2))}});var fpe=Pe(cpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const dpe=_t(fpe),hpe=Le({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),vpe={change:(e,t)=>[e,t].every(at)},SF=Symbol("carouselContextKey"),$P=300,ppe=(e,t,n)=>{const{children:r,addChild:a,removeChild:i}=PM(gt(),"ElCarouselItem"),o=H(-1),s=H(null),l=H(!1),u=H(),c=H(0),f=P(()=>e.arrow!=="never"&&!y(v)),d=P(()=>r.value.some(I=>I.props.label.toString().length>0)),h=P(()=>e.type==="card"),v=P(()=>e.direction==="vertical"),p=P(()=>e.height!=="auto"?{height:e.height}:{height:`${c.value}px`,overflow:"hidden"}),g=Yu(I=>{C(I)},$P,{trailing:!0}),m=Yu(I=>{D(I)},$P);function b(){s.value&&(clearInterval(s.value),s.value=null)}function _(){e.interval<=0||!e.autoplay||s.value||(s.value=setInterval(()=>w(),e.interval))}const w=()=>{o.value<r.value.length-1?o.value=o.value+1:e.loop&&(o.value=0)};function C(I){if(lt(I)){const U=r.value.filter(Z=>Z.props.name===I);U.length>0&&(I=r.value.indexOf(U[0]))}if(I=Number(I),Number.isNaN(I)||I!==Math.floor(I))return;const z=r.value.length,G=o.value;I<0?o.value=e.loop?z-1:0:I>=z?o.value=e.loop?0:z-1:o.value=I,G===o.value&&S(G),N()}function S(I){r.value.forEach((z,G)=>{z.translateItem(G,o.value,I)})}function x(I,z){var G,U,Z,ae;const J=y(r),Q=J.length;if(Q===0||!I.states.inStage)return!1;const ee=z+1,j=z-1,de=Q-1,ve=J[de].states.active,ie=J[0].states.active,W=(U=(G=J[ee])==null?void 0:G.states)==null?void 0:U.active,X=(ae=(Z=J[j])==null?void 0:Z.states)==null?void 0:ae.active;return z===de&&ie||W?"left":z===0&&ve||X?"right":!1}function T(){l.value=!0,e.pauseOnHover&&b()}function M(){l.value=!1,_()}function A(I){y(v)||r.value.forEach((z,G)=>{I===x(z,G)&&(z.states.hover=!0)})}function k(){y(v)||r.value.forEach(I=>{I.states.hover=!1})}function E(I){o.value=I}function D(I){e.trigger==="hover"&&I!==o.value&&(o.value=I)}function L(){C(o.value-1)}function B(){C(o.value+1)}function N(){b(),_()}function O(I){e.height==="auto"&&(c.value=I)}xe(()=>o.value,(I,z)=>{S(z),z>-1&&t("change",I,z)}),xe(()=>e.autoplay,I=>{I?_():b()}),xe(()=>e.loop,()=>{C(o.value)}),xe(()=>e.interval,()=>{N()}),xe(()=>r.value,()=>{r.value.length>0&&C(e.initialIndex)});const $=un();return yt(()=>{$.value=$r(u.value,()=>{S()}),_()}),wn(()=>{b(),u.value&&$.value&&$.value.stop()}),Et(SF,{root:u,isCardType:h,isVertical:v,items:r,loop:e.loop,addItem:a,removeItem:i,setActiveItem:C,setContainerHeight:O}),{root:u,activeIndex:o,arrowDisplay:f,hasLabel:d,hover:l,isCardType:h,items:r,isVertical:v,containerStyle:p,handleButtonEnter:A,handleButtonLeave:k,handleIndicatorClick:E,handleMouseEnter:T,handleMouseLeave:M,setActiveItem:C,prev:L,next:B,throttledArrowClick:g,throttledIndicatorHover:m}},gpe=["onMouseenter","onClick"],mpe={key:0},ype="ElCarousel",bpe=ne({name:ype}),_pe=ne({...bpe,props:hpe,emits:vpe,setup(e,{expose:t,emit:n}){const r=e,{root:a,activeIndex:i,arrowDisplay:o,hasLabel:s,hover:l,isCardType:u,items:c,isVertical:f,containerStyle:d,handleButtonEnter:h,handleButtonLeave:v,handleIndicatorClick:p,handleMouseEnter:g,handleMouseLeave:m,setActiveItem:b,prev:_,next:w,throttledArrowClick:C,throttledIndicatorHover:S}=ppe(r,n),x=Me("carousel"),T=P(()=>{const A=[x.b(),x.m(r.direction)];return y(u)&&A.push(x.m("card")),A}),M=P(()=>{const A=[x.e("indicators"),x.em("indicators",r.direction)];return y(s)&&A.push(x.em("indicators","labels")),r.indicatorPosition==="outside"&&A.push(x.em("indicators","outside")),y(f)&&A.push(x.em("indicators","right")),A});return t({setActiveItem:b,prev:_,next:w}),(A,k)=>(R(),K("div",{ref_key:"root",ref:a,class:V(y(T)),onMouseenter:k[6]||(k[6]=tt((...E)=>y(g)&&y(g)(...E),["stop"])),onMouseleave:k[7]||(k[7]=tt((...E)=>y(m)&&y(m)(...E),["stop"]))},[Y("div",{class:V(y(x).e("container")),style:Ye(y(d))},[y(o)?(R(),ce(Bn,{key:0,name:"carousel-arrow-left",persisted:""},{default:re(()=>[dt(Y("button",{type:"button",class:V([y(x).e("arrow"),y(x).em("arrow","left")]),onMouseenter:k[0]||(k[0]=E=>y(h)("left")),onMouseleave:k[1]||(k[1]=(...E)=>y(v)&&y(v)(...E)),onClick:k[2]||(k[2]=tt(E=>y(C)(y(i)-1),["stop"]))},[q(y(Ke),null,{default:re(()=>[q(y(fl))]),_:1})],34),[[Kt,(A.arrow==="always"||y(l))&&(r.loop||y(i)>0)]])]),_:1})):se("v-if",!0),y(o)?(R(),ce(Bn,{key:1,name:"carousel-arrow-right",persisted:""},{default:re(()=>[dt(Y("button",{type:"button",class:V([y(x).e("arrow"),y(x).em("arrow","right")]),onMouseenter:k[3]||(k[3]=E=>y(h)("right")),onMouseleave:k[4]||(k[4]=(...E)=>y(v)&&y(v)(...E)),onClick:k[5]||(k[5]=tt(E=>y(C)(y(i)+1),["stop"]))},[q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})],34),[[Kt,(A.arrow==="always"||y(l))&&(r.loop||y(i)<y(c).length-1)]])]),_:1})):se("v-if",!0),_e(A.$slots,"default")],6),A.indicatorPosition!=="none"?(R(),K("ul",{key:0,class:V(y(M))},[(R(!0),K(je,null,Ot(y(c),(E,D)=>(R(),K("li",{key:D,class:V([y(x).e("indicator"),y(x).em("indicator",A.direction),y(x).is("active",D===y(i))]),onMouseenter:L=>y(S)(D),onClick:tt(L=>y(p)(D),["stop"])},[Y("button",{class:V(y(x).e("button"))},[y(s)?(R(),K("span",mpe,De(E.props.label),1)):se("v-if",!0)],2)],42,gpe))),128))],2)):se("v-if",!0)],34))}});var wpe=Pe(_pe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const Spe=Le({name:{type:String,default:""},label:{type:[String,Number],default:""}}),Cpe=(e,t)=>{const n=Ge(SF),r=gt(),a=.83,i=H(),o=H(!1),s=H(0),l=H(1),u=H(!1),c=H(!1),f=H(!1),d=H(!1),{isCardType:h,isVertical:v}=n;function p(w,C,S){const x=S-1,T=C-1,M=C+1,A=S/2;return C===0&&w===x?-1:C===x&&w===0?S:w<T&&C-w>=A?S+1:w>M&&w-C>=A?-2:w}function g(w,C){var S,x;const T=y(v)?((S=n.root.value)==null?void 0:S.offsetHeight)||0:((x=n.root.value)==null?void 0:x.offsetWidth)||0;return f.value?T*((2-a)*(w-C)+1)/4:w<C?-(1+a)*T/4:(3+a)*T/4}function m(w,C,S){const x=n.root.value;return x?((S?x.offsetHeight:x.offsetWidth)||0)*(w-C):0}const b=(w,C,S)=>{var x;const T=y(h),M=(x=n.items.value.length)!=null?x:Number.NaN,A=w===C;!T&&!er(S)&&(d.value=A||w===S),!A&&M>2&&n.loop&&(w=p(w,C,M));const k=y(v);u.value=A,T?(f.value=Math.round(Math.abs(w-C))<=1,s.value=g(w,C),l.value=y(u)?1:a):s.value=m(w,C,k),c.value=!0,A&&i.value&&n.setContainerHeight(i.value.offsetHeight)};function _(){if(n&&y(h)){const w=n.items.value.findIndex(({uid:C})=>C===r.uid);n.setActiveItem(w)}}return yt(()=>{n.addItem({props:e,states:jt({hover:o,translate:s,scale:l,active:u,ready:c,inStage:f,animating:d}),uid:r.uid,translateItem:b})}),Tl(()=>{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:_}},xpe=ne({name:"ElCarouselItem"}),Tpe=ne({...xpe,props:Spe,setup(e){const t=e,n=Me("carousel"),{carouselItemRef:r,active:a,animating:i,hover:o,inStage:s,isVertical:l,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:h}=Cpe(t),v=P(()=>{const g=`${`translate${y(l)?"Y":"X"}`}(${y(u)}px)`,m=`scale(${y(f)})`;return{transform:[g,m].join(" ")}});return(p,g)=>dt((R(),K("div",{ref_key:"carouselItemRef",ref:r,class:V([y(n).e("item"),y(n).is("active",y(a)),y(n).is("in-stage",y(s)),y(n).is("hover",y(o)),y(n).is("animating",y(i)),{[y(n).em("item","card")]:y(c),[y(n).em("item","card-vertical")]:y(c)&&y(l)}]),style:Ye(y(v)),onClick:g[0]||(g[0]=(...m)=>y(h)&&y(h)(...m))},[y(c)?dt((R(),K("div",{key:0,class:V(y(n).e("mask"))},null,2)),[[Kt,!y(a)]]):se("v-if",!0),_e(p.$slots,"default")],6)),[[Kt,y(d)]])}});var CF=Pe(Tpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const Mpe=_t(wpe,{CarouselItem:CF}),kpe=Dn(CF),xF={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Sr,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},TF={[wt]:e=>lt(e)||at(e)||Un(e),change:e=>lt(e)||at(e)||Un(e)},Id=Symbol("checkboxGroupContextKey"),Ape=({model:e,isChecked:t})=>{const n=Ge(Id,void 0),r=P(()=>{var i,o;const s=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(o=n==null?void 0:n.min)==null?void 0:o.value;return!er(s)&&e.value.length>=s&&!t.value||!er(l)&&e.value.length<=l&&t.value});return{isDisabled:wa(P(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},Epe=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const o=Ge(Id,void 0),{formItem:s}=aa(),{emit:l}=gt();function u(v){var p,g;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function c(v,p){l("change",u(v),p)}function f(v){if(n.value)return;const p=v.target;l("change",u(p.checked),v)}async function d(v){n.value||!r.value&&!a.value&&i.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Ue(),c(t.value,v)))}const h=P(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return xe(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},Ipe=e=>{const t=H(!1),{emit:n}=gt(),r=Ge(Id,void 0),a=P(()=>er(r)===!1),i=H(!1);return{model:P({get(){var s,l;return a.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;a.value&&He(s)?(i.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&s.length>(r==null?void 0:r.max.value),i.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(wt,s),t.value=s)}}),isGroup:a,isLimitExceeded:i}},Dpe=(e,t,{model:n})=>{const r=Ge(Id,void 0),a=H(!1),i=P(()=>{const u=n.value;return Un(u)?u:He(u)?Mt(e.label)?u.map(tn).some(c=>pa(c,e.label)):u.map(tn).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=qn(P(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=qn(P(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=P(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:l}},Ppe=(e,{model:t})=>{function n(){He(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},MF=(e,t)=>{const{formItem:n}=aa(),{model:r,isGroup:a,isLimitExceeded:i}=Ipe(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=Dpe(e,t,{model:r}),{isDisabled:f}=Ape({model:r,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=Dl(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:v,onClickRoot:p}=Epe(e,{model:r,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return Ppe(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}},Lpe=["tabindex","role","aria-checked"],Rpe=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Ope=["id","aria-hidden","disabled","value","name","tabindex"],$pe=ne({name:"ElCheckbox"}),Npe=ne({...$pe,props:xF,emits:TF,setup(e){const t=e,n=Mr(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=MF(t,n),h=Me("checkbox"),v=P(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",i.value)]),p=P(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",i.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(g,m)=>(R(),ce(Ct(!y(u)&&y(a)?"span":"label"),{class:V(y(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:y(d)},{default:re(()=>[Y("span",{class:V(y(p)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?dt((R(),K("input",{key:0,id:y(r),"onUpdate:modelValue":m[0]||(m[0]=b=>cn(c)?c.value=b:null),class:V(y(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:y(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...b)=>y(f)&&y(f)(...b)),onFocus:m[2]||(m[2]=b=>s.value=!0),onBlur:m[3]||(m[3]=b=>s.value=!1),onClick:m[4]||(m[4]=tt(()=>{},["stop"]))},null,42,Rpe)),[[i0,y(c)]]):dt((R(),K("input",{key:1,id:y(r),"onUpdate:modelValue":m[5]||(m[5]=b=>cn(c)?c.value=b:null),class:V(y(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:y(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[6]||(m[6]=(...b)=>y(f)&&y(f)(...b)),onFocus:m[7]||(m[7]=b=>s.value=!0),onBlur:m[8]||(m[8]=b=>s.value=!1),onClick:m[9]||(m[9]=tt(()=>{},["stop"]))},null,42,Ope)),[[i0,y(c)]]),Y("span",{class:V(y(h).e("inner"))},null,2)],10,Lpe),y(u)?(R(),K("span",{key:0,class:V(y(h).e("label"))},[_e(g.$slots,"default"),g.$slots.default?se("v-if",!0):(R(),K(je,{key:0},[Ut(De(g.label),1)],64))],2)):se("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Bpe=Pe(Npe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const Vpe=["name","tabindex","disabled","true-value","false-value"],zpe=["name","tabindex","disabled","value"],Fpe=ne({name:"ElCheckboxButton"}),Hpe=ne({...Fpe,props:xF,emits:TF,setup(e){const t=e,n=Mr(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:l}=MF(t,n),u=Ge(Id,void 0),c=Me("checkbox"),f=P(()=>{var h,v,p,g;const m=(v=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?v:"";return{backgroundColor:m,borderColor:m,color:(g=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?g:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),d=P(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",i.value),c.is("checked",a.value),c.is("focus",r.value)]);return(h,v)=>(R(),K("label",{class:V(y(d))},[h.trueLabel||h.falseLabel?dt((R(),K("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>cn(s)?s.value=p:null),class:V(y(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:y(i),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>y(l)&&y(l)(...p)),onFocus:v[2]||(v[2]=p=>r.value=!0),onBlur:v[3]||(v[3]=p=>r.value=!1),onClick:v[4]||(v[4]=tt(()=>{},["stop"]))},null,42,Vpe)),[[i0,y(s)]]):dt((R(),K("input",{key:1,"onUpdate:modelValue":v[5]||(v[5]=p=>cn(s)?s.value=p:null),class:V(y(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:y(i),value:h.label,onChange:v[6]||(v[6]=(...p)=>y(l)&&y(l)(...p)),onFocus:v[7]||(v[7]=p=>r.value=!0),onBlur:v[8]||(v[8]=p=>r.value=!1),onClick:v[9]||(v[9]=tt(()=>{},["stop"]))},null,42,zpe)),[[i0,y(s)]]),h.$slots.default||h.label?(R(),K("span",{key:2,class:V(y(c).be("button","inner")),style:Ye(y(a)?y(f):void 0)},[_e(h.$slots,"default",{},()=>[Ut(De(h.label),1)])],6)):se("v-if",!0)],2))}});var kF=Pe(Hpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const Gpe=Le({modelValue:{type:ue(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Sr,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),Wpe={[wt]:e=>He(e),change:e=>He(e)},Kpe=ne({name:"ElCheckboxGroup"}),Upe=ne({...Kpe,props:Gpe,emits:Wpe,setup(e,{emit:t}){const n=e,r=Me("checkbox"),{formItem:a}=aa(),{inputId:i,isLabeledByFormItem:o}=Dl(n,{formItemContext:a}),s=async u=>{t(wt,u),await Ue(),t("change",u)},l=P({get(){return n.modelValue},set(u){s(u)}});return Et(Id,{...Ho(or(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),xe(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return R(),ce(Ct(u.tag),{id:y(i),class:V(y(r).b("group")),role:"group","aria-label":y(o)?void 0:u.label||"checkbox-group","aria-labelledby":y(o)?(f=y(a))==null?void 0:f.labelId:void 0},{default:re(()=>[_e(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var AF=Pe(Upe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const ui=_t(Bpe,{CheckboxButton:kF,CheckboxGroup:AF}),Ype=Dn(kF),EF=Dn(AF),IF=Le({size:Sr,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),jpe=Le({...IF,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),DF={[wt]:e=>lt(e)||at(e)||Un(e),[mn]:e=>lt(e)||at(e)||Un(e)},PF=Symbol("radioGroupKey"),LF=(e,t)=>{const n=H(),r=Ge(PF,void 0),a=P(()=>!!r),i=P({get(){return a.value?r.modelValue:e.modelValue},set(c){a.value?r.changeEvent(c):t&&t(wt,c),n.value.checked=e.modelValue===e.label}}),o=qn(P(()=>r==null?void 0:r.size)),s=wa(P(()=>r==null?void 0:r.disabled)),l=H(!1),u=P(()=>s.value||a.value&&i.value!==e.label?-1:0);return{radioRef:n,isGroup:a,radioGroup:r,focus:l,size:o,disabled:s,tabIndex:u,modelValue:i}},qpe=["value","name","disabled"],Xpe=ne({name:"ElRadio"}),Zpe=ne({...Xpe,props:jpe,emits:DF,setup(e,{emit:t}){const n=e,r=Me("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=LF(n,t);function c(){Ue(()=>t("change",u.value))}return(f,d)=>{var h;return R(),K("label",{class:V([y(r).b(),y(r).is("disabled",y(l)),y(r).is("focus",y(o)),y(r).is("bordered",f.border),y(r).is("checked",y(u)===f.label),y(r).m(y(s))])},[Y("span",{class:V([y(r).e("input"),y(r).is("disabled",y(l)),y(r).is("checked",y(u)===f.label)])},[dt(Y("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=v=>cn(u)?u.value=v:null),class:V(y(r).e("original")),value:f.label,name:f.name||((h=y(i))==null?void 0:h.name),disabled:y(l),type:"radio",onFocus:d[1]||(d[1]=v=>o.value=!0),onBlur:d[2]||(d[2]=v=>o.value=!1),onChange:c,onClick:d[3]||(d[3]=tt(()=>{},["stop"]))},null,42,qpe),[[IV,y(u)]]),Y("span",{class:V(y(r).e("inner"))},null,2)],2),Y("span",{class:V(y(r).e("label")),onKeydown:d[4]||(d[4]=tt(()=>{},["stop"]))},[_e(f.$slots,"default",{},()=>[Ut(De(f.label),1)])],34)],2)}}});var Jpe=Pe(Zpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Qpe=Le({...IF,name:{type:String,default:""}}),ege=["value","name","disabled"],tge=ne({name:"ElRadioButton"}),nge=ne({...tge,props:Qpe,setup(e){const t=e,n=Me("radio"),{radioRef:r,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=LF(t),u=P(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(c,f)=>{var d;return R(),K("label",{class:V([y(n).b("button"),y(n).is("active",y(s)===c.label),y(n).is("disabled",y(o)),y(n).is("focus",y(a)),y(n).bm("button",y(i))])},[dt(Y("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=h=>cn(s)?s.value=h:null),class:V(y(n).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((d=y(l))==null?void 0:d.name),disabled:y(o),onFocus:f[1]||(f[1]=h=>a.value=!0),onBlur:f[2]||(f[2]=h=>a.value=!1),onClick:f[3]||(f[3]=tt(()=>{},["stop"]))},null,42,ege),[[IV,y(s)]]),Y("span",{class:V(y(n).be("button","inner")),style:Ye(y(s)===c.label?y(u):{}),onKeydown:f[4]||(f[4]=tt(()=>{},["stop"]))},[_e(c.$slots,"default",{},()=>[Ut(De(c.label),1)])],38)],2)}}});var RF=Pe(nge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const rge=Le({id:{type:String,default:void 0},size:Sr,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),age=DF,ige=["id","aria-label","aria-labelledby"],oge=ne({name:"ElRadioGroup"}),sge=ne({...oge,props:rge,emits:age,setup(e,{emit:t}){const n=e,r=Me("radio"),a=si(),i=H(),{formItem:o}=aa(),{inputId:s,isLabeledByFormItem:l}=Dl(n,{formItemContext:o}),u=f=>{t(wt,f),Ue(()=>t("change",f))};yt(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=P(()=>n.name||a.value);return Et(PF,jt({...or(n),changeEvent:u,name:c})),xe(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>(R(),K("div",{id:y(s),ref_key:"radioGroupRef",ref:i,class:V(y(r).b("group")),role:"radiogroup","aria-label":y(l)?void 0:f.label||"radio-group","aria-labelledby":y(l)?y(o).labelId:void 0},[_e(f.$slots,"default")],10,ige))}});var OF=Pe(sge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const $F=_t(Jpe,{RadioButton:RF,RadioGroup:OF}),lge=Dn(OF),uge=Dn(RF);var cge=ne({name:"NodeContent",setup(){return{ns:Me("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:a}=t,{renderLabelFn:i}=n;return Ze("span",{class:e.e("label")},i?i({node:t,data:r}):a)}});const zM=Symbol(),fge=ne({name:"ElCascaderNode",components:{ElCheckbox:ui,ElRadio:$F,NodeContent:cge,ElIcon:Ke,Check:Jp,Loading:Al,ArrowRight:jr},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Ge(zM),r=Me("cascader-node"),a=P(()=>n.isHoverMenu),i=P(()=>n.config.multiple),o=P(()=>n.config.checkStrictly),s=P(()=>{var S;return(S=n.checkedNodes[0])==null?void 0:S.uid}),l=P(()=>e.node.isDisabled),u=P(()=>e.node.isLeaf),c=P(()=>o.value&&!u.value||!l.value),f=P(()=>h(n.expandingNode)),d=P(()=>o.value&&n.checkedNodes.some(h)),h=S=>{var x;const{level:T,uid:M}=e.node;return((x=S==null?void 0:S.pathNodes[T-1])==null?void 0:x.uid)===M},v=()=>{f.value||n.expandNode(e.node)},p=S=>{const{node:x}=e;S!==x.checked&&n.handleCheckChange(x,S)},g=()=>{n.lazyLoad(e.node,()=>{u.value||v()})},m=S=>{a.value&&(b(),!u.value&&t("expand",S))},b=()=>{const{node:S}=e;!c.value||S.loading||(S.loaded?v():g())},_=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?C(!0):b())},w=S=>{o.value?(p(S),e.node.loaded&&v()):C(S)},C=S=>{e.node.loaded?(p(S),!o.value&&v()):g()};return{panel:n,isHoverMenu:a,multiple:i,checkStrictly:o,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:f,inCheckedPath:d,ns:r,handleHoverExpand:m,handleExpand:b,handleClick:_,handleCheck:C,handleSelectCheck:w}}}),dge=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],hge=Y("span",null,null,-1);function vge(e,t,n,r,a,i){const o=ct("el-checkbox"),s=ct("el-radio"),l=ct("check"),u=ct("el-icon"),c=ct("node-content"),f=ct("loading"),d=ct("arrow-right");return R(),K("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:V([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:t[2]||(t[2]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onFocus:t[3]||(t[3]=(...h)=>e.handleHoverExpand&&e.handleHoverExpand(...h)),onClick:t[4]||(t[4]=(...h)=>e.handleClick&&e.handleClick(...h))},[se(" prefix "),e.multiple?(R(),ce(o,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=tt(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(R(),ce(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=tt(()=>{},["stop"]))},{default:re(()=>[se(`
  42. Add an empty element to avoid render label,
  43. do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
  44. `),hge]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(R(),ce(u,{key:2,class:V(e.ns.e("prefix"))},{default:re(()=>[q(l)]),_:1},8,["class"])):se("v-if",!0),se(" content "),q(c),se(" postfix "),e.isLeaf?se("v-if",!0):(R(),K(je,{key:3},[e.node.loading?(R(),ce(u,{key:0,class:V([e.ns.is("loading"),e.ns.e("postfix")])},{default:re(()=>[q(f)]),_:1},8,["class"])):(R(),ce(u,{key:1,class:V(["arrow-right",e.ns.e("postfix")])},{default:re(()=>[q(d)]),_:1},8,["class"]))],64))],42,dge)}var pge=Pe(fge,[["render",vge],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const gge=ne({name:"ElCascaderMenu",components:{Loading:Al,ElIcon:Ke,ElScrollbar:hs,ElCascaderNode:pge},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=gt(),n=Me("cascader-menu"),{t:r}=Ht(),a=Qb();let i=null,o=null;const s=Ge(zM),l=H(null),u=P(()=>!e.nodes.length),c=P(()=>!s.initialLoaded),f=P(()=>`cascader-menu-${a}-${e.index}`),d=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){v();const m=t.vnode.el,{left:b}=m.getBoundingClientRect(),{offsetWidth:_,offsetHeight:w}=m,C=g.clientX-b,S=i.offsetTop,x=S+i.offsetHeight;l.value.innerHTML=`
  45. <path style="pointer-events: auto;" fill="transparent" d="M${C} ${S} L${_} 0 V${S} Z" />
  46. <path style="pointer-events: auto;" fill="transparent" d="M${C} ${x} L${_} ${w} V${x} Z" />
  47. `}else o||(o=window.setTimeout(p,s.config.hoverThreshold))},v=()=>{o&&(clearTimeout(o),o=null)},p=()=>{l.value&&(l.value.innerHTML="",v())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:r,handleExpand:d,handleMouseMove:h,clearHoverZone:p}}});function mge(e,t,n,r,a,i){const o=ct("el-cascader-node"),s=ct("loading"),l=ct("el-icon"),u=ct("el-scrollbar");return R(),ce(u,{key:e.menuId,tag:"ul",role:"menu",class:V(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:re(()=>{var c;return[(R(!0),K(je,null,Ot(e.nodes,f=>(R(),ce(o,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(R(),K("div",{key:0,class:V(e.ns.e("empty-text"))},[q(l,{size:"14",class:V(e.ns.is("loading"))},{default:re(()=>[q(s)]),_:1},8,["class"]),Ut(" "+De(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(R(),K("div",{key:1,class:V(e.ns.e("empty-text"))},De(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(R(),K("svg",{key:2,ref:"hoverZone",class:V(e.ns.e("hover-zone"))},null,2)):se("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var yge=Pe(gge,[["render",mge],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let bge=0;const _ge=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let QC=class ex{constructor(t,n,r,a=!1){this.data=t,this.config=n,this.parent=r,this.root=a,this.uid=bge++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=n,l=t[s],u=_ge(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 ex(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!qa(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(it(a)?a(t,this):!!t[a])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:r,loaded:a}=this,{lazy:i,leaf:o}=n,s=it(o)?o(t,this):t[o];return er(s)?i&&!a?!1:!(Array.isArray(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:r}=this,a=new ex(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],r.push(a),a}calcText(t,n){const r=t?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(t,...n){const r=`onParent${io(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[r]&&a[r](...n))})}emit(t,...n){const{parent:r}=this,a=`onChild${io(t)}`;r&&(r[a]&&r[a](...n),r.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(a=>!a.isDisabled),r=n.length?n.every(a=>a.checked):!1;this.setCheckState(r)}setCheckState(t){const n=this.children.length,r=this.children.reduce((a,i)=>{const o=i.checked?1:i.indeterminate?.5:0;return a+o},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&t,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const tx=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(tx(r.children,t))),n),[]);class NP{constructor(t,n){this.config=n;const r=(t||[]).map(a=>new QC(a,this.config));this.nodes=r,this.allNodes=tx(r,!1),this.leafNodes=tx(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new QC(t,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(t,n){t.forEach(r=>this.appendNode(r,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(a=>pa(a.value,t)||pa(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:a})=>pa(t.value,r)&&t.level===a)||null}}const NF=Le({modelValue:{type:ue([Number,String,Array])},options:{type:ue(Array),default:()=>[]},props:{type:ue(Object),default:()=>({})}}),wge={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:rn,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},Sge=e=>P(()=>({...wge,...e.props})),BP=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},Cge=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():YV(e)&&e.click()},xge=(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},Tge=ne({name:"ElCascaderPanel",components:{ElCascaderMenu:yge},props:{...NF,border:{type:Boolean,default:!0},renderLabel:Function},emits:[wt,mn,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const a=Me("cascader"),i=Sge(e);let o=null;const s=H(!0),l=H([]),u=H(null),c=H([]),f=H(null),d=H([]),h=P(()=>i.value.expandTrigger==="hover"),v=P(()=>e.renderLabel||n.default),p=()=>{const{options:E}=e,D=i.value;r=!1,o=new NP(E,D),c.value=[o.getNodes()],D.lazy&&qa(e.options)?(s.value=!1,g(void 0,L=>{L&&(o=new NP(L,D),c.value=[o.getNodes()]),s.value=!0,T(!1,!0)})):T(!1,!0)},g=(E,D)=>{const L=i.value;E=E||new QC({},L,void 0,!0),E.loading=!0;const B=N=>{const O=E,$=O.root?null:O;N&&(o==null||o.appendNodes(N,$)),O.loading=!1,O.loaded=!0,O.childrenData=O.childrenData||[],D&&D(N)};L.lazyLoad(E,B)},m=(E,D)=>{var L;const{level:B}=E,N=c.value.slice(0,B);let O;E.isLeaf?O=E.pathNodes[B-2]:(O=E,N.push(E.children)),((L=f.value)==null?void 0:L.uid)!==(O==null?void 0:O.uid)&&(f.value=E,c.value=N,!D&&t("expand-change",(E==null?void 0:E.pathValues)||[]))},b=(E,D,L=!0)=>{const{checkStrictly:B,multiple:N}=i.value,O=d.value[0];r=!0,!N&&(O==null||O.doCheck(!1)),E.doCheck(D),x(),L&&!N&&!B&&t("close"),!L&&!N&&!B&&_(E)},_=E=>{E&&(E=E.parent,_(E),E&&m(E))},w=E=>o==null?void 0:o.getFlattedNodes(E),C=E=>{var D;return(D=w(E))==null?void 0:D.filter(L=>L.checked!==!1)},S=()=>{d.value.forEach(E=>E.doCheck(!1)),x(),c.value=c.value.slice(0,1),f.value=null,t("expand-change",[])},x=()=>{var E;const{checkStrictly:D,multiple:L}=i.value,B=d.value,N=C(!D),O=xge(B,N),$=O.map(I=>I.valueByOption);d.value=O,u.value=L?$:(E=$[0])!=null?E:null},T=(E=!1,D=!1)=>{const{modelValue:L}=e,{lazy:B,multiple:N,checkStrictly:O}=i.value,$=!O;if(!(!s.value||r||!D&&pa(L,u.value)))if(B&&!E){const z=BD(Sre(jo(L))).map(G=>o==null?void 0:o.getNodeByValue(G)).filter(G=>!!G&&!G.loaded&&!G.loading);z.length?z.forEach(G=>{g(G,()=>T(!1,D))}):T(!0,D)}else{const I=N?jo(L):[L],z=BD(I.map(G=>o==null?void 0:o.getNodeByValue(G,$)));M(z,D),u.value=u0(L)}},M=(E,D=!0)=>{const{checkStrictly:L}=i.value,B=d.value,N=E.filter(I=>!!I&&(L||I.isLeaf)),O=o==null?void 0:o.getSameNode(f.value),$=D&&O||N[0];$?$.pathNodes.forEach(I=>m(I,!0)):f.value=null,B.forEach(I=>I.doCheck(!1)),e.props.multiple?jt(N).forEach(I=>I.doCheck(!0)):N.forEach(I=>I.doCheck(!0)),d.value=N,Ue(A)},A=()=>{Vt&&l.value.forEach(E=>{const D=E==null?void 0:E.$el;if(D){const L=D.querySelector(`.${a.namespace.value}-scrollbar__wrap`),B=D.querySelector(`.${a.b("node")}.${a.is("active")}`)||D.querySelector(`.${a.b("node")}.in-active-path`);V5(L,B)}})},k=E=>{const D=E.target,{code:L}=E;switch(L){case Xe.up:case Xe.down:{E.preventDefault();const B=L===Xe.up?-1:1;uy(jV(D,B,`.${a.b("node")}[tabindex="-1"]`));break}case Xe.left:{E.preventDefault();const B=l.value[BP(D)-1],N=B==null?void 0:B.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);uy(N);break}case Xe.right:{E.preventDefault();const B=l.value[BP(D)+1],N=B==null?void 0:B.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);uy(N);break}case Xe.enter:Cge(D);break}};return Et(zM,jt({config:i,expandingNode:f,checkedNodes:d,isHoverMenu:h,initialLoaded:s,renderLabelFn:v,lazyLoad:g,expandNode:m,handleCheckChange:b})),xe([i,()=>e.options],p,{deep:!0,immediate:!0}),xe(()=>e.modelValue,()=>{r=!1,T()},{deep:!0}),xe(()=>u.value,E=>{pa(E,e.modelValue)||(t(wt,E),t(mn,E))}),iV(()=>l.value=[]),yt(()=>!qa(e.modelValue)&&T()),{ns:a,menuList:l,menus:c,checkedNodes:d,handleKeyDown:k,handleCheckChange:b,getFlattedNodes:w,getCheckedNodes:C,clearCheckedNodes:S,calculateCheckedValue:x,scrollToExpandingNode:A}}});function Mge(e,t,n,r,a,i){const o=ct("el-cascader-menu");return R(),K("div",{class:V([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...s)=>e.handleKeyDown&&e.handleKeyDown(...s))},[(R(!0),K(je,null,Ot(e.menus,(s,l)=>(R(),ce(o,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var my=Pe(Tge,[["render",Mge],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);my.install=e=>{e.component(my.name,my)};const BF=my,kge=BF,FM=Le({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:Mo,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),Age={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},Ege=ne({name:"ElTag"}),Ige=ne({...Ege,props:FM,emits:Age,setup(e,{emit:t}){const n=e,r=qn(),a=Me("tag"),i=P(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=n;return[a.b(),a.is("closable",f),a.m(l),a.m(r.value),a.m(c),a.is("hit",u),a.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(R(),K("span",{key:0,class:V(y(i)),style:Ye({backgroundColor:l.color}),onClick:s},[Y("span",{class:V(y(a).e("content"))},[_e(l.$slots,"default")],2),l.closable?(R(),ce(y(Ke),{key:0,class:V(y(a).e("close")),onClick:tt(o,["stop"])},{default:re(()=>[q(y(Bi))]),_:1},8,["class","onClick"])):se("v-if",!0)],6)):(R(),ce(Bn,{key:1,name:`${y(a).namespace.value}-zoom-in-center`,appear:""},{default:re(()=>[Y("span",{class:V(y(i)),style:Ye({backgroundColor:l.color}),onClick:s},[Y("span",{class:V(y(a).e("content"))},[_e(l.$slots,"default")],2),l.closable?(R(),ce(y(Ke),{key:0,class:V(y(a).e("close")),onClick:tt(o,["stop"])},{default:re(()=>[q(y(Bi))]),_:1},8,["class","onClick"])):se("v-if",!0)],6)]),_:3},8,["name"]))}});var Dge=Pe(Ige,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const ep=_t(Dge),Pge=Le({...NF,size:Sr,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:ue(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:ue(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:cr.teleported,tagType:{...FM.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),Lge={[wt]:e=>!!e||e===null,[mn]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Un(e),expandChange:e=>!!e,removeTag:e=>!!e},Rge={key:0},Oge=["placeholder","onKeydown"],$ge=["onClick"],Nge="ElCascader",Bge=ne({name:Nge}),Vge=ne({...Bge,props:Pge,emits:Lge,setup(e,{expose:t,emit:n}){const r=e,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:fe})=>{const{modifiersData:le,placement:ke}=fe;["right","left","bottom","top"].includes(ke)||(le.arrow.x=35)},requires:["arrow"]}]},i=yc();let o=0,s=0;const l=Me("cascader"),u=Me("input"),{t:c}=Ht(),{form:f,formItem:d}=aa(),h=H(null),v=H(null),p=H(null),g=H(null),m=H(null),b=H(!1),_=H(!1),w=H(!1),C=H(!1),S=H(""),x=H(""),T=H([]),M=H([]),A=H([]),k=H(!1),E=P(()=>i.style),D=P(()=>r.disabled||(f==null?void 0:f.disabled)),L=P(()=>r.placeholder||c("el.cascader.placeholder")),B=P(()=>x.value||T.value.length>0||k.value?"":L.value),N=qn(),O=P(()=>["small"].includes(N.value)?"small":"default"),$=P(()=>!!r.props.multiple),I=P(()=>!r.filterable||$.value),z=P(()=>$.value?x.value:S.value),G=P(()=>{var fe;return((fe=g.value)==null?void 0:fe.checkedNodes)||[]}),U=P(()=>!r.clearable||D.value||w.value||!_.value?!1:!!G.value.length),Z=P(()=>{const{showAllLevels:fe,separator:le}=r,ke=G.value;return ke.length?$.value?"":ke[0].calcText(fe,le):""}),ae=P({get(){return u0(r.modelValue)},set(fe){n(wt,fe),n(mn,fe),r.validateEvent&&(d==null||d.validate("change").catch(le=>void 0))}}),J=P(()=>[l.b(),l.m(N.value),l.is("disabled",D.value),i.class]),Q=P(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",b.value)]),ee=P(()=>l.is("focus",b.value||C.value)),j=P(()=>{var fe,le;return(le=(fe=h.value)==null?void 0:fe.popperRef)==null?void 0:le.contentRef}),de=fe=>{var le,ke,te;D.value||(fe=fe??!b.value,fe!==b.value&&(b.value=fe,(ke=(le=v.value)==null?void 0:le.input)==null||ke.setAttribute("aria-expanded",`${fe}`),fe?(ve(),Ue((te=g.value)==null?void 0:te.scrollToExpandingNode)):r.filterable&&Be(),n("visibleChange",fe)))},ve=()=>{Ue(()=>{var fe;(fe=h.value)==null||fe.updatePopper()})},ie=()=>{w.value=!1},W=fe=>{const{showAllLevels:le,separator:ke}=r;return{node:fe,key:fe.uid,text:fe.calcText(le,ke),hitState:!1,closable:!D.value&&!fe.isDisabled,isCollapseTag:!1}},X=fe=>{var le;const ke=fe.node;ke.doCheck(!1),(le=g.value)==null||le.calculateCheckedValue(),n("removeTag",ke.valueByOption)},oe=()=>{if(!$.value)return;const fe=G.value,le=[],ke=[];if(fe.forEach(te=>ke.push(W(te))),M.value=ke,fe.length){fe.slice(0,r.maxCollapseTags).forEach(st=>le.push(W(st)));const te=fe.slice(r.maxCollapseTags),Ve=te.length;Ve&&(r.collapseTags?le.push({key:-1,text:`+ ${Ve}`,closable:!1,isCollapseTag:!0}):te.forEach(st=>le.push(W(st))))}T.value=le},pe=()=>{var fe,le;const{filterMethod:ke,showAllLevels:te,separator:Ve}=r,st=(le=(fe=g.value)==null?void 0:fe.getFlattedNodes(!r.props.checkStrictly))==null?void 0:le.filter(It=>It.isDisabled?!1:(It.calcText(te,Ve),ke(It,z.value)));$.value&&(T.value.forEach(It=>{It.hitState=!1}),M.value.forEach(It=>{It.hitState=!1})),w.value=!0,A.value=st,ve()},Se=()=>{var fe;let le;w.value&&m.value?le=m.value.$el.querySelector(`.${l.e("suggestion-item")}`):le=(fe=g.value)==null?void 0:fe.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),le&&(le.focus(),!w.value&&le.click())},me=()=>{var fe,le;const ke=(fe=v.value)==null?void 0:fe.input,te=p.value,Ve=(le=m.value)==null?void 0:le.$el;if(!(!Vt||!ke)){if(Ve){const st=Ve.querySelector(`.${l.e("suggestion-list")}`);st.style.minWidth=`${ke.offsetWidth}px`}if(te){const{offsetHeight:st}=te,It=T.value.length>0?`${Math.max(st+6,o)}px`:`${o}px`;ke.style.height=It,ve()}}},Ee=fe=>{var le;return(le=g.value)==null?void 0:le.getCheckedNodes(fe)},Ce=fe=>{ve(),n("expandChange",fe)},we=fe=>{var le;const ke=(le=fe.target)==null?void 0:le.value;if(fe.type==="compositionend")k.value=!1,Ue(()=>Qe(ke));else{const te=ke[ke.length-1]||"";k.value=!Zb(te)}},Te=fe=>{if(!k.value)switch(fe.code){case Xe.enter:de();break;case Xe.down:de(!0),Ue(Se),fe.preventDefault();break;case Xe.esc:b.value===!0&&(fe.preventDefault(),fe.stopPropagation(),de(!1));break;case Xe.tab:de(!1);break}},$e=()=>{var fe;(fe=g.value)==null||fe.clearCheckedNodes(),!b.value&&r.filterable&&Be(),de(!1)},Be=()=>{const{value:fe}=Z;S.value=fe,x.value=fe},We=fe=>{var le,ke;const{checked:te}=fe;$.value?(le=g.value)==null||le.handleCheckChange(fe,!te,!1):(!te&&((ke=g.value)==null||ke.handleCheckChange(fe,!0,!1)),de(!1))},Ae=fe=>{const le=fe.target,{code:ke}=fe;switch(ke){case Xe.up:case Xe.down:{const te=ke===Xe.up?-1:1;uy(jV(le,te,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case Xe.enter:le.click();break}},Fe=()=>{const fe=T.value,le=fe[fe.length-1];s=x.value?0:s+1,!(!le||!s||r.collapseTags&&fe.length>1)&&(le.hitState?X(le):le.hitState=!0)},rt=fe=>{const le=fe.target,ke=l.e("search-input");le.className===ke&&(C.value=!0),n("focus",fe)},vt=fe=>{C.value=!1,n("blur",fe)},kt=Qr(()=>{const{value:fe}=z;if(!fe)return;const le=r.beforeFilter(fe);Pv(le)?le.then(pe).catch(()=>{}):le!==!1?pe():ie()},r.debounce),Qe=(fe,le)=>{!b.value&&de(!0),!(le!=null&&le.isComposing)&&(fe?kt():ie())},ye=fe=>Number.parseFloat(vZ(u.cssVarName("input-height"),fe).value)-2;return xe(w,ve),xe([G,D],oe),xe(T,()=>{Ue(()=>me())}),xe(N,async()=>{await Ue();const fe=v.value.input;o=ye(fe)||o,me()}),xe(Z,Be,{immediate:!0}),yt(()=>{const fe=v.value.input,le=ye(fe);o=fe.offsetHeight||le,$r(fe,me)}),t({getCheckedNodes:Ee,cascaderPanelRef:g,togglePopperVisible:de,contentRef:j}),(fe,le)=>(R(),ce(y(ea),{ref_key:"tooltipRef",ref:h,visible:b.value,teleported:fe.teleported,"popper-class":[y(l).e("dropdown"),fe.popperClass],"popper-options":a,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${y(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:ie},{default:re(()=>[dt((R(),K("div",{class:V(y(J)),style:Ye(y(E)),onClick:le[5]||(le[5]=()=>de(y(I)?void 0:!0)),onKeydown:Te,onMouseenter:le[6]||(le[6]=ke=>_.value=!0),onMouseleave:le[7]||(le[7]=ke=>_.value=!1)},[q(y(Rr),{ref_key:"input",ref:v,modelValue:S.value,"onUpdate:modelValue":le[1]||(le[1]=ke=>S.value=ke),placeholder:y(B),readonly:y(I),disabled:y(D),"validate-event":!1,size:y(N),class:V(y(ee)),tabindex:y($)&&fe.filterable&&!y(D)?-1:void 0,onCompositionstart:we,onCompositionupdate:we,onCompositionend:we,onFocus:rt,onBlur:vt,onInput:Qe},{suffix:re(()=>[y(U)?(R(),ce(y(Ke),{key:"clear",class:V([y(u).e("icon"),"icon-circle-close"]),onClick:tt($e,["stop"])},{default:re(()=>[q(y(kl))]),_:1},8,["class","onClick"])):(R(),ce(y(Ke),{key:"arrow-down",class:V(y(Q)),onClick:le[0]||(le[0]=tt(ke=>de(),["stop"]))},{default:re(()=>[q(y(Ml))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),y($)?(R(),K("div",{key:0,ref_key:"tagWrapper",ref:p,class:V(y(l).e("tags"))},[(R(!0),K(je,null,Ot(T.value,ke=>(R(),ce(y(ep),{key:ke.key,type:fe.tagType,size:y(O),hit:ke.hitState,closable:ke.closable,"disable-transitions":"",onClose:te=>X(ke)},{default:re(()=>[ke.isCollapseTag===!1?(R(),K("span",Rge,De(ke.text),1)):(R(),ce(y(ea),{key:1,disabled:b.value||!fe.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:re(()=>[Y("span",null,De(ke.text),1)]),content:re(()=>[Y("div",{class:V(y(l).e("collapse-tags"))},[(R(!0),K(je,null,Ot(M.value.slice(fe.maxCollapseTags),(te,Ve)=>(R(),K("div",{key:Ve,class:V(y(l).e("collapse-tag"))},[(R(),ce(y(ep),{key:te.key,class:"in-tooltip",type:fe.tagType,size:y(O),hit:te.hitState,closable:te.closable,"disable-transitions":"",onClose:st=>X(te)},{default:re(()=>[Y("span",null,De(te.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),fe.filterable&&!y(D)?dt((R(),K("input",{key:0,"onUpdate:modelValue":le[2]||(le[2]=ke=>x.value=ke),type:"text",class:V(y(l).e("search-input")),placeholder:y(Z)?"":y(L),onInput:le[3]||(le[3]=ke=>Qe(x.value,ke)),onClick:le[4]||(le[4]=tt(ke=>de(!0),["stop"])),onKeydown:Ft(Fe,["delete"]),onCompositionstart:we,onCompositionupdate:we,onCompositionend:we,onFocus:rt,onBlur:vt},null,42,Oge)),[[HT,x.value]]):se("v-if",!0)],2)):se("v-if",!0)],38)),[[y(pl),()=>de(!1),y(j)]])]),content:re(()=>[dt(q(y(BF),{ref_key:"cascaderPanelRef",ref:g,modelValue:y(ae),"onUpdate:modelValue":le[8]||(le[8]=ke=>cn(ae)?ae.value=ke:null),options:fe.options,props:r.props,border:!1,"render-label":fe.$slots.default,onExpandChange:Ce,onClose:le[9]||(le[9]=ke=>fe.$nextTick(()=>de(!1)))},null,8,["modelValue","options","props","render-label"]),[[Kt,!w.value]]),fe.filterable?dt((R(),ce(y(hs),{key:0,ref_key:"suggestionPanel",ref:m,tag:"ul",class:V(y(l).e("suggestion-panel")),"view-class":y(l).e("suggestion-list"),onKeydown:Ae},{default:re(()=>[A.value.length?(R(!0),K(je,{key:0},Ot(A.value,ke=>(R(),K("li",{key:ke.uid,class:V([y(l).e("suggestion-item"),y(l).is("checked",ke.checked)]),tabindex:-1,onClick:te=>We(ke)},[Y("span",null,De(ke.text),1),ke.checked?(R(),ce(y(Ke),{key:0},{default:re(()=>[q(y(Jp))]),_:1})):se("v-if",!0)],10,$ge))),128)):_e(fe.$slots,"empty",{key:1},()=>[Y("li",{class:V(y(l).e("empty-text"))},De(y(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Kt,w.value]]):se("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var yy=Pe(Vge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);yy.install=e=>{e.component(yy.name,yy)};const zge=yy,Fge=zge,Hge=Le({checked:{type:Boolean,default:!1}}),Gge={"update:checked":e=>Un(e),[mn]:e=>Un(e)},Wge=ne({name:"ElCheckTag"}),Kge=ne({...Wge,props:Hge,emits:Gge,setup(e,{emit:t}){const n=e,r=Me("check-tag"),a=P(()=>[r.b(),r.is("checked",n.checked)]),i=()=>{const o=!n.checked;t(mn,o),t("update:checked",o)};return(o,s)=>(R(),K("span",{class:V(y(a)),onClick:i},[_e(o.$slots,"default")],2))}});var Uge=Pe(Kge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const Yge=_t(Uge),VF=Symbol("rowContextKey"),jge=["start","center","end","space-around","space-between","space-evenly"],qge=["top","middle","bottom"],Xge=Le({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:jge,default:"start"},align:{type:String,values:qge}}),Zge=ne({name:"ElRow"}),Jge=ne({...Zge,props:Xge,setup(e){const t=e,n=Me("row"),r=P(()=>t.gutter);Et(VF,{gutter:r});const a=P(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),i=P(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(o,s)=>(R(),ce(Ct(o.tag),{class:V(y(i)),style:Ye(y(a))},{default:re(()=>[_e(o.$slots,"default")]),_:3},8,["class","style"]))}});var Qge=Pe(Jge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const eme=_t(Qge),tme=Le({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:ue([Number,Object]),default:()=>Cn({})},sm:{type:ue([Number,Object]),default:()=>Cn({})},md:{type:ue([Number,Object]),default:()=>Cn({})},lg:{type:ue([Number,Object]),default:()=>Cn({})},xl:{type:ue([Number,Object]),default:()=>Cn({})}}),nme=ne({name:"ElCol"}),rme=ne({...nme,props:tme,setup(e){const t=e,{gutter:n}=Ge(VF,{gutter:P(()=>0)}),r=Me("col"),a=P(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),i=P(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];at(c)&&(u==="span"?o.push(r.b(`${t[u]}`)):c>0&&o.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{at(t[u])?o.push(r.b(`${u}-${t[u]}`)):Mt(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{o.push(c!=="span"?r.b(`${u}-${c}-${f}`):r.b(`${u}-${f}`))})}),n.value&&o.push(r.is("guttered")),[r.b(),o]});return(o,s)=>(R(),ce(Ct(o.tag),{class:V(y(i)),style:Ye(y(a))},{default:re(()=>[_e(o.$slots,"default")]),_:3},8,["class","style"]))}});var ame=Pe(rme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const ime=_t(ame),VP=e=>typeof at(e),ome=Le({accordion:Boolean,modelValue:{type:ue([Array,String,Number]),default:()=>Cn([])}}),sme={[wt]:VP,[mn]:VP},zF=Symbol("collapseContextKey"),lme=(e,t)=>{const n=H(sc(e.modelValue)),r=i=>{n.value=i;const o=e.accordion?n.value[0]:n.value;t(wt,o),t(mn,o)},a=i=>{if(e.accordion)r([n.value[0]===i?"":i]);else{const o=[...n.value],s=o.indexOf(i);s>-1?o.splice(s,1):o.push(i),r(o)}};return xe(()=>e.modelValue,()=>n.value=sc(e.modelValue),{deep:!0}),Et(zF,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},ume=()=>{const e=Me("collapse");return{rootKls:P(()=>e.b())}},cme=ne({name:"ElCollapse"}),fme=ne({...cme,props:ome,emits:sme,setup(e,{expose:t,emit:n}){const r=e,{activeNames:a,setActiveNames:i}=lme(r,n),{rootKls:o}=ume();return t({activeNames:a,setActiveNames:i}),(s,l)=>(R(),K("div",{class:V(y(o))},[_e(s.$slots,"default")],2))}});var dme=Pe(fme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const hme=ne({name:"ElCollapseTransition"}),vme=ne({...hme,setup(e){const t=Me("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){a.dataset.oldOverflow=a.style.overflow,a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,i)=>(R(),ce(Bn,St({name:y(t).b()},yj(r)),{default:re(()=>[_e(a.$slots,"default")]),_:3},16,["name"]))}});var by=Pe(vme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);by.install=e=>{e.component(by.name,by)};const l1=by,pme=l1,gme=Le({title:{type:String,default:""},name:{type:ue([String,Number]),default:()=>Qb()},disabled:Boolean}),mme=e=>{const t=Ge(zF),n=H(!1),r=H(!1),a=H(Qb()),i=P(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:n,id:a,isActive:i,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:n.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),n.value=!1,r.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},yme=(e,{focusing:t,isActive:n,id:r})=>{const a=Me("collapse"),i=P(()=>[a.b("item"),a.is("active",y(n)),a.is("disabled",e.disabled)]),o=P(()=>[a.be("item","header"),a.is("active",y(n)),{focusing:y(t)&&!e.disabled}]),s=P(()=>[a.be("item","arrow"),a.is("active",y(n))]),l=P(()=>a.be("item","wrap")),u=P(()=>a.be("item","content")),c=P(()=>a.b(`content-${y(r)}`)),f=P(()=>a.b(`head-${y(r)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},bme=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],_me=["id","aria-hidden","aria-labelledby"],wme=ne({name:"ElCollapseItem"}),Sme=ne({...wme,props:gme,setup(e,{expose:t}){const n=e,{focusing:r,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=mme(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:d,itemContentKls:h,scopedContentId:v,scopedHeadId:p}=yme(n,{focusing:r,isActive:i,id:a});return t({isActive:i}),(g,m)=>(R(),K("div",{class:V(y(f))},[Y("button",{id:y(p),class:V(y(c)),"aria-expanded":y(i),"aria-controls":y(v),"aria-describedby":y(v),tabindex:g.disabled?-1:0,onClick:m[0]||(m[0]=(...b)=>y(s)&&y(s)(...b)),onKeydown:m[1]||(m[1]=Ft(tt((...b)=>y(l)&&y(l)(...b),["stop","prevent"]),["space","enter"])),onFocus:m[2]||(m[2]=(...b)=>y(o)&&y(o)(...b)),onBlur:m[3]||(m[3]=b=>r.value=!1)},[_e(g.$slots,"title",{},()=>[Ut(De(g.title),1)]),q(y(Ke),{class:V(y(u))},{default:re(()=>[q(y(jr))]),_:1},8,["class"])],42,bme),q(y(l1),null,{default:re(()=>[dt(Y("div",{id:y(v),role:"region",class:V(y(d)),"aria-hidden":!y(i),"aria-labelledby":y(p)},[Y("div",{class:V(y(h))},[_e(g.$slots,"default")],2)],10,_me),[[Kt,y(i)]])]),_:3})],2))}});var FF=Pe(Sme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const Cme=_t(dme,{CollapseItem:FF}),xme=Dn(FF),Tme=Le({color:{type:ue(Object),required:!0},vertical:{type:Boolean,default:!1}});let E_=!1;function tp(e,t){if(!Vt)return;const n=function(i){var o;(o=t.drag)==null||o.call(t,i)},r=function(i){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,E_=!1,(o=t.end)==null||o.call(t,i)},a=function(i){var o;E_||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),E_=!0,(o=t.start)==null||o.call(t,i))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a)}const Mme=e=>{const t=gt(),n=un(),r=un();function a(o){o.target!==n.value&&i(o)}function i(o){if(!r.value||!n.value)return;const l=t.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=jT(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}},kme=(e,{bar:t,thumb:n,handleDrag:r})=>{const a=gt(),i=Me("color-alpha-slider"),o=H(0),s=H(0),l=H();function u(){if(!n.value||e.vertical)return 0;const b=a.vnode.el,_=e.color.get("alpha");return b?Math.round(_*(b.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const b=a.vnode.el;if(!e.vertical)return 0;const _=e.color.get("alpha");return b?Math.round(_*(b.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:b,g:_,b:w}=e.color.toRgb();return`linear-gradient(to right, rgba(${b}, ${_}, ${w}, 0) 0%, rgba(${b}, ${_}, ${w}, 1) 100%)`}return""}function d(){o.value=u(),s.value=c(),l.value=f()}yt(()=>{if(!t.value||!n.value)return;const b={drag:_=>{r(_)},end:_=>{r(_)}};tp(t.value,b),tp(n.value,b),d()}),xe(()=>e.color.get("alpha"),()=>d()),xe(()=>e.color.value,()=>d());const h=P(()=>[i.b(),i.is("vertical",e.vertical)]),v=P(()=>i.e("bar")),p=P(()=>i.e("thumb")),g=P(()=>({background:l.value})),m=P(()=>({left:On(o.value),top:On(s.value)}));return{rootKls:h,barKls:v,barStyle:g,thumbKls:p,thumbStyle:m,update:d}},Ame="ElColorAlphaSlider",Eme=ne({name:Ame}),Ime=ne({...Eme,props:Tme,setup(e,{expose:t}){const n=e,{bar:r,thumb:a,handleDrag:i,handleClick:o}=Mme(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=kme(n,{bar:r,thumb:a,handleDrag:i});return t({update:d,bar:r,thumb:a}),(h,v)=>(R(),K("div",{class:V(y(s))},[Y("div",{ref_key:"bar",ref:r,class:V(y(l)),style:Ye(y(u)),onClick:v[0]||(v[0]=(...p)=>y(o)&&y(o)(...p))},null,6),Y("div",{ref_key:"thumb",ref:a,class:V(y(c)),style:Ye(y(f))},null,6)],2))}});var Dme=Pe(Ime,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const Pme=ne({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Me("color-hue-slider"),n=gt(),r=H(),a=H(),i=H(0),o=H(0),s=P(()=>e.color.get("hue"));xe(()=>s.value,()=>{d()});function l(h){h.target!==r.value&&u(h)}function u(h){if(!a.value||!r.value)return;const p=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:m}=jT(h);let b;if(e.vertical){let _=m-p.top;_=Math.min(_,p.height-r.value.offsetHeight/2),_=Math.max(r.value.offsetHeight/2,_),b=Math.round((_-r.value.offsetHeight/2)/(p.height-r.value.offsetHeight)*360)}else{let _=g-p.left;_=Math.min(_,p.width-r.value.offsetWidth/2),_=Math.max(r.value.offsetWidth/2,_),b=Math.round((_-r.value.offsetWidth/2)/(p.width-r.value.offsetWidth)*360)}e.color.set("hue",b)}function c(){if(!r.value)return 0;const h=n.vnode.el;if(e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(h.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const h=n.vnode.el;if(!e.vertical)return 0;const v=e.color.get("hue");return h?Math.round(v*(h.offsetHeight-r.value.offsetHeight/2)/360):0}function d(){i.value=c(),o.value=f()}return yt(()=>{if(!a.value||!r.value)return;const h={drag:v=>{u(v)},end:v=>{u(v)}};tp(a.value,h),tp(r.value,h),d()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:t}}});function Lme(e,t,n,r,a,i){return R(),K("div",{class:V([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Y("div",{ref:"bar",class:V(e.ns.e("bar")),onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},null,2),Y("div",{ref:"thumb",class:V(e.ns.e("thumb")),style:Ye({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var Rme=Pe(Pme,[["render",Lme],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const Ome=Le({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Sr,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:ue(Array)},validateEvent:{type:Boolean,default:!0}}),$me={[wt]:e=>lt(e)||Kn(e),[mn]:e=>lt(e)||Kn(e),activeChange:e=>lt(e)||Kn(e)},HF=Symbol("colorPickerContextKey"),zP=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},Nme=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},Bme=function(e){return typeof e=="string"&&e.includes("%")},Pf=function(e,t){Nme(e)&&(e="100%");const n=Bme(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)},FP={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},_y=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${FP[t]||t}${FP[n]||n}`},HP=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${_y(e)}${_y(t)}${_y(n)}`},I_={A:10,B:11,C:12,D:13,E:14,F:15},Hl=function(e){return e.length===2?(I_[e[0].toUpperCase()]||+e[0])*16+(I_[e[1].toUpperCase()]||+e[1]):I_[e[1].toUpperCase()]||+e[1]},Vme=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}},GP=(e,t,n)=>{e=Pf(e,255),t=Pf(t,255),n=Pf(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}},ah=function(e,t,n){e=Pf(e,360)*6,t=Pf(t,100),n=Pf(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 fv{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)Nt(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)Nt(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return ah(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}=Vme(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}=GP(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=Hl(r[0]+r[0]),i=Hl(r[1]+r[1]),o=Hl(r[2]+r[2])):(r.length===6||r.length===8)&&(a=Hl(r.slice(0,2)),i=Hl(r.slice(2,4)),o=Hl(r.slice(4,6))),r.length===8?this._alpha=Hl(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=GP(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=zP(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=`${HP(ah(t,n,r))}${_y(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=ah(t,n,r);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=zP(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}=ah(t,n,r);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=HP(ah(t,n,r))}}}const zme=ne({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Me("color-predefine"),{currentColor:n}=Ge(HF),r=H(i(e.colors,e.color));xe(()=>n.value,o=>{const s=new fv;s.fromString(o),r.value.forEach(l=>{l.selected=s.compare(l)})}),Da(()=>{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 fv;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:a,ns:t}}}),Fme=["onClick"];function Hme(e,t,n,r,a,i){return R(),K("div",{class:V(e.ns.b())},[Y("div",{class:V(e.ns.e("colors"))},[(R(!0),K(je,null,Ot(e.rgbaColors,(o,s)=>(R(),K("div",{key:e.colors[s],class:V([e.ns.e("color-selector"),e.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>e.handleSelect(s)},[Y("div",{style:Ye({backgroundColor:o.value})},null,4)],10,Fme))),128))],2)],2)}var Gme=Pe(zme,[["render",Hme],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Wme=ne({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Me("color-svpanel"),n=gt(),r=H(0),a=H(0),i=H("hsl(0, 100%, 50%)"),o=P(()=>{const u=e.color.get("hue"),c=e.color.get("value");return{hue:u,value:c}});function s(){const u=e.color.get("saturation"),c=e.color.get("value"),f=n.vnode.el,{clientWidth:d,clientHeight:h}=f;a.value=u*d/100,r.value=(100-c)*h/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:d,clientY:h}=jT(u);let v=d-f.left,p=h-f.top;v=Math.max(0,v),v=Math.min(v,f.width),p=Math.max(0,p),p=Math.min(p,f.height),a.value=v,r.value=p,e.color.set({saturation:v/f.width*100,value:100-p/f.height*100})}return xe(()=>o.value,()=>{s()}),yt(()=>{tp(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}}}),Kme=Y("div",null,null,-1),Ume=[Kme];function Yme(e,t,n,r,a,i){return R(),K("div",{class:V(e.ns.b()),style:Ye({backgroundColor:e.background})},[Y("div",{class:V(e.ns.e("white"))},null,2),Y("div",{class:V(e.ns.e("black"))},null,2),Y("div",{class:V(e.ns.e("cursor")),style:Ye({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Ume,6)],6)}var jme=Pe(Wme,[["render",Yme],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const qme=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],Xme=ne({name:"ElColorPicker"}),Zme=ne({...Xme,props:Ome,emits:$me,setup(e,{expose:t,emit:n}){const r=e,{t:a}=Ht(),i=Me("color"),{formItem:o}=aa(),s=qn(),l=wa(),{inputId:u,isLabeledByFormItem:c}=Dl(r,{formItemContext:o}),f=H(),d=H(),h=H(),v=H();let p=!0;const g=jt(new fv({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),m=H(!1),b=H(!1),_=H(""),w=P(()=>!r.modelValue&&!b.value?"transparent":M(g,r.showAlpha)),C=P(()=>!r.modelValue&&!b.value?"":g.value),S=P(()=>c.value?void 0:r.label||a("el.colorpicker.defaultLabel")),x=P(()=>c.value?o==null?void 0:o.labelId:void 0),T=P(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value)]);function M(I,z){if(!(I instanceof fv))throw new TypeError("color should be instance of _color Class");const{r:G,g:U,b:Z}=I.toRgb();return z?`rgba(${G}, ${U}, ${Z}, ${I.get("alpha")/100})`:`rgb(${G}, ${U}, ${Z})`}function A(I){m.value=I}const k=Qr(A,100);function E(){l.value||A(!0)}function D(){k(!1),L()}function L(){Ue(()=>{r.modelValue?g.fromString(r.modelValue):(g.value="",Ue(()=>{b.value=!1}))})}function B(){l.value||k(!m.value)}function N(){g.fromString(_.value)}function O(){const I=g.value;n(wt,I),n("change",I),r.validateEvent&&(o==null||o.validate("change").catch(z=>void 0)),k(!1),Ue(()=>{const z=new fv({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});g.compare(z)||L()})}function $(){k(!1),n(wt,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(o==null||o.validate("change").catch(I=>void 0)),L()}return yt(()=>{r.modelValue&&(_.value=C.value)}),xe(()=>r.modelValue,I=>{I?I&&I!==g.value&&(p=!1,g.fromString(I)):b.value=!1}),xe(()=>C.value,I=>{_.value=I,p&&n("activeChange",I),p=!0}),xe(()=>g.value,()=>{!r.modelValue&&!b.value&&(b.value=!0)}),xe(()=>m.value,()=>{Ue(()=>{var I,z,G;(I=f.value)==null||I.update(),(z=d.value)==null||z.update(),(G=h.value)==null||G.update()})}),Et(HF,{currentColor:C}),t({color:g,show:E,hide:D}),(I,z)=>(R(),ce(y(ea),{ref_key:"popper",ref:v,visible:m.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[y(i).be("picker","panel"),y(i).b("dropdown"),I.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${y(i).namespace.value}-zoom-in-top`,persistent:""},{content:re(()=>[dt((R(),K("div",null,[Y("div",{class:V(y(i).be("dropdown","main-wrapper"))},[q(Rme,{ref_key:"hue",ref:f,class:"hue-slider",color:y(g),vertical:""},null,8,["color"]),q(jme,{ref_key:"sv",ref:d,color:y(g)},null,8,["color"])],2),I.showAlpha?(R(),ce(Dme,{key:0,ref_key:"alpha",ref:h,color:y(g)},null,8,["color"])):se("v-if",!0),I.predefine?(R(),ce(Gme,{key:1,ref:"predefine",color:y(g),colors:I.predefine},null,8,["color","colors"])):se("v-if",!0),Y("div",{class:V(y(i).be("dropdown","btns"))},[Y("span",{class:V(y(i).be("dropdown","value"))},[q(y(Rr),{modelValue:_.value,"onUpdate:modelValue":z[0]||(z[0]=G=>_.value=G),"validate-event":!1,size:"small",onKeyup:Ft(N,["enter"]),onBlur:N},null,8,["modelValue","onKeyup"])],2),q(y(_r),{class:V(y(i).be("dropdown","link-btn")),text:"",size:"small",onClick:$},{default:re(()=>[Ut(De(y(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),q(y(_r),{plain:"",size:"small",class:V(y(i).be("dropdown","btn")),onClick:O},{default:re(()=>[Ut(De(y(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[y(pl),D]])]),default:re(()=>[Y("div",{id:y(u),class:V(y(T)),role:"button","aria-label":y(S),"aria-labelledby":y(x),"aria-description":y(a)("el.colorpicker.description",{color:I.modelValue||""}),tabindex:I.tabindex,onKeydown:Ft(B,["enter"])},[y(l)?(R(),K("div",{key:0,class:V(y(i).be("picker","mask"))},null,2)):se("v-if",!0),Y("div",{class:V(y(i).be("picker","trigger")),onClick:B},[Y("span",{class:V([y(i).be("picker","color"),y(i).is("alpha",I.showAlpha)])},[Y("span",{class:V(y(i).be("picker","color-inner")),style:Ye({backgroundColor:y(w)})},[dt(q(y(Ke),{class:V([y(i).be("picker","icon"),y(i).is("icon-arrow-down")])},{default:re(()=>[q(y(Ml))]),_:1},8,["class"]),[[Kt,I.modelValue||b.value]]),dt(q(y(Ke),{class:V([y(i).be("picker","empty"),y(i).is("icon-close")])},{default:re(()=>[q(y(Bi))]),_:1},8,["class"]),[[Kt,!I.modelValue&&!b.value]])],6)],2)],2)],42,qme)]),_:1},8,["visible","popper-class","transition"]))}});var Jme=Pe(Zme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const Qme=_t(Jme),eye=ne({name:"ElContainer"}),tye=ne({...eye,props:{direction:{type:String}},setup(e){const t=e,n=Mr(),r=Me("container"),a=P(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(o=>{const s=o.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,o)=>(R(),K("section",{class:V([y(r).b(),y(r).is("vertical",y(a))])},[_e(i.$slots,"default")],2))}});var nye=Pe(tye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const rye=ne({name:"ElAside"}),aye=ne({...rye,props:{width:{type:String,default:null}},setup(e){const t=e,n=Me("aside"),r=P(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,i)=>(R(),K("aside",{class:V(y(n).b()),style:Ye(y(r))},[_e(a.$slots,"default")],6))}});var GF=Pe(aye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const iye=ne({name:"ElFooter"}),oye=ne({...iye,props:{height:{type:String,default:null}},setup(e){const t=e,n=Me("footer"),r=P(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(R(),K("footer",{class:V(y(n).b()),style:Ye(y(r))},[_e(a.$slots,"default")],6))}});var WF=Pe(oye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const sye=ne({name:"ElHeader"}),lye=ne({...sye,props:{height:{type:String,default:null}},setup(e){const t=e,n=Me("header"),r=P(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(R(),K("header",{class:V(y(n).b()),style:Ye(y(r))},[_e(a.$slots,"default")],6))}});var KF=Pe(lye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const uye=ne({name:"ElMain"}),cye=ne({...uye,setup(e){const t=Me("main");return(n,r)=>(R(),K("main",{class:V(y(t).b())},[_e(n.$slots,"default")],2))}});var UF=Pe(cye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const fye=_t(nye,{Aside:GF,Footer:WF,Header:KF,Main:UF}),dye=Dn(GF),hye=Dn(WF),vye=Dn(KF),pye=Dn(UF);var YF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(o);var u=this.$utils(),c=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return i.bind(this)(c)}}})})(YF);var gye=YF.exports;const mye=ko(gye);var jF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){var n="week",r="year";return function(a,i,o){var s=i.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=o(this).startOf(r).add(1,r).date(u),f=o(this).endOf(n);if(c.isBefore(f))return 1}var d=o(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(d,n,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(jF);var yye=jF.exports;const bye=ko(yye);var qF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),i=this.week(),o=this.year();return i===1&&a===11?o+1:a===0&&i>=52?o-1:o}}})})(qF);var _ye=qF.exports;const wye=ko(_ye);var XF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){return function(n,r,a){r.prototype.dayOfYear=function(i){var o=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return i==null?o:this.add(i-o,"day")}}})})(XF);var Sye=XF.exports;const Cye=ko(Sye);var ZF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(ZF);var xye=ZF.exports;const Tye=ko(xye);var JF={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(vs,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(JF);var Mye=JF.exports;const kye=ko(Mye),HM=Symbol(),Aye=Le({...VM,type:{type:ue(String),default:"date"}}),Eye=["date","dates","year","month","week","range"],GM=Le({disabledDate:{type:ue(Function)},date:{type:ue(Object),required:!0},minDate:{type:ue(Object)},maxDate:{type:ue(Object)},parsedValue:{type:ue([Object,Array])},rangeState:{type:ue(Object),default:()=>({endDate:null,selecting:!1})}}),QF=Le({type:{type:ue(String),required:!0,values:ple}}),e8=Le({unlinkPanels:Boolean,parsedValue:{type:ue(Array)}}),t8=e=>({type:String,values:Eye,default:e}),Iye=Le({...QF,parsedValue:{type:ue([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),Dye=Le({...GM,cellClassName:{type:ue(Function)},showWeekNumber:Boolean,selectionMode:t8("date")}),Pye=["changerange","pick","select"],nx=e=>{if(!He(e))return!1;const[t,n]=e;return mt.isDayjs(t)&&mt.isDayjs(n)&&t.isSameOrBefore(n)},n8=(e,{lang:t,unit:n,unlinkPanels:r})=>{let a;if(He(e)){let[i,o]=e.map(s=>mt(s).locale(t));return r||(o=i.add(1,n)),[i,o]}else e?a=mt(e):a=mt();return a=a.locale(t),[a,a.add(1,n)]},Lye=(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)}},rx=(e="")=>["normal","today"].includes(e),Rye=(e,t)=>{const{lang:n}=Ht(),r=H(),a=H(),i=H(),o=H(),s=H([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(I=>I.toLowerCase()),f=P(()=>u>3?7-u:-u),d=P(()=>{const I=e.date.startOf("month");return I.subtract(I.day()||7,"day")}),h=P(()=>c.concat(c).slice(u,u+7)),v=P(()=>h5(y(w)).some(I=>I.isCurrent)),p=P(()=>{const I=e.date.startOf("month"),z=I.day()||7,G=I.daysInMonth(),U=I.subtract(1,"month").daysInMonth();return{startOfMonthDay:z,dateCountOfMonth:G,dateCountOfLastMonth:U}}),g=P(()=>e.selectionMode==="dates"?jo(e.parsedValue):[]),m=(I,{count:z,rowIndex:G,columnIndex:U})=>{const{startOfMonthDay:Z,dateCountOfMonth:ae,dateCountOfLastMonth:J}=y(p),Q=y(f);if(G>=0&&G<=1){const ee=Z+Q<0?7+Z+Q:Z+Q;if(U+G*7>=ee)return I.text=z,!0;I.text=J-(ee-U%7)+1+G*7,I.type="prev-month"}else return z<=ae?I.text=z:(I.text=z-ae,I.type="next-month"),!0;return!1},b=(I,{columnIndex:z,rowIndex:G},U)=>{const{disabledDate:Z,cellClassName:ae}=e,J=y(g),Q=m(I,{count:U,rowIndex:G,columnIndex:z}),ee=I.dayjs.toDate();return I.selected=J.find(j=>j.valueOf()===I.dayjs.valueOf()),I.isSelected=!!I.selected,I.isCurrent=S(I),I.disabled=Z==null?void 0:Z(ee),I.customClass=ae==null?void 0:ae(ee),Q},_=I=>{if(e.selectionMode==="week"){const[z,G]=e.showWeekNumber?[1,7]:[0,6],U=$(I[z+1]);I[z].inRange=U,I[z].start=U,I[G].inRange=U,I[G].end=U}},w=P(()=>{const{minDate:I,maxDate:z,rangeState:G,showWeekNumber:U}=e,Z=y(f),ae=y(s),J="day";let Q=1;if(U)for(let ee=0;ee<6;ee++)ae[ee][0]||(ae[ee][0]={type:"week",text:y(d).add(ee*7+1,J).week()});return Lye({row:6,column:7},ae,{startDate:I,columnIndexOffset:U?1:0,nextEndDate:G.endDate||z||G.selecting&&I||null,now:mt().locale(y(n)).startOf(J),unit:J,relativeDateGetter:ee=>y(d).add(ee-Z,J),setCellMetadata:(...ee)=>{b(...ee,Q)&&(Q+=1)},setRowMetadata:_}),ae});xe(()=>e.date,async()=>{var I;(I=y(r))!=null&&I.contains(document.activeElement)&&(await Ue(),await C())});const C=async()=>{var I;return(I=y(a))==null?void 0:I.focus()},S=I=>e.selectionMode==="date"&&rx(I.type)&&x(I,e.parsedValue),x=(I,z)=>z?mt(z).locale(y(n)).isSame(e.date.date(Number(I.text)),"day"):!1,T=(I,z)=>{const G=I*7+(z-(e.showWeekNumber?1:0))-y(f);return y(d).add(G,"day")},M=I=>{var z;if(!e.rangeState.selecting)return;let G=I.target;if(G.tagName==="SPAN"&&(G=(z=G.parentNode)==null?void 0:z.parentNode),G.tagName==="DIV"&&(G=G.parentNode),G.tagName!=="TD")return;const U=G.parentNode.rowIndex-1,Z=G.cellIndex;y(w)[U][Z].disabled||(U!==y(i)||Z!==y(o))&&(i.value=U,o.value=Z,t("changerange",{selecting:!0,endDate:T(U,Z)}))},A=I=>!y(v)&&(I==null?void 0:I.text)===1&&I.type==="normal"||I.isCurrent,k=I=>{l||y(v)||e.selectionMode!=="date"||O(I,!0)},E=I=>{I.target.closest("td")&&(l=!0)},D=I=>{I.target.closest("td")&&(l=!1)},L=I=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:I,maxDate:null}),t("select",!0)):(I>=e.minDate?t("pick",{minDate:e.minDate,maxDate:I}):t("pick",{minDate:I,maxDate:e.minDate}),t("select",!1))},B=I=>{const z=I.week(),G=`${I.year()}w${z}`;t("pick",{year:I.year(),week:z,value:G,date:I.startOf("week")})},N=(I,z)=>{const G=z?jo(e.parsedValue).filter(U=>(U==null?void 0:U.valueOf())!==I.valueOf()):jo(e.parsedValue).concat([I]);t("pick",G)},O=(I,z=!1)=>{const G=I.target.closest("td");if(!G)return;const U=G.parentNode.rowIndex-1,Z=G.cellIndex,ae=y(w)[U][Z];if(ae.disabled||ae.type==="week")return;const J=T(U,Z);switch(e.selectionMode){case"range":{L(J);break}case"date":{t("pick",J,z);break}case"week":{B(J);break}case"dates":{N(J,!!ae.selected);break}}},$=I=>{if(e.selectionMode!=="week")return!1;let z=e.date.startOf("day");if(I.type==="prev-month"&&(z=z.subtract(1,"month")),I.type==="next-month"&&(z=z.add(1,"month")),z=z.date(Number.parseInt(I.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const G=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(G,"day").isSame(z,"day")}return!1};return{WEEKS:h,rows:w,tbodyRef:r,currentCellRef:a,focus:C,isCurrent:S,isWeekActive:$,isSelectedCell:A,handlePickDate:O,handleMouseUp:D,handleMouseDown:E,handleMouseMove:M,handleFocus:k}},Oye=(e,{isCurrent:t,isWeekActive:n})=>{const r=Me("date-table"),{t:a}=Ht(),i=P(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"}]),o=P(()=>a("el.datepicker.dateTablePrompt")),s=P(()=>a("el.datepicker.week"));return{tableKls:i,tableLabel:o,weekLabel:s,getCellClasses:c=>{const f=[];return rx(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),t(c)&&f.push("current"),c.inRange&&(rx(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}},$ye=Le({cell:{type:ue(Object)}});var Nye=ne({name:"ElDatePickerCell",props:$ye,setup(e){const t=Me("date-table-cell"),{slots:n}=Ge(HM);return()=>{const{cell:r}=e;if(n.default){const a=n.default(r).filter(i=>i.patchFlag!==-2&&i.type.toString()!=="Symbol(Comment)");if(a.length)return a}return q("div",{class:t.b()},[q("span",{class:t.e("text")},[r==null?void 0:r.text])])}}});const Bye=["aria-label"],Vye={key:0,scope:"col"},zye=["aria-label"],Fye=["aria-current","aria-selected","tabindex"],Hye=ne({__name:"basic-date-table",props:Dye,emits:Pye,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}=Rye(r,n),{tableLabel:m,tableKls:b,weekLabel:_,getCellClasses:w,getRowKls:C,t:S}=Oye(r,{isCurrent:u,isWeekActive:c});return t({focus:l}),(x,T)=>(R(),K("table",{"aria-label":y(m),class:V(y(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:T[1]||(T[1]=(...M)=>y(d)&&y(d)(...M)),onMousemove:T[2]||(T[2]=(...M)=>y(p)&&y(p)(...M)),onMousedown:T[3]||(T[3]=tt((...M)=>y(v)&&y(v)(...M),["prevent"])),onMouseup:T[4]||(T[4]=(...M)=>y(h)&&y(h)(...M))},[Y("tbody",{ref_key:"tbodyRef",ref:o},[Y("tr",null,[x.showWeekNumber?(R(),K("th",Vye,De(y(_)),1)):se("v-if",!0),(R(!0),K(je,null,Ot(y(a),(M,A)=>(R(),K("th",{key:A,"aria-label":y(S)("el.datepicker.weeksFull."+M),scope:"col"},De(y(S)("el.datepicker.weeks."+M)),9,zye))),128))]),(R(!0),K(je,null,Ot(y(i),(M,A)=>(R(),K("tr",{key:A,class:V(y(C)(M[1]))},[(R(!0),K(je,null,Ot(M,(k,E)=>(R(),K("td",{key:`${A}.${E}`,ref_for:!0,ref:D=>y(f)(k)&&(s.value=D),class:V(y(w)(k)),"aria-current":k.isCurrent?"date":void 0,"aria-selected":k.isCurrent,tabindex:y(f)(k)?0:-1,onFocus:T[0]||(T[0]=(...D)=>y(g)&&y(g)(...D))},[q(y(Nye),{cell:k},null,8,["cell"])],42,Fye))),128))],2))),128))],512)],42,Bye))}});var ax=Pe(Hye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const Gye=Le({...GM,selectionMode:t8("month")}),Wye=["aria-label"],Kye=["aria-selected","aria-label","tabindex","onKeydown"],Uye={class:"cell"},Yye=ne({__name:"basic-month-table",props:Gye,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=(w,C,S)=>{const x=mt().locale(S).startOf("month").month(C).year(w),T=x.daysInMonth();return tl(T).map(M=>x.add(M,"day").toDate())},i=Me("month-table"),{t:o,lang:s}=Ht(),l=H(),u=H(),c=H(r.date.locale("en").localeData().monthsShort().map(w=>w.toLowerCase())),f=H([[],[],[]]),d=H(),h=H(),v=P(()=>{var w,C;const S=f.value,x=mt().locale(s.value).startOf("month");for(let T=0;T<3;T++){const M=S[T];for(let A=0;A<4;A++){const k=M[A]||(M[A]={row:T,column:A,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});k.type="normal";const E=T*4+A,D=r.date.startOf("year").month(E),L=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;k.inRange=!!(r.minDate&&D.isSameOrAfter(r.minDate,"month")&&L&&D.isSameOrBefore(L,"month"))||!!(r.minDate&&D.isSameOrBefore(r.minDate,"month")&&L&&D.isSameOrAfter(L,"month")),(w=r.minDate)!=null&&w.isSameOrAfter(L)?(k.start=!!(L&&D.isSame(L,"month")),k.end=r.minDate&&D.isSame(r.minDate,"month")):(k.start=!!(r.minDate&&D.isSame(r.minDate,"month")),k.end=!!(L&&D.isSame(L,"month"))),x.isSame(D)&&(k.type="today"),k.text=E,k.disabled=((C=r.disabledDate)==null?void 0:C.call(r,D.toDate()))||!1}}return S}),p=()=>{var w;(w=u.value)==null||w.focus()},g=w=>{const C={},S=r.date.year(),x=new Date,T=w.text;return C.disabled=r.disabledDate?a(S,T,s.value).every(r.disabledDate):!1,C.current=jo(r.parsedValue).findIndex(M=>mt.isDayjs(M)&&M.year()===S&&M.month()===T)>=0,C.today=x.getFullYear()===S&&x.getMonth()===T,w.inRange&&(C["in-range"]=!0,w.start&&(C["start-date"]=!0),w.end&&(C["end-date"]=!0)),C},m=w=>{const C=r.date.year(),S=w.text;return jo(r.date).findIndex(x=>x.year()===C&&x.month()===S)>=0},b=w=>{var C;if(!r.rangeState.selecting)return;let S=w.target;if(S.tagName==="A"&&(S=(C=S.parentNode)==null?void 0:C.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const x=S.parentNode.rowIndex,T=S.cellIndex;v.value[x][T].disabled||(x!==d.value||T!==h.value)&&(d.value=x,h.value=T,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(x*4+T)}))},_=w=>{var C;const S=(C=w.target)==null?void 0:C.closest("td");if((S==null?void 0:S.tagName)!=="TD"||Li(S,"disabled"))return;const x=S.cellIndex,M=S.parentNode.rowIndex*4+x,A=r.date.startOf("year").month(M);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&A>=r.minDate?n("pick",{minDate:r.minDate,maxDate:A}):n("pick",{minDate:A,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:A,maxDate:null}),n("select",!0)):n("pick",M)};return xe(()=>r.date,async()=>{var w,C;(w=l.value)!=null&&w.contains(document.activeElement)&&(await Ue(),(C=u.value)==null||C.focus())}),t({focus:p}),(w,C)=>(R(),K("table",{role:"grid","aria-label":y(o)("el.datepicker.monthTablePrompt"),class:V(y(i).b()),onClick:_,onMousemove:b},[Y("tbody",{ref_key:"tbodyRef",ref:l},[(R(!0),K(je,null,Ot(y(v),(S,x)=>(R(),K("tr",{key:x},[(R(!0),K(je,null,Ot(S,(T,M)=>(R(),K("td",{key:M,ref_for:!0,ref:A=>m(T)&&(u.value=A),class:V(g(T)),"aria-selected":`${m(T)}`,"aria-label":y(o)(`el.datepicker.month${+T.text+1}`),tabindex:m(T)?0:-1,onKeydown:[Ft(tt(_,["prevent","stop"]),["space"]),Ft(tt(_,["prevent","stop"]),["enter"])]},[Y("div",null,[Y("span",Uye,De(y(o)("el.datepicker.months."+c.value[T.text])),1)])],42,Kye))),128))]))),128))],512)],42,Wye))}});var ix=Pe(Yye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:jye,disabledDate:qye,parsedValue:Xye}=GM,Zye=Le({date:jye,disabledDate:qye,parsedValue:Xye}),Jye=["aria-label"],Qye=["aria-selected","tabindex","onKeydown"],e0e={class:"cell"},t0e={key:1},n0e=ne({__name:"basic-year-table",props:Zye,emits:["pick"],setup(e,{expose:t,emit:n}){const r=e,a=(p,g)=>{const m=mt(String(p)).locale(g).startOf("year"),_=m.endOf("year").dayOfYear();return tl(_).map(w=>m.add(w,"day").toDate())},i=Me("year-table"),{t:o,lang:s}=Ht(),l=H(),u=H(),c=P(()=>Math.floor(r.date.year()/10)*10),f=()=>{var p;(p=u.value)==null||p.focus()},d=p=>{const g={},m=mt().locale(s.value);return g.disabled=r.disabledDate?a(p,s.value).every(r.disabledDate):!1,g.current=jo(r.parsedValue).findIndex(b=>b.year()===p)>=0,g.today=m.year()===p,g},h=p=>p===c.value&&r.date.year()<c.value&&r.date.year()>c.value+9||jo(r.date).findIndex(g=>g.year()===p)>=0,v=p=>{const m=p.target.closest("td");if(m&&m.textContent){if(Li(m,"disabled"))return;const b=m.textContent||m.innerText;n("pick",Number(b))}};return xe(()=>r.date,async()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&(await Ue(),(g=u.value)==null||g.focus())}),t({focus:f}),(p,g)=>(R(),K("table",{role:"grid","aria-label":y(o)("el.datepicker.yearTablePrompt"),class:V(y(i).b()),onClick:v},[Y("tbody",{ref_key:"tbodyRef",ref:l},[(R(),K(je,null,Ot(3,(m,b)=>Y("tr",{key:b},[(R(),K(je,null,Ot(4,(_,w)=>(R(),K(je,{key:b+"_"+w},[b*4+w<10?(R(),K("td",{key:0,ref_for:!0,ref:C=>h(y(c)+b*4+w)&&(u.value=C),class:V(["available",d(y(c)+b*4+w)]),"aria-selected":`${h(y(c)+b*4+w)}`,tabindex:h(y(c)+b*4+w)?0:-1,onKeydown:[Ft(tt(v,["prevent","stop"]),["space"]),Ft(tt(v,["prevent","stop"]),["enter"])]},[Y("span",e0e,De(y(c)+b*4+w),1)],42,Qye)):(R(),K("td",t0e))],64))),64))])),64))],512)],10,Jye))}});var r0e=Pe(n0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const a0e=["onClick"],i0e=["aria-label"],o0e=["aria-label"],s0e=["aria-label"],l0e=["aria-label"],u0e=ne({__name:"panel-date-pick",props:Iye,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(ye,fe,le)=>!0,a=Me("picker-panel"),i=Me("date-picker"),o=yc(),s=Mr(),{t:l,lang:u}=Ht(),c=Ge("EP_PICKER_BASE"),f=Ge(s1),{shortcuts:d,disabledDate:h,cellClassName:v,defaultTime:p}=c.props,g=kn(c.props,"defaultValue"),m=H(),b=H(mt().locale(u.value)),_=H(!1);let w=!1;const C=P(()=>mt(p).locale(u.value)),S=P(()=>b.value.month()),x=P(()=>b.value.year()),T=H([]),M=H(null),A=H(null),k=ye=>T.value.length>0?r(ye,T.value,n.format||"HH:mm:ss"):!0,E=ye=>p&&!oe.value&&!_.value&&!w?C.value.year(ye.year()).month(ye.month()).date(ye.date()):Q.value?ye.millisecond(0):ye.startOf("day"),D=(ye,...fe)=>{if(!ye)t("pick",ye,...fe);else if(He(ye)){const le=ye.map(E);t("pick",le,...fe)}else t("pick",E(ye),...fe);M.value=null,A.value=null,_.value=!1,w=!1},L=(ye,fe)=>{if(z.value==="date"){ye=ye;let le=n.parsedValue?n.parsedValue.year(ye.year()).month(ye.month()).date(ye.date()):ye;k(le)||(le=T.value[0][0].year(ye.year()).month(ye.month()).date(ye.date())),b.value=le,D(le,Q.value||fe)}else z.value==="week"?D(ye.date):z.value==="dates"&&D(ye,!0)},B=ye=>{const fe=ye?"add":"subtract";b.value=b.value[fe](1,"month"),Qe("month")},N=ye=>{const fe=b.value,le=ye?"add":"subtract";b.value=O.value==="year"?fe[le](10,"year"):fe[le](1,"year"),Qe("year")},O=H("date"),$=P(()=>{const ye=l("el.datepicker.year");if(O.value==="year"){const fe=Math.floor(x.value/10)*10;return ye?`${fe} ${ye} - ${fe+9} ${ye}`:`${fe} - ${fe+9}`}return`${x.value} ${ye}`}),I=ye=>{const fe=it(ye.value)?ye.value():ye.value;if(fe){w=!0,D(mt(fe).locale(u.value));return}ye.onClick&&ye.onClick({attrs:o,slots:s,emit:t})},z=P(()=>{const{type:ye}=n;return["week","month","year","dates"].includes(ye)?ye:"date"}),G=P(()=>z.value==="date"?O.value:z.value),U=P(()=>!!d.length),Z=async ye=>{b.value=b.value.startOf("month").month(ye),z.value==="month"?D(b.value,!1):(O.value="date",["month","year","date","week"].includes(z.value)&&(D(b.value,!0),await Ue(),rt())),Qe("month")},ae=async ye=>{z.value==="year"?(b.value=b.value.startOf("year").year(ye),D(b.value,!1)):(b.value=b.value.year(ye),O.value="month",["month","year","date","week"].includes(z.value)&&(D(b.value,!0),await Ue(),rt())),Qe("year")},J=async ye=>{O.value=ye,await Ue(),rt()},Q=P(()=>n.type==="datetime"||n.type==="datetimerange"),ee=P(()=>Q.value||z.value==="dates"),j=P(()=>h?n.parsedValue?He(n.parsedValue)?h(n.parsedValue[0].toDate()):h(n.parsedValue.toDate()):!0:!1),de=()=>{if(z.value==="dates")D(n.parsedValue);else{let ye=n.parsedValue;if(!ye){const fe=mt(p).locale(u.value),le=Fe();ye=fe.year(le.year()).month(le.month()).date(le.date())}b.value=ye,D(ye)}},ve=P(()=>h?h(mt().locale(u.value).toDate()):!1),ie=()=>{const fe=mt().locale(u.value).toDate();_.value=!0,(!h||!h(fe))&&k(fe)&&(b.value=mt().locale(u.value),D(b.value))},W=P(()=>iF(n.format)),X=P(()=>aF(n.format)),oe=P(()=>{if(A.value)return A.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||b.value).format(W.value)}),pe=P(()=>{if(M.value)return M.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||b.value).format(X.value)}),Se=H(!1),me=()=>{Se.value=!0},Ee=()=>{Se.value=!1},Ce=ye=>({hour:ye.hour(),minute:ye.minute(),second:ye.second(),year:ye.year(),month:ye.month(),date:ye.date()}),we=(ye,fe,le)=>{const{hour:ke,minute:te,second:Ve}=Ce(ye),st=n.parsedValue?n.parsedValue.hour(ke).minute(te).second(Ve):ye;b.value=st,D(b.value,!0),le||(Se.value=fe)},Te=ye=>{const fe=mt(ye,W.value).locale(u.value);if(fe.isValid()&&k(fe)){const{year:le,month:ke,date:te}=Ce(b.value);b.value=fe.year(le).month(ke).date(te),A.value=null,Se.value=!1,D(b.value,!0)}},$e=ye=>{const fe=mt(ye,X.value).locale(u.value);if(fe.isValid()){if(h&&h(fe.toDate()))return;const{hour:le,minute:ke,second:te}=Ce(b.value);b.value=fe.hour(le).minute(ke).second(te),M.value=null,D(b.value,!0)}},Be=ye=>mt.isDayjs(ye)&&ye.isValid()&&(h?!h(ye.toDate()):!0),We=ye=>z.value==="dates"?ye.map(fe=>fe.format(n.format)):ye.format(n.format),Ae=ye=>mt(ye,n.format).locale(u.value),Fe=()=>{const ye=mt(g.value).locale(u.value);if(!g.value){const fe=C.value;return mt().hour(fe.hour()).minute(fe.minute()).second(fe.second()).locale(u.value)}return ye},rt=async()=>{var ye;["week","month","year","date"].includes(z.value)&&((ye=m.value)==null||ye.focus(),z.value==="week"&&kt(Xe.down))},vt=ye=>{const{code:fe}=ye;[Xe.up,Xe.down,Xe.left,Xe.right,Xe.home,Xe.end,Xe.pageUp,Xe.pageDown].includes(fe)&&(kt(fe),ye.stopPropagation(),ye.preventDefault()),[Xe.enter,Xe.space,Xe.numpadEnter].includes(fe)&&M.value===null&&A.value===null&&(ye.preventDefault(),D(b.value,!1))},kt=ye=>{var fe;const{up:le,down:ke,left:te,right:Ve,home:st,end:It,pageUp:zn,pageDown:Zn}=Xe,oa={year:{[le]:-4,[ke]:4,[te]:-1,[Ve]:1,offset:(be,Ne)=>be.setFullYear(be.getFullYear()+Ne)},month:{[le]:-4,[ke]:4,[te]:-1,[Ve]:1,offset:(be,Ne)=>be.setMonth(be.getMonth()+Ne)},week:{[le]:-1,[ke]:1,[te]:-1,[Ve]:1,offset:(be,Ne)=>be.setDate(be.getDate()+Ne*7)},date:{[le]:-7,[ke]:7,[te]:-1,[Ve]:1,[st]:be=>-be.getDay(),[It]:be=>-be.getDay()+6,[zn]:be=>-new Date(be.getFullYear(),be.getMonth(),0).getDate(),[Zn]:be=>new Date(be.getFullYear(),be.getMonth()+1,0).getDate(),offset:(be,Ne)=>be.setDate(be.getDate()+Ne)}},pr=b.value.toDate();for(;Math.abs(b.value.diff(pr,"year",!0))<1;){const be=oa[G.value];if(!be)return;if(be.offset(pr,it(be[ye])?be[ye](pr):(fe=be[ye])!=null?fe:0),h&&h(pr))break;const Ne=mt(pr).locale(u.value);b.value=Ne,t("pick",Ne,!0);break}},Qe=ye=>{t("panel-change",b.value.toDate(),ye,O.value)};return xe(()=>z.value,ye=>{if(["month","year"].includes(ye)){O.value=ye;return}O.value="date"},{immediate:!0}),xe(()=>O.value,()=>{f==null||f.updatePopper()}),xe(()=>g.value,ye=>{ye&&(b.value=Fe())},{immediate:!0}),xe(()=>n.parsedValue,ye=>{if(ye){if(z.value==="dates"||Array.isArray(ye))return;b.value=ye}else b.value=Fe()},{immediate:!0}),t("set-picker-option",["isValidValue",Be]),t("set-picker-option",["formatToString",We]),t("set-picker-option",["parseUserInput",Ae]),t("set-picker-option",["handleFocusPicker",rt]),(ye,fe)=>(R(),K("div",{class:V([y(a).b(),y(i).b(),{"has-sidebar":ye.$slots.sidebar||y(U),"has-time":y(Q)}])},[Y("div",{class:V(y(a).e("body-wrapper"))},[_e(ye.$slots,"sidebar",{class:V(y(a).e("sidebar"))}),y(U)?(R(),K("div",{key:0,class:V(y(a).e("sidebar"))},[(R(!0),K(je,null,Ot(y(d),(le,ke)=>(R(),K("button",{key:ke,type:"button",class:V(y(a).e("shortcut")),onClick:te=>I(le)},De(le.text),11,a0e))),128))],2)):se("v-if",!0),Y("div",{class:V(y(a).e("body"))},[y(Q)?(R(),K("div",{key:0,class:V(y(i).e("time-header"))},[Y("span",{class:V(y(i).e("editor-wrap"))},[q(y(Rr),{placeholder:y(l)("el.datepicker.selectDate"),"model-value":y(pe),size:"small","validate-event":!1,onInput:fe[0]||(fe[0]=le=>M.value=le),onChange:$e},null,8,["placeholder","model-value"])],2),dt((R(),K("span",{class:V(y(i).e("editor-wrap"))},[q(y(Rr),{placeholder:y(l)("el.datepicker.selectTime"),"model-value":y(oe),size:"small","validate-event":!1,onFocus:me,onInput:fe[1]||(fe[1]=le=>A.value=le),onChange:Te},null,8,["placeholder","model-value"]),q(y(p0),{visible:Se.value,format:y(W),"parsed-value":b.value,onPick:we},null,8,["visible","format","parsed-value"])],2)),[[y(pl),Ee]])],2)):se("v-if",!0),dt(Y("div",{class:V([y(i).e("header"),(O.value==="year"||O.value==="month")&&y(i).e("header--bordered")])},[Y("span",{class:V(y(i).e("prev-btn"))},[Y("button",{type:"button","aria-label":y(l)("el.datepicker.prevYear"),class:V(["d-arrow-left",y(a).e("icon-btn")]),onClick:fe[2]||(fe[2]=le=>N(!1))},[q(y(Ke),null,{default:re(()=>[q(y(Qf))]),_:1})],10,i0e),dt(Y("button",{type:"button","aria-label":y(l)("el.datepicker.prevMonth"),class:V([y(a).e("icon-btn"),"arrow-left"]),onClick:fe[3]||(fe[3]=le=>B(!1))},[q(y(Ke),null,{default:re(()=>[q(y(fl))]),_:1})],10,o0e),[[Kt,O.value==="date"]])],2),Y("span",{role:"button",class:V(y(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:fe[4]||(fe[4]=Ft(le=>J("year"),["enter"])),onClick:fe[5]||(fe[5]=le=>J("year"))},De(y($)),35),dt(Y("span",{role:"button","aria-live":"polite",tabindex:"0",class:V([y(i).e("header-label"),{active:O.value==="month"}]),onKeydown:fe[6]||(fe[6]=Ft(le=>J("month"),["enter"])),onClick:fe[7]||(fe[7]=le=>J("month"))},De(y(l)(`el.datepicker.month${y(S)+1}`)),35),[[Kt,O.value==="date"]]),Y("span",{class:V(y(i).e("next-btn"))},[dt(Y("button",{type:"button","aria-label":y(l)("el.datepicker.nextMonth"),class:V([y(a).e("icon-btn"),"arrow-right"]),onClick:fe[8]||(fe[8]=le=>B(!0))},[q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})],10,s0e),[[Kt,O.value==="date"]]),Y("button",{type:"button","aria-label":y(l)("el.datepicker.nextYear"),class:V([y(a).e("icon-btn"),"d-arrow-right"]),onClick:fe[9]||(fe[9]=le=>N(!0))},[q(y(Ke),null,{default:re(()=>[q(y(ed))]),_:1})],10,l0e)],2)],2),[[Kt,O.value!=="time"]]),Y("div",{class:V(y(a).e("content")),onKeydown:vt},[O.value==="date"?(R(),ce(ax,{key:0,ref_key:"currentViewRef",ref:m,"selection-mode":y(z),date:b.value,"parsed-value":ye.parsedValue,"disabled-date":y(h),"cell-class-name":y(v),onPick:L},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):se("v-if",!0),O.value==="year"?(R(),ce(r0e,{key:1,ref_key:"currentViewRef",ref:m,date:b.value,"disabled-date":y(h),"parsed-value":ye.parsedValue,onPick:ae},null,8,["date","disabled-date","parsed-value"])):se("v-if",!0),O.value==="month"?(R(),ce(ix,{key:2,ref_key:"currentViewRef",ref:m,date:b.value,"parsed-value":ye.parsedValue,"disabled-date":y(h),onPick:Z},null,8,["date","parsed-value","disabled-date"])):se("v-if",!0)],34)],2)],2),dt(Y("div",{class:V(y(a).e("footer"))},[dt(q(y(_r),{text:"",size:"small",class:V(y(a).e("link-btn")),disabled:y(ve),onClick:ie},{default:re(()=>[Ut(De(y(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Kt,y(z)!=="dates"]]),q(y(_r),{plain:"",size:"small",class:V(y(a).e("link-btn")),disabled:y(j),onClick:de},{default:re(()=>[Ut(De(y(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[Kt,y(ee)&&O.value==="date"]])],2))}});var c0e=Pe(u0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const f0e=Le({...QF,...e8}),d0e=e=>{const{emit:t}=gt(),n=yc(),r=Mr();return i=>{const o=it(i.value)?i.value():i.value;if(o){t("pick",[mt(o[0]).locale(e.value),mt(o[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:t})}},r8=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:o}=gt(),{pickerNs:s}=Ge(HM),l=Me("date-range-picker"),{t:u,lang:c}=Ht(),f=d0e(c),d=H(),h=H(),v=H({endDate:null,selecting:!1}),p=_=>{v.value=_},g=(_=!1)=>{const w=y(d),C=y(h);nx([w,C])&&o("pick",[w,C],_)},m=_=>{v.value.selecting=_,_||(v.value.endDate=null)},b=()=>{const[_,w]=n8(y(t),{lang:y(c),unit:a,unlinkPanels:e.unlinkPanels});d.value=void 0,h.value=void 0,n.value=_,r.value=w};return xe(t,_=>{_&&b()},{immediate:!0}),xe(()=>e.parsedValue,_=>{if(He(_)&&_.length===2){const[w,C]=_;d.value=w,n.value=w,h.value=C,i(y(d),y(h))}else b()},{immediate:!0}),{minDate:d,maxDate:h,rangeState:v,lang:c,ppNs:s,drpNs:l,handleChangeRange:p,handleRangeConfirm:g,handleShortcutClick:f,onSelect:m,t:u}},h0e=["onClick"],v0e=["aria-label"],p0e=["aria-label"],g0e=["disabled","aria-label"],m0e=["disabled","aria-label"],y0e=["disabled","aria-label"],b0e=["disabled","aria-label"],_0e=["aria-label"],w0e=["aria-label"],qg="month",S0e=ne({__name:"panel-date-range",props:f0e,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=Ge("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:o,defaultTime:s,clearable:l}=r.props,u=kn(r.props,"shortcuts"),c=kn(r.props,"defaultValue"),{lang:f}=Ht(),d=H(mt().locale(f.value)),h=H(mt().locale(f.value).add(1,qg)),{minDate:v,maxDate:p,rangeState:g,ppNs:m,drpNs:b,handleChangeRange:_,handleRangeConfirm:w,handleShortcutClick:C,onSelect:S,t:x}=r8(n,{defaultValue:c,leftDate:d,rightDate:h,unit:qg,onParsedValueChanged:fe}),T=H({min:null,max:null}),M=H({min:null,max:null}),A=P(()=>`${d.value.year()} ${x("el.datepicker.year")} ${x(`el.datepicker.month${d.value.month()+1}`)}`),k=P(()=>`${h.value.year()} ${x("el.datepicker.year")} ${x(`el.datepicker.month${h.value.month()+1}`)}`),E=P(()=>d.value.year()),D=P(()=>d.value.month()),L=P(()=>h.value.year()),B=P(()=>h.value.month()),N=P(()=>!!u.value.length),O=P(()=>T.value.min!==null?T.value.min:v.value?v.value.format(U.value):""),$=P(()=>T.value.max!==null?T.value.max:p.value||v.value?(p.value||v.value).format(U.value):""),I=P(()=>M.value.min!==null?M.value.min:v.value?v.value.format(G.value):""),z=P(()=>M.value.max!==null?M.value.max:p.value||v.value?(p.value||v.value).format(G.value):""),G=P(()=>iF(o)),U=P(()=>aF(o)),Z=le=>nx(le)&&(a?!a(le[0].toDate())&&!a(le[1].toDate()):!0),ae=()=>{d.value=d.value.subtract(1,"year"),n.unlinkPanels||(h.value=d.value.add(1,"month")),W("year")},J=()=>{d.value=d.value.subtract(1,"month"),n.unlinkPanels||(h.value=d.value.add(1,"month")),W("month")},Q=()=>{n.unlinkPanels?h.value=h.value.add(1,"year"):(d.value=d.value.add(1,"year"),h.value=d.value.add(1,"month")),W("year")},ee=()=>{n.unlinkPanels?h.value=h.value.add(1,"month"):(d.value=d.value.add(1,"month"),h.value=d.value.add(1,"month")),W("month")},j=()=>{d.value=d.value.add(1,"year"),W("year")},de=()=>{d.value=d.value.add(1,"month"),W("month")},ve=()=>{h.value=h.value.subtract(1,"year"),W("year")},ie=()=>{h.value=h.value.subtract(1,"month"),W("month")},W=le=>{t("panel-change",[d.value.toDate(),h.value.toDate()],le)},X=P(()=>{const le=(D.value+1)%12,ke=D.value+1>=12?1:0;return n.unlinkPanels&&new Date(E.value+ke,le)<new Date(L.value,B.value)}),oe=P(()=>n.unlinkPanels&&L.value*12+B.value-(E.value*12+D.value+1)>=12),pe=P(()=>!(v.value&&p.value&&!g.value.selecting&&nx([v.value,p.value]))),Se=P(()=>n.type==="datetime"||n.type==="datetimerange"),me=(le,ke)=>{if(le)return s?mt(s[ke]||s).locale(f.value).year(le.year()).month(le.month()).date(le.date()):le},Ee=(le,ke=!0)=>{const te=le.minDate,Ve=le.maxDate,st=me(te,0),It=me(Ve,1);p.value===It&&v.value===st||(t("calendar-change",[te.toDate(),Ve&&Ve.toDate()]),p.value=It,v.value=st,!(!ke||Se.value)&&w())},Ce=H(!1),we=H(!1),Te=()=>{Ce.value=!1},$e=()=>{we.value=!1},Be=(le,ke)=>{T.value[ke]=le;const te=mt(le,U.value).locale(f.value);if(te.isValid()){if(a&&a(te.toDate()))return;ke==="min"?(d.value=te,v.value=(v.value||d.value).year(te.year()).month(te.month()).date(te.date()),!n.unlinkPanels&&(!p.value||p.value.isBefore(v.value))&&(h.value=te.add(1,"month"),p.value=v.value.add(1,"month"))):(h.value=te,p.value=(p.value||h.value).year(te.year()).month(te.month()).date(te.date()),!n.unlinkPanels&&(!v.value||v.value.isAfter(p.value))&&(d.value=te.subtract(1,"month"),v.value=p.value.subtract(1,"month")))}},We=(le,ke)=>{T.value[ke]=null},Ae=(le,ke)=>{M.value[ke]=le;const te=mt(le,G.value).locale(f.value);te.isValid()&&(ke==="min"?(Ce.value=!0,v.value=(v.value||d.value).hour(te.hour()).minute(te.minute()).second(te.second()),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value)):(we.value=!0,p.value=(p.value||h.value).hour(te.hour()).minute(te.minute()).second(te.second()),h.value=p.value,p.value&&p.value.isBefore(v.value)&&(v.value=p.value)))},Fe=(le,ke)=>{M.value[ke]=null,ke==="min"?(d.value=v.value,Ce.value=!1):(h.value=p.value,we.value=!1)},rt=(le,ke,te)=>{M.value.min||(le&&(d.value=le,v.value=(v.value||d.value).hour(le.hour()).minute(le.minute()).second(le.second())),te||(Ce.value=ke),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value,h.value=le))},vt=(le,ke,te)=>{M.value.max||(le&&(h.value=le,p.value=(p.value||h.value).hour(le.hour()).minute(le.minute()).second(le.second())),te||(we.value=ke),p.value&&p.value.isBefore(v.value)&&(v.value=p.value))},kt=()=>{d.value=n8(y(c),{lang:y(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],h.value=d.value.add(1,"month"),t("pick",null)},Qe=le=>He(le)?le.map(ke=>ke.format(o)):le.format(o),ye=le=>He(le)?le.map(ke=>mt(ke,o).locale(f.value)):mt(le,o).locale(f.value);function fe(le,ke){if(n.unlinkPanels&&ke){const te=(le==null?void 0:le.year())||0,Ve=(le==null?void 0:le.month())||0,st=ke.year(),It=ke.month();h.value=te===st&&Ve===It?ke.add(1,qg):ke}else h.value=d.value.add(1,qg),ke&&(h.value=h.value.hour(ke.hour()).minute(ke.minute()).second(ke.second()))}return t("set-picker-option",["isValidValue",Z]),t("set-picker-option",["parseUserInput",ye]),t("set-picker-option",["formatToString",Qe]),t("set-picker-option",["handleClear",kt]),(le,ke)=>(R(),K("div",{class:V([y(m).b(),y(b).b(),{"has-sidebar":le.$slots.sidebar||y(N),"has-time":y(Se)}])},[Y("div",{class:V(y(m).e("body-wrapper"))},[_e(le.$slots,"sidebar",{class:V(y(m).e("sidebar"))}),y(N)?(R(),K("div",{key:0,class:V(y(m).e("sidebar"))},[(R(!0),K(je,null,Ot(y(u),(te,Ve)=>(R(),K("button",{key:Ve,type:"button",class:V(y(m).e("shortcut")),onClick:st=>y(C)(te)},De(te.text),11,h0e))),128))],2)):se("v-if",!0),Y("div",{class:V(y(m).e("body"))},[y(Se)?(R(),K("div",{key:0,class:V(y(b).e("time-header"))},[Y("span",{class:V(y(b).e("editors-wrap"))},[Y("span",{class:V(y(b).e("time-picker-wrap"))},[q(y(Rr),{size:"small",disabled:y(g).selecting,placeholder:y(x)("el.datepicker.startDate"),class:V(y(b).e("editor")),"model-value":y(O),"validate-event":!1,onInput:ke[0]||(ke[0]=te=>Be(te,"min")),onChange:ke[1]||(ke[1]=te=>We(te,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),dt((R(),K("span",{class:V(y(b).e("time-picker-wrap"))},[q(y(Rr),{size:"small",class:V(y(b).e("editor")),disabled:y(g).selecting,placeholder:y(x)("el.datepicker.startTime"),"model-value":y(I),"validate-event":!1,onFocus:ke[2]||(ke[2]=te=>Ce.value=!0),onInput:ke[3]||(ke[3]=te=>Ae(te,"min")),onChange:ke[4]||(ke[4]=te=>Fe(te,"min"))},null,8,["class","disabled","placeholder","model-value"]),q(y(p0),{visible:Ce.value,format:y(G),"datetime-role":"start","parsed-value":d.value,onPick:rt},null,8,["visible","format","parsed-value"])],2)),[[y(pl),Te]])],2),Y("span",null,[q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})]),Y("span",{class:V([y(b).e("editors-wrap"),"is-right"])},[Y("span",{class:V(y(b).e("time-picker-wrap"))},[q(y(Rr),{size:"small",class:V(y(b).e("editor")),disabled:y(g).selecting,placeholder:y(x)("el.datepicker.endDate"),"model-value":y($),readonly:!y(v),"validate-event":!1,onInput:ke[5]||(ke[5]=te=>Be(te,"max")),onChange:ke[6]||(ke[6]=te=>We(te,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),dt((R(),K("span",{class:V(y(b).e("time-picker-wrap"))},[q(y(Rr),{size:"small",class:V(y(b).e("editor")),disabled:y(g).selecting,placeholder:y(x)("el.datepicker.endTime"),"model-value":y(z),readonly:!y(v),"validate-event":!1,onFocus:ke[7]||(ke[7]=te=>y(v)&&(we.value=!0)),onInput:ke[8]||(ke[8]=te=>Ae(te,"max")),onChange:ke[9]||(ke[9]=te=>Fe(te,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),q(y(p0),{"datetime-role":"end",visible:we.value,format:y(G),"parsed-value":h.value,onPick:vt},null,8,["visible","format","parsed-value"])],2)),[[y(pl),$e]])],2)],2)):se("v-if",!0),Y("div",{class:V([[y(m).e("content"),y(b).e("content")],"is-left"])},[Y("div",{class:V(y(b).e("header"))},[Y("button",{type:"button",class:V([y(m).e("icon-btn"),"d-arrow-left"]),"aria-label":y(x)("el.datepicker.prevYear"),onClick:ae},[q(y(Ke),null,{default:re(()=>[q(y(Qf))]),_:1})],10,v0e),Y("button",{type:"button",class:V([y(m).e("icon-btn"),"arrow-left"]),"aria-label":y(x)("el.datepicker.prevMonth"),onClick:J},[q(y(Ke),null,{default:re(()=>[q(y(fl))]),_:1})],10,p0e),le.unlinkPanels?(R(),K("button",{key:0,type:"button",disabled:!y(oe),class:V([[y(m).e("icon-btn"),{"is-disabled":!y(oe)}],"d-arrow-right"]),"aria-label":y(x)("el.datepicker.nextYear"),onClick:j},[q(y(Ke),null,{default:re(()=>[q(y(ed))]),_:1})],10,g0e)):se("v-if",!0),le.unlinkPanels?(R(),K("button",{key:1,type:"button",disabled:!y(X),class:V([[y(m).e("icon-btn"),{"is-disabled":!y(X)}],"arrow-right"]),"aria-label":y(x)("el.datepicker.nextMonth"),onClick:de},[q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})],10,m0e)):se("v-if",!0),Y("div",null,De(y(A)),1)],2),q(ax,{"selection-mode":"range",date:d.value,"min-date":y(v),"max-date":y(p),"range-state":y(g),"disabled-date":y(a),"cell-class-name":y(i),onChangerange:y(_),onPick:Ee,onSelect:y(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),Y("div",{class:V([[y(m).e("content"),y(b).e("content")],"is-right"])},[Y("div",{class:V(y(b).e("header"))},[le.unlinkPanels?(R(),K("button",{key:0,type:"button",disabled:!y(oe),class:V([[y(m).e("icon-btn"),{"is-disabled":!y(oe)}],"d-arrow-left"]),"aria-label":y(x)("el.datepicker.prevYear"),onClick:ve},[q(y(Ke),null,{default:re(()=>[q(y(Qf))]),_:1})],10,y0e)):se("v-if",!0),le.unlinkPanels?(R(),K("button",{key:1,type:"button",disabled:!y(X),class:V([[y(m).e("icon-btn"),{"is-disabled":!y(X)}],"arrow-left"]),"aria-label":y(x)("el.datepicker.prevMonth"),onClick:ie},[q(y(Ke),null,{default:re(()=>[q(y(fl))]),_:1})],10,b0e)):se("v-if",!0),Y("button",{type:"button","aria-label":y(x)("el.datepicker.nextYear"),class:V([y(m).e("icon-btn"),"d-arrow-right"]),onClick:Q},[q(y(Ke),null,{default:re(()=>[q(y(ed))]),_:1})],10,_0e),Y("button",{type:"button",class:V([y(m).e("icon-btn"),"arrow-right"]),"aria-label":y(x)("el.datepicker.nextMonth"),onClick:ee},[q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})],10,w0e),Y("div",null,De(y(k)),1)],2),q(ax,{"selection-mode":"range",date:h.value,"min-date":y(v),"max-date":y(p),"range-state":y(g),"disabled-date":y(a),"cell-class-name":y(i),onChangerange:y(_),onPick:Ee,onSelect:y(S)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),y(Se)?(R(),K("div",{key:0,class:V(y(m).e("footer"))},[y(l)?(R(),ce(y(_r),{key:0,text:"",size:"small",class:V(y(m).e("link-btn")),onClick:kt},{default:re(()=>[Ut(De(y(x)("el.datepicker.clear")),1)]),_:1},8,["class"])):se("v-if",!0),q(y(_r),{plain:"",size:"small",class:V(y(m).e("link-btn")),disabled:y(pe),onClick:ke[10]||(ke[10]=te=>y(w)(!1))},{default:re(()=>[Ut(De(y(x)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):se("v-if",!0)],2))}});var C0e=Pe(S0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const x0e=Le({...e8}),T0e=["pick","set-picker-option","calendar-change"],M0e=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=Ht(),a=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},o=()=>{t.value=t.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=P(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=P(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=P(()=>t.value.year()),f=P(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:i,leftNextYear:o,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:c,rightYear:f}},k0e=["onClick"],A0e=["disabled"],E0e=["disabled"],Xg="year",I0e=ne({name:"DatePickerMonthRange"}),D0e=ne({...I0e,props:x0e,emits:T0e,setup(e,{emit:t}){const n=e,{lang:r}=Ht(),a=Ge("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:s}=a.props,l=kn(a.props,"defaultValue"),u=H(mt().locale(r.value)),c=H(mt().locale(r.value).add(1,Xg)),{minDate:f,maxDate:d,rangeState:h,ppNs:v,drpNs:p,handleChangeRange:g,handleRangeConfirm:m,handleShortcutClick:b,onSelect:_}=r8(n,{defaultValue:l,leftDate:u,rightDate:c,unit:Xg,onParsedValueChanged:N}),w=P(()=>!!i.length),{leftPrevYear:C,rightNextYear:S,leftNextYear:x,rightPrevYear:T,leftLabel:M,rightLabel:A,leftYear:k,rightYear:E}=M0e({unlinkPanels:kn(n,"unlinkPanels"),leftDate:u,rightDate:c}),D=P(()=>n.unlinkPanels&&E.value>k.value+1),L=(O,$=!0)=>{const I=O.minDate,z=O.maxDate;d.value===z&&f.value===I||(t("calendar-change",[I.toDate(),z&&z.toDate()]),d.value=z,f.value=I,$&&m())},B=O=>O.map($=>$.format(s));function N(O,$){if(n.unlinkPanels&&$){const I=(O==null?void 0:O.year())||0,z=$.year();c.value=I===z?$.add(1,Xg):$}else c.value=u.value.add(1,Xg)}return t("set-picker-option",["formatToString",B]),(O,$)=>(R(),K("div",{class:V([y(v).b(),y(p).b(),{"has-sidebar":!!O.$slots.sidebar||y(w)}])},[Y("div",{class:V(y(v).e("body-wrapper"))},[_e(O.$slots,"sidebar",{class:V(y(v).e("sidebar"))}),y(w)?(R(),K("div",{key:0,class:V(y(v).e("sidebar"))},[(R(!0),K(je,null,Ot(y(i),(I,z)=>(R(),K("button",{key:z,type:"button",class:V(y(v).e("shortcut")),onClick:G=>y(b)(I)},De(I.text),11,k0e))),128))],2)):se("v-if",!0),Y("div",{class:V(y(v).e("body"))},[Y("div",{class:V([[y(v).e("content"),y(p).e("content")],"is-left"])},[Y("div",{class:V(y(p).e("header"))},[Y("button",{type:"button",class:V([y(v).e("icon-btn"),"d-arrow-left"]),onClick:$[0]||($[0]=(...I)=>y(C)&&y(C)(...I))},[q(y(Ke),null,{default:re(()=>[q(y(Qf))]),_:1})],2),O.unlinkPanels?(R(),K("button",{key:0,type:"button",disabled:!y(D),class:V([[y(v).e("icon-btn"),{[y(v).is("disabled")]:!y(D)}],"d-arrow-right"]),onClick:$[1]||($[1]=(...I)=>y(x)&&y(x)(...I))},[q(y(Ke),null,{default:re(()=>[q(y(ed))]),_:1})],10,A0e)):se("v-if",!0),Y("div",null,De(y(M)),1)],2),q(ix,{"selection-mode":"range",date:u.value,"min-date":y(f),"max-date":y(d),"range-state":y(h),"disabled-date":y(o),onChangerange:y(g),onPick:L,onSelect:y(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),Y("div",{class:V([[y(v).e("content"),y(p).e("content")],"is-right"])},[Y("div",{class:V(y(p).e("header"))},[O.unlinkPanels?(R(),K("button",{key:0,type:"button",disabled:!y(D),class:V([[y(v).e("icon-btn"),{"is-disabled":!y(D)}],"d-arrow-left"]),onClick:$[2]||($[2]=(...I)=>y(T)&&y(T)(...I))},[q(y(Ke),null,{default:re(()=>[q(y(Qf))]),_:1})],10,E0e)):se("v-if",!0),Y("button",{type:"button",class:V([y(v).e("icon-btn"),"d-arrow-right"]),onClick:$[3]||($[3]=(...I)=>y(S)&&y(S)(...I))},[q(y(Ke),null,{default:re(()=>[q(y(ed))]),_:1})],2),Y("div",null,De(y(A)),1)],2),q(ix,{"selection-mode":"range",date:c.value,"min-date":y(f),"max-date":y(d),"range-state":y(h),"disabled-date":y(o),onChangerange:y(g),onPick:L,onSelect:y(_)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var P0e=Pe(D0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const L0e=function(e){switch(e){case"daterange":case"datetimerange":return C0e;case"monthrange":return P0e;default:return c0e}};mt.extend(wF);mt.extend(mye);mt.extend(BM);mt.extend(bye);mt.extend(wye);mt.extend(Cye);mt.extend(Tye);mt.extend(kye);var R0e=ne({name:"ElDatePicker",install:null,props:Aye,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const a=Me("picker-panel");Et("ElPopperOptions",jt(kn(e,"popperOptions"))),Et(HM,{slots:r,pickerNs:a});const i=H();t({focus:(l=!0)=>{var u;(u=i.value)==null||u.focus(l)},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const s=l=>{n("update:modelValue",l)};return()=>{var l;const u=(l=e.format)!=null?l:hve[e.type]||lf,c=L0e(e.type);return q(lF,St(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:f=>q(c,f,null),"range-separator":r["range-separator"]})}}});const wy=R0e;wy.install=e=>{e.component(wy.name,wy)};const O0e=wy,WM=Symbol("elDescriptions");var ih=ne({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:Ge(WM,{})}},render(){var e,t,n,r,a,i;const o=_le(this.cell),{border:s,direction:l}=this.descriptions,u=l==="vertical",c=((n=(t=(e=this.cell)==null?void 0:e.children)==null?void 0:t.label)==null?void 0:n.call(t))||o.label,f=(i=(a=(r=this.cell)==null?void 0:r.children)==null?void 0:a.default)==null?void 0:i.call(a),d=o.span,h=o.align?`is-${o.align}`:"",v=o.labelAlign?`is-${o.labelAlign}`:h,p=o.className,g=o.labelClassName,m={width:On(o.width),minWidth:On(o.minWidth)},b=Me("descriptions");switch(this.type){case"label":return Ze(this.tag,{style:m,class:[b.e("cell"),b.e("label"),b.is("bordered-label",s),b.is("vertical-label",u),v,g],colSpan:u?d:1},c);case"content":return Ze(this.tag,{style:m,class:[b.e("cell"),b.e("content"),b.is("bordered-content",s),b.is("vertical-content",u),h,p],colSpan:u?d:d*2-1},f);default:return Ze("td",{style:m,class:[b.e("cell"),h],colSpan:d},[Kn(c)?void 0:Ze("span",{class:[b.e("label"),g]},c),Ze("span",{class:[b.e("content"),p]},f)])}}});const $0e=Le({row:{type:Array,default:()=>[]}}),N0e={key:1},B0e=ne({name:"ElDescriptionsRow"}),V0e=ne({...B0e,props:$0e,setup(e){const t=Ge(WM,{});return(n,r)=>y(t).direction==="vertical"?(R(),K(je,{key:0},[Y("tr",null,[(R(!0),K(je,null,Ot(n.row,(a,i)=>(R(),ce(y(ih),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),Y("tr",null,[(R(!0),K(je,null,Ot(n.row,(a,i)=>(R(),ce(y(ih),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(R(),K("tr",N0e,[(R(!0),K(je,null,Ot(n.row,(a,i)=>(R(),K(je,{key:`tr3-${i}`},[y(t).border?(R(),K(je,{key:0},[q(y(ih),{cell:a,tag:"td",type:"label"},null,8,["cell"]),q(y(ih),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(R(),ce(y(ih),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var z0e=Pe(V0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const F0e=Le({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Sr,title:{type:String,default:""},extra:{type:String,default:""}}),H0e=ne({name:"ElDescriptions"}),G0e=ne({...H0e,props:F0e,setup(e){const t=e,n=Me("descriptions"),r=qn(),a=Mr();Et(WM,t);const i=P(()=>[n.b(),n.m(r.value)]),o=(l,u,c,f=!1)=>(l.props||(l.props={}),u>c&&(l.props.span=c),f&&(l.props.span=u),l),s=()=>{var l;const u=Ef((l=a.default)==null?void 0:l.call(a)).filter(v=>{var p;return((p=v==null?void 0:v.type)==null?void 0:p.name)==="ElDescriptionsItem"}),c=[];let f=[],d=t.column,h=0;return u.forEach((v,p)=>{var g;const m=((g=v.props)==null?void 0:g.span)||1;if(p<u.length-1&&(h+=m>d?d:m),p===u.length-1){const b=t.column-h%t.column;f.push(o(v,b,d,!0)),c.push(f);return}m<d?(d-=m,f.push(v)):(f.push(o(v,m,d)),c.push(f),d=t.column,f=[])}),c};return(l,u)=>(R(),K("div",{class:V(y(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(R(),K("div",{key:0,class:V(y(n).e("header"))},[Y("div",{class:V(y(n).e("title"))},[_e(l.$slots,"title",{},()=>[Ut(De(l.title),1)])],2),Y("div",{class:V(y(n).e("extra"))},[_e(l.$slots,"extra",{},()=>[Ut(De(l.extra),1)])],2)],2)):se("v-if",!0),Y("div",{class:V(y(n).e("body"))},[Y("table",{class:V([y(n).e("table"),y(n).is("bordered",l.border)])},[Y("tbody",null,[(R(!0),K(je,null,Ot(s(),(c,f)=>(R(),ce(z0e,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var W0e=Pe(G0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),a8=ne({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const K0e=_t(W0e,{DescriptionsItem:a8}),U0e=Dn(a8),Y0e=Le({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:ue([String,Array,Object])},zIndex:{type:ue([String,Number])}}),j0e={click:e=>e instanceof MouseEvent},q0e="overlay";var X0e=ne({name:"ElOverlay",props:Y0e,emits:j0e,setup(e,{slots:t,emit:n}){const r=Me(q0e),a=l=>{n("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=MM(e.customMaskEvent?void 0:a);return()=>e.mask?q("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:s},[_e(t,"default")],Wa.STYLE|Wa.CLASS|Wa.PROPS,["onClick","onMouseup","onMousedown"]):Ze("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[_e(t,"default")])}});const KM=X0e,i8=Symbol("dialogInjectionKey"),o8=Le({center:Boolean,alignCenter:Boolean,closeIcon:{type:fn},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),Z0e={close:()=>!0},J0e=["aria-level"],Q0e=["aria-label"],ebe=["id"],tbe=ne({name:"ElDialogContent"}),nbe=ne({...tbe,props:o8,emits:Z0e,setup(e){const t=e,{t:n}=Ht(),{Close:r}=U5,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:l}=Ge(i8),{focusTrapRef:u}=Ge(OM),c=P(()=>[s.b(),s.is("fullscreen",t.fullscreen),s.is("draggable",t.draggable),s.is("align-center",t.alignCenter),{[s.m("center")]:t.center},t.customClass]),f=qb(u,a),d=P(()=>t.draggable);return j5(a,i,d),(h,v)=>(R(),K("div",{ref:y(f),class:V(y(c)),style:Ye(y(l)),tabindex:"-1"},[Y("header",{ref_key:"headerRef",ref:i,class:V(y(s).e("header"))},[_e(h.$slots,"header",{},()=>[Y("span",{role:"heading","aria-level":h.ariaLevel,class:V(y(s).e("title"))},De(h.title),11,J0e)]),h.showClose?(R(),K("button",{key:0,"aria-label":y(n)("el.dialog.close"),class:V(y(s).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=p=>h.$emit("close"))},[q(y(Ke),{class:V(y(s).e("close"))},{default:re(()=>[(R(),ce(Ct(h.closeIcon||y(r))))]),_:1},8,["class"])],10,Q0e)):se("v-if",!0)],2),Y("div",{id:y(o),class:V(y(s).e("body"))},[_e(h.$slots,"default")],10,ebe),h.$slots.footer?(R(),K("footer",{key:0,class:V(y(s).e("footer"))},[_e(h.$slots,"footer")],2)):se("v-if",!0)],6))}});var rbe=Pe(nbe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const s8=Le({...o8,appendToBody:Boolean,beforeClose:{type:ue(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),l8={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[wt]:e=>Un(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},u8=(e,t)=>{const r=gt().emit,{nextZIndex:a}=Ed();let i="";const o=si(),s=si(),l=H(!1),u=H(!1),c=H(!1),f=H(e.zIndex||a());let d,h;const v=r1("namespace",sv),p=P(()=>{const L={},B=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(L[`${B}-margin-top`]=e.top),e.width&&(L[`${B}-width`]=On(e.width))),L}),g=P(()=>e.alignCenter?{display:"flex"}:{});function m(){r("opened")}function b(){r("closed"),r(wt,!1),e.destroyOnClose&&(c.value=!1)}function _(){r("close")}function w(){h==null||h(),d==null||d(),e.openDelay&&e.openDelay>0?{stop:d}=ic(()=>T(),e.openDelay):T()}function C(){d==null||d(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=ic(()=>M(),e.closeDelay):M()}function S(){function L(B){B||(u.value=!0,l.value=!1)}e.beforeClose?e.beforeClose(L):C()}function x(){e.closeOnClickModal&&S()}function T(){Vt&&(l.value=!0)}function M(){l.value=!1}function A(){r("openAutoFocus")}function k(){r("closeAutoFocus")}function E(L){var B;((B=L.detail)==null?void 0:B.focusReason)==="pointer"&&L.preventDefault()}e.lockScroll&&Z5(l);function D(){e.closeOnPressEscape&&S()}return xe(()=>e.modelValue,L=>{L?(u.value=!1,w(),c.value=!0,f.value=e.zIndex?f.value++:a(),Ue(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):l.value&&C()}),xe(()=>e.fullscreen,L=>{t.value&&(L?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),yt(()=>{e.modelValue&&(l.value=!0,c.value=!0,w())}),{afterEnter:m,afterLeave:b,beforeLeave:_,handleClose:S,onModalClick:x,close:C,doClose:M,onOpenAutoFocus:A,onCloseAutoFocus:k,onCloseRequested:D,onFocusoutPrevented:E,titleId:o,bodyId:s,closed:u,style:p,overlayDialogStyle:g,rendered:c,visible:l,zIndex:f}},abe=["aria-label","aria-labelledby","aria-describedby"],ibe=ne({name:"ElDialog",inheritAttrs:!1}),obe=ne({...ibe,props:s8,emits:l8,setup(e,{expose:t}){const n=e,r=Mr();bo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},P(()=>!!r.title)),bo({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},P(()=>!!n.customClass));const a=Me("dialog"),i=H(),o=H(),s=H(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:v,afterEnter:p,afterLeave:g,beforeLeave:m,handleClose:b,onModalClick:_,onOpenAutoFocus:w,onCloseAutoFocus:C,onCloseRequested:S,onFocusoutPrevented:x}=u8(n,i);Et(i8,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:f});const T=MM(_),M=P(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:s}),(A,k)=>(R(),ce(Kp,{to:"body",disabled:!A.appendToBody},[q(Bn,{name:"dialog-fade",onAfterEnter:y(p),onAfterLeave:y(g),onBeforeLeave:y(m),persisted:""},{default:re(()=>[dt(q(y(KM),{"custom-mask-event":"",mask:A.modal,"overlay-class":A.modalClass,"z-index":y(v)},{default:re(()=>[Y("div",{role:"dialog","aria-modal":"true","aria-label":A.title||void 0,"aria-labelledby":A.title?void 0:y(u),"aria-describedby":y(c),class:V(`${y(a).namespace.value}-overlay-dialog`),style:Ye(y(d)),onClick:k[0]||(k[0]=(...E)=>y(T).onClick&&y(T).onClick(...E)),onMousedown:k[1]||(k[1]=(...E)=>y(T).onMousedown&&y(T).onMousedown(...E)),onMouseup:k[2]||(k[2]=(...E)=>y(T).onMouseup&&y(T).onMouseup(...E))},[q(y(o1),{loop:"",trapped:y(l),"focus-start-el":"container",onFocusAfterTrapped:y(w),onFocusAfterReleased:y(C),onFocusoutPrevented:y(x),onReleaseRequested:y(S)},{default:re(()=>[y(h)?(R(),ce(rbe,St({key:0,ref_key:"dialogContentRef",ref:s},A.$attrs,{"custom-class":A.customClass,center:A.center,"align-center":A.alignCenter,"close-icon":A.closeIcon,draggable:y(M),fullscreen:A.fullscreen,"show-close":A.showClose,title:A.title,"aria-level":A.headerAriaLevel,onClose:y(b)}),Jo({header:re(()=>[A.$slots.title?_e(A.$slots,"title",{key:1}):_e(A.$slots,"header",{key:0,close:y(b),titleId:y(u),titleClass:y(a).e("title")})]),default:re(()=>[_e(A.$slots,"default")]),_:2},[A.$slots.footer?{name:"footer",fn:re(()=>[_e(A.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):se("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,abe)]),_:3},8,["mask","overlay-class","z-index"]),[[Kt,y(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var sbe=Pe(obe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const lbe=_t(sbe),ube=Le({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ue(String),default:"solid"}}),cbe=ne({name:"ElDivider"}),fbe=ne({...cbe,props:ube,setup(e){const t=e,n=Me("divider"),r=P(()=>n.cssVar({"border-style":t.borderStyle}));return(a,i)=>(R(),K("div",{class:V([y(n).b(),y(n).m(a.direction)]),style:Ye(y(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(R(),K("div",{key:0,class:V([y(n).e("text"),y(n).is(a.contentPosition)])},[_e(a.$slots,"default")],2)):se("v-if",!0)],6))}});var dbe=Pe(fbe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const c8=_t(dbe),hbe=Le({...s8,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"}}),vbe=l8,pbe=ne({name:"ElDrawer",components:{ElOverlay:KM,ElFocusTrap:o1,ElIcon:Ke,Close:Bi},inheritAttrs:!1,props:hbe,emits:vbe,setup(e,{slots:t}){bo({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},P(()=>!!t.title)),bo({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},P(()=>!!e.customClass));const n=H(),r=H(),a=Me("drawer"),{t:i}=Ht(),o=P(()=>e.direction==="rtl"||e.direction==="ltr"),s=P(()=>On(e.size));return{...u8(e,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:s,ns:a,t:i}}}),gbe=["aria-label","aria-labelledby","aria-describedby"],mbe=["id","aria-level"],ybe=["aria-label"],bbe=["id"];function _be(e,t,n,r,a,i){const o=ct("close"),s=ct("el-icon"),l=ct("el-focus-trap"),u=ct("el-overlay");return R(),ce(Kp,{to:"body",disabled:!e.appendToBody},[q(Bn,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:re(()=>[dt(q(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:re(()=>[q(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:re(()=>[Y("div",St({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=tt(()=>{},["stop"]))}),[Y("span",{ref:"focusStartRef",class:V(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(R(),K("header",{key:0,class:V(e.ns.e("header"))},[e.$slots.title?_e(e.$slots,"title",{key:1},()=>[se(" DEPRECATED SLOT ")]):_e(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?se("v-if",!0):(R(),K("span",{key:0,id:e.titleId,role:"heading","aria-level":e.headerAriaLevel,class:V(e.ns.e("title"))},De(e.title),11,mbe))]),e.showClose?(R(),K("button",{key:2,"aria-label":e.t("el.drawer.close"),class:V(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...c)=>e.handleClose&&e.handleClose(...c))},[q(s,{class:V(e.ns.e("close"))},{default:re(()=>[q(o)]),_:1},8,["class"])],10,ybe)):se("v-if",!0)],2)):se("v-if",!0),e.rendered?(R(),K("div",{key:1,id:e.bodyId,class:V(e.ns.e("body"))},[_e(e.$slots,"default")],10,bbe)):se("v-if",!0),e.$slots.footer?(R(),K("div",{key:2,class:V(e.ns.e("footer"))},[_e(e.$slots,"footer")],2)):se("v-if",!0)],16,gbe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Kt,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var wbe=Pe(pbe,[["render",_be],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const Sbe=_t(wbe),Cbe=ne({inheritAttrs:!1});function xbe(e,t,n,r,a,i){return _e(e.$slots,"default")}var Tbe=Pe(Cbe,[["render",xbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const Mbe=ne({name:"ElCollectionItem",inheritAttrs:!1});function kbe(e,t,n,r,a,i){return _e(e.$slots,"default")}var Abe=Pe(Mbe,[["render",kbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const f8="data-el-collection-item",d8=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),i={...Tbe,name:t,setup(){const s=H(null),l=new Map;Et(r,{itemMap:l,getItems:()=>{const c=y(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${f8}]`));return[...l.values()].sort((h,v)=>f.indexOf(h.ref)-f.indexOf(v.ref))},collectionRef:s})}},o={...Abe,name:n,setup(s,{attrs:l}){const u=H(null),c=Ge(r,void 0);Et(a,{collectionItemRef:u}),yt(()=>{const f=y(u);f&&c.itemMap.set(f,{ref:f,...l})}),wn(()=>{const f=y(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},Ebe=Le({style:{type:ue([String,Array,Object])},currentTabId:{type:ue(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ue(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:Ibe,ElCollectionItem:Dbe,COLLECTION_INJECTION_KEY:UM,COLLECTION_ITEM_INJECTION_KEY:Pbe}=d8("RovingFocusGroup"),YM=Symbol("elRovingFocusGroup"),h8=Symbol("elRovingFocusGroupItem"),Lbe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},Rbe=(e,t)=>{if(t!=="rtl")return e;switch(e){case Xe.right:return Xe.left;case Xe.left:return Xe.right;default:return e}},Obe=(e,t,n)=>{const r=Rbe(e.key,n);if(!(t==="vertical"&&[Xe.left,Xe.right].includes(r))&&!(t==="horizontal"&&[Xe.up,Xe.down].includes(r)))return Lbe[r]},$be=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),jM=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},WP="currentTabIdChange",KP="rovingFocusGroup.entryFocus",Nbe={bubbles:!1,cancelable:!0},Bbe=ne({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:Ebe,emits:[WP,"entryFocus"],setup(e,{emit:t}){var n;const r=H((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=H(!1),i=H(!1),o=H(null),{getItems:s}=Ge(UM,void 0),l=P(()=>[{outline:"none"},e.style]),u=p=>{t(WP,p)},c=()=>{a.value=!0},f=In(p=>{var g;(g=e.onMousedown)==null||g.call(e,p)},()=>{i.value=!0}),d=In(p=>{var g;(g=e.onFocus)==null||g.call(e,p)},p=>{const g=!y(i),{target:m,currentTarget:b}=p;if(m===b&&g&&!y(a)){const _=new Event(KP,Nbe);if(b==null||b.dispatchEvent(_),!_.defaultPrevented){const w=s().filter(M=>M.focusable),C=w.find(M=>M.active),S=w.find(M=>M.id===y(r)),T=[C,S,...w].filter(Boolean).map(M=>M.ref);jM(T)}}i.value=!1}),h=In(p=>{var g;(g=e.onBlur)==null||g.call(e,p)},()=>{a.value=!1}),v=(...p)=>{t("entryFocus",...p)};Et(YM,{currentTabbedId:xd(r),loop:kn(e,"loop"),tabIndex:P(()=>y(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:kn(e,"orientation"),dir:kn(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:d,onMousedown:f}),xe(()=>e.currentTabId,p=>{r.value=p??null}),bn(o,KP,v)}});function Vbe(e,t,n,r,a,i){return _e(e.$slots,"default")}var zbe=Pe(Bbe,[["render",Vbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const Fbe=ne({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:Ibe,ElRovingFocusGroupImpl:zbe}});function Hbe(e,t,n,r,a,i){const o=ct("el-roving-focus-group-impl"),s=ct("el-focus-group-collection");return R(),ce(s,null,{default:re(()=>[q(o,ki(Ob(e.$attrs)),{default:re(()=>[_e(e.$slots,"default")]),_:3},16)]),_:3})}var Gbe=Pe(Fbe,[["render",Hbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const Wbe=ne({components:{ElRovingFocusCollectionItem:Dbe},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:a,onItemShiftTab:i}=Ge(YM,void 0),{getItems:o}=Ge(UM,void 0),s=si(),l=H(null),u=In(h=>{t("mousedown",h)},h=>{e.focusable?a(y(s)):h.preventDefault()}),c=In(h=>{t("focus",h)},()=>{a(y(s))}),f=In(h=>{t("keydown",h)},h=>{const{key:v,shiftKey:p,target:g,currentTarget:m}=h;if(v===Xe.tab&&p){i();return}if(g!==m)return;const b=Obe(h);if(b){h.preventDefault();let w=o().filter(C=>C.focusable).map(C=>C.ref);switch(b){case"last":{w.reverse();break}case"prev":case"next":{b==="prev"&&w.reverse();const C=w.indexOf(m);w=r.value?$be(w,C+1):w.slice(C+1);break}}Ue(()=>{jM(w)})}}),d=P(()=>n.value===y(s));return Et(h8,{rovingFocusGroupItemRef:l,tabIndex:P(()=>y(d)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:s,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function Kbe(e,t,n,r,a,i){const o=ct("el-roving-focus-collection-item");return R(),ce(o,{id:e.id,focusable:e.focusable,active:e.active},{default:re(()=>[_e(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Ube=Pe(Wbe,[["render",Kbe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Sy=Le({trigger:Qv.trigger,effect:{...cr.effect,default:"light"},type:{type:ue(String)},placement:{type:ue(String),default:"bottom"},popperOptions:{type:ue(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:ue([Number,String]),default:0},maxHeight:{type:ue([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:ue(Object)},teleported:cr.teleported}),v8=Le({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:fn}}),Ybe=Le({onKeydown:{type:ue(Function)}}),jbe=[Xe.down,Xe.pageDown,Xe.home],p8=[Xe.up,Xe.pageUp,Xe.end],qbe=[...jbe,...p8],{ElCollection:Xbe,ElCollectionItem:Zbe,COLLECTION_INJECTION_KEY:Jbe,COLLECTION_ITEM_INJECTION_KEY:Qbe}=d8("Dropdown"),u1=Symbol("elDropdown"),{ButtonGroup:e1e}=_r,t1e=ne({name:"ElDropdown",components:{ElButton:_r,ElButtonGroup:e1e,ElScrollbar:hs,ElDropdownCollection:Xbe,ElTooltip:ea,ElRovingFocusGroup:Gbe,ElOnlyChild:zz,ElIcon:Ke,ArrowDown:Ml},props:Sy,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=gt(),r=Me("dropdown"),{t:a}=Ht(),i=H(),o=H(),s=H(null),l=H(null),u=H(null),c=H(null),f=H(!1),d=[Xe.enter,Xe.space,Xe.down],h=P(()=>({maxHeight:On(e.maxHeight)})),v=P(()=>[r.m(C.value)]),p=P(()=>sc(e.trigger)),g=si().value,m=P(()=>e.id||g);xe([i,p],([O,$],[I])=>{var z,G,U;(z=I==null?void 0:I.$el)!=null&&z.removeEventListener&&I.$el.removeEventListener("pointerenter",x),(G=O==null?void 0:O.$el)!=null&&G.removeEventListener&&O.$el.removeEventListener("pointerenter",x),(U=O==null?void 0:O.$el)!=null&&U.addEventListener&&$.includes("hover")&&O.$el.addEventListener("pointerenter",x)},{immediate:!0}),wn(()=>{var O,$;($=(O=i.value)==null?void 0:O.$el)!=null&&$.removeEventListener&&i.value.$el.removeEventListener("pointerenter",x)});function b(){_()}function _(){var O;(O=s.value)==null||O.onClose()}function w(){var O;(O=s.value)==null||O.onOpen()}const C=qn();function S(...O){t("command",...O)}function x(){var O,$;($=(O=i.value)==null?void 0:O.$el)==null||$.focus()}function T(){}function M(){const O=y(l);p.value.includes("hover")&&(O==null||O.focus()),c.value=null}function A(O){c.value=O}function k(O){f.value||(O.preventDefault(),O.stopImmediatePropagation())}function E(){t("visible-change",!0)}function D(O){(O==null?void 0:O.type)==="keydown"&&l.value.focus()}function L(){t("visible-change",!1)}return Et(u1,{contentRef:l,role:P(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:T,onItemLeave:M}),Et("elDropdown",{instance:n,dropdownSize:C,handleClick:b,commandHandler:S,trigger:kn(e,"trigger"),hideOnClick:kn(e,"hideOnClick")}),{t:a,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:v,dropdownSize:C,triggerId:m,triggerKeys:d,currentTabId:c,handleCurrentTabIdChange:A,handlerMainButtonClick:O=>{t("click",O)},handleEntryFocus:k,handleClose:_,handleOpen:w,handleBeforeShowTooltip:E,handleShowTooltip:D,handleBeforeHideTooltip:L,onFocusAfterTrapped:O=>{var $,I;O.preventDefault(),(I=($=l.value)==null?void 0:$.focus)==null||I.call($,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function n1e(e,t,n,r,a,i){var o;const s=ct("el-dropdown-collection"),l=ct("el-roving-focus-group"),u=ct("el-scrollbar"),c=ct("el-only-child"),f=ct("el-tooltip"),d=ct("el-button"),h=ct("arrow-down"),v=ct("el-icon"),p=ct("el-button-group");return R(),K("div",{class:V([e.ns.b(),e.ns.is("disabled",e.disabled)])},[q(f,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(o=e.referenceElementRef)==null?void 0:o.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Jo({content:re(()=>[q(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:re(()=>[q(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:re(()=>[q(s,null,{default:re(()=>[_e(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:re(()=>[q(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:re(()=>[_e(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(R(),ce(p,{key:0},{default:re(()=>[q(d,St({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:re(()=>[_e(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),q(d,St({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:re(()=>[q(v,{class:V(e.ns.e("icon"))},{default:re(()=>[q(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):se("v-if",!0)],2)}var r1e=Pe(t1e,[["render",n1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const a1e=ne({name:"DropdownItemImpl",components:{ElIcon:Ke},props:v8,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Me("dropdown"),{role:r}=Ge(u1,void 0),{collectionItemRef:a}=Ge(Qbe,void 0),{collectionItemRef:i}=Ge(Pbe,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=Ge(h8,void 0),f=qb(a,i,o),d=P(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=In(v=>{const{code:p}=v;if(p===Xe.enter||p===Xe.space)return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},u);return{ns:n,itemRef:f,dataset:{[f8]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}}),i1e=["aria-disabled","tabindex","role"];function o1e(e,t,n,r,a,i){const o=ct("el-icon");return R(),K(je,null,[e.divided?(R(),K("li",St({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):se("v-if",!0),Y("li",St({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=s=>e.$emit("clickimpl",s)),onFocus:t[1]||(t[1]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onKeydown:t[2]||(t[2]=tt((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onPointermove:t[4]||(t[4]=s=>e.$emit("pointermove",s)),onPointerleave:t[5]||(t[5]=s=>e.$emit("pointerleave",s))}),[e.icon?(R(),ce(o,{key:0},{default:re(()=>[(R(),ce(Ct(e.icon)))]),_:1})):se("v-if",!0),_e(e.$slots,"default")],16,i1e)],64)}var s1e=Pe(a1e,[["render",o1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const g8=()=>{const e=Ge("elDropdown",{}),t=P(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},l1e=ne({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Zbe,ElRovingFocusItem:Ube,ElDropdownItemImpl:s1e},inheritAttrs:!1,props:v8,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=g8(),a=gt(),i=H(null),o=P(()=>{var h,v;return(v=(h=y(i))==null?void 0:h.textContent)!=null?v:""}),{onItemEnter:s,onItemLeave:l}=Ge(u1,void 0),u=In(h=>(t("pointermove",h),h.defaultPrevented),KI(h=>{if(e.disabled){l(h);return}const v=h.currentTarget;v===document.activeElement||v.contains(document.activeElement)||(s(h),h.defaultPrevented||v==null||v.focus())})),c=In(h=>(t("pointerleave",h),h.defaultPrevented),KI(h=>{l(h)})),f=In(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var v,p,g;if(e.disabled){h.stopImmediatePropagation();return}(v=r==null?void 0:r.hideOnClick)!=null&&v.value&&((p=r.handleClick)==null||p.call(r)),(g=r.commandHandler)==null||g.call(r,e.command,a,h)}),d=P(()=>({...e,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:d}}});function u1e(e,t,n,r,a,i){var o;const s=ct("el-dropdown-item-impl"),l=ct("el-roving-focus-item"),u=ct("el-dropdown-collection-item");return R(),ce(u,{disabled:e.disabled,"text-value":(o=e.textValue)!=null?o:e.textContent},{default:re(()=>[q(l,{focusable:!e.disabled},{default:re(()=>[q(s,St(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:re(()=>[_e(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var m8=Pe(l1e,[["render",u1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const c1e=ne({name:"ElDropdownMenu",props:Ybe,setup(e){const t=Me("dropdown"),{_elDropdownSize:n}=g8(),r=n.value,{focusTrapRef:a,onKeydown:i}=Ge(OM,void 0),{contentRef:o,role:s,triggerId:l}=Ge(u1,void 0),{collectionRef:u,getItems:c}=Ge(Jbe,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:d,tabIndex:h,onBlur:v,onFocus:p,onMousedown:g}=Ge(YM,void 0),{collectionRef:m}=Ge(UM,void 0),b=P(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),_=qb(o,u,a,f,m),w=In(S=>{var x;(x=e.onKeydown)==null||x.call(e,S)},S=>{const{currentTarget:x,code:T,target:M}=S;if(x.contains(M),Xe.tab===T&&S.stopImmediatePropagation(),S.preventDefault(),M!==y(o)||!qbe.includes(T))return;const k=c().filter(E=>!E.disabled).map(E=>E.ref);p8.includes(T)&&k.reverse(),jM(k)});return{size:r,rovingFocusGroupRootStyle:d,tabIndex:h,dropdownKls:b,role:s,triggerId:l,dropdownListWrapperRef:_,handleKeydown:S=>{w(S),i(S)},onBlur:v,onFocus:p,onMousedown:g}}}),f1e=["role","aria-labelledby"];function d1e(e,t,n,r,a,i){return R(),K("ul",{ref:e.dropdownListWrapperRef,class:V(e.dropdownKls),style:Ye(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...o)=>e.onBlur&&e.onBlur(...o)),onFocus:t[1]||(t[1]=(...o)=>e.onFocus&&e.onFocus(...o)),onKeydown:t[2]||(t[2]=tt((...o)=>e.handleKeydown&&e.handleKeydown(...o),["self"])),onMousedown:t[3]||(t[3]=tt((...o)=>e.onMousedown&&e.onMousedown(...o),["self"]))},[_e(e.$slots,"default")],46,f1e)}var y8=Pe(c1e,[["render",d1e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const h1e=_t(r1e,{DropdownItem:m8,DropdownMenu:y8}),v1e=Dn(m8),p1e=Dn(y8),g1e={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},m1e=["id"],y1e=["stop-color"],b1e=["stop-color"],_1e=["id"],w1e=["stop-color"],S1e=["stop-color"],C1e=["id"],x1e={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},T1e={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},M1e={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},k1e=["fill"],A1e=["fill"],E1e={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)"},I1e=["fill"],D1e=["fill"],P1e=["fill"],L1e=["fill"],R1e=["fill"],O1e={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},$1e=["fill","xlink:href"],N1e=["fill","mask"],B1e=["fill"],V1e=ne({name:"ImgEmpty"}),z1e=ne({...V1e,setup(e){const t=Me("empty"),n=si();return(r,a)=>(R(),K("svg",g1e,[Y("defs",null,[Y("linearGradient",{id:`linearGradient-1-${y(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[Y("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,y1e),Y("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,b1e)],8,m1e),Y("linearGradient",{id:`linearGradient-2-${y(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[Y("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,w1e),Y("stop",{"stop-color":`var(${y(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,S1e)],8,_1e),Y("rect",{id:`path-3-${y(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,C1e)]),Y("g",x1e,[Y("g",T1e,[Y("g",M1e,[Y("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${y(t).cssVarBlockName("fill-color-3")})`},null,8,k1e),Y("polygon",{id:"Rectangle-Copy-14",fill:`var(${y(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,A1e),Y("g",E1e,[Y("polygon",{id:"Rectangle-Copy-10",fill:`var(${y(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,I1e),Y("polygon",{id:"Rectangle-Copy-11",fill:`var(${y(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,D1e),Y("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${y(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,P1e),Y("polygon",{id:"Rectangle-Copy-13",fill:`var(${y(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,L1e)]),Y("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${y(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,R1e),Y("g",O1e,[Y("use",{id:"Mask",fill:`var(${y(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${y(n)}`},null,8,$1e),Y("polygon",{id:"Rectangle-Copy",fill:`var(${y(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${y(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,N1e)]),Y("polygon",{id:"Rectangle-Copy-18",fill:`var(${y(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,B1e)])])])]))}});var F1e=Pe(z1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const H1e=Le({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),G1e=["src"],W1e={key:1},K1e=ne({name:"ElEmpty"}),U1e=ne({...K1e,props:H1e,setup(e){const t=e,{t:n}=Ht(),r=Me("empty"),a=P(()=>t.description||n("el.table.emptyText")),i=P(()=>({width:On(t.imageSize)}));return(o,s)=>(R(),K("div",{class:V(y(r).b())},[Y("div",{class:V(y(r).e("image")),style:Ye(y(i))},[o.image?(R(),K("img",{key:0,src:o.image,ondragstart:"return false"},null,8,G1e)):_e(o.$slots,"image",{key:1},()=>[q(F1e)])],6),Y("div",{class:V(y(r).e("description"))},[o.$slots.description?_e(o.$slots,"description",{key:0}):(R(),K("p",W1e,De(y(a)),1))],2),o.$slots.default?(R(),K("div",{key:0,class:V(y(r).e("bottom"))},[_e(o.$slots,"default")],2)):se("v-if",!0)],2))}});var Y1e=Pe(U1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const b8=_t(Y1e),j1e=Le({urlList:{type:ue(Array),default:()=>Cn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),q1e={close:()=>!0,switch:e=>at(e),rotate:e=>at(e)},X1e=["src"],Z1e=ne({name:"ElImageViewer"}),J1e=ne({...Z1e,props:j1e,emits:q1e,setup(e,{expose:t,emit:n}){const r=e,a={CONTAIN:{name:"contain",icon:Qs(qie)},ORIGINAL:{name:"original",icon:Qs(cse)}},{t:i}=Ht(),o=Me("image-viewer"),{nextZIndex:s}=Ed(),l=H(),u=H([]),c=EB(),f=H(!0),d=H(r.initialIndex),h=un(a.CONTAIN),v=H({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),p=P(()=>{const{urlList:I}=r;return I.length<=1}),g=P(()=>d.value===0),m=P(()=>d.value===r.urlList.length-1),b=P(()=>r.urlList[d.value]),_=P(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!r.infinite&&g.value)]),w=P(()=>[o.e("btn"),o.e("next"),o.is("disabled",!r.infinite&&m.value)]),C=P(()=>{const{scale:I,deg:z,offsetX:G,offsetY:U,enableTransition:Z}=v.value;let ae=G/I,J=U/I;switch(z%360){case 90:case-270:[ae,J]=[J,-ae];break;case 180:case-180:[ae,J]=[-ae,-J];break;case 270:case-90:[ae,J]=[-J,ae];break}const Q={transform:`scale(${I}) rotate(${z}deg) translate(${ae}px, ${J}px)`,transition:Z?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(Q.maxWidth=Q.maxHeight="100%"),Q}),S=P(()=>at(r.zIndex)?r.zIndex:s());function x(){M(),n("close")}function T(){const I=Yu(G=>{switch(G.code){case Xe.esc:r.closeOnPressEscape&&x();break;case Xe.space:L();break;case Xe.left:N();break;case Xe.up:$("zoomIn");break;case Xe.right:O();break;case Xe.down:$("zoomOut");break}}),z=Yu(G=>{const U=G.deltaY||G.deltaX;$(U<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});c.run(()=>{bn(document,"keydown",I),bn(document,"wheel",z)})}function M(){c.stop()}function A(){f.value=!1}function k(I){f.value=!1,I.target.alt=i("el.image.error")}function E(I){if(f.value||I.button!==0||!l.value)return;v.value.enableTransition=!1;const{offsetX:z,offsetY:G}=v.value,U=I.pageX,Z=I.pageY,ae=Yu(Q=>{v.value={...v.value,offsetX:z+Q.pageX-U,offsetY:G+Q.pageY-Z}}),J=bn(document,"mousemove",ae);bn(document,"mouseup",()=>{J()}),I.preventDefault()}function D(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function L(){if(f.value)return;const I=Yv(a),z=Object.values(a),G=h.value.name,Z=(z.findIndex(ae=>ae.name===G)+1)%I.length;h.value=a[I[Z]],D()}function B(I){const z=r.urlList.length;d.value=(I+z)%z}function N(){g.value&&!r.infinite||B(d.value-1)}function O(){m.value&&!r.infinite||B(d.value+1)}function $(I,z={}){if(f.value)return;const{zoomRate:G,rotateDeg:U,enableTransition:Z}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...z};switch(I){case"zoomOut":v.value.scale>.2&&(v.value.scale=Number.parseFloat((v.value.scale/G).toFixed(3)));break;case"zoomIn":v.value.scale<7&&(v.value.scale=Number.parseFloat((v.value.scale*G).toFixed(3)));break;case"clockwise":v.value.deg+=U,n("rotate",v.value.deg);break;case"anticlockwise":v.value.deg-=U,n("rotate",v.value.deg);break}v.value.enableTransition=Z}return xe(b,()=>{Ue(()=>{const I=u.value[0];I!=null&&I.complete||(f.value=!0)})}),xe(d,I=>{D(),n("switch",I)}),yt(()=>{var I,z;T(),(z=(I=l.value)==null?void 0:I.focus)==null||z.call(I)}),t({setActiveItem:B}),(I,z)=>(R(),ce(Kp,{to:"body",disabled:!I.teleported},[q(Bn,{name:"viewer-fade",appear:""},{default:re(()=>[Y("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:V(y(o).e("wrapper")),style:Ye({zIndex:y(S)})},[Y("div",{class:V(y(o).e("mask")),onClick:z[0]||(z[0]=tt(G=>I.hideOnClickModal&&x(),["self"]))},null,2),se(" CLOSE "),Y("span",{class:V([y(o).e("btn"),y(o).e("close")]),onClick:x},[q(y(Ke),null,{default:re(()=>[q(y(Bi))]),_:1})],2),se(" ARROW "),y(p)?se("v-if",!0):(R(),K(je,{key:0},[Y("span",{class:V(y(_)),onClick:N},[q(y(Ke),null,{default:re(()=>[q(y(fl))]),_:1})],2),Y("span",{class:V(y(w)),onClick:O},[q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})],2)],64)),se(" ACTIONS "),Y("div",{class:V([y(o).e("btn"),y(o).e("actions")])},[Y("div",{class:V(y(o).e("actions__inner"))},[q(y(Ke),{onClick:z[1]||(z[1]=G=>$("zoomOut"))},{default:re(()=>[q(y(dle))]),_:1}),q(y(Ke),{onClick:z[2]||(z[2]=G=>$("zoomIn"))},{default:re(()=>[q(y(W5))]),_:1}),Y("i",{class:V(y(o).e("actions__divider"))},null,2),q(y(Ke),{onClick:L},{default:re(()=>[(R(),ce(Ct(y(h).icon)))]),_:1}),Y("i",{class:V(y(o).e("actions__divider"))},null,2),q(y(Ke),{onClick:z[3]||(z[3]=G=>$("anticlockwise"))},{default:re(()=>[q(y(Joe))]),_:1}),q(y(Ke),{onClick:z[4]||(z[4]=G=>$("clockwise"))},{default:re(()=>[q(y(ase))]),_:1})],2)],2),se(" CANVAS "),Y("div",{class:V(y(o).e("canvas"))},[(R(!0),K(je,null,Ot(I.urlList,(G,U)=>dt((R(),K("img",{ref_for:!0,ref:Z=>u.value[U]=Z,key:G,src:G,style:Ye(y(C)),class:V(y(o).e("img")),onLoad:A,onError:k,onMousedown:E},null,46,X1e)),[[Kt,U===d.value]])),128))],2),_e(I.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var Q1e=Pe(J1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const _8=_t(Q1e),e_e=Le({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:ue([String,Object])},previewSrcList:{type:ue(Array),default:()=>Cn([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),t_e={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>at(e),close:()=>!0,show:()=>!0},n_e=["src","loading"],r_e={key:0},a_e=ne({name:"ElImage",inheritAttrs:!1}),i_e=ne({...a_e,props:e_e,emits:t_e,setup(e,{emit:t}){const n=e;let r="";const{t:a}=Ht(),i=Me("image"),o=yc(),s=gM(),l=H(),u=H(!1),c=H(!0),f=H(!1),d=H(),h=H(),v=Vt&&"loading"in HTMLImageElement.prototype;let p,g;const m=P(()=>[i.e("inner"),w.value&&i.e("preview"),c.value&&i.is("loading")]),b=P(()=>o.style),_=P(()=>{const{fit:$}=n;return Vt&&$?{objectFit:$}:{}}),w=P(()=>{const{previewSrcList:$}=n;return Array.isArray($)&&$.length>0}),C=P(()=>{const{previewSrcList:$,initialIndex:I}=n;let z=I;return I>$.length-1&&(z=0),z}),S=P(()=>n.loading==="eager"?!1:!v&&n.loading==="lazy"||n.lazy),x=()=>{Vt&&(c.value=!0,u.value=!1,l.value=n.src)};function T($){c.value=!1,u.value=!1,t("load",$)}function M($){c.value=!1,u.value=!0,t("error",$)}function A(){kZ(d.value,h.value)&&(x(),D())}const k=ZV(A,200,!0);async function E(){var $;if(!Vt)return;await Ue();const{scrollContainer:I}=n;ai(I)?h.value=I:lt(I)&&I!==""?h.value=($=document.querySelector(I))!=null?$:void 0:d.value&&(h.value=cM(d.value)),h.value&&(p=bn(h,"scroll",k),setTimeout(()=>A(),100))}function D(){!Vt||!h.value||!k||(p==null||p(),h.value=void 0)}function L($){if($.ctrlKey){if($.deltaY<0)return $.preventDefault(),!1;if($.deltaY>0)return $.preventDefault(),!1}}function B(){w.value&&(g=bn("wheel",L,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function N(){g==null||g(),document.body.style.overflow=r,f.value=!1,t("close")}function O($){t("switch",$)}return xe(()=>n.src,()=>{S.value?(c.value=!0,u.value=!1,D(),E()):x()}),yt(()=>{S.value?E():x()}),($,I)=>(R(),K("div",{ref_key:"container",ref:d,class:V([y(i).b(),$.$attrs.class]),style:Ye(y(b))},[u.value?_e($.$slots,"error",{key:0},()=>[Y("div",{class:V(y(i).e("error"))},De(y(a)("el.image.error")),3)]):(R(),K(je,{key:1},[l.value!==void 0?(R(),K("img",St({key:0},y(s),{src:l.value,loading:$.loading,style:y(_),class:y(m),onClick:B,onLoad:T,onError:M}),null,16,n_e)):se("v-if",!0),c.value?(R(),K("div",{key:1,class:V(y(i).e("wrapper"))},[_e($.$slots,"placeholder",{},()=>[Y("div",{class:V(y(i).e("placeholder"))},null,2)])],2)):se("v-if",!0)],64)),y(w)?(R(),K(je,{key:2},[f.value?(R(),ce(y(_8),{key:0,"z-index":$.zIndex,"initial-index":y(C),infinite:$.infinite,"zoom-rate":$.zoomRate,"url-list":$.previewSrcList,"hide-on-click-modal":$.hideOnClickModal,teleported:$.previewTeleported,"close-on-press-escape":$.closeOnPressEscape,onClose:N,onSwitch:O},{default:re(()=>[$.$slots.viewer?(R(),K("div",r_e,[_e($.$slots,"viewer")])):se("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):se("v-if",!0)],64)):se("v-if",!0)],6))}});var o_e=Pe(i_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const s_e=_t(o_e),l_e=Le({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Sr,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||at(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),u_e={[mn]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[qr]:e=>at(e)||Kn(e),[wt]:e=>at(e)||Kn(e)},c_e=["aria-label","onKeydown"],f_e=["aria-label","onKeydown"],d_e=ne({name:"ElInputNumber"}),h_e=ne({...d_e,props:l_e,emits:u_e,setup(e,{expose:t,emit:n}){const r=e,{t:a}=Ht(),i=Me("input-number"),o=H(),s=jt({currentValue:r.modelValue,userInput:null}),{formItem:l}=aa(),u=P(()=>at(r.modelValue)&&r.modelValue<=r.min),c=P(()=>at(r.modelValue)&&r.modelValue>=r.max),f=P(()=>{const D=m(r.step);return er(r.precision)?Math.max(m(r.modelValue),D):(D>r.precision,r.precision)}),d=P(()=>r.controls&&r.controlsPosition==="right"),h=qn(),v=wa(),p=P(()=>{if(s.userInput!==null)return s.userInput;let D=s.currentValue;if(Kn(D))return"";if(at(D)){if(Number.isNaN(D))return"";er(r.precision)||(D=D.toFixed(r.precision))}return D}),g=(D,L)=>{if(er(L)&&(L=f.value),L===0)return Math.round(D);let B=String(D);const N=B.indexOf(".");if(N===-1||!B.replace(".","").split("")[N+L])return D;const I=B.length;return B.charAt(I-1)==="5"&&(B=`${B.slice(0,Math.max(0,I-1))}6`),Number.parseFloat(Number(B).toFixed(L))},m=D=>{if(Kn(D))return 0;const L=D.toString(),B=L.indexOf(".");let N=0;return B!==-1&&(N=L.length-B-1),N},b=(D,L=1)=>at(D)?g(D+r.step*L):s.currentValue,_=()=>{if(r.readonly||v.value||c.value)return;const D=Number(p.value)||0,L=b(D);S(L),n(qr,s.currentValue)},w=()=>{if(r.readonly||v.value||u.value)return;const D=Number(p.value)||0,L=b(D,-1);S(L),n(qr,s.currentValue)},C=(D,L)=>{const{max:B,min:N,step:O,precision:$,stepStrictly:I,valueOnClear:z}=r;B<N&&jn("InputNumber","min should not be greater than max.");let G=Number(D);if(Kn(D)||Number.isNaN(G))return null;if(D===""){if(z===null)return null;G=lt(z)?{min:N,max:B}[z]:z}return I&&(G=g(Math.round(G/O)*O,$)),er($)||(G=g(G,$)),(G>B||G<N)&&(G=G>B?B:N,L&&n(wt,G)),G},S=(D,L=!0)=>{var B;const N=s.currentValue,O=C(D);if(!L){n(wt,O);return}N!==O&&(s.userInput=null,n(wt,O),n(mn,O,N),r.validateEvent&&((B=l==null?void 0:l.validate)==null||B.call(l,"change").catch($=>void 0)),s.currentValue=O)},x=D=>{s.userInput=D;const L=D===""?null:Number(D);n(qr,L),S(L,!1)},T=D=>{const L=D!==""?Number(D):"";(at(L)&&!Number.isNaN(L)||D==="")&&S(L),s.userInput=null},M=()=>{var D,L;(L=(D=o.value)==null?void 0:D.focus)==null||L.call(D)},A=()=>{var D,L;(L=(D=o.value)==null?void 0:D.blur)==null||L.call(D)},k=D=>{n("focus",D)},E=D=>{var L;n("blur",D),r.validateEvent&&((L=l==null?void 0:l.validate)==null||L.call(l,"blur").catch(B=>void 0))};return xe(()=>r.modelValue,D=>{const L=C(s.userInput),B=C(D,!0);!at(L)&&(!L||L!==B)&&(s.currentValue=B,s.userInput=null)},{immediate:!0}),yt(()=>{var D;const{min:L,max:B,modelValue:N}=r,O=(D=o.value)==null?void 0:D.input;if(O.setAttribute("role","spinbutton"),Number.isFinite(B)?O.setAttribute("aria-valuemax",String(B)):O.removeAttribute("aria-valuemax"),Number.isFinite(L)?O.setAttribute("aria-valuemin",String(L)):O.removeAttribute("aria-valuemin"),O.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),O.setAttribute("aria-disabled",String(v.value)),!at(N)&&N!=null){let $=Number(N);Number.isNaN($)&&($=null),n(wt,$)}}),cs(()=>{var D,L;const B=(D=o.value)==null?void 0:D.input;B==null||B.setAttribute("aria-valuenow",`${(L=s.currentValue)!=null?L:""}`)}),t({focus:M,blur:A}),(D,L)=>(R(),K("div",{class:V([y(i).b(),y(i).m(y(h)),y(i).is("disabled",y(v)),y(i).is("without-controls",!D.controls),y(i).is("controls-right",y(d))]),onDragstart:L[1]||(L[1]=tt(()=>{},["prevent"]))},[D.controls?dt((R(),K("span",{key:0,role:"button","aria-label":y(a)("el.inputNumber.decrease"),class:V([y(i).e("decrease"),y(i).is("disabled",y(u))]),onKeydown:Ft(w,["enter"])},[q(y(Ke),null,{default:re(()=>[y(d)?(R(),ce(y(Ml),{key:0})):(R(),ce(y(yoe),{key:1}))]),_:1})],42,c_e)),[[y(v0),w]]):se("v-if",!0),D.controls?dt((R(),K("span",{key:1,role:"button","aria-label":y(a)("el.inputNumber.increase"),class:V([y(i).e("increase"),y(i).is("disabled",y(c))]),onKeydown:Ft(_,["enter"])},[q(y(Ke),null,{default:re(()=>[y(d)?(R(),ce(y(Yb),{key:0})):(R(),ce(y(H5),{key:1}))]),_:1})],42,f_e)),[[y(v0),_]]):se("v-if",!0),q(y(Rr),{id:D.id,ref_key:"input",ref:o,type:"number",step:D.step,"model-value":y(p),placeholder:D.placeholder,readonly:D.readonly,disabled:y(v),size:y(h),max:D.max,min:D.min,name:D.name,label:D.label,"validate-event":!1,onWheel:L[0]||(L[0]=tt(()=>{},["prevent"])),onKeydown:[Ft(tt(_,["prevent"]),["up"]),Ft(tt(w,["prevent"]),["down"])],onBlur:E,onFocus:k,onInput:x,onChange:T},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var v_e=Pe(h_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const w8=_t(v_e),p_e=Le({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:fn}}),g_e={click:e=>e instanceof MouseEvent},m_e=["href"],y_e=ne({name:"ElLink"}),b_e=ne({...y_e,props:p_e,emits:g_e,setup(e,{emit:t}){const n=e,r=Me("link"),a=P(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function i(o){n.disabled||t("click",o)}return(o,s)=>(R(),K("a",{class:V(y(a)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?(R(),ce(y(Ke),{key:0},{default:re(()=>[(R(),ce(Ct(o.icon)))]),_:1})):se("v-if",!0),o.$slots.default?(R(),K("span",{key:1,class:V(y(r).e("inner"))},[_e(o.$slots,"default")],2)):se("v-if",!0),o.$slots.icon?_e(o.$slots,"icon",{key:2}):se("v-if",!0)],10,m_e))}});var __e=Pe(b_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const w_e=_t(__e);let S_e=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let a=!1;switch(r.code){case Xe.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case Xe.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case Xe.tab:{ly(t,"mouseleave");break}case Xe.enter:case Xe.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}},C_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 S_e(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Xe.down:{ly(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Xe.up:{ly(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Xe.tab:{ly(t.currentTarget,"mouseleave");break}case Xe.enter:case Xe.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},x_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 C_e(r,t)})}};const T_e=ne({name:"ElMenuCollapseTransition",setup(){const e=Me("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){lo(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){ga(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Li(n,e.m("collapse"))?(ga(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),lo(n,e.m("collapse"))):(lo(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),ga(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){lo(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function M_e(e,t,n,r,a,i){return R(),ce(Bn,St({mode:"out-in"},e.listeners),{default:re(()=>[_e(e.$slots,"default")]),_:3},16)}var k_e=Pe(T_e,[["render",M_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function S8(e,t){const n=P(()=>{let a=e.parent;const i=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:P(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function A_e(e){return P(()=>{const n=e.backgroundColor;return n?new Qz(n).shade(20).toString():""})}const C8=(e,t)=>{const n=Me("menu");return P(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":A_e(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},E_e=Le({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:fn},expandOpenIcon:{type:fn},collapseCloseIcon:{type:fn},collapseOpenIcon:{type:fn}}),Zg="ElSubMenu";var qM=ne({name:Zg,props:E_e,setup(e,{slots:t,expose:n}){bo({from:"popper-append-to-body",replacement:"teleported",scope:Zg,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},P(()=>e.popperAppendToBody!==void 0));const r=gt(),{indexPath:a,parentMenu:i}=S8(r,P(()=>e.index)),o=Me("menu"),s=Me("sub-menu"),l=Ge("rootMenu");l||jn(Zg,"can not inject root menu");const u=Ge(`subMenu:${i.value.uid}`);u||jn(Zg,"can not inject sub menu");const c=H({}),f=H({});let d;const h=H(!1),v=H(),p=H(null),g=P(()=>k.value==="horizontal"&&b.value?"bottom-start":"right-start"),m=P(()=>k.value==="horizontal"&&b.value||k.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?S.value?e.expandOpenIcon:e.expandCloseIcon:Ml:e.collapseCloseIcon&&e.collapseOpenIcon?S.value?e.collapseOpenIcon:e.collapseCloseIcon:jr),b=P(()=>u.level===0),_=P(()=>{var z;const G=(z=e.teleported)!=null?z:e.popperAppendToBody;return G===void 0?b.value:G}),w=P(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),C=P(()=>k.value==="horizontal"&&b.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),S=P(()=>l.openedMenus.includes(e.index)),x=P(()=>{let z=!1;return Object.values(c.value).forEach(G=>{G.active&&(z=!0)}),Object.values(f.value).forEach(G=>{G.active&&(z=!0)}),z}),T=P(()=>l.props.backgroundColor||""),M=P(()=>l.props.activeTextColor||""),A=P(()=>l.props.textColor||""),k=P(()=>l.props.mode),E=jt({index:e.index,indexPath:a,active:x}),D=C8(l.props,u.level+1),L=P(()=>k.value!=="horizontal"?{color:A.value}:{borderBottomColor:x.value?l.props.activeTextColor?M.value:"":"transparent",color:x.value?M.value:A.value}),B=()=>{var z,G,U;return(U=(G=(z=p.value)==null?void 0:z.popperRef)==null?void 0:G.popperInstanceRef)==null?void 0:U.destroy()},N=z=>{z||B()},O=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:a.value,active:x.value})},$=(z,G=e.showTimeout)=>{var U;z.type!=="focus"&&(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,d==null||d(),{stop:d}=ic(()=>{l.openMenu(e.index,a.value)},G),_.value&&((U=i.value.vnode.el)==null||U.dispatchEvent(new MouseEvent("mouseenter")))))},I=(z=!1)=>{var G,U;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=ic(()=>!h.value&&l.closeMenu(e.index,a.value),e.hideTimeout),_.value&&z&&((G=r.parent)==null?void 0:G.type.name)==="ElSubMenu"&&((U=u.handleMouseleave)==null||U.call(u,!0)))};xe(()=>l.props.collapse,z=>N(!!z));{const z=U=>{f.value[U.index]=U},G=U=>{delete f.value[U.index]};Et(`subMenu:${r.uid}`,{addSubMenu:z,removeSubMenu:G,handleMouseleave:I,mouseInChild:h,level:u.level+1})}return n({opened:S}),yt(()=>{l.addSubMenu(E),u.addSubMenu(E)}),wn(()=>{u.removeSubMenu(E),l.removeSubMenu(E)}),()=>{var z;const G=[(z=t.title)==null?void 0:z.call(t),Ze(Ke,{class:s.e("icon-arrow"),style:{transform:S.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>lt(m.value)?Ze(r.appContext.components[m.value]):Ze(m.value)})],U=l.isMenuPopup?Ze(ea,{ref:p,visible:S.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:_.value,fallbackPlacements:C.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var Z;return Ze("div",{class:[o.m(k.value),o.m("popup-container"),e.popperClass],onMouseenter:ae=>$(ae,100),onMouseleave:()=>I(!0),onFocus:ae=>$(ae,100)},[Ze("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:D.value},[(Z=t.default)==null?void 0:Z.call(t)])])},default:()=>Ze("div",{class:s.e("title"),style:[L.value,{backgroundColor:T.value}],onClick:O},G)}):Ze(je,{},[Ze("div",{class:s.e("title"),style:[L.value,{backgroundColor:T.value}],ref:v,onClick:O},G),Ze(l1,{},{default:()=>{var Z;return dt(Ze("ul",{role:"menu",class:[o.b(),o.m("inline")],style:D.value},[(Z=t.default)==null?void 0:Z.call(t)]),[[Kt,S.value]])}})]);return Ze("li",{class:[s.b(),s.is("active",x.value),s.is("opened",S.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:S.value,onMouseenter:$,onMouseleave:()=>I(!0),onFocus:$},[U])}}});const I_e=Le({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ue(Array),default:()=>Cn([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),D_=e=>Array.isArray(e)&&e.every(t=>lt(t)),D_e={close:(e,t)=>lt(e)&&D_(t),open:(e,t)=>lt(e)&&D_(t),select:(e,t,n,r)=>lt(e)&&D_(t)&&Mt(n)&&(r===void 0||r instanceof Promise)};var P_e=ne({name:"ElMenu",props:I_e,emits:D_e,setup(e,{emit:t,slots:n,expose:r}){const a=gt(),i=a.appContext.config.globalProperties.$router,o=H(),s=Me("menu"),l=Me("sub-menu"),u=H(-1),c=H(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=H(e.defaultActive),d=H({}),h=H({}),v=P(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const k=f.value&&d.value[f.value];if(!k||e.mode==="horizontal"||e.collapse)return;k.indexPath.forEach(D=>{const L=h.value[D];L&&g(D,L.indexPath)})},g=(k,E)=>{c.value.includes(k)||(e.uniqueOpened&&(c.value=c.value.filter(D=>E.includes(D))),c.value.push(k),t("open",k,E))},m=k=>{const E=c.value.indexOf(k);E!==-1&&c.value.splice(E,1)},b=(k,E)=>{m(k),t("close",k,E)},_=({index:k,indexPath:E})=>{c.value.includes(k)?b(k,E):g(k,E)},w=k=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:E,indexPath:D}=k;if(!(Kn(E)||Kn(D)))if(e.router&&i){const L=k.route||E,B=i.push(L).then(N=>(N||(f.value=E),N));t("select",E,D,{index:E,indexPath:D,route:L},B)}else f.value=E,t("select",E,D,{index:E,indexPath:D})},C=k=>{const E=d.value,D=E[k]||f.value&&E[f.value]||E[e.defaultActive];D?f.value=D.index:f.value=k},S=()=>{var k,E;if(!o.value)return-1;const D=Array.from((E=(k=o.value)==null?void 0:k.childNodes)!=null?E:[]).filter(z=>z.nodeName!=="#comment"&&(z.nodeName!=="#text"||z.nodeValue)),L=64,B=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),N=Number.parseInt(getComputedStyle(o.value).paddingRight,10),O=o.value.clientWidth-B-N;let $=0,I=0;return D.forEach((z,G)=>{$+=z.offsetWidth||0,$<=O-L&&(I=G+1)}),I===D.length?-1:I},x=(k,E=33.34)=>{let D;return()=>{D&&clearTimeout(D),D=setTimeout(()=>{k()},E)}};let T=!0;const M=()=>{const k=()=>{u.value=-1,Ue(()=>{u.value=S()})};T?k():x(k)(),T=!1};xe(()=>e.defaultActive,k=>{d.value[k]||(f.value=""),C(k)}),xe(()=>e.collapse,k=>{k&&(c.value=[])}),xe(d.value,p);let A;Da(()=>{e.mode==="horizontal"&&e.ellipsis?A=$r(o,M).stop:A==null||A()});{const k=B=>{h.value[B.index]=B},E=B=>{delete h.value[B.index]};Et("rootMenu",jt({props:e,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:v,addMenuItem:B=>{d.value[B.index]=B},removeMenuItem:B=>{delete d.value[B.index]},addSubMenu:k,removeSubMenu:E,openMenu:g,closeMenu:b,handleMenuItemClick:w,handleSubMenuClick:_})),Et(`subMenu:${a.uid}`,{addSubMenu:k,removeSubMenu:E,mouseInChild:H(!1),level:0})}return yt(()=>{e.mode==="horizontal"&&new x_e(a.vnode.el,s.namespace.value)}),r({open:E=>{const{indexPath:D}=h.value[E];D.forEach(L=>g(L,D))},close:m,handleResize:M}),()=>{var k,E;let D=(E=(k=n.default)==null?void 0:k.call(n))!=null?E:[];const L=[];if(e.mode==="horizontal"&&o.value){const O=Ef(D),$=u.value===-1?O:O.slice(0,u.value),I=u.value===-1?[]:O.slice(u.value);I!=null&&I.length&&e.ellipsis&&(D=$,L.push(Ze(qM,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>Ze(Ke,{class:l.e("icon-more")},{default:()=>Ze(Eoe)}),default:()=>I})))}const B=C8(e,0),N=Ze("ul",{key:String(e.collapse),role:"menubar",ref:o,style:B.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...D,...L]);return e.collapseTransition&&e.mode==="vertical"?Ze(k_e,()=>N):N}}});const L_e=Le({index:{type:ue([String,null]),default:null},route:{type:ue([String,Object])},disabled:Boolean}),R_e={click:e=>lt(e.index)&&Array.isArray(e.indexPath)},P_="ElMenuItem",O_e=ne({name:P_,components:{ElTooltip:ea},props:L_e,emits:R_e,setup(e,{emit:t}){const n=gt(),r=Ge("rootMenu"),a=Me("menu"),i=Me("menu-item");r||jn(P_,"can not inject root menu");const{parentMenu:o,indexPath:s}=S8(n,kn(e,"index")),l=Ge(`subMenu:${o.value.uid}`);l||jn(P_,"can not inject sub menu");const u=P(()=>e.index===r.activeIndex),c=jt({index:e.index,indexPath:s,active:u}),f=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",c))};return yt(()=>{l.addSubMenu(c),r.addMenuItem(c)}),wn(()=>{l.removeSubMenu(c),r.removeMenuItem(c)}),{parentMenu:o,rootMenu:r,active:u,nsMenu:a,nsMenuItem:i,handleClick:f}}});function $_e(e,t,n,r,a,i){const o=ct("el-tooltip");return R(),K("li",{class:V([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(R(),ce(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:re(()=>[_e(e.$slots,"title")]),default:re(()=>[Y("div",{class:V(e.nsMenu.be("tooltip","trigger"))},[_e(e.$slots,"default")],2)]),_:3},8,["effect"])):(R(),K(je,{key:1},[_e(e.$slots,"default"),_e(e.$slots,"title")],64))],2)}var x8=Pe(O_e,[["render",$_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const N_e={title:String},B_e="ElMenuItemGroup",V_e=ne({name:B_e,props:N_e,setup(){return{ns:Me("menu-item-group")}}});function z_e(e,t,n,r,a,i){return R(),K("li",{class:V(e.ns.b())},[Y("div",{class:V(e.ns.e("title"))},[e.$slots.title?_e(e.$slots,"title",{key:1}):(R(),K(je,{key:0},[Ut(De(e.title),1)],64))],2),Y("ul",null,[_e(e.$slots,"default")])],2)}var T8=Pe(V_e,[["render",z_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const F_e=_t(P_e,{MenuItem:x8,MenuItemGroup:T8,SubMenu:qM}),H_e=Dn(x8),G_e=Dn(T8),W_e=Dn(qM),K_e=Le({icon:{type:fn,default:()=>hae},title:String,content:{type:String,default:""}}),U_e={back:()=>!0},Y_e=["aria-label"],j_e=ne({name:"ElPageHeader"}),q_e=ne({...j_e,props:K_e,emits:U_e,setup(e,{emit:t}){const n=Mr(),{t:r}=Ht(),a=Me("page-header"),i=P(()=>[a.b(),{[a.m("has-breadcrumb")]:!!n.breadcrumb,[a.m("has-extra")]:!!n.extra,[a.is("contentful")]:!!n.default}]);function o(){t("back")}return(s,l)=>(R(),K("div",{class:V(y(i))},[s.$slots.breadcrumb?(R(),K("div",{key:0,class:V(y(a).e("breadcrumb"))},[_e(s.$slots,"breadcrumb")],2)):se("v-if",!0),Y("div",{class:V(y(a).e("header"))},[Y("div",{class:V(y(a).e("left"))},[Y("div",{class:V(y(a).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(R(),K("div",{key:0,"aria-label":s.title||y(r)("el.pageHeader.title"),class:V(y(a).e("icon"))},[_e(s.$slots,"icon",{},()=>[s.icon?(R(),ce(y(Ke),{key:0},{default:re(()=>[(R(),ce(Ct(s.icon)))]),_:1})):se("v-if",!0)])],10,Y_e)):se("v-if",!0),Y("div",{class:V(y(a).e("title"))},[_e(s.$slots,"title",{},()=>[Ut(De(s.title||y(r)("el.pageHeader.title")),1)])],2)],2),q(y(c8),{direction:"vertical"}),Y("div",{class:V(y(a).e("content"))},[_e(s.$slots,"content",{},()=>[Ut(De(s.content),1)])],2)],2),s.$slots.extra?(R(),K("div",{key:0,class:V(y(a).e("extra"))},[_e(s.$slots,"extra")],2)):se("v-if",!0)],2),s.$slots.default?(R(),K("div",{key:1,class:V(y(a).e("main"))},[_e(s.$slots,"default")],2)):se("v-if",!0)],2))}});var X_e=Pe(q_e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const Z_e=_t(X_e),M8=Symbol("elPaginationKey"),J_e=Le({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:fn}}),Q_e={click:e=>e instanceof MouseEvent},ewe=["disabled","aria-label","aria-disabled"],twe={key:0},nwe=ne({name:"ElPaginationPrev"}),rwe=ne({...nwe,props:J_e,emits:Q_e,setup(e){const t=e,{t:n}=Ht(),r=P(()=>t.disabled||t.currentPage<=1);return(a,i)=>(R(),K("button",{type:"button",class:"btn-prev",disabled:y(r),"aria-label":a.prevText||y(n)("el.pagination.prev"),"aria-disabled":y(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.prevText?(R(),K("span",twe,De(a.prevText),1)):(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(a.prevIcon)))]),_:1}))],8,ewe))}});var awe=Pe(rwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const iwe=Le({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:fn}}),owe=["disabled","aria-label","aria-disabled"],swe={key:0},lwe=ne({name:"ElPaginationNext"}),uwe=ne({...lwe,props:iwe,emits:["click"],setup(e){const t=e,{t:n}=Ht(),r=P(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,i)=>(R(),K("button",{type:"button",class:"btn-next",disabled:y(r),"aria-label":a.nextText||y(n)("el.pagination.next"),"aria-disabled":y(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.nextText?(R(),K("span",swe,De(a.nextText),1)):(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(a.nextIcon)))]),_:1}))],8,owe))}});var cwe=Pe(uwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const k8=Symbol("ElSelectGroup"),rg=Symbol("ElSelect");function fwe(e,t){const n=Ge(rg),r=Ge(k8,{disabled:!1}),a=P(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),i=P(()=>n.props.multiple?f(n.props.modelValue,e.value):d(e.value,n.props.modelValue)),o=P(()=>{if(n.props.multiple){const p=n.props.modelValue||[];return!i.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=P(()=>e.label||(a.value?"":e.value)),l=P(()=>e.value||e.label||""),u=P(()=>e.disabled||t.groupDisabled||o.value),c=gt(),f=(p=[],g)=>{if(a.value){const m=n.props.valueKey;return p&&p.some(b=>tn(Sn(b,m))===Sn(g,m))}else return p&&p.includes(g)},d=(p,g)=>{if(a.value){const{valueKey:m}=n.props;return Sn(p,m)===Sn(g,m)}else return p===g},h=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};xe(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),xe(()=>e.value,(p,g)=>{const{remote:m,valueKey:b}=n.props;if(Object.is(p,g)||(n.onOptionDestroy(g,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!m){if(b&&typeof p=="object"&&typeof g=="object"&&p[b]===g[b])return;n.setSelected()}}),xe(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:v}=tn(n);return xe(v,p=>{const{query:g}=y(p),m=new RegExp($5(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 dwe=ne({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Me("select"),n=P(()=>[t.be("dropdown","item"),t.is("disabled",y(o)),{selected:y(i),hover:y(c)}]),r=jt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l}=fwe(e,r),{visible:u,hover:c}=or(r),f=gt().proxy;s.onOptionCreate(f),wn(()=>{const h=f.value,{selected:v}=s,g=(s.props.multiple?v:[v]).some(m=>m.value===f.value);Ue(()=>{s.cachedOptions.get(h)===f&&!g&&s.cachedOptions.delete(h)}),s.onOptionDestroy(h,f)});function d(){e.disabled!==!0&&r.groupDisabled!==!0&&s.handleOptionSelect(f)}return{ns:t,containerKls:n,currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l,visible:u,hover:c,selectOptionClick:d,states:r}}});function hwe(e,t,n,r,a,i){return dt((R(),K("li",{class:V(e.containerKls),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=tt((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[_e(e.$slots,"default",{},()=>[Y("span",null,De(e.currentLabel),1)])],34)),[[Kt,e.visible]])}var XM=Pe(dwe,[["render",hwe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const vwe=ne({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ge(rg),t=Me("select"),n=P(()=>e.props.popperClass),r=P(()=>e.props.multiple),a=P(()=>e.props.fitInputWidth),i=H("");function o(){var s;i.value=`${(s=e.selectWrapper)==null?void 0:s.offsetWidth}px`}return yt(()=>{o(),$r(e.selectWrapper,o)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function pwe(e,t,n,r,a,i){return R(),K("div",{class:V([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Ye({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[_e(e.$slots,"default")],6)}var gwe=Pe(vwe,[["render",pwe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function mwe(e){const{t}=Ht();return jt({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const ywe=(e,t,n)=>{const{t:r}=Ht(),a=Me("select");bo({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},P(()=>e.suffixTransition===!1));const i=H(null),o=H(null),s=H(null),l=H(null),u=H(null),c=H(null),f=H(null),d=H(null),h=H(-1),v=un({query:""}),p=un(""),g=H([]);let m=0;const{form:b,formItem:_}=aa(),w=P(()=>!e.filterable||e.multiple||!t.visible),C=P(()=>e.disabled||(b==null?void 0:b.disabled)),S=P(()=>{const be=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!C.value&&t.inputHovering&&be}),x=P(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),T=P(()=>a.is("reverse",x.value&&t.visible&&e.suffixTransition)),M=P(()=>(b==null?void 0:b.statusIcon)&&(_==null?void 0:_.validateState)&&pM[_==null?void 0:_.validateState]),A=P(()=>e.remote?300:0),k=P(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),E=P(()=>{const be=Array.from(t.options.values()),Ne=[];return g.value.forEach(he=>{const ze=be.findIndex(At=>At.currentLabel===he);ze>-1&&Ne.push(be[ze])}),Ne.length>=be.length?Ne:be}),D=P(()=>Array.from(t.cachedOptions.values())),L=P(()=>{const be=E.value.filter(Ne=>!Ne.created).some(Ne=>Ne.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!be}),B=qn(),N=P(()=>["small"].includes(B.value)?"small":"default"),O=P({get(){return t.visible&&k.value!==!1},set(be){t.visible=be}});xe([()=>C.value,()=>B.value,()=>b==null?void 0:b.size],()=>{Ue(()=>{$()})}),xe(()=>e.placeholder,be=>{t.cachedPlaceHolder=t.currentPlaceholder=be,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),xe(()=>e.modelValue,(be,Ne)=>{e.multiple&&($(),be&&be.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",I(t.query))),U(),e.filterable&&!e.multiple&&(t.inputLength=20),!pa(be,Ne)&&e.validateEvent&&(_==null||_.validate("change").catch(he=>void 0))},{flush:"post",deep:!0}),xe(()=>t.visible,be=>{var Ne,he,ze,At,Wt;be?((he=(Ne=l.value)==null?void 0:Ne.updatePopper)==null||he.call(Ne),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(At=(ze=s.value)==null?void 0:ze.focus)==null||At.call(ze),e.multiple?(Wt=o.value)==null||Wt.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),I(t.query),!e.multiple&&!e.remote&&(v.value.query="",Jd(v),Jd(p)))):(e.filterable&&(it(e.filterMethod)&&e.filterMethod(""),it(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,ae(),Ue(()=>{o.value&&o.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",be)}),xe(()=>t.options.entries(),()=>{var be,Ne,he;if(!Vt)return;(Ne=(be=l.value)==null?void 0:be.updatePopper)==null||Ne.call(be),e.multiple&&$();const ze=((he=f.value)==null?void 0:he.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!er(e.modelValue)||!Array.from(ze).includes(document.activeElement))&&U(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&G()},{flush:"post"}),xe(()=>t.hoverIndex,be=>{at(be)&&be>-1?h.value=E.value[be]||{}:h.value={},E.value.forEach(Ne=>{Ne.hover=h.value===Ne})});const $=()=>{Ue(()=>{var be,Ne;if(!i.value)return;const he=i.value.$el.querySelector("input");m=m||(he.clientHeight>0?he.clientHeight+2:0);const ze=c.value,At=mle(B.value||(b==null?void 0:b.size)),Wt=B.value||At===m||m<=0?At:m;!(he.offsetParent===null)&&(he.style.height=`${(t.selected.length===0?Wt:Math.max(ze?ze.clientHeight+(ze.clientHeight>Wt?6:0):0,Wt))-2}px`),t.visible&&k.value!==!1&&((Ne=(be=l.value)==null?void 0:be.updatePopper)==null||Ne.call(be))})},I=async be=>{if(!(t.previousQuery===be||t.isOnComposition)){if(t.previousQuery===null&&(it(e.filterMethod)||it(e.remoteMethod))){t.previousQuery=be;return}t.previousQuery=be,Ue(()=>{var Ne,he;t.visible&&((he=(Ne=l.value)==null?void 0:Ne.updatePopper)==null||he.call(Ne))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Ue(()=>{if(!C.value){const Ne=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,Ne):Ne,z()}$()}),e.remote&&it(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(be)):it(e.filterMethod)?(e.filterMethod(be),Jd(p)):(t.filteredOptionsCount=t.optionsCount,v.value.query=be,Jd(v),Jd(p)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Ue(),G())}},z=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},G=()=>{const be=E.value.filter(ze=>ze.visible&&!ze.disabled&&!ze.states.groupDisabled),Ne=be.find(ze=>ze.created),he=be[0];t.hoverIndex=Se(E.value,Ne||he)},U=()=>{var be;if(e.multiple)t.selectedLabel="";else{const he=Z(e.modelValue);(be=he.props)!=null&&be.created?(t.createdLabel=he.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=he.currentLabel,t.selected=he,e.filterable&&(t.query=t.selectedLabel);return}const Ne=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(he=>{Ne.push(Z(he))}),t.selected=Ne,Ue(()=>{$()})},Z=be=>{let Ne;const he=ry(be).toLowerCase()==="object",ze=ry(be).toLowerCase()==="null",At=ry(be).toLowerCase()==="undefined";for(let Qn=t.cachedOptions.size-1;Qn>=0;Qn--){const kr=D.value[Qn];if(he?Sn(kr.value,e.valueKey)===Sn(be,e.valueKey):kr.value===be){Ne={value:be,currentLabel:kr.currentLabel,isDisabled:kr.isDisabled};break}}if(Ne)return Ne;const Wt=he?be.label:!ze&&!At?be:"",Jn={value:be,currentLabel:Wt};return e.multiple&&(Jn.hitState=!1),Jn},ae=()=>{setTimeout(()=>{const be=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(Ne=>E.value.findIndex(he=>Sn(he,be)===Sn(Ne,be)))):t.hoverIndex=-1:t.hoverIndex=E.value.findIndex(Ne=>ke(Ne)===ke(t.selected))},300)},J=()=>{var be,Ne;Q(),(Ne=(be=l.value)==null?void 0:be.updatePopper)==null||Ne.call(be),e.multiple&&$()},Q=()=>{var be;t.inputWidth=(be=i.value)==null?void 0:be.$el.offsetWidth},ee=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,I(t.query))},j=Qr(()=>{ee()},A.value),de=Qr(be=>{I(be.target.value)},A.value),ve=be=>{pa(e.modelValue,be)||n.emit(mn,be)},ie=be=>mre(be,Ne=>!t.disabledOptions.has(Ne)),W=be=>{if(be.code!==Xe.delete){if(be.target.value.length<=0&&!$e()){const Ne=e.modelValue.slice(),he=ie(Ne);if(he<0)return;Ne.splice(he,1),n.emit(wt,Ne),ve(Ne)}be.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},X=(be,Ne)=>{const he=t.selected.indexOf(Ne);if(he>-1&&!C.value){const ze=e.modelValue.slice();ze.splice(he,1),n.emit(wt,ze),ve(ze),n.emit("remove-tag",Ne.value)}be.stopPropagation(),Fe()},oe=be=>{be.stopPropagation();const Ne=e.multiple?[]:"";if(!lt(Ne))for(const he of t.selected)he.isDisabled&&Ne.push(he.value);n.emit(wt,Ne),ve(Ne),t.hoverIndex=-1,t.visible=!1,n.emit("clear"),Fe()},pe=be=>{var Ne;if(e.multiple){const he=(e.modelValue||[]).slice(),ze=Se(he,be.value);ze>-1?he.splice(ze,1):(e.multipleLimit<=0||he.length<e.multipleLimit)&&he.push(be.value),n.emit(wt,he),ve(he),be.created&&(t.query="",I(""),t.inputLength=20),e.filterable&&((Ne=o.value)==null||Ne.focus())}else n.emit(wt,be.value),ve(be.value),t.visible=!1;me(),!t.visible&&Ue(()=>{Ee(be)})},Se=(be=[],Ne)=>{if(!Mt(Ne))return be.indexOf(Ne);const he=e.valueKey;let ze=-1;return be.some((At,Wt)=>tn(Sn(At,he))===Sn(Ne,he)?(ze=Wt,!0):!1),ze},me=()=>{const be=o.value||i.value;be&&(be==null||be.focus())},Ee=be=>{var Ne,he,ze,At,Wt;const Jn=Array.isArray(be)?be[0]:be;let Qn=null;if(Jn!=null&&Jn.value){const kr=E.value.filter(Ar=>Ar.value===Jn.value);kr.length>0&&(Qn=kr[0].$el)}if(l.value&&Qn){const kr=(At=(ze=(he=(Ne=l.value)==null?void 0:Ne.popperRef)==null?void 0:he.contentRef)==null?void 0:ze.querySelector)==null?void 0:At.call(ze,`.${a.be("dropdown","wrap")}`);kr&&V5(kr,Qn)}(Wt=d.value)==null||Wt.handleScroll()},Ce=be=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(be.value,be),t.cachedOptions.set(be.value,be),be.disabled&&t.disabledOptions.set(be.value,be)},we=(be,Ne)=>{t.options.get(be)===Ne&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(be))},Te=be=>{be.code!==Xe.backspace&&$e(!1),t.inputLength=o.value.value.length*15+20,$()},$e=be=>{if(!Array.isArray(t.selected))return;const Ne=ie(t.selected.map(ze=>ze.value)),he=t.selected[Ne];if(he)return be===!0||be===!1?(he.hitState=be,be):(he.hitState=!he.hitState,he.hitState)},Be=be=>{const Ne=be.target.value;if(be.type==="compositionend")t.isOnComposition=!1,Ue(()=>I(Ne));else{const he=Ne[Ne.length-1]||"";t.isOnComposition=!Zb(he)}},We=()=>{Ue(()=>Ee(t.selected))},Ae=be=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,n.emit("focus",be))},Fe=()=>{var be,Ne;t.visible?(be=o.value||i.value)==null||be.focus():(Ne=i.value)==null||Ne.focus()},rt=()=>{var be,Ne,he;t.visible=!1,(be=i.value)==null||be.blur(),(he=(Ne=s.value)==null?void 0:Ne.blur)==null||he.call(Ne)},vt=be=>{var Ne,he,ze;(Ne=l.value)!=null&&Ne.isFocusInsideContent(be)||(he=u.value)!=null&&he.isFocusInsideContent(be)||(ze=f.value)!=null&&ze.contains(be.relatedTarget)||(t.visible&&Qe(),t.focused=!1,n.emit("blur",be))},kt=be=>{oe(be)},Qe=()=>{t.visible=!1},ye=be=>{t.visible&&(be.preventDefault(),be.stopPropagation(),t.visible=!1)},fe=be=>{be&&!t.mouseEnter||C.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),Fe())},le=()=>{t.visible?E.value[t.hoverIndex]&&pe(E.value[t.hoverIndex]):fe()},ke=be=>Mt(be.value)?Sn(be.value,e.valueKey):be.value,te=P(()=>E.value.filter(be=>be.visible).every(be=>be.disabled)),Ve=P(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),st=P(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),It=be=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!te.value){be==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):be==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const Ne=E.value[t.hoverIndex];(Ne.disabled===!0||Ne.states.groupDisabled===!0||!Ne.visible)&&It(be),Ue(()=>Ee(h.value))}},zn=()=>{t.mouseEnter=!0},Zn=()=>{t.mouseEnter=!1},oa=(be,Ne)=>{var he,ze;X(be,Ne),(ze=(he=u.value)==null?void 0:he.updatePopper)==null||ze.call(he)},pr=P(()=>({maxWidth:`${y(t.inputWidth)-32-(M.value?22:0)}px`,width:"100%"}));return{optionList:g,optionsArray:E,selectSize:B,handleResize:J,debouncedOnInputChange:j,debouncedQueryChange:de,deletePrevTag:W,deleteTag:X,deleteSelected:oe,handleOptionSelect:pe,scrollToOption:Ee,readonly:w,resetInputHeight:$,showClose:S,iconComponent:x,iconReverse:T,showNewOption:L,collapseTagSize:N,setSelected:U,managePlaceholder:z,selectDisabled:C,emptyText:k,toggleLastOptionHitState:$e,resetInputState:Te,handleComposition:Be,onOptionCreate:Ce,onOptionDestroy:we,handleMenuEnter:We,handleFocus:Ae,focus:Fe,blur:rt,handleBlur:vt,handleClearClick:kt,handleClose:Qe,handleKeydownEscape:ye,toggleMenu:fe,selectOption:le,getValueKey:ke,navigateOptions:It,handleDeleteTooltipTag:oa,dropMenuVisible:O,queryChange:v,groupQueryChange:p,showTagList:Ve,collapseTagList:st,selectTagsStyle:pr,reference:i,input:o,iOSInput:s,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:f,scrollbar:d,handleMouseEnter:zn,handleMouseLeave:Zn}};var bwe=ne({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function a(i,o){if(i.length!==o.length)return!1;for(const[s]of i.entries())if(i[s]!=o[s])return!1;return!0}return()=>{var i,o;const s=(i=t.default)==null?void 0:i.call(t),l=[];function u(c){Array.isArray(c)&&c.forEach(f=>{var d,h,v,p;const g=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?u(!lt(f.children)&&!Array.isArray(f.children)&&it((h=f.children)==null?void 0:h.default)?(v=f.children)==null?void 0:v.default():f.children):g==="ElOption"?l.push((p=f.props)==null?void 0:p.label):Array.isArray(f.children)&&u(f.children)})}return s.length&&u((o=s[0])==null?void 0:o.children),a(l,r)||(r=l,n("update-options",l)),s}}});const UP="ElSelect",_we=ne({name:UP,componentName:UP,components:{ElInput:Rr,ElSelectMenu:gwe,ElOption:XM,ElOptions:bwe,ElTag:ep,ElScrollbar:hs,ElTooltip:ea,ElIcon:Ke},directives:{ClickOutside:pl},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:Xb},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:cr.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:fn,default:kl},fitInputWidth:Boolean,suffixIcon:{type:fn,default:Ml},tagType:{...FM.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Sc,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[wt,mn,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Me("select"),r=Me("input"),{t:a}=Ht(),i=mwe(e),{optionList:o,optionsArray:s,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:v,deleteTag:p,deleteSelected:g,handleOptionSelect:m,scrollToOption:b,setSelected:_,resetInputHeight:w,managePlaceholder:C,showClose:S,selectDisabled:x,iconComponent:T,iconReverse:M,showNewOption:A,emptyText:k,toggleLastOptionHitState:E,resetInputState:D,handleComposition:L,onOptionCreate:B,onOptionDestroy:N,handleMenuEnter:O,handleFocus:$,focus:I,blur:z,handleBlur:G,handleClearClick:U,handleClose:Z,handleKeydownEscape:ae,toggleMenu:J,selectOption:Q,getValueKey:ee,navigateOptions:j,handleDeleteTooltipTag:de,dropMenuVisible:ve,reference:ie,input:W,iOSInput:X,tooltipRef:oe,tagTooltipRef:pe,tags:Se,selectWrapper:me,scrollbar:Ee,queryChange:Ce,groupQueryChange:we,handleMouseEnter:Te,handleMouseLeave:$e,showTagList:Be,collapseTagList:We,selectTagsStyle:Ae}=ywe(e,i,t),{inputWidth:Fe,selected:rt,inputLength:vt,filteredOptionsCount:kt,visible:Qe,selectedLabel:ye,hoverIndex:fe,query:le,inputHovering:ke,currentPlaceholder:te,menuVisibleOnFocus:Ve,isOnComposition:st,options:It,cachedOptions:zn,optionsCount:Zn,prefixWidth:oa}=or(i),pr=P(()=>{const Ar=[n.b()],Nl=y(l);return Nl&&Ar.push(n.m(Nl)),e.disabled&&Ar.push(n.m("disabled")),Ar}),be=P(()=>[n.e("tags"),n.is("disabled",y(x))]),Ne=P(()=>[n.b("tags-wrapper"),{"has-prefix":y(oa)&&y(rt).length}]),he=P(()=>[n.e("input"),n.is(y(l)),n.is("disabled",y(x))]),ze=P(()=>[n.e("input"),n.is(y(l)),n.em("input","iOS")]),At=P(()=>[n.is("empty",!e.allowCreate&&!!y(le)&&y(kt)===0)]),Wt=P(()=>({maxWidth:`${y(Fe)>123?y(Fe)-123:y(Fe)-75}px`})),Jn=P(()=>({marginLeft:`${y(oa)}px`,flexGrow:1,width:`${y(vt)/(y(Fe)-32)}%`,maxWidth:`${y(Fe)-42}px`}));Et(rg,jt({props:e,options:It,optionsArray:s,cachedOptions:zn,optionsCount:Zn,filteredOptionsCount:kt,hoverIndex:fe,handleOptionSelect:m,onOptionCreate:B,onOptionDestroy:N,selectWrapper:me,selected:rt,setSelected:_,queryChange:Ce,groupQueryChange:we})),yt(()=>{i.cachedPlaceHolder=te.value=e.placeholder||(()=>a("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(te.value=""),$r(me,c),e.remote&&e.multiple&&w(),Ue(()=>{const Ar=ie.value&&ie.value.$el;if(Ar&&(Fe.value=Ar.getBoundingClientRect().width,t.slots.prefix)){const Nl=Ar.querySelector(`.${r.e("prefix")}`);oa.value=Math.max(Nl.getBoundingClientRect().width+11,30)}}),_()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(wt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(wt,"");const Qn=P(()=>{var Ar,Nl;return(Nl=(Ar=oe.value)==null?void 0:Ar.popperRef)==null?void 0:Nl.contentRef});return{isIOS:qV,onOptionsRendered:Ar=>{o.value=Ar},prefixWidth:oa,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:v,deleteTag:p,handleDeleteTooltipTag:de,deleteSelected:g,handleOptionSelect:m,scrollToOption:b,inputWidth:Fe,selected:rt,inputLength:vt,filteredOptionsCount:kt,visible:Qe,selectedLabel:ye,hoverIndex:fe,query:le,inputHovering:ke,currentPlaceholder:te,menuVisibleOnFocus:Ve,isOnComposition:st,options:It,resetInputHeight:w,managePlaceholder:C,showClose:S,selectDisabled:x,iconComponent:T,iconReverse:M,showNewOption:A,emptyText:k,toggleLastOptionHitState:E,resetInputState:D,handleComposition:L,handleMenuEnter:O,handleFocus:$,focus:I,blur:z,handleBlur:G,handleClearClick:U,handleClose:Z,handleKeydownEscape:ae,toggleMenu:J,selectOption:Q,getValueKey:ee,navigateOptions:j,dropMenuVisible:ve,reference:ie,input:W,iOSInput:X,tooltipRef:oe,popperPaneRef:Qn,tags:Se,selectWrapper:me,scrollbar:Ee,wrapperKls:pr,tagsKls:be,tagWrapperKls:Ne,inputKls:he,iOSInputKls:ze,scrollbarKls:At,selectTagsStyle:Ae,nsSelect:n,tagTextStyle:Wt,inputStyle:Jn,handleMouseEnter:Te,handleMouseLeave:$e,showTagList:Be,collapseTagList:We,tagTooltipRef:pe}}}),wwe=["disabled","autocomplete","aria-label"],Swe=["disabled"],Cwe={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function xwe(e,t,n,r,a,i){const o=ct("el-tag"),s=ct("el-tooltip"),l=ct("el-icon"),u=ct("el-input"),c=ct("el-option"),f=ct("el-options"),d=ct("el-scrollbar"),h=ct("el-select-menu"),v=Bv("click-outside");return dt((R(),K("div",{ref:"selectWrapper",class:V(e.wrapperKls),onMouseenter:t[22]||(t[22]=(...p)=>e.handleMouseEnter&&e.handleMouseEnter(...p)),onMouseleave:t[23]||(t[23]=(...p)=>e.handleMouseLeave&&e.handleMouseLeave(...p)),onClick:t[24]||(t[24]=tt((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},[q(s,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:re(()=>[Y("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=p=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=p=>e.inputHovering=!1)},[e.multiple?(R(),K("div",{key:0,ref:"tags",tabindex:"-1",class:V(e.tagsKls),style:Ye(e.selectTagsStyle),onClick:t[15]||(t[15]=(...p)=>e.focus&&e.focus(...p))},[e.collapseTags&&e.selected.length?(R(),ce(Bn,{key:0,onAfterLeave:e.resetInputHeight},{default:re(()=>[Y("span",{class:V(e.tagWrapperKls)},[(R(!0),K(je,null,Ot(e.showTagList,p=>(R(),ce(o,{key:e.getValueKey(p),closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,p)},{default:re(()=>[Y("span",{class:V(e.nsSelect.e("tags-text")),style:Ye(e.tagTextStyle)},De(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(R(),ce(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:re(()=>[e.collapseTagsTooltip?(R(),ce(s,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:re(()=>[Y("span",{class:V(e.nsSelect.e("tags-text"))},"+ "+De(e.selected.length-e.maxCollapseTags),3)]),content:re(()=>[Y("div",{class:V(e.nsSelect.e("collapse-tags"))},[(R(!0),K(je,null,Ot(e.collapseTagList,p=>(R(),K("div",{key:e.getValueKey(p),class:V(e.nsSelect.e("collapse-tag"))},[q(o,{class:"in-tooltip",closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>e.handleDeleteTooltipTag(g,p)},{default:re(()=>[Y("span",{class:V(e.nsSelect.e("tags-text")),style:Ye({maxWidth:e.inputWidth-75+"px"})},De(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(R(),K("span",{key:1,class:V(e.nsSelect.e("tags-text"))},"+ "+De(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):se("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):se("v-if",!0),e.collapseTags?se("v-if",!0):(R(),ce(Bn,{key:1,onAfterLeave:e.resetInputHeight},{default:re(()=>[Y("span",{class:V(e.tagWrapperKls),style:Ye(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(R(!0),K(je,null,Ot(e.selected,p=>(R(),ce(o,{key:e.getValueKey(p),closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,p)},{default:re(()=>[Y("span",{class:V(e.nsSelect.e("tags-text")),style:Ye({maxWidth:e.inputWidth-75+"px"})},De(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?dt((R(),K("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=p=>e.query=p),type:"text",class:V(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Ye(e.inputStyle),"aria-label":e.ariaLabel,onFocus:t[1]||(t[1]=(...p)=>e.handleFocus&&e.handleFocus(...p)),onBlur:t[2]||(t[2]=(...p)=>e.handleBlur&&e.handleBlur(...p)),onKeyup:t[3]||(t[3]=(...p)=>e.managePlaceholder&&e.managePlaceholder(...p)),onKeydown:[t[4]||(t[4]=(...p)=>e.resetInputState&&e.resetInputState(...p)),t[5]||(t[5]=Ft(tt(p=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=Ft(tt(p=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=Ft((...p)=>e.handleKeydownEscape&&e.handleKeydownEscape(...p),["esc"])),t[8]||(t[8]=Ft(tt((...p)=>e.selectOption&&e.selectOption(...p),["stop","prevent"]),["enter"])),t[9]||(t[9]=Ft((...p)=>e.deletePrevTag&&e.deletePrevTag(...p),["delete"])),t[10]||(t[10]=Ft(p=>e.visible=!1,["tab"]))],onCompositionstart:t[11]||(t[11]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onCompositionupdate:t[12]||(t[12]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onCompositionend:t[13]||(t[13]=(...p)=>e.handleComposition&&e.handleComposition(...p)),onInput:t[14]||(t[14]=(...p)=>e.debouncedQueryChange&&e.debouncedQueryChange(...p))},null,46,wwe)),[[HT,e.query]]):se("v-if",!0)],6)):se("v-if",!0),se(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(R(),K("input",{key:1,ref:"iOSInput",class:V(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,Swe)):se("v-if",!0),q(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=p=>e.selectedLabel=p),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:V([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,label:e.ariaLabel,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=Ft(tt(p=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Ft(tt(p=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Ft(tt(e.selectOption,["stop","prevent"]),["enter"]),Ft(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Ft(p=>e.visible=!1,["tab"]))]},Jo({suffix:re(()=>[e.iconComponent&&!e.showClose?(R(),ce(l,{key:0,class:V([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:re(()=>[(R(),ce(Ct(e.iconComponent)))]),_:1},8,["class"])):se("v-if",!0),e.showClose&&e.clearIcon?(R(),ce(l,{key:1,class:V([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:re(()=>[(R(),ce(Ct(e.clearIcon)))]),_:1},8,["class","onClick"])):se("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:re(()=>[Y("div",Cwe,[_e(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:re(()=>[q(h,null,{default:re(()=>[dt(q(d,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:V(e.scrollbarKls)},{default:re(()=>[e.showNewOption?(R(),ce(c,{key:0,value:e.query,created:!0},null,8,["value"])):se("v-if",!0),q(f,{onUpdateOptions:e.onOptionsRendered},{default:re(()=>[_e(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[Kt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(R(),K(je,{key:0},[e.$slots.empty?_e(e.$slots,"empty",{key:0}):(R(),K("p",{key:1,class:V(e.nsSelect.be("dropdown","empty"))},De(e.emptyText),3))],64)):se("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[v,e.handleClose,e.popperPaneRef]])}var Twe=Pe(_we,[["render",xwe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const Mwe=ne({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Me("select"),n=H(!0),r=gt(),a=H([]);Et(k8,jt({...or(e)}));const i=Ge(rg);yt(()=>{a.value=o(r.subTree)});const o=l=>{const u=[];return Array.isArray(l.children)&&l.children.forEach(c=>{var f;c.type&&c.type.name==="ElOption"&&c.component&&c.component.proxy?u.push(c.component.proxy):(f=c.children)!=null&&f.length&&u.push(...o(c))}),u},{groupQueryChange:s}=tn(i);return xe(s,()=>{n.value=a.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function kwe(e,t,n,r,a,i){return dt((R(),K("ul",{class:V(e.ns.be("group","wrap"))},[Y("li",{class:V(e.ns.be("group","title"))},De(e.label),3),Y("li",null,[Y("ul",{class:V(e.ns.b("group"))},[_e(e.$slots,"default")],2)])],2)),[[Kt,e.visible]])}var A8=Pe(Mwe,[["render",kwe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const lc=_t(Twe,{Option:XM,OptionGroup:A8}),g0=Dn(XM),Awe=Dn(A8),ZM=()=>Ge(M8,{}),Ewe=Le({pageSize:{type:Number,required:!0},pageSizes:{type:ue(Array),default:()=>Cn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Mo}}),Iwe=ne({name:"ElPaginationSizes"}),Dwe=ne({...Iwe,props:Ewe,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=Ht(),a=Me("pagination"),i=ZM(),o=H(n.pageSize);xe(()=>n.pageSizes,(u,c)=>{if(!pa(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),xe(()=>n.pageSize,u=>{o.value=u});const s=P(()=>n.pageSizes);function l(u){var c;u!==o.value&&(o.value=u,(c=i.handleSizeChange)==null||c.call(i,Number(u)))}return(u,c)=>(R(),K("span",{class:V(y(a).e("sizes"))},[q(y(lc),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:re(()=>[(R(!0),K(je,null,Ot(y(s),f=>(R(),ce(y(g0),{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 Pwe=Pe(Dwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const Lwe=Le({size:{type:String,values:Mo}}),Rwe=["disabled"],Owe=ne({name:"ElPaginationJumper"}),$we=ne({...Owe,props:Lwe,setup(e){const{t}=Ht(),n=Me("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:o}=ZM(),s=H(),l=P(()=>{var f;return(f=s.value)!=null?f:i==null?void 0:i.value});function u(f){s.value=f?+f:""}function c(f){f=Math.trunc(+f),o==null||o(f),s.value=void 0}return(f,d)=>(R(),K("span",{class:V(y(n).e("jump")),disabled:y(a)},[Y("span",{class:V([y(n).e("goto")])},De(y(t)("el.pagination.goto")),3),q(y(Rr),{size:f.size,class:V([y(n).e("editor"),y(n).is("in-pagination")]),min:1,max:y(r),disabled:y(a),"model-value":y(l),"validate-event":!1,label:y(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),Y("span",{class:V([y(n).e("classifier")])},De(y(t)("el.pagination.pageClassifier")),3)],10,Rwe))}});var Nwe=Pe($we,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const Bwe=Le({total:{type:Number,default:1e3}}),Vwe=["disabled"],zwe=ne({name:"ElPaginationTotal"}),Fwe=ne({...zwe,props:Bwe,setup(e){const{t}=Ht(),n=Me("pagination"),{disabled:r}=ZM();return(a,i)=>(R(),K("span",{class:V(y(n).e("total")),disabled:y(r)},De(y(t)("el.pagination.total",{total:a.total})),11,Vwe))}});var Hwe=Pe(Fwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const Gwe=Le({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Wwe=["onKeyup"],Kwe=["aria-current","aria-label","tabindex"],Uwe=["tabindex","aria-label"],Ywe=["aria-current","aria-label","tabindex"],jwe=["tabindex","aria-label"],qwe=["aria-current","aria-label","tabindex"],Xwe=ne({name:"ElPaginationPager"}),Zwe=ne({...Xwe,props:Gwe,emits:["change"],setup(e,{emit:t}){const n=e,r=Me("pager"),a=Me("icon"),{t:i}=Ht(),o=H(!1),s=H(!1),l=H(!1),u=H(!1),c=H(!1),f=H(!1),d=P(()=>{const w=n.pagerCount,C=(w-1)/2,S=Number(n.currentPage),x=Number(n.pageCount);let T=!1,M=!1;x>w&&(S>w-C&&(T=!0),S<x-C&&(M=!0));const A=[];if(T&&!M){const k=x-(w-2);for(let E=k;E<x;E++)A.push(E)}else if(!T&&M)for(let k=2;k<w;k++)A.push(k);else if(T&&M){const k=Math.floor(w/2)-1;for(let E=S-k;E<=S+k;E++)A.push(E)}else for(let k=2;k<x;k++)A.push(k);return A}),h=P(()=>["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)]),v=P(()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)]),p=P(()=>n.disabled?-1:0);Da(()=>{const w=(n.pagerCount-1)/2;o.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-w&&(o.value=!0),n.currentPage<n.pageCount-w&&(s.value=!0))});function g(w=!1){n.disabled||(w?l.value=!0:u.value=!0)}function m(w=!1){w?c.value=!0:f.value=!0}function b(w){const C=w.target;if(C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("number")){const S=Number(C.textContent);S!==n.currentPage&&t("change",S)}else C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("more")&&_(w)}function _(w){const C=w.target;if(C.tagName.toLowerCase()==="ul"||n.disabled)return;let S=Number(C.textContent);const x=n.pageCount,T=n.currentPage,M=n.pagerCount-2;C.className.includes("more")&&(C.className.includes("quickprev")?S=T-M:C.className.includes("quicknext")&&(S=T+M)),Number.isNaN(+S)||(S<1&&(S=1),S>x&&(S=x)),S!==T&&t("change",S)}return(w,C)=>(R(),K("ul",{class:V(y(r).b()),onClick:_,onKeyup:Ft(b,["enter"])},[w.pageCount>0?(R(),K("li",{key:0,class:V([[y(r).is("active",w.currentPage===1),y(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===1,"aria-label":y(i)("el.pagination.currentPage",{pager:1}),tabindex:y(p)}," 1 ",10,Kwe)):se("v-if",!0),o.value?(R(),K("li",{key:1,class:V(y(h)),tabindex:y(p),"aria-label":y(i)("el.pagination.prevPages",{pager:w.pagerCount-2}),onMouseenter:C[0]||(C[0]=S=>g(!0)),onMouseleave:C[1]||(C[1]=S=>l.value=!1),onFocus:C[2]||(C[2]=S=>m(!0)),onBlur:C[3]||(C[3]=S=>c.value=!1)},[(l.value||c.value)&&!w.disabled?(R(),ce(y(Qf),{key:0})):(R(),ce(y($D),{key:1}))],42,Uwe)):se("v-if",!0),(R(!0),K(je,null,Ot(y(d),S=>(R(),K("li",{key:S,class:V([[y(r).is("active",w.currentPage===S),y(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===S,"aria-label":y(i)("el.pagination.currentPage",{pager:S}),tabindex:y(p)},De(S),11,Ywe))),128)),s.value?(R(),K("li",{key:2,class:V(y(v)),tabindex:y(p),"aria-label":y(i)("el.pagination.nextPages",{pager:w.pagerCount-2}),onMouseenter:C[4]||(C[4]=S=>g()),onMouseleave:C[5]||(C[5]=S=>u.value=!1),onFocus:C[6]||(C[6]=S=>m()),onBlur:C[7]||(C[7]=S=>f.value=!1)},[(u.value||f.value)&&!w.disabled?(R(),ce(y(ed),{key:0})):(R(),ce(y($D),{key:1}))],42,jwe)):se("v-if",!0),w.pageCount>1?(R(),K("li",{key:3,class:V([[y(r).is("active",w.currentPage===w.pageCount),y(r).is("disabled",w.disabled)],"number"]),"aria-current":w.currentPage===w.pageCount,"aria-label":y(i)("el.pagination.currentPage",{pager:w.pageCount}),tabindex:y(p)},De(w.pageCount),11,qwe)):se("v-if",!0)],42,Wwe))}});var Jwe=Pe(Zwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Vr=e=>typeof e!="number",Qwe=Le({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>at(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:ue(Array),default:()=>Cn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:fn,default:()=>fl},nextText:{type:String,default:""},nextIcon:{type:fn,default:()=>jr},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),eSe={"update:current-page":e=>at(e),"update:page-size":e=>at(e),"size-change":e=>at(e),"current-change":e=>at(e),"prev-click":e=>at(e),"next-click":e=>at(e)},YP="ElPagination";var tSe=ne({name:YP,props:Qwe,emits:eSe,setup(e,{emit:t,slots:n}){const{t:r}=Ht(),a=Me("pagination"),i=gt().vnode.props||{},o="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,s="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,l=P(()=>{if(Vr(e.total)&&Vr(e.pageCount)||!Vr(e.currentPage)&&!o)return!1;if(e.layout.includes("sizes")){if(Vr(e.pageCount)){if(!Vr(e.total)&&!Vr(e.pageSize)&&!s)return!1}else if(!s)return!1}return!0}),u=H(Vr(e.defaultPageSize)?10:e.defaultPageSize),c=H(Vr(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=P({get(){return Vr(e.pageSize)?u.value:e.pageSize},set(_){Vr(e.pageSize)&&(u.value=_),s&&(t("update:page-size",_),t("size-change",_))}}),d=P(()=>{let _=0;return Vr(e.pageCount)?Vr(e.total)||(_=Math.max(1,Math.ceil(e.total/f.value))):_=e.pageCount,_}),h=P({get(){return Vr(e.currentPage)?c.value:e.currentPage},set(_){let w=_;_<1?w=1:_>d.value&&(w=d.value),Vr(e.currentPage)&&(c.value=w),o&&(t("update:current-page",w),t("current-change",w))}});xe(d,_=>{h.value>_&&(h.value=_)});function v(_){h.value=_}function p(_){f.value=_;const w=d.value;h.value>w&&(h.value=w)}function g(){e.disabled||(h.value-=1,t("prev-click",h.value))}function m(){e.disabled||(h.value+=1,t("next-click",h.value))}function b(_,w){_&&(_.props||(_.props={}),_.props.class=[_.props.class,w].join(" "))}return Et(M8,{pageCount:d,disabled:P(()=>e.disabled),currentPage:h,changeEvent:v,handleSizeChange:p}),()=>{var _,w;if(!l.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&d.value<=1)return null;const C=[],S=[],x=Ze("div",{class:a.e("rightwrapper")},S),T={prev:Ze(awe,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:g}),jumper:Ze(Nwe,{size:e.small?"small":"default"}),pager:Ze(Jwe,{currentPage:h.value,pageCount:d.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:Ze(cwe,{disabled:e.disabled,currentPage:h.value,pageCount:d.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:m}),sizes:Ze(Pwe,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(w=(_=n==null?void 0:n.default)==null?void 0:_.call(n))!=null?w:null,total:Ze(Hwe,{total:Vr(e.total)?0:e.total})},M=e.layout.split(",").map(k=>k.trim());let A=!1;return M.forEach(k=>{if(k==="->"){A=!0;return}A?S.push(T[k]):C.push(T[k])}),b(C[0],a.is("first")),b(C[C.length-1],a.is("last")),A&&S.length>0&&(b(S[0],a.is("first")),b(S[S.length-1],a.is("last")),C.push(x)),Ze("div",{class:[a.b(),a.is("background",e.background),{[a.m("small")]:e.small}]},C)}}});const nSe=_t(tSe),rSe=Le({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:VC,default:"primary"},cancelButtonType:{type:String,values:VC,default:"text"},icon:{type:fn,default:()=>Uoe},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:cr.teleported,persistent:cr.persistent,width:{type:[String,Number],default:150}}),aSe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},iSe=ne({name:"ElPopconfirm"}),oSe=ne({...iSe,props:rSe,emits:aSe,setup(e,{emit:t}){const n=e,{t:r}=Ht(),a=Me("popconfirm"),i=H(),o=()=>{var d,h;(h=(d=i.value)==null?void 0:d.onClose)==null||h.call(d)},s=P(()=>({width:On(n.width)})),l=d=>{t("confirm",d),o()},u=d=>{t("cancel",d),o()},c=P(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),f=P(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(d,h)=>(R(),ce(y(ea),St({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},d.$attrs,{"popper-class":`${y(a).namespace.value}-popover`,"popper-style":y(s),teleported:d.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":d.hideAfter,persistent:d.persistent}),{content:re(()=>[Y("div",{class:V(y(a).b())},[Y("div",{class:V(y(a).e("main"))},[!d.hideIcon&&d.icon?(R(),ce(y(Ke),{key:0,class:V(y(a).e("icon")),style:Ye({color:d.iconColor})},{default:re(()=>[(R(),ce(Ct(d.icon)))]),_:1},8,["class","style"])):se("v-if",!0),Ut(" "+De(d.title),1)],2),Y("div",{class:V(y(a).e("action"))},[q(y(_r),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:re(()=>[Ut(De(y(f)),1)]),_:1},8,["type","text"]),q(y(_r),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:l},{default:re(()=>[Ut(De(y(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:re(()=>[d.$slots.reference?_e(d.$slots,"reference",{key:0}):se("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var sSe=Pe(oSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const lSe=_t(sSe),uSe=Le({trigger:Qv.trigger,placement:Sy.placement,disabled:Qv.disabled,visible:cr.visible,transition:cr.transition,popperOptions:Sy.popperOptions,tabindex:Sy.tabindex,content:cr.content,popperStyle:cr.popperStyle,popperClass:cr.popperClass,enterable:{...cr.enterable,default:!0},effect:{...cr.effect,default:"light"},teleported:cr.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),cSe={"update:visible":e=>Un(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},fSe="onUpdate:visible",dSe=ne({name:"ElPopover"}),hSe=ne({...dSe,props:uSe,emits:cSe,setup(e,{expose:t,emit:n}){const r=e,a=P(()=>r[fSe]),i=Me("popover"),o=H(),s=P(()=>{var g;return(g=y(o))==null?void 0:g.popperRef}),l=P(()=>[{width:On(r.width)},r.popperStyle]),u=P(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),c=P(()=>r.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{n("before-enter")},h=()=>{n("before-leave")},v=()=>{n("after-enter")},p=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:s,hide:f}),(g,m)=>(R(),ce(y(ea),St({ref_key:"tooltipRef",ref:o},g.$attrs,{trigger:g.trigger,placement:g.placement,disabled:g.disabled,visible:g.visible,transition:g.transition,"popper-options":g.popperOptions,tabindex:g.tabindex,content:g.content,offset:g.offset,"show-after":g.showAfter,"hide-after":g.hideAfter,"auto-close":g.autoClose,"show-arrow":g.showArrow,"aria-label":g.title,effect:g.effect,enterable:g.enterable,"popper-class":y(u),"popper-style":y(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":y(c),"onUpdate:visible":y(a),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:re(()=>[g.title?(R(),K("div",{key:0,class:V(y(i).e("title")),role:"title"},De(g.title),3)):se("v-if",!0),_e(g.$slots,"default",{},()=>[Ut(De(g.content),1)])]),default:re(()=>[g.$slots.reference?_e(g.$slots,"reference",{key:0}):se("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var vSe=Pe(hSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const jP=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var pSe={mounted(e,t){jP(e,t)},updated(e,t){jP(e,t)}};const gSe="popover",E8=vle(pSe,gSe),mSe=_t(vSe,{directive:E8}),ySe=Le({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:ue(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ue([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:ue(Function),default:e=>`${e}%`}}),bSe=["aria-valuenow"],_Se={viewBox:"0 0 100 100"},wSe=["d","stroke","stroke-linecap","stroke-width"],SSe=["d","stroke","opacity","stroke-linecap","stroke-width"],CSe={key:0},xSe=ne({name:"ElProgress"}),TSe=ne({...xSe,props:ySe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Me("progress"),a=P(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:b(t.percentage)})),i=P(()=>(t.strokeWidth/t.width*100).toFixed(1)),o=P(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=P(()=>{const _=o.value,w=t.type==="dashboard";return`
  48. M 50 50
  49. m 0 ${w?"":"-"}${_}
  50. a ${_} ${_} 0 1 1 0 ${w?"-":""}${_*2}
  51. a ${_} ${_} 0 1 1 0 ${w?"":"-"}${_*2}
  52. `}),l=P(()=>2*Math.PI*o.value),u=P(()=>t.type==="dashboard"?.75:1),c=P(()=>`${-1*l.value*(1-u.value)/2}px`),f=P(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=P(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=P(()=>{let _;return t.color?_=b(t.percentage):_=n[t.status]||n.default,_}),v=P(()=>t.status==="warning"?jb:t.type==="line"?t.status==="success"?fM:kl:t.status==="success"?Jp:Bi),p=P(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=P(()=>t.format(t.percentage));function m(_){const w=100/_.length;return _.map((S,x)=>lt(S)?{color:S,percentage:(x+1)*w}:S).sort((S,x)=>S.percentage-x.percentage)}const b=_=>{var w;const{color:C}=t;if(it(C))return C(_);if(lt(C))return C;{const S=m(C);for(const x of S)if(x.percentage>_)return x.color;return(w=S[S.length-1])==null?void 0:w.color}};return(_,w)=>(R(),K("div",{class:V([y(r).b(),y(r).m(_.type),y(r).is(_.status),{[y(r).m("without-text")]:!_.showText,[y(r).m("text-inside")]:_.textInside}]),role:"progressbar","aria-valuenow":_.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[_.type==="line"?(R(),K("div",{key:0,class:V(y(r).b("bar"))},[Y("div",{class:V(y(r).be("bar","outer")),style:Ye({height:`${_.strokeWidth}px`})},[Y("div",{class:V([y(r).be("bar","inner"),{[y(r).bem("bar","inner","indeterminate")]:_.indeterminate},{[y(r).bem("bar","inner","striped")]:_.striped},{[y(r).bem("bar","inner","striped-flow")]:_.stripedFlow}]),style:Ye(y(a))},[(_.showText||_.$slots.default)&&_.textInside?(R(),K("div",{key:0,class:V(y(r).be("bar","innerText"))},[_e(_.$slots,"default",{percentage:_.percentage},()=>[Y("span",null,De(y(g)),1)])],2)):se("v-if",!0)],6)],6)],2)):(R(),K("div",{key:1,class:V(y(r).b("circle")),style:Ye({height:`${_.width}px`,width:`${_.width}px`})},[(R(),K("svg",_Se,[Y("path",{class:V(y(r).be("circle","track")),d:y(s),stroke:`var(${y(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":_.strokeLinecap,"stroke-width":y(i),fill:"none",style:Ye(y(f))},null,14,wSe),Y("path",{class:V(y(r).be("circle","path")),d:y(s),stroke:y(h),fill:"none",opacity:_.percentage?1:0,"stroke-linecap":_.strokeLinecap,"stroke-width":y(i),style:Ye(y(d))},null,14,SSe)]))],6)),(_.showText||_.$slots.default)&&!_.textInside?(R(),K("div",{key:2,class:V(y(r).e("text")),style:Ye({fontSize:`${y(p)}px`})},[_e(_.$slots,"default",{percentage:_.percentage},()=>[_.status?(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(y(v))))]),_:1})):(R(),K("span",CSe,De(y(g)),1))])],6)):se("v-if",!0)],10,bSe))}});var MSe=Pe(TSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const I8=_t(MSe),kSe=Le({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:ue([Array,Object]),default:()=>Cn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ue([Array,Object]),default:()=>[Vg,Vg,Vg]},voidIcon:{type:fn,default:()=>Vse},disabledVoidIcon:{type:fn,default:()=>Vg},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ue(Array),default:()=>Cn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Sr,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),ASe={[mn]:e=>at(e),[wt]:e=>at(e)},ESe=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],ISe=["onMousemove","onClick"],DSe=ne({name:"ElRate"}),PSe=ne({...DSe,props:kSe,emits:ASe,setup(e,{expose:t,emit:n}){const r=e;function a(N,O){const $=G=>Mt(G),I=Object.keys(O).map(G=>+G).filter(G=>{const U=O[G];return($(U)?U.excluded:!1)?N<G:N<=G}).sort((G,U)=>G-U),z=O[I[0]];return $(z)&&z.value||z}const i=Ge(Cc,void 0),o=Ge(So,void 0),s=qn(),l=Me("rate"),{inputId:u,isLabeledByFormItem:c}=Dl(r,{formItemContext:o}),f=H(r.modelValue),d=H(-1),h=H(!0),v=P(()=>[l.b(),l.m(s.value)]),p=P(()=>r.disabled||(i==null?void 0:i.disabled)),g=P(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":w.value})),m=P(()=>{let N="";return r.showScore?N=r.scoreTemplate.replace(/\{\s*value\s*\}/,p.value?`${r.modelValue}`:`${f.value}`):r.showText&&(N=r.texts[Math.ceil(f.value)-1]),N}),b=P(()=>r.modelValue*100-Math.floor(r.modelValue)*100),_=P(()=>He(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),w=P(()=>{const N=a(f.value,_.value);return Mt(N)?"":N}),C=P(()=>{let N="";return p.value?N=`${b.value}%`:r.allowHalf&&(N="50%"),{color:w.value,width:N}}),S=P(()=>{let N=He(r.icons)?[...r.icons]:{...r.icons};return N=Qs(N),He(N)?{[r.lowThreshold]:N[0],[r.highThreshold]:{value:N[1],excluded:!0},[r.max]:N[2]}:N}),x=P(()=>a(r.modelValue,S.value)),T=P(()=>p.value?lt(r.disabledVoidIcon)?r.disabledVoidIcon:Qs(r.disabledVoidIcon):lt(r.voidIcon)?r.voidIcon:Qs(r.voidIcon)),M=P(()=>a(f.value,S.value));function A(N){const O=p.value&&b.value>0&&N-1<r.modelValue&&N>r.modelValue,$=r.allowHalf&&h.value&&N-.5<=f.value&&N>f.value;return O||$}function k(N){r.clearable&&N===r.modelValue&&(N=0),n(wt,N),r.modelValue!==N&&n("change",N)}function E(N){p.value||(r.allowHalf&&h.value?k(f.value):k(N))}function D(N){if(p.value)return;let O=f.value;const $=N.code;return $===Xe.up||$===Xe.right?(r.allowHalf?O+=.5:O+=1,N.stopPropagation(),N.preventDefault()):($===Xe.left||$===Xe.down)&&(r.allowHalf?O-=.5:O-=1,N.stopPropagation(),N.preventDefault()),O=O<0?0:O,O=O>r.max?r.max:O,n(wt,O),n("change",O),O}function L(N,O){if(!p.value){if(r.allowHalf&&O){let $=O.target;Li($,l.e("item"))&&($=$.querySelector(`.${l.e("icon")}`)),($.clientWidth===0||Li($,l.e("decimal")))&&($=$.parentNode),h.value=O.offsetX*2<=$.clientWidth,f.value=h.value?N-.5:N}else f.value=N;d.value=N}}function B(){p.value||(r.allowHalf&&(h.value=r.modelValue!==Math.floor(r.modelValue)),f.value=r.modelValue,d.value=-1)}return xe(()=>r.modelValue,N=>{f.value=N,h.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(wt,0),t({setCurrentValue:L,resetCurrentValue:B}),(N,O)=>{var $;return R(),K("div",{id:y(u),class:V([y(v),y(l).is("disabled",y(p))]),role:"slider","aria-label":y(c)?void 0:N.label||"rating","aria-labelledby":y(c)?($=y(o))==null?void 0:$.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":y(m)||void 0,"aria-valuemin":"0","aria-valuemax":N.max,tabindex:"0",style:Ye(y(g)),onKeydown:D},[(R(!0),K(je,null,Ot(N.max,(I,z)=>(R(),K("span",{key:z,class:V(y(l).e("item")),onMousemove:G=>L(I,G),onMouseleave:B,onClick:G=>E(I)},[q(y(Ke),{class:V([y(l).e("icon"),{hover:d.value===I},y(l).is("active",I<=f.value)])},{default:re(()=>[A(I)?se("v-if",!0):(R(),K(je,{key:0},[dt((R(),ce(Ct(y(M)),null,null,512)),[[Kt,I<=f.value]]),dt((R(),ce(Ct(y(T)),null,null,512)),[[Kt,!(I<=f.value)]])],64)),A(I)?(R(),ce(y(Ke),{key:1,style:Ye(y(C)),class:V([y(l).e("icon"),y(l).e("decimal")])},{default:re(()=>[(R(),ce(Ct(y(x))))]),_:1},8,["style","class"])):se("v-if",!0)]),_:2},1032,["class"])],42,ISe))),128)),N.showText||N.showScore?(R(),K("span",{key:0,class:V(y(l).e("text")),style:Ye({color:N.textColor})},De(y(m)),7)):se("v-if",!0)],46,ESe)}}});var LSe=Pe(PSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const RSe=_t(LSe),mf={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},qP={[mf.success]:Uae,[mf.warning]:jb,[mf.error]:dM,[mf.info]:hM},OSe=Le({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),$Se=ne({name:"ElResult"}),NSe=ne({...$Se,props:OSe,setup(e){const t=e,n=Me("result"),r=P(()=>{const a=t.icon,i=a&&mf[a]?mf[a]:"icon-info",o=qP[i]||qP["icon-info"];return{class:i,component:o}});return(a,i)=>(R(),K("div",{class:V(y(n).b())},[Y("div",{class:V(y(n).e("icon"))},[_e(a.$slots,"icon",{},()=>[y(r).component?(R(),ce(Ct(y(r).component),{key:0,class:V(y(r).class)},null,8,["class"])):se("v-if",!0)])],2),a.title||a.$slots.title?(R(),K("div",{key:0,class:V(y(n).e("title"))},[_e(a.$slots,"title",{},()=>[Y("p",null,De(a.title),1)])],2)):se("v-if",!0),a.subTitle||a.$slots["sub-title"]?(R(),K("div",{key:1,class:V(y(n).e("subtitle"))},[_e(a.$slots,"sub-title",{},()=>[Y("p",null,De(a.subTitle),1)])],2)):se("v-if",!0),a.$slots.extra?(R(),K("div",{key:2,class:V(y(n).e("extra"))},[_e(a.$slots,"extra")],2)):se("v-if",!0)],2))}});var BSe=Pe(NSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const VSe=_t(BSe);var XP=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function zSe(e,t){return!!(e===t||XP(e)&&XP(t))}function FSe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!zSe(e[n],t[n]))return!1;return!0}function HSe(e,t){t===void 0&&(t=FSe);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 D8=()=>{const t=gt().proxy.$props;return P(()=>{const n=(r,a,i)=>({});return t.perfMode?Wb(n):HSe(n)})},ox=50,m0="itemRendered",y0="scroll",yf="forward",b0="backward",Za="auto",c1="smart",np="start",uo="center",rp="end",ld="horizontal",JM="vertical",GSe="ltr",Lf="rtl",ap="negative",QM="positive-ascending",ek="positive-descending",WSe={[ld]:"left",[JM]:"top"},KSe=20,USe={[ld]:"deltaX",[JM]:"deltaY"},YSe=({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=>{Jb(a);const u=l[USe[n.value]];o(i)&&o(i+u)||(i+=u,JV()||l.preventDefault(),a=td(()=>{r(i),i=0}))}}},sx=Ki({type:ue([Number,Function]),required:!0}),lx=Ki({type:Number}),ux=Ki({type:Number,default:2}),jSe=Ki({type:String,values:["ltr","rtl"],default:"ltr"}),cx=Ki({type:Number,default:0}),_0=Ki({type:Number,required:!0}),P8=Ki({type:String,values:["horizontal","vertical"],default:JM}),L8=Le({className:{type:String,default:""},containerElement:{type:ue([String,Object]),default:"div"},data:{type:ue(Array),default:()=>Cn([])},direction:jSe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:ue([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),R8=Le({cache:ux,estimatedItemSize:lx,layout:P8,initScrollOffset:cx,total:_0,itemSize:sx,...L8}),fx={type:Number,default:6},O8={type:Number,default:0},$8={type:Number,default:2},qu=Le({columnCache:ux,columnWidth:sx,estimatedColumnWidth:lx,estimatedRowHeight:lx,initScrollLeft:cx,initScrollTop:cx,itemKey:{type:ue(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:ux,rowHeight:sx,totalColumn:_0,totalRow:_0,hScrollbarSize:fx,vScrollbarSize:fx,scrollbarStartGap:O8,scrollbarEndGap:$8,role:String,...L8}),N8=Le({alwaysOn:Boolean,class:String,layout:P8,total:_0,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:fx,startGap:O8,endGap:$8,visible:Boolean}),Ru=(e,t)=>e<t?yf:b0,ip=e=>e===GSe||e===Lf||e===ld,ZP=e=>e===Lf;let $c=null;function w0(e=!1){if($c===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?$c=ek:(t.scrollLeft=1,t.scrollLeft===0?$c=ap:$c=QM),document.body.removeChild(t),$c}return $c}function qSe({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 dx=ne({name:"ElVirtualScrollBar",props:N8,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=P(()=>e.startGap+e.endGap),r=Me("virtual-scrollbar"),a=Me("scrollbar"),i=H(),o=H();let s=null,l=null;const u=jt({isDragging:!1,traveled:0}),c=P(()=>Oz[e.layout]),f=P(()=>e.clientSize-y(n)),d=P(()=>({position:"absolute",width:`${ld===e.layout?f.value:e.scrollbarSize}px`,height:`${ld===e.layout?e.scrollbarSize:f.value}px`,[WSe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=P(()=>{const S=e.ratio,x=e.clientSize;if(S>=100)return Number.POSITIVE_INFINITY;if(S>=50)return S*x/100;const T=x/3;return Math.floor(Math.min(Math.max(S*x,KSe),T))}),v=P(()=>{if(!Number.isFinite(h.value))return{display:"none"};const S=`${h.value}px`;return qSe({bar:c.value,size:S,move:u.traveled},e.layout)}),p=P(()=>Math.floor(e.clientSize-h.value-y(n))),g=()=>{window.addEventListener("mousemove",w),window.addEventListener("mouseup",_);const S=y(o);S&&(l=document.onselectstart,document.onselectstart=()=>!1,S.addEventListener("touchmove",w),S.addEventListener("touchend",_))},m=()=>{window.removeEventListener("mousemove",w),window.removeEventListener("mouseup",_),document.onselectstart=l,l=null;const S=y(o);S&&(S.removeEventListener("touchmove",w),S.removeEventListener("touchend",_))},b=S=>{S.stopImmediatePropagation(),!(S.ctrlKey||[1,2].includes(S.button))&&(u.isDragging=!0,u[c.value.axis]=S.currentTarget[c.value.offset]-(S[c.value.client]-S.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),g())},_=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),m()},w=S=>{const{isDragging:x}=u;if(!x||!o.value||!i.value)return;const T=u[c.value.axis];if(!T)return;Jb(s);const M=(i.value.getBoundingClientRect()[c.value.direction]-S[c.value.client])*-1,A=o.value[c.value.offset]-T,k=M-A;s=td(()=>{u.traveled=Math.max(e.startGap,Math.min(k,p.value)),t("scroll",k,p.value)})},C=S=>{const x=Math.abs(S.target.getBoundingClientRect()[c.value.direction]-S[c.value.client]),T=o.value[c.value.offset]/2,M=x-T;u.traveled=Math.max(0,Math.min(M,p.value)),t("scroll",M,p.value)};return xe(()=>e.scrollFrom,S=>{u.isDragging||(u.traveled=Math.ceil(S*p.value))}),wn(()=>{m()}),()=>Ze("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:tt(C,["stop","prevent"]),onTouchstartPrevent:b},Ze("div",{ref:o,class:a.e("thumb"),style:v.value,onMousedown:b},[]))}}),B8=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>ne({name:e??"ElVirtualList",props:R8,emits:[m0,y0],setup(c,{emit:f,expose:d}){u(c);const h=gt(),v=Me("vl"),p=H(s(c,h)),g=D8(),m=H(),b=H(),_=H(),w=H({isScrolling:!1,scrollDir:"forward",scrollOffset:at(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),C=P(()=>{const{total:Z,cache:ae}=c,{isScrolling:J,scrollDir:Q,scrollOffset:ee}=y(w);if(Z===0)return[0,0,0,0];const j=i(c,ee,y(p)),de=o(c,j,ee,y(p)),ve=!J||Q===b0?Math.max(1,ae):1,ie=!J||Q===yf?Math.max(1,ae):1;return[Math.max(0,j-ve),Math.max(0,Math.min(Z-1,de+ie)),j,de]}),S=P(()=>a(c,y(p))),x=P(()=>ip(c.layout)),T=P(()=>[{position:"relative",[`overflow-${x.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:at(c.height)?`${c.height}px`:c.height,width:at(c.width)?`${c.width}px`:c.width},c.style]),M=P(()=>{const Z=y(S),ae=y(x);return{height:ae?"100%":`${Z}px`,pointerEvents:y(w).isScrolling?"none":void 0,width:ae?`${Z}px`:"100%"}}),A=P(()=>x.value?c.width:c.height),{onWheel:k}=YSe({atStartEdge:P(()=>w.value.scrollOffset<=0),atEndEdge:P(()=>w.value.scrollOffset>=S.value),layout:P(()=>c.layout)},Z=>{var ae,J;(J=(ae=_.value).onMouseUp)==null||J.call(ae),O(Math.min(w.value.scrollOffset+Z,S.value-A.value))}),E=()=>{const{total:Z}=c;if(Z>0){const[ee,j,de,ve]=y(C);f(m0,ee,j,de,ve)}const{scrollDir:ae,scrollOffset:J,updateRequested:Q}=y(w);f(y0,ae,J,Q)},D=Z=>{const{clientHeight:ae,scrollHeight:J,scrollTop:Q}=Z.currentTarget,ee=y(w);if(ee.scrollOffset===Q)return;const j=Math.max(0,Math.min(Q,J-ae));w.value={...ee,isScrolling:!0,scrollDir:Ru(ee.scrollOffset,j),scrollOffset:j,updateRequested:!1},Ue(z)},L=Z=>{const{clientWidth:ae,scrollLeft:J,scrollWidth:Q}=Z.currentTarget,ee=y(w);if(ee.scrollOffset===J)return;const{direction:j}=c;let de=J;if(j===Lf)switch(w0()){case ap:{de=-J;break}case ek:{de=Q-ae-J;break}}de=Math.max(0,Math.min(de,Q-ae)),w.value={...ee,isScrolling:!0,scrollDir:Ru(ee.scrollOffset,de),scrollOffset:de,updateRequested:!1},Ue(z)},B=Z=>{y(x)?L(Z):D(Z),E()},N=(Z,ae)=>{const J=(S.value-A.value)/ae*Z;O(Math.min(S.value-A.value,J))},O=Z=>{Z=Math.max(Z,0),Z!==y(w).scrollOffset&&(w.value={...y(w),scrollOffset:Z,scrollDir:Ru(y(w).scrollOffset,Z),updateRequested:!0},Ue(z))},$=(Z,ae=Za)=>{const{scrollOffset:J}=y(w);Z=Math.max(0,Math.min(Z,c.total-1)),O(t(c,Z,ae,J,y(p)))},I=Z=>{const{direction:ae,itemSize:J,layout:Q}=c,ee=g.value(l&&J,l&&Q,l&&ae);let j;if(Nt(ee,String(Z)))j=ee[Z];else{const de=r(c,Z,y(p)),ve=n(c,Z,y(p)),ie=y(x),W=ae===Lf,X=ie?de:0;ee[Z]=j={position:"absolute",left:W?void 0:`${X}px`,right:W?`${X}px`:void 0,top:ie?0:`${de}px`,height:ie?"100%":`${ve}px`,width:ie?`${ve}px`:"100%"}}return j},z=()=>{w.value.isScrolling=!1,Ue(()=>{g.value(-1,null,null)})},G=()=>{const Z=m.value;Z&&(Z.scrollTop=0)};yt(()=>{if(!Vt)return;const{initScrollOffset:Z}=c,ae=y(m);at(Z)&&ae&&(y(x)?ae.scrollLeft=Z:ae.scrollTop=Z),E()}),cs(()=>{const{direction:Z,layout:ae}=c,{scrollOffset:J,updateRequested:Q}=y(w),ee=y(m);if(Q&&ee)if(ae===ld)if(Z===Lf)switch(w0()){case ap:{ee.scrollLeft=-J;break}case QM:{ee.scrollLeft=J;break}default:{const{clientWidth:j,scrollWidth:de}=ee;ee.scrollLeft=de-j-J;break}}else ee.scrollLeft=J;else ee.scrollTop=J});const U={ns:v,clientSize:A,estimatedTotalSize:S,windowStyle:T,windowRef:m,innerRef:b,innerStyle:M,itemsToRender:C,scrollbarRef:_,states:w,getItemStyle:I,onScroll:B,onScrollbarScroll:N,onWheel:k,scrollTo:O,scrollToItem:$,resetScrollTop:G};return d({windowRef:m,innerRef:b,getItemStyleCache:g,scrollTo:O,scrollToItem:$,resetScrollTop:G,states:w}),U},render(c){var f;const{$slots:d,className:h,clientSize:v,containerElement:p,data:g,getItemStyle:m,innerElement:b,itemsToRender:_,innerStyle:w,layout:C,total:S,onScroll:x,onScrollbarScroll:T,onWheel:M,states:A,useIsScrolling:k,windowStyle:E,ns:D}=c,[L,B]=_,N=Ct(p),O=Ct(b),$=[];if(S>0)for(let U=L;U<=B;U++)$.push((f=d.default)==null?void 0:f.call(d,{data:g,key:U,index:U,isScrolling:k?A.isScrolling:void 0,style:m(U)}));const I=[Ze(O,{style:w,ref:"innerRef"},lt(O)?$:{default:()=>$})],z=Ze(dx,{ref:"scrollbarRef",clientSize:v,layout:C,onScroll:T,ratio:v*100/this.estimatedTotalSize,scrollFrom:A.scrollOffset/(this.estimatedTotalSize-v),total:S}),G=Ze(N,{class:[D.e("window"),h],style:E,onScroll:x,onWheel:M,ref:"windowRef",key:0},lt(N)?[I]:{default:()=>[I]});return Ze("div",{key:0,class:[D.e("wrapper"),A.scrollbarAlwaysOn?"always-on":""]},[G,z])}}),V8=B8({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=ip(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===c1&&(s>=f-l&&s<=c+l?o=Za:o=uo),o){case np:return c;case rp:return f;case uo:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d}case Za: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=ip(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(){}}),bf=(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]},XSe=(e,t,n)=>{const{items:r,lastVisitedIndex:a}=t;return(a>0?r[a].offset:0)>=n?z8(e,t,0,a,n):ZSe(e,t,Math.max(0,a),n)},z8=(e,t,n,r,a)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),o=bf(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&&bf(e,n,t).offset<r;)n+=i,i*=2;return z8(e,t,Math.floor(n/2),Math.min(n,a-1),r)},JP=({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},JSe=B8({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>bf(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:JP,getOffset:(e,t,n,r,a)=>{const{height:i,layout:o,width:s}=e,l=ip(o)?s:i,u=bf(e,t,a),c=JP(e,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(n===c1&&(r>=d-l&&r<=f+l?n=Za:n=uo),n){case np:return f;case rp:return d;case uo:return Math.round(d+(f-d)/2);case Za:default:return r>=d&&r<=f?r:r<d?d:f}},getStartIndexForOffset:(e,t,n)=>XSe(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:a,total:i,layout:o,width:s}=e,l=ip(o)?s:a,u=bf(e,t,r),c=n+l;let f=u.offset+u.size,d=t;for(;d<i-1&&f<c;)d++,f+=bf(e,d,r).size;return d},initCache({estimatedItemSize:e=ox},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})=>{}}),QSe=({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=>{Jb(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=td(()=>{a(o,s),o=0,s=0}))}}},F8=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:i,getEstimatedTotalWidth:o,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:f,initCache:d,injectToInstance:h,validateProps:v})=>ne({name:e??"ElVirtualList",props:qu,emits:[m0,y0],setup(p,{emit:g,expose:m,slots:b}){const _=Me("vl");v(p);const w=gt(),C=H(d(p,w));h==null||h(w,C);const S=H(),x=H(),T=H(),M=H(null),A=H({isScrolling:!1,scrollLeft:at(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:at(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:yf,yAxisScrollDir:yf}),k=D8(),E=P(()=>Number.parseInt(`${p.height}`,10)),D=P(()=>Number.parseInt(`${p.width}`,10)),L=P(()=>{const{totalColumn:me,totalRow:Ee,columnCache:Ce}=p,{isScrolling:we,xAxisScrollDir:Te,scrollLeft:$e}=y(A);if(me===0||Ee===0)return[0,0,0,0];const Be=r(p,$e,y(C)),We=a(p,Be,$e,y(C)),Ae=!we||Te===b0?Math.max(1,Ce):1,Fe=!we||Te===yf?Math.max(1,Ce):1;return[Math.max(0,Be-Ae),Math.max(0,Math.min(me-1,We+Fe)),Be,We]}),B=P(()=>{const{totalColumn:me,totalRow:Ee,rowCache:Ce}=p,{isScrolling:we,yAxisScrollDir:Te,scrollTop:$e}=y(A);if(me===0||Ee===0)return[0,0,0,0];const Be=c(p,$e,y(C)),We=f(p,Be,$e,y(C)),Ae=!we||Te===b0?Math.max(1,Ce):1,Fe=!we||Te===yf?Math.max(1,Ce):1;return[Math.max(0,Be-Ae),Math.max(0,Math.min(Ee-1,We+Fe)),Be,We]}),N=P(()=>i(p,y(C))),O=P(()=>o(p,y(C))),$=P(()=>{var me;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:at(p.height)?`${p.height}px`:p.height,width:at(p.width)?`${p.width}px`:p.width},(me=p.style)!=null?me:{}]}),I=P(()=>{const me=`${y(O)}px`;return{height:`${y(N)}px`,pointerEvents:y(A).isScrolling?"none":void 0,width:me}}),z=()=>{const{totalColumn:me,totalRow:Ee}=p;if(me>0&&Ee>0){const[We,Ae,Fe,rt]=y(L),[vt,kt,Qe,ye]=y(B);g(m0,{columnCacheStart:We,columnCacheEnd:Ae,rowCacheStart:vt,rowCacheEnd:kt,columnVisibleStart:Fe,columnVisibleEnd:rt,rowVisibleStart:Qe,rowVisibleEnd:ye})}const{scrollLeft:Ce,scrollTop:we,updateRequested:Te,xAxisScrollDir:$e,yAxisScrollDir:Be}=y(A);g(y0,{xAxisScrollDir:$e,scrollLeft:Ce,yAxisScrollDir:Be,scrollTop:we,updateRequested:Te})},G=me=>{const{clientHeight:Ee,clientWidth:Ce,scrollHeight:we,scrollLeft:Te,scrollTop:$e,scrollWidth:Be}=me.currentTarget,We=y(A);if(We.scrollTop===$e&&We.scrollLeft===Te)return;let Ae=Te;if(ZP(p.direction))switch(w0()){case ap:Ae=-Te;break;case ek:Ae=Be-Ce-Te;break}A.value={...We,isScrolling:!0,scrollLeft:Ae,scrollTop:Math.max(0,Math.min($e,we-Ee)),updateRequested:!0,xAxisScrollDir:Ru(We.scrollLeft,Ae),yAxisScrollDir:Ru(We.scrollTop,$e)},Ue(()=>j()),de(),z()},U=(me,Ee)=>{const Ce=y(E),we=(N.value-Ce)/Ee*me;J({scrollTop:Math.min(N.value-Ce,we)})},Z=(me,Ee)=>{const Ce=y(D),we=(O.value-Ce)/Ee*me;J({scrollLeft:Math.min(O.value-Ce,we)})},{onWheel:ae}=QSe({atXStartEdge:P(()=>A.value.scrollLeft<=0),atXEndEdge:P(()=>A.value.scrollLeft>=O.value-y(D)),atYStartEdge:P(()=>A.value.scrollTop<=0),atYEndEdge:P(()=>A.value.scrollTop>=N.value-y(E))},(me,Ee)=>{var Ce,we,Te,$e;(we=(Ce=x.value)==null?void 0:Ce.onMouseUp)==null||we.call(Ce),($e=(Te=T.value)==null?void 0:Te.onMouseUp)==null||$e.call(Te);const Be=y(D),We=y(E);J({scrollLeft:Math.min(A.value.scrollLeft+me,O.value-Be),scrollTop:Math.min(A.value.scrollTop+Ee,N.value-We)})}),J=({scrollLeft:me=A.value.scrollLeft,scrollTop:Ee=A.value.scrollTop})=>{me=Math.max(me,0),Ee=Math.max(Ee,0);const Ce=y(A);Ee===Ce.scrollTop&&me===Ce.scrollLeft||(A.value={...Ce,xAxisScrollDir:Ru(Ce.scrollLeft,me),yAxisScrollDir:Ru(Ce.scrollTop,Ee),scrollLeft:me,scrollTop:Ee,updateRequested:!0},Ue(()=>j()),de(),z())},Q=(me=0,Ee=0,Ce=Za)=>{const we=y(A);Ee=Math.max(0,Math.min(Ee,p.totalColumn-1)),me=Math.max(0,Math.min(me,p.totalRow-1));const Te=B5(_.namespace.value),$e=y(C),Be=i(p,$e),We=o(p,$e);J({scrollLeft:s(p,Ee,Ce,we.scrollLeft,$e,We>p.width?Te:0),scrollTop:l(p,me,Ce,we.scrollTop,$e,Be>p.height?Te:0)})},ee=(me,Ee)=>{const{columnWidth:Ce,direction:we,rowHeight:Te}=p,$e=k.value(t&&Ce,t&&Te,t&&we),Be=`${me},${Ee}`;if(Nt($e,Be))return $e[Be];{const[,We]=n(p,Ee,y(C)),Ae=y(C),Fe=ZP(we),[rt,vt]=u(p,me,Ae),[kt]=n(p,Ee,Ae);return $e[Be]={position:"absolute",left:Fe?void 0:`${We}px`,right:Fe?`${We}px`:void 0,top:`${vt}px`,height:`${rt}px`,width:`${kt}px`},$e[Be]}},j=()=>{A.value.isScrolling=!1,Ue(()=>{k.value(-1,null,null)})};yt(()=>{if(!Vt)return;const{initScrollLeft:me,initScrollTop:Ee}=p,Ce=y(S);Ce&&(at(me)&&(Ce.scrollLeft=me),at(Ee)&&(Ce.scrollTop=Ee)),z()});const de=()=>{const{direction:me}=p,{scrollLeft:Ee,scrollTop:Ce,updateRequested:we}=y(A),Te=y(S);if(we&&Te){if(me===Lf)switch(w0()){case ap:{Te.scrollLeft=-Ee;break}case QM:{Te.scrollLeft=Ee;break}default:{const{clientWidth:$e,scrollWidth:Be}=Te;Te.scrollLeft=Be-$e-Ee;break}}else Te.scrollLeft=Math.max(0,Ee);Te.scrollTop=Math.max(0,Ce)}},{resetAfterColumnIndex:ve,resetAfterRowIndex:ie,resetAfter:W}=w.proxy;m({windowRef:S,innerRef:M,getItemStyleCache:k,scrollTo:J,scrollToItem:Q,states:A,resetAfterColumnIndex:ve,resetAfterRowIndex:ie,resetAfter:W});const X=()=>{const{scrollbarAlwaysOn:me,scrollbarStartGap:Ee,scrollbarEndGap:Ce,totalColumn:we,totalRow:Te}=p,$e=y(D),Be=y(E),We=y(O),Ae=y(N),{scrollLeft:Fe,scrollTop:rt}=y(A),vt=Ze(dx,{ref:x,alwaysOn:me,startGap:Ee,endGap:Ce,class:_.e("horizontal"),clientSize:$e,layout:"horizontal",onScroll:Z,ratio:$e*100/We,scrollFrom:Fe/(We-$e),total:Te,visible:!0}),kt=Ze(dx,{ref:T,alwaysOn:me,startGap:Ee,endGap:Ce,class:_.e("vertical"),clientSize:Be,layout:"vertical",onScroll:U,ratio:Be*100/Ae,scrollFrom:rt/(Ae-Be),total:we,visible:!0});return{horizontalScrollbar:vt,verticalScrollbar:kt}},oe=()=>{var me;const[Ee,Ce]=y(L),[we,Te]=y(B),{data:$e,totalColumn:Be,totalRow:We,useIsScrolling:Ae,itemKey:Fe}=p,rt=[];if(We>0&&Be>0)for(let vt=we;vt<=Te;vt++)for(let kt=Ee;kt<=Ce;kt++)rt.push((me=b.default)==null?void 0:me.call(b,{columnIndex:kt,data:$e,key:Fe({columnIndex:kt,data:$e,rowIndex:vt}),isScrolling:Ae?y(A).isScrolling:void 0,style:ee(vt,kt),rowIndex:vt}));return rt},pe=()=>{const me=Ct(p.innerElement),Ee=oe();return[Ze(me,{style:y(I),ref:M},lt(me)?Ee:{default:()=>Ee})]};return()=>{const me=Ct(p.containerElement),{horizontalScrollbar:Ee,verticalScrollbar:Ce}=X(),we=pe();return Ze("div",{key:0,class:_.e("wrapper"),role:p.role},[Ze(me,{class:p.className,style:y($),onScroll:G,onWheel:ae,ref:S},lt(me)?we:{default:()=>we}),Ee,Ce])}}}),eCe=F8({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=Za:a=uo),a){case np:return u;case rp:return c;case uo:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case Za: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===c1&&(i>=c-t&&i<=u+t?a=Za:a=uo),a){case np:return u;case rp:return c;case uo:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case Za: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:S0,min:H8,floor:G8}=Math,tCe={column:"columnWidth",row:"rowHeight"},hx={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},zo=(e,t,n,r)=>{const[a,i,o]=[n[r],e[tCe[r]],n[hx[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[hx[r]]=t}return a[t]},W8=(e,t,n,r,a,i)=>{for(;n<=r;){const o=n+G8((r-n)/2),s=zo(e,o,t,i).offset;if(s===a)return o;s<a?n=o+1:r=o-1}return S0(0,n-1)},nCe=(e,t,n,r,a)=>{const i=a==="column"?e.totalColumn:e.totalRow;let o=1;for(;n<i&&zo(e,n,t,a).offset<r;)n+=o,o*=2;return W8(e,t,G8(n/2),H8(n,i-1),r,a)},QP=(e,t,n,r)=>{const[a,i]=[t[r],t[hx[r]]];return(i>0?a[i].offset:0)>=n?W8(e,t,0,i,n,r):nCe(e,t,S0(0,i),n,r)},K8=({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},U8=({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},rCe={column:U8,row:K8},eL=(e,t,n,r,a,i,o)=>{const[s,l]=[i==="row"?e.height:e.width,rCe[i]],u=zo(e,t,a,i),c=l(e,a),f=S0(0,H8(c-s,u.offset)),d=S0(0,u.offset-s+o+u.size);switch(n===c1&&(r>=d-s&&r<=f+s?n=Za:n=uo),n){case np:return f;case rp:return d;case uo:return Math.round(d+(f-d)/2);case Za:default:return r>=d&&r<=f?r:d>f||r<d?d:f}},aCe=F8({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=zo(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=zo(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,a,i)=>eL(e,t,n,r,a,"column",i),getRowOffset:(e,t,n,r,a,i)=>eL(e,t,n,r,a,"row",i),getColumnStartIndexForOffset:(e,t,n)=>QP(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const a=zo(e,t,r,"column"),i=n+e.width;let o=a.offset+a.size,s=t;for(;s<e.totalColumn-1&&o<i;)s++,o+=zo(e,t,r,"column").size;return s},getEstimatedTotalHeight:K8,getEstimatedTotalWidth:U8,getRowStartIndexForOffset:(e,t,n)=>QP(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:a,height:i}=e,o=zo(e,t,r,"row"),s=n+i;let l=o.size+o.offset,u=t;for(;u<a-1&&l<s;)u++,l+=zo(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=er(s)?!0:s,at(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),at(o)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,o-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=e.proxy)==null||u.$forceUpdate())},r=(i,o)=>{n({columnIndex:i},o)},a=(i,o)=>{n({rowIndex:i},o)};Object.assign(e.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:e=ox,estimatedRowHeight:t=ox})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),iCe=ne({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:Me("select")}}});function oCe(e,t,n,r,a,i){return e.item.isTitle?(R(),K("div",{key:0,class:V(e.ns.be("group","title")),style:Ye([e.style,{lineHeight:`${e.height}px`}])},De(e.item.label),7)):(R(),K("div",{key:1,class:V(e.ns.be("group","split")),style:Ye(e.style)},[Y("span",{class:V(e.ns.be("group","split-dash")),style:Ye({top:`${e.height/2}px`})},null,6)],6))}var sCe=Pe(iCe,[["render",oCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function lCe(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const uCe={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:kl},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:cr.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:Xb},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:ue(String),values:Sc,default:"bottom-start"}},cCe={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},fCe=ne({props:cCe,emits:["select","hover"],setup(e,{emit:t}){const n=Me("select"),{hoverItem:r,selectOptionClick:a}=lCe(e,{emit:t});return{ns:n,hoverItem:r,selectOptionClick:a}}}),dCe=["aria-selected"];function hCe(e,t,n,r,a,i){return R(),K("li",{"aria-selected":e.selected,style:Ye(e.style),class:V([e.ns.be("dropdown","option-item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),{hover:e.hovering}]),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=tt((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[_e(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[Y("span",null,De(e.item.label),1)])],46,dCe)}var vCe=Pe(fCe,[["render",hCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const Y8=Symbol("ElSelectV2Injection");var pCe=ne({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=Ge(Y8),a=Me("select"),i=H([]),o=H(),s=P(()=>e.data.length);xe(()=>s.value,()=>{var T,M;(M=(T=r.popper.value).updatePopper)==null||M.call(T)});const l=P(()=>er(r.props.estimatedOptionHeight)),u=P(()=>l.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:T=>i.value[T]}),c=(T=[],M)=>{const{props:{valueKey:A}}=r;return Mt(M)?T&&T.some(k=>Sn(k,A)===Sn(M,A)):T.includes(M)},f=(T,M)=>{if(Mt(M)){const{valueKey:A}=r.props;return Sn(T,A)===Sn(M,A)}else return T===M},d=(T,M)=>{const{valueKey:A}=r.props;return r.props.multiple?c(T,Sn(M,A)):f(T,Sn(M,A))},h=(T,M)=>{const{disabled:A,multiple:k,multipleLimit:E}=r.props;return A||!M&&(k?E>0&&T.length>=E:!1)},v=T=>e.hoveringIndex===T;n({listRef:o,isSized:l,isItemDisabled:h,isItemHovering:v,isItemSelected:d,scrollToItem:T=>{const M=o.value;M&&M.scrollToItem(T)},resetScrollTop:()=>{const T=o.value;T&&T.resetScrollTop()}});const m=T=>{const{index:M,data:A,style:k}=T,E=y(l),{itemSize:D,estimatedSize:L}=y(u),{modelValue:B}=r.props,{onSelect:N,onHover:O}=r,$=A[M];if($.type==="Group")return q(sCe,{item:$,style:k,height:E?D:L},null);const I=d(B,$),z=h(B,I),G=v(M);return q(vCe,St(T,{selected:I,disabled:$.disabled||z,created:!!$.created,hovering:G,item:$,onSelect:N,onHover:O}),{default:U=>{var Z;return((Z=t.default)==null?void 0:Z.call(t,U))||q("span",null,[$.label])}})},{onKeyboardNavigate:b,onKeyboardSelect:_}=r,w=()=>{b("forward")},C=()=>{b("backward")},S=()=>{r.expanded=!1},x=T=>{const{code:M}=T,{tab:A,esc:k,down:E,up:D,enter:L}=Xe;switch(M!==A&&(T.preventDefault(),T.stopPropagation()),M){case A:case k:{S();break}case E:{w();break}case D:{C();break}case L:{_();break}}};return()=>{var T;const{data:M,width:A}=e,{height:k,multiple:E,scrollbarAlwaysOn:D}=r.props;if(M.length===0)return q("div",{class:a.b("dropdown"),style:{width:`${A}px`}},[(T=t.empty)==null?void 0:T.call(t)]);const L=y(l)?V8:JSe;return q("div",{class:[a.b("dropdown"),a.is("multiple",E)]},[q(L,St({ref:o},y(u),{className:a.be("dropdown","list"),scrollbarAlwaysOn:D,data:M,height:k,width:A,total:M.length,onKeydown:x}),{default:B=>q(m,B,null)})])}}});function gCe(e,t){const n=H(0),r=H(null),a=P(()=>e.allowCreate&&e.filterable);function i(c){const f=d=>d.value===c;return e.options&&e.options.some(f)||t.createdOptions.some(f)}function o(c){a.value&&(e.multiple&&c.created?n.value++:r.value=c)}function s(c){if(a.value)if(c&&c.length>0&&!i(c)){const f={value:c,label:c,created:!0,disabled:!1};t.createdOptions.length>=n.value?t.createdOptions[n.value]=f:t.createdOptions.push(f)}else if(e.multiple)t.createdOptions.length=n.value;else{const f=r.value;t.createdOptions.length=0,f&&f.created&&t.createdOptions.push(f)}}function l(c){if(!a.value||!c||!c.created||c.created&&e.reserveKeyword&&t.inputValue===c.label)return;const f=t.createdOptions.findIndex(d=>d.value===c.value);~f&&(t.createdOptions.splice(f,1),n.value--)}function u(){a.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:s,removeNewOption:l,selectNewOption:o,clearAllNewOption:u}}const mCe=e=>{const t=[];return e.forEach(n=>{He(n.options)?(t.push({label:n.label,isTitle:!0,type:"Group"}),n.options.forEach(r=>{t.push(r)}),t.push({type:"Group"})):t.push(n)}),t};function yCe(e){const t=H(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,s=o[o.length-1]||"";t.value=!Zb(s)},handleCompositionEnd:i=>{t.value&&(t.value=!1,it(e)&&e(i))}}}const tL="",nL=11,bCe={larget:51,default:42,small:33},_Ce=(e,t)=>{const{t:n}=Ht(),r=Me("select-v2"),a=Me("input"),{form:i,formItem:o}=aa(),s=jt({inputValue:tL,displayInputValue:tL,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),l=H(-1),u=H(-1),c=H(null),f=H(null),d=H(null),h=H(null),v=H(null),p=H(null),g=H(null),m=H(!1),b=P(()=>e.disabled||(i==null?void 0:i.disabled)),_=P(()=>{const he=E.value.length*34;return he>e.height?e.height:he}),w=P(()=>!Kn(e.modelValue)),C=P(()=>{const he=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:w.value;return e.clearable&&!b.value&&s.comboBoxHovering&&he}),S=P(()=>e.remote&&e.filterable?"":Yb),x=P(()=>S.value&&r.is("reverse",m.value)),T=P(()=>(o==null?void 0:o.validateState)||""),M=P(()=>pM[T.value]),A=P(()=>e.remote?300:0),k=P(()=>{const he=E.value;return e.loading?e.loadingText||n("el.select.loading"):e.remote&&s.inputValue===""&&he.length===0?!1:e.filterable&&s.inputValue&&he.length>0?e.noMatchText||n("el.select.noMatch"):he.length===0?e.noDataText||n("el.select.noData"):null}),E=P(()=>{const he=ze=>{const At=s.inputValue,Wt=new RegExp($5(At),"i");return At?Wt.test(ze.label||""):!0};return e.loading?[]:mCe(e.options.concat(s.createdOptions).map(ze=>{if(He(ze.options)){const At=ze.options.filter(he);if(At.length>0)return{...ze,options:At}}else if(e.remote||he(ze))return ze;return null}).filter(ze=>ze!==null))}),D=P(()=>{const he=new Map;return E.value.forEach((ze,At)=>{he.set($e(ze),{option:ze,index:At})}),he}),L=P(()=>E.value.every(he=>he.disabled)),B=qn(),N=P(()=>B.value==="small"?"small":"default"),O=P(()=>{const he=p.value,ze=N.value||"default",At=he?Number.parseInt(getComputedStyle(he).paddingLeft):0,Wt=he?Number.parseInt(getComputedStyle(he).paddingRight):0;return s.selectWidth-Wt-At-bCe[ze]}),$=()=>{var he;u.value=((he=v.value)==null?void 0:he.offsetWidth)||200},I=P(()=>({width:`${s.calculatedWidth===0?nL:Math.ceil(s.calculatedWidth)+nL}px`})),z=P(()=>He(e.modelValue)?e.modelValue.length===0&&!s.displayInputValue:e.filterable?s.displayInputValue.length===0:!0),G=P(()=>{const he=e.placeholder||n("el.select.placeholder");return e.multiple||Kn(e.modelValue)?he:s.selectedLabel}),U=P(()=>{var he,ze;return(ze=(he=h.value)==null?void 0:he.popperRef)==null?void 0:ze.contentRef}),Z=P(()=>{if(e.multiple){const he=e.modelValue.length;if(e.modelValue.length>0&&D.value.has(e.modelValue[he-1])){const{index:ze}=D.value.get(e.modelValue[he-1]);return ze}}else if(e.modelValue&&D.value.has(e.modelValue)){const{index:he}=D.value.get(e.modelValue);return he}return-1}),ae=P({get(){return m.value&&k.value!==!1},set(he){m.value=he}}),J=P(()=>s.cachedOptions.slice(0,e.maxCollapseTags)),Q=P(()=>s.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:ee,removeNewOption:j,selectNewOption:de,clearAllNewOption:ve}=gCe(e,s),{handleCompositionStart:ie,handleCompositionUpdate:W,handleCompositionEnd:X}=yCe(he=>Zn(he)),oe=()=>{var he,ze,At;(ze=(he=f.value)==null?void 0:he.focus)==null||ze.call(he),(At=h.value)==null||At.updatePopper()},pe=()=>{if(!e.automaticDropdown&&!b.value)return s.isComposing&&(s.softFocus=!0),Ue(()=>{var he,ze;m.value=!m.value,(ze=(he=f.value)==null?void 0:he.focus)==null||ze.call(he)})},Se=()=>(e.filterable&&s.inputValue!==s.selectedLabel&&(s.query=s.selectedLabel),Ee(s.inputValue),Ue(()=>{ee(s.inputValue)})),me=Qr(Se,A.value),Ee=he=>{s.previousQuery!==he&&(s.previousQuery=he,e.filterable&&it(e.filterMethod)?e.filterMethod(he):e.filterable&&e.remote&&it(e.remoteMethod)&&e.remoteMethod(he))},Ce=he=>{pa(e.modelValue,he)||t(mn,he)},we=he=>{t(wt,he),Ce(he),s.previousValue=he==null?void 0:he.toString()},Te=(he=[],ze)=>{if(!Mt(ze))return he.indexOf(ze);const At=e.valueKey;let Wt=-1;return he.some((Jn,Qn)=>Sn(Jn,At)===Sn(ze,At)?(Wt=Qn,!0):!1),Wt},$e=he=>Mt(he)?Sn(he,e.valueKey):he,Be=he=>Mt(he)?he.label:he,We=()=>Ue(()=>{var he,ze;if(!f.value)return;const At=p.value;v.value.height=At.offsetHeight,m.value&&k.value!==!1&&((ze=(he=h.value)==null?void 0:he.updatePopper)==null||ze.call(he))}),Ae=()=>{var he,ze;if(Fe(),$(),(ze=(he=h.value)==null?void 0:he.updatePopper)==null||ze.call(he),e.multiple)return We()},Fe=()=>{const he=p.value;he&&(s.selectWidth=he.getBoundingClientRect().width)},rt=(he,ze,At=!0)=>{var Wt,Jn;if(e.multiple){let Qn=e.modelValue.slice();const kr=Te(Qn,$e(he));kr>-1?(Qn=[...Qn.slice(0,kr),...Qn.slice(kr+1)],s.cachedOptions.splice(kr,1),j(he)):(e.multipleLimit<=0||Qn.length<e.multipleLimit)&&(Qn=[...Qn,$e(he)],s.cachedOptions.push(he),de(he),st(ze)),we(Qn),he.created&&(s.query="",Ee(""),s.inputLength=20),e.filterable&&!e.reserveKeyword&&((Jn=(Wt=f.value).focus)==null||Jn.call(Wt),ke("")),e.filterable&&(s.calculatedWidth=g.value.getBoundingClientRect().width),We(),zn()}else l.value=ze,s.selectedLabel=he.label,we($e(he)),m.value=!1,s.isComposing=!1,s.isSilentBlur=At,de(he),he.created||ve(),st(ze)},vt=(he,ze)=>{const{valueKey:At}=e,Wt=e.modelValue.indexOf(Sn(ze,At));if(Wt>-1&&!b.value){const Jn=[...e.modelValue.slice(0,Wt),...e.modelValue.slice(Wt+1)];return s.cachedOptions.splice(Wt,1),we(Jn),t("remove-tag",Sn(ze,At)),s.softFocus=!0,j(ze),Ue(oe)}he.stopPropagation()},kt=he=>{const ze=s.isComposing;s.isComposing=!0,s.softFocus?s.softFocus=!1:ze||t("focus",he)},Qe=he=>(s.softFocus=!1,Ue(()=>{var ze,At;(At=(ze=f.value)==null?void 0:ze.blur)==null||At.call(ze),g.value&&(s.calculatedWidth=g.value.getBoundingClientRect().width),s.isSilentBlur?s.isSilentBlur=!1:s.isComposing&&t("blur",he),s.isComposing=!1})),ye=()=>{s.displayInputValue.length>0?ke(""):m.value=!1},fe=he=>{if(s.displayInputValue.length===0){he.preventDefault();const ze=e.modelValue.slice();ze.pop(),j(s.cachedOptions.pop()),we(ze)}},le=()=>{let he;return He(e.modelValue)?he=[]:he=void 0,s.softFocus=!0,e.multiple?s.cachedOptions=[]:s.selectedLabel="",m.value=!1,we(he),t("clear"),ve(),Ue(oe)},ke=he=>{s.displayInputValue=he,s.inputValue=he},te=(he,ze=void 0)=>{const At=E.value;if(!["forward","backward"].includes(he)||b.value||At.length<=0||L.value)return;if(!m.value)return pe();ze===void 0&&(ze=s.hoveringIndex);let Wt=-1;he==="forward"?(Wt=ze+1,Wt>=At.length&&(Wt=0)):he==="backward"&&(Wt=ze-1,(Wt<0||Wt>=At.length)&&(Wt=At.length-1));const Jn=At[Wt];if(Jn.disabled||Jn.type==="Group")return te(he,Wt);st(Wt),be(Wt)},Ve=()=>{if(m.value)~s.hoveringIndex&&E.value[s.hoveringIndex]&&rt(E.value[s.hoveringIndex],s.hoveringIndex,!1);else return pe()},st=he=>{s.hoveringIndex=he},It=()=>{s.hoveringIndex=-1},zn=()=>{var he;const ze=f.value;ze&&((he=ze.focus)==null||he.call(ze))},Zn=he=>{const ze=he.target.value;if(ke(ze),s.displayInputValue.length>0&&!m.value&&(m.value=!0),s.calculatedWidth=g.value.getBoundingClientRect().width,e.multiple&&We(),e.remote)me();else return Se()},oa=()=>(m.value=!1,Qe()),pr=()=>(s.inputValue=s.displayInputValue,Ue(()=>{~Z.value&&(st(Z.value),be(s.hoveringIndex))})),be=he=>{d.value.scrollToItem(he)},Ne=()=>{if(It(),e.multiple)if(e.modelValue.length>0){let he=!1;s.cachedOptions.length=0,s.previousValue=e.modelValue.toString();for(const ze of e.modelValue)if(D.value.has(ze)){const{index:At,option:Wt}=D.value.get(ze);s.cachedOptions.push(Wt),he||st(At),he=!0}}else s.cachedOptions=[],s.previousValue=void 0;else if(w.value){s.previousValue=e.modelValue;const he=E.value,ze=he.findIndex(At=>$e(At)===$e(e.modelValue));~ze?(s.selectedLabel=he[ze].label,st(ze)):s.selectedLabel=`${e.modelValue}`}else s.selectedLabel="",s.previousValue=void 0;ve(),$()};return xe(m,he=>{var ze,At;t("visible-change",he),he?(At=(ze=h.value).update)==null||At.call(ze):(s.displayInputValue="",s.previousQuery=null,ee(""))}),xe(()=>e.modelValue,(he,ze)=>{var At;(!he||he.toString()!==s.previousValue)&&Ne(),!pa(he,ze)&&e.validateEvent&&((At=o==null?void 0:o.validate)==null||At.call(o,"change").catch(Wt=>void 0))},{deep:!0}),xe(()=>e.options,()=>{const he=f.value;(!he||he&&document.activeElement!==he)&&Ne()},{deep:!0}),xe(E,()=>Ue(d.value.resetScrollTop)),xe(()=>ae.value,he=>{he||It()}),yt(()=>{Ne()}),$r(v,Ae),{collapseTagSize:N,currentPlaceholder:G,expanded:m,emptyText:k,popupHeight:_,debounce:A,filteredOptions:E,iconComponent:S,iconReverse:x,inputWrapperStyle:I,popperSize:u,dropdownMenuVisible:ae,hasModelValue:w,shouldShowPlaceholder:z,selectDisabled:b,selectSize:B,showClearBtn:C,states:s,tagMaxWidth:O,nsSelectV2:r,nsInput:a,calculatorRef:g,controlRef:c,inputRef:f,menuRef:d,popper:h,selectRef:v,selectionRef:p,popperRef:U,validateState:T,validateIcon:M,showTagList:J,collapseTagList:Q,debouncedOnInputChange:me,deleteTag:vt,getLabel:Be,getValueKey:$e,handleBlur:Qe,handleClear:le,handleClickOutside:oa,handleDel:fe,handleEsc:ye,handleFocus:kt,handleMenuEnter:pr,handleResize:Ae,toggleMenu:pe,scrollTo:be,onInput:Zn,onKeyboardNavigate:te,onKeyboardSelect:Ve,onSelect:rt,onHover:st,onUpdateInputValue:ke,handleCompositionStart:ie,handleCompositionEnd:X,handleCompositionUpdate:W}},wCe=ne({name:"ElSelectV2",components:{ElSelectMenu:pCe,ElTag:ep,ElTooltip:ea,ElIcon:Ke},directives:{ClickOutside:pl,ModelText:HT},props:uCe,emits:[wt,mn,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=P(()=>{const{modelValue:a,multiple:i}=e,o=i?[]:void 0;return He(a)?i?a:o:i?o:a}),r=_Ce(jt({...or(e),modelValue:n}),t);return Et(Y8,{props:jt({...or(e),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),SCe={key:0},CCe=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],xCe=["textContent"],TCe=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],MCe=["textContent"];function kCe(e,t,n,r,a,i){const o=ct("el-tag"),s=ct("el-tooltip"),l=ct("el-icon"),u=ct("el-select-menu"),c=Bv("model-text"),f=Bv("click-outside");return dt((R(),K("div",{ref:"selectRef",class:V([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=tt((...d)=>e.toggleMenu&&e.toggleMenu(...d),["stop"])),onMouseenter:t[25]||(t[25]=d=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=d=>e.states.comboBoxHovering=!1)},[q(s,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=d=>e.states.inputValue=e.states.displayInputValue)},{default:re(()=>[Y("div",{ref:"selectionRef",class:V([e.nsSelectV2.e("wrapper"),e.nsSelectV2.is("focused",e.states.isComposing||e.expanded),e.nsSelectV2.is("hovering",e.states.comboBoxHovering),e.nsSelectV2.is("filterable",e.filterable),e.nsSelectV2.is("disabled",e.selectDisabled)])},[e.$slots.prefix?(R(),K("div",SCe,[_e(e.$slots,"prefix")])):se("v-if",!0),e.multiple?(R(),K("div",{key:1,class:V(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(R(),K(je,{key:0},[(R(!0),K(je,null,Ot(e.showTagList,d=>(R(),K("div",{key:e.getValueKey(d),class:V(e.nsSelectV2.e("selected-item"))},[q(o,{closable:!e.selectDisabled&&!(d!=null&&d.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:re(()=>[Y("span",{class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},De(d==null?void 0:d.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),Y("div",{class:V(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(R(),ce(o,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:re(()=>[e.collapseTagsTooltip?(R(),ce(s,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:re(()=>[Y("span",{class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},"+ "+De(e.modelValue.length-e.maxCollapseTags),7)]),content:re(()=>[Y("div",{class:V(e.nsSelectV2.e("selection"))},[(R(!0),K(je,null,Ot(e.collapseTagList,d=>(R(),K("div",{key:e.getValueKey(d),class:V(e.nsSelectV2.e("selected-item"))},[q(o,{closable:!e.selectDisabled&&!d.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:re(()=>[Y("span",{class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},De(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(R(),K("span",{key:1,class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},"+ "+De(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):se("v-if",!0)],2)],64)):(R(!0),K(je,{key:1},Ot(e.states.cachedOptions,d=>(R(),K("div",{key:e.getValueKey(d),class:V(e.nsSelectV2.e("selected-item"))},[q(o,{closable:!e.selectDisabled&&!d.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:re(()=>[Y("span",{class:V(e.nsSelectV2.e("tags-text")),style:Ye({maxWidth:`${e.tagMaxWidth}px`})},De(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),Y("div",{class:V([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:Ye(e.inputWrapperStyle)},[dt(Y("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:V([e.nsSelectV2.is(e.selectSize),e.nsSelectV2.e("combobox-input")]),disabled:e.disabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,unselectable:e.expanded?"on":void 0,"onUpdate:modelValue":t[0]||(t[0]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d)),onFocus:t[1]||(t[1]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[2]||(t[2]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onInput:t[3]||(t[3]=(...d)=>e.onInput&&e.onInput(...d)),onCompositionstart:t[4]||(t[4]=(...d)=>e.handleCompositionStart&&e.handleCompositionStart(...d)),onCompositionupdate:t[5]||(t[5]=(...d)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...d)),onCompositionend:t[6]||(t[6]=(...d)=>e.handleCompositionEnd&&e.handleCompositionEnd(...d)),onKeydown:[t[7]||(t[7]=Ft(tt(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=Ft(tt(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=Ft(tt((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[10]||(t[10]=Ft(tt((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"])),t[11]||(t[11]=Ft(tt((...d)=>e.handleDel&&e.handleDel(...d),["stop"]),["delete"]))]},null,42,CCe),[[c,e.states.displayInputValue]]),e.filterable?(R(),K("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:V(e.nsSelectV2.e("input-calculator")),textContent:De(e.states.displayInputValue)},null,10,xCe)):se("v-if",!0)],6)],2)):(R(),K(je,{key:2},[Y("div",{class:V([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[dt(Y("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:V(e.nsSelectV2.e("combobox-input")),disabled:e.disabled,name:e.name,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",unselectable:e.expanded?"on":void 0,onCompositionstart:t[12]||(t[12]=(...d)=>e.handleCompositionStart&&e.handleCompositionStart(...d)),onCompositionupdate:t[13]||(t[13]=(...d)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...d)),onCompositionend:t[14]||(t[14]=(...d)=>e.handleCompositionEnd&&e.handleCompositionEnd(...d)),onFocus:t[15]||(t[15]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[16]||(t[16]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onInput:t[17]||(t[17]=(...d)=>e.onInput&&e.onInput(...d)),onKeydown:[t[18]||(t[18]=Ft(tt(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=Ft(tt(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=Ft(tt((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[21]||(t[21]=Ft(tt((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d))},null,42,TCe),[[c,e.states.displayInputValue]])],2),e.filterable?(R(),K("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:V([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:De(e.states.displayInputValue)},null,10,MCe)):se("v-if",!0)],64)),e.shouldShowPlaceholder?(R(),K("span",{key:3,class:V([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},De(e.currentPlaceholder),3)):se("v-if",!0),Y("span",{class:V(e.nsSelectV2.e("suffix"))},[e.iconComponent?dt((R(),ce(l,{key:0,class:V([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:re(()=>[(R(),ce(Ct(e.iconComponent)))]),_:1},8,["class"])),[[Kt,!e.showClearBtn]]):se("v-if",!0),e.showClearBtn&&e.clearIcon?(R(),ce(l,{key:1,class:V([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:tt(e.handleClear,["prevent","stop"])},{default:re(()=>[(R(),ce(Ct(e.clearIcon)))]),_:1},8,["class","onClick"])):se("v-if",!0),e.validateState&&e.validateIcon?(R(),ce(l,{key:2,class:V([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:re(()=>[(R(),ce(Ct(e.validateIcon)))]),_:1},8,["class"])):se("v-if",!0)],2)],2)]),content:re(()=>[q(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:re(d=>[_e(e.$slots,"default",ki(Ob(d)))]),empty:re(()=>[_e(e.$slots,"empty",{},()=>[Y("p",{class:V(e.nsSelectV2.e("empty"))},De(e.emptyText?e.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[f,e.handleClickOutside,e.popperRef]])}var Cy=Pe(wCe,[["render",kCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Cy.install=e=>{e.component(Cy.name,Cy)};const ACe=Cy,ECe=ACe,ICe=Le({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),DCe=Le({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),PCe=ne({name:"ElSkeletonItem"}),LCe=ne({...PCe,props:DCe,setup(e){const t=Me("skeleton");return(n,r)=>(R(),K("div",{class:V([y(t).e("item"),y(t).e(n.variant)])},[n.variant==="image"?(R(),ce(y(Ooe),{key:0})):se("v-if",!0)],2))}});var C0=Pe(LCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const RCe=ne({name:"ElSkeleton"}),OCe=ne({...RCe,props:ICe,setup(e,{expose:t}){const n=e,r=Me("skeleton"),a=Rue(kn(n,"loading"),n.throttle);return t({uiLoading:a}),(i,o)=>y(a)?(R(),K("div",St({key:0,class:[y(r).b(),y(r).is("animated",i.animated)]},i.$attrs),[(R(!0),K(je,null,Ot(i.count,s=>(R(),K(je,{key:s},[i.loading?_e(i.$slots,"template",{key:s},()=>[q(C0,{class:V(y(r).is("first")),variant:"p"},null,8,["class"]),(R(!0),K(je,null,Ot(i.rows,l=>(R(),ce(C0,{key:l,class:V([y(r).e("paragraph"),y(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):se("v-if",!0)],64))),128))],16)):_e(i.$slots,"default",ki(St({key:1},i.$attrs)))}});var $Ce=Pe(OCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const NCe=_t($Ce,{SkeletonItem:C0}),BCe=Dn(C0),j8=Symbol("sliderContextKey"),VCe=Le({modelValue:{type:ue([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Sr,inputSize:Sr,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:ue(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:ue(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Sc,default:"top"},marks:{type:ue(Object)},validateEvent:{type:Boolean,default:!0}}),L_=e=>at(e)||He(e)&&e.every(at),zCe={[wt]:L_,[qr]:L_,[mn]:L_},FCe=(e,t,n)=>{const r=H();return yt(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),bn(window,"resize",n),await Ue(),n()}),{sliderWrapper:r}},HCe=e=>P(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),GCe=(e,t,n)=>{const{form:r,formItem:a}=aa(),i=un(),o=H(),s=H(),l={firstButton:o,secondButton:s},u=P(()=>e.disabled||(r==null?void 0:r.disabled)||!1),c=P(()=>Math.min(t.firstValue,t.secondValue)),f=P(()=>Math.max(t.firstValue,t.secondValue)),d=P(()=>e.range?`${100*(f.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=P(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),v=P(()=>e.vertical?{height:e.height}:{}),p=P(()=>e.vertical?{height:d.value,bottom:h.value}:{width:d.value,left:h.value}),g=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},m=k=>{const E=e.min+k*(e.max-e.min)/100;if(!e.range)return o;let D;return Math.abs(c.value-E)<Math.abs(f.value-E)?D=t.firstValue<t.secondValue?"firstButton":"secondButton":D=t.firstValue>t.secondValue?"firstButton":"secondButton",l[D]},b=k=>{const E=m(k);return E.value.setPosition(k),E},_=k=>{t.firstValue=k,C(e.range?[c.value,f.value]:k)},w=k=>{t.secondValue=k,e.range&&C([c.value,f.value])},C=k=>{n(wt,k),n(qr,k)},S=async()=>{await Ue(),n(mn,e.range?[c.value,f.value]:e.modelValue)},x=k=>{var E,D,L,B,N,O;if(u.value||t.dragging)return;g();let $=0;if(e.vertical){const I=(L=(D=(E=k.touches)==null?void 0:E.item(0))==null?void 0:D.clientY)!=null?L:k.clientY;$=(i.value.getBoundingClientRect().bottom-I)/t.sliderSize*100}else{const I=(O=(N=(B=k.touches)==null?void 0:B.item(0))==null?void 0:N.clientX)!=null?O:k.clientX,z=i.value.getBoundingClientRect().left;$=(I-z)/t.sliderSize*100}if(!($<0||$>100))return b($)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:v,barStyle:p,resetSize:g,setPosition:b,emitChange:S,onSliderWrapperPrevent:k=>{var E,D;((E=l.firstButton.value)!=null&&E.dragging||(D=l.secondButton.value)!=null&&D.dragging)&&k.preventDefault()},onSliderClick:k=>{x(k)&&S()},onSliderDown:async k=>{const E=x(k);E&&(await Ue(),E.value.onButtonDown(k))},setFirstValue:_,setSecondValue:w}},{left:WCe,down:KCe,right:UCe,up:YCe,home:jCe,end:qCe,pageUp:XCe,pageDown:ZCe}=Xe,JCe=(e,t,n)=>{const r=H(),a=H(!1),i=P(()=>t.value instanceof Function),o=P(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=Qr(()=>{n.value&&(a.value=!0)},50),l=Qr(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},QCe=(e,t,n)=>{const{disabled:r,min:a,max:i,step:o,showTooltip:s,precision:l,sliderSize:u,formatTooltip:c,emitChange:f,resetSize:d,updateDragging:h}=Ge(j8),{tooltip:v,tooltipVisible:p,formatValue:g,displayTooltip:m,hideTooltip:b}=JCe(e,c,s),_=H(),w=P(()=>`${(e.modelValue-a.value)/(i.value-a.value)*100}%`),C=P(()=>e.vertical?{bottom:w.value}:{left:w.value}),S=()=>{t.hovering=!0,m()},x=()=>{t.hovering=!1,t.dragging||b()},T=U=>{r.value||(U.preventDefault(),$(U),window.addEventListener("mousemove",I),window.addEventListener("touchmove",I),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),_.value.focus())},M=U=>{r.value||(t.newPosition=Number.parseFloat(w.value)+U/(i.value-a.value)*100,G(t.newPosition),f())},A=()=>{M(-o.value)},k=()=>{M(o.value)},E=()=>{M(-o.value*4)},D=()=>{M(o.value*4)},L=()=>{r.value||(G(0),f())},B=()=>{r.value||(G(100),f())},N=U=>{let Z=!0;[WCe,KCe].includes(U.key)?A():[UCe,YCe].includes(U.key)?k():U.key===jCe?L():U.key===qCe?B():U.key===ZCe?E():U.key===XCe?D():Z=!1,Z&&U.preventDefault()},O=U=>{let Z,ae;return U.type.startsWith("touch")?(ae=U.touches[0].clientY,Z=U.touches[0].clientX):(ae=U.clientY,Z=U.clientX),{clientX:Z,clientY:ae}},$=U=>{t.dragging=!0,t.isClick=!0;const{clientX:Z,clientY:ae}=O(U);e.vertical?t.startY=ae:t.startX=Z,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},I=U=>{if(t.dragging){t.isClick=!1,m(),d();let Z;const{clientX:ae,clientY:J}=O(U);e.vertical?(t.currentY=J,Z=(t.startY-t.currentY)/u.value*100):(t.currentX=ae,Z=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+Z,G(t.newPosition)}},z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||G(t.newPosition),f()},0),window.removeEventListener("mousemove",I),window.removeEventListener("touchmove",I),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},G=async U=>{if(U===null||Number.isNaN(+U))return;U<0?U=0:U>100&&(U=100);const Z=100/((i.value-a.value)/o.value);let J=Math.round(U/Z)*Z*(i.value-a.value)*.01+a.value;J=Number.parseFloat(J.toFixed(l.value)),J!==e.modelValue&&n(wt,J),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Ue(),t.dragging&&m(),v.value.updatePopper()};return xe(()=>t.dragging,U=>{h(U)}),{disabled:r,button:_,tooltip:v,tooltipVisible:p,showTooltip:s,wrapperStyle:C,formatValue:g,handleMouseEnter:S,handleMouseLeave:x,onButtonDown:T,onKeyDown:N,setPosition:G}},exe=(e,t,n,r)=>({stops:P(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const o=(e.max-e.min)/e.step,s=100*e.step/(e.max-e.min),l=Array.from({length:o-1}).map((u,c)=>(c+1)*s);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:o=>e.vertical?{bottom:`${o}%`}:{left:`${o}%`}}),txe=(e,t,n,r,a,i)=>{const o=u=>{a(wt,u),a(qr,u)},s=()=>e.range?![n.value,r.value].every((u,c)=>u===t.oldValue[c]):e.modelValue!==t.oldValue,l=()=>{var u,c;e.min>e.max&&jn("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Array.isArray(f)?f[1]<e.min?o([e.min,e.min]):f[0]>e.max?o([e.max,e.max]):f[0]<e.min?o([e.min,f[1]]):f[1]>e.max?o([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],s()&&(e.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(d=>void 0)),t.oldValue=f.slice())):!e.range&&typeof f=="number"&&!Number.isNaN(f)&&(f<e.min?o(e.min):f>e.max?o(e.max):(t.firstValue=f,s()&&(e.validateEvent&&((c=i==null?void 0:i.validate)==null||c.call(i,"change").catch(d=>void 0)),t.oldValue=f)))};l(),xe(()=>t.dragging,u=>{u||l()}),xe(()=>e.modelValue,(u,c)=>{t.dragging||Array.isArray(u)&&Array.isArray(c)&&u.every((f,d)=>f===c[d])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),xe(()=>[e.min,e.max],()=>{l()})},nxe=Le({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Sc,default:"top"}}),rxe={[wt]:e=>at(e)},axe=["tabindex"],ixe=ne({name:"ElSliderButton"}),oxe=ne({...ixe,props:nxe,emits:rxe,setup(e,{expose:t,emit:n}){const r=e,a=Me("slider"),i=jt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:o,button:s,tooltip:l,showTooltip:u,tooltipVisible:c,wrapperStyle:f,formatValue:d,handleMouseEnter:h,handleMouseLeave:v,onButtonDown:p,onKeyDown:g,setPosition:m}=QCe(r,i,n),{hovering:b,dragging:_}=or(i);return t({onButtonDown:p,onKeyDown:g,setPosition:m,hovering:b,dragging:_}),(w,C)=>(R(),K("div",{ref_key:"button",ref:s,class:V([y(a).e("button-wrapper"),{hover:y(b),dragging:y(_)}]),style:Ye(y(f)),tabindex:y(o)?-1:0,onMouseenter:C[0]||(C[0]=(...S)=>y(h)&&y(h)(...S)),onMouseleave:C[1]||(C[1]=(...S)=>y(v)&&y(v)(...S)),onMousedown:C[2]||(C[2]=(...S)=>y(p)&&y(p)(...S)),onTouchstart:C[3]||(C[3]=(...S)=>y(p)&&y(p)(...S)),onFocus:C[4]||(C[4]=(...S)=>y(h)&&y(h)(...S)),onBlur:C[5]||(C[5]=(...S)=>y(v)&&y(v)(...S)),onKeydown:C[6]||(C[6]=(...S)=>y(g)&&y(g)(...S))},[q(y(ea),{ref_key:"tooltip",ref:l,visible:y(c),placement:w.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":w.tooltipClass,disabled:!y(u),persistent:""},{content:re(()=>[Y("span",null,De(y(d)),1)]),default:re(()=>[Y("div",{class:V([y(a).e("button"),{hover:y(b),dragging:y(_)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,axe))}});var rL=Pe(oxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const sxe=Le({mark:{type:ue([String,Object]),default:void 0}});var lxe=ne({name:"ElSliderMarker",props:sxe,setup(e){const t=Me("slider"),n=P(()=>lt(e.mark)?e.mark:e.mark.label),r=P(()=>lt(e.mark)?void 0:e.mark.style);return()=>Ze("div",{class:t.e("marks-text"),style:r.value},n.value)}});const uxe=["id","role","aria-label","aria-labelledby"],cxe={key:1},fxe=ne({name:"ElSlider"}),dxe=ne({...fxe,props:VCe,emits:zCe,setup(e,{expose:t,emit:n}){const r=e,a=Me("slider"),{t:i}=Ht(),o=jt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:c,sliderDisabled:f,minValue:d,maxValue:h,runwayStyle:v,barStyle:p,resetSize:g,emitChange:m,onSliderWrapperPrevent:b,onSliderClick:_,onSliderDown:w,setFirstValue:C,setSecondValue:S}=GCe(r,o,n),{stops:x,getStopStyle:T}=exe(r,o,d,h),{inputId:M,isLabeledByFormItem:A}=Dl(r,{formItemContext:s}),k=qn(),E=P(()=>r.inputSize||k.value),D=P(()=>r.label||i("el.slider.defaultLabel",{min:r.min,max:r.max})),L=P(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):D.value),B=P(()=>r.formatValueText?r.formatValueText(U.value):`${U.value}`),N=P(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),O=P(()=>r.formatValueText?r.formatValueText(Z.value):`${Z.value}`),$=P(()=>[a.b(),a.m(k.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),I=HCe(r);txe(r,o,d,h,n,s);const z=P(()=>{const Q=[r.min,r.max,r.step].map(ee=>{const j=`${ee}`.split(".")[1];return j?j.length:0});return Math.max.apply(null,Q)}),{sliderWrapper:G}=FCe(r,o,g),{firstValue:U,secondValue:Z,sliderSize:ae}=or(o),J=Q=>{o.dragging=Q};return Et(j8,{...or(r),sliderSize:ae,disabled:f,precision:z,emitChange:m,resetSize:g,updateDragging:J}),t({onSliderClick:_}),(Q,ee)=>{var j,de;return R(),K("div",{id:Q.range?y(M):void 0,ref_key:"sliderWrapper",ref:G,class:V(y($)),role:Q.range?"group":void 0,"aria-label":Q.range&&!y(A)?y(D):void 0,"aria-labelledby":Q.range&&y(A)?(j=y(s))==null?void 0:j.labelId:void 0,onTouchstart:ee[2]||(ee[2]=(...ve)=>y(b)&&y(b)(...ve)),onTouchmove:ee[3]||(ee[3]=(...ve)=>y(b)&&y(b)(...ve))},[Y("div",{ref_key:"slider",ref:l,class:V([y(a).e("runway"),{"show-input":Q.showInput&&!Q.range},y(a).is("disabled",y(f))]),style:Ye(y(v)),onMousedown:ee[0]||(ee[0]=(...ve)=>y(w)&&y(w)(...ve)),onTouchstart:ee[1]||(ee[1]=(...ve)=>y(w)&&y(w)(...ve))},[Y("div",{class:V(y(a).e("bar")),style:Ye(y(p))},null,6),q(rL,{id:Q.range?void 0:y(M),ref_key:"firstButton",ref:u,"model-value":y(U),vertical:Q.vertical,"tooltip-class":Q.tooltipClass,placement:Q.placement,role:"slider","aria-label":Q.range||!y(A)?y(L):void 0,"aria-labelledby":!Q.range&&y(A)?(de=y(s))==null?void 0:de.labelId:void 0,"aria-valuemin":Q.min,"aria-valuemax":Q.range?y(Z):Q.max,"aria-valuenow":y(U),"aria-valuetext":y(B),"aria-orientation":Q.vertical?"vertical":"horizontal","aria-disabled":y(f),"onUpdate:modelValue":y(C)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Q.range?(R(),ce(rL,{key:0,ref_key:"secondButton",ref:c,"model-value":y(Z),vertical:Q.vertical,"tooltip-class":Q.tooltipClass,placement:Q.placement,role:"slider","aria-label":y(N),"aria-valuemin":y(U),"aria-valuemax":Q.max,"aria-valuenow":y(Z),"aria-valuetext":y(O),"aria-orientation":Q.vertical?"vertical":"horizontal","aria-disabled":y(f),"onUpdate:modelValue":y(S)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):se("v-if",!0),Q.showStops?(R(),K("div",cxe,[(R(!0),K(je,null,Ot(y(x),(ve,ie)=>(R(),K("div",{key:ie,class:V(y(a).e("stop")),style:Ye(y(T)(ve))},null,6))),128))])):se("v-if",!0),y(I).length>0?(R(),K(je,{key:2},[Y("div",null,[(R(!0),K(je,null,Ot(y(I),(ve,ie)=>(R(),K("div",{key:ie,style:Ye(y(T)(ve.position)),class:V([y(a).e("stop"),y(a).e("marks-stop")])},null,6))),128))]),Y("div",{class:V(y(a).e("marks"))},[(R(!0),K(je,null,Ot(y(I),(ve,ie)=>(R(),ce(y(lxe),{key:ie,mark:ve.mark,style:Ye(y(T)(ve.position))},null,8,["mark","style"]))),128))],2)],64)):se("v-if",!0)],38),Q.showInput&&!Q.range?(R(),ce(y(w8),{key:0,ref:"input","model-value":y(U),class:V(y(a).e("input")),step:Q.step,disabled:y(f),controls:Q.showInputControls,min:Q.min,max:Q.max,debounce:Q.debounce,size:y(E),"onUpdate:modelValue":y(C),onChange:y(m)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):se("v-if",!0)],42,uxe)}}});var hxe=Pe(dxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const vxe=_t(hxe),pxe=Le({prefixCls:{type:String}}),aL=ne({name:"ElSpaceItem",props:pxe,setup(e,{slots:t}){const n=Me("space"),r=P(()=>`${e.prefixCls||n.b()}__item`);return()=>Ze("div",{class:r.value},_e(t,"default"))}}),iL={small:8,default:12,large:16};function gxe(e){const t=Me("space"),n=P(()=>[t.b(),t.m(e.direction),e.class]),r=H(0),a=H(0),i=P(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`}:{},l={alignItems:e.alignment};return[s,l,e.style]}),o=P(()=>{const s={paddingBottom:`${a.value}px`,marginRight:`${r.value}px`},l=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[s,l]});return Da(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=e;if(He(s)){const[f=0,d=0]=s;r.value=f,a.value=d}else{let f;at(s)?f=s:f=iL[s||"small"]||iL.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 mxe=Le({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:ue([String,Object,Array]),default:""},style:{type:ue([String,Array,Object]),default:""},alignment:{type:ue(String),default:"center"},prefixCls:{type:String},spacer:{type:ue([Object,String,Number,Array]),default:null,validator:e=>Tn(e)||at(e)||lt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Mo,validator:e=>at(e)||He(e)&&e.length===2&&e.every(at)}}),yxe=ne({name:"ElSpace",props:mxe,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:a}=gxe(e);function i(o,s="",l=[]){const{prefixCls:u}=e;return o.forEach((c,f)=>{IC(c)?He(c.children)&&c.children.forEach((d,h)=>{IC(d)&&He(d.children)?i(d.children,`${s+h}-`,l):l.push(q(aL,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[d]},Wa.PROPS|Wa.STYLE,["style","prefixCls"]))}):ble(c)&&l.push(q(aL,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},Wa.PROPS|Wa.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=e,u=_e(t,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(He(u.children)){let c=i(u.children);if(s){const f=c.length-1;c=c.reduce((d,h,v)=>{const p=[...d,h];return v!==f&&p.push(q("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[Tn(s)?s:Ut(s,Wa.TEXT)],Wa.STYLE)),p},[])}return q("div",{class:n.value,style:r.value},c,Wa.STYLE|Wa.CLASS)}return u.children}}}),bxe=_t(yxe),_xe=Le({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:ue([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:ue([String,Object,Array])}}),wxe=ne({name:"ElStatistic"}),Sxe=ne({...wxe,props:_xe,setup(e,{expose:t}){const n=e,r=Me("statistic"),a=P(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(it(o))return o(i);if(!at(i))return i;let[c,f=""]=String(i).split(".");return f=f.padEnd(s,"0").slice(0,s>0?s:0),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,u),[c,f].join(f?l:"")});return t({displayValue:a}),(i,o)=>(R(),K("div",{class:V(y(r).b())},[i.$slots.title||i.title?(R(),K("div",{key:0,class:V(y(r).e("head"))},[_e(i.$slots,"title",{},()=>[Ut(De(i.title),1)])],2)):se("v-if",!0),Y("div",{class:V(y(r).e("content"))},[i.$slots.prefix||i.prefix?(R(),K("div",{key:0,class:V(y(r).e("prefix"))},[_e(i.$slots,"prefix",{},()=>[Y("span",null,De(i.prefix),1)])],2)):se("v-if",!0),Y("span",{class:V(y(r).e("number")),style:Ye(i.valueStyle)},De(y(a)),7),i.$slots.suffix||i.suffix?(R(),K("div",{key:1,class:V(y(r).e("suffix"))},[_e(i.$slots,"suffix",{},()=>[Y("span",null,De(i.suffix),1)])],2)):se("v-if",!0)],2)],2))}});var Cxe=Pe(Sxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const q8=_t(Cxe),xxe=Le({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:ue([Number,Object]),default:0},valueStyle:{type:ue([String,Object,Array])}}),Txe={finish:()=>!0,[mn]:e=>at(e)},Mxe=[["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]],oL=e=>at(e)?new Date(e).getTime():e.valueOf(),sL=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return Mxe.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")},kxe=ne({name:"ElCountdown"}),Axe=ne({...kxe,props:xxe,emits:Txe,setup(e,{expose:t,emit:n}){const r=e;let a;const i=H(oL(r.value)-Date.now()),o=P(()=>sL(i.value,r.format)),s=c=>sL(c,r.format),l=()=>{a&&(Jb(a),a=void 0)},u=()=>{const c=oL(r.value),f=()=>{let d=c-Date.now();n("change",d),d<=0?(d=0,l(),n("finish")):a=td(f),i.value=d};a=td(f)};return xe(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0}),wn(()=>{l()}),t({displayValue:o}),(c,f)=>(R(),ce(y(q8),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},Jo({_:2},[Ot(c.$slots,(d,h)=>({name:h,fn:re(()=>[_e(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Exe=Pe(Axe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const Ixe=_t(Exe),Dxe=Le({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Pxe={[mn]:(e,t)=>[e,t].every(at)},Lxe=ne({name:"ElSteps"}),Rxe=ne({...Lxe,props:Dxe,emits:Pxe,setup(e,{emit:t}){const n=e,r=Me("steps"),{children:a,addChild:i,removeChild:o}=PM(gt(),"ElStep");return xe(a,()=>{a.value.forEach((s,l)=>{s.setIndex(l)})}),Et("ElSteps",{props:n,steps:a,addStep:i,removeStep:o}),xe(()=>n.active,(s,l)=>{t(mn,s,l)}),(s,l)=>(R(),K("div",{class:V([y(r).b(),y(r).m(s.simple?"simple":s.direction)])},[_e(s.$slots,"default")],2))}});var Oxe=Pe(Rxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const $xe=Le({title:{type:String,default:""},icon:{type:fn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),Nxe=ne({name:"ElStep"}),Bxe=ne({...Nxe,props:$xe,setup(e){const t=e,n=Me("step"),r=H(-1),a=H({}),i=H(""),o=Ge("ElSteps"),s=gt();yt(()=>{xe([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([S])=>{w(S)},{immediate:!0})}),wn(()=>{o.removeStep(C.uid)});const l=P(()=>t.status||i.value),u=P(()=>{const S=o.steps.value[r.value-1];return S?S.currentStatus:"wait"}),c=P(()=>o.props.alignCenter),f=P(()=>o.props.direction==="vertical"),d=P(()=>o.props.simple),h=P(()=>o.steps.value.length),v=P(()=>{var S;return((S=o.steps.value[h.value-1])==null?void 0:S.uid)===(s==null?void 0:s.uid)}),p=P(()=>d.value?"":o.props.space),g=P(()=>[n.b(),n.is(d.value?"simple":o.props.direction),n.is("flex",v.value&&!p.value&&!c.value),n.is("center",c.value&&!f.value&&!d.value)]),m=P(()=>{const S={flexBasis:at(p.value)?`${p.value}px`:p.value?p.value:`${100/(h.value-(c.value?0:1))}%`};return f.value||v.value&&(S.maxWidth=`${100/h.value}%`),S}),b=S=>{r.value=S},_=S=>{const x=S==="wait",T={transitionDelay:`${x?"-":""}${150*r.value}ms`},M=S===o.props.processStatus||x?0:100;T.borderWidth=M&&!d.value?"1px":0,T[o.props.direction==="vertical"?"height":"width"]=`${M}%`,a.value=T},w=S=>{S>r.value?i.value=o.props.finishStatus:S===r.value&&u.value!=="error"?i.value=o.props.processStatus:i.value="wait";const x=o.steps.value[r.value-1];x&&x.calcProgress(i.value)},C=jt({uid:s.uid,currentStatus:l,setIndex:b,calcProgress:_});return o.addStep(C),(S,x)=>(R(),K("div",{style:Ye(y(m)),class:V(y(g))},[se(" icon & line "),Y("div",{class:V([y(n).e("head"),y(n).is(y(l))])},[y(d)?se("v-if",!0):(R(),K("div",{key:0,class:V(y(n).e("line"))},[Y("i",{class:V(y(n).e("line-inner")),style:Ye(a.value)},null,6)],2)),Y("div",{class:V([y(n).e("icon"),y(n).is(S.icon||S.$slots.icon?"icon":"text")])},[_e(S.$slots,"icon",{},()=>[S.icon?(R(),ce(y(Ke),{key:0,class:V(y(n).e("icon-inner"))},{default:re(()=>[(R(),ce(Ct(S.icon)))]),_:1},8,["class"])):y(l)==="success"?(R(),ce(y(Ke),{key:1,class:V([y(n).e("icon-inner"),y(n).is("status")])},{default:re(()=>[q(y(Jp))]),_:1},8,["class"])):y(l)==="error"?(R(),ce(y(Ke),{key:2,class:V([y(n).e("icon-inner"),y(n).is("status")])},{default:re(()=>[q(y(Bi))]),_:1},8,["class"])):y(d)?se("v-if",!0):(R(),K("div",{key:3,class:V(y(n).e("icon-inner"))},De(r.value+1),3))])],2)],2),se(" title & description "),Y("div",{class:V(y(n).e("main"))},[Y("div",{class:V([y(n).e("title"),y(n).is(y(l))])},[_e(S.$slots,"title",{},()=>[Ut(De(S.title),1)])],2),y(d)?(R(),K("div",{key:0,class:V(y(n).e("arrow"))},null,2)):(R(),K("div",{key:1,class:V([y(n).e("description"),y(n).is(y(l))])},[_e(S.$slots,"description",{},()=>[Ut(De(S.description),1)])],2))],2)],6))}});var X8=Pe(Bxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const Vxe=_t(Oxe,{Step:X8}),zxe=Dn(X8),Fxe=Le({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:Xb},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:fn},activeActionIcon:{type:fn},activeIcon:{type:fn},inactiveIcon:{type:fn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:ue(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),Hxe={[wt]:e=>Un(e)||lt(e)||at(e),[mn]:e=>Un(e)||lt(e)||at(e),[qr]:e=>Un(e)||lt(e)||at(e)},Gxe=["onClick"],Wxe=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],Kxe=["aria-hidden"],Uxe=["aria-hidden"],Yxe=["aria-hidden"],vx="ElSwitch",jxe=ne({name:vx}),qxe=ne({...jxe,props:Fxe,emits:Hxe,setup(e,{expose:t,emit:n}){const r=e,a=gt(),{formItem:i}=aa(),o=qn(),s=Me("switch");(T=>{T.forEach(M=>{bo({from:M[0],replacement:M[1],scope:vx,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},P(()=>{var A;return!!((A=a.vnode.props)!=null&&A[M[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:u}=Dl(r,{formItemContext:i}),c=wa(P(()=>r.loading)),f=H(r.modelValue!==!1),d=H(),h=H(),v=P(()=>[s.b(),s.m(o.value),s.is("disabled",c.value),s.is("checked",_.value)]),p=P(()=>[s.e("label"),s.em("label","left"),s.is("active",!_.value)]),g=P(()=>[s.e("label"),s.em("label","right"),s.is("active",_.value)]),m=P(()=>({width:On(r.width)}));xe(()=>r.modelValue,()=>{f.value=!0}),xe(()=>r.value,()=>{f.value=!1});const b=P(()=>f.value?r.modelValue:r.value),_=P(()=>b.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(b.value)||(n(wt,r.inactiveValue),n(mn,r.inactiveValue),n(qr,r.inactiveValue)),xe(_,T=>{var M;d.value.checked=T,r.validateEvent&&((M=i==null?void 0:i.validate)==null||M.call(i,"change").catch(A=>void 0))});const w=()=>{const T=_.value?r.inactiveValue:r.activeValue;n(wt,T),n(mn,T),n(qr,T),Ue(()=>{d.value.checked=_.value})},C=()=>{if(c.value)return;const{beforeChange:T}=r;if(!T){w();return}const M=T();[Pv(M),Un(M)].includes(!0)||jn(vx,"beforeChange must return type `Promise<boolean>` or `boolean`"),Pv(M)?M.then(k=>{k&&w()}).catch(k=>{}):M&&w()},S=P(()=>s.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),x=()=>{var T,M;(M=(T=d.value)==null?void 0:T.focus)==null||M.call(T)};return yt(()=>{d.value.checked=_.value}),t({focus:x,checked:_}),(T,M)=>(R(),K("div",{class:V(y(v)),style:Ye(y(S)),onClick:tt(C,["prevent"])},[Y("input",{id:y(u),ref_key:"input",ref:d,class:V(y(s).e("input")),type:"checkbox",role:"switch","aria-checked":y(_),"aria-disabled":y(c),name:T.name,"true-value":T.activeValue,"false-value":T.inactiveValue,disabled:y(c),tabindex:T.tabindex,onChange:w,onKeydown:Ft(C,["enter"])},null,42,Wxe),!T.inlinePrompt&&(T.inactiveIcon||T.inactiveText)?(R(),K("span",{key:0,class:V(y(p))},[T.inactiveIcon?(R(),ce(y(Ke),{key:0},{default:re(()=>[(R(),ce(Ct(T.inactiveIcon)))]),_:1})):se("v-if",!0),!T.inactiveIcon&&T.inactiveText?(R(),K("span",{key:1,"aria-hidden":y(_)},De(T.inactiveText),9,Kxe)):se("v-if",!0)],2)):se("v-if",!0),Y("span",{ref_key:"core",ref:h,class:V(y(s).e("core")),style:Ye(y(m))},[T.inlinePrompt?(R(),K("div",{key:0,class:V(y(s).e("inner"))},[T.activeIcon||T.inactiveIcon?(R(),ce(y(Ke),{key:0,class:V(y(s).is("icon"))},{default:re(()=>[(R(),ce(Ct(y(_)?T.activeIcon:T.inactiveIcon)))]),_:1},8,["class"])):T.activeText||T.inactiveText?(R(),K("span",{key:1,class:V(y(s).is("text")),"aria-hidden":!y(_)},De(y(_)?T.activeText:T.inactiveText),11,Uxe)):se("v-if",!0)],2)):se("v-if",!0),Y("div",{class:V(y(s).e("action"))},[T.loading?(R(),ce(y(Ke),{key:0,class:V(y(s).is("loading"))},{default:re(()=>[q(y(Al))]),_:1},8,["class"])):T.activeActionIcon&&y(_)?(R(),ce(y(Ke),{key:1},{default:re(()=>[(R(),ce(Ct(T.activeActionIcon)))]),_:1})):T.inactiveActionIcon&&!y(_)?(R(),ce(y(Ke),{key:2},{default:re(()=>[(R(),ce(Ct(T.inactiveActionIcon)))]),_:1})):se("v-if",!0)],2)],6),!T.inlinePrompt&&(T.activeIcon||T.activeText)?(R(),K("span",{key:1,class:V(y(g))},[T.activeIcon?(R(),ce(y(Ke),{key:0},{default:re(()=>[(R(),ce(Ct(T.activeIcon)))]),_:1})):se("v-if",!0),!T.activeIcon&&T.activeText?(R(),K("span",{key:1,"aria-hidden":!y(_)},De(T.activeText),9,Yxe)):se("v-if",!0)],2)):se("v-if",!0)],14,Gxe))}});var Xxe=Pe(qxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const Zxe=_t(Xxe);/*!
  53. * escape-html
  54. * Copyright(c) 2012-2013 TJ Holowaychuk
  55. * Copyright(c) 2015 Andreas Lubbe
  56. * Copyright(c) 2015 Tiancheng "Timothy" Gu
  57. * MIT Licensed
  58. */var Jxe=/["'&<>]/,Qxe=e2e;function e2e(e){var t=""+e,n=Jxe.exec(t);if(!n)return t;var r,a="",i=0,o=0;for(i=n.index;i<t.length;i++){switch(t.charCodeAt(i)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}o!==i&&(a+=t.substring(o,i)),o=i+1,a+=r}return o!==i?a+t.substring(o,i):a}const t2e=ko(Qxe),R_=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},n2e=function(e,t,n,r,a){if(!t&&!r&&(!a||Array.isArray(a)&&!a.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=r?null:function(s,l){return a?(Array.isArray(a)||(a=[a]),a.map(u=>typeof u=="string"?Sn(s,u):u(s,l,e))):(t!=="$key"&&Mt(s)&&"$value"in s&&(s=s.$value),[Mt(s)?Sn(s,t):s])},o=function(s,l){if(r)return r(s.value,l.value);for(let u=0,c=s.key.length;u<c;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:i?i(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+n}).map(s=>s.value)},Z8=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},r2e=function(e,t){let n=null;for(let r=0;r<e.columns.length;r++){const a=e.columns[r];if(a.columnKey===t){n=a;break}}return n||jn("ElTable",`No column matching with column-key: ${t}`),n},lL=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?Z8(e,r[0]):null},mr=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let r=e;for(const a of n)r=r[a];return`${r}`}else if(typeof t=="function")return t.call(null,e)},Ou=function(e,t){const n={};return(e||[]).forEach((r,a)=>{n[mr(r,t)]={row:r,index:a}}),n};function a2e(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(Nt(t,r)){const a=t[r];typeof a<"u"&&(n[r]=a)}return n}function tk(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function J8(e){return e===""||e!==void 0&&(e=tk(e),Number.isNaN(e)&&(e=80)),e}function i2e(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function o2e(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function dv(e,t,n){let r=!1;const a=e.indexOf(t),i=a!==-1,o=s=>{s==="add"?e.push(t):e.splice(a,1),r=!0,He(t.children)&&t.children.forEach(l=>{dv(e,l,n??!i)})};return Un(n)?n&&!i?o("add"):!n&&i&&o("remove"):o(i?"remove":"add"),r}function s2e(e,t,n="children",r="hasChildren"){const a=o=>!(Array.isArray(o)&&o.length);function i(o,s,l){t(o,s,l),s.forEach(u=>{if(u[r]){t(u,null,l+1);return}const c=u[n];a(c)||i(u,c,l+1)})}e.forEach(o=>{if(o[r]){t(o,null,0);return}const s=o[n];a(s)||i(o,s,0)})}let $o;function l2e(e,t,n,r,a){a=R5({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=t2e(n),m.innerHTML=n,m.style.zIndex=String(r()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${i}-popper__arrow`,g}function u(){c&&c.update()}$o==null||$o(),$o=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",$o),$o=void 0}catch{}};let c=null,f=u,d=$o;a.enterable&&({onOpen:f,onClose:d}=vz({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:$o}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const v=[];if(a.offset&&v.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=a.popperOptions||{};return c=fz(t,h,{placement:a.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",$o),c}function Q8(e){return e.children?_re(e.children,Q8):[e]}function uL(e,t){return e+t.colSpan}const e6=(e,t,n,r)=>{let a=0,i=e;const o=n.states.columns.value;if(r){const l=Q8(r[e]);a=o.slice(0,o.indexOf(l[0])).reduce(uL,0),i=a+l.reduce(uL,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}:{}},nk=(e,t,n,r,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=e6(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 cL(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const rk=(e,t,n,r)=>{const{direction:a,start:i=0,after:o=0}=e6(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(cL,0):s.right=u.slice(o+1).reverse().reduce(cL,0),s},ud=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function u2e(e){const t=gt(),n=H(!1),r=H([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=Ou(r.value,u);r.value=l.reduce((f,d)=>{const h=mr(d,u);return c[h]&&f.push(d),f},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{dv(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=Ou(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?!!Ou(r.value,u)[mr(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function c2e(e){const t=gt(),n=H(null),r=H(null),a=u=>{t.store.assertRowKey(),n.value=u,o(u)},i=()=>{n.value=null},o=u=>{const{data:c,rowKey:f}=e;let d=null;f.value&&(d=(y(c)||[]).find(h=>mr(h,f.value)===u)),r.value=d,t.emit("current-change",r.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:i,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=r.value;if(u&&u!==c){r.value=u,t.emit("current-change",r.value,c);return}!u&&c&&(r.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],f=r.value;if(!c.includes(f)&&f){if(u){const d=mr(f,u);o(d)}else r.value=null;r.value===null&&t.emit("current-change",null,f)}else n.value&&(o(n.value),i())},states:{_currentRowKey:n,currentRow:r}}}function f2e(e){const t=H([]),n=H({}),r=H(16),a=H(!1),i=H({}),o=H("hasChildren"),s=H("children"),l=gt(),u=P(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return f(m)}),c=P(()=>{const m=e.rowKey.value,b=Object.keys(i.value),_={};return b.length&&b.forEach(w=>{if(i.value[w].length){const C={children:[]};i.value[w].forEach(S=>{const x=mr(S,m);C.children.push(x),S[o.value]&&!_[x]&&(_[x]={children:[]})}),_[w]=C}}),_}),f=m=>{const b=e.rowKey.value,_={};return s2e(m,(w,C,S)=>{const x=mr(w,b);Array.isArray(C)?_[x]={children:C.map(T=>mr(T,b)),level:S}:a.value&&(_[x]={children:[],lazy:!0,level:S})},s.value,o.value),_},d=(m=!1,b=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const w=u.value,C=c.value,S=Object.keys(w),x={};if(S.length){const T=y(n),M=[],A=(E,D)=>{if(m)return t.value?b||t.value.includes(D):!!(b||E!=null&&E.expanded);{const L=b||t.value&&t.value.includes(D);return!!(E!=null&&E.expanded||L)}};S.forEach(E=>{const D=T[E],L={...w[E]};if(L.expanded=A(D,E),L.lazy){const{loaded:B=!1,loading:N=!1}=D||{};L.loaded=!!B,L.loading=!!N,M.push(E)}x[E]=L});const k=Object.keys(C);a.value&&k.length&&M.length&&k.forEach(E=>{const D=T[E],L=C[E].children;if(M.includes(E)){if(x[E].children.length!==0)throw new Error("[ElTable]children must be an empty array.");x[E].children=L}else{const{loaded:B=!1,loading:N=!1}=D||{};x[E]={lazy:!0,loaded:!!B,loading:!!N,expanded:A(D,E),children:L,level:""}}})}n.value=x,(_=l.store)==null||_.updateTableScrollY()};xe(()=>t.value,()=>{d(!0)}),xe(()=>u.value,()=>{d()}),xe(()=>c.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,b)=>{l.store.assertRowKey();const _=e.rowKey.value,w=mr(m,_),C=w&&n.value[w];if(w&&C&&"expanded"in C){const S=C.expanded;b=typeof b>"u"?!C.expanded:b,n.value[w].expanded=b,S!==b&&l.emit("expand-change",m,b),l.store.updateTableScrollY()}},p=m=>{l.store.assertRowKey();const b=e.rowKey.value,_=mr(m,b),w=n.value[_];a.value&&w&&"loaded"in w&&!w.loaded?g(m,_,w):v(m,void 0)},g=(m,b,_)=>{const{load:w}=l.props;w&&!n.value[b].loaded&&(n.value[b].loading=!0,w(m,_,C=>{if(!Array.isArray(C))throw new TypeError("[ElTable] data must be an array");n.value[b].loading=!1,n.value[b].loaded=!0,n.value[b].expanded=!0,C.length&&(i.value[b]=C),l.emit("expand-change",m,!0)}))};return{loadData:g,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:t,treeData:n,indent:r,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:s}}}const d2e=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:n2e(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},xy=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,xy(n.children)):t.push(n)}),t};function h2e(){var e;const t=gt(),{size:n}=or((e=t.proxy)==null?void 0:e.$props),r=H(null),a=H([]),i=H([]),o=H(!1),s=H([]),l=H([]),u=H([]),c=H([]),f=H([]),d=H([]),h=H([]),v=H([]),p=[],g=H(0),m=H(0),b=H(0),_=H(!1),w=H([]),C=H(!1),S=H(!1),x=H(null),T=H({}),M=H(null),A=H(null),k=H(null),E=H(null),D=H(null);xe(a,()=>t.state&&O(!1),{deep:!0});const L=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},B=Qe=>{var ye;(ye=Qe.children)==null||ye.forEach(fe=>{fe.fixed=Qe.fixed,B(fe)})},N=()=>{s.value.forEach(ke=>{B(ke)}),c.value=s.value.filter(ke=>ke.fixed===!0||ke.fixed==="left"),f.value=s.value.filter(ke=>ke.fixed==="right"),c.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,c.value.unshift(s.value[0]));const Qe=s.value.filter(ke=>!ke.fixed);l.value=[].concat(c.value).concat(Qe).concat(f.value);const ye=xy(Qe),fe=xy(c.value),le=xy(f.value);g.value=ye.length,m.value=fe.length,b.value=le.length,u.value=[].concat(fe).concat(ye).concat(le),o.value=c.value.length>0||f.value.length>0},O=(Qe,ye=!1)=>{Qe&&N(),ye?t.state.doLayout():t.state.debouncedUpdateLayout()},$=Qe=>w.value.includes(Qe),I=()=>{_.value=!1,w.value.length&&(w.value=[],t.emit("selection-change",[]))},z=()=>{let Qe;if(r.value){Qe=[];const ye=Ou(w.value,r.value),fe=Ou(a.value,r.value);for(const le in ye)Nt(ye,le)&&!fe[le]&&Qe.push(ye[le].row)}else Qe=w.value.filter(ye=>!a.value.includes(ye));if(Qe.length){const ye=w.value.filter(fe=>!Qe.includes(fe));w.value=ye,t.emit("selection-change",ye.slice())}},G=()=>(w.value||[]).slice(),U=(Qe,ye=void 0,fe=!0)=>{if(dv(w.value,Qe,ye)){const ke=(w.value||[]).slice();fe&&t.emit("select",ke,Qe),t.emit("selection-change",ke)}},Z=()=>{var Qe,ye;const fe=S.value?!_.value:!(_.value||w.value.length);_.value=fe;let le=!1,ke=0;const te=(ye=(Qe=t==null?void 0:t.store)==null?void 0:Qe.states)==null?void 0:ye.rowKey.value;a.value.forEach((Ve,st)=>{const It=st+ke;x.value?x.value.call(null,Ve,It)&&dv(w.value,Ve,fe)&&(le=!0):dv(w.value,Ve,fe)&&(le=!0),ke+=Q(mr(Ve,te))}),le&&t.emit("selection-change",w.value?w.value.slice():[]),t.emit("select-all",w.value)},ae=()=>{const Qe=Ou(w.value,r.value);a.value.forEach(ye=>{const fe=mr(ye,r.value),le=Qe[fe];le&&(w.value[le.index]=ye)})},J=()=>{var Qe,ye,fe;if(((Qe=a.value)==null?void 0:Qe.length)===0){_.value=!1;return}let le;r.value&&(le=Ou(w.value,r.value));const ke=function(It){return le?!!le[mr(It,r.value)]:w.value.includes(It)};let te=!0,Ve=0,st=0;for(let It=0,zn=(a.value||[]).length;It<zn;It++){const Zn=(fe=(ye=t==null?void 0:t.store)==null?void 0:ye.states)==null?void 0:fe.rowKey.value,oa=It+st,pr=a.value[It],be=x.value&&x.value.call(null,pr,oa);if(ke(pr))Ve++;else if(!x.value||be){te=!1;break}st+=Q(mr(pr,Zn))}Ve===0&&(te=!1),_.value=te},Q=Qe=>{var ye;if(!t||!t.store)return 0;const{treeData:fe}=t.store.states;let le=0;const ke=(ye=fe.value[Qe])==null?void 0:ye.children;return ke&&(le+=ke.length,ke.forEach(te=>{le+=Q(te)})),le},ee=(Qe,ye)=>{Array.isArray(Qe)||(Qe=[Qe]);const fe={};return Qe.forEach(le=>{T.value[le.id]=ye,fe[le.columnKey||le.id]=ye}),fe},j=(Qe,ye,fe)=>{A.value&&A.value!==Qe&&(A.value.order=null),A.value=Qe,k.value=ye,E.value=fe},de=()=>{let Qe=y(i);Object.keys(T.value).forEach(ye=>{const fe=T.value[ye];if(!fe||fe.length===0)return;const le=Z8({columns:u.value},ye);le&&le.filterMethod&&(Qe=Qe.filter(ke=>fe.some(te=>le.filterMethod.call(null,te,ke,le))))}),M.value=Qe},ve=()=>{a.value=d2e(M.value,{sortingColumn:A.value,sortProp:k.value,sortOrder:E.value})},ie=(Qe=void 0)=>{Qe&&Qe.filter||de(),ve()},W=Qe=>{const{tableHeaderRef:ye}=t.refs;if(!ye)return;const fe=Object.assign({},ye.filterPanels),le=Object.keys(fe);if(le.length)if(typeof Qe=="string"&&(Qe=[Qe]),Array.isArray(Qe)){const ke=Qe.map(te=>r2e({columns:u.value},te));le.forEach(te=>{const Ve=ke.find(st=>st.id===te);Ve&&(Ve.filteredValue=[])}),t.store.commit("filterChange",{column:ke,values:[],silent:!0,multi:!0})}else le.forEach(ke=>{const te=u.value.find(Ve=>Ve.id===ke);te&&(te.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},X=()=>{A.value&&(j(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:oe,toggleRowExpansion:pe,updateExpandRows:Se,states:me,isRowExpanded:Ee}=u2e({data:a,rowKey:r}),{updateTreeExpandKeys:Ce,toggleTreeExpansion:we,updateTreeData:Te,loadOrToggle:$e,states:Be}=f2e({data:a,rowKey:r}),{updateCurrentRowData:We,updateCurrentRow:Ae,setCurrentRowKey:Fe,states:rt}=c2e({data:a,rowKey:r});return{assertRowKey:L,updateColumns:N,scheduleLayout:O,isSelected:$,clearSelection:I,cleanSelection:z,getSelectionRows:G,toggleRowSelection:U,_toggleAllSelection:Z,toggleAllSelection:null,updateSelectionByRowKey:ae,updateAllSelected:J,updateFilters:ee,updateCurrentRow:Ae,updateSort:j,execFilter:de,execSort:ve,execQuery:ie,clearFilter:W,clearSort:X,toggleRowExpansion:pe,setExpandRowKeysAdapter:Qe=>{oe(Qe),Ce(Qe)},setCurrentRowKey:Fe,toggleRowExpansionAdapter:(Qe,ye)=>{u.value.some(({type:le})=>le==="expand")?pe(Qe,ye):we(Qe,ye)},isRowExpanded:Ee,updateExpandRows:Se,updateCurrentRowData:We,loadOrToggle:$e,updateTreeData:Te,states:{tableSize:n,rowKey:r,data:a,_data:i,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:v,updateOrderFns:p,leafColumnsLength:g,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:b,isAllSelected:_,selection:w,reserveSelection:C,selectOnIndeterminate:S,selectable:x,filters:T,filteredData:M,sortingColumn:A,sortProp:k,sortOrder:E,hoverRow:D,...me,...Be,...rt}}}function px(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=px(n.children,t)),n)})}function gx(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&gx(t.children)}),e.sort((t,n)=>t.no-n.no)}function v2e(){const e=gt(),t=h2e();return{ns:Me("table"),...t,mutations:{setData(o,s){const l=y(o._data)!==s;o.data.value=s,o._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),y(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,s,l,u){const c=y(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=px(c,l)):(c.push(s),f=c),gx(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&&(gx(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,s,l,u){const c=y(o._columns)||[];if(l)l.children.splice(l.children.findIndex(d=>d.id===s.id),1),Ue(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=px(c,l);else{const d=c.indexOf(s);d>-1&&(c.splice(d,1),o._columns.value=c)}const f=o.updateOrderFns.indexOf(u);f>-1&&o.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const f=y(o.columns).find(d=>d.property===l);f&&(f.order=u,e.store.updateSort(f,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:c}=o,f=y(l),d=y(u),h=y(c);h===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const v={filter:!0};e.store.execQuery(v),(!s||!(s.silent||s.init))&&e.emit("sort-change",{column:f,prop:d,order:h}),e.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,f=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(o,s){e.store.toggleRowSelection(s),e.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){e.store.updateCurrentRow(s)}},commit:function(o,...s){const l=e.store.mutations;if(l[o])l[o].apply(e,[e.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){Ue(()=>e.layout.updateScrollY.apply(e.layout))}}}const hv={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 p2e(e,t){if(!e)throw new Error("Table is required.");const n=v2e();return n.toggleAllSelection=Qr(n._toggleAllSelection,10),Object.keys(hv).forEach(r=>{t6(n6(t,r),r,n)}),g2e(n,t),n}function g2e(e,t){Object.keys(hv).forEach(n=>{xe(()=>n6(t,n),r=>{t6(r,n,e)})})}function t6(e,t,n){let r=e,a=hv[t];typeof hv[t]=="object"&&(a=a.key,r=r||hv[t].default),n.states[a].value=r}function n6(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 m2e{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=H(null),this.scrollX=H(!1),this.scrollY=H(!1),this.bodyWidth=H(null),this.fixedWidth=H(null),this.rightFixedWidth=H(null),this.gutterWidth=0;for(const n in t)Nt(t,n)&&(cn(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const a=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,a!==r}return!1}setHeight(t,n="height"){if(!Vt)return;const r=this.table.vnode.el;if(t=i2e(t),this.height.value=Number(t),!r&&(t||t===0))return Ue(()=>this.setHeight(t,n));typeof t=="number"?(r.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(r.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?t.push.apply(t,r.columns):t.push(r)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!Vt)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const a=this.getFlattenColumns(),i=a.filter(l=>typeof l.width!="number");if(a.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(a.forEach(l=>{r+=Number(l.width||l.minWidth||80)}),r<=n){this.scrollX.value=!1;const l=n-r;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((d,h)=>d+Number(h.minWidth||80),0),c=l/u;let f=0;i.forEach((d,h)=>{if(h===0)return;const v=Math.floor(Number(d.minWidth||80)*c);f+=v,d.realWidth=Number(d.minWidth||80)+v}),i[0].realWidth=Number(i[0].minWidth||80)+l-f}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),r+=l.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(r=>{var a,i;switch(t){case"columns":(a=r.state)==null||a.onColumnsChange(this);break;case"scrollable":(i=r.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:y2e}=ui,b2e=ne({name:"ElTableFilterPanel",components:{ElCheckbox:ui,ElCheckboxGroup:y2e,ElScrollbar:hs,ElTooltip:ea,ElIcon:Ke,ArrowDown:Ml,ArrowUp:Yb},directives:{ClickOutside:pl},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=gt(),{t:n}=Ht(),r=Me("table-filter"),a=t==null?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const i=H(!1),o=H(null),s=P(()=>e.column&&e.column.filters),l=P({get:()=>{var w;return(((w=e.column)==null?void 0:w.filteredValue)||[])[0]},set:w=>{u.value&&(typeof w<"u"&&w!==null?u.value.splice(0,1,w):u.value.splice(0,1))}}),u=P({get(){return e.column?e.column.filteredValue||[]:[]},set(w){e.column&&e.upDataColumn("filteredValue",w)}}),c=P(()=>e.column?e.column.filterMultiple:!0),f=w=>w.value===l.value,d=()=>{i.value=!1},h=w=>{w.stopPropagation(),i.value=!i.value},v=()=>{i.value=!1},p=()=>{b(u.value),d()},g=()=>{u.value=[],b(u.value),d()},m=w=>{l.value=w,b(typeof w<"u"&&w!==null?u.value:[]),d()},b=w=>{e.store.commit("filterChange",{column:e.column,values:w}),e.store.updateAllSelected()};xe(i,w=>{e.column&&e.upDataColumn("filterOpened",w)},{immediate:!0});const _=P(()=>{var w,C;return(C=(w=o.value)==null?void 0:w.popperRef)==null?void 0:C.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:f,t:n,ns:r,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),_2e={key:0},w2e=["disabled"],S2e=["label","onClick"];function C2e(e,t,n,r,a,i){const o=ct("el-checkbox"),s=ct("el-checkbox-group"),l=ct("el-scrollbar"),u=ct("arrow-up"),c=ct("arrow-down"),f=ct("el-icon"),d=ct("el-tooltip"),h=Bv("click-outside");return R(),ce(d,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:re(()=>[e.multiple?(R(),K("div",_2e,[Y("div",{class:V(e.ns.e("content"))},[q(l,{"wrap-class":e.ns.e("wrap")},{default:re(()=>[q(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:V(e.ns.e("checkbox-group"))},{default:re(()=>[(R(!0),K(je,null,Ot(e.filters,v=>(R(),ce(o,{key:v.value,label:v.value},{default:re(()=>[Ut(De(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),Y("div",{class:V(e.ns.e("bottom"))},[Y("button",{class:V({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...v)=>e.handleConfirm&&e.handleConfirm(...v))},De(e.t("el.table.confirmFilter")),11,w2e),Y("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},De(e.t("el.table.resetFilter")),1)],2)])):(R(),K("ul",{key:1,class:V(e.ns.e("list"))},[Y("li",{class:V([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:t[3]||(t[3]=v=>e.handleSelect(null))},De(e.t("el.table.clearFilter")),3),(R(!0),K(je,null,Ot(e.filters,v=>(R(),K("li",{key:v.value,class:V([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},De(v.text),11,S2e))),128))],2))]),default:re(()=>[dt((R(),K("span",{class:V([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[q(f,null,{default:re(()=>[e.column.filterOpened?(R(),ce(u,{key:0})):(R(),ce(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var x2e=Pe(b2e,[["render",C2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function r6(e){const t=gt();Lb(()=>{n.value.addObserver(t)}),yt(()=>{r(n.value),a(n.value)}),cs(()=>{r(n.value),a(n.value)}),Tl(()=>{n.value.removeObserver(t)});const n=P(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),r=i=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,f=s.length;c<f;c++){const d=s[c],h=d.getAttribute("name"),v=u[h];v&&d.setAttribute("width",v.realWidth||v.width)}},a=i=>{var o,s;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const d=u[c];d.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",d.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:a}}const Ao=Symbol("ElTable");function T2e(e,t){const n=gt(),r=Ge(Ao),a=p=>{p.stopPropagation()},i=(p,g)=>{!g.filters&&g.sortable?v(p,g,!1):g.filterable&&!g.sortable&&a(p),r==null||r.emit("header-click",g,p)},o=(p,g)=>{r==null||r.emit("header-contextmenu",g,p)},s=H(null),l=H(!1),u=H({}),c=(p,g)=>{if(Vt&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const m=r;t("set-drag-visible",!0);const _=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,w=n.vnode.el.querySelector(`th.${g.id}`),C=w.getBoundingClientRect(),S=C.left-_+30;lo(w,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:C.right-_,startColumnLeft:C.left-_,tableLeft:_};const x=m==null?void 0:m.refs.resizeProxy;x.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const T=A=>{const k=A.clientX-u.value.startMouseLeft,E=u.value.startLeft+k;x.style.left=`${Math.max(S,E)}px`},M=()=>{if(l.value){const{startColumnLeft:A,startLeft:k}=u.value,D=Number.parseInt(x.style.left,10)-A;g.width=g.realWidth=D,m==null||m.emit("header-dragend",g.width,k-A,g,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",M),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ga(w,"noclick")},0)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",M)}},f=(p,g)=>{if(g.children&&g.children.length>0)return;const m=p.target;if(!ai(m))return;const b=m==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const _=b.getBoundingClientRect(),w=document.body.style;_.width>12&&_.right-p.pageX<8?(w.cursor="col-resize",Li(b,"is-sortable")&&(b.style.cursor="col-resize"),s.value=g):l.value||(w.cursor="",Li(b,"is-sortable")&&(b.style.cursor="pointer"),s.value=null)}},d=()=>{Vt&&(document.body.style.cursor="")},h=({order:p,sortOrders:g})=>{if(p==="")return g[0];const m=g.indexOf(p||null);return g[m>g.length-2?0:m+1]},v=(p,g,m)=>{var b;p.stopPropagation();const _=g.order===m?null:m||h(g),w=(b=p.target)==null?void 0:b.closest("th");if(w&&Li(w,"noclick")){ga(w,"noclick");return}if(!g.sortable)return;const C=e.store.states;let S=C.sortProp.value,x;const T=C.sortingColumn.value;(T!==g||T===g&&T.order===null)&&(T&&(T.order=null),C.sortingColumn.value=g,S=g.property),_?x=g.order=_:x=g.order=null,C.sortProp.value=S,C.sortOrder.value=x,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:v,handleFilterClick:a}}function M2e(e){const t=Ge(Ao),n=Me("table");return{getHeaderRowStyle:s=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:s})),l.join(" ")},getHeaderCellStyle:(s,l,u,c)=>{var f;let d=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};typeof d=="function"&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:c}));const h=rk(l,c.fixed,e.store,u);return ud(h,"left"),ud(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=nk(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 a6=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,a6(n.children))):t.push(n)}),t},k2e=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 a6(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 A2e(e){const t=Ge(Ao),n=P(()=>k2e(e.store.states.originColumns.value));return{isGroup:P(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var E2e=ne({name:"ElTableHeader",components:{ElCheckbox:ui},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=gt(),r=Ge(Ao),a=Me("table"),i=H({}),{onColumnsChange:o,onScrollableChange:s}=r6(r);yt(async()=>{await Ue(),await Ue();const{prop:S,order:x}=e.defaultSort;r==null||r.store.commit("sort",{prop:S,order:x,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=T2e(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:b}=M2e(e),{isGroup:_,toggleAllSelection:w,columnRows:C}=A2e(e);return n.state={onColumnsChange:o,onScrollableChange:s},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:s,columnRows:C,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:b,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v,isGroup:_,toggleAllSelection:w}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:v}=this;let p=1;return Ze("thead",{class:{[e.is("group")]:t}},n.map((g,m)=>Ze("tr",{class:i(m),key:m,style:o(m)},g.map((b,_)=>(b.rowSpan>p&&(p=b.rowSpan),Ze("th",{class:a(m,_,g,b),colspan:b.colSpan,key:`${b.id}-thead`,rowspan:b.rowSpan,style:r(m,_,g,b),onClick:w=>s(w,b),onContextmenu:w=>l(w,b),onMousedown:w=>u(w,b),onMousemove:w=>c(w,b),onMouseout:d},[Ze("div",{class:["cell",b.filteredValue&&b.filteredValue.length>0?"highlight":""]},[b.renderHeader?b.renderHeader({column:b,$index:_,store:h,_self:v}):b.label,b.sortable&&Ze("span",{onClick:w=>f(w,b),class:"caret-wrapper"},[Ze("i",{onClick:w=>f(w,b,"ascending"),class:"sort-caret ascending"}),Ze("i",{onClick:w=>f(w,b,"descending"),class:"sort-caret descending"})]),b.filterable&&Ze(x2e,{store:h,placement:b.filterPlacement||"bottom-start",column:b,upDataColumn:(w,C)=>{b[w]=C}})])]))))))}});function I2e(e){const t=Ge(Ao),n=H(""),r=H(Ze("div")),{nextZIndex:a}=Ed(),i=(v,p,g)=>{var m;const b=t,_=R_(v);let w;const C=(m=b==null?void 0:b.vnode.el)==null?void 0:m.dataset.prefix;_&&(w=lL({columns:e.store.states.columns.value},_,C),w&&(b==null||b.emit(`cell-${g}`,p,w,_,v))),b==null||b.emit(`row-${g}`,p,w,v)},o=(v,p)=>{i(v,p,"dblclick")},s=(v,p)=>{e.store.commit("setCurrentRow",p),i(v,p,"click")},l=(v,p)=>{i(v,p,"contextmenu")},u=Qr(v=>{e.store.commit("setHoverRow",v)},30),c=Qr(()=>{e.store.commit("setHoverRow",null)},30),f=v=>{const p=window.getComputedStyle(v,null),g=Number.parseInt(p.paddingLeft,10)||0,m=Number.parseInt(p.paddingRight,10)||0,b=Number.parseInt(p.paddingTop,10)||0,_=Number.parseInt(p.paddingBottom,10)||0;return{left:g,right:m,top:b,bottom:_}};return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(v,p,g)=>{var m;const b=t,_=R_(v),w=(m=b==null?void 0:b.vnode.el)==null?void 0:m.dataset.prefix;if(_){const O=lL({columns:e.store.states.columns.value},_,w),$=b.hoverState={cell:_,column:O,row:p};b==null||b.emit("cell-mouse-enter",$.row,$.column,$.cell,v)}if(!g)return;const C=v.target.querySelector(".cell");if(!(Li(C,`${w}-tooltip`)&&C.childNodes.length))return;const S=document.createRange();S.setStart(C,0),S.setEnd(C,C.childNodes.length);let x=S.getBoundingClientRect().width,T=S.getBoundingClientRect().height;x-Math.floor(x)<.001&&(x=Math.floor(x)),T-Math.floor(T)<.001&&(T=Math.floor(T));const{top:k,left:E,right:D,bottom:L}=f(C),B=E+D,N=k+L;(x+B>C.offsetWidth||T+N>C.offsetHeight||C.scrollWidth>C.offsetWidth)&&l2e(t==null?void 0:t.refs.tableWrapper,_,_.innerText||_.textContent,a,g)},handleCellMouseLeave:v=>{if(!R_(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 D2e(e){const t=Ge(Ao),n=Me("table");return{getRowStyle:(u,c)=>{const f=t==null?void 0:t.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&c%2===1&&f.push(n.em("row","striped"));const d=t==null?void 0:t.props.rowClassName;return typeof d=="string"?f.push(d):typeof d=="function"&&f.push(d.call(null,{row:u,rowIndex:c})),f},getCellStyle:(u,c,f,d)=>{const h=t==null?void 0:t.props.cellStyle;let v=h??{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const p=rk(c,e==null?void 0:e.fixed,e.store);return ud(p,"left"),ud(p,"right"),Object.assign({},v,p)},getCellClass:(u,c,f,d,h)=>{const v=nk(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 P2e(e){const t=Ge(Ao),n=Me("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=I2e(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=D2e(e),b=P(()=>e.store.states.columns.value.findIndex(({type:x})=>x==="default")),_=(x,T)=>{const M=t.props.rowKey;return M?mr(x,M):T},w=(x,T,M,A=!1)=>{const{tooltipEffect:k,tooltipOptions:E,store:D}=e,{indent:L,columns:B}=D.states,N=h(x,T);let O=!0;return M&&(N.push(n.em("row",`level-${M.level}`)),O=M.display),Ze("tr",{style:[O?null:{display:"none"},d(x,T)],class:N,key:_(x,T),onDblclick:I=>r(I,x),onClick:I=>a(I,x),onContextmenu:I=>i(I,x),onMouseenter:()=>o(T),onMouseleave:s},B.value.map((I,z)=>{const{rowspan:G,colspan:U}=g(x,I,T,z);if(!G||!U)return null;const Z=Object.assign({},I);Z.realWidth=m(B.value,U,z);const ae={store:e.store,_self:e.context||t,column:Z,row:x,$index:T,cellIndex:z,expanded:A};z===b.value&&M&&(ae.treeNode={indent:M.level*L.value,level:M.level},typeof M.expanded=="boolean"&&(ae.treeNode.expanded=M.expanded,"loading"in M&&(ae.treeNode.loading=M.loading),"noLazyChildren"in M&&(ae.treeNode.noLazyChildren=M.noLazyChildren)));const J=`${T},${z}`,Q=Z.columnKey||Z.rawColumnKey||"",ee=C(z,I,ae),j=I.showOverflowTooltip&&R5({effect:k},E,I.showOverflowTooltip);return Ze("td",{style:v(T,z,x,I),class:p(T,z,x,I,U-1),key:`${Q}${J}`,rowspan:G,colspan:U,onMouseenter:de=>l(de,x,j),onMouseleave:u},[ee])}))},C=(x,T,M)=>T.renderCell(M);return{wrappedRowRender:(x,T)=>{const M=e.store,{isRowExpanded:A,assertRowKey:k}=M,{treeData:E,lazyTreeNodeMap:D,childrenColumnName:L,rowKey:B}=M.states,N=M.states.columns.value;if(N.some(({type:$})=>$==="expand")){const $=A(x),I=w(x,T,void 0,$),z=t.renderExpanded;return $?z?[[I,Ze("tr",{key:`expanded-row__${I.key}`},[Ze("td",{colspan:N.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[z({row:x,$index:T,store:M,expanded:$})])])]]:(console.error("[Element Error]renderExpanded is required."),I):[[I]]}else if(Object.keys(E.value).length){k();const $=mr(x,B.value);let I=E.value[$],z=null;I&&(z={expanded:I.expanded,level:I.level,display:!0},typeof I.lazy=="boolean"&&(typeof I.loaded=="boolean"&&I.loaded&&(z.noLazyChildren=!(I.children&&I.children.length)),z.loading=I.loading));const G=[w(x,T,z)];if(I){let U=0;const Z=(J,Q)=>{J&&J.length&&Q&&J.forEach(ee=>{const j={display:Q.display&&Q.expanded,level:Q.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=mr(ee,B.value);if(de==null)throw new Error("For nested data item, row-key is required.");if(I={...E.value[de]},I&&(j.expanded=I.expanded,I.level=I.level||j.level,I.display=!!(I.expanded&&j.display),typeof I.lazy=="boolean"&&(typeof I.loaded=="boolean"&&I.loaded&&(j.noLazyChildren=!(I.children&&I.children.length)),j.loading=I.loading)),U++,G.push(w(ee,T+U,j)),I){const ve=D.value[de]||ee[L.value];Z(ve,I)}})};I.display=!0;const ae=D.value[$]||x[L.value];Z(ae,I)}return G}else return w(x,T,void 0)},tooltipContent:c,tooltipTrigger:f}}const L2e={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 R2e=ne({name:"ElTableBody",props:L2e,setup(e){const t=gt(),n=Ge(Ao),r=Me("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=P2e(e),{onColumnsChange:s,onScrollableChange:l}=r6(n);return xe(e.store.states.hoverRow,(u,c)=>{!e.store.states.isComplex.value||!Vt||td(()=>{const f=t==null?void 0:t.vnode.el,d=Array.from((f==null?void 0:f.children)||[]).filter(p=>p==null?void 0:p.classList.contains(`${r.e("row")}`)),h=d[c],v=d[u];h&&ga(h,"hover-row"),v&&lo(v,"hover-row")})}),Tl(()=>{var u;(u=$o)==null||u()}),{ns:r,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return Ze("tbody",{tabIndex:-1},[n.reduce((r,a)=>r.concat(e(a,r.length)),[])])}});function ak(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(a=>a.width===void 0)&&(n=[]);const r=a=>{const i={key:`${e.tableLayout}_${a.id}`,style:{},name:void 0};return t?i.style={width:`${a.width}px`}:i.name=a.id,i};return Ze("colgroup",{},n.map(a=>Ze("col",r(a))))}ak.props=["columns","tableLayout"];function O2e(){const e=Ge(Ao),t=e==null?void 0:e.store,n=P(()=>t.states.fixedLeafColumnsLength.value),r=P(()=>t.states.rightFixedColumns.value.length),a=P(()=>t.states.columns.value.length),i=P(()=>t.states.fixedColumns.value.length),o=P(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:t.states.columns}}function $2e(e){const{columns:t}=O2e(),n=Me("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[n.e("cell"),s.id,s.align,s.labelClassName,...nk(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=rk(o,i.fixed,e.store);return ud(s,"left"),ud(s,"right"),s},columns:t}}var N2e=ne({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=$2e(e);return{ns:Me("table"),getCellClasses:t,getCellStyles:n,columns:r}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:r,sumText:a,ns:i}=this,o=this.store.states.data.value;let s=[];return r?s=r({columns:e,data:o}):e.forEach((l,u)=>{if(u===0){s[u]=a;return}const c=o.map(v=>Number(v[l.property])),f=[];let d=!0;c.forEach(v=>{if(!Number.isNaN(+v)){d=!1;const p=`${v}`.split(".")[1];f.push(p?p.length:0)}});const h=Math.max.apply(null,f);d?s[u]="":s[u]=c.reduce((v,p)=>{const g=Number(p);return Number.isNaN(+g)?v:Number.parseFloat((v+p).toFixed(Math.min(h,20)))},0)}),Ze("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[ak({columns:e}),Ze("tbody",[Ze("tr",{},[...e.map((l,u)=>Ze("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,u),style:t(l,u)},[Ze("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function B2e(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 V2e(e,t,n,r){const a=H(!1),i=H(null),o=H(!1),s=I=>{o.value=I},l=H({width:null,height:null,headerHeight:null}),u=H(!1),c={display:"inline-block",verticalAlign:"middle"},f=H(),d=H(0),h=H(0),v=H(0),p=H(0),g=H(0);Da(()=>{t.setHeight(e.height)}),Da(()=>{t.setMaxHeight(e.maxHeight)}),xe(()=>[e.currentRowKey,n.states.rowKey],([I,z])=>{!y(z)||!y(I)||n.setCurrentRowKey(`${I}`)},{immediate:!0}),xe(()=>e.data,I=>{r.store.commit("setData",I)},{immediate:!0,deep:!0}),Da(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const m=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},b=(I,z)=>{const{pixelX:G,pixelY:U}=z;Math.abs(G)>=Math.abs(U)&&(r.refs.bodyWrapper.scrollLeft+=z.pixelX/5)},_=P(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),w=P(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),C=()=>{_.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(M)};yt(async()=>{await Ue(),n.updateColumns(),A(),requestAnimationFrame(C);const I=r.vnode.el,z=r.refs.headerWrapper;e.flexible&&I&&I.parentElement&&(I.parentElement.style.minWidth="0"),l.value={width:f.value=I.offsetWidth,height:I.offsetHeight,headerHeight:e.showHeader&&z?z.offsetHeight:null},n.states.columns.value.forEach(G=>{G.filteredValue&&G.filteredValue.length&&r.store.commit("filterChange",{column:G,values:G.filteredValue,silent:!0})}),r.$ready=!0});const S=(I,z)=>{if(!I)return;const G=Array.from(I.classList).filter(U=>!U.startsWith("is-scrolling-"));G.push(t.scrollX.value?z:"is-scrolling-none"),I.className=G.join(" ")},x=I=>{const{tableWrapper:z}=r.refs;S(z,I)},T=I=>{const{tableWrapper:z}=r.refs;return!!(z&&z.classList.contains(I))},M=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const Q="is-scrolling-none";T(Q)||x(Q);return}const I=r.refs.scrollBarRef.wrapRef;if(!I)return;const{scrollLeft:z,offsetWidth:G,scrollWidth:U}=I,{headerWrapper:Z,footerWrapper:ae}=r.refs;Z&&(Z.scrollLeft=z),ae&&(ae.scrollLeft=z);const J=U-G-1;z>=J?x("is-scrolling-right"):x(z===0?"is-scrolling-left":"is-scrolling-middle")},A=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&bn(r.refs.scrollBarRef.wrapRef,"scroll",M,{passive:!0}),e.fit?$r(r.vnode.el,k):bn(window,"resize",k),$r(r.refs.bodyWrapper,()=>{var I,z;k(),(z=(I=r.refs)==null?void 0:I.scrollBarRef)==null||z.update()}))},k=()=>{var I,z,G,U;const Z=r.vnode.el;if(!r.$ready||!Z)return;let ae=!1;const{width:J,height:Q,headerHeight:ee}=l.value,j=f.value=Z.offsetWidth;J!==j&&(ae=!0);const de=Z.offsetHeight;(e.height||_.value)&&Q!==de&&(ae=!0);const ve=e.tableLayout==="fixed"?r.refs.headerWrapper:(I=r.refs.tableHeaderRef)==null?void 0:I.$el;e.showHeader&&(ve==null?void 0:ve.offsetHeight)!==ee&&(ae=!0),d.value=((z=r.refs.tableWrapper)==null?void 0:z.scrollHeight)||0,v.value=(ve==null?void 0:ve.scrollHeight)||0,p.value=((G=r.refs.footerWrapper)==null?void 0:G.offsetHeight)||0,g.value=((U=r.refs.appendWrapper)==null?void 0:U.offsetHeight)||0,h.value=d.value-v.value-p.value-g.value,ae&&(l.value={width:j,height:de,headerHeight:e.showHeader&&(ve==null?void 0:ve.offsetHeight)||0},C())},E=qn(),D=P(()=>{const{bodyWidth:I,scrollY:z,gutterWidth:G}=t;return I.value?`${I.value-(z.value?G:0)}px`:""}),L=P(()=>e.maxHeight?"fixed":e.tableLayout),B=P(()=>{if(e.data&&e.data.length)return null;let I="100%";e.height&&h.value&&(I=`${h.value}px`);const z=f.value;return{width:z?`${z}px`:"",height:I}}),N=P(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),O=P(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`}:{maxHeight:`${e.maxHeight-v.value-p.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:m,handleHeaderFooterMousewheel:b,tableSize:E,emptyBlockStyle:B,handleFixedMousewheel:(I,z)=>{const G=r.refs.bodyWrapper;if(Math.abs(z.spinY)>0){const U=G.scrollTop;z.pixelY<0&&U!==0&&I.preventDefault(),z.pixelY>0&&G.scrollHeight-G.clientHeight>U&&I.preventDefault(),G.scrollTop+=Math.ceil(z.pixelY/5)}else G.scrollLeft+=Math.ceil(z.pixelX/5)},resizeProxyVisible:o,bodyWidth:D,resizeState:l,doLayout:C,tableBodyStyles:w,tableLayout:L,scrollbarViewStyle:c,tableInnerStyle:N,scrollbarStyle:O}}function z2e(e){const t=H(),n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(s=>s())}),t.value.observe(a,i)};yt(()=>{n()}),Tl(()=>{var r;(r=t.value)==null||r.disconnect()})}var F2e={data:{type:Array,default:()=>[]},size:Sr,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};const H2e=()=>{const e=H(),t=(i,o)=>{const s=e.value;s&&s.scrollTo(i,o)},n=(i,o)=>{const s=e.value;s&&at(o)&&["Top","Left"].includes(i)&&s[`setScroll${i}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let G2e=1;const W2e=ne({name:"ElTable",directives:{Mousewheel:Ave},components:{TableHeader:E2e,TableBody:R2e,TableFooter:N2e,ElScrollbar:hs,hColgroup:ak},props:F2e,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=Ht(),n=Me("table"),r=gt();Et(Ao,r);const a=p2e(r,e);r.store=a;const i=new m2e({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const o=P(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=B2e(a),{isHidden:g,renderExpanded:m,setDragVisible:b,isGroup:_,handleMouseLeave:w,handleHeaderFooterMousewheel:C,tableSize:S,emptyBlockStyle:x,handleFixedMousewheel:T,resizeProxyVisible:M,bodyWidth:A,resizeState:k,doLayout:E,tableBodyStyles:D,tableLayout:L,scrollbarViewStyle:B,tableInnerStyle:N,scrollbarStyle:O}=V2e(e,i,a,r),{scrollBarRef:$,scrollTo:I,setScrollLeft:z,setScrollTop:G}=H2e(),U=Qr(E,50),Z=`${n.namespace.value}-table_${G2e++}`;r.tableId=Z,r.state={isGroup:_,resizeState:k,doLayout:E,debouncedUpdateLayout:U};const ae=P(()=>e.sumText||t("el.table.sumText")),J=P(()=>e.emptyText||t("el.table.emptyText"));return z2e(r),{ns:n,layout:i,store:a,handleHeaderFooterMousewheel:C,handleMouseLeave:w,tableId:Z,tableSize:S,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:M,resizeState:k,isGroup:_,bodyWidth:A,tableBodyStyles:D,emptyBlockStyle:x,debouncedUpdateLayout:U,handleFixedMousewheel:T,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:E,sort:p,t,setDragVisible:b,context:r,computedSumText:ae,computedEmptyText:J,tableLayout:L,scrollbarViewStyle:B,tableInnerStyle:N,scrollbarStyle:O,scrollBarRef:$,scrollTo:I,setScrollLeft:z,setScrollTop:G}}}),K2e=["data-prefix"],U2e={ref:"hiddenColumns",class:"hidden-columns"};function Y2e(e,t,n,r,a,i){const o=ct("hColgroup"),s=ct("table-header"),l=ct("table-body"),u=ct("el-scrollbar"),c=ct("table-footer"),f=Bv("mousewheel");return R(),K("div",{ref:"tableWrapper",class:V([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:Ye(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...d)=>e.handleMouseLeave&&e.handleMouseLeave(...d))},[Y("div",{class:V(e.ns.e("inner-wrapper")),style:Ye(e.tableInnerStyle)},[Y("div",U2e,[_e(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?dt((R(),K("div",{key:0,ref:"headerWrapper",class:V(e.ns.e("header-wrapper"))},[Y("table",{ref:"tableHeader",class:V(e.ns.e("header")),style:Ye(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[q(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),q(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):se("v-if",!0),Y("div",{ref:"bodyWrapper",class:V(e.ns.e("body-wrapper"))},[q(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:re(()=>[Y("table",{ref:"tableBody",class:V(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:Ye({width:e.bodyWidth,tableLayout:e.tableLayout})},[q(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(R(),ce(s,{key:0,ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):se("v-if",!0),q(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(R(),K("div",{key:0,ref:"emptyBlock",style:Ye(e.emptyBlockStyle),class:V(e.ns.e("empty-block"))},[Y("span",{class:V(e.ns.e("empty-text"))},[_e(e.$slots,"empty",{},()=>[Ut(De(e.computedEmptyText),1)])],2)],6)):se("v-if",!0),e.$slots.append?(R(),K("div",{key:1,ref:"appendWrapper",class:V(e.ns.e("append-wrapper"))},[_e(e.$slots,"append")],2)):se("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?dt((R(),K("div",{key:1,ref:"footerWrapper",class:V(e.ns.e("footer-wrapper"))},[q(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:Ye(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Kt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):se("v-if",!0),e.border||e.isGroup?(R(),K("div",{key:2,class:V(e.ns.e("border-left-patch"))},null,2)):se("v-if",!0)],6),dt(Y("div",{ref:"resizeProxy",class:V(e.ns.e("column-resize-proxy"))},null,2),[[Kt,e.resizeProxyVisible]])],46,K2e)}var j2e=Pe(W2e,[["render",Y2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const q2e={selection:"table-column--selection",expand:"table__expand-column"},X2e={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=>q2e[e]||"",J2e={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return Ze(ui,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:r}){return Ze(ui,{disabled:t.selectable?!t.selectable.call(null,e,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const r=e.index;return typeof r=="number"?n=t+r:typeof r=="function"&&(n=r(t)),Ze("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:r}=t,a=[r.e("expand-icon")];return n&&a.push(r.em("expand-icon","expanded")),Ze("div",{class:a,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ze(Ke,null,{default:()=>[Ze(jr)]})]})},sortable:!1,resizable:!1}};function Q2e({row:e,column:t,$index:n}){var r;const a=t.property,i=a&&cy(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 eTe({row:e,treeNode:t,store:n},r=!1){const{ns:a}=n;if(!t)return r?[Ze("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(Ze("span",{class:a.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[a.e("expand-icon"),t.expanded?a.em("expand-icon","expanded"):""];let l=jr;t.loading&&(l=Al),i.push(Ze("div",{class:s,onClick:o},{default:()=>[Ze(Ke,{class:{[a.is("loading")]:t.loading}},{default:()=>[Ze(l)]})]}))}else i.push(Ze("span",{class:a.e("placeholder")}));return i}function fL(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function tTe(e,t){const n=gt();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=fL(i,o);Object.keys(s).forEach(l=>{const u=o[l];Nt(t,u)&&xe(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=tk(c)),u==="minWidth"&&l==="realMinWidth"&&(f=J8(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=fL(i,o);Object.keys(s).forEach(l=>{const u=o[l];Nt(t,u)&&xe(()=>t[u],c=>{n.columnConfig.value[l]=c})})}}}function nTe(e,t,n){const r=gt(),a=H(""),i=H(!1),o=H(),s=H(),l=Me("table");Da(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),Da(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=P(()=>{let w=r.vnode.vParent||r.parent;for(;w&&!w.tableId&&!w.columnId;)w=w.vnode.vParent||w.parent;return w}),c=P(()=>{const{store:w}=r.parent;if(!w)return!1;const{treeData:C}=w.states,S=C.value;return S&&Object.keys(S).length>0}),f=H(tk(e.width)),d=H(J8(e.minWidth)),h=w=>(f.value&&(w.width=f.value),d.value&&(w.minWidth=d.value),!f.value&&d.value&&(w.width=void 0),w.minWidth||(w.minWidth=80),w.realWidth=Number(w.width===void 0?w.minWidth:w.width),w),v=w=>{const C=w.type,S=J2e[C]||{};Object.keys(S).forEach(T=>{const M=S[T];T!=="className"&&M!==void 0&&(w[T]=M)});const x=Z2e(C);if(x){const T=`${y(l.namespace)}-${x}`;w.className=w.className?`${w.className} ${T}`:T}return w},p=w=>{Array.isArray(w)?w.forEach(S=>C(S)):C(w);function C(S){var x;((x=S==null?void 0:S.type)==null?void 0:x.name)==="ElTableColumn"&&(S.vParent=r)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:w=>{e.renderHeader||w.type!=="selection"&&(w.renderHeader=S=>{r.columnConfig.value.label;const x=t.header;return x?x(S):w.label});let C=w.renderCell;return w.type==="expand"?(w.renderCell=S=>Ze("div",{class:"cell"},[C(S)]),n.value.renderExpanded=S=>t.default?t.default(S):t.default):(C=C||Q2e,w.renderCell=S=>{let x=null;if(t.default){const D=t.default(S);x=D.some(L=>L.type!==Yr)?D:C(S)}else x=C(S);const{columns:T}=n.value.store.states,M=T.value.findIndex(D=>D.type==="default"),A=c.value&&S.cellIndex===M,k=eTe(S,A),E={class:"cell",style:{}};return w.showOverflowTooltip&&(E.class=`${E.class} ${y(l.namespace)}-tooltip`,E.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),p(x),Ze("div",E,[k,x])}),w},getPropsData:(...w)=>w.reduce((C,S)=>(Array.isArray(S)&&S.forEach(x=>{C[x]=e[x]}),C),{}),getColumnElIndex:(w,C)=>Array.prototype.indexOf.call(w,C),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var rTe={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 aTe=1;var i6=ne({name:"ElTableColumn",components:{ElCheckbox:ui},props:rTe,setup(e,{slots:t}){const n=gt(),r=H({}),a=P(()=>{let _=n.parent;for(;_&&!_.tableId;)_=_.parent;return _}),{registerNormalWatchers:i,registerComplexWatchers:o}=tTe(a,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g,updateColumnOrder:m}=nTe(e,t,a),b=c.value;s.value=`${b.tableId||b.columnId}_column_${aTe++}`,Lb(()=>{l.value=a.value!==b;const _=e.type||"default",w=e.sortable===""?!0:e.sortable,C=er(e.showOverflowTooltip)?b.props.showOverflowTooltip:e.showOverflowTooltip,S={...X2e[_],id:s.value,type:_,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:C,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:w,index:e.index,rawColumnKey:n.vnode.key};let k=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);k=a2e(S,k),k=o2e(h,f,d)(k),r.value=k,i(),o()}),yt(()=>{var _;const w=c.value,C=l.value?w.vnode.el.children:(_=w.refs.hiddenColumns)==null?void 0:_.children,S=()=>p(C||[],n.vnode.el);r.value.getColumnIndex=S,S()>-1&&a.value.store.commit("insertColumn",r.value,l.value?w.columnConfig.value:null,m)}),wn(()=>{a.value.store.commit("removeColumn",r.value,l.value?b.columnConfig.value:null,m)}),n.columnId=s.value,n.columnConfig=r},render(){var e,t,n;try{const r=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),a=[];if(Array.isArray(r))for(const o of r)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?a.push(o):o.type===je&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!lt(s==null?void 0:s.children)&&a.push(s)});return Ze("div",a)}catch{return Ze("div",[])}}});const iTe=_t(j2e,{TableColumn:i6}),oTe=Dn(i6);var op=(e=>(e.ASC="asc",e.DESC="desc",e))(op||{}),sp=(e=>(e.CENTER="center",e.RIGHT="right",e))(sp||{}),o6=(e=>(e.LEFT="left",e.RIGHT="right",e))(o6||{});const mx={asc:"desc",desc:"asc"},lp=Symbol("placeholder"),sTe=(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 lTe(e,t,n){const r=P(()=>y(t).filter(p=>!p.hidden)),a=P(()=>y(r).filter(p=>p.fixed==="left"||p.fixed===!0)),i=P(()=>y(r).filter(p=>p.fixed==="right")),o=P(()=>y(r).filter(p=>!p.fixed)),s=P(()=>{const p=[];return y(a).forEach(g=>{p.push({...g,placeholderSign:lp})}),y(o).forEach(g=>{p.push(g)}),y(i).forEach(g=>{p.push({...g,placeholderSign:lp})}),p}),l=P(()=>y(a).length||y(i).length),u=P(()=>y(t).reduce((g,m)=>(g[m.key]=sTe(m,y(n),e.fixed),g),{})),c=P(()=>y(r).reduce((p,g)=>p+g.width,0)),f=p=>y(t).find(g=>g.key===p),d=p=>y(u)[p],h=(p,g)=>{p.width=g};function v(p){var g;const{key:m}=p.currentTarget.dataset;if(!m)return;const{sortState:b,sortBy:_}=e;let w=op.ASC;Mt(b)?w=mx[b[m]]:w=mx[_.order],(g=e.onColumnSort)==null||g.call(e,{column:f(m),key:m,order:w})}return{columns:t,columnsStyles:u,columnsTotalWidth:c,fixedColumnsOnLeft:a,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:s,normalColumns:o,visibleColumns:r,getColumn:f,getColumnStyle:d,updateColumnWidth:h,onColumnSorted:v}}const uTe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const i=H({scrollLeft:0,scrollTop:0});function o(h){var v,p,g;const{scrollTop:m}=h;(v=t.value)==null||v.scrollTo(h),(p=n.value)==null||p.scrollToTop(m),(g=r.value)==null||g.scrollToTop(m)}function s(h){i.value=h,o(h)}function l(h){i.value.scrollTop=h,o(y(i))}function u(h){var v,p;i.value.scrollLeft=h,(p=(v=t.value)==null?void 0:v.scrollTo)==null||p.call(v,y(i))}function c(h){var v;s(h),(v=e.onScroll)==null||v.call(e,h)}function f({scrollTop:h}){const{scrollTop:v}=y(i);h!==v&&l(h)}function d(h,v="auto"){var p;(p=t.value)==null||p.scrollToRow(h,v)}return xe(()=>y(i).scrollTop,(h,v)=>{h>v&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},cTe=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r})=>{const a=gt(),{emit:i}=a,o=un(!1),s=un(null),l=H(e.defaultExpandedRowKeys||[]),u=H(-1),c=un(null),f=H({}),d=H({}),h=un({}),v=un({}),p=un({}),g=P(()=>at(e.estimatedRowHeight));function m(T){var M;(M=e.onRowsRendered)==null||M.call(e,T),T.rowCacheEnd>y(u)&&(u.value=T.rowCacheEnd)}function b({hovered:T,rowKey:M}){s.value=T?M:null}function _({expanded:T,rowData:M,rowIndex:A,rowKey:k}){var E,D;const L=[...y(l)],B=L.indexOf(k);T?B===-1&&L.push(k):B>-1&&L.splice(B,1),l.value=L,i("update:expandedRowKeys",L),(E=e.onRowExpand)==null||E.call(e,{expanded:T,rowData:M,rowIndex:A,rowKey:k}),(D=e.onExpandedRowsChange)==null||D.call(e,L)}const w=Qr(()=>{var T,M,A,k;o.value=!0,f.value={...y(f),...y(d)},C(y(c),!1),d.value={},c.value=null,(T=t.value)==null||T.forceUpdate(),(M=n.value)==null||M.forceUpdate(),(A=r.value)==null||A.forceUpdate(),(k=a.proxy)==null||k.$forceUpdate(),o.value=!1},0);function C(T,M=!1){y(g)&&[t,n,r].forEach(A=>{const k=y(A);k&&k.resetAfterRowIndex(T,M)})}function S(T,M,A){const k=y(c);(k===null||k>A)&&(c.value=A),d.value[T]=M}function x({rowKey:T,height:M,rowIndex:A},k){k?k===o6.RIGHT?p.value[T]=M:h.value[T]=M:v.value[T]=M;const E=Math.max(...[h,p,v].map(D=>D.value[T]||0));y(f)[T]!==E&&(S(T,E,A),w())}return{hoveringRowKey:s,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:g,isResetting:o,rowHeights:f,resetAfterIndex:C,onRowExpanded:_,onRowHovered:b,onRowsRendered:m,onRowHeightChange:x}},fTe=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=H({}),i=P(()=>{const s={},{data:l,rowKey:u}=e,c=y(t);if(!c||!c.length)return l;const f=[],d=new Set;c.forEach(v=>d.add(v));let h=l.slice();for(h.forEach(v=>s[v[u]]=0);h.length>0;){const v=h.shift();f.push(v),d.has(v[u])&&Array.isArray(v.children)&&v.children.length>0&&(h=[...v.children,...h],v.children.forEach(p=>s[p[u]]=s[v[u]]+1))}return a.value=s,f}),o=P(()=>{const{data:s,expandColumnKey:l}=e;return l?y(i):s});return xe(o,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:o,depthMap:a}},dTe=(e,t)=>e+t,Ty=e=>He(e)?e.reduce(dTe,0):e,uc=(e,t,n={})=>it(e)?e(t):e??n,Ws=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=On(e[t])}),e),s6=e=>Tn(e)?t=>Ze(e,t):e,hTe=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=P(()=>{const{fixed:_,width:w,vScrollbarSize:C}=e,S=w-C;return _?Math.max(Math.round(y(t)),S):S}),o=P(()=>y(i)+(e.fixed?e.vScrollbarSize:0)),s=P(()=>{const{height:_=0,maxHeight:w=0,footerHeight:C,hScrollbarSize:S}=e;if(w>0){const x=y(v),T=y(l),A=y(h)+x+T+S;return Math.min(A,w-C)}return _-C}),l=P(()=>{const{rowHeight:_,estimatedRowHeight:w}=e,C=y(n);return at(w)?C.length*w:C.length*_}),u=P(()=>{const{maxHeight:_}=e,w=y(s);if(at(_)&&_>0)return w;const C=y(l)+y(h)+y(v);return Math.min(w,C)}),c=_=>_.width,f=P(()=>Ty(y(r).map(c))),d=P(()=>Ty(y(a).map(c))),h=P(()=>Ty(e.headerHeight)),v=P(()=>{var _;return(((_=e.fixedData)==null?void 0:_.length)||0)*e.rowHeight}),p=P(()=>y(s)-y(h)-y(v)),g=P(()=>{const{style:_={},height:w,width:C}=e;return Ws({..._,height:w,width:C})}),m=P(()=>Ws({height:e.footerHeight})),b=P(()=>({top:On(y(h)),bottom:On(e.footerHeight),width:On(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:f,rightTableWidth:d,headerWidth:o,rowsHeight:l,windowHeight:p,footerHeight:m,emptyStyle:b,rootStyle:g,headerHeight:h}},vTe=e=>{const t=H(),n=H(0),r=H(0);let a;return yt(()=>{a=$r(t,([i])=>{const{width:o,height:s}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:c,paddingBottom:f}=getComputedStyle(i.target),d=Number.parseInt(l)||0,h=Number.parseInt(u)||0,v=Number.parseInt(c)||0,p=Number.parseInt(f)||0;n.value=o-d-h,r.value=s-v-p}).stop}),wn(()=>{a==null||a()}),xe([n,r],([i,o])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:o})}),{sizer:t,width:n,height:r}};function pTe(e){const t=H(),n=H(),r=H(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=lTe(e,kn(e,"columns"),kn(e,"fixed")),{scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m,scrollPos:b}=uTe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:W}),{expandedRowKeys:_,hoveringRowKey:w,lastRenderedRowIndex:C,isDynamic:S,isResetting:x,rowHeights:T,resetAfterIndex:M,onRowExpanded:A,onRowHeightChange:k,onRowHovered:E,onRowsRendered:D}=cTe(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r}),{data:L,depthMap:B}=fTe(e,{expandedRowKeys:_,lastRenderedRowIndex:C,resetAfterIndex:M}),{bodyWidth:N,fixedTableHeight:O,mainTableHeight:$,leftTableWidth:I,rightTableWidth:z,headerWidth:G,rowsHeight:U,windowHeight:Z,footerHeight:ae,emptyStyle:J,rootStyle:Q,headerHeight:ee}=hTe(e,{columnsTotalWidth:o,data:L,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),j=un(!1),de=H(),ve=P(()=>{const X=y(L).length===0;return He(e.fixedData)?e.fixedData.length===0&&X:X});function ie(X){const{estimatedRowHeight:oe,rowHeight:pe,rowKey:Se}=e;return oe?y(T)[y(L)[X][Se]]||oe:pe}function W(){const{onEndReached:X}=e;if(!X)return;const{scrollTop:oe}=y(b),pe=y(U),Se=y(Z),me=pe-(oe+Se)+e.hScrollbarSize;y(C)>=0&&pe===oe+y($)-y(ee)&&X(me)}return xe(()=>e.expandedRowKeys,X=>_.value=X,{deep:!0}),{columns:a,containerRef:de,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:S,isResetting:x,isScrolling:j,hoveringRowKey:w,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:L,expandedRowKeys:_,depthMap:B,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:N,emptyStyle:J,rootStyle:Q,headerWidth:G,footerHeight:ae,mainTableHeight:$,fixedTableHeight:O,leftTableWidth:I,rightTableWidth:z,showEmpty:ve,getRowHeight:ie,onColumnSorted:f,onRowHovered:E,onRowExpanded:A,onRowsRendered:D,onRowHeightChange:k,scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m}}const ik=Symbol("tableV2"),l6=String,ag={type:ue(Array),required:!0},ok={type:ue(Array)},u6={...ok,required:!0},gTe=String,dL={type:ue(Array),default:()=>Cn([])},Tu={type:Number,required:!0},c6={type:ue([String,Number,Symbol]),default:"id"},hL={type:ue(Object)},$u=Le({class:String,columns:ag,columnsStyles:{type:ue(Object),required:!0},depth:Number,expandColumnKey:gTe,estimatedRowHeight:{...qu.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:ue(Function)},onRowHover:{type:ue(Function)},onRowHeightChange:{type:ue(Function)},rowData:{type:ue(Object),required:!0},rowEventHandlers:{type:ue(Object)},rowIndex:{type:Number,required:!0},rowKey:c6,style:{type:ue(Object)}}),O_={type:Number,required:!0},sk=Le({class:String,columns:ag,fixedHeaderData:{type:ue(Array)},headerData:{type:ue(Array),required:!0},headerHeight:{type:ue([Number,Array]),default:50},rowWidth:O_,rowHeight:{type:Number,default:50},height:O_,width:O_}),My=Le({columns:ag,data:u6,fixedData:ok,estimatedRowHeight:$u.estimatedRowHeight,width:Tu,height:Tu,headerWidth:Tu,headerHeight:sk.headerHeight,bodyWidth:Tu,rowHeight:Tu,cache:R8.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:qu.scrollbarAlwaysOn,scrollbarStartGap:qu.scrollbarStartGap,scrollbarEndGap:qu.scrollbarEndGap,class:l6,style:hL,containerStyle:hL,getRowHeight:{type:ue(Function),required:!0},rowKey:$u.rowKey,onRowsRendered:{type:ue(Function)},onScroll:{type:ue(Function)}}),mTe=Le({cache:My.cache,estimatedRowHeight:$u.estimatedRowHeight,rowKey:c6,headerClass:{type:ue([String,Function])},headerProps:{type:ue([Object,Function])},headerCellProps:{type:ue([Object,Function])},headerHeight:sk.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:ue([String,Function])},rowProps:{type:ue([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:ue([Object,Function])},columns:ag,data:u6,dataGetter:{type:ue(Function)},fixedData:ok,expandColumnKey:$u.expandColumnKey,expandedRowKeys:dL,defaultExpandedRowKeys:dL,class:l6,fixed:Boolean,style:{type:ue(Object)},width:Tu,height:Tu,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:qu.hScrollbarSize,vScrollbarSize:qu.vScrollbarSize,scrollbarAlwaysOn:N8.alwaysOn,sortBy:{type:ue(Object),default:()=>({})},sortState:{type:ue(Object),default:void 0},onColumnSort:{type:ue(Function)},onExpandedRowsChange:{type:ue(Function)},onEndReached:{type:ue(Function)},onRowExpand:$u.onRowExpand,onScroll:My.onScroll,onRowsRendered:My.onRowsRendered,rowEventHandlers:$u.rowEventHandlers}),lk=(e,{slots:t})=>{var n;const{cellData:r,style:a}=e,i=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"";return q("div",{class:e.class,title:i,style:a},[t.default?t.default(e):i])};lk.displayName="ElTableV2Cell";lk.inheritAttrs=!1;const uk=(e,{slots:t})=>{var n,r;return t.default?t.default(e):q("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])};uk.displayName="ElTableV2HeaderCell";uk.inheritAttrs=!1;const yTe=Le({class:String,columns:ag,columnsStyles:{type:ue(Object),required:!0},headerIndex:Number,style:{type:ue(Object)}}),bTe=ne({name:"ElTableV2HeaderRow",props:yTe,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:r,headerIndex:a,style:i}=e;let o=n.map((s,l)=>t.cell({columns:n,column:s,columnIndex:l,headerIndex:a,style:r[s.key]}));return t.header&&(o=t.header({cells:o.map(s=>He(s)&&s.length===1?s[0]:s),columns:n,headerIndex:a})),q("div",{class:e.class,style:i,role:"row"},[o])}}}),_Te="ElTableV2Header",wTe=ne({name:_Te,props:sk,setup(e,{slots:t,expose:n}){const r=Me("table-v2"),a=H(),i=P(()=>Ws({width:e.width,height:e.height})),o=P(()=>Ws({width:e.rowWidth,height:e.height})),s=P(()=>sc(y(e.headerHeight))),l=f=>{const d=y(a);Ue(()=>{d!=null&&d.scroll&&d.scroll({left:f})})},u=()=>{const f=r.e("fixed-header-row"),{columns:d,fixedHeaderData:h,rowHeight:v}=e;return h==null?void 0:h.map((p,g)=>{var m;const b=Ws({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=Ws({width:"100%",height:h});return(p=t.dynamic)==null?void 0:p.call(t,{class:f,columns:d,headerIndex:v,style:g})})};return n({scrollToLeft:l}),()=>{if(!(e.height<=0))return q("div",{ref:a,class:e.class,style:y(i),role:"rowgroup"},[q("div",{style:y(o),class:r.e("header")},[c(),u()])])}}}),STe=e=>{const{isScrolling:t}=Ge(ik),n=H(!1),r=H(),a=P(()=>at(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=y(r);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:d,rowIndex:h,style:v}=e,{height:p}=u.getBoundingClientRect();n.value=!0,Ue(()=>{if(l||p!==Number.parseInt(v.height)){const g=c[0],m=(g==null?void 0:g.placeholderSign)===lp;f==null||f({rowKey:d,height:p,rowIndex:h},g&&!m&&g.fixed)}})},o=P(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=e,d=e.rowEventHandlers||{},h={};return Object.entries(d).forEach(([v,p])=>{it(p)&&(h[v]=g=>{p({event:g,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:p})=>{const g=h[v];h[v]=m=>{f({event:m,hovered:p,rowData:l,rowIndex:u,rowKey:c}),g==null||g(m)}}),h}),s=l=>{const{onRowExpand:u,rowData:c,rowIndex:f,rowKey:d}=e;u==null||u({expanded:l,rowData:c,rowIndex:f,rowKey:d})};return yt(()=>{y(a)&&i(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:r,eventHandlers:o,onExpand:s}},CTe="ElTableV2TableRow",xTe=ne({name:CTe,props:$u,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=STe(e);return t({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:d,depth:h,rowData:v,rowIndex:p,style:g}=e;let m=c.map((b,_)=>{const w=He(v.children)&&v.children.length>0&&b.key===d;return n.cell({column:b,columns:c,columnIndex:_,depth:h,style:f[b.key],rowData:v,rowIndex:p,isScrolling:y(i),expandIconProps:w?{rowData:v,rowIndex:p,onExpand:u}:void 0})});if(n.row&&(m=n.row({cells:m.map(b=>He(b)&&b.length===1?b[0]:b),style:g,columns:c,depth:h,rowData:v,rowIndex:p,isScrolling:y(i)})),y(o)){const{height:b,..._}=g||{},w=y(s);return q("div",St({ref:l,class:e.class,style:w?g:_,role:"row"},r,y(a)),[m])}return q("div",St(r,{ref:l,class:e.class,style:g,role:"row"},y(a)),[m])}}}),TTe=e=>{const{sortOrder:t}=e;return q(Ke,{size:14,class:e.class},{default:()=>[t===op.ASC?q(Ase,null,null):q(Sse,null,null)]})},MTe=e=>{const{expanded:t,expandable:n,onExpand:r,style:a,size:i}=e,o={onClick:n?()=>r(!t):void 0,class:e.class};return q(Ke,St(o,{size:i,style:a}),{default:()=>[q(jr,null,null)]})},kTe="ElTableV2Grid",ATe=e=>{const t=H(),n=H(),r=P(()=>{const{data:p,rowHeight:g,estimatedRowHeight:m}=e;if(!m)return p.length*g}),a=P(()=>{const{fixedData:p,rowHeight:g}=e;return((p==null?void 0:p.length)||0)*g}),i=P(()=>Ty(e.headerHeight)),o=P(()=>{const{height:p}=e;return Math.max(0,p-y(i)-y(a))}),s=P(()=>y(i)+y(a)>0),l=({data:p,rowIndex:g})=>p[g][e.rowKey];function u({rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:b}){var _;(_=e.onRowsRendered)==null||_.call(e,{rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:b})}function c(p,g){var m;(m=n.value)==null||m.resetAfterRowIndex(p,g)}function f(p,g){const m=y(t),b=y(n);!m||!b||(Mt(p)?(m.scrollToLeft(p.scrollLeft),b.scrollTo(p)):(m.scrollToLeft(p),b.scrollTo({scrollLeft:p,scrollTop:g})))}function d(p){var g;(g=y(n))==null||g.scrollTo({scrollTop:p})}function h(p,g){var m;(m=y(n))==null||m.scrollToItem(p,1,g)}function v(){var p,g;(p=y(n))==null||p.$forceUpdate(),(g=y(t))==null||g.$forceUpdate()}return{bodyRef:n,forceUpdate:v,fixedRowHeight:a,gridHeight:o,hasHeader:s,headerHeight:i,headerRef:t,totalHeight:r,itemKey:l,onItemRendered:u,resetAfterRowIndex:c,scrollTo:f,scrollToTop:d,scrollToRow:h}},ck=ne({name:kTe,props:My,setup(e,{slots:t,expose:n}){const{ns:r}=Ge(ik),{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}=ATe(e);n({forceUpdate:f,totalHeight:c,scrollTo:p,scrollToTop:g,scrollToRow:m,resetAfterRowIndex:v});const b=()=>e.bodyWidth;return()=>{const{cache:_,columns:w,data:C,fixedData:S,useIsScrolling:x,scrollbarAlwaysOn:T,scrollbarEndGap:M,scrollbarStartGap:A,style:k,rowHeight:E,bodyWidth:D,estimatedRowHeight:L,headerWidth:B,height:N,width:O,getRowHeight:$,onScroll:I}=e,z=at(L),G=z?aCe:eCe,U=y(u);return q("div",{role:"table",class:[r.e("table"),e.class],style:k},[q(G,{ref:a,data:C,useIsScrolling:x,itemKey:d,columnCache:0,columnWidth:z?b:D,totalColumn:1,totalRow:C.length,rowCache:_,rowHeight:z?$:E,width:O,height:y(o),class:r.e("body"),role:"rowgroup",scrollbarStartGap:A,scrollbarEndGap:M,scrollbarAlwaysOn:T,onScroll:I,onItemRendered:h,perfMode:!1},{default:Z=>{var ae;const J=C[Z.rowIndex];return(ae=t.row)==null?void 0:ae.call(t,{...Z,columns:w,rowData:J})}}),y(s)&&q(wTe,{ref:l,class:r.e("header-wrapper"),columns:w,headerData:C,headerHeight:e.headerHeight,fixedHeaderData:S,rowWidth:B,rowHeight:E,width:O,height:Math.min(U+y(i),N)},{dynamic:t.header,fixed:t.row})])}}});function ETe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tn(e)}const ITe=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return q(ck,St({ref:n},r),ETe(t)?t:{default:()=>[t]})};function DTe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tn(e)}const PTe=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return q(ck,St({ref:n},r),DTe(t)?t:{default:()=>[t]})};function LTe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tn(e)}const RTe=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return q(ck,St({ref:n},r),LTe(t)?t:{default:()=>[t]})};function OTe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tn(e)}const $Te=(e,{slots:t})=>{const{columns:n,columnsStyles:r,depthMap:a,expandColumnKey:i,expandedRowKeys:o,estimatedRowHeight:s,hasFixedColumns:l,hoveringRowKey:u,rowData:c,rowIndex:f,style:d,isScrolling:h,rowProps:v,rowClass:p,rowKey:g,rowEventHandlers:m,ns:b,onRowHovered:_,onRowExpanded:w}=e,C=uc(p,{columns:n,rowData:c,rowIndex:f},""),S=uc(v,{columns:n,rowData:c,rowIndex:f}),x=c[g],T=a[x]||0,M=!!i,A=f<0,k=[b.e("row"),C,{[b.e(`row-depth-${T}`)]:M&&f>=0,[b.is("expanded")]:M&&o.includes(x),[b.is("hovered")]:!h&&x===u,[b.is("fixed")]:!T&&A,[b.is("customized")]:!!t.row}],E=l?_:void 0,D={...S,columns:n,columnsStyles:r,class:k,depth:T,expandColumnKey:i,estimatedRowHeight:A?void 0:s,isScrolling:h,rowIndex:f,rowData:c,rowKey:x,rowEventHandlers:m,style:d};return q(xTe,St(D,{onRowHover:E,onRowExpand:w}),OTe(t)?t:{default:()=>[t]})},yx=({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=Ws(l);if(t.placeholderSign===lp)return q("div",{class:c.em("row-cell","placeholder"),style:m},null);const{cellRenderer:b,dataKey:_,dataGetter:w}=t,S=s6(b)||g.default||(N=>q(lk,N,null)),x=it(w)?w({columns:e,column:t,columnIndex:n,rowData:o,rowIndex:s}):Sn(o,_??""),T=uc(f,{cellData:x,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:o}),M={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:x,isScrolling:i,rowData:o,rowIndex:s},A=S(M),k=[c.e("row-cell"),t.class,t.align===sp.CENTER&&c.is("align-center"),t.align===sp.RIGHT&&c.is("align-right")],E=s>=0&&d&&t.key===d,D=s>=0&&u.includes(o[p]);let L;const B=`margin-inline-start: ${r*h}px;`;return E&&(Mt(a)?L=q(MTe,St(a,{class:[c.e("expand-icon"),c.is("expanded",D)],size:v,expanded:D,style:B,expandable:!0}),null):L=q("div",{style:[B,`width: ${v}px; height: ${v}px;`].join(" ")},null)),q("div",St({class:k,style:m},T,{role:"cell"}),[L,A])};yx.inheritAttrs=!1;function NTe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tn(e)}const BTe=({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"),uc(a,l,""),{[o.is("customized")]:!!s.header}],c={...uc(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return q(bTe,c,NTe(s)?s:{default:()=>[s]})},vL=(e,{slots:t})=>{const{column:n,ns:r,style:a,onColumnSorted:i}=e,o=Ws(a);if(n.placeholderSign===lp)return q("div",{class:r.em("header-row-cell","placeholder"),style:o},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=n,c={...e,class:r.e("header-cell-text")},d=(s6(s)||t.default||(w=>q(uk,w,null)))(c),{sortBy:h,sortState:v,headerCellProps:p}=e;let g,m;if(v){const w=v[n.key];g=!!mx[w],m=g?w:op.ASC}else g=n.key===h.key,m=g?h.order:op.ASC;const b=[r.e("header-cell"),uc(l,e,""),n.align===sp.CENTER&&r.is("align-center"),n.align===sp.RIGHT&&r.is("align-right"),u&&r.is("sortable")],_={...uc(p,e),onClick:n.sortable?i:void 0,class:b,style:o,"data-key":n.key};return q("div",St(_,{role:"columnheader"}),[d,u&&q(TTe,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:m},null)])},f6=(e,{slots:t})=>{var n;return q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};f6.displayName="ElTableV2Footer";const d6=(e,{slots:t})=>q("div",{class:e.class,style:e.style},[t.default?t.default():q(b8,null,null)]);d6.displayName="ElTableV2Empty";const h6=(e,{slots:t})=>{var n;return q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};h6.displayName="ElTableV2Overlay";function oh(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Tn(e)}const VTe="ElTableV2",zTe=ne({name:VTe,props:mTe,setup(e,{slots:t,expose:n}){const r=Me("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:d,depthMap:h,expandedRowKeys:v,hasFixedColumns:p,hoveringRowKey:g,mainTableRef:m,leftTableRef:b,rightTableRef:_,isDynamic:w,isResetting:C,isScrolling:S,bodyWidth:x,emptyStyle:T,rootStyle:M,headerWidth:A,footerHeight:k,showEmpty:E,scrollTo:D,scrollToLeft:L,scrollToTop:B,scrollToRow:N,getRowHeight:O,onColumnSorted:$,onRowHeightChange:I,onRowHovered:z,onRowExpanded:G,onRowsRendered:U,onScroll:Z,onVerticalScroll:ae}=pTe(e);return n({scrollTo:D,scrollToLeft:L,scrollToTop:B,scrollToRow:N}),Et(ik,{ns:r,isResetting:C,hoveringRowKey:g,isScrolling:S}),()=>{const{cache:J,cellProps:Q,estimatedRowHeight:ee,expandColumnKey:j,fixedData:de,headerHeight:ve,headerClass:ie,headerProps:W,headerCellProps:X,sortBy:oe,sortState:pe,rowHeight:Se,rowClass:me,rowEventHandlers:Ee,rowKey:Ce,rowProps:we,scrollbarAlwaysOn:Te,indentSize:$e,iconSize:Be,useIsScrolling:We,vScrollbarSize:Ae,width:Fe}=e,rt=y(d),vt={cache:J,class:r.e("main"),columns:y(s),data:rt,fixedData:de,estimatedRowHeight:ee,bodyWidth:y(x)+Ae,headerHeight:ve,headerWidth:y(A),height:y(l),mainTableRef:m,rowKey:Ce,rowHeight:Se,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Ae,useIsScrolling:We,width:Fe,getRowHeight:O,onRowsRendered:U,onScroll:Z},kt=y(c),Qe=y(u),ye={cache:J,class:r.e("left"),columns:y(i),data:rt,estimatedRowHeight:ee,leftTableRef:b,rowHeight:Se,bodyWidth:kt,headerWidth:kt,headerHeight:ve,height:Qe,rowKey:Ce,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Ae,useIsScrolling:We,width:kt,getRowHeight:O,onScroll:ae},le=y(f)+Ae,ke={cache:J,class:r.e("right"),columns:y(o),data:rt,estimatedRowHeight:ee,rightTableRef:_,rowHeight:Se,bodyWidth:le,headerWidth:le,headerHeight:ve,height:Qe,rowKey:Ce,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:Ae,width:le,style:`--${y(r.namespace)}-table-scrollbar-size: ${Ae}px`,useIsScrolling:We,getRowHeight:O,onScroll:ae},te=y(a),Ve={ns:r,depthMap:y(h),columnsStyles:te,expandColumnKey:j,expandedRowKeys:y(v),estimatedRowHeight:ee,hasFixedColumns:y(p),hoveringRowKey:y(g),rowProps:we,rowClass:me,rowKey:Ce,rowEventHandlers:Ee,onRowHovered:z,onRowExpanded:G,onRowHeightChange:I},st={cellProps:Q,expandColumnKey:j,indentSize:$e,iconSize:Be,rowKey:Ce,expandedRowKeys:y(v),ns:r},It={ns:r,headerClass:ie,headerProps:W,columnsStyles:te},zn={ns:r,sortBy:oe,sortState:pe,headerCellProps:X,onColumnSorted:$},Zn={row:be=>q($Te,St(be,Ve),{row:t.row,cell:Ne=>{let he;return t.cell?q(yx,St(Ne,st,{style:te[Ne.column.key]}),oh(he=t.cell(Ne))?he:{default:()=>[he]}):q(yx,St(Ne,st,{style:te[Ne.column.key]}),null)}}),header:be=>q(BTe,St(be,It),{header:t.header,cell:Ne=>{let he;return t["header-cell"]?q(vL,St(Ne,zn,{style:te[Ne.column.key]}),oh(he=t["header-cell"](Ne))?he:{default:()=>[he]}):q(vL,St(Ne,zn,{style:te[Ne.column.key]}),null)}})},oa=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:y(w)}],pr={class:r.e("footer"),style:y(k)};return q("div",{class:oa,style:y(M)},[q(ITe,vt,oh(Zn)?Zn:{default:()=>[Zn]}),q(PTe,ye,oh(Zn)?Zn:{default:()=>[Zn]}),q(RTe,ke,oh(Zn)?Zn:{default:()=>[Zn]}),t.footer&&q(f6,pr,{default:t.footer}),y(E)&&q(d6,{class:r.e("empty"),style:y(T)},{default:t.empty}),t.overlay&&q(h6,{class:r.e("overlay")},{default:t.overlay})])}}}),FTe=Le({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:ue(Function)}}),HTe=ne({name:"ElAutoResizer",props:FTe,setup(e,{slots:t}){const n=Me("auto-resizer"),{height:r,width:a,sizer:i}=vTe(e),o={width:"100%",height:"100%"};return()=>{var s;return q("div",{ref:i,class:n.b(),style:o},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:a.value})])}}}),GTe=_t(zTe),WTe=_t(HTe),f1=Symbol("tabsRootContextKey"),KTe=Le({tabs:{type:ue(Array),default:()=>Cn([])}}),v6="ElTabBar",UTe=ne({name:v6}),YTe=ne({...UTe,props:KTe,setup(e,{expose:t}){const n=e,r=gt(),a=Ge(f1);a||jn(v6,"<el-tabs><el-tab-bar /></el-tabs>");const i=Me("tabs"),o=H(),s=H(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(a.props.tabPosition)?"width":"height",h=d==="width"?"x":"y",v=h==="x"?"left":"top";return n.tabs.every(p=>{var g,m;const b=(m=(g=r.parent)==null?void 0:g.refs)==null?void 0:m[`tab-${p.uid}`];if(!b)return!1;if(!p.active)return!0;c=b[`offset${io(v)}`],f=b[`client${io(d)}`];const _=window.getComputedStyle(b);return d==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight)),c+=Number.parseFloat(_.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${io(h)}(${c}px)`}},u=()=>s.value=l();return xe(()=>n.tabs,async()=>{await Ue(),u()},{immediate:!0}),$r(o,()=>u()),t({ref:o,update:u}),(c,f)=>(R(),K("div",{ref_key:"barRef",ref:o,class:V([y(i).e("active-bar"),y(i).is(y(a).props.tabPosition)]),style:Ye(s.value)},null,6))}});var jTe=Pe(YTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const qTe=Le({panes:{type:ue(Array),default:()=>Cn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),XTe={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},pL="ElTabNav",ZTe=ne({name:pL,props:qTe,emits:XTe,setup(e,{expose:t,emit:n}){const r=gt(),a=Ge(f1);a||jn(pL,"<el-tabs><tab-nav /></el-tabs>");const i=Me("tabs"),o=pZ(),s=TZ(),l=H(),u=H(),c=H(),f=H(),d=H(!1),h=H(0),v=H(!1),p=H(!0),g=P(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),m=P(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),b=()=>{if(!l.value)return;const M=l.value[`offset${io(g.value)}`],A=h.value;if(!A)return;const k=A>M?A-M:0;h.value=k},_=()=>{if(!l.value||!u.value)return;const M=u.value[`offset${io(g.value)}`],A=l.value[`offset${io(g.value)}`],k=h.value;if(M-k<=A)return;const E=M-k>A*2?k+A:M-A;h.value=E},w=async()=>{const M=u.value;if(!d.value||!c.value||!l.value||!M)return;await Ue();const A=c.value.querySelector(".is-active");if(!A)return;const k=l.value,E=["top","bottom"].includes(a.props.tabPosition),D=A.getBoundingClientRect(),L=k.getBoundingClientRect(),B=E?M.offsetWidth-L.width:M.offsetHeight-L.height,N=h.value;let O=N;E?(D.left<L.left&&(O=N-(L.left-D.left)),D.right>L.right&&(O=N+D.right-L.right)):(D.top<L.top&&(O=N-(L.top-D.top)),D.bottom>L.bottom&&(O=N+(D.bottom-L.bottom))),O=Math.max(O,0),h.value=Math.min(O,B)},C=()=>{var M;if(!u.value||!l.value)return;e.stretch&&((M=f.value)==null||M.update());const A=u.value[`offset${io(g.value)}`],k=l.value[`offset${io(g.value)}`],E=h.value;k<A?(d.value=d.value||{},d.value.prev=E,d.value.next=E+k<A,A-E<k&&(h.value=A-k)):(d.value=!1,E>0&&(h.value=0))},S=M=>{const A=M.code,{up:k,down:E,left:D,right:L}=Xe;if(![k,E,D,L].includes(A))return;const B=Array.from(M.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),N=B.indexOf(M.target);let O;A===D||A===k?N===0?O=B.length-1:O=N-1:N<B.length-1?O=N+1:O=0,B[O].focus({preventScroll:!0}),B[O].click(),x()},x=()=>{p.value&&(v.value=!0)},T=()=>v.value=!1;return xe(o,M=>{M==="hidden"?p.value=!1:M==="visible"&&setTimeout(()=>p.value=!0,50)}),xe(s,M=>{M?setTimeout(()=>p.value=!0,50):p.value=!1}),$r(c,C),yt(()=>setTimeout(()=>w(),0)),cs(()=>C()),t({scrollToActiveTab:w,removeFocus:T}),xe(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const M=d.value?[q("span",{class:[i.e("nav-prev"),i.is("disabled",!d.value.prev)],onClick:b},[q(Ke,null,{default:()=>[q(fl,null,null)]})]),q("span",{class:[i.e("nav-next"),i.is("disabled",!d.value.next)],onClick:_},[q(Ke,null,{default:()=>[q(jr,null,null)]})])]:null,A=e.panes.map((k,E)=>{var D,L,B,N;const O=k.uid,$=k.props.disabled,I=(L=(D=k.props.name)!=null?D:k.index)!=null?L:`${E}`,z=!$&&(k.isClosable||e.editable);k.index=`${E}`;const G=z?q(Ke,{class:"is-icon-close",onClick:ae=>n("tabRemove",k,ae)},{default:()=>[q(Bi,null,null)]}):null,U=((N=(B=k.slots).label)==null?void 0:N.call(B))||k.props.label,Z=!$&&k.active?0:-1;return q("div",{ref:`tab-${O}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",k.active),i.is("disabled",$),i.is("closable",z),i.is("focus",v.value)],id:`tab-${I}`,key:`tab-${O}`,"aria-controls":`pane-${I}`,role:"tab","aria-selected":k.active,tabindex:Z,onFocus:()=>x(),onBlur:()=>T(),onClick:ae=>{T(),n("tabClick",k,I,ae)},onKeydown:ae=>{z&&(ae.code===Xe.delete||ae.code===Xe.backspace)&&n("tabRemove",k,ae)}},[U,G])});return q("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!d.value),i.is(a.props.tabPosition)]},[M,q("div",{class:i.e("nav-scroll"),ref:l},[q("div",{class:[i.e("nav"),i.is(a.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:m.value,role:"tablist",onKeydown:S},[e.type?null:q(jTe,{ref:f,tabs:[...e.panes]},null),A])])])}}}),JTe=Le({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:ue(Function),default:()=>!0},stretch:Boolean}),$_=e=>lt(e)||at(e),QTe={[wt]:e=>$_(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>$_(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>$_(e),tabAdd:()=>!0};var eMe=ne({name:"ElTabs",props:JTe,emits:QTe,setup(e,{emit:t,slots:n,expose:r}){var a,i;const o=Me("tabs"),{children:s,addChild:l,removeChild:u}=PM(gt(),"ElTabPane"),c=H(),f=H((i=(a=e.modelValue)!=null?a:e.activeName)!=null?i:"0"),d=m=>{f.value=m,t(wt,m),t("tabChange",m)},h=async m=>{var b,_,w;if(!(f.value===m||er(m)))try{await((b=e.beforeLeave)==null?void 0:b.call(e,m,f.value))!==!1&&(d(m),(w=(_=c.value)==null?void 0:_.removeFocus)==null||w.call(_))}catch{}},v=(m,b,_)=>{m.props.disabled||(h(b),t("tabClick",m,_))},p=(m,b)=>{m.props.disabled||er(m.props.name)||(b.stopPropagation(),t("edit",m.props.name,"remove"),t("tabRemove",m.props.name))},g=()=>{t("edit",void 0,"add"),t("tabAdd")};return bo({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},P(()=>!!e.activeName)),xe(()=>e.activeName,m=>h(m)),xe(()=>e.modelValue,m=>h(m)),xe(f,async()=>{var m;await Ue(),(m=c.value)==null||m.scrollToActiveTab()}),Et(f1,{props:e,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const m=e.editable||e.addable?q("span",{class:o.e("new-tab"),tabindex:"0",onClick:g,onKeydown:w=>{w.code===Xe.enter&&g()}},[q(Ke,{class:o.is("icon-plus")},{default:()=>[q(H5,null,null)]})]):null,b=q("div",{class:[o.e("header"),o.is(e.tabPosition)]},[m,q(ZTe,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:v,onTabRemove:p},null)]),_=q("div",{class:o.e("content")},[_e(n,"default")]);return q("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[b,_]:[_,b]])}}});const tMe=Le({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),nMe=["id","aria-hidden","aria-labelledby"],p6="ElTabPane",rMe=ne({name:p6}),aMe=ne({...rMe,props:tMe,setup(e){const t=e,n=gt(),r=Mr(),a=Ge(f1);a||jn(p6,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Me("tab-pane"),o=H(),s=P(()=>t.closable||a.props.closable),l=jI(()=>{var h;return a.currentName.value===((h=t.name)!=null?h:o.value)}),u=H(l.value),c=P(()=>{var h;return(h=t.name)!=null?h:o.value}),f=jI(()=>!t.lazy||u.value||l.value);xe(l,h=>{h&&(u.value=!0)});const d=jt({uid:n.uid,slots:r,props:t,paneName:c,active:l,index:o,isClosable:s});return yt(()=>{a.registerPane(d)}),Tl(()=>{a.unregisterPane(d.uid)}),(h,v)=>y(f)?dt((R(),K("div",{key:0,id:`pane-${y(c)}`,class:V(y(i).b()),role:"tabpanel","aria-hidden":!y(l),"aria-labelledby":`tab-${y(c)}`},[_e(h.$slots,"default")],10,nMe)),[[Kt,y(l)]]):se("v-if",!0)}});var g6=Pe(aMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const iMe=_t(eMe,{TabPane:g6}),oMe=Dn(g6),sMe=Le({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Mo,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),lMe=ne({name:"ElText"}),uMe=ne({...lMe,props:sMe,setup(e){const t=e,n=qn(),r=Me("text"),a=P(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated)]);return(i,o)=>(R(),ce(Ct(i.tag),{class:V(y(a))},{default:re(()=>[_e(i.$slots,"default")]),_:3},8,["class"]))}});var cMe=Pe(uMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const fMe=_t(cMe),dMe=Le({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:Sr,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:ue([String,Object]),default:()=>F5},clearIcon:{type:ue([String,Object]),default:()=>kl}}),Fo=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const r=Number.parseInt(t[1],10),a=e.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},N_=(e,t)=>{const n=Fo(e);if(!n)return-1;const r=Fo(t);if(!r)return-1;const a=n.minutes+n.hours*60,i=r.minutes+r.hours*60;return a===i?0:a>i?1:-1},gL=e=>`${e}`.padStart(2,"0"),uf=e=>`${gL(e.hours)}:${gL(e.minutes)}`,hMe=(e,t)=>{const n=Fo(e);if(!n)return"";const r=Fo(t);if(!r)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=r.minutes,a.hours+=r.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,uf(a)},vMe=ne({name:"ElTimeSelect"}),pMe=ne({...vMe,props:dMe,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;mt.extend(BM);const{Option:r}=lc,a=Me("input"),i=H(),o=wa(),s=P(()=>n.modelValue),l=P(()=>{const g=Fo(n.start);return g?uf(g):null}),u=P(()=>{const g=Fo(n.end);return g?uf(g):null}),c=P(()=>{const g=Fo(n.step);return g?uf(g):null}),f=P(()=>{const g=Fo(n.minTime||"");return g?uf(g):null}),d=P(()=>{const g=Fo(n.maxTime||"");return g?uf(g):null}),h=P(()=>{const g=[];if(n.start&&n.end&&n.step){let m=l.value,b;for(;m&&u.value&&N_(m,u.value)<=0;)b=mt(m,"HH:mm").format(n.format),g.push({value:b,disabled:N_(m,f.value||"-1:-1")<=0||N_(m,d.value||"100:100")>=0}),m=hMe(m,c.value)}return g});return t({blur:()=>{var g,m;(m=(g=i.value)==null?void 0:g.blur)==null||m.call(g)},focus:()=>{var g,m;(m=(g=i.value)==null?void 0:g.focus)==null||m.call(g)}}),(g,m)=>(R(),ce(y(lc),{ref_key:"select",ref:i,"model-value":y(s),disabled:y(o),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"onUpdate:modelValue":m[0]||(m[0]=b=>g.$emit("update:modelValue",b)),onChange:m[1]||(m[1]=b=>g.$emit("change",b)),onBlur:m[2]||(m[2]=b=>g.$emit("blur",b)),onFocus:m[3]||(m[3]=b=>g.$emit("focus",b))},{prefix:re(()=>[g.prefixIcon?(R(),ce(y(Ke),{key:0,class:V(y(a).e("prefix-icon"))},{default:re(()=>[(R(),ce(Ct(g.prefixIcon)))]),_:1},8,["class"])):se("v-if",!0)]),default:re(()=>[(R(!0),K(je,null,Ot(y(h),b=>(R(),ce(y(r),{key:b.value,label:b.value,value:b.value,disabled:b.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var ky=Pe(pMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);ky.install=e=>{e.component(ky.name,ky)};const gMe=ky,mMe=gMe,yMe=ne({name:"ElTimeline",setup(e,{slots:t}){const n=Me("timeline");return Et("timeline",t),()=>Ze("ul",{class:[n.b()]},[_e(t,"default")])}}),bMe=Le({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:fn},hollow:{type:Boolean,default:!1}}),_Me=ne({name:"ElTimelineItem"}),wMe=ne({..._Me,props:bMe,setup(e){const t=e,n=Me("timeline-item"),r=P(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(a,i)=>(R(),K("li",{class:V([y(n).b(),{[y(n).e("center")]:a.center}])},[Y("div",{class:V(y(n).e("tail"))},null,2),a.$slots.dot?se("v-if",!0):(R(),K("div",{key:0,class:V(y(r)),style:Ye({backgroundColor:a.color})},[a.icon?(R(),ce(y(Ke),{key:0,class:V(y(n).e("icon"))},{default:re(()=>[(R(),ce(Ct(a.icon)))]),_:1},8,["class"])):se("v-if",!0)],6)),a.$slots.dot?(R(),K("div",{key:1,class:V(y(n).e("dot"))},[_e(a.$slots,"dot")],2)):se("v-if",!0),Y("div",{class:V(y(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(R(),K("div",{key:0,class:V([y(n).e("timestamp"),y(n).is("top")])},De(a.timestamp),3)):se("v-if",!0),Y("div",{class:V(y(n).e("content"))},[_e(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(R(),K("div",{key:1,class:V([y(n).e("timestamp"),y(n).is("bottom")])},De(a.timestamp),3)):se("v-if",!0)],2)],2))}});var m6=Pe(wMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const SMe=_t(yMe,{TimelineItem:m6}),CMe=Dn(m6),y6=Le({nowrap:Boolean});var b6=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(b6||{});const xMe=Object.values(b6),fk=Le({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:ue(Object),default:null}}),TMe=Le({side:{type:ue(String),values:xMe,required:!0}}),MMe=["absolute","fixed"],kMe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],dk=Le({ariaLabel:String,arrowPadding:{type:ue(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:ue(String),values:kMe,default:"bottom"},reference:{type:ue(Object),default:null},offset:{type:Number,default:8},strategy:{type:ue(String),values:MMe,default:"absolute"},showArrow:{type:Boolean,default:!1}}),hk=Le({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:ue(Function)},"onUpdate:open":{type:ue(Function)}}),Nc={type:ue(Function)},vk=Le({onBlur:Nc,onClick:Nc,onFocus:Nc,onMouseDown:Nc,onMouseEnter:Nc,onMouseLeave:Nc}),AMe=Le({...hk,...fk,...vk,...dk,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:ue(Object),default:null},teleported:Boolean,to:{type:ue(String),default:"body"}}),d1=Symbol("tooltipV2"),_6=Symbol("tooltipV2Content"),B_="tooltip_v2.open",EMe=ne({name:"ElTooltipV2Root"}),IMe=ne({...EMe,props:hk,setup(e,{expose:t}){const n=e,r=H(n.defaultOpen),a=H(null),i=P({get:()=>$re(n.open)?r.value:n.open,set:g=>{var m;r.value=g,(m=n["onUpdate:open"])==null||m.call(n,g)}}),o=P(()=>at(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=ic(()=>{i.value=!0},P(()=>n.delayDuration),{immediate:!1}),u=Me("tooltip-v2"),c=si(),f=()=>{l(),i.value=!0},d=()=>{y(o)?s():f()},h=f,v=()=>{l(),i.value=!1};return xe(i,g=>{var m;g&&(document.dispatchEvent(new CustomEvent(B_)),h()),(m=n.onOpenChange)==null||m.call(n,g)}),yt(()=>{document.addEventListener(B_,v)}),wn(()=>{l(),document.removeEventListener(B_,v)}),Et(d1,{contentId:c,triggerRef:a,ns:u,onClose:v,onDelayOpen:d,onOpen:h}),t({onOpen:h,onClose:v}),(g,m)=>_e(g.$slots,"default",{open:y(i)})}});var DMe=Pe(IMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const PMe=ne({name:"ElTooltipV2Arrow"}),LMe=ne({...PMe,props:{...fk,...TMe},setup(e){const t=e,{ns:n}=Ge(d1),{arrowRef:r}=Ge(_6),a=P(()=>{const{style:i,width:o,height:s}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${o}px`,[`--${l}-tooltip-v2-arrow-height`]:`${s}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${o/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:o/2-1,...i||{}}});return(i,o)=>(R(),K("span",{ref_key:"arrowRef",ref:r,style:Ye(y(a)),class:V(y(n).e("arrow"))},null,6))}});var mL=Pe(LMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const RMe=Le({style:{type:ue([String,Object,Array]),default:()=>({})}}),OMe=ne({name:"ElVisuallyHidden"}),$Me=ne({...OMe,props:RMe,setup(e){const t=e,n=P(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,a)=>(R(),K("span",St(r.$attrs,{style:y(n)}),[_e(r.$slots,"default")],16))}});var NMe=Pe($Me,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const BMe=["data-side"],VMe=ne({name:"ElTooltipV2Content"}),zMe=ne({...VMe,props:{...dk,...y6},setup(e){const t=e,{triggerRef:n,contentId:r}=Ge(d1),a=H(t.placement),i=H(t.strategy),o=H(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:f,update:d}=vce({placement:a,strategy:i,middleware:P(()=>{const _=[que(t.offset)];return t.showArrow&&_.push(pce({arrowRef:o})),_})}),h=Ed().nextZIndex(),v=Me("tooltip-v2"),p=P(()=>a.value.split("-")[0]),g=P(()=>({position:y(i),top:`${y(f)||0}px`,left:`${y(c)||0}px`,zIndex:h})),m=P(()=>{if(!t.showArrow)return{};const{arrow:_}=y(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${_==null?void 0:_.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${_==null?void 0:_.y}px`||""}}),b=P(()=>[v.e("content"),v.is("dark",t.effect==="dark"),v.is(y(i)),t.contentClass]);return xe(o,()=>d()),xe(()=>t.placement,_=>a.value=_),yt(()=>{xe(()=>t.reference||n.value,_=>{s.value=_||void 0},{immediate:!0})}),Et(_6,{arrowRef:o}),(_,w)=>(R(),K("div",{ref_key:"contentRef",ref:l,style:Ye(y(g)),"data-tooltip-v2-root":""},[_.nowrap?se("v-if",!0):(R(),K("div",{key:0,"data-side":y(p),class:V(y(b))},[_e(_.$slots,"default",{contentStyle:y(g),contentClass:y(b)}),q(y(NMe),{id:y(r),role:"tooltip"},{default:re(()=>[_.ariaLabel?(R(),K(je,{key:0},[Ut(De(_.ariaLabel),1)],64)):_e(_.$slots,"default",{key:1})]),_:3},8,["id"]),_e(_.$slots,"arrow",{style:Ye(y(m)),side:y(p)})],10,BMe))],4))}});var yL=Pe(zMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const FMe=Le({setRef:{type:ue(Function),required:!0},onlyChild:Boolean});var HMe=ne({props:FMe,setup(e,{slots:t}){const n=H(),r=qb(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?wle(i.children):i.children;return q(je,{ref:r},[o])}}});const GMe=ne({name:"ElTooltipV2Trigger"}),WMe=ne({...GMe,props:{...y6,...vk},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:o}=Ge(d1);let s=!1;const l=b=>{i.value=b},u=()=>{s=!1},c=In(t.onMouseEnter,a),f=In(t.onMouseLeave,n),d=In(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=In(t.onFocus,()=>{s||r()}),v=In(t.onBlur,n),p=In(t.onClick,b=>{b.detail===0&&n()}),g={blur:v,click:p,focus:h,mousedown:d,mouseenter:c,mouseleave:f},m=(b,_,w)=>{b&&Object.entries(_).forEach(([C,S])=>{b[w](C,S)})};return xe(i,(b,_)=>{m(b,g,"addEventListener"),m(_,g,"removeEventListener"),b&&b.setAttribute("aria-describedby",o.value)}),wn(()=>{m(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(b,_)=>b.nowrap?(R(),ce(y(HMe),{key:0,"set-ref":l,"only-child":""},{default:re(()=>[_e(b.$slots,"default")]),_:3})):(R(),K("button",St({key:1,ref_key:"triggerRef",ref:i},b.$attrs),[_e(b.$slots,"default")],16))}});var KMe=Pe(WMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const UMe=ne({name:"ElTooltipV2"}),YMe=ne({...UMe,props:AMe,setup(e){const n=or(e),r=jt(Ho(n,Object.keys(fk))),a=jt(Ho(n,Object.keys(dk))),i=jt(Ho(n,Object.keys(hk))),o=jt(Ho(n,Object.keys(vk)));return(s,l)=>(R(),ce(DMe,ki(Ob(i)),{default:re(({open:u})=>[q(KMe,St(o,{nowrap:""}),{default:re(()=>[_e(s.$slots,"trigger")]),_:3},16),(R(),ce(Kp,{to:s.to,disabled:!s.teleported},[s.fullTransition?(R(),ce(Bn,ki(St({key:0},s.transitionProps)),{default:re(()=>[s.alwaysOn||u?(R(),ce(yL,ki(St({key:0},a)),{arrow:re(({style:c,side:f})=>[s.showArrow?(R(),ce(mL,St({key:0},r,{style:c,side:f}),null,16,["style","side"])):se("v-if",!0)]),default:re(()=>[_e(s.$slots,"default")]),_:3},16)):se("v-if",!0)]),_:2},1040)):(R(),K(je,{key:1},[s.alwaysOn||u?(R(),ce(yL,ki(St({key:0},a)),{arrow:re(({style:c,side:f})=>[s.showArrow?(R(),ce(mL,St({key:0},r,{style:c,side:f}),null,16,["style","side"])):se("v-if",!0)]),default:re(()=>[_e(s.$slots,"default")]),_:3},16)):se("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var jMe=Pe(YMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const qMe=_t(jMe),w6="left-check-change",S6="right-check-change",cf=Le({data:{type:ue(Array),default:()=>[]},titles:{type:ue(Array),default:()=>[]},buttonTexts:{type:ue(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:ue(Function)},leftDefaultChecked:{type:ue(Array),default:()=>[]},rightDefaultChecked:{type:ue(Array),default:()=>[]},renderContent:{type:ue(Function)},modelValue:{type:ue(Array),default:()=>[]},format:{type:ue(Object),default:()=>({})},filterable:Boolean,props:{type:ue(Object),default:()=>Cn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),bx=(e,t)=>[e,t].every(He)||He(e)&&Kn(t),XMe={[mn]:(e,t,n)=>[e,n].every(He)&&["left","right"].includes(t),[wt]:e=>He(e),[w6]:bx,[S6]:bx},_x="checked-change",ZMe=Le({data:cf.data,optionRender:{type:ue(Function)},placeholder:String,title:String,filterable:Boolean,format:cf.format,filterMethod:cf.filterMethod,defaultChecked:cf.leftDefaultChecked,props:cf.props}),JMe={[_x]:bx},ig=e=>{const t={label:"label",key:"key",disabled:"disabled"};return P(()=>({...t,...e.props}))},QMe=(e,t,n)=>{const r=ig(e),a=P(()=>e.data.filter(c=>it(e.filterMethod)?e.filterMethod(t.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=P(()=>a.value.filter(c=>!c[r.value.disabled])),o=P(()=>{const c=t.checked.length,f=e.data.length,{noChecked:d,hasChecked:h}=e.format;return d&&h?c>0?h.replace(/\${checked}/g,c.toString()).replace(/\${total}/g,f.toString()):d.replace(/\${total}/g,f.toString()):`${c}/${f}`}),s=P(()=>{const c=t.checked.length;return c>0&&c<i.value.length}),l=()=>{const c=i.value.map(f=>f[r.value.key]);t.allChecked=c.length>0&&c.every(f=>t.checked.includes(f))},u=c=>{t.checked=c?i.value.map(f=>f[r.value.key]):[]};return xe(()=>t.checked,(c,f)=>{if(l(),t.checkChangeByUser){const d=c.concat(f).filter(h=>!c.includes(h)||!f.includes(h));n(_x,c,d)}else n(_x,c),t.checkChangeByUser=!0}),xe(i,()=>{l()}),xe(()=>e.data,()=>{const c=[],f=a.value.map(d=>d[r.value.key]);t.checked.forEach(d=>{f.includes(d)&&c.push(d)}),t.checkChangeByUser=!1,t.checked=c}),xe(()=>e.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(v=>f.includes(v)))return;const d=[],h=i.value.map(v=>v[r.value.key]);c.forEach(v=>{h.includes(v)&&d.push(v)}),t.checkChangeByUser=!1,t.checked=d},{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:o,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},eke=(e,t)=>({onSourceCheckedChange:(a,i)=>{e.leftChecked=a,i&&t(w6,a,i)},onTargetCheckedChange:(a,i)=>{e.rightChecked=a,i&&t(S6,a,i)}}),tke=e=>{const t=ig(e),n=P(()=>e.data.reduce((i,o)=>(i[o[t.value.key]]=o)&&i,{})),r=P(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),a=P(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,o)=>{const s=n.value[o];return s&&i.push(s),i},[]));return{sourceData:r,targetData:a}},nke=(e,t,n)=>{const r=ig(e),a=(s,l,u)=>{n(wt,s),n(mn,s,l,u)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=s.indexOf(l);u>-1&&s.splice(u,1)}),a(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const l=e.data.filter(u=>{const c=u[r.value.key];return t.leftChecked.includes(c)&&!e.modelValue.includes(c)}).map(u=>u[r.value.key]);s=e.targetOrder==="unshift"?l.concat(s):s.concat(l),e.targetOrder==="original"&&(s=e.data.filter(u=>s.includes(u[r.value.key])).map(u=>u[r.value.key])),a(s,"right",t.leftChecked)}}},rke=ne({name:"ElTransferPanel"}),ake=ne({...rke,props:ZMe,emits:JMe,setup(e,{expose:t,emit:n}){const r=e,a=Mr(),i=({option:_})=>_,{t:o}=Ht(),s=Me("transfer"),l=jt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=ig(r),{filteredData:c,checkedSummary:f,isIndeterminate:d,handleAllCheckedChange:h}=QMe(r,l,n),v=P(()=>!qa(l.query)&&qa(c.value)),p=P(()=>!qa(a.default()[0].children)),{checked:g,allChecked:m,query:b}=or(l);return t({query:b}),(_,w)=>(R(),K("div",{class:V(y(s).b("panel"))},[Y("p",{class:V(y(s).be("panel","header"))},[q(y(ui),{modelValue:y(m),"onUpdate:modelValue":w[0]||(w[0]=C=>cn(m)?m.value=C:null),indeterminate:y(d),"validate-event":!1,onChange:y(h)},{default:re(()=>[Ut(De(_.title)+" ",1),Y("span",null,De(y(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),Y("div",{class:V([y(s).be("panel","body"),y(s).is("with-footer",y(p))])},[_.filterable?(R(),ce(y(Rr),{key:0,modelValue:y(b),"onUpdate:modelValue":w[1]||(w[1]=C=>cn(b)?b.value=C:null),class:V(y(s).be("panel","filter")),size:"default",placeholder:_.placeholder,"prefix-icon":y(gse),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):se("v-if",!0),dt(q(y(EF),{modelValue:y(g),"onUpdate:modelValue":w[2]||(w[2]=C=>cn(g)?g.value=C:null),"validate-event":!1,class:V([y(s).is("filterable",_.filterable),y(s).be("panel","list")])},{default:re(()=>[(R(!0),K(je,null,Ot(y(c),C=>(R(),ce(y(ui),{key:C[y(u).key],class:V(y(s).be("panel","item")),label:C[y(u).key],disabled:C[y(u).disabled],"validate-event":!1},{default:re(()=>{var S;return[q(i,{option:(S=_.optionRender)==null?void 0:S.call(_,C)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Kt,!y(v)&&!y(qa)(_.data)]]),dt(Y("p",{class:V(y(s).be("panel","empty"))},De(y(v)?y(o)("el.transfer.noMatch"):y(o)("el.transfer.noData")),3),[[Kt,y(v)||y(qa)(_.data)]])],2),y(p)?(R(),K("p",{key:0,class:V(y(s).be("panel","footer"))},[_e(_.$slots,"default")],2)):se("v-if",!0)],2))}});var bL=Pe(ake,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const ike={key:0},oke={key:0},ske=ne({name:"ElTransfer"}),lke=ne({...ske,props:cf,emits:XMe,setup(e,{expose:t,emit:n}){const r=e,a=Mr(),{t:i}=Ht(),o=Me("transfer"),{formItem:s}=aa(),l=jt({leftChecked:[],rightChecked:[]}),u=ig(r),{sourceData:c,targetData:f}=tke(r),{onSourceCheckedChange:d,onTargetCheckedChange:h}=eke(l,n),{addToLeft:v,addToRight:p}=nke(r,l,n),g=H(),m=H(),b=T=>{switch(T){case"left":g.value.query="";break;case"right":m.value.query="";break}},_=P(()=>r.buttonTexts.length===2),w=P(()=>r.titles[0]||i("el.transfer.titles.0")),C=P(()=>r.titles[1]||i("el.transfer.titles.1")),S=P(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));xe(()=>r.modelValue,()=>{var T;r.validateEvent&&((T=s==null?void 0:s.validate)==null||T.call(s,"change").catch(M=>void 0))});const x=P(()=>T=>r.renderContent?r.renderContent(Ze,T):a.default?a.default({option:T}):Ze("span",T[u.value.label]||T[u.value.key]));return t({clearQuery:b,leftPanel:g,rightPanel:m}),(T,M)=>(R(),K("div",{class:V(y(o).b())},[q(bL,{ref_key:"leftPanel",ref:g,data:y(c),"option-render":y(x),placeholder:y(S),title:y(w),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,"default-checked":T.leftDefaultChecked,props:r.props,onCheckedChange:y(d)},{default:re(()=>[_e(T.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),Y("div",{class:V(y(o).e("buttons"))},[q(y(_r),{type:"primary",class:V([y(o).e("button"),y(o).is("with-texts",y(_))]),disabled:y(qa)(l.rightChecked),onClick:y(v)},{default:re(()=>[q(y(Ke),null,{default:re(()=>[q(y(fl))]),_:1}),y(er)(T.buttonTexts[0])?se("v-if",!0):(R(),K("span",ike,De(T.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),q(y(_r),{type:"primary",class:V([y(o).e("button"),y(o).is("with-texts",y(_))]),disabled:y(qa)(l.leftChecked),onClick:y(p)},{default:re(()=>[y(er)(T.buttonTexts[1])?se("v-if",!0):(R(),K("span",oke,De(T.buttonTexts[1]),1)),q(y(Ke),null,{default:re(()=>[q(y(jr))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),q(bL,{ref_key:"rightPanel",ref:m,data:y(f),"option-render":y(x),placeholder:y(S),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,title:y(C),"default-checked":T.rightDefaultChecked,props:r.props,onCheckedChange:y(h)},{default:re(()=>[_e(T.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var uke=Pe(lke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const cke=_t(uke),Rf="$treeNodeId",_L=function(e,t){!t||t[Rf]||Object.defineProperty(t,Rf,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},pk=function(e,t){return e?t[e]:t[Rf]},Sx=(e,t,n)=>{const r=e.value.currentNode;n();const a=e.value.currentNode;r!==a&&t("current-change",a?a.data:null,a)},Cx=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}},Ay=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=Cx(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||Ay(a)},Jg=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 fke=0,xx=class Ey{constructor(t){this.id=fke++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)Nt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const i=Jg(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)||_L(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)||_L(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Jg(this,"children")||[];for(let r=0,a=n.length;r<a;r++)this.insertChild({data:n[r]})}get label(){return Jg(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return Jg(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 Ey)){if(!r){const a=this.getChildren(!0);a.includes(t.data)||(typeof n>"u"||n<0?a.push(t.data):a.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=jt(new Ey(t)),t instanceof Ey&&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||Ay(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}=Cx(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}=Cx(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),Ay(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||Ay(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[Rf];!!s&&n.findIndex(u=>u[Rf]===s)>=0?r[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||n.forEach(i=>{r[i[Rf]]||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 dke{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)Nt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new xx({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 xx)return t;const n=Mt(t)?pk(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const r=this.getNode(n);r.parent.insertBefore({data:t},r)}insertAfter(t,n){const r=this.getNode(n);r.parent.insertAfter({data:t},r)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const r=n?this.getNode(n):this.root;r&&r.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(r=>{const a=n[r];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const r=[],a=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!t||t&&s.isLeaf)&&r.push(s.data),a(s)})};return a(this),r}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),n(i)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const r in n)Nt(n,r)&&t.push(n[r]);return t}updateChildren(t,n){const r=this.nodesMap[t];if(!r)return;const a=r.childNodes;for(let i=a.length-1;i>=0;i--){const o=a[i];this.remove(o.data)}for(let i=0,o=n.length;i<o;i++){const s=n[i];this.append(s,r.data)}}_setCheckedKeys(t,n=!1,r){const a=this._getAllNodes().sort((s,l)=>l.level-s.level),i=Object.create(null),o=Object.keys(r);a.forEach(s=>s.setChecked(!1,!1));for(let s=0,l=a.length;s<l;s++){const u=a[s],c=u.data[t].toString();if(!o.includes(c)){u.checked&&!i[c]&&u.setChecked(!1,!1);continue}let d=u.parent;for(;d&&d.level>0;)i[d.data[t]]=!0,d=d.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),n){u.setChecked(!1,!1);const h=function(v){v.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),h(g)})};h(u)}}}setCheckedNodes(t,n=!1){const r=this.key,a={};t.forEach(i=>{a[(i||{})[r]]=!0}),this._setCheckedKeys(r,n,a)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const r=this.key,a={};t.forEach(i=>{a[i]=!0}),this._setCheckedKeys(r,n,a)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(t,n,r){const a=this.getNode(t);a&&a.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const r=t[this.key],a=this.nodesMap[r];this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(t);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const hke=ne({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Me("tree"),n=Ge("NodeInstance"),r=Ge("RootTree");return()=>{const a=e.node,{data:i,store:o}=a;return e.renderContent?e.renderContent(Ze,{_self:n,node:a,data:i,store:o}):r.ctx.slots.default?r.ctx.slots.default({node:a,data:i}):Ze("span",{class:t.be("node","label")},[a.label])}}});var vke=Pe(hke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function C6(e){const t=Ge("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),Et("TreeNodeMap",n),{broadcastExpanded:r=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const x6=Symbol("dragEvents");function pke({props:e,ctx:t,el$:n,dropIndicator$:r,store:a}){const i=Me("tree"),o=H({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Et(x6,{treeNodeDragStart:({event:c,treeNode:f})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}o.value.draggingNode=f,t.emit("node-drag-start",f.node,c)},treeNodeDragOver:({event:c,treeNode:f})=>{const d=f,h=o.value.dropNode;h&&h.node.id!==d.node.id&&ga(h.$el,i.is("drop-inner"));const v=o.value.draggingNode;if(!v||!d)return;let p=!0,g=!0,m=!0,b=!0;typeof e.allowDrop=="function"&&(p=e.allowDrop(v.node,d.node,"prev"),b=g=e.allowDrop(v.node,d.node,"inner"),m=e.allowDrop(v.node,d.node,"next")),c.dataTransfer.dropEffect=g||p||m?"move":"none",(p||g||m)&&(h==null?void 0:h.node.id)!==d.node.id&&(h&&t.emit("node-drag-leave",v.node,h.node,c),t.emit("node-drag-enter",v.node,d.node,c)),(p||g||m)&&(o.value.dropNode=d),d.node.nextSibling===v.node&&(m=!1),d.node.previousSibling===v.node&&(p=!1),d.node.contains(v.node,!1)&&(g=!1),(v.node===d.node||v.node.contains(d.node))&&(p=!1,g=!1,m=!1);const _=d.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),w=n.value.getBoundingClientRect();let C;const S=p?g?.25:m?.45:1:-1,x=m?g?.75:p?.55:0:1;let T=-9999;const M=c.clientY-_.top;M<_.height*S?C="before":M>_.height*x?C="after":g?C="inner":C="none";const A=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),k=r.value;C==="before"?T=A.top-w.top:C==="after"&&(T=A.bottom-w.top),k.style.top=`${T}px`,k.style.left=`${A.right-w.left}px`,C==="inner"?lo(d.$el,i.is("drop-inner")):ga(d.$el,i.is("drop-inner")),o.value.showDropIndicator=C==="before"||C==="after",o.value.allowDrop=o.value.showDropIndicator||b,o.value.dropType=C,t.emit("node-drag-over",v.node,d.node,c)},treeNodeDragEnd:c=>{const{draggingNode:f,dropType:d,dropNode:h}=o.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&h){const v={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?h.node.parent.insertBefore(v,h.node):d==="after"?h.node.parent.insertAfter(v,h.node):d==="inner"&&h.node.insertChild(v),d!=="none"&&a.value.registerNode(v),ga(h.$el,i.is("drop-inner")),t.emit("node-drag-end",f.node,h.node,d,c),d!=="none"&&t.emit("node-drop",f.node,h.node,d,c)}f&&!h&&t.emit("node-drag-end",f.node,null,d,c),o.value.showDropIndicator=!1,o.value.draggingNode=null,o.value.dropNode=null,o.value.allowDrop=!0}}),{dragState:o}}const gke=ne({name:"ElTreeNode",components:{ElCollapseTransition:l1,ElCheckbox:ui,NodeContent:vke,ElIcon:Ke,Loading:Al},props:{node:{type:xx,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Me("tree"),{broadcastExpanded:r}=C6(e),a=Ge("RootTree"),i=H(!1),o=H(!1),s=H(null),l=H(null),u=H(null),c=Ge(x6),f=gt();Et("NodeInstance",f),e.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.props.children||"children";xe(()=>{const M=e.node.data[d];return M&&[...M]},()=>{e.node.updateChildren()}),xe(()=>e.node.indeterminate,M=>{p(e.node.checked,M)}),xe(()=>e.node.checked,M=>{p(M,e.node.indeterminate)}),xe(()=>e.node.expanded,M=>{Ue(()=>i.value=M),M&&(o.value=!0)});const h=M=>pk(a.props.nodeKey,M.data),v=M=>{const A=e.props.class;if(!A)return{};let k;if(it(A)){const{data:E}=M;k=A(E,M)}else k=A;return lt(k)?{[k]:!0}:k},p=(M,A)=>{(s.value!==M||l.value!==A)&&a.ctx.emit("check-change",e.node.data,M,A),s.value=M,l.value=A},g=M=>{Sx(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(e.node)),a.currentNode.value=e.node,a.props.expandOnClickNode&&b(),a.props.checkOnClickNode&&!e.node.disabled&&_(null,{target:{checked:!e.node.checked}}),a.ctx.emit("node-click",e.node.data,e.node,f,M)},m=M=>{a.instance.vnode.props.onNodeContextmenu&&(M.stopPropagation(),M.preventDefault()),a.ctx.emit("node-contextmenu",M,e.node.data,e.node,f)},b=()=>{e.node.isLeaf||(i.value?(a.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):(e.node.expand(),t.emit("node-expand",e.node.data,e.node,f)))},_=(M,A)=>{e.node.setChecked(A.target.checked,!a.props.checkStrictly),Ue(()=>{const k=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:k.getCheckedNodes(),checkedKeys:k.getCheckedKeys(),halfCheckedNodes:k.getHalfCheckedNodes(),halfCheckedKeys:k.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:l,getNodeKey:h,getNodeClass:v,handleSelectChange:p,handleClick:g,handleContextMenu:m,handleExpandIconClick:b,handleCheckChange:_,handleChildNodeExpand:(M,A,k)=>{r(A),a.ctx.emit("node-expand",M,A,k)},handleDragStart:M=>{a.props.draggable&&c.treeNodeDragStart({event:M,treeNode:e})},handleDragOver:M=>{M.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:M,treeNode:{$el:u.value,node:e.node}})},handleDrop:M=>{M.preventDefault()},handleDragEnd:M=>{a.props.draggable&&c.treeNodeDragEnd(M)},CaretRight:z5}}}),mke=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],yke=["aria-expanded"];function bke(e,t,n,r,a,i){const o=ct("el-icon"),s=ct("el-checkbox"),l=ct("loading"),u=ct("node-content"),c=ct("el-tree-node"),f=ct("el-collapse-transition");return dt((R(),K("div",{ref:"node$",class:V([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[1]||(t[1]=tt((...d)=>e.handleClick&&e.handleClick(...d),["stop"])),onContextmenu:t[2]||(t[2]=(...d)=>e.handleContextMenu&&e.handleContextMenu(...d)),onDragstart:t[3]||(t[3]=tt((...d)=>e.handleDragStart&&e.handleDragStart(...d),["stop"])),onDragover:t[4]||(t[4]=tt((...d)=>e.handleDragOver&&e.handleDragOver(...d),["stop"])),onDragend:t[5]||(t[5]=tt((...d)=>e.handleDragEnd&&e.handleDragEnd(...d),["stop"])),onDrop:t[6]||(t[6]=tt((...d)=>e.handleDrop&&e.handleDrop(...d),["stop"]))},[Y("div",{class:V(e.ns.be("node","content")),style:Ye({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(R(),ce(o,{key:0,class:V([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:tt(e.handleExpandIconClick,["stop"])},{default:re(()=>[(R(),ce(Ct(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):se("v-if",!0),e.showCheckbox?(R(),ce(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=tt(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):se("v-if",!0),e.node.loading?(R(),ce(o,{key:2,class:V([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:re(()=>[q(l)]),_:1},8,["class"])):se("v-if",!0),q(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),q(f,null,{default:re(()=>[!e.renderAfterExpand||e.childNodeRendered?dt((R(),K("div",{key:0,class:V(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(R(!0),K(je,null,Ot(e.node.childNodes,d=>(R(),ce(c,{key:e.getNodeKey(d),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:d,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,yke)),[[Kt,e.expanded]]):se("v-if",!0)]),_:1})],42,mke)),[[Kt,e.node.visible]])}var _ke=Pe(gke,[["render",bke],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function wke({el$:e},t){const n=Me("tree"),r=un([]),a=un([]);yt(()=>{o()}),cs(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),xe(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),bn(e,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const c=r.value.indexOf(l);let f;if([Xe.up,Xe.down].includes(u)){if(s.preventDefault(),u===Xe.up){f=c===-1?0:c!==0?c-1:r.value.length-1;const h=f;for(;!t.value.getNode(r.value[f].dataset.key).canFocus;){if(f--,f===h){f=-1;break}f<0&&(f=r.value.length-1)}}else{f=c===-1?0:c<r.value.length-1?c+1:0;const h=f;for(;!t.value.getNode(r.value[f].dataset.key).canFocus;){if(f++,f===h){f=-1;break}f>=r.value.length&&(f=0)}}f!==-1&&r.value[f].focus()}[Xe.left,Xe.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[Xe.enter,Xe.space].includes(u)&&d&&(s.preventDefault(),d.click())});const o=()=>{var s;r.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const Ske=ne({name:"ElTree",components:{ElTreeNode:_ke},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:fn}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=Ht(),r=Me("tree"),a=H(new dke({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const i=H(a.value.root),o=H(null),s=H(null),l=H(null),{broadcastExpanded:u}=C6(e),{dragState:c}=pke({props:e,ctx:t,el$:s,dropIndicator$:l,store:a});wke({el$:s},a);const f=P(()=>{const{childNodes:O}=i.value;return!O||O.length===0||O.every(({visible:$})=>!$)});xe(()=>e.currentNodeKey,O=>{a.value.setCurrentNodeKey(O)}),xe(()=>e.defaultCheckedKeys,O=>{a.value.setDefaultCheckedKey(O)}),xe(()=>e.defaultExpandedKeys,O=>{a.value.setDefaultExpandedKeys(O)}),xe(()=>e.data,O=>{a.value.setData(O)},{deep:!0}),xe(()=>e.checkStrictly,O=>{a.value.checkStrictly=O});const d=O=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(O)},h=O=>pk(e.nodeKey,O.data),v=O=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const $=a.value.getNode(O);if(!$)return[];const I=[$.data];let z=$.parent;for(;z&&z!==i.value;)I.push(z.data),z=z.parent;return I.reverse()},p=(O,$)=>a.value.getCheckedNodes(O,$),g=O=>a.value.getCheckedKeys(O),m=()=>{const O=a.value.getCurrentNode();return O?O.data:null},b=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const O=m();return O?O[e.nodeKey]:null},_=(O,$)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(O,$)},w=(O,$)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(O,$)},C=(O,$,I)=>{a.value.setChecked(O,$,I)},S=()=>a.value.getHalfCheckedNodes(),x=()=>a.value.getHalfCheckedKeys(),T=(O,$=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Sx(a,t.emit,()=>a.value.setUserCurrentNode(O,$))},M=(O,$=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Sx(a,t.emit,()=>a.value.setCurrentNodeKey(O,$))},A=O=>a.value.getNode(O),k=O=>{a.value.remove(O)},E=(O,$)=>{a.value.append(O,$)},D=(O,$)=>{a.value.insertBefore(O,$)},L=(O,$)=>{a.value.insertAfter(O,$)},B=(O,$,I)=>{u($),t.emit("node-expand",O,$,I)},N=(O,$)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(O,$)};return Et("RootTree",{ctx:t,props:e,store:a,root:i,currentNode:o,instance:gt()}),Et(So,void 0),{ns:r,store:a,root:i,currentNode:o,dragState:c,el$:s,dropIndicator$:l,isEmpty:f,filter:d,getNodeKey:h,getNodePath:v,getCheckedNodes:p,getCheckedKeys:g,getCurrentNode:m,getCurrentKey:b,setCheckedNodes:_,setCheckedKeys:w,setChecked:C,getHalfCheckedNodes:S,getHalfCheckedKeys:x,setCurrentNode:T,setCurrentKey:M,t:n,getNode:A,remove:k,append:E,insertBefore:D,insertAfter:L,handleNodeExpand:B,updateKeyChildren:N}}});function Cke(e,t,n,r,a,i){const o=ct("el-tree-node");return R(),K("div",{ref:"el$",class:V([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(R(!0),K(je,null,Ot(e.root.childNodes,s=>(R(),ce(o,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(R(),K("div",{key:0,class:V(e.ns.e("empty-block"))},[_e(e.$slots,"empty",{},()=>{var s;return[Y("span",{class:V(e.ns.e("empty-text"))},De((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):se("v-if",!0),dt(Y("div",{ref:"dropIndicator$",class:V(e.ns.e("drop-indicator"))},null,2),[[Kt,e.dragState.showDropIndicator]])],2)}var Iy=Pe(Ske,[["render",Cke],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Iy.install=e=>{e.component(Iy.name,Iy)};const x0=Iy,xke=x0,Tke=(e,{attrs:t},{tree:n,key:r})=>{const a=Me("tree-select"),i={...Ho(or(e),Object.keys(lc.props)),...t,valueKey:r,popperClass:P(()=>{const o=[a.e("popper")];return e.popperClass&&o.push(e.popperClass),o.join(" ")}),filterMethod:(o="")=>{e.filterMethod&&e.filterMethod(o),Ue(()=>{var s;(s=n.value)==null||s.filter(o)})},onVisibleChange:o=>{var s;(s=t.onVisibleChange)==null||s.call(t,o),e.filterable&&o&&i.filterMethod()}};return i},Mke=ne({extends:g0,setup(e,t){const n=g0.setup(e,t);delete n.selectOptionClick;const r=gt().proxy;return Ue(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Tx(e){return e||e===0}function gk(e){return Array.isArray(e)&&e.length}function sh(e){return Array.isArray(e)?e:Tx(e)?[e]:[]}function Dy(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(gk(s)){const l=Dy(s,t,n,r,o);if(l)return l}}}}function T6(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);gk(o)&&T6(o,t,n,i)}}const kke=(e,{attrs:t,slots:n,emit:r},{select:a,tree:i,key:o})=>{xe(()=>e.modelValue,()=>{e.showCheckbox&&Ue(()=>{const d=i.value;d&&!pa(d.getCheckedKeys(),sh(e.modelValue))&&d.setCheckedKeys(sh(e.modelValue))})},{immediate:!0,deep:!0});const s=P(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(d,h)=>{var v;const p=s.value[d];return it(p)?p(h,(v=i.value)==null?void 0:v.getNode(l("value",h))):h[p]},u=sh(e.modelValue).map(d=>Dy(e.data||[],h=>l("value",h)===d,h=>l("children",h),(h,v,p,g)=>g&&l("value",g))).filter(d=>Tx(d)),c=P(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const d=[];return T6(e.data.concat(e.cacheData),h=>{const v=l("value",h);d.push({value:v,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),d}),f=P(()=>c.value.reduce((d,h)=>({...d,[h.value]:h}),{}));return{...Ho(or(e),Object.keys(x0.props)),...t,nodeKey:o,expandOnClickNode:P(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:P(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:h,data:v,store:p})=>d(Mke,{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?sh(e.modelValue).filter(b=>b in f.value&&!i.value.getNode(b)&&!p.includes(b)):[],m=p.concat(g);if(e.checkStrictly)r(wt,e.multiple?m:m.includes(v)?v:void 0);else if(e.multiple)r(wt,i.value.getCheckedKeys(!0));else{const b=Dy([d],C=>!gk(l("children",C))&&!l("disabled",C),C=>l("children",C)),_=b?l("value",b):void 0,w=Tx(e.modelValue)&&!!Dy([d],C=>l("value",C)===e.modelValue,C=>l("children",C));r(wt,_===e.modelValue||w?void 0:_)}Ue(()=>{var b;const _=sh(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 Ake=ne({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ge(rg);return xe(()=>e.data,()=>{var n;e.data.forEach(a=>{t.cachedOptions.has(a.value)||t.cachedOptions.set(a.value,a)});const r=((n=t.selectWrapper)==null?void 0:n.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const Eke=ne({name:"ElTreeSelect",inheritAttrs:!1,props:{...lc.props,...x0.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,a=H(),i=H(),o=P(()=>e.nodeKey||e.valueKey||"value"),s=Tke(e,t,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=kke(e,t,{select:a,tree:i,key:o}),c=jt({});return r(c),yt(()=>{Object.assign(c,{...Ho(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...Ho(a.value,["focus","blur"])})}),()=>Ze(lc,jt({...s,ref:f=>a.value=f}),{...n,default:()=>[Ze(Ake,{data:l.value}),Ze(x0,jt({...u,ref:f=>i.value=f}))]})}});var Py=Pe(Eke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);Py.install=e=>{e.component(Py.name,Py)};const Ike=Py,Dke=Ike,mk=Symbol(),Pke={key:-1,level:-1,data:{}};var zh=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(zh||{}),Mx=(e=>(e.ADD="add",e.DELETE="delete",e))(Mx||{});const M6={type:Number,default:26},Lke=Le({data:{type:ue(Array),default:()=>Cn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:ue(Object),default:()=>Cn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:ue(Array),default:()=>Cn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:ue(Array),default:()=>Cn([])},indent:{type:Number,default:16},itemSize:M6,icon:{type:fn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:ue([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:ue(Function)},perfMode:{type:Boolean,default:!0}}),Rke=Le({node:{type:ue(Object),default:()=>Cn(Pke)},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:M6}),Oke=Le({node:{type:ue(Object),required:!0}}),k6="node-click",A6="node-expand",E6="node-collapse",I6="current-change",D6="check",P6="check-change",L6="node-contextmenu",$ke={[k6]:(e,t,n)=>e&&t&&n,[A6]:(e,t)=>e&&t,[E6]:(e,t)=>e&&t,[I6]:(e,t)=>e&&t,[D6]:(e,t)=>e&&t,[P6]:(e,t)=>e&&typeof t=="boolean",[L6]:(e,t,n)=>e&&t&&n},Nke={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function Bke(e,t){const n=H(new Set),r=H(new Set),{emit:a}=gt();xe([()=>t.value,()=>e.defaultCheckedKeys],()=>Ue(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:_,maxLevel:w}=t.value,C=n.value,S=new Set;for(let x=w-1;x>=1;--x){const T=_.get(x);T&&T.forEach(M=>{const A=M.children;if(A){let k=!0,E=!1;for(const D of A){const L=D.key;if(C.has(L))E=!0;else if(S.has(L)){k=!1,E=!0;break}else k=!1}k?C.add(M.key):E?(S.add(M.key),C.delete(M.key)):(C.delete(M.key),S.delete(M.key))}})}r.value=S},o=_=>n.value.has(_.key),s=_=>r.value.has(_.key),l=(_,w,C=!0)=>{const S=n.value,x=(T,M)=>{S[M?Mx.ADD:Mx.DELETE](T.key);const A=T.children;!e.checkStrictly&&A&&A.forEach(k=>{k.disabled||x(k,M)})};x(_,w),i(),C&&u(_,w)},u=(_,w)=>{const{checkedNodes:C,checkedKeys:S}=v(),{halfCheckedNodes:x,halfCheckedKeys:T}=p();a(D6,_.data,{checkedKeys:S,checkedNodes:C,halfCheckedKeys:T,halfCheckedNodes:x}),a(P6,_.data,w)};function c(_=!1){return v(_).checkedKeys}function f(_=!1){return v(_).checkedNodes}function d(){return p().halfCheckedKeys}function h(){return p().halfCheckedNodes}function v(_=!1){const w=[],C=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;n.value.forEach(x=>{const T=S.get(x);T&&(!_||_&&T.isLeaf)&&(C.push(x),w.push(T.data))})}return{checkedKeys:C,checkedNodes:w}}function p(){const _=[],w=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:C}=t.value;r.value.forEach(S=>{const x=C.get(S);x&&(w.push(S),_.push(x.data))})}return{halfCheckedNodes:_,halfCheckedKeys:w}}function g(_){n.value.clear(),r.value.clear(),b(_)}function m(_,w){if(t!=null&&t.value&&e.showCheckbox){const C=t.value.treeNodeMap.get(_);C&&l(C,w,!1)}}function b(_){if(t!=null&&t.value){const{treeNodeMap:w}=t.value;if(e.showCheckbox&&w&&_)for(const C of _){const S=w.get(C);S&&!o(S)&&l(S,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:g}}function Vke(e,t){const n=H(new Set([])),r=H(new Set([])),a=P(()=>it(e.filterMethod));function i(s){var l;if(!a.value)return;const u=new Set,c=r.value,f=n.value,d=[],h=((l=t.value)==null?void 0:l.treeNodes)||[],v=e.filterMethod;f.clear();function p(g){g.forEach(m=>{d.push(m),v!=null&&v(s,m.data)?d.forEach(_=>{u.add(_.key)}):m.isLeaf&&f.add(m.key);const b=m.children;if(b&&p(b),!m.isLeaf){if(!u.has(m.key))f.add(m.key);else if(b){let _=!0;for(const w of b)if(!f.has(w.key)){_=!1;break}_?c.add(m.key):c.delete(m.key)}}d.pop()})}return p(h),u}function o(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:o}}function zke(e,t){const n=H(new Set(e.defaultExpandedKeys)),r=H(),a=un();xe(()=>e.currentNodeKey,j=>{r.value=j},{immediate:!0}),xe(()=>e.data,j=>{Q(j)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:s,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h}=Bke(e,a),{doFilter:v,hiddenNodeKeySet:p,isForceHiddenExpandIcon:g}=Vke(e,a),m=P(()=>{var j;return((j=e.props)==null?void 0:j.value)||zh.KEY}),b=P(()=>{var j;return((j=e.props)==null?void 0:j.children)||zh.CHILDREN}),_=P(()=>{var j;return((j=e.props)==null?void 0:j.disabled)||zh.DISABLED}),w=P(()=>{var j;return((j=e.props)==null?void 0:j.label)||zh.LABEL}),C=P(()=>{const j=n.value,de=p.value,ve=[],ie=a.value&&a.value.treeNodes||[];function W(){const X=[];for(let oe=ie.length-1;oe>=0;--oe)X.push(ie[oe]);for(;X.length;){const oe=X.pop();if(oe&&(de.has(oe.key)||ve.push(oe),j.has(oe.key))){const pe=oe.children;if(pe){const Se=pe.length;for(let me=Se-1;me>=0;--me)X.push(pe[me])}}}}return W(),ve}),S=P(()=>C.value.length>0);function x(j){const de=new Map,ve=new Map;let ie=1;function W(oe,pe=1,Se=void 0){var me;const Ee=[];for(const Ce of oe){const we=A(Ce),Te={level:pe,key:we,data:Ce};Te.label=E(Ce),Te.parent=Se;const $e=M(Ce);Te.disabled=k(Ce),Te.isLeaf=!$e||$e.length===0,$e&&$e.length&&(Te.children=W($e,pe+1,Te)),Ee.push(Te),de.set(we,Te),ve.has(pe)||ve.set(pe,[]),(me=ve.get(pe))==null||me.push(Te)}return pe>ie&&(ie=pe),Ee}const X=W(j);return{treeNodeMap:de,levelTreeNodeMap:ve,maxLevel:ie,treeNodes:X}}function T(j){const de=v(j);de&&(n.value=de)}function M(j){return j[b.value]}function A(j){return j?j[m.value]:""}function k(j){return j[_.value]}function E(j){return j[w.value]}function D(j){n.value.has(j.key)?I(j):$(j)}function L(j){n.value=new Set(j)}function B(j,de){t(k6,j.data,j,de),N(j),e.expandOnClickNode&&D(j),e.showCheckbox&&e.checkOnClickNode&&!j.disabled&&s(j,!o(j),!0)}function N(j){U(j)||(r.value=j.key,t(I6,j.data,j))}function O(j,de){s(j,de)}function $(j){const de=n.value;if(a.value&&e.accordion){const{treeNodeMap:ve}=a.value;de.forEach(ie=>{const W=ve.get(ie);j&&j.level===(W==null?void 0:W.level)&&de.delete(ie)})}de.add(j.key),t(A6,j.data,j)}function I(j){n.value.delete(j.key),t(E6,j.data,j)}function z(j){return n.value.has(j.key)}function G(j){return!!j.disabled}function U(j){const de=r.value;return de!==void 0&&de===j.key}function Z(){var j,de;if(r.value)return(de=(j=a.value)==null?void 0:j.treeNodeMap.get(r.value))==null?void 0:de.data}function ae(){return r.value}function J(j){r.value=j}function Q(j){Ue(()=>a.value=x(j))}function ee(j){var de;const ve=Mt(j)?A(j):j;return(de=a.value)==null?void 0:de.treeNodeMap.get(ve)}return{tree:a,flattenTree:C,isNotEmpty:S,getKey:A,getChildren:M,toggleExpand:D,toggleCheckbox:s,isExpanded:z,isChecked:o,isIndeterminate:i,isDisabled:G,isCurrent:U,isForceHiddenExpandIcon:g,handleNodeClick:B,handleNodeCheck:O,getCurrentNode:Z,getCurrentKey:ae,setCurrentKey:J,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h,filter:T,setData:Q,getNode:ee,expandNode:$,collapseNode:I,setExpandedKeys:L}}var Fke=ne({name:"ElTreeNodeContent",props:Oke,setup(e){const t=Ge(mk),n=Me("tree");return()=>{const r=e.node,{data:a}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:a}):Ze("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const Hke=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],Gke=ne({name:"ElTreeNode"}),Wke=ne({...Gke,props:Rke,emits:Nke,setup(e,{emit:t}){const n=e,r=Ge(mk),a=Me("tree"),i=P(()=>{var f;return(f=r==null?void 0:r.props.indent)!=null?f:16}),o=P(()=>{var f;return(f=r==null?void 0:r.props.icon)!=null?f:z5}),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(L6,f,(p=n.node)==null?void 0:p.data,n.node)};return(f,d)=>{var h,v,p;return R(),K("div",{ref:"node$",class:V([y(a).b("node"),y(a).is("expanded",f.expanded),y(a).is("current",f.current),y(a).is("focusable",!f.disabled),y(a).is("checked",!f.disabled&&f.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":f.expanded,"aria-disabled":f.disabled,"aria-checked":f.checked,"data-key":(h=f.node)==null?void 0:h.key,onClick:tt(s,["stop"]),onContextmenu:c},[Y("div",{class:V(y(a).be("node","content")),style:Ye({paddingLeft:`${(f.node.level-1)*y(i)}px`,height:f.itemSize+"px"})},[y(o)?(R(),ce(y(Ke),{key:0,class:V([y(a).is("leaf",!!((v=f.node)!=null&&v.isLeaf)),y(a).is("hidden",f.hiddenExpandIcon),{expanded:!((p=f.node)!=null&&p.isLeaf)&&f.expanded},y(a).be("node","expand-icon")]),onClick:tt(l,["stop"])},{default:re(()=>[(R(),ce(Ct(y(o))))]),_:1},8,["class","onClick"])):se("v-if",!0),f.showCheckbox?(R(),ce(y(ui),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:d[0]||(d[0]=tt(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):se("v-if",!0),q(y(Fke),{node:f.node},null,8,["node"])],6)],42,Hke)}}});var Kke=Pe(Wke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const Uke=ne({name:"ElTreeV2"}),Yke=ne({...Uke,props:Lke,emits:$ke,setup(e,{expose:t,emit:n}){const r=e,a=Mr(),i=P(()=>r.itemSize);Et(mk,{ctx:{emit:n,slots:a},props:r,instance:gt()}),Et(So,void 0);const{t:o}=Ht(),s=Me("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:d,isChecked:h,isDisabled:v,isCurrent:p,isForceHiddenExpandIcon:g,handleNodeClick:m,handleNodeCheck:b,toggleCheckbox:_,getCurrentNode:w,getCurrentKey:C,setCurrentKey:S,getCheckedKeys:x,getCheckedNodes:T,getHalfCheckedKeys:M,getHalfCheckedNodes:A,setChecked:k,setCheckedKeys:E,filter:D,setData:L,getNode:B,expandNode:N,collapseNode:O,setExpandedKeys:$}=zke(r,n);return t({toggleCheckbox:_,getCurrentNode:w,getCurrentKey:C,setCurrentKey:S,getCheckedKeys:x,getCheckedNodes:T,getHalfCheckedKeys:M,getHalfCheckedNodes:A,setChecked:k,setCheckedKeys:E,filter:D,setData:L,getNode:B,expandNode:N,collapseNode:O,setExpandedKeys:$}),(I,z)=>{var G;return R(),K("div",{class:V([y(s).b(),{[y(s).m("highlight-current")]:I.highlightCurrent}]),role:"tree"},[y(u)?(R(),ce(y(V8),{key:0,"class-name":y(s).b("virtual-list"),data:y(l),total:y(l).length,height:I.height,"item-size":y(i),"perf-mode":I.perfMode},{default:re(({data:U,index:Z,style:ae})=>[(R(),ce(Kke,{key:U[Z].key,style:Ye(ae),node:U[Z],expanded:y(f)(U[Z]),"show-checkbox":I.showCheckbox,checked:y(h)(U[Z]),indeterminate:y(d)(U[Z]),"item-size":y(i),disabled:y(v)(U[Z]),current:y(p)(U[Z]),"hidden-expand-icon":y(g)(U[Z]),onClick:y(m),onToggle:y(c),onCheck:y(b)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(R(),K("div",{key:1,class:V(y(s).e("empty-block"))},[Y("span",{class:V(y(s).e("empty-text"))},De((G=I.emptyText)!=null?G:y(o)("el.tree.emptyText")),3)],2))],2)}}});var jke=Pe(Yke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const qke=_t(jke),R6=Symbol("uploadContextKey"),Xke="ElUpload";class Zke extends Error{constructor(t,n,r,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function wL(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 Zke(r,n.status,t.method,e)}function Jke(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Qke=e=>{typeof XMLHttpRequest>"u"&&jn(Xke,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const o=i;o.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(o)});const r=new FormData;if(e.data)for(const[i,o]of Object.entries(e.data))He(o)&&o.length?r.append(i,...o):r.append(i,o);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(wL(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(wL(n,e,t));e.onSuccess(Jke(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const a=e.headers||{};if(a instanceof Headers)a.forEach((i,o)=>t.setRequestHeader(o,i));else for(const[i,o]of Object.entries(a))Kn(o)||t.setRequestHeader(i,String(o));return t.send(r),t},O6=["text","picture","picture-card"];let eAe=1;const kx=()=>Date.now()+eAe++,$6=Le({action:{type:String,default:"#"},headers:{type:ue(Object)},method:{type:String,default:"post"},data:{type:ue([Object,Function,Promise]),default:()=>Cn({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:ue(Array),default:()=>Cn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:O6,default:"text"},httpRequest:{type:ue(Function),default:Qke},disabled:Boolean,limit:Number}),tAe=Le({...$6,beforeUpload:{type:ue(Function),default:rn},beforeRemove:{type:ue(Function)},onRemove:{type:ue(Function),default:rn},onChange:{type:ue(Function),default:rn},onPreview:{type:ue(Function),default:rn},onSuccess:{type:ue(Function),default:rn},onProgress:{type:ue(Function),default:rn},onError:{type:ue(Function),default:rn},onExceed:{type:ue(Function),default:rn}}),nAe=Le({files:{type:ue(Array),default:()=>Cn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:ue(Function),default:rn},listType:{type:String,values:O6,default:"text"}}),rAe={remove:e=>!!e},aAe=["onKeydown"],iAe=["src"],oAe=["onClick"],sAe=["title"],lAe=["onClick"],uAe=["onClick"],cAe=ne({name:"ElUploadList"}),fAe=ne({...cAe,props:nAe,emits:rAe,setup(e,{emit:t}){const{t:n}=Ht(),r=Me("upload"),a=Me("icon"),i=Me("list"),o=wa(),s=H(!1),l=u=>{t("remove",u)};return(u,c)=>(R(),ce(EV,{tag:"ul",class:V([y(r).b("list"),y(r).bm("list",u.listType),y(r).is("disabled",y(o))]),name:y(i).b()},{default:re(()=>[(R(!0),K(je,null,Ot(u.files,f=>(R(),K("li",{key:f.uid||f.name,class:V([y(r).be("list","item"),y(r).is(f.status),{focusing:s.value}]),tabindex:"0",onKeydown:Ft(d=>!y(o)&&l(f),["delete"]),onFocus:c[0]||(c[0]=d=>s.value=!0),onBlur:c[1]||(c[1]=d=>s.value=!1),onClick:c[2]||(c[2]=d=>s.value=!1)},[_e(u.$slots,"default",{file:f},()=>[u.listType==="picture"||f.status!=="uploading"&&u.listType==="picture-card"?(R(),K("img",{key:0,class:V(y(r).be("list","item-thumbnail")),src:f.url,alt:""},null,10,iAe)):se("v-if",!0),f.status==="uploading"||u.listType!=="picture-card"?(R(),K("div",{key:1,class:V(y(r).be("list","item-info"))},[Y("a",{class:V(y(r).be("list","item-name")),onClick:tt(d=>u.handlePreview(f),["prevent"])},[q(y(Ke),{class:V(y(a).m("document"))},{default:re(()=>[q(y(Gie))]),_:1},8,["class"]),Y("span",{class:V(y(r).be("list","item-file-name")),title:f.name},De(f.name),11,sAe)],10,oAe),f.status==="uploading"?(R(),ce(y(I8),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:Ye(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):se("v-if",!0)],2)):se("v-if",!0),Y("label",{class:V(y(r).be("list","item-status-label"))},[u.listType==="text"?(R(),ce(y(Ke),{key:0,class:V([y(a).m("upload-success"),y(a).m("circle-check")])},{default:re(()=>[q(y(fM))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(R(),ce(y(Ke),{key:1,class:V([y(a).m("upload-success"),y(a).m("check")])},{default:re(()=>[q(y(Jp))]),_:1},8,["class"])):se("v-if",!0)],2),y(o)?se("v-if",!0):(R(),ce(y(Ke),{key:2,class:V(y(a).m("close")),onClick:d=>l(f)},{default:re(()=>[q(y(Bi))]),_:2},1032,["class","onClick"])),se(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),se(" This is a bug which needs to be fixed "),se(" TODO: Fix the incorrect navigation interaction "),y(o)?se("v-if",!0):(R(),K("i",{key:3,class:V(y(a).m("close-tip"))},De(y(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(R(),K("span",{key:4,class:V(y(r).be("list","item-actions"))},[Y("span",{class:V(y(r).be("list","item-preview")),onClick:d=>u.handlePreview(f)},[q(y(Ke),{class:V(y(a).m("zoom-in"))},{default:re(()=>[q(y(W5))]),_:1},8,["class"])],10,lAe),y(o)?se("v-if",!0):(R(),K("span",{key:0,class:V(y(r).be("list","item-delete")),onClick:d=>l(f)},[q(y(Ke),{class:V(y(a).m("delete"))},{default:re(()=>[q(y(Nie))]),_:1},8,["class"])],10,uAe))],2)):se("v-if",!0)])],42,aAe))),128)),_e(u.$slots,"append")]),_:3},8,["class","name"]))}});var SL=Pe(fAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const dAe=Le({disabled:{type:Boolean,default:!1}}),hAe={file:e=>He(e)},vAe=["onDrop","onDragover"],N6="ElUploadDrag",pAe=ne({name:N6}),gAe=ne({...pAe,props:dAe,emits:hAe,setup(e,{emit:t}){const n=Ge(R6);n||jn(N6,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=Me("upload"),a=H(!1),i=wa(),o=l=>{if(i.value)return;a.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),c=n.accept.value;if(!c){t("file",u);return}const f=u.filter(d=>{const{type:h,name:v}=d,p=v.includes(".")?`.${v.split(".").pop()}`:"",g=h.replace(/\/.*$/,"");return c.split(",").map(m=>m.trim()).filter(m=>m).some(m=>m.startsWith(".")?p===m:/\/\*$/.test(m)?g===m.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(m)?h===m:!1)});t("file",f)},s=()=>{i.value||(a.value=!0)};return(l,u)=>(R(),K("div",{class:V([y(r).b("dragger"),y(r).is("dragover",a.value)]),onDrop:tt(o,["prevent"]),onDragover:tt(s,["prevent"]),onDragleave:u[0]||(u[0]=tt(c=>a.value=!1,["prevent"]))},[_e(l.$slots,"default")],42,vAe))}});var mAe=Pe(gAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const yAe=Le({...$6,beforeUpload:{type:ue(Function),default:rn},onRemove:{type:ue(Function),default:rn},onStart:{type:ue(Function),default:rn},onSuccess:{type:ue(Function),default:rn},onProgress:{type:ue(Function),default:rn},onError:{type:ue(Function),default:rn},onExceed:{type:ue(Function),default:rn}}),bAe=["onKeydown"],_Ae=["name","multiple","accept"],wAe=ne({name:"ElUploadContent",inheritAttrs:!1}),SAe=ne({...wAe,props:yAe,setup(e,{expose:t}){const n=e,r=Me("upload"),a=wa(),i=un({}),o=un(),s=p=>{if(p.length===0)return;const{autoUpload:g,limit:m,fileList:b,multiple:_,onStart:w,onExceed:C}=n;if(m&&b.length+p.length>m){C(p,b);return}_||(p=p.slice(0,1));for(const S of p){const x=S;x.uid=kx(),w(x),g&&l(x)}},l=async p=>{if(o.value.value="",!n.beforeUpload)return c(p);let g,m={};try{const _=n.data,w=n.beforeUpload(p);m=Jy(n.data)?u0(n.data):n.data,g=await w,Jy(n.data)&&pa(_,m)&&(m=u0(n.data))}catch{g=!1}if(g===!1){n.onRemove(p);return}let b=p;g instanceof Blob&&(g instanceof File?b=g:b=new File([g],p.name,{type:p.type})),c(Object.assign(b,{uid:p.uid}),m)},u=async(p,g)=>it(p)?p(g):p,c=async(p,g)=>{const{headers:m,data:b,method:_,withCredentials:w,name:C,action:S,onProgress:x,onSuccess:T,onError:M,httpRequest:A}=n;try{g=await u(g??b,p)}catch{n.onRemove(p);return}const{uid:k}=p,E={headers:m||{},withCredentials:w,file:p,data:g,method:_,filename:C,action:S,onProgress:L=>{x(L,p)},onSuccess:L=>{T(L,p),delete i.value[k]},onError:L=>{M(L,p),delete i.value[k]}},D=A(E);i.value[k]=D,D instanceof Promise&&D.then(E.onSuccess,E.onError)},f=p=>{const g=p.target.files;g&&s(Array.from(g))},d=()=>{a.value||(o.value.value="",o.value.click())},h=()=>{d()};return t({abort:p=>{Bre(i.value).filter(p?([m])=>String(p.uid)===m:()=>!0).forEach(([m,b])=>{b instanceof XMLHttpRequest&&b.abort(),delete i.value[m]})},upload:l}),(p,g)=>(R(),K("div",{class:V([y(r).b(),y(r).m(p.listType),y(r).is("drag",p.drag)]),tabindex:"0",onClick:d,onKeydown:Ft(tt(h,["self"]),["enter","space"])},[p.drag?(R(),ce(mAe,{key:0,disabled:y(a),onFile:s},{default:re(()=>[_e(p.$slots,"default")]),_:3},8,["disabled"])):_e(p.$slots,"default",{key:1}),Y("input",{ref_key:"inputRef",ref:o,class:V(y(r).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=tt(()=>{},["stop"]))},null,42,_Ae)],42,bAe))}});var CL=Pe(SAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const xL="ElUpload",TL=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},CAe=(e,t)=>{const n=xZ(e,"fileList",void 0,{passive:!0}),r=d=>n.value.find(h=>h.uid===d.uid);function a(d){var h;(h=t.value)==null||h.abort(d)}function i(d=["ready","uploading","success","fail"]){n.value=n.value.filter(h=>!d.includes(h.status))}const o=(d,h)=>{const v=r(h);v&&(console.error(d),v.status="fail",n.value.splice(n.value.indexOf(v),1),e.onError(d,v,n.value),e.onChange(v,n.value))},s=(d,h)=>{const v=r(h);v&&(e.onProgress(d,v,n.value),v.status="uploading",v.percentage=Math.round(d.percent))},l=(d,h)=>{const v=r(h);v&&(v.status="success",v.response=d,e.onSuccess(d,v,n.value),e.onChange(v,n.value))},u=d=>{Kn(d.uid)&&(d.uid=kx());const h={name:d.name,percentage:0,status:"ready",size:d.size,raw:d,uid:d.uid};if(e.listType==="picture-card"||e.listType==="picture")try{h.url=URL.createObjectURL(d)}catch(v){v.message,e.onError(v,h,n.value)}n.value=[...n.value,h],e.onChange(h,n.value)},c=async d=>{const h=d instanceof File?r(d):d;h||jn(xL,"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),TL(p)};e.beforeRemove?await e.beforeRemove(h,n.value)!==!1&&v(h):v(h)};function f(){n.value.filter(({status:d})=>d==="ready").forEach(({raw:d})=>{var h;return d&&((h=t.value)==null?void 0:h.upload(d))})}return xe(()=>e.listType,d=>{d!=="picture-card"&&d!=="picture"||(n.value=n.value.map(h=>{const{raw:v,url:p}=h;if(!p&&v)try{h.url=URL.createObjectURL(v)}catch(g){e.onError(g,h,n.value)}return h}))}),xe(n,d=>{for(const h of d)h.uid||(h.uid=kx()),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:TL}},xAe=ne({name:"ElUpload"}),TAe=ne({...xAe,props:tAe,setup(e,{expose:t}){const n=e,r=wa(),a=un(),{abort:i,submit:o,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:d,handleProgress:h,revokeFileObjectURL:v}=CAe(n,a),p=P(()=>n.listType==="picture-card"),g=P(()=>({...n,fileList:l.value,onStart:u,onProgress:h,onSuccess:d,onError:c,onRemove:f}));return wn(()=>{l.value.forEach(v)}),Et(R6,{accept:kn(n,"accept")}),t({abort:i,submit:o,clearFiles:s,handleStart:u,handleRemove:f}),(m,b)=>(R(),K("div",null,[y(p)&&m.showFileList?(R(),ce(SL,{key:0,disabled:y(r),"list-type":m.listType,files:y(l),"handle-preview":m.onPreview,onRemove:y(f)},Jo({append:re(()=>[q(CL,St({ref_key:"uploadRef",ref:a},y(g)),{default:re(()=>[m.$slots.trigger?_e(m.$slots,"trigger",{key:0}):se("v-if",!0),!m.$slots.trigger&&m.$slots.default?_e(m.$slots,"default",{key:1}):se("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:re(({file:_})=>[_e(m.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):se("v-if",!0),!y(p)||y(p)&&!m.showFileList?(R(),ce(CL,St({key:1,ref_key:"uploadRef",ref:a},y(g)),{default:re(()=>[m.$slots.trigger?_e(m.$slots,"trigger",{key:0}):se("v-if",!0),!m.$slots.trigger&&m.$slots.default?_e(m.$slots,"default",{key:1}):se("v-if",!0)]),_:3},16)):se("v-if",!0),m.$slots.trigger?_e(m.$slots,"default",{key:2}):se("v-if",!0),_e(m.$slots,"tip"),!y(p)&&m.showFileList?(R(),ce(SL,{key:3,disabled:y(r),"list-type":m.listType,files:y(l),"handle-preview":m.onPreview,onRemove:y(f)},Jo({_:2},[m.$slots.file?{name:"default",fn:re(({file:_})=>[_e(m.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):se("v-if",!0)]))}});var MAe=Pe(TAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const kAe=_t(MAe);var AAe=[Dce,Hce,vhe,WTe,whe,Ahe,jz,Fhe,Hhe,_r,tF,spe,dpe,Mpe,kpe,Fge,kge,Yge,ui,Ype,EF,ime,Cme,xme,pme,Qme,Cce,fye,dye,hye,vye,pye,O0e,K0e,U0e,lbe,c8,Sbe,h1e,v1e,p1e,b8,Ofe,$fe,Ke,s_e,_8,Rr,w8,w_e,F_e,H_e,G_e,W_e,Z_e,nSe,lSe,mSe,Kz,I8,$F,uge,lge,RSe,VSe,eme,hs,lc,g0,Awe,ECe,NCe,BCe,vxe,bxe,q8,Ixe,Vxe,zxe,Zxe,iTe,oTe,GTe,iMe,oMe,ep,fMe,Vve,mMe,SMe,CMe,ea,qMe,cke,xke,Dke,qke,kAe];const Ti="ElInfiniteScroll",EAe=50,IAe=200,DAe=0,PAe={delay:{type:Number,default:IAe},distance:{type:Number,default:DAe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},yk=(e,t)=>Object.entries(PAe).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},{}),B6=e=>{const{observer:t}=e[Ti];t&&(t.disconnect(),delete e[Ti].observer)},LAe=(e,t)=>{const{container:n,containerEl:r,instance:a,observer:i,lastScrollTop:o}=e[Ti],{disabled:s,distance:l}=yk(e,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=r,d=f-o;if(e[Ti].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=AZ(e,r);h=f+u>=g+v+p-l}h&&t.call(a)};function V_(e,t){const{containerEl:n,instance:r}=e[Ti],{disabled:a}=yk(e,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):B6(e))}const RAe={async mounted(e,t){const{instance:n,value:r}=t;it(r)||jn(Ti,"'v-infinite-scroll' binding value must be a function"),await Ue();const{delay:a,immediate:i}=yk(e,n),o=cM(e,!0),s=o===window?document.documentElement:o,l=Yu(LAe.bind(null,e,r),a);if(o){if(e[Ti]={instance:n,container:o,containerEl:s,delay:a,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(Yu(V_.bind(null,e,r),EAe));e[Ti].observer=u,u.observe(e,{childList:!0,subtree:!0}),V_(e,r)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:n}=e[Ti];t==null||t.removeEventListener("scroll",n),B6(e)},async updated(e){if(!e[Ti])await Ue();else{const{containerEl:t,cb:n,observer:r}=e[Ti];t.clientHeight&&r&&V_(e,n)}}},Ax=RAe;Ax.install=e=>{e.directive("InfiniteScroll",Ax)};const OAe=Ax;function $Ae(e){let t;const n=H(!1),r=jt({...e,originalPosition:"",originalOverflow:"",visible:!1});function a(d){r.text=d}function i(){const d=r.parent,h=f.ns;if(!d.vLoadingAddClassList){let v=d.getAttribute("loading-number");v=Number.parseInt(v)-1,v?d.setAttribute("loading-number",v.toString()):(ga(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),ga(d,h.bm("parent","hidden"))}o(),c.unmount()}function o(){var d,h;(h=(d=f.$el)==null?void 0:d.parentNode)==null||h.removeChild(f.$el)}function s(){var d;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(l,400),r.visible=!1,(d=e.closed)==null||d.call(e))}function l(){if(!n.value)return;const d=r.parent;n.value=!1,d.vLoadingAddClassList=void 0,i()}const u=ne({name:"ElLoading",setup(d,{expose:h}){const{ns:v,zIndex:p}=a1("loading");return h({ns:v,zIndex:p}),()=>{const g=r.spinner||r.svg,m=Ze("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[Ze("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=r.text?Ze("p",{class:v.b("text")},[r.text]):void 0;return Ze(Bn,{name:v.b("fade"),onAfterLeave:l},{default:re(()=>[dt(q("div",{style:{backgroundColor:r.background||""},class:[v.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[Ze("div",{class:v.b("spinner")},[m,b])]),[[Kt,r.visible]])])})}}}),c=RV(u),f=c.mount(document.createElement("div"));return{...or(r),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let Qg;const Ex=function(e={}){if(!Vt)return;const t=NAe(e);if(t.fullscreen&&Qg)return Qg;const n=$Ae({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(Qg=void 0)}});BAe(t,t.parent,n),ML(t,t.parent,n),t.parent.vLoadingAddClassList=()=>ML(t,t.parent,n);let r=t.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",t.parent.setAttribute("loading-number",r),t.parent.appendChild(n.$el),Ue(()=>n.visible.value=t.visible),t.fullscreen&&(Qg=n),n},NAe=e=>{var t,n,r,a;let i;return lt(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(r=e.lock)!=null?r:!1,customClass:e.customClass||"",visible:(a=e.visible)!=null?a:!0,target:i}},BAe=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=Hs(document.body,"position"),n.originalOverflow.value=Hs(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=Hs(document.body,"position"),await Ue();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${e.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(Hs(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=Hs(t,"position");for(const[i,o]of Object.entries(a))n.$el.style[i]=o},ML=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?ga(t,r.bm("parent","relative")):lo(t,r.bm("parent","relative")),e.fullscreen&&e.lock?lo(t,r.bm("parent","hidden")):ga(t,r.bm("parent","hidden"))},Ix=Symbol("ElLoading"),kL=(e,t)=>{var n,r,a,i;const o=t.instance,s=d=>Mt(t.value)?t.value[d]:void 0,l=d=>{const h=lt(d)&&(o==null?void 0:o[d])||d;return h&&H(h)},u=d=>l(s(d)||e.getAttribute(`element-loading-${xl(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[Ix]={options:f,instance:Ex(f)}},VAe=(e,t)=>{for(const n of Object.keys(t))cn(t[n])&&(t[n].value=e[n])},AL={mounted(e,t){t.value&&kL(e,t)},updated(e,t){const n=e[Ix];t.oldValue!==t.value&&(t.value&&!t.oldValue?kL(e,t):t.value&&t.oldValue?Mt(t.value)&&VAe(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Ix])==null||t.instance.close()}},zAe={install(e){e.directive("loading",AL),e.config.globalProperties.$loading=Ex},directive:AL,service:Ex},V6=["success","info","warning","error"],ca=Cn({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Vt?document.body:void 0}),FAe=Le({customClass:{type:String,default:ca.customClass},center:{type:Boolean,default:ca.center},dangerouslyUseHTMLString:{type:Boolean,default:ca.dangerouslyUseHTMLString},duration:{type:Number,default:ca.duration},icon:{type:fn,default:ca.icon},id:{type:String,default:ca.id},message:{type:ue([String,Object,Function]),default:ca.message},onClose:{type:ue(Function),required:!1},showClose:{type:Boolean,default:ca.showClose},type:{type:String,values:V6,default:ca.type},offset:{type:Number,default:ca.offset},zIndex:{type:Number,default:ca.zIndex},grouping:{type:Boolean,default:ca.grouping},repeatNum:{type:Number,default:ca.repeatNum}}),HAe={destroy:()=>!0},Ai=HB([]),GAe=e=>{const t=Ai.findIndex(a=>a.id===e),n=Ai[t];let r;return t>0&&(r=Ai[t-1]),{current:n,prev:r}},WAe=e=>{const{prev:t}=GAe(e);return t?t.vm.exposed.bottom.value:0},KAe=(e,t)=>Ai.findIndex(r=>r.id===e)>0?20:t,UAe=["id"],YAe=["innerHTML"],jAe=ne({name:"ElMessage"}),qAe=ne({...jAe,props:FAe,emits:HAe,setup(e,{expose:t}){const n=e,{Close:r}=vM,{ns:a,zIndex:i}=a1("message"),{currentZIndex:o,nextZIndex:s}=i,l=H(),u=H(!1),c=H(0);let f;const d=P(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=P(()=>{const x=n.type;return{[a.bm("icon",x)]:x&&dl[x]}}),v=P(()=>n.icon||dl[n.type]||""),p=P(()=>WAe(n.id)),g=P(()=>KAe(n.id,n.offset)+p.value),m=P(()=>c.value+g.value),b=P(()=>({top:`${g.value}px`,zIndex:o.value}));function _(){n.duration!==0&&({stop:f}=ic(()=>{C()},n.duration))}function w(){f==null||f()}function C(){u.value=!1}function S({code:x}){x===Xe.esc&&C()}return yt(()=>{_(),s(),u.value=!0}),xe(()=>n.repeatNum,()=>{w(),_()}),bn(document,"keydown",S),$r(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:m,close:C}),(x,T)=>(R(),ce(Bn,{name:y(a).b("fade"),onBeforeLeave:x.onClose,onAfterLeave:T[0]||(T[0]=M=>x.$emit("destroy")),persisted:""},{default:re(()=>[dt(Y("div",{id:x.id,ref_key:"messageRef",ref:l,class:V([y(a).b(),{[y(a).m(x.type)]:x.type&&!x.icon},y(a).is("center",x.center),y(a).is("closable",x.showClose),x.customClass]),style:Ye(y(b)),role:"alert",onMouseenter:w,onMouseleave:_},[x.repeatNum>1?(R(),ce(y(jz),{key:0,value:x.repeatNum,type:y(d),class:V(y(a).e("badge"))},null,8,["value","type","class"])):se("v-if",!0),y(v)?(R(),ce(y(Ke),{key:1,class:V([y(a).e("icon"),y(h)])},{default:re(()=>[(R(),ce(Ct(y(v))))]),_:1},8,["class"])):se("v-if",!0),_e(x.$slots,"default",{},()=>[x.dangerouslyUseHTMLString?(R(),K(je,{key:1},[se(" Caution here, message could've been compromised, never use user's input as message "),Y("p",{class:V(y(a).e("content")),innerHTML:x.message},null,10,YAe)],2112)):(R(),K("p",{key:0,class:V(y(a).e("content"))},De(x.message),3))]),x.showClose?(R(),ce(y(Ke),{key:2,class:V(y(a).e("closeBtn")),onClick:tt(C,["stop"])},{default:re(()=>[q(y(r))]),_:1},8,["class","onClick"])):se("v-if",!0)],46,UAe),[[Kt,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var XAe=Pe(qAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let ZAe=1;const z6=e=>{const t=!e||lt(e)||Tn(e)||it(e)?{message:e}:e,n={...ca,...t};if(!n.appendTo)n.appendTo=document.body;else if(lt(n.appendTo)){let r=document.querySelector(n.appendTo);ai(r)||(r=document.body),n.appendTo=r}return n},JAe=e=>{const t=Ai.indexOf(e);if(t===-1)return;Ai.splice(t,1);const{handler:n}=e;n.close()},QAe=({appendTo:e,...t},n)=>{const r=`message_${ZAe++}`,a=t.onClose,i=document.createElement("div"),o={...t,id:r,onClose:()=>{a==null||a(),JAe(c)},onDestroy:()=>{jf(null,i)}},s=q(XAe,o,it(o.message)||Tn(o.message)?{default:it(o.message)?o.message:()=>o.message}:null);s.appContext=n||cd._context,jf(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},cd=(e={},t)=>{if(!Vt)return{close:()=>{}};if(at(LC.max)&&Ai.length>=LC.max)return{close:()=>{}};const n=z6(e);if(n.grouping&&Ai.length){const a=Ai.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===n.message});if(a)return a.props.repeatNum+=1,a.props.type=n.type,a.handler}const r=QAe(n,t);return Ai.push(r),r.handler};V6.forEach(e=>{cd[e]=(t={},n)=>{const r=z6(t);return cd({...r,type:e},n)}});function eEe(e){for(const t of Ai)(!e||e===t.props.type)&&t.handler.close()}cd.closeAll=eEe;cd._context=null;const tEe=Y5(cd,"$message"),nEe=ne({name:"ElMessageBox",directives:{TrapFocus:wve},components:{ElButton:_r,ElFocusTrap:o1,ElInput:Rr,ElOverlay:KM,ElIcon:Ke,...vM},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Xb},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}=a1("message-box",P(()=>e.buttonSize)),{t:o}=n,{nextZIndex:s}=r,l=H(!1),u=jt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),c=P(()=>{const B=u.type;return{[a.bm("icon",B)]:B&&dl[B]}}),f=si(),d=si(),h=P(()=>u.icon||dl[u.type]||""),v=P(()=>!!u.message),p=H(),g=H(),m=H(),b=H(),_=H(),w=P(()=>u.confirmButtonClass);xe(()=>u.inputValue,async B=>{await Ue(),e.boxType==="prompt"&&B!==null&&k()},{immediate:!0}),xe(()=>l.value,B=>{var N,O;B&&(e.boxType!=="prompt"&&(u.autofocus?m.value=(O=(N=_.value)==null?void 0:N.$el)!=null?O:p.value:m.value=p.value),u.zIndex=s()),e.boxType==="prompt"&&(B?Ue().then(()=>{var $;b.value&&b.value.$el&&(u.autofocus?m.value=($=E())!=null?$:p.value:m.value=p.value)}):(u.editorErrorMessage="",u.validateError=!1))});const C=P(()=>e.draggable);j5(p,g,C),yt(async()=>{await Ue(),e.closeOnHashChange&&window.addEventListener("hashchange",S)}),wn(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",S)});function S(){l.value&&(l.value=!1,Ue(()=>{u.action&&t("action",u.action)}))}const x=()=>{e.closeOnClickModal&&A(u.distinguishCancelAndClose?"close":"cancel")},T=MM(x),M=B=>{if(u.inputType!=="textarea")return B.preventDefault(),A("confirm")},A=B=>{var N;e.boxType==="prompt"&&B==="confirm"&&!k()||(u.action=B,u.beforeClose?(N=u.beforeClose)==null||N.call(u,B,u,S):S())},k=()=>{if(e.boxType==="prompt"){const B=u.inputPattern;if(B&&!B.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const N=u.inputValidator;if(typeof N=="function"){const O=N(u.inputValue);if(O===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof O=="string")return u.editorErrorMessage=O,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},E=()=>{const B=b.value.$refs;return B.input||B.textarea},D=()=>{A("close")},L=()=>{e.closeOnPressEscape&&D()};return e.lockScroll&&Z5(l),{...or(u),ns:a,overlayEvent:T,visible:l,hasMessage:v,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:h,confirmButtonClasses:w,rootRef:p,focusStartRef:m,headerRef:g,inputRef:b,confirmRef:_,doClose:S,handleClose:D,onCloseRequested:L,handleWrapperClick:x,handleInputEnter:M,handleAction:A,t:o}}}),rEe=["aria-label","aria-describedby"],aEe=["aria-label"],iEe=["id"];function oEe(e,t,n,r,a,i){const o=ct("el-icon"),s=ct("close"),l=ct("el-input"),u=ct("el-button"),c=ct("el-focus-trap"),f=ct("el-overlay");return R(),ce(Bn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=d=>e.$emit("vanish")),persisted:""},{default:re(()=>[dt(q(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:re(()=>[Y("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:V(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...d)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...d)),onMousedown:t[9]||(t[9]=(...d)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...d)),onMouseup:t[10]||(t[10]=(...d)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...d))},[q(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:re(()=>[Y("div",{ref:"rootRef",class:V([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ye(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=tt(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(R(),K("div",{key:0,ref:"headerRef",class:V(e.ns.e("header"))},[Y("div",{class:V(e.ns.e("title"))},[e.iconComponent&&e.center?(R(),ce(o,{key:0,class:V([e.ns.e("status"),e.typeClass])},{default:re(()=>[(R(),ce(Ct(e.iconComponent)))]),_:1},8,["class"])):se("v-if",!0),Y("span",null,De(e.title),1)],2),e.showClose?(R(),K("button",{key:0,type:"button",class:V(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Ft(tt(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[q(o,{class:V(e.ns.e("close"))},{default:re(()=>[q(s)]),_:1},8,["class"])],42,aEe)):se("v-if",!0)],2)):se("v-if",!0),Y("div",{id:e.contentId,class:V(e.ns.e("content"))},[Y("div",{class:V(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(R(),ce(o,{key:0,class:V([e.ns.e("status"),e.typeClass])},{default:re(()=>[(R(),ce(Ct(e.iconComponent)))]),_:1},8,["class"])):se("v-if",!0),e.hasMessage?(R(),K("div",{key:1,class:V(e.ns.e("message"))},[_e(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(R(),ce(Ct(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(R(),ce(Ct(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:re(()=>[Ut(De(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):se("v-if",!0)],2),dt(Y("div",{class:V(e.ns.e("input"))},[q(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=d=>e.inputValue=d),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:V({invalid:e.validateError}),onKeydown:Ft(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),Y("div",{class:V(e.ns.e("errormsg")),style:Ye({visibility:e.editorErrorMessage?"visible":"hidden"})},De(e.editorErrorMessage),7)],2),[[Kt,e.showInput]])],10,iEe),Y("div",{class:V(e.ns.e("btns"))},[e.showCancelButton?(R(),ce(u,{key:0,loading:e.cancelButtonLoading,class:V([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=d=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Ft(tt(d=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:re(()=>[Ut(De(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):se("v-if",!0),dt(q(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:V([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=d=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Ft(tt(d=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:re(()=>[Ut(De(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Kt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,rEe)]),_:3},8,["z-index","overlay-class","mask"]),[[Kt,e.visible]])]),_:3})}var sEe=Pe(nEe,[["render",oEe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const up=new Map,lEe=e=>{let t=document.body;return e.appendTo&&(lt(e.appendTo)&&(t=document.querySelector(e.appendTo)),ai(e.appendTo)&&(t=e.appendTo),ai(t)||(t=document.body)),t},uEe=(e,t,n=null)=>{const r=q(sEe,e,it(e.message)||Tn(e.message)?{default:it(e.message)?e.message:()=>e.message}:null);return r.appContext=n,jf(r,t),lEe(e).appendChild(t.firstElementChild),r.component},cEe=()=>document.createElement("div"),fEe=(e,t)=>{const n=cEe();e.onVanish=()=>{jf(null,n),up.delete(a)},e.onAction=i=>{const o=up.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=uEe(e,n,t),a=r.proxy;for(const i in e)Nt(e,i)&&!Nt(a.$props,i)&&(a[i]=e[i]);return a.visible=!0,a};function Dd(e,t=null){if(!Vt)return Promise.reject();let n;return lt(e)||Tn(e)?e={message:e}:n=e.callback,new Promise((r,a)=>{const i=fEe(e,t??Dd._context);up.set(i,{options:e,callback:n,resolve:r,reject:a})})}const dEe=["alert","confirm","prompt"],hEe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};dEe.forEach(e=>{Dd[e]=vEe(e)});function vEe(e){return(t,n,r,a)=>{let i="";return Mt(n)?(r=n,i=""):er(n)?i="":i=n,Dd(Object.assign({title:i,message:t,type:"",...hEe[e]},r,{boxType:e}),a)}}Dd.close=()=>{up.forEach((e,t)=>{t.doClose()}),up.clear()};Dd._context=null;const Rs=Dd;Rs.install=e=>{Rs._context=e._context,e.config.globalProperties.$msgbox=Rs,e.config.globalProperties.$messageBox=Rs,e.config.globalProperties.$alert=Rs.alert,e.config.globalProperties.$confirm=Rs.confirm,e.config.globalProperties.$prompt=Rs.prompt};const pEe=Rs,F6=["success","info","warning","error"],gEe=Le({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:fn},id:{type:String,default:""},message:{type:ue([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:ue(Function),default:()=>{}},onClose:{type:ue(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...F6,""],default:""},zIndex:Number}),mEe={destroy:()=>!0},yEe=["id"],bEe=["textContent"],_Ee={key:0},wEe=["innerHTML"],SEe=ne({name:"ElNotification"}),CEe=ne({...SEe,props:gEe,emits:mEe,setup(e,{expose:t}){const n=e,{ns:r,zIndex:a}=a1("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=U5,l=H(!1);let u;const c=P(()=>{const _=n.type;return _&&dl[n.type]?r.m(_):""}),f=P(()=>n.type&&dl[n.type]||n.icon),d=P(()=>n.position.endsWith("right")?"right":"left"),h=P(()=>n.position.startsWith("top")?"top":"bottom"),v=P(()=>{var _;return{[h.value]:`${n.offset}px`,zIndex:(_=n.zIndex)!=null?_:o.value}});function p(){n.duration>0&&({stop:u}=ic(()=>{l.value&&m()},n.duration))}function g(){u==null||u()}function m(){l.value=!1}function b({code:_}){_===Xe.delete||_===Xe.backspace?g():_===Xe.esc?l.value&&m():p()}return yt(()=>{p(),i(),l.value=!0}),bn(document,"keydown",b),t({visible:l,close:m}),(_,w)=>(R(),ce(Bn,{name:y(r).b("fade"),onBeforeLeave:_.onClose,onAfterLeave:w[1]||(w[1]=C=>_.$emit("destroy")),persisted:""},{default:re(()=>[dt(Y("div",{id:_.id,class:V([y(r).b(),_.customClass,y(d)]),style:Ye(y(v)),role:"alert",onMouseenter:g,onMouseleave:p,onClick:w[0]||(w[0]=(...C)=>_.onClick&&_.onClick(...C))},[y(f)?(R(),ce(y(Ke),{key:0,class:V([y(r).e("icon"),y(c)])},{default:re(()=>[(R(),ce(Ct(y(f))))]),_:1},8,["class"])):se("v-if",!0),Y("div",{class:V(y(r).e("group"))},[Y("h2",{class:V(y(r).e("title")),textContent:De(_.title)},null,10,bEe),dt(Y("div",{class:V(y(r).e("content")),style:Ye(_.title?void 0:{margin:0})},[_e(_.$slots,"default",{},()=>[_.dangerouslyUseHTMLString?(R(),K(je,{key:1},[se(" Caution here, message could've been compromised, never use user's input as message "),Y("p",{innerHTML:_.message},null,8,wEe)],2112)):(R(),K("p",_Ee,De(_.message),1))])],6),[[Kt,_.message]]),_.showClose?(R(),ce(y(Ke),{key:0,class:V(y(r).e("closeBtn")),onClick:tt(m,["stop"])},{default:re(()=>[q(y(s))]),_:1},8,["class","onClick"])):se("v-if",!0)],2)],46,yEe),[[Kt,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var xEe=Pe(CEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const T0={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Dx=16;let TEe=1;const fd=function(e={},t=null){if(!Vt)return{close:()=>{}};(typeof e=="string"||Tn(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;T0[n].forEach(({vm:c})=>{var f;r+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+Dx}),r+=Dx;const a=`notification_${TEe++}`,i=e.onClose,o={...e,offset:r,id:a,onClose:()=>{MEe(a,n,i)}};let s=document.body;ai(e.appendTo)?s=e.appendTo:lt(e.appendTo)&&(s=document.querySelector(e.appendTo)),ai(s)||(s=document.body);const l=document.createElement("div"),u=q(xEe,o,Tn(o.message)?{default:()=>o.message}:null);return u.appContext=t??fd._context,u.props.onDestroy=()=>{jf(null,l)},jf(u,l),T0[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};F6.forEach(e=>{fd[e]=(t={})=>((typeof t=="string"||Tn(t))&&(t={message:t}),fd({...t,type:e}))});function MEe(e,t,n){const r=T0[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-Dx;f.props.offset=d}}function kEe(){for(const e of Object.values(T0))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}fd.closeAll=kEe;fd._context=null;const AEe=Y5(fd,"$notify");var EEe=[OAe,zAe,tEe,pEe,AEe,E8],IEe=Tce([...AAe,...EEe]);/*! *****************************************************************************
  59. Copyright (c) Microsoft Corporation.
  60. Permission to use, copy, modify, and/or distribute this software for any
  61. purpose with or without fee is hereby granted.
  62. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  63. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  64. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  65. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  66. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  67. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  68. PERFORMANCE OF THIS SOFTWARE.
  69. ***************************************************************************** */var Px=function(e,t){return Px=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])},Px(e,t)};function ge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Px(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var DEe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),PEe=function(){function e(){this.browser=new DEe,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}(),vu=new PEe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(vu.wxa=!0,vu.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?vu.worker=!0:typeof navigator>"u"?(vu.node=!0,vu.svgSupported=!0):LEe(navigator.userAgent,vu);function LEe(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}const Jt=vu;var bk=12,H6="sans-serif",gl=bk+"px "+H6,REe=20,OEe=100,$Ee="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function NEe(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)-REe)/OEe;t[r]=a}return t}var BEe=NEe($Ee),Vi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var a=Vi.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==r&&(t=e.font=r||gl),e.measureText(n);n=n||"",r=r||gl;var i=/(\d+)px/.exec(r),o=i&&+i[1]||bk,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var u=BEe[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 G6(e){for(var t in Vi)e[t]&&(Vi[t]=e[t])}var W6=ci(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),K6=ci(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Pd=Object.prototype.toString,h1=Array.prototype,VEe=h1.forEach,zEe=h1.filter,_k=h1.slice,FEe=h1.map,EL=(function(){}).constructor,em=EL?EL.prototype:null,wk="__proto__",HEe=2311;function Sk(){return HEe++}function v1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function pt(e){if(e==null||typeof e!="object")return e;var t=e,n=Pd.call(e);if(n==="[object Array]"){if(!Of(e)){t=[];for(var r=0,a=e.length;r<a;r++)t[r]=pt(e[r])}}else if(K6[n]){if(!Of(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(!W6[n]&&!Of(e)&&!dd(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==wk&&(t[o]=pt(e[o]))}return t}function Dt(e,t,n){if(!ht(t)||!ht(e))return n?pt(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==wk){var a=e[r],i=t[r];ht(i)&&ht(a)&&!Re(i)&&!Re(a)&&!dd(i)&&!dd(a)&&!Lx(i)&&!Lx(a)&&!Of(i)&&!Of(a)?Dt(a,i,n):(n||!(r in e))&&(e[r]=pt(t[r]))}return e}function p1(e,t){for(var n=e[0],r=1,a=e.length;r<a;r++)n=Dt(n,e[r],t);return n}function Ie(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==wk&&(e[n]=t[n]);return e}function ft(e,t,n){for(var r=Gt(t),a=0;a<r.length;a++){var i=r[a];(n?t[i]!=null:e[i]==null)&&(e[i]=t[i])}return e}var GEe=Vi.createCanvas;function $t(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function Ck(e,t){var n=e.prototype;function r(){}r.prototype=t.prototype,e.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(e.prototype[a]=n[a]);e.prototype.constructor=e,e.superClass=t}function Vn(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),a=0;a<r.length;a++){var i=r[a];i!=="constructor"&&(n?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else ft(e,t,n)}function Cr(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function F(e,t,n){if(e&&t)if(e.forEach&&e.forEach===VEe)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,a=e.length;r<a;r++)t.call(n,e[r],r,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(n,e[i],i,e)}function Oe(e,t,n){if(!e)return[];if(!t)return g1(e);if(e.map&&e.map===FEe)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 ci(e,t,n,r){if(e&&t){for(var a=0,i=e.length;a<i;a++)n=t.call(r,n,e[a],a,e);return n}}function ln(e,t,n){if(!e)return[];if(!t)return g1(e);if(e.filter&&e.filter===zEe)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 U6(e,t,n){if(e&&t){for(var r=0,a=e.length;r<a;r++)if(t.call(n,e[r],r,e))return e[r]}}function Gt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function WEe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(_k.call(arguments)))}}var et=em&&ut(em.bind)?em.call.bind(em.bind):WEe;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(_k.call(arguments)))}}function Re(e){return Array.isArray?Array.isArray(e):Pd.call(e)==="[object Array]"}function ut(e){return typeof e=="function"}function Je(e){return typeof e=="string"}function M0(e){return Pd.call(e)==="[object String]"}function Qt(e){return typeof e=="number"}function ht(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Lx(e){return!!W6[Pd.call(e)]}function _a(e){return!!K6[Pd.call(e)]}function dd(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function og(e){return e.colorStops!=null}function Y6(e){return e.image!=null}function j6(e){return Pd.call(e)==="[object RegExp]"}function hd(e){return e!==e}function rr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function Lt(e,t){return e??t}function Ri(e,t,n){return e??t??n}function g1(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return _k.apply(e,t)}function m1(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Nr(e,t){if(!e)throw new Error(t)}function Ja(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var q6="__ec_primitive__";function cp(e){e[q6]=!0}function Of(e){return e[q6]}var KEe=function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return Gt(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e}(),X6=typeof Map=="function";function UEe(){return X6?new Map:new KEe}var Z6=function(){function e(t){var n=Re(t);this.data=UEe();var r=this;t instanceof e?t.each(a):t&&F(t,a);function a(i,o){n?r.set(i,o):r.set(o,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,a){t.call(n,r,a)})},e.prototype.keys=function(){var t=this.data.keys();return X6?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function ot(e){return new Z6(e)}function fp(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 sg(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&Ie(n,t),n}function xk(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function nt(e,t){return e.hasOwnProperty(t)}function Nn(){}var vv=180/Math.PI;const YEe=Object.freeze(Object.defineProperty({__proto__:null,HashMap:Z6,RADIAN_TO_DEGREE:vv,assert:Nr,bind:et,clone:pt,concatArray:fp,createCanvas:GEe,createHashMap:ot,createObject:sg,curry:xt,defaults:ft,disableUserSelect:xk,each:F,eqNaN:hd,extend:Ie,filter:ln,find:U6,guid:Sk,hasOwn:nt,indexOf:$t,inherits:Ck,isArray:Re,isArrayLike:Cr,isBuiltInObject:Lx,isDom:dd,isFunction:ut,isGradientObject:og,isImagePatternObject:Y6,isNumber:Qt,isObject:ht,isPrimitive:Of,isRegExp:j6,isString:Je,isStringSafe:M0,isTypedArray:_a,keys:Gt,logError:v1,map:Oe,merge:Dt,mergeAll:p1,mixin:Vn,noop:Nn,normalizeCssArray:m1,reduce:ci,retrieve:rr,retrieve2:Lt,retrieve3:Ri,setAsPrimitive:cp,slice:g1,trim:Ja},Symbol.toStringTag,{value:"Module"}));function Pl(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Dr(e,t){return e[0]=t[0],e[1]=t[1],e}function po(e){return[e[0],e[1]]}function J6(e,t,n){return e[0]=t,e[1]=n,e}function Rx(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function k0(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Ks(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function dp(e){return Math.sqrt(Tk(e))}var jEe=dp;function Tk(e){return e[0]*e[0]+e[1]*e[1]}var qEe=Tk;function XEe(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function ZEe(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function JEe(e,t){return e[0]*t[0]+e[1]*t[1]}function pv(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function xc(e,t){var n=dp(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function A0(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Go=A0;function Q6(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var nl=Q6;function QEe(e,t){return e[0]=-t[0],e[1]=-t[1],e}function gv(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function hr(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[2]*a+n[4],e[1]=n[1]*r+n[3]*a+n[5],e}function Wo(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ko(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}const eIe=Object.freeze(Object.defineProperty({__proto__:null,add:Rx,applyTransform:hr,clone:po,copy:Dr,create:Pl,dist:Go,distSquare:nl,distance:A0,distanceSquare:Q6,div:ZEe,dot:JEe,len:dp,lenSquare:Tk,length:jEe,lengthSquare:qEe,lerp:gv,max:Ko,min:Wo,mul:XEe,negate:QEe,normalize:xc,scale:pv,scaleAndAdd:k0,set:J6,sub:Ks},Symbol.toStringTag,{value:"Module"}));var Bc=function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e}(),tIe=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 Bc(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 Bc(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 Bc(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Bc(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Bc(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Bc(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const nIe=tIe;var rIe=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 di=rIe;var aIe=Math.log(2);function Ox(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)/aIe);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]*Ox(e,t-1,c,u,a|v,i),h++)}return i[o]=f,f}function IL(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=Ox(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)*Ox(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 DL="___zrEVENTSAVED",z_=[];function iIe(e,t,n,r,a){return $x(z_,t,r,a,!0)&&$x(e,n,z_[0],z_[1])}function $x(e,t,n,r,a){if(t.getBoundingClientRect&&Jt.domSupported&&!eH(t)){var i=t[DL]||(t[DL]={}),o=oIe(t,i),s=sIe(o,i,a);if(s)return s(e,n,r),!0}return!1}function oIe(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 sIe(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?IL(s,o):IL(o,s))}function eH(e){return e.nodeName.toUpperCase()==="CANVAS"}var lIe=/([&<>"'])/g,uIe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ur(e){return e==null?"":(e+"").replace(lIe,function(t,n){return uIe[n]})}var cIe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,F_=[],fIe=Jt.browser.firefox&&+Jt.browser.version.split(".")[0]<39;function Nx(e,t,n,r){return n=n||{},r?PL(e,t,n):fIe&&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):PL(e,t,n),n}function PL(e,t,n){if(Jt.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(eH(e)){var i=e.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if($x(F_,e,r,a)){n.zrX=F_[0],n.zrY=F_[1];return}}n.zrX=n.zrY=0}function Mk(e){return e||window.event}function Ha(e,t,n){if(t=Mk(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&&Nx(e,o,t,n)}else{Nx(e,t,t,n);var i=dIe(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&cIe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function dIe(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 Bx(e,t,n,r){e.addEventListener(t,n,r)}function hIe(e,t,n,r){e.removeEventListener(t,n,r)}var ns=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function LL(e){return e.which===2||e.which===3}var vIe=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=Nx(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 H_)if(H_.hasOwnProperty(n)){var r=H_[n](this._track,t);if(r)return r}},e}();function RL(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function pIe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var H_={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=RL(r)/RL(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=pIe(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Ra(){return[1,0,0,1,0,0]}function lg(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function y1(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function go(e,t,n){var r=t[0]*n[0]+t[2]*n[1],a=t[1]*n[0]+t[3]*n[1],i=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function zi(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Ll(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 b1(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 Tc(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 tH(e){var t=Ra();return y1(t,e),t}const gIe=Object.freeze(Object.defineProperty({__proto__:null,clone:tH,copy:y1,create:Ra,identity:lg,invert:Tc,mul:go,rotate:Ll,scale:b1,translate:zi},Symbol.toStringTag,{value:"Module"}));var mIe=function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,a){t.x=n.x+r.x*a,t.y=n.y+r.y*a},e.lerp=function(t,n,r,a){var i=1-a;t.x=i*n.x+a*r.x,t.y=i*n.y+a*r.y},e}();const Pt=mIe;var tm=Math.min,nm=Math.max,Gl=new Pt,Wl=new Pt,Kl=new Pt,Ul=new Pt,lh=new Pt,uh=new Pt,yIe=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=tm(t.x,this.x),r=tm(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=nm(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=nm(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=Ra();return zi(i,i,[-n.x,-n.y]),b1(i,i,[r,a]),zi(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(i<l||u<a||s<c||f<o);if(n){var h=1/0,v=0,p=Math.abs(i-l),g=Math.abs(u-a),m=Math.abs(s-c),b=Math.abs(f-o),_=Math.min(p,g),w=Math.min(m,b);i<l||u<a?_>v&&(v=_,p<g?Pt.set(uh,-p,0):Pt.set(uh,g,0)):_<h&&(h=_,p<g?Pt.set(lh,p,0):Pt.set(lh,-g,0)),s<c||f<o?w>v&&(v=w,m<b?Pt.set(uh,0,-m):Pt.set(uh,0,b)):_<h&&(h=_,m<b?Pt.set(lh,0,m):Pt.set(lh,0,-b))}return n&&Pt.copy(n,d?lh:uh),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}Gl.x=Kl.x=n.x,Gl.y=Ul.y=n.y,Wl.x=Ul.x=n.x+n.width,Wl.y=Kl.y=n.y+n.height,Gl.transform(r),Ul.transform(r),Wl.transform(r),Kl.transform(r),t.x=tm(Gl.x,Wl.x,Kl.x,Ul.x),t.y=tm(Gl.y,Wl.y,Kl.y,Ul.y);var l=nm(Gl.x,Wl.x,Kl.x,Ul.x),u=nm(Gl.y,Wl.y,Kl.y,Ul.y);t.width=l-t.x,t.height=u-t.y},e}();const Rt=yIe;var nH="silent";function bIe(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:_Ie}}function _Ie(){ns(this.event)}var wIe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(di),ch=function(){function e(t,n){this.x=t,this.y=n}return e}(),SIe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],G_=new Rt(0,0,0,0),rH=function(e){ge(t,e);function t(n,r,a,i,o){var s=e.call(this)||this;return s._hovered=new ch(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new wIe,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new nIe(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(F(SIe,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=aH(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 ch(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 ch(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=bIe(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 ch(n,r);if(OL(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Rt(n-u,r-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(G_.copy(d.getBoundingRect()),d.transform&&G_.applyTransform(d.transform),G_.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(OL(s,o,b,_,a),o.target)return o}}return o},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new vIe);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 ch;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(di);F(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){rH.prototype[e]=function(t){var n=t.zrX,r=t.zrY,a=aH(this,n,r),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(n,r),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Go(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function CIe(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?nH:!0}return!1}function OL(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=CIe(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==nH)){t.target=o;break}}}function aH(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}const xIe=rH;var iH=32,fh=7;function TIe(e){for(var t=0;e>=iH;)t|=e&1,e>>=1;return e+t}function $L(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 NL(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 W_(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 K_(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 kIe(e,t){var n=fh,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=K_(e[g],e,v,p,0,t);v+=b,p-=b,p!==0&&(m=W_(e[v+p-1],e,g,m,m-1,t),m!==0&&(p<=m?f(v,p,g,m):d(v,p,g,m)))}function f(h,v,p,g){var m=0;for(m=0;m<v;m++)o[m]=e[h+m];var b=0,_=p,w=h;if(e[w++]=e[_++],--g===0){for(m=0;m<v;m++)e[w+m]=o[b+m];return}if(v===1){for(m=0;m<g;m++)e[w+m]=e[_+m];e[w+g]=o[b];return}for(var C=n,S,x,T;;){S=0,x=0,T=!1;do if(t(e[_],o[b])<0){if(e[w++]=e[_++],x++,S=0,--g===0){T=!0;break}}else if(e[w++]=o[b++],S++,x=0,--v===1){T=!0;break}while((S|x)<C);if(T)break;do{if(S=K_(e[_],o,b,v,0,t),S!==0){for(m=0;m<S;m++)e[w+m]=o[b+m];if(w+=S,b+=S,v-=S,v<=1){T=!0;break}}if(e[w++]=e[_++],--g===0){T=!0;break}if(x=W_(o[b],e,_,g,0,t),x!==0){for(m=0;m<x;m++)e[w+m]=e[_+m];if(w+=x,_+=x,g-=x,g===0){T=!0;break}}if(e[w++]=o[b++],--v===1){T=!0;break}C--}while(S>=fh||x>=fh);if(T)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),v===1){for(m=0;m<g;m++)e[w+m]=e[_+m];e[w+g]=o[b]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[w+m]=o[b+m]}}function d(h,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var b=h+v-1,_=g-1,w=p+g-1,C=0,S=0;if(e[w--]=e[b--],--v===0){for(C=w-(g-1),m=0;m<g;m++)e[C+m]=o[m];return}if(g===1){for(w-=v,b-=v,S=w+1,C=b+1,m=v-1;m>=0;m--)e[S+m]=e[C+m];e[w]=o[_];return}for(var x=n;;){var T=0,M=0,A=!1;do if(t(o[_],e[b])<0){if(e[w--]=e[b--],T++,M=0,--v===0){A=!0;break}}else if(e[w--]=o[_--],M++,T=0,--g===1){A=!0;break}while((T|M)<x);if(A)break;do{if(T=v-K_(o[_],e,h,v,v-1,t),T!==0){for(w-=T,b-=T,v-=T,S=w+1,C=b+1,m=T-1;m>=0;m--)e[S+m]=e[C+m];if(v===0){A=!0;break}}if(e[w--]=o[_--],--g===1){A=!0;break}if(M=g-W_(e[b],o,0,g,g-1,t),M!==0){for(w-=M,_-=M,g-=M,S=w+1,C=_+1,m=0;m<M;m++)e[S+m]=o[C+m];if(g<=1){A=!0;break}}if(e[w--]=e[b--],--v===0){A=!0;break}x--}while(T>=fh||M>=fh);if(A)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),g===1){for(w-=v,b-=v,S=w+1,C=b+1,m=v-1;m>=0;m--)e[S+m]=e[C+m];e[w]=o[_]}else{if(g===0)throw new Error;for(C=w-(g-1),m=0;m<g;m++)e[C+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Ly(e,t,n,r){n||(n=0),r||(r=e.length);var a=r-n;if(!(a<2)){var i=0;if(a<iH){i=$L(e,n,r,t),NL(e,n,r,n+i,t);return}var o=kIe(e,t),s=TIe(a);do{if(i=$L(e,n,r,t),i<s){var l=a;l>s&&(l=s),NL(e,n,n+l,n+i,t),i=l}o.pushRun(n,i),o.mergeRuns(),a-=i,n+=i}while(a!==0);o.forceMergeRuns()}}var Ta=1,Fh=2,ff=4,BL=!1;function U_(){BL||(BL=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function VL(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var AIe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=VL}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,Ly(r,VL)},e.prototype._updateAndAddDisplayable=function(t,n,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),n.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Ta),this._updateAndAddDisplayable(u,n,r)}t.__dirty=0}else{var c=t;n&&n.length?c.__clipPaths=n:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(U_(),c.z=0),isNaN(c.z2)&&(U_(),c.z2=0),isNaN(c.zlevel)&&(U_(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n<r;n++)this.delRoot(t[n]);return}var a=$t(this._roots,t);a>=0&&this._roots.splice(a,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const EIe=AIe;var oH;oH=Jt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Vx=oH;var Ry={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-Ry.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?Ry.bounceIn(e*2)*.5:Ry.bounceOut(e*2-1)*.5+.5}};const sH=Ry;var rm=Math.pow,rl=Math.sqrt,E0=1e-8,lH=1e-4,zL=rl(3),am=1/3,oo=Pl(),Ya=Pl(),$f=Pl();function Us(e){return e>-E0&&e<E0}function uH(e){return e>E0||e<-E0}function nr(e,t,n,r,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*r+3*i*n)}function FL(e,t,n,r,a){var i=1-a;return 3*(((t-e)*i+2*(n-t)*a)*i+(r-n)*a*a)}function I0(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(Us(c)&&Us(f))if(Us(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(Us(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=rl(p),_=c*s+1.5*o*(-f+b),w=c*s+1.5*o*(-f-b);_<0?_=-rm(-_,am):_=rm(_,am),w<0?w=-rm(-w,am):w=rm(w,am);var v=(-s-(_+w))/(3*o);v>=0&&v<=1&&(i[h++]=v)}else{var C=(2*c*s-3*o*f)/(2*rl(c*c*c)),S=Math.acos(C)/3,x=rl(c),T=Math.cos(S),v=(-s-2*x*T)/(3*o),m=(-s+x*(T+zL*Math.sin(S)))/(3*o),M=(-s+x*(T-zL*Math.sin(S)))/(3*o);v>=0&&v<=1&&(i[h++]=v),m>=0&&m<=1&&(i[h++]=m),M>=0&&M<=1&&(i[h++]=M)}}return h}function cH(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(Us(o)){if(uH(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Us(c))a[0]=-i/(2*o);else if(c>0){var f=rl(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 ml(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 fH(e,t,n,r,a,i,o,s,l,u,c){var f,d=.005,h=1/0,v,p,g,m;oo[0]=l,oo[1]=u;for(var b=0;b<1;b+=.05)Ya[0]=nr(e,n,a,o,b),Ya[1]=nr(t,r,i,s,b),g=nl(oo,Ya),g<h&&(f=b,h=g);h=1/0;for(var _=0;_<32&&!(d<lH);_++)v=f-d,p=f+d,Ya[0]=nr(e,n,a,o,v),Ya[1]=nr(t,r,i,s,v),g=nl(Ya,oo),v>=0&&g<h?(f=v,h=g):($f[0]=nr(e,n,a,o,p),$f[1]=nr(t,r,i,s,p),m=nl($f,oo),p<=1&&m<h?(f=p,h=m):d*=.5);return c&&(c[0]=nr(e,n,a,o,f),c[1]=nr(t,r,i,s,f)),rl(h)}function IIe(e,t,n,r,a,i,o,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,p=nr(e,n,a,o,v),g=nr(t,r,i,s,v),m=p-u,b=g-c;f+=Math.sqrt(m*m+b*b),u=p,c=g}return f}function fr(e,t,n,r){var a=1-r;return a*(a*e+2*r*t)+r*r*n}function zx(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function DIe(e,t,n,r,a){var i=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(Us(i)){if(uH(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Us(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=rl(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 dH(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function hp(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 hH(e,t,n,r,a,i,o,s,l){var u,c=.005,f=1/0;oo[0]=o,oo[1]=s;for(var d=0;d<1;d+=.05){Ya[0]=fr(e,n,a,d),Ya[1]=fr(t,r,i,d);var h=nl(oo,Ya);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<lH);v++){var p=u-c,g=u+c;Ya[0]=fr(e,n,a,p),Ya[1]=fr(t,r,i,p);var h=nl(Ya,oo);if(p>=0&&h<f)u=p,f=h;else{$f[0]=fr(e,n,a,g),$f[1]=fr(t,r,i,g);var m=nl($f,oo);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=fr(e,n,a,u),l[1]=fr(t,r,i,u)),rl(f)}function PIe(e,t,n,r,a,i,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=fr(e,n,a,d),v=fr(t,r,i,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var LIe=/cubic-bezier\(([0-9,\.e ]+)\)/;function kk(e){var t=e&&LIe.exec(e);if(t){var n=t[1].split(","),r=+Ja(n[0]),a=+Ja(n[1]),i=+Ja(n[2]),o=+Ja(n[3]);if(isNaN(r+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:I0(0,r,i,1,l,s)&&nr(0,a,o,1,s[0])}}}var RIe=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Nn,this.ondestroy=t.ondestroy||Nn,this.onrestart=t.onrestart||Nn,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=t-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ut(t)?t:sH[t]||kk(t)},e}();const OIe=RIe;var vH=function(){function e(t){this.value=t}return e}(),$Ie=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new vH(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}(),NIe=function(){function e(t){this._list=new $Ie,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 vH(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 ug=NIe;var HL={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Oi(e){return e=Math.round(e),e<0?0:e>255?255:e}function BIe(e){return e=Math.round(e),e<0?0:e>360?360:e}function vp(e){return e<0?0:e>1?1:e}function Y_(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Oi(parseFloat(t)/100*255):Oi(parseInt(t,10))}function Xu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?vp(parseFloat(t)/100):vp(parseFloat(t))}function j_(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 Ys(e,t,n){return e+(t-e)*n}function Fa(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function Fx(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var pH=new ug(20),im=null;function Vc(e,t){im&&Fx(im,t),im=pH.put(e,im||t.slice())}function Xr(e,t){if(e){t=t||[];var n=pH.get(e);if(n)return Fx(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in HL)return Fx(t,HL[r]),Vc(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)){Fa(t,0,0,0,1);return}return Fa(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),Vc(e,t),t}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Fa(t,0,0,0,1);return}return Fa(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Vc(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?Fa(t,+u[0],+u[1],+u[2],1):Fa(t,0,0,0,1);c=Xu(u.pop());case"rgb":if(u.length>=3)return Fa(t,Y_(u[0]),Y_(u[1]),Y_(u[2]),u.length===3?c:Xu(u[3])),Vc(e,t),t;Fa(t,0,0,0,1);return;case"hsla":if(u.length!==4){Fa(t,0,0,0,1);return}return u[3]=Xu(u[3]),Hx(u,t),Vc(e,t),t;case"hsl":if(u.length!==3){Fa(t,0,0,0,1);return}return Hx(u,t),Vc(e,t),t;default:return}}Fa(t,0,0,0,1)}}function Hx(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Xu(e[1]),a=Xu(e[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return t=t||[],Fa(t,Oi(j_(o,i,n+1/3)*255),Oi(j_(o,i,n)*255),Oi(j_(o,i,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function VIe(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 D0(e,t){var n=Xr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return $i(n,n.length===4?"rgba":"rgb")}}function zIe(e){var t=Xr(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function mv(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n=n||[];var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=t[a],s=t[i],l=r-a;return n[0]=Oi(Ys(o[0],s[0],l)),n[1]=Oi(Ys(o[1],s[1],l)),n[2]=Oi(Ys(o[2],s[2],l)),n[3]=vp(Ys(o[3],s[3],l)),n}}var FIe=mv;function Ak(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),a=Math.floor(r),i=Math.ceil(r),o=Xr(t[a]),s=Xr(t[i]),l=r-a,u=$i([Oi(Ys(o[0],s[0],l)),Oi(Ys(o[1],s[1],l)),Oi(Ys(o[2],s[2],l)),vp(Ys(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}var HIe=Ak;function Nf(e,t,n,r){var a=Xr(e);if(e)return a=VIe(a),t!=null&&(a[0]=BIe(t)),n!=null&&(a[1]=Xu(n)),r!=null&&(a[2]=Xu(r)),$i(Hx(a),"rgba")}function pp(e,t){var n=Xr(e);if(n&&t!=null)return n[3]=vp(t),$i(n,"rgba")}function $i(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function gp(e,t){var n=Xr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function GIe(){return $i([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const WIe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:mv,fastMapToColor:FIe,lerp:Ak,lift:D0,lum:gp,mapToColor:HIe,modifyAlpha:pp,modifyHSL:Nf,parse:Xr,random:GIe,stringify:$i,toHex:zIe},Symbol.toStringTag,{value:"Module"}));var P0=Math.round;function mp(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=Xr(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var GL=1e-4;function js(e){return e<GL&&e>-GL}function om(e){return P0(e*1e3)/1e3}function Gx(e){return P0(e*1e4)/1e4}function KIe(e){return"matrix("+om(e[0])+","+om(e[1])+","+om(e[2])+","+om(e[3])+","+Gx(e[4])+","+Gx(e[5])+")"}var UIe={left:"start",right:"end",center:"middle",middle:"middle"};function YIe(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function jIe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function qIe(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 gH(e){return e&&!!e.image}function XIe(e){return e&&!!e.svgElement}function Ek(e){return gH(e)||XIe(e)}function mH(e){return e.type==="linear"}function yH(e){return e.type==="radial"}function bH(e){return e&&(e.type==="linear"||e.type==="radial")}function _1(e){return"url(#"+e+")"}function _H(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 wH(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*vv,a=Lt(e.scaleX,1),i=Lt(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||n)&&l.push("translate("+t+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+P0(o*vv)+"deg, "+P0(s*vv)+"deg)"),l.join(" ")}var ZIe=function(){return Jt.hasGlobalWindow&&ut(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),Wx=Array.prototype.slice;function Bo(e,t,n){return(t-e)*n+e}function q_(e,t,n,r){for(var a=t.length,i=0;i<a;i++)e[i]=Bo(t[i],n[i],r);return e}function JIe(e,t,n,r){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=Bo(t[o][s],n[o][s],r)}return e}function sm(e,t,n,r){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+n[i]*r;return e}function WL(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 QIe(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 eDe(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]:Wx.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 yv(e){if(Cr(e)){var t=e.length;if(Cr(e[0])){for(var n=[],r=0;r<t;r++)n.push(Wx.call(e[r]));return n}return Wx.call(e)}return e}function Oy(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 tDe(e){return Cr(e&&e[0])?2:1}var lm=0,$y=1,SH=2,Hh=3,Kx=4,Ux=5,KL=6;function UL(e){return e===Kx||e===Ux}function um(e){return e===$y||e===SH}var dh=[0,0,0,0],nDe=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=KL,l=n;if(Cr(n)){var u=tDe(n);s=u,(u===1&&!Qt(n[0])||u===2&&!Qt(n[0][0]))&&(o=!0)}else if(Qt(n)&&!hd(n))s=lm;else if(Je(n))if(!isNaN(+n))s=lm;else{var c=Xr(n);c&&(l=c,s=Hh)}else if(og(n)){var f=Ie({},l);f.colorStops=Oe(n.colorStops,function(h){return{offset:h.offset,color:Xr(h.color)}}),mH(n)?s=Kx:yH(n)&&(s=Ux),l=f}i===0?this.valType=s:(s!==this.valType||s===KL)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=ut(r)?r:sH[r]||kk(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=um(a),u=UL(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?eDe(d,h,a):u&&QIe(d.colorStops,h.colorStops))}if(!s&&a!==Ux&&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===lm?r[c].additiveValue=r[c].value-v:a===Hh?r[c].additiveValue=sm([],r[c].value,v,-1):um(a)&&(r[c].additiveValue=a===$y?sm([],r[c].value,v,-1):WL([],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===Hh,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?dh:t[l];if((um(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(um(i))i===$y?q_(b,h[a],v[a],m):JIe(b,h[a],v[a],m);else if(UL(i)){var _=h[a],w=v[a],C=i===Kx;t[l]={type:C?"linear":"radial",x:Bo(_.x,w.x,m),y:Bo(_.y,w.y,m),colorStops:Oe(_.colorStops,function(x,T){var M=w.colorStops[T];return{offset:Bo(x.offset,M.offset,m),color:Oy(q_([],x.color,M.color,m))}}),global:w.global},C?(t[l].x2=Bo(_.x2,w.x2,m),t[l].y2=Bo(_.y2,w.y2,m)):t[l].r=Bo(_.r,w.r,m)}else if(u)q_(b,h[a],v[a],m),r||(t[l]=Oy(b));else{var S=Bo(h[a],v[a],m);r?this._additiveValue=S:t[l]=S}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,a=this._additiveValue;n===lm?t[r]=t[r]+a:n===Hh?(Xr(t[r],dh),sm(dh,dh,a,1),t[r]=Oy(dh)):n===$y?sm(t[r],t[r],a,1):n===SH&&WL(t[r],t[r],a,1)},e}(),rDe=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){v1("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,Gt(n),r)},e.prototype.whenWithKeys=function(t,n,r,a){for(var i=this._tracks,o=0;o<r.length;o++){var s=r[o],l=i[s];if(!l){l=i[s]=new nDe(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===Hh&&u&&(u=Oy(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,yv(u),a),this._trackKeys.push(s)}l.addKeyframe(t,yv(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 OIe({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var v=n._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(n._additiveAnimators=null)}for(var g=0;g<r.length;g++)r[g].step(n._target,h);var m=n._onframeCbs;if(m)for(var g=0;g<m.length;g++)m[g](n._target,h)},ondestroy:function(){n._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var n=this._clip;t&&n.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Oe(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=r[t[i]];o&&!o.isFinished()&&(n?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!r[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,r){if(t){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var i=n[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[r?0:s.length-1];l&&(t[i]=yv(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||Gt(t);for(var r=0;r<n.length;r++){var a=n[r],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();const Ik=rDe;function _f(){return new Date().getTime()}var aDe=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=_f()-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&&(Vx(r),!n._paused&&n.update())}Vx(r)},t.prototype.start=function(){this._running||(this._time=_f(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=_f(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=_f()-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 Ik(n,r.loop);return this.addAnimator(a),a},t}(di);const iDe=aDe;var oDe=300,X_=Jt.domSupported,Z_=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Oe(e,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:r}}(),YL={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},jL=!1;function Yx(e){var t=e.pointerType;return t==="pen"||t==="touch"}function sDe(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 J_(e){e&&(e.zrByTouch=!0)}function lDe(e,t){return Ha(e.dom,new uDe(e,t),!0)}function CH(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 uDe=function(){function e(t,n){this.stopPropagation=Nn,this.stopImmediatePropagation=Nn,this.preventDefault=Nn,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),Si={mousedown:function(e){e=Ha(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ha(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=Ha(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ha(this.dom,e);var t=e.toElement||e.relatedTarget;CH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){jL=!0,e=Ha(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){jL||(e=Ha(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ha(this.dom,e),J_(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Si.mousemove.call(this,e),Si.mousedown.call(this,e)},touchmove:function(e){e=Ha(this.dom,e),J_(e),this.handler.processGesture(e,"change"),Si.mousemove.call(this,e)},touchend:function(e){e=Ha(this.dom,e),J_(e),this.handler.processGesture(e,"end"),Si.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<oDe&&Si.click.call(this,e)},pointerdown:function(e){Si.mousedown.call(this,e)},pointermove:function(e){Yx(e)||Si.mousemove.call(this,e)},pointerup:function(e){Si.mouseup.call(this,e)},pointerout:function(e){Yx(e)||Si.mouseout.call(this,e)}};F(["click","dblclick","contextmenu"],function(e){Si[e]=function(t){t=Ha(this.dom,t),this.trigger(e,t)}});var jx={pointermove:function(e){Yx(e)||jx.mousemove.call(this,e)},pointerup:function(e){jx.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 cDe(e,t){var n=t.domHandlers;Jt.pointerEventsSupported?F(Z_.pointer,function(r){Ny(t,r,function(a){n[r].call(e,a)})}):(Jt.touchEventsSupported&&F(Z_.touch,function(r){Ny(t,r,function(a){n[r].call(e,a),sDe(t)})}),F(Z_.mouse,function(r){Ny(t,r,function(a){a=Mk(a),t.touching||n[r].call(e,a)})}))}function fDe(e,t){Jt.pointerEventsSupported?F(YL.pointer,n):Jt.touchEventsSupported||F(YL.mouse,n);function n(r){function a(i){i=Mk(i),CH(e,i.target)||(i=lDe(e,i),t.domHandlers[r].call(e,i))}Ny(t,r,a,{capture:!0})}}function Ny(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Bx(e.domTarget,t,n,r)}function Q_(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&hIe(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var qL=function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e}(),dDe=function(e){ge(t,e);function t(n,r){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new qL(n,Si),X_&&(a._globalHandlerScope=new qL(document,jx)),cDe(a,a._localHandlerScope),a}return t.prototype.dispose=function(){Q_(this._localHandlerScope),X_&&Q_(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,X_&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?fDe(this,r):Q_(r)}},t}(di);const hDe=dDe;var xH=1;Jt.hasGlobalWindow&&(xH=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var L0=xH,qx=.4,Xx="#333",Zx="#ccc",vDe="#eee",XL=lg,ZL=5e-5;function Yl(e){return e>ZL||e<-ZL}var jl=[],zc=[],ew=Ra(),tw=Math.abs,pDe=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 Yl(this.rotation)||Yl(this.x)||Yl(this.y)||Yl(this.scaleX-1)||Yl(this.scaleY-1)||Yl(this.skewX)||Yl(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(XL(r),this.invTransform=null);return}r=r||Ra(),n?this.getLocalTransform(r):XL(r),t&&(n?go(r,t,r):y1(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(jl);var r=jl[0]<0?-1:1,a=jl[1]<0?-1:1,i=((jl[0]-r)*n+r)/jl[0]||0,o=((jl[1]-a)*n+a)/jl[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ra(),Tc(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(i),n=Math.sqrt(n),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(go(zc,t.invTransform,n),n=zc);var r=this.originX,a=this.originY;(r||a)&&(ew[4]=r,ew[5]=a,go(zc,n,ew),zc[4]-=r,zc[5]-=a,n=zc),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],a=this.invTransform;return a&&hr(r,r,a),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],a=this.transform;return a&&hr(r,r,a),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&tw(t[0]-1)>1e-10&&tw(t[3]-1)>1e-10?Math.sqrt(tw(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){TH(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&&Ll(n,n,u),n[4]+=r+c,n[5]+=a+f,n},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Co=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function TH(e,t){for(var n=0;n<Co.length;n++){var r=Co[n];e[r]=t[r]}}const Uo=pDe;var JL={};function La(e,t){t=t||gl;var n=JL[t];n||(n=JL[t]=new ug(500));var r=n.get(e);return r==null&&(r=Vi.measureText(e,t).width,n.put(e,r)),r}function QL(e,t,n,r){var a=La(e,t),i=w1(t),o=Gh(0,a,n),s=df(0,i,r),l=new Rt(o,s,a,i);return l}function cg(e,t,n,r){var a=((e||"")+"").split(`
  70. `),i=a.length;if(i===1)return QL(a[0],t,n,r);for(var o=new Rt(0,0,0,0),s=0;s<a.length;s++){var l=QL(a[s],t,n,r);s===0?o.copy(l):o.union(l)}return o}function Gh(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function df(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function w1(e){return La("国",e)}function Fi(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function R0(e,t,n){var r=t.position||"inside",a=t.distance!=null?t.distance:5,i=n.height,o=n.width,s=i/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=Fi(r[0],n.width),u+=Fi(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var nw="__zr_normal__",rw=Co.concat(["ignore"]),gDe=ci(Co,function(e,t){return e[t]=!0,e},{ignore:!1}),Fc={},mDe=new Rt(0,0,0,0),Dk=function(){function e(t){this.id=Sk(),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=mDe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fc,r,c):R0(Fc,r,c),i.x=Fc.x,i.y=Fc.y,o=Fc.align,s=Fc.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Fi(f[0],c.width),h=Fi(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var v=r.offset;v&&(i.x+=v[0],i.y+=v[1],u||(i.originX=-v[0],i.originY=-v[1]));var p=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,b=void 0,_=void 0;p&&this.canBeInsideText()?(m=r.insideFill,b=r.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(m),_=!0)):(m=r.outsideFill,b=r.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||b!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=b,g.autoStroke=_,g.align=o,g.verticalAlign=s,n.setDefaultTextStyle(g)),n.__dirty|=Ta,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Zx:Xx},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Xr(n);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,$i(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},Ie(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(ht(t))for(var r=t,a=Gt(r),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==nw)){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,rw)},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(nw,!1,t)},e.prototype.useState=function(t,n,r,a){var i=t===nw,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!($t(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){v1("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,n,r,c),d&&d.useState(t,n,r,c),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ta),u}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var f=a[o-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!n&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,n,d),g&&g.useStates(t,n,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ta)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=$t(this.currentStates,t);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var a=this.currentStates.slice(),i=$t(a,t),o=$t(a,n)>=0;i>=0?o?a.splice(i,1):a[i]=n:r&&!o&&a.push(n),this.useStates(a)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,a=0;a<t.length;a++){var i=t[a];Ie(n,i),i.textConfig&&(r=r||{},Ie(r,i.textConfig))}return r&&(n.textConfig=r),n},e.prototype._applyStateObj=function(t,n,r,a,i,o){var s=!(n&&a);n&&n.textConfig?(this.textConfig=Ie({},a?this.textConfig:r.textConfig),Ie(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<rw.length;c++){var f=rw[c],d=i&&gDe[f];n&&n[f]!=null?d?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!i)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(n||r)[v]:n||r)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new Uo,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Ie(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Ta;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=t),r&&(r.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)t.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,r){var a=t?this[t]:this,i=new Ik(a,n,r);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,n){var r=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(n)}).done(function(){var i=a.animators,o=$t(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,a=r.length,i=[],o=0;o<a;o++){var s=r[o];!t||t===s.scope?s.stop(n):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,n,r){aw(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){aw(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,a){for(var i=aw(this,n,r,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Ta;function n(r,a,i,o){Object.defineProperty(t,r,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),e}();Vn(Dk,di);Vn(Dk,Uo);function aw(e,t,n,r,a){n=n||{};var i=[];MH(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 iw(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function yDe(e){return Cr(e[0])}function bDe(e,t,n){if(Cr(t[n]))if(Cr(e[n])||(e[n]=[]),_a(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),iw(e[n],t[n],r))}else{var a=t[n],i=e[n],o=a.length;if(yDe(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?iw(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else iw(i,a,o);i.length=a.length}else e[n]=t[n]}function _De(e,t){return e===t||Cr(e)&&Cr(t)&&wDe(e,t)}function wDe(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 MH(e,t,n,r,a,i,o,s){for(var l=Gt(r),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!ht(i),v=e.animators,p=[],g=0;g<l.length;g++){var m=l[g],b=r[m];if(b!=null&&n[m]!=null&&(h||i[m]))if(ht(b)&&!Cr(b)&&!og(b)){if(t){s||(n[m]=b,e.updateDuringAnimation(t));continue}MH(e,m,n[m],b,a,i&&i[m],o,s)}else p.push(m);else s||(n[m]=b,e.updateDuringAnimation(t),p.push(m))}var _=p.length;if(!f&&_)for(var w=0;w<v.length;w++){var C=v[w];if(C.targetName===t){var S=C.stopTracks(p);if(S){var x=$t(v,C);v.splice(x,1)}}}if(a.force||(p=ln(p,function(k){return!_De(r[k],n[k])}),_=p.length),_>0||a.force&&!o.length){var T=void 0,M=void 0,A=void 0;if(s){M={},d&&(T={});for(var w=0;w<_;w++){var m=p[w];M[m]=n[m],d?T[m]=r[m]:n[m]=r[m]}}else if(d){A={};for(var w=0;w<_;w++){var m=p[w];A[m]=yv(n[m]),bDe(n,r,m)}}var C=new Ik(n,!1,!1,f?ln(v,function(E){return E.targetName===t}):null);C.targetName=t,a.scope&&(C.scope=a.scope),d&&T&&C.whenWithKeys(0,T,p),A&&C.whenWithKeys(0,A,p),C.whenWithKeys(u??500,s?M:r,p).delay(c||0),e.addAnimator(C,t),o.push(C)}}const kH=Dk;var AH=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,i=a.indexOf(r);i>=0&&(a.splice(i,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var a=$t(this._children,n);return a>=0&&this.replaceAt(r,a),this},t.prototype.replaceAt=function(n,r){var a=this._children,i=a[r];if(n&&n!==this&&n.parent!==this&&n!==i){a[r]=n,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,a=this._children,i=$t(a,n);return i<0?this:(a.splice(i,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a<n.length;a++){var i=n[a];r&&i.removeSelfFromZr(r),i.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,r){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];n.call(r,o,i)}return this},t.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=n.call(r,i);i.isGroup&&!o&&i.traverse(n,r)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var r=new Rt(0,0,0,0),a=n||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(Rt.applyTransform(r,u,c),o=o||r.clone(),o.union(r)):(o=o||u.clone(),o.union(u))}}return o||r},t}(kH);AH.prototype.type="group";const bt=AH;/*!
  71. * ZRender, a high performance 2d drawing library.
  72. *
  73. * Copyright (c) 2013, Baidu Inc.
  74. * All rights reserved.
  75. *
  76. * LICENSE
  77. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  78. */var By={},Nu={};function SDe(e){delete Nu[e]}function CDe(e){if(!e)return!1;if(typeof e=="string")return gp(e,1)<qx;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,a=0;a<r;a++)n+=gp(t[a].color,1);return n/=r,n<qx}return!1}var xDe=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 EIe,o=r.renderer||"canvas";By[o]||(o=Gt(By)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new By[o](n,i,r,t),l=r.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Jt.node&&!Jt.worker&&!l?new hDe(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Jt.touchEventsSupported:!!c,d=44,h;f&&(h=Lt(r.pointerSize,d)),this.handler=new xIe(i,s,u,s.root,h),this.animation=new iDe({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=CDe(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=_f();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=_f();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this.handler.off(t,n)},e.prototype.trigger=function(t,n){this.handler.trigger(t,n)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof bt&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},e.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,SDe(this.id)},e}();function Jx(e,t){var n=new xDe(Sk(),e,t);return Nu[n.id]=n,n}function TDe(e){e.dispose()}function MDe(){for(var e in Nu)Nu.hasOwnProperty(e)&&Nu[e].dispose();Nu={}}function kDe(e){return Nu[e]}function EH(e,t){By[e]=t}var ADe="5.4.4";const EDe=Object.freeze(Object.defineProperty({__proto__:null,dispose:TDe,disposeAll:MDe,getInstance:kDe,init:Jx,registerPainter:EH,version:ADe},Symbol.toStringTag,{value:"Module"}));var eR=1e-4,IH=20;function IDe(e){return e.replace(/^\s+|\s+$/g,"")}function sn(e,t,n,r){var a=t[0],i=t[1],o=n[0],s=n[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(r)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function qe(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Je(e)?IDe(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Rn(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),IH),e=(+e).toFixed(t),n?e:+e}function Ia(e){return e.sort(function(t,n){return t-n}),e}function Ei(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return DH(e)}function DH(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 Pk(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 DDe(e,t,n){if(!e[t])return 0;var r=PH(e,n);return r[t]||0}function PH(e,t){var n=ci(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(n===0)return[];for(var r=Math.pow(10,t),a=Oe(e,function(h){return(isNaN(h)?0:h)/n*r*100}),i=r*100,o=Oe(a,function(h){return Math.floor(h)}),s=ci(o,function(h,v){return h+v},0),l=Oe(a,function(h,v){return h-o[v]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Oe(o,function(h){return h/r})}function PDe(e,t){var n=Math.max(Ei(e),Ei(t)),r=e+t;return n>IH?r:Rn(r,n)}var Qx=9007199254740991;function Lk(e){var t=Math.PI*2;return(e%t+t)%t}function yp(e){return e>-eR&&e<eR}var LDe=/^(?:(\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 Oa(e){if(e instanceof Date)return e;if(Je(e)){var t=LDe.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 LH(e){return Math.pow(10,S1(e))}function S1(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 Rk(e,t){var n=S1(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 Vy(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 e2(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var a=e[r].interval,i=e[r].close,o=0;o<2;o++)a[o]<=t&&(a[o]=t,i[o]=o?1:1-n),t=a[o],n=i[o];a[0]===a[1]&&i[0]*i[1]!==1?e.splice(r,1):r++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function xo(e){var t=parseFloat(e);return t==e&&(t!==0||!Je(e)||e.indexOf("x")<=0)?t:NaN}function Ok(e){return!isNaN(xo(e))}function RH(){return Math.round(Math.random()*9)}function OH(e,t){return t===0?e:OH(t,e%t)}function tR(e,t){return e==null?t:t==null?e:e*t/OH(e,t)}function an(e){throw new Error(e)}function nR(e,t,n){return(t-e)*n+e}var $H="series\0",NH="\0_ec_\0";function hn(e){return e instanceof Array?e:e==null?[]:[e]}function cc(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 rR=["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 Ld(e){return ht(e)&&!Re(e)&&!(e instanceof Date)?e.value:e}function RDe(e){return ht(e)&&!(e instanceof Array)}function BH(e,t,n){var r=n==="normalMerge",a=n==="replaceMerge",i=n==="replaceAll";e=e||[],t=(t||[]).slice();var o=ot();F(t,function(l,u){if(!ht(l)){t[u]=null;return}});var s=ODe(e,o,n);return(r||a)&&$De(s,e,o,t),r&&NDe(s,t),r||a?BDe(s,t,a):i&&VDe(s,t),zDe(s),s}function ODe(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"||bp(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function $De(e,t,n,r){F(r,function(a,i){if(!(!a||a.id==null)){var o=bv(a.id),s=n.get(o);if(s!=null){var l=e[s];Nr(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],r[i]=null}}})}function NDe(e,t){F(t,function(n,r){if(!(!n||n.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||n.id==null)&&!bp(n)&&!bp(i)&&VH("name",i,n)){e[a].newOption=n,t[r]=null;return}}})}function BDe(e,t,n){F(t,function(r){if(r){for(var a,i=0;(a=e[i])&&(a.newOption||bp(a.existing)||a.existing&&r.id!=null&&!VH("id",r,a.existing));)i++;a?(a.newOption=r,a.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),i++}})}function VDe(e,t){F(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function zDe(e){var t=ot();F(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),F(e,function(n){var r=n.newOption;Nr(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),F(e,function(n,r){var a=n.existing,i=n.newOption,o=n.keyInfo;if(ht(i)){if(o.name=i.name!=null?bv(i.name):a?a.name:$H+r,a)o.id=bv(a.id);else if(i.id!=null)o.id=bv(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 VH(e,t,n){var r=tr(t[e],null),a=tr(n[e],null);return r!=null&&a!=null&&r===a}function bv(e){return tr(e,"")}function tr(e,t){return e==null?t:Je(e)?e:Qt(e)||M0(e)?e+"":t}function $k(e){var t=e.name;return!!(t&&t.indexOf($H))}function bp(e){return e&&e.id!=null&&bv(e.id).indexOf(NH)===0}function FDe(e){return NH+e}function HDe(e,t,n){F(e,function(r){var a=r.newOption;ht(a)&&(r.keyInfo.mainType=t,r.keyInfo.subType=GDe(t,a,r.existing,n))})}function GDe(e,t,n,r){var a=t.type?t.type:n?n.subType:r.determineSubType(e,t);return a}function WDe(e,t){var n={},r={};return a(e||[],n),a(t||[],r,n),[i(n),i(r)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=tr(o[u].seriesId,null);if(f==null)return;for(var d=hn(o[u].dataIndex),h=l&&l[f],v=0,p=d.length;v<p;v++){var g=d[v];h&&h[g]?h[g]=null:(s[f]||(s[f]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function fc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Re(t.dataIndex)?Oe(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Re(t.name)?Oe(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function en(){var e="__ec_inner_"+KDe++;return function(t){return t[e]||(t[e]={})}}var KDe=RH();function _v(e,t,n){var r=Nk(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=fg(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 Nk(e,t){var n;if(Je(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var a=ot(),i={},o=!1;return F(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&$t(t.includeMainTypes,c)<0)){o=o||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var Wn={useDefault:!0,enableAll:!1,enableNone:!1},UDe={useDefault:!1,enableAll:!0,enableNone:!0};function fg(e,t,n,r){r=r||Wn;var a=n.index,i=n.id,o=n.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=e.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(Nr(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Nr(r.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function zH(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function YDe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function jDe(e){return e==="auto"?Jt.domSupported?"html":"richText":e||"html"}function t2(e,t){var n=ot(),r=[];return F(e,function(a){var i=t(a);(n.get(i)||(r.push(i),n.set(i,[]))).push(a)}),{keys:r,buckets:n}}function FH(e,t,n,r,a){var i=t==null||t==="auto";if(r==null)return r;if(Qt(r)){var o=nR(n||0,r,a);return Rn(o,i?Math.max(Ei(n||0),Ei(r)):t)}else{if(Je(r))return a<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],o=nR(h,v,a);s[f]=Rn(o,i?Math.max(Ei(h),Ei(v)):t)}}return s}}var qDe=".",ql="___EC__COMPONENT__CONTAINER___",HH="___EC__EXTENDED_CLASS___";function co(e){var t={main:"",sub:""};if(e){var n=e.split(qDe);t.main=n[0]||"",t.sub=n[1]||""}return t}function XDe(e){Nr(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function ZDe(e){return!!(e&&e[HH])}function Bk(e,t){e.$constructor=e,e.extend=function(n){var r=this,a;return JDe(r)?a=function(i){ge(o,i);function o(){return i.apply(this,arguments)||this}return o}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},Ck(a,this)),Ie(a.prototype,n),a[HH]=!0,a.extend=this.extend,a.superCall=tPe,a.superApply=nPe,a.superClass=r,a}}function JDe(e){return ut(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function GH(e,t){e.extend=t.extend}var QDe=Math.round(Math.random()*10);function ePe(e){var t=["__\0is_clz",QDe++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function tPe(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 nPe(e,t,n){return this.superClass.prototype[t].apply(e,n)}function C1(e){var t={};e.registerClass=function(r){var a=r.type||r.prototype.type;if(a){XDe(a),r.prototype.type=a;var i=co(a);if(!i.sub)t[i.main]=r;else if(i.sub!==ql){var o=n(i);o[i.sub]=r}}return r},e.getClass=function(r,a,i){var o=t[r];if(o&&o[ql]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return o},e.getClassesByMainType=function(r){var a=co(r),i=[],o=t[a.main];return o&&o[ql]?F(o,function(s,l){l!==ql&&i.push(s)}):i.push(o),i},e.hasClass=function(r){var a=co(r);return!!t[a.main]},e.getAllClassMainTypes=function(){var r=[];return F(t,function(a,i){r.push(i)}),r},e.hasSubTypes=function(r){var a=co(r),i=t[a.main];return i&&i[ql]};function n(r){var a=t[r.main];return(!a||!a[ql])&&(a=t[r.main]={},a[ql]=!0),a}}function dc(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(r,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&$t(a,l)>=0||i&&$t(i,l)<0)){var u=r.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var rPe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],aPe=dc(rPe),iPe=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return aPe(this,t,n)},e}(),n2=new ug(50);function oPe(e){if(typeof e=="string"){var t=n2.get(e);return t&&t.image}else return e}function Vk(e,t,n,r,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var i=n2.get(e),o={hostEl:n,cb:r,cbPayload:a};return i?(t=i.image,!x1(t)&&i.pending.push(o)):(t=Vi.loadImage(e,aR,aR),t.__zrImageSrc=e,n2.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function aR(){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 x1(e){return e&&e.width&&e.height}var ow=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function WH(e,t,n,r,a){if(!t)return"";var i=(e+"").split(`
  79. `);a=KH(t,n,r,a);for(var o=0,s=i.length;o<s;o++)i[o]=UH(i[o],a);return i.join(`
  80. `)}function KH(e,t,n,r){r=r||{};var a=Ie({},r);a.font=t,n=Lt(n,"..."),a.maxIterations=Lt(r.maxIterations,2);var i=a.minChar=Lt(r.minChar,0);a.cnCharWidth=La("国",t);var o=a.ascCharWidth=La("a",t);a.placeholder=Lt(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=La(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 UH(e,t){var n=t.containerWidth,r=t.font,a=t.contentWidth;if(!n)return"";var i=La(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?sPe(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=La(e,r)}return e===""&&(e=t.placeholder),e}function sPe(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 lPe(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,a=t.font,i=n==="truncate",o=w1(a),s=Lt(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(n==="break"||n==="breakAll")?f=e?YH(e,t.font,c,n==="breakAll",0).lines:[]:f=e?e.split(`
  81. `):[];var d=f.length*s,h=Lt(t.height,d);if(d>h&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&i&&c!=null)for(var p=KH(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=UH(f[g],p);for(var m=h,b=0,g=0;g<f.length;g++)b=Math.max(La(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 uPe=function(){function e(){}return e}(),iR=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),cPe=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 fPe(e,t){var n=new cPe;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=ow.lastIndex=0,l;(l=ow.exec(e))!=null;){var u=l.index;u>s&&sw(n,e.substring(s,u),t,o),sw(n,l[2],t,o,l[1]),s=ow.lastIndex}s<e.length&&sw(n,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,v=i==="truncate",p=t.lineOverflow==="truncate";function g($,I,z){$.width=I,$.lineHeight=z,f+=z,d=Math.max(d,I)}e:for(var m=0;m<n.lines.length;m++){for(var b=n.lines[m],_=0,w=0,C=0;C<b.tokens.length;C++){var S=b.tokens[C],x=S.styleName&&t.rich[S.styleName]||{},T=S.textPadding=x.padding,M=T?T[1]+T[3]:0,A=S.font=x.font||t.font;S.contentHeight=w1(A);var k=Lt(x.height,S.contentHeight);if(S.innerHeight=k,T&&(k+=T[0]+T[2]),S.height=k,S.lineHeight=Ri(x.lineHeight,t.lineHeight,k),S.align=x&&x.align||t.align,S.verticalAlign=x&&x.verticalAlign||"middle",p&&a!=null&&f+S.lineHeight>a){C>0?(b.tokens=b.tokens.slice(0,C),g(b,w,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var E=x.width,D=E==null||E==="auto";if(typeof E=="string"&&E.charAt(E.length-1)==="%")S.percentWidth=E,c.push(S),S.contentWidth=La(S.text,A);else{if(D){var L=x.backgroundColor,B=L&&L.image;B&&(B=oPe(B),x1(B)&&(S.width=Math.max(S.width,B.width*k/B.height)))}var N=v&&r!=null?r-w:null;N!=null&&N<S.width?!D||N<M?(S.text="",S.width=S.contentWidth=0):(S.text=WH(S.text,N-M,A,t.ellipsis,{minChar:t.truncateMinChar}),S.width=S.contentWidth=La(S.text,A)):S.contentWidth=La(S.text,A)}S.width+=M,w+=S.width,x&&(_=Math.max(_,S.lineHeight))}g(b,w,_)}n.outerWidth=n.width=Lt(r,d),n.outerHeight=n.height=Lt(a,f),n.contentHeight=f,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var m=0;m<c.length;m++){var S=c[m],O=S.percentWidth;S.width=parseInt(O,10)/100*n.width}return n}function sw(e,t,n,r,a){var i=t==="",o=a&&n.rich[a]||{},s=e.lines,l=o.font||n.font,u=!1,c,f;if(r){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Fi(o.width,r.width)+h;s.length>0&&v+r.accumWidth>r.width&&(c=t.split(`
  82. `),u=!0),r.accumWidth=v}else{var p=YH(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=t.split(`
  83. `);for(var g=0;g<c.length;g++){var m=c[g],b=new uPe;if(b.styleName=a,b.text=m,b.isLineHolder=!m&&!i,typeof o.width=="number"?b.width=o.width:b.width=f?f[g]:La(m,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new iR)).tokens,w=_.length;w===1&&_[0].isLineHolder?_[0]=b:(m||!w||i)&&_.push(b)}else s.push(new iR([b]))}}function dPe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var hPe=ci(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function vPe(e){return dPe(e)?!!hPe[e]:!0}function YH(e,t,n,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
  84. `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=La(d,t),v=r?!1:!vPe(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 r2="__zr_style_"+Math.round(Math.random()*10),Zu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},T1={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Zu[r2]=!0;var oR=["z","z2","invisible"],pPe=["invisible"],gPe=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=Gt(n),a=0;a<r.length;a++){var i=r[a];i==="style"?this.useStyle(n[i]):e.prototype.attrKV.call(this,i,n[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,r,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&mPe(this,n,r)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,r){return this.rectContain(n,r)},t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Rt(0,0,0,0)),r?Rt.applyTransform(n,a,r):n.copy(a),(o||s||l)&&(n.width+=o*2+Math.abs(s),n.height+=o*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-o),n.y=Math.min(n.y,n.y+l-o));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Rt(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,r){n!=="style"?e.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Ie(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=Fh,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Fh)},t.prototype.styleUpdated=function(){this.__dirty&=~Fh},t.prototype.createStyle=function(n){return sg(Zu,n)},t.prototype.useStyle=function(n){n[r2]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[r2]},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,oR)},t.prototype._applyStateObj=function(n,r,a,i,o,s){e.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.style?o?i?u=r.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,r.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Gt(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=Gt(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?pPe:oR,d=0;d<p.length;d++){var h=p[d];r&&r[h]!=null?this[h]=r[h]:l&&a[h]!=null&&(this[h]=a[h])}},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(r.style=a),r},t.prototype._mergeStyle=function(n,r){return Ie(n,r),n},t.prototype.getAnimationStyleProps=function(){return T1},t.initDefaultProps=function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=Ta|Fh}(),t}(kH),lw=new Rt(0,0,0,0),uw=new Rt(0,0,0,0);function mPe(e,t,n){return lw.copy(e.getBoundingRect()),e.transform&&lw.applyTransform(e.transform),uw.width=t,uw.height=n,!lw.intersect(uw)}const fi=gPe;var da=Math.min,ha=Math.max,cw=Math.sin,fw=Math.cos,Xl=Math.PI*2,cm=Pl(),fm=Pl(),dm=Pl();function M1(e,t,n){if(e.length!==0){for(var r=e[0],a=r[0],i=r[0],o=r[1],s=r[1],l=1;l<e.length;l++)r=e[l],a=da(a,r[0]),i=ha(i,r[0]),o=da(o,r[1]),s=ha(s,r[1]);t[0]=a,t[1]=o,n[0]=i,n[1]=s}}function sR(e,t,n,r,a,i){a[0]=da(e,n),a[1]=da(t,r),i[0]=ha(e,n),i[1]=ha(t,r)}var lR=[],uR=[];function yPe(e,t,n,r,a,i,o,s,l,u){var c=cH,f=nr,d=c(e,n,a,o,lR);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,lR[h]);l[0]=da(v,l[0]),u[0]=ha(v,u[0])}d=c(t,r,i,s,uR);for(var h=0;h<d;h++){var p=f(t,r,i,s,uR[h]);l[1]=da(p,l[1]),u[1]=ha(p,u[1])}l[0]=da(e,l[0]),u[0]=ha(e,u[0]),l[0]=da(o,l[0]),u[0]=ha(o,u[0]),l[1]=da(t,l[1]),u[1]=ha(t,u[1]),l[1]=da(s,l[1]),u[1]=ha(s,u[1])}function bPe(e,t,n,r,a,i,o,s){var l=dH,u=fr,c=ha(da(l(e,n,a),1),0),f=ha(da(l(t,r,i),1),0),d=u(e,n,a,c),h=u(t,r,i,f);o[0]=da(e,a,d),o[1]=da(t,i,h),s[0]=ha(e,a,d),s[1]=ha(t,i,h)}function _Pe(e,t,n,r,a,i,o,s,l){var u=Wo,c=Ko,f=Math.abs(a-i);if(f%Xl<1e-4&&f>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(cm[0]=fw(a)*n+e,cm[1]=cw(a)*r+t,fm[0]=fw(i)*n+e,fm[1]=cw(i)*r+t,u(s,cm,fm),c(l,cm,fm),a=a%Xl,a<0&&(a=a+Xl),i=i%Xl,i<0&&(i=i+Xl),a>i&&!o?i+=Xl:a<i&&o&&(a+=Xl),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(dm[0]=fw(h)*n+e,dm[1]=cw(h)*r+t,u(s,dm,s),c(l,dm,l))}var pn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Zl=[],Jl=[],qi=[],Cs=[],Xi=[],Zi=[],dw=Math.min,hw=Math.max,Ql=Math.cos,eu=Math.sin,Po=Math.abs,a2=Math.PI,Os=a2*2,vw=typeof Float32Array<"u",hh=[];function pw(e){var t=Math.round(e/a2*1e8)/1e8;return t%2*a2}function jH(e,t){var n=pw(e[0]);n<0&&(n+=Os);var r=n-e[0],a=e[1];a+=r,!t&&a-n>=Os?a=n+Os:t&&n-a>=Os?a=n-Os:!t&&n>a?a=n+(Os-pw(n-a)):t&&n<a&&(a=n-(Os-pw(a-n))),e[0]=n,e[1]=a}var wPe=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,n,r){r=r||0,r>0&&(this._ux=Po(r/L0/t)||0,this._uy=Po(r/L0/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(pn.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=Po(t-this._xi),a=Po(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(pn.L,t,n),this._ctx&&i&&this._ctx.lineTo(t,n),i)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,n,r,a,i,o){return this._drawPendingPt(),this.addData(pn.C,t,n,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,n,r,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,n,r,a){return this._drawPendingPt(),this.addData(pn.Q,t,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,a),this._xi=r,this._yi=a,this},e.prototype.arc=function(t,n,r,a,i,o){this._drawPendingPt(),hh[0]=a,hh[1]=i,jH(hh,o),a=hh[0],i=hh[1];var s=i-a;return this.addData(pn.A,t,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,n,r,a,i,o),this._xi=Ql(i)*r+t,this._yi=eu(i)*r+n,this},e.prototype.arcTo=function(t,n,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,a,i),this},e.prototype.rect=function(t,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,a),this.addData(pn.R,t,n,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(pn.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&vw&&(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();vw&&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,vw&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){qi[0]=qi[1]=Xi[0]=Xi[1]=Number.MAX_VALUE,Cs[0]=Cs[1]=Zi[0]=Zi[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(n=t[o],r=t[o+1],a=n,i=r),s){case pn.M:n=a=t[o++],r=i=t[o++],Xi[0]=a,Xi[1]=i,Zi[0]=a,Zi[1]=i;break;case pn.L:sR(n,r,t[o],t[o+1],Xi,Zi),n=t[o++],r=t[o++];break;case pn.C:yPe(n,r,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Xi,Zi),n=t[o++],r=t[o++];break;case pn.Q:bPe(n,r,t[o++],t[o++],t[o],t[o+1],Xi,Zi),n=t[o++],r=t[o++];break;case pn.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var p=!t[o++];l&&(a=Ql(h)*f+u,i=eu(h)*d+c),_Pe(u,c,f,d,h,v,p,Xi,Zi),n=Ql(v)*f+u,r=eu(v)*d+c;break;case pn.R:a=n=t[o++],i=r=t[o++];var g=t[o++],m=t[o++];sR(a,i,a+g,i+m,Xi,Zi);break;case pn.Z:n=a,r=i;break}Wo(qi,qi,Xi),Ko(Cs,Cs,Zi)}return o===0&&(qi[0]=qi[1]=Cs[0]=Cs[1]=0),new Rt(qi[0],qi[1],Cs[0]-qi[0],Cs[1]-qi[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,r=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var h=t[d++],v=d===1;v&&(i=t[d],o=t[d+1],s=i,l=o);var p=-1;switch(h){case pn.M:i=s=t[d++],o=l=t[d++];break;case pn.L:{var g=t[d++],m=t[d++],b=g-i,_=m-o;(Po(b)>r||Po(_)>a||d===n-1)&&(p=Math.sqrt(b*b+_*_),i=g,o=m);break}case pn.C:{var w=t[d++],C=t[d++],g=t[d++],m=t[d++],S=t[d++],x=t[d++];p=IIe(i,o,w,C,g,m,S,x,10),i=S,o=x;break}case pn.Q:{var w=t[d++],C=t[d++],g=t[d++],m=t[d++];p=PIe(i,o,w,C,g,m,10),i=g,o=m;break}case pn.A:var T=t[d++],M=t[d++],A=t[d++],k=t[d++],E=t[d++],D=t[d++],L=D+E;d+=1,t[d++],v&&(s=Ql(E)*A+T,l=eu(E)*k+M),p=hw(A,k)*dw(Os,Math.abs(D)),i=Ql(L)*A+T,o=eu(L)*k+M;break;case pn.R:{s=i=t[d++],l=o=t[d++];var B=t[d++],N=t[d++];p=B*2+N*2;break}case pn.Z:{var b=s-i,_=l-o;p=Math.sqrt(b*b+_*_),i=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,h=n<1,v,p,g=0,m=0,b,_=0,w,C;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,b=n*p,!b)))e:for(var S=0;S<o;){var x=r[S++],T=S===1;switch(T&&(u=r[S],c=r[S+1],s=u,l=c),x!==pn.L&&_>0&&(t.lineTo(w,C),_=0),x){case pn.M:s=u=r[S++],l=c=r[S++],t.moveTo(u,c);break;case pn.L:{f=r[S++],d=r[S++];var M=Po(f-u),A=Po(d-c);if(M>a||A>i){if(h){var k=v[m++];if(g+k>b){var E=(b-g)/k;t.lineTo(u*(1-E)+f*E,c*(1-E)+d*E);break e}g+=k}t.lineTo(f,d),u=f,c=d,_=0}else{var D=M*M+A*A;D>_&&(w=f,C=d,_=D)}break}case pn.C:{var L=r[S++],B=r[S++],N=r[S++],O=r[S++],$=r[S++],I=r[S++];if(h){var k=v[m++];if(g+k>b){var E=(b-g)/k;ml(u,L,N,$,E,Zl),ml(c,B,O,I,E,Jl),t.bezierCurveTo(Zl[1],Jl[1],Zl[2],Jl[2],Zl[3],Jl[3]);break e}g+=k}t.bezierCurveTo(L,B,N,O,$,I),u=$,c=I;break}case pn.Q:{var L=r[S++],B=r[S++],N=r[S++],O=r[S++];if(h){var k=v[m++];if(g+k>b){var E=(b-g)/k;hp(u,L,N,E,Zl),hp(c,B,O,E,Jl),t.quadraticCurveTo(Zl[1],Jl[1],Zl[2],Jl[2]);break e}g+=k}t.quadraticCurveTo(L,B,N,O),u=N,c=O;break}case pn.A:var z=r[S++],G=r[S++],U=r[S++],Z=r[S++],ae=r[S++],J=r[S++],Q=r[S++],ee=!r[S++],j=U>Z?U:Z,de=Po(U-Z)>.001,ve=ae+J,ie=!1;if(h){var k=v[m++];g+k>b&&(ve=ae+J*(b-g)/k,ie=!0),g+=k}if(de&&t.ellipse?t.ellipse(z,G,U,Z,Q,ae,ve,ee):t.arc(z,G,j,ae,ve,ee),ie)break e;T&&(s=Ql(ae)*U+z,l=eu(ae)*Z+G),u=Ql(ve)*U+z,c=eu(ve)*Z+G;break;case pn.R:s=u=r[S],l=c=r[S+1],f=r[S++],d=r[S++];var W=r[S++],X=r[S++];if(h){var k=v[m++];if(g+k>b){var oe=b-g;t.moveTo(f,d),t.lineTo(f+dw(oe,W),d),oe-=W,oe>0&&t.lineTo(f+W,d+dw(oe,X)),oe-=X,oe>0&&t.lineTo(f+hw(W-oe,0),d+X),oe-=W,oe>0&&t.lineTo(f,d+hw(X-oe,0));break e}g+=k}t.rect(f,d,W,X);break;case pn.Z:if(h){var k=v[m++];if(g+k>b){var E=(b-g)/k;t.lineTo(u*(1-E)+s*E,c*(1-E)+l*E);break e}g+=k}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=pn,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const To=wPe;function Vs(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 SPe(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=fH(e,t,n,r,a,i,o,s,u,c,null);return d<=f/2}function qH(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=hH(e,t,n,r,a,i,s,l,null);return c<=u/2}var cR=Math.PI*2;function Ii(e){return e%=cR,e<0&&(e+=cR),e}var vh=Math.PI*2;function CPe(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)%vh<1e-4)return!0;if(i){var f=r;r=Ii(a),a=Ii(f)}else r=Ii(r),a=Ii(a);r>a&&(a+=vh);var d=Math.atan2(l,s);return d<0&&(d+=vh),d>=r&&d<=a||d+vh>=r&&d+vh<=a}function Vo(e,t,n,r,a,i){if(i>t&&i>r||i<t&&i<r||r===t)return 0;var o=(i-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var l=o*(n-e)+e;return l===a?1/0:l>a?s:0}var xs=To.CMD,tu=Math.PI*2,xPe=1e-4;function TPe(e,t){return Math.abs(e-t)<xPe}var Gr=[-1,-1,-1],Ka=[-1,-1];function MPe(){var e=Ka[0];Ka[0]=Ka[1],Ka[1]=e}function kPe(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=I0(t,r,i,s,u,Gr);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,p=0;p<c;p++){var g=Gr[p],m=g===0||g===1?.5:1,b=nr(e,n,a,o,g);b<l||(d<0&&(d=cH(t,r,i,s,Ka),Ka[1]<Ka[0]&&d>1&&MPe(),h=nr(t,r,i,s,Ka[0]),d>1&&(v=nr(t,r,i,s,Ka[1]))),d===2?g<Ka[0]?f+=h<t?m:-m:g<Ka[1]?f+=v<h?m:-m:f+=s<v?m:-m:g<Ka[0]?f+=h<t?m:-m:f+=s<h?m:-m)}return f}function APe(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=DIe(t,r,i,s,Gr);if(l===0)return 0;var u=dH(t,r,i);if(u>=0&&u<=1){for(var c=0,f=fr(t,r,i,u),d=0;d<l;d++){var h=Gr[d]===0||Gr[d]===1?.5:1,v=fr(e,n,a,Gr[d]);v<o||(Gr[d]<u?c+=f<t?h:-h:c+=i<f?h:-h)}return c}else{var h=Gr[0]===0||Gr[0]===1?.5:1,v=fr(e,n,a,Gr[0]);return v<o?0:i<t?h:-h}}function EPe(e,t,n,r,a,i,o,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Gr[0]=-l,Gr[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=tu-1e-4){r=0,a=tu;var c=i?1:-1;return o>=Gr[0]+e&&o<=Gr[1]+e?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=tu,a+=tu);for(var d=0,h=0;h<2;h++){var v=Gr[h];if(v+e>o){var p=Math.atan2(s,v),c=i?1:-1;p<0&&(p=tu+p),(p>=r&&p<=a||p+tu>=r&&p+tu<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function XH(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===xs.M&&v>1&&(n||(s+=Vo(l,u,c,f,r,a))),g&&(l=i[v],u=i[v+1],c=l,f=u),p){case xs.M:c=i[v++],f=i[v++],l=c,u=f;break;case xs.L:if(n){if(Vs(l,u,i[v],i[v+1],t,r,a))return!0}else s+=Vo(l,u,i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case xs.C:if(n){if(SPe(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,r,a))return!0}else s+=kPe(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case xs.Q:if(n){if(qH(l,u,i[v++],i[v++],i[v],i[v+1],t,r,a))return!0}else s+=APe(l,u,i[v++],i[v++],i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case xs.A:var m=i[v++],b=i[v++],_=i[v++],w=i[v++],C=i[v++],S=i[v++];v+=1;var x=!!(1-i[v++]);d=Math.cos(C)*_+m,h=Math.sin(C)*w+b,g?(c=d,f=h):s+=Vo(l,u,d,h,r,a);var T=(r-m)*w/_+m;if(n){if(CPe(m,b,w,C,C+S,x,t,T,a))return!0}else s+=EPe(m,b,w,C,C+S,x,T,a);l=Math.cos(C+S)*_+m,u=Math.sin(C+S)*w+b;break;case xs.R:c=l=i[v++],f=u=i[v++];var M=i[v++],A=i[v++];if(d=c+M,h=f+A,n){if(Vs(c,f,d,f,t,r,a)||Vs(d,f,d,h,t,r,a)||Vs(d,h,c,h,t,r,a)||Vs(c,h,c,f,t,r,a))return!0}else s+=Vo(d,f,d,h,r,a),s+=Vo(c,h,c,f,r,a);break;case xs.Z:if(n){if(Vs(l,u,c,f,t,r,a))return!0}else s+=Vo(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!TPe(u,f)&&(s+=Vo(l,u,c,f,r,a)||0),s!==0}function IPe(e,t,n){return XH(e,0,!1,t,n)}function DPe(e,t,n,r){return XH(e,t,!0,n,r)}var O0=ft({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Zu),PPe={style:ft({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},T1.style)},gw=Co.concat(["invisible","culling","z","z2","zlevel","parent"]),LPe=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){n.buildPath(l,n.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s<gw.length;++s)a[gw[s]]=this[gw[s]];a.__dirty|=Ta}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=Gt(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<r.length;i++){var o=r[i],s=n[o];o==="style"?this.style?Ie(this.style,s):this.useStyle(s):o==="shape"?Ie(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(Je(n)){var r=gp(n,0);return r>.5?Xx:r>.2?vDe:Zx}else if(n)return Zx}return Xx},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Je(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=gp(n,0)<qx;if(i===o)return r}},t.prototype.buildPath=function(n,r,a){},t.prototype.pathUpdated=function(){this.__dirty&=~ff},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new To(!1)},t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&ff)&&(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)),DPe(s,l/u,n,r)))return!0}if(this.hasFill())return IPe(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ff,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:Ie(a,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ff)},t.prototype.createStyle=function(n){return sg(O0,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Ie({},this.shape))},t.prototype._applyStateObj=function(n,r,a,i,o,s){e.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=Ie({},a.shape),Ie(u,r.shape)):(u=Ie({},i?this.shape:a.shape),Ie(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=Ie({},this.shape);for(var c={},f=Gt(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(n){for(var r=e.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(r.shape=a),r},t.prototype.getAnimationStyleProps=function(){return PPe},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=function(i){ge(o,i);function o(s){var l=i.call(this,s)||this;return n.init&&n.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return pt(n.style)},o.prototype.getDefaultShape=function(){return pt(n.shape)},o}(t);for(var a in n)typeof n[a]=="function"&&(r.prototype[a]=n[a]);return r},t.initDefaultProps=function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=Ta|Fh|ff}(),t}(fi);const zt=LPe;var RPe=ft({strokeFirst:!0,font:gl,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},O0),ZH=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return sg(RPe,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=cg(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}(fi);ZH.prototype.type="tspan";const _p=ZH;var OPe=ft({x:0,y:0},Zu),$Pe={style:ft({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},T1.style)};function NPe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var JH=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return sg(OPe,n)},t.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=NPe(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 $Pe},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Rt(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(fi);JH.prototype.type="image";const vr=JH;function BPe(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 wf=Math.round;function QH(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&&(wf(r*2)===wf(a*2)&&(e.x1=e.x2=Bu(r,s,!0)),wf(i*2)===wf(o*2)&&(e.y1=e.y2=Bu(i,s,!0))),e}}function eG(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=Bu(r,s,!0),e.y=Bu(a,s,!0),e.width=Math.max(Bu(r+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(Bu(a+o,s,!1)-e.y,o===0?0:1)),e}}function Bu(e,t,n){if(!t)return e;var r=wf(e*2);return(r+wf(t))%2===0?r/2:(r+(n?1:-1))/2}var VPe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),zPe={},tG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new VPe},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=eG(zPe,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?BPe(n,r):n.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(zt);tG.prototype.type="rect";const Zt=tG;var fR={fill:"#000"},dR=2,FPe={style:ft({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},T1.style)},nG=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=fR,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,WPe(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new Rt(0,0,0,0),r=this._children,a=[],i=null,o=0;o<r.length;o++){var s=r[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(n.copy(l),n.applyTransform(u),i=i||n.clone(),i.union(n)):(i=i||l.clone(),i.union(l))}this._rect=i||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||fR},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,i=n.rich||a&&{};return Ie(n,r),a&&i?(this._mergeRich(i,a),n.rich=i):i&&(n.rich=i),n},t.prototype._mergeRich=function(n,r){for(var a=Gt(r),i=0;i<a.length;i++){var o=a[i];n[o]=n[o]||{},Ie(n[o],r[o])}},t.prototype.getAnimationStyleProps=function(){return FPe},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||gl,a=n.padding,i=bR(n),o=lPe(i,n),s=mw(n),l=!!n.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,p=n.x||0,g=n.y||0,m=n.align||v.align||"left",b=n.verticalAlign||v.verticalAlign||"top",_=p,w=df(g,o.contentHeight,b);if(s||a){var C=Gh(p,c,m),S=df(g,u,b);s&&this._renderBackground(n,n,C,S,c,u)}w+=h/2,a&&(_=yR(p,m,a),b==="top"?w+=a[0]:b==="bottom"&&(w-=a[2]));for(var x=0,T=!1,M=mR("fill"in n?n.fill:(T=!0,v.fill)),A=gR("stroke"in n?n.stroke:!l&&(!v.autoStroke||T)?(x=dR,v.stroke):null),k=n.textShadowBlur>0,E=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),D=o.calculatedLineHeight,L=0;L<d.length;L++){var B=this._getOrCreateChild(_p),N=B.createStyle();B.useStyle(N),N.text=d[L],N.x=_,N.y=w,m&&(N.textAlign=m),N.textBaseline="middle",N.opacity=n.opacity,N.strokeFirst=!0,k&&(N.shadowBlur=n.textShadowBlur||0,N.shadowColor=n.textShadowColor||"transparent",N.shadowOffsetX=n.textShadowOffsetX||0,N.shadowOffsetY=n.textShadowOffsetY||0),N.stroke=A,N.fill=M,A&&(N.lineWidth=n.lineWidth||x,N.lineDash=n.lineDash,N.lineDashOffset=n.lineDashOffset||0),N.font=r,vR(N,n),w+=h,E&&B.setBoundingRect(new Rt(Gh(N.x,n.width,N.textAlign),df(N.y,D,N.textBaseline),f,D))}},t.prototype._updateRichTexts=function(){var n=this.style,r=bR(n),a=fPe(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=Gh(u,o,d),p=df(c,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var b=g+i;mw(n)&&this._renderBackground(n,n,v,p,o,s);for(var _=!!n.backgroundColor,w=0;w<a.lines.length;w++){for(var C=a.lines[w],S=C.tokens,x=S.length,T=C.lineHeight,M=C.width,A=0,k=g,E=b,D=x-1,L=void 0;A<x&&(L=S[A],!L.align||L.align==="left");)this._placeToken(L,n,T,m,k,"left",_),M-=L.width,k+=L.width,A++;for(;D>=0&&(L=S[D],L.align==="right");)this._placeToken(L,n,T,m,E,"right",_),M-=L.width,E-=L.width,D--;for(k+=(i-(k-g)-(b-E)-M)/2;A<=D;)L=S[A],this._placeToken(L,n,T,m,k+L.width/2,"center",_),k+=L.width,A++;m+=T}},t.prototype._placeToken=function(n,r,a,i,o,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=i+a/2;c==="top"?f=i+n.height/2:c==="bottom"&&(f=i+a-n.height/2);var d=!n.isLineHolder&&mw(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=yR(o,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var p=this._getOrCreateChild(_p),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,b=!1,_=0,w=mR("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,m.fill)),C=gR("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!m.autoStroke||b)?(_=dR,m.stroke):null),S=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=f,S&&(g.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,g.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=n.font||gl,g.opacity=Ri(u.opacity,r.opacity,1),vR(g,u),C&&(g.lineWidth=Ri(u.lineWidth,r.lineWidth,_),g.lineDash=Lt(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=C),w&&(g.fill=w);var x=n.contentWidth,T=n.contentHeight;p.setBoundingRect(new Rt(Gh(g.x,x,g.textAlign),df(g.y,T,g.textBaseline),x,T))},t.prototype._renderBackground=function(n,r,a,i,o,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,v=this,p,g;if(d||n.lineHeight||u&&c){p=this._getOrCreateChild(Zt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=a,m.y=i,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(d){var b=p.style;b.fill=l||null,b.fillOpacity=Lt(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(vr),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var b=p.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Lt(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var w=(p||g).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=Ri(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return aG(n)&&(r=[n.fontStyle,n.fontWeight,rG(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Ja(r)||n.textFont||n.font},t}(fi),HPe={left:!0,right:1,center:1},GPe={top:1,bottom:1,middle:1},hR=["fontStyle","fontWeight","fontSize","fontFamily"];function rG(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?bk+"px":e+"px"}function vR(e,t){for(var n=0;n<hR.length;n++){var r=hR[n],a=t[r];a!=null&&(e[r]=a)}}function aG(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function WPe(e){return pR(e),F(e.rich,pR),e}function pR(e){if(e){e.font=nG.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||HPe[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||GPe[n]?n:"top";var r=e.padding;r&&(e.padding=m1(e.padding))}}function gR(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function mR(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function yR(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function bR(e){var t=e.text;return t!=null&&(t+=""),t}function mw(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Xt=nG;var Tt=en(),i2=function(e,t,n,r){if(r){var a=Tt(r);a.dataIndex=n,a.dataType=t,a.seriesIndex=e,r.type==="group"&&r.traverse(function(i){var o=Tt(i);o.seriesIndex=e,o.dataIndex=n,o.dataType=t})}},_R=1,wR={},iG=en(),zk=en(),Fk=0,dg=1,k1=2,ta=["emphasis","blur","select"],wp=["normal","emphasis","blur","select"],Rd=10,KPe=9,Ju="highlight",zy="downplay",wv="select",Fy="unselect",Sv="toggleSelect";function Hc(e){return e!=null&&e!=="none"}var SR=new ug(100);function CR(e){if(Je(e)){var t=SR.get(e);return t||(t=D0(e,-.1),SR.put(e,t)),t}else if(og(e)){var n=Ie({},e);return n.colorStops=Oe(e.colorStops,function(r){return{offset:r.offset,color:D0(r.color,-.1)}}),n}return e}function A1(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function oG(e){A1(e,"emphasis",k1)}function sG(e){e.hoverState===k1&&A1(e,"normal",Fk)}function Hk(e){A1(e,"blur",dg)}function lG(e){e.hoverState===dg&&A1(e,"normal",Fk)}function UPe(e){e.selected=!0}function YPe(e){e.selected=!1}function xR(e,t,n){t(e,n)}function ps(e,t,n){xR(e,t,n),e.isGroup&&e.traverse(function(r){xR(r,t,n)})}function $0(e,t){switch(t){case"emphasis":e.hoverState=k1;break;case"normal":e.hoverState=Fk;break;case"blur":e.hoverState=dg;break;case"select":e.selected=!0}}function jPe(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 qPe(e,t,n,r){var a=n&&$t(n,"select")>=0,i=!1;if(e instanceof zt){var o=iG(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Hc(s)||Hc(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=Ie({},r),u=Ie({},u),u.fill=s):!Hc(u.fill)&&Hc(s)?(i=!0,r=Ie({},r),u=Ie({},u),u.fill=CR(s)):!Hc(u.stroke)&&Hc(l)&&(i||(r=Ie({},r),u=Ie({},u)),u.stroke=CR(l)),r.style=u}}if(r&&r.z2==null){i||(r=Ie({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??Rd)}return r}function XPe(e,t,n){if(n&&n.z2==null){n=Ie({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??KPe)}return n}function ZPe(e,t,n){var r=$t(e.currentStates,t)>=0,a=e.style.opacity,i=r?null:jPe(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=Ie({},n),o=Ie({opacity:r?a:i.opacity*.1},o),n.style=o),n}function yw(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return qPe(this,e,t,n);if(e==="blur")return ZPe(this,e,n);if(e==="select")return XPe(this,e,n)}return n}function hc(e){e.stateProxy=yw;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=yw),n&&(n.stateProxy=yw)}function TR(e,t){!dG(e,t)&&!e.__highByOuter&&ps(e,oG)}function MR(e,t){!dG(e,t)&&!e.__highByOuter&&ps(e,sG)}function rs(e,t){e.__highByOuter|=1<<(t||0),ps(e,oG)}function as(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ps(e,sG)}function uG(e){ps(e,Hk)}function Gk(e){ps(e,lG)}function cG(e){ps(e,UPe)}function fG(e){ps(e,YPe)}function dG(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function hG(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(a,i){var o=zk(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){lG(u)}),s&&n.push(i)),o.isBlured=!1}),F(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,t)})}function o2(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&&Gk(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"||Hk(g)}),Cr(t))i(u.getData(),t);else if(ht(t))for(var v=Gt(t),p=0;p<v.length;p++)i(u.getData(v[p]),t[v[p]]);l.push(u),zk(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 s2(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){zk(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Hk(i)})}}}function JPe(e,t,n){var r=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=fc(a,t);i=(Re(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=Tt(o);o2(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&o2(r,c,f,n)}}}function Wk(e,t,n,r){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return a;var i=r.getModel().getComponent(e,t);if(!i)return a;var o=r.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(Tt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function QPe(e,t,n){var r=Tt(e),a=Wk(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=a.dispatchers,o=a.focusSelf;i?(o&&s2(r.componentMainType,r.componentIndex,n),F(i,function(s){return TR(s,t)})):(o2(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&s2(r.componentMainType,r.componentIndex,n),TR(e,t))}function eLe(e,t,n){hG(n);var r=Tt(e),a=Wk(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?F(a,function(i){return MR(i,t)}):MR(e,t)}function tLe(e,t,n){if(u2(t)){var r=t.dataType,a=e.getData(r),i=fc(a,t);Re(i)||(i=[i]),e[t.type===Sv?"toggleSelect":t.type===wv?"select":"unselect"](i,r)}}function kR(e){var t=e.getAllData();F(t,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?cG(i):fG(i)})})}function nLe(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();F(r,function(a){a.data;var i=a.type,o=n.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function al(e,t,n){Vu(e,!0),ps(e,hc),l2(e,t,n)}function rLe(e){Vu(e,!1)}function $n(e,t,n,r){r?rLe(e):al(e,t,n)}function l2(e,t,n){var r=Tt(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var AR=["emphasis","blur","select"],aLe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function xr(e,t,n,r){n=n||"itemStyle";for(var a=0;a<AR.length;a++){var i=AR[a],o=t.getModel([i,n]),s=e.ensureState(i);s.style=r?r(o):o[aLe[n]]()}}function Vu(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 Sp(e){return!!(e&&e.__highDownDispatcher)}function iLe(e,t,n){var r=Tt(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function oLe(e){var t=wR[e];return t==null&&_R<=32&&(t=wR[e]=_R++),t}function u2(e){var t=e.type;return t===wv||t===Fy||t===Sv}function ER(e){var t=e.type;return t===Ju||t===zy}function sLe(e){var t=iG(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 Gc=To.CMD,lLe=[[],[],[]],IR=Math.sqrt,uLe=Math.atan2;function vG(e,t){if(t){var n=e.data,r=e.len(),a,i,o,s,l,u,c=Gc.M,f=Gc.C,d=Gc.L,h=Gc.R,v=Gc.A,p=Gc.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=IR(t[0]*t[0]+t[1]*t[1]),_=IR(t[2]*t[2]+t[3]*t[3]),w=uLe(-t[1]/_,t[0]/b);n[o]*=b,n[o++]+=g,n[o]*=_,n[o++]+=m,n[o++]*=b,n[o++]*=_,n[o++]+=w,n[o++]+=w,o+=2,s=o;break;case h:u[0]=n[o++],u[1]=n[o++],hr(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[o++],u[1]+=n[o++],hr(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<i;l++){var C=lLe[l];C[0]=n[o++],C[1]=n[o++],hr(C,C,t),n[s++]=C[0],n[s++]=C[1]}}e.increaseVersion()}}var bw=Math.sqrt,hm=Math.sin,vm=Math.cos,ph=Math.PI;function DR(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function c2(e,t){return(e[0]*t[0]+e[1]*t[1])/(DR(e)*DR(t))}function PR(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(c2(e,t))}function LR(e,t,n,r,a,i,o,s,l,u,c){var f=l*(ph/180),d=vm(f)*(e-n)/2+hm(f)*(t-r)/2,h=-1*hm(f)*(e-n)/2+vm(f)*(t-r)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=bw(v),s*=bw(v));var p=(a===i?-1:1)*bw((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+vm(f)*g-hm(f)*m,_=(t+r)/2+hm(f)*g+vm(f)*m,w=PR([1,0],[(d-g)/o,(h-m)/s]),C=[(d-g)/o,(h-m)/s],S=[(-1*d-g)/o,(-1*h-m)/s],x=PR(C,S);if(c2(C,S)<=-1&&(x=ph),c2(C,S)>=1&&(x=0),x<0){var T=Math.round(x/ph*1e6)/1e6;x=ph*2+T%2*ph}c.addData(u,b,_,o,s,w,x,f,i)}var cLe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,fLe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function dLe(e){var t=new To;if(!e)return t;var n=0,r=0,a=n,i=r,o,s=To.CMD,l=e.match(cLe);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(fLe)||[],v=h.length,p=0;p<v;p++)h[p]=parseFloat(h[p]);for(var g=0;g<v;){var m=void 0,b=void 0,_=void 0,w=void 0,C=void 0,S=void 0,x=void 0,T=n,M=r,A=void 0,k=void 0;switch(f){case"l":n+=h[g++],r+=h[g++],d=s.L,t.addData(d,n,r);break;case"L":n=h[g++],r=h[g++],d=s.L,t.addData(d,n,r);break;case"m":n+=h[g++],r+=h[g++],d=s.M,t.addData(d,n,r),a=n,i=r,f="l";break;case"M":n=h[g++],r=h[g++],d=s.M,t.addData(d,n,r),a=n,i=r,f="L";break;case"h":n+=h[g++],d=s.L,t.addData(d,n,r);break;case"H":n=h[g++],d=s.L,t.addData(d,n,r);break;case"v":r+=h[g++],d=s.L,t.addData(d,n,r);break;case"V":r=h[g++],d=s.L,t.addData(d,n,r);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),n=h[g-2],r=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r),n+=h[g-2],r+=h[g-1];break;case"S":m=n,b=r,A=t.len(),k=t.data,o===s.C&&(m+=n-k[A-4],b+=r-k[A-3]),d=s.C,T=h[g++],M=h[g++],n=h[g++],r=h[g++],t.addData(d,m,b,T,M,n,r);break;case"s":m=n,b=r,A=t.len(),k=t.data,o===s.C&&(m+=n-k[A-4],b+=r-k[A-3]),d=s.C,T=n+h[g++],M=r+h[g++],n+=h[g++],r+=h[g++],t.addData(d,m,b,T,M,n,r);break;case"Q":T=h[g++],M=h[g++],n=h[g++],r=h[g++],d=s.Q,t.addData(d,T,M,n,r);break;case"q":T=h[g++]+n,M=h[g++]+r,n+=h[g++],r+=h[g++],d=s.Q,t.addData(d,T,M,n,r);break;case"T":m=n,b=r,A=t.len(),k=t.data,o===s.Q&&(m+=n-k[A-4],b+=r-k[A-3]),n=h[g++],r=h[g++],d=s.Q,t.addData(d,m,b,n,r);break;case"t":m=n,b=r,A=t.len(),k=t.data,o===s.Q&&(m+=n-k[A-4],b+=r-k[A-3]),n+=h[g++],r+=h[g++],d=s.Q,t.addData(d,m,b,n,r);break;case"A":_=h[g++],w=h[g++],C=h[g++],S=h[g++],x=h[g++],T=n,M=r,n=h[g++],r=h[g++],d=s.A,LR(T,M,n,r,S,x,_,w,C,d,t);break;case"a":_=h[g++],w=h[g++],C=h[g++],S=h[g++],x=h[g++],T=n,M=r,n+=h[g++],r+=h[g++],d=s.A,LR(T,M,n,r,S,x,_,w,C,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),n=a,r=i),o=d}return t.toStatic(),t}var pG=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t}(zt);function gG(e){return e.setData!=null}function mG(e,t){var n=dLe(e),r=Ie({},t);return r.buildPath=function(a){if(gG(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){vG(n,a),this.dirtyShape()},r}function yG(e,t){return new pG(mG(e,t))}function hLe(e,t){var n=mG(e,t),r=function(a){ge(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return i}(pG);return r}function vLe(e,t){for(var n=[],r=e.length,a=0;a<r;a++){var i=e[a];n.push(i.getUpdatedPathProxy(!0))}var o=new zt(t);return o.createPathProxy(),o.buildPath=function(s){if(gG(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Kk(e,t){t=t||{};var n=new zt;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?vG(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 pLe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),bG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new pLe},t.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t}(zt);bG.prototype.type="circle";const Hi=bG;var gLe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),_G=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new gLe},t.prototype.buildPath=function(n,r){var a=.5522848,i=r.cx,o=r.cy,s=r.rx,l=r.ry,u=s*a,c=l*a;n.moveTo(i-s,o),n.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),n.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),n.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),n.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),n.closePath()},t}(zt);_G.prototype.type="ellipse";const E1=_G;var wG=Math.PI,_w=wG*2,nu=Math.sin,Wc=Math.cos,mLe=Math.acos,Er=Math.atan2,RR=Math.abs,Cv=Math.sqrt,Wh=Math.max,Ji=Math.min,wi=1e-4;function yLe(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<wi))return d=(c*(t-i)-f*(e-a))/d,[e+d*l,t+d*u]}function pm(e,t,n,r,a,i,o){var s=e-n,l=t-r,u=(o?i:-i)/Cv(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=n+c,p=r+f,g=(d+v)/2,m=(h+p)/2,b=v-d,_=p-h,w=b*b+_*_,C=a-i,S=d*p-v*h,x=(_<0?-1:1)*Cv(Wh(0,C*C*w-S*S)),T=(S*_-b*x)/w,M=(-S*b-_*x)/w,A=(S*_+b*x)/w,k=(-S*b+_*x)/w,E=T-g,D=M-m,L=A-g,B=k-m;return E*E+D*D>L*L+B*B&&(T=A,M=k),{cx:T,cy:M,x0:-c,y0:-f,x1:T*(a/C-1),y1:M*(a/C-1)}}function bLe(e){var t;if(Re(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function _Le(e,t){var n,r=Wh(t.r,0),a=Wh(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=RR(u-l),v=h>_w&&h%_w;if(v>wi&&(h=v),!(r>wi))e.moveTo(c,f);else if(h>_w-wi)e.moveTo(c+r*Wc(l),f+r*nu(l)),e.arc(c,f,r,l,u,!d),a>wi&&(e.moveTo(c+a*Wc(u),f+a*nu(u)),e.arc(c,f,a,u,l,d));else{var p=void 0,g=void 0,m=void 0,b=void 0,_=void 0,w=void 0,C=void 0,S=void 0,x=void 0,T=void 0,M=void 0,A=void 0,k=void 0,E=void 0,D=void 0,L=void 0,B=r*Wc(l),N=r*nu(l),O=a*Wc(u),$=a*nu(u),I=h>wi;if(I){var z=t.cornerRadius;z&&(n=bLe(z),p=n[0],g=n[1],m=n[2],b=n[3]);var G=RR(r-a)/2;if(_=Ji(G,m),w=Ji(G,b),C=Ji(G,p),S=Ji(G,g),M=x=Wh(_,w),A=T=Wh(C,S),(x>wi||T>wi)&&(k=r*Wc(u),E=r*nu(u),D=a*Wc(l),L=a*nu(l),h<wG)){var U=yLe(B,N,D,L,k,E,O,$);if(U){var Z=B-U[0],ae=N-U[1],J=k-U[0],Q=E-U[1],ee=1/nu(mLe((Z*J+ae*Q)/(Cv(Z*Z+ae*ae)*Cv(J*J+Q*Q)))/2),j=Cv(U[0]*U[0]+U[1]*U[1]);M=Ji(x,(r-j)/(ee+1)),A=Ji(T,(a-j)/(ee-1))}}}if(!I)e.moveTo(c+B,f+N);else if(M>wi){var de=Ji(m,M),ve=Ji(b,M),ie=pm(D,L,B,N,r,de,d),W=pm(k,E,O,$,r,ve,d);e.moveTo(c+ie.cx+ie.x0,f+ie.cy+ie.y0),M<x&&de===ve?e.arc(c+ie.cx,f+ie.cy,M,Er(ie.y0,ie.x0),Er(W.y0,W.x0),!d):(de>0&&e.arc(c+ie.cx,f+ie.cy,de,Er(ie.y0,ie.x0),Er(ie.y1,ie.x1),!d),e.arc(c,f,r,Er(ie.cy+ie.y1,ie.cx+ie.x1),Er(W.cy+W.y1,W.cx+W.x1),!d),ve>0&&e.arc(c+W.cx,f+W.cy,ve,Er(W.y1,W.x1),Er(W.y0,W.x0),!d))}else e.moveTo(c+B,f+N),e.arc(c,f,r,l,u,!d);if(!(a>wi)||!I)e.lineTo(c+O,f+$);else if(A>wi){var de=Ji(p,A),ve=Ji(g,A),ie=pm(O,$,k,E,a,-ve,d),W=pm(B,N,D,L,a,-de,d);e.lineTo(c+ie.cx+ie.x0,f+ie.cy+ie.y0),A<T&&de===ve?e.arc(c+ie.cx,f+ie.cy,A,Er(ie.y0,ie.x0),Er(W.y0,W.x0),!d):(ve>0&&e.arc(c+ie.cx,f+ie.cy,ve,Er(ie.y0,ie.x0),Er(ie.y1,ie.x1),!d),e.arc(c,f,a,Er(ie.cy+ie.y1,ie.cx+ie.x1),Er(W.cy+W.y1,W.cx+W.x1),d),de>0&&e.arc(c+W.cx,f+W.cy,de,Er(W.y1,W.x1),Er(W.y0,W.x0),!d))}else e.lineTo(c+O,f+$),e.arc(c,f,a,u,l,d)}e.closePath()}}}var wLe=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}(),SG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new wLe},t.prototype.buildPath=function(n,r){_Le(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(zt);SG.prototype.type="sector";const na=SG;var SLe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),CG=function(e){ge(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=r.cx,i=r.cy,o=Math.PI*2;n.moveTo(a+r.r,i),n.arc(a,i,r.r,0,o,!1),n.moveTo(a+r.r0,i),n.arc(a,i,r.r0,0,o,!0)},t}(zt);CG.prototype.type="ring";const hg=CG;function CLe(e,t,n,r){var a=[],i=[],o=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)Wo(c,c,e[d]),Ko(f,f,e[d]);Wo(c,c,r[0]),Ko(f,f,r[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(n)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){a.push(po(e[d]));continue}else l=e[d-1],u=e[d+1];Ks(i,u,l),pv(i,i,t);var p=A0(v,l),g=A0(v,u),m=p+g;m!==0&&(p/=m,g/=m),pv(o,i,-p),pv(s,i,g);var b=Rx([],v,o),_=Rx([],v,s);r&&(Ko(b,b,c),Wo(b,b,f),Ko(_,_,c),Wo(_,_,f)),a.push(b),a.push(_)}return n&&a.push(a.shift()),a}function xG(e,t,n){var r=t.smooth,a=t.points;if(a&&a.length>=2){if(r){var i=CLe(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 xLe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),TG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new xLe},t.prototype.buildPath=function(n,r){xG(n,r,!0)},t}(zt);TG.prototype.type="polygon";const ra=TG;var TLe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),MG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new TLe},t.prototype.buildPath=function(n,r){xG(n,r,!1)},t}(zt);MG.prototype.type="polyline";const ia=MG;var MLe={},kLe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),kG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kLe},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=QH(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}(zt);kG.prototype.type="line";const ar=kG;var la=[],ALe=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 OR(e,t,n){var r=e.cpx2,a=e.cpy2;return r!=null||a!=null?[(n?FL:nr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?FL:nr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?zx:fr)(e.x1,e.cpx1,e.x2,t),(n?zx:fr)(e.y1,e.cpy1,e.y2,t)]}var AG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ALe},t.prototype.buildPath=function(n,r){var a=r.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&&(hp(a,l,o,d,la),l=la[1],o=la[2],hp(i,u,s,d,la),u=la[1],s=la[2]),n.quadraticCurveTo(l,u,o,s)):(d<1&&(ml(a,l,c,o,d,la),l=la[1],c=la[2],o=la[3],ml(i,u,f,s,d,la),u=la[1],f=la[2],s=la[3]),n.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(n){return OR(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=OR(this.shape,n,!0);return xc(r,r)},t}(zt);AG.prototype.type="bezier-curve";const vg=AG;var ELe=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}(),EG=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ELe},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),f=Math.sin(s);n.moveTo(c*o+a,f*o+i),n.arc(a,i,o,s,l,!u)},t}(zt);EG.prototype.type="arc";const I1=EG;var ILe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),a=0;a<n.length;a++)r=r||n[a].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(r[0],r[1],n[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,r){for(var a=r.paths||[],i=0;i<a.length;i++)a[i].buildPath(n,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),zt.prototype.getBoundingRect.call(this)},t}(zt);const D1=ILe;var DLe=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e}();const IG=DLe;var PLe=function(e){ge(t,e);function t(n,r,a,i,o,s){var l=e.call(this,o)||this;return l.x=n??0,l.y=r??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(IG);const Od=PLe;var LLe=function(e){ge(t,e);function t(n,r,a,i,o){var s=e.call(this,i)||this;return s.x=n??.5,s.y=r??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(IG);const Uk=LLe;var ru=[0,0],au=[0,0],gm=new Pt,mm=new Pt,RLe=function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Pt;for(var r=0;r<2;r++)this._axes[r]=new Pt;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var r=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(r[0].set(i,o),r[1].set(s,o),r[2].set(s,l),r[3].set(i,l),n)for(var u=0;u<4;u++)r[u].transform(n);Pt.sub(a[0],r[1],r[0]),Pt.sub(a[1],r[3],r[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(r[0])},e.prototype.intersect=function(t,n){var r=!0,a=!n;return gm.set(1/0,1/0),mm.set(0,0),!this._intersectCheckOneSide(this,t,gm,mm,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(t,this,gm,mm,a,-1)&&(r=!1,a)||a||Pt.copy(n,r?gm:mm),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,ru),this._getProjMinMaxOnAxis(l,n._corners,au),ru[1]<au[0]||ru[0]>au[1]){if(s=!1,i)return s;var c=Math.abs(au[0]-ru[1]),f=Math.abs(ru[0]-au[1]);Math.min(c,f)>a.len()&&(c<f?Pt.scale(a,u,-c*o):Pt.scale(a,u,f*o))}else if(r){var c=Math.abs(au[0]-ru[1]),f=Math.abs(ru[0]-au[1]);Math.min(c,f)<r.len()&&(c<f?Pt.scale(r,u,c*o):Pt.scale(r,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,n,r){for(var a=this._axes[t],i=this._origin,o=n[0].dot(a)+i[t],s=o,l=o,u=1;u<n.length;u++){var c=n[u].dot(a)+i[t];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},e}();const N0=RLe;var OLe=[],$Le=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,r){n.call(r,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,r){r=r||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Rt(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var a=this._displayables[r],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(OLe)),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}(fi);const DG=$Le;var PG=en();function $d(e,t,n,r,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=Lt(r.duration,200),c=Lt(r.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),ut(f)&&(f=f(n,a)),ut(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function Yk(e,t,n,r,a,i,o){var s=!1,l;ut(a)?(o=i,i=a,a=null):ht(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=$d(e,r,a,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(n,v):t.animateTo(n,v)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),i&&i()}function nn(e,t,n,r,a,i){Yk("update",e,t,n,r,a,i)}function xn(e,t,n,r,a,i){Yk("enter",e,t,n,r,a,i)}function Bf(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 yl(e,t,n,r,a,i){Bf(e)||Yk("leave",e,t,n,r,a,i)}function $R(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),yl(e,{style:{opacity:0}},t,n,r)}function Cp(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||$R(a,t,n,r)}):$R(e,t,n,r)}function Gi(e){PG(e).oldStyle=e.style}function NLe(e){return PG(e).oldStyle}var B0=Math.max,V0=Math.min,f2={};function LG(e){return zt.extend(e)}var BLe=hLe;function RG(e,t){return BLe(e,t)}function hi(e,t){f2[e]=t}function P1(e){if(f2.hasOwnProperty(e))return f2[e]}function pg(e,t,n,r){var a=yG(e,t);return n&&(r==="center"&&(n=OG(n,a.getBoundingRect())),qk(a,n)),a}function jk(e,t,n){var r=new vr({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(n==="center"){var i={width:a.width,height:a.height};r.setStyle(OG(t,i))}}});return r}function OG(e,t){var n=t.width/t.height,r=e.height*n,a;r<=e.width?a=e.height:(r=e.width,a=r/n);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-r/2,y:o-a/2,width:r,height:a}}var Ma=vLe;function qk(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function vd(e,t){return QH(e,e,{lineWidth:t}),e}function VLe(e){return eG(e.shape,e.shape,e.style),e}var Hy=Bu;function il(e,t){for(var n=lg([]);e&&e!==t;)go(n,e.getLocalTransform(),n),e=e.parent;return n}function Ni(e,t,n){return t&&!Cr(t)&&(t=Uo.getLocalTransform(t)),n&&(t=Tc([],t)),hr([],e,t)}function L1(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[e==="left"?-r:e==="right"?r:0,e==="top"?-a:e==="bottom"?a:0];return i=Ni(i,t,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function NR(e){return!e.isGroup}function zLe(e){return e.shape!=null}function gg(e,t,n){if(!e||!t)return;function r(o){var s={};return o.traverse(function(l){NR(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return zLe(o)&&(s.shape=Ie({},o.shape)),s}var i=r(e);t.traverse(function(o){if(NR(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),nn(o,l,n,Tt(o).dataIndex)}}})}function Xk(e,t){return Oe(e,function(n){var r=n[0];r=B0(r,t.x),r=V0(r,t.x+t.width);var a=n[1];return a=B0(a,t.y),a=V0(a,t.y+t.height),[r,a]})}function $G(e,t){var n=B0(e.x,t.x),r=V0(e.x+e.width,t.x+t.width),a=B0(e.y,t.y),i=V0(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 Nd(e,t,n){var r=Ie({rectHover:!0},t),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),ft(a,n),new vr(r)):pg(e.replace("path://",""),r,n,"center")}function Kh(e,t,n,r,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(NG(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function NG(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=ww(c,f,l,u);if(FLe(d))return!1;var h=e-a,v=t-i,p=ww(h,v,l,u)/d;if(p<0||p>1)return!1;var g=ww(h,v,c,f)/d;return!(g<0||g>1)}function ww(e,t,n,r){return e*r-n*t}function FLe(e){return e<=1e-6&&e>=-1e-6}function Bd(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,a=Je(t)?{formatter:t}:t,i=n.mainType,o=n.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&F(Gt(l),function(c){nt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Tt(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:ft({content:r,formatterParams:s},a)}}function BR(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Rl(e,t){if(e)if(Re(e))for(var n=0;n<e.length;n++)BR(e[n],t);else BR(e,t)}hi("circle",Hi);hi("ellipse",E1);hi("sector",na);hi("ring",hg);hi("polygon",ra);hi("polyline",ia);hi("rect",Zt);hi("line",ar);hi("bezierCurve",vg);hi("arc",I1);const mg=Object.freeze(Object.defineProperty({__proto__:null,Arc:I1,BezierCurve:vg,BoundingRect:Rt,Circle:Hi,CompoundPath:D1,Ellipse:E1,Group:bt,Image:vr,IncrementalDisplayable:DG,Line:ar,LinearGradient:Od,OrientedBoundingRect:N0,Path:zt,Point:Pt,Polygon:ra,Polyline:ia,RadialGradient:Uk,Rect:Zt,Ring:hg,Sector:na,Text:Xt,applyTransform:Ni,clipPointsByRect:Xk,clipRectByRect:$G,createIcon:Nd,extendPath:RG,extendShape:LG,getShapeClass:P1,getTransform:il,groupTransition:gg,initProps:xn,isElementRemoved:Bf,lineLineIntersect:NG,linePolygonIntersect:Kh,makeImage:jk,makePath:pg,mergePath:Ma,registerShape:hi,removeElement:yl,removeElementWithFadeOut:Cp,resizePath:qk,setTooltipConfig:Bd,subPixelOptimize:Hy,subPixelOptimizeLine:vd,subPixelOptimizeRect:VLe,transformDirection:L1,traverseElements:Rl,updateProps:nn},Symbol.toStringTag,{value:"Module"}));var R1={};function BG(e,t){for(var n=0;n<ta.length;n++){var r=ta[n],a=t[r],i=e.ensureState(r);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function d2(e,t,n){var r=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=ut(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:s},u=0;u<ta.length;u++){var c=ta[u],f=t[c];l[c]=Lt(r?r.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function Tr(e,t,n,r){n=n||R1;for(var a=e instanceof Xt,i=!1,o=0;o<wp.length;o++){var s=t[wp[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new Xt,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=d2(n,t),c=t.normal,f=!!c.getShallow("show"),d=gn(c,r&&r.normal,n,!1,!a);d.text=u.normal,a||e.setTextConfig(z0(c,n,!1));for(var o=0;o<ta.length;o++){var h=ta[o],s=t[h];if(s){var v=l.ensureState(h),p=!!Lt(s.getShallow("show"),f);if(p!==f&&(v.ignore=!p),v.style=gn(s,r&&r[h],n,!0,!a),v.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=z0(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&&(Vd(l).setLabelText=function(m){var b=d2(n,t,m);BG(l,b)})}else l&&(l.ignore=!0);e.dirty()}function lr(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<ta.length;r++){var a=ta[r];n[a]=e.getModel([a,t])}return n}function gn(e,t,n,r,a){var i={};return HLe(i,e,n,r,a),t&&Ie(i,t),i}function z0(e,t,n){t=t||{};var r={},a,i=e.getShallow("rotate"),o=Lt(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(r.position=a),s!=null&&(r.offset=s),i!=null&&(i*=Math.PI/180,r.rotation=i),o!=null&&(r.distance=o),r.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",r}function HLe(e,t,n,r,a){n=n||R1;var i=t.ecModel,o=i&&i.option.textStyle,s=GLe(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);HR(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),HR(e,t,o,n,r,a,!0,!1)}function GLe(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||R1).rich;if(n){t=t||{};for(var r=Gt(n),a=0;a<r.length;a++){var i=r[a];t[i]=1}}e=e.parentModel}return t}var VR=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],zR=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],FR=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function HR(e,t,n,r,a,i,o,s){n=!a&&n||R1;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=Lt(t.getShallow("opacity"),n.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||n.color,c=c||n.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=Lt(t.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(e.lineWidth=d);var h=Lt(t.getShallow("textBorderType"),n.textBorderType);h!=null&&(e.lineDash=h);var v=Lt(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!a&&f==null&&!s&&(f=r&&r.defaultOpacity),f!=null&&(e.opacity=f),!a&&!i&&e.fill==null&&r.inheritColor&&(e.fill=r.inheritColor);for(var p=0;p<VR.length;p++){var g=VR[p],m=Lt(t.getShallow(g),n[g]);m!=null&&(e[g]=m)}for(var p=0;p<zR.length;p++){var g=zR[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<FR.length;p++){var g=FR[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 VG(e,t){var n=t&&t.getModel("textStyle");return Ja([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 Vd=en();function zG(e,t,n,r){if(e){var a=Vd(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 FG(e,t,n,r,a){var i=Vd(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Lt(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=FH(n,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=d2({labelDataIndex:t,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);BG(e,d)}e.percent=0,(i.prevValue==null?xn:nn)(e,{percent:1},r,t,null,u)}var WLe=["textStyle","color"],Sw=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Cw=new Xt,KLe=function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(WLe):null)},e.prototype.getFont=function(){return VG({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<Sw.length;r++)n[Sw[r]]=this.getShallow(Sw[r]);return Cw.useStyle(n),Cw.update(),Cw.getBoundingRect()},e}();const ULe=KLe;var HG=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],YLe=dc(HG),jLe=function(){function e(){}return e.prototype.getLineStyle=function(t){return YLe(this,t)},e}(),GG=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],qLe=dc(GG),XLe=function(){function e(){}return e.prototype.getItemStyle=function(t,n){return qLe(this,t,n)},e}(),Mc=function(){function e(t,n,r){this.parentModel=n,this.ecModel=r,this.option=t}return e.prototype.init=function(t,n,r){},e.prototype.mergeOption=function(t,n){Dt(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var r=this.option,a=r==null?r:r[t];if(a==null&&!n){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,n){var r=t!=null,a=r?this.parsePath(t):null,i=r?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(pt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!Jt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var r=this.option;if(!t)return r;for(var a=0;a<t.length&&!(t[a]&&(r=r&&typeof r=="object"?r[t[a]]:null,r==null));a++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(t),n.parentModel)),r},e}();Bk(Mc);ePe(Mc);Vn(Mc,jLe);Vn(Mc,XLe);Vn(Mc,iPe);Vn(Mc,ULe);const dn=Mc;var ZLe=Math.round(Math.random()*10);function zd(e){return[e||"",ZLe++].join("_")}function JLe(e){var t={};e.registerSubTypeDefaulter=function(n,r){var a=co(n);t[a.main]=r},e.determineSubType=function(n,r){var a=r.type;if(!a){var i=co(n).main;e.hasSubTypes(n)&&t[i]&&(a=t[i](r))}return a}}function QLe(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=n(o),c=u.graph,f=u.noEntryList,d={};for(F(i,function(b){d[b]=!0});f.length;){var h=f.pop(),v=c[h],p=!!d[h];p&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),F(v.successor,p?m:g)}F(d,function(){var b="";throw new Error(b)});function g(b){c[b].entryCount--,c[b].entryCount===0&&f.push(b)}function m(b){d[b]=!0,g(b)}};function n(i){var o={},s=[];return F(i,function(l){var u=r(o,l),c=u.originalDeps=t(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),F(f,function(d){$t(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(o,d);$t(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function r(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return F(i,function(l){$t(o,l)>=0&&s.push(l)}),s}}function Ol(e,t){return Dt(Dt({},e,!0),t,!0)}const eRe={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:". "}}}},tRe={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 F0="ZH",Zk="EN",xp=Zk,Gy={},Jk={},WG=Jt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(F0)>-1?F0:xp}():xp;function Qk(e,t){e=e.toUpperCase(),Jk[e]=new dn(t),Gy[e]=t}function nRe(e){if(Je(e)){var t=Gy[e.toUpperCase()]||{};return e===F0||e===Zk?pt(t):Dt(pt(t),pt(Gy[xp]),!1)}else return Dt(pt(e),pt(Gy[xp]),!1)}function h2(e){return Jk[e]}function rRe(){return Jk[xp]}Qk(Zk,eRe);Qk(F0,tRe);var eA=1e3,tA=eA*60,xv=tA*60,Xa=xv*24,GR=Xa*365,Uh={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}"},ym="{yyyy}-{MM}-{dd}",WR={year:"{yyyy}",month:"{yyyy}-{MM}",day:ym,hour:ym+" "+Uh.hour,minute:ym+" "+Uh.minute,second:ym+" "+Uh.second,millisecond:Uh.none},xw=["year","month","day","hour","minute","second","millisecond"],KG=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Wr(e,t){return e+="","0000".substr(0,t-e.length)+e}function Vf(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 aRe(e){return e===Vf(e)}function iRe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function yg(e,t,n,r){var a=Oa(e),i=a[nA(n)](),o=a[zf(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[O1(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[Tp(n)](),f=(c-1)%12+1,d=a[$1(n)](),h=a[N1(n)](),v=a[B1(n)](),p=r instanceof dn?r:h2(r||WG)||rRe(),g=p.getModel("time"),m=g.get("month"),b=g.get("monthAbbr"),_=g.get("dayOfWeek"),w=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Wr(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Wr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Wr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Wr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Wr(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Wr(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Wr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Wr(v,3)).replace(/{S}/g,v+"")}function oRe(e,t,n,r,a){var i=null;if(Je(n))i=n;else if(ut(n))i=n(e.value,t,{level:e.level});else{var o=Ie({},Uh);if(e.level>0)for(var s=0;s<xw.length;++s)o[xw[s]]="{primary|"+o[xw[s]]+"}";var l=n?n.inherit===!1?n:ft(n,o):o,u=UG(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=KG.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(Re(i)){var f=e.level==null?0:e.level>=0?e.level:i.length+e.level;f=Math.min(f,i.length-1),i=i[f]}}return yg(new Date(e.value),i,a,r)}function UG(e,t){var n=Oa(e),r=n[zf(t)]()+1,a=n[O1(t)](),i=n[Tp(t)](),o=n[$1(t)](),s=n[N1(t)](),l=n[B1(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 KR(e,t,n){var r=Qt(e)?Oa(e):e;switch(t=t||UG(e,n),t){case"year":return r[nA(n)]();case"half-year":return r[zf(n)]()>=6?1:0;case"quarter":return Math.floor((r[zf(n)]()+1)/4);case"month":return r[zf(n)]();case"day":return r[O1(n)]();case"half-day":return r[Tp(n)]()/24;case"hour":return r[Tp(n)]();case"minute":return r[$1(n)]();case"second":return r[N1(n)]();case"millisecond":return r[B1(n)]()}}function nA(e){return e?"getUTCFullYear":"getFullYear"}function zf(e){return e?"getUTCMonth":"getMonth"}function O1(e){return e?"getUTCDate":"getDate"}function Tp(e){return e?"getUTCHours":"getHours"}function $1(e){return e?"getUTCMinutes":"getMinutes"}function N1(e){return e?"getUTCSeconds":"getSeconds"}function B1(e){return e?"getUTCMilliseconds":"getMilliseconds"}function sRe(e){return e?"setUTCFullYear":"setFullYear"}function YG(e){return e?"setUTCMonth":"setMonth"}function jG(e){return e?"setUTCDate":"setDate"}function qG(e){return e?"setUTCHours":"setHours"}function XG(e){return e?"setUTCMinutes":"setMinutes"}function ZG(e){return e?"setUTCSeconds":"setSeconds"}function JG(e){return e?"setUTCMilliseconds":"setMilliseconds"}function lRe(e,t,n,r,a,i,o,s){var l=new Xt({style:{text:e,font:t,align:n,verticalAlign:r,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function rA(e){if(!Ok(e))return Je(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function aA(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 kc=m1;function v2(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Ja(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?Oa(e):e;if(isNaN(+l)){if(s)return"-"}else return yg(l,r,n)}if(t==="ordinal")return M0(e)?a(e):Qt(e)&&i(e)?e+"":"-";var u=xo(e);return i(u)?rA(u):M0(e)?a(e):typeof e=="boolean"?e+"":"-"}var UR=["a","b","c","d","e","f","g"],Tw=function(e,t){return"{"+e+(t??"")+"}"};function iA(e,t,n){Re(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=UR[i];e=e.replace(Tw(o),Tw(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(Tw(UR[l],s),n?Ur(u):u)}return e}function uRe(e,t,n){return F(t,function(r,a){e=e.replace("{"+a+"}",n?Ur(r):r)}),e}function QG(e,t){var n=Je(e)?{color:e,extraCssText:t}:e||{},r=n.color,a=n.type;t=n.extraCssText;var i=n.renderMode||"html";if(!r)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ur(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ur(r)+";"+(t||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function cRe(e,t,n){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
  85. yyyy`);var r=Oa(t),a=n?"getUTC":"get",i=r[a+"FullYear"](),o=r[a+"Month"]()+1,s=r[a+"Date"](),l=r[a+"Hours"](),u=r[a+"Minutes"](),c=r[a+"Seconds"](),f=r[a+"Milliseconds"]();return e=e.replace("MM",Wr(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Wr(i%100+"",2)).replace("dd",Wr(s,2)).replace("d",s).replace("hh",Wr(l,2)).replace("h",l).replace("mm",Wr(u,2)).replace("m",u).replace("ss",Wr(c,2)).replace("s",c).replace("SSS",Wr(f,3)),e}function fRe(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function vc(e,t){return t=t||"transparent",Je(e)?e:ht(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function H0(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Wy=F,eW=["left","right","top","bottom","width","height"],zu=[["width","left","right"],["height","top","bottom"]];function oA(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 Qu=oA;xt(oA,"vertical");xt(oA,"horizontal");function dRe(e,t,n){var r=t.width,a=t.height,i=qe(e.left,r),o=qe(e.top,a),s=qe(e.right,r),l=qe(e.bottom,a);return(isNaN(i)||isNaN(parseFloat(e.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=a),n=kc(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function Xn(e,t,n){n=kc(n||0);var r=t.width,a=t.height,i=qe(e.left,r),o=qe(e.top,a),s=qe(e.right,r),l=qe(e.bottom,a),u=qe(e.width,r),c=qe(e.height,a),f=n[2]+n[0],d=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=r-s-d-i),isNaN(c)&&(c=a-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-d),isNaN(o)&&(o=a-l-c-f),e.left||e.right){case"center":i=r/2-u/2-n[3];break;case"right":i=r-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-n[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=r-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var v=new Rt(i+n[3],o+n[0],u,c);return v.margin=n,v}function V1(e,t,n,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||e,i.x=e.x,i.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new Rt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Xn(ft({width:u.width,height:u.height},t),n,r),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=h):(i.x+=d,i.y+=h),i===e&&e.markRedraw(),!0}function hRe(e,t){return e[zu[t][0]]!=null||e[zu[t][1]]!=null&&e[zu[t][2]]!=null}function Mp(e){var t=e.layoutMode||e.constructor.layoutMode;return ht(t)?t:t?{type:t}:null}function bl(e,t,n){var r=n&&n.ignoreSize;!Re(r)&&(r=[r,r]);var a=o(zu[0],0),i=o(zu[1],1);u(zu[0],e,a),u(zu[1],e,i);function o(c,f){var d={},h=0,v={},p=0,g=2;if(Wy(c,function(_){v[_]=e[_]}),Wy(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){Wy(c,function(h){f[h]=d[h]})}}function Fd(e){return tW({},e)}function tW(e,t){return t&&e&&Wy(eW,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var vRe=en(),Hd=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,n,r,a)||this;return i.uid=zd("ec_cpt_model"),i}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Mp(this),i=a?Fd(n):{},o=r.getTheme();Dt(n,o.get(this.mainType)),Dt(n,this.getDefaultOption()),a&&bl(n,i,a)},t.prototype.mergeOption=function(n,r){Dt(this.option,n,!0);var a=Mp(this);a&&bl(this.option,n,a)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!ZDe(n))return n.defaultOption;var r=vRe(this);if(!r.defaultOption){for(var a=[],i=n;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Dt(s,a[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return fg(this.ecModel,n,{index:this.get(a,!0),id:this.get(i,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),t}(dn);GH(Hd,dn);C1(Hd);JLe(Hd);QLe(Hd,pRe);function pRe(e){var t=[];return F(Hd.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Oe(t,function(n){return co(n).main}),e!=="dataset"&&$t(t,"dataset")<=0&&t.unshift("dataset"),t}const Yt=Hd;var nW="";typeof navigator<"u"&&(nW=navigator.platform||"");var Kc="rgba(0, 0, 0, 0.2)";const gRe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Kc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Kc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Kc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Kc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Kc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Kc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:nW.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 rW=ot(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),vi="original",Br="arrayRows",pi="objectRows",Eo="keyedColumns",ol="typedArray",aW="unknown",mo="column",Gd="row",gr={Must:1,Might:2,Not:3},iW=en();function mRe(e){iW(e).datasetMap=ot()}function oW(e,t,n){var r={},a=lA(t);if(!a||!e)return r;var i=[],o=[],s=t.ecModel,l=iW(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),F(e,function(p,g){var m=ht(p)?p:e[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=v(m)),r[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});F(e,function(p,g){var m=p.name,b=v(p);if(c==null){var _=d.valueWayDim;h(r[m],_,b),h(o,_,b),d.valueWayDim+=b}else if(c===g)h(r[m],0,b),h(i,0,b);else{var _=d.categoryWayDim;h(r[m],_,b),h(o,_,b),d.categoryWayDim+=b}});function h(p,g,m){for(var b=0;b<m;b++)p.push(g+b)}function v(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(r.itemName=i),o.length&&(r.seriesName=o),r}function sA(e,t,n){var r={},a=lA(e);if(!a)return r;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===pi||i===Eo)&&F(o,function(c,f){(ht(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,n);h<v;h++){var p=lW(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);d.push(p);var g=p===gr.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===gr.Not)&&(c.n=h),m(c)&&d[c.n]!==gr.Not)return c;g||(p===gr.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function m(b){return b.v!=null&&b.n!=null}return m(c)?c:m(f)?f:null}();if(l){r.value=[l.v];var u=s??l.n;r.itemName=[u],r.seriesName=[u]}return r}function lA(e){var t=e.get("data",!0);if(!t)return fg(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Wn).models[0]}function yRe(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:fg(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Wn).models}function sW(e,t){return lW(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function lW(e,t,n,r,a,i){var o,s=5;if(_a(e))return gr.Not;var l,u;if(r){var c=r[i];ht(c)?(l=c.name,u=c.type):Je(c)&&(l=c)}if(u!=null)return u==="ordinal"?gr.Must:gr.Not;if(t===Br){var f=e;if(n===Gd){for(var d=f[i],h=0;h<(d||[]).length&&h<s;h++)if((o=w(d[a+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var v=f[a+h];if(v&&(o=w(v[i]))!=null)return o}}else if(t===pi){var p=e;if(!l)return gr.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=w(g[l]))!=null)return o}}else if(t===Eo){var m=e;if(!l)return gr.Not;var d=m[l];if(!d||_a(d))return gr.Not;for(var h=0;h<d.length&&h<s;h++)if((o=w(d[h]))!=null)return o}else if(t===vi)for(var b=e,h=0;h<b.length&&h<s;h++){var g=b[h],_=Ld(g);if(!Re(_))return gr.Not;if((o=w(_[i]))!=null)return o}function w(C){var S=Je(C);if(C!=null&&isFinite(C)&&C!=="")return S?gr.Might:gr.Not;if(S&&C!=="-")return gr.Must}return gr.Not}var p2=ot();function bRe(e,t){Nr(p2.get(e)==null&&t),p2.set(e,t)}function _Re(e,t,n){var r=p2.get(t);if(!r)return n;var a=r(e);return a?n.concat(a):n}var YR=en(),wRe=en(),uA=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var a=hn(this.get("color",!0)),i=this.get("colorLayer",!0);return uW(this,YR,a,i,t,n,r)},e.prototype.clearColorPalette=function(){CRe(this,YR)},e}();function g2(e,t,n,r){var a=hn(e.get(["aria","decal","decals"]));return uW(e,wRe,a,null,t,n,r)}function SRe(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 uW(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:SRe(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 CRe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var bm,gh,jR,qR="\0_ec_inner",xRe=1,cW=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,a,i,o,s){i=i||{},this.option=null,this._theme=new dn(i),this._locale=new dn(o),this._optionManager=s},t.prototype.setOption=function(n,r,a){var i=JR(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(n,r){return this._resetOption(n,JR(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"?jR(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=i.getMediaOption(this);l.length&&F(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ot(),u=r&&r.replaceMergeMainTypeMap;mRe(this),F(n,function(f,d){f!=null&&(Yt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?pt(f):Dt(a[d],f,!0))}),u&&u.each(function(f,d){Yt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Yt.topologicalTravel(s,Yt.getAllClassMainTypes(),c,this);function c(f){var d=_Re(this,f,hn(n[f])),h=i.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=BH(h,d,v);HDe(p,f,Yt),a[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],b=0,_;F(p,function(w,C){var S=w.existing,x=w.newOption;if(!x)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var T=f==="series",M=Yt.getClass(f,w.keyInfo.subType,!T);if(!M)return;if(f==="tooltip"){if(_)return;_=!0}if(S&&S.constructor===M)S.name=w.keyInfo.name,S.mergeOption(x,this),S.optionUpdated(x,!1);else{var A=Ie({componentIndex:C},w.keyInfo);S=new M(x,this,this,A),Ie(S,A),w.brandNew&&(S.__requireNewView=!0),S.init(x,this,this),S.optionUpdated(null,!0)}}S?(g.push(S.option),m.push(S),b++):(g.push(void 0),m.push(void 0))},this),a[f]=g,i.set(f,m),o.set(f,b),f==="series"&&bm(this)}this._seriesIndices||bm(this)},t.prototype.getOption=function(){var n=pt(this.option);return F(n,function(r,a){if(Yt.hasClass(a)){for(var i=hn(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!bp(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[qR],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,i=n.id,o=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return a!=null?(l=[],F(hn(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=XR("id",i,s):o!=null?l=XR("name",o,s):l=ln(s,function(u){return!!u}),ZR(l,n)},t.prototype.findComponents=function(n){var r=n.query,a=n.mainType,i=s(r),o=i?this.queryComponents(i):ln(this._componentsMap.get(a),function(u){return!!u});return l(ZR(o,n));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return n.filter?ln(u,n.filter):u}},t.prototype.eachComponent=function(n,r,a){var i=this._componentsMap;if(ut(n)){var o=r,s=n;i.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=Je(n)?i.get(n):ht(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(a,c,c.componentIndex)}},t.prototype.getSeriesByName=function(n){var r=tr(n,null);return ln(this._componentsMap.get("series"),function(a){return!!a&&r!=null&&a.name===r})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return ln(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return ln(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){gh(this),F(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];n.call(r,i,a)},this)},t.prototype.eachRawSeries=function(n,r){F(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,a){gh(this),F(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===n&&r.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(n,r,a){return F(this.getSeriesByType(n),r,a)},t.prototype.isSeriesFiltered=function(n){return gh(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){gh(this);var a=[];F(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ot(a)},t.prototype.restoreData=function(n){bm(this);var r=this._componentsMap,a=[];r.each(function(i,o){Yt.hasClass(o)&&a.push(o)}),Yt.topologicalTravel(a,Yt.getAllClassMainTypes(),function(i){F(r.get(i),function(o){o&&(i!=="series"||!TRe(o,n))&&o.restoreData()})})},t.internalField=function(){bm=function(n){var r=n._seriesIndices=[];F(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=ot(r)},gh=function(n){},jR=function(n,r){n.option={},n.option[qR]=xRe,n._componentsMap=ot({series:[]}),n._componentsCount=ot();var a=r.aria;ht(a)&&a.enabled==null&&(a.enabled=!0),MRe(r,n._theme.option),Dt(r,gRe,!1),n._mergeOption(r,null)}}(),t}(dn);function TRe(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;F(t,function(r,a){a==="colorLayer"&&n||Yt.hasClass(a)||(typeof r=="object"?e[a]=e[a]?Dt(e[a],r,!1):pt(r):e[a]==null&&(e[a]=r))})}function XR(e,t,n){if(Re(t)){var r=ot();return F(t,function(i){if(i!=null){var o=tr(i,null);o!=null&&r.set(i,!0)}}),ln(n,function(i){return i&&r.get(i[e])})}else{var a=tr(t,null);return ln(n,function(i){return i&&a!=null&&i[e]===a})}}function ZR(e,t){return t.hasOwnProperty("subType")?ln(e,function(n){return n&&n.subType===t.subType}):e}function JR(e){var t=ot();return e&&F(hn(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Vn(cW,uA);const fW=cW;var kRe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ARe=function(){function e(t){F(kRe,function(n){this[n]=et(t[n],t)},this)}return e}();const dW=ARe;var Mw={},ERe=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];F(Mw,function(a,i){var o=a.create(t,n);r=r.concat(o||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){F(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){Mw[t]=n},e.get=function(t){return Mw[t]},e}();const Wd=ERe;var IRe=/^(min|max)?(.+)$/,DRe=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(F(hn(t.series),function(o){o&&o.data&&_a(o.data)&&cp(o.data)}),F(hn(t.dataset),function(o){o&&o.source&&_a(o.source)&&cp(o.source)})),t=pt(t);var a=this._optionBackup,i=PRe(t,n,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],pt(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,r=this._timelineOptions;if(r.length){var a=t.getComponent("timeline");a&&(n=pt(r[a.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)LRe(a[l].query,n,r)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!ORe(o,this._currentMediaIndices)&&(s=Oe(o,function(c){return pt(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function PRe(e,t,n){var r=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(e.options=e.media=null),i=e),c&&Re(u)&&F(u,function(h){h&&h.option&&(h.query?r.push(h):a||(a=h))}),d(i),F(l,function(h){return d(h)}),F(r,function(h){return d(h.option)});function d(h){F(t,function(v){v(h,n)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:r}}function LRe(e,t,n){var r={width:t,height:n,aspectratio:t/n},a=!0;return F(e,function(i,o){var s=o.match(IRe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();RRe(r[u],i,l)||(a=!1)}}),a}function RRe(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function ORe(e,t){return e.join(",")===t.join(",")}const $Re=DRe;var yi=F,kp=ht,QR=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function kw(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=QR.length;n<r;n++){var a=QR[n],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?Dt(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?Dt(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function Pr(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,a=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,ft(e[t],r)):e[t]=r),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function Yh(e){Pr(e,"itemStyle"),Pr(e,"lineStyle"),Pr(e,"areaStyle"),Pr(e,"label"),Pr(e,"labelLine"),Pr(e,"upperLabel"),Pr(e,"edgeLabel")}function Gn(e,t){var n=kp(e)&&e[t],r=kp(n)&&n.textStyle;if(r)for(var a=0,i=rR.length;a<i;a++){var o=rR[a];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Ga(e){e&&(Yh(e),Gn(e,"label"),e.emphasis&&Gn(e.emphasis,"label"))}function NRe(e){if(kp(e)){kw(e),Yh(e),Gn(e,"label"),Gn(e,"upperLabel"),Gn(e,"edgeLabel"),e.emphasis&&(Gn(e.emphasis,"label"),Gn(e.emphasis,"upperLabel"),Gn(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(kw(t),Ga(t));var n=e.markLine;n&&(kw(n),Ga(n));var r=e.markArea;r&&Ga(r);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!_a(i))for(var o=0;o<i.length;o++)Ga(i[o]);F(e.categories,function(u){Yh(u)})}if(a&&!_a(a))for(var o=0;o<a.length;o++)Ga(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Ga(s[o]);if(n=e.markLine,n&&n.data)for(var l=n.data,o=0;o<l.length;o++)Re(l[o])?(Ga(l[o][0]),Ga(l[o][1])):Ga(l[o]);e.type==="gauge"?(Gn(e,"axisLabel"),Gn(e,"title"),Gn(e,"detail")):e.type==="treemap"?(Pr(e.breadcrumb,"itemStyle"),F(e.levels,function(u){Yh(u)})):e.type==="tree"&&Yh(e.leaves)}}function Lo(e){return Re(e)?e:e?[e]:[]}function eO(e){return(Re(e)?e[0]:e)||{}}function BRe(e,t){yi(Lo(e.series),function(r){kp(r)&&NRe(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),yi(n,function(r){yi(Lo(e[r]),function(a){a&&(Gn(a,"axisLabel"),Gn(a.axisPointer,"label"))})}),yi(Lo(e.parallel),function(r){var a=r&&r.parallelAxisDefault;Gn(a,"axisLabel"),Gn(a&&a.axisPointer,"label")}),yi(Lo(e.calendar),function(r){Pr(r,"itemStyle"),Gn(r,"dayLabel"),Gn(r,"monthLabel"),Gn(r,"yearLabel")}),yi(Lo(e.radar),function(r){Gn(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),yi(Lo(e.geo),function(r){kp(r)&&(Ga(r),yi(Lo(r.regions),function(a){Ga(a)}))}),yi(Lo(e.timeline),function(r){Ga(r),Pr(r,"label"),Pr(r,"itemStyle"),Pr(r,"controlStyle",!0);var a=r.data;Re(a)&&F(a,function(i){ht(i)&&(Pr(i,"label"),Pr(i,"itemStyle"))})}),yi(Lo(e.toolbox),function(r){Pr(r,"iconStyle"),yi(r.feature,function(a){Pr(a,"iconStyle")})}),Gn(eO(e.axisPointer),"label"),Gn(eO(e.tooltip).axisPointer,"label")}function VRe(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 zRe(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 tO(e){e&&F(FRe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var FRe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],HRe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Aw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function mh(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Aw.length;n++){var r=Aw[n][1],a=Aw[n][0];t[r]!=null&&(t[a]=t[r])}}function nO(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function rO(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function GRe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function hW(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&hW(e[n].children,t)}function vW(e,t){BRe(e,t),e.series=hn(e.series),F(e.series,function(n){if(ht(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),nO(n.label);var a=n.data;if(a&&!_a(a))for(var i=0;i<a.length;i++)nO(a[i]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=VRe(n,"pointer.color");o!=null&&zRe(n,"itemStyle.color",o)}else if(r==="bar"){mh(n),mh(n.backgroundStyle),mh(n.emphasis);var a=n.data;if(a&&!_a(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(mh(a[i]),mh(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)),rO(n),hW(n.data,rO)}else r==="graph"||r==="sankey"?GRe(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&ft(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),tO(n)}}),e.dataRange&&(e.visualMap=e.dataRange),F(HRe,function(n){var r=e[n];r&&(Re(r)||(r=[r]),F(r,function(a){tO(a)}))})}function WRe(e){var t=ot();e.eachSeries(function(n){var r=n.get("stack");if(r){var a=t.get(r)||t.set(r,[]),i=n.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:n};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(KRe)}function KRe(e){F(e,function(t,n){var r=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return a;var h,v;s?v=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var p=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var b=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=PDe(d,b),p=b;break}}}return r[0]=d,r[1]=p,r})})}var z1=function(){function e(t){this.data=t.data||(t.sourceFormat===Eo?{}:[]),this.sourceFormat=t.sourceFormat||aW,this.seriesLayoutBy=t.seriesLayoutBy||mo,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var a=n[r];a.type==null&&sW(this,r)===gr.Must&&(a.type="ordinal")}}return e}();function cA(e){return e instanceof z1}function m2(e,t,n){n=n||pW(e);var r=t.seriesLayoutBy,a=YRe(e,n,r,t.sourceHeader,t.dimensions),i=new z1({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:pt(t)});return i}function fA(e){return new z1({data:e,sourceFormat:_a(e)?ol:vi})}function URe(e){return new z1({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:pt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function pW(e){var t=aW;if(_a(e))t=ol;else if(Re(e)){e.length===0&&(t=Br);for(var n=0,r=e.length;n<r;n++){var a=e[n];if(a!=null){if(Re(a)){t=Br;break}else if(ht(a)){t=pi;break}}}}else if(ht(e)){for(var i in e)if(nt(e,i)&&Cr(e[i])){t=Eo;break}}return t}function YRe(e,t,n,r,a){var i,o;if(!e)return{dimensionsDefine:aO(a),startIndex:o,dimensionsDetectedCount:i};if(t===Br){var s=e;r==="auto"||r==null?iO(function(u){u!=null&&u!=="-"&&(Je(u)?o==null&&(o=1):o=0)},n,s,10):o=Qt(r)?r:r?1:0,!a&&o===1&&(a=[],iO(function(u,c){a[c]=u!=null?u+"":""},n,s,1/0)),i=a?a.length:n===Gd?s.length:s[0]?s[0].length:null}else if(t===pi)a||(a=jRe(e));else if(t===Eo)a||(a=[],F(e,function(u,c){a.push(c)}));else if(t===vi){var l=Ld(e[0]);i=Re(l)&&l.length||1}return{startIndex:o,dimensionsDefine:aO(a),dimensionsDetectedCount:i}}function jRe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return Gt(n)}function aO(e){if(e){var t=ot();return Oe(e,function(n,r){n=ht(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function iO(e,t,n,r){if(t===Gd)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 gW(e){var t=e.sourceFormat;return t===pi||t===Eo}var iu,ou,su,oO,sO,mW=function(){function e(t,n){var r=cA(t)?t:fA(t);this._source=r;var a=this._data=r.data;r.sourceFormat===ol&&(this._offset=0,this._dimSize=n,this._data=a),sO(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;sO=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=oO[dA(u,c)];if(Ie(o,h),u===ol)o.getItem=n,o.count=a,o.fillStorage=r;else{var v=yW(u,c);o.getItem=et(v,null,s,f,d);var p=bW(u,c);o.count=et(p,null,s,f,d)}};var n=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,m=l[d],b=0;b<g;b++){var _=c[b*f+d];m[o+b]=_,_<v&&(v=_),_>p&&(p=_)}h[0]=v,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};oO=(t={},t[Br+"_"+mo]={pure:!0,appendData:i},t[Br+"_"+Gd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[pi]={pure:!0,appendData:i},t[Eo]={pure:!0,appendData:function(o){var s=this._data;F(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[vi]={appendData:i},t[ol]={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}(),lO=function(e,t,n,r){return e[r]},qRe=(iu={},iu[Br+"_"+mo]=function(e,t,n,r){return e[r+t]},iu[Br+"_"+Gd]=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},iu[pi]=lO,iu[Eo]=function(e,t,n,r,a){for(var i=a||[],o=0;o<n.length;o++){var s=n[o].name,l=e[s];i[o]=l?l[r]:null}return i},iu[vi]=lO,iu);function yW(e,t){var n=qRe[dA(e,t)];return n}var uO=function(e,t,n){return e.length},XRe=(ou={},ou[Br+"_"+mo]=function(e,t,n){return Math.max(0,e.length-t)},ou[Br+"_"+Gd]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},ou[pi]=uO,ou[Eo]=function(e,t,n){var r=n[0].name,a=e[r];return a?a.length:0},ou[vi]=uO,ou);function bW(e,t){var n=XRe[dA(e,t)];return n}var Ew=function(e,t,n){return e[t]},ZRe=(su={},su[Br]=Ew,su[pi]=function(e,t,n){return e[n]},su[Eo]=Ew,su[vi]=function(e,t,n){var r=Ld(e);return r instanceof Array?r[t]:r},su[ol]=Ew,su);function _W(e){var t=ZRe[e];return t}function dA(e,t){return e===Br?e+"_"+t:e}function pd(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 _W(i)(r,o,s)}else{var l=r;return i===vi&&(l=Ld(r)),l}}}}var JRe=/\{@(.+?)\}/g,hA=function(){function e(){}return e.prototype.getDataParams=function(t,n){var r=this.getData(n),a=this.getRawValue(t,n),i=r.getRawIndex(t),o=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),u=l&&l[r.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:i,data:s,dataType:n,value:a,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,r,a,i,o){n=n||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(o&&(l.value=o.interpolatedValue),a!=null&&Re(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(ut(i))return l.status=n,l.dimensionIndex=a,i(l);if(Je(i)){var c=iA(i,l);return c.replace(JRe,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=pd(s,t,v);if(o&&Re(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,n){return pd(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function cO(e){var t,n;return ht(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Tv(e){return new QRe(e)}var QRe=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(b){return!(b>=1)&&(b=1),b}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h<v)){var p=this._progress;if(Re(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,v,l,u);else this._doProgress(p,h,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,r,a,i){fO.reset(n,r,a,i),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:fO.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),Re(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),r},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),fO=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 sl(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!Qt(e)&&e!=null&&e!=="-"&&(e=+Oa(e)),e==null||e===""?NaN:+e)}var eOe=ot({number:function(e){return parseFloat(e)},time:function(e){return+Oa(e)},trim:function(e){return Je(e)?Ja(e):e}});function wW(e){return eOe.get(e)}var SW={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}},tOe=function(){function e(t,n){if(!Qt(n)){var r="";an(r)}this._opFn=SW[t],this._rvalFloat=xo(n)}return e.prototype.evaluate=function(t){return Qt(t)?this._opFn(t,this._rvalFloat):this._opFn(xo(t),this._rvalFloat)},e}(),CW=function(){function e(t,n){var r=t==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var r=Qt(t)?t:xo(t),a=Qt(n)?n:xo(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=Je(t),l=Je(n);s&&(r=l?t:0),l&&(a=s?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},e}(),nOe=function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=xo(n)}return e.prototype.evaluate=function(t){var n=t===this._rval;if(!n){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=xo(t)===this._rvalFloat)}return this._isEQ?n:!n},e}();function rOe(e,t){return e==="eq"||e==="ne"?new nOe(e==="eq",t):nt(SW,e)?new tOe(e,t):null}var aOe=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 sl(t,n)},e}();function iOe(e,t){var n=new aOe,r=e.data,a=n.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==mo&&an(o);var s=[],l={},u=e.dimensionsDefine;if(u)F(u,function(p,g){var m=p.name,b={index:g,name:m,displayName:p.displayName};if(s.push(b),m!=null){var _="";nt(l,m)&&an(_),l[m]=b}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=yW(a,mo);t.__isBuiltIn&&(n.getRawDataItem=function(p){return f(r,i,s,p)},n.getRawData=et(oOe,null,e)),n.cloneRawData=et(sOe,null,e);var d=bW(a,mo);n.count=et(d,null,r,i,s);var h=_W(a);n.retrieveValue=function(p,g){var m=f(r,i,s,p);return v(m,g)};var v=n.retrieveValueFromItem=function(p,g){if(p!=null){var m=s[g];if(m)return h(p,g,m.name)}};return n.getDimensionInfo=et(lOe,null,s,l),n.cloneAllDimensionInfo=et(uOe,null,s),n}function oOe(e){var t=e.sourceFormat;if(!vA(t)){var n="";an(n)}return e.data}function sOe(e){var t=e.sourceFormat,n=e.data;if(!vA(t)){var r="";an(r)}if(t===Br){for(var a=[],i=0,o=n.length;i<o;i++)a.push(n[i].slice());return a}else if(t===pi){for(var a=[],i=0,o=n.length;i<o;i++)a.push(Ie({},n[i]));return a}}function lOe(e,t,n){if(n!=null){if(Qt(n)||!isNaN(n)&&!nt(t,n))return e[n];if(nt(t,n))return t[n]}}function uOe(e){return pt(e)}var xW=ot();function cOe(e){e=pt(e);var t=e.type,n="";t||an(n);var r=t.split(":");r.length!==2&&an(n);var a=!1;r[0]==="echarts"&&(t=r[1],a=!0),e.__isBuiltIn=a,xW.set(t,e)}function fOe(e,t,n){var r=hn(e),a=r.length,i="";a||an(i);for(var o=0,s=a;o<s;o++){var l=r[o];t=dOe(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function dOe(e,t,n,r){var a="";t.length||an(a),ht(e)||an(a);var i=e.type,o=xW.get(i);o||an(a);var s=Oe(t,function(u){return iOe(u,o)}),l=hn(o.transform({upstream:s[0],upstreamList:s,config:pt(e.config)}));return Oe(l,function(u,c){var f="";ht(u)||an(f),u.data||an(f);var d=pW(u.data);vA(d)||an(f);var h,v=t[0];if(v&&c===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:mo,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:mo,sourceHeader:0,dimensions:u.dimensions};return m2(u.data,h,null)})}function vA(e){return e===Br||e===pi}var F1="undefined",hOe=typeof Uint32Array===F1?Array:Uint32Array,vOe=typeof Uint16Array===F1?Array:Uint16Array,TW=typeof Int32Array===F1?Array:Int32Array,dO=typeof Float64Array===F1?Array:Float64Array,MW={float:dO,int:TW,ordinal:Array,number:Array,time:dO},Iw;function yh(e){return e>65535?hOe:vOe}function Uc(){return[1/0,-1/0]}function pOe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function hO(e,t,n,r,a){var i=MW[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 gOe=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ot()}return e.prototype.initData=function(t,n,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=Iw[a.sourceFormat];this._dimValueGetter=r||i,this._rawExtent=[],gW(a),this._dimensions=Oe(n,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,n){var r=this._calcDimNameToIdx,a=this._dimensions,i=r.get(t);if(i!=null){if(a[i].type===n)return i}else i=a.length;return a[i]={type:n},r.set(t,i),this._chunks[i]=new MW[n||"float"](this._rawCount),this._rawExtent[i]=Uc(),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]=Uc());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];hO(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=Iw.arrayRows.call(this,t[h]||f,c.property,h,v);r[v][d]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Oe(o,function(b){return b.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Uc()),hO(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=yh(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=yh(r._rawCount),o=new i(a),s=[],l=t.length,u=0,c=t[0],f=r._chunks,d=0;d<a;d++){var h=void 0,v=r.getRawIndex(d);if(l===0)h=n(d);else if(l===1){var p=f[c][v];h=n(p,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][v];s[g]=d,h=n.apply(null,s)}h&&(o[u++]=v)}return u<a&&(r._indices=o),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.selectRange=function(t){var n=this.clone(),r=n._count;if(!r)return this;var a=Gt(t),i=a.length;if(!i)return this;var o=n.count(),s=yh(n._rawCount),l=new s(o),u=0,c=a[0],f=t[c][0],d=t[c][1],h=n._chunks,v=!1;if(!n._indices){var p=0;if(i===1){for(var g=h[a[0]],m=0;m<r;m++){var b=g[m];(b>=f&&b<=d||isNaN(b))&&(l[u++]=p),p++}v=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],w=t[a[1]][0],C=t[a[1]][1],m=0;m<r;m++){var b=g[m],S=_[m];(b>=f&&b<=d||isNaN(b))&&(S>=w&&S<=C||isNaN(S))&&(l[u++]=p),p++}v=!0}}if(!v)if(i===1)for(var m=0;m<o;m++){var x=n.getRawIndex(m),b=h[a[0]][x];(b>=f&&b<=d||isNaN(b))&&(l[u++]=x)}else for(var m=0;m<o;m++){for(var T=!0,x=n.getRawIndex(m),M=0;M<i;M++){var A=a[M],b=h[A][x];(b<t[A][0]||b>t[A][1])&&(T=!1)}T&&(l[u++]=n.getRawIndex(m))}return u<o&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var r=this.clone(t);return this._updateDims(r,t,n),r},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,r){for(var a=t._chunks,i=[],o=n.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<n.length;c++)u[n[c]]=Uc();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(yh(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),g=Math.min(v+l*2,o),m=(g+p)/2,b=0,_=p;_<g;_++){var w=this.getRawIndex(_),C=i[w];isNaN(C)||(b+=C)}b/=g-p;var S=v,x=Math.min(v+l,o),T=v-1,M=i[u];c=-1,d=S;for(var A=-1,k=0,_=S;_<x;_++){var w=this.getRawIndex(_),C=i[w];if(isNaN(C)){k++,A<0&&(A=w);continue}f=Math.abs((T-m)*(C-M)-(T-_)*(b-M)),f>c&&(c=f,d=w)}k>0&&k<x-S&&(h[s++]=Math.min(A,d),d=Math.max(A,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),r._count=s,r._indices=h,r.getRawIndex=this._getRawIdx,r},e.prototype.downSample=function(t,n,r,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/n),u=o[t],c=this.count(),f=i._rawExtent[t]=Uc(),d=new(yh(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=Uc();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&&ci(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)r._chunks[o]=i[o]?pOe(a[o]):a[o];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=pt(this._extent),t._rawExtent=pt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var r=this._indices.length;n=new t(r);for(var a=0;a<r;a++)n[a]=this._indices[a]}else n=new t(this._indices);return n}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(n,r,a,i){return sl(n[i],this._dimensions[i])}Iw={arrayRows:t,objectRows:function(n,r,a,i){return sl(n[r],this._dimensions[i])},keyedColumns:t,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return sl(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),e}();const y2=gOe;var kW=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(_m(t)){var o=t,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=_a(s)?ol:vi,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Lt(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=Lt(f.sourceHeader,d.sourceHeader),p=Lt(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;a=g?[m2(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=[m2(_,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&&pO(i)}var o,s=[],l=[];return F(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&pO(f),s.push(c),l.push(u._getVersionSign())}),r?o=fOe(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[URe(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];_m(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new y2,s.initData(new mW(n,t.length),t)),o[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(_m(t)){var n=lA(t);return n?[n.getSourceManager()]:[]}else return Oe(yRe(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,a;if(_m(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 vO(e){var t=e.option.transform;t&&cp(e.option.transform)}function _m(e){return e.mainType==="series"}function pO(e){throw new Error(e)}var AW="line-height:1";function EW(e,t){var n=e.color||"#6e7079",r=e.fontSize||12,a=e.fontWeight||"400",i=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ur(r+"")+"px;color:"+Ur(n)+";font-weight:"+Ur(a+""),valueStyle:"font-size:"+Ur(o+"")+"px;color:"+Ur(i)+";font-weight:"+Ur(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var mOe=[0,10,20,30],yOe=["",`
  86. `,`
  87. `,`
  88. `];function ur(e,t){return t.type=e,t}function b2(e){return e.type==="section"}function IW(e){return b2(e)?bOe:_Oe}function DW(e){if(b2(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return F(e.blocks,function(a){var i=DW(a);i>=t&&(t=i+ +(r&&(!i||b2(a)&&!a.noHeader)))}),t}return 0}function bOe(e,t,n,r){var a=t.noHeader,i=wOe(DW(t)),o=[],s=t.blocks||[];Nr(!s||Re(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(nt(u,l)){var c=new CW(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}F(s,function(v,p){var g=t.valueFormatter,m=IW(v)(g?Ie(Ie({},e),{valueFormatter:g}):e,v,p>0?i.html:0,r);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(i.richText):_2(o.join(""),a?n:i.html);if(a)return f;var d=v2(t.header,"ordinal",e.useUTC),h=EW(r,e.renderMode).nameStyle;return e.renderMode==="richText"?PW(e,d,h)+i.richText+f:_2('<div style="'+h+";"+AW+';">'+Ur(d)+"</div>"+f,n)}function _Oe(e,t,n,r){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(w){return w=Re(w)?w:[w],Oe(w,function(C,S){return v2(C,Re(h)?h[S]:h,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":v2(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value),p=!s||!i,g=!s&&i,m=EW(r,a),b=m.nameStyle,_=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":PW(e,d,b))+(o?"":xOe(e,v,p,g,_)):_2((s?"":f)+(i?"":SOe(d,!s,b))+(o?"":COe(v,p,g,_)),n)}}function gO(e,t,n,r,a,i){if(e){var o=IW(e),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function wOe(e){return{html:mOe[e],richText:yOe[e]}}function _2(e,t){var n='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+AW+';">'+e+n+"</div>"}function SOe(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Ur(e)+"</span>"}function COe(e,t,n,r){var a=n?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=Re(e)?e:[e],'<span style="'+i+";"+r+'">'+Oe(e,function(o){return Ur(o)}).join("&nbsp;&nbsp;")+"</span>"}function PW(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function xOe(e,t,n,r,a){var i=[a],o=r?10:20;return n&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Re(t)?t.join(" "):t,i)}function LW(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return vc(r)}function RW(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var Dw=function(){function e(){this.richTextStyles={},this._nextStyleNameId=RH()}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=QG({color:n,type:t,renderMode:r,markerId:a});return Je(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Re(n)?F(n,function(i){return Ie(r,i)}):Ie(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function OW(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(n),l=Re(s),u=LW(t,n),c,f,d,h;if(o>1||l&&!o){var v=TOe(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=pd(a,n,i[0]),f=p.type}else h=c=l?s[0]:s;var g=$k(t),m=g&&t.name||"",b=a.getName(n),_=r?m:b;return ur("section",{header:m,noHeader:r||!g,sortParam:h,blocks:[ur("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ja(_),value:c,valueType:f})].concat(d||[])})}function TOe(e,t,n,r,a){var i=t.getData(),o=ci(e,function(f,d,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?F(r,function(f){c(pd(i,n,f),f)}):F(e,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(ur("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ts=en();function wm(e,t){return e.getName(t)||e.getId(t)}var Ky="__universalTransitionEnabled",H1=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=Tv({count:kOe,reset:AOe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=Ts(this).sourceManager=new kW(this);i.prepareSource();var o=this.getInitialData(n,a);yO(o,this),this.dataTask.context.data=o,Ts(this).dataBeforeProcessed=o,mO(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Mp(this),i=a?Fd(n):{},o=this.subType;Yt.hasClass(o)&&(o+="Series"),Dt(n,r.getTheme().get(this.subType)),Dt(n,this.getDefaultOption()),cc(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&bl(n,i,a)},t.prototype.mergeOption=function(n,r){n=Dt(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Mp(this);a&&bl(this.option,n,a);var i=Ts(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);yO(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ts(this).dataBeforeProcessed=o,mO(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(n){if(n&&!_a(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&cc(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=w2(this);if(r){var a=r.context.data;return n==null?a:a.getLinkedData(n)}else return Ts(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=w2(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}Ts(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return ot(n)},t.prototype.getSourceManager=function(){return Ts(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ts(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 OW({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Jt.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=uA.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=wm(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(n,r){for(var a=[],i=0;i<n.length;i++)a[0]=n[i],this.isSelected(n[i],r)?this.unselect(a,r):this.select(a,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=Gt(n),a=[],i=0;i<r.length;i++){var o=n[r[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[wm(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Ky])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){ht(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=r[c],d=wm(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=wm(n,h);o.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(i={},i[d]=n.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(a){var i=n.getRawDataItem(a);i&&i.selected&&r.push(a)}),r.length>0&&this._innerSelect(n,r)}},t.registerClass=function(n){return Yt.registerClass(n)},t.protoInitialize=function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),t}(Yt);Vn(H1,hA);Vn(H1,uA);GH(H1,Yt);function mO(e){var t=e.name;$k(e)||(e.name=MOe(e)||t)}function MOe(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return F(n,function(a){var i=t.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function kOe(e){return e.model.getRawData().count()}function AOe(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),EOe}function EOe(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function yO(e,t){F(fp(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,xt(IOe,t))})}function IOe(e,t){var n=w2(e);return n&&n.setOutputEnd((t||this).count()),t}function w2(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(e.uid))}return r}}const _n=H1;var pA=function(){function e(){this.group=new bt,this.uid=zd("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}();Bk(pA);C1(pA);const An=pA;function Kd(){var e=en();return function(t){var n=e(t),r=t.pipelineContext,a=!!n.large,i=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var $W=en(),DOe=Kd(),gA=function(){function e(){this.group=new bt,this.uid=zd("viewChart"),this.renderTask=Tv({plan:POe,reset:LOe}),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){Rl(this.group,t)},e.markUpdateMethod=function(t,n){$W(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function bO(e,t,n){e&&Sp(e)&&(t==="emphasis"?rs:as)(e,n)}function _O(e,t,n){var r=fc(e,t),a=t&&t.highlightKey!=null?oLe(t.highlightKey):null;r!=null?F(hn(r),function(i){bO(e.getItemGraphicEl(i),n,a)}):e.eachItemGraphicEl(function(i){bO(i,n,a)})}Bk(gA);C1(gA);function POe(e){return DOe(e.model)}function LOe(e){var t=e.model,n=e.ecModel,r=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&$W(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,r,a),ROe[l]}var ROe={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const vn=gA;var G0="\0__throttleOriginMethod",wO="\0__throttleRate",SO="\0__throttleType";function G1(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 Ud(e,t,n,r){var a=e[t];if(a){var i=a[G0]||a,o=a[SO],s=a[wO];if(s!==n||o!==r){if(n==null||!r)return e[t]=i;a=e[t]=G1(i,n,r==="debounce"),a[G0]=i,a[SO]=r,a[wO]=n}return a}}function Ap(e,t){var n=e[t];n&&n[G0]&&(n.clear&&n.clear(),e[t]=n[G0])}var CO=en(),xO={itemStyle:dc(GG,!0),lineStyle:dc(HG,!0)},OOe={lineStyle:"stroke",itemStyle:"fill"};function NW(e,t){var n=e.visualStyleMapper||xO[t];return n||(console.warn("Unknown style type '"+t+"'."),xO.itemStyle)}function BW(e,t){var n=e.visualDrawType||OOe[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var $Oe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=e.getModel(r),i=NW(e,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=BW(e,r),u=o[l],c=ut(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ut(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||ut(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=e.getDataParams(v),g=Ie({},o);g[l]=c(p),h.setItemVisual(v,"style",g)}}}},bh=new dn,NOe={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=NW(e,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){bh.option=l[r];var u=a(bh),c=o.ensureUniqueItemVisual(s,"style");Ie(c,u),bh.option.decal&&(o.setItemVisual(s,"decal",bh.option.decal),bh.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},BOe={performRawSeries:!0,overallReset:function(e){var t=ot();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,i=t.get(a);i||(i={},t.set(a,i)),CO(n).scope=i}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=CO(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=BW(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)}})}})}},Sm=Math.PI;function VOe(e,t){t=t||{},ft(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new bt,r=new Zt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var a=new Xt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new Zt({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(i);var o;return t.showSpinner&&(o=new I1({shape:{startAngle:-Sm/2,endAngle:-Sm/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:Sm*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Sm*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 zOe=function(){function e(t,n,r,a){this._stageTaskMap=ot(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),a=r.context,i=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&i>=r.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=ot();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;F(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Nr(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},e.prototype.prepareView=function(t,n,r,a){var i=t.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(n,i)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,a){a=a||{};var i=!1,o=this;F(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,r);var p=o.getPerformArgs(d,a.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(a,g)&&g.dirty();var b=o.getPerformArgs(g,a.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,a){var i=this,o=n.seriesTaskMap,s=n.seriesTaskMap=ot(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Tv({plan:KOe,reset:UOe,count:jOe}));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||Tv({reset:FOe});o.context={ecModel:r,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ot(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";Nr(!t.createOnAllSeries,h),u?r.eachRawSeriesByType(u,v):c?c(r,a).each(v):(f=!1,F(r.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Tv({reset:HOe,onDirty:WOe})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,i._pipe(p,m)}d&&o.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},e.wrapStageHandler=function(t,n){return ut(t)&&(t={overallReset:t,seriesType:qOe(t)}),t.uid=zd("stageHandler"),n&&(t.visualType=n),t},e}();function FOe(e){e.overallReset(e.ecModel,e.api,e.payload)}function HOe(e){return e.overallProgress&&GOe}function GOe(){this.agent.dirty(),this.getDownstream().dirty()}function WOe(){this.agent&&this.agent.dirty()}function KOe(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function UOe(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=hn(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Oe(t,function(n,r){return VW(r)}):YOe}var YOe=VW(0);function VW(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 jOe(e){return e.data.count()}function qOe(e){W0=null;try{e(Ep,zW)}catch{}return W0}var Ep={},zW={},W0;FW(Ep,fW);FW(zW,dW);Ep.eachSeriesByType=Ep.eachRawSeriesByType=function(e){W0=e};Ep.eachComponent=function(e){e.mainType==="series"&&e.subType&&(W0=e.subType)};function FW(e,t){for(var n in t.prototype)e[n]=Nn}const HW=zOe;var TO=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const XOe={color:TO,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],TO]};var Hr="#B9B8CE",MO="#100C2A",Cm=function(){return{axisLine:{lineStyle:{color:Hr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},kO=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],GW={darkMode:!0,color:kO,backgroundColor:MO,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Hr}},textStyle:{color:Hr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Hr}},dataZoom:{borderColor:"#71708A",textStyle:{color:Hr},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Hr}},timeline:{lineStyle:{color:Hr},label:{color:Hr},controlStyle:{color:Hr,borderColor:Hr}},calendar:{itemStyle:{color:MO},dayLabel:{color:Hr},monthLabel:{color:Hr},yearLabel:{color:Hr}},timeAxis:Cm(),logAxis:Cm(),valueAxis:Cm(),categoryAxis:Cm(),line:{symbol:"circle"},graph:{color:kO},gauge:{title:{color:Hr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Hr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};GW.categoryAxis.splitLine.show=!1;const ZOe=GW;var JOe=function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},a={};if(Je(t)){var i=co(t);n.mainType=i.main||null,n.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};F(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(n.mainType=v,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,a,i));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),S2=["symbol","symbolSize","symbolRotate","symbolOffset"],AO=S2.concat(["symbolKeepAspect"]),QOe={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<S2.length;o++){var s=S2[o],l=e.get(s);ut(l)?(i=!0,a[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(Ie({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=Gt(a);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(d,g,a[g](h,v))}}return{dataEach:i?c:null}}},e$e={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<AO.length;s++){var l=AO[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function mA(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 bg(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 WW(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 KW(e,t){function n(r,a){var i=[];return r.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}F([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(r){t(r[0],function(a,i,o){a=Ie({},a),o.dispatchAction(Ie(a,{type:r[1],seriesIndex:n(i,a)}))})})}function Yc(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=fc(f,a.fromActionPayload);n.trigger(i,{type:i,seriesId:o.id,name:Re(d)?f.getName(d[0]):f.getName(d),selected:Je(l)?l:Ie({},l)})}})}function t$e(e,t,n){e.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(Yc("map","selectchanged",t,a,r),Yc("pie","selectchanged",t,a,r)):r.fromAction==="select"?(Yc("map","selected",t,a,r),Yc("pie","selected",t,a,r)):r.fromAction==="unselect"&&(Yc("map","unselected",t,a,r),Yc("pie","unselected",t,a,r))})}function Fu(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var n$e=Math.round(Math.random()*9),r$e=typeof Object.defineProperty=="function",a$e=function(){function e(){this._id="__ec_inner_"+n$e++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var r=this._guard(t);return r$e?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();const i$e=a$e;var o$e=zt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,a=t.width/2,i=t.height/2;e.moveTo(n,r-i),e.lineTo(n+a,r+i),e.lineTo(n-a,r+i),e.closePath()}}),s$e=zt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,a=t.width/2,i=t.height/2;e.moveTo(n,r-i),e.lineTo(n+a,r),e.lineTo(n,r+i),e.lineTo(n-a,r),e.closePath()}}),l$e=zt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=r-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;e.moveTo(n-c,l+s),e.arc(n,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(n+c-f*h,l+s+d*h,n,r-v,n,r),e.bezierCurveTo(n,r-v,n-c+f*h,l+s+d*h,n-c,l+s),e.closePath()}}),u$e=zt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,a=t.x,i=t.y,o=r/3*2;e.moveTo(a,i),e.lineTo(a+o,i+n),e.lineTo(a,i+n/4*3),e.lineTo(a-o,i+n),e.lineTo(a,i),e.closePath()}}),c$e={line:ar,rect:Zt,roundRect:Zt,square:Zt,circle:Hi,diamond:s$e,pin:l$e,arrow:u$e,triangle:o$e},f$e={line:function(e,t,n,r,a){a.x1=e,a.y1=t+r/2,a.x2=e+n,a.y2=t+r/2},rect:function(e,t,n,r,a){a.x=e,a.y=t,a.width=n,a.height=r},roundRect:function(e,t,n,r,a){a.x=e,a.y=t,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(e,t,n,r,a){var i=Math.min(n,r);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.r=Math.min(n,r)/2},diamond:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.width=n,a.height=r},pin:function(e,t,n,r,a){a.x=e+n/2,a.y=t+r/2,a.width=n,a.height=r},arrow:function(e,t,n,r,a){a.x=e+n/2,a.y=t+r/2,a.width=n,a.height=r},triangle:function(e,t,n,r,a){a.cx=e+n/2,a.cy=t+r/2,a.width=n,a.height=r}},K0={};F(c$e,function(e,t){K0[t]=new e});var d$e=zt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=R0(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=K0[r];a||(r="rect",a=K0[r]),f$e[r](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,n)}}});function h$e(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function Hn(e,t,n,r,a,i,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=jk(e.slice(8),new Rt(t,n,r,a),o?"center":"cover"):e.indexOf("path://")===0?l=pg(e.slice(7),{},new Rt(t,n,r,a),o?"center":"cover"):l=new d$e({shape:{symbolType:e,x:t,y:n,width:r,height:a}}),l.__isEmptyBrush=s,l.setColor=h$e,i&&l.setColor(i),l}function Yd(e){return Re(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Ac(e,t){if(e!=null)return Re(e)||(e=[e,e]),[qe(e[0],t[0])||0,qe(Lt(e[1],e[0]),t[1])||0]}function Hu(e){return isFinite(e)}function v$e(e,t,n){var r=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(r=r*n.width+n.x,a=a*n.width+n.x,i=i*n.height+n.y,o=o*n.height+n.y),r=Hu(r)?r:0,a=Hu(a)?a:1,i=Hu(i)?i:0,o=Hu(o)?o:0;var s=e.createLinearGradient(r,i,a,o);return s}function p$e(e,t,n){var r=n.width,a=n.height,i=Math.min(r,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*r+n.x,s=s*a+n.y,l=l*i),o=Hu(o)?o:.5,s=Hu(s)?s:.5,l=l>=0&&Hu(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function C2(e,t,n){for(var r=t.type==="radial"?p$e(e,t,n):v$e(e,t,n),a=t.colorStops,i=0;i<a.length;i++)r.addColorStop(a[i].offset,a[i].color);return r}function g$e(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function xm(e){return parseInt(e,10)}function Sf(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]||xm(s[r])||xm(e.style[r]))-(xm(s[i])||0)-(xm(s[o])||0)|0}function m$e(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Qt(e)?[e]:Re(e)?e:null}function yA(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&m$e(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(n=Oe(n,function(i){return i/a}),r/=a)}return[n,r]}var y$e=new To(!0);function U0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function EO(e){return typeof e=="string"&&e!=="none"}function Y0(e){var t=e.fill;return t!=null&&t!=="none"}function IO(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 DO(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 x2(e,t,n){var r=Vk(t.image,t.__image,n);if(x1(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)*vv),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function b$e(e,t,n,r){var a,i=U0(n),o=Y0(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||y$e,f=t.__dirty;if(!r){var d=n.fill,h=n.stroke,v=o&&!!d.colorStops,p=i&&!!h.colorStops,g=o&&!!d.image,m=i&&!!h.image,b=void 0,_=void 0,w=void 0,C=void 0,S=void 0;(v||p)&&(S=t.getBoundingRect()),v&&(b=f?C2(e,d,S):t.__canvasFillGradient,t.__canvasFillGradient=b),p&&(_=f?C2(e,h,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(w=f||!t.__canvasFillPattern?x2(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=w),m&&(C=f||!t.__canvasStrokePattern?x2(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=b:g&&(w?e.fillStyle=w:o=!1),p?e.strokeStyle=_:m&&(C?e.strokeStyle=C:i=!1)}var x=t.getGlobalScale();c.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,M;e.setLineDash&&n.lineDash&&(a=yA(t),T=a[0],M=a[1]);var A=!0;(u||f&ff)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),A=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),A&&c.rebuildPath(e,l?s:1),T&&(e.setLineDash(T),e.lineDashOffset=M),r||(n.strokeFirst?(i&&DO(e,n),o&&IO(e,n)):(o&&IO(e,n),i&&DO(e,n))),T&&e.setLineDash([])}function _$e(e,t,n){var r=t.__image=Vk(n.image,t.__image,t,t.onload);if(!(!r||!x1(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 w$e(e,t,n){var r,a=n.text;if(a!=null&&(a+=""),a){e.font=n.font||gl,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=yA(t),i=r[0],o=r[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),n.strokeFirst?(U0(n)&&e.strokeText(a,n.x,n.y),Y0(n)&&e.fillText(a,n.x,n.y)):(Y0(n)&&e.fillText(a,n.x,n.y),U0(n)&&e.strokeText(a,n.x,n.y)),i&&e.setLineDash([])}}var PO=["shadowBlur","shadowOffsetX","shadowOffsetY"],LO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function UW(e,t,n,r,a){var i=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){va(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Zu.opacity:o}(r||t.blend!==n.blend)&&(i||(va(e,a),i=!0),e.globalCompositeOperation=t.blend||Zu.blend);for(var s=0;s<PO.length;s++){var l=PO[s];(r||t[l]!==n[l])&&(i||(va(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(i||(va(e,a),i=!0),e.shadowColor=t.shadowColor||Zu.shadowColor),i}function RO(e,t,n,r,a){var i=Ip(t,a.inHover),o=r?null:n&&Ip(n,a.inHover)||{};if(i===o)return!1;var s=UW(e,i,o,r,a);if((r||i.fill!==o.fill)&&(s||(va(e,a),s=!0),EO(i.fill)&&(e.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(s||(va(e,a),s=!0),EO(i.stroke)&&(e.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(s||(va(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(va(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<LO.length;c++){var f=LO[c],d=f[0];(r||i[d]!==o[d])&&(s||(va(e,a),s=!0),e[d]=i[d]||f[1])}return s}function S$e(e,t,n,r,a){return UW(e,Ip(t,a.inHover),n&&Ip(n,a.inHover),r,a)}function YW(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 C$e(e,t,n){for(var r=!1,a=0;a<e.length;a++){var i=e[a];r=r||i.isZeroArea(),YW(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}n.allClipped=r}function x$e(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var OO=1,$O=2,NO=3,BO=4;function T$e(e){var t=Y0(e),n=U0(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function va(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Ip(e,t){return t&&e.__hoverStyle||e.style}function bA(e,t){Gu(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Gu(e,t,n,r){var a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~Ta,t.__isRendered=!1;return}var i=t.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if((!o||g$e(i,o))&&(o&&o.length&&(va(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(va(e,n),e.save(),C$e(i,e,n),s=!0),n.prevElClipPaths=i),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof zt&&t.autoBatch&&T$e(t.style);s||x$e(a,u.transform)?(va(e,n),YW(e,t)):c||va(e,n);var f=Ip(t,n.inHover);t instanceof zt?(n.lastDrawType!==OO&&(l=!0,n.lastDrawType=OO),RO(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),b$e(e,t,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof _p?(n.lastDrawType!==NO&&(l=!0,n.lastDrawType=NO),RO(e,t,u,l,n),w$e(e,t,f)):t instanceof vr?(n.lastDrawType!==$O&&(l=!0,n.lastDrawType=$O),S$e(e,t,u,l,n),_$e(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==BO&&(l=!0,n.lastDrawType=BO),M$e(e,t,n)),c&&r&&va(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function M$e(e,t,n){var r=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Gu(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(),Gu(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Pw=new i$e,VO=new ug(100),zO=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function gd(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),a=r.painter.type==="svg";e.dirty&&Pw.delete(e);var i=Pw.get(e);if(i)return i;var o=ft(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/n,Pw.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<zO.length;++d){var h=o[zO[d]];if(h!=null&&!Re(h)&&!Je(h)&&!Qt(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(a?"-svg":"");var p=VO.get(v);p&&(a?u.svgElement=p:u.image=p)}var g=qW(o.dashArrayX),m=k$e(o.dashArrayY),b=jW(o.symbol),_=A$e(g),w=XW(m),C=!a&&Vi.createCanvas(),S=a&&{tag:"g",attrs:{},key:"dcl",children:[]},x=M(),T;C&&(C.width=x.width*n,C.height=x.height*n,T=C.getContext("2d")),A(),f&&VO.put(v,C||S),u.image=C,u.svgElement=S,u.svgWidth=x.width,u.svgHeight=x.height;function M(){for(var k=1,E=0,D=_.length;E<D;++E)k=tR(k,_[E]);for(var L=1,E=0,D=b.length;E<D;++E)L=tR(L,b[E].length);k*=L;var B=w*_.length*b.length;return{width:Math.max(1,Math.min(k,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,C.width,C.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,C.width,C.height)));for(var k=0,E=0;E<m.length;++E)k+=m[E];if(k<=0)return;for(var D=-w,L=0,B=0,N=0;D<x.height;){if(L%2===0){for(var O=B/2%b.length,$=0,I=0,z=0;$<x.width*2;){for(var G=0,E=0;E<g[N].length;++E)G+=g[N][E];if(G<=0)break;if(I%2===0){var U=(1-o.symbolSize)*.5,Z=$+g[N][I]*U,ae=D+m[L]*U,J=g[N][I]*o.symbolSize,Q=m[L]*o.symbolSize,ee=z/2%b[O].length;j(Z,ae,J,Q,b[O][ee])}$+=g[N][I],++z,++I,I===g[N].length&&(I=0)}++N,N===g.length&&(N=0)}D+=m[L],++B,++L,L===m.length&&(L=0)}function j(de,ve,ie,W,X){var oe=a?1:n,pe=Hn(X,de*oe,ve*oe,ie*oe,W*oe,o.color,o.symbolKeepAspect);if(a){var Se=r.painter.renderOneToVNode(pe);Se&&S.children.push(Se)}else bA(T,pe)}}}}function jW(e){if(!e||e.length===0)return[["rect"]];if(Je(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!Je(e[n])){t=!1;break}if(t)return jW([e]);for(var r=[],n=0;n<e.length;++n)Je(e[n])?r.push([e[n]]):r.push(e[n]);return r}function qW(e){if(!e||e.length===0)return[[0,0]];if(Qt(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Qt(e[r])){n=!1;break}if(n)return qW([e]);for(var a=[],r=0;r<e.length;++r)if(Qt(e[r])){var t=Math.ceil(e[r]);a.push([t,t])}else{var t=Oe(e[r],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function k$e(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Qt(e)){var t=Math.ceil(e);return[t,t]}var n=Oe(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function A$e(e){return Oe(e,function(t){return XW(t)})}function XW(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function E$e(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(o){var s=r.getItemVisual(o,"decal");if(s){var l=r.ensureUniqueItemVisual(o,"style");l.decal=gd(s,t)}});var a=r.getVisual("decal");if(a){var i=r.getVisual("style");i.decal=gd(a,t)}}})}var I$e=new di;const Ci=I$e;var ZW={};function D$e(e,t){ZW[e]=t}function JW(e){return ZW[e]}var P$e="5.4.3",L$e={zrender:"5.4.4"},R$e=1,O$e=800,$$e=900,N$e=1e3,B$e=2e3,V$e=5e3,QW=1e3,z$e=1100,_A=2e3,e9=3e3,F$e=4e3,W1=4500,H$e=4600,G$e=5e3,W$e=6e3,t9=7e3,n9={PROCESSOR:{FILTER:N$e,SERIES_FILTER:O$e,STATISTIC:V$e},VISUAL:{LAYOUT:QW,PROGRESSIVE_LAYOUT:z$e,GLOBAL:_A,CHART:e9,POST_CHART_LAYOUT:H$e,COMPONENT:F$e,BRUSH:G$e,CHART_ITEM:W1,ARIA:W$e,DECAL:t9}},Ir="__flagInMainProcess",ua="__pendingUpdate",Lw="__needsUpdateStatus",FO=/^[a-zA-Z0-9_]+$/,Rw="__connectUpdateStatus",HO=0,K$e=1,U$e=2;function r9(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return i9(this,e,t)}}function a9(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return i9(this,e,t)}}function i9(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),di.prototype[t].apply(e,n)}var o9=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(di),s9=o9.prototype;s9.on=a9("on");s9.off=a9("off");var jc,Ow,Tm,Ms,$w,Nw,Bw,_h,wh,GO,WO,Vw,KO,Mm,UO,l9,Na,YO,j0=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,new JOe)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},Je(r)&&(r=u9[r]),i._dom=n;var o="canvas",s="auto",l=!1,u=i._zr=Jx(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Lt(a.useDirtyRect,l),useCoarsePointer:Lt(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=G1(et(u.flush,u),17),r=pt(r),r&&vW(r,!0),i._theme=r,i._locale=nRe(a.locale||WG),i._coordSysMgr=new Wd;var c=i._api=UO(i);function f(d,h){return d.__prio-h.__prio}return Ly(X0,f),Ly(T2,f),i._scheduler=new HW(i,c,T2,X0),i._messageCenter=new o9,i._initEvents(),i.resize=et(i.resize,i),u.animation.on("frame",i._onframe,i),GO(u,i),WO(u,i),cp(i),i}return t.prototype._onframe=function(){if(!this._disposed){YO(this);var n=this._scheduler;if(this[ua]){var r=this[ua].silent;this[Ir]=!0;try{jc(this),Ms.update.call(this,null,this[ua].updateParams)}catch(l){throw this[Ir]=!1,this[ua]=null,l}this._zr.flush(),this[Ir]=!1,this[ua]=null,_h.call(this,r),wh.call(this,r)}else if(n.unfinished){var a=R$e,i=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),Nw(this,i),n.performVisualTasks(i),Mm(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,a){if(!this[Ir]){if(this._disposed){this.id;return}var i,o,s;if(ht(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[Ir]=!0,!this._model||r){var l=new $Re(this._api),u=this._theme,c=this._model=new fW;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},M2);var f={seriesTransition:s,optionChanged:!0};if(a)this[ua]={silent:i,updateParams:f},this[Ir]=!1,this.getZr().wakeUp();else{try{jc(this),Ms.update.call(this,null,f)}catch(d){throw this[ua]=null,this[Ir]=!1,d}this._ssr||this._zr.flush(),this[ua]=null,this[Ir]=!1,_h.call(this,i),wh.call(this,i)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Jt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(Jt.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return F(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;F(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return F(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Z0[a]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();F(ec,function(_,w){if(_.group===a){var C=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(pt(n)),S=_.getDom().getBoundingClientRect();l=i(S.left,l),u=i(S.top,u),c=o(S.right,c),f=o(S.bottom,f),d.push({dom:C,left:S.left,top:S.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,p=f-u,g=Vi.createCanvas(),m=Jx(g,{renderer:r?"svg":"canvas"});if(m.resize({width:v,height:p}),r){var b="";return F(d,function(_){var w=_.left-l,C=_.top-u;b+='<g transform="translate('+w+","+C+')">'+_.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&m.painter.setBackgroundColor(n.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return n.connectedBackgroundColor&&m.add(new Zt({shape:{x:0,y:0,width:v,height:p},style:{fill:n.connectedBackgroundColor}})),F(d,function(_){var w=new vr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(w)}),m.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return $w(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return $w(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=_v(a,n);return F(o,function(s,l){l.indexOf("Models")>=0&&F(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(r,u))}},this)},this),!!i},t.prototype.getVisual=function(n,r){var a=this._model,i=_v(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?mA(s,l,r):bg(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;F(Y$e,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&Fu(s,function(v){var p=Tt(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=Ie({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),F(Mv,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),F(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),t$e(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&zH(this.getDom(),SA,"");var r=this,a=r._api,i=r._model;F(r._componentsViews,function(o){o.dispose(i,a)}),F(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete ec[r.id]},t.prototype.resize=function(n){if(!this[Ir]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=n&&n.silent;this[ua]&&(i==null&&(i=this[ua].silent),a=!0,this[ua]=null),this[Ir]=!0;try{a&&jc(this),Ms.update.call(this,{type:"resize",animation:Ie({duration:0},n&&n.animation)})}catch(o){throw this[Ir]=!1,o}this[Ir]=!1,_h.call(this,i),wh.call(this,i)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(ht(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!k2[n]){var a=k2[n](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=Ie({},n);return r.type=Mv[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(ht(r)||(r={silent:!!r}),!!q0[n.type]&&this._model){if(this[Ir]){this._pendingActions.push(n);return}var a=r.silent;Bw.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&Jt.browser.weChat&&this._throttledZrFlush(),_h.call(this,a),wh.call(this,a)}},t.prototype.updateLabelLayout=function(){Ci.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(){jc=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Ow(f,!0),Ow(f,!1),d.plan()},Ow=function(f,d){for(var h=f._model,v=f._scheduler,p=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,m=f._zr,b=f._api,_=0;_<p.length;_++)p[_].__alive=!1;d?h.eachComponent(function(S,x){S!=="series"&&w(x)}):h.eachSeries(w);function w(S){var x=S.__requireNewView;S.__requireNewView=!1;var T="_ec_"+S.id+"_"+S.type,M=!x&&g[T];if(!M){var A=co(S.type),k=d?An.getClass(A.main,A.sub):vn.getClass(A.sub);M=new k,M.init(h,b),g[T]=M,p.push(M),m.add(M.group)}S.__viewId=M.__id=T,M.__alive=!0,M.__model=S,M.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!d&&v.prepareView(M,S,h,b)}for(var _=0;_<p.length;){var C=p[_];C.__alive?_++:(!d&&C.renderTask.dispose(),m.remove(C.group),C.dispose(h,b),p.splice(_,1),g[C.__id]===C&&delete g[C.__id],C.__id=C.group.__ecComponentInfo=null)}},Tm=function(f,d,h,v,p){var g=f._model;if(g.setUpdatePayload(h),!v){F([].concat(f._componentsViews).concat(f._chartsViews),C);return}var m={};m[v+"Id"]=h[v+"Id"],m[v+"Index"]=h[v+"Index"],m[v+"Name"]=h[v+"Name"];var b={mainType:v,query:m};p&&(b.subType=p);var _=h.excludeSeriesId,w;_!=null&&(w=ot(),F(hn(_),function(S){var x=tr(S,null);x!=null&&w.set(x,!0)})),g&&g.eachComponent(b,function(S){var x=w&&w.get(S.id)!=null;if(!x)if(ER(h))if(S instanceof _n)h.type===Ju&&!h.notBlur&&!S.get(["emphasis","disabled"])&&JPe(S,h,f._api);else{var T=Wk(S.mainType,S.componentIndex,h.name,f._api),M=T.focusSelf,A=T.dispatchers;h.type===Ju&&M&&!h.notBlur&&s2(S.mainType,S.componentIndex,f._api),A&&F(A,function(k){h.type===Ju?rs(k):as(k)})}else u2(h)&&S instanceof _n&&(tLe(S,h,f._api),kR(S),Na(f))},f),g&&g.eachComponent(b,function(S){var x=w&&w.get(S.id)!=null;x||C(f[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},f);function C(S){S&&S.__alive&&S[d]&&S[d](S.__model,g,f._api,h)}},Ms={prepareAndUpdate:function(f){jc(this),Ms.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),Nw(this,h),g.update(h,v),n(h),m.performVisualTasks(h,f),Vw(this,h,v,f,d);var b=h.get("backgroundColor")||"transparent",_=h.get("darkMode");p.setBackgroundColor(b),_!=null&&_!=="auto"&&p.setDarkMode(_),Ci.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var p=[];h.eachComponent(function(m,b){if(m!=="series"){var _=d.getViewOfComponentModel(b);if(_&&_.__alive)if(_.updateTransform){var w=_.updateTransform(b,h,v,f);w&&w.update&&p.push(_)}else p.push(_)}});var g=ot();h.eachSeries(function(m){var b=d._chartsMap[m.__viewId];if(b.updateTransform){var _=b.updateTransform(m,h,v,f);_&&_.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),Mm(this,h,v,f,{},g),Ci.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),vn.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),Vw(this,d,this._api,f,{}),Ci.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),vn.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,p){if(v!=="series"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,d._api,f)}}),h.eachSeries(function(v){var p=d._chartsMap[v.__viewId];p.updateVisual(v,h,d._api,f)}),Ci.trigger("afterupdate",h,this._api))},updateLayout:function(f){Ms.update.call(this,f)}},$w=function(f,d,h,v){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,b=_v(p,h),_=0;_<g.length;_++){var w=g[_];if(w[d]&&(m=w[d](p,b,v))!=null)return m}},Nw=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},Bw=function(f,d){var h=this,v=this.getModel(),p=f.type,g=f.escapeConnect,m=q0[p],b=m.actionInfo,_=(b.update||"update").split(":"),w=_.pop(),C=_[0]!=null&&co(_[0]);this[Ir]=!0;var S=[f],x=!1;f.batch&&(x=!0,S=Oe(f.batch,function(L){return L=ft(Ie({},L),f),L.batch=null,L}));var T=[],M,A=u2(f),k=ER(f);if(k&&hG(this._api),F(S,function(L){if(M=m.action(L,h._model,h._api),M=M||Ie({},L),M.type=b.event||M.type,T.push(M),k){var B=Nk(f),N=B.queryOptionMap,O=B.mainTypeSpecified,$=O?N.keys()[0]:"series";Tm(h,w,L,$),Na(h)}else A?(Tm(h,w,L,"series"),Na(h)):C&&Tm(h,w,L,C.main,C.sub)}),w!=="none"&&!k&&!A&&!C)try{this[ua]?(jc(this),Ms.update.call(this,f),this[ua]=null):Ms[w].call(this,f)}catch(L){throw this[Ir]=!1,L}if(x?M={type:b.event||p,escapeConnect:g,batch:T}:M=T[0],this[Ir]=!1,!d){var E=this._messageCenter;if(E.trigger(M.type,M),A){var D={type:"selectchanged",escapeConnect:g,selected:nLe(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};E.trigger(D.type,D)}}},_h=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();Bw.call(this,h,f)}},wh=function(f){!f&&this.trigger("updated")},GO=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[ua]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},WO=function(f,d){f.on("mouseover",function(h){var v=h.target,p=Fu(v,Sp);p&&(QPe(p,h,d._api),Na(d))}).on("mouseout",function(h){var v=h.target,p=Fu(v,Sp);p&&(eLe(p,h,d._api),Na(d))}).on("click",function(h){var v=h.target,p=Fu(v,function(b){return Tt(b).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Tt(p);d._api.dispatchAction({type:g,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function r(f){var d=[],h=[],v=!1;if(f.eachComponent(function(b,_){var w=_.get("zlevel")||0,C=_.get("z")||0,S=_.getZLevelKey();v=v||!!S,(b==="series"?h:d).push({zlevel:w,z:C,idx:_.componentIndex,type:b,key:S})}),v){var p=d.concat(h),g,m;Ly(p,function(b,_){return b.zlevel===_.zlevel?b.z-_.z:b.zlevel-_.zlevel}),F(p,function(b){var _=f.getComponent(b.type,b.idx),w=b.zlevel,C=b.key;g!=null&&(w=Math.max(g,w)),C?(w===g&&C!==m&&w++,m=C):m&&(w===g&&w++,m=""),g=w,_.setZLevel(w)})}}Vw=function(f,d,h,v,p){r(d),KO(f,d,h,v,p),F(f._chartsViews,function(g){g.__alive=!1}),Mm(f,d,h,v,p),F(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},KO=function(f,d,h,v,p,g){F(g||f._componentsViews,function(m){var b=m.__model;u(b,m),m.render(b,d,h,v),s(b,m),c(b,m)})},Mm=function(f,d,h,v,p,g){var m=f._scheduler;p=Ie(p||{},{updatedSeries:d.getSeries()}),Ci.trigger("series:beforeupdate",d,h,p);var b=!1;d.eachSeries(function(_){var w=f._chartsMap[_.__viewId];w.__alive=!0;var C=w.renderTask;m.updatePayload(C,v),u(_,w),g&&g.get(_.uid)&&C.dirty(),C.perform(m.getPerformArgs(C))&&(b=!0),w.group.silent=!!_.get("silent"),o(_,w),kR(_)}),m.unfinished=b||m.unfinished,Ci.trigger("series:layoutlabels",d,h,p),Ci.trigger("series:transition",d,h,p),d.eachSeries(function(_){var w=f._chartsMap[_.__viewId];s(_,w),c(_,w)}),i(f,d),Ci.trigger("series:afterupdate",d,h,p)},Na=function(f){f[Lw]=!0,f.getZr().wakeUp()},YO=function(f){f[Lw]&&(f.getZr().storage.traverse(function(d){Bf(d)||a(d)}),f[Lw]=!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===k1&&f.states.emphasis?d.push("emphasis"):f.hoverState===dg&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var h=f._zr,v=h.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>d.get("hoverLayerThreshold")&&!Jt.node&&!Jt.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(f,d,h,v){var p=f.getTextContent(),g=f.getTextGuideLine(),m=f.isGroup;if(m)for(var b=f.childrenRef(),_=0;_<b.length;_++)v=Math.max(l(b[_],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(p&&(p.z=d,p.zlevel=h,isFinite(v)&&(p.z2=v+2)),g){var w=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(w&&w.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!Bf(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(Bf(m))return;if(m instanceof zt&&sLe(m),m.__dirty){var b=m.prevStates;b&&m.useStates(b)}if(v){m.stateTransition=g;var _=m.getTextContent(),w=m.getTextGuideLine();_&&(_.stateTransition=g),w&&(w.stateTransition=g)}m.__dirty&&a(m)}})}UO=function(f){return new(function(d){ge(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){rs(v,p),Na(f)},h.prototype.leaveEmphasis=function(v,p){as(v,p),Na(f)},h.prototype.enterBlur=function(v){uG(v),Na(f)},h.prototype.leaveBlur=function(v){Gk(v),Na(f)},h.prototype.enterSelect=function(v){cG(v),Na(f)},h.prototype.leaveSelect=function(v){fG(v),Na(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}(dW))(f)},l9=function(f){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[Rw]=v}}F(Mv,function(h,v){f._messageCenter.on(v,function(p){if(Z0[f.group]&&f[Rw]!==HO){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];F(ec,function(b){b!==f&&b.group===f.group&&m.push(b)}),d(m,HO),F(m,function(b){b[Rw]!==K$e&&b.dispatchAction(g)}),d(m,U$e)}})})}}(),t}(di),wA=j0.prototype;wA.on=r9("on");wA.off=r9("off");wA.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 Y$e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var q0={},Mv={},T2=[],M2=[],X0=[],u9={},k2={},ec={},Z0={},j$e=+new Date-0,q$e=+new Date-0,SA="_echarts_instance_";function X$e(e,t,n){var r=!(n&&n.ssr);if(r){var a=CA(e);if(a)return a}var i=new j0(e,t,n);return i.id="ec_"+j$e++,ec[i.id]=i,r&&zH(e,SA,i.id),l9(i),Ci.trigger("afterinit",i),i}function Z$e(e){if(Re(e)){var t=e;e=null,F(t,function(n){n.group!=null&&(e=n.group)}),e=e||"g_"+q$e++,F(t,function(n){n.group=e})}return Z0[e]=!0,e}function c9(e){Z0[e]=!1}var J$e=c9;function Q$e(e){Je(e)?e=ec[e]:e instanceof j0||(e=CA(e)),e instanceof j0&&!e.isDisposed()&&e.dispose()}function CA(e){return ec[YDe(e,SA)]}function eNe(e){return ec[e]}function xA(e,t){u9[e]=t}function TA(e){$t(M2,e)<0&&M2.push(e)}function MA(e,t){kA(T2,e,t,B$e)}function f9(e){K1("afterinit",e)}function d9(e){K1("afterupdate",e)}function K1(e,t){Ci.on(e,t)}function Yi(e,t,n){ut(t)&&(n=t,t="");var r=ht(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!Mv[t]&&(Nr(FO.test(r)&&FO.test(t)),q0[r]||(q0[r]={action:n,actionInfo:e}),Mv[t]=r)}function h9(e,t){Wd.register(e,t)}function tNe(e){var t=Wd.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function v9(e,t){kA(X0,e,t,QW,"layout")}function $l(e,t){kA(X0,e,t,e9,"visual")}var jO=[];function kA(e,t,n,r,a){if((ut(t)||ht(t))&&(n=t,t=r),!($t(jO,n)>=0)){jO.push(n);var i=HW.wrapStageHandler(n,a);i.__prio=t,i.__raw=n,e.push(i)}}function AA(e,t){k2[e]=t}function nNe(e){G6({createCanvas:e})}function p9(e,t,n){var r=JW("registerMap");r&&r(e,t,n)}function rNe(e){var t=JW("getMap");return t&&t(e)}var g9=cOe;$l(_A,$Oe);$l(W1,NOe);$l(W1,BOe);$l(_A,QOe);$l(W1,e$e);$l(t9,E$e);TA(vW);MA($$e,WRe);AA("default",VOe);Yi({type:Ju,event:Ju,update:Ju},Nn);Yi({type:zy,event:zy,update:zy},Nn);Yi({type:wv,event:wv,update:wv},Nn);Yi({type:Fy,event:Fy,update:Fy},Nn);Yi({type:Sv,event:Sv,update:Sv},Nn);xA("light",XOe);xA("dark",ZOe);var aNe={},qO=[],iNe={registerPreprocessor:TA,registerProcessor:MA,registerPostInit:f9,registerPostUpdate:d9,registerUpdateLifecycle:K1,registerAction:Yi,registerCoordinateSystem:h9,registerLayout:v9,registerVisual:$l,registerTransform:g9,registerLoading:AA,registerMap:p9,registerImpl:D$e,PRIORITY:n9,ComponentModel:Yt,ComponentView:An,SeriesModel:_n,ChartView:vn,registerComponentModel:function(e){Yt.registerClass(e)},registerComponentView:function(e){An.registerClass(e)},registerSeriesModel:function(e){_n.registerClass(e)},registerChartView:function(e){vn.registerClass(e)},registerSubTypeDefaulter:function(e,t){Yt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){EH(e,t)}};function Bt(e){if(Re(e)){F(e,function(t){Bt(t)});return}$t(qO,e)>=0||(qO.push(e),ut(e)&&(e={install:e}),e.install(iNe))}function Sh(e){return e==null?0:e.length||1}function XO(e){return e}var oNe=function(){function e(t,n,r,a,i,o){this._old=t,this._new=n,this._oldKeyGetter=r||XO,this._newKeyGetter=a||XO,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=Sh(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=Sh(u),d=Sh(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=Sh(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=Sh(l);u===0?(n[s]=o,i&&r.push(s)):u===1?n[s]=[l,o]:l.push(o)}}},e}();const is=oNe;var sNe=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 lNe(e,t){var n={},r=n.encode={},a=ot(),i=[],o=[],s={};F(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;zw(r,v)[p]=d,h.isExtraCoord||(a.set(v,1),uNe(h.type)&&(i[0]=d),zw(s,v)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}rW.each(function(g,m){var b=zw(r,m),_=h.otherDims[m];_!=null&&_!==!1&&(b[_]=h.name)})});var l=[],u={};a.each(function(d,h){var v=r[h];u[h]=v[0],l=l.concat(v)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Oe(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(i=c.slice());var f=r.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),r.defaultedLabel=i,r.defaultedTooltip=o,n.userOutput=new sNe(s,t),n}function zw(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function J0(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function uNe(e){return!(e==="ordinal"||e==="time")}var cNe=function(){function e(t){this.otherDims={},t!=null&&Ie(this,t)}return e}();const Uy=cNe;var fNe=en(),dNe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},m9=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=_9(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Lt(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=gW(this.source),r=!w9(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+=dNe[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 y9(e){return e instanceof m9}function b9(e){for(var t=ot(),n=0;n<(e||[]).length;n++){var r=e[n],a=ht(r)?r.name:r;a!=null&&t.get(a)==null&&t.set(a,n)}return t}function _9(e){var t=fNe(e);return t.dimNameMap||(t.dimNameMap=b9(e.dimensionsDefine))}function w9(e){return e>30}var Ch=ht,ks=Oe,hNe=typeof Int32Array>"u"?Array:Int32Array,vNe="e\0\0",ZO=-1,pNe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],gNe=["_approximateExtent"],JO,km,xh,Th,Fw,Am,Hw,mNe=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;y9(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,r=t),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<r.length;c++){var f=r[c],d=Je(f)?new Uy({name:f}):f instanceof Uy?f:new Uy(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),a&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ot();F(o,function(g){p.set(i[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Qt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[t];var a=r.encode[t];return a?a[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,r=n.encode[t];return(r||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,r){var a=this,i;if(t instanceof y2&&(i=t),!i){var o=this.dimensions,s=cA(t)||Cr(t)?new mW(t,o.length):t;i=new y2;var l=ks(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=lNe(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&&Hw(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!==ol&&!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===vi;if(l&&!a.pure)for(var u=[],c=t;c<n;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&RDe(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=tr(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=tr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)Hw(this,c);JO(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){Ch(t)?Ie(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=xh(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 km(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var r=this._store,a=this._dimInfos[t];if(a)return r.get(a.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var r=this._store,a=this._dimInfos[t];if(a)return r.getByRawIndex(a.storeDimIndex,n)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,n){var r=this,a=this._store;return Re(t)?a.getValues(ks(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)?ZO:a},e.prototype.indicesOfNearest=function(t,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),n,r)},e.prototype.each=function(t,n,r){ut(t)&&(r=n,n=t,t=[]);var a=r||this,i=ks(Th(t),this._getStoreDimIndex,this);this._store.each(i,a?et(n,a):n)},e.prototype.filterSelf=function(t,n,r){ut(t)&&(r=n,n=t,t=[]);var a=r||this,i=ks(Th(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?et(n,a):n),this},e.prototype.selectRange=function(t){var n=this,r={},a=Gt(t);return F(a,function(i){var o=n._getStoreDimIndex(i);r[o]=t[i]}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){ut(t)&&(r=n,n=t,t=[]),r=r||this;var a=[];return this.each(t,function(){a.push(n&&n.apply(this,arguments))},r),a},e.prototype.map=function(t,n,r,a){var i=r||a||this,o=ks(Th(t),this._getStoreDimIndex,this),s=Am(this);return s._store=this._store.map(o,i?et(n,i):n),s},e.prototype.modify=function(t,n,r,a){var i=r||a||this,o=ks(Th(t),this._getStoreDimIndex,this);this._store.modify(o,i?et(n,i):n)},e.prototype.downSample=function(t,n,r,a){var i=Am(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),n,r,a),i},e.prototype.lttbDownSample=function(t,n){var r=Am(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),r},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,r=this.getRawDataItem(t);return new dn(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new is(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return km(t,r)},function(r){return km(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||{},Ch(t)?Ie(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var r=this._itemVisuals[t],a=r&&r[n];return a??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,a=r[t];a||(a=r[t]={});var i=a[n];return i==null&&(i=this.getVisual(n),Re(i)?i=i.slice():Ch(i)&&(i=Ie({},i)),a[n]=i),i},e.prototype.setItemVisual=function(t,n,r){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Ch(n)?Ie(a,n):a[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){Ch(t)?Ie(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?Ie(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;i2(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){F(this._graphicEls,function(r,a){r&&t&&t.call(n,r,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:ks(this.dimensions,this._getDimInfo,this),this.hostModel)),Fw(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];ut(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(g1(arguments)))})},e.internalField=function(){JO=function(t){var n=t._invertedIndicesMap;F(n,function(r,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){r=n[a]=new hNe(o.categories.length);for(var l=0;l<r.length;l++)r[l]=ZO;for(var l=0;l<s.count();l++)r[s.get(i.storeDimIndex,l)]=l}})},xh=function(t,n,r){return tr(t._getCategory(n,r),null)},km=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=xh(t,t._idDimIdx,n)),r==null&&(r=vNe+n),r},Th=function(t){return Re(t)||(t=t!=null?[t]:[]),t},Am=function(t){var n=new e(t._schema?t._schema:ks(t.dimensions,t._getDimInfo,t),t.hostModel);return Fw(n,t),n},Fw=function(t,n){F(pNe.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,F(gNe,function(r){t[r]=pt(n[r])}),t._calculationInfo=Ie({},n._calculationInfo)},Hw=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=xh(t,i,n)),l==null&&o!=null&&(a[n]=l=xh(t,o,n)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[n]=l}}}(),e}();const Or=mNe;function yNe(e,t){return jd(e,t).dimensions}function jd(e,t){cA(e)||(e=fA(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],a=ot(),i=[],o=_Ne(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&w9(o),l=r===e.dimensionsDefine,u=l?_9(e):b9(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ot(c),d=new TW(o),h=0;h<d.length;h++)d[h]=-1;function v(M){var A=d[M];if(A<0){var k=r[M],E=ht(k)?k:{name:k},D=new Uy,L=E.name;L!=null&&u.get(L)!=null&&(D.name=D.displayName=L),E.type!=null&&(D.type=E.type),E.displayName!=null&&(D.displayName=E.displayName);var B=i.length;return d[M]=B,D.storeDimIndex=M,i.push(D),D}return i[A]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(M,A){var k=hn(M).slice();if(k.length===1&&!Je(k[0])&&k[0]<0){f.set(A,!1);return}var E=f.set(A,[]);F(k,function(D,L){var B=Je(D)?u.get(D):D;B!=null&&B<o&&(E[L]=B,g(v(B),A,L))})});var p=0;F(n,function(M){var A,k,E,D;if(Je(M))A=M,D={};else{D=M,A=D.name;var L=D.ordinalMeta;D.ordinalMeta=null,D=Ie({},D),D.ordinalMeta=L,k=D.dimsDef,E=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var B=f.get(A);if(B!==!1){if(B=hn(B),!B.length)for(var N=0;N<(k&&k.length||1);N++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&B.push(p++)}F(B,function(O,$){var I=v(O);if(l&&D.type!=null&&(I.type=D.type),g(ft(I,D),A,$),I.name==null&&k){var z=k[$];!ht(z)&&(z={name:z}),I.name=I.displayName=z.name,I.defaultTooltip=z.defaultTooltip}E&&ft(I.otherDims,E)})}});function g(M,A,k){rW.get(A)!=null?M.otherDims[A]=k:(M.coordDim=A,M.coordDimIndex=k,a.set(A,!0))}var m=t.generateCoord,b=t.generateCoordCount,_=b!=null;b=m?b||1:0;var w=m||"value";function C(M){M.name==null&&(M.name=M.coordDim)}if(s)F(i,function(M){C(M)}),i.sort(function(M,A){return M.storeDimIndex-A.storeDimIndex});else for(var S=0;S<o;S++){var x=v(S),T=x.coordDim;T==null&&(x.coordDim=wNe(w,a,_),x.coordDimIndex=0,(!m||b<=0)&&(x.isExtraCoord=!0),b--),C(x),x.type==null&&(sW(e,S)===gr.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return bNe(i),new m9({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function bNe(e){for(var t=ot(),n=0;n<e.length;n++){var r=e[n],a=r.name,i=t.get(a)||0;i>0&&(r.name=a+(i-1)),i++,t.set(a,i)}}function _Ne(e,t,n,r){var a=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return F(t,function(i){var o;ht(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function wNe(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 SNe=function(){function e(t){this.coordSysDims=[],this.axisMap=ot(),this.categoryAxisMap=ot(),this.coordSysName=t}return e}();function CNe(e){var t=e.get("coordinateSystem"),n=new SNe(t),r=xNe[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var xNe={cartesian2d:function(e,t,n,r){var a=e.getReferringComponents("xAxis",Wn).models[0],i=e.getReferringComponents("yAxis",Wn).models[0];t.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),qc(a)&&(r.set("x",a),t.firstCategoryDimIndex=0),qc(i)&&(r.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var a=e.getReferringComponents("singleAxis",Wn).models[0];t.coordSysDims=["single"],n.set("single",a),qc(a)&&(r.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var a=e.getReferringComponents("polar",Wn).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),qc(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),qc(o)&&(r.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();F(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),qc(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function qc(e){return e.get("type")==="category"}function S9(e,t,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;TNe(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(F(i,function(b,_){Je(b)&&(i[_]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,p=0;F(i,function(b){b.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function TNe(e){return!y9(e.schema)}function os(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function EA(e,t){return os(e,t)?e.getCalculationInfo("stackResultDimension"):t}function MNe(e,t){var n=e.get("coordinateSystem"),r=Wd.get(n),a;return t&&t.coordSysDims&&(a=Oe(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=J0(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function kNe(e,t,n){var r,a;return n&&F(e,function(i,o){var s=i.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(e[r].otherDims.itemName=0),r}function Io(e,t,n){n=n||{};var r=t.getSourceManager(),a,i=!1;e?(i=!0,a=fA(e)):(a=r.getSource(),i=a.sourceFormat===vi);var o=CNe(t),s=MNe(t,o),l=n.useEncodeDefaulter,u=ut(l)?l:l?xt(oW,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=jd(a,c),d=kNe(f.dimensions,n.createInvertedIndices,o),h=i?null:r.getSharedDataStore(f),v=S9(t,{schema:f,store:h}),p=new Or(f,t);p.setCalculationInfo(v);var g=d!=null&&ANe(a)?function(m,b,_,w){return w===d?_:this.defaultDimValueGetter(m,b,_,w)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function ANe(e){if(e.sourceFormat===vi){var t=ENe(e.data||[]);return!Re(Ld(t))}}function ENe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var C9=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}();C1(C9);const gs=C9;var INe=0,DNe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++INe}return e.createByAxisModel=function(t){var n=t.option,r=n.data,a=r&&Oe(r,PNe);return new e({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!Je(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var a=this._getOrCreateMap();return n=a.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,a.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ot(this.categories))},e}();function PNe(e){return ht(e)&&e.value!=null?e.value:e+""}const A2=DNe;function E2(e){return e.type==="interval"||e.type==="log"}function LNe(e,t,n,r){var a={},i=e[1]-e[0],o=a.interval=Rk(i/t,!0);n!=null&&o<n&&(o=a.interval=n),r!=null&&o>r&&(o=a.interval=r);var s=a.intervalPrecision=x9(o),l=a.niceTickExtent=[Rn(Math.ceil(e[0]/o)*o,s),Rn(Math.floor(e[1]/o)*o,s)];return RNe(l,e),a}function Gw(e){var t=Math.pow(10,S1(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Rn(n*t)}function x9(e){return Ei(e)+2}function QO(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function RNe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),QO(e,0,t),QO(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function U1(e,t){return e>=t[0]&&e<=t[1]}function Y1(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function j1(e,t){return e*(t[1]-t[0])+t[0]}var T9=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new A2({})),Re(a)&&(a=new A2({categories:Oe(a,function(i){return ht(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:Je(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),U1(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),Y1(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(j1(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o<l;++o){var u=r[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},t.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[r];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},t.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(gs);gs.registerClass(T9);const IA=T9;var lu=Rn,M9=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return U1(n,this._extent)},t.prototype.normalize=function(n){return Y1(n,this._extent)},t.prototype.scale=function(n){return j1(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=x9(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:lu(i[0]-r,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=lu(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:lu(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=lu(l.value+(u+1)*d);h>i[0]&&h<i[1]&&c.push(h),u++}a.push(c)}return a},t.prototype.getLabel=function(n,r){if(n==null)return"";var a=r&&r.precision;a==null?a=Ei(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=lu(n.value,a,!0);return rA(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=LNe(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]=lu(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=lu(Math.ceil(r[1]/o)*o))},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t}(gs);gs.registerClass(M9);const _l=M9;var k9=typeof Float32Array<"u",ONe=k9?Float32Array:Array;function fo(e){return Re(e)?k9?new Float32Array(e):e:new ONe(e)}var I2="__ec_stack_";function DA(e){return e.get("stack")||I2+e.seriesIndex}function PA(e){return e.dim+e.index}function $Ne(e){var t=[],n=e.axis,r="axis0";if(n.type==="category"){for(var a=n.getBandWidth(),i=0;i<e.count;i++)t.push(ft({bandWidth:a,axisKey:r,stackId:I2+i},e));for(var o=I9(t),s=[],i=0;i<e.count;i++){var l=o[r][I2+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function A9(e,t){var n=[];return t.eachSeriesByType(e,function(r){L9(r)&&n.push(r)}),n}function NNe(e){var t={};F(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),p=0,g=v.count();p<g;++p){var m=v.get(h,p);t[d]?t[d].push(m):t[d]=[m]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}n[r]=i}}return n}function E9(e){var t=NNe(e),n=[];return F(e,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=qe(r.get("barWidth"),s),p=qe(r.get("barMaxWidth"),s),g=qe(r.get("barMinWidth")||(R9(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:PA(i),stackId:DA(r)})}),I9(n)}function I9(e){var t={};F(e,function(r,a){var i=r.axisKey,o=r.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var v=r.barCategoryGap;v!=null&&(s.categoryGap=v)});var n={};return F(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Gt(i).length;s=Math.max(35-l*4,15)+"%"}var u=qe(s,o),c=qe(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),F(i,function(m){var b=m.maxWidth,_=m.minWidth;if(m.width){var w=m.width;b&&(w=Math.min(w,b)),_&&(w=Math.max(w,_)),m.width=w,f-=w+c*w,d--}else{var w=h;b&&b<w&&(w=Math.min(b,f)),_&&_>w&&(w=_),w!==h&&(m.width=w,f-=w+c*w,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,p;F(i,function(m,b){m.width||(m.width=h),p=m,v+=m.width*(1+c)}),p&&(v-=p.width*c);var g=-v/2;F(i,function(m,b){n[a][b]=n[a][b]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),n}function BNe(e,t,n){if(e&&t){var r=e[PA(t)];return r!=null&&n!=null?r[DA(n)]:r}}function D9(e,t){var n=A9(e,t),r=E9(n);F(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=DA(a),u=r[PA(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function P9(e){return{seriesType:e,plan:Kd(),reset:function(t){if(L9(t)){var n=t.getData(),r=t.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=n.getDimensionIndex(n.mapDimension(i.dim)),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=t.get("showBackground",!0),u=n.mapDimension(i.dim),c=n.getCalculationInfo("stackResultDimension"),f=os(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=VNe(a,i),v=R9(t),p=t.get("barMinHeight")||0,g=c&&n.getDimensionIndex(c),m=n.getLayout("size"),b=n.getLayout("offset");return{progress:function(_,w){for(var C=_.count,S=v&&fo(C*3),x=v&&l&&fo(C*3),T=v&&fo(C),M=r.master.getRect(),A=d?M.width:M.height,k,E=w.getStore(),D=0;(k=_.next())!=null;){var L=E.get(f?g:o,k),B=E.get(s,k),N=h,O=void 0;f&&(O=+L-E.get(o,k));var $=void 0,I=void 0,z=void 0,G=void 0;if(d){var U=r.dataToPoint([L,B]);if(f){var Z=r.dataToPoint([O,B]);N=Z[0]}$=N,I=U[1]+b,z=U[0]-N,G=m,Math.abs(z)<p&&(z=(z<0?-1:1)*p)}else{var U=r.dataToPoint([B,L]);if(f){var Z=r.dataToPoint([B,O]);N=Z[1]}$=U[0]+b,I=N,z=m,G=U[1]-N,Math.abs(G)<p&&(G=(G<=0?-1:1)*p)}v?(S[D]=$,S[D+1]=I,S[D+2]=d?z:G,x&&(x[D]=d?M.x:$,x[D+1]=d?I:M.y,x[D+2]=A),T[k]=k):w.setItemLayout(k,{x:$,y:I,width:z,height:G}),D+=3}v&&w.setLayout({largePoints:S,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:d})}}}}}}function L9(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function R9(e){return e.pipelineContext&&e.pipelineContext.large}function VNe(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var zNe=function(e,t,n,r){for(;n<r;){var a=n+r>>>1;e[a][1]<t?n=a+1:r=a}return n},O9=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="time",r}return t.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return yg(n.value,WR[iRe(Vf(this._minLevelUnit))]||WR.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return oRe(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=YNe(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]-=Xa,r[1]+=Xa),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]-Xa}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=Em.length,l=Math.min(zNe(Em,this._approxInterval,0,s),s-1);this._interval=Em[l][1],this._minLevelUnit=Em[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Qt(n)?n:+Oa(n)},t.prototype.contain=function(n){return U1(this.parse(n),this._extent)},t.prototype.normalize=function(n){return Y1(this.parse(n),this._extent)},t.prototype.scale=function(n){return j1(n,this._extent)},t.type="time",t}(_l),Em=[["second",eA],["minute",tA],["hour",xv],["quarter-day",xv*6],["half-day",xv*12],["day",Xa*1.2],["half-week",Xa*3.5],["week",Xa*7],["month",Xa*31],["quarter",Xa*95],["half-year",GR/2],["year",GR]];function FNe(e,t,n,r){var a=Oa(t),i=Oa(n),o=function(v){return KR(a,v,r)===KR(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 HNe(e,t){return e/=Xa,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function GNe(e){var t=30*Xa;return e/=t,e>6?6:e>3?3:e>2?2:1}function WNe(e){return e/=xv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function e$(e,t){return e/=t?tA:eA,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function KNe(e){return Rk(e,!0)}function UNe(e,t,n){var r=new Date(e);switch(Vf(t)){case"year":case"month":r[YG(n)](0);case"day":r[jG(n)](1);case"hour":r[qG(n)](0);case"minute":r[XG(n)](0);case"second":r[ZG(n)](0),r[JG(n)](0)}return r.getTime()}function YNe(e,t,n,r){var a=1e4,i=KG,o=0;function s(A,k,E,D,L,B,N){for(var O=new Date(k),$=k,I=O[D]();$<E&&$<=r[1];)N.push({value:$}),I+=A,O[L](I),$=O.getTime();N.push({value:$,notAdd:!0})}function l(A,k,E){var D=[],L=!k.length;if(!FNe(Vf(A),r[0],r[1],n)){L&&(k=[{value:UNe(new Date(r[0]),A,n)},{value:r[1]}]);for(var B=0;B<k.length-1;B++){var N=k[B].value,O=k[B+1].value;if(N!==O){var $=void 0,I=void 0,z=void 0,G=!1;switch(A){case"year":$=Math.max(1,Math.round(t/Xa/365)),I=nA(n),z=sRe(n);break;case"half-year":case"quarter":case"month":$=GNe(t),I=zf(n),z=YG(n);break;case"week":case"half-week":case"day":$=HNe(t),I=O1(n),z=jG(n),G=!0;break;case"half-day":case"quarter-day":case"hour":$=WNe(t),I=Tp(n),z=qG(n);break;case"minute":$=e$(t,!0),I=$1(n),z=XG(n);break;case"second":$=e$(t,!1),I=N1(n),z=ZG(n);break;case"millisecond":$=KNe(t),I=B1(n),z=JG(n);break}s($,N,O,I,z,G,D),A==="year"&&E.length>1&&B===0&&E.unshift({value:E[0].value-$})}}for(var B=0;B<D.length;B++)E.push(D[B]);return D}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var v=Vf(i[h]);if(aRe(i[h])){l(i[h],u[u.length-1]||[],c);var p=i[h+1]?Vf(i[h+1]):null;if(v!==p){if(c.length){d=f,c.sort(function(A,k){return A.value-k.value});for(var g=[],m=0;m<c.length;++m){var b=c[m].value;(m===0||c[m-1].value!==b)&&(g.push(c[m]),b>=r[0]&&b<=r[1]&&f++)}var _=(r[1]-r[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===i[h]))break}c=[]}}}for(var w=ln(Oe(u,function(A){return ln(A,function(k){return k.value>=r[0]&&k.value<=r[1]&&!k.notAdd})}),function(A){return A.length>0}),C=[],S=w.length-1,h=0;h<w.length;++h)for(var x=w[h],T=0;T<x.length;++T)C.push({value:x[T].value,level:S-h});C.sort(function(A,k){return A.value-k.value});for(var M=[],h=0;h<C.length;++h)(h===0||C[h].value!==C[h-1].value)&&M.push(C[h]);return M}gs.registerClass(O9);const $9=O9;var t$=gs.prototype,kv=_l.prototype,jNe=Rn,qNe=Math.floor,XNe=Math.ceil,Im=Math.pow,bi=Math.log,LA=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new _l,n._interval=0,n}return t.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,i=r.getExtent(),o=kv.getTicks.call(this,n);return Oe(o,function(s){var l=s.value,u=Rn(Im(this.base,l));return u=l===a[0]&&this._fixMin?Dm(u,i[0]):u,u=l===a[1]&&this._fixMax?Dm(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(n,r){var a=bi(this.base);n=bi(Math.max(0,n))/a,r=bi(Math.max(0,r))/a,kv.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=t$.getExtent.call(this);r[0]=Im(n,r[0]),r[1]=Im(n,r[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(r[0]=Dm(r[0],i[0])),this._fixMax&&(r[1]=Dm(r[1],i[1])),r},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=bi(n[0])/bi(r),n[1]=bi(n[1])/bi(r),t$.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=LH(a),o=n/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Rn(XNe(r[0]/i)*i),Rn(qNe(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){kv.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=bi(n)/bi(this.base),U1(n,this._extent)},t.prototype.normalize=function(n){return n=bi(n)/bi(this.base),Y1(n,this._extent)},t.prototype.scale=function(n){return n=j1(n,this._extent),Im(this.base,n)},t.type="log",t}(gs),N9=LA.prototype;N9.getMinorTicks=kv.getMinorTicks;N9.getLabel=kv.getLabel;function Dm(e,t){return jNe(e,Ei(t))}gs.registerClass(LA);const ZNe=LA;var JNe=function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var i=this._modelMinRaw=n.get("min",!0);ut(i)?this._modelMinNum=Pm(t,i({min:r[0],max:r[1]})):i!=="dataMin"&&(this._modelMinNum=Pm(t,i));var o=this._modelMaxRaw=n.get("max",!0);if(ut(o)?this._modelMaxNum=Pm(t,o({min:r[0],max:r[1]})):o!=="dataMax"&&(this._modelMaxNum=Pm(t,o)),a)this._axisDataLen=n.getCategories().length;else{var s=n.get("boundaryGap"),l=Re(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Fi(l[0],1),Fi(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,n=this._dataMin,r=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?a?0:NaN:n-i[0]*o),l==null&&(l=t?a?a-1:NaN:r+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=hd(s)||hd(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[e3e[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=QNe[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),QNe={min:"_determinedMin",max:"_determinedMax"},e3e={min:"_dataMin",max:"_dataMax"};function B9(e,t,n){var r=e.rawExtentInfo;return r||(r=new JNe(e,t,n),e.rawExtentInfo=r,r)}function Pm(e,t){return t==null?null:hd(t)?NaN:e.parse(t)}function V9(e,t){var n=e.type,r=B9(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=A9("bar",o),l=!1;if(F(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=E9(s),c=t3e(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function t3e(e,t,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=BNe(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;F(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;F(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function pc(e,t){var n=t,r=V9(e,n),a=r.extent,i=n.get("splitNumber");e instanceof ZNe&&(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 _g(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new IA({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new $9({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(gs.getClass(t)||_l)}}function n3e(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function wg(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(r){return function(a,i){return e.scale.getFormattedLabel(a,i,r)}}(t):Je(t)?function(r){return function(a){var i=e.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(t):ut(t)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r(RA(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function RA(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function r3e(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof IA?a=n.count():(r=n.getTicks(),a=r.length);var o=e.getLabelModel(),s=wg(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=a3e(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function a3e(e,t){var n=t*Math.PI/180,r=e.width,a=e.height,i=r*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),s=new Rt(e.x,e.y,i,o);return s}function OA(e){var t=e.get("interval");return t??"auto"}function z9(e){return e.type==="category"&&OA(e.getLabelModel())===0}function Q0(e,t){var n={};return F(e.mapDimensionsAll(t),function(r){n[EA(e,r)]=!0}),Gt(n)}function i3e(e,t,n){t&&F(Q0(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 qd=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function o3e(e){return Io(null,e)}var s3e={isDimensionStacked:os,enableDataStack:S9,getStackedDimension:EA};function l3e(e,t){var n=t;t instanceof dn||(n=new dn(t));var r=_g(n);return r.setExtent(e[0],e[1]),pc(r,n),r}function u3e(e){Vn(e,qd)}function c3e(e,t){return t=t||{},gn(e,null,null,t.state!=="normal")}const f3e=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:yNe,createList:o3e,createScale:l3e,createSymbol:Hn,createTextStyle:c3e,dataStack:s3e,enableHoverEmphasis:al,getECData:Tt,getLayoutRect:Xn,mixinAxisModelCommonMethods:u3e},Symbol.toStringTag,{value:"Module"}));var d3e=1e-8;function n$(e,t){return Math.abs(e-t)<d3e}function Mu(e,t,n){var r=0,a=e[0];if(!a)return!1;for(var i=1;i<e.length;i++){var o=e[i];r+=Vo(a[0],a[1],o[0],o[1],t,n),a=o}var s=e[0];return(!n$(a[0],s[0])||!n$(a[1],s[1]))&&(r+=Vo(a[0],a[1],s[0],s[1],t,n)),r!==0}var h3e=[];function Ww(e,t){for(var n=0;n<e.length;n++)hr(e[n],e[n],t)}function r$(e,t,n,r){for(var a=0;a<e.length;a++){var i=e[a];r&&(i=r.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(Wo(t,t,i),Ko(n,n,i))}}function v3e(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 F9=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}(),a$=function(){function e(t,n){this.type="polygon",this.exterior=t,this.interiors=n}return e}(),i$=function(){function e(t){this.type="linestring",this.points=t}return e}(),H9=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,n)||this;return i.type="geoJSON",i.geometries=r,i._center=a&&[a[0],a[1]],i}return t.prototype.calcCenter=function(){for(var n=this.geometries,r,a=0,i=0;i<n.length;i++){var o=n[i],s=o.exterior,l=s&&s.length;l>a&&(r=o,a=l)}if(r)return v3e(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return F(o,function(s){s.type==="polygon"?r$(s.exterior,a,i,n):F(s.points,function(l){r$(l,a,i,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new Rt(a[0],a[1],i[0]-a[0],i[1]-a[1]),n||(this._rect=r),r},t.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var i=0,o=a.length;i<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Mu(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(Mu(u[c],n[0],n[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new Rt(n,r,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(Ww(d.exterior,u),F(d.interiors,function(h){Ww(h,u)})):F(d.points,function(h){Ww(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}(F9),p3e=function(e){ge(t,e);function t(n,r){var a=e.call(this,n)||this;return a.type="geoSVG",a._elOnlyForCalculate=r,a}return t.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),a=[r.x+r.width/2,r.y+r.height/2],i=lg(h3e),o=n;o&&!o.isGeoSVGGraphicRoot;)go(i,o.getLocalTransform(),i),o=o.parent;return Tc(i,i),hr(a,a,i),a},t}(F9);function g3e(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n==null&&(n=1024);var r=t.features;return F(r,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=G9(s,o,n);break;case"Polygon":Kw(s,o,n);break;case"MultiLineString":Kw(s,o,n);break;case"MultiPolygon":F(s,function(l,u){return Kw(l,o[u],n)})}}),t.UTF8Encoding=!1,t}function Kw(e,t,n){for(var r=0;r<e.length;r++)e[r]=G9(e[r],t[r],n)}function G9(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 D2(e,t){return e=g3e(e),Oe(ln(e.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new a$(o[0],o.slice(1)));break;case"MultiPolygon":F(a.coordinates,function(l){l[0]&&i.push(new a$(l[0],l.slice(1)))});break;case"LineString":i.push(new i$([a.coordinates]));break;case"MultiLineString":i.push(new i$(a.coordinates))}var s=new H9(r[t||"name"],i,r.cp);return s.properties=r,s})}const m3e=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Qx,asc:Ia,getPercentWithPrecision:DDe,getPixelPrecision:Pk,getPrecision:Ei,getPrecisionSafe:DH,isNumeric:Ok,isRadianAroundZero:yp,linearMap:sn,nice:Rk,numericToNumber:xo,parseDate:Oa,quantile:Vy,quantity:LH,quantityExponent:S1,reformIntervals:e2,remRadian:Lk,round:Rn},Symbol.toStringTag,{value:"Module"})),y3e=Object.freeze(Object.defineProperty({__proto__:null,format:yg,parse:Oa},Symbol.toStringTag,{value:"Module"})),b3e=Object.freeze(Object.defineProperty({__proto__:null,Arc:I1,BezierCurve:vg,BoundingRect:Rt,Circle:Hi,CompoundPath:D1,Ellipse:E1,Group:bt,Image:vr,IncrementalDisplayable:DG,Line:ar,LinearGradient:Od,Polygon:ra,Polyline:ia,RadialGradient:Uk,Rect:Zt,Ring:hg,Sector:na,Text:Xt,clipPointsByRect:Xk,clipRectByRect:$G,createIcon:Nd,extendPath:RG,extendShape:LG,getShapeClass:P1,getTransform:il,initProps:xn,makeImage:jk,makePath:pg,mergePath:Ma,registerShape:hi,resizePath:qk,updateProps:nn},Symbol.toStringTag,{value:"Module"})),_3e=Object.freeze(Object.defineProperty({__proto__:null,addCommas:rA,capitalFirst:fRe,encodeHTML:Ur,formatTime:cRe,formatTpl:iA,getTextRect:lRe,getTooltipMarker:QG,normalizeCssArray:kc,toCamelCase:aA,truncateText:WH},Symbol.toStringTag,{value:"Module"})),w3e=Object.freeze(Object.defineProperty({__proto__:null,bind:et,clone:pt,curry:xt,defaults:ft,each:F,extend:Ie,filter:ln,indexOf:$t,inherits:Ck,isArray:Re,isFunction:ut,isObject:ht,isString:Je,map:Oe,merge:Dt,reduce:ci},Symbol.toStringTag,{value:"Module"}));var Dp=en();function S3e(e){return e.type==="category"?x3e(e):M3e(e)}function C3e(e,t){return e.type==="category"?T3e(e,t):{ticks:Oe(e.scale.getTicks(),function(n){return n.value})}}function x3e(e){var t=e.getLabelModel(),n=W9(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function W9(e,t){var n=K9(e,"labels"),r=OA(t),a=U9(n,r);if(a)return a;var i,o;return ut(r)?i=q9(e,r):(o=r==="auto"?k3e(e):r,i=j9(e,o)),Y9(n,r,{labels:i,labelCategoryInterval:o})}function T3e(e,t){var n=K9(e,"ticks"),r=OA(t),a=U9(n,r);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),ut(r))i=q9(e,r,!0);else if(r==="auto"){var s=W9(e,e.getLabelModel());o=s.labelCategoryInterval,i=Oe(s.labels,function(l){return l.tickValue})}else o=r,i=j9(e,o,!0);return Y9(n,r,{ticks:i,tickCategoryInterval:o})}function M3e(e){var t=e.scale.getTicks(),n=wg(e);return{labels:Oe(t,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function K9(e,t){return Dp(e)[t]||(Dp(e)[t]=[])}function U9(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Y9(e,t,n){return e.push({key:t,value:n}),n}function k3e(e){var t=Dp(e).autoInterval;return t??(Dp(e).autoInterval=e.calculateCategoryInterval())}function A3e(e){var t=E3e(e),n=wg(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=cg(n({value:l}),t.font,"center","top");v=g.width*1.3,p=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,p,7)}var m=d/c,b=h/f;isNaN(m)&&(m=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(m,b))),w=Dp(e.model),C=e.getExtent(),S=w.lastAutoInterval,x=w.lastTickCount;return S!=null&&x!=null&&Math.abs(S-_)<=1&&Math.abs(x-o)<=1&&S>_&&w.axisExtent0===C[0]&&w.axisExtent1===C[1]?_=S:(w.lastTickCount=o,w.lastAutoInterval=_,w.axisExtent0=C[0],w.axisExtent1=C[1]),_}function E3e(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 j9(e,t,n){var r=wg(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=z9(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 q9(e,t,n){var r=e.scale,a=wg(e),i=[];return F(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;t(o.value,s)&&i.push(n?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var o$=[0,1],I3e=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 Pk(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(),s$(r,a.count())),sn(t,o$,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),s$(r,a.count()));var i=sn(t,r,o$,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=C3e(this,n),a=r.ticks,i=Oe(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return D3e(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=Oe(r,function(i){return Oe(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return S3e(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 A3e(this)},e}();function s$(e,t){var n=e[1]-e[0],r=t,a=n/r/2;e[0]+=a,e[1]-=a}function D3e(e,t,n,r){var a=t.length;if(!e.onBand||n||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;F(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(r?t[0].coord=i[0]:t.shift()),r&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(r?o.coord=i[1]:t.pop()),r&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(h,v){return h=Rn(h),v=Rn(v),f?h>v:h<v}}const gi=I3e;function P3e(e){var t=Yt.extend(e);return Yt.registerClass(t),t}function L3e(e){var t=An.extend(e);return An.registerClass(t),t}function R3e(e){var t=_n.extend(e);return _n.registerClass(t),t}function O3e(e){var t=vn.extend(e);return vn.registerClass(t),t}var Mh=Math.PI*2,uu=To.CMD,$3e=["top","right","bottom","left"];function N3e(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 B3e(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)%Mh<1e-4)return l[0]=c,l[1]=f,u-n;if(i){var d=r;r=Ii(a),a=Ii(d)}else r=Ii(r),a=Ii(a);r>a&&(a+=Mh);var h=Math.atan2(s,o);if(h<0&&(h+=Mh),h>=r&&h<=a||h+Mh>=r&&h+Mh<=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 eb(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 X9(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 xi=[];function V3e(e,t,n){var r=X9(t.x,t.y,t.width,t.height,e.x,e.y,xi);return n.set(xi[0],xi[1]),r}function z3e(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 uu.M:i=c[h++],o=c[h++],r=i,a=o;break;case uu.L:p=eb(r,a,c[h],c[h+1],f,d,xi,!0),r=c[h++],a=c[h++];break;case uu.C:p=fH(r,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,xi),r=c[h++],a=c[h++];break;case uu.Q:p=hH(r,a,c[h++],c[h++],c[h],c[h+1],f,d,xi),r=c[h++],a=c[h++];break;case uu.A:var g=c[h++],m=c[h++],b=c[h++],_=c[h++],w=c[h++],C=c[h++];h+=1;var S=!!(1-c[h++]);s=Math.cos(w)*b+g,l=Math.sin(w)*_+m,h<=1&&(i=s,o=l);var x=(f-g)*_/b+g;p=B3e(g,m,_,w,w+C,S,x,d,xi),r=Math.cos(w+C)*b+g,a=Math.sin(w+C)*_+m;break;case uu.R:i=r=c[h++],o=a=c[h++];var T=c[h++],M=c[h++];p=X9(i,o,T,M,f,d,xi);break;case uu.Z:p=eb(r,a,i,o,f,d,xi,!0),r=i,a=o;break}p<u&&(u=p,n.set(xi[0],xi[1]))}return u}var Di=new Pt,yn=new Pt,Fn=new Pt,ho=new Pt,so=new Pt;function l$(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||$3e,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=a.anchor,c=e.getComputedTransform(),f=c&&Tc([],c),d=t.get("length2")||0;u&&Fn.copy(u);for(var h=0;h<o.length;h++){var v=o[h];N3e(v,0,s,Di,ho),Pt.scaleAndAdd(yn,Di,ho,d),yn.transform(f);var p=e.getBoundingRect(),g=u?u.distance(yn):e instanceof zt?z3e(yn,e.path,Fn):V3e(yn,p,Fn);g<l&&(l=g,yn.transform(c),Fn.transform(c),Fn.toArray(i[0]),yn.toArray(i[1]),Di.toArray(i[2]))}Z9(i,t.get("minTurnAngle")),n.setShape({points:i})}}}var tb=[],Kr=new Pt;function Z9(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Di.fromArray(e[0]),yn.fromArray(e[1]),Fn.fromArray(e[2]),Pt.sub(ho,Di,yn),Pt.sub(so,Fn,yn);var n=ho.len(),r=so.len();if(!(n<.001||r<.001)){ho.scale(1/n),so.scale(1/r);var a=ho.dot(so),i=Math.cos(t);if(i<a){var o=eb(yn.x,yn.y,Fn.x,Fn.y,Di.x,Di.y,tb,!1);Kr.fromArray(tb),Kr.scaleAndAdd(so,o/Math.tan(Math.PI-t));var s=Fn.x!==yn.x?(Kr.x-yn.x)/(Fn.x-yn.x):(Kr.y-yn.y)/(Fn.y-yn.y);if(isNaN(s))return;s<0?Pt.copy(Kr,yn):s>1&&Pt.copy(Kr,Fn),Kr.toArray(e[1])}}}}function F3e(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Di.fromArray(e[0]),yn.fromArray(e[1]),Fn.fromArray(e[2]),Pt.sub(ho,yn,Di),Pt.sub(so,Fn,yn);var r=ho.len(),a=so.len();if(!(r<.001||a<.001)){ho.scale(1/r),so.scale(1/a);var i=ho.dot(t),o=Math.cos(n);if(i<o){var s=eb(yn.x,yn.y,Fn.x,Fn.y,Di.x,Di.y,tb,!1);Kr.fromArray(tb);var l=Math.PI/2,u=Math.acos(so.dot(t)),c=l+u-n;if(c>=l)Pt.copy(Kr,Fn);else{Kr.scaleAndAdd(so,s/Math.tan(Math.PI/2-c));var f=Fn.x!==yn.x?(Kr.x-yn.x)/(Fn.x-yn.x):(Kr.y-yn.y)/(Fn.y-yn.y);if(isNaN(f))return;f<0?Pt.copy(Kr,yn):f>1&&Pt.copy(Kr,Fn)}Kr.toArray(e[1])}}}}function u$(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 H3e(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=Go(r[0],r[1]),i=Go(r[1],r[2]);if(!a||!i){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*n,s=gv([],r[1],r[0],o/a),l=gv([],r[1],r[2],o/i),u=gv([],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 $A(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<wp.length;l++){var u=wp[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:Lt(a.states[u]&&a.states[u].ignore,s);if(h||!Lt(d,o)){var v=f?r:r&&r.states[u];v&&(v.ignore=!0);continue}r||(r=new ia,e.setTextGuideLine(r),!f&&(s||!o)&&u$(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),u$(r,!1,u,c)}}if(r){ft(r.style,n),r.style.fill=null;var p=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,r.buildPath=H3e}}function NA(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<ta.length;r++){var a=ta[r];n[a]=e.getModel([a,t])}return n}function J9(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 N0(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 Q9(e,t,n,r,a,i){var o=e.length;if(o<2)return;e.sort(function(T,M){return T.rect[t]-M.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=h[t]+h[n]}c>0&&i&&C(-c/o,0,o);var p=e[0],g=e[o-1],m,b;_(),m<0&&S(-m,.8),b<0&&S(b,.8),_(),w(m,b,1),w(b,m,-1),_(),m<0&&x(-m),b<0&&x(b);function _(){m=p.rect[t]-r,b=a-g.rect[t]-g.rect[n]}function w(T,M,A){if(T<0){var k=Math.min(M,-T);if(k>0){C(k*A,0,o);var E=k+T;E<0&&S(-E*A,1)}else S(-T*A,1)}}function C(T,M,A){T!==0&&(u=!0);for(var k=M;k<A;k++){var E=e[k],D=E.rect;D[t]+=T,E.label[t]+=T}}function S(T,M){for(var A=[],k=0,E=1;E<o;E++){var D=e[E-1].rect,L=Math.max(e[E].rect[t]-D[t]-D[n],0);A.push(L),k+=L}if(k){var B=Math.min(Math.abs(T)/k,M);if(T>0)for(var E=0;E<o-1;E++){var N=A[E]*B;C(N,0,E+1)}else for(var E=o-1;E>0;E--){var N=A[E-1]*B;C(-N,E,o)}}}function x(T){var M=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(o-1)),k=0;k<o-1;k++)if(M>0?C(A,0,k+1):C(-A,o-k-1,o),T-=A,T<=0)return}return u}function G3e(e,t,n,r){return Q9(e,"x","width",t,n,r)}function e7(e,t,n,r){return Q9(e,"y","height",t,n,r)}function t7(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var n=new Rt(0,0,0,0);function r(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a<e.length;a++){var i=e[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;n.copy(i.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=i.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(n.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new N0(v.localRect,v.transform)),f||(f=new N0(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 W3e(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function K3e(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:W3e(r&&r.shape.points)}}var c$=["align","verticalAlign","width","height","fontSize"],zr=new Uo,Uw=en(),U3e=en();function Lm(e,t,n){for(var r=0;r<n.length;r++){var a=n[r];t[a]!=null&&(e[a]=t[a])}}var Rm=["x","y","rotation"],Y3e=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,n,r,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();Rt.applyTransform(c,c,u),u?zr.setLocalTransform(u):(zr.x=zr.y=zr.rotation=zr.originX=zr.originY=0,zr.scaleX=zr.scaleY=1),zr.rotation=Ii(zr.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();Rt.applyTransform(d,d,h)}var v=d&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:v,seriesModel:r,dataIndex:t,dataType:n,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:v&&v.ignore,x:zr.x,y:zr.y,scaleX:zr.scaleX,scaleY:zr.scaleY,rotation:zr.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var n=this;this._chartViewList.push(t);var r=t.__model,a=r.get("labelLayout");(ut(a)||Gt(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Tt(i);o&&!o.disableLabelLayout&&n._addLabel(s.dataIndex,s.dataType,r,o,a)})},e.prototype.updateLayoutConfig=function(t){var n=t.getWidth(),r=t.getHeight();function a(_,w){return function(){l$(_,w)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;ut(o.layoutOption)?c=o.layoutOption(K3e(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=qe(c.x,n),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=qe(c.y,r),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var v=Uw(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<c$.length;p++){var g=c$[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=J9(this._labelList),i=ln(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=ln(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});G3e(i,0,n),e7(o,0,r);var s=ln(a,function(l){return l.layoutOption.hideOverlap});t7(s)},e.prototype.processLabelsOverall=function(){var t=this;F(this._chartViewList,function(n){var r=n.__model,a=n.ignoreLabelLineUpdate,i=r.isAnimationEnabled();n.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Uw(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,r),i&&t._animateLabels(o,r)})})},e.prototype._updateLabelLine=function(t,n){var r=t.getTextContent(),a=Tt(t),i=a.dataIndex;if(r&&i!=null){var o=n.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");$A(t,NA(s),l),l$(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&&!Bf(t))){var i=Uw(r),o=i.oldLayout,s=Tt(t),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},c=n.getData(s.dataType);if(o){r.attr(o);var d=t.prevStates;d&&($t(d,"select")>=0&&r.attr(i.oldLayoutSelect),$t(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),nn(r,u,n,l)}else if(r.attr(u),!Vd(r).valueAnimation){var f=Lt(r.style.opacity,1);r.style.opacity=0,xn(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};Lm(h,u,Rm),Lm(h,r.states.select,Rm)}if(r.states.emphasis){var v=i.oldLayoutEmphasis={};Lm(v,u,Rm),Lm(v,r.states.emphasis,Rm)}FG(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=U3e(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),nn(a,{shape:p},n)):(a.setShape(p),a.style.strokePercent=0,xn(a,{style:{strokePercent:1}},n)),i.oldLayout=p}},e}();const j3e=Y3e;var Yw=en();function q3e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var a=Yw(n).labelManager;a||(a=Yw(n).labelManager=new j3e),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var a=Yw(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var jw=Math.sin,qw=Math.cos,n7=Math.PI,cu=Math.PI*2,X3e=180/n7,Z3e=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=js(f-cu)||(c?u>=cu:-u>=cu),h=u>0?u%cu:u%cu+cu,v=!1;d?v=!0:js(f)?v=!1:v=h>=n7==!!c;var p=t+r*qw(o),g=n+a*jw(o);this._start&&this._add("M",p,g);var m=Math.round(i*X3e);if(d){var b=1/this._p,_=(c?1:-1)*(cu-b);this._add("A",r,a,m,1,+c,t+r*qw(o+_),n+a*jw(o+_)),b>.01&&this._add("A",r,a,m,0,+c,p,g)}else{var w=t+r*qw(s),C=n+a*jw(s);this._add("A",r,a,m,+v,+c,w,C)}},e.prototype.rect=function(t,n,r,a){this._add("M",t,n),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,n,r,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}();const r7=Z3e;var Av="none",J3e=Math.round;function Q3e(e){var t=e.fill;return t!=null&&t!==Av}function e4e(e){var t=e.stroke;return t!=null&&t!==Av}var P2=["lineCap","miterLimit","lineJoin"],t4e=Oe(P2,function(e){return"stroke-"+e.toLowerCase()});function n4e(e,t,n,r){var a=t.opacity==null?1:t.opacity;if(n instanceof vr){e("opacity",a);return}if(Q3e(t)){var i=mp(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",Av);if(e4e(t)){var s=mp(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=yA(n),h=d[0],v=d[1];h&&(v=J3e(v||0),e("stroke-dasharray",h.join(",")),(v||r)&&e("stroke-dashoffset",v))}else r&&e("stroke-dasharray",Av);for(var p=0;p<P2.length;p++){var g=P2[p];if(r||t[g]!==O0[g]){var m=t[g]||O0[g];m&&e(t4e[p],m)}}}else r&&e("stroke",Av)}var a7="http://www.w3.org/2000/svg",i7="http://www.w3.org/1999/xlink",r4e="http://www.w3.org/2000/xmlns/",a4e="http://www.w3.org/XML/1998/namespace";function o7(e){return document.createElementNS(a7,e)}function ir(e,t,n,r,a){return{tag:e,attrs:n||{},children:r,text:a,key:t}}function i4e(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 o4e(e){return"</"+e+">"}function BA(e,t){t=t||{};var n=t.newline?`
  89. `:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return i4e(o,s)+(o!=="style"?Ur(l):l||"")+(i?""+n+Oe(i,function(u){return r(u)}).join(n)+n:"")+o4e(o)}return r(e)}function s4e(e,t,n){n=n||{};var r=n.newline?`
  90. `:"",a=" {"+r,i=r+"}",o=Oe(Gt(e),function(l){return l+a+Oe(Gt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+i}).join(r),s=Oe(Gt(t),function(l){return"@keyframes "+l+a+Oe(Gt(t[l]),function(u){return u+a+Oe(Gt(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(r)}function L2(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function f$(e,t,n,r){return ir("svg","root",{width:e,height:t,xmlns:a7,"xmlns:xlink":i7,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var d$={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"},pu="transform-origin";function l4e(e,t,n){var r=Ie({},e.shape);Ie(r,t),e.buildPath(n,r);var a=new r7;return a.reset(_H(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function u4e(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[pu]=n+"px "+r+"px")}var c4e={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function s7(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function f4e(e,t,n){var r=e.shape.paths,a={},i,o;if(F(r,function(l){var u=L2(n.zrId);u.animation=!0,q1(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Gt(c),h=d.length;if(h){o=d[h-1];var v=c[o];for(var p in v){var g=v[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var m in f){var b=f[m].animation;b.indexOf(o)>=0&&(i=b)}}}),!!i){t.d=!1;var s=s7(a,n);return i.replace(o,s)}}function h$(e){return Je(e)?d$[e]?"cubic-bezier("+d$[e]+")":kk(e)?e:"":""}function q1(e,t,n,r){var a=e.animators,i=a.length,o=[];if(e instanceof D1){var s=f4e(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=h$(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var v=f.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(c)}function p(b){var _=b[1],w=_.length,C={},S={},x={},T="animation-timing-function";function M(j,de,ve){for(var ie=j.getTracks(),W=j.getMaxTime(),X=0;X<ie.length;X++){var oe=ie[X];if(oe.needsAnimate()){var pe=oe.keyframes,Se=oe.propName;if(ve&&(Se=ve(Se)),Se)for(var me=0;me<pe.length;me++){var Ee=pe[me],Ce=Math.round(Ee.time/W*100)+"%",we=h$(Ee.easing),Te=Ee.rawValue;(Je(Te)||Qt(Te))&&(de[Ce]=de[Ce]||{},de[Ce][Se]=Ee.rawValue,we&&(de[Ce][T]=we))}}}}for(var A=0;A<w;A++){var k=_[A],E=k.targetName;E?E==="shape"&&M(k,S):!r&&M(k,C)}for(var D in C){var L={};TH(L,e),Ie(L,C[D]);var B=wH(L),N=C[D][T];x[D]=B?{transform:B}:{},u4e(x[D],L),N&&(x[D][T]=N)}var O,$=!0;for(var D in S){x[D]=x[D]||{};var I=!O,N=S[D][T];I&&(O=new To);var z=O.len();O.reset(),x[D].d=l4e(e,S[D],O);var G=O.len();if(!I&&z!==G){$=!1;break}N&&(x[D][T]=N)}if(!$)for(var D in x)delete x[D].d;if(!r)for(var A=0;A<w;A++){var k=_[A],E=k.targetName;E==="style"&&M(k,x,function(ie){return c4e[ie]})}for(var U=Gt(x),Z=!0,ae,A=1;A<U.length;A++){var J=U[A-1],Q=U[A];if(x[J][pu]!==x[Q][pu]){Z=!1;break}ae=x[J][pu]}if(Z&&ae){for(var D in x)x[D][pu]&&delete x[D][pu];t[pu]=ae}if(ln(U,function(j){return Gt(x[j]).length>0}).length){var ee=s7(x,n);return ee+" "+b[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var m=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+m]={animation:o.join(",")},t.class=m}}var Pp=Math.round;function l7(e){return e&&Je(e.src)}function u7(e){return e&&ut(e.toDataURL)}function VA(e,t,n,r){n4e(function(a,i){var o=a==="fill"||a==="stroke";o&&bH(i)?f7(t,e,a,r):o&&Ek(i)?d7(n,e,a,r):e[a]=i},t,n,!1),y4e(n,e,r)}function v$(e){return js(e[0]-1)&&js(e[1])&&js(e[2])&&js(e[3]-1)}function d4e(e){return js(e[4])&&js(e[5])}function zA(e,t,n){if(t&&!(d4e(t)&&v$(t))){var r=n?10:1e4;e.transform=v$(t)?"translate("+Pp(t[4]*r)/r+" "+Pp(t[5]*r)/r+")":KIe(t)}}function p$(e,t,n){for(var r=e.points,a=[],i=0;i<r.length;i++)a.push(Pp(r[i][0]*n)/n),a.push(Pp(r[i][1]*n)/n);t.points=a.join(" ")}function g$(e){return!e.smooth}function h4e(e){var t=Oe(e,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,a){for(var i=0;i<t.length;i++){var o=t[i],s=n[o[0]];s!=null&&(r[o[1]]=Pp(s*a)/a)}}}var v4e={circle:[h4e(["cx","cy","r"])],polyline:[p$,g$],polygon:[p$,g$]};function p4e(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName==="shape")return!0;return!1}function c7(e,t){var n=e.style,r=e.shape,a=v4e[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&_H(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](r))&&!(o&&p4e(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 r7),p.reset(u),d.rebuildPath(p,l),p.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),i.d=p.getStr()}return zA(i,e.transform),VA(i,n,e,t),t.animation&&q1(e,i,t),ir(s,e.id+"",i)}function g4e(e,t){var n=e.style,r=n.image;if(r&&!Je(r)&&(l7(r)?r=r.src:u7(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),zA(l,e.transform),VA(l,n,e,t),t.animation&&q1(e,l,t),ir("image",e.id+"",l)}}function m4e(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var a=n.font||gl,i=n.x||0,o=YIe(n.y||0,w1(a),n.textBaseline),s=UIe[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(aG(n)){var u="",c=n.fontStyle,f=rG(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||H6,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),zA(l,e.transform),VA(l,n,e,t),t.animation&&q1(e,l,t),ir("text",e.id+"",l,void 0,r)}}function m$(e,t){if(e instanceof zt)return c7(e,t);if(e instanceof vr)return g4e(e,t);if(e instanceof _p)return m4e(e,t)}function y4e(e,t,n){var r=e.style;if(jIe(r)){var a=qIe(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=mp(r.shadowColor),v=h.opacity,p=h.color,g=d/2/l,m=d/2/u,b=g+" "+m;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=ir("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ir("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:b,"flood-color":p,"flood-opacity":v})]),i[a]=o}t.filter=_1(o)}}function f7(e,t,n,r){var a=e[n],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(mH(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(yH(a))i="radialGradient",o.cx=Lt(a.x,.5),o.cy=Lt(a.y,.5),o.r=Lt(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=Gx(s[u].offset)*100+"%",d=s[u].color,h=mp(d),v=h.color,p=h.opacity,g={offset:f};g["stop-color"]=v,p<1&&(g["stop-opacity"]=p),l.push(ir("stop",u+"",g))}var m=ir(i,"",o,l),b=BA(m),_=r.gradientCache,w=_[b];w||(w=r.zrId+"-g"+r.gradientIdx++,_[b]=w,o.id=w,r.defs[w]=ir(i,w,o,l)),t[n]=_1(w)}function d7(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(gH(a)){var d=a.imageWidth,h=a.imageHeight,v=void 0,p=a.image;if(Je(p)?v=p:l7(p)?v=p.src:u7(p)&&(v=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Nr(d,g),Nr(h,g)}else if(d==null||h==null){var m=function(A,k){if(A){var E=A.elm,D=d||k.width,L=h||k.height;A.tag==="pattern"&&(u?(L=1,D/=i.width):c&&(D=1,L/=i.height)),A.attrs.width=D,A.attrs.height=L,E&&(E.setAttribute("width",D),E.setAttribute("height",L))}},b=Vk(v,null,e,function(A){l||m(S,A),m(f,A)});b&&b.width&&b.height&&(d=d||b.width,h=h||b.height)}f=ir("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=pt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var _,w;l?_=w=1:u?(w=1,_=o.width/i.width):c?(_=1,w=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),w!=null&&!isNaN(w)&&(o.height=w);var C=wH(a);C&&(o.patternTransform=C);var S=ir("pattern","",o,[f]),x=BA(S),T=r.patternCache,M=T[x];M||(M=r.zrId+"-p"+r.patternIdx++,T[x]=M,o.id=M,S=r.defs[M]=ir("pattern",M,o,[f])),t[n]=_1(M)}}function b4e(e,t,n){var r=n.clipPathCache,a=n.defs,i=r[e.id];if(!i){i=n.zrId+"-c"+n.clipPathIdx++;var o={id:i};r[e.id]=i,a[i]=ir("clipPath",i,o,[c7(e,n)])}t["clip-path"]=_1(i)}function y$(e){return document.createTextNode(e)}function ku(e,t,n){e.insertBefore(t,n)}function b$(e,t){e.removeChild(t)}function _$(e,t){e.appendChild(t)}function h7(e){return e.parentNode}function v7(e){return e.nextSibling}function Xw(e,t){e.textContent=t}var w$=58,_4e=120,w4e=ir("","");function R2(e){return e===void 0}function no(e){return e!==void 0}function S4e(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 jh(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function Lp(e){var t,n=e.children,r=e.tag;if(no(r)){var a=e.elm=o7(r);if(FA(w4e,e),Re(n))for(t=0;t<n.length;++t){var i=n[t];i!=null&&_$(a,Lp(i))}else no(e.text)&&!ht(e.text)&&_$(a,y$(e.text))}else e.elm=y$(e.text);return e.elm}function p7(e,t,n,r,a){for(;r<=a;++r){var i=n[r];i!=null&&ku(e,Lp(i),t)}}function nb(e,t,n,r){for(;n<=r;++n){var a=t[n];if(a!=null)if(no(a.tag)){var i=h7(a.elm);b$(i,a.elm)}else b$(e,a.elm)}}function FA(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)!==_4e?r.setAttribute(n,o):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(r4e,n,o):n.charCodeAt(3)===w$?r.setAttributeNS(a4e,n,o):n.charCodeAt(5)===w$?r.setAttributeNS(i7,n,o):r.setAttribute(n,o))}for(n in a)n in i||r.removeAttribute(n)}}function C4e(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]:jh(o,u)?(hf(o,u),o=t[++r],u=n[++a]):jh(s,c)?(hf(s,c),s=t[--i],c=n[--l]):jh(o,c)?(hf(o,c),ku(e,o.elm,v7(s.elm)),o=t[++r],c=n[--l]):jh(s,u)?(hf(s,u),ku(e,s.elm,o.elm),s=t[--i],u=n[++a]):(R2(f)&&(f=S4e(t,r,i)),d=f[u.key],R2(d)?ku(e,Lp(u),o.elm):(h=t[d],h.tag!==u.tag?ku(e,Lp(u),o.elm):(hf(h,u),t[d]=void 0,ku(e,h.elm,o.elm))),u=n[++a]);(r<=i||a<=l)&&(r>i?(v=n[l+1]==null?null:n[l+1].elm,p7(e,v,n,a,l)):nb(e,t,r,i))}function hf(e,t){var n=t.elm=e.elm,r=e.children,a=t.children;e!==t&&(FA(e,t),R2(t.text)?no(r)&&no(a)?r!==a&&C4e(n,r,a):no(a)?(no(e.text)&&Xw(n,""),p7(n,null,a,0,a.length-1)):no(r)?nb(n,r,0,r.length-1):no(e.text)&&Xw(n,""):e.text!==t.text&&(no(r)&&nb(n,r,0,r.length-1),Xw(n,t.text)))}function x4e(e,t){if(jh(e,t))hf(e,t);else{var n=e.elm,r=h7(n);Lp(t),r!==null&&(ku(r,t.elm,v7(n)),nb(r,[e],0,0))}return t}var T4e=0,M4e=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=S$(),this.configLayer=S$(),this.storage=n,this._opts=r=Ie({},r),this.root=t,this._id="zr"+T4e++,this._oldVNode=f$(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=o7("svg");FA(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",x4e(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return m$(t,L2(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=L2(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],s=this._bgVNode=k4e(r,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=ir("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=Oe(Gt(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(ir("defs","defs",{},u)),t.animation){var c=s4e(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=ir("style","stl",{},[],c);o.push(f)}}return f$(r,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},BA(this.renderToVNode({animation:Lt(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Lt(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,n,r){for(var a=t.length,i=[],o=0,s,l,u=0,c=0;c<a;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,h=d&&d.length||0,v=l&&l.length||0,p=void 0;for(p=Math.max(h-1,v-1);p>=0&&!(d&&l&&d[p]===l[p]);p--);for(var g=v-1;g>p;g--)o--,s=i[o-1];for(var m=p+1;m<h;m++){var b={};b4e(d[m],b,n);var _=ir("g","clip-g-"+u++,b,[]);(s?s.children:r).push(_),i[o++]=_,s=_}l=d;var w=m$(f,n);w&&(s?s.children:r).push(w)}}},e.prototype.resize=function(t,n){var r=this._opts,a=this.root,i=this._viewport;if(t!=null&&(r.width=t),n!=null&&(r.height=n),a&&i&&(i.style.display="none",t=Sf(a,0,r),n=Sf(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(Ek(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=ZIe(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},e}();function S$(e){return function(){}}function k4e(e,t,n,r){var a;if(n&&n!=="none")if(a=ir("rect","bg",{width:e,height:t,x:"0",y:"0",id:"0"}),bH(n))f7({fill:n},a.attrs,"fill",r);else if(Ek(n))d7({style:{fill:n},dirty:Nn,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",r);else{var i=mp(n),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const A4e=M4e;function E4e(e){e.registerPainter("svg",A4e)}function C$(e,t,n){var r=Vi.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",r.setAttribute("data-zr-dom-id",e)),r.width=a*n,r.height=i*n,r}var I4e=function(e){ge(t,e);function t(n,r,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||L0,typeof n=="string"?o=C$(n,r,a):ht(n)&&(o=n,n=o.id),i.id=n,i.dom=o;var s=o.style;return s&&(xk(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=C$("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,r,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Rt(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(o.length===0){var _=new Rt(0,0,0,0);_.copy(b),o.push(_)}else{for(var w=!1,C=1/0,S=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(b)){var M=new Rt(0,0,0,0);M.copy(T),M.union(b),o[x]=M,w=!0;break}else if(l){u.copy(b),u.union(T);var A=b.width*b.height,k=T.width*T.height,E=u.width*u.height,D=E-A-k;D<C&&(C=D,S=x)}}if(l&&(o[S].union(b),w=!0),!w){var _=new Rt(0,0,0,0);_.copy(b),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=n[f];if(d){var h=d.shouldBePainted(a,i,!0,!0),v=d.__isRendered&&(d.__dirty&Ta||!h)?d.getPrevPaintRect():null;v&&c(v);var p=h&&(d.__dirty&Ta||!d.__isRendered)?d.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],h=d.shouldBePainted(a,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var m=f+1;m<o.length;)o[f].intersect(o[m])?(g=!0,o[f].union(o[m]),o.splice(m,1)):m++;f++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(n,r){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=n+"px",o.height=r+"px"),i.width=n*a,i.height=r*a,s&&(s.width=n*a,s.height=r*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(n,r,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;r=r||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var h=this.domBack;function v(p,g,m,b){if(o.clearRect(p,g,m,b),r&&r!=="transparent"){var _=void 0;if(og(r)){var w=r.global||r.__width===m&&r.__height===b;_=w&&r.__canvasGradient||C2(o,r,{x:0,y:0,width:m,height:b}),r.__canvasGradient=_,r.__width=m,r.__height=b}else Y6(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,_=x2(o,r,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=_||r,o.fillRect(p,g,m,b),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,p,g,m,b),o.restore())}!a||u?v(0,0,s,l):a.length&&F(a,function(p){v(p.x*f,p.y*f,p.width*f,p.height*f)})},t}(di);const Zw=I4e;var x$=1e5,fu=314159,Om=.01,D4e=.001;function P4e(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function L4e(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 R4e=function(){function e(t,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=Ie({},r||{}),this.dpr=r.devicePixelRatio||L0,this._singleCanvas=i,this.root=t;var o=t.style;o&&(xk(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 Zw(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[fu]=h,h.zlevel=fu,s.push(fu),this._domRoot=t}else{this._width=Sf(t,0,r),this._height=Sf(t,1,r);var u=this._domRoot=L4e(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(x$)),i||(i=r.ctx,i.save()),Gu(i,s,a,o===n-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(x$)},e.prototype.paintOne=function(t,n){bA(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;Vx(function(){l._paintList(t,n,r,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(fu).ctx,n=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,n,r),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,n,r)})},e.prototype._doPaintList=function(t,n,r){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&i.push(u)}for(var c=!0,f=!1,d=function(p){var g=i[p],m=g.ctx,b=o&&g.createRepaintRects(t,n,h._width,h._height),_=r?g.__startIndex:g.__drawIndex,w=!r&&g.incremental&&Date.now,C=w&&Date.now(),S=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,S,b);else if(_===g.__startIndex){var x=t[_];(!x.incremental||!x.notClear||r)&&g.clear(!1,S,b)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,M=function(D){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=_;T<g.__endIndex;T++){var B=t[T];if(B.__inHover&&(f=!0),a._doPaintEl(B,g,o,D,L,T===g.__endIndex-1),w){var N=Date.now()-C;if(N>15)break}}L.prevElClipPaths&&m.restore()};if(b)if(b.length===0)T=g.__endIndex;else for(var A=h.dpr,k=0;k<b.length;++k){var E=b[k];m.save(),m.beginPath(),m.rect(E.x*A,E.y*A,E.width*A,E.height*A),m.clip(),M(E),m.restore()}else m.save(),M(),m.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<i.length;v++)d(v);return Jt.wxa&&F(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,n,r,a,i,o){var s=n.ctx;if(r){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Gu(s,t,i,o),t.setPrevPaintRect(l))}else Gu(s,t,i,o)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=fu);var r=this._layers[t];return r||(r=new Zw("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?Dt(r,this._layerConfig[t],!0):this._layerConfig[t-Om]&&Dt(r,this._layerConfig[t-Om],!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]&&P4e(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+D4e,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Om:0),this._needsManuallyCompositing),c.__builtin__||v1("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),i=c),a.__dirty&Ta&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,F(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?Dt(r[t],n,!0):r[t]=n;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+Om){var o=this._layers[i];Dt(o,r[t],!0)}}}},e.prototype.delLayer=function(t){var n=this._layers,r=this._zlevelList,a=n[t];a&&(a.dom.parentNode.removeChild(a.dom),delete n[t],r.splice($t(r,t),1))},e.prototype.resize=function(t,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),n!=null&&(a.height=n),t=Sf(i,0,a),n=Sf(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(fu).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[fu].dom;var n=new Zw("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];Gu(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 O4e=R4e;function $4e(e){e.registerPainter("canvas",O4e)}var N4e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){return Io(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new bt,a=Hn("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(a),a.setStyle(n.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=n.itemHeight*.8,u=Hn(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?o:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(_n);const B4e=N4e;function md(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=pd(e,t,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o<n.length;o++)i.push(pd(e,t,n[o]));return i.join(" ")}}function g7(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!Re(t))return t+"";for(var r=[],a=0;a<n.length;a++){var i=e.getDimensionIndex(n[a]);i>=0&&r.push(t[i])}return r.join(" ")}var V4e=function(e){ge(t,e);function t(n,r,a,i){var o=e.call(this)||this;return o.updateData(n,r,a,i),o}return t.prototype._createSymbol=function(n,r,a,i,o){this.removeAll();var s=Hn(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=z4e,this._symbolType=n,this.add(s)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){rs(this.childAt(0))},t.prototype.downplay=function(){as(this.childAt(0))},t.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},t.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},t.prototype.updateData=function(n,r,a,i){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):nn(d,h,s,r),Gi(d)}if(this._updateCommon(n,r,l,a,i),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,xn(d,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,a,i,o){var s=this.childAt(0),l=n.hostModel,u,c,f,d,h,v,p,g,m;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,m=i.cursorStyle,v=i.emphasisDisabled),!i||n.hasItemOption){var b=i&&i.itemModel?i.itemModel:n.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),p=lr(b),g=_.getShallow("scale"),m=b.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var C=Ac(n.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),m&&s.attr("cursor",m);var S=n.getItemVisual(r,"style"),x=S.fill;if(s instanceof vr){var T=s.style;s.useStyle(Ie({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else s.__isEmptyBrush?s.useStyle(Ie({},S)):s.useStyle(S),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var M=n.getItemVisual(r,"liftZ"),A=this._z2;M!=null?A==null&&(this._z2=s.z2,s.z2+=M):A!=null&&(s.z2=A,this._z2=null);var k=o&&o.useNameLabel;Tr(s,p,{labelFetcher:l,labelDataIndex:r,defaultText:E,inheritColor:x,defaultOpacity:S.opacity});function E(B){return k?n.getName(B):md(n,B)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var D=s.ensureState("emphasis");D.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;D.scaleX=this._sizeX*L,D.scaleY=this._sizeY*L,this.setSymbolScale(1),$n(this,d,h,v)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=Tt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&yl(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();yl(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Yd(n.getItemVisual(r,"symbolSize"))},t}(bt);function z4e(e,t){this.parent.drift(e,t)}const Sg=V4e;function Jw(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 T$(e){return e!=null&&!ht(e)&&(e={isIgnore:e}),e||{}}function M$(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:lr(t),cursorStyle:t.get("cursor")}}var F4e=function(){function e(t){this.group=new bt,this._SymbolCtor=t||Sg}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=T$(n);var r=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=M$(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(Jw(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(!Jw(t,v,f,n)){r.remove(h);return}var p=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)r.remove(h),h=new o(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var m={x:v[0],y:v[1]};s?h.attr(m):nn(h,m,a)}r.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var i=t._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=M$(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=T$(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(Jw(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){Rl(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 Cg=F4e;function m7(e,t,n){var r=e.getBaseAxis(),a=e.getOtherAxis(r),i=H4e(a,n),o=r.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=Oe(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return os(t,f[0])&&(d=!0,f[0]=h),os(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function H4e(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:Qt(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function y7(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 G4e(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 W4e(e,t,n,r,a,i,o,s){for(var l=G4e(e,t),u=[],c=[],f=[],d=[],h=[],v=[],p=[],g=m7(a,t,o),m=e.getLayout("points")||[],b=t.getLayout("points")||[],_=0;_<l.length;_++){var w=l[_],C=!0,S=void 0,x=void 0;switch(w.cmd){case"=":S=w.idx*2,x=w.idx1*2;var T=m[S],M=m[S+1],A=b[x],k=b[x+1];(isNaN(T)||isNaN(M))&&(T=A,M=k),u.push(T,M),c.push(A,k),f.push(n[S],n[S+1]),d.push(r[x],r[x+1]),p.push(t.getRawIndex(w.idx1));break;case"+":var E=w.idx,D=g.dataDimsForPoint,L=a.dataToPoint([t.get(D[0],E),t.get(D[1],E)]);x=E*2,u.push(L[0],L[1]),c.push(b[x],b[x+1]);var B=y7(g,a,t,E);f.push(B[0],B[1]),d.push(r[x],r[x+1]),p.push(t.getRawIndex(E));break;case"-":C=!1}C&&(h.push(w),v.push(v.length))}v.sort(function(J,Q){return p[J]-p[Q]});for(var N=u.length,O=fo(N),$=fo(N),I=fo(N),z=fo(N),G=[],_=0;_<v.length;_++){var U=v[_],Z=_*2,ae=U*2;O[Z]=u[ae],O[Z+1]=u[ae+1],$[Z]=c[ae],$[Z+1]=c[ae+1],I[Z]=f[ae],I[Z+1]=f[ae+1],z[Z]=d[ae],z[Z+1]=d[ae+1],G[_]=h[U]}return{current:O,next:$,stackedOnCurrent:I,stackedOnNext:z,status:G}}var As=Math.min,Es=Math.max;function tc(e,t){return isNaN(e)||isNaN(t)}function O2(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(tc(m,b)){if(l){p+=i;continue}break}if(p===n)e[i>0?"moveTo":"lineTo"](m,b),f=m,d=b;else{var _=m-u,w=b-c;if(_*_+w*w<.5){p+=i;continue}if(o>0){for(var C=p+i,S=t[C*2],x=t[C*2+1];S===m&&x===b&&g<r;)g++,C+=i,p+=i,S=t[C*2],x=t[C*2+1],m=t[p*2],b=t[p*2+1],_=m-u,w=b-c;var T=g+1;if(l)for(;tc(S,x)&&T<r;)T++,C+=i,S=t[C*2],x=t[C*2+1];var M=.5,A=0,k=0,E=void 0,D=void 0;if(T>=r||tc(S,x))h=m,v=b;else{A=S-u,k=x-c;var L=m-u,B=S-m,N=b-c,O=x-b,$=void 0,I=void 0;if(s==="x"){$=Math.abs(L),I=Math.abs(B);var z=A>0?1:-1;h=m-z*$*o,v=b,E=m+z*I*o,D=b}else if(s==="y"){$=Math.abs(N),I=Math.abs(O);var G=k>0?1:-1;h=m,v=b-G*$*o,E=m,D=b+G*I*o}else $=Math.sqrt(L*L+N*N),I=Math.sqrt(B*B+O*O),M=I/(I+$),h=m-A*o*(1-M),v=b-k*o*(1-M),E=m+A*o*M,D=b+k*o*M,E=As(E,Es(S,m)),D=As(D,Es(x,b)),E=Es(E,As(S,m)),D=Es(D,As(x,b)),A=E-m,k=D-b,h=m-A*$/I,v=b-k*$/I,h=As(h,Es(u,m)),v=As(v,Es(c,b)),h=Es(h,As(u,m)),v=Es(v,As(c,b)),A=m-h,k=b-v,E=m+A*I/$,D=b+k*I/$}e.bezierCurveTo(f,d,h,v,m,b),f=E,d=D}else e.lineTo(m,b)}u=m,c=b,p+=i}return g}var b7=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),K4e=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new b7},t.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&tc(a[o*2-2],a[o*2-1]);o--);for(;i<o&&tc(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=O2(n,a,i,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=To.CMD,s,l,u=r==="x",c=[],f=0;f<i.length;){var d=i[f++],h=void 0,v=void 0,p=void 0,g=void 0,m=void 0,b=void 0,_=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],v=i[f++],_=u?(n-s)/(h-s):(n-l)/(v-l),_<=1&&_>=0){var w=u?(v-l)*_+l:(h-s)*_+s;return u?[n,w]:[w,n]}s=h,l=v;break;case o.C:h=i[f++],v=i[f++],p=i[f++],g=i[f++],m=i[f++],b=i[f++];var C=u?I0(s,h,p,m,n,c):I0(l,v,g,b,n,c);if(C>0)for(var S=0;S<C;S++){var x=c[S];if(x<=1&&x>=0){var w=u?nr(l,v,g,b,x):nr(s,h,p,m,x);return u?[n,w]:[w,n]}}s=m,l=b;break}}},t}(zt),U4e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(b7),_7=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new U4e},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&&tc(a[s*2-2],a[s*2-1]);s--);for(;o<s&&tc(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=O2(n,a,o,s,s,1,r.smooth,l,r.connectNulls);O2(n,i,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,n.closePath()}},t}(zt);function w7(e,t,n,r,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=n.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var f=new Zt({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var p=ut(a)?function(g){a(g,f)}:null;xn(f,{shape:{width:l,height:u,x:o,y:s}},n,null,r,p)}return f}function S7(e,t,n){var r=e.getArea(),a=Rn(r.r0,1),i=Rn(r.r,1),o=new na({shape:{cx:Rn(e.cx,1),cy:Rn(e.cy,1),r0:a,r:i,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=r.startAngle:o.shape.r=a,xn(o,{shape:{endAngle:r.endAngle,r:i}},n)}return o}function X1(e,t,n,r,a){if(e){if(e.type==="polar")return S7(e,t,n);if(e.type==="cartesian2d")return w7(e,t,n,r,a)}else return null;return null}function Ec(e,t){return e.type===t}function k$(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function A$(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 E$(e,t){var n=A$(e),r=n[0],a=n[1],i=A$(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 I$(e){return Qt(e)?e:e?.5:0}function Y4e(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),a=fo(r*2),i=0;i<r;i++){var o=y7(n,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Is(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 j4e(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=Ak(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 q4e(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=t.getAxis(a),u=Oe(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=j4e(u,a==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,p=d[0].coord-v,g=d[h-1].coord+v,m=g-p;if(m<.001)return"transparent";F(d,function(_){_.offset=(_.coord-p)/m}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var b=new Od(0,0,0,0,d,!0);return b[a]=p,b[a+"2"]=g,b}}}function X4e(e,t,n){var r=e.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&Z4e(i,t))){var o=t.mapDimension(i.dim),s={};return F(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function Z4e(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(Sg.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function J4e(e,t){return isNaN(e)||isNaN(t)}function Q4e(e){for(var t=e.length/2;t>0&&J4e(e[t*2-2],e[t*2-1]);t--);return t-1}function D$(e,t){return[e[t*2],e[t*2+1]]}function eBe(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 C7(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<ta.length;t++)if(e.get([ta[t],"endLabel","show"]))return!0;return!1}function Qw(e,t,n,r){if(Ec(t,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=C7(r)?function(h,v){e._endLabelOnDuring(h,v,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=w7(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 S7(t,n,r)}function tBe(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 nBe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new bt,r=new Cg;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n},t.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem,s=this.group,l=n.getData(),u=n.getModel("lineStyle"),c=n.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,v=this._symbolDraw,p=this._polyline,g=this._polygon,m=this._lineGroup,b=!r.ssr&&n.isAnimationEnabled(),_=!c.isEmpty(),w=c.get("origin"),C=m7(o,l,w),S=_&&Y4e(o,l,C),x=n.get("showSymbol"),T=n.get("connectNulls"),M=x&&!d&&X4e(n,l,o),A=this._data;A&&A.eachItemGraphicEl(function(Q,ee){Q.__temp&&(s.remove(Q),A.setItemGraphicEl(ee,null))}),x||v.remove(),s.add(m);var k=d?!1:n.get("step"),E;o&&o.getArea&&n.get("clip",!0)&&(E=o.getArea(),E.width!=null?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var D=q4e(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&k===this._step))x&&v.updateData(l,{isIgnore:M,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Q){return[f[Q*2],f[Q*2+1]]}}),b&&this._initSymbolLabelAnimation(l,o,E),k&&(f=Is(f,o,k,T),S&&(S=Is(S,o,k,T))),p=this._newPolyline(f),_?g=this._newPolygon(f,S):g&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,vc(D)),m.setClipPath(Qw(this,o,!0,n));else{_&&!g?g=this._newPolygon(f,S):g&&!_&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,vc(D));var L=m.getClipPath();if(L){var B=Qw(this,o,!1,n);xn(L,{shape:B.shape},n)}else m.setClipPath(Qw(this,o,!0,n));x&&v.updateData(l,{isIgnore:M,clipShape:E,disableAnimation:!0,getSymbolPoint:function(Q){return[f[Q*2],f[Q*2+1]]}}),(!k$(this._stackedOnPoints,S)||!k$(this._points,f))&&(b?this._doUpdateAnimation(l,S,o,a,k,w,T):(k&&(f=Is(f,o,k,T),S&&(S=Is(S,o,k,T))),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:S})))}var N=n.getModel("emphasis"),O=N.get("focus"),$=N.get("blurScope"),I=N.get("disabled");if(p.useStyle(ft(u.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),xr(p,n,"lineStyle"),p.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var z=p.getState("emphasis").style;z.lineWidth=+p.style.lineWidth+1}Tt(p).seriesIndex=n.seriesIndex,$n(p,O,$,I);var G=I$(n.get("smooth")),U=n.get("smoothMonotone");if(p.setShape({smooth:G,smoothMonotone:U,connectNulls:T}),g){var Z=l.getCalculationInfo("stackedOnSeries"),ae=0;g.useStyle(ft(c.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Z&&(ae=I$(Z.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:ae,smoothMonotone:U,connectNulls:T}),xr(g,n,"areaStyle"),Tt(g).seriesIndex=n.seriesIndex,$n(g,O,$,I)}var J=function(Q){i._changePolyState(Q)};l.eachItemGraphicEl(function(Q){Q&&(Q.onHoverStateChange=J)}),this._polyline.onHoverStateChange=J,this._data=l,this._coordSys=o,this._stackedOnPoints=S,this._points=f,this._step=k,this._valueOrigin=w,n.get("triggerLineEvent")&&(this.packEventData(n,p),g&&this.packEventData(n,g))},t.prototype.packEventData=function(n,r){Tt(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,a,i){var o=n.getData(),s=fc(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 Sg(o,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else vn.prototype.highlight.call(this,n,r,a,i)},t.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=fc(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else vn.prototype.downplay.call(this,n,r,a,i)},t.prototype._changePolyState=function(n){var r=this._polygon;$0(this._polyline,n),r&&$0(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new K4e({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 _7({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(n,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=n.hostModel,c=u.get("animationDuration");ut(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ut(f)?f(null):f;n.eachItemGraphicEl(function(h,v){var p=h;if(p){var g=[h.x,h.y],m=void 0,b=void 0,_=void 0;if(a)if(o){var w=a,C=r.pointToCoord(g);i?(m=w.startAngle,b=w.endAngle,_=-C[1]/180*Math.PI):(m=w.r0,b=w.r,_=C[0])}else{var S=a;i?(m=S.x,b=S.x+S.width,_=h.x):(m=S.y+S.height,b=S.y,_=h.y)}var x=b===m?0:(_-m)/(b-m);l&&(x=1-x);var T=ut(f)?f(v):c*x+d,M=p.getSymbolPath(),A=M.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),M.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(C7(n)){var o=n.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Xt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Q4e(l);c>=0&&(Tr(s,lr(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?g7(o,h):md(o,f)},enableTextSetter:!0},tBe(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),v=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),m=g.isHorizontal(),b=g.inverse,_=r.shape,w=b?m?_.x:_.y+_.height:m?_.x+_.width:_.y,C=(m?p:0)*(b?-1:1),S=(m?0:-p)*(b?-1:1),x=m?"x":"y",T=eBe(f,w,x),M=T.range,A=M[1]-M[0],k=void 0;if(A>=1){if(A>1&&!h){var E=D$(f,M[0]);u.attr({x:E[0]+C,y:E[1]+S}),o&&(k=d.getRawValue(M[0]))}else{var E=c.getPointOn(w,x);E&&u.attr({x:E[0]+C,y:E[1]+S});var D=d.getRawValue(M[0]),L=d.getRawValue(M[1]);o&&(k=FH(a,v,D,L,T.t))}i.lastFrameIndex=M[0]}else{var B=n===1||i.lastFrameIndex>0?M[0]:0,E=D$(f,B);o&&(k=d.getRawValue(B)),u.attr({x:E[0]+C,y:E[1]+S})}if(o){var N=Vd(u);typeof N.setLabelText=="function"&&N.setLabelText(k)}}},t.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=W4e(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=Is(d.current,a,o,l),v=Is(d.stackedOnCurrent,a,o,l),p=Is(d.next,a,o,l),g=Is(d.stackedOnNext,a,o,l)),E$(h,p)>3e3||c&&E$(v,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var m={shape:{points:p}};d.current!==h&&(m.shape.__points=d.next),u.stopAnimation(),nn(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),nn(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=d.status,w=0;w<_.length;w++){var C=_[w].cmd;if(C==="="){var S=n.getItemGraphicEl(_[w].idx1);S&&b.push({el:S,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var x=u.shape.__points,T=0;T<b.length;T++){var M=b[T].el,A=b[T].ptIdx*2;M.x=x[A],M.y=x[A+1],M.markRedraw()}})},t.prototype.remove=function(n){var r=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(r.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(vn);const rBe=nBe;function xg(e,t){return{seriesType:e,plan:Kd(),reset:function(n){var r=n.getData(),a=n.coordinateSystem,i=n.pipelineContext,o=t||i.large;if(a){var s=Oe(a.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");os(r,s[0])&&(s[0]=u),os(r,s[1])&&(s[1]=u);var c=r.getStore(),f=r.getDimensionIndex(s[0]),d=r.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var p=h.end-h.start,g=o&&fo(p*l),m=[],b=[],_=h.start,w=0;_<h.end;_++){var C=void 0;if(l===1){var S=c.get(f,_);C=a.dataToPoint(S,null,b)}else m[0]=c.get(f,_),m[1]=c.get(d,_),C=a.dataToPoint(m,null,b);o?(g[w++]=C[0],g[w++]=C[1]):v.setItemLayout(_,C.slice())}o&&v.setLayout("points",g)}}}}}}var aBe={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]}},iBe=function(e){return Math.round(e.length/2)};function x7(e){return{seriesType:e,reset:function(t,n,r){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var v=void 0;Je(i)?v=aBe[i]:ut(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,v,iBe))}}}}}function oBe(e){e.registerChartView(rBe),e.registerSeriesModel(B4e),e.registerLayout(xg("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,x7("line"))}var T7=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return Io(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),s=i.dataToPoint(o);if(a)F(i.getAxes(),function(d,h){if(d.type==="category"&&r!=null){var v=d.getTicksCoords(),p=o[h],g=r[h]==="x1"||r[h]==="y1";if(g&&(p+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var m=void 0,b=void 0,_=1,w=0;w<v.length;w++){var C=v[w].coord,S=w===v.length-1?v[w-1].tickValue+_:v[w].tickValue;if(S===p){b=C;break}else if(S<p)m=C;else if(m!=null&&S>p){b=(C+m)/2;break}w===1&&(_=S-v[0].tickValue)}b==null&&(m?m&&(b=v[v.length-1].coord):b=v[0].coord),s[h]=d.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(_n);_n.registerClass(T7);const rb=T7;var sBe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return Io(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ol(rb.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}(rb);const lBe=sBe;var uBe=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}(),cBe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new uBe},t.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,h=Math.PI*2,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var p=Math.cos(c),g=Math.sin(c),m=Math.cos(f),b=Math.sin(f);v?(n.moveTo(p*o+a,g*o+i),n.arc(p*u+a,g*u+i,l,-Math.PI+c,c,!d)):n.moveTo(p*s+a,g*s+i),n.arc(a,i,s,c,f,!d),n.arc(m*u+a,b*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&n.arc(a,i,o,f,c,d)},t}(zt);const ab=cBe;function fBe(e,t){t=t||{};var n=t.isRoundCap;return function(r,a,i){var o=a.position;if(!o||o instanceof Array)return R0(r,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,v=(d+h)/2,p=u.startAngle,g=u.endAngle,m=(p+g)/2,b=n?Math.abs(d-h)/2:0,_=Math.cos,w=Math.sin,C=c+d*_(p),S=f+d*w(p),x="left",T="top";switch(s){case"startArc":C=c+(h-l)*_(m),S=f+(h-l)*w(m),x="center",T="top";break;case"insideStartArc":C=c+(h+l)*_(m),S=f+(h+l)*w(m),x="center",T="bottom";break;case"startAngle":C=c+v*_(p)+$m(p,l+b,!1),S=f+v*w(p)+Nm(p,l+b,!1),x="right",T="middle";break;case"insideStartAngle":C=c+v*_(p)+$m(p,-l+b,!1),S=f+v*w(p)+Nm(p,-l+b,!1),x="left",T="middle";break;case"middle":C=c+v*_(m),S=f+v*w(m),x="center",T="middle";break;case"endArc":C=c+(d+l)*_(m),S=f+(d+l)*w(m),x="center",T="bottom";break;case"insideEndArc":C=c+(d-l)*_(m),S=f+(d-l)*w(m),x="center",T="top";break;case"endAngle":C=c+v*_(g)+$m(g,l+b,!0),S=f+v*w(g)+Nm(g,l+b,!0),x="left",T="middle";break;case"insideEndAngle":C=c+v*_(g)+$m(g,-l+b,!0),S=f+v*w(g)+Nm(g,-l+b,!0),x="right",T="middle";break;default:return R0(r,a,i)}return r=r||{},r.x=C,r.y=S,r.align=x,r.verticalAlign=T,r}}function dBe(e,t,n,r){if(Qt(r)){e.setTextConfig({rotation:r});return}else if(Re(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function $m(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Nm(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Wu(e,t,n){var r=e.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;Re(r)||(r=[r,r,r,r]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Oe(r,function(i){return Fi(i,a)})}}var eS=Math.max,tS=Math.min;function hBe(e,t){var n=e.getArea&&e.getArea();if(Ec(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 vBe=function(e){ge(t,e);function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return t.prototype.render=function(n,r,a,i){this._model=n,this._removeOnRenderedListener(a),this._updateDrawMode(n);var o=n.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,a):this._renderNormal(n,r,a,i))},t.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},t.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},t.prototype.eachRendered=function(n){Rl(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=pBe(n,u);h&&this._enableRealtimeSort(h,s,a);var v=n.get("clip",!0)||h,p=hBe(u,s);o.removeClipPath();var g=n.get("roundCap",!0),m=n.get("showBackground",!0),b=n.getModel("backgroundStyle"),_=b.get("borderRadius")||0,w=[],C=this._backgroundEls,S=i&&i.isInitSort,x=i&&i.type==="changeAxisOrder";function T(k){var E=Bm[u.type](s,k),D=SBe(u,f,E);return D.useStyle(b.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",_):D.setShape("cornerRadius",_),w[k]=D,D}s.diff(l).add(function(k){var E=s.getItemModel(k),D=Bm[u.type](s,k,E);if(m&&T(k),!(!s.hasValue(k)||!$$[u.type](D))){var L=!1;v&&(L=P$[u.type](p,D));var B=L$[u.type](n,s,k,D,f,d,c.model,!1,g);h&&(B.forceLabelAnimation=!0),N$(B,s,k,E,D,n,f,u.type==="polar"),S?B.attr({shape:D}):h?R$(h,d,B,D,k,f,!1,!1):xn(B,{shape:D},n,k),s.setItemGraphicEl(k,B),o.add(B),B.ignore=L}}).update(function(k,E){var D=s.getItemModel(k),L=Bm[u.type](s,k,D);if(m){var B=void 0;C.length===0?B=T(E):(B=C[E],B.useStyle(b.getItemStyle()),u.type==="cartesian2d"?B.setShape("r",_):B.setShape("cornerRadius",_),w[k]=B);var N=Bm[u.type](s,k),O=k7(f,N,u);nn(B,{shape:O},d,k)}var $=l.getItemGraphicEl(E);if(!s.hasValue(k)||!$$[u.type](L)){o.remove($);return}var I=!1;if(v&&(I=P$[u.type](p,L),I&&o.remove($)),$?Gi($):$=L$[u.type](n,s,k,L,f,d,c.model,!!$,g),h&&($.forceLabelAnimation=!0),x){var z=$.getTextContent();if(z){var G=Vd(z);G.prevValue!=null&&(G.prevValue=G.value)}}else N$($,s,k,D,L,n,f,u.type==="polar");S?$.attr({shape:L}):h?R$(h,d,$,L,k,f,!0,x):nn($,{shape:L},n,k,null),s.setItemGraphicEl(k,$),$.ignore=I,o.add($)}).remove(function(k){var E=l.getItemGraphicEl(k);E&&Cp(E,n,k)}).execute();var M=this._backgroundGroup||(this._backgroundGroup=new bt);M.removeAll();for(var A=0;A<w.length;++A)M.add(w[A]);o.add(M),this._backgroundEls=w,this._data=s},t.prototype._renderLarge=function(n,r,a){this._clear(),V$(n,this.group),this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),V$(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&X1(n.coordinateSystem,!1,n),a=this.group;r?a.setClipPath(r):a.removeClipPath()},t.prototype._enableRealtimeSort=function(n,r,a){var i=this;if(r.count()){var o=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,a),this._isFirstFrame=!1;else{var s=function(l){var u=r.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(r,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(n,r,a){var i=[];return n.each(n.mapDimension(r.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Oe(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(n,r,a){for(var i=a.scale,o=n.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=n.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:r(n.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(n.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(n,r,a,i){if(this._isOrderChangedWithinSameData(n,r,a)){var o=this._dataSort(n,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(n,r,a){var i=r.baseAxis,o=this._dataSort(n,i,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){Cp(i,n,Tt(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(vn),P$={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=eS(t.x,e.x),s=tS(t.x+t.width,a),l=eS(t.y,e.y),u=tS(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=tS(t.r,e.r),i=eS(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}},L$={cartesian2d:function(e,t,n,r,a,i,o,s,l){var u=new Zt({shape:Ie({},r),z2:1});if(u.__dataIndex=n,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,n,r,a,i,o,s,l){var u=!a&&l?ab:na,c=new u({shape:r,z2:1});c.name="item";var f=M7(a);if(c.calculateTextPosition=fBe(f,{isRoundCap:u===ab}),i){var d=c.shape,h=a?"r":"endAngle",v={};d[h]=a?r.r0:r.startAngle,v[h]=r[h],(s?nn:xn)(c,{shape:v},i)}return c}};function pBe(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 R$(e,t,n,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?nn:xn)(n,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?nn:xn)(n,{shape:u},c,a)}function O$(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var gBe=["x","y","width","height"],mBe=["cx","cy","r","startAngle","endAngle"],$$={cartesian2d:function(e){return!O$(e,gBe)},polar:function(e){return!O$(e,mBe)}},Bm={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),a=n?bBe(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 yBe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function M7(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 N$(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=Wu(r.getModel("itemStyle"),c,!0);Ie(c,f),e.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=r.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=lr(r);Tr(e,v,{labelFetcher:i,labelDataIndex:n,defaultText:md(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,dBe(e,g==="outside"?h:g,M7(o),r.get(["label","rotate"]))}zG(p,v,i.getRawValue(n),function(b){return g7(t,b)});var m=r.getModel(["emphasis"]);$n(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),xr(e,r),yBe(a)&&(e.style.fill="none",e.style.stroke="none",F(e.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function bBe(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 _Be=function(){function e(){}return e}(),B$=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new _Be},t.prototype.buildPath=function(n,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],n.rect(s[0],s[1],l[0],l[1])},t}(zt);function V$(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 B$({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 B$({shape:{points:a.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(a.getVisual("style")),Tt(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",z$),f.on("mousemove",z$)),n&&n.push(f)}var z$=G1(function(e){var t=this,n=wBe(t,e.offsetX,e.offsetY);Tt(t).dataIndex=n>=0?n:null},30,!1);function wBe(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 k7(e,t,n){if(Ec(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 SBe(e,t,n){var r=e.type==="polar"?na:Zt;return new r({shape:k7(t,n,e),silent:!0,z2:0})}const CBe=vBe;function xBe(e){e.registerChartView(CBe),e.registerSeriesModel(lBe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,xt(D9,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,P9("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,x7("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 Vm=Math.PI*2,F$=Math.PI/180;function A7(e,t){return Xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function E7(e,t){var n=A7(e,t),r=e.get("center"),a=e.get("radius");Re(a)||(a=[0,a]);var i=qe(n.width,t.getWidth()),o=qe(n.height,t.getHeight()),s=Math.min(i,o),l=qe(a[0],s/2),u=qe(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(r);c=h[0]||0,f=h[1]||0}else Re(r)||(r=[r,r]),c=qe(r[0],i)+n.x,f=qe(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function TBe(e,t,n){t.eachSeriesByType(e,function(r){var a=r.getData(),i=a.mapDimension("value"),o=A7(r,n),s=E7(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*F$,h=r.get("minAngle")*F$,v=0;a.each(i,function(A){!isNaN(A)&&v++});var p=a.getSum(i),g=Math.PI/(p||v)*2,m=r.get("clockwise"),b=r.get("roseType"),_=r.get("stillShowZeroSum"),w=a.getDataExtent(i);w[0]=0;var C=Vm,S=0,x=d,T=m?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(A,k){var E;if(isNaN(A)){a.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:b?NaN:c});return}b!=="area"?E=p===0&&_?g:A*g:E=Vm/v,E<h?(E=h,C-=h):S+=A;var D=x+T*E;a.setItemLayout(k,{angle:E,startAngle:x,endAngle:D,clockwise:m,cx:l,cy:u,r0:f,r:b?sn(A,w,[f,c]):c}),x=D}),C<Vm&&v)if(C<=.001){var M=Vm/v;a.each(i,function(A,k){if(!isNaN(A)){var E=a.getItemLayout(k);E.angle=M,E.startAngle=d+T*k*M,E.endAngle=d+T*(k+1)*M}})}else g=C/S,x=d,a.each(i,function(A,k){if(!isNaN(A)){var E=a.getItemLayout(k),D=E.angle===h?h:A*g;E.startAngle=x,E.endAngle=x+T*D,x+=T*D}})})}function Tg(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 H$(e,t,n,r,a,i,o,s,l,u){if(e.length<2)return;function c(p){for(var g=p.rB,m=g*g,b=0;b<p.list.length;b++){var _=p.list[b],w=Math.abs(_.label.y-n),C=r+_.len,S=C*C,x=Math.sqrt((1-Math.abs(w*w/m))*S),T=t+(x+_.len2)*a,M=T-_.label.x,A=_.targetTextWidth-M*a;I7(_,A,!0),_.label.x=T}}function f(p){for(var g={list:[],maxY:0},m={list:[],maxY:0},b=0;b<p.length;b++)if(p[b].labelAlignTo==="none"){var _=p[b],w=_.label.y>n?m:g,C=Math.abs(_.label.y-n);if(C>=w.maxY){var S=_.label.x-t-_.len2*a,x=r+_.len,T=Math.abs(S)<x?Math.sqrt(C*C/(1-S*S/x/x)):x;w.rB=T,w.maxY=C}w.list.push(_)}c(g),c(m)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}e7(e,l,l+o)&&f(e)}function kBe(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;nS(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(!nS(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,I7(v,g)}}H$(u,t,n,r,1,a,i,o,s,f),H$(l,t,n,r,-1,a,i,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!nS(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",b=h.style.padding,_=b?b[1]+b[3]:0,w=h.style.backgroundColor?0:_,C=v.rect.width+w,S=p[1][0]-p[2][0];m?h.x<t?p[2][0]=o+v.edgeDistance+C+v.labelDistance:p[2][0]=o+a-v.edgeDistance-C-v.labelDistance:(h.x<t?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+S),p[1][1]=p[2][1]=h.y}}}function I7(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 nS(e){return e.position==="center"}function ABe(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(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var x in S.states)if(S.states[x].ignore===!1)return!0;return!1}t.each(function(S){var x=t.getItemGraphicEl(S),T=x.shape,M=x.getTextContent(),A=x.getTextGuideLine(),k=t.getItemModel(S),E=k.getModel("label"),D=E.get("position")||k.get(["emphasis","label","position"]),L=E.get("distanceToLabelLine"),B=E.get("alignTo"),N=qe(E.get("edgeDistance"),u),O=E.get("bleedMargin"),$=k.getModel("labelLine"),I=$.get("length");I=qe(I,u);var z=$.get("length2");if(z=qe(z,u),Math.abs(T.endAngle-T.startAngle)<o){F(M.states,h),M.ignore=!0,A&&(F(A.states,h),A.ignore=!0);return}if(v(M)){var G=(T.startAngle+T.endAngle)/2,U=Math.cos(G),Z=Math.sin(G),ae,J,Q,ee;r=T.cx,a=T.cy;var j=D==="inside"||D==="inner";if(D==="center")ae=T.cx,J=T.cy,ee="center";else{var de=(j?(T.r+T.r0)/2*U:T.r*U)+r,ve=(j?(T.r+T.r0)/2*Z:T.r*Z)+a;if(ae=de+U*3,J=ve+Z*3,!j){var ie=de+U*(I+l-T.r),W=ve+Z*(I+l-T.r),X=ie+(U<0?-1:1)*z,oe=W;B==="edge"?ae=U<0?c+N:c+u-N:ae=X+(U<0?-L:L),J=oe,Q=[[de,ve],[ie,W],[X,oe]]}ee=j?"center":B==="edge"?U>0?"right":"left":U>0?"left":"right"}var pe=Math.PI,Se=0,me=E.get("rotate");if(Qt(me))Se=me*(pe/180);else if(D==="center")Se=0;else if(me==="radial"||me===!0){var Ee=U<0?-G+pe:-G;Se=Ee}else if(me==="tangential"&&D!=="outside"&&D!=="outer"){var Ce=Math.atan2(U,Z);Ce<0&&(Ce=pe*2+Ce);var we=Z>0;we&&(Ce=pe+Ce),Se=Ce-pe}if(i=!!Se,M.x=ae,M.y=J,M.rotation=Se,M.setStyle({verticalAlign:"middle"}),j){M.setStyle({align:ee});var Be=M.states.select;Be&&(Be.x+=M.x,Be.y+=M.y)}else{var Te=M.getBoundingRect().clone();Te.applyTransform(M.getComputedTransform());var $e=(M.style.margin||0)+2.1;Te.y-=$e/2,Te.height+=$e,n.push({label:M,labelLine:A,position:D,len:I,len2:z,minTurnAngle:$.get("minTurnAngle"),maxSurfaceAngle:$.get("maxSurfaceAngle"),surfaceNormal:new Pt(U,Z),linePoints:Q,textAlign:ee,labelDistance:L,labelAlignTo:B,edgeDistance:N,bleedMargin:O,rect:Te,unconstrainedWidth:Te.width,labelStyleWidth:M.style.width})}x.setTextConfig({inside:j})}}),!i&&e.get("avoidLabelOverlap")&&kBe(n,r,a,l,u,d,c,f);for(var p=0;p<n.length;p++){var g=n[p],m=g.label,b=g.labelLine,_=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),_&&(F(m.states,h),m.ignore=!0);var w=m.states.select;w&&(w.x+=m.x,w.y+=m.y)}if(b){var C=g.linePoints;_||!C?(F(b.states,h),b.ignore=!0):(Z9(C,g.minTurnAngle),F3e(C,g.surfaceNormal,g.maxSurfaceAngle),b.setShape({points:C}),m.__hostTarget.textGuideLineConfig={anchor:new Pt(C[0][0],C[0][1])})}}}var EBe=function(e){ge(t,e);function t(n,r,a){var i=e.call(this)||this;i.z2=2;var o=new Xt;return i.setTextContent(o),i.updateData(n,r,a,!0),i}return t.prototype.updateData=function(n,r,a,i){var o=this,s=n.hostModel,l=n.getItemModel(r),u=l.getModel("emphasis"),c=n.getItemLayout(r),f=Ie(Wu(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(xn(o,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,xn(o,{shape:{r:c.r}},s,r)):a!=null?(o.setShape({startAngle:a,endAngle:a}),xn(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(o.shape.endAngle=c.startAngle,nn(o,{shape:{endAngle:c.endAngle}},s,r))}else Gi(o),nn(o,{shape:f},s,r);o.useStyle(n.getItemVisual(r,"style")),xr(o,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(h)*v,g=Math.sin(h)*v,m=l.getShallow("cursor");m&&o.attr("cursor",m),this._updateLabel(s,n,r),o.ensureState("emphasis").shape=Ie({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Wu(u.getModel("itemStyle"),c)),Ie(o.ensureState("select"),{x:p,y:g,shape:Wu(l.getModel(["select","itemStyle"]),c)}),Ie(o.ensureState("blur"),{shape:Wu(l.getModel(["blur","itemStyle"]),c)});var b=o.getTextGuideLine(),_=o.getTextContent();b&&Ie(b.ensureState("select"),{x:p,y:g}),Ie(_.ensureState("select"),{x:p,y:g}),$n(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,r,a){var i=this,o=r.getItemModel(a),s=o.getModel("labelLine"),l=r.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;Tr(i,lr(o),{labelFetcher:r.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:n.getFormattedLabel(a,"normal")||r.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=n.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ia,this.setTextGuideLine(h)),$A(this,NA(o),{stroke:u,opacity:Ri(s.get(["lineStyle","opacity"]),c,1)})}},t}(na),IBe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,a,i){var o=n.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&n.get("showEmptyCircle")){var d=new na({shape:E7(n,a)});d.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new EBe(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);Cp(v,n,h)}).execute(),ABe(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(vn);const DBe=IBe;function Xd(e,t,n){t=Re(t)&&{coordDimensions:t}||Ie({encodeDefine:e.getEncode()},t);var r=e.getSource(),a=jd(r,t).dimensions,i=new Or(a,e);return i.initData(r,n),i}var PBe=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 Mg=PBe;var LBe=en(),RBe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Mg(et(this.getData,this),et(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Xd(this,{coordDimensions:["value"],encodeDefaulter:xt(sA,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),a=LBe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=PH(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){cc(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(_n);const OBe=RBe;function $Be(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(Qt(o)&&!isNaN(o)&&o<0)})}}}function NBe(e){e.registerChartView(DBe),e.registerSeriesModel(OBe),KW("pie",e.registerAction),e.registerLayout(xt(TBe,"pie")),e.registerProcessor(Tg("pie")),e.registerProcessor($Be("pie"))}var BBe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return Io(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(_n);const VBe=BBe;var D7=4,zBe=function(){function e(){}return e}(),FBe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.getDefaultShape=function(){return new zBe},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]<D7,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<a.length;){var d=a[f++],h=a[f++];isNaN(d)||isNaN(h)||c&&!c.contain(d,h)||(s.x=d-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(n,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var n=this.shape,r=n.points,a=n.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(n,r){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<a.length;){var h=a[d++],v=a[d++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(v,u),f=Math.max(v,f)}n=this._rect=new Rt(l-o/2,u-s/2,c-l+o,f-u+s)}return n},t}(zt),HBe=function(){function e(){this.group=new bt}return e.prototype.updateData=function(t,n){this._clear();var r=this._create();r.setShape({points:t.getLayout("points")}),this._setCommon(r,t,n)},e.prototype.updateLayout=function(t){var n=t.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var a=(r.endIndex-r.startIndex)*2,i=r.startIndex*4*2;n=new Float32Array(n.buffer,i,a)}r.setShape("points",n),r.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,n,r){var a=this._newAdded[0],i=n.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=t.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,n,r)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new FBe({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,n,r){var a=n.hostModel;r=r||{};var i=n.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=r.clipShape||null,t.symbolProxy=Hn(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<D7;t.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Tt(t);u.seriesIndex=a.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const GBe=HBe;var WBe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.updateData(i,{clipShape:this._getClipShape(n)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(n,r,a){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},t.prototype.updateTransform=function(n,r,a){var i=n.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=xg("").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 GBe:new Cg,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(vn);const KBe=WBe;var UBe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Yt);const YBe=UBe;var $2=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Wn).models[0]},t.type="cartesian2dAxis",t}(Yt);Vn($2,qd);var P7={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)"]}}},jBe=Dt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},P7),HA=Dt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},P7),qBe=Dt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},HA),XBe=ft({logBase:10},HA);const L7={category:jBe,value:HA,time:qBe,log:XBe};var ZBe={value:1,category:1,time:1,log:1};function yd(e,t,n,r){F(ZBe,function(a,i){var o=Dt(Dt({},L7[i],!0),r,!0),s=function(l){ge(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Mp(this),h=d?Fd(c):{},v=f.getTheme();Dt(c,v.get(i+"Axis")),Dt(c,this.getDefaultOption()),c.type=G$(c),d&&bl(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=A2.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",G$)}function G$(e){return e.type||(e.data?"category":"value")}var JBe=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Oe(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ln(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e}();const QBe=JBe;var N2=["x","y"];function W$(e){return e.type==="interval"||e.type==="time"}var eVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=N2,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!W$(n)||!W$(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=Tc([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),s=new Rt(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(n,r,a){a=a||[];var i=n[0],o=n[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return hr(a,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},t.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(n[0]),u=i.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return hr(a,n,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(n[0]),r),a[1]=o.coordToData(o.toLocalCoord(n[1]),r),a},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(){var n=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1]),i=Math.min(r[0],r[1]),o=Math.max(n[0],n[1])-a,s=Math.max(r[0],r[1])-i;return new Rt(a,i,o,s)},t}(QBe),tVe=function(e){ge(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t}(gi);const nVe=tVe;function B2(e,t,n){n=n||{};var r=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(p,v[1]),v[0])}i.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),rr(n.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-m:m,i.z2=1,i}function K$(e){return e.get("coordinateSystem")==="cartesian2d"}function U$(e){var t={xAxisModel:null,yAxisModel:null};return F(t,function(n,r){var a=r.replace(/Model$/,""),i=e.getReferringComponents(a,Wn).models[0];t[r]=i}),t}var rS=Math.log;function R7(e,t,n){var r=_l.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=V9(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=rS(e.base);u=[rS(u[0])/d,rS(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=Gw(v),g=u[0]+v*o;else if(f)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=Gw(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=Gw(v));var b=v*o;g=Math.ceil(u[1]/v)*v,p=Rn(g-b),p<0&&u[0]>=0?(p=0,g=Rn(b)):g>0&&u[1]<=0&&(g=0,p=-Rn(b))}var _=(a[0].value-i[0].value)/s,w=(a[o].value-i[o].value)/s;r.setExtent.call(e,p+v*_,g+v*w),r.setInterval.call(e,v),(_||w)&&r.setNiceExtent.call(e,p+v,g-v)}var rVe=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=N2,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=Gt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],v=h.model,p=h.scale;E2(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(pc(p,v),E2(p)&&(s=h))}c.length&&(s||(s=c.pop(),pc(s.scale,s.model)),F(c,function(g){R7(g.scale,g.model,s.scale)}))}}a(r.x),a(r.y);var i={};F(r.x,function(o){Y$(r,"y",o,i)}),F(r.y,function(o){Y$(r,"x",o,i)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var a=t.getBoxLayoutParams(),i=!r&&t.get("containLabel"),o=Xn(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(F(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=r3e(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),F(this._coordsList,function(u){u.calcAffineTransform()});function l(){F(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),aVe(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}ht(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===n)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(r):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(r)):null},e.prototype.convertFromPixel=function(t,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(r):a.axis?a.axis.coordToData(a.axis.toLocalCoord(r)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",Wn).models[0],a=t.yAxisModel||n&&n.getReferringComponents("yAxis",Wn).models[0],i=t.gridModel,o=this._coordsList,s,l;if(n)s=n.coordinateSystem,$t(o,s)<0&&(s=null);else if(r&&a)s=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,F(s.x,function(c,f){F(s.y,function(d,h){var v="x"+f+"y"+h,p=new eVe(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(aS(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 nVe(c,_g(f),[0,0],f.get("type"),h),p=v.type==="category";v.onBand=p&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=i,v.index=d,i._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,n){F(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(K$(a)){var i=U$(a),o=i.xAxisModel,s=i.yAxisModel;if(!aS(o,n)||!aS(s,n))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(a,i){F(Q0(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return F(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);$t(n,i)<0&&n.push(i),$t(r,o)<0&&r.push(o)}),{baseAxes:n,otherAxes:r}},e.create=function(t,n){var r=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,n);o.name="grid_"+i,o.resize(a,n,!0),a.coordinateSystem=o,r.push(o)}),t.eachSeries(function(a){if(K$(a)){var i=U$(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),r},e.dimensions=N2,e}();function aS(e,t){return e.getCoordSysModel()===t}function Y$(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)j$(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&j$(a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function j$(e){return e&&e.type!=="category"&&e.type!=="time"&&n3e(e)}function aVe(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 iVe=rVe;var qs=Math.PI,nc=function(){function e(t,n){this.group=new bt,this.opt=n,this.axisModel=t,ft(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new bt({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!q$[t]},e.prototype.add=function(t){q$[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var a=Lk(n-t),i,o;return yp(a)?(o=r>0?"top":"bottom",i="center"):yp(a-qs)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a<qs?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}(),q$={axisLine:function(e,t,n,r){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(hr(s,s,o),hr(l,l,o));var c=Ie({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new ar({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});vd(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);Je(d)&&(d=[d,d]),(Je(h)||Qt(h))&&(h=[h,h]);var v=Ac(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];F([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,b){if(d[b]!=="none"&&d[b]!=null){var _=Hn(d[b],-p/2,-g/2,p,g,c.stroke,!0),w=m.r+m.offset,C=u?l:s;_.attr({rotation:m.rotate,x:C[0]+w*Math.cos(e.rotation),y:C[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),n.add(_)}})}}},axisTickLabel:function(e,t,n,r){var a=lVe(n,r,t,e),i=cVe(n,r,t,e);if(sVe(t,i,a),uVe(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=J9(Oe(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));t7(o)}},axisName:function(e,t,n,r){var a=rr(e.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,Z$(i)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*qs/180);var v;Z$(i)?d=nc.innerTextLayout(e.rotation,h??e.rotation,o):(d=oVe(e.rotation,i,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,b=rr(e.nameTruncateMaxWidth,g.maxWidth,v),_=new Xt({x:f[0],y:f[1],rotation:d.rotation,silent:nc.isLabelSilent(t),style:gn(s,{text:a,font:p,overflow:"truncate",width:b,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(Bd({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var w=nc.makeAxisEventDataBase(t);w.targetType="axisName",w.name=a,Tt(_).eventData=w}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function oVe(e,t,n,r){var a=Lk(n-e),i,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return yp(a-qs/2)?(o=l?"bottom":"top",i="center"):yp(a-qs*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<qs*1.5&&a>qs/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function sVe(e,t,n){if(!z9(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?(Ba(i),Ba(u)):X$(i,o)&&(r?(Ba(o),Ba(c)):(Ba(i),Ba(u))),a===!1?(Ba(s),Ba(f)):X$(l,s)&&(a?(Ba(l),Ba(d)):(Ba(s),Ba(f)))}}function Ba(e){e&&(e.ignore=!0)}function X$(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var a=lg([]);return Ll(a,a,-e.rotation),n.applyTransform(go([],a,e.getLocalTransform())),r.applyTransform(go([],a,t.getLocalTransform())),n.intersect(r)}}function Z$(e){return e==="middle"||e==="center"}function O7(e,t,n,r,a){for(var i=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,t&&(hr(o,o,t),hr(s,s,t));var c=new ar({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});vd(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function lVe(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=O7(u,t.transform,l,ft(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function uVe(e,t,n,r){var a=n.axis,i=n.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=r*i.get("length"),u=ft(s.getLineStyle(),ft(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=O7(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function cVe(e,t,n,r){var a=n.axis,i=rr(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=n.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(rr(r.labelRotate,o.get("rotate"))||0)*qs/180,c=nc.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=nc.isLabelSilent(n),v=n.get("triggerEvent");return F(l,function(p,g){var m=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,b=p.formattedLabel,_=p.rawLabel,w=o;if(f&&f[m]){var C=f[m];ht(C)&&C.textStyle&&(w=new dn(C.textStyle,o,n.ecModel))}var S=w.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=a.dataToCoord(m),T=new Xt({x,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:gn(w,{text:b,align:w.getShallow("align",!0)||c.textAlign,verticalAlign:w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,fill:ut(S)?S(a.type==="category"?_:a.type==="value"?m+"":m,g):S})});if(T.anid="label_"+m,v){var M=nc.makeAxisEventDataBase(n);M.targetType="axisLabel",M.value=_,M.tickIndex=g,a.type==="category"&&(M.dataIndex=m),Tt(T).eventData=M}t.add(T),T.updateTransform(),d.push(T),e.add(T),T.decomposeTransform()}),d}}const ss=nc;function fVe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return dVe(n,e,t),n.seriesInvolved&&vVe(n,e),n}function dVe(e,t,n){var r=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];F(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Rp(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(F(s.getAxes(),xt(p,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&F(v.baseAxes,xt(p,h?"cross":!0,d)),h&&F(v.otherAxes,xt(p,"cross",!1))}function p(g,m,b){var _=b.model.getModel("axisPointer",a),w=_.get("show");if(!(!w||w==="auto"&&!g&&!V2(_))){m==null&&(m=_.get("triggerTooltip")),_=g?hVe(b,f,a,t,g,m):_;var C=_.get("snap"),S=_.get("triggerEmphasis"),x=Rp(b.model),T=m||C||b.type==="category",M=e.axesInfo[x]={key:x,axis:b,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:S,involveSeries:T,snap:C,useHandle:V2(_),seriesModels:[],linkGroup:null};u[x]=M,e.seriesInvolved=e.seriesInvolved||T;var A=pVe(i,b);if(A!=null){var k=o[A]||(o[A]={axesInfo:{}});k.axesInfo[x]=M,k.mapper=i[A].mapper,M.linkGroup=k}}}})}function hVe(e,t,n,r,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};F(s,function(d){l[d]=pt(o.get(d))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&ft(u,f.textStyle)}}return e.model.getModel("axisPointer",new dn(l,n,r))}function vVe(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),i=n.get(["tooltip","show"],!0);!r||a==="none"||a===!1||a==="item"||i===!1||n.get(["axisPointer","show"],!0)===!1||F(e.coordSysAxesInfo[Rp(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 pVe(e,t){for(var n=t.model,r=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(iS(i[r+"AxisId"],n.id)||iS(i[r+"AxisIndex"],n.componentIndex)||iS(i[r+"AxisName"],n.name))return a}}function iS(e,t){return e==="all"||Re(e)&&$t(e,t)>=0||e===t}function gVe(e){var t=GA(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=V2(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 GA(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Rp(e)]}function mVe(e){var t=GA(e);return t&&t.axisPointerModel}function V2(e){return!!e.get(["handle","show"])}function Rp(e){return e.type+"||"+e.id}var J$={},yVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){this.axisPointerClass&&gVe(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=mVe(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){J$[n]=r},t.getAxisPointerClass=function(n){return n&&J$[n]},t.type="axis",t}(An);const Ic=yVe;var z2=en();function $7(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=z2(e).splitAreaColors,d=ot(),h=0;if(f)for(var v=0;v<u.length;v++){var p=f.get(u[v].tickValue);if(p!=null){h=(p+(c-1)*v)%c;break}}var g=a.toGlobalCoord(u[0].coord),m=o.getAreaStyle();s=Re(s)?s:[s];for(var v=1;v<u.length;v++){var b=a.toGlobalCoord(u[v].coord),_=void 0,w=void 0,C=void 0,S=void 0;a.isHorizontal()?(_=g,w=l.y,C=b-_,S=l.height,g=_+C):(_=l.x,w=g,C=l.width,S=b-w,g=w+S);var x=u[v-1].tickValue;x!=null&&d.set(x,h),t.add(new Zt({anid:x!=null?"area_"+x:null,shape:{x:_,y:w,width:C,height:S},style:ft({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}z2(e).splitAreaColors=d}}}function N7(e){z2(e).splitAreaColors=null}var bVe=["axisLine","axisTickLabel","axisName"],_Ve=["splitArea","splitLine","minorSplitLine"],B7=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,r,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new bt,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=B2(s,n),u=new ss(n,Ie({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(E2(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));F(bVe,u.add,u),this._axisGroup.add(u.getGroup()),F(_Ve,function(f){n.get([f,"show"])&&wVe[f](this,this._axisGroup,n,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||gg(o,this._axisGroup,n),e.prototype.render.call(this,n,r,a,i)}},t.prototype.remove=function(){N7(this)},t.type="cartesianAxis",t}(Ic),wVe={splitLine:function(e,t,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=Re(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:i}),d=[],h=[],v=o.getLineStyle(),p=0;p<f.length;p++){var g=a.toGlobalCoord(f[p].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var m=c++%s.length,b=f[p].tickValue,_=new ar({anid:b!=null?"line_"+f[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:ft({stroke:s[m]},v),silent:!0});vd(_.shape,v.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,n,r){var a=n.axis,i=n.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var p=a.toGlobalCoord(u[h][v].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p);var g=new ar({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});vd(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){$7(e,t,n,r)}},V7=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t}(B7),SVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=V7.type,n}return t.type="yAxis",t}(B7),CVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new Zt({shape:n.coordinateSystem.getRect(),style:ft({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(An),Q$={offset:0};function z7(e){e.registerComponentView(CVe),e.registerComponentModel(YBe),e.registerCoordinateSystem("cartesian2d",iVe),yd(e,"x",$2,Q$),yd(e,"y",$2,Q$),e.registerComponentView(V7),e.registerComponentView(SVe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function xVe(e){Bt(z7),e.registerSeriesModel(VBe),e.registerChartView(KBe),e.registerLayout(xg("scatter"))}function TVe(e){e.eachSeriesByType("radar",function(t){var n=t.getData(),r=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();F(i,function(o,s){n.each(n.mapDimension(i[s].dim),function(l,u){r[u]=r[u]||[];var c=a.dataToPoint(l,s);r[u][s]=eN(c)?c:tN(a)})}),n.each(function(o){var s=U6(r[o],function(l){return eN(l)})||tN(a);r[o].push(s.slice()),n.setItemLayout(o,r[o])})}})}function eN(e){return!isNaN(e[0])&&!isNaN(e[1])}function tN(e){return[e.cx,e.cy]}function MVe(e){var t=e.polar;if(t){Re(t)||(t=[t]);var n=[];F(t,function(r,a){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),e.radar=e.radar||[],Re(e.radar)||(e.radar=[e.radar]),e.radar.push(r)):n.push(r)}),e.polar=n}F(e.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var kVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=n.coordinateSystem,o=this.group,s=n.getData(),l=this._data;function u(d,h){var v=d.getItemVisual(h,"symbol")||"circle";if(v!=="none"){var p=Yd(d.getItemVisual(h,"symbolSize")),g=Hn(v,-1,-1,2,2),m=d.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:m*Math.PI/180||0}),g}}function c(d,h,v,p,g,m){v.removeAll();for(var b=0;b<h.length-1;b++){var _=u(p,g);_&&(_.__dimIdx=b,d[b]?(_.setPosition(d[b]),mg[m?"initProps":"updateProps"](_,{x:h[b][0],y:h[b][1]},n,g)):_.setPosition(h[b]),v.add(_))}}function f(d){return Oe(d,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var v=new ra,p=new ia,g={shape:{points:h}};v.shape.points=f(h),p.shape.points=f(h),xn(v,g,n,d),xn(p,g,n,d);var m=new bt,b=new bt;m.add(p),m.add(v),m.add(b),c(p.shape.points,h,b,s,d,!0),s.setItemGraphicEl(d,m)}}).update(function(d,h){var v=l.getItemGraphicEl(h),p=v.childAt(0),g=v.childAt(1),m=v.childAt(2),b={shape:{points:s.getItemLayout(d)}};b.shape.points&&(c(p.shape.points,b.shape.points,m,s,d,!1),Gi(g),Gi(p),nn(p,b,n),nn(g,b,n),s.setItemGraphicEl(d,v))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var v=s.getItemModel(h),p=d.childAt(0),g=d.childAt(1),m=d.childAt(2),b=s.getItemVisual(h,"style"),_=b.fill;o.add(d),p.useStyle(ft(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),xr(p,v,"lineStyle"),xr(g,v,"areaStyle");var w=v.getModel("areaStyle"),C=w.isEmpty()&&w.parentModel.isEmpty();g.ignore=C,F(["emphasis","select","blur"],function(T){var M=v.getModel([T,"areaStyle"]),A=M.isEmpty()&&M.parentModel.isEmpty();g.ensureState(T).ignore=A&&C}),g.useStyle(ft(w.getAreaStyle(),{fill:_,opacity:.7,decal:b.decal}));var S=v.getModel("emphasis"),x=S.getModel("itemStyle").getItemStyle();m.eachChild(function(T){if(T instanceof vr){var M=T.style;T.useStyle(Ie({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else T.useStyle(b),T.setColor(_),T.style.strokeNoScale=!0;var A=T.ensureState("emphasis");A.style=pt(x);var k=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(k==null||isNaN(k))&&(k=""),Tr(T,lr(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:k,inheritColor:_,defaultOpacity:b.opacity})}),$n(d,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(vn);const AVe=kVe;var EVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Mg(et(this.getData,this),et(this.getRawData,this))},t.prototype.getInitialData=function(n,r){return Xd(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=LW(this,n);return ur("section",{header:u,sortBlocks:!0,blocks:Oe(s,function(f){var d=i.get(i.mapDimension(f.dim),n);return ur("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},t.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),a=this.coordinateSystem,i=r.getValues(Oe(a.dimensions,function(u){return r.mapDimension(u)}),n),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(_n);const IVe=EVe;var kh=L7.value;function zm(e,t){return ft({show:t},e)}var DVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),h=Oe(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var p=l;v.color!=null&&(p=ft({color:v.color},l));var g=Dt(pt(v),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:d},!1);if(Je(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else ut(c)&&(g.name=c(g.name,g));var b=new dn(g,null,this.ecModel);return Vn(b,qd.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Dt({lineStyle:{color:"#bbb"}},kh.axisLine),axisLabel:zm(kh.axisLabel,!1),axisTick:zm(kh.axisTick,!1),splitLine:zm(kh.splitLine,!0),splitArea:zm(kh.splitArea,!0),indicator:[]},t}(Yt);const PVe=DVe;var LVe=["axisLine","axisTickLabel","axisName"],RVe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},t.prototype._buildAxes=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes(),i=Oe(a,function(o){var s=o.model.get("showName")?o.name:"",l=new ss(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});F(i,function(o){F(LVe,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=n.get("shape"),o=n.getModel("splitLine"),s=n.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),v=Re(d)?d:[d],p=Re(h)?h:[h],g=[],m=[];function b(B,N,O){var $=O%N.length;return B[$]=B[$]||[],$}if(i==="circle")for(var _=a[0].getTicksCoords(),w=r.cx,C=r.cy,S=0;S<_.length;S++){if(c){var x=b(g,v,S);g[x].push(new Hi({shape:{cx:w,cy:C,r:_[S].coord}}))}if(f&&S<_.length-1){var x=b(m,p,S);m[x].push(new hg({shape:{cx:w,cy:C,r0:_[S].coord,r:_[S+1].coord}}))}}else for(var T,M=Oe(a,function(B,N){var O=B.getTicksCoords();return T=T==null?O.length-1:Math.min(O.length-1,T),Oe(O,function($){return r.coordToPoint($.coord,N)})}),A=[],S=0;S<=T;S++){for(var k=[],E=0;E<a.length;E++)k.push(M[E][S]);if(k[0]&&k.push(k[0].slice()),c){var x=b(g,v,S);g[x].push(new ia({shape:{points:k}}))}if(f&&A){var x=b(m,p,S-1);m[x].push(new ra({shape:{points:k.concat(A)}}))}A=k.slice().reverse()}var D=l.getLineStyle(),L=u.getAreaStyle();F(m,function(B,N){this.group.add(Ma(B,{style:ft({stroke:"none",fill:p[N%p.length]},L),silent:!0}))},this),F(g,function(B,N){this.group.add(Ma(B,{style:ft({fill:"none",stroke:v[N%v.length]},D),silent:!0}))},this)},t.type="radar",t}(An);const OVe=RVe;var $Ve=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,n,r,a)||this;return i.type="value",i.angle=0,i.name="",i}return t}(gi);const NVe=$Ve;var BVe=function(){function e(t,n,r){this.dimensions=[],this._model=t,this._indicatorAxes=Oe(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new NVe(o,new _l);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(t,r)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(t),n)},e.prototype.coordToPoint=function(t,n){var r=this._indicatorAxes[n],a=r.angle,i=this.cx+t*Math.cos(a),o=this.cy-t*Math.sin(a);return[i,o]},e.prototype.pointToData=function(t){var n=t[0]-this.cx,r=t[1]-this.cy,a=Math.sqrt(n*n+r*r);n/=a,r/=a;for(var i=Math.atan2(-r,n),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(a))]},e.prototype.resize=function(t,n){var r=t.get("center"),a=n.getWidth(),i=n.getHeight(),o=Math.min(a,i)/2;this.cx=qe(r[0],a),this.cy=qe(r[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(Je(s)||Qt(s))&&(s=[0,s]),this.r0=qe(s[0],o),this.r=qe(s[1],o),F(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,n){var r=this._indicatorAxes,a=this._model;F(r,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();F(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new _l;o.setExtent(0,i),o.setInterval(1),F(r,function(s,l){R7(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 VVe=BVe;function zVe(e){e.registerCoordinateSystem("radar",VVe),e.registerComponentModel(PVe),e.registerComponentView(OVe),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 FVe(e){Bt(zVe),e.registerChartView(AVe),e.registerSeriesModel(IVe),e.registerLayout(TVe),e.registerProcessor(Tg("radar")),e.registerPreprocessor(MVe)}var nN="\0_ec_interaction_mutex";function HVe(e,t,n){var r=WA(e);r[t]=n}function GVe(e,t,n){var r=WA(e),a=r[t];a===n&&(r[t]=null)}function rN(e,t){return!!WA(e)[t]}function WA(e){return e[nN]||(e[nN]={})}Yi({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Nn);var WVe=function(e){ge(t,e);function t(n){var r=e.call(this)||this;r._zr=n;var a=et(r._mousedownHandler,r),i=et(r._mousemoveHandler,r),o=et(r._mouseupHandler,r),s=et(r._mousewheelHandler,r),l=et(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=ft(pt(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(n.on("mousedown",a),n.on("mousemove",i),n.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(n.on("mousewheel",s),n.on("pinch",l))},r.disable=function(){n.off("mousedown",a),n.off("mousemove",i),n.off("mouseup",o),n.off("mousewheel",s),n.off("pinch",l)},r}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(n){this.pointerChecker=n},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(n){if(!LL(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||!Yy("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||rN(this._zr,"globalPan"))){var r=n.offsetX,a=n.offsetY,i=this._x,o=this._y,s=r-i,l=a-o;this._x=r,this._y=a,this._opt.preventDefaultMouseMove&&ns(n.event),F7(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:i,oldY:o,newX:r,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(n){LL(n)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(n){var r=Yy("zoomOnMouseWheel",n,this._opt),a=Yy("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;oS(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);oS(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!rN(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;oS(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t}(di);function oS(e,t,n,r,a){e.pointerChecker&&e.pointerChecker(r,a.originX,a.originY)&&(ns(r.event),F7(e,t,n,r,a))}function F7(e,t,n,r,a){a.isAvailableBehavior=et(Yy,null,n,r),e.trigger(t,a)}function Yy(e,t,n){var r=n[e];return!e||r&&(!Je(r)||t.event[r+"Key"])}const kg=WVe;function KA(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function UA(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 KVe={axisPointer:1,tooltip:1,brush:1};function Z1(e,t,n){var r=t.getComponentByElement(e.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!KVe.hasOwnProperty(r.mainType)&&a&&a.model!==n}function H7(e){if(Je(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var sS,ib={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"},aN=Gt(ib),ob={"alignment-baseline":"textBaseline","stop-color":"stopColor"},iN=Gt(ob),UVe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=H7(t);this._defsUsePending=[];var a=new bt;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Sa(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;qVe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=J1(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=W7(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var h=a;a=new bt,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new Zt({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},e.prototype._parseNode=function(t,n,r,a,i,o){var s=t.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=n;else{if(!i){var c=sS[s];if(c&&nt(sS,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=oN[s];if(h&&nt(oN,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 _p({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Va(n,r),Sa(t,r,this._defsUsePending,!1,!1),YVe(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(){sS={g:function(t,n){var r=new bt;return Va(n,r),Sa(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new Zt;return Va(n,r),Sa(t,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(t,n){var r=new Hi;return Va(n,r),Sa(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),r.silent=!0,r},line:function(t,n){var r=new ar;return Va(n,r),Sa(t,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(t,n){var r=new E1;return Va(n,r),Sa(t,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(t,n){var r=t.getAttribute("points"),a;r&&(a=uN(r));var i=new ra({shape:{points:a||[]},silent:!0});return Va(n,i),Sa(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,n){var r=t.getAttribute("points"),a;r&&(a=uN(r));var i=new ia({shape:{points:a||[]},silent:!0});return Va(n,i),Sa(t,i,this._defsUsePending,!1,!1),i},image:function(t,n){var r=new vr;return Va(n,r),Sa(t,r,this._defsUsePending,!1,!1),r.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),r.silent=!0,r},text:function(t,n){var r=t.getAttribute("x")||"0",a=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new bt;return Va(n,s),Sa(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,n){var r=t.getAttribute("x"),a=t.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new bt;return Va(n,s),Sa(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(t,n){var r=t.getAttribute("d")||"",a=yG(r);return Va(n,a),Sa(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),oN={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 Od(t,n,r,a);return sN(e,i),lN(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 Uk(t,n,r);return sN(e,a),lN(e,a),a}};function sN(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function lN(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={};G7(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function Va(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),ft(t.__inheritedStyle,e.__inheritedStyle))}function uN(e){for(var t=J1(e),n=[],r=0;r<t.length;r+=2){var a=parseFloat(t[r]),i=parseFloat(t[r+1]);n.push([a,i])}return n}function Sa(e,t,n,r,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(JVe(e,t),G7(e,o,s),r||QVe(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=cN(i,"fill",o.fill,n)),o.stroke!=null&&(i.style.stroke=cN(i,"stroke",o.stroke,n)),F(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),F(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=Oe(J1(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function YVe(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 jVe=/^url\(\s*#(.*?)\)/;function cN(e,t,n,r){var a=n&&n.match(jVe);if(a){var i=Ja(a[1]);r.push([e,t,i]);return}return n==="none"&&(n=null),n}function qVe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var XVe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function J1(e){return e.match(XVe)||[]}var ZVe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,lS=Math.PI/180;function JVe(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],a=null;n.replace(ZVe,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=J1(o);switch(a=a||Ra(),s){case"translate":zi(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":b1(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ll(a,a,-parseFloat(l[0])*lS);break;case"skewX":var u=Math.tan(parseFloat(l[0])*lS);go(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*lS);go(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}t.setLocalTransform(a)}}var fN=/([^\s:;]+)\s*:\s*([^:;]+)/g;function G7(e,t,n){var r=e.getAttribute("style");if(r){fN.lastIndex=0;for(var a;(a=fN.exec(r))!=null;){var i=a[1],o=nt(ib,i)?ib[i]:null;o&&(t[o]=a[2]);var s=nt(ob,i)?ob[i]:null;s&&(n[s]=a[2])}}}function QVe(e,t,n){for(var r=0;r<aN.length;r++){var a=aN[r],i=e.getAttribute(a);i!=null&&(t[ib[a]]=i)}for(var r=0;r<iN.length;r++){var a=iN[r],i=e.getAttribute(a);i!=null&&(n[ob[a]]=i)}}function W7(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 e5e(e,t){var n=new UVe;return n.parse(e,t)}var t5e=ot(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),n5e=function(){function e(t,n){this.type="geoSVG",this._usedGraphicMap=ot(),this._freedGraphics=[],this._mapName=t,this._parsedXML=H7(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=a5e(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&&e5e(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,Nr(r!=null)}catch(g){throw new Error(`Invalid svg format
  91. `+g.message)}var a=new bt;a.add(r),a.isGeoSVGGraphicRoot=!0;var i=n.width,o=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var h=r.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,d=h.height)}l=this._boundingRect=new Rt(u,c,f,d)}if(s){var v=W7(s,l);r.scaleX=r.scaleY=v.scale,r.x=v.x,r.y=v.y}a.setClipPath(new Zt({shape:l.plain()}));var p=[];return F(n.named,function(g){t5e.get(g.svgNodeTagLower)!=null&&(p.push(g),r5e(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 r5e(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function a5e(e){var t=[],n=ot();return F(e,function(r){if(r.namedFrom==null){var a=new p3e(r.name,r.el);t.push(a),n.set(r.name,a)}}),{regions:t,regionsMap:n}}var F2=[126,25],dN="南海诸岛",gu=[[[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 du=0;du<gu.length;du++)for(var Xc=0;Xc<gu[du].length;Xc++)gu[du][Xc][0]/=10.5,gu[du][Xc][1]/=-10.5/.75,gu[du][Xc][0]+=F2[0],gu[du][Xc][1]+=F2[1];function i5e(e,t){if(e==="china"){for(var n=0;n<t.length;n++)if(t[n].name===dN)return;t.push(new H9(dN,Oe(gu,function(r){return{type:"polygon",exterior:r}}),F2))}}var o5e={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function s5e(e,t){if(e==="china"){var n=o5e[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 l5e=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function u5e(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:l5e[0]})}var c5e="name",f5e=function(){function e(t,n,r){this.type="geoJSON",this._parsedMap=ot(),this._mapName=t,this._specialAreas=r,this._geoJSON=h5e(n)}return e.prototype.load=function(t,n){n=n||c5e;var r=this._parsedMap.get(n);if(!r){var a=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:a,boundingRect:d5e(a)})}var i=ot(),o=[];return F(r.regions,function(s){var l=s.name;t&&nt(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new Rt(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var n=this._mapName,r=this._geoJSON,a;try{a=r?D2(r,t):[]}catch(i){throw new Error(`Invalid geoJson format
  92. `+i.message)}return i5e(n,a),F(a,function(i){var o=i.name;s5e(n,i),u5e(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 d5e(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 h5e(e){return Je(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Ah=ot();const ls={registerMap:function(e,t,n){if(t.svg){var r=new n5e(e,t.svg);Ah.set(e,r)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?n=t.specialAreas:a=t;var r=new f5e(e,a,n);Ah.set(e,r)}},getGeoResource:function(e){return Ah.get(e)},getMapForUser:function(e){var t=Ah.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,n){var r=Ah.get(e);if(r)return r.load(t,n)}};var YA=["rect","circle","line","ellipse","polygon","polyline","path"],v5e=ot(YA),p5e=ot(YA.concat(["g"])),g5e=ot(YA.concat(["g"])),K7=en();function Fm(e){var t=e.getItemStyle(),n=e.get("areaColor");return n!=null&&(t.fill=n),t}function hN(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var m5e=function(){function e(t){var n=new bt;this.uid=zd("ec_map_draw"),this._controller=new kg(t.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new bt),n.add(this._svgGroup=new bt)}return e.prototype.draw=function(t,n,r,a,i){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&n.eachComponent({mainType:"series",subType:"map"},function(m){!s&&m.getHostGeoModel()===t&&(s=m.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,h=f.roam,v=!u.childAt(0)||i;v?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):nn(c,h,t);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,n,r),this._updateMapSelectHandler(t,u,r,a)},e.prototype._buildGeoJSON=function(t){var n=this._regionsGroupByName=ot(),r=ot(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var v=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var m=c(h[g],p);m&&v.push(m)}return v}function d(h){return{shape:{points:f(h)}}}a.removeAll(),F(t.geo.regions,function(h){var v=h.name,p=n.get(v),g=r.get(v)||{},m=g.dataIdx,b=g.regionModel;p||(p=n.set(v,new bt),a.add(p),m=s?s.indexOfName(v):null,b=t.isGeo?o.getRegionModel(v):s?s.getItemModel(m):null,r.set(v,{dataIdx:m,regionModel:b}));var _=[],w=[];F(h.geometries,function(x){if(x.type==="polygon"){var T=[x.exterior].concat(x.interiors||[]);u&&(T=bN(T,u)),F(T,function(A){_.push(new ra(d(A)))})}else{var M=x.points;u&&(M=bN(M,u,!0)),F(M,function(A){w.push(new ia(d(A)))})}});var C=c(h.getCenter(),l&&l.project);function S(x,T){if(x.length){var M=new D1({culling:!0,segmentIgnoreThreshold:1,shape:{paths:x}});p.add(M),vN(t,M,m,b),pN(t,M,v,b,o,m,C),T&&(hN(M),F(M.states,hN))}}S(_),S(w,!0)}),n.each(function(h,v){var p=r.get(v),g=p.dataIdx,m=p.regionModel;gN(t,h,v,m,o,g),mN(t,h,v,m,o),yN(t,h,v,m,o)},this)},e.prototype._buildSVG=function(t){var n=t.geo.map,r=t.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var a=this._svgDispatcherMap=ot(),i=!1;F(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(v5e.get(c)!=null&&f instanceof fi&&vN(t,f,d,h),f instanceof fi&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(g5e.get(c)!=null&&pN(t,f,s,h,l,d,null),gN(t,f,s,h,l,d),mN(t,f,s,h,l),p5e.get(c)!=null)){var v=yN(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){hc(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,n){if(t==null)return[];var r=n.coordinateSystem;if(r.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(t);return i?[i]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var n=ls.getGeoResource(t);if(n&&n.type==="geoSVG"){var r=n.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var n=ls.getGeoResource(t);n&&n.type==="geoSVG"&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,n,r){var a=t.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,KA(o,u.dx,u.dy),r.dispatchAction(Ie(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,UA(o,u.scale,u.originX,u.originY),r.dispatchAction(Ie(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return a.containPoint([c,f])&&!Z1(u,r,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var n=t.getTextContent();n&&(n.ignore=K7(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 vN(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=Fm(a),u=Fm(i),c=Fm(s),f=Fm(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=gd(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,hc(t)}function pN(e,t,n,r,a,i,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?n:i,d=void 0;(!s||i>=0)&&(d=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Tr(t,lr(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var v=t.getTextContent();if(v&&(K7(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 gN(e,t,n,r,a,i){e.data?e.data.setItemGraphicEl(i,t):Tt(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function mN(e,t,n,r,a){e.data||Bd({el:t,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function yN(e,t,n,r,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return $n(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&iLe(t,a,n),o}function bN(e,t,n){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),F(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}const U7=m5e;var y5e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===n.id){var s=this._mapDraw;s&&o.add(s.group)}else if(n.needsDrawMap){var s=this._mapDraw||new U7(a);o.add(s.group),s.draw(n,r,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(n,r,a)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(n,r,a){var i=n.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new Hi({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Rd+1)});if(!f){var h=n.mainSeries.getData(),v=i.getName(l),p=h.indexOfName(v),g=i.getItemModel(l),m=g.getModel("label"),b=h.getItemGraphicEl(p);Tr(d,lr(g),{labelFetcher:{getFormattedLabel:function(_,w){return n.getFormattedLabel(p,w)}},defaultText:v}),d.disableLabelAnimation=!0,m.get("position")||d.setTextConfig({position:"bottom"}),b.onHoverStateChange=function(_){$0(d,_)}}o.add(d)}}})},t.type="map",t}(vn);const b5e=y5e;var _5e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(r){if(r!=null){var a=this.getData().getName(r),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},n}return t.prototype.getInitialData=function(n){for(var r=Xd(this,{coordDimensions:["value"],encodeDefaulter:xt(sA,this)}),a=ot(),i=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);a.set(l,!0)}var u=ls.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return F(u.regions,function(c){var f=c.name;a.get(f)||i.push(f)}),r.appendValues([],i),r},t.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return n!=null?this.ecModel.getComponent("geo",n):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(n){var r=this.getData();return r.get(r.mapDimension("value"),n)},t.prototype.getRegionModel=function(n){var r=this.getData();return r.getItemModel(r.indexOfName(n))},t.prototype.formatTooltip=function(n,r,a){for(var i=this.getData(),o=this.getRawValue(n),s=i.getName(n),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=i.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return ur("section",{header:u.join(", "),noHeader:!u.length,blocks:[ur("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.getLegendIcon=function(n){var r=n.icon||"roundRect",a=Hn(r,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return a.setStyle(n.itemStyle),a.style.stroke="none",r.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(_n);const w5e=_5e;function S5e(e,t){var n={};return F(e,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);n[o]=n[o]||[],isNaN(a)||n[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(r,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=n[i].length,c=0;c<u;c++)s=Math.min(s,n[i][c]),l=Math.max(l,n[i][c]),o+=n[i][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function C5e(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getHostGeoModel(),a=r?"o"+r.id:"i"+n.getMapType();(t[a]=t[a]||[]).push(n)}),F(t,function(n,r){for(var a=S5e(Oe(n,function(o){return o.getData()}),n[0].get("mapValueCalculation")),i=0;i<n.length;i++)n[i].originalData=n[i].getData();for(var i=0;i<n.length;i++)n[i].seriesGroup=n,n[i].needsDrawMap=i===0&&!n[i].getHostGeoModel(),n[i].setData(a.cloneShallow()),n[i].mainSeries=n[0]})}function x5e(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var a={};F(n.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var h=a[f]||0,v=s.dataToPoint(d.getCenter());a[f]=h+1,l.setItemLayout(c,{point:v,offset:h})}})});var i=n.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),t[r]=!0}})}var _N=hr,T5e=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Uo,r._rawTransformable=new Uo,r.name=n,r}return t.prototype.setBoundingRect=function(n,r,a,i){return this._rect=new Rt(n,r,a,i),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(n,r,a,i){this._transformTo(n,r,a,i),this._viewRect=new Rt(n,r,a,i)},t.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Rt(n,r,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(n,r){n&&(this._center=[qe(n[0],r.getWidth()),qe(n[1],r.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(n){n=n||1;var r=this.zoomLimit;r&&(r.max!=null&&(n=Math.min(r.max,n)),r.min!=null&&(n=Math.max(r.min,n))),this._zoom=n,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,a=n.y+n.height/2;return[r,a]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=hr([],i,n),a=hr([],a,n),r.originX=i[0],r.originY=i[1],r.x=a[0]-i[0],r.y=a[1]-i[1],r.scaleX=r.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),y1(this.transform||(this.transform=[]),r.transform||Ra()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],Tc(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,a=new Uo;return a.transform=r.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},t.prototype.dataToPoint=function(n,r,a){var i=r?this._rawTransform:this.transform;return a=a||[],i?_N(a,n,i):Dr(a,n)},t.prototype.pointToData=function(n){var r=this.invTransform;return r?_N([],n,r):[n[0],n[1]]},t.prototype.convertToPixel=function(n,r,a){var i=wN(r);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var i=wN(r);return i===this?i.pointToData(a):null},t.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},t.dimensions=["x","y"],t}(Uo);function wN(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const Ag=T5e;var M5e={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Y7=["lng","lat"],j7=function(e){ge(t,e);function t(n,r,a){var i=e.call(this,n)||this;i.dimensions=Y7,i.type="geo",i._nameCoordMap=ot(),i.map=r;var o=a.projection,s=ls.load(r,a.nameMap,a.nameProperty),l=ls.getGeoResource(r);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=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:Lt(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return t.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Rt(n,r,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(n){return this._regionsMap.get(n)},t.prototype.getRegionByCoord=function(n){for(var r=this.regions,a=0;a<r.length;a++){var i=r[a];if(i.type==="geoJSON"&&i.contain(n))return r[a]}},t.prototype.addGeoCoord=function(n,r){this._nameCoordMap.set(n,r)},t.prototype.getGeoCoord=function(n){var r=this._regionsMap.get(n);return this._nameCoordMap.get(n)||r&&r.getCenter()},t.prototype.dataToPoint=function(n,r,a){if(Je(n)&&(n=this.getGeoCoord(n)),n){var i=this.projection;return i&&(n=i.project(n)),n&&this.projectedToPoint(n,r,a)}},t.prototype.pointToData=function(n){var r=this.projection;return r&&(n=r.unproject(n)),n&&this.pointToProjected(n)},t.prototype.pointToProjected=function(n){return e.prototype.pointToData.call(this,n)},t.prototype.projectedToPoint=function(n,r,a){return e.prototype.dataToPoint.call(this,n,r,a)},t.prototype.convertToPixel=function(n,r,a){var i=SN(r);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var i=SN(r);return i===this?i.pointToData(a):null},t}(Ag);Vn(j7,Ag);function SN(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Wn).models[0]||{}).coordinateSystem:null}const CN=j7;function xN(e,t){var n=e.get("boundingCoords");if(n!=null){var r=n[0],a=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=r[0],s=r[1],l=a[0],u=a[1];r=[1/0,1/0],a=[-1/0,-1/0];var c=function(S,x,T,M){for(var A=T-S,k=M-x,E=0;E<=100;E++){var D=E/100,L=i.project([S+A*D,x+k*D]);Wo(r,r,L),Ko(a,a,L)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(r[0],r[1],a[0]-r[0],a[1]-r[1])}}var f=this.getBoundingRect(),d=e.get("layoutCenter"),h=e.get("layoutSize"),v=t.getWidth(),p=t.getHeight(),g=f.width/f.height*this.aspectScale,m=!1,b,_;d&&h&&(b=[qe(d[0],v),qe(d[1],p)],_=qe(h,Math.min(v,p)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(_)&&(m=!0));var w;if(m)w={},g>1?(w.width=_,w.height=_/g):(w.height=_,w.width=_*g),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2;else{var C=e.getBoxLayoutParams();C.aspect=g,w=Xn(C,{width:v,height:p})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function k5e(e,t){F(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var A5e=function(){function e(){this.dimensions=Y7}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 CN(l+s,l,Ie({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=xN,u.resize(o,n)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),F(i,function(o,s){var l=Oe(o,function(c){return c.get("nameMap")}),u=new CN(s,s,Ie({nameMap:p1(l)},a(o[0])));u.zoomLimit=rr.apply(null,Oe(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=xN,u.resize(o[0],n),F(o,function(c){c.coordinateSystem=u,k5e(u,c)})}),r},e.prototype.getFilledRegions=function(t,n,r,a){for(var i=(t||[]).slice(),o=ot(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=ls.load(n,r,a);return F(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},e}(),E5e=new A5e;const q7=E5e;var I5e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,a){var i=ls.getGeoResource(n.map);if(i&&i.type==="geoJSON"){var o=n.itemStyle=n.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(n,a),cc(n,"label",["show"])},t.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=q7.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var a={};this._optionModelMap=ci(r.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new dn(o,n,n.ecModel)),o.selected&&(a[s]=!0)),i},ot()),r.selectedMap||(r.selectedMap=a)},t.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new dn(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(n,r){var a=this.getRegionModel(n),i=r==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:n};if(ut(i))return o.status=r,i(o);if(Je(i))return i.replace("{a}",n??"")},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.select=function(n){var r=this.option,a=r.selectedMode;if(a){a!=="multiple"&&(r.selectedMap=null);var i=r.selectedMap||(r.selectedMap={});i[n]=!0}},t.prototype.unSelect=function(n){var r=this.option.selectedMap;r&&(r[n]=!1)},t.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},t.prototype.isSelected=function(n){var r=this.option.selectedMap;return!!(r&&r[n])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(Yt);const D5e=I5e;function TN(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function jA(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(TN(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(TN(e,s),r),e.setZoom(o*a)}return{center:e.getCenter(),zoom:e.getZoom()}}var P5e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.focusBlurEnabled=!0,n}return t.prototype.init=function(n,r){this._api=r},t.prototype.render=function(n,r,a,i){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new U7(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;Fu(n.target,function(a){return(r=Tt(a).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},t.prototype.updateSelectStatus=function(n,r,a){var i=this;this._mapDraw.group.traverse(function(o){var s=Tt(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(An);const L5e=P5e;function R5e(e,t,n){ls.registerMap(e,t,n)}function X7(e){e.registerCoordinateSystem("geo",q7),e.registerComponentModel(D5e),e.registerComponentView(L5e),e.registerImpl("registerMap",R5e),e.registerImpl("getMap",function(n){return ls.getMapForUser(n)});function t(n,r){r.update="geo:updateSelectStatus",e.registerAction(r,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[n](a.name);var u=l.coordinateSystem;F(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];F(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,r,a){var i=n.componentType||"series";r.eachComponent({mainType:i,query:n},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=jA(s,n,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&F(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function O5e(e){Bt(X7),e.registerChartView(b5e),e.registerSeriesModel(w5e),e.registerLayout(x5e),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,C5e),KW("map",e.registerAction)}function $5e(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 N5e(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){z5e(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=F5e(e,a,e.parentNode.hierNode.defaultAncestor||r[0],t)}function B5e(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function MN(e){return arguments.length?e:W5e}function qh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function V5e(e,t){return Xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function z5e(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 F5e(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=uS(s),i=cS(i),s&&i;){a=uS(a),o=cS(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(G5e(H5e(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&&!uS(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!cS(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=e)}return n}function uS(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function cS(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function H5e(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function G5e(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 W5e(e,t){return e.parentNode===t.parentNode?1:2}var K5e=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),U5e=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new K5e},t.prototype.buildPath=function(n,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){n.moveTo(o[0],o[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=qe(r.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,n.moveTo(o[0],o[1]),n.lineTo(h[0],h[1]),n.moveTo(s[0],s[1]),h[c]=s[c],n.lineTo(h[0],h[1]),h[c]=l[c],n.lineTo(h[0],h[1]),n.lineTo(l[0],l[1]);for(var v=1;v<i-1;v++){var p=a[v];n.moveTo(p[0],p[1]),h[c]=p[c],n.lineTo(h[0],h[1])}},t}(zt),Y5e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new bt,n}return t.prototype.init=function(n,r){this._controller=new kg(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){kN(i,c)&&AN(i,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!kN(i,c)){d&&IN(u,f,d,s,n);return}AN(i,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&IN(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=[];M1(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 Ag;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)&&!Z1(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){KA(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){UA(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(n),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),a=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},t.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var a=this._nodeScaleRatio,i=r.scaleX||1,o=r.getZoom(),s=(o-1)*a+1;return s/i},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(vn);function kN(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function AN(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 Sg(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=v.x,n.y=v.y):n.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=p.rawX,n.__radialRawY=p.rawY,r.add(n),e.setItemGraphicEl(t,n),n.__oldX=n.x,n.__oldY=n.y,nn(n,{x:p.x,y:p.y},a);var g=n.getSymbolPath();if(a.get("layout")==="radial"){var m=c.children[0],b=m.getLayout(),_=m.children.length,w=void 0,C=void 0;if(p.x===b.x&&o.isExpand===!0&&m.children.length){var S={x:(m.children[0].getLayout().x+m.children[_-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[_-1].getLayout().y)/2};w=Math.atan2(S.y-b.y,S.x-b.x),w<0&&(w=Math.PI*2+w),C=S.x<b.x,C&&(w=w-Math.PI)}else w=Math.atan2(p.y-b.y,p.x-b.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(C=p.x<b.x,C&&(w=w-Math.PI)):(C=p.x>b.x,C||(w=w-Math.PI));var x=C?"left":"right",T=s.getModel("label"),M=T.get("rotate"),A=M*(Math.PI/180),k=g.getTextContent();k&&(g.setTextConfig({position:T.get("position")||x,rotation:M==null?-w:A,origin:"center"}),k.setStyle("verticalAlign","middle"))}var E=s.get(["emphasis","focus"]),D=E==="relative"?fp(o.getAncestorsIndices(),o.getDescendantIndices()):E==="ancestor"?o.getAncestorsIndices():E==="descendant"?o.getDescendantIndices():null;D&&(Tt(n).focus=D),j5e(a,o,c,n,v,h,p,r),n.__edge&&(n.onHoverStateChange=function(L){if(L!=="blur"){var B=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);B&&B.hoverState===dg||$0(n.__edge,L)}})}function j5e(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 vg({shape:H2(c,f,d,a,a)})),nn(p,{shape:H2(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 U5e({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),nn(p,{shape:{parentPoint:[o.x,o.y],childPoints:m}},e)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(ft({strokeNoScale:!0,fill:null},v)),xr(p,l,"lineStyle"),hc(p),s.add(p))}function EN(e,t,n,r,a){var i=t.tree.root,o=Z7(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"?yl(d,{shape:H2(v,p,g,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}):h==="polyline"&&r.get("layout")==="orthogonal"&&yl(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}))}}function Z7(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 IN(e,t,n,r,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=Z7(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};yl(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){EN(u,e,r,a,l)}),EN(i,e,r,a,l)}function H2(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=qh(u,f),v=qh(u,f+(d-f)*n),p=qh(c,d+(f-d)*n),g=qh(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 q5e=Y5e;var ti=en();function J7(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,Q7(t,n,e),F(n,function(r){F(t.TRANSFERABLE_METHODS,function(a){r.wrapMethod(a,xt(X5e,e))})}),t.wrapMethod("cloneShallow",xt(J5e,e)),F(t.CHANGABLE_METHODS,function(r){t.wrapMethod(r,xt(Z5e,e))}),Nr(n[t.dataType]===t)}function X5e(e,t){if(tze(this)){var n=Ie({},ti(this).datas);n[this.dataType]=t,Q7(t,n,e)}else qA(t,this.dataType,ti(this).mainData,e);return t}function Z5e(e,t){return e.struct&&e.struct.update(),t}function J5e(e,t){return F(ti(t).datas,function(n,r){n!==t&&qA(n.cloneShallow(),r,t,e)}),t}function Q5e(e){var t=ti(this).mainData;return e==null||t==null?t:ti(t).datas[e]}function eze(){var e=ti(this).mainData;return e==null?[{data:e}]:Oe(Gt(ti(e).datas),function(t){return{type:t,data:ti(e).datas[t]}})}function tze(e){return ti(e).mainData===e}function Q7(e,t,n){ti(e).datas={},F(t,function(r,a){qA(r,a,e,n)})}function qA(e,t,n,r){ti(n).datas[t]=e,ti(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=Q5e,e.getLinkedDataAll=eze}var nze=function(){function e(t,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=n}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,n,r){ut(t)&&(r=n,n=t,t=null),t=t||{},Je(t)&&(t={order:t});var a=t.order||"preorder",i=this[t.attr||"children"],o;a==="preorder"&&(o=n.call(r,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(t,n,r);a==="postorder"&&n.call(r,this)},e.prototype.updateDepthAndHeight=function(t){var n=0;this.depth=t;for(var r=0;r<this.children.length;r++){var a=this.children[r];a.updateDepthAndHeight(t+1),a.height>n&&(n=a.height)}this.height=n+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var n=0,r=this.children,a=r.length;n<a;n++){var i=r[n].getNodeById(t);if(i)return i}},e.prototype.contains=function(t){if(t===this)return!0;for(var n=0,r=this.children,a=r.length;n<a;n++){var i=r[n].contains(t);if(i)return i}},e.prototype.getAncestors=function(t){for(var n=[],r=t?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},e.prototype.getAncestorsIndices=function(){for(var t=[],n=this;n;)t.push(n.dataIndex),n=n.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(n){t.push(n.dataIndex)}),t},e.prototype.getValue=function(t){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,n)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,n)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,n=0;n<t.length;++n)if(t[n]===this)return n;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var n=t.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),rze=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,n,r){this.root.eachNode(t,n,r)},e.prototype.getNodeByDataIndex=function(t){var n=this.data.getRawIndex(t);return this._nodes[n]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,n=this._nodes,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(var r=0,a=t.count();r<a;r++)n[t.getRawIndex(r)].dataIndex=r},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var a=new e(n),i=[],o=1;s(t);function s(c,f){var d=c.value;o=Math.max(o,Re(d)?d.length:1),i.push(c);var h=new nze(tr(c.name,""),a);f?aze(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=jd(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Or(l,n);return u.initData(i),r&&r(u),J7({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function aze(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}const XA=rze;function Op(e,t,n){if(e&&$t(t,e.type)>=0){var r=n.getData().tree.root,a=e.targetNode;if(Je(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=e.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function eK(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function ZA(e,t){var n=eK(e);return $t(n,t)>=0}function Q1(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 ize=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},a=n.leaves||{},i=new dn(a,this,this.ecModel),o=XA.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.formatTooltip=function(n,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ur("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=Q1(a,this),r.collapsed=!a.isExpand,r},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(_n);const oze=ize;function sze(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 Eh(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 lze(e,t){e.eachSeriesByType("tree",function(n){uze(n,t)})}function uze(e,t){var n=V5e(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=MN(function(_,w){return(_.parentNode===w.parentNode?1:2)/_.depth})):(a=n.width,i=n.height,o=MN());var s=e.getData().tree.root,l=s.children[0];if(l){$5e(s),sze(l,N5e,o),s.hierNode.modifier=-l.hierNode.prelim,Eh(l,B5e);var u=l,c=l,f=l;Eh(l,function(_){var w=_.getLayout().x;w<u.getLayout().x&&(u=_),w>c.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,v=0,p=0,g=0,m=0;if(r==="radial")v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Eh(l,function(_){g=(_.getLayout().x+h)*v,m=(_.depth-1)*p;var w=qh(g,m);_.setLayout({x:w.x,y:w.y,rawX:g,rawY:m},!0)});else{var b=e.getOrient();b==="RL"||b==="LR"?(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Eh(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),Eh(l,function(_){g=(_.getLayout().x+h)*v,m=b==="TB"?(_.depth-1)*p:i-(_.depth-1)*p,_.setLayout({x:g,y:m},!0)}))}}}function cze(e){e.eachSeriesByType("tree",function(t){var n=t.getData(),r=n.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(a.dataIndex,"style");Ie(s,o)})})}function fze(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=jA(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function dze(e){e.registerChartView(q5e),e.registerSeriesModel(oze),e.registerLayout(lze),e.registerVisual(cze),fze(e)}var DN=["treemapZoomToNode","treemapRender","treemapMove"];function hze(e){for(var t=0;t<DN.length;t++)e.registerAction({type:DN[t],update:"updateView"},Nn);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Op(n,s,i);if(l){var u=i.getViewRoot();u&&(n.direction=ZA(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function tK(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=g2(e.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var vze=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};nK(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new dn({itemStyle:o},this,r);i=n.levels=pze(i,r);var l=Oe(i||[],function(f){return new dn(f,s,r)},this),u=XA.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var v=u.getNodeByDataIndex(h),p=v?l[v.depth]:null;return d.parentModel=p||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return ur("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(n){var r=e.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=Q1(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},Ie(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=ot(),this._idIndexMapCount=0);var a=r.get(n);return a==null&&r.set(n,a=this._idIndexMapCount++),a},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},t.prototype.enableAriaDecal=function(){tK(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(_n);function nK(e){var t=0;F(e.children,function(r){nK(r);var a=r.value;Re(a)&&(a=a[0]),t+=a});var n=e.value;Re(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Re(e.value)?e.value[0]=n:e.value=n}function pze(e,t){var n=hn(t.get("color")),r=hn(t.get(["aria","decal","decals"]));if(n){e=e||[];var a,i;F(e,function(s){var l=new dn(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=e[0]||(e[0]={});return a||(o.color=n.slice()),!i&&r&&(o.decal=r.slice()),e}}const gze=vze;var mze=8,PN=8,fS=5,yze=function(){function e(t){this.group=new bt,t.add(this.group)}return e.prototype.render=function(t,n,r,a){var i=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(t,f,s,l,u,c,a),V1(o,f.pos,f.box)}},e.prototype._prepare=function(t,n,r){for(var a=t;a;a=a.parentNode){var i=tr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+mze*2,n.emptyItemWidth);n.totalWidth+=s+PN,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=dRe(n.pos,n.box),d=n.totalWidth,h=n.renderList,v=a.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],m=g.node,b=g.width,_=g.text;d>f.width&&(d-=b-u,b=u,_=null);var w=new ra({shape:{points:bze(l,0,b,c,p===h.length-1,p===0)},style:ft(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Xt({style:gn(i,{text:_})}),textConfig:{position:"inside"},z2:Rd*1e4,onclick:xt(s,m)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=gn(o,{text:_}),w.ensureState("emphasis").style=v,$n(w,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(w),_ze(w,t,m),l+=b+PN}},e.prototype.remove=function(){this.group.removeAll()},e}();function bze(e,t,n,r,a,i){var o=[[a?e:e-fS,t],[e+n,t],[e+n,t+r],[a?e:e-fS,t+r]];return!i&&o.splice(2,0,[e+n+fS,t+r/2]),!a&&o.push([e,t+r/2]),o}function _ze(e,t,n){Tt(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Q1(n,t)}}const wze=yze;var Sze=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 Cze(){return new Sze}var G2=bt,LN=Zt,RN=3,ON="label",$N="upperLabel",xze=Rd*10,Tze=Rd*2,Mze=Rd*3,mu=dc([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),NN=function(e){var t=mu(e);return t.stroke=t.fill=t.lineWidth=null,t},sb=en(),kze=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=Ih(),n}return t.prototype.render=function(n,r,a,i){var o=r.findComponents({mainType:"series",subType:"treemap",query:i});if(!($t(o,n)<0)){this.seriesModel=n,this.api=a,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=Op(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 G2,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=Ih(),l=Ih(),u=this._storage,c=[];function f(g,m,b,_){return Aze(r,l,u,a,s,c,g,m,b,_)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],n,i===o||!o,0);var d=v(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:p};function h(g,m,b,_,w){_?(m=g,F(g,function(x,T){!x.isRemoved()&&S(T,T)})):new is(m,g,C,C).add(S).update(S).remove(xt(S,null)).execute();function C(x){return x.getId()}function S(x,T){var M=x!=null?g[x]:null,A=T!=null?m[T]:null,k=f(M,A,b,w);k&&h(M&&M.viewChildren||[],A&&A.viewChildren||[],k,_,w+1)}}function v(g){var m=Ih();return g&&F(g,function(b,_){var w=m[_];F(b,function(C){C&&(w.push(C),sb(C).willDelete=!0)})}),m}function p(){F(d,function(g){F(g,function(m){m.parent&&m.parent.remove(m)})}),F(c,function(g){g.invisible=!0,g.dirty()})}},t.prototype._doAnimation=function(n,r,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(ut(o)?0:o)||0,u=(ut(s)?null:s)||"cubicOut",c=Cze();F(r.willDeleteEls,function(f,d){F(f,function(h,v){if(!h.invisible){var p=h.parent,g,m=sb(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:m.nodeWidth,height:m.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var b=0,_=0;m.willDelete||(b=m.nodeWidth/2,_=m.nodeHeight/2),g=d==="nodeGroup"?{x:b,y:_,style:{opacity:0}}:{shape:{x:b,y:_,width:0,height:0},style:{opacity:0}}}g&&c.add(h,g,l,0,u)}})}),F(this._storage,function(f,d){F(f,function(h,v){var p=r.lastsForAnimation[d][v],g={};p&&(h instanceof bt?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=Ie({},h.shape),h.setShape(p.oldShape)),p.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),c.add(h,g,l,0,u))})},this),this._state="animating",c.finished(et(function(){this._state="ready",r.renderFinally()},this)).start()},t.prototype._resetController=function(n){var r=this._controller;r||(r=this._controller=new kg(n.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",et(this._onPan,this)),r.on("zoom",et(this._onZoom,this)));var a=new Rt(0,0,n.getWidth(),n.getHeight());r.setPointerChecker(function(i,o,s){return a.contain(o,s)})},t.prototype._clearController=function(){var n=this._controller;n&&(n.dispose(),n=null)},t.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>RN||Math.abs(n.dy)>RN)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+n.dx,y:a.y+n.dy,width:a.width,height:a.height}})}},t.prototype._onZoom=function(n){var r=n.originX,a=n.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new Rt(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=Ra();zi(u,u,[-r,-a]),b1(u,u,[n.scale,n.scale]),zi(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},t.prototype._initEvents=function(n){var r=this;n.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&H0(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 wze(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(ZA(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Ih(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},t.prototype.findTarget=function(n,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},t.type="treemap",t}(vn);function Ih(){return{nodeGroup:[],background:[],content:[]}}function Aze(e,t,n,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,v=c.height,p=c.borderWidth,g=c.invisible,m=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,w=c.upperHeight,C=_&&_.length,S=d.getModel("itemStyle"),x=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),M=d.getModel(["select","itemStyle"]),A=S.get("borderRadius")||0,k=ae("nodeGroup",G2);if(!k)return;if(l.add(k),k.x=c.x||0,k.y=c.y||0,k.markRedraw(),sb(k).nodeWidth=h,sb(k).nodeHeight=v,c.isAboveViewRoot)return k;var E=ae("background",LN,u,Tze);E&&I(k,E,C&&c.upperLabelHeight);var D=d.getModel("emphasis"),L=D.get("focus"),B=D.get("blurScope"),N=D.get("disabled"),O=L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():L;if(C)Sp(k)&&Vu(k,!1),E&&(Vu(E,!N),f.setItemGraphicEl(o.dataIndex,E),l2(E,O,B));else{var $=ae("content",LN,u,Mze);$&&z(k,$),E.disableMorphing=!0,E&&Sp(E)&&Vu(E,!1),Vu(k,!N),f.setItemGraphicEl(o.dataIndex,k),l2(k,O,B)}return k;function I(ee,j,de){var ve=Tt(j);if(ve.dataIndex=o.dataIndex,ve.seriesIndex=e.seriesIndex,j.setShape({x:0,y:0,width:h,height:v,r:A}),g)G(j);else{j.invisible=!1;var ie=o.getVisual("style"),W=ie.stroke,X=NN(S);X.fill=W;var oe=mu(x);oe.fill=x.get("borderColor");var pe=mu(T);pe.fill=T.get("borderColor");var Se=mu(M);if(Se.fill=M.get("borderColor"),de){var me=h-2*p;U(j,W,ie.opacity,{x:p,y:0,width:me,height:w})}else j.removeTextContent();j.setStyle(X),j.ensureState("emphasis").style=oe,j.ensureState("blur").style=pe,j.ensureState("select").style=Se,hc(j)}ee.add(j)}function z(ee,j){var de=Tt(j);de.dataIndex=o.dataIndex,de.seriesIndex=e.seriesIndex;var ve=Math.max(h-2*p,0),ie=Math.max(v-2*p,0);if(j.culling=!0,j.setShape({x:p,y:p,width:ve,height:ie,r:A}),g)G(j);else{j.invisible=!1;var W=o.getVisual("style"),X=W.fill,oe=NN(S);oe.fill=X,oe.decal=W.decal;var pe=mu(x),Se=mu(T),me=mu(M);U(j,X,W.opacity,null),j.setStyle(oe),j.ensureState("emphasis").style=pe,j.ensureState("blur").style=Se,j.ensureState("select").style=me,hc(j)}ee.add(j)}function G(ee){!ee.invisible&&i.push(ee)}function U(ee,j,de,ve){var ie=d.getModel(ve?$N:ON),W=tr(d.get("name"),null),X=ie.getShallow("show");Tr(ee,lr(d,ve?$N:ON),{defaultText:X?W:null,inheritColor:j,defaultOpacity:de,labelFetcher:e,labelDataIndex:o.dataIndex});var oe=ee.getTextContent();if(oe){var pe=oe.style,Se=m1(pe.padding||0);ve&&(ee.setTextConfig({layoutRect:ve}),oe.disableLabelLayout=!0),oe.beforeUpdate=function(){var Ee=Math.max((ve?ve.width:ee.shape.width)-Se[1]-Se[3],0),Ce=Math.max((ve?ve.height:ee.shape.height)-Se[0]-Se[2],0);(pe.width!==Ee||pe.height!==Ce)&&oe.setStyle({width:Ee,height:Ce})},pe.truncateMinChar=2,pe.lineOverflow="truncate",Z(pe,ve,c);var me=oe.getState("emphasis");Z(me?me.style:null,ve,c)}}function Z(ee,j,de){var ve=ee?ee.text:null;if(!j&&de.isLeafRoot&&ve!=null){var ie=e.get("drillDownIcon",!0);ee.text=ie?ie+" "+ve:ve}}function ae(ee,j,de,ve){var ie=b!=null&&n[ee][b],W=a[ee];return ie?(n[ee][b]=null,J(W,ie)):g||(ie=new j,ie instanceof fi&&(ie.z2=Eze(de,ve)),Q(W,ie)),t[ee][m]=ie}function J(ee,j){var de=ee[m]={};j instanceof G2?(de.oldX=j.x,de.oldY=j.y):de.oldShape=Ie({},j.shape)}function Q(ee,j){var de=ee[m]={},ve=o.parentNode,ie=j instanceof bt;if(ve&&(!r||r.direction==="drillDown")){var W=0,X=0,oe=a.background[ve.getRawIndex()];!r&&oe&&oe.oldShape&&(W=oe.oldShape.width,X=oe.oldShape.height),ie?(de.oldX=0,de.oldY=X):de.oldShape={x:W,y:X,width:0,height:0}}de.fadein=!ie}}function Eze(e,t){return e*xze+t}const Ize=kze;var $p=F,Dze=ht,lb=-1,JA=function(){function e(t){var n=t.mappingMethod,r=t.type,a=this.option=pt(t);this.type=r,this.mappingMethod=n,this._normalizeData=Rze[n];var i=e.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(dS(a),Pze(a)):n==="category"?a.categories?Lze(a):dS(a,!0):(Nr(n!=="linear"||a.dataExtent),dS(a))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return et(this._normalizeData,this)},e.listVisualTypes=function(){return Gt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){ht(t)?F(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var a,i=Re(t)?[]:ht(t)?{}:(a=!0,null);return e.eachVisual(t,function(o,s){var l=n.call(r,o,s);a?i=l:i[s]=l}),i},e.retrieveVisuals=function(t){var n={},r;return t&&$p(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(Re(t))t=t.slice();else if(Dze(t)){var n=[];$p(t,function(r,a){n.push(a)}),t=n}else return[];return t.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,n){return n==="color"?!!(t&&t.indexOf(n)===0):t===n},e.findPieceIndex=function(t,n,r){for(var a,i=1/0,o=0,s=n.length;o<s;o++){var l=n[o].value;if(l!=null){if(l===t||Je(l)&&l===t+"")return o;r&&d(l,o)}}for(var o=0,s=n.length;o<s;o++){var u=n[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(Gm(f[1],t,c[1]))return o}else if(c[1]===1/0){if(Gm(f[0],c[0],t))return o}else if(Gm(f[0],c[0],t)&&Gm(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:Dh("color"),getColorMapper:function(){var t=this.option;return et(t.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),Xh.call(this,n)}:function(n,r,a){var i=!!a;return!r&&(n=this._normalizeData(n)),a=mv(n,t.parsedVisual,a),i?a:$i(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return $i(mv(t,this.option.parsedVisual),"rgba")},category:Xh,piecewise:function(t,n){var r=K2.call(this,n);return r==null&&(r=$i(mv(t,this.option.parsedVisual),"rgba")),r},fixed:yu}},colorHue:Hm(function(t,n){return Nf(t,n)}),colorSaturation:Hm(function(t,n){return Nf(t,null,n)}),colorLightness:Hm(function(t,n){return Nf(t,null,null,n)}),colorAlpha:Hm(function(t,n){return pp(t,n)}),decal:{applyVisual:Dh("decal"),_normalizedToVisual:{linear:null,category:Xh,piecewise:null,fixed:null}},opacity:{applyVisual:Dh("opacity"),_normalizedToVisual:W2([0,1])},liftZ:{applyVisual:Dh("liftZ"),_normalizedToVisual:{linear:yu,category:yu,piecewise:yu,fixed:yu}},symbol:{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("symbol",a)},_normalizedToVisual:{linear:BN,category:Xh,piecewise:function(t,n){var r=K2.call(this,n);return r==null&&(r=BN.call(this,t)),r},fixed:yu}},symbolSize:{applyVisual:Dh("symbolSize"),_normalizedToVisual:W2([0,1])}},e}();function Pze(e){var t=e.pieceList;e.hasSpecialVisual=!1,F(t,function(n,r){n.originIndex=r,n.visual!=null&&(e.hasSpecialVisual=!0)})}function Lze(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if($p(t,function(o,s){n[o]=s}),!Re(r)){var a=[];ht(r)?$p(r,function(o,s){var l=n[s];a[l??lb]=o}):a[lb]=r,r=rK(e,a)}for(var i=t.length-1;i>=0;i--)r[i]==null&&(delete n[t[i]],t.pop())}function dS(e,t){var n=e.visual,r=[];ht(n)?$p(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]),rK(e,r)}function Hm(e){return{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("color",e(n("color"),a))},_normalizedToVisual:W2([0,1])}}function BN(e){var t=this.option.visual;return t[Math.round(sn(e,[0,1],[0,t.length-1],!0))]||{}}function Dh(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function Xh(e){var t=this.option.visual;return t[this.option.loop&&e!==lb?e%t.length:e]}function yu(){return this.option.visual[0]}function W2(e){return{linear:function(t){return sn(t,e,this.option.visual,!0)},category:Xh,piecewise:function(t,n){var r=K2.call(this,n);return r==null&&(r=sn(t,e,this.option.visual,!0)),r},fixed:yu}}function K2(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=JA.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function rK(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Oe(t,function(n){var r=Xr(n);return r||[0,0,0,1]})),t}var Rze={linear:function(e){return sn(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=JA.findPieceIndex(e,t,!0);if(n!=null)return sn(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??lb},fixed:Nn};function Gm(e,t,n){return e?t<=n:t<n}const wr=JA;var Oze="itemStyle",aK=en();const $ze={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||iK(n,{},e.getViewRoot().getAncestors(),e)}};function iK(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(Oze),l=Nze(s,t,r),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=VN(l),c=Bze(f,d)),u.stroke=c;var h=e.viewChildren;if(!h||!h.length)d=VN(l),u.fill=d;else{var v=Vze(e,a,i,s,l,h);F(h,function(p,g){if(p.depth>=n.length||p===n[p.depth]){var m=zze(a,l,p,g,v,r);iK(p,m,n,r)}})}}}function Nze(e,t,n){var r=Ie({},t),a=n.designatedVisualItemStyle;return F(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function VN(e){var t=hS(e,"color");if(t){var n=hS(e,"colorAlpha"),r=hS(e,"colorSaturation");return r&&(t=Nf(t,null,null,r)),n&&(t=pp(t,n)),t}}function Bze(e,t){return t!=null?Nf(t,null,null,e):null}function hS(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function Vze(e,t,n,r,a,i){if(!(!i||!i.length)){var o=vS(t,"color")||a.color!=null&&a.color!=="none"&&(vS(t,"colorAlpha")||vS(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new wr(f);return aK(d).drColorMappingBy=c,d}}}function vS(e,t){var n=e.get(t);return Re(n)&&n.length?{name:t,range:n}:null}function zze(e,t,n,r,a,i){var o=Ie({},t);if(a){var s=a.type,l=s==="color"&&aK(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 Np=Math.max,ub=Math.min,zN=rr,QA=F,oK=["itemStyle","borderWidth"],Fze=["itemStyle","gapWidth"],Hze=["upperLabel","show"],Gze=["upperLabel","height"];const Wze={seriesType:"treemap",reset:function(e,t,n,r){var a=n.getWidth(),i=n.getHeight(),o=e.option,s=Xn(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=qe(zN(s.width,l[0]),a),c=qe(zN(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],h=Op(r,d,e),v=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,p=e.getViewRoot(),g=eK(p);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?Xze(e,h,p,u,c):v?[v.width,v.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var w={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(w),sK(p,_,!1,0),w=p.getLayout(),QA(g,function(S,x){var T=(g[x+1]||p).getValue();S.setLayout(Ie({dataExtent:[T,T],borderWidth:0,upperHeight:0},w))})}var C=e.getData().tree.root;C.setLayout(Zze(s,v,h),!0),e.setLayoutInfo(s),lK(C,new Rt(-s.x,-s.y,a,i),g,p,0)}};function sK(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(oK),u=s.get(Fze)/2,c=uK(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=Np(a-2*d,0),i=Np(i-d-h,0);var v=a*i,p=Kze(e,s,v,t,n,r);if(p.length){var g={x:d,y:h,width:a,height:i},m=ub(a,i),b=1/0,_=[];_.area=0;for(var w=0,C=p.length;w<C;){var S=p[w];_.push(S),_.area+=S.getLayout().area;var x=qze(_,m,t.squareRatio);x<=b?(w++,b=x):(_.area-=_.pop().getLayout().area,FN(_,m,g,u,!1),m=ub(g.width,g.height),_.length=_.area=0,b=1/0)}if(_.length&&FN(_,m,g,u,!0),!n){var T=s.get("childrenVisibleMin");T!=null&&v<T&&(n=!0)}for(var w=0,C=p.length;w<C;w++)sK(p[w],t,n,r+1)}}}function Kze(e,t,n,r,a,i){var o=e.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=i;if(a&&!l)return e.viewChildren=[];o=ln(o,function(h){return!h.isRemoved()}),Yze(o,s);var u=jze(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=Uze(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 Uze(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 Yze(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 jze(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],QA(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 qze(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?Np(u*r/l,l/(u*a)):1/0}function FN(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]]=Np(c-2*r,0),m=n[s[i]]+n[l[i]]-u,b=f===d-1||m<p?m:p,_=v[l[i]]=Np(b-2*r,0);v[s[o]]=n[s[o]]+ub(r,g/2),v[s[i]]=u+ub(r,_/2),u+=b,h.setLayout(v,!0)}n[s[o]]+=c,n[l[o]]-=c}function Xze(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(oK),m=Math.max(g,uK(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>Qx&&(u=Qx),i=s}u<l&&(u=l);var b=Math.pow(u/l,.5);return[r*b,a*b]}function Zze(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 lK(e,t,n,r,a){var i=e.getLayout(),o=n[a],s=o&&o===e;if(!(o&&!s||a===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(i),isAboveViewRoot:s},!0);var l=new Rt(t.x-i.x,t.y-i.y,t.width,t.height);QA(e.viewChildren||[],function(u){lK(u,l,n,r,a+1)})}}function uK(e){return e.get(Hze)?e.get(Gze):0}function Jze(e){e.registerSeriesModel(gze),e.registerChartView(Ize),e.registerVisual($ze),e.registerLayout(Wze),hze(e)}function Qze(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getGraph(),i=a.data,o=r.mapArray(r.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Qt(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function eFe(e){var t={};e.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getData(),i={};r.each(function(o){var s=r.getName(o);i["ec-"+s]=o;var l=r.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=n.getColorFromPalette(s,t)),r.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&r.setItemVisual(o,c[f],d)}}),r.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){Je(l)&&(l=i["ec-"+l]);var u=r.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");Ie(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)a.setItemVisual(o,f[d],r.getItemVisual(l,f[d]))}})})}function Wm(e){return e instanceof Array||(e=[e,e]),e}function tFe(e){e.eachSeriesByType("graph",function(t){var n=t.getGraph(),r=t.getEdgeData(),a=Wm(t.get("edgeSymbol")),i=Wm(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=Wm(s.getShallow("symbol",!0)),c=Wm(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(o,"style");switch(Ie(d,f),d.stroke){case"source":{var h=l.node1.getVisual("style");d.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");d.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var U2="-->",e_=function(e){return e.get("autoCurveness")||null},cK=function(e,t){var n=e_(e),r=20,a=[];if(Qt(n))r=n;else if(Re(n)){e.__curvenessList=n;return}t>r&&(r=t);var i=r%2?r+2:r+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=a},Bp=function(e,t,n){var r=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[n.uid,r,a].join(U2)},fK=function(e){var t=e.split(U2);return[t[0],t[2],t[1]].join(U2)},nFe=function(e,t){var n=Bp(e.node1,e.node2,t);return t.__edgeMap[n]},rFe=function(e,t){var n=Y2(Bp(e.node1,e.node2,t),t),r=Y2(Bp(e.node2,e.node1,t),t);return n+r},Y2=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function aFe(e){e_(e)&&(e.__curvenessList=[],e.__edgeMap={},cK(e))}function iFe(e,t,n,r){if(e_(n)){var a=Bp(e,t,n),i=n.__edgeMap,o=i[fK(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 eE(e,t,n,r){var a=e_(t),i=Re(a);if(!a)return null;var o=nFe(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=rFe(e,t);cK(t,u),e.lineStyle=e.lineStyle||{};var c=Bp(e.node1,e.node2,t),f=t.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var h=fK(c),v=Y2(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 dK(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")])}),tE(n,e)}}function tE(e,t){e.eachEdge(function(n,r){var a=Ri(n.getModel().get(["lineStyle","curveness"]),-eE(n,t,r,!0),0),i=po(n.node1.getLayout()),o=po(n.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),n.setLayout(s)})}function oFe(e,t){e.eachSeriesByType("graph",function(n){var r=n.get("layout"),a=n.coordinateSystem;if(a&&a.type!=="view"){var i=n.getData(),o=[];F(a.dimensions,function(d){o=o.concat(i.mapDimensionsAll(d))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}tE(i.graph,n)}else(!r||r==="none")&&dK(n)})}function Zh(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 Jh(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var HN=Math.PI,pS=[];function nE(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];xc(p,p),pv(p,p,c),n.setLayout([l+p[0],u+p[1]],!0);var g=e.get(["circular","rotateLabel"]);hK(n,g,l,u)}sFe[t](e,s,o,c,l,u,f),s.eachEdge(function(m,b){var _=Ri(m.getModel().get(["lineStyle","curveness"]),eE(m,e,b),0),w=po(m.node1.getLayout()),C=po(m.node2.getLayout()),S,x=(w[0]+C[0])/2,T=(w[1]+C[1])/2;+_&&(_*=3,S=[l*_+x*(1-_),u*_+T*(1-_)]),m.setLayout([w,C,S])})}}}var sFe={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;pS.length=o;var l=Zh(e);t.eachNode(function(f){var d=Jh(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/r);isNaN(h)&&(h=HN/2),pS[f.dataIndex]=h,s+=h*2});var u=(2*HN-s)/o/2,c=0;t.eachNode(function(f){var d=u+pS[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+a,r*Math.sin(c)+i]),c+=d})}};function hK(e,t,n,r){var a=e.getGraphicEl();if(a){var i=e.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-r,l[0]-n);u<0&&(u=Math.PI*2+u);var c=l[0]<n;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");Ie(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function lFe(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&nE(t,"symbolSize")})}var Zc=k0;function uFe(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=Pl(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=po(f.p),f.edges=null}var d=n.friction==null?.6:n.friction,h=d,v,p;return{warmUp:function(){h=d*.8},setFixed:function(g){r[g].fixed=!0},setUnfixed:function(g){r[g].fixed=!1},beforeStep:function(g){v=g},afterStep:function(g){p=g},step:function(g){v&&v(r,a);for(var m=[],b=r.length,_=0;_<a.length;_++){var w=a[_];if(!w.ignoreForceLayout){var C=w.n1,S=w.n2;Ks(m,S.p,C.p);var x=dp(m)-w.d,T=S.w/(C.w+S.w);isNaN(T)&&(T=0),xc(m,m),!C.fixed&&Zc(C.p,C.p,m,T*x*h),!S.fixed&&Zc(S.p,S.p,m,-(1-T)*x*h)}}for(var _=0;_<b;_++){var M=r[_];M.fixed||(Ks(m,l,M.p),Zc(M.p,M.p,m,u*h))}for(var _=0;_<b;_++)for(var C=r[_],A=_+1;A<b;A++){var S=r[A];Ks(m,S.p,C.p);var x=dp(m);x===0&&(J6(m,Math.random()-.5,Math.random()-.5),x=1);var k=(C.rep+S.rep)/x/x;!C.fixed&&Zc(C.pp,C.pp,m,k),!S.fixed&&Zc(S.pp,S.pp,m,-k)}for(var E=[],_=0;_<b;_++){var M=r[_];M.fixed||(Ks(E,M.p,M.pp),Zc(M.p,M.p,E,h),Dr(M.pp,M.p))}h=h*.992;var D=h<.01;p&&p(r,a,D),g&&g(D)}}}function cFe(e){e.eachSeriesByType("graph",function(t){var n=t.coordinateSystem;if(!(n&&n.type!=="view"))if(t.get("layout")==="force"){var r=t.preservedPoints||{},a=t.getGraph(),i=a.data,o=a.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?i.each(function(_){var w=i.getId(_);i.setItemLayout(_,r[w]||[NaN,NaN])}):!l||l==="none"?dK(t):l==="circular"&&nE(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=Re(f)?f:[f,f],v=Re(d)?d:[d,d];v=[v[1],v[0]];var p=i.mapArray("value",function(_,w){var C=i.getItemLayout(w),S=sn(_,u,h);return isNaN(S)&&(S=(h[0]+h[1])/2),{w:S,rep:S,fixed:i.getItemModel(w).get("fixed"),p:!C||isNaN(C[0])||isNaN(C[1])?null:C}}),g=o.mapArray("value",function(_,w){var C=a.getEdgeByIndex(w),S=sn(_,c,v);isNaN(S)&&(S=(v[0]+v[1])/2);var x=C.getModel(),T=Ri(C.getModel().get(["lineStyle","curveness"]),-eE(C,t,w,!0),0);return{n1:p[C.node1.dataIndex],n2:p[C.node2.dataIndex],d:S,curveness:T,ignoreForceLayout:x.get("ignoreForceLayout")}}),m=n.getBoundingRect(),b=uFe(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});b.beforeStep(function(_,w){for(var C=0,S=_.length;C<S;C++)_[C].fixed&&Dr(_[C].p,a.getNodeByIndex(C).getLayout())}),b.afterStep(function(_,w,C){for(var S=0,x=_.length;S<x;S++)_[S].fixed||a.getNodeByIndex(S).setLayout(_[S].p),r[i.getId(S)]=_[S].p;for(var S=0,x=w.length;S<x;S++){var T=w[S],M=a.getEdgeByIndex(S),A=T.n1.p,k=T.n2.p,E=M.getLayout();E=E?E.slice():[],E[0]=E[0]||[],E[1]=E[1]||[],Dr(E[0],A),Dr(E[1],k),+T.curveness&&(E[2]=[(A[0]+k[0])/2-(A[1]-k[1])*T.curveness,(A[1]+k[1])/2-(k[0]-A[0])*T.curveness]),M.setLayout(E)}}),t.forceLayout=b,t.preservedPoints=r,b.step()}else t.forceLayout=null})}function fFe(e,t,n){var r=Ie(e.getBoxLayoutParams(),{aspect:n});return Xn(r,{width:t.getWidth(),height:t.getHeight()})}function dFe(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=[];M1(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=fFe(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 Ag;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 GN=ar.prototype,gS=vg.prototype,vK=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(vK);function mS(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var hFe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-line",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new vK},t.prototype.buildPath=function(n,r){mS(r)?GN.buildPath.call(this,n,r):gS.buildPath.call(this,n,r)},t.prototype.pointAt=function(n){return mS(this.shape)?GN.pointAt.call(this,n):gS.pointAt.call(this,n)},t.prototype.tangentAt=function(n){var r=this.shape,a=mS(r)?[r.x2-r.x1,r.y2-r.y1]:gS.tangentAt.call(this,n);return xc(a,a)},t}(zt);const vFe=hFe;var yS=["fromSymbol","toSymbol"];function WN(e){return"_"+e+"Type"}function KN(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=Yd(a),u=Ac(o||0,l);return r+l+u+(i||"")+(s||"")}function UN(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=Yd(a),u=Ac(o||0,l),c=Hn(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=e,c}}function pFe(e){var t=new vFe({name:"line",subPixelOptimize:!0});return j2(t.shape,e),t}function j2(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 gFe=function(e){ge(t,e);function t(n,r,a){var i=e.call(this)||this;return i._createLine(n,r,a),i}return t.prototype._createLine=function(n,r,a){var i=n.hostModel,o=n.getItemLayout(r),s=pFe(o);s.shape.percent=0,xn(s,{shape:{percent:1}},i,r),this.add(s),F(yS,function(l){var u=UN(l,n,r);this.add(u),this[WN(l)]=KN(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:{}};j2(l.shape,s),nn(o,l,i,r),F(yS,function(u){var c=KN(u,n,r),f=WN(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=UN(u,n,r);this.add(d)}this[f]=c},this),this._updateCommonStl(n,r,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(n,r,a){var i=n.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,h=a&&a.blurScope;if(!a||n.hasItemOption){var v=n.getItemModel(r),p=v.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=p.get("disabled"),d=p.get("focus"),h=p.get("blurScope"),c=lr(v)}var g=n.getItemVisual(r,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,F(yS,function(S){var x=this.childOfName(S);if(x){x.setColor(m),x.style.opacity=g.opacity;for(var T=0;T<ta.length;T++){var M=ta[T],A=o.getState(M);if(A){var k=A.style||{},E=x.ensureState(M),D=E.style||(E.style={});k.stroke!=null&&(D[x.__isEmptyBrush?"stroke":"fill"]=k.stroke),k.opacity!=null&&(D.opacity=k.opacity)}}x.markRedraw()}},this);var b=i.getRawValue(r);Tr(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(S,x){return i.getFormattedLabel(S,x,n.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(b==null?n.getName(r):isFinite(b)?Rn(b):b)+""});var _=this.getTextContent();if(_){var w=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=w.get("position")||"middle";var C=w.get("distance");Re(C)||(C=[C,C]),_.__labelDistance=C}this.setTextConfig({position:null,local:!0,inside:!1}),$n(this,d,h,f)},t.prototype.highlight=function(){rs(this)},t.prototype.downplay=function(){as(this)},t.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},t.prototype.setLinePoints=function(n){var r=this.childOfName("line");j2(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=Ks([],f,c);xc(d,d);function h(A,k){var E=A.__specifiedRotation;if(E==null){var D=l.tangentAt(k);A.attr("rotation",(k===1?-1:1)*Math.PI/2-Math.atan2(D[1],D[0]))}else A.attr("rotation",E)}if(r&&(r.setPosition(c),h(r,0),r.scaleX=r.scaleY=o*u,r.markRedraw()),a&&(a.setPosition(f),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var v=void 0,p=void 0,g=i.__labelDistance,m=g[0]*o,b=g[1]*o,_=u/2,w=l.tangentAt(_),C=[w[1],-w[0]],S=l.pointAt(_);C[1]>0&&(C[0]=-C[0],C[1]=-C[1]);var x=w[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(w[1],w[0]);f[0]<c[0]&&(T=Math.PI+T),i.rotation=T}var M=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":M=-b,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":M=b,p="top";break;default:M=0,p="middle"}switch(i.__position){case"end":i.x=d[0]*m+f[0],i.y=d[1]*b+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",p=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*m+c[0],i.y=-d[1]*b+c[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",p=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=m*x+c[0],i.y=c[1]+M,v=w[0]<0?"right":"left",i.originX=-m*x,i.originY=-M;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=S[0],i.y=S[1]+M,v="center",i.originY=-M;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*x+f[0],i.y=f[1]+M,v=w[0]>=0?"right":"left",i.originX=m*x,i.originY=-M;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||v})}},t}(bt);const rE=gFe;var mFe=function(){function e(t){this.group=new bt,this._LineCtor=t||rE}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=YN(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=YN(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!yFe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=n.getItemLayout(a);if(bS(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){Rl(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,n,r){var a=t.getItemLayout(n);if(bS(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(!bS(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 yFe(e){return e.animators&&e.animators.length>0}function YN(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:lr(t)}}function jN(e){return isNaN(e[0])||isNaN(e[1])}function bS(e){return e&&!jN(e[0])&&!jN(e[1])}const aE=mFe;var _S=[],wS=[],SS=[],Jc=fr,CS=nl,qN=Math.abs;function XN(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){_S[0]=Jc(r[0],a[0],i[0],c),_S[1]=Jc(r[1],a[1],i[1],c);var f=qN(CS(_S,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;wS[0]=Jc(r[0],a[0],i[0],s),wS[1]=Jc(r[1],a[1],i[1],s),SS[0]=Jc(r[0],a[0],i[0],h),SS[1]=Jc(r[1],a[1],i[1],h);var f=CS(wS,t)-l;if(qN(f)<.01)break;var v=CS(SS,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 xS(e,t){var n=[],r=hp,a=[[],[],[]],i=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[po(u[0]),po(u[1])],u[2]&&u.__original.push(po(u[2])));var d=u.__original;if(u[2]!=null){if(Dr(a[0],d[0]),Dr(a[1],d[2]),Dr(a[2],d[1]),c&&c!=="none"){var h=Jh(s.node1),v=XN(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=Jh(s.node2),v=XN(a,d[1],h*t);r(a[0][0],a[1][0],a[2][0],v,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],v,n),a[1][1]=n[1],a[2][1]=n[2]}Dr(u[0],a[0]),Dr(u[1],a[2]),Dr(u[2],a[1])}else{if(Dr(i[0],d[0]),Dr(i[1],d[1]),Ks(o,i[1],i[0]),xc(o,o),c&&c!=="none"){var h=Jh(s.node1);k0(i[0],i[0],o,h*t)}if(f&&f!=="none"){var h=Jh(s.node2);k0(i[1],i[1],o,-h*t)}Dr(u[0],i[0]),Dr(u[1],i[1])}})}function ZN(e){return e.type==="view"}var bFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){var a=new Cg,i=new aE,o=this.group;this._controller=new kg(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(ZN(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):nn(u,c,n)}xS(n.getGraph(),Zh(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,a),clearTimeout(this._layoutTimeout);var h=n.forceLayout,v=n.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var p=n.get("layout");f.graph.eachNode(function(_){var w=_.dataIndex,C=_.getGraphicEl(),S=_.getModel();if(C){C.off("drag").off("dragend");var x=S.get("draggable");x&&C.on("drag",function(M){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[C.x,C.y]);break;case"circular":f.setItemLayout(w,[C.x,C.y]),_.setLayout({fixed:!0},!0),nE(n,"symbolSize",_,[M.offsetX,M.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(w,[C.x,C.y]),tE(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),C.setDraggable(x,!!S.get("cursor"));var T=S.get(["emphasis","focus"]);T==="adjacency"&&(Tt(C).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var w=_.getGraphicEl(),C=_.getModel().get(["emphasis","focus"]);w&&C==="adjacency"&&(Tt(w).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var g=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),m=f.getLayout("cx"),b=f.getLayout("cy");f.graph.eachNode(function(_){hK(_,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)&&!Z1(u,a,n)}),!ZN(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){KA(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){UA(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(),xS(n.getGraph(),Zh(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=Zh(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(n){xS(n.getGraph(),Zh(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(vn);const _Fe=bFe;function Qc(e){return"_EC_"+e}var wFe=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[Qc(t)]){var a=new bu(t,n);return a.hostGraph=this,this.nodes.push(a),r[Qc(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[Qc(t)]},e.prototype.addEdge=function(t,n,r){var a=this._nodesMap,i=this._edgesMap;if(Qt(t)&&(t=this.nodes[t]),Qt(n)&&(n=this.nodes[n]),t instanceof bu||(t=a[Qc(t)]),n instanceof bu||(n=a[Qc(n)]),!(!t||!n)){var o=t.id+"-"+n.id,s=new pK(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 bu&&(t=t.id),n instanceof bu&&(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 bu||(n=this._nodesMap[Qc(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}(),bu=function(){function e(t,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=n??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.data.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},n=0;n<this.edges.length;n++){var r=this.edges[n];r.dataIndex<0||(t.edge.push(r.dataIndex),t.node.push(r.node1.dataIndex,r.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=ot(),n=ot(),r=0;r<this.edges.length;r++){var a=this.edges[r];if(!(a.dataIndex<0)){t.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,n.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,n.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:n.keys()}},e}(),pK=function(){function e(t,n,r){this.dataIndex=-1,this.node1=t,this.node2=n,this.dataIndex=r??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.edgeData.getItemModel(this.dataIndex);return r.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=ot(),n=ot();t.set(this.dataIndex,!0);for(var r=[this.node1],a=[this.node2],i=0;i<r.length;){var o=r[i];i++,n.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),r.push(o.inEdges[s].node1)}for(i=0;i<a.length;){var l=a[i];i++,n.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:t.keys(),node:n.keys()}},e}();function gK(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Vn(bu,gK("hostGraph","data"));Vn(pK,gK("hostGraph","edgeData"));const SFe=wFe;function mK(e,t,n,r,a){for(var i=new SFe(r),o=0;o<e.length;o++)i.addNode(rr(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,d=c.target;i.addEdge(f,d,u)&&(l.push(c),s.push(rr(tr(c.id,null),f+" > "+d)),u++)}var h=n.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=Io(e,n);else{var p=Wd.get(h),g=p?p.dimensions||[]:[];$t(g,"value")<0&&g.concat(["value"]);var m=jd(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;v=new Or(m,n),v.initData(e)}var b=new Or(["value"],n);return b.initData(l,s),a&&a(v,b),J7({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var CFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new Mg(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),cc(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){aFe(this);var s=mK(i,a,this,!0,l);return F(s.edges,function(u){iFe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var p=o._categoriesModels,g=v.getShallow("category"),m=p[g];return m&&(m.parentModel=v.parentModel,v.parentModel=m),v});var f=dn.prototype.getModel;function d(v,p){var g=f.call(this,v,p);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=d,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var p=v.slice();return v[0]==="label"?p[0]="edgeLabel":v[1]==="label"&&(p[1]="edgeLabel"),p}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(n,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(n,a),s=i.graph.getEdgeByIndex(n),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),ur("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=OW({series:this,dataIndex:n,multipleSeries:r});return f},t.prototype._updateCategoriesData=function(){var n=Oe(this.option.categories||[],function(a){return a.value!=null?a:Ie({value:0},a)}),r=new Or(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},t.prototype.setZoom=function(n){this.option.zoom=n},t.prototype.setCenter=function(n){this.option.center=n},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(_n);const xFe=CFe;var TFe={type:"graphRoam",event:"graphRoam",update:"none"};function MFe(e){e.registerChartView(_Fe),e.registerSeriesModel(xFe),e.registerProcessor(Qze),e.registerVisual(eFe),e.registerVisual(tFe),e.registerLayout(oFe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,lFe),e.registerLayout(cFe),e.registerCoordinateSystem("graphView",{dimensions:Ag.dimensions,create:dFe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Nn),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Nn),e.registerAction(TFe,function(t,n,r){n.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=jA(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var kFe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),AFe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new kFe},t.prototype.buildPath=function(n,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+a(l)*s,r.y+i(l)*s),n.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),n.lineTo(r.x-a(l)*s,r.y-i(l)*s),n.lineTo(u,c)},t}(zt);const EFe=AFe;function IFe(e,t){var n=e.get("center"),r=t.getWidth(),a=t.getHeight(),i=Math.min(r,a),o=qe(n[0],t.getWidth()),s=qe(n[1],t.getHeight()),l=qe(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Km(e,t){var n=e==null?"":e+"";return t&&(Je(t)?n=t.replace("{value}",n):ut(t)&&(n=t(e))),n}var DFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeAll();var i=n.get(["axisLine","lineStyle","color"]),o=IFe(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?ab:na,v=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];jH(m,!l),u=m[0],c=m[1];for(var b=c-u,_=u,w=[],C=0;v&&C<i.length;C++){var S=Math.min(Math.max(i[C][0],0),1);c=u+b*S;var x=new h({shape:{startAngle:_,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});x.setStyle({fill:i[C][1]}),x.setStyle(p.getLineStyle(["color","width"])),w.push(x),_=c}w.reverse(),F(w,function(M){return s.add(M)});var T=function(M){if(M<=0)return i[0][1];var A;for(A=0;A<i.length;A++)if(i[A][0]>=M&&(A===0?0:i[A-1][0])<M)return i[A][1];return i[A-1][1]};this._renderTicks(n,r,a,T,o,u,c,l,g),this._renderTitleAndDetail(n,r,a,T,o),this._renderAnchor(n,o),this._renderPointer(n,r,a,T,o,u,c,l,g)},t.prototype._renderTicks=function(n,r,a,i,o,s,l,u,c){for(var f=this.group,d=o.cx,h=o.cy,v=o.r,p=+n.get("min"),g=+n.get("max"),m=n.getModel("splitLine"),b=n.getModel("axisTick"),_=n.getModel("axisLabel"),w=n.get("splitNumber"),C=b.get("splitNumber"),S=qe(m.get("length"),v),x=qe(b.get("length"),v),T=s,M=(l-s)/w,A=M/C,k=m.getModel("lineStyle").getLineStyle(),E=b.getModel("lineStyle").getLineStyle(),D=m.get("distance"),L,B,N=0;N<=w;N++){if(L=Math.cos(T),B=Math.sin(T),m.get("show")){var O=D?D+c:c,$=new ar({shape:{x1:L*(v-O)+d,y1:B*(v-O)+h,x2:L*(v-S-O)+d,y2:B*(v-S-O)+h},style:k,silent:!0});k.stroke==="auto"&&$.setStyle({stroke:i(N/w)}),f.add($)}if(_.get("show")){var O=_.get("distance")+D,I=Km(Rn(N/w*(g-p)+p),_.get("formatter")),z=i(N/w),G=L*(v-S-O)+d,U=B*(v-S-O)+h,Z=_.get("rotate"),ae=0;Z==="radial"?(ae=-T+2*Math.PI,ae>Math.PI/2&&(ae+=Math.PI)):Z==="tangential"?ae=-T-Math.PI/2:Qt(Z)&&(ae=Z*Math.PI/180),ae===0?f.add(new Xt({style:gn(_,{text:I,x:G,y:U,verticalAlign:B<-.8?"top":B>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:z}),silent:!0})):f.add(new Xt({style:gn(_,{text:I,x:G,y:U,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:G,originY:U,rotation:ae}))}if(b.get("show")&&N!==w){var O=b.get("distance");O=O?O+c:c;for(var J=0;J<=C;J++){L=Math.cos(T),B=Math.sin(T);var Q=new ar({shape:{x1:L*(v-O)+d,y1:B*(v-O)+h,x2:L*(v-x-O)+d,y2:B*(v-x-O)+h},silent:!0,style:E});E.stroke==="auto"&&Q.setStyle({stroke:i((N+J/C)/w)}),f.add(Q),T+=A}T-=A}else T+=M}},t.prototype._renderPointer=function(n,r,a,i,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,v=[],p=n.get(["pointer","show"]),g=n.getModel("progress"),m=g.get("show"),b=n.getData(),_=b.mapDimension("value"),w=+n.get("min"),C=+n.get("max"),S=[w,C],x=[s,l];function T(A,k){var E=b.getItemModel(A),D=E.getModel("pointer"),L=qe(D.get("width"),o.r),B=qe(D.get("length"),o.r),N=n.get(["pointer","icon"]),O=D.get("offsetCenter"),$=qe(O[0],o.r),I=qe(O[1],o.r),z=D.get("keepAspect"),G;return N?G=Hn(N,$-L/2,I-B,L,B,null,z):G=new EFe({shape:{angle:-Math.PI/2,width:L,r:B,x:$,y:I}}),G.rotation=-(k+Math.PI/2),G.x=o.cx,G.y=o.cy,G}function M(A,k){var E=g.get("roundCap"),D=E?ab:na,L=g.get("overlap"),B=L?g.get("width"):c/b.count(),N=L?o.r-B:o.r-(A+1)*B,O=L?o.r:o.r-A*B,$=new D({shape:{startAngle:s,endAngle:k,cx:o.cx,cy:o.cy,clockwise:u,r0:N,r:O}});return L&&($.z2=C-b.get(_,A)%C),$}(m||p)&&(b.diff(d).add(function(A){var k=b.get(_,A);if(p){var E=T(A,s);xn(E,{rotation:-((isNaN(+k)?x[0]:sn(k,S,x,!0))+Math.PI/2)},n),f.add(E),b.setItemGraphicEl(A,E)}if(m){var D=M(A,s),L=g.get("clip");xn(D,{shape:{endAngle:sn(k,S,x,L)}},n),f.add(D),i2(n.seriesIndex,b.dataType,A,D),v[A]=D}}).update(function(A,k){var E=b.get(_,A);if(p){var D=d.getItemGraphicEl(k),L=D?D.rotation:s,B=T(A,L);B.rotation=L,nn(B,{rotation:-((isNaN(+E)?x[0]:sn(E,S,x,!0))+Math.PI/2)},n),f.add(B),b.setItemGraphicEl(A,B)}if(m){var N=h[k],O=N?N.shape.endAngle:s,$=M(A,O),I=g.get("clip");nn($,{shape:{endAngle:sn(E,S,x,I)}},n),f.add($),i2(n.seriesIndex,b.dataType,A,$),v[A]=$}}).execute(),b.each(function(A){var k=b.getItemModel(A),E=k.getModel("emphasis"),D=E.get("focus"),L=E.get("blurScope"),B=E.get("disabled");if(p){var N=b.getItemGraphicEl(A),O=b.getItemVisual(A,"style"),$=O.fill;if(N instanceof vr){var I=N.style;N.useStyle(Ie({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},O))}else N.useStyle(O),N.type!=="pointer"&&N.setColor($);N.setStyle(k.getModel(["pointer","itemStyle"]).getItemStyle()),N.style.fill==="auto"&&N.setStyle("fill",i(sn(b.get(_,A),S,[0,1],!0))),N.z2EmphasisLift=0,xr(N,k),$n(N,D,L,B)}if(m){var z=v[A];z.useStyle(b.getItemVisual(A,"style")),z.setStyle(k.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,xr(z,k),$n(z,D,L,B)}}),this._progressEls=v)},t.prototype._renderAnchor=function(n,r){var a=n.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=Hn(s,r.cx-o/2+qe(l[0],r.r),r.cy-o/2+qe(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(n,r,a,i,o){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new bt,h=[],v=[],p=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new Xt({silent:!0}),v[m]=new Xt({silent:!0})}).update(function(m,b){h[m]=s._titleEls[b],v[m]=s._detailEls[b]}).execute(),l.each(function(m){var b=l.getItemModel(m),_=l.get(u,m),w=new bt,C=i(sn(_,[c,f],[0,1],!0)),S=b.getModel("title");if(S.get("show")){var x=S.get("offsetCenter"),T=o.cx+qe(x[0],o.r),M=o.cy+qe(x[1],o.r),A=h[m];A.attr({z2:g?0:2,style:gn(S,{x:T,y:M,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:C})}),w.add(A)}var k=b.getModel("detail");if(k.get("show")){var E=k.get("offsetCenter"),D=o.cx+qe(E[0],o.r),L=o.cy+qe(E[1],o.r),B=qe(k.get("width"),o.r),N=qe(k.get("height"),o.r),O=n.get(["progress","show"])?l.getItemVisual(m,"style").fill:C,A=v[m],$=k.get("formatter");A.attr({z2:g?0:2,style:gn(k,{x:D,y:L,text:Km(_,$),width:isNaN(B)?null:B,height:isNaN(N)?null:N,align:"center",verticalAlign:"middle"},{inheritColor:O})}),zG(A,{normal:k},_,function(z){return Km(z,$)}),p&&FG(A,m,l,n,{getFormattedLabel:function(z,G,U,Z,ae,J){return Km(J?J.interpolatedValue:_,$)}}),w.add(A)}d.add(w)}),this.group.add(d),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(vn);const PFe=DFe;var LFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return t.prototype.getInitialData=function(n,r){return Xd(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(_n);const RFe=LFe;function OFe(e){e.registerChartView(PFe),e.registerSeriesModel(RFe)}var $Fe=["itemStyle","opacity"],NFe=function(e){ge(t,e);function t(n,r){var a=e.call(this)||this,i=a,o=new ia,s=new Xt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(n,r,!0),a}return t.prototype.updateData=function(n,r,a){var i=this,o=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get($Fe);c=c??1,a||Gi(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,xn(i,{style:{opacity:c}},o,r)):nn(i,{style:{opacity:c},shape:{points:l.points}},o,r),xr(i,s),this._updateLabel(n,r),$n(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Tr(o,lr(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Pt(h[0][0],h[0][1]):null},nn(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),$A(a,NA(l),{stroke:d})},t}(ra),BFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new NFe(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);Cp(u,n,l)}).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(vn);const VFe=BFe;var zFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Mg(et(this.getData,this),et(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return Xd(this,{coordDimensions:["value"],encodeDefaulter:xt(sA,this)})},t.prototype._defaultLabelLine=function(n){cc(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},t.prototype.getDataParams=function(n){var r=this.getData(),a=e.prototype.getDataParams.call(this,n),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,n)/o*100).toFixed(2):0,a.$vars.push("percent"),a},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(_n);const FFe=zFe;function HFe(e,t){return Xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function GFe(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,function(l){return l}),a=[],i=t==="ascending",o=0,s=e.count();o<s;o++)a[o]=o;return ut(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?r[l]-r[u]:r[u]-r[l]}),a}function WFe(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 KFe(e,t){e.eachSeriesByType("funnel",function(n){var r=n.getData(),a=r.mapDimension("value"),i=n.get("sort"),o=HFe(n,t),s=n.get("orient"),l=o.width,u=o.height,c=GFe(r,i),f=o.x,d=o.y,h=s==="horizontal"?[qe(n.get("minSize"),u),qe(n.get("maxSize"),u)]:[qe(n.get("minSize"),l),qe(n.get("maxSize"),l)],v=r.getDataExtent(a),p=n.get("min"),g=n.get("max");p==null&&(p=Math.min(v[0],0)),g==null&&(g=v[1]);var m=n.get("funnelAlign"),b=n.get("gap"),_=s==="horizontal"?l:u,w=(_-b*(r.count()-1))/r.count(),C=function(L,B){if(s==="horizontal"){var N=r.get(a,L)||0,O=sn(N,[p,g],h,!0),$=void 0;switch(m){case"top":$=d;break;case"center":$=d+(u-O)/2;break;case"bottom":$=d+(u-O);break}return[[B,$],[B,$+O]]}var I=r.get(a,L)||0,z=sn(I,[p,g],h,!0),G;switch(m){case"left":G=f;break;case"center":G=f+(l-z)/2;break;case"right":G=f+l-z;break}return[[G,B],[G+z,B]]};i==="ascending"&&(w=-w,b=-b,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var S=0;S<c.length;S++){var x=c[S],T=c[S+1],M=r.getItemModel(x);if(s==="horizontal"){var A=M.get(["itemStyle","width"]);A==null?A=w:(A=qe(A,l),i==="ascending"&&(A=-A));var k=C(x,f),E=C(T,f+A);f+=A+b,r.setItemLayout(x,{points:k.concat(E.slice().reverse())})}else{var D=M.get(["itemStyle","height"]);D==null?D=w:(D=qe(D,u),i==="ascending"&&(D=-D));var k=C(x,d),E=C(T,d+D);d+=D+b,r.setItemLayout(x,{points:k.concat(E.slice().reverse())})}}WFe(r)})}function UFe(e){e.registerChartView(VFe),e.registerSeriesModel(FFe),e.registerLayout(KFe),e.registerProcessor(Tg("funnel"))}var YFe=.3,jFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new bt,n._initialized=!1,n}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(n,r,a,i){this._progressiveEls=null;var o=this._dataGroup,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.dimensions,f=QN(n);s.diff(l).add(d).update(h).remove(v).execute();function d(g){var m=JN(s,o,g,c,u);TS(m,s,g,f)}function h(g,m){var b=l.getItemGraphicEl(m),_=yK(s,g,c,u);s.setItemGraphicEl(g,b),nn(b,{shape:{points:_}},n,g),Gi(b),TS(b,s,g,f)}function v(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var p=qFe(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=QN(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=JN(i,this._dataGroup,c,s,o);f.incremental=!0,TS(f,i,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(vn);function qFe(e,t,n){var r=e.model,a=e.getRect(),i=new Zt({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=r.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),xn(i,{shape:{width:a.width,height:a.height}},t,n),i}function yK(e,t,n,r){for(var a=[],i=0;i<n.length;i++){var o=n[i],s=e.get(e.mapDimension(o),t);XFe(s,r.getAxis(o).type)||a.push(r.dataToPoint(s,o))}return a}function JN(e,t,n,r,a){var i=yK(e,n,r,a),o=new ia({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function QN(e){var t=e.get("smooth",!0);return t===!0&&(t=YFe),t=xo(t),hd(t)&&(t=0),{smooth:t}}function TS(e,t,n,r){e.useStyle(t.getItemVisual(n,"style")),e.style.fill=null,e.setShape("smooth",r.smooth);var a=t.getItemModel(n),i=a.getModel("emphasis");xr(e,a,"lineStyle"),$n(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function XFe(e,t){return t==="category"?e==null:e==null||isNaN(e)}const ZFe=jFe;var JFe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.getInitialData=function(n,r){return Io(null,this,{useEncodeDefaulter:et(QFe,null,this)})},t.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,a=this.getData(),i=[];return r.eachActiveState(a,function(o,s){n===o&&i.push(a.getRawIndex(s))}),i},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(_n);function QFe(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return F(t.dimensions,function(r){var a=e8e(r);n[r]=a}),n}}function e8e(e){return+e.replace("dim","")}const t8e=JFe;var n8e=["lineStyle","opacity"],r8e={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(n8e,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const a8e=r8e;function i8e(e){o8e(e),s8e(e)}function o8e(e){if(!e.parallel){var t=!1;F(e.series,function(n){n&&n.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function s8e(e){var t=hn(e.parallelAxis);F(t,function(n){if(ht(n)){var r=n.parallelIndex||0,a=hn(e.parallel)[r];a&&a.parallelAxisDefault&&Dt(n,a.parallelAxisDefault,!1)}})}var l8e=5,u8e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this._model=n,this._api=a,this._handlers||(this._handlers={},F(c8e,function(i,o){a.getZr().on(o,this._handlers[o]=et(i,this))},this)),Ud(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(n,r){Ap(this,"_throttledDispatchExpand"),F(this._handlers,function(a,i){r.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},t.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(Ie({type:"parallelAxisExpand"},n))},t.type="parallel",t}(An),c8e={mousedown:function(e){MS(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(MS(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>l8e)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||!MS(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 MS(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const f8e=u8e;var d8e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(n){var r=this.option;n&&Dt(r,n,!0),this._initDimensions()},t.prototype.contains=function(n,r){var a=n.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(n){F(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},t.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],a=ln(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);F(a,function(i){n.push("dim"+i.get("dim")),r.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(Yt);const h8e=d8e;var v8e=function(e){ge(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(gi);const p8e=v8e;function Dc(e,t,n,r,a,i){e=e||0;var o=n[1]-n[0];if(a!=null&&(a=ef(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=ef(s,[0,o]),a=i=ef(s,[a,i]),r=0}t[0]=ef(t[0],n),t[1]=ef(t[1],n);var l=kS(t,r);t[r]+=e;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=ef(t[r],c);var f;return f=kS(t,r),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-r]=t[r]+l.sign*a),f=kS(t,r),i!=null&&f.span>i&&(t[1-r]=t[r]+f.sign*i),t}function kS(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 ef(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var AS=F,bK=Math.min,_K=Math.max,e3=Math.floor,g8e=Math.ceil,t3=Rn,m8e=Math.PI,y8e=function(){function e(t,n,r){this.type="parallel",this._axesMap=ot(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,n,r)}return e.prototype._init=function(t,n,r){var a=t.dimensions,i=t.parallelAxisIndex;AS(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new p8e(o,_g(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();AS(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),pc(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,n){this._rect=Xn(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,n=this._rect,r=["x","y"],a=["width","height"],i=t.get("layout"),o=i==="horizontal"?0:1,s=n[a[o]],l=[0,s],u=this.dimensions.length,c=Um(t.get("axisExpandWidth"),l),f=Um(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=Um(h[1]-h[0],l),h[1]=h[0]+v;else{v=Um(c*(f-1),l);var p=t.get("axisExpandCenter")||e3(u/2);h=[c*p-v/2],h[1]=h[0]+v}var g=(s-v)/(u-f);g<3&&(g=0);var m=[e3(t3(h[0]/c,1))+1,g8e(t3(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])}),AS(r,function(o,s){var l=(a.axisExpandable?_8e:b8e)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:m8e/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],h=Ra();Ll(h,h,d),zi(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(t),n)},e.prototype.eachActiveState=function(t,n,r,a){r==null&&(r=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];F(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=r;c<a;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=t.getValues(s,c),h=0,v=o.length;h<v;h++){var p=l[h].getActiveState(d[h]);if(p==="inactive"){f="inactive";break}}}n(f,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,n=this._axesMap,r=!1,a=0,i=t.length;a<i;a++)n.get(t[a]).model.getActiveState()!=="normal"&&(r=!0);return r},e.prototype.axisCoordToPoint=function(t,n){var r=this._axesLayout[n];return Ni([t,0],r.transform)},e.prototype.getAxisLayout=function(t){return pt(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var n=this._makeLayoutInfo(),r=n.pixelDimIndex,a=n.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:a};var s=t[r]-n.layoutBase-n.axisExpandWindow0Pos,l,u="slide",c=n.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):d&&c&&s>i*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?Dc(l,a,o,"all"):u="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[_K(0,v-h/2)],a[1]=bK(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},e}();function Um(e,t){return bK(_K(e,t[0]),t[1])}function b8e(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function _8e(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 w8e=y8e;function S8e(e,t){var n=[];return e.eachComponent("parallel",function(r,a){var i=new w8e(r,e,t);i.name="parallel_"+a,i.resize(r,t),r.coordinateSystem=i,i.model=r,n.push(i)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var a=r.getReferringComponents("parallel",Wn).models[0];r.coordinateSystem=a.coordinateSystem}}),n}var C8e={create:S8e};const x8e=C8e;var wK=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.activeIntervals=[],n}return t.prototype.getAreaSelectStyle=function(){return dc([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=pt(n);if(r)for(var a=r.length-1;a>=0;a--)Ia(r[a])},t.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=n&&n<=a[1])return"active"}else for(var i=0,o=r.length;i<o;i++)if(r[i][0]<=n&&n<=r[i][1])return"active";return"inactive"},t}(Yt);Vn(wK,qd);const n3=wK;var gc=!0,Vp=Math.min,bd=Math.max,T8e=Math.pow,M8e=1e4,k8e=6,A8e=6,r3="globalPan",E8e={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},I8e={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},a3={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},D8e=0,P8e=function(e){ge(t,e);function t(n){var r=e.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new bt,r._uid="brushController_"+D8e++,F(V8e,function(a,i){this._handlers[i]=et(a,this)},r),r}return t.prototype.enableBrush=function(n){return this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},t.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||HVe(r,r3,this._uid),F(this._handlers,function(a,i){r.on(i,a)}),this._brushType=n.brushType,this._brushOption=Dt(pt(a3),n,!0)},t.prototype._doDisableBrush=function(){var n=this._zr;GVe(n,r3,this._uid),F(this._handlers,function(r,a){n.off(a,r)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};F(n,function(a){r[a.panelId]=pt(a)})}else this._panels=null;return this},t.prototype.mount=function(n){n=n||{},this._enableGlobalPan=n.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=r.getLocalTransform(),this},t.prototype.updateCovers=function(n){n=Oe(n,function(d){return Dt(pt(a3),d,!0)});var r="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new is(a,n,u,l).add(c).update(c).remove(f).execute(),this;function l(d,h){return(d.id!=null?d.id:r+h)+"-"+d.brushType}function u(d,h){return l(d.__brushOption,h)}function c(d,h){var v=n[d];if(h!=null&&a[h]===s)i[d]=a[h];else{var p=i[d]=h!=null?(a[h].__brushOption=v,a[h]):CK(o,SK(o,v));iE(o,p)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},t.prototype.unmount=function(){return this.enableBrush(!1),q2(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(di);function SK(e,t){var n=t_[t.brushType].createCover(e,t);return n.__brushOption=t,TK(n,t),e.group.add(n),n}function CK(e,t){var n=oE(t);return n.endCreating&&(n.endCreating(e,t),TK(t,t.__brushOption)),t}function xK(e,t){var n=t.__brushOption;oE(t).updateCoverShape(e,t,n.range,n)}function TK(e,t){var n=t.z;n==null&&(n=M8e),e.traverse(function(r){r.z=n,r.z2=n})}function iE(e,t){oE(t).updateCommon(e,t),xK(e,t)}function oE(e){return t_[e.__brushOption.brushType]}function sE(e,t,n){var r=e._panels;if(!r)return gc;var a,i=e._transform;return F(r,function(o){o.isTargetByCursor(t,n,i)&&(a=o)}),a}function MK(e,t){var n=e._panels;if(!n)return gc;var r=t.__brushOption.panelId;return r!=null?n[r]:gc}function q2(e){var t=e._covers,n=t.length;return F(t,function(r){e.group.remove(r)},e),t.length=0,!!n}function mc(e,t){var n=Oe(e._covers,function(r){var a=r.__brushOption,i=pt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function L8e(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=T8e(a*a+i*i,.5);return o>k8e}function kK(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function AK(e,t,n,r){var a=new bt;return a.add(new Zt({name:"main",style:lE(n),silent:!0,draggable:!0,cursor:"move",drift:xt(i3,e,t,a,["n","s","w","e"]),ondragend:xt(mc,t,{isEnd:!0})})),F(r,function(i){a.add(new Zt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xt(i3,e,t,a,i),ondragend:xt(mc,t,{isEnd:!0})}))}),a}function EK(e,t,n,r){var a=r.brushStyle.lineWidth||0,i=bd(a,A8e),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],f=n[1][1],d=c-i+a/2,h=f-i+a/2,v=c-o,p=f-s,g=v+a,m=p+a;Ro(e,t,"main",o,s,v,p),r.transformable&&(Ro(e,t,"w",l,u,i,m),Ro(e,t,"e",d,u,i,m),Ro(e,t,"n",l,u,g,i),Ro(e,t,"s",l,h,g,i),Ro(e,t,"nw",l,u,i,i),Ro(e,t,"ne",d,u,i,i),Ro(e,t,"sw",l,h,i,i),Ro(e,t,"se",d,h,i,i))}function X2(e,t){var n=t.__brushOption,r=n.transformable,a=t.childAt(0);a.useStyle(lE(n)),a.attr({silent:!r,cursor:r?"move":"default"}),F([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?Z2(e,i[0]):O8e(e,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?I8e[s]+"-resize":null})})}function Ro(e,t,n,r,a,i,o){var s=t.childOfName(n);s&&s.setShape(N8e(uE(e,t,[[r,a],[r+i,a+o]])))}function lE(e){return ft({strokeNoScale:!0},e.brushStyle)}function IK(e,t,n,r){var a=[Vp(e,n),Vp(t,r)],i=[bd(e,n),bd(t,r)];return[[a[0],i[0]],[a[1],i[1]]]}function R8e(e){return il(e.group)}function Z2(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=L1(n[t],R8e(e));return r[a]}function O8e(e,t){var n=[Z2(e,t[0]),Z2(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function i3(e,t,n,r,a,i){var o=n.__brushOption,s=e.toRectRange(o.range),l=DK(t,a,i);F(r,function(u){var c=E8e[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(IK(s[0][0],s[1][0],s[0][1],s[1][1])),iE(t,n),mc(t,{isEnd:!1})}function $8e(e,t,n,r){var a=t.__brushOption.range,i=DK(e,n,r);F(a,function(o){o[0]+=i[0],o[1]+=i[1]}),iE(e,t),mc(e,{isEnd:!1})}function DK(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 uE(e,t,n){var r=MK(e,t);return r&&r!==gc?r.clipPath(n,e._transform):pt(n)}function N8e(e){var t=Vp(e[0][0],e[1][0]),n=Vp(e[0][1],e[1][1]),r=bd(e[0][0],e[1][0]),a=bd(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:a-n}}function B8e(e,t,n){if(!(!e._brushType||z8e(e,t.offsetX,t.offsetY))){var r=e._zr,a=e._covers,i=sE(e,t,n);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===gc||s.panelId===i.panelId)&&t_[s.brushType].contain(a[o],n[0],n[1]))return}i&&r.setCursorStyle("crosshair")}}function J2(e){var t=e.event;t.preventDefault&&t.preventDefault()}function Q2(e,t,n){return e.childOfName("main").contain(t,n)}function PK(e,t,n,r){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),L8e(e)||a){if(i&&!a){o.brushMode==="single"&&q2(e);var l=pt(o);l.brushType=o3(l.brushType,i),l.panelId=i===gc?null:i.panelId,a=e._creatingCover=SK(e,l),e._covers.push(a)}if(a){var u=t_[o3(e._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(uE(e,a,e._track)),r&&(CK(e,a),u.updateCommon(e,a)),xK(e,a),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&sE(e,t,n)&&q2(e)&&(s={isEnd:r,removeOnClick:!0});return s}function o3(e,t){return e==="auto"?t.defaultBrushType:e}var V8e={mousedown:function(e){if(this._dragging)s3(this,e);else if(!e.target||!e.target.draggable){J2(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=sE(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(B8e(this,e,r),this._dragging){J2(e);var a=PK(this,e,r,!1);a&&mc(this,a)}},mouseup:function(e){s3(this,e)}};function s3(e,t){if(e._dragging){J2(t);var n=t.offsetX,r=t.offsetY,a=e.group.transformCoordToLocal(n,r),i=PK(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&mc(e,i)}}function z8e(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var t_={lineX:l3(0),lineY:l3(1),rect:{createCover:function(e,t){function n(r){return r}return AK({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=kK(e);return IK(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){EK(e,t,n,r)},updateCommon:X2,contain:Q2},polygon:{createCover:function(e,t){var n=new bt;return n.add(new ia({name:"main",style:lE(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new ra({name:"main",draggable:!0,drift:xt($8e,e,t),ondragend:xt(mc,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:uE(e,t,n)})},updateCommon:X2,contain:Q2}};function l3(e){return{createCover:function(t,n){return AK({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=kK(t),r=Vp(n[0][e],n[1][e]),a=bd(n[0][e],n[1][e]);return[r,a]},updateCoverShape:function(t,n,r,a){var i,o=MK(t,n);if(o!==gc&&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(),EK(t,n,l,a)},updateCommon:X2,contain:Q2}}const cE=P8e;function LK(e){return e=fE(e),function(t){return Xk(t,e)}}function RK(e,t){return e=fE(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 OK(e,t,n){var r=fE(e);return function(a,i){return r.contain(i[0],i[1])&&!Z1(a,t,n)}}function fE(e){return Rt.create(e)}var F8e=["axisLine","axisTickLabel","axisName"],H8e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){e.prototype.init.apply(this,arguments),(this._brushController=new cE(r.getZr())).on("brush",et(this._onBrush,this))},t.prototype.render=function(n,r,a,i){if(!G8e(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new bt,this.group.add(this._axisGroup),!!n.get("show")){var s=K8e(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),h=Ie({strokeContainThreshold:c},d),v=new ss(n,h);F(F8e,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,n,s,c,a),gg(o,this._axisGroup,n)}}},t.prototype._refreshBrushController=function(n,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Rt.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:LK(f),isTargetByCursor:OK(f,s,i),getLinearBrushOtherExtent:RK(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(W8e(a))},t.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=Oe(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(An);function G8e(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function W8e(e){var t=e.axis;return Oe(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function K8e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const U8e=H8e;var Y8e={type:"axisAreaSelect",event:"axisAreaSelected"};function j8e(e){e.registerAction(Y8e,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 q8e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function $K(e){e.registerComponentView(f8e),e.registerComponentModel(h8e),e.registerCoordinateSystem("parallel",x8e),e.registerPreprocessor(i8e),e.registerComponentModel(n3),e.registerComponentView(U8e),yd(e,"parallel",n3,q8e),j8e(e)}function X8e(e){Bt($K),e.registerChartView(ZFe),e.registerSeriesModel(t8e),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,a8e)}var Z8e=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}(),J8e=function(e){ge(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new Z8e},t.prototype.buildPath=function(n,r){var a=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+a,r.y2),n.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(n.lineTo(r.x2,r.y2+a),n.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),n.closePath()},t.prototype.highlight=function(){rs(this)},t.prototype.downplay=function(){as(this)},t}(zt),Q8e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return t.prototype.render=function(n,r,a){var i=this,o=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),h=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var p=new J8e,g=Tt(p);g.dataIndex=v.dataIndex,g.seriesIndex=n.seriesIndex,g.dataType="edge";var m=v.getModel(),b=m.getModel("lineStyle"),_=b.get("curveness"),w=v.node1.getLayout(),C=v.node1.getModel(),S=C.get("localX"),x=C.get("localY"),T=v.node2.getLayout(),M=v.node2.getModel(),A=M.get("localX"),k=M.get("localY"),E=v.getLayout(),D,L,B,N,O,$,I,z;p.shape.extent=Math.max(1,E.dy),p.shape.orient=h,h==="vertical"?(D=(S!=null?S*u:w.x)+E.sy,L=(x!=null?x*c:w.y)+w.dy,B=(A!=null?A*u:T.x)+E.ty,N=k!=null?k*c:T.y,O=D,$=L*(1-_)+N*_,I=B,z=L*_+N*(1-_)):(D=(S!=null?S*u:w.x)+w.dx,L=(x!=null?x*c:w.y)+E.sy,B=A!=null?A*u:T.x,N=(k!=null?k*c:T.y)+E.ty,O=D*(1-_)+B*_,$=L,I=D*_+B*(1-_),z=N),p.setShape({x1:D,y1:L,x2:B,y2:N,cpx1:O,cpy1:$,cpx2:I,cpy2:z}),p.useStyle(b.getItemStyle()),u3(p.style,h,v);var G=""+m.get("value"),U=lr(m,"edgeLabel");Tr(p,U,{labelFetcher:{getFormattedLabel:function(J,Q,ee,j,de,ve){return n.getFormattedLabel(J,Q,"edge",j,Ri(de,U.normal&&U.normal.get("formatter"),G),ve)}},labelDataIndex:v.dataIndex,defaultText:G}),p.setTextConfig({position:"inside"});var Z=m.getModel("emphasis");xr(p,m,"lineStyle",function(J){var Q=J.getItemStyle();return u3(Q,h,v),Q}),s.add(p),d.setItemGraphicEl(v.dataIndex,p);var ae=Z.get("focus");$n(p,ae==="adjacency"?v.getAdjacentDataIndices():ae==="trajectory"?v.getTrajectoryDataIndices():ae,Z.get("blurScope"),Z.get("disabled"))}),o.eachNode(function(v){var p=v.getLayout(),g=v.getModel(),m=g.get("localX"),b=g.get("localY"),_=g.getModel("emphasis"),w=new Zt({shape:{x:m!=null?m*u:p.x,y:b!=null?b*c:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});Tr(w,lr(g),{labelFetcher:{getFormattedLabel:function(S,x){return n.getFormattedLabel(S,x,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),w.disableLabelAnimation=!0,w.setStyle("fill",v.getVisual("color")),w.setStyle("decal",v.getVisual("style").decal),xr(w,g),s.add(w),f.setItemGraphicEl(v.dataIndex,w),Tt(w).dataType="node";var C=_.get("focus");$n(w,C==="adjacency"?v.getAdjacentDataIndices():C==="trajectory"?v.getTrajectoryDataIndices():C,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(v,p){var g=f.getItemModel(p);g.get("draggable")&&(v.drift=function(m,b){i._focusAdjacencyDisabled=!0,this.shape.x+=m,this.shape.y+=b,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(e6e(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(vn);function u3(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),a=n.node2.getVisual("color");Je(r)&&Je(a)&&(e.fill=new Od(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function e6e(e,t,n){var r=new Zt({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return xn(r,{shape:{width:e.width+20}},t,n),r}const t6e=Q8e;var n6e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){var a=n.edges||n.links,i=n.data||n.nodes,o=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new dn(o[l],this,r));if(i&&a){var u=mK(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,v){var p=h.parentModel,g=p.getData().getItemLayout(v);if(g){var m=g.depth,b=p.levelModels[m];b&&(h.parentModel=b)}return h}),d.wrapMethod("getItemModel",function(h,v){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(v),m=g.node1.getLayout();if(m){var b=m.depth,_=p.levelModels[b];_&&(h.parentModel=_)}return h})}},t.prototype.setNodePosition=function(n,r){var a=this.option.data||this.option.nodes,i=a[n];i.localX=r[0],i.localY=r[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(n,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(n,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ur("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,a).data.name;return ur("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(n,r){var a=e.prototype.getDataParams.call(this,n,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(n),o=i.getLayout().value;a.value=o}return a},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(_n);const r6e=n6e;function a6e(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=i6e(n,t);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;s6e(u);var f=ln(u,function(p){return p.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),v=n.get("nodeAlign");o6e(u,c,r,a,o,s,d,h,v)})}function i6e(e,t){return Xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function o6e(e,t,n,r,a,i,o,s,l){l6e(e,t,n,a,i,s,l),d6e(e,t,i,a,r,o,s),w6e(e,s)}function s6e(e){F(e,function(t){var n=ll(t.outEdges,cb),r=ll(t.inEdges,cb),a=t.getValue()||0,i=Math.max(n,r,a);t.setLayout({value:i},!0)})}function l6e(e,t,n,r,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<t.length;d++)s[d]=1;for(var d=0;d<e.length;d++)l[d]=e[d].inEdges.length,l[d]===0&&u.push(e[d]);for(var h=-1;u.length;){for(var v=0;v<u.length;v++){var p=u[v],g=p.hostGraph.data.getRawDataItem(p.dataIndex),m=g.depth!=null&&g.depth>=0;m&&g.depth>h&&(h=g.depth),p.setLayout({depth:m?g.depth:f},!0),i==="vertical"?p.setLayout({dy:n},!0):p.setLayout({dx:n},!0);for(var b=0;b<p.outEdges.length;b++){var _=p.outEdges[b],w=t.indexOf(_);s[w]=0;var C=_.node2,S=e.indexOf(C);--l[S]===0&&c.indexOf(C)<0&&c.push(C)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var x=h>f-1?h:f-1;o&&o!=="left"&&u6e(e,o,i,x);var T=i==="vertical"?(a-n)/x:(r-n)/x;f6e(e,T,i)}function NK(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function u6e(e,t,n,r){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}F(e,function(f){NK(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&c6e(e,r)}function c6e(e,t){F(e,function(n){!NK(n)&&!n.outEdges.length&&n.setLayout({depth:t},!0)})}function f6e(e,t,n){F(e,function(r){var a=r.getLayout().depth*t;n==="vertical"?r.setLayout({y:a},!0):r.setLayout({x:a},!0)})}function d6e(e,t,n,r,a,i,o){var s=h6e(e,o);v6e(s,t,n,r,a,o),ES(s,a,n,r,o);for(var l=1;i>0;i--)l*=.99,p6e(s,l,o),ES(s,a,n,r,o),_6e(s,l,o),ES(s,a,n,r,o)}function h6e(e,t){var n=[],r=t==="vertical"?"y":"x",a=t2(e,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),F(a.keys,function(i){n.push(a.buckets.get(i))}),n}function v6e(e,t,n,r,a,i){var o=1/0;F(e,function(s){var l=s.length,u=0;F(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(n-(l-1)*a)/u;c<o&&(o=c)}),F(e,function(s){F(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),F(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function ES(e,t,n,r,a){var i=a==="vertical"?"x":"y";F(e,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,c=0,f=o.length,d=a==="vertical"?"dx":"dy",h=0;h<f;h++)l=o[h],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+t;var v=a==="vertical"?r:n;if(u=c-t-v,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function p6e(e,t,n){F(e.slice().reverse(),function(r){F(r,function(a){if(a.outEdges.length){var i=ll(a.outEdges,g6e,n)/ll(a.outEdges,cb);if(isNaN(i)){var o=a.outEdges.length;i=o?ll(a.outEdges,m6e,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-wl(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-wl(a,n))*t;a.setLayout({y:l},!0)}}})})}function g6e(e,t){return wl(e.node2,t)*e.getValue()}function m6e(e,t){return wl(e.node2,t)}function y6e(e,t){return wl(e.node1,t)*e.getValue()}function b6e(e,t){return wl(e.node1,t)}function wl(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function cb(e){return e.getValue()}function ll(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 _6e(e,t,n){F(e,function(r){F(r,function(a){if(a.inEdges.length){var i=ll(a.inEdges,y6e,n)/ll(a.inEdges,cb);if(isNaN(i)){var o=a.inEdges.length;i=o?ll(a.inEdges,b6e,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-wl(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-wl(a,n))*t;a.setLayout({y:l},!0)}}})})}function w6e(e,t){var n=t==="vertical"?"x":"y";F(e,function(r){r.outEdges.sort(function(a,i){return a.node2.getLayout()[n]-i.node2.getLayout()[n]}),r.inEdges.sort(function(a,i){return a.node1.getLayout()[n]-i.node1.getLayout()[n]})}),F(e,function(r){var a=0,i=0;F(r.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),F(r.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function S6e(e){e.eachSeriesByType("sankey",function(t){var n=t.getGraph(),r=n.nodes,a=n.edges;if(r.length){var i=1/0,o=-1/0;F(r,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),F(r,function(s){var l=new wr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&F(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function C6e(e){e.registerChartView(t6e),e.registerSeriesModel(r6e),e.registerLayout(a6e),e.registerVisual(S6e),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 BK=function(){function e(){}return e.prototype.getInitialData=function(t,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),i=n.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",r=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[a,i],v=h[c].get("type"),p=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];F(g,function(w,C){var S;Re(w)?(S=w.slice(),w.unshift(C)):Re(w.value)?(S=Ie({},w),S.value=S.value.slice(),w.value.unshift(C)):S=w,m.push(S)}),t.data=m}var b=this.defaultValueDimensions,_=[{name:f,type:J0(v),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:J0(p),dimsDef:b.slice()}];return Xd(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:xt(oW,_,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),VK=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(_n);Vn(VK,BK,!0);const x6e=VK;var T6e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.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=c3(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var d=i.getItemLayout(u);f?(Gi(f),zK(d,f,i,u)):f=c3(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},t.prototype.remove=function(n){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},t.type="boxplot",t}(vn),M6e=function(){function e(){}return e}(),k6e=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new M6e},t.prototype.buildPath=function(n,r){var a=r.points,i=0;for(n.moveTo(a[i][0],a[i][1]),i++;i<4;i++)n.lineTo(a[i][0],a[i][1]);for(n.closePath();i<a.length;i++)n.moveTo(a[i][0],a[i][1]),i++,n.lineTo(a[i][0],a[i][1])},t}(zt);function c3(e,t,n,r,a){var i=e.ends,o=new k6e({shape:{points:a?A6e(i,r,e):i}});return zK(e,o,t,n,a),o}function zK(e,t,n,r,a){var i=n.hostModel,o=mg[a?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},i,r),t.useStyle(n.getItemVisual(r,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");xr(t,s),$n(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function A6e(e,t,n){return Oe(e,function(r){return r=r.slice(),r[t]=n.initBaseline,r})}const E6e=T6e;var Ev=F;function I6e(e){var t=D6e(e);Ev(t,function(n){var r=n.seriesModels;r.length&&(P6e(n),Ev(r,function(a,i){L6e(a,n.boxOffsetList[i],n.boxWidthList[i])}))})}function D6e(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(r){var a=r.getBaseAxis(),i=$t(n,a);i<0&&(i=n.length,n[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(r)}),t}function P6e(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;Ev(n,function(v){l=Math.max(l,v.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Ev(n,function(v){var p=v.get("boxWidth");Re(p)||(p=[p,p]),o.push([qe(p[0],s)||0,qe(p[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,h=d/2-c/2;Ev(n,function(v,p){i.push(h),h+=f+d,a.push(Math.min(Math.max(d,o[p][0]),o[p][1]))})}function L6e(e,t,n){var r=e.coordinateSystem,a=e.getData(),i=n/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<a.count();f++){var d=a.get(u,f),h=_(d,c[2],f),v=_(d,c[0],f),p=_(d,c[1],f),g=_(d,c[3],f),m=_(d,c[4],f),b=[];w(b,p,!1),w(b,g,!0),b.push(v,p,m,g),C(b,v),C(b,m),C(b,h),a.setItemLayout(f,{initBaseline:h[s],ends:b})}function _(S,x,T){var M=a.get(x,T),A=[];A[o]=S,A[s]=M;var k;return isNaN(S)||isNaN(M)?k=[NaN,NaN]:(k=r.dataToPoint(A),k[o]+=t),k}function w(S,x,T){var M=x.slice(),A=x.slice();M[o]+=i,A[o]-=i,T?S.push(M,A):S.push(A,M)}function C(S,x){var T=x.slice(),M=x.slice();T[o]-=i,M[o]+=i,S.push(T,M)}}function R6e(e,t){t=t||{};for(var n=[],r=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=Ia(e[o].slice()),l=Vy(s,.25),u=Vy(s,.5),c=Vy(s,.75),f=s[0],d=s[s.length-1],h=(a??1.5)*(c-l),v=i?f:Math.max(f,l-h),p=i?d:Math.min(d,c+h),g=t.itemNameFormatter,m=ut(g)?g({value:o}):Je(g)?g.replace("{value}",o+""):o+"";n.push([m,v,l,u,c,p]);for(var b=0;b<s.length;b++){var _=s[b];if(_<v||_>p){var w=[m,_];r.push(w)}}}return{boxData:n,outliers:r}}var O6e={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==Br){var r="";an(r)}var a=R6e(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function $6e(e){e.registerSeriesModel(x6e),e.registerChartView(E6e),e.registerLayout(I6e),e.registerTransform(O6e)}var N6e=["color","borderColor"],B6e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},t.prototype.incrementalPrepareRender=function(n,r,a){this._clear(),this._updateDrawMode(n)},t.prototype.incrementalRender=function(n,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},t.prototype.eachRendered=function(n){Rl(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&&f3(u,f))return;var d=IS(f,c,!0);xn(d,{shape:{points:f.ends}},n,c),DS(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&&f3(u,h)){i.remove(d);return}d?(nn(d,{shape:{points:h.ends}},n,c),Gi(d)):d=IS(h),DS(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(),d3(n,this.group);var r=n.get("clip",!0)?X1(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=IS(s);DS(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){d3(r,this.group,this._progressiveEls,!0)},t.prototype.remove=function(n){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(vn),V6e=function(){function e(){}return e}(),z6e=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new V6e},t.prototype.buildPath=function(n,r){var a=r.points;this.__simpleBox?(n.moveTo(a[4][0],a[4][1]),n.lineTo(a[6][0],a[6][1])):(n.moveTo(a[0][0],a[0][1]),n.lineTo(a[1][0],a[1][1]),n.lineTo(a[2][0],a[2][1]),n.lineTo(a[3][0],a[3][1]),n.closePath(),n.moveTo(a[4][0],a[4][1]),n.lineTo(a[5][0],a[5][1]),n.moveTo(a[6][0],a[6][1]),n.lineTo(a[7][0],a[7][1]))},t}(zt);function IS(e,t,n){var r=e.ends;return new z6e({shape:{points:n?F6e(r,e):r},z2:100})}function f3(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 DS(e,t,n,r){var a=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,xr(e,a)}function F6e(e,t){return Oe(e,function(n){return n=n.slice(),n[1]=t.initBaseline,n})}var H6e=function(){function e(){}return e}(),PS=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new H6e},t.prototype.buildPath=function(n,r){for(var a=r.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];n.moveTo(o,a[i++]),n.lineTo(o,a[i++])}else i+=3},t}(zt);function d3(e,t,n,r){var a=e.getData(),i=a.getLayout("largePoints"),o=new PS({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new PS({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new PS({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),LS(1,o,e),LS(-1,s,e),LS(0,l,e),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function LS(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(N6e);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const G6e=B6e;var FK=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(n,r,a){var i=r.getItemLayout(n);return i&&a.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(_n);Vn(FK,BK,!0);const W6e=FK;function K6e(e){!e||!Re(e.series)||F(e.series,function(t){ht(t)&&t.type==="k"&&(t.type="candlestick")})}var U6e=["itemStyle","borderColor"],Y6e=["itemStyle","borderColor0"],j6e=["itemStyle","borderColorDoji"],q6e=["itemStyle","color"],X6e=["itemStyle","color0"],Z6e={seriesType:"candlestick",plan:Kd(),performRawSeries:!0,reset:function(e,t){function n(i,o){return o.get(i>0?q6e:X6e)}function r(i,o){return o.get(i===0?j6e:i>0?U6e:Y6e)}if(!t.isSeriesFiltered(e)){var a=e.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=n(u,l),c.stroke=r(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");Ie(f,c)}}}}}};const J6e=Z6e;var Q6e={seriesType:"candlestick",plan:Kd(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=eHe(e,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=Oe(n.mapDimensionsAll(o[i]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?v:h};function h(p,g){for(var m,b=g.getStore();(m=p.next())!=null;){var _=b.get(s,m),w=b.get(u,m),C=b.get(c,m),S=b.get(f,m),x=b.get(d,m),T=Math.min(w,C),M=Math.max(w,C),A=O(T,_),k=O(M,_),E=O(S,_),D=O(x,_),L=[];$(L,k,0),$(L,A,1),L.push(z(D),z(k),z(E),z(A));var B=g.getItemModel(m),N=!!B.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:h3(b,m,w,C,c,N),initBaseline:w>C?k[i]:A[i],ends:L,brushRect:I(S,x,_)})}function O(G,U){var Z=[];return Z[a]=U,Z[i]=G,isNaN(U)||isNaN(G)?[NaN,NaN]:t.dataToPoint(Z)}function $(G,U,Z){var ae=U.slice(),J=U.slice();ae[a]=Hy(ae[a]+r/2,1,!1),J[a]=Hy(J[a]-r/2,1,!0),Z?G.push(ae,J):G.push(J,ae)}function I(G,U,Z){var ae=O(G,Z),J=O(U,Z);return ae[a]-=r/2,J[a]-=r/2,{x:ae[0],y:ae[1],width:r,height:J[1]-ae[1]}}function z(G){return G[a]=Hy(G[a],1),G}}function v(p,g){for(var m=fo(p.count*4),b=0,_,w=[],C=[],S,x=g.getStore(),T=!!e.get(["itemStyle","borderColorDoji"]);(S=p.next())!=null;){var M=x.get(s,S),A=x.get(u,S),k=x.get(c,S),E=x.get(f,S),D=x.get(d,S);if(isNaN(M)||isNaN(E)||isNaN(D)){m[b++]=NaN,b+=3;continue}m[b++]=h3(x,S,A,k,c,T),w[a]=M,w[i]=E,_=t.dataToPoint(w,null,C),m[b++]=_?_[0]:NaN,m[b++]=_?_[1]:NaN,w[i]=D,_=t.dataToPoint(w,null,C),m[b++]=_?_[1]:NaN}g.setLayout("largePoints",m)}}};function h3(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 eHe(e,t){var n=e.getBaseAxis(),r,a=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/t.count()),i=qe(Lt(e.get("barMaxWidth"),a),a),o=qe(Lt(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?qe(s,a):Math.max(Math.min(a/2,i),o)}const tHe=Q6e;function nHe(e){e.registerChartView(G6e),e.registerSeriesModel(W6e),e.registerPreprocessor(K6e),e.registerVisual(J6e),e.registerLayout(tHe)}function v3(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 rHe=function(e){ge(t,e);function t(n,r){var a=e.call(this)||this,i=new Sg(n,r),o=new bt;return a.add(i),a.add(o),a.updateData(n,r),a}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,a=n.color,i=n.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=Hn(r,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*n.period+n.effectOffset;l.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(n.period,{opacity:0}).delay(u).start(),o.add(l)}v3(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}}v3(a,n)},t.prototype.highlight=function(){rs(this)},t.prototype.downplay=function(){as(this)},t.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},t.prototype.updateData=function(n,r){var a=this,i=n.hostModel;this.childAt(0).updateData(n,r);var o=this.childAt(1),s=n.getItemModel(r),l=n.getItemVisual(r,"symbol"),u=Yd(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=Ac(n.getItemVisual(r,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var v=n.getItemVisual(r,"symbolRotate");o.rotation=(v||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=r/n.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=f,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,$n(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(n){n&&n()},t}(bt);const aHe=rHe;var iHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._symbolDraw=new Cg(aHe)},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=xg("").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=tH(r.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(vn);const oHe=iHe;var sHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n,r){return Io(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(_n);const lHe=sHe;function uHe(e){e.registerChartView(oHe),e.registerSeriesModel(lHe),e.registerLayout(xg("effectScatter"))}var cHe=function(e){ge(t,e);function t(n,r,a){var i=e.call(this)||this;return i.add(i.createLine(n,r,a)),i._updateEffectSymbol(n,r),i}return t.prototype.createLine=function(n,r,a){return new rE(n,r,a)},t.prototype._updateEffectSymbol=function(n,r){var a=n.getItemModel(r),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");Re(o)||(o=[o,o]);var l=n.getItemVisual(r,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Hn(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(n,i,r))},t.prototype._updateEffectAnimation=function(n,r,a){var i=this.childAt(1);if(i){var o=n.getItemLayout(a),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),c=r.get("constantSpeed"),f=rr(r.get("delay"),function(h){return h/n.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;ut(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(n,r,a,i,o){if(r>0){n.__t=0;var s=this,l=n.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(n)});i||l.done(function(){s.remove(n)}),l.start()}},t.prototype._getLineLength=function(n){return Go(n.__p1,n.__cp1)+Go(n.__cp1,n.__p2)},t.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(n,r,a){this.childAt(0).updateData(n,r,a),this._updateEffectSymbol(n,r)},t.prototype._updateSymbolPosition=function(n){var r=n.__p1,a=n.__p2,i=n.__cp1,o=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=fr,c=zx;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var f=n.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),d=n.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT<n.__t?(n.scaleY=Go(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):n.__lastT===1?n.scaleY=2*Go(r,s):n.scaleY=this._symbolScale[1]),n.__lastT=n.__t,n.ignore=!1,n.x=s[0],n.y=s[1]},t.prototype.updateLayout=function(n,r){this.childAt(0).updateLayout(n,r);var a=n.getItemModel(r).getModel("effect");this._updateEffectAnimation(n,a,r)},t}(bt);const HK=cHe;var fHe=function(e){ge(t,e);function t(n,r,a){var i=e.call(this)||this;return i._createPolyline(n,r,a),i}return t.prototype._createPolyline=function(n,r,a){var i=n.getItemLayout(r),o=new ia({shape:{points:i}});this.add(o),this._updateCommonStl(n,r,a)},t.prototype.updateData=function(n,r,a){var i=n.hostModel,o=this.childAt(0),s={shape:{points:n.getItemLayout(r)}};nn(o,s,i,r),this._updateCommonStl(n,r,a)},t.prototype._updateCommonStl=function(n,r,a){var i=this.childAt(0),o=n.getItemModel(r),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||n.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}i.useStyle(n.getItemVisual(r,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var d=i.ensureState("emphasis");d.style=s,$n(this,l,u,c)},t.prototype.updateLayout=function(n,r){var a=this.childAt(0);a.setShape("points",n.getItemLayout(r))},t}(bt);const GK=fHe;var dHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._lastFrame=0,n._lastFramePercent=0,n}return t.prototype.createLine=function(n,r,a){return new GK(n,r,a)},t.prototype._updateAnimationPoints=function(n,r){this._points=r;for(var a=[0],i=0,o=1;o<r.length;o++){var s=r[o-1],l=r[o];i+=Go(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(n){var r=n.__t<1?n.__t:2-n.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>r);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var h=n.__t<1?d[0]-f[0]:f[0]-d[0],v=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},t}(HK);const hHe=dHe;var vHe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),pHe=function(e){ge(t,e);function t(n){var r=e.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new vHe},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(Vs(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(qH(f,d,g,m,v,p,s,n,r))return l}else if(Vs(f,d,v,p,s,n,r))return l;l++}return-1},t.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var c=a[u++],f=a[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}n=this._rect=new Rt(i,o,s,l)}return n},t}(zt),gHe=function(){function e(){this.group=new bt}return e.prototype.updateData=function(t){this._clear();var n=this._create();n.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(n,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,n){var r=this._newAdded[0],a=n.getLayout("linesPoints"),i=r&&r.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,n),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new pHe({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,n,r){var a=n.hostModel;t.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),t.useStyle(a.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=n.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var o=Tt(t);o.seriesIndex=a.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}();const mHe=gHe;var yHe={seriesType:"lines",plan:Kd(),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 WK=yHe;var bHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=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)&&X1(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=WK.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 mHe:new aE(o?i?hHe:GK:i?HK:rE),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},t.prototype._showEffect=function(n){return!!n.get(["effect","show"])},t.prototype._clearLayer=function(n){var r=n.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.type="lines",t}(vn);const _He=bHe;var wHe=typeof Uint32Array>"u"?Array:Uint32Array,SHe=typeof Float64Array>"u"?Array:Float64Array;function p3(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Oe(t,function(n){var r=[n[0].coord,n[1].coord],a={coords:r};return n[0].name&&(a.fromName=n[0].name),n[1].name&&(a.toName=n[1].name),p1([a,n[0],n[1]])}))}var CHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return t.prototype.init=function(n){n.data=n.data||[],p3(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(p3(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=fp(this._flatCoords,r.flatCoords),this._flatCoordsOffset=fp(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},t.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},t.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},t.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[n*2],i=this._flatCoordsOffset[n*2+1],o=0;o<i;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[a+o*2],r[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(n),o=0;o<s.length;o++)r[o]=r[o]||[],r[o][0]=s[o][0],r[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(n){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),Qt(n[0])){for(var a=n.length,i=new wHe(a),o=new SHe(a),s=0,l=0,u=0,c=0;c<a;){u++;var f=n[c++];i[l++]=s+r,i[l++]=f;for(var d=0;d<f;d++){var h=n[c++],v=n[c++];o[s++]=h,o[s++]=v}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},t.prototype.getInitialData=function(n,r){var a=new Or(["value"],this);return a.hasItemOption=!1,a.initData(n.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=i.getItemModel(n),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),ur("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(_n);const xHe=CHe;function Ym(e){return e instanceof Array||(e=[e,e]),e}var THe={seriesType:"lines",reset:function(e){var t=Ym(e.get("symbol")),n=Ym(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=Ym(s.getShallow("symbol",!0)),u=Ym(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=THe;function kHe(e){e.registerChartView(_He),e.registerSeriesModel(xHe),e.registerLayout(WK),e.registerVisual(MHe)}var AHe=256,EHe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Vi.createCanvas();this.canvas=t}return e.prototype.update=function(t,n,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=n,f.height=r;for(var v=0;v<h;++v){var p=t[v],g=p[0],m=p[1],b=p[2],_=a(b);d.globalAlpha=_,d.drawImage(s,g-c,m-c)}if(!f.width||!f.height)return f;for(var w=d.getImageData(0,0,f.width,f.height),C=w.data,S=0,x=C.length,T=this.minOpacity,M=this.maxOpacity,A=M-T;S<x;){var _=C[S+3]/256,k=Math.floor(_*(AHe-1))*4;if(_>0){var E=o(_)?l:u;_>0&&(_=_*A+T),C[S++]=E[k],C[S++]=E[k+1],C[S++]=E[k+2],C[S++]=E[k+3]*_*256}else S+=4}return d.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Vi.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;t.width=r,t.height=r;var a=t.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-n,n,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),t},e.prototype._getGradient=function(t,n){for(var r=this._gradientPixels,a=r[n]||(r[n]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[n](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},e}();const IHe=EHe;function DHe(e,t,n){var r=e[1]-e[0];t=Oe(t,function(o){return{interval:[(o.interval[0]-e[0])/r,(o.interval[1]-e[0])/r]}});var a=t.length,i=0;return function(o){var s;for(s=i;s<a;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&n[s]}}function PHe(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 g3(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var LHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=n.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(n,a,0,n.getData().count()):g3(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&&(g3(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){Rl(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=Ec(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),v=s.getAxis("y");u=h.getBandWidth()+.5,c=v.getBandWidth()+.5,f=h.scale.getExtent(),d=v.scale.getExtent()}for(var p=this.group,g=n.getData(),m=n.getModel(["emphasis","itemStyle"]).getItemStyle(),b=n.getModel(["blur","itemStyle"]).getItemStyle(),_=n.getModel(["select","itemStyle"]).getItemStyle(),w=n.get(["itemStyle","borderRadius"]),C=lr(n),S=n.getModel("emphasis"),x=S.get("focus"),T=S.get("blurScope"),M=S.get("disabled"),A=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],k=a;k<i;k++){var E=void 0,D=g.getItemVisual(k,"style");if(l){var L=g.get(A[0],k),B=g.get(A[1],k);if(isNaN(g.get(A[2],k))||isNaN(L)||isNaN(B)||L<f[0]||L>f[1]||B<d[0]||B>d[1])continue;var N=s.dataToPoint([L,B]);E=new Zt({shape:{x:N[0]-u/2,y:N[1]-c/2,width:u,height:c},style:D})}else{if(isNaN(g.get(A[1],k)))continue;E=new Zt({z2:1,shape:s.dataToRect([g.get(A[0],k)]).contentShape,style:D})}if(g.hasItemOption){var O=g.getItemModel(k),$=O.getModel("emphasis");m=$.getModel("itemStyle").getItemStyle(),b=O.getModel(["blur","itemStyle"]).getItemStyle(),_=O.getModel(["select","itemStyle"]).getItemStyle(),w=O.get(["itemStyle","borderRadius"]),x=$.get("focus"),T=$.get("blurScope"),M=$.get("disabled"),C=lr(O)}E.shape.r=w;var I=n.getRawValue(k),z="-";I&&I[2]!=null&&(z=I[2]+""),Tr(E,C,{labelFetcher:n,labelDataIndex:k,defaultOpacity:D.opacity,defaultText:z}),E.ensureState("emphasis").style=m,E.ensureState("blur").style=b,E.ensureState("select").style=_,$n(E,x,T,M),E.incremental=o,o&&(E.states.emphasis.hoverLayer=!0),p.add(E),g.setItemGraphicEl(k,E),this._progressiveEls&&this._progressiveEls.push(E)}},t.prototype._renderOnGeo=function(n,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new IHe;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),v=Math.min(c.width+c.x,i.getWidth()),p=Math.min(c.height+c.y,i.getHeight()),g=v-d,m=p-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(x,T,M){var A=n.dataToPoint([x,T]);return A[0]-=d,A[1]-=h,A.push(M),A}),w=a.getExtent(),C=a.type==="visualMap.continuous"?PHe(w,a.option.range):DHe(w,a.getPieceList(),a.option.selected);u.update(_,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var S=new vr({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(S)},t.type="heatmap",t}(vn);const RHe=LHe;var OHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return Io(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=Wd.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(_n);const $He=OHe;function NHe(e){e.registerChartView(RHe),e.registerSeriesModel($He)}var BHe=["itemStyle","borderWidth"],m3=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],RS=new Hi,VHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group,o=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:m3[+c],categoryDim:m3[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var v=b3(o,h),p=y3(o,h,v,d),g=_3(o,d,p);o.setItemGraphicEl(h,g),i.add(g),S3(g,d,p)}}).update(function(h,v){var p=s.getItemGraphicEl(v);if(!o.hasValue(h)){i.remove(p);return}var g=b3(o,h),m=y3(o,h,g,d),b=XK(o,m);p&&b!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(h,null),p=null),p?UHe(p,d,m):p=_3(o,d,m,!0),o.setItemGraphicEl(h,p),p.__pictorialSymbolMeta=m,i.add(p),S3(p,d,m)}).remove(function(h){var v=s.getItemGraphicEl(h);v&&w3(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){w3(i,Tt(o).dataIndex,n,o)}):a.removeAll()},t.type="pictorialBar",t}(vn);function y3(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};zHe(n,i,a,r,d),FHe(e,t,a,i,o,d.boundingLength,d.pxSign,c,r,d),HHe(n,d.symbolScale,u,r,d);var h=d.symbolSize,v=Ac(n.get("symbolOffset"),h);return GHe(n,h,a,i,o,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function zHe(e,t,n,r,a){var i=r.valueDim,o=e.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[i.wh]<=0),c;if(Re(o)){var f=[OS(s,o[0])-l,OS(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=OS(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 OS(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function FHe(e,t,n,r,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),h=e.getItemVisual(t,"symbolSize"),v;Re(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=qe(v[f.index],d),v[c.index]=qe(v[c.index],r?d:Math.abs(i)),u.symbolSize=v;var p=u.symbolScale=[v[0]/s,v[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function HHe(e,t,n,r,a){var i=e.get(BHe)||0;i&&(RS.attr({scaleX:t[0],scaleY:t[1],rotation:n}),RS.updateTransform(),i/=RS.getLineScale(),i*=t[r.valueDim.index]),a.valueLineWidth=i||0}function GHe(e,t,n,r,a,i,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,v=f.pxSign,p=Math.max(t[h.index]+s,0),g=p;if(r){var m=Math.abs(l),b=rr(e.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var w=qe(b,t[h.index]),C=Math.max(p+w*2,0),S=_?0:w*2,x=Ok(r),T=x?r:C3((m+S)/C),M=m-T*p;w=M/2/(_?T:Math.max(T-1,1)),C=p+w*2,S=_?0:w*2,!x&&r!=="fixed"&&(T=u?C3((Math.abs(u)+S)/C):0),g=T*C-S,f.repeatTimes=T,f.symbolMargin=w}var A=v*(g/2),k=f.pathPosition=[];k[d.index]=n[d.wh]/2,k[h.index]=o==="start"?A:o==="end"?l-A:l/2,i&&(k[0]+=i[0],k[1]+=i[1]);var E=f.bundlePosition=[];E[d.index]=n[d.xy],E[h.index]=n[h.xy];var D=f.barRectShape=Ie({},n);D[h.wh]=v*Math.max(Math.abs(n[h.wh]),Math.abs(k[h.index]+A)),D[d.wh]=n[d.wh];var L=f.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[h.xy]=0,L[h.wh]=n[h.wh]}function KK(e){var t=e.symbolPatternSize,n=Hn(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function UK(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(dE(e,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?Ff(p,null,v(c),n,r):Ff(p,null,{scaleX:0,scaleY:0},n,r,function(){a.remove(p)}),c++});c<u;c++){var d=KK(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var h=v(c);Ff(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 YK(e,t,n,r){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?Ff(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=KK(n),a.add(i),Ff(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 jK(e,t,n){var r=Ie({},t.barRectShape),a=e.__pictorialBarRect;a?Ff(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new Zt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function qK(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,i=Ie({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)nn(a,{shape:i},s,l);else{i[o.wh]=0,a=new Zt({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],mg[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function b3(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=WHe,n.isAnimationEnabled=KHe,n}function WHe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function KHe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function _3(e,t,n,r){var a=new bt,i=new bt;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?UK(a,t,n):YK(a,t,n),jK(a,n,r),qK(a,t,n,r),a.__pictorialShapeStr=XK(e,n),a.__pictorialSymbolMeta=n,a}function UHe(e,t,n){var r=n.animationModel,a=n.dataIndex,i=e.__pictorialBundle;nn(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?UK(e,t,n,!0):YK(e,t,n,!0),jK(e,n,!0),qK(e,t,n,!0)}function w3(e,t,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];dE(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),F(i,function(o){yl(o,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function XK(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function dE(e,t,n){F(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function Ff(e,t,n,r,a,i){t&&e.attr(t),r.symbolClip&&!a?n&&e.attr(n):n&&mg[a?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function S3(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");dE(e,function(p){if(p instanceof vr){var g=p.style;p.useStyle(Ie({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},n.style))}else p.useStyle(n.style);var m=p.ensureState("emphasis");m.style=o,d&&(m.scaleX=p.scaleX*1.1,m.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=n.z2});var h=t.valueDim.posDesc[+(n.boundingLength>0)],v=e.__pictorialBarRect;Tr(v,lr(a),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:md(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),$n(e,c,f,i.get("disabled"))}function C3(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const YHe=VHe;var jHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return t.prototype.getInitialData=function(n){return n.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Ol(rb.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}(rb);const qHe=jHe;function XHe(e){e.registerChartView(YHe),e.registerSeriesModel(qHe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,xt(D9,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,P9("pictorialBar"))}var ZHe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return t.prototype.render=function(n,r,a){var i=n.getData(),o=this,s=this.group,l=n.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var h=new is(this._layersSeries||[],l,d,d),v=[];h.add(et(p,this,"add")).update(et(p,this,"update")).remove(et(p,this,"remove")).execute();function p(g,m,b){var _=o._layers;if(g==="remove"){s.remove(_[m]);return}for(var w=[],C=[],S,x=l[m].indices,T=0;T<x.length;T++){var M=i.getItemLayout(x[T]),A=M.x,k=M.y0,E=M.y;w.push(A,k),C.push(A,k+E),S=i.getItemVisual(x[T],"style")}var D,L=i.getItemLayout(x[0]),B=n.getModel("label"),N=B.get("margin"),O=n.getModel("emphasis");if(g==="add"){var $=v[m]=new bt;D=new _7({shape:{points:w,stackedOnPoints:C,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),$.add(D),s.add($),n.isAnimationEnabled()&&D.setClipPath(JHe(D.getBoundingRect(),n,function(){D.removeClipPath()}))}else{var $=_[b];D=$.childAt(0),s.add($),v[m]=$,nn(D,{shape:{points:w,stackedOnPoints:C}},n),Gi(D)}Tr(D,lr(n),{labelDataIndex:x[T-1],defaultText:i.getName(x[T-1]),inheritColor:S.fill},{normal:{verticalAlign:"middle"}}),D.setTextConfig({position:null,local:!0});var I=D.getTextContent();I&&(I.x=L.x-N,I.y=L.y0+L.y/2),D.useStyle(S),i.setItemGraphicEl(m,D),xr(D,n),$n(D,O.get("focus"),O.get("blurScope"),O.get("disabled"))}this._layersSeries=l,this._layers=v},t.type="themeRiver",t}(vn);function JHe(e,t,n){var r=new Zt({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return xn(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}const QHe=ZHe;var $S=2,eGe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Mg(et(this.getData,this),et(this.getRawData,this))},t.prototype.fixData=function(n){var r=n.length,a={},i=t2(n,function(d){return a.hasOwnProperty(d[0]+"")||(a[d[0]+""]=-1),d[2]}),o=[];i.buckets.each(function(d,h){o.push({name:h,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";a[f]=l}for(var f in a)a.hasOwnProperty(f)&&a[f]!==l&&(a[f]=l,n[r]=[f,0,u],r++)}return n},t.prototype.getInitialData=function(n,r){for(var a=this.getReferringComponents("singleAxis",Wn).models[0],i=a.get("type"),o=ln(n.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=ot(),c=0,f=0;f<s.length;++f)l.push(s[f][$S]),u.get(s[f][$S])||(u.set(s[f][$S],c),c++);var d=jd(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:J0(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Or(d,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var n=this.getData(),r=n.count(),a=[],i=0;i<r;++i)a[i]=i;var o=n.mapDimension("single"),s=t2(a,function(u){return n.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return n.get(o,f)-n.get(o,d)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(n,r,a){Re(n)||(n=n?[n]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,h=o[c].indices.length,v=0;v<h;++v){var p=i.get(n[0],o[c].indices[v]),g=Math.abs(p-r);g<=f&&(u=p,f=g,d=o[c].indices[v])}s.push(d)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=i.getName(n),s=i.get(i.mapDimension("value"),n);return ur("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(_n);const tGe=eGe;function nGe(e,t){e.eachSeriesByType("themeRiver",function(n){var r=n.getData(),a=n.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=n.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=qe(s[0],o.height),s[1]=qe(s[1],o.height);var u=o.height-s[0]-s[1];x3(r,n,u)}else{s[0]=qe(s[0],o.width),s[1]=qe(s[1],o.width);var c=o.width-s[0]-s[1];x3(r,n,c)}r.setLayout("layoutInfo",i)})}function x3(e,t,n){if(e.count())for(var r=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=Oe(a,function(g){return Oe(g.indices,function(m){var b=r.dataToPoint(e.get(i,m));return b[1]=e.get(o,m),b})}),l=rGe(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 rGe(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 aGe(e){e.registerChartView(QHe),e.registerSeriesModel(tGe),e.registerLayout(nGe),e.registerProcessor(Tg("themeRiver"))}var iGe=2,oGe=4,sGe=function(e){ge(t,e);function t(n,r,a,i){var o=e.call(this)||this;o.z2=iGe,o.textConfig={inside:!0},Tt(o).seriesIndex=r.seriesIndex;var s=new Xt({z2:oGe,silent:n.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,n,r,a,i),o}return t.prototype.updateData=function(n,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;Tt(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=Ie({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var h=r.getVisual("decal");h&&(d.decal=gd(h,o));var v=Wu(l.getModel("itemStyle"),f,!0);Ie(f,v),F(ta,function(b){var _=s.ensureState(b),w=l.getModel([b,"itemStyle"]);_.style=w.getItemStyle();var C=Wu(w,f);C&&(_.shape=C)}),n?(s.setShape(f),s.shape.r=c.r0,xn(s,{shape:{r:c.r}},a,r.dataIndex)):(nn(s,{shape:f},a),Gi(s)),s.useStyle(d),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),m=g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;$n(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(v!=null&&Math.abs(s)<v);d.ignore=!p,F(wp,function(m){var b=m==="normal"?a.getModel("label"):a.getModel([m,"label"]),_=m==="normal",w=_?d:d.ensureState(m),C=n.getFormattedLabel(h,m);_&&(C=C||r.node.name),w.style=gn(b,{},null,m!=="normal",!0),C&&(w.style.text=C);var S=b.get("show");S!=null&&!_&&(w.ignore=!S);var x=g(b,"position"),T=_?f:f.states[m],M=T.style.fill;T.textConfig={outsideFill:b.get("color")==="inherit"?M:null,inside:x!=="outside"};var A,k=g(b,"distance")||0,E=g(b,"align");x==="outside"?(A=o.r+k,E=l>Math.PI/2?"right":"left"):!E||E==="center"?(s===2*Math.PI&&o.r0===0?A=0:A=(o.r+o.r0)/2,E="center"):E==="left"?(A=o.r0+k,l>Math.PI/2&&(E="right")):E==="right"&&(A=o.r-k,l>Math.PI/2&&(E="left")),w.style.align=E,w.style.verticalAlign=g(b,"verticalAlign")||"middle",w.x=A*u+o.cx,w.y=A*c+o.cy;var D=g(b,"rotate"),L=0;D==="radial"?(L=Ii(-l),L>Math.PI/2&&L<Math.PI*1.5&&(L+=Math.PI)):D==="tangential"?(L=Math.PI/2-l,L>Math.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):Qt(D)&&(L=D*Math.PI/180),w.rotation=Ii(L)});function g(m,b){var _=m.get(b);return _??i.get(b)}d.dirtyStyle()},t}(na);const T3=sGe;var eT="sunburstRootToNode",M3="sunburstHighlight",lGe="sunburstUnhighlight";function uGe(e){e.registerAction({type:eT,update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"sunburst",query:t},r);function r(a,i){var o=Op(t,[eT],a);if(o){var s=a.getViewRoot();s&&(t.direction=ZA(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:M3,update:"none"},function(t,n,r){t=Ie({},t),n.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=Op(t,[M3],i);o&&(t.dataIndex=o.node.dataIndex)}r.dispatchAction(Ie(t,{type:"highlight"}))}),e.registerAction({type:lGe,update:"updateView"},function(t,n,r){t=Ie({},t),r.dispatchAction(Ie(t,{type:"downplay"}))})}var cGe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){var o=this;this.seriesModel=n,this.api=a,this.ecModel=r;var s=n.getData(),l=s.tree.root,u=n.getViewRoot(),c=this.group,f=n.get("renderLabelForZeroData"),d=[];u.eachNode(function(b){d.push(b)});var h=this._oldChildren||[];v(d,h),m(l,u),this._initEvents(),this._oldChildren=d;function v(b,_){if(b.length===0&&_.length===0)return;new is(_,b,w,w).add(C).update(C).remove(xt(C,null)).execute();function w(S){return S.getId()}function C(S,x){var T=S==null?null:b[S],M=x==null?null:_[x];p(T,M)}}function p(b,_){if(!f&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,n,r,a),s.setItemGraphicEl(b.dataIndex,_.piece)):g(_);else if(b){var w=new T3(b,n,r,a);c.add(w),s.setItemGraphicEl(b.dataIndex,w)}}}function g(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function m(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,n,r,a):(o.virtualPiece=new T3(b,n,r,a),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=n.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";H0(u,c)}}a=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:eT,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},t.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="sunburst",t}(vn);const fGe=cGe;var dGe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return t.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};ZK(a);var i=this._levelModels=Oe(n.levels||[],function(l){return new dn(l,this,r)},this),o=XA.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=Q1(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(){tK(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(_n);function ZK(e){var t=0;F(e.children,function(r){ZK(r);var a=r.value;Re(a)&&(a=a[0]),t+=a});var n=e.value;Re(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),Re(e.value)?e.value[0]=n:e.value=n}const hGe=dGe;var k3=Math.PI/180;function vGe(e,t,n){t.eachSeriesByType(e,function(r){var a=r.get("center"),i=r.get("radius");Re(i)||(i=[0,i]),Re(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=qe(a[0],o),c=qe(a[1],s),f=qe(i[0],l/2),d=qe(i[1],l/2),h=-r.get("startAngle")*k3,v=r.get("minAngle")*k3,p=r.getData().tree.root,g=r.getViewRoot(),m=g.depth,b=r.get("sort");b!=null&&JK(g,b);var _=0;F(g.children,function(N){!isNaN(N.getValue())&&_++});var w=g.getValue(),C=Math.PI/(w||_)*2,S=g.depth>0,x=g.height-(S?-1:1),T=(d-f)/(x||1),M=r.get("clockwise"),A=r.get("stillShowZeroSum"),k=M?1:-1,E=function(N,O){if(N){var $=O;if(N!==p){var I=N.getValue(),z=w===0&&A?C:I*C;z<v&&(z=v),$=O+k*z;var G=N.depth-m-(S?-1:1),U=f+T*G,Z=f+T*(G+1),ae=r.getLevelModel(N);if(ae){var J=ae.get("r0",!0),Q=ae.get("r",!0),ee=ae.get("radius",!0);ee!=null&&(J=ee[0],Q=ee[1]),J!=null&&(U=qe(J,l/2)),Q!=null&&(Z=qe(Q,l/2))}N.setLayout({angle:z,startAngle:O,endAngle:$,clockwise:M,cx:u,cy:c,r0:U,r:Z})}if(N.children&&N.children.length){var j=0;F(N.children,function(de){j+=E(de,O+j)})}return $-O}};if(S){var D=f,L=f+T,B=Math.PI*2;p.setLayout({angle:B,startAngle:h,endAngle:h+B,clockwise:M,cx:u,cy:c,r0:D,r:L})}E(g,h)})}function JK(e,t){var n=e.children||[];e.children=pGe(n,t),n.length&&F(e.children,function(r){JK(r,t)})}function pGe(e,t){if(ut(t)){var n=Oe(e,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return n.sort(function(a,i){return t(a.params,i.params)}),Oe(n,function(a){return e[a.index]})}else{var r=t==="asc";return e.sort(function(a,i){var o=(a.getValue()-i.getValue())*(r?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(r?-1:1):o})}}function gGe(e){var t={};function n(r,a,i){for(var o=r;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",t);return r.depth>1&&Je(s)&&(s=D0(s,(r.depth-1)/(i-1)*.5)),s}e.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");Ie(u,l)})})}function mGe(e){e.registerChartView(fGe),e.registerSeriesModel(hGe),e.registerLayout(xt(vGe,"sunburst")),e.registerProcessor(xt(Tg,"sunburst")),e.registerVisual(gGe),uGe(e)}var A3={color:"fill",borderColor:"stroke"},yGe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},qo=en(),bGe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(n,r){return Io(null,this)},t.prototype.getDataParams=function(n,r,a){var i=e.prototype.getDataParams.call(this,n,r);return a&&(i.info=qo(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(_n);const _Ge=bGe;function wGe(e,t){return t=t||[0,0],Oe(["x","y"],function(n,r){var a=this.getAxis(n),i=t[r],o=e[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function SGe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:et(wGe,e)}}}function CGe(e,t){return t=t||[0,0],Oe([0,1],function(n){var r=t[n],a=e[n]/2,i=[],o=[];return i[n]=r-a,o[n]=r+a,i[1-n]=o[1-n]=t[1-n],Math.abs(this.dataToPoint(i)[n]-this.dataToPoint(o)[n])},this)}function xGe(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(n){return e.dataToPoint(n)},size:et(CGe,e)}}}function TGe(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 MGe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(n){return e.dataToPoint(n)},size:et(TGe,e)}}}function kGe(e,t){return t=t||[0,0],Oe(["Radius","Angle"],function(n,r){var a="get"+n+"Axis",i=this[a](),o=t[r],s=e[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function AGe(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=n.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:et(kGe,e)}}}function EGe(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 QK(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||nt(e,"text")))}function eU(e,t,n){var r=e,a,i,o;if(t==="text")o=r;else{o={},nt(r,"text")&&(o.text=r.text),nt(r,"rich")&&(o.rich=r.rich),nt(r,"textFill")&&(o.fill=r.textFill),nt(r,"textStroke")&&(o.stroke=r.textStroke),nt(r,"fontFamily")&&(o.fontFamily=r.fontFamily),nt(r,"fontSize")&&(o.fontSize=r.fontSize),nt(r,"fontStyle")&&(o.fontStyle=r.fontStyle),nt(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=nt(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),nt(r,"textPosition")&&(a.position=r.textPosition),nt(r,"textOffset")&&(a.offset=r.textOffset),nt(r,"textRotation")&&(a.rotation=r.textRotation),nt(r,"textDistance")&&(a.distance=r.textDistance)}return E3(o,e),F(o.rich,function(l){E3(l,l)}),{textConfig:a,textContent:i}}function E3(e,t){t&&(t.font=t.textFont||t.font,nt(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),nt(t,"textAlign")&&(e.align=t.textAlign),nt(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),nt(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),nt(t,"textWidth")&&(e.width=t.textWidth),nt(t,"textHeight")&&(e.height=t.textHeight),nt(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),nt(t,"textPadding")&&(e.padding=t.textPadding),nt(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),nt(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),nt(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),nt(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),nt(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),nt(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),nt(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function I3(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";D3(r,t);var o=r.textFill==null;return a?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,F(t.rich,function(s){D3(s,s)}),r}function D3(e,t){t&&(nt(t,"fill")&&(e.textFill=t.fill),nt(t,"stroke")&&(e.textStroke=t.fill),nt(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),nt(t,"font")&&(e.font=t.font),nt(t,"fontStyle")&&(e.fontStyle=t.fontStyle),nt(t,"fontWeight")&&(e.fontWeight=t.fontWeight),nt(t,"fontSize")&&(e.fontSize=t.fontSize),nt(t,"fontFamily")&&(e.fontFamily=t.fontFamily),nt(t,"align")&&(e.textAlign=t.align),nt(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),nt(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),nt(t,"width")&&(e.textWidth=t.width),nt(t,"height")&&(e.textHeight=t.height),nt(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),nt(t,"padding")&&(e.textPadding=t.padding),nt(t,"borderColor")&&(e.textBorderColor=t.borderColor),nt(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),nt(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),nt(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),nt(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),nt(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),nt(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),nt(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),nt(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),nt(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),nt(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var tU={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},P3=Gt(tU);ci(Co,function(e,t){return e[t]=1,e},{});Co.join(", ");var fb=["","style","shape","extra"],_d=en();function hE(e,t,n,r,a){var i=e+"Animation",o=$d(e,r,a)||{},s=_d(t).userDuring;return o.duration>0&&(o.during=s?et(RGe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),Ie(o,n[i]),o}function jy(e,t,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=_d(e),u=t.style;l.userDuring=t.during;var c={},f={};if($Ge(e,t,f),R3("shape",t,f),R3("extra",t,f),!i&&s&&(OGe(e,t,c),L3("shape",e,t,c),L3("extra",e,t,c),NGe(e,t,u,c)),f.style=u,IGe(e,f,o),PGe(e,t),s)if(i){var d={};F(fb,function(v){var p=v?t[v]:t;p&&p.enterFrom&&(v&&(d[v]=d[v]||{}),Ie(v?d[v]:d,p.enterFrom))});var h=hE("enter",e,t,n,a);h.duration>0&&e.animateFrom(d,h)}else DGe(e,t,a||0,n,c);nU(e,t),u?e.dirty():e.markRedraw()}function nU(e,t){for(var n=_d(e).leaveToProps,r=0;r<fb.length;r++){var a=fb[r],i=a?t[a]:t;i&&i.leaveTo&&(n||(n=_d(e).leaveToProps={}),a&&(n[a]=n[a]||{}),Ie(a?n[a]:n,i.leaveTo))}}function n_(e,t,n,r){if(e){var a=e.parent,i=_d(e).leaveToProps;if(i){var o=hE("update",e,t,n,0);o.done=function(){a.remove(e),r&&r()},e.animateTo(i,o)}else a.remove(e),r&&r()}}function rc(e){return e==="all"}function IGe(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 DGe(e,t,n,r,a){if(a){var i=hE("update",e,t,r,n);i.duration>0&&e.animateFrom(a,i)}}function PGe(e,t){nt(t,"silent")&&(e.silent=t.silent),nt(t,"ignore")&&(e.ignore=t.ignore),e instanceof fi&&nt(t,"invisible")&&(e.invisible=t.invisible),e instanceof zt&&nt(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var eo={},LGe={setTransform:function(e,t){return eo.el[e]=t,this},getTransform:function(e){return eo.el[e]},setShape:function(e,t){var n=eo.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=eo.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=eo.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=eo.el.style;if(t)return t[e]},setExtra:function(e,t){var n=eo.el.extra||(eo.el.extra={});return n[e]=t,this},getExtra:function(e){var t=eo.el.extra;if(t)return t[e]}};function RGe(){var e=this,t=e.el;if(t){var n=_d(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}eo.el=t,r(LGe)}}function L3(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]={}),rc(l))Ie(o,i);else for(var u=hn(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(rc(s)||$t(s,e)>=0){!o&&(o=r[e]={});for(var h=Gt(i),c=0;c<h.length;c++){var f=h[c],d=i[f];BGe(a[f],d)&&(o[f]=d)}}}}}function R3(e,t,n){var r=t[e];if(r)for(var a=n[e]={},i=Gt(r),o=0;o<i.length;o++){var s=i[o];a[s]=yv(r[s])}}function OGe(e,t,n){for(var r=t.transition,a=rc(r)?Co:hn(r||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];n[o]=s}}}function $Ge(e,t,n){for(var r=0;r<P3.length;r++){var a=P3[r],i=tU[a],o=t[a];o&&(n[i[0]]=o[0],n[i[1]]=o[1])}for(var r=0;r<Co.length;r++){var s=Co[r];t[s]!=null&&(n[s]=t[s])}}function NGe(e,t,n,r){if(n){var a=e.style,i;if(a){var o=n.transition,s=t.transition;if(o&&!rc(o)){var l=hn(o);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];i[c]=f}}else if(e.getAnimationStyleProps&&(rc(s)||rc(o)||$t(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=r.style={});for(var v=Gt(n),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function BGe(e,t){return Cr(e)?e!==t:e!=null&&isFinite(e)}var rU=en(),VGe=["percent","easing","shape","style","extra"];function aU(e){e.stopAnimation("keyframe"),e.attr(rU(e))}function db(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(Re(t)){F(t,function(s){db(e,s,n)});return}var r=t.keyframes,a=t.duration;if(n&&a==null){var i=$d("enter",n,0);a=i&&i.duration}if(!(!r||!a)){var o=rU(e);F(fb,function(s){if(!(s&&!e[s])){var l;r.sort(function(u,c){return u.percent-c.percent}),F(r,function(u){var c=e.animators,f=s?u[s]:u;if(f){var d=Gt(f);if(s||(d=ln(d,function(p){return $t(VGe,p)<0})),!!d.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(d);s&&(o[s]=o[s]||{});var v=s?o[s]:o;F(d,function(p){v[p]=((s?e[s]:e)||{})[p]}),l.whenWithKeys(a*u.percent,f,d,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var Xo="emphasis",Xs="normal",vE="blur",pE="select",Sl=[Xs,Xo,vE,pE],NS={normal:["itemStyle"],emphasis:[Xo,"itemStyle"],blur:[vE,"itemStyle"],select:[pE,"itemStyle"]},BS={normal:["label"],emphasis:[Xo,"label"],blur:[vE,"label"],select:[pE,"label"]},zGe=["x","y"],FGe="e\0\0",za={normal:{},emphasis:{},blur:{},select:{}},HGe={cartesian2d:SGe,geo:xGe,single:MGe,polar:AGe,calendar:EGe};function tT(e){return e instanceof zt}function nT(e){return e instanceof fi}function GGe(e,t){t.copyTransform(e),nT(t)&&nT(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,tT(t)&&tT(e)&&t.setShape(e.shape))}var WGe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){this._progressiveEls=null;var o=this._data,s=n.getData(),l=this.group,u=O3(n,s,r,a);o||l.removeAll(),s.diff(o).add(function(f){VS(a,null,f,u(f,i),n,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&n_(d,qo(d).option,n)}).update(function(f,d){var h=o.getItemGraphicEl(d);VS(a,h,f,u(f,i),n,l,s)}).execute();var c=n.get("clip",!0)?X1(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=O3(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=VS(null,null,f,l(f,o),r,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(n){Rl(this._progressiveEls||this.group,n)},t.prototype.filterForExposedEvent=function(n,r,a,i){var o=r.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(vn);const KGe=WGe;function gE(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=sU(r);n=pg(i,null,a,r.layout||"center"),qo(n).customPathData=i}else if(t==="image")n=new vr({}),qo(n).customImagePath=e.style.image;else if(t==="text")n=new Xt({});else if(t==="group")n=new bt;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=P1(t);if(!o){var s="";an(s)}n=new o}return qo(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function mE(e,t,n,r,a,i,o){aU(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=zGe);var l=r&&r.style;if(l){if(t.type==="text"){var u=l;nt(u,"textFill")&&(u.fill=u.textFill),nt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=tT(t)?l.decal:null;e&&f&&(f.dirty=!0,c=gd(f,e)),l.__decalPattern=c}if(nT(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}jy(t,r,i,{dataIndex:n,isInit:o,clearStyle:!0}),db(t,r.keyframeAnimation,i)}function iU(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),hc(i)}}function UGe(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<Sl.length;s++)YGe(r,t,Sl[s])}}function YGe(e,t,n){var r=n===Xs,a=r?t:hb(t,n),i=a?a.z2:null,o;i!=null&&(o=r?e:e.ensureState(n),o.z2=i||0)}function O3(e,t,n,r){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):HGe[i.type](i));for(var s=ft({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:w,style:S,ordinalRawValue:C,styleEmphasis:x,visual:A,barLayout:k,currentSeriesIndices:E,font:D},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:jGe(e.getData())},u,c,f={},d={},h={},v={},p=0;p<Sl.length;p++){var g=Sl[p];h[g]=e.getModel(NS[g]),v[g]=e.getModel(BS[g])}function m(L){return L===u?c||(c=t.getItemModel(L)):t.getItemModel(L)}function b(L,B){return t.hasItemOption?L===u?f[B]||(f[B]=m(L).getModel(NS[B])):m(L).getModel(NS[B]):h[B]}function _(L,B){return t.hasItemOption?L===u?d[B]||(d[B]=m(L).getModel(BS[B])):m(L).getModel(BS[B]):v[B]}return function(L,B){return u=L,c=null,f={},d={},a&&a(ft({dataIndexInside:L,dataIndex:t.getRawIndex(L),actionType:B?B.type:null},l),s)};function w(L,B){return B==null&&(B=u),t.getStore().get(t.getDimensionIndex(L||0),B)}function C(L,B){B==null&&(B=u),L=L||0;var N=t.getDimensionInfo(L);if(!N){var O=t.getDimensionIndex(L);return O>=0?t.getStore().get(O,B):void 0}var $=t.get(N.name,B),I=N&&N.ordinalMeta;return I?I.categories[$]:$}function S(L,B){B==null&&(B=u);var N=t.getItemVisual(B,"style"),O=N&&N.fill,$=N&&N.opacity,I=b(B,Xs).getItemStyle();O!=null&&(I.fill=O),$!=null&&(I.opacity=$);var z={inheritColor:Je(O)?O:"#000"},G=_(B,Xs),U=gn(G,null,z,!1,!0);U.text=G.getShallow("show")?Lt(e.getFormattedLabel(B,Xs),md(t,B)):null;var Z=z0(G,z,!1);return M(L,I),I=I3(I,U,Z),L&&T(I,L),I.legacy=!0,I}function x(L,B){B==null&&(B=u);var N=b(B,Xo).getItemStyle(),O=_(B,Xo),$=gn(O,null,null,!0,!0);$.text=O.getShallow("show")?Ri(e.getFormattedLabel(B,Xo),e.getFormattedLabel(B,Xs),md(t,B)):null;var I=z0(O,null,!0);return M(L,N),N=I3(N,$,I),L&&T(N,L),N.legacy=!0,N}function T(L,B){for(var N in B)nt(B,N)&&(L[N]=B[N])}function M(L,B){L&&(L.textFill&&(B.textFill=L.textFill),L.textPosition&&(B.textPosition=L.textPosition))}function A(L,B){if(B==null&&(B=u),nt(A3,L)){var N=t.getItemVisual(B,"style");return N?N[A3[L]]:null}if(nt(yGe,L))return t.getItemVisual(B,L)}function k(L){if(i.type==="cartesian2d"){var B=i.getBaseAxis();return $Ne(ft({axis:B},L))}}function E(){return n.getCurrentSeriesIndices()}function D(L){return VG(L,n)}}function jGe(e){var t={};return F(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,i=t[a]=t[a]||[];i[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function VS(e,t,n,r,a,i,o){if(!r){i.remove(t);return}var s=yE(e,t,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&$n(s,r.focus,r.blurScope,r.emphasisDisabled),s}function yE(e,t,n,r,a,i){var o=-1,s=t;t&&oU(t,r,a)&&(o=$t(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=gE(r),s&&GGe(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),za.normal.cfg=za.normal.conOpt=za.emphasis.cfg=za.emphasis.conOpt=za.blur.cfg=za.blur.conOpt=za.select.cfg=za.select.conOpt=null,za.isLegacy=!1,XGe(u,n,r,a,l,za),qGe(u,n,r,a,l),mE(e,u,n,r,za,a,l),nt(r,"info")&&(qo(u).info=r.info);for(var c=0;c<Sl.length;c++){var f=Sl[c];if(f!==Xs){var d=hb(r,f),h=bE(r,d,f);iU(f,u,d,h,za)}}return UGe(u,r,a),r.type==="group"&&ZGe(e,u,n,r,a),o>=0?i.replaceAt(u,o):i.add(u),u}function oU(e,t,n){var r=qo(e),a=t.type,i=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&tWe(i)&&sU(i)!==r.customPathData||a==="image"&&nt(o,"image")&&o.image!==r.customImagePath}function qGe(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&&oU(o,i,r)&&(o=null),o||(o=gE(i),e.setClipPath(o)),mE(null,o,t,i,null,r,a)}}function XGe(e,t,n,r,a,i){if(!e.isGroup){$3(n,null,i),$3(n,Xo,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=gE(o),e.setTextContent(c)),mE(null,c,t,o,null,r,a);for(var f=o&&o.style,d=0;d<Sl.length;d++){var h=Sl[d];if(h!==Xs){var v=i[h].conOpt;iU(h,c,v,bE(o,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function $3(e,t,n){var r=t?hb(e,t):e,a=t?bE(e,r,Xo):e.style,i=e.type,o=r?r.textConfig:null,s=e.textContent,l=s?t?hb(s,t):s:null;if(a&&(n.isLegacy||QK(a,i,!!o,!!l))){n.isLegacy=!0;var u=eU(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 hb(e,t){return t?e?e[t]:null:e}function bE(e,t,n){var r=t&&t.style;return r==null&&n===Xo&&e&&(r=e.styleEmphasis),r}function ZGe(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){QGe({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),yE(e,d,n,f,a,t)):d.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var v=t.childAt(h);JGe(t,v,a)}}}function JGe(e,t,n){t&&n_(t,qo(e).option,n)}function QGe(e){new is(e.oldChildren,e.newChildren,N3,N3,e).add(B3).update(B3).remove(eWe).execute()}function N3(e,t){var n=e&&e.name;return n??FGe+t}function B3(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,a=t!=null?n.oldChildren[t]:null;yE(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function eWe(e){var t=this.context,n=t.oldChildren[e];n&&n_(n,qo(n).option,t.seriesModel)}function sU(e){return e&&(e.pathData||e.d)}function tWe(e){return e&&(nt(e,"pathData")||nt(e,"d"))}function nWe(e){e.registerChartView(KGe),e.registerSeriesModel(_Ge)}var Au=en(),V3=pt,zS=et,rWe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,r,a){var i=n.get("value"),o=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new bt,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=xt(z3,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}H3(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=GA(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=Au(t).pointerEl=new mg[i.type](V3(n.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,n,r,a){if(n.label){var i=Au(t).labelEl=new Xt(V3(n.label));t.add(i),F3(i,a)}},e.prototype.updatePointerEl=function(t,n,r){var a=Au(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=Au(t).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),F3(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=Nd(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ns(u.event)},onmousedown:zS(this._onHandleDragMove,this,0,0),drift:zS(this._onHandleDragMove,this),ondragend:zS(this._onHandleDragEnd,this)}),r.add(a)),H3(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Re(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ud(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){z3(this._axisPointerModel,!n&&this._moveAnimation,this._handle,FS(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(FS(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(FS(a)),Au(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),Ap(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 z3(e,t,n,r){lU(Au(n).lastProp,r)||(Au(n).lastProp=r,t?nn(n,r,e):(n.stopAnimation(),n.attr(r)))}function lU(e,t){if(ht(e)&&ht(t)){var n=!0;return F(t,function(r,a){n=n&&lU(e[a],r)}),!!n}else return e===t}function F3(e,t){e[t.get(["label","show"])?"show":"hide"]()}function FS(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function H3(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 _E=rWe;function wE(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 uU(e,t,n,r,a){var i=n.get("value"),o=cU(i,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=kc(s.get("padding")||0),u=s.getFont(),c=cg(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),aWe(f,d,h,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:gn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function aWe(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 cU(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:RA(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};F(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Je(o)?i=o.replace("{value}",i):ut(o)&&(i=o(s))}return i}function SE(e,t,n){var r=Ra();return Ll(r,r,n.rotation),zi(r,r,n.position),Ni([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function fU(e,t,n,r,a,i){var o=ss.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),uU(t,r,a,i,{position:SE(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function CE(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function dU(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function G3(e,t,n,r,a,i){return{cx:e,cy:t,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var iWe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=W3(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=wE(i),h=oWe[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=B2(l.model,a);fU(r,n,v,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=B2(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=SE(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=W3(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}(_E);function W3(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var oWe={line:function(e,t,n){var r=CE([t,n[0]],[t,n[1]],K3(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:dU([t-r/2,n[0]],[r,a],K3(e))}}};function K3(e){return e.dim==="x"?0:1}const sWe=iWe;var lWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Yt);const uWe=lWe;var Yo=en(),cWe=F;function hU(e,t,n){if(!Jt.node){var r=t.getZr();Yo(r).records||(Yo(r).records={}),fWe(r,t);var a=Yo(r).records[e]||(Yo(r).records[e]={});a.handler=n}}function fWe(e,t){if(Yo(e).initialized)return;Yo(e).initialized=!0,n("click",xt(U3,"click")),n("mousemove",xt(U3,"mousemove")),n("globalout",hWe);function n(r,a){e.on(r,function(i){var o=vWe(t);cWe(Yo(e).records,function(s){s&&a(s,i,o.dispatchAction)}),dWe(o.pendings,t)})}}function dWe(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 hWe(e,t,n){e.handler("leave",null,n)}function U3(e,t,n,r){t.handler(e,n,r)}function vWe(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 rT(e,t){if(!Jt.node){var n=t.getZr(),r=(Yo(n).records||{})[e];r&&(Yo(n).records[e]=null)}}var pWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=r.getComponent("tooltip"),o=n.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";hU("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){rT("axisPointer",r)},t.prototype.dispose=function(n,r){rT("axisPointer",r)},t.type="axisPointer",t}(An);const gWe=pWe;function vU(e,t){var n=[],r=e.seriesIndex,a;if(r==null||!(a=t.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=fc(i,e);if(o==null||o<0||Re(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=i.mapDimension(d),p=[];p[h]=i.get(v,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(p)||[]}else n=l.dataToPoint(i.getValues(Oe(l.dimensions,function(m){return i.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:s}}var Y3=en();function mWe(e,t,n){var r=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||et(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){qy(a)&&(a=vU({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=qy(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||qy(a),d={},h={},v={list:[],map:{}},p={showPointer:xt(bWe,h),showTooltip:xt(_We,v)};F(s.coordSysMap,function(m,b){var _=l||m.containPoint(a);F(s.coordSysAxesInfo[b],function(w,C){var S=w.axis,x=xWe(u,w);if(!f&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=S.pointToData(a)),T!=null&&j3(w,T,p,!1,d)}})});var g={};return F(c,function(m,b){var _=m.linkGroup;_&&!h[b]&&F(_.axesInfo,function(w,C){var S=h[C];if(w!==m&&S){var x=S.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,q3(w),q3(m)))),g[m.key]=x}})}),F(g,function(m,b){j3(c[b],m,p,!0,d)}),wWe(h,c,d),SWe(v,a,e,o),CWe(c,o,n),d}}function j3(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=yWe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&Ie(a,s[0]),!r&&e.snap&&i.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}}function yWe(e,t){var n=t.axis,r=n.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return F(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,n);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,a=f,i.length=0),F(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function bWe(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function _We(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=Rp(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 wWe(e,t,n){var r=n.axesInfo=[];F(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function SWe(e,t,n,r){if(qy(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 CWe(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",i=Y3(r)[a]||{},o=Y3(r)[a]={};F(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&F(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];F(i,function(u,c){!o[c]&&l.push(u)}),F(o,function(u,c){!i[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function xWe(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 q3(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 qy(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Eg(e){Ic.registerAxisPointerClass("CartesianAxisPointer",sWe),e.registerComponentModel(uWe),e.registerComponentView(gWe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Re(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=fVe(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},mWe)}function TWe(e){Bt(z7),Bt(Eg)}var MWe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(r),d=i.get("type");if(d&&d!=="none"){var h=wE(i),v=AWe[d](s,l,f,c);v.style=h,n.graphicKey=v.type,n.pointer=v}var p=i.get(["label","margin"]),g=kWe(r,a,i,l,p);uU(n,a,i,o,g)},t}(_E);function kWe(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=Ra();Ll(d,d,s),zi(d,d,[r.cx,r.cy]),u=Ni([o,-a],d);var h=t.getModel("axisLabel").get("rotate")||0,v=ss.innerTextLayout(s,h*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var p=l[1];u=r.coordToPoint([p+a,o]);var g=r.cx,m=r.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-m)/p<.3?"middle":u[1]>m?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var AWe={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:CE(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:G3(t.cx,t.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:G3(t.cx,t.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const EWe=MWe;var IWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.findAxisModel=function(n){var r,a=this.ecModel;return a.eachComponent(n,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Yt);const DWe=IWe;var xE=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Wn).models[0]},t.type="polarAxis",t}(Yt);Vn(xE,qd);var PWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t}(xE),LWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t}(xE),TE=function(e){ge(t,e);function t(n,r){return e.call(this,"radius",n,r)||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t}(gi);TE.prototype.dataToRadius=gi.prototype.dataToCoord;TE.prototype.radiusToData=gi.prototype.coordToData;const RWe=TE;var OWe=en(),ME=function(e){ge(t,e);function t(n,r){return e.call(this,"angle",n,r||[0,360])||this}return t.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),a=n.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=cg(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=OWe(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}(gi);ME.prototype.dataToAngle=gi.prototype.dataToCoord;ME.prototype.angleToData=gi.prototype.coordToData;const $We=ME;var pU=["radius","angle"],NWe=function(){function e(t){this.dimensions=pU,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new RWe,this._angleAxis=new $We,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=X3(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=X3(n);return a===this?this.pointToData(r):null},e}();function X3(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const BWe=NWe;function VWe(e,t,n){var r=t.get("center"),a=n.getWidth(),i=n.getHeight();e.cx=qe(r[0],a),e.cy=qe(r[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:Re(l)||(l=[0,l]);var u=[qe(l[0],s),qe(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function zWe(e,t){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();F(Q0(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),F(Q0(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),pc(r.scale,r.model),pc(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 FWe(e){return e.mainType==="angleAxis"}function Z3(e,t){if(e.type=t.get("type"),e.scale=_g(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),FWe(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 HWe={dimensions:pU,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,a){var i=new BWe(a+"");i.update=zWe;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");Z3(o,l),Z3(s,u),VWe(i,r,t),n.push(i),r.coordinateSystem=i,i.model=r}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",Wn).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const GWe=HWe;var WWe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function jm(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 qm(e){var t=e.getRadiusAxis();return t.inverse?0:1}function J3(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 KWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=n.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=Oe(a.getViewLabels(),function(c){c=pt(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});J3(u),J3(s),F(WWe,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&UWe[c](this.group,n,i,s,l,o,u)},this)}},t.type="angleAxis",t}(Ic),UWe={axisLine:function(e,t,n,r,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=qm(n),l=s?0:1,u;i[l]===0?u=new Hi({shape:{cx:n.cx,cy:n.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new hg({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[qm(n)],u=Oe(r,function(c){return new ar({shape:jm(n,[l,l+s],c.coord)})});e.add(Ma(u,{style:ft(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[qm(n)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new ar({shape:jm(n,[u,u+l],a[f][d].coord)}));e.add(Ma(c,{style:ft(s.getModel("lineStyle").getLineStyle(),ft(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");F(o,function(f,d){var h=l,v=f.tickValue,p=i[qm(n)],g=n.coordToPoint([p+u,f.coord]),m=n.cx,b=n.cy,_=Math.abs(g[0]-m)/p<.3?"center":g[0]>m?"left":"right",w=Math.abs(g[1]-b)/p<.3?"middle":g[1]>b?"top":"bottom";if(s&&s[v]){var C=s[v];ht(C)&&C.textStyle&&(h=new dn(C.textStyle,l,l.ecModel))}var S=new Xt({silent:ss.isLabelSilent(t),style:gn(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:w})});if(e.add(S),c){var x=ss.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=f.rawLabel,Tt(S).eventData=x}},this)},splitLine:function(e,t,n,r,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<r.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new ar({shape:jm(n,i,r[f].coord)}))}for(var f=0;f<c.length;f++)e.add(Ma(c[f],{style:ft({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new ar({shape:jm(n,i,a[u][c].coord)}));e.add(Ma(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,n,r,a,i){if(r.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-r[0].coord*f,h=Math.min(i[0],i[1]),v=Math.max(i[0],i[1]),p=t.get("clockwise"),g=1,m=r.length;g<=m;g++){var b=g===m?r[0].coord:r[g].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new na({shape:{cx:n.cx,cy:n.cy,r0:h,r:v,startAngle:d,endAngle:-b*f,clockwise:p},silent:!0})),d=-b*f}for(var g=0;g<c.length;g++)e.add(Ma(c[g],{style:ft({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const YWe=KWe;var jWe=["axisLine","axisTickLabel","axisName"],qWe=["splitLine","splitArea","minorSplitLine"],XWe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return t.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=this._axisGroup,i=this._axisGroup=new bt;this.group.add(i);var o=n.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],d=o.getExtent(),h=JWe(s,n,f),v=new ss(n,h);F(jWe,v.add,v),i.add(v.getGroup()),gg(a,i,n),F(qWe,function(p){n.get([p,"show"])&&!o.scale.isBlank()&&ZWe[p](this.group,n,s,f,d,u,c)},this)}},t.type="radiusAxis",t}(Ic),ZWe={splitLine:function(e,t,n,r,a,i){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<i.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Hi({shape:{cx:n.cx,cy:n.cy,r:Math.max(i[f].coord,0)}}))}for(var f=0;f<c.length;f++)e.add(Ma(c[f],{style:ft({stroke:l[f%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new Hi({shape:{cx:n.cx,cy:n.cy,r:o[c][f].coord}}));e.add(Ma(u,{style:ft({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,d=1;d<i.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new na({shape:{cx:n.cx,cy:n.cy,r0:f,r:i[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[d].coord}for(var d=0;d<c.length;d++)e.add(Ma(c[d],{style:ft({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function JWe(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 QWe=XWe;function gU(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function mU(e,t){return t.dim+e.model.componentIndex}function e9e(e,t,n){var r={},a=t9e(ln(t.getSeriesByType(e),function(i){return!t.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=mU(s,l),c=gU(i),f=a[u][c],d=f.offset,h=f.width,v=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,m=i.get("barMinHeight")||0,b=i.get("barMinAngle")||0;r[c]=r[c]||[];for(var _=o.mapDimension(v.dim),w=o.mapDimension(l.dim),C=os(o,_),S=l.dim!=="radius"||!i.get("roundCap",!0),x=v.dataToCoord(0),T=0,M=o.count();T<M;T++){var A=o.get(_,T),k=o.get(w,T),E=A>=0?"p":"n",D=x;C&&(r[c][k]||(r[c][k]={p:x,n:x}),D=r[c][k][E]);var L=void 0,B=void 0,N=void 0,O=void 0;if(v.dim==="radius"){var $=v.dataToCoord(A)-x,I=l.dataToCoord(k);Math.abs($)<m&&($=($<0?-1:1)*m),L=D,B=D+$,N=I-d,O=N-h,C&&(r[c][k][E]=B)}else{var z=v.dataToCoord(A,S)-x,G=l.dataToCoord(k);Math.abs(z)<b&&(z=(z<0?-1:1)*b),L=G+d,B=L+h,N=D,O=D+z,C&&(r[c][k][E]=O)}o.setItemLayout(T,{cx:p,cy:g,r0:L,r:B,startAngle:-N*Math.PI/180,endAngle:-O*Math.PI/180,clockwise:N>=O})}}})}function t9e(e){var t={};F(e,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=mU(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=gU(r);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var v=qe(r.get("barWidth"),c),p=qe(r.get("barMaxWidth"),c),g=r.get("barGap"),m=r.get("barCategoryGap");v&&!d[h].width&&(v=Math.min(f.remainedWidth,v),d[h].width=v,f.remainedWidth-=v),p&&(d[h].maxWidth=p),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var n={};return F(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=qe(r.categoryGap,o),l=qe(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),F(i,function(p,g){var m=p.maxWidth;m&&m<f&&(m=Math.min(m,u),p.width&&(m=Math.min(m,p.width)),u-=m,p.width=m,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;F(i,function(p,g){p.width||(p.width=f),h=p,d+=p.width*(1+l)}),h&&(d-=h.width*l);var v=-d/2;F(i,function(p,g){n[a][g]=n[a][g]||{offset:v,width:p.width},v+=p.width*(1+l)})}),n}var n9e={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},r9e={splitNumber:5},a9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="polar",t}(An);function i9e(e){Bt(Eg),Ic.registerAxisPointerClass("PolarAxisPointer",EWe),e.registerCoordinateSystem("polar",GWe),e.registerComponentModel(DWe),e.registerComponentView(a9e),yd(e,"angle",PWe,n9e),yd(e,"radius",LWe,r9e),e.registerComponentView(YWe),e.registerComponentView(QWe),e.registerLayout(xt(e9e,"bar"))}function aT(e,t){t=t||{};var n=e.coordinateSystem,r=e.axis,a={},i=r.position,o=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=f[i],e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),rr(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=t.rotate;return d==null&&(d=e.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-d:d,a.z2=1,a}var o9e=["axisLine","axisTickLabel","axisName"],s9e=["splitArea","splitLine"],l9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="SingleAxisPointer",n}return t.prototype.render=function(n,r,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new bt;var l=aT(n),u=new ss(n,l);F(o9e,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),F(s9e,function(c){n.get([c,"show"])&&u9e[c](this,this.group,this._axisGroup,n)},this),gg(s,this._axisGroup,n),e.prototype.render.call(this,n,r,a,i)},t.prototype.remove=function(){N7(this)},t.type="singleAxis",t}(Ic),u9e={splitLine:function(e,t,n,r){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=r.coordinateSystem.getRect(),c=a.isHorizontal(),f=[],d=0,h=a.getTicksCoords({tickModel:i}),v=[],p=[],g=0;g<h.length;++g){var m=a.toGlobalCoord(h[g].coord);c?(v[0]=m,v[1]=u.y,p[0]=m,p[1]=u.y+u.height):(v[0]=u.x,v[1]=m,p[0]=u.x+u.width,p[1]=m);var b=new ar({shape:{x1:v[0],y1:v[1],x2:p[0],y2:p[1]},silent:!0});vd(b.shape,l);var _=d++%s.length;f[_]=f[_]||[],f[_].push(b)}for(var w=o.getLineStyle(["color"]),g=0;g<f.length;++g)t.add(Ma(f[g],{style:ft({stroke:s[g%s.length]},w),silent:!0}))}},splitArea:function(e,t,n,r){$7(e,n,r,r)}};const c9e=l9e;var yU=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(Yt);Vn(yU,qd.prototype);const HS=yU;var f9e=function(e){ge(t,e);function t(n,r,a,i,o){var s=e.call(this,n,r,a)||this;return s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.pointToData=function(n,r){return this.coordinateSystem.pointToData(n)[0]},t}(gi);const d9e=f9e;var bU=["single"],h9e=function(){function e(t,n,r){this.type="single",this.dimension="single",this.dimensions=bU,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 d9e(a,_g(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(t,n){t.eachSeries(function(r){if(r.coordinateSystem===this){var a=r.getData();F(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),pc(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,n){this._rect=Xn({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,n=this._axis,r=n.isHorizontal(),a=r?[0,t.width]:[0,t.height],i=n.inverse?1:0;n.setExtent(a[i],a[1-i]),this._updateAxisTransform(n,r?t.x:t.y)},e.prototype._updateAxisTransform=function(t,n){var r=t.getExtent(),a=r[0]+r[1],i=t.isHorizontal();t.toGlobalCoord=i?function(o){return o+n}:function(o){return a-o+n},t.toLocalCoord=i?function(o){return o-n}:function(o){return a-o+n}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var n=this.getRect(),r=this.getAxis(),a=r.orient;return a==="horizontal"?r.contain(r.toLocalCoord(t[0]))&&t[1]>=n.y&&t[1]<=n.y+n.height:r.contain(r.toLocalCoord(t[1]))&&t[0]>=n.y&&t[0]<=n.y+n.height},e.prototype.pointToData=function(t){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(t[n.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var n=this.getAxis(),r=this.getRect(),a=[],i=n.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),a[i]=n.toGlobalCoord(n.dataToCoord(+t)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},e.prototype.convertToPixel=function(t,n,r){var a=Q3(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=Q3(n);return a===this?this.pointToData(r):null},e}();function Q3(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function v9e(e,t){var n=[];return e.eachComponent("singleAxis",function(r,a){var i=new h9e(r,e,t);i.name="single_"+a,i.resize(r,t),r.coordinateSystem=i,n.push(i)}),e.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",Wn).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var p9e={create:v9e,dimensions:bU};const g9e=p9e;var e4=["x","y"],m9e=["width","height"],y9e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=GS(l,1-vb(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=wE(i),h=b9e[f](s,c,u);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=aT(a);fU(r,n,v,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=aT(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=SE(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=vb(o),u=GS(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=GS(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}(_E),b9e={line:function(e,t,n){var r=CE([t,n[0]],[t,n[1]],vb(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:dU([t-r/2,n[0]],[r,a],vb(e))}}};function vb(e){return e.isHorizontal()?0:1}function GS(e,t){var n=e.getRect();return[n[e4[t]],n[e4[t]]+n[m9e[t]]]}const _9e=y9e;var w9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t}(An);function S9e(e){Bt(Eg),Ic.registerAxisPointerClass("SingleAxisPointer",_9e),e.registerComponentView(w9e),e.registerComponentView(c9e),e.registerComponentModel(HS),yd(e,"single",HS,HS.defaultOption),e.registerCoordinateSystem("single",g9e)}var C9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r,a){var i=Fd(n);e.prototype.init.apply(this,arguments),t4(n,i)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),t4(this.option,n)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(Yt);function t4(e,t){var n=e.cellSize,r;Re(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=Oe([0,1],function(i){return hRe(t,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});bl(e,t,{type:"box",ignoreSize:a})}const x9e=C9e;var T9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){var i=this.group;i.removeAll();var o=n.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,i),this._renderLines(n,s,l,i),this._renderYearText(n,s,l,i),this._renderMonthText(n,u,l,i),this._renderWeekText(n,u,s,l,i)},t.prototype._renderDayRect=function(n,r,a){for(var i=n.coordinateSystem,o=n.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new Zt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},t.prototype._renderLines=function(n,r,a,i){var o=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){v(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}v(s.getNextNDay(r.end.time,1).formatedDate);function v(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(n,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},t.prototype._getEdgesPoints=function(n,r,a){var i=[n[0].slice(),n[n.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},t.prototype._drawSplitline=function(n,r,a){var i=new ia({z2:20,shape:{points:n},style:r});a.add(i)},t.prototype._getLinePointsOfOneWeek=function(n,r,a){for(var i=n.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(n,r){return Je(n)&&n?uRe(n,r):ut(n)?n(r):r.nameMap},t.prototype._yearTextPositionControl=function(n,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(n,r,a,i){var o=n.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},v=r.start.y;+r.end.y>+r.start.y&&(v=v+"-"+r.end.y);var p=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:v},m=this._formatterLabel(p,g),b=new Xt({z2:30,style:gn(o,{text:m})});b.attr(this._yearTextPositionControl(b,h[l],a,l,s)),i.add(b)}},t.prototype._monthTextPositionControl=function(n,r,a,i,o){var s="left",l="top",u=n[0],c=n[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(n,r,a,i){var o=n.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||Je(s))&&(s&&(r=h2(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=c==="center",p=0;p<f[d].length-1;p++){var g=f[d][p].slice(),m=this._firstDayOfMonth[p];if(v){var b=this._firstDayPoints[p];g[h]=(b[h]+f[0][p+1][h])/2}var _=o.get("formatter"),w=s[+m.m-1],C={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:w},S=this._formatterLabel(_,C),x=new Xt({z2:30,style:Ie(gn(o,{text:S}),this._monthTextPositionControl(g,v,a,u,l))});i.add(x)}}},t.prototype._weekTextPositionControl=function(n,r,a,i,o){var s="center",l="middle",u=n[0],c=n[1],f=a==="start";return r==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(n,r,a,i,o){var s=n.getModel("dayLabel");if(s.get("show")){var l=n.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||Je(c)){c&&(r=h2(c)||r);var h=r.get(["time","dayOfWeekShort"]);c=h||Oe(r.get(["time","dayOfWeekAbbr"]),function(C){return C[0]})}var v=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=qe(f,Math.min(p[1],p[0])),u==="start"&&(v=l.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var g=0;g<7;g++){var m=l.getNextNDay(v,g),b=l.dataToRect([m.time],!1).center,_=g;_=Math.abs((g+d)%7);var w=new Xt({z2:30,style:Ie(gn(s,{text:c[_]}),this._weekTextPositionControl(b,i,u,f,p))});o.add(w)}}},t.type="calendar",t}(An);const M9e=T9e;var WS=864e5,k9e=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=Oa(t);var n=t.getFullYear(),r=t.getMonth()+1,a=r<10?"0"+r:""+r,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:n+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:n+"-"+a+"-"+o,date:t}},e.prototype.getNextNDay=function(t,n){return n=n||0,n===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+n),this.getDateInfo(t))},e.prototype.update=function(t,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];F([0,1],function(f){c(i,f)&&(o[a[f]]=i[f]*s[f])});var l={width:n.getWidth(),height:n.getHeight()},u=this._rect=Xn(o,l);F([0,1],function(f){c(i,f)||(i[f]=u[a[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(t,n){Re(t)&&(t=t[0]),n==null&&(n=!0);var r=this.getDateInfo(t),a=this._rangeInfo,i=r.formatedDate;if(n&&!(r.time>=a.start.time&&r.time<a.end.time+WS))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=n4(n);return a===this?a.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=n4(n);return a===this?a.pointToData(r):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),n;if(Re(t)&&t.length===1&&(t=t[0]),Re(t))n=t;else{var r=t.toString();if(/^\d{4}$/.test(r)&&(n=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var a=this.getDateInfo(r),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);n=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(n=[r,r])}if(!n)return t;var s=this._getRangeInfo(n);return s.start.time>s.end.time&&n.reverse(),n},e.prototype._getRangeInfo=function(t){var n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var a=Math.floor(n[1].time/WS)-Math.floor(n[0].time/WS)+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 n4(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}const A9e=k9e;function E9e(e){e.registerComponentModel(x9e),e.registerComponentView(M9e),e.registerCoordinateSystem("calendar",A9e)}function I9e(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 r4(e,t){var n;return F(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function D9e(e,t,n){var r=Ie({},n),a=e[t],i=n.$action||"merge";i==="merge"?a?(Dt(a,r,!0),bl(a,r,{ignoreSize:!0}),tW(n,a),Xm(n,a),Xm(n,a,"shape"),Xm(n,a,"style"),Xm(n,a,"extra"),n.clipPath=a.clipPath):e[t]=r:i==="replace"?e[t]=r:i==="remove"&&a&&(e[t]=null)}var _U=["transition","enterFrom","leaveTo"],P9e=_U.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Xm(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?_U:P9e,a=0;a<r.length;a++){var i=r[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function L9e(e,t){if(e&&(e.hv=t.hv=[r4(t,["left","right"]),r4(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 R9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return t.prototype.mergeOption=function(n,r){var a=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,n,r),this.option.elements=a},t.prototype.optionUpdated=function(n,r){var a=this.option,i=(r?a:n).elements,o=a.elements=r?[]:a.elements,s=[];this._flatten(i,s,null);var l=BH(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];F(l,function(c,f){var d=c.newOption;d&&(u.push(d),I9e(c,d),D9e(o,f,d),L9e(o[f],d))},this),a.elements=ln(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(n,r,a){F(n,function(i){if(i){a&&(i.parentOption=a),r.push(i);var o=i.children;o&&o.length&&this._flatten(o,r,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},t.type="graphic",t.defaultOption={elements:[]},t}(Yt),a4={path:null,compoundPath:null,group:bt,image:vr,text:Xt},Ua=en(),O9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this._elMap=ot()},t.prototype.render=function(n,r,a){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,a)},t.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var a=this._elMap,i=this.group,o=n.get("z"),s=n.get("zlevel");F(r,function(l){var u=tr(l.id,null),c=u!=null?a.get(u):null,f=tr(l.parentId,null),d=f!=null?a.get(f):i,h=l.type,v=l.style;h==="text"&&v&&l.hv&&l.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var p=l.textContent,g=l.textConfig;if(v&&QK(v,h,!!g,!!p)){var m=eU(v,h,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var b=$9e(l),_=l.$action||"merge",w=_==="merge",C=_==="replace";if(w){var S=!c,x=c;S?x=i4(u,d,l.type,a):(x&&(Ua(x).isNew=!1),aU(x)),x&&(jy(x,b,n,{isInit:S}),o4(x,l,o,s))}else if(C){Xy(c,l,a,n);var T=i4(u,d,l.type,a);T&&(jy(T,b,n,{isInit:!0}),o4(T,l,o,s))}else _==="remove"&&(nU(c,l),Xy(c,l,a,n));var M=a.get(u);if(M&&p)if(w){var A=M.getTextContent();A?A.attr(p):M.setTextContent(new Xt(p))}else C&&M.setTextContent(new Xt(p));if(M){var k=l.clipPath;if(k){var E=k.type,D=void 0,S=!1;if(w){var L=M.getClipPath();S=!L||Ua(L).type!==E,D=S?iT(E):L}else C&&(S=!0,D=iT(E));M.setClipPath(D),jy(D,k,n,{isInit:S}),db(D,k.keyframeAnimation,n)}var B=Ua(M);M.setTextConfig(g),B.option=l,N9e(M,n,l),Bd({el:M,componentModel:n,itemName:M.name,itemTooltipOption:l.tooltip}),db(M,l.keyframeAnimation,n)}})}},t.prototype._relocate=function(n,r){for(var a=n.option.elements,i=this.group,o=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<a.length;c++){var f=a[c],d=tr(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var v=h.parent,p=v===i,g=Ua(h),m=Ua(v);g.width=qe(g.option.width,p?s:m.width)||0,g.height=qe(g.option.height,p?l:m.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=tr(f.id,null),h=d!=null?o.get(d):null;if(h){var v=h.parent,m=Ua(v),b=v===i?{width:s,height:l}:{width:m.width,height:m.height},_={},w=V1(h,f,b,null,{hv:f.hv,boundingMode:f.bounding},_);if(!Ua(h).isNew&&w){for(var C=f.transition,S={},x=0;x<u.length;x++){var T=u[x],M=_[T];C&&(rc(C)||$t(C,T)>=0)?S[T]=M:h[T]=M}nn(h,S,n,0)}else h.attr(_)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){Xy(a,Ua(a).option,r,n._lastGraphicModel)}),this._elMap=ot()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(An);function iT(e){var t=nt(a4,e)?a4[e]:P1(e),n=new t({});return Ua(n).type=e,n}function i4(e,t,n,r){var a=iT(n);return t.add(a),r.set(e,a),Ua(a).id=e,Ua(a).isNew=!0,a}function Xy(e,t,n,r){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){Xy(i,t,n,r)}),n_(e,t,r),n.removeKey(Ua(e).id))}function o4(e,t,n,r){e.isGroup||F([["cursor",fi.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];nt(t,i)?e[i]=Lt(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),F(Gt(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=ut(i)?i:null}}),nt(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function $9e(e){return e=Ie({},e),F(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(eW),function(t){delete e[t]}),e}function N9e(e,t,n){var r=Tt(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Tt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function B9e(e){e.registerComponentModel(R9e),e.registerComponentView(O9e),e.registerPreprocessor(function(t){var n=t.graphic;Re(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var s4=["x","y","radius","angle","single"],V9e=["cartesian2d","polar","singleAxis"];function z9e(e){var t=e.get("coordinateSystem");return $t(V9e,t)>=0}function Zs(e){return e+"Axis"}function F9e(e,t){var n=ot(),r=[],a=ot();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var v=n.get(d);v&&v[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function wU(e){var t=e.ecModel,n={infoList:[],infoMap:ot()};return e.eachTargetAxis(function(r,a){var i=t.getComponent(Zs(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 KS=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}(),H9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return t.prototype.init=function(n,r,a){var i=l4(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},t.prototype.mergeOption=function(n){var r=l4(n);Dt(this.option,n,!0),Dt(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;F([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=ot(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return F(s4,function(a){var i=this.getReferringComponents(Zs(a),UDe);if(i.specified){r=!0;var o=new KS;F(i.models,function(s){o.add(s.componentIndex)}),n.set(a,o)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new KS;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",Wn).models[0];h&&F(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Wn).models[0]&&d.add(v.componentIndex)})}}}i&&F(s4,function(u){if(i){var c=a.findComponents({mainType:Zs(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new KS;f.add(c[0].componentIndex),n.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");F([["start","startValue"],["end","endValue"]],function(i,o){var s=n[i[0]]!=null,l=n[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(Zs(r),a))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){F(a.indexList,function(o){n.call(r,i,o)})})},t.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(Zs(n),r)},t.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;F([["start","startValue"],["end","endValue"]],function(i){(n[i[0]]!=null||n[i[1]]!=null)&&(r[i[0]]=a[i[0]]=n[i[0]],r[i[1]]=a[i[1]]=n[i[1]])},this),this._updateRangeUse(n)},t.prototype.setCalculatedRange=function(n){var r=this.option;F(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},t.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},t.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Yt);function l4(e){var t={};return F(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}const zp=H9e;var G9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.select",t}(zp);const W9e=G9e;var K9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a,i){this.dataZoomModel=n,this.ecModel=r,this.api=a},t.type="dataZoom",t}(An);const kE=K9e;var U9e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.select",t}(kE);const Y9e=U9e;var vf=F,u4=Ia,j9e=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(z9e(n)){var r=Zs(this._dimName),a=n.getReferringComponents(r,Wn).models[0];a&&this._axisIndex===a.componentIndex&&t.push(n)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return pt(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var n=this._dataExtent,r=this.getAxisModel(),a=r.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;vf(["start","end"],function(d,h){var v=t[d],p=t[d+"Value"];i[h]==="percent"?(v==null&&(v=o[h]),p=a.parse(sn(v,o,n))):(u=!0,p=p==null?n[h]:a.parse(p),v=sn(p,n,o)),l[h]=p==null||isNaN(p)?n[h]:p,s[h]=v==null||isNaN(v)?o[h]:v}),u4(l),u4(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";Dc(0,d,v,"all",c["min"+m],c["max"+m]);for(var b=0;b<2;b++)h[b]=sn(d[b],v,p,!0),g&&(h[b]=a.parse(h[b]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=q9e(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;vf(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=Oe(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,p,g,m=0;m<c.length;m++){var b=f.get(d[m],h),_=!isNaN(b),w=b<o[0],C=b>o[1];if(_&&!w&&!C)return!0;_&&(g=!0),w&&(v=!0),C&&(p=!0)}return g&&v&&p})}else vf(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)}});vf(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;vf(["min","max"],function(a){var i=n.get(a+"Span"),o=n.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=sn(r[0]+o,r,[0,100],!0):i!=null&&(o=sn(i,[0,100],r,!0)-r[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=Pk(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 q9e(e,t,n){var r=[1/0,-1/0];vf(n,function(o){i3e(r,o.getData(),t)});var a=e.getAxisModel(),i=B9(a.axis.scale,a,r).calculate();return[i.min,i.max]}const X9e=j9e;var Z9e={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(Zs(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 X9e(a,i,s,e),n.push(o.__dzAxisProxy))});var r=ot();return F(n,function(a){F(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,t)})}),e.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const J9e=Z9e;function Q9e(e){e.registerAction("dataZoom",function(t,n){var r=F9e(n,t);F(r,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var c4=!1;function AE(e){c4||(c4=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,J9e),Q9e(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function e7e(e){e.registerComponentModel(W9e),e.registerComponentView(Y9e),AE(e)}var ja=function(){function e(){}return e}(),SU={};function pf(e,t){SU[e]=t}function CU(e){return SU[e]}var t7e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;F(this.option.feature,function(r,a){var i=CU(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),Dt(r,i.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(Yt);const n7e=t7e;function r7e(e,t,n){var r=t.getBoxLayoutParams(),a=t.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=Xn(r,i,a);Qu(t.get("orient"),e,t.get("itemGap"),o.width,o.height),V1(e,r,i,a)}function xU(e,t){var n=kc(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Zt({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var a7e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){var o=this.group;if(o.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];F(u,function(v,p){f.push(p)}),new is(this._featureNames||[],f).add(d).update(d).remove(xt(d,null)).execute(),this._featureNames=f;function d(v,p){var g=f[v],m=f[p],b=u[g],_=new dn(b,n,n.ecModel),w;if(i&&i.newTitle!=null&&i.featureName===g&&(b.title=i.newTitle),g&&!m){if(i7e(g))w={onclick:_.option.onclick,featureName:g};else{var C=CU(g);if(!C)return;w=new C}c[g]=w}else if(w=c[m],!w)return;w.uid=zd("toolbox-feature"),w.model=_,w.ecModel=r,w.api=a;var S=w instanceof ja;if(!g&&m){S&&w.dispose&&w.dispose(r,a);return}if(!_.get("show")||S&&w.unusable){S&&w.remove&&w.remove(r,a);return}h(_,w,g),_.setIconStatus=function(x,T){var M=this.option,A=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[x]=T,A[x]&&(T==="emphasis"?rs:as)(A[x])},w instanceof ja&&w.render&&w.render(_,r,a,i)}function h(v,p,g){var m=v.getModel("iconStyle"),b=v.getModel(["emphasis","iconStyle"]),_=p instanceof ja&&p.getIcons?p.getIcons():v.get("icon"),w=v.get("title")||{},C,S;Je(_)?(C={},C[g]=_):C=_,Je(w)?(S={},S[g]=w):S=w;var x=v.iconPaths={};F(C,function(T,M){var A=Nd(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(m.getItemStyle());var k=A.ensureState("emphasis");k.style=b.getItemStyle();var E=new Xt({style:{text:S[M],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});A.setTextContent(E),Bd({el:A,componentModel:n,itemName:M,formatterParamsExtra:{title:S[M]}}),A.__title=S[M],A.on("mouseover",function(){var D=b.getItemStyle(),L=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";E.setStyle({fill:b.get("textFill")||D.fill||D.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),A.setTextConfig({position:b.get("textPosition")||L}),E.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",M])!=="emphasis"&&a.leaveEmphasis(this),E.hide()}),(v.get(["iconStatus",M])==="emphasis"?rs:as)(A),o.add(A),A.on("click",et(p.onclick,p,r,a,M)),x[M]=A})}r7e(o,n,a),o.add(xU(o.getBoundingRect(),n)),l||o.eachChild(function(v){var p=v.__title,g=v.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),b=v.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!ut(_)&&p){var w=_.style||(_.style={}),C=cg(p,Xt.makeFont(w)),S=v.x+o.x,x=v.y+o.y+s,T=!1;x+C.height>a.getHeight()&&(m.position="top",T=!0);var M=T?-5-C.height:s+10;S+C.width/2>a.getWidth()?(m.position=["100%",M],w.align="right"):S-C.width/2<0&&(m.position=[0,M],w.align="left")}})},t.prototype.updateView=function(n,r,a,i){F(this._features,function(o){o instanceof ja&&o.updateView&&o.updateView(o.model,r,a,i)})},t.prototype.remove=function(n,r){F(this._features,function(a){a instanceof ja&&a.remove&&a.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){F(this._features,function(a){a instanceof ja&&a.dispose&&a.dispose(n,r)})},t.type="toolbox",t}(An);function i7e(e){return e.indexOf("my")===0}const o7e=a7e;var s7e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){var a=this.model,i=a.get("name")||n.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Jt.browser;if(ut(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,v=o?decodeURIComponent(d[1]):d[1];h&&(v=window.atob(v));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=v.length,m=new Uint8Array(g);g--;)m[g]=v.charCodeAt(g);var b=new Blob([m]);window.navigator.msSaveOrOpenBlob(b,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var w=_.contentWindow,C=w.document;C.open("image/svg+xml","replace"),C.write(v),C.close(),w.focus(),C.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var S=a.get("lang"),x='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',T=window.open();T.document.write(x),T.document.title=i}},t.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},t}(ja);const l7e=s7e;var f4="__ec_magicType_stack__",u7e=[["line","bar"],["stack"]],c7e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),a={};return F(n.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},t.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},t.prototype.onclick=function(n,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(d4[a]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,v=d4[a](d,h,f,i);v&&(ft(v,f.option),s.series.push(v));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,b=m+"Axis",_=f.getReferringComponents(b,Wn).models[0],w=_.componentIndex;s[b]=s[b]||[];for(var C=0;C<=w;C++)s[b][w]=s[b][w]||{};s[b][w].boundaryGap=a==="bar"}}};F(u7e,function(f){$t(f,a)>=0&&F(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=Dt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(ja),d4={line:function(e,t,n,r){if(e==="bar")return Dt({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){if(e==="line")return Dt({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var a=n.get("stack")===f4;if(e==="line"||e==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),Dt({id:t,stack:a?"":f4},r.get(["option","stack"])||{},!0)}};Yi({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const f7e=c7e;var r_=new Array(60).join("-"),wd=" ";function d7e(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 h7e(e){var t=[];return F(e,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(Oe(n.series,function(h){return h.name})),l=[a.model.getCategories()];F(n.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(p){return p}))});for(var u=[s.join(wd)],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(wd))}t.push(u.join(`
  93. `))}),t.join(`
  94. `+r_+`
  95. `)}function v7e(e){return Oe(e,function(t){var n=t.getRawData(),r=[t.name],a=[];return n.each(n.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=n.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];r.push((s?s+wd:"")+a.join(wd))}),r.join(`
  96. `)}).join(`
  97. `+r_+`
  98. `)}function p7e(e){var t=d7e(e);return{value:ln([h7e(t.seriesGroupByCategoryAxis),v7e(t.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
  99. `+r_+`
  100. `),meta:t.meta}}function pb(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function g7e(e){var t=e.slice(0,e.indexOf(`
  101. `));if(t.indexOf(wd)>=0)return!0}var oT=new RegExp("["+wd+"]+","g");function m7e(e){for(var t=e.split(/\n+/g),n=pb(t.shift()).split(oT),r=[],a=Oe(n,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=pb(t[i]).split(oT);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 y7e(e){for(var t=e.split(/\n+/g),n=pb(t.shift()),r=[],a=0;a<t.length;a++){var i=pb(t[a]);if(i){var o=i.split(oT),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 b7e(e,t){var n=e.split(new RegExp(`
  102. *`+r_+`
  103. *`,"g")),r={series:[]};return F(n,function(a,i){if(g7e(a)){var o=m7e(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=y7e(a);r.series.push(o)}}),r}var _7e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var a=r.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),d=i.get("contentToOption"),h=p7e(n);if(ut(f)){var v=f(r.getOption());Je(v)?u.innerHTML=v:dd(v)&&u.appendChild(v)}else{c.readOnly=i.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),w=document.createElement("div");b+=";background-color:"+i.get("buttonColor"),b+=";color:"+i.get("buttonTextColor");var C=this;function S(){a.removeChild(o),C._dom=null}Bx(_,"click",S),Bx(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){S();return}var x;try{ut(d)?x=d(u,r.getOption()):x=b7e(c.value,g)}catch(T){throw S(),new Error("Data view format error "+T)}x&&r.dispatchAction({type:"changeDataView",newOption:x}),S()}),_.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=_.style.cssText=b,!i.get("readOnly")&&m.appendChild(w),m.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(m),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},t.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},t.prototype.dispose=function(n,r){this.remove(n,r)},t.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},t}(ja);function w7e(e,t){return Oe(e,function(n,r){var a=t&&t[r];if(ht(a)&&!Re(a)){var i=ht(n)&&!Re(n);i||(n={value:n});var o=a.name!=null&&n.name==null;return n=ft(n,a),o&&delete n.name,n}else return n})}Yi({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];F(e.newOption.series,function(r){var a=t.getSeriesByName(r.name)[0];if(!a)n.push(Ie({type:"scatter"},r));else{var i=a.get("data");n.push({name:r.name,data:w7e(r.data,i)})}}),t.mergeOption(ft({series:n},e.newOption))});const S7e=_7e;var TU=F,MU=en();function C7e(e,t){var n=EE(e);TU(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 x7e(e){var t=EE(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return TU(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 T7e(e){MU(e).snapshots=null}function M7e(e){return EE(e).length}function EE(e){var t=MU(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var k7e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){T7e(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}(ja);Yi({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const A7e=k7e;var E7e=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],I7e=function(){function e(t,n,r){var a=this;this._targetInfoList=[];var i=h4(n,t);F(D7e,function(o,s){(!r||!r.include||$t(r.include,s)>=0)&&o(i,a._targetInfoList)})}return e.prototype.setOutputRanges=function(t,n){return this.matchOutputRanges(t,n,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=US[r.brushType](0,i,a);r.__rangeOffset={offset:m4[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){F(t,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&F(i.coordSyses,function(o){var s=US[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},e.prototype.setInputRanges=function(t,n){F(t,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=US[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?m4[r.brushType](i.values,o.offset,P7e(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,n){return Oe(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:LK(a),isTargetByCursor:OK(a,t,r.coordSysModel),getLinearBrushOtherExtent:RK(a)}})},e.prototype.controlSeries=function(t,n,r){var a=this.findTargetInfo(t,r);return a===!0||a&&$t(a.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,a=h4(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<v4.length;l++)if(v4[l](a,o))return o}return!0},e}();function sT(e){return e[0]>e[1]&&e.reverse(),e}function h4(e,t){return _v(e,t,{includeMainTypes:E7e})}var D7e={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,i=ot(),o={},s={};!n&&!r&&!a||(F(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),F(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),F(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];F(u.getCartesians(),function(f,d){($t(n,f.getAxis("x").model)>=0||$t(r,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:p4.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){F(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:p4.geo})})}},v4=[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}],p4={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(il(e)),t}},US={lineX:xt(g4,0),lineY:xt(g4,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=[sT([a[0],i[0]]),sT([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=Oe(n,function(o){var s=e?t.pointToData(o,r):t.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function g4(e,t,n,r){var a=n.getAxis(["x","y"][e]),i=sT(Oe([0,1],function(s){return t?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[e]=i,o[1-e]=[NaN,NaN],{values:i,xyMinMax:o}}var m4={lineX:xt(y4,0),lineY:xt(y4,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Oe(e,function(r,a){return[r[0]-n[0]*t[a][0],r[1]-n[1]*t[a][1]]})}};function y4(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function P7e(e,t){var n=b4(e),r=b4(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 b4(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const IE=I7e;var lT=F,L7e=FDe("toolbox-dataZoom_"),R7e=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){this._brushController||(this._brushController=new cE(a.getZr()),this._brushController.on("brush",et(this._onBrush,this)).mount()),N7e(n,r,this,i,a),$7e(n,r)},t.prototype.onclick=function(n,r,a){O7e[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 IE(DE(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)}}),C7e(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=Dc(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=[];lT(n,function(a,i){r.push(pt(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},t.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},t}(ja),O7e={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(x7e(this.ecModel))}};function DE(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 $7e(e,t){e.setIconStatus("back",M7e(t)>1?"emphasis":"normal")}function N7e(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 IE(DE(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)}bRe("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=DE(r),o=_v(e,i);lT(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),lT(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:L7e+u+f};d[c]=f,a.push(d)}return a});const B7e=R7e;function V7e(e){e.registerComponentModel(n7e),e.registerComponentView(o7e),pf("saveAsImage",l7e),pf("magicType",f7e),pf("dataView",S7e),pf("dataZoom",B7e),pf("restore",A7e),Bt(e7e)}var z7e=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Yt);const F7e=z7e;function kU(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function AU(e){if(Jt.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var EU=AU(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),H7e=AU(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function IU(e,t){if(!e)return t;t=aA(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function G7e(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var W7e=IU(H7e,"transition"),PE=IU(EU,"transform"),K7e="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Jt.transform3dSupported?"will-change:transform;":"");function U7e(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function Y7e(e,t,n){if(!Je(n)||n==="inside")return"";var r=e.get("backgroundColor"),a=e.get("borderWidth");t=vc(t);var i=U7e(n),o=Math.max(Math.round(a)*1.5,6),s="",l=PE+":",u;$t(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+h+"px";var v=t+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+r+";"];return'<div style="'+p.join("")+'"></div>'}function j7e(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,a="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,a+=Jt.transformSupported?","+PE+r:",left"+r+",top"+r),W7e+":"+a}function _4(e,t,n){var r=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Jt.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=Jt.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+PE+":"+o+";":[["top",0],["left",0],[EU,o]]}function q7e(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),F(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function X7e(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=RW(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),t&&a&&r.push(j7e(a,n)),i&&r.push("background-color:"+i),F(["width","color","radius"],function(h){var v="border-"+h,p=aA(v),g=e.get(p);g!=null&&r.push(v+":"+g+(h==="color"?"":"px"))}),r.push(q7e(c)),f!=null&&r.push("padding:"+kc(f).join("px ")+"px"),r.join(";")+";"}function w4(e,t,n,r,a){var i=t&&t.painter;if(n){var o=i&&i.getViewportRoot();o&&iIe(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 Z7e=function(){function e(t,n,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Jt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=n.getZr(),o=this._appendToBody=r&&r.appendToBody;w4(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();Ha(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=G7e(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=K7e+X7e(t,!this._firstShow,this._longHide)+_4(i[0],i[1],!0)+("border-color:"+vc(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Je(i)&&r.get("trigger")==="item"&&!kU(r)&&(s=Y7e(r,a,i)),Je(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Re(t)||(t=[t]);for(var l=0;l<t.length;l++)dd(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(w4(r,this._zr,this._appendToBody,t,n),r[0]!=null&&r[1]!=null){var a=this.el.style,i=_4(r[0],r[1]);F(i,function(o){a[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Jt.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(et(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},e}();const J7e=Z7e;var Q7e=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),C4(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,r,a,i){var o=this;ht(t)&&an(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new Xt({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:RW(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),F(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),F(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),r=S4(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;C4(a,this._zr,t,n),t=a[0],n=a[1];var i=r.style,o=$s(i.borderWidth||0),s=S4(i);r.x=t+o+s.left,r.y=n+o+s.top,r.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(et(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function $s(e){return Math.max(0,e)}function S4(e){var t=$s(e.shadowBlur||0),n=$s(e.shadowOffsetX||0),r=$s(e.shadowOffsetY||0);return{left:$s(t-n),right:$s(t+n),top:$s(t-r),bottom:$s(t+r)}}function C4(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const eKe=Q7e;var tKe=new Zt({shape:{x:-1,y:-1,width:2,height:2}}),nKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){if(!(Jt.node||!r.getDom())){var a=n.getComponent("tooltip"),i=this._renderMode=jDe(a.get("renderMode"));this._tooltipContent=i==="richText"?new eKe(r):new J7e(r.getDom(),r,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(n,r,a){if(!(Jt.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=a;var i=this._tooltipContent;i.update(n),i.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?Ud(this,"_updatePosition",50,"fixRate"):Ap(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");hU("itemTooltip",this._api,et(function(a,i,o){r!=="none"&&(r.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,i=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(n,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,a,i){if(!(i.from===this.uid||Jt.node||!a.getDom())){var o=x4(i,a);this._ticket="";var s=i.dataByCoordSys,l=oKe(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=tKe;c.x=i.x,c.y=i.y,c.update(),Tt(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,i))return;var f=vU(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(x4(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=Ph([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;Fu(a,function(u){if(Tt(u).dataIndex!=null)return s=u,!0;if(Tt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(n,s,r):l?this._showComponentItemTooltip(n,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=et(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},t.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=Ph([r.tooltipOption],i),l=this._renderMode,u=[],c=ur("section",{blocks:[],noHeader:!0}),f=[],d=new Dw;F(n,function(b){F(b.dataByAxis,function(_){var w=a.getComponent(_.axisDim+"Axis",_.axisIndex),C=_.value;if(!(!w||C==null)){var S=cU(C,w.axis,a,_.seriesDataIndices,_.valueLabelOpt),x=ur("section",{header:S,noHeader:!Ja(S),sortBlocks:!0,blocks:[]});c.blocks.push(x),F(_.seriesDataIndices,function(T){var M=a.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,k=M.getDataParams(A);if(!(k.dataIndex<0)){k.axisDim=_.axisDim,k.axisIndex=_.axisIndex,k.axisType=_.axisType,k.axisId=_.axisId,k.axisValue=RA(w.axis,{value:C}),k.axisValueLabel=S,k.marker=d.makeTooltipMarker("item",vc(k.color),l);var E=cO(M.formatTooltip(A,!0,null)),D=E.frag;if(D){var L=Ph([M],i).get("valueFormatter");x.blocks.push(L?Ie({valueFormatter:L},D):D)}E.text&&f.push(E.text),u.push(k)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,v=s.get("order"),p=gO(c,d,l,v,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
  104. `:"<br/>",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(n,r,a){var i=this._ecModel,o=Tt(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,v=n.positionDefault,p=Ph([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 Dw;m.marker=b.makeTooltipMarker("item",vc(m.color),h);var _=cO(u.formatTooltip(c,!1,f)),w=p.get("order"),C=p.get("valueFormatter"),S=_.frag,x=S?gO(C?Ie({valueFormatter:C},S):S,b,h,w,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,T,n.offsetX,n.offsetY,n.position,n.target,b)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,a){var i=Tt(r),o=i.tooltipConfig,s=o.option||{};if(Je(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=n.positionDefault,d=Ph(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",p=new Dw;this._showOrMove(d,function(){var g=pt(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,n.offsetX,n.offsetY,n.position,r,p)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,a,i,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var h=r,v=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),p=v.color;if(d)if(Je(d)){var g=n.ecModel.get("useUTC"),m=Re(a)?a[0]:a,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,b&&(h=yg(m.axisValue,h,g)),h=iA(h,a,!0)}else if(ut(d)){var _=et(function(w,C){w===this._ticket&&(f.setContent(C,c,n,p,l),this._updatePosition(n,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,_)}else h=d;f.setContent(h,c,n,p,l),f.show(n,p),this._updatePosition(n,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||Re(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Re(r))return{color:i||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=o.getSize(),d=n.get("align"),h=n.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),ut(r)&&(r=r([a,i],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),Re(r))a=qe(r[0],u),i=qe(r[1],c);else if(ht(r)){var p=r;p.width=f[0],p.height=f[1];var g=Xn(p,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(Je(r)&&l){var m=iKe(r,v,f,n.get("borderWidth"));a=m[0],i=m[1]}else{var m=rKe(a,i,o,u,c,d?null:20,h?null:20);a=m[0],i=m[1]}if(d&&(a-=T4(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=T4(h)?f[1]/2:h==="bottom"?f[1]:0),kU(n)){var m=aKe(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&F(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&F(u,function(d,h){var v=f[h]||{},p=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&p.length===g.length,o&&F(p,function(m,b){var _=g[b];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),i&&F(d.seriesDataIndices,function(m){var b=m.seriesIndex,_=r[b],w=i[b];_&&w&&w.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){Jt.node||!r.getDom()||(Ap(this,"_updatePosition"),this._tooltipContent.dispose(),rT("itemTooltip",r))},t.type="tooltip",t}(An);function Ph(e,t,n){var r=t.ecModel,a;n?(a=new dn(n,r,r),a=new dn(t.option,a,r)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof dn&&(o=o.get("tooltip",!0)),Je(o)&&(o={formatter:o}),o&&(a=new dn(o,a,r)))}return a}function x4(e,t){return e.dispatchAction||et(t.dispatchAction,t)}function rKe(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 aKe(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 iKe(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 T4(e){return e==="center"||e==="middle"}function oKe(e,t,n){var r=Nk(e).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=fg(t,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=n.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Tt(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const sKe=nKe;function lKe(e){Bt(Eg),e.registerComponentModel(F7e),e.registerComponentView(sKe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Nn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Nn)}var uKe=["rect","polygon","keep","clear"];function cKe(e,t){var n=hn(e?e.brush:[]);if(n.length){var r=[];F(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=e&&e.toolbox;Re(a)&&(a=a[0]),a||(a={feature:{}},e.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),fKe(s),t&&!s.length&&s.push.apply(s,uKe)}}function fKe(e){var t={};F(e,function(n){t[n]=1}),e.length=0,F(t,function(n,r){e.push(r)})}var M4=F;function k4(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function uT(e,t,n){var r={};return M4(t,function(i){var o=r[i]=a();M4(e[i],function(s,l){if(wr.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new wr(u),l==="opacity"&&(u=pt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new wr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function DU(e,t,n){var r;F(n,function(a){t.hasOwnProperty(a)&&k4(t[a])&&(r=!0)}),r&&F(n,function(a){t.hasOwnProperty(a)&&k4(t[a])?e[a]=pt(t[a]):delete e[a]})}function dKe(e,t,n,r,a,i){var o={};F(e,function(f){var d=wr.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return mA(n,s,f)}function u(f,d){WW(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 hKe(e,t,n,r){var a={};return F(e,function(i){var o=wr.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(C){return mA(s,f,C)}function c(C,S){WW(s,f,C,S)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var v=r!=null?d.get(l,f):f,p=n(v),g=t[p],m=a[p],b=0,_=m.length;b<_;b++){var w=m[b];g[w]&&g[w].applyVisual(v,u,c)}}}}}function vKe(e){var t=e.brushType,n={point:function(r){return A4[t].point(r,n,e)},rect:function(r){return A4[t].rect(r,n,e)}};return n}var A4={lineX:E4(0),lineY:E4(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])&&Mu(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(Mu(r,a,i)||Mu(r,a+o,i)||Mu(r,a,i+s)||Mu(r,a+o,i+s)||Rt.create(e).contain(l[0],l[1])||Kh(a,i,a+o,i,r)||Kh(a,i,a,i+s,r)||Kh(a+o,i,a+o,i+s,r)||Kh(a,i+s,a+o,i+s,r))return!0}}};function E4(e){var t=["x","y"],n=["width","height"];return{point:function(r,a,i){if(r){var o=i.range,s=r[e];return Lh(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(),Lh(s[0],o)||Lh(s[1],o)||Lh(o[0],s)||Lh(o[1],s)}}}}function Lh(e,t){return t[0]<=e&&e<=t[1]}var I4=["inBrush","outOfBrush"],YS="__ecBrushSelect",cT="__ecInBrushSelectEvent";function PU(e){e.eachComponent({mainType:"brush"},function(t){var n=t.brushTargetManager=new IE(t.option,e);n.setInputRanges(t.areas,e)})}function pKe(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})}),PU(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:pt(o.areas),selected:[]};r.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],v=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=Oe(o.areas,function(C){var S=bKe[C.brushType],x=ft({boundingRect:S?S(C):void 0},C);return x.selectors=vKe(x),x}),g=uT(o.option,I4,function(C){C.mappingMethod="fixed"});Re(c)&&F(c,function(C){f[C]=1});function m(C){return c==="all"||!!f[C]}function b(C){return!!C.length}e.eachSeries(function(C,S){var x=h[S]=[];C.subType==="parallel"?_(C,S):w(C,S,x)});function _(C,S){var x=C.coordinateSystem;v=v||x.hasAxisBrushed(),m(S)&&x.eachActiveState(C.getData(),function(T,M){T==="active"&&(d[M]=1)})}function w(C,S,x){if(!(!C.brushSelector||yKe(o,S))&&(F(p,function(M){o.brushTargetManager.controlSeries(M,C,e)&&x.push(M),v=v||b(x)}),m(S)&&b(x))){var T=C.getData();T.each(function(M){D4(C,x,T,M)&&(d[M]=1)})}}e.eachSeries(function(C,S){var x={seriesId:C.id,seriesIndex:S,seriesName:C.name,dataIndex:[]};l.selected.push(x);var T=h[S],M=C.getData(),A=m(S)?function(k){return d[k]?(x.dataIndex.push(M.getRawIndex(k)),"inBrush"):"outOfBrush"}:function(k){return D4(C,T,M,k)?(x.dataIndex.push(M.getRawIndex(k)),"inBrush"):"outOfBrush"};(m(S)?v:b(T))&&dKe(I4,g,M,A)})}),gKe(t,a,i,r,n)}function gKe(e,t,n,r,a){if(a){var i=e.getZr();if(!i[cT]){i[YS]||(i[YS]=mKe);var o=Ud(i,YS,n,t);o(e,r)}}}function mKe(e,t){if(!e.isDisposed()){var n=e.getZr();n[cT]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[cT]=!1}}function D4(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 yKe(e,t){var n=e.option.seriesIndex;return n!=null&&n!=="all"&&(Re(n)?$t(n,t)<0:t!==n)}var bKe={rect:function(e){return P4(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&&P4(t)}};function P4(e){return new Rt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var _Ke=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new cE(r.getZr())).on("brush",et(this._onBrush,this)).mount()},t.prototype.render=function(n,r,a,i){this.model=n,this._updateController(n,r,a,i)},t.prototype.updateTransform=function(n,r,a,i){PU(r),this._updateController(n,r,a,i)},t.prototype.updateVisual=function(n,r,a,i){this.updateTransform(n,r,a,i)},t.prototype.updateView=function(n,r,a,i){this._updateController(n,r,a,i)},t.prototype._updateController=function(n,r,a,i){(!i||i.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(n){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:pt(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:pt(a),$from:r})},t.type="brush",t}(An);const wKe=_Ke;var SKe="#ddd",CKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&DU(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:SKe},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=Oe(n,function(r){return L4(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=L4(this.option,n),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(Yt);function L4(e,t){return Dt({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new dn(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const xKe=CKe;var TKe=["rect","polygon","lineX","lineY","keep","clear"],MKe=function(e){ge(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,F(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,a){this.render(n,r,a)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return F(n.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},t.prototype.onclick=function(n,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(n){var r={show:!0,type:TKe.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}(ja);const kKe=MKe;function AKe(e){e.registerComponentView(wKe),e.registerComponentModel(xKe),e.registerPreprocessor(cKe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,pKe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,n){n.eachComponent({mainType:"brush",query:t},function(r){r.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Nn),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Nn),pf("brush",kKe)}var EKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Yt),IKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var i=this.group,o=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=Lt(n.get("textBaseline"),n.get("textVerticalAlign")),c=new Xt({style:gn(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),h=new Xt({style:gn(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=n.get("link"),p=n.get("sublink"),g=n.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!p&&!g,v&&c.on("click",function(){H0(v,"_"+n.get("target"))}),p&&h.on("click",function(){H0(p,"_"+n.get("subtarget"))}),Tt(c).eventData=Tt(h).eventData=g?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(c),d&&i.add(h);var m=i.getBoundingRect(),b=n.getBoxLayoutParams();b.width=m.width,b.height=m.height;var _=Xn(b,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),h.setStyle(w),m=i.getBoundingRect();var C=_.margin,S=n.getItemStyle(["color","opacity"]);S.fill=n.get("backgroundColor");var x=new Zt({shape:{x:m.x-C[3],y:m.y-C[0],width:m.width+C[1]+C[3],height:m.height+C[0]+C[2],r:n.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});i.add(x)}},t.type="title",t}(An);function DKe(e){e.registerComponentModel(EKe),e.registerComponentView(IKe)}var PKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,i=this._names=[],o;a==="category"?(o=[],F(r,function(u,c){var f=tr(Ld(u),""),d;ht(u)?(d=pt(u),d.value=c):d=c,o.push(d),i.push(f)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Or([{name:"value",type:s}],this);l.initData(o,i)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(Yt);const R4=PKe;var LU=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline.slider",t.defaultOption=Ol(R4.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}(R4);Vn(LU,hA.prototype);const LKe=LU;var RKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(An);const OKe=RKe;var $Ke=function(e){ge(t,e);function t(n,r,a,i){var o=e.call(this,n,r,a)||this;return o.type=i||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(gi);const NKe=$Ke;var jS=Math.PI,O4=en(),BKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,r){this.api=r},t.prototype.render=function(n,r,a){if(this.model=n,this.api=a,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var i=this._layout(n,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return ur("nameValue",{noName:!0,value:c})},F(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,n)},this),this._renderAxisLabel(i,s,l,n),this._position(i,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var a=n.get(["label","position"]),i=n.get("orient"),o=zKe(n,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<r.getHeight()/2?"-":"+":o.x+o.width/2<r.getWidth()/2?"+":"-":Je(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:jS/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*jS/180;var b,_,w,C=d.get("position",!0),S=h&&d.get("showPlayBtn",!0),x=h&&d.get("showPrevBtn",!0),T=h&&d.get("showNextBtn",!0),M=0,A=f;C==="left"||C==="bottom"?(S&&(b=[0,0],M+=g),x&&(_=[M,0],M+=g),T&&(w=[A-v,0],A-=g)):(S&&(b=[A-v,0],A-=g),x&&(_=[0,0],M+=g),T&&(w=[A-v,0],A-=g));var k=[M,A];return n.get("inverse")&&k.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:_,nextBtnPosition:w,axisExtent:k,controlSize:v,controlGap:p}},t.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=Ra(),l=o.x,u=o.y+o.height;zi(s,s,[-l,-u]),Ll(s,s,-jS/2),zi(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),f=b(a.getBoundingRect()),d=b(i.getBoundingRect()),h=[a.x,a.y],v=[i.x,i.y];v[0]=h[0]=c[0][0];var p=n.labelPosOpt;if(p==null||Je(p)){var g=p==="+"?0:1;_(h,f,c,1,g),_(v,d,c,1,1-g)}else{var g=p>=0?0:1;_(h,f,c,1,g),v[1]=h[1]+p}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=n.rotation,m(a),m(i);function m(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function b(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function _(w,C,S,x,T){w[x]+=S[x][T]-C[x][T]}},t.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=VKe(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 NKe("value",o,n.axisExtent,i);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new bt;return this.group.add(r),r},t.prototype._renderAxisLine=function(n,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new ar({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Ie({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new ar({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ft({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(n,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],F(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:et(o._changeTimeline,o,u.value)},g=$4(f,d,r,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=v.getItemStyle(),al(g);var m=Tt(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(n,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],F(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),v=d.getModel(["emphasis","label"]),p=d.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),m=new Xt({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:et(o._changeTimeline,o,f),silent:!1,style:gn(h,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});m.ensureState("emphasis").style=gn(v),m.ensureState("progress").style=gn(p),r.add(m),al(m),O4(m).dataIndex=f,o._tickLabels.push(m)})}},t.prototype._renderControl=function(n,r,a,i){var o=n.controlSize,s=n.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(n.nextBtnPosition,"next",et(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",et(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",et(this._handlePlayClick,this,!c),!0);function d(h,v,p,g){if(h){var m=Fi(Lt(i.get(["controlStyle",v+"BtnSize"]),o),o),b=[0,-m/2,m,m],_=FKe(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(_),al(_)}}},t.prototype._renderCurrentPointer=function(n,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=et(u._handlePointerDrag,u),f.ondragend=et(u._handlePointerDragend,u),N4(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){N4(f,u._progressLine,s,a,i)}};this._currentPointer=$4(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=Ia(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(r||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=n.model;n._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(n){var r=this._mainGroup.getLocalTransform();return Ni(n,r,!0)},t.prototype._findNearestTick=function(n){var r=this.model.getData(),a=1/0,i,o=this._axis;return r.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-n);c<a&&(a=c,i=l)}),i},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(n){var r=this.model.getCurrentIndex();n==="+"?n=r+1:n==="-"&&(n=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},t.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),r=this._tickSymbols,a=this._tickLabels;if(r)for(var i=0;i<r.length;i++)r&&r[i]&&r[i].toggleState("progress",i<n);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",O4(a[i]).dataIndex<=n)},t.type="timeline.slider",t}(OKe);function VKe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new IA({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new $9({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new _l}}function zKe(e,t){return Xn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function FKe(e,t,n,r){var a=r.style,i=Nd(e.get(["controlStyle",t]),r||{},new Rt(n[0],n[1],n[2],n[3]));return a&&i.setStyle(a),i}function $4(e,t,n,r,a,i){var o=t.get("color");if(a)a.setColor(o),n.add(a),i&&i.onUpdate(a);else{var s=e.get("symbol");a=Hn(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),n.add(a),i&&i.onCreate(a)}var l=t.getItemStyle(["color"]);a.setStyle(l),r=Dt({rectHover:!0,z2:100},r,!0);var u=Yd(e.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Ac(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 N4(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 HKe=BKe;function GKe(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,n,r){var a=n.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),n.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),ft({currentIndex:a.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,n){var r=n.getComponent("timeline");r&&t.playState!=null&&r.setPlayState(t.playState)})}function WKe(e){var t=e&&e.timeline;Re(t)||(t=t?[t]:[]),F(t,function(n){n&&KKe(n)})}function KKe(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),B4(e),Eu(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});Eu(r,"position")||(r.position=e.controlPosition),r.position==="none"&&!Eu(r,"show")&&(r.show=!1,delete r.position),delete e.controlPosition}F(e.data||[],function(a){ht(a)&&!Re(a)&&(!Eu(a,"value")&&Eu(a,"name")&&(a.value=a.name),B4(a))})}function B4(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},a=r.normal||(r.normal={}),i={normal:1,emphasis:1};F(r,function(o,s){!i[s]&&!Eu(a,s)&&(a[s]=o)}),n.label&&!Eu(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function Eu(e,t){return e.hasOwnProperty(t)}function UKe(e){e.registerComponentModel(LKe),e.registerComponentView(HKe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),GKe(e),e.registerPreprocessor(WKe)}function LE(e,t){if(!e)return!1;for(var n=Re(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function Zm(e){cc(e,"label",["show"])}var Jm=en(),RU=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._mergeOption(n,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(Jt.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},t.prototype.mergeOption=function(n,r){this._mergeOption(n,r,!1,!1)},t.prototype._mergeOption=function(n,r,a,i){var o=this.mainType;a||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Jm(s)[o];if(!l||!l.data){Jm(s)[o]=null;return}u?u._mergeOption(l,r,!0):(i&&Zm(l),F(l.data,function(c){c instanceof Array?(Zm(c[0]),Zm(c[1])):Zm(c)}),u=this.createMarkerModelFromSeries(l,this,r),Ie(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Jm(s)[o]=u},this)},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return ur("section",{header:this.name,blocks:[ur("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(n){this._data=n},t.getMarkerModelFromSeries=function(n,r){return Jm(n)[r]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Yt);Vn(RU,hA.prototype);const Cl=RU;var YKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(Cl);const jKe=YKe;function fT(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function qKe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Qm(e,t,n,r,a,i){var o=[],s=os(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,u=RE(t,l,e),c=t.indicesOfNearest(l,u)[0];o[a]=t.get(n,c),o[i]=t.get(l,c);var f=t.get(r,c),d=Ei(t.get(r,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var qS={min:xt(Qm,"min"),max:xt(Qm,"max"),average:xt(Qm,"average"),median:xt(Qm,"median")};function Fp(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!qKe(t)&&!Re(t.coord)&&Re(a)){var i=OU(t,n,r,e);if(t=pt(t),t.type&&qS[t.type]&&i.baseAxis&&i.valueAxis){var o=$t(a,i.baseAxis.dim),s=$t(a,i.valueAxis.dim),l=qS[t.type](n,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Re(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)qS[u[c]]&&(u[c]=RE(n,n.mapDimension(a[c]),u[c]));return t}}function OU(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(XKe(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 XKe(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Hp(e,t){return e&&e.containData&&t.coord&&!fT(t)?e.containData(t.coord):!0}function ZKe(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!fT(t)&&!fT(n)?e.containZone(t.coord,n.coord):!0}function $U(e,t){return e?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return sl(o,t[i])}:function(n,r,a,i){return sl(n.value,t[i])}}function RE(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 XS=en(),JKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=ot()},t.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){XS(s).keep=!1}),r.eachSeries(function(s){var l=Cl.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!XS(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(n){XS(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var a=this;F(n,function(i){var o=Cl.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?uG(l):Gk(l))})}})},t.type="marker",t}(An);const OE=JKe;function V4(e,t,n){var r=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=qe(i.get("x"),n.getWidth()),l=qe(i.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,a));else if(r){var u=e.get(r.dimensions[0],a),c=e.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(a,o)})}var QKe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Cl.getMarkerModelFromSeries(i,"markPoint");o&&(V4(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 Cg),f=eUe(o,n,r);r.setData(f),V4(r.getData(),n,i),f.each(function(d){var h=f.getItemModel(d),v=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),m=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(ut(v)||ut(p)||ut(g)||ut(m)){var _=r.getRawValue(d),w=r.getDataParams(d);ut(v)&&(v=v(_,w)),ut(p)&&(p=p(_,w)),ut(g)&&(g=g(_,w)),ut(m)&&(m=m(_,w))}var C=h.getModel("itemStyle").getItemStyle(),S=bg(l,"color");C.fill||(C.fill=S),f.setItemVisual(d,{symbol:v,symbolSize:p,symbolRotate:g,symbolOffset:m,symbolKeepAspect:b,style:C})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){Tt(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(OE);function eUe(e,t,n){var r;e?r=Oe(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return Ie(Ie({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Or(r,n),i=Oe(n.get("data"),xt(Fp,t));e&&(i=ln(i,xt(Hp,e)));var o=$U(!!e,r);return a.initData(i,null,o),a}const tUe=QKe;function nUe(e){e.registerComponentModel(jKe),e.registerComponentView(tUe),e.registerPreprocessor(function(t){LE(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var rUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Cl);const aUe=rUe;var ey=en(),iUe=function(e,t,n,r){var a=e.getData(),i;if(Re(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=t.getAxis(r.yAxis!=null?"y":"x"),l=rr(r.yAxis,r.xAxis);else{var u=OU(r,a,t,e);s=u.valueAxis;var c=EA(a,u.valueDataDim);l=RE(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=pt(r),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var p=n.get("precision");p>=0&&Qt(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[f]=v.coord[f]=l,i=[h,v,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[Fp(e,i[0]),Fp(e,i[1]),Ie({},i[2])];return g[2].type=g[2].type||null,Dt(g[2],g[0]),Dt(g[2],g[1]),g};function gb(e){return!isNaN(e)&&!isFinite(e)}function z4(e,t,n,r){var a=1-e,i=r.dimensions[e];return gb(t[a])&&gb(n[a])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function oUe(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(z4(1,n,r,e)||z4(0,n,r,e)))return!0}return Hp(e,t[0])&&Hp(e,t[1])}function ZS(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=qe(o.get("x"),a.getWidth()),u=qe(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=i.dataToPoint([f,d])}if(Ec(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),c=i.dimensions;gb(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):gb(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 sUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Cl.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=ey(o).from,u=ey(o).to;l.each(function(c){ZS(l,c,!0,i,a),ZS(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 aE);this.group.add(c.group);var f=lUe(o,n,r),d=f.from,h=f.to,v=f.line;ey(r).from=d,ey(r).to=h,r.setData(v);var p=r.get("symbol"),g=r.get("symbolSize"),m=r.get("symbolRotate"),b=r.get("symbolOffset");Re(p)||(p=[p,p]),Re(g)||(g=[g,g]),Re(m)||(m=[m,m]),Re(b)||(b=[b,b]),f.from.each(function(w){_(d,w,!0),_(h,w,!1)}),v.each(function(w){var C=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[d.getItemLayout(w),h.getItemLayout(w)]),C.stroke==null&&(C.stroke=d.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(w,"symbolOffset"),fromSymbolRotate:d.getItemVisual(w,"symbolRotate"),fromSymbolSize:d.getItemVisual(w,"symbolSize"),fromSymbol:d.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:C})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){Tt(w).dataModel=r,w.traverse(function(C){Tt(C).dataModel=r})});function _(w,C,S){var x=w.getItemModel(C);ZS(w,C,S,n,i);var T=x.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=bg(l,"color")),w.setItemVisual(C,{symbolKeepAspect:x.get("symbolKeepAspect"),symbolOffset:Lt(x.get("symbolOffset",!0),b[S?0:1]),symbolRotate:Lt(x.get("symbolRotate",!0),m[S?0:1]),symbolSize:Lt(x.get("symbolSize"),g[S?0:1]),symbol:Lt(x.get("symbol",!0),p[S?0:1]),style:T})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(OE);function lUe(e,t,n){var r;e?r=Oe(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return Ie(Ie({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Or(r,n),i=new Or(r,n),o=new Or([],n),s=Oe(n.get("data"),xt(iUe,t,e,n));e&&(s=ln(s,xt(oUe,e)));var l=$U(!!e,r);return a.initData(Oe(s,function(u){return u[0]}),null,l),i.initData(Oe(s,function(u){return u[1]}),null,l),o.initData(Oe(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const uUe=sUe;function cUe(e){e.registerComponentModel(aUe),e.registerComponentView(uUe),e.registerPreprocessor(function(t){LE(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var fUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,r,a){return new t(n,r,a)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Cl);const dUe=fUe;var ty=en(),hUe=function(e,t,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Fp(e,a),s=Fp(e,i),l=o.coord,u=s.coord;l[0]=rr(l[0],-1/0),l[1]=rr(l[1],-1/0),u[0]=rr(u[0],1/0),u[1]=rr(u[1],1/0);var c=p1([{},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 mb(e){return!isNaN(e)&&!isFinite(e)}function F4(e,t,n,r){var a=1-e;return mb(t[a])&&mb(n[a])}function vUe(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 Ec(e,"cartesian2d")?n&&r&&(F4(1,n,r)||F4(0,n,r))?!0:ZKe(e,a,i):Hp(e,a)||Hp(e,i)}function H4(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=qe(o.get(n[0]),a.getWidth()),u=qe(o.get(n[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=i.clampData(c),h=i.clampData(f),v=[];n[0]==="x0"?v[0]=d[0]>h[0]?f[0]:c[0]:v[0]=d[0]>h[0]?c[0]:f[0],n[1]==="y0"?v[1]=d[1]>h[1]?f[1]:c[1]:v[1]=d[1]>h[1]?c[1]:f[1],s=r.getMarkerPosition(v,n,!0)}else{var p=e.get(n[0],t),g=e.get(n[1],t),m=[p,g];i.clampData&&i.clampData(m,m),s=i.dataToPoint(m,!0)}if(Ec(i,"cartesian2d")){var b=i.getAxis("x"),_=i.getAxis("y"),p=e.get(n[0],t),g=e.get(n[1],t);mb(p)?s[0]=b.toGlobalCoord(b.getExtent()[n[0]==="x0"?0:1]):mb(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var G4=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],pUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=Cl.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Oe(G4,function(f){return H4(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new bt});this.group.add(c.group),this.markKeep(c);var f=gUe(o,n,r);r.setData(f),f.each(function(d){var h=Oe(G4,function(T){return H4(f,d,T,n,i)}),v=o.getAxis("x").scale,p=o.getAxis("y").scale,g=v.getExtent(),m=p.getExtent(),b=[v.parse(f.get("x0",d)),v.parse(f.get("x1",d))],_=[p.parse(f.get("y0",d)),p.parse(f.get("y1",d))];Ia(b),Ia(_);var w=!(g[0]>b[1]||g[1]<b[0]||m[0]>_[1]||m[1]<_[0]),C=!w;f.setItemLayout(d,{points:h,allClipped:C});var S=f.getItemModel(d).getModel("itemStyle").getItemStyle(),x=bg(l,"color");S.fill||(S.fill=x,Je(S.fill)&&(S.fill=pp(S.fill,.4))),S.stroke||(S.stroke=x),f.setItemVisual(d,"style",S)}),f.diff(ty(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var v=new ra({shape:{points:h.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,h){var v=ty(c).data.getItemGraphicEl(h),p=f.getItemLayout(d);p.allClipped?v&&c.group.remove(v):(v?nn(v,{shape:{points:p.points}},r,d):v=new ra({shape:{points:p.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var h=ty(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var v=f.getItemModel(h),p=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),Tr(d,lr(v),{labelFetcher:r,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:Je(p.fill)?pp(p.fill,1):"#000"}),xr(d,v),$n(d,null,null,v.get(["emphasis","disabled"])),Tt(d).dataModel=r}),ty(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(OE);function gUe(e,t,n){var r,a,i=["x0","y0","x1","y1"];if(e){var o=Oe(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Ie(Ie({},f),{name:u,ordinalMeta:null})});a=Oe(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new Or(a,n)}else a=[{name:"value",type:"float"}],r=new Or(a,n);var s=Oe(n.get("data"),xt(hUe,t,e,n));e&&(s=ln(s,xt(vUe,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return sl(h,a[d])}:function(u,c,f,d){return sl(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}const mUe=pUe;function yUe(e){e.registerComponentModel(dUe),e.registerComponentView(mUe),e.registerPreprocessor(function(t){LE(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var bUe=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"])}},_Ue=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),Re(r)&&F(r,function(i,o){Je(i)&&(i={type:i}),r[o]=Dt(i,bUe(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&&$k(l)&&r.push(l.name)}),this._availableNames=a;var i=this.get("data")||r,o=ot(),s=Oe(i,function(l){return(Je(l)||Qt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new dn(l,this,this.ecModel))},this);this._data=ln(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;F(i,function(o){r[o.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;F(n,function(a){r[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;F(n,function(a){var i=a.get("name",!0);r.hasOwnProperty(i)||(r[i]=!0),r[i]=!r[i]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&$t(this._availableNames,n)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Yt);const dT=_Ue;var tf=xt,hT=F,ny=bt,wUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new ny),this.group.add(this._selectorGroup=new ny),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,l,s,u);var c=n.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=n.get("padding"),h=Xn(c,f,d),v=this.layoutInner(n,o,h,i,l,u),p=Xn(ft({width:v.width,height:v.height},c),f,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=xU(v,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this.getContentGroup(),c=ot(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),hT(r.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
  105. `)){var g=new ny;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!c.get(p))if(m){var b=m.getData(),_=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),C=b.getVisual("style"),S=this._createItem(m,p,v,h,r,n,_,C,w,f,i);S.on("click",tf(W4,p,null,i,d)).on("mouseover",tf(vT,m.name,null,i,d)).on("mouseout",tf(pT,m.name,null,i,d)),c.set(p,!0)}else a.eachRawSeries(function(x){if(!c.get(p)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(p))return;var M=T.indexOfName(p),A=T.getItemVisual(M,"style"),k=T.getItemVisual(M,"legendIcon"),E=Xr(A.fill);E&&E[3]===0&&(E[3]=.2,A=Ie(Ie({},A),{fill:$i(E,"rgba")}));var D=this._createItem(x,p,v,h,r,n,{},A,k,f,i);D.on("click",tf(W4,null,p,i,d)).on("mouseover",tf(vT,null,p,i,d)).on("mouseout",tf(pT,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();hT(n,function(u){var c=u.type,f=new Xt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Tr(f,{normal:d,emphasis:h},{defaultText:u.title}),al(f)})},t.prototype._createItem=function(n,r,a,i,o,s,l,u,c,f,d){var h=n.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(r),m=i.get("symbolRotate"),b=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var w=SUe(c,i,l,u,h,g,d),C=new ny,S=i.getModel("textStyle");if(ut(n.getLegendIcon)&&(!_||_==="inherit"))C.add(n.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:m,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}));else{var x=_==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;C.add(CUe({itemWidth:v,itemHeight:p,icon:c,iconRotate:x,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}))}var T=s==="left"?v+5:-5,M=s,A=o.get("formatter"),k=r;Je(A)&&A?k=A.replace("{name}",r??""):ut(A)&&(k=A(r));var E=g?S.getTextColor():i.get("inactiveColor");C.add(new Xt({style:gn(S,{text:k,x:T,y:p/2,fill:E,align:M,verticalAlign:"middle"},{inheritColor:E})}));var D=new Zt({shape:C.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&Bd({el:D,componentModel:o,itemName:r,itemTooltipOption:L.option}),C.add(D),C.eachChild(function(B){B.silent=!0}),D.silent=!f,this.getContentGroup().add(C),al(C),C.__legendDataIndex=a,C},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Qu(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){Qu("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=n.get("selectorButtonGap",!0),p=n.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",b=p===0?"y":"x";s==="end"?h[p]+=c[g]+v:f[p]+=d[g]+v,h[1-p]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+v+d[g],_[m]=Math.max(c[m],d[m]),_[b]=Math.min(0,d[b]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(An);function SUe(e,t,n,r,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),hT(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:gd(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 CUe(e){var t=e.icon||"roundRect",n=Hn(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function W4(e,t,n,r){pT(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),vT(e,t,n,r)}function NU(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 vT(e,t,n,r){NU(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function pT(e,t,n,r){NU(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}const BU=wUe;function xUe(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 Rh(e,t,n){var r={},a=e==="toggleSelected",i;return n.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),i=o.isSelected(t.name));var s=o.getData();F(s,function(l){var u=l.get("name");if(!(u===`
  106. `||u==="")){var c=o.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&c:r[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:r}:{name:t.name,selected:r}}function TUe(e){e.registerAction("legendToggleSelect","legendselectchanged",xt(Rh,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",xt(Rh,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",xt(Rh,"inverseSelect")),e.registerAction("legendSelect","legendselected",xt(Rh,"select")),e.registerAction("legendUnSelect","legendunselected",xt(Rh,"unSelect"))}function VU(e){e.registerComponentModel(dT),e.registerComponentView(BU),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,xUe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),TUe(e)}var MUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,r,a){var i=Fd(n);e.prototype.init.call(this,n,r,a),K4(this,n,i)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),K4(this,this.option,n)},t.type="legend.scroll",t.defaultOption=Ol(dT.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}(dT);function K4(e,t,n){var r=e.getOrient(),a=[1,1];a[r.index]=0,bl(t,n,{type:"box",ignoreSize:!!a})}const kUe=MUe;var U4=bt,JS=["width","height"],QS=["x","y"],AUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new U4),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new U4)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,n,r,a,i,o,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=Re(f)?f:[f,f];v("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new Xt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var m=p+"DataIndex",b=Nd(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:et(u._pageGo,u,m,r,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=p,c.add(b)}},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=JS[u],f=QS[u],d=JS[1-u],h=QS[1-u];o&&Qu("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=pt(a);o&&(m[c]=a[c]-p[c]-v);var b=this._layoutContentAndController(n,i,m,u,c,d,h,f);if(o){if(s==="end")g[u]+=b[c]+v;else{var _=p[c]+v;g[u]-=_,b[f]-=_}b[c]+=p[c]+v,g[1-u]+=b[h]+b[d]/2-p[d]/2,b[d]=Math.max(b[d],p[d]),b[h]=Math.min(b[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return b},t.prototype._layoutContentAndController=function(n,r,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Qu(n.get("orient"),c,n.get("itemGap"),i?a.width:null,i?null:a.height),Qu("horizontal",d,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>a[o],g=[-h.x,-h.y];r||(g[i]=c[u]);var m=[0,0],b=[-v.x,-v.y],_=Lt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(p){var w=n.get("pageButtonPosition",!0);w==="end"?b[i]+=a[o]-v[o]:m[i]+=v[o]+_}b[1-i]+=h[s]/2-v[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(b);var C={x:0,y:0};if(C[o]=p?a[o]:h[o],C[s]=Math.max(h[s],v[s]),C[l]=Math.min(0,v[l]+b[1-i]),f.__rectSize=a[o],p){var S={x:0,y:0};S[o]=Math.max(a[o]-v[o]-_,0),S[s]=C[s],f.setClipPath(new Zt({shape:S})),f.__rectSize=S[o]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(n);return x.pageIndex!=null&&nn(c,{x:x.contentPosition[0],y:x.contentPosition[1]},p?n:null),this._updatePageInfoView(n,x),C},t.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;F(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",Je(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,s=JS[o],l=QS[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=w(f);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,b=p,_=null;g<=d;++g)_=w(c[g]),(!_&&b.e>m.s+i||_&&!C(_,m.s))&&(b.i>m.i?m=b:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),b=_;for(var g=u-1,m=p,b=p,_=null;g>=-1;--g)_=w(c[g]),(!_||!C(b,_.s))&&m.i<b.i&&(b=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=_;return v;function w(S){if(S){var x=S.getBoundingRect(),T=x[l]+S[l];return{s:T,e:T+x[s],i:S.__legendDataIndex}}}function C(S,x){return S.e>=x&&S.s<=x+i}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===n&&(r=s)}),r??i},t.type="legend.scroll",t}(BU);const EUe=AUe;function IUe(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 DUe(e){Bt(VU),e.registerComponentModel(kUe),e.registerComponentView(EUe),IUe(e)}function PUe(e){Bt(VU),Bt(DUe)}var LUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.inside",t.defaultOption=Ol(zp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(zp);const RUe=LUe;var $E=en();function OUe(e,t,n){$E(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function $Ue(e,t){for(var n=$E(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||zU(n,o))}}}function zU(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function NUe(e,t){var n={model:t,containsPoint:xt(VUe,t),dispatchAction:xt(BUe,e),dataZoomInfoMap:null,controller:null},r=n.controller=new kg(e.getZr());return F(["pan","zoom","scrollMove"],function(a){r.on(a,function(i){var o=[];n.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&n.dispatchAction(o)})}),n}function BUe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function VUe(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function zUe(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 FUe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=$E(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=ot());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=wU(i);F(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,NUe(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ot());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){zU(a,i);return}var c=zUe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Ud(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var HUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return t.prototype.render=function(n,r,a){if(e.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),OUe(a,n,{pan:et(eC.pan,this),zoom:et(eC.zoom,this),scrollMove:et(eC.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){$Ue(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(kE),eC={zoom:function(e,t,n,r){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=tC[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(Dc(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:Y4(function(e,t,n,r,a,i){var o=tC[r]([i.oldX,i.oldY],[i.newX,i.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:Y4(function(e,t,n,r,a,i){var o=tC[r]([0,0],[i.scrollDelta,i.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*i.scrollDelta})};function Y4(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(Dc(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var tC={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 GUe=HUe;function FU(e){AE(e),e.registerComponentModel(RUe),e.registerComponentView(GUe),FUe(e)}var WUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Ol(zp.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}(zp);const KUe=WUe;var Oh=Zt,j4=7,UUe=1,nC=30,YUe=7,$h="horizontal",q4="vertical",jUe=5,qUe=["line","bar","candlestick","scatter"],XUe={easing:"cubicOut",duration:100,delay:0},ZUe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return t.prototype.init=function(n,r){this.api=r,this._onBrush=et(this._onBrush,this),this._onBrushEnd=et(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,i){if(e.prototype.render.apply(this,arguments),Ud(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(){Ap(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new bt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},t.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?YUe:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===$h?{right:s.width-o.x-o.width,top:s.height-nC-j4-i,width:o.width,height:nC}:{right:j4,top:o.y,width:nC,height:o.height},u=Fd(n.option);F(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Xn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===q4&&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===$h&&!o?{scaleY:l?1:-1,scaleX:1}:a===$h&&o?{scaleY:l?1:-1,scaleX:-1}:a===q4&&!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 Oh({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new Oh({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:et(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,r[1]],v=[0,r[0]],p=[[r[0],0],[0,0]],g=[],m=v[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),w;o.each([l],function(M,A){if(_>0&&A%_){b+=m;return}var k=M==null||isNaN(M)||M==="",E=k?0:sn(M,f,h,!0);k&&!w&&A?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!k&&w&&(p.push([b,0]),g.push([b,0])),p.push([b,E]),g.push([b,E]),b+=m,w=k}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function S(M){var A=C.getModel(M?"selectedDataBackground":"dataBackground"),k=new bt,E=new ra({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),D=new ia({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return k.add(E),k.add(D),k}for(var x=0;x<3;x++){var T=S(x===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},t.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();F(l,function(u){if(!a&&!(r!==!0&&$t(qUe,u.get("type"))<0)){var c=i.getComponent(Zs(o),s).axis,f=JUe(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 Oh({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Oh({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:UUe,fill:"rgba(0,0,0,0)"}})),F([0,1],function(_){var w=l.get("handleIcon");!K0[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var C=Hn(w,-1,0,2,2,null,!0);C.attr({cursor:X4(this._orient),draggable:!0,drift:et(this._onDragMove,this,_),ondragend:et(this._onDragEnd,this),onmouseover:et(this._showDataInfo,this,!0),onmouseout:et(this._showDataInfo,this,!1),z2:5});var S=C.getBoundingRect(),x=l.get("handleSize");this._handleHeight=qe(x,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,C.setStyle(l.getModel("handleStyle").getItemStyle()),C.style.strokeNoScale=!0,C.rectHover=!0,C.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),al(C);var T=l.get("handleColor");T!=null&&(C.style.fill=T),o.add(a[_]=C);var M=l.getModel("textStyle");n.add(i[_]=new Xt({silent:!0,invisible:!0,style:gn(M,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:M.getTextColor(),font:M.getFont()}),z2:10}))},this);var h=d;if(f){var v=qe(l.get("moveHandleSize"),s[1]),p=r.moveHandle=new Zt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,m=r.moveHandleIcon=Hn(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);m.silent=!0,m.y=s[1]+v/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(v,10));h=r.moveZone=new Zt({invisible:!0,shape:{y:s[1]-b,height:v+b}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(m),o.add(h)}h.attr({draggable:!0,cursor:X4(this._orient),drift:et(this._onDragMove,this,"all"),ondragstart:et(this._showDataInfo,this,!0),ondragend:et(this._onDragEnd,this),onmouseover:et(this._showDataInfo,this,!0),onmouseout:et(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[sn(n[0],[0,100],r,!0),sn(n[1],[0,100],r,!0)]},t.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Dc(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?sn(s.minSpan,l,o,!0):null,s.maxSpan!=null?sn(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ia([sn(i[0],o,l,!0),sn(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=Ia(a.slice()),o=this._size;F([0,1],function(h){var v=r.handles[h],p=this._handleHeight;v.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Zt,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(n)},t.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=n?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Ia(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var p=il(a.handles[v].parent,this.group),g=L1(v===0?"right":"left",p),m=this._handleWidth/2+jUe,b=Ni([d[v]+(v===0?-m:m),this._size[1]/2],p);i[v].setStyle({x:b[0],y:b[1],verticalAlign:o===$h?"middle":g,align:o===$h?g:"center",text:s[v]})}},t.prototype._formatLabel=function(n,r){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(o,20));return ut(i)?i(n,s):Je(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(n){n=this._dragging||n;var r=this._displayables,a=r.handleLabels;a[0].attr("invisible",!n),a[1].attr("invisible",!n),r.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},t.prototype._onDragMove=function(n,r,a,i){this._dragging=!0,ns(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ni([r,a],o,!0),l=this._updateInterval(n,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(n){var r=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(a[0]<0||a[0]>r[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new Pt(r,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Ia([sn(a.x,o,s,!0),sn(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(n){this._brushing&&(ns(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},t.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Oh({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?XUe:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=wU(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}(kE);function JUe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function X4(e){return e==="vertical"?"ns-resize":"ew-resize"}const QUe=ZUe;function HU(e){e.registerComponentModel(KUe),e.registerComponentView(QUe),AE(e)}function eYe(e){Bt(FU),Bt(HU)}var tYe={get:function(e,t,n){var r=pt((nYe[e]||{})[t]);return n&&Re(r)?r[r.length-1]:r}},nYe={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 GU=tYe;var Z4=wr.mapVisual,rYe=wr.eachVisual,aYe=Re,J4=F,iYe=Ia,oYe=sn,sYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.optionUpdated=function(n,r){var a=this.option;!r&&DU(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=et(n,this),this.controllerVisuals=uT(this.option.controller,r,n),this.targetVisuals=uT(this.option.target,r,n)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=hn(n),r},t.prototype.eachTargetSeries=function(n,r){F(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&n.call(r,i)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Re(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(Je(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(ut(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?a[0]+" "+c[1]:n[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var n=this.option,r=iYe([n.min,n.max]);this._dataExtent=r},t.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=n.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});Dt(i,a),Dt(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){aYe(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]={},J4(v,function(g,m){if(wr.isValidType(m)){var b=GU.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";J4(this.stateList,function(m){var b=this.itemSize,_=f[m];_||(_=f[m]={color:s?v:[v]}),_.symbol==null&&(_.symbol=d&&pt(d)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&pt(h)||(s?b[0]:[b[0],b[0]])),_.symbol=Z4(_.symbol,function(S){return S==="none"?g:S});var w=_.symbolSize;if(w!=null){var C=-1/0;rYe(w,function(S){S>C&&(C=S)}),_.symbolSize=Z4(w,function(S){return oYe(S,[0,C],[0,b[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(n){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(n){return null},t.prototype.getVisualMeta=function(n){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(Yt);const yb=sYe;var Q4=[20,140],lYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=Q4[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=Q4[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):Re(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),F(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=Ia((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=eB(this,"outOfRange",this.getExtent()),a=eB(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=Ol(yb.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}(yb);function eB(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 uYe=lYe;var cYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(n,r){this.ecModel=n,this.api=r},t.prototype.render=function(n,r,a,i){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,a,i)},t.prototype.renderBackground=function(n){var r=this.visualMapModel,a=kc(r.get("padding")||0),i=n.getBoundingRect();n.add(new Zt({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},t.prototype.getControllerVisual=function(n,r,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(r==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,v){s[h]=v}var f=o.controllerVisuals[i||o.getValueState(n)],d=wr.prepareVisualTypes(f);return F(d,function(h){var v=f[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=f.__alphaForOpacity),wr.dependsOn(h,r)&&v&&v.applyVisual(n,u,c)}),s[r]},t.prototype.positionGroup=function(n){var r=this.visualMapModel,a=this.api;V1(n,r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(n,r,a,i){},t.type="visualMap",t}(An);const WU=cYe;var tB=[["left","right","width"],["top","bottom","height"]];function KU(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=tB[o],l=[0,null,10],u={},c=0;c<3;c++)u[tB[1-o][c]]=l[c],u[s[c]]=c===2?n[0]:r[s[c]];var f=[["x","width",3],["y","height",0]][o],d=Xn(u,i,r.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<i[f[1]]*.5?0:1]}function Zy(e,t){return F(e||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var to=sn,fYe=F,nB=Math.min,rC=Math.max,dYe=12,hYe=6,vYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.doRender=function(n,r,a,i){this._api=a,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var a=n.get("text");this._renderEndsText(r,a,0),this._renderEndsText(r,a,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},t.prototype._renderEndsText=function(n,r,a){if(r){var i=r[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),f=this._applyTransform(a===0?"bottom":"top",u),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Xt({style:gn(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:i})}))}},t.prototype._renderBar=function(n){var r=this.visualMapModel,a=this._shapes,i=r.itemSize,o=this._orient,s=this._useHandle,l=KU(r,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new bt;u.add(c),c.add(a.outOfRange=rB()),c.add(a.inRange=rB(null,s?iB(this._orient):null,et(this._dragHandle,this,"all",!1),et(this._dragHandle,this,"all",!0))),c.setClipPath(new Zt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=rC(f.width,f.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(r,u,0,i,d,o),this._createHandle(r,u,1,i,d,o)),this._createIndicator(r,u,i,d,o),n.add(u)},t.prototype._createHandle=function(n,r,a,i,o,s){var l=et(this._dragHandle,this,a,!1),u=et(this._dragHandle,this,a,!0),c=Fi(n.get("handleSize"),i[0]),f=Hn(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=iB(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){ns(m.event)}}),f.x=i[0]/2,f.useStyle(n.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),Vu(f,!0),r.add(f);var h=this.visualMapModel.textStyleModel,v=new Xt({cursor:d,draggable:!0,drift:l,onmousemove:function(m){ns(m.event)},ondragend:u,style:gn(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var p=[c,0],g=this._shapes;g.handleThumbs[a]=f,g.handleLabelPoints[a]=p,g.handleLabels[a]=v},t.prototype._createIndicator=function(n,r,a,i,o){var s=Fi(n.get("indicatorSize"),a[0]),l=Hn(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=n.getModel("indicatorStyle").getItemStyle();if(l instanceof vr){var c=l.style;l.useStyle(Ie({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);r.add(l);var f=this.visualMapModel.textStyleModel,d=new Xt({silent:!0,invisible:!0,style:gn(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?i/2:hYe)+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():aB(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},t.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),a=n.getExtent(),i=[0,n.itemSize[1]];this._handleEnds=[to(r[0],a,i,!0),to(r[1],a,i,!0)]},t.prototype._updateInterval=function(n,r){r=r||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];Dc(r,i,o,n,0);var s=a.getExtent();this._dataInterval=[to(i[0],o,s,!0),to(i[1],o,s,!0)]},t.prototype._updateView=function(n){var r=this.visualMapModel,a=r.getExtent(),i=this._shapes,o=[0,r.itemSize[1]],s=n?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(n,r,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,o),l=[this.getControllerVisual(n[0],"symbolSize",o),this.getControllerVisual(n[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Od(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(n,r){var a=100,i=[],o=(n[1]-n[0])/a;i.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<a;s++){var l=n[0]+o*s;if(l>n[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},t.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},t.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new bt(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},t.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();fYe([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=to(n[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var v=Ni(a.handleLabelPoints[c],il(f,this.group));s[c].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(n,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(n,"color",d),v=this.getControllerVisual(n,"symbolSize"),p=to(n,s,u,!0),g=l[0]-v/2,m={x:f.x,y:f.y};f.y=p,f.x=g;var b=Ni(c.indicatorLabelPoint,il(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),C=this._orient,S=C==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:S?w:"middle",align:S?"center":w});var x={x:g,y:p,style:{fill:h}},T={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(x,M),_.animateTo(T,M)}else f.attr(x),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var k=0;k<A.length;k++)this._api.enterBlur(A[k])}},t.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var a=n.visualMapModel.itemSize,i=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);i[1]=nB(rC(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=nB(rC(o[0],n),o[1]);var l=pYe(a,s,o),u=[n-l,n+l],c=to(n,o,s,!0),f=[to(u[0],o,s,!0),to(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(r||aB(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=WDe(d,h);this._dispatchHighDown("downplay",Zy(v[0],a)),this._dispatchHighDown("highlight",Zy(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Fu(n.target,function(l){var u=Tt(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a<r.length;a++)this._api.leaveBlur(r[a])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Zy(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=il(r,i?null:this.group);return Re(n)?Ni(n,o,a):L1(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}(WU);function rB(e,t,n,r){return new ra({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(a){ns(a.event)},ondragend:r})}function pYe(e,t,n){var r=dYe/2,a=e.get("hoverLinkDataSize");return a&&(r=to(a,t,n,!0)/2),r}function aB(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function iB(e){return e==="vertical"?"ns-resize":"ew-resize"}const gYe=vYe;var mYe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},yYe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(n){n.setSelected(e.selected)})},bYe=[{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(hKe(r.stateList,r.targetVisuals,et(r.getValueState,r),r.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent("visualMap",function(a){if(a.isTargetSeries(e)){var i=a.getVisualMeta(et(_Ye,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function _Ye(e,t,n,r){for(var a=t.targetVisuals[r],i=wr.prepareVisualTypes(a),o={color:bg(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 oB=F;function wYe(e){var t=e&&e.visualMap;Re(t)||(t=t?[t]:[]),oB(t,function(n){if(n){nf(n,"splitList")&&!nf(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&Re(r)&&oB(r,function(a){ht(a)&&(nf(a,"start")&&!nf(a,"min")&&(a.min=a.start),nf(a,"end")&&!nf(a,"max")&&(a.max=a.end))})}})}function nf(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var sB=!1;function UU(e){sB||(sB=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(mYe,yYe),F(bYe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(wYe))}function YU(e){e.registerComponentModel(uYe),e.registerComponentView(gYe),UU(e)}var SYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(n,r){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],CYe[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=pt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Oe(this._pieceList,function(l){return l=pt(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=wr.listVisualTypes(),i=this.isCategory();F(n.pieces,function(s){F(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),F(r,function(s,l){var u=!1;F(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&F(this.stateList,function(c){(n[c]||(n[c]={}))[l]=GU.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var a=this.option,i=this._pieceList,o=(r?a:n).selected||{};if(a.selected=o,F(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;F(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=pt(n)},t.prototype.getValueState=function(n){var r=wr.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=wr.findPieceIndex(l,a);c===n&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var h=n(d,f);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return F(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:r,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=Ol(yb.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}(yb),CYe={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]}),e2(e),F(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;F(t.categories,function(n){e.push({text:this.formatValueText(n,!0),value:n})},this),lB(t,e)},pieces:function(e){var t=this.option;F(t.pieces,function(n,r){ht(n)||(n={value:n});var a={text:"",index:r};if(n.label!=null&&(a.text=n.label),n.hasOwnProperty("value")){var i=a.value=n.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=n[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=wr.retrieveVisuals(n),e.push(a)},this),lB(t,e),e2(e),F(e,function(n){var r=n.close,a=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function lB(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}const xYe=SYe;var TYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=rr(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),F(c.viewPieceList,function(h){var v=h.piece,p=new bt;p.onclick=et(this._onItemClick,this,v),this._enableHoverLink(p,h.indexInModelPieceList);var g=r.getRepresentValue(v);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),d){var m=this.visualMapModel.getValueState(g);p.add(new Xt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1}}))}n.add(p)},this),f&&this._renderEndsText(n,f[1],u,d,l),Qu(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:Zy(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return KU(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},t.prototype._renderEndsText=function(n,r,a,i,o){if(r){var s=new bt,l=this.visualMapModel.textStyleModel;s.add(new Xt({style:gn(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),n.add(s)}},t.prototype._getViewData=function(){var n=this.visualMapModel,r=Oe(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=n.get("text"),i=n.get("orient"),o=n.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},t.prototype._createItemSymbol=function(n,r,a){n.add(Hn(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},t.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=pt(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,F(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(WU);const MYe=TYe;function jU(e){e.registerComponentModel(xYe),e.registerComponentView(MYe),UU(e)}function kYe(e){Bt(YU),Bt(jU)}var AYe={label:{enabled:!0},decal:{show:!1}},uB=en(),EYe={};function IYe(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=pt(AYe);Dt(r.label,e.getLocaleModel().get("aria"),!1),Dt(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=ot();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),uB(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(ut(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var b=g2(d.ecModel,d.name,EYe,e.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",w(_,b))}else{var v=d.getRawData(),p={},g=uB(d).scope;h.each(function(C){var S=h.getRawIndex(C);p[S]=C});var m=v.count();v.each(function(C){var S=p[C],x=v.getName(C)||C+"",T=g2(d.ecModel,x,g,m),M=h.getItemVisual(S,"decal");h.setItemVisual(S,"decal",w(M,T))})}function w(C,S){var x=C?Ie(Ie({},S),C):S;return x.dirty=!0,x}})}}function i(){var u=e.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=ft(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,v=c.get(["series","maxCount"])||10,p=Math.min(d,v),g;if(!(d<1)){var m=s();if(m){var b=c.get(["general","withTitle"]);g=o(b,{title:m})}else g=c.get(["general","withoutTitle"]);var _=[],w=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(w,{seriesCount:d}),e.eachSeries(function(T,M){if(M<p){var A=void 0,k=T.get("name"),E=k?"withName":"withoutName";A=d>1?c.get(["series","multiple",E]):c.get(["series","single",E]),A=o(A,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var D=T.getData();if(D.count()>h){var L=c.get(["data","partialData"]);A+=o(L,{displayCnt:h})}else A+=c.get(["data","allData"]);for(var B=c.get(["data","separator","middle"]),N=c.get(["data","separator","end"]),O=[],$=0;$<D.count();$++)if($<h){var I=D.getName($),z=D.getValues($),G=c.get(["data",I?"withName":"withoutName"]);O.push(o(G,{name:I,value:z.join(B)}))}A+=O.join(B)+N,_.push(A)}});var C=c.getModel(["series","multiple","separator"]),S=C.get("middle"),x=C.get("end");g+=_.join(S)+x,f.setAttribute("aria-label",g)}}}function o(u,c){if(!Je(u))return u;var f=u;return F(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return e.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function DYe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},F(["description","general","series","data"],function(n){t[n]!=null&&(t.label[n]=t[n])})}}function PYe(e){e.registerPreprocessor(DYe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,IYe)}var cB={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},LYe=function(){function e(t){var n=this._condVal=Je(t)?new RegExp(t):j6(t)?t:null;if(n==null){var r="";an(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return Je(n)?this._condVal.test(t):Qt(n)?this._condVal.test(t+""):!1},e}(),RYe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),OYe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,n=0;n<t.length;n++)if(!t[n].evaluate())return!1;return!0},e}(),$Ye=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}(),NYe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),BYe=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 NE(e,t){if(e===!0||e===!1){var n=new RYe;return n.value=e,n}var r="";return qU(e)||an(r),e.and?fB("and",e,t):e.or?fB("or",e,t):e.not?VYe(e,t):zYe(e,t)}function fB(e,t,n){var r=t[e],a="";Re(r)||an(a),r.length||an(a);var i=e==="and"?new OYe:new $Ye;return i.children=Oe(r,function(o){return NE(o,n)}),i.children.length||an(a),i}function VYe(e,t){var n=e.not,r="";qU(n)||an(r);var a=new NYe;return a.child=NE(n,t),a.child||an(r),a}function zYe(e,t){for(var n="",r=t.prepareGetValue(e),a=[],i=Gt(e),o=e.parser,s=o?wW(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=nt(cB,u)?cB[u]:u,f=e[u],d=s?s(f):f,h=rOe(c,d)||c==="reg"&&new LYe(d);h||an(n),a.push(h)}}a.length||an(n);var v=new BYe;return v.valueGetterParam=r,v.valueParser=s,v.getValue=t.getValue,v.subCondList=a,v}function qU(e){return ht(e)&&!Cr(e)}var FYe=function(){function e(t,n){this._cond=NE(t,n)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function HYe(e,t){return new FYe(e,t)}var GYe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,n,r=HYe(e.config,{valueGetterAttrMap:ot({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;nt(s,"dimension")||an(l);var c=t.getDimensionInfo(u);return c||an(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(n,s.dimIdx)}}),a=[],i=0,o=t.count();i<o;i++)n=t.getRawDataItem(i),r.evaluate()&&a.push(n);return{data:a}}},WYe={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",a=hn(n);a.length||an(r);var i=[];F(a,function(c){var f=c.dimension,d=c.order,h=c.parser,v=c.incomparable;if(f==null&&an(r),d!=="asc"&&d!=="desc"&&an(r),v&&v!=="min"&&v!=="max"){var p="";an(p)}if(d!=="asc"&&d!=="desc"){var g="";an(g)}var m=t.getDimensionInfo(f);m||an(r);var b=h?wW(h):null;h&&!b&&an(r),i.push({dimIdx:m.index,parser:b,comparator:new CW(d,v)})});var o=t.sourceFormat;o!==Br&&o!==pi&&an(r);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<i.length;d++){var h=i[d],v=t.retrieveValueFromItem(c,h.dimIdx),p=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(v=h.parser(v),p=h.parser(p));var g=h.comparator.evaluate(v,p);if(g!==0)return g}return 0}),{data:s}}};function KYe(e){e.registerTransform(GYe),e.registerTransform(WYe)}var UYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.prototype.init=function(n,r,a){e.prototype.init.call(this,n,r,a),this._sourceManager=new kW(this),vO(this)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),vO(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:mo},t}(Yt),YYe=function(e){ge(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.type="dataset",t}(An);function jYe(e){e.registerComponentModel(UYe),e.registerComponentView(YYe)}var Qi=To.CMD;function Cf(e,t){return Math.abs(e-t)<1e-5}function gT(e){var t=e.data,n=e.len(),r=[],a,i=0,o=0,s=0,l=0;function u(D,L){a&&a.length>2&&r.push(a),a=[D,L]}function c(D,L,B,N){Cf(D,B)&&Cf(L,N)||a.push(D,L,B,N,B,N)}function f(D,L,B,N,O,$){var I=Math.abs(L-D),z=Math.tan(I/4)*4/3,G=L<D?-1:1,U=Math.cos(D),Z=Math.sin(D),ae=Math.cos(L),J=Math.sin(L),Q=U*O+B,ee=Z*$+N,j=ae*O+B,de=J*$+N,ve=O*z*G,ie=$*z*G;a.push(Q-ve*Z,ee+ie*U,j+ve*J,de-ie*ae,j,de)}for(var d,h,v,p,g=0;g<n;){var m=t[g++],b=g===1;switch(b&&(i=t[g],o=t[g+1],s=i,l=o,(m===Qi.L||m===Qi.C||m===Qi.Q)&&(a=[s,l])),m){case Qi.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case Qi.L:d=t[g++],h=t[g++],c(i,o,d,h),i=d,o=h;break;case Qi.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case Qi.Q:d=t[g++],h=t[g++],v=t[g++],p=t[g++],a.push(i+2/3*(d-i),o+2/3*(h-o),v+2/3*(d-v),p+2/3*(h-p),v,p),i=v,o=p;break;case Qi.A:var _=t[g++],w=t[g++],C=t[g++],S=t[g++],x=t[g++],T=t[g++]+x;g+=1;var M=!t[g++];d=Math.cos(x)*C+_,h=Math.sin(x)*S+w,b?(s=d,l=h,u(s,l)):c(i,o,d,h),i=Math.cos(T)*C+_,o=Math.sin(T)*S+w;for(var A=(M?-1:1)*Math.PI/2,k=x;M?k>T:k<T;k+=A){var E=M?Math.max(k+A,T):Math.min(k+A,T);f(k,E,_,w,C,S)}break;case Qi.R:s=i=t[g++],l=o=t[g++],d=s+t[g++],h=l+t[g++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case Qi.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&r.push(a),r}function mT(e,t,n,r,a,i,o,s,l,u){if(Cf(e,n)&&Cf(t,r)&&Cf(a,o)&&Cf(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,v=Math.sqrt(d*d+h*h);d/=v,h/=v;var p=n-e,g=r-t,m=a-o,b=i-s,_=p*p+g*g,w=m*m+b*b;if(_<f&&w<f){l.push(o,s);return}var C=d*p+h*g,S=-d*m-h*b,x=_-C*C,T=w-S*S;if(x<f&&C>=0&&T<f&&S>=0){l.push(o,s);return}var M=[],A=[];ml(e,n,a,o,.5,M),ml(t,r,i,s,.5,A),mT(M[0],A[0],M[1],A[1],M[2],A[2],M[3],A[3],l,u),mT(M[4],A[4],M[5],A[5],M[6],A[6],M[7],A[7],l,u)}function qYe(e,t){var n=gT(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++];mT(s,l,c,f,d,h,v,p,o,t),s=v,l=p}r.push(o)}return r}function XU(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 dB(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=XU([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 XYe(e,t,n){for(var r=e.width,a=e.height,i=r>a,o=XU([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 hB(e,t,n,r){return e*r-n*t}function ZYe(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=hB(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-a,v=t-i,p=hB(h,v,c,f)/d;return p<0||p>1?null:new Pt(p*l+e,p*u+t)}function JYe(e,t,n){var r=new Pt;Pt.sub(r,n,t),r.normalize();var a=new Pt;Pt.sub(a,e,t);var i=a.dot(r);return i}function rf(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function QYe(e,t,n){for(var r=e.length,a=[],i=0;i<r;i++){var o=e[i],s=e[(i+1)%r],l=ZYe(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&a.push({projPt:JYe(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++)rf(v,e[i].slice());rf(v,h),rf(v,d);for(var i=c.idx+1;i<=u.idx+r;i++)rf(p,e[i%r].slice());return rf(p,d),rf(p,h),[{points:v},{points:p}]}function vB(e){var t=e.points,n=[],r=[];M1(t,n,r);var a=new Rt(n[0],n[1],r[0]-n[0],r[1]-n[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new Pt,c=new Pt;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),QYe(t,u,c)}function bb(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);bb(e,i[0],a,r),bb(e,i[1],n-a,r)}return r}function eje(e,t){for(var n=[],r=0;r<t;r++)n.push(Kk(e));return n}function tje(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function nje(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function rje(e,t){var n=[],r=e.shape,a;switch(e.type){case"rect":XYe(r,t,n),a=Zt;break;case"sector":dB(r,t,n),a=na;break;case"circle":dB({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),a=na;break;default:var i=e.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=Oe(qYe(e.getUpdatedPathProxy(),o),function(m){return nje(m)}),l=s.length;if(l===0)bb(vB,{points:s[0]},t,n);else if(l===t)for(var u=0;u<l;u++)n.push({points:s[u]});else{var c=0,f=Oe(s,function(m){var b=[],_=[];M1(m,b,_);var w=(_[1]-b[1])*(_[0]-b[0]);return c+=w,{poly:m,area:w}});f.sort(function(m,b){return b.area-m.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var v=u===l-1?d:Math.ceil(h.area/c*t);v<0||(bb(vB,{points:h.poly},v,n),d-=v)}}a=ra;break}if(!a)return eje(e,t);for(var p=[],u=0;u<n.length;u++){var g=new a;g.setShape(n[u]),tje(e,g),p.push(g)}return p}function aje(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var a=[],i=[],o=n<r?e:t,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var v=o[h-2],p=o[h-1],g=o[h++],m=o[h++],b=o[h++],_=o[h++],w=o[h++],C=o[h++];if(d<=0){f.push(g,m,b,_,w,C);continue}for(var S=Math.min(d,c-1)+1,x=1;x<=S;x++){var T=x/S;ml(v,g,b,w,T,a),ml(p,m,_,C,T,i),v=a[3],p=i[3],f.push(a[1],i[1],a[2],i[2],v,p),g=a[5],m=i[5],b=a[6],_=i[6]}d-=S-1}return o===e?[f,t]:[e,f]}function pB(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 ije(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=aje(l,u),c=n[0],f=n[1],r=c,a=f):(f=pB(a||l,l),c=l):(c=pB(r||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function gB(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 oje(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 sje(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 lje(e,t,n,r){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=gB(s),c=gB(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],h=0,v=1/0,p=[],g=s.length;i&&(s=sje(s));for(var m=oje(s,l,u,c)*6,b=g-2,_=0;_<b;_+=2){var w=(m+_)%b+2;f[_+2]=s[w]-u[0],f[_+3]=s[w+1]-u[1]}if(f[0]=s[m]-u[0],f[1]=s[m+1]-u[1],n>0)for(var C=r/n,S=-r/2;S<=r/2;S+=C){for(var x=Math.sin(S),T=Math.cos(S),M=0,_=0;_<s.length;_+=2){var A=f[_],k=f[_+1],E=l[_]-c[0],D=l[_+1]-c[1],L=E*T-D*x,B=E*x+D*T;p[_]=L,p[_+1]=B;var N=L-A,O=B-k;M+=N*N+O*O}if(M<v){v=M,h=S;for(var $=0;$<p.length;$++)d[$]=p[$]}}else for(var I=0;I<g;I+=2)d[I]=l[I]-c[0],d[I+1]=l[I+1]-c[1];a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return a}function _b(e){return e.__isCombineMorphing}var ZU="__mOriginal_";function wb(e,t,n){var r=ZU+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 Iv(e,t){var n=ZU+t;e[n]&&(e[t]=e[n],e[n]=null)}function mB(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 JU(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),a=ije(gT(n),gT(r)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&mB(i,s),l&&mB(o,l),wb(t,"updateTransform",{replace:u}),t.transform=null;var c=lje(i,o,10,Math.PI),f=[];wb(t,"buildPath",{replace:function(d){for(var h=t.__morphT,v=1-h,p=[],g=0;g<c.length;g++){var m=c[g],b=m.from,_=m.to,w=m.rotation*h,C=m.fromCp,S=m.toCp,x=Math.sin(w),T=Math.cos(w);gv(p,C,S,h);for(var M=0;M<b.length;M+=2){var A=b[M],k=b[M+1],E=_[M],D=_[M+1],L=A*v+E*h,B=k*v+D*h;f[M]=L*T-B*x+p[0],f[M+1]=L*x+B*T+p[1]}var N=f[0],O=f[1];d.moveTo(N,O);for(var M=2;M<b.length;){var E=f[M++],D=f[M++],$=f[M++],I=f[M++],z=f[M++],G=f[M++];N===E&&O===D&&$===z&&I===G?d.lineTo(z,G):d.bezierCurveTo(E,D,$,I,z,G),N=z,O=G}}}})}function BE(e,t,n){if(!e||!t)return t;var r=n.done,a=n.during;JU(e,t),t.__morphT=0;function i(){Iv(t,"buildPath"),Iv(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},ft({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),r&&r()}},n)),t}function uje(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 Sb(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=Oe(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),n=Math.min(f,n),r=Math.max(c,r),a=Math.max(f,a),[c,f]}),o=Oe(i,function(s,l){return{cp:s,z:uje(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 QU(e){return rje(e.path,e.count)}function yT(){return{fromIndividuals:[],toIndividuals:[],count:0}}function cje(e,t,n){var r=[];function a(C){for(var S=0;S<C.length;S++){var x=C[S];_b(x)?a(x.childrenRef()):x instanceof zt&&r.push(x)}}a(e);var i=r.length;if(!i)return yT();var o=n.dividePath||QU,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),yT();r=Sb(r),s=Sb(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new Uo,d=0;d<i;d++){var h=r[d],v=s[d];v.parent=t,v.copyTransform(f),c||JU(h,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(C){for(var S=0;S<s.length;S++)s[S].addSelfToZr(C)}wb(t,"addSelfToZr",{after:function(C){p(C)}}),wb(t,"removeSelfFromZr",{after:function(C){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(C)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Iv(t,"addSelfToZr"),Iv(t,"removeSelfFromZr")}var m=s.length;if(c)for(var b=m,_=function(){b--,b===0&&(g(),l&&l())},d=0;d<m;d++){var w=c?ft({delay:(n.delay||0)+c(d,m,r[d],s[d]),done:_},n):n;BE(r[d],s[d],w)}else t.__morphT=0,t.animateTo({__morphT:1},ft({during:function(C){for(var S=0;S<m;S++){var x=s[S];x.__morphT=t.__morphT,x.dirtyShape()}u&&u(C)},done:function(){g();for(var C=0;C<e.length;C++)Iv(e[C],"updateTransform");l&&l()}},n));return t.__zr&&p(t.__zr),{fromIndividuals:r,toIndividuals:s,count:m}}function fje(e,t,n){var r=t.length,a=[],i=n.dividePath||QU;function o(h){for(var v=0;v<h.length;v++){var p=h[v];_b(p)?o(p.childrenRef()):p instanceof zt&&a.push(p)}}if(_b(e)){o(e.childrenRef());var s=a.length;if(s<r)for(var l=0,u=s;u<r;u++)a.push(Kk(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"),yT()}a=Sb(a),t=Sb(t);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?ft({delay:(n.delay||0)+f(u,r,a[u],t[u])},n):n;BE(a[u],t[u],d)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function yB(e){return Re(e[0])}function bB(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 dje={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=Kk(e.path);a.setStyle("opacity",n),t.push(a)}return t},split:null};function aC(e,t,n,r,a,i){if(!e.length||!t.length)return;var o=$d("update",r,a);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;yB(e)&&(u=e,c=t),yB(t)&&(u=t,c=e);function f(m,b,_,w,C){var S=m.many,x=m.one;if(S.length===1&&!C){var T=b?S[0]:x,M=b?x:S[0];if(_b(T))f({many:[T],one:M},!0,_,w,!0);else{var A=s?ft({delay:s(_,w)},l):l;BE(T,M,A),i(T,M,T,M,A)}}else for(var k=ft({dividePath:dje[n],individualDelay:s&&function(O,$,I,z){return s(O+_,w)}},l),E=b?cje(S,x,k):fje(x,S,k),D=E.fromIndividuals,L=E.toIndividuals,B=D.length,N=0;N<B;N++){var A=s?ft({delay:s(N,B)},l):l;i(D[N],L[N],b?S[N]:m.one,b?m.one:S[N],A)}}for(var d=u?u===e:e.length>t.length,h=u?bB(c,u):bB(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 _u(e){if(!e)return[];if(Re(e)){for(var t=[],n=0;n<e.length;n++)t.push(_u(e[n]));return t}var r=[];return e.traverse(function(a){a instanceof zt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var eY=1e4,hje=en();function vje(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 _B(e){var t=[];return F(e,function(n){var r=n.data;if(!(r.count()>eY))for(var a=r.getIndices(),i=vje(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 iC(e,t,n){e.traverse(function(r){r instanceof zt&&xn(r,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function oC(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function af(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function pje(e,t,n){var r=$d("update",n,t);r&&e.traverse(function(a){if(a instanceof fi){var i=NLe(a);i&&a.animateFrom({style:i},r)}})}function gje(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 tY(e,t,n){var r=_B(e),a=_B(t);function i(m,b,_,w,C){(_||m)&&b.animateFrom({style:_&&_!==m?Ie(Ie({},_.style),m.style):m.style},C)}function o(m){for(var b=0;b<m.length;b++)if(m[b].dim)return m[b].dim}var s=o(r),l=o(a),u=!1;function c(m,b){return function(_){var w=_.data,C=_.dataIndex;if(b)return w.getId(C);var S=_.dataGroupId,x=m?s||l:l||s,T=x&&w.getDimensionInfo(x),M=T&&T.ordinalMeta;if(T){var A=w.get(T.name,C);return M&&M.categories[A]||A+""}var k=w.getRawDataItem(C);return k&&k.groupId?k.groupId+"":S||w.getId(C)}}var f=gje(r,a),d={};if(!f)for(var h=0;h<a.length;h++){var v=a[h],p=v.data.getItemGraphicEl(v.dataIndex);p&&(d[p.id]=!0)}function g(m,b){var _=r[b],w=a[m],C=w.data.hostModel,S=_.data.getItemGraphicEl(_.dataIndex),x=w.data.getItemGraphicEl(w.dataIndex);if(S===x){x&&pje(x,w.dataIndex,C);return}S&&d[S.id]||x&&(af(x),S?(af(S),oC(S),u=!0,aC(_u(S),_u(x),w.divide,C,m,i)):iC(x,C,m))}new is(r,a,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(m,b){var _=a[m],w=_.data,C=w.hostModel,S=w.getItemGraphicEl(_.dataIndex),x=ln(Oe(b,function(T){return r[T].data.getItemGraphicEl(r[T].dataIndex)}),function(T){return T&&T!==S&&!d[T.id]});S&&(af(S),x.length?(F(x,function(T){af(T),oC(T)}),u=!0,aC(_u(x),_u(S),_.divide,C,m,i)):iC(S,C,_.dataIndex))}).updateOneToMany(function(m,b){var _=r[b],w=_.data.getItemGraphicEl(_.dataIndex);if(!(w&&d[w.id])){var C=ln(Oe(m,function(x){return a[x].data.getItemGraphicEl(a[x].dataIndex)}),function(x){return x&&x!==w}),S=a[m[0]].data.hostModel;C.length&&(F(C,function(x){return af(x)}),w?(af(w),oC(w),u=!0,aC(_u(w),_u(C),_.divide,S,m[0],i)):F(C,function(x){return iC(x,S,m[0])}))}}).updateManyToMany(function(m,b){new is(b,m,function(_){return r[_].data.getId(r[_].dataIndex)},function(_){return a[_].data.getId(a[_].dataIndex)}).update(function(_,w){g(m[_],b[w])}).execute()}).execute(),u&&F(t,function(m){var b=m.data,_=b.hostModel,w=_&&n.getViewOfSeriesModel(_),C=$d("update",_,0);w&&_.isAnimationEnabled()&&C&&C.duration>0&&w.group.traverse(function(S){S instanceof zt&&!S.animators.length&&S.animateFrom({style:{opacity:0}},C)})})}function wB(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function SB(e){return Re(e)?e.sort().join(","):e}function zs(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function mje(e,t){var n=ot(),r=ot(),a=ot();return F(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=wB(i),c=SB(u);r.set(c,{dataGroupId:s,data:l}),Re(u)&&F(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),F(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=wB(i),u=SB(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:zs(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:zs(s),data:s}]});else if(Re(l)){var f=[];F(l,function(v){var p=r.get(v);p.data&&f.push({dataGroupId:p.dataGroupId,divide:zs(p.data),data:p.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:zs(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:zs(d.data)}],newSeries:[]},n.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:zs(s)})}}}}),n}function CB(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 yje(e,t,n,r){var a=[],i=[];F(hn(e.from),function(o){var s=CB(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:zs(t.oldData[s]),dim:o.dimension})}),F(hn(e.to),function(o){var s=CB(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:zs(l),dim:o.dimension})}}),a.length>0&&i.length>0&&tY(a,i,r)}function bje(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){F(hn(r.seriesTransition),function(a){F(hn(a.to),function(i){for(var o=r.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Ky]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,n,r){var a=hje(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)F(hn(i),function(h){yje(h,a,r,n)});else{var o=mje(a,r);F(o.keys(),function(h){var v=o.get(h);tY(v.oldSeries,v.newSeries,n)})}F(r.updatedSeries,function(h){h[Ky]&&(h[Ky]=!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()<eY&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}Bt([$4e]);Bt([E4e]);Bt([oBe,xBe,NBe,xVe,FVe,O5e,dze,Jze,MFe,OFe,UFe,X8e,C6e,$6e,nHe,uHe,kHe,NHe,XHe,aGe,mGe,nWe]);Bt(TWe);Bt(i9e);Bt(X7);Bt(S9e);Bt($K);Bt(E9e);Bt(B9e);Bt(V7e);Bt(lKe);Bt(Eg);Bt(AKe);Bt(DKe);Bt(UKe);Bt(nUe);Bt(cUe);Bt(yUe);Bt(PUe);Bt(eYe);Bt(FU);Bt(HU);Bt(kYe);Bt(YU);Bt(jU);Bt(PYe);Bt(KYe);Bt(jYe);Bt(bje);Bt(q3e);const _je=Object.freeze(Object.defineProperty({__proto__:null,Axis:gi,ChartView:vn,ComponentModel:Yt,ComponentView:An,List:Or,Model:dn,PRIORITY:n9,SeriesModel:_n,color:WIe,connect:Z$e,dataTool:aNe,dependencies:L$e,disConnect:J$e,disconnect:c9,dispose:Q$e,env:Jt,extendChartView:O3e,extendComponentModel:P3e,extendComponentView:L3e,extendSeriesModel:R3e,format:_3e,getCoordinateSystemDimensions:tNe,getInstanceByDom:CA,getInstanceById:eNe,getMap:rNe,graphic:b3e,helper:f3e,init:X$e,innerDrawElementOnCanvas:bA,matrix:gIe,number:m3e,parseGeoJSON:D2,parseGeoJson:D2,registerAction:Yi,registerCoordinateSystem:h9,registerLayout:v9,registerLoading:AA,registerLocale:Qk,registerMap:p9,registerPostInit:f9,registerPostUpdate:d9,registerPreprocessor:TA,registerProcessor:MA,registerTheme:xA,registerTransform:g9,registerUpdateLifecycle:K1,registerVisual:$l,setCanvasCreator:nNe,setPlatformAPI:G6,throttle:G1,time:y3e,use:Bt,util:w3e,vector:eIe,version:P$e,zrUtil:YEe,zrender:EDe},Symbol.toStringTag,{value:"Module"})),Zd=RV(Iq);Zd.use(KT);Zd.use(UV);Zd.use(IEe);Zd.config.globalProperties.$echarts=_je;Zd.mount("#app");Zd.config.errorHandler=function(e,t,n){console.error("Vue error:",e,n)};export{DB as $,Eje as A,ce as B,se as C,Kt as D,tEe as E,je as F,ne as G,kn as H,_e as I,Ct as J,xe as K,Od as L,Aje as M,jt as N,UV as O,vs as P,ko as Q,OX as R,Ft as S,Ze as T,Ye as U,IB as V,Ge as W,EB as X,Et as Y,gt as Z,kq as _,ct as a,or as a0,Sje as a1,Tje as a2,Tl as a3,Mr as a4,Ue as a5,Lb as a6,Mje as a7,wn as a8,wje as a9,Qs as aa,yc as ab,xd as ac,St as ad,K as b,P as c,q as d,Y as e,y as f,Ut as g,yt as h,cn as i,Ot as j,_r as k,lbe as l,dt as m,V as n,R as o,tt as p,Cje as q,H as r,gse as s,xje as t,kje as u,HT as v,re as w,X$e as x,De as y,lc as z};