index-ed06191f.js 2.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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 bE(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 Cr={},mh=[],On=()=>{},zZ=()=>!1,HZ=/^on[^a-z]/,j_=e=>HZ.test(e),_E=e=>e.startsWith("onUpdate:"),Ur=Object.assign,wE=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},WZ=Object.prototype.hasOwnProperty,fn=(e,t)=>WZ.call(e,t),ft=Array.isArray,yh=e=>Zm(e)==="[object Map]",Y_=e=>Zm(e)==="[object Set]",Hf=e=>Zm(e)==="[object Date]",At=e=>typeof e=="function",Mt=e=>typeof e=="string",Rg=e=>typeof e=="symbol",Qt=e=>e!==null&&typeof e=="object",Og=e=>Qt(e)&&At(e.then)&&At(e.catch),C6=Object.prototype.toString,Zm=e=>C6.call(e),Tb=e=>Zm(e).slice(8,-1),w1=e=>Zm(e)==="[object Object]",SE=e=>Mt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kb=bE(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),q_=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},GZ=/-(\w)/g,co=q_(e=>e.replace(GZ,(t,n)=>n?n.toUpperCase():"")),UZ=/\B([A-Z])/g,ec=q_(e=>e.replace(UZ,"-$1").toLowerCase()),Jm=q_(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ab=q_(e=>e?`on${Jm(e)}`:""),Ng=(e,t)=>!Object.is(e,t),Eb=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},S1=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Q2=e=>{const t=parseFloat(e);return isNaN(t)?e:t},KZ=e=>{const t=Mt(e)?Number(e):NaN;return isNaN(t)?e:t};let dP;const eT=()=>dP||(dP=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function mt(e){if(ft(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],a=Mt(r)?XZ(r):mt(r);if(a)for(const i in a)t[i]=a[i]}return t}else{if(Mt(e))return e;if(Qt(e))return e}}const jZ=/;(?![^(]*\))/g,YZ=/:([^]+)/,qZ=/\/\*[^]*?\*\//g;function XZ(e){const t={};return e.replace(qZ,"").split(jZ).forEach(n=>{if(n){const r=n.split(YZ);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function H(e){let t="";if(Mt(e))t=e;else if(ft(e))for(let n=0;n<e.length;n++){const r=H(e[n]);r&&(t+=r+" ")}else if(Qt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Vo(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Mt(t)&&(e.class=H(t)),n&&(e.style=mt(n)),e}const ZZ="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",JZ=bE(ZZ);function x6(e){return!!e||e===""}function QZ(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Oh(e[r],t[r]);return n}function Oh(e,t){if(e===t)return!0;let n=Hf(e),r=Hf(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Rg(e),r=Rg(t),n||r)return e===t;if(n=ft(e),r=ft(t),n||r)return n&&r?QZ(e,t):!1;if(n=Qt(e),r=Qt(t),n||r){if(!n||!r)return!1;const a=Object.keys(e).length,i=Object.keys(t).length;if(a!==i)return!1;for(const o in e){const s=e.hasOwnProperty(o),l=t.hasOwnProperty(o);if(s&&!l||!s&&l||!Oh(e[o],t[o]))return!1}}return String(e)===String(t)}function T6(e,t){return e.findIndex(n=>Oh(n,t))}const qe=e=>Mt(e)?e:e==null?"":ft(e)||Qt(e)&&(e.toString===C6||!At(e.toString))?JSON.stringify(e,k6,2):String(e),k6=(e,t)=>t&&t.__v_isRef?k6(e,t.value):yh(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:Y_(t)?{[`Set(${t.size})`]:[...t.values()]}:Qt(t)&&!ft(t)&&!w1(t)?String(t):t;let Ei;class A6{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ei,!t&&Ei&&(this.index=(Ei.scopes||(Ei.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ei;try{return Ei=this,t()}finally{Ei=n}}}on(){Ei=this}off(){Ei=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 X_(e){return new A6(e)}function eJ(e,t=Ei){t&&t.active&&t.effects.push(e)}function CE(){return Ei}function xE(e){Ei&&Ei.cleanups.push(e)}const TE=e=>{const t=new Set(e);return t.w=0,t.n=0,t},E6=e=>(e.w&Bu)>0,M6=e=>(e.n&Bu)>0,tJ=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Bu},nJ=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const a=t[r];E6(a)&&!M6(a)?a.delete(e):t[n++]=a,a.w&=~Bu,a.n&=~Bu}t.length=n}},C1=new WeakMap;let Fp=0,Bu=1;const tT=30;let Fo;const Mf=Symbol(""),nT=Symbol("");class kE{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,eJ(this,r)}run(){if(!this.active)return this.fn();let t=Fo,n=Au;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Fo,Fo=this,Au=!0,Bu=1<<++Fp,Fp<=tT?tJ(this):hP(this),this.fn()}finally{Fp<=tT&&nJ(this),Bu=1<<--Fp,Fo=this.parent,Au=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Fo===this?this.deferStop=!0:this.active&&(hP(this),this.onStop&&this.onStop(),this.active=!1)}}function hP(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Au=!0;const I6=[];function vv(){I6.push(Au),Au=!1}function pv(){const e=I6.pop();Au=e===void 0?!0:e}function Si(e,t,n){if(Au&&Fo){let r=C1.get(e);r||C1.set(e,r=new Map);let a=r.get(n);a||r.set(n,a=TE()),D6(a)}}function D6(e,t){let n=!1;Fp<=tT?M6(e)||(e.n|=Bu,n=!E6(e)):n=!e.has(Fo),n&&(e.add(Fo),Fo.deps.push(e))}function yl(e,t,n,r,a,i){const o=C1.get(e);if(!o)return;let s=[];if(t==="clear")s=[...o.values()];else if(n==="length"&&ft(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":ft(e)?SE(n)&&s.push(o.get("length")):(s.push(o.get(Mf)),yh(e)&&s.push(o.get(nT)));break;case"delete":ft(e)||(s.push(o.get(Mf)),yh(e)&&s.push(o.get(nT)));break;case"set":yh(e)&&s.push(o.get(Mf));break}if(s.length===1)s[0]&&rT(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);rT(TE(l))}}function rT(e,t){const n=ft(e)?e:[...e];for(const r of n)r.computed&&vP(r);for(const r of n)r.computed||vP(r)}function vP(e,t){(e!==Fo||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function rJ(e,t){var n;return(n=C1.get(e))==null?void 0:n.get(t)}const aJ=bE("__proto__,__v_isRef,__isVue"),L6=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rg)),iJ=AE(),oJ=AE(!1,!0),sJ=AE(!0),pP=lJ();function lJ(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=In(this);for(let i=0,o=this.length;i<o;i++)Si(r,"get",i+"");const a=r[t](...n);return a===-1||a===!1?r[t](...n.map(In)):a}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){vv();const r=In(this)[t].apply(this,n);return pv(),r}}),e}function uJ(e){const t=In(this);return Si(t,"has",e),t.hasOwnProperty(e)}function AE(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?TJ:$6:t?N6:O6).get(r))return r;const o=ft(r);if(!e){if(o&&fn(pP,a))return Reflect.get(pP,a,i);if(a==="hasOwnProperty")return uJ}const s=Reflect.get(r,a,i);return(Rg(a)?L6.has(a):aJ(a))||(e||Si(r,"get",a),t)?s:Rn(s)?o&&SE(a)?s:s.value:Qt(s)?e?gv(s):xn(s):s}}const cJ=P6(),fJ=P6(!0);function P6(e=!1){return function(n,r,a,i){let o=n[r];if(Nh(o)&&Rn(o)&&!Rn(a))return!1;if(!e&&(!x1(a)&&!Nh(a)&&(o=In(o),a=In(a)),!ft(n)&&Rn(o)&&!Rn(a)))return o.value=a,!0;const s=ft(n)&&SE(r)?Number(r)<n.length:fn(n,r),l=Reflect.set(n,r,a,i);return n===In(i)&&(s?Ng(a,o)&&yl(n,"set",r,a):yl(n,"add",r,a)),l}}function dJ(e,t){const n=fn(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&yl(e,"delete",t,void 0),r}function hJ(e,t){const n=Reflect.has(e,t);return(!Rg(t)||!L6.has(t))&&Si(e,"has",t),n}function vJ(e){return Si(e,"iterate",ft(e)?"length":Mf),Reflect.ownKeys(e)}const R6={get:iJ,set:cJ,deleteProperty:dJ,has:hJ,ownKeys:vJ},pJ={get:sJ,set(e,t){return!0},deleteProperty(e,t){return!0}},gJ=Ur({},R6,{get:oJ,set:fJ}),EE=e=>e,Z_=e=>Reflect.getPrototypeOf(e);function Xy(e,t,n=!1,r=!1){e=e.__v_raw;const a=In(e),i=In(t);n||(t!==i&&Si(a,"get",t),Si(a,"get",i));const{has:o}=Z_(a),s=r?EE:n?DE:$g;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 Zy(e,t=!1){const n=this.__v_raw,r=In(n),a=In(e);return t||(e!==a&&Si(r,"has",e),Si(r,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Jy(e,t=!1){return e=e.__v_raw,!t&&Si(In(e),"iterate",Mf),Reflect.get(e,"size",e)}function gP(e){e=In(e);const t=In(this);return Z_(t).has.call(t,e)||(t.add(e),yl(t,"add",e,e)),this}function mP(e,t){t=In(t);const n=In(this),{has:r,get:a}=Z_(n);let i=r.call(n,e);i||(e=In(e),i=r.call(n,e));const o=a.call(n,e);return n.set(e,t),i?Ng(t,o)&&yl(n,"set",e,t):yl(n,"add",e,t),this}function yP(e){const t=In(this),{has:n,get:r}=Z_(t);let a=n.call(t,e);a||(e=In(e),a=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return a&&yl(t,"delete",e,void 0),i}function bP(){const e=In(this),t=e.size!==0,n=e.clear();return t&&yl(e,"clear",void 0,void 0),n}function Qy(e,t){return function(r,a){const i=this,o=i.__v_raw,s=In(o),l=t?EE:e?DE:$g;return!e&&Si(s,"iterate",Mf),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function e0(e,t,n){return function(...r){const a=this.__v_raw,i=In(a),o=yh(i),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=a[e](...r),c=n?EE:t?DE:$g;return!t&&Si(i,"iterate",l?nT:Mf),{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 Kl(e){return function(...t){return e==="delete"?!1:this}}function mJ(){const e={get(i){return Xy(this,i)},get size(){return Jy(this)},has:Zy,add:gP,set:mP,delete:yP,clear:bP,forEach:Qy(!1,!1)},t={get(i){return Xy(this,i,!1,!0)},get size(){return Jy(this)},has:Zy,add:gP,set:mP,delete:yP,clear:bP,forEach:Qy(!1,!0)},n={get(i){return Xy(this,i,!0)},get size(){return Jy(this,!0)},has(i){return Zy.call(this,i,!0)},add:Kl("add"),set:Kl("set"),delete:Kl("delete"),clear:Kl("clear"),forEach:Qy(!0,!1)},r={get(i){return Xy(this,i,!0,!0)},get size(){return Jy(this,!0)},has(i){return Zy.call(this,i,!0)},add:Kl("add"),set:Kl("set"),delete:Kl("delete"),clear:Kl("clear"),forEach:Qy(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=e0(i,!1,!1),n[i]=e0(i,!0,!1),t[i]=e0(i,!1,!0),r[i]=e0(i,!0,!0)}),[e,n,t,r]}const[yJ,bJ,_J,wJ]=mJ();function ME(e,t){const n=t?e?wJ:_J:e?bJ:yJ;return(r,a,i)=>a==="__v_isReactive"?!e:a==="__v_isReadonly"?e:a==="__v_raw"?r:Reflect.get(fn(n,a)&&a in r?n:r,a,i)}const SJ={get:ME(!1,!1)},CJ={get:ME(!1,!0)},xJ={get:ME(!0,!1)},O6=new WeakMap,N6=new WeakMap,$6=new WeakMap,TJ=new WeakMap;function kJ(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function AJ(e){return e.__v_skip||!Object.isExtensible(e)?0:kJ(Tb(e))}function xn(e){return Nh(e)?e:IE(e,!1,R6,SJ,O6)}function B6(e){return IE(e,!1,gJ,CJ,N6)}function gv(e){return IE(e,!0,pJ,xJ,$6)}function IE(e,t,n,r,a){if(!Qt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const o=AJ(e);if(o===0)return e;const s=new Proxy(e,o===2?r:n);return a.set(e,s),s}function Eu(e){return Nh(e)?Eu(e.__v_raw):!!(e&&e.__v_isReactive)}function Nh(e){return!!(e&&e.__v_isReadonly)}function x1(e){return!!(e&&e.__v_isShallow)}function F6(e){return Eu(e)||Nh(e)}function In(e){const t=e&&e.__v_raw;return t?In(t):e}function vl(e){return S1(e,"__v_skip",!0),e}const $g=e=>Qt(e)?xn(e):e,DE=e=>Qt(e)?gv(e):e;function V6(e){Au&&Fo&&(e=In(e),D6(e.dep||(e.dep=TE())))}function LE(e,t){e=In(e);const n=e.dep;n&&rT(n)}function Rn(e){return!!(e&&e.__v_isRef===!0)}function U(e){return z6(e,!1)}function Wn(e){return z6(e,!0)}function z6(e,t){return Rn(e)?e:new EJ(e,t)}class EJ{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:In(t),this._value=n?t:$g(t)}get value(){return V6(this),this._value}set value(t){const n=this.__v_isShallow||x1(t)||Nh(t);t=n?t:In(t),Ng(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:$g(t),LE(this))}}function Qv(e){LE(e)}function _(e){return Rn(e)?e.value:e}const MJ={get:(e,t,n)=>_(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const a=e[t];return Rn(a)&&!Rn(n)?(a.value=n,!0):Reflect.set(e,t,n,r)}};function H6(e){return Eu(e)?e:new Proxy(e,MJ)}function Jr(e){const t=ft(e)?new Array(e.length):{};for(const n in e)t[n]=W6(e,n);return t}class IJ{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 rJ(In(this._object),this._key)}}class DJ{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function vr(e,t,n){return Rn(e)?e:At(e)?new DJ(e):Qt(e)&&arguments.length>1?W6(e,t,n):U(e)}function W6(e,t,n){const r=e[t];return Rn(r)?r:new IJ(e,t,n)}class LJ{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 kE(t,()=>{this._dirty||(this._dirty=!0,LE(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const t=In(this);return V6(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function G6(e,t,n=!1){let r,a;const i=At(e);return i?(r=e,a=On):(r=e.get,a=e.set),new LJ(r,a,i||!a,n)}function PJ(e,...t){}function Mu(e,t,n,r){let a;try{a=r?e(...r):e()}catch(i){J_(i,t,n)}return a}function so(e,t,n,r){if(At(e)){const i=Mu(e,t,n,r);return i&&Og(i)&&i.catch(o=>{J_(o,t,n)}),i}const a=[];for(let i=0;i<e.length;i++)a.push(so(e[i],t,n,r));return a}function J_(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){Mu(l,null,10,[e,o,s]);return}}RJ(e,n,a,r)}function RJ(e,t,n,r=!0){console.error(e)}let Bg=!1,aT=!1;const La=[];let Cs=0;const bh=[];let tl=null,rf=0;const U6=Promise.resolve();let PE=null;function pt(e){const t=PE||U6;return e?t.then(this?e.bind(this):e):t}function OJ(e){let t=Cs+1,n=La.length;for(;t<n;){const r=t+n>>>1;Fg(La[r])<e?t=r+1:n=r}return t}function RE(e){(!La.length||!La.includes(e,Bg&&e.allowRecurse?Cs+1:Cs))&&(e.id==null?La.push(e):La.splice(OJ(e.id),0,e),K6())}function K6(){!Bg&&!aT&&(aT=!0,PE=U6.then(Y6))}function NJ(e){const t=La.indexOf(e);t>Cs&&La.splice(t,1)}function $J(e){ft(e)?bh.push(...e):(!tl||!tl.includes(e,e.allowRecurse?rf+1:rf))&&bh.push(e),K6()}function _P(e,t=Bg?Cs+1:0){for(;t<La.length;t++){const n=La[t];n&&n.pre&&(La.splice(t,1),t--,n())}}function j6(e){if(bh.length){const t=[...new Set(bh)];if(bh.length=0,tl){tl.push(...t);return}for(tl=t,tl.sort((n,r)=>Fg(n)-Fg(r)),rf=0;rf<tl.length;rf++)tl[rf]();tl=null,rf=0}}const Fg=e=>e.id==null?1/0:e.id,BJ=(e,t)=>{const n=Fg(e)-Fg(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Y6(e){aT=!1,Bg=!0,La.sort(BJ);const t=On;try{for(Cs=0;Cs<La.length;Cs++){const n=La[Cs];n&&n.active!==!1&&Mu(n,null,14)}}finally{Cs=0,La.length=0,j6(),Bg=!1,PE=null,(La.length||bh.length)&&Y6()}}function FJ(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Cr;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]||Cr;d&&(a=n.map(h=>Mt(h)?h.trim():h)),f&&(a=n.map(Q2))}let s,l=r[s=Ab(t)]||r[s=Ab(co(t))];!l&&i&&(l=r[s=Ab(ec(t))]),l&&so(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,so(u,e,6,a)}}function q6(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(!At(e)){const l=u=>{const c=q6(u,t,!0);c&&(s=!0,Ur(o,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!s?(Qt(e)&&r.set(e,null),null):(ft(i)?i.forEach(l=>o[l]=null):Ur(o,i),Qt(e)&&r.set(e,o),o)}function Q_(e,t){return!e||!j_(t)?!1:(t=t.slice(2).replace(/Once$/,""),fn(e,t[0].toLowerCase()+t.slice(1))||fn(e,ec(t))||fn(e,t))}let va=null,X6=null;function T1(e){const t=va;return va=e,X6=e&&e.type.__scopeId||null,t}function fe(e,t=va,n){if(!t||e._n)return e;const r=(...a)=>{r._d&&PP(-1);const i=T1(t);let o;try{o=e(...a)}finally{T1(i),r._d&&PP(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function jS(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=T1(e);try{if(n.shapeFlag&4){const S=a||r;g=Ss(c.call(S,S,f,i,h,d,v)),m=l}else{const S=t;g=Ss(S.length>1?S(i,{attrs:l,slots:s,emit:u}):S(i,null)),m=t.props?l:VJ(l)}}catch(S){ag.length=0,J_(S,e,1),g=re(Xa)}let w=g;if(m&&p!==!1){const S=Object.keys(m),{shapeFlag:C}=w;S.length&&C&7&&(o&&S.some(_E)&&(m=zJ(m,o)),w=_l(w,m))}return n.dirs&&(w=_l(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),g=w,T1(b),g}const VJ=e=>{let t;for(const n in e)(n==="class"||n==="style"||j_(n))&&((t||(t={}))[n]=e[n]);return t},zJ=(e,t)=>{const n={};for(const r in e)(!_E(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function HJ(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?wP(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]&&!Q_(u,d))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?wP(r,o,u):!0:!!o;return!1}function wP(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]&&!Q_(n,i))return!0}return!1}function WJ({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const GJ=e=>e.__isSuspense;function UJ(e,t){t&&t.pendingBranch?ft(e)?t.effects.push(...e):t.effects.push(e):$J(e)}function Oi(e,t){return OE(e,null,t)}const t0={};function ze(e,t,n){return OE(e,t,n)}function OE(e,t,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=Cr){var s;const l=CE()===((s=ta)==null?void 0:s.scope)?ta:null;let u,c=!1,f=!1;if(Rn(e)?(u=()=>e.value,c=x1(e)):Eu(e)?(u=()=>e,r=!0):ft(e)?(f=!0,c=e.some(S=>Eu(S)||x1(S)),u=()=>e.map(S=>{if(Rn(S))return S.value;if(Eu(S))return hf(S);if(At(S))return Mu(S,l,2)})):At(e)?t?u=()=>Mu(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),so(e,l,3,[h])}:u=On,t&&r){const S=u;u=()=>hf(S())}let d,h=S=>{d=b.onStop=()=>{Mu(S,l,4)}},v;if(Ug)if(h=On,t?n&&so(t,l,3,[u(),f?[]:void 0,h]):u(),a==="sync"){const S=RQ();v=S.__watcherHandles||(S.__watcherHandles=[])}else return On;let p=f?new Array(e.length).fill(t0):t0;const g=()=>{if(b.active)if(t){const S=b.run();(r||c||(f?S.some((C,y)=>Ng(C,p[y])):Ng(S,p)))&&(d&&d(),so(t,l,3,[S,p===t0?void 0:f&&p[0]===t0?[]:p,h]),p=S)}else b.run()};g.allowRecurse=!!t;let m;a==="sync"?m=g:a==="post"?m=()=>vi(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),m=()=>RE(g));const b=new kE(u,m);t?n?g():p=b.run():a==="post"?vi(b.run.bind(b),l&&l.suspense):b.run();const w=()=>{b.stop(),l&&l.scope&&wE(l.scope.effects,b)};return v&&v.push(w),w}function KJ(e,t,n){const r=this.proxy,a=Mt(e)?e.includes(".")?Z6(r,e):()=>r[e]:e.bind(r,r);let i;At(t)?i=t:(i=t.handler,n=t);const o=ta;$h(this);const s=OE(a,i.bind(r),n);return o?$h(o):If(),s}function Z6(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 hf(e,t){if(!Qt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Rn(e))hf(e.value,t);else if(ft(e))for(let n=0;n<e.length;n++)hf(e[n],t);else if(Y_(e)||yh(e))e.forEach(n=>{hf(n,t)});else if(w1(e))for(const n in e)hf(e[n],t);return e}function Rt(e,t){const n=va;if(n===null)return e;const r=iw(n)||n.proxy,a=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,s,l,u=Cr]=t[i];o&&(At(o)&&(o={mounted:o,updated:o}),o.deep&&hf(s),a.push({dir:o,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function _c(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&&(vv(),so(l,n,8,[e.el,s,e,t]),pv())}}function J6(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return zt(()=>{e.isMounted=!0}),sr(()=>{e.isUnmounting=!0}),e}const Wi=[Function,Array],Q6={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Wi,onEnter:Wi,onAfterEnter:Wi,onEnterCancelled:Wi,onBeforeLeave:Wi,onLeave:Wi,onAfterLeave:Wi,onLeaveCancelled:Wi,onBeforeAppear:Wi,onAppear:Wi,onAfterAppear:Wi,onAppearCancelled:Wi},jJ={name:"BaseTransition",props:Q6,setup(e,{slots:t}){const n=Nt(),r=J6();let a;return()=>{const i=t.default&&NE(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==Xa){o=p;break}}const s=In(e),{mode:l}=s;if(r.isLeaving)return YS(o);const u=SP(o);if(!u)return YS(o);const c=Vg(u,s,r,n);zg(u,c);const f=n.subTree,d=f&&SP(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!==Xa&&(!af(u,d)||h)){const p=Vg(d,s,r,n);if(zg(d,p),l==="out-in")return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},YS(o);l==="in-out"&&u.type!==Xa&&(p.delayLeave=(g,m,b)=>{const w=e8(r,d);w[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=b})}return o}}},YJ=jJ;function e8(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 Vg(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,w=String(e.key),S=e8(n,e),C=(T,A)=>{T&&so(T,r,9,A)},y=(T,A)=>{const M=A[1];C(T,A),ft(T)?T.every(E=>E.length<=1)&&M():T.length<=1&&M()},x={mode:i,persisted:o,beforeEnter(T){let A=s;if(!n.isMounted)if(a)A=p||s;else return;T._leaveCb&&T._leaveCb(!0);const M=S[w];M&&af(e,M)&&M.el._leaveCb&&M.el._leaveCb(),C(A,[T])},enter(T){let A=l,M=u,E=c;if(!n.isMounted)if(a)A=g||l,M=m||u,E=b||c;else return;let I=!1;const L=T._enterCb=O=>{I||(I=!0,O?C(E,[T]):C(M,[T]),x.delayedLeave&&x.delayedLeave(),T._enterCb=void 0)};A?y(A,[T,L]):L()},leave(T,A){const M=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return A();C(f,[T]);let E=!1;const I=T._leaveCb=L=>{E||(E=!0,A(),L?C(v,[T]):C(h,[T]),T._leaveCb=void 0,S[M]===e&&delete S[M])};S[M]=e,d?y(d,[T,I]):I()},clone(T){return Vg(T,t,n,r)}};return x}function YS(e){if(ew(e))return e=_l(e),e.children=null,e}function SP(e){return ew(e)?e.children?e.children[0]:void 0:e}function zg(e,t){e.shapeFlag&6&&e.component?zg(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 NE(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===gt?(o.patchFlag&128&&a++,r=r.concat(NE(o.children,t,s))):(t||o.type!==Xa)&&r.push(s!=null?_l(o,{key:s}):o)}if(a>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function te(e,t){return At(e)?(()=>Ur({name:e.name},t,{setup:e}))():e}const tg=e=>!!e.type.__asyncLoader,ew=e=>e.type.__isKeepAlive;function qJ(e,t){n8(e,"a",t)}function t8(e,t){n8(e,"da",t)}function n8(e,t,n=ta){const r=e.__wdc||(e.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return e()});if(tw(t,r,n),n){let a=n.parent;for(;a&&a.parent;)ew(a.parent.vnode)&&XJ(r,t,n,a),a=a.parent}}function XJ(e,t,n,r){const a=tw(t,e,r,!0);Pl(()=>{wE(r[t],a)},n)}function tw(e,t,n=ta,r=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;vv(),$h(n);const s=so(t,n,e,o);return If(),pv(),s});return r?a.unshift(i):a.push(i),i}}const Dl=e=>(t,n=ta)=>(!Ug||e==="sp")&&tw(e,(...r)=>t(...r),n),nw=Dl("bm"),zt=Dl("m"),r8=Dl("bu"),Ll=Dl("u"),sr=Dl("bum"),Pl=Dl("um"),ZJ=Dl("sp"),JJ=Dl("rtg"),QJ=Dl("rtc");function eQ(e,t=ta){tw("ec",e,t)}const $E="components",tQ="directives";function Dt(e,t){return BE($E,e,!0,t)||e}const a8=Symbol.for("v-ndc");function Xt(e){return Mt(e)?BE($E,e,!1)||e:e||a8}function Hg(e){return BE(tQ,e)}function BE(e,t,n=!0,r=!1){const a=va||ta;if(a){const i=a.type;if(e===$E){const s=DQ(i,!1);if(s&&(s===t||s===co(t)||s===Jm(co(t))))return i}const o=CP(a[e]||i[e],t)||CP(a.appContext[e],t);return!o&&r?i:o}}function CP(e,t){return e&&(e[t]||e[co(t)]||e[Jm(co(t))])}function un(e,t,n,r){let a;const i=n&&n[r];if(ft(e)||Mt(e)){a=new Array(e.length);for(let o=0,s=e.length;o<s;o++)a[o]=t(e[o],o,void 0,i&&i[o])}else if(typeof e=="number"){a=new Array(e);for(let o=0;o<e;o++)a[o]=t(o+1,o,void 0,i&&i[o])}else if(Qt(e))if(e[Symbol.iterator])a=Array.from(e,(o,s)=>t(o,s,void 0,i&&i[s]));else{const o=Object.keys(e);a=new Array(o.length);for(let s=0,l=o.length;s<l;s++){const u=o[s];a[s]=t(e[u],u,s,i&&i[s])}}else a=[];return n&&(n[r]=a),a}function bl(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(ft(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 Ve(e,t,n={},r,a){if(va.isCE||va.parent&&tg(va.parent)&&va.parent.isCE)return t!=="default"&&(n.name=t),re("slot",n,r&&r());let i=e[t];i&&i._c&&(i._d=!1),N();const o=i&&i8(i(n)),s=Te(gt,{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 i8(e){return e.some(t=>fr(t)?!(t.type===Xa||t.type===gt&&!i8(t.children)):!0)?e:null}function nQ(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Ab(r)]=e[r];return n}const iT=e=>e?m8(e)?iw(e)||e.proxy:iT(e.parent):null,ng=Ur(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=>iT(e.parent),$root:e=>iT(e.root),$emit:e=>e.emit,$options:e=>FE(e),$forceUpdate:e=>e.f||(e.f=()=>RE(e.update)),$nextTick:e=>e.n||(e.n=pt.bind(e.proxy)),$watch:e=>KJ.bind(e)}),qS=(e,t)=>e!==Cr&&!e.__isScriptSetup&&fn(e,t),rQ={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(qS(r,t))return o[t]=1,r[t];if(a!==Cr&&fn(a,t))return o[t]=2,a[t];if((u=e.propsOptions[0])&&fn(u,t))return o[t]=3,i[t];if(n!==Cr&&fn(n,t))return o[t]=4,n[t];oT&&(o[t]=0)}}const c=ng[t];let f,d;if(c)return t==="$attrs"&&Si(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(n!==Cr&&fn(n,t))return o[t]=4,n[t];if(d=l.config.globalProperties,fn(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return qS(a,t)?(a[t]=n,!0):r!==Cr&&fn(r,t)?(r[t]=n,!0):fn(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!==Cr&&fn(e,o)||qS(t,o)||(s=i[0])&&fn(s,o)||fn(r,o)||fn(ng,o)||fn(a.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fn(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ka(){return o8().slots}function rd(){return o8().attrs}function o8(){const e=Nt();return e.setupContext||(e.setupContext=b8(e))}function xP(e){return ft(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let oT=!0;function aQ(e){const t=FE(e),n=e.proxy,r=e.ctx;oT=!1,t.beforeCreate&&TP(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:w,unmounted:S,render:C,renderTracked:y,renderTriggered:x,errorCaptured:T,serverPrefetch:A,expose:M,inheritAttrs:E,components:I,directives:L,filters:O}=t;if(u&&iQ(u,r,null),o)for(const $ in o){const V=o[$];At(V)&&(r[$]=V.bind(n))}if(a){const $=a.call(n,n);Qt($)&&(e.data=xn($))}if(oT=!0,i)for(const $ in i){const V=i[$],P=At(V)?V.bind(n,n):At(V.get)?V.get.bind(n,n):On,G=!At(V)&&At(V.set)?V.set.bind(n):On,j=R({get:P,set:G});Object.defineProperty(r,$,{enumerable:!0,configurable:!0,get:()=>j.value,set:J=>j.value=J})}if(s)for(const $ in s)s8(s[$],r,n,$);if(l){const $=At(l)?l.call(n):l;Reflect.ownKeys($).forEach(V=>{tn(V,$[V])})}c&&TP(c,e,"c");function F($,V){ft(V)?V.forEach(P=>$(P.bind(n))):V&&$(V.bind(n))}if(F(nw,f),F(zt,d),F(r8,h),F(Ll,v),F(qJ,p),F(t8,g),F(eQ,T),F(QJ,y),F(JJ,x),F(sr,b),F(Pl,S),F(ZJ,A),ft(M))if(M.length){const $=e.exposed||(e.exposed={});M.forEach(V=>{Object.defineProperty($,V,{get:()=>n[V],set:P=>n[V]=P})})}else e.exposed||(e.exposed={});C&&e.render===On&&(e.render=C),E!=null&&(e.inheritAttrs=E),I&&(e.components=I),L&&(e.directives=L)}function iQ(e,t,n=On){ft(e)&&(e=sT(e));for(const r in e){const a=e[r];let i;Qt(a)?"default"in a?i=ct(a.from||r,a.default,!0):i=ct(a.from||r):i=ct(a),Rn(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[r]=i}}function TP(e,t,n){so(ft(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function s8(e,t,n,r){const a=r.includes(".")?Z6(n,r):()=>n[r];if(Mt(e)){const i=t[e];At(i)&&ze(a,i)}else if(At(e))ze(a,e.bind(n));else if(Qt(e))if(ft(e))e.forEach(i=>s8(i,t,n,r));else{const i=At(e.handler)?e.handler.bind(n):t[e.handler];At(i)&&ze(a,i,e)}}function FE(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=>k1(l,u,o,!0)),k1(l,t,o)),Qt(t)&&i.set(t,l),l}function k1(e,t,n,r=!1){const{mixins:a,extends:i}=t;i&&k1(e,i,n,!0),a&&a.forEach(o=>k1(e,o,n,!0));for(const o in t)if(!(r&&o==="expose")){const s=oQ[o]||n&&n[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const oQ={data:kP,props:AP,emits:AP,methods:Vp,computed:Vp,beforeCreate:Ga,created:Ga,beforeMount:Ga,mounted:Ga,beforeUpdate:Ga,updated:Ga,beforeDestroy:Ga,beforeUnmount:Ga,destroyed:Ga,unmounted:Ga,activated:Ga,deactivated:Ga,errorCaptured:Ga,serverPrefetch:Ga,components:Vp,directives:Vp,watch:lQ,provide:kP,inject:sQ};function kP(e,t){return t?e?function(){return Ur(At(e)?e.call(this,this):e,At(t)?t.call(this,this):t)}:t:e}function sQ(e,t){return Vp(sT(e),sT(t))}function sT(e){if(ft(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ga(e,t){return e?[...new Set([].concat(e,t))]:t}function Vp(e,t){return e?Ur(Object.create(null),e,t):t}function AP(e,t){return e?ft(e)&&ft(t)?[...new Set([...e,...t])]:Ur(Object.create(null),xP(e),xP(t??{})):t}function lQ(e,t){if(!e)return t;if(!t)return e;const n=Ur(Object.create(null),e);for(const r in t)n[r]=Ga(e[r],t[r]);return n}function l8(){return{app:null,config:{isNativeTag:zZ,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 uQ=0;function cQ(e,t){return function(r,a=null){At(r)||(r=Ur({},r)),a!=null&&!Qt(a)&&(a=null);const i=l8(),o=new Set;let s=!1;const l=i.app={_uid:uQ++,_component:r,_props:a,_container:null,_context:i,_instance:null,version:OQ,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&At(u.install)?(o.add(u),u.install(l,...c)):At(u)&&(o.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,f){if(!s){const d=re(r,a);return d.appContext=i,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,iw(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){Wg=l;try{return u()}finally{Wg=null}}};return l}}let Wg=null;function tn(e,t){if(ta){let n=ta.provides;const r=ta.parent&&ta.parent.provides;r===n&&(n=ta.provides=Object.create(r)),n[e]=t}}function ct(e,t,n=!1){const r=ta||va;if(r||Wg){const a=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Wg._context.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&At(t)?t.call(r&&r.proxy):t}}function fQ(){return!!(ta||va||Wg)}function dQ(e,t,n,r=!1){const a={},i={};S1(i,rw,1),e.propsDefaults=Object.create(null),u8(e,t,a,i);for(const o in e.propsOptions[0])o in a||(a[o]=void 0);n?e.props=r?a:B6(a):e.type.props?e.props=a:e.props=i,e.attrs=i}function hQ(e,t,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=e,s=In(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(Q_(e.emitsOptions,d))continue;const h=t[d];if(l)if(fn(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const v=co(d);a[v]=lT(l,s,v,h,e,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{u8(e,t,a,i)&&(u=!0);let c;for(const f in s)(!t||!fn(t,f)&&((c=ec(f))===f||!fn(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(a[f]=lT(l,s,f,void 0,e,!0)):delete a[f]);if(i!==s)for(const f in i)(!t||!fn(t,f))&&(delete i[f],u=!0)}u&&yl(e,"set","$attrs")}function u8(e,t,n,r){const[a,i]=e.propsOptions;let o=!1,s;if(t)for(let l in t){if(kb(l))continue;const u=t[l];let c;a&&fn(a,c=co(l))?!i||!i.includes(c)?n[c]=u:(s||(s={}))[c]=u:Q_(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=In(n),u=s||Cr;for(let c=0;c<i.length;c++){const f=i[c];n[f]=lT(a,l,f,u[f],e,!fn(u,f))}}return o}function lT(e,t,n,r,a,i){const o=e[n];if(o!=null){const s=fn(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&At(l)){const{propsDefaults:u}=a;n in u?r=u[n]:($h(a),r=u[n]=l.call(null,t),If())}else r=l}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===ec(n))&&(r=!0))}return r}function c8(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(!At(e)){const c=f=>{l=!0;const[d,h]=c8(f,t,!0);Ur(o,d),h&&s.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Qt(e)&&r.set(e,mh),mh;if(ft(i))for(let c=0;c<i.length;c++){const f=co(i[c]);EP(f)&&(o[f]=Cr)}else if(i)for(const c in i){const f=co(c);if(EP(f)){const d=i[c],h=o[f]=ft(d)||At(d)?{type:d}:Ur({},d);if(h){const v=DP(Boolean,h.type),p=DP(String,h.type);h[0]=v>-1,h[1]=p<0||v<p,(v>-1||fn(h,"default"))&&s.push(f)}}}const u=[o,s];return Qt(e)&&r.set(e,u),u}function EP(e){return e[0]!=="$"}function MP(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function IP(e,t){return MP(e)===MP(t)}function DP(e,t){return ft(t)?t.findIndex(n=>IP(n,e)):At(t)&&IP(t,e)?0:-1}const f8=e=>e[0]==="_"||e==="$stable",VE=e=>ft(e)?e.map(Ss):[Ss(e)],vQ=(e,t,n)=>{if(t._n)return t;const r=fe((...a)=>VE(t(...a)),n);return r._c=!1,r},d8=(e,t,n)=>{const r=e._ctx;for(const a in e){if(f8(a))continue;const i=e[a];if(At(i))t[a]=vQ(a,i,r);else if(i!=null){const o=VE(i);t[a]=()=>o}}},h8=(e,t)=>{const n=VE(t);e.slots.default=()=>n},pQ=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=In(t),S1(t,"_",n)):d8(t,e.slots={})}else e.slots={},t&&h8(e,t);S1(e.slots,rw,1)},gQ=(e,t,n)=>{const{vnode:r,slots:a}=e;let i=!0,o=Cr;if(r.shapeFlag&32){const s=t._;s?n&&s===1?i=!1:(Ur(a,t),!n&&s===1&&delete a._):(i=!t.$stable,d8(t,a)),o=t}else t&&(h8(e,t),o={default:1});if(i)for(const s in a)!f8(s)&&!(s in o)&&delete a[s]};function uT(e,t,n,r,a=!1){if(ft(e)){e.forEach((d,h)=>uT(d,t&&(ft(t)?t[h]:t),n,r,a));return}if(tg(r)&&!a)return;const i=r.shapeFlag&4?iw(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===Cr?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(Mt(u)?(c[u]=null,fn(f,u)&&(f[u]=null)):Rn(u)&&(u.value=null)),At(l))Mu(l,s,12,[o,c]);else{const d=Mt(l),h=Rn(l);if(d||h){const v=()=>{if(e.f){const p=d?fn(f,l)?f[l]:c[l]:l.value;a?ft(p)&&wE(p,i):ft(p)?p.includes(i)||p.push(i):d?(c[l]=[i],fn(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,fn(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,vi(v,n)):v()}}}const vi=UJ;function mQ(e){return yQ(e)}function yQ(e,t){const n=eT();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=On,insertStaticContent:v}=e,p=(Y,ie,me,De=null,Be=null,Oe=null,de=!1,we=null,Se=!!ie.dynamicChildren)=>{if(Y===ie)return;Y&&!af(Y,ie)&&(De=ue(Y),J(Y,Be,Oe,!0),Y=null),ie.patchFlag===-2&&(Se=!1,ie.dynamicChildren=null);const{type:Ie,ref:Ee,shapeFlag:Ge}=ie;switch(Ie){case ad:g(Y,ie,me,De);break;case Xa:m(Y,ie,me,De);break;case XS:Y==null&&b(ie,me,De,de);break;case gt:I(Y,ie,me,De,Be,Oe,de,we,Se);break;default:Ge&1?C(Y,ie,me,De,Be,Oe,de,we,Se):Ge&6?L(Y,ie,me,De,Be,Oe,de,we,Se):(Ge&64||Ge&128)&&Ie.process(Y,ie,me,De,Be,Oe,de,we,Se,_e)}Ee!=null&&Be&&uT(Ee,Y&&Y.ref,Oe,ie||Y,!ie)},g=(Y,ie,me,De)=>{if(Y==null)r(ie.el=s(ie.children),me,De);else{const Be=ie.el=Y.el;ie.children!==Y.children&&u(Be,ie.children)}},m=(Y,ie,me,De)=>{Y==null?r(ie.el=l(ie.children||""),me,De):ie.el=Y.el},b=(Y,ie,me,De)=>{[Y.el,Y.anchor]=v(Y.children,ie,me,De,Y.el,Y.anchor)},w=({el:Y,anchor:ie},me,De)=>{let Be;for(;Y&&Y!==ie;)Be=d(Y),r(Y,me,De),Y=Be;r(ie,me,De)},S=({el:Y,anchor:ie})=>{let me;for(;Y&&Y!==ie;)me=d(Y),a(Y),Y=me;a(ie)},C=(Y,ie,me,De,Be,Oe,de,we,Se)=>{de=de||ie.type==="svg",Y==null?y(ie,me,De,Be,Oe,de,we,Se):A(Y,ie,Be,Oe,de,we,Se)},y=(Y,ie,me,De,Be,Oe,de,we)=>{let Se,Ie;const{type:Ee,props:Ge,shapeFlag:Ue,transition:oe,dirs:ke}=Y;if(Se=Y.el=o(Y.type,Oe,Ge&&Ge.is,Ge),Ue&8?c(Se,Y.children):Ue&16&&T(Y.children,Se,null,De,Be,Oe&&Ee!=="foreignObject",de,we),ke&&_c(Y,null,De,"created"),x(Se,Y,Y.scopeId,de,De),Ge){for(const st in Ge)st!=="value"&&!kb(st)&&i(Se,st,null,Ge[st],Oe,Y.children,De,Be,ce);"value"in Ge&&i(Se,"value",null,Ge.value),(Ie=Ge.onVnodeBeforeMount)&&hs(Ie,De,Y)}ke&&_c(Y,null,De,"beforeMount");const nt=(!Be||Be&&!Be.pendingBranch)&&oe&&!oe.persisted;nt&&oe.beforeEnter(Se),r(Se,ie,me),((Ie=Ge&&Ge.onVnodeMounted)||nt||ke)&&vi(()=>{Ie&&hs(Ie,De,Y),nt&&oe.enter(Se),ke&&_c(Y,null,De,"mounted")},Be)},x=(Y,ie,me,De,Be)=>{if(me&&h(Y,me),De)for(let Oe=0;Oe<De.length;Oe++)h(Y,De[Oe]);if(Be){let Oe=Be.subTree;if(ie===Oe){const de=Be.vnode;x(Y,de,de.scopeId,de.slotScopeIds,Be.parent)}}},T=(Y,ie,me,De,Be,Oe,de,we,Se=0)=>{for(let Ie=Se;Ie<Y.length;Ie++){const Ee=Y[Ie]=we?du(Y[Ie]):Ss(Y[Ie]);p(null,Ee,ie,me,De,Be,Oe,de,we)}},A=(Y,ie,me,De,Be,Oe,de)=>{const we=ie.el=Y.el;let{patchFlag:Se,dynamicChildren:Ie,dirs:Ee}=ie;Se|=Y.patchFlag&16;const Ge=Y.props||Cr,Ue=ie.props||Cr;let oe;me&&wc(me,!1),(oe=Ue.onVnodeBeforeUpdate)&&hs(oe,me,ie,Y),Ee&&_c(ie,Y,me,"beforeUpdate"),me&&wc(me,!0);const ke=Be&&ie.type!=="foreignObject";if(Ie?M(Y.dynamicChildren,Ie,we,me,De,ke,Oe):de||V(Y,ie,we,null,me,De,ke,Oe,!1),Se>0){if(Se&16)E(we,ie,Ge,Ue,me,De,Be);else if(Se&2&&Ge.class!==Ue.class&&i(we,"class",null,Ue.class,Be),Se&4&&i(we,"style",Ge.style,Ue.style,Be),Se&8){const nt=ie.dynamicProps;for(let st=0;st<nt.length;st++){const ut=nt[st],lt=Ge[ut],Me=Ue[ut];(Me!==lt||ut==="value")&&i(we,ut,lt,Me,Be,Y.children,me,De,ce)}}Se&1&&Y.children!==ie.children&&c(we,ie.children)}else!de&&Ie==null&&E(we,ie,Ge,Ue,me,De,Be);((oe=Ue.onVnodeUpdated)||Ee)&&vi(()=>{oe&&hs(oe,me,ie,Y),Ee&&_c(ie,Y,me,"updated")},De)},M=(Y,ie,me,De,Be,Oe,de)=>{for(let we=0;we<ie.length;we++){const Se=Y[we],Ie=ie[we],Ee=Se.el&&(Se.type===gt||!af(Se,Ie)||Se.shapeFlag&70)?f(Se.el):me;p(Se,Ie,Ee,null,De,Be,Oe,de,!0)}},E=(Y,ie,me,De,Be,Oe,de)=>{if(me!==De){if(me!==Cr)for(const we in me)!kb(we)&&!(we in De)&&i(Y,we,me[we],null,de,ie.children,Be,Oe,ce);for(const we in De){if(kb(we))continue;const Se=De[we],Ie=me[we];Se!==Ie&&we!=="value"&&i(Y,we,Ie,Se,de,ie.children,Be,Oe,ce)}"value"in De&&i(Y,"value",me.value,De.value)}},I=(Y,ie,me,De,Be,Oe,de,we,Se)=>{const Ie=ie.el=Y?Y.el:s(""),Ee=ie.anchor=Y?Y.anchor:s("");let{patchFlag:Ge,dynamicChildren:Ue,slotScopeIds:oe}=ie;oe&&(we=we?we.concat(oe):oe),Y==null?(r(Ie,me,De),r(Ee,me,De),T(ie.children,me,Ee,Be,Oe,de,we,Se)):Ge>0&&Ge&64&&Ue&&Y.dynamicChildren?(M(Y.dynamicChildren,Ue,me,Be,Oe,de,we),(ie.key!=null||Be&&ie===Be.subTree)&&zE(Y,ie,!0)):V(Y,ie,me,Ee,Be,Oe,de,we,Se)},L=(Y,ie,me,De,Be,Oe,de,we,Se)=>{ie.slotScopeIds=we,Y==null?ie.shapeFlag&512?Be.ctx.activate(ie,me,De,de,Se):O(ie,me,De,Be,Oe,de,Se):z(Y,ie,Se)},O=(Y,ie,me,De,Be,Oe,de)=>{const we=Y.component=AQ(Y,De,Be);if(ew(Y)&&(we.ctx.renderer=_e),EQ(we),we.asyncDep){if(Be&&Be.registerDep(we,F),!Y.el){const Se=we.subTree=re(Xa);m(null,Se,ie,me)}return}F(we,Y,ie,me,Be,Oe,de)},z=(Y,ie,me)=>{const De=ie.component=Y.component;if(HJ(Y,ie,me))if(De.asyncDep&&!De.asyncResolved){$(De,ie,me);return}else De.next=ie,NJ(De.update),De.update();else ie.el=Y.el,De.vnode=ie},F=(Y,ie,me,De,Be,Oe,de)=>{const we=()=>{if(Y.isMounted){let{next:Ee,bu:Ge,u:Ue,parent:oe,vnode:ke}=Y,nt=Ee,st;wc(Y,!1),Ee?(Ee.el=ke.el,$(Y,Ee,de)):Ee=ke,Ge&&Eb(Ge),(st=Ee.props&&Ee.props.onVnodeBeforeUpdate)&&hs(st,oe,Ee,ke),wc(Y,!0);const ut=jS(Y),lt=Y.subTree;Y.subTree=ut,p(lt,ut,f(lt.el),ue(lt),Y,Be,Oe),Ee.el=ut.el,nt===null&&WJ(Y,ut.el),Ue&&vi(Ue,Be),(st=Ee.props&&Ee.props.onVnodeUpdated)&&vi(()=>hs(st,oe,Ee,ke),Be)}else{let Ee;const{el:Ge,props:Ue}=ie,{bm:oe,m:ke,parent:nt}=Y,st=tg(ie);if(wc(Y,!1),oe&&Eb(oe),!st&&(Ee=Ue&&Ue.onVnodeBeforeMount)&&hs(Ee,nt,ie),wc(Y,!0),Ge&&pe){const ut=()=>{Y.subTree=jS(Y),pe(Ge,Y.subTree,Y,Be,null)};st?ie.type.__asyncLoader().then(()=>!Y.isUnmounted&&ut()):ut()}else{const ut=Y.subTree=jS(Y);p(null,ut,me,De,Y,Be,Oe),ie.el=ut.el}if(ke&&vi(ke,Be),!st&&(Ee=Ue&&Ue.onVnodeMounted)){const ut=ie;vi(()=>hs(Ee,nt,ut),Be)}(ie.shapeFlag&256||nt&&tg(nt.vnode)&&nt.vnode.shapeFlag&256)&&Y.a&&vi(Y.a,Be),Y.isMounted=!0,ie=me=De=null}},Se=Y.effect=new kE(we,()=>RE(Ie),Y.scope),Ie=Y.update=()=>Se.run();Ie.id=Y.uid,wc(Y,!0),Ie()},$=(Y,ie,me)=>{ie.component=Y;const De=Y.vnode.props;Y.vnode=ie,Y.next=null,hQ(Y,ie.props,De,me),gQ(Y,ie.children,me),vv(),_P(),pv()},V=(Y,ie,me,De,Be,Oe,de,we,Se=!1)=>{const Ie=Y&&Y.children,Ee=Y?Y.shapeFlag:0,Ge=ie.children,{patchFlag:Ue,shapeFlag:oe}=ie;if(Ue>0){if(Ue&128){G(Ie,Ge,me,De,Be,Oe,de,we,Se);return}else if(Ue&256){P(Ie,Ge,me,De,Be,Oe,de,we,Se);return}}oe&8?(Ee&16&&ce(Ie,Be,Oe),Ge!==Ie&&c(me,Ge)):Ee&16?oe&16?G(Ie,Ge,me,De,Be,Oe,de,we,Se):ce(Ie,Be,Oe,!0):(Ee&8&&c(me,""),oe&16&&T(Ge,me,De,Be,Oe,de,we,Se))},P=(Y,ie,me,De,Be,Oe,de,we,Se)=>{Y=Y||mh,ie=ie||mh;const Ie=Y.length,Ee=ie.length,Ge=Math.min(Ie,Ee);let Ue;for(Ue=0;Ue<Ge;Ue++){const oe=ie[Ue]=Se?du(ie[Ue]):Ss(ie[Ue]);p(Y[Ue],oe,me,null,Be,Oe,de,we,Se)}Ie>Ee?ce(Y,Be,Oe,!0,!1,Ge):T(ie,me,De,Be,Oe,de,we,Se,Ge)},G=(Y,ie,me,De,Be,Oe,de,we,Se)=>{let Ie=0;const Ee=ie.length;let Ge=Y.length-1,Ue=Ee-1;for(;Ie<=Ge&&Ie<=Ue;){const oe=Y[Ie],ke=ie[Ie]=Se?du(ie[Ie]):Ss(ie[Ie]);if(af(oe,ke))p(oe,ke,me,null,Be,Oe,de,we,Se);else break;Ie++}for(;Ie<=Ge&&Ie<=Ue;){const oe=Y[Ge],ke=ie[Ue]=Se?du(ie[Ue]):Ss(ie[Ue]);if(af(oe,ke))p(oe,ke,me,null,Be,Oe,de,we,Se);else break;Ge--,Ue--}if(Ie>Ge){if(Ie<=Ue){const oe=Ue+1,ke=oe<Ee?ie[oe].el:De;for(;Ie<=Ue;)p(null,ie[Ie]=Se?du(ie[Ie]):Ss(ie[Ie]),me,ke,Be,Oe,de,we,Se),Ie++}}else if(Ie>Ue)for(;Ie<=Ge;)J(Y[Ie],Be,Oe,!0),Ie++;else{const oe=Ie,ke=Ie,nt=new Map;for(Ie=ke;Ie<=Ue;Ie++){const se=ie[Ie]=Se?du(ie[Ie]):Ss(ie[Ie]);se.key!=null&&nt.set(se.key,Ie)}let st,ut=0;const lt=Ue-ke+1;let Me=!1,ye=0;const ge=new Array(lt);for(Ie=0;Ie<lt;Ie++)ge[Ie]=0;for(Ie=oe;Ie<=Ge;Ie++){const se=Y[Ie];if(ut>=lt){J(se,Be,Oe,!0);continue}let Qe;if(se.key!=null)Qe=nt.get(se.key);else for(st=ke;st<=Ue;st++)if(ge[st-ke]===0&&af(se,ie[st])){Qe=st;break}Qe===void 0?J(se,Be,Oe,!0):(ge[Qe-ke]=Ie+1,Qe>=ye?ye=Qe:Me=!0,p(se,ie[Qe],me,null,Be,Oe,de,we,Se),ut++)}const $e=Me?bQ(ge):mh;for(st=$e.length-1,Ie=lt-1;Ie>=0;Ie--){const se=ke+Ie,Qe=ie[se],wt=se+1<Ee?ie[se+1].el:De;ge[Ie]===0?p(null,Qe,me,wt,Be,Oe,de,we,Se):Me&&(st<0||Ie!==$e[st]?j(Qe,me,wt,2):st--)}}},j=(Y,ie,me,De,Be=null)=>{const{el:Oe,type:de,transition:we,children:Se,shapeFlag:Ie}=Y;if(Ie&6){j(Y.component.subTree,ie,me,De);return}if(Ie&128){Y.suspense.move(ie,me,De);return}if(Ie&64){de.move(Y,ie,me,_e);return}if(de===gt){r(Oe,ie,me);for(let Ge=0;Ge<Se.length;Ge++)j(Se[Ge],ie,me,De);r(Y.anchor,ie,me);return}if(de===XS){w(Y,ie,me);return}if(De!==2&&Ie&1&&we)if(De===0)we.beforeEnter(Oe),r(Oe,ie,me),vi(()=>we.enter(Oe),Be);else{const{leave:Ge,delayLeave:Ue,afterLeave:oe}=we,ke=()=>r(Oe,ie,me),nt=()=>{Ge(Oe,()=>{ke(),oe&&oe()})};Ue?Ue(Oe,ke,nt):nt()}else r(Oe,ie,me)},J=(Y,ie,me,De=!1,Be=!1)=>{const{type:Oe,props:de,ref:we,children:Se,dynamicChildren:Ie,shapeFlag:Ee,patchFlag:Ge,dirs:Ue}=Y;if(we!=null&&uT(we,null,me,Y,!0),Ee&256){ie.ctx.deactivate(Y);return}const oe=Ee&1&&Ue,ke=!tg(Y);let nt;if(ke&&(nt=de&&de.onVnodeBeforeUnmount)&&hs(nt,ie,Y),Ee&6)le(Y.component,me,De);else{if(Ee&128){Y.suspense.unmount(me,De);return}oe&&_c(Y,null,ie,"beforeUnmount"),Ee&64?Y.type.remove(Y,ie,me,Be,_e,De):Ie&&(Oe!==gt||Ge>0&&Ge&64)?ce(Ie,ie,me,!1,!0):(Oe===gt&&Ge&384||!Be&&Ee&16)&&ce(Se,ie,me),De&&ne(Y)}(ke&&(nt=de&&de.onVnodeUnmounted)||oe)&&vi(()=>{nt&&hs(nt,ie,Y),oe&&_c(Y,null,ie,"unmounted")},me)},ne=Y=>{const{type:ie,el:me,anchor:De,transition:Be}=Y;if(ie===gt){ve(me,De);return}if(ie===XS){S(Y);return}const Oe=()=>{a(me),Be&&!Be.persisted&&Be.afterLeave&&Be.afterLeave()};if(Y.shapeFlag&1&&Be&&!Be.persisted){const{leave:de,delayLeave:we}=Be,Se=()=>de(me,Oe);we?we(Y.el,Oe,Se):Se()}else Oe()},ve=(Y,ie)=>{let me;for(;Y!==ie;)me=d(Y),a(Y),Y=me;a(ie)},le=(Y,ie,me)=>{const{bum:De,scope:Be,update:Oe,subTree:de,um:we}=Y;De&&Eb(De),Be.stop(),Oe&&(Oe.active=!1,J(de,Y,ie,me)),we&&vi(we,ie),vi(()=>{Y.isUnmounted=!0},ie),ie&&ie.pendingBranch&&!ie.isUnmounted&&Y.asyncDep&&!Y.asyncResolved&&Y.suspenseId===ie.pendingId&&(ie.deps--,ie.deps===0&&ie.resolve())},ce=(Y,ie,me,De=!1,Be=!1,Oe=0)=>{for(let de=Oe;de<Y.length;de++)J(Y[de],ie,me,De,Be)},ue=Y=>Y.shapeFlag&6?ue(Y.component.subTree):Y.shapeFlag&128?Y.suspense.next():d(Y.anchor||Y.el),Q=(Y,ie,me)=>{Y==null?ie._vnode&&J(ie._vnode,null,null,!0):p(ie._vnode||null,Y,ie,null,null,null,me),_P(),j6(),ie._vnode=Y},_e={p,um:J,m:j,r:ne,mt:O,mc:T,pc:V,pbc:M,n:ue,o:e};let Pe,pe;return t&&([Pe,pe]=t(_e)),{render:Q,hydrate:Pe,createApp:cQ(Q,Pe)}}function wc({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function zE(e,t,n=!1){const r=e.children,a=t.children;if(ft(r)&&ft(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]=du(a[i]),s.el=o.el),n||zE(o,s)),s.type===ad&&(s.el=o.el)}}function bQ(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 _Q=e=>e.__isTeleport,rg=e=>e&&(e.disabled||e.disabled===""),LP=e=>typeof SVGElement<"u"&&e instanceof SVGElement,cT=(e,t)=>{const n=e&&e.to;return Mt(n)?t?t(n):null:n},wQ={__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=rg(t.props);let{shapeFlag:b,children:w,dynamicChildren:S}=t;if(e==null){const C=t.el=p(""),y=t.anchor=p("");h(C,n,r),h(y,n,r);const x=t.target=cT(t.props,v),T=t.targetAnchor=p("");x&&(h(T,x),o=o||LP(x));const A=(M,E)=>{b&16&&c(w,M,E,a,i,o,s,l)};m?A(n,y):x&&A(x,T)}else{t.el=e.el;const C=t.anchor=e.anchor,y=t.target=e.target,x=t.targetAnchor=e.targetAnchor,T=rg(e.props),A=T?n:y,M=T?C:x;if(o=o||LP(y),S?(d(e.dynamicChildren,S,A,a,i,o,s),zE(e,t,!0)):l||f(e,t,A,M,a,i,o,s,!1),m)T||n0(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=cT(t.props,v);E&&n0(t,E,null,u,0)}else T&&n0(t,y,x,u,1)}v8(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||!rg(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:n0,hydrate:SQ};function n0(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||rg(c))&&l&16)for(let d=0;d<u.length;d++)a(u[d],t,n,2);f&&r(s,t,n)}function SQ(e,t,n,r,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=t.target=cT(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(rg(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)}v8(t)}return t.anchor&&o(t.anchor)}const Qm=wQ;function v8(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 gt=Symbol.for("v-fgt"),ad=Symbol.for("v-txt"),Xa=Symbol.for("v-cmt"),XS=Symbol.for("v-stc"),ag=[];let zo=null;function N(e=!1){ag.push(zo=e?null:[])}function CQ(){ag.pop(),zo=ag[ag.length-1]||null}let Gg=1;function PP(e){Gg+=e}function p8(e){return e.dynamicChildren=Gg>0?zo||mh:null,CQ(),Gg>0&&zo&&zo.push(e),e}function X(e,t,n,r,a,i){return p8(ee(e,t,n,r,a,i,!0))}function Te(e,t,n,r,a){return p8(re(e,t,n,r,a,!0))}function fr(e){return e?e.__v_isVNode===!0:!1}function af(e,t){return e.type===t.type&&e.key===t.key}const rw="__vInternal",g8=({key:e})=>e??null,Mb=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Mt(e)||Rn(e)||At(e)?{i:va,r:e,k:t,f:!!n}:e:null);function ee(e,t=null,n=null,r=0,a=null,i=e===gt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&g8(t),ref:t&&Mb(t),scopeId:X6,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:va};return s?(HE(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=Mt(n)?8:16),Gg>0&&!o&&zo&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&zo.push(l),l}const re=xQ;function xQ(e,t=null,n=null,r=0,a=null,i=!1){if((!e||e===a8)&&(e=Xa),fr(e)){const s=_l(e,t,!0);return n&&HE(s,n),Gg>0&&!i&&zo&&(s.shapeFlag&6?zo[zo.indexOf(e)]=s:zo.push(s)),s.patchFlag|=-2,s}if(LQ(e)&&(e=e.__vccOpts),t){t=aw(t);let{class:s,style:l}=t;s&&!Mt(s)&&(t.class=H(s)),Qt(l)&&(F6(l)&&!ft(l)&&(l=Ur({},l)),t.style=mt(l))}const o=Mt(e)?1:GJ(e)?128:_Q(e)?64:Qt(e)?4:At(e)?2:0;return ee(e,t,n,r,a,o,i,!0)}function aw(e){return e?F6(e)||rw in e?Ur({},e):e:null}function _l(e,t,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=e,s=t?qt(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&g8(s),ref:t&&t.ref?n&&a?ft(a)?a.concat(Mb(t)):[a,Mb(t)]:Mb(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!==gt?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&&_l(e.ssContent),ssFallback:e.ssFallback&&_l(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Cn(e=" ",t=0){return re(ad,null,e,t)}function be(e="",t=!1){return t?(N(),Te(Xa,null,e)):re(Xa,null,e)}function Ss(e){return e==null||typeof e=="boolean"?re(Xa):ft(e)?re(gt,null,e.slice()):typeof e=="object"?du(e):re(ad,null,String(e))}function du(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:_l(e)}function HE(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ft(t))n=16;else if(typeof t=="object")if(r&65){const a=t.default;a&&(a._c&&(a._d=!1),HE(e,a()),a._c&&(a._d=!0));return}else{n=32;const a=t._;!a&&!(rw in t)?t._ctx=va:a===3&&va&&(va.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else At(t)?(t={default:t,_ctx:va},n=32):(t=String(t),r&64?(n=16,t=[Cn(t)]):n=8);e.children=t,e.shapeFlag|=n}function qt(...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=H([t.class,r.class]));else if(a==="style")t.style=mt([t.style,r.style]);else if(j_(a)){const i=t[a],o=r[a];o&&i!==o&&!(ft(i)&&i.includes(o))&&(t[a]=i?[].concat(i,o):o)}else a!==""&&(t[a]=r[a])}return t}function hs(e,t,n,r=null){so(e,t,7,[n,r])}const TQ=l8();let kQ=0;function AQ(e,t,n){const r=e.type,a=(t?t.appContext:e.appContext)||TQ,i={uid:kQ++,vnode:e,type:r,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new A6(!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:c8(r,a),emitsOptions:q6(r,a),emit:null,emitted:null,propsDefaults:Cr,inheritAttrs:r.inheritAttrs,ctx:Cr,data:Cr,props:Cr,attrs:Cr,slots:Cr,refs:Cr,setupState:Cr,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=FJ.bind(null,i),e.ce&&e.ce(i),i}let ta=null;const Nt=()=>ta||va;let WE,xd,RP="__VUE_INSTANCE_SETTERS__";(xd=eT()[RP])||(xd=eT()[RP]=[]),xd.push(e=>ta=e),WE=e=>{xd.length>1?xd.forEach(t=>t(e)):xd[0](e)};const $h=e=>{WE(e),e.scope.on()},If=()=>{ta&&ta.scope.off(),WE(null)};function m8(e){return e.vnode.shapeFlag&4}let Ug=!1;function EQ(e,t=!1){Ug=t;const{props:n,children:r}=e.vnode,a=m8(e);dQ(e,n,a,t),pQ(e,r);const i=a?MQ(e,t):void 0;return Ug=!1,i}function MQ(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=vl(new Proxy(e.ctx,rQ));const{setup:r}=n;if(r){const a=e.setupContext=r.length>1?b8(e):null;$h(e),vv();const i=Mu(r,e,0,[e.props,a]);if(pv(),If(),Og(i)){if(i.then(If,If),t)return i.then(o=>{OP(e,o,t)}).catch(o=>{J_(o,e,0)});e.asyncDep=i}else OP(e,i,t)}else y8(e,t)}function OP(e,t,n){At(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Qt(t)&&(e.setupState=H6(t)),y8(e,n)}let NP;function y8(e,t,n){const r=e.type;if(!e.render){if(!t&&NP&&!r.render){const a=r.template||FE(e).template;if(a){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=r,u=Ur(Ur({isCustomElement:i,delimiters:s},o),l);r.render=NP(a,u)}}e.render=r.render||On}$h(e),vv(),aQ(e),pv(),If()}function IQ(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Si(e,"get","$attrs"),t[n]}}))}function b8(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return IQ(e)},slots:e.slots,emit:e.emit,expose:t}}function iw(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(H6(vl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in ng)return ng[n](e)},has(t,n){return n in t||n in ng}}))}function DQ(e,t=!0){return At(e)?e.displayName||e.name:e.name||t&&e.__name}function LQ(e){return At(e)&&"__vccOpts"in e}const R=(e,t)=>G6(e,t,Ug);function bt(e,t,n){const r=arguments.length;return r===2?Qt(t)&&!ft(t)?fr(t)?re(e,null,[t]):re(e,t):re(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&fr(n)&&(n=[n]),re(e,t,n))}const PQ=Symbol.for("v-scx"),RQ=()=>ct(PQ),OQ="3.3.4",NQ="http://www.w3.org/2000/svg",of=typeof document<"u"?document:null,$P=of&&of.createElement("template"),$Q={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?of.createElementNS(NQ,e):of.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:e=>of.createTextNode(e),createComment:e=>of.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>of.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{$P.innerHTML=r?`<svg>${e}</svg>`:e;const s=$P.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 BQ(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 FQ(e,t,n){const r=e.style,a=Mt(n);if(n&&!a){if(t&&!Mt(t))for(const i in t)n[i]==null&&fT(r,i,"");for(const i in n)fT(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 BP=/\s*!important$/;function fT(e,t,n){if(ft(n))n.forEach(r=>fT(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=VQ(e,t);BP.test(n)?e.setProperty(ec(r),n.replace(BP,""),"important"):e[r]=n}}const FP=["Webkit","Moz","ms"],ZS={};function VQ(e,t){const n=ZS[t];if(n)return n;let r=co(t);if(r!=="filter"&&r in e)return ZS[t]=r;r=Jm(r);for(let a=0;a<FP.length;a++){const i=FP[a]+r;if(i in e)return ZS[t]=i}return t}const VP="http://www.w3.org/1999/xlink";function zQ(e,t,n,r,a){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(VP,t.slice(6,t.length)):e.setAttributeNS(VP,t,n);else{const i=JZ(t);n==null||i&&!x6(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function HQ(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=x6(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function gu(e,t,n,r){e.addEventListener(t,n,r)}function WQ(e,t,n,r){e.removeEventListener(t,n,r)}function GQ(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]=UQ(t);if(r){const u=i[t]=YQ(r,a);gu(e,s,u,l)}else o&&(WQ(e,s,o,l),i[t]=void 0)}}const zP=/(?:Once|Passive|Capture)$/;function UQ(e){let t;if(zP.test(e)){t={};let r;for(;r=e.match(zP);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ec(e.slice(2)),t]}let JS=0;const KQ=Promise.resolve(),jQ=()=>JS||(KQ.then(()=>JS=0),JS=Date.now());function YQ(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;so(qQ(r,n.value),t,5,[r])};return n.value=e,n.attached=jQ(),n}function qQ(e,t){if(ft(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 HP=/^on[a-z]/,XQ=(e,t,n,r,a=!1,i,o,s,l)=>{t==="class"?BQ(e,r,a):t==="style"?FQ(e,n,r):j_(t)?_E(t)||GQ(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ZQ(e,t,r,a))?HQ(e,t,r,i,o,s,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),zQ(e,t,r,a))};function ZQ(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&HP.test(t)&&At(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||HP.test(t)&&Mt(n)?!1:t in e}const jl="transition",ep="animation",Mr=(e,{slots:t})=>bt(YJ,w8(e),t);Mr.displayName="Transition";const _8={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},JQ=Mr.props=Ur({},Q6,_8),Sc=(e,t=[])=>{ft(e)?e.forEach(n=>n(...t)):e&&e(...t)},WP=e=>e?ft(e)?e.some(t=>t.length>1):e.length>1:!1;function w8(e){const t={};for(const I in e)I in _8||(t[I]=e[I]);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=QQ(a),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:b,onEnterCancelled:w,onLeave:S,onLeaveCancelled:C,onBeforeAppear:y=m,onAppear:x=b,onAppearCancelled:T=w}=t,A=(I,L,O)=>{iu(I,L?c:s),iu(I,L?u:o),O&&O()},M=(I,L)=>{I._isLeaving=!1,iu(I,f),iu(I,h),iu(I,d),L&&L()},E=I=>(L,O)=>{const z=I?x:b,F=()=>A(L,I,O);Sc(z,[L,F]),GP(()=>{iu(L,I?l:i),Qs(L,I?c:s),WP(z)||UP(L,r,p,F)})};return Ur(t,{onBeforeEnter(I){Sc(m,[I]),Qs(I,i),Qs(I,o)},onBeforeAppear(I){Sc(y,[I]),Qs(I,l),Qs(I,u)},onEnter:E(!1),onAppear:E(!0),onLeave(I,L){I._isLeaving=!0;const O=()=>M(I,L);Qs(I,f),C8(),Qs(I,d),GP(()=>{I._isLeaving&&(iu(I,f),Qs(I,h),WP(S)||UP(I,r,g,O))}),Sc(S,[I,O])},onEnterCancelled(I){A(I,!1),Sc(w,[I])},onAppearCancelled(I){A(I,!0),Sc(T,[I])},onLeaveCancelled(I){M(I),Sc(C,[I])}})}function QQ(e){if(e==null)return null;if(Qt(e))return[QS(e.enter),QS(e.leave)];{const t=QS(e);return[t,t]}}function QS(e){return KZ(e)}function Qs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function iu(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 GP(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let eee=0;function UP(e,t,n,r){const a=e._endId=++eee,i=()=>{a===e._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=S8(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 S8(e,t){const n=window.getComputedStyle(e),r=v=>(n[v]||"").split(", "),a=r(`${jl}Delay`),i=r(`${jl}Duration`),o=KP(a,i),s=r(`${ep}Delay`),l=r(`${ep}Duration`),u=KP(s,l);let c=null,f=0,d=0;t===jl?o>0&&(c=jl,f=o,d=i.length):t===ep?u>0&&(c=ep,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?jl:ep:null,d=c?c===jl?i.length:l.length:0);const h=c===jl&&/\b(transform|all)(,|$)/.test(r(`${jl}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function KP(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>jP(n)+jP(e[r])))}function jP(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function C8(){return document.body.offsetHeight}const x8=new WeakMap,T8=new WeakMap,k8={name:"TransitionGroup",props:Ur({},JQ,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Nt(),r=J6();let a,i;return Ll(()=>{if(!a.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!iee(a[0].el,n.vnode.el,o))return;a.forEach(nee),a.forEach(ree);const s=a.filter(aee);C8(),s.forEach(l=>{const u=l.el,c=u.style;Qs(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,iu(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=In(e),s=w8(o);let l=o.tag||gt;a=i,i=t.default?NE(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&zg(c,Vg(c,s,r,n))}if(a)for(let u=0;u<a.length;u++){const c=a[u];zg(c,Vg(c,s,r,n)),x8.set(c,c.el.getBoundingClientRect())}return re(l,null,i)}}},tee=e=>delete e.mode;k8.props;const A8=k8;function nee(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function ree(e){T8.set(e,e.el.getBoundingClientRect())}function aee(e){const t=x8.get(e),n=T8.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 iee(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}=S8(r);return a.removeChild(r),i}const Bh=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ft(t)?n=>Eb(t,n):t};function oee(e){e.target.composing=!0}function YP(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const GE={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e._assign=Bh(a);const i=r||a.props&&a.props.type==="number";gu(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;n&&(s=s.trim()),i&&(s=Q2(s)),e._assign(s)}),n&&gu(e,"change",()=>{e.value=e.value.trim()}),t||(gu(e,"compositionstart",oee),gu(e,"compositionend",YP),gu(e,"change",YP))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},i){if(e._assign=Bh(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(a||e.type==="number")&&Q2(e.value)===t))return;const o=t??"";e.value!==o&&(e.value=o)}},A1={deep:!0,created(e,t,n){e._assign=Bh(n),gu(e,"change",()=>{const r=e._modelValue,a=M8(e),i=e.checked,o=e._assign;if(ft(r)){const s=T6(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(Y_(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(I8(e,i))})},mounted:qP,beforeUpdate(e,t,n){e._assign=Bh(n),qP(e,t,n)}};function qP(e,{value:t,oldValue:n},r){e._modelValue=t,ft(t)?e.checked=T6(t,r.props.value)>-1:Y_(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Oh(t,I8(e,!0)))}const E8={created(e,{value:t},n){e.checked=Oh(t,n.props.value),e._assign=Bh(n),gu(e,"change",()=>{e._assign(M8(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Bh(r),t!==n&&(e.checked=Oh(t,r.props.value))}};function M8(e){return"_value"in e?e._value:e.value}function I8(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const see=["ctrl","shift","alt","meta"],lee={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)=>see.some(n=>e[`${n}Key`]&&!t.includes(n))},xt=(e,t)=>(n,...r)=>{for(let a=0;a<t.length;a++){const i=lee[t[a]];if(i&&i(n,t))return}return e(n,...r)},uee={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},yn=(e,t)=>n=>{if(!("key"in n))return;const r=ec(n.key);if(t.some(a=>a===r||uee[a]===r))return e(n)},Sn={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tp(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),tp(e,!0),r.enter(e)):r.leave(e,()=>{tp(e,!1)}):tp(e,t))},beforeUnmount(e,{value:t}){tp(e,t)}};function tp(e,t){e.style.display=t?e._vod:"none"}const cee=Ur({patchProp:XQ},$Q);let XP;function D8(){return XP||(XP=mQ(cee))}const Fh=(...e)=>{D8().render(...e)},L8=(...e)=>{const t=D8().createApp(...e),{mount:n}=t;return t.mount=r=>{const a=fee(r);if(!a)return;const i=t._component;!At(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 fee(e){return Mt(e)?document.querySelector(e):e}const dee=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},hee={};function vee(e,t){const n=Dt("router-view");return N(),Te(n)}const pee=dee(hee,[["render",vee]]),gee="modulepreload",mee=function(e,t){return new URL(e,t).href},ZP={},r0=function(t,n,r){if(!n||n.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=mee(i,r),i in ZP)return;ZP[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":gee,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 P8=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",mv=e=>P8?Symbol(e):"_vr_"+e,yee=mv("rvlm"),JP=mv("rvd"),ow=mv("r"),R8=mv("rl"),dT=mv("rvl"),Jd=typeof window<"u";function bee(e){return e.__esModule||P8&&e[Symbol.toStringTag]==="Module"}const hr=Object.assign;function eC(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 ig=()=>{},_ee=/\/$/,wee=e=>e.replace(_ee,"");function tC(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=Tee(r??t,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function See(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function QP(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Cee(e,t,n){const r=t.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&Vh(t.matched[r],n.matched[a])&&O8(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Vh(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function O8(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!xee(e[n],t[n]))return!1;return!0}function xee(e,t){return Array.isArray(e)?eR(e,t):Array.isArray(t)?eR(t,e):e===t}function eR(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Tee(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 Kg;(function(e){e.pop="pop",e.push="push"})(Kg||(Kg={}));var og;(function(e){e.back="back",e.forward="forward",e.unknown=""})(og||(og={}));function kee(e){if(!e)if(Jd){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),wee(e)}const Aee=/^[^#]+#/;function Eee(e,t){return e.replace(Aee,"#")+t}function Mee(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 sw=()=>({left:window.pageXOffset,top:window.pageYOffset});function Iee(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=Mee(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 tR(e,t){return(history.state?history.state.position-t:-1)+e}const hT=new Map;function Dee(e,t){hT.set(e,t)}function Lee(e){const t=hT.get(e);return hT.delete(e),t}let Pee=()=>location.protocol+"//"+location.host;function N8(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),QP(l,"")}return QP(n,e)+r+a}function Ree(e,t,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const h=N8(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:Kg.pop,direction:g?g>0?og.forward:og.back:og.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(hr({},d.state,{scroll:sw()}),"")}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 nR(e,t,n,r=!1,a=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:a?sw():null}}function Oee(e){const{history:t,location:n}=window,r={value:N8(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:Pee()+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=hr({},t.state,nR(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=hr({},a.value,t.state,{forward:l,scroll:sw()});i(c.current,c,!0);const f=hr({},nR(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 Nee(e){e=kee(e);const t=Oee(e),n=Ree(e,t.state,t.location,t.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=hr({location:"",base:e,go:r,createHref:Eee.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 $ee(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Nee(e)}function Bee(e){return typeof e=="string"||e&&typeof e=="object"}function $8(e){return typeof e=="string"||typeof e=="symbol"}const Yl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},B8=mv("nf");var rR;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(rR||(rR={}));function zh(e,t){return hr(new Error,{type:e,[B8]:!0},t)}function ql(e,t){return e instanceof Error&&B8 in e&&(t==null||!!(e.type&t))}const aR="[^/]+?",Fee={sensitive:!1,strict:!1,start:!0,end:!0},Vee=/[.+*?^${}()[\]/\\]/g;function zee(e,t){const n=hr({},Fee,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(Vee,"\\$&"),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||aR;if(b!==aR){h+=10;try{new RegExp(`(${b})`)}catch(S){throw new Error(`Invalid custom RegExp for param "${v}" (${b}): `+S.message)}}let w=p?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;f||(w=g&&u.length<2?`(?:/${w})`:"/"+w),g&&(w+="?"),a+=w,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 Hee(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 Wee(e,t){let n=0;const r=e.score,a=t.score;for(;n<r.length&&n<a.length;){const i=Hee(r[n],a[n]);if(i)return i;n++}if(Math.abs(a.length-r.length)===1){if(iR(r))return 1;if(iR(a))return-1}return a.length-r.length}function iR(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Gee={type:0,value:""},Uee=/[a-zA-Z0-9_]/;function Kee(e){if(!e)return[[]];if(e==="/")return[[Gee]];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:Uee.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 jee(e,t,n){const r=zee(Kee(e.path),n),a=hr(r,{record:e,parent:t,children:[],alias:[]});return t&&!a.record.aliasOf==!t.record.aliasOf&&t.children.push(a),a}function Yee(e,t){const n=[],r=new Map;t=sR({strict:!1,end:!0,sensitive:!1},t);function a(c){return r.get(c)}function i(c,f,d){const h=!d,v=Xee(c);v.aliasOf=d&&d.record;const p=sR(t,c),g=[v];if("alias"in c){const w=typeof c.alias=="string"?[c.alias]:c.alias;for(const S of w)g.push(hr({},v,{components:d?d.record.components:v.components,path:S,aliasOf:d?d.record:v}))}let m,b;for(const w of g){const{path:S}=w;if(f&&S[0]!=="/"){const C=f.record.path,y=C[C.length-1]==="/"?"":"/";w.path=f.record.path+(S&&y+S)}if(m=jee(w,f,p),d?d.alias.push(m):(b=b||m,b!==m&&b.alias.push(m),h&&c.name&&!oR(m)&&o(c.name)),"children"in v){const C=v.children;for(let y=0;y<C.length;y++)i(C[y],m,d&&d.children[y])}d=d||m,l(m)}return b?()=>{o(b)}:ig}function o(c){if($8(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&&Wee(c,n[f])>=0&&(c.record.path!==n[f].record.path||!F8(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!oR(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 zh(1,{location:c});p=d.record.name,h=hr(qee(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 zh(1,{location:c,currentLocation:f});p=d.record.name,h=hr({},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:Jee(g)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function qee(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Xee(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Zee(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function Zee(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 oR(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Jee(e){return e.reduce((t,n)=>hr(t,n.meta),{})}function sR(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function F8(e,t){return t.children.some(n=>n===e||F8(e,n))}const V8=/#/g,Qee=/&/g,ete=/\//g,tte=/=/g,nte=/\?/g,z8=/\+/g,rte=/%5B/g,ate=/%5D/g,H8=/%5E/g,ite=/%60/g,W8=/%7B/g,ote=/%7C/g,G8=/%7D/g,ste=/%20/g;function UE(e){return encodeURI(""+e).replace(ote,"|").replace(rte,"[").replace(ate,"]")}function lte(e){return UE(e).replace(W8,"{").replace(G8,"}").replace(H8,"^")}function vT(e){return UE(e).replace(z8,"%2B").replace(ste,"+").replace(V8,"%23").replace(Qee,"%26").replace(ite,"`").replace(W8,"{").replace(G8,"}").replace(H8,"^")}function ute(e){return vT(e).replace(tte,"%3D")}function cte(e){return UE(e).replace(V8,"%23").replace(nte,"%3F")}function fte(e){return e==null?"":cte(e).replace(ete,"%2F")}function E1(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function dte(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(z8," "),o=i.indexOf("="),s=E1(o<0?i:i.slice(0,o)),l=o<0?null:E1(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 lR(e){let t="";for(let n in e){const r=e[n];if(n=ute(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Array.isArray(r)?r.map(i=>i&&vT(i)):[r&&vT(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function hte(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 np(){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 hu(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(zh(4,{from:n,to:t})):f instanceof Error?s(f):Bee(f)?s(zh(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 nC(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(vte(s)){const u=(s.__vccOpts||s)[t];u&&a.push(hu(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=bee(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&hu(d,n,r,i,o)()}))}}return a}function vte(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function uR(e){const t=ct(ow),n=ct(R8),r=R(()=>t.resolve(_(e.to))),a=R(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(Vh.bind(null,c));if(d>-1)return d;const h=cR(l[u-2]);return u>1&&cR(c)===h&&f[f.length-1].path!==h?f.findIndex(Vh.bind(null,l[u-2])):d}),i=R(()=>a.value>-1&&yte(n.params,r.value.params)),o=R(()=>a.value>-1&&a.value===n.matched.length-1&&O8(n.params,r.value.params));function s(l={}){return mte(l)?t[_(e.replace)?"replace":"push"](_(e.to)).catch(ig):Promise.resolve()}return{route:r,href:R(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const pte=te({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:uR,setup(e,{slots:t}){const n=xn(uR(e)),{options:r}=ct(ow),a=R(()=>({[fR(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[fR(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:bt("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),gte=pte;function mte(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 yte(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 cR(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fR=(e,t,n)=>e??t??n,bte=te({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=ct(dT),a=R(()=>e.route||r.value),i=ct(JP,0),o=R(()=>a.value.matched[i]);tn(JP,i+1),tn(yee,o),tn(dT,a);const s=U();return ze(()=>[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||!Vh(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 dR(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=bt(c,hr({},h,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[f]=null)},ref:s}));return dR(n.default,{Component:p,route:l})||p}}});function dR(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const _te=bte;function wte(e){const t=Yee(e.routes,e),n=e.parseQuery||dte,r=e.stringifyQuery||lR,a=e.history,i=np(),o=np(),s=np(),l=Wn(Yl);let u=Yl;Jd&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=eC.bind(null,le=>""+le),f=eC.bind(null,fte),d=eC.bind(null,E1);function h(le,ce){let ue,Q;return $8(le)?(ue=t.getRecordMatcher(le),Q=ce):Q=le,t.addRoute(Q,ue)}function v(le){const ce=t.getRecordMatcher(le);ce&&t.removeRoute(ce)}function p(){return t.getRoutes().map(le=>le.record)}function g(le){return!!t.getRecordMatcher(le)}function m(le,ce){if(ce=hr({},ce||l.value),typeof le=="string"){const Y=tC(n,le,ce.path),ie=t.resolve({path:Y.path},ce),me=a.createHref(Y.fullPath);return hr(Y,ie,{params:d(ie.params),hash:E1(Y.hash),redirectedFrom:void 0,href:me})}let ue;if("path"in le)ue=hr({},le,{path:tC(n,le.path,ce.path).path});else{const Y=hr({},le.params);for(const ie in Y)Y[ie]==null&&delete Y[ie];ue=hr({},le,{params:f(le.params)}),ce.params=f(ce.params)}const Q=t.resolve(ue,ce),_e=le.hash||"";Q.params=c(d(Q.params));const Pe=See(r,hr({},le,{hash:lte(_e),path:Q.path})),pe=a.createHref(Pe);return hr({fullPath:Pe,hash:_e,query:r===lR?hte(le.query):le.query||{}},Q,{redirectedFrom:void 0,href:pe})}function b(le){return typeof le=="string"?tC(n,le,l.value.path):hr({},le)}function w(le,ce){if(u!==le)return zh(8,{from:ce,to:le})}function S(le){return x(le)}function C(le){return S(hr(b(le),{replace:!0}))}function y(le){const ce=le.matched[le.matched.length-1];if(ce&&ce.redirect){const{redirect:ue}=ce;let Q=typeof ue=="function"?ue(le):ue;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=b(Q):{path:Q},Q.params={}),hr({query:le.query,hash:le.hash,params:le.params},Q)}}function x(le,ce){const ue=u=m(le),Q=l.value,_e=le.state,Pe=le.force,pe=le.replace===!0,Y=y(ue);if(Y)return x(hr(b(Y),{state:_e,force:Pe,replace:pe}),ce||ue);const ie=ue;ie.redirectedFrom=ce;let me;return!Pe&&Cee(r,Q,ue)&&(me=zh(16,{to:ie,from:Q}),G(Q,Q,!0,!1)),(me?Promise.resolve(me):A(ie,Q)).catch(De=>ql(De)?ql(De,2)?De:P(De):$(De,ie,Q)).then(De=>{if(De){if(ql(De,2))return x(hr(b(De.to),{state:_e,force:Pe,replace:pe}),ce||ie)}else De=E(ie,Q,!0,pe,_e);return M(ie,Q,De),De})}function T(le,ce){const ue=w(le,ce);return ue?Promise.reject(ue):Promise.resolve()}function A(le,ce){let ue;const[Q,_e,Pe]=Ste(le,ce);ue=nC(Q.reverse(),"beforeRouteLeave",le,ce);for(const Y of Q)Y.leaveGuards.forEach(ie=>{ue.push(hu(ie,le,ce))});const pe=T.bind(null,le,ce);return ue.push(pe),Td(ue).then(()=>{ue=[];for(const Y of i.list())ue.push(hu(Y,le,ce));return ue.push(pe),Td(ue)}).then(()=>{ue=nC(_e,"beforeRouteUpdate",le,ce);for(const Y of _e)Y.updateGuards.forEach(ie=>{ue.push(hu(ie,le,ce))});return ue.push(pe),Td(ue)}).then(()=>{ue=[];for(const Y of le.matched)if(Y.beforeEnter&&!ce.matched.includes(Y))if(Array.isArray(Y.beforeEnter))for(const ie of Y.beforeEnter)ue.push(hu(ie,le,ce));else ue.push(hu(Y.beforeEnter,le,ce));return ue.push(pe),Td(ue)}).then(()=>(le.matched.forEach(Y=>Y.enterCallbacks={}),ue=nC(Pe,"beforeRouteEnter",le,ce),ue.push(pe),Td(ue))).then(()=>{ue=[];for(const Y of o.list())ue.push(hu(Y,le,ce));return ue.push(pe),Td(ue)}).catch(Y=>ql(Y,8)?Y:Promise.reject(Y))}function M(le,ce,ue){for(const Q of s.list())Q(le,ce,ue)}function E(le,ce,ue,Q,_e){const Pe=w(le,ce);if(Pe)return Pe;const pe=ce===Yl,Y=Jd?history.state:{};ue&&(Q||pe?a.replace(le.fullPath,hr({scroll:pe&&Y&&Y.scroll},_e)):a.push(le.fullPath,_e)),l.value=le,G(le,ce,ue,pe),P()}let I;function L(){I||(I=a.listen((le,ce,ue)=>{const Q=m(le),_e=y(Q);if(_e){x(hr(_e,{replace:!0}),Q).catch(ig);return}u=Q;const Pe=l.value;Jd&&Dee(tR(Pe.fullPath,ue.delta),sw()),A(Q,Pe).catch(pe=>ql(pe,12)?pe:ql(pe,2)?(x(pe.to,Q).then(Y=>{ql(Y,20)&&!ue.delta&&ue.type===Kg.pop&&a.go(-1,!1)}).catch(ig),Promise.reject()):(ue.delta&&a.go(-ue.delta,!1),$(pe,Q,Pe))).then(pe=>{pe=pe||E(Q,Pe,!1),pe&&(ue.delta?a.go(-ue.delta,!1):ue.type===Kg.pop&&ql(pe,20)&&a.go(-1,!1)),M(Q,Pe,pe)}).catch(ig)}))}let O=np(),z=np(),F;function $(le,ce,ue){P(le);const Q=z.list();return Q.length?Q.forEach(_e=>_e(le,ce,ue)):console.error(le),Promise.reject(le)}function V(){return F&&l.value!==Yl?Promise.resolve():new Promise((le,ce)=>{O.add([le,ce])})}function P(le){return F||(F=!le,L(),O.list().forEach(([ce,ue])=>le?ue(le):ce()),O.reset()),le}function G(le,ce,ue,Q){const{scrollBehavior:_e}=e;if(!Jd||!_e)return Promise.resolve();const Pe=!ue&&Lee(tR(le.fullPath,0))||(Q||!ue)&&history.state&&history.state.scroll||null;return pt().then(()=>_e(le,ce,Pe)).then(pe=>pe&&Iee(pe)).catch(pe=>$(pe,le,ce))}const j=le=>a.go(le);let J;const ne=new Set;return{currentRoute:l,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:S,replace:C,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:z.add,isReady:V,install(le){const ce=this;le.component("RouterLink",gte),le.component("RouterView",_te),le.config.globalProperties.$router=ce,Object.defineProperty(le.config.globalProperties,"$route",{enumerable:!0,get:()=>_(l)}),Jd&&!J&&l.value===Yl&&(J=!0,S(a.location).catch(_e=>{}));const ue={};for(const _e in Yl)ue[_e]=R(()=>l.value[_e]);le.provide(ow,ce),le.provide(R8,xn(ue)),le.provide(dT,l);const Q=le.unmount;ne.add(le),le.unmount=function(){ne.delete(le),ne.size<1&&(u=Yl,I&&I(),I=null,l.value=Yl,J=!1,F=!1),Q()}}}}function Td(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Ste(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=>Vh(u,s))?r.push(s):n.push(s));const l=e.matched[o];l&&(t.matched.find(u=>Vh(u,l))||a.push(l))}return[n,r,a]}function _Ze(){return ct(ow)}var Rl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function as(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function wZe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}),n}var U8={exports:{}};/*!
  6. * JavaScript Cookie v2.2.0
  7. * https://github.com/js-cookie/js-cookie
  8. *
  9. * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
  10. * Released under the MIT license
  11. */(function(e,t){(function(n){var r=!1;if(e.exports=n(),r=!0,!r){var a=window.Cookies,i=window.Cookies=n();i.noConflict=function(){return window.Cookies=a,i}}})(function(){function n(){for(var a=0,i={};a<arguments.length;a++){var o=arguments[a];for(var s in o)i[s]=o[s]}return i}function r(a){function i(o,s,l){var u;if(!(typeof document>"u")){if(arguments.length>1){if(l=n({path:"/"},i.defaults,l),typeof l.expires=="number"){var c=new Date;c.setMilliseconds(c.getMilliseconds()+l.expires*864e5),l.expires=c}l.expires=l.expires?l.expires.toUTCString():"";try{u=JSON.stringify(s),/^[\{\[]/.test(u)&&(s=u)}catch{}a.write?s=a.write(s,o):s=encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),o=encodeURIComponent(String(o)),o=o.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),o=o.replace(/[\(\)]/g,escape);var f="";for(var d in l)l[d]&&(f+="; "+d,l[d]!==!0&&(f+="="+l[d]));return document.cookie=o+"="+s+f}o||(u={});for(var h=document.cookie?document.cookie.split("; "):[],v=/(%[0-9A-Z]{2})+/g,p=0;p<h.length;p++){var g=h[p].split("="),m=g.slice(1).join("=");!this.json&&m.charAt(0)==='"'&&(m=m.slice(1,-1));try{var b=g[0].replace(v,decodeURIComponent);if(m=a.read?a.read(m,b):a(m,b)||m.replace(v,decodeURIComponent),this.json)try{m=JSON.parse(m)}catch{}if(o===b){u=m;break}o||(u[b]=m)}catch{}}return u}}return i.set=i,i.get=function(o){return i.call(i,o)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(o,s){i(o,"",n(s,{expires:-1}))},i.withConverter=r,i}return r(function(){})})})(U8);var Cte=U8.exports;const Di=as(Cte),vf="CAE_token",lh="CAE_userId";function xte(){let e=[],t="0123456789abcdef";for(let r=0;r<36;r++)e[r]=t.substr(Math.floor(Math.random()*16),1);e[14]="4",e[19]=t.substr(e[19]&3|8,1),e[8]=e[13]=e[18]=e[23]="";var n=e.join("");return n}function SZe(){return(Di.get(vf)==null||Di.get(vf)==""||Di.get(vf)=="undefined")&&kte(xte()),Di.get(vf)}function Tte(){return Di.get(vf)}function kte(e){return Di.set(vf,e)}function CZe(){return Di.remove(vf)}function xZe(){return(Di.get(lh)==null||Di.get(lh)==""||Di.get(lh)=="undefined")&&Ate("guest"),Di.get(lh)}function Ate(e){return Di.set(lh,e)}function TZe(){return Di.remove(lh)}const KE=wte({history:$ee(),routes:[{path:"/",name:"首页",redirect:"/project",component:()=>r0(()=>import("./openpage-41c25abf.js"),["./openpage-41c25abf.js","./request-4fbbe234.js","./user-5720770f.js","./openpage-9e3e2402.css"],import.meta.url),meta:{keepAlive:!1,title:"首页"},children:[{path:"/project",name:"project",component:()=>r0(()=>import("./index-0ba19715.js"),["./index-0ba19715.js","./request-4fbbe234.js","./index-13c2e576.css"],import.meta.url),meta:{keepAlive:!1,title:"项目"}},{path:"/preference",name:"preference",component:()=>r0(()=>import("./index-cf7349e0.js"),["./index-cf7349e0.js","./index-066c4ba1.css"],import.meta.url),meta:{keepAlive:!1,title:"偏好设置"}}]},{path:"/login",name:"login",component:()=>r0(()=>import("./index-3baaa1f7.js"),["./index-3baaa1f7.js","./request-4fbbe234.js","./user-5720770f.js","./index-6b50bcf8.css"],import.meta.url),meta:{keepAlive:!1,title:"登录"}}]});KE.beforeEach((e,t,n)=>{Tte()||["login","register"].includes(e.name)?(document.title=e.name||"默认标题",n()):n({name:"login"})});KE.afterEach(()=>{window.scrollTo(0,0)});var Ete=!1;/*!
  12. * pinia v2.1.6
  13. * (c) 2023 Eduardo San Martin Morote
  14. * @license MIT
  15. */let K8;const lw=e=>K8=e,j8=Symbol();function pT(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var sg;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(sg||(sg={}));function Mte(){const e=X_(!0),t=e.run(()=>U({}));let n=[],r=[];const a=vl({install(i){lw(a),a._a=i,i.provide(j8,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Ete?r.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}const Y8=()=>{};function hR(e,t,n,r=Y8){e.push(t);const a=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),r())};return!n&&CE()&&xE(a),a}function kd(e,...t){e.slice().forEach(n=>{n(...t)})}const Ite=e=>e();function gT(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],a=e[n];pT(a)&&pT(r)&&e.hasOwnProperty(n)&&!Rn(r)&&!Eu(r)?e[n]=gT(a,r):e[n]=r}return e}const Dte=Symbol();function Lte(e){return!pT(e)||!e.hasOwnProperty(Dte)}const{assign:ou}=Object;function Pte(e){return!!(Rn(e)&&e.effect)}function Rte(e,t,n,r){const{state:a,actions:i,getters:o}=t,s=n.state.value[e];let l;function u(){s||(n.state.value[e]=a?a():{});const c=Jr(n.state.value[e]);return ou(c,i,Object.keys(o||{}).reduce((f,d)=>(f[d]=vl(R(()=>{lw(n);const h=n._s.get(e);return o[d].call(h,h)})),f),{}))}return l=q8(e,u,t,n,r,!0),l}function q8(e,t,n={},r,a,i){let o;const s=ou({actions:{}},n),l={deep:!0};let u,c,f=[],d=[],h;const v=r.state.value[e];!i&&!v&&(r.state.value[e]={}),U({});let p;function g(T){let A;u=c=!1,typeof T=="function"?(T(r.state.value[e]),A={type:sg.patchFunction,storeId:e,events:h}):(gT(r.state.value[e],T),A={type:sg.patchObject,payload:T,storeId:e,events:h});const M=p=Symbol();pt().then(()=>{p===M&&(u=!0)}),c=!0,kd(f,A,r.state.value[e])}const m=i?function(){const{state:A}=n,M=A?A():{};this.$patch(E=>{ou(E,M)})}:Y8;function b(){o.stop(),f=[],d=[],r._s.delete(e)}function w(T,A){return function(){lw(r);const M=Array.from(arguments),E=[],I=[];function L(F){E.push(F)}function O(F){I.push(F)}kd(d,{args:M,name:T,store:C,after:L,onError:O});let z;try{z=A.apply(this&&this.$id===e?this:C,M)}catch(F){throw kd(I,F),F}return z instanceof Promise?z.then(F=>(kd(E,F),F)).catch(F=>(kd(I,F),Promise.reject(F))):(kd(E,z),z)}}const S={_p:r,$id:e,$onAction:hR.bind(null,d),$patch:g,$reset:m,$subscribe(T,A={}){const M=hR(f,T,A.detached,()=>E()),E=o.run(()=>ze(()=>r.state.value[e],I=>{(A.flush==="sync"?c:u)&&T({storeId:e,type:sg.direct,events:h},I)},ou({},l,A)));return M},$dispose:b},C=xn(S);r._s.set(e,C);const y=r._a&&r._a.runWithContext||Ite,x=r._e.run(()=>(o=X_(),y(()=>o.run(t))));for(const T in x){const A=x[T];if(Rn(A)&&!Pte(A)||Eu(A))i||(v&&Lte(A)&&(Rn(A)?A.value=v[T]:gT(A,v[T])),r.state.value[e][T]=A);else if(typeof A=="function"){const M=w(T,A);x[T]=M,s.actions[T]=A}}return ou(C,x),ou(In(C),x),Object.defineProperty(C,"$state",{get:()=>r.state.value[e],set:T=>{g(A=>{ou(A,T)})}}),r._p.forEach(T=>{ou(C,o.run(()=>T({store:C,app:r._a,pinia:r,options:s})))}),v&&i&&n.hydrate&&n.hydrate(C.$state,v),u=!0,c=!0,C}function kZe(e,t,n){let r,a;const i=typeof t=="function";typeof e=="string"?(r=e,a=i?n:t):(a=e,r=e.id);function o(s,l){const u=fQ();return s=s||(u?ct(j8,null):null),s&&lw(s),s=K8,s._s.has(r)||(i?q8(r,t,a,s):Rte(r,a,s)),s._s.get(r)}return o.$id=r,o}function Ote(e){return typeof e=="object"&&e!==null}function vR(e,t){return e=Ote(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 Nte(e,t){return t.reduce((n,r)=>n==null?void 0:n[r],e)}function $te(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 Bte(e,t){return t.reduce((n,r)=>{const a=r.split(".");return $te(n,a,Nte(e,a))},{})}function pR(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 gR(e,{storage:t,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?Bte(e,a):e;t.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function Fte(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=>vR(s,e)):[vR(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=>{gR(a.$state,s)})},a.$hydrate=({runHooks:s=!0}={})=>{o.forEach(l=>{const{beforeRestore:u,afterRestore:c}=l;s&&(u==null||u(t)),pR(a,l),s&&(c==null||c(t))})},o.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;l==null||l(t),pR(a,s),u==null||u(t),a.$subscribe((c,f)=>{gR(f,s)},{detached:!0})})}}var Vte=Fte();const X8=Mte();X8.use(Vte);const zte='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Hte=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,mR=e=>Array.from(e.querySelectorAll(zte)).filter(t=>Wte(t)&&Hte(t)),Wte=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}},Ib=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},Z8=e=>!e.getAttribute("aria-owns"),J8=(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},Db=e=>{e&&(e.focus(),!Z8(e)&&e.click())},yr=(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)},yR=e=>t=>t.pointerType==="mouse"?e(t):void 0;var Gte=Object.defineProperty,Ute=Object.defineProperties,Kte=Object.getOwnPropertyDescriptors,bR=Object.getOwnPropertySymbols,jte=Object.prototype.hasOwnProperty,Yte=Object.prototype.propertyIsEnumerable,_R=(e,t,n)=>t in e?Gte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qte=(e,t)=>{for(var n in t||(t={}))jte.call(t,n)&&_R(e,n,t[n]);if(bR)for(var n of bR(t))Yte.call(t,n)&&_R(e,n,t[n]);return e},Xte=(e,t)=>Ute(e,Kte(t));function wR(e,t){var n;const r=Wn();return Oi(()=>{r.value=e()},Xte(qte({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),gv(r)}var SR;const vn=typeof window<"u",Zte=e=>typeof e<"u",Jte=e=>typeof e=="function",Qte=e=>typeof e=="string",Hh=()=>{},Q8=vn&&((SR=window==null?void 0:window.navigator)==null?void 0:SR.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Fu(e){return typeof e=="function"?e():_(e)}function ez(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 ene(e,t={}){let n,r,a=Hh;const i=s=>{clearTimeout(s),a(),a=Hh};return s=>{const l=Fu(e),u=Fu(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 tne(e,t=!0,n=!0,r=!1){let a=0,i,o=!0,s=Hh,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=Hh)};return f=>{const d=Fu(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 nne(e){return e}function uw(e){return CE()?(xE(e),!0):!1}function rne(e,t=200,n={}){return ez(ene(t,n),e)}function ane(e,t=200,n={}){const r=U(e.value),a=rne(()=>{r.value=e.value},t,n);return ze(e,()=>a()),r}function tz(e,t=200,n=!1,r=!0,a=!1){return ez(tne(t,n,r,a),e)}function jE(e,t=!0){Nt()?zt(e):t?e():pt(e)}function Wf(e,t,n={}){const{immediate:r=!0}=n,a=U(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,e(...u)},Fu(t))}return r&&(a.value=!0,vn&&l()),uw(s),{isPending:gv(a),start:l,stop:s}}function Li(e){var t;const n=Fu(e);return(t=n==null?void 0:n.$el)!=null?t:n}const yv=vn?window:void 0,ine=vn?window.document:void 0;function ir(...e){let t,n,r,a;if(Qte(e[0])||Array.isArray(e[0])?([n,r,a]=e,t=yv):[t,n,r,a]=e,!t)return Hh;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=ze(()=>[Li(t),Fu(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 uw(u),u}let CR=!1;function YE(e,t,n={}){const{window:r=yv,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;Q8&&!CR&&(CR=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",Hh)));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=Li(h);return v&&(d.target===v||d.composedPath().includes(v))}}),c=[ir(r,"click",d=>{const h=Li(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}),ir(r,"pointerdown",d=>{const h=Li(e);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&ir(r,"blur",d=>{var h;const v=Li(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 one(e,t=!1){const n=U(),r=()=>n.value=!!e();return r(),jE(r,t),n}function sne(e){return JSON.parse(JSON.stringify(e))}const xR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},TR="__vueuse_ssr_handlers__";xR[TR]=xR[TR]||{};function lne(e,t,{window:n=yv,initialValue:r=""}={}){const a=U(r),i=R(()=>{var o;return Li(t)||((o=n==null?void 0:n.document)==null?void 0:o.documentElement)});return ze([i,()=>Fu(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}),ze(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(Fu(e),o)}),a}function une({document:e=ine}={}){if(!e)return U("visible");const t=U(e.visibilityState);return ir(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var kR=Object.getOwnPropertySymbols,cne=Object.prototype.hasOwnProperty,fne=Object.prototype.propertyIsEnumerable,dne=(e,t)=>{var n={};for(var r in e)cne.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&kR)for(var r of kR(e))t.indexOf(r)<0&&fne.call(e,r)&&(n[r]=e[r]);return n};function $a(e,t,n={}){const r=n,{window:a=yv}=r,i=dne(r,["window"]);let o;const s=one(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=ze(()=>Li(e),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(t),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return uw(c),{isSupported:s,stop:c}}function AR(e,t={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0}=t,o=U(0),s=U(0),l=U(0),u=U(0),c=U(0),f=U(0),d=U(0),h=U(0);function v(){const p=Li(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 $a(e,v),ze(()=>Li(e),p=>!p&&v()),a&&ir("scroll",v,{capture:!0,passive:!0}),r&&ir("resize",v,{passive:!0}),jE(()=>{i&&v()}),{height:o,bottom:s,left:l,right:u,top:c,width:f,x:d,y:h,update:v}}var ER;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ER||(ER={}));var hne=Object.defineProperty,MR=Object.getOwnPropertySymbols,vne=Object.prototype.hasOwnProperty,pne=Object.prototype.propertyIsEnumerable,IR=(e,t,n)=>t in e?hne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gne=(e,t)=>{for(var n in t||(t={}))vne.call(t,n)&&IR(e,n,t[n]);if(MR)for(var n of MR(t))pne.call(t,n)&&IR(e,n,t[n]);return e};const mne={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]};gne({linear:nne},mne);function yne(e,t,n,r={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=r,d=Nt(),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?Jte(s)?s(m):sne(m):m,g=()=>Zte(e[t])?p(e[t]):f;if(l){const m=g(),b=U(m);return ze(()=>e[t],w=>b.value=p(w)),ze(b,w=>{(w!==e[t]||c)&&h(v,w)},{deep:c}),b}else return R({get(){return g()},set(m){h(v,m)}})}function bne({window:e=yv}={}){if(!e)return U(!1);const t=U(e.document.hasFocus());return ir(e,"blur",()=>{t.value=!1}),ir(e,"focus",()=>{t.value=!0}),t}function _ne(e={}){const{window:t=yv,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=e,o=U(n),s=U(r),l=()=>{t&&(i?(o.value=t.innerWidth,s.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};return l(),jE(l),ir("resize",l,{passive:!0}),a&&ir("orientationchange",l,{passive:!0}),{width:o,height:s}}const nz=()=>vn&&/firefox/i.test(window.navigator.userAgent),wne=(e,t)=>{if(!vn||!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},DR=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Sne=(e,t)=>Math.abs(DR(e)-DR(t)),qE=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 Cne=typeof global=="object"&&global&&global.Object===Object&&global;const rz=Cne;var xne=typeof self=="object"&&self&&self.Object===Object&&self,Tne=rz||xne||Function("return this")();const is=Tne;var kne=is.Symbol;const fo=kne;var az=Object.prototype,Ane=az.hasOwnProperty,Ene=az.toString,rp=fo?fo.toStringTag:void 0;function Mne(e){var t=Ane.call(e,rp),n=e[rp];try{e[rp]=void 0;var r=!0}catch{}var a=Ene.call(e);return r&&(t?e[rp]=n:delete e[rp]),a}var Ine=Object.prototype,Dne=Ine.toString;function Lne(e){return Dne.call(e)}var Pne="[object Null]",Rne="[object Undefined]",LR=fo?fo.toStringTag:void 0;function id(e){return e==null?e===void 0?Rne:Pne:LR&&LR in Object(e)?Mne(e):Lne(e)}function Ns(e){return e!=null&&typeof e=="object"}var One="[object Symbol]";function cw(e){return typeof e=="symbol"||Ns(e)&&id(e)==One}function iz(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 Nne=Array.isArray;const ei=Nne;var $ne=1/0,PR=fo?fo.prototype:void 0,RR=PR?PR.toString:void 0;function oz(e){if(typeof e=="string")return e;if(ei(e))return iz(e,oz)+"";if(cw(e))return RR?RR.call(e):"";var t=e+"";return t=="0"&&1/e==-$ne?"-0":t}var Bne=/\s/;function Fne(e){for(var t=e.length;t--&&Bne.test(e.charAt(t)););return t}var Vne=/^\s+/;function zne(e){return e&&e.slice(0,Fne(e)+1).replace(Vne,"")}function ti(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var OR=0/0,Hne=/^[-+]0x[0-9a-f]+$/i,Wne=/^0b[01]+$/i,Gne=/^0o[0-7]+$/i,Une=parseInt;function mT(e){if(typeof e=="number")return e;if(cw(e))return OR;if(ti(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ti(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=zne(e);var n=Wne.test(e);return n||Gne.test(e)?Une(e.slice(2),n?2:8):Hne.test(e)?OR:+e}var NR=1/0,Kne=17976931348623157e292;function jne(e){if(!e)return e===0?e:0;if(e=mT(e),e===NR||e===-NR){var t=e<0?-1:1;return t*Kne}return e===e?e:0}function Yne(e){var t=jne(e),n=t%1;return t===t?n?t-n:t:0}function XE(e){return e}var qne="[object AsyncFunction]",Xne="[object Function]",Zne="[object GeneratorFunction]",Jne="[object Proxy]";function ZE(e){if(!ti(e))return!1;var t=id(e);return t==Xne||t==Zne||t==qne||t==Jne}var Qne=is["__core-js_shared__"];const rC=Qne;var $R=function(){var e=/[^.]+$/.exec(rC&&rC.keys&&rC.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ere(e){return!!$R&&$R in e}var tre=Function.prototype,nre=tre.toString;function od(e){if(e!=null){try{return nre.call(e)}catch{}try{return e+""}catch{}}return""}var rre=/[\\^$.*+?()[\]{}|]/g,are=/^\[object .+?Constructor\]$/,ire=Function.prototype,ore=Object.prototype,sre=ire.toString,lre=ore.hasOwnProperty,ure=RegExp("^"+sre.call(lre).replace(rre,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cre(e){if(!ti(e)||ere(e))return!1;var t=ZE(e)?ure:are;return t.test(od(e))}function fre(e,t){return e==null?void 0:e[t]}function sd(e,t){var n=fre(e,t);return cre(n)?n:void 0}var dre=sd(is,"WeakMap");const yT=dre;var BR=Object.create,hre=function(){function e(){}return function(t){if(!ti(t))return{};if(BR)return BR(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const vre=hre;function pre(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 gre(){}function sz(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var mre=800,yre=16,bre=Date.now;function _re(e){var t=0,n=0;return function(){var r=bre(),a=yre-(r-n);if(n=r,a>0){if(++t>=mre)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function wre(e){return function(){return e}}var Sre=function(){try{var e=sd(Object,"defineProperty");return e({},"",{}),e}catch{}}();const M1=Sre;var Cre=M1?function(e,t){return M1(e,"toString",{configurable:!0,enumerable:!1,value:wre(t),writable:!0})}:XE;const xre=Cre;var Tre=_re(xre);const lz=Tre;function kre(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function uz(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 Are(e){return e!==e}function Ere(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}function Mre(e,t,n){return t===t?Ere(e,t,n):uz(e,Are,n)}function Ire(e,t){var n=e==null?0:e.length;return!!n&&Mre(e,t,0)>-1}var Dre=9007199254740991,Lre=/^(?:0|[1-9]\d*)$/;function fw(e,t){var n=typeof e;return t=t??Dre,!!t&&(n=="number"||n!="symbol"&&Lre.test(e))&&e>-1&&e%1==0&&e<t}function JE(e,t,n){t=="__proto__"&&M1?M1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ey(e,t){return e===t||e!==e&&t!==t}var Pre=Object.prototype,Rre=Pre.hasOwnProperty;function QE(e,t,n){var r=e[t];(!(Rre.call(e,t)&&ey(r,n))||n===void 0&&!(t in e))&&JE(e,t,n)}function ty(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?JE(n,s,l):QE(n,s,l)}return n}var FR=Math.max;function cz(e,t,n){return t=FR(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=FR(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),pre(e,this,s)}}function fz(e,t){return lz(cz(e,t,XE),e+"")}var Ore=9007199254740991;function eM(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ore}function bv(e){return e!=null&&eM(e.length)&&!ZE(e)}function Nre(e,t,n){if(!ti(n))return!1;var r=typeof t;return(r=="number"?bv(n)&&fw(t,n.length):r=="string"&&t in n)?ey(n[t],e):!1}function $re(e){return fz(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&&Nre(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 Bre=Object.prototype;function tM(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Bre;return e===n}function Fre(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Vre="[object Arguments]";function VR(e){return Ns(e)&&id(e)==Vre}var dz=Object.prototype,zre=dz.hasOwnProperty,Hre=dz.propertyIsEnumerable,Wre=VR(function(){return arguments}())?VR:function(e){return Ns(e)&&zre.call(e,"callee")&&!Hre.call(e,"callee")};const jg=Wre;function Gre(){return!1}var hz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zR=hz&&typeof module=="object"&&module&&!module.nodeType&&module,Ure=zR&&zR.exports===hz,HR=Ure?is.Buffer:void 0,Kre=HR?HR.isBuffer:void 0,jre=Kre||Gre;const Yg=jre;var Yre="[object Arguments]",qre="[object Array]",Xre="[object Boolean]",Zre="[object Date]",Jre="[object Error]",Qre="[object Function]",eae="[object Map]",tae="[object Number]",nae="[object Object]",rae="[object RegExp]",aae="[object Set]",iae="[object String]",oae="[object WeakMap]",sae="[object ArrayBuffer]",lae="[object DataView]",uae="[object Float32Array]",cae="[object Float64Array]",fae="[object Int8Array]",dae="[object Int16Array]",hae="[object Int32Array]",vae="[object Uint8Array]",pae="[object Uint8ClampedArray]",gae="[object Uint16Array]",mae="[object Uint32Array]",Sr={};Sr[uae]=Sr[cae]=Sr[fae]=Sr[dae]=Sr[hae]=Sr[vae]=Sr[pae]=Sr[gae]=Sr[mae]=!0;Sr[Yre]=Sr[qre]=Sr[sae]=Sr[Xre]=Sr[lae]=Sr[Zre]=Sr[Jre]=Sr[Qre]=Sr[eae]=Sr[tae]=Sr[nae]=Sr[rae]=Sr[aae]=Sr[iae]=Sr[oae]=!1;function yae(e){return Ns(e)&&eM(e.length)&&!!Sr[id(e)]}function nM(e){return function(t){return e(t)}}var vz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lg=vz&&typeof module=="object"&&module&&!module.nodeType&&module,bae=lg&&lg.exports===vz,aC=bae&&rz.process,_ae=function(){try{var e=lg&&lg.require&&lg.require("util").types;return e||aC&&aC.binding&&aC.binding("util")}catch{}}();const Wh=_ae;var WR=Wh&&Wh.isTypedArray,wae=WR?nM(WR):yae;const rM=wae;var Sae=Object.prototype,Cae=Sae.hasOwnProperty;function pz(e,t){var n=ei(e),r=!n&&jg(e),a=!n&&!r&&Yg(e),i=!n&&!r&&!a&&rM(e),o=n||r||a||i,s=o?Fre(e.length,String):[],l=s.length;for(var u in e)(t||Cae.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||fw(u,l)))&&s.push(u);return s}function gz(e,t){return function(n){return e(t(n))}}var xae=gz(Object.keys,Object);const Tae=xae;var kae=Object.prototype,Aae=kae.hasOwnProperty;function Eae(e){if(!tM(e))return Tae(e);var t=[];for(var n in Object(e))Aae.call(e,n)&&n!="constructor"&&t.push(n);return t}function ny(e){return bv(e)?pz(e):Eae(e)}function Mae(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Iae=Object.prototype,Dae=Iae.hasOwnProperty;function Lae(e){if(!ti(e))return Mae(e);var t=tM(e),n=[];for(var r in e)r=="constructor"&&(t||!Dae.call(e,r))||n.push(r);return n}function ry(e){return bv(e)?pz(e,!0):Lae(e)}var Pae=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rae=/^\w*$/;function aM(e,t){if(ei(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||cw(e)?!0:Rae.test(e)||!Pae.test(e)||t!=null&&e in Object(t)}var Oae=sd(Object,"create");const qg=Oae;function Nae(){this.__data__=qg?qg(null):{},this.size=0}function $ae(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Bae="__lodash_hash_undefined__",Fae=Object.prototype,Vae=Fae.hasOwnProperty;function zae(e){var t=this.__data__;if(qg){var n=t[e];return n===Bae?void 0:n}return Vae.call(t,e)?t[e]:void 0}var Hae=Object.prototype,Wae=Hae.hasOwnProperty;function Gae(e){var t=this.__data__;return qg?t[e]!==void 0:Wae.call(t,e)}var Uae="__lodash_hash_undefined__";function Kae(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=qg&&t===void 0?Uae:t,this}function Gf(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])}}Gf.prototype.clear=Nae;Gf.prototype.delete=$ae;Gf.prototype.get=zae;Gf.prototype.has=Gae;Gf.prototype.set=Kae;function jae(){this.__data__=[],this.size=0}function dw(e,t){for(var n=e.length;n--;)if(ey(e[n][0],t))return n;return-1}var Yae=Array.prototype,qae=Yae.splice;function Xae(e){var t=this.__data__,n=dw(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():qae.call(t,n,1),--this.size,!0}function Zae(e){var t=this.__data__,n=dw(t,e);return n<0?void 0:t[n][1]}function Jae(e){return dw(this.__data__,e)>-1}function Qae(e,t){var n=this.__data__,r=dw(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ol(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])}}Ol.prototype.clear=jae;Ol.prototype.delete=Xae;Ol.prototype.get=Zae;Ol.prototype.has=Jae;Ol.prototype.set=Qae;var eie=sd(is,"Map");const Xg=eie;function tie(){this.size=0,this.__data__={hash:new Gf,map:new(Xg||Ol),string:new Gf}}function nie(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function hw(e,t){var n=e.__data__;return nie(t)?n[typeof t=="string"?"string":"hash"]:n.map}function rie(e){var t=hw(this,e).delete(e);return this.size-=t?1:0,t}function aie(e){return hw(this,e).get(e)}function iie(e){return hw(this,e).has(e)}function oie(e,t){var n=hw(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Nl(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])}}Nl.prototype.clear=tie;Nl.prototype.delete=rie;Nl.prototype.get=aie;Nl.prototype.has=iie;Nl.prototype.set=oie;var sie="Expected a function";function vw(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(sie);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(vw.Cache||Nl),n}vw.Cache=Nl;var lie=500;function uie(e){var t=vw(e,function(r){return n.size===lie&&n.clear(),r}),n=t.cache;return t}var cie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fie=/\\(\\)?/g,die=uie(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(cie,function(n,r,a,i){t.push(a?i.replace(fie,"$1"):r||n)}),t});const hie=die;function vie(e){return e==null?"":oz(e)}function pw(e,t){return ei(e)?e:aM(e,t)?[e]:hie(vie(e))}var pie=1/0;function ay(e){if(typeof e=="string"||cw(e))return e;var t=e+"";return t=="0"&&1/e==-pie?"-0":t}function iM(e,t){t=pw(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ay(t[n++])];return n&&n==r?e:void 0}function lr(e,t,n){var r=e==null?void 0:iM(e,t);return r===void 0?n:r}function oM(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var GR=fo?fo.isConcatSpreadable:void 0;function gie(e){return ei(e)||jg(e)||!!(GR&&e&&e[GR])}function iy(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=gie),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?iy(s,t-1,n,r,a):oM(a,s):r||(a[a.length]=s)}return a}function mz(e){var t=e==null?0:e.length;return t?iy(e,1):[]}function mie(e){return lz(cz(e,void 0,mz),e+"")}var yie=gz(Object.getPrototypeOf,Object);const sM=yie;var bie="[object Object]",_ie=Function.prototype,wie=Object.prototype,yz=_ie.toString,Sie=wie.hasOwnProperty,Cie=yz.call(Object);function xie(e){if(!Ns(e)||id(e)!=bie)return!1;var t=sM(e);if(t===null)return!0;var n=Sie.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&yz.call(n)==Cie}function Uf(){if(!arguments.length)return[];var e=arguments[0];return ei(e)?e:[e]}function Tie(){this.__data__=new Ol,this.size=0}function kie(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Aie(e){return this.__data__.get(e)}function Eie(e){return this.__data__.has(e)}var Mie=200;function Iie(e,t){var n=this.__data__;if(n instanceof Ol){var r=n.__data__;if(!Xg||r.length<Mie-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nl(r)}return n.set(e,t),this.size=n.size,this}function Ko(e){var t=this.__data__=new Ol(e);this.size=t.size}Ko.prototype.clear=Tie;Ko.prototype.delete=kie;Ko.prototype.get=Aie;Ko.prototype.has=Eie;Ko.prototype.set=Iie;function Die(e,t){return e&&ty(t,ny(t),e)}function Lie(e,t){return e&&ty(t,ry(t),e)}var bz=typeof exports=="object"&&exports&&!exports.nodeType&&exports,UR=bz&&typeof module=="object"&&module&&!module.nodeType&&module,Pie=UR&&UR.exports===bz,KR=Pie?is.Buffer:void 0,jR=KR?KR.allocUnsafe:void 0;function _z(e,t){if(t)return e.slice();var n=e.length,r=jR?jR(n):new e.constructor(n);return e.copy(r),r}function Rie(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 wz(){return[]}var Oie=Object.prototype,Nie=Oie.propertyIsEnumerable,YR=Object.getOwnPropertySymbols,$ie=YR?function(e){return e==null?[]:(e=Object(e),Rie(YR(e),function(t){return Nie.call(e,t)}))}:wz;const lM=$ie;function Bie(e,t){return ty(e,lM(e),t)}var Fie=Object.getOwnPropertySymbols,Vie=Fie?function(e){for(var t=[];e;)oM(t,lM(e)),e=sM(e);return t}:wz;const Sz=Vie;function zie(e,t){return ty(e,Sz(e),t)}function Cz(e,t,n){var r=t(e);return ei(e)?r:oM(r,n(e))}function bT(e){return Cz(e,ny,lM)}function Hie(e){return Cz(e,ry,Sz)}var Wie=sd(is,"DataView");const _T=Wie;var Gie=sd(is,"Promise");const wT=Gie;var Uie=sd(is,"Set");const _h=Uie;var qR="[object Map]",Kie="[object Object]",XR="[object Promise]",ZR="[object Set]",JR="[object WeakMap]",QR="[object DataView]",jie=od(_T),Yie=od(Xg),qie=od(wT),Xie=od(_h),Zie=od(yT),qc=id;(_T&&qc(new _T(new ArrayBuffer(1)))!=QR||Xg&&qc(new Xg)!=qR||wT&&qc(wT.resolve())!=XR||_h&&qc(new _h)!=ZR||yT&&qc(new yT)!=JR)&&(qc=function(e){var t=id(e),n=t==Kie?e.constructor:void 0,r=n?od(n):"";if(r)switch(r){case jie:return QR;case Yie:return qR;case qie:return XR;case Xie:return ZR;case Zie:return JR}return t});const Zg=qc;var Jie=Object.prototype,Qie=Jie.hasOwnProperty;function eoe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Qie.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var toe=is.Uint8Array;const I1=toe;function uM(e){var t=new e.constructor(e.byteLength);return new I1(t).set(new I1(e)),t}function noe(e,t){var n=t?uM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var roe=/\w*$/;function aoe(e){var t=new e.constructor(e.source,roe.exec(e));return t.lastIndex=e.lastIndex,t}var eO=fo?fo.prototype:void 0,tO=eO?eO.valueOf:void 0;function ioe(e){return tO?Object(tO.call(e)):{}}function xz(e,t){var n=t?uM(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ooe="[object Boolean]",soe="[object Date]",loe="[object Map]",uoe="[object Number]",coe="[object RegExp]",foe="[object Set]",doe="[object String]",hoe="[object Symbol]",voe="[object ArrayBuffer]",poe="[object DataView]",goe="[object Float32Array]",moe="[object Float64Array]",yoe="[object Int8Array]",boe="[object Int16Array]",_oe="[object Int32Array]",woe="[object Uint8Array]",Soe="[object Uint8ClampedArray]",Coe="[object Uint16Array]",xoe="[object Uint32Array]";function Toe(e,t,n){var r=e.constructor;switch(t){case voe:return uM(e);case ooe:case soe:return new r(+e);case poe:return noe(e,n);case goe:case moe:case yoe:case boe:case _oe:case woe:case Soe:case Coe:case xoe:return xz(e,n);case loe:return new r;case uoe:case doe:return new r(e);case coe:return aoe(e);case foe:return new r;case hoe:return ioe(e)}}function Tz(e){return typeof e.constructor=="function"&&!tM(e)?vre(sM(e)):{}}var koe="[object Map]";function Aoe(e){return Ns(e)&&Zg(e)==koe}var nO=Wh&&Wh.isMap,Eoe=nO?nM(nO):Aoe;const Moe=Eoe;var Ioe="[object Set]";function Doe(e){return Ns(e)&&Zg(e)==Ioe}var rO=Wh&&Wh.isSet,Loe=rO?nM(rO):Doe;const Poe=Loe;var Roe=1,Ooe=2,Noe=4,kz="[object Arguments]",$oe="[object Array]",Boe="[object Boolean]",Foe="[object Date]",Voe="[object Error]",Az="[object Function]",zoe="[object GeneratorFunction]",Hoe="[object Map]",Woe="[object Number]",Ez="[object Object]",Goe="[object RegExp]",Uoe="[object Set]",Koe="[object String]",joe="[object Symbol]",Yoe="[object WeakMap]",qoe="[object ArrayBuffer]",Xoe="[object DataView]",Zoe="[object Float32Array]",Joe="[object Float64Array]",Qoe="[object Int8Array]",ese="[object Int16Array]",tse="[object Int32Array]",nse="[object Uint8Array]",rse="[object Uint8ClampedArray]",ase="[object Uint16Array]",ise="[object Uint32Array]",mr={};mr[kz]=mr[$oe]=mr[qoe]=mr[Xoe]=mr[Boe]=mr[Foe]=mr[Zoe]=mr[Joe]=mr[Qoe]=mr[ese]=mr[tse]=mr[Hoe]=mr[Woe]=mr[Ez]=mr[Goe]=mr[Uoe]=mr[Koe]=mr[joe]=mr[nse]=mr[rse]=mr[ase]=mr[ise]=!0;mr[Voe]=mr[Az]=mr[Yoe]=!1;function ug(e,t,n,r,a,i){var o,s=t&Roe,l=t&Ooe,u=t&Noe;if(n&&(o=a?n(e,r,a,i):n(e)),o!==void 0)return o;if(!ti(e))return e;var c=ei(e);if(c){if(o=eoe(e),!s)return sz(e,o)}else{var f=Zg(e),d=f==Az||f==zoe;if(Yg(e))return _z(e,s);if(f==Ez||f==kz||d&&!a){if(o=l||d?{}:Tz(e),!s)return l?zie(e,Lie(o,e)):Bie(e,Die(o,e))}else{if(!mr[f])return a?e:{};o=Toe(e,f,s)}}i||(i=new Ko);var h=i.get(e);if(h)return h;i.set(e,o),Poe(e)?e.forEach(function(g){o.add(ug(g,t,n,g,e,i))}):Moe(e)&&e.forEach(function(g,m){o.set(m,ug(g,t,n,m,e,i))});var v=u?l?Hie:bT:l?ry:ny,p=c?void 0:v(e);return kre(p||e,function(g,m){p&&(m=g,g=e[m]),QE(o,m,ug(g,t,n,m,e,i))}),o}var ose=4;function aO(e){return ug(e,ose)}var sse=1,lse=4;function D1(e){return ug(e,sse|lse)}var use="__lodash_hash_undefined__";function cse(e){return this.__data__.set(e,use),this}function fse(e){return this.__data__.has(e)}function Jg(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Nl;++t<n;)this.add(e[t])}Jg.prototype.add=Jg.prototype.push=cse;Jg.prototype.has=fse;function dse(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 Mz(e,t){return e.has(t)}var hse=1,vse=2;function Iz(e,t,n,r,a,i){var o=n&hse,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&vse?new Jg: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(!dse(t,function(m,b){if(!Mz(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 pse(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function cM(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var gse=1,mse=2,yse="[object Boolean]",bse="[object Date]",_se="[object Error]",wse="[object Map]",Sse="[object Number]",Cse="[object RegExp]",xse="[object Set]",Tse="[object String]",kse="[object Symbol]",Ase="[object ArrayBuffer]",Ese="[object DataView]",iO=fo?fo.prototype:void 0,iC=iO?iO.valueOf:void 0;function Mse(e,t,n,r,a,i,o){switch(n){case Ese:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ase:return!(e.byteLength!=t.byteLength||!i(new I1(e),new I1(t)));case yse:case bse:case Sse:return ey(+e,+t);case _se:return e.name==t.name&&e.message==t.message;case Cse:case Tse:return e==t+"";case wse:var s=pse;case xse:var l=r&gse;if(s||(s=cM),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;r|=mse,o.set(e,t);var c=Iz(s(e),s(t),r,a,i,o);return o.delete(e),c;case kse:if(iC)return iC.call(e)==iC.call(t)}return!1}var Ise=1,Dse=Object.prototype,Lse=Dse.hasOwnProperty;function Pse(e,t,n,r,a,i){var o=n&Ise,s=bT(e),l=s.length,u=bT(t),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in t:Lse.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 w=o?r(b,m,d,t,e,i):r(m,b,d,e,t,i);if(!(w===void 0?m===b||a(m,b,n,r,i):w)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var S=e.constructor,C=t.constructor;S!=C&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof C=="function"&&C instanceof C)&&(p=!1)}return i.delete(e),i.delete(t),p}var Rse=1,oO="[object Arguments]",sO="[object Array]",a0="[object Object]",Ose=Object.prototype,lO=Ose.hasOwnProperty;function Nse(e,t,n,r,a,i){var o=ei(e),s=ei(t),l=o?sO:Zg(e),u=s?sO:Zg(t);l=l==oO?a0:l,u=u==oO?a0:u;var c=l==a0,f=u==a0,d=l==u;if(d&&Yg(e)){if(!Yg(t))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new Ko),o||rM(e)?Iz(e,t,n,r,a,i):Mse(e,t,l,n,r,a,i);if(!(n&Rse)){var h=c&&lO.call(e,"__wrapped__"),v=f&&lO.call(t,"__wrapped__");if(h||v){var p=h?e.value():e,g=v?t.value():t;return i||(i=new Ko),a(p,g,n,r,i)}}return d?(i||(i=new Ko),Pse(e,t,n,r,a,i)):!1}function gw(e,t,n,r,a){return e===t?!0:e==null||t==null||!Ns(e)&&!Ns(t)?e!==e&&t!==t:Nse(e,t,n,r,gw,a)}var $se=1,Bse=2;function Fse(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 Ko;if(r)var d=r(u,c,l,e,t,f);if(!(d===void 0?gw(c,u,$se|Bse,r,f):d))return!1}}return!0}function Dz(e){return e===e&&!ti(e)}function Vse(e){for(var t=ny(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,Dz(a)]}return t}function Lz(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function zse(e){var t=Vse(e);return t.length==1&&t[0][2]?Lz(t[0][0],t[0][1]):function(n){return n===e||Fse(n,e,t)}}function Hse(e,t){return e!=null&&t in Object(e)}function Wse(e,t,n){t=pw(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=ay(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&&eM(a)&&fw(o,a)&&(ei(e)||jg(e)))}function Pz(e,t){return e!=null&&Wse(e,t,Hse)}var Gse=1,Use=2;function Kse(e,t){return aM(e)&&Dz(t)?Lz(ay(e),t):function(n){var r=lr(n,e);return r===void 0&&r===t?Pz(n,e):gw(t,r,Gse|Use)}}function jse(e){return function(t){return t==null?void 0:t[e]}}function Yse(e){return function(t){return iM(t,e)}}function qse(e){return aM(e)?jse(ay(e)):Yse(e)}function Rz(e){return typeof e=="function"?e:e==null?XE:typeof e=="object"?ei(e)?Kse(e[0],e[1]):zse(e):qse(e)}function Xse(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 Zse=Xse();const Oz=Zse;function Jse(e,t){return e&&Oz(e,t,ny)}function Qse(e,t){return function(n,r){if(n==null)return n;if(!bv(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 ele=Qse(Jse);const tle=ele;var nle=function(){return is.Date.now()};const oC=nle;var rle="Expected a function",ale=Math.max,ile=Math.min;function ni(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(rle);t=mT(t)||0,ti(n)&&(c=!!n.leading,f="maxWait"in n,i=f?ale(mT(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d);function h(y){var x=r,T=a;return r=a=void 0,u=y,o=e.apply(T,x),o}function v(y){return u=y,s=setTimeout(m,t),c?h(y):o}function p(y){var x=y-l,T=y-u,A=t-x;return f?ile(A,i-T):A}function g(y){var x=y-l,T=y-u;return l===void 0||x>=t||x<0||f&&T>=i}function m(){var y=oC();if(g(y))return b(y);s=setTimeout(m,p(y))}function b(y){return s=void 0,d&&r?h(y):(r=a=void 0,o)}function w(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function S(){return s===void 0?o:b(oC())}function C(){var y=oC(),x=g(y);if(r=arguments,a=this,l=y,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=w,C.flush=S,C}function ST(e,t,n){(n!==void 0&&!ey(e[t],n)||n===void 0&&!(t in e))&&JE(e,t,n)}function Nz(e){return Ns(e)&&bv(e)}function CT(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ole(e){return ty(e,ry(e))}function sle(e,t,n,r,a,i,o){var s=CT(e,n),l=CT(t,n),u=o.get(l);if(u){ST(e,n,u);return}var c=i?i(s,l,n+"",e,t,o):void 0,f=c===void 0;if(f){var d=ei(l),h=!d&&Yg(l),v=!d&&!h&&rM(l);c=l,d||h||v?ei(s)?c=s:Nz(s)?c=sz(s):h?(f=!1,c=_z(l,!0)):v?(f=!1,c=xz(l,!0)):c=[]:xie(l)||jg(l)?(c=s,jg(s)?c=ole(s):(!ti(s)||ZE(s))&&(c=Tz(l))):f=!1}f&&(o.set(l,c),a(c,l,r,i,o),o.delete(l)),ST(e,n,c)}function $z(e,t,n,r,a){e!==t&&Oz(t,function(i,o){if(a||(a=new Ko),ti(i))sle(e,t,o,n,$z,r,a);else{var s=r?r(CT(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),ST(e,o,s)}},ry)}function lle(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 ule=Math.max,cle=Math.min;function fle(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return n!==void 0&&(a=Yne(n),a=n<0?ule(r+a,0):cle(a,r-1)),uz(e,Rz(t),a,!0)}function dle(e,t){var n=-1,r=bv(e)?Array(e.length):[];return tle(e,function(a,i,o){r[++n]=t(a,i,o)}),r}function hle(e,t){var n=ei(e)?iz:dle;return n(e,Rz(t))}function vle(e,t){return iy(hle(e,t),1)}var ple=1/0;function gle(e){var t=e==null?0:e.length;return t?iy(e,ple):[]}function L1(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 yi(e,t){return gw(e,t)}function Wr(e){return e==null}function mle(e){return e===void 0}var yle=$re(function(e,t,n){$z(e,t,n)});const Bz=yle;function Fz(e,t,n,r){if(!ti(e))return e;t=pw(t,e);for(var a=-1,i=t.length,o=i-1,s=e;s!=null&&++a<i;){var l=ay(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=ti(c)?c:fw(t[a+1])?[]:{})}QE(s,l,u),s=s[l]}return e}function ble(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=iM(e,o);n(s,o)&&Fz(i,pw(o,e),s)}return i}function _le(e,t){return ble(e,t,function(n,r){return Pz(e,r)})}var wle=mie(function(e,t){return e==null?{}:_le(e,t)});const ol=wle;function Sle(e,t,n){return e==null?e:Fz(e,t,n)}var Cle="Expected a function";function Df(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(Cle);return ti(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),ni(e,t,{leading:r,maxWait:t,trailing:a})}var xle=1/0,Tle=_h&&1/cM(new _h([,-0]))[1]==xle?function(e){return new _h(e)}:gre;const kle=Tle;var Ale=200;function Ele(e,t,n){var r=-1,a=Ire,i=e.length,o=!0,s=[],l=s;if(n)o=!1,a=lle;else if(i>=Ale){var u=t?null:kle(e);if(u)return cM(u);o=!1,a=Mz,l=new Jg}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 Mle=fz(function(e){return Ele(iy(e,1,Nz,!0))});const sC=Mle,Xr=e=>e===void 0,Gr=e=>typeof e=="boolean",kt=e=>typeof e=="number",ro=e=>!e&&e!==0||ft(e)&&e.length===0||Qt(e)&&!Object.keys(e).length,ho=e=>typeof Element>"u"?!1:e instanceof Element,Ile=e=>Wr(e),Dle=e=>Mt(e)?!Number.isNaN(Number(e)):!1,Vz=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),xs=e=>Jm(e),Qg=e=>Object.keys(e),Lle=e=>Object.entries(e),Lb=(e,t,n)=>({get value(){return lr(e,t,n)},set value(r){Sle(e,t,r)}});class Ple extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Kr(e,t){throw new Ple(`[${e}] ${t}`)}const zz=(e="")=>e.split(" ").filter(t=>!!t.trim()),jo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},As=(e,t)=>{!e||!t.trim()||e.classList.add(...zz(t))},bi=(e,t)=>{!e||!t.trim()||e.classList.remove(...zz(t))},mu=(e,t)=>{var n;if(!vn||!e||!t)return"";let r=co(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 kr(e,t="px"){if(!e)return"";if(kt(e)||Dle(e))return`${e}${t}`;if(Mt(e))return e}const Rle=(e,t)=>{if(!vn)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=mu(e,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},fM=(e,t)=>{if(!vn)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Rle(n,t))return n;n=n.parentNode}return n};let i0;const Hz=e=>{var t;if(!vn)return 0;if(i0!==void 0)return i0;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),i0=r-i,i0};function Wz(e,t){if(!vn)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const a=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=a+t.offsetHeight,o=e.scrollTop,s=o+e.clientHeight;a<o?e.scrollTop=a:i>s&&(e.scrollTop=i-e.clientHeight)}/*! Element Plus Icons Vue v2.3.1 */var Ole=te({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),tc=Ole,Nle=te({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),Vu=Nle,$le=te({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Za=$le,Ble=te({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),mw=Ble,Fle=te({name:"Back",__name:"back",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),ee("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),Vle=Fle,zle=te({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Hle=zle,Wle=te({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Gz=Wle,Gle=te({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Ule=Gle,Kle=te({name:"Check",__name:"check",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),oy=Kle,jle=te({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Yle=jle,qle=te({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ee("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),dM=qle,Xle=te({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),hM=Xle,Zle=te({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),ee("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),nc=Zle,Jle=te({name:"Clock",__name:"clock",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ee("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),ee("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),Uz=Jle,Qle=te({name:"Close",__name:"close",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Jo=Qle,eue=te({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),Gh=eue,tue=te({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),Uh=tue,nue=te({name:"Delete",__name:"delete",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),rue=nue,aue=te({name:"Document",__name:"document",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),iue=aue,oue=te({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),sue=oue,lue=te({name:"Hide",__name:"hide",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),ee("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),uue=lue,cue=te({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),vM=cue,fue=te({name:"Key",__name:"key",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),AZe=fue,due=te({name:"Loading",__name:"loading",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),rc=due,hue=te({name:"Minus",__name:"minus",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),vue=hue,pue=te({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),uO=pue,gue=te({name:"More",__name:"more",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),mue=gue,yue=te({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),bue=yue,_ue=te({name:"Plus",__name:"plus",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),Kz=_ue,wue=te({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),Sue=wue,Cue=te({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),xue=Cue,Tue=te({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),kue=Tue,Aue=te({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),Eue=Aue,Mue=te({name:"Search",__name:"search",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),Iue=Mue,Due=te({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),Lue=Due,Pue=te({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),Rue=Pue,Oue=te({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),o0=Oue,Nue=te({name:"Star",__name:"star",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),$ue=Nue,Bue=te({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),jz=Bue,Fue=te({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"}),ee("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),EZe=Fue,Vue=te({name:"User",__name:"user",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),MZe=Vue,zue=te({name:"View",__name:"view",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Hue=zue,Wue=te({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),yw=Wue,Gue=te({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Yz=Gue,Uue=te({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(N(),X("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ee("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Kue=Uue;const qz="__epPropKey",Ce=e=>e,jue=e=>Qt(e)&&!!e[qz],os=(e,t)=>{if(!Qt(e)||jue(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),fn(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(", ");PJ(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[qz]:!0};return fn(e,"default")&&(l.default=a),l},Je=e=>L1(Object.entries(e).map(([t,n])=>[t,os(n,t)])),Kn=Ce([String,Object,Function]),Xz={Close:Jo},pM={Close:Jo,SuccessFilled:jz,InfoFilled:vM,WarningFilled:yw,CircleCloseFilled:hM},zu={success:jz,warning:yw,error:hM,info:vM},gM={validating:rc,success:dM,error:nc},Ut=(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},Zz=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Yue=(e,t)=>(e.install=n=>{n.directive(t,e)},e),br=e=>(e.install=On,e),bw=(...e)=>t=>{e.forEach(n=>{At(n)?n(t):n.value=t})},_t={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"},que=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],lC=["sun","mon","tue","wed","thu","fri","sat"],Kt="update:modelValue",nr="change",Ja="input",cO=Symbol("INSTALLED_KEY"),Gs=["","default","small","large"],Xue={large:40,default:32,small:24},Zue=e=>Xue[e||"default"],_w=e=>["",...Gs].includes(e);var Zi=(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))(Zi||{});function xT(e){return fr(e)&&e.type===gt}function Jue(e){return fr(e)&&e.type===Xa}function Que(e){return fr(e)&&!xT(e)&&!Jue(e)}const ece=e=>{if(!fr(e))return{};const t=e.props||{},n=(fr(e.type)?e.type.props:void 0)||{},r={};return Object.keys(n).forEach(a=>{fn(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(t).forEach(a=>{r[co(a)]=t[a]}),r},tce=e=>{if(!ft(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},wh=e=>{const t=ft(e)?e:[e],n=[];return t.forEach(r=>{var a;ft(r)?n.push(...wh(r)):fr(r)&&ft(r.children)?n.push(...wh(r.children)):(n.push(r),fr(r)&&((a=r.component)!=null&&a.subTree)&&n.push(...wh(r.component.subTree)))}),n},fO=e=>[...new Set(e)],pl=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],ww=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Kh=e=>vn?window.requestAnimationFrame(e):setTimeout(e,16),Sw=e=>vn?window.cancelAnimationFrame(e):clearTimeout(e),Cw=()=>Math.floor(Math.random()*1e4),ur=e=>e,nce=["class","style"],rce=/^on[A-Z]/,mM=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=R(()=>((n==null?void 0:n.value)||[]).concat(nce)),a=Nt();return R(a?()=>{var i;return L1(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!r.value.includes(o)&&!(t&&rce.test(o))))}:()=>({}))},$s=({from:e,replacement:t,scope:n,version:r,ref:a,type:i="API"},o)=>{ze(()=>_(o),s=>{},{immediate:!0})},Jz=(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,w=-h+c,S=-v+f,C=m-h-p+c,y=b-v-g+f,x=A=>{const M=Math.min(Math.max(c+A.clientX-l,w),C),E=Math.min(Math.max(f+A.clientY-u,S),y);r={offsetX:M,offsetY:E},e.value.style.transform=`translate(${kr(M)}, ${kr(E)})`},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)};zt(()=>{Oi(()=>{n.value?i():o()})}),sr(()=>{o()})};var ace={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 ice=e=>(t,n)=>oce(t,n,_(e)),oce=(e,t,n)=>lr(n,e,e).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=t==null?void 0:t[a])!=null?i:`{${a}}`}`}),sce=e=>{const t=R(()=>_(e).name),n=Rn(e)?e:U(e);return{lang:t,locale:n,t:ice(e)}},Qz=Symbol("localeContextKey"),bn=e=>{const t=e||ct(Qz,U());return sce(R(()=>t.value||ace))},cg="el",lce="is-",Cc=(e,t,n,r,a)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},eH=Symbol("namespaceContextKey"),yM=e=>{const t=e||(Nt()?ct(eH,U(cg)):U(cg));return R(()=>_(t)||cg)},We=(e,t)=>{const n=yM(t);return{namespace:n,b:(p="")=>Cc(n.value,e,p,"",""),e:p=>p?Cc(n.value,e,"",p,""):"",m:p=>p?Cc(n.value,e,"","",p):"",be:(p,g)=>p&&g?Cc(n.value,e,p,g,""):"",em:(p,g)=>p&&g?Cc(n.value,e,"",p,g):"",bm:(p,g)=>p&&g?Cc(n.value,e,p,"",g):"",bem:(p,g,m)=>p&&g&&m?Cc(n.value,e,p,g,m):"",is:(p,...g)=>{const m=g.length>=1?g[0]:!0;return p&&m?`${lce}${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}`}},tH=(e,t={})=>{Rn(e)||Kr("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||We("popup"),r=G6(()=>n.bm("parent","hidden"));if(!vn||jo(document.body,r.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{bi(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=o)},200)};ze(e,l=>{if(!l){s();return}i=!jo(document.body,r.value),i&&(o=document.body.style.width),a=Hz(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=mu(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),As(document.body,r.value)}),xE(()=>s())},uce=os({type:Ce(Boolean),default:null}),cce=os({type:Ce(Function)}),nH=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],a={[e]:uce,[n]:cce};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=Nt(),{emit:h}=d,v=d.props,p=R(()=>At(v[n])),g=R(()=>v[e]===null),m=x=>{o.value!==!0&&(o.value=!0,s&&(s.value=x),At(c)&&c(x))},b=x=>{o.value!==!1&&(o.value=!1,s&&(s.value=x),At(f)&&f(x))},w=x=>{if(v.disabled===!0||At(u)&&!u())return;const T=p.value&&vn;T&&h(t,!0),(g.value||!T)&&m(x)},S=x=>{if(v.disabled===!0||!vn)return;const T=p.value&&vn;T&&h(t,!1),(g.value||!T)&&b(x)},C=x=>{Gr(x)&&(v.disabled&&x?p.value&&h(t,!1):o.value!==x&&(x?m():b()))},y=()=>{o.value?S():w()};return ze(()=>v[e],C),l&&d.appContext.config.globalProperties.$route!==void 0&&ze(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&S()}),zt(()=>{C(v[e])}),{hide:S,show:w,toggle:y,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:r}};nH("modelValue");const rH=e=>{const t=Nt();return R(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})};var _i="top",vo="bottom",po="right",wi="left",bM="auto",sy=[_i,vo,po,wi],jh="start",em="end",fce="clippingParents",aH="viewport",ap="popper",dce="reference",dO=sy.reduce(function(e,t){return e.concat([t+"-"+jh,t+"-"+em])},[]),ld=[].concat(sy,[bM]).reduce(function(e,t){return e.concat([t,t+"-"+jh,t+"-"+em])},[]),hce="beforeRead",vce="read",pce="afterRead",gce="beforeMain",mce="main",yce="afterMain",bce="beforeWrite",_ce="write",wce="afterWrite",Sce=[hce,vce,pce,gce,mce,yce,bce,_ce,wce];function Bs(e){return e?(e.nodeName||"").toLowerCase():null}function ss(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yh(e){var t=ss(e).Element;return e instanceof t||e instanceof Element}function lo(e){var t=ss(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function _M(e){if(typeof ShadowRoot>"u")return!1;var t=ss(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Cce(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];!lo(i)||!Bs(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 xce(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},{});!lo(a)||!Bs(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var iH={name:"applyStyles",enabled:!0,phase:"write",fn:Cce,effect:xce,requires:["computeStyles"]};function Ls(e){return e.split("-")[0]}var Lf=Math.max,P1=Math.min,qh=Math.round;function Xh(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,a=1;if(lo(e)&&t){var i=e.offsetHeight,o=e.offsetWidth;o>0&&(r=qh(n.width)/o||1),i>0&&(a=qh(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 wM(e){var t=Xh(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 oH(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&_M(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wl(e){return ss(e).getComputedStyle(e)}function Tce(e){return["table","td","th"].indexOf(Bs(e))>=0}function ac(e){return((Yh(e)?e.ownerDocument:e.document)||window.document).documentElement}function xw(e){return Bs(e)==="html"?e:e.assignedSlot||e.parentNode||(_M(e)?e.host:null)||ac(e)}function hO(e){return!lo(e)||wl(e).position==="fixed"?null:e.offsetParent}function kce(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&lo(e)){var r=wl(e);if(r.position==="fixed")return null}var a=xw(e);for(_M(a)&&(a=a.host);lo(a)&&["html","body"].indexOf(Bs(a))<0;){var i=wl(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 ly(e){for(var t=ss(e),n=hO(e);n&&Tce(n)&&wl(n).position==="static";)n=hO(n);return n&&(Bs(n)==="html"||Bs(n)==="body"&&wl(n).position==="static")?t:n||kce(e)||t}function SM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fg(e,t,n){return Lf(e,P1(t,n))}function Ace(e,t,n){var r=fg(e,t,n);return r>n?n:r}function sH(){return{top:0,right:0,bottom:0,left:0}}function lH(e){return Object.assign({},sH(),e)}function uH(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ece=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,lH(typeof e!="number"?e:uH(e,sy))};function Mce(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Ls(n.placement),l=SM(s),u=[wi,po].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var f=Ece(a.padding,n),d=wM(i),h=l==="y"?_i:wi,v=l==="y"?vo:po,p=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],m=ly(i),b=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,w=p/2-g/2,S=f[h],C=b-d[c]-f[v],y=b/2-d[c]/2+w,x=fg(S,y,C),T=l;n.modifiersData[r]=(t={},t[T]=x,t.centerOffset=x-y,t)}}function Ice(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)||!oH(t.elements.popper,a)||(t.elements.arrow=a))}var Dce={name:"arrow",enabled:!0,phase:"main",fn:Mce,effect:Ice,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Zh(e){return e.split("-")[1]}var Lce={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pce(e){var t=e.x,n=e.y,r=window,a=r.devicePixelRatio||1;return{x:qh(t*a)/a||0,y:qh(n*a)/a||0}}function vO(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"),w=wi,S=_i,C=window;if(u){var y=ly(n),x="clientHeight",T="clientWidth";if(y===ss(n)&&(y=ac(n),wl(y).position!=="static"&&s==="absolute"&&(x="scrollHeight",T="scrollWidth")),y=y,a===_i||(a===wi||a===po)&&i===em){S=vo;var A=f&&y===C&&C.visualViewport?C.visualViewport.height:y[x];p-=A-r.height,p*=l?1:-1}if(a===wi||(a===_i||a===vo)&&i===em){w=po;var M=f&&y===C&&C.visualViewport?C.visualViewport.width:y[T];h-=M-r.width,h*=l?1:-1}}var E=Object.assign({position:s},u&&Lce),I=c===!0?Pce({x:h,y:p}):{x:h,y:p};if(h=I.x,p=I.y,l){var L;return Object.assign({},E,(L={},L[S]=b?"0":"",L[w]=m?"0":"",L.transform=(C.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",L))}return Object.assign({},E,(t={},t[S]=b?p+"px":"",t[w]=m?h+"px":"",t.transform="",t))}function Rce(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:Ls(t.placement),variation:Zh(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,vO(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,vO(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 cH={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rce,data:{}},s0={passive:!0};function Oce(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=ss(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,s0)}),s&&l.addEventListener("resize",n.update,s0),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,s0)}),s&&l.removeEventListener("resize",n.update,s0)}}var fH={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Oce,data:{}},Nce={left:"right",right:"left",bottom:"top",top:"bottom"};function Pb(e){return e.replace(/left|right|bottom|top/g,function(t){return Nce[t]})}var $ce={start:"end",end:"start"};function pO(e){return e.replace(/start|end/g,function(t){return $ce[t]})}function CM(e){var t=ss(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function xM(e){return Xh(ac(e)).left+CM(e).scrollLeft}function Bce(e){var t=ss(e),n=ac(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+xM(e),y:s}}function Fce(e){var t,n=ac(e),r=CM(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=Lf(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Lf(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+xM(e),l=-r.scrollTop;return wl(a||n).direction==="rtl"&&(s+=Lf(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function TM(e){var t=wl(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function dH(e){return["html","body","#document"].indexOf(Bs(e))>=0?e.ownerDocument.body:lo(e)&&TM(e)?e:dH(xw(e))}function dg(e,t){var n;t===void 0&&(t=[]);var r=dH(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=ss(r),o=a?[i].concat(i.visualViewport||[],TM(r)?r:[]):r,s=t.concat(o);return a?s:s.concat(dg(xw(o)))}function TT(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Vce(e){var t=Xh(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 gO(e,t){return t===aH?TT(Bce(e)):Yh(t)?Vce(t):TT(Fce(ac(e)))}function zce(e){var t=dg(xw(e)),n=["absolute","fixed"].indexOf(wl(e).position)>=0,r=n&&lo(e)?ly(e):e;return Yh(r)?t.filter(function(a){return Yh(a)&&oH(a,r)&&Bs(a)!=="body"}):[]}function Hce(e,t,n){var r=t==="clippingParents"?zce(e):[].concat(t),a=[].concat(r,[n]),i=a[0],o=a.reduce(function(s,l){var u=gO(e,l);return s.top=Lf(u.top,s.top),s.right=P1(u.right,s.right),s.bottom=P1(u.bottom,s.bottom),s.left=Lf(u.left,s.left),s},gO(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 hH(e){var t=e.reference,n=e.element,r=e.placement,a=r?Ls(r):null,i=r?Zh(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(a){case _i:l={x:o,y:t.y-n.height};break;case vo:l={x:o,y:t.y+t.height};break;case po:l={x:t.x+t.width,y:s};break;case wi:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=a?SM(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case jh:l[u]=l[u]-(t[c]/2-n[c]/2);break;case em:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function tm(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?fce:i,s=n.rootBoundary,l=s===void 0?aH:s,u=n.elementContext,c=u===void 0?ap:u,f=n.altBoundary,d=f===void 0?!1:f,h=n.padding,v=h===void 0?0:h,p=lH(typeof v!="number"?v:uH(v,sy)),g=c===ap?dce:ap,m=e.rects.popper,b=e.elements[d?g:c],w=Hce(Yh(b)?b:b.contextElement||ac(e.elements.popper),o,l),S=Xh(e.elements.reference),C=hH({reference:S,element:m,strategy:"absolute",placement:a}),y=TT(Object.assign({},m,C)),x=c===ap?y:S,T={top:w.top-x.top+p.top,bottom:x.bottom-w.bottom+p.bottom,left:w.left-x.left+p.left,right:x.right-w.right+p.right},A=e.modifiersData.offset;if(c===ap&&A){var M=A[a];Object.keys(T).forEach(function(E){var I=[po,vo].indexOf(E)>=0?1:-1,L=[_i,vo].indexOf(E)>=0?"y":"x";T[E]+=M[L]*I})}return T}function Wce(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?ld:l,c=Zh(r),f=c?s?dO:dO.filter(function(v){return Zh(v)===c}):sy,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]=tm(e,{placement:p,boundary:a,rootBoundary:i,padding:o})[Ls(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function Gce(e){if(Ls(e)===bM)return[];var t=Pb(e);return[pO(e),t,pO(t)]}function Uce(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=Ls(g),b=m===g,w=l||(b||!v?[Pb(g)]:Gce(g)),S=[g].concat(w).reduce(function(ve,le){return ve.concat(Ls(le)===bM?Wce(t,{placement:le,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:p}):le)},[]),C=t.rects.reference,y=t.rects.popper,x=new Map,T=!0,A=S[0],M=0;M<S.length;M++){var E=S[M],I=Ls(E),L=Zh(E)===jh,O=[_i,vo].indexOf(I)>=0,z=O?"width":"height",F=tm(t,{placement:E,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),$=O?L?po:wi:L?vo:_i;C[z]>y[z]&&($=Pb($));var V=Pb($),P=[];if(i&&P.push(F[I]<=0),s&&P.push(F[$]<=0,F[V]<=0),P.every(function(ve){return ve})){A=E,T=!1;break}x.set(E,P)}if(T)for(var G=v?3:1,j=function(ve){var le=S.find(function(ce){var ue=x.get(ce);if(ue)return ue.slice(0,ve).every(function(Q){return Q})});if(le)return A=le,"break"},J=G;J>0;J--){var ne=j(J);if(ne==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}var Kce={name:"flip",enabled:!0,phase:"main",fn:Uce,requiresIfExists:["offset"],data:{_skip:!1}};function mO(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 yO(e){return[_i,po,vo,wi].some(function(t){return e[t]>=0})}function jce(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,o=tm(t,{elementContext:"reference"}),s=tm(t,{altBoundary:!0}),l=mO(o,r),u=mO(s,a,i),c=yO(l),f=yO(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 Yce={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:jce};function qce(e,t,n){var r=Ls(e),a=[wi,_i].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,[wi,po].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Xce(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,o=ld.reduce(function(c,f){return c[f]=qce(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 Zce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Xce};function Jce(e){var t=e.state,n=e.name;t.modifiersData[n]=hH({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var vH={name:"popperOffsets",enabled:!0,phase:"read",fn:Jce,data:{}};function Qce(e){return e==="x"?"y":"x"}function efe(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=tm(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=Ls(t.placement),b=Zh(t.placement),w=!b,S=SM(m),C=Qce(S),y=t.modifiersData.popperOffsets,x=t.rects.reference,T=t.rects.popper,A=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,M=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(y){if(i){var L,O=S==="y"?_i:wi,z=S==="y"?vo:po,F=S==="y"?"height":"width",$=y[S],V=$+g[O],P=$-g[z],G=h?-T[F]/2:0,j=b===jh?x[F]:T[F],J=b===jh?-T[F]:-x[F],ne=t.elements.arrow,ve=h&&ne?wM(ne):{width:0,height:0},le=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sH(),ce=le[O],ue=le[z],Q=fg(0,x[F],ve[F]),_e=w?x[F]/2-G-Q-ce-M.mainAxis:j-Q-ce-M.mainAxis,Pe=w?-x[F]/2+G+Q+ue+M.mainAxis:J+Q+ue+M.mainAxis,pe=t.elements.arrow&&ly(t.elements.arrow),Y=pe?S==="y"?pe.clientTop||0:pe.clientLeft||0:0,ie=(L=E==null?void 0:E[S])!=null?L:0,me=$+_e-ie-Y,De=$+Pe-ie,Be=fg(h?P1(V,me):V,$,h?Lf(P,De):P);y[S]=Be,I[S]=Be-$}if(s){var Oe,de=S==="x"?_i:wi,we=S==="x"?vo:po,Se=y[C],Ie=C==="y"?"height":"width",Ee=Se+g[de],Ge=Se-g[we],Ue=[_i,wi].indexOf(m)!==-1,oe=(Oe=E==null?void 0:E[C])!=null?Oe:0,ke=Ue?Ee:Se-x[Ie]-T[Ie]-oe+M.altAxis,nt=Ue?Se+x[Ie]+T[Ie]-oe-M.altAxis:Ge,st=h&&Ue?Ace(ke,Se,nt):fg(h?ke:Ee,Se,h?nt:Ge);y[C]=st,I[C]=st-Se}t.modifiersData[r]=I}}var tfe={name:"preventOverflow",enabled:!0,phase:"main",fn:efe,requiresIfExists:["offset"]};function nfe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function rfe(e){return e===ss(e)||!lo(e)?CM(e):nfe(e)}function afe(e){var t=e.getBoundingClientRect(),n=qh(t.width)/e.offsetWidth||1,r=qh(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ife(e,t,n){n===void 0&&(n=!1);var r=lo(t),a=lo(t)&&afe(t),i=ac(t),o=Xh(e,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Bs(t)!=="body"||TM(i))&&(s=rfe(t)),lo(t)?(l=Xh(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=xM(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function ofe(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 sfe(e){var t=ofe(e);return Sce.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function lfe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ufe(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 bO={placement:"bottom",modifiers:[],strategy:"absolute"};function _O(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function kM(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?bO:a;return function(o,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},bO,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:Yh(o)?dg(o):o.contextElement?dg(o.contextElement):[],popper:dg(s)};var m=sfe(ufe([].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(_O(g,m)){u.rects={reference:ife(g,ly(m),u.options.strategy==="fixed"),popper:wM(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 w=u.orderedModifiers[b],S=w.fn,C=w.options,y=C===void 0?{}:C,x=w.name;typeof S=="function"&&(u=S({state:u,options:y,name:x,instance:d})||u)}}}},update:lfe(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){v(),f=!0}};if(!_O(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,w=p.effect;if(typeof w=="function"){var S=w({state:u,name:g,instance:d,options:b}),C=function(){};c.push(S||C)}})}function v(){c.forEach(function(p){return p()}),c=[]}return d}}kM();var cfe=[fH,vH,cH,iH];kM({defaultModifiers:cfe});var ffe=[fH,vH,cH,iH,Zce,Kce,tfe,Dce,Yce],pH=kM({defaultModifiers:ffe});const dfe=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=hfe(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=R(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=_(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),i=Wn(),o=U({styles:{popper:{position:_(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return ze(a,l=>{const u=_(i);u&&u.setOptions(l)},{deep:!0}),ze([e,t],([l,u])=>{s(),!(!l||!u)&&(i.value=pH(l,u,_(a)))}),sr(()=>{s()}),{state:R(()=>{var l;return{...((l=_(i))==null?void 0:l.state)||{}}}),styles:R(()=>_(o).styles),attributes:R(()=>_(o).attributes),update:()=>{var l;return(l=_(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=_(i))==null?void 0:l.forceUpdate()},instanceRef:R(()=>_(i))}};function hfe(e){const t=Object.keys(e.elements),n=L1(t.map(a=>[a,e.styles[a]||{}])),r=L1(t.map(a=>[a,e.attributes[a]]));return{styles:n,attributes:r}}const AM=e=>{if(!e)return{onClick:On,onMousedown:On,onMouseup:On};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}}},vfe=(e,t=0)=>{if(t===0)return e;const n=U(!1);let r=0;const a=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=e.value},t)};return zt(a),ze(()=>e.value,i=>{i?a():n.value=i}),n};function wO(){let e;const t=(r,a)=>{n(),e=window.setTimeout(r,a)},n=()=>window.clearTimeout(e);return uw(()=>n()),{registerTimeout:t,cancelTimeout:n}}const SO={prefix:Math.floor(Math.random()*1e4),current:0},pfe=Symbol("elIdInjection"),gH=()=>Nt()?ct(pfe,SO):SO,go=e=>{const t=gH(),n=yM();return R(()=>_(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let Qd=[];const CO=e=>{const t=e;t.key===_t.esc&&Qd.forEach(n=>n(t))},gfe=e=>{zt(()=>{Qd.length===0&&document.addEventListener("keydown",CO),vn&&Qd.push(e)}),sr(()=>{Qd=Qd.filter(t=>t!==e),Qd.length===0&&vn&&document.removeEventListener("keydown",CO)})};let xO;const mH=()=>{const e=yM(),t=gH(),n=R(()=>`${e.value}-popper-container-${t.prefix}`),r=R(()=>`#${n.value}`);return{id:n,selector:r}},mfe=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},yfe=()=>{const{id:e,selector:t}=mH();return nw(()=>{vn&&!xO&&!document.body.querySelector(t.value)&&(xO=mfe(e.value))}),{id:e,selector:t}},bfe=Je({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),yH=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=wO(),{registerTimeout:o,cancelTimeout:s}=wO();return{onOpen:c=>{i(()=>{r(c);const f=_(n);kt(f)&&f>0&&o(()=>{a(c)},f)},_(e))},onClose:c=>{s(),i(()=>{a(c)},_(t))}}},bH=Symbol("elForwardRef"),_fe=e=>{tn(bH,{setForwardRef:n=>{e.value=n}})},wfe=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),TO=U(0),_H=2e3,wH=Symbol("zIndexContextKey"),_v=e=>{const t=e||(Nt()?ct(wH,void 0):void 0),n=R(()=>{const i=_(t);return kt(i)?i:_H}),r=R(()=>n.value+TO.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(TO.value++,r.value)}},nm=Math.min,Sh=Math.max,R1=Math.round,Hu=e=>({x:e,y:e});function Sfe(e,t,n){return Sh(e,nm(t,n))}function SH(e,t){return typeof e=="function"?e(t):e}function EM(e){return e.split("-")[0]}function MM(e){return e.split("-")[1]}function Cfe(e){return e==="x"?"y":"x"}function CH(e){return e==="y"?"height":"width"}function IM(e){return["top","bottom"].includes(EM(e))?"y":"x"}function xH(e){return Cfe(IM(e))}function xfe(e){return{top:0,right:0,bottom:0,left:0,...e}}function Tfe(e){return typeof e!="number"?xfe(e):{top:e,right:e,bottom:e,left:e}}function TH(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function kO(e,t,n){let{reference:r,floating:a}=e;const i=IM(t),o=xH(t),s=CH(o),l=EM(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(MM(t)){case"start":h[o]-=d*(n&&u?-1:1);break;case"end":h[o]+=d*(n&&u?-1:1);break}return h}const kfe=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}=kO(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:w,data:S,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=w??f,h={...h,[g]:{...h[g],...S}},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}=kO(u,d,l)),p=-1;continue}}return{x:c,y:f,placement:d,strategy:a,middlewareData:h}},Afe=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}=SH(e,t)||{};if(u==null)return{};const f=Tfe(c),d={x:n,y:r},h=xH(a),v=CH(h),p=await o.getDimensions(u),g=h==="y",m=g?"top":"left",b=g?"bottom":"right",w=g?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[h]-d[h]-i.floating[v],C=d[h]-i.reference[h],y=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let x=y?y[w]:0;(!x||!await(o.isElement==null?void 0:o.isElement(y)))&&(x=s.floating[w]||i.floating[v]);const T=S/2-C/2,A=x/2-p[v]/2-1,M=nm(f[m],A),E=nm(f[b],A),I=M,L=x-p[v]-E,O=x/2-p[v]/2+T,z=Sfe(I,O,L),F=!l.arrow&&MM(a)!=null&&O!=z&&i.reference[v]/2-(O<I?M:E)-p[v]/2<0,$=F?O<I?O-I:O-L:0;return{[h]:d[h]+$,data:{[h]:z,centerOffset:O-z-$,...F&&{alignmentOffset:$}},reset:F}}});async function Efe(e,t){const{placement:n,platform:r,elements:a}=e,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=EM(n),s=MM(n),l=IM(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,f=SH(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 Mfe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:r}=t,a=await Efe(t,e);return{x:n+a.x,y:r+a.y,data:a}}}};function Wu(e){return kH(e)?(e.nodeName||"").toLowerCase():"#document"}function Ni(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ic(e){var t;return(t=(kH(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kH(e){return e instanceof Node||e instanceof Ni(e).Node}function Sl(e){return e instanceof Element||e instanceof Ni(e).Element}function Fs(e){return e instanceof HTMLElement||e instanceof Ni(e).HTMLElement}function AO(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ni(e).ShadowRoot}function uy(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=mo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function Ife(e){return["table","td","th"].includes(Wu(e))}function DM(e){const t=LM(),n=mo(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 Dfe(e){let t=Jh(e);for(;Fs(t)&&!Tw(t);){if(DM(t))return t;t=Jh(t)}return null}function LM(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Tw(e){return["html","body","#document"].includes(Wu(e))}function mo(e){return Ni(e).getComputedStyle(e)}function kw(e){return Sl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Jh(e){if(Wu(e)==="html")return e;const t=e.assignedSlot||e.parentNode||AO(e)&&e.host||ic(e);return AO(t)?t.host:t}function AH(e){const t=Jh(e);return Tw(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fs(t)&&uy(t)?t:AH(t)}function kT(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=AH(e),i=a===((r=e.ownerDocument)==null?void 0:r.body),o=Ni(a);return i?t.concat(o,o.visualViewport||[],uy(a)?a:[],o.frameElement&&n?kT(o.frameElement):[]):t.concat(a,kT(a,[],n))}function EH(e){const t=mo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Fs(e),i=a?e.offsetWidth:n,o=a?e.offsetHeight:r,s=R1(n)!==i||R1(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function MH(e){return Sl(e)?e:e.contextElement}function Ch(e){const t=MH(e);if(!Fs(t))return Hu(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:i}=EH(t);let o=(i?R1(n.width):n.width)/r,s=(i?R1(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Lfe=Hu(0);function IH(e){const t=Ni(e);return!LM()||!t.visualViewport?Lfe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Pfe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ni(e)?!1:t}function rm(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=MH(e);let o=Hu(1);t&&(r?Sl(r)&&(o=Ch(r)):o=Ch(e));const s=Pfe(i,n,r)?IH(i):Hu(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=Ni(i),h=r&&Sl(r)?Ni(r):r;let v=d.frameElement;for(;v&&r&&h!==d;){const p=Ch(v),g=v.getBoundingClientRect(),m=mo(v),b=g.left+(v.clientLeft+parseFloat(m.paddingLeft))*p.x,w=g.top+(v.clientTop+parseFloat(m.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,f*=p.y,l+=b,u+=w,v=Ni(v).frameElement}}return TH({width:c,height:f,x:l,y:u})}function Rfe(e){let{rect:t,offsetParent:n,strategy:r}=e;const a=Fs(n),i=ic(n);if(n===i)return t;let o={scrollLeft:0,scrollTop:0},s=Hu(1);const l=Hu(0);if((a||!a&&r!=="fixed")&&((Wu(n)!=="body"||uy(i))&&(o=kw(n)),Fs(n))){const u=rm(n);s=Ch(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 Ofe(e){return Array.from(e.getClientRects())}function DH(e){return rm(ic(e)).left+kw(e).scrollLeft}function Nfe(e){const t=ic(e),n=kw(e),r=e.ownerDocument.body,a=Sh(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Sh(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+DH(e);const s=-n.scrollTop;return mo(r).direction==="rtl"&&(o+=Sh(t.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function $fe(e,t){const n=Ni(e),r=ic(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=LM();(!u||u&&t==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function Bfe(e,t){const n=rm(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,i=Fs(e)?Ch(e):Hu(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 EO(e,t,n){let r;if(t==="viewport")r=$fe(e,n);else if(t==="document")r=Nfe(ic(e));else if(Sl(t))r=Bfe(t,n);else{const a=IH(e);r={...t,x:t.x-a.x,y:t.y-a.y}}return TH(r)}function LH(e,t){const n=Jh(e);return n===t||!Sl(n)||Tw(n)?!1:mo(n).position==="fixed"||LH(n,t)}function Ffe(e,t){const n=t.get(e);if(n)return n;let r=kT(e,[],!1).filter(s=>Sl(s)&&Wu(s)!=="body"),a=null;const i=mo(e).position==="fixed";let o=i?Jh(e):e;for(;Sl(o)&&!Tw(o);){const s=mo(o),l=DM(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||uy(o)&&!l&&LH(e,o))?r=r.filter(c=>c!==o):a=s,o=Jh(o)}return t.set(e,r),r}function Vfe(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[...n==="clippingAncestors"?Ffe(t,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const f=EO(t,c,a);return u.top=Sh(f.top,u.top),u.right=nm(f.right,u.right),u.bottom=nm(f.bottom,u.bottom),u.left=Sh(f.left,u.left),u},EO(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function zfe(e){return EH(e)}function Hfe(e,t,n){const r=Fs(t),a=ic(t),i=n==="fixed",o=rm(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Hu(0);if(r||!r&&!i)if((Wu(t)!=="body"||uy(a))&&(s=kw(t)),r){const u=rm(t,!0,i,t);l.x=u.x+t.clientLeft,l.y=u.y+t.clientTop}else a&&(l.x=DH(a));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function MO(e,t){return!Fs(e)||mo(e).position==="fixed"?null:t?t(e):e.offsetParent}function PH(e,t){const n=Ni(e);if(!Fs(e))return n;let r=MO(e,t);for(;r&&Ife(r)&&mo(r).position==="static";)r=MO(r,t);return r&&(Wu(r)==="html"||Wu(r)==="body"&&mo(r).position==="static"&&!DM(r))?n:r||Dfe(e)||n}const Wfe=async function(e){let{reference:t,floating:n,strategy:r}=e;const a=this.getOffsetParent||PH,i=this.getDimensions;return{reference:Hfe(t,await a(n),r),floating:{x:0,y:0,...await i(n)}}};function Gfe(e){return mo(e).direction==="rtl"}const Ufe={convertOffsetParentRelativeRectToViewportRelativeRect:Rfe,getDocumentElement:ic,getClippingRect:Vfe,getOffsetParent:PH,getElementRects:Wfe,getClientRects:Ofe,getDimensions:zfe,getScale:Ch,isElement:Sl,isRTL:Gfe},Kfe=(e,t,n)=>{const r=new Map,a={platform:Ufe,...n},i={...a.platform,_c:r};return kfe(e,t,{...a,platform:i})};Je({});const jfe=e=>{if(!vn)return;if(!e)return e;const t=Li(e);return t||(Rn(e)?t:e)},Yfe=({middleware:e,placement:t,strategy:n})=>{const r=U(),a=U(),i=U(),o=U(),s=U({}),l={x:i,y:o,placement:t,strategy:n,middlewareData:s},u=async()=>{if(!vn)return;const c=jfe(r),f=Li(a);if(!c||!f)return;const d=await Kfe(c,f,{placement:_(t),strategy:_(n),middleware:_(e)});Qg(l).forEach(h=>{l[h].value=d[h]})};return zt(()=>{Oi(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:a}},qfe=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const r=_(e);return r?Afe({element:r,padding:t}).fn(n):{}}});function Xfe(e){const t=U();function n(){if(e.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=e.value;if(a==null||i==null)return;const s=o.slice(0,Math.max(0,a)),l=o.slice(Math.max(0,i));t.value={selectionStart:a,selectionEnd:i,value:o,beforeTxt:s,afterTxt:l}}function r(){if(e.value==null||t.value==null)return;const{value:a}=e.value,{beforeTxt:i,afterTxt:o,selectionStart:s}=t.value;if(i==null||o==null||s==null)return;let l=a.length;if(a.endsWith(o))l=a.length-o.length;else if(a.startsWith(i))l=i.length;else{const u=i[s-1],c=a.indexOf(u,s-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[n,r]}const Zfe=(e,t,n)=>wh(e.subTree).filter(i=>{var o;return fr(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=Wn([]);return{children:r,addChild:o=>{n[o.uid]=o,r.value=Zfe(e,t,n)},removeChild:o=>{delete n[o],r.value=r.value.filter(s=>s.uid!==o)}}},Sa=os({type:String,values:Gs,required:!1}),RH=Symbol("size"),Jfe=()=>{const e=ct(RH,{});return R(()=>_(e.size)||"")};function Qfe(e,{afterFocus:t,afterBlur:n}={}){const r=Nt(),{emit:a}=r,i=Wn(),o=U(!1),s=c=>{o.value||(o.value=!0,a("focus",c),t==null||t())},l=c=>{var f;c.relatedTarget&&((f=i.value)!=null&&f.contains(c.relatedTarget))||(o.value=!1,a("blur",c),n==null||n())},u=()=>{var c;(c=e.value)==null||c.focus()};return ze(i,c=>{c&&c.setAttribute("tabindex","-1")}),ir(i,"click",u),{wrapperRef:i,isFocused:o,handleFocus:s,handleBlur:l}}const OH=Symbol(),O1=U();function Aw(e,t=void 0){const n=Nt()?ct(OH,O1):O1;return e?R(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[e])!=null?a:t}):n}function Ew(e,t){const n=Aw(),r=We(e,R(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||cg})),a=bn(R(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=_v(R(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||_H})),o=R(()=>{var s;return _(t)||((s=n.value)==null?void 0:s.size)||""});return RM(R(()=>_(n)||{})),{ns:r,locale:a,zIndex:i,size:o}}const RM=(e,t,n=!1)=>{var r;const a=!!Nt(),i=a?Aw():void 0,o=(r=t==null?void 0:t.provide)!=null?r:a?tn:void 0;if(!o)return;const s=R(()=>{const l=_(e);return i!=null&&i.value?ede(i.value,l):l});return o(OH,s),o(Qz,R(()=>s.value.locale)),o(eH,R(()=>s.value.namespace)),o(wH,R(()=>s.value.zIndex)),o(RH,{size:R(()=>s.value.size||"")}),(n||!O1.value)&&(O1.value=s.value),s},ede=(e,t)=>{var n;const r=[...new Set([...Qg(e),...Qg(t)])],a={};for(const i of r)a[i]=(n=t[i])!=null?n:e[i];return a},tde=Je({a11y:{type:Boolean,default:!0},locale:{type:Ce(Object)},size:Sa,button:{type:Ce(Object)},experimentalFeatures:{type:Ce(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Ce(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),AT={},nde=te({name:"ElConfigProvider",props:tde,setup(e,{slots:t}){ze(()=>e.message,r=>{Object.assign(AT,r??{})},{immediate:!0,deep:!0});const n=RM(e);return()=>Ve(t,"default",{config:n==null?void 0:n.value})}}),rde=Ut(nde),ade="2.3.14",ide=(e=[])=>({version:ade,install:(n,r)=>{n[cO]||(n[cO]=!0,e.forEach(a=>n.use(a)),r&&RM(r,n,!0))}}),ode=Je({zIndex:{type:Ce([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),sde={scroll:({scrollTop:e,fixed:t})=>kt(e)&&Gr(t),[nr]:e=>Gr(e)};var Xe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n};const NH="ElAffix",lde=te({name:NH}),ude=te({...lde,props:ode,emits:sde,setup(e,{expose:t,emit:n}){const r=e,a=We("affix"),i=Wn(),o=Wn(),s=Wn(),{height:l}=_ne(),{height:u,width:c,top:f,bottom:d,update:h}=AR(o,{windowScroll:!1}),v=AR(i),p=U(!1),g=U(0),m=U(0),b=R(()=>({height:p.value?`${u.value}px`:"",width:p.value?`${c.value}px`:""})),w=R(()=>{if(!p.value)return{};const y=r.offset?kr(r.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:r.position==="top"?y:"",bottom:r.position==="bottom"?y:"",transform:m.value?`translateY(${m.value}px)`:"",zIndex:r.zIndex}}),S=()=>{if(s.value)if(g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const y=v.bottom.value-r.offset-u.value;p.value=r.offset>f.value&&v.bottom.value>0,m.value=y<0?y:0}else p.value=r.offset>f.value;else if(r.target){const y=l.value-v.top.value-r.offset-u.value;p.value=l.value-r.offset<d.value&&l.value>v.top.value,m.value=y<0?-y:0}else p.value=l.value-r.offset<d.value},C=()=>{h(),n("scroll",{scrollTop:g.value,fixed:p.value})};return ze(p,y=>n("change",y)),zt(()=>{var y;r.target?(i.value=(y=document.querySelector(r.target))!=null?y:void 0,i.value||Kr(NH,`Target is not existed: ${r.target}`)):i.value=document.documentElement,s.value=fM(o.value,!0),h()}),ir(s,"scroll",C),Oi(S),t({update:S,updateRoot:h}),(y,x)=>(N(),X("div",{ref_key:"root",ref:o,class:H(_(a).b()),style:mt(_(b))},[ee("div",{class:H({[_(a).m("fixed")]:p.value}),style:mt(_(w))},[Ve(y.$slots,"default")],6)],6))}});var cde=Xe(ude,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const fde=Ut(cde),dde=Je({size:{type:Ce([Number,String])},color:{type:String}}),hde=te({name:"ElIcon",inheritAttrs:!1}),vde=te({...hde,props:dde,setup(e){const t=e,n=We("icon"),r=R(()=>{const{size:a,color:i}=t;return!a&&!i?{}:{fontSize:Xr(a)?void 0:kr(a),"--color":i}});return(a,i)=>(N(),X("i",qt({class:_(n).b(),style:_(r)},a.$attrs),[Ve(a.$slots,"default")],16))}});var pde=Xe(vde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const vt=Ut(pde),gde=["light","dark"],mde=Je({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Qg(zu),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:gde,default:"light"}}),yde={close:e=>e instanceof MouseEvent},bde=te({name:"ElAlert"}),_de=te({...bde,props:mde,emits:yde,setup(e,{emit:t}){const n=e,{Close:r}=pM,a=ka(),i=We("alert"),o=U(!0),s=R(()=>zu[n.type]),l=R(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!a.default}]),u=R(()=>({[i.is("bold")]:n.description||a.default})),c=f=>{o.value=!1,t("close",f)};return(f,d)=>(N(),Te(Mr,{name:_(i).b("fade"),persisted:""},{default:fe(()=>[Rt(ee("div",{class:H([_(i).b(),_(i).m(f.type),_(i).is("center",f.center),_(i).is(f.effect)]),role:"alert"},[f.showIcon&&_(s)?(N(),Te(_(vt),{key:0,class:H(_(l))},{default:fe(()=>[(N(),Te(Xt(_(s))))]),_:1},8,["class"])):be("v-if",!0),ee("div",{class:H(_(i).e("content"))},[f.title||f.$slots.title?(N(),X("span",{key:0,class:H([_(i).e("title"),_(u)])},[Ve(f.$slots,"title",{},()=>[Cn(qe(f.title),1)])],2)):be("v-if",!0),f.$slots.default||f.description?(N(),X("p",{key:1,class:H(_(i).e("description"))},[Ve(f.$slots,"default",{},()=>[Cn(qe(f.description),1)])],2)):be("v-if",!0),f.closable?(N(),X(gt,{key:2},[f.closeText?(N(),X("div",{key:0,class:H([_(i).e("close-btn"),_(i).is("customed")]),onClick:c},qe(f.closeText),3)):(N(),Te(_(vt),{key:1,class:H(_(i).e("close-btn")),onClick:c},{default:fe(()=>[re(_(r))]),_:1},8,["class"]))],64)):be("v-if",!0)],2)],2),[[Sn,o.value]])]),_:3},8,["name"]))}});var wde=Xe(_de,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const Sde=Ut(wde),ud=Symbol("formContextKey"),Vs=Symbol("formItemContextKey"),jr=(e,t={})=>{const n=U(void 0),r=t.prop?n:rH("size"),a=t.global?n:Jfe(),i=t.form?{size:void 0}:ct(ud,void 0),o=t.formItem?{size:void 0}:ct(Vs,void 0);return R(()=>r.value||_(e)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},xi=e=>{const t=rH("disabled"),n=ct(ud,void 0);return R(()=>t.value||_(e)||(n==null?void 0:n.disabled)||!1)},si=()=>{const e=ct(ud,void 0),t=ct(Vs,void 0);return{form:e,formItem:t}},oc=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=U(!1)),r||(r=U(!1));const a=U();let i;const o=R(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return zt(()=>{i=ze([vr(e,"id"),n],([s,l])=>{const u=s??(l?void 0:go().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})}),Pl(()=>{i&&i(),t!=null&&t.removeInputId&&a.value&&t.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},Cde=Je({size:{type:String,values:Gs},disabled:Boolean}),xde=Je({...Cde,model:Object,rules:{type:Ce(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]}}),Tde={validate:(e,t,n)=>(ft(e)||Mt(e))&&Gr(t)&&Mt(n)};function kde(){const e=U([]),t=R(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const o=e.value.indexOf(i);return o===-1&&t.value,o}function r(i,o){if(i&&o){const s=n(o);e.value.splice(s,1,i)}else i&&e.value.push(i)}function a(i){const o=n(i);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:a}}const l0=(e,t)=>{const n=Uf(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},Ade="ElForm",Ede=te({name:Ade}),Mde=te({...Ede,props:xde,emits:Tde,setup(e,{expose:t,emit:n}){const r=e,a=[],i=jr(),o=We("form"),s=R(()=>{const{labelPosition:b,inline:w}=r;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${b}`)]:b,[o.m("inline")]:w}]}),l=b=>{a.push(b)},u=b=>{b.prop&&a.splice(a.indexOf(b),1)},c=(b=[])=>{r.model&&l0(a,b).forEach(w=>w.resetField())},f=(b=[])=>{l0(a,b).forEach(w=>w.clearValidate())},d=R(()=>!!r.model),h=b=>{if(a.length===0)return[];const w=l0(a,b);return w.length?w:[]},v=async b=>g(void 0,b),p=async(b=[])=>{if(!d.value)return!1;const w=h(b);if(w.length===0)return!0;let S={};for(const C of w)try{await C.validate("")}catch(y){S={...S,...y}}return Object.keys(S).length===0?!0:Promise.reject(S)},g=async(b=[],w)=>{const S=!At(w);try{const C=await p(b);return C===!0&&(w==null||w(C)),C}catch(C){if(C instanceof Error)throw C;const y=C;return r.scrollToError&&m(Object.keys(y)[0]),w==null||w(!1,y),S&&Promise.reject(y)}},m=b=>{var w;const S=l0(a,b)[0];S&&((w=S.$el)==null||w.scrollIntoView(r.scrollIntoViewOptions))};return ze(()=>r.rules,()=>{r.validateOnRuleChange&&v().catch(b=>void 0)},{deep:!0}),tn(ud,xn({...Jr(r),emit:n,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...kde()})),t({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(b,w)=>(N(),X("form",{class:H(_(s))},[Ve(b.$slots,"default")],2))}});var Ide=Xe(Mde,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function pf(){return pf=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},pf.apply(this,arguments)}function Dde(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,am(e,t)}function ET(e){return ET=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ET(e)}function am(e,t){return am=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},am(e,t)}function Lde(){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 Rb(e,t,n){return Lde()?Rb=Reflect.construct.bind():Rb=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&am(u,o.prototype),u},Rb.apply(null,arguments)}function Pde(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function MT(e){var t=typeof Map=="function"?new Map:void 0;return MT=function(r){if(r===null||!Pde(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 Rb(r,arguments,ET(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),am(a,r)},MT(e)}var Rde=/%[sdj%]/g,Ode=function(){};typeof process<"u"&&process.env;function IT(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 Pi(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(Rde,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 Nde(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function oa(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Nde(t)&&typeof e=="string"&&!e)}function $de(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 IO(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 Bde(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var DO=function(e){Dde(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}(MT(Error));function Fde(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 DO(m,IT(m))):d(a)},p=Bde(e);IO(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 DO(c,IT(c))):d(a)};s.length||(r(c),d(a)),s.forEach(function(p){var g=e[p];o.indexOf(p)!==-1?IO(g,n,v):$de(g,n,v)})});return f.catch(function(d){return d}),f}function Vde(e){return!!(e&&e.message!==void 0)}function zde(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function LO(e,t){return function(n){var r;return e.fullFields?r=zde(t,e.fullFields):r=t[n.field||e.fullField],Vde(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 PO(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]=pf({},e[n],r):e[n]=r}}return e}var $H=function(t,n,r,a,i,o){t.required&&(!r.hasOwnProperty(t.field)||oa(n,o||t.type))&&a.push(Pi(i.messages.required,t.fullField))},Hde=function(t,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(Pi(i.messages.whitespace,t.fullField))},u0,Wde=function(){if(u0)return u0;var e="[a-fA-F\\d:]",t=function(S){return S&&S.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=(`
  16. (?:
  17. (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  18. (?:`+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
  19. (?:`+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
  20. (?:`+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
  21. (?:`+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
  22. (?:`+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
  23. (?:`+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
  24. (?::(?:(?::`+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
  25. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  26. `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),o=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),l=function(S){return S&&S.exact?i:new RegExp("(?:"+t(S)+n+t(S)+")|(?:"+t(S)+a+t(S)+")","g")};l.v4=function(w){return w&&w.exact?o:new RegExp(""+t(w)+n+t(w),"g")},l.v6=function(w){return w&&w.exact?s:new RegExp(""+t(w)+a+t(w),"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 u0=new RegExp("(?:^"+b+"$)","i"),u0},RO={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},zp={integer:function(t){return zp.number(t)&&parseInt(t,10)===t},float:function(t){return zp.number(t)&&!zp.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"&&!zp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(RO.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Wde())},hex:function(t){return typeof t=="string"&&!!t.match(RO.hex)}},Gde=function(t,n,r,a,i){if(t.required&&n===void 0){$H(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?zp[s](n)||a.push(Pi(i.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&a.push(Pi(i.messages.types[s],t.fullField,t.type))},Ude=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(Pi(i.messages[f].len,t.fullField,t.len)):s&&!l&&c<t.min?a.push(Pi(i.messages[f].min,t.fullField,t.min)):l&&!s&&c>t.max?a.push(Pi(i.messages[f].max,t.fullField,t.max)):s&&l&&(c<t.min||c>t.max)&&a.push(Pi(i.messages[f].range,t.fullField,t.min,t.max))},Ad="enum",Kde=function(t,n,r,a,i){t[Ad]=Array.isArray(t[Ad])?t[Ad]:[],t[Ad].indexOf(n)===-1&&a.push(Pi(i.messages[Ad],t.fullField,t[Ad].join(", ")))},jde=function(t,n,r,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||a.push(Pi(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(Pi(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Bn={required:$H,whitespace:Hde,type:Gde,range:Ude,enum:Kde,pattern:jde},Yde=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(oa(n,"string")&&!t.required)return r();Bn.required(t,n,a,o,i,"string"),oa(n,"string")||(Bn.type(t,n,a,o,i),Bn.range(t,n,a,o,i),Bn.pattern(t,n,a,o,i),t.whitespace===!0&&Bn.whitespace(t,n,a,o,i))}r(o)},qde=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Bn.required(t,n,a,o,i),n!==void 0&&Bn.type(t,n,a,o,i)}r(o)},Xde=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),oa(n)&&!t.required)return r();Bn.required(t,n,a,o,i),n!==void 0&&(Bn.type(t,n,a,o,i),Bn.range(t,n,a,o,i))}r(o)},Zde=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Bn.required(t,n,a,o,i),n!==void 0&&Bn.type(t,n,a,o,i)}r(o)},Jde=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Bn.required(t,n,a,o,i),oa(n)||Bn.type(t,n,a,o,i)}r(o)},Qde=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Bn.required(t,n,a,o,i),n!==void 0&&(Bn.type(t,n,a,o,i),Bn.range(t,n,a,o,i))}r(o)},ehe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Bn.required(t,n,a,o,i),n!==void 0&&(Bn.type(t,n,a,o,i),Bn.range(t,n,a,o,i))}r(o)},the=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();Bn.required(t,n,a,o,i,"array"),n!=null&&(Bn.type(t,n,a,o,i),Bn.range(t,n,a,o,i))}r(o)},nhe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Bn.required(t,n,a,o,i),n!==void 0&&Bn.type(t,n,a,o,i)}r(o)},rhe="enum",ahe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Bn.required(t,n,a,o,i),n!==void 0&&Bn[rhe](t,n,a,o,i)}r(o)},ihe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(oa(n,"string")&&!t.required)return r();Bn.required(t,n,a,o,i),oa(n,"string")||Bn.pattern(t,n,a,o,i)}r(o)},ohe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(oa(n,"date")&&!t.required)return r();if(Bn.required(t,n,a,o,i),!oa(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Bn.type(t,l,a,o,i),l&&Bn.range(t,l.getTime(),a,o,i)}}r(o)},she=function(t,n,r,a,i){var o=[],s=Array.isArray(n)?"array":typeof n;Bn.required(t,n,a,o,i,s),r(o)},uC=function(t,n,r,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(oa(n,o)&&!t.required)return r();Bn.required(t,n,a,s,i,o),oa(n,o)||Bn.type(t,n,a,s,i)}r(s)},lhe=function(t,n,r,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(oa(n)&&!t.required)return r();Bn.required(t,n,a,o,i)}r(o)},hg={string:Yde,method:qde,number:Xde,boolean:Zde,regexp:Jde,integer:Qde,float:ehe,array:the,object:nhe,enum:ahe,pattern:ihe,date:ohe,url:uC,hex:uC,email:uC,required:she,any:lhe};function DT(){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 LT=DT(),cy=function(){function e(n){this.rules=null,this._messages=LT,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=PO(DT(),r)),this._messages},t.validate=function(r,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=r,l=a,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(p){var g=[],m={};function b(S){if(Array.isArray(S)){var C;g=(C=g).concat.apply(C,S)}else g.push(S)}for(var w=0;w<p.length;w++)b(p[w]);g.length?(m=IT(g),u(g,m)):u(null,s)}if(l.messages){var f=this.messages();f===LT&&(f=DT()),PO(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 w=b;typeof w.transform=="function"&&(s===r&&(s=pf({},s)),m=s[p]=w.transform(m)),typeof w=="function"?w={validator:w}:w=pf({},w),w.validator=o.getValidationMethod(w),w.validator&&(w.field=p,w.fullField=w.fullField||p,w.type=o.getType(w),d[p]=d[p]||[],d[p].push({rule:w,value:m,source:s,field:p}))})});var v={};return Fde(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 w(y,x){return pf({},x,{fullField:m.fullField+"."+y,fullFields:m.fullFields?[].concat(m.fullFields,[y]):[y]})}function S(y){y===void 0&&(y=[]);var x=Array.isArray(y)?y:[y];!l.suppressWarning&&x.length&&e.warning("async-validator:",x),x.length&&m.message!==void 0&&(x=[].concat(m.message));var T=x.map(LO(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(LO(m,s)):l.error&&(T=[l.error(m,Pi(l.messages.required,m.field))]),g(T);var A={};m.defaultField&&Object.keys(p.value).map(function(I){A[I]=m.defaultField}),A=pf({},A,p.rule.fields);var M={};Object.keys(A).forEach(function(I){var L=A[I],O=Array.isArray(L)?L:[L];M[I]=O.map(w.bind(null,I))});var E=new e(M);E.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),E.validate(p.value,p.rule.options||l,function(I){var L=[];T&&T.length&&L.push.apply(L,T),I&&I.length&&L.push.apply(L,I),g(L.length?L:null)})}}var C;if(m.asyncValidator)C=m.asyncValidator(m,p.value,S,p.source,l);else if(m.validator){try{C=m.validator(m,p.value,S,p.source,l)}catch(y){console.error==null||console.error(y),l.suppressValidatorError||setTimeout(function(){throw y},0),S(y.message)}C===!0?S():C===!1?S(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):C instanceof Array?S(C):C instanceof Error&&S(C.message)}C&&C.then&&C.then(function(){return S()},function(y){return S(y)})},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&&!hg.hasOwnProperty(r.type))throw new Error(Pi("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"?hg.required:hg[this.getType(r)]||void 0},e}();cy.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");hg[t]=n};cy.warning=Ode;cy.messages=LT;cy.validators=hg;const uhe=["","error","validating","success"],che=Je({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Ce([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Ce([Object,Array])},error:String,validateStatus:{type:String,values:uhe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Gs}}),OO="ElLabelWrap";var fhe=te({name:OO,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=ct(ud,void 0),r=ct(Vs);r||Kr(OO,"usage: <el-form-item><label-wrap /></el-form-item>");const a=We("form"),i=U(),o=U(0),s=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{pt(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},u=()=>l("update");return zt(()=>{u()}),sr(()=>{l("remove")}),Ll(()=>u()),ze(o,(c,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,f))}),$a(R(()=>{var c,f;return(f=(c=i.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!t)return null;const{isAutoWidth:d}=e;if(d){const h=n==null?void 0:n.autoLabelWidth,v=r==null?void 0:r.hasLabel,p={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),m=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[m]=`${g}px`)}return re("div",{ref:i,class:[a.be("item","label-wrap")],style:p},[(c=t.default)==null?void 0:c.call(t)])}else return re(gt,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const dhe=["role","aria-labelledby"],hhe=te({name:"ElFormItem"}),vhe=te({...hhe,props:che,setup(e,{expose:t}){const n=e,r=ka(),a=ct(ud,void 0),i=ct(Vs,void 0),o=jr(void 0,{formItem:!1}),s=We("form-item"),l=go().value,u=U([]),c=U(""),f=ane(c,100),d=U(""),h=U();let v,p=!1;const g=R(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const ue=kr(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return ue?{width:ue}:{}}),m=R(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&A)return{};const ue=kr(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!r.label?{marginLeft:ue}:{}}),b=R(()=>[s.b(),s.m(o.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",O.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}]),w=R(()=>Gr(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),S=R(()=>[s.e("error"),{[s.em("error","inline")]:w.value}]),C=R(()=>n.prop?Mt(n.prop)?n.prop:n.prop.join("."):""),y=R(()=>!!(n.label||r.label)),x=R(()=>n.for||u.value.length===1?u.value[0]:void 0),T=R(()=>!x.value&&y.value),A=!!i,M=R(()=>{const ue=a==null?void 0:a.model;if(!(!ue||!n.prop))return Lb(ue,n.prop).value}),E=R(()=>{const{required:ue}=n,Q=[];n.rules&&Q.push(...Uf(n.rules));const _e=a==null?void 0:a.rules;if(_e&&n.prop){const Pe=Lb(_e,n.prop).value;Pe&&Q.push(...Uf(Pe))}if(ue!==void 0){const Pe=Q.map((pe,Y)=>[pe,Y]).filter(([pe])=>Object.keys(pe).includes("required"));if(Pe.length>0)for(const[pe,Y]of Pe)pe.required!==ue&&(Q[Y]={...pe,required:ue});else Q.push({required:ue})}return Q}),I=R(()=>E.value.length>0),L=ue=>E.value.filter(_e=>!_e.trigger||!ue?!0:Array.isArray(_e.trigger)?_e.trigger.includes(ue):_e.trigger===ue).map(({trigger:_e,...Pe})=>Pe),O=R(()=>E.value.some(ue=>ue.required)),z=R(()=>{var ue;return f.value==="error"&&n.showMessage&&((ue=a==null?void 0:a.showMessage)!=null?ue:!0)}),F=R(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),$=ue=>{c.value=ue},V=ue=>{var Q,_e;const{errors:Pe,fields:pe}=ue;(!Pe||!pe)&&console.error(ue),$("error"),d.value=Pe?(_e=(Q=Pe==null?void 0:Pe[0])==null?void 0:Q.message)!=null?_e:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,d.value)},P=()=>{$("success"),a==null||a.emit("validate",n.prop,!0,"")},G=async ue=>{const Q=C.value;return new cy({[Q]:ue}).validate({[Q]:M.value},{firstFields:!0}).then(()=>(P(),!0)).catch(Pe=>(V(Pe),Promise.reject(Pe)))},j=async(ue,Q)=>{if(p||!n.prop)return!1;const _e=At(Q);if(!I.value)return Q==null||Q(!1),!1;const Pe=L(ue);return Pe.length===0?(Q==null||Q(!0),!0):($("validating"),G(Pe).then(()=>(Q==null||Q(!0),!0)).catch(pe=>{const{fields:Y}=pe;return Q==null||Q(!1,Y),_e?!1:Promise.reject(Y)}))},J=()=>{$(""),d.value="",p=!1},ne=async()=>{const ue=a==null?void 0:a.model;if(!ue||!n.prop)return;const Q=Lb(ue,n.prop);p=!0,Q.value=aO(v),await pt(),J(),p=!1},ve=ue=>{u.value.includes(ue)||u.value.push(ue)},le=ue=>{u.value=u.value.filter(Q=>Q!==ue)};ze(()=>n.error,ue=>{d.value=ue||"",$(ue?"error":"")},{immediate:!0}),ze(()=>n.validateStatus,ue=>$(ue||""));const ce=xn({...Jr(n),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:T,hasLabel:y,addInputId:ve,removeInputId:le,resetField:ne,clearValidate:J,validate:j});return tn(Vs,ce),zt(()=>{n.prop&&(a==null||a.addField(ce),v=aO(M.value))}),sr(()=>{a==null||a.removeField(ce)}),t({size:o,validateMessage:d,validateState:c,validate:j,clearValidate:J,resetField:ne}),(ue,Q)=>{var _e;return N(),X("div",{ref_key:"formItemRef",ref:h,class:H(_(b)),role:_(T)?"group":void 0,"aria-labelledby":_(T)?_(l):void 0},[re(_(fhe),{"is-auto-width":_(g).width==="auto","update-all":((_e=_(a))==null?void 0:_e.labelWidth)==="auto"},{default:fe(()=>[_(y)?(N(),Te(Xt(_(x)?"label":"div"),{key:0,id:_(l),for:_(x),class:H(_(s).e("label")),style:mt(_(g))},{default:fe(()=>[Ve(ue.$slots,"label",{label:_(F)},()=>[Cn(qe(_(F)),1)])]),_:3},8,["id","for","class","style"])):be("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ee("div",{class:H(_(s).e("content")),style:mt(_(m))},[Ve(ue.$slots,"default"),re(A8,{name:`${_(s).namespace.value}-zoom-in-top`},{default:fe(()=>[_(z)?Ve(ue.$slots,"error",{key:0,error:d.value},()=>[ee("div",{class:H(_(S))},qe(d.value),3)]):be("v-if",!0)]),_:3},8,["name"])],6)],10,dhe)}}});var BH=Xe(vhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const phe=Ut(Ide,{FormItem:BH}),ghe=br(BH);let Io;const mhe=`
  27. height:0 !important;
  28. visibility:hidden !important;
  29. ${nz()?"":"overflow:hidden !important;"}
  30. position:absolute !important;
  31. z-index:-1000 !important;
  32. top:0 !important;
  33. right:0 !important;
  34. `,yhe=["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 bhe(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:yhe.map(o=>`${o}:${t.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function NO(e,t=1,n){var r;Io||(Io=document.createElement("textarea"),document.body.appendChild(Io));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=bhe(e);Io.setAttribute("style",`${s};${mhe}`),Io.value=e.value||e.placeholder||"";let l=Io.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),Io.value="";const c=Io.scrollHeight-a;if(kt(t)){let f=c*t;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(kt(n)){let f=c*n;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(r=Io.parentNode)==null||r.removeChild(Io),Io=void 0,u}const _he=Je({id:{type:String,default:void 0},size:Sa,disabled:Boolean,modelValue:{type:Ce([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ce([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:Kn},prefixIcon:{type:Kn},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:Ce([Object,Array,String]),default:()=>ur({})},autofocus:{type:Boolean,default:!1}}),whe={[Kt]:e=>Mt(e),input:e=>Mt(e),change:e=>Mt(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},She=["role"],Che=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],xhe=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],The=te({name:"ElInput",inheritAttrs:!1}),khe=te({...The,props:_he,emits:whe,setup(e,{expose:t,emit:n}){const r=e,a=rd(),i=ka(),o=R(()=>{const oe={};return r.containerRole==="combobox"&&(oe["aria-haspopup"]=a["aria-haspopup"],oe["aria-owns"]=a["aria-owns"],oe["aria-expanded"]=a["aria-expanded"]),oe}),s=R(()=>[r.type==="textarea"?g.b():p.b(),p.m(h.value),p.is("disabled",v.value),p.is("exceed",ve.value),{[p.b("group")]:i.prepend||i.append,[p.bm("group","append")]:i.append,[p.bm("group","prepend")]:i.prepend,[p.m("prefix")]:i.prefix||r.prefixIcon,[p.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[p.bm("suffix","password-clear")]:G.value&&j.value},a.class]),l=R(()=>[p.e("wrapper"),p.is("focus",M.value)]),u=mM({excludeKeys:R(()=>Object.keys(o.value))}),{form:c,formItem:f}=si(),{inputId:d}=oc(r,{formItemContext:f}),h=jr(),v=xi(),p=We("input"),g=We("textarea"),m=Wn(),b=Wn(),w=U(!1),S=U(!1),C=U(!1),y=U(),x=Wn(r.inputStyle),T=R(()=>m.value||b.value),{wrapperRef:A,isFocused:M,handleFocus:E,handleBlur:I}=Qfe(T,{afterBlur(){var oe;r.validateEvent&&((oe=f==null?void 0:f.validate)==null||oe.call(f,"blur").catch(ke=>void 0))}}),L=R(()=>{var oe;return(oe=c==null?void 0:c.statusIcon)!=null?oe:!1}),O=R(()=>(f==null?void 0:f.validateState)||""),z=R(()=>O.value&&gM[O.value]),F=R(()=>C.value?Hue:uue),$=R(()=>[a.style,r.inputStyle]),V=R(()=>[r.inputStyle,x.value,{resize:r.resize}]),P=R(()=>Wr(r.modelValue)?"":String(r.modelValue)),G=R(()=>r.clearable&&!v.value&&!r.readonly&&!!P.value&&(M.value||w.value)),j=R(()=>r.showPassword&&!v.value&&!r.readonly&&!!P.value&&(!!P.value||M.value)),J=R(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!v.value&&!r.readonly&&!r.showPassword),ne=R(()=>P.value.length),ve=R(()=>!!J.value&&ne.value>Number(u.value.maxlength)),le=R(()=>!!i.suffix||!!r.suffixIcon||G.value||r.showPassword||J.value||!!O.value&&L.value),[ce,ue]=Xfe(m);$a(b,oe=>{if(Pe(),!J.value||r.resize!=="both")return;const ke=oe[0],{width:nt}=ke.contentRect;y.value={right:`calc(100% - ${nt+15+6}px)`}});const Q=()=>{const{type:oe,autosize:ke}=r;if(!(!vn||oe!=="textarea"||!b.value))if(ke){const nt=Qt(ke)?ke.minRows:void 0,st=Qt(ke)?ke.maxRows:void 0,ut=NO(b.value,nt,st);x.value={overflowY:"hidden",...ut},pt(()=>{b.value.offsetHeight,x.value=ut})}else x.value={minHeight:NO(b.value).minHeight}},Pe=(oe=>{let ke=!1;return()=>{var nt;if(ke||!r.autosize)return;((nt=b.value)==null?void 0:nt.offsetParent)===null||(oe(),ke=!0)}})(Q),pe=()=>{const oe=T.value,ke=r.formatter?r.formatter(P.value):P.value;!oe||oe.value===ke||(oe.value=ke)},Y=async oe=>{ce();let{value:ke}=oe.target;if(r.formatter&&(ke=r.parser?r.parser(ke):ke),!S.value){if(ke===P.value){pe();return}n(Kt,ke),n("input",ke),await pt(),pe(),ue()}},ie=oe=>{n("change",oe.target.value)},me=oe=>{n("compositionstart",oe),S.value=!0},De=oe=>{var ke;n("compositionupdate",oe);const nt=(ke=oe.target)==null?void 0:ke.value,st=nt[nt.length-1]||"";S.value=!ww(st)},Be=oe=>{n("compositionend",oe),S.value&&(S.value=!1,Y(oe))},Oe=()=>{C.value=!C.value,de()},de=async()=>{var oe;await pt(),(oe=T.value)==null||oe.focus()},we=()=>{var oe;return(oe=T.value)==null?void 0:oe.blur()},Se=oe=>{w.value=!1,n("mouseleave",oe)},Ie=oe=>{w.value=!0,n("mouseenter",oe)},Ee=oe=>{n("keydown",oe)},Ge=()=>{var oe;(oe=T.value)==null||oe.select()},Ue=()=>{n(Kt,""),n("change",""),n("clear"),n("input","")};return ze(()=>r.modelValue,()=>{var oe;pt(()=>Q()),r.validateEvent&&((oe=f==null?void 0:f.validate)==null||oe.call(f,"change").catch(ke=>void 0))}),ze(P,()=>pe()),ze(()=>r.type,async()=>{await pt(),pe(),Q()}),zt(()=>{!r.formatter&&r.parser,pe(),pt(Q)}),t({input:m,textarea:b,ref:T,textareaStyle:V,autosize:vr(r,"autosize"),focus:de,blur:we,select:Ge,clear:Ue,resizeTextarea:Q}),(oe,ke)=>Rt((N(),X("div",qt(_(o),{class:_(s),style:_($),role:oe.containerRole,onMouseenter:Ie,onMouseleave:Se}),[be(" input "),oe.type!=="textarea"?(N(),X(gt,{key:0},[be(" prepend slot "),oe.$slots.prepend?(N(),X("div",{key:0,class:H(_(p).be("group","prepend"))},[Ve(oe.$slots,"prepend")],2)):be("v-if",!0),ee("div",{ref_key:"wrapperRef",ref:A,class:H(_(l))},[be(" prefix slot "),oe.$slots.prefix||oe.prefixIcon?(N(),X("span",{key:0,class:H(_(p).e("prefix"))},[ee("span",{class:H(_(p).e("prefix-inner"))},[Ve(oe.$slots,"prefix"),oe.prefixIcon?(N(),Te(_(vt),{key:0,class:H(_(p).e("icon"))},{default:fe(()=>[(N(),Te(Xt(oe.prefixIcon)))]),_:1},8,["class"])):be("v-if",!0)],2)],2)):be("v-if",!0),ee("input",qt({id:_(d),ref_key:"input",ref:m,class:_(p).e("inner")},_(u),{type:oe.showPassword?C.value?"text":"password":oe.type,disabled:_(v),formatter:oe.formatter,parser:oe.parser,readonly:oe.readonly,autocomplete:oe.autocomplete,tabindex:oe.tabindex,"aria-label":oe.label,placeholder:oe.placeholder,style:oe.inputStyle,form:r.form,autofocus:r.autofocus,onCompositionstart:me,onCompositionupdate:De,onCompositionend:Be,onInput:Y,onFocus:ke[0]||(ke[0]=(...nt)=>_(E)&&_(E)(...nt)),onBlur:ke[1]||(ke[1]=(...nt)=>_(I)&&_(I)(...nt)),onChange:ie,onKeydown:Ee}),null,16,Che),be(" suffix slot "),_(le)?(N(),X("span",{key:1,class:H(_(p).e("suffix"))},[ee("span",{class:H(_(p).e("suffix-inner"))},[!_(G)||!_(j)||!_(J)?(N(),X(gt,{key:0},[Ve(oe.$slots,"suffix"),oe.suffixIcon?(N(),Te(_(vt),{key:0,class:H(_(p).e("icon"))},{default:fe(()=>[(N(),Te(Xt(oe.suffixIcon)))]),_:1},8,["class"])):be("v-if",!0)],64)):be("v-if",!0),_(G)?(N(),Te(_(vt),{key:1,class:H([_(p).e("icon"),_(p).e("clear")]),onMousedown:xt(_(On),["prevent"]),onClick:Ue},{default:fe(()=>[re(_(nc))]),_:1},8,["class","onMousedown"])):be("v-if",!0),_(j)?(N(),Te(_(vt),{key:2,class:H([_(p).e("icon"),_(p).e("password")]),onClick:Oe},{default:fe(()=>[(N(),Te(Xt(_(F))))]),_:1},8,["class"])):be("v-if",!0),_(J)?(N(),X("span",{key:3,class:H(_(p).e("count"))},[ee("span",{class:H(_(p).e("count-inner"))},qe(_(ne))+" / "+qe(_(u).maxlength),3)],2)):be("v-if",!0),_(O)&&_(z)&&_(L)?(N(),Te(_(vt),{key:4,class:H([_(p).e("icon"),_(p).e("validateIcon"),_(p).is("loading",_(O)==="validating")])},{default:fe(()=>[(N(),Te(Xt(_(z))))]),_:1},8,["class"])):be("v-if",!0)],2)],2)):be("v-if",!0)],2),be(" append slot "),oe.$slots.append?(N(),X("div",{key:1,class:H(_(p).be("group","append"))},[Ve(oe.$slots,"append")],2)):be("v-if",!0)],64)):(N(),X(gt,{key:1},[be(" textarea "),ee("textarea",qt({id:_(d),ref_key:"textarea",ref:b,class:_(g).e("inner")},_(u),{tabindex:oe.tabindex,disabled:_(v),readonly:oe.readonly,autocomplete:oe.autocomplete,style:_(V),"aria-label":oe.label,placeholder:oe.placeholder,form:r.form,autofocus:r.autofocus,onCompositionstart:me,onCompositionupdate:De,onCompositionend:Be,onInput:Y,onFocus:ke[2]||(ke[2]=(...nt)=>_(E)&&_(E)(...nt)),onBlur:ke[3]||(ke[3]=(...nt)=>_(I)&&_(I)(...nt)),onChange:ie,onKeydown:Ee}),null,16,xhe),_(J)?(N(),X("span",{key:0,style:mt(y.value),class:H(_(p).e("count"))},qe(_(ne))+" / "+qe(_(u).maxlength),7)):be("v-if",!0)],64))],16,She)),[[Sn,oe.type!=="hidden"]])}});var Ahe=Xe(khe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Ra=Ut(Ahe),uh=4,FH={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"}},Ehe=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),VH=Symbol("scrollbarContextKey"),Mhe=Je({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Ihe="Thumb",Dhe=te({__name:"thumb",props:Mhe,setup(e){const t=e,n=ct(VH),r=We("scrollbar");n||Kr(Ihe,"can not inject scrollbar context");const a=U(),i=U(),o=U({}),s=U(!1);let l=!1,u=!1,c=vn?document.onselectstart:null;const f=R(()=>FH[t.vertical?"vertical":"horizontal"]),d=R(()=>Ehe({size:t.size,move:t.move,bar:f.value})),h=R(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),v=y=>{var x;if(y.stopPropagation(),y.ctrlKey||[1,2].includes(y.button))return;(x=window.getSelection())==null||x.removeAllRanges(),g(y);const T=y.currentTarget;T&&(o.value[f.value.axis]=T[f.value.offset]-(y[f.value.client]-T.getBoundingClientRect()[f.value.direction]))},p=y=>{if(!i.value||!a.value||!n.wrapElement)return;const x=Math.abs(y.target.getBoundingClientRect()[f.value.direction]-y[f.value.client]),T=i.value[f.value.offset]/2,A=(x-T)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=A*n.wrapElement[f.value.scrollSize]/100},g=y=>{y.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",b),c=document.onselectstart,document.onselectstart=()=>!1},m=y=>{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]-y[f.value.client])*-1,A=i.value[f.value.offset]-x,M=(T-A)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=M*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)},w=()=>{u=!1,s.value=!!t.size},S=()=>{u=!0,s.value=l};sr(()=>{C(),document.removeEventListener("mouseup",b)});const C=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return ir(vr(n,"scrollbarElement"),"mousemove",w),ir(vr(n,"scrollbarElement"),"mouseleave",S),(y,x)=>(N(),Te(Mr,{name:_(r).b("fade"),persisted:""},{default:fe(()=>[Rt(ee("div",{ref_key:"instance",ref:a,class:H([_(r).e("bar"),_(r).is(_(f).key)]),onMousedown:p},[ee("div",{ref_key:"thumb",ref:i,class:H(_(r).e("thumb")),style:mt(_(d)),onMousedown:v},null,38)],34),[[Sn,y.always||s.value]])]),_:1},8,["name"]))}});var $O=Xe(Dhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const Lhe=Je({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),Phe=te({__name:"bar",props:Lhe,setup(e,{expose:t}){const n=e,r=U(0),a=U(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-uh,l=o.offsetWidth-uh;a.value=o.scrollTop*100/s*n.ratioY,r.value=o.scrollLeft*100/l*n.ratioX}}}),(o,s)=>(N(),X(gt,null,[re($O,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),re($O,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var Rhe=Xe(Phe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const Ohe=Je({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Ce([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}}),Nhe={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(kt)},$he="ElScrollbar",Bhe=te({name:$he}),Fhe=te({...Bhe,props:Ohe,emits:Nhe,setup(e,{expose:t,emit:n}){const r=e,a=We("scrollbar");let i,o;const s=U(),l=U(),u=U(),c=U("0"),f=U("0"),d=U(),h=U(1),v=U(1),p=R(()=>{const x={};return r.height&&(x.height=kr(r.height)),r.maxHeight&&(x.maxHeight=kr(r.maxHeight)),[r.wrapStyle,x]}),g=R(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),m=R(()=>[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 w(x,T){Qt(x)?l.value.scrollTo(x):kt(x)&&kt(T)&&l.value.scrollTo(x,T)}const S=x=>{kt(x)&&(l.value.scrollTop=x)},C=x=>{kt(x)&&(l.value.scrollLeft=x)},y=()=>{if(!l.value)return;const x=l.value.offsetHeight-uh,T=l.value.offsetWidth-uh,A=x**2/l.value.scrollHeight,M=T**2/l.value.scrollWidth,E=Math.max(A,r.minSize),I=Math.max(M,r.minSize);h.value=A/(x-A)/(E/(x-E)),v.value=M/(T-M)/(I/(T-I)),f.value=E+uh<x?`${E}px`:"",c.value=I+uh<T?`${I}px`:""};return ze(()=>r.noresize,x=>{x?(i==null||i(),o==null||o()):({stop:i}=$a(u,y),o=ir("resize",y))},{immediate:!0}),ze(()=>[r.maxHeight,r.height],()=>{r.native||pt(()=>{var x;y(),l.value&&((x=d.value)==null||x.handleScroll(l.value))})}),tn(VH,xn({scrollbarElement:s,wrapElement:l})),zt(()=>{r.native||pt(()=>{y()})}),Ll(()=>y()),t({wrapRef:l,update:y,scrollTo:w,setScrollTop:S,setScrollLeft:C,handleScroll:b}),(x,T)=>(N(),X("div",{ref_key:"scrollbarRef",ref:s,class:H(_(a).b())},[ee("div",{ref_key:"wrapRef",ref:l,class:H(_(g)),style:mt(_(p)),onScroll:b},[(N(),Te(Xt(x.tag),{ref_key:"resizeRef",ref:u,class:H(_(m)),style:mt(x.viewStyle)},{default:fe(()=>[Ve(x.$slots,"default")]),_:3},8,["class","style"]))],38),x.native?be("v-if",!0):(N(),Te(Rhe,{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 Vhe=Xe(Fhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const $l=Ut(Vhe),OM=Symbol("popper"),zH=Symbol("popperContent"),zhe=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],HH=Je({role:{type:String,values:zhe,default:"tooltip"}}),Hhe=te({name:"ElPopper",inheritAttrs:!1}),Whe=te({...Hhe,props:HH,setup(e,{expose:t}){const n=e,r=U(),a=U(),i=U(),o=U(),s=R(()=>n.role),l={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return t(l),tn(OM,l),(u,c)=>Ve(u.$slots,"default")}});var Ghe=Xe(Whe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const WH=Je({arrowOffset:{type:Number,default:5}}),Uhe=te({name:"ElPopperArrow",inheritAttrs:!1}),Khe=te({...Uhe,props:WH,setup(e,{expose:t}){const n=e,r=We("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=ct(zH,void 0);return ze(()=>n.arrowOffset,s=>{a.value=s}),sr(()=>{i.value=void 0}),t({arrowRef:i}),(s,l)=>(N(),X("span",{ref_key:"arrowRef",ref:i,class:H(_(r).e("arrow")),style:mt(_(o)),"data-popper-arrow":""},null,6))}});var jhe=Xe(Khe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const Yhe="ElOnlyChild",GH=te({name:Yhe,setup(e,{slots:t,attrs:n}){var r;const a=ct(bH),i=wfe((r=a==null?void 0:a.setForwardRef)!=null?r:On);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,n);if(!s||s.length>1)return null;const l=UH(s);return l?Rt(_l(l,n),[[i]]):null}}});function UH(e){if(!e)return null;const t=e;for(const n of t){if(Qt(n))switch(n.type){case Xa:continue;case ad:case"svg":return BO(n);case gt:return UH(n.children);default:return n}return BO(n)}return null}function BO(e){const t=We("only-child");return re("span",{class:t.e("content")},[e])}const KH=Je({virtualRef:{type:Ce(Object)},virtualTriggering:Boolean,onMouseenter:{type:Ce(Function)},onMouseleave:{type:Ce(Function)},onClick:{type:Ce(Function)},onKeydown:{type:Ce(Function)},onFocus:{type:Ce(Function)},onBlur:{type:Ce(Function)},onContextmenu:{type:Ce(Function)},id:String,open:Boolean}),qhe=te({name:"ElPopperTrigger",inheritAttrs:!1}),Xhe=te({...qhe,props:KH,setup(e,{expose:t}){const n=e,{role:r,triggerRef:a}=ct(OM,void 0);_fe(a);const i=R(()=>s.value?n.id:void 0),o=R(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=R(()=>{if(r&&r.value!=="tooltip")return r.value}),l=R(()=>s.value?`${n.open}`:void 0);let u;return zt(()=>{ze(()=>n.virtualRef,c=>{c&&(a.value=Li(c))},{immediate:!0}),ze(a,(c,f)=>{u==null||u(),u=void 0,ho(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=ze([i,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{Wr(d[v])?c.removeAttribute(h):c.setAttribute(h,d[v])})},{immediate:!0})),ho(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),sr(()=>{u==null||u(),u=void 0}),t({triggerRef:a}),(c,f)=>c.virtualTriggering?be("v-if",!0):(N(),Te(_(GH),qt({key:0},c.$attrs,{"aria-controls":_(i),"aria-describedby":_(o),"aria-expanded":_(l),"aria-haspopup":_(s)}),{default:fe(()=>[Ve(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var Zhe=Xe(Xhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const cC="focus-trap.focus-after-trapped",fC="focus-trap.focus-after-released",Jhe="focus-trap.focusout-prevented",FO={cancelable:!0,bubbles:!1},Qhe={cancelable:!0,bubbles:!1},VO="focusAfterTrapped",zO="focusAfterReleased",NM=Symbol("elFocusTrap"),$M=U(),Mw=U(0),BM=U(0);let c0=0;const jH=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},HO=(e,t)=>{for(const n of e)if(!eve(n,t))return n},eve=(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},tve=e=>{const t=jH(e),n=HO(t,e),r=HO(t.reverse(),e);return[n,r]},nve=e=>e instanceof HTMLInputElement&&"select"in e,su=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),BM.value=window.performance.now(),e!==n&&nve(e)&&t&&e.select()}};function WO(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const rve=()=>{let e=[];return{push:r=>{const a=e[0];a&&r!==a&&a.pause(),e=WO(e,r),e.unshift(r)},remove:r=>{var a,i;e=WO(e,r),(i=(a=e[0])==null?void 0:a.resume)==null||i.call(a)}}},ave=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(su(r,t),document.activeElement!==n)return},GO=rve(),ive=()=>Mw.value>BM.value,f0=()=>{$M.value="pointer",Mw.value=window.performance.now()},UO=()=>{$M.value="keyboard",Mw.value=window.performance.now()},ove=()=>(zt(()=>{c0===0&&(document.addEventListener("mousedown",f0),document.addEventListener("touchstart",f0),document.addEventListener("keydown",UO)),c0++}),sr(()=>{c0--,c0<=0&&(document.removeEventListener("mousedown",f0),document.removeEventListener("touchstart",f0),document.removeEventListener("keydown",UO))}),{focusReason:$M,lastUserFocusTimestamp:Mw,lastAutomatedFocusTimestamp:BM}),d0=e=>new CustomEvent(Jhe,{...Qhe,detail:e}),sve=te({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[VO,zO,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=U();let r,a;const{focusReason:i}=ove();gfe(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:w,shiftKey:S}=v,{loop:C}=e,y=p===_t.tab&&!g&&!m&&!b,x=document.activeElement;if(y&&x){const T=w,[A,M]=tve(T);if(A&&M){if(!S&&x===M){const I=d0({focusReason:i.value});t("focusout-prevented",I),I.defaultPrevented||(v.preventDefault(),C&&su(A,!0))}else if(S&&[A,T].includes(x)){const I=d0({focusReason:i.value});t("focusout-prevented",I),I.defaultPrevented||(v.preventDefault(),C&&su(M,!0))}}else if(x===T){const I=d0({focusReason:i.value});t("focusout-prevented",I),I.defaultPrevented||v.preventDefault()}}};tn(NM,{focusTrapRef:n,onKeydown:s}),ze(()=>e.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),ze([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(VO,v)},u=v=>t(zO,v),c=v=>{const p=_(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:su(a,!0))},f=v=>{const p=_(n);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!Wr(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=d0({focusReason:i.value});t("focusout-prevented",m),m.defaultPrevented||su(a,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await pt();const v=_(n);if(v){GO.push(o);const p=v.contains(document.activeElement)?r:document.activeElement;if(r=p,!v.contains(p)){const m=new Event(cC,FO);v.addEventListener(cC,l),v.dispatchEvent(m),m.defaultPrevented||pt(()=>{let b=e.focusStartEl;Mt(b)||(su(b),document.activeElement!==b&&(b="first")),b==="first"&&ave(jH(v),!0),(document.activeElement===p||b==="container")&&su(v)})}}}function h(){const v=_(n);if(v){v.removeEventListener(cC,l);const p=new CustomEvent(fC,{...FO,detail:{focusReason:i.value}});v.addEventListener(fC,u),v.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!ive()||v.contains(document.activeElement))&&su(r??document.body),v.removeEventListener(fC,u),GO.remove(o)}}return zt(()=>{e.trapped&&d(),ze(()=>e.trapped,v=>{v?d():h()})}),sr(()=>{e.trapped&&h()}),{onKeydown:s}}});function lve(e,t,n,r,a,i){return Ve(e.$slots,"default",{handleKeydown:e.onKeydown})}var Iw=Xe(sve,[["render",lve],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const uve=["fixed","absolute"],cve=Je({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Ce(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:ld,default:"bottom"},popperOptions:{type:Ce(Object),default:()=>({})},strategy:{type:String,values:uve,default:"absolute"}}),YH=Je({...cve,id:String,style:{type:Ce([String,Array,Object])},className:{type:Ce([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:Ce([String,Array,Object])},popperStyle:{type:Ce([String,Array,Object])},referenceEl:{type:Ce(Object)},triggerTargetEl:{type:Ce(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),fve={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},dve=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:a}=e,i={placement:n,strategy:r,...a,modifiers:[...vve(e),...t]};return pve(i,a==null?void 0:a.modifiers),i},hve=e=>{if(vn)return Li(e)};function vve(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 pve(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const gve=0,mve=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:a}=ct(OM,void 0),i=U(),o=U(),s=R(()=>({name:"eventListeners",enabled:!!e.visible})),l=R(()=>{var m;const b=_(i),w=(m=_(o))!=null?m:gve;return{name:"arrow",enabled:!mle(b),options:{element:b,padding:w}}}),u=R(()=>({onFirstUpdate:()=>{v()},...dve(e,[_(l),_(s)])})),c=R(()=>hve(e.referenceEl)||_(r)),{attributes:f,state:d,styles:h,update:v,forceUpdate:p,instanceRef:g}=dfe(c,n,u);return ze(g,m=>t.value=m),zt(()=>{ze(()=>{var m;return(m=_(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}},yve=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:a}=_v(),i=We("popper"),o=R(()=>_(t).popper),s=U(e.zIndex||a()),l=R(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=R(()=>[{zIndex:_(s)},_(n).popper,e.popperStyle||{}]),c=R(()=>r.value==="dialog"?"false":void 0),f=R(()=>_(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=e.zIndex||a()}}},bve=(e,t)=>{const n=U(!1),r=U();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},_ve=te({name:"ElPopperContent"}),wve=te({..._ve,props:YH,emits:fve,setup(e,{expose:t,emit:n}){const r=e,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=bve(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:v,instanceRef:p,role:g,update:m}=mve(r),{ariaModal:b,arrowStyle:w,contentAttrs:S,contentClass:C,contentStyle:y,updateZIndex:x}=yve(r,{styles:v,attributes:f,role:g}),T=ct(Vs,void 0),A=U();tn(zH,{arrowStyle:w,arrowRef:d,arrowOffset:A}),T&&(T.addInputId||T.removeInputId)&&tn(Vs,{...T,addInputId:On,removeInputId:On});let M;const E=(L=!0)=>{m(),L&&x()},I=()=>{E(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return zt(()=>{ze(()=>r.triggerTargetEl,(L,O)=>{M==null||M(),M=void 0;const z=_(L||h.value),F=_(O||h.value);ho(z)&&(M=ze([g,()=>r.ariaLabel,b,()=>r.id],$=>{["role","aria-label","aria-modal","id"].forEach((V,P)=>{Wr($[P])?z.removeAttribute(V):z.setAttribute(V,$[P])})},{immediate:!0})),F!==z&&ho(F)&&["role","aria-label","aria-modal","id"].forEach($=>{F.removeAttribute($)})},{immediate:!0}),ze(()=>r.visible,I,{immediate:!0})}),sr(()=>{M==null||M(),M=void 0}),t({popperContentRef:h,popperInstanceRef:p,updatePopper:E,contentStyle:y}),(L,O)=>(N(),X("div",qt({ref_key:"contentRef",ref:h},_(S),{style:_(y),class:_(C),tabindex:"-1",onMouseenter:O[0]||(O[0]=z=>L.$emit("mouseenter",z)),onMouseleave:O[1]||(O[1]=z=>L.$emit("mouseleave",z))}),[re(_(Iw),{trapped:_(i),"trap-on-focus-in":!0,"focus-trap-el":_(h),"focus-start-el":_(a),onFocusAfterTrapped:_(s),onFocusAfterReleased:_(o),onFocusin:_(l),onFocusoutPrevented:_(u),onReleaseRequested:_(c)},{default:fe(()=>[Ve(L.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var Sve=Xe(wve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const qH=Ut(Ghe),Dw=Symbol("elTooltip"),da=Je({...bfe,...YH,appendTo:{type:Ce([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Ce(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),im=Je({...KH,disabled:Boolean,trigger:{type:Ce([String,Array]),default:"hover"},triggerKeys:{type:Ce(Array),default:()=>[_t.enter,_t.space]}}),{useModelToggleProps:Cve,useModelToggleEmits:xve,useModelToggle:Tve}=nH("visible"),kve=Je({...HH,...Cve,...da,...im,...WH,showArrow:{type:Boolean,default:!0}}),Ave=[...xve,"before-show","before-hide","show","hide","open","close"],Eve=(e,t)=>ft(e)?e.includes(t):e===t,Ed=(e,t,n)=>r=>{Eve(_(e),t)&&n(r)},Mve=te({name:"ElTooltipTrigger"}),Ive=te({...Mve,props:im,setup(e,{expose:t}){const n=e,r=We("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=ct(Dw,void 0),c=U(null),f=()=>{if(_(a)||n.disabled)return!0},d=vr(n,"trigger"),h=yr(f,Ed(d,"hover",s)),v=yr(f,Ed(d,"hover",l)),p=yr(f,Ed(d,"click",S=>{S.button===0&&u(S)})),g=yr(f,Ed(d,"focus",s)),m=yr(f,Ed(d,"focus",l)),b=yr(f,Ed(d,"contextmenu",S=>{S.preventDefault(),u(S)})),w=yr(f,S=>{const{code:C}=S;n.triggerKeys.includes(C)&&(S.preventDefault(),u(S))});return t({triggerRef:c}),(S,C)=>(N(),Te(_(Zhe),{id:_(i),"virtual-ref":S.virtualRef,open:_(o),"virtual-triggering":S.virtualTriggering,class:H(_(r).e("trigger")),onBlur:_(m),onClick:_(p),onContextmenu:_(b),onFocus:_(g),onMouseenter:_(h),onMouseleave:_(v),onKeydown:_(w)},{default:fe(()=>[Ve(S.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var Dve=Xe(Ive,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const Lve=te({name:"ElTooltipContent",inheritAttrs:!1}),Pve=te({...Lve,props:da,setup(e,{expose:t}){const n=e,{selector:r}=mH(),a=We("tooltip"),i=U(null),o=U(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:v,onBeforeShow:p,onBeforeHide:g}=ct(Dw,void 0),m=R(()=>n.transition||`${a.namespace.value}-fade-in-linear`),b=R(()=>n.persistent);sr(()=>{o.value=!0});const w=R(()=>_(b)?!0:_(u)),S=R(()=>n.disabled?!1:_(u)),C=R(()=>n.appendTo||r.value),y=R(()=>{var $;return($=n.style)!=null?$:{}}),x=R(()=>!_(u)),T=()=>{v()},A=()=>{if(_(s))return!0},M=yr(A,()=>{n.enterable&&_(c)==="hover"&&d()}),E=yr(A,()=>{_(c)==="hover"&&f()}),I=()=>{var $,V;(V=($=i.value)==null?void 0:$.updatePopper)==null||V.call($),p==null||p()},L=()=>{g==null||g()},O=()=>{h(),F=YE(R(()=>{var $;return($=i.value)==null?void 0:$.popperContentRef}),()=>{if(_(s))return;_(c)!=="hover"&&f()})},z=()=>{n.virtualTriggering||f()};let F;return ze(()=>_(u),$=>{$||F==null||F()},{flush:"post"}),ze(()=>n.content,()=>{var $,V;(V=($=i.value)==null?void 0:$.updatePopper)==null||V.call($)}),t({contentRef:i}),($,V)=>(N(),Te(Qm,{disabled:!$.teleported,to:_(C)},[re(Mr,{name:_(m),onAfterLeave:T,onBeforeEnter:I,onAfterEnter:O,onBeforeLeave:L},{default:fe(()=>[_(w)?Rt((N(),Te(_(Sve),qt({key:0,id:_(l),ref_key:"contentRef",ref:i},$.$attrs,{"aria-label":$.ariaLabel,"aria-hidden":_(x),"boundaries-padding":$.boundariesPadding,"fallback-placements":$.fallbackPlacements,"gpu-acceleration":$.gpuAcceleration,offset:$.offset,placement:$.placement,"popper-options":$.popperOptions,strategy:$.strategy,effect:$.effect,enterable:$.enterable,pure:$.pure,"popper-class":$.popperClass,"popper-style":[$.popperStyle,_(y)],"reference-el":$.referenceEl,"trigger-target-el":$.triggerTargetEl,visible:_(S),"z-index":$.zIndex,onMouseenter:_(M),onMouseleave:_(E),onBlur:z,onClose:_(f)}),{default:fe(()=>[o.value?be("v-if",!0):Ve($.$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"])),[[Sn,_(S)]]):be("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var Rve=Xe(Pve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const Ove=["innerHTML"],Nve={key:1},$ve=te({name:"ElTooltip"}),Bve=te({...$ve,props:kve,emits:Ave,setup(e,{expose:t,emit:n}){const r=e;yfe();const a=go(),i=U(),o=U(),s=()=>{var m;const b=_(i);b&&((m=b.popperInstanceRef)==null||m.update())},l=U(!1),u=U(),{show:c,hide:f,hasUpdateHandler:d}=Tve({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=yH({showAfter:vr(r,"showAfter"),hideAfter:vr(r,"hideAfter"),autoClose:vr(r,"autoClose"),open:c,close:f}),p=R(()=>Gr(r.visible)&&!d.value);tn(Dw,{controlled:p,id:a,open:gv(l),trigger:vr(r,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{_(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}),ze(()=>r.disabled,m=>{m&&l.value&&(l.value=!1)});const g=m=>{var b,w;const S=(w=(b=o.value)==null?void 0:b.contentRef)==null?void 0:w.popperContentRef,C=(m==null?void 0:m.relatedTarget)||document.activeElement;return S&&S.contains(C)};return t8(()=>l.value&&f()),t({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:f}),(m,b)=>(N(),Te(_(qH),{ref_key:"popperRef",ref:i,role:m.role},{default:fe(()=>[re(Dve,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:fe(()=>[m.$slots.default?Ve(m.$slots,"default",{key:0}):be("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),re(Rve,{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:fe(()=>[Ve(m.$slots,"content",{},()=>[m.rawContent?(N(),X("span",{key:0,innerHTML:m.content},null,8,Ove)):(N(),X("span",Nve,qe(m.content),1))]),m.showArrow?(N(),Te(_(jhe),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):be("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 Fve=Xe(Bve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ri=Ut(Fve),Vve=Je({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:Ce(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:Ce([Function,Array]),default:On},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:da.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),zve={[Kt]:e=>Mt(e),[Ja]:e=>Mt(e),[nr]:e=>Mt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Qt(e)},Hve=["aria-expanded","aria-owns"],Wve={key:0},Gve=["id","aria-selected","onClick"],XH="ElAutocomplete",Uve=te({name:XH,inheritAttrs:!1}),Kve=te({...Uve,props:Vve,emits:zve,setup(e,{expose:t,emit:n}){const r=e,a=mM(),i=rd(),o=xi(),s=We("autocomplete"),l=U(),u=U(),c=U(),f=U();let d=!1,h=!1;const v=U([]),p=U(-1),g=U(""),m=U(!1),b=U(!1),w=U(!1),S=R(()=>s.b(String(Cw()))),C=R(()=>i.style),y=R(()=>(v.value.length>0||w.value)&&m.value),x=R(()=>!r.hideLoading&&w.value),T=R(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),A=()=>{y.value&&(g.value=`${l.value.$el.offsetWidth}px`)},M=()=>{p.value=-1},I=ni(async ce=>{if(b.value)return;const ue=Q=>{w.value=!1,!b.value&&(ft(Q)?(v.value=Q,p.value=r.highlightFirstItem?0:-1):Kr(XH,"autocomplete suggestions must be an array"))};if(w.value=!0,ft(r.fetchSuggestions))ue(r.fetchSuggestions);else{const Q=await r.fetchSuggestions(ce,ue);ft(Q)&&ue(Q)}},r.debounce),L=ce=>{const ue=!!ce;if(n(Ja,ce),n(Kt,ce),b.value=!1,m.value||(m.value=ue),!r.triggerOnFocus&&!ce){b.value=!0,v.value=[];return}I(ce)},O=ce=>{var ue;o.value||(((ue=ce.target)==null?void 0:ue.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(m.value=!0)},z=ce=>{n(nr,ce)},F=ce=>{h?h=!1:(m.value=!0,n("focus",ce),r.triggerOnFocus&&!d&&I(String(r.modelValue)))},$=ce=>{setTimeout(()=>{var ue;if((ue=c.value)!=null&&ue.isFocusInsideContent()){h=!0;return}m.value&&j(),n("blur",ce)})},V=()=>{m.value=!1,n(Kt,""),n("clear")},P=async()=>{y.value&&p.value>=0&&p.value<v.value.length?ve(v.value[p.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),v.value=[],p.value=-1)},G=ce=>{y.value&&(ce.preventDefault(),ce.stopPropagation(),j())},j=()=>{m.value=!1},J=()=>{var ce;(ce=l.value)==null||ce.focus()},ne=()=>{var ce;(ce=l.value)==null||ce.blur()},ve=async ce=>{n(Ja,ce[r.valueKey]),n(Kt,ce[r.valueKey]),n("select",ce),v.value=[],p.value=-1},le=ce=>{if(!y.value||w.value)return;if(ce<0){p.value=-1;return}ce>=v.value.length&&(ce=v.value.length-1);const ue=u.value.querySelector(`.${s.be("suggestion","wrap")}`),_e=ue.querySelectorAll(`.${s.be("suggestion","list")} li`)[ce],Pe=ue.scrollTop,{offsetTop:pe,scrollHeight:Y}=_e;pe+Y>Pe+ue.clientHeight&&(ue.scrollTop+=Y),pe<Pe&&(ue.scrollTop-=Y),p.value=ce,l.value.ref.setAttribute("aria-activedescendant",`${S.value}-item-${p.value}`)};return YE(f,()=>{y.value&&j()}),zt(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${S.value}-item-${p.value}`),d=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:p,activated:m,loading:w,inputRef:l,popperRef:c,suggestions:v,handleSelect:ve,handleKeyEnter:P,focus:J,blur:ne,close:j,highlight:le}),(ce,ue)=>(N(),Te(_(ri),{ref_key:"popperRef",ref:c,visible:_(y),placement:ce.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[_(s).e("popper"),ce.popperClass],teleported:ce.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${_(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:A,onHide:M},{content:fe(()=>[ee("div",{ref_key:"regionRef",ref:u,class:H([_(s).b("suggestion"),_(s).is("loading",_(x))]),style:mt({[ce.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[re(_($l),{id:_(S),tag:"ul","wrap-class":_(s).be("suggestion","wrap"),"view-class":_(s).be("suggestion","list"),role:"listbox"},{default:fe(()=>[_(x)?(N(),X("li",Wve,[re(_(vt),{class:H(_(s).is("loading"))},{default:fe(()=>[re(_(rc))]),_:1},8,["class"])])):(N(!0),X(gt,{key:1},un(v.value,(Q,_e)=>(N(),X("li",{id:`${_(S)}-item-${_e}`,key:_e,class:H({highlighted:p.value===_e}),role:"option","aria-selected":p.value===_e,onClick:Pe=>ve(Q)},[Ve(ce.$slots,"default",{item:Q},()=>[Cn(qe(Q[ce.valueKey]),1)])],10,Gve))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:fe(()=>[ee("div",{ref_key:"listboxRef",ref:f,class:H([_(s).b(),ce.$attrs.class]),style:mt(_(C)),role:"combobox","aria-haspopup":"listbox","aria-expanded":_(y),"aria-owns":_(S)},[re(_(Ra),qt({ref_key:"inputRef",ref:l},_(a),{clearable:ce.clearable,disabled:_(o),name:ce.name,"model-value":ce.modelValue,onInput:L,onChange:z,onFocus:F,onBlur:$,onClear:V,onKeydown:[ue[0]||(ue[0]=yn(xt(Q=>le(p.value-1),["prevent"]),["up"])),ue[1]||(ue[1]=yn(xt(Q=>le(p.value+1),["prevent"]),["down"])),yn(P,["enter"]),yn(j,["tab"]),yn(G,["esc"])],onMousedown:O}),bl({_:2},[ce.$slots.prepend?{name:"prepend",fn:fe(()=>[Ve(ce.$slots,"prepend")])}:void 0,ce.$slots.append?{name:"append",fn:fe(()=>[Ve(ce.$slots,"append")])}:void 0,ce.$slots.prefix?{name:"prefix",fn:fe(()=>[Ve(ce.$slots,"prefix")])}:void 0,ce.$slots.suffix?{name:"suffix",fn:fe(()=>[Ve(ce.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,Hve)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var jve=Xe(Kve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const Yve=Ut(jve),qve=Je({size:{type:[Number,String],values:Gs,default:"",validator:e=>kt(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Kn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:Ce(String),default:"cover"}}),Xve={error:e=>e instanceof Event},Zve=["src","alt","srcset"],Jve=te({name:"ElAvatar"}),Qve=te({...Jve,props:qve,emits:Xve,setup(e,{emit:t}){const n=e,r=We("avatar"),a=U(!1),i=R(()=>{const{size:u,icon:c,shape:f}=n,d=[r.b()];return Mt(u)&&d.push(r.m(u)),c&&d.push(r.m("icon")),f&&d.push(r.m(f)),d}),o=R(()=>{const{size:u}=n;return kt(u)?r.cssVarBlock({size:kr(u)||""}):void 0}),s=R(()=>({objectFit:n.fit}));ze(()=>n.src,()=>a.value=!1);function l(u){a.value=!0,t("error",u)}return(u,c)=>(N(),X("span",{class:H(_(i)),style:mt(_(o))},[(u.src||u.srcSet)&&!a.value?(N(),X("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:mt(_(s)),onError:l},null,44,Zve)):u.icon?(N(),Te(_(vt),{key:1},{default:fe(()=>[(N(),Te(Xt(u.icon)))]),_:1})):Ve(u.$slots,"default",{key:2})],6))}});var epe=Xe(Qve,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const tpe=Ut(epe),npe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},rpe={click:e=>e instanceof MouseEvent},ape=(e,t,n)=>{const r=Wn(),a=Wn(),i=U(!1),o=()=>{r.value&&(i.value=r.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=r.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=tz(o,300,!0);return ir(a,"scroll",l),zt(()=>{var u;a.value=document,r.value=document.documentElement,e.target&&(r.value=(u=document.querySelector(e.target))!=null?u:void 0,r.value||Kr(n,`target does not exist: ${e.target}`),a.value=r.value),o()}),{visible:i,handleClick:s}},ZH="ElBacktop",ipe=te({name:ZH}),ope=te({...ipe,props:npe,emits:rpe,setup(e,{emit:t}){const n=e,r=We("backtop"),{handleClick:a,visible:i}=ape(n,t,ZH),o=R(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(N(),Te(Mr,{name:`${_(r).namespace.value}-fade-in`},{default:fe(()=>[_(i)?(N(),X("div",{key:0,style:mt(_(o)),class:H(_(r).b()),onClick:l[0]||(l[0]=xt((...u)=>_(a)&&_(a)(...u),["stop"]))},[Ve(s.$slots,"default",{},()=>[re(_(vt),{class:H(_(r).e("icon"))},{default:fe(()=>[re(_(Ule))]),_:1},8,["class"])])],6)):be("v-if",!0)]),_:3},8,["name"]))}});var spe=Xe(ope,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const lpe=Ut(spe),upe=Je({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),cpe=["textContent"],fpe=te({name:"ElBadge"}),dpe=te({...fpe,props:upe,setup(e,{expose:t}){const n=e,r=We("badge"),a=R(()=>n.isDot?"":kt(n.value)&&kt(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:a}),(i,o)=>(N(),X("div",{class:H(_(r).b())},[Ve(i.$slots,"default"),re(Mr,{name:`${_(r).namespace.value}-zoom-in-center`,persisted:""},{default:fe(()=>[Rt(ee("sup",{class:H([_(r).e("content"),_(r).em("content",i.type),_(r).is("fixed",!!i.$slots.default),_(r).is("dot",i.isDot)]),textContent:qe(_(a))},null,10,cpe),[[Sn,!i.hidden&&(_(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var hpe=Xe(dpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const JH=Ut(hpe),QH=Symbol("breadcrumbKey"),vpe=Je({separator:{type:String,default:"/"},separatorIcon:{type:Kn}}),ppe=te({name:"ElBreadcrumb"}),gpe=te({...ppe,props:vpe,setup(e){const t=e,n=We("breadcrumb"),r=U();return tn(QH,t),zt(()=>{const a=r.value.querySelectorAll(`.${n.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>(N(),X("div",{ref_key:"breadcrumb",ref:r,class:H(_(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[Ve(a.$slots,"default")],2))}});var mpe=Xe(gpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const ype=Je({to:{type:Ce([String,Object]),default:""},replace:{type:Boolean,default:!1}}),bpe=te({name:"ElBreadcrumbItem"}),_pe=te({...bpe,props:ype,setup(e){const t=e,n=Nt(),r=ct(QH,void 0),a=We("breadcrumb"),i=n.appContext.config.globalProperties.$router,o=U(),s=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var c,f;return N(),X("span",{class:H(_(a).e("item"))},[ee("span",{ref_key:"link",ref:o,class:H([_(a).e("inner"),_(a).is("link",!!l.to)]),role:"link",onClick:s},[Ve(l.$slots,"default")],2),(c=_(r))!=null&&c.separatorIcon?(N(),Te(_(vt),{key:0,class:H(_(a).e("separator"))},{default:fe(()=>[(N(),Te(Xt(_(r).separatorIcon)))]),_:1},8,["class"])):(N(),X("span",{key:1,class:H(_(a).e("separator")),role:"presentation"},qe((f=_(r))==null?void 0:f.separator),3))],2)}}});var e9=Xe(_pe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const wpe=Ut(mpe,{BreadcrumbItem:e9}),Spe=br(e9),t9=Symbol("buttonGroupContextKey"),Cpe=(e,t)=>{$s({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},R(()=>e.type==="text"));const n=ct(t9,void 0),r=Aw("button"),{form:a}=si(),i=jr(R(()=>n==null?void 0:n.size)),o=xi(),s=U(),l=ka(),u=R(()=>e.type||(n==null?void 0:n.type)||""),c=R(()=>{var v,p,g;return(g=(p=e.autoInsertSpace)!=null?p:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?g:!1}),f=R(()=>e.tag==="button"?{ariaDisabled:o.value||e.loading,disabled:o.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),d=R(()=>{var v;const p=(v=l.default)==null?void 0:v.call(l);if(c.value&&(p==null?void 0:p.length)===1){const g=p[0];if((g==null?void 0:g.type)===ad){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)}}},PT=["default","primary","success","warning","info","danger","text",""],xpe=["button","submit","reset"],RT=Je({size:Sa,disabled:Boolean,type:{type:String,values:PT,default:""},icon:{type:Kn},nativeType:{type:String,values:xpe,default:"button"},loading:Boolean,loadingIcon:{type:Kn,default:()=>rc},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:Ce([String,Object]),default:"button"}}),Tpe={click:e=>e instanceof MouseEvent};function ba(e,t){kpe(e)&&(e="100%");var n=Ape(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 h0(e){return Math.min(1,Math.max(0,e))}function kpe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ape(e){return typeof e=="string"&&e.indexOf("%")!==-1}function n9(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function v0(e){return e<=1?"".concat(Number(e)*100,"%"):e}function gf(e){return e.length===1?"0"+e:String(e)}function Epe(e,t,n){return{r:ba(e,255)*255,g:ba(t,255)*255,b:ba(n,255)*255}}function KO(e,t,n){e=ba(e,255),t=ba(t,255),n=ba(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 dC(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 Mpe(e,t,n){var r,a,i;if(e=ba(e,360),t=ba(t,100),n=ba(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=dC(s,o,e+1/3),a=dC(s,o,e),i=dC(s,o,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function jO(e,t,n){e=ba(e,255),t=ba(t,255),n=ba(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 Ipe(e,t,n){e=ba(e,360)*6,t=ba(t,100),n=ba(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 YO(e,t,n,r){var a=[gf(Math.round(e).toString(16)),gf(Math.round(t).toString(16)),gf(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 Dpe(e,t,n,r,a){var i=[gf(Math.round(e).toString(16)),gf(Math.round(t).toString(16)),gf(Math.round(n).toString(16)),gf(Lpe(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 Lpe(e){return Math.round(parseFloat(e)*255).toString(16)}function qO(e){return Ai(e)/255}function Ai(e){return parseInt(e,16)}function Ppe(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var OT={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 Rpe(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=$pe(e)),typeof e=="object"&&(qs(e.r)&&qs(e.g)&&qs(e.b)?(t=Epe(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):qs(e.h)&&qs(e.s)&&qs(e.v)?(r=v0(e.s),a=v0(e.v),t=Ipe(e.h,r,a),o=!0,s="hsv"):qs(e.h)&&qs(e.s)&&qs(e.l)&&(r=v0(e.s),i=v0(e.l),t=Mpe(e.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=n9(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 Ope="[-\\+]?\\d+%?",Npe="[-\\+]?\\d*\\.\\d+%?",yu="(?:".concat(Npe,")|(?:").concat(Ope,")"),hC="[\\s|\\(]+(".concat(yu,")[,|\\s]+(").concat(yu,")[,|\\s]+(").concat(yu,")\\s*\\)?"),vC="[\\s|\\(]+(".concat(yu,")[,|\\s]+(").concat(yu,")[,|\\s]+(").concat(yu,")[,|\\s]+(").concat(yu,")\\s*\\)?"),Po={CSS_UNIT:new RegExp(yu),rgb:new RegExp("rgb"+hC),rgba:new RegExp("rgba"+vC),hsl:new RegExp("hsl"+hC),hsla:new RegExp("hsla"+vC),hsv:new RegExp("hsv"+hC),hsva:new RegExp("hsva"+vC),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 $pe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(OT[e])e=OT[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Po.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Po.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Po.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Po.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Po.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Po.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Po.hex8.exec(e),n?{r:Ai(n[1]),g:Ai(n[2]),b:Ai(n[3]),a:qO(n[4]),format:t?"name":"hex8"}:(n=Po.hex6.exec(e),n?{r:Ai(n[1]),g:Ai(n[2]),b:Ai(n[3]),format:t?"name":"hex"}:(n=Po.hex4.exec(e),n?{r:Ai(n[1]+n[1]),g:Ai(n[2]+n[2]),b:Ai(n[3]+n[3]),a:qO(n[4]+n[4]),format:t?"name":"hex8"}:(n=Po.hex3.exec(e),n?{r:Ai(n[1]+n[1]),g:Ai(n[2]+n[2]),b:Ai(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function qs(e){return!!Po.CSS_UNIT.exec(String(e))}var r9=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=Ppe(t)),this.originalInput=t;var a=Rpe(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=n9(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=jO(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=jO(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=KO(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=KO(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),YO(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),Dpe(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(ba(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(ba(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="#"+YO(this.r,this.g,this.b,!1),n=0,r=Object.entries(OT);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=h0(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=h0(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=h0(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=h0(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),a=new e(t).toRgb(),i=n/100,o={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new e(o)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:a,v:i})),i=(i+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),a=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(r+o*i)%360,s:n.s,l:n.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Xl(e,t=20){return e.mix("#141414",t).toString()}function Bpe(e){const t=xi(),n=We("button");return R(()=>{let r={};const a=e.color;if(a){const i=new r9(a),o=e.dark?i.tint(20).toString():Xl(i,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Xl(i,90):i.tint(90).toString(),"text-color":a,"border-color":e.dark?Xl(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Xl(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Xl(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Xl(i,80):i.tint(80).toString());else{const s=e.dark?Xl(i,30):i.tint(30).toString(),l=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":l,"border-color":a,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":o,"active-border-color":o}),t.value){const u=e.dark?Xl(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const Fpe=te({name:"ElButton"}),Vpe=te({...Fpe,props:RT,emits:Tpe,setup(e,{expose:t,emit:n}){const r=e,a=Bpe(r),i=We("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=Cpe(r,n);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(h,v)=>(N(),Te(Xt(h.tag),qt({ref_key:"_ref",ref:o},_(c),{class:[_(i).b(),_(i).m(_(l)),_(i).m(_(s)),_(i).is("disabled",_(u)),_(i).is("loading",h.loading),_(i).is("plain",h.plain),_(i).is("round",h.round),_(i).is("circle",h.circle),_(i).is("text",h.text),_(i).is("link",h.link),_(i).is("has-bg",h.bg)],style:_(a),onClick:_(d)}),{default:fe(()=>[h.loading?(N(),X(gt,{key:0},[h.$slots.loading?Ve(h.$slots,"loading",{key:0}):(N(),Te(_(vt),{key:1,class:H(_(i).is("loading"))},{default:fe(()=>[(N(),Te(Xt(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(N(),Te(_(vt),{key:1},{default:fe(()=>[h.icon?(N(),Te(Xt(h.icon),{key:0})):Ve(h.$slots,"icon",{key:1})]),_:3})):be("v-if",!0),h.$slots.default?(N(),X("span",{key:2,class:H({[_(i).em("text","expand")]:_(f)})},[Ve(h.$slots,"default")],2)):be("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var zpe=Xe(Vpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Hpe={size:RT.size,type:RT.type},Wpe=te({name:"ElButtonGroup"}),Gpe=te({...Wpe,props:Hpe,setup(e){const t=e;tn(t9,xn({size:vr(t,"size"),type:vr(t,"type")}));const n=We("button");return(r,a)=>(N(),X("div",{class:H(`${_(n).b("group")}`)},[Ve(r.$slots,"default")],2))}});var a9=Xe(Gpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const _a=Ut(zpe,{ButtonGroup:a9}),i9=br(a9);var o9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Rl,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(O){var z=["th","st","nd","rd"],F=O%100;return"["+O+(z[(F-20)%10]||z[F]||z[0])+"]"}},w=function(O,z,F){var $=String(O);return!$||$.length>=z?O:""+Array(z+1-$.length).join(F)+O},S={s:w,z:function(O){var z=-O.utcOffset(),F=Math.abs(z),$=Math.floor(F/60),V=F%60;return(z<=0?"+":"-")+w($,2,"0")+":"+w(V,2,"0")},m:function O(z,F){if(z.date()<F.date())return-O(F,z);var $=12*(F.year()-z.year())+(F.month()-z.month()),V=z.clone().add($,f),P=F-V<0,G=z.clone().add($+(P?-1:1),f);return+(-($+(F-V)/(P?V-G:G-V))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y:h,w:c,d:u,D:v,h:l,m:s,s:o,ms:i,Q:d}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},C="en",y={};y[C]=b;var x="$isDayjsObject",T=function(O){return O instanceof I||!(!O||!O[x])},A=function O(z,F,$){var V;if(!z)return C;if(typeof z=="string"){var P=z.toLowerCase();y[P]&&(V=P),F&&(y[P]=F,V=P);var G=z.split("-");if(!V&&G.length>1)return O(G[0])}else{var j=z.name;y[j]=z,V=j}return!$&&V&&(C=V),V||!$&&C},M=function(O,z){if(T(O))return O.clone();var F=typeof z=="object"?z:{};return F.date=O,F.args=arguments,new I(F)},E=S;E.l=A,E.i=T,E.w=function(O,z){return M(O,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var I=function(){function O(F){this.$L=A(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[x]=!0}var z=O.prototype;return z.parse=function(F){this.$d=function($){var V=$.date,P=$.utc;if(V===null)return new Date(NaN);if(E.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var G=V.match(g);if(G){var j=G[2]-1||0,J=(G[7]||"0").substring(0,3);return P?new Date(Date.UTC(G[1],j,G[3]||1,G[4]||0,G[5]||0,G[6]||0,J)):new Date(G[1],j,G[3]||1,G[4]||0,G[5]||0,G[6]||0,J)}}return new Date(V)}(F),this.init()},z.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},z.$utils=function(){return E},z.isValid=function(){return this.$d.toString()!==p},z.isSame=function(F,$){var V=M(F);return this.startOf($)<=V&&V<=this.endOf($)},z.isAfter=function(F,$){return M(F)<this.startOf($)},z.isBefore=function(F,$){return this.endOf($)<M(F)},z.$g=function(F,$,V){return E.u(F)?this[$]:this.set(V,F)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function(F,$){var V=this,P=!!E.u($)||$,G=E.p(F),j=function(_e,Pe){var pe=E.w(V.$u?Date.UTC(V.$y,Pe,_e):new Date(V.$y,Pe,_e),V);return P?pe:pe.endOf(u)},J=function(_e,Pe){return E.w(V.toDate()[_e].apply(V.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(Pe)),V)},ne=this.$W,ve=this.$M,le=this.$D,ce="set"+(this.$u?"UTC":"");switch(G){case h:return P?j(1,0):j(31,11);case f:return P?j(1,ve):j(0,ve+1);case c:var ue=this.$locale().weekStart||0,Q=(ne<ue?ne+7:ne)-ue;return j(P?le-Q:le+(6-Q),ve);case u:case v:return J(ce+"Hours",0);case l:return J(ce+"Minutes",1);case s:return J(ce+"Seconds",2);case o:return J(ce+"Milliseconds",3);default:return this.clone()}},z.endOf=function(F){return this.startOf(F,!1)},z.$set=function(F,$){var V,P=E.p(F),G="set"+(this.$u?"UTC":""),j=(V={},V[u]=G+"Date",V[v]=G+"Date",V[f]=G+"Month",V[h]=G+"FullYear",V[l]=G+"Hours",V[s]=G+"Minutes",V[o]=G+"Seconds",V[i]=G+"Milliseconds",V)[P],J=P===u?this.$D+($-this.$W):$;if(P===f||P===h){var ne=this.clone().set(v,1);ne.$d[j](J),ne.init(),this.$d=ne.set(v,Math.min(this.$D,ne.daysInMonth())).$d}else j&&this.$d[j](J);return this.init(),this},z.set=function(F,$){return this.clone().$set(F,$)},z.get=function(F){return this[E.p(F)]()},z.add=function(F,$){var V,P=this;F=Number(F);var G=E.p($),j=function(ve){var le=M(P);return E.w(le.date(le.date()+Math.round(ve*F)),P)};if(G===f)return this.set(f,this.$M+F);if(G===h)return this.set(h,this.$y+F);if(G===u)return j(1);if(G===c)return j(7);var J=(V={},V[s]=r,V[l]=a,V[o]=n,V)[G]||1,ne=this.$d.getTime()+F*J;return E.w(ne,this)},z.subtract=function(F,$){return this.add(-1*F,$)},z.format=function(F){var $=this,V=this.$locale();if(!this.isValid())return V.invalidDate||p;var P=F||"YYYY-MM-DDTHH:mm:ssZ",G=E.z(this),j=this.$H,J=this.$m,ne=this.$M,ve=V.weekdays,le=V.months,ce=V.meridiem,ue=function(Pe,pe,Y,ie){return Pe&&(Pe[pe]||Pe($,P))||Y[pe].slice(0,ie)},Q=function(Pe){return E.s(j%12||12,Pe,"0")},_e=ce||function(Pe,pe,Y){var ie=Pe<12?"AM":"PM";return Y?ie.toLowerCase():ie};return P.replace(m,function(Pe,pe){return pe||function(Y){switch(Y){case"YY":return String($.$y).slice(-2);case"YYYY":return E.s($.$y,4,"0");case"M":return ne+1;case"MM":return E.s(ne+1,2,"0");case"MMM":return ue(V.monthsShort,ne,le,3);case"MMMM":return ue(le,ne);case"D":return $.$D;case"DD":return E.s($.$D,2,"0");case"d":return String($.$W);case"dd":return ue(V.weekdaysMin,$.$W,ve,2);case"ddd":return ue(V.weekdaysShort,$.$W,ve,3);case"dddd":return ve[$.$W];case"H":return String(j);case"HH":return E.s(j,2,"0");case"h":return Q(1);case"hh":return Q(2);case"a":return _e(j,J,!0);case"A":return _e(j,J,!1);case"m":return String(J);case"mm":return E.s(J,2,"0");case"s":return String($.$s);case"ss":return E.s($.$s,2,"0");case"SSS":return E.s($.$ms,3,"0");case"Z":return G}return null}(Pe)||G.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function(F,$,V){var P,G=this,j=E.p($),J=M(F),ne=(J.utcOffset()-this.utcOffset())*r,ve=this-J,le=function(){return E.m(G,J)};switch(j){case h:P=le()/12;break;case f:P=le();break;case d:P=le()/3;break;case c:P=(ve-ne)/6048e5;break;case u:P=(ve-ne)/864e5;break;case l:P=ve/a;break;case s:P=ve/r;break;case o:P=ve/n;break;default:P=ve}return V?P:E.a(P)},z.daysInMonth=function(){return this.endOf(f).$D},z.$locale=function(){return y[this.$L]},z.locale=function(F,$){if(!F)return this.$L;var V=this.clone(),P=A(F,$,!0);return P&&(V.$L=P),V},z.clone=function(){return E.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},O}(),L=I.prototype;return M.prototype=L,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",v]].forEach(function(O){L[O[1]]=function(z){return this.$g(z,O[0],O[1])}}),M.extend=function(O,z){return O.$i||(O(z,I,M),O.$i=!0),M},M.locale=A,M.isDayjs=T,M.unix=function(O){return M(1e3*O)},M.en=y[C],M.Ls=y,M.p={},M})})(o9);var Upe=o9.exports;const Ht=as(Upe);var s9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Rl,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 w=1;w<=24;w+=1)if(p.indexOf(b(w,0,g))>-1){m=w>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(A,M,E){var I=E&&E.toUpperCase();return M||m[E]||n[E]||m[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,O,z){return O||z.slice(1)})})).match(r),w=b.length,S=0;S<w;S+=1){var C=b[S],y=h[C],x=y&&y[0],T=y&&y[1];b[S]=T?{regex:x,parser:T}:C.replace(/^\[|\]$/g,"")}return function(A){for(var M={},E=0,I=0;E<w;E+=1){var L=b[E];if(typeof L=="string")I+=L.length;else{var O=L.regex,z=L.parser,F=A.slice(I),$=O.exec(F)[0];z.call(M,$),A=A.replace($,"")}}return function(V){var P=V.afternoon;if(P!==void 0){var G=V.hours;P?G<12&&(V.hours+=12):G===12&&(V.hours=0),delete V.afternoon}}(M),M}}return function(p,g,m){m.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(l=p.parseTwoDigitYear);var b=g.prototype,w=b.parse;b.parse=function(S){var C=S.date,y=S.utc,x=S.args;this.$u=y;var T=x[1];if(typeof T=="string"){var A=x[2]===!0,M=x[3]===!0,E=A||M,I=x[2];M&&(I=x[2]),s=this.$locale(),!A&&I&&(s=m.Ls[I]),this.$d=function(F,$,V){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*F);var P=v($)(F),G=P.year,j=P.month,J=P.day,ne=P.hours,ve=P.minutes,le=P.seconds,ce=P.milliseconds,ue=P.zone,Q=new Date,_e=J||(G||j?1:Q.getDate()),Pe=G||Q.getFullYear(),pe=0;G&&!j||(pe=j>0?j-1:Q.getMonth());var Y=ne||0,ie=ve||0,me=le||0,De=ce||0;return ue?new Date(Date.UTC(Pe,pe,_e,Y,ie,me,De+60*ue.offset*1e3)):V?new Date(Date.UTC(Pe,pe,_e,Y,ie,me,De)):new Date(Pe,pe,_e,Y,ie,me,De)}catch{return new Date("")}}(C,T,y),this.init(),I&&I!==!0&&(this.$L=this.locale(I).$L),E&&C!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var L=T.length,O=1;O<=L;O+=1){x[1]=T[O-1];var z=m.apply(this,x);if(z.isValid()){this.$d=z.$d,this.$L=z.$L,this.init();break}O===L&&(this.$d=new Date(""))}else w.call(this,S)}}})})(s9);var Kpe=s9.exports;const FM=as(Kpe),XO=["hours","minutes","seconds"],NT="HH:mm:ss",eh="YYYY-MM-DD",jpe={date:eh,dates:eh,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${eh} ${NT}`,monthrange:"YYYY-MM",daterange:eh,datetimerange:`${eh} ${NT}`},pC=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],Iu=e=>Array.from(Array.from({length:e}).keys()),l9=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),u9=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),ZO=function(e,t){const n=Hf(e),r=Hf(t);return n&&r?e.getTime()===t.getTime():!n&&!r?e===t:!1},JO=function(e,t){const n=ft(e),r=ft(t);return n&&r?e.length!==t.length?!1:e.every((a,i)=>ZO(a,t[i])):!n&&!r?ZO(e,t):!1},QO=function(e,t,n){const r=ro(t)||t==="x"?Ht(e).locale(n):Ht(e,t).locale(n);return r.isValid()?r:void 0},eN=function(e,t,n){return ro(t)?e:t==="x"?+e:Ht(e).locale(n).format(t)},gC=(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},c9=Je({disabledHours:{type:Ce(Function)},disabledMinutes:{type:Ce(Function)},disabledSeconds:{type:Ce(Function)}}),f9=Je({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),VM=Je({id:{type:Ce([Array,String])},name:{type:Ce([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Ce([String,Object]),default:nc},editable:{type:Boolean,default:!0},prefixIcon:{type:Ce([String,Object]),default:""},size:Sa,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:Ce(Object),default:()=>({})},modelValue:{type:Ce([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:Ce([Date,Array])},defaultTime:{type:Ce([Date,Array])},isRange:{type:Boolean,default:!1},...c9,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:Ce([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),Ype=["id","name","placeholder","value","disabled","readonly"],qpe=["id","name","placeholder","value","disabled","readonly"],Xpe=te({name:"Picker"}),Zpe=te({...Xpe,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=rd(),{lang:i}=bn(),o=We("date"),s=We("input"),l=We("range"),{form:u,formItem:c}=si(),f=ct("ElPopperOptions",{}),d=U(),h=U(),v=U(!1),p=U(!1),g=U(null);let m=!1,b=!1;const w=R(()=>[o.b("editor"),o.bm("editor",r.type),s.e("wrapper"),o.is("disabled",J.value),o.is("active",v.value),l.b("editor"),Oe?l.bm("editor",Oe.value):"",a.class]),S=R(()=>[s.e("icon"),l.e("close-icon"),_e.value?"":l.e("close-icon--hidden")]);ze(v,se=>{se?pt(()=>{se&&(g.value=r.modelValue)}):(Se.value=null,pt(()=>{C(r.modelValue)}))});const C=(se,Qe)=>{(Qe||!JO(se,g.value))&&(n("change",se),r.validateEvent&&(c==null||c.validate("change").catch(wt=>void 0)))},y=se=>{if(!JO(r.modelValue,se)){let Qe;ft(se)?Qe=se.map(wt=>eN(wt,r.valueFormat,i.value)):se&&(Qe=eN(se,r.valueFormat,i.value)),n("update:modelValue",se&&Qe,i.value)}},x=se=>{n("keydown",se)},T=R(()=>{if(h.value){const se=Be.value?h.value:h.value.$el;return Array.from(se.querySelectorAll("input"))}return[]}),A=(se,Qe,wt)=>{const Vt=T.value;Vt.length&&(!wt||wt==="min"?(Vt[0].setSelectionRange(se,Qe),Vt[0].focus()):wt==="max"&&(Vt[1].setSelectionRange(se,Qe),Vt[1].focus()))},M=()=>{V(!0,!0),pt(()=>{b=!1})},E=(se="",Qe=!1)=>{Qe||(b=!0),v.value=Qe;let wt;ft(se)?wt=se.map(Vt=>Vt.toDate()):wt=se&&se.toDate(),Se.value=null,y(wt)},I=()=>{p.value=!0},L=()=>{n("visible-change",!0)},O=se=>{(se==null?void 0:se.key)===_t.esc&&V(!0,!0)},z=()=>{p.value=!1,v.value=!1,b=!1,n("visible-change",!1)},F=()=>{v.value=!0},$=()=>{v.value=!1},V=(se=!0,Qe=!1)=>{b=Qe;const[wt,Vt]=_(T);let Zn=wt;!se&&Be.value&&(Zn=Vt),Zn&&Zn.focus()},P=se=>{r.readonly||J.value||v.value||b||(v.value=!0,n("focus",se))};let G;const j=se=>{const Qe=async()=>{setTimeout(()=>{var wt;G===Qe&&(!((wt=d.value)!=null&&wt.isFocusInsideContent()&&!m)&&T.value.filter(Vt=>Vt.contains(document.activeElement)).length===0&&(Ie(),v.value=!1,n("blur",se),r.validateEvent&&(c==null||c.validate("blur").catch(Vt=>void 0))),m=!1)},0)};G=Qe,Qe()},J=R(()=>r.disabled||(u==null?void 0:u.disabled)),ne=R(()=>{let se;if(pe.value?Me.value.getDefaultValue&&(se=Me.value.getDefaultValue()):ft(r.modelValue)?se=r.modelValue.map(Qe=>QO(Qe,r.valueFormat,i.value)):se=QO(r.modelValue,r.valueFormat,i.value),Me.value.getRangeAvailableTime){const Qe=Me.value.getRangeAvailableTime(se);yi(Qe,se)||(se=Qe,y(ft(se)?se.map(wt=>wt.toDate()):se.toDate()))}return ft(se)&&se.some(Qe=>!Qe)&&(se=[]),se}),ve=R(()=>{if(!Me.value.panelReady)return"";const se=Ge(ne.value);return ft(Se.value)?[Se.value[0]||se&&se[0]||"",Se.value[1]||se&&se[1]||""]:Se.value!==null?Se.value:!ce.value&&pe.value||!v.value&&pe.value?"":se?ue.value?se.join(", "):se:""}),le=R(()=>r.type.includes("time")),ce=R(()=>r.type.startsWith("time")),ue=R(()=>r.type==="dates"),Q=R(()=>r.prefixIcon||(le.value?Uz:Hle)),_e=U(!1),Pe=se=>{r.readonly||J.value||_e.value&&(se.stopPropagation(),M(),y(null),C(null,!0),_e.value=!1,v.value=!1,Me.value.handleClear&&Me.value.handleClear())},pe=R(()=>{const{modelValue:se}=r;return!se||ft(se)&&!se.filter(Boolean).length}),Y=async se=>{var Qe;r.readonly||J.value||(((Qe=se.target)==null?void 0:Qe.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(v.value=!0)},ie=()=>{r.readonly||J.value||!pe.value&&r.clearable&&(_e.value=!0)},me=()=>{_e.value=!1},De=se=>{var Qe;r.readonly||J.value||(((Qe=se.touches[0].target)==null?void 0:Qe.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(v.value=!0)},Be=R(()=>r.type.includes("range")),Oe=jr(),de=R(()=>{var se,Qe;return(Qe=(se=_(d))==null?void 0:se.popperRef)==null?void 0:Qe.contentRef}),we=R(()=>{var se;return _(Be)?_(h):(se=_(h))==null?void 0:se.$el});YE(we,se=>{const Qe=_(de),wt=_(we);Qe&&(se.target===Qe||se.composedPath().includes(Qe))||se.target===wt||se.composedPath().includes(wt)||(v.value=!1)});const Se=U(null),Ie=()=>{if(Se.value){const se=Ee(ve.value);se&&Ue(se)&&(y(ft(se)?se.map(Qe=>Qe.toDate()):se.toDate()),Se.value=null)}Se.value===""&&(y(null),C(null),Se.value=null)},Ee=se=>se?Me.value.parseUserInput(se):null,Ge=se=>se?Me.value.formatToString(se):null,Ue=se=>Me.value.isValidValue(se),oe=async se=>{if(r.readonly||J.value)return;const{code:Qe}=se;if(x(se),Qe===_t.esc){v.value===!0&&(v.value=!1,se.preventDefault(),se.stopPropagation());return}if(Qe===_t.down&&(Me.value.handleFocusPicker&&(se.preventDefault(),se.stopPropagation()),v.value===!1&&(v.value=!0,await pt()),Me.value.handleFocusPicker)){Me.value.handleFocusPicker();return}if(Qe===_t.tab){m=!0;return}if(Qe===_t.enter||Qe===_t.numpadEnter){(Se.value===null||Se.value===""||Ue(Ee(ve.value)))&&(Ie(),v.value=!1),se.stopPropagation();return}if(Se.value){se.stopPropagation();return}Me.value.handleKeydownInput&&Me.value.handleKeydownInput(se)},ke=se=>{Se.value=se,v.value||(v.value=!0)},nt=se=>{const Qe=se.target;Se.value?Se.value=[Qe.value,Se.value[1]]:Se.value=[Qe.value,null]},st=se=>{const Qe=se.target;Se.value?Se.value=[Se.value[0],Qe.value]:Se.value=[null,Qe.value]},ut=()=>{var se;const Qe=Se.value,wt=Ee(Qe&&Qe[0]),Vt=_(ne);if(wt&&wt.isValid()){Se.value=[Ge(wt),((se=ve.value)==null?void 0:se[1])||null];const Zn=[wt,Vt&&(Vt[1]||null)];Ue(Zn)&&(y(Zn),Se.value=null)}},lt=()=>{var se;const Qe=_(Se),wt=Ee(Qe&&Qe[1]),Vt=_(ne);if(wt&&wt.isValid()){Se.value=[((se=_(ve))==null?void 0:se[0])||null,Ge(wt)];const Zn=[Vt&&Vt[0],wt];Ue(Zn)&&(y(Zn),Se.value=null)}},Me=U({}),ye=se=>{Me.value[se[0]]=se[1],Me.value.panelReady=!0},ge=se=>{n("calendar-change",se)},$e=(se,Qe,wt)=>{n("panel-change",se,Qe,wt)};return tn("EP_PICKER_BASE",{props:r}),t({focus:V,handleFocusInput:P,handleBlurInput:j,handleOpen:F,handleClose:$,onPick:E}),(se,Qe)=>(N(),Te(_(ri),qt({ref_key:"refPopper",ref:d,visible:v.value,effect:"light",pure:"",trigger:"click"},se.$attrs,{role:"dialog",teleported:"",transition:`${_(o).namespace.value}-zoom-in-top`,"popper-class":[`${_(o).namespace.value}-picker__popper`,se.popperClass],"popper-options":_(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:I,onShow:L,onHide:z}),{default:fe(()=>[_(Be)?(N(),X("div",{key:1,ref_key:"inputRef",ref:h,class:H(_(w)),style:mt(se.$attrs.style),onClick:P,onMouseenter:ie,onMouseleave:me,onTouchstart:De,onKeydown:oe},[_(Q)?(N(),Te(_(vt),{key:0,class:H([_(s).e("icon"),_(l).e("icon")]),onMousedown:xt(Y,["prevent"]),onTouchstart:De},{default:fe(()=>[(N(),Te(Xt(_(Q))))]),_:1},8,["class","onMousedown"])):be("v-if",!0),ee("input",{id:se.id&&se.id[0],autocomplete:"off",name:se.name&&se.name[0],placeholder:se.startPlaceholder,value:_(ve)&&_(ve)[0],disabled:_(J),readonly:!se.editable||se.readonly,class:H(_(l).b("input")),onMousedown:Y,onInput:nt,onChange:ut,onFocus:P,onBlur:j},null,42,Ype),Ve(se.$slots,"range-separator",{},()=>[ee("span",{class:H(_(l).b("separator"))},qe(se.rangeSeparator),3)]),ee("input",{id:se.id&&se.id[1],autocomplete:"off",name:se.name&&se.name[1],placeholder:se.endPlaceholder,value:_(ve)&&_(ve)[1],disabled:_(J),readonly:!se.editable||se.readonly,class:H(_(l).b("input")),onMousedown:Y,onFocus:P,onBlur:j,onInput:st,onChange:lt},null,42,qpe),se.clearIcon?(N(),Te(_(vt),{key:1,class:H(_(S)),onClick:Pe},{default:fe(()=>[(N(),Te(Xt(se.clearIcon)))]),_:1},8,["class"])):be("v-if",!0)],38)):(N(),Te(_(Ra),{key:0,id:se.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":_(ve),name:se.name,size:_(Oe),disabled:_(J),placeholder:se.placeholder,class:H([_(o).b("editor"),_(o).bm("editor",se.type),se.$attrs.class]),style:mt(se.$attrs.style),readonly:!se.editable||se.readonly||_(ue)||se.type==="week",label:se.label,tabindex:se.tabindex,"validate-event":!1,onInput:ke,onFocus:P,onBlur:j,onKeydown:oe,onChange:Ie,onMousedown:Y,onMouseenter:ie,onMouseleave:me,onTouchstart:De,onClick:Qe[0]||(Qe[0]=xt(()=>{},["stop"]))},{prefix:fe(()=>[_(Q)?(N(),Te(_(vt),{key:0,class:H(_(s).e("icon")),onMousedown:xt(Y,["prevent"]),onTouchstart:De},{default:fe(()=>[(N(),Te(Xt(_(Q))))]),_:1},8,["class","onMousedown"])):be("v-if",!0)]),suffix:fe(()=>[_e.value&&se.clearIcon?(N(),Te(_(vt),{key:0,class:H(`${_(s).e("icon")} clear-icon`),onClick:xt(Pe,["stop"])},{default:fe(()=>[(N(),Te(Xt(se.clearIcon)))]),_:1},8,["class","onClick"])):be("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:fe(()=>[Ve(se.$slots,"default",{visible:v.value,actualVisible:p.value,parsedValue:_(ne),format:se.format,unlinkPanels:se.unlinkPanels,type:se.type,defaultValue:se.defaultValue,onPick:E,onSelectRange:A,onSetPickerOption:ye,onCalendarChange:ge,onPanelChange:$e,onKeydown:O,onMousedown:Qe[1]||(Qe[1]=xt(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var d9=Xe(Zpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const Jpe=Je({...f9,datetimeRole:String,parsedValue:{type:Ce(Object)}}),h9=({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}}},mC=e=>{const t=(r,a)=>r||a,n=r=>r!==!0;return e.map(t).filter(n)},v9=(e,t,n)=>({getHoursList:(o,s)=>gC(24,e&&(()=>e==null?void 0:e(o,s))),getMinutesList:(o,s,l)=>gC(60,t&&(()=>t==null?void 0:t(o,s,l))),getSecondsList:(o,s,l,u)=>gC(60,n&&(()=>n==null?void 0:n(o,s,l,u)))}),p9=(e,t,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=v9(e,t,n);return{getAvailableHours:(u,c)=>mC(r(u,c)),getAvailableMinutes:(u,c,f)=>mC(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>mC(i(u,c,f,d))}},g9=e=>{const t=U(e.parsedValue);return ze(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},lu=new Map;let tN;vn&&(document.addEventListener("mousedown",e=>tN=e),document.addEventListener("mouseup",e=>{for(const t of lu.values())for(const{documentHandler:n}of t)n(e,tN)}));function nN(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:ho(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 Gu={beforeMount(e,t){lu.has(e)||lu.set(e,[]),lu.get(e).push({documentHandler:nN(e,t),bindingFn:t.value})},updated(e,t){lu.has(e)||lu.set(e,[]);const n=lu.get(e),r=n.findIndex(i=>i.bindingFn===t.oldValue),a={documentHandler:nN(e,t),bindingFn:t.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(e){lu.delete(e)}},Qpe=100,ege=600,N1={beforeMount(e,t){const n=t.value,{interval:r=Qpe,delay:a=ege}=At(n)?{}:n;let i,o;const s=()=>At(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))})}},$T="_trap-focus-children",mf=[],rN=e=>{if(mf.length===0)return;const t=mf[mf.length-1][$T];if(t.length>0&&e.code===_t.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())}},tge={beforeMount(e){e[$T]=mR(e),mf.push(e),mf.length<=1&&document.addEventListener("keydown",rN)},updated(e){pt(()=>{e[$T]=mR(e)})},unmounted(){mf.shift(),mf.length===0&&document.removeEventListener("keydown",rN)}};var aN=!1,sf,BT,FT,Ob,Nb,m9,$b,VT,zT,HT,y9,WT,GT,b9,_9;function ci(){if(!aN){aN=!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(WT=/\b(iPhone|iP[ao]d)/.exec(e),GT=/\b(iP[ao]d)/.exec(e),HT=/Android/i.exec(e),b9=/FBAN\/\w+;/i.exec(e),_9=/Mobile/i.exec(e),y9=!!/Win64/.exec(e),t){sf=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,sf&&document&&document.documentMode&&(sf=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(e);m9=r?parseFloat(r[1])+4:sf,BT=t[2]?parseFloat(t[2]):NaN,FT=t[3]?parseFloat(t[3]):NaN,Ob=t[4]?parseFloat(t[4]):NaN,Ob?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Nb=t&&t[1]?parseFloat(t[1]):NaN):Nb=NaN}else sf=BT=FT=Nb=Ob=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);$b=a?parseFloat(a[1].replace("_",".")):!0}else $b=!1;VT=!!n[2],zT=!!n[3]}else $b=VT=zT=!1}}var UT={ie:function(){return ci()||sf},ieCompatibilityMode:function(){return ci()||m9>sf},ie64:function(){return UT.ie()&&y9},firefox:function(){return ci()||BT},opera:function(){return ci()||FT},webkit:function(){return ci()||Ob},safari:function(){return UT.webkit()},chrome:function(){return ci()||Nb},windows:function(){return ci()||VT},osx:function(){return ci()||$b},linux:function(){return ci()||zT},iphone:function(){return ci()||WT},mobile:function(){return ci()||WT||GT||HT||_9},nativeApp:function(){return ci()||b9},android:function(){return ci()||HT},ipad:function(){return ci()||GT}},nge=UT,p0=!!(typeof window<"u"&&window.document&&window.document.createElement),rge={canUseDOM:p0,canUseWorkers:typeof Worker<"u",canUseEventListeners:p0&&!!(window.addEventListener||window.attachEvent),canUseViewport:p0&&!!window.screen,isInWorker:!p0},w9=rge,S9;w9.canUseDOM&&(S9=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function age(e,t){if(!w9.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&&S9&&e==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var ige=age,iN=10,oN=40,sN=800;function C9(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*iN,a=n*iN,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(e.deltaMode==1?(r*=oN,a*=oN):(r*=sN,a*=sN)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}C9.getEventType=function(){return nge.firefox()?"DOMMouseScroll":ige("wheel")?"wheel":"mousewheel"};var oge=C9;/**
  35. * Checks if an event is supported in the current execution environment.
  36. *
  37. * NOTE: This will not work correctly for non-generic events such as `change`,
  38. * `reset`, `load`, `error`, and `select`.
  39. *
  40. * Borrows from Modernizr.
  41. *
  42. * @param {string} eventNameSuffix Event name, e.g. "click".
  43. * @param {?boolean} capture Check if the capture phase is supported.
  44. * @return {boolean} True if the event is supported.
  45. * @internal
  46. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  47. */const sge=function(e,t){if(e&&e.addEventListener){const n=function(r){const a=oge(r);t&&Reflect.apply(t,this,[r,a])};e.addEventListener("wheel",n,{passive:!0})}},lge={beforeMount(e,t){sge(e,t.value)}},uge=Je({role:{type:String,required:!0},spinnerDate:{type:Ce(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:Ce(String),default:""},...c9}),cge=["onClick"],fge=["onMouseenter"],dge=te({__name:"basic-time-spinner",props:uge,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,r=We("time"),{getHoursList:a,getMinutesList:i,getSecondsList:o}=v9(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=U(),u=U(),c=U(),f=U(),d={hours:u,minutes:c,seconds:f},h=R(()=>n.showSeconds?XO:XO.slice(0,2)),v=R(()=>{const{spinnerDate:P}=n,G=P.hour(),j=P.minute(),J=P.second();return{hours:G,minutes:j,seconds:J}}),p=R(()=>{const{hours:P,minutes:G}=_(v);return{hours:a(n.role),minutes:i(P,n.role),seconds:o(P,G,n.role)}}),g=R(()=>{const{hours:P,minutes:G,seconds:j}=_(v);return{hours:pC(P,23),minutes:pC(G,59),seconds:pC(j,59)}}),m=ni(P=>{s=!1,S(P)},200),b=P=>{if(!!!n.amPmMode)return"";const j=n.amPmMode==="A";let J=P<12?" am":" pm";return j&&(J=J.toUpperCase()),J},w=P=>{let G;switch(P){case"hours":G=[0,2];break;case"minutes":G=[3,5];break;case"seconds":G=[6,8];break}const[j,J]=G;t("select-range",j,J),l.value=P},S=P=>{x(P,_(v)[P])},C=()=>{S("hours"),S("minutes"),S("seconds")},y=P=>P.querySelector(`.${r.namespace.value}-scrollbar__wrap`),x=(P,G)=>{if(n.arrowControl)return;const j=_(d[P]);j&&j.$el&&(y(j.$el).scrollTop=Math.max(0,G*T(P)))},T=P=>{const G=_(d[P]),j=G==null?void 0:G.$el.querySelector("li");return j&&Number.parseFloat(mu(j,"height"))||0},A=()=>{E(1)},M=()=>{E(-1)},E=P=>{l.value||w("hours");const G=l.value,j=_(v)[G],J=l.value==="hours"?24:60,ne=I(G,j,P,J);L(G,ne),x(G,ne),pt(()=>w(G))},I=(P,G,j,J)=>{let ne=(G+j+J)%J;const ve=_(p)[P];for(;ve[ne]&&ne!==G;)ne=(ne+j+J)%J;return ne},L=(P,G)=>{if(_(p)[P][G])return;const{hours:ne,minutes:ve,seconds:le}=_(v);let ce;switch(P){case"hours":ce=n.spinnerDate.hour(G).minute(ve).second(le);break;case"minutes":ce=n.spinnerDate.hour(ne).minute(G).second(le);break;case"seconds":ce=n.spinnerDate.hour(ne).minute(ve).second(G);break}t("change",ce)},O=(P,{value:G,disabled:j})=>{j||(L(P,G),w(P),x(P,G))},z=P=>{s=!0,m(P);const G=Math.min(Math.round((y(_(d[P]).$el).scrollTop-(F(P)*.5-10)/T(P)+3)/T(P)),P==="hours"?23:59);L(P,G)},F=P=>_(d[P]).$el.offsetHeight,$=()=>{const P=G=>{const j=_(d[G]);j&&j.$el&&(y(j.$el).onscroll=()=>{z(G)})};P("hours"),P("minutes"),P("seconds")};zt(()=>{pt(()=>{!n.arrowControl&&$(),C(),n.role==="start"&&w("hours")})});const V=(P,G)=>{d[G].value=P};return t("set-option",[`${n.role}_scrollDown`,E]),t("set-option",[`${n.role}_emitSelectRange`,w]),ze(()=>n.spinnerDate,()=>{s||C()}),(P,G)=>(N(),X("div",{class:H([_(r).b("spinner"),{"has-seconds":P.showSeconds}])},[P.arrowControl?be("v-if",!0):(N(!0),X(gt,{key:0},un(_(h),j=>(N(),Te(_($l),{key:j,ref_for:!0,ref:J=>V(J,j),class:H(_(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":_(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:J=>w(j),onMousemove:J=>S(j)},{default:fe(()=>[(N(!0),X(gt,null,un(_(p)[j],(J,ne)=>(N(),X("li",{key:ne,class:H([_(r).be("spinner","item"),_(r).is("active",ne===_(v)[j]),_(r).is("disabled",J)]),onClick:ve=>O(j,{value:ne,disabled:J})},[j==="hours"?(N(),X(gt,{key:0},[Cn(qe(("0"+(P.amPmMode?ne%12||12:ne)).slice(-2))+qe(b(ne)),1)],64)):(N(),X(gt,{key:1},[Cn(qe(("0"+ne).slice(-2)),1)],64))],10,cge))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),P.arrowControl?(N(!0),X(gt,{key:1},un(_(h),j=>(N(),X("div",{key:j,class:H([_(r).be("spinner","wrapper"),_(r).is("arrow")]),onMouseenter:J=>w(j)},[Rt((N(),Te(_(vt),{class:H(["arrow-up",_(r).be("spinner","arrow")])},{default:fe(()=>[re(_(mw))]),_:1},8,["class"])),[[_(N1),M]]),Rt((N(),Te(_(vt),{class:H(["arrow-down",_(r).be("spinner","arrow")])},{default:fe(()=>[re(_(tc))]),_:1},8,["class"])),[[_(N1),A]]),ee("ul",{class:H(_(r).be("spinner","list"))},[(N(!0),X(gt,null,un(_(g)[j],(J,ne)=>(N(),X("li",{key:ne,class:H([_(r).be("spinner","item"),_(r).is("active",J===_(v)[j]),_(r).is("disabled",_(p)[j][J])])},[typeof J=="number"?(N(),X(gt,{key:0},[j==="hours"?(N(),X(gt,{key:0},[Cn(qe(("0"+(P.amPmMode?J%12||12:J)).slice(-2))+qe(b(J)),1)],64)):(N(),X(gt,{key:1},[Cn(qe(("0"+J).slice(-2)),1)],64))],64)):be("v-if",!0)],2))),128))],2)],42,fge))),128)):be("v-if",!0)],2))}});var KT=Xe(dge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const hge=te({__name:"panel-time-pick",props:Jpe,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=ct("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=p9(i,o,s),d=We("time"),{t:h,lang:v}=bn(),p=U([0,2]),g=g9(n),m=R(()=>Xr(n.actualVisible)?`${d.namespace.value}-zoom-in-top`:""),b=R(()=>n.format.includes("ss")),w=R(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=V=>{const P=Ht(V).locale(v.value),G=O(P);return P.isSame(G)},C=()=>{t("pick",g.value,!1)},y=(V=!1,P=!1)=>{P||t("pick",n.parsedValue,V)},x=V=>{if(!n.visible)return;const P=O(V).millisecond(0);t("pick",P,!0)},T=(V,P)=>{t("select-range",V,P),p.value=[V,P]},A=V=>{const P=[0,3].concat(b.value?[6]:[]),G=["hours","minutes"].concat(b.value?["seconds"]:[]),J=(P.indexOf(p.value[0])+V+P.length)%P.length;E.start_emitSelectRange(G[J])},M=V=>{const P=V.code,{left:G,right:j,up:J,down:ne}=_t;if([G,j].includes(P)){A(P===G?-1:1),V.preventDefault();return}if([J,ne].includes(P)){const ve=P===J?-1:1;E.start_scrollDown(ve),V.preventDefault();return}},{timePickerOptions:E,onSetOption:I,getAvailableTime:L}=h9({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),O=V=>L(V,n.datetimeRole||"",!0),z=V=>V?Ht(V,n.format).locale(v.value):null,F=V=>V?V.format(n.format):null,$=()=>Ht(l).locale(v.value);return t("set-picker-option",["isValidValue",S]),t("set-picker-option",["formatToString",F]),t("set-picker-option",["parseUserInput",z]),t("set-picker-option",["handleKeydownInput",M]),t("set-picker-option",["getRangeAvailableTime",O]),t("set-picker-option",["getDefaultValue",$]),(V,P)=>(N(),Te(Mr,{name:_(m)},{default:fe(()=>[V.actualVisible||V.visible?(N(),X("div",{key:0,class:H(_(d).b("panel"))},[ee("div",{class:H([_(d).be("panel","content"),{"has-seconds":_(b)}])},[re(KT,{ref:"spinner",role:V.datetimeRole||"start","arrow-control":_(a),"show-seconds":_(b),"am-pm-mode":_(w),"spinner-date":V.parsedValue,"disabled-hours":_(i),"disabled-minutes":_(o),"disabled-seconds":_(s),onChange:x,onSetOption:_(I),onSelectRange:T},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),ee("div",{class:H(_(d).be("panel","footer"))},[ee("button",{type:"button",class:H([_(d).be("panel","btn"),"cancel"]),onClick:C},qe(_(h)("el.datepicker.cancel")),3),ee("button",{type:"button",class:H([_(d).be("panel","btn"),"confirm"]),onClick:P[0]||(P[0]=G=>y())},qe(_(h)("el.datepicker.confirm")),3)],2)],2)):be("v-if",!0)]),_:1},8,["name"]))}});var $1=Xe(hge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const vge=Je({...f9,parsedValue:{type:Ce(Array)}}),pge=["disabled"],gge=te({__name:"panel-time-range",props:vge,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,r=(pe,Y)=>{const ie=[];for(let me=pe;me<=Y;me++)ie.push(me);return ie},{t:a,lang:i}=bn(),o=We("time"),s=We("picker"),l=ct("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:d,defaultValue:h}=l.props,v=R(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),S.value?"has-seconds":""]),p=R(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),S.value?"has-seconds":""]),g=R(()=>n.parsedValue[0]),m=R(()=>n.parsedValue[1]),b=g9(n),w=()=>{t("pick",b.value,!1)},S=R(()=>n.format.includes("ss")),C=R(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),y=(pe=!1)=>{t("pick",[g.value,m.value],pe)},x=pe=>{M(pe.millisecond(0),m.value)},T=pe=>{M(g.value,pe.millisecond(0))},A=pe=>{const Y=pe.map(me=>Ht(me).locale(i.value)),ie=j(Y);return Y[0].isSame(ie[0])&&Y[1].isSame(ie[1])},M=(pe,Y)=>{t("pick",[pe,Y],!0)},E=R(()=>g.value>m.value),I=U([0,2]),L=(pe,Y)=>{t("select-range",pe,Y,"min"),I.value=[pe,Y]},O=R(()=>S.value?11:8),z=(pe,Y)=>{t("select-range",pe,Y,"max");const ie=_(O);I.value=[pe+ie,Y+ie]},F=pe=>{const Y=S.value?[0,3,6,11,14,17]:[0,3,8,11],ie=["hours","minutes"].concat(S.value?["seconds"]:[]),De=(Y.indexOf(I.value[0])+pe+Y.length)%Y.length,Be=Y.length/2;De<Be?le.start_emitSelectRange(ie[De]):le.end_emitSelectRange(ie[De-Be])},$=pe=>{const Y=pe.code,{left:ie,right:me,up:De,down:Be}=_t;if([ie,me].includes(Y)){F(Y===ie?-1:1),pe.preventDefault();return}if([De,Be].includes(Y)){const Oe=Y===De?-1:1,de=I.value[0]<O.value?"start":"end";le[`${de}_scrollDown`](Oe),pe.preventDefault();return}},V=(pe,Y)=>{const ie=c?c(pe):[],me=pe==="start",Be=(Y||(me?m.value:g.value)).hour(),Oe=me?r(Be+1,23):r(0,Be-1);return sC(ie,Oe)},P=(pe,Y,ie)=>{const me=f?f(pe,Y):[],De=Y==="start",Be=ie||(De?m.value:g.value),Oe=Be.hour();if(pe!==Oe)return me;const de=Be.minute(),we=De?r(de+1,59):r(0,de-1);return sC(me,we)},G=(pe,Y,ie,me)=>{const De=d?d(pe,Y,ie):[],Be=ie==="start",Oe=me||(Be?m.value:g.value),de=Oe.hour(),we=Oe.minute();if(pe!==de||Y!==we)return De;const Se=Oe.second(),Ie=Be?r(Se+1,59):r(0,Se-1);return sC(De,Ie)},j=([pe,Y])=>[ce(pe,"start",!0,Y),ce(Y,"end",!1,pe)],{getAvailableHours:J,getAvailableMinutes:ne,getAvailableSeconds:ve}=p9(V,P,G),{timePickerOptions:le,getAvailableTime:ce,onSetOption:ue}=h9({getAvailableHours:J,getAvailableMinutes:ne,getAvailableSeconds:ve}),Q=pe=>pe?ft(pe)?pe.map(Y=>Ht(Y,n.format).locale(i.value)):Ht(pe,n.format).locale(i.value):null,_e=pe=>pe?ft(pe)?pe.map(Y=>Y.format(n.format)):pe.format(n.format):null,Pe=()=>{if(ft(h))return h.map(Y=>Ht(Y).locale(i.value));const pe=Ht(h).locale(i.value);return[pe,pe.add(60,"m")]};return t("set-picker-option",["formatToString",_e]),t("set-picker-option",["parseUserInput",Q]),t("set-picker-option",["isValidValue",A]),t("set-picker-option",["handleKeydownInput",$]),t("set-picker-option",["getDefaultValue",Pe]),t("set-picker-option",["getRangeAvailableTime",j]),(pe,Y)=>pe.actualVisible?(N(),X("div",{key:0,class:H([_(o).b("range-picker"),_(s).b("panel")])},[ee("div",{class:H(_(o).be("range-picker","content"))},[ee("div",{class:H(_(o).be("range-picker","cell"))},[ee("div",{class:H(_(o).be("range-picker","header"))},qe(_(a)("el.datepicker.startTime")),3),ee("div",{class:H(_(v))},[re(KT,{ref:"minSpinner",role:"start","show-seconds":_(S),"am-pm-mode":_(C),"arrow-control":_(u),"spinner-date":_(g),"disabled-hours":V,"disabled-minutes":P,"disabled-seconds":G,onChange:x,onSetOption:_(ue),onSelectRange:L},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),ee("div",{class:H(_(o).be("range-picker","cell"))},[ee("div",{class:H(_(o).be("range-picker","header"))},qe(_(a)("el.datepicker.endTime")),3),ee("div",{class:H(_(p))},[re(KT,{ref:"maxSpinner",role:"end","show-seconds":_(S),"am-pm-mode":_(C),"arrow-control":_(u),"spinner-date":_(m),"disabled-hours":V,"disabled-minutes":P,"disabled-seconds":G,onChange:T,onSetOption:_(ue),onSelectRange:z},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),ee("div",{class:H(_(o).be("panel","footer"))},[ee("button",{type:"button",class:H([_(o).be("panel","btn"),"cancel"]),onClick:Y[0]||(Y[0]=ie=>w())},qe(_(a)("el.datepicker.cancel")),3),ee("button",{type:"button",class:H([_(o).be("panel","btn"),"confirm"]),disabled:_(E),onClick:Y[1]||(Y[1]=ie=>y())},qe(_(a)("el.datepicker.confirm")),11,pge)],2)],2)):be("v-if",!0)}});var mge=Xe(gge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);Ht.extend(FM);var yge=te({name:"ElTimePicker",install:null,props:{...VM,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=U(),[r,a]=e.isRange?["timerange",mge]:["time",$1],i=o=>t.emit("update:modelValue",o);return tn("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:NT;return re(d9,qt(e,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>re(a,l,null)})}}});const Bb=yge;Bb.install=e=>{e.component(Bb.name,Bb)};const bge=Bb,_ge=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return Iu(t).map((r,a)=>n-(t-a-1))},wge=e=>{const t=e.daysInMonth();return Iu(t).map((n,r)=>r+1)},Sge=e=>Iu(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),Cge=Je({selectedDay:{type:Ce(Object)},range:{type:Ce(Array)},date:{type:Ce(Object),required:!0},hideHeader:{type:Boolean}}),xge={pick:e=>Qt(e)};var x9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Rl,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]),w=m||b.map(function(C){return C.slice(0,v)});if(!p)return w;var S=g.weekStart;return w.map(function(C,y){return w[(y+(S||0))%7]})},l=function(){return a.Ls[a.locale()]},u=function(f,d){return f.formats[d]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,p,g){return p||g.slice(1)})}(f.formats[d.toUpperCase()])},c=function(){var f=this;return{months:function(d){return d?d.format("MMMM"):s(f,"months")},monthsShort:function(d){return d?d.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):s(f,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return u(f.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return c.bind(this)()},a.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(d){return u(f,d)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(l(),"months")},a.monthsShort=function(){return s(l(),"monthsShort","months",3)},a.weekdays=function(f){return s(l(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}})})(x9);var Tge=x9.exports;const T9=as(Tge),kge=(e,t)=>{Ht.extend(T9);const n=Ht.localeData().firstDayOfWeek(),{t:r,lang:a}=bn(),i=Ht().locale(a.value),o=R(()=>!!e.range&&!!e.range.length),s=R(()=>{let d=[];if(o.value){const[h,v]=e.range,p=Iu(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=Iu(g).map((b,w)=>({text:w+1,type:"next"}));d=p.concat(m)}else{const h=e.date.startOf("month").day(),v=_ge(e.date,(h-n+7)%7).map(b=>({text:b,type:"prev"})),p=wge(e.date).map(b=>({text:b,type:"current"}));d=[...v,...p];const g=7-(d.length%7||7),m=Iu(g).map((b,w)=>({text:w+1,type:"next"}));d=d.concat(m)}return Sge(d)}),l=R(()=>{const d=n;return d===0?lC.map(h=>r(`el.datepicker.weeks.${h}`)):lC.slice(d).concat(lC.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()}}}},Age={key:0},Ege=["onClick"],Mge=te({name:"DateTable"}),Ige=te({...Mge,props:Cge,emits:xge,setup(e,{expose:t,emit:n}){const r=e,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=kge(r,n),f=We("calendar-table"),d=We("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)=>(N(),X("table",{class:H([_(f).b(),_(f).is("range",_(a))]),cellspacing:"0",cellpadding:"0"},[v.hideHeader?be("v-if",!0):(N(),X("thead",Age,[(N(!0),X(gt,null,un(_(s),g=>(N(),X("th",{key:g},qe(g),1))),128))])),ee("tbody",null,[(N(!0),X(gt,null,un(_(o),(g,m)=>(N(),X("tr",{key:m,class:H({[_(f).e("row")]:!0,[_(f).em("row","hide-border")]:m===0&&v.hideHeader})},[(N(!0),X(gt,null,un(g,(b,w)=>(N(),X("td",{key:w,class:H(h(b)),onClick:S=>_(u)(b)},[ee("div",{class:H(_(d).b())},[Ve(v.$slots,"date-cell",{data:_(c)(b)},()=>[ee("span",null,qe(b.text),1)])],2)],10,Ege))),128))],2))),128))])],2))}});var lN=Xe(Ige,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const Dge=(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]]},Lge=(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]]},Pge=(e,t,n)=>{const r=ka(),{lang:a}=bn(),i=U(),o=Ht().locale(a.value),s=R({get(){return e.modelValue?u.value:i.value},set(m){if(!m)return;i.value=m;const b=m.toDate();t(Ja,b),t(Kt,b)}}),l=R(()=>{if(!e.range)return[];const m=e.range.map(S=>Ht(S).locale(a.value)),[b,w]=m;return b.isAfter(w)?[]:b.isSame(w,"month")?v(b,w):b.add(1,"month").month()!==w.month()?[]:v(b,w)}),u=R(()=>e.modelValue?Ht(e.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:o)),c=R(()=>u.value.subtract(1,"month").date(1)),f=R(()=>u.value.add(1,"month").date(1)),d=R(()=>u.value.subtract(1,"year").date(1)),h=R(()=>u.value.add(1,"year").date(1)),v=(m,b)=>{const w=m.startOf("week"),S=b.endOf("week"),C=w.get("month"),y=S.get("month");return C===y?[[w,S]]:(C+1)%12===y?Dge(w,S):C+2===y||(C+1)%11===y?Lge(w,S):[]},p=m=>{s.value=m},g=m=>{const w={"prev-month":c.value,"next-month":f.value,"prev-year":d.value,"next-year":h.value,today:o}[m];w.isSame(u.value,"day")||p(w)};return $s({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},R(()=>!!r.dateCell)),{calculateValidatedDateRange:v,date:u,realSelectedDay:s,pickDay:p,selectDate:g,validatedRange:l}},Rge=e=>ft(e)&&e.length===2&&e.every(t=>Hf(t)),Oge=Je({modelValue:{type:Date},range:{type:Ce(Array),validator:Rge}}),Nge={[Kt]:e=>Hf(e),[Ja]:e=>Hf(e)},$ge="ElCalendar",Bge=te({name:$ge}),Fge=te({...Bge,props:Oge,emits:Nge,setup(e,{expose:t,emit:n}){const r=e,a=We("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=Pge(r,n),{t:f}=bn(),d=R(()=>{const h=`el.datepicker.month${o.value.format("M")}`;return`${o.value.year()} ${f("el.datepicker.year")} ${f(h)}`});return t({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(h,v)=>(N(),X("div",{class:H(_(a).b())},[ee("div",{class:H(_(a).e("header"))},[Ve(h.$slots,"header",{date:_(d)},()=>[ee("div",{class:H(_(a).e("title"))},qe(_(d)),3),_(c).length===0?(N(),X("div",{key:0,class:H(_(a).e("button-group"))},[re(_(i9),null,{default:fe(()=>[re(_(_a),{size:"small",onClick:v[0]||(v[0]=p=>_(u)("prev-month"))},{default:fe(()=>[Cn(qe(_(f)("el.datepicker.prevMonth")),1)]),_:1}),re(_(_a),{size:"small",onClick:v[1]||(v[1]=p=>_(u)("today"))},{default:fe(()=>[Cn(qe(_(f)("el.datepicker.today")),1)]),_:1}),re(_(_a),{size:"small",onClick:v[2]||(v[2]=p=>_(u)("next-month"))},{default:fe(()=>[Cn(qe(_(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):be("v-if",!0)])],2),_(c).length===0?(N(),X("div",{key:0,class:H(_(a).e("body"))},[re(lN,{date:_(o),"selected-day":_(l),onPick:_(s)},bl({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:fe(p=>[h.$slots["date-cell"]?Ve(h.$slots,"date-cell",Vo(qt({key:0},p))):Ve(h.$slots,"dateCell",Vo(qt({key:1},p)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(N(),X("div",{key:1,class:H(_(a).e("body"))},[(N(!0),X(gt,null,un(_(c),(p,g)=>(N(),Te(lN,{key:g,date:p[0],"selected-day":_(l),range:p,"hide-header":g!==0,onPick:_(s)},bl({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:fe(m=>[h.$slots["date-cell"]?Ve(h.$slots,"date-cell",Vo(qt({key:0},m))):Ve(h.$slots,"dateCell",Vo(qt({key:1},m)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var Vge=Xe(Fge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const zge=Ut(Vge),Hge=Je({header:{type:String,default:""},bodyStyle:{type:Ce([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),Wge=te({name:"ElCard"}),Gge=te({...Wge,props:Hge,setup(e){const t=We("card");return(n,r)=>(N(),X("div",{class:H([_(t).b(),_(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(N(),X("div",{key:0,class:H(_(t).e("header"))},[Ve(n.$slots,"header",{},()=>[Cn(qe(n.header),1)])],2)):be("v-if",!0),ee("div",{class:H([_(t).e("body"),n.bodyClass]),style:mt(n.bodyStyle)},[Ve(n.$slots,"default")],6)],2))}});var Uge=Xe(Gge,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const Kge=Ut(Uge),jge=Je({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),Yge={change:(e,t)=>[e,t].every(kt)},k9=Symbol("carouselContextKey"),uN=300,qge=(e,t,n)=>{const{children:r,addChild:a,removeChild:i}=PM(Nt(),"ElCarouselItem"),o=U(-1),s=U(null),l=U(!1),u=U(),c=U(0),f=R(()=>e.arrow!=="never"&&!_(v)),d=R(()=>r.value.some(P=>P.props.label.toString().length>0)),h=R(()=>e.type==="card"),v=R(()=>e.direction==="vertical"),p=R(()=>e.height!=="auto"?{height:e.height}:{height:`${c.value}px`,overflow:"hidden"}),g=Df(P=>{C(P)},uN,{trailing:!0}),m=Df(P=>{L(P)},uN);function b(){s.value&&(clearInterval(s.value),s.value=null)}function w(){e.interval<=0||!e.autoplay||s.value||(s.value=setInterval(()=>S(),e.interval))}const S=()=>{o.value<r.value.length-1?o.value=o.value+1:e.loop&&(o.value=0)};function C(P){if(Mt(P)){const J=r.value.filter(ne=>ne.props.name===P);J.length>0&&(P=r.value.indexOf(J[0]))}if(P=Number(P),Number.isNaN(P)||P!==Math.floor(P))return;const G=r.value.length,j=o.value;P<0?o.value=e.loop?G-1:0:P>=G?o.value=e.loop?0:G-1:o.value=P,j===o.value&&y(j),F()}function y(P){r.value.forEach((G,j)=>{G.translateItem(j,o.value,P)})}function x(P,G){var j,J,ne,ve;const le=_(r),ce=le.length;if(ce===0||!P.states.inStage)return!1;const ue=G+1,Q=G-1,_e=ce-1,Pe=le[_e].states.active,pe=le[0].states.active,Y=(J=(j=le[ue])==null?void 0:j.states)==null?void 0:J.active,ie=(ve=(ne=le[Q])==null?void 0:ne.states)==null?void 0:ve.active;return G===_e&&pe||Y?"left":G===0&&Pe||ie?"right":!1}function T(){l.value=!0,e.pauseOnHover&&b()}function A(){l.value=!1,w()}function M(P){_(v)||r.value.forEach((G,j)=>{P===x(G,j)&&(G.states.hover=!0)})}function E(){_(v)||r.value.forEach(P=>{P.states.hover=!1})}function I(P){o.value=P}function L(P){e.trigger==="hover"&&P!==o.value&&(o.value=P)}function O(){C(o.value-1)}function z(){C(o.value+1)}function F(){b(),w()}function $(P){e.height==="auto"&&(c.value=P)}ze(()=>o.value,(P,G)=>{y(G),G>-1&&t("change",P,G)}),ze(()=>e.autoplay,P=>{P?w():b()}),ze(()=>e.loop,()=>{C(o.value)}),ze(()=>e.interval,()=>{F()}),ze(()=>r.value,()=>{r.value.length>0&&C(e.initialIndex)});const V=Wn();return zt(()=>{V.value=$a(u.value,()=>{y()}),w()}),sr(()=>{b(),u.value&&V.value&&V.value.stop()}),tn(k9,{root:u,isCardType:h,isVertical:v,items:r,loop:e.loop,addItem:a,removeItem:i,setActiveItem:C,setContainerHeight:$}),{root:u,activeIndex:o,arrowDisplay:f,hasLabel:d,hover:l,isCardType:h,items:r,isVertical:v,containerStyle:p,handleButtonEnter:M,handleButtonLeave:E,handleIndicatorClick:I,handleMouseEnter:T,handleMouseLeave:A,setActiveItem:C,prev:O,next:z,throttledArrowClick:g,throttledIndicatorHover:m}},Xge=["onMouseenter","onClick"],Zge={key:0},Jge="ElCarousel",Qge=te({name:Jge}),eme=te({...Qge,props:jge,emits:Yge,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:w,next:S,throttledArrowClick:C,throttledIndicatorHover:y}=qge(r,n),x=We("carousel"),T=R(()=>{const M=[x.b(),x.m(r.direction)];return _(u)&&M.push(x.m("card")),M}),A=R(()=>{const M=[x.e("indicators"),x.em("indicators",r.direction)];return _(s)&&M.push(x.em("indicators","labels")),r.indicatorPosition==="outside"&&M.push(x.em("indicators","outside")),_(f)&&M.push(x.em("indicators","right")),M});return t({setActiveItem:b,prev:w,next:S}),(M,E)=>(N(),X("div",{ref_key:"root",ref:a,class:H(_(T)),onMouseenter:E[6]||(E[6]=xt((...I)=>_(g)&&_(g)(...I),["stop"])),onMouseleave:E[7]||(E[7]=xt((...I)=>_(m)&&_(m)(...I),["stop"]))},[ee("div",{class:H(_(x).e("container")),style:mt(_(d))},[_(o)?(N(),Te(Mr,{key:0,name:"carousel-arrow-left",persisted:""},{default:fe(()=>[Rt(ee("button",{type:"button",class:H([_(x).e("arrow"),_(x).em("arrow","left")]),onMouseenter:E[0]||(E[0]=I=>_(h)("left")),onMouseleave:E[1]||(E[1]=(...I)=>_(v)&&_(v)(...I)),onClick:E[2]||(E[2]=xt(I=>_(C)(_(i)-1),["stop"]))},[re(_(vt),null,{default:fe(()=>[re(_(Vu))]),_:1})],34),[[Sn,(M.arrow==="always"||_(l))&&(r.loop||_(i)>0)]])]),_:1})):be("v-if",!0),_(o)?(N(),Te(Mr,{key:1,name:"carousel-arrow-right",persisted:""},{default:fe(()=>[Rt(ee("button",{type:"button",class:H([_(x).e("arrow"),_(x).em("arrow","right")]),onMouseenter:E[3]||(E[3]=I=>_(h)("right")),onMouseleave:E[4]||(E[4]=(...I)=>_(v)&&_(v)(...I)),onClick:E[5]||(E[5]=xt(I=>_(C)(_(i)+1),["stop"]))},[re(_(vt),null,{default:fe(()=>[re(_(Za))]),_:1})],34),[[Sn,(M.arrow==="always"||_(l))&&(r.loop||_(i)<_(c).length-1)]])]),_:1})):be("v-if",!0),Ve(M.$slots,"default")],6),M.indicatorPosition!=="none"?(N(),X("ul",{key:0,class:H(_(A))},[(N(!0),X(gt,null,un(_(c),(I,L)=>(N(),X("li",{key:L,class:H([_(x).e("indicator"),_(x).em("indicator",M.direction),_(x).is("active",L===_(i))]),onMouseenter:O=>_(y)(L),onClick:xt(O=>_(p)(L),["stop"])},[ee("button",{class:H(_(x).e("button"))},[_(s)?(N(),X("span",Zge,qe(I.props.label),1)):be("v-if",!0)],2)],42,Xge))),128))],2)):be("v-if",!0)],34))}});var tme=Xe(eme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const nme=Je({name:{type:String,default:""},label:{type:[String,Number],default:""}}),rme=(e,t)=>{const n=ct(k9),r=Nt(),a=.83,i=U(),o=U(!1),s=U(0),l=U(1),u=U(!1),c=U(!1),f=U(!1),d=U(!1),{isCardType:h,isVertical:v}=n;function p(S,C,y){const x=y-1,T=C-1,A=C+1,M=y/2;return C===0&&S===x?-1:C===x&&S===0?y:S<T&&C-S>=M?y+1:S>A&&S-C>=M?-2:S}function g(S,C){var y,x;const T=_(v)?((y=n.root.value)==null?void 0:y.offsetHeight)||0:((x=n.root.value)==null?void 0:x.offsetWidth)||0;return f.value?T*((2-a)*(S-C)+1)/4:S<C?-(1+a)*T/4:(3+a)*T/4}function m(S,C,y){const x=n.root.value;return x?((y?x.offsetHeight:x.offsetWidth)||0)*(S-C):0}const b=(S,C,y)=>{var x;const T=_(h),A=(x=n.items.value.length)!=null?x:Number.NaN,M=S===C;!T&&!Xr(y)&&(d.value=M||S===y),!M&&A>2&&n.loop&&(S=p(S,C,A));const E=_(v);u.value=M,T?(f.value=Math.round(Math.abs(S-C))<=1,s.value=g(S,C),l.value=_(u)?1:a):s.value=m(S,C,E),c.value=!0,M&&i.value&&n.setContainerHeight(i.value.offsetHeight)};function w(){if(n&&_(h)){const S=n.items.value.findIndex(({uid:C})=>C===r.uid);n.setActiveItem(S)}}return zt(()=>{n.addItem({props:e,states:xn({hover:o,translate:s,scale:l,active:u,ready:c,inStage:f,animating:d}),uid:r.uid,translateItem:b})}),Pl(()=>{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:w}},ame=te({name:"ElCarouselItem"}),ime=te({...ame,props:nme,setup(e){const t=e,n=We("carousel"),{carouselItemRef:r,active:a,animating:i,hover:o,inStage:s,isVertical:l,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:h}=rme(t),v=R(()=>{const g=`${`translate${_(l)?"Y":"X"}`}(${_(u)}px)`,m=`scale(${_(f)})`;return{transform:[g,m].join(" ")}});return(p,g)=>Rt((N(),X("div",{ref_key:"carouselItemRef",ref:r,class:H([_(n).e("item"),_(n).is("active",_(a)),_(n).is("in-stage",_(s)),_(n).is("hover",_(o)),_(n).is("animating",_(i)),{[_(n).em("item","card")]:_(c),[_(n).em("item","card-vertical")]:_(c)&&_(l)}]),style:mt(_(v)),onClick:g[0]||(g[0]=(...m)=>_(h)&&_(h)(...m))},[_(c)?Rt((N(),X("div",{key:0,class:H(_(n).e("mask"))},null,2)),[[Sn,!_(a)]]):be("v-if",!0),Ve(p.$slots,"default")],6)),[[Sn,_(d)]])}});var A9=Xe(ime,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const ome=Ut(tme,{CarouselItem:A9}),sme=br(A9),E9={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:Sa,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},M9={[Kt]:e=>Mt(e)||kt(e)||Gr(e),change:e=>Mt(e)||kt(e)||Gr(e)},wv=Symbol("checkboxGroupContextKey"),lme=({model:e,isChecked:t})=>{const n=ct(wv,void 0),r=R(()=>{var i,o;const s=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(o=n==null?void 0:n.min)==null?void 0:o.value;return!Xr(s)&&e.value.length>=s&&!t.value||!Xr(l)&&e.value.length<=l&&t.value});return{isDisabled:xi(R(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},ume=(e,{model:t,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const o=ct(wv,void 0),{formItem:s}=si(),{emit:l}=Nt();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 pt(),c(t.value,v)))}const h=R(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return ze(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},cme=e=>{const t=U(!1),{emit:n}=Nt(),r=ct(wv,void 0),a=R(()=>Xr(r)===!1),i=U(!1);return{model:R({get(){var s,l;return a.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;a.value&&ft(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(Kt,s),t.value=s)}}),isGroup:a,isLimitExceeded:i}},fme=(e,t,{model:n})=>{const r=ct(wv,void 0),a=U(!1),i=R(()=>{const u=n.value;return Gr(u)?u:ft(u)?Qt(e.label)?u.map(In).some(c=>yi(c,e.label)):u.map(In).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=jr(R(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=jr(R(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=R(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:l}},dme=(e,{model:t})=>{function n(){ft(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},I9=(e,t)=>{const{formItem:n}=si(),{model:r,isGroup:a,isLimitExceeded:i}=cme(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=fme(e,t,{model:r}),{isDisabled:f}=lme({model:r,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=oc(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:v,onClickRoot:p}=ume(e,{model:r,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return dme(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}},hme=["tabindex","role","aria-checked"],vme=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],pme=["id","aria-hidden","disabled","value","name","tabindex"],gme=te({name:"ElCheckbox"}),mme=te({...gme,props:E9,emits:M9,setup(e){const t=e,n=ka(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=I9(t,n),h=We("checkbox"),v=R(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",i.value)]),p=R(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",i.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(g,m)=>(N(),Te(Xt(!_(u)&&_(a)?"span":"label"),{class:H(_(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:_(d)},{default:fe(()=>[ee("span",{class:H(_(p)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?Rt((N(),X("input",{key:0,id:_(r),"onUpdate:modelValue":m[0]||(m[0]=b=>Rn(c)?c.value=b:null),class:H(_(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:_(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...b)=>_(f)&&_(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]=xt(()=>{},["stop"]))},null,42,vme)),[[A1,_(c)]]):Rt((N(),X("input",{key:1,id:_(r),"onUpdate:modelValue":m[5]||(m[5]=b=>Rn(c)?c.value=b:null),class:H(_(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:_(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[6]||(m[6]=(...b)=>_(f)&&_(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]=xt(()=>{},["stop"]))},null,42,pme)),[[A1,_(c)]]),ee("span",{class:H(_(h).e("inner"))},null,2)],10,hme),_(u)?(N(),X("span",{key:0,class:H(_(h).e("label"))},[Ve(g.$slots,"default"),g.$slots.default?be("v-if",!0):(N(),X(gt,{key:0},[Cn(qe(g.label),1)],64))],2)):be("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var yme=Xe(mme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const bme=["name","tabindex","disabled","true-value","false-value"],_me=["name","tabindex","disabled","value"],wme=te({name:"ElCheckboxButton"}),Sme=te({...wme,props:E9,emits:M9,setup(e){const t=e,n=ka(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:l}=I9(t,n),u=ct(wv,void 0),c=We("checkbox"),f=R(()=>{var h,v,p,g;const m=(v=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?v:"";return{backgroundColor:m,borderColor:m,color:(g=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?g:"",boxShadow:m?`-1px 0 0 0 ${m}`:void 0}}),d=R(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",i.value),c.is("checked",a.value),c.is("focus",r.value)]);return(h,v)=>(N(),X("label",{class:H(_(d))},[h.trueLabel||h.falseLabel?Rt((N(),X("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>Rn(s)?s.value=p:null),class:H(_(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:_(i),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>_(l)&&_(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]=xt(()=>{},["stop"]))},null,42,bme)),[[A1,_(s)]]):Rt((N(),X("input",{key:1,"onUpdate:modelValue":v[5]||(v[5]=p=>Rn(s)?s.value=p:null),class:H(_(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:_(i),value:h.label,onChange:v[6]||(v[6]=(...p)=>_(l)&&_(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]=xt(()=>{},["stop"]))},null,42,_me)),[[A1,_(s)]]),h.$slots.default||h.label?(N(),X("span",{key:2,class:H(_(c).be("button","inner")),style:mt(_(a)?_(f):void 0)},[Ve(h.$slots,"default",{},()=>[Cn(qe(h.label),1)])],6)):be("v-if",!0)],2))}});var D9=Xe(Sme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const Cme=Je({modelValue:{type:Ce(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Sa,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),xme={[Kt]:e=>ft(e),change:e=>ft(e)},Tme=te({name:"ElCheckboxGroup"}),kme=te({...Tme,props:Cme,emits:xme,setup(e,{emit:t}){const n=e,r=We("checkbox"),{formItem:a}=si(),{inputId:i,isLabeledByFormItem:o}=oc(n,{formItemContext:a}),s=async u=>{t(Kt,u),await pt(),t("change",u)},l=R({get(){return n.modelValue},set(u){s(u)}});return tn(wv,{...ol(Jr(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),ze(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return N(),Te(Xt(u.tag),{id:_(i),class:H(_(r).b("group")),role:"group","aria-label":_(o)?void 0:u.label||"checkbox-group","aria-labelledby":_(o)?(f=_(a))==null?void 0:f.labelId:void 0},{default:fe(()=>[Ve(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var L9=Xe(kme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const yo=Ut(yme,{CheckboxButton:D9,CheckboxGroup:L9}),Ame=br(D9),P9=br(L9),R9=Je({size:Sa,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Eme=Je({...R9,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),O9={[Kt]:e=>Mt(e)||kt(e)||Gr(e),[nr]:e=>Mt(e)||kt(e)||Gr(e)},N9=Symbol("radioGroupKey"),$9=(e,t)=>{const n=U(),r=ct(N9,void 0),a=R(()=>!!r),i=R({get(){return a.value?r.modelValue:e.modelValue},set(c){a.value?r.changeEvent(c):t&&t(Kt,c),n.value.checked=e.modelValue===e.label}}),o=jr(R(()=>r==null?void 0:r.size)),s=xi(R(()=>r==null?void 0:r.disabled)),l=U(!1),u=R(()=>s.value||a.value&&i.value!==e.label?-1:0);return{radioRef:n,isGroup:a,radioGroup:r,focus:l,size:o,disabled:s,tabIndex:u,modelValue:i}},Mme=["value","name","disabled"],Ime=te({name:"ElRadio"}),Dme=te({...Ime,props:Eme,emits:O9,setup(e,{emit:t}){const n=e,r=We("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=$9(n,t);function c(){pt(()=>t("change",u.value))}return(f,d)=>{var h;return N(),X("label",{class:H([_(r).b(),_(r).is("disabled",_(l)),_(r).is("focus",_(o)),_(r).is("bordered",f.border),_(r).is("checked",_(u)===f.label),_(r).m(_(s))])},[ee("span",{class:H([_(r).e("input"),_(r).is("disabled",_(l)),_(r).is("checked",_(u)===f.label)])},[Rt(ee("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=v=>Rn(u)?u.value=v:null),class:H(_(r).e("original")),value:f.label,name:f.name||((h=_(i))==null?void 0:h.name),disabled:_(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]=xt(()=>{},["stop"]))},null,42,Mme),[[E8,_(u)]]),ee("span",{class:H(_(r).e("inner"))},null,2)],2),ee("span",{class:H(_(r).e("label")),onKeydown:d[4]||(d[4]=xt(()=>{},["stop"]))},[Ve(f.$slots,"default",{},()=>[Cn(qe(f.label),1)])],34)],2)}}});var Lme=Xe(Dme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Pme=Je({...R9,name:{type:String,default:""}}),Rme=["value","name","disabled"],Ome=te({name:"ElRadioButton"}),Nme=te({...Ome,props:Pme,setup(e){const t=e,n=We("radio"),{radioRef:r,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=$9(t),u=R(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(c,f)=>{var d;return N(),X("label",{class:H([_(n).b("button"),_(n).is("active",_(s)===c.label),_(n).is("disabled",_(o)),_(n).is("focus",_(a)),_(n).bm("button",_(i))])},[Rt(ee("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=h=>Rn(s)?s.value=h:null),class:H(_(n).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((d=_(l))==null?void 0:d.name),disabled:_(o),onFocus:f[1]||(f[1]=h=>a.value=!0),onBlur:f[2]||(f[2]=h=>a.value=!1),onClick:f[3]||(f[3]=xt(()=>{},["stop"]))},null,42,Rme),[[E8,_(s)]]),ee("span",{class:H(_(n).be("button","inner")),style:mt(_(s)===c.label?_(u):{}),onKeydown:f[4]||(f[4]=xt(()=>{},["stop"]))},[Ve(c.$slots,"default",{},()=>[Cn(qe(c.label),1)])],38)],2)}}});var B9=Xe(Nme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const $me=Je({id:{type:String,default:void 0},size:Sa,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}}),Bme=O9,Fme=["id","aria-label","aria-labelledby"],Vme=te({name:"ElRadioGroup"}),zme=te({...Vme,props:$me,emits:Bme,setup(e,{emit:t}){const n=e,r=We("radio"),a=go(),i=U(),{formItem:o}=si(),{inputId:s,isLabeledByFormItem:l}=oc(n,{formItemContext:o}),u=f=>{t(Kt,f),pt(()=>t("change",f))};zt(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=R(()=>n.name||a.value);return tn(N9,xn({...Jr(n),changeEvent:u,name:c})),ze(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>(N(),X("div",{id:_(s),ref_key:"radioGroupRef",ref:i,class:H(_(r).b("group")),role:"radiogroup","aria-label":_(l)?void 0:f.label||"radio-group","aria-labelledby":_(l)?_(o).labelId:void 0},[Ve(f.$slots,"default")],10,Fme))}});var F9=Xe(zme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const V9=Ut(Lme,{RadioButton:B9,RadioGroup:F9}),Hme=br(F9),Wme=br(B9);var Gme=te({name:"NodeContent",setup(){return{ns:We("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:r,label:a}=t,{renderLabelFn:i}=n;return bt("span",{class:e.e("label")},i?i({node:t,data:r}):a)}});const zM=Symbol(),Ume=te({name:"ElCascaderNode",components:{ElCheckbox:yo,ElRadio:V9,NodeContent:Gme,ElIcon:vt,Check:oy,Loading:rc,ArrowRight:Za},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=ct(zM),r=We("cascader-node"),a=R(()=>n.isHoverMenu),i=R(()=>n.config.multiple),o=R(()=>n.config.checkStrictly),s=R(()=>{var y;return(y=n.checkedNodes[0])==null?void 0:y.uid}),l=R(()=>e.node.isDisabled),u=R(()=>e.node.isLeaf),c=R(()=>o.value&&!u.value||!l.value),f=R(()=>h(n.expandingNode)),d=R(()=>o.value&&n.checkedNodes.some(h)),h=y=>{var x;const{level:T,uid:A}=e.node;return((x=y==null?void 0:y.pathNodes[T-1])==null?void 0:x.uid)===A},v=()=>{f.value||n.expandNode(e.node)},p=y=>{const{node:x}=e;y!==x.checked&&n.handleCheckChange(x,y)},g=()=>{n.lazyLoad(e.node,()=>{u.value||v()})},m=y=>{a.value&&(b(),!u.value&&t("expand",y))},b=()=>{const{node:y}=e;!c.value||y.loading||(y.loaded?v():g())},w=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?C(!0):b())},S=y=>{o.value?(p(y),e.node.loaded&&v()):C(y)},C=y=>{e.node.loaded?(p(y),!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:w,handleCheck:C,handleSelectCheck:S}}}),Kme=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],jme=ee("span",null,null,-1);function Yme(e,t,n,r,a,i){const o=Dt("el-checkbox"),s=Dt("el-radio"),l=Dt("check"),u=Dt("el-icon"),c=Dt("node-content"),f=Dt("loading"),d=Dt("arrow-right");return N(),X("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:H([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))},[be(" prefix "),e.multiple?(N(),Te(o,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:t[0]||(t[0]=xt(()=>{},["stop"])),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):e.checkStrictly?(N(),Te(s,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:t[1]||(t[1]=xt(()=>{},["stop"]))},{default:fe(()=>[be(`
  48. Add an empty element to avoid render label,
  49. do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
  50. `),jme]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):e.isLeaf&&e.node.checked?(N(),Te(u,{key:2,class:H(e.ns.e("prefix"))},{default:fe(()=>[re(l)]),_:1},8,["class"])):be("v-if",!0),be(" content "),re(c),be(" postfix "),e.isLeaf?be("v-if",!0):(N(),X(gt,{key:3},[e.node.loading?(N(),Te(u,{key:0,class:H([e.ns.is("loading"),e.ns.e("postfix")])},{default:fe(()=>[re(f)]),_:1},8,["class"])):(N(),Te(u,{key:1,class:H(["arrow-right",e.ns.e("postfix")])},{default:fe(()=>[re(d)]),_:1},8,["class"]))],64))],42,Kme)}var qme=Xe(Ume,[["render",Yme],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const Xme=te({name:"ElCascaderMenu",components:{Loading:rc,ElIcon:vt,ElScrollbar:$l,ElCascaderNode:qme},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Nt(),n=We("cascader-menu"),{t:r}=bn(),a=Cw();let i=null,o=null;const s=ct(zM),l=U(null),u=R(()=>!e.nodes.length),c=R(()=>!s.initialLoaded),f=R(()=>`cascader-menu-${a}-${e.index}`),d=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){v();const m=t.vnode.el,{left:b}=m.getBoundingClientRect(),{offsetWidth:w,offsetHeight:S}=m,C=g.clientX-b,y=i.offsetTop,x=y+i.offsetHeight;l.value.innerHTML=`
  51. <path style="pointer-events: auto;" fill="transparent" d="M${C} ${y} L${w} 0 V${y} Z" />
  52. <path style="pointer-events: auto;" fill="transparent" d="M${C} ${x} L${w} ${S} V${x} Z" />
  53. `}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 Zme(e,t,n,r,a,i){const o=Dt("el-cascader-node"),s=Dt("loading"),l=Dt("el-icon"),u=Dt("el-scrollbar");return N(),Te(u,{key:e.menuId,tag:"ul",role:"menu",class:H(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:fe(()=>{var c;return[(N(!0),X(gt,null,un(e.nodes,f=>(N(),Te(o,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(N(),X("div",{key:0,class:H(e.ns.e("empty-text"))},[re(l,{size:"14",class:H(e.ns.is("loading"))},{default:fe(()=>[re(s)]),_:1},8,["class"]),Cn(" "+qe(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(N(),X("div",{key:1,class:H(e.ns.e("empty-text"))},qe(e.t("el.cascader.noData")),3)):(c=e.panel)!=null&&c.isHoverMenu?(N(),X("svg",{key:2,ref:"hoverZone",class:H(e.ns.e("hover-zone"))},null,2)):be("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var Jme=Xe(Xme,[["render",Zme],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let Qme=0;const eye=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let jT=class YT{constructor(t,n,r,a=!1){this.data=t,this.config=n,this.parent=r,this.root=a,this.uid=Qme++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=n,l=t[s],u=eye(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 YT(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!ro(l)}get isDisabled(){const{data:t,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(At(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=At(o)?o(t,this):t[o];return Xr(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 YT(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${xs(t)}`;this.children.forEach(a=>{a&&(a.broadcast(t,...n),a[r]&&a[r](...n))})}emit(t,...n){const{parent:r}=this,a=`onChild${xs(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 qT=(e,t)=>e.reduce((n,r)=>(r.isLeaf?n.push(r):(!t&&n.push(r),n=n.concat(qT(r.children,t))),n),[]);class cN{constructor(t,n){this.config=n;const r=(t||[]).map(a=>new jT(a,this.config));this.nodes=r,this.allNodes=qT(r,!1),this.leafNodes=qT(r,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const r=n?n.appendChild(t):new jT(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=>yi(a.value,t)||yi(a.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:r,level:a})=>yi(t.value,r)&&t.level===a)||null}}const z9=Je({modelValue:{type:Ce([Number,String,Array])},options:{type:Ce(Array),default:()=>[]},props:{type:Ce(Object),default:()=>({})}}),tye={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:On,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},nye=e=>R(()=>({...tye,...e.props})),fN=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},rye=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():Z8(e)&&e.click()},aye=(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},iye=te({name:"ElCascaderPanel",components:{ElCascaderMenu:Jme},props:{...z9,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Kt,nr,"close","expand-change"],setup(e,{emit:t,slots:n}){let r=!1;const a=We("cascader"),i=nye(e);let o=null;const s=U(!0),l=U([]),u=U(null),c=U([]),f=U(null),d=U([]),h=R(()=>i.value.expandTrigger==="hover"),v=R(()=>e.renderLabel||n.default),p=()=>{const{options:I}=e,L=i.value;r=!1,o=new cN(I,L),c.value=[o.getNodes()],L.lazy&&ro(e.options)?(s.value=!1,g(void 0,O=>{O&&(o=new cN(O,L),c.value=[o.getNodes()]),s.value=!0,T(!1,!0)})):T(!1,!0)},g=(I,L)=>{const O=i.value;I=I||new jT({},O,void 0,!0),I.loading=!0;const z=F=>{const $=I,V=$.root?null:$;F&&(o==null||o.appendNodes(F,V)),$.loading=!1,$.loaded=!0,$.childrenData=$.childrenData||[],L&&L(F)};O.lazyLoad(I,z)},m=(I,L)=>{var O;const{level:z}=I,F=c.value.slice(0,z);let $;I.isLeaf?$=I.pathNodes[z-2]:($=I,F.push(I.children)),((O=f.value)==null?void 0:O.uid)!==($==null?void 0:$.uid)&&(f.value=I,c.value=F,!L&&t("expand-change",(I==null?void 0:I.pathValues)||[]))},b=(I,L,O=!0)=>{const{checkStrictly:z,multiple:F}=i.value,$=d.value[0];r=!0,!F&&($==null||$.doCheck(!1)),I.doCheck(L),x(),O&&!F&&!z&&t("close"),!O&&!F&&!z&&w(I)},w=I=>{I&&(I=I.parent,w(I),I&&m(I))},S=I=>o==null?void 0:o.getFlattedNodes(I),C=I=>{var L;return(L=S(I))==null?void 0:L.filter(O=>O.checked!==!1)},y=()=>{d.value.forEach(I=>I.doCheck(!1)),x(),c.value=c.value.slice(0,1),f.value=null,t("expand-change",[])},x=()=>{var I;const{checkStrictly:L,multiple:O}=i.value,z=d.value,F=C(!L),$=aye(z,F),V=$.map(P=>P.valueByOption);d.value=$,u.value=O?V:(I=V[0])!=null?I:null},T=(I=!1,L=!1)=>{const{modelValue:O}=e,{lazy:z,multiple:F,checkStrictly:$}=i.value,V=!$;if(!(!s.value||r||!L&&yi(O,u.value)))if(z&&!I){const G=fO(gle(pl(O))).map(j=>o==null?void 0:o.getNodeByValue(j)).filter(j=>!!j&&!j.loaded&&!j.loading);G.length?G.forEach(j=>{g(j,()=>T(!1,L))}):T(!0,L)}else{const P=F?pl(O):[O],G=fO(P.map(j=>o==null?void 0:o.getNodeByValue(j,V)));A(G,L),u.value=D1(O)}},A=(I,L=!0)=>{const{checkStrictly:O}=i.value,z=d.value,F=I.filter(P=>!!P&&(O||P.isLeaf)),$=o==null?void 0:o.getSameNode(f.value),V=L&&$||F[0];V?V.pathNodes.forEach(P=>m(P,!0)):f.value=null,z.forEach(P=>P.doCheck(!1)),e.props.multiple?xn(F).forEach(P=>P.doCheck(!0)):F.forEach(P=>P.doCheck(!0)),d.value=F,pt(M)},M=()=>{vn&&l.value.forEach(I=>{const L=I==null?void 0:I.$el;if(L){const O=L.querySelector(`.${a.namespace.value}-scrollbar__wrap`),z=L.querySelector(`.${a.b("node")}.${a.is("active")}`)||L.querySelector(`.${a.b("node")}.in-active-path`);Wz(O,z)}})},E=I=>{const L=I.target,{code:O}=I;switch(O){case _t.up:case _t.down:{I.preventDefault();const z=O===_t.up?-1:1;Db(J8(L,z,`.${a.b("node")}[tabindex="-1"]`));break}case _t.left:{I.preventDefault();const z=l.value[fN(L)-1],F=z==null?void 0:z.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);Db(F);break}case _t.right:{I.preventDefault();const z=l.value[fN(L)+1],F=z==null?void 0:z.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);Db(F);break}case _t.enter:rye(L);break}};return tn(zM,xn({config:i,expandingNode:f,checkedNodes:d,isHoverMenu:h,initialLoaded:s,renderLabelFn:v,lazyLoad:g,expandNode:m,handleCheckChange:b})),ze([i,()=>e.options],p,{deep:!0,immediate:!0}),ze(()=>e.modelValue,()=>{r=!1,T()},{deep:!0}),ze(()=>u.value,I=>{yi(I,e.modelValue)||(t(Kt,I),t(nr,I))}),r8(()=>l.value=[]),zt(()=>!ro(e.modelValue)&&T()),{ns:a,menuList:l,menus:c,checkedNodes:d,handleKeyDown:E,handleCheckChange:b,getFlattedNodes:S,getCheckedNodes:C,clearCheckedNodes:y,calculateCheckedValue:x,scrollToExpandingNode:M}}});function oye(e,t,n,r,a,i){const o=Dt("el-cascader-menu");return N(),X("div",{class:H([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:t[0]||(t[0]=(...s)=>e.handleKeyDown&&e.handleKeyDown(...s))},[(N(!0),X(gt,null,un(e.menus,(s,l)=>(N(),Te(o,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var Fb=Xe(iye,[["render",oye],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);Fb.install=e=>{e.component(Fb.name,Fb)};const H9=Fb,sye=H9,HM=Je({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:Gs,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),lye={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},uye=te({name:"ElTag"}),cye=te({...uye,props:HM,emits:lye,setup(e,{emit:t}){const n=e,r=jr(),a=We("tag"),i=R(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=n;return[a.b(),a.is("closable",f),a.m(l),a.m(r.value),a.m(c),a.is("hit",u),a.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(N(),X("span",{key:0,class:H(_(i)),style:mt({backgroundColor:l.color}),onClick:s},[ee("span",{class:H(_(a).e("content"))},[Ve(l.$slots,"default")],2),l.closable?(N(),Te(_(vt),{key:0,class:H(_(a).e("close")),onClick:xt(o,["stop"])},{default:fe(()=>[re(_(Jo))]),_:1},8,["class","onClick"])):be("v-if",!0)],6)):(N(),Te(Mr,{key:1,name:`${_(a).namespace.value}-zoom-in-center`,appear:""},{default:fe(()=>[ee("span",{class:H(_(i)),style:mt({backgroundColor:l.color}),onClick:s},[ee("span",{class:H(_(a).e("content"))},[Ve(l.$slots,"default")],2),l.closable?(N(),Te(_(vt),{key:0,class:H(_(a).e("close")),onClick:xt(o,["stop"])},{default:fe(()=>[re(_(Jo))]),_:1},8,["class","onClick"])):be("v-if",!0)],6)]),_:3},8,["name"]))}});var fye=Xe(cye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const om=Ut(fye),dye=Je({...z9,size:Sa,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:Ce(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:Ce(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:da.teleported,tagType:{...HM.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),hye={[Kt]:e=>!!e||e===null,[nr]:e=>!!e||e===null,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,visibleChange:e=>Gr(e),expandChange:e=>!!e,removeTag:e=>!!e},vye={key:0},pye=["placeholder","onKeydown"],gye=["onClick"],mye="ElCascader",yye=te({name:mye}),bye=te({...yye,props:dye,emits:hye,setup(e,{expose:t,emit:n}){const r=e,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:ye})=>{const{modifiersData:ge,placement:$e}=ye;["right","left","bottom","top"].includes($e)||(ge.arrow.x=35)},requires:["arrow"]}]},i=rd();let o=0,s=0;const l=We("cascader"),u=We("input"),{t:c}=bn(),{form:f,formItem:d}=si(),h=U(null),v=U(null),p=U(null),g=U(null),m=U(null),b=U(!1),w=U(!1),S=U(!1),C=U(!1),y=U(""),x=U(""),T=U([]),A=U([]),M=U([]),E=U(!1),I=R(()=>i.style),L=R(()=>r.disabled||(f==null?void 0:f.disabled)),O=R(()=>r.placeholder||c("el.cascader.placeholder")),z=R(()=>x.value||T.value.length>0||E.value?"":O.value),F=jr(),$=R(()=>["small"].includes(F.value)?"small":"default"),V=R(()=>!!r.props.multiple),P=R(()=>!r.filterable||V.value),G=R(()=>V.value?x.value:y.value),j=R(()=>{var ye;return((ye=g.value)==null?void 0:ye.checkedNodes)||[]}),J=R(()=>!r.clearable||L.value||S.value||!w.value?!1:!!j.value.length),ne=R(()=>{const{showAllLevels:ye,separator:ge}=r,$e=j.value;return $e.length?V.value?"":$e[0].calcText(ye,ge):""}),ve=R({get(){return D1(r.modelValue)},set(ye){n(Kt,ye),n(nr,ye),r.validateEvent&&(d==null||d.validate("change").catch(ge=>void 0))}}),le=R(()=>[l.b(),l.m(F.value),l.is("disabled",L.value),i.class]),ce=R(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",b.value)]),ue=R(()=>l.is("focus",b.value||C.value)),Q=R(()=>{var ye,ge;return(ge=(ye=h.value)==null?void 0:ye.popperRef)==null?void 0:ge.contentRef}),_e=ye=>{var ge,$e,se;L.value||(ye=ye??!b.value,ye!==b.value&&(b.value=ye,($e=(ge=v.value)==null?void 0:ge.input)==null||$e.setAttribute("aria-expanded",`${ye}`),ye?(Pe(),pt((se=g.value)==null?void 0:se.scrollToExpandingNode)):r.filterable&&Ge(),n("visibleChange",ye)))},Pe=()=>{pt(()=>{var ye;(ye=h.value)==null||ye.updatePopper()})},pe=()=>{S.value=!1},Y=ye=>{const{showAllLevels:ge,separator:$e}=r;return{node:ye,key:ye.uid,text:ye.calcText(ge,$e),hitState:!1,closable:!L.value&&!ye.isDisabled,isCollapseTag:!1}},ie=ye=>{var ge;const $e=ye.node;$e.doCheck(!1),(ge=g.value)==null||ge.calculateCheckedValue(),n("removeTag",$e.valueByOption)},me=()=>{if(!V.value)return;const ye=j.value,ge=[],$e=[];if(ye.forEach(se=>$e.push(Y(se))),A.value=$e,ye.length){ye.slice(0,r.maxCollapseTags).forEach(wt=>ge.push(Y(wt)));const se=ye.slice(r.maxCollapseTags),Qe=se.length;Qe&&(r.collapseTags?ge.push({key:-1,text:`+ ${Qe}`,closable:!1,isCollapseTag:!0}):se.forEach(wt=>ge.push(Y(wt))))}T.value=ge},De=()=>{var ye,ge;const{filterMethod:$e,showAllLevels:se,separator:Qe}=r,wt=(ge=(ye=g.value)==null?void 0:ye.getFlattedNodes(!r.props.checkStrictly))==null?void 0:ge.filter(Vt=>Vt.isDisabled?!1:(Vt.calcText(se,Qe),$e(Vt,G.value)));V.value&&(T.value.forEach(Vt=>{Vt.hitState=!1}),A.value.forEach(Vt=>{Vt.hitState=!1})),S.value=!0,M.value=wt,Pe()},Be=()=>{var ye;let ge;S.value&&m.value?ge=m.value.$el.querySelector(`.${l.e("suggestion-item")}`):ge=(ye=g.value)==null?void 0:ye.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),ge&&(ge.focus(),!S.value&&ge.click())},Oe=()=>{var ye,ge;const $e=(ye=v.value)==null?void 0:ye.input,se=p.value,Qe=(ge=m.value)==null?void 0:ge.$el;if(!(!vn||!$e)){if(Qe){const wt=Qe.querySelector(`.${l.e("suggestion-list")}`);wt.style.minWidth=`${$e.offsetWidth}px`}if(se){const{offsetHeight:wt}=se,Vt=T.value.length>0?`${Math.max(wt+6,o)}px`:`${o}px`;$e.style.height=Vt,Pe()}}},de=ye=>{var ge;return(ge=g.value)==null?void 0:ge.getCheckedNodes(ye)},we=ye=>{Pe(),n("expandChange",ye)},Se=ye=>{var ge;const $e=(ge=ye.target)==null?void 0:ge.value;if(ye.type==="compositionend")E.value=!1,pt(()=>lt($e));else{const se=$e[$e.length-1]||"";E.value=!ww(se)}},Ie=ye=>{if(!E.value)switch(ye.code){case _t.enter:_e();break;case _t.down:_e(!0),pt(Be),ye.preventDefault();break;case _t.esc:b.value===!0&&(ye.preventDefault(),ye.stopPropagation(),_e(!1));break;case _t.tab:_e(!1);break}},Ee=()=>{var ye;(ye=g.value)==null||ye.clearCheckedNodes(),!b.value&&r.filterable&&Ge(),_e(!1)},Ge=()=>{const{value:ye}=ne;y.value=ye,x.value=ye},Ue=ye=>{var ge,$e;const{checked:se}=ye;V.value?(ge=g.value)==null||ge.handleCheckChange(ye,!se,!1):(!se&&(($e=g.value)==null||$e.handleCheckChange(ye,!0,!1)),_e(!1))},oe=ye=>{const ge=ye.target,{code:$e}=ye;switch($e){case _t.up:case _t.down:{const se=$e===_t.up?-1:1;Db(J8(ge,se,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case _t.enter:ge.click();break}},ke=()=>{const ye=T.value,ge=ye[ye.length-1];s=x.value?0:s+1,!(!ge||!s||r.collapseTags&&ye.length>1)&&(ge.hitState?ie(ge):ge.hitState=!0)},nt=ye=>{const ge=ye.target,$e=l.e("search-input");ge.className===$e&&(C.value=!0),n("focus",ye)},st=ye=>{C.value=!1,n("blur",ye)},ut=ni(()=>{const{value:ye}=G;if(!ye)return;const ge=r.beforeFilter(ye);Og(ge)?ge.then(De).catch(()=>{}):ge!==!1?De():pe()},r.debounce),lt=(ye,ge)=>{!b.value&&_e(!0),!(ge!=null&&ge.isComposing)&&(ye?ut():pe())},Me=ye=>Number.parseFloat(lne(u.cssVarName("input-height"),ye).value)-2;return ze(S,Pe),ze([j,L],me),ze(T,()=>{pt(()=>Oe())}),ze(F,async()=>{await pt();const ye=v.value.input;o=Me(ye)||o,Oe()}),ze(ne,Ge,{immediate:!0}),zt(()=>{const ye=v.value.input,ge=Me(ye);o=ye.offsetHeight||ge,$a(ye,Oe)}),t({getCheckedNodes:de,cascaderPanelRef:g,togglePopperVisible:_e,contentRef:Q}),(ye,ge)=>(N(),Te(_(ri),{ref_key:"tooltipRef",ref:h,visible:b.value,teleported:ye.teleported,"popper-class":[_(l).e("dropdown"),ye.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:`${_(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:pe},{default:fe(()=>[Rt((N(),X("div",{class:H(_(le)),style:mt(_(I)),onClick:ge[5]||(ge[5]=()=>_e(_(P)?void 0:!0)),onKeydown:Ie,onMouseenter:ge[6]||(ge[6]=$e=>w.value=!0),onMouseleave:ge[7]||(ge[7]=$e=>w.value=!1)},[re(_(Ra),{ref_key:"input",ref:v,modelValue:y.value,"onUpdate:modelValue":ge[1]||(ge[1]=$e=>y.value=$e),placeholder:_(z),readonly:_(P),disabled:_(L),"validate-event":!1,size:_(F),class:H(_(ue)),tabindex:_(V)&&ye.filterable&&!_(L)?-1:void 0,onCompositionstart:Se,onCompositionupdate:Se,onCompositionend:Se,onFocus:nt,onBlur:st,onInput:lt},{suffix:fe(()=>[_(J)?(N(),Te(_(vt),{key:"clear",class:H([_(u).e("icon"),"icon-circle-close"]),onClick:xt(Ee,["stop"])},{default:fe(()=>[re(_(nc))]),_:1},8,["class","onClick"])):(N(),Te(_(vt),{key:"arrow-down",class:H(_(ce)),onClick:ge[0]||(ge[0]=xt($e=>_e(),["stop"]))},{default:fe(()=>[re(_(tc))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),_(V)?(N(),X("div",{key:0,ref_key:"tagWrapper",ref:p,class:H(_(l).e("tags"))},[(N(!0),X(gt,null,un(T.value,$e=>(N(),Te(_(om),{key:$e.key,type:ye.tagType,size:_($),hit:$e.hitState,closable:$e.closable,"disable-transitions":"",onClose:se=>ie($e)},{default:fe(()=>[$e.isCollapseTag===!1?(N(),X("span",vye,qe($e.text),1)):(N(),Te(_(ri),{key:1,disabled:b.value||!ye.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:fe(()=>[ee("span",null,qe($e.text),1)]),content:fe(()=>[ee("div",{class:H(_(l).e("collapse-tags"))},[(N(!0),X(gt,null,un(A.value.slice(ye.maxCollapseTags),(se,Qe)=>(N(),X("div",{key:Qe,class:H(_(l).e("collapse-tag"))},[(N(),Te(_(om),{key:se.key,class:"in-tooltip",type:ye.tagType,size:_($),hit:se.hitState,closable:se.closable,"disable-transitions":"",onClose:wt=>ie(se)},{default:fe(()=>[ee("span",null,qe(se.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),ye.filterable&&!_(L)?Rt((N(),X("input",{key:0,"onUpdate:modelValue":ge[2]||(ge[2]=$e=>x.value=$e),type:"text",class:H(_(l).e("search-input")),placeholder:_(ne)?"":_(O),onInput:ge[3]||(ge[3]=$e=>lt(x.value,$e)),onClick:ge[4]||(ge[4]=xt($e=>_e(!0),["stop"])),onKeydown:yn(ke,["delete"]),onCompositionstart:Se,onCompositionupdate:Se,onCompositionend:Se,onFocus:nt,onBlur:st},null,42,pye)),[[GE,x.value]]):be("v-if",!0)],2)):be("v-if",!0)],38)),[[_(Gu),()=>_e(!1),_(Q)]])]),content:fe(()=>[Rt(re(_(H9),{ref_key:"cascaderPanelRef",ref:g,modelValue:_(ve),"onUpdate:modelValue":ge[8]||(ge[8]=$e=>Rn(ve)?ve.value=$e:null),options:ye.options,props:r.props,border:!1,"render-label":ye.$slots.default,onExpandChange:we,onClose:ge[9]||(ge[9]=$e=>ye.$nextTick(()=>_e(!1)))},null,8,["modelValue","options","props","render-label"]),[[Sn,!S.value]]),ye.filterable?Rt((N(),Te(_($l),{key:0,ref_key:"suggestionPanel",ref:m,tag:"ul",class:H(_(l).e("suggestion-panel")),"view-class":_(l).e("suggestion-list"),onKeydown:oe},{default:fe(()=>[M.value.length?(N(!0),X(gt,{key:0},un(M.value,$e=>(N(),X("li",{key:$e.uid,class:H([_(l).e("suggestion-item"),_(l).is("checked",$e.checked)]),tabindex:-1,onClick:se=>Ue($e)},[ee("span",null,qe($e.text),1),$e.checked?(N(),Te(_(vt),{key:0},{default:fe(()=>[re(_(oy))]),_:1})):be("v-if",!0)],10,gye))),128)):Ve(ye.$slots,"empty",{key:1},()=>[ee("li",{class:H(_(l).e("empty-text"))},qe(_(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Sn,S.value]]):be("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var Vb=Xe(bye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);Vb.install=e=>{e.component(Vb.name,Vb)};const _ye=Vb,wye=_ye,Sye=Je({checked:{type:Boolean,default:!1}}),Cye={"update:checked":e=>Gr(e),[nr]:e=>Gr(e)},xye=te({name:"ElCheckTag"}),Tye=te({...xye,props:Sye,emits:Cye,setup(e,{emit:t}){const n=e,r=We("check-tag"),a=R(()=>[r.b(),r.is("checked",n.checked)]),i=()=>{const o=!n.checked;t(nr,o),t("update:checked",o)};return(o,s)=>(N(),X("span",{class:H(_(a)),onClick:i},[Ve(o.$slots,"default")],2))}});var kye=Xe(Tye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const Aye=Ut(kye),W9=Symbol("rowContextKey"),Eye=["start","center","end","space-around","space-between","space-evenly"],Mye=["top","middle","bottom"],Iye=Je({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Eye,default:"start"},align:{type:String,values:Mye}}),Dye=te({name:"ElRow"}),Lye=te({...Dye,props:Iye,setup(e){const t=e,n=We("row"),r=R(()=>t.gutter);tn(W9,{gutter:r});const a=R(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),i=R(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(o,s)=>(N(),Te(Xt(o.tag),{class:H(_(i)),style:mt(_(a))},{default:fe(()=>[Ve(o.$slots,"default")]),_:3},8,["class","style"]))}});var Pye=Xe(Lye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Rye=Ut(Pye),Oye=Je({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Ce([Number,Object]),default:()=>ur({})},sm:{type:Ce([Number,Object]),default:()=>ur({})},md:{type:Ce([Number,Object]),default:()=>ur({})},lg:{type:Ce([Number,Object]),default:()=>ur({})},xl:{type:Ce([Number,Object]),default:()=>ur({})}}),Nye=te({name:"ElCol"}),$ye=te({...Nye,props:Oye,setup(e){const t=e,{gutter:n}=ct(W9,{gutter:R(()=>0)}),r=We("col"),a=R(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),i=R(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];kt(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=>{kt(t[u])?o.push(r.b(`${u}-${t[u]}`)):Qt(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{o.push(c!=="span"?r.b(`${u}-${c}-${f}`):r.b(`${u}-${f}`))})}),n.value&&o.push(r.is("guttered")),[r.b(),o]});return(o,s)=>(N(),Te(Xt(o.tag),{class:H(_(i)),style:mt(_(a))},{default:fe(()=>[Ve(o.$slots,"default")]),_:3},8,["class","style"]))}});var Bye=Xe($ye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const Fye=Ut(Bye),dN=e=>typeof kt(e),Vye=Je({accordion:Boolean,modelValue:{type:Ce([Array,String,Number]),default:()=>ur([])}}),zye={[Kt]:dN,[nr]:dN},G9=Symbol("collapseContextKey"),Hye=(e,t)=>{const n=U(Uf(e.modelValue)),r=i=>{n.value=i;const o=e.accordion?n.value[0]:n.value;t(Kt,o),t(nr,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 ze(()=>e.modelValue,()=>n.value=Uf(e.modelValue),{deep:!0}),tn(G9,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},Wye=()=>{const e=We("collapse");return{rootKls:R(()=>e.b())}},Gye=te({name:"ElCollapse"}),Uye=te({...Gye,props:Vye,emits:zye,setup(e,{expose:t,emit:n}){const r=e,{activeNames:a,setActiveNames:i}=Hye(r,n),{rootKls:o}=Wye();return t({activeNames:a,setActiveNames:i}),(s,l)=>(N(),X("div",{class:H(_(o))},[Ve(s.$slots,"default")],2))}});var Kye=Xe(Uye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const jye=te({name:"ElCollapseTransition"}),Yye=te({...jye,setup(e){const t=We("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)=>(N(),Te(Mr,qt({name:_(t).b()},nQ(r)),{default:fe(()=>[Ve(a.$slots,"default")]),_:3},16,["name"]))}});var zb=Xe(Yye,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);zb.install=e=>{e.component(zb.name,zb)};const Lw=zb,qye=Lw,Xye=Je({title:{type:String,default:""},name:{type:Ce([String,Number]),default:()=>Cw()},disabled:Boolean}),Zye=e=>{const t=ct(G9),n=U(!1),r=U(!1),a=U(Cw()),i=R(()=>t==null?void 0:t.activeNames.value.includes(e.name));return{focusing:n,id:a,isActive:i,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:n.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(e.name),n.value=!1,r.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(e.name)}}},Jye=(e,{focusing:t,isActive:n,id:r})=>{const a=We("collapse"),i=R(()=>[a.b("item"),a.is("active",_(n)),a.is("disabled",e.disabled)]),o=R(()=>[a.be("item","header"),a.is("active",_(n)),{focusing:_(t)&&!e.disabled}]),s=R(()=>[a.be("item","arrow"),a.is("active",_(n))]),l=R(()=>a.be("item","wrap")),u=R(()=>a.be("item","content")),c=R(()=>a.b(`content-${_(r)}`)),f=R(()=>a.b(`head-${_(r)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},Qye=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],e0e=["id","aria-hidden","aria-labelledby"],t0e=te({name:"ElCollapseItem"}),n0e=te({...t0e,props:Xye,setup(e,{expose:t}){const n=e,{focusing:r,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=Zye(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:d,itemContentKls:h,scopedContentId:v,scopedHeadId:p}=Jye(n,{focusing:r,isActive:i,id:a});return t({isActive:i}),(g,m)=>(N(),X("div",{class:H(_(f))},[ee("button",{id:_(p),class:H(_(c)),"aria-expanded":_(i),"aria-controls":_(v),"aria-describedby":_(v),tabindex:g.disabled?-1:0,onClick:m[0]||(m[0]=(...b)=>_(s)&&_(s)(...b)),onKeydown:m[1]||(m[1]=yn(xt((...b)=>_(l)&&_(l)(...b),["stop","prevent"]),["space","enter"])),onFocus:m[2]||(m[2]=(...b)=>_(o)&&_(o)(...b)),onBlur:m[3]||(m[3]=b=>r.value=!1)},[Ve(g.$slots,"title",{},()=>[Cn(qe(g.title),1)]),re(_(vt),{class:H(_(u))},{default:fe(()=>[re(_(Za))]),_:1},8,["class"])],42,Qye),re(_(Lw),null,{default:fe(()=>[Rt(ee("div",{id:_(v),role:"region",class:H(_(d)),"aria-hidden":!_(i),"aria-labelledby":_(p)},[ee("div",{class:H(_(h))},[Ve(g.$slots,"default")],2)],10,e0e),[[Sn,_(i)]])]),_:3})],2))}});var U9=Xe(n0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const r0e=Ut(Kye,{CollapseItem:U9}),a0e=br(U9),i0e=Je({color:{type:Ce(Object),required:!0},vertical:{type:Boolean,default:!1}});let yC=!1;function sm(e,t){if(!vn)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,yC=!1,(o=t.end)==null||o.call(t,i)},a=function(i){var o;yC||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),yC=!0,(o=t.start)==null||o.call(t,i))};e.addEventListener("mousedown",a),e.addEventListener("touchstart",a)}const o0e=e=>{const t=Nt(),n=Wn(),r=Wn();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}=qE(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}},s0e=(e,{bar:t,thumb:n,handleDrag:r})=>{const a=Nt(),i=We("color-alpha-slider"),o=U(0),s=U(0),l=U();function u(){if(!n.value||e.vertical)return 0;const b=a.vnode.el,w=e.color.get("alpha");return b?Math.round(w*(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 w=e.color.get("alpha");return b?Math.round(w*(b.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:b,g:w,b:S}=e.color.toRgb();return`linear-gradient(to right, rgba(${b}, ${w}, ${S}, 0) 0%, rgba(${b}, ${w}, ${S}, 1) 100%)`}return""}function d(){o.value=u(),s.value=c(),l.value=f()}zt(()=>{if(!t.value||!n.value)return;const b={drag:w=>{r(w)},end:w=>{r(w)}};sm(t.value,b),sm(n.value,b),d()}),ze(()=>e.color.get("alpha"),()=>d()),ze(()=>e.color.value,()=>d());const h=R(()=>[i.b(),i.is("vertical",e.vertical)]),v=R(()=>i.e("bar")),p=R(()=>i.e("thumb")),g=R(()=>({background:l.value})),m=R(()=>({left:kr(o.value),top:kr(s.value)}));return{rootKls:h,barKls:v,barStyle:g,thumbKls:p,thumbStyle:m,update:d}},l0e="ElColorAlphaSlider",u0e=te({name:l0e}),c0e=te({...u0e,props:i0e,setup(e,{expose:t}){const n=e,{bar:r,thumb:a,handleDrag:i,handleClick:o}=o0e(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=s0e(n,{bar:r,thumb:a,handleDrag:i});return t({update:d,bar:r,thumb:a}),(h,v)=>(N(),X("div",{class:H(_(s))},[ee("div",{ref_key:"bar",ref:r,class:H(_(l)),style:mt(_(u)),onClick:v[0]||(v[0]=(...p)=>_(o)&&_(o)(...p))},null,6),ee("div",{ref_key:"thumb",ref:a,class:H(_(c)),style:mt(_(f))},null,6)],2))}});var f0e=Xe(c0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const d0e=te({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=We("color-hue-slider"),n=Nt(),r=U(),a=U(),i=U(0),o=U(0),s=R(()=>e.color.get("hue"));ze(()=>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}=qE(h);let b;if(e.vertical){let w=m-p.top;w=Math.min(w,p.height-r.value.offsetHeight/2),w=Math.max(r.value.offsetHeight/2,w),b=Math.round((w-r.value.offsetHeight/2)/(p.height-r.value.offsetHeight)*360)}else{let w=g-p.left;w=Math.min(w,p.width-r.value.offsetWidth/2),w=Math.max(r.value.offsetWidth/2,w),b=Math.round((w-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 zt(()=>{if(!a.value||!r.value)return;const h={drag:v=>{u(v)},end:v=>{u(v)}};sm(a.value,h),sm(r.value,h),d()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:t}}});function h0e(e,t,n,r,a,i){return N(),X("div",{class:H([e.ns.b(),e.ns.is("vertical",e.vertical)])},[ee("div",{ref:"bar",class:H(e.ns.e("bar")),onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},null,2),ee("div",{ref:"thumb",class:H(e.ns.e("thumb")),style:mt({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var v0e=Xe(d0e,[["render",h0e],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const p0e=Je({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:Sa,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:Ce(Array)},validateEvent:{type:Boolean,default:!0}}),g0e={[Kt]:e=>Mt(e)||Wr(e),[nr]:e=>Mt(e)||Wr(e),activeChange:e=>Mt(e)||Wr(e)},K9=Symbol("colorPickerContextKey"),hN=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},m0e=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},y0e=function(e){return typeof e=="string"&&e.includes("%")},xh=function(e,t){m0e(e)&&(e="100%");const n=y0e(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)},vN={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Hb=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${vN[t]||t}${vN[n]||n}`},pN=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Hb(e)}${Hb(t)}${Hb(n)}`},bC={A:10,B:11,C:12,D:13,E:14,F:15},xc=function(e){return e.length===2?(bC[e[0].toUpperCase()]||+e[0])*16+(bC[e[1].toUpperCase()]||+e[1]):bC[e[1].toUpperCase()]||+e[1]},b0e=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}},gN=(e,t,n)=>{e=xh(e,255),t=xh(t,255),n=xh(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}},ip=function(e,t,n){e=xh(e,360)*6,t=xh(t,100),n=xh(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 vg{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)fn(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)fn(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 ip(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}=b0e(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}=gN(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=xc(r[0]+r[0]),i=xc(r[1]+r[1]),o=xc(r[2]+r[2])):(r.length===6||r.length===8)&&(a=xc(r.slice(0,2)),i=xc(r.slice(2,4)),o=xc(r.slice(4,6))),r.length===8?this._alpha=xc(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=gN(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=hN(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=`${pN(ip(t,n,r))}${Hb(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=ip(t,n,r);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=hN(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}=ip(t,n,r);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=pN(ip(t,n,r))}}}const _0e=te({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=We("color-predefine"),{currentColor:n}=ct(K9),r=U(i(e.colors,e.color));ze(()=>n.value,o=>{const s=new vg;s.fromString(o),r.value.forEach(l=>{l.selected=s.compare(l)})}),Oi(()=>{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 vg;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:a,ns:t}}}),w0e=["onClick"];function S0e(e,t,n,r,a,i){return N(),X("div",{class:H(e.ns.b())},[ee("div",{class:H(e.ns.e("colors"))},[(N(!0),X(gt,null,un(e.rgbaColors,(o,s)=>(N(),X("div",{key:e.colors[s],class:H([e.ns.e("color-selector"),e.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>e.handleSelect(s)},[ee("div",{style:mt({backgroundColor:o.value})},null,4)],10,w0e))),128))],2)],2)}var C0e=Xe(_0e,[["render",S0e],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const x0e=te({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=We("color-svpanel"),n=Nt(),r=U(0),a=U(0),i=U("hsl(0, 100%, 50%)"),o=R(()=>{const u=e.color.get("hue"),c=e.color.get("value");return{hue:u,value:c}});function s(){const u=e.color.get("saturation"),c=e.color.get("value"),f=n.vnode.el,{clientWidth:d,clientHeight:h}=f;a.value=u*d/100,r.value=(100-c)*h/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:d,clientY:h}=qE(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 ze(()=>o.value,()=>{s()}),zt(()=>{sm(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}}}),T0e=ee("div",null,null,-1),k0e=[T0e];function A0e(e,t,n,r,a,i){return N(),X("div",{class:H(e.ns.b()),style:mt({backgroundColor:e.background})},[ee("div",{class:H(e.ns.e("white"))},null,2),ee("div",{class:H(e.ns.e("black"))},null,2),ee("div",{class:H(e.ns.e("cursor")),style:mt({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},k0e,6)],6)}var E0e=Xe(x0e,[["render",A0e],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const M0e=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],I0e=te({name:"ElColorPicker"}),D0e=te({...I0e,props:p0e,emits:g0e,setup(e,{expose:t,emit:n}){const r=e,{t:a}=bn(),i=We("color"),{formItem:o}=si(),s=jr(),l=xi(),{inputId:u,isLabeledByFormItem:c}=oc(r,{formItemContext:o}),f=U(),d=U(),h=U(),v=U();let p=!0;const g=xn(new vg({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),m=U(!1),b=U(!1),w=U(""),S=R(()=>!r.modelValue&&!b.value?"transparent":A(g,r.showAlpha)),C=R(()=>!r.modelValue&&!b.value?"":g.value),y=R(()=>c.value?void 0:r.label||a("el.colorpicker.defaultLabel")),x=R(()=>c.value?o==null?void 0:o.labelId:void 0),T=R(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value)]);function A(P,G){if(!(P instanceof vg))throw new TypeError("color should be instance of _color Class");const{r:j,g:J,b:ne}=P.toRgb();return G?`rgba(${j}, ${J}, ${ne}, ${P.get("alpha")/100})`:`rgb(${j}, ${J}, ${ne})`}function M(P){m.value=P}const E=ni(M,100);function I(){l.value||M(!0)}function L(){E(!1),O()}function O(){pt(()=>{r.modelValue?g.fromString(r.modelValue):(g.value="",pt(()=>{b.value=!1}))})}function z(){l.value||E(!m.value)}function F(){g.fromString(w.value)}function $(){const P=g.value;n(Kt,P),n("change",P),r.validateEvent&&(o==null||o.validate("change").catch(G=>void 0)),E(!1),pt(()=>{const G=new vg({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});g.compare(G)||O()})}function V(){E(!1),n(Kt,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(o==null||o.validate("change").catch(P=>void 0)),O()}return zt(()=>{r.modelValue&&(w.value=C.value)}),ze(()=>r.modelValue,P=>{P?P&&P!==g.value&&(p=!1,g.fromString(P)):b.value=!1}),ze(()=>C.value,P=>{w.value=P,p&&n("activeChange",P),p=!0}),ze(()=>g.value,()=>{!r.modelValue&&!b.value&&(b.value=!0)}),ze(()=>m.value,()=>{pt(()=>{var P,G,j;(P=f.value)==null||P.update(),(G=d.value)==null||G.update(),(j=h.value)==null||j.update()})}),tn(K9,{currentColor:C}),t({color:g,show:I,hide:L}),(P,G)=>(N(),Te(_(ri),{ref_key:"popper",ref:v,visible:m.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[_(i).be("picker","panel"),_(i).b("dropdown"),P.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${_(i).namespace.value}-zoom-in-top`,persistent:""},{content:fe(()=>[Rt((N(),X("div",null,[ee("div",{class:H(_(i).be("dropdown","main-wrapper"))},[re(v0e,{ref_key:"hue",ref:f,class:"hue-slider",color:_(g),vertical:""},null,8,["color"]),re(E0e,{ref_key:"sv",ref:d,color:_(g)},null,8,["color"])],2),P.showAlpha?(N(),Te(f0e,{key:0,ref_key:"alpha",ref:h,color:_(g)},null,8,["color"])):be("v-if",!0),P.predefine?(N(),Te(C0e,{key:1,ref:"predefine",color:_(g),colors:P.predefine},null,8,["color","colors"])):be("v-if",!0),ee("div",{class:H(_(i).be("dropdown","btns"))},[ee("span",{class:H(_(i).be("dropdown","value"))},[re(_(Ra),{modelValue:w.value,"onUpdate:modelValue":G[0]||(G[0]=j=>w.value=j),"validate-event":!1,size:"small",onKeyup:yn(F,["enter"]),onBlur:F},null,8,["modelValue","onKeyup"])],2),re(_(_a),{class:H(_(i).be("dropdown","link-btn")),text:"",size:"small",onClick:V},{default:fe(()=>[Cn(qe(_(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),re(_(_a),{plain:"",size:"small",class:H(_(i).be("dropdown","btn")),onClick:$},{default:fe(()=>[Cn(qe(_(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[_(Gu),L]])]),default:fe(()=>[ee("div",{id:_(u),class:H(_(T)),role:"button","aria-label":_(y),"aria-labelledby":_(x),"aria-description":_(a)("el.colorpicker.description",{color:P.modelValue||""}),tabindex:P.tabindex,onKeydown:yn(z,["enter"])},[_(l)?(N(),X("div",{key:0,class:H(_(i).be("picker","mask"))},null,2)):be("v-if",!0),ee("div",{class:H(_(i).be("picker","trigger")),onClick:z},[ee("span",{class:H([_(i).be("picker","color"),_(i).is("alpha",P.showAlpha)])},[ee("span",{class:H(_(i).be("picker","color-inner")),style:mt({backgroundColor:_(S)})},[Rt(re(_(vt),{class:H([_(i).be("picker","icon"),_(i).is("icon-arrow-down")])},{default:fe(()=>[re(_(tc))]),_:1},8,["class"]),[[Sn,P.modelValue||b.value]]),Rt(re(_(vt),{class:H([_(i).be("picker","empty"),_(i).is("icon-close")])},{default:fe(()=>[re(_(Jo))]),_:1},8,["class"]),[[Sn,!P.modelValue&&!b.value]])],6)],2)],2)],42,M0e)]),_:1},8,["visible","popper-class","transition"]))}});var L0e=Xe(D0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const P0e=Ut(L0e),R0e=te({name:"ElContainer"}),O0e=te({...R0e,props:{direction:{type:String}},setup(e){const t=e,n=ka(),r=We("container"),a=R(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(o=>{const s=o.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,o)=>(N(),X("section",{class:H([_(r).b(),_(r).is("vertical",_(a))])},[Ve(i.$slots,"default")],2))}});var N0e=Xe(O0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const $0e=te({name:"ElAside"}),B0e=te({...$0e,props:{width:{type:String,default:null}},setup(e){const t=e,n=We("aside"),r=R(()=>t.width?n.cssVarBlock({width:t.width}):{});return(a,i)=>(N(),X("aside",{class:H(_(n).b()),style:mt(_(r))},[Ve(a.$slots,"default")],6))}});var j9=Xe(B0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const F0e=te({name:"ElFooter"}),V0e=te({...F0e,props:{height:{type:String,default:null}},setup(e){const t=e,n=We("footer"),r=R(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(N(),X("footer",{class:H(_(n).b()),style:mt(_(r))},[Ve(a.$slots,"default")],6))}});var Y9=Xe(V0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const z0e=te({name:"ElHeader"}),H0e=te({...z0e,props:{height:{type:String,default:null}},setup(e){const t=e,n=We("header"),r=R(()=>t.height?n.cssVarBlock({height:t.height}):{});return(a,i)=>(N(),X("header",{class:H(_(n).b()),style:mt(_(r))},[Ve(a.$slots,"default")],6))}});var q9=Xe(H0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const W0e=te({name:"ElMain"}),G0e=te({...W0e,setup(e){const t=We("main");return(n,r)=>(N(),X("main",{class:H(_(t).b())},[Ve(n.$slots,"default")],2))}});var X9=Xe(G0e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const U0e=Ut(N0e,{Aside:j9,Footer:Y9,Header:q9,Main:X9}),K0e=br(j9),j0e=br(Y9),Y0e=br(q9),q0e=br(X9);var Z9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Rl,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)}}})})(Z9);var X0e=Z9.exports;const Z0e=as(X0e);var J9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Rl,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)}}})})(J9);var J0e=J9.exports;const Q0e=as(J0e);var Q9={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Rl,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}}})})(Q9);var ebe=Q9.exports;const tbe=as(ebe);var eW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Rl,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")}}})})(eW);var nbe=eW.exports;const rbe=as(nbe);var tW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Rl,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(tW);var abe=tW.exports;const ibe=as(abe);var nW={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Rl,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(nW);var obe=nW.exports;const sbe=as(obe),WM=Symbol(),lbe=Je({...VM,type:{type:Ce(String),default:"date"}}),ube=["date","dates","year","month","week","range"],GM=Je({disabledDate:{type:Ce(Function)},date:{type:Ce(Object),required:!0},minDate:{type:Ce(Object)},maxDate:{type:Ce(Object)},parsedValue:{type:Ce([Object,Array])},rangeState:{type:Ce(Object),default:()=>({endDate:null,selecting:!1})}}),rW=Je({type:{type:Ce(String),required:!0,values:que}}),aW=Je({unlinkPanels:Boolean,parsedValue:{type:Ce(Array)}}),iW=e=>({type:String,values:ube,default:e}),cbe=Je({...rW,parsedValue:{type:Ce([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),fbe=Je({...GM,cellClassName:{type:Ce(Function)},showWeekNumber:Boolean,selectionMode:iW("date")}),dbe=["changerange","pick","select"],XT=e=>{if(!ft(e))return!1;const[t,n]=e;return Ht.isDayjs(t)&&Ht.isDayjs(n)&&t.isSameOrBefore(n)},oW=(e,{lang:t,unit:n,unlinkPanels:r})=>{let a;if(ft(e)){let[i,o]=e.map(s=>Ht(s).locale(t));return r||(o=i.add(1,n)),[i,o]}else e?a=Ht(e):a=Ht();return a=a.locale(t),[a,a.add(1,n)]},hbe=(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)}},ZT=(e="")=>["normal","today"].includes(e),vbe=(e,t)=>{const{lang:n}=bn(),r=U(),a=U(),i=U(),o=U(),s=U([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(P=>P.toLowerCase()),f=R(()=>u>3?7-u:-u),d=R(()=>{const P=e.date.startOf("month");return P.subtract(P.day()||7,"day")}),h=R(()=>c.concat(c).slice(u,u+7)),v=R(()=>mz(_(S)).some(P=>P.isCurrent)),p=R(()=>{const P=e.date.startOf("month"),G=P.day()||7,j=P.daysInMonth(),J=P.subtract(1,"month").daysInMonth();return{startOfMonthDay:G,dateCountOfMonth:j,dateCountOfLastMonth:J}}),g=R(()=>e.selectionMode==="dates"?pl(e.parsedValue):[]),m=(P,{count:G,rowIndex:j,columnIndex:J})=>{const{startOfMonthDay:ne,dateCountOfMonth:ve,dateCountOfLastMonth:le}=_(p),ce=_(f);if(j>=0&&j<=1){const ue=ne+ce<0?7+ne+ce:ne+ce;if(J+j*7>=ue)return P.text=G,!0;P.text=le-(ue-J%7)+1+j*7,P.type="prev-month"}else return G<=ve?P.text=G:(P.text=G-ve,P.type="next-month"),!0;return!1},b=(P,{columnIndex:G,rowIndex:j},J)=>{const{disabledDate:ne,cellClassName:ve}=e,le=_(g),ce=m(P,{count:J,rowIndex:j,columnIndex:G}),ue=P.dayjs.toDate();return P.selected=le.find(Q=>Q.valueOf()===P.dayjs.valueOf()),P.isSelected=!!P.selected,P.isCurrent=y(P),P.disabled=ne==null?void 0:ne(ue),P.customClass=ve==null?void 0:ve(ue),ce},w=P=>{if(e.selectionMode==="week"){const[G,j]=e.showWeekNumber?[1,7]:[0,6],J=V(P[G+1]);P[G].inRange=J,P[G].start=J,P[j].inRange=J,P[j].end=J}},S=R(()=>{const{minDate:P,maxDate:G,rangeState:j,showWeekNumber:J}=e,ne=_(f),ve=_(s),le="day";let ce=1;if(J)for(let ue=0;ue<6;ue++)ve[ue][0]||(ve[ue][0]={type:"week",text:_(d).add(ue*7+1,le).week()});return hbe({row:6,column:7},ve,{startDate:P,columnIndexOffset:J?1:0,nextEndDate:j.endDate||G||j.selecting&&P||null,now:Ht().locale(_(n)).startOf(le),unit:le,relativeDateGetter:ue=>_(d).add(ue-ne,le),setCellMetadata:(...ue)=>{b(...ue,ce)&&(ce+=1)},setRowMetadata:w}),ve});ze(()=>e.date,async()=>{var P;(P=_(r))!=null&&P.contains(document.activeElement)&&(await pt(),await C())});const C=async()=>{var P;return(P=_(a))==null?void 0:P.focus()},y=P=>e.selectionMode==="date"&&ZT(P.type)&&x(P,e.parsedValue),x=(P,G)=>G?Ht(G).locale(_(n)).isSame(e.date.date(Number(P.text)),"day"):!1,T=(P,G)=>{const j=P*7+(G-(e.showWeekNumber?1:0))-_(f);return _(d).add(j,"day")},A=P=>{var G;if(!e.rangeState.selecting)return;let j=P.target;if(j.tagName==="SPAN"&&(j=(G=j.parentNode)==null?void 0:G.parentNode),j.tagName==="DIV"&&(j=j.parentNode),j.tagName!=="TD")return;const J=j.parentNode.rowIndex-1,ne=j.cellIndex;_(S)[J][ne].disabled||(J!==_(i)||ne!==_(o))&&(i.value=J,o.value=ne,t("changerange",{selecting:!0,endDate:T(J,ne)}))},M=P=>!_(v)&&(P==null?void 0:P.text)===1&&P.type==="normal"||P.isCurrent,E=P=>{l||_(v)||e.selectionMode!=="date"||$(P,!0)},I=P=>{P.target.closest("td")&&(l=!0)},L=P=>{P.target.closest("td")&&(l=!1)},O=P=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:P,maxDate:null}),t("select",!0)):(P>=e.minDate?t("pick",{minDate:e.minDate,maxDate:P}):t("pick",{minDate:P,maxDate:e.minDate}),t("select",!1))},z=P=>{const G=P.week(),j=`${P.year()}w${G}`;t("pick",{year:P.year(),week:G,value:j,date:P.startOf("week")})},F=(P,G)=>{const j=G?pl(e.parsedValue).filter(J=>(J==null?void 0:J.valueOf())!==P.valueOf()):pl(e.parsedValue).concat([P]);t("pick",j)},$=(P,G=!1)=>{const j=P.target.closest("td");if(!j)return;const J=j.parentNode.rowIndex-1,ne=j.cellIndex,ve=_(S)[J][ne];if(ve.disabled||ve.type==="week")return;const le=T(J,ne);switch(e.selectionMode){case"range":{O(le);break}case"date":{t("pick",le,G);break}case"week":{z(le);break}case"dates":{F(le,!!ve.selected);break}}},V=P=>{if(e.selectionMode!=="week")return!1;let G=e.date.startOf("day");if(P.type==="prev-month"&&(G=G.subtract(1,"month")),P.type==="next-month"&&(G=G.add(1,"month")),G=G.date(Number.parseInt(P.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const j=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(j,"day").isSame(G,"day")}return!1};return{WEEKS:h,rows:S,tbodyRef:r,currentCellRef:a,focus:C,isCurrent:y,isWeekActive:V,isSelectedCell:M,handlePickDate:$,handleMouseUp:L,handleMouseDown:I,handleMouseMove:A,handleFocus:E}},pbe=(e,{isCurrent:t,isWeekActive:n})=>{const r=We("date-table"),{t:a}=bn(),i=R(()=>[r.b(),{"is-week-mode":e.selectionMode==="week"}]),o=R(()=>a("el.datepicker.dateTablePrompt")),s=R(()=>a("el.datepicker.week"));return{tableKls:i,tableLabel:o,weekLabel:s,getCellClasses:c=>{const f=[];return ZT(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),t(c)&&f.push("current"),c.inRange&&(ZT(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}},gbe=Je({cell:{type:Ce(Object)}});var mbe=te({name:"ElDatePickerCell",props:gbe,setup(e){const t=We("date-table-cell"),{slots:n}=ct(WM);return()=>{const{cell:r}=e;if(n.default){const a=n.default(r).filter(i=>i.patchFlag!==-2&&i.type.toString()!=="Symbol(Comment)");if(a.length)return a}return re("div",{class:t.b()},[re("span",{class:t.e("text")},[r==null?void 0:r.text])])}}});const ybe=["aria-label"],bbe={key:0,scope:"col"},_be=["aria-label"],wbe=["aria-current","aria-selected","tabindex"],Sbe=te({__name:"basic-date-table",props:fbe,emits:dbe,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}=vbe(r,n),{tableLabel:m,tableKls:b,weekLabel:w,getCellClasses:S,getRowKls:C,t:y}=pbe(r,{isCurrent:u,isWeekActive:c});return t({focus:l}),(x,T)=>(N(),X("table",{"aria-label":_(m),class:H(_(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:T[1]||(T[1]=(...A)=>_(d)&&_(d)(...A)),onMousemove:T[2]||(T[2]=(...A)=>_(p)&&_(p)(...A)),onMousedown:T[3]||(T[3]=xt((...A)=>_(v)&&_(v)(...A),["prevent"])),onMouseup:T[4]||(T[4]=(...A)=>_(h)&&_(h)(...A))},[ee("tbody",{ref_key:"tbodyRef",ref:o},[ee("tr",null,[x.showWeekNumber?(N(),X("th",bbe,qe(_(w)),1)):be("v-if",!0),(N(!0),X(gt,null,un(_(a),(A,M)=>(N(),X("th",{key:M,"aria-label":_(y)("el.datepicker.weeksFull."+A),scope:"col"},qe(_(y)("el.datepicker.weeks."+A)),9,_be))),128))]),(N(!0),X(gt,null,un(_(i),(A,M)=>(N(),X("tr",{key:M,class:H(_(C)(A[1]))},[(N(!0),X(gt,null,un(A,(E,I)=>(N(),X("td",{key:`${M}.${I}`,ref_for:!0,ref:L=>_(f)(E)&&(s.value=L),class:H(_(S)(E)),"aria-current":E.isCurrent?"date":void 0,"aria-selected":E.isCurrent,tabindex:_(f)(E)?0:-1,onFocus:T[0]||(T[0]=(...L)=>_(g)&&_(g)(...L))},[re(_(mbe),{cell:E},null,8,["cell"])],42,wbe))),128))],2))),128))],512)],42,ybe))}});var JT=Xe(Sbe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const Cbe=Je({...GM,selectionMode:iW("month")}),xbe=["aria-label"],Tbe=["aria-selected","aria-label","tabindex","onKeydown"],kbe={class:"cell"},Abe=te({__name:"basic-month-table",props:Cbe,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const r=e,a=(S,C,y)=>{const x=Ht().locale(y).startOf("month").month(C).year(S),T=x.daysInMonth();return Iu(T).map(A=>x.add(A,"day").toDate())},i=We("month-table"),{t:o,lang:s}=bn(),l=U(),u=U(),c=U(r.date.locale("en").localeData().monthsShort().map(S=>S.toLowerCase())),f=U([[],[],[]]),d=U(),h=U(),v=R(()=>{var S,C;const y=f.value,x=Ht().locale(s.value).startOf("month");for(let T=0;T<3;T++){const A=y[T];for(let M=0;M<4;M++){const E=A[M]||(A[M]={row:T,column:M,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});E.type="normal";const I=T*4+M,L=r.date.startOf("year").month(I),O=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;E.inRange=!!(r.minDate&&L.isSameOrAfter(r.minDate,"month")&&O&&L.isSameOrBefore(O,"month"))||!!(r.minDate&&L.isSameOrBefore(r.minDate,"month")&&O&&L.isSameOrAfter(O,"month")),(S=r.minDate)!=null&&S.isSameOrAfter(O)?(E.start=!!(O&&L.isSame(O,"month")),E.end=r.minDate&&L.isSame(r.minDate,"month")):(E.start=!!(r.minDate&&L.isSame(r.minDate,"month")),E.end=!!(O&&L.isSame(O,"month"))),x.isSame(L)&&(E.type="today"),E.text=I,E.disabled=((C=r.disabledDate)==null?void 0:C.call(r,L.toDate()))||!1}}return y}),p=()=>{var S;(S=u.value)==null||S.focus()},g=S=>{const C={},y=r.date.year(),x=new Date,T=S.text;return C.disabled=r.disabledDate?a(y,T,s.value).every(r.disabledDate):!1,C.current=pl(r.parsedValue).findIndex(A=>Ht.isDayjs(A)&&A.year()===y&&A.month()===T)>=0,C.today=x.getFullYear()===y&&x.getMonth()===T,S.inRange&&(C["in-range"]=!0,S.start&&(C["start-date"]=!0),S.end&&(C["end-date"]=!0)),C},m=S=>{const C=r.date.year(),y=S.text;return pl(r.date).findIndex(x=>x.year()===C&&x.month()===y)>=0},b=S=>{var C;if(!r.rangeState.selecting)return;let y=S.target;if(y.tagName==="A"&&(y=(C=y.parentNode)==null?void 0:C.parentNode),y.tagName==="DIV"&&(y=y.parentNode),y.tagName!=="TD")return;const x=y.parentNode.rowIndex,T=y.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=S=>{var C;const y=(C=S.target)==null?void 0:C.closest("td");if((y==null?void 0:y.tagName)!=="TD"||jo(y,"disabled"))return;const x=y.cellIndex,A=y.parentNode.rowIndex*4+x,M=r.date.startOf("year").month(A);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&M>=r.minDate?n("pick",{minDate:r.minDate,maxDate:M}):n("pick",{minDate:M,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:M,maxDate:null}),n("select",!0)):n("pick",A)};return ze(()=>r.date,async()=>{var S,C;(S=l.value)!=null&&S.contains(document.activeElement)&&(await pt(),(C=u.value)==null||C.focus())}),t({focus:p}),(S,C)=>(N(),X("table",{role:"grid","aria-label":_(o)("el.datepicker.monthTablePrompt"),class:H(_(i).b()),onClick:w,onMousemove:b},[ee("tbody",{ref_key:"tbodyRef",ref:l},[(N(!0),X(gt,null,un(_(v),(y,x)=>(N(),X("tr",{key:x},[(N(!0),X(gt,null,un(y,(T,A)=>(N(),X("td",{key:A,ref_for:!0,ref:M=>m(T)&&(u.value=M),class:H(g(T)),"aria-selected":`${m(T)}`,"aria-label":_(o)(`el.datepicker.month${+T.text+1}`),tabindex:m(T)?0:-1,onKeydown:[yn(xt(w,["prevent","stop"]),["space"]),yn(xt(w,["prevent","stop"]),["enter"])]},[ee("div",null,[ee("span",kbe,qe(_(o)("el.datepicker.months."+c.value[T.text])),1)])],42,Tbe))),128))]))),128))],512)],42,xbe))}});var QT=Xe(Abe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:Ebe,disabledDate:Mbe,parsedValue:Ibe}=GM,Dbe=Je({date:Ebe,disabledDate:Mbe,parsedValue:Ibe}),Lbe=["aria-label"],Pbe=["aria-selected","tabindex","onKeydown"],Rbe={class:"cell"},Obe={key:1},Nbe=te({__name:"basic-year-table",props:Dbe,emits:["pick"],setup(e,{expose:t,emit:n}){const r=e,a=(p,g)=>{const m=Ht(String(p)).locale(g).startOf("year"),w=m.endOf("year").dayOfYear();return Iu(w).map(S=>m.add(S,"day").toDate())},i=We("year-table"),{t:o,lang:s}=bn(),l=U(),u=U(),c=R(()=>Math.floor(r.date.year()/10)*10),f=()=>{var p;(p=u.value)==null||p.focus()},d=p=>{const g={},m=Ht().locale(s.value);return g.disabled=r.disabledDate?a(p,s.value).every(r.disabledDate):!1,g.current=pl(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||pl(r.date).findIndex(g=>g.year()===p)>=0,v=p=>{const m=p.target.closest("td");if(m&&m.textContent){if(jo(m,"disabled"))return;const b=m.textContent||m.innerText;n("pick",Number(b))}};return ze(()=>r.date,async()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&(await pt(),(g=u.value)==null||g.focus())}),t({focus:f}),(p,g)=>(N(),X("table",{role:"grid","aria-label":_(o)("el.datepicker.yearTablePrompt"),class:H(_(i).b()),onClick:v},[ee("tbody",{ref_key:"tbodyRef",ref:l},[(N(),X(gt,null,un(3,(m,b)=>ee("tr",{key:b},[(N(),X(gt,null,un(4,(w,S)=>(N(),X(gt,{key:b+"_"+S},[b*4+S<10?(N(),X("td",{key:0,ref_for:!0,ref:C=>h(_(c)+b*4+S)&&(u.value=C),class:H(["available",d(_(c)+b*4+S)]),"aria-selected":`${h(_(c)+b*4+S)}`,tabindex:h(_(c)+b*4+S)?0:-1,onKeydown:[yn(xt(v,["prevent","stop"]),["space"]),yn(xt(v,["prevent","stop"]),["enter"])]},[ee("span",Rbe,qe(_(c)+b*4+S),1)],42,Pbe)):(N(),X("td",Obe))],64))),64))])),64))],512)],10,Lbe))}});var $be=Xe(Nbe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const Bbe=["onClick"],Fbe=["aria-label"],Vbe=["aria-label"],zbe=["aria-label"],Hbe=["aria-label"],Wbe=te({__name:"panel-date-pick",props:cbe,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,r=(Me,ye,ge)=>!0,a=We("picker-panel"),i=We("date-picker"),o=rd(),s=ka(),{t:l,lang:u}=bn(),c=ct("EP_PICKER_BASE"),f=ct(Dw),{shortcuts:d,disabledDate:h,cellClassName:v,defaultTime:p}=c.props,g=vr(c.props,"defaultValue"),m=U(),b=U(Ht().locale(u.value)),w=U(!1);let S=!1;const C=R(()=>Ht(p).locale(u.value)),y=R(()=>b.value.month()),x=R(()=>b.value.year()),T=U([]),A=U(null),M=U(null),E=Me=>T.value.length>0?r(Me,T.value,n.format||"HH:mm:ss"):!0,I=Me=>p&&!me.value&&!w.value&&!S?C.value.year(Me.year()).month(Me.month()).date(Me.date()):ce.value?Me.millisecond(0):Me.startOf("day"),L=(Me,...ye)=>{if(!Me)t("pick",Me,...ye);else if(ft(Me)){const ge=Me.map(I);t("pick",ge,...ye)}else t("pick",I(Me),...ye);A.value=null,M.value=null,w.value=!1,S=!1},O=(Me,ye)=>{if(G.value==="date"){Me=Me;let ge=n.parsedValue?n.parsedValue.year(Me.year()).month(Me.month()).date(Me.date()):Me;E(ge)||(ge=T.value[0][0].year(Me.year()).month(Me.month()).date(Me.date())),b.value=ge,L(ge,ce.value||ye)}else G.value==="week"?L(Me.date):G.value==="dates"&&L(Me,!0)},z=Me=>{const ye=Me?"add":"subtract";b.value=b.value[ye](1,"month"),lt("month")},F=Me=>{const ye=b.value,ge=Me?"add":"subtract";b.value=$.value==="year"?ye[ge](10,"year"):ye[ge](1,"year"),lt("year")},$=U("date"),V=R(()=>{const Me=l("el.datepicker.year");if($.value==="year"){const ye=Math.floor(x.value/10)*10;return Me?`${ye} ${Me} - ${ye+9} ${Me}`:`${ye} - ${ye+9}`}return`${x.value} ${Me}`}),P=Me=>{const ye=At(Me.value)?Me.value():Me.value;if(ye){S=!0,L(Ht(ye).locale(u.value));return}Me.onClick&&Me.onClick({attrs:o,slots:s,emit:t})},G=R(()=>{const{type:Me}=n;return["week","month","year","dates"].includes(Me)?Me:"date"}),j=R(()=>G.value==="date"?$.value:G.value),J=R(()=>!!d.length),ne=async Me=>{b.value=b.value.startOf("month").month(Me),G.value==="month"?L(b.value,!1):($.value="date",["month","year","date","week"].includes(G.value)&&(L(b.value,!0),await pt(),nt())),lt("month")},ve=async Me=>{G.value==="year"?(b.value=b.value.startOf("year").year(Me),L(b.value,!1)):(b.value=b.value.year(Me),$.value="month",["month","year","date","week"].includes(G.value)&&(L(b.value,!0),await pt(),nt())),lt("year")},le=async Me=>{$.value=Me,await pt(),nt()},ce=R(()=>n.type==="datetime"||n.type==="datetimerange"),ue=R(()=>ce.value||G.value==="dates"),Q=R(()=>h?n.parsedValue?ft(n.parsedValue)?h(n.parsedValue[0].toDate()):h(n.parsedValue.toDate()):!0:!1),_e=()=>{if(G.value==="dates")L(n.parsedValue);else{let Me=n.parsedValue;if(!Me){const ye=Ht(p).locale(u.value),ge=ke();Me=ye.year(ge.year()).month(ge.month()).date(ge.date())}b.value=Me,L(Me)}},Pe=R(()=>h?h(Ht().locale(u.value).toDate()):!1),pe=()=>{const ye=Ht().locale(u.value).toDate();w.value=!0,(!h||!h(ye))&&E(ye)&&(b.value=Ht().locale(u.value),L(b.value))},Y=R(()=>u9(n.format)),ie=R(()=>l9(n.format)),me=R(()=>{if(M.value)return M.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||b.value).format(Y.value)}),De=R(()=>{if(A.value)return A.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||b.value).format(ie.value)}),Be=U(!1),Oe=()=>{Be.value=!0},de=()=>{Be.value=!1},we=Me=>({hour:Me.hour(),minute:Me.minute(),second:Me.second(),year:Me.year(),month:Me.month(),date:Me.date()}),Se=(Me,ye,ge)=>{const{hour:$e,minute:se,second:Qe}=we(Me),wt=n.parsedValue?n.parsedValue.hour($e).minute(se).second(Qe):Me;b.value=wt,L(b.value,!0),ge||(Be.value=ye)},Ie=Me=>{const ye=Ht(Me,Y.value).locale(u.value);if(ye.isValid()&&E(ye)){const{year:ge,month:$e,date:se}=we(b.value);b.value=ye.year(ge).month($e).date(se),M.value=null,Be.value=!1,L(b.value,!0)}},Ee=Me=>{const ye=Ht(Me,ie.value).locale(u.value);if(ye.isValid()){if(h&&h(ye.toDate()))return;const{hour:ge,minute:$e,second:se}=we(b.value);b.value=ye.hour(ge).minute($e).second(se),A.value=null,L(b.value,!0)}},Ge=Me=>Ht.isDayjs(Me)&&Me.isValid()&&(h?!h(Me.toDate()):!0),Ue=Me=>G.value==="dates"?Me.map(ye=>ye.format(n.format)):Me.format(n.format),oe=Me=>Ht(Me,n.format).locale(u.value),ke=()=>{const Me=Ht(g.value).locale(u.value);if(!g.value){const ye=C.value;return Ht().hour(ye.hour()).minute(ye.minute()).second(ye.second()).locale(u.value)}return Me},nt=async()=>{var Me;["week","month","year","date"].includes(G.value)&&((Me=m.value)==null||Me.focus(),G.value==="week"&&ut(_t.down))},st=Me=>{const{code:ye}=Me;[_t.up,_t.down,_t.left,_t.right,_t.home,_t.end,_t.pageUp,_t.pageDown].includes(ye)&&(ut(ye),Me.stopPropagation(),Me.preventDefault()),[_t.enter,_t.space,_t.numpadEnter].includes(ye)&&A.value===null&&M.value===null&&(Me.preventDefault(),L(b.value,!1))},ut=Me=>{var ye;const{up:ge,down:$e,left:se,right:Qe,home:wt,end:Vt,pageUp:Zn,pageDown:rr}=_t,$r={year:{[ge]:-4,[$e]:4,[se]:-1,[Qe]:1,offset:(Re,rt)=>Re.setFullYear(Re.getFullYear()+rt)},month:{[ge]:-4,[$e]:4,[se]:-1,[Qe]:1,offset:(Re,rt)=>Re.setMonth(Re.getMonth()+rt)},week:{[ge]:-1,[$e]:1,[se]:-1,[Qe]:1,offset:(Re,rt)=>Re.setDate(Re.getDate()+rt*7)},date:{[ge]:-7,[$e]:7,[se]:-1,[Qe]:1,[wt]:Re=>-Re.getDay(),[Vt]:Re=>-Re.getDay()+6,[Zn]:Re=>-new Date(Re.getFullYear(),Re.getMonth(),0).getDate(),[rr]:Re=>new Date(Re.getFullYear(),Re.getMonth()+1,0).getDate(),offset:(Re,rt)=>Re.setDate(Re.getDate()+rt)}},Fn=b.value.toDate();for(;Math.abs(b.value.diff(Fn,"year",!0))<1;){const Re=$r[j.value];if(!Re)return;if(Re.offset(Fn,At(Re[Me])?Re[Me](Fn):(ye=Re[Me])!=null?ye:0),h&&h(Fn))break;const rt=Ht(Fn).locale(u.value);b.value=rt,t("pick",rt,!0);break}},lt=Me=>{t("panel-change",b.value.toDate(),Me,$.value)};return ze(()=>G.value,Me=>{if(["month","year"].includes(Me)){$.value=Me;return}$.value="date"},{immediate:!0}),ze(()=>$.value,()=>{f==null||f.updatePopper()}),ze(()=>g.value,Me=>{Me&&(b.value=ke())},{immediate:!0}),ze(()=>n.parsedValue,Me=>{if(Me){if(G.value==="dates"||Array.isArray(Me))return;b.value=Me}else b.value=ke()},{immediate:!0}),t("set-picker-option",["isValidValue",Ge]),t("set-picker-option",["formatToString",Ue]),t("set-picker-option",["parseUserInput",oe]),t("set-picker-option",["handleFocusPicker",nt]),(Me,ye)=>(N(),X("div",{class:H([_(a).b(),_(i).b(),{"has-sidebar":Me.$slots.sidebar||_(J),"has-time":_(ce)}])},[ee("div",{class:H(_(a).e("body-wrapper"))},[Ve(Me.$slots,"sidebar",{class:H(_(a).e("sidebar"))}),_(J)?(N(),X("div",{key:0,class:H(_(a).e("sidebar"))},[(N(!0),X(gt,null,un(_(d),(ge,$e)=>(N(),X("button",{key:$e,type:"button",class:H(_(a).e("shortcut")),onClick:se=>P(ge)},qe(ge.text),11,Bbe))),128))],2)):be("v-if",!0),ee("div",{class:H(_(a).e("body"))},[_(ce)?(N(),X("div",{key:0,class:H(_(i).e("time-header"))},[ee("span",{class:H(_(i).e("editor-wrap"))},[re(_(Ra),{placeholder:_(l)("el.datepicker.selectDate"),"model-value":_(De),size:"small","validate-event":!1,onInput:ye[0]||(ye[0]=ge=>A.value=ge),onChange:Ee},null,8,["placeholder","model-value"])],2),Rt((N(),X("span",{class:H(_(i).e("editor-wrap"))},[re(_(Ra),{placeholder:_(l)("el.datepicker.selectTime"),"model-value":_(me),size:"small","validate-event":!1,onFocus:Oe,onInput:ye[1]||(ye[1]=ge=>M.value=ge),onChange:Ie},null,8,["placeholder","model-value"]),re(_($1),{visible:Be.value,format:_(Y),"parsed-value":b.value,onPick:Se},null,8,["visible","format","parsed-value"])],2)),[[_(Gu),de]])],2)):be("v-if",!0),Rt(ee("div",{class:H([_(i).e("header"),($.value==="year"||$.value==="month")&&_(i).e("header--bordered")])},[ee("span",{class:H(_(i).e("prev-btn"))},[ee("button",{type:"button","aria-label":_(l)("el.datepicker.prevYear"),class:H(["d-arrow-left",_(a).e("icon-btn")]),onClick:ye[2]||(ye[2]=ge=>F(!1))},[re(_(vt),null,{default:fe(()=>[re(_(Gh))]),_:1})],10,Fbe),Rt(ee("button",{type:"button","aria-label":_(l)("el.datepicker.prevMonth"),class:H([_(a).e("icon-btn"),"arrow-left"]),onClick:ye[3]||(ye[3]=ge=>z(!1))},[re(_(vt),null,{default:fe(()=>[re(_(Vu))]),_:1})],10,Vbe),[[Sn,$.value==="date"]])],2),ee("span",{role:"button",class:H(_(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:ye[4]||(ye[4]=yn(ge=>le("year"),["enter"])),onClick:ye[5]||(ye[5]=ge=>le("year"))},qe(_(V)),35),Rt(ee("span",{role:"button","aria-live":"polite",tabindex:"0",class:H([_(i).e("header-label"),{active:$.value==="month"}]),onKeydown:ye[6]||(ye[6]=yn(ge=>le("month"),["enter"])),onClick:ye[7]||(ye[7]=ge=>le("month"))},qe(_(l)(`el.datepicker.month${_(y)+1}`)),35),[[Sn,$.value==="date"]]),ee("span",{class:H(_(i).e("next-btn"))},[Rt(ee("button",{type:"button","aria-label":_(l)("el.datepicker.nextMonth"),class:H([_(a).e("icon-btn"),"arrow-right"]),onClick:ye[8]||(ye[8]=ge=>z(!0))},[re(_(vt),null,{default:fe(()=>[re(_(Za))]),_:1})],10,zbe),[[Sn,$.value==="date"]]),ee("button",{type:"button","aria-label":_(l)("el.datepicker.nextYear"),class:H([_(a).e("icon-btn"),"d-arrow-right"]),onClick:ye[9]||(ye[9]=ge=>F(!0))},[re(_(vt),null,{default:fe(()=>[re(_(Uh))]),_:1})],10,Hbe)],2)],2),[[Sn,$.value!=="time"]]),ee("div",{class:H(_(a).e("content")),onKeydown:st},[$.value==="date"?(N(),Te(JT,{key:0,ref_key:"currentViewRef",ref:m,"selection-mode":_(G),date:b.value,"parsed-value":Me.parsedValue,"disabled-date":_(h),"cell-class-name":_(v),onPick:O},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):be("v-if",!0),$.value==="year"?(N(),Te($be,{key:1,ref_key:"currentViewRef",ref:m,date:b.value,"disabled-date":_(h),"parsed-value":Me.parsedValue,onPick:ve},null,8,["date","disabled-date","parsed-value"])):be("v-if",!0),$.value==="month"?(N(),Te(QT,{key:2,ref_key:"currentViewRef",ref:m,date:b.value,"parsed-value":Me.parsedValue,"disabled-date":_(h),onPick:ne},null,8,["date","parsed-value","disabled-date"])):be("v-if",!0)],34)],2)],2),Rt(ee("div",{class:H(_(a).e("footer"))},[Rt(re(_(_a),{text:"",size:"small",class:H(_(a).e("link-btn")),disabled:_(Pe),onClick:pe},{default:fe(()=>[Cn(qe(_(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Sn,_(G)!=="dates"]]),re(_(_a),{plain:"",size:"small",class:H(_(a).e("link-btn")),disabled:_(Q),onClick:_e},{default:fe(()=>[Cn(qe(_(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[Sn,_(ue)&&$.value==="date"]])],2))}});var Gbe=Xe(Wbe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const Ube=Je({...rW,...aW}),Kbe=e=>{const{emit:t}=Nt(),n=rd(),r=ka();return i=>{const o=At(i.value)?i.value():i.value;if(o){t("pick",[Ht(o[0]).locale(e.value),Ht(o[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:t})}},sW=(e,{defaultValue:t,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:o}=Nt(),{pickerNs:s}=ct(WM),l=We("date-range-picker"),{t:u,lang:c}=bn(),f=Kbe(c),d=U(),h=U(),v=U({endDate:null,selecting:!1}),p=w=>{v.value=w},g=(w=!1)=>{const S=_(d),C=_(h);XT([S,C])&&o("pick",[S,C],w)},m=w=>{v.value.selecting=w,w||(v.value.endDate=null)},b=()=>{const[w,S]=oW(_(t),{lang:_(c),unit:a,unlinkPanels:e.unlinkPanels});d.value=void 0,h.value=void 0,n.value=w,r.value=S};return ze(t,w=>{w&&b()},{immediate:!0}),ze(()=>e.parsedValue,w=>{if(ft(w)&&w.length===2){const[S,C]=w;d.value=S,n.value=S,h.value=C,i(_(d),_(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}},jbe=["onClick"],Ybe=["aria-label"],qbe=["aria-label"],Xbe=["disabled","aria-label"],Zbe=["disabled","aria-label"],Jbe=["disabled","aria-label"],Qbe=["disabled","aria-label"],e1e=["aria-label"],t1e=["aria-label"],g0="month",n1e=te({__name:"panel-date-range",props:Ube,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,r=ct("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:o,defaultTime:s,clearable:l}=r.props,u=vr(r.props,"shortcuts"),c=vr(r.props,"defaultValue"),{lang:f}=bn(),d=U(Ht().locale(f.value)),h=U(Ht().locale(f.value).add(1,g0)),{minDate:v,maxDate:p,rangeState:g,ppNs:m,drpNs:b,handleChangeRange:w,handleRangeConfirm:S,handleShortcutClick:C,onSelect:y,t:x}=sW(n,{defaultValue:c,leftDate:d,rightDate:h,unit:g0,onParsedValueChanged:ye}),T=U({min:null,max:null}),A=U({min:null,max:null}),M=R(()=>`${d.value.year()} ${x("el.datepicker.year")} ${x(`el.datepicker.month${d.value.month()+1}`)}`),E=R(()=>`${h.value.year()} ${x("el.datepicker.year")} ${x(`el.datepicker.month${h.value.month()+1}`)}`),I=R(()=>d.value.year()),L=R(()=>d.value.month()),O=R(()=>h.value.year()),z=R(()=>h.value.month()),F=R(()=>!!u.value.length),$=R(()=>T.value.min!==null?T.value.min:v.value?v.value.format(J.value):""),V=R(()=>T.value.max!==null?T.value.max:p.value||v.value?(p.value||v.value).format(J.value):""),P=R(()=>A.value.min!==null?A.value.min:v.value?v.value.format(j.value):""),G=R(()=>A.value.max!==null?A.value.max:p.value||v.value?(p.value||v.value).format(j.value):""),j=R(()=>u9(o)),J=R(()=>l9(o)),ne=ge=>XT(ge)&&(a?!a(ge[0].toDate())&&!a(ge[1].toDate()):!0),ve=()=>{d.value=d.value.subtract(1,"year"),n.unlinkPanels||(h.value=d.value.add(1,"month")),Y("year")},le=()=>{d.value=d.value.subtract(1,"month"),n.unlinkPanels||(h.value=d.value.add(1,"month")),Y("month")},ce=()=>{n.unlinkPanels?h.value=h.value.add(1,"year"):(d.value=d.value.add(1,"year"),h.value=d.value.add(1,"month")),Y("year")},ue=()=>{n.unlinkPanels?h.value=h.value.add(1,"month"):(d.value=d.value.add(1,"month"),h.value=d.value.add(1,"month")),Y("month")},Q=()=>{d.value=d.value.add(1,"year"),Y("year")},_e=()=>{d.value=d.value.add(1,"month"),Y("month")},Pe=()=>{h.value=h.value.subtract(1,"year"),Y("year")},pe=()=>{h.value=h.value.subtract(1,"month"),Y("month")},Y=ge=>{t("panel-change",[d.value.toDate(),h.value.toDate()],ge)},ie=R(()=>{const ge=(L.value+1)%12,$e=L.value+1>=12?1:0;return n.unlinkPanels&&new Date(I.value+$e,ge)<new Date(O.value,z.value)}),me=R(()=>n.unlinkPanels&&O.value*12+z.value-(I.value*12+L.value+1)>=12),De=R(()=>!(v.value&&p.value&&!g.value.selecting&&XT([v.value,p.value]))),Be=R(()=>n.type==="datetime"||n.type==="datetimerange"),Oe=(ge,$e)=>{if(ge)return s?Ht(s[$e]||s).locale(f.value).year(ge.year()).month(ge.month()).date(ge.date()):ge},de=(ge,$e=!0)=>{const se=ge.minDate,Qe=ge.maxDate,wt=Oe(se,0),Vt=Oe(Qe,1);p.value===Vt&&v.value===wt||(t("calendar-change",[se.toDate(),Qe&&Qe.toDate()]),p.value=Vt,v.value=wt,!(!$e||Be.value)&&S())},we=U(!1),Se=U(!1),Ie=()=>{we.value=!1},Ee=()=>{Se.value=!1},Ge=(ge,$e)=>{T.value[$e]=ge;const se=Ht(ge,J.value).locale(f.value);if(se.isValid()){if(a&&a(se.toDate()))return;$e==="min"?(d.value=se,v.value=(v.value||d.value).year(se.year()).month(se.month()).date(se.date()),!n.unlinkPanels&&(!p.value||p.value.isBefore(v.value))&&(h.value=se.add(1,"month"),p.value=v.value.add(1,"month"))):(h.value=se,p.value=(p.value||h.value).year(se.year()).month(se.month()).date(se.date()),!n.unlinkPanels&&(!v.value||v.value.isAfter(p.value))&&(d.value=se.subtract(1,"month"),v.value=p.value.subtract(1,"month")))}},Ue=(ge,$e)=>{T.value[$e]=null},oe=(ge,$e)=>{A.value[$e]=ge;const se=Ht(ge,j.value).locale(f.value);se.isValid()&&($e==="min"?(we.value=!0,v.value=(v.value||d.value).hour(se.hour()).minute(se.minute()).second(se.second()),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value)):(Se.value=!0,p.value=(p.value||h.value).hour(se.hour()).minute(se.minute()).second(se.second()),h.value=p.value,p.value&&p.value.isBefore(v.value)&&(v.value=p.value)))},ke=(ge,$e)=>{A.value[$e]=null,$e==="min"?(d.value=v.value,we.value=!1):(h.value=p.value,Se.value=!1)},nt=(ge,$e,se)=>{A.value.min||(ge&&(d.value=ge,v.value=(v.value||d.value).hour(ge.hour()).minute(ge.minute()).second(ge.second())),se||(we.value=$e),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value,h.value=ge))},st=(ge,$e,se)=>{A.value.max||(ge&&(h.value=ge,p.value=(p.value||h.value).hour(ge.hour()).minute(ge.minute()).second(ge.second())),se||(Se.value=$e),p.value&&p.value.isBefore(v.value)&&(v.value=p.value))},ut=()=>{d.value=oW(_(c),{lang:_(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],h.value=d.value.add(1,"month"),t("pick",null)},lt=ge=>ft(ge)?ge.map($e=>$e.format(o)):ge.format(o),Me=ge=>ft(ge)?ge.map($e=>Ht($e,o).locale(f.value)):Ht(ge,o).locale(f.value);function ye(ge,$e){if(n.unlinkPanels&&$e){const se=(ge==null?void 0:ge.year())||0,Qe=(ge==null?void 0:ge.month())||0,wt=$e.year(),Vt=$e.month();h.value=se===wt&&Qe===Vt?$e.add(1,g0):$e}else h.value=d.value.add(1,g0),$e&&(h.value=h.value.hour($e.hour()).minute($e.minute()).second($e.second()))}return t("set-picker-option",["isValidValue",ne]),t("set-picker-option",["parseUserInput",Me]),t("set-picker-option",["formatToString",lt]),t("set-picker-option",["handleClear",ut]),(ge,$e)=>(N(),X("div",{class:H([_(m).b(),_(b).b(),{"has-sidebar":ge.$slots.sidebar||_(F),"has-time":_(Be)}])},[ee("div",{class:H(_(m).e("body-wrapper"))},[Ve(ge.$slots,"sidebar",{class:H(_(m).e("sidebar"))}),_(F)?(N(),X("div",{key:0,class:H(_(m).e("sidebar"))},[(N(!0),X(gt,null,un(_(u),(se,Qe)=>(N(),X("button",{key:Qe,type:"button",class:H(_(m).e("shortcut")),onClick:wt=>_(C)(se)},qe(se.text),11,jbe))),128))],2)):be("v-if",!0),ee("div",{class:H(_(m).e("body"))},[_(Be)?(N(),X("div",{key:0,class:H(_(b).e("time-header"))},[ee("span",{class:H(_(b).e("editors-wrap"))},[ee("span",{class:H(_(b).e("time-picker-wrap"))},[re(_(Ra),{size:"small",disabled:_(g).selecting,placeholder:_(x)("el.datepicker.startDate"),class:H(_(b).e("editor")),"model-value":_($),"validate-event":!1,onInput:$e[0]||($e[0]=se=>Ge(se,"min")),onChange:$e[1]||($e[1]=se=>Ue(se,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),Rt((N(),X("span",{class:H(_(b).e("time-picker-wrap"))},[re(_(Ra),{size:"small",class:H(_(b).e("editor")),disabled:_(g).selecting,placeholder:_(x)("el.datepicker.startTime"),"model-value":_(P),"validate-event":!1,onFocus:$e[2]||($e[2]=se=>we.value=!0),onInput:$e[3]||($e[3]=se=>oe(se,"min")),onChange:$e[4]||($e[4]=se=>ke(se,"min"))},null,8,["class","disabled","placeholder","model-value"]),re(_($1),{visible:we.value,format:_(j),"datetime-role":"start","parsed-value":d.value,onPick:nt},null,8,["visible","format","parsed-value"])],2)),[[_(Gu),Ie]])],2),ee("span",null,[re(_(vt),null,{default:fe(()=>[re(_(Za))]),_:1})]),ee("span",{class:H([_(b).e("editors-wrap"),"is-right"])},[ee("span",{class:H(_(b).e("time-picker-wrap"))},[re(_(Ra),{size:"small",class:H(_(b).e("editor")),disabled:_(g).selecting,placeholder:_(x)("el.datepicker.endDate"),"model-value":_(V),readonly:!_(v),"validate-event":!1,onInput:$e[5]||($e[5]=se=>Ge(se,"max")),onChange:$e[6]||($e[6]=se=>Ue(se,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),Rt((N(),X("span",{class:H(_(b).e("time-picker-wrap"))},[re(_(Ra),{size:"small",class:H(_(b).e("editor")),disabled:_(g).selecting,placeholder:_(x)("el.datepicker.endTime"),"model-value":_(G),readonly:!_(v),"validate-event":!1,onFocus:$e[7]||($e[7]=se=>_(v)&&(Se.value=!0)),onInput:$e[8]||($e[8]=se=>oe(se,"max")),onChange:$e[9]||($e[9]=se=>ke(se,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),re(_($1),{"datetime-role":"end",visible:Se.value,format:_(j),"parsed-value":h.value,onPick:st},null,8,["visible","format","parsed-value"])],2)),[[_(Gu),Ee]])],2)],2)):be("v-if",!0),ee("div",{class:H([[_(m).e("content"),_(b).e("content")],"is-left"])},[ee("div",{class:H(_(b).e("header"))},[ee("button",{type:"button",class:H([_(m).e("icon-btn"),"d-arrow-left"]),"aria-label":_(x)("el.datepicker.prevYear"),onClick:ve},[re(_(vt),null,{default:fe(()=>[re(_(Gh))]),_:1})],10,Ybe),ee("button",{type:"button",class:H([_(m).e("icon-btn"),"arrow-left"]),"aria-label":_(x)("el.datepicker.prevMonth"),onClick:le},[re(_(vt),null,{default:fe(()=>[re(_(Vu))]),_:1})],10,qbe),ge.unlinkPanels?(N(),X("button",{key:0,type:"button",disabled:!_(me),class:H([[_(m).e("icon-btn"),{"is-disabled":!_(me)}],"d-arrow-right"]),"aria-label":_(x)("el.datepicker.nextYear"),onClick:Q},[re(_(vt),null,{default:fe(()=>[re(_(Uh))]),_:1})],10,Xbe)):be("v-if",!0),ge.unlinkPanels?(N(),X("button",{key:1,type:"button",disabled:!_(ie),class:H([[_(m).e("icon-btn"),{"is-disabled":!_(ie)}],"arrow-right"]),"aria-label":_(x)("el.datepicker.nextMonth"),onClick:_e},[re(_(vt),null,{default:fe(()=>[re(_(Za))]),_:1})],10,Zbe)):be("v-if",!0),ee("div",null,qe(_(M)),1)],2),re(JT,{"selection-mode":"range",date:d.value,"min-date":_(v),"max-date":_(p),"range-state":_(g),"disabled-date":_(a),"cell-class-name":_(i),onChangerange:_(w),onPick:de,onSelect:_(y)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),ee("div",{class:H([[_(m).e("content"),_(b).e("content")],"is-right"])},[ee("div",{class:H(_(b).e("header"))},[ge.unlinkPanels?(N(),X("button",{key:0,type:"button",disabled:!_(me),class:H([[_(m).e("icon-btn"),{"is-disabled":!_(me)}],"d-arrow-left"]),"aria-label":_(x)("el.datepicker.prevYear"),onClick:Pe},[re(_(vt),null,{default:fe(()=>[re(_(Gh))]),_:1})],10,Jbe)):be("v-if",!0),ge.unlinkPanels?(N(),X("button",{key:1,type:"button",disabled:!_(ie),class:H([[_(m).e("icon-btn"),{"is-disabled":!_(ie)}],"arrow-left"]),"aria-label":_(x)("el.datepicker.prevMonth"),onClick:pe},[re(_(vt),null,{default:fe(()=>[re(_(Vu))]),_:1})],10,Qbe)):be("v-if",!0),ee("button",{type:"button","aria-label":_(x)("el.datepicker.nextYear"),class:H([_(m).e("icon-btn"),"d-arrow-right"]),onClick:ce},[re(_(vt),null,{default:fe(()=>[re(_(Uh))]),_:1})],10,e1e),ee("button",{type:"button",class:H([_(m).e("icon-btn"),"arrow-right"]),"aria-label":_(x)("el.datepicker.nextMonth"),onClick:ue},[re(_(vt),null,{default:fe(()=>[re(_(Za))]),_:1})],10,t1e),ee("div",null,qe(_(E)),1)],2),re(JT,{"selection-mode":"range",date:h.value,"min-date":_(v),"max-date":_(p),"range-state":_(g),"disabled-date":_(a),"cell-class-name":_(i),onChangerange:_(w),onPick:de,onSelect:_(y)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),_(Be)?(N(),X("div",{key:0,class:H(_(m).e("footer"))},[_(l)?(N(),Te(_(_a),{key:0,text:"",size:"small",class:H(_(m).e("link-btn")),onClick:ut},{default:fe(()=>[Cn(qe(_(x)("el.datepicker.clear")),1)]),_:1},8,["class"])):be("v-if",!0),re(_(_a),{plain:"",size:"small",class:H(_(m).e("link-btn")),disabled:_(De),onClick:$e[10]||($e[10]=se=>_(S)(!1))},{default:fe(()=>[Cn(qe(_(x)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):be("v-if",!0)],2))}});var r1e=Xe(n1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const a1e=Je({...aW}),i1e=["pick","set-picker-option","calendar-change"],o1e=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:r}=bn(),a=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},o=()=>{t.value=t.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=R(()=>`${t.value.year()} ${r("el.datepicker.year")}`),u=R(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=R(()=>t.value.year()),f=R(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:i,leftNextYear:o,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:c,rightYear:f}},s1e=["onClick"],l1e=["disabled"],u1e=["disabled"],m0="year",c1e=te({name:"DatePickerMonthRange"}),f1e=te({...c1e,props:a1e,emits:i1e,setup(e,{emit:t}){const n=e,{lang:r}=bn(),a=ct("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:s}=a.props,l=vr(a.props,"defaultValue"),u=U(Ht().locale(r.value)),c=U(Ht().locale(r.value).add(1,m0)),{minDate:f,maxDate:d,rangeState:h,ppNs:v,drpNs:p,handleChangeRange:g,handleRangeConfirm:m,handleShortcutClick:b,onSelect:w}=sW(n,{defaultValue:l,leftDate:u,rightDate:c,unit:m0,onParsedValueChanged:F}),S=R(()=>!!i.length),{leftPrevYear:C,rightNextYear:y,leftNextYear:x,rightPrevYear:T,leftLabel:A,rightLabel:M,leftYear:E,rightYear:I}=o1e({unlinkPanels:vr(n,"unlinkPanels"),leftDate:u,rightDate:c}),L=R(()=>n.unlinkPanels&&I.value>E.value+1),O=($,V=!0)=>{const P=$.minDate,G=$.maxDate;d.value===G&&f.value===P||(t("calendar-change",[P.toDate(),G&&G.toDate()]),d.value=G,f.value=P,V&&m())},z=$=>$.map(V=>V.format(s));function F($,V){if(n.unlinkPanels&&V){const P=($==null?void 0:$.year())||0,G=V.year();c.value=P===G?V.add(1,m0):V}else c.value=u.value.add(1,m0)}return t("set-picker-option",["formatToString",z]),($,V)=>(N(),X("div",{class:H([_(v).b(),_(p).b(),{"has-sidebar":!!$.$slots.sidebar||_(S)}])},[ee("div",{class:H(_(v).e("body-wrapper"))},[Ve($.$slots,"sidebar",{class:H(_(v).e("sidebar"))}),_(S)?(N(),X("div",{key:0,class:H(_(v).e("sidebar"))},[(N(!0),X(gt,null,un(_(i),(P,G)=>(N(),X("button",{key:G,type:"button",class:H(_(v).e("shortcut")),onClick:j=>_(b)(P)},qe(P.text),11,s1e))),128))],2)):be("v-if",!0),ee("div",{class:H(_(v).e("body"))},[ee("div",{class:H([[_(v).e("content"),_(p).e("content")],"is-left"])},[ee("div",{class:H(_(p).e("header"))},[ee("button",{type:"button",class:H([_(v).e("icon-btn"),"d-arrow-left"]),onClick:V[0]||(V[0]=(...P)=>_(C)&&_(C)(...P))},[re(_(vt),null,{default:fe(()=>[re(_(Gh))]),_:1})],2),$.unlinkPanels?(N(),X("button",{key:0,type:"button",disabled:!_(L),class:H([[_(v).e("icon-btn"),{[_(v).is("disabled")]:!_(L)}],"d-arrow-right"]),onClick:V[1]||(V[1]=(...P)=>_(x)&&_(x)(...P))},[re(_(vt),null,{default:fe(()=>[re(_(Uh))]),_:1})],10,l1e)):be("v-if",!0),ee("div",null,qe(_(A)),1)],2),re(QT,{"selection-mode":"range",date:u.value,"min-date":_(f),"max-date":_(d),"range-state":_(h),"disabled-date":_(o),onChangerange:_(g),onPick:O,onSelect:_(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),ee("div",{class:H([[_(v).e("content"),_(p).e("content")],"is-right"])},[ee("div",{class:H(_(p).e("header"))},[$.unlinkPanels?(N(),X("button",{key:0,type:"button",disabled:!_(L),class:H([[_(v).e("icon-btn"),{"is-disabled":!_(L)}],"d-arrow-left"]),onClick:V[2]||(V[2]=(...P)=>_(T)&&_(T)(...P))},[re(_(vt),null,{default:fe(()=>[re(_(Gh))]),_:1})],10,u1e)):be("v-if",!0),ee("button",{type:"button",class:H([_(v).e("icon-btn"),"d-arrow-right"]),onClick:V[3]||(V[3]=(...P)=>_(y)&&_(y)(...P))},[re(_(vt),null,{default:fe(()=>[re(_(Uh))]),_:1})],2),ee("div",null,qe(_(M)),1)],2),re(QT,{"selection-mode":"range",date:c.value,"min-date":_(f),"max-date":_(d),"range-state":_(h),"disabled-date":_(o),onChangerange:_(g),onPick:O,onSelect:_(w)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var d1e=Xe(f1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const h1e=function(e){switch(e){case"daterange":case"datetimerange":return r1e;case"monthrange":return d1e;default:return Gbe}};Ht.extend(T9);Ht.extend(Z0e);Ht.extend(FM);Ht.extend(Q0e);Ht.extend(tbe);Ht.extend(rbe);Ht.extend(ibe);Ht.extend(sbe);var v1e=te({name:"ElDatePicker",install:null,props:lbe,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:r}){const a=We("picker-panel");tn("ElPopperOptions",xn(vr(e,"popperOptions"))),tn(WM,{slots:r,pickerNs:a});const i=U();t({focus:(l=!0)=>{var u;(u=i.value)==null||u.focus(l)},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const s=l=>{n("update:modelValue",l)};return()=>{var l;const u=(l=e.format)!=null?l:jpe[e.type]||eh,c=h1e(e.type);return re(d9,qt(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":s}),{default:f=>re(c,f,null),"range-separator":r["range-separator"]})}}});const Wb=v1e;Wb.install=e=>{e.component(Wb.name,Wb)};const p1e=Wb,UM=Symbol("elDescriptions");var op=te({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:ct(UM,{})}},render(){var e,t,n,r,a,i;const o=ece(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:kr(o.width),minWidth:kr(o.minWidth)},b=We("descriptions");switch(this.type){case"label":return bt(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 bt(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 bt("td",{style:m,class:[b.e("cell"),h],colSpan:d},[Wr(c)?void 0:bt("span",{class:[b.e("label"),g]},c),bt("span",{class:[b.e("content"),p]},f)])}}});const g1e=Je({row:{type:Array,default:()=>[]}}),m1e={key:1},y1e=te({name:"ElDescriptionsRow"}),b1e=te({...y1e,props:g1e,setup(e){const t=ct(UM,{});return(n,r)=>_(t).direction==="vertical"?(N(),X(gt,{key:0},[ee("tr",null,[(N(!0),X(gt,null,un(n.row,(a,i)=>(N(),Te(_(op),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),ee("tr",null,[(N(!0),X(gt,null,un(n.row,(a,i)=>(N(),Te(_(op),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(N(),X("tr",m1e,[(N(!0),X(gt,null,un(n.row,(a,i)=>(N(),X(gt,{key:`tr3-${i}`},[_(t).border?(N(),X(gt,{key:0},[re(_(op),{cell:a,tag:"td",type:"label"},null,8,["cell"]),re(_(op),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(N(),Te(_(op),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var _1e=Xe(b1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const w1e=Je({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:Sa,title:{type:String,default:""},extra:{type:String,default:""}}),S1e=te({name:"ElDescriptions"}),C1e=te({...S1e,props:w1e,setup(e){const t=e,n=We("descriptions"),r=jr(),a=ka();tn(UM,t);const i=R(()=>[n.b(),n.m(r.value)]),o=(l,u,c,f=!1)=>(l.props||(l.props={}),u>c&&(l.props.span=c),f&&(l.props.span=u),l),s=()=>{var l;const u=wh((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)=>(N(),X("div",{class:H(_(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(N(),X("div",{key:0,class:H(_(n).e("header"))},[ee("div",{class:H(_(n).e("title"))},[Ve(l.$slots,"title",{},()=>[Cn(qe(l.title),1)])],2),ee("div",{class:H(_(n).e("extra"))},[Ve(l.$slots,"extra",{},()=>[Cn(qe(l.extra),1)])],2)],2)):be("v-if",!0),ee("div",{class:H(_(n).e("body"))},[ee("table",{class:H([_(n).e("table"),_(n).is("bordered",l.border)])},[ee("tbody",null,[(N(!0),X(gt,null,un(s(),(c,f)=>(N(),Te(_1e,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var x1e=Xe(C1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),lW=te({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const T1e=Ut(x1e,{DescriptionsItem:lW}),k1e=br(lW),A1e=Je({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Ce([String,Array,Object])},zIndex:{type:Ce([String,Number])}}),E1e={click:e=>e instanceof MouseEvent},M1e="overlay";var I1e=te({name:"ElOverlay",props:A1e,emits:E1e,setup(e,{slots:t,emit:n}){const r=We(M1e),a=l=>{n("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=AM(e.customMaskEvent?void 0:a);return()=>e.mask?re("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:o,onMouseup:s},[Ve(t,"default")],Zi.STYLE|Zi.CLASS|Zi.PROPS,["onClick","onMouseup","onMousedown"]):bt("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ve(t,"default")])}});const KM=I1e,uW=Symbol("dialogInjectionKey"),cW=Je({center:Boolean,alignCenter:Boolean,closeIcon:{type:Kn},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),D1e={close:()=>!0},L1e=["aria-level"],P1e=["aria-label"],R1e=["id"],O1e=te({name:"ElDialogContent"}),N1e=te({...O1e,props:cW,emits:D1e,setup(e){const t=e,{t:n}=bn(),{Close:r}=Xz,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:l}=ct(uW),{focusTrapRef:u}=ct(NM),c=R(()=>[s.b(),s.is("fullscreen",t.fullscreen),s.is("draggable",t.draggable),s.is("align-center",t.alignCenter),{[s.m("center")]:t.center},t.customClass]),f=bw(u,a),d=R(()=>t.draggable);return Jz(a,i,d),(h,v)=>(N(),X("div",{ref:_(f),class:H(_(c)),style:mt(_(l)),tabindex:"-1"},[ee("header",{ref_key:"headerRef",ref:i,class:H(_(s).e("header"))},[Ve(h.$slots,"header",{},()=>[ee("span",{role:"heading","aria-level":h.ariaLevel,class:H(_(s).e("title"))},qe(h.title),11,L1e)]),h.showClose?(N(),X("button",{key:0,"aria-label":_(n)("el.dialog.close"),class:H(_(s).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=p=>h.$emit("close"))},[re(_(vt),{class:H(_(s).e("close"))},{default:fe(()=>[(N(),Te(Xt(h.closeIcon||_(r))))]),_:1},8,["class"])],10,P1e)):be("v-if",!0)],2),ee("div",{id:_(o),class:H(_(s).e("body"))},[Ve(h.$slots,"default")],10,R1e),h.$slots.footer?(N(),X("footer",{key:0,class:H(_(s).e("footer"))},[Ve(h.$slots,"footer")],2)):be("v-if",!0)],6))}});var $1e=Xe(N1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const fW=Je({...cW,appendToBody:Boolean,beforeClose:{type:Ce(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"}}),dW={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Kt]:e=>Gr(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},hW=(e,t)=>{const r=Nt().emit,{nextZIndex:a}=_v();let i="";const o=go(),s=go(),l=U(!1),u=U(!1),c=U(!1),f=U(e.zIndex||a());let d,h;const v=Aw("namespace",cg),p=R(()=>{const O={},z=`--${v.value}-dialog`;return e.fullscreen||(e.top&&(O[`${z}-margin-top`]=e.top),e.width&&(O[`${z}-width`]=kr(e.width))),O}),g=R(()=>e.alignCenter?{display:"flex"}:{});function m(){r("opened")}function b(){r("closed"),r(Kt,!1),e.destroyOnClose&&(c.value=!1)}function w(){r("close")}function S(){h==null||h(),d==null||d(),e.openDelay&&e.openDelay>0?{stop:d}=Wf(()=>T(),e.openDelay):T()}function C(){d==null||d(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=Wf(()=>A(),e.closeDelay):A()}function y(){function O(z){z||(u.value=!0,l.value=!1)}e.beforeClose?e.beforeClose(O):C()}function x(){e.closeOnClickModal&&y()}function T(){vn&&(l.value=!0)}function A(){l.value=!1}function M(){r("openAutoFocus")}function E(){r("closeAutoFocus")}function I(O){var z;((z=O.detail)==null?void 0:z.focusReason)==="pointer"&&O.preventDefault()}e.lockScroll&&tH(l);function L(){e.closeOnPressEscape&&y()}return ze(()=>e.modelValue,O=>{O?(u.value=!1,S(),c.value=!0,f.value=e.zIndex?f.value++:a(),pt(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):l.value&&C()}),ze(()=>e.fullscreen,O=>{t.value&&(O?(i=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=i)}),zt(()=>{e.modelValue&&(l.value=!0,c.value=!0,S())}),{afterEnter:m,afterLeave:b,beforeLeave:w,handleClose:y,onModalClick:x,close:C,doClose:A,onOpenAutoFocus:M,onCloseAutoFocus:E,onCloseRequested:L,onFocusoutPrevented:I,titleId:o,bodyId:s,closed:u,style:p,overlayDialogStyle:g,rendered:c,visible:l,zIndex:f}},B1e=["aria-label","aria-labelledby","aria-describedby"],F1e=te({name:"ElDialog",inheritAttrs:!1}),V1e=te({...F1e,props:fW,emits:dW,setup(e,{expose:t}){const n=e,r=ka();$s({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},R(()=>!!r.title)),$s({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},R(()=>!!n.customClass));const a=We("dialog"),i=U(),o=U(),s=U(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:v,afterEnter:p,afterLeave:g,beforeLeave:m,handleClose:b,onModalClick:w,onOpenAutoFocus:S,onCloseAutoFocus:C,onCloseRequested:y,onFocusoutPrevented:x}=hW(n,i);tn(uW,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:f});const T=AM(w),A=R(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:s}),(M,E)=>(N(),Te(Qm,{to:"body",disabled:!M.appendToBody},[re(Mr,{name:"dialog-fade",onAfterEnter:_(p),onAfterLeave:_(g),onBeforeLeave:_(m),persisted:""},{default:fe(()=>[Rt(re(_(KM),{"custom-mask-event":"",mask:M.modal,"overlay-class":M.modalClass,"z-index":_(v)},{default:fe(()=>[ee("div",{role:"dialog","aria-modal":"true","aria-label":M.title||void 0,"aria-labelledby":M.title?void 0:_(u),"aria-describedby":_(c),class:H(`${_(a).namespace.value}-overlay-dialog`),style:mt(_(d)),onClick:E[0]||(E[0]=(...I)=>_(T).onClick&&_(T).onClick(...I)),onMousedown:E[1]||(E[1]=(...I)=>_(T).onMousedown&&_(T).onMousedown(...I)),onMouseup:E[2]||(E[2]=(...I)=>_(T).onMouseup&&_(T).onMouseup(...I))},[re(_(Iw),{loop:"",trapped:_(l),"focus-start-el":"container",onFocusAfterTrapped:_(S),onFocusAfterReleased:_(C),onFocusoutPrevented:_(x),onReleaseRequested:_(y)},{default:fe(()=>[_(h)?(N(),Te($1e,qt({key:0,ref_key:"dialogContentRef",ref:s},M.$attrs,{"custom-class":M.customClass,center:M.center,"align-center":M.alignCenter,"close-icon":M.closeIcon,draggable:_(A),fullscreen:M.fullscreen,"show-close":M.showClose,title:M.title,"aria-level":M.headerAriaLevel,onClose:_(b)}),bl({header:fe(()=>[M.$slots.title?Ve(M.$slots,"title",{key:1}):Ve(M.$slots,"header",{key:0,close:_(b),titleId:_(u),titleClass:_(a).e("title")})]),default:fe(()=>[Ve(M.$slots,"default")]),_:2},[M.$slots.footer?{name:"footer",fn:fe(()=>[Ve(M.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):be("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,B1e)]),_:3},8,["mask","overlay-class","z-index"]),[[Sn,_(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var z1e=Xe(V1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const H1e=Ut(z1e),W1e=Je({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Ce(String),default:"solid"}}),G1e=te({name:"ElDivider"}),U1e=te({...G1e,props:W1e,setup(e){const t=e,n=We("divider"),r=R(()=>n.cssVar({"border-style":t.borderStyle}));return(a,i)=>(N(),X("div",{class:H([_(n).b(),_(n).m(a.direction)]),style:mt(_(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(N(),X("div",{key:0,class:H([_(n).e("text"),_(n).is(a.contentPosition)])},[Ve(a.$slots,"default")],2)):be("v-if",!0)],6))}});var K1e=Xe(U1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const vW=Ut(K1e),j1e=Je({...fW,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"}}),Y1e=dW,q1e=te({name:"ElDrawer",components:{ElOverlay:KM,ElFocusTrap:Iw,ElIcon:vt,Close:Jo},inheritAttrs:!1,props:j1e,emits:Y1e,setup(e,{slots:t}){$s({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},R(()=>!!t.title)),$s({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},R(()=>!!e.customClass));const n=U(),r=U(),a=We("drawer"),{t:i}=bn(),o=R(()=>e.direction==="rtl"||e.direction==="ltr"),s=R(()=>kr(e.size));return{...hW(e,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:s,ns:a,t:i}}}),X1e=["aria-label","aria-labelledby","aria-describedby"],Z1e=["id","aria-level"],J1e=["aria-label"],Q1e=["id"];function e_e(e,t,n,r,a,i){const o=Dt("close"),s=Dt("el-icon"),l=Dt("el-focus-trap"),u=Dt("el-overlay");return N(),Te(Qm,{to:"body",disabled:!e.appendToBody},[re(Mr,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:fe(()=>[Rt(re(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:fe(()=>[re(l,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:fe(()=>[ee("div",qt({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]=xt(()=>{},["stop"]))}),[ee("span",{ref:"focusStartRef",class:H(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(N(),X("header",{key:0,class:H(e.ns.e("header"))},[e.$slots.title?Ve(e.$slots,"title",{key:1},()=>[be(" DEPRECATED SLOT ")]):Ve(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?be("v-if",!0):(N(),X("span",{key:0,id:e.titleId,role:"heading","aria-level":e.headerAriaLevel,class:H(e.ns.e("title"))},qe(e.title),11,Z1e))]),e.showClose?(N(),X("button",{key:2,"aria-label":e.t("el.drawer.close"),class:H(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...c)=>e.handleClose&&e.handleClose(...c))},[re(s,{class:H(e.ns.e("close"))},{default:fe(()=>[re(o)]),_:1},8,["class"])],10,J1e)):be("v-if",!0)],2)):be("v-if",!0),e.rendered?(N(),X("div",{key:1,id:e.bodyId,class:H(e.ns.e("body"))},[Ve(e.$slots,"default")],10,Q1e)):be("v-if",!0),e.$slots.footer?(N(),X("div",{key:2,class:H(e.ns.e("footer"))},[Ve(e.$slots,"footer")],2)):be("v-if",!0)],16,X1e)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Sn,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var t_e=Xe(q1e,[["render",e_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const n_e=Ut(t_e),r_e=te({inheritAttrs:!1});function a_e(e,t,n,r,a,i){return Ve(e.$slots,"default")}var i_e=Xe(r_e,[["render",a_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const o_e=te({name:"ElCollectionItem",inheritAttrs:!1});function s_e(e,t,n,r,a,i){return Ve(e.$slots,"default")}var l_e=Xe(o_e,[["render",s_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const pW="data-el-collection-item",gW=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),a=Symbol(n),i={...i_e,name:t,setup(){const s=U(null),l=new Map;tn(r,{itemMap:l,getItems:()=>{const c=_(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${pW}]`));return[...l.values()].sort((h,v)=>f.indexOf(h.ref)-f.indexOf(v.ref))},collectionRef:s})}},o={...l_e,name:n,setup(s,{attrs:l}){const u=U(null),c=ct(r,void 0);tn(a,{collectionItemRef:u}),zt(()=>{const f=_(u);f&&c.itemMap.set(f,{ref:f,...l})}),sr(()=>{const f=_(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},u_e=Je({style:{type:Ce([String,Array,Object])},currentTabId:{type:Ce(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:Ce(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:c_e,ElCollectionItem:f_e,COLLECTION_INJECTION_KEY:jM,COLLECTION_ITEM_INJECTION_KEY:d_e}=gW("RovingFocusGroup"),YM=Symbol("elRovingFocusGroup"),mW=Symbol("elRovingFocusGroupItem"),h_e={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},v_e=(e,t)=>{if(t!=="rtl")return e;switch(e){case _t.right:return _t.left;case _t.left:return _t.right;default:return e}},p_e=(e,t,n)=>{const r=v_e(e.key,n);if(!(t==="vertical"&&[_t.left,_t.right].includes(r))&&!(t==="horizontal"&&[_t.up,_t.down].includes(r)))return h_e[r]},g_e=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),qM=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},mN="currentTabIdChange",yN="rovingFocusGroup.entryFocus",m_e={bubbles:!1,cancelable:!0},y_e=te({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:u_e,emits:[mN,"entryFocus"],setup(e,{emit:t}){var n;const r=U((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),a=U(!1),i=U(!1),o=U(null),{getItems:s}=ct(jM,void 0),l=R(()=>[{outline:"none"},e.style]),u=p=>{t(mN,p)},c=()=>{a.value=!0},f=yr(p=>{var g;(g=e.onMousedown)==null||g.call(e,p)},()=>{i.value=!0}),d=yr(p=>{var g;(g=e.onFocus)==null||g.call(e,p)},p=>{const g=!_(i),{target:m,currentTarget:b}=p;if(m===b&&g&&!_(a)){const w=new Event(yN,m_e);if(b==null||b.dispatchEvent(w),!w.defaultPrevented){const S=s().filter(A=>A.focusable),C=S.find(A=>A.active),y=S.find(A=>A.id===_(r)),T=[C,y,...S].filter(Boolean).map(A=>A.ref);qM(T)}}i.value=!1}),h=yr(p=>{var g;(g=e.onBlur)==null||g.call(e,p)},()=>{a.value=!1}),v=(...p)=>{t("entryFocus",...p)};tn(YM,{currentTabbedId:gv(r),loop:vr(e,"loop"),tabIndex:R(()=>_(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:vr(e,"orientation"),dir:vr(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:d,onMousedown:f}),ze(()=>e.currentTabId,p=>{r.value=p??null}),ir(o,yN,v)}});function b_e(e,t,n,r,a,i){return Ve(e.$slots,"default")}var __e=Xe(y_e,[["render",b_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const w_e=te({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:c_e,ElRovingFocusGroupImpl:__e}});function S_e(e,t,n,r,a,i){const o=Dt("el-roving-focus-group-impl"),s=Dt("el-focus-group-collection");return N(),Te(s,null,{default:fe(()=>[re(o,Vo(aw(e.$attrs)),{default:fe(()=>[Ve(e.$slots,"default")]),_:3},16)]),_:3})}var C_e=Xe(w_e,[["render",S_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const x_e=te({components:{ElRovingFocusCollectionItem:f_e},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}=ct(YM,void 0),{getItems:o}=ct(jM,void 0),s=go(),l=U(null),u=yr(h=>{t("mousedown",h)},h=>{e.focusable?a(_(s)):h.preventDefault()}),c=yr(h=>{t("focus",h)},()=>{a(_(s))}),f=yr(h=>{t("keydown",h)},h=>{const{key:v,shiftKey:p,target:g,currentTarget:m}=h;if(v===_t.tab&&p){i();return}if(g!==m)return;const b=p_e(h);if(b){h.preventDefault();let S=o().filter(C=>C.focusable).map(C=>C.ref);switch(b){case"last":{S.reverse();break}case"prev":case"next":{b==="prev"&&S.reverse();const C=S.indexOf(m);S=r.value?g_e(S,C+1):S.slice(C+1);break}}pt(()=>{qM(S)})}}),d=R(()=>n.value===_(s));return tn(mW,{rovingFocusGroupItemRef:l,tabIndex:R(()=>_(d)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:s,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function T_e(e,t,n,r,a,i){const o=Dt("el-roving-focus-collection-item");return N(),Te(o,{id:e.id,focusable:e.focusable,active:e.active},{default:fe(()=>[Ve(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var k_e=Xe(x_e,[["render",T_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Gb=Je({trigger:im.trigger,effect:{...da.effect,default:"light"},type:{type:Ce(String)},placement:{type:Ce(String),default:"bottom"},popperOptions:{type:Ce(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:Ce([Number,String]),default:0},maxHeight:{type:Ce([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Ce(Object)},teleported:da.teleported}),yW=Je({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Kn}}),A_e=Je({onKeydown:{type:Ce(Function)}}),E_e=[_t.down,_t.pageDown,_t.home],bW=[_t.up,_t.pageUp,_t.end],M_e=[...E_e,...bW],{ElCollection:I_e,ElCollectionItem:D_e,COLLECTION_INJECTION_KEY:L_e,COLLECTION_ITEM_INJECTION_KEY:P_e}=gW("Dropdown"),Pw=Symbol("elDropdown"),{ButtonGroup:R_e}=_a,O_e=te({name:"ElDropdown",components:{ElButton:_a,ElButtonGroup:R_e,ElScrollbar:$l,ElDropdownCollection:I_e,ElTooltip:ri,ElRovingFocusGroup:C_e,ElOnlyChild:GH,ElIcon:vt,ArrowDown:tc},props:Gb,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Nt(),r=We("dropdown"),{t:a}=bn(),i=U(),o=U(),s=U(null),l=U(null),u=U(null),c=U(null),f=U(!1),d=[_t.enter,_t.space,_t.down],h=R(()=>({maxHeight:kr(e.maxHeight)})),v=R(()=>[r.m(C.value)]),p=R(()=>Uf(e.trigger)),g=go().value,m=R(()=>e.id||g);ze([i,p],([$,V],[P])=>{var G,j,J;(G=P==null?void 0:P.$el)!=null&&G.removeEventListener&&P.$el.removeEventListener("pointerenter",x),(j=$==null?void 0:$.$el)!=null&&j.removeEventListener&&$.$el.removeEventListener("pointerenter",x),(J=$==null?void 0:$.$el)!=null&&J.addEventListener&&V.includes("hover")&&$.$el.addEventListener("pointerenter",x)},{immediate:!0}),sr(()=>{var $,V;(V=($=i.value)==null?void 0:$.$el)!=null&&V.removeEventListener&&i.value.$el.removeEventListener("pointerenter",x)});function b(){w()}function w(){var $;($=s.value)==null||$.onClose()}function S(){var $;($=s.value)==null||$.onOpen()}const C=jr();function y(...$){t("command",...$)}function x(){var $,V;(V=($=i.value)==null?void 0:$.$el)==null||V.focus()}function T(){}function A(){const $=_(l);p.value.includes("hover")&&($==null||$.focus()),c.value=null}function M($){c.value=$}function E($){f.value||($.preventDefault(),$.stopImmediatePropagation())}function I(){t("visible-change",!0)}function L($){($==null?void 0:$.type)==="keydown"&&l.value.focus()}function O(){t("visible-change",!1)}return tn(Pw,{contentRef:l,role:R(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:T,onItemLeave:A}),tn("elDropdown",{instance:n,dropdownSize:C,handleClick:b,commandHandler:y,trigger:vr(e,"trigger"),hideOnClick:vr(e,"hideOnClick")}),{t:a,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:v,dropdownSize:C,triggerId:m,triggerKeys:d,currentTabId:c,handleCurrentTabIdChange:M,handlerMainButtonClick:$=>{t("click",$)},handleEntryFocus:E,handleClose:w,handleOpen:S,handleBeforeShowTooltip:I,handleShowTooltip:L,handleBeforeHideTooltip:O,onFocusAfterTrapped:$=>{var V,P;$.preventDefault(),(P=(V=l.value)==null?void 0:V.focus)==null||P.call(V,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function N_e(e,t,n,r,a,i){var o;const s=Dt("el-dropdown-collection"),l=Dt("el-roving-focus-group"),u=Dt("el-scrollbar"),c=Dt("el-only-child"),f=Dt("el-tooltip"),d=Dt("el-button"),h=Dt("arrow-down"),v=Dt("el-icon"),p=Dt("el-button-group");return N(),X("div",{class:H([e.ns.b(),e.ns.is("disabled",e.disabled)])},[re(f,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(o=e.referenceElementRef)==null?void 0:o.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},bl({content:fe(()=>[re(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:fe(()=>[re(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:fe(()=>[re(s,null,{default:fe(()=>[Ve(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:fe(()=>[re(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:fe(()=>[Ve(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?(N(),Te(p,{key:0},{default:fe(()=>[re(d,qt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:fe(()=>[Ve(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),re(d,qt({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:fe(()=>[re(v,{class:H(e.ns.e("icon"))},{default:fe(()=>[re(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):be("v-if",!0)],2)}var $_e=Xe(O_e,[["render",N_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const B_e=te({name:"DropdownItemImpl",components:{ElIcon:vt},props:yW,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=We("dropdown"),{role:r}=ct(Pw,void 0),{collectionItemRef:a}=ct(P_e,void 0),{collectionItemRef:i}=ct(d_e,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=ct(mW,void 0),f=bw(a,i,o),d=R(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=yr(v=>{const{code:p}=v;if(p===_t.enter||p===_t.space)return v.preventDefault(),v.stopImmediatePropagation(),t("clickimpl",v),!0},u);return{ns:n,itemRef:f,dataset:{[pW]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}}),F_e=["aria-disabled","tabindex","role"];function V_e(e,t,n,r,a,i){const o=Dt("el-icon");return N(),X(gt,null,[e.divided?(N(),X("li",qt({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):be("v-if",!0),ee("li",qt({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]=xt((...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?(N(),Te(o,{key:0},{default:fe(()=>[(N(),Te(Xt(e.icon)))]),_:1})):be("v-if",!0),Ve(e.$slots,"default")],16,F_e)],64)}var z_e=Xe(B_e,[["render",V_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const _W=()=>{const e=ct("elDropdown",{}),t=R(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},H_e=te({name:"ElDropdownItem",components:{ElDropdownCollectionItem:D_e,ElRovingFocusItem:k_e,ElDropdownItemImpl:z_e},inheritAttrs:!1,props:yW,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=_W(),a=Nt(),i=U(null),o=R(()=>{var h,v;return(v=(h=_(i))==null?void 0:h.textContent)!=null?v:""}),{onItemEnter:s,onItemLeave:l}=ct(Pw,void 0),u=yr(h=>(t("pointermove",h),h.defaultPrevented),yR(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=yr(h=>(t("pointerleave",h),h.defaultPrevented),yR(h=>{l(h)})),f=yr(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var v,p,g;if(e.disabled){h.stopImmediatePropagation();return}(v=r==null?void 0:r.hideOnClick)!=null&&v.value&&((p=r.handleClick)==null||p.call(r)),(g=r.commandHandler)==null||g.call(r,e.command,a,h)}),d=R(()=>({...e,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:d}}});function W_e(e,t,n,r,a,i){var o;const s=Dt("el-dropdown-item-impl"),l=Dt("el-roving-focus-item"),u=Dt("el-dropdown-collection-item");return N(),Te(u,{disabled:e.disabled,"text-value":(o=e.textValue)!=null?o:e.textContent},{default:fe(()=>[re(l,{focusable:!e.disabled},{default:fe(()=>[re(s,qt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:fe(()=>[Ve(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var wW=Xe(H_e,[["render",W_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const G_e=te({name:"ElDropdownMenu",props:A_e,setup(e){const t=We("dropdown"),{_elDropdownSize:n}=_W(),r=n.value,{focusTrapRef:a,onKeydown:i}=ct(NM,void 0),{contentRef:o,role:s,triggerId:l}=ct(Pw,void 0),{collectionRef:u,getItems:c}=ct(L_e,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:d,tabIndex:h,onBlur:v,onFocus:p,onMousedown:g}=ct(YM,void 0),{collectionRef:m}=ct(jM,void 0),b=R(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),w=bw(o,u,a,f,m),S=yr(y=>{var x;(x=e.onKeydown)==null||x.call(e,y)},y=>{const{currentTarget:x,code:T,target:A}=y;if(x.contains(A),_t.tab===T&&y.stopImmediatePropagation(),y.preventDefault(),A!==_(o)||!M_e.includes(T))return;const E=c().filter(I=>!I.disabled).map(I=>I.ref);bW.includes(T)&&E.reverse(),qM(E)});return{size:r,rovingFocusGroupRootStyle:d,tabIndex:h,dropdownKls:b,role:s,triggerId:l,dropdownListWrapperRef:w,handleKeydown:y=>{S(y),i(y)},onBlur:v,onFocus:p,onMousedown:g}}}),U_e=["role","aria-labelledby"];function K_e(e,t,n,r,a,i){return N(),X("ul",{ref:e.dropdownListWrapperRef,class:H(e.dropdownKls),style:mt(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]=xt((...o)=>e.handleKeydown&&e.handleKeydown(...o),["self"])),onMousedown:t[3]||(t[3]=xt((...o)=>e.onMousedown&&e.onMousedown(...o),["self"]))},[Ve(e.$slots,"default")],46,U_e)}var SW=Xe(G_e,[["render",K_e],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const j_e=Ut($_e,{DropdownItem:wW,DropdownMenu:SW}),Y_e=br(wW),q_e=br(SW),X_e={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},Z_e=["id"],J_e=["stop-color"],Q_e=["stop-color"],ewe=["id"],twe=["stop-color"],nwe=["stop-color"],rwe=["id"],awe={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},iwe={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},owe={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},swe=["fill"],lwe=["fill"],uwe={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)"},cwe=["fill"],fwe=["fill"],dwe=["fill"],hwe=["fill"],vwe=["fill"],pwe={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},gwe=["fill","xlink:href"],mwe=["fill","mask"],ywe=["fill"],bwe=te({name:"ImgEmpty"}),_we=te({...bwe,setup(e){const t=We("empty"),n=go();return(r,a)=>(N(),X("svg",X_e,[ee("defs",null,[ee("linearGradient",{id:`linearGradient-1-${_(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[ee("stop",{"stop-color":`var(${_(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,J_e),ee("stop",{"stop-color":`var(${_(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,Q_e)],8,Z_e),ee("linearGradient",{id:`linearGradient-2-${_(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[ee("stop",{"stop-color":`var(${_(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,twe),ee("stop",{"stop-color":`var(${_(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,nwe)],8,ewe),ee("rect",{id:`path-3-${_(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,rwe)]),ee("g",awe,[ee("g",iwe,[ee("g",owe,[ee("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${_(t).cssVarBlockName("fill-color-3")})`},null,8,swe),ee("polygon",{id:"Rectangle-Copy-14",fill:`var(${_(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,lwe),ee("g",uwe,[ee("polygon",{id:"Rectangle-Copy-10",fill:`var(${_(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,cwe),ee("polygon",{id:"Rectangle-Copy-11",fill:`var(${_(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,fwe),ee("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${_(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,dwe),ee("polygon",{id:"Rectangle-Copy-13",fill:`var(${_(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,hwe)]),ee("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${_(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,vwe),ee("g",pwe,[ee("use",{id:"Mask",fill:`var(${_(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${_(n)}`},null,8,gwe),ee("polygon",{id:"Rectangle-Copy",fill:`var(${_(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${_(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,mwe)]),ee("polygon",{id:"Rectangle-Copy-18",fill:`var(${_(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,ywe)])])])]))}});var wwe=Xe(_we,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const Swe=Je({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Cwe=["src"],xwe={key:1},Twe=te({name:"ElEmpty"}),kwe=te({...Twe,props:Swe,setup(e){const t=e,{t:n}=bn(),r=We("empty"),a=R(()=>t.description||n("el.table.emptyText")),i=R(()=>({width:kr(t.imageSize)}));return(o,s)=>(N(),X("div",{class:H(_(r).b())},[ee("div",{class:H(_(r).e("image")),style:mt(_(i))},[o.image?(N(),X("img",{key:0,src:o.image,ondragstart:"return false"},null,8,Cwe)):Ve(o.$slots,"image",{key:1},()=>[re(wwe)])],6),ee("div",{class:H(_(r).e("description"))},[o.$slots.description?Ve(o.$slots,"description",{key:0}):(N(),X("p",xwe,qe(_(a)),1))],2),o.$slots.default?(N(),X("div",{key:0,class:H(_(r).e("bottom"))},[Ve(o.$slots,"default")],2)):be("v-if",!0)],2))}});var Awe=Xe(kwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const CW=Ut(Awe),Ewe=Je({urlList:{type:Ce(Array),default:()=>ur([])},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}}),Mwe={close:()=>!0,switch:e=>kt(e),rotate:e=>kt(e)},Iwe=["src"],Dwe=te({name:"ElImageViewer"}),Lwe=te({...Dwe,props:Ewe,emits:Mwe,setup(e,{expose:t,emit:n}){const r=e,a={CONTAIN:{name:"contain",icon:vl(sue)},ORIGINAL:{name:"original",icon:vl(Eue)}},{t:i}=bn(),o=We("image-viewer"),{nextZIndex:s}=_v(),l=U(),u=U([]),c=X_(),f=U(!0),d=U(r.initialIndex),h=Wn(a.CONTAIN),v=U({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),p=R(()=>{const{urlList:P}=r;return P.length<=1}),g=R(()=>d.value===0),m=R(()=>d.value===r.urlList.length-1),b=R(()=>r.urlList[d.value]),w=R(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!r.infinite&&g.value)]),S=R(()=>[o.e("btn"),o.e("next"),o.is("disabled",!r.infinite&&m.value)]),C=R(()=>{const{scale:P,deg:G,offsetX:j,offsetY:J,enableTransition:ne}=v.value;let ve=j/P,le=J/P;switch(G%360){case 90:case-270:[ve,le]=[le,-ve];break;case 180:case-180:[ve,le]=[-ve,-le];break;case 270:case-90:[ve,le]=[-le,ve];break}const ce={transform:`scale(${P}) rotate(${G}deg) translate(${ve}px, ${le}px)`,transition:ne?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(ce.maxWidth=ce.maxHeight="100%"),ce}),y=R(()=>kt(r.zIndex)?r.zIndex:s());function x(){A(),n("close")}function T(){const P=Df(j=>{switch(j.code){case _t.esc:r.closeOnPressEscape&&x();break;case _t.space:O();break;case _t.left:F();break;case _t.up:V("zoomIn");break;case _t.right:$();break;case _t.down:V("zoomOut");break}}),G=Df(j=>{const J=j.deltaY||j.deltaX;V(J<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});c.run(()=>{ir(document,"keydown",P),ir(document,"wheel",G)})}function A(){c.stop()}function M(){f.value=!1}function E(P){f.value=!1,P.target.alt=i("el.image.error")}function I(P){if(f.value||P.button!==0||!l.value)return;v.value.enableTransition=!1;const{offsetX:G,offsetY:j}=v.value,J=P.pageX,ne=P.pageY,ve=Df(ce=>{v.value={...v.value,offsetX:G+ce.pageX-J,offsetY:j+ce.pageY-ne}}),le=ir(document,"mousemove",ve);ir(document,"mouseup",()=>{le()}),P.preventDefault()}function L(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function O(){if(f.value)return;const P=Qg(a),G=Object.values(a),j=h.value.name,ne=(G.findIndex(ve=>ve.name===j)+1)%P.length;h.value=a[P[ne]],L()}function z(P){const G=r.urlList.length;d.value=(P+G)%G}function F(){g.value&&!r.infinite||z(d.value-1)}function $(){m.value&&!r.infinite||z(d.value+1)}function V(P,G={}){if(f.value)return;const{zoomRate:j,rotateDeg:J,enableTransition:ne}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...G};switch(P){case"zoomOut":v.value.scale>.2&&(v.value.scale=Number.parseFloat((v.value.scale/j).toFixed(3)));break;case"zoomIn":v.value.scale<7&&(v.value.scale=Number.parseFloat((v.value.scale*j).toFixed(3)));break;case"clockwise":v.value.deg+=J,n("rotate",v.value.deg);break;case"anticlockwise":v.value.deg-=J,n("rotate",v.value.deg);break}v.value.enableTransition=ne}return ze(b,()=>{pt(()=>{const P=u.value[0];P!=null&&P.complete||(f.value=!0)})}),ze(d,P=>{L(),n("switch",P)}),zt(()=>{var P,G;T(),(G=(P=l.value)==null?void 0:P.focus)==null||G.call(P)}),t({setActiveItem:z}),(P,G)=>(N(),Te(Qm,{to:"body",disabled:!P.teleported},[re(Mr,{name:"viewer-fade",appear:""},{default:fe(()=>[ee("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:H(_(o).e("wrapper")),style:mt({zIndex:_(y)})},[ee("div",{class:H(_(o).e("mask")),onClick:G[0]||(G[0]=xt(j=>P.hideOnClickModal&&x(),["self"]))},null,2),be(" CLOSE "),ee("span",{class:H([_(o).e("btn"),_(o).e("close")]),onClick:x},[re(_(vt),null,{default:fe(()=>[re(_(Jo))]),_:1})],2),be(" ARROW "),_(p)?be("v-if",!0):(N(),X(gt,{key:0},[ee("span",{class:H(_(w)),onClick:F},[re(_(vt),null,{default:fe(()=>[re(_(Vu))]),_:1})],2),ee("span",{class:H(_(S)),onClick:$},[re(_(vt),null,{default:fe(()=>[re(_(Za))]),_:1})],2)],64)),be(" ACTIONS "),ee("div",{class:H([_(o).e("btn"),_(o).e("actions")])},[ee("div",{class:H(_(o).e("actions__inner"))},[re(_(vt),{onClick:G[1]||(G[1]=j=>V("zoomOut"))},{default:fe(()=>[re(_(Kue))]),_:1}),re(_(vt),{onClick:G[2]||(G[2]=j=>V("zoomIn"))},{default:fe(()=>[re(_(Yz))]),_:1}),ee("i",{class:H(_(o).e("actions__divider"))},null,2),re(_(vt),{onClick:O},{default:fe(()=>[(N(),Te(Xt(_(h).icon)))]),_:1}),ee("i",{class:H(_(o).e("actions__divider"))},null,2),re(_(vt),{onClick:G[3]||(G[3]=j=>V("anticlockwise"))},{default:fe(()=>[re(_(xue))]),_:1}),re(_(vt),{onClick:G[4]||(G[4]=j=>V("clockwise"))},{default:fe(()=>[re(_(kue))]),_:1})],2)],2),be(" CANVAS "),ee("div",{class:H(_(o).e("canvas"))},[(N(!0),X(gt,null,un(P.urlList,(j,J)=>Rt((N(),X("img",{ref_for:!0,ref:ne=>u.value[J]=ne,key:j,src:j,style:mt(_(C)),class:H(_(o).e("img")),onLoad:M,onError:E,onMousedown:I},null,46,Iwe)),[[Sn,J===d.value]])),128))],2),Ve(P.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var Pwe=Xe(Lwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const xW=Ut(Pwe),Rwe=Je({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:Ce([String,Object])},previewSrcList:{type:Ce(Array),default:()=>ur([])},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}}),Owe={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>kt(e),close:()=>!0,show:()=>!0},Nwe=["src","loading"],$we={key:0},Bwe=te({name:"ElImage",inheritAttrs:!1}),Fwe=te({...Bwe,props:Rwe,emits:Owe,setup(e,{emit:t}){const n=e;let r="";const{t:a}=bn(),i=We("image"),o=rd(),s=mM(),l=U(),u=U(!1),c=U(!0),f=U(!1),d=U(),h=U(),v=vn&&"loading"in HTMLImageElement.prototype;let p,g;const m=R(()=>[i.e("inner"),S.value&&i.e("preview"),c.value&&i.is("loading")]),b=R(()=>o.style),w=R(()=>{const{fit:V}=n;return vn&&V?{objectFit:V}:{}}),S=R(()=>{const{previewSrcList:V}=n;return Array.isArray(V)&&V.length>0}),C=R(()=>{const{previewSrcList:V,initialIndex:P}=n;let G=P;return P>V.length-1&&(G=0),G}),y=R(()=>n.loading==="eager"?!1:!v&&n.loading==="lazy"||n.lazy),x=()=>{vn&&(c.value=!0,u.value=!1,l.value=n.src)};function T(V){c.value=!1,u.value=!1,t("load",V)}function A(V){c.value=!1,u.value=!0,t("error",V)}function M(){wne(d.value,h.value)&&(x(),L())}const E=tz(M,200,!0);async function I(){var V;if(!vn)return;await pt();const{scrollContainer:P}=n;ho(P)?h.value=P:Mt(P)&&P!==""?h.value=(V=document.querySelector(P))!=null?V:void 0:d.value&&(h.value=fM(d.value)),h.value&&(p=ir(h,"scroll",E),setTimeout(()=>M(),100))}function L(){!vn||!h.value||!E||(p==null||p(),h.value=void 0)}function O(V){if(V.ctrlKey){if(V.deltaY<0)return V.preventDefault(),!1;if(V.deltaY>0)return V.preventDefault(),!1}}function z(){S.value&&(g=ir("wheel",O,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,t("show"))}function F(){g==null||g(),document.body.style.overflow=r,f.value=!1,t("close")}function $(V){t("switch",V)}return ze(()=>n.src,()=>{y.value?(c.value=!0,u.value=!1,L(),I()):x()}),zt(()=>{y.value?I():x()}),(V,P)=>(N(),X("div",{ref_key:"container",ref:d,class:H([_(i).b(),V.$attrs.class]),style:mt(_(b))},[u.value?Ve(V.$slots,"error",{key:0},()=>[ee("div",{class:H(_(i).e("error"))},qe(_(a)("el.image.error")),3)]):(N(),X(gt,{key:1},[l.value!==void 0?(N(),X("img",qt({key:0},_(s),{src:l.value,loading:V.loading,style:_(w),class:_(m),onClick:z,onLoad:T,onError:A}),null,16,Nwe)):be("v-if",!0),c.value?(N(),X("div",{key:1,class:H(_(i).e("wrapper"))},[Ve(V.$slots,"placeholder",{},()=>[ee("div",{class:H(_(i).e("placeholder"))},null,2)])],2)):be("v-if",!0)],64)),_(S)?(N(),X(gt,{key:2},[f.value?(N(),Te(_(xW),{key:0,"z-index":V.zIndex,"initial-index":_(C),infinite:V.infinite,"zoom-rate":V.zoomRate,"url-list":V.previewSrcList,"hide-on-click-modal":V.hideOnClickModal,teleported:V.previewTeleported,"close-on-press-escape":V.closeOnPressEscape,onClose:F,onSwitch:$},{default:fe(()=>[V.$slots.viewer?(N(),X("div",$we,[Ve(V.$slots,"viewer")])):be("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):be("v-if",!0)],64)):be("v-if",!0)],6))}});var Vwe=Xe(Fwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const zwe=Ut(Vwe),Hwe=Je({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Sa,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||kt(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}}),Wwe={[nr]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Ja]:e=>kt(e)||Wr(e),[Kt]:e=>kt(e)||Wr(e)},Gwe=["aria-label","onKeydown"],Uwe=["aria-label","onKeydown"],Kwe=te({name:"ElInputNumber"}),jwe=te({...Kwe,props:Hwe,emits:Wwe,setup(e,{expose:t,emit:n}){const r=e,{t:a}=bn(),i=We("input-number"),o=U(),s=xn({currentValue:r.modelValue,userInput:null}),{formItem:l}=si(),u=R(()=>kt(r.modelValue)&&r.modelValue<=r.min),c=R(()=>kt(r.modelValue)&&r.modelValue>=r.max),f=R(()=>{const L=m(r.step);return Xr(r.precision)?Math.max(m(r.modelValue),L):(L>r.precision,r.precision)}),d=R(()=>r.controls&&r.controlsPosition==="right"),h=jr(),v=xi(),p=R(()=>{if(s.userInput!==null)return s.userInput;let L=s.currentValue;if(Wr(L))return"";if(kt(L)){if(Number.isNaN(L))return"";Xr(r.precision)||(L=L.toFixed(r.precision))}return L}),g=(L,O)=>{if(Xr(O)&&(O=f.value),O===0)return Math.round(L);let z=String(L);const F=z.indexOf(".");if(F===-1||!z.replace(".","").split("")[F+O])return L;const P=z.length;return z.charAt(P-1)==="5"&&(z=`${z.slice(0,Math.max(0,P-1))}6`),Number.parseFloat(Number(z).toFixed(O))},m=L=>{if(Wr(L))return 0;const O=L.toString(),z=O.indexOf(".");let F=0;return z!==-1&&(F=O.length-z-1),F},b=(L,O=1)=>kt(L)?g(L+r.step*O):s.currentValue,w=()=>{if(r.readonly||v.value||c.value)return;const L=Number(p.value)||0,O=b(L);y(O),n(Ja,s.currentValue)},S=()=>{if(r.readonly||v.value||u.value)return;const L=Number(p.value)||0,O=b(L,-1);y(O),n(Ja,s.currentValue)},C=(L,O)=>{const{max:z,min:F,step:$,precision:V,stepStrictly:P,valueOnClear:G}=r;z<F&&Kr("InputNumber","min should not be greater than max.");let j=Number(L);if(Wr(L)||Number.isNaN(j))return null;if(L===""){if(G===null)return null;j=Mt(G)?{min:F,max:z}[G]:G}return P&&(j=g(Math.round(j/$)*$,V)),Xr(V)||(j=g(j,V)),(j>z||j<F)&&(j=j>z?z:F,O&&n(Kt,j)),j},y=(L,O=!0)=>{var z;const F=s.currentValue,$=C(L);if(!O){n(Kt,$);return}F!==$&&(s.userInput=null,n(Kt,$),n(nr,$,F),r.validateEvent&&((z=l==null?void 0:l.validate)==null||z.call(l,"change").catch(V=>void 0)),s.currentValue=$)},x=L=>{s.userInput=L;const O=L===""?null:Number(L);n(Ja,O),y(O,!1)},T=L=>{const O=L!==""?Number(L):"";(kt(O)&&!Number.isNaN(O)||L==="")&&y(O),s.userInput=null},A=()=>{var L,O;(O=(L=o.value)==null?void 0:L.focus)==null||O.call(L)},M=()=>{var L,O;(O=(L=o.value)==null?void 0:L.blur)==null||O.call(L)},E=L=>{n("focus",L)},I=L=>{var O;n("blur",L),r.validateEvent&&((O=l==null?void 0:l.validate)==null||O.call(l,"blur").catch(z=>void 0))};return ze(()=>r.modelValue,L=>{const O=C(s.userInput),z=C(L,!0);!kt(O)&&(!O||O!==z)&&(s.currentValue=z,s.userInput=null)},{immediate:!0}),zt(()=>{var L;const{min:O,max:z,modelValue:F}=r,$=(L=o.value)==null?void 0:L.input;if($.setAttribute("role","spinbutton"),Number.isFinite(z)?$.setAttribute("aria-valuemax",String(z)):$.removeAttribute("aria-valuemax"),Number.isFinite(O)?$.setAttribute("aria-valuemin",String(O)):$.removeAttribute("aria-valuemin"),$.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),$.setAttribute("aria-disabled",String(v.value)),!kt(F)&&F!=null){let V=Number(F);Number.isNaN(V)&&(V=null),n(Kt,V)}}),Ll(()=>{var L,O;const z=(L=o.value)==null?void 0:L.input;z==null||z.setAttribute("aria-valuenow",`${(O=s.currentValue)!=null?O:""}`)}),t({focus:A,blur:M}),(L,O)=>(N(),X("div",{class:H([_(i).b(),_(i).m(_(h)),_(i).is("disabled",_(v)),_(i).is("without-controls",!L.controls),_(i).is("controls-right",_(d))]),onDragstart:O[1]||(O[1]=xt(()=>{},["prevent"]))},[L.controls?Rt((N(),X("span",{key:0,role:"button","aria-label":_(a)("el.inputNumber.decrease"),class:H([_(i).e("decrease"),_(i).is("disabled",_(u))]),onKeydown:yn(S,["enter"])},[re(_(vt),null,{default:fe(()=>[_(d)?(N(),Te(_(tc),{key:0})):(N(),Te(_(vue),{key:1}))]),_:1})],42,Gwe)),[[_(N1),S]]):be("v-if",!0),L.controls?Rt((N(),X("span",{key:1,role:"button","aria-label":_(a)("el.inputNumber.increase"),class:H([_(i).e("increase"),_(i).is("disabled",_(c))]),onKeydown:yn(w,["enter"])},[re(_(vt),null,{default:fe(()=>[_(d)?(N(),Te(_(mw),{key:0})):(N(),Te(_(Kz),{key:1}))]),_:1})],42,Uwe)),[[_(N1),w]]):be("v-if",!0),re(_(Ra),{id:L.id,ref_key:"input",ref:o,type:"number",step:L.step,"model-value":_(p),placeholder:L.placeholder,readonly:L.readonly,disabled:_(v),size:_(h),max:L.max,min:L.min,name:L.name,label:L.label,"validate-event":!1,onWheel:O[0]||(O[0]=xt(()=>{},["prevent"])),onKeydown:[yn(xt(w,["prevent"]),["up"]),yn(xt(S,["prevent"]),["down"])],onBlur:I,onFocus:E,onInput:x,onChange:T},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var Ywe=Xe(jwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const TW=Ut(Ywe),qwe=Je({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:Kn}}),Xwe={click:e=>e instanceof MouseEvent},Zwe=["href"],Jwe=te({name:"ElLink"}),Qwe=te({...Jwe,props:qwe,emits:Xwe,setup(e,{emit:t}){const n=e,r=We("link"),a=R(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function i(o){n.disabled||t("click",o)}return(o,s)=>(N(),X("a",{class:H(_(a)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?(N(),Te(_(vt),{key:0},{default:fe(()=>[(N(),Te(Xt(o.icon)))]),_:1})):be("v-if",!0),o.$slots.default?(N(),X("span",{key:1,class:H(_(r).e("inner"))},[Ve(o.$slots,"default")],2)):be("v-if",!0),o.$slots.icon?Ve(o.$slots,"icon",{key:2}):be("v-if",!0)],10,Zwe))}});var eSe=Xe(Qwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const tSe=Ut(eSe);let nSe=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 _t.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case _t.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case _t.tab:{Ib(t,"mouseleave");break}case _t.enter:case _t.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}},rSe=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 nSe(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case _t.down:{Ib(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case _t.up:{Ib(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case _t.tab:{Ib(t.currentTarget,"mouseleave");break}case _t.enter:case _t.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},aSe=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 rSe(r,t)})}};const iSe=te({name:"ElMenuCollapseTransition",setup(){const e=We("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){As(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){bi(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),jo(n,e.m("collapse"))?(bi(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),As(n,e.m("collapse"))):(As(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),bi(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){As(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function oSe(e,t,n,r,a,i){return N(),Te(Mr,qt({mode:"out-in"},e.listeners),{default:fe(()=>[Ve(e.$slots,"default")]),_:3},16)}var sSe=Xe(iSe,[["render",oSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function kW(e,t){const n=R(()=>{let a=e.parent;const i=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:R(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function lSe(e){return R(()=>{const n=e.backgroundColor;return n?new r9(n).shade(20).toString():""})}const AW=(e,t)=>{const n=We("menu");return R(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":lSe(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},uSe=Je({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Kn},expandOpenIcon:{type:Kn},collapseCloseIcon:{type:Kn},collapseOpenIcon:{type:Kn}}),y0="ElSubMenu";var XM=te({name:y0,props:uSe,setup(e,{slots:t,expose:n}){$s({from:"popper-append-to-body",replacement:"teleported",scope:y0,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},R(()=>e.popperAppendToBody!==void 0));const r=Nt(),{indexPath:a,parentMenu:i}=kW(r,R(()=>e.index)),o=We("menu"),s=We("sub-menu"),l=ct("rootMenu");l||Kr(y0,"can not inject root menu");const u=ct(`subMenu:${i.value.uid}`);u||Kr(y0,"can not inject sub menu");const c=U({}),f=U({});let d;const h=U(!1),v=U(),p=U(null),g=R(()=>E.value==="horizontal"&&b.value?"bottom-start":"right-start"),m=R(()=>E.value==="horizontal"&&b.value||E.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?y.value?e.expandOpenIcon:e.expandCloseIcon:tc:e.collapseCloseIcon&&e.collapseOpenIcon?y.value?e.collapseOpenIcon:e.collapseCloseIcon:Za),b=R(()=>u.level===0),w=R(()=>{var G;const j=(G=e.teleported)!=null?G:e.popperAppendToBody;return j===void 0?b.value:j}),S=R(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),C=R(()=>E.value==="horizontal"&&b.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),y=R(()=>l.openedMenus.includes(e.index)),x=R(()=>{let G=!1;return Object.values(c.value).forEach(j=>{j.active&&(G=!0)}),Object.values(f.value).forEach(j=>{j.active&&(G=!0)}),G}),T=R(()=>l.props.backgroundColor||""),A=R(()=>l.props.activeTextColor||""),M=R(()=>l.props.textColor||""),E=R(()=>l.props.mode),I=xn({index:e.index,indexPath:a,active:x}),L=AW(l.props,u.level+1),O=R(()=>E.value!=="horizontal"?{color:M.value}:{borderBottomColor:x.value?l.props.activeTextColor?A.value:"":"transparent",color:x.value?A.value:M.value}),z=()=>{var G,j,J;return(J=(j=(G=p.value)==null?void 0:G.popperRef)==null?void 0:j.popperInstanceRef)==null?void 0:J.destroy()},F=G=>{G||z()},$=()=>{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})},V=(G,j=e.showTimeout)=>{var J;G.type!=="focus"&&(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,d==null||d(),{stop:d}=Wf(()=>{l.openMenu(e.index,a.value)},j),w.value&&((J=i.value.vnode.el)==null||J.dispatchEvent(new MouseEvent("mouseenter")))))},P=(G=!1)=>{var j,J;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=Wf(()=>!h.value&&l.closeMenu(e.index,a.value),e.hideTimeout),w.value&&G&&((j=r.parent)==null?void 0:j.type.name)==="ElSubMenu"&&((J=u.handleMouseleave)==null||J.call(u,!0)))};ze(()=>l.props.collapse,G=>F(!!G));{const G=J=>{f.value[J.index]=J},j=J=>{delete f.value[J.index]};tn(`subMenu:${r.uid}`,{addSubMenu:G,removeSubMenu:j,handleMouseleave:P,mouseInChild:h,level:u.level+1})}return n({opened:y}),zt(()=>{l.addSubMenu(I),u.addSubMenu(I)}),sr(()=>{u.removeSubMenu(I),l.removeSubMenu(I)}),()=>{var G;const j=[(G=t.title)==null?void 0:G.call(t),bt(vt,{class:s.e("icon-arrow"),style:{transform:y.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Mt(m.value)?bt(r.appContext.components[m.value]):bt(m.value)})],J=l.isMenuPopup?bt(ri,{ref:p,visible:y.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:w.value,fallbackPlacements:C.value,transition:S.value,gpuAcceleration:!1},{content:()=>{var ne;return bt("div",{class:[o.m(E.value),o.m("popup-container"),e.popperClass],onMouseenter:ve=>V(ve,100),onMouseleave:()=>P(!0),onFocus:ve=>V(ve,100)},[bt("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:L.value},[(ne=t.default)==null?void 0:ne.call(t)])])},default:()=>bt("div",{class:s.e("title"),style:[O.value,{backgroundColor:T.value}],onClick:$},j)}):bt(gt,{},[bt("div",{class:s.e("title"),style:[O.value,{backgroundColor:T.value}],ref:v,onClick:$},j),bt(Lw,{},{default:()=>{var ne;return Rt(bt("ul",{role:"menu",class:[o.b(),o.m("inline")],style:L.value},[(ne=t.default)==null?void 0:ne.call(t)]),[[Sn,y.value]])}})]);return bt("li",{class:[s.b(),s.is("active",x.value),s.is("opened",y.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:y.value,onMouseenter:V,onMouseleave:()=>P(!0),onFocus:V},[J])}}});const cSe=Je({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Ce(Array),default:()=>ur([])},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"}}),_C=e=>Array.isArray(e)&&e.every(t=>Mt(t)),fSe={close:(e,t)=>Mt(e)&&_C(t),open:(e,t)=>Mt(e)&&_C(t),select:(e,t,n,r)=>Mt(e)&&_C(t)&&Qt(n)&&(r===void 0||r instanceof Promise)};var dSe=te({name:"ElMenu",props:cSe,emits:fSe,setup(e,{emit:t,slots:n,expose:r}){const a=Nt(),i=a.appContext.config.globalProperties.$router,o=U(),s=We("menu"),l=We("sub-menu"),u=U(-1),c=U(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=U(e.defaultActive),d=U({}),h=U({}),v=R(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const E=f.value&&d.value[f.value];if(!E||e.mode==="horizontal"||e.collapse)return;E.indexPath.forEach(L=>{const O=h.value[L];O&&g(L,O.indexPath)})},g=(E,I)=>{c.value.includes(E)||(e.uniqueOpened&&(c.value=c.value.filter(L=>I.includes(L))),c.value.push(E),t("open",E,I))},m=E=>{const I=c.value.indexOf(E);I!==-1&&c.value.splice(I,1)},b=(E,I)=>{m(E),t("close",E,I)},w=({index:E,indexPath:I})=>{c.value.includes(E)?b(E,I):g(E,I)},S=E=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:I,indexPath:L}=E;if(!(Wr(I)||Wr(L)))if(e.router&&i){const O=E.route||I,z=i.push(O).then(F=>(F||(f.value=I),F));t("select",I,L,{index:I,indexPath:L,route:O},z)}else f.value=I,t("select",I,L,{index:I,indexPath:L})},C=E=>{const I=d.value,L=I[E]||f.value&&I[f.value]||I[e.defaultActive];L?f.value=L.index:f.value=E},y=()=>{var E,I;if(!o.value)return-1;const L=Array.from((I=(E=o.value)==null?void 0:E.childNodes)!=null?I:[]).filter(G=>G.nodeName!=="#comment"&&(G.nodeName!=="#text"||G.nodeValue)),O=64,z=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),F=Number.parseInt(getComputedStyle(o.value).paddingRight,10),$=o.value.clientWidth-z-F;let V=0,P=0;return L.forEach((G,j)=>{V+=G.offsetWidth||0,V<=$-O&&(P=j+1)}),P===L.length?-1:P},x=(E,I=33.34)=>{let L;return()=>{L&&clearTimeout(L),L=setTimeout(()=>{E()},I)}};let T=!0;const A=()=>{const E=()=>{u.value=-1,pt(()=>{u.value=y()})};T?E():x(E)(),T=!1};ze(()=>e.defaultActive,E=>{d.value[E]||(f.value=""),C(E)}),ze(()=>e.collapse,E=>{E&&(c.value=[])}),ze(d.value,p);let M;Oi(()=>{e.mode==="horizontal"&&e.ellipsis?M=$a(o,A).stop:M==null||M()});{const E=z=>{h.value[z.index]=z},I=z=>{delete h.value[z.index]};tn("rootMenu",xn({props:e,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:v,addMenuItem:z=>{d.value[z.index]=z},removeMenuItem:z=>{delete d.value[z.index]},addSubMenu:E,removeSubMenu:I,openMenu:g,closeMenu:b,handleMenuItemClick:S,handleSubMenuClick:w})),tn(`subMenu:${a.uid}`,{addSubMenu:E,removeSubMenu:I,mouseInChild:U(!1),level:0})}return zt(()=>{e.mode==="horizontal"&&new aSe(a.vnode.el,s.namespace.value)}),r({open:I=>{const{indexPath:L}=h.value[I];L.forEach(O=>g(O,L))},close:m,handleResize:A}),()=>{var E,I;let L=(I=(E=n.default)==null?void 0:E.call(n))!=null?I:[];const O=[];if(e.mode==="horizontal"&&o.value){const $=wh(L),V=u.value===-1?$:$.slice(0,u.value),P=u.value===-1?[]:$.slice(u.value);P!=null&&P.length&&e.ellipsis&&(L=V,O.push(bt(XM,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>bt(vt,{class:l.e("icon-more")},{default:()=>bt(mue)}),default:()=>P})))}const z=AW(e,0),F=bt("ul",{key:String(e.collapse),role:"menubar",ref:o,style:z.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...L,...O]);return e.collapseTransition&&e.mode==="vertical"?bt(sSe,()=>F):F}}});const hSe=Je({index:{type:Ce([String,null]),default:null},route:{type:Ce([String,Object])},disabled:Boolean}),vSe={click:e=>Mt(e.index)&&Array.isArray(e.indexPath)},wC="ElMenuItem",pSe=te({name:wC,components:{ElTooltip:ri},props:hSe,emits:vSe,setup(e,{emit:t}){const n=Nt(),r=ct("rootMenu"),a=We("menu"),i=We("menu-item");r||Kr(wC,"can not inject root menu");const{parentMenu:o,indexPath:s}=kW(n,vr(e,"index")),l=ct(`subMenu:${o.value.uid}`);l||Kr(wC,"can not inject sub menu");const u=R(()=>e.index===r.activeIndex),c=xn({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 zt(()=>{l.addSubMenu(c),r.addMenuItem(c)}),sr(()=>{l.removeSubMenu(c),r.removeMenuItem(c)}),{parentMenu:o,rootMenu:r,active:u,nsMenu:a,nsMenuItem:i,handleClick:f}}});function gSe(e,t,n,r,a,i){const o=Dt("el-tooltip");return N(),X("li",{class:H([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?(N(),Te(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:fe(()=>[Ve(e.$slots,"title")]),default:fe(()=>[ee("div",{class:H(e.nsMenu.be("tooltip","trigger"))},[Ve(e.$slots,"default")],2)]),_:3},8,["effect"])):(N(),X(gt,{key:1},[Ve(e.$slots,"default"),Ve(e.$slots,"title")],64))],2)}var EW=Xe(pSe,[["render",gSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const mSe={title:String},ySe="ElMenuItemGroup",bSe=te({name:ySe,props:mSe,setup(){return{ns:We("menu-item-group")}}});function _Se(e,t,n,r,a,i){return N(),X("li",{class:H(e.ns.b())},[ee("div",{class:H(e.ns.e("title"))},[e.$slots.title?Ve(e.$slots,"title",{key:1}):(N(),X(gt,{key:0},[Cn(qe(e.title),1)],64))],2),ee("ul",null,[Ve(e.$slots,"default")])],2)}var MW=Xe(bSe,[["render",_Se],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const wSe=Ut(dSe,{MenuItem:EW,MenuItemGroup:MW,SubMenu:XM}),SSe=br(EW),CSe=br(MW),xSe=br(XM),TSe=Je({icon:{type:Kn,default:()=>Vle},title:String,content:{type:String,default:""}}),kSe={back:()=>!0},ASe=["aria-label"],ESe=te({name:"ElPageHeader"}),MSe=te({...ESe,props:TSe,emits:kSe,setup(e,{emit:t}){const n=ka(),{t:r}=bn(),a=We("page-header"),i=R(()=>[a.b(),{[a.m("has-breadcrumb")]:!!n.breadcrumb,[a.m("has-extra")]:!!n.extra,[a.is("contentful")]:!!n.default}]);function o(){t("back")}return(s,l)=>(N(),X("div",{class:H(_(i))},[s.$slots.breadcrumb?(N(),X("div",{key:0,class:H(_(a).e("breadcrumb"))},[Ve(s.$slots,"breadcrumb")],2)):be("v-if",!0),ee("div",{class:H(_(a).e("header"))},[ee("div",{class:H(_(a).e("left"))},[ee("div",{class:H(_(a).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(N(),X("div",{key:0,"aria-label":s.title||_(r)("el.pageHeader.title"),class:H(_(a).e("icon"))},[Ve(s.$slots,"icon",{},()=>[s.icon?(N(),Te(_(vt),{key:0},{default:fe(()=>[(N(),Te(Xt(s.icon)))]),_:1})):be("v-if",!0)])],10,ASe)):be("v-if",!0),ee("div",{class:H(_(a).e("title"))},[Ve(s.$slots,"title",{},()=>[Cn(qe(s.title||_(r)("el.pageHeader.title")),1)])],2)],2),re(_(vW),{direction:"vertical"}),ee("div",{class:H(_(a).e("content"))},[Ve(s.$slots,"content",{},()=>[Cn(qe(s.content),1)])],2)],2),s.$slots.extra?(N(),X("div",{key:0,class:H(_(a).e("extra"))},[Ve(s.$slots,"extra")],2)):be("v-if",!0)],2),s.$slots.default?(N(),X("div",{key:1,class:H(_(a).e("main"))},[Ve(s.$slots,"default")],2)):be("v-if",!0)],2))}});var ISe=Xe(MSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const DSe=Ut(ISe),IW=Symbol("elPaginationKey"),LSe=Je({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Kn}}),PSe={click:e=>e instanceof MouseEvent},RSe=["disabled","aria-label","aria-disabled"],OSe={key:0},NSe=te({name:"ElPaginationPrev"}),$Se=te({...NSe,props:LSe,emits:PSe,setup(e){const t=e,{t:n}=bn(),r=R(()=>t.disabled||t.currentPage<=1);return(a,i)=>(N(),X("button",{type:"button",class:"btn-prev",disabled:_(r),"aria-label":a.prevText||_(n)("el.pagination.prev"),"aria-disabled":_(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.prevText?(N(),X("span",OSe,qe(a.prevText),1)):(N(),Te(_(vt),{key:1},{default:fe(()=>[(N(),Te(Xt(a.prevIcon)))]),_:1}))],8,RSe))}});var BSe=Xe($Se,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const FSe=Je({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Kn}}),VSe=["disabled","aria-label","aria-disabled"],zSe={key:0},HSe=te({name:"ElPaginationNext"}),WSe=te({...HSe,props:FSe,emits:["click"],setup(e){const t=e,{t:n}=bn(),r=R(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(a,i)=>(N(),X("button",{type:"button",class:"btn-next",disabled:_(r),"aria-label":a.nextText||_(n)("el.pagination.next"),"aria-disabled":_(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.nextText?(N(),X("span",zSe,qe(a.nextText),1)):(N(),Te(_(vt),{key:1},{default:fe(()=>[(N(),Te(Xt(a.nextIcon)))]),_:1}))],8,VSe))}});var GSe=Xe(WSe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const DW=Symbol("ElSelectGroup"),fy=Symbol("ElSelect");function USe(e,t){const n=ct(fy),r=ct(DW,{disabled:!1}),a=R(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),i=R(()=>n.props.multiple?f(n.props.modelValue,e.value):d(e.value,n.props.modelValue)),o=R(()=>{if(n.props.multiple){const p=n.props.modelValue||[];return!i.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=R(()=>e.label||(a.value?"":e.value)),l=R(()=>e.value||e.label||""),u=R(()=>e.disabled||t.groupDisabled||o.value),c=Nt(),f=(p=[],g)=>{if(a.value){const m=n.props.valueKey;return p&&p.some(b=>In(lr(b,m))===lr(g,m))}else return p&&p.includes(g)},d=(p,g)=>{if(a.value){const{valueKey:m}=n.props;return lr(p,m)===lr(g,m)}else return p===g},h=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};ze(()=>s.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ze(()=>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()}}),ze(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:v}=In(n);return ze(v,p=>{const{query:g}=_(p),m=new RegExp(Vz(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 KSe=te({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=We("select"),n=R(()=>[t.be("dropdown","item"),t.is("disabled",_(o)),{selected:_(i),hover:_(c)}]),r=xn({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l}=USe(e,r),{visible:u,hover:c}=Jr(r),f=Nt().proxy;s.onOptionCreate(f),sr(()=>{const h=f.value,{selected:v}=s,g=(s.props.multiple?v:[v]).some(m=>m.value===f.value);pt(()=>{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 jSe(e,t,n,r,a,i){return Rt((N(),X("li",{class:H(e.containerKls),onMouseenter:t[0]||(t[0]=(...o)=>e.hoverItem&&e.hoverItem(...o)),onClick:t[1]||(t[1]=xt((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[Ve(e.$slots,"default",{},()=>[ee("span",null,qe(e.currentLabel),1)])],34)),[[Sn,e.visible]])}var ZM=Xe(KSe,[["render",jSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const YSe=te({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=ct(fy),t=We("select"),n=R(()=>e.props.popperClass),r=R(()=>e.props.multiple),a=R(()=>e.props.fitInputWidth),i=U("");function o(){var s;i.value=`${(s=e.selectWrapper)==null?void 0:s.offsetWidth}px`}return zt(()=>{o(),$a(e.selectWrapper,o)}),{ns:t,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function qSe(e,t,n,r,a,i){return N(),X("div",{class:H([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:mt({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[Ve(e.$slots,"default")],6)}var XSe=Xe(YSe,[["render",qSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function ZSe(e){const{t}=bn();return xn({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 JSe=(e,t,n)=>{const{t:r}=bn(),a=We("select");$s({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},R(()=>e.suffixTransition===!1));const i=U(null),o=U(null),s=U(null),l=U(null),u=U(null),c=U(null),f=U(null),d=U(null),h=U(-1),v=Wn({query:""}),p=Wn(""),g=U([]);let m=0;const{form:b,formItem:w}=si(),S=R(()=>!e.filterable||e.multiple||!t.visible),C=R(()=>e.disabled||(b==null?void 0:b.disabled)),y=R(()=>{const Re=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&&Re}),x=R(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),T=R(()=>a.is("reverse",x.value&&t.visible&&e.suffixTransition)),A=R(()=>(b==null?void 0:b.statusIcon)&&(w==null?void 0:w.validateState)&&gM[w==null?void 0:w.validateState]),M=R(()=>e.remote?300:0),E=R(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),I=R(()=>{const Re=Array.from(t.options.values()),rt=[];return g.value.forEach(Ae=>{const it=Re.findIndex(Wt=>Wt.currentLabel===Ae);it>-1&&rt.push(Re[it])}),rt.length>=Re.length?rt:Re}),L=R(()=>Array.from(t.cachedOptions.values())),O=R(()=>{const Re=I.value.filter(rt=>!rt.created).some(rt=>rt.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!Re}),z=jr(),F=R(()=>["small"].includes(z.value)?"small":"default"),$=R({get(){return t.visible&&E.value!==!1},set(Re){t.visible=Re}});ze([()=>C.value,()=>z.value,()=>b==null?void 0:b.size],()=>{pt(()=>{V()})}),ze(()=>e.placeholder,Re=>{t.cachedPlaceHolder=t.currentPlaceholder=Re,e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(t.currentPlaceholder="")}),ze(()=>e.modelValue,(Re,rt)=>{e.multiple&&(V(),Re&&Re.length>0||o.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",P(t.query))),J(),e.filterable&&!e.multiple&&(t.inputLength=20),!yi(Re,rt)&&e.validateEvent&&(w==null||w.validate("change").catch(Ae=>void 0))},{flush:"post",deep:!0}),ze(()=>t.visible,Re=>{var rt,Ae,it,Wt,nn;Re?((Ae=(rt=l.value)==null?void 0:rt.updatePopper)==null||Ae.call(rt),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,(Wt=(it=s.value)==null?void 0:it.focus)==null||Wt.call(it),e.multiple?(nn=o.value)==null||nn.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),P(t.query),!e.multiple&&!e.remote&&(v.value.query="",Qv(v),Qv(p)))):(e.filterable&&(At(e.filterMethod)&&e.filterMethod(""),At(e.remoteMethod)&&e.remoteMethod("")),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,ve(),pt(()=>{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",Re)}),ze(()=>t.options.entries(),()=>{var Re,rt,Ae;if(!vn)return;(rt=(Re=l.value)==null?void 0:Re.updatePopper)==null||rt.call(Re),e.multiple&&V();const it=((Ae=f.value)==null?void 0:Ae.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!Xr(e.modelValue)||!Array.from(it).includes(document.activeElement))&&J(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&j()},{flush:"post"}),ze(()=>t.hoverIndex,Re=>{kt(Re)&&Re>-1?h.value=I.value[Re]||{}:h.value={},I.value.forEach(rt=>{rt.hover=h.value===rt})});const V=()=>{pt(()=>{var Re,rt;if(!i.value)return;const Ae=i.value.$el.querySelector("input");m=m||(Ae.clientHeight>0?Ae.clientHeight+2:0);const it=c.value,Wt=Zue(z.value||(b==null?void 0:b.size)),nn=z.value||Wt===m||m<=0?Wt:m;!(Ae.offsetParent===null)&&(Ae.style.height=`${(t.selected.length===0?nn:Math.max(it?it.clientHeight+(it.clientHeight>nn?6:0):0,nn))-2}px`),t.visible&&E.value!==!1&&((rt=(Re=l.value)==null?void 0:Re.updatePopper)==null||rt.call(Re))})},P=async Re=>{if(!(t.previousQuery===Re||t.isOnComposition)){if(t.previousQuery===null&&(At(e.filterMethod)||At(e.remoteMethod))){t.previousQuery=Re;return}t.previousQuery=Re,pt(()=>{var rt,Ae;t.visible&&((Ae=(rt=l.value)==null?void 0:rt.updatePopper)==null||Ae.call(rt))}),t.hoverIndex=-1,e.multiple&&e.filterable&&pt(()=>{if(!C.value){const rt=o.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,rt):rt,G()}V()}),e.remote&&At(e.remoteMethod)?(t.hoverIndex=-1,e.remoteMethod(Re)):At(e.filterMethod)?(e.filterMethod(Re),Qv(p)):(t.filteredOptionsCount=t.optionsCount,v.value.query=Re,Qv(v),Qv(p)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await pt(),j())}},G=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=o.value.value?"":t.cachedPlaceHolder)},j=()=>{const Re=I.value.filter(it=>it.visible&&!it.disabled&&!it.states.groupDisabled),rt=Re.find(it=>it.created),Ae=Re[0];t.hoverIndex=Be(I.value,rt||Ae)},J=()=>{var Re;if(e.multiple)t.selectedLabel="";else{const Ae=ne(e.modelValue);(Re=Ae.props)!=null&&Re.created?(t.createdLabel=Ae.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Ae.currentLabel,t.selected=Ae,e.filterable&&(t.query=t.selectedLabel);return}const rt=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Ae=>{rt.push(ne(Ae))}),t.selected=rt,pt(()=>{V()})},ne=Re=>{let rt;const Ae=Tb(Re).toLowerCase()==="object",it=Tb(Re).toLowerCase()==="null",Wt=Tb(Re).toLowerCase()==="undefined";for(let dr=t.cachedOptions.size-1;dr>=0;dr--){const xr=L.value[dr];if(Ae?lr(xr.value,e.valueKey)===lr(Re,e.valueKey):xr.value===Re){rt={value:Re,currentLabel:xr.currentLabel,isDisabled:xr.isDisabled};break}}if(rt)return rt;const nn=Ae?Re.label:!it&&!Wt?Re:"",Jn={value:Re,currentLabel:nn};return e.multiple&&(Jn.hitState=!1),Jn},ve=()=>{setTimeout(()=>{const Re=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(rt=>I.value.findIndex(Ae=>lr(Ae,Re)===lr(rt,Re)))):t.hoverIndex=-1:t.hoverIndex=I.value.findIndex(rt=>$e(rt)===$e(t.selected))},300)},le=()=>{var Re,rt;ce(),(rt=(Re=l.value)==null?void 0:Re.updatePopper)==null||rt.call(Re),e.multiple&&V()},ce=()=>{var Re;t.inputWidth=(Re=i.value)==null?void 0:Re.$el.offsetWidth},ue=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,P(t.query))},Q=ni(()=>{ue()},M.value),_e=ni(Re=>{P(Re.target.value)},M.value),Pe=Re=>{yi(e.modelValue,Re)||n.emit(nr,Re)},pe=Re=>fle(Re,rt=>!t.disabledOptions.has(rt)),Y=Re=>{if(Re.code!==_t.delete){if(Re.target.value.length<=0&&!Ee()){const rt=e.modelValue.slice(),Ae=pe(rt);if(Ae<0)return;rt.splice(Ae,1),n.emit(Kt,rt),Pe(rt)}Re.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}},ie=(Re,rt)=>{const Ae=t.selected.indexOf(rt);if(Ae>-1&&!C.value){const it=e.modelValue.slice();it.splice(Ae,1),n.emit(Kt,it),Pe(it),n.emit("remove-tag",rt.value)}Re.stopPropagation(),ke()},me=Re=>{Re.stopPropagation();const rt=e.multiple?[]:"";if(!Mt(rt))for(const Ae of t.selected)Ae.isDisabled&&rt.push(Ae.value);n.emit(Kt,rt),Pe(rt),t.hoverIndex=-1,t.visible=!1,n.emit("clear"),ke()},De=Re=>{var rt;if(e.multiple){const Ae=(e.modelValue||[]).slice(),it=Be(Ae,Re.value);it>-1?Ae.splice(it,1):(e.multipleLimit<=0||Ae.length<e.multipleLimit)&&Ae.push(Re.value),n.emit(Kt,Ae),Pe(Ae),Re.created&&(t.query="",P(""),t.inputLength=20),e.filterable&&((rt=o.value)==null||rt.focus())}else n.emit(Kt,Re.value),Pe(Re.value),t.visible=!1;Oe(),!t.visible&&pt(()=>{de(Re)})},Be=(Re=[],rt)=>{if(!Qt(rt))return Re.indexOf(rt);const Ae=e.valueKey;let it=-1;return Re.some((Wt,nn)=>In(lr(Wt,Ae))===lr(rt,Ae)?(it=nn,!0):!1),it},Oe=()=>{const Re=o.value||i.value;Re&&(Re==null||Re.focus())},de=Re=>{var rt,Ae,it,Wt,nn;const Jn=Array.isArray(Re)?Re[0]:Re;let dr=null;if(Jn!=null&&Jn.value){const xr=I.value.filter(Dr=>Dr.value===Jn.value);xr.length>0&&(dr=xr[0].$el)}if(l.value&&dr){const xr=(Wt=(it=(Ae=(rt=l.value)==null?void 0:rt.popperRef)==null?void 0:Ae.contentRef)==null?void 0:it.querySelector)==null?void 0:Wt.call(it,`.${a.be("dropdown","wrap")}`);xr&&Wz(xr,dr)}(nn=d.value)==null||nn.handleScroll()},we=Re=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(Re.value,Re),t.cachedOptions.set(Re.value,Re),Re.disabled&&t.disabledOptions.set(Re.value,Re)},Se=(Re,rt)=>{t.options.get(Re)===rt&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(Re))},Ie=Re=>{Re.code!==_t.backspace&&Ee(!1),t.inputLength=o.value.value.length*15+20,V()},Ee=Re=>{if(!Array.isArray(t.selected))return;const rt=pe(t.selected.map(it=>it.value)),Ae=t.selected[rt];if(Ae)return Re===!0||Re===!1?(Ae.hitState=Re,Re):(Ae.hitState=!Ae.hitState,Ae.hitState)},Ge=Re=>{const rt=Re.target.value;if(Re.type==="compositionend")t.isOnComposition=!1,pt(()=>P(rt));else{const Ae=rt[rt.length-1]||"";t.isOnComposition=!ww(Ae)}},Ue=()=>{pt(()=>de(t.selected))},oe=Re=>{t.focused||((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),t.focused=!0,n.emit("focus",Re))},ke=()=>{var Re,rt;t.visible?(Re=o.value||i.value)==null||Re.focus():(rt=i.value)==null||rt.focus()},nt=()=>{var Re,rt,Ae;t.visible=!1,(Re=i.value)==null||Re.blur(),(Ae=(rt=s.value)==null?void 0:rt.blur)==null||Ae.call(rt)},st=Re=>{var rt,Ae,it;(rt=l.value)!=null&&rt.isFocusInsideContent(Re)||(Ae=u.value)!=null&&Ae.isFocusInsideContent(Re)||(it=f.value)!=null&&it.contains(Re.relatedTarget)||(t.visible&&lt(),t.focused=!1,n.emit("blur",Re))},ut=Re=>{me(Re)},lt=()=>{t.visible=!1},Me=Re=>{t.visible&&(Re.preventDefault(),Re.stopPropagation(),t.visible=!1)},ye=Re=>{Re&&!t.mouseEnter||C.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(t.visible=!t.visible),ke())},ge=()=>{t.visible?I.value[t.hoverIndex]&&De(I.value[t.hoverIndex]):ye()},$e=Re=>Qt(Re.value)?lr(Re.value,e.valueKey):Re.value,se=R(()=>I.value.filter(Re=>Re.visible).every(Re=>Re.disabled)),Qe=R(()=>e.multiple?t.selected.slice(0,e.maxCollapseTags):[]),wt=R(()=>e.multiple?t.selected.slice(e.maxCollapseTags):[]),Vt=Re=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!se.value){Re==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):Re==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const rt=I.value[t.hoverIndex];(rt.disabled===!0||rt.states.groupDisabled===!0||!rt.visible)&&Vt(Re),pt(()=>de(h.value))}},Zn=()=>{t.mouseEnter=!0},rr=()=>{t.mouseEnter=!1},$r=(Re,rt)=>{var Ae,it;ie(Re,rt),(it=(Ae=u.value)==null?void 0:Ae.updatePopper)==null||it.call(Ae)},Fn=R(()=>({maxWidth:`${_(t.inputWidth)-32-(A.value?22:0)}px`,width:"100%"}));return{optionList:g,optionsArray:I,selectSize:z,handleResize:le,debouncedOnInputChange:Q,debouncedQueryChange:_e,deletePrevTag:Y,deleteTag:ie,deleteSelected:me,handleOptionSelect:De,scrollToOption:de,readonly:S,resetInputHeight:V,showClose:y,iconComponent:x,iconReverse:T,showNewOption:O,collapseTagSize:F,setSelected:J,managePlaceholder:G,selectDisabled:C,emptyText:E,toggleLastOptionHitState:Ee,resetInputState:Ie,handleComposition:Ge,onOptionCreate:we,onOptionDestroy:Se,handleMenuEnter:Ue,handleFocus:oe,focus:ke,blur:nt,handleBlur:st,handleClearClick:ut,handleClose:lt,handleKeydownEscape:Me,toggleMenu:ye,selectOption:ge,getValueKey:$e,navigateOptions:Vt,handleDeleteTooltipTag:$r,dropMenuVisible:$,queryChange:v,groupQueryChange:p,showTagList:Qe,collapseTagList:wt,selectTagsStyle:Fn,reference:i,input:o,iOSInput:s,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:f,scrollbar:d,handleMouseEnter:Zn,handleMouseLeave:rr}};var QSe=te({name:"ElOptions",emits:["update-options"],setup(e,{slots:t,emit:n}){let r=[];function a(i,o){if(i.length!==o.length)return!1;for(const[s]of i.entries())if(i[s]!=o[s])return!1;return!0}return()=>{var i,o;const s=(i=t.default)==null?void 0:i.call(t),l=[];function u(c){Array.isArray(c)&&c.forEach(f=>{var d,h,v,p;const g=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?u(!Mt(f.children)&&!Array.isArray(f.children)&&At((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 bN="ElSelect",eCe=te({name:bN,componentName:bN,components:{ElInput:Ra,ElSelectMenu:XSe,ElOption:ZM,ElOptions:QSe,ElTag:om,ElScrollbar:$l,ElTooltip:ri,ElIcon:vt},directives:{ClickOutside:Gu},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:_w},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:da.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Kn,default:nc},fitInputWidth:Boolean,suffixIcon:{type:Kn,default:tc},tagType:{...HM.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:ld,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[Kt,nr,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=We("select"),r=We("input"),{t:a}=bn(),i=ZSe(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:w,resetInputHeight:S,managePlaceholder:C,showClose:y,selectDisabled:x,iconComponent:T,iconReverse:A,showNewOption:M,emptyText:E,toggleLastOptionHitState:I,resetInputState:L,handleComposition:O,onOptionCreate:z,onOptionDestroy:F,handleMenuEnter:$,handleFocus:V,focus:P,blur:G,handleBlur:j,handleClearClick:J,handleClose:ne,handleKeydownEscape:ve,toggleMenu:le,selectOption:ce,getValueKey:ue,navigateOptions:Q,handleDeleteTooltipTag:_e,dropMenuVisible:Pe,reference:pe,input:Y,iOSInput:ie,tooltipRef:me,tagTooltipRef:De,tags:Be,selectWrapper:Oe,scrollbar:de,queryChange:we,groupQueryChange:Se,handleMouseEnter:Ie,handleMouseLeave:Ee,showTagList:Ge,collapseTagList:Ue,selectTagsStyle:oe}=JSe(e,i,t),{inputWidth:ke,selected:nt,inputLength:st,filteredOptionsCount:ut,visible:lt,selectedLabel:Me,hoverIndex:ye,query:ge,inputHovering:$e,currentPlaceholder:se,menuVisibleOnFocus:Qe,isOnComposition:wt,options:Vt,cachedOptions:Zn,optionsCount:rr,prefixWidth:$r}=Jr(i),Fn=R(()=>{const Dr=[n.b()],Vi=_(l);return Vi&&Dr.push(n.m(Vi)),e.disabled&&Dr.push(n.m("disabled")),Dr}),Re=R(()=>[n.e("tags"),n.is("disabled",_(x))]),rt=R(()=>[n.b("tags-wrapper"),{"has-prefix":_($r)&&_(nt).length}]),Ae=R(()=>[n.e("input"),n.is(_(l)),n.is("disabled",_(x))]),it=R(()=>[n.e("input"),n.is(_(l)),n.em("input","iOS")]),Wt=R(()=>[n.is("empty",!e.allowCreate&&!!_(ge)&&_(ut)===0)]),nn=R(()=>({maxWidth:`${_(ke)>123?_(ke)-123:_(ke)-75}px`})),Jn=R(()=>({marginLeft:`${_($r)}px`,flexGrow:1,width:`${_(st)/(_(ke)-32)}%`,maxWidth:`${_(ke)-42}px`}));tn(fy,xn({props:e,options:Vt,optionsArray:s,cachedOptions:Zn,optionsCount:rr,filteredOptionsCount:ut,hoverIndex:ye,handleOptionSelect:m,onOptionCreate:z,onOptionDestroy:F,selectWrapper:Oe,selected:nt,setSelected:w,queryChange:we,groupQueryChange:Se})),zt(()=>{i.cachedPlaceHolder=se.value=e.placeholder||(()=>a("el.select.placeholder")),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(se.value=""),$a(Oe,c),e.remote&&e.multiple&&S(),pt(()=>{const Dr=pe.value&&pe.value.$el;if(Dr&&(ke.value=Dr.getBoundingClientRect().width,t.slots.prefix)){const Vi=Dr.querySelector(`.${r.e("prefix")}`);$r.value=Math.max(Vi.getBoundingClientRect().width+11,30)}}),w()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(Kt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(Kt,"");const dr=R(()=>{var Dr,Vi;return(Vi=(Dr=me.value)==null?void 0:Dr.popperRef)==null?void 0:Vi.contentRef});return{isIOS:Q8,onOptionsRendered:Dr=>{o.value=Dr},prefixWidth:$r,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:v,deleteTag:p,handleDeleteTooltipTag:_e,deleteSelected:g,handleOptionSelect:m,scrollToOption:b,inputWidth:ke,selected:nt,inputLength:st,filteredOptionsCount:ut,visible:lt,selectedLabel:Me,hoverIndex:ye,query:ge,inputHovering:$e,currentPlaceholder:se,menuVisibleOnFocus:Qe,isOnComposition:wt,options:Vt,resetInputHeight:S,managePlaceholder:C,showClose:y,selectDisabled:x,iconComponent:T,iconReverse:A,showNewOption:M,emptyText:E,toggleLastOptionHitState:I,resetInputState:L,handleComposition:O,handleMenuEnter:$,handleFocus:V,focus:P,blur:G,handleBlur:j,handleClearClick:J,handleClose:ne,handleKeydownEscape:ve,toggleMenu:le,selectOption:ce,getValueKey:ue,navigateOptions:Q,dropMenuVisible:Pe,reference:pe,input:Y,iOSInput:ie,tooltipRef:me,popperPaneRef:dr,tags:Be,selectWrapper:Oe,scrollbar:de,wrapperKls:Fn,tagsKls:Re,tagWrapperKls:rt,inputKls:Ae,iOSInputKls:it,scrollbarKls:Wt,selectTagsStyle:oe,nsSelect:n,tagTextStyle:nn,inputStyle:Jn,handleMouseEnter:Ie,handleMouseLeave:Ee,showTagList:Ge,collapseTagList:Ue,tagTooltipRef:De}}}),tCe=["disabled","autocomplete","aria-label"],nCe=["disabled"],rCe={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function aCe(e,t,n,r,a,i){const o=Dt("el-tag"),s=Dt("el-tooltip"),l=Dt("el-icon"),u=Dt("el-input"),c=Dt("el-option"),f=Dt("el-options"),d=Dt("el-scrollbar"),h=Dt("el-select-menu"),v=Hg("click-outside");return Rt((N(),X("div",{ref:"selectWrapper",class:H(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]=xt((...p)=>e.toggleMenu&&e.toggleMenu(...p),["stop"]))},[re(s,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,onShow:e.handleMenuEnter},{default:fe(()=>[ee("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=p=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=p=>e.inputHovering=!1)},[e.multiple?(N(),X("div",{key:0,ref:"tags",tabindex:"-1",class:H(e.tagsKls),style:mt(e.selectTagsStyle),onClick:t[15]||(t[15]=(...p)=>e.focus&&e.focus(...p))},[e.collapseTags&&e.selected.length?(N(),Te(Mr,{key:0,onAfterLeave:e.resetInputHeight},{default:fe(()=>[ee("span",{class:H(e.tagWrapperKls)},[(N(!0),X(gt,null,un(e.showTagList,p=>(N(),Te(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:fe(()=>[ee("span",{class:H(e.nsSelect.e("tags-text")),style:mt(e.tagTextStyle)},qe(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),e.selected.length>e.maxCollapseTags?(N(),Te(o,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:fe(()=>[e.collapseTagsTooltip?(N(),Te(s,{key:0,ref:"tagTooltipRef",disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:fe(()=>[ee("span",{class:H(e.nsSelect.e("tags-text"))},"+ "+qe(e.selected.length-e.maxCollapseTags),3)]),content:fe(()=>[ee("div",{class:H(e.nsSelect.e("collapse-tags"))},[(N(!0),X(gt,null,un(e.collapseTagList,p=>(N(),X("div",{key:e.getValueKey(p),class:H(e.nsSelect.e("collapse-tag"))},[re(o,{class:"in-tooltip",closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,hit:p.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>e.handleDeleteTooltipTag(g,p)},{default:fe(()=>[ee("span",{class:H(e.nsSelect.e("tags-text")),style:mt({maxWidth:e.inputWidth-75+"px"})},qe(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(N(),X("span",{key:1,class:H(e.nsSelect.e("tags-text"))},"+ "+qe(e.selected.length-e.maxCollapseTags),3))]),_:1},8,["size","type"])):be("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):be("v-if",!0),e.collapseTags?be("v-if",!0):(N(),Te(Mr,{key:1,onAfterLeave:e.resetInputHeight},{default:fe(()=>[ee("span",{class:H(e.tagWrapperKls),style:mt(e.prefixWidth&&e.selected.length?{marginLeft:`${e.prefixWidth}px`}:"")},[(N(!0),X(gt,null,un(e.selected,p=>(N(),Te(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:fe(()=>[ee("span",{class:H(e.nsSelect.e("tags-text")),style:mt({maxWidth:e.inputWidth-75+"px"})},qe(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),e.filterable&&!e.selectDisabled?Rt((N(),X("input",{key:2,ref:"input","onUpdate:modelValue":t[0]||(t[0]=p=>e.query=p),type:"text",class:H(e.inputKls),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:mt(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]=yn(xt(p=>e.navigateOptions("next"),["prevent"]),["down"])),t[6]||(t[6]=yn(xt(p=>e.navigateOptions("prev"),["prevent"]),["up"])),t[7]||(t[7]=yn((...p)=>e.handleKeydownEscape&&e.handleKeydownEscape(...p),["esc"])),t[8]||(t[8]=yn(xt((...p)=>e.selectOption&&e.selectOption(...p),["stop","prevent"]),["enter"])),t[9]||(t[9]=yn((...p)=>e.deletePrevTag&&e.deletePrevTag(...p),["delete"])),t[10]||(t[10]=yn(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,tCe)),[[GE,e.query]]):be("v-if",!0)],6)):be("v-if",!0),be(" fix: https://github.com/element-plus/element-plus/issues/11415 "),e.isIOS&&!e.multiple&&e.filterable&&e.readonly?(N(),X("input",{key:1,ref:"iOSInput",class:H(e.iOSInputKls),disabled:e.selectDisabled,type:"text"},null,10,nCe)):be("v-if",!0),re(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=p=>e.selectedLabel=p),type:"text",placeholder:typeof e.currentPlaceholder=="function"?e.currentPlaceholder():e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:H([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]=yn(xt(p=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=yn(xt(p=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),yn(xt(e.selectOption,["stop","prevent"]),["enter"]),yn(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=yn(p=>e.visible=!1,["tab"]))]},bl({suffix:fe(()=>[e.iconComponent&&!e.showClose?(N(),Te(l,{key:0,class:H([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:fe(()=>[(N(),Te(Xt(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),e.showClose&&e.clearIcon?(N(),Te(l,{key:1,class:H([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:fe(()=>[(N(),Te(Xt(e.clearIcon)))]),_:1},8,["class","onClick"])):be("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:fe(()=>[ee("div",rCe,[Ve(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:fe(()=>[re(h,null,{default:fe(()=>[Rt(re(d,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:H(e.scrollbarKls)},{default:fe(()=>[e.showNewOption?(N(),Te(c,{key:0,value:e.query,created:!0},null,8,["value"])):be("v-if",!0),re(f,{onUpdateOptions:e.onOptionsRendered},{default:fe(()=>[Ve(e.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[Sn,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(N(),X(gt,{key:0},[e.$slots.empty?Ve(e.$slots,"empty",{key:0}):(N(),X("p",{key:1,class:H(e.nsSelect.be("dropdown","empty"))},qe(e.emptyText),3))],64)):be("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[v,e.handleClose,e.popperPaneRef]])}var iCe=Xe(eCe,[["render",aCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const oCe=te({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=We("select"),n=U(!0),r=Nt(),a=U([]);tn(DW,xn({...Jr(e)}));const i=ct(fy);zt(()=>{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}=In(i);return ze(s,()=>{n.value=a.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function sCe(e,t,n,r,a,i){return Rt((N(),X("ul",{class:H(e.ns.be("group","wrap"))},[ee("li",{class:H(e.ns.be("group","title"))},qe(e.label),3),ee("li",null,[ee("ul",{class:H(e.ns.b("group"))},[Ve(e.$slots,"default")],2)])],2)),[[Sn,e.visible]])}var LW=Xe(oCe,[["render",sCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Kf=Ut(iCe,{Option:ZM,OptionGroup:LW}),B1=br(ZM),lCe=br(LW),JM=()=>ct(IW,{}),uCe=Je({pageSize:{type:Number,required:!0},pageSizes:{type:Ce(Array),default:()=>ur([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Gs}}),cCe=te({name:"ElPaginationSizes"}),fCe=te({...cCe,props:uCe,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=bn(),a=We("pagination"),i=JM(),o=U(n.pageSize);ze(()=>n.pageSizes,(u,c)=>{if(!yi(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),ze(()=>n.pageSize,u=>{o.value=u});const s=R(()=>n.pageSizes);function l(u){var c;u!==o.value&&(o.value=u,(c=i.handleSizeChange)==null||c.call(i,Number(u)))}return(u,c)=>(N(),X("span",{class:H(_(a).e("sizes"))},[re(_(Kf),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:fe(()=>[(N(!0),X(gt,null,un(_(s),f=>(N(),Te(_(B1),{key:f,value:f,label:f+_(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var dCe=Xe(fCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const hCe=Je({size:{type:String,values:Gs}}),vCe=["disabled"],pCe=te({name:"ElPaginationJumper"}),gCe=te({...pCe,props:hCe,setup(e){const{t}=bn(),n=We("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:o}=JM(),s=U(),l=R(()=>{var f;return(f=s.value)!=null?f:i==null?void 0:i.value});function u(f){s.value=f?+f:""}function c(f){f=Math.trunc(+f),o==null||o(f),s.value=void 0}return(f,d)=>(N(),X("span",{class:H(_(n).e("jump")),disabled:_(a)},[ee("span",{class:H([_(n).e("goto")])},qe(_(t)("el.pagination.goto")),3),re(_(Ra),{size:f.size,class:H([_(n).e("editor"),_(n).is("in-pagination")]),min:1,max:_(r),disabled:_(a),"model-value":_(l),"validate-event":!1,label:_(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),ee("span",{class:H([_(n).e("classifier")])},qe(_(t)("el.pagination.pageClassifier")),3)],10,vCe))}});var mCe=Xe(gCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const yCe=Je({total:{type:Number,default:1e3}}),bCe=["disabled"],_Ce=te({name:"ElPaginationTotal"}),wCe=te({..._Ce,props:yCe,setup(e){const{t}=bn(),n=We("pagination"),{disabled:r}=JM();return(a,i)=>(N(),X("span",{class:H(_(n).e("total")),disabled:_(r)},qe(_(t)("el.pagination.total",{total:a.total})),11,bCe))}});var SCe=Xe(wCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const CCe=Je({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),xCe=["onKeyup"],TCe=["aria-current","aria-label","tabindex"],kCe=["tabindex","aria-label"],ACe=["aria-current","aria-label","tabindex"],ECe=["tabindex","aria-label"],MCe=["aria-current","aria-label","tabindex"],ICe=te({name:"ElPaginationPager"}),DCe=te({...ICe,props:CCe,emits:["change"],setup(e,{emit:t}){const n=e,r=We("pager"),a=We("icon"),{t:i}=bn(),o=U(!1),s=U(!1),l=U(!1),u=U(!1),c=U(!1),f=U(!1),d=R(()=>{const S=n.pagerCount,C=(S-1)/2,y=Number(n.currentPage),x=Number(n.pageCount);let T=!1,A=!1;x>S&&(y>S-C&&(T=!0),y<x-C&&(A=!0));const M=[];if(T&&!A){const E=x-(S-2);for(let I=E;I<x;I++)M.push(I)}else if(!T&&A)for(let E=2;E<S;E++)M.push(E);else if(T&&A){const E=Math.floor(S/2)-1;for(let I=y-E;I<=y+E;I++)M.push(I)}else for(let E=2;E<x;E++)M.push(E);return M}),h=R(()=>["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)]),v=R(()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)]),p=R(()=>n.disabled?-1:0);Oi(()=>{const S=(n.pagerCount-1)/2;o.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-S&&(o.value=!0),n.currentPage<n.pageCount-S&&(s.value=!0))});function g(S=!1){n.disabled||(S?l.value=!0:u.value=!0)}function m(S=!1){S?c.value=!0:f.value=!0}function b(S){const C=S.target;if(C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("number")){const y=Number(C.textContent);y!==n.currentPage&&t("change",y)}else C.tagName.toLowerCase()==="li"&&Array.from(C.classList).includes("more")&&w(S)}function w(S){const C=S.target;if(C.tagName.toLowerCase()==="ul"||n.disabled)return;let y=Number(C.textContent);const x=n.pageCount,T=n.currentPage,A=n.pagerCount-2;C.className.includes("more")&&(C.className.includes("quickprev")?y=T-A:C.className.includes("quicknext")&&(y=T+A)),Number.isNaN(+y)||(y<1&&(y=1),y>x&&(y=x)),y!==T&&t("change",y)}return(S,C)=>(N(),X("ul",{class:H(_(r).b()),onClick:w,onKeyup:yn(b,["enter"])},[S.pageCount>0?(N(),X("li",{key:0,class:H([[_(r).is("active",S.currentPage===1),_(r).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===1,"aria-label":_(i)("el.pagination.currentPage",{pager:1}),tabindex:_(p)}," 1 ",10,TCe)):be("v-if",!0),o.value?(N(),X("li",{key:1,class:H(_(h)),tabindex:_(p),"aria-label":_(i)("el.pagination.prevPages",{pager:S.pagerCount-2}),onMouseenter:C[0]||(C[0]=y=>g(!0)),onMouseleave:C[1]||(C[1]=y=>l.value=!1),onFocus:C[2]||(C[2]=y=>m(!0)),onBlur:C[3]||(C[3]=y=>c.value=!1)},[(l.value||c.value)&&!S.disabled?(N(),Te(_(Gh),{key:0})):(N(),Te(_(uO),{key:1}))],42,kCe)):be("v-if",!0),(N(!0),X(gt,null,un(_(d),y=>(N(),X("li",{key:y,class:H([[_(r).is("active",S.currentPage===y),_(r).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===y,"aria-label":_(i)("el.pagination.currentPage",{pager:y}),tabindex:_(p)},qe(y),11,ACe))),128)),s.value?(N(),X("li",{key:2,class:H(_(v)),tabindex:_(p),"aria-label":_(i)("el.pagination.nextPages",{pager:S.pagerCount-2}),onMouseenter:C[4]||(C[4]=y=>g()),onMouseleave:C[5]||(C[5]=y=>u.value=!1),onFocus:C[6]||(C[6]=y=>m()),onBlur:C[7]||(C[7]=y=>f.value=!1)},[(u.value||f.value)&&!S.disabled?(N(),Te(_(Uh),{key:0})):(N(),Te(_(uO),{key:1}))],42,ECe)):be("v-if",!0),S.pageCount>1?(N(),X("li",{key:3,class:H([[_(r).is("active",S.currentPage===S.pageCount),_(r).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===S.pageCount,"aria-label":_(i)("el.pagination.currentPage",{pager:S.pageCount}),tabindex:_(p)},qe(S.pageCount),11,MCe)):be("v-if",!0)],42,xCe))}});var LCe=Xe(DCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Ha=e=>typeof e!="number",PCe=Je({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>kt(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:Ce(Array),default:()=>ur([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Kn,default:()=>Vu},nextText:{type:String,default:""},nextIcon:{type:Kn,default:()=>Za},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),RCe={"update:current-page":e=>kt(e),"update:page-size":e=>kt(e),"size-change":e=>kt(e),"current-change":e=>kt(e),"prev-click":e=>kt(e),"next-click":e=>kt(e)},_N="ElPagination";var OCe=te({name:_N,props:PCe,emits:RCe,setup(e,{emit:t,slots:n}){const{t:r}=bn(),a=We("pagination"),i=Nt().vnode.props||{},o="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,s="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,l=R(()=>{if(Ha(e.total)&&Ha(e.pageCount)||!Ha(e.currentPage)&&!o)return!1;if(e.layout.includes("sizes")){if(Ha(e.pageCount)){if(!Ha(e.total)&&!Ha(e.pageSize)&&!s)return!1}else if(!s)return!1}return!0}),u=U(Ha(e.defaultPageSize)?10:e.defaultPageSize),c=U(Ha(e.defaultCurrentPage)?1:e.defaultCurrentPage),f=R({get(){return Ha(e.pageSize)?u.value:e.pageSize},set(w){Ha(e.pageSize)&&(u.value=w),s&&(t("update:page-size",w),t("size-change",w))}}),d=R(()=>{let w=0;return Ha(e.pageCount)?Ha(e.total)||(w=Math.max(1,Math.ceil(e.total/f.value))):w=e.pageCount,w}),h=R({get(){return Ha(e.currentPage)?c.value:e.currentPage},set(w){let S=w;w<1?S=1:w>d.value&&(S=d.value),Ha(e.currentPage)&&(c.value=S),o&&(t("update:current-page",S),t("current-change",S))}});ze(d,w=>{h.value>w&&(h.value=w)});function v(w){h.value=w}function p(w){f.value=w;const S=d.value;h.value>S&&(h.value=S)}function g(){e.disabled||(h.value-=1,t("prev-click",h.value))}function m(){e.disabled||(h.value+=1,t("next-click",h.value))}function b(w,S){w&&(w.props||(w.props={}),w.props.class=[w.props.class,S].join(" "))}return tn(IW,{pageCount:d,disabled:R(()=>e.disabled),currentPage:h,changeEvent:v,handleSizeChange:p}),()=>{var w,S;if(!l.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&d.value<=1)return null;const C=[],y=[],x=bt("div",{class:a.e("rightwrapper")},y),T={prev:bt(BSe,{disabled:e.disabled,currentPage:h.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:g}),jumper:bt(mCe,{size:e.small?"small":"default"}),pager:bt(LCe,{currentPage:h.value,pageCount:d.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:bt(GSe,{disabled:e.disabled,currentPage:h.value,pageCount:d.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:m}),sizes:bt(dCe,{pageSize:f.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:e.small?"small":"default"}),slot:(S=(w=n==null?void 0:n.default)==null?void 0:w.call(n))!=null?S:null,total:bt(SCe,{total:Ha(e.total)?0:e.total})},A=e.layout.split(",").map(E=>E.trim());let M=!1;return A.forEach(E=>{if(E==="->"){M=!0;return}M?y.push(T[E]):C.push(T[E])}),b(C[0],a.is("first")),b(C[C.length-1],a.is("last")),M&&y.length>0&&(b(y[0],a.is("first")),b(y[y.length-1],a.is("last")),C.push(x)),bt("div",{class:[a.b(),a.is("background",e.background),{[a.m("small")]:e.small}]},C)}}});const NCe=Ut(OCe),$Ce=Je({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:PT,default:"primary"},cancelButtonType:{type:String,values:PT,default:"text"},icon:{type:Kn,default:()=>Sue},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:da.teleported,persistent:da.persistent,width:{type:[String,Number],default:150}}),BCe={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},FCe=te({name:"ElPopconfirm"}),VCe=te({...FCe,props:$Ce,emits:BCe,setup(e,{emit:t}){const n=e,{t:r}=bn(),a=We("popconfirm"),i=U(),o=()=>{var d,h;(h=(d=i.value)==null?void 0:d.onClose)==null||h.call(d)},s=R(()=>({width:kr(n.width)})),l=d=>{t("confirm",d),o()},u=d=>{t("cancel",d),o()},c=R(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),f=R(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(d,h)=>(N(),Te(_(ri),qt({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},d.$attrs,{"popper-class":`${_(a).namespace.value}-popover`,"popper-style":_(s),teleported:d.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":d.hideAfter,persistent:d.persistent}),{content:fe(()=>[ee("div",{class:H(_(a).b())},[ee("div",{class:H(_(a).e("main"))},[!d.hideIcon&&d.icon?(N(),Te(_(vt),{key:0,class:H(_(a).e("icon")),style:mt({color:d.iconColor})},{default:fe(()=>[(N(),Te(Xt(d.icon)))]),_:1},8,["class","style"])):be("v-if",!0),Cn(" "+qe(d.title),1)],2),ee("div",{class:H(_(a).e("action"))},[re(_(_a),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:fe(()=>[Cn(qe(_(f)),1)]),_:1},8,["type","text"]),re(_(_a),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:l},{default:fe(()=>[Cn(qe(_(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:fe(()=>[d.$slots.reference?Ve(d.$slots,"reference",{key:0}):be("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var zCe=Xe(VCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const HCe=Ut(zCe),WCe=Je({trigger:im.trigger,placement:Gb.placement,disabled:im.disabled,visible:da.visible,transition:da.transition,popperOptions:Gb.popperOptions,tabindex:Gb.tabindex,content:da.content,popperStyle:da.popperStyle,popperClass:da.popperClass,enterable:{...da.enterable,default:!0},effect:{...da.effect,default:"light"},teleported:da.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}}),GCe={"update:visible":e=>Gr(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},UCe="onUpdate:visible",KCe=te({name:"ElPopover"}),jCe=te({...KCe,props:WCe,emits:GCe,setup(e,{expose:t,emit:n}){const r=e,a=R(()=>r[UCe]),i=We("popover"),o=U(),s=R(()=>{var g;return(g=_(o))==null?void 0:g.popperRef}),l=R(()=>[{width:kr(r.width)},r.popperStyle]),u=R(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),c=R(()=>r.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{n("before-enter")},h=()=>{n("before-leave")},v=()=>{n("after-enter")},p=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:s,hide:f}),(g,m)=>(N(),Te(_(ri),qt({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":_(u),"popper-style":_(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":_(c),"onUpdate:visible":_(a),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:fe(()=>[g.title?(N(),X("div",{key:0,class:H(_(i).e("title")),role:"title"},qe(g.title),3)):be("v-if",!0),Ve(g.$slots,"default",{},()=>[Cn(qe(g.content),1)])]),default:fe(()=>[g.$slots.reference?Ve(g.$slots,"reference",{key:0}):be("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 YCe=Xe(jCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const wN=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var qCe={mounted(e,t){wN(e,t)},updated(e,t){wN(e,t)}};const XCe="popover",PW=Yue(qCe,XCe),ZCe=Ut(YCe,{directive:PW}),JCe=Je({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Ce(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Ce([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Ce(Function),default:e=>`${e}%`}}),QCe=["aria-valuenow"],exe={viewBox:"0 0 100 100"},txe=["d","stroke","stroke-linecap","stroke-width"],nxe=["d","stroke","opacity","stroke-linecap","stroke-width"],rxe={key:0},axe=te({name:"ElProgress"}),ixe=te({...axe,props:JCe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=We("progress"),a=R(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:b(t.percentage)})),i=R(()=>(t.strokeWidth/t.width*100).toFixed(1)),o=R(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=R(()=>{const w=o.value,S=t.type==="dashboard";return`
  54. M 50 50
  55. m 0 ${S?"":"-"}${w}
  56. a ${w} ${w} 0 1 1 0 ${S?"-":""}${w*2}
  57. a ${w} ${w} 0 1 1 0 ${S?"":"-"}${w*2}
  58. `}),l=R(()=>2*Math.PI*o.value),u=R(()=>t.type==="dashboard"?.75:1),c=R(()=>`${-1*l.value*(1-u.value)/2}px`),f=R(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=R(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=R(()=>{let w;return t.color?w=b(t.percentage):w=n[t.status]||n.default,w}),v=R(()=>t.status==="warning"?yw:t.type==="line"?t.status==="success"?dM:nc:t.status==="success"?oy:Jo),p=R(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=R(()=>t.format(t.percentage));function m(w){const S=100/w.length;return w.map((y,x)=>Mt(y)?{color:y,percentage:(x+1)*S}:y).sort((y,x)=>y.percentage-x.percentage)}const b=w=>{var S;const{color:C}=t;if(At(C))return C(w);if(Mt(C))return C;{const y=m(C);for(const x of y)if(x.percentage>w)return x.color;return(S=y[y.length-1])==null?void 0:S.color}};return(w,S)=>(N(),X("div",{class:H([_(r).b(),_(r).m(w.type),_(r).is(w.status),{[_(r).m("without-text")]:!w.showText,[_(r).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(N(),X("div",{key:0,class:H(_(r).b("bar"))},[ee("div",{class:H(_(r).be("bar","outer")),style:mt({height:`${w.strokeWidth}px`})},[ee("div",{class:H([_(r).be("bar","inner"),{[_(r).bem("bar","inner","indeterminate")]:w.indeterminate},{[_(r).bem("bar","inner","striped")]:w.striped},{[_(r).bem("bar","inner","striped-flow")]:w.stripedFlow}]),style:mt(_(a))},[(w.showText||w.$slots.default)&&w.textInside?(N(),X("div",{key:0,class:H(_(r).be("bar","innerText"))},[Ve(w.$slots,"default",{percentage:w.percentage},()=>[ee("span",null,qe(_(g)),1)])],2)):be("v-if",!0)],6)],6)],2)):(N(),X("div",{key:1,class:H(_(r).b("circle")),style:mt({height:`${w.width}px`,width:`${w.width}px`})},[(N(),X("svg",exe,[ee("path",{class:H(_(r).be("circle","track")),d:_(s),stroke:`var(${_(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":w.strokeLinecap,"stroke-width":_(i),fill:"none",style:mt(_(f))},null,14,txe),ee("path",{class:H(_(r).be("circle","path")),d:_(s),stroke:_(h),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":_(i),style:mt(_(d))},null,14,nxe)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(N(),X("div",{key:2,class:H(_(r).e("text")),style:mt({fontSize:`${_(p)}px`})},[Ve(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(N(),Te(_(vt),{key:1},{default:fe(()=>[(N(),Te(Xt(_(v))))]),_:1})):(N(),X("span",rxe,qe(_(g)),1))])],6)):be("v-if",!0)],10,QCe))}});var oxe=Xe(ixe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const RW=Ut(oxe),sxe=Je({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:Ce([Array,Object]),default:()=>ur(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:Ce([Array,Object]),default:()=>[o0,o0,o0]},voidIcon:{type:Kn,default:()=>$ue},disabledVoidIcon:{type:Kn,default:()=>o0},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:Ce(Array),default:()=>ur(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Sa,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),lxe={[nr]:e=>kt(e),[Kt]:e=>kt(e)},uxe=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],cxe=["onMousemove","onClick"],fxe=te({name:"ElRate"}),dxe=te({...fxe,props:sxe,emits:lxe,setup(e,{expose:t,emit:n}){const r=e;function a(F,$){const V=j=>Qt(j),P=Object.keys($).map(j=>+j).filter(j=>{const J=$[j];return(V(J)?J.excluded:!1)?F<j:F<=j}).sort((j,J)=>j-J),G=$[P[0]];return V(G)&&G.value||G}const i=ct(ud,void 0),o=ct(Vs,void 0),s=jr(),l=We("rate"),{inputId:u,isLabeledByFormItem:c}=oc(r,{formItemContext:o}),f=U(r.modelValue),d=U(-1),h=U(!0),v=R(()=>[l.b(),l.m(s.value)]),p=R(()=>r.disabled||(i==null?void 0:i.disabled)),g=R(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":S.value})),m=R(()=>{let F="";return r.showScore?F=r.scoreTemplate.replace(/\{\s*value\s*\}/,p.value?`${r.modelValue}`:`${f.value}`):r.showText&&(F=r.texts[Math.ceil(f.value)-1]),F}),b=R(()=>r.modelValue*100-Math.floor(r.modelValue)*100),w=R(()=>ft(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),S=R(()=>{const F=a(f.value,w.value);return Qt(F)?"":F}),C=R(()=>{let F="";return p.value?F=`${b.value}%`:r.allowHalf&&(F="50%"),{color:S.value,width:F}}),y=R(()=>{let F=ft(r.icons)?[...r.icons]:{...r.icons};return F=vl(F),ft(F)?{[r.lowThreshold]:F[0],[r.highThreshold]:{value:F[1],excluded:!0},[r.max]:F[2]}:F}),x=R(()=>a(r.modelValue,y.value)),T=R(()=>p.value?Mt(r.disabledVoidIcon)?r.disabledVoidIcon:vl(r.disabledVoidIcon):Mt(r.voidIcon)?r.voidIcon:vl(r.voidIcon)),A=R(()=>a(f.value,y.value));function M(F){const $=p.value&&b.value>0&&F-1<r.modelValue&&F>r.modelValue,V=r.allowHalf&&h.value&&F-.5<=f.value&&F>f.value;return $||V}function E(F){r.clearable&&F===r.modelValue&&(F=0),n(Kt,F),r.modelValue!==F&&n("change",F)}function I(F){p.value||(r.allowHalf&&h.value?E(f.value):E(F))}function L(F){if(p.value)return;let $=f.value;const V=F.code;return V===_t.up||V===_t.right?(r.allowHalf?$+=.5:$+=1,F.stopPropagation(),F.preventDefault()):(V===_t.left||V===_t.down)&&(r.allowHalf?$-=.5:$-=1,F.stopPropagation(),F.preventDefault()),$=$<0?0:$,$=$>r.max?r.max:$,n(Kt,$),n("change",$),$}function O(F,$){if(!p.value){if(r.allowHalf&&$){let V=$.target;jo(V,l.e("item"))&&(V=V.querySelector(`.${l.e("icon")}`)),(V.clientWidth===0||jo(V,l.e("decimal")))&&(V=V.parentNode),h.value=$.offsetX*2<=V.clientWidth,f.value=h.value?F-.5:F}else f.value=F;d.value=F}}function z(){p.value||(r.allowHalf&&(h.value=r.modelValue!==Math.floor(r.modelValue)),f.value=r.modelValue,d.value=-1)}return ze(()=>r.modelValue,F=>{f.value=F,h.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(Kt,0),t({setCurrentValue:O,resetCurrentValue:z}),(F,$)=>{var V;return N(),X("div",{id:_(u),class:H([_(v),_(l).is("disabled",_(p))]),role:"slider","aria-label":_(c)?void 0:F.label||"rating","aria-labelledby":_(c)?(V=_(o))==null?void 0:V.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":_(m)||void 0,"aria-valuemin":"0","aria-valuemax":F.max,tabindex:"0",style:mt(_(g)),onKeydown:L},[(N(!0),X(gt,null,un(F.max,(P,G)=>(N(),X("span",{key:G,class:H(_(l).e("item")),onMousemove:j=>O(P,j),onMouseleave:z,onClick:j=>I(P)},[re(_(vt),{class:H([_(l).e("icon"),{hover:d.value===P},_(l).is("active",P<=f.value)])},{default:fe(()=>[M(P)?be("v-if",!0):(N(),X(gt,{key:0},[Rt((N(),Te(Xt(_(A)),null,null,512)),[[Sn,P<=f.value]]),Rt((N(),Te(Xt(_(T)),null,null,512)),[[Sn,!(P<=f.value)]])],64)),M(P)?(N(),Te(_(vt),{key:1,style:mt(_(C)),class:H([_(l).e("icon"),_(l).e("decimal")])},{default:fe(()=>[(N(),Te(Xt(_(x))))]),_:1},8,["style","class"])):be("v-if",!0)]),_:2},1032,["class"])],42,cxe))),128)),F.showText||F.showScore?(N(),X("span",{key:0,class:H(_(l).e("text")),style:mt({color:F.textColor})},qe(_(m)),7)):be("v-if",!0)],46,uxe)}}});var hxe=Xe(dxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const vxe=Ut(hxe),ch={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},SN={[ch.success]:Yle,[ch.warning]:yw,[ch.error]:hM,[ch.info]:vM},pxe=Je({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),gxe=te({name:"ElResult"}),mxe=te({...gxe,props:pxe,setup(e){const t=e,n=We("result"),r=R(()=>{const a=t.icon,i=a&&ch[a]?ch[a]:"icon-info",o=SN[i]||SN["icon-info"];return{class:i,component:o}});return(a,i)=>(N(),X("div",{class:H(_(n).b())},[ee("div",{class:H(_(n).e("icon"))},[Ve(a.$slots,"icon",{},()=>[_(r).component?(N(),Te(Xt(_(r).component),{key:0,class:H(_(r).class)},null,8,["class"])):be("v-if",!0)])],2),a.title||a.$slots.title?(N(),X("div",{key:0,class:H(_(n).e("title"))},[Ve(a.$slots,"title",{},()=>[ee("p",null,qe(a.title),1)])],2)):be("v-if",!0),a.subTitle||a.$slots["sub-title"]?(N(),X("div",{key:1,class:H(_(n).e("subtitle"))},[Ve(a.$slots,"sub-title",{},()=>[ee("p",null,qe(a.subTitle),1)])],2)):be("v-if",!0),a.$slots.extra?(N(),X("div",{key:2,class:H(_(n).e("extra"))},[Ve(a.$slots,"extra")],2)):be("v-if",!0)],2))}});var yxe=Xe(mxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const bxe=Ut(yxe);var CN=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function _xe(e,t){return!!(e===t||CN(e)&&CN(t))}function wxe(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!_xe(e[n],t[n]))return!1;return!0}function Sxe(e,t){t===void 0&&(t=wxe);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 OW=()=>{const t=Nt().proxy.$props;return R(()=>{const n=(r,a,i)=>({});return t.perfMode?vw(n):Sxe(n)})},ek=50,F1="itemRendered",V1="scroll",fh="forward",z1="backward",io="auto",Rw="smart",lm="start",Es="center",um="end",Qh="horizontal",QM="vertical",Cxe="ltr",Th="rtl",cm="negative",eI="positive-ascending",tI="positive-descending",xxe={[Qh]:"left",[QM]:"top"},Txe=20,kxe={[Qh]:"deltaX",[QM]:"deltaY"},Axe=({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=>{Sw(a);const u=l[kxe[n.value]];o(i)&&o(i+u)||(i+=u,nz()||l.preventDefault(),a=Kh(()=>{r(i),i=0}))}}},tk=os({type:Ce([Number,Function]),required:!0}),nk=os({type:Number}),rk=os({type:Number,default:2}),Exe=os({type:String,values:["ltr","rtl"],default:"ltr"}),ak=os({type:Number,default:0}),H1=os({type:Number,required:!0}),NW=os({type:String,values:["horizontal","vertical"],default:QM}),$W=Je({className:{type:String,default:""},containerElement:{type:Ce([String,Object]),default:"div"},data:{type:Ce(Array),default:()=>ur([])},direction:Exe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:Ce([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),BW=Je({cache:rk,estimatedItemSize:nk,layout:NW,initScrollOffset:ak,total:H1,itemSize:tk,...$W}),ik={type:Number,default:6},FW={type:Number,default:0},VW={type:Number,default:2},Pf=Je({columnCache:rk,columnWidth:tk,estimatedColumnWidth:nk,estimatedRowHeight:nk,initScrollLeft:ak,initScrollTop:ak,itemKey:{type:Ce(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:rk,rowHeight:tk,totalColumn:H1,totalRow:H1,hScrollbarSize:ik,vScrollbarSize:ik,scrollbarStartGap:FW,scrollbarEndGap:VW,role:String,...$W}),zW=Je({alwaysOn:Boolean,class:String,layout:NW,total:H1,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:ik,startGap:FW,endGap:VW,visible:Boolean}),yf=(e,t)=>e<t?fh:z1,fm=e=>e===Cxe||e===Th||e===Qh,xN=e=>e===Th;let Md=null;function W1(e=!1){if(Md===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?Md=tI:(t.scrollLeft=1,t.scrollLeft===0?Md=cm:Md=eI),document.body.removeChild(t),Md}return Md}function Mxe({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 ok=te({name:"ElVirtualScrollBar",props:zW,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=R(()=>e.startGap+e.endGap),r=We("virtual-scrollbar"),a=We("scrollbar"),i=U(),o=U();let s=null,l=null;const u=xn({isDragging:!1,traveled:0}),c=R(()=>FH[e.layout]),f=R(()=>e.clientSize-_(n)),d=R(()=>({position:"absolute",width:`${Qh===e.layout?f.value:e.scrollbarSize}px`,height:`${Qh===e.layout?e.scrollbarSize:f.value}px`,[xxe[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=R(()=>{const y=e.ratio,x=e.clientSize;if(y>=100)return Number.POSITIVE_INFINITY;if(y>=50)return y*x/100;const T=x/3;return Math.floor(Math.min(Math.max(y*x,Txe),T))}),v=R(()=>{if(!Number.isFinite(h.value))return{display:"none"};const y=`${h.value}px`;return Mxe({bar:c.value,size:y,move:u.traveled},e.layout)}),p=R(()=>Math.floor(e.clientSize-h.value-_(n))),g=()=>{window.addEventListener("mousemove",S),window.addEventListener("mouseup",w);const y=_(o);y&&(l=document.onselectstart,document.onselectstart=()=>!1,y.addEventListener("touchmove",S),y.addEventListener("touchend",w))},m=()=>{window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",w),document.onselectstart=l,l=null;const y=_(o);y&&(y.removeEventListener("touchmove",S),y.removeEventListener("touchend",w))},b=y=>{y.stopImmediatePropagation(),!(y.ctrlKey||[1,2].includes(y.button))&&(u.isDragging=!0,u[c.value.axis]=y.currentTarget[c.value.offset]-(y[c.value.client]-y.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),g())},w=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),m()},S=y=>{const{isDragging:x}=u;if(!x||!o.value||!i.value)return;const T=u[c.value.axis];if(!T)return;Sw(s);const A=(i.value.getBoundingClientRect()[c.value.direction]-y[c.value.client])*-1,M=o.value[c.value.offset]-T,E=A-M;s=Kh(()=>{u.traveled=Math.max(e.startGap,Math.min(E,p.value)),t("scroll",E,p.value)})},C=y=>{const x=Math.abs(y.target.getBoundingClientRect()[c.value.direction]-y[c.value.client]),T=o.value[c.value.offset]/2,A=x-T;u.traveled=Math.max(0,Math.min(A,p.value)),t("scroll",A,p.value)};return ze(()=>e.scrollFrom,y=>{u.isDragging||(u.traveled=Math.ceil(y*p.value))}),sr(()=>{m()}),()=>bt("div",{role:"presentation",ref:i,class:[r.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:xt(C,["stop","prevent"]),onTouchstartPrevent:b},bt("div",{ref:o,class:a.e("thumb"),style:v.value,onMousedown:b},[]))}}),HW=({name:e,getOffset:t,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>te({name:e??"ElVirtualList",props:BW,emits:[F1,V1],setup(c,{emit:f,expose:d}){u(c);const h=Nt(),v=We("vl"),p=U(s(c,h)),g=OW(),m=U(),b=U(),w=U(),S=U({isScrolling:!1,scrollDir:"forward",scrollOffset:kt(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),C=R(()=>{const{total:ne,cache:ve}=c,{isScrolling:le,scrollDir:ce,scrollOffset:ue}=_(S);if(ne===0)return[0,0,0,0];const Q=i(c,ue,_(p)),_e=o(c,Q,ue,_(p)),Pe=!le||ce===z1?Math.max(1,ve):1,pe=!le||ce===fh?Math.max(1,ve):1;return[Math.max(0,Q-Pe),Math.max(0,Math.min(ne-1,_e+pe)),Q,_e]}),y=R(()=>a(c,_(p))),x=R(()=>fm(c.layout)),T=R(()=>[{position:"relative",[`overflow-${x.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:kt(c.height)?`${c.height}px`:c.height,width:kt(c.width)?`${c.width}px`:c.width},c.style]),A=R(()=>{const ne=_(y),ve=_(x);return{height:ve?"100%":`${ne}px`,pointerEvents:_(S).isScrolling?"none":void 0,width:ve?`${ne}px`:"100%"}}),M=R(()=>x.value?c.width:c.height),{onWheel:E}=Axe({atStartEdge:R(()=>S.value.scrollOffset<=0),atEndEdge:R(()=>S.value.scrollOffset>=y.value),layout:R(()=>c.layout)},ne=>{var ve,le;(le=(ve=w.value).onMouseUp)==null||le.call(ve),$(Math.min(S.value.scrollOffset+ne,y.value-M.value))}),I=()=>{const{total:ne}=c;if(ne>0){const[ue,Q,_e,Pe]=_(C);f(F1,ue,Q,_e,Pe)}const{scrollDir:ve,scrollOffset:le,updateRequested:ce}=_(S);f(V1,ve,le,ce)},L=ne=>{const{clientHeight:ve,scrollHeight:le,scrollTop:ce}=ne.currentTarget,ue=_(S);if(ue.scrollOffset===ce)return;const Q=Math.max(0,Math.min(ce,le-ve));S.value={...ue,isScrolling:!0,scrollDir:yf(ue.scrollOffset,Q),scrollOffset:Q,updateRequested:!1},pt(G)},O=ne=>{const{clientWidth:ve,scrollLeft:le,scrollWidth:ce}=ne.currentTarget,ue=_(S);if(ue.scrollOffset===le)return;const{direction:Q}=c;let _e=le;if(Q===Th)switch(W1()){case cm:{_e=-le;break}case tI:{_e=ce-ve-le;break}}_e=Math.max(0,Math.min(_e,ce-ve)),S.value={...ue,isScrolling:!0,scrollDir:yf(ue.scrollOffset,_e),scrollOffset:_e,updateRequested:!1},pt(G)},z=ne=>{_(x)?O(ne):L(ne),I()},F=(ne,ve)=>{const le=(y.value-M.value)/ve*ne;$(Math.min(y.value-M.value,le))},$=ne=>{ne=Math.max(ne,0),ne!==_(S).scrollOffset&&(S.value={..._(S),scrollOffset:ne,scrollDir:yf(_(S).scrollOffset,ne),updateRequested:!0},pt(G))},V=(ne,ve=io)=>{const{scrollOffset:le}=_(S);ne=Math.max(0,Math.min(ne,c.total-1)),$(t(c,ne,ve,le,_(p)))},P=ne=>{const{direction:ve,itemSize:le,layout:ce}=c,ue=g.value(l&&le,l&&ce,l&&ve);let Q;if(fn(ue,String(ne)))Q=ue[ne];else{const _e=r(c,ne,_(p)),Pe=n(c,ne,_(p)),pe=_(x),Y=ve===Th,ie=pe?_e:0;ue[ne]=Q={position:"absolute",left:Y?void 0:`${ie}px`,right:Y?`${ie}px`:void 0,top:pe?0:`${_e}px`,height:pe?"100%":`${Pe}px`,width:pe?`${Pe}px`:"100%"}}return Q},G=()=>{S.value.isScrolling=!1,pt(()=>{g.value(-1,null,null)})},j=()=>{const ne=m.value;ne&&(ne.scrollTop=0)};zt(()=>{if(!vn)return;const{initScrollOffset:ne}=c,ve=_(m);kt(ne)&&ve&&(_(x)?ve.scrollLeft=ne:ve.scrollTop=ne),I()}),Ll(()=>{const{direction:ne,layout:ve}=c,{scrollOffset:le,updateRequested:ce}=_(S),ue=_(m);if(ce&&ue)if(ve===Qh)if(ne===Th)switch(W1()){case cm:{ue.scrollLeft=-le;break}case eI:{ue.scrollLeft=le;break}default:{const{clientWidth:Q,scrollWidth:_e}=ue;ue.scrollLeft=_e-Q-le;break}}else ue.scrollLeft=le;else ue.scrollTop=le});const J={ns:v,clientSize:M,estimatedTotalSize:y,windowStyle:T,windowRef:m,innerRef:b,innerStyle:A,itemsToRender:C,scrollbarRef:w,states:S,getItemStyle:P,onScroll:z,onScrollbarScroll:F,onWheel:E,scrollTo:$,scrollToItem:V,resetScrollTop:j};return d({windowRef:m,innerRef:b,getItemStyleCache:g,scrollTo:$,scrollToItem:V,resetScrollTop:j,states:S}),J},render(c){var f;const{$slots:d,className:h,clientSize:v,containerElement:p,data:g,getItemStyle:m,innerElement:b,itemsToRender:w,innerStyle:S,layout:C,total:y,onScroll:x,onScrollbarScroll:T,onWheel:A,states:M,useIsScrolling:E,windowStyle:I,ns:L}=c,[O,z]=w,F=Xt(p),$=Xt(b),V=[];if(y>0)for(let J=O;J<=z;J++)V.push((f=d.default)==null?void 0:f.call(d,{data:g,key:J,index:J,isScrolling:E?M.isScrolling:void 0,style:m(J)}));const P=[bt($,{style:S,ref:"innerRef"},Mt($)?V:{default:()=>V})],G=bt(ok,{ref:"scrollbarRef",clientSize:v,layout:C,onScroll:T,ratio:v*100/this.estimatedTotalSize,scrollFrom:M.scrollOffset/(this.estimatedTotalSize-v),total:y}),j=bt(F,{class:[L.e("window"),h],style:I,onScroll:x,onWheel:A,ref:"windowRef",key:0},Mt(F)?[P]:{default:()=>[P]});return bt("div",{key:0,class:[L.e("wrapper"),M.scrollbarAlwaysOn?"always-on":""]},[j,G])}}),WW=HW({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=fm(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===Rw&&(s>=f-l&&s<=c+l?o=io:o=Es),o){case lm:return c;case um:return f;case Es:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d}case io: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=fm(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(){}}),dh=(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]},Ixe=(e,t,n)=>{const{items:r,lastVisitedIndex:a}=t;return(a>0?r[a].offset:0)>=n?GW(e,t,0,a,n):Dxe(e,t,Math.max(0,a),n)},GW=(e,t,n,r,a)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),o=dh(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)},Dxe=(e,t,n,r)=>{const{total:a}=e;let i=1;for(;n<a&&dh(e,n,t).offset<r;)n+=i,i*=2;return GW(e,t,Math.floor(n/2),Math.min(n,a-1),r)},TN=({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},Lxe=HW({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>dh(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:TN,getOffset:(e,t,n,r,a)=>{const{height:i,layout:o,width:s}=e,l=fm(o)?s:i,u=dh(e,t,a),c=TN(e,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(n===Rw&&(r>=d-l&&r<=f+l?n=io:n=Es),n){case lm:return f;case um:return d;case Es:return Math.round(d+(f-d)/2);case io:default:return r>=d&&r<=f?r:r<d?d:f}},getStartIndexForOffset:(e,t,n)=>Ixe(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:a,total:i,layout:o,width:s}=e,l=fm(o)?s:a,u=dh(e,t,r),c=n+l;let f=u.offset+u.size,d=t;for(;d<i-1&&f<c;)d++,f+=dh(e,d,r).size;return d},initCache({estimatedItemSize:e=ek},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})=>{}}),Pxe=({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=>{Sw(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=Kh(()=>{a(o,s),o=0,s=0}))}}},UW=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:i,getEstimatedTotalWidth:o,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:f,initCache:d,injectToInstance:h,validateProps:v})=>te({name:e??"ElVirtualList",props:Pf,emits:[F1,V1],setup(p,{emit:g,expose:m,slots:b}){const w=We("vl");v(p);const S=Nt(),C=U(d(p,S));h==null||h(S,C);const y=U(),x=U(),T=U(),A=U(null),M=U({isScrolling:!1,scrollLeft:kt(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:kt(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:fh,yAxisScrollDir:fh}),E=OW(),I=R(()=>Number.parseInt(`${p.height}`,10)),L=R(()=>Number.parseInt(`${p.width}`,10)),O=R(()=>{const{totalColumn:Oe,totalRow:de,columnCache:we}=p,{isScrolling:Se,xAxisScrollDir:Ie,scrollLeft:Ee}=_(M);if(Oe===0||de===0)return[0,0,0,0];const Ge=r(p,Ee,_(C)),Ue=a(p,Ge,Ee,_(C)),oe=!Se||Ie===z1?Math.max(1,we):1,ke=!Se||Ie===fh?Math.max(1,we):1;return[Math.max(0,Ge-oe),Math.max(0,Math.min(Oe-1,Ue+ke)),Ge,Ue]}),z=R(()=>{const{totalColumn:Oe,totalRow:de,rowCache:we}=p,{isScrolling:Se,yAxisScrollDir:Ie,scrollTop:Ee}=_(M);if(Oe===0||de===0)return[0,0,0,0];const Ge=c(p,Ee,_(C)),Ue=f(p,Ge,Ee,_(C)),oe=!Se||Ie===z1?Math.max(1,we):1,ke=!Se||Ie===fh?Math.max(1,we):1;return[Math.max(0,Ge-oe),Math.max(0,Math.min(de-1,Ue+ke)),Ge,Ue]}),F=R(()=>i(p,_(C))),$=R(()=>o(p,_(C))),V=R(()=>{var Oe;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:kt(p.height)?`${p.height}px`:p.height,width:kt(p.width)?`${p.width}px`:p.width},(Oe=p.style)!=null?Oe:{}]}),P=R(()=>{const Oe=`${_($)}px`;return{height:`${_(F)}px`,pointerEvents:_(M).isScrolling?"none":void 0,width:Oe}}),G=()=>{const{totalColumn:Oe,totalRow:de}=p;if(Oe>0&&de>0){const[Ue,oe,ke,nt]=_(O),[st,ut,lt,Me]=_(z);g(F1,{columnCacheStart:Ue,columnCacheEnd:oe,rowCacheStart:st,rowCacheEnd:ut,columnVisibleStart:ke,columnVisibleEnd:nt,rowVisibleStart:lt,rowVisibleEnd:Me})}const{scrollLeft:we,scrollTop:Se,updateRequested:Ie,xAxisScrollDir:Ee,yAxisScrollDir:Ge}=_(M);g(V1,{xAxisScrollDir:Ee,scrollLeft:we,yAxisScrollDir:Ge,scrollTop:Se,updateRequested:Ie})},j=Oe=>{const{clientHeight:de,clientWidth:we,scrollHeight:Se,scrollLeft:Ie,scrollTop:Ee,scrollWidth:Ge}=Oe.currentTarget,Ue=_(M);if(Ue.scrollTop===Ee&&Ue.scrollLeft===Ie)return;let oe=Ie;if(xN(p.direction))switch(W1()){case cm:oe=-Ie;break;case tI:oe=Ge-we-Ie;break}M.value={...Ue,isScrolling:!0,scrollLeft:oe,scrollTop:Math.max(0,Math.min(Ee,Se-de)),updateRequested:!0,xAxisScrollDir:yf(Ue.scrollLeft,oe),yAxisScrollDir:yf(Ue.scrollTop,Ee)},pt(()=>Q()),_e(),G()},J=(Oe,de)=>{const we=_(I),Se=(F.value-we)/de*Oe;le({scrollTop:Math.min(F.value-we,Se)})},ne=(Oe,de)=>{const we=_(L),Se=($.value-we)/de*Oe;le({scrollLeft:Math.min($.value-we,Se)})},{onWheel:ve}=Pxe({atXStartEdge:R(()=>M.value.scrollLeft<=0),atXEndEdge:R(()=>M.value.scrollLeft>=$.value-_(L)),atYStartEdge:R(()=>M.value.scrollTop<=0),atYEndEdge:R(()=>M.value.scrollTop>=F.value-_(I))},(Oe,de)=>{var we,Se,Ie,Ee;(Se=(we=x.value)==null?void 0:we.onMouseUp)==null||Se.call(we),(Ee=(Ie=T.value)==null?void 0:Ie.onMouseUp)==null||Ee.call(Ie);const Ge=_(L),Ue=_(I);le({scrollLeft:Math.min(M.value.scrollLeft+Oe,$.value-Ge),scrollTop:Math.min(M.value.scrollTop+de,F.value-Ue)})}),le=({scrollLeft:Oe=M.value.scrollLeft,scrollTop:de=M.value.scrollTop})=>{Oe=Math.max(Oe,0),de=Math.max(de,0);const we=_(M);de===we.scrollTop&&Oe===we.scrollLeft||(M.value={...we,xAxisScrollDir:yf(we.scrollLeft,Oe),yAxisScrollDir:yf(we.scrollTop,de),scrollLeft:Oe,scrollTop:de,updateRequested:!0},pt(()=>Q()),_e(),G())},ce=(Oe=0,de=0,we=io)=>{const Se=_(M);de=Math.max(0,Math.min(de,p.totalColumn-1)),Oe=Math.max(0,Math.min(Oe,p.totalRow-1));const Ie=Hz(w.namespace.value),Ee=_(C),Ge=i(p,Ee),Ue=o(p,Ee);le({scrollLeft:s(p,de,we,Se.scrollLeft,Ee,Ue>p.width?Ie:0),scrollTop:l(p,Oe,we,Se.scrollTop,Ee,Ge>p.height?Ie:0)})},ue=(Oe,de)=>{const{columnWidth:we,direction:Se,rowHeight:Ie}=p,Ee=E.value(t&&we,t&&Ie,t&&Se),Ge=`${Oe},${de}`;if(fn(Ee,Ge))return Ee[Ge];{const[,Ue]=n(p,de,_(C)),oe=_(C),ke=xN(Se),[nt,st]=u(p,Oe,oe),[ut]=n(p,de,oe);return Ee[Ge]={position:"absolute",left:ke?void 0:`${Ue}px`,right:ke?`${Ue}px`:void 0,top:`${st}px`,height:`${nt}px`,width:`${ut}px`},Ee[Ge]}},Q=()=>{M.value.isScrolling=!1,pt(()=>{E.value(-1,null,null)})};zt(()=>{if(!vn)return;const{initScrollLeft:Oe,initScrollTop:de}=p,we=_(y);we&&(kt(Oe)&&(we.scrollLeft=Oe),kt(de)&&(we.scrollTop=de)),G()});const _e=()=>{const{direction:Oe}=p,{scrollLeft:de,scrollTop:we,updateRequested:Se}=_(M),Ie=_(y);if(Se&&Ie){if(Oe===Th)switch(W1()){case cm:{Ie.scrollLeft=-de;break}case eI:{Ie.scrollLeft=de;break}default:{const{clientWidth:Ee,scrollWidth:Ge}=Ie;Ie.scrollLeft=Ge-Ee-de;break}}else Ie.scrollLeft=Math.max(0,de);Ie.scrollTop=Math.max(0,we)}},{resetAfterColumnIndex:Pe,resetAfterRowIndex:pe,resetAfter:Y}=S.proxy;m({windowRef:y,innerRef:A,getItemStyleCache:E,scrollTo:le,scrollToItem:ce,states:M,resetAfterColumnIndex:Pe,resetAfterRowIndex:pe,resetAfter:Y});const ie=()=>{const{scrollbarAlwaysOn:Oe,scrollbarStartGap:de,scrollbarEndGap:we,totalColumn:Se,totalRow:Ie}=p,Ee=_(L),Ge=_(I),Ue=_($),oe=_(F),{scrollLeft:ke,scrollTop:nt}=_(M),st=bt(ok,{ref:x,alwaysOn:Oe,startGap:de,endGap:we,class:w.e("horizontal"),clientSize:Ee,layout:"horizontal",onScroll:ne,ratio:Ee*100/Ue,scrollFrom:ke/(Ue-Ee),total:Ie,visible:!0}),ut=bt(ok,{ref:T,alwaysOn:Oe,startGap:de,endGap:we,class:w.e("vertical"),clientSize:Ge,layout:"vertical",onScroll:J,ratio:Ge*100/oe,scrollFrom:nt/(oe-Ge),total:Se,visible:!0});return{horizontalScrollbar:st,verticalScrollbar:ut}},me=()=>{var Oe;const[de,we]=_(O),[Se,Ie]=_(z),{data:Ee,totalColumn:Ge,totalRow:Ue,useIsScrolling:oe,itemKey:ke}=p,nt=[];if(Ue>0&&Ge>0)for(let st=Se;st<=Ie;st++)for(let ut=de;ut<=we;ut++)nt.push((Oe=b.default)==null?void 0:Oe.call(b,{columnIndex:ut,data:Ee,key:ke({columnIndex:ut,data:Ee,rowIndex:st}),isScrolling:oe?_(M).isScrolling:void 0,style:ue(st,ut),rowIndex:st}));return nt},De=()=>{const Oe=Xt(p.innerElement),de=me();return[bt(Oe,{style:_(P),ref:A},Mt(Oe)?de:{default:()=>de})]};return()=>{const Oe=Xt(p.containerElement),{horizontalScrollbar:de,verticalScrollbar:we}=ie(),Se=De();return bt("div",{key:0,class:w.e("wrapper"),role:p.role},[bt(Oe,{class:p.className,style:_(V),onScroll:j,onWheel:ve,ref:y},Mt(Oe)?Se:{default:()=>Se}),de,we])}}}),Rxe=UW({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=io:a=Es),a){case lm:return u;case um:return c;case Es:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case io: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===Rw&&(i>=c-t&&i<=u+t?a=io:a=Es),a){case lm:return u;case um:return c;case Es:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case io: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:G1,min:KW,floor:jW}=Math,Oxe={column:"columnWidth",row:"rowHeight"},sk={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},al=(e,t,n,r)=>{const[a,i,o]=[n[r],e[Oxe[r]],n[sk[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[sk[r]]=t}return a[t]},YW=(e,t,n,r,a,i)=>{for(;n<=r;){const o=n+jW((r-n)/2),s=al(e,o,t,i).offset;if(s===a)return o;s<a?n=o+1:r=o-1}return G1(0,n-1)},Nxe=(e,t,n,r,a)=>{const i=a==="column"?e.totalColumn:e.totalRow;let o=1;for(;n<i&&al(e,n,t,a).offset<r;)n+=o,o*=2;return YW(e,t,jW(n/2),KW(n,i-1),r,a)},kN=(e,t,n,r)=>{const[a,i]=[t[r],t[sk[r]]];return(i>0?a[i].offset:0)>=n?YW(e,t,0,i,n,r):Nxe(e,t,G1(0,i),n,r)},qW=({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},XW=({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},$xe={column:XW,row:qW},AN=(e,t,n,r,a,i,o)=>{const[s,l]=[i==="row"?e.height:e.width,$xe[i]],u=al(e,t,a,i),c=l(e,a),f=G1(0,KW(c-s,u.offset)),d=G1(0,u.offset-s+o+u.size);switch(n===Rw&&(r>=d-s&&r<=f+s?n=io:n=Es),n){case lm:return f;case um:return d;case Es:return Math.round(d+(f-d)/2);case io:default:return r>=d&&r<=f?r:d>f||r<d?d:f}},Bxe=UW({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const r=al(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=al(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,a,i)=>AN(e,t,n,r,a,"column",i),getRowOffset:(e,t,n,r,a,i)=>AN(e,t,n,r,a,"row",i),getColumnStartIndexForOffset:(e,t,n)=>kN(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const a=al(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+=al(e,t,r,"column").size;return s},getEstimatedTotalHeight:qW,getEstimatedTotalWidth:XW,getRowStartIndexForOffset:(e,t,n)=>kN(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,r)=>{const{totalRow:a,height:i}=e,o=al(e,t,r,"row"),s=n+i;let l=o.size+o.offset,u=t;for(;u<a-1&&l<s;)u++,l+=al(e,u,r,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=Xr(s)?!0:s,kt(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),kt(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=ek,estimatedRowHeight:t=ek})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),Fxe=te({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:We("select")}}});function Vxe(e,t,n,r,a,i){return e.item.isTitle?(N(),X("div",{key:0,class:H(e.ns.be("group","title")),style:mt([e.style,{lineHeight:`${e.height}px`}])},qe(e.item.label),7)):(N(),X("div",{key:1,class:H(e.ns.be("group","split")),style:mt(e.style)},[ee("span",{class:H(e.ns.be("group","split-dash")),style:mt({top:`${e.height/2}px`})},null,6)],6))}var zxe=Xe(Fxe,[["render",Vxe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function Hxe(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const Wxe={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:nc},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:da.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:_w},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:Ce(String),values:ld,default:"bottom-start"}},Gxe={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},Uxe=te({props:Gxe,emits:["select","hover"],setup(e,{emit:t}){const n=We("select"),{hoverItem:r,selectOptionClick:a}=Hxe(e,{emit:t});return{ns:n,hoverItem:r,selectOptionClick:a}}}),Kxe=["aria-selected"];function jxe(e,t,n,r,a,i){return N(),X("li",{"aria-selected":e.selected,style:mt(e.style),class:H([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]=xt((...o)=>e.selectOptionClick&&e.selectOptionClick(...o),["stop"]))},[Ve(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[ee("span",null,qe(e.item.label),1)])],46,Kxe)}var Yxe=Xe(Uxe,[["render",jxe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const ZW=Symbol("ElSelectV2Injection");var qxe=te({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(e,{slots:t,expose:n}){const r=ct(ZW),a=We("select"),i=U([]),o=U(),s=R(()=>e.data.length);ze(()=>s.value,()=>{var T,A;(A=(T=r.popper.value).updatePopper)==null||A.call(T)});const l=R(()=>Xr(r.props.estimatedOptionHeight)),u=R(()=>l.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:T=>i.value[T]}),c=(T=[],A)=>{const{props:{valueKey:M}}=r;return Qt(A)?T&&T.some(E=>lr(E,M)===lr(A,M)):T.includes(A)},f=(T,A)=>{if(Qt(A)){const{valueKey:M}=r.props;return lr(T,M)===lr(A,M)}else return T===A},d=(T,A)=>{const{valueKey:M}=r.props;return r.props.multiple?c(T,lr(A,M)):f(T,lr(A,M))},h=(T,A)=>{const{disabled:M,multiple:E,multipleLimit:I}=r.props;return M||!A&&(E?I>0&&T.length>=I:!1)},v=T=>e.hoveringIndex===T;n({listRef:o,isSized:l,isItemDisabled:h,isItemHovering:v,isItemSelected:d,scrollToItem:T=>{const A=o.value;A&&A.scrollToItem(T)},resetScrollTop:()=>{const T=o.value;T&&T.resetScrollTop()}});const m=T=>{const{index:A,data:M,style:E}=T,I=_(l),{itemSize:L,estimatedSize:O}=_(u),{modelValue:z}=r.props,{onSelect:F,onHover:$}=r,V=M[A];if(V.type==="Group")return re(zxe,{item:V,style:E,height:I?L:O},null);const P=d(z,V),G=h(z,P),j=v(A);return re(Yxe,qt(T,{selected:P,disabled:V.disabled||G,created:!!V.created,hovering:j,item:V,onSelect:F,onHover:$}),{default:J=>{var ne;return((ne=t.default)==null?void 0:ne.call(t,J))||re("span",null,[V.label])}})},{onKeyboardNavigate:b,onKeyboardSelect:w}=r,S=()=>{b("forward")},C=()=>{b("backward")},y=()=>{r.expanded=!1},x=T=>{const{code:A}=T,{tab:M,esc:E,down:I,up:L,enter:O}=_t;switch(A!==M&&(T.preventDefault(),T.stopPropagation()),A){case M:case E:{y();break}case I:{S();break}case L:{C();break}case O:{w();break}}};return()=>{var T;const{data:A,width:M}=e,{height:E,multiple:I,scrollbarAlwaysOn:L}=r.props;if(A.length===0)return re("div",{class:a.b("dropdown"),style:{width:`${M}px`}},[(T=t.empty)==null?void 0:T.call(t)]);const O=_(l)?WW:Lxe;return re("div",{class:[a.b("dropdown"),a.is("multiple",I)]},[re(O,qt({ref:o},_(u),{className:a.be("dropdown","list"),scrollbarAlwaysOn:L,data:A,height:E,width:M,total:A.length,onKeydown:x}),{default:z=>re(m,z,null)})])}}});function Xxe(e,t){const n=U(0),r=U(null),a=R(()=>e.allowCreate&&e.filterable);function i(c){const f=d=>d.value===c;return e.options&&e.options.some(f)||t.createdOptions.some(f)}function o(c){a.value&&(e.multiple&&c.created?n.value++:r.value=c)}function s(c){if(a.value)if(c&&c.length>0&&!i(c)){const f={value:c,label:c,created:!0,disabled:!1};t.createdOptions.length>=n.value?t.createdOptions[n.value]=f:t.createdOptions.push(f)}else if(e.multiple)t.createdOptions.length=n.value;else{const f=r.value;t.createdOptions.length=0,f&&f.created&&t.createdOptions.push(f)}}function l(c){if(!a.value||!c||!c.created||c.created&&e.reserveKeyword&&t.inputValue===c.label)return;const f=t.createdOptions.findIndex(d=>d.value===c.value);~f&&(t.createdOptions.splice(f,1),n.value--)}function u(){a.value&&(t.createdOptions.length=0,n.value=0)}return{createNewOption:s,removeNewOption:l,selectNewOption:o,clearAllNewOption:u}}const Zxe=e=>{const t=[];return e.forEach(n=>{ft(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 Jxe(e){const t=U(!1);return{handleCompositionStart:()=>{t.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,s=o[o.length-1]||"";t.value=!ww(s)},handleCompositionEnd:i=>{t.value&&(t.value=!1,At(e)&&e(i))}}}const EN="",MN=11,Qxe={larget:51,default:42,small:33},e2e=(e,t)=>{const{t:n}=bn(),r=We("select-v2"),a=We("input"),{form:i,formItem:o}=si(),s=xn({inputValue:EN,displayInputValue:EN,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),l=U(-1),u=U(-1),c=U(null),f=U(null),d=U(null),h=U(null),v=U(null),p=U(null),g=U(null),m=U(!1),b=R(()=>e.disabled||(i==null?void 0:i.disabled)),w=R(()=>{const Ae=I.value.length*34;return Ae>e.height?e.height:Ae}),S=R(()=>!Wr(e.modelValue)),C=R(()=>{const Ae=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:S.value;return e.clearable&&!b.value&&s.comboBoxHovering&&Ae}),y=R(()=>e.remote&&e.filterable?"":mw),x=R(()=>y.value&&r.is("reverse",m.value)),T=R(()=>(o==null?void 0:o.validateState)||""),A=R(()=>gM[T.value]),M=R(()=>e.remote?300:0),E=R(()=>{const Ae=I.value;return e.loading?e.loadingText||n("el.select.loading"):e.remote&&s.inputValue===""&&Ae.length===0?!1:e.filterable&&s.inputValue&&Ae.length>0?e.noMatchText||n("el.select.noMatch"):Ae.length===0?e.noDataText||n("el.select.noData"):null}),I=R(()=>{const Ae=it=>{const Wt=s.inputValue,nn=new RegExp(Vz(Wt),"i");return Wt?nn.test(it.label||""):!0};return e.loading?[]:Zxe(e.options.concat(s.createdOptions).map(it=>{if(ft(it.options)){const Wt=it.options.filter(Ae);if(Wt.length>0)return{...it,options:Wt}}else if(e.remote||Ae(it))return it;return null}).filter(it=>it!==null))}),L=R(()=>{const Ae=new Map;return I.value.forEach((it,Wt)=>{Ae.set(Ee(it),{option:it,index:Wt})}),Ae}),O=R(()=>I.value.every(Ae=>Ae.disabled)),z=jr(),F=R(()=>z.value==="small"?"small":"default"),$=R(()=>{const Ae=p.value,it=F.value||"default",Wt=Ae?Number.parseInt(getComputedStyle(Ae).paddingLeft):0,nn=Ae?Number.parseInt(getComputedStyle(Ae).paddingRight):0;return s.selectWidth-nn-Wt-Qxe[it]}),V=()=>{var Ae;u.value=((Ae=v.value)==null?void 0:Ae.offsetWidth)||200},P=R(()=>({width:`${s.calculatedWidth===0?MN:Math.ceil(s.calculatedWidth)+MN}px`})),G=R(()=>ft(e.modelValue)?e.modelValue.length===0&&!s.displayInputValue:e.filterable?s.displayInputValue.length===0:!0),j=R(()=>{const Ae=e.placeholder||n("el.select.placeholder");return e.multiple||Wr(e.modelValue)?Ae:s.selectedLabel}),J=R(()=>{var Ae,it;return(it=(Ae=h.value)==null?void 0:Ae.popperRef)==null?void 0:it.contentRef}),ne=R(()=>{if(e.multiple){const Ae=e.modelValue.length;if(e.modelValue.length>0&&L.value.has(e.modelValue[Ae-1])){const{index:it}=L.value.get(e.modelValue[Ae-1]);return it}}else if(e.modelValue&&L.value.has(e.modelValue)){const{index:Ae}=L.value.get(e.modelValue);return Ae}return-1}),ve=R({get(){return m.value&&E.value!==!1},set(Ae){m.value=Ae}}),le=R(()=>s.cachedOptions.slice(0,e.maxCollapseTags)),ce=R(()=>s.cachedOptions.slice(e.maxCollapseTags)),{createNewOption:ue,removeNewOption:Q,selectNewOption:_e,clearAllNewOption:Pe}=Xxe(e,s),{handleCompositionStart:pe,handleCompositionUpdate:Y,handleCompositionEnd:ie}=Jxe(Ae=>rr(Ae)),me=()=>{var Ae,it,Wt;(it=(Ae=f.value)==null?void 0:Ae.focus)==null||it.call(Ae),(Wt=h.value)==null||Wt.updatePopper()},De=()=>{if(!e.automaticDropdown&&!b.value)return s.isComposing&&(s.softFocus=!0),pt(()=>{var Ae,it;m.value=!m.value,(it=(Ae=f.value)==null?void 0:Ae.focus)==null||it.call(Ae)})},Be=()=>(e.filterable&&s.inputValue!==s.selectedLabel&&(s.query=s.selectedLabel),de(s.inputValue),pt(()=>{ue(s.inputValue)})),Oe=ni(Be,M.value),de=Ae=>{s.previousQuery!==Ae&&(s.previousQuery=Ae,e.filterable&&At(e.filterMethod)?e.filterMethod(Ae):e.filterable&&e.remote&&At(e.remoteMethod)&&e.remoteMethod(Ae))},we=Ae=>{yi(e.modelValue,Ae)||t(nr,Ae)},Se=Ae=>{t(Kt,Ae),we(Ae),s.previousValue=Ae==null?void 0:Ae.toString()},Ie=(Ae=[],it)=>{if(!Qt(it))return Ae.indexOf(it);const Wt=e.valueKey;let nn=-1;return Ae.some((Jn,dr)=>lr(Jn,Wt)===lr(it,Wt)?(nn=dr,!0):!1),nn},Ee=Ae=>Qt(Ae)?lr(Ae,e.valueKey):Ae,Ge=Ae=>Qt(Ae)?Ae.label:Ae,Ue=()=>pt(()=>{var Ae,it;if(!f.value)return;const Wt=p.value;v.value.height=Wt.offsetHeight,m.value&&E.value!==!1&&((it=(Ae=h.value)==null?void 0:Ae.updatePopper)==null||it.call(Ae))}),oe=()=>{var Ae,it;if(ke(),V(),(it=(Ae=h.value)==null?void 0:Ae.updatePopper)==null||it.call(Ae),e.multiple)return Ue()},ke=()=>{const Ae=p.value;Ae&&(s.selectWidth=Ae.getBoundingClientRect().width)},nt=(Ae,it,Wt=!0)=>{var nn,Jn;if(e.multiple){let dr=e.modelValue.slice();const xr=Ie(dr,Ee(Ae));xr>-1?(dr=[...dr.slice(0,xr),...dr.slice(xr+1)],s.cachedOptions.splice(xr,1),Q(Ae)):(e.multipleLimit<=0||dr.length<e.multipleLimit)&&(dr=[...dr,Ee(Ae)],s.cachedOptions.push(Ae),_e(Ae),wt(it)),Se(dr),Ae.created&&(s.query="",de(""),s.inputLength=20),e.filterable&&!e.reserveKeyword&&((Jn=(nn=f.value).focus)==null||Jn.call(nn),$e("")),e.filterable&&(s.calculatedWidth=g.value.getBoundingClientRect().width),Ue(),Zn()}else l.value=it,s.selectedLabel=Ae.label,Se(Ee(Ae)),m.value=!1,s.isComposing=!1,s.isSilentBlur=Wt,_e(Ae),Ae.created||Pe(),wt(it)},st=(Ae,it)=>{const{valueKey:Wt}=e,nn=e.modelValue.indexOf(lr(it,Wt));if(nn>-1&&!b.value){const Jn=[...e.modelValue.slice(0,nn),...e.modelValue.slice(nn+1)];return s.cachedOptions.splice(nn,1),Se(Jn),t("remove-tag",lr(it,Wt)),s.softFocus=!0,Q(it),pt(me)}Ae.stopPropagation()},ut=Ae=>{const it=s.isComposing;s.isComposing=!0,s.softFocus?s.softFocus=!1:it||t("focus",Ae)},lt=Ae=>(s.softFocus=!1,pt(()=>{var it,Wt;(Wt=(it=f.value)==null?void 0:it.blur)==null||Wt.call(it),g.value&&(s.calculatedWidth=g.value.getBoundingClientRect().width),s.isSilentBlur?s.isSilentBlur=!1:s.isComposing&&t("blur",Ae),s.isComposing=!1})),Me=()=>{s.displayInputValue.length>0?$e(""):m.value=!1},ye=Ae=>{if(s.displayInputValue.length===0){Ae.preventDefault();const it=e.modelValue.slice();it.pop(),Q(s.cachedOptions.pop()),Se(it)}},ge=()=>{let Ae;return ft(e.modelValue)?Ae=[]:Ae=void 0,s.softFocus=!0,e.multiple?s.cachedOptions=[]:s.selectedLabel="",m.value=!1,Se(Ae),t("clear"),Pe(),pt(me)},$e=Ae=>{s.displayInputValue=Ae,s.inputValue=Ae},se=(Ae,it=void 0)=>{const Wt=I.value;if(!["forward","backward"].includes(Ae)||b.value||Wt.length<=0||O.value)return;if(!m.value)return De();it===void 0&&(it=s.hoveringIndex);let nn=-1;Ae==="forward"?(nn=it+1,nn>=Wt.length&&(nn=0)):Ae==="backward"&&(nn=it-1,(nn<0||nn>=Wt.length)&&(nn=Wt.length-1));const Jn=Wt[nn];if(Jn.disabled||Jn.type==="Group")return se(Ae,nn);wt(nn),Re(nn)},Qe=()=>{if(m.value)~s.hoveringIndex&&I.value[s.hoveringIndex]&&nt(I.value[s.hoveringIndex],s.hoveringIndex,!1);else return De()},wt=Ae=>{s.hoveringIndex=Ae},Vt=()=>{s.hoveringIndex=-1},Zn=()=>{var Ae;const it=f.value;it&&((Ae=it.focus)==null||Ae.call(it))},rr=Ae=>{const it=Ae.target.value;if($e(it),s.displayInputValue.length>0&&!m.value&&(m.value=!0),s.calculatedWidth=g.value.getBoundingClientRect().width,e.multiple&&Ue(),e.remote)Oe();else return Be()},$r=()=>(m.value=!1,lt()),Fn=()=>(s.inputValue=s.displayInputValue,pt(()=>{~ne.value&&(wt(ne.value),Re(s.hoveringIndex))})),Re=Ae=>{d.value.scrollToItem(Ae)},rt=()=>{if(Vt(),e.multiple)if(e.modelValue.length>0){let Ae=!1;s.cachedOptions.length=0,s.previousValue=e.modelValue.toString();for(const it of e.modelValue)if(L.value.has(it)){const{index:Wt,option:nn}=L.value.get(it);s.cachedOptions.push(nn),Ae||wt(Wt),Ae=!0}}else s.cachedOptions=[],s.previousValue=void 0;else if(S.value){s.previousValue=e.modelValue;const Ae=I.value,it=Ae.findIndex(Wt=>Ee(Wt)===Ee(e.modelValue));~it?(s.selectedLabel=Ae[it].label,wt(it)):s.selectedLabel=`${e.modelValue}`}else s.selectedLabel="",s.previousValue=void 0;Pe(),V()};return ze(m,Ae=>{var it,Wt;t("visible-change",Ae),Ae?(Wt=(it=h.value).update)==null||Wt.call(it):(s.displayInputValue="",s.previousQuery=null,ue(""))}),ze(()=>e.modelValue,(Ae,it)=>{var Wt;(!Ae||Ae.toString()!==s.previousValue)&&rt(),!yi(Ae,it)&&e.validateEvent&&((Wt=o==null?void 0:o.validate)==null||Wt.call(o,"change").catch(nn=>void 0))},{deep:!0}),ze(()=>e.options,()=>{const Ae=f.value;(!Ae||Ae&&document.activeElement!==Ae)&&rt()},{deep:!0}),ze(I,()=>pt(d.value.resetScrollTop)),ze(()=>ve.value,Ae=>{Ae||Vt()}),zt(()=>{rt()}),$a(v,oe),{collapseTagSize:F,currentPlaceholder:j,expanded:m,emptyText:E,popupHeight:w,debounce:M,filteredOptions:I,iconComponent:y,iconReverse:x,inputWrapperStyle:P,popperSize:u,dropdownMenuVisible:ve,hasModelValue:S,shouldShowPlaceholder:G,selectDisabled:b,selectSize:z,showClearBtn:C,states:s,tagMaxWidth:$,nsSelectV2:r,nsInput:a,calculatorRef:g,controlRef:c,inputRef:f,menuRef:d,popper:h,selectRef:v,selectionRef:p,popperRef:J,validateState:T,validateIcon:A,showTagList:le,collapseTagList:ce,debouncedOnInputChange:Oe,deleteTag:st,getLabel:Ge,getValueKey:Ee,handleBlur:lt,handleClear:ge,handleClickOutside:$r,handleDel:ye,handleEsc:Me,handleFocus:ut,handleMenuEnter:Fn,handleResize:oe,toggleMenu:De,scrollTo:Re,onInput:rr,onKeyboardNavigate:se,onKeyboardSelect:Qe,onSelect:nt,onHover:wt,onUpdateInputValue:$e,handleCompositionStart:pe,handleCompositionEnd:ie,handleCompositionUpdate:Y}},t2e=te({name:"ElSelectV2",components:{ElSelectMenu:qxe,ElTag:om,ElTooltip:ri,ElIcon:vt},directives:{ClickOutside:Gu,ModelText:GE},props:Wxe,emits:[Kt,nr,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=R(()=>{const{modelValue:a,multiple:i}=e,o=i?[]:void 0;return ft(a)?i?a:o:i?o:a}),r=e2e(xn({...Jr(e),modelValue:n}),t);return tn(ZW,{props:xn({...Jr(e),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),n2e={key:0},r2e=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],a2e=["textContent"],i2e=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],o2e=["textContent"];function s2e(e,t,n,r,a,i){const o=Dt("el-tag"),s=Dt("el-tooltip"),l=Dt("el-icon"),u=Dt("el-select-menu"),c=Hg("model-text"),f=Hg("click-outside");return Rt((N(),X("div",{ref:"selectRef",class:H([e.nsSelectV2.b(),e.nsSelectV2.m(e.selectSize)]),onClick:t[24]||(t[24]=xt((...d)=>e.toggleMenu&&e.toggleMenu(...d),["stop"])),onMouseenter:t[25]||(t[25]=d=>e.states.comboBoxHovering=!0),onMouseleave:t[26]||(t[26]=d=>e.states.comboBoxHovering=!1)},[re(s,{ref:"popper",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelectV2.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:t[23]||(t[23]=d=>e.states.inputValue=e.states.displayInputValue)},{default:fe(()=>[ee("div",{ref:"selectionRef",class:H([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?(N(),X("div",n2e,[Ve(e.$slots,"prefix")])):be("v-if",!0),e.multiple?(N(),X("div",{key:1,class:H(e.nsSelectV2.e("selection"))},[e.collapseTags&&e.modelValue.length>0?(N(),X(gt,{key:0},[(N(!0),X(gt,null,un(e.showTagList,d=>(N(),X("div",{key:e.getValueKey(d),class:H(e.nsSelectV2.e("selected-item"))},[re(o,{closable:!e.selectDisabled&&!(d!=null&&d.disable),size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:fe(()=>[ee("span",{class:H(e.nsSelectV2.e("tags-text")),style:mt({maxWidth:`${e.tagMaxWidth}px`})},qe(d==null?void 0:d.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),ee("div",{class:H(e.nsSelectV2.e("selected-item"))},[e.modelValue.length>e.maxCollapseTags?(N(),Te(o,{key:0,closable:!1,size:e.collapseTagSize,type:"info","disable-transitions":""},{default:fe(()=>[e.collapseTagsTooltip?(N(),Te(s,{key:0,disabled:e.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:!1},{default:fe(()=>[ee("span",{class:H(e.nsSelectV2.e("tags-text")),style:mt({maxWidth:`${e.tagMaxWidth}px`})},"+ "+qe(e.modelValue.length-e.maxCollapseTags),7)]),content:fe(()=>[ee("div",{class:H(e.nsSelectV2.e("selection"))},[(N(!0),X(gt,null,un(e.collapseTagList,d=>(N(),X("div",{key:e.getValueKey(d),class:H(e.nsSelectV2.e("selected-item"))},[re(o,{closable:!e.selectDisabled&&!d.disabled,size:e.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:fe(()=>[ee("span",{class:H(e.nsSelectV2.e("tags-text")),style:mt({maxWidth:`${e.tagMaxWidth}px`})},qe(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(N(),X("span",{key:1,class:H(e.nsSelectV2.e("tags-text")),style:mt({maxWidth:`${e.tagMaxWidth}px`})},"+ "+qe(e.modelValue.length-e.maxCollapseTags),7))]),_:1},8,["size"])):be("v-if",!0)],2)],64)):(N(!0),X(gt,{key:1},un(e.states.cachedOptions,d=>(N(),X("div",{key:e.getValueKey(d),class:H(e.nsSelectV2.e("selected-item"))},[re(o,{closable:!e.selectDisabled&&!d.disabled,size:e.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>e.deleteTag(h,d)},{default:fe(()=>[ee("span",{class:H(e.nsSelectV2.e("tags-text")),style:mt({maxWidth:`${e.tagMaxWidth}px`})},qe(e.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),ee("div",{class:H([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")]),style:mt(e.inputWrapperStyle)},[Rt(ee("input",{id:e.id,ref:"inputRef",autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-labelledby":e.label,class:H([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]=yn(xt(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[8]||(t[8]=yn(xt(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[9]||(t[9]=yn(xt((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[10]||(t[10]=yn(xt((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"])),t[11]||(t[11]=yn(xt((...d)=>e.handleDel&&e.handleDel(...d),["stop"]),["delete"]))]},null,42,r2e),[[c,e.states.displayInputValue]]),e.filterable?(N(),X("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:H(e.nsSelectV2.e("input-calculator")),textContent:qe(e.states.displayInputValue)},null,10,a2e)):be("v-if",!0)],6)],2)):(N(),X(gt,{key:2},[ee("div",{class:H([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-wrapper")])},[Rt(ee("input",{id:e.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":e.label,"aria-expanded":e.expanded,autocapitalize:"off",autocomplete:e.autocomplete,class:H(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]=yn(xt(d=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[19]||(t[19]=yn(xt(d=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[20]||(t[20]=yn(xt((...d)=>e.onKeyboardSelect&&e.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),t[21]||(t[21]=yn(xt((...d)=>e.handleEsc&&e.handleEsc(...d),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":t[22]||(t[22]=(...d)=>e.onUpdateInputValue&&e.onUpdateInputValue(...d))},null,42,i2e),[[c,e.states.displayInputValue]])],2),e.filterable?(N(),X("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:H([e.nsSelectV2.e("selected-item"),e.nsSelectV2.e("input-calculator")]),textContent:qe(e.states.displayInputValue)},null,10,o2e)):be("v-if",!0)],64)),e.shouldShowPlaceholder?(N(),X("span",{key:3,class:H([e.nsSelectV2.e("placeholder"),e.nsSelectV2.is("transparent",e.multiple?e.modelValue.length===0:!e.hasModelValue)])},qe(e.currentPlaceholder),3)):be("v-if",!0),ee("span",{class:H(e.nsSelectV2.e("suffix"))},[e.iconComponent?Rt((N(),Te(l,{key:0,class:H([e.nsSelectV2.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:fe(()=>[(N(),Te(Xt(e.iconComponent)))]),_:1},8,["class"])),[[Sn,!e.showClearBtn]]):be("v-if",!0),e.showClearBtn&&e.clearIcon?(N(),Te(l,{key:1,class:H([e.nsSelectV2.e("caret"),e.nsInput.e("icon")]),onClick:xt(e.handleClear,["prevent","stop"])},{default:fe(()=>[(N(),Te(Xt(e.clearIcon)))]),_:1},8,["class","onClick"])):be("v-if",!0),e.validateState&&e.validateIcon?(N(),Te(l,{key:2,class:H([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:fe(()=>[(N(),Te(Xt(e.validateIcon)))]),_:1},8,["class"])):be("v-if",!0)],2)],2)]),content:fe(()=>[re(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:fe(d=>[Ve(e.$slots,"default",Vo(aw(d)))]),empty:fe(()=>[Ve(e.$slots,"empty",{},()=>[ee("p",{class:H(e.nsSelectV2.e("empty"))},qe(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 Ub=Xe(t2e,[["render",s2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Ub.install=e=>{e.component(Ub.name,Ub)};const l2e=Ub,u2e=l2e,c2e=Je({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),f2e=Je({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),d2e=te({name:"ElSkeletonItem"}),h2e=te({...d2e,props:f2e,setup(e){const t=We("skeleton");return(n,r)=>(N(),X("div",{class:H([_(t).e("item"),_(t).e(n.variant)])},[n.variant==="image"?(N(),Te(_(bue),{key:0})):be("v-if",!0)],2))}});var U1=Xe(h2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const v2e=te({name:"ElSkeleton"}),p2e=te({...v2e,props:c2e,setup(e,{expose:t}){const n=e,r=We("skeleton"),a=vfe(vr(n,"loading"),n.throttle);return t({uiLoading:a}),(i,o)=>_(a)?(N(),X("div",qt({key:0,class:[_(r).b(),_(r).is("animated",i.animated)]},i.$attrs),[(N(!0),X(gt,null,un(i.count,s=>(N(),X(gt,{key:s},[i.loading?Ve(i.$slots,"template",{key:s},()=>[re(U1,{class:H(_(r).is("first")),variant:"p"},null,8,["class"]),(N(!0),X(gt,null,un(i.rows,l=>(N(),Te(U1,{key:l,class:H([_(r).e("paragraph"),_(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):be("v-if",!0)],64))),128))],16)):Ve(i.$slots,"default",Vo(qt({key:1},i.$attrs)))}});var g2e=Xe(p2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const m2e=Ut(g2e,{SkeletonItem:U1}),y2e=br(U1),JW=Symbol("sliderContextKey"),b2e=Je({modelValue:{type:Ce([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:Sa,inputSize:Sa,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Ce(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:Ce(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:ld,default:"top"},marks:{type:Ce(Object)},validateEvent:{type:Boolean,default:!0}}),SC=e=>kt(e)||ft(e)&&e.every(kt),_2e={[Kt]:SC,[Ja]:SC,[nr]:SC},w2e=(e,t,n)=>{const r=U();return zt(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),ir(window,"resize",n),await pt(),n()}),{sliderWrapper:r}},S2e=e=>R(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),C2e=(e,t,n)=>{const{form:r,formItem:a}=si(),i=Wn(),o=U(),s=U(),l={firstButton:o,secondButton:s},u=R(()=>e.disabled||(r==null?void 0:r.disabled)||!1),c=R(()=>Math.min(t.firstValue,t.secondValue)),f=R(()=>Math.max(t.firstValue,t.secondValue)),d=R(()=>e.range?`${100*(f.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=R(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),v=R(()=>e.vertical?{height:e.height}:{}),p=R(()=>e.vertical?{height:d.value,bottom:h.value}:{width:d.value,left:h.value}),g=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},m=E=>{const I=e.min+E*(e.max-e.min)/100;if(!e.range)return o;let L;return Math.abs(c.value-I)<Math.abs(f.value-I)?L=t.firstValue<t.secondValue?"firstButton":"secondButton":L=t.firstValue>t.secondValue?"firstButton":"secondButton",l[L]},b=E=>{const I=m(E);return I.value.setPosition(E),I},w=E=>{t.firstValue=E,C(e.range?[c.value,f.value]:E)},S=E=>{t.secondValue=E,e.range&&C([c.value,f.value])},C=E=>{n(Kt,E),n(Ja,E)},y=async()=>{await pt(),n(nr,e.range?[c.value,f.value]:e.modelValue)},x=E=>{var I,L,O,z,F,$;if(u.value||t.dragging)return;g();let V=0;if(e.vertical){const P=(O=(L=(I=E.touches)==null?void 0:I.item(0))==null?void 0:L.clientY)!=null?O:E.clientY;V=(i.value.getBoundingClientRect().bottom-P)/t.sliderSize*100}else{const P=($=(F=(z=E.touches)==null?void 0:z.item(0))==null?void 0:F.clientX)!=null?$:E.clientX,G=i.value.getBoundingClientRect().left;V=(P-G)/t.sliderSize*100}if(!(V<0||V>100))return b(V)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:v,barStyle:p,resetSize:g,setPosition:b,emitChange:y,onSliderWrapperPrevent:E=>{var I,L;((I=l.firstButton.value)!=null&&I.dragging||(L=l.secondButton.value)!=null&&L.dragging)&&E.preventDefault()},onSliderClick:E=>{x(E)&&y()},onSliderDown:async E=>{const I=x(E);I&&(await pt(),I.value.onButtonDown(E))},setFirstValue:w,setSecondValue:S}},{left:x2e,down:T2e,right:k2e,up:A2e,home:E2e,end:M2e,pageUp:I2e,pageDown:D2e}=_t,L2e=(e,t,n)=>{const r=U(),a=U(!1),i=R(()=>t.value instanceof Function),o=R(()=>i.value&&t.value(e.modelValue)||e.modelValue),s=ni(()=>{n.value&&(a.value=!0)},50),l=ni(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},P2e=(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}=ct(JW),{tooltip:v,tooltipVisible:p,formatValue:g,displayTooltip:m,hideTooltip:b}=L2e(e,c,s),w=U(),S=R(()=>`${(e.modelValue-a.value)/(i.value-a.value)*100}%`),C=R(()=>e.vertical?{bottom:S.value}:{left:S.value}),y=()=>{t.hovering=!0,m()},x=()=>{t.hovering=!1,t.dragging||b()},T=J=>{r.value||(J.preventDefault(),V(J),window.addEventListener("mousemove",P),window.addEventListener("touchmove",P),window.addEventListener("mouseup",G),window.addEventListener("touchend",G),window.addEventListener("contextmenu",G),w.value.focus())},A=J=>{r.value||(t.newPosition=Number.parseFloat(S.value)+J/(i.value-a.value)*100,j(t.newPosition),f())},M=()=>{A(-o.value)},E=()=>{A(o.value)},I=()=>{A(-o.value*4)},L=()=>{A(o.value*4)},O=()=>{r.value||(j(0),f())},z=()=>{r.value||(j(100),f())},F=J=>{let ne=!0;[x2e,T2e].includes(J.key)?M():[k2e,A2e].includes(J.key)?E():J.key===E2e?O():J.key===M2e?z():J.key===D2e?I():J.key===I2e?L():ne=!1,ne&&J.preventDefault()},$=J=>{let ne,ve;return J.type.startsWith("touch")?(ve=J.touches[0].clientY,ne=J.touches[0].clientX):(ve=J.clientY,ne=J.clientX),{clientX:ne,clientY:ve}},V=J=>{t.dragging=!0,t.isClick=!0;const{clientX:ne,clientY:ve}=$(J);e.vertical?t.startY=ve:t.startX=ne,t.startPosition=Number.parseFloat(S.value),t.newPosition=t.startPosition},P=J=>{if(t.dragging){t.isClick=!1,m(),d();let ne;const{clientX:ve,clientY:le}=$(J);e.vertical?(t.currentY=le,ne=(t.startY-t.currentY)/u.value*100):(t.currentX=ve,ne=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+ne,j(t.newPosition)}},G=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||j(t.newPosition),f()},0),window.removeEventListener("mousemove",P),window.removeEventListener("touchmove",P),window.removeEventListener("mouseup",G),window.removeEventListener("touchend",G),window.removeEventListener("contextmenu",G))},j=async J=>{if(J===null||Number.isNaN(+J))return;J<0?J=0:J>100&&(J=100);const ne=100/((i.value-a.value)/o.value);let le=Math.round(J/ne)*ne*(i.value-a.value)*.01+a.value;le=Number.parseFloat(le.toFixed(l.value)),le!==e.modelValue&&n(Kt,le),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await pt(),t.dragging&&m(),v.value.updatePopper()};return ze(()=>t.dragging,J=>{h(J)}),{disabled:r,button:w,tooltip:v,tooltipVisible:p,showTooltip:s,wrapperStyle:C,formatValue:g,handleMouseEnter:y,handleMouseLeave:x,onButtonDown:T,onKeyDown:F,setPosition:j}},R2e=(e,t,n,r)=>({stops:R(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const o=(e.max-e.min)/e.step,s=100*e.step/(e.max-e.min),l=Array.from({length:o-1}).map((u,c)=>(c+1)*s);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:o=>e.vertical?{bottom:`${o}%`}:{left:`${o}%`}}),O2e=(e,t,n,r,a,i)=>{const o=u=>{a(Kt,u),a(Ja,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&&Kr("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(),ze(()=>t.dragging,u=>{u||l()}),ze(()=>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}),ze(()=>[e.min,e.max],()=>{l()})},N2e=Je({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:ld,default:"top"}}),$2e={[Kt]:e=>kt(e)},B2e=["tabindex"],F2e=te({name:"ElSliderButton"}),V2e=te({...F2e,props:N2e,emits:$2e,setup(e,{expose:t,emit:n}){const r=e,a=We("slider"),i=xn({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}=P2e(r,i,n),{hovering:b,dragging:w}=Jr(i);return t({onButtonDown:p,onKeyDown:g,setPosition:m,hovering:b,dragging:w}),(S,C)=>(N(),X("div",{ref_key:"button",ref:s,class:H([_(a).e("button-wrapper"),{hover:_(b),dragging:_(w)}]),style:mt(_(f)),tabindex:_(o)?-1:0,onMouseenter:C[0]||(C[0]=(...y)=>_(h)&&_(h)(...y)),onMouseleave:C[1]||(C[1]=(...y)=>_(v)&&_(v)(...y)),onMousedown:C[2]||(C[2]=(...y)=>_(p)&&_(p)(...y)),onTouchstart:C[3]||(C[3]=(...y)=>_(p)&&_(p)(...y)),onFocus:C[4]||(C[4]=(...y)=>_(h)&&_(h)(...y)),onBlur:C[5]||(C[5]=(...y)=>_(v)&&_(v)(...y)),onKeydown:C[6]||(C[6]=(...y)=>_(g)&&_(g)(...y))},[re(_(ri),{ref_key:"tooltip",ref:l,visible:_(c),placement:S.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":S.tooltipClass,disabled:!_(u),persistent:""},{content:fe(()=>[ee("span",null,qe(_(d)),1)]),default:fe(()=>[ee("div",{class:H([_(a).e("button"),{hover:_(b),dragging:_(w)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,B2e))}});var IN=Xe(V2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const z2e=Je({mark:{type:Ce([String,Object]),default:void 0}});var H2e=te({name:"ElSliderMarker",props:z2e,setup(e){const t=We("slider"),n=R(()=>Mt(e.mark)?e.mark:e.mark.label),r=R(()=>Mt(e.mark)?void 0:e.mark.style);return()=>bt("div",{class:t.e("marks-text"),style:r.value},n.value)}});const W2e=["id","role","aria-label","aria-labelledby"],G2e={key:1},U2e=te({name:"ElSlider"}),K2e=te({...U2e,props:b2e,emits:_2e,setup(e,{expose:t,emit:n}){const r=e,a=We("slider"),{t:i}=bn(),o=xn({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:w,onSliderDown:S,setFirstValue:C,setSecondValue:y}=C2e(r,o,n),{stops:x,getStopStyle:T}=R2e(r,o,d,h),{inputId:A,isLabeledByFormItem:M}=oc(r,{formItemContext:s}),E=jr(),I=R(()=>r.inputSize||E.value),L=R(()=>r.label||i("el.slider.defaultLabel",{min:r.min,max:r.max})),O=R(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):L.value),z=R(()=>r.formatValueText?r.formatValueText(J.value):`${J.value}`),F=R(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),$=R(()=>r.formatValueText?r.formatValueText(ne.value):`${ne.value}`),V=R(()=>[a.b(),a.m(E.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),P=S2e(r);O2e(r,o,d,h,n,s);const G=R(()=>{const ce=[r.min,r.max,r.step].map(ue=>{const Q=`${ue}`.split(".")[1];return Q?Q.length:0});return Math.max.apply(null,ce)}),{sliderWrapper:j}=w2e(r,o,g),{firstValue:J,secondValue:ne,sliderSize:ve}=Jr(o),le=ce=>{o.dragging=ce};return tn(JW,{...Jr(r),sliderSize:ve,disabled:f,precision:G,emitChange:m,resetSize:g,updateDragging:le}),t({onSliderClick:w}),(ce,ue)=>{var Q,_e;return N(),X("div",{id:ce.range?_(A):void 0,ref_key:"sliderWrapper",ref:j,class:H(_(V)),role:ce.range?"group":void 0,"aria-label":ce.range&&!_(M)?_(L):void 0,"aria-labelledby":ce.range&&_(M)?(Q=_(s))==null?void 0:Q.labelId:void 0,onTouchstart:ue[2]||(ue[2]=(...Pe)=>_(b)&&_(b)(...Pe)),onTouchmove:ue[3]||(ue[3]=(...Pe)=>_(b)&&_(b)(...Pe))},[ee("div",{ref_key:"slider",ref:l,class:H([_(a).e("runway"),{"show-input":ce.showInput&&!ce.range},_(a).is("disabled",_(f))]),style:mt(_(v)),onMousedown:ue[0]||(ue[0]=(...Pe)=>_(S)&&_(S)(...Pe)),onTouchstart:ue[1]||(ue[1]=(...Pe)=>_(S)&&_(S)(...Pe))},[ee("div",{class:H(_(a).e("bar")),style:mt(_(p))},null,6),re(IN,{id:ce.range?void 0:_(A),ref_key:"firstButton",ref:u,"model-value":_(J),vertical:ce.vertical,"tooltip-class":ce.tooltipClass,placement:ce.placement,role:"slider","aria-label":ce.range||!_(M)?_(O):void 0,"aria-labelledby":!ce.range&&_(M)?(_e=_(s))==null?void 0:_e.labelId:void 0,"aria-valuemin":ce.min,"aria-valuemax":ce.range?_(ne):ce.max,"aria-valuenow":_(J),"aria-valuetext":_(z),"aria-orientation":ce.vertical?"vertical":"horizontal","aria-disabled":_(f),"onUpdate:modelValue":_(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"]),ce.range?(N(),Te(IN,{key:0,ref_key:"secondButton",ref:c,"model-value":_(ne),vertical:ce.vertical,"tooltip-class":ce.tooltipClass,placement:ce.placement,role:"slider","aria-label":_(F),"aria-valuemin":_(J),"aria-valuemax":ce.max,"aria-valuenow":_(ne),"aria-valuetext":_($),"aria-orientation":ce.vertical?"vertical":"horizontal","aria-disabled":_(f),"onUpdate:modelValue":_(y)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):be("v-if",!0),ce.showStops?(N(),X("div",G2e,[(N(!0),X(gt,null,un(_(x),(Pe,pe)=>(N(),X("div",{key:pe,class:H(_(a).e("stop")),style:mt(_(T)(Pe))},null,6))),128))])):be("v-if",!0),_(P).length>0?(N(),X(gt,{key:2},[ee("div",null,[(N(!0),X(gt,null,un(_(P),(Pe,pe)=>(N(),X("div",{key:pe,style:mt(_(T)(Pe.position)),class:H([_(a).e("stop"),_(a).e("marks-stop")])},null,6))),128))]),ee("div",{class:H(_(a).e("marks"))},[(N(!0),X(gt,null,un(_(P),(Pe,pe)=>(N(),Te(_(H2e),{key:pe,mark:Pe.mark,style:mt(_(T)(Pe.position))},null,8,["mark","style"]))),128))],2)],64)):be("v-if",!0)],38),ce.showInput&&!ce.range?(N(),Te(_(TW),{key:0,ref:"input","model-value":_(J),class:H(_(a).e("input")),step:ce.step,disabled:_(f),controls:ce.showInputControls,min:ce.min,max:ce.max,debounce:ce.debounce,size:_(I),"onUpdate:modelValue":_(C),onChange:_(m)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):be("v-if",!0)],42,W2e)}}});var j2e=Xe(K2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const Y2e=Ut(j2e),q2e=Je({prefixCls:{type:String}}),DN=te({name:"ElSpaceItem",props:q2e,setup(e,{slots:t}){const n=We("space"),r=R(()=>`${e.prefixCls||n.b()}__item`);return()=>bt("div",{class:r.value},Ve(t,"default"))}}),LN={small:8,default:12,large:16};function X2e(e){const t=We("space"),n=R(()=>[t.b(),t.m(e.direction),e.class]),r=U(0),a=U(0),i=R(()=>{const s=e.wrap||e.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`}:{},l={alignItems:e.alignment};return[s,l,e.style]}),o=R(()=>{const s={paddingBottom:`${a.value}px`,marginRight:`${r.value}px`},l=e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{};return[s,l]});return Oi(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=e;if(ft(s)){const[f=0,d=0]=s;r.value=f,a.value=d}else{let f;kt(s)?f=s:f=LN[s||"small"]||LN.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 Z2e=Je({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:Ce([String,Object,Array]),default:""},style:{type:Ce([String,Array,Object]),default:""},alignment:{type:Ce(String),default:"center"},prefixCls:{type:String},spacer:{type:Ce([Object,String,Number,Array]),default:null,validator:e=>fr(e)||kt(e)||Mt(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Gs,validator:e=>kt(e)||ft(e)&&e.length===2&&e.every(kt)}}),J2e=te({name:"ElSpace",props:Z2e,setup(e,{slots:t}){const{classes:n,containerStyle:r,itemStyle:a}=X2e(e);function i(o,s="",l=[]){const{prefixCls:u}=e;return o.forEach((c,f)=>{xT(c)?ft(c.children)&&c.children.forEach((d,h)=>{xT(d)&&ft(d.children)?i(d.children,`${s+h}-`,l):l.push(re(DN,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[d]},Zi.PROPS|Zi.STYLE,["style","prefixCls"]))}):Que(c)&&l.push(re(DN,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},Zi.PROPS|Zi.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=e,u=Ve(t,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(ft(u.children)){let c=i(u.children);if(s){const f=c.length-1;c=c.reduce((d,h,v)=>{const p=[...d,h];return v!==f&&p.push(re("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[fr(s)?s:Cn(s,Zi.TEXT)],Zi.STYLE)),p},[])}return re("div",{class:n.value,style:r.value},c,Zi.STYLE|Zi.CLASS)}return u.children}}}),Q2e=Ut(J2e),eTe=Je({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:Ce([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:Ce([String,Object,Array])}}),tTe=te({name:"ElStatistic"}),nTe=te({...tTe,props:eTe,setup(e,{expose:t}){const n=e,r=We("statistic"),a=R(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(At(o))return o(i);if(!kt(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)=>(N(),X("div",{class:H(_(r).b())},[i.$slots.title||i.title?(N(),X("div",{key:0,class:H(_(r).e("head"))},[Ve(i.$slots,"title",{},()=>[Cn(qe(i.title),1)])],2)):be("v-if",!0),ee("div",{class:H(_(r).e("content"))},[i.$slots.prefix||i.prefix?(N(),X("div",{key:0,class:H(_(r).e("prefix"))},[Ve(i.$slots,"prefix",{},()=>[ee("span",null,qe(i.prefix),1)])],2)):be("v-if",!0),ee("span",{class:H(_(r).e("number")),style:mt(i.valueStyle)},qe(_(a)),7),i.$slots.suffix||i.suffix?(N(),X("div",{key:1,class:H(_(r).e("suffix"))},[Ve(i.$slots,"suffix",{},()=>[ee("span",null,qe(i.suffix),1)])],2)):be("v-if",!0)],2)],2))}});var rTe=Xe(nTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const QW=Ut(rTe),aTe=Je({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:Ce([Number,Object]),default:0},valueStyle:{type:Ce([String,Object,Array])}}),iTe={finish:()=>!0,[nr]:e=>kt(e)},oTe=[["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]],PN=e=>kt(e)?new Date(e).getTime():e.valueOf(),RN=(e,t)=>{let n=e;const r=/\[([^\]]*)]/g;return oTe.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")},sTe=te({name:"ElCountdown"}),lTe=te({...sTe,props:aTe,emits:iTe,setup(e,{expose:t,emit:n}){const r=e;let a;const i=U(PN(r.value)-Date.now()),o=R(()=>RN(i.value,r.format)),s=c=>RN(c,r.format),l=()=>{a&&(Sw(a),a=void 0)},u=()=>{const c=PN(r.value),f=()=>{let d=c-Date.now();n("change",d),d<=0?(d=0,l(),n("finish")):a=Kh(f),i.value=d};a=Kh(f)};return ze(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0}),sr(()=>{l()}),t({displayValue:o}),(c,f)=>(N(),Te(_(QW),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},bl({_:2},[un(c.$slots,(d,h)=>({name:h,fn:fe(()=>[Ve(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var uTe=Xe(lTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const cTe=Ut(uTe),fTe=Je({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),dTe={[nr]:(e,t)=>[e,t].every(kt)},hTe=te({name:"ElSteps"}),vTe=te({...hTe,props:fTe,emits:dTe,setup(e,{emit:t}){const n=e,r=We("steps"),{children:a,addChild:i,removeChild:o}=PM(Nt(),"ElStep");return ze(a,()=>{a.value.forEach((s,l)=>{s.setIndex(l)})}),tn("ElSteps",{props:n,steps:a,addStep:i,removeStep:o}),ze(()=>n.active,(s,l)=>{t(nr,s,l)}),(s,l)=>(N(),X("div",{class:H([_(r).b(),_(r).m(s.simple?"simple":s.direction)])},[Ve(s.$slots,"default")],2))}});var pTe=Xe(vTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const gTe=Je({title:{type:String,default:""},icon:{type:Kn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),mTe=te({name:"ElStep"}),yTe=te({...mTe,props:gTe,setup(e){const t=e,n=We("step"),r=U(-1),a=U({}),i=U(""),o=ct("ElSteps"),s=Nt();zt(()=>{ze([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([y])=>{S(y)},{immediate:!0})}),sr(()=>{o.removeStep(C.uid)});const l=R(()=>t.status||i.value),u=R(()=>{const y=o.steps.value[r.value-1];return y?y.currentStatus:"wait"}),c=R(()=>o.props.alignCenter),f=R(()=>o.props.direction==="vertical"),d=R(()=>o.props.simple),h=R(()=>o.steps.value.length),v=R(()=>{var y;return((y=o.steps.value[h.value-1])==null?void 0:y.uid)===(s==null?void 0:s.uid)}),p=R(()=>d.value?"":o.props.space),g=R(()=>[n.b(),n.is(d.value?"simple":o.props.direction),n.is("flex",v.value&&!p.value&&!c.value),n.is("center",c.value&&!f.value&&!d.value)]),m=R(()=>{const y={flexBasis:kt(p.value)?`${p.value}px`:p.value?p.value:`${100/(h.value-(c.value?0:1))}%`};return f.value||v.value&&(y.maxWidth=`${100/h.value}%`),y}),b=y=>{r.value=y},w=y=>{const x=y==="wait",T={transitionDelay:`${x?"-":""}${150*r.value}ms`},A=y===o.props.processStatus||x?0:100;T.borderWidth=A&&!d.value?"1px":0,T[o.props.direction==="vertical"?"height":"width"]=`${A}%`,a.value=T},S=y=>{y>r.value?i.value=o.props.finishStatus:y===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=xn({uid:s.uid,currentStatus:l,setIndex:b,calcProgress:w});return o.addStep(C),(y,x)=>(N(),X("div",{style:mt(_(m)),class:H(_(g))},[be(" icon & line "),ee("div",{class:H([_(n).e("head"),_(n).is(_(l))])},[_(d)?be("v-if",!0):(N(),X("div",{key:0,class:H(_(n).e("line"))},[ee("i",{class:H(_(n).e("line-inner")),style:mt(a.value)},null,6)],2)),ee("div",{class:H([_(n).e("icon"),_(n).is(y.icon||y.$slots.icon?"icon":"text")])},[Ve(y.$slots,"icon",{},()=>[y.icon?(N(),Te(_(vt),{key:0,class:H(_(n).e("icon-inner"))},{default:fe(()=>[(N(),Te(Xt(y.icon)))]),_:1},8,["class"])):_(l)==="success"?(N(),Te(_(vt),{key:1,class:H([_(n).e("icon-inner"),_(n).is("status")])},{default:fe(()=>[re(_(oy))]),_:1},8,["class"])):_(l)==="error"?(N(),Te(_(vt),{key:2,class:H([_(n).e("icon-inner"),_(n).is("status")])},{default:fe(()=>[re(_(Jo))]),_:1},8,["class"])):_(d)?be("v-if",!0):(N(),X("div",{key:3,class:H(_(n).e("icon-inner"))},qe(r.value+1),3))])],2)],2),be(" title & description "),ee("div",{class:H(_(n).e("main"))},[ee("div",{class:H([_(n).e("title"),_(n).is(_(l))])},[Ve(y.$slots,"title",{},()=>[Cn(qe(y.title),1)])],2),_(d)?(N(),X("div",{key:0,class:H(_(n).e("arrow"))},null,2)):(N(),X("div",{key:1,class:H([_(n).e("description"),_(n).is(_(l))])},[Ve(y.$slots,"description",{},()=>[Cn(qe(y.description),1)])],2))],2)],6))}});var e7=Xe(yTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const bTe=Ut(pTe,{Step:e7}),_Te=br(e7),wTe=Je({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:_w},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:Kn},activeActionIcon:{type:Kn},activeIcon:{type:Kn},inactiveIcon:{type:Kn},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:Ce(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),STe={[Kt]:e=>Gr(e)||Mt(e)||kt(e),[nr]:e=>Gr(e)||Mt(e)||kt(e),[Ja]:e=>Gr(e)||Mt(e)||kt(e)},CTe=["onClick"],xTe=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],TTe=["aria-hidden"],kTe=["aria-hidden"],ATe=["aria-hidden"],lk="ElSwitch",ETe=te({name:lk}),MTe=te({...ETe,props:wTe,emits:STe,setup(e,{expose:t,emit:n}){const r=e,a=Nt(),{formItem:i}=si(),o=jr(),s=We("switch");(T=>{T.forEach(A=>{$s({from:A[0],replacement:A[1],scope:lk,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},R(()=>{var M;return!!((M=a.vnode.props)!=null&&M[A[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}=oc(r,{formItemContext:i}),c=xi(R(()=>r.loading)),f=U(r.modelValue!==!1),d=U(),h=U(),v=R(()=>[s.b(),s.m(o.value),s.is("disabled",c.value),s.is("checked",w.value)]),p=R(()=>[s.e("label"),s.em("label","left"),s.is("active",!w.value)]),g=R(()=>[s.e("label"),s.em("label","right"),s.is("active",w.value)]),m=R(()=>({width:kr(r.width)}));ze(()=>r.modelValue,()=>{f.value=!0}),ze(()=>r.value,()=>{f.value=!1});const b=R(()=>f.value?r.modelValue:r.value),w=R(()=>b.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(b.value)||(n(Kt,r.inactiveValue),n(nr,r.inactiveValue),n(Ja,r.inactiveValue)),ze(w,T=>{var A;d.value.checked=T,r.validateEvent&&((A=i==null?void 0:i.validate)==null||A.call(i,"change").catch(M=>void 0))});const S=()=>{const T=w.value?r.inactiveValue:r.activeValue;n(Kt,T),n(nr,T),n(Ja,T),pt(()=>{d.value.checked=w.value})},C=()=>{if(c.value)return;const{beforeChange:T}=r;if(!T){S();return}const A=T();[Og(A),Gr(A)].includes(!0)||Kr(lk,"beforeChange must return type `Promise<boolean>` or `boolean`"),Og(A)?A.then(E=>{E&&S()}).catch(E=>{}):A&&S()},y=R(()=>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,A;(A=(T=d.value)==null?void 0:T.focus)==null||A.call(T)};return zt(()=>{d.value.checked=w.value}),t({focus:x,checked:w}),(T,A)=>(N(),X("div",{class:H(_(v)),style:mt(_(y)),onClick:xt(C,["prevent"])},[ee("input",{id:_(u),ref_key:"input",ref:d,class:H(_(s).e("input")),type:"checkbox",role:"switch","aria-checked":_(w),"aria-disabled":_(c),name:T.name,"true-value":T.activeValue,"false-value":T.inactiveValue,disabled:_(c),tabindex:T.tabindex,onChange:S,onKeydown:yn(C,["enter"])},null,42,xTe),!T.inlinePrompt&&(T.inactiveIcon||T.inactiveText)?(N(),X("span",{key:0,class:H(_(p))},[T.inactiveIcon?(N(),Te(_(vt),{key:0},{default:fe(()=>[(N(),Te(Xt(T.inactiveIcon)))]),_:1})):be("v-if",!0),!T.inactiveIcon&&T.inactiveText?(N(),X("span",{key:1,"aria-hidden":_(w)},qe(T.inactiveText),9,TTe)):be("v-if",!0)],2)):be("v-if",!0),ee("span",{ref_key:"core",ref:h,class:H(_(s).e("core")),style:mt(_(m))},[T.inlinePrompt?(N(),X("div",{key:0,class:H(_(s).e("inner"))},[T.activeIcon||T.inactiveIcon?(N(),Te(_(vt),{key:0,class:H(_(s).is("icon"))},{default:fe(()=>[(N(),Te(Xt(_(w)?T.activeIcon:T.inactiveIcon)))]),_:1},8,["class"])):T.activeText||T.inactiveText?(N(),X("span",{key:1,class:H(_(s).is("text")),"aria-hidden":!_(w)},qe(_(w)?T.activeText:T.inactiveText),11,kTe)):be("v-if",!0)],2)):be("v-if",!0),ee("div",{class:H(_(s).e("action"))},[T.loading?(N(),Te(_(vt),{key:0,class:H(_(s).is("loading"))},{default:fe(()=>[re(_(rc))]),_:1},8,["class"])):T.activeActionIcon&&_(w)?(N(),Te(_(vt),{key:1},{default:fe(()=>[(N(),Te(Xt(T.activeActionIcon)))]),_:1})):T.inactiveActionIcon&&!_(w)?(N(),Te(_(vt),{key:2},{default:fe(()=>[(N(),Te(Xt(T.inactiveActionIcon)))]),_:1})):be("v-if",!0)],2)],6),!T.inlinePrompt&&(T.activeIcon||T.activeText)?(N(),X("span",{key:1,class:H(_(g))},[T.activeIcon?(N(),Te(_(vt),{key:0},{default:fe(()=>[(N(),Te(Xt(T.activeIcon)))]),_:1})):be("v-if",!0),!T.activeIcon&&T.activeText?(N(),X("span",{key:1,"aria-hidden":!_(w)},qe(T.activeText),9,ATe)):be("v-if",!0)],2)):be("v-if",!0)],14,CTe))}});var ITe=Xe(MTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const DTe=Ut(ITe);/*!
  59. * escape-html
  60. * Copyright(c) 2012-2013 TJ Holowaychuk
  61. * Copyright(c) 2015 Andreas Lubbe
  62. * Copyright(c) 2015 Tiancheng "Timothy" Gu
  63. * MIT Licensed
  64. */var LTe=/["'&<>]/,PTe=RTe;function RTe(e){var t=""+e,n=LTe.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 OTe=as(PTe),CC=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},NTe=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"?lr(s,u):u(s,l,e))):(t!=="$key"&&Qt(s)&&"$value"in s&&(s=s.$value),[Qt(s)?lr(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)},t7=function(e,t){let n=null;return e.columns.forEach(r=>{r.id===t&&(n=r)}),n},$Te=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||Kr("ElTable",`No column matching with column-key: ${t}`),n},ON=function(e,t,n){const r=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?t7(e,r[0]):null},ya=(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)},bf=function(e,t){const n={};return(e||[]).forEach((r,a)=>{n[ya(r,t)]={row:r,index:a}}),n};function BTe(e,t){const n={};let r;for(r in e)n[r]=e[r];for(r in t)if(fn(t,r)){const a=t[r];typeof a<"u"&&(n[r]=a)}return n}function nI(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function n7(e){return e===""||e!==void 0&&(e=nI(e),Number.isNaN(e)&&(e=80)),e}function FTe(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function VTe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function pg(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,ft(t.children)&&t.children.forEach(l=>{pg(e,l,n??!i)})};return Gr(n)?n&&!i?o("add"):!n&&i&&o("remove"):o(i?"remove":"add"),r}function zTe(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 el;function HTe(e,t,n,r,a){a=Bz({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=OTe(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()}el==null||el(),el=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",el),el=void 0}catch{}};let c=null,f=u,d=el;a.enterable&&({onOpen:f,onClose:d}=yH({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:el}));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=pH(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",el),c}function r7(e){return e.children?vle(e.children,r7):[e]}function NN(e,t){return e+t.colSpan}const a7=(e,t,n,r)=>{let a=0,i=e;const o=n.states.columns.value;if(r){const l=r7(r[e]);a=o.slice(0,o.indexOf(l[0])).reduce(NN,0),i=a+l.reduce(NN,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}:{}},rI=(e,t,n,r,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=a7(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 $N(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const aI=(e,t,n,r)=>{const{direction:a,start:i=0,after:o=0}=a7(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($N,0):s.right=u.slice(o+1).reverse().reduce($N,0),s},ev=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function WTe(e){const t=Nt(),n=U(!1),r=U([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=bf(r.value,u);r.value=l.reduce((f,d)=>{const h=ya(d,u);return c[h]&&f.push(d),f},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{pg(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=bf(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?!!bf(r.value,u)[ya(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function GTe(e){const t=Nt(),n=U(null),r=U(null),a=u=>{t.store.assertRowKey(),n.value=u,o(u)},i=()=>{n.value=null},o=u=>{const{data:c,rowKey:f}=e;let d=null;f.value&&(d=(_(c)||[]).find(h=>ya(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=ya(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 UTe(e){const t=U([]),n=U({}),r=U(16),a=U(!1),i=U({}),o=U("hasChildren"),s=U("children"),l=Nt(),u=R(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return f(m)}),c=R(()=>{const m=e.rowKey.value,b=Object.keys(i.value),w={};return b.length&&b.forEach(S=>{if(i.value[S].length){const C={children:[]};i.value[S].forEach(y=>{const x=ya(y,m);C.children.push(x),y[o.value]&&!w[x]&&(w[x]={children:[]})}),w[S]=C}}),w}),f=m=>{const b=e.rowKey.value,w={};return zTe(m,(S,C,y)=>{const x=ya(S,b);Array.isArray(C)?w[x]={children:C.map(T=>ya(T,b)),level:y}:a.value&&(w[x]={children:[],lazy:!0,level:y})},s.value,o.value),w},d=(m=!1,b=(w=>(w=l.store)==null?void 0:w.states.defaultExpandAll.value)())=>{var w;const S=u.value,C=c.value,y=Object.keys(S),x={};if(y.length){const T=_(n),A=[],M=(I,L)=>{if(m)return t.value?b||t.value.includes(L):!!(b||I!=null&&I.expanded);{const O=b||t.value&&t.value.includes(L);return!!(I!=null&&I.expanded||O)}};y.forEach(I=>{const L=T[I],O={...S[I]};if(O.expanded=M(L,I),O.lazy){const{loaded:z=!1,loading:F=!1}=L||{};O.loaded=!!z,O.loading=!!F,A.push(I)}x[I]=O});const E=Object.keys(C);a.value&&E.length&&A.length&&E.forEach(I=>{const L=T[I],O=C[I].children;if(A.includes(I)){if(x[I].children.length!==0)throw new Error("[ElTable]children must be an empty array.");x[I].children=O}else{const{loaded:z=!1,loading:F=!1}=L||{};x[I]={lazy:!0,loaded:!!z,loading:!!F,expanded:M(L,I),children:O,level:""}}})}n.value=x,(w=l.store)==null||w.updateTableScrollY()};ze(()=>t.value,()=>{d(!0)}),ze(()=>u.value,()=>{d()}),ze(()=>c.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,b)=>{l.store.assertRowKey();const w=e.rowKey.value,S=ya(m,w),C=S&&n.value[S];if(S&&C&&"expanded"in C){const y=C.expanded;b=typeof b>"u"?!C.expanded:b,n.value[S].expanded=b,y!==b&&l.emit("expand-change",m,b),l.store.updateTableScrollY()}},p=m=>{l.store.assertRowKey();const b=e.rowKey.value,w=ya(m,b),S=n.value[w];a.value&&S&&"loaded"in S&&!S.loaded?g(m,w,S):v(m,void 0)},g=(m,b,w)=>{const{load:S}=l.props;S&&!n.value[b].loaded&&(n.value[b].loading=!0,S(m,w,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 KTe=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:NTe(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Kb=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Kb(n.children)):t.push(n)}),t};function jTe(){var e;const t=Nt(),{size:n}=Jr((e=t.proxy)==null?void 0:e.$props),r=U(null),a=U([]),i=U([]),o=U(!1),s=U([]),l=U([]),u=U([]),c=U([]),f=U([]),d=U([]),h=U([]),v=U([]),p=[],g=U(0),m=U(0),b=U(0),w=U(!1),S=U([]),C=U(!1),y=U(!1),x=U(null),T=U({}),A=U(null),M=U(null),E=U(null),I=U(null),L=U(null);ze(a,()=>t.state&&$(!1),{deep:!0});const O=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},z=lt=>{var Me;(Me=lt.children)==null||Me.forEach(ye=>{ye.fixed=lt.fixed,z(ye)})},F=()=>{s.value.forEach($e=>{z($e)}),c.value=s.value.filter($e=>$e.fixed===!0||$e.fixed==="left"),f.value=s.value.filter($e=>$e.fixed==="right"),c.value.length>0&&s.value[0]&&s.value[0].type==="selection"&&!s.value[0].fixed&&(s.value[0].fixed=!0,c.value.unshift(s.value[0]));const lt=s.value.filter($e=>!$e.fixed);l.value=[].concat(c.value).concat(lt).concat(f.value);const Me=Kb(lt),ye=Kb(c.value),ge=Kb(f.value);g.value=Me.length,m.value=ye.length,b.value=ge.length,u.value=[].concat(ye).concat(Me).concat(ge),o.value=c.value.length>0||f.value.length>0},$=(lt,Me=!1)=>{lt&&F(),Me?t.state.doLayout():t.state.debouncedUpdateLayout()},V=lt=>S.value.includes(lt),P=()=>{w.value=!1,S.value.length&&(S.value=[],t.emit("selection-change",[]))},G=()=>{let lt;if(r.value){lt=[];const Me=bf(S.value,r.value),ye=bf(a.value,r.value);for(const ge in Me)fn(Me,ge)&&!ye[ge]&&lt.push(Me[ge].row)}else lt=S.value.filter(Me=>!a.value.includes(Me));if(lt.length){const Me=S.value.filter(ye=>!lt.includes(ye));S.value=Me,t.emit("selection-change",Me.slice())}},j=()=>(S.value||[]).slice(),J=(lt,Me=void 0,ye=!0)=>{if(pg(S.value,lt,Me)){const $e=(S.value||[]).slice();ye&&t.emit("select",$e,lt),t.emit("selection-change",$e)}},ne=()=>{var lt,Me;const ye=y.value?!w.value:!(w.value||S.value.length);w.value=ye;let ge=!1,$e=0;const se=(Me=(lt=t==null?void 0:t.store)==null?void 0:lt.states)==null?void 0:Me.rowKey.value;a.value.forEach((Qe,wt)=>{const Vt=wt+$e;x.value?x.value.call(null,Qe,Vt)&&pg(S.value,Qe,ye)&&(ge=!0):pg(S.value,Qe,ye)&&(ge=!0),$e+=ce(ya(Qe,se))}),ge&&t.emit("selection-change",S.value?S.value.slice():[]),t.emit("select-all",S.value)},ve=()=>{const lt=bf(S.value,r.value);a.value.forEach(Me=>{const ye=ya(Me,r.value),ge=lt[ye];ge&&(S.value[ge.index]=Me)})},le=()=>{var lt,Me,ye;if(((lt=a.value)==null?void 0:lt.length)===0){w.value=!1;return}let ge;r.value&&(ge=bf(S.value,r.value));const $e=function(Vt){return ge?!!ge[ya(Vt,r.value)]:S.value.includes(Vt)};let se=!0,Qe=0,wt=0;for(let Vt=0,Zn=(a.value||[]).length;Vt<Zn;Vt++){const rr=(ye=(Me=t==null?void 0:t.store)==null?void 0:Me.states)==null?void 0:ye.rowKey.value,$r=Vt+wt,Fn=a.value[Vt],Re=x.value&&x.value.call(null,Fn,$r);if($e(Fn))Qe++;else if(!x.value||Re){se=!1;break}wt+=ce(ya(Fn,rr))}Qe===0&&(se=!1),w.value=se},ce=lt=>{var Me;if(!t||!t.store)return 0;const{treeData:ye}=t.store.states;let ge=0;const $e=(Me=ye.value[lt])==null?void 0:Me.children;return $e&&(ge+=$e.length,$e.forEach(se=>{ge+=ce(se)})),ge},ue=(lt,Me)=>{Array.isArray(lt)||(lt=[lt]);const ye={};return lt.forEach(ge=>{T.value[ge.id]=Me,ye[ge.columnKey||ge.id]=Me}),ye},Q=(lt,Me,ye)=>{M.value&&M.value!==lt&&(M.value.order=null),M.value=lt,E.value=Me,I.value=ye},_e=()=>{let lt=_(i);Object.keys(T.value).forEach(Me=>{const ye=T.value[Me];if(!ye||ye.length===0)return;const ge=t7({columns:u.value},Me);ge&&ge.filterMethod&&(lt=lt.filter($e=>ye.some(se=>ge.filterMethod.call(null,se,$e,ge))))}),A.value=lt},Pe=()=>{a.value=KTe(A.value,{sortingColumn:M.value,sortProp:E.value,sortOrder:I.value})},pe=(lt=void 0)=>{lt&&lt.filter||_e(),Pe()},Y=lt=>{const{tableHeaderRef:Me}=t.refs;if(!Me)return;const ye=Object.assign({},Me.filterPanels),ge=Object.keys(ye);if(ge.length)if(typeof lt=="string"&&(lt=[lt]),Array.isArray(lt)){const $e=lt.map(se=>$Te({columns:u.value},se));ge.forEach(se=>{const Qe=$e.find(wt=>wt.id===se);Qe&&(Qe.filteredValue=[])}),t.store.commit("filterChange",{column:$e,values:[],silent:!0,multi:!0})}else ge.forEach($e=>{const se=u.value.find(Qe=>Qe.id===$e);se&&(se.filteredValue=[])}),T.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},ie=()=>{M.value&&(Q(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:me,toggleRowExpansion:De,updateExpandRows:Be,states:Oe,isRowExpanded:de}=WTe({data:a,rowKey:r}),{updateTreeExpandKeys:we,toggleTreeExpansion:Se,updateTreeData:Ie,loadOrToggle:Ee,states:Ge}=UTe({data:a,rowKey:r}),{updateCurrentRowData:Ue,updateCurrentRow:oe,setCurrentRowKey:ke,states:nt}=GTe({data:a,rowKey:r});return{assertRowKey:O,updateColumns:F,scheduleLayout:$,isSelected:V,clearSelection:P,cleanSelection:G,getSelectionRows:j,toggleRowSelection:J,_toggleAllSelection:ne,toggleAllSelection:null,updateSelectionByRowKey:ve,updateAllSelected:le,updateFilters:ue,updateCurrentRow:oe,updateSort:Q,execFilter:_e,execSort:Pe,execQuery:pe,clearFilter:Y,clearSort:ie,toggleRowExpansion:De,setExpandRowKeysAdapter:lt=>{me(lt),we(lt)},setCurrentRowKey:ke,toggleRowExpansionAdapter:(lt,Me)=>{u.value.some(({type:ge})=>ge==="expand")?De(lt,Me):Se(lt,Me)},isRowExpanded:de,updateExpandRows:Be,updateCurrentRowData:Ue,loadOrToggle:Ee,updateTreeData:Ie,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:w,selection:S,reserveSelection:C,selectOnIndeterminate:y,selectable:x,filters:T,filteredData:A,sortingColumn:M,sortProp:E,sortOrder:I,hoverRow:L,...Oe,...Ge,...nt}}}function uk(e,t){return e.map(n=>{var r;return n.id===t.id?t:((r=n.children)!=null&&r.length&&(n.children=uk(n.children,t)),n)})}function ck(e){e.forEach(t=>{var n,r;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(r=t.children)!=null&&r.length&&ck(t.children)}),e.sort((t,n)=>t.no-n.no)}function YTe(){const e=Nt(),t=jTe();return{ns:We("table"),...t,mutations:{setData(o,s){const l=_(o._data)!==s;o.data.value=s,o._data.value=s,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),_(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=_(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=uk(c,l)):(c.push(s),f=c),ck(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&&(ck(o._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(o,s,l,u){const c=_(o._columns)||[];if(l)l.children.splice(l.children.findIndex(d=>d.id===s.id),1),pt(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=uk(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=_(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=_(l),d=_(u),h=_(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(){pt(()=>e.layout.updateScrollY.apply(e.layout))}}}const gg={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 qTe(e,t){if(!e)throw new Error("Table is required.");const n=YTe();return n.toggleAllSelection=ni(n._toggleAllSelection,10),Object.keys(gg).forEach(r=>{i7(o7(t,r),r,n)}),XTe(n,t),n}function XTe(e,t){Object.keys(gg).forEach(n=>{ze(()=>o7(t,n),r=>{i7(r,n,e)})})}function i7(e,t,n){let r=e,a=gg[t];typeof gg[t]=="object"&&(a=a.key,r=r||gg[t].default),n.states[a].value=r}function o7(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 ZTe{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=U(null),this.scrollX=U(!1),this.scrollY=U(!1),this.bodyWidth=U(null),this.fixedWidth=U(null),this.rightFixedWidth=U(null),this.gutterWidth=0;for(const n in t)fn(t,n)&&(Rn(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(!vn)return;const r=this.table.vnode.el;if(t=FTe(t),this.height.value=Number(t),!r&&(t||t===0))return pt(()=>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(!vn)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:JTe}=yo,QTe=te({name:"ElTableFilterPanel",components:{ElCheckbox:yo,ElCheckboxGroup:JTe,ElScrollbar:$l,ElTooltip:ri,ElIcon:vt,ArrowDown:tc,ArrowUp:mw},directives:{ClickOutside:Gu},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=Nt(),{t:n}=bn(),r=We("table-filter"),a=t==null?void 0:t.parent;a.filterPanels.value[e.column.id]||(a.filterPanels.value[e.column.id]=t);const i=U(!1),o=U(null),s=R(()=>e.column&&e.column.filters),l=R({get:()=>{var S;return(((S=e.column)==null?void 0:S.filteredValue)||[])[0]},set:S=>{u.value&&(typeof S<"u"&&S!==null?u.value.splice(0,1,S):u.value.splice(0,1))}}),u=R({get(){return e.column?e.column.filteredValue||[]:[]},set(S){e.column&&e.upDataColumn("filteredValue",S)}}),c=R(()=>e.column?e.column.filterMultiple:!0),f=S=>S.value===l.value,d=()=>{i.value=!1},h=S=>{S.stopPropagation(),i.value=!i.value},v=()=>{i.value=!1},p=()=>{b(u.value),d()},g=()=>{u.value=[],b(u.value),d()},m=S=>{l.value=S,b(typeof S<"u"&&S!==null?u.value:[]),d()},b=S=>{e.store.commit("filterChange",{column:e.column,values:S}),e.store.updateAllSelected()};ze(i,S=>{e.column&&e.upDataColumn("filterOpened",S)},{immediate:!0});const w=R(()=>{var S,C;return(C=(S=o.value)==null?void 0:S.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:w,tooltip:o}}}),eke={key:0},tke=["disabled"],nke=["label","onClick"];function rke(e,t,n,r,a,i){const o=Dt("el-checkbox"),s=Dt("el-checkbox-group"),l=Dt("el-scrollbar"),u=Dt("arrow-up"),c=Dt("arrow-down"),f=Dt("el-icon"),d=Dt("el-tooltip"),h=Hg("click-outside");return N(),Te(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:fe(()=>[e.multiple?(N(),X("div",eke,[ee("div",{class:H(e.ns.e("content"))},[re(l,{"wrap-class":e.ns.e("wrap")},{default:fe(()=>[re(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:H(e.ns.e("checkbox-group"))},{default:fe(()=>[(N(!0),X(gt,null,un(e.filters,v=>(N(),Te(o,{key:v.value,label:v.value},{default:fe(()=>[Cn(qe(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),ee("div",{class:H(e.ns.e("bottom"))},[ee("button",{class:H({[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))},qe(e.t("el.table.confirmFilter")),11,tke),ee("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},qe(e.t("el.table.resetFilter")),1)],2)])):(N(),X("ul",{key:1,class:H(e.ns.e("list"))},[ee("li",{class:H([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))},qe(e.t("el.table.clearFilter")),3),(N(!0),X(gt,null,un(e.filters,v=>(N(),X("li",{key:v.value,class:H([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},qe(v.text),11,nke))),128))],2))]),default:fe(()=>[Rt((N(),X("span",{class:H([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[re(f,null,{default:fe(()=>[e.column.filterOpened?(N(),Te(u,{key:0})):(N(),Te(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var ake=Xe(QTe,[["render",rke],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function s7(e){const t=Nt();nw(()=>{n.value.addObserver(t)}),zt(()=>{r(n.value),a(n.value)}),Ll(()=>{r(n.value),a(n.value)}),Pl(()=>{n.value.removeObserver(t)});const n=R(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),r=i=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,f=s.length;c<f;c++){const d=s[c],h=d.getAttribute("name"),v=u[h];v&&d.setAttribute("width",v.realWidth||v.width)}},a=i=>{var o,s;const l=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((s=e.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const d=u[c];d.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",d.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:a}}const Us=Symbol("ElTable");function ike(e,t){const n=Nt(),r=ct(Us),a=p=>{p.stopPropagation()},i=(p,g)=>{!g.filters&&g.sortable?v(p,g,!1):g.filterable&&!g.sortable&&a(p),r==null||r.emit("header-click",g,p)},o=(p,g)=>{r==null||r.emit("header-contextmenu",g,p)},s=U(null),l=U(!1),u=U({}),c=(p,g)=>{if(vn&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const m=r;t("set-drag-visible",!0);const w=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,S=n.vnode.el.querySelector(`th.${g.id}`),C=S.getBoundingClientRect(),y=C.left-w+30;As(S,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:C.right-w,startColumnLeft:C.left-w,tableLeft:w};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=M=>{const E=M.clientX-u.value.startMouseLeft,I=u.value.startLeft+E;x.style.left=`${Math.max(y,I)}px`},A=()=>{if(l.value){const{startColumnLeft:M,startLeft:E}=u.value,L=Number.parseInt(x.style.left,10)-M;g.width=g.realWidth=L,m==null||m.emit("header-dragend",g.width,E-M,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",A),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{bi(S,"noclick")},0)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",A)}},f=(p,g)=>{if(g.children&&g.children.length>0)return;const m=p.target;if(!ho(m))return;const b=m==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const w=b.getBoundingClientRect(),S=document.body.style;w.width>12&&w.right-p.pageX<8?(S.cursor="col-resize",jo(b,"is-sortable")&&(b.style.cursor="col-resize"),s.value=g):l.value||(S.cursor="",jo(b,"is-sortable")&&(b.style.cursor="pointer"),s.value=null)}},d=()=>{vn&&(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 w=g.order===m?null:m||h(g),S=(b=p.target)==null?void 0:b.closest("th");if(S&&jo(S,"noclick")){bi(S,"noclick");return}if(!g.sortable)return;const C=e.store.states;let y=C.sortProp.value,x;const T=C.sortingColumn.value;(T!==g||T===g&&T.order===null)&&(T&&(T.order=null),C.sortingColumn.value=g,y=g.property),w?x=g.order=w:x=g.order=null,C.sortProp.value=y,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 oke(e){const t=ct(Us),n=We("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=aI(l,c.fixed,e.store,u);return ev(h,"left"),ev(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=rI(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 l7=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,l7(n.children))):t.push(n)}),t},ske=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 l7(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 lke(e){const t=ct(Us),n=R(()=>ske(e.store.states.originColumns.value));return{isGroup:R(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var uke=te({name:"ElTableHeader",components:{ElCheckbox:yo},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const n=Nt(),r=ct(Us),a=We("table"),i=U({}),{onColumnsChange:o,onScrollableChange:s}=s7(r);zt(async()=>{await pt(),await pt();const{prop:y,order:x}=e.defaultSort;r==null||r.store.commit("sort",{prop:y,order:x,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=ike(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:b}=oke(e),{isGroup:w,toggleAllSelection:S,columnRows:C}=lke(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:w,toggleAllSelection:S}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:v}=this;let p=1;return bt("thead",{class:{[e.is("group")]:t}},n.map((g,m)=>bt("tr",{class:i(m),key:m,style:o(m)},g.map((b,w)=>(b.rowSpan>p&&(p=b.rowSpan),bt("th",{class:a(m,w,g,b),colspan:b.colSpan,key:`${b.id}-thead`,rowspan:b.rowSpan,style:r(m,w,g,b),onClick:S=>s(S,b),onContextmenu:S=>l(S,b),onMousedown:S=>u(S,b),onMousemove:S=>c(S,b),onMouseout:d},[bt("div",{class:["cell",b.filteredValue&&b.filteredValue.length>0?"highlight":""]},[b.renderHeader?b.renderHeader({column:b,$index:w,store:h,_self:v}):b.label,b.sortable&&bt("span",{onClick:S=>f(S,b),class:"caret-wrapper"},[bt("i",{onClick:S=>f(S,b,"ascending"),class:"sort-caret ascending"}),bt("i",{onClick:S=>f(S,b,"descending"),class:"sort-caret descending"})]),b.filterable&&bt(ake,{store:h,placement:b.filterPlacement||"bottom-start",column:b,upDataColumn:(S,C)=>{b[S]=C}})])]))))))}});function cke(e){const t=ct(Us),n=U(""),r=U(bt("div")),{nextZIndex:a}=_v(),i=(v,p,g)=>{var m;const b=t,w=CC(v);let S;const C=(m=b==null?void 0:b.vnode.el)==null?void 0:m.dataset.prefix;w&&(S=ON({columns:e.store.states.columns.value},w,C),S&&(b==null||b.emit(`cell-${g}`,p,S,w,v))),b==null||b.emit(`row-${g}`,p,S,v)},o=(v,p)=>{i(v,p,"dblclick")},s=(v,p)=>{e.store.commit("setCurrentRow",p),i(v,p,"click")},l=(v,p)=>{i(v,p,"contextmenu")},u=ni(v=>{e.store.commit("setHoverRow",v)},30),c=ni(()=>{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,w=Number.parseInt(p.paddingBottom,10)||0;return{left:g,right:m,top:b,bottom:w}};return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(v,p,g)=>{var m;const b=t,w=CC(v),S=(m=b==null?void 0:b.vnode.el)==null?void 0:m.dataset.prefix;if(w){const $=ON({columns:e.store.states.columns.value},w,S),V=b.hoverState={cell:w,column:$,row:p};b==null||b.emit("cell-mouse-enter",V.row,V.column,V.cell,v)}if(!g)return;const C=v.target.querySelector(".cell");if(!(jo(C,`${S}-tooltip`)&&C.childNodes.length))return;const y=document.createRange();y.setStart(C,0),y.setEnd(C,C.childNodes.length);let x=y.getBoundingClientRect().width,T=y.getBoundingClientRect().height;x-Math.floor(x)<.001&&(x=Math.floor(x)),T-Math.floor(T)<.001&&(T=Math.floor(T));const{top:E,left:I,right:L,bottom:O}=f(C),z=I+L,F=E+O;(x+z>C.offsetWidth||T+F>C.offsetHeight||C.scrollWidth>C.offsetWidth)&&HTe(t==null?void 0:t.refs.tableWrapper,w,w.innerText||w.textContent,a,g)},handleCellMouseLeave:v=>{if(!CC(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 fke(e){const t=ct(Us),n=We("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=aI(c,e==null?void 0:e.fixed,e.store);return ev(p,"left"),ev(p,"right"),Object.assign({},v,p)},getCellClass:(u,c,f,d,h)=>{const v=rI(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 dke(e){const t=ct(Us),n=We("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=cke(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=fke(e),b=R(()=>e.store.states.columns.value.findIndex(({type:x})=>x==="default")),w=(x,T)=>{const A=t.props.rowKey;return A?ya(x,A):T},S=(x,T,A,M=!1)=>{const{tooltipEffect:E,tooltipOptions:I,store:L}=e,{indent:O,columns:z}=L.states,F=h(x,T);let $=!0;return A&&(F.push(n.em("row",`level-${A.level}`)),$=A.display),bt("tr",{style:[$?null:{display:"none"},d(x,T)],class:F,key:w(x,T),onDblclick:P=>r(P,x),onClick:P=>a(P,x),onContextmenu:P=>i(P,x),onMouseenter:()=>o(T),onMouseleave:s},z.value.map((P,G)=>{const{rowspan:j,colspan:J}=g(x,P,T,G);if(!j||!J)return null;const ne=Object.assign({},P);ne.realWidth=m(z.value,J,G);const ve={store:e.store,_self:e.context||t,column:ne,row:x,$index:T,cellIndex:G,expanded:M};G===b.value&&A&&(ve.treeNode={indent:A.level*O.value,level:A.level},typeof A.expanded=="boolean"&&(ve.treeNode.expanded=A.expanded,"loading"in A&&(ve.treeNode.loading=A.loading),"noLazyChildren"in A&&(ve.treeNode.noLazyChildren=A.noLazyChildren)));const le=`${T},${G}`,ce=ne.columnKey||ne.rawColumnKey||"",ue=C(G,P,ve),Q=P.showOverflowTooltip&&Bz({effect:E},I,P.showOverflowTooltip);return bt("td",{style:v(T,G,x,P),class:p(T,G,x,P,J-1),key:`${ce}${le}`,rowspan:j,colspan:J,onMouseenter:_e=>l(_e,x,Q),onMouseleave:u},[ue])}))},C=(x,T,A)=>T.renderCell(A);return{wrappedRowRender:(x,T)=>{const A=e.store,{isRowExpanded:M,assertRowKey:E}=A,{treeData:I,lazyTreeNodeMap:L,childrenColumnName:O,rowKey:z}=A.states,F=A.states.columns.value;if(F.some(({type:V})=>V==="expand")){const V=M(x),P=S(x,T,void 0,V),G=t.renderExpanded;return V?G?[[P,bt("tr",{key:`expanded-row__${P.key}`},[bt("td",{colspan:F.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[G({row:x,$index:T,store:A,expanded:V})])])]]:(console.error("[Element Error]renderExpanded is required."),P):[[P]]}else if(Object.keys(I.value).length){E();const V=ya(x,z.value);let P=I.value[V],G=null;P&&(G={expanded:P.expanded,level:P.level,display:!0},typeof P.lazy=="boolean"&&(typeof P.loaded=="boolean"&&P.loaded&&(G.noLazyChildren=!(P.children&&P.children.length)),G.loading=P.loading));const j=[S(x,T,G)];if(P){let J=0;const ne=(le,ce)=>{le&&le.length&&ce&&le.forEach(ue=>{const Q={display:ce.display&&ce.expanded,level:ce.level+1,expanded:!1,noLazyChildren:!1,loading:!1},_e=ya(ue,z.value);if(_e==null)throw new Error("For nested data item, row-key is required.");if(P={...I.value[_e]},P&&(Q.expanded=P.expanded,P.level=P.level||Q.level,P.display=!!(P.expanded&&Q.display),typeof P.lazy=="boolean"&&(typeof P.loaded=="boolean"&&P.loaded&&(Q.noLazyChildren=!(P.children&&P.children.length)),Q.loading=P.loading)),J++,j.push(S(ue,T+J,Q)),P){const Pe=L.value[_e]||ue[O.value];ne(Pe,P)}})};P.display=!0;const ve=L.value[V]||x[O.value];ne(ve,P)}return j}else return S(x,T,void 0)},tooltipContent:c,tooltipTrigger:f}}const hke={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 vke=te({name:"ElTableBody",props:hke,setup(e){const t=Nt(),n=ct(Us),r=We("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=dke(e),{onColumnsChange:s,onScrollableChange:l}=s7(n);return ze(e.store.states.hoverRow,(u,c)=>{!e.store.states.isComplex.value||!vn||Kh(()=>{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&&bi(h,"hover-row"),v&&As(v,"hover-row")})}),Pl(()=>{var u;(u=el)==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 bt("tbody",{tabIndex:-1},[n.reduce((r,a)=>r.concat(e(a,r.length)),[])])}});function iI(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 bt("colgroup",{},n.map(a=>bt("col",r(a))))}iI.props=["columns","tableLayout"];function pke(){const e=ct(Us),t=e==null?void 0:e.store,n=R(()=>t.states.fixedLeafColumnsLength.value),r=R(()=>t.states.rightFixedColumns.value.length),a=R(()=>t.states.columns.value.length),i=R(()=>t.states.fixedColumns.value.length),o=R(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:t.states.columns}}function gke(e){const{columns:t}=pke(),n=We("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[n.e("cell"),s.id,s.align,s.labelClassName,...rI(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=aI(o,i.fixed,e.store);return ev(s,"left"),ev(s,"right"),s},columns:t}}var mke=te({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:r}=gke(e);return{ns:We("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)}),bt("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[iI({columns:e}),bt("tbody",[bt("tr",{},[...e.map((l,u)=>bt("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(e,u),style:t(l,u)},[bt("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function yke(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 bke(e,t,n,r){const a=U(!1),i=U(null),o=U(!1),s=P=>{o.value=P},l=U({width:null,height:null,headerHeight:null}),u=U(!1),c={display:"inline-block",verticalAlign:"middle"},f=U(),d=U(0),h=U(0),v=U(0),p=U(0),g=U(0);Oi(()=>{t.setHeight(e.height)}),Oi(()=>{t.setMaxHeight(e.maxHeight)}),ze(()=>[e.currentRowKey,n.states.rowKey],([P,G])=>{!_(G)||!_(P)||n.setCurrentRowKey(`${P}`)},{immediate:!0}),ze(()=>e.data,P=>{r.store.commit("setData",P)},{immediate:!0,deep:!0}),Oi(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const m=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},b=(P,G)=>{const{pixelX:j,pixelY:J}=G;Math.abs(j)>=Math.abs(J)&&(r.refs.bodyWrapper.scrollLeft+=G.pixelX/5)},w=R(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),S=R(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),C=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(A)};zt(async()=>{await pt(),n.updateColumns(),M(),requestAnimationFrame(C);const P=r.vnode.el,G=r.refs.headerWrapper;e.flexible&&P&&P.parentElement&&(P.parentElement.style.minWidth="0"),l.value={width:f.value=P.offsetWidth,height:P.offsetHeight,headerHeight:e.showHeader&&G?G.offsetHeight:null},n.states.columns.value.forEach(j=>{j.filteredValue&&j.filteredValue.length&&r.store.commit("filterChange",{column:j,values:j.filteredValue,silent:!0})}),r.$ready=!0});const y=(P,G)=>{if(!P)return;const j=Array.from(P.classList).filter(J=>!J.startsWith("is-scrolling-"));j.push(t.scrollX.value?G:"is-scrolling-none"),P.className=j.join(" ")},x=P=>{const{tableWrapper:G}=r.refs;y(G,P)},T=P=>{const{tableWrapper:G}=r.refs;return!!(G&&G.classList.contains(P))},A=function(){if(!r.refs.scrollBarRef)return;if(!t.scrollX.value){const ce="is-scrolling-none";T(ce)||x(ce);return}const P=r.refs.scrollBarRef.wrapRef;if(!P)return;const{scrollLeft:G,offsetWidth:j,scrollWidth:J}=P,{headerWrapper:ne,footerWrapper:ve}=r.refs;ne&&(ne.scrollLeft=G),ve&&(ve.scrollLeft=G);const le=J-j-1;G>=le?x("is-scrolling-right"):x(G===0?"is-scrolling-left":"is-scrolling-middle")},M=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&ir(r.refs.scrollBarRef.wrapRef,"scroll",A,{passive:!0}),e.fit?$a(r.vnode.el,E):ir(window,"resize",E),$a(r.refs.bodyWrapper,()=>{var P,G;E(),(G=(P=r.refs)==null?void 0:P.scrollBarRef)==null||G.update()}))},E=()=>{var P,G,j,J;const ne=r.vnode.el;if(!r.$ready||!ne)return;let ve=!1;const{width:le,height:ce,headerHeight:ue}=l.value,Q=f.value=ne.offsetWidth;le!==Q&&(ve=!0);const _e=ne.offsetHeight;(e.height||w.value)&&ce!==_e&&(ve=!0);const Pe=e.tableLayout==="fixed"?r.refs.headerWrapper:(P=r.refs.tableHeaderRef)==null?void 0:P.$el;e.showHeader&&(Pe==null?void 0:Pe.offsetHeight)!==ue&&(ve=!0),d.value=((G=r.refs.tableWrapper)==null?void 0:G.scrollHeight)||0,v.value=(Pe==null?void 0:Pe.scrollHeight)||0,p.value=((j=r.refs.footerWrapper)==null?void 0:j.offsetHeight)||0,g.value=((J=r.refs.appendWrapper)==null?void 0:J.offsetHeight)||0,h.value=d.value-v.value-p.value-g.value,ve&&(l.value={width:Q,height:_e,headerHeight:e.showHeader&&(Pe==null?void 0:Pe.offsetHeight)||0},C())},I=jr(),L=R(()=>{const{bodyWidth:P,scrollY:G,gutterWidth:j}=t;return P.value?`${P.value-(G.value?j:0)}px`:""}),O=R(()=>e.maxHeight?"fixed":e.tableLayout),z=R(()=>{if(e.data&&e.data.length)return null;let P="100%";e.height&&h.value&&(P=`${h.value}px`);const G=f.value;return{width:G?`${G}px`:"",height:P}}),F=R(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),$=R(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`}:{maxHeight:`${e.maxHeight-v.value-p.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:m,handleHeaderFooterMousewheel:b,tableSize:I,emptyBlockStyle:z,handleFixedMousewheel:(P,G)=>{const j=r.refs.bodyWrapper;if(Math.abs(G.spinY)>0){const J=j.scrollTop;G.pixelY<0&&J!==0&&P.preventDefault(),G.pixelY>0&&j.scrollHeight-j.clientHeight>J&&P.preventDefault(),j.scrollTop+=Math.ceil(G.pixelY/5)}else j.scrollLeft+=Math.ceil(G.pixelX/5)},resizeProxyVisible:o,bodyWidth:L,resizeState:l,doLayout:C,tableBodyStyles:S,tableLayout:O,scrollbarViewStyle:c,tableInnerStyle:F,scrollbarStyle:$}}function _ke(e){const t=U(),n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},o=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{o.forEach(s=>s())}),t.value.observe(a,i)};zt(()=>{n()}),Pl(()=>{var r;(r=t.value)==null||r.disconnect()})}var wke={data:{type:Array,default:()=>[]},size:Sa,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 Ske=()=>{const e=U(),t=(i,o)=>{const s=e.value;s&&s.scrollTo(i,o)},n=(i,o)=>{const s=e.value;s&&kt(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 Cke=1;const xke=te({name:"ElTable",directives:{Mousewheel:lge},components:{TableHeader:uke,TableBody:vke,TableFooter:mke,ElScrollbar:$l,hColgroup:iI},props:wke,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}=bn(),n=We("table"),r=Nt();tn(Us,r);const a=qTe(r,e);r.store=a;const i=new ZTe({store:r.store,table:r,fit:e.fit,showHeader:e.showHeader});r.layout=i;const o=R(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=yke(a),{isHidden:g,renderExpanded:m,setDragVisible:b,isGroup:w,handleMouseLeave:S,handleHeaderFooterMousewheel:C,tableSize:y,emptyBlockStyle:x,handleFixedMousewheel:T,resizeProxyVisible:A,bodyWidth:M,resizeState:E,doLayout:I,tableBodyStyles:L,tableLayout:O,scrollbarViewStyle:z,tableInnerStyle:F,scrollbarStyle:$}=bke(e,i,a,r),{scrollBarRef:V,scrollTo:P,setScrollLeft:G,setScrollTop:j}=Ske(),J=ni(I,50),ne=`${n.namespace.value}-table_${Cke++}`;r.tableId=ne,r.state={isGroup:w,resizeState:E,doLayout:I,debouncedUpdateLayout:J};const ve=R(()=>e.sumText||t("el.table.sumText")),le=R(()=>e.emptyText||t("el.table.emptyText"));return _ke(r),{ns:n,layout:i,store:a,handleHeaderFooterMousewheel:C,handleMouseLeave:S,tableId:ne,tableSize:y,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:A,resizeState:E,isGroup:w,bodyWidth:M,tableBodyStyles:L,emptyBlockStyle:x,debouncedUpdateLayout:J,handleFixedMousewheel:T,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:I,sort:p,t,setDragVisible:b,context:r,computedSumText:ve,computedEmptyText:le,tableLayout:O,scrollbarViewStyle:z,tableInnerStyle:F,scrollbarStyle:$,scrollBarRef:V,scrollTo:P,setScrollLeft:G,setScrollTop:j}}}),Tke=["data-prefix"],kke={ref:"hiddenColumns",class:"hidden-columns"};function Ake(e,t,n,r,a,i){const o=Dt("hColgroup"),s=Dt("table-header"),l=Dt("table-body"),u=Dt("el-scrollbar"),c=Dt("table-footer"),f=Hg("mousewheel");return N(),X("div",{ref:"tableWrapper",class:H([{[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:mt(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=(...d)=>e.handleMouseLeave&&e.handleMouseLeave(...d))},[ee("div",{class:H(e.ns.e("inner-wrapper")),style:mt(e.tableInnerStyle)},[ee("div",kke,[Ve(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?Rt((N(),X("div",{key:0,ref:"headerWrapper",class:H(e.ns.e("header-wrapper"))},[ee("table",{ref:"tableHeader",class:H(e.ns.e("header")),style:mt(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[re(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),re(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):be("v-if",!0),ee("div",{ref:"bodyWrapper",class:H(e.ns.e("body-wrapper"))},[re(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:fe(()=>[ee("table",{ref:"tableBody",class:H(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:mt({width:e.bodyWidth,tableLayout:e.tableLayout})},[re(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(N(),Te(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"])):be("v-if",!0),re(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(N(),X("div",{key:0,ref:"emptyBlock",style:mt(e.emptyBlockStyle),class:H(e.ns.e("empty-block"))},[ee("span",{class:H(e.ns.e("empty-text"))},[Ve(e.$slots,"empty",{},()=>[Cn(qe(e.computedEmptyText),1)])],2)],6)):be("v-if",!0),e.$slots.append?(N(),X("div",{key:1,ref:"appendWrapper",class:H(e.ns.e("append-wrapper"))},[Ve(e.$slots,"append")],2)):be("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?Rt((N(),X("div",{key:1,ref:"footerWrapper",class:H(e.ns.e("footer-wrapper"))},[re(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:mt(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Sn,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):be("v-if",!0),e.border||e.isGroup?(N(),X("div",{key:2,class:H(e.ns.e("border-left-patch"))},null,2)):be("v-if",!0)],6),Rt(ee("div",{ref:"resizeProxy",class:H(e.ns.e("column-resize-proxy"))},null,2),[[Sn,e.resizeProxyVisible]])],46,Tke)}var Eke=Xe(xke,[["render",Ake],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const Mke={selection:"table-column--selection",expand:"table__expand-column"},Ike={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:""}},Dke=e=>Mke[e]||"",Lke={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return bt(yo,{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 bt(yo,{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)),bt("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")),bt("div",{class:a,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[bt(vt,null,{default:()=>[bt(Za)]})]})},sortable:!1,resizable:!1}};function Pke({row:e,column:t,$index:n}){var r;const a=t.property,i=a&&Lb(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 Rke({row:e,treeNode:t,store:n},r=!1){const{ns:a}=n;if(!t)return r?[bt("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(bt("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=Za;t.loading&&(l=rc),i.push(bt("div",{class:s,onClick:o},{default:()=>[bt(vt,{class:{[a.is("loading")]:t.loading}},{default:()=>[bt(l)]})]}))}else i.push(bt("span",{class:a.e("placeholder")}));return i}function BN(e,t){return e.reduce((n,r)=>(n[r]=r,n),t)}function Oke(e,t){const n=Nt();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=BN(i,o);Object.keys(s).forEach(l=>{const u=o[l];fn(t,u)&&ze(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=nI(c)),u==="minWidth"&&l==="realMinWidth"&&(f=n7(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=BN(i,o);Object.keys(s).forEach(l=>{const u=o[l];fn(t,u)&&ze(()=>t[u],c=>{n.columnConfig.value[l]=c})})}}}function Nke(e,t,n){const r=Nt(),a=U(""),i=U(!1),o=U(),s=U(),l=We("table");Oi(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),Oi(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=R(()=>{let S=r.vnode.vParent||r.parent;for(;S&&!S.tableId&&!S.columnId;)S=S.vnode.vParent||S.parent;return S}),c=R(()=>{const{store:S}=r.parent;if(!S)return!1;const{treeData:C}=S.states,y=C.value;return y&&Object.keys(y).length>0}),f=U(nI(e.width)),d=U(n7(e.minWidth)),h=S=>(f.value&&(S.width=f.value),d.value&&(S.minWidth=d.value),!f.value&&d.value&&(S.width=void 0),S.minWidth||(S.minWidth=80),S.realWidth=Number(S.width===void 0?S.minWidth:S.width),S),v=S=>{const C=S.type,y=Lke[C]||{};Object.keys(y).forEach(T=>{const A=y[T];T!=="className"&&A!==void 0&&(S[T]=A)});const x=Dke(C);if(x){const T=`${_(l.namespace)}-${x}`;S.className=S.className?`${S.className} ${T}`:T}return S},p=S=>{Array.isArray(S)?S.forEach(y=>C(y)):C(S);function C(y){var x;((x=y==null?void 0:y.type)==null?void 0:x.name)==="ElTableColumn"&&(y.vParent=r)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:S=>{e.renderHeader||S.type!=="selection"&&(S.renderHeader=y=>{r.columnConfig.value.label;const x=t.header;return x?x(y):S.label});let C=S.renderCell;return S.type==="expand"?(S.renderCell=y=>bt("div",{class:"cell"},[C(y)]),n.value.renderExpanded=y=>t.default?t.default(y):t.default):(C=C||Pke,S.renderCell=y=>{let x=null;if(t.default){const L=t.default(y);x=L.some(O=>O.type!==Xa)?L:C(y)}else x=C(y);const{columns:T}=n.value.store.states,A=T.value.findIndex(L=>L.type==="default"),M=c.value&&y.cellIndex===A,E=Rke(y,M),I={class:"cell",style:{}};return S.showOverflowTooltip&&(I.class=`${I.class} ${_(l.namespace)}-tooltip`,I.style={width:`${(y.column.realWidth||Number(y.column.width))-1}px`}),p(x),bt("div",I,[E,x])}),S},getPropsData:(...S)=>S.reduce((C,y)=>(Array.isArray(y)&&y.forEach(x=>{C[x]=e[x]}),C),{}),getColumnElIndex:(S,C)=>Array.prototype.indexOf.call(S,C),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var $ke={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 Bke=1;var u7=te({name:"ElTableColumn",components:{ElCheckbox:yo},props:$ke,setup(e,{slots:t}){const n=Nt(),r=U({}),a=R(()=>{let w=n.parent;for(;w&&!w.tableId;)w=w.parent;return w}),{registerNormalWatchers:i,registerComplexWatchers:o}=Oke(a,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g,updateColumnOrder:m}=Nke(e,t,a),b=c.value;s.value=`${b.tableId||b.columnId}_column_${Bke++}`,nw(()=>{l.value=a.value!==b;const w=e.type||"default",S=e.sortable===""?!0:e.sortable,C=Xr(e.showOverflowTooltip)?b.props.showOverflowTooltip:e.showOverflowTooltip,y={...Ike[w],id:s.value,type:w,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:S,index:e.index,rawColumnKey:n.vnode.key};let E=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);E=BTe(y,E),E=VTe(h,f,d)(E),r.value=E,i(),o()}),zt(()=>{var w;const S=c.value,C=l.value?S.vnode.el.children:(w=S.refs.hiddenColumns)==null?void 0:w.children,y=()=>p(C||[],n.vnode.el);r.value.getColumnIndex=y,y()>-1&&a.value.store.commit("insertColumn",r.value,l.value?S.columnConfig.value:null,m)}),sr(()=>{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===gt&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!Mt(s==null?void 0:s.children)&&a.push(s)});return bt("div",a)}catch{return bt("div",[])}}});const Fke=Ut(Eke,{TableColumn:u7}),Vke=br(u7);var dm=(e=>(e.ASC="asc",e.DESC="desc",e))(dm||{}),hm=(e=>(e.CENTER="center",e.RIGHT="right",e))(hm||{}),c7=(e=>(e.LEFT="left",e.RIGHT="right",e))(c7||{});const fk={asc:"desc",desc:"asc"},vm=Symbol("placeholder"),zke=(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 Hke(e,t,n){const r=R(()=>_(t).filter(p=>!p.hidden)),a=R(()=>_(r).filter(p=>p.fixed==="left"||p.fixed===!0)),i=R(()=>_(r).filter(p=>p.fixed==="right")),o=R(()=>_(r).filter(p=>!p.fixed)),s=R(()=>{const p=[];return _(a).forEach(g=>{p.push({...g,placeholderSign:vm})}),_(o).forEach(g=>{p.push(g)}),_(i).forEach(g=>{p.push({...g,placeholderSign:vm})}),p}),l=R(()=>_(a).length||_(i).length),u=R(()=>_(t).reduce((g,m)=>(g[m.key]=zke(m,_(n),e.fixed),g),{})),c=R(()=>_(r).reduce((p,g)=>p+g.width,0)),f=p=>_(t).find(g=>g.key===p),d=p=>_(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:w}=e;let S=dm.ASC;Qt(b)?S=fk[b[m]]:S=fk[w.order],(g=e.onColumnSort)==null||g.call(e,{column:f(m),key:m,order:S})}return{columns:t,columnsStyles:u,columnsTotalWidth:c,fixedColumnsOnLeft:a,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:s,normalColumns:o,visibleColumns:r,getColumn:f,getColumnStyle:d,updateColumnWidth:h,onColumnSorted:v}}const Wke=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const i=U({scrollLeft:0,scrollTop:0});function o(h){var v,p,g;const{scrollTop:m}=h;(v=t.value)==null||v.scrollTo(h),(p=n.value)==null||p.scrollToTop(m),(g=r.value)==null||g.scrollToTop(m)}function s(h){i.value=h,o(h)}function l(h){i.value.scrollTop=h,o(_(i))}function u(h){var v,p;i.value.scrollLeft=h,(p=(v=t.value)==null?void 0:v.scrollTo)==null||p.call(v,_(i))}function c(h){var v;s(h),(v=e.onScroll)==null||v.call(e,h)}function f({scrollTop:h}){const{scrollTop:v}=_(i);h!==v&&l(h)}function d(h,v="auto"){var p;(p=t.value)==null||p.scrollToRow(h,v)}return ze(()=>_(i).scrollTop,(h,v)=>{h>v&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},Gke=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r})=>{const a=Nt(),{emit:i}=a,o=Wn(!1),s=Wn(null),l=U(e.defaultExpandedRowKeys||[]),u=U(-1),c=Wn(null),f=U({}),d=U({}),h=Wn({}),v=Wn({}),p=Wn({}),g=R(()=>kt(e.estimatedRowHeight));function m(T){var A;(A=e.onRowsRendered)==null||A.call(e,T),T.rowCacheEnd>_(u)&&(u.value=T.rowCacheEnd)}function b({hovered:T,rowKey:A}){s.value=T?A:null}function w({expanded:T,rowData:A,rowIndex:M,rowKey:E}){var I,L;const O=[..._(l)],z=O.indexOf(E);T?z===-1&&O.push(E):z>-1&&O.splice(z,1),l.value=O,i("update:expandedRowKeys",O),(I=e.onRowExpand)==null||I.call(e,{expanded:T,rowData:A,rowIndex:M,rowKey:E}),(L=e.onExpandedRowsChange)==null||L.call(e,O)}const S=ni(()=>{var T,A,M,E;o.value=!0,f.value={..._(f),..._(d)},C(_(c),!1),d.value={},c.value=null,(T=t.value)==null||T.forceUpdate(),(A=n.value)==null||A.forceUpdate(),(M=r.value)==null||M.forceUpdate(),(E=a.proxy)==null||E.$forceUpdate(),o.value=!1},0);function C(T,A=!1){_(g)&&[t,n,r].forEach(M=>{const E=_(M);E&&E.resetAfterRowIndex(T,A)})}function y(T,A,M){const E=_(c);(E===null||E>M)&&(c.value=M),d.value[T]=A}function x({rowKey:T,height:A,rowIndex:M},E){E?E===c7.RIGHT?p.value[T]=A:h.value[T]=A:v.value[T]=A;const I=Math.max(...[h,p,v].map(L=>L.value[T]||0));_(f)[T]!==I&&(y(T,I,M),S())}return{hoveringRowKey:s,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:g,isResetting:o,rowHeights:f,resetAfterIndex:C,onRowExpanded:w,onRowHovered:b,onRowsRendered:m,onRowHeightChange:x}},Uke=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=U({}),i=R(()=>{const s={},{data:l,rowKey:u}=e,c=_(t);if(!c||!c.length)return l;const f=[],d=new Set;c.forEach(v=>d.add(v));let h=l.slice();for(h.forEach(v=>s[v[u]]=0);h.length>0;){const v=h.shift();f.push(v),d.has(v[u])&&Array.isArray(v.children)&&v.children.length>0&&(h=[...v.children,...h],v.children.forEach(p=>s[p[u]]=s[v[u]]+1))}return a.value=s,f}),o=R(()=>{const{data:s,expandColumnKey:l}=e;return l?_(i):s});return ze(o,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:o,depthMap:a}},Kke=(e,t)=>e+t,jb=e=>ft(e)?e.reduce(Kke,0):e,jf=(e,t,n={})=>At(e)?e(t):e??n,bu=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=kr(e[t])}),e),f7=e=>fr(e)?t=>bt(e,t):e,jke=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=R(()=>{const{fixed:w,width:S,vScrollbarSize:C}=e,y=S-C;return w?Math.max(Math.round(_(t)),y):y}),o=R(()=>_(i)+(e.fixed?e.vScrollbarSize:0)),s=R(()=>{const{height:w=0,maxHeight:S=0,footerHeight:C,hScrollbarSize:y}=e;if(S>0){const x=_(v),T=_(l),M=_(h)+x+T+y;return Math.min(M,S-C)}return w-C}),l=R(()=>{const{rowHeight:w,estimatedRowHeight:S}=e,C=_(n);return kt(S)?C.length*S:C.length*w}),u=R(()=>{const{maxHeight:w}=e,S=_(s);if(kt(w)&&w>0)return S;const C=_(l)+_(h)+_(v);return Math.min(S,C)}),c=w=>w.width,f=R(()=>jb(_(r).map(c))),d=R(()=>jb(_(a).map(c))),h=R(()=>jb(e.headerHeight)),v=R(()=>{var w;return(((w=e.fixedData)==null?void 0:w.length)||0)*e.rowHeight}),p=R(()=>_(s)-_(h)-_(v)),g=R(()=>{const{style:w={},height:S,width:C}=e;return bu({...w,height:S,width:C})}),m=R(()=>bu({height:e.footerHeight})),b=R(()=>({top:kr(_(h)),bottom:kr(e.footerHeight),width:kr(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}},Yke=e=>{const t=U(),n=U(0),r=U(0);let a;return zt(()=>{a=$a(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}),sr(()=>{a==null||a()}),ze([n,r],([i,o])=>{var s;(s=e.onResize)==null||s.call(e,{width:i,height:o})}),{sizer:t,width:n,height:r}};function qke(e){const t=U(),n=U(),r=U(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=Hke(e,vr(e,"columns"),vr(e,"fixed")),{scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m,scrollPos:b}=Wke(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r,onMaybeEndReached:Y}),{expandedRowKeys:w,hoveringRowKey:S,lastRenderedRowIndex:C,isDynamic:y,isResetting:x,rowHeights:T,resetAfterIndex:A,onRowExpanded:M,onRowHeightChange:E,onRowHovered:I,onRowsRendered:L}=Gke(e,{mainTableRef:t,leftTableRef:n,rightTableRef:r}),{data:O,depthMap:z}=Uke(e,{expandedRowKeys:w,lastRenderedRowIndex:C,resetAfterIndex:A}),{bodyWidth:F,fixedTableHeight:$,mainTableHeight:V,leftTableWidth:P,rightTableWidth:G,headerWidth:j,rowsHeight:J,windowHeight:ne,footerHeight:ve,emptyStyle:le,rootStyle:ce,headerHeight:ue}=jke(e,{columnsTotalWidth:o,data:O,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),Q=Wn(!1),_e=U(),Pe=R(()=>{const ie=_(O).length===0;return ft(e.fixedData)?e.fixedData.length===0&&ie:ie});function pe(ie){const{estimatedRowHeight:me,rowHeight:De,rowKey:Be}=e;return me?_(T)[_(O)[ie][Be]]||me:De}function Y(){const{onEndReached:ie}=e;if(!ie)return;const{scrollTop:me}=_(b),De=_(J),Be=_(ne),Oe=De-(me+Be)+e.hScrollbarSize;_(C)>=0&&De===me+_(V)-_(ue)&&ie(Oe)}return ze(()=>e.expandedRowKeys,ie=>w.value=ie,{deep:!0}),{columns:a,containerRef:_e,mainTableRef:t,leftTableRef:n,rightTableRef:r,isDynamic:y,isResetting:x,isScrolling:Q,hoveringRowKey:S,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:O,expandedRowKeys:w,depthMap:z,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:F,emptyStyle:le,rootStyle:ce,headerWidth:j,footerHeight:ve,mainTableHeight:V,fixedTableHeight:$,leftTableWidth:P,rightTableWidth:G,showEmpty:Pe,getRowHeight:pe,onColumnSorted:f,onRowHovered:I,onRowExpanded:M,onRowsRendered:L,onRowHeightChange:E,scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:m}}const oI=Symbol("tableV2"),d7=String,dy={type:Ce(Array),required:!0},sI={type:Ce(Array)},h7={...sI,required:!0},Xke=String,FN={type:Ce(Array),default:()=>ur([])},lf={type:Number,required:!0},v7={type:Ce([String,Number,Symbol]),default:"id"},VN={type:Ce(Object)},_f=Je({class:String,columns:dy,columnsStyles:{type:Ce(Object),required:!0},depth:Number,expandColumnKey:Xke,estimatedRowHeight:{...Pf.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:Ce(Function)},onRowHover:{type:Ce(Function)},onRowHeightChange:{type:Ce(Function)},rowData:{type:Ce(Object),required:!0},rowEventHandlers:{type:Ce(Object)},rowIndex:{type:Number,required:!0},rowKey:v7,style:{type:Ce(Object)}}),xC={type:Number,required:!0},lI=Je({class:String,columns:dy,fixedHeaderData:{type:Ce(Array)},headerData:{type:Ce(Array),required:!0},headerHeight:{type:Ce([Number,Array]),default:50},rowWidth:xC,rowHeight:{type:Number,default:50},height:xC,width:xC}),Yb=Je({columns:dy,data:h7,fixedData:sI,estimatedRowHeight:_f.estimatedRowHeight,width:lf,height:lf,headerWidth:lf,headerHeight:lI.headerHeight,bodyWidth:lf,rowHeight:lf,cache:BW.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Pf.scrollbarAlwaysOn,scrollbarStartGap:Pf.scrollbarStartGap,scrollbarEndGap:Pf.scrollbarEndGap,class:d7,style:VN,containerStyle:VN,getRowHeight:{type:Ce(Function),required:!0},rowKey:_f.rowKey,onRowsRendered:{type:Ce(Function)},onScroll:{type:Ce(Function)}}),Zke=Je({cache:Yb.cache,estimatedRowHeight:_f.estimatedRowHeight,rowKey:v7,headerClass:{type:Ce([String,Function])},headerProps:{type:Ce([Object,Function])},headerCellProps:{type:Ce([Object,Function])},headerHeight:lI.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:Ce([String,Function])},rowProps:{type:Ce([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:Ce([Object,Function])},columns:dy,data:h7,dataGetter:{type:Ce(Function)},fixedData:sI,expandColumnKey:_f.expandColumnKey,expandedRowKeys:FN,defaultExpandedRowKeys:FN,class:d7,fixed:Boolean,style:{type:Ce(Object)},width:lf,height:lf,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Pf.hScrollbarSize,vScrollbarSize:Pf.vScrollbarSize,scrollbarAlwaysOn:zW.alwaysOn,sortBy:{type:Ce(Object),default:()=>({})},sortState:{type:Ce(Object),default:void 0},onColumnSort:{type:Ce(Function)},onExpandedRowsChange:{type:Ce(Function)},onEndReached:{type:Ce(Function)},onRowExpand:_f.onRowExpand,onScroll:Yb.onScroll,onRowsRendered:Yb.onRowsRendered,rowEventHandlers:_f.rowEventHandlers}),uI=(e,{slots:t})=>{var n;const{cellData:r,style:a}=e,i=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"";return re("div",{class:e.class,title:i,style:a},[t.default?t.default(e):i])};uI.displayName="ElTableV2Cell";uI.inheritAttrs=!1;const cI=(e,{slots:t})=>{var n,r;return t.default?t.default(e):re("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(r=e.column)==null?void 0:r.title])};cI.displayName="ElTableV2HeaderCell";cI.inheritAttrs=!1;const Jke=Je({class:String,columns:dy,columnsStyles:{type:Ce(Object),required:!0},headerIndex:Number,style:{type:Ce(Object)}}),Qke=te({name:"ElTableV2HeaderRow",props:Jke,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=>ft(s)&&s.length===1?s[0]:s),columns:n,headerIndex:a})),re("div",{class:e.class,style:i,role:"row"},[o])}}}),eAe="ElTableV2Header",tAe=te({name:eAe,props:lI,setup(e,{slots:t,expose:n}){const r=We("table-v2"),a=U(),i=R(()=>bu({width:e.width,height:e.height})),o=R(()=>bu({width:e.rowWidth,height:e.height})),s=R(()=>Uf(_(e.headerHeight))),l=f=>{const d=_(a);pt(()=>{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=bu({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 _(s).map((h,v)=>{var p;const g=bu({width:"100%",height:h});return(p=t.dynamic)==null?void 0:p.call(t,{class:f,columns:d,headerIndex:v,style:g})})};return n({scrollToLeft:l}),()=>{if(!(e.height<=0))return re("div",{ref:a,class:e.class,style:_(i),role:"rowgroup"},[re("div",{style:_(o),class:r.e("header")},[c(),u()])])}}}),nAe=e=>{const{isScrolling:t}=ct(oI),n=U(!1),r=U(),a=R(()=>kt(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=_(r);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:d,rowIndex:h,style:v}=e,{height:p}=u.getBoundingClientRect();n.value=!0,pt(()=>{if(l||p!==Number.parseInt(v.height)){const g=c[0],m=(g==null?void 0:g.placeholderSign)===vm;f==null||f({rowKey:d,height:p,rowIndex:h},g&&!m&&g.fixed)}})},o=R(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=e,d=e.rowEventHandlers||{},h={};return Object.entries(d).forEach(([v,p])=>{At(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 zt(()=>{_(a)&&i(!0)}),{isScrolling:t,measurable:a,measured:n,rowRef:r,eventHandlers:o,onExpand:s}},rAe="ElTableV2TableRow",aAe=te({name:rAe,props:_f,setup(e,{expose:t,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=nAe(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,w)=>{const S=ft(v.children)&&v.children.length>0&&b.key===d;return n.cell({column:b,columns:c,columnIndex:w,depth:h,style:f[b.key],rowData:v,rowIndex:p,isScrolling:_(i),expandIconProps:S?{rowData:v,rowIndex:p,onExpand:u}:void 0})});if(n.row&&(m=n.row({cells:m.map(b=>ft(b)&&b.length===1?b[0]:b),style:g,columns:c,depth:h,rowData:v,rowIndex:p,isScrolling:_(i)})),_(o)){const{height:b,...w}=g||{},S=_(s);return re("div",qt({ref:l,class:e.class,style:S?g:w,role:"row"},r,_(a)),[m])}return re("div",qt(r,{ref:l,class:e.class,style:g,role:"row"},_(a)),[m])}}}),iAe=e=>{const{sortOrder:t}=e;return re(vt,{size:14,class:e.class},{default:()=>[t===dm.ASC?re(Rue,null,null):re(Lue,null,null)]})},oAe=e=>{const{expanded:t,expandable:n,onExpand:r,style:a,size:i}=e,o={onClick:n?()=>r(!t):void 0,class:e.class};return re(vt,qt(o,{size:i,style:a}),{default:()=>[re(Za,null,null)]})},sAe="ElTableV2Grid",lAe=e=>{const t=U(),n=U(),r=R(()=>{const{data:p,rowHeight:g,estimatedRowHeight:m}=e;if(!m)return p.length*g}),a=R(()=>{const{fixedData:p,rowHeight:g}=e;return((p==null?void 0:p.length)||0)*g}),i=R(()=>jb(e.headerHeight)),o=R(()=>{const{height:p}=e;return Math.max(0,p-_(i)-_(a))}),s=R(()=>_(i)+_(a)>0),l=({data:p,rowIndex:g})=>p[g][e.rowKey];function u({rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:m,rowVisibleEnd:b}){var w;(w=e.onRowsRendered)==null||w.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=_(t),b=_(n);!m||!b||(Qt(p)?(m.scrollToLeft(p.scrollLeft),b.scrollTo(p)):(m.scrollToLeft(p),b.scrollTo({scrollLeft:p,scrollTop:g})))}function d(p){var g;(g=_(n))==null||g.scrollTo({scrollTop:p})}function h(p,g){var m;(m=_(n))==null||m.scrollToItem(p,1,g)}function v(){var p,g;(p=_(n))==null||p.$forceUpdate(),(g=_(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}},fI=te({name:sAe,props:Yb,setup(e,{slots:t,expose:n}){const{ns:r}=ct(oI),{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}=lAe(e);n({forceUpdate:f,totalHeight:c,scrollTo:p,scrollToTop:g,scrollToRow:m,resetAfterRowIndex:v});const b=()=>e.bodyWidth;return()=>{const{cache:w,columns:S,data:C,fixedData:y,useIsScrolling:x,scrollbarAlwaysOn:T,scrollbarEndGap:A,scrollbarStartGap:M,style:E,rowHeight:I,bodyWidth:L,estimatedRowHeight:O,headerWidth:z,height:F,width:$,getRowHeight:V,onScroll:P}=e,G=kt(O),j=G?Bxe:Rxe,J=_(u);return re("div",{role:"table",class:[r.e("table"),e.class],style:E},[re(j,{ref:a,data:C,useIsScrolling:x,itemKey:d,columnCache:0,columnWidth:G?b:L,totalColumn:1,totalRow:C.length,rowCache:w,rowHeight:G?V:I,width:$,height:_(o),class:r.e("body"),role:"rowgroup",scrollbarStartGap:M,scrollbarEndGap:A,scrollbarAlwaysOn:T,onScroll:P,onItemRendered:h,perfMode:!1},{default:ne=>{var ve;const le=C[ne.rowIndex];return(ve=t.row)==null?void 0:ve.call(t,{...ne,columns:S,rowData:le})}}),_(s)&&re(tAe,{ref:l,class:r.e("header-wrapper"),columns:S,headerData:C,headerHeight:e.headerHeight,fixedHeaderData:y,rowWidth:z,rowHeight:I,width:$,height:Math.min(J+_(i),F)},{dynamic:t.header,fixed:t.row})])}}});function uAe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fr(e)}const cAe=(e,{slots:t})=>{const{mainTableRef:n,...r}=e;return re(fI,qt({ref:n},r),uAe(t)?t:{default:()=>[t]})};function fAe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fr(e)}const dAe=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...r}=e;return re(fI,qt({ref:n},r),fAe(t)?t:{default:()=>[t]})};function hAe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fr(e)}const vAe=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...r}=e;return re(fI,qt({ref:n},r),hAe(t)?t:{default:()=>[t]})};function pAe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fr(e)}const gAe=(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:w,onRowExpanded:S}=e,C=jf(p,{columns:n,rowData:c,rowIndex:f},""),y=jf(v,{columns:n,rowData:c,rowIndex:f}),x=c[g],T=a[x]||0,A=!!i,M=f<0,E=[b.e("row"),C,{[b.e(`row-depth-${T}`)]:A&&f>=0,[b.is("expanded")]:A&&o.includes(x),[b.is("hovered")]:!h&&x===u,[b.is("fixed")]:!T&&M,[b.is("customized")]:!!t.row}],I=l?w:void 0,L={...y,columns:n,columnsStyles:r,class:E,depth:T,expandColumnKey:i,estimatedRowHeight:M?void 0:s,isScrolling:h,rowIndex:f,rowData:c,rowKey:x,rowEventHandlers:m,style:d};return re(aAe,qt(L,{onRowHover:I,onRowExpand:S}),pAe(t)?t:{default:()=>[t]})},dk=({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=bu(l);if(t.placeholderSign===vm)return re("div",{class:c.em("row-cell","placeholder"),style:m},null);const{cellRenderer:b,dataKey:w,dataGetter:S}=t,y=f7(b)||g.default||(F=>re(uI,F,null)),x=At(S)?S({columns:e,column:t,columnIndex:n,rowData:o,rowIndex:s}):lr(o,w??""),T=jf(f,{cellData:x,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:o}),A={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:x,isScrolling:i,rowData:o,rowIndex:s},M=y(A),E=[c.e("row-cell"),t.class,t.align===hm.CENTER&&c.is("align-center"),t.align===hm.RIGHT&&c.is("align-right")],I=s>=0&&d&&t.key===d,L=s>=0&&u.includes(o[p]);let O;const z=`margin-inline-start: ${r*h}px;`;return I&&(Qt(a)?O=re(oAe,qt(a,{class:[c.e("expand-icon"),c.is("expanded",L)],size:v,expanded:L,style:z,expandable:!0}),null):O=re("div",{style:[z,`width: ${v}px; height: ${v}px;`].join(" ")},null)),re("div",qt({class:E,style:m},T,{role:"cell"}),[O,M])};dk.inheritAttrs=!1;function mAe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fr(e)}const yAe=({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"),jf(a,l,""),{[o.is("customized")]:!!s.header}],c={...jf(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:r};return re(Qke,c,mAe(s)?s:{default:()=>[s]})},zN=(e,{slots:t})=>{const{column:n,ns:r,style:a,onColumnSorted:i}=e,o=bu(a);if(n.placeholderSign===vm)return re("div",{class:r.em("header-row-cell","placeholder"),style:o},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=n,c={...e,class:r.e("header-cell-text")},d=(f7(s)||t.default||(S=>re(cI,S,null)))(c),{sortBy:h,sortState:v,headerCellProps:p}=e;let g,m;if(v){const S=v[n.key];g=!!fk[S],m=g?S:dm.ASC}else g=n.key===h.key,m=g?h.order:dm.ASC;const b=[r.e("header-cell"),jf(l,e,""),n.align===hm.CENTER&&r.is("align-center"),n.align===hm.RIGHT&&r.is("align-right"),u&&r.is("sortable")],w={...jf(p,e),onClick:n.sortable?i:void 0,class:b,style:o,"data-key":n.key};return re("div",qt(w,{role:"columnheader"}),[d,u&&re(iAe,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:m},null)])},p7=(e,{slots:t})=>{var n;return re("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};p7.displayName="ElTableV2Footer";const g7=(e,{slots:t})=>re("div",{class:e.class,style:e.style},[t.default?t.default():re(CW,null,null)]);g7.displayName="ElTableV2Empty";const m7=(e,{slots:t})=>{var n;return re("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};m7.displayName="ElTableV2Overlay";function sp(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!fr(e)}const bAe="ElTableV2",_Ae=te({name:bAe,props:Zke,setup(e,{slots:t,expose:n}){const r=We("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:w,isDynamic:S,isResetting:C,isScrolling:y,bodyWidth:x,emptyStyle:T,rootStyle:A,headerWidth:M,footerHeight:E,showEmpty:I,scrollTo:L,scrollToLeft:O,scrollToTop:z,scrollToRow:F,getRowHeight:$,onColumnSorted:V,onRowHeightChange:P,onRowHovered:G,onRowExpanded:j,onRowsRendered:J,onScroll:ne,onVerticalScroll:ve}=qke(e);return n({scrollTo:L,scrollToLeft:O,scrollToTop:z,scrollToRow:F}),tn(oI,{ns:r,isResetting:C,hoveringRowKey:g,isScrolling:y}),()=>{const{cache:le,cellProps:ce,estimatedRowHeight:ue,expandColumnKey:Q,fixedData:_e,headerHeight:Pe,headerClass:pe,headerProps:Y,headerCellProps:ie,sortBy:me,sortState:De,rowHeight:Be,rowClass:Oe,rowEventHandlers:de,rowKey:we,rowProps:Se,scrollbarAlwaysOn:Ie,indentSize:Ee,iconSize:Ge,useIsScrolling:Ue,vScrollbarSize:oe,width:ke}=e,nt=_(d),st={cache:le,class:r.e("main"),columns:_(s),data:nt,fixedData:_e,estimatedRowHeight:ue,bodyWidth:_(x)+oe,headerHeight:Pe,headerWidth:_(M),height:_(l),mainTableRef:m,rowKey:we,rowHeight:Be,scrollbarAlwaysOn:Ie,scrollbarStartGap:2,scrollbarEndGap:oe,useIsScrolling:Ue,width:ke,getRowHeight:$,onRowsRendered:J,onScroll:ne},ut=_(c),lt=_(u),Me={cache:le,class:r.e("left"),columns:_(i),data:nt,estimatedRowHeight:ue,leftTableRef:b,rowHeight:Be,bodyWidth:ut,headerWidth:ut,headerHeight:Pe,height:lt,rowKey:we,scrollbarAlwaysOn:Ie,scrollbarStartGap:2,scrollbarEndGap:oe,useIsScrolling:Ue,width:ut,getRowHeight:$,onScroll:ve},ge=_(f)+oe,$e={cache:le,class:r.e("right"),columns:_(o),data:nt,estimatedRowHeight:ue,rightTableRef:w,rowHeight:Be,bodyWidth:ge,headerWidth:ge,headerHeight:Pe,height:lt,rowKey:we,scrollbarAlwaysOn:Ie,scrollbarStartGap:2,scrollbarEndGap:oe,width:ge,style:`--${_(r.namespace)}-table-scrollbar-size: ${oe}px`,useIsScrolling:Ue,getRowHeight:$,onScroll:ve},se=_(a),Qe={ns:r,depthMap:_(h),columnsStyles:se,expandColumnKey:Q,expandedRowKeys:_(v),estimatedRowHeight:ue,hasFixedColumns:_(p),hoveringRowKey:_(g),rowProps:Se,rowClass:Oe,rowKey:we,rowEventHandlers:de,onRowHovered:G,onRowExpanded:j,onRowHeightChange:P},wt={cellProps:ce,expandColumnKey:Q,indentSize:Ee,iconSize:Ge,rowKey:we,expandedRowKeys:_(v),ns:r},Vt={ns:r,headerClass:pe,headerProps:Y,columnsStyles:se},Zn={ns:r,sortBy:me,sortState:De,headerCellProps:ie,onColumnSorted:V},rr={row:Re=>re(gAe,qt(Re,Qe),{row:t.row,cell:rt=>{let Ae;return t.cell?re(dk,qt(rt,wt,{style:se[rt.column.key]}),sp(Ae=t.cell(rt))?Ae:{default:()=>[Ae]}):re(dk,qt(rt,wt,{style:se[rt.column.key]}),null)}}),header:Re=>re(yAe,qt(Re,Vt),{header:t.header,cell:rt=>{let Ae;return t["header-cell"]?re(zN,qt(rt,Zn,{style:se[rt.column.key]}),sp(Ae=t["header-cell"](rt))?Ae:{default:()=>[Ae]}):re(zN,qt(rt,Zn,{style:se[rt.column.key]}),null)}})},$r=[e.class,r.b(),r.e("root"),{[r.is("dynamic")]:_(S)}],Fn={class:r.e("footer"),style:_(E)};return re("div",{class:$r,style:_(A)},[re(cAe,st,sp(rr)?rr:{default:()=>[rr]}),re(dAe,Me,sp(rr)?rr:{default:()=>[rr]}),re(vAe,$e,sp(rr)?rr:{default:()=>[rr]}),t.footer&&re(p7,Fn,{default:t.footer}),_(I)&&re(g7,{class:r.e("empty"),style:_(T)},{default:t.empty}),t.overlay&&re(m7,{class:r.e("overlay")},{default:t.overlay})])}}}),wAe=Je({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:Ce(Function)}}),SAe=te({name:"ElAutoResizer",props:wAe,setup(e,{slots:t}){const n=We("auto-resizer"),{height:r,width:a,sizer:i}=Yke(e),o={width:"100%",height:"100%"};return()=>{var s;return re("div",{ref:i,class:n.b(),style:o},[(s=t.default)==null?void 0:s.call(t,{height:r.value,width:a.value})])}}}),CAe=Ut(_Ae),xAe=Ut(SAe),Ow=Symbol("tabsRootContextKey"),TAe=Je({tabs:{type:Ce(Array),default:()=>ur([])}}),y7="ElTabBar",kAe=te({name:y7}),AAe=te({...kAe,props:TAe,setup(e,{expose:t}){const n=e,r=Nt(),a=ct(Ow);a||Kr(y7,"<el-tabs><el-tab-bar /></el-tabs>");const i=We("tabs"),o=U(),s=U(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(a.props.tabPosition)?"width":"height",h=d==="width"?"x":"y",v=h==="x"?"left":"top";return n.tabs.every(p=>{var g,m;const b=(m=(g=r.parent)==null?void 0:g.refs)==null?void 0:m[`tab-${p.uid}`];if(!b)return!1;if(!p.active)return!0;c=b[`offset${xs(v)}`],f=b[`client${xs(d)}`];const w=window.getComputedStyle(b);return d==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(w.paddingLeft)+Number.parseFloat(w.paddingRight)),c+=Number.parseFloat(w.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${xs(h)}(${c}px)`}},u=()=>s.value=l();return ze(()=>n.tabs,async()=>{await pt(),u()},{immediate:!0}),$a(o,()=>u()),t({ref:o,update:u}),(c,f)=>(N(),X("div",{ref_key:"barRef",ref:o,class:H([_(i).e("active-bar"),_(i).is(_(a).props.tabPosition)]),style:mt(s.value)},null,6))}});var EAe=Xe(AAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const MAe=Je({panes:{type:Ce(Array),default:()=>ur([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),IAe={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},HN="ElTabNav",DAe=te({name:HN,props:MAe,emits:IAe,setup(e,{expose:t,emit:n}){const r=Nt(),a=ct(Ow);a||Kr(HN,"<el-tabs><tab-nav /></el-tabs>");const i=We("tabs"),o=une(),s=bne(),l=U(),u=U(),c=U(),f=U(),d=U(!1),h=U(0),v=U(!1),p=U(!0),g=R(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),m=R(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),b=()=>{if(!l.value)return;const A=l.value[`offset${xs(g.value)}`],M=h.value;if(!M)return;const E=M>A?M-A:0;h.value=E},w=()=>{if(!l.value||!u.value)return;const A=u.value[`offset${xs(g.value)}`],M=l.value[`offset${xs(g.value)}`],E=h.value;if(A-E<=M)return;const I=A-E>M*2?E+M:A-M;h.value=I},S=async()=>{const A=u.value;if(!d.value||!c.value||!l.value||!A)return;await pt();const M=c.value.querySelector(".is-active");if(!M)return;const E=l.value,I=["top","bottom"].includes(a.props.tabPosition),L=M.getBoundingClientRect(),O=E.getBoundingClientRect(),z=I?A.offsetWidth-O.width:A.offsetHeight-O.height,F=h.value;let $=F;I?(L.left<O.left&&($=F-(O.left-L.left)),L.right>O.right&&($=F+L.right-O.right)):(L.top<O.top&&($=F-(O.top-L.top)),L.bottom>O.bottom&&($=F+(L.bottom-O.bottom))),$=Math.max($,0),h.value=Math.min($,z)},C=()=>{var A;if(!u.value||!l.value)return;e.stretch&&((A=f.value)==null||A.update());const M=u.value[`offset${xs(g.value)}`],E=l.value[`offset${xs(g.value)}`],I=h.value;E<M?(d.value=d.value||{},d.value.prev=I,d.value.next=I+E<M,M-I<E&&(h.value=M-E)):(d.value=!1,I>0&&(h.value=0))},y=A=>{const M=A.code,{up:E,down:I,left:L,right:O}=_t;if(![E,I,L,O].includes(M))return;const z=Array.from(A.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),F=z.indexOf(A.target);let $;M===L||M===E?F===0?$=z.length-1:$=F-1:F<z.length-1?$=F+1:$=0,z[$].focus({preventScroll:!0}),z[$].click(),x()},x=()=>{p.value&&(v.value=!0)},T=()=>v.value=!1;return ze(o,A=>{A==="hidden"?p.value=!1:A==="visible"&&setTimeout(()=>p.value=!0,50)}),ze(s,A=>{A?setTimeout(()=>p.value=!0,50):p.value=!1}),$a(c,C),zt(()=>setTimeout(()=>S(),0)),Ll(()=>C()),t({scrollToActiveTab:S,removeFocus:T}),ze(()=>e.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const A=d.value?[re("span",{class:[i.e("nav-prev"),i.is("disabled",!d.value.prev)],onClick:b},[re(vt,null,{default:()=>[re(Vu,null,null)]})]),re("span",{class:[i.e("nav-next"),i.is("disabled",!d.value.next)],onClick:w},[re(vt,null,{default:()=>[re(Za,null,null)]})])]:null,M=e.panes.map((E,I)=>{var L,O,z,F;const $=E.uid,V=E.props.disabled,P=(O=(L=E.props.name)!=null?L:E.index)!=null?O:`${I}`,G=!V&&(E.isClosable||e.editable);E.index=`${I}`;const j=G?re(vt,{class:"is-icon-close",onClick:ve=>n("tabRemove",E,ve)},{default:()=>[re(Jo,null,null)]}):null,J=((F=(z=E.slots).label)==null?void 0:F.call(z))||E.props.label,ne=!V&&E.active?0:-1;return re("div",{ref:`tab-${$}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",E.active),i.is("disabled",V),i.is("closable",G),i.is("focus",v.value)],id:`tab-${P}`,key:`tab-${$}`,"aria-controls":`pane-${P}`,role:"tab","aria-selected":E.active,tabindex:ne,onFocus:()=>x(),onBlur:()=>T(),onClick:ve=>{T(),n("tabClick",E,P,ve)},onKeydown:ve=>{G&&(ve.code===_t.delete||ve.code===_t.backspace)&&n("tabRemove",E,ve)}},[J,j])});return re("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!d.value),i.is(a.props.tabPosition)]},[A,re("div",{class:i.e("nav-scroll"),ref:l},[re("div",{class:[i.e("nav"),i.is(a.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:m.value,role:"tablist",onKeydown:y},[e.type?null:re(EAe,{ref:f,tabs:[...e.panes]},null),M])])])}}}),LAe=Je({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Ce(Function),default:()=>!0},stretch:Boolean}),TC=e=>Mt(e)||kt(e),PAe={[Kt]:e=>TC(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>TC(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>TC(e),tabAdd:()=>!0};var RAe=te({name:"ElTabs",props:LAe,emits:PAe,setup(e,{emit:t,slots:n,expose:r}){var a,i;const o=We("tabs"),{children:s,addChild:l,removeChild:u}=PM(Nt(),"ElTabPane"),c=U(),f=U((i=(a=e.modelValue)!=null?a:e.activeName)!=null?i:"0"),d=m=>{f.value=m,t(Kt,m),t("tabChange",m)},h=async m=>{var b,w,S;if(!(f.value===m||Xr(m)))try{await((b=e.beforeLeave)==null?void 0:b.call(e,m,f.value))!==!1&&(d(m),(S=(w=c.value)==null?void 0:w.removeFocus)==null||S.call(w))}catch{}},v=(m,b,w)=>{m.props.disabled||(h(b),t("tabClick",m,w))},p=(m,b)=>{m.props.disabled||Xr(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 $s({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},R(()=>!!e.activeName)),ze(()=>e.activeName,m=>h(m)),ze(()=>e.modelValue,m=>h(m)),ze(f,async()=>{var m;await pt(),(m=c.value)==null||m.scrollToActiveTab()}),tn(Ow,{props:e,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const m=e.editable||e.addable?re("span",{class:o.e("new-tab"),tabindex:"0",onClick:g,onKeydown:S=>{S.code===_t.enter&&g()}},[re(vt,{class:o.is("icon-plus")},{default:()=>[re(Kz,null,null)]})]):null,b=re("div",{class:[o.e("header"),o.is(e.tabPosition)]},[m,re(DAe,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:s.value,stretch:e.stretch,onTabClick:v,onTabRemove:p},null)]),w=re("div",{class:o.e("content")},[Ve(n,"default")]);return re("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[b,w]:[w,b]])}}});const OAe=Je({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),NAe=["id","aria-hidden","aria-labelledby"],b7="ElTabPane",$Ae=te({name:b7}),BAe=te({...$Ae,props:OAe,setup(e){const t=e,n=Nt(),r=ka(),a=ct(Ow);a||Kr(b7,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=We("tab-pane"),o=U(),s=R(()=>t.closable||a.props.closable),l=wR(()=>{var h;return a.currentName.value===((h=t.name)!=null?h:o.value)}),u=U(l.value),c=R(()=>{var h;return(h=t.name)!=null?h:o.value}),f=wR(()=>!t.lazy||u.value||l.value);ze(l,h=>{h&&(u.value=!0)});const d=xn({uid:n.uid,slots:r,props:t,paneName:c,active:l,index:o,isClosable:s});return zt(()=>{a.registerPane(d)}),Pl(()=>{a.unregisterPane(d.uid)}),(h,v)=>_(f)?Rt((N(),X("div",{key:0,id:`pane-${_(c)}`,class:H(_(i).b()),role:"tabpanel","aria-hidden":!_(l),"aria-labelledby":`tab-${_(c)}`},[Ve(h.$slots,"default")],10,NAe)),[[Sn,_(l)]]):be("v-if",!0)}});var _7=Xe(BAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const FAe=Ut(RAe,{TabPane:_7}),VAe=br(_7),zAe=Je({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Gs,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),HAe=te({name:"ElText"}),WAe=te({...HAe,props:zAe,setup(e){const t=e,n=jr(),r=We("text"),a=R(()=>[r.b(),r.m(t.type),r.m(n.value),r.is("truncated",t.truncated)]);return(i,o)=>(N(),Te(Xt(i.tag),{class:H(_(a))},{default:fe(()=>[Ve(i.$slots,"default")]),_:3},8,["class"]))}});var GAe=Xe(WAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const UAe=Ut(GAe),KAe=Je({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:Sa,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:Ce([String,Object]),default:()=>Uz},clearIcon:{type:Ce([String,Object]),default:()=>nc}}),il=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},kC=(e,t)=>{const n=il(e);if(!n)return-1;const r=il(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},WN=e=>`${e}`.padStart(2,"0"),th=e=>`${WN(e.hours)}:${WN(e.minutes)}`,jAe=(e,t)=>{const n=il(e);if(!n)return"";const r=il(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,th(a)},YAe=te({name:"ElTimeSelect"}),qAe=te({...YAe,props:KAe,emits:["change","blur","focus","update:modelValue"],setup(e,{expose:t}){const n=e;Ht.extend(FM);const{Option:r}=Kf,a=We("input"),i=U(),o=xi(),s=R(()=>n.modelValue),l=R(()=>{const g=il(n.start);return g?th(g):null}),u=R(()=>{const g=il(n.end);return g?th(g):null}),c=R(()=>{const g=il(n.step);return g?th(g):null}),f=R(()=>{const g=il(n.minTime||"");return g?th(g):null}),d=R(()=>{const g=il(n.maxTime||"");return g?th(g):null}),h=R(()=>{const g=[];if(n.start&&n.end&&n.step){let m=l.value,b;for(;m&&u.value&&kC(m,u.value)<=0;)b=Ht(m,"HH:mm").format(n.format),g.push({value:b,disabled:kC(m,f.value||"-1:-1")<=0||kC(m,d.value||"100:100")>=0}),m=jAe(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)=>(N(),Te(_(Kf),{ref_key:"select",ref:i,"model-value":_(s),disabled:_(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:fe(()=>[g.prefixIcon?(N(),Te(_(vt),{key:0,class:H(_(a).e("prefix-icon"))},{default:fe(()=>[(N(),Te(Xt(g.prefixIcon)))]),_:1},8,["class"])):be("v-if",!0)]),default:fe(()=>[(N(!0),X(gt,null,un(_(h),b=>(N(),Te(_(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 qb=Xe(qAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);qb.install=e=>{e.component(qb.name,qb)};const XAe=qb,ZAe=XAe,JAe=te({name:"ElTimeline",setup(e,{slots:t}){const n=We("timeline");return tn("timeline",t),()=>bt("ul",{class:[n.b()]},[Ve(t,"default")])}}),QAe=Je({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Kn},hollow:{type:Boolean,default:!1}}),eEe=te({name:"ElTimelineItem"}),tEe=te({...eEe,props:QAe,setup(e){const t=e,n=We("timeline-item"),r=R(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(a,i)=>(N(),X("li",{class:H([_(n).b(),{[_(n).e("center")]:a.center}])},[ee("div",{class:H(_(n).e("tail"))},null,2),a.$slots.dot?be("v-if",!0):(N(),X("div",{key:0,class:H(_(r)),style:mt({backgroundColor:a.color})},[a.icon?(N(),Te(_(vt),{key:0,class:H(_(n).e("icon"))},{default:fe(()=>[(N(),Te(Xt(a.icon)))]),_:1},8,["class"])):be("v-if",!0)],6)),a.$slots.dot?(N(),X("div",{key:1,class:H(_(n).e("dot"))},[Ve(a.$slots,"dot")],2)):be("v-if",!0),ee("div",{class:H(_(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(N(),X("div",{key:0,class:H([_(n).e("timestamp"),_(n).is("top")])},qe(a.timestamp),3)):be("v-if",!0),ee("div",{class:H(_(n).e("content"))},[Ve(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(N(),X("div",{key:1,class:H([_(n).e("timestamp"),_(n).is("bottom")])},qe(a.timestamp),3)):be("v-if",!0)],2)],2))}});var w7=Xe(tEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const nEe=Ut(JAe,{TimelineItem:w7}),rEe=br(w7),S7=Je({nowrap:Boolean});var C7=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(C7||{});const aEe=Object.values(C7),dI=Je({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:Ce(Object),default:null}}),iEe=Je({side:{type:Ce(String),values:aEe,required:!0}}),oEe=["absolute","fixed"],sEe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],hI=Je({ariaLabel:String,arrowPadding:{type:Ce(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:Ce(String),values:sEe,default:"bottom"},reference:{type:Ce(Object),default:null},offset:{type:Number,default:8},strategy:{type:Ce(String),values:oEe,default:"absolute"},showArrow:{type:Boolean,default:!1}}),vI=Je({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:Ce(Function)},"onUpdate:open":{type:Ce(Function)}}),Id={type:Ce(Function)},pI=Je({onBlur:Id,onClick:Id,onFocus:Id,onMouseDown:Id,onMouseEnter:Id,onMouseLeave:Id}),lEe=Je({...vI,...dI,...pI,...hI,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:Ce(Object),default:null},teleported:Boolean,to:{type:Ce(String),default:"body"}}),Nw=Symbol("tooltipV2"),x7=Symbol("tooltipV2Content"),AC="tooltip_v2.open",uEe=te({name:"ElTooltipV2Root"}),cEe=te({...uEe,props:vI,setup(e,{expose:t}){const n=e,r=U(n.defaultOpen),a=U(null),i=R({get:()=>Ile(n.open)?r.value:n.open,set:g=>{var m;r.value=g,(m=n["onUpdate:open"])==null||m.call(n,g)}}),o=R(()=>kt(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=Wf(()=>{i.value=!0},R(()=>n.delayDuration),{immediate:!1}),u=We("tooltip-v2"),c=go(),f=()=>{l(),i.value=!0},d=()=>{_(o)?s():f()},h=f,v=()=>{l(),i.value=!1};return ze(i,g=>{var m;g&&(document.dispatchEvent(new CustomEvent(AC)),h()),(m=n.onOpenChange)==null||m.call(n,g)}),zt(()=>{document.addEventListener(AC,v)}),sr(()=>{l(),document.removeEventListener(AC,v)}),tn(Nw,{contentId:c,triggerRef:a,ns:u,onClose:v,onDelayOpen:d,onOpen:h}),t({onOpen:h,onClose:v}),(g,m)=>Ve(g.$slots,"default",{open:_(i)})}});var fEe=Xe(cEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const dEe=te({name:"ElTooltipV2Arrow"}),hEe=te({...dEe,props:{...dI,...iEe},setup(e){const t=e,{ns:n}=ct(Nw),{arrowRef:r}=ct(x7),a=R(()=>{const{style:i,width:o,height:s}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${o}px`,[`--${l}-tooltip-v2-arrow-height`]:`${s}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${o/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:o/2-1,...i||{}}});return(i,o)=>(N(),X("span",{ref_key:"arrowRef",ref:r,style:mt(_(a)),class:H(_(n).e("arrow"))},null,6))}});var GN=Xe(hEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const vEe=Je({style:{type:Ce([String,Object,Array]),default:()=>({})}}),pEe=te({name:"ElVisuallyHidden"}),gEe=te({...pEe,props:vEe,setup(e){const t=e,n=R(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,a)=>(N(),X("span",qt(r.$attrs,{style:_(n)}),[Ve(r.$slots,"default")],16))}});var mEe=Xe(gEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const yEe=["data-side"],bEe=te({name:"ElTooltipV2Content"}),_Ee=te({...bEe,props:{...hI,...S7},setup(e){const t=e,{triggerRef:n,contentId:r}=ct(Nw),a=U(t.placement),i=U(t.strategy),o=U(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:f,update:d}=Yfe({placement:a,strategy:i,middleware:R(()=>{const w=[Mfe(t.offset)];return t.showArrow&&w.push(qfe({arrowRef:o})),w})}),h=_v().nextZIndex(),v=We("tooltip-v2"),p=R(()=>a.value.split("-")[0]),g=R(()=>({position:_(i),top:`${_(f)||0}px`,left:`${_(c)||0}px`,zIndex:h})),m=R(()=>{if(!t.showArrow)return{};const{arrow:w}=_(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${w==null?void 0:w.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${w==null?void 0:w.y}px`||""}}),b=R(()=>[v.e("content"),v.is("dark",t.effect==="dark"),v.is(_(i)),t.contentClass]);return ze(o,()=>d()),ze(()=>t.placement,w=>a.value=w),zt(()=>{ze(()=>t.reference||n.value,w=>{s.value=w||void 0},{immediate:!0})}),tn(x7,{arrowRef:o}),(w,S)=>(N(),X("div",{ref_key:"contentRef",ref:l,style:mt(_(g)),"data-tooltip-v2-root":""},[w.nowrap?be("v-if",!0):(N(),X("div",{key:0,"data-side":_(p),class:H(_(b))},[Ve(w.$slots,"default",{contentStyle:_(g),contentClass:_(b)}),re(_(mEe),{id:_(r),role:"tooltip"},{default:fe(()=>[w.ariaLabel?(N(),X(gt,{key:0},[Cn(qe(w.ariaLabel),1)],64)):Ve(w.$slots,"default",{key:1})]),_:3},8,["id"]),Ve(w.$slots,"arrow",{style:mt(_(m)),side:_(p)})],10,yEe))],4))}});var UN=Xe(_Ee,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const wEe=Je({setRef:{type:Ce(Function),required:!0},onlyChild:Boolean});var SEe=te({props:wEe,setup(e,{slots:t}){const n=U(),r=bw(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?tce(i.children):i.children;return re(gt,{ref:r},[o])}}});const CEe=te({name:"ElTooltipV2Trigger"}),xEe=te({...CEe,props:{...S7,...pI},setup(e){const t=e,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:o}=ct(Nw);let s=!1;const l=b=>{i.value=b},u=()=>{s=!1},c=yr(t.onMouseEnter,a),f=yr(t.onMouseLeave,n),d=yr(t.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=yr(t.onFocus,()=>{s||r()}),v=yr(t.onBlur,n),p=yr(t.onClick,b=>{b.detail===0&&n()}),g={blur:v,click:p,focus:h,mousedown:d,mouseenter:c,mouseleave:f},m=(b,w,S)=>{b&&Object.entries(w).forEach(([C,y])=>{b[S](C,y)})};return ze(i,(b,w)=>{m(b,g,"addEventListener"),m(w,g,"removeEventListener"),b&&b.setAttribute("aria-describedby",o.value)}),sr(()=>{m(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(b,w)=>b.nowrap?(N(),Te(_(SEe),{key:0,"set-ref":l,"only-child":""},{default:fe(()=>[Ve(b.$slots,"default")]),_:3})):(N(),X("button",qt({key:1,ref_key:"triggerRef",ref:i},b.$attrs),[Ve(b.$slots,"default")],16))}});var TEe=Xe(xEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const kEe=te({name:"ElTooltipV2"}),AEe=te({...kEe,props:lEe,setup(e){const n=Jr(e),r=xn(ol(n,Object.keys(dI))),a=xn(ol(n,Object.keys(hI))),i=xn(ol(n,Object.keys(vI))),o=xn(ol(n,Object.keys(pI)));return(s,l)=>(N(),Te(fEe,Vo(aw(i)),{default:fe(({open:u})=>[re(TEe,qt(o,{nowrap:""}),{default:fe(()=>[Ve(s.$slots,"trigger")]),_:3},16),(N(),Te(Qm,{to:s.to,disabled:!s.teleported},[s.fullTransition?(N(),Te(Mr,Vo(qt({key:0},s.transitionProps)),{default:fe(()=>[s.alwaysOn||u?(N(),Te(UN,Vo(qt({key:0},a)),{arrow:fe(({style:c,side:f})=>[s.showArrow?(N(),Te(GN,qt({key:0},r,{style:c,side:f}),null,16,["style","side"])):be("v-if",!0)]),default:fe(()=>[Ve(s.$slots,"default")]),_:3},16)):be("v-if",!0)]),_:2},1040)):(N(),X(gt,{key:1},[s.alwaysOn||u?(N(),Te(UN,Vo(qt({key:0},a)),{arrow:fe(({style:c,side:f})=>[s.showArrow?(N(),Te(GN,qt({key:0},r,{style:c,side:f}),null,16,["style","side"])):be("v-if",!0)]),default:fe(()=>[Ve(s.$slots,"default")]),_:3},16)):be("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var EEe=Xe(AEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const MEe=Ut(EEe),T7="left-check-change",k7="right-check-change",nh=Je({data:{type:Ce(Array),default:()=>[]},titles:{type:Ce(Array),default:()=>[]},buttonTexts:{type:Ce(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:Ce(Function)},leftDefaultChecked:{type:Ce(Array),default:()=>[]},rightDefaultChecked:{type:Ce(Array),default:()=>[]},renderContent:{type:Ce(Function)},modelValue:{type:Ce(Array),default:()=>[]},format:{type:Ce(Object),default:()=>({})},filterable:Boolean,props:{type:Ce(Object),default:()=>ur({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),hk=(e,t)=>[e,t].every(ft)||ft(e)&&Wr(t),IEe={[nr]:(e,t,n)=>[e,n].every(ft)&&["left","right"].includes(t),[Kt]:e=>ft(e),[T7]:hk,[k7]:hk},vk="checked-change",DEe=Je({data:nh.data,optionRender:{type:Ce(Function)},placeholder:String,title:String,filterable:Boolean,format:nh.format,filterMethod:nh.filterMethod,defaultChecked:nh.leftDefaultChecked,props:nh.props}),LEe={[vk]:hk},hy=e=>{const t={label:"label",key:"key",disabled:"disabled"};return R(()=>({...t,...e.props}))},PEe=(e,t,n)=>{const r=hy(e),a=R(()=>e.data.filter(c=>At(e.filterMethod)?e.filterMethod(t.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=R(()=>a.value.filter(c=>!c[r.value.disabled])),o=R(()=>{const c=t.checked.length,f=e.data.length,{noChecked:d,hasChecked:h}=e.format;return d&&h?c>0?h.replace(/\${checked}/g,c.toString()).replace(/\${total}/g,f.toString()):d.replace(/\${total}/g,f.toString()):`${c}/${f}`}),s=R(()=>{const c=t.checked.length;return c>0&&c<i.value.length}),l=()=>{const c=i.value.map(f=>f[r.value.key]);t.allChecked=c.length>0&&c.every(f=>t.checked.includes(f))},u=c=>{t.checked=c?i.value.map(f=>f[r.value.key]):[]};return ze(()=>t.checked,(c,f)=>{if(l(),t.checkChangeByUser){const d=c.concat(f).filter(h=>!c.includes(h)||!f.includes(h));n(vk,c,d)}else n(vk,c),t.checkChangeByUser=!0}),ze(i,()=>{l()}),ze(()=>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}),ze(()=>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}},REe=(e,t)=>({onSourceCheckedChange:(a,i)=>{e.leftChecked=a,i&&t(T7,a,i)},onTargetCheckedChange:(a,i)=>{e.rightChecked=a,i&&t(k7,a,i)}}),OEe=e=>{const t=hy(e),n=R(()=>e.data.reduce((i,o)=>(i[o[t.value.key]]=o)&&i,{})),r=R(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),a=R(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,o)=>{const s=n.value[o];return s&&i.push(s),i},[]));return{sourceData:r,targetData:a}},NEe=(e,t,n)=>{const r=hy(e),a=(s,l,u)=>{n(Kt,s),n(nr,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)}}},$Ee=te({name:"ElTransferPanel"}),BEe=te({...$Ee,props:DEe,emits:LEe,setup(e,{expose:t,emit:n}){const r=e,a=ka(),i=({option:w})=>w,{t:o}=bn(),s=We("transfer"),l=xn({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=hy(r),{filteredData:c,checkedSummary:f,isIndeterminate:d,handleAllCheckedChange:h}=PEe(r,l,n),v=R(()=>!ro(l.query)&&ro(c.value)),p=R(()=>!ro(a.default()[0].children)),{checked:g,allChecked:m,query:b}=Jr(l);return t({query:b}),(w,S)=>(N(),X("div",{class:H(_(s).b("panel"))},[ee("p",{class:H(_(s).be("panel","header"))},[re(_(yo),{modelValue:_(m),"onUpdate:modelValue":S[0]||(S[0]=C=>Rn(m)?m.value=C:null),indeterminate:_(d),"validate-event":!1,onChange:_(h)},{default:fe(()=>[Cn(qe(w.title)+" ",1),ee("span",null,qe(_(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),ee("div",{class:H([_(s).be("panel","body"),_(s).is("with-footer",_(p))])},[w.filterable?(N(),Te(_(Ra),{key:0,modelValue:_(b),"onUpdate:modelValue":S[1]||(S[1]=C=>Rn(b)?b.value=C:null),class:H(_(s).be("panel","filter")),size:"default",placeholder:w.placeholder,"prefix-icon":_(Iue),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):be("v-if",!0),Rt(re(_(P9),{modelValue:_(g),"onUpdate:modelValue":S[2]||(S[2]=C=>Rn(g)?g.value=C:null),"validate-event":!1,class:H([_(s).is("filterable",w.filterable),_(s).be("panel","list")])},{default:fe(()=>[(N(!0),X(gt,null,un(_(c),C=>(N(),Te(_(yo),{key:C[_(u).key],class:H(_(s).be("panel","item")),label:C[_(u).key],disabled:C[_(u).disabled],"validate-event":!1},{default:fe(()=>{var y;return[re(i,{option:(y=w.optionRender)==null?void 0:y.call(w,C)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Sn,!_(v)&&!_(ro)(w.data)]]),Rt(ee("p",{class:H(_(s).be("panel","empty"))},qe(_(v)?_(o)("el.transfer.noMatch"):_(o)("el.transfer.noData")),3),[[Sn,_(v)||_(ro)(w.data)]])],2),_(p)?(N(),X("p",{key:0,class:H(_(s).be("panel","footer"))},[Ve(w.$slots,"default")],2)):be("v-if",!0)],2))}});var KN=Xe(BEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const FEe={key:0},VEe={key:0},zEe=te({name:"ElTransfer"}),HEe=te({...zEe,props:nh,emits:IEe,setup(e,{expose:t,emit:n}){const r=e,a=ka(),{t:i}=bn(),o=We("transfer"),{formItem:s}=si(),l=xn({leftChecked:[],rightChecked:[]}),u=hy(r),{sourceData:c,targetData:f}=OEe(r),{onSourceCheckedChange:d,onTargetCheckedChange:h}=REe(l,n),{addToLeft:v,addToRight:p}=NEe(r,l,n),g=U(),m=U(),b=T=>{switch(T){case"left":g.value.query="";break;case"right":m.value.query="";break}},w=R(()=>r.buttonTexts.length===2),S=R(()=>r.titles[0]||i("el.transfer.titles.0")),C=R(()=>r.titles[1]||i("el.transfer.titles.1")),y=R(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));ze(()=>r.modelValue,()=>{var T;r.validateEvent&&((T=s==null?void 0:s.validate)==null||T.call(s,"change").catch(A=>void 0))});const x=R(()=>T=>r.renderContent?r.renderContent(bt,T):a.default?a.default({option:T}):bt("span",T[u.value.label]||T[u.value.key]));return t({clearQuery:b,leftPanel:g,rightPanel:m}),(T,A)=>(N(),X("div",{class:H(_(o).b())},[re(KN,{ref_key:"leftPanel",ref:g,data:_(c),"option-render":_(x),placeholder:_(y),title:_(S),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,"default-checked":T.leftDefaultChecked,props:r.props,onCheckedChange:_(d)},{default:fe(()=>[Ve(T.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),ee("div",{class:H(_(o).e("buttons"))},[re(_(_a),{type:"primary",class:H([_(o).e("button"),_(o).is("with-texts",_(w))]),disabled:_(ro)(l.rightChecked),onClick:_(v)},{default:fe(()=>[re(_(vt),null,{default:fe(()=>[re(_(Vu))]),_:1}),_(Xr)(T.buttonTexts[0])?be("v-if",!0):(N(),X("span",FEe,qe(T.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),re(_(_a),{type:"primary",class:H([_(o).e("button"),_(o).is("with-texts",_(w))]),disabled:_(ro)(l.leftChecked),onClick:_(p)},{default:fe(()=>[_(Xr)(T.buttonTexts[1])?be("v-if",!0):(N(),X("span",VEe,qe(T.buttonTexts[1]),1)),re(_(vt),null,{default:fe(()=>[re(_(Za))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),re(KN,{ref_key:"rightPanel",ref:m,data:_(f),"option-render":_(x),placeholder:_(y),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,title:_(C),"default-checked":T.rightDefaultChecked,props:r.props,onCheckedChange:_(h)},{default:fe(()=>[Ve(T.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var WEe=Xe(HEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const GEe=Ut(WEe),kh="$treeNodeId",jN=function(e,t){!t||t[kh]||Object.defineProperty(t,kh,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},gI=function(e,t){return e?t[e]:t[kh]},pk=(e,t,n)=>{const r=e.value.currentNode;n();const a=e.value.currentNode;r!==a&&t("current-change",a?a.data:null,a)},gk=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}},Xb=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:r}=gk(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||Xb(a)},b0=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 UEe=0,mk=class Zb{constructor(t){this.id=UEe++,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)fn(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=b0(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)||jN(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)||jN(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=b0(this,"children")||[];for(let r=0,a=n.length;r<a;r++)this.insertChild({data:n[r]})}get label(){return b0(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return b0(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 Zb)){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=xn(new Zb(t)),t instanceof Zb&&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||Xb(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}=gk(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}=gk(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),Xb(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||Xb(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[kh];!!s&&n.findIndex(u=>u[kh]===s)>=0?r[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||n.forEach(i=>{r[i[kh]]||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 KEe{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)fn(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new mk({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 mk)return t;const n=Qt(t)?gI(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)fn(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 jEe=te({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=We("tree"),n=ct("NodeInstance"),r=ct("RootTree");return()=>{const a=e.node,{data:i,store:o}=a;return e.renderContent?e.renderContent(bt,{_self:n,node:a,data:i,store:o}):r.ctx.slots.default?r.ctx.slots.default({node:a,data:i}):bt("span",{class:t.be("node","label")},[a.label])}}});var YEe=Xe(jEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function A7(e){const t=ct("TreeNodeMap",null),n={treeNodeExpand:r=>{e.node!==r&&e.node.collapse()},children:[]};return t&&t.children.push(n),tn("TreeNodeMap",n),{broadcastExpanded:r=>{if(e.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const E7=Symbol("dragEvents");function qEe({props:e,ctx:t,el$:n,dropIndicator$:r,store:a}){const i=We("tree"),o=U({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return tn(E7,{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&&bi(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 w=d.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect();let C;const y=p?g?.25:m?.45:1:-1,x=m?g?.75:p?.55:0:1;let T=-9999;const A=c.clientY-w.top;A<w.height*y?C="before":A>w.height*x?C="after":g?C="inner":C="none";const M=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),E=r.value;C==="before"?T=M.top-S.top:C==="after"&&(T=M.bottom-S.top),E.style.top=`${T}px`,E.style.left=`${M.right-S.left}px`,C==="inner"?As(d.$el,i.is("drop-inner")):bi(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),bi(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 XEe=te({name:"ElTreeNode",components:{ElCollapseTransition:Lw,ElCheckbox:yo,NodeContent:YEe,ElIcon:vt,Loading:rc},props:{node:{type:mk,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=We("tree"),{broadcastExpanded:r}=A7(e),a=ct("RootTree"),i=U(!1),o=U(!1),s=U(null),l=U(null),u=U(null),c=ct(E7),f=Nt();tn("NodeInstance",f),e.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.props.children||"children";ze(()=>{const A=e.node.data[d];return A&&[...A]},()=>{e.node.updateChildren()}),ze(()=>e.node.indeterminate,A=>{p(e.node.checked,A)}),ze(()=>e.node.checked,A=>{p(A,e.node.indeterminate)}),ze(()=>e.node.expanded,A=>{pt(()=>i.value=A),A&&(o.value=!0)});const h=A=>gI(a.props.nodeKey,A.data),v=A=>{const M=e.props.class;if(!M)return{};let E;if(At(M)){const{data:I}=A;E=M(I,A)}else E=M;return Mt(E)?{[E]:!0}:E},p=(A,M)=>{(s.value!==A||l.value!==M)&&a.ctx.emit("check-change",e.node.data,A,M),s.value=A,l.value=M},g=A=>{pk(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&&w(null,{target:{checked:!e.node.checked}}),a.ctx.emit("node-click",e.node.data,e.node,f,A)},m=A=>{a.instance.vnode.props.onNodeContextmenu&&(A.stopPropagation(),A.preventDefault()),a.ctx.emit("node-contextmenu",A,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)))},w=(A,M)=>{e.node.setChecked(M.target.checked,!a.props.checkStrictly),pt(()=>{const E=a.store.value;a.ctx.emit("check",e.node.data,{checkedNodes:E.getCheckedNodes(),checkedKeys:E.getCheckedKeys(),halfCheckedNodes:E.getHalfCheckedNodes(),halfCheckedKeys:E.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:l,getNodeKey:h,getNodeClass:v,handleSelectChange:p,handleClick:g,handleContextMenu:m,handleExpandIconClick:b,handleCheckChange:w,handleChildNodeExpand:(A,M,E)=>{r(M),a.ctx.emit("node-expand",A,M,E)},handleDragStart:A=>{a.props.draggable&&c.treeNodeDragStart({event:A,treeNode:e})},handleDragOver:A=>{A.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:A,treeNode:{$el:u.value,node:e.node}})},handleDrop:A=>{A.preventDefault()},handleDragEnd:A=>{a.props.draggable&&c.treeNodeDragEnd(A)},CaretRight:Gz}}}),ZEe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],JEe=["aria-expanded"];function QEe(e,t,n,r,a,i){const o=Dt("el-icon"),s=Dt("el-checkbox"),l=Dt("loading"),u=Dt("node-content"),c=Dt("el-tree-node"),f=Dt("el-collapse-transition");return Rt((N(),X("div",{ref:"node$",class:H([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]=xt((...d)=>e.handleClick&&e.handleClick(...d),["stop"])),onContextmenu:t[2]||(t[2]=(...d)=>e.handleContextMenu&&e.handleContextMenu(...d)),onDragstart:t[3]||(t[3]=xt((...d)=>e.handleDragStart&&e.handleDragStart(...d),["stop"])),onDragover:t[4]||(t[4]=xt((...d)=>e.handleDragOver&&e.handleDragOver(...d),["stop"])),onDragend:t[5]||(t[5]=xt((...d)=>e.handleDragEnd&&e.handleDragEnd(...d),["stop"])),onDrop:t[6]||(t[6]=xt((...d)=>e.handleDrop&&e.handleDrop(...d),["stop"]))},[ee("div",{class:H(e.ns.be("node","content")),style:mt({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(N(),Te(o,{key:0,class:H([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:xt(e.handleExpandIconClick,["stop"])},{default:fe(()=>[(N(),Te(Xt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):be("v-if",!0),e.showCheckbox?(N(),Te(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=xt(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):be("v-if",!0),e.node.loading?(N(),Te(o,{key:2,class:H([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:fe(()=>[re(l)]),_:1},8,["class"])):be("v-if",!0),re(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),re(f,null,{default:fe(()=>[!e.renderAfterExpand||e.childNodeRendered?Rt((N(),X("div",{key:0,class:H(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(N(!0),X(gt,null,un(e.node.childNodes,d=>(N(),Te(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,JEe)),[[Sn,e.expanded]]):be("v-if",!0)]),_:1})],42,ZEe)),[[Sn,e.node.visible]])}var eMe=Xe(XEe,[["render",QEe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function tMe({el$:e},t){const n=We("tree"),r=Wn([]),a=Wn([]);zt(()=>{o()}),Ll(()=>{r.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),ze(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),ir(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([_t.up,_t.down].includes(u)){if(s.preventDefault(),u===_t.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()}[_t.left,_t.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[_t.enter,_t.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 nMe=te({name:"ElTree",components:{ElTreeNode:eMe},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:Kn}},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}=bn(),r=We("tree"),a=U(new KEe({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));a.value.initialize();const i=U(a.value.root),o=U(null),s=U(null),l=U(null),{broadcastExpanded:u}=A7(e),{dragState:c}=qEe({props:e,ctx:t,el$:s,dropIndicator$:l,store:a});tMe({el$:s},a);const f=R(()=>{const{childNodes:$}=i.value;return!$||$.length===0||$.every(({visible:V})=>!V)});ze(()=>e.currentNodeKey,$=>{a.value.setCurrentNodeKey($)}),ze(()=>e.defaultCheckedKeys,$=>{a.value.setDefaultCheckedKey($)}),ze(()=>e.defaultExpandedKeys,$=>{a.value.setDefaultExpandedKeys($)}),ze(()=>e.data,$=>{a.value.setData($)},{deep:!0}),ze(()=>e.checkStrictly,$=>{a.value.checkStrictly=$});const d=$=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter($)},h=$=>gI(e.nodeKey,$.data),v=$=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const V=a.value.getNode($);if(!V)return[];const P=[V.data];let G=V.parent;for(;G&&G!==i.value;)P.push(G.data),G=G.parent;return P.reverse()},p=($,V)=>a.value.getCheckedNodes($,V),g=$=>a.value.getCheckedKeys($),m=()=>{const $=a.value.getCurrentNode();return $?$.data:null},b=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const $=m();return $?$[e.nodeKey]:null},w=($,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes($,V)},S=($,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys($,V)},C=($,V,P)=>{a.value.setChecked($,V,P)},y=()=>a.value.getHalfCheckedNodes(),x=()=>a.value.getHalfCheckedKeys(),T=($,V=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");pk(a,t.emit,()=>a.value.setUserCurrentNode($,V))},A=($,V=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");pk(a,t.emit,()=>a.value.setCurrentNodeKey($,V))},M=$=>a.value.getNode($),E=$=>{a.value.remove($)},I=($,V)=>{a.value.append($,V)},L=($,V)=>{a.value.insertBefore($,V)},O=($,V)=>{a.value.insertAfter($,V)},z=($,V,P)=>{u(V),t.emit("node-expand",$,V,P)},F=($,V)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren($,V)};return tn("RootTree",{ctx:t,props:e,store:a,root:i,currentNode:o,instance:Nt()}),tn(Vs,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:w,setCheckedKeys:S,setChecked:C,getHalfCheckedNodes:y,getHalfCheckedKeys:x,setCurrentNode:T,setCurrentKey:A,t:n,getNode:M,remove:E,append:I,insertBefore:L,insertAfter:O,handleNodeExpand:z,updateKeyChildren:F}}});function rMe(e,t,n,r,a,i){const o=Dt("el-tree-node");return N(),X("div",{ref:"el$",class:H([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"},[(N(!0),X(gt,null,un(e.root.childNodes,s=>(N(),Te(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?(N(),X("div",{key:0,class:H(e.ns.e("empty-block"))},[Ve(e.$slots,"empty",{},()=>{var s;return[ee("span",{class:H(e.ns.e("empty-text"))},qe((s=e.emptyText)!=null?s:e.t("el.tree.emptyText")),3)]})],2)):be("v-if",!0),Rt(ee("div",{ref:"dropIndicator$",class:H(e.ns.e("drop-indicator"))},null,2),[[Sn,e.dragState.showDropIndicator]])],2)}var Jb=Xe(nMe,[["render",rMe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Jb.install=e=>{e.component(Jb.name,Jb)};const K1=Jb,aMe=K1,iMe=(e,{attrs:t},{tree:n,key:r})=>{const a=We("tree-select"),i={...ol(Jr(e),Object.keys(Kf.props)),...t,valueKey:r,popperClass:R(()=>{const o=[a.e("popper")];return e.popperClass&&o.push(e.popperClass),o.join(" ")}),filterMethod:(o="")=>{e.filterMethod&&e.filterMethod(o),pt(()=>{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},oMe=te({extends:B1,setup(e,t){const n=B1.setup(e,t);delete n.selectOptionClick;const r=Nt().proxy;return pt(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function yk(e){return e||e===0}function mI(e){return Array.isArray(e)&&e.length}function lp(e){return Array.isArray(e)?e:yk(e)?[e]:[]}function Qb(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(mI(s)){const l=Qb(s,t,n,r,o);if(l)return l}}}}function M7(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);mI(o)&&M7(o,t,n,i)}}const sMe=(e,{attrs:t,slots:n,emit:r},{select:a,tree:i,key:o})=>{ze(()=>e.modelValue,()=>{e.showCheckbox&&pt(()=>{const d=i.value;d&&!yi(d.getCheckedKeys(),lp(e.modelValue))&&d.setCheckedKeys(lp(e.modelValue))})},{immediate:!0,deep:!0});const s=R(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(d,h)=>{var v;const p=s.value[d];return At(p)?p(h,(v=i.value)==null?void 0:v.getNode(l("value",h))):h[p]},u=lp(e.modelValue).map(d=>Qb(e.data||[],h=>l("value",h)===d,h=>l("children",h),(h,v,p,g)=>g&&l("value",g))).filter(d=>yk(d)),c=R(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const d=[];return M7(e.data.concat(e.cacheData),h=>{const v=l("value",h);d.push({value:v,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),d}),f=R(()=>c.value.reduce((d,h)=>({...d,[h.value]:h}),{}));return{...ol(Jr(e),Object.keys(K1.props)),...t,nodeKey:o,expandOnClickNode:R(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:R(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:h,data:v,store:p})=>d(oMe,{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?lp(e.modelValue).filter(b=>b in f.value&&!i.value.getNode(b)&&!p.includes(b)):[],m=p.concat(g);if(e.checkStrictly)r(Kt,e.multiple?m:m.includes(v)?v:void 0);else if(e.multiple)r(Kt,i.value.getCheckedKeys(!0));else{const b=Qb([d],C=>!mI(l("children",C))&&!l("disabled",C),C=>l("children",C)),w=b?l("value",b):void 0,S=yk(e.modelValue)&&!!Qb([d],C=>l("value",C)===e.modelValue,C=>l("children",C));r(Kt,w===e.modelValue||S?void 0:w)}pt(()=>{var b;const w=lp(e.modelValue);i.value.setCheckedKeys(w),(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 lMe=te({props:{data:{type:Array,default:()=>[]}},setup(e){const t=ct(fy);return ze(()=>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 uMe=te({name:"ElTreeSelect",inheritAttrs:!1,props:{...Kf.props,...K1.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:r}=t,a=U(),i=U(),o=R(()=>e.nodeKey||e.valueKey||"value"),s=iMe(e,t,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=sMe(e,t,{select:a,tree:i,key:o}),c=xn({});return r(c),zt(()=>{Object.assign(c,{...ol(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...ol(a.value,["focus","blur"])})}),()=>bt(Kf,xn({...s,ref:f=>a.value=f}),{...n,default:()=>[bt(lMe,{data:l.value}),bt(K1,xn({...u,ref:f=>i.value=f}))]})}});var e1=Xe(uMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);e1.install=e=>{e.component(e1.name,e1)};const cMe=e1,fMe=cMe,yI=Symbol(),dMe={key:-1,level:-1,data:{}};var Hp=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(Hp||{}),bk=(e=>(e.ADD="add",e.DELETE="delete",e))(bk||{});const I7={type:Number,default:26},hMe=Je({data:{type:Ce(Array),default:()=>ur([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:Ce(Object),default:()=>ur({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:Ce(Array),default:()=>ur([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:Ce(Array),default:()=>ur([])},indent:{type:Number,default:16},itemSize:I7,icon:{type:Kn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:Ce([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:Ce(Function)},perfMode:{type:Boolean,default:!0}}),vMe=Je({node:{type:Ce(Object),default:()=>ur(dMe)},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:I7}),pMe=Je({node:{type:Ce(Object),required:!0}}),D7="node-click",L7="node-expand",P7="node-collapse",R7="current-change",O7="check",N7="check-change",$7="node-contextmenu",gMe={[D7]:(e,t,n)=>e&&t&&n,[L7]:(e,t)=>e&&t,[P7]:(e,t)=>e&&t,[R7]:(e,t)=>e&&t,[O7]:(e,t)=>e&&t,[N7]:(e,t)=>e&&typeof t=="boolean",[$7]:(e,t,n)=>e&&t&&n},mMe={click:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function yMe(e,t){const n=U(new Set),r=U(new Set),{emit:a}=Nt();ze([()=>t.value,()=>e.defaultCheckedKeys],()=>pt(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:S}=t.value,C=n.value,y=new Set;for(let x=S-1;x>=1;--x){const T=w.get(x);T&&T.forEach(A=>{const M=A.children;if(M){let E=!0,I=!1;for(const L of M){const O=L.key;if(C.has(O))I=!0;else if(y.has(O)){E=!1,I=!0;break}else E=!1}E?C.add(A.key):I?(y.add(A.key),C.delete(A.key)):(C.delete(A.key),y.delete(A.key))}})}r.value=y},o=w=>n.value.has(w.key),s=w=>r.value.has(w.key),l=(w,S,C=!0)=>{const y=n.value,x=(T,A)=>{y[A?bk.ADD:bk.DELETE](T.key);const M=T.children;!e.checkStrictly&&M&&M.forEach(E=>{E.disabled||x(E,A)})};x(w,S),i(),C&&u(w,S)},u=(w,S)=>{const{checkedNodes:C,checkedKeys:y}=v(),{halfCheckedNodes:x,halfCheckedKeys:T}=p();a(O7,w.data,{checkedKeys:y,checkedNodes:C,halfCheckedKeys:T,halfCheckedNodes:x}),a(N7,w.data,S)};function c(w=!1){return v(w).checkedKeys}function f(w=!1){return v(w).checkedNodes}function d(){return p().halfCheckedKeys}function h(){return p().halfCheckedNodes}function v(w=!1){const S=[],C=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:y}=t.value;n.value.forEach(x=>{const T=y.get(x);T&&(!w||w&&T.isLeaf)&&(C.push(x),S.push(T.data))})}return{checkedKeys:C,checkedNodes:S}}function p(){const w=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:C}=t.value;r.value.forEach(y=>{const x=C.get(y);x&&(S.push(y),w.push(x.data))})}return{halfCheckedNodes:w,halfCheckedKeys:S}}function g(w){n.value.clear(),r.value.clear(),b(w)}function m(w,S){if(t!=null&&t.value&&e.showCheckbox){const C=t.value.treeNodeMap.get(w);C&&l(C,S,!1)}}function b(w){if(t!=null&&t.value){const{treeNodeMap:S}=t.value;if(e.showCheckbox&&S&&w)for(const C of w){const y=S.get(C);y&&!o(y)&&l(y,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:g}}function bMe(e,t){const n=U(new Set([])),r=U(new Set([])),a=R(()=>At(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(w=>{u.add(w.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 w=!0;for(const S of b)if(!f.has(S.key)){w=!1;break}w?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 _Me(e,t){const n=U(new Set(e.defaultExpandedKeys)),r=U(),a=Wn();ze(()=>e.currentNodeKey,Q=>{r.value=Q},{immediate:!0}),ze(()=>e.data,Q=>{ce(Q)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:s,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h}=yMe(e,a),{doFilter:v,hiddenNodeKeySet:p,isForceHiddenExpandIcon:g}=bMe(e,a),m=R(()=>{var Q;return((Q=e.props)==null?void 0:Q.value)||Hp.KEY}),b=R(()=>{var Q;return((Q=e.props)==null?void 0:Q.children)||Hp.CHILDREN}),w=R(()=>{var Q;return((Q=e.props)==null?void 0:Q.disabled)||Hp.DISABLED}),S=R(()=>{var Q;return((Q=e.props)==null?void 0:Q.label)||Hp.LABEL}),C=R(()=>{const Q=n.value,_e=p.value,Pe=[],pe=a.value&&a.value.treeNodes||[];function Y(){const ie=[];for(let me=pe.length-1;me>=0;--me)ie.push(pe[me]);for(;ie.length;){const me=ie.pop();if(me&&(_e.has(me.key)||Pe.push(me),Q.has(me.key))){const De=me.children;if(De){const Be=De.length;for(let Oe=Be-1;Oe>=0;--Oe)ie.push(De[Oe])}}}}return Y(),Pe}),y=R(()=>C.value.length>0);function x(Q){const _e=new Map,Pe=new Map;let pe=1;function Y(me,De=1,Be=void 0){var Oe;const de=[];for(const we of me){const Se=M(we),Ie={level:De,key:Se,data:we};Ie.label=I(we),Ie.parent=Be;const Ee=A(we);Ie.disabled=E(we),Ie.isLeaf=!Ee||Ee.length===0,Ee&&Ee.length&&(Ie.children=Y(Ee,De+1,Ie)),de.push(Ie),_e.set(Se,Ie),Pe.has(De)||Pe.set(De,[]),(Oe=Pe.get(De))==null||Oe.push(Ie)}return De>pe&&(pe=De),de}const ie=Y(Q);return{treeNodeMap:_e,levelTreeNodeMap:Pe,maxLevel:pe,treeNodes:ie}}function T(Q){const _e=v(Q);_e&&(n.value=_e)}function A(Q){return Q[b.value]}function M(Q){return Q?Q[m.value]:""}function E(Q){return Q[w.value]}function I(Q){return Q[S.value]}function L(Q){n.value.has(Q.key)?P(Q):V(Q)}function O(Q){n.value=new Set(Q)}function z(Q,_e){t(D7,Q.data,Q,_e),F(Q),e.expandOnClickNode&&L(Q),e.showCheckbox&&e.checkOnClickNode&&!Q.disabled&&s(Q,!o(Q),!0)}function F(Q){J(Q)||(r.value=Q.key,t(R7,Q.data,Q))}function $(Q,_e){s(Q,_e)}function V(Q){const _e=n.value;if(a.value&&e.accordion){const{treeNodeMap:Pe}=a.value;_e.forEach(pe=>{const Y=Pe.get(pe);Q&&Q.level===(Y==null?void 0:Y.level)&&_e.delete(pe)})}_e.add(Q.key),t(L7,Q.data,Q)}function P(Q){n.value.delete(Q.key),t(P7,Q.data,Q)}function G(Q){return n.value.has(Q.key)}function j(Q){return!!Q.disabled}function J(Q){const _e=r.value;return _e!==void 0&&_e===Q.key}function ne(){var Q,_e;if(r.value)return(_e=(Q=a.value)==null?void 0:Q.treeNodeMap.get(r.value))==null?void 0:_e.data}function ve(){return r.value}function le(Q){r.value=Q}function ce(Q){pt(()=>a.value=x(Q))}function ue(Q){var _e;const Pe=Qt(Q)?M(Q):Q;return(_e=a.value)==null?void 0:_e.treeNodeMap.get(Pe)}return{tree:a,flattenTree:C,isNotEmpty:y,getKey:M,getChildren:A,toggleExpand:L,toggleCheckbox:s,isExpanded:G,isChecked:o,isIndeterminate:i,isDisabled:j,isCurrent:J,isForceHiddenExpandIcon:g,handleNodeClick:z,handleNodeCheck:$,getCurrentNode:ne,getCurrentKey:ve,setCurrentKey:le,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h,filter:T,setData:ce,getNode:ue,expandNode:V,collapseNode:P,setExpandedKeys:O}}var wMe=te({name:"ElTreeNodeContent",props:pMe,setup(e){const t=ct(yI),n=We("tree");return()=>{const r=e.node,{data:a}=r;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:r,data:a}):bt("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const SMe=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],CMe=te({name:"ElTreeNode"}),xMe=te({...CMe,props:vMe,emits:mMe,setup(e,{emit:t}){const n=e,r=ct(yI),a=We("tree"),i=R(()=>{var f;return(f=r==null?void 0:r.props.indent)!=null?f:16}),o=R(()=>{var f;return(f=r==null?void 0:r.props.icon)!=null?f:Gz}),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($7,f,(p=n.node)==null?void 0:p.data,n.node)};return(f,d)=>{var h,v,p;return N(),X("div",{ref:"node$",class:H([_(a).b("node"),_(a).is("expanded",f.expanded),_(a).is("current",f.current),_(a).is("focusable",!f.disabled),_(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:xt(s,["stop"]),onContextmenu:c},[ee("div",{class:H(_(a).be("node","content")),style:mt({paddingLeft:`${(f.node.level-1)*_(i)}px`,height:f.itemSize+"px"})},[_(o)?(N(),Te(_(vt),{key:0,class:H([_(a).is("leaf",!!((v=f.node)!=null&&v.isLeaf)),_(a).is("hidden",f.hiddenExpandIcon),{expanded:!((p=f.node)!=null&&p.isLeaf)&&f.expanded},_(a).be("node","expand-icon")]),onClick:xt(l,["stop"])},{default:fe(()=>[(N(),Te(Xt(_(o))))]),_:1},8,["class","onClick"])):be("v-if",!0),f.showCheckbox?(N(),Te(_(yo),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:d[0]||(d[0]=xt(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):be("v-if",!0),re(_(wMe),{node:f.node},null,8,["node"])],6)],42,SMe)}}});var TMe=Xe(xMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const kMe=te({name:"ElTreeV2"}),AMe=te({...kMe,props:hMe,emits:gMe,setup(e,{expose:t,emit:n}){const r=e,a=ka(),i=R(()=>r.itemSize);tn(yI,{ctx:{emit:n,slots:a},props:r,instance:Nt()}),tn(Vs,void 0);const{t:o}=bn(),s=We("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:d,isChecked:h,isDisabled:v,isCurrent:p,isForceHiddenExpandIcon:g,handleNodeClick:m,handleNodeCheck:b,toggleCheckbox:w,getCurrentNode:S,getCurrentKey:C,setCurrentKey:y,getCheckedKeys:x,getCheckedNodes:T,getHalfCheckedKeys:A,getHalfCheckedNodes:M,setChecked:E,setCheckedKeys:I,filter:L,setData:O,getNode:z,expandNode:F,collapseNode:$,setExpandedKeys:V}=_Me(r,n);return t({toggleCheckbox:w,getCurrentNode:S,getCurrentKey:C,setCurrentKey:y,getCheckedKeys:x,getCheckedNodes:T,getHalfCheckedKeys:A,getHalfCheckedNodes:M,setChecked:E,setCheckedKeys:I,filter:L,setData:O,getNode:z,expandNode:F,collapseNode:$,setExpandedKeys:V}),(P,G)=>{var j;return N(),X("div",{class:H([_(s).b(),{[_(s).m("highlight-current")]:P.highlightCurrent}]),role:"tree"},[_(u)?(N(),Te(_(WW),{key:0,"class-name":_(s).b("virtual-list"),data:_(l),total:_(l).length,height:P.height,"item-size":_(i),"perf-mode":P.perfMode},{default:fe(({data:J,index:ne,style:ve})=>[(N(),Te(TMe,{key:J[ne].key,style:mt(ve),node:J[ne],expanded:_(f)(J[ne]),"show-checkbox":P.showCheckbox,checked:_(h)(J[ne]),indeterminate:_(d)(J[ne]),"item-size":_(i),disabled:_(v)(J[ne]),current:_(p)(J[ne]),"hidden-expand-icon":_(g)(J[ne]),onClick:_(m),onToggle:_(c),onCheck:_(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"])):(N(),X("div",{key:1,class:H(_(s).e("empty-block"))},[ee("span",{class:H(_(s).e("empty-text"))},qe((j=P.emptyText)!=null?j:_(o)("el.tree.emptyText")),3)],2))],2)}}});var EMe=Xe(AMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const MMe=Ut(EMe),B7=Symbol("uploadContextKey"),IMe="ElUpload";class DMe extends Error{constructor(t,n,r,a){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function YN(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 DMe(r,n.status,t.method,e)}function LMe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const PMe=e=>{typeof XMLHttpRequest>"u"&&Kr(IMe,"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))ft(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(YN(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(YN(n,e,t));e.onSuccess(LMe(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))Wr(o)||t.setRequestHeader(i,String(o));return t.send(r),t},F7=["text","picture","picture-card"];let RMe=1;const _k=()=>Date.now()+RMe++,V7=Je({action:{type:String,default:"#"},headers:{type:Ce(Object)},method:{type:String,default:"post"},data:{type:Ce([Object,Function,Promise]),default:()=>ur({})},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:Ce(Array),default:()=>ur([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:F7,default:"text"},httpRequest:{type:Ce(Function),default:PMe},disabled:Boolean,limit:Number}),OMe=Je({...V7,beforeUpload:{type:Ce(Function),default:On},beforeRemove:{type:Ce(Function)},onRemove:{type:Ce(Function),default:On},onChange:{type:Ce(Function),default:On},onPreview:{type:Ce(Function),default:On},onSuccess:{type:Ce(Function),default:On},onProgress:{type:Ce(Function),default:On},onError:{type:Ce(Function),default:On},onExceed:{type:Ce(Function),default:On}}),NMe=Je({files:{type:Ce(Array),default:()=>ur([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Ce(Function),default:On},listType:{type:String,values:F7,default:"text"}}),$Me={remove:e=>!!e},BMe=["onKeydown"],FMe=["src"],VMe=["onClick"],zMe=["title"],HMe=["onClick"],WMe=["onClick"],GMe=te({name:"ElUploadList"}),UMe=te({...GMe,props:NMe,emits:$Me,setup(e,{emit:t}){const{t:n}=bn(),r=We("upload"),a=We("icon"),i=We("list"),o=xi(),s=U(!1),l=u=>{t("remove",u)};return(u,c)=>(N(),Te(A8,{tag:"ul",class:H([_(r).b("list"),_(r).bm("list",u.listType),_(r).is("disabled",_(o))]),name:_(i).b()},{default:fe(()=>[(N(!0),X(gt,null,un(u.files,f=>(N(),X("li",{key:f.uid||f.name,class:H([_(r).be("list","item"),_(r).is(f.status),{focusing:s.value}]),tabindex:"0",onKeydown:yn(d=>!_(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)},[Ve(u.$slots,"default",{file:f},()=>[u.listType==="picture"||f.status!=="uploading"&&u.listType==="picture-card"?(N(),X("img",{key:0,class:H(_(r).be("list","item-thumbnail")),src:f.url,alt:""},null,10,FMe)):be("v-if",!0),f.status==="uploading"||u.listType!=="picture-card"?(N(),X("div",{key:1,class:H(_(r).be("list","item-info"))},[ee("a",{class:H(_(r).be("list","item-name")),onClick:xt(d=>u.handlePreview(f),["prevent"])},[re(_(vt),{class:H(_(a).m("document"))},{default:fe(()=>[re(_(iue))]),_:1},8,["class"]),ee("span",{class:H(_(r).be("list","item-file-name")),title:f.name},qe(f.name),11,zMe)],10,VMe),f.status==="uploading"?(N(),Te(_(RW),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:mt(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):be("v-if",!0)],2)):be("v-if",!0),ee("label",{class:H(_(r).be("list","item-status-label"))},[u.listType==="text"?(N(),Te(_(vt),{key:0,class:H([_(a).m("upload-success"),_(a).m("circle-check")])},{default:fe(()=>[re(_(dM))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(N(),Te(_(vt),{key:1,class:H([_(a).m("upload-success"),_(a).m("check")])},{default:fe(()=>[re(_(oy))]),_:1},8,["class"])):be("v-if",!0)],2),_(o)?be("v-if",!0):(N(),Te(_(vt),{key:2,class:H(_(a).m("close")),onClick:d=>l(f)},{default:fe(()=>[re(_(Jo))]),_:2},1032,["class","onClick"])),be(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),be(" This is a bug which needs to be fixed "),be(" TODO: Fix the incorrect navigation interaction "),_(o)?be("v-if",!0):(N(),X("i",{key:3,class:H(_(a).m("close-tip"))},qe(_(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(N(),X("span",{key:4,class:H(_(r).be("list","item-actions"))},[ee("span",{class:H(_(r).be("list","item-preview")),onClick:d=>u.handlePreview(f)},[re(_(vt),{class:H(_(a).m("zoom-in"))},{default:fe(()=>[re(_(Yz))]),_:1},8,["class"])],10,HMe),_(o)?be("v-if",!0):(N(),X("span",{key:0,class:H(_(r).be("list","item-delete")),onClick:d=>l(f)},[re(_(vt),{class:H(_(a).m("delete"))},{default:fe(()=>[re(_(rue))]),_:1},8,["class"])],10,WMe))],2)):be("v-if",!0)])],42,BMe))),128)),Ve(u.$slots,"append")]),_:3},8,["class","name"]))}});var qN=Xe(UMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const KMe=Je({disabled:{type:Boolean,default:!1}}),jMe={file:e=>ft(e)},YMe=["onDrop","onDragover"],z7="ElUploadDrag",qMe=te({name:z7}),XMe=te({...qMe,props:KMe,emits:jMe,setup(e,{emit:t}){const n=ct(B7);n||Kr(z7,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=We("upload"),a=U(!1),i=xi(),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)=>(N(),X("div",{class:H([_(r).b("dragger"),_(r).is("dragover",a.value)]),onDrop:xt(o,["prevent"]),onDragover:xt(s,["prevent"]),onDragleave:u[0]||(u[0]=xt(c=>a.value=!1,["prevent"]))},[Ve(l.$slots,"default")],42,YMe))}});var ZMe=Xe(XMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const JMe=Je({...V7,beforeUpload:{type:Ce(Function),default:On},onRemove:{type:Ce(Function),default:On},onStart:{type:Ce(Function),default:On},onSuccess:{type:Ce(Function),default:On},onProgress:{type:Ce(Function),default:On},onError:{type:Ce(Function),default:On},onExceed:{type:Ce(Function),default:On}}),QMe=["onKeydown"],eIe=["name","multiple","accept"],tIe=te({name:"ElUploadContent",inheritAttrs:!1}),nIe=te({...tIe,props:JMe,setup(e,{expose:t}){const n=e,r=We("upload"),a=xi(),i=Wn({}),o=Wn(),s=p=>{if(p.length===0)return;const{autoUpload:g,limit:m,fileList:b,multiple:w,onStart:S,onExceed:C}=n;if(m&&b.length+p.length>m){C(p,b);return}w||(p=p.slice(0,1));for(const y of p){const x=y;x.uid=_k(),S(x),g&&l(x)}},l=async p=>{if(o.value.value="",!n.beforeUpload)return c(p);let g,m={};try{const w=n.data,S=n.beforeUpload(p);m=w1(n.data)?D1(n.data):n.data,g=await S,w1(n.data)&&yi(w,m)&&(m=D1(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)=>At(p)?p(g):p,c=async(p,g)=>{const{headers:m,data:b,method:w,withCredentials:S,name:C,action:y,onProgress:x,onSuccess:T,onError:A,httpRequest:M}=n;try{g=await u(g??b,p)}catch{n.onRemove(p);return}const{uid:E}=p,I={headers:m||{},withCredentials:S,file:p,data:g,method:w,filename:C,action:y,onProgress:O=>{x(O,p)},onSuccess:O=>{T(O,p),delete i.value[E]},onError:O=>{A(O,p),delete i.value[E]}},L=M(I);i.value[E]=L,L instanceof Promise&&L.then(I.onSuccess,I.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=>{Lle(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)=>(N(),X("div",{class:H([_(r).b(),_(r).m(p.listType),_(r).is("drag",p.drag)]),tabindex:"0",onClick:d,onKeydown:yn(xt(h,["self"]),["enter","space"])},[p.drag?(N(),Te(ZMe,{key:0,disabled:_(a),onFile:s},{default:fe(()=>[Ve(p.$slots,"default")]),_:3},8,["disabled"])):Ve(p.$slots,"default",{key:1}),ee("input",{ref_key:"inputRef",ref:o,class:H(_(r).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=xt(()=>{},["stop"]))},null,42,eIe)],42,QMe))}});var XN=Xe(nIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const ZN="ElUpload",JN=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},rIe=(e,t)=>{const n=yne(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=>{Wr(d.uid)&&(d.uid=_k());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||Kr(ZN,"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),JN(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 ze(()=>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}))}),ze(n,d=>{for(const h of d)h.uid||(h.uid=_k()),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:JN}},aIe=te({name:"ElUpload"}),iIe=te({...aIe,props:OMe,setup(e,{expose:t}){const n=e,r=xi(),a=Wn(),{abort:i,submit:o,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:d,handleProgress:h,revokeFileObjectURL:v}=rIe(n,a),p=R(()=>n.listType==="picture-card"),g=R(()=>({...n,fileList:l.value,onStart:u,onProgress:h,onSuccess:d,onError:c,onRemove:f}));return sr(()=>{l.value.forEach(v)}),tn(B7,{accept:vr(n,"accept")}),t({abort:i,submit:o,clearFiles:s,handleStart:u,handleRemove:f}),(m,b)=>(N(),X("div",null,[_(p)&&m.showFileList?(N(),Te(qN,{key:0,disabled:_(r),"list-type":m.listType,files:_(l),"handle-preview":m.onPreview,onRemove:_(f)},bl({append:fe(()=>[re(XN,qt({ref_key:"uploadRef",ref:a},_(g)),{default:fe(()=>[m.$slots.trigger?Ve(m.$slots,"trigger",{key:0}):be("v-if",!0),!m.$slots.trigger&&m.$slots.default?Ve(m.$slots,"default",{key:1}):be("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:fe(({file:w})=>[Ve(m.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):be("v-if",!0),!_(p)||_(p)&&!m.showFileList?(N(),Te(XN,qt({key:1,ref_key:"uploadRef",ref:a},_(g)),{default:fe(()=>[m.$slots.trigger?Ve(m.$slots,"trigger",{key:0}):be("v-if",!0),!m.$slots.trigger&&m.$slots.default?Ve(m.$slots,"default",{key:1}):be("v-if",!0)]),_:3},16)):be("v-if",!0),m.$slots.trigger?Ve(m.$slots,"default",{key:2}):be("v-if",!0),Ve(m.$slots,"tip"),!_(p)&&m.showFileList?(N(),Te(qN,{key:3,disabled:_(r),"list-type":m.listType,files:_(l),"handle-preview":m.onPreview,onRemove:_(f)},bl({_:2},[m.$slots.file?{name:"default",fn:fe(({file:w})=>[Ve(m.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):be("v-if",!0)]))}});var oIe=Xe(iIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const sIe=Ut(oIe);var lIe=[fde,Sde,Yve,xAe,tpe,lpe,JH,wpe,Spe,_a,i9,zge,Kge,ome,sme,wye,sye,Aye,yo,Ame,P9,Fye,r0e,a0e,qye,P0e,rde,U0e,K0e,j0e,Y0e,q0e,p1e,T1e,k1e,H1e,vW,n_e,j_e,Y_e,q_e,CW,phe,ghe,vt,zwe,xW,Ra,TW,tSe,wSe,SSe,CSe,xSe,DSe,NCe,HCe,ZCe,qH,RW,V9,Wme,Hme,vxe,bxe,Rye,$l,Kf,B1,lCe,u2e,m2e,y2e,Y2e,Q2e,QW,cTe,bTe,_Te,DTe,Fke,Vke,CAe,FAe,VAe,om,UAe,bge,ZAe,nEe,rEe,ri,MEe,GEe,aMe,fMe,MMe,sIe];const Bo="ElInfiniteScroll",uIe=50,cIe=200,fIe=0,dIe={delay:{type:Number,default:cIe},distance:{type:Number,default:fIe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},bI=(e,t)=>Object.entries(dIe).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},{}),H7=e=>{const{observer:t}=e[Bo];t&&(t.disconnect(),delete e[Bo].observer)},hIe=(e,t)=>{const{container:n,containerEl:r,instance:a,observer:i,lastScrollTop:o}=e[Bo],{disabled:s,distance:l}=bI(e,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=r,d=f-o;if(e[Bo].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=Sne(e,r);h=f+u>=g+v+p-l}h&&t.call(a)};function EC(e,t){const{containerEl:n,instance:r}=e[Bo],{disabled:a}=bI(e,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(r):H7(e))}const vIe={async mounted(e,t){const{instance:n,value:r}=t;At(r)||Kr(Bo,"'v-infinite-scroll' binding value must be a function"),await pt();const{delay:a,immediate:i}=bI(e,n),o=fM(e,!0),s=o===window?document.documentElement:o,l=Df(hIe.bind(null,e,r),a);if(o){if(e[Bo]={instance:n,container:o,containerEl:s,delay:a,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(Df(EC.bind(null,e,r),uIe));e[Bo].observer=u,u.observe(e,{childList:!0,subtree:!0}),EC(e,r)}o.addEventListener("scroll",l)}},unmounted(e){const{container:t,onScroll:n}=e[Bo];t==null||t.removeEventListener("scroll",n),H7(e)},async updated(e){if(!e[Bo])await pt();else{const{containerEl:t,cb:n,observer:r}=e[Bo];t.clientHeight&&r&&EC(e,n)}}},wk=vIe;wk.install=e=>{e.directive("InfiniteScroll",wk)};const pIe=wk;function gIe(e){let t;const n=U(!1),r=xn({...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()):(bi(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),bi(d,h.bm("parent","hidden"))}o(),c.unmount()}function o(){var d,h;(h=(d=f.$el)==null?void 0:d.parentNode)==null||h.removeChild(f.$el)}function s(){var d;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(l,400),r.visible=!1,(d=e.closed)==null||d.call(e))}function l(){if(!n.value)return;const d=r.parent;n.value=!1,d.vLoadingAddClassList=void 0,i()}const u=te({name:"ElLoading",setup(d,{expose:h}){const{ns:v,zIndex:p}=Ew("loading");return h({ns:v,zIndex:p}),()=>{const g=r.spinner||r.svg,m=bt("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[bt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=r.text?bt("p",{class:v.b("text")},[r.text]):void 0;return bt(Mr,{name:v.b("fade"),onAfterLeave:l},{default:fe(()=>[Rt(re("div",{style:{backgroundColor:r.background||""},class:[v.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[bt("div",{class:v.b("spinner")},[m,b])]),[[Sn,r.visible]])])})}}}),c=L8(u),f=c.mount(document.createElement("div"));return{...Jr(r),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let _0;const Sk=function(e={}){if(!vn)return;const t=mIe(e);if(t.fullscreen&&_0)return _0;const n=gIe({...t,closed:()=>{var a;(a=t.closed)==null||a.call(t),t.fullscreen&&(_0=void 0)}});yIe(t,t.parent,n),QN(t,t.parent,n),t.parent.vLoadingAddClassList=()=>QN(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),pt(()=>n.visible.value=t.visible),t.fullscreen&&(_0=n),n},mIe=e=>{var t,n,r,a;let i;return Mt(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}},yIe=async(e,t,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(e.fullscreen)n.originalPosition.value=mu(document.body,"position"),n.originalOverflow.value=mu(document.body,"overflow"),a.zIndex=r();else if(e.parent===document.body){n.originalPosition.value=mu(document.body,"position"),await pt();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(mu(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=mu(t,"position");for(const[i,o]of Object.entries(a))n.$el.style[i]=o},QN=(e,t,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?bi(t,r.bm("parent","relative")):As(t,r.bm("parent","relative")),e.fullscreen&&e.lock?As(t,r.bm("parent","hidden")):bi(t,r.bm("parent","hidden"))},Ck=Symbol("ElLoading"),e$=(e,t)=>{var n,r,a,i;const o=t.instance,s=d=>Qt(t.value)?t.value[d]:void 0,l=d=>{const h=Mt(d)&&(o==null?void 0:o[d])||d;return h&&U(h)},u=d=>l(s(d)||e.getAttribute(`element-loading-${ec(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[Ck]={options:f,instance:Sk(f)}},bIe=(e,t)=>{for(const n of Object.keys(t))Rn(t[n])&&(t[n].value=e[n])},t$={mounted(e,t){t.value&&e$(e,t)},updated(e,t){const n=e[Ck];t.oldValue!==t.value&&(t.value&&!t.oldValue?e$(e,t):t.value&&t.oldValue?Qt(t.value)&&bIe(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[Ck])==null||t.instance.close()}},_Ie={install(e){e.directive("loading",t$),e.config.globalProperties.$loading=Sk},directive:t$,service:Sk},W7=["success","info","warning","error"],hi=ur({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:vn?document.body:void 0}),wIe=Je({customClass:{type:String,default:hi.customClass},center:{type:Boolean,default:hi.center},dangerouslyUseHTMLString:{type:Boolean,default:hi.dangerouslyUseHTMLString},duration:{type:Number,default:hi.duration},icon:{type:Kn,default:hi.icon},id:{type:String,default:hi.id},message:{type:Ce([String,Object,Function]),default:hi.message},onClose:{type:Ce(Function),required:!1},showClose:{type:Boolean,default:hi.showClose},type:{type:String,values:W7,default:hi.type},offset:{type:Number,default:hi.offset},zIndex:{type:Number,default:hi.zIndex},grouping:{type:Boolean,default:hi.grouping},repeatNum:{type:Number,default:hi.repeatNum}}),SIe={destroy:()=>!0},Ho=B6([]),CIe=e=>{const t=Ho.findIndex(a=>a.id===e),n=Ho[t];let r;return t>0&&(r=Ho[t-1]),{current:n,prev:r}},xIe=e=>{const{prev:t}=CIe(e);return t?t.vm.exposed.bottom.value:0},TIe=(e,t)=>Ho.findIndex(r=>r.id===e)>0?20:t,kIe=["id"],AIe=["innerHTML"],EIe=te({name:"ElMessage"}),MIe=te({...EIe,props:wIe,emits:SIe,setup(e,{expose:t}){const n=e,{Close:r}=pM,{ns:a,zIndex:i}=Ew("message"),{currentZIndex:o,nextZIndex:s}=i,l=U(),u=U(!1),c=U(0);let f;const d=R(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=R(()=>{const x=n.type;return{[a.bm("icon",x)]:x&&zu[x]}}),v=R(()=>n.icon||zu[n.type]||""),p=R(()=>xIe(n.id)),g=R(()=>TIe(n.id,n.offset)+p.value),m=R(()=>c.value+g.value),b=R(()=>({top:`${g.value}px`,zIndex:o.value}));function w(){n.duration!==0&&({stop:f}=Wf(()=>{C()},n.duration))}function S(){f==null||f()}function C(){u.value=!1}function y({code:x}){x===_t.esc&&C()}return zt(()=>{w(),s(),u.value=!0}),ze(()=>n.repeatNum,()=>{S(),w()}),ir(document,"keydown",y),$a(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:m,close:C}),(x,T)=>(N(),Te(Mr,{name:_(a).b("fade"),onBeforeLeave:x.onClose,onAfterLeave:T[0]||(T[0]=A=>x.$emit("destroy")),persisted:""},{default:fe(()=>[Rt(ee("div",{id:x.id,ref_key:"messageRef",ref:l,class:H([_(a).b(),{[_(a).m(x.type)]:x.type&&!x.icon},_(a).is("center",x.center),_(a).is("closable",x.showClose),x.customClass]),style:mt(_(b)),role:"alert",onMouseenter:S,onMouseleave:w},[x.repeatNum>1?(N(),Te(_(JH),{key:0,value:x.repeatNum,type:_(d),class:H(_(a).e("badge"))},null,8,["value","type","class"])):be("v-if",!0),_(v)?(N(),Te(_(vt),{key:1,class:H([_(a).e("icon"),_(h)])},{default:fe(()=>[(N(),Te(Xt(_(v))))]),_:1},8,["class"])):be("v-if",!0),Ve(x.$slots,"default",{},()=>[x.dangerouslyUseHTMLString?(N(),X(gt,{key:1},[be(" Caution here, message could've been compromised, never use user's input as message "),ee("p",{class:H(_(a).e("content")),innerHTML:x.message},null,10,AIe)],2112)):(N(),X("p",{key:0,class:H(_(a).e("content"))},qe(x.message),3))]),x.showClose?(N(),Te(_(vt),{key:2,class:H(_(a).e("closeBtn")),onClick:xt(C,["stop"])},{default:fe(()=>[re(_(r))]),_:1},8,["class","onClick"])):be("v-if",!0)],46,kIe),[[Sn,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var IIe=Xe(MIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let DIe=1;const G7=e=>{const t=!e||Mt(e)||fr(e)||At(e)?{message:e}:e,n={...hi,...t};if(!n.appendTo)n.appendTo=document.body;else if(Mt(n.appendTo)){let r=document.querySelector(n.appendTo);ho(r)||(r=document.body),n.appendTo=r}return n},LIe=e=>{const t=Ho.indexOf(e);if(t===-1)return;Ho.splice(t,1);const{handler:n}=e;n.close()},PIe=({appendTo:e,...t},n)=>{const r=`message_${DIe++}`,a=t.onClose,i=document.createElement("div"),o={...t,id:r,onClose:()=>{a==null||a(),LIe(c)},onDestroy:()=>{Fh(null,i)}},s=re(IIe,o,At(o.message)||fr(o.message)?{default:At(o.message)?o.message:()=>o.message}:null);s.appContext=n||tv._context,Fh(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},tv=(e={},t)=>{if(!vn)return{close:()=>{}};if(kt(AT.max)&&Ho.length>=AT.max)return{close:()=>{}};const n=G7(e);if(n.grouping&&Ho.length){const a=Ho.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=PIe(n,t);return Ho.push(r),r.handler};W7.forEach(e=>{tv[e]=(t={},n)=>{const r=G7(t);return tv({...r,type:e},n)}});function RIe(e){for(const t of Ho)(!e||e===t.props.type)&&t.handler.close()}tv.closeAll=RIe;tv._context=null;const OIe=Zz(tv,"$message"),NIe=te({name:"ElMessageBox",directives:{TrapFocus:tge},components:{ElButton:_a,ElFocusTrap:Iw,ElInput:Ra,ElOverlay:KM,ElIcon:vt,...pM},inheritAttrs:!1,props:{buttonSize:{type:String,validator:_w},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}=Ew("message-box",R(()=>e.buttonSize)),{t:o}=n,{nextZIndex:s}=r,l=U(!1),u=xn({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),c=R(()=>{const z=u.type;return{[a.bm("icon",z)]:z&&zu[z]}}),f=go(),d=go(),h=R(()=>u.icon||zu[u.type]||""),v=R(()=>!!u.message),p=U(),g=U(),m=U(),b=U(),w=U(),S=R(()=>u.confirmButtonClass);ze(()=>u.inputValue,async z=>{await pt(),e.boxType==="prompt"&&z!==null&&E()},{immediate:!0}),ze(()=>l.value,z=>{var F,$;z&&(e.boxType!=="prompt"&&(u.autofocus?m.value=($=(F=w.value)==null?void 0:F.$el)!=null?$:p.value:m.value=p.value),u.zIndex=s()),e.boxType==="prompt"&&(z?pt().then(()=>{var V;b.value&&b.value.$el&&(u.autofocus?m.value=(V=I())!=null?V:p.value:m.value=p.value)}):(u.editorErrorMessage="",u.validateError=!1))});const C=R(()=>e.draggable);Jz(p,g,C),zt(async()=>{await pt(),e.closeOnHashChange&&window.addEventListener("hashchange",y)}),sr(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",y)});function y(){l.value&&(l.value=!1,pt(()=>{u.action&&t("action",u.action)}))}const x=()=>{e.closeOnClickModal&&M(u.distinguishCancelAndClose?"close":"cancel")},T=AM(x),A=z=>{if(u.inputType!=="textarea")return z.preventDefault(),M("confirm")},M=z=>{var F;e.boxType==="prompt"&&z==="confirm"&&!E()||(u.action=z,u.beforeClose?(F=u.beforeClose)==null||F.call(u,z,u,y):y())},E=()=>{if(e.boxType==="prompt"){const z=u.inputPattern;if(z&&!z.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const F=u.inputValidator;if(typeof F=="function"){const $=F(u.inputValue);if($===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof $=="string")return u.editorErrorMessage=$,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},I=()=>{const z=b.value.$refs;return z.input||z.textarea},L=()=>{M("close")},O=()=>{e.closeOnPressEscape&&L()};return e.lockScroll&&tH(l),{...Jr(u),ns:a,overlayEvent:T,visible:l,hasMessage:v,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:h,confirmButtonClasses:S,rootRef:p,focusStartRef:m,headerRef:g,inputRef:b,confirmRef:w,doClose:y,handleClose:L,onCloseRequested:O,handleWrapperClick:x,handleInputEnter:A,handleAction:M,t:o}}}),$Ie=["aria-label","aria-describedby"],BIe=["aria-label"],FIe=["id"];function VIe(e,t,n,r,a,i){const o=Dt("el-icon"),s=Dt("close"),l=Dt("el-input"),u=Dt("el-button"),c=Dt("el-focus-trap"),f=Dt("el-overlay");return N(),Te(Mr,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=d=>e.$emit("vanish")),persisted:""},{default:fe(()=>[Rt(re(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:fe(()=>[ee("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:H(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...d)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...d)),onMousedown:t[9]||(t[9]=(...d)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...d)),onMouseup:t[10]||(t[10]=(...d)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...d))},[re(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:fe(()=>[ee("div",{ref:"rootRef",class:H([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:mt(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=xt(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(N(),X("div",{key:0,ref:"headerRef",class:H(e.ns.e("header"))},[ee("div",{class:H(e.ns.e("title"))},[e.iconComponent&&e.center?(N(),Te(o,{key:0,class:H([e.ns.e("status"),e.typeClass])},{default:fe(()=>[(N(),Te(Xt(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),ee("span",null,qe(e.title),1)],2),e.showClose?(N(),X("button",{key:0,type:"button",class:H(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]=yn(xt(d=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[re(o,{class:H(e.ns.e("close"))},{default:fe(()=>[re(s)]),_:1},8,["class"])],42,BIe)):be("v-if",!0)],2)):be("v-if",!0),ee("div",{id:e.contentId,class:H(e.ns.e("content"))},[ee("div",{class:H(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(N(),Te(o,{key:0,class:H([e.ns.e("status"),e.typeClass])},{default:fe(()=>[(N(),Te(Xt(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),e.hasMessage?(N(),X("div",{key:1,class:H(e.ns.e("message"))},[Ve(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(N(),Te(Xt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(N(),Te(Xt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:fe(()=>[Cn(qe(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):be("v-if",!0)],2),Rt(ee("div",{class:H(e.ns.e("input"))},[re(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=d=>e.inputValue=d),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:H({invalid:e.validateError}),onKeydown:yn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),ee("div",{class:H(e.ns.e("errormsg")),style:mt({visibility:e.editorErrorMessage?"visible":"hidden"})},qe(e.editorErrorMessage),7)],2),[[Sn,e.showInput]])],10,FIe),ee("div",{class:H(e.ns.e("btns"))},[e.showCancelButton?(N(),Te(u,{key:0,loading:e.cancelButtonLoading,class:H([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=d=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=yn(xt(d=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:fe(()=>[Cn(qe(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):be("v-if",!0),Rt(re(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:H([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]=yn(xt(d=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:fe(()=>[Cn(qe(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Sn,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,$Ie)]),_:3},8,["z-index","overlay-class","mask"]),[[Sn,e.visible]])]),_:3})}var zIe=Xe(NIe,[["render",VIe],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const pm=new Map,HIe=e=>{let t=document.body;return e.appendTo&&(Mt(e.appendTo)&&(t=document.querySelector(e.appendTo)),ho(e.appendTo)&&(t=e.appendTo),ho(t)||(t=document.body)),t},WIe=(e,t,n=null)=>{const r=re(zIe,e,At(e.message)||fr(e.message)?{default:At(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Fh(r,t),HIe(e).appendChild(t.firstElementChild),r.component},GIe=()=>document.createElement("div"),UIe=(e,t)=>{const n=GIe();e.onVanish=()=>{Fh(null,n),pm.delete(a)},e.onAction=i=>{const o=pm.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=WIe(e,n,t),a=r.proxy;for(const i in e)fn(e,i)&&!fn(a.$props,i)&&(a[i]=e[i]);return a.visible=!0,a};function Sv(e,t=null){if(!vn)return Promise.reject();let n;return Mt(e)||fr(e)?e={message:e}:n=e.callback,new Promise((r,a)=>{const i=UIe(e,t??Sv._context);pm.set(i,{options:e,callback:n,resolve:r,reject:a})})}const KIe=["alert","confirm","prompt"],jIe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};KIe.forEach(e=>{Sv[e]=YIe(e)});function YIe(e){return(t,n,r,a)=>{let i="";return Qt(n)?(r=n,i=""):Xr(n)?i="":i=n,Sv(Object.assign({title:i,message:t,type:"",...jIe[e]},r,{boxType:e}),a)}}Sv.close=()=>{pm.forEach((e,t)=>{t.doClose()}),pm.clear()};Sv._context=null;const uu=Sv;uu.install=e=>{uu._context=e._context,e.config.globalProperties.$msgbox=uu,e.config.globalProperties.$messageBox=uu,e.config.globalProperties.$alert=uu.alert,e.config.globalProperties.$confirm=uu.confirm,e.config.globalProperties.$prompt=uu.prompt};const qIe=uu,U7=["success","info","warning","error"],XIe=Je({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Kn},id:{type:String,default:""},message:{type:Ce([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:Ce(Function),default:()=>{}},onClose:{type:Ce(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:[...U7,""],default:""},zIndex:Number}),ZIe={destroy:()=>!0},JIe=["id"],QIe=["textContent"],eDe={key:0},tDe=["innerHTML"],nDe=te({name:"ElNotification"}),rDe=te({...nDe,props:XIe,emits:ZIe,setup(e,{expose:t}){const n=e,{ns:r,zIndex:a}=Ew("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=Xz,l=U(!1);let u;const c=R(()=>{const w=n.type;return w&&zu[n.type]?r.m(w):""}),f=R(()=>n.type&&zu[n.type]||n.icon),d=R(()=>n.position.endsWith("right")?"right":"left"),h=R(()=>n.position.startsWith("top")?"top":"bottom"),v=R(()=>{var w;return{[h.value]:`${n.offset}px`,zIndex:(w=n.zIndex)!=null?w:o.value}});function p(){n.duration>0&&({stop:u}=Wf(()=>{l.value&&m()},n.duration))}function g(){u==null||u()}function m(){l.value=!1}function b({code:w}){w===_t.delete||w===_t.backspace?g():w===_t.esc?l.value&&m():p()}return zt(()=>{p(),i(),l.value=!0}),ir(document,"keydown",b),t({visible:l,close:m}),(w,S)=>(N(),Te(Mr,{name:_(r).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:S[1]||(S[1]=C=>w.$emit("destroy")),persisted:""},{default:fe(()=>[Rt(ee("div",{id:w.id,class:H([_(r).b(),w.customClass,_(d)]),style:mt(_(v)),role:"alert",onMouseenter:g,onMouseleave:p,onClick:S[0]||(S[0]=(...C)=>w.onClick&&w.onClick(...C))},[_(f)?(N(),Te(_(vt),{key:0,class:H([_(r).e("icon"),_(c)])},{default:fe(()=>[(N(),Te(Xt(_(f))))]),_:1},8,["class"])):be("v-if",!0),ee("div",{class:H(_(r).e("group"))},[ee("h2",{class:H(_(r).e("title")),textContent:qe(w.title)},null,10,QIe),Rt(ee("div",{class:H(_(r).e("content")),style:mt(w.title?void 0:{margin:0})},[Ve(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(N(),X(gt,{key:1},[be(" Caution here, message could've been compromised, never use user's input as message "),ee("p",{innerHTML:w.message},null,8,tDe)],2112)):(N(),X("p",eDe,qe(w.message),1))])],6),[[Sn,w.message]]),w.showClose?(N(),Te(_(vt),{key:0,class:H(_(r).e("closeBtn")),onClick:xt(m,["stop"])},{default:fe(()=>[re(_(s))]),_:1},8,["class","onClick"])):be("v-if",!0)],2)],46,JIe),[[Sn,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var aDe=Xe(rDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const j1={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},xk=16;let iDe=1;const nv=function(e={},t=null){if(!vn)return{close:()=>{}};(typeof e=="string"||fr(e))&&(e={message:e});const n=e.position||"top-right";let r=e.offset||0;j1[n].forEach(({vm:c})=>{var f;r+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+xk}),r+=xk;const a=`notification_${iDe++}`,i=e.onClose,o={...e,offset:r,id:a,onClose:()=>{oDe(a,n,i)}};let s=document.body;ho(e.appendTo)?s=e.appendTo:Mt(e.appendTo)&&(s=document.querySelector(e.appendTo)),ho(s)||(s=document.body);const l=document.createElement("div"),u=re(aDe,o,fr(o.message)?{default:()=>o.message}:null);return u.appContext=t??nv._context,u.props.onDestroy=()=>{Fh(null,l)},Fh(u,l),j1[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};U7.forEach(e=>{nv[e]=(t={})=>((typeof t=="string"||fr(t))&&(t={message:t}),nv({...t,type:e}))});function oDe(e,t,n){const r=j1[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-xk;f.props.offset=d}}function sDe(){for(const e of Object.values(j1))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}nv.closeAll=sDe;nv._context=null;const lDe=Zz(nv,"$notify");var uDe=[pIe,_Ie,OIe,qIe,lDe,PW],cDe=ide([...lIe,...uDe]);/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */(function(e,t){typeof module=="object"&&typeof module.exports=="object"?module.exports=e.document?t(e,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(e)})(typeof window<"u"?window:globalThis,function(e,t){var n=[],r=Object.getPrototypeOf,a=n.slice,i=n.flat?function(k){return n.flat.call(k)}:function(k){return n.concat.apply([],k)},o=n.push,s=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,f=c.toString,d=f.call(Object),h={},v=function(k){return typeof k=="function"&&typeof k.nodeType!="number"&&typeof k.item!="function"},p=function(k){return k!=null&&k===k.window},g=e.document,m={type:!0,src:!0,nonce:!0,noModule:!0};function b(k,D,B){var W,q,Z=(B=B||g).createElement("script");if(Z.text=k,D)for(W in m)(q=D[W]||D.getAttribute&&D.getAttribute(W))&&Z.setAttribute(W,q);B.head.appendChild(Z).parentNode.removeChild(Z)}function w(k){return k==null?k+"":typeof k=="object"||typeof k=="function"?l[u.call(k)]||"object":typeof k}var S="3.7.1",C=/HTML$/i,y=function(k,D){return new y.fn.init(k,D)};function x(k){var D=!!k&&"length"in k&&k.length,B=w(k);return!v(k)&&!p(k)&&(B==="array"||D===0||typeof D=="number"&&0<D&&D-1 in k)}function T(k,D){return k.nodeName&&k.nodeName.toLowerCase()===D.toLowerCase()}y.fn=y.prototype={jquery:S,constructor:y,length:0,toArray:function(){return a.call(this)},get:function(k){return k==null?a.call(this):k<0?this[k+this.length]:this[k]},pushStack:function(k){var D=y.merge(this.constructor(),k);return D.prevObject=this,D},each:function(k){return y.each(this,k)},map:function(k){return this.pushStack(y.map(this,function(D,B){return k.call(D,B,D)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(y.grep(this,function(k,D){return(D+1)%2}))},odd:function(){return this.pushStack(y.grep(this,function(k,D){return D%2}))},eq:function(k){var D=this.length,B=+k+(k<0?D:0);return this.pushStack(0<=B&&B<D?[this[B]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:n.sort,splice:n.splice},y.extend=y.fn.extend=function(){var k,D,B,W,q,Z,ae=arguments[0]||{},Le=1,xe=arguments.length,He=!1;for(typeof ae=="boolean"&&(He=ae,ae=arguments[Le]||{},Le++),typeof ae=="object"||v(ae)||(ae={}),Le===xe&&(ae=this,Le--);Le<xe;Le++)if((k=arguments[Le])!=null)for(D in k)W=k[D],D!=="__proto__"&&ae!==W&&(He&&W&&(y.isPlainObject(W)||(q=Array.isArray(W)))?(B=ae[D],Z=q&&!Array.isArray(B)?[]:q||y.isPlainObject(B)?B:{},q=!1,ae[D]=y.extend(He,Z,W)):W!==void 0&&(ae[D]=W));return ae},y.extend({expando:"jQuery"+(S+Math.random()).replace(/\D/g,""),isReady:!0,error:function(k){throw new Error(k)},noop:function(){},isPlainObject:function(k){var D,B;return!(!k||u.call(k)!=="[object Object]")&&(!(D=r(k))||typeof(B=c.call(D,"constructor")&&D.constructor)=="function"&&f.call(B)===d)},isEmptyObject:function(k){var D;for(D in k)return!1;return!0},globalEval:function(k,D,B){b(k,{nonce:D&&D.nonce},B)},each:function(k,D){var B,W=0;if(x(k))for(B=k.length;W<B&&D.call(k[W],W,k[W])!==!1;W++);else for(W in k)if(D.call(k[W],W,k[W])===!1)break;return k},text:function(k){var D,B="",W=0,q=k.nodeType;if(!q)for(;D=k[W++];)B+=y.text(D);return q===1||q===11?k.textContent:q===9?k.documentElement.textContent:q===3||q===4?k.nodeValue:B},makeArray:function(k,D){var B=D||[];return k!=null&&(x(Object(k))?y.merge(B,typeof k=="string"?[k]:k):o.call(B,k)),B},inArray:function(k,D,B){return D==null?-1:s.call(D,k,B)},isXMLDoc:function(k){var D=k&&k.namespaceURI,B=k&&(k.ownerDocument||k).documentElement;return!C.test(D||B&&B.nodeName||"HTML")},merge:function(k,D){for(var B=+D.length,W=0,q=k.length;W<B;W++)k[q++]=D[W];return k.length=q,k},grep:function(k,D,B){for(var W=[],q=0,Z=k.length,ae=!B;q<Z;q++)!D(k[q],q)!==ae&&W.push(k[q]);return W},map:function(k,D,B){var W,q,Z=0,ae=[];if(x(k))for(W=k.length;Z<W;Z++)(q=D(k[Z],Z,B))!=null&&ae.push(q);else for(Z in k)(q=D(k[Z],Z,B))!=null&&ae.push(q);return i(ae)},guid:1,support:h}),typeof Symbol=="function"&&(y.fn[Symbol.iterator]=n[Symbol.iterator]),y.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(k,D){l["[object "+D+"]"]=D.toLowerCase()});var A=n.pop,M=n.sort,E=n.splice,I="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g");y.contains=function(k,D){var B=D&&D.parentNode;return k===B||!(!B||B.nodeType!==1||!(k.contains?k.contains(B):k.compareDocumentPosition&&16&k.compareDocumentPosition(B)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function z(k,D){return D?k==="\0"?"�":k.slice(0,-1)+"\\"+k.charCodeAt(k.length-1).toString(16)+" ":"\\"+k}y.escapeSelector=function(k){return(k+"").replace(O,z)};var F=g,$=o;(function(){var k,D,B,W,q,Z,ae,Le,xe,He,Ze=$,ot=y.expando,Ke=0,ht=0,en=Fr(),gn=Fr(),mn=Fr(),Br=Fr(),ua=function(he,Fe){return he===Fe&&(q=!0),0},us="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",cs="(?:\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Nn="\\["+I+"*("+cs+")(?:"+I+"*([*^$|!~]?=)"+I+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+cs+"))|)"+I+"*\\]",mc=":("+cs+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+Nn+")*)|.*)\\)|)",Gn=new RegExp(I+"+","g"),Lr=new RegExp("^"+I+"*,"+I+"*"),Xv=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),zS=new RegExp(I+"|>"),fs=new RegExp(mc),Zv=new RegExp("^"+cs+"$"),Ys={ID:new RegExp("^#("+cs+")"),CLASS:new RegExp("^\\.("+cs+")"),TAG:new RegExp("^("+cs+"|[*])"),ATTR:new RegExp("^"+Nn),PSEUDO:new RegExp("^"+mc),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+us+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},Wl=/^(?:input|select|textarea|button)$/i,Sd=/^h\d$/i,Hi=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ca=/[+~]/,qr=new RegExp("\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\([^\\r\\n\\f])","g"),Va=function(he,Fe){var Ye="0x"+he.slice(1)-65536;return Fe||(Ye<0?String.fromCharCode(Ye+65536):String.fromCharCode(Ye>>10|55296,1023&Ye|56320))},Gl=function(){Ul()},za=jy(function(he){return he.disabled===!0&&T(he,"fieldset")},{dir:"parentNode",next:"legend"});try{Ze.apply(n=a.call(F.childNodes),F.childNodes),n[F.childNodes.length].nodeType}catch{Ze={apply:function(Fe,Ye){$.apply(Fe,a.call(Ye))},call:function(Fe){$.apply(Fe,a.call(arguments,1))}}}function ln(he,Fe,Ye,tt){var dt,$t,Bt,jt,Pt,jn,wn,Tn=Fe&&Fe.ownerDocument,Hn=Fe?Fe.nodeType:9;if(Ye=Ye||[],typeof he!="string"||!he||Hn!==1&&Hn!==9&&Hn!==11)return Ye;if(!tt&&(Ul(Fe),Fe=Fe||Z,Le)){if(Hn!==11&&(Pt=Hi.exec(he)))if(dt=Pt[1]){if(Hn===9){if(!(Bt=Fe.getElementById(dt)))return Ye;if(Bt.id===dt)return Ze.call(Ye,Bt),Ye}else if(Tn&&(Bt=Tn.getElementById(dt))&&ln.contains(Fe,Bt)&&Bt.id===dt)return Ze.call(Ye,Bt),Ye}else{if(Pt[2])return Ze.apply(Ye,Fe.getElementsByTagName(he)),Ye;if((dt=Pt[3])&&Fe.getElementsByClassName)return Ze.apply(Ye,Fe.getElementsByClassName(dt)),Ye}if(!(Br[he+" "]||xe&&xe.test(he))){if(wn=he,Tn=Fe,Hn===1&&(zS.test(he)||Xv.test(he))){for((Tn=ca.test(he)&&HS(Fe.parentNode)||Fe)==Fe&&h.scope||((jt=Fe.getAttribute("id"))?jt=y.escapeSelector(jt):Fe.setAttribute("id",jt=ot)),$t=(jn=Jv(he)).length;$t--;)jn[$t]=(jt?"#"+jt:":scope")+" "+Ky(jn[$t]);wn=jn.join(",")}try{return Ze.apply(Ye,Tn.querySelectorAll(wn)),Ye}catch{Br(he,!0)}finally{jt===ot&&Fe.removeAttribute("id")}}}return uP(he.replace(L,"$1"),Fe,Ye,tt)}function Fr(){var he=[];return function Fe(Ye,tt){return he.push(Ye+" ")>D.cacheLength&&delete Fe[he.shift()],Fe[Ye+" "]=tt}}function Vr(he){return he[ot]=!0,he}function _r(he){var Fe=Z.createElement("fieldset");try{return!!he(Fe)}catch{return!1}finally{Fe.parentNode&&Fe.parentNode.removeChild(Fe),Fe=null}}function ds(he){return function(Fe){return T(Fe,"input")&&Fe.type===he}}function Cd(he){return function(Fe){return(T(Fe,"input")||T(Fe,"button"))&&Fe.type===he}}function Uy(he){return function(Fe){return"form"in Fe?Fe.parentNode&&Fe.disabled===!1?"label"in Fe?"label"in Fe.parentNode?Fe.parentNode.disabled===he:Fe.disabled===he:Fe.isDisabled===he||Fe.isDisabled!==!he&&za(Fe)===he:Fe.disabled===he:"label"in Fe&&Fe.disabled===he}}function yc(he){return Vr(function(Fe){return Fe=+Fe,Vr(function(Ye,tt){for(var dt,$t=he([],Ye.length,Fe),Bt=$t.length;Bt--;)Ye[dt=$t[Bt]]&&(Ye[dt]=!(tt[dt]=Ye[dt]))})})}function HS(he){return he&&typeof he.getElementsByTagName<"u"&&he}function Ul(he){var Fe,Ye=he?he.ownerDocument||he:F;return Ye!=Z&&Ye.nodeType===9&&Ye.documentElement&&(ae=(Z=Ye).documentElement,Le=!y.isXMLDoc(Z),He=ae.matches||ae.webkitMatchesSelector||ae.msMatchesSelector,ae.msMatchesSelector&&F!=Z&&(Fe=Z.defaultView)&&Fe.top!==Fe&&Fe.addEventListener("unload",Gl),h.getById=_r(function(tt){return ae.appendChild(tt).id=y.expando,!Z.getElementsByName||!Z.getElementsByName(y.expando).length}),h.disconnectedMatch=_r(function(tt){return He.call(tt,"*")}),h.scope=_r(function(){return Z.querySelectorAll(":scope")}),h.cssHas=_r(function(){try{return Z.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),h.getById?(D.filter.ID=function(tt){var dt=tt.replace(qr,Va);return function($t){return $t.getAttribute("id")===dt}},D.find.ID=function(tt,dt){if(typeof dt.getElementById<"u"&&Le){var $t=dt.getElementById(tt);return $t?[$t]:[]}}):(D.filter.ID=function(tt){var dt=tt.replace(qr,Va);return function($t){var Bt=typeof $t.getAttributeNode<"u"&&$t.getAttributeNode("id");return Bt&&Bt.value===dt}},D.find.ID=function(tt,dt){if(typeof dt.getElementById<"u"&&Le){var $t,Bt,jt,Pt=dt.getElementById(tt);if(Pt){if(($t=Pt.getAttributeNode("id"))&&$t.value===tt)return[Pt];for(jt=dt.getElementsByName(tt),Bt=0;Pt=jt[Bt++];)if(($t=Pt.getAttributeNode("id"))&&$t.value===tt)return[Pt]}return[]}}),D.find.TAG=function(tt,dt){return typeof dt.getElementsByTagName<"u"?dt.getElementsByTagName(tt):dt.querySelectorAll(tt)},D.find.CLASS=function(tt,dt){if(typeof dt.getElementsByClassName<"u"&&Le)return dt.getElementsByClassName(tt)},xe=[],_r(function(tt){var dt;ae.appendChild(tt).innerHTML="<a id='"+ot+"' href='' disabled='disabled'></a><select id='"+ot+"-\r\\' disabled='disabled'><option selected=''></option></select>",tt.querySelectorAll("[selected]").length||xe.push("\\["+I+"*(?:value|"+us+")"),tt.querySelectorAll("[id~="+ot+"-]").length||xe.push("~="),tt.querySelectorAll("a#"+ot+"+*").length||xe.push(".#.+[+~]"),tt.querySelectorAll(":checked").length||xe.push(":checked"),(dt=Z.createElement("input")).setAttribute("type","hidden"),tt.appendChild(dt).setAttribute("name","D"),ae.appendChild(tt).disabled=!0,tt.querySelectorAll(":disabled").length!==2&&xe.push(":enabled",":disabled"),(dt=Z.createElement("input")).setAttribute("name",""),tt.appendChild(dt),tt.querySelectorAll("[name='']").length||xe.push("\\["+I+"*name"+I+"*="+I+`*(?:''|"")`)}),h.cssHas||xe.push(":has"),xe=xe.length&&new RegExp(xe.join("|")),ua=function(tt,dt){if(tt===dt)return q=!0,0;var $t=!tt.compareDocumentPosition-!dt.compareDocumentPosition;return $t||(1&($t=(tt.ownerDocument||tt)==(dt.ownerDocument||dt)?tt.compareDocumentPosition(dt):1)||!h.sortDetached&&dt.compareDocumentPosition(tt)===$t?tt===Z||tt.ownerDocument==F&&ln.contains(F,tt)?-1:dt===Z||dt.ownerDocument==F&&ln.contains(F,dt)?1:W?s.call(W,tt)-s.call(W,dt):0:4&$t?-1:1)}),Z}for(k in ln.matches=function(he,Fe){return ln(he,null,null,Fe)},ln.matchesSelector=function(he,Fe){if(Ul(he),Le&&!Br[Fe+" "]&&(!xe||!xe.test(Fe)))try{var Ye=He.call(he,Fe);if(Ye||h.disconnectedMatch||he.document&&he.document.nodeType!==11)return Ye}catch{Br(Fe,!0)}return 0<ln(Fe,Z,null,[he]).length},ln.contains=function(he,Fe){return(he.ownerDocument||he)!=Z&&Ul(he),y.contains(he,Fe)},ln.attr=function(he,Fe){(he.ownerDocument||he)!=Z&&Ul(he);var Ye=D.attrHandle[Fe.toLowerCase()],tt=Ye&&c.call(D.attrHandle,Fe.toLowerCase())?Ye(he,Fe,!Le):void 0;return tt!==void 0?tt:he.getAttribute(Fe)},ln.error=function(he){throw new Error("Syntax error, unrecognized expression: "+he)},y.uniqueSort=function(he){var Fe,Ye=[],tt=0,dt=0;if(q=!h.sortStable,W=!h.sortStable&&a.call(he,0),M.call(he,ua),q){for(;Fe=he[dt++];)Fe===he[dt]&&(tt=Ye.push(dt));for(;tt--;)E.call(he,Ye[tt],1)}return W=null,he},y.fn.uniqueSort=function(){return this.pushStack(y.uniqueSort(a.apply(this)))},(D=y.expr={cacheLength:50,createPseudo:Vr,match:Ys,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(he){return he[1]=he[1].replace(qr,Va),he[3]=(he[3]||he[4]||he[5]||"").replace(qr,Va),he[2]==="~="&&(he[3]=" "+he[3]+" "),he.slice(0,4)},CHILD:function(he){return he[1]=he[1].toLowerCase(),he[1].slice(0,3)==="nth"?(he[3]||ln.error(he[0]),he[4]=+(he[4]?he[5]+(he[6]||1):2*(he[3]==="even"||he[3]==="odd")),he[5]=+(he[7]+he[8]||he[3]==="odd")):he[3]&&ln.error(he[0]),he},PSEUDO:function(he){var Fe,Ye=!he[6]&&he[2];return Ys.CHILD.test(he[0])?null:(he[3]?he[2]=he[4]||he[5]||"":Ye&&fs.test(Ye)&&(Fe=Jv(Ye,!0))&&(Fe=Ye.indexOf(")",Ye.length-Fe)-Ye.length)&&(he[0]=he[0].slice(0,Fe),he[2]=Ye.slice(0,Fe)),he.slice(0,3))}},filter:{TAG:function(he){var Fe=he.replace(qr,Va).toLowerCase();return he==="*"?function(){return!0}:function(Ye){return T(Ye,Fe)}},CLASS:function(he){var Fe=en[he+" "];return Fe||(Fe=new RegExp("(^|"+I+")"+he+"("+I+"|$)"))&&en(he,function(Ye){return Fe.test(typeof Ye.className=="string"&&Ye.className||typeof Ye.getAttribute<"u"&&Ye.getAttribute("class")||"")})},ATTR:function(he,Fe,Ye){return function(tt){var dt=ln.attr(tt,he);return dt==null?Fe==="!=":!Fe||(dt+="",Fe==="="?dt===Ye:Fe==="!="?dt!==Ye:Fe==="^="?Ye&&dt.indexOf(Ye)===0:Fe==="*="?Ye&&-1<dt.indexOf(Ye):Fe==="$="?Ye&&dt.slice(-Ye.length)===Ye:Fe==="~="?-1<(" "+dt.replace(Gn," ")+" ").indexOf(Ye):Fe==="|="&&(dt===Ye||dt.slice(0,Ye.length+1)===Ye+"-"))}},CHILD:function(he,Fe,Ye,tt,dt){var $t=he.slice(0,3)!=="nth",Bt=he.slice(-4)!=="last",jt=Fe==="of-type";return tt===1&&dt===0?function(Pt){return!!Pt.parentNode}:function(Pt,jn,wn){var Tn,Hn,hn,Qr,Aa,fa=$t!==Bt?"nextSibling":"previousSibling",ui=Pt.parentNode,Ti=jt&&Pt.nodeName.toLowerCase(),Eo=!wn&&!jt,wr=!1;if(ui){if($t){for(;fa;){for(hn=Pt;hn=hn[fa];)if(jt?T(hn,Ti):hn.nodeType===1)return!1;Aa=fa=he==="only"&&!Aa&&"nextSibling"}return!0}if(Aa=[Bt?ui.firstChild:ui.lastChild],Bt&&Eo){for(wr=(Qr=(Tn=(Hn=ui[ot]||(ui[ot]={}))[he]||[])[0]===Ke&&Tn[1])&&Tn[2],hn=Qr&&ui.childNodes[Qr];hn=++Qr&&hn&&hn[fa]||(wr=Qr=0)||Aa.pop();)if(hn.nodeType===1&&++wr&&hn===Pt){Hn[he]=[Ke,Qr,wr];break}}else if(Eo&&(wr=Qr=(Tn=(Hn=Pt[ot]||(Pt[ot]={}))[he]||[])[0]===Ke&&Tn[1]),wr===!1)for(;(hn=++Qr&&hn&&hn[fa]||(wr=Qr=0)||Aa.pop())&&!((jt?T(hn,Ti):hn.nodeType===1)&&++wr&&(Eo&&((Hn=hn[ot]||(hn[ot]={}))[he]=[Ke,wr]),hn===Pt)););return(wr-=dt)===tt||wr%tt==0&&0<=wr/tt}}},PSEUDO:function(he,Fe){var Ye,tt=D.pseudos[he]||D.setFilters[he.toLowerCase()]||ln.error("unsupported pseudo: "+he);return tt[ot]?tt(Fe):1<tt.length?(Ye=[he,he,"",Fe],D.setFilters.hasOwnProperty(he.toLowerCase())?Vr(function(dt,$t){for(var Bt,jt=tt(dt,Fe),Pt=jt.length;Pt--;)dt[Bt=s.call(dt,jt[Pt])]=!($t[Bt]=jt[Pt])}):function(dt){return tt(dt,0,Ye)}):tt}},pseudos:{not:Vr(function(he){var Fe=[],Ye=[],tt=KS(he.replace(L,"$1"));return tt[ot]?Vr(function(dt,$t,Bt,jt){for(var Pt,jn=tt(dt,null,jt,[]),wn=dt.length;wn--;)(Pt=jn[wn])&&(dt[wn]=!($t[wn]=Pt))}):function(dt,$t,Bt){return Fe[0]=dt,tt(Fe,null,Bt,Ye),Fe[0]=null,!Ye.pop()}}),has:Vr(function(he){return function(Fe){return 0<ln(he,Fe).length}}),contains:Vr(function(he){return he=he.replace(qr,Va),function(Fe){return-1<(Fe.textContent||y.text(Fe)).indexOf(he)}}),lang:Vr(function(he){return Zv.test(he||"")||ln.error("unsupported lang: "+he),he=he.replace(qr,Va).toLowerCase(),function(Fe){var Ye;do if(Ye=Le?Fe.lang:Fe.getAttribute("xml:lang")||Fe.getAttribute("lang"))return(Ye=Ye.toLowerCase())===he||Ye.indexOf(he+"-")===0;while((Fe=Fe.parentNode)&&Fe.nodeType===1);return!1}}),target:function(he){var Fe=e.location&&e.location.hash;return Fe&&Fe.slice(1)===he.id},root:function(he){return he===ae},focus:function(he){return he===function(){try{return Z.activeElement}catch{}}()&&Z.hasFocus()&&!!(he.type||he.href||~he.tabIndex)},enabled:Uy(!1),disabled:Uy(!0),checked:function(he){return T(he,"input")&&!!he.checked||T(he,"option")&&!!he.selected},selected:function(he){return he.parentNode&&he.parentNode.selectedIndex,he.selected===!0},empty:function(he){for(he=he.firstChild;he;he=he.nextSibling)if(he.nodeType<6)return!1;return!0},parent:function(he){return!D.pseudos.empty(he)},header:function(he){return Sd.test(he.nodeName)},input:function(he){return Wl.test(he.nodeName)},button:function(he){return T(he,"input")&&he.type==="button"||T(he,"button")},text:function(he){var Fe;return T(he,"input")&&he.type==="text"&&((Fe=he.getAttribute("type"))==null||Fe.toLowerCase()==="text")},first:yc(function(){return[0]}),last:yc(function(he,Fe){return[Fe-1]}),eq:yc(function(he,Fe,Ye){return[Ye<0?Ye+Fe:Ye]}),even:yc(function(he,Fe){for(var Ye=0;Ye<Fe;Ye+=2)he.push(Ye);return he}),odd:yc(function(he,Fe){for(var Ye=1;Ye<Fe;Ye+=2)he.push(Ye);return he}),lt:yc(function(he,Fe,Ye){var tt;for(tt=Ye<0?Ye+Fe:Fe<Ye?Fe:Ye;0<=--tt;)he.push(tt);return he}),gt:yc(function(he,Fe,Ye){for(var tt=Ye<0?Ye+Fe:Ye;++tt<Fe;)he.push(tt);return he})}}).pseudos.nth=D.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})D.pseudos[k]=ds(k);for(k in{submit:!0,reset:!0})D.pseudos[k]=Cd(k);function lP(){}function Jv(he,Fe){var Ye,tt,dt,$t,Bt,jt,Pt,jn=gn[he+" "];if(jn)return Fe?0:jn.slice(0);for(Bt=he,jt=[],Pt=D.preFilter;Bt;){for($t in Ye&&!(tt=Lr.exec(Bt))||(tt&&(Bt=Bt.slice(tt[0].length)||Bt),jt.push(dt=[])),Ye=!1,(tt=Xv.exec(Bt))&&(Ye=tt.shift(),dt.push({value:Ye,type:tt[0].replace(L," ")}),Bt=Bt.slice(Ye.length)),D.filter)!(tt=Ys[$t].exec(Bt))||Pt[$t]&&!(tt=Pt[$t](tt))||(Ye=tt.shift(),dt.push({value:Ye,type:$t,matches:tt}),Bt=Bt.slice(Ye.length));if(!Ye)break}return Fe?Bt.length:Bt?ln.error(he):gn(he,jt).slice(0)}function Ky(he){for(var Fe=0,Ye=he.length,tt="";Fe<Ye;Fe++)tt+=he[Fe].value;return tt}function jy(he,Fe,Ye){var tt=Fe.dir,dt=Fe.next,$t=dt||tt,Bt=Ye&&$t==="parentNode",jt=ht++;return Fe.first?function(Pt,jn,wn){for(;Pt=Pt[tt];)if(Pt.nodeType===1||Bt)return he(Pt,jn,wn);return!1}:function(Pt,jn,wn){var Tn,Hn,hn=[Ke,jt];if(wn){for(;Pt=Pt[tt];)if((Pt.nodeType===1||Bt)&&he(Pt,jn,wn))return!0}else for(;Pt=Pt[tt];)if(Pt.nodeType===1||Bt)if(Hn=Pt[ot]||(Pt[ot]={}),dt&&T(Pt,dt))Pt=Pt[tt]||Pt;else{if((Tn=Hn[$t])&&Tn[0]===Ke&&Tn[1]===jt)return hn[2]=Tn[2];if((Hn[$t]=hn)[2]=he(Pt,jn,wn))return!0}return!1}}function WS(he){return 1<he.length?function(Fe,Ye,tt){for(var dt=he.length;dt--;)if(!he[dt](Fe,Ye,tt))return!1;return!0}:he[0]}function Yy(he,Fe,Ye,tt,dt){for(var $t,Bt=[],jt=0,Pt=he.length,jn=Fe!=null;jt<Pt;jt++)($t=he[jt])&&(Ye&&!Ye($t,tt,dt)||(Bt.push($t),jn&&Fe.push(jt)));return Bt}function GS(he,Fe,Ye,tt,dt,$t){return tt&&!tt[ot]&&(tt=GS(tt)),dt&&!dt[ot]&&(dt=GS(dt,$t)),Vr(function(Bt,jt,Pt,jn){var wn,Tn,Hn,hn,Qr=[],Aa=[],fa=jt.length,ui=Bt||function(Eo,wr,bc){for(var Mo=0,qy=wr.length;Mo<qy;Mo++)ln(Eo,wr[Mo],bc);return bc}(Fe||"*",Pt.nodeType?[Pt]:Pt,[]),Ti=!he||!Bt&&Fe?ui:Yy(ui,Qr,he,Pt,jn);if(Ye?Ye(Ti,hn=dt||(Bt?he:fa||tt)?[]:jt,Pt,jn):hn=Ti,tt)for(wn=Yy(hn,Aa),tt(wn,[],Pt,jn),Tn=wn.length;Tn--;)(Hn=wn[Tn])&&(hn[Aa[Tn]]=!(Ti[Aa[Tn]]=Hn));if(Bt){if(dt||he){if(dt){for(wn=[],Tn=hn.length;Tn--;)(Hn=hn[Tn])&&wn.push(Ti[Tn]=Hn);dt(null,hn=[],wn,jn)}for(Tn=hn.length;Tn--;)(Hn=hn[Tn])&&-1<(wn=dt?s.call(Bt,Hn):Qr[Tn])&&(Bt[wn]=!(jt[wn]=Hn))}}else hn=Yy(hn===jt?hn.splice(fa,hn.length):hn),dt?dt(null,jt,hn,jn):Ze.apply(jt,hn)})}function US(he){for(var Fe,Ye,tt,dt=he.length,$t=D.relative[he[0].type],Bt=$t||D.relative[" "],jt=$t?1:0,Pt=jy(function(Tn){return Tn===Fe},Bt,!0),jn=jy(function(Tn){return-1<s.call(Fe,Tn)},Bt,!0),wn=[function(Tn,Hn,hn){var Qr=!$t&&(hn||Hn!=B)||((Fe=Hn).nodeType?Pt(Tn,Hn,hn):jn(Tn,Hn,hn));return Fe=null,Qr}];jt<dt;jt++)if(Ye=D.relative[he[jt].type])wn=[jy(WS(wn),Ye)];else{if((Ye=D.filter[he[jt].type].apply(null,he[jt].matches))[ot]){for(tt=++jt;tt<dt&&!D.relative[he[tt].type];tt++);return GS(1<jt&&WS(wn),1<jt&&Ky(he.slice(0,jt-1).concat({value:he[jt-2].type===" "?"*":""})).replace(L,"$1"),Ye,jt<tt&&US(he.slice(jt,tt)),tt<dt&&US(he=he.slice(tt)),tt<dt&&Ky(he))}wn.push(Ye)}return WS(wn)}function KS(he,Fe){var Ye,tt,dt,$t,Bt,jt,Pt=[],jn=[],wn=mn[he+" "];if(!wn){for(Fe||(Fe=Jv(he)),Ye=Fe.length;Ye--;)(wn=US(Fe[Ye]))[ot]?Pt.push(wn):jn.push(wn);(wn=mn(he,(tt=jn,$t=0<(dt=Pt).length,Bt=0<tt.length,jt=function(Tn,Hn,hn,Qr,Aa){var fa,ui,Ti,Eo=0,wr="0",bc=Tn&&[],Mo=[],qy=B,cP=Tn||Bt&&D.find.TAG("*",Aa),fP=Ke+=qy==null?1:Math.random()||.1,VZ=cP.length;for(Aa&&(B=Hn==Z||Hn||Aa);wr!==VZ&&(fa=cP[wr])!=null;wr++){if(Bt&&fa){for(ui=0,Hn||fa.ownerDocument==Z||(Ul(fa),hn=!Le);Ti=tt[ui++];)if(Ti(fa,Hn||Z,hn)){Ze.call(Qr,fa);break}Aa&&(Ke=fP)}$t&&((fa=!Ti&&fa)&&Eo--,Tn&&bc.push(fa))}if(Eo+=wr,$t&&wr!==Eo){for(ui=0;Ti=dt[ui++];)Ti(bc,Mo,Hn,hn);if(Tn){if(0<Eo)for(;wr--;)bc[wr]||Mo[wr]||(Mo[wr]=A.call(Qr));Mo=Yy(Mo)}Ze.apply(Qr,Mo),Aa&&!Tn&&0<Mo.length&&1<Eo+dt.length&&y.uniqueSort(Qr)}return Aa&&(Ke=fP,B=qy),bc},$t?Vr(jt):jt))).selector=he}return wn}function uP(he,Fe,Ye,tt){var dt,$t,Bt,jt,Pt,jn=typeof he=="function"&&he,wn=!tt&&Jv(he=jn.selector||he);if(Ye=Ye||[],wn.length===1){if(2<($t=wn[0]=wn[0].slice(0)).length&&(Bt=$t[0]).type==="ID"&&Fe.nodeType===9&&Le&&D.relative[$t[1].type]){if(!(Fe=(D.find.ID(Bt.matches[0].replace(qr,Va),Fe)||[])[0]))return Ye;jn&&(Fe=Fe.parentNode),he=he.slice($t.shift().value.length)}for(dt=Ys.needsContext.test(he)?0:$t.length;dt--&&(Bt=$t[dt],!D.relative[jt=Bt.type]);)if((Pt=D.find[jt])&&(tt=Pt(Bt.matches[0].replace(qr,Va),ca.test($t[0].type)&&HS(Fe.parentNode)||Fe))){if($t.splice(dt,1),!(he=tt.length&&Ky($t)))return Ze.apply(Ye,tt),Ye;break}}return(jn||KS(he,wn))(tt,Fe,!Le,Ye,!Fe||ca.test(he)&&HS(Fe.parentNode)||Fe),Ye}lP.prototype=D.filters=D.pseudos,D.setFilters=new lP,h.sortStable=ot.split("").sort(ua).join("")===ot,Ul(),h.sortDetached=_r(function(he){return 1&he.compareDocumentPosition(Z.createElement("fieldset"))}),y.find=ln,y.expr[":"]=y.expr.pseudos,y.unique=y.uniqueSort,ln.compile=KS,ln.select=uP,ln.setDocument=Ul,ln.tokenize=Jv,ln.escape=y.escapeSelector,ln.getText=y.text,ln.isXML=y.isXMLDoc,ln.selectors=y.expr,ln.support=y.support,ln.uniqueSort=y.uniqueSort})();var V=function(k,D,B){for(var W=[],q=B!==void 0;(k=k[D])&&k.nodeType!==9;)if(k.nodeType===1){if(q&&y(k).is(B))break;W.push(k)}return W},P=function(k,D){for(var B=[];k;k=k.nextSibling)k.nodeType===1&&k!==D&&B.push(k);return B},G=y.expr.match.needsContext,j=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function J(k,D,B){return v(D)?y.grep(k,function(W,q){return!!D.call(W,q,W)!==B}):D.nodeType?y.grep(k,function(W){return W===D!==B}):typeof D!="string"?y.grep(k,function(W){return-1<s.call(D,W)!==B}):y.filter(D,k,B)}y.filter=function(k,D,B){var W=D[0];return B&&(k=":not("+k+")"),D.length===1&&W.nodeType===1?y.find.matchesSelector(W,k)?[W]:[]:y.find.matches(k,y.grep(D,function(q){return q.nodeType===1}))},y.fn.extend({find:function(k){var D,B,W=this.length,q=this;if(typeof k!="string")return this.pushStack(y(k).filter(function(){for(D=0;D<W;D++)if(y.contains(q[D],this))return!0}));for(B=this.pushStack([]),D=0;D<W;D++)y.find(k,q[D],B);return 1<W?y.uniqueSort(B):B},filter:function(k){return this.pushStack(J(this,k||[],!1))},not:function(k){return this.pushStack(J(this,k||[],!0))},is:function(k){return!!J(this,typeof k=="string"&&G.test(k)?y(k):k||[],!1).length}});var ne,ve=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(y.fn.init=function(k,D,B){var W,q;if(!k)return this;if(B=B||ne,typeof k=="string"){if(!(W=k[0]==="<"&&k[k.length-1]===">"&&3<=k.length?[null,k,null]:ve.exec(k))||!W[1]&&D)return!D||D.jquery?(D||B).find(k):this.constructor(D).find(k);if(W[1]){if(D=D instanceof y?D[0]:D,y.merge(this,y.parseHTML(W[1],D&&D.nodeType?D.ownerDocument||D:g,!0)),j.test(W[1])&&y.isPlainObject(D))for(W in D)v(this[W])?this[W](D[W]):this.attr(W,D[W]);return this}return(q=g.getElementById(W[2]))&&(this[0]=q,this.length=1),this}return k.nodeType?(this[0]=k,this.length=1,this):v(k)?B.ready!==void 0?B.ready(k):k(y):y.makeArray(k,this)}).prototype=y.fn,ne=y(g);var le=/^(?:parents|prev(?:Until|All))/,ce={children:!0,contents:!0,next:!0,prev:!0};function ue(k,D){for(;(k=k[D])&&k.nodeType!==1;);return k}y.fn.extend({has:function(k){var D=y(k,this),B=D.length;return this.filter(function(){for(var W=0;W<B;W++)if(y.contains(this,D[W]))return!0})},closest:function(k,D){var B,W=0,q=this.length,Z=[],ae=typeof k!="string"&&y(k);if(!G.test(k)){for(;W<q;W++)for(B=this[W];B&&B!==D;B=B.parentNode)if(B.nodeType<11&&(ae?-1<ae.index(B):B.nodeType===1&&y.find.matchesSelector(B,k))){Z.push(B);break}}return this.pushStack(1<Z.length?y.uniqueSort(Z):Z)},index:function(k){return k?typeof k=="string"?s.call(y(k),this[0]):s.call(this,k.jquery?k[0]:k):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(k,D){return this.pushStack(y.uniqueSort(y.merge(this.get(),y(k,D))))},addBack:function(k){return this.add(k==null?this.prevObject:this.prevObject.filter(k))}}),y.each({parent:function(k){var D=k.parentNode;return D&&D.nodeType!==11?D:null},parents:function(k){return V(k,"parentNode")},parentsUntil:function(k,D,B){return V(k,"parentNode",B)},next:function(k){return ue(k,"nextSibling")},prev:function(k){return ue(k,"previousSibling")},nextAll:function(k){return V(k,"nextSibling")},prevAll:function(k){return V(k,"previousSibling")},nextUntil:function(k,D,B){return V(k,"nextSibling",B)},prevUntil:function(k,D,B){return V(k,"previousSibling",B)},siblings:function(k){return P((k.parentNode||{}).firstChild,k)},children:function(k){return P(k.firstChild)},contents:function(k){return k.contentDocument!=null&&r(k.contentDocument)?k.contentDocument:(T(k,"template")&&(k=k.content||k),y.merge([],k.childNodes))}},function(k,D){y.fn[k]=function(B,W){var q=y.map(this,D,B);return k.slice(-5)!=="Until"&&(W=B),W&&typeof W=="string"&&(q=y.filter(W,q)),1<this.length&&(ce[k]||y.uniqueSort(q),le.test(k)&&q.reverse()),this.pushStack(q)}});var Q=/[^\x20\t\r\n\f]+/g;function _e(k){return k}function Pe(k){throw k}function pe(k,D,B,W){var q;try{k&&v(q=k.promise)?q.call(k).done(D).fail(B):k&&v(q=k.then)?q.call(k,D,B):D.apply(void 0,[k].slice(W))}catch(Z){B.apply(void 0,[Z])}}y.Callbacks=function(k){var D,B;k=typeof k=="string"?(D=k,B={},y.each(D.match(Q)||[],function(Ke,ht){B[ht]=!0}),B):y.extend({},k);var W,q,Z,ae,Le=[],xe=[],He=-1,Ze=function(){for(ae=ae||k.once,Z=W=!0;xe.length;He=-1)for(q=xe.shift();++He<Le.length;)Le[He].apply(q[0],q[1])===!1&&k.stopOnFalse&&(He=Le.length,q=!1);k.memory||(q=!1),W=!1,ae&&(Le=q?[]:"")},ot={add:function(){return Le&&(q&&!W&&(He=Le.length-1,xe.push(q)),function Ke(ht){y.each(ht,function(en,gn){v(gn)?k.unique&&ot.has(gn)||Le.push(gn):gn&&gn.length&&w(gn)!=="string"&&Ke(gn)})}(arguments),q&&!W&&Ze()),this},remove:function(){return y.each(arguments,function(Ke,ht){for(var en;-1<(en=y.inArray(ht,Le,en));)Le.splice(en,1),en<=He&&He--}),this},has:function(Ke){return Ke?-1<y.inArray(Ke,Le):0<Le.length},empty:function(){return Le&&(Le=[]),this},disable:function(){return ae=xe=[],Le=q="",this},disabled:function(){return!Le},lock:function(){return ae=xe=[],q||W||(Le=q=""),this},locked:function(){return!!ae},fireWith:function(Ke,ht){return ae||(ht=[Ke,(ht=ht||[]).slice?ht.slice():ht],xe.push(ht),W||Ze()),this},fire:function(){return ot.fireWith(this,arguments),this},fired:function(){return!!Z}};return ot},y.extend({Deferred:function(k){var D=[["notify","progress",y.Callbacks("memory"),y.Callbacks("memory"),2],["resolve","done",y.Callbacks("once memory"),y.Callbacks("once memory"),0,"resolved"],["reject","fail",y.Callbacks("once memory"),y.Callbacks("once memory"),1,"rejected"]],B="pending",W={state:function(){return B},always:function(){return q.done(arguments).fail(arguments),this},catch:function(Z){return W.then(null,Z)},pipe:function(){var Z=arguments;return y.Deferred(function(ae){y.each(D,function(Le,xe){var He=v(Z[xe[4]])&&Z[xe[4]];q[xe[1]](function(){var Ze=He&&He.apply(this,arguments);Ze&&v(Ze.promise)?Ze.promise().progress(ae.notify).done(ae.resolve).fail(ae.reject):ae[xe[0]+"With"](this,He?[Ze]:arguments)})}),Z=null}).promise()},then:function(Z,ae,Le){var xe=0;function He(Ze,ot,Ke,ht){return function(){var en=this,gn=arguments,mn=function(){var ua,us;if(!(Ze<xe)){if((ua=Ke.apply(en,gn))===ot.promise())throw new TypeError("Thenable self-resolution");us=ua&&(typeof ua=="object"||typeof ua=="function")&&ua.then,v(us)?ht?us.call(ua,He(xe,ot,_e,ht),He(xe,ot,Pe,ht)):(xe++,us.call(ua,He(xe,ot,_e,ht),He(xe,ot,Pe,ht),He(xe,ot,_e,ot.notifyWith))):(Ke!==_e&&(en=void 0,gn=[ua]),(ht||ot.resolveWith)(en,gn))}},Br=ht?mn:function(){try{mn()}catch(ua){y.Deferred.exceptionHook&&y.Deferred.exceptionHook(ua,Br.error),xe<=Ze+1&&(Ke!==Pe&&(en=void 0,gn=[ua]),ot.rejectWith(en,gn))}};Ze?Br():(y.Deferred.getErrorHook?Br.error=y.Deferred.getErrorHook():y.Deferred.getStackHook&&(Br.error=y.Deferred.getStackHook()),e.setTimeout(Br))}}return y.Deferred(function(Ze){D[0][3].add(He(0,Ze,v(Le)?Le:_e,Ze.notifyWith)),D[1][3].add(He(0,Ze,v(Z)?Z:_e)),D[2][3].add(He(0,Ze,v(ae)?ae:Pe))}).promise()},promise:function(Z){return Z!=null?y.extend(Z,W):W}},q={};return y.each(D,function(Z,ae){var Le=ae[2],xe=ae[5];W[ae[1]]=Le.add,xe&&Le.add(function(){B=xe},D[3-Z][2].disable,D[3-Z][3].disable,D[0][2].lock,D[0][3].lock),Le.add(ae[3].fire),q[ae[0]]=function(){return q[ae[0]+"With"](this===q?void 0:this,arguments),this},q[ae[0]+"With"]=Le.fireWith}),W.promise(q),k&&k.call(q,q),q},when:function(k){var D=arguments.length,B=D,W=Array(B),q=a.call(arguments),Z=y.Deferred(),ae=function(Le){return function(xe){W[Le]=this,q[Le]=1<arguments.length?a.call(arguments):xe,--D||Z.resolveWith(W,q)}};if(D<=1&&(pe(k,Z.done(ae(B)).resolve,Z.reject,!D),Z.state()==="pending"||v(q[B]&&q[B].then)))return Z.then();for(;B--;)pe(q[B],ae(B),Z.reject);return Z.promise()}});var Y=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;y.Deferred.exceptionHook=function(k,D){e.console&&e.console.warn&&k&&Y.test(k.name)&&e.console.warn("jQuery.Deferred exception: "+k.message,k.stack,D)},y.readyException=function(k){e.setTimeout(function(){throw k})};var ie=y.Deferred();function me(){g.removeEventListener("DOMContentLoaded",me),e.removeEventListener("load",me),y.ready()}y.fn.ready=function(k){return ie.then(k).catch(function(D){y.readyException(D)}),this},y.extend({isReady:!1,readyWait:1,ready:function(k){(k===!0?--y.readyWait:y.isReady)||(y.isReady=!0)!==k&&0<--y.readyWait||ie.resolveWith(g,[y])}}),y.ready.then=ie.then,g.readyState==="complete"||g.readyState!=="loading"&&!g.documentElement.doScroll?e.setTimeout(y.ready):(g.addEventListener("DOMContentLoaded",me),e.addEventListener("load",me));var De=function(k,D,B,W,q,Z,ae){var Le=0,xe=k.length,He=B==null;if(w(B)==="object")for(Le in q=!0,B)De(k,D,Le,B[Le],!0,Z,ae);else if(W!==void 0&&(q=!0,v(W)||(ae=!0),He&&(ae?(D.call(k,W),D=null):(He=D,D=function(Ze,ot,Ke){return He.call(y(Ze),Ke)})),D))for(;Le<xe;Le++)D(k[Le],B,ae?W:W.call(k[Le],Le,D(k[Le],B)));return q?k:He?D.call(k):xe?D(k[0],B):Z},Be=/^-ms-/,Oe=/-([a-z])/g;function de(k,D){return D.toUpperCase()}function we(k){return k.replace(Be,"ms-").replace(Oe,de)}var Se=function(k){return k.nodeType===1||k.nodeType===9||!+k.nodeType};function Ie(){this.expando=y.expando+Ie.uid++}Ie.uid=1,Ie.prototype={cache:function(k){var D=k[this.expando];return D||(D={},Se(k)&&(k.nodeType?k[this.expando]=D:Object.defineProperty(k,this.expando,{value:D,configurable:!0}))),D},set:function(k,D,B){var W,q=this.cache(k);if(typeof D=="string")q[we(D)]=B;else for(W in D)q[we(W)]=D[W];return q},get:function(k,D){return D===void 0?this.cache(k):k[this.expando]&&k[this.expando][we(D)]},access:function(k,D,B){return D===void 0||D&&typeof D=="string"&&B===void 0?this.get(k,D):(this.set(k,D,B),B!==void 0?B:D)},remove:function(k,D){var B,W=k[this.expando];if(W!==void 0){if(D!==void 0)for(B=(D=Array.isArray(D)?D.map(we):(D=we(D))in W?[D]:D.match(Q)||[]).length;B--;)delete W[D[B]];(D===void 0||y.isEmptyObject(W))&&(k.nodeType?k[this.expando]=void 0:delete k[this.expando])}},hasData:function(k){var D=k[this.expando];return D!==void 0&&!y.isEmptyObject(D)}};var Ee=new Ie,Ge=new Ie,Ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,oe=/[A-Z]/g;function ke(k,D,B){var W,q;if(B===void 0&&k.nodeType===1)if(W="data-"+D.replace(oe,"-$&").toLowerCase(),typeof(B=k.getAttribute(W))=="string"){try{B=(q=B)==="true"||q!=="false"&&(q==="null"?null:q===+q+""?+q:Ue.test(q)?JSON.parse(q):q)}catch{}Ge.set(k,D,B)}else B=void 0;return B}y.extend({hasData:function(k){return Ge.hasData(k)||Ee.hasData(k)},data:function(k,D,B){return Ge.access(k,D,B)},removeData:function(k,D){Ge.remove(k,D)},_data:function(k,D,B){return Ee.access(k,D,B)},_removeData:function(k,D){Ee.remove(k,D)}}),y.fn.extend({data:function(k,D){var B,W,q,Z=this[0],ae=Z&&Z.attributes;if(k===void 0){if(this.length&&(q=Ge.get(Z),Z.nodeType===1&&!Ee.get(Z,"hasDataAttrs"))){for(B=ae.length;B--;)ae[B]&&(W=ae[B].name).indexOf("data-")===0&&(W=we(W.slice(5)),ke(Z,W,q[W]));Ee.set(Z,"hasDataAttrs",!0)}return q}return typeof k=="object"?this.each(function(){Ge.set(this,k)}):De(this,function(Le){var xe;if(Z&&Le===void 0)return(xe=Ge.get(Z,k))!==void 0||(xe=ke(Z,k))!==void 0?xe:void 0;this.each(function(){Ge.set(this,k,Le)})},null,D,1<arguments.length,null,!0)},removeData:function(k){return this.each(function(){Ge.remove(this,k)})}}),y.extend({queue:function(k,D,B){var W;if(k)return D=(D||"fx")+"queue",W=Ee.get(k,D),B&&(!W||Array.isArray(B)?W=Ee.access(k,D,y.makeArray(B)):W.push(B)),W||[]},dequeue:function(k,D){D=D||"fx";var B=y.queue(k,D),W=B.length,q=B.shift(),Z=y._queueHooks(k,D);q==="inprogress"&&(q=B.shift(),W--),q&&(D==="fx"&&B.unshift("inprogress"),delete Z.stop,q.call(k,function(){y.dequeue(k,D)},Z)),!W&&Z&&Z.empty.fire()},_queueHooks:function(k,D){var B=D+"queueHooks";return Ee.get(k,B)||Ee.access(k,B,{empty:y.Callbacks("once memory").add(function(){Ee.remove(k,[D+"queue",B])})})}}),y.fn.extend({queue:function(k,D){var B=2;return typeof k!="string"&&(D=k,k="fx",B--),arguments.length<B?y.queue(this[0],k):D===void 0?this:this.each(function(){var W=y.queue(this,k,D);y._queueHooks(this,k),k==="fx"&&W[0]!=="inprogress"&&y.dequeue(this,k)})},dequeue:function(k){return this.each(function(){y.dequeue(this,k)})},clearQueue:function(k){return this.queue(k||"fx",[])},promise:function(k,D){var B,W=1,q=y.Deferred(),Z=this,ae=this.length,Le=function(){--W||q.resolveWith(Z,[Z])};for(typeof k!="string"&&(D=k,k=void 0),k=k||"fx";ae--;)(B=Ee.get(Z[ae],k+"queueHooks"))&&B.empty&&(W++,B.empty.add(Le));return Le(),q.promise(D)}});var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,st=new RegExp("^(?:([+-])=|)("+nt+")([a-z%]*)$","i"),ut=["Top","Right","Bottom","Left"],lt=g.documentElement,Me=function(k){return y.contains(k.ownerDocument,k)},ye={composed:!0};lt.getRootNode&&(Me=function(k){return y.contains(k.ownerDocument,k)||k.getRootNode(ye)===k.ownerDocument});var ge=function(k,D){return(k=D||k).style.display==="none"||k.style.display===""&&Me(k)&&y.css(k,"display")==="none"};function $e(k,D,B,W){var q,Z,ae=20,Le=W?function(){return W.cur()}:function(){return y.css(k,D,"")},xe=Le(),He=B&&B[3]||(y.cssNumber[D]?"":"px"),Ze=k.nodeType&&(y.cssNumber[D]||He!=="px"&&+xe)&&st.exec(y.css(k,D));if(Ze&&Ze[3]!==He){for(xe/=2,He=He||Ze[3],Ze=+xe||1;ae--;)y.style(k,D,Ze+He),(1-Z)*(1-(Z=Le()/xe||.5))<=0&&(ae=0),Ze/=Z;Ze*=2,y.style(k,D,Ze+He),B=B||[]}return B&&(Ze=+Ze||+xe||0,q=B[1]?Ze+(B[1]+1)*B[2]:+B[2],W&&(W.unit=He,W.start=Ze,W.end=q)),q}var se={};function Qe(k,D){for(var B,W,q,Z,ae,Le,xe,He=[],Ze=0,ot=k.length;Ze<ot;Ze++)(W=k[Ze]).style&&(B=W.style.display,D?(B==="none"&&(He[Ze]=Ee.get(W,"display")||null,He[Ze]||(W.style.display="")),W.style.display===""&&ge(W)&&(He[Ze]=(xe=ae=Z=void 0,ae=(q=W).ownerDocument,Le=q.nodeName,(xe=se[Le])||(Z=ae.body.appendChild(ae.createElement(Le)),xe=y.css(Z,"display"),Z.parentNode.removeChild(Z),xe==="none"&&(xe="block"),se[Le]=xe)))):B!=="none"&&(He[Ze]="none",Ee.set(W,"display",B)));for(Ze=0;Ze<ot;Ze++)He[Ze]!=null&&(k[Ze].style.display=He[Ze]);return k}y.fn.extend({show:function(){return Qe(this,!0)},hide:function(){return Qe(this)},toggle:function(k){return typeof k=="boolean"?k?this.show():this.hide():this.each(function(){ge(this)?y(this).show():y(this).hide()})}});var wt,Vt,Zn=/^(?:checkbox|radio)$/i,rr=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,$r=/^$|^module$|\/(?:java|ecma)script/i;wt=g.createDocumentFragment().appendChild(g.createElement("div")),(Vt=g.createElement("input")).setAttribute("type","radio"),Vt.setAttribute("checked","checked"),Vt.setAttribute("name","t"),wt.appendChild(Vt),h.checkClone=wt.cloneNode(!0).cloneNode(!0).lastChild.checked,wt.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!wt.cloneNode(!0).lastChild.defaultValue,wt.innerHTML="<option></option>",h.option=!!wt.lastChild;var Fn={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Re(k,D){var B;return B=typeof k.getElementsByTagName<"u"?k.getElementsByTagName(D||"*"):typeof k.querySelectorAll<"u"?k.querySelectorAll(D||"*"):[],D===void 0||D&&T(k,D)?y.merge([k],B):B}function rt(k,D){for(var B=0,W=k.length;B<W;B++)Ee.set(k[B],"globalEval",!D||Ee.get(D[B],"globalEval"))}Fn.tbody=Fn.tfoot=Fn.colgroup=Fn.caption=Fn.thead,Fn.th=Fn.td,h.option||(Fn.optgroup=Fn.option=[1,"<select multiple='multiple'>","</select>"]);var Ae=/<|&#?\w+;/;function it(k,D,B,W,q){for(var Z,ae,Le,xe,He,Ze,ot=D.createDocumentFragment(),Ke=[],ht=0,en=k.length;ht<en;ht++)if((Z=k[ht])||Z===0)if(w(Z)==="object")y.merge(Ke,Z.nodeType?[Z]:Z);else if(Ae.test(Z)){for(ae=ae||ot.appendChild(D.createElement("div")),Le=(rr.exec(Z)||["",""])[1].toLowerCase(),xe=Fn[Le]||Fn._default,ae.innerHTML=xe[1]+y.htmlPrefilter(Z)+xe[2],Ze=xe[0];Ze--;)ae=ae.lastChild;y.merge(Ke,ae.childNodes),(ae=ot.firstChild).textContent=""}else Ke.push(D.createTextNode(Z));for(ot.textContent="",ht=0;Z=Ke[ht++];)if(W&&-1<y.inArray(Z,W))q&&q.push(Z);else if(He=Me(Z),ae=Re(ot.appendChild(Z),"script"),He&&rt(ae),B)for(Ze=0;Z=ae[Ze++];)$r.test(Z.type||"")&&B.push(Z);return ot}var Wt=/^([^.]*)(?:\.(.+)|)/;function nn(){return!0}function Jn(){return!1}function dr(k,D,B,W,q,Z){var ae,Le;if(typeof D=="object"){for(Le in typeof B!="string"&&(W=W||B,B=void 0),D)dr(k,Le,B,W,D[Le],Z);return k}if(W==null&&q==null?(q=B,W=B=void 0):q==null&&(typeof B=="string"?(q=W,W=void 0):(q=W,W=B,B=void 0)),q===!1)q=Jn;else if(!q)return k;return Z===1&&(ae=q,(q=function(xe){return y().off(xe),ae.apply(this,arguments)}).guid=ae.guid||(ae.guid=y.guid++)),k.each(function(){y.event.add(this,D,q,W,B)})}function xr(k,D,B){B?(Ee.set(k,D,!1),y.event.add(k,D,{namespace:!1,handler:function(W){var q,Z=Ee.get(this,D);if(1&W.isTrigger&&this[D]){if(Z)(y.event.special[D]||{}).delegateType&&W.stopPropagation();else if(Z=a.call(arguments),Ee.set(this,D,Z),this[D](),q=Ee.get(this,D),Ee.set(this,D,!1),Z!==q)return W.stopImmediatePropagation(),W.preventDefault(),q}else Z&&(Ee.set(this,D,y.event.trigger(Z[0],Z.slice(1),this)),W.stopPropagation(),W.isImmediatePropagationStopped=nn)}})):Ee.get(k,D)===void 0&&y.event.add(k,D,nn)}y.event={global:{},add:function(k,D,B,W,q){var Z,ae,Le,xe,He,Ze,ot,Ke,ht,en,gn,mn=Ee.get(k);if(Se(k))for(B.handler&&(B=(Z=B).handler,q=Z.selector),q&&y.find.matchesSelector(lt,q),B.guid||(B.guid=y.guid++),(xe=mn.events)||(xe=mn.events=Object.create(null)),(ae=mn.handle)||(ae=mn.handle=function(Br){return typeof y<"u"&&y.event.triggered!==Br.type?y.event.dispatch.apply(k,arguments):void 0}),He=(D=(D||"").match(Q)||[""]).length;He--;)ht=gn=(Le=Wt.exec(D[He])||[])[1],en=(Le[2]||"").split(".").sort(),ht&&(ot=y.event.special[ht]||{},ht=(q?ot.delegateType:ot.bindType)||ht,ot=y.event.special[ht]||{},Ze=y.extend({type:ht,origType:gn,data:W,handler:B,guid:B.guid,selector:q,needsContext:q&&y.expr.match.needsContext.test(q),namespace:en.join(".")},Z),(Ke=xe[ht])||((Ke=xe[ht]=[]).delegateCount=0,ot.setup&&ot.setup.call(k,W,en,ae)!==!1||k.addEventListener&&k.addEventListener(ht,ae)),ot.add&&(ot.add.call(k,Ze),Ze.handler.guid||(Ze.handler.guid=B.guid)),q?Ke.splice(Ke.delegateCount++,0,Ze):Ke.push(Ze),y.event.global[ht]=!0)},remove:function(k,D,B,W,q){var Z,ae,Le,xe,He,Ze,ot,Ke,ht,en,gn,mn=Ee.hasData(k)&&Ee.get(k);if(mn&&(xe=mn.events)){for(He=(D=(D||"").match(Q)||[""]).length;He--;)if(ht=gn=(Le=Wt.exec(D[He])||[])[1],en=(Le[2]||"").split(".").sort(),ht){for(ot=y.event.special[ht]||{},Ke=xe[ht=(W?ot.delegateType:ot.bindType)||ht]||[],Le=Le[2]&&new RegExp("(^|\\.)"+en.join("\\.(?:.*\\.|)")+"(\\.|$)"),ae=Z=Ke.length;Z--;)Ze=Ke[Z],!q&&gn!==Ze.origType||B&&B.guid!==Ze.guid||Le&&!Le.test(Ze.namespace)||W&&W!==Ze.selector&&(W!=="**"||!Ze.selector)||(Ke.splice(Z,1),Ze.selector&&Ke.delegateCount--,ot.remove&&ot.remove.call(k,Ze));ae&&!Ke.length&&(ot.teardown&&ot.teardown.call(k,en,mn.handle)!==!1||y.removeEvent(k,ht,mn.handle),delete xe[ht])}else for(ht in xe)y.event.remove(k,ht+D[He],B,W,!0);y.isEmptyObject(xe)&&Ee.remove(k,"handle events")}},dispatch:function(k){var D,B,W,q,Z,ae,Le=new Array(arguments.length),xe=y.event.fix(k),He=(Ee.get(this,"events")||Object.create(null))[xe.type]||[],Ze=y.event.special[xe.type]||{};for(Le[0]=xe,D=1;D<arguments.length;D++)Le[D]=arguments[D];if(xe.delegateTarget=this,!Ze.preDispatch||Ze.preDispatch.call(this,xe)!==!1){for(ae=y.event.handlers.call(this,xe,He),D=0;(q=ae[D++])&&!xe.isPropagationStopped();)for(xe.currentTarget=q.elem,B=0;(Z=q.handlers[B++])&&!xe.isImmediatePropagationStopped();)xe.rnamespace&&Z.namespace!==!1&&!xe.rnamespace.test(Z.namespace)||(xe.handleObj=Z,xe.data=Z.data,(W=((y.event.special[Z.origType]||{}).handle||Z.handler).apply(q.elem,Le))!==void 0&&(xe.result=W)===!1&&(xe.preventDefault(),xe.stopPropagation()));return Ze.postDispatch&&Ze.postDispatch.call(this,xe),xe.result}},handlers:function(k,D){var B,W,q,Z,ae,Le=[],xe=D.delegateCount,He=k.target;if(xe&&He.nodeType&&!(k.type==="click"&&1<=k.button)){for(;He!==this;He=He.parentNode||this)if(He.nodeType===1&&(k.type!=="click"||He.disabled!==!0)){for(Z=[],ae={},B=0;B<xe;B++)ae[q=(W=D[B]).selector+" "]===void 0&&(ae[q]=W.needsContext?-1<y(q,this).index(He):y.find(q,this,null,[He]).length),ae[q]&&Z.push(W);Z.length&&Le.push({elem:He,handlers:Z})}}return He=this,xe<D.length&&Le.push({elem:He,handlers:D.slice(xe)}),Le},addProp:function(k,D){Object.defineProperty(y.Event.prototype,k,{enumerable:!0,configurable:!0,get:v(D)?function(){if(this.originalEvent)return D(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[k]},set:function(B){Object.defineProperty(this,k,{enumerable:!0,configurable:!0,writable:!0,value:B})}})},fix:function(k){return k[y.expando]?k:new y.Event(k)},special:{load:{noBubble:!0},click:{setup:function(k){var D=this||k;return Zn.test(D.type)&&D.click&&T(D,"input")&&xr(D,"click",!0),!1},trigger:function(k){var D=this||k;return Zn.test(D.type)&&D.click&&T(D,"input")&&xr(D,"click"),!0},_default:function(k){var D=k.target;return Zn.test(D.type)&&D.click&&T(D,"input")&&Ee.get(D,"click")||T(D,"a")}},beforeunload:{postDispatch:function(k){k.result!==void 0&&k.originalEvent&&(k.originalEvent.returnValue=k.result)}}}},y.removeEvent=function(k,D,B){k.removeEventListener&&k.removeEventListener(D,B)},y.Event=function(k,D){if(!(this instanceof y.Event))return new y.Event(k,D);k&&k.type?(this.originalEvent=k,this.type=k.type,this.isDefaultPrevented=k.defaultPrevented||k.defaultPrevented===void 0&&k.returnValue===!1?nn:Jn,this.target=k.target&&k.target.nodeType===3?k.target.parentNode:k.target,this.currentTarget=k.currentTarget,this.relatedTarget=k.relatedTarget):this.type=k,D&&y.extend(this,D),this.timeStamp=k&&k.timeStamp||Date.now(),this[y.expando]=!0},y.Event.prototype={constructor:y.Event,isDefaultPrevented:Jn,isPropagationStopped:Jn,isImmediatePropagationStopped:Jn,isSimulated:!1,preventDefault:function(){var k=this.originalEvent;this.isDefaultPrevented=nn,k&&!this.isSimulated&&k.preventDefault()},stopPropagation:function(){var k=this.originalEvent;this.isPropagationStopped=nn,k&&!this.isSimulated&&k.stopPropagation()},stopImmediatePropagation:function(){var k=this.originalEvent;this.isImmediatePropagationStopped=nn,k&&!this.isSimulated&&k.stopImmediatePropagation(),this.stopPropagation()}},y.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},y.event.addProp),y.each({focus:"focusin",blur:"focusout"},function(k,D){function B(W){if(g.documentMode){var q=Ee.get(this,"handle"),Z=y.event.fix(W);Z.type=W.type==="focusin"?"focus":"blur",Z.isSimulated=!0,q(W),Z.target===Z.currentTarget&&q(Z)}else y.event.simulate(D,W.target,y.event.fix(W))}y.event.special[k]={setup:function(){var W;if(xr(this,k,!0),!g.documentMode)return!1;(W=Ee.get(this,D))||this.addEventListener(D,B),Ee.set(this,D,(W||0)+1)},trigger:function(){return xr(this,k),!0},teardown:function(){var W;if(!g.documentMode)return!1;(W=Ee.get(this,D)-1)?Ee.set(this,D,W):(this.removeEventListener(D,B),Ee.remove(this,D))},_default:function(W){return Ee.get(W.target,k)},delegateType:D},y.event.special[D]={setup:function(){var W=this.ownerDocument||this.document||this,q=g.documentMode?this:W,Z=Ee.get(q,D);Z||(g.documentMode?this.addEventListener(D,B):W.addEventListener(k,B,!0)),Ee.set(q,D,(Z||0)+1)},teardown:function(){var W=this.ownerDocument||this.document||this,q=g.documentMode?this:W,Z=Ee.get(q,D)-1;Z?Ee.set(q,D,Z):(g.documentMode?this.removeEventListener(D,B):W.removeEventListener(k,B,!0),Ee.remove(q,D))}}}),y.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(k,D){y.event.special[k]={delegateType:D,bindType:D,handle:function(B){var W,q=B.relatedTarget,Z=B.handleObj;return q&&(q===this||y.contains(this,q))||(B.type=Z.origType,W=Z.handler.apply(this,arguments),B.type=D),W}}}),y.fn.extend({on:function(k,D,B,W){return dr(this,k,D,B,W)},one:function(k,D,B,W){return dr(this,k,D,B,W,1)},off:function(k,D,B){var W,q;if(k&&k.preventDefault&&k.handleObj)return W=k.handleObj,y(k.delegateTarget).off(W.namespace?W.origType+"."+W.namespace:W.origType,W.selector,W.handler),this;if(typeof k=="object"){for(q in k)this.off(q,D,k[q]);return this}return D!==!1&&typeof D!="function"||(B=D,D=void 0),B===!1&&(B=Jn),this.each(function(){y.event.remove(this,k,B,D)})}});var Dr=/<script|<style|<link/i,Vi=/checked\s*(?:[^=]|=\s*.checked.)/i,By=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Hv(k,D){return T(k,"table")&&T(D.nodeType!==11?D:D.firstChild,"tr")&&y(k).children("tbody")[0]||k}function Fy(k){return k.type=(k.getAttribute("type")!==null)+"/"+k.type,k}function Vy(k){return(k.type||"").slice(0,5)==="true/"?k.type=k.type.slice(5):k.removeAttribute("type"),k}function zy(k,D){var B,W,q,Z,ae,Le;if(D.nodeType===1){if(Ee.hasData(k)&&(Le=Ee.get(k).events))for(q in Ee.remove(D,"handle events"),Le)for(B=0,W=Le[q].length;B<W;B++)y.event.add(D,q,Le[q][B]);Ge.hasData(k)&&(Z=Ge.access(k),ae=y.extend({},Z),Ge.set(D,ae))}}function zi(k,D,B,W){D=i(D);var q,Z,ae,Le,xe,He,Ze=0,ot=k.length,Ke=ot-1,ht=D[0],en=v(ht);if(en||1<ot&&typeof ht=="string"&&!h.checkClone&&Vi.test(ht))return k.each(function(gn){var mn=k.eq(gn);en&&(D[0]=ht.call(this,gn,mn.html())),zi(mn,D,B,W)});if(ot&&(Z=(q=it(D,k[0].ownerDocument,!1,k,W)).firstChild,q.childNodes.length===1&&(q=Z),Z||W)){for(Le=(ae=y.map(Re(q,"script"),Fy)).length;Ze<ot;Ze++)xe=q,Ze!==Ke&&(xe=y.clone(xe,!0,!0),Le&&y.merge(ae,Re(xe,"script"))),B.call(k[Ze],xe,Ze);if(Le)for(He=ae[ae.length-1].ownerDocument,y.map(ae,Vy),Ze=0;Ze<Le;Ze++)xe=ae[Ze],$r.test(xe.type||"")&&!Ee.access(xe,"globalEval")&&y.contains(He,xe)&&(xe.src&&(xe.type||"").toLowerCase()!=="module"?y._evalUrl&&!xe.noModule&&y._evalUrl(xe.src,{nonce:xe.nonce||xe.getAttribute("nonce")},He):b(xe.textContent.replace(By,""),xe,He))}return k}function bd(k,D,B){for(var W,q=D?y.filter(D,k):k,Z=0;(W=q[Z])!=null;Z++)B||W.nodeType!==1||y.cleanData(Re(W)),W.parentNode&&(B&&Me(W)&&rt(Re(W,"script")),W.parentNode.removeChild(W));return k}y.extend({htmlPrefilter:function(k){return k},clone:function(k,D,B){var W,q,Z,ae,Le,xe,He,Ze=k.cloneNode(!0),ot=Me(k);if(!(h.noCloneChecked||k.nodeType!==1&&k.nodeType!==11||y.isXMLDoc(k)))for(ae=Re(Ze),W=0,q=(Z=Re(k)).length;W<q;W++)Le=Z[W],xe=ae[W],(He=xe.nodeName.toLowerCase())==="input"&&Zn.test(Le.type)?xe.checked=Le.checked:He!=="input"&&He!=="textarea"||(xe.defaultValue=Le.defaultValue);if(D)if(B)for(Z=Z||Re(k),ae=ae||Re(Ze),W=0,q=Z.length;W<q;W++)zy(Z[W],ae[W]);else zy(k,Ze);return 0<(ae=Re(Ze,"script")).length&&rt(ae,!ot&&Re(k,"script")),Ze},cleanData:function(k){for(var D,B,W,q=y.event.special,Z=0;(B=k[Z])!==void 0;Z++)if(Se(B)){if(D=B[Ee.expando]){if(D.events)for(W in D.events)q[W]?y.event.remove(B,W):y.removeEvent(B,W,D.handle);B[Ee.expando]=void 0}B[Ge.expando]&&(B[Ge.expando]=void 0)}}}),y.fn.extend({detach:function(k){return bd(this,k,!0)},remove:function(k){return bd(this,k)},text:function(k){return De(this,function(D){return D===void 0?y.text(this):this.empty().each(function(){this.nodeType!==1&&this.nodeType!==11&&this.nodeType!==9||(this.textContent=D)})},null,k,arguments.length)},append:function(){return zi(this,arguments,function(k){this.nodeType!==1&&this.nodeType!==11&&this.nodeType!==9||Hv(this,k).appendChild(k)})},prepend:function(){return zi(this,arguments,function(k){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var D=Hv(this,k);D.insertBefore(k,D.firstChild)}})},before:function(){return zi(this,arguments,function(k){this.parentNode&&this.parentNode.insertBefore(k,this)})},after:function(){return zi(this,arguments,function(k){this.parentNode&&this.parentNode.insertBefore(k,this.nextSibling)})},empty:function(){for(var k,D=0;(k=this[D])!=null;D++)k.nodeType===1&&(y.cleanData(Re(k,!1)),k.textContent="");return this},clone:function(k,D){return k=k!=null&&k,D=D??k,this.map(function(){return y.clone(this,k,D)})},html:function(k){return De(this,function(D){var B=this[0]||{},W=0,q=this.length;if(D===void 0&&B.nodeType===1)return B.innerHTML;if(typeof D=="string"&&!Dr.test(D)&&!Fn[(rr.exec(D)||["",""])[1].toLowerCase()]){D=y.htmlPrefilter(D);try{for(;W<q;W++)(B=this[W]||{}).nodeType===1&&(y.cleanData(Re(B,!1)),B.innerHTML=D);B=0}catch{}}B&&this.empty().append(D)},null,k,arguments.length)},replaceWith:function(){var k=[];return zi(this,arguments,function(D){var B=this.parentNode;y.inArray(this,k)<0&&(y.cleanData(Re(this)),B&&B.replaceChild(D,this))},k)}}),y.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(k,D){y.fn[k]=function(B){for(var W,q=[],Z=y(B),ae=Z.length-1,Le=0;Le<=ae;Le++)W=Le===ae?this:this.clone(!0),y(Z[Le])[D](W),o.apply(q,W.get());return this.pushStack(q)}});var Vl=new RegExp("^("+nt+")(?!px)[a-z%]+$","i"),zl=/^--/,hc=function(k){var D=k.ownerDocument.defaultView;return D&&D.opener||(D=e),D.getComputedStyle(k)},Wv=function(k,D,B){var W,q,Z={};for(q in D)Z[q]=k.style[q],k.style[q]=D[q];for(q in W=B.call(k),D)k.style[q]=Z[q];return W},Hy=new RegExp(ut.join("|"),"i");function Hl(k,D,B){var W,q,Z,ae,Le=zl.test(D),xe=k.style;return(B=B||hc(k))&&(ae=B.getPropertyValue(D)||B[D],Le&&ae&&(ae=ae.replace(L,"$1")||void 0),ae!==""||Me(k)||(ae=y.style(k,D)),!h.pixelBoxStyles()&&Vl.test(ae)&&Hy.test(D)&&(W=xe.width,q=xe.minWidth,Z=xe.maxWidth,xe.minWidth=xe.maxWidth=xe.width=ae,ae=B.width,xe.width=W,xe.minWidth=q,xe.maxWidth=Z)),ae!==void 0?ae+"":ae}function Gv(k,D){return{get:function(){if(!k())return(this.get=D).apply(this,arguments);delete this.get}}}(function(){function k(){if(He){xe.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",He.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",lt.appendChild(xe).appendChild(He);var Ze=e.getComputedStyle(He);B=Ze.top!=="1%",Le=D(Ze.marginLeft)===12,He.style.right="60%",Z=D(Ze.right)===36,W=D(Ze.width)===36,He.style.position="absolute",q=D(He.offsetWidth/3)===12,lt.removeChild(xe),He=null}}function D(Ze){return Math.round(parseFloat(Ze))}var B,W,q,Z,ae,Le,xe=g.createElement("div"),He=g.createElement("div");He.style&&(He.style.backgroundClip="content-box",He.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle=He.style.backgroundClip==="content-box",y.extend(h,{boxSizingReliable:function(){return k(),W},pixelBoxStyles:function(){return k(),Z},pixelPosition:function(){return k(),B},reliableMarginLeft:function(){return k(),Le},scrollboxSize:function(){return k(),q},reliableTrDimensions:function(){var Ze,ot,Ke,ht;return ae==null&&(Ze=g.createElement("table"),ot=g.createElement("tr"),Ke=g.createElement("div"),Ze.style.cssText="position:absolute;left:-11111px;border-collapse:separate",ot.style.cssText="box-sizing:content-box;border:1px solid",ot.style.height="1px",Ke.style.height="9px",Ke.style.display="block",lt.appendChild(Ze).appendChild(ot).appendChild(Ke),ht=e.getComputedStyle(ot),ae=parseInt(ht.height,10)+parseInt(ht.borderTopWidth,10)+parseInt(ht.borderBottomWidth,10)===ot.offsetHeight,lt.removeChild(Ze)),ae}}))})();var Uv=["Webkit","Moz","ms"],Kv=g.createElement("div").style,vc={};function DS(k){var D=y.cssProps[k]||vc[k];return D||(k in Kv?k:vc[k]=function(B){for(var W=B[0].toUpperCase()+B.slice(1),q=Uv.length;q--;)if((B=Uv[q]+W)in Kv)return B}(k)||k)}var _Z=/^(none|table(?!-c[ea]).+)/,wZ={position:"absolute",visibility:"hidden",display:"block"},UL={letterSpacing:"0",fontWeight:"400"};function KL(k,D,B){var W=st.exec(D);return W?Math.max(0,W[2]-(B||0))+(W[3]||"px"):D}function LS(k,D,B,W,q,Z){var ae=D==="width"?1:0,Le=0,xe=0,He=0;if(B===(W?"border":"content"))return 0;for(;ae<4;ae+=2)B==="margin"&&(He+=y.css(k,B+ut[ae],!0,q)),W?(B==="content"&&(xe-=y.css(k,"padding"+ut[ae],!0,q)),B!=="margin"&&(xe-=y.css(k,"border"+ut[ae]+"Width",!0,q))):(xe+=y.css(k,"padding"+ut[ae],!0,q),B!=="padding"?xe+=y.css(k,"border"+ut[ae]+"Width",!0,q):Le+=y.css(k,"border"+ut[ae]+"Width",!0,q));return!W&&0<=Z&&(xe+=Math.max(0,Math.ceil(k["offset"+D[0].toUpperCase()+D.slice(1)]-Z-xe-Le-.5))||0),xe+He}function jL(k,D,B){var W=hc(k),q=(!h.boxSizingReliable()||B)&&y.css(k,"boxSizing",!1,W)==="border-box",Z=q,ae=Hl(k,D,W),Le="offset"+D[0].toUpperCase()+D.slice(1);if(Vl.test(ae)){if(!B)return ae;ae="auto"}return(!h.boxSizingReliable()&&q||!h.reliableTrDimensions()&&T(k,"tr")||ae==="auto"||!parseFloat(ae)&&y.css(k,"display",!1,W)==="inline")&&k.getClientRects().length&&(q=y.css(k,"boxSizing",!1,W)==="border-box",(Z=Le in k)&&(ae=k[Le])),(ae=parseFloat(ae)||0)+LS(k,D,B||(q?"border":"content"),Z,W,ae)+"px"}function ko(k,D,B,W,q){return new ko.prototype.init(k,D,B,W,q)}y.extend({cssHooks:{opacity:{get:function(k,D){if(D){var B=Hl(k,"opacity");return B===""?"1":B}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(k,D,B,W){if(k&&k.nodeType!==3&&k.nodeType!==8&&k.style){var q,Z,ae,Le=we(D),xe=zl.test(D),He=k.style;if(xe||(D=DS(Le)),ae=y.cssHooks[D]||y.cssHooks[Le],B===void 0)return ae&&"get"in ae&&(q=ae.get(k,!1,W))!==void 0?q:He[D];(Z=typeof B)=="string"&&(q=st.exec(B))&&q[1]&&(B=$e(k,D,q),Z="number"),B!=null&&B==B&&(Z!=="number"||xe||(B+=q&&q[3]||(y.cssNumber[Le]?"":"px")),h.clearCloneStyle||B!==""||D.indexOf("background")!==0||(He[D]="inherit"),ae&&"set"in ae&&(B=ae.set(k,B,W))===void 0||(xe?He.setProperty(D,B):He[D]=B))}},css:function(k,D,B,W){var q,Z,ae,Le=we(D);return zl.test(D)||(D=DS(Le)),(ae=y.cssHooks[D]||y.cssHooks[Le])&&"get"in ae&&(q=ae.get(k,!0,B)),q===void 0&&(q=Hl(k,D,W)),q==="normal"&&D in UL&&(q=UL[D]),B===""||B?(Z=parseFloat(q),B===!0||isFinite(Z)?Z||0:q):q}}),y.each(["height","width"],function(k,D){y.cssHooks[D]={get:function(B,W,q){if(W)return!_Z.test(y.css(B,"display"))||B.getClientRects().length&&B.getBoundingClientRect().width?jL(B,D,q):Wv(B,wZ,function(){return jL(B,D,q)})},set:function(B,W,q){var Z,ae=hc(B),Le=!h.scrollboxSize()&&ae.position==="absolute",xe=(Le||q)&&y.css(B,"boxSizing",!1,ae)==="border-box",He=q?LS(B,D,q,xe,ae):0;return xe&&Le&&(He-=Math.ceil(B["offset"+D[0].toUpperCase()+D.slice(1)]-parseFloat(ae[D])-LS(B,D,"border",!1,ae)-.5)),He&&(Z=st.exec(W))&&(Z[3]||"px")!=="px"&&(B.style[D]=W,W=y.css(B,D)),KL(0,W,He)}}}),y.cssHooks.marginLeft=Gv(h.reliableMarginLeft,function(k,D){if(D)return(parseFloat(Hl(k,"marginLeft"))||k.getBoundingClientRect().left-Wv(k,{marginLeft:0},function(){return k.getBoundingClientRect().left}))+"px"}),y.each({margin:"",padding:"",border:"Width"},function(k,D){y.cssHooks[k+D]={expand:function(B){for(var W=0,q={},Z=typeof B=="string"?B.split(" "):[B];W<4;W++)q[k+ut[W]+D]=Z[W]||Z[W-2]||Z[0];return q}},k!=="margin"&&(y.cssHooks[k+D].set=KL)}),y.fn.extend({css:function(k,D){return De(this,function(B,W,q){var Z,ae,Le={},xe=0;if(Array.isArray(W)){for(Z=hc(B),ae=W.length;xe<ae;xe++)Le[W[xe]]=y.css(B,W[xe],!1,Z);return Le}return q!==void 0?y.style(B,W,q):y.css(B,W)},k,D,1<arguments.length)}}),((y.Tween=ko).prototype={constructor:ko,init:function(k,D,B,W,q,Z){this.elem=k,this.prop=B,this.easing=q||y.easing._default,this.options=D,this.start=this.now=this.cur(),this.end=W,this.unit=Z||(y.cssNumber[B]?"":"px")},cur:function(){var k=ko.propHooks[this.prop];return k&&k.get?k.get(this):ko.propHooks._default.get(this)},run:function(k){var D,B=ko.propHooks[this.prop];return this.options.duration?this.pos=D=y.easing[this.easing](k,this.options.duration*k,0,1,this.options.duration):this.pos=D=k,this.now=(this.end-this.start)*D+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),B&&B.set?B.set(this):ko.propHooks._default.set(this),this}}).init.prototype=ko.prototype,(ko.propHooks={_default:{get:function(k){var D;return k.elem.nodeType!==1||k.elem[k.prop]!=null&&k.elem.style[k.prop]==null?k.elem[k.prop]:(D=y.css(k.elem,k.prop,""))&&D!=="auto"?D:0},set:function(k){y.fx.step[k.prop]?y.fx.step[k.prop](k):k.elem.nodeType!==1||!y.cssHooks[k.prop]&&k.elem.style[DS(k.prop)]==null?k.elem[k.prop]=k.now:y.style(k.elem,k.prop,k.now+k.unit)}}}).scrollTop=ko.propHooks.scrollLeft={set:function(k){k.elem.nodeType&&k.elem.parentNode&&(k.elem[k.prop]=k.now)}},y.easing={linear:function(k){return k},swing:function(k){return .5-Math.cos(k*Math.PI)/2},_default:"swing"},y.fx=ko.prototype.init,y.fx.step={};var _d,Wy,wd,YL,SZ=/^(?:toggle|show|hide)$/,CZ=/queueHooks$/;function PS(){Wy&&(g.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(PS):e.setTimeout(PS,y.fx.interval),y.fx.tick())}function qL(){return e.setTimeout(function(){_d=void 0}),_d=Date.now()}function Gy(k,D){var B,W=0,q={height:k};for(D=D?1:0;W<4;W+=2-D)q["margin"+(B=ut[W])]=q["padding"+B]=k;return D&&(q.opacity=q.width=k),q}function XL(k,D,B){for(var W,q=(Ao.tweeners[D]||[]).concat(Ao.tweeners["*"]),Z=0,ae=q.length;Z<ae;Z++)if(W=q[Z].call(B,D,k))return W}function Ao(k,D,B){var W,q,Z=0,ae=Ao.prefilters.length,Le=y.Deferred().always(function(){delete xe.elem}),xe=function(){if(q)return!1;for(var ot=_d||qL(),Ke=Math.max(0,He.startTime+He.duration-ot),ht=1-(Ke/He.duration||0),en=0,gn=He.tweens.length;en<gn;en++)He.tweens[en].run(ht);return Le.notifyWith(k,[He,ht,Ke]),ht<1&&gn?Ke:(gn||Le.notifyWith(k,[He,1,0]),Le.resolveWith(k,[He]),!1)},He=Le.promise({elem:k,props:y.extend({},D),opts:y.extend(!0,{specialEasing:{},easing:y.easing._default},B),originalProperties:D,originalOptions:B,startTime:_d||qL(),duration:B.duration,tweens:[],createTween:function(ot,Ke){var ht=y.Tween(k,He.opts,ot,Ke,He.opts.specialEasing[ot]||He.opts.easing);return He.tweens.push(ht),ht},stop:function(ot){var Ke=0,ht=ot?He.tweens.length:0;if(q)return this;for(q=!0;Ke<ht;Ke++)He.tweens[Ke].run(1);return ot?(Le.notifyWith(k,[He,1,0]),Le.resolveWith(k,[He,ot])):Le.rejectWith(k,[He,ot]),this}}),Ze=He.props;for(!function(ot,Ke){var ht,en,gn,mn,Br;for(ht in ot)if(gn=Ke[en=we(ht)],mn=ot[ht],Array.isArray(mn)&&(gn=mn[1],mn=ot[ht]=mn[0]),ht!==en&&(ot[en]=mn,delete ot[ht]),(Br=y.cssHooks[en])&&"expand"in Br)for(ht in mn=Br.expand(mn),delete ot[en],mn)ht in ot||(ot[ht]=mn[ht],Ke[ht]=gn);else Ke[en]=gn}(Ze,He.opts.specialEasing);Z<ae;Z++)if(W=Ao.prefilters[Z].call(He,k,Ze,He.opts))return v(W.stop)&&(y._queueHooks(He.elem,He.opts.queue).stop=W.stop.bind(W)),W;return y.map(Ze,XL,He),v(He.opts.start)&&He.opts.start.call(k,He),He.progress(He.opts.progress).done(He.opts.done,He.opts.complete).fail(He.opts.fail).always(He.opts.always),y.fx.timer(y.extend(xe,{elem:k,anim:He,queue:He.opts.queue})),He}y.Animation=y.extend(Ao,{tweeners:{"*":[function(k,D){var B=this.createTween(k,D);return $e(B.elem,k,st.exec(D),B),B}]},tweener:function(k,D){v(k)?(D=k,k=["*"]):k=k.match(Q);for(var B,W=0,q=k.length;W<q;W++)B=k[W],Ao.tweeners[B]=Ao.tweeners[B]||[],Ao.tweeners[B].unshift(D)},prefilters:[function(k,D,B){var W,q,Z,ae,Le,xe,He,Ze,ot="width"in D||"height"in D,Ke=this,ht={},en=k.style,gn=k.nodeType&&ge(k),mn=Ee.get(k,"fxshow");for(W in B.queue||((ae=y._queueHooks(k,"fx")).unqueued==null&&(ae.unqueued=0,Le=ae.empty.fire,ae.empty.fire=function(){ae.unqueued||Le()}),ae.unqueued++,Ke.always(function(){Ke.always(function(){ae.unqueued--,y.queue(k,"fx").length||ae.empty.fire()})})),D)if(q=D[W],SZ.test(q)){if(delete D[W],Z=Z||q==="toggle",q===(gn?"hide":"show")){if(q!=="show"||!mn||mn[W]===void 0)continue;gn=!0}ht[W]=mn&&mn[W]||y.style(k,W)}if((xe=!y.isEmptyObject(D))||!y.isEmptyObject(ht))for(W in ot&&k.nodeType===1&&(B.overflow=[en.overflow,en.overflowX,en.overflowY],(He=mn&&mn.display)==null&&(He=Ee.get(k,"display")),(Ze=y.css(k,"display"))==="none"&&(He?Ze=He:(Qe([k],!0),He=k.style.display||He,Ze=y.css(k,"display"),Qe([k]))),(Ze==="inline"||Ze==="inline-block"&&He!=null)&&y.css(k,"float")==="none"&&(xe||(Ke.done(function(){en.display=He}),He==null&&(Ze=en.display,He=Ze==="none"?"":Ze)),en.display="inline-block")),B.overflow&&(en.overflow="hidden",Ke.always(function(){en.overflow=B.overflow[0],en.overflowX=B.overflow[1],en.overflowY=B.overflow[2]})),xe=!1,ht)xe||(mn?"hidden"in mn&&(gn=mn.hidden):mn=Ee.access(k,"fxshow",{display:He}),Z&&(mn.hidden=!gn),gn&&Qe([k],!0),Ke.done(function(){for(W in gn||Qe([k]),Ee.remove(k,"fxshow"),ht)y.style(k,W,ht[W])})),xe=XL(gn?mn[W]:0,W,Ke),W in mn||(mn[W]=xe.start,gn&&(xe.end=xe.start,xe.start=0))}],prefilter:function(k,D){D?Ao.prefilters.unshift(k):Ao.prefilters.push(k)}}),y.speed=function(k,D,B){var W=k&&typeof k=="object"?y.extend({},k):{complete:B||!B&&D||v(k)&&k,duration:k,easing:B&&D||D&&!v(D)&&D};return y.fx.off?W.duration=0:typeof W.duration!="number"&&(W.duration in y.fx.speeds?W.duration=y.fx.speeds[W.duration]:W.duration=y.fx.speeds._default),W.queue!=null&&W.queue!==!0||(W.queue="fx"),W.old=W.complete,W.complete=function(){v(W.old)&&W.old.call(this),W.queue&&y.dequeue(this,W.queue)},W},y.fn.extend({fadeTo:function(k,D,B,W){return this.filter(ge).css("opacity",0).show().end().animate({opacity:D},k,B,W)},animate:function(k,D,B,W){var q=y.isEmptyObject(k),Z=y.speed(D,B,W),ae=function(){var Le=Ao(this,y.extend({},k),Z);(q||Ee.get(this,"finish"))&&Le.stop(!0)};return ae.finish=ae,q||Z.queue===!1?this.each(ae):this.queue(Z.queue,ae)},stop:function(k,D,B){var W=function(q){var Z=q.stop;delete q.stop,Z(B)};return typeof k!="string"&&(B=D,D=k,k=void 0),D&&this.queue(k||"fx",[]),this.each(function(){var q=!0,Z=k!=null&&k+"queueHooks",ae=y.timers,Le=Ee.get(this);if(Z)Le[Z]&&Le[Z].stop&&W(Le[Z]);else for(Z in Le)Le[Z]&&Le[Z].stop&&CZ.test(Z)&&W(Le[Z]);for(Z=ae.length;Z--;)ae[Z].elem!==this||k!=null&&ae[Z].queue!==k||(ae[Z].anim.stop(B),q=!1,ae.splice(Z,1));!q&&B||y.dequeue(this,k)})},finish:function(k){return k!==!1&&(k=k||"fx"),this.each(function(){var D,B=Ee.get(this),W=B[k+"queue"],q=B[k+"queueHooks"],Z=y.timers,ae=W?W.length:0;for(B.finish=!0,y.queue(this,k,[]),q&&q.stop&&q.stop.call(this,!0),D=Z.length;D--;)Z[D].elem===this&&Z[D].queue===k&&(Z[D].anim.stop(!0),Z.splice(D,1));for(D=0;D<ae;D++)W[D]&&W[D].finish&&W[D].finish.call(this);delete B.finish})}}),y.each(["toggle","show","hide"],function(k,D){var B=y.fn[D];y.fn[D]=function(W,q,Z){return W==null||typeof W=="boolean"?B.apply(this,arguments):this.animate(Gy(D,!0),W,q,Z)}}),y.each({slideDown:Gy("show"),slideUp:Gy("hide"),slideToggle:Gy("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(k,D){y.fn[k]=function(B,W,q){return this.animate(D,B,W,q)}}),y.timers=[],y.fx.tick=function(){var k,D=0,B=y.timers;for(_d=Date.now();D<B.length;D++)(k=B[D])()||B[D]!==k||B.splice(D--,1);B.length||y.fx.stop(),_d=void 0},y.fx.timer=function(k){y.timers.push(k),y.fx.start()},y.fx.interval=13,y.fx.start=function(){Wy||(Wy=!0,PS())},y.fx.stop=function(){Wy=null},y.fx.speeds={slow:600,fast:200,_default:400},y.fn.delay=function(k,D){return k=y.fx&&y.fx.speeds[k]||k,D=D||"fx",this.queue(D,function(B,W){var q=e.setTimeout(B,k);W.stop=function(){e.clearTimeout(q)}})},wd=g.createElement("input"),YL=g.createElement("select").appendChild(g.createElement("option")),wd.type="checkbox",h.checkOn=wd.value!=="",h.optSelected=YL.selected,(wd=g.createElement("input")).value="t",wd.type="radio",h.radioValue=wd.value==="t";var ZL,jv=y.expr.attrHandle;y.fn.extend({attr:function(k,D){return De(this,y.attr,k,D,1<arguments.length)},removeAttr:function(k){return this.each(function(){y.removeAttr(this,k)})}}),y.extend({attr:function(k,D,B){var W,q,Z=k.nodeType;if(Z!==3&&Z!==8&&Z!==2)return typeof k.getAttribute>"u"?y.prop(k,D,B):(Z===1&&y.isXMLDoc(k)||(q=y.attrHooks[D.toLowerCase()]||(y.expr.match.bool.test(D)?ZL:void 0)),B!==void 0?B===null?void y.removeAttr(k,D):q&&"set"in q&&(W=q.set(k,B,D))!==void 0?W:(k.setAttribute(D,B+""),B):q&&"get"in q&&(W=q.get(k,D))!==null?W:(W=y.find.attr(k,D))==null?void 0:W)},attrHooks:{type:{set:function(k,D){if(!h.radioValue&&D==="radio"&&T(k,"input")){var B=k.value;return k.setAttribute("type",D),B&&(k.value=B),D}}}},removeAttr:function(k,D){var B,W=0,q=D&&D.match(Q);if(q&&k.nodeType===1)for(;B=q[W++];)k.removeAttribute(B)}}),ZL={set:function(k,D,B){return D===!1?y.removeAttr(k,B):k.setAttribute(B,B),B}},y.each(y.expr.match.bool.source.match(/\w+/g),function(k,D){var B=jv[D]||y.find.attr;jv[D]=function(W,q,Z){var ae,Le,xe=q.toLowerCase();return Z||(Le=jv[xe],jv[xe]=ae,ae=B(W,q,Z)!=null?xe:null,jv[xe]=Le),ae}});var xZ=/^(?:input|select|textarea|button)$/i,TZ=/^(?:a|area)$/i;function pc(k){return(k.match(Q)||[]).join(" ")}function gc(k){return k.getAttribute&&k.getAttribute("class")||""}function RS(k){return Array.isArray(k)?k:typeof k=="string"&&k.match(Q)||[]}y.fn.extend({prop:function(k,D){return De(this,y.prop,k,D,1<arguments.length)},removeProp:function(k){return this.each(function(){delete this[y.propFix[k]||k]})}}),y.extend({prop:function(k,D,B){var W,q,Z=k.nodeType;if(Z!==3&&Z!==8&&Z!==2)return Z===1&&y.isXMLDoc(k)||(D=y.propFix[D]||D,q=y.propHooks[D]),B!==void 0?q&&"set"in q&&(W=q.set(k,B,D))!==void 0?W:k[D]=B:q&&"get"in q&&(W=q.get(k,D))!==null?W:k[D]},propHooks:{tabIndex:{get:function(k){var D=y.find.attr(k,"tabindex");return D?parseInt(D,10):xZ.test(k.nodeName)||TZ.test(k.nodeName)&&k.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(y.propHooks.selected={get:function(k){var D=k.parentNode;return D&&D.parentNode&&D.parentNode.selectedIndex,null},set:function(k){var D=k.parentNode;D&&(D.selectedIndex,D.parentNode&&D.parentNode.selectedIndex)}}),y.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){y.propFix[this.toLowerCase()]=this}),y.fn.extend({addClass:function(k){var D,B,W,q,Z,ae;return v(k)?this.each(function(Le){y(this).addClass(k.call(this,Le,gc(this)))}):(D=RS(k)).length?this.each(function(){if(W=gc(this),B=this.nodeType===1&&" "+pc(W)+" "){for(Z=0;Z<D.length;Z++)q=D[Z],B.indexOf(" "+q+" ")<0&&(B+=q+" ");ae=pc(B),W!==ae&&this.setAttribute("class",ae)}}):this},removeClass:function(k){var D,B,W,q,Z,ae;return v(k)?this.each(function(Le){y(this).removeClass(k.call(this,Le,gc(this)))}):arguments.length?(D=RS(k)).length?this.each(function(){if(W=gc(this),B=this.nodeType===1&&" "+pc(W)+" "){for(Z=0;Z<D.length;Z++)for(q=D[Z];-1<B.indexOf(" "+q+" ");)B=B.replace(" "+q+" "," ");ae=pc(B),W!==ae&&this.setAttribute("class",ae)}}):this:this.attr("class","")},toggleClass:function(k,D){var B,W,q,Z,ae=typeof k,Le=ae==="string"||Array.isArray(k);return v(k)?this.each(function(xe){y(this).toggleClass(k.call(this,xe,gc(this),D),D)}):typeof D=="boolean"&&Le?D?this.addClass(k):this.removeClass(k):(B=RS(k),this.each(function(){if(Le)for(Z=y(this),q=0;q<B.length;q++)W=B[q],Z.hasClass(W)?Z.removeClass(W):Z.addClass(W);else k!==void 0&&ae!=="boolean"||((W=gc(this))&&Ee.set(this,"__className__",W),this.setAttribute&&this.setAttribute("class",W||k===!1?"":Ee.get(this,"__className__")||""))}))},hasClass:function(k){var D,B,W=0;for(D=" "+k+" ";B=this[W++];)if(B.nodeType===1&&-1<(" "+pc(gc(B))+" ").indexOf(D))return!0;return!1}});var kZ=/\r/g;y.fn.extend({val:function(k){var D,B,W,q=this[0];return arguments.length?(W=v(k),this.each(function(Z){var ae;this.nodeType===1&&((ae=W?k.call(this,Z,y(this).val()):k)==null?ae="":typeof ae=="number"?ae+="":Array.isArray(ae)&&(ae=y.map(ae,function(Le){return Le==null?"":Le+""})),(D=y.valHooks[this.type]||y.valHooks[this.nodeName.toLowerCase()])&&"set"in D&&D.set(this,ae,"value")!==void 0||(this.value=ae))})):q?(D=y.valHooks[q.type]||y.valHooks[q.nodeName.toLowerCase()])&&"get"in D&&(B=D.get(q,"value"))!==void 0?B:typeof(B=q.value)=="string"?B.replace(kZ,""):B??"":void 0}}),y.extend({valHooks:{option:{get:function(k){var D=y.find.attr(k,"value");return D??pc(y.text(k))}},select:{get:function(k){var D,B,W,q=k.options,Z=k.selectedIndex,ae=k.type==="select-one",Le=ae?null:[],xe=ae?Z+1:q.length;for(W=Z<0?xe:ae?Z:0;W<xe;W++)if(((B=q[W]).selected||W===Z)&&!B.disabled&&(!B.parentNode.disabled||!T(B.parentNode,"optgroup"))){if(D=y(B).val(),ae)return D;Le.push(D)}return Le},set:function(k,D){for(var B,W,q=k.options,Z=y.makeArray(D),ae=q.length;ae--;)((W=q[ae]).selected=-1<y.inArray(y.valHooks.option.get(W),Z))&&(B=!0);return B||(k.selectedIndex=-1),Z}}}}),y.each(["radio","checkbox"],function(){y.valHooks[this]={set:function(k,D){if(Array.isArray(D))return k.checked=-1<y.inArray(y(k).val(),D)}},h.checkOn||(y.valHooks[this].get=function(k){return k.getAttribute("value")===null?"on":k.value})});var Yv=e.location,JL={guid:Date.now()},OS=/\?/;y.parseXML=function(k){var D,B;if(!k||typeof k!="string")return null;try{D=new e.DOMParser().parseFromString(k,"text/xml")}catch{}return B=D&&D.getElementsByTagName("parsererror")[0],D&&!B||y.error("Invalid XML: "+(B?y.map(B.childNodes,function(W){return W.textContent}).join(`
  65. `):k)),D};var QL=/^(?:focusinfocus|focusoutblur)$/,eP=function(k){k.stopPropagation()};y.extend(y.event,{trigger:function(k,D,B,W){var q,Z,ae,Le,xe,He,Ze,ot,Ke=[B||g],ht=c.call(k,"type")?k.type:k,en=c.call(k,"namespace")?k.namespace.split("."):[];if(Z=ot=ae=B=B||g,B.nodeType!==3&&B.nodeType!==8&&!QL.test(ht+y.event.triggered)&&(-1<ht.indexOf(".")&&(ht=(en=ht.split(".")).shift(),en.sort()),xe=ht.indexOf(":")<0&&"on"+ht,(k=k[y.expando]?k:new y.Event(ht,typeof k=="object"&&k)).isTrigger=W?2:3,k.namespace=en.join("."),k.rnamespace=k.namespace?new RegExp("(^|\\.)"+en.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,k.result=void 0,k.target||(k.target=B),D=D==null?[k]:y.makeArray(D,[k]),Ze=y.event.special[ht]||{},W||!Ze.trigger||Ze.trigger.apply(B,D)!==!1)){if(!W&&!Ze.noBubble&&!p(B)){for(Le=Ze.delegateType||ht,QL.test(Le+ht)||(Z=Z.parentNode);Z;Z=Z.parentNode)Ke.push(Z),ae=Z;ae===(B.ownerDocument||g)&&Ke.push(ae.defaultView||ae.parentWindow||e)}for(q=0;(Z=Ke[q++])&&!k.isPropagationStopped();)ot=Z,k.type=1<q?Le:Ze.bindType||ht,(He=(Ee.get(Z,"events")||Object.create(null))[k.type]&&Ee.get(Z,"handle"))&&He.apply(Z,D),(He=xe&&Z[xe])&&He.apply&&Se(Z)&&(k.result=He.apply(Z,D),k.result===!1&&k.preventDefault());return k.type=ht,W||k.isDefaultPrevented()||Ze._default&&Ze._default.apply(Ke.pop(),D)!==!1||!Se(B)||xe&&v(B[ht])&&!p(B)&&((ae=B[xe])&&(B[xe]=null),y.event.triggered=ht,k.isPropagationStopped()&&ot.addEventListener(ht,eP),B[ht](),k.isPropagationStopped()&&ot.removeEventListener(ht,eP),y.event.triggered=void 0,ae&&(B[xe]=ae)),k.result}},simulate:function(k,D,B){var W=y.extend(new y.Event,B,{type:k,isSimulated:!0});y.event.trigger(W,null,D)}}),y.fn.extend({trigger:function(k,D){return this.each(function(){y.event.trigger(k,D,this)})},triggerHandler:function(k,D){var B=this[0];if(B)return y.event.trigger(k,D,B,!0)}});var AZ=/\[\]$/,tP=/\r?\n/g,EZ=/^(?:submit|button|image|reset|file)$/i,MZ=/^(?:input|select|textarea|keygen)/i;function NS(k,D,B,W){var q;if(Array.isArray(D))y.each(D,function(Z,ae){B||AZ.test(k)?W(k,ae):NS(k+"["+(typeof ae=="object"&&ae!=null?Z:"")+"]",ae,B,W)});else if(B||w(D)!=="object")W(k,D);else for(q in D)NS(k+"["+q+"]",D[q],B,W)}y.param=function(k,D){var B,W=[],q=function(Z,ae){var Le=v(ae)?ae():ae;W[W.length]=encodeURIComponent(Z)+"="+encodeURIComponent(Le??"")};if(k==null)return"";if(Array.isArray(k)||k.jquery&&!y.isPlainObject(k))y.each(k,function(){q(this.name,this.value)});else for(B in k)NS(B,k[B],D,q);return W.join("&")},y.fn.extend({serialize:function(){return y.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var k=y.prop(this,"elements");return k?y.makeArray(k):this}).filter(function(){var k=this.type;return this.name&&!y(this).is(":disabled")&&MZ.test(this.nodeName)&&!EZ.test(k)&&(this.checked||!Zn.test(k))}).map(function(k,D){var B=y(this).val();return B==null?null:Array.isArray(B)?y.map(B,function(W){return{name:D.name,value:W.replace(tP,`\r
  66. `)}}):{name:D.name,value:B.replace(tP,`\r
  67. `)}}).get()}});var IZ=/%20/g,DZ=/#.*$/,LZ=/([?&])_=[^&]*/,PZ=/^(.*?):[ \t]*([^\r\n]*)$/gm,RZ=/^(?:GET|HEAD)$/,OZ=/^\/\//,nP={},$S={},rP="*/".concat("*"),BS=g.createElement("a");function aP(k){return function(D,B){typeof D!="string"&&(B=D,D="*");var W,q=0,Z=D.toLowerCase().match(Q)||[];if(v(B))for(;W=Z[q++];)W[0]==="+"?(W=W.slice(1)||"*",(k[W]=k[W]||[]).unshift(B)):(k[W]=k[W]||[]).push(B)}}function iP(k,D,B,W){var q={},Z=k===$S;function ae(Le){var xe;return q[Le]=!0,y.each(k[Le]||[],function(He,Ze){var ot=Ze(D,B,W);return typeof ot!="string"||Z||q[ot]?Z?!(xe=ot):void 0:(D.dataTypes.unshift(ot),ae(ot),!1)}),xe}return ae(D.dataTypes[0])||!q["*"]&&ae("*")}function FS(k,D){var B,W,q=y.ajaxSettings.flatOptions||{};for(B in D)D[B]!==void 0&&((q[B]?k:W||(W={}))[B]=D[B]);return W&&y.extend(!0,k,W),k}BS.href=Yv.href,y.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Yv.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Yv.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":rP,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":y.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(k,D){return D?FS(FS(k,y.ajaxSettings),D):FS(y.ajaxSettings,k)},ajaxPrefilter:aP(nP),ajaxTransport:aP($S),ajax:function(k,D){typeof k=="object"&&(D=k,k=void 0),D=D||{};var B,W,q,Z,ae,Le,xe,He,Ze,ot,Ke=y.ajaxSetup({},D),ht=Ke.context||Ke,en=Ke.context&&(ht.nodeType||ht.jquery)?y(ht):y.event,gn=y.Deferred(),mn=y.Callbacks("once memory"),Br=Ke.statusCode||{},ua={},us={},cs="canceled",Nn={readyState:0,getResponseHeader:function(Gn){var Lr;if(xe){if(!Z)for(Z={};Lr=PZ.exec(q);)Z[Lr[1].toLowerCase()+" "]=(Z[Lr[1].toLowerCase()+" "]||[]).concat(Lr[2]);Lr=Z[Gn.toLowerCase()+" "]}return Lr==null?null:Lr.join(", ")},getAllResponseHeaders:function(){return xe?q:null},setRequestHeader:function(Gn,Lr){return xe==null&&(Gn=us[Gn.toLowerCase()]=us[Gn.toLowerCase()]||Gn,ua[Gn]=Lr),this},overrideMimeType:function(Gn){return xe==null&&(Ke.mimeType=Gn),this},statusCode:function(Gn){var Lr;if(Gn)if(xe)Nn.always(Gn[Nn.status]);else for(Lr in Gn)Br[Lr]=[Br[Lr],Gn[Lr]];return this},abort:function(Gn){var Lr=Gn||cs;return B&&B.abort(Lr),mc(0,Lr),this}};if(gn.promise(Nn),Ke.url=((k||Ke.url||Yv.href)+"").replace(OZ,Yv.protocol+"//"),Ke.type=D.method||D.type||Ke.method||Ke.type,Ke.dataTypes=(Ke.dataType||"*").toLowerCase().match(Q)||[""],Ke.crossDomain==null){Le=g.createElement("a");try{Le.href=Ke.url,Le.href=Le.href,Ke.crossDomain=BS.protocol+"//"+BS.host!=Le.protocol+"//"+Le.host}catch{Ke.crossDomain=!0}}if(Ke.data&&Ke.processData&&typeof Ke.data!="string"&&(Ke.data=y.param(Ke.data,Ke.traditional)),iP(nP,Ke,D,Nn),xe)return Nn;for(Ze in(He=y.event&&Ke.global)&&y.active++==0&&y.event.trigger("ajaxStart"),Ke.type=Ke.type.toUpperCase(),Ke.hasContent=!RZ.test(Ke.type),W=Ke.url.replace(DZ,""),Ke.hasContent?Ke.data&&Ke.processData&&(Ke.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(Ke.data=Ke.data.replace(IZ,"+")):(ot=Ke.url.slice(W.length),Ke.data&&(Ke.processData||typeof Ke.data=="string")&&(W+=(OS.test(W)?"&":"?")+Ke.data,delete Ke.data),Ke.cache===!1&&(W=W.replace(LZ,"$1"),ot=(OS.test(W)?"&":"?")+"_="+JL.guid+++ot),Ke.url=W+ot),Ke.ifModified&&(y.lastModified[W]&&Nn.setRequestHeader("If-Modified-Since",y.lastModified[W]),y.etag[W]&&Nn.setRequestHeader("If-None-Match",y.etag[W])),(Ke.data&&Ke.hasContent&&Ke.contentType!==!1||D.contentType)&&Nn.setRequestHeader("Content-Type",Ke.contentType),Nn.setRequestHeader("Accept",Ke.dataTypes[0]&&Ke.accepts[Ke.dataTypes[0]]?Ke.accepts[Ke.dataTypes[0]]+(Ke.dataTypes[0]!=="*"?", "+rP+"; q=0.01":""):Ke.accepts["*"]),Ke.headers)Nn.setRequestHeader(Ze,Ke.headers[Ze]);if(Ke.beforeSend&&(Ke.beforeSend.call(ht,Nn,Ke)===!1||xe))return Nn.abort();if(cs="abort",mn.add(Ke.complete),Nn.done(Ke.success),Nn.fail(Ke.error),B=iP($S,Ke,D,Nn)){if(Nn.readyState=1,He&&en.trigger("ajaxSend",[Nn,Ke]),xe)return Nn;Ke.async&&0<Ke.timeout&&(ae=e.setTimeout(function(){Nn.abort("timeout")},Ke.timeout));try{xe=!1,B.send(ua,mc)}catch(Gn){if(xe)throw Gn;mc(-1,Gn)}}else mc(-1,"No Transport");function mc(Gn,Lr,Xv,zS){var fs,Zv,Ys,Wl,Sd,Hi=Lr;xe||(xe=!0,ae&&e.clearTimeout(ae),B=void 0,q=zS||"",Nn.readyState=0<Gn?4:0,fs=200<=Gn&&Gn<300||Gn===304,Xv&&(Wl=function(ca,qr,Va){for(var Gl,za,ln,Fr,Vr=ca.contents,_r=ca.dataTypes;_r[0]==="*";)_r.shift(),Gl===void 0&&(Gl=ca.mimeType||qr.getResponseHeader("Content-Type"));if(Gl){for(za in Vr)if(Vr[za]&&Vr[za].test(Gl)){_r.unshift(za);break}}if(_r[0]in Va)ln=_r[0];else{for(za in Va){if(!_r[0]||ca.converters[za+" "+_r[0]]){ln=za;break}Fr||(Fr=za)}ln=ln||Fr}if(ln)return ln!==_r[0]&&_r.unshift(ln),Va[ln]}(Ke,Nn,Xv)),!fs&&-1<y.inArray("script",Ke.dataTypes)&&y.inArray("json",Ke.dataTypes)<0&&(Ke.converters["text script"]=function(){}),Wl=function(ca,qr,Va,Gl){var za,ln,Fr,Vr,_r,ds={},Cd=ca.dataTypes.slice();if(Cd[1])for(Fr in ca.converters)ds[Fr.toLowerCase()]=ca.converters[Fr];for(ln=Cd.shift();ln;)if(ca.responseFields[ln]&&(Va[ca.responseFields[ln]]=qr),!_r&&Gl&&ca.dataFilter&&(qr=ca.dataFilter(qr,ca.dataType)),_r=ln,ln=Cd.shift()){if(ln==="*")ln=_r;else if(_r!=="*"&&_r!==ln){if(!(Fr=ds[_r+" "+ln]||ds["* "+ln])){for(za in ds)if((Vr=za.split(" "))[1]===ln&&(Fr=ds[_r+" "+Vr[0]]||ds["* "+Vr[0]])){Fr===!0?Fr=ds[za]:ds[za]!==!0&&(ln=Vr[0],Cd.unshift(Vr[1]));break}}if(Fr!==!0)if(Fr&&ca.throws)qr=Fr(qr);else try{qr=Fr(qr)}catch(Uy){return{state:"parsererror",error:Fr?Uy:"No conversion from "+_r+" to "+ln}}}}return{state:"success",data:qr}}(Ke,Wl,Nn,fs),fs?(Ke.ifModified&&((Sd=Nn.getResponseHeader("Last-Modified"))&&(y.lastModified[W]=Sd),(Sd=Nn.getResponseHeader("etag"))&&(y.etag[W]=Sd)),Gn===204||Ke.type==="HEAD"?Hi="nocontent":Gn===304?Hi="notmodified":(Hi=Wl.state,Zv=Wl.data,fs=!(Ys=Wl.error))):(Ys=Hi,!Gn&&Hi||(Hi="error",Gn<0&&(Gn=0))),Nn.status=Gn,Nn.statusText=(Lr||Hi)+"",fs?gn.resolveWith(ht,[Zv,Hi,Nn]):gn.rejectWith(ht,[Nn,Hi,Ys]),Nn.statusCode(Br),Br=void 0,He&&en.trigger(fs?"ajaxSuccess":"ajaxError",[Nn,Ke,fs?Zv:Ys]),mn.fireWith(ht,[Nn,Hi]),He&&(en.trigger("ajaxComplete",[Nn,Ke]),--y.active||y.event.trigger("ajaxStop")))}return Nn},getJSON:function(k,D,B){return y.get(k,D,B,"json")},getScript:function(k,D){return y.get(k,void 0,D,"script")}}),y.each(["get","post"],function(k,D){y[D]=function(B,W,q,Z){return v(W)&&(Z=Z||q,q=W,W=void 0),y.ajax(y.extend({url:B,type:D,dataType:Z,data:W,success:q},y.isPlainObject(B)&&B))}}),y.ajaxPrefilter(function(k){var D;for(D in k.headers)D.toLowerCase()==="content-type"&&(k.contentType=k.headers[D]||"")}),y._evalUrl=function(k,D,B){return y.ajax({url:k,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(W){y.globalEval(W,D,B)}})},y.fn.extend({wrapAll:function(k){var D;return this[0]&&(v(k)&&(k=k.call(this[0])),D=y(k,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&D.insertBefore(this[0]),D.map(function(){for(var B=this;B.firstElementChild;)B=B.firstElementChild;return B}).append(this)),this},wrapInner:function(k){return v(k)?this.each(function(D){y(this).wrapInner(k.call(this,D))}):this.each(function(){var D=y(this),B=D.contents();B.length?B.wrapAll(k):D.append(k)})},wrap:function(k){var D=v(k);return this.each(function(B){y(this).wrapAll(D?k.call(this,B):k)})},unwrap:function(k){return this.parent(k).not("body").each(function(){y(this).replaceWith(this.childNodes)}),this}}),y.expr.pseudos.hidden=function(k){return!y.expr.pseudos.visible(k)},y.expr.pseudos.visible=function(k){return!!(k.offsetWidth||k.offsetHeight||k.getClientRects().length)},y.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var NZ={0:200,1223:204},qv=y.ajaxSettings.xhr();h.cors=!!qv&&"withCredentials"in qv,h.ajax=qv=!!qv,y.ajaxTransport(function(k){var D,B;if(h.cors||qv&&!k.crossDomain)return{send:function(W,q){var Z,ae=k.xhr();if(ae.open(k.type,k.url,k.async,k.username,k.password),k.xhrFields)for(Z in k.xhrFields)ae[Z]=k.xhrFields[Z];for(Z in k.mimeType&&ae.overrideMimeType&&ae.overrideMimeType(k.mimeType),k.crossDomain||W["X-Requested-With"]||(W["X-Requested-With"]="XMLHttpRequest"),W)ae.setRequestHeader(Z,W[Z]);D=function(Le){return function(){D&&(D=B=ae.onload=ae.onerror=ae.onabort=ae.ontimeout=ae.onreadystatechange=null,Le==="abort"?ae.abort():Le==="error"?typeof ae.status!="number"?q(0,"error"):q(ae.status,ae.statusText):q(NZ[ae.status]||ae.status,ae.statusText,(ae.responseType||"text")!=="text"||typeof ae.responseText!="string"?{binary:ae.response}:{text:ae.responseText},ae.getAllResponseHeaders()))}},ae.onload=D(),B=ae.onerror=ae.ontimeout=D("error"),ae.onabort!==void 0?ae.onabort=B:ae.onreadystatechange=function(){ae.readyState===4&&e.setTimeout(function(){D&&B()})},D=D("abort");try{ae.send(k.hasContent&&k.data||null)}catch(Le){if(D)throw Le}},abort:function(){D&&D()}}}),y.ajaxPrefilter(function(k){k.crossDomain&&(k.contents.script=!1)}),y.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(k){return y.globalEval(k),k}}}),y.ajaxPrefilter("script",function(k){k.cache===void 0&&(k.cache=!1),k.crossDomain&&(k.type="GET")}),y.ajaxTransport("script",function(k){var D,B;if(k.crossDomain||k.scriptAttrs)return{send:function(W,q){D=y("<script>").attr(k.scriptAttrs||{}).prop({charset:k.scriptCharset,src:k.url}).on("load error",B=function(Z){D.remove(),B=null,Z&&q(Z.type==="error"?404:200,Z.type)}),g.head.appendChild(D[0])},abort:function(){B&&B()}}});var oP,sP=[],VS=/(=)\?(?=&|$)|\?\?/;y.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var k=sP.pop()||y.expando+"_"+JL.guid++;return this[k]=!0,k}}),y.ajaxPrefilter("json jsonp",function(k,D,B){var W,q,Z,ae=k.jsonp!==!1&&(VS.test(k.url)?"url":typeof k.data=="string"&&(k.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&VS.test(k.data)&&"data");if(ae||k.dataTypes[0]==="jsonp")return W=k.jsonpCallback=v(k.jsonpCallback)?k.jsonpCallback():k.jsonpCallback,ae?k[ae]=k[ae].replace(VS,"$1"+W):k.jsonp!==!1&&(k.url+=(OS.test(k.url)?"&":"?")+k.jsonp+"="+W),k.converters["script json"]=function(){return Z||y.error(W+" was not called"),Z[0]},k.dataTypes[0]="json",q=e[W],e[W]=function(){Z=arguments},B.always(function(){q===void 0?y(e).removeProp(W):e[W]=q,k[W]&&(k.jsonpCallback=D.jsonpCallback,sP.push(W)),Z&&v(q)&&q(Z[0]),Z=q=void 0}),"script"}),h.createHTMLDocument=((oP=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",oP.childNodes.length===2),y.parseHTML=function(k,D,B){return typeof k!="string"?[]:(typeof D=="boolean"&&(B=D,D=!1),D||(h.createHTMLDocument?((W=(D=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,D.head.appendChild(W)):D=g),Z=!B&&[],(q=j.exec(k))?[D.createElement(q[1])]:(q=it([k],D,Z),Z&&Z.length&&y(Z).remove(),y.merge([],q.childNodes)));var W,q,Z},y.fn.load=function(k,D,B){var W,q,Z,ae=this,Le=k.indexOf(" ");return-1<Le&&(W=pc(k.slice(Le)),k=k.slice(0,Le)),v(D)?(B=D,D=void 0):D&&typeof D=="object"&&(q="POST"),0<ae.length&&y.ajax({url:k,type:q||"GET",dataType:"html",data:D}).done(function(xe){Z=arguments,ae.html(W?y("<div>").append(y.parseHTML(xe)).find(W):xe)}).always(B&&function(xe,He){ae.each(function(){B.apply(this,Z||[xe.responseText,He,xe])})}),this},y.expr.pseudos.animated=function(k){return y.grep(y.timers,function(D){return k===D.elem}).length},y.offset={setOffset:function(k,D,B){var W,q,Z,ae,Le,xe,He=y.css(k,"position"),Ze=y(k),ot={};He==="static"&&(k.style.position="relative"),Le=Ze.offset(),Z=y.css(k,"top"),xe=y.css(k,"left"),(He==="absolute"||He==="fixed")&&-1<(Z+xe).indexOf("auto")?(ae=(W=Ze.position()).top,q=W.left):(ae=parseFloat(Z)||0,q=parseFloat(xe)||0),v(D)&&(D=D.call(k,B,y.extend({},Le))),D.top!=null&&(ot.top=D.top-Le.top+ae),D.left!=null&&(ot.left=D.left-Le.left+q),"using"in D?D.using.call(k,ot):Ze.css(ot)}},y.fn.extend({offset:function(k){if(arguments.length)return k===void 0?this:this.each(function(q){y.offset.setOffset(this,k,q)});var D,B,W=this[0];return W?W.getClientRects().length?(D=W.getBoundingClientRect(),B=W.ownerDocument.defaultView,{top:D.top+B.pageYOffset,left:D.left+B.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var k,D,B,W=this[0],q={top:0,left:0};if(y.css(W,"position")==="fixed")D=W.getBoundingClientRect();else{for(D=this.offset(),B=W.ownerDocument,k=W.offsetParent||B.documentElement;k&&(k===B.body||k===B.documentElement)&&y.css(k,"position")==="static";)k=k.parentNode;k&&k!==W&&k.nodeType===1&&((q=y(k).offset()).top+=y.css(k,"borderTopWidth",!0),q.left+=y.css(k,"borderLeftWidth",!0))}return{top:D.top-q.top-y.css(W,"marginTop",!0),left:D.left-q.left-y.css(W,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var k=this.offsetParent;k&&y.css(k,"position")==="static";)k=k.offsetParent;return k||lt})}}),y.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(k,D){var B=D==="pageYOffset";y.fn[k]=function(W){return De(this,function(q,Z,ae){var Le;if(p(q)?Le=q:q.nodeType===9&&(Le=q.defaultView),ae===void 0)return Le?Le[D]:q[Z];Le?Le.scrollTo(B?Le.pageXOffset:ae,B?ae:Le.pageYOffset):q[Z]=ae},k,W,arguments.length)}}),y.each(["top","left"],function(k,D){y.cssHooks[D]=Gv(h.pixelPosition,function(B,W){if(W)return W=Hl(B,D),Vl.test(W)?y(B).position()[D]+"px":W})}),y.each({Height:"height",Width:"width"},function(k,D){y.each({padding:"inner"+k,content:D,"":"outer"+k},function(B,W){y.fn[W]=function(q,Z){var ae=arguments.length&&(B||typeof q!="boolean"),Le=B||(q===!0||Z===!0?"margin":"border");return De(this,function(xe,He,Ze){var ot;return p(xe)?W.indexOf("outer")===0?xe["inner"+k]:xe.document.documentElement["client"+k]:xe.nodeType===9?(ot=xe.documentElement,Math.max(xe.body["scroll"+k],ot["scroll"+k],xe.body["offset"+k],ot["offset"+k],ot["client"+k])):Ze===void 0?y.css(xe,He,Le):y.style(xe,He,Ze,Le)},D,ae?q:void 0,ae)}})}),y.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(k,D){y.fn[D]=function(B){return this.on(D,B)}}),y.fn.extend({bind:function(k,D,B){return this.on(k,null,D,B)},unbind:function(k,D){return this.off(k,null,D)},delegate:function(k,D,B,W){return this.on(D,k,B,W)},undelegate:function(k,D,B){return arguments.length===1?this.off(k,"**"):this.off(D,k||"**",B)},hover:function(k,D){return this.on("mouseenter",k).on("mouseleave",D||k)}}),y.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(k,D){y.fn[D]=function(B,W){return 0<arguments.length?this.on(D,null,B,W):this.trigger(D)}});var $Z=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;y.proxy=function(k,D){var B,W,q;if(typeof D=="string"&&(B=k[D],D=k,k=B),v(k))return W=a.call(arguments,2),(q=function(){return k.apply(D||this,W.concat(a.call(arguments)))}).guid=k.guid=k.guid||y.guid++,q},y.holdReady=function(k){k?y.readyWait++:y.ready(!0)},y.isArray=Array.isArray,y.parseJSON=JSON.parse,y.nodeName=T,y.isFunction=v,y.isWindow=p,y.camelCase=we,y.type=w,y.now=Date.now,y.isNumeric=function(k){var D=y.type(k);return(D==="number"||D==="string")&&!isNaN(k-parseFloat(k))},y.trim=function(k){return k==null?"":(k+"").replace($Z,"$1")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return y});var BZ=e.jQuery,FZ=e.$;return y.noConflict=function(k){return e.$===y&&(e.$=FZ),k&&e.jQuery===y&&(e.jQuery=BZ),y},typeof t>"u"&&(e.jQuery=e.$=y),y});(function(e,t){var n,r={},a=function(c,f){var d,h,v;if(typeof c=="string")return s(c);for(d=[],h=c.length,v=0;h>v;v++)d.push(s(c[v]));return f.apply(null,d)},i=function(c,f,d){arguments.length===2&&(d=f,f=null),a(f||[],function(){o(c,d,arguments)})},o=function(c,f,d){var h,v={exports:f};typeof f=="function"&&(d.length||(d=[a,v.exports,v]),h=f.apply(null,d),h!==void 0&&(v.exports=h)),r[c]=v.exports},s=function(c){var f=r[c]||e[c];if(!f)throw new Error("`"+c+"` is undefined");return f},l=function(c){var f,d,h,v,p,g;g=function(m){return m&&m.charAt(0).toUpperCase()+m.substr(1)};for(f in r)if(d=c,r.hasOwnProperty(f)){for(h=f.split("/"),p=g(h.pop());v=g(h.shift());)d[v]=d[v]||{},d=d[v];d[p]=r[f]}return c},u=function(c){return e.__dollar=c,l(t(e,i,a))};typeof module=="object"&&typeof module.exports=="object"?module.exports=u():typeof define=="function"&&define.amd?define(["jquery"],u):(n=e.WebUploader,e.WebUploader=u(),e.WebUploader.noConflict=function(){e.WebUploader=n})})(window,function(e,t,n){return t("dollar-third",[],function(){var r=e.require,a=e.__dollar||e.jQuery||e.Zepto||r("jquery")||r("zepto");if(!a)throw new Error("jQuery or Zepto not found!");return a}),t("dollar",["dollar-third"],function(r){return r}),t("promise-third",["dollar"],function(r){return{Deferred:r.Deferred,when:r.when,isPromise:function(a){return a&&typeof a.then=="function"}}}),t("promise",["promise-third"],function(r){return r}),t("base",["dollar","promise"],function(r,a){function i(c){return function(){return u.apply(c,arguments)}}function o(c,f){return function(){return c.apply(f,arguments)}}function s(c){var f;return Object.create?Object.create(c):(f=function(){},f.prototype=c,new f)}var l=function(){},u=Function.call;return{version:"0.1.8-alpha",$:r,Deferred:a.Deferred,isPromise:a.isPromise,when:a.when,browser:function(c){var f={},d=c.match(/WebKit\/([\d.]+)/),h=c.match(/Chrome\/([\d.]+)/)||c.match(/CriOS\/([\d.]+)/),v=c.match(/MSIE\s([\d\.]+)/)||c.match(/(?:trident)(?:.*rv:([\w.]+))?/i),p=c.match(/Firefox\/([\d.]+)/),g=c.match(/Safari\/([\d.]+)/),m=c.match(/OPR\/([\d.]+)/);return d&&(f.webkit=parseFloat(d[1])),h&&(f.chrome=parseFloat(h[1])),v&&(f.ie=parseFloat(v[1])),p&&(f.firefox=parseFloat(p[1])),g&&(f.safari=parseFloat(g[1])),m&&(f.opera=parseFloat(m[1])),f}(navigator.userAgent),os:function(c){var f={},d=c.match(/(?:Android);?[\s\/]+([\d.]+)?/),h=c.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);return d&&(f.android=parseFloat(d[1])),h&&(f.ios=parseFloat(h[1].replace(/_/g,"."))),f}(navigator.userAgent),inherits:function(c,f,d){var h;return typeof f=="function"?(h=f,f=null):h=f&&f.hasOwnProperty("constructor")?f.constructor:function(){return c.apply(this,arguments)},r.extend(!0,h,c,d||{}),h.__super__=c.prototype,h.prototype=s(c.prototype),f&&r.extend(!0,h.prototype,f),h},noop:l,bindFn:o,log:function(){return e.console?o(console.log,console):l}(),nextTick:function(){return function(c){setTimeout(c,1)}}(),slice:i([].slice),guid:function(){var c=0;return function(f){for(var d=(+new Date).toString(32),h=0;5>h;h++)d+=Math.floor(65535*Math.random()).toString(32);return(f||"wu_")+d+(c++).toString(32)}}(),formatSize:function(c,f,d){var h;for(d=d||["B","K","M","G","TB"];(h=d.shift())&&c>1024;)c/=1024;return(h==="B"?c:c.toFixed(f||2))+h}}}),t("mediator",["base"],function(r){function a(f,d,h,v){return l.grep(f,function(p){return!(!p||d&&p.e!==d||h&&p.cb!==h&&p.cb._cb!==h||v&&p.ctx!==v)})}function i(f,d,h){l.each((f||"").split(c),function(v,p){h(p,d)})}function o(f,d){for(var h,v=!1,p=-1,g=f.length;++p<g;)if(h=f[p],h.cb.apply(h.ctx2,d)===!1){v=!0;break}return!v}var s,l=r.$,u=[].slice,c=/\s+/;return s={on:function(f,d,h){var v,p=this;return d?(v=this._events||(this._events=[]),i(f,d,function(g,m){var b={e:g};b.cb=m,b.ctx=h,b.ctx2=h||p,b.id=v.length,v.push(b)}),this):this},once:function(f,d,h){var v=this;return d&&i(f,d,function(p,g){var m=function(){return v.off(p,m),g.apply(h||v,arguments)};m._cb=g,v.on(p,m,h)}),v},off:function(f,d,h){var v=this._events;return v?f||d||h?(i(f,d,function(p,g){l.each(a(v,p,g,h),function(){delete v[this.id]})}),this):(this._events=[],this):this},trigger:function(f){var d,h,v;return this._events&&f?(d=u.call(arguments,1),h=a(this._events,f),v=a(this._events,"all"),o(h,d)&&o(v,arguments)):this}},l.extend({installTo:function(f){return l.extend(f,s)}},s)}),t("uploader",["base","mediator"],function(r,a){function i(s){this.options=o.extend(!0,{},i.options,s),this._init(this.options)}var o=r.$;return i.options={},a.installTo(i.prototype),o.each({upload:"start-upload",stop:"stop-upload",getFile:"get-file",getFiles:"get-files",addFile:"add-file",addFiles:"add-file",sort:"sort-files",removeFile:"remove-file",cancelFile:"cancel-file",skipFile:"skip-file",retry:"retry",isInProgress:"is-in-progress",makeThumb:"make-thumb",md5File:"md5-file",getDimension:"get-dimension",addButton:"add-btn",predictRuntimeType:"predict-runtime-type",refresh:"refresh",disable:"disable",enable:"enable",reset:"reset"},function(s,l){i.prototype[s]=function(){return this.request(l,arguments)}}),o.extend(i.prototype,{state:"pending",_init:function(s){var l=this;l.request("init",s,function(){l.state="ready",l.trigger("ready")})},option:function(s,l){var u=this.options;return arguments.length>1?(o.isPlainObject(l)&&o.isPlainObject(u[s])?o.extend(u[s],l):u[s]=l,void 0):s?u[s]:u},getStats:function(){var s=this.request("get-stats");return s?{successNum:s.numOfSuccess,progressNum:s.numOfProgress,cancelNum:s.numOfCancel,invalidNum:s.numOfInvalid,uploadFailNum:s.numOfUploadFailed,queueNum:s.numOfQueue,interruptNum:s.numOfInterrupt}:{}},trigger:function(s){var l=[].slice.call(arguments,1),u=this.options,c="on"+s.substring(0,1).toUpperCase()+s.substring(1);return!(a.trigger.apply(this,arguments)===!1||o.isFunction(u[c])&&u[c].apply(this,l)===!1||o.isFunction(this[c])&&this[c].apply(this,l)===!1||a.trigger.apply(a,[this,s].concat(l))===!1)},destroy:function(){this.request("destroy",arguments),this.off()},request:r.noop}),r.create=i.create=function(s){return new i(s)},r.Uploader=i,i}),t("runtime/runtime",["base","mediator"],function(r,a){function i(u){this.options=o.extend({container:document.body},u),this.uid=r.guid("rt_")}var o=r.$,s={},l=function(u){for(var c in u)if(u.hasOwnProperty(c))return c;return null};return o.extend(i.prototype,{getContainer:function(){var u,c,f=this.options;return this._container?this._container:(u=o(f.container||document.body),c=o(document.createElement("div")),c.attr("id","rt_"+this.uid),c.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"}),u.append(c),u.addClass("webuploader-container"),this._container=c,this._parent=u,c)},init:r.noop,exec:r.noop,destroy:function(){this._container&&this._container.remove(),this._parent&&this._parent.removeClass("webuploader-container"),this.off()}}),i.orders="html5,flash",i.addRuntime=function(u,c){s[u]=c},i.hasRuntime=function(u){return!!(u?s[u]:l(s))},i.create=function(u,c){var f;if(c=c||i.orders,o.each(c.split(/\s*,\s*/g),function(){return s[this]?(f=this,!1):void 0}),f=f||l(s),!f)throw new Error("Runtime Error");return new s[f](u)},a.installTo(i.prototype),i}),t("runtime/client",["base","mediator","runtime/runtime"],function(r,a,i){function o(l,u){var c,f=r.Deferred();this.uid=r.guid("client_"),this.runtimeReady=function(d){return f.done(d)},this.connectRuntime=function(d,h){if(c)throw new Error("already connected!");return f.done(h),typeof d=="string"&&s.get(d)&&(c=s.get(d)),c=c||s.get(null,u),c?(r.$.extend(c.options,d),c.__promise.then(f.resolve),c.__client++):(c=i.create(d,d.runtimeOrder),c.__promise=f.promise(),c.once("ready",f.resolve),c.init(),s.add(c),c.__client=1),u&&(c.__standalone=u),c},this.getRuntime=function(){return c},this.disconnectRuntime=function(){c&&(c.__client--,c.__client<=0&&(s.remove(c),delete c.__promise,c.destroy()),c=null)},this.exec=function(){if(c){var d=r.slice(arguments);return l&&d.unshift(l),c.exec.apply(this,d)}},this.getRuid=function(){return c&&c.uid},this.destroy=function(d){return function(){d&&d.apply(this,arguments),this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()}}(this.destroy)}var s;return s=function(){var l={};return{add:function(u){l[u.uid]=u},get:function(u,c){var f;if(u)return l[u];for(f in l)if(!c||!l[f].__standalone)return l[f];return null},remove:function(u){delete l[u.uid]}}}(),a.installTo(o.prototype),o}),t("lib/dnd",["base","mediator","runtime/client"],function(r,a,i){function o(l){l=this.options=s.extend({},o.options,l),l.container=s(l.container),l.container.length&&i.call(this,"DragAndDrop")}var s=r.$;return o.options={accept:null,disableGlobalDnd:!1},r.inherits(i,{constructor:o,init:function(){var l=this;l.connectRuntime(l.options,function(){l.exec("init"),l.trigger("ready")})}}),a.installTo(o.prototype),o}),t("widgets/widget",["base","uploader"],function(r,a){function i(d){if(!d)return!1;var h=d.length,v=s.type(d);return d.nodeType===1&&h?!0:v==="array"||v!=="function"&&v!=="string"&&(h===0||typeof h=="number"&&h>0&&h-1 in d)}function o(d){this.owner=d,this.options=d.options}var s=r.$,l=a.prototype._init,u=a.prototype.destroy,c={},f=[];return s.extend(o.prototype,{init:r.noop,invoke:function(d,h){var v=this.responseMap;return v&&d in v&&v[d]in this&&s.isFunction(this[v[d]])?this[v[d]].apply(this,h):c},request:function(){return this.owner.request.apply(this.owner,arguments)}}),s.extend(a.prototype,{_init:function(){var d=this,h=d._widgets=[],v=d.options.disableWidgets||"";return s.each(f,function(p,g){(!v||!~v.indexOf(g._name))&&h.push(new g(d))}),l.apply(d,arguments)},request:function(d,h,v){var p,g,m,b,w=0,S=this._widgets,C=S&&S.length,y=[],x=[];for(h=i(h)?h:[h];C>w;w++)p=S[w],g=p.invoke(d,h),g!==c&&(r.isPromise(g)?x.push(g):y.push(g));return v||x.length?(m=r.when.apply(r,x),b=m.pipe?"pipe":"then",m[b](function(){var T=r.Deferred(),A=arguments;return A.length===1&&(A=A[0]),setTimeout(function(){T.resolve(A)},1),T.promise()})[v?b:"done"](v||r.noop)):y[0]},destroy:function(){u.apply(this,arguments),this._widgets=null}}),a.register=o.register=function(d,h){var v,p={init:"init",destroy:"destroy",name:"anonymous"};return arguments.length===1?(h=d,s.each(h,function(g){return g[0]==="_"||g==="name"?(g==="name"&&(p.name=h.name),void 0):(p[g.replace(/[A-Z]/g,"-$&").toLowerCase()]=g,void 0)})):p=s.extend(p,d),h.responseMap=p,v=r.inherits(o,h),v._name=p.name,f.push(v),v},a.unRegister=o.unRegister=function(d){if(d&&d!=="anonymous")for(var h=f.length;h--;)f[h]._name===d&&f.splice(h,1)},o}),t("widgets/filednd",["base","uploader","lib/dnd","widgets/widget"],function(r,a,i){var o=r.$;return a.options.dnd="",a.register({name:"dnd",init:function(s){if(s.dnd&&this.request("predict-runtime-type")==="html5"){var l,u=this,c=r.Deferred(),f=o.extend({},{disableGlobalDnd:s.disableGlobalDnd,container:s.dnd,accept:s.accept});return this.dnd=l=new i(f),l.once("ready",c.resolve),l.on("drop",function(d){u.request("add-file",[d])}),l.on("accept",function(d){return u.owner.trigger("dndAccept",d)}),l.init(),c.promise()}},destroy:function(){this.dnd&&this.dnd.destroy()}})}),t("lib/filepaste",["base","mediator","runtime/client"],function(r,a,i){function o(l){l=this.options=s.extend({},l),l.container=s(l.container||document.body),i.call(this,"FilePaste")}var s=r.$;return r.inherits(i,{constructor:o,init:function(){var l=this;l.connectRuntime(l.options,function(){l.exec("init"),l.trigger("ready")})}}),a.installTo(o.prototype),o}),t("widgets/filepaste",["base","uploader","lib/filepaste","widgets/widget"],function(r,a,i){var o=r.$;return a.register({name:"paste",init:function(s){if(s.paste&&this.request("predict-runtime-type")==="html5"){var l,u=this,c=r.Deferred(),f=o.extend({},{container:s.paste,accept:s.accept});return this.paste=l=new i(f),l.once("ready",c.resolve),l.on("paste",function(d){u.owner.request("add-file",[d])}),l.init(),c.promise()}},destroy:function(){this.paste&&this.paste.destroy()}})}),t("lib/blob",["base","runtime/client"],function(r,a){function i(o,s){var l=this;l.source=s,l.ruid=o,this.size=s.size||0,this.type=!s.type&&this.ext&&~"jpg,jpeg,png,gif,bmp".indexOf(this.ext)?"image/"+(this.ext==="jpg"?"jpeg":this.ext):s.type||"application/octet-stream",a.call(l,"Blob"),this.uid=s.uid||this.uid,o&&l.connectRuntime(o)}return r.inherits(a,{constructor:i,slice:function(o,s){return this.exec("slice",o,s)},getSource:function(){return this.source}}),i}),t("lib/file",["base","lib/blob"],function(r,a){function i(l,u){var c;this.name=u.name||"untitled"+o++,c=s.exec(u.name)?RegExp.$1.toLowerCase():"",!c&&u.type&&(c=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(u.type)?RegExp.$1.toLowerCase():"",this.name+="."+c),this.ext=c,this.lastModifiedDate=u.lastModifiedDate||u.lastModified&&new Date(u.lastModified).toLocaleString()||new Date().toLocaleString(),a.apply(this,arguments)}var o=1,s=/\.([^.]+)$/;return r.inherits(a,i)}),t("lib/filepicker",["base","runtime/client","lib/file"],function(r,a,i){function o(l){if(l=this.options=s.extend({},o.options,l),l.container=s(l.id),!l.container.length)throw new Error("按钮指定错误");l.innerHTML=l.innerHTML||l.label||l.container.html()||"",l.button=s(l.button||document.createElement("div")),l.button.html(l.innerHTML),l.container.html(l.button),a.call(this,"FilePicker",!0)}var s=r.$;return o.options={button:null,container:null,label:null,innerHTML:null,multiple:!0,accept:null,name:"file",style:"webuploader-pick"},r.inherits(a,{constructor:o,init:function(){var l=this,u=l.options,c=u.button,f=u.style;f&&c.addClass("webuploader-pick"),l.on("all",function(d){var h;switch(d){case"mouseenter":f&&c.addClass("webuploader-pick-hover");break;case"mouseleave":f&&c.removeClass("webuploader-pick-hover");break;case"change":h=l.exec("getFiles"),l.trigger("select",s.map(h,function(v){return v=new i(l.getRuid(),v),v._refer=u.container,v}),u.container)}}),l.connectRuntime(u,function(){l.refresh(),l.exec("init",u),l.trigger("ready")}),this._resizeHandler=r.bindFn(this.refresh,this),s(e).on("resize",this._resizeHandler)},refresh:function(){var l=this.getRuntime().getContainer(),u=this.options.button,c=u[0]&&u[0].offsetWidth||u.outerWidth()||u.width(),f=u[0]&&u[0].offsetHeight||u.outerHeight()||u.height(),d=u.offset();c&&f&&l.css({bottom:"auto",right:"auto",width:c+"px",height:f+"px"}).offset(d)},enable:function(){var l=this.options.button;l.removeClass("webuploader-pick-disable"),this.refresh()},disable:function(){var l=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"}),l.addClass("webuploader-pick-disable")},destroy:function(){var l=this.options.button;s(e).off("resize",this._resizeHandler),l.removeClass("webuploader-pick-disable webuploader-pick-hover webuploader-pick")}}),o}),t("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(r,a,i){var o=r.$;return o.extend(a.options,{pick:null,accept:null}),a.register({name:"picker",init:function(s){return this.pickers=[],s.pick&&this.addBtn(s.pick)},refresh:function(){o.each(this.pickers,function(){this.refresh()})},addBtn:function(s){var l=this,u=l.options,c=u.accept,f=[];if(s)return o.isPlainObject(s)||(s={id:s}),o(s.id).each(function(){var d,h,v;v=r.Deferred(),d=o.extend({},s,{accept:o.isPlainObject(c)?[c]:c,swf:u.swf,runtimeOrder:u.runtimeOrder,id:this}),h=new i(d),h.once("ready",v.resolve),h.on("select",function(p){l.owner.request("add-file",[p])}),h.on("dialogopen",function(){l.owner.trigger("dialogOpen",h.button)}),h.init(),l.pickers.push(h),f.push(v.promise())}),r.when.apply(r,f)},disable:function(){o.each(this.pickers,function(){this.disable()})},enable:function(){o.each(this.pickers,function(){this.enable()})},destroy:function(){o.each(this.pickers,function(){this.destroy()}),this.pickers=null}})}),t("lib/image",["base","runtime/client","lib/blob"],function(r,a,i){function o(l){this.options=s.extend({},o.options,l),a.call(this,"Image"),this.on("load",function(){this._info=this.exec("info"),this._meta=this.exec("meta")})}var s=r.$;return o.options={quality:90,crop:!1,preserveHeaders:!1,allowMagnify:!1},r.inherits(a,{constructor:o,info:function(l){return l?(this._info=l,this):this._info},meta:function(l){return l?(this._meta=l,this):this._meta},loadFromBlob:function(l){var u=this,c=l.getRuid();this.connectRuntime(c,function(){u.exec("init",u.options),u.exec("loadFromBlob",l)})},resize:function(){var l=r.slice(arguments);return this.exec.apply(this,["resize"].concat(l))},crop:function(){var l=r.slice(arguments);return this.exec.apply(this,["crop"].concat(l))},getAsDataUrl:function(l){return this.exec("getAsDataUrl",l)},getAsBlob:function(l){var u=this.exec("getAsBlob",l);return new i(this.getRuid(),u)}}),o}),t("widgets/image",["base","uploader","lib/image","widgets/widget"],function(r,a,i){var o,s=r.$;return o=function(l){var u=0,c=[],f=function(){for(var d;c.length&&l>u;)d=c.shift(),u+=d[0],d[1]()};return function(d,h,v){c.push([h,v]),d.once("destroy",function(){u-=h,setTimeout(f,1)}),setTimeout(f,1)}}(5242880),s.extend(a.options,{thumb:{width:110,height:110,quality:70,allowMagnify:!0,crop:!0,preserveHeaders:!1,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:!1,crop:!1,preserveHeaders:!0}}),a.register({name:"image",makeThumb:function(l,u,c,f){var d,h;return l=this.request("get-file",l),l.type.match(/^image/)?(d=s.extend({},this.options.thumb),s.isPlainObject(c)&&(d=s.extend(d,c),c=null),c=c||d.width,f=f||d.height,h=new i(d),h.once("load",function(){l._info=l._info||h.info(),l._meta=l._meta||h.meta(),1>=c&&c>0&&(c=l._info.width*c),1>=f&&f>0&&(f=l._info.height*f),h.resize(c,f)}),h.once("complete",function(){u(!1,h.getAsDataUrl(d.type)),h.destroy()}),h.once("error",function(v){u(v||!0),h.destroy()}),o(h,l.source.size,function(){l._info&&h.info(l._info),l._meta&&h.meta(l._meta),h.loadFromBlob(l.source)}),void 0):(u(!0),void 0)},beforeSendFile:function(l){var u,c,f=this.options.compress||this.options.resize,d=f&&f.compressSize||0,h=f&&f.noCompressIfLarger||!1;return l=this.request("get-file",l),!f||!~"image/jpeg,image/jpg".indexOf(l.type)||l.size<d||l._compressed?void 0:(f=s.extend({},f),c=r.Deferred(),u=new i(f),c.always(function(){u.destroy(),u=null}),u.once("error",c.reject),u.once("load",function(){var v=f.width,p=f.height;l._info=l._info||u.info(),l._meta=l._meta||u.meta(),1>=v&&v>0&&(v=l._info.width*v),1>=p&&p>0&&(p=l._info.height*p),u.resize(v,p)}),u.once("complete",function(){var v,p;try{v=u.getAsBlob(f.type),p=l.size,(!h||v.size<p)&&(l.source=v,l.size=v.size,l.trigger("resize",v.size,p)),l._compressed=!0,c.resolve()}catch{c.resolve()}}),l._info&&u.info(l._info),l._meta&&u.meta(l._meta),u.loadFromBlob(l.source),c.promise())}})}),t("file",["base","mediator"],function(r,a){function i(){return l+u++}function o(d){this.name=d.name||"Untitled",this.size=d.size||0,this.type=d.type||"application/octet-stream",this.lastModifiedDate=d.lastModifiedDate||1*new Date,this.id=i(),this.ext=c.exec(this.name)?RegExp.$1:"",this.statusText="",f[this.id]=o.Status.INITED,this.source=d,this.loaded=0,this.on("error",function(h){this.setStatus(o.Status.ERROR,h)})}var s=r.$,l="WU_FILE_",u=0,c=/\.([^.]+)$/,f={};return s.extend(o.prototype,{setStatus:function(d,h){var v=f[this.id];typeof h<"u"&&(this.statusText=h),d!==v&&(f[this.id]=d,this.trigger("statuschange",d,v))},getStatus:function(){return f[this.id]},getSource:function(){return this.source},destroy:function(){this.off(),delete f[this.id]}}),a.installTo(o.prototype),o.Status={INITED:"inited",QUEUED:"queued",PROGRESS:"progress",ERROR:"error",COMPLETE:"complete",CANCELLED:"cancelled",INTERRUPT:"interrupt",INVALID:"invalid"},o}),t("queue",["base","mediator","file"],function(r,a,i){function o(){this.stats={numOfQueue:0,numOfSuccess:0,numOfCancel:0,numOfProgress:0,numOfUploadFailed:0,numOfInvalid:0,numOfDeleted:0,numOfInterrupt:0},this._queue=[],this._map={}}var s=r.$,l=i.Status;return s.extend(o.prototype,{append:function(u){return this._queue.push(u),this._fileAdded(u),this},prepend:function(u){return this._queue.unshift(u),this._fileAdded(u),this},getFile:function(u){return typeof u!="string"?u:this._map[u]},fetch:function(u){var c,f,d=this._queue.length;for(u=u||l.QUEUED,c=0;d>c;c++)if(f=this._queue[c],u===f.getStatus())return f;return null},sort:function(u){typeof u=="function"&&this._queue.sort(u)},getFiles:function(){for(var u,c=[].slice.call(arguments,0),f=[],d=0,h=this._queue.length;h>d;d++)u=this._queue[d],(!c.length||~s.inArray(u.getStatus(),c))&&f.push(u);return f},removeFile:function(u){var c=this._map[u.id];c&&(delete this._map[u.id],this._delFile(u),u.destroy(),this.stats.numOfDeleted++)},_fileAdded:function(u){var c=this,f=this._map[u.id];f||(this._map[u.id]=u,u.on("statuschange",function(d,h){c._onFileStatusChange(d,h)}))},_delFile:function(u){for(var c=this._queue.length-1;c>=0;c--)if(this._queue[c]==u){this._queue.splice(c,1);break}},_onFileStatusChange:function(u,c){var f=this.stats;switch(c){case l.PROGRESS:f.numOfProgress--;break;case l.QUEUED:f.numOfQueue--;break;case l.ERROR:f.numOfUploadFailed--;break;case l.INVALID:f.numOfInvalid--;break;case l.INTERRUPT:f.numOfInterrupt--}switch(u){case l.QUEUED:f.numOfQueue++;break;case l.PROGRESS:f.numOfProgress++;break;case l.ERROR:f.numOfUploadFailed++;break;case l.COMPLETE:f.numOfSuccess++;break;case l.CANCELLED:f.numOfCancel++;break;case l.INVALID:f.numOfInvalid++;break;case l.INTERRUPT:f.numOfInterrupt++}}}),a.installTo(o.prototype),o}),t("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(r,a,i,o,s,l){var u=r.$,c=/\.\w+$/,f=o.Status;return a.register({name:"queue",init:function(d){var h,v,p,g,m,b,w,S=this;if(u.isPlainObject(d.accept)&&(d.accept=[d.accept]),d.accept){for(m=[],p=0,v=d.accept.length;v>p;p++)g=d.accept[p].extensions,g&&m.push(g);m.length&&(b="\\."+m.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"),S.accept=new RegExp(b,"i")}return S.queue=new i,S.stats=S.queue.stats,this.request("predict-runtime-type")==="html5"?(h=r.Deferred(),this.placeholder=w=new l("Placeholder"),w.connectRuntime({runtimeOrder:"html5"},function(){S._ruid=w.getRuid(),h.resolve()}),h.promise()):void 0},_wrapFile:function(d){if(!(d instanceof o)){if(!(d instanceof s)){if(!this._ruid)throw new Error("Can't add external files.");d=new s(this._ruid,d)}d=new o(d)}return d},acceptFile:function(d){var h=!d||!d.size||this.accept&&c.exec(d.name)&&!this.accept.test(d.name);return!h},_addFile:function(d){var h=this;return d=h._wrapFile(d),h.owner.trigger("beforeFileQueued",d)?h.acceptFile(d)?(h.queue.append(d),h.owner.trigger("fileQueued",d),d):(h.owner.trigger("error","Q_TYPE_DENIED",d),void 0):void 0},getFile:function(d){return this.queue.getFile(d)},addFile:function(d){var h=this;d.length||(d=[d]),d=u.map(d,function(v){return h._addFile(v)}),d.length&&(h.owner.trigger("filesQueued",d),h.options.auto&&setTimeout(function(){h.request("start-upload")},20))},getStats:function(){return this.stats},removeFile:function(d,h){var v=this;d=d.id?d:v.queue.getFile(d),this.request("cancel-file",d),h&&this.queue.removeFile(d)},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(d,h){var v,p,g,m=this;if(d)return d=d.id?d:m.queue.getFile(d),d.setStatus(f.QUEUED),h||m.request("start-upload"),void 0;for(v=m.queue.getFiles(f.ERROR),p=0,g=v.length;g>p;p++)d=v[p],d.setStatus(f.QUEUED);m.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.owner.trigger("reset"),this.queue=new i,this.stats=this.queue.stats},destroy:function(){this.reset(),this.placeholder&&this.placeholder.destroy()}})}),t("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(r,a){return r.support=function(){return a.hasRuntime.apply(a,arguments)},r.register({name:"runtime",init:function(){if(!this.predictRuntimeType())throw Error("Runtime Error")},predictRuntimeType:function(){var i,o,s=this.options.runtimeOrder||a.orders,l=this.type;if(!l){for(s=s.split(/\s*,\s*/g),i=0,o=s.length;o>i;i++)if(a.hasRuntime(s[i])){this.type=l=s[i];break}}return l}})}),t("lib/transport",["base","runtime/client","mediator"],function(r,a,i){function o(l){var u=this;l=u.options=s.extend(!0,{},o.options,l||{}),a.call(this,"Transport"),this._blob=null,this._formData=l.formData||{},this._headers=l.headers||{},this.on("progress",this._timeout),this.on("load error",function(){u.trigger("progress",1),clearTimeout(u._timer)})}var s=r.$;return o.options={server:"",method:"POST",withCredentials:!1,fileVal:"file",timeout:12e4,formData:{},headers:{},sendAsBinary:!1},s.extend(o.prototype,{appendBlob:function(l,u,c){var f=this,d=f.options;f.getRuid()&&f.disconnectRuntime(),f.connectRuntime(u.ruid,function(){f.exec("init")}),f._blob=u,d.fileVal=l||d.fileVal,d.filename=c||d.filename},append:function(l,u){typeof l=="object"?s.extend(this._formData,l):this._formData[l]=u},setRequestHeader:function(l,u){typeof l=="object"?s.extend(this._headers,l):this._headers[l]=u},send:function(l){this.exec("send",l),this._timeout()},abort:function(){return clearTimeout(this._timer),this.exec("abort")},destroy:function(){this.trigger("destroy"),this.off(),this.exec("destroy"),this.disconnectRuntime()},getResponseHeaders:function(){return this.exec("getResponseHeaders")},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var l=this,u=l.options.timeout;u&&(clearTimeout(l._timer),l._timer=setTimeout(function(){l.abort(),l.trigger("error","timeout")},u))}}),i.installTo(o.prototype),o}),t("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(r,a,i,o){function s(f,d){var h,v,p=[],g=f.source,m=g.size,b=d?Math.ceil(m/d):1,w=0,S=0;for(v={file:f,has:function(){return!!p.length},shift:function(){return p.shift()},unshift:function(C){p.unshift(C)}};b>S;)h=Math.min(d,m-w),p.push({file:f,start:w,end:d?w+h:m,total:m,chunks:b,chunk:S++,cuted:v}),w+=h;return f.blocks=p.concat(),f.remaning=p.length,v}var l=r.$,u=r.isPromise,c=i.Status;l.extend(a.options,{prepareNextFile:!1,chunked:!1,chunkSize:5242880,chunkRetry:2,chunkRetryDelay:1e3,threads:3,formData:{}}),a.register({name:"upload",init:function(){var f=this.owner,d=this;this.runing=!1,this.progress=!1,f.on("startUpload",function(){d.progress=!0}).on("uploadFinished",function(){d.progress=!1}),this.pool=[],this.stack=[],this.pending=[],this.remaning=0,this.__tick=r.bindFn(this._tick,this),f.on("uploadComplete",function(h){h.blocks&&l.each(h.blocks,function(v,p){p.transport&&(p.transport.abort(),p.transport.destroy()),delete p.transport}),delete h.blocks,delete h.remaning})},reset:function(){this.request("stop-upload",!0),this.runing=!1,this.pool=[],this.stack=[],this.pending=[],this.remaning=0,this._trigged=!1,this._promise=null},startUpload:function(f){var d=this;if(l.each(d.request("get-files",c.INVALID),function(){d.request("remove-file",this)}),f?(f=f.id?f:d.request("get-file",f),f.getStatus()===c.INTERRUPT?(f.setStatus(c.QUEUED),l.each(d.pool,function(v,p){p.file===f&&(p.transport&&p.transport.send(),f.setStatus(c.PROGRESS))})):f.getStatus()!==c.PROGRESS&&f.setStatus(c.QUEUED)):l.each(d.request("get-files",[c.INITED]),function(){this.setStatus(c.QUEUED)}),d.runing)return d.owner.trigger("startUpload",f),r.nextTick(d.__tick);d.runing=!0;var h=[];f||l.each(d.pool,function(v,p){var g=p.file;if(g.getStatus()===c.INTERRUPT){if(d._trigged=!1,h.push(g),p.waiting)return;p.transport?p.transport.send():d._doSend(p)}}),l.each(h,function(){this.setStatus(c.PROGRESS)}),f||l.each(d.request("get-files",c.INTERRUPT),function(){this.setStatus(c.PROGRESS)}),d._trigged=!1,r.nextTick(d.__tick),d.owner.trigger("startUpload")},stopUpload:function(f,d){var h=this;if(f===!0&&(d=f,f=null),h.runing!==!1){if(f)return f=f.id?f:h.request("get-file",f),f.getStatus()!==c.PROGRESS&&f.getStatus()!==c.QUEUED?void 0:(f.setStatus(c.INTERRUPT),l.each(h.pool,function(v,p){p.file===f&&(p.transport&&p.transport.abort(),d&&(h._putback(p),h._popBlock(p)))}),h.owner.trigger("stopUpload",f),r.nextTick(h.__tick));h.runing=!1,this._promise&&this._promise.file&&this._promise.file.setStatus(c.INTERRUPT),d&&l.each(h.pool,function(v,p){p.transport&&p.transport.abort(),p.file.setStatus(c.INTERRUPT)}),h.owner.trigger("stopUpload")}},cancelFile:function(f){f=f.id?f:this.request("get-file",f),f.blocks&&l.each(f.blocks,function(d,h){var v=h.transport;v&&(v.abort(),v.destroy(),delete h.transport)}),f.setStatus(c.CANCELLED),this.owner.trigger("fileDequeued",f)},isInProgress:function(){return!!this.progress},_getStats:function(){return this.request("get-stats")},skipFile:function(f,d){f=f.id?f:this.request("get-file",f),f.setStatus(d||c.COMPLETE),f.skipped=!0,f.blocks&&l.each(f.blocks,function(h,v){var p=v.transport;p&&(p.abort(),p.destroy(),delete v.transport)}),this.owner.trigger("uploadSkip",f)},_tick:function(){var f,d,h=this,v=h.options;return h._promise?h._promise.always(h.__tick):(h.pool.length<v.threads&&(d=h._nextBlock())?(h._trigged=!1,f=function(p){h._promise=null,p&&p.file&&h._startSend(p),r.nextTick(h.__tick)},h._promise=u(d)?d.always(f):f(d)):h.remaning||h._getStats().numOfQueue||h._getStats().numOfInterrupt||(h.runing=!1,h._trigged||r.nextTick(function(){h.owner.trigger("uploadFinished")}),h._trigged=!0),void 0)},_putback:function(f){var d;f.cuted.unshift(f),d=this.stack.indexOf(f.cuted),~d||(this.remaning++,f.file.remaning++,this.stack.unshift(f.cuted))},_getStack:function(){for(var f,d=0;f=this.stack[d++];){if(f.has()&&f.file.getStatus()===c.PROGRESS)return f;(!f.has()||f.file.getStatus()!==c.PROGRESS&&f.file.getStatus()!==c.INTERRUPT)&&this.stack.splice(--d,1)}return null},_nextBlock:function(){var f,d,h,v,p=this,g=p.options;return(f=this._getStack())?(g.prepareNextFile&&!p.pending.length&&p._prepareNextFile(),f.shift()):p.runing?(!p.pending.length&&p._getStats().numOfQueue&&p._prepareNextFile(),d=p.pending.shift(),h=function(m){return m?(f=s(m,g.chunked?g.chunkSize:0),p.stack.push(f),f.shift()):null},u(d)?(v=d.file,d=d[d.pipe?"pipe":"then"](h),d.file=v,d):h(d)):void 0},_prepareNextFile:function(){var f,d=this,h=d.request("fetch-file"),v=d.pending;h&&(f=d.request("before-send-file",h,function(){return h.getStatus()===c.PROGRESS||h.getStatus()===c.INTERRUPT?h:d._finishFile(h)}),d.owner.trigger("uploadStart",h),h.setStatus(c.PROGRESS),f.file=h,f.done(function(){var p=l.inArray(f,v);~p&&v.splice(p,1,h)}),f.fail(function(p){h.setStatus(c.ERROR,p),d.owner.trigger("uploadError",h,p),d.owner.trigger("uploadComplete",h)}),v.push(f))},_popBlock:function(f){var d=l.inArray(f,this.pool);this.pool.splice(d,1),f.file.remaning--,this.remaning--},_startSend:function(f){var d,h=this,v=f.file;return v.getStatus()!==c.PROGRESS?(v.getStatus()===c.INTERRUPT&&h._putback(f),void 0):(h.pool.push(f),h.remaning++,f.blob=f.chunks===1?v.source:v.source.slice(f.start,f.end),f.waiting=d=h.request("before-send",f,function(){delete f.waiting,v.getStatus()===c.PROGRESS?h._doSend(f):f.file.getStatus()!==c.INTERRUPT&&h._popBlock(f),r.nextTick(h.__tick)}),d.fail(function(){delete f.waiting,v.remaning===1?h._finishFile(v).always(function(){f.percentage=1,h._popBlock(f),h.owner.trigger("uploadComplete",v),r.nextTick(h.__tick)}):(f.percentage=1,h.updateFileProgress(v),h._popBlock(f),r.nextTick(h.__tick))}),void 0)},_doSend:function(f){var d,h,v=this,p=v.owner,g=l.extend({},v.options,f.options),m=f.file,b=new o(g),w=l.extend({},g.formData),S=l.extend({},g.headers);f.transport=b,b.on("destroy",function(){delete f.transport,v._popBlock(f),r.nextTick(v.__tick)}),b.on("progress",function(C){f.percentage=C,v.updateFileProgress(m)}),d=function(C){var y;return h=b.getResponseAsJson()||{},h._raw=b.getResponse(),h._headers=b.getResponseHeaders(),f.response=h,y=function(x){C=x},p.trigger("uploadAccept",f,h,y)||(C=C||"server"),C},b.on("error",function(C,y){var x,T,A=C.split("|");C=A[0],x=parseFloat(A[1]),T=A[2],f.retried=f.retried||0,f.chunks>1&&~"http,abort,server".indexOf(C.replace(/-.*/,""))&&f.retried<g.chunkRetry?(f.retried++,v.retryTimer=setTimeout(function(){b.send()},g.chunkRetryDelay||1e3)):(y||C!=="server"||(C=d(C)),m.setStatus(c.ERROR,C),p.trigger("uploadError",m,C,x,T),p.trigger("uploadComplete",m))}),b.on("load",function(){var C;return(C=d())?(b.trigger("error",C,!0),void 0):(m.remaning===1?v._finishFile(m,h):b.destroy(),void 0)}),w=l.extend(w,{id:m.id,name:m.name,type:m.type,lastModifiedDate:m.lastModifiedDate,size:m.size}),f.chunks>1&&l.extend(w,{chunks:f.chunks,chunk:f.chunk}),p.trigger("uploadBeforeSend",f,w,S),b.appendBlob(g.fileVal,f.blob,m.name),b.append(w),b.setRequestHeader(S),b.send()},_finishFile:function(f,d,h){var v=this.owner;return v.request("after-send-file",arguments,function(){f.setStatus(c.COMPLETE),v.trigger("uploadSuccess",f,d,h)}).fail(function(p){f.getStatus()===c.PROGRESS&&f.setStatus(c.ERROR,p),v.trigger("uploadError",f,p)}).always(function(){v.trigger("uploadComplete",f)})},updateFileProgress:function(f){var d=0,h=0;f.blocks&&(l.each(f.blocks,function(v,p){h+=(p.percentage||0)*(p.end-p.start)}),d=h/f.size,this.owner.trigger("uploadProgress",f,d||0))},destroy:function(){clearTimeout(this.retryTimer)}})}),t("widgets/validator",["base","uploader","file","widgets/widget"],function(r,a,i){var o,s=r.$,l={};return o={addValidator:function(u,c){l[u]=c},removeValidator:function(u){delete l[u]}},a.register({name:"validator",init:function(){var u=this;r.nextTick(function(){s.each(l,function(){this.call(u.owner)})})}}),o.addValidator("fileNumLimit",function(){var u=this,c=u.options,f=0,d=parseInt(c.fileNumLimit,10),h=!0;d&&(u.on("beforeFileQueued",function(v){return this.trigger("beforeFileQueuedCheckfileNumLimit",v,f)?(f>=d&&h&&(h=!1,this.trigger("error","Q_EXCEED_NUM_LIMIT",d,v),setTimeout(function(){h=!0},1)),!(f>=d)):!1}),u.on("fileQueued",function(){f++}),u.on("fileDequeued",function(){f--}),u.on("reset",function(){f=0}))}),o.addValidator("fileSizeLimit",function(){var u=this,c=u.options,f=0,d=parseInt(c.fileSizeLimit,10),h=!0;d&&(u.on("beforeFileQueued",function(v){var p=f+v.size>d;return p&&h&&(h=!1,this.trigger("error","Q_EXCEED_SIZE_LIMIT",d,v),setTimeout(function(){h=!0},1)),!p}),u.on("fileQueued",function(v){f+=v.size}),u.on("fileDequeued",function(v){f-=v.size}),u.on("reset",function(){f=0}))}),o.addValidator("fileSingleSizeLimit",function(){var u=this,c=u.options,f=c.fileSingleSizeLimit;f&&u.on("beforeFileQueued",function(d){return d.size>f?(d.setStatus(i.Status.INVALID,"exceed_size"),this.trigger("error","F_EXCEED_SIZE",f,d),!1):void 0})}),o.addValidator("duplicate",function(){function u(h){for(var v,p=0,g=0,m=h.length;m>g;g++)v=h.charCodeAt(g),p=v+(p<<6)+(p<<16)-p;return p}var c=this,f=c.options,d={};f.duplicate||(c.on("beforeFileQueued",function(h){var v=h.__hash||(h.__hash=u(h.name+h.size+h.lastModifiedDate));return d[v]?(this.trigger("error","F_DUPLICATE",h),!1):void 0}),c.on("fileQueued",function(h){var v=h.__hash;v&&(d[v]=!0)}),c.on("fileDequeued",function(h){var v=h.__hash;v&&delete d[v]}),c.on("reset",function(){d={}}))}),o}),t("lib/md5",["runtime/client","mediator"],function(r,a){function i(){r.call(this,"Md5")}return a.installTo(i.prototype),i.prototype.loadFromBlob=function(o){var s=this;s.getRuid()&&s.disconnectRuntime(),s.connectRuntime(o.ruid,function(){s.exec("init"),s.exec("loadFromBlob",o)})},i.prototype.getResult=function(){return this.exec("getResult")},i}),t("widgets/md5",["base","uploader","lib/md5","lib/blob","widgets/widget"],function(r,a,i,o){return a.register({name:"md5",md5File:function(s,l,u){var c=new i,f=r.Deferred(),d=s instanceof o?s:this.request("get-file",s).source;return c.on("progress load",function(h){h=h||{},f.notify(h.total?h.loaded/h.total:1)}),c.on("complete",function(){f.resolve(c.getResult())}),c.on("error",function(h){f.reject(h)}),arguments.length>1&&(l=l||0,u=u||0,0>l&&(l=d.size+l),0>u&&(u=d.size+u),u=Math.min(u,d.size),d=d.slice(l,u)),c.loadFromBlob(d),f.promise()}})}),t("runtime/compbase",[],function(){function r(a,i){this.owner=a,this.options=a.options,this.getRuntime=function(){return i},this.getRuid=function(){return i.uid},this.trigger=function(){return a.trigger.apply(a,arguments)}}return r}),t("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(r,a,i){function o(){var u={},c=this,f=this.destroy;a.apply(c,arguments),c.type=s,c.exec=function(d,h){var v,p=this,g=p.uid,m=r.slice(arguments,2);return l[d]&&(v=u[g]=u[g]||new l[d](p,c),v[h])?v[h].apply(v,m):void 0},c.destroy=function(){return f&&f.apply(this,arguments)}}var s="html5",l={};return r.inherits(a,{constructor:o,init:function(){var u=this;setTimeout(function(){u.trigger("ready")},1)}}),o.register=function(u,c){var f=l[u]=r.inherits(i,c);return f},e.Blob&&e.FileReader&&e.DataView&&a.addRuntime(s,o),o}),t("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(r,a){return r.register("Blob",{slice:function(i,o){var s=this.owner.source,l=s.slice||s.webkitSlice||s.mozSlice;return s=l.call(s,i,o),new a(this.getRuid(),s)}})}),t("runtime/html5/dnd",["base","runtime/html5/runtime","lib/file"],function(r,a,i){var o=r.$,s="webuploader-dnd-";return a.register("DragAndDrop",{init:function(){var l=this.elem=this.options.container;this.dragEnterHandler=r.bindFn(this._dragEnterHandler,this),this.dragOverHandler=r.bindFn(this._dragOverHandler,this),this.dragLeaveHandler=r.bindFn(this._dragLeaveHandler,this),this.dropHandler=r.bindFn(this._dropHandler,this),this.dndOver=!1,l.on("dragenter",this.dragEnterHandler),l.on("dragover",this.dragOverHandler),l.on("dragleave",this.dragLeaveHandler),l.on("drop",this.dropHandler),this.options.disableGlobalDnd&&(o(document).on("dragover",this.dragOverHandler),o(document).on("drop",this.dropHandler))},_dragEnterHandler:function(l){var u,c=this,f=c._denied||!1;return l=l.originalEvent||l,c.dndOver||(c.dndOver=!0,u=l.dataTransfer.items,u&&u.length&&(c._denied=f=!c.trigger("accept",u)),c.elem.addClass(s+"over"),c.elem[f?"addClass":"removeClass"](s+"denied")),l.dataTransfer.dropEffect=f?"none":"copy",!1},_dragOverHandler:function(l){var u=this.elem.parent().get(0);return u&&!o.contains(u,l.currentTarget)||(clearTimeout(this._leaveTimer),this._dragEnterHandler.call(this,l)),!1},_dragLeaveHandler:function(){var l,u=this;return l=function(){u.dndOver=!1,u.elem.removeClass(s+"over "+s+"denied")},clearTimeout(u._leaveTimer),u._leaveTimer=setTimeout(l,100),!1},_dropHandler:function(l){var u,c,f=this,d=f.getRuid(),h=f.elem.parent().get(0);if(h&&!o.contains(h,l.currentTarget))return!1;l=l.originalEvent||l,u=l.dataTransfer;try{c=u.getData("text/html")}catch{}return f.dndOver=!1,f.elem.removeClass(s+"over"),u&&!c?(f._getTansferFiles(u,function(v){f.trigger("drop",o.map(v,function(p){return new i(d,p)}))}),!1):void 0},_getTansferFiles:function(l,u){var c,f,d,h,v,p,g,m=[],b=[];for(c=l.items,f=l.files,g=!(!c||!c[0].webkitGetAsEntry),v=0,p=f.length;p>v;v++)d=f[v],h=c&&c[v],g&&h.webkitGetAsEntry().isDirectory?b.push(this._traverseDirectoryTree(h.webkitGetAsEntry(),m)):m.push(d);r.when.apply(r,b).done(function(){m.length&&u(m)})},_traverseDirectoryTree:function(l,u){var c=r.Deferred(),f=this;return l.isFile?l.file(function(d){u.push(d),c.resolve()}):l.isDirectory&&l.createReader().readEntries(function(d){var h,v=d.length,p=[],g=[];for(h=0;v>h;h++)p.push(f._traverseDirectoryTree(d[h],g));r.when.apply(r,p).then(function(){u.push.apply(u,g),c.resolve()},c.reject)}),c.promise()},destroy:function(){var l=this.elem;l&&(l.off("dragenter",this.dragEnterHandler),l.off("dragover",this.dragOverHandler),l.off("dragleave",this.dragLeaveHandler),l.off("drop",this.dropHandler),this.options.disableGlobalDnd&&(o(document).off("dragover",this.dragOverHandler),o(document).off("drop",this.dropHandler)))}})}),t("runtime/html5/filepaste",["base","runtime/html5/runtime","lib/file"],function(r,a,i){return a.register("FilePaste",{init:function(){var o,s,l,u,c=this.options,f=this.elem=c.container,d=".*";if(c.accept){for(o=[],s=0,l=c.accept.length;l>s;s++)u=c.accept[s].mimeTypes,u&&o.push(u);o.length&&(d=o.join(","),d=d.replace(/,/g,"|").replace(/\*/g,".*"))}this.accept=d=new RegExp(d,"i"),this.hander=r.bindFn(this._pasteHander,this),f.on("paste",this.hander)},_pasteHander:function(o){var s,l,u,c,f,d=[],h=this.getRuid();for(o=o.originalEvent||o,s=o.clipboardData.items,c=0,f=s.length;f>c;c++)l=s[c],l.kind==="file"&&(u=l.getAsFile())&&d.push(new i(h,u));d.length&&(o.preventDefault(),o.stopPropagation(),this.trigger("paste",d))},destroy:function(){this.elem.off("paste",this.hander)}})}),t("runtime/html5/filepicker",["base","runtime/html5/runtime"],function(r,a){var i=r.$;return a.register("FilePicker",{init:function(){var o,s,l,u,c,f=this.getRuntime().getContainer(),d=this,h=d.owner,v=d.options,p=this.label=i(document.createElement("label")),g=this.input=i(document.createElement("input"));if(g.attr("type","file"),g.attr("capture","camera"),g.attr("name",v.name),g.addClass("webuploader-element-invisible"),p.on("click",function(m){g.trigger("click"),m.stopPropagation(),h.trigger("dialogopen")}),p.css({opacity:0,width:"100%",height:"100%",display:"block",cursor:"pointer",background:"#ffffff"}),v.multiple&&g.attr("multiple","multiple"),v.accept&&v.accept.length>0){for(o=[],s=0,l=v.accept.length;l>s;s++)o.push(v.accept[s].mimeTypes);g.attr("accept",o.join(","))}f.append(g),f.append(p),u=function(m){h.trigger(m.type)},c=function(m){var b;return m.target.files.length===0?!1:(d.files=m.target.files,b=this.cloneNode(!0),b.value=null,this.parentNode.replaceChild(b,this),g.off(),g=i(b).on("change",c).on("mouseenter mouseleave",u),h.trigger("change"),void 0)},g.on("change",c),p.on("mouseenter mouseleave",u)},getFiles:function(){return this.files},destroy:function(){this.input.off(),this.label.off()}})}),t("runtime/html5/util",["base"],function(r){var a=e.createObjectURL&&e||e.URL&&URL.revokeObjectURL&&URL||e.webkitURL,i=r.noop,o=i;return a&&(i=function(){return a.createObjectURL.apply(a,arguments)},o=function(){return a.revokeObjectURL.apply(a,arguments)}),{createObjectURL:i,revokeObjectURL:o,dataURL2Blob:function(s){var l,u,c,f,d,h;for(h=s.split(","),l=~h[0].indexOf("base64")?atob(h[1]):decodeURIComponent(h[1]),c=new ArrayBuffer(l.length),u=new Uint8Array(c),f=0;f<l.length;f++)u[f]=l.charCodeAt(f);return d=h[0].split(":")[1].split(";")[0],this.arrayBufferToBlob(c,d)},dataURL2ArrayBuffer:function(s){var l,u,c,f;for(f=s.split(","),l=~f[0].indexOf("base64")?atob(f[1]):decodeURIComponent(f[1]),u=new Uint8Array(l.length),c=0;c<l.length;c++)u[c]=l.charCodeAt(c);return u.buffer},arrayBufferToBlob:function(s,l){var u,c=e.BlobBuilder||e.WebKitBlobBuilder;return c?(u=new c,u.append(s),u.getBlob(l)):new Blob([s],l?{type:l}:{})},canvasToDataUrl:function(s,l,u){return s.toDataURL(l,u/100)},parseMeta:function(s,l){l(!1,{})},updateImageHead:function(s){return s}}}),t("runtime/html5/imagemeta",["runtime/html5/util"],function(r){var a;return a={parsers:{65505:[]},maxMetaDataSize:262144,parse:function(i,o){var s=this,l=new FileReader;l.onload=function(){o(!1,s._parse(this.result)),l=l.onload=l.onerror=null},l.onerror=function(u){o(u.message),l=l.onload=l.onerror=null},i=i.slice(0,s.maxMetaDataSize),l.readAsArrayBuffer(i.getSource())},_parse:function(i,o){if(!(i.byteLength<6)){var s,l,u,c,f=new DataView(i),d=2,h=f.byteLength-4,v=d,p={};if(f.getUint16(0)===65496){for(;h>d&&(s=f.getUint16(d),s>=65504&&65519>=s||s===65534)&&(l=f.getUint16(d+2)+2,!(d+l>f.byteLength));){if(u=a.parsers[s],!o&&u)for(c=0;c<u.length;c+=1)u[c].call(a,f,d,l,p);d+=l,v=d}v>6&&(p.imageHead=i.slice?i.slice(2,v):new Uint8Array(i).subarray(2,v))}return p}},updateImageHead:function(i,o){var s,l,u,c=this._parse(i,!0);return u=2,c.imageHead&&(u=2+c.imageHead.byteLength),l=i.slice?i.slice(u):new Uint8Array(i).subarray(u),s=new Uint8Array(o.byteLength+2+l.byteLength),s[0]=255,s[1]=216,s.set(new Uint8Array(o),2),s.set(new Uint8Array(l),o.byteLength+2),s.buffer}},r.parseMeta=function(){return a.parse.apply(a,arguments)},r.updateImageHead=function(){return a.updateImageHead.apply(a,arguments)},a}),t("runtime/html5/imagemeta/exif",["base","runtime/html5/imagemeta"],function(r,a){var i={};return i.ExifMap=function(){return this},i.ExifMap.prototype.map={Orientation:274},i.ExifMap.prototype.get=function(o){return this[o]||this[this.map[o]]},i.exifTagTypes={1:{getValue:function(o,s){return o.getUint8(s)},size:1},2:{getValue:function(o,s){return String.fromCharCode(o.getUint8(s))},size:1,ascii:!0},3:{getValue:function(o,s,l){return o.getUint16(s,l)},size:2},4:{getValue:function(o,s,l){return o.getUint32(s,l)},size:4},5:{getValue:function(o,s,l){return o.getUint32(s,l)/o.getUint32(s+4,l)},size:8},9:{getValue:function(o,s,l){return o.getInt32(s,l)},size:4},10:{getValue:function(o,s,l){return o.getInt32(s,l)/o.getInt32(s+4,l)},size:8}},i.exifTagTypes[7]=i.exifTagTypes[1],i.getExifValue=function(o,s,l,u,c,f){var d,h,v,p,g,m,b=i.exifTagTypes[u];if(!b)return r.log("Invalid Exif data: Invalid tag type."),void 0;if(d=b.size*c,h=d>4?s+o.getUint32(l+8,f):l+8,h+d>o.byteLength)return r.log("Invalid Exif data: Invalid data offset."),void 0;if(c===1)return b.getValue(o,h,f);for(v=[],p=0;c>p;p+=1)v[p]=b.getValue(o,h+p*b.size,f);if(b.ascii){for(g="",p=0;p<v.length&&(m=v[p],m!=="\0");p+=1)g+=m;return g}return v},i.parseExifTag=function(o,s,l,u,c){var f=o.getUint16(l,u);c.exif[f]=i.getExifValue(o,s,l,o.getUint16(l+2,u),o.getUint32(l+4,u),u)},i.parseExifTags=function(o,s,l,u,c){var f,d,h;if(l+6>o.byteLength)return r.log("Invalid Exif data: Invalid directory offset."),void 0;if(f=o.getUint16(l,u),d=l+2+12*f,d+4>o.byteLength)return r.log("Invalid Exif data: Invalid directory size."),void 0;for(h=0;f>h;h+=1)this.parseExifTag(o,s,l+2+12*h,u,c);return o.getUint32(d,u)},i.parseExifData=function(o,s,l,u){var c,f,d=s+10;if(o.getUint32(s+4)===1165519206){if(d+8>o.byteLength)return r.log("Invalid Exif data: Invalid segment size."),void 0;if(o.getUint16(s+8)!==0)return r.log("Invalid Exif data: Missing byte alignment offset."),void 0;switch(o.getUint16(d)){case 18761:c=!0;break;case 19789:c=!1;break;default:return r.log("Invalid Exif data: Invalid byte alignment marker."),void 0}if(o.getUint16(d+2,c)!==42)return r.log("Invalid Exif data: Missing TIFF marker."),void 0;f=o.getUint32(d+4,c),u.exif=new i.ExifMap,f=i.parseExifTags(o,d,d+f,c,u)}},a.parsers[65505].push(i.parseExifData),i}),t("runtime/html5/jpegencoder",[],function(){function r(a){function i(de){for(var we=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Se=0;64>Se;Se++){var Ie=I((we[Se]*de+50)/100);1>Ie?Ie=1:Ie>255&&(Ie=255),L[_e[Se]]=Ie}for(var Ee=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Ge=0;64>Ge;Ge++){var Ue=I((Ee[Ge]*de+50)/100);1>Ue?Ue=1:Ue>255&&(Ue=255),O[_e[Ge]]=Ue}for(var oe=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],ke=0,nt=0;8>nt;nt++)for(var st=0;8>st;st++)z[ke]=1/(8*L[_e[ke]]*oe[nt]*oe[st]),F[ke]=1/(8*O[_e[ke]]*oe[nt]*oe[st]),ke++}function o(de,we){for(var Se=0,Ie=0,Ee=new Array,Ge=1;16>=Ge;Ge++){for(var Ue=1;Ue<=de[Ge];Ue++)Ee[we[Ie]]=[],Ee[we[Ie]][0]=Se,Ee[we[Ie]][1]=Ge,Ie++,Se++;Se*=2}return Ee}function s(){x=o(Pe,pe),T=o(me,De),A=o(Y,ie),M=o(Be,Oe)}function l(){for(var de=1,we=2,Se=1;15>=Se;Se++){for(var Ie=de;we>Ie;Ie++)V[32767+Ie]=Se,$[32767+Ie]=[],$[32767+Ie][1]=Se,$[32767+Ie][0]=Ie;for(var Ee=-(we-1);-de>=Ee;Ee++)V[32767+Ee]=Se,$[32767+Ee]=[],$[32767+Ee][1]=Se,$[32767+Ee][0]=we-1+Ee;de<<=1,we<<=1}}function u(){for(var de=0;256>de;de++)Q[de]=19595*de,Q[de+256>>0]=38470*de,Q[de+512>>0]=7471*de+32768,Q[de+768>>0]=-11059*de,Q[de+1024>>0]=-21709*de,Q[de+1280>>0]=32768*de+8421375,Q[de+1536>>0]=-27439*de,Q[de+1792>>0]=-5329*de}function c(de){for(var we=de[0],Se=de[1]-1;Se>=0;)we&1<<Se&&(J|=1<<ne),Se--,ne--,0>ne&&(J==255?(f(255),f(0)):f(J),ne=7,J=0)}function f(de){j.push(ue[de])}function d(de){f(255&de>>8),f(255&de)}function h(de,we){var Se,Ie,Ee,Ge,Ue,oe,ke,nt,st,ut=0,lt=8,Me=64;for(st=0;lt>st;++st){Se=de[ut],Ie=de[ut+1],Ee=de[ut+2],Ge=de[ut+3],Ue=de[ut+4],oe=de[ut+5],ke=de[ut+6],nt=de[ut+7];var ye=Se+nt,ge=Se-nt,$e=Ie+ke,se=Ie-ke,Qe=Ee+oe,wt=Ee-oe,Vt=Ge+Ue,Zn=Ge-Ue,rr=ye+Vt,$r=ye-Vt,Fn=$e+Qe,Re=$e-Qe;de[ut]=rr+Fn,de[ut+4]=rr-Fn;var rt=.707106781*(Re+$r);de[ut+2]=$r+rt,de[ut+6]=$r-rt,rr=Zn+wt,Fn=wt+se,Re=se+ge;var Ae=.382683433*(rr-Re),it=.5411961*rr+Ae,Wt=1.306562965*Re+Ae,nn=.707106781*Fn,Jn=ge+nn,dr=ge-nn;de[ut+5]=dr+it,de[ut+3]=dr-it,de[ut+1]=Jn+Wt,de[ut+7]=Jn-Wt,ut+=8}for(ut=0,st=0;lt>st;++st){Se=de[ut],Ie=de[ut+8],Ee=de[ut+16],Ge=de[ut+24],Ue=de[ut+32],oe=de[ut+40],ke=de[ut+48],nt=de[ut+56];var xr=Se+nt,Dr=Se-nt,Vi=Ie+ke,By=Ie-ke,Hv=Ee+oe,Fy=Ee-oe,Vy=Ge+Ue,zy=Ge-Ue,zi=xr+Vy,bd=xr-Vy,Vl=Vi+Hv,zl=Vi-Hv;de[ut]=zi+Vl,de[ut+32]=zi-Vl;var hc=.707106781*(zl+bd);de[ut+16]=bd+hc,de[ut+48]=bd-hc,zi=zy+Fy,Vl=Fy+By,zl=By+Dr;var Wv=.382683433*(zi-zl),Hy=.5411961*zi+Wv,Hl=1.306562965*zl+Wv,Gv=.707106781*Vl,Uv=Dr+Gv,Kv=Dr-Gv;de[ut+40]=Kv+Hy,de[ut+24]=Kv-Hy,de[ut+8]=Uv+Hl,de[ut+56]=Uv-Hl,ut++}var vc;for(st=0;Me>st;++st)vc=de[st]*we[st],P[st]=vc>0?0|vc+.5:0|vc-.5;return P}function v(){d(65504),d(16),f(74),f(70),f(73),f(70),f(0),f(1),f(1),f(0),d(1),d(1),f(0),f(0)}function p(de,we){d(65472),d(17),f(8),d(we),d(de),f(3),f(1),f(17),f(0),f(2),f(17),f(1),f(3),f(17),f(1)}function g(){d(65499),d(132),f(0);for(var de=0;64>de;de++)f(L[de]);f(1);for(var we=0;64>we;we++)f(O[we])}function m(){d(65476),d(418),f(0);for(var de=0;16>de;de++)f(Pe[de+1]);for(var we=0;11>=we;we++)f(pe[we]);f(16);for(var Se=0;16>Se;Se++)f(Y[Se+1]);for(var Ie=0;161>=Ie;Ie++)f(ie[Ie]);f(1);for(var Ee=0;16>Ee;Ee++)f(me[Ee+1]);for(var Ge=0;11>=Ge;Ge++)f(De[Ge]);f(17);for(var Ue=0;16>Ue;Ue++)f(Be[Ue+1]);for(var oe=0;161>=oe;oe++)f(Oe[oe])}function b(){d(65498),d(12),f(3),f(1),f(0),f(2),f(17),f(3),f(17),f(0),f(63),f(0)}function w(de,we,Se,Ie,Ee){for(var Ge,Ue=Ee[0],oe=Ee[240],ke=16,nt=63,st=64,ut=h(de,we),lt=0;st>lt;++lt)G[_e[lt]]=ut[lt];var Me=G[0]-Se;Se=G[0],Me==0?c(Ie[0]):(Ge=32767+Me,c(Ie[V[Ge]]),c($[Ge]));for(var ye=63;ye>0&&G[ye]==0;ye--);if(ye==0)return c(Ue),Se;for(var ge,$e=1;ye>=$e;){for(var se=$e;G[$e]==0&&ye>=$e;++$e);var Qe=$e-se;if(Qe>=ke){ge=Qe>>4;for(var wt=1;ge>=wt;++wt)c(oe);Qe=15&Qe}Ge=32767+G[$e],c(Ee[(Qe<<4)+V[Ge]]),c($[Ge]),$e++}return ye!=nt&&c(Ue),Se}function S(){for(var de=String.fromCharCode,we=0;256>we;we++)ue[we]=de(we)}function C(de){if(0>=de&&(de=1),de>100&&(de=100),E!=de){var we=0;we=50>de?Math.floor(5e3/de):Math.floor(200-2*de),i(we),E=de}}function y(){a||(a=50),S(),s(),l(),u(),C(a)}var x,T,A,M,E,I=Math.floor,L=new Array(64),O=new Array(64),z=new Array(64),F=new Array(64),$=new Array(65535),V=new Array(65535),P=new Array(64),G=new Array(64),j=[],J=0,ne=7,ve=new Array(64),le=new Array(64),ce=new Array(64),ue=new Array(256),Q=new Array(2048),_e=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],Pe=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],pe=[0,1,2,3,4,5,6,7,8,9,10,11],Y=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],ie=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],me=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],De=[0,1,2,3,4,5,6,7,8,9,10,11],Be=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Oe=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];this.encode=function(de,we){we&&C(we),j=new Array,J=0,ne=7,d(65496),v(),g(),p(de.width,de.height),m(),b();var Se=0,Ie=0,Ee=0;J=0,ne=7,this.encode.displayName="_encode_";for(var Ge,Ue,oe,ke,nt,st,ut,lt,Me,ye=de.data,ge=de.width,$e=de.height,se=4*ge,Qe=0;$e>Qe;){for(Ge=0;se>Ge;){for(nt=se*Qe+Ge,st=nt,ut=-1,lt=0,Me=0;64>Me;Me++)lt=Me>>3,ut=4*(7&Me),st=nt+lt*se+ut,Qe+lt>=$e&&(st-=se*(Qe+1+lt-$e)),Ge+ut>=se&&(st-=Ge+ut-se+4),Ue=ye[st++],oe=ye[st++],ke=ye[st++],ve[Me]=(Q[Ue]+Q[oe+256>>0]+Q[ke+512>>0]>>16)-128,le[Me]=(Q[Ue+768>>0]+Q[oe+1024>>0]+Q[ke+1280>>0]>>16)-128,ce[Me]=(Q[Ue+1280>>0]+Q[oe+1536>>0]+Q[ke+1792>>0]>>16)-128;Se=w(ve,z,Se,x,A),Ie=w(le,F,Ie,T,M),Ee=w(ce,F,Ee,T,M),Ge+=32}Qe+=8}if(ne>=0){var wt=[];wt[1]=ne+1,wt[0]=(1<<ne+1)-1,c(wt)}d(65497);var Vt="data:image/jpeg;base64,"+btoa(j.join(""));return j=[],Vt},y()}return r.encode=function(a,i){var o=new r(i);return o.encode(a)},r}),t("runtime/html5/androidpatch",["runtime/html5/util","runtime/html5/jpegencoder","base"],function(r,a,i){var o,s=r.canvasToDataUrl;r.canvasToDataUrl=function(l,u,c){var f,d,h,v,p;return i.os.android?(u==="image/jpeg"&&typeof o>"u"&&(v=s.apply(null,arguments),p=v.split(","),v=~p[0].indexOf("base64")?atob(p[1]):decodeURIComponent(p[1]),v=v.substring(0,2),o=v.charCodeAt(0)===255&&v.charCodeAt(1)===216),u!=="image/jpeg"||o?s.apply(null,arguments):(d=l.width,h=l.height,f=l.getContext("2d"),a.encode(f.getImageData(0,0,d,h),c))):s.apply(null,arguments)}}),t("runtime/html5/image",["base","runtime/html5/runtime","runtime/html5/util"],function(r,a,i){var o="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D";return a.register("Image",{modified:!1,init:function(){var s=this,l=new Image;l.onload=function(){s._info={type:s.type,width:this.width,height:this.height},s._metas||s.type!=="image/jpeg"?s.owner.trigger("load"):i.parseMeta(s._blob,function(u,c){s._metas=c,s.owner.trigger("load")})},l.onerror=function(){s.owner.trigger("error")},s._img=l},loadFromBlob:function(s){var l=this,u=l._img;l._blob=s,l.type=s.type,u.src=i.createObjectURL(s.getSource()),l.owner.once("load",function(){i.revokeObjectURL(u.src)})},resize:function(s,l){var u=this._canvas||(this._canvas=document.createElement("canvas"));this._resize(this._img,u,s,l),this._blob=null,this.modified=!0,this.owner.trigger("complete","resize")},crop:function(s,l,u,c,f){var d=this._canvas||(this._canvas=document.createElement("canvas")),h=this.options,v=this._img,p=v.naturalWidth,g=v.naturalHeight,m=this.getOrientation();f=f||1,d.width=u,d.height=c,h.preserveHeaders||this._rotate2Orientaion(d,m),this._renderImageToCanvas(d,v,-s,-l,p*f,g*f),this._blob=null,this.modified=!0,this.owner.trigger("complete","crop")},getAsBlob:function(s){var l,u=this._blob,c=this.options;if(s=s||this.type,this.modified||this.type!==s){if(l=this._canvas,s==="image/jpeg"){if(u=i.canvasToDataUrl(l,s,c.quality),c.preserveHeaders&&this._metas&&this._metas.imageHead)return u=i.dataURL2ArrayBuffer(u),u=i.updateImageHead(u,this._metas.imageHead),u=i.arrayBufferToBlob(u,s)}else u=i.canvasToDataUrl(l,s);u=i.dataURL2Blob(u)}return u},getAsDataUrl:function(s){var l=this.options;return s=s||this.type,s==="image/jpeg"?i.canvasToDataUrl(this._canvas,s,l.quality):this._canvas.toDataURL(s)},getOrientation:function(){return this._metas&&this._metas.exif&&this._metas.exif.get("Orientation")||1},info:function(s){return s?(this._info=s,this):this._info},meta:function(s){return s?(this._metas=s,this):this._metas},destroy:function(){var s=this._canvas;this._img.onload=null,s&&(s.getContext("2d").clearRect(0,0,s.width,s.height),s.width=s.height=0,this._canvas=null),this._img.src=o,this._img=this._blob=null},_resize:function(s,l,u,c){var f,d,h,v,p,g=this.options,m=s.width,b=s.height,w=this.getOrientation();~[5,6,7,8].indexOf(w)&&(u^=c,c^=u,u^=c),f=Math[g.crop?"max":"min"](u/m,c/b),g.allowMagnify||(f=Math.min(1,f)),d=m*f,h=b*f,g.crop?(l.width=u,l.height=c):(l.width=d,l.height=h),v=(l.width-d)/2,p=(l.height-h)/2,g.preserveHeaders||this._rotate2Orientaion(l,w),this._renderImageToCanvas(l,s,v,p,d,h)},_rotate2Orientaion:function(s,l){var u=s.width,c=s.height,f=s.getContext("2d");switch(l){case 5:case 6:case 7:case 8:s.width=c,s.height=u}switch(l){case 2:f.translate(u,0),f.scale(-1,1);break;case 3:f.translate(u,c),f.rotate(Math.PI);break;case 4:f.translate(0,c),f.scale(1,-1);break;case 5:f.rotate(.5*Math.PI),f.scale(1,-1);break;case 6:f.rotate(.5*Math.PI),f.translate(0,-c);break;case 7:f.rotate(.5*Math.PI),f.translate(u,-c),f.scale(-1,1);break;case 8:f.rotate(-.5*Math.PI),f.translate(-u,0)}},_renderImageToCanvas:function(){function s(u,c,f){var d,h,v,p=document.createElement("canvas"),g=p.getContext("2d"),m=0,b=f,w=f;for(p.width=1,p.height=f,g.drawImage(u,0,0),d=g.getImageData(0,0,1,f).data;w>m;)h=d[4*(w-1)+3],h===0?b=w:m=w,w=b+m>>1;return v=w/f,v===0?1:v}function l(u){var c,f,d=u.naturalWidth,h=u.naturalHeight;return d*h>1048576?(c=document.createElement("canvas"),c.width=c.height=1,f=c.getContext("2d"),f.drawImage(u,-d+1,0),f.getImageData(0,0,1,1).data[3]===0):!1}return r.os.ios?r.os.ios>=7?function(u,c,f,d,h,v){var p=c.naturalWidth,g=c.naturalHeight,m=s(c,p,g);return u.getContext("2d").drawImage(c,0,0,p*m,g*m,f,d,h,v)}:function(u,c,f,d,h,v){var p,g,m,b,w,S,C,y=c.naturalWidth,x=c.naturalHeight,T=u.getContext("2d"),A=l(c),M=this.type==="image/jpeg",E=1024,I=0,L=0;for(A&&(y/=2,x/=2),T.save(),p=document.createElement("canvas"),p.width=p.height=E,g=p.getContext("2d"),m=M?s(c,y,x):1,b=Math.ceil(E*h/y),w=Math.ceil(E*v/x/m);x>I;){for(S=0,C=0;y>S;)g.clearRect(0,0,E,E),g.drawImage(c,-S,-I),T.drawImage(p,0,0,E,E,f+C,d+L,b,w),S+=E,C+=b;I+=E,L+=w}T.restore(),p=g=null}:function(u){var c=r.slice(arguments,1),f=u.getContext("2d");f.drawImage.apply(f,c)}}()})}),t("runtime/html5/transport",["base","runtime/html5/runtime"],function(r,a){var i=r.noop,o=r.$;return a.register("Transport",{init:function(){this._status=0,this._response=null},send:function(){var s,l,u,c=this.owner,f=this.options,d=this._initAjax(),h=c._blob,v=f.server;f.sendAsBinary?(v+=f.attachInfoToQuery!==!1?(/\?/.test(v)?"&":"?")+o.param(c._formData):"",l=h.getSource()):(s=new FormData,o.each(c._formData,function(p,g){s.append(p,g)}),s.append(f.fileVal,h.getSource(),f.filename||c._formData.name||"")),f.withCredentials&&"withCredentials"in d?(d.open(f.method,v,!0),d.withCredentials=!0):d.open(f.method,v),this._setRequestHeader(d,f.headers),l?(d.overrideMimeType&&d.overrideMimeType("application/octet-stream"),r.os.android?(u=new FileReader,u.onload=function(){d.send(this.result),u=u.onload=null},u.readAsArrayBuffer(l)):d.send(l)):d.send(s)},getResponse:function(){return this._response},getResponseAsJson:function(){return this._parseJson(this._response)},getResponseHeaders:function(){return this._headers},getStatus:function(){return this._status},abort:function(){var s=this._xhr;s&&(s.upload.onprogress=i,s.onreadystatechange=i,s.abort(),this._xhr=s=null)},destroy:function(){this.abort()},_parseHeader:function(s){var l={};return s&&s.replace(/^([^\:]+):(.*)$/gm,function(u,c,f){l[c.trim()]=f.trim()}),l},_initAjax:function(){var s=this,l=new XMLHttpRequest,u=this.options;return!u.withCredentials||"withCredentials"in l||typeof XDomainRequest>"u"||(l=new XDomainRequest),l.upload.onprogress=function(c){var f=0;return c.lengthComputable&&(f=c.loaded/c.total),s.trigger("progress",f)},l.onreadystatechange=function(){if(l.readyState===4){l.upload.onprogress=i,l.onreadystatechange=i,s._xhr=null,s._status=l.status;var c="|",f=c+l.status+c+l.statusText;return l.status>=200&&l.status<300?(s._response=l.responseText,s._headers=s._parseHeader(l.getAllResponseHeaders()),s.trigger("load")):l.status>=500&&l.status<600?(s._response=l.responseText,s._headers=s._parseHeader(l.getAllResponseHeaders()),s.trigger("error","server"+f)):s.trigger("error",s._status?"http"+f:"abort")}},s._xhr=l,l},_setRequestHeader:function(s,l){o.each(l,function(u,c){s.setRequestHeader(u,c)})},_parseJson:function(s){var l;try{l=JSON.parse(s)}catch{l={}}return l}})}),t("runtime/html5/md5",["runtime/html5/runtime"],function(r){var a=function(S,C){return 4294967295&S+C},i=function(S,C,y,x,T,A){return C=a(a(C,S),a(x,A)),a(C<<T|C>>>32-T,y)},o=function(S,C,y,x,T,A,M){return i(C&y|~C&x,S,C,T,A,M)},s=function(S,C,y,x,T,A,M){return i(C&x|y&~x,S,C,T,A,M)},l=function(S,C,y,x,T,A,M){return i(C^y^x,S,C,T,A,M)},u=function(S,C,y,x,T,A,M){return i(y^(C|~x),S,C,T,A,M)},c=function(S,C){var y=S[0],x=S[1],T=S[2],A=S[3];y=o(y,x,T,A,C[0],7,-680876936),A=o(A,y,x,T,C[1],12,-389564586),T=o(T,A,y,x,C[2],17,606105819),x=o(x,T,A,y,C[3],22,-1044525330),y=o(y,x,T,A,C[4],7,-176418897),A=o(A,y,x,T,C[5],12,1200080426),T=o(T,A,y,x,C[6],17,-1473231341),x=o(x,T,A,y,C[7],22,-45705983),y=o(y,x,T,A,C[8],7,1770035416),A=o(A,y,x,T,C[9],12,-1958414417),T=o(T,A,y,x,C[10],17,-42063),x=o(x,T,A,y,C[11],22,-1990404162),y=o(y,x,T,A,C[12],7,1804603682),A=o(A,y,x,T,C[13],12,-40341101),T=o(T,A,y,x,C[14],17,-1502002290),x=o(x,T,A,y,C[15],22,1236535329),y=s(y,x,T,A,C[1],5,-165796510),A=s(A,y,x,T,C[6],9,-1069501632),T=s(T,A,y,x,C[11],14,643717713),x=s(x,T,A,y,C[0],20,-373897302),y=s(y,x,T,A,C[5],5,-701558691),A=s(A,y,x,T,C[10],9,38016083),T=s(T,A,y,x,C[15],14,-660478335),x=s(x,T,A,y,C[4],20,-405537848),y=s(y,x,T,A,C[9],5,568446438),A=s(A,y,x,T,C[14],9,-1019803690),T=s(T,A,y,x,C[3],14,-187363961),x=s(x,T,A,y,C[8],20,1163531501),y=s(y,x,T,A,C[13],5,-1444681467),A=s(A,y,x,T,C[2],9,-51403784),T=s(T,A,y,x,C[7],14,1735328473),x=s(x,T,A,y,C[12],20,-1926607734),y=l(y,x,T,A,C[5],4,-378558),A=l(A,y,x,T,C[8],11,-2022574463),T=l(T,A,y,x,C[11],16,1839030562),x=l(x,T,A,y,C[14],23,-35309556),y=l(y,x,T,A,C[1],4,-1530992060),A=l(A,y,x,T,C[4],11,1272893353),T=l(T,A,y,x,C[7],16,-155497632),x=l(x,T,A,y,C[10],23,-1094730640),y=l(y,x,T,A,C[13],4,681279174),A=l(A,y,x,T,C[0],11,-358537222),T=l(T,A,y,x,C[3],16,-722521979),x=l(x,T,A,y,C[6],23,76029189),y=l(y,x,T,A,C[9],4,-640364487),A=l(A,y,x,T,C[12],11,-421815835),T=l(T,A,y,x,C[15],16,530742520),x=l(x,T,A,y,C[2],23,-995338651),y=u(y,x,T,A,C[0],6,-198630844),A=u(A,y,x,T,C[7],10,1126891415),T=u(T,A,y,x,C[14],15,-1416354905),x=u(x,T,A,y,C[5],21,-57434055),y=u(y,x,T,A,C[12],6,1700485571),A=u(A,y,x,T,C[3],10,-1894986606),T=u(T,A,y,x,C[10],15,-1051523),x=u(x,T,A,y,C[1],21,-2054922799),y=u(y,x,T,A,C[8],6,1873313359),A=u(A,y,x,T,C[15],10,-30611744),T=u(T,A,y,x,C[6],15,-1560198380),x=u(x,T,A,y,C[13],21,1309151649),y=u(y,x,T,A,C[4],6,-145523070),A=u(A,y,x,T,C[11],10,-1120210379),T=u(T,A,y,x,C[2],15,718787259),x=u(x,T,A,y,C[9],21,-343485551),S[0]=a(y,S[0]),S[1]=a(x,S[1]),S[2]=a(T,S[2]),S[3]=a(A,S[3])},f=function(S){var C,y=[];for(C=0;64>C;C+=4)y[C>>2]=S.charCodeAt(C)+(S.charCodeAt(C+1)<<8)+(S.charCodeAt(C+2)<<16)+(S.charCodeAt(C+3)<<24);return y},d=function(S){var C,y=[];for(C=0;64>C;C+=4)y[C>>2]=S[C]+(S[C+1]<<8)+(S[C+2]<<16)+(S[C+3]<<24);return y},h=function(S){var C,y,x,T,A,M,E=S.length,I=[1732584193,-271733879,-1732584194,271733878];for(C=64;E>=C;C+=64)c(I,f(S.substring(C-64,C)));for(S=S.substring(C-64),y=S.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C=0;y>C;C+=1)x[C>>2]|=S.charCodeAt(C)<<(C%4<<3);if(x[C>>2]|=128<<(C%4<<3),C>55)for(c(I,x),C=0;16>C;C+=1)x[C]=0;return T=8*E,T=T.toString(16).match(/(.*?)(.{0,8})$/),A=parseInt(T[2],16),M=parseInt(T[1],16)||0,x[14]=A,x[15]=M,c(I,x),I},v=function(S){var C,y,x,T,A,M,E=S.length,I=[1732584193,-271733879,-1732584194,271733878];for(C=64;E>=C;C+=64)c(I,d(S.subarray(C-64,C)));for(S=E>C-64?S.subarray(C-64):new Uint8Array(0),y=S.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],C=0;y>C;C+=1)x[C>>2]|=S[C]<<(C%4<<3);if(x[C>>2]|=128<<(C%4<<3),C>55)for(c(I,x),C=0;16>C;C+=1)x[C]=0;return T=8*E,T=T.toString(16).match(/(.*?)(.{0,8})$/),A=parseInt(T[2],16),M=parseInt(T[1],16)||0,x[14]=A,x[15]=M,c(I,x),I},p=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],g=function(S){var C,y="";for(C=0;4>C;C+=1)y+=p[15&S>>8*C+4]+p[15&S>>8*C];return y},m=function(S){var C;for(C=0;C<S.length;C+=1)S[C]=g(S[C]);return S.join("")},b=function(S){return m(h(S))},w=function(){this.reset()};return b("hello")!=="5d41402abc4b2a76b9719d911017c592"&&(a=function(S,C){var y=(65535&S)+(65535&C),x=(S>>16)+(C>>16)+(y>>16);return x<<16|65535&y}),w.prototype.append=function(S){return/[\u0080-\uFFFF]/.test(S)&&(S=unescape(encodeURIComponent(S))),this.appendBinary(S),this},w.prototype.appendBinary=function(S){this._buff+=S,this._length+=S.length;var C,y=this._buff.length;for(C=64;y>=C;C+=64)c(this._state,f(this._buff.substring(C-64,C)));return this._buff=this._buff.substr(C-64),this},w.prototype.end=function(S){var C,y,x=this._buff,T=x.length,A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(C=0;T>C;C+=1)A[C>>2]|=x.charCodeAt(C)<<(C%4<<3);return this._finish(A,T),y=S?this._state:m(this._state),this.reset(),y},w.prototype._finish=function(S,C){var y,x,T,A=C;if(S[A>>2]|=128<<(A%4<<3),A>55)for(c(this._state,S),A=0;16>A;A+=1)S[A]=0;y=8*this._length,y=y.toString(16).match(/(.*?)(.{0,8})$/),x=parseInt(y[2],16),T=parseInt(y[1],16)||0,S[14]=x,S[15]=T,c(this._state,S)},w.prototype.reset=function(){return this._buff="",this._length=0,this._state=[1732584193,-271733879,-1732584194,271733878],this},w.prototype.destroy=function(){delete this._state,delete this._buff,delete this._length},w.hash=function(S,C){/[\u0080-\uFFFF]/.test(S)&&(S=unescape(encodeURIComponent(S)));var y=h(S);return C?y:m(y)},w.hashBinary=function(S,C){var y=h(S);return C?y:m(y)},w.ArrayBuffer=function(){this.reset()},w.ArrayBuffer.prototype.append=function(S){var C,y=this._concatArrayBuffer(this._buff,S),x=y.length;for(this._length+=S.byteLength,C=64;x>=C;C+=64)c(this._state,d(y.subarray(C-64,C)));return this._buff=x>C-64?y.subarray(C-64):new Uint8Array(0),this},w.ArrayBuffer.prototype.end=function(S){var C,y,x=this._buff,T=x.length,A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(C=0;T>C;C+=1)A[C>>2]|=x[C]<<(C%4<<3);return this._finish(A,T),y=S?this._state:m(this._state),this.reset(),y},w.ArrayBuffer.prototype._finish=w.prototype._finish,w.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._state=[1732584193,-271733879,-1732584194,271733878],this},w.ArrayBuffer.prototype.destroy=w.prototype.destroy,w.ArrayBuffer.prototype._concatArrayBuffer=function(S,C){var y=S.length,x=new Uint8Array(y+C.byteLength);return x.set(S),x.set(new Uint8Array(C),y),x},w.ArrayBuffer.hash=function(S,C){var y=v(new Uint8Array(S));return C?y:m(y)},r.register("Md5",{init:function(){},loadFromBlob:function(S){var C,y,x=S.getSource(),T=2097152,A=Math.ceil(x.size/T),M=0,E=this.owner,I=new w.ArrayBuffer,L=this,O=x.mozSlice||x.webkitSlice||x.slice;y=new FileReader,C=function(){var z,F;z=M*T,F=Math.min(z+T,x.size),y.onload=function($){I.append($.target.result),E.trigger("progress",{total:S.size,loaded:F})},y.onloadend=function(){y.onloadend=y.onload=null,++M<A?setTimeout(C,1):setTimeout(function(){E.trigger("load"),L.result=I.end(),C=S=x=I=null,E.trigger("complete")},50)},y.readAsArrayBuffer(O.call(x,z,F))},C()},getResult:function(){return this.result}})}),t("runtime/flash/runtime",["base","runtime/runtime","runtime/compbase"],function(r,a,i){function o(){var f;try{f=navigator.plugins["Shockwave Flash"],f=f.description}catch{try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch{f="0.0"}}return f=f.match(/\d+/g),parseFloat(f[0]+"."+f[1],10)}function s(){function f(m,b){var w,S,C=m.type||m;w=C.split("::"),S=w[0],C=w[1],C==="Ready"&&S===p.uid?p.trigger("ready"):h[S]&&h[S].trigger(C.toLowerCase(),m,b)}var d={},h={},v=this.destroy,p=this,g=r.guid("webuploader_");a.apply(p,arguments),p.type=u,p.exec=function(m,b){var w,S=this,C=S.uid,y=r.slice(arguments,2);return h[C]=S,c[m]&&(d[C]||(d[C]=new c[m](S,p)),w=d[C],w[b])?w[b].apply(w,y):p.flashExec.apply(S,arguments)},e[g]=function(){var m=arguments;setTimeout(function(){f.apply(null,m)},1)},this.jsreciver=g,this.destroy=function(){return v&&v.apply(this,arguments)},this.flashExec=function(m,b){var w=p.getFlash(),S=r.slice(arguments,2);return w.exec(this.uid,m,b,S)}}var l=r.$,u="flash",c={};return r.inherits(a,{constructor:s,init:function(){var f,d=this.getContainer(),h=this.options;d.css({position:"absolute",top:"-8px",left:"-8px",width:"9px",height:"9px",overflow:"hidden"}),f='<object id="'+this.uid+'" type="application/x-shockwave-flash" data="'+h.swf+'" ',r.browser.ie&&(f+='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '),f+='width="100%" height="100%" style="outline:0"><param name="movie" value="'+h.swf+'" /><param name="flashvars" value="uid='+this.uid+"&jsreciver="+this.jsreciver+'" /><param name="wmode" value="transparent" /><param name="allowscriptaccess" value="always" /></object>',d.html(f)},getFlash:function(){return this._flash?this._flash:(this._flash=l("#"+this.uid).get(0),this._flash)}}),s.register=function(f,d){return d=c[f]=r.inherits(i,l.extend({flashExec:function(){var h=this.owner,v=this.getRuntime();return v.flashExec.apply(h,arguments)}},d))},o()>=11.4&&a.addRuntime(u,s),s}),t("runtime/flash/filepicker",["base","runtime/flash/runtime"],function(r,a){var i=r.$;return a.register("FilePicker",{init:function(o){var s,l,u=i.extend({},o);for(s=u.accept&&u.accept.length,l=0;s>l;l++)u.accept[l].title||(u.accept[l].title="Files");delete u.button,delete u.id,delete u.container,this.flashExec("FilePicker","init",u)},destroy:function(){this.flashExec("FilePicker","destroy")}})}),t("runtime/flash/image",["runtime/flash/runtime"],function(r){return r.register("Image",{loadFromBlob:function(a){var i=this.owner;i.info()&&this.flashExec("Image","info",i.info()),i.meta()&&this.flashExec("Image","meta",i.meta()),this.flashExec("Image","loadFromBlob",a.uid)}})}),t("runtime/flash/transport",["base","runtime/flash/runtime","runtime/client"],function(r,a,i){var o=r.$;return a.register("Transport",{init:function(){this._status=0,this._response=null,this._responseJson=null},send:function(){var s,l=this.owner,u=this.options,c=this._initAjax(),f=l._blob,d=u.server;c.connectRuntime(f.ruid),u.sendAsBinary?(d+=(/\?/.test(d)?"&":"?")+o.param(l._formData),s=f.uid):(o.each(l._formData,function(h,v){c.exec("append",h,v)}),c.exec("appendBlob",u.fileVal,f.uid,u.filename||l._formData.name||"")),this._setRequestHeader(c,u.headers),c.exec("send",{method:u.method,url:d,forceURLStream:u.forceURLStream,mimeType:"application/octet-stream"},s)},getStatus:function(){return this._status},getResponse:function(){return this._response||""},getResponseAsJson:function(){return this._responseJson},getResponseHeaders:function(){return{}},abort:function(){var s=this._xhr;s&&(s.exec("abort"),s.destroy(),this._xhr=s=null)},destroy:function(){this.abort()},_initAjax:function(){var s=this,l=new i("XMLHttpRequest");return l.on("uploadprogress progress",function(u){var c=u.loaded/u.total;return c=Math.min(1,Math.max(0,c)),s.trigger("progress",c)}),l.on("load",function(){var u,c=l.exec("getStatus"),f=!1,d="";return l.off(),s._xhr=null,c>=200&&300>c?f=!0:c>=500&&600>c?(f=!0,d="server-"+c):d="http-"+c,f&&(s._response=l.exec("getResponse"),s._response=decodeURIComponent(s._response),u=function(h){try{return e.JSON&&e.JSON.parse?JSON.parse(h):new Function("return "+h).call()}catch{return{}}},s._responseJson=s._response?u(s._response):{}),l.destroy(),l=null,d?s.trigger("error",d):s.trigger("load")}),l.on("error",function(){var u=l.exec("getStatus"),c=u?"http-"+u:"http";l.off(),s._xhr=null,s.trigger("error",c)}),s._xhr=l,l},_setRequestHeader:function(s,l){o.each(l,function(u,c){s.exec("setRequestHeader",u,c)})}})}),t("runtime/flash/blob",["runtime/flash/runtime","lib/blob"],function(r,a){return r.register("Blob",{slice:function(i,o){var s=this.flashExec("Blob","slice",i,o);return new a(this.getRuid(),s)}})}),t("runtime/flash/md5",["runtime/flash/runtime"],function(r){return r.register("Md5",{init:function(){},loadFromBlob:function(a){return this.flashExec("Md5","loadFromBlob",a.uid)}})}),t("preset/all",["base","widgets/filednd","widgets/filepaste","widgets/filepicker","widgets/image","widgets/queue","widgets/runtime","widgets/upload","widgets/validator","widgets/md5","runtime/html5/blob","runtime/html5/dnd","runtime/html5/filepaste","runtime/html5/filepicker","runtime/html5/imagemeta/exif","runtime/html5/androidpatch","runtime/html5/image","runtime/html5/transport","runtime/html5/md5","runtime/flash/filepicker","runtime/flash/image","runtime/flash/transport","runtime/flash/blob","runtime/flash/md5"],function(r){return r}),t("widgets/log",["base","uploader","widgets/widget"],function(r,a){function i(f){var d=s.extend({},o,f),h=l.replace(/^(.*)\?/,"$1"+s.param(d)),v=new Image;v.src=h}var o,s=r.$,l=" http://static.tieba.baidu.com/tb/pms/img/st.gif??",u=(location.hostname||location.host||"protected").toLowerCase(),c=u&&/baidu/i.exec(u);if(c)return o={dv:3,master:"webuploader",online:/test/.exec(u)?0:1,module:"",product:u,type:0},a.register({name:"log",init:function(){var f=this.owner,d=0,h=0;f.on("error",function(v){i({type:2,c_error_code:v})}).on("uploadError",function(v,p){i({type:2,c_error_code:"UPLOAD_ERROR",c_reason:""+p})}).on("uploadComplete",function(v){d++,h+=v.size}).on("uploadFinished",function(){i({c_count:d,c_size:h}),d=h=0}),i({c_usage:1})}})}),t("webuploader",["preset/all","widgets/log"],function(r){return r}),n("webuploader")});/*! *****************************************************************************
  68. Copyright (c) Microsoft Corporation.
  69. Permission to use, copy, modify, and/or distribute this software for any
  70. purpose with or without fee is hereby granted.
  71. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  72. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  73. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  74. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  75. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  76. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  77. PERFORMANCE OF THIS SOFTWARE.
  78. ***************************************************************************** */var Tk=function(e,t){return Tk=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])},Tk(e,t)};function Ne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Tk(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var fDe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),dDe=function(){function e(){this.browser=new fDe,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}(),Xc=new dDe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Xc.wxa=!0,Xc.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Xc.worker=!0:typeof navigator>"u"?(Xc.node=!0,Xc.svgSupported=!0):hDe(navigator.userAgent,Xc);function hDe(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 Mn=Xc;var _I=12,K7="sans-serif",Uu=_I+"px "+K7,vDe=20,pDe=100,gDe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function mDe(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)-vDe)/pDe;t[r]=a}return t}var yDe=mDe(gDe),Qo={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(n,r){if(!e){var a=Qo.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==r&&(t=e.font=r||Uu),e.measureText(n);n=n||"",r=r||Uu;var i=/(\d+)px/.exec(r),o=i&&+i[1]||_I,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var u=yDe[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 j7(e){for(var t in Qo)e[t]&&(Qo[t]=e[t])}var Y7=bo(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),q7=bo(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Cv=Object.prototype.toString,$w=Array.prototype,bDe=$w.forEach,_De=$w.filter,wI=$w.slice,wDe=$w.map,n$=(function(){}).constructor,w0=n$?n$.prototype:null,SI="__proto__",SDe=2311;function CI(){return SDe++}function Bw(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Ft(e){if(e==null||typeof e!="object")return e;var t=e,n=Cv.call(e);if(n==="[object Array]"){if(!Ah(e)){t=[];for(var r=0,a=e.length;r<a;r++)t[r]=Ft(e[r])}}else if(q7[n]){if(!Ah(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(!Y7[n]&&!Ah(e)&&!rv(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==SI&&(t[o]=Ft(e[o]))}return t}function rn(e,t,n){if(!Ot(t)||!Ot(e))return n?Ft(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==SI){var a=e[r],i=t[r];Ot(i)&&Ot(a)&&!et(i)&&!et(a)&&!rv(i)&&!rv(a)&&!kk(i)&&!kk(a)&&!Ah(i)&&!Ah(a)?rn(a,i,n):(n||!(r in e))&&(e[r]=Ft(t[r]))}return e}function Fw(e,t){for(var n=e[0],r=1,a=e.length;r<a;r++)n=rn(n,e[r],t);return n}function je(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==SI&&(e[n]=t[n]);return e}function Lt(e,t,n){for(var r=_n(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 CDe=Qo.createCanvas;function cn(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 xI(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 Ir(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),a=0;a<r.length;a++){var i=r[a];i!=="constructor"&&(n?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else Lt(e,t,n)}function Ca(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function K(e,t,n){if(e&&t)if(e.forEach&&e.forEach===bDe)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 at(e,t,n){if(!e)return[];if(!t)return Vw(e);if(e.map&&e.map===wDe)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 bo(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 zn(e,t,n){if(!e)return[];if(!t)return Vw(e);if(e.filter&&e.filter===_De)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 X7(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 _n(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 xDe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(wI.call(arguments)))}}var Ct=w0&&It(w0.bind)?w0.call.bind(w0.bind):xDe;function Zt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(wI.call(arguments)))}}function et(e){return Array.isArray?Array.isArray(e):Cv.call(e)==="[object Array]"}function It(e){return typeof e=="function"}function St(e){return typeof e=="string"}function Y1(e){return Cv.call(e)==="[object String]"}function Dn(e){return typeof e=="number"}function Ot(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function kk(e){return!!Y7[Cv.call(e)]}function Ci(e){return!!q7[Cv.call(e)]}function rv(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function vy(e){return e.colorStops!=null}function Z7(e){return e.image!=null}function J7(e){return Cv.call(e)==="[object RegExp]"}function av(e){return e!==e}function na(){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 on(e,t){return e??t}function Yo(e,t,n){return e??t??n}function Vw(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return wI.apply(e,t)}function zw(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 Ba(e,t){if(!e)throw new Error(t)}function oo(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Q7="__ec_primitive__";function gm(e){e[Q7]=!0}function Ah(e){return e[Q7]}var TDe=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 _n(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&t(n[r],r)},e}(),eG=typeof Map=="function";function kDe(){return eG?new Map:new TDe}var tG=function(){function e(t){var n=et(t);this.data=kDe();var r=this;t instanceof e?t.each(a):t&&K(t,a);function a(i,o){n?r.set(i,o):r.set(o,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(r,a){t.call(n,r,a)})},e.prototype.keys=function(){var t=this.data.keys();return eG?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Et(e){return new tG(e)}function mm(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 py(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&je(n,t),n}function TI(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Tt(e,t){return e.hasOwnProperty(t)}function Er(){}var mg=180/Math.PI;const ADe=Object.freeze(Object.defineProperty({__proto__:null,HashMap:tG,RADIAN_TO_DEGREE:mg,assert:Ba,bind:Ct,clone:Ft,concatArray:mm,createCanvas:CDe,createHashMap:Et,createObject:py,curry:Zt,defaults:Lt,disableUserSelect:TI,each:K,eqNaN:av,extend:je,filter:zn,find:X7,guid:CI,hasOwn:Tt,indexOf:cn,inherits:xI,isArray:et,isArrayLike:Ca,isBuiltInObject:kk,isDom:rv,isFunction:It,isGradientObject:vy,isImagePatternObject:Z7,isNumber:Dn,isObject:Ot,isPrimitive:Ah,isRegExp:J7,isString:St,isStringSafe:Y1,isTypedArray:Ci,keys:_n,logError:Bw,map:at,merge:rn,mergeAll:Fw,mixin:Ir,noop:Er,normalizeCssArray:zw,reduce:bo,retrieve:na,retrieve2:on,retrieve3:Yo,setAsPrimitive:gm,slice:Vw,trim:oo},Symbol.toStringTag,{value:"Module"}));function sc(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Ia(e,t){return e[0]=t[0],e[1]=t[1],e}function Ps(e){return[e[0],e[1]]}function nG(e,t,n){return e[0]=t,e[1]=n,e}function Ak(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function q1(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function _u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function ym(e){return Math.sqrt(kI(e))}var EDe=ym;function kI(e){return e[0]*e[0]+e[1]*e[1]}var MDe=kI;function IDe(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function DDe(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function LDe(e,t){return e[0]*t[0]+e[1]*t[1]}function yg(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function cd(e,t){var n=ym(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function X1(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var sl=X1;function rG(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Du=rG;function PDe(e,t){return e[0]=-t[0],e[1]=-t[1],e}function bg(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 pa(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 ll(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function ul(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}const RDe=Object.freeze(Object.defineProperty({__proto__:null,add:Ak,applyTransform:pa,clone:Ps,copy:Ia,create:sc,dist:sl,distSquare:Du,distance:X1,distanceSquare:rG,div:DDe,dot:LDe,len:ym,lenSquare:kI,length:EDe,lengthSquare:MDe,lerp:bg,max:ul,min:ll,mul:IDe,negate:PDe,normalize:cd,scale:yg,scaleAndAdd:q1,set:nG,sub:_u},Symbol.toStringTag,{value:"Module"}));var Dd=function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e}(),ODe=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 Dd(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 Dd(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 Dd(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Dd(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Dd(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Dd(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}();const NDe=ODe;var $De=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 wo=$De;var BDe=Math.log(2);function Ek(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)/BDe);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]*Ek(e,t-1,c,u,a|v,i),h++)}return i[o]=f,f}function r$(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=Ek(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)*Ek(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 a$="___zrEVENTSAVED",MC=[];function FDe(e,t,n,r,a){return Mk(MC,t,r,a,!0)&&Mk(e,n,MC[0],MC[1])}function Mk(e,t,n,r,a){if(t.getBoundingClientRect&&Mn.domSupported&&!aG(t)){var i=t[a$]||(t[a$]={}),o=VDe(t,i),s=zDe(o,i,a);if(s)return s(e,n,r),!0}return!1}function VDe(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 zDe(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?r$(s,o):r$(o,s))}function aG(e){return e.nodeName.toUpperCase()==="CANVAS"}var HDe=/([&<>"'])/g,WDe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function qa(e){return e==null?"":(e+"").replace(HDe,function(t,n){return WDe[n]})}var GDe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,IC=[],UDe=Mn.browser.firefox&&+Mn.browser.version.split(".")[0]<39;function Ik(e,t,n,r){return n=n||{},r?i$(e,t,n):UDe&&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):i$(e,t,n),n}function i$(e,t,n){if(Mn.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(aG(e)){var i=e.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(Mk(IC,e,r,a)){n.zrX=IC[0],n.zrY=IC[1];return}}n.zrX=n.zrY=0}function AI(e){return e||window.event}function qi(e,t,n){if(t=AI(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&&Ik(e,o,t,n)}else{Ik(e,t,t,n);var i=KDe(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&GDe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function KDe(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 Dk(e,t,n,r){e.addEventListener(t,n,r)}function jDe(e,t,n,r){e.removeEventListener(t,n,r)}var Cl=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function o$(e){return e.which===2||e.which===3}var YDe=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=Ik(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 DC)if(DC.hasOwnProperty(n)){var r=DC[n](this._track,t);if(r)return r}},e}();function s$(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function qDe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var DC={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=s$(r)/s$(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=qDe(r);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Bi(){return[1,0,0,1,0,0]}function gy(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Hw(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 Rs(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 es(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 lc(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 Ww(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 fd(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 iG(e){var t=Bi();return Hw(t,e),t}const XDe=Object.freeze(Object.defineProperty({__proto__:null,clone:iG,copy:Hw,create:Bi,identity:gy,invert:fd,mul:Rs,rotate:lc,scale:Ww,translate:es},Symbol.toStringTag,{value:"Module"}));var ZDe=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 an=ZDe;var S0=Math.min,C0=Math.max,Tc=new an,kc=new an,Ac=new an,Ec=new an,up=new an,cp=new an,JDe=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=S0(t.x,this.x),r=S0(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=C0(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=C0(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=Bi();return es(i,i,[-n.x,-n.y]),Ww(i,i,[r,a]),es(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),w=Math.min(p,g),S=Math.min(m,b);i<l||u<a?w>v&&(v=w,p<g?an.set(cp,-p,0):an.set(cp,g,0)):w<h&&(h=w,p<g?an.set(up,p,0):an.set(up,-g,0)),s<c||f<o?S>v&&(v=S,m<b?an.set(cp,0,-m):an.set(cp,0,b)):w<h&&(h=w,m<b?an.set(up,0,m):an.set(up,0,-b))}return n&&an.copy(n,d?up:cp),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}Tc.x=Ac.x=n.x,Tc.y=Ec.y=n.y,kc.x=Ec.x=n.x+n.width,kc.y=Ac.y=n.y+n.height,Tc.transform(r),Ec.transform(r),kc.transform(r),Ac.transform(r),t.x=S0(Tc.x,kc.x,Ac.x,Ec.x),t.y=S0(Tc.y,kc.y,Ac.y,Ec.y);var l=C0(Tc.x,kc.x,Ac.x,Ec.x),u=C0(Tc.y,kc.y,Ac.y,Ec.y);t.width=l-t.x,t.height=u-t.y},e}();const sn=JDe;var oG="silent";function QDe(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:eLe}}function eLe(){Cl(this.event)}var tLe=function(e){Ne(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}(wo),fp=function(){function e(t,n){this.x=t,this.y=n}return e}(),nLe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],LC=new sn(0,0,0,0),sG=function(e){Ne(t,e);function t(n,r,a,i,o){var s=e.call(this)||this;return s._hovered=new fp(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new tLe,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new NDe(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(K(nLe,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=lG(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 fp(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 fp(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=QDe(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 fp(n,r);if(l$(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new sn(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)&&(LC.copy(d.getBoundingRect()),d.transform&&LC.applyTransform(d.transform),LC.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),w=r+g*Math.sin(m);if(l$(s,o,b,w,a),o.target)return o}}return o},t.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new YDe);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 fp;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(wo);K(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){sG.prototype[e]=function(t){var n=t.zrX,r=t.zrY,a=lG(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||sl(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function rLe(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?oG:!0}return!1}function l$(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=rLe(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==oG)){t.target=o;break}}}function lG(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}const aLe=sG;var uG=32,dp=7;function iLe(e){for(var t=0;e>=uG;)t|=e&1,e>>=1;return e+t}function u$(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++;oLe(e,t,a)}else for(;a<n&&r(e[a],e[a-1])>=0;)a++;return a-t}function oLe(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function c$(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 PC(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 RC(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 sLe(e,t){var n=dp,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=RC(e[g],e,v,p,0,t);v+=b,p-=b,p!==0&&(m=PC(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,w=p,S=h;if(e[S++]=e[w++],--g===0){for(m=0;m<v;m++)e[S+m]=o[b+m];return}if(v===1){for(m=0;m<g;m++)e[S+m]=e[w+m];e[S+g]=o[b];return}for(var C=n,y,x,T;;){y=0,x=0,T=!1;do if(t(e[w],o[b])<0){if(e[S++]=e[w++],x++,y=0,--g===0){T=!0;break}}else if(e[S++]=o[b++],y++,x=0,--v===1){T=!0;break}while((y|x)<C);if(T)break;do{if(y=RC(e[w],o,b,v,0,t),y!==0){for(m=0;m<y;m++)e[S+m]=o[b+m];if(S+=y,b+=y,v-=y,v<=1){T=!0;break}}if(e[S++]=e[w++],--g===0){T=!0;break}if(x=PC(o[b],e,w,g,0,t),x!==0){for(m=0;m<x;m++)e[S+m]=e[w+m];if(S+=x,w+=x,g-=x,g===0){T=!0;break}}if(e[S++]=o[b++],--v===1){T=!0;break}C--}while(y>=dp||x>=dp);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[S+m]=e[w+m];e[S+g]=o[b]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[S+m]=o[b+m]}}function d(h,v,p,g){var m=0;for(m=0;m<g;m++)o[m]=e[p+m];var b=h+v-1,w=g-1,S=p+g-1,C=0,y=0;if(e[S--]=e[b--],--v===0){for(C=S-(g-1),m=0;m<g;m++)e[C+m]=o[m];return}if(g===1){for(S-=v,b-=v,y=S+1,C=b+1,m=v-1;m>=0;m--)e[y+m]=e[C+m];e[S]=o[w];return}for(var x=n;;){var T=0,A=0,M=!1;do if(t(o[w],e[b])<0){if(e[S--]=e[b--],T++,A=0,--v===0){M=!0;break}}else if(e[S--]=o[w--],A++,T=0,--g===1){M=!0;break}while((T|A)<x);if(M)break;do{if(T=v-RC(o[w],e,h,v,v-1,t),T!==0){for(S-=T,b-=T,v-=T,y=S+1,C=b+1,m=T-1;m>=0;m--)e[y+m]=e[C+m];if(v===0){M=!0;break}}if(e[S--]=o[w--],--g===1){M=!0;break}if(A=g-PC(e[b],o,0,g,g-1,t),A!==0){for(S-=A,w-=A,g-=A,y=S+1,C=w+1,m=0;m<A;m++)e[y+m]=o[C+m];if(g<=1){M=!0;break}}if(e[S--]=e[b--],--v===0){M=!0;break}x--}while(T>=dp||A>=dp);if(M)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),g===1){for(S-=v,b-=v,y=S+1,C=b+1,m=v-1;m>=0;m--)e[y+m]=e[C+m];e[S]=o[w]}else{if(g===0)throw new Error;for(C=S-(g-1),m=0;m<g;m++)e[C+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function t1(e,t,n,r){n||(n=0),r||(r=e.length);var a=r-n;if(!(a<2)){var i=0;if(a<uG){i=u$(e,n,r,t),c$(e,n,r,n+i,t);return}var o=sLe(e,t),s=iLe(a);do{if(i=u$(e,n,r,t),i<s){var l=a;l>s&&(l=s),c$(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 Mi=1,Wp=2,rh=4,f$=!1;function OC(){f$||(f$=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function d$(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var lLe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=d$}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,t1(r,d$)},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|=Mi),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)&&(OC(),c.z=0),isNaN(c.z2)&&(OC(),c.z2=0),isNaN(c.zlevel)&&(OC(),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=cn(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 uLe=lLe;var cG;cG=Mn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Lk=cG;var n1={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-n1.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?n1.bounceIn(e*2)*.5:n1.bounceOut(e*2-1)*.5+.5}};const fG=n1;var x0=Math.pow,Lu=Math.sqrt,Z1=1e-8,dG=1e-4,h$=Lu(3),T0=1/3,Ts=sc(),eo=sc(),Eh=sc();function wu(e){return e>-Z1&&e<Z1}function hG(e){return e>Z1||e<-Z1}function ea(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 v$(e,t,n,r,a){var i=1-a;return 3*(((t-e)*i+2*(n-t)*a)*i+(r-n)*a*a)}function J1(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(wu(c)&&wu(f))if(wu(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(wu(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=Lu(p),w=c*s+1.5*o*(-f+b),S=c*s+1.5*o*(-f-b);w<0?w=-x0(-w,T0):w=x0(w,T0),S<0?S=-x0(-S,T0):S=x0(S,T0);var v=(-s-(w+S))/(3*o);v>=0&&v<=1&&(i[h++]=v)}else{var C=(2*c*s-3*o*f)/(2*Lu(c*c*c)),y=Math.acos(C)/3,x=Lu(c),T=Math.cos(y),v=(-s-2*x*T)/(3*o),m=(-s+x*(T+h$*Math.sin(y)))/(3*o),A=(-s+x*(T-h$*Math.sin(y)))/(3*o);v>=0&&v<=1&&(i[h++]=v),m>=0&&m<=1&&(i[h++]=m),A>=0&&A<=1&&(i[h++]=A)}}return h}function vG(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(wu(o)){if(hG(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(wu(c))a[0]=-i/(2*o);else if(c>0){var f=Lu(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 Ku(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 pG(e,t,n,r,a,i,o,s,l,u,c){var f,d=.005,h=1/0,v,p,g,m;Ts[0]=l,Ts[1]=u;for(var b=0;b<1;b+=.05)eo[0]=ea(e,n,a,o,b),eo[1]=ea(t,r,i,s,b),g=Du(Ts,eo),g<h&&(f=b,h=g);h=1/0;for(var w=0;w<32&&!(d<dG);w++)v=f-d,p=f+d,eo[0]=ea(e,n,a,o,v),eo[1]=ea(t,r,i,s,v),g=Du(eo,Ts),v>=0&&g<h?(f=v,h=g):(Eh[0]=ea(e,n,a,o,p),Eh[1]=ea(t,r,i,s,p),m=Du(Eh,Ts),p<=1&&m<h?(f=p,h=m):d*=.5);return c&&(c[0]=ea(e,n,a,o,f),c[1]=ea(t,r,i,s,f)),Lu(h)}function cLe(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=ea(e,n,a,o,v),g=ea(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 ha(e,t,n,r){var a=1-r;return a*(a*e+2*r*t)+r*r*n}function Pk(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function fLe(e,t,n,r,a){var i=e-2*t+n,o=2*(t-e),s=e-r,l=0;if(wu(i)){if(hG(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(wu(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Lu(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 gG(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function bm(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 mG(e,t,n,r,a,i,o,s,l){var u,c=.005,f=1/0;Ts[0]=o,Ts[1]=s;for(var d=0;d<1;d+=.05){eo[0]=ha(e,n,a,d),eo[1]=ha(t,r,i,d);var h=Du(Ts,eo);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<dG);v++){var p=u-c,g=u+c;eo[0]=ha(e,n,a,p),eo[1]=ha(t,r,i,p);var h=Du(eo,Ts);if(p>=0&&h<f)u=p,f=h;else{Eh[0]=ha(e,n,a,g),Eh[1]=ha(t,r,i,g);var m=Du(Eh,Ts);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=ha(e,n,a,u),l[1]=ha(t,r,i,u)),Lu(f)}function dLe(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=ha(e,n,a,d),v=ha(t,r,i,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var hLe=/cubic-bezier\(([0-9,\.e ]+)\)/;function EI(e){var t=e&&hLe.exec(e);if(t){var n=t[1].split(","),r=+oo(n[0]),a=+oo(n[1]),i=+oo(n[2]),o=+oo(n[3]);if(isNaN(r+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:J1(0,r,i,1,l,s)&&ea(0,a,o,1,s[0])}}}var vLe=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||Er,this.ondestroy=t.ondestroy||Er,this.onrestart=t.onrestart||Er,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=It(t)?t:fG[t]||EI(t)},e}();const pLe=vLe;var yG=function(){function e(t){this.value=t}return e}(),gLe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new yG(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}(),mLe=function(){function e(t){this._list=new gLe,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 yG(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 my=mLe;var p$={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 qo(e){return e=Math.round(e),e<0?0:e>255?255:e}function yLe(e){return e=Math.round(e),e<0?0:e>360?360:e}function _m(e){return e<0?0:e>1?1:e}function NC(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?qo(parseFloat(t)/100*255):qo(parseInt(t,10))}function Rf(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?_m(parseFloat(t)/100):_m(parseFloat(t))}function $C(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 Su(e,t,n){return e+(t-e)*n}function Yi(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}function Rk(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var bG=new my(20),k0=null;function Ld(e,t){k0&&Rk(k0,t),k0=bG.put(e,k0||t.slice())}function Qa(e,t){if(e){t=t||[];var n=bG.get(e);if(n)return Rk(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in p$)return Rk(t,p$[r]),Ld(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)){Yi(t,0,0,0,1);return}return Yi(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),Ld(e,t),t}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Yi(t,0,0,0,1);return}return Yi(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Ld(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?Yi(t,+u[0],+u[1],+u[2],1):Yi(t,0,0,0,1);c=Rf(u.pop());case"rgb":if(u.length>=3)return Yi(t,NC(u[0]),NC(u[1]),NC(u[2]),u.length===3?c:Rf(u[3])),Ld(e,t),t;Yi(t,0,0,0,1);return;case"hsla":if(u.length!==4){Yi(t,0,0,0,1);return}return u[3]=Rf(u[3]),Ok(u,t),Ld(e,t),t;case"hsl":if(u.length!==3){Yi(t,0,0,0,1);return}return Ok(u,t),Ld(e,t),t;default:return}}Yi(t,0,0,0,1)}}function Ok(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Rf(e[1]),a=Rf(e[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return t=t||[],Yi(t,qo($C(o,i,n+1/3)*255),qo($C(o,i,n)*255),qo($C(o,i,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function bLe(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 Q1(e,t){var n=Qa(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 Xo(n,n.length===4?"rgba":"rgb")}}function _Le(e){var t=Qa(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function _g(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]=qo(Su(o[0],s[0],l)),n[1]=qo(Su(o[1],s[1],l)),n[2]=qo(Su(o[2],s[2],l)),n[3]=_m(Su(o[3],s[3],l)),n}}var wLe=_g;function MI(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=Qa(t[a]),s=Qa(t[i]),l=r-a,u=Xo([qo(Su(o[0],s[0],l)),qo(Su(o[1],s[1],l)),qo(Su(o[2],s[2],l)),_m(Su(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}var SLe=MI;function Mh(e,t,n,r){var a=Qa(e);if(e)return a=bLe(a),t!=null&&(a[0]=yLe(t)),n!=null&&(a[1]=Rf(n)),r!=null&&(a[2]=Rf(r)),Xo(Ok(a),"rgba")}function wm(e,t){var n=Qa(e);if(n&&t!=null)return n[3]=_m(t),Xo(n,"rgba")}function Xo(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 Sm(e,t){var n=Qa(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function CLe(){return Xo([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const xLe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:_g,fastMapToColor:wLe,lerp:MI,lift:Q1,lum:Sm,mapToColor:SLe,modifyAlpha:wm,modifyHSL:Mh,parse:Qa,random:CLe,stringify:Xo,toHex:_Le},Symbol.toStringTag,{value:"Module"}));var e_=Math.round;function Cm(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var n=Qa(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}return{color:e,opacity:t??1}}var g$=1e-4;function Cu(e){return e<g$&&e>-g$}function A0(e){return e_(e*1e3)/1e3}function Nk(e){return e_(e*1e4)/1e4}function TLe(e){return"matrix("+A0(e[0])+","+A0(e[1])+","+A0(e[2])+","+A0(e[3])+","+Nk(e[4])+","+Nk(e[5])+")"}var kLe={left:"start",right:"end",center:"middle",middle:"middle"};function ALe(e,t,n){return n==="top"?e+=t/2:n==="bottom"&&(e-=t/2),e}function ELe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function MLe(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 _G(e){return e&&!!e.image}function ILe(e){return e&&!!e.svgElement}function II(e){return _G(e)||ILe(e)}function wG(e){return e.type==="linear"}function SG(e){return e.type==="radial"}function CG(e){return e&&(e.type==="linear"||e.type==="radial")}function Gw(e){return"url(#"+e+")"}function xG(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 TG(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*mg,a=on(e.scaleX,1),i=on(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("+e_(o*mg)+"deg, "+e_(s*mg)+"deg)"),l.join(" ")}var DLe=function(){return Mn.hasGlobalWindow&&It(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}}(),$k=Array.prototype.slice;function nl(e,t,n){return(t-e)*n+e}function BC(e,t,n,r){for(var a=t.length,i=0;i<a;i++)e[i]=nl(t[i],n[i],r);return e}function LLe(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]=nl(t[o][s],n[o][s],r)}return e}function E0(e,t,n,r){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+n[i]*r;return e}function m$(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 PLe(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 RLe(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]:$k.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 wg(e){if(Ca(e)){var t=e.length;if(Ca(e[0])){for(var n=[],r=0;r<t;r++)n.push($k.call(e[r]));return n}return $k.call(e)}return e}function r1(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 OLe(e){return Ca(e&&e[0])?2:1}var M0=0,a1=1,kG=2,Gp=3,Bk=4,Fk=5,y$=6;function b$(e){return e===Bk||e===Fk}function I0(e){return e===a1||e===kG}var hp=[0,0,0,0],NLe=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=y$,l=n;if(Ca(n)){var u=OLe(n);s=u,(u===1&&!Dn(n[0])||u===2&&!Dn(n[0][0]))&&(o=!0)}else if(Dn(n)&&!av(n))s=M0;else if(St(n))if(!isNaN(+n))s=M0;else{var c=Qa(n);c&&(l=c,s=Gp)}else if(vy(n)){var f=je({},l);f.colorStops=at(n.colorStops,function(h){return{offset:h.offset,color:Qa(h.color)}}),wG(n)?s=Bk:SG(n)&&(s=Fk),l=f}i===0?this.valType=s:(s!==this.valType||s===y$)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=It(r)?r:fG[r]||EI(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=I0(a),u=b$(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?RLe(d,h,a):u&&PLe(d.colorStops,h.colorStops))}if(!s&&a!==Fk&&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===M0?r[c].additiveValue=r[c].value-v:a===Gp?r[c].additiveValue=E0([],r[c].value,v,-1):I0(a)&&(r[c].additiveValue=a===a1?E0([],r[c].value,v,-1):m$([],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===Gp,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?hp:t[l];if((I0(i)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(I0(i))i===a1?BC(b,h[a],v[a],m):LLe(b,h[a],v[a],m);else if(b$(i)){var w=h[a],S=v[a],C=i===Bk;t[l]={type:C?"linear":"radial",x:nl(w.x,S.x,m),y:nl(w.y,S.y,m),colorStops:at(w.colorStops,function(x,T){var A=S.colorStops[T];return{offset:nl(x.offset,A.offset,m),color:r1(BC([],x.color,A.color,m))}}),global:S.global},C?(t[l].x2=nl(w.x2,S.x2,m),t[l].y2=nl(w.y2,S.y2,m)):t[l].r=nl(w.r,S.r,m)}else if(u)BC(b,h[a],v[a],m),r||(t[l]=r1(b));else{var y=nl(h[a],v[a],m);r?this._additiveValue=y:t[l]=y}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,a=this._additiveValue;n===M0?t[r]=t[r]+a:n===Gp?(Qa(t[r],hp),E0(hp,hp,a,1),t[r]=r1(hp)):n===a1?E0(t[r],t[r],a,1):n===kG&&m$(t[r],t[r],a,1)},e}(),$Le=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){Bw("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,_n(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 NLe(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===Gp&&u&&(u=r1(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,wg(u),a),this._trackKeys.push(s)}l.addKeyframe(t,wg(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 pLe({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 at(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]=wg(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||_n(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 DI=$Le;function hh(){return new Date().getTime()}var BLe=function(e){Ne(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=hh()-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&&(Lk(r),!n._paused&&n.update())}Lk(r)},t.prototype.start=function(){this._running||(this._time=hh(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=hh(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=hh()-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 DI(n,r.loop);return this.addAnimator(a),a},t}(wo);const FLe=BLe;var VLe=300,FC=Mn.domSupported,VC=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=at(e,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:r}}(),_$={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},w$=!1;function Vk(e){var t=e.pointerType;return t==="pen"||t==="touch"}function zLe(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 zC(e){e&&(e.zrByTouch=!0)}function HLe(e,t){return qi(e.dom,new WLe(e,t),!0)}function AG(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 WLe=function(){function e(t,n){this.stopPropagation=Er,this.stopImmediatePropagation=Er,this.preventDefault=Er,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e}(),Oo={mousedown:function(e){e=qi(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=qi(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=qi(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=qi(this.dom,e);var t=e.toElement||e.relatedTarget;AG(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){w$=!0,e=qi(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){w$||(e=qi(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=qi(this.dom,e),zC(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Oo.mousemove.call(this,e),Oo.mousedown.call(this,e)},touchmove:function(e){e=qi(this.dom,e),zC(e),this.handler.processGesture(e,"change"),Oo.mousemove.call(this,e)},touchend:function(e){e=qi(this.dom,e),zC(e),this.handler.processGesture(e,"end"),Oo.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<VLe&&Oo.click.call(this,e)},pointerdown:function(e){Oo.mousedown.call(this,e)},pointermove:function(e){Vk(e)||Oo.mousemove.call(this,e)},pointerup:function(e){Oo.mouseup.call(this,e)},pointerout:function(e){Vk(e)||Oo.mouseout.call(this,e)}};K(["click","dblclick","contextmenu"],function(e){Oo[e]=function(t){t=qi(this.dom,t),this.trigger(e,t)}});var zk={pointermove:function(e){Vk(e)||zk.mousemove.call(this,e)},pointerup:function(e){zk.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 GLe(e,t){var n=t.domHandlers;Mn.pointerEventsSupported?K(VC.pointer,function(r){i1(t,r,function(a){n[r].call(e,a)})}):(Mn.touchEventsSupported&&K(VC.touch,function(r){i1(t,r,function(a){n[r].call(e,a),zLe(t)})}),K(VC.mouse,function(r){i1(t,r,function(a){a=AI(a),t.touching||n[r].call(e,a)})}))}function ULe(e,t){Mn.pointerEventsSupported?K(_$.pointer,n):Mn.touchEventsSupported||K(_$.mouse,n);function n(r){function a(i){i=AI(i),AG(e,i.target)||(i=HLe(e,i),t.domHandlers[r].call(e,i))}i1(t,r,a,{capture:!0})}}function i1(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Dk(e.domTarget,t,n,r)}function HC(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&jDe(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var S$=function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e}(),KLe=function(e){Ne(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 S$(n,Oo),FC&&(a._globalHandlerScope=new S$(document,zk)),GLe(a,a._localHandlerScope),a}return t.prototype.dispose=function(){HC(this._localHandlerScope),FC&&HC(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,FC&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?ULe(this,r):HC(r)}},t}(wo);const jLe=KLe;var EG=1;Mn.hasGlobalWindow&&(EG=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var t_=EG,Hk=.4,Wk="#333",Gk="#ccc",YLe="#eee",C$=gy,x$=5e-5;function Mc(e){return e>x$||e<-x$}var Ic=[],Pd=[],WC=Bi(),GC=Math.abs,qLe=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 Mc(this.rotation)||Mc(this.x)||Mc(this.y)||Mc(this.scaleX-1)||Mc(this.scaleY-1)||Mc(this.skewX)||Mc(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(C$(r),this.invTransform=null);return}r=r||Bi(),n?this.getLocalTransform(r):C$(r),t&&(n?Rs(r,t,r):Hw(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Ic);var r=Ic[0]<0?-1:1,a=Ic[1]<0?-1:1,i=((Ic[0]-r)*n+r)/Ic[0]||0,o=((Ic[1]-a)*n+a)/Ic[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Bi(),fd(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&&(Rs(Pd,t.invTransform,n),n=Pd);var r=this.originX,a=this.originY;(r||a)&&(WC[4]=r,WC[5]=a,Rs(Pd,n,WC),Pd[4]-=r,Pd[5]-=a,n=Pd),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&&pa(r,r,a),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],a=this.transform;return a&&pa(r,r,a),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&GC(t[0]-1)>1e-10&&GC(t[3]-1)>1e-10?Math.sqrt(GC(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){MG(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&&lc(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}(),zs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function MG(e,t){for(var n=0;n<zs.length;n++){var r=zs[n];e[r]=t[r]}}const cl=qLe;var T$={};function $i(e,t){t=t||Uu;var n=T$[t];n||(n=T$[t]=new my(500));var r=n.get(e);return r==null&&(r=Qo.measureText(e,t).width,n.put(e,r)),r}function k$(e,t,n,r){var a=$i(e,t),i=Uw(t),o=Up(0,a,n),s=ah(0,i,r),l=new sn(o,s,a,i);return l}function yy(e,t,n,r){var a=((e||"")+"").split(`
  79. `),i=a.length;if(i===1)return k$(a[0],t,n,r);for(var o=new sn(0,0,0,0),s=0;s<a.length;s++){var l=k$(a[s],t,n,r);s===0?o.copy(l):o.union(l)}return o}function Up(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function ah(e,t,n){return n==="middle"?e-=t/2:n==="bottom"&&(e-=t),e}function Uw(e){return $i("国",e)}function ts(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function n_(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+=ts(r[0],n.width),u+=ts(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 UC="__zr_normal__",KC=zs.concat(["ignore"]),XLe=bo(zs,function(e,t){return e[t]=!0,e},{ignore:!1}),Rd={},ZLe=new sn(0,0,0,0),LI=function(){function e(t){this.id=CI(),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=ZLe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Rd,r,c):n_(Rd,r,c),i.x=Rd.x,i.y=Rd.y,o=Rd.align,s=Rd.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=ts(f[0],c.width),h=ts(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,w=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),w=!0)):(m=r.outsideFill,b=r.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(m),w=!0)),m=m||"#000",(m!==g.fill||b!==g.stroke||w!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=b,g.autoStroke=w,g.align=o,g.verticalAlign=s,n.setDefaultTextStyle(g)),n.__dirty|=Mi,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()?Gk:Wk},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Qa(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,Xo(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||{},je(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(Ot(t))for(var r=t,a=_n(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!==UC)){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,KC)},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(UC,!1,t)},e.prototype.useState=function(t,n,r,a){var i=t===UC,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(cn(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){Bw("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&=~Mi),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&=~Mi)}},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=cn(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=cn(a,t),o=cn(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];je(n,i),i.textConfig&&(r=r||{},je(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=je({},a?this.textConfig:r.textConfig),je(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<KC.length;c++){var f=KC[c],d=i&&XLe[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 cl,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),je(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|=Mi;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 DI(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=cn(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){jC(this,t,n,r)},e.prototype.animateFrom=function(t,n,r){jC(this,t,n,r,!0)},e.prototype._transitionState=function(t,n,r,a){for(var i=jC(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=Mi;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}();Ir(LI,wo);Ir(LI,cl);function jC(e,t,n,r,a){n=n||{};var i=[];IG(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 YC(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function JLe(e){return Ca(e[0])}function QLe(e,t,n){if(Ca(t[n]))if(Ca(e[n])||(e[n]=[]),Ci(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),YC(e[n],t[n],r))}else{var a=t[n],i=e[n],o=a.length;if(JLe(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?YC(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else YC(i,a,o);i.length=a.length}else e[n]=t[n]}function ePe(e,t){return e===t||Ca(e)&&Ca(t)&&tPe(e,t)}function tPe(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 IG(e,t,n,r,a,i,o,s){for(var l=_n(r),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!Ot(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(Ot(b)&&!Ca(b)&&!vy(b)){if(t){s||(n[m]=b,e.updateDuringAnimation(t));continue}IG(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 w=p.length;if(!f&&w)for(var S=0;S<v.length;S++){var C=v[S];if(C.targetName===t){var y=C.stopTracks(p);if(y){var x=cn(v,C);v.splice(x,1)}}}if(a.force||(p=zn(p,function(E){return!ePe(r[E],n[E])}),w=p.length),w>0||a.force&&!o.length){var T=void 0,A=void 0,M=void 0;if(s){A={},d&&(T={});for(var S=0;S<w;S++){var m=p[S];A[m]=n[m],d?T[m]=r[m]:n[m]=r[m]}}else if(d){M={};for(var S=0;S<w;S++){var m=p[S];M[m]=wg(n[m]),QLe(n,r,m)}}var C=new DI(n,!1,!1,f?zn(v,function(I){return I.targetName===t}):null);C.targetName=t,a.scope&&(C.scope=a.scope),d&&T&&C.whenWithKeys(0,T,p),M&&C.whenWithKeys(0,M,p),C.whenWithKeys(u??500,s?A:r,p).delay(c||0),e.addAnimator(C,t),o.push(C)}}const DG=LI;var LG=function(e){Ne(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=cn(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=cn(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 sn(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?(sn.applyTransform(r,u,c),o=o||r.clone(),o.union(r)):(o=o||u.clone(),o.union(u))}}return o||r},t}(DG);LG.prototype.type="group";const Gt=LG;/*!
  80. * ZRender, a high performance 2d drawing library.
  81. *
  82. * Copyright (c) 2013, Baidu Inc.
  83. * All rights reserved.
  84. *
  85. * LICENSE
  86. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  87. */var o1={},wf={};function nPe(e){delete wf[e]}function rPe(e){if(!e)return!1;if(typeof e=="string")return Sm(e,1)<Hk;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,a=0;a<r;a++)n+=Sm(t[a].color,1);return n/=r,n<Hk}return!1}var aPe=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 uLe,o=r.renderer||"canvas";o1[o]||(o=_n(o1)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new o1[o](n,i,r,t),l=r.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Mn.node&&!Mn.worker&&!l?new jLe(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Mn.touchEventsSupported:!!c,d=44,h;f&&(h=on(r.pointerSize,d)),this.handler=new aLe(i,s,u,s.root,h),this.animation=new FLe({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=rPe(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=hh();this._needsRefresh&&(n=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=hh();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 Gt&&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,nPe(this.id)},e}();function Uk(e,t){var n=new aPe(CI(),e,t);return wf[n.id]=n,n}function iPe(e){e.dispose()}function oPe(){for(var e in wf)wf.hasOwnProperty(e)&&wf[e].dispose();wf={}}function sPe(e){return wf[e]}function PG(e,t){o1[e]=t}var lPe="5.4.4";const uPe=Object.freeze(Object.defineProperty({__proto__:null,dispose:iPe,disposeAll:oPe,getInstance:sPe,init:Uk,registerPainter:PG,version:lPe},Symbol.toStringTag,{value:"Module"}));var A$=1e-4,RG=20;function cPe(e){return e.replace(/^\s+|\s+$/g,"")}function Vn(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 yt(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 St(e)?cPe(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Tr(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),RG),e=(+e).toFixed(t),n?e:+e}function Ri(e){return e.sort(function(t,n){return t-n}),e}function Wo(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 OG(e)}function OG(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 PI(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 fPe(e,t,n){if(!e[t])return 0;var r=NG(e,n);return r[t]||0}function NG(e,t){var n=bo(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(n===0)return[];for(var r=Math.pow(10,t),a=at(e,function(h){return(isNaN(h)?0:h)/n*r*100}),i=r*100,o=at(a,function(h){return Math.floor(h)}),s=bo(o,function(h,v){return h+v},0),l=at(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 at(o,function(h){return h/r})}function dPe(e,t){var n=Math.max(Wo(e),Wo(t)),r=e+t;return n>RG?r:Tr(r,n)}var Kk=9007199254740991;function RI(e){var t=Math.PI*2;return(e%t+t)%t}function xm(e){return e>-A$&&e<A$}var hPe=/^(?:(\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 Fi(e){if(e instanceof Date)return e;if(St(e)){var t=hPe.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 $G(e){return Math.pow(10,Kw(e))}function Kw(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 OI(e,t){var n=Kw(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 s1(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 jk(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 Hs(e){var t=parseFloat(e);return t==e&&(t!==0||!St(e)||e.indexOf("x")<=0)?t:NaN}function NI(e){return!isNaN(Hs(e))}function BG(){return Math.round(Math.random()*9)}function FG(e,t){return t===0?e:FG(t,e%t)}function E$(e,t){return e==null?t:t==null?e:e*t/FG(e,t)}function $n(e){throw new Error(e)}function M$(e,t,n){return(t-e)*n+e}var VG="series\0",zG="\0_ec_\0";function qn(e){return e instanceof Array?e:e==null?[]:[e]}function Yf(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 I$=["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 xv(e){return Ot(e)&&!et(e)&&!(e instanceof Date)?e.value:e}function vPe(e){return Ot(e)&&!(e instanceof Array)}function HG(e,t,n){var r=n==="normalMerge",a=n==="replaceMerge",i=n==="replaceAll";e=e||[],t=(t||[]).slice();var o=Et();K(t,function(l,u){if(!Ot(l)){t[u]=null;return}});var s=pPe(e,o,n);return(r||a)&&gPe(s,e,o,t),r&&mPe(s,t),r||a?yPe(s,t,a):i&&bPe(s,t),_Pe(s),s}function pPe(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"||Tm(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function gPe(e,t,n,r){K(r,function(a,i){if(!(!a||a.id==null)){var o=Sg(a.id),s=n.get(o);if(s!=null){var l=e[s];Ba(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],r[i]=null}}})}function mPe(e,t){K(t,function(n,r){if(!(!n||n.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||n.id==null)&&!Tm(n)&&!Tm(i)&&WG("name",i,n)){e[a].newOption=n,t[r]=null;return}}})}function yPe(e,t,n){K(t,function(r){if(r){for(var a,i=0;(a=e[i])&&(a.newOption||Tm(a.existing)||a.existing&&r.id!=null&&!WG("id",r,a.existing));)i++;a?(a.newOption=r,a.brandNew=n):e.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),i++}})}function bPe(e,t){K(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function _Pe(e){var t=Et();K(e,function(n){var r=n.existing;r&&t.set(r.id,n)}),K(e,function(n){var r=n.newOption;Ba(!r||r.id==null||!t.get(r.id)||t.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),K(e,function(n,r){var a=n.existing,i=n.newOption,o=n.keyInfo;if(Ot(i)){if(o.name=i.name!=null?Sg(i.name):a?a.name:VG+r,a)o.id=Sg(a.id);else if(i.id!=null)o.id=Sg(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 WG(e,t,n){var r=Zr(t[e],null),a=Zr(n[e],null);return r!=null&&a!=null&&r===a}function Sg(e){return Zr(e,"")}function Zr(e,t){return e==null?t:St(e)?e:Dn(e)||Y1(e)?e+"":t}function $I(e){var t=e.name;return!!(t&&t.indexOf(VG))}function Tm(e){return e&&e.id!=null&&Sg(e.id).indexOf(zG)===0}function wPe(e){return zG+e}function SPe(e,t,n){K(e,function(r){var a=r.newOption;Ot(a)&&(r.keyInfo.mainType=t,r.keyInfo.subType=CPe(t,a,r.existing,n))})}function CPe(e,t,n,r){var a=t.type?t.type:n?n.subType:r.determineSubType(e,t);return a}function xPe(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=Zr(o[u].seriesId,null);if(f==null)return;for(var d=qn(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 qf(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return et(t.dataIndex)?at(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return et(t.name)?at(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function Ln(){var e="__ec_inner_"+TPe++;return function(t){return t[e]||(t[e]={})}}var TPe=BG();function Cg(e,t,n){var r=BI(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=by(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 BI(e,t){var n;if(St(e)){var r={};r[e+"Index"]=0,n=r}else n=e;var a=Et(),i={},o=!1;return K(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&cn(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 Hr={useDefault:!0,enableAll:!1,enableNone:!1},kPe={useDefault:!1,enableAll:!0,enableNone:!0};function by(e,t,n,r){r=r||Hr;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?(Ba(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Ba(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 GG(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function APe(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function EPe(e){return e==="auto"?Mn.domSupported?"html":"richText":e||"html"}function Yk(e,t){var n=Et(),r=[];return K(e,function(a){var i=t(a);(n.get(i)||(r.push(i),n.set(i,[]))).push(a)}),{keys:r,buckets:n}}function UG(e,t,n,r,a){var i=t==null||t==="auto";if(r==null)return r;if(Dn(r)){var o=M$(n||0,r,a);return Tr(o,i?Math.max(Wo(n||0),Wo(r)):t)}else{if(St(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=M$(h,v,a);s[f]=Tr(o,i?Math.max(Wo(h),Wo(v)):t)}}return s}}var MPe=".",Dc="___EC__COMPONENT__CONTAINER___",KG="___EC__EXTENDED_CLASS___";function Ms(e){var t={main:"",sub:""};if(e){var n=e.split(MPe);t.main=n[0]||"",t.sub=n[1]||""}return t}function IPe(e){Ba(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function DPe(e){return!!(e&&e[KG])}function FI(e,t){e.$constructor=e,e.extend=function(n){var r=this,a;return LPe(r)?a=function(i){Ne(o,i);function o(){return i.apply(this,arguments)||this}return o}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},xI(a,this)),je(a.prototype,n),a[KG]=!0,a.extend=this.extend,a.superCall=OPe,a.superApply=NPe,a.superClass=r,a}}function LPe(e){return It(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function jG(e,t){e.extend=t.extend}var PPe=Math.round(Math.random()*10);function RPe(e){var t=["__\0is_clz",PPe++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function OPe(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 jw(e){var t={};e.registerClass=function(r){var a=r.type||r.prototype.type;if(a){IPe(a),r.prototype.type=a;var i=Ms(a);if(!i.sub)t[i.main]=r;else if(i.sub!==Dc){var o=n(i);o[i.sub]=r}}return r},e.getClass=function(r,a,i){var o=t[r];if(o&&o[Dc]&&(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=Ms(r),i=[],o=t[a.main];return o&&o[Dc]?K(o,function(s,l){l!==Dc&&i.push(s)}):i.push(o),i},e.hasClass=function(r){var a=Ms(r);return!!t[a.main]},e.getAllClassMainTypes=function(){var r=[];return K(t,function(a,i){r.push(i)}),r},e.hasSubTypes=function(r){var a=Ms(r),i=t[a.main];return i&&i[Dc]};function n(r){var a=t[r.main];return(!a||!a[Dc])&&(a=t[r.main]={},a[Dc]=!0),a}}function Xf(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&&cn(a,l)>=0||i&&cn(i,l)<0)){var u=r.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var $Pe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],BPe=Xf($Pe),FPe=function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return BPe(this,t,n)},e}(),qk=new my(50);function VPe(e){if(typeof e=="string"){var t=qk.get(e);return t&&t.image}else return e}function VI(e,t,n,r,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var i=qk.get(e),o={hostEl:n,cb:r,cbPayload:a};return i?(t=i.image,!Yw(t)&&i.pending.push(o)):(t=Qo.loadImage(e,D$,D$),t.__zrImageSrc=e,qk.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function D$(){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 Yw(e){return e&&e.width&&e.height}var qC=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function YG(e,t,n,r,a){if(!t)return"";var i=(e+"").split(`
  88. `);a=qG(t,n,r,a);for(var o=0,s=i.length;o<s;o++)i[o]=XG(i[o],a);return i.join(`
  89. `)}function qG(e,t,n,r){r=r||{};var a=je({},r);a.font=t,n=on(n,"..."),a.maxIterations=on(r.maxIterations,2);var i=a.minChar=on(r.minChar,0);a.cnCharWidth=$i("国",t);var o=a.ascCharWidth=$i("a",t);a.placeholder=on(r.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=$i(n,t);return u>s&&(n="",u=0),s=e-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function XG(e,t){var n=t.containerWidth,r=t.font,a=t.contentWidth;if(!n)return"";var i=$i(e,r);if(i<=n)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?zPe(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=$i(e,r)}return e===""&&(e=t.placeholder),e}function zPe(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 HPe(e,t){e!=null&&(e+="");var n=t.overflow,r=t.padding,a=t.font,i=n==="truncate",o=Uw(a),s=on(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(n==="break"||n==="breakAll")?f=e?ZG(e,t.font,c,n==="breakAll",0).lines:[]:f=e?e.split(`
  90. `):[];var d=f.length*s,h=on(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=qG(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=XG(f[g],p);for(var m=h,b=0,g=0;g<f.length;g++)b=Math.max($i(f[g],a),b);c==null&&(c=b);var w=b;return r&&(m+=r[0]+r[2],w+=r[1]+r[3],c+=r[1]+r[3]),l&&(w=c),{lines:f,height:h,outerWidth:w,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:d,width:c}}var WPe=function(){function e(){}return e}(),L$=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),GPe=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 UPe(e,t){var n=new GPe;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=qC.lastIndex=0,l;(l=qC.exec(e))!=null;){var u=l.index;u>s&&XC(n,e.substring(s,u),t,o),XC(n,l[2],t,o,l[1]),s=qC.lastIndex}s<e.length&&XC(n,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,v=i==="truncate",p=t.lineOverflow==="truncate";function g(V,P,G){V.width=P,V.lineHeight=G,f+=G,d=Math.max(d,P)}e:for(var m=0;m<n.lines.length;m++){for(var b=n.lines[m],w=0,S=0,C=0;C<b.tokens.length;C++){var y=b.tokens[C],x=y.styleName&&t.rich[y.styleName]||{},T=y.textPadding=x.padding,A=T?T[1]+T[3]:0,M=y.font=x.font||t.font;y.contentHeight=Uw(M);var E=on(x.height,y.contentHeight);if(y.innerHeight=E,T&&(E+=T[0]+T[2]),y.height=E,y.lineHeight=Yo(x.lineHeight,t.lineHeight,E),y.align=x&&x.align||t.align,y.verticalAlign=x&&x.verticalAlign||"middle",p&&a!=null&&f+y.lineHeight>a){C>0?(b.tokens=b.tokens.slice(0,C),g(b,S,w),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break e}var I=x.width,L=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")y.percentWidth=I,c.push(y),y.contentWidth=$i(y.text,M);else{if(L){var O=x.backgroundColor,z=O&&O.image;z&&(z=VPe(z),Yw(z)&&(y.width=Math.max(y.width,z.width*E/z.height)))}var F=v&&r!=null?r-S:null;F!=null&&F<y.width?!L||F<A?(y.text="",y.width=y.contentWidth=0):(y.text=YG(y.text,F-A,M,t.ellipsis,{minChar:t.truncateMinChar}),y.width=y.contentWidth=$i(y.text,M)):y.contentWidth=$i(y.text,M)}y.width+=A,S+=y.width,x&&(w=Math.max(w,y.lineHeight))}g(b,S,w)}n.outerWidth=n.width=on(r,d),n.outerHeight=n.height=on(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 y=c[m],$=y.percentWidth;y.width=parseInt($,10)/100*n.width}return n}function XC(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=ts(o.width,r.width)+h;s.length>0&&v+r.accumWidth>r.width&&(c=t.split(`
  91. `),u=!0),r.accumWidth=v}else{var p=ZG(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=t.split(`
  92. `);for(var g=0;g<c.length;g++){var m=c[g],b=new WPe;if(b.styleName=a,b.text=m,b.isLineHolder=!m&&!i,typeof o.width=="number"?b.width=o.width:b.width=f?f[g]:$i(m,l),!g&&!u){var w=(s[s.length-1]||(s[0]=new L$)).tokens,S=w.length;S===1&&w[0].isLineHolder?w[0]=b:(m||!S||i)&&w.push(b)}else s.push(new L$([b]))}}function KPe(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var jPe=bo(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function YPe(e){return KPe(e)?!!jPe[e]:!0}function ZG(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===`
  93. `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=$i(d,t),v=r?!1:!YPe(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 Xk="__zr_style_"+Math.round(Math.random()*10),Of={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},qw={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Of[Xk]=!0;var P$=["z","z2","invisible"],qPe=["invisible"],XPe=function(e){Ne(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=_n(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&&ZPe(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 sn(0,0,0,0)),r?sn.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 sn(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:je(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=Wp,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Wp)},t.prototype.styleUpdated=function(){this.__dirty&=~Wp},t.prototype.createStyle=function(n){return py(Of,n)},t.prototype.useStyle=function(n){n[Xk]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},t.prototype.isStyleObject=function(n){return n[Xk]},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,P$)},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=_n(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=_n(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?qPe:P$,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 je(n,r),n},t.prototype.getAnimationStyleProps=function(){return qw},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=Mi|Wp}(),t}(DG),ZC=new sn(0,0,0,0),JC=new sn(0,0,0,0);function ZPe(e,t,n){return ZC.copy(e.getBoundingRect()),e.transform&&ZC.applyTransform(e.transform),JC.width=t,JC.height=n,!ZC.intersect(JC)}const _o=XPe;var pi=Math.min,gi=Math.max,QC=Math.sin,ex=Math.cos,Lc=Math.PI*2,D0=sc(),L0=sc(),P0=sc();function Xw(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=pi(a,r[0]),i=gi(i,r[0]),o=pi(o,r[1]),s=gi(s,r[1]);t[0]=a,t[1]=o,n[0]=i,n[1]=s}}function R$(e,t,n,r,a,i){a[0]=pi(e,n),a[1]=pi(t,r),i[0]=gi(e,n),i[1]=gi(t,r)}var O$=[],N$=[];function JPe(e,t,n,r,a,i,o,s,l,u){var c=vG,f=ea,d=c(e,n,a,o,O$);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,O$[h]);l[0]=pi(v,l[0]),u[0]=gi(v,u[0])}d=c(t,r,i,s,N$);for(var h=0;h<d;h++){var p=f(t,r,i,s,N$[h]);l[1]=pi(p,l[1]),u[1]=gi(p,u[1])}l[0]=pi(e,l[0]),u[0]=gi(e,u[0]),l[0]=pi(o,l[0]),u[0]=gi(o,u[0]),l[1]=pi(t,l[1]),u[1]=gi(t,u[1]),l[1]=pi(s,l[1]),u[1]=gi(s,u[1])}function QPe(e,t,n,r,a,i,o,s){var l=gG,u=ha,c=gi(pi(l(e,n,a),1),0),f=gi(pi(l(t,r,i),1),0),d=u(e,n,a,c),h=u(t,r,i,f);o[0]=pi(e,a,d),o[1]=pi(t,i,h),s[0]=gi(e,a,d),s[1]=gi(t,i,h)}function eRe(e,t,n,r,a,i,o,s,l){var u=ll,c=ul,f=Math.abs(a-i);if(f%Lc<1e-4&&f>1e-4){s[0]=e-n,s[1]=t-r,l[0]=e+n,l[1]=t+r;return}if(D0[0]=ex(a)*n+e,D0[1]=QC(a)*r+t,L0[0]=ex(i)*n+e,L0[1]=QC(i)*r+t,u(s,D0,L0),c(l,D0,L0),a=a%Lc,a<0&&(a=a+Lc),i=i%Lc,i<0&&(i=i+Lc),a>i&&!o?i+=Lc:a<i&&o&&(a+=Lc),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(P0[0]=ex(h)*n+e,P0[1]=QC(h)*r+t,u(s,P0,s),c(l,P0,l))}var Qn={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Pc=[],Rc=[],vs=[],Zl=[],ps=[],gs=[],tx=Math.min,nx=Math.max,Oc=Math.cos,Nc=Math.sin,Xs=Math.abs,Zk=Math.PI,cu=Zk*2,rx=typeof Float32Array<"u",vp=[];function ax(e){var t=Math.round(e/Zk*1e8)/1e8;return t%2*Zk}function JG(e,t){var n=ax(e[0]);n<0&&(n+=cu);var r=n-e[0],a=e[1];a+=r,!t&&a-n>=cu?a=n+cu:t&&n-a>=cu?a=n-cu:!t&&n>a?a=n+(cu-ax(n-a)):t&&n<a&&(a=n-(cu-ax(a-n))),e[0]=n,e[1]=a}var tRe=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=Xs(r/t_/t)||0,this._uy=Xs(r/t_/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(Qn.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=Xs(t-this._xi),a=Xs(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(Qn.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(Qn.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(Qn.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(),vp[0]=a,vp[1]=i,JG(vp,o),a=vp[0],i=vp[1];var s=i-a;return this.addData(Qn.A,t,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,n,r,a,i,o),this._xi=Oc(i)*r+t,this._yi=Nc(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(Qn.R,t,n,r,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Qn.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)&&rx&&(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();rx&&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,rx&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){vs[0]=vs[1]=ps[0]=ps[1]=Number.MAX_VALUE,Zl[0]=Zl[1]=gs[0]=gs[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 Qn.M:n=a=t[o++],r=i=t[o++],ps[0]=a,ps[1]=i,gs[0]=a,gs[1]=i;break;case Qn.L:R$(n,r,t[o],t[o+1],ps,gs),n=t[o++],r=t[o++];break;case Qn.C:JPe(n,r,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],ps,gs),n=t[o++],r=t[o++];break;case Qn.Q:QPe(n,r,t[o++],t[o++],t[o],t[o+1],ps,gs),n=t[o++],r=t[o++];break;case Qn.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=Oc(h)*f+u,i=Nc(h)*d+c),eRe(u,c,f,d,h,v,p,ps,gs),n=Oc(v)*f+u,r=Nc(v)*d+c;break;case Qn.R:a=n=t[o++],i=r=t[o++];var g=t[o++],m=t[o++];R$(a,i,a+g,i+m,ps,gs);break;case Qn.Z:n=a,r=i;break}ll(vs,vs,ps),ul(Zl,Zl,gs)}return o===0&&(vs[0]=vs[1]=Zl[0]=Zl[1]=0),new sn(vs[0],vs[1],Zl[0]-vs[0],Zl[1]-vs[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 Qn.M:i=s=t[d++],o=l=t[d++];break;case Qn.L:{var g=t[d++],m=t[d++],b=g-i,w=m-o;(Xs(b)>r||Xs(w)>a||d===n-1)&&(p=Math.sqrt(b*b+w*w),i=g,o=m);break}case Qn.C:{var S=t[d++],C=t[d++],g=t[d++],m=t[d++],y=t[d++],x=t[d++];p=cLe(i,o,S,C,g,m,y,x,10),i=y,o=x;break}case Qn.Q:{var S=t[d++],C=t[d++],g=t[d++],m=t[d++];p=dLe(i,o,S,C,g,m,10),i=g,o=m;break}case Qn.A:var T=t[d++],A=t[d++],M=t[d++],E=t[d++],I=t[d++],L=t[d++],O=L+I;d+=1,t[d++],v&&(s=Oc(I)*M+T,l=Nc(I)*E+A),p=nx(M,E)*tx(cu,Math.abs(L)),i=Oc(O)*M+T,o=Nc(O)*E+A;break;case Qn.R:{s=i=t[d++],l=o=t[d++];var z=t[d++],F=t[d++];p=z*2+F*2;break}case Qn.Z:{var b=s-i,w=l-o;p=Math.sqrt(b*b+w*w),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,w=0,S,C;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,b=n*p,!b)))e:for(var y=0;y<o;){var x=r[y++],T=y===1;switch(T&&(u=r[y],c=r[y+1],s=u,l=c),x!==Qn.L&&w>0&&(t.lineTo(S,C),w=0),x){case Qn.M:s=u=r[y++],l=c=r[y++],t.moveTo(u,c);break;case Qn.L:{f=r[y++],d=r[y++];var A=Xs(f-u),M=Xs(d-c);if(A>a||M>i){if(h){var E=v[m++];if(g+E>b){var I=(b-g)/E;t.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}g+=E}t.lineTo(f,d),u=f,c=d,w=0}else{var L=A*A+M*M;L>w&&(S=f,C=d,w=L)}break}case Qn.C:{var O=r[y++],z=r[y++],F=r[y++],$=r[y++],V=r[y++],P=r[y++];if(h){var E=v[m++];if(g+E>b){var I=(b-g)/E;Ku(u,O,F,V,I,Pc),Ku(c,z,$,P,I,Rc),t.bezierCurveTo(Pc[1],Rc[1],Pc[2],Rc[2],Pc[3],Rc[3]);break e}g+=E}t.bezierCurveTo(O,z,F,$,V,P),u=V,c=P;break}case Qn.Q:{var O=r[y++],z=r[y++],F=r[y++],$=r[y++];if(h){var E=v[m++];if(g+E>b){var I=(b-g)/E;bm(u,O,F,I,Pc),bm(c,z,$,I,Rc),t.quadraticCurveTo(Pc[1],Rc[1],Pc[2],Rc[2]);break e}g+=E}t.quadraticCurveTo(O,z,F,$),u=F,c=$;break}case Qn.A:var G=r[y++],j=r[y++],J=r[y++],ne=r[y++],ve=r[y++],le=r[y++],ce=r[y++],ue=!r[y++],Q=J>ne?J:ne,_e=Xs(J-ne)>.001,Pe=ve+le,pe=!1;if(h){var E=v[m++];g+E>b&&(Pe=ve+le*(b-g)/E,pe=!0),g+=E}if(_e&&t.ellipse?t.ellipse(G,j,J,ne,ce,ve,Pe,ue):t.arc(G,j,Q,ve,Pe,ue),pe)break e;T&&(s=Oc(ve)*J+G,l=Nc(ve)*ne+j),u=Oc(Pe)*J+G,c=Nc(Pe)*ne+j;break;case Qn.R:s=u=r[y],l=c=r[y+1],f=r[y++],d=r[y++];var Y=r[y++],ie=r[y++];if(h){var E=v[m++];if(g+E>b){var me=b-g;t.moveTo(f,d),t.lineTo(f+tx(me,Y),d),me-=Y,me>0&&t.lineTo(f+Y,d+tx(me,ie)),me-=ie,me>0&&t.lineTo(f+nx(Y-me,0),d+ie),me-=Y,me>0&&t.lineTo(f,d+nx(ie-me,0));break e}g+=E}t.rect(f,d,Y,ie);break;case Qn.Z:if(h){var E=v[m++];if(g+E>b){var I=(b-g)/E;t.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}g+=E}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=Qn,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const Ws=tRe;function vu(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 nRe(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=pG(e,t,n,r,a,i,o,s,u,c,null);return d<=f/2}function QG(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=mG(e,t,n,r,a,i,s,l,null);return c<=u/2}var $$=Math.PI*2;function Go(e){return e%=$$,e<0&&(e+=$$),e}var pp=Math.PI*2;function rRe(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)%pp<1e-4)return!0;if(i){var f=r;r=Go(a),a=Go(f)}else r=Go(r),a=Go(a);r>a&&(a+=pp);var d=Math.atan2(l,s);return d<0&&(d+=pp),d>=r&&d<=a||d+pp>=r&&d+pp<=a}function rl(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 Jl=Ws.CMD,$c=Math.PI*2,aRe=1e-4;function iRe(e,t){return Math.abs(e-t)<aRe}var Ka=[-1,-1,-1],Ji=[-1,-1];function oRe(){var e=Ji[0];Ji[0]=Ji[1],Ji[1]=e}function sRe(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=J1(t,r,i,s,u,Ka);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,p=0;p<c;p++){var g=Ka[p],m=g===0||g===1?.5:1,b=ea(e,n,a,o,g);b<l||(d<0&&(d=vG(t,r,i,s,Ji),Ji[1]<Ji[0]&&d>1&&oRe(),h=ea(t,r,i,s,Ji[0]),d>1&&(v=ea(t,r,i,s,Ji[1]))),d===2?g<Ji[0]?f+=h<t?m:-m:g<Ji[1]?f+=v<h?m:-m:f+=s<v?m:-m:g<Ji[0]?f+=h<t?m:-m:f+=s<h?m:-m)}return f}function lRe(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=fLe(t,r,i,s,Ka);if(l===0)return 0;var u=gG(t,r,i);if(u>=0&&u<=1){for(var c=0,f=ha(t,r,i,u),d=0;d<l;d++){var h=Ka[d]===0||Ka[d]===1?.5:1,v=ha(e,n,a,Ka[d]);v<o||(Ka[d]<u?c+=f<t?h:-h:c+=i<f?h:-h)}return c}else{var h=Ka[0]===0||Ka[0]===1?.5:1,v=ha(e,n,a,Ka[0]);return v<o?0:i<t?h:-h}}function uRe(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);Ka[0]=-l,Ka[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=$c-1e-4){r=0,a=$c;var c=i?1:-1;return o>=Ka[0]+e&&o<=Ka[1]+e?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=$c,a+=$c);for(var d=0,h=0;h<2;h++){var v=Ka[h];if(v+e>o){var p=Math.atan2(s,v),c=i?1:-1;p<0&&(p=$c+p),(p>=r&&p<=a||p+$c>=r&&p+$c<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function eU(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===Jl.M&&v>1&&(n||(s+=rl(l,u,c,f,r,a))),g&&(l=i[v],u=i[v+1],c=l,f=u),p){case Jl.M:c=i[v++],f=i[v++],l=c,u=f;break;case Jl.L:if(n){if(vu(l,u,i[v],i[v+1],t,r,a))return!0}else s+=rl(l,u,i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case Jl.C:if(n){if(nRe(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,r,a))return!0}else s+=sRe(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 Jl.Q:if(n){if(QG(l,u,i[v++],i[v++],i[v],i[v+1],t,r,a))return!0}else s+=lRe(l,u,i[v++],i[v++],i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case Jl.A:var m=i[v++],b=i[v++],w=i[v++],S=i[v++],C=i[v++],y=i[v++];v+=1;var x=!!(1-i[v++]);d=Math.cos(C)*w+m,h=Math.sin(C)*S+b,g?(c=d,f=h):s+=rl(l,u,d,h,r,a);var T=(r-m)*S/w+m;if(n){if(rRe(m,b,S,C,C+y,x,t,T,a))return!0}else s+=uRe(m,b,S,C,C+y,x,T,a);l=Math.cos(C+y)*w+m,u=Math.sin(C+y)*S+b;break;case Jl.R:c=l=i[v++],f=u=i[v++];var A=i[v++],M=i[v++];if(d=c+A,h=f+M,n){if(vu(c,f,d,f,t,r,a)||vu(d,f,d,h,t,r,a)||vu(d,h,c,h,t,r,a)||vu(c,h,c,f,t,r,a))return!0}else s+=rl(d,f,d,h,r,a),s+=rl(c,h,c,f,r,a);break;case Jl.Z:if(n){if(vu(l,u,c,f,t,r,a))return!0}else s+=rl(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!iRe(u,f)&&(s+=rl(l,u,c,f,r,a)||0),s!==0}function cRe(e,t,n){return eU(e,0,!1,t,n)}function fRe(e,t,n,r){return eU(e,t,!0,n,r)}var r_=Lt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Of),dRe={style:Lt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},qw.style)},ix=zs.concat(["invisible","culling","z","z2","zlevel","parent"]),hRe=function(e){Ne(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<ix.length;++s)a[ix[s]]=this[ix[s]];a.__dirty|=Mi}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var r=_n(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?je(this.style,s):this.useStyle(s):o==="shape"?je(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(St(n)){var r=Sm(n,0);return r>.5?Wk:r>.2?YLe:Gk}else if(n)return Gk}return Wk},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(St(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Sm(n,0)<Hk;if(i===o)return r}},t.prototype.buildPath=function(n,r,a){},t.prototype.pathUpdated=function(){this.__dirty&=~rh},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 Ws(!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&rh)&&(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)),fRe(s,l/u,n,r)))return!0}if(this.hasFill())return cRe(s,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=rh,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:je(a,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&rh)},t.prototype.createStyle=function(n){return py(r_,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=je({},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=je({},a.shape),je(u,r.shape)):(u=je({},i?this.shape:a.shape),je(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=je({},this.shape);for(var c={},f=_n(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 dRe},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var r=function(i){Ne(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 Ft(n.style)},o.prototype.getDefaultShape=function(){return Ft(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=Mi|Wp|rh}(),t}(_o);const pn=hRe;var vRe=Lt({strokeFirst:!0,font:Uu,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},r_),tU=function(e){Ne(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 py(vRe,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=yy(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}(_o);tU.prototype.type="tspan";const km=tU;var pRe=Lt({x:0,y:0},Of),gRe={style:Lt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},qw.style)};function mRe(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var nU=function(e){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return py(pRe,n)},t.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=mRe(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 gRe},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new sn(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t}(_o);nU.prototype.type="image";const ga=nU;function yRe(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 vh=Math.round;function rU(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&&(vh(r*2)===vh(a*2)&&(e.x1=e.x2=Sf(r,s,!0)),vh(i*2)===vh(o*2)&&(e.y1=e.y2=Sf(i,s,!0))),e}}function aU(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=Sf(r,s,!0),e.y=Sf(a,s,!0),e.width=Math.max(Sf(r+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(Sf(a+o,s,!1)-e.y,o===0?0:1)),e}}function Sf(e,t,n){if(!t)return e;var r=vh(e*2);return(r+vh(t))%2===0?r/2:(r+(n?1:-1))/2}var bRe=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),_Re={},iU=function(e){Ne(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new bRe},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=aU(_Re,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?yRe(n,r):n.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(pn);iU.prototype.type="rect";const En=iU;var B$={fill:"#000"},F$=2,wRe={style:Lt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},qw.style)},oU=function(e){Ne(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=B$,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,xRe(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 sn(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||B$},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,i=n.rich||a&&{};return je(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=_n(r),i=0;i<a.length;i++){var o=a[i];n[o]=n[o]||{},je(n[o],r[o])}},t.prototype.getAnimationStyleProps=function(){return wRe},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||Uu,a=n.padding,i=K$(n),o=HPe(i,n),s=ox(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",w=p,S=ah(g,o.contentHeight,b);if(s||a){var C=Up(p,c,m),y=ah(g,u,b);s&&this._renderBackground(n,n,C,y,c,u)}S+=h/2,a&&(w=U$(p,m,a),b==="top"?S+=a[0]:b==="bottom"&&(S-=a[2]));for(var x=0,T=!1,A=G$("fill"in n?n.fill:(T=!0,v.fill)),M=W$("stroke"in n?n.stroke:!l&&(!v.autoStroke||T)?(x=F$,v.stroke):null),E=n.textShadowBlur>0,I=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),L=o.calculatedLineHeight,O=0;O<d.length;O++){var z=this._getOrCreateChild(km),F=z.createStyle();z.useStyle(F),F.text=d[O],F.x=w,F.y=S,m&&(F.textAlign=m),F.textBaseline="middle",F.opacity=n.opacity,F.strokeFirst=!0,E&&(F.shadowBlur=n.textShadowBlur||0,F.shadowColor=n.textShadowColor||"transparent",F.shadowOffsetX=n.textShadowOffsetX||0,F.shadowOffsetY=n.textShadowOffsetY||0),F.stroke=M,F.fill=A,M&&(F.lineWidth=n.lineWidth||x,F.lineDash=n.lineDash,F.lineDashOffset=n.lineDashOffset||0),F.font=r,z$(F,n),S+=h,I&&z.setBoundingRect(new sn(Up(F.x,n.width,F.textAlign),ah(F.y,L,F.textBaseline),f,L))}},t.prototype._updateRichTexts=function(){var n=this.style,r=K$(n),a=UPe(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=Up(u,o,d),p=ah(c,s,h),g=v,m=p;l&&(g+=l[3],m+=l[0]);var b=g+i;ox(n)&&this._renderBackground(n,n,v,p,o,s);for(var w=!!n.backgroundColor,S=0;S<a.lines.length;S++){for(var C=a.lines[S],y=C.tokens,x=y.length,T=C.lineHeight,A=C.width,M=0,E=g,I=b,L=x-1,O=void 0;M<x&&(O=y[M],!O.align||O.align==="left");)this._placeToken(O,n,T,m,E,"left",w),A-=O.width,E+=O.width,M++;for(;L>=0&&(O=y[L],O.align==="right");)this._placeToken(O,n,T,m,I,"right",w),A-=O.width,I-=O.width,L--;for(E+=(i-(E-g)-(b-I)-A)/2;M<=L;)O=y[M],this._placeToken(O,n,T,m,E+O.width/2,"center",w),E+=O.width,M++;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&&ox(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=U$(o,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var p=this._getOrCreateChild(km),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,b=!1,w=0,S=G$("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,m.fill)),C=W$("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!m.autoStroke||b)?(w=F$,m.stroke):null),y=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=f,y&&(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||Uu,g.opacity=Yo(u.opacity,r.opacity,1),z$(g,u),C&&(g.lineWidth=Yo(u.lineWidth,r.lineWidth,w),g.lineDash=on(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=C),S&&(g.fill=S);var x=n.contentWidth,T=n.contentHeight;p.setBoundingRect(new sn(Up(g.x,x,g.textAlign),ah(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(En),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=on(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(ga),g.onload=function(){v.dirtyStyle()};var w=g.style;w.image=l.image,w.x=a,w.y=i,w.width=o,w.height=s}if(u&&c){var b=p.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=on(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=n.shadowBlur||0,S.shadowColor=n.shadowColor||"transparent",S.shadowOffsetX=n.shadowOffsetX||0,S.shadowOffsetY=n.shadowOffsetY||0,S.opacity=Yo(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return lU(n)&&(r=[n.fontStyle,n.fontWeight,sU(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&oo(r)||n.textFont||n.font},t}(_o),SRe={left:!0,right:1,center:1},CRe={top:1,bottom:1,middle:1},V$=["fontStyle","fontWeight","fontSize","fontFamily"];function sU(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?_I+"px":e+"px"}function z$(e,t){for(var n=0;n<V$.length;n++){var r=V$[n],a=t[r];a!=null&&(e[r]=a)}}function lU(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function xRe(e){return H$(e),K(e.rich,H$),e}function H$(e){if(e){e.font=oU.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||SRe[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||CRe[n]?n:"top";var r=e.padding;r&&(e.padding=zw(e.padding))}}function W$(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function G$(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function U$(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function K$(e){var t=e.text;return t!=null&&(t+=""),t}function ox(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const An=oU;var Jt=Ln(),Jk=function(e,t,n,r){if(r){var a=Jt(r);a.dataIndex=n,a.dataType=t,a.seriesIndex=e,r.type==="group"&&r.traverse(function(i){var o=Jt(i);o.seriesIndex=e,o.dataIndex=n,o.dataType=t})}},j$=1,Y$={},uU=Ln(),zI=Ln(),HI=0,_y=1,Zw=2,ai=["emphasis","blur","select"],Am=["normal","emphasis","blur","select"],Tv=10,TRe=9,Nf="highlight",l1="downplay",xg="select",u1="unselect",Tg="toggleSelect";function Od(e){return e!=null&&e!=="none"}var q$=new my(100);function X$(e){if(St(e)){var t=q$.get(e);return t||(t=Q1(e,-.1),q$.put(e,t)),t}else if(vy(e)){var n=je({},e);return n.colorStops=at(e.colorStops,function(r){return{offset:r.offset,color:Q1(r.color,-.1)}}),n}return e}function Jw(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function cU(e){Jw(e,"emphasis",Zw)}function fU(e){e.hoverState===Zw&&Jw(e,"normal",HI)}function WI(e){Jw(e,"blur",_y)}function dU(e){e.hoverState===_y&&Jw(e,"normal",HI)}function kRe(e){e.selected=!0}function ARe(e){e.selected=!1}function Z$(e,t,n){t(e,n)}function Bl(e,t,n){Z$(e,t,n),e.isGroup&&e.traverse(function(r){Z$(r,t,n)})}function a_(e,t){switch(t){case"emphasis":e.hoverState=Zw;break;case"normal":e.hoverState=HI;break;case"blur":e.hoverState=_y;break;case"select":e.selected=!0}}function ERe(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 MRe(e,t,n,r){var a=n&&cn(n,"select")>=0,i=!1;if(e instanceof pn){var o=uU(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Od(s)||Od(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=je({},r),u=je({},u),u.fill=s):!Od(u.fill)&&Od(s)?(i=!0,r=je({},r),u=je({},u),u.fill=X$(s)):!Od(u.stroke)&&Od(l)&&(i||(r=je({},r),u=je({},u)),u.stroke=X$(l)),r.style=u}}if(r&&r.z2==null){i||(r=je({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(c??Tv)}return r}function IRe(e,t,n){if(n&&n.z2==null){n=je({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??TRe)}return n}function DRe(e,t,n){var r=cn(e.currentStates,t)>=0,a=e.style.opacity,i=r?null:ERe(e,["opacity"],t,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=je({},n),o=je({opacity:r?a:i.opacity*.1},o),n.style=o),n}function sx(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return MRe(this,e,t,n);if(e==="blur")return DRe(this,e,n);if(e==="select")return IRe(this,e,n)}return n}function Zf(e){e.stateProxy=sx;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=sx),n&&(n.stateProxy=sx)}function J$(e,t){!gU(e,t)&&!e.__highByOuter&&Bl(e,cU)}function Q$(e,t){!gU(e,t)&&!e.__highByOuter&&Bl(e,fU)}function xl(e,t){e.__highByOuter|=1<<(t||0),Bl(e,cU)}function Tl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Bl(e,fU)}function hU(e){Bl(e,WI)}function GI(e){Bl(e,dU)}function vU(e){Bl(e,kRe)}function pU(e){Bl(e,ARe)}function gU(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function mU(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(a,i){var o=zI(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){dU(u)}),s&&n.push(i)),o.isBlured=!1}),K(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,t)})}function Qk(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&&GI(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"||WI(g)}),Ca(t))i(u.getData(),t);else if(Ot(t))for(var v=_n(t),p=0;p<v.length;p++)i(u.getData(v[p]),t[v[p]]);l.push(u),zI(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 eA(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){zI(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(i){WI(i)})}}}function LRe(e,t,n){var r=e.seriesIndex,a=e.getData(t.dataType);if(a){var i=qf(a,t);i=(et(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=Jt(o);Qk(r,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&Qk(r,c,f,n)}}}function UI(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(Jt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function PRe(e,t,n){var r=Jt(e),a=UI(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=a.dispatchers,o=a.focusSelf;i?(o&&eA(r.componentMainType,r.componentIndex,n),K(i,function(s){return J$(s,t)})):(Qk(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&eA(r.componentMainType,r.componentIndex,n),J$(e,t))}function RRe(e,t,n){mU(n);var r=Jt(e),a=UI(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?K(a,function(i){return Q$(i,t)}):Q$(e,t)}function ORe(e,t,n){if(nA(t)){var r=t.dataType,a=e.getData(r),i=qf(a,t);et(i)||(i=[i]),e[t.type===Tg?"toggleSelect":t.type===xg?"select":"unselect"](i,r)}}function e3(e){var t=e.getAllData();K(t,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?vU(i):pU(i)})})}function NRe(e){var t=[];return e.eachSeries(function(n){var r=n.getAllData();K(r,function(a){a.data;var i=a.type,o=n.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Pu(e,t,n){Cf(e,!0),Bl(e,Zf),tA(e,t,n)}function $Re(e){Cf(e,!1)}function Ar(e,t,n,r){r?$Re(e):Pu(e,t,n)}function tA(e,t,n){var r=Jt(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var t3=["emphasis","blur","select"],BRe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function xa(e,t,n,r){n=n||"itemStyle";for(var a=0;a<t3.length;a++){var i=t3[a],o=t.getModel([i,n]),s=e.ensureState(i);s.style=r?r(o):o[BRe[n]]()}}function Cf(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 Em(e){return!!(e&&e.__highDownDispatcher)}function FRe(e,t,n){var r=Jt(e);r.componentMainType=t.mainType,r.componentIndex=t.componentIndex,r.componentHighDownName=n}function VRe(e){var t=Y$[e];return t==null&&j$<=32&&(t=Y$[e]=j$++),t}function nA(e){var t=e.type;return t===xg||t===u1||t===Tg}function n3(e){var t=e.type;return t===Nf||t===l1}function zRe(e){var t=uU(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 Nd=Ws.CMD,HRe=[[],[],[]],r3=Math.sqrt,WRe=Math.atan2;function yU(e,t){if(t){var n=e.data,r=e.len(),a,i,o,s,l,u,c=Nd.M,f=Nd.C,d=Nd.L,h=Nd.R,v=Nd.A,p=Nd.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=r3(t[0]*t[0]+t[1]*t[1]),w=r3(t[2]*t[2]+t[3]*t[3]),S=WRe(-t[1]/w,t[0]/b);n[o]*=b,n[o++]+=g,n[o]*=w,n[o++]+=m,n[o++]*=b,n[o++]*=w,n[o++]+=S,n[o++]+=S,o+=2,s=o;break;case h:u[0]=n[o++],u[1]=n[o++],pa(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[o++],u[1]+=n[o++],pa(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<i;l++){var C=HRe[l];C[0]=n[o++],C[1]=n[o++],pa(C,C,t),n[s++]=C[0],n[s++]=C[1]}}e.increaseVersion()}}var lx=Math.sqrt,R0=Math.sin,O0=Math.cos,gp=Math.PI;function a3(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function rA(e,t){return(e[0]*t[0]+e[1]*t[1])/(a3(e)*a3(t))}function i3(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(rA(e,t))}function o3(e,t,n,r,a,i,o,s,l,u,c){var f=l*(gp/180),d=O0(f)*(e-n)/2+R0(f)*(t-r)/2,h=-1*R0(f)*(e-n)/2+O0(f)*(t-r)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=lx(v),s*=lx(v));var p=(a===i?-1:1)*lx((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+O0(f)*g-R0(f)*m,w=(t+r)/2+R0(f)*g+O0(f)*m,S=i3([1,0],[(d-g)/o,(h-m)/s]),C=[(d-g)/o,(h-m)/s],y=[(-1*d-g)/o,(-1*h-m)/s],x=i3(C,y);if(rA(C,y)<=-1&&(x=gp),rA(C,y)>=1&&(x=0),x<0){var T=Math.round(x/gp*1e6)/1e6;x=gp*2+T%2*gp}c.addData(u,b,w,o,s,S,x,f,i)}var GRe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,URe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function KRe(e){var t=new Ws;if(!e)return t;var n=0,r=0,a=n,i=r,o,s=Ws.CMD,l=e.match(GRe);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(URe)||[],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,w=void 0,S=void 0,C=void 0,y=void 0,x=void 0,T=n,A=r,M=void 0,E=void 0;switch(f){case"l":n+=h[g++],r+=h[g++],d=s.L,t.addData(d,n,r);break;case"L":n=h[g++],r=h[g++],d=s.L,t.addData(d,n,r);break;case"m":n+=h[g++],r+=h[g++],d=s.M,t.addData(d,n,r),a=n,i=r,f="l";break;case"M":n=h[g++],r=h[g++],d=s.M,t.addData(d,n,r),a=n,i=r,f="L";break;case"h":n+=h[g++],d=s.L,t.addData(d,n,r);break;case"H":n=h[g++],d=s.L,t.addData(d,n,r);break;case"v":r+=h[g++],d=s.L,t.addData(d,n,r);break;case"V":r=h[g++],d=s.L,t.addData(d,n,r);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),n=h[g-2],r=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r),n+=h[g-2],r+=h[g-1];break;case"S":m=n,b=r,M=t.len(),E=t.data,o===s.C&&(m+=n-E[M-4],b+=r-E[M-3]),d=s.C,T=h[g++],A=h[g++],n=h[g++],r=h[g++],t.addData(d,m,b,T,A,n,r);break;case"s":m=n,b=r,M=t.len(),E=t.data,o===s.C&&(m+=n-E[M-4],b+=r-E[M-3]),d=s.C,T=n+h[g++],A=r+h[g++],n+=h[g++],r+=h[g++],t.addData(d,m,b,T,A,n,r);break;case"Q":T=h[g++],A=h[g++],n=h[g++],r=h[g++],d=s.Q,t.addData(d,T,A,n,r);break;case"q":T=h[g++]+n,A=h[g++]+r,n+=h[g++],r+=h[g++],d=s.Q,t.addData(d,T,A,n,r);break;case"T":m=n,b=r,M=t.len(),E=t.data,o===s.Q&&(m+=n-E[M-4],b+=r-E[M-3]),n=h[g++],r=h[g++],d=s.Q,t.addData(d,m,b,n,r);break;case"t":m=n,b=r,M=t.len(),E=t.data,o===s.Q&&(m+=n-E[M-4],b+=r-E[M-3]),n+=h[g++],r+=h[g++],d=s.Q,t.addData(d,m,b,n,r);break;case"A":w=h[g++],S=h[g++],C=h[g++],y=h[g++],x=h[g++],T=n,A=r,n=h[g++],r=h[g++],d=s.A,o3(T,A,n,r,y,x,w,S,C,d,t);break;case"a":w=h[g++],S=h[g++],C=h[g++],y=h[g++],x=h[g++],T=n,A=r,n+=h[g++],r+=h[g++],d=s.A,o3(T,A,n,r,y,x,w,S,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 bU=function(e){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t}(pn);function _U(e){return e.setData!=null}function wU(e,t){var n=KRe(e),r=je({},t);return r.buildPath=function(a){if(_U(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){yU(n,a),this.dirtyShape()},r}function SU(e,t){return new bU(wU(e,t))}function jRe(e,t){var n=wU(e,t),r=function(a){Ne(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return i}(bU);return r}function YRe(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 pn(t);return o.createPathProxy(),o.buildPath=function(s){if(_U(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function KI(e,t){t=t||{};var n=new pn;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?yU(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 qRe=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),CU=function(e){Ne(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new qRe},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}(pn);CU.prototype.type="circle";const ns=CU;var XRe=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),xU=function(e){Ne(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new XRe},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}(pn);xU.prototype.type="ellipse";const Qw=xU;var TU=Math.PI,ux=TU*2,Bc=Math.sin,$d=Math.cos,ZRe=Math.acos,Ea=Math.atan2,s3=Math.abs,kg=Math.sqrt,Kp=Math.max,ms=Math.min,Ro=1e-4;function JRe(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<Ro))return d=(c*(t-i)-f*(e-a))/d,[e+d*l,t+d*u]}function N0(e,t,n,r,a,i,o){var s=e-n,l=t-r,u=(o?i:-i)/kg(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,w=p-h,S=b*b+w*w,C=a-i,y=d*p-v*h,x=(w<0?-1:1)*kg(Kp(0,C*C*S-y*y)),T=(y*w-b*x)/S,A=(-y*b-w*x)/S,M=(y*w+b*x)/S,E=(-y*b+w*x)/S,I=T-g,L=A-m,O=M-g,z=E-m;return I*I+L*L>O*O+z*z&&(T=M,A=E),{cx:T,cy:A,x0:-c,y0:-f,x1:T*(a/C-1),y1:A*(a/C-1)}}function QRe(e){var t;if(et(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 eOe(e,t){var n,r=Kp(t.r,0),a=Kp(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=s3(u-l),v=h>ux&&h%ux;if(v>Ro&&(h=v),!(r>Ro))e.moveTo(c,f);else if(h>ux-Ro)e.moveTo(c+r*$d(l),f+r*Bc(l)),e.arc(c,f,r,l,u,!d),a>Ro&&(e.moveTo(c+a*$d(u),f+a*Bc(u)),e.arc(c,f,a,u,l,d));else{var p=void 0,g=void 0,m=void 0,b=void 0,w=void 0,S=void 0,C=void 0,y=void 0,x=void 0,T=void 0,A=void 0,M=void 0,E=void 0,I=void 0,L=void 0,O=void 0,z=r*$d(l),F=r*Bc(l),$=a*$d(u),V=a*Bc(u),P=h>Ro;if(P){var G=t.cornerRadius;G&&(n=QRe(G),p=n[0],g=n[1],m=n[2],b=n[3]);var j=s3(r-a)/2;if(w=ms(j,m),S=ms(j,b),C=ms(j,p),y=ms(j,g),A=x=Kp(w,S),M=T=Kp(C,y),(x>Ro||T>Ro)&&(E=r*$d(u),I=r*Bc(u),L=a*$d(l),O=a*Bc(l),h<TU)){var J=JRe(z,F,L,O,E,I,$,V);if(J){var ne=z-J[0],ve=F-J[1],le=E-J[0],ce=I-J[1],ue=1/Bc(ZRe((ne*le+ve*ce)/(kg(ne*ne+ve*ve)*kg(le*le+ce*ce)))/2),Q=kg(J[0]*J[0]+J[1]*J[1]);A=ms(x,(r-Q)/(ue+1)),M=ms(T,(a-Q)/(ue-1))}}}if(!P)e.moveTo(c+z,f+F);else if(A>Ro){var _e=ms(m,A),Pe=ms(b,A),pe=N0(L,O,z,F,r,_e,d),Y=N0(E,I,$,V,r,Pe,d);e.moveTo(c+pe.cx+pe.x0,f+pe.cy+pe.y0),A<x&&_e===Pe?e.arc(c+pe.cx,f+pe.cy,A,Ea(pe.y0,pe.x0),Ea(Y.y0,Y.x0),!d):(_e>0&&e.arc(c+pe.cx,f+pe.cy,_e,Ea(pe.y0,pe.x0),Ea(pe.y1,pe.x1),!d),e.arc(c,f,r,Ea(pe.cy+pe.y1,pe.cx+pe.x1),Ea(Y.cy+Y.y1,Y.cx+Y.x1),!d),Pe>0&&e.arc(c+Y.cx,f+Y.cy,Pe,Ea(Y.y1,Y.x1),Ea(Y.y0,Y.x0),!d))}else e.moveTo(c+z,f+F),e.arc(c,f,r,l,u,!d);if(!(a>Ro)||!P)e.lineTo(c+$,f+V);else if(M>Ro){var _e=ms(p,M),Pe=ms(g,M),pe=N0($,V,E,I,a,-Pe,d),Y=N0(z,F,L,O,a,-_e,d);e.lineTo(c+pe.cx+pe.x0,f+pe.cy+pe.y0),M<T&&_e===Pe?e.arc(c+pe.cx,f+pe.cy,M,Ea(pe.y0,pe.x0),Ea(Y.y0,Y.x0),!d):(Pe>0&&e.arc(c+pe.cx,f+pe.cy,Pe,Ea(pe.y0,pe.x0),Ea(pe.y1,pe.x1),!d),e.arc(c,f,a,Ea(pe.cy+pe.y1,pe.cx+pe.x1),Ea(Y.cy+Y.y1,Y.cx+Y.x1),d),_e>0&&e.arc(c+Y.cx,f+Y.cy,_e,Ea(Y.y1,Y.x1),Ea(Y.y0,Y.x0),!d))}else e.lineTo(c+$,f+V),e.arc(c,f,a,u,l,d)}e.closePath()}}}var tOe=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}(),kU=function(e){Ne(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new tOe},t.prototype.buildPath=function(n,r){eOe(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(pn);kU.prototype.type="sector";const ii=kU;var nOe=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),AU=function(e){Ne(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new nOe},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}(pn);AU.prototype.type="ring";const wy=AU;function rOe(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++)ll(c,c,e[d]),ul(f,f,e[d]);ll(c,c,r[0]),ul(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(Ps(e[d]));continue}else l=e[d-1],u=e[d+1];_u(i,u,l),yg(i,i,t);var p=X1(v,l),g=X1(v,u),m=p+g;m!==0&&(p/=m,g/=m),yg(o,i,-p),yg(s,i,g);var b=Ak([],v,o),w=Ak([],v,s);r&&(ul(b,b,c),ll(b,b,f),ul(w,w,c),ll(w,w,f)),a.push(b),a.push(w)}return n&&a.push(a.shift()),a}function EU(e,t,n){var r=t.smooth,a=t.points;if(a&&a.length>=2){if(r){var i=rOe(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 aOe=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),MU=function(e){Ne(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new aOe},t.prototype.buildPath=function(n,r){EU(n,r,!0)},t}(pn);MU.prototype.type="polygon";const oi=MU;var iOe=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),IU=function(e){Ne(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 iOe},t.prototype.buildPath=function(n,r){EU(n,r,!1)},t}(pn);IU.prototype.type="polyline";const li=IU;var oOe={},sOe=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),DU=function(e){Ne(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 sOe},t.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=rU(oOe,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}(pn);DU.prototype.type="line";const ra=DU;var fi=[],lOe=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 l3(e,t,n){var r=e.cpx2,a=e.cpy2;return r!=null||a!=null?[(n?v$:ea)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?v$:ea)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Pk:ha)(e.x1,e.cpx1,e.x2,t),(n?Pk:ha)(e.y1,e.cpy1,e.y2,t)]}var LU=function(e){Ne(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 lOe},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&&(bm(a,l,o,d,fi),l=fi[1],o=fi[2],bm(i,u,s,d,fi),u=fi[1],s=fi[2]),n.quadraticCurveTo(l,u,o,s)):(d<1&&(Ku(a,l,c,o,d,fi),l=fi[1],c=fi[2],o=fi[3],Ku(i,u,f,s,d,fi),u=fi[1],f=fi[2],s=fi[3]),n.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(n){return l3(this.shape,n,!1)},t.prototype.tangentAt=function(n){var r=l3(this.shape,n,!0);return cd(r,r)},t}(pn);LU.prototype.type="bezier-curve";const Sy=LU;var uOe=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}(),PU=function(e){Ne(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 uOe},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}(pn);PU.prototype.type="arc";const eS=PU;var cOe=function(e){Ne(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),pn.prototype.getBoundingRect.call(this)},t}(pn);const tS=cOe;var fOe=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e}();const RU=fOe;var dOe=function(e){Ne(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}(RU);const kv=dOe;var hOe=function(e){Ne(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}(RU);const jI=hOe;var Fc=[0,0],Vc=[0,0],$0=new an,B0=new an,vOe=function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new an;for(var r=0;r<2;r++)this._axes[r]=new an;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);an.sub(a[0],r[1],r[0]),an.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 $0.set(1/0,1/0),B0.set(0,0),!this._intersectCheckOneSide(this,t,$0,B0,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(t,this,$0,B0,a,-1)&&(r=!1,a)||a||an.copy(n,r?$0:B0),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,Fc),this._getProjMinMaxOnAxis(l,n._corners,Vc),Fc[1]<Vc[0]||Fc[0]>Vc[1]){if(s=!1,i)return s;var c=Math.abs(Vc[0]-Fc[1]),f=Math.abs(Fc[0]-Vc[1]);Math.min(c,f)>a.len()&&(c<f?an.scale(a,u,-c*o):an.scale(a,u,f*o))}else if(r){var c=Math.abs(Vc[0]-Fc[1]),f=Math.abs(Fc[0]-Vc[1]);Math.min(c,f)<r.len()&&(c<f?an.scale(r,u,c*o):an.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 i_=vOe;var pOe=[],gOe=function(e){Ne(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 sn(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(pOe)),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}(_o);const OU=gOe;var NU=Ln();function Av(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=on(r.duration,200),c=on(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)),It(f)&&(f=f(n,a)),It(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function YI(e,t,n,r,a,i,o){var s=!1,l;It(a)?(o=i,i=a,a=null):Ot(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=Av(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 Pn(e,t,n,r,a,i){YI("update",e,t,n,r,a,i)}function cr(e,t,n,r,a,i){YI("enter",e,t,n,r,a,i)}function Ih(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 ju(e,t,n,r,a,i){Ih(e)||YI("leave",e,t,n,r,a,i)}function u3(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),ju(e,{style:{opacity:0}},t,n,r)}function Mm(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||u3(a,t,n,r)}):u3(e,t,n,r)}function rs(e){NU(e).oldStyle=e.style}function mOe(e){return NU(e).oldStyle}var o_=Math.max,s_=Math.min,aA={};function $U(e){return pn.extend(e)}var yOe=jRe;function BU(e,t){return yOe(e,t)}function So(e,t){aA[e]=t}function nS(e){if(aA.hasOwnProperty(e))return aA[e]}function Cy(e,t,n,r){var a=SU(e,t);return n&&(r==="center"&&(n=FU(n,a.getBoundingRect())),XI(a,n)),a}function qI(e,t,n){var r=new ga({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(FU(t,i))}}});return r}function FU(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 Ii=YRe;function XI(e,t){if(e.applyTransform){var n=e.getBoundingRect(),r=n.calculateTransform(t);e.applyTransform(r)}}function iv(e,t){return rU(e,e,{lineWidth:t}),e}function bOe(e){return aU(e.shape,e.shape,e.style),e}var c1=Sf;function Ru(e,t){for(var n=gy([]);e&&e!==t;)Rs(n,e.getLocalTransform(),n),e=e.parent;return n}function Zo(e,t,n){return t&&!Ca(t)&&(t=cl.getLocalTransform(t)),n&&(t=fd([],t)),pa([],e,t)}function rS(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=Zo(i,t,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function c3(e){return!e.isGroup}function _Oe(e){return e.shape!=null}function xy(e,t,n){if(!e||!t)return;function r(o){var s={};return o.traverse(function(l){c3(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return _Oe(o)&&(s.shape=je({},o.shape)),s}var i=r(e);t.traverse(function(o){if(c3(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Pn(o,l,n,Jt(o).dataIndex)}}})}function ZI(e,t){return at(e,function(n){var r=n[0];r=o_(r,t.x),r=s_(r,t.x+t.width);var a=n[1];return a=o_(a,t.y),a=s_(a,t.y+t.height),[r,a]})}function VU(e,t){var n=o_(e.x,t.x),r=s_(e.x+e.width,t.x+t.width),a=o_(e.y,t.y),i=s_(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 Ev(e,t,n){var r=je({rectHover:!0},t),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),Lt(a,n),new ga(r)):Cy(e.replace("path://",""),r,n,"center")}function jp(e,t,n,r,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(zU(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function zU(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=cx(c,f,l,u);if(wOe(d))return!1;var h=e-a,v=t-i,p=cx(h,v,l,u)/d;if(p<0||p>1)return!1;var g=cx(h,v,c,f)/d;return!(g<0||g>1)}function cx(e,t,n,r){return e*r-n*t}function wOe(e){return e<=1e-6&&e>=-1e-6}function Mv(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,a=St(t)?{formatter:t}:t,i=n.mainType,o=n.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&K(_n(l),function(c){Tt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Jt(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:Lt({content:r,formatterParams:s},a)}}function f3(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function uc(e,t){if(e)if(et(e))for(var n=0;n<e.length;n++)f3(e[n],t);else f3(e,t)}So("circle",ns);So("ellipse",Qw);So("sector",ii);So("ring",wy);So("polygon",oi);So("polyline",li);So("rect",En);So("line",ra);So("bezierCurve",Sy);So("arc",eS);const Ty=Object.freeze(Object.defineProperty({__proto__:null,Arc:eS,BezierCurve:Sy,BoundingRect:sn,Circle:ns,CompoundPath:tS,Ellipse:Qw,Group:Gt,Image:ga,IncrementalDisplayable:OU,Line:ra,LinearGradient:kv,OrientedBoundingRect:i_,Path:pn,Point:an,Polygon:oi,Polyline:li,RadialGradient:jI,Rect:En,Ring:wy,Sector:ii,Text:An,applyTransform:Zo,clipPointsByRect:ZI,clipRectByRect:VU,createIcon:Ev,extendPath:BU,extendShape:$U,getShapeClass:nS,getTransform:Ru,groupTransition:xy,initProps:cr,isElementRemoved:Ih,lineLineIntersect:zU,linePolygonIntersect:jp,makeImage:qI,makePath:Cy,mergePath:Ii,registerShape:So,removeElement:ju,removeElementWithFadeOut:Mm,resizePath:XI,setTooltipConfig:Mv,subPixelOptimize:c1,subPixelOptimizeLine:iv,subPixelOptimizeRect:bOe,transformDirection:rS,traverseElements:uc,updateProps:Pn},Symbol.toStringTag,{value:"Module"}));var aS={};function HU(e,t){for(var n=0;n<ai.length;n++){var r=ai[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 iA(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=It(e.defaultText)?e.defaultText(a,e,n):e.defaultText);for(var l={normal:s},u=0;u<ai.length;u++){var c=ai[u],f=t[c];l[c]=on(r?r.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function Ta(e,t,n,r){n=n||aS;for(var a=e instanceof An,i=!1,o=0;o<Am.length;o++){var s=t[Am[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new An,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=iA(n,t),c=t.normal,f=!!c.getShallow("show"),d=er(c,r&&r.normal,n,!1,!a);d.text=u.normal,a||e.setTextConfig(l_(c,n,!1));for(var o=0;o<ai.length;o++){var h=ai[o],s=t[h];if(s){var v=l.ensureState(h),p=!!on(s.getShallow("show"),f);if(p!==f&&(v.ignore=!p),v.style=er(s,r&&r[h],n,!0,!a),v.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=l_(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&&(Iv(l).setLabelText=function(m){var b=iA(n,t,m);HU(l,b)})}else l&&(l.ignore=!0);e.dirty()}function sa(e,t){t=t||"label";for(var n={normal:e.getModel(t)},r=0;r<ai.length;r++){var a=ai[r];n[a]=e.getModel([a,t])}return n}function er(e,t,n,r,a){var i={};return SOe(i,e,n,r,a),t&&je(i,t),i}function l_(e,t,n){t=t||{};var r={},a,i=e.getShallow("rotate"),o=on(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 SOe(e,t,n,r,a){n=n||aS;var i=t.ecModel,o=i&&i.option.textStyle,s=COe(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);p3(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),p3(e,t,o,n,r,a,!0,!1)}function COe(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||aS).rich;if(n){t=t||{};for(var r=_n(n),a=0;a<r.length;a++){var i=r[a];t[i]=1}}e=e.parentModel}return t}var d3=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],h3=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],v3=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function p3(e,t,n,r,a,i,o,s){n=!a&&n||aS;var l=r&&r.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=on(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=on(t.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(e.lineWidth=d);var h=on(t.getShallow("textBorderType"),n.textBorderType);h!=null&&(e.lineDash=h);var v=on(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<d3.length;p++){var g=d3[p],m=on(t.getShallow(g),n[g]);m!=null&&(e[g]=m)}for(var p=0;p<h3.length;p++){var g=h3[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<v3.length;p++){var g=v3[p],m=t.getShallow(g);m!=null&&(e[g]=m)}var w=t.getShallow("borderType");w!=null&&(e.borderDash=w),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function WU(e,t){var n=t&&t.getModel("textStyle");return oo([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 Iv=Ln();function GU(e,t,n,r){if(e){var a=Iv(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 UU(e,t,n,r,a){var i=Iv(e);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=on(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=UG(n,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=iA({labelDataIndex:t,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);HU(e,d)}e.percent=0,(i.prevValue==null?cr:Pn)(e,{percent:1},r,t,null,u)}var xOe=["textStyle","color"],fx=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],dx=new An,TOe=function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(xOe):null)},e.prototype.getFont=function(){return WU({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<fx.length;r++)n[fx[r]]=this.getShallow(fx[r]);return dx.useStyle(n),dx.update(),dx.getBoundingRect()},e}();const kOe=TOe;var KU=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],AOe=Xf(KU),EOe=function(){function e(){}return e.prototype.getLineStyle=function(t){return AOe(this,t)},e}(),jU=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],MOe=Xf(jU),IOe=function(){function e(){}return e.prototype.getItemStyle=function(t,n){return MOe(this,t,n)},e}(),dd=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){rn(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(Ft(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(!Mn.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}();FI(dd);RPe(dd);Ir(dd,EOe);Ir(dd,IOe);Ir(dd,FPe);Ir(dd,kOe);const Yn=dd;var DOe=Math.round(Math.random()*10);function Dv(e){return[e||"",DOe++].join("_")}function LOe(e){var t={};e.registerSubTypeDefaulter=function(n,r){var a=Ms(n);t[a.main]=r},e.determineSubType=function(n,r){var a=r.type;if(!a){var i=Ms(n).main;e.hasSubTypes(n)&&t[i]&&(a=t[i](r))}return a}}function POe(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=n(o),c=u.graph,f=u.noEntryList,d={};for(K(i,function(b){d[b]=!0});f.length;){var h=f.pop(),v=c[h],p=!!d[h];p&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),K(v.successor,p?m:g)}K(d,function(){var b="";throw new Error(b)});function g(b){c[b].entryCount--,c[b].entryCount===0&&f.push(b)}function m(b){d[b]=!0,g(b)}};function n(i){var o={},s=[];return K(i,function(l){var u=r(o,l),c=u.originalDeps=t(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),K(f,function(d){cn(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(o,d);cn(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function r(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return K(i,function(l){cn(o,l)>=0&&s.push(l)}),s}}function cc(e,t){return rn(rn({},e,!0),t,!0)}const ROe={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:". "}}}},OOe={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 u_="ZH",JI="EN",Im=JI,f1={},QI={},YU=Mn.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(u_)>-1?u_:Im}():Im;function eD(e,t){e=e.toUpperCase(),QI[e]=new Yn(t),f1[e]=t}function NOe(e){if(St(e)){var t=f1[e.toUpperCase()]||{};return e===u_||e===JI?Ft(t):rn(Ft(t),Ft(f1[Im]),!1)}else return rn(Ft(e),Ft(f1[Im]),!1)}function oA(e){return QI[e]}function $Oe(){return QI[Im]}eD(JI,ROe);eD(u_,OOe);var tD=1e3,nD=tD*60,Ag=nD*60,ao=Ag*24,g3=ao*365,Yp={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}"},F0="{yyyy}-{MM}-{dd}",m3={year:"{yyyy}",month:"{yyyy}-{MM}",day:F0,hour:F0+" "+Yp.hour,minute:F0+" "+Yp.minute,second:F0+" "+Yp.second,millisecond:Yp.none},hx=["year","month","day","hour","minute","second","millisecond"],qU=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ja(e,t){return e+="","0000".substr(0,t-e.length)+e}function Dh(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 BOe(e){return e===Dh(e)}function FOe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ky(e,t,n,r){var a=Fi(e),i=a[rD(n)](),o=a[Lh(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[iS(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[Dm(n)](),f=(c-1)%12+1,d=a[oS(n)](),h=a[sS(n)](),v=a[lS(n)](),p=r instanceof Yn?r:oA(r||YU)||$Oe(),g=p.getModel("time"),m=g.get("month"),b=g.get("monthAbbr"),w=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,ja(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,ja(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ja(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ja(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ja(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,ja(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,ja(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,ja(v,3)).replace(/{S}/g,v+"")}function VOe(e,t,n,r,a){var i=null;if(St(n))i=n;else if(It(n))i=n(e.value,t,{level:e.level});else{var o=je({},Yp);if(e.level>0)for(var s=0;s<hx.length;++s)o[hx[s]]="{primary|"+o[hx[s]]+"}";var l=n?n.inherit===!1?n:Lt(n,o):o,u=XU(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=qU.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(et(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 ky(new Date(e.value),i,a,r)}function XU(e,t){var n=Fi(e),r=n[Lh(t)]()+1,a=n[iS(t)](),i=n[Dm(t)](),o=n[oS(t)](),s=n[sS(t)](),l=n[lS(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 y3(e,t,n){var r=Dn(e)?Fi(e):e;switch(t=t||XU(e,n),t){case"year":return r[rD(n)]();case"half-year":return r[Lh(n)]()>=6?1:0;case"quarter":return Math.floor((r[Lh(n)]()+1)/4);case"month":return r[Lh(n)]();case"day":return r[iS(n)]();case"half-day":return r[Dm(n)]()/24;case"hour":return r[Dm(n)]();case"minute":return r[oS(n)]();case"second":return r[sS(n)]();case"millisecond":return r[lS(n)]()}}function rD(e){return e?"getUTCFullYear":"getFullYear"}function Lh(e){return e?"getUTCMonth":"getMonth"}function iS(e){return e?"getUTCDate":"getDate"}function Dm(e){return e?"getUTCHours":"getHours"}function oS(e){return e?"getUTCMinutes":"getMinutes"}function sS(e){return e?"getUTCSeconds":"getSeconds"}function lS(e){return e?"getUTCMilliseconds":"getMilliseconds"}function zOe(e){return e?"setUTCFullYear":"setFullYear"}function ZU(e){return e?"setUTCMonth":"setMonth"}function JU(e){return e?"setUTCDate":"setDate"}function QU(e){return e?"setUTCHours":"setHours"}function eK(e){return e?"setUTCMinutes":"setMinutes"}function tK(e){return e?"setUTCSeconds":"setSeconds"}function nK(e){return e?"setUTCMilliseconds":"setMilliseconds"}function HOe(e,t,n,r,a,i,o,s){var l=new An({style:{text:e,font:t,align:n,verticalAlign:r,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function aD(e){if(!NI(e))return St(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function iD(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 hd=zw;function sA(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&oo(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?Fi(e):e;if(isNaN(+l)){if(s)return"-"}else return ky(l,r,n)}if(t==="ordinal")return Y1(e)?a(e):Dn(e)&&i(e)?e+"":"-";var u=Hs(e);return i(u)?aD(u):Y1(e)?a(e):typeof e=="boolean"?e+"":"-"}var b3=["a","b","c","d","e","f","g"],vx=function(e,t){return"{"+e+(t??"")+"}"};function oD(e,t,n){et(t)||(t=[t]);var r=t.length;if(!r)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=b3[i];e=e.replace(vx(o),vx(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(vx(b3[l],s),n?qa(u):u)}return e}function WOe(e,t,n){return K(t,function(r,a){e=e.replace("{"+a+"}",n?qa(r):r)}),e}function rK(e,t){var n=St(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:'+qa(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+qa(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 GOe(e,t,n){(e==="week"||e==="month"||e==="quarter"||e==="half-year"||e==="year")&&(e=`MM-dd
  94. yyyy`);var r=Fi(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",ja(o,2)).replace("M",o).replace("yyyy",i).replace("yy",ja(i%100+"",2)).replace("dd",ja(s,2)).replace("d",s).replace("hh",ja(l,2)).replace("h",l).replace("mm",ja(u,2)).replace("m",u).replace("ss",ja(c,2)).replace("s",c).replace("SSS",ja(f,3)),e}function UOe(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Jf(e,t){return t=t||"transparent",St(e)?e:Ot(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function c_(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var d1=K,aK=["left","right","top","bottom","width","height"],xf=[["width","left","right"],["height","top","bottom"]];function sD(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 $f=sD;Zt(sD,"vertical");Zt(sD,"horizontal");function KOe(e,t,n){var r=t.width,a=t.height,i=yt(e.left,r),o=yt(e.top,a),s=yt(e.right,r),l=yt(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=hd(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function Yr(e,t,n){n=hd(n||0);var r=t.width,a=t.height,i=yt(e.left,r),o=yt(e.top,a),s=yt(e.right,r),l=yt(e.bottom,a),u=yt(e.width,r),c=yt(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 sn(i+n[3],o+n[0],u,c);return v.margin=n,v}function uS(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 sn(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=Yr(Lt({width:u.width,height:u.height},t),n,r),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=h):(i.x+=d,i.y+=h),i===e&&e.markRedraw(),!0}function jOe(e,t){return e[xf[t][0]]!=null||e[xf[t][1]]!=null&&e[xf[t][2]]!=null}function Lm(e){var t=e.layoutMode||e.constructor.layoutMode;return Ot(t)?t:t?{type:t}:null}function Yu(e,t,n){var r=n&&n.ignoreSize;!et(r)&&(r=[r,r]);var a=o(xf[0],0),i=o(xf[1],1);u(xf[0],e,a),u(xf[1],e,i);function o(c,f){var d={},h=0,v={},p=0,g=2;if(d1(c,function(w){v[w]=e[w]}),d1(c,function(w){s(t,w)&&(d[w]=v[w]=t[w]),l(d,w)&&h++,l(v,w)&&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){d1(c,function(h){f[h]=d[h]})}}function Lv(e){return iK({},e)}function iK(e,t){return t&&e&&d1(aK,function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var YOe=Ln(),Pv=function(e){Ne(t,e);function t(n,r,a){var i=e.call(this,n,r,a)||this;return i.uid=Dv("ec_cpt_model"),i}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Lm(this),i=a?Lv(n):{},o=r.getTheme();rn(n,o.get(this.mainType)),rn(n,this.getDefaultOption()),a&&Yu(n,i,a)},t.prototype.mergeOption=function(n,r){rn(this.option,n,!0);var a=Lm(this);a&&Yu(this.option,n,a)},t.prototype.optionUpdated=function(n,r){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!DPe(n))return n.defaultOption;var r=YOe(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=rn(s,a[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return by(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}(Yn);jG(Pv,Yn);jw(Pv);LOe(Pv);POe(Pv,qOe);function qOe(e){var t=[];return K(Pv.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=at(t,function(n){return Ms(n).main}),e!=="dataset"&&cn(t,"dataset")<=0&&t.unshift("dataset"),t}const kn=Pv;var oK="";typeof navigator<"u"&&(oK=navigator.platform||"");var Bd="rgba(0, 0, 0, 0.2)";const XOe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Bd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Bd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Bd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Bd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Bd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Bd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:oK.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 sK=Et(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Co="original",Fa="arrayRows",xo="objectRows",Ks="keyedColumns",Ou="typedArray",lK="unknown",Os="column",Rv="row",ma={Must:1,Might:2,Not:3},uK=Ln();function ZOe(e){uK(e).datasetMap=Et()}function cK(e,t,n){var r={},a=uD(t);if(!a||!e)return r;var i=[],o=[],s=t.ecModel,l=uK(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;e=e.slice(),K(e,function(p,g){var m=Ot(p)?p:e[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=v(m)),r[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});K(e,function(p,g){var m=p.name,b=v(p);if(c==null){var w=d.valueWayDim;h(r[m],w,b),h(o,w,b),d.valueWayDim+=b}else if(c===g)h(r[m],0,b),h(i,0,b);else{var w=d.categoryWayDim;h(r[m],w,b),h(o,w,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 lD(e,t,n){var r={},a=uD(e);if(!a)return r;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===xo||i===Ks)&&K(o,function(c,f){(Ot(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=dK(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);d.push(p);var g=p===ma.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===ma.Not)&&(c.n=h),m(c)&&d[c.n]!==ma.Not)return c;g||(p===ma.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 uD(e){var t=e.get("data",!0);if(!t)return by(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Hr).models[0]}function JOe(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:by(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Hr).models}function fK(e,t){return dK(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function dK(e,t,n,r,a,i){var o,s=5;if(Ci(e))return ma.Not;var l,u;if(r){var c=r[i];Ot(c)?(l=c.name,u=c.type):St(c)&&(l=c)}if(u!=null)return u==="ordinal"?ma.Must:ma.Not;if(t===Fa){var f=e;if(n===Rv){for(var d=f[i],h=0;h<(d||[]).length&&h<s;h++)if((o=S(d[a+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var v=f[a+h];if(v&&(o=S(v[i]))!=null)return o}}else if(t===xo){var p=e;if(!l)return ma.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Ks){var m=e;if(!l)return ma.Not;var d=m[l];if(!d||Ci(d))return ma.Not;for(var h=0;h<d.length&&h<s;h++)if((o=S(d[h]))!=null)return o}else if(t===Co)for(var b=e,h=0;h<b.length&&h<s;h++){var g=b[h],w=xv(g);if(!et(w))return ma.Not;if((o=S(w[i]))!=null)return o}function S(C){var y=St(C);if(C!=null&&isFinite(C)&&C!=="")return y?ma.Might:ma.Not;if(y&&C!=="-")return ma.Must}return ma.Not}var lA=Et();function QOe(e,t){Ba(lA.get(e)==null&&t),lA.set(e,t)}function eNe(e,t,n){var r=lA.get(t);if(!r)return n;var a=r(e);return a?n.concat(a):n}var _3=Ln(),tNe=Ln(),cD=function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,r){var a=qn(this.get("color",!0)),i=this.get("colorLayer",!0);return hK(this,_3,a,i,t,n,r)},e.prototype.clearColorPalette=function(){rNe(this,_3)},e}();function uA(e,t,n,r){var a=qn(e.get(["aria","decal","decals"]));return hK(e,tNe,a,null,t,n,r)}function nNe(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 hK(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:nNe(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 rNe(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var V0,mp,w3,S3="\0_ec_inner",aNe=1,vK=function(e){Ne(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 Yn(i),this._locale=new Yn(o),this._optionManager=s},t.prototype.setOption=function(n,r,a){var i=T3(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(n,r){return this._resetOption(n,T3(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"?w3(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=i.getMediaOption(this);l.length&&K(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=Et(),u=r&&r.replaceMergeMainTypeMap;ZOe(this),K(n,function(f,d){f!=null&&(kn.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?Ft(f):rn(a[d],f,!0))}),u&&u.each(function(f,d){kn.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),kn.topologicalTravel(s,kn.getAllClassMainTypes(),c,this);function c(f){var d=eNe(this,f,qn(n[f])),h=i.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=HG(h,d,v);SPe(p,f,kn),a[f]=null,i.set(f,null),o.set(f,0);var g=[],m=[],b=0,w;K(p,function(S,C){var y=S.existing,x=S.newOption;if(!x)y&&(y.mergeOption({},this),y.optionUpdated({},!1));else{var T=f==="series",A=kn.getClass(f,S.keyInfo.subType,!T);if(!A)return;if(f==="tooltip"){if(w)return;w=!0}if(y&&y.constructor===A)y.name=S.keyInfo.name,y.mergeOption(x,this),y.optionUpdated(x,!1);else{var M=je({componentIndex:C},S.keyInfo);y=new A(x,this,this,M),je(y,M),S.brandNew&&(y.__requireNewView=!0),y.init(x,this,this),y.optionUpdated(null,!0)}}y?(g.push(y.option),m.push(y),b++):(g.push(void 0),m.push(void 0))},this),a[f]=g,i.set(f,m),o.set(f,b),f==="series"&&V0(this)}this._seriesIndices||V0(this)},t.prototype.getOption=function(){var n=Ft(this.option);return K(n,function(r,a){if(kn.hasClass(a)){for(var i=qn(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Tm(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[S3],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,i=n.id,o=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return a!=null?(l=[],K(qn(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=C3("id",i,s):o!=null?l=C3("name",o,s):l=zn(s,function(u){return!!u}),x3(l,n)},t.prototype.findComponents=function(n){var r=n.query,a=n.mainType,i=s(r),o=i?this.queryComponents(i):zn(this._componentsMap.get(a),function(u){return!!u});return l(x3(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?zn(u,n.filter):u}},t.prototype.eachComponent=function(n,r,a){var i=this._componentsMap;if(It(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=St(n)?i.get(n):Ot(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=Zr(n,null);return zn(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 zn(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},t.prototype.getSeries=function(){return zn(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,r){mp(this),K(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];n.call(r,i,a)},this)},t.prototype.eachRawSeries=function(n,r){K(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(n,r,a){mp(this),K(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===n&&r.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(n,r,a){return K(this.getSeriesByType(n),r,a)},t.prototype.isSeriesFiltered=function(n){return mp(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,r){mp(this);var a=[];K(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=Et(a)},t.prototype.restoreData=function(n){V0(this);var r=this._componentsMap,a=[];r.each(function(i,o){kn.hasClass(o)&&a.push(o)}),kn.topologicalTravel(a,kn.getAllClassMainTypes(),function(i){K(r.get(i),function(o){o&&(i!=="series"||!iNe(o,n))&&o.restoreData()})})},t.internalField=function(){V0=function(n){var r=n._seriesIndices=[];K(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=Et(r)},mp=function(n){},w3=function(n,r){n.option={},n.option[S3]=aNe,n._componentsMap=Et({series:[]}),n._componentsCount=Et();var a=r.aria;Ot(a)&&a.enabled==null&&(a.enabled=!0),oNe(r,n._theme.option),rn(r,XOe,!1),n._mergeOption(r,null)}}(),t}(Yn);function iNe(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 oNe(e,t){var n=e.color&&!e.colorLayer;K(t,function(r,a){a==="colorLayer"&&n||kn.hasClass(a)||(typeof r=="object"?e[a]=e[a]?rn(e[a],r,!1):Ft(r):e[a]==null&&(e[a]=r))})}function C3(e,t,n){if(et(t)){var r=Et();return K(t,function(i){if(i!=null){var o=Zr(i,null);o!=null&&r.set(i,!0)}}),zn(n,function(i){return i&&r.get(i[e])})}else{var a=Zr(t,null);return zn(n,function(i){return i&&a!=null&&i[e]===a})}}function x3(e,t){return t.hasOwnProperty("subType")?zn(e,function(n){return n&&n.subType===t.subType}):e}function T3(e){var t=Et();return e&&K(qn(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Ir(vK,cD);const pK=vK;var sNe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],lNe=function(){function e(t){K(sNe,function(n){this[n]=Ct(t[n],t)},this)}return e}();const gK=lNe;var px={},uNe=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,n){var r=[];K(px,function(a,i){var o=a.create(t,n);r=r.concat(o||[])}),this._coordinateSystems=r},e.prototype.update=function(t,n){K(this._coordinateSystems,function(r){r.update&&r.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,n){px[t]=n},e.get=function(t){return px[t]},e}();const Ov=uNe;var cNe=/^(min|max)?(.+)$/,fNe=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,r){t&&(K(qn(t.series),function(o){o&&o.data&&Ci(o.data)&&gm(o.data)}),K(qn(t.dataset),function(o){o&&o.source&&Ci(o.source)&&gm(o.source)})),t=Ft(t);var a=this._optionBackup,i=dNe(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=[],Ft(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=Ft(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++)hNe(a[l].query,n,r)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!pNe(o,this._currentMediaIndices)&&(s=at(o,function(c){return Ft(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function dNe(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&&et(u)&&K(u,function(h){h&&h.option&&(h.query?r.push(h):a||(a=h))}),d(i),K(l,function(h){return d(h)}),K(r,function(h){return d(h.option)});function d(h){K(t,function(v){v(h,n)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:r}}function hNe(e,t,n){var r={width:t,height:n,aspectratio:t/n},a=!0;return K(e,function(i,o){var s=o.match(cNe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();vNe(r[u],i,l)||(a=!1)}}),a}function vNe(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function pNe(e,t){return e.join(",")===t.join(",")}const gNe=fNe;var Do=K,Pm=Ot,k3=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function gx(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=k3.length;n<r;n++){var a=k3[n],i=t.normal,o=t.emphasis;i&&i[a]&&(e[a]=e[a]||{},e[a].normal?rn(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(e[a]=e[a]||{},e[a].emphasis?rn(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function Da(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,a=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,Lt(e[t],r)):e[t]=r),a&&(e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function qp(e){Da(e,"itemStyle"),Da(e,"lineStyle"),Da(e,"areaStyle"),Da(e,"label"),Da(e,"labelLine"),Da(e,"upperLabel"),Da(e,"edgeLabel")}function zr(e,t){var n=Pm(e)&&e[t],r=Pm(n)&&n.textStyle;if(r)for(var a=0,i=I$.length;a<i;a++){var o=I$[a];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Xi(e){e&&(qp(e),zr(e,"label"),e.emphasis&&zr(e.emphasis,"label"))}function mNe(e){if(Pm(e)){gx(e),qp(e),zr(e,"label"),zr(e,"upperLabel"),zr(e,"edgeLabel"),e.emphasis&&(zr(e.emphasis,"label"),zr(e.emphasis,"upperLabel"),zr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(gx(t),Xi(t));var n=e.markLine;n&&(gx(n),Xi(n));var r=e.markArea;r&&Xi(r);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!Ci(i))for(var o=0;o<i.length;o++)Xi(i[o]);K(e.categories,function(u){qp(u)})}if(a&&!Ci(a))for(var o=0;o<a.length;o++)Xi(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Xi(s[o]);if(n=e.markLine,n&&n.data)for(var l=n.data,o=0;o<l.length;o++)et(l[o])?(Xi(l[o][0]),Xi(l[o][1])):Xi(l[o]);e.type==="gauge"?(zr(e,"axisLabel"),zr(e,"title"),zr(e,"detail")):e.type==="treemap"?(Da(e.breadcrumb,"itemStyle"),K(e.levels,function(u){qp(u)})):e.type==="tree"&&qp(e.leaves)}}function Zs(e){return et(e)?e:e?[e]:[]}function A3(e){return(et(e)?e[0]:e)||{}}function yNe(e,t){Do(Zs(e.series),function(r){Pm(r)&&mNe(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Do(n,function(r){Do(Zs(e[r]),function(a){a&&(zr(a,"axisLabel"),zr(a.axisPointer,"label"))})}),Do(Zs(e.parallel),function(r){var a=r&&r.parallelAxisDefault;zr(a,"axisLabel"),zr(a&&a.axisPointer,"label")}),Do(Zs(e.calendar),function(r){Da(r,"itemStyle"),zr(r,"dayLabel"),zr(r,"monthLabel"),zr(r,"yearLabel")}),Do(Zs(e.radar),function(r){zr(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)}),Do(Zs(e.geo),function(r){Pm(r)&&(Xi(r),Do(Zs(r.regions),function(a){Xi(a)}))}),Do(Zs(e.timeline),function(r){Xi(r),Da(r,"label"),Da(r,"itemStyle"),Da(r,"controlStyle",!0);var a=r.data;et(a)&&K(a,function(i){Ot(i)&&(Da(i,"label"),Da(i,"itemStyle"))})}),Do(Zs(e.toolbox),function(r){Da(r,"iconStyle"),Do(r.feature,function(a){Da(a,"iconStyle")})}),zr(A3(e.axisPointer),"label"),zr(A3(e.tooltip).axisPointer,"label")}function bNe(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 _Ne(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 E3(e){e&&K(wNe,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var wNe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],SNe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],mx=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function yp(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<mx.length;n++){var r=mx[n][1],a=mx[n][0];t[r]!=null&&(t[a]=t[r])}}function M3(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function I3(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function CNe(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function mK(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&mK(e[n].children,t)}function yK(e,t){yNe(e,t),e.series=qn(e.series),K(e.series,function(n){if(Ot(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),M3(n.label);var a=n.data;if(a&&!Ci(a))for(var i=0;i<a.length;i++)M3(a[i]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=bNe(n,"pointer.color");o!=null&&_Ne(n,"itemStyle.color",o)}else if(r==="bar"){yp(n),yp(n.backgroundStyle),yp(n.emphasis);var a=n.data;if(a&&!Ci(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(yp(a[i]),yp(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)),I3(n),mK(n.data,I3)}else r==="graph"||r==="sankey"?CNe(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&Lt(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),E3(n)}}),e.dataRange&&(e.visualMap=e.dataRange),K(SNe,function(n){var r=e[n];r&&(et(r)||(r=[r]),K(r,function(a){E3(a)}))})}function xNe(e){var t=Et();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(TNe)}function TNe(e){K(e,function(t,n){var r=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return a;var h,v;s?v=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var p=NaN,g=n-1;g>=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var b=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=dPe(d,b),p=b;break}}}return r[0]=d,r[1]=p,r})})}var cS=function(){function e(t){this.data=t.data||(t.sourceFormat===Ks?{}:[]),this.sourceFormat=t.sourceFormat||lK,this.seriesLayoutBy=t.seriesLayoutBy||Os,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&&fK(this,r)===ma.Must&&(a.type="ordinal")}}return e}();function fD(e){return e instanceof cS}function cA(e,t,n){n=n||bK(e);var r=t.seriesLayoutBy,a=ANe(e,n,r,t.sourceHeader,t.dimensions),i=new cS({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:Ft(t)});return i}function dD(e){return new cS({data:e,sourceFormat:Ci(e)?Ou:Co})}function kNe(e){return new cS({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Ft(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function bK(e){var t=lK;if(Ci(e))t=Ou;else if(et(e)){e.length===0&&(t=Fa);for(var n=0,r=e.length;n<r;n++){var a=e[n];if(a!=null){if(et(a)){t=Fa;break}else if(Ot(a)){t=xo;break}}}}else if(Ot(e)){for(var i in e)if(Tt(e,i)&&Ca(e[i])){t=Ks;break}}return t}function ANe(e,t,n,r,a){var i,o;if(!e)return{dimensionsDefine:D3(a),startIndex:o,dimensionsDetectedCount:i};if(t===Fa){var s=e;r==="auto"||r==null?L3(function(u){u!=null&&u!=="-"&&(St(u)?o==null&&(o=1):o=0)},n,s,10):o=Dn(r)?r:r?1:0,!a&&o===1&&(a=[],L3(function(u,c){a[c]=u!=null?u+"":""},n,s,1/0)),i=a?a.length:n===Rv?s.length:s[0]?s[0].length:null}else if(t===xo)a||(a=ENe(e));else if(t===Ks)a||(a=[],K(e,function(u,c){a.push(c)}));else if(t===Co){var l=xv(e[0]);i=et(l)&&l.length||1}return{startIndex:o,dimensionsDefine:D3(a),dimensionsDetectedCount:i}}function ENe(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return _n(n)}function D3(e){if(e){var t=Et();return at(e,function(n,r){n=Ot(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 L3(e,t,n,r){if(t===Rv)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 _K(e){var t=e.sourceFormat;return t===xo||t===Ks}var zc,Hc,Wc,P3,R3,wK=function(){function e(t,n){var r=fD(t)?t:dD(t);this._source=r;var a=this._data=r.data;r.sourceFormat===Ou&&(this._offset=0,this._dimSize=n,this._data=a),R3(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;R3=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=P3[hD(u,c)];if(je(o,h),u===Ou)o.getItem=n,o.count=a,o.fillStorage=r;else{var v=SK(u,c);o.getItem=Ct(v,null,s,f,d);var p=CK(u,c);o.count=Ct(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 w=c[b*f+d];m[o+b]=w,w<v&&(v=w),w>p&&(p=w)}h[0]=v,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};P3=(t={},t[Fa+"_"+Os]={pure:!0,appendData:i},t[Fa+"_"+Rv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[xo]={pure:!0,appendData:i},t[Ks]={pure:!0,appendData:function(o){var s=this._data;K(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Co]={appendData:i},t[Ou]={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}(),O3=function(e,t,n,r){return e[r]},MNe=(zc={},zc[Fa+"_"+Os]=function(e,t,n,r){return e[r+t]},zc[Fa+"_"+Rv]=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},zc[xo]=O3,zc[Ks]=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},zc[Co]=O3,zc);function SK(e,t){var n=MNe[hD(e,t)];return n}var N3=function(e,t,n){return e.length},INe=(Hc={},Hc[Fa+"_"+Os]=function(e,t,n){return Math.max(0,e.length-t)},Hc[Fa+"_"+Rv]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Hc[xo]=N3,Hc[Ks]=function(e,t,n){var r=n[0].name,a=e[r];return a?a.length:0},Hc[Co]=N3,Hc);function CK(e,t){var n=INe[hD(e,t)];return n}var yx=function(e,t,n){return e[t]},DNe=(Wc={},Wc[Fa]=yx,Wc[xo]=function(e,t,n){return e[n]},Wc[Ks]=yx,Wc[Co]=function(e,t,n){var r=xv(e);return r instanceof Array?r[t]:r},Wc[Ou]=yx,Wc);function xK(e){var t=DNe[e];return t}function hD(e,t){return e===Fa?e+"_"+t:e}function ov(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 xK(i)(r,o,s)}else{var l=r;return i===Co&&(l=xv(r)),l}}}}var LNe=/\{@(.+?)\}/g,vD=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&&et(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(It(i))return l.status=n,l.dimensionIndex=a,i(l);if(St(i)){var c=oD(i,l);return c.replace(LNe,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=ov(s,t,v);if(o&&et(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,n){return ov(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e}();function $3(e){var t,n;return Ot(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Eg(e){return new PNe(e)}var PNe=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(et(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){B3.reset(n,r,a,i),this._callingProgress=t,this._callingProgress({start:n,end:r,count:r-n,next:B3.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),et(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}(),B3=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 Nu(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!Dn(e)&&e!=null&&e!=="-"&&(e=+Fi(e)),e==null||e===""?NaN:+e)}var RNe=Et({number:function(e){return parseFloat(e)},time:function(e){return+Fi(e)},trim:function(e){return St(e)?oo(e):e}});function TK(e){return RNe.get(e)}var kK={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}},ONe=function(){function e(t,n){if(!Dn(n)){var r="";$n(r)}this._opFn=kK[t],this._rvalFloat=Hs(n)}return e.prototype.evaluate=function(t){return Dn(t)?this._opFn(t,this._rvalFloat):this._opFn(Hs(t),this._rvalFloat)},e}(),AK=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=Dn(t)?t:Hs(t),a=Dn(n)?n:Hs(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=St(t),l=St(n);s&&(r=l?t:0),l&&(a=s?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},e}(),NNe=function(){function e(t,n){this._rval=n,this._isEQ=t,this._rvalTypeof=typeof n,this._rvalFloat=Hs(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=Hs(t)===this._rvalFloat)}return this._isEQ?n:!n},e}();function $Ne(e,t){return e==="eq"||e==="ne"?new NNe(e==="eq",t):Tt(kK,e)?new ONe(e,t):null}var BNe=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 Nu(t,n)},e}();function FNe(e,t){var n=new BNe,r=e.data,a=n.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Os&&$n(o);var s=[],l={},u=e.dimensionsDefine;if(u)K(u,function(p,g){var m=p.name,b={index:g,name:m,displayName:p.displayName};if(s.push(b),m!=null){var w="";Tt(l,m)&&$n(w),l[m]=b}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=SK(a,Os);t.__isBuiltIn&&(n.getRawDataItem=function(p){return f(r,i,s,p)},n.getRawData=Ct(VNe,null,e)),n.cloneRawData=Ct(zNe,null,e);var d=CK(a,Os);n.count=Ct(d,null,r,i,s);var h=xK(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=Ct(HNe,null,s,l),n.cloneAllDimensionInfo=Ct(WNe,null,s),n}function VNe(e){var t=e.sourceFormat;if(!pD(t)){var n="";$n(n)}return e.data}function zNe(e){var t=e.sourceFormat,n=e.data;if(!pD(t)){var r="";$n(r)}if(t===Fa){for(var a=[],i=0,o=n.length;i<o;i++)a.push(n[i].slice());return a}else if(t===xo){for(var a=[],i=0,o=n.length;i<o;i++)a.push(je({},n[i]));return a}}function HNe(e,t,n){if(n!=null){if(Dn(n)||!isNaN(n)&&!Tt(t,n))return e[n];if(Tt(t,n))return t[n]}}function WNe(e){return Ft(e)}var EK=Et();function GNe(e){e=Ft(e);var t=e.type,n="";t||$n(n);var r=t.split(":");r.length!==2&&$n(n);var a=!1;r[0]==="echarts"&&(t=r[1],a=!0),e.__isBuiltIn=a,EK.set(t,e)}function UNe(e,t,n){var r=qn(e),a=r.length,i="";a||$n(i);for(var o=0,s=a;o<s;o++){var l=r[o];t=KNe(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function KNe(e,t,n,r){var a="";t.length||$n(a),Ot(e)||$n(a);var i=e.type,o=EK.get(i);o||$n(a);var s=at(t,function(u){return FNe(u,o)}),l=qn(o.transform({upstream:s[0],upstreamList:s,config:Ft(e.config)}));return at(l,function(u,c){var f="";Ot(u)||$n(f),u.data||$n(f);var d=bK(u.data);pD(d)||$n(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:Os,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:Os,sourceHeader:0,dimensions:u.dimensions};return cA(u.data,h,null)})}function pD(e){return e===Fa||e===xo}var fS="undefined",jNe=typeof Uint32Array===fS?Array:Uint32Array,YNe=typeof Uint16Array===fS?Array:Uint16Array,MK=typeof Int32Array===fS?Array:Int32Array,F3=typeof Float64Array===fS?Array:Float64Array,IK={float:F3,int:MK,ordinal:Array,number:Array,time:F3},bx;function bp(e){return e>65535?jNe:YNe}function Fd(){return[1/0,-1/0]}function qNe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function V3(e,t,n,r,a){var i=IK[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 XNe=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Et()}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=bx[a.sourceFormat];this._dimValueGetter=r||i,this._rawExtent=[],_K(a),this._dimensions=at(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 IK[n||"float"](this._rawCount),this._rawExtent[i]=Fd(),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]=Fd());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];V3(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=bx.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=at(o,function(b){return b.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Fd()),V3(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=bp(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=bp(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=_n(t),i=a.length;if(!i)return this;var o=n.count(),s=bp(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]],w=h[a[1]],S=t[a[1]][0],C=t[a[1]][1],m=0;m<r;m++){var b=g[m],y=w[m];(b>=f&&b<=d||isNaN(b))&&(y>=S&&y<=C||isNaN(y))&&(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),A=0;A<i;A++){var M=a[A],b=h[M][x];(b<t[M][0]||b>t[M][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]]=Fd();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(bp(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,w=p;w<g;w++){var S=this.getRawIndex(w),C=i[S];isNaN(C)||(b+=C)}b/=g-p;var y=v,x=Math.min(v+l,o),T=v-1,A=i[u];c=-1,d=y;for(var M=-1,E=0,w=y;w<x;w++){var S=this.getRawIndex(w),C=i[S];if(isNaN(C)){E++,M<0&&(M=S);continue}f=Math.abs((T-m)*(C-A)-(T-w)*(b-A)),f>c&&(c=f,d=S)}E>0&&E<x-y&&(h[s++]=Math.min(M,d),d=Math.max(M,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]=Fd(),d=new(bp(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=Fd();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&&bo(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)r._chunks[o]=i[o]?qNe(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=Ft(this._extent),t._rawExtent=Ft(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 Nu(n[i],this._dimensions[i])}bx={arrayRows:t,objectRows:function(n,r,a,i){return Nu(n[r],this._dimensions[i])},keyedColumns:t,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return Nu(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),e}();const fA=XNe;var DK=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(z0(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=Ci(s)?Ou:Co,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=on(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=on(f.sourceHeader,d.sourceHeader),p=on(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;a=g?[cA(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 w=m.get("source",!0);a=[cA(w,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&&H3(i)}var o,s=[],l=[];return K(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&H3(f),s.push(c),l.push(u._getVersionSign())}),r?o=UNe(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[kNe(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];z0(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,r):(s=new fA,s.initData(new wK(n,t.length),t)),o[r]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(z0(t)){var n=uD(t);return n?[n.getSourceManager()]:[]}else return at(JOe(t),function(r){return r.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,r,a;if(z0(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 z3(e){var t=e.option.transform;t&&gm(e.option.transform)}function z0(e){return e.mainType==="series"}function H3(e){throw new Error(e)}var LK="line-height:1";function PK(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:"+qa(r+"")+"px;color:"+qa(n)+";font-weight:"+qa(a+""),valueStyle:"font-size:"+qa(o+"")+"px;color:"+qa(i)+";font-weight:"+qa(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var ZNe=[0,10,20,30],JNe=["",`
  95. `,`
  96. `,`
  97. `];function la(e,t){return t.type=e,t}function dA(e){return e.type==="section"}function RK(e){return dA(e)?QNe:e$e}function OK(e){if(dA(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return K(e.blocks,function(a){var i=OK(a);i>=t&&(t=i+ +(r&&(!i||dA(a)&&!a.noHeader)))}),t}return 0}function QNe(e,t,n,r){var a=t.noHeader,i=t$e(OK(t)),o=[],s=t.blocks||[];Ba(!s||et(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Tt(u,l)){var c=new AK(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}K(s,function(v,p){var g=t.valueFormatter,m=RK(v)(g?je(je({},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):hA(o.join(""),a?n:i.html);if(a)return f;var d=sA(t.header,"ordinal",e.useUTC),h=PK(r,e.renderMode).nameStyle;return e.renderMode==="richText"?NK(e,d,h)+i.richText+f:hA('<div style="'+h+";"+LK+';">'+qa(d)+"</div>"+f,n)}function e$e(e,t,n,r){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=et(S)?S:[S],at(S,function(C,y){return sA(C,et(h)?h[y]:h,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":sA(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value),p=!s||!i,g=!s&&i,m=PK(r,a),b=m.nameStyle,w=m.valueStyle;return a==="richText"?(s?"":f)+(i?"":NK(e,d,b))+(o?"":a$e(e,v,p,g,w)):hA((s?"":f)+(i?"":n$e(d,!s,b))+(o?"":r$e(v,p,g,w)),n)}}function W3(e,t,n,r,a,i){if(e){var o=RK(e),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function t$e(e){return{html:ZNe[e],richText:JNe[e]}}function hA(e,t){var n='<div style="clear:both"></div>',r="margin: "+t+"px 0 0";return'<div style="'+r+";"+LK+';">'+e+n+"</div>"}function n$e(e,t,n){var r=t?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+qa(e)+"</span>"}function r$e(e,t,n,r){var a=n?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=et(e)?e:[e],'<span style="'+i+";"+r+'">'+at(e,function(o){return qa(o)}).join("&nbsp;&nbsp;")+"</span>"}function NK(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function a$e(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(et(t)?t.join(" "):t,i)}function $K(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Jf(r)}function BK(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var _x=function(){function e(){this.richTextStyles={},this._nextStyleNameId=BG()}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=rK({color:n,type:t,renderMode:r,markerId:a});return St(i)?i:(this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};et(n)?K(n,function(i){return je(r,i)}):je(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+t+"}"},e}();function FK(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=et(s),u=$K(t,n),c,f,d,h;if(o>1||l&&!o){var v=i$e(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=ov(a,n,i[0]),f=p.type}else h=c=l?s[0]:s;var g=$I(t),m=g&&t.name||"",b=a.getName(n),w=r?m:b;return la("section",{header:m,noHeader:r||!g,sortParam:h,blocks:[la("nameValue",{markerType:"item",markerColor:u,name:w,noName:!oo(w),value:c,valueType:f})].concat(d||[])})}function i$e(e,t,n,r,a){var i=t.getData(),o=bo(e,function(f,d,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?K(r,function(f){c(ov(i,n,f),f)}):K(e,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(la("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 Ql=Ln();function H0(e,t){return e.getName(t)||e.getId(t)}var h1="__universalTransitionEnabled",dS=function(e){Ne(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=Eg({count:s$e,reset:l$e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=Ql(this).sourceManager=new DK(this);i.prepareSource();var o=this.getInitialData(n,a);U3(o,this),this.dataTask.context.data=o,Ql(this).dataBeforeProcessed=o,G3(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(n,r){var a=Lm(this),i=a?Lv(n):{},o=this.subType;kn.hasClass(o)&&(o+="Series"),rn(n,r.getTheme().get(this.subType)),rn(n,this.getDefaultOption()),Yf(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&Yu(n,i,a)},t.prototype.mergeOption=function(n,r){n=rn(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Lm(this);a&&Yu(this.option,n,a);var i=Ql(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);U3(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ql(this).dataBeforeProcessed=o,G3(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(n){if(n&&!Ci(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&Yf(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=vA(this);if(r){var a=r.context.data;return n==null?a:a.getLinkedData(n)}else return Ql(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=vA(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}Ql(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Et(n)},t.prototype.getSourceManager=function(){return Ql(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ql(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 FK({series:this,dataIndex:n,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Mn.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=cD.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=H0(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=_n(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[H0(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[h1])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"){Ot(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=r[c],d=H0(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=H0(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 kn.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}(kn);Ir(dS,vD);Ir(dS,cD);jG(dS,kn);function G3(e){var t=e.name;$I(e)||(e.name=o$e(e)||t)}function o$e(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return K(n,function(a){var i=t.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function s$e(e){return e.model.getRawData().count()}function l$e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),u$e}function u$e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function U3(e,t){K(mm(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Zt(c$e,t))})}function c$e(e,t){var n=vA(e);return n&&n.setOutputEnd((t||this).count()),t}function vA(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 or=dS;var gD=function(){function e(){this.group=new Gt,this.uid=Dv("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}();FI(gD);jw(gD);const gr=gD;function Nv(){var e=Ln();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 VK=Ln(),f$e=Nv(),mD=function(){function e(){this.group=new Gt,this.uid=Dv("viewChart"),this.renderTask=Eg({plan:d$e,reset:h$e}),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&&j3(i,a,"emphasis")},e.prototype.downplay=function(t,n,r,a){var i=t.getData(a&&a.dataType);i&&j3(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){uc(this.group,t)},e.markUpdateMethod=function(t,n){VK(t).updateMethod=n},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function K3(e,t,n){e&&Em(e)&&(t==="emphasis"?xl:Tl)(e,n)}function j3(e,t,n){var r=qf(e,t),a=t&&t.highlightKey!=null?VRe(t.highlightKey):null;r!=null?K(qn(r),function(i){K3(e.getItemGraphicEl(i),n,a)}):e.eachItemGraphicEl(function(i){K3(i,n,a)})}FI(mD);jw(mD);function d$e(e){return f$e(e.model)}function h$e(e){var t=e.model,n=e.ecModel,r=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&VK(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,n,r,a),v$e[l]}var v$e={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 Xn=mD;var f_="\0__throttleOriginMethod",Y3="\0__throttleRate",q3="\0__throttleType";function hS(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 $v(e,t,n,r){var a=e[t];if(a){var i=a[f_]||a,o=a[q3],s=a[Y3];if(s!==n||o!==r){if(n==null||!r)return e[t]=i;a=e[t]=hS(i,n,r==="debounce"),a[f_]=i,a[q3]=r,a[Y3]=n}return a}}function Rm(e,t){var n=e[t];n&&n[f_]&&(n.clear&&n.clear(),e[t]=n[f_])}var X3=Ln(),Z3={itemStyle:Xf(jU,!0),lineStyle:Xf(KU,!0)},p$e={lineStyle:"stroke",itemStyle:"fill"};function zK(e,t){var n=e.visualStyleMapper||Z3[t];return n||(console.warn("Unknown style type '"+t+"'."),Z3.itemStyle)}function HK(e,t){var n=e.visualDrawType||p$e[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var g$e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=e.getModel(r),i=zK(e,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=HK(e,r),u=o[l],c=It(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"||It(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||It(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=je({},o);g[l]=c(p),h.setItemVisual(v,"style",g)}}}},_p=new Yn,m$e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",a=zK(e,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){_p.option=l[r];var u=a(_p),c=o.ensureUniqueItemVisual(s,"style");je(c,u),_p.option.decal&&(o.setItemVisual(s,"decal",_p.option.decal),_p.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},y$e={performRawSeries:!0,overallReset:function(e){var t=Et();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)),X3(n).scope=i}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=X3(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=HK(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)}})}})}},W0=Math.PI;function b$e(e,t){t=t||{},Lt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Gt,r=new En({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var a=new An({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 En({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 eS({shape:{startAngle:-W0/2,endAngle:-W0/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:W0*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:W0*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 _$e=function(){function e(t,n,r,a){this._stageTaskMap=Et(),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=Et();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;K(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";Ba(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},e.prototype.prepareView=function(t,n,r,a){var i=t.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(n,i)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,a){a=a||{};var i=!1,o=this;K(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,r);var p=o.getPerformArgs(d,a.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(i=!0)}else f&&f.each(function(g,m){s(a,g)&&g.dirty();var b=o.getPerformArgs(g,a.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(b)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,a){var i=this,o=n.seriesTaskMap,s=n.seriesTaskMap=Et(),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)||Eg({plan:T$e,reset:k$e,count:E$e}));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||Eg({reset:w$e});o.context={ecModel:r,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=Et(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";Ba(!t.createOnAllSeries,h),u?r.eachRawSeriesByType(u,v):c?c(r,a).each(v):(f=!1,K(r.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Eg({reset:S$e,onDirty:x$e})));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 It(t)&&(t={overallReset:t,seriesType:M$e(t)}),t.uid=Dv("stageHandler"),n&&(t.visualType=n),t},e}();function w$e(e){e.overallReset(e.ecModel,e.api,e.payload)}function S$e(e){return e.overallProgress&&C$e}function C$e(){this.agent.dirty(),this.getDownstream().dirty()}function x$e(){this.agent&&this.agent.dirty()}function T$e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function k$e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=qn(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?at(t,function(n,r){return WK(r)}):A$e}var A$e=WK(0);function WK(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 E$e(e){return e.data.count()}function M$e(e){d_=null;try{e(Om,GK)}catch{}return d_}var Om={},GK={},d_;UK(Om,pK);UK(GK,gK);Om.eachSeriesByType=Om.eachRawSeriesByType=function(e){d_=e};Om.eachComponent=function(e){e.mainType==="series"&&e.subType&&(d_=e.subType)};function UK(e,t){for(var n in t.prototype)e[n]=Er}const KK=_$e;var J3=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const I$e={color:J3,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],J3]};var Ua="#B9B8CE",Q3="#100C2A",G0=function(){return{axisLine:{lineStyle:{color:Ua}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},e4=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],jK={darkMode:!0,color:e4,backgroundColor:Q3,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Ua}},textStyle:{color:Ua},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Ua}},dataZoom:{borderColor:"#71708A",textStyle:{color:Ua},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:Ua}},timeline:{lineStyle:{color:Ua},label:{color:Ua},controlStyle:{color:Ua,borderColor:Ua}},calendar:{itemStyle:{color:Q3},dayLabel:{color:Ua},monthLabel:{color:Ua},yearLabel:{color:Ua}},timeAxis:G0(),logAxis:G0(),valueAxis:G0(),categoryAxis:G0(),line:{symbol:"circle"},graph:{color:e4},gauge:{title:{color:Ua},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Ua},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};jK.categoryAxis.splitLine.show=!1;const D$e=jK;var L$e=function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},r={},a={};if(St(t)){var i=Ms(t);n.mainType=i.main||null,n.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};K(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(n.mainType=v,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,a,i));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),pA=["symbol","symbolSize","symbolRotate","symbolOffset"],t4=pA.concat(["symbolKeepAspect"]),P$e={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<pA.length;o++){var s=pA[o],l=e.get(s);It(l)?(i=!0,a[s]=l):r[s]=l}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(je({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},r)),t.isSeriesFiltered(e))return;var u=_n(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}}},R$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<t4.length;s++){var l=t4[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function yD(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 Ay(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 YK(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 qK(e,t){function n(r,a){var i=[];return r.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}K([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(r){t(r[0],function(a,i,o){a=je({},a),o.dispatchAction(je(a,{type:r[1],seriesIndex:n(i,a)}))})})}function Vd(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=qf(f,a.fromActionPayload);n.trigger(i,{type:i,seriesId:o.id,name:et(d)?f.getName(d[0]):f.getName(d),selected:St(l)?l:je({},l)})}})}function O$e(e,t,n){e.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(Vd("map","selectchanged",t,a,r),Vd("pie","selectchanged",t,a,r)):r.fromAction==="select"?(Vd("map","selected",t,a,r),Vd("pie","selected",t,a,r)):r.fromAction==="unselect"&&(Vd("map","unselected",t,a,r),Vd("pie","unselected",t,a,r))})}function Tf(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),$$e=typeof Object.defineProperty=="function",B$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 $$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 F$e=B$e;var V$e=pn.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()}}),z$e=pn.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()}}),H$e=pn.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()}}),W$e=pn.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()}}),G$e={line:ra,rect:En,roundRect:En,square:En,circle:ns,diamond:z$e,pin:H$e,arrow:W$e,triangle:V$e},U$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}},h_={};K(G$e,function(e,t){h_[t]=new e});var K$e=pn.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=n_(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=h_[r];a||(r="rect",a=h_[r]),U$e[r](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,n)}}});function j$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 Nr(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=qI(e.slice(8),new sn(t,n,r,a),o?"center":"cover"):e.indexOf("path://")===0?l=Cy(e.slice(7),{},new sn(t,n,r,a),o?"center":"cover"):l=new K$e({shape:{symbolType:e,x:t,y:n,width:r,height:a}}),l.__isEmptyBrush=s,l.setColor=j$e,i&&l.setColor(i),l}function Bv(e){return et(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function vd(e,t){if(e!=null)return et(e)||(e=[e,e]),[yt(e[0],t[0])||0,yt(on(e[1],e[0]),t[1])||0]}function kf(e){return isFinite(e)}function Y$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=kf(r)?r:0,a=kf(a)?a:1,i=kf(i)?i:0,o=kf(o)?o:0;var s=e.createLinearGradient(r,i,a,o);return s}function q$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=kf(o)?o:.5,s=kf(s)?s:.5,l=l>=0&&kf(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function gA(e,t,n){for(var r=t.type==="radial"?q$e(e,t,n):Y$e(e,t,n),a=t.colorStops,i=0;i<a.length;i++)r.addColorStop(a[i].offset,a[i].color);return r}function X$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 U0(e){return parseInt(e,10)}function ph(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]||U0(s[r])||U0(e.style[r]))-(U0(s[i])||0)-(U0(s[o])||0)|0}function Z$e(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Dn(e)?[e]:et(e)?e:null}function bD(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Z$e(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(n=at(n,function(i){return i/a}),r/=a)}return[n,r]}var J$e=new Ws(!0);function v_(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function n4(e){return typeof e=="string"&&e!=="none"}function p_(e){var t=e.fill;return t!=null&&t!=="none"}function r4(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 a4(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 mA(e,t,n){var r=VI(t.image,t.__image,n);if(Yw(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)*mg),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function Q$e(e,t,n,r){var a,i=v_(n),o=p_(n),s=n.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||J$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,w=void 0,S=void 0,C=void 0,y=void 0;(v||p)&&(y=t.getBoundingRect()),v&&(b=f?gA(e,d,y):t.__canvasFillGradient,t.__canvasFillGradient=b),p&&(w=f?gA(e,h,y):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w),g&&(S=f||!t.__canvasFillPattern?mA(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),m&&(C=f||!t.__canvasStrokePattern?mA(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),v?e.fillStyle=b:g&&(S?e.fillStyle=S:o=!1),p?e.strokeStyle=w:m&&(C?e.strokeStyle=C:i=!1)}var x=t.getGlobalScale();c.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,A;e.setLineDash&&n.lineDash&&(a=bD(t),T=a[0],A=a[1]);var M=!0;(u||f&rh)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),M=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),M&&c.rebuildPath(e,l?s:1),T&&(e.setLineDash(T),e.lineDashOffset=A),r||(n.strokeFirst?(i&&a4(e,n),o&&r4(e,n)):(o&&r4(e,n),i&&a4(e,n))),T&&e.setLineDash([])}function e3e(e,t,n){var r=t.__image=VI(n.image,t.__image,t,t.onload);if(!(!r||!Yw(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 t3e(e,t,n){var r,a=n.text;if(a!=null&&(a+=""),a){e.font=n.font||Uu,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var i=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=bD(t),i=r[0],o=r[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),n.strokeFirst?(v_(n)&&e.strokeText(a,n.x,n.y),p_(n)&&e.fillText(a,n.x,n.y)):(p_(n)&&e.fillText(a,n.x,n.y),v_(n)&&e.strokeText(a,n.x,n.y)),i&&e.setLineDash([])}}var i4=["shadowBlur","shadowOffsetX","shadowOffsetY"],o4=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function XK(e,t,n,r,a){var i=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){mi(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Of.opacity:o}(r||t.blend!==n.blend)&&(i||(mi(e,a),i=!0),e.globalCompositeOperation=t.blend||Of.blend);for(var s=0;s<i4.length;s++){var l=i4[s];(r||t[l]!==n[l])&&(i||(mi(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(r||t.shadowColor!==n.shadowColor)&&(i||(mi(e,a),i=!0),e.shadowColor=t.shadowColor||Of.shadowColor),i}function s4(e,t,n,r,a){var i=Nm(t,a.inHover),o=r?null:n&&Nm(n,a.inHover)||{};if(i===o)return!1;var s=XK(e,i,o,r,a);if((r||i.fill!==o.fill)&&(s||(mi(e,a),s=!0),n4(i.fill)&&(e.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(s||(mi(e,a),s=!0),n4(i.stroke)&&(e.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(s||(mi(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||(mi(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<o4.length;c++){var f=o4[c],d=f[0];(r||i[d]!==o[d])&&(s||(mi(e,a),s=!0),e[d]=i[d]||f[1])}return s}function n3e(e,t,n,r,a){return XK(e,Nm(t,a.inHover),n&&Nm(n,a.inHover),r,a)}function ZK(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 r3e(e,t,n){for(var r=!1,a=0;a<e.length;a++){var i=e[a];r=r||i.isZeroArea(),ZK(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}n.allClipped=r}function a3e(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 l4=1,u4=2,c4=3,f4=4;function i3e(e){var t=p_(e),n=v_(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 mi(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Nm(e,t){return t&&e.__hoverStyle||e.style}function _D(e,t){Af(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Af(e,t,n,r){var a=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~Mi,t.__isRendered=!1;return}var i=t.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if((!o||X$e(i,o))&&(o&&o.length&&(mi(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(mi(e,n),e.save(),r3e(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 pn&&t.autoBatch&&i3e(t.style);s||a3e(a,u.transform)?(mi(e,n),ZK(e,t)):c||mi(e,n);var f=Nm(t,n.inHover);t instanceof pn?(n.lastDrawType!==l4&&(l=!0,n.lastDrawType=l4),s4(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),Q$e(e,t,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):t instanceof km?(n.lastDrawType!==c4&&(l=!0,n.lastDrawType=c4),s4(e,t,u,l,n),t3e(e,t,f)):t instanceof ga?(n.lastDrawType!==u4&&(l=!0,n.lastDrawType=u4),n3e(e,t,u,l,n),e3e(e,t,f)):t.getTemporalDisplayables&&(n.lastDrawType!==f4&&(l=!0,n.lastDrawType=f4),o3e(e,t,n)),c&&r&&mi(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function o3e(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(),Af(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(),Af(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Sx=new F$e,d4=new my(100),h4=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function sv(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),r=t.getZr(),a=r.painter.type==="svg";e.dirty&&Sx.delete(e);var i=Sx.get(e);if(i)return i;var o=Lt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/n,Sx.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<h4.length;++d){var h=o[h4[d]];if(h!=null&&!et(h)&&!St(h)&&!Dn(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(a?"-svg":"");var p=d4.get(v);p&&(a?u.svgElement=p:u.image=p)}var g=QK(o.dashArrayX),m=s3e(o.dashArrayY),b=JK(o.symbol),w=l3e(g),S=ej(m),C=!a&&Qo.createCanvas(),y=a&&{tag:"g",attrs:{},key:"dcl",children:[]},x=A(),T;C&&(C.width=x.width*n,C.height=x.height*n,T=C.getContext("2d")),M(),f&&d4.put(v,C||y),u.image=C,u.svgElement=y,u.svgWidth=x.width,u.svgHeight=x.height;function A(){for(var E=1,I=0,L=w.length;I<L;++I)E=E$(E,w[I]);for(var O=1,I=0,L=b.length;I<L;++I)O=E$(O,b[I].length);E*=O;var z=S*w.length*b.length;return{width:Math.max(1,Math.min(E,o.maxTileWidth)),height:Math.max(1,Math.min(z,o.maxTileHeight))}}function M(){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 E=0,I=0;I<m.length;++I)E+=m[I];if(E<=0)return;for(var L=-S,O=0,z=0,F=0;L<x.height;){if(O%2===0){for(var $=z/2%b.length,V=0,P=0,G=0;V<x.width*2;){for(var j=0,I=0;I<g[F].length;++I)j+=g[F][I];if(j<=0)break;if(P%2===0){var J=(1-o.symbolSize)*.5,ne=V+g[F][P]*J,ve=L+m[O]*J,le=g[F][P]*o.symbolSize,ce=m[O]*o.symbolSize,ue=G/2%b[$].length;Q(ne,ve,le,ce,b[$][ue])}V+=g[F][P],++G,++P,P===g[F].length&&(P=0)}++F,F===g.length&&(F=0)}L+=m[O],++z,++O,O===m.length&&(O=0)}function Q(_e,Pe,pe,Y,ie){var me=a?1:n,De=Nr(ie,_e*me,Pe*me,pe*me,Y*me,o.color,o.symbolKeepAspect);if(a){var Be=r.painter.renderOneToVNode(De);Be&&y.children.push(Be)}else _D(T,De)}}}}function JK(e){if(!e||e.length===0)return[["rect"]];if(St(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!St(e[n])){t=!1;break}if(t)return JK([e]);for(var r=[],n=0;n<e.length;++n)St(e[n])?r.push([e[n]]):r.push(e[n]);return r}function QK(e){if(!e||e.length===0)return[[0,0]];if(Dn(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!Dn(e[r])){n=!1;break}if(n)return QK([e]);for(var a=[],r=0;r<e.length;++r)if(Dn(e[r])){var t=Math.ceil(e[r]);a.push([t,t])}else{var t=at(e[r],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function s3e(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Dn(e)){var t=Math.ceil(e);return[t,t]}var n=at(e,function(r){return Math.ceil(r)});return e.length%2?n.concat(n):n}function l3e(e){return at(e,function(t){return ej(t)})}function ej(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}function u3e(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=sv(s,t)}});var a=r.getVisual("decal");if(a){var i=r.getVisual("style");i.decal=sv(a,t)}}})}var c3e=new wo;const No=c3e;var tj={};function f3e(e,t){tj[e]=t}function nj(e){return tj[e]}var d3e="5.4.3",h3e={zrender:"5.4.4"},v3e=1,p3e=800,g3e=900,m3e=1e3,y3e=2e3,b3e=5e3,rj=1e3,_3e=1100,wD=2e3,aj=3e3,w3e=4e3,vS=4500,S3e=4600,C3e=5e3,x3e=6e3,ij=7e3,oj={PROCESSOR:{FILTER:m3e,SERIES_FILTER:p3e,STATISTIC:b3e},VISUAL:{LAYOUT:rj,PROGRESSIVE_LAYOUT:_3e,GLOBAL:wD,CHART:aj,POST_CHART_LAYOUT:S3e,COMPONENT:w3e,BRUSH:C3e,CHART_ITEM:vS,ARIA:x3e,DECAL:ij}},Ma="__flagInMainProcess",di="__pendingUpdate",Cx="__needsUpdateStatus",v4=/^[a-zA-Z0-9_]+$/,xx="__connectUpdateStatus",p4=0,T3e=1,k3e=2;function sj(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return uj(this,e,t)}}function lj(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return uj(this,e,t)}}function uj(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),wo.prototype[t].apply(e,n)}var cj=function(e){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(wo),fj=cj.prototype;fj.on=lj("on");fj.off=lj("off");var zd,Tx,K0,eu,kx,Ax,Ex,wp,Sp,g4,m4,Mx,y4,j0,b4,dj,Gi,_4,g_=function(e){Ne(t,e);function t(n,r,a){var i=e.call(this,new L$e)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},St(r)&&(r=hj[r]),i._dom=n;var o="canvas",s="auto",l=!1,u=i._zr=Uk(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:on(a.useDirtyRect,l),useCoarsePointer:on(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=hS(Ct(u.flush,u),17),r=Ft(r),r&&yK(r,!0),i._theme=r,i._locale=NOe(a.locale||YU),i._coordSysMgr=new Ov;var c=i._api=b4(i);function f(d,h){return d.__prio-h.__prio}return t1(y_,f),t1(yA,f),i._scheduler=new KK(i,c,yA,y_),i._messageCenter=new cj,i._initEvents(),i.resize=Ct(i.resize,i),u.animation.on("frame",i._onframe,i),g4(u,i),m4(u,i),gm(i),i}return t.prototype._onframe=function(){if(!this._disposed){_4(this);var n=this._scheduler;if(this[di]){var r=this[di].silent;this[Ma]=!0;try{zd(this),eu.update.call(this,null,this[di].updateParams)}catch(l){throw this[Ma]=!1,this[di]=null,l}this._zr.flush(),this[Ma]=!1,this[di]=null,wp.call(this,r),Sp.call(this,r)}else if(n.unfinished){var a=v3e,i=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),Ax(this,i),n.performVisualTasks(i),j0(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[Ma]){if(this._disposed){this.id;return}var i,o,s;if(Ot(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[Ma]=!0,!this._model||r){var l=new gNe(this._api),u=this._theme,c=this._model=new pK;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},bA);var f={seriesTransition:s,optionChanged:!0};if(a)this[di]={silent:i,updateParams:f},this[Ma]=!1,this.getZr().wakeUp();else{try{zd(this),eu.update.call(this,null,f)}catch(d){throw this[di]=null,this[Ma]=!1,d}this._ssr||this._zr.flush(),this[di]=null,this[Ma]=!1,wp.call(this,i),Sp.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||Mn.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(Mn.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return K(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;K(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return K(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(b_[a]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();K(Bf,function(w,S){if(w.group===a){var C=r?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(Ft(n)),y=w.getDom().getBoundingClientRect();l=i(y.left,l),u=i(y.top,u),c=o(y.right,c),f=o(y.bottom,f),d.push({dom:C,left:y.left,top:y.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,p=f-u,g=Qo.createCanvas(),m=Uk(g,{renderer:r?"svg":"canvas"});if(m.resize({width:v,height:p}),r){var b="";return K(d,function(w){var S=w.left-l,C=w.top-u;b+='<g transform="translate('+S+","+C+')">'+w.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 En({shape:{x:0,y:0,width:v,height:p},style:{fill:n.connectedBackgroundColor}})),K(d,function(w){var S=new ga({style:{x:w.left*h-l,y:w.top*h-u,image:w.dom}});m.add(S)}),m.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return kx(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return kx(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=Cg(a,n);return K(o,function(s,l){l.indexOf("Models")>=0&&K(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(r,u))}},this)},this),!!i},t.prototype.getVisual=function(n,r){var a=this._model,i=Cg(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?yD(s,l,r):Ay(s,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;K(A3e,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&Tf(s,function(v){var p=Jt(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=je({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),K(Mg,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),K(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),O$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&&GG(this.getDom(),CD,"");var r=this,a=r._api,i=r._model;K(r._componentsViews,function(o){o.dispose(i,a)}),K(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Bf[r.id]},t.prototype.resize=function(n){if(!this[Ma]){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[di]&&(i==null&&(i=this[di].silent),a=!0,this[di]=null),this[Ma]=!0;try{a&&zd(this),eu.update.call(this,{type:"resize",animation:je({duration:0},n&&n.animation)})}catch(o){throw this[Ma]=!1,o}this[Ma]=!1,wp.call(this,i),Sp.call(this,i)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Ot(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!_A[n]){var a=_A[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=je({},n);return r.type=Mg[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Ot(r)||(r={silent:!!r}),!!m_[n.type]&&this._model){if(this[Ma]){this._pendingActions.push(n);return}var a=r.silent;Ex.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&Mn.browser.weChat&&this._throttledZrFlush(),wp.call(this,a),Sp.call(this,a)}},t.prototype.updateLabelLayout=function(){No.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(){zd=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Tx(f,!0),Tx(f,!1),d.plan()},Tx=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,w=0;w<p.length;w++)p[w].__alive=!1;d?h.eachComponent(function(y,x){y!=="series"&&S(x)}):h.eachSeries(S);function S(y){var x=y.__requireNewView;y.__requireNewView=!1;var T="_ec_"+y.id+"_"+y.type,A=!x&&g[T];if(!A){var M=Ms(y.type),E=d?gr.getClass(M.main,M.sub):Xn.getClass(M.sub);A=new E,A.init(h,b),g[T]=A,p.push(A),m.add(A.group)}y.__viewId=A.__id=T,A.__alive=!0,A.__model=y,A.group.__ecComponentInfo={mainType:y.mainType,index:y.componentIndex},!d&&v.prepareView(A,y,h,b)}for(var w=0;w<p.length;){var C=p[w];C.__alive?w++:(!d&&C.renderTask.dispose(),m.remove(C.group),C.dispose(h,b),p.splice(w,1),g[C.__id]===C&&delete g[C.__id],C.__id=C.group.__ecComponentInfo=null)}},K0=function(f,d,h,v,p){var g=f._model;if(g.setUpdatePayload(h),!v){K([].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 w=h.excludeSeriesId,S;w!=null&&(S=Et(),K(qn(w),function(y){var x=Zr(y,null);x!=null&&S.set(x,!0)})),g&&g.eachComponent(b,function(y){var x=S&&S.get(y.id)!=null;if(!x)if(n3(h))if(y instanceof or)h.type===Nf&&!h.notBlur&&!y.get(["emphasis","disabled"])&&LRe(y,h,f._api);else{var T=UI(y.mainType,y.componentIndex,h.name,f._api),A=T.focusSelf,M=T.dispatchers;h.type===Nf&&A&&!h.notBlur&&eA(y.mainType,y.componentIndex,f._api),M&&K(M,function(E){h.type===Nf?xl(E):Tl(E)})}else nA(h)&&y instanceof or&&(ORe(y,h,f._api),e3(y),Gi(f))},f),g&&g.eachComponent(b,function(y){var x=S&&S.get(y.id)!=null;x||C(f[v==="series"?"_chartsMap":"_componentsMap"][y.__viewId])},f);function C(y){y&&y.__alive&&y[d]&&y[d](y.__model,g,f._api,h)}},eu={prepareAndUpdate:function(f){zd(this),eu.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),Ax(this,h),g.update(h,v),n(h),m.performVisualTasks(h,f),Mx(this,h,v,f,d);var b=h.get("backgroundColor")||"transparent",w=h.get("darkMode");p.setBackgroundColor(b),w!=null&&w!=="auto"&&p.setDarkMode(w),No.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 w=d.getViewOfComponentModel(b);if(w&&w.__alive)if(w.updateTransform){var S=w.updateTransform(b,h,v,f);S&&S.update&&p.push(w)}else p.push(w)}});var g=Et();h.eachSeries(function(m){var b=d._chartsMap[m.__viewId];if(b.updateTransform){var w=b.updateTransform(m,h,v,f);w&&w.update&&g.set(m.uid,1)}else g.set(m.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),j0(this,h,v,f,{},g),No.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Xn.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),Mx(this,d,this._api,f,{}),No.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()}),Xn.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)}),No.trigger("afterupdate",h,this._api))},updateLayout:function(f){eu.update.call(this,f)}},kx=function(f,d,h,v){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),m,b=Cg(p,h),w=0;w<g.length;w++){var S=g[w];if(S[d]&&(m=S[d](p,b,v))!=null)return m}},Ax=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},Ex=function(f,d){var h=this,v=this.getModel(),p=f.type,g=f.escapeConnect,m=m_[p],b=m.actionInfo,w=(b.update||"update").split(":"),S=w.pop(),C=w[0]!=null&&Ms(w[0]);this[Ma]=!0;var y=[f],x=!1;f.batch&&(x=!0,y=at(f.batch,function(O){return O=Lt(je({},O),f),O.batch=null,O}));var T=[],A,M=nA(f),E=n3(f);if(E&&mU(this._api),K(y,function(O){if(A=m.action(O,h._model,h._api),A=A||je({},O),A.type=b.event||A.type,T.push(A),E){var z=BI(f),F=z.queryOptionMap,$=z.mainTypeSpecified,V=$?F.keys()[0]:"series";K0(h,S,O,V),Gi(h)}else M?(K0(h,S,O,"series"),Gi(h)):C&&K0(h,S,O,C.main,C.sub)}),S!=="none"&&!E&&!M&&!C)try{this[di]?(zd(this),eu.update.call(this,f),this[di]=null):eu[S].call(this,f)}catch(O){throw this[Ma]=!1,O}if(x?A={type:b.event||p,escapeConnect:g,batch:T}:A=T[0],this[Ma]=!1,!d){var I=this._messageCenter;if(I.trigger(A.type,A),M){var L={type:"selectchanged",escapeConnect:g,selected:NRe(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(L.type,L)}}},wp=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();Ex.call(this,h,f)}},Sp=function(f){!f&&this.trigger("updated")},g4=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[di]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},m4=function(f,d){f.on("mouseover",function(h){var v=h.target,p=Tf(v,Em);p&&(PRe(p,h,d._api),Gi(d))}).on("mouseout",function(h){var v=h.target,p=Tf(v,Em);p&&(RRe(p,h,d._api),Gi(d))}).on("click",function(h){var v=h.target,p=Tf(v,function(b){return Jt(b).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",m=Jt(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,w){var S=w.get("zlevel")||0,C=w.get("z")||0,y=w.getZLevelKey();v=v||!!y,(b==="series"?h:d).push({zlevel:S,z:C,idx:w.componentIndex,type:b,key:y})}),v){var p=d.concat(h),g,m;t1(p,function(b,w){return b.zlevel===w.zlevel?b.z-w.z:b.zlevel-w.zlevel}),K(p,function(b){var w=f.getComponent(b.type,b.idx),S=b.zlevel,C=b.key;g!=null&&(S=Math.max(g,S)),C?(S===g&&C!==m&&S++,m=C):m&&(S===g&&S++,m=""),g=S,w.setZLevel(S)})}}Mx=function(f,d,h,v,p){r(d),y4(f,d,h,v,p),K(f._chartsViews,function(g){g.__alive=!1}),j0(f,d,h,v,p),K(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},y4=function(f,d,h,v,p,g){K(g||f._componentsViews,function(m){var b=m.__model;u(b,m),m.render(b,d,h,v),s(b,m),c(b,m)})},j0=function(f,d,h,v,p,g){var m=f._scheduler;p=je(p||{},{updatedSeries:d.getSeries()}),No.trigger("series:beforeupdate",d,h,p);var b=!1;d.eachSeries(function(w){var S=f._chartsMap[w.__viewId];S.__alive=!0;var C=S.renderTask;m.updatePayload(C,v),u(w,S),g&&g.get(w.uid)&&C.dirty(),C.perform(m.getPerformArgs(C))&&(b=!0),S.group.silent=!!w.get("silent"),o(w,S),e3(w)}),m.unfinished=b||m.unfinished,No.trigger("series:layoutlabels",d,h,p),No.trigger("series:transition",d,h,p),d.eachSeries(function(w){var S=f._chartsMap[w.__viewId];s(w,S),c(w,S)}),i(f,d),No.trigger("series:afterupdate",d,h,p)},Gi=function(f){f[Cx]=!0,f.getZr().wakeUp()},_4=function(f){f[Cx]&&(f.getZr().storage.traverse(function(d){Ih(d)||a(d)}),f[Cx]=!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===Zw&&f.states.emphasis?d.push("emphasis"):f.hoverState===_y&&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")&&!Mn.node&&!Mn.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(),w=0;w<b.length;w++)v=Math.max(l(b[w],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(p&&(p.z=d,p.zlevel=h,isFinite(v)&&(p.z2=v+2)),g){var S=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(S&&S.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!Ih(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(Ih(m))return;if(m instanceof pn&&zRe(m),m.__dirty){var b=m.prevStates;b&&m.useStates(b)}if(v){m.stateTransition=g;var w=m.getTextContent(),S=m.getTextGuideLine();w&&(w.stateTransition=g),S&&(S.stateTransition=g)}m.__dirty&&a(m)}})}b4=function(f){return new(function(d){Ne(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){xl(v,p),Gi(f)},h.prototype.leaveEmphasis=function(v,p){Tl(v,p),Gi(f)},h.prototype.enterBlur=function(v){hU(v),Gi(f)},h.prototype.leaveBlur=function(v){GI(v),Gi(f)},h.prototype.enterSelect=function(v){vU(v),Gi(f)},h.prototype.leaveSelect=function(v){pU(v),Gi(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}(gK))(f)},dj=function(f){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[xx]=v}}K(Mg,function(h,v){f._messageCenter.on(v,function(p){if(b_[f.group]&&f[xx]!==p4){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),m=[];K(Bf,function(b){b!==f&&b.group===f.group&&m.push(b)}),d(m,p4),K(m,function(b){b[xx]!==T3e&&b.dispatchAction(g)}),d(m,k3e)}})})}}(),t}(wo),SD=g_.prototype;SD.on=sj("on");SD.off=sj("off");SD.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 A3e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var m_={},Mg={},yA=[],bA=[],y_=[],hj={},_A={},Bf={},b_={},E3e=+new Date-0,M3e=+new Date-0,CD="_echarts_instance_";function I3e(e,t,n){var r=!(n&&n.ssr);if(r){var a=xD(e);if(a)return a}var i=new g_(e,t,n);return i.id="ec_"+E3e++,Bf[i.id]=i,r&&GG(e,CD,i.id),dj(i),No.trigger("afterinit",i),i}function D3e(e){if(et(e)){var t=e;e=null,K(t,function(n){n.group!=null&&(e=n.group)}),e=e||"g_"+M3e++,K(t,function(n){n.group=e})}return b_[e]=!0,e}function vj(e){b_[e]=!1}var L3e=vj;function P3e(e){St(e)?e=Bf[e]:e instanceof g_||(e=xD(e)),e instanceof g_&&!e.isDisposed()&&e.dispose()}function xD(e){return Bf[APe(e,CD)]}function R3e(e){return Bf[e]}function TD(e,t){hj[e]=t}function kD(e){cn(bA,e)<0&&bA.push(e)}function AD(e,t){ED(yA,e,t,y3e)}function pj(e){pS("afterinit",e)}function gj(e){pS("afterupdate",e)}function pS(e,t){No.on(e,t)}function ls(e,t,n){It(t)&&(n=t,t="");var r=Ot(e)?e.type:[e,e={event:t}][0];e.event=(e.event||r).toLowerCase(),t=e.event,!Mg[t]&&(Ba(v4.test(r)&&v4.test(t)),m_[r]||(m_[r]={action:n,actionInfo:e}),Mg[t]=r)}function mj(e,t){Ov.register(e,t)}function O3e(e){var t=Ov.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function yj(e,t){ED(y_,e,t,rj,"layout")}function fc(e,t){ED(y_,e,t,aj,"visual")}var w4=[];function ED(e,t,n,r,a){if((It(t)||Ot(t))&&(n=t,t=r),!(cn(w4,n)>=0)){w4.push(n);var i=KK.wrapStageHandler(n,a);i.__prio=t,i.__raw=n,e.push(i)}}function MD(e,t){_A[e]=t}function N3e(e){j7({createCanvas:e})}function bj(e,t,n){var r=nj("registerMap");r&&r(e,t,n)}function $3e(e){var t=nj("getMap");return t&&t(e)}var _j=GNe;fc(wD,g$e);fc(vS,m$e);fc(vS,y$e);fc(wD,P$e);fc(vS,R$e);fc(ij,u3e);kD(yK);AD(g3e,xNe);MD("default",b$e);ls({type:Nf,event:Nf,update:Nf},Er);ls({type:l1,event:l1,update:l1},Er);ls({type:xg,event:xg,update:xg},Er);ls({type:u1,event:u1,update:u1},Er);ls({type:Tg,event:Tg,update:Tg},Er);TD("light",I$e);TD("dark",D$e);var B3e={},S4=[],F3e={registerPreprocessor:kD,registerProcessor:AD,registerPostInit:pj,registerPostUpdate:gj,registerUpdateLifecycle:pS,registerAction:ls,registerCoordinateSystem:mj,registerLayout:yj,registerVisual:fc,registerTransform:_j,registerLoading:MD,registerMap:bj,registerImpl:f3e,PRIORITY:oj,ComponentModel:kn,ComponentView:gr,SeriesModel:or,ChartView:Xn,registerComponentModel:function(e){kn.registerClass(e)},registerComponentView:function(e){gr.registerClass(e)},registerSeriesModel:function(e){or.registerClass(e)},registerChartView:function(e){Xn.registerClass(e)},registerSubTypeDefaulter:function(e,t){kn.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){PG(e,t)}};function dn(e){if(et(e)){K(e,function(t){dn(t)});return}cn(S4,e)>=0||(S4.push(e),It(e)&&(e={install:e}),e.install(F3e))}function Cp(e){return e==null?0:e.length||1}function C4(e){return e}var V3e=function(){function e(t,n,r,a,i,o){this._old=t,this._new=n,this._oldKeyGetter=r||C4,this._newKeyGetter=a||C4,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=Cp(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=Cp(u),d=Cp(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=Cp(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=Cp(l);u===0?(n[s]=o,i&&r.push(s)):u===1?n[s]=[l,o]:l.push(o)}}},e}();const kl=V3e;var z3e=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 H3e(e,t){var n={},r=n.encode={},a=Et(),i=[],o=[],s={};K(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;Ix(r,v)[p]=d,h.isExtraCoord||(a.set(v,1),W3e(h.type)&&(i[0]=d),Ix(s,v)[p]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}sK.each(function(g,m){var b=Ix(r,m),w=h.otherDims[m];w!=null&&w!==!1&&(b[w]=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=at(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 z3e(s,t),n}function Ix(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function __(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function W3e(e){return!(e==="ordinal"||e==="time")}var G3e=function(){function e(t){this.otherDims={},t!=null&&je(this,t)}return e}();const v1=G3e;var U3e=Ln(),K3e={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},wj=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=xj(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return on(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=_K(this.source),r=!Tj(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+=K3e[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 Sj(e){return e instanceof wj}function Cj(e){for(var t=Et(),n=0;n<(e||[]).length;n++){var r=e[n],a=Ot(r)?r.name:r;a!=null&&t.get(a)==null&&t.set(a,n)}return t}function xj(e){var t=U3e(e);return t.dimNameMap||(t.dimNameMap=Cj(e.dimensionsDefine))}function Tj(e){return e>30}var xp=Ot,tu=at,j3e=typeof Int32Array>"u"?Array:Int32Array,Y3e="e\0\0",x4=-1,q3e=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],X3e=["_approximateExtent"],T4,Y0,Tp,kp,Dx,q0,Lx,Z3e=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;Sj(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=St(f)?new v1({name:f}):f instanceof v1?f:new v1(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=Et();K(o,function(g){p.set(i[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Dn(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 fA&&(i=t),!i){var o=this.dimensions,s=fD(t)||Ca(t)?new wK(t,o.length):t;i=new fA;var l=tu(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=H3e(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&&Lx(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!==Ou&&!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===Co;if(l&&!a.pure)for(var u=[],c=t;c<n;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&vPe(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=Zr(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=Zr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)Lx(this,c);T4(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){xp(t)?je(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=Tp(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 Y0(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 et(t)?a.getValues(tu(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)?x4:a},e.prototype.indicesOfNearest=function(t,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(t),n,r)},e.prototype.each=function(t,n,r){It(t)&&(r=n,n=t,t=[]);var a=r||this,i=tu(kp(t),this._getStoreDimIndex,this);this._store.each(i,a?Ct(n,a):n)},e.prototype.filterSelf=function(t,n,r){It(t)&&(r=n,n=t,t=[]);var a=r||this,i=tu(kp(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?Ct(n,a):n),this},e.prototype.selectRange=function(t){var n=this,r={},a=_n(t);return K(a,function(i){var o=n._getStoreDimIndex(i);r[o]=t[i]}),this._store=this._store.selectRange(r),this},e.prototype.mapArray=function(t,n,r){It(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=tu(kp(t),this._getStoreDimIndex,this),s=q0(this);return s._store=this._store.map(o,i?Ct(n,i):n),s},e.prototype.modify=function(t,n,r,a){var i=r||a||this,o=tu(kp(t),this._getStoreDimIndex,this);this._store.modify(o,i?Ct(n,i):n)},e.prototype.downSample=function(t,n,r,a){var i=q0(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),n,r,a),i},e.prototype.lttbDownSample=function(t,n){var r=q0(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 Yn(r,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new kl(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Y0(t,r)},function(r){return Y0(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||{},xp(t)?je(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),et(i)?i=i.slice():xp(i)&&(i=je({},i)),a[n]=i),i},e.prototype.setItemVisual=function(t,n,r){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,xp(n)?je(a,n):a[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){xp(t)?je(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?je(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;Jk(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){K(this._graphicEls,function(r,a){r&&t&&t.call(n,r,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:tu(this.dimensions,this._getDimInfo,this),this.hostModel)),Dx(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];It(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(Vw(arguments)))})},e.internalField=function(){T4=function(t){var n=t._invertedIndicesMap;K(n,function(r,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){r=n[a]=new j3e(o.categories.length);for(var l=0;l<r.length;l++)r[l]=x4;for(var l=0;l<s.count();l++)r[s.get(i.storeDimIndex,l)]=l}})},Tp=function(t,n,r){return Zr(t._getCategory(n,r),null)},Y0=function(t,n){var r=t._idList[n];return r==null&&t._idDimIdx!=null&&(r=Tp(t,t._idDimIdx,n)),r==null&&(r=Y3e+n),r},kp=function(t){return et(t)||(t=t!=null?[t]:[]),t},q0=function(t){var n=new e(t._schema?t._schema:tu(t.dimensions,t._getDimInfo,t),t.hostModel);return Dx(n,t),n},Dx=function(t,n){K(q3e.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(t[r]=n[r])}),t.__wrappedMethods=n.__wrappedMethods,K(X3e,function(r){t[r]=Ft(n[r])}),t._calculationInfo=je({},n._calculationInfo)},Lx=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=Tp(t,i,n)),l==null&&o!=null&&(a[n]=l=Tp(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 Oa=Z3e;function J3e(e,t){return Fv(e,t).dimensions}function Fv(e,t){fD(e)||(e=dD(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],a=Et(),i=[],o=e4e(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Tj(o),l=r===e.dimensionsDefine,u=l?xj(e):Cj(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Et(c),d=new MK(o),h=0;h<d.length;h++)d[h]=-1;function v(A){var M=d[A];if(M<0){var E=r[A],I=Ot(E)?E:{name:E},L=new v1,O=I.name;O!=null&&u.get(O)!=null&&(L.name=L.displayName=O),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var z=i.length;return d[A]=z,L.storeDimIndex=A,i.push(L),L}return i[M]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(A,M){var E=qn(A).slice();if(E.length===1&&!St(E[0])&&E[0]<0){f.set(M,!1);return}var I=f.set(M,[]);K(E,function(L,O){var z=St(L)?u.get(L):L;z!=null&&z<o&&(I[O]=z,g(v(z),M,O))})});var p=0;K(n,function(A){var M,E,I,L;if(St(A))M=A,L={};else{L=A,M=L.name;var O=L.ordinalMeta;L.ordinalMeta=null,L=je({},L),L.ordinalMeta=O,E=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var z=f.get(M);if(z!==!1){if(z=qn(z),!z.length)for(var F=0;F<(E&&E.length||1);F++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&z.push(p++)}K(z,function($,V){var P=v($);if(l&&L.type!=null&&(P.type=L.type),g(Lt(P,L),M,V),P.name==null&&E){var G=E[V];!Ot(G)&&(G={name:G}),P.name=P.displayName=G.name,P.defaultTooltip=G.defaultTooltip}I&&Lt(P.otherDims,I)})}});function g(A,M,E){sK.get(M)!=null?A.otherDims[M]=E:(A.coordDim=M,A.coordDimIndex=E,a.set(M,!0))}var m=t.generateCoord,b=t.generateCoordCount,w=b!=null;b=m?b||1:0;var S=m||"value";function C(A){A.name==null&&(A.name=A.coordDim)}if(s)K(i,function(A){C(A)}),i.sort(function(A,M){return A.storeDimIndex-M.storeDimIndex});else for(var y=0;y<o;y++){var x=v(y),T=x.coordDim;T==null&&(x.coordDim=t4e(S,a,w),x.coordDimIndex=0,(!m||b<=0)&&(x.isExtraCoord=!0),b--),C(x),x.type==null&&(fK(e,y)===ma.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return Q3e(i),new wj({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function Q3e(e){for(var t=Et(),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 e4e(e,t,n,r){var a=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return K(t,function(i){var o;Ot(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function t4e(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 n4e=function(){function e(t){this.coordSysDims=[],this.axisMap=Et(),this.categoryAxisMap=Et(),this.coordSysName=t}return e}();function r4e(e){var t=e.get("coordinateSystem"),n=new n4e(t),r=a4e[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var a4e={cartesian2d:function(e,t,n,r){var a=e.getReferringComponents("xAxis",Hr).models[0],i=e.getReferringComponents("yAxis",Hr).models[0];t.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),Hd(a)&&(r.set("x",a),t.firstCategoryDimIndex=0),Hd(i)&&(r.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var a=e.getReferringComponents("singleAxis",Hr).models[0];t.coordSysDims=["single"],n.set("single",a),Hd(a)&&(r.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var a=e.getReferringComponents("polar",Hr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),Hd(i)&&(r.set("radius",i),t.firstCategoryDimIndex=0),Hd(o)&&(r.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();K(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),Hd(u)&&(r.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Hd(e){return e.get("type")==="category"}function kj(e,t,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;i4e(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(K(i,function(b,w){St(b)&&(i[w]=b={name:b}),l&&!b.isExtraCoord&&(!r&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!a||a===b.coordDim)&&(c=b))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,p=0;K(i,function(b){b.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(i.push(g),i.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function i4e(e){return!Sj(e.schema)}function Al(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function ID(e,t){return Al(e,t)?e.getCalculationInfo("stackResultDimension"):t}function o4e(e,t){var n=e.get("coordinateSystem"),r=Ov.get(n),a;return t&&t.coordSysDims&&(a=at(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=__(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function s4e(e,t,n){var r,a;return n&&K(e,function(i,o){var s=i.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(e[r].otherDims.itemName=0),r}function js(e,t,n){n=n||{};var r=t.getSourceManager(),a,i=!1;e?(i=!0,a=dD(e)):(a=r.getSource(),i=a.sourceFormat===Co);var o=r4e(t),s=o4e(t,o),l=n.useEncodeDefaulter,u=It(l)?l:l?Zt(cK,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=Fv(a,c),d=s4e(f.dimensions,n.createInvertedIndices,o),h=i?null:r.getSharedDataStore(f),v=kj(t,{schema:f,store:h}),p=new Oa(f,t);p.setCalculationInfo(v);var g=d!=null&&l4e(a)?function(m,b,w,S){return S===d?w:this.defaultDimValueGetter(m,b,w,S)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function l4e(e){if(e.sourceFormat===Co){var t=u4e(e.data||[]);return!et(xv(t))}}function u4e(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Aj=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}();jw(Aj);const Fl=Aj;var c4e=0,f4e=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++c4e}return e.createByAxisModel=function(t){var n=t.option,r=n.data,a=r&&at(r,d4e);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(!St(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=Et(this.categories))},e}();function d4e(e){return Ot(e)&&e.value!=null?e.value:e+""}const wA=f4e;function SA(e){return e.type==="interval"||e.type==="log"}function h4e(e,t,n,r){var a={},i=e[1]-e[0],o=a.interval=OI(i/t,!0);n!=null&&o<n&&(o=a.interval=n),r!=null&&o>r&&(o=a.interval=r);var s=a.intervalPrecision=Ej(o),l=a.niceTickExtent=[Tr(Math.ceil(e[0]/o)*o,s),Tr(Math.floor(e[1]/o)*o,s)];return v4e(l,e),a}function Px(e){var t=Math.pow(10,Kw(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Tr(n*t)}function Ej(e){return Wo(e)+2}function k4(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function v4e(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),k4(e,0,t),k4(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function gS(e,t){return e>=t[0]&&e<=t[1]}function mS(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function yS(e,t){return e*(t[1]-t[0])+t[0]}var Mj=function(e){Ne(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new wA({})),et(a)&&(a=new wA({categories:at(a,function(i){return Ot(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:St(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),gS(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),mS(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(yS(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}(Fl);Fl.registerClass(Mj);const DD=Mj;var Gc=Tr,Ij=function(e){Ne(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 gS(n,this._extent)},t.prototype.normalize=function(n){return mS(n,this._extent)},t.prototype.scale=function(n){return yS(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=Ej(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:Gc(i[0]-r,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Gc(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:Gc(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=Gc(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=Wo(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Gc(n.value,a,!0);return aD(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=h4e(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]=Gc(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=Gc(Math.ceil(r[1]/o)*o))},t.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},t.type="interval",t}(Fl);Fl.registerClass(Ij);const qu=Ij;var Dj=typeof Float32Array<"u",p4e=Dj?Float32Array:Array;function Is(e){return et(e)?Dj?new Float32Array(e):e:new p4e(e)}var CA="__ec_stack_";function LD(e){return e.get("stack")||CA+e.seriesIndex}function PD(e){return e.dim+e.index}function g4e(e){var t=[],n=e.axis,r="axis0";if(n.type==="category"){for(var a=n.getBandWidth(),i=0;i<e.count;i++)t.push(Lt({bandWidth:a,axisKey:r,stackId:CA+i},e));for(var o=Rj(t),s=[],i=0;i<e.count;i++){var l=o[r][CA+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Lj(e,t){var n=[];return t.eachSeriesByType(e,function(r){$j(r)&&n.push(r)}),n}function m4e(e){var t={};K(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),p=0,g=v.count();p<g;++p){var m=v.get(h,p);t[d]?t[d].push(m):t[d]=[m]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var a=t[r];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}n[r]=i}}return n}function Pj(e){var t=m4e(e),n=[];return K(e,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=yt(r.get("barWidth"),s),p=yt(r.get("barMaxWidth"),s),g=yt(r.get("barMinWidth")||(Bj(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:PD(i),stackId:LD(r)})}),Rj(n)}function Rj(e){var t={};K(e,function(r,a){var i=r.axisKey,o=r.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var v=r.barCategoryGap;v!=null&&(s.categoryGap=v)});var n={};return K(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=_n(i).length;s=Math.max(35-l*4,15)+"%"}var u=yt(s,o),c=yt(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),K(i,function(m){var b=m.maxWidth,w=m.minWidth;if(m.width){var S=m.width;b&&(S=Math.min(S,b)),w&&(S=Math.max(S,w)),m.width=S,f-=S+c*S,d--}else{var S=h;b&&b<S&&(S=Math.min(b,f)),w&&w>S&&(S=w),S!==h&&(m.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,p;K(i,function(m,b){m.width||(m.width=h),p=m,v+=m.width*(1+c)}),p&&(v-=p.width*c);var g=-v/2;K(i,function(m,b){n[a][b]=n[a][b]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),n}function y4e(e,t,n){if(e&&t){var r=e[PD(t)];return r!=null&&n!=null?r[LD(n)]:r}}function Oj(e,t){var n=Lj(e,t),r=Pj(n);K(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=LD(a),u=r[PD(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function Nj(e){return{seriesType:e,plan:Nv(),reset:function(t){if($j(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=Al(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=b4e(a,i),v=Bj(t),p=t.get("barMinHeight")||0,g=c&&n.getDimensionIndex(c),m=n.getLayout("size"),b=n.getLayout("offset");return{progress:function(w,S){for(var C=w.count,y=v&&Is(C*3),x=v&&l&&Is(C*3),T=v&&Is(C),A=r.master.getRect(),M=d?A.width:A.height,E,I=S.getStore(),L=0;(E=w.next())!=null;){var O=I.get(f?g:o,E),z=I.get(s,E),F=h,$=void 0;f&&($=+O-I.get(o,E));var V=void 0,P=void 0,G=void 0,j=void 0;if(d){var J=r.dataToPoint([O,z]);if(f){var ne=r.dataToPoint([$,z]);F=ne[0]}V=F,P=J[1]+b,G=J[0]-F,j=m,Math.abs(G)<p&&(G=(G<0?-1:1)*p)}else{var J=r.dataToPoint([z,O]);if(f){var ne=r.dataToPoint([z,$]);F=ne[1]}V=J[0]+b,P=F,G=m,j=J[1]-F,Math.abs(j)<p&&(j=(j<=0?-1:1)*p)}v?(y[L]=V,y[L+1]=P,y[L+2]=d?G:j,x&&(x[L]=d?A.x:V,x[L+1]=d?P:A.y,x[L+2]=M),T[E]=E):S.setItemLayout(E,{x:V,y:P,width:G,height:j}),L+=3}v&&S.setLayout({largePoints:y,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:d})}}}}}}function $j(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Bj(e){return e.pipelineContext&&e.pipelineContext.large}function b4e(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var _4e=function(e,t,n,r){for(;n<r;){var a=n+r>>>1;e[a][1]<t?n=a+1:r=a}return n},Fj=function(e){Ne(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 ky(n.value,m3[FOe(Dh(this._minLevelUnit))]||m3.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(n,r,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return VOe(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=A4e(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]-=ao,r[1]+=ao),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]-ao}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=X0.length,l=Math.min(_4e(X0,this._approxInterval,0,s),s-1);this._interval=X0[l][1],this._minLevelUnit=X0[Math.max(l-1,0)][0]},t.prototype.parse=function(n){return Dn(n)?n:+Fi(n)},t.prototype.contain=function(n){return gS(this.parse(n),this._extent)},t.prototype.normalize=function(n){return mS(this.parse(n),this._extent)},t.prototype.scale=function(n){return yS(n,this._extent)},t.type="time",t}(qu),X0=[["second",tD],["minute",nD],["hour",Ag],["quarter-day",Ag*6],["half-day",Ag*12],["day",ao*1.2],["half-week",ao*3.5],["week",ao*7],["month",ao*31],["quarter",ao*95],["half-year",g3/2],["year",g3]];function w4e(e,t,n,r){var a=Fi(t),i=Fi(n),o=function(v){return y3(a,v,r)===y3(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 S4e(e,t){return e/=ao,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function C4e(e){var t=30*ao;return e/=t,e>6?6:e>3?3:e>2?2:1}function x4e(e){return e/=Ag,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function A4(e,t){return e/=t?nD:tD,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function T4e(e){return OI(e,!0)}function k4e(e,t,n){var r=new Date(e);switch(Dh(t)){case"year":case"month":r[ZU(n)](0);case"day":r[JU(n)](1);case"hour":r[QU(n)](0);case"minute":r[eK(n)](0);case"second":r[tK(n)](0),r[nK(n)](0)}return r.getTime()}function A4e(e,t,n,r){var a=1e4,i=qU,o=0;function s(M,E,I,L,O,z,F){for(var $=new Date(E),V=E,P=$[L]();V<I&&V<=r[1];)F.push({value:V}),P+=M,$[O](P),V=$.getTime();F.push({value:V,notAdd:!0})}function l(M,E,I){var L=[],O=!E.length;if(!w4e(Dh(M),r[0],r[1],n)){O&&(E=[{value:k4e(new Date(r[0]),M,n)},{value:r[1]}]);for(var z=0;z<E.length-1;z++){var F=E[z].value,$=E[z+1].value;if(F!==$){var V=void 0,P=void 0,G=void 0,j=!1;switch(M){case"year":V=Math.max(1,Math.round(t/ao/365)),P=rD(n),G=zOe(n);break;case"half-year":case"quarter":case"month":V=C4e(t),P=Lh(n),G=ZU(n);break;case"week":case"half-week":case"day":V=S4e(t),P=iS(n),G=JU(n),j=!0;break;case"half-day":case"quarter-day":case"hour":V=x4e(t),P=Dm(n),G=QU(n);break;case"minute":V=A4(t,!0),P=oS(n),G=eK(n);break;case"second":V=A4(t,!1),P=sS(n),G=tK(n);break;case"millisecond":V=T4e(t),P=lS(n),G=nK(n);break}s(V,F,$,P,G,j,L),M==="year"&&I.length>1&&z===0&&I.unshift({value:I[0].value-V})}}for(var z=0;z<L.length;z++)I.push(L[z]);return L}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var v=Dh(i[h]);if(BOe(i[h])){l(i[h],u[u.length-1]||[],c);var p=i[h+1]?Dh(i[h+1]):null;if(v!==p){if(c.length){d=f,c.sort(function(M,E){return M.value-E.value});for(var g=[],m=0;m<c.length;++m){var b=c[m].value;(m===0||c[m-1].value!==b)&&(g.push(c[m]),b>=r[0]&&b<=r[1]&&f++)}var w=(r[1]-r[0])/t;if(f>w*1.5&&d>w/1.5||(u.push(g),f>w||e===i[h]))break}c=[]}}}for(var S=zn(at(u,function(M){return zn(M,function(E){return E.value>=r[0]&&E.value<=r[1]&&!E.notAdd})}),function(M){return M.length>0}),C=[],y=S.length-1,h=0;h<S.length;++h)for(var x=S[h],T=0;T<x.length;++T)C.push({value:x[T].value,level:y-h});C.sort(function(M,E){return M.value-E.value});for(var A=[],h=0;h<C.length;++h)(h===0||C[h].value!==C[h-1].value)&&A.push(C[h]);return A}Fl.registerClass(Fj);const Vj=Fj;var E4=Fl.prototype,Ig=qu.prototype,E4e=Tr,M4e=Math.floor,I4e=Math.ceil,Z0=Math.pow,Lo=Math.log,RD=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new qu,n._interval=0,n}return t.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,i=r.getExtent(),o=Ig.getTicks.call(this,n);return at(o,function(s){var l=s.value,u=Tr(Z0(this.base,l));return u=l===a[0]&&this._fixMin?J0(u,i[0]):u,u=l===a[1]&&this._fixMax?J0(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(n,r){var a=Lo(this.base);n=Lo(Math.max(0,n))/a,r=Lo(Math.max(0,r))/a,Ig.setExtent.call(this,n,r)},t.prototype.getExtent=function(){var n=this.base,r=E4.getExtent.call(this);r[0]=Z0(n,r[0]),r[1]=Z0(n,r[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(r[0]=J0(r[0],i[0])),this._fixMax&&(r[1]=J0(r[1],i[1])),r},t.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=Lo(n[0])/Lo(r),n[1]=Lo(n[1])/Lo(r),E4.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=$G(a),o=n/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Tr(I4e(r[0]/i)*i),Tr(M4e(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(n){Ig.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=Lo(n)/Lo(this.base),gS(n,this._extent)},t.prototype.normalize=function(n){return n=Lo(n)/Lo(this.base),mS(n,this._extent)},t.prototype.scale=function(n){return n=yS(n,this._extent),Z0(this.base,n)},t.type="log",t}(Fl),zj=RD.prototype;zj.getMinorTicks=Ig.getMinorTicks;zj.getLabel=Ig.getLabel;function J0(e,t){return E4e(e,Wo(t))}Fl.registerClass(RD);const D4e=RD;var L4e=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);It(i)?this._modelMinNum=Q0(t,i({min:r[0],max:r[1]})):i!=="dataMin"&&(this._modelMinNum=Q0(t,i));var o=this._modelMaxRaw=n.get("max",!0);if(It(o)?this._modelMaxNum=Q0(t,o({min:r[0],max:r[1]})):o!=="dataMax"&&(this._modelMaxNum=Q0(t,o)),a)this._axisDataLen=n.getCategories().length;else{var s=n.get("boundaryGap"),l=et(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ts(l[0],1),ts(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=av(s)||av(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[R4e[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=P4e[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e}(),P4e={min:"_determinedMin",max:"_determinedMax"},R4e={min:"_dataMin",max:"_dataMax"};function Hj(e,t,n){var r=e.rawExtentInfo;return r||(r=new L4e(e,t,n),e.rawExtentInfo=r,r)}function Q0(e,t){return t==null?null:av(t)?NaN:e.parse(t)}function Wj(e,t){var n=e.type,r=Hj(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=Lj("bar",o),l=!1;if(K(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=Pj(s),c=O4e(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function O4e(e,t,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=y4e(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;K(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;K(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Qf(e,t){var n=t,r=Wj(e,n),a=r.extent,i=n.get("splitNumber");e instanceof D4e&&(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 Ey(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new DD({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Vj({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Fl.getClass(t)||qu)}}function N4e(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function My(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):St(t)?function(r){return function(a){var i=e.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(t):It(t)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r(OD(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(r){return e.scale.getLabel(r)}}function OD(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function $4e(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof DD?a=n.count():(r=n.getTicks(),a=r.length);var o=e.getLabelModel(),s=My(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=B4e(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function B4e(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 sn(e.x,e.y,i,o);return s}function ND(e){var t=e.get("interval");return t??"auto"}function Gj(e){return e.type==="category"&&ND(e.getLabelModel())===0}function w_(e,t){var n={};return K(e.mapDimensionsAll(t),function(r){n[ID(e,r)]=!0}),_n(n)}function F4e(e,t,n){t&&K(w_(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 Vv=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}();function V4e(e){return js(null,e)}var z4e={isDimensionStacked:Al,enableDataStack:kj,getStackedDimension:ID};function H4e(e,t){var n=t;t instanceof Yn||(n=new Yn(t));var r=Ey(n);return r.setExtent(e[0],e[1]),Qf(r,n),r}function W4e(e){Ir(e,Vv)}function G4e(e,t){return t=t||{},er(e,null,null,t.state!=="normal")}const U4e=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:J3e,createList:V4e,createScale:H4e,createSymbol:Nr,createTextStyle:G4e,dataStack:z4e,enableHoverEmphasis:Pu,getECData:Jt,getLayoutRect:Yr,mixinAxisModelCommonMethods:W4e},Symbol.toStringTag,{value:"Module"}));var K4e=1e-8;function M4(e,t){return Math.abs(e-t)<K4e}function uf(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+=rl(a[0],a[1],o[0],o[1],t,n),a=o}var s=e[0];return(!M4(a[0],s[0])||!M4(a[1],s[1]))&&(r+=rl(a[0],a[1],s[0],s[1],t,n)),r!==0}var j4e=[];function Rx(e,t){for(var n=0;n<e.length;n++)pa(e[n],e[n],t)}function I4(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])&&(ll(t,t,i),ul(n,n,i))}}function Y4e(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 Uj=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}(),D4=function(){function e(t,n){this.type="polygon",this.exterior=t,this.interiors=n}return e}(),L4=function(){function e(t){this.type="linestring",this.points=t}return e}(),Kj=function(e){Ne(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 Y4e(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return K(o,function(s){s.type==="polygon"?I4(s.exterior,a,i,n):K(s.points,function(l){I4(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 sn(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(uf(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(uf(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 sn(n,r,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(Rx(d.exterior,u),K(d.interiors,function(h){Rx(h,u)})):K(d.points,function(h){Rx(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}(Uj),q4e=function(e){Ne(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=gy(j4e),o=n;o&&!o.isGeoSVGGraphicRoot;)Rs(i,o.getLocalTransform(),i),o=o.parent;return fd(i,i),pa(a,a,i),a},t}(Uj);function X4e(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n==null&&(n=1024);var r=t.features;return K(r,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=jj(s,o,n);break;case"Polygon":Ox(s,o,n);break;case"MultiLineString":Ox(s,o,n);break;case"MultiPolygon":K(s,function(l,u){return Ox(l,o[u],n)})}}),t.UTF8Encoding=!1,t}function Ox(e,t,n){for(var r=0;r<e.length;r++)e[r]=jj(e[r],t[r],n)}function jj(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 xA(e,t){return e=X4e(e),at(zn(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 D4(o[0],o.slice(1)));break;case"MultiPolygon":K(a.coordinates,function(l){l[0]&&i.push(new D4(l[0],l.slice(1)))});break;case"LineString":i.push(new L4([a.coordinates]));break;case"MultiLineString":i.push(new L4(a.coordinates))}var s=new Kj(r[t||"name"],i,r.cp);return s.properties=r,s})}const Z4e=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:Kk,asc:Ri,getPercentWithPrecision:fPe,getPixelPrecision:PI,getPrecision:Wo,getPrecisionSafe:OG,isNumeric:NI,isRadianAroundZero:xm,linearMap:Vn,nice:OI,numericToNumber:Hs,parseDate:Fi,quantile:s1,quantity:$G,quantityExponent:Kw,reformIntervals:jk,remRadian:RI,round:Tr},Symbol.toStringTag,{value:"Module"})),J4e=Object.freeze(Object.defineProperty({__proto__:null,format:ky,parse:Fi},Symbol.toStringTag,{value:"Module"})),Q4e=Object.freeze(Object.defineProperty({__proto__:null,Arc:eS,BezierCurve:Sy,BoundingRect:sn,Circle:ns,CompoundPath:tS,Ellipse:Qw,Group:Gt,Image:ga,IncrementalDisplayable:OU,Line:ra,LinearGradient:kv,Polygon:oi,Polyline:li,RadialGradient:jI,Rect:En,Ring:wy,Sector:ii,Text:An,clipPointsByRect:ZI,clipRectByRect:VU,createIcon:Ev,extendPath:BU,extendShape:$U,getShapeClass:nS,getTransform:Ru,initProps:cr,makeImage:qI,makePath:Cy,mergePath:Ii,registerShape:So,resizePath:XI,updateProps:Pn},Symbol.toStringTag,{value:"Module"})),e5e=Object.freeze(Object.defineProperty({__proto__:null,addCommas:aD,capitalFirst:UOe,encodeHTML:qa,formatTime:GOe,formatTpl:oD,getTextRect:HOe,getTooltipMarker:rK,normalizeCssArray:hd,toCamelCase:iD,truncateText:YG},Symbol.toStringTag,{value:"Module"})),t5e=Object.freeze(Object.defineProperty({__proto__:null,bind:Ct,clone:Ft,curry:Zt,defaults:Lt,each:K,extend:je,filter:zn,indexOf:cn,inherits:xI,isArray:et,isFunction:It,isObject:Ot,isString:St,map:at,merge:rn,reduce:bo},Symbol.toStringTag,{value:"Module"}));var $m=Ln();function n5e(e){return e.type==="category"?a5e(e):o5e(e)}function r5e(e,t){return e.type==="category"?i5e(e,t):{ticks:at(e.scale.getTicks(),function(n){return n.value})}}function a5e(e){var t=e.getLabelModel(),n=Yj(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Yj(e,t){var n=qj(e,"labels"),r=ND(t),a=Xj(n,r);if(a)return a;var i,o;return It(r)?i=Qj(e,r):(o=r==="auto"?s5e(e):r,i=Jj(e,o)),Zj(n,r,{labels:i,labelCategoryInterval:o})}function i5e(e,t){var n=qj(e,"ticks"),r=ND(t),a=Xj(n,r);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),It(r))i=Qj(e,r,!0);else if(r==="auto"){var s=Yj(e,e.getLabelModel());o=s.labelCategoryInterval,i=at(s.labels,function(l){return l.tickValue})}else o=r,i=Jj(e,o,!0);return Zj(n,r,{ticks:i,tickCategoryInterval:o})}function o5e(e){var t=e.scale.getTicks(),n=My(e);return{labels:at(t,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function qj(e,t){return $m(e)[t]||($m(e)[t]=[])}function Xj(e,t){for(var n=0;n<e.length;n++)if(e[n].key===t)return e[n].value}function Zj(e,t,n){return e.push({key:t,value:n}),n}function s5e(e){var t=$m(e).autoInterval;return t??($m(e).autoInterval=e.calculateCategoryInterval())}function l5e(e){var t=u5e(e),n=My(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=yy(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 w=Math.max(0,Math.floor(Math.min(m,b))),S=$m(e.model),C=e.getExtent(),y=S.lastAutoInterval,x=S.lastTickCount;return y!=null&&x!=null&&Math.abs(y-w)<=1&&Math.abs(x-o)<=1&&y>w&&S.axisExtent0===C[0]&&S.axisExtent1===C[1]?w=y:(S.lastTickCount=o,S.lastAutoInterval=w,S.axisExtent0=C[0],S.axisExtent1=C[1]),w}function u5e(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 Jj(e,t,n){var r=My(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=Gj(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 Qj(e,t,n){var r=e.scale,a=My(e),i=[];return K(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;t(o.value,s)&&i.push(n?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var P4=[0,1],c5e=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 PI(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(),R4(r,a.count())),Vn(t,P4,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),R4(r,a.count()));var i=Vn(t,r,P4,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=r5e(this,n),a=r.ticks,i=at(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return f5e(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=at(r,function(i){return at(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return n5e(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 l5e(this)},e}();function R4(e,t){var n=e[1]-e[0],r=t,a=n/r/2;e[0]+=a,e[1]-=a}function f5e(e,t,n,r){var a=t.length;if(!e.onBand||n||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;K(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(r?t[0].coord=i[0]:t.shift()),r&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(r?o.coord=i[1]:t.pop()),r&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(h,v){return h=Tr(h),v=Tr(v),f?h>v:h<v}}const To=c5e;function d5e(e){var t=kn.extend(e);return kn.registerClass(t),t}function h5e(e){var t=gr.extend(e);return gr.registerClass(t),t}function v5e(e){var t=or.extend(e);return or.registerClass(t),t}function p5e(e){var t=Xn.extend(e);return Xn.registerClass(t),t}var Ap=Math.PI*2,Uc=Ws.CMD,g5e=["top","right","bottom","left"];function m5e(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 y5e(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)%Ap<1e-4)return l[0]=c,l[1]=f,u-n;if(i){var d=r;r=Go(a),a=Go(d)}else r=Go(r),a=Go(a);r>a&&(a+=Ap);var h=Math.atan2(s,o);if(h<0&&(h+=Ap),h>=r&&h<=a||h+Ap>=r&&h+Ap<=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),w=(g-o)*(g-o)+(m-s)*(m-s);return b<w?(l[0]=v,l[1]=p,Math.sqrt(b)):(l[0]=g,l[1]=m,Math.sqrt(w))}function S_(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 eY(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 $o=[];function b5e(e,t,n){var r=eY(t.x,t.y,t.width,t.height,e.x,e.y,$o);return n.set($o[0],$o[1]),r}function _5e(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 Uc.M:i=c[h++],o=c[h++],r=i,a=o;break;case Uc.L:p=S_(r,a,c[h],c[h+1],f,d,$o,!0),r=c[h++],a=c[h++];break;case Uc.C:p=pG(r,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,$o),r=c[h++],a=c[h++];break;case Uc.Q:p=mG(r,a,c[h++],c[h++],c[h],c[h+1],f,d,$o),r=c[h++],a=c[h++];break;case Uc.A:var g=c[h++],m=c[h++],b=c[h++],w=c[h++],S=c[h++],C=c[h++];h+=1;var y=!!(1-c[h++]);s=Math.cos(S)*b+g,l=Math.sin(S)*w+m,h<=1&&(i=s,o=l);var x=(f-g)*w/b+g;p=y5e(g,m,w,S,S+C,y,x,d,$o),r=Math.cos(S+C)*b+g,a=Math.sin(S+C)*w+m;break;case Uc.R:i=r=c[h++],o=a=c[h++];var T=c[h++],A=c[h++];p=eY(i,o,T,A,f,d,$o);break;case Uc.Z:p=S_(r,a,i,o,f,d,$o,!0),r=i,a=o;break}p<u&&(u=p,n.set($o[0],$o[1]))}return u}var Uo=new an,ar=new an,Pr=new an,Ds=new an,ks=new an;function O4(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||g5e,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=a.anchor,c=e.getComputedTransform(),f=c&&fd([],c),d=t.get("length2")||0;u&&Pr.copy(u);for(var h=0;h<o.length;h++){var v=o[h];m5e(v,0,s,Uo,Ds),an.scaleAndAdd(ar,Uo,Ds,d),ar.transform(f);var p=e.getBoundingRect(),g=u?u.distance(ar):e instanceof pn?_5e(ar,e.path,Pr):b5e(ar,p,Pr);g<l&&(l=g,ar.transform(c),Pr.transform(c),Pr.toArray(i[0]),ar.toArray(i[1]),Uo.toArray(i[2]))}tY(i,t.get("minTurnAngle")),n.setShape({points:i})}}}var C_=[],Ya=new an;function tY(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Uo.fromArray(e[0]),ar.fromArray(e[1]),Pr.fromArray(e[2]),an.sub(Ds,Uo,ar),an.sub(ks,Pr,ar);var n=Ds.len(),r=ks.len();if(!(n<.001||r<.001)){Ds.scale(1/n),ks.scale(1/r);var a=Ds.dot(ks),i=Math.cos(t);if(i<a){var o=S_(ar.x,ar.y,Pr.x,Pr.y,Uo.x,Uo.y,C_,!1);Ya.fromArray(C_),Ya.scaleAndAdd(ks,o/Math.tan(Math.PI-t));var s=Pr.x!==ar.x?(Ya.x-ar.x)/(Pr.x-ar.x):(Ya.y-ar.y)/(Pr.y-ar.y);if(isNaN(s))return;s<0?an.copy(Ya,ar):s>1&&an.copy(Ya,Pr),Ya.toArray(e[1])}}}}function w5e(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Uo.fromArray(e[0]),ar.fromArray(e[1]),Pr.fromArray(e[2]),an.sub(Ds,ar,Uo),an.sub(ks,Pr,ar);var r=Ds.len(),a=ks.len();if(!(r<.001||a<.001)){Ds.scale(1/r),ks.scale(1/a);var i=Ds.dot(t),o=Math.cos(n);if(i<o){var s=S_(ar.x,ar.y,Pr.x,Pr.y,Uo.x,Uo.y,C_,!1);Ya.fromArray(C_);var l=Math.PI/2,u=Math.acos(ks.dot(t)),c=l+u-n;if(c>=l)an.copy(Ya,Pr);else{Ya.scaleAndAdd(ks,s/Math.tan(Math.PI/2-c));var f=Pr.x!==ar.x?(Ya.x-ar.x)/(Pr.x-ar.x):(Ya.y-ar.y)/(Pr.y-ar.y);if(isNaN(f))return;f<0?an.copy(Ya,ar):f>1&&an.copy(Ya,Pr)}Ya.toArray(e[1])}}}}function N4(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 S5e(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=sl(r[0],r[1]),i=sl(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=bg([],r[1],r[0],o/a),l=bg([],r[1],r[2],o/i),u=bg([],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 $D(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<Am.length;l++){var u=Am[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:on(a.states[u]&&a.states[u].ignore,s);if(h||!on(d,o)){var v=f?r:r&&r.states[u];v&&(v.ignore=!0);continue}r||(r=new li,e.setTextGuideLine(r),!f&&(s||!o)&&N4(r,!0,"normal",t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),N4(r,!1,u,c)}}if(r){Lt(r.style,n),r.style.fill=null;var p=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=p||!1,r.buildPath=S5e}}function BD(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},r=0;r<ai.length;r++){var a=ai[r];n[a]=e.getModel([a,t])}return n}function nY(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 i_(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 rY(e,t,n,r,a,i){var o=e.length;if(o<2)return;e.sort(function(T,A){return T.rect[t]-A.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;w(),m<0&&y(-m,.8),b<0&&y(b,.8),w(),S(m,b,1),S(b,m,-1),w(),m<0&&x(-m),b<0&&x(b);function w(){m=p.rect[t]-r,b=a-g.rect[t]-g.rect[n]}function S(T,A,M){if(T<0){var E=Math.min(A,-T);if(E>0){C(E*M,0,o);var I=E+T;I<0&&y(-I*M,1)}else y(-T*M,1)}}function C(T,A,M){T!==0&&(u=!0);for(var E=A;E<M;E++){var I=e[E],L=I.rect;L[t]+=T,I.label[t]+=T}}function y(T,A){for(var M=[],E=0,I=1;I<o;I++){var L=e[I-1].rect,O=Math.max(e[I].rect[t]-L[t]-L[n],0);M.push(O),E+=O}if(E){var z=Math.min(Math.abs(T)/E,A);if(T>0)for(var I=0;I<o-1;I++){var F=M[I]*z;C(F,0,I+1)}else for(var I=o-1;I>0;I--){var F=M[I-1]*z;C(-F,I,o)}}}function x(T){var A=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),E=0;E<o-1;E++)if(A>0?C(M,0,E+1):C(-M,o-E-1,o),T-=M,T<=0)return}return u}function C5e(e,t,n,r){return rY(e,"x","width",t,n,r)}function aY(e,t,n,r){return rY(e,"y","height",t,n,r)}function iY(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var n=new sn(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 i_(v.localRect,v.transform)),f||(f=new i_(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 x5e(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function T5e(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:x5e(r&&r.shape.points)}}var $4=["align","verticalAlign","width","height","fontSize"],Wa=new cl,Nx=Ln(),k5e=Ln();function eb(e,t,n){for(var r=0;r<n.length;r++){var a=n[r];t[a]!=null&&(e[a]=t[a])}}var tb=["x","y","rotation"],A5e=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();sn.applyTransform(c,c,u),u?Wa.setLocalTransform(u):(Wa.x=Wa.y=Wa.rotation=Wa.originX=Wa.originY=0,Wa.scaleX=Wa.scaleY=1),Wa.rotation=Go(Wa.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();sn.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:Wa.x,y:Wa.y,scaleX:Wa.scaleX,scaleY:Wa.scaleY,rotation:Wa.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");(It(a)||_n(a).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Jt(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,S){return function(){O4(w,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;It(o.layoutOption)?c=o.layoutOption(T5e(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=yt(c.x,n),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=yt(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=Nx(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<$4.length;p++){var g=$4[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=nY(this._labelList),i=zn(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=zn(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});C5e(i,0,n),aY(o,0,r);var s=zn(a,function(l){return l.layoutOption.hideOverlap});iY(s)},e.prototype.processLabelsOverall=function(){var t=this;K(this._chartViewList,function(n){var r=n.__model,a=n.ignoreLabelLineUpdate,i=r.isAnimationEnabled();n.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=Nx(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,r),i&&t._animateLabels(o,r)})})},e.prototype._updateLabelLine=function(t,n){var r=t.getTextContent(),a=Jt(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");$D(t,BD(s),l),O4(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&&!Ih(t))){var i=Nx(r),o=i.oldLayout,s=Jt(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&&(cn(d,"select")>=0&&r.attr(i.oldLayoutSelect),cn(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),Pn(r,u,n,l)}else if(r.attr(u),!Iv(r).valueAnimation){var f=on(r.style.opacity,1);r.style.opacity=0,cr(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};eb(h,u,tb),eb(h,r.states.select,tb)}if(r.states.emphasis){var v=i.oldLayoutEmphasis={};eb(v,u,tb),eb(v,r.states.emphasis,tb)}UU(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=k5e(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),Pn(a,{shape:p},n)):(a.setShape(p),a.style.strokePercent=0,cr(a,{style:{strokePercent:1}},n)),i.oldLayout=p}},e}();const E5e=A5e;var $x=Ln();function M5e(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){var a=$x(n).labelManager;a||(a=$x(n).labelManager=new E5e),a.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,n,r){var a=$x(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var Bx=Math.sin,Fx=Math.cos,oY=Math.PI,Kc=Math.PI*2,I5e=180/oY,D5e=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=Cu(f-Kc)||(c?u>=Kc:-u>=Kc),h=u>0?u%Kc:u%Kc+Kc,v=!1;d?v=!0:Cu(f)?v=!1:v=h>=oY==!!c;var p=t+r*Fx(o),g=n+a*Bx(o);this._start&&this._add("M",p,g);var m=Math.round(i*I5e);if(d){var b=1/this._p,w=(c?1:-1)*(Kc-b);this._add("A",r,a,m,1,+c,t+r*Fx(o+w),n+a*Bx(o+w)),b>.01&&this._add("A",r,a,m,0,+c,p,g)}else{var S=t+r*Fx(s),C=n+a*Bx(s);this._add("A",r,a,m,+v,+c,S,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 sY=D5e;var Dg="none",L5e=Math.round;function P5e(e){var t=e.fill;return t!=null&&t!==Dg}function R5e(e){var t=e.stroke;return t!=null&&t!==Dg}var TA=["lineCap","miterLimit","lineJoin"],O5e=at(TA,function(e){return"stroke-"+e.toLowerCase()});function N5e(e,t,n,r){var a=t.opacity==null?1:t.opacity;if(n instanceof ga){e("opacity",a);return}if(P5e(t)){var i=Cm(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",Dg);if(R5e(t)){var s=Cm(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=bD(n),h=d[0],v=d[1];h&&(v=L5e(v||0),e("stroke-dasharray",h.join(",")),(v||r)&&e("stroke-dashoffset",v))}else r&&e("stroke-dasharray",Dg);for(var p=0;p<TA.length;p++){var g=TA[p];if(r||t[g]!==r_[g]){var m=t[g]||r_[g];m&&e(O5e[p],m)}}}else r&&e("stroke",Dg)}var lY="http://www.w3.org/2000/svg",uY="http://www.w3.org/1999/xlink",$5e="http://www.w3.org/2000/xmlns/",B5e="http://www.w3.org/XML/1998/namespace";function cY(e){return document.createElementNS(lY,e)}function aa(e,t,n,r,a){return{tag:e,attrs:n||{},children:r,text:a,key:t}}function F5e(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 V5e(e){return"</"+e+">"}function FD(e,t){t=t||{};var n=t.newline?`
  98. `:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return F5e(o,s)+(o!=="style"?qa(l):l||"")+(i?""+n+at(i,function(u){return r(u)}).join(n)+n:"")+V5e(o)}return r(e)}function z5e(e,t,n){n=n||{};var r=n.newline?`
  99. `:"",a=" {"+r,i=r+"}",o=at(_n(e),function(l){return l+a+at(_n(e[l]),function(u){return u+":"+e[l][u]+";"}).join(r)+i}).join(r),s=at(_n(t),function(l){return"@keyframes "+l+a+at(_n(t[l]),function(u){return u+a+at(_n(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 kA(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function B4(e,t,n,r){return aa("svg","root",{width:e,height:t,xmlns:lY,"xmlns:xlink":uY,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+e+" "+t:!1},n)}var F4={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"},Zc="transform-origin";function H5e(e,t,n){var r=je({},e.shape);je(r,t),e.buildPath(n,r);var a=new sY;return a.reset(xG(e)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function W5e(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[Zc]=n+"px "+r+"px")}var G5e={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function fY(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function U5e(e,t,n){var r=e.shape.paths,a={},i,o;if(K(r,function(l){var u=kA(n.zrId);u.animation=!0,bS(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=_n(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=fY(a,n);return i.replace(o,s)}}function V4(e){return St(e)?F4[e]?"cubic-bezier("+F4[e]+")":EI(e)?e:"":""}function bS(e,t,n,r){var a=e.animators,i=a.length,o=[];if(e instanceof tS){var s=U5e(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=V4(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 w=b[1],S=w.length,C={},y={},x={},T="animation-timing-function";function A(Q,_e,Pe){for(var pe=Q.getTracks(),Y=Q.getMaxTime(),ie=0;ie<pe.length;ie++){var me=pe[ie];if(me.needsAnimate()){var De=me.keyframes,Be=me.propName;if(Pe&&(Be=Pe(Be)),Be)for(var Oe=0;Oe<De.length;Oe++){var de=De[Oe],we=Math.round(de.time/Y*100)+"%",Se=V4(de.easing),Ie=de.rawValue;(St(Ie)||Dn(Ie))&&(_e[we]=_e[we]||{},_e[we][Be]=de.rawValue,Se&&(_e[we][T]=Se))}}}}for(var M=0;M<S;M++){var E=w[M],I=E.targetName;I?I==="shape"&&A(E,y):!r&&A(E,C)}for(var L in C){var O={};MG(O,e),je(O,C[L]);var z=TG(O),F=C[L][T];x[L]=z?{transform:z}:{},W5e(x[L],O),F&&(x[L][T]=F)}var $,V=!0;for(var L in y){x[L]=x[L]||{};var P=!$,F=y[L][T];P&&($=new Ws);var G=$.len();$.reset(),x[L].d=H5e(e,y[L],$);var j=$.len();if(!P&&G!==j){V=!1;break}F&&(x[L][T]=F)}if(!V)for(var L in x)delete x[L].d;if(!r)for(var M=0;M<S;M++){var E=w[M],I=E.targetName;I==="style"&&A(E,x,function(pe){return G5e[pe]})}for(var J=_n(x),ne=!0,ve,M=1;M<J.length;M++){var le=J[M-1],ce=J[M];if(x[le][Zc]!==x[ce][Zc]){ne=!1;break}ve=x[le][Zc]}if(ne&&ve){for(var L in x)x[L][Zc]&&delete x[L][Zc];t[Zc]=ve}if(zn(J,function(Q){return _n(x[Q]).length>0}).length){var ue=fY(x,n);return ue+" "+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 Bm=Math.round;function dY(e){return e&&St(e.src)}function hY(e){return e&&It(e.toDataURL)}function VD(e,t,n,r){N5e(function(a,i){var o=a==="fill"||a==="stroke";o&&CG(i)?pY(t,e,a,r):o&&II(i)?gY(n,e,a,r):e[a]=i},t,n,!1),J5e(n,e,r)}function z4(e){return Cu(e[0]-1)&&Cu(e[1])&&Cu(e[2])&&Cu(e[3]-1)}function K5e(e){return Cu(e[4])&&Cu(e[5])}function zD(e,t,n){if(t&&!(K5e(t)&&z4(t))){var r=n?10:1e4;e.transform=z4(t)?"translate("+Bm(t[4]*r)/r+" "+Bm(t[5]*r)/r+")":TLe(t)}}function H4(e,t,n){for(var r=e.points,a=[],i=0;i<r.length;i++)a.push(Bm(r[i][0]*n)/n),a.push(Bm(r[i][1]*n)/n);t.points=a.join(" ")}function W4(e){return!e.smooth}function j5e(e){var t=at(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]]=Bm(s*a)/a)}}}var Y5e={circle:[j5e(["cx","cy","r"])],polyline:[H4,W4],polygon:[H4,W4]};function q5e(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName==="shape")return!0;return!1}function vY(e,t){var n=e.style,r=e.shape,a=Y5e[e.type],i={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&xG(e)||4;if(a&&!t.willUpdate&&!(a[1]&&!a[1](r))&&!(o&&q5e(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 sY),p.reset(u),d.rebuildPath(p,l),p.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),i.d=p.getStr()}return zD(i,e.transform),VD(i,n,e,t),t.animation&&bS(e,i,t),aa(s,e.id+"",i)}function X5e(e,t){var n=e.style,r=n.image;if(r&&!St(r)&&(dY(r)?r=r.src:hY(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),zD(l,e.transform),VD(l,n,e,t),t.animation&&bS(e,l,t),aa("image",e.id+"",l)}}function Z5e(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var a=n.font||Uu,i=n.x||0,o=ALe(n.y||0,Uw(a),n.textBaseline),s=kLe[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(lU(n)){var u="",c=n.fontStyle,f=sU(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||K7,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),zD(l,e.transform),VD(l,n,e,t),t.animation&&bS(e,l,t),aa("text",e.id+"",l,void 0,r)}}function G4(e,t){if(e instanceof pn)return vY(e,t);if(e instanceof ga)return X5e(e,t);if(e instanceof km)return Z5e(e,t)}function J5e(e,t,n){var r=e.style;if(ELe(r)){var a=MLe(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=Cm(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]=aa("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[aa("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:b,"flood-color":p,"flood-opacity":v})]),i[a]=o}t.filter=Gw(o)}}function pY(e,t,n,r){var a=e[n],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(wG(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(SG(a))i="radialGradient",o.cx=on(a.x,.5),o.cy=on(a.y,.5),o.r=on(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=Nk(s[u].offset)*100+"%",d=s[u].color,h=Cm(d),v=h.color,p=h.opacity,g={offset:f};g["stop-color"]=v,p<1&&(g["stop-opacity"]=p),l.push(aa("stop",u+"",g))}var m=aa(i,"",o,l),b=FD(m),w=r.gradientCache,S=w[b];S||(S=r.zrId+"-g"+r.gradientIdx++,w[b]=S,o.id=S,r.defs[S]=aa(i,S,o,l)),t[n]=Gw(S)}function gY(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(_G(a)){var d=a.imageWidth,h=a.imageHeight,v=void 0,p=a.image;if(St(p)?v=p:dY(p)?v=p.src:hY(p)&&(v=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ba(d,g),Ba(h,g)}else if(d==null||h==null){var m=function(M,E){if(M){var I=M.elm,L=d||E.width,O=h||E.height;M.tag==="pattern"&&(u?(O=1,L/=i.width):c&&(L=1,O/=i.height)),M.attrs.width=L,M.attrs.height=O,I&&(I.setAttribute("width",L),I.setAttribute("height",O))}},b=VI(v,null,e,function(M){l||m(y,M),m(f,M)});b&&b.width&&b.height&&(d=d||b.width,h=h||b.height)}f=aa("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=Ft(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var w,S;l?w=S=1:u?(S=1,w=o.width/i.width):c?(w=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",w!=null&&!isNaN(w)&&(o.width=w),S!=null&&!isNaN(S)&&(o.height=S);var C=TG(a);C&&(o.patternTransform=C);var y=aa("pattern","",o,[f]),x=FD(y),T=r.patternCache,A=T[x];A||(A=r.zrId+"-p"+r.patternIdx++,T[x]=A,o.id=A,y=r.defs[A]=aa("pattern",A,o,[f])),t[n]=Gw(A)}}function Q5e(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]=aa("clipPath",i,o,[vY(e,n)])}t["clip-path"]=Gw(i)}function U4(e){return document.createTextNode(e)}function cf(e,t,n){e.insertBefore(t,n)}function K4(e,t){e.removeChild(t)}function j4(e,t){e.appendChild(t)}function mY(e){return e.parentNode}function yY(e){return e.nextSibling}function Vx(e,t){e.textContent=t}var Y4=58,eBe=120,tBe=aa("","");function AA(e){return e===void 0}function ws(e){return e!==void 0}function nBe(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 Xp(e,t){var n=e.key===t.key,r=e.tag===t.tag;return r&&n}function Fm(e){var t,n=e.children,r=e.tag;if(ws(r)){var a=e.elm=cY(r);if(HD(tBe,e),et(n))for(t=0;t<n.length;++t){var i=n[t];i!=null&&j4(a,Fm(i))}else ws(e.text)&&!Ot(e.text)&&j4(a,U4(e.text))}else e.elm=U4(e.text);return e.elm}function bY(e,t,n,r,a){for(;r<=a;++r){var i=n[r];i!=null&&cf(e,Fm(i),t)}}function x_(e,t,n,r){for(;n<=r;++n){var a=t[n];if(a!=null)if(ws(a.tag)){var i=mY(a.elm);K4(i,a.elm)}else K4(e,a.elm)}}function HD(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)!==eBe?r.setAttribute(n,o):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS($5e,n,o):n.charCodeAt(3)===Y4?r.setAttributeNS(B5e,n,o):n.charCodeAt(5)===Y4?r.setAttributeNS(uY,n,o):r.setAttribute(n,o))}for(n in a)n in i||r.removeAttribute(n)}}function rBe(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]:Xp(o,u)?(ih(o,u),o=t[++r],u=n[++a]):Xp(s,c)?(ih(s,c),s=t[--i],c=n[--l]):Xp(o,c)?(ih(o,c),cf(e,o.elm,yY(s.elm)),o=t[++r],c=n[--l]):Xp(s,u)?(ih(s,u),cf(e,s.elm,o.elm),s=t[--i],u=n[++a]):(AA(f)&&(f=nBe(t,r,i)),d=f[u.key],AA(d)?cf(e,Fm(u),o.elm):(h=t[d],h.tag!==u.tag?cf(e,Fm(u),o.elm):(ih(h,u),t[d]=void 0,cf(e,h.elm,o.elm))),u=n[++a]);(r<=i||a<=l)&&(r>i?(v=n[l+1]==null?null:n[l+1].elm,bY(e,v,n,a,l)):x_(e,t,r,i))}function ih(e,t){var n=t.elm=e.elm,r=e.children,a=t.children;e!==t&&(HD(e,t),AA(t.text)?ws(r)&&ws(a)?r!==a&&rBe(n,r,a):ws(a)?(ws(e.text)&&Vx(n,""),bY(n,null,a,0,a.length-1)):ws(r)?x_(n,r,0,r.length-1):ws(e.text)&&Vx(n,""):e.text!==t.text&&(ws(r)&&x_(n,r,0,r.length-1),Vx(n,t.text)))}function aBe(e,t){if(Xp(e,t))ih(e,t);else{var n=e.elm,r=mY(n);Fm(t),r!==null&&(cf(r,t.elm,yY(n)),x_(r,[e],0,0))}return t}var iBe=0,oBe=function(){function e(t,n,r){if(this.type="svg",this.refreshHover=q4(),this.configLayer=q4(),this.storage=n,this._opts=r=je({},r),this.root=t,this._id="zr"+iBe++,this._oldVNode=B4(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=cY("svg");HD(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",aBe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return G4(t,kA(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=kA(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var o=[],s=this._bgVNode=sBe(r,a,this._backgroundColor,i);s&&o.push(s);var l=t.compress?null:this._mainVNode=aa("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=at(_n(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(aa("defs","defs",{},u)),t.animation){var c=z5e(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=aa("style","stl",{},[],c);o.push(f)}}return B4(r,a,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},FD(this.renderToVNode({animation:on(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:on(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={};Q5e(d[m],b,n);var w=aa("g","clip-g-"+u++,b,[]);(s?s.children:r).push(w),i[o++]=w,s=w}l=d;var S=G4(f,n);S&&(s?s.children:r).push(S)}}},e.prototype.resize=function(t,n){var r=this._opts,a=this.root,i=this._viewport;if(t!=null&&(r.width=t),n!=null&&(r.height=n),a&&i&&(i.style.display="none",t=ph(a,0,r),n=ph(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(II(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=DLe(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},e}();function q4(e){return function(){}}function sBe(e,t,n,r){var a;if(n&&n!=="none")if(a=aa("rect","bg",{width:e,height:t,x:"0",y:"0",id:"0"}),CG(n))pY({fill:n},a.attrs,"fill",r);else if(II(n))gY({style:{fill:n},dirty:Er,getBoundingRect:function(){return{width:e,height:t}}},a.attrs,"fill",r);else{var i=Cm(n),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const lBe=oBe;function uBe(e){e.registerPainter("svg",lBe)}function X4(e,t,n){var r=Qo.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 cBe=function(e){Ne(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||t_,typeof n=="string"?o=X4(n,r,a):Ot(n)&&(o=n,n=o.id),i.id=n,i.dom=o;var s=o.style;return s&&(TI(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=X4("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 sn(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(o.length===0){var w=new sn(0,0,0,0);w.copy(b),o.push(w)}else{for(var S=!1,C=1/0,y=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(b)){var A=new sn(0,0,0,0);A.copy(T),A.union(b),o[x]=A,S=!0;break}else if(l){u.copy(b),u.union(T);var M=b.width*b.height,E=T.width*T.height,I=u.width*u.height,L=I-M-E;L<C&&(C=L,y=x)}}if(l&&(o[y].union(b),S=!0),!S){var w=new sn(0,0,0,0);w.copy(b),o.push(w)}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&Mi||!h)?d.getPrevPaintRect():null;v&&c(v);var p=h&&(d.__dirty&Mi||!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 w=void 0;if(vy(r)){var S=r.global||r.__width===m&&r.__height===b;w=S&&r.__canvasGradient||gA(o,r,{x:0,y:0,width:m,height:b}),r.__canvasGradient=w,r.__width=m,r.__height=b}else Z7(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,w=mA(o,r,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=w||r,o.fillRect(p,g,m,b),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,p,g,m,b),o.restore())}!a||u?v(0,0,s,l):a.length&&K(a,function(p){v(p.x*f,p.y*f,p.width*f,p.height*f)})},t}(wo);const zx=cBe;var Z4=1e5,jc=314159,nb=.01,fBe=.001;function dBe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function hBe(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 vBe=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=je({},r||{}),this.dpr=r.devicePixelRatio||t_,this._singleCanvas=i,this.root=t;var o=t.style;o&&(TI(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 zx(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[jc]=h,h.zlevel=jc,s.push(jc),this._domRoot=t}else{this._width=ph(t,0,r),this._height=ph(t,1,r);var u=this._domRoot=hBe(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(Z4)),i||(i=r.ctx,i.save()),Af(i,s,a,o===n-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Z4)},e.prototype.paintOne=function(t,n){_D(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;Lk(function(){l._paintList(t,n,r,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(jc).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),w=r?g.__startIndex:g.__drawIndex,S=!r&&g.incremental&&Date.now,C=S&&Date.now(),y=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,y,b);else if(w===g.__startIndex){var x=t[w];(!x.incremental||!x.notClear||r)&&g.clear(!1,y,b)}w===-1&&(console.error("For some unknown reason. drawIndex is -1"),w=g.__startIndex);var T,A=function(L){var O={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=w;T<g.__endIndex;T++){var z=t[T];if(z.__inHover&&(f=!0),a._doPaintEl(z,g,o,L,O,T===g.__endIndex-1),S){var F=Date.now()-C;if(F>15)break}}O.prevElClipPaths&&m.restore()};if(b)if(b.length===0)T=g.__endIndex;else for(var M=h.dpr,E=0;E<b.length;++E){var I=b[E];m.save(),m.beginPath(),m.rect(I.x*M,I.y*M,I.width*M,I.height*M),m.clip(),A(I),m.restore()}else m.save(),A(),m.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<i.length;v++)d(v);return Mn.wxa&&K(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,n,r,a,i,o){var s=n.ctx;if(r){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Af(s,t,i,o),t.setPrevPaintRect(l))}else Af(s,t,i,o)},e.prototype.getLayer=function(t,n){this._singleCanvas&&!this._needsManuallyCompositing&&(t=jc);var r=this._layers[t];return r||(r=new zx("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?rn(r,this._layerConfig[t],!0):this._layerConfig[t-nb]&&rn(r,this._layerConfig[t-nb],!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]&&dBe(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+fBe,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?nb:0),this._needsManuallyCompositing),c.__builtin__||Bw("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&Mi&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,K(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?rn(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+nb){var o=this._layers[i];rn(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(cn(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=ph(i,0,a),n=ph(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(jc).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[jc].dom;var n=new zx("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];Af(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 pBe=vBe;function gBe(e){e.registerPainter("canvas",pBe)}var mBe=function(e){Ne(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 js(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var r=new Gt,a=Nr("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=Nr(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}(or);const yBe=mBe;function lv(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=ov(e,t,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o<n.length;o++)i.push(ov(e,t,n[o]));return i.join(" ")}}function _Y(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!et(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 bBe=function(e){Ne(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=Nr(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=_Be,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(){xl(this.childAt(0))},t.prototype.downplay=function(){Tl(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):Pn(d,h,s,r),rs(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,cr(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),w=b.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=w.get("focus"),h=w.get("blurScope"),v=w.get("disabled"),p=sa(b),g=w.getShallow("scale"),m=b.getShallow("cursor")}var S=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var C=vd(n.getItemVisual(r,"symbolOffset"),a);C&&(s.x=C[0],s.y=C[1]),m&&s.attr("cursor",m);var y=n.getItemVisual(r,"style"),x=y.fill;if(s instanceof ga){var T=s.style;s.useStyle(je({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},y))}else s.__isEmptyBrush?s.useStyle(je({},y)):s.useStyle(y),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=n.getItemVisual(r,"liftZ"),M=this._z2;A!=null?M==null&&(this._z2=s.z2,s.z2+=A):M!=null&&(s.z2=M,this._z2=null);var E=o&&o.useNameLabel;Ta(s,p,{labelFetcher:l,labelDataIndex:r,defaultText:I,inheritColor:x,defaultOpacity:y.opacity});function I(z){return E?n.getName(z):lv(n,z)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var O=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*O,L.scaleY=this._sizeY*O,this.setSymbolScale(1),Ar(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=Jt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&ju(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();ju(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},t.getSymbolSize=function(n,r){return Bv(n.getItemVisual(r,"symbolSize"))},t}(Gt);function _Be(e,t){this.parent.drift(e,t)}const Iy=bBe;function Hx(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 J4(e){return e!=null&&!Ot(e)&&(e={isIgnore:e}),e||{}}function Q4(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:sa(t),cursorStyle:t.get("cursor")}}var wBe=function(){function e(t){this.group=new Gt,this._SymbolCtor=t||Iy}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=J4(n);var r=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=Q4(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(Hx(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(!Hx(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):Pn(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=Q4(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=J4(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(Hx(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){uc(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 Dy=wBe;function wY(e,t,n){var r=e.getBaseAxis(),a=e.getOtherAxis(r),i=SBe(a,n),o=r.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=at(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return Al(t,f[0])&&(d=!0,f[0]=h),Al(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 SBe(e,t){var n=0,r=e.scale.getExtent();return t==="start"?n=r[0]:t==="end"?n=r[1]:Dn(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function SY(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 CBe(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 xBe(e,t,n,r,a,i,o,s){for(var l=CBe(e,t),u=[],c=[],f=[],d=[],h=[],v=[],p=[],g=wY(a,t,o),m=e.getLayout("points")||[],b=t.getLayout("points")||[],w=0;w<l.length;w++){var S=l[w],C=!0,y=void 0,x=void 0;switch(S.cmd){case"=":y=S.idx*2,x=S.idx1*2;var T=m[y],A=m[y+1],M=b[x],E=b[x+1];(isNaN(T)||isNaN(A))&&(T=M,A=E),u.push(T,A),c.push(M,E),f.push(n[y],n[y+1]),d.push(r[x],r[x+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,O=a.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);x=I*2,u.push(O[0],O[1]),c.push(b[x],b[x+1]);var z=SY(g,a,t,I);f.push(z[0],z[1]),d.push(r[x],r[x+1]),p.push(t.getRawIndex(I));break;case"-":C=!1}C&&(h.push(S),v.push(v.length))}v.sort(function(le,ce){return p[le]-p[ce]});for(var F=u.length,$=Is(F),V=Is(F),P=Is(F),G=Is(F),j=[],w=0;w<v.length;w++){var J=v[w],ne=w*2,ve=J*2;$[ne]=u[ve],$[ne+1]=u[ve+1],V[ne]=c[ve],V[ne+1]=c[ve+1],P[ne]=f[ve],P[ne+1]=f[ve+1],G[ne]=d[ve],G[ne+1]=d[ve+1],j[w]=h[J]}return{current:$,next:V,stackedOnCurrent:P,stackedOnNext:G,status:j}}var nu=Math.min,ru=Math.max;function Ff(e,t){return isNaN(e)||isNaN(t)}function EA(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(Ff(m,b)){if(l){p+=i;continue}break}if(p===n)e[i>0?"moveTo":"lineTo"](m,b),f=m,d=b;else{var w=m-u,S=b-c;if(w*w+S*S<.5){p+=i;continue}if(o>0){for(var C=p+i,y=t[C*2],x=t[C*2+1];y===m&&x===b&&g<r;)g++,C+=i,p+=i,y=t[C*2],x=t[C*2+1],m=t[p*2],b=t[p*2+1],w=m-u,S=b-c;var T=g+1;if(l)for(;Ff(y,x)&&T<r;)T++,C+=i,y=t[C*2],x=t[C*2+1];var A=.5,M=0,E=0,I=void 0,L=void 0;if(T>=r||Ff(y,x))h=m,v=b;else{M=y-u,E=x-c;var O=m-u,z=y-m,F=b-c,$=x-b,V=void 0,P=void 0;if(s==="x"){V=Math.abs(O),P=Math.abs(z);var G=M>0?1:-1;h=m-G*V*o,v=b,I=m+G*P*o,L=b}else if(s==="y"){V=Math.abs(F),P=Math.abs($);var j=E>0?1:-1;h=m,v=b-j*V*o,I=m,L=b+j*P*o}else V=Math.sqrt(O*O+F*F),P=Math.sqrt(z*z+$*$),A=P/(P+V),h=m-M*o*(1-A),v=b-E*o*(1-A),I=m+M*o*A,L=b+E*o*A,I=nu(I,ru(y,m)),L=nu(L,ru(x,b)),I=ru(I,nu(y,m)),L=ru(L,nu(x,b)),M=I-m,E=L-b,h=m-M*V/P,v=b-E*V/P,h=nu(h,ru(u,m)),v=nu(v,ru(c,b)),h=ru(h,nu(u,m)),v=ru(v,nu(c,b)),M=m-h,E=b-v,I=m+M*P/V,L=b+E*P/V}e.bezierCurveTo(f,d,h,v,m,b),f=I,d=L}else e.lineTo(m,b)}u=m,c=b,p+=i}return g}var CY=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),TBe=function(e){Ne(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 CY},t.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&Ff(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Ff(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=EA(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=Ws.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,w=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],v=i[f++],w=u?(n-s)/(h-s):(n-l)/(v-l),w<=1&&w>=0){var S=u?(v-l)*w+l:(h-s)*w+s;return u?[n,S]:[S,n]}s=h,l=v;break;case o.C:h=i[f++],v=i[f++],p=i[f++],g=i[f++],m=i[f++],b=i[f++];var C=u?J1(s,h,p,m,n,c):J1(l,v,g,b,n,c);if(C>0)for(var y=0;y<C;y++){var x=c[y];if(x<=1&&x>=0){var S=u?ea(l,v,g,b,x):ea(s,h,p,m,x);return u?[n,S]:[S,n]}}s=m,l=b;break}}},t}(pn),kBe=function(e){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(CY),xY=function(e){Ne(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 kBe},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&&Ff(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Ff(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=EA(n,a,o,s,s,1,r.smooth,l,r.connectNulls);EA(n,i,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,n.closePath()}},t}(pn);function TY(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 En({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=It(a)?function(g){a(g,f)}:null;cr(f,{shape:{width:l,height:u,x:o,y:s}},n,null,r,p)}return f}function kY(e,t,n){var r=e.getArea(),a=Tr(r.r0,1),i=Tr(r.r,1),o=new ii({shape:{cx:Tr(e.cx,1),cy:Tr(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,cr(o,{shape:{endAngle:r.endAngle,r:i}},n)}return o}function _S(e,t,n,r,a){if(e){if(e.type==="polar")return kY(e,t,n);if(e.type==="cartesian2d")return TY(e,t,n,r,a)}else return null;return null}function pd(e,t){return e.type===t}function e5(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function t5(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 n5(e,t){var n=t5(e),r=n[0],a=n[1],i=t5(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 r5(e){return Dn(e)?e:e?.5:0}function ABe(e,t,n){if(!n.valueDim)return[];for(var r=t.count(),a=Is(r*2),i=0;i<r;i++){var o=SY(n,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function au(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 EBe(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=MI(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 MBe(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=at(i.stops,function(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=EBe(u,a==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,p=d[0].coord-v,g=d[h-1].coord+v,m=g-p;if(m<.001)return"transparent";K(d,function(w){w.offset=(w.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 kv(0,0,0,0,d,!0);return b[a]=p,b[a+"2"]=g,b}}}function IBe(e,t,n){var r=e.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&DBe(i,t))){var o=t.mapDimension(i.dim),s={};return K(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function DBe(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(Iy.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>r)return!1;return!0}function LBe(e,t){return isNaN(e)||isNaN(t)}function PBe(e){for(var t=e.length/2;t>0&&LBe(e[t*2-2],e[t*2-1]);t--);return t-1}function a5(e,t){return[e[t*2],e[t*2+1]]}function RBe(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 AY(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<ai.length;t++)if(e.get([ai[t],"endLabel","show"]))return!0;return!1}function Wx(e,t,n,r){if(pd(t,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=AY(r)?function(h,v){e._endLabelOnDuring(h,v,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=TY(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 kY(t,n,r)}function OBe(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){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new Gt,r=new Dy;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(),w=!c.isEmpty(),S=c.get("origin"),C=wY(o,l,S),y=w&&ABe(o,l,C),x=n.get("showSymbol"),T=n.get("connectNulls"),A=x&&!d&&IBe(n,l,o),M=this._data;M&&M.eachItemGraphicEl(function(ce,ue){ce.__temp&&(s.remove(ce),M.setItemGraphicEl(ue,null))}),x||v.remove(),s.add(m);var E=d?!1:n.get("step"),I;o&&o.getArea&&n.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var L=MBe(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&E===this._step))x&&v.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(ce){return[f[ce*2],f[ce*2+1]]}}),b&&this._initSymbolLabelAnimation(l,o,I),E&&(f=au(f,o,E,T),y&&(y=au(y,o,E,T))),p=this._newPolyline(f),w?g=this._newPolygon(f,y):g&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,Jf(L)),m.setClipPath(Wx(this,o,!0,n));else{w&&!g?g=this._newPolygon(f,y):g&&!w&&(m.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,Jf(L));var O=m.getClipPath();if(O){var z=Wx(this,o,!1,n);cr(O,{shape:z.shape},n)}else m.setClipPath(Wx(this,o,!0,n));x&&v.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(ce){return[f[ce*2],f[ce*2+1]]}}),(!e5(this._stackedOnPoints,y)||!e5(this._points,f))&&(b?this._doUpdateAnimation(l,y,o,a,E,S,T):(E&&(f=au(f,o,E,T),y&&(y=au(y,o,E,T))),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:y})))}var F=n.getModel("emphasis"),$=F.get("focus"),V=F.get("blurScope"),P=F.get("disabled");if(p.useStyle(Lt(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),xa(p,n,"lineStyle"),p.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var G=p.getState("emphasis").style;G.lineWidth=+p.style.lineWidth+1}Jt(p).seriesIndex=n.seriesIndex,Ar(p,$,V,P);var j=r5(n.get("smooth")),J=n.get("smoothMonotone");if(p.setShape({smooth:j,smoothMonotone:J,connectNulls:T}),g){var ne=l.getCalculationInfo("stackedOnSeries"),ve=0;g.useStyle(Lt(c.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ne&&(ve=r5(ne.get("smooth"))),g.setShape({smooth:j,stackedOnSmooth:ve,smoothMonotone:J,connectNulls:T}),xa(g,n,"areaStyle"),Jt(g).seriesIndex=n.seriesIndex,Ar(g,$,V,P)}var le=function(ce){i._changePolyState(ce)};l.eachItemGraphicEl(function(ce){ce&&(ce.onHoverStateChange=le)}),this._polyline.onHoverStateChange=le,this._data=l,this._coordSys=o,this._stackedOnPoints=y,this._points=f,this._step=E,this._valueOrigin=S,n.get("triggerLineEvent")&&(this.packEventData(n,p),g&&this.packEventData(n,g))},t.prototype.packEventData=function(n,r){Jt(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=qf(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 Iy(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 Xn.prototype.highlight.call(this,n,r,a,i)},t.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=qf(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 Xn.prototype.downplay.call(this,n,r,a,i)},t.prototype._changePolyState=function(n){var r=this._polygon;a_(this._polyline,n),r&&a_(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new TBe({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 xY({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");It(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=It(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,w=void 0;if(a)if(o){var S=a,C=r.pointToCoord(g);i?(m=S.startAngle,b=S.endAngle,w=-C[1]/180*Math.PI):(m=S.r0,b=S.r,w=C[0])}else{var y=a;i?(m=y.x,b=y.x+y.width,w=h.x):(m=y.y+y.height,b=y.y,w=h.y)}var x=b===m?0:(w-m)/(b-m);l&&(x=1-x);var T=It(f)?f(v):c*x+d,A=p.getSymbolPath(),M=A.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(AY(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 An({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=PBe(l);c>=0&&(Ta(s,sa(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?_Y(o,h):lv(o,f)},enableTextSetter:!0},OBe(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,w=r.shape,S=b?m?w.x:w.y+w.height:m?w.x+w.width:w.y,C=(m?p:0)*(b?-1:1),y=(m?0:-p)*(b?-1:1),x=m?"x":"y",T=RBe(f,S,x),A=T.range,M=A[1]-A[0],E=void 0;if(M>=1){if(M>1&&!h){var I=a5(f,A[0]);u.attr({x:I[0]+C,y:I[1]+y}),o&&(E=d.getRawValue(A[0]))}else{var I=c.getPointOn(S,x);I&&u.attr({x:I[0]+C,y:I[1]+y});var L=d.getRawValue(A[0]),O=d.getRawValue(A[1]);o&&(E=UG(a,v,L,O,T.t))}i.lastFrameIndex=A[0]}else{var z=n===1||i.lastFrameIndex>0?A[0]:0,I=a5(f,z);o&&(E=d.getRawValue(z)),u.attr({x:I[0]+C,y:I[1]+y})}if(o){var F=Iv(u);typeof F.setLabelText=="function"&&F.setLabelText(E)}}},t.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=xBe(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=au(d.current,a,o,l),v=au(d.stackedOnCurrent,a,o,l),p=au(d.next,a,o,l),g=au(d.stackedOnNext,a,o,l)),n5(h,p)>3e3||c&&n5(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(),Pn(u,m,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Pn(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],w=d.status,S=0;S<w.length;S++){var C=w[S].cmd;if(C==="="){var y=n.getItemGraphicEl(w[S].idx1);y&&b.push({el:y,ptIdx:S})}}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 A=b[T].el,M=b[T].ptIdx*2;A.x=x[M],A.y=x[M+1],A.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}(Xn);const $Be=NBe;function Ly(e,t){return{seriesType:e,plan:Nv(),reset:function(n){var r=n.getData(),a=n.coordinateSystem,i=n.pipelineContext,o=t||i.large;if(a){var s=at(a.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");Al(r,s[0])&&(s[0]=u),Al(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&&Is(p*l),m=[],b=[],w=h.start,S=0;w<h.end;w++){var C=void 0;if(l===1){var y=c.get(f,w);C=a.dataToPoint(y,null,b)}else m[0]=c.get(f,w),m[1]=c.get(d,w),C=a.dataToPoint(m,null,b);o?(g[S++]=C[0],g[S++]=C[1]):v.setItemLayout(w,C.slice())}o&&v.setLayout("points",g)}}}}}}var BBe={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]}},FBe=function(e){return Math.round(e.length/2)};function EY(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;St(i)?v=BBe[i]:It(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,v,FBe))}}}}}function VBe(e){e.registerChartView($Be),e.registerSeriesModel(yBe),e.registerLayout(Ly("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,EY("line"))}var MY=function(e){Ne(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 js(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),s=i.dataToPoint(o);if(a)K(i.getAxes(),function(d,h){if(d.type==="category"&&r!=null){var v=d.getTicksCoords(),p=o[h],g=r[h]==="x1"||r[h]==="y1";if(g&&(p+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var m=void 0,b=void 0,w=1,S=0;S<v.length;S++){var C=v[S].coord,y=S===v.length-1?v[S-1].tickValue+w:v[S].tickValue;if(y===p){b=C;break}else if(y<p)m=C;else if(m!=null&&y>p){b=(C+m)/2;break}S===1&&(w=y-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}(or);or.registerClass(MY);const T_=MY;var zBe=function(e){Ne(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 js(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=cc(T_.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}(T_);const HBe=zBe;var WBe=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}(),GBe=function(e){Ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new WBe},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}(pn);const k_=GBe;function UBe(e,t){t=t||{};var n=t.isRoundCap;return function(r,a,i){var o=a.position;if(!o||o instanceof Array)return n_(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,w=Math.cos,S=Math.sin,C=c+d*w(p),y=f+d*S(p),x="left",T="top";switch(s){case"startArc":C=c+(h-l)*w(m),y=f+(h-l)*S(m),x="center",T="top";break;case"insideStartArc":C=c+(h+l)*w(m),y=f+(h+l)*S(m),x="center",T="bottom";break;case"startAngle":C=c+v*w(p)+rb(p,l+b,!1),y=f+v*S(p)+ab(p,l+b,!1),x="right",T="middle";break;case"insideStartAngle":C=c+v*w(p)+rb(p,-l+b,!1),y=f+v*S(p)+ab(p,-l+b,!1),x="left",T="middle";break;case"middle":C=c+v*w(m),y=f+v*S(m),x="center",T="middle";break;case"endArc":C=c+(d+l)*w(m),y=f+(d+l)*S(m),x="center",T="bottom";break;case"insideEndArc":C=c+(d-l)*w(m),y=f+(d-l)*S(m),x="center",T="top";break;case"endAngle":C=c+v*w(g)+rb(g,l+b,!0),y=f+v*S(g)+ab(g,l+b,!0),x="left",T="middle";break;case"insideEndAngle":C=c+v*w(g)+rb(g,-l+b,!0),y=f+v*S(g)+ab(g,-l+b,!0),x="right",T="middle";break;default:return n_(r,a,i)}return r=r||{},r.x=C,r.y=y,r.align=x,r.verticalAlign=T,r}}function KBe(e,t,n,r){if(Dn(r)){e.setTextConfig({rotation:r});return}else if(et(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 rb(e,t,n){return t*Math.sin(e)*(n?-1:1)}function ab(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Ef(e,t,n){var r=e.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;et(r)||(r=[r,r,r,r]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:at(r,function(i){return ts(i,a)})}}var Gx=Math.max,Ux=Math.min;function jBe(e,t){var n=e.getArea&&e.getArea();if(pd(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 YBe=function(e){Ne(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){uc(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=qBe(n,u);h&&this._enableRealtimeSort(h,s,a);var v=n.get("clip",!0)||h,p=jBe(u,s);o.removeClipPath();var g=n.get("roundCap",!0),m=n.get("showBackground",!0),b=n.getModel("backgroundStyle"),w=b.get("borderRadius")||0,S=[],C=this._backgroundEls,y=i&&i.isInitSort,x=i&&i.type==="changeAxisOrder";function T(E){var I=ib[u.type](s,E),L=nFe(u,f,I);return L.useStyle(b.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",w):L.setShape("cornerRadius",w),S[E]=L,L}s.diff(l).add(function(E){var I=s.getItemModel(E),L=ib[u.type](s,E,I);if(m&&T(E),!(!s.hasValue(E)||!u5[u.type](L))){var O=!1;v&&(O=i5[u.type](p,L));var z=o5[u.type](n,s,E,L,f,d,c.model,!1,g);h&&(z.forceLabelAnimation=!0),c5(z,s,E,I,L,n,f,u.type==="polar"),y?z.attr({shape:L}):h?s5(h,d,z,L,E,f,!1,!1):cr(z,{shape:L},n,E),s.setItemGraphicEl(E,z),o.add(z),z.ignore=O}}).update(function(E,I){var L=s.getItemModel(E),O=ib[u.type](s,E,L);if(m){var z=void 0;C.length===0?z=T(I):(z=C[I],z.useStyle(b.getItemStyle()),u.type==="cartesian2d"?z.setShape("r",w):z.setShape("cornerRadius",w),S[E]=z);var F=ib[u.type](s,E),$=DY(f,F,u);Pn(z,{shape:$},d,E)}var V=l.getItemGraphicEl(I);if(!s.hasValue(E)||!u5[u.type](O)){o.remove(V);return}var P=!1;if(v&&(P=i5[u.type](p,O),P&&o.remove(V)),V?rs(V):V=o5[u.type](n,s,E,O,f,d,c.model,!!V,g),h&&(V.forceLabelAnimation=!0),x){var G=V.getTextContent();if(G){var j=Iv(G);j.prevValue!=null&&(j.prevValue=j.value)}}else c5(V,s,E,L,O,n,f,u.type==="polar");y?V.attr({shape:O}):h?s5(h,d,V,O,E,f,!0,x):Pn(V,{shape:O},n,E,null),s.setItemGraphicEl(E,V),V.ignore=P,o.add(V)}).remove(function(E){var I=l.getItemGraphicEl(E);I&&Mm(I,n,E)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new Gt);A.removeAll();for(var M=0;M<S.length;++M)A.add(S[M]);o.add(A),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(n,r,a){this._clear(),d5(n,this.group),this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),d5(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&_S(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:at(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){Mm(i,n,Jt(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}(Xn),i5={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=Gx(t.x,e.x),s=Ux(t.x+t.width,a),l=Gx(t.y,e.y),u=Ux(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=Ux(t.r,e.r),i=Gx(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}},o5={cartesian2d:function(e,t,n,r,a,i,o,s,l){var u=new En({shape:je({},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?k_:ii,c=new u({shape:r,z2:1});c.name="item";var f=IY(a);if(c.calculateTextPosition=UBe(f,{isRoundCap:u===k_}),i){var d=c.shape,h=a?"r":"endAngle",v={};d[h]=a?r.r0:r.startAngle,v[h]=r[h],(s?Pn:cr)(c,{shape:v},i)}return c}};function qBe(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 s5(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?Pn:cr)(n,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?Pn:cr)(n,{shape:u},c,a)}function l5(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var XBe=["x","y","width","height"],ZBe=["cx","cy","r","startAngle","endAngle"],u5={cartesian2d:function(e){return!l5(e,XBe)},polar:function(e){return!l5(e,ZBe)}},ib={cartesian2d:function(e,t,n){var r=e.getItemLayout(t),a=n?QBe(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 JBe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function IY(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 c5(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=Ef(r.getModel("itemStyle"),c,!0);je(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=sa(r);Ta(e,v,{labelFetcher:i,labelDataIndex:n,defaultText:lv(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,KBe(e,g==="outside"?h:g,IY(o),r.get(["label","rotate"]))}GU(p,v,i.getRawValue(n),function(b){return _Y(t,b)});var m=r.getModel(["emphasis"]);Ar(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),xa(e,r),JBe(a)&&(e.style.fill="none",e.style.stroke="none",K(e.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function QBe(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 eFe=function(){function e(){}return e}(),f5=function(e){Ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new eFe},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}(pn);function d5(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 f5({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 f5({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")),Jt(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",h5),f.on("mousemove",h5)),n&&n.push(f)}var h5=hS(function(e){var t=this,n=tFe(t,e.offsetX,e.offsetY);Jt(t).dataIndex=n>=0?n:null},30,!1);function tFe(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 DY(e,t,n){if(pd(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 nFe(e,t,n){var r=e.type==="polar"?ii:En;return new r({shape:DY(t,n,e),silent:!0,z2:0})}const rFe=YBe;function aFe(e){e.registerChartView(rFe),e.registerSeriesModel(HBe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Zt(Oj,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Nj("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,EY("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 ob=Math.PI*2,v5=Math.PI/180;function LY(e,t){return Yr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function PY(e,t){var n=LY(e,t),r=e.get("center"),a=e.get("radius");et(a)||(a=[0,a]);var i=yt(n.width,t.getWidth()),o=yt(n.height,t.getHeight()),s=Math.min(i,o),l=yt(a[0],s/2),u=yt(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 et(r)||(r=[r,r]),c=yt(r[0],i)+n.x,f=yt(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function iFe(e,t,n){t.eachSeriesByType(e,function(r){var a=r.getData(),i=a.mapDimension("value"),o=LY(r,n),s=PY(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*v5,h=r.get("minAngle")*v5,v=0;a.each(i,function(M){!isNaN(M)&&v++});var p=a.getSum(i),g=Math.PI/(p||v)*2,m=r.get("clockwise"),b=r.get("roseType"),w=r.get("stillShowZeroSum"),S=a.getDataExtent(i);S[0]=0;var C=ob,y=0,x=d,T=m?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(M,E){var I;if(isNaN(M)){a.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:b?NaN:c});return}b!=="area"?I=p===0&&w?g:M*g:I=ob/v,I<h?(I=h,C-=h):y+=M;var L=x+T*I;a.setItemLayout(E,{angle:I,startAngle:x,endAngle:L,clockwise:m,cx:l,cy:u,r0:f,r:b?Vn(M,S,[f,c]):c}),x=L}),C<ob&&v)if(C<=.001){var A=ob/v;a.each(i,function(M,E){if(!isNaN(M)){var I=a.getItemLayout(E);I.angle=A,I.startAngle=d+T*E*A,I.endAngle=d+T*(E+1)*A}})}else g=C/y,x=d,a.each(i,function(M,E){if(!isNaN(M)){var I=a.getItemLayout(E),L=I.angle===h?h:M*g;I.startAngle=x,I.endAngle=x+T*L,x+=T*L}})})}function Py(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 oFe=Math.PI/180;function p5(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 w=p.list[b],S=Math.abs(w.label.y-n),C=r+w.len,y=C*C,x=Math.sqrt((1-Math.abs(S*S/m))*y),T=t+(x+w.len2)*a,A=T-w.label.x,M=w.targetTextWidth-A*a;RY(w,M,!0),w.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 w=p[b],S=w.label.y>n?m:g,C=Math.abs(w.label.y-n);if(C>=S.maxY){var y=w.label.x-t-w.len2*a,x=r+w.len,T=Math.abs(y)<x?Math.sqrt(C*C/(1-y*y/x/x)):x;S.rB=T,S.maxY=C}S.list.push(w)}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}aY(e,l,l+o)&&f(e)}function sFe(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;Kx(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(!Kx(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,RY(v,g)}}p5(u,t,n,r,1,a,i,o,s,f),p5(l,t,n,r,-1,a,i,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!Kx(v)&&v.linePoints){var h=v.label,p=v.linePoints,m=v.labelAlignTo==="edge",b=h.style.padding,w=b?b[1]+b[3]:0,S=h.style.backgroundColor?0:w,C=v.rect.width+S,y=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]+y),p[1][1]=p[2][1]=h.y}}}function RY(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 Kx(e){return e.position==="center"}function lFe(e){var t=e.getData(),n=[],r,a,i=!1,o=(e.get("minShowLabelAngle")||0)*oFe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(y){y.ignore=!0}function v(y){if(!y.ignore)return!0;for(var x in y.states)if(y.states[x].ignore===!1)return!0;return!1}t.each(function(y){var x=t.getItemGraphicEl(y),T=x.shape,A=x.getTextContent(),M=x.getTextGuideLine(),E=t.getItemModel(y),I=E.getModel("label"),L=I.get("position")||E.get(["emphasis","label","position"]),O=I.get("distanceToLabelLine"),z=I.get("alignTo"),F=yt(I.get("edgeDistance"),u),$=I.get("bleedMargin"),V=E.getModel("labelLine"),P=V.get("length");P=yt(P,u);var G=V.get("length2");if(G=yt(G,u),Math.abs(T.endAngle-T.startAngle)<o){K(A.states,h),A.ignore=!0,M&&(K(M.states,h),M.ignore=!0);return}if(v(A)){var j=(T.startAngle+T.endAngle)/2,J=Math.cos(j),ne=Math.sin(j),ve,le,ce,ue;r=T.cx,a=T.cy;var Q=L==="inside"||L==="inner";if(L==="center")ve=T.cx,le=T.cy,ue="center";else{var _e=(Q?(T.r+T.r0)/2*J:T.r*J)+r,Pe=(Q?(T.r+T.r0)/2*ne:T.r*ne)+a;if(ve=_e+J*3,le=Pe+ne*3,!Q){var pe=_e+J*(P+l-T.r),Y=Pe+ne*(P+l-T.r),ie=pe+(J<0?-1:1)*G,me=Y;z==="edge"?ve=J<0?c+F:c+u-F:ve=ie+(J<0?-O:O),le=me,ce=[[_e,Pe],[pe,Y],[ie,me]]}ue=Q?"center":z==="edge"?J>0?"right":"left":J>0?"left":"right"}var De=Math.PI,Be=0,Oe=I.get("rotate");if(Dn(Oe))Be=Oe*(De/180);else if(L==="center")Be=0;else if(Oe==="radial"||Oe===!0){var de=J<0?-j+De:-j;Be=de}else if(Oe==="tangential"&&L!=="outside"&&L!=="outer"){var we=Math.atan2(J,ne);we<0&&(we=De*2+we);var Se=ne>0;Se&&(we=De+we),Be=we-De}if(i=!!Be,A.x=ve,A.y=le,A.rotation=Be,A.setStyle({verticalAlign:"middle"}),Q){A.setStyle({align:ue});var Ge=A.states.select;Ge&&(Ge.x+=A.x,Ge.y+=A.y)}else{var Ie=A.getBoundingRect().clone();Ie.applyTransform(A.getComputedTransform());var Ee=(A.style.margin||0)+2.1;Ie.y-=Ee/2,Ie.height+=Ee,n.push({label:A,labelLine:M,position:L,len:P,len2:G,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new an(J,ne),linePoints:ce,textAlign:ue,labelDistance:O,labelAlignTo:z,edgeDistance:F,bleedMargin:$,rect:Ie,unconstrainedWidth:Ie.width,labelStyleWidth:A.style.width})}x.setTextConfig({inside:Q})}}),!i&&e.get("avoidLabelOverlap")&&sFe(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,w=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:g.textAlign}),w&&(K(m.states,h),m.ignore=!0);var S=m.states.select;S&&(S.x+=m.x,S.y+=m.y)}if(b){var C=g.linePoints;w||!C?(K(b.states,h),b.ignore=!0):(tY(C,g.minTurnAngle),w5e(C,g.surfaceNormal,g.maxSurfaceAngle),b.setShape({points:C}),m.__hostTarget.textGuideLineConfig={anchor:new an(C[0][0],C[0][1])})}}}var uFe=function(e){Ne(t,e);function t(n,r,a){var i=e.call(this)||this;i.z2=2;var o=new An;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=je(Ef(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?(cr(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,cr(o,{shape:{r:c.r}},s,r)):a!=null?(o.setShape({startAngle:a,endAngle:a}),cr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(o.shape.endAngle=c.startAngle,Pn(o,{shape:{endAngle:c.endAngle}},s,r))}else rs(o),Pn(o,{shape:f},s,r);o.useStyle(n.getItemVisual(r,"style")),xa(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=je({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Ef(u.getModel("itemStyle"),c)),je(o.ensureState("select"),{x:p,y:g,shape:Ef(l.getModel(["select","itemStyle"]),c)}),je(o.ensureState("blur"),{shape:Ef(l.getModel(["blur","itemStyle"]),c)});var b=o.getTextGuideLine(),w=o.getTextContent();b&&je(b.ensureState("select"),{x:p,y:g}),je(w.ensureState("select"),{x:p,y:g}),Ar(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;Ta(i,sa(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 li,this.setTextGuideLine(h)),$D(this,BD(o),{stroke:u,opacity:Yo(s.get(["lineStyle","opacity"]),c,1)})}},t}(ii),cFe=function(e){Ne(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 ii({shape:PY(n,a)});d.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new uFe(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);Mm(v,n,h)}).execute(),lFe(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}(Xn);const fFe=cFe;function zv(e,t,n){t=et(t)&&{coordDimensions:t}||je({encodeDefine:e.getEncode()},t);var r=e.getSource(),a=Fv(r,t).dimensions,i=new Oa(a,e);return i.initData(r,n),i}var dFe=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 Ry=dFe;var hFe=Ln(),vFe=function(e){Ne(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 Ry(Ct(this.getData,this),Ct(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return zv(this,{coordDimensions:["value"],encodeDefaulter:Zt(lD,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),a=hFe(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=NG(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){Yf(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}(or);const pFe=vFe;function gFe(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!(Dn(o)&&!isNaN(o)&&o<0)})}}}function mFe(e){e.registerChartView(fFe),e.registerSeriesModel(pFe),qK("pie",e.registerAction),e.registerLayout(Zt(iFe,"pie")),e.registerProcessor(Py("pie")),e.registerProcessor(gFe("pie"))}var yFe=function(e){Ne(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 js(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}(or);const bFe=yFe;var OY=4,_Fe=function(){function e(){}return e}(),wFe=function(e){Ne(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 _Fe},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]<OY,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 sn(l-o/2,u-s/2,c-l+o,f-u+s)}return n},t}(pn),SFe=function(){function e(){this.group=new Gt}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 wFe({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=Nr(n.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<OY;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=Jt(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 CFe=SFe;var xFe=function(e){Ne(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=Ly("").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 CFe:new Dy,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}(Xn);const TFe=xFe;var kFe=function(e){Ne(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}(kn);const AFe=kFe;var MA=function(e){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Hr).models[0]},t.type="cartesian2dAxis",t}(kn);Ir(MA,Vv);var NY={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)"]}}},EFe=rn({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},NY),WD=rn({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}}},NY),MFe=rn({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},WD),IFe=Lt({logBase:10},WD);const $Y={category:EFe,value:WD,time:MFe,log:IFe};var DFe={value:1,category:1,time:1,log:1};function uv(e,t,n,r){K(DFe,function(a,i){var o=rn(rn({},$Y[i],!0),r,!0),s=function(l){Ne(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=Lm(this),h=d?Lv(c):{},v=f.getTheme();rn(c,v.get(i+"Axis")),rn(c,this.getDefaultOption()),c.type=g5(c),d&&Yu(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=wA.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",g5)}function g5(e){return e.type||(e.data?"category":"value")}var LFe=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 at(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),zn(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 PFe=LFe;var IA=["x","y"];function m5(e){return e.type==="interval"||e.type==="time"}var RFe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=IA,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!m5(n)||!m5(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=fd([],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 sn(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 pa(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 pa(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 sn(a,i,o,s)},t}(PFe),OFe=function(e){Ne(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}(To);const NFe=OFe;function DA(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),na(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 y5(e){return e.get("coordinateSystem")==="cartesian2d"}function b5(e){var t={xAxisModel:null,yAxisModel:null};return K(t,function(n,r){var a=r.replace(/Model$/,""),i=e.getReferringComponents(a,Hr).models[0];t[r]=i}),t}var jx=Math.log;function BY(e,t,n){var r=qu.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=Wj(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=jx(e.base);u=[jx(u[0])/d,jx(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=Px(v),g=u[0]+v*o;else if(f)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=Px(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=Px(v));var b=v*o;g=Math.ceil(u[1]/v)*v,p=Tr(g-b),p<0&&u[0]>=0?(p=0,g=Tr(b)):g>0&&u[1]<=0&&(g=0,p=-Tr(b))}var w=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;r.setExtent.call(e,p+v*w,g+v*S),r.setInterval.call(e,v),(w||S)&&r.setNiceExtent.call(e,p+v,g-v)}var $Fe=function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=IA,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=_n(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;SA(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(Qf(p,v),SA(p)&&(s=h))}c.length&&(s||(s=c.pop(),Qf(s.scale,s.model)),K(c,function(g){BY(g.scale,g.model,s.scale)}))}}a(r.x),a(r.y);var i={};K(r.x,function(o){_5(r,"y",o,i)}),K(r.y,function(o){_5(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=Yr(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(K(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=$4e(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),K(this._coordsList,function(u){u.calcAffineTransform()});function l(){K(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),BFe(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]}Ot(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",Hr).models[0],a=t.yAxisModel||n&&n.getReferringComponents("yAxis",Hr).models[0],i=t.gridModel,o=this._coordsList,s,l;if(n)s=n.coordinateSystem,cn(o,s)<0&&(s=null);else if(r&&a)s=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,r){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,K(s.x,function(c,f){K(s.y,function(d,h){var v="x"+f+"y"+h,p=new RFe(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(Yx(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 NFe(c,Ey(f),[0,0],f.get("type"),h),p=v.type==="category";v.onBand=p&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=i,v.index=d,i._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,n){K(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(y5(a)){var i=b5(a),o=i.xAxisModel,s=i.yAxisModel;if(!Yx(o,n)||!Yx(s,n))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(a,i){K(w_(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var n=[],r=[];return K(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);cn(n,i)<0&&n.push(i),cn(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(y5(a)){var i=b5(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),r},e.dimensions=IA,e}();function Yx(e,t){return e.getCoordSysModel()===t}function _5(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)w5(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&w5(a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function w5(e){return e&&e.type!=="category"&&e.type!=="time"&&N4e(e)}function BFe(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 FFe=$Fe;var xu=Math.PI,Vf=function(){function e(t,n){this.group=new Gt,this.opt=n,this.axisModel=t,Lt(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Gt({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return e.prototype.hasBuilder=function(t){return!!S5[t]},e.prototype.add=function(t){S5[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,n,r){var a=RI(n-t),i,o;return xm(a)?(o=r>0?"top":"bottom",i="center"):xm(a-xu)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a<xu?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}(),S5={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&&(pa(s,s,o),pa(l,l,o));var c=je({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new ra({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});iv(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"]);St(d)&&(d=[d,d]),(St(h)||Dn(h))&&(h=[h,h]);var v=vd(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];K([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,b){if(d[b]!=="none"&&d[b]!=null){var w=Nr(d[b],-p/2,-g/2,p,g,c.stroke,!0),S=m.r+m.offset,C=u?l:s;w.attr({rotation:m.rotate,x:C[0]+S*Math.cos(e.rotation),y:C[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabel:function(e,t,n,r){var a=HFe(n,r,t,e),i=GFe(n,r,t,e);if(zFe(t,i,a),WFe(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=nY(at(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));iY(o)}},axisName:function(e,t,n,r){var a=na(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,x5(i)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*xu/180);var v;x5(i)?d=Vf.innerTextLayout(e.rotation,h??e.rotation,o):(d=VFe(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=na(e.nameTruncateMaxWidth,g.maxWidth,v),w=new An({x:f[0],y:f[1],rotation:d.rotation,silent:Vf.isLabelSilent(t),style:er(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(Mv({el:w,componentModel:t,itemName:a}),w.__fullText=a,w.anid="name",t.get("triggerEvent")){var S=Vf.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,Jt(w).eventData=S}r.add(w),w.updateTransform(),n.add(w),w.decomposeTransform()}}};function VFe(e,t,n,r){var a=RI(n-e),i,o,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return xm(a-xu/2)?(o=l?"bottom":"top",i="center"):xm(a-xu*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<xu*1.5&&a>xu/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function zFe(e,t,n){if(!Gj(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?(Ui(i),Ui(u)):C5(i,o)&&(r?(Ui(o),Ui(c)):(Ui(i),Ui(u))),a===!1?(Ui(s),Ui(f)):C5(l,s)&&(a?(Ui(l),Ui(d)):(Ui(s),Ui(f)))}}function Ui(e){e&&(e.ignore=!0)}function C5(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var a=gy([]);return lc(a,a,-e.rotation),n.applyTransform(Rs([],a,e.getLocalTransform())),r.applyTransform(Rs([],a,t.getLocalTransform())),n.intersect(r)}}function x5(e){return e==="middle"||e==="center"}function FY(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&&(pa(o,o,t),pa(s,s,t));var c=new ra({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});iv(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function HFe(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=FY(u,t.transform,l,Lt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function WFe(e,t,n,r){var a=n.axis,i=n.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=r*i.get("length"),u=Lt(s.getLineStyle(),Lt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=FY(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function GFe(e,t,n,r){var a=n.axis,i=na(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=n.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(na(r.labelRotate,o.get("rotate"))||0)*xu/180,c=Vf.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=Vf.isLabelSilent(n),v=n.get("triggerEvent");return K(l,function(p,g){var m=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,b=p.formattedLabel,w=p.rawLabel,S=o;if(f&&f[m]){var C=f[m];Ot(C)&&C.textStyle&&(S=new Yn(C.textStyle,o,n.ecModel))}var y=S.getTextColor()||n.get(["axisLine","lineStyle","color"]),x=a.dataToCoord(m),T=new An({x,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:er(S,{text:b,align:S.getShallow("align",!0)||c.textAlign,verticalAlign:S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,fill:It(y)?y(a.type==="category"?w:a.type==="value"?m+"":m,g):y})});if(T.anid="label_"+m,v){var A=Vf.makeAxisEventDataBase(n);A.targetType="axisLabel",A.value=w,A.tickIndex=g,a.type==="category"&&(A.dataIndex=m),Jt(T).eventData=A}t.add(T),T.updateTransform(),d.push(T),e.add(T),T.decomposeTransform()}),d}}const El=Vf;function UFe(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return KFe(n,e,t),n.seriesInvolved&&YFe(n,e),n}function KFe(e,t,n){var r=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];K(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Vm(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(K(s.getAxes(),Zt(p,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&K(v.baseAxes,Zt(p,h?"cross":!0,d)),h&&K(v.otherAxes,Zt(p,"cross",!1))}function p(g,m,b){var w=b.model.getModel("axisPointer",a),S=w.get("show");if(!(!S||S==="auto"&&!g&&!LA(w))){m==null&&(m=w.get("triggerTooltip")),w=g?jFe(b,f,a,t,g,m):w;var C=w.get("snap"),y=w.get("triggerEmphasis"),x=Vm(b.model),T=m||C||b.type==="category",A=e.axesInfo[x]={key:x,axis:b,coordSys:s,axisPointerModel:w,triggerTooltip:m,triggerEmphasis:y,involveSeries:T,snap:C,useHandle:LA(w),seriesModels:[],linkGroup:null};u[x]=A,e.seriesInvolved=e.seriesInvolved||T;var M=qFe(i,b);if(M!=null){var E=o[M]||(o[M]={axesInfo:{}});E.axesInfo[x]=A,E.mapper=i[M].mapper,A.linkGroup=E}}}})}function jFe(e,t,n,r,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};K(s,function(d){l[d]=Ft(o.get(d))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&Lt(u,f.textStyle)}}return e.model.getModel("axisPointer",new Yn(l,n,r))}function YFe(e,t){t.eachSeries(function(n){var r=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),i=n.get(["tooltip","show"],!0);!r||a==="none"||a===!1||a==="item"||i===!1||n.get(["axisPointer","show"],!0)===!1||K(e.coordSysAxesInfo[Vm(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 qFe(e,t){for(var n=t.model,r=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(qx(i[r+"AxisId"],n.id)||qx(i[r+"AxisIndex"],n.componentIndex)||qx(i[r+"AxisName"],n.name))return a}}function qx(e,t){return e==="all"||et(e)&&cn(e,t)>=0||e===t}function XFe(e){var t=GD(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=LA(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 GD(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Vm(e)]}function ZFe(e){var t=GD(e);return t&&t.axisPointerModel}function LA(e){return!!e.get(["handle","show"])}function Vm(e){return e.type+"||"+e.id}var T5={},JFe=function(e){Ne(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&&XFe(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=ZFe(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){T5[n]=r},t.getAxisPointerClass=function(n){return n&&T5[n]},t.type="axis",t}(gr);const gd=JFe;var PA=Ln();function VY(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=PA(e).splitAreaColors,d=Et(),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=et(s)?s:[s];for(var v=1;v<u.length;v++){var b=a.toGlobalCoord(u[v].coord),w=void 0,S=void 0,C=void 0,y=void 0;a.isHorizontal()?(w=g,S=l.y,C=b-w,y=l.height,g=w+C):(w=l.x,S=g,C=l.width,y=b-S,g=S+y);var x=u[v-1].tickValue;x!=null&&d.set(x,h),t.add(new En({anid:x!=null?"area_"+x:null,shape:{x:w,y:S,width:C,height:y},style:Lt({fill:s[h]},m),autoBatch:!0,silent:!0})),h=(h+1)%c}PA(e).splitAreaColors=d}}}function zY(e){PA(e).splitAreaColors=null}var QFe=["axisLine","axisTickLabel","axisName"],eVe=["splitArea","splitLine","minorSplitLine"],HY=function(e){Ne(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 Gt,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=DA(s,n),u=new El(n,je({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(SA(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));K(QFe,u.add,u),this._axisGroup.add(u.getGroup()),K(eVe,function(f){n.get([f,"show"])&&tVe[f](this,this._axisGroup,n,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||xy(o,this._axisGroup,n),e.prototype.render.call(this,n,r,a,i)}},t.prototype.remove=function(){zY(this)},t.type="cartesianAxis",t}(gd),tVe={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=et(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,w=new ra({anid:b!=null?"line_"+f[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:Lt({stroke:s[m]},v),silent:!0});iv(w.shape,v.lineWidth),t.add(w)}}},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 ra({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});iv(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,n,r){VY(e,t,n,r)}},WY=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t}(HY),nVe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=WY.type,n}return t.type="yAxis",t}(HY),rVe=function(e){Ne(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 En({shape:n.coordinateSystem.getRect(),style:Lt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(gr),k5={offset:0};function GY(e){e.registerComponentView(rVe),e.registerComponentModel(AFe),e.registerCoordinateSystem("cartesian2d",FFe),uv(e,"x",MA,k5),uv(e,"y",MA,k5),e.registerComponentView(WY),e.registerComponentView(nVe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function aVe(e){dn(GY),e.registerSeriesModel(bFe),e.registerChartView(TFe),e.registerLayout(Ly("scatter"))}function iVe(e){e.eachSeriesByType("radar",function(t){var n=t.getData(),r=[],a=t.coordinateSystem;if(a){var i=a.getIndicatorAxes();K(i,function(o,s){n.each(n.mapDimension(i[s].dim),function(l,u){r[u]=r[u]||[];var c=a.dataToPoint(l,s);r[u][s]=A5(c)?c:E5(a)})}),n.each(function(o){var s=X7(r[o],function(l){return A5(l)})||E5(a);r[o].push(s.slice()),n.setItemLayout(o,r[o])})}})}function A5(e){return!isNaN(e[0])&&!isNaN(e[1])}function E5(e){return[e.cx,e.cy]}function oVe(e){var t=e.polar;if(t){et(t)||(t=[t]);var n=[];K(t,function(r,a){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),e.radar=e.radar||[],et(e.radar)||(e.radar=[e.radar]),e.radar.push(r)):n.push(r)}),e.polar=n}K(e.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var sVe=function(e){Ne(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=Bv(d.getItemVisual(h,"symbolSize")),g=Nr(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 w=u(p,g);w&&(w.__dimIdx=b,d[b]?(w.setPosition(d[b]),Ty[m?"initProps":"updateProps"](w,{x:h[b][0],y:h[b][1]},n,g)):w.setPosition(h[b]),v.add(w))}}function f(d){return at(d,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var v=new oi,p=new li,g={shape:{points:h}};v.shape.points=f(h),p.shape.points=f(h),cr(v,g,n,d),cr(p,g,n,d);var m=new Gt,b=new Gt;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),rs(g),rs(p),Pn(p,b,n),Pn(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"),w=b.fill;o.add(d),p.useStyle(Lt(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:w})),xa(p,v,"lineStyle"),xa(g,v,"areaStyle");var S=v.getModel("areaStyle"),C=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=C,K(["emphasis","select","blur"],function(T){var A=v.getModel([T,"areaStyle"]),M=A.isEmpty()&&A.parentModel.isEmpty();g.ensureState(T).ignore=M&&C}),g.useStyle(Lt(S.getAreaStyle(),{fill:w,opacity:.7,decal:b.decal}));var y=v.getModel("emphasis"),x=y.getModel("itemStyle").getItemStyle();m.eachChild(function(T){if(T instanceof ga){var A=T.style;T.useStyle(je({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else T.useStyle(b),T.setColor(w),T.style.strokeNoScale=!0;var M=T.ensureState("emphasis");M.style=Ft(x);var E=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(E==null||isNaN(E))&&(E=""),Ta(T,sa(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:E,inheritColor:w,defaultOpacity:b.opacity})}),Ar(d,y.get("focus"),y.get("blurScope"),y.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Xn);const lVe=sVe;var uVe=function(e){Ne(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 Ry(Ct(this.getData,this),Ct(this.getRawData,this))},t.prototype.getInitialData=function(n,r){return zv(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=$K(this,n);return la("section",{header:u,sortBlocks:!0,blocks:at(s,function(f){var d=i.get(i.mapDimension(f.dim),n);return la("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(at(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}(or);const cVe=uVe;var Ep=$Y.value;function sb(e,t){return Lt({show:t},e)}var fVe=function(e){Ne(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=at(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var p=l;v.color!=null&&(p=Lt({color:v.color},l));var g=rn(Ft(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(St(c)){var m=g.name;g.name=c.replace("{value}",m??"")}else It(c)&&(g.name=c(g.name,g));var b=new Yn(g,null,this.ecModel);return Ir(b,Vv.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:rn({lineStyle:{color:"#bbb"}},Ep.axisLine),axisLabel:sb(Ep.axisLabel,!1),axisTick:sb(Ep.axisTick,!1),splitLine:sb(Ep.splitLine,!0),splitArea:sb(Ep.splitArea,!0),indicator:[]},t}(kn);const dVe=fVe;var hVe=["axisLine","axisTickLabel","axisName"],vVe=function(e){Ne(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=at(a,function(o){var s=o.model.get("showName")?o.name:"",l=new El(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});K(i,function(o){K(hVe,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=et(d)?d:[d],p=et(h)?h:[h],g=[],m=[];function b(z,F,$){var V=$%F.length;return z[V]=z[V]||[],V}if(i==="circle")for(var w=a[0].getTicksCoords(),S=r.cx,C=r.cy,y=0;y<w.length;y++){if(c){var x=b(g,v,y);g[x].push(new ns({shape:{cx:S,cy:C,r:w[y].coord}}))}if(f&&y<w.length-1){var x=b(m,p,y);m[x].push(new wy({shape:{cx:S,cy:C,r0:w[y].coord,r:w[y+1].coord}}))}}else for(var T,A=at(a,function(z,F){var $=z.getTicksCoords();return T=T==null?$.length-1:Math.min($.length-1,T),at($,function(V){return r.coordToPoint(V.coord,F)})}),M=[],y=0;y<=T;y++){for(var E=[],I=0;I<a.length;I++)E.push(A[I][y]);if(E[0]&&E.push(E[0].slice()),c){var x=b(g,v,y);g[x].push(new li({shape:{points:E}}))}if(f&&M){var x=b(m,p,y-1);m[x].push(new oi({shape:{points:E.concat(M)}}))}M=E.slice().reverse()}var L=l.getLineStyle(),O=u.getAreaStyle();K(m,function(z,F){this.group.add(Ii(z,{style:Lt({stroke:"none",fill:p[F%p.length]},O),silent:!0}))},this),K(g,function(z,F){this.group.add(Ii(z,{style:Lt({fill:"none",stroke:v[F%v.length]},L),silent:!0}))},this)},t.type="radar",t}(gr);const pVe=vVe;var gVe=function(e){Ne(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}(To);const mVe=gVe;var yVe=function(){function e(t,n,r){this.dimensions=[],this._model=t,this._indicatorAxes=at(t.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new mVe(o,new qu);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=yt(r[0],a),this.cy=yt(r[1],i),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(St(s)||Dn(s))&&(s=[0,s]),this.r0=yt(s[0],o),this.r=yt(s[1],o),K(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,n){var r=this._indicatorAxes,a=this._model;K(r,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();K(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new qu;o.setExtent(0,i),o.setInterval(1),K(r,function(s,l){BY(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,n,r){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,n,r){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,n){var r=[];return t.eachComponent("radar",function(a){var i=new e(a,t,n);r.push(i),a.coordinateSystem=i}),t.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=r[a.get("radarIndex")||0])}),r},e.dimensions=[],e}();const bVe=yVe;function _Ve(e){e.registerCoordinateSystem("radar",bVe),e.registerComponentModel(dVe),e.registerComponentView(pVe),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 wVe(e){dn(_Ve),e.registerChartView(lVe),e.registerSeriesModel(cVe),e.registerLayout(iVe),e.registerProcessor(Py("radar")),e.registerPreprocessor(oVe)}var M5="\0_ec_interaction_mutex";function SVe(e,t,n){var r=UD(e);r[t]=n}function CVe(e,t,n){var r=UD(e),a=r[t];a===n&&(r[t]=null)}function I5(e,t){return!!UD(e)[t]}function UD(e){return e[M5]||(e[M5]={})}ls({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Er);var xVe=function(e){Ne(t,e);function t(n){var r=e.call(this)||this;r._zr=n;var a=Ct(r._mousedownHandler,r),i=Ct(r._mousemoveHandler,r),o=Ct(r._mouseupHandler,r),s=Ct(r._mousewheelHandler,r),l=Ct(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=Lt(Ft(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(!o$(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||!p1("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||I5(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&&Cl(n.event),UY(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:i,oldY:o,newX:r,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(n){o$(n)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(n){var r=p1("zoomOnMouseWheel",n,this._opt),a=p1("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;Xx(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);Xx(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(n){if(!I5(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;Xx(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},t}(wo);function Xx(e,t,n,r,a){e.pointerChecker&&e.pointerChecker(r,a.originX,a.originY)&&(Cl(r.event),UY(e,t,n,r,a))}function UY(e,t,n,r,a){a.isAvailableBehavior=Ct(p1,null,n,r),e.trigger(t,a)}function p1(e,t,n){var r=n[e];return!e||r&&(!St(r)||t.event[r+"Key"])}const Oy=xVe;function KD(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function jD(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 TVe={axisPointer:1,tooltip:1,brush:1};function wS(e,t,n){var r=t.getComponentByElement(e.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!TVe.hasOwnProperty(r.mainType)&&a&&a.model!==n}function KY(e){if(St(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 Zx,A_={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"},D5=_n(A_),E_={"alignment-baseline":"textBaseline","stop-color":"stopColor"},L5=_n(E_),kVe=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,n){n=n||{};var r=KY(t);this._defsUsePending=[];var a=new Gt;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),ki(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;MVe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=SS(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=YY(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var h=a;a=new Gt,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 En({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=Zx[s];if(c&&Tt(Zx,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=P5[s];if(h&&Tt(P5,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 km({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ki(n,r),ki(t,r,this._defsUsePending,!1,!1),AVe(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(){Zx={g:function(t,n){var r=new Gt;return Ki(n,r),ki(t,r,this._defsUsePending,!1,!1),r},rect:function(t,n){var r=new En;return Ki(n,r),ki(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 ns;return Ki(n,r),ki(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 ra;return Ki(n,r),ki(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 Qw;return Ki(n,r),ki(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=N5(r));var i=new oi({shape:{points:a||[]},silent:!0});return Ki(n,i),ki(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,n){var r=t.getAttribute("points"),a;r&&(a=N5(r));var i=new li({shape:{points:a||[]},silent:!0});return Ki(n,i),ki(t,i,this._defsUsePending,!1,!1),i},image:function(t,n){var r=new ga;return Ki(n,r),ki(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 Gt;return Ki(n,s),ki(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 Gt;return Ki(n,s),ki(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=SU(r);return Ki(n,a),ki(t,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),e}(),P5={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 kv(t,n,r,a);return R5(e,i),O5(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 jI(t,n,r);return R5(e,a),O5(e,a),a}};function R5(e,t){var n=e.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(t.global=!0)}function O5(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={};jY(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function Ki(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Lt(t.__inheritedStyle,e.__inheritedStyle))}function N5(e){for(var t=SS(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 ki(e,t,n,r,a){var i=t,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};e.nodeType===1&&(LVe(e,t),jY(e,o,s),r||PVe(e,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=$5(i,"fill",o.fill,n)),o.stroke!=null&&(i.style.stroke=$5(i,"stroke",o.stroke,n)),K(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),K(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=at(SS(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function AVe(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 EVe=/^url\(\s*#(.*?)\)/;function $5(e,t,n,r){var a=n&&n.match(EVe);if(a){var i=oo(a[1]);r.push([e,t,i]);return}return n==="none"&&(n=null),n}function MVe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r[0].style[r[1]]=e[r[2]]}}var IVe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function SS(e){return e.match(IVe)||[]}var DVe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Jx=Math.PI/180;function LVe(e,t){var n=e.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],a=null;n.replace(DVe,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=SS(o);switch(a=a||Bi(),s){case"translate":es(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ww(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":lc(a,a,-parseFloat(l[0])*Jx);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Jx);Rs(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Jx);Rs(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 B5=/([^\s:;]+)\s*:\s*([^:;]+)/g;function jY(e,t,n){var r=e.getAttribute("style");if(r){B5.lastIndex=0;for(var a;(a=B5.exec(r))!=null;){var i=a[1],o=Tt(A_,i)?A_[i]:null;o&&(t[o]=a[2]);var s=Tt(E_,i)?E_[i]:null;s&&(n[s]=a[2])}}}function PVe(e,t,n){for(var r=0;r<D5.length;r++){var a=D5[r],i=e.getAttribute(a);i!=null&&(t[A_[a]]=i)}for(var r=0;r<L5.length;r++){var a=L5[r],i=e.getAttribute(a);i!=null&&(n[E_[a]]=i)}}function YY(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 RVe(e,t){var n=new kVe;return n.parse(e,t)}var OVe=Et(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),NVe=function(){function e(t,n){this.type="geoSVG",this._usedGraphicMap=Et(),this._freedGraphics=[],this._mapName=t,this._parsedXML=KY(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=BVe(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&&RVe(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,Ba(r!=null)}catch(g){throw new Error(`Invalid svg format
  100. `+g.message)}var a=new Gt;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 sn(u,c,f,d)}if(s){var v=YY(s,l);r.scaleX=r.scaleY=v.scale,r.x=v.x,r.y=v.y}a.setClipPath(new En({shape:l.plain()}));var p=[];return K(n.named,function(g){OVe.get(g.svgNodeTagLower)!=null&&(p.push(g),$Ve(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 $Ve(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function BVe(e){var t=[],n=Et();return K(e,function(r){if(r.namedFrom==null){var a=new q4e(r.name,r.el);t.push(a),n.set(r.name,a)}}),{regions:t,regionsMap:n}}var RA=[126,25],F5="南海诸岛",Jc=[[[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 Yc=0;Yc<Jc.length;Yc++)for(var Wd=0;Wd<Jc[Yc].length;Wd++)Jc[Yc][Wd][0]/=10.5,Jc[Yc][Wd][1]/=-10.5/.75,Jc[Yc][Wd][0]+=RA[0],Jc[Yc][Wd][1]+=RA[1];function FVe(e,t){if(e==="china"){for(var n=0;n<t.length;n++)if(t[n].name===F5)return;t.push(new Kj(F5,at(Jc,function(r){return{type:"polygon",exterior:r}}),RA))}}var VVe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function zVe(e,t){if(e==="china"){var n=VVe[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 HVe=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function WVe(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:HVe[0]})}var GVe="name",UVe=function(){function e(t,n,r){this.type="geoJSON",this._parsedMap=Et(),this._mapName=t,this._specialAreas=r,this._geoJSON=jVe(n)}return e.prototype.load=function(t,n){n=n||GVe;var r=this._parsedMap.get(n);if(!r){var a=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:a,boundingRect:KVe(a)})}var i=Et(),o=[];return K(r.regions,function(s){var l=s.name;t&&Tt(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new sn(0,0,0,0),regionsMap:i}},e.prototype._parseToRegions=function(t){var n=this._mapName,r=this._geoJSON,a;try{a=r?xA(r,t):[]}catch(i){throw new Error(`Invalid geoJson format
  101. `+i.message)}return FVe(n,a),K(a,function(i){var o=i.name;zVe(n,i),WVe(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 KVe(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 jVe(e){return St(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Mp=Et();const Ml={registerMap:function(e,t,n){if(t.svg){var r=new NVe(e,t.svg);Mp.set(e,r)}else{var a=t.geoJson||t.geoJSON;a&&!t.features?n=t.specialAreas:a=t;var r=new UVe(e,a,n);Mp.set(e,r)}},getGeoResource:function(e){return Mp.get(e)},getMapForUser:function(e){var t=Mp.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,n){var r=Mp.get(e);if(r)return r.load(t,n)}};var YD=["rect","circle","line","ellipse","polygon","polyline","path"],YVe=Et(YD),qVe=Et(YD.concat(["g"])),XVe=Et(YD.concat(["g"])),qY=Ln();function lb(e){var t=e.getItemStyle(),n=e.get("areaColor");return n!=null&&(t.fill=n),t}function V5(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var ZVe=function(){function e(t){var n=new Gt;this.uid=Dv("ec_map_draw"),this._controller=new Oy(t.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new Gt),n.add(this._svgGroup=new Gt)}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()):Pn(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=Et(),r=Et(),a=this._regionsGroup,i=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var v=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var m=c(h[g],p);m&&v.push(m)}return v}function d(h){return{shape:{points:f(h)}}}a.removeAll(),K(t.geo.regions,function(h){var v=h.name,p=n.get(v),g=r.get(v)||{},m=g.dataIdx,b=g.regionModel;p||(p=n.set(v,new Gt),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=[],S=[];K(h.geometries,function(x){if(x.type==="polygon"){var T=[x.exterior].concat(x.interiors||[]);u&&(T=K5(T,u)),K(T,function(M){w.push(new oi(d(M)))})}else{var A=x.points;u&&(A=K5(A,u,!0)),K(A,function(M){S.push(new li(d(M)))})}});var C=c(h.getCenter(),l&&l.project);function y(x,T){if(x.length){var A=new tS({culling:!0,segmentIgnoreThreshold:1,shape:{paths:x}});p.add(A),z5(t,A,m,b),H5(t,A,v,b,o,m,C),T&&(V5(A),K(A.states,V5))}}y(w),y(S,!0)}),n.each(function(h,v){var p=r.get(v),g=p.dataIdx,m=p.regionModel;W5(t,h,v,m,o,g),G5(t,h,v,m,o),U5(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=Et(),i=!1;K(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(YVe.get(c)!=null&&f instanceof _o&&z5(t,f,d,h),f instanceof _o&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(XVe.get(c)!=null&&H5(t,f,s,h,l,d,null),W5(t,f,s,h,l,d),G5(t,f,s,h,l),qVe.get(c)!=null)){var v=U5(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){Zf(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=Ml.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=Ml.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,KD(o,u.dx,u.dy),r.dispatchAction(je(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,jD(o,u.scale,u.originX,u.originY),r.dispatchAction(je(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])&&!wS(u,r,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var n=t.getTextContent();n&&(n.ignore=qY(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 z5(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=lb(a),u=lb(i),c=lb(s),f=lb(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=sv(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,Zf(t)}function H5(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;Ta(t,sa(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var v=t.getTextContent();if(v&&(qY(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 W5(e,t,n,r,a,i){e.data?e.data.setItemGraphicEl(i,t):Jt(t).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function G5(e,t,n,r,a){e.data||Mv({el:t,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function U5(e,t,n,r,a){t.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return Ar(t,o,i.get("blurScope"),i.get("disabled")),e.isGeo&&FRe(t,a,n),o}function K5(e,t,n){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=t({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),K(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}const XY=ZVe;var JVe=function(e){Ne(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 XY(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 ns({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Tv+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);Ta(d,sa(g),{labelFetcher:{getFormattedLabel:function(w,S){return n.getFormattedLabel(p,S)}},defaultText:v}),d.disableLabelAnimation=!0,m.get("position")||d.setTextConfig({position:"bottom"}),b.onHoverStateChange=function(w){a_(d,w)}}o.add(d)}}})},t.type="map",t}(Xn);const QVe=JVe;var e6e=function(e){Ne(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=zv(this,{coordDimensions:["value"],encodeDefaulter:Zt(lD,this)}),a=Et(),i=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);a.set(l,!0)}var u=Ml.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return K(u.regions,function(c){var f=c.name;a.get(f)||i.push(f)}),r.appendValues([],i),r},t.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return n!=null?this.ecModel.getComponent("geo",n):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(n){var r=this.getData();return r.get(r.mapDimension("value"),n)},t.prototype.getRegionModel=function(n){var r=this.getData();return r.getItemModel(r.indexOfName(n))},t.prototype.formatTooltip=function(n,r,a){for(var i=this.getData(),o=this.getRawValue(n),s=i.getName(n),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=i.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return la("section",{header:u.join(", "),noHeader:!u.length,blocks:[la("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=Nr(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}(or);const t6e=e6e;function n6e(e,t){var n={};return K(e,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);n[o]=n[o]||[],isNaN(a)||n[o].push(a)})}),e[0].map(e[0].mapDimension("value"),function(r,a){for(var i="ec-"+e[0].getName(a),o=0,s=1/0,l=-1/0,u=n[i].length,c=0;c<u;c++)s=Math.min(s,n[i][c]),l=Math.max(l,n[i][c]),o+=n[i][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function r6e(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getHostGeoModel(),a=r?"o"+r.id:"i"+n.getMapType();(t[a]=t[a]||[]).push(n)}),K(t,function(n,r){for(var a=n6e(at(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 a6e(e){var t={};e.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||t[r])){var a={};K(n.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var h=a[f]||0,v=s.dataToPoint(d.getCenter());a[f]=h+1,l.setItemLayout(c,{point:v,offset:h})}})});var i=n.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),t[r]=!0}})}var j5=pa,i6e=function(e){Ne(t,e);function t(n){var r=e.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new cl,r._rawTransformable=new cl,r.name=n,r}return t.prototype.setBoundingRect=function(n,r,a,i){return this._rect=new sn(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 sn(n,r,a,i)},t.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new sn(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=[yt(n[0],r.getWidth()),yt(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=pa([],i,n),a=pa([],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(),Hw(this.transform||(this.transform=[]),r.transform||Bi()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],fd(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,a=new cl;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?j5(a,n,i):Ia(a,n)},t.prototype.pointToData=function(n){var r=this.invTransform;return r?j5([],n,r):[n[0],n[1]]},t.prototype.convertToPixel=function(n,r,a){var i=Y5(r);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var i=Y5(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}(cl);function Y5(e){var t=e.seriesModel;return t?t.coordinateSystem:null}const Ny=i6e;var o6e={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},ZY=["lng","lat"],JY=function(e){Ne(t,e);function t(n,r,a){var i=e.call(this,n)||this;i.dimensions=ZY,i.type="geo",i._nameCoordMap=Et(),i.map=r;var o=a.projection,s=Ml.load(r,a.nameMap,a.nameProperty),l=Ml.getGeoResource(r);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=o6e[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:on(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 sn(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(St(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=q5(r);return i===this?i.dataToPoint(a):null},t.prototype.convertFromPixel=function(n,r,a){var i=q5(r);return i===this?i.pointToData(a):null},t}(Ny);Ir(JY,Ny);function q5(e){var t=e.geoModel,n=e.seriesModel;return t?t.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",Hr).models[0]||{}).coordinateSystem:null}const X5=JY;function Z5(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(y,x,T,A){for(var M=T-y,E=A-x,I=0;I<=100;I++){var L=I/100,O=i.project([y+M*L,x+E*L]);ll(r,r,O),ul(a,a,O)}};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,w;d&&h&&(b=[yt(d[0],v),yt(d[1],p)],w=yt(h,Math.min(v,p)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(w)&&(m=!0));var S;if(m)S={},g>1?(S.width=w,S.height=w/g):(S.height=w,S.width=w*g),S.y=b[1]-S.height/2,S.x=b[0]-S.width/2;else{var C=e.getBoxLayoutParams();C.aspect=g,S=Yr(C,{width:v,height:p})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function s6e(e,t){K(t.get("geoCoord"),function(n,r){e.addGeoCoord(r,n)})}var l6e=function(){function e(){this.dimensions=ZY}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 X5(l+s,l,je({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=Z5,u.resize(o,n)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),K(i,function(o,s){var l=at(o,function(c){return c.get("nameMap")}),u=new X5(s,s,je({nameMap:Fw(l)},a(o[0])));u.zoomLimit=na.apply(null,at(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=Z5,u.resize(o[0],n),K(o,function(c){c.coordinateSystem=u,s6e(u,c)})}),r},e.prototype.getFilledRegions=function(t,n,r,a){for(var i=(t||[]).slice(),o=Et(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Ml.load(n,r,a);return K(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},e}(),u6e=new l6e;const QY=u6e;var c6e=function(e){Ne(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=Ml.getGeoResource(n.map);if(i&&i.type==="geoJSON"){var o=n.itemStyle=n.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(n,a),Yf(n,"label",["show"])},t.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=QY.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var a={};this._optionModelMap=bo(r.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Yn(o,n,n.ecModel)),o.selected&&(a[s]=!0)),i},Et()),r.selectedMap||(r.selectedMap=a)},t.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new Yn(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(It(i))return o.status=r,i(o);if(St(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}(kn);const f6e=c6e;function J5(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function qD(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(J5(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(J5(e,s),r),e.setZoom(o*a)}return{center:e.getCenter(),zoom:e.getZoom()}}var d6e=function(e){Ne(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 XY(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;Tf(n.target,function(a){return(r=Jt(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=Jt(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}(gr);const h6e=d6e;function v6e(e,t,n){Ml.registerMap(e,t,n)}function eq(e){e.registerCoordinateSystem("geo",QY),e.registerComponentModel(f6e),e.registerComponentView(h6e),e.registerImpl("registerMap",v6e),e.registerImpl("getMap",function(n){return Ml.getMapForUser(n)});function t(n,r){r.update="geo:updateSelectStatus",e.registerAction(r,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[n](a.name);var u=l.coordinateSystem;K(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];K(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,r,a){var i=n.componentType||"series";r.eachComponent({mainType:i,query:n},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=qD(s,n,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&K(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function p6e(e){dn(eq),e.registerChartView(QVe),e.registerSeriesModel(t6e),e.registerLayout(a6e),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,r6e),qK("map",e.registerAction)}function g6e(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 m6e(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){_6e(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=w6e(e,a,e.parentNode.hierNode.defaultAncestor||r[0],t)}function y6e(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function Q5(e){return arguments.length?e:x6e}function Zp(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function b6e(e,t){return Yr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function _6e(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 w6e(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=Qx(s),i=e2(i),s&&i;){a=Qx(a),o=e2(o),a.hierNode.ancestor=e;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(C6e(S6e(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&&!Qx(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!e2(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=e)}return n}function Qx(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function e2(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function S6e(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function C6e(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 x6e(e,t){return e.parentNode===t.parentNode?1:2}var T6e=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),k6e=function(e){Ne(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 T6e},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=yt(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}(pn),A6e=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._mainGroup=new Gt,n}return t.prototype.init=function(n,r){this._controller=new Oy(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){eB(i,c)&&tB(i,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!eB(i,c)){d&&rB(u,f,d,s,n);return}tB(i,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&rB(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=[];Xw(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 Ny;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)&&!wS(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){KD(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){jD(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}(Xn);function eB(e,t){var n=e.getItemLayout(t);return n&&!isNaN(n.x)&&!isNaN(n.y)}function tB(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 Iy(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,Pn(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(),w=m.children.length,S=void 0,C=void 0;if(p.x===b.x&&o.isExpand===!0&&m.children.length){var y={x:(m.children[0].getLayout().x+m.children[w-1].getLayout().x)/2,y:(m.children[0].getLayout().y+m.children[w-1].getLayout().y)/2};S=Math.atan2(y.y-b.y,y.x-b.x),S<0&&(S=Math.PI*2+S),C=y.x<b.x,C&&(S=S-Math.PI)}else S=Math.atan2(p.y-b.y,p.x-b.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(C=p.x<b.x,C&&(S=S-Math.PI)):(C=p.x>b.x,C||(S=S-Math.PI));var x=C?"left":"right",T=s.getModel("label"),A=T.get("rotate"),M=A*(Math.PI/180),E=g.getTextContent();E&&(g.setTextConfig({position:T.get("position")||x,rotation:A==null?-S:M,origin:"center"}),E.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?mm(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(Jt(n).focus=L),E6e(a,o,c,n,v,h,p,r),n.__edge&&(n.onHoverStateChange=function(O){if(O!=="blur"){var z=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);z&&z.hoverState===_y||a_(n.__edge,O)}})}function E6e(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 Sy({shape:OA(c,f,d,a,a)})),Pn(p,{shape:OA(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 w=g[b].getLayout();m.push([w.x,w.y])}p||(p=r.__edge=new k6e({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),Pn(p,{shape:{parentPoint:[o.x,o.y],childPoints:m}},e)}p&&!(u==="polyline"&&!t.isExpand)&&(p.useStyle(Lt({strokeNoScale:!0,fill:null},v)),xa(p,l,"lineStyle"),Zf(p),s.add(p))}function nB(e,t,n,r,a){var i=t.tree.root,o=tq(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"?ju(d,{shape:OA(v,p,g,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}):h==="polyline"&&r.get("layout")==="orthogonal"&&ju(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}))}}function tq(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 rB(e,t,n,r,a){var i=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=tq(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};ju(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){nB(u,e,r,a,l)}),nB(i,e,r,a,l)}function OA(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=Zp(u,f),v=Zp(u,f+(d-f)*n),p=Zp(c,d+(f-d)*n),g=Zp(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 M6e=A6e;var uo=Ln();function nq(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,rq(t,n,e),K(n,function(r){K(t.TRANSFERABLE_METHODS,function(a){r.wrapMethod(a,Zt(I6e,e))})}),t.wrapMethod("cloneShallow",Zt(L6e,e)),K(t.CHANGABLE_METHODS,function(r){t.wrapMethod(r,Zt(D6e,e))}),Ba(n[t.dataType]===t)}function I6e(e,t){if(O6e(this)){var n=je({},uo(this).datas);n[this.dataType]=t,rq(t,n,e)}else XD(t,this.dataType,uo(this).mainData,e);return t}function D6e(e,t){return e.struct&&e.struct.update(),t}function L6e(e,t){return K(uo(t).datas,function(n,r){n!==t&&XD(n.cloneShallow(),r,t,e)}),t}function P6e(e){var t=uo(this).mainData;return e==null||t==null?t:uo(t).datas[e]}function R6e(){var e=uo(this).mainData;return e==null?[{data:e}]:at(_n(uo(e).datas),function(t){return{type:t,data:uo(e).datas[t]}})}function O6e(e){return uo(e).mainData===e}function rq(e,t,n){uo(e).datas={},K(t,function(r,a){XD(r,a,e,n)})}function XD(e,t,n,r){uo(n).datas[t]=e,uo(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=P6e,e.getLinkedDataAll=R6e}var N6e=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){It(t)&&(r=n,n=t,t=null),t=t||{},St(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}(),$6e=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,et(d)?d.length:1),i.push(c);var h=new N6e(Zr(c.name,""),a);f?B6e(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=Fv(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Oa(l,n);return u.initData(i),r&&r(u),nq({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},e}();function B6e(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}const ZD=$6e;function zm(e,t,n){if(e&&cn(t,e.type)>=0){var r=n.getData().tree.root,a=e.targetNode;if(St(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 aq(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function JD(e,t){var n=aq(e);return cn(n,t)>=0}function CS(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 F6e=function(e){Ne(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 Yn(a,this,this.ecModel),o=ZD.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 la("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=CS(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}(or);const V6e=F6e;function z6e(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 Ip(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 H6e(e,t){e.eachSeriesByType("tree",function(n){W6e(n,t)})}function W6e(e,t){var n=b6e(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=Q5(function(w,S){return(w.parentNode===S.parentNode?1:2)/w.depth})):(a=n.width,i=n.height,o=Q5());var s=e.getData().tree.root,l=s.children[0];if(l){g6e(s),z6e(l,m6e,o),s.hierNode.modifier=-l.hierNode.prelim,Ip(l,y6e);var u=l,c=l,f=l;Ip(l,function(w){var S=w.getLayout().x;S<u.getLayout().x&&(u=w),S>c.getLayout().x&&(c=w),w.depth>f.depth&&(f=w)});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),Ip(l,function(w){g=(w.getLayout().x+h)*v,m=(w.depth-1)*p;var S=Zp(g,m);w.setLayout({x:S.x,y:S.y,rawX:g,rawY:m},!0)});else{var b=e.getOrient();b==="RL"||b==="LR"?(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Ip(l,function(w){m=(w.getLayout().x+h)*p,g=b==="LR"?(w.depth-1)*v:a-(w.depth-1)*v,w.setLayout({x:g,y:m},!0)})):(b==="TB"||b==="BT")&&(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Ip(l,function(w){g=(w.getLayout().x+h)*v,m=b==="TB"?(w.depth-1)*p:i-(w.depth-1)*p,w.setLayout({x:g,y:m},!0)}))}}}function G6e(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");je(s,o)})})}function U6e(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=qD(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function K6e(e){e.registerChartView(M6e),e.registerSeriesModel(V6e),e.registerLayout(H6e),e.registerVisual(G6e),U6e(e)}var aB=["treemapZoomToNode","treemapRender","treemapMove"];function j6e(e){for(var t=0;t<aB.length;t++)e.registerAction({type:aB[t],update:"updateView"},Er);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=zm(n,s,i);if(l){var u=i.getViewRoot();u&&(n.direction=JD(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function iq(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=uA(e.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var Y6e=function(e){Ne(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};oq(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new Yn({itemStyle:o},this,r);i=n.levels=q6e(i,r);var l=at(i||[],function(f){return new Yn(f,s,r)},this),u=ZD.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 la("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=CS(a,this),r.treePathInfo=r.treeAncestors,r},t.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},je(this.layoutInfo,n)},t.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Et(),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(){iq(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}(or);function oq(e){var t=0;K(e.children,function(r){oq(r);var a=r.value;et(a)&&(a=a[0]),t+=a});var n=e.value;et(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),et(e.value)?e.value[0]=n:e.value=n}function q6e(e,t){var n=qn(t.get("color")),r=qn(t.get(["aria","decal","decals"]));if(n){e=e||[];var a,i;K(e,function(s){var l=new Yn(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 X6e=Y6e;var Z6e=8,iB=8,t2=5,J6e=function(){function e(t){this.group=new Gt,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),uS(o,f.pos,f.box)}},e.prototype._prepare=function(t,n,r){for(var a=t;a;a=a.parentNode){var i=Zr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+Z6e*2,n.emptyItemWidth);n.totalWidth+=s+iB,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=KOe(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,w=g.text;d>f.width&&(d-=b-u,b=u,w=null);var S=new oi({shape:{points:Q6e(l,0,b,c,p===h.length-1,p===0)},style:Lt(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new An({style:er(i,{text:w})}),textConfig:{position:"inside"},z2:Tv*1e4,onclick:Zt(s,m)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=er(o,{text:w}),S.ensureState("emphasis").style=v,Ar(S,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(S),e8e(S,t,m),l+=b+iB}},e.prototype.remove=function(){this.group.removeAll()},e}();function Q6e(e,t,n,r,a,i){var o=[[a?e:e-t2,t],[e+n,t],[e+n,t+r],[a?e:e-t2,t+r]];return!i&&o.splice(2,0,[e+n+t2,t+r/2]),!a&&o.push([e,t+r/2]),o}function e8e(e,t,n){Jt(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&&CS(n,t)}}const t8e=J6e;var n8e=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 r8e(){return new n8e}var NA=Gt,oB=En,sB=3,lB="label",uB="upperLabel",a8e=Tv*10,i8e=Tv*2,o8e=Tv*3,Qc=Xf([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),cB=function(e){var t=Qc(e);return t.stroke=t.fill=t.lineWidth=null,t},M_=Ln(),s8e=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state="ready",n._storage=Dp(),n}return t.prototype.render=function(n,r,a,i){var o=r.findComponents({mainType:"series",subType:"treemap",query:i});if(!(cn(o,n)<0)){this.seriesModel=n,this.api=a,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=zm(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 NA,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=Dp(),l=Dp(),u=this._storage,c=[];function f(g,m,b,w){return l8e(r,l,u,a,s,c,g,m,b,w)}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,S){w?(m=g,K(g,function(x,T){!x.isRemoved()&&y(T,T)})):new kl(m,g,C,C).add(y).update(y).remove(Zt(y,null)).execute();function C(x){return x.getId()}function y(x,T){var A=x!=null?g[x]:null,M=T!=null?m[T]:null,E=f(A,M,b,S);E&&h(A&&A.viewChildren||[],M&&M.viewChildren||[],E,w,S+1)}}function v(g){var m=Dp();return g&&K(g,function(b,w){var S=m[w];K(b,function(C){C&&(S.push(C),M_(C).willDelete=!0)})}),m}function p(){K(d,function(g){K(g,function(m){m.parent&&m.parent.remove(m)})}),K(c,function(g){g.invisible=!0,g.dirty()})}},t.prototype._doAnimation=function(n,r,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(It(o)?0:o)||0,u=(It(s)?null:s)||"cubicOut",c=r8e();K(r.willDeleteEls,function(f,d){K(f,function(h,v){if(!h.invisible){var p=h.parent,g,m=M_(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,w=0;m.willDelete||(b=m.nodeWidth/2,w=m.nodeHeight/2),g=d==="nodeGroup"?{x:b,y:w,style:{opacity:0}}:{shape:{x:b,y:w,width:0,height:0},style:{opacity:0}}}g&&c.add(h,g,l,0,u)}})}),K(this._storage,function(f,d){K(f,function(h,v){var p=r.lastsForAnimation[d][v],g={};p&&(h instanceof Gt?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=je({},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(Ct(function(){this._state="ready",r.renderFinally()},this)).start()},t.prototype._resetController=function(n){var r=this._controller;r||(r=this._controller=new Oy(n.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",Ct(this._onPan,this)),r.on("zoom",Ct(this._onZoom,this)));var a=new sn(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)>sB||Math.abs(n.dy)>sB)){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 sn(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=Bi();es(u,u,[-r,-a]),Ww(u,u,[n.scale,n.scale]),es(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&&c_(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 t8e(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(JD(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Dp(),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}(Xn);function Dp(){return{nodeGroup:[],background:[],content:[]}}function l8e(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(),w=o.viewChildren,S=c.upperHeight,C=w&&w.length,y=d.getModel("itemStyle"),x=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),M=y.get("borderRadius")||0,E=ve("nodeGroup",NA);if(!E)return;if(l.add(E),E.x=c.x||0,E.y=c.y||0,E.markRedraw(),M_(E).nodeWidth=h,M_(E).nodeHeight=v,c.isAboveViewRoot)return E;var I=ve("background",oB,u,i8e);I&&P(E,I,C&&c.upperLabelHeight);var L=d.getModel("emphasis"),O=L.get("focus"),z=L.get("blurScope"),F=L.get("disabled"),$=O==="ancestor"?o.getAncestorsIndices():O==="descendant"?o.getDescendantIndices():O;if(C)Em(E)&&Cf(E,!1),I&&(Cf(I,!F),f.setItemGraphicEl(o.dataIndex,I),tA(I,$,z));else{var V=ve("content",oB,u,o8e);V&&G(E,V),I.disableMorphing=!0,I&&Em(I)&&Cf(I,!1),Cf(E,!F),f.setItemGraphicEl(o.dataIndex,E),tA(E,$,z)}return E;function P(ue,Q,_e){var Pe=Jt(Q);if(Pe.dataIndex=o.dataIndex,Pe.seriesIndex=e.seriesIndex,Q.setShape({x:0,y:0,width:h,height:v,r:M}),g)j(Q);else{Q.invisible=!1;var pe=o.getVisual("style"),Y=pe.stroke,ie=cB(y);ie.fill=Y;var me=Qc(x);me.fill=x.get("borderColor");var De=Qc(T);De.fill=T.get("borderColor");var Be=Qc(A);if(Be.fill=A.get("borderColor"),_e){var Oe=h-2*p;J(Q,Y,pe.opacity,{x:p,y:0,width:Oe,height:S})}else Q.removeTextContent();Q.setStyle(ie),Q.ensureState("emphasis").style=me,Q.ensureState("blur").style=De,Q.ensureState("select").style=Be,Zf(Q)}ue.add(Q)}function G(ue,Q){var _e=Jt(Q);_e.dataIndex=o.dataIndex,_e.seriesIndex=e.seriesIndex;var Pe=Math.max(h-2*p,0),pe=Math.max(v-2*p,0);if(Q.culling=!0,Q.setShape({x:p,y:p,width:Pe,height:pe,r:M}),g)j(Q);else{Q.invisible=!1;var Y=o.getVisual("style"),ie=Y.fill,me=cB(y);me.fill=ie,me.decal=Y.decal;var De=Qc(x),Be=Qc(T),Oe=Qc(A);J(Q,ie,Y.opacity,null),Q.setStyle(me),Q.ensureState("emphasis").style=De,Q.ensureState("blur").style=Be,Q.ensureState("select").style=Oe,Zf(Q)}ue.add(Q)}function j(ue){!ue.invisible&&i.push(ue)}function J(ue,Q,_e,Pe){var pe=d.getModel(Pe?uB:lB),Y=Zr(d.get("name"),null),ie=pe.getShallow("show");Ta(ue,sa(d,Pe?uB:lB),{defaultText:ie?Y:null,inheritColor:Q,defaultOpacity:_e,labelFetcher:e,labelDataIndex:o.dataIndex});var me=ue.getTextContent();if(me){var De=me.style,Be=zw(De.padding||0);Pe&&(ue.setTextConfig({layoutRect:Pe}),me.disableLabelLayout=!0),me.beforeUpdate=function(){var de=Math.max((Pe?Pe.width:ue.shape.width)-Be[1]-Be[3],0),we=Math.max((Pe?Pe.height:ue.shape.height)-Be[0]-Be[2],0);(De.width!==de||De.height!==we)&&me.setStyle({width:de,height:we})},De.truncateMinChar=2,De.lineOverflow="truncate",ne(De,Pe,c);var Oe=me.getState("emphasis");ne(Oe?Oe.style:null,Pe,c)}}function ne(ue,Q,_e){var Pe=ue?ue.text:null;if(!Q&&_e.isLeafRoot&&Pe!=null){var pe=e.get("drillDownIcon",!0);ue.text=pe?pe+" "+Pe:Pe}}function ve(ue,Q,_e,Pe){var pe=b!=null&&n[ue][b],Y=a[ue];return pe?(n[ue][b]=null,le(Y,pe)):g||(pe=new Q,pe instanceof _o&&(pe.z2=u8e(_e,Pe)),ce(Y,pe)),t[ue][m]=pe}function le(ue,Q){var _e=ue[m]={};Q instanceof NA?(_e.oldX=Q.x,_e.oldY=Q.y):_e.oldShape=je({},Q.shape)}function ce(ue,Q){var _e=ue[m]={},Pe=o.parentNode,pe=Q instanceof Gt;if(Pe&&(!r||r.direction==="drillDown")){var Y=0,ie=0,me=a.background[Pe.getRawIndex()];!r&&me&&me.oldShape&&(Y=me.oldShape.width,ie=me.oldShape.height),pe?(_e.oldX=0,_e.oldY=ie):_e.oldShape={x:Y,y:ie,width:0,height:0}}_e.fadein=!pe}}function u8e(e,t){return e*a8e+t}const c8e=s8e;var Hm=K,f8e=Ot,I_=-1,QD=function(){function e(t){var n=t.mappingMethod,r=t.type,a=this.option=Ft(t);this.type=r,this.mappingMethod=n,this._normalizeData=v8e[n];var i=e.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(n2(a),d8e(a)):n==="category"?a.categories?h8e(a):n2(a,!0):(Ba(n!=="linear"||a.dataExtent),n2(a))}return e.prototype.mapValueToVisual=function(t){var n=this._normalizeData(t);return this._normalizedToVisual(n,t)},e.prototype.getNormalizer=function(){return Ct(this._normalizeData,this)},e.listVisualTypes=function(){return _n(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,n,r){Ot(t)?K(t,n,r):n.call(r,t)},e.mapVisual=function(t,n,r){var a,i=et(t)?[]:Ot(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&&Hm(e.visualHandlers,function(a,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(t){if(et(t))t=t.slice();else if(f8e(t)){var n=[];Hm(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||St(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(cb(f[1],t,c[1]))return o}else if(c[1]===1/0){if(cb(f[0],c[0],t))return o}else if(cb(f[0],c[0],t)&&cb(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:Lp("color"),getColorMapper:function(){var t=this.option;return Ct(t.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),Jp.call(this,n)}:function(n,r,a){var i=!!a;return!r&&(n=this._normalizeData(n)),a=_g(n,t.parsedVisual,a),i?a:Xo(a,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Xo(_g(t,this.option.parsedVisual),"rgba")},category:Jp,piecewise:function(t,n){var r=BA.call(this,n);return r==null&&(r=Xo(_g(t,this.option.parsedVisual),"rgba")),r},fixed:ef}},colorHue:ub(function(t,n){return Mh(t,n)}),colorSaturation:ub(function(t,n){return Mh(t,null,n)}),colorLightness:ub(function(t,n){return Mh(t,null,null,n)}),colorAlpha:ub(function(t,n){return wm(t,n)}),decal:{applyVisual:Lp("decal"),_normalizedToVisual:{linear:null,category:Jp,piecewise:null,fixed:null}},opacity:{applyVisual:Lp("opacity"),_normalizedToVisual:$A([0,1])},liftZ:{applyVisual:Lp("liftZ"),_normalizedToVisual:{linear:ef,category:ef,piecewise:ef,fixed:ef}},symbol:{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("symbol",a)},_normalizedToVisual:{linear:fB,category:Jp,piecewise:function(t,n){var r=BA.call(this,n);return r==null&&(r=fB.call(this,t)),r},fixed:ef}},symbolSize:{applyVisual:Lp("symbolSize"),_normalizedToVisual:$A([0,1])}},e}();function d8e(e){var t=e.pieceList;e.hasSpecialVisual=!1,K(t,function(n,r){n.originIndex=r,n.visual!=null&&(e.hasSpecialVisual=!0)})}function h8e(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(Hm(t,function(o,s){n[o]=s}),!et(r)){var a=[];Ot(r)?Hm(r,function(o,s){var l=n[s];a[l??I_]=o}):a[I_]=r,r=sq(e,a)}for(var i=t.length-1;i>=0;i--)r[i]==null&&(delete n[t[i]],t.pop())}function n2(e,t){var n=e.visual,r=[];Ot(n)?Hm(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]),sq(e,r)}function ub(e){return{applyVisual:function(t,n,r){var a=this.mapValueToVisual(t);r("color",e(n("color"),a))},_normalizedToVisual:$A([0,1])}}function fB(e){var t=this.option.visual;return t[Math.round(Vn(e,[0,1],[0,t.length-1],!0))]||{}}function Lp(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function Jp(e){var t=this.option.visual;return t[this.option.loop&&e!==I_?e%t.length:e]}function ef(){return this.option.visual[0]}function $A(e){return{linear:function(t){return Vn(t,e,this.option.visual,!0)},category:Jp,piecewise:function(t,n){var r=BA.call(this,n);return r==null&&(r=Vn(t,e,this.option.visual,!0)),r},fixed:ef}}function BA(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=QD.findPieceIndex(e,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function sq(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=at(t,function(n){var r=Qa(n);return r||[0,0,0,1]})),t}var v8e={linear:function(e){return Vn(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=QD.findPieceIndex(e,t,!0);if(n!=null)return Vn(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??I_},fixed:Er};function cb(e,t,n){return e?t<=n:t<n}const wa=QD;var p8e="itemStyle",lq=Ln();const g8e={seriesType:"treemap",reset:function(e){var t=e.getData().tree,n=t.root;n.isRemoved()||uq(n,{},e.getViewRoot().getAncestors(),e)}};function uq(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(p8e),l=m8e(s,t,r),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=dB(l),c=y8e(f,d)),u.stroke=c;var h=e.viewChildren;if(!h||!h.length)d=dB(l),u.fill=d;else{var v=b8e(e,a,i,s,l,h);K(h,function(p,g){if(p.depth>=n.length||p===n[p.depth]){var m=_8e(a,l,p,g,v,r);uq(p,m,n,r)}})}}}function m8e(e,t,n){var r=je({},t),a=n.designatedVisualItemStyle;return K(["color","colorAlpha","colorSaturation"],function(i){a[i]=t[i];var o=e.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function dB(e){var t=r2(e,"color");if(t){var n=r2(e,"colorAlpha"),r=r2(e,"colorSaturation");return r&&(t=Mh(t,null,null,r)),n&&(t=wm(t,n)),t}}function y8e(e,t){return t!=null?Mh(t,null,null,e):null}function r2(e,t){var n=e[t];if(n!=null&&n!=="none")return n}function b8e(e,t,n,r,a,i){if(!(!i||!i.length)){var o=a2(t,"color")||a.color!=null&&a.color!=="none"&&(a2(t,"colorAlpha")||a2(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 wa(f);return lq(d).drColorMappingBy=c,d}}}function a2(e,t){var n=e.get(t);return et(n)&&n.length?{name:t,range:n}:null}function _8e(e,t,n,r,a,i){var o=je({},t);if(a){var s=a.type,l=s==="color"&&lq(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 Wm=Math.max,D_=Math.min,hB=na,eL=K,cq=["itemStyle","borderWidth"],w8e=["itemStyle","gapWidth"],S8e=["upperLabel","show"],C8e=["upperLabel","height"];const x8e={seriesType:"treemap",reset:function(e,t,n,r){var a=n.getWidth(),i=n.getHeight(),o=e.option,s=Yr(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=yt(hB(s.width,l[0]),a),c=yt(hB(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],h=zm(r,d,e),v=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,p=e.getViewRoot(),g=aq(p);if(f!=="treemapMove"){var m=f==="treemapZoomToNode"?I8e(e,h,p,u,c):v?[v.width,v.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var w={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var S={x:0,y:0,width:m[0],height:m[1],area:m[0]*m[1]};p.setLayout(S),fq(p,w,!1,0),S=p.getLayout(),eL(g,function(y,x){var T=(g[x+1]||p).getValue();y.setLayout(je({dataExtent:[T,T],borderWidth:0,upperHeight:0},S))})}var C=e.getData().tree.root;C.setLayout(D8e(s,v,h),!0),e.setLayoutInfo(s),dq(C,new sn(-s.x,-s.y,a,i),g,p,0)}};function fq(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(cq),u=s.get(w8e)/2,c=hq(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=Wm(a-2*d,0),i=Wm(i-d-h,0);var v=a*i,p=T8e(e,s,v,t,n,r);if(p.length){var g={x:d,y:h,width:a,height:i},m=D_(a,i),b=1/0,w=[];w.area=0;for(var S=0,C=p.length;S<C;){var y=p[S];w.push(y),w.area+=y.getLayout().area;var x=M8e(w,m,t.squareRatio);x<=b?(S++,b=x):(w.area-=w.pop().getLayout().area,vB(w,m,g,u,!1),m=D_(g.width,g.height),w.length=w.area=0,b=1/0)}if(w.length&&vB(w,m,g,u,!0),!n){var T=s.get("childrenVisibleMin");T!=null&&v<T&&(n=!0)}for(var S=0,C=p.length;S<C;S++)fq(p[S],t,n,r+1)}}}function T8e(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=zn(o,function(h){return!h.isRemoved()}),A8e(o,s);var u=E8e(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=k8e(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 k8e(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 A8e(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 E8e(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],eL(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 M8e(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?Wm(u*r/l,l/(u*a)):1/0}function vB(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]]=Wm(c-2*r,0),m=n[s[i]]+n[l[i]]-u,b=f===d-1||m<p?m:p,w=v[l[i]]=Wm(b-2*r,0);v[s[o]]=n[s[o]]+D_(r,g/2),v[s[i]]=u+D_(r,w/2),u+=b,h.setLayout(v,!0)}n[s[o]]+=c,n[l[o]]-=c}function I8e(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(cq),m=Math.max(g,hq(p));u+=4*g*g+(3*g+m)*Math.pow(u,.5),u>Kk&&(u=Kk),i=s}u<l&&(u=l);var b=Math.pow(u/l,.5);return[r*b,a*b]}function D8e(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 dq(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 sn(t.x-i.x,t.y-i.y,t.width,t.height);eL(e.viewChildren||[],function(u){dq(u,l,n,r,a+1)})}}function hq(e){return e.get(S8e)?e.get(C8e):0}function L8e(e){e.registerSeriesModel(X6e),e.registerChartView(c8e),e.registerVisual(g8e),e.registerLayout(x8e),j6e(e)}function P8e(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){Dn(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function R8e(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){St(l)&&(l=i["ec-"+l]);var u=r.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");je(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 fb(e){return e instanceof Array||(e=[e,e]),e}function O8e(e){e.eachSeriesByType("graph",function(t){var n=t.getGraph(),r=t.getEdgeData(),a=fb(t.get("edgeSymbol")),i=fb(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=fb(s.getShallow("symbol",!0)),c=fb(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(o,"style");switch(je(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 FA="-->",xS=function(e){return e.get("autoCurveness")||null},vq=function(e,t){var n=xS(e),r=20,a=[];if(Dn(n))r=n;else if(et(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},Gm=function(e,t,n){var r=[e.id,e.dataIndex].join("."),a=[t.id,t.dataIndex].join(".");return[n.uid,r,a].join(FA)},pq=function(e){var t=e.split(FA);return[t[0],t[2],t[1]].join(FA)},N8e=function(e,t){var n=Gm(e.node1,e.node2,t);return t.__edgeMap[n]},$8e=function(e,t){var n=VA(Gm(e.node1,e.node2,t),t),r=VA(Gm(e.node2,e.node1,t),t);return n+r},VA=function(e,t){var n=t.__edgeMap;return n[e]?n[e].length:0};function B8e(e){xS(e)&&(e.__curvenessList=[],e.__edgeMap={},vq(e))}function F8e(e,t,n,r){if(xS(n)){var a=Gm(e,t,n),i=n.__edgeMap,o=i[pq(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 tL(e,t,n,r){var a=xS(t),i=et(a);if(!a)return null;var o=N8e(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=$8e(e,t);vq(t,u),e.lineStyle=e.lineStyle||{};var c=Gm(e.node1,e.node2,t),f=t.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var h=pq(c),v=VA(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 gq(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")])}),nL(n,e)}}function nL(e,t){e.eachEdge(function(n,r){var a=Yo(n.getModel().get(["lineStyle","curveness"]),-tL(n,t,r,!0),0),i=Ps(n.node1.getLayout()),o=Ps(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 V8e(e,t){e.eachSeriesByType("graph",function(n){var r=n.get("layout"),a=n.coordinateSystem;if(a&&a.type!=="view"){var i=n.getData(),o=[];K(a.dimensions,function(d){o=o.concat(i.mapDimensionsAll(d))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}nL(i.graph,n)}else(!r||r==="none")&&gq(n)})}function Qp(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 eg(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var pB=Math.PI,i2=[];function rL(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];cd(p,p),yg(p,p,c),n.setLayout([l+p[0],u+p[1]],!0);var g=e.get(["circular","rotateLabel"]);mq(n,g,l,u)}z8e[t](e,s,o,c,l,u,f),s.eachEdge(function(m,b){var w=Yo(m.getModel().get(["lineStyle","curveness"]),tL(m,e,b),0),S=Ps(m.node1.getLayout()),C=Ps(m.node2.getLayout()),y,x=(S[0]+C[0])/2,T=(S[1]+C[1])/2;+w&&(w*=3,y=[l*w+x*(1-w),u*w+T*(1-w)]),m.setLayout([S,C,y])})}}}var z8e={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;i2.length=o;var l=Qp(e);t.eachNode(function(f){var d=eg(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/r);isNaN(h)&&(h=pB/2),i2[f.dataIndex]=h,s+=h*2});var u=(2*pB-s)/o/2,c=0;t.eachNode(function(f){var d=u+i2[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+a,r*Math.sin(c)+i]),c+=d})}};function mq(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");je(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function H8e(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&rL(t,"symbolSize")})}var Gd=q1;function W8e(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=sc(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Ps(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,w=0;w<a.length;w++){var S=a[w];if(!S.ignoreForceLayout){var C=S.n1,y=S.n2;_u(m,y.p,C.p);var x=ym(m)-S.d,T=y.w/(C.w+y.w);isNaN(T)&&(T=0),cd(m,m),!C.fixed&&Gd(C.p,C.p,m,T*x*h),!y.fixed&&Gd(y.p,y.p,m,-(1-T)*x*h)}}for(var w=0;w<b;w++){var A=r[w];A.fixed||(_u(m,l,A.p),Gd(A.p,A.p,m,u*h))}for(var w=0;w<b;w++)for(var C=r[w],M=w+1;M<b;M++){var y=r[M];_u(m,y.p,C.p);var x=ym(m);x===0&&(nG(m,Math.random()-.5,Math.random()-.5),x=1);var E=(C.rep+y.rep)/x/x;!C.fixed&&Gd(C.pp,C.pp,m,E),!y.fixed&&Gd(y.pp,y.pp,m,-E)}for(var I=[],w=0;w<b;w++){var A=r[w];A.fixed||(_u(I,A.p,A.pp),Gd(A.p,A.p,I,h),Ia(A.pp,A.p))}h=h*.992;var L=h<.01;p&&p(r,a,L),g&&g(L)}}}function G8e(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(w){var S=i.getId(w);i.setItemLayout(w,r[S]||[NaN,NaN])}):!l||l==="none"?gq(t):l==="circular"&&rL(t,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=et(f)?f:[f,f],v=et(d)?d:[d,d];v=[v[1],v[0]];var p=i.mapArray("value",function(w,S){var C=i.getItemLayout(S),y=Vn(w,u,h);return isNaN(y)&&(y=(h[0]+h[1])/2),{w:y,rep:y,fixed:i.getItemModel(S).get("fixed"),p:!C||isNaN(C[0])||isNaN(C[1])?null:C}}),g=o.mapArray("value",function(w,S){var C=a.getEdgeByIndex(S),y=Vn(w,c,v);isNaN(y)&&(y=(v[0]+v[1])/2);var x=C.getModel(),T=Yo(C.getModel().get(["lineStyle","curveness"]),-tL(C,t,S,!0),0);return{n1:p[C.node1.dataIndex],n2:p[C.node2.dataIndex],d:y,curveness:T,ignoreForceLayout:x.get("ignoreForceLayout")}}),m=n.getBoundingRect(),b=W8e(p,g,{rect:m,gravity:s.get("gravity"),friction:s.get("friction")});b.beforeStep(function(w,S){for(var C=0,y=w.length;C<y;C++)w[C].fixed&&Ia(w[C].p,a.getNodeByIndex(C).getLayout())}),b.afterStep(function(w,S,C){for(var y=0,x=w.length;y<x;y++)w[y].fixed||a.getNodeByIndex(y).setLayout(w[y].p),r[i.getId(y)]=w[y].p;for(var y=0,x=S.length;y<x;y++){var T=S[y],A=a.getEdgeByIndex(y),M=T.n1.p,E=T.n2.p,I=A.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],Ia(I[0],M),Ia(I[1],E),+T.curveness&&(I[2]=[(M[0]+E[0])/2-(M[1]-E[1])*T.curveness,(M[1]+E[1])/2-(E[0]-M[0])*T.curveness]),A.setLayout(I)}}),t.forceLayout=b,t.preservedPoints=r,b.step()}else t.forceLayout=null})}function U8e(e,t,n){var r=je(e.getBoxLayoutParams(),{aspect:n});return Yr(r,{width:t.getWidth(),height:t.getHeight()})}function K8e(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=[];Xw(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=U8e(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 Ny;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 gB=ra.prototype,o2=Sy.prototype,yq=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(yq);function s2(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var j8e=function(e){Ne(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 yq},t.prototype.buildPath=function(n,r){s2(r)?gB.buildPath.call(this,n,r):o2.buildPath.call(this,n,r)},t.prototype.pointAt=function(n){return s2(this.shape)?gB.pointAt.call(this,n):o2.pointAt.call(this,n)},t.prototype.tangentAt=function(n){var r=this.shape,a=s2(r)?[r.x2-r.x1,r.y2-r.y1]:o2.tangentAt.call(this,n);return cd(a,a)},t}(pn);const Y8e=j8e;var l2=["fromSymbol","toSymbol"];function mB(e){return"_"+e+"Type"}function yB(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=Bv(a),u=vd(o||0,l);return r+l+u+(i||"")+(s||"")}function bB(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=Bv(a),u=vd(o||0,l),c=Nr(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 q8e(e){var t=new Y8e({name:"line",subPixelOptimize:!0});return zA(t.shape,e),t}function zA(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 X8e=function(e){Ne(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=q8e(o);s.shape.percent=0,cr(s,{shape:{percent:1}},i,r),this.add(s),K(l2,function(l){var u=bB(l,n,r);this.add(u),this[mB(l)]=yB(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:{}};zA(l.shape,s),Pn(o,l,i,r),K(l2,function(u){var c=yB(u,n,r),f=mB(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=bB(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=sa(v)}var g=n.getItemVisual(r,"style"),m=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,K(l2,function(y){var x=this.childOfName(y);if(x){x.setColor(m),x.style.opacity=g.opacity;for(var T=0;T<ai.length;T++){var A=ai[T],M=o.getState(A);if(M){var E=M.style||{},I=x.ensureState(A),L=I.style||(I.style={});E.stroke!=null&&(L[x.__isEmptyBrush?"stroke":"fill"]=E.stroke),E.opacity!=null&&(L.opacity=E.opacity)}}x.markRedraw()}},this);var b=i.getRawValue(r);Ta(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(y,x){return i.getFormattedLabel(y,x,n.dataType)}},inheritColor:m||"#000",defaultOpacity:g.opacity,defaultText:(b==null?n.getName(r):isFinite(b)?Tr(b):b)+""});var w=this.getTextContent();if(w){var S=c.normal;w.__align=w.style.align,w.__verticalAlign=w.style.verticalAlign,w.__position=S.get("position")||"middle";var C=S.get("distance");et(C)||(C=[C,C]),w.__labelDistance=C}this.setTextConfig({position:null,local:!0,inside:!1}),Ar(this,d,h,f)},t.prototype.highlight=function(){xl(this)},t.prototype.downplay=function(){Tl(this)},t.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},t.prototype.setLinePoints=function(n){var r=this.childOfName("line");zA(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=_u([],f,c);cd(d,d);function h(M,E){var I=M.__specifiedRotation;if(I==null){var L=l.tangentAt(E);M.attr("rotation",(E===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else M.attr("rotation",I)}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,w=u/2,S=l.tangentAt(w),C=[S[1],-S[0]],y=l.pointAt(w);C[1]>0&&(C[0]=-C[0],C[1]=-C[1]);var x=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);f[0]<c[0]&&(T=Math.PI+T),i.rotation=T}var A=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-b,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=b,p="top";break;default:A=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]+A,v=S[0]<0?"right":"left",i.originX=-m*x,i.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=y[0],i.y=y[1]+A,v="center",i.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-m*x+f[0],i.y=f[1]+A,v=S[0]>=0?"right":"left",i.originX=m*x,i.originY=-A;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||v})}},t}(Gt);const aL=X8e;var Z8e=function(){function e(t){this.group=new Gt,this._LineCtor=t||aL}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=_B(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=_B(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n){this._progressiveEls=[];function r(s){!s.isGroup&&!J8e(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=n.getItemLayout(a);if(u2(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){uc(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,n,r){var a=t.getItemLayout(n);if(u2(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(!u2(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 J8e(e){return e.animators&&e.animators.length>0}function _B(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:sa(t)}}function wB(e){return isNaN(e[0])||isNaN(e[1])}function u2(e){return e&&!wB(e[0])&&!wB(e[1])}const iL=Z8e;var c2=[],f2=[],d2=[],Ud=ha,h2=Du,SB=Math.abs;function CB(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){c2[0]=Ud(r[0],a[0],i[0],c),c2[1]=Ud(r[1],a[1],i[1],c);var f=SB(h2(c2,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;f2[0]=Ud(r[0],a[0],i[0],s),f2[1]=Ud(r[1],a[1],i[1],s),d2[0]=Ud(r[0],a[0],i[0],h),d2[1]=Ud(r[1],a[1],i[1],h);var f=h2(f2,t)-l;if(SB(f)<.01)break;var v=h2(d2,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 v2(e,t){var n=[],r=bm,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=[Ps(u[0]),Ps(u[1])],u[2]&&u.__original.push(Ps(u[2])));var d=u.__original;if(u[2]!=null){if(Ia(a[0],d[0]),Ia(a[1],d[2]),Ia(a[2],d[1]),c&&c!=="none"){var h=eg(s.node1),v=CB(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=eg(s.node2),v=CB(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]}Ia(u[0],a[0]),Ia(u[1],a[2]),Ia(u[2],a[1])}else{if(Ia(i[0],d[0]),Ia(i[1],d[1]),_u(o,i[1],i[0]),cd(o,o),c&&c!=="none"){var h=eg(s.node1);q1(i[0],i[0],o,h*t)}if(f&&f!=="none"){var h=eg(s.node2);q1(i[1],i[1],o,-h*t)}Ia(u[0],i[0]),Ia(u[1],i[1])}})}function xB(e){return e.type==="view"}var Q8e=function(e){Ne(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 Dy,i=new iL,o=this.group;this._controller=new Oy(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(xB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Pn(u,c,n)}v2(n.getGraph(),Qp(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(w){var S=w.dataIndex,C=w.getGraphicEl(),y=w.getModel();if(C){C.off("drag").off("dragend");var x=y.get("draggable");x&&C.on("drag",function(A){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(S),f.setItemLayout(S,[C.x,C.y]);break;case"circular":f.setItemLayout(S,[C.x,C.y]),w.setLayout({fixed:!0},!0),rL(n,"symbolSize",w,[A.offsetX,A.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(S,[C.x,C.y]),nL(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),C.setDraggable(x,!!y.get("cursor"));var T=y.get(["emphasis","focus"]);T==="adjacency"&&(Jt(C).focus=w.getAdjacentDataIndices())}}),f.graph.eachEdge(function(w){var S=w.getGraphicEl(),C=w.getModel().get(["emphasis","focus"]);S&&C==="adjacency"&&(Jt(S).focus={edge:[w.dataIndex],node:[w.node1.dataIndex,w.node2.dataIndex]})});var g=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),m=f.getLayout("cx"),b=f.getLayout("cy");f.graph.eachNode(function(w){mq(w,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)&&!wS(u,a,n)}),!xB(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){KD(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){jD(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(),v2(n.getGraph(),Qp(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=Qp(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},t.prototype.updateLayout=function(n){v2(n.getGraph(),Qp(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}(Xn);const eze=Q8e;function Kd(e){return"_EC_"+e}var tze=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[Kd(t)]){var a=new tf(t,n);return a.hostGraph=this,this.nodes.push(a),r[Kd(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[Kd(t)]},e.prototype.addEdge=function(t,n,r){var a=this._nodesMap,i=this._edgesMap;if(Dn(t)&&(t=this.nodes[t]),Dn(n)&&(n=this.nodes[n]),t instanceof tf||(t=a[Kd(t)]),n instanceof tf||(n=a[Kd(n)]),!(!t||!n)){var o=t.id+"-"+n.id,s=new bq(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 tf&&(t=t.id),n instanceof tf&&(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 tf||(n=this._nodesMap[Kd(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}(),tf=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=Et(),n=Et(),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}(),bq=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=Et(),n=Et();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 _q(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)}}}Ir(tf,_q("hostGraph","data"));Ir(bq,_q("hostGraph","edgeData"));const nze=tze;function wq(e,t,n,r,a){for(var i=new nze(r),o=0;o<e.length;o++)i.addNode(na(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(na(Zr(c.id,null),f+" > "+d)),u++)}var h=n.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=js(e,n);else{var p=Ov.get(h),g=p?p.dimensions||[]:[];cn(g,"value")<0&&g.concat(["value"]);var m=Fv(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;v=new Oa(m,n),v.initData(e)}var b=new Oa(["value"],n);return b.initData(l,s),a&&a(v,b),nq({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var rze=function(e){Ne(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 Ry(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),Yf(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){B8e(this);var s=wq(i,a,this,!0,l);return K(s.edges,function(u){F8e(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=Yn.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),la("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=FK({series:this,dataIndex:n,multipleSeries:r});return f},t.prototype._updateCategoriesData=function(){var n=at(this.option.categories||[],function(a){return a.value!=null?a:je({value:0},a)}),r=new Oa(["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}(or);const aze=rze;var ize={type:"graphRoam",event:"graphRoam",update:"none"};function oze(e){e.registerChartView(eze),e.registerSeriesModel(aze),e.registerProcessor(P8e),e.registerVisual(R8e),e.registerVisual(O8e),e.registerLayout(V8e),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,H8e),e.registerLayout(G8e),e.registerCoordinateSystem("graphView",{dimensions:Ny.dimensions,create:K8e}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Er),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Er),e.registerAction(ize,function(t,n,r){n.eachComponent({mainType:"series",query:t},function(a){var i=a.coordinateSystem,o=qD(i,t,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var sze=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),lze=function(e){Ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="pointer",r}return t.prototype.getDefaultShape=function(){return new sze},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}(pn);const uze=lze;function cze(e,t){var n=e.get("center"),r=t.getWidth(),a=t.getHeight(),i=Math.min(r,a),o=yt(n[0],t.getWidth()),s=yt(n[1],t.getHeight()),l=yt(e.get("radius"),i/2);return{cx:o,cy:s,r:l}}function db(e,t){var n=e==null?"":e+"";return t&&(St(t)?n=t.replace("{value}",n):It(t)&&(n=t(e))),n}var fze=function(e){Ne(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=cze(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?k_:ii,v=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),m=[u,c];JG(m,!l),u=m[0],c=m[1];for(var b=c-u,w=u,S=[],C=0;v&&C<i.length;C++){var y=Math.min(Math.max(i[C][0],0),1);c=u+b*y;var x=new h({shape:{startAngle:w,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"])),S.push(x),w=c}S.reverse(),K(S,function(A){return s.add(A)});var T=function(A){if(A<=0)return i[0][1];var M;for(M=0;M<i.length;M++)if(i[M][0]>=A&&(M===0?0:i[M-1][0])<A)return i[M][1];return i[M-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"),w=n.getModel("axisLabel"),S=n.get("splitNumber"),C=b.get("splitNumber"),y=yt(m.get("length"),v),x=yt(b.get("length"),v),T=s,A=(l-s)/S,M=A/C,E=m.getModel("lineStyle").getLineStyle(),I=b.getModel("lineStyle").getLineStyle(),L=m.get("distance"),O,z,F=0;F<=S;F++){if(O=Math.cos(T),z=Math.sin(T),m.get("show")){var $=L?L+c:c,V=new ra({shape:{x1:O*(v-$)+d,y1:z*(v-$)+h,x2:O*(v-y-$)+d,y2:z*(v-y-$)+h},style:E,silent:!0});E.stroke==="auto"&&V.setStyle({stroke:i(F/S)}),f.add(V)}if(w.get("show")){var $=w.get("distance")+L,P=db(Tr(F/S*(g-p)+p),w.get("formatter")),G=i(F/S),j=O*(v-y-$)+d,J=z*(v-y-$)+h,ne=w.get("rotate"),ve=0;ne==="radial"?(ve=-T+2*Math.PI,ve>Math.PI/2&&(ve+=Math.PI)):ne==="tangential"?ve=-T-Math.PI/2:Dn(ne)&&(ve=ne*Math.PI/180),ve===0?f.add(new An({style:er(w,{text:P,x:j,y:J,verticalAlign:z<-.8?"top":z>.8?"bottom":"middle",align:O<-.4?"left":O>.4?"right":"center"},{inheritColor:G}),silent:!0})):f.add(new An({style:er(w,{text:P,x:j,y:J,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:j,originY:J,rotation:ve}))}if(b.get("show")&&F!==S){var $=b.get("distance");$=$?$+c:c;for(var le=0;le<=C;le++){O=Math.cos(T),z=Math.sin(T);var ce=new ra({shape:{x1:O*(v-$)+d,y1:z*(v-$)+h,x2:O*(v-x-$)+d,y2:z*(v-x-$)+h},silent:!0,style:I});I.stroke==="auto"&&ce.setStyle({stroke:i((F+le/C)/S)}),f.add(ce),T+=M}T-=M}else T+=A}},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(),w=b.mapDimension("value"),S=+n.get("min"),C=+n.get("max"),y=[S,C],x=[s,l];function T(M,E){var I=b.getItemModel(M),L=I.getModel("pointer"),O=yt(L.get("width"),o.r),z=yt(L.get("length"),o.r),F=n.get(["pointer","icon"]),$=L.get("offsetCenter"),V=yt($[0],o.r),P=yt($[1],o.r),G=L.get("keepAspect"),j;return F?j=Nr(F,V-O/2,P-z,O,z,null,G):j=new uze({shape:{angle:-Math.PI/2,width:O,r:z,x:V,y:P}}),j.rotation=-(E+Math.PI/2),j.x=o.cx,j.y=o.cy,j}function A(M,E){var I=g.get("roundCap"),L=I?k_:ii,O=g.get("overlap"),z=O?g.get("width"):c/b.count(),F=O?o.r-z:o.r-(M+1)*z,$=O?o.r:o.r-M*z,V=new L({shape:{startAngle:s,endAngle:E,cx:o.cx,cy:o.cy,clockwise:u,r0:F,r:$}});return O&&(V.z2=C-b.get(w,M)%C),V}(m||p)&&(b.diff(d).add(function(M){var E=b.get(w,M);if(p){var I=T(M,s);cr(I,{rotation:-((isNaN(+E)?x[0]:Vn(E,y,x,!0))+Math.PI/2)},n),f.add(I),b.setItemGraphicEl(M,I)}if(m){var L=A(M,s),O=g.get("clip");cr(L,{shape:{endAngle:Vn(E,y,x,O)}},n),f.add(L),Jk(n.seriesIndex,b.dataType,M,L),v[M]=L}}).update(function(M,E){var I=b.get(w,M);if(p){var L=d.getItemGraphicEl(E),O=L?L.rotation:s,z=T(M,O);z.rotation=O,Pn(z,{rotation:-((isNaN(+I)?x[0]:Vn(I,y,x,!0))+Math.PI/2)},n),f.add(z),b.setItemGraphicEl(M,z)}if(m){var F=h[E],$=F?F.shape.endAngle:s,V=A(M,$),P=g.get("clip");Pn(V,{shape:{endAngle:Vn(I,y,x,P)}},n),f.add(V),Jk(n.seriesIndex,b.dataType,M,V),v[M]=V}}).execute(),b.each(function(M){var E=b.getItemModel(M),I=E.getModel("emphasis"),L=I.get("focus"),O=I.get("blurScope"),z=I.get("disabled");if(p){var F=b.getItemGraphicEl(M),$=b.getItemVisual(M,"style"),V=$.fill;if(F instanceof ga){var P=F.style;F.useStyle(je({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},$))}else F.useStyle($),F.type!=="pointer"&&F.setColor(V);F.setStyle(E.getModel(["pointer","itemStyle"]).getItemStyle()),F.style.fill==="auto"&&F.setStyle("fill",i(Vn(b.get(w,M),y,[0,1],!0))),F.z2EmphasisLift=0,xa(F,E),Ar(F,L,O,z)}if(m){var G=v[M];G.useStyle(b.getItemVisual(M,"style")),G.setStyle(E.getModel(["progress","itemStyle"]).getItemStyle()),G.z2EmphasisLift=0,xa(G,E),Ar(G,L,O,z)}}),this._progressEls=v)},t.prototype._renderAnchor=function(n,r){var a=n.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=Nr(s,r.cx-o/2+yt(l[0],r.r),r.cy-o/2+yt(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 Gt,h=[],v=[],p=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(m){h[m]=new An({silent:!0}),v[m]=new An({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),w=l.get(u,m),S=new Gt,C=i(Vn(w,[c,f],[0,1],!0)),y=b.getModel("title");if(y.get("show")){var x=y.get("offsetCenter"),T=o.cx+yt(x[0],o.r),A=o.cy+yt(x[1],o.r),M=h[m];M.attr({z2:g?0:2,style:er(y,{x:T,y:A,text:l.getName(m),align:"center",verticalAlign:"middle"},{inheritColor:C})}),S.add(M)}var E=b.getModel("detail");if(E.get("show")){var I=E.get("offsetCenter"),L=o.cx+yt(I[0],o.r),O=o.cy+yt(I[1],o.r),z=yt(E.get("width"),o.r),F=yt(E.get("height"),o.r),$=n.get(["progress","show"])?l.getItemVisual(m,"style").fill:C,M=v[m],V=E.get("formatter");M.attr({z2:g?0:2,style:er(E,{x:L,y:O,text:db(w,V),width:isNaN(z)?null:z,height:isNaN(F)?null:F,align:"center",verticalAlign:"middle"},{inheritColor:$})}),GU(M,{normal:E},w,function(G){return db(G,V)}),p&&UU(M,m,l,n,{getFormattedLabel:function(G,j,J,ne,ve,le){return db(le?le.interpolatedValue:w,V)}}),S.add(M)}d.add(S)}),this.group.add(d),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(Xn);const dze=fze;var hze=function(e){Ne(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 zv(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}(or);const vze=hze;function pze(e){e.registerChartView(dze),e.registerSeriesModel(vze)}var gze=["itemStyle","opacity"],mze=function(e){Ne(t,e);function t(n,r){var a=e.call(this)||this,i=a,o=new li,s=new An;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(gze);c=c??1,a||rs(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,cr(i,{style:{opacity:c}},o,r)):Pn(i,{style:{opacity:c},shape:{points:l.points}},o,r),xa(i,s),this._updateLabel(n,r),Ar(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;Ta(o,sa(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 an(h[0][0],h[0][1]):null},Pn(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),$D(a,BD(l),{stroke:d})},t}(oi),yze=function(e){Ne(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 mze(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);Mm(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}(Xn);const bze=yze;var _ze=function(e){Ne(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 Ry(Ct(this.getData,this),Ct(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.getInitialData=function(n,r){return zv(this,{coordDimensions:["value"],encodeDefaulter:Zt(lD,this)})},t.prototype._defaultLabelLine=function(n){Yf(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}(or);const wze=_ze;function Sze(e,t){return Yr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Cze(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 It(t)?a.sort(t):t!=="none"&&a.sort(function(l,u){return i?r[l]-r[u]:r[u]-r[l]}),a}function xze(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,w=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=p-w,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+w,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-w,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+w,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-w,h=b-5,f="center"):(m=p+w,d=m+5,f="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],n==="horizontal"?(b=g+w,h=b+5,f="center"):(m=p+w,d=m+5,f="bottom")):o==="leftTop"?(p=u[0][0],g=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(b=g-w,h=b-5,f="center"):(m=p-w,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+w,h=b+5,f="center"):(m=p-w,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+w,h=b+5,f="center"):(m=p+w,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 Tze(e,t){e.eachSeriesByType("funnel",function(n){var r=n.getData(),a=r.mapDimension("value"),i=n.get("sort"),o=Sze(n,t),s=n.get("orient"),l=o.width,u=o.height,c=Cze(r,i),f=o.x,d=o.y,h=s==="horizontal"?[yt(n.get("minSize"),u),yt(n.get("maxSize"),u)]:[yt(n.get("minSize"),l),yt(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"),w=s==="horizontal"?l:u,S=(w-b*(r.count()-1))/r.count(),C=function(O,z){if(s==="horizontal"){var F=r.get(a,O)||0,$=Vn(F,[p,g],h,!0),V=void 0;switch(m){case"top":V=d;break;case"center":V=d+(u-$)/2;break;case"bottom":V=d+(u-$);break}return[[z,V],[z,V+$]]}var P=r.get(a,O)||0,G=Vn(P,[p,g],h,!0),j;switch(m){case"left":j=f;break;case"center":j=f+(l-G)/2;break;case"right":j=f+l-G;break}return[[j,z],[j+G,z]]};i==="ascending"&&(S=-S,b=-b,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var y=0;y<c.length;y++){var x=c[y],T=c[y+1],A=r.getItemModel(x);if(s==="horizontal"){var M=A.get(["itemStyle","width"]);M==null?M=S:(M=yt(M,l),i==="ascending"&&(M=-M));var E=C(x,f),I=C(T,f+M);f+=M+b,r.setItemLayout(x,{points:E.concat(I.slice().reverse())})}else{var L=A.get(["itemStyle","height"]);L==null?L=S:(L=yt(L,u),i==="ascending"&&(L=-L));var E=C(x,d),I=C(T,d+L);d+=L+b,r.setItemLayout(x,{points:E.concat(I.slice().reverse())})}}xze(r)})}function kze(e){e.registerChartView(bze),e.registerSeriesModel(wze),e.registerLayout(Tze),e.registerProcessor(Py("funnel"))}var Aze=.3,Eze=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._dataGroup=new Gt,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=kB(n);s.diff(l).add(d).update(h).remove(v).execute();function d(g){var m=TB(s,o,g,c,u);p2(m,s,g,f)}function h(g,m){var b=l.getItemGraphicEl(m),w=Sq(s,g,c,u);s.setItemGraphicEl(g,b),Pn(b,{shape:{points:w}},n,g),rs(b),p2(b,s,g,f)}function v(g){var m=l.getItemGraphicEl(g);o.remove(m)}if(!this._initialized){this._initialized=!0;var p=Mze(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=kB(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=TB(i,this._dataGroup,c,s,o);f.incremental=!0,p2(f,i,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Xn);function Mze(e,t,n){var r=e.model,a=e.getRect(),i=new En({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),cr(i,{shape:{width:a.width,height:a.height}},t,n),i}function Sq(e,t,n,r){for(var a=[],i=0;i<n.length;i++){var o=n[i],s=e.get(e.mapDimension(o),t);Ize(s,r.getAxis(o).type)||a.push(r.dataToPoint(s,o))}return a}function TB(e,t,n,r,a){var i=Sq(e,n,r,a),o=new li({shape:{points:i},z2:10});return t.add(o),e.setItemGraphicEl(n,o),o}function kB(e){var t=e.get("smooth",!0);return t===!0&&(t=Aze),t=Hs(t),av(t)&&(t=0),{smooth:t}}function p2(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");xa(e,a,"lineStyle"),Ar(e,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function Ize(e,t){return t==="category"?e==null:e==null||isNaN(e)}const Dze=Eze;var Lze=function(e){Ne(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 js(null,this,{useEncodeDefaulter:Ct(Pze,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}(or);function Pze(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var n={};return K(t.dimensions,function(r){var a=Rze(r);n[r]=a}),n}}function Rze(e){return+e.replace("dim","")}const Oze=Lze;var Nze=["lineStyle","opacity"],$ze={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(Nze,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const Bze=$ze;function Fze(e){Vze(e),zze(e)}function Vze(e){if(!e.parallel){var t=!1;K(e.series,function(n){n&&n.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function zze(e){var t=qn(e.parallelAxis);K(t,function(n){if(Ot(n)){var r=n.parallelIndex||0,a=qn(e.parallel)[r];a&&a.parallelAxisDefault&&rn(n,a.parallelAxisDefault,!1)}})}var Hze=5,Wze=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,a){this._model=n,this._api=a,this._handlers||(this._handlers={},K(Gze,function(i,o){a.getZr().on(o,this._handlers[o]=Ct(i,this))},this)),$v(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(n,r){Rm(this,"_throttledDispatchExpand"),K(this._handlers,function(a,i){r.getZr().off(i,a)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},t.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(je({type:"parallelAxisExpand"},n))},t.type="parallel",t}(gr),Gze={mousedown:function(e){g2(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(g2(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>Hze)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||!g2(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 g2(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}const Uze=Wze;var Kze=function(e){Ne(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&&rn(r,n,!0),this._initDimensions()},t.prototype.contains=function(n,r){var a=n.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},t.prototype.setAxisExpand=function(n){K(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},t.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],a=zn(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);K(a,function(i){n.push("dim"+i.get("dim")),r.push(i.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(kn);const jze=Kze;var Yze=function(e){Ne(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}(To);const qze=Yze;function md(e,t,n,r,a,i){e=e||0;var o=n[1]-n[0];if(a!=null&&(a=jd(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(t[1]-t[0]);s=jd(s,[0,o]),a=i=jd(s,[a,i]),r=0}t[0]=jd(t[0],n),t[1]=jd(t[1],n);var l=m2(t,r);t[r]+=e;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,t[r]=jd(t[r],c);var f;return f=m2(t,r),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-r]=t[r]+l.sign*a),f=m2(t,r),i!=null&&f.span>i&&(t[1-r]=t[r]+f.sign*i),t}function m2(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 jd(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var y2=K,Cq=Math.min,xq=Math.max,AB=Math.floor,Xze=Math.ceil,EB=Tr,Zze=Math.PI,Jze=function(){function e(t,n,r){this.type="parallel",this._axesMap=Et(),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;y2(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new qze(o,Ey(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();y2(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),Qf(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,n){this._rect=Yr(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=hb(t.get("axisExpandWidth"),l),f=hb(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=hb(h[1]-h[0],l),h[1]=h[0]+v;else{v=hb(c*(f-1),l);var p=t.get("axisExpandCenter")||AB(u/2);h=[c*p-v/2],h[1]=h[0]+v}var g=(s-v)/(u-f);g<3&&(g=0);var m=[AB(EB(h[0]/c,1))+1,Xze(EB(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])}),y2(r,function(o,s){var l=(a.axisExpandable?eHe:Qze)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Zze/2,vertical:0},f=[u[i].x+t.x,u[i].y+t.y],d=c[i],h=Bi();lc(h,h,d),es(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(t),n)},e.prototype.eachActiveState=function(t,n,r,a){r==null&&(r=0),a==null&&(a=t.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];K(o,function(g){s.push(t.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=r;c<a;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=t.getValues(s,c),h=0,v=o.length;h<v;h++){var p=l[h].getActiveState(d[h]);if(p==="inactive"){f="inactive";break}}}n(f,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,n=this._axesMap,r=!1,a=0,i=t.length;a<i;a++)n.get(t[a]).model.getActiveState()!=="normal"&&(r=!0);return r},e.prototype.axisCoordToPoint=function(t,n){var r=this._axesLayout[n];return Zo([t,0],r.transform)},e.prototype.getAxisLayout=function(t){return Ft(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?md(l,a,o,"all"):u="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[xq(0,v-h/2)],a[1]=Cq(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},e}();function hb(e,t){return Cq(xq(e,t[0]),t[1])}function Qze(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function eHe(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 tHe=Jze;function nHe(e,t){var n=[];return e.eachComponent("parallel",function(r,a){var i=new tHe(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",Hr).models[0];r.coordinateSystem=a.coordinateSystem}}),n}var rHe={create:nHe};const aHe=rHe;var Tq=function(e){Ne(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 Xf([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=Ft(n);if(r)for(var a=r.length-1;a>=0;a--)Ri(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}(kn);Ir(Tq,Vv);const MB=Tq;var ed=!0,Um=Math.min,cv=Math.max,iHe=Math.pow,oHe=1e4,sHe=6,lHe=6,IB="globalPan",uHe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},cHe={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},DB={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},fHe=0,dHe=function(e){Ne(t,e);function t(n){var r=e.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new Gt,r._uid="brushController_"+fHe++,K(bHe,function(a,i){this._handlers[i]=Ct(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||SVe(r,IB,this._uid),K(this._handlers,function(a,i){r.on(i,a)}),this._brushType=n.brushType,this._brushOption=rn(Ft(DB),n,!0)},t.prototype._doDisableBrush=function(){var n=this._zr;CVe(n,IB,this._uid),K(this._handlers,function(r,a){n.off(a,r)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};K(n,function(a){r[a.panelId]=Ft(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=at(n,function(d){return rn(Ft(DB),d,!0)});var r="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new kl(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]):Aq(o,kq(o,v));oL(o,p)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},t.prototype.unmount=function(){return this.enableBrush(!1),HA(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(wo);function kq(e,t){var n=TS[t.brushType].createCover(e,t);return n.__brushOption=t,Mq(n,t),e.group.add(n),n}function Aq(e,t){var n=sL(t);return n.endCreating&&(n.endCreating(e,t),Mq(t,t.__brushOption)),t}function Eq(e,t){var n=t.__brushOption;sL(t).updateCoverShape(e,t,n.range,n)}function Mq(e,t){var n=t.z;n==null&&(n=oHe),e.traverse(function(r){r.z=n,r.z2=n})}function oL(e,t){sL(t).updateCommon(e,t),Eq(e,t)}function sL(e){return TS[e.__brushOption.brushType]}function lL(e,t,n){var r=e._panels;if(!r)return ed;var a,i=e._transform;return K(r,function(o){o.isTargetByCursor(t,n,i)&&(a=o)}),a}function Iq(e,t){var n=e._panels;if(!n)return ed;var r=t.__brushOption.panelId;return r!=null?n[r]:ed}function HA(e){var t=e._covers,n=t.length;return K(t,function(r){e.group.remove(r)},e),t.length=0,!!n}function td(e,t){var n=at(e._covers,function(r){var a=r.__brushOption,i=Ft(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});e.trigger("brush",{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function hHe(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=iHe(a*a+i*i,.5);return o>sHe}function Dq(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Lq(e,t,n,r){var a=new Gt;return a.add(new En({name:"main",style:uL(n),silent:!0,draggable:!0,cursor:"move",drift:Zt(LB,e,t,a,["n","s","w","e"]),ondragend:Zt(td,t,{isEnd:!0})})),K(r,function(i){a.add(new En({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Zt(LB,e,t,a,i),ondragend:Zt(td,t,{isEnd:!0})}))}),a}function Pq(e,t,n,r){var a=r.brushStyle.lineWidth||0,i=cv(a,lHe),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;Js(e,t,"main",o,s,v,p),r.transformable&&(Js(e,t,"w",l,u,i,m),Js(e,t,"e",d,u,i,m),Js(e,t,"n",l,u,g,i),Js(e,t,"s",l,h,g,i),Js(e,t,"nw",l,u,i,i),Js(e,t,"ne",d,u,i,i),Js(e,t,"sw",l,h,i,i),Js(e,t,"se",d,h,i,i))}function WA(e,t){var n=t.__brushOption,r=n.transformable,a=t.childAt(0);a.useStyle(uL(n)),a.attr({silent:!r,cursor:r?"move":"default"}),K([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=t.childOfName(i.join("")),s=i.length===1?GA(e,i[0]):pHe(e,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?cHe[s]+"-resize":null})})}function Js(e,t,n,r,a,i,o){var s=t.childOfName(n);s&&s.setShape(mHe(cL(e,t,[[r,a],[r+i,a+o]])))}function uL(e){return Lt({strokeNoScale:!0},e.brushStyle)}function Rq(e,t,n,r){var a=[Um(e,n),Um(t,r)],i=[cv(e,n),cv(t,r)];return[[a[0],i[0]],[a[1],i[1]]]}function vHe(e){return Ru(e.group)}function GA(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=rS(n[t],vHe(e));return r[a]}function pHe(e,t){var n=[GA(e,t[0]),GA(e,t[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function LB(e,t,n,r,a,i){var o=n.__brushOption,s=e.toRectRange(o.range),l=Oq(t,a,i);K(r,function(u){var c=uHe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(Rq(s[0][0],s[1][0],s[0][1],s[1][1])),oL(t,n),td(t,{isEnd:!1})}function gHe(e,t,n,r){var a=t.__brushOption.range,i=Oq(e,n,r);K(a,function(o){o[0]+=i[0],o[1]+=i[1]}),oL(e,t),td(e,{isEnd:!1})}function Oq(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 cL(e,t,n){var r=Iq(e,t);return r&&r!==ed?r.clipPath(n,e._transform):Ft(n)}function mHe(e){var t=Um(e[0][0],e[1][0]),n=Um(e[0][1],e[1][1]),r=cv(e[0][0],e[1][0]),a=cv(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:a-n}}function yHe(e,t,n){if(!(!e._brushType||_He(e,t.offsetX,t.offsetY))){var r=e._zr,a=e._covers,i=lL(e,t,n);if(!e._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===ed||s.panelId===i.panelId)&&TS[s.brushType].contain(a[o],n[0],n[1]))return}i&&r.setCursorStyle("crosshair")}}function UA(e){var t=e.event;t.preventDefault&&t.preventDefault()}function KA(e,t,n){return e.childOfName("main").contain(t,n)}function Nq(e,t,n,r){var a=e._creatingCover,i=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),hHe(e)||a){if(i&&!a){o.brushMode==="single"&&HA(e);var l=Ft(o);l.brushType=PB(l.brushType,i),l.panelId=i===ed?null:i.panelId,a=e._creatingCover=kq(e,l),e._covers.push(a)}if(a){var u=TS[PB(e._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(cL(e,a,e._track)),r&&(Aq(e,a),u.updateCommon(e,a)),Eq(e,a),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&lL(e,t,n)&&HA(e)&&(s={isEnd:r,removeOnClick:!0});return s}function PB(e,t){return e==="auto"?t.defaultBrushType:e}var bHe={mousedown:function(e){if(this._dragging)RB(this,e);else if(!e.target||!e.target.draggable){UA(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var n=this._creatingPanel=lL(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(yHe(this,e,r),this._dragging){UA(e);var a=Nq(this,e,r,!1);a&&td(this,a)}},mouseup:function(e){RB(this,e)}};function RB(e,t){if(e._dragging){UA(t);var n=t.offsetX,r=t.offsetY,a=e.group.transformCoordToLocal(n,r),i=Nq(e,t,a,!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&td(e,i)}}function _He(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var TS={lineX:OB(0),lineY:OB(1),rect:{createCover:function(e,t){function n(r){return r}return Lq({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=Dq(e);return Rq(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){Pq(e,t,n,r)},updateCommon:WA,contain:KA},polygon:{createCover:function(e,t){var n=new Gt;return n.add(new li({name:"main",style:uL(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new oi({name:"main",draggable:!0,drift:Zt(gHe,e,t),ondragend:Zt(td,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:cL(e,t,n)})},updateCommon:WA,contain:KA}};function OB(e){return{createCover:function(t,n){return Lq({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=Dq(t),r=Um(n[0][e],n[1][e]),a=cv(n[0][e],n[1][e]);return[r,a]},updateCoverShape:function(t,n,r,a){var i,o=Iq(t,n);if(o!==ed&&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(),Pq(t,n,l,a)},updateCommon:WA,contain:KA}}const fL=dHe;function $q(e){return e=dL(e),function(t){return ZI(t,e)}}function Bq(e,t){return e=dL(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 Fq(e,t,n){var r=dL(e);return function(a,i){return r.contain(i[0],i[1])&&!wS(a,t,n)}}function dL(e){return sn.create(e)}var wHe=["axisLine","axisTickLabel","axisName"],SHe=function(e){Ne(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 fL(r.getZr())).on("brush",Ct(this._onBrush,this))},t.prototype.render=function(n,r,a,i){if(!CHe(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Gt,this.group.add(this._axisGroup),!!n.get("show")){var s=THe(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),h=je({strokeContainThreshold:c},d),v=new El(n,h);K(wHe,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,n,s,c,a),xy(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=sn.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:$q(f),isTargetByCursor:Fq(f,s,i),getLinearBrushOtherExtent:Bq(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(xHe(a))},t.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=at(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}(gr);function CHe(e,t,n){return n&&n.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function xHe(e){var t=e.axis;return at(e.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(n[0],!0),t.dataToCoord(n[1],!0)]}})}function THe(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}const kHe=SHe;var AHe={type:"axisAreaSelect",event:"axisAreaSelected"};function EHe(e){e.registerAction(AHe,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 MHe={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Vq(e){e.registerComponentView(Uze),e.registerComponentModel(jze),e.registerCoordinateSystem("parallel",aHe),e.registerPreprocessor(Fze),e.registerComponentModel(MB),e.registerComponentView(kHe),uv(e,"parallel",MB,MHe),EHe(e)}function IHe(e){dn(Vq),e.registerChartView(Dze),e.registerSeriesModel(Oze),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,Bze)}var DHe=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}(),LHe=function(e){Ne(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new DHe},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(){xl(this)},t.prototype.downplay=function(){Tl(this)},t}(pn),PHe=function(e){Ne(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 LHe,g=Jt(p);g.dataIndex=v.dataIndex,g.seriesIndex=n.seriesIndex,g.dataType="edge";var m=v.getModel(),b=m.getModel("lineStyle"),w=b.get("curveness"),S=v.node1.getLayout(),C=v.node1.getModel(),y=C.get("localX"),x=C.get("localY"),T=v.node2.getLayout(),A=v.node2.getModel(),M=A.get("localX"),E=A.get("localY"),I=v.getLayout(),L,O,z,F,$,V,P,G;p.shape.extent=Math.max(1,I.dy),p.shape.orient=h,h==="vertical"?(L=(y!=null?y*u:S.x)+I.sy,O=(x!=null?x*c:S.y)+S.dy,z=(M!=null?M*u:T.x)+I.ty,F=E!=null?E*c:T.y,$=L,V=O*(1-w)+F*w,P=z,G=O*w+F*(1-w)):(L=(y!=null?y*u:S.x)+S.dx,O=(x!=null?x*c:S.y)+I.sy,z=M!=null?M*u:T.x,F=(E!=null?E*c:T.y)+I.ty,$=L*(1-w)+z*w,V=O,P=L*w+z*(1-w),G=F),p.setShape({x1:L,y1:O,x2:z,y2:F,cpx1:$,cpy1:V,cpx2:P,cpy2:G}),p.useStyle(b.getItemStyle()),NB(p.style,h,v);var j=""+m.get("value"),J=sa(m,"edgeLabel");Ta(p,J,{labelFetcher:{getFormattedLabel:function(le,ce,ue,Q,_e,Pe){return n.getFormattedLabel(le,ce,"edge",Q,Yo(_e,J.normal&&J.normal.get("formatter"),j),Pe)}},labelDataIndex:v.dataIndex,defaultText:j}),p.setTextConfig({position:"inside"});var ne=m.getModel("emphasis");xa(p,m,"lineStyle",function(le){var ce=le.getItemStyle();return NB(ce,h,v),ce}),s.add(p),d.setItemGraphicEl(v.dataIndex,p);var ve=ne.get("focus");Ar(p,ve==="adjacency"?v.getAdjacentDataIndices():ve==="trajectory"?v.getTrajectoryDataIndices():ve,ne.get("blurScope"),ne.get("disabled"))}),o.eachNode(function(v){var p=v.getLayout(),g=v.getModel(),m=g.get("localX"),b=g.get("localY"),w=g.getModel("emphasis"),S=new En({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});Ta(S,sa(g),{labelFetcher:{getFormattedLabel:function(y,x){return n.getFormattedLabel(y,x,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),S.disableLabelAnimation=!0,S.setStyle("fill",v.getVisual("color")),S.setStyle("decal",v.getVisual("style").decal),xa(S,g),s.add(S),f.setItemGraphicEl(v.dataIndex,S),Jt(S).dataType="node";var C=w.get("focus");Ar(S,C==="adjacency"?v.getAdjacentDataIndices():C==="trajectory"?v.getTrajectoryDataIndices():C,w.get("blurScope"),w.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(RHe(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Xn);function NB(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");St(r)&&St(a)&&(e.fill=new kv(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function RHe(e,t,n){var r=new En({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return cr(r,{shape:{width:e.width+20}},t,n),r}const OHe=PHe;var NHe=function(e){Ne(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 Yn(o[l],this,r));if(i&&a){var u=wq(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,w=p.levelModels[b];w&&(h.parentModel=w)}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 la("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 la("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}(or);const $He=NHe;function BHe(e,t){e.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=FHe(n,t);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;zHe(u);var f=zn(u,function(p){return p.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),v=n.get("nodeAlign");VHe(u,c,r,a,o,s,d,h,v)})}function FHe(e,t){return Yr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function VHe(e,t,n,r,a,i,o,s,l){HHe(e,t,n,a,i,s,l),KHe(e,t,i,a,r,o,s),t9e(e,s)}function zHe(e){K(e,function(t){var n=$u(t.outEdges,L_),r=$u(t.inEdges,L_),a=t.getValue()||0,i=Math.max(n,r,a);t.setLayout({value:i},!0)})}function HHe(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 w=p.outEdges[b],S=t.indexOf(w);s[S]=0;var C=w.node2,y=e.indexOf(C);--l[y]===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"&&WHe(e,o,i,x);var T=i==="vertical"?(a-n)/x:(r-n)/x;UHe(e,T,i)}function zq(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function WHe(e,t,n,r){if(t==="right"){for(var a=[],i=e,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}K(e,function(f){zq(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&GHe(e,r)}function GHe(e,t){K(e,function(n){!zq(n)&&!n.outEdges.length&&n.setLayout({depth:t},!0)})}function UHe(e,t,n){K(e,function(r){var a=r.getLayout().depth*t;n==="vertical"?r.setLayout({y:a},!0):r.setLayout({x:a},!0)})}function KHe(e,t,n,r,a,i,o){var s=jHe(e,o);YHe(s,t,n,r,a,o),b2(s,a,n,r,o);for(var l=1;i>0;i--)l*=.99,qHe(s,l,o),b2(s,a,n,r,o),e9e(s,l,o),b2(s,a,n,r,o)}function jHe(e,t){var n=[],r=t==="vertical"?"y":"x",a=Yk(e,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),K(a.keys,function(i){n.push(a.buckets.get(i))}),n}function YHe(e,t,n,r,a,i){var o=1/0;K(e,function(s){var l=s.length,u=0;K(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(n-(l-1)*a)/u;c<o&&(o=c)}),K(e,function(s){K(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),K(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function b2(e,t,n,r,a){var i=a==="vertical"?"x":"y";K(e,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,c=0,f=o.length,d=a==="vertical"?"dx":"dy",h=0;h<f;h++)l=o[h],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+t;var v=a==="vertical"?r:n;if(u=c-t-v,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function qHe(e,t,n){K(e.slice().reverse(),function(r){K(r,function(a){if(a.outEdges.length){var i=$u(a.outEdges,XHe,n)/$u(a.outEdges,L_);if(isNaN(i)){var o=a.outEdges.length;i=o?$u(a.outEdges,ZHe,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-Xu(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Xu(a,n))*t;a.setLayout({y:l},!0)}}})})}function XHe(e,t){return Xu(e.node2,t)*e.getValue()}function ZHe(e,t){return Xu(e.node2,t)}function JHe(e,t){return Xu(e.node1,t)*e.getValue()}function QHe(e,t){return Xu(e.node1,t)}function Xu(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function L_(e){return e.getValue()}function $u(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 e9e(e,t,n){K(e,function(r){K(r,function(a){if(a.inEdges.length){var i=$u(a.inEdges,JHe,n)/$u(a.inEdges,L_);if(isNaN(i)){var o=a.inEdges.length;i=o?$u(a.inEdges,QHe,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-Xu(a,n))*t;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Xu(a,n))*t;a.setLayout({y:l},!0)}}})})}function t9e(e,t){var n=t==="vertical"?"x":"y";K(e,function(r){r.outEdges.sort(function(a,i){return a.node2.getLayout()[n]-i.node2.getLayout()[n]}),r.inEdges.sort(function(a,i){return a.node1.getLayout()[n]-i.node1.getLayout()[n]})}),K(e,function(r){var a=0,i=0;K(r.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),K(r.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function n9e(e){e.eachSeriesByType("sankey",function(t){var n=t.getGraph(),r=n.nodes,a=n.edges;if(r.length){var i=1/0,o=-1/0;K(r,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),K(r,function(s){var l=new wa({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&K(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function r9e(e){e.registerChartView(OHe),e.registerSeriesModel($He),e.registerLayout(BHe),e.registerVisual(n9e),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 Hq=function(){function e(){}return e.prototype.getInitialData=function(t,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),i=n.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(t.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",r=i.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[a,i],v=h[c].get("type"),p=h[1-c].get("type"),g=t.data;if(g&&l){var m=[];K(g,function(S,C){var y;et(S)?(y=S.slice(),S.unshift(C)):et(S.value)?(y=je({},S),y.value=y.value.slice(),S.value.unshift(C)):y=S,m.push(y)}),t.data=m}var b=this.defaultValueDimensions,w=[{name:f,type:__(v),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:__(p),dimsDef:b.slice()}];return zv(this,{coordDimensions:w,dimensionsCount:b.length+1,encodeDefaulter:Zt(cK,w,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),Wq=function(e){Ne(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}(or);Ir(Wq,Hq,!0);const a9e=Wq;var i9e=function(e){Ne(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=$B(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?(rs(f),Gq(d,f,i,u)):f=$B(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}(Xn),o9e=function(){function e(){}return e}(),s9e=function(e){Ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="boxplotBoxPath",r}return t.prototype.getDefaultShape=function(){return new o9e},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}(pn);function $B(e,t,n,r,a){var i=e.ends,o=new s9e({shape:{points:a?l9e(i,r,e):i}});return Gq(e,o,t,n,a),o}function Gq(e,t,n,r,a){var i=n.hostModel,o=Ty[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");xa(t,s),Ar(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function l9e(e,t,n){return at(e,function(r){return r=r.slice(),r[t]=n.initBaseline,r})}const u9e=i9e;var Lg=K;function c9e(e){var t=f9e(e);Lg(t,function(n){var r=n.seriesModels;r.length&&(d9e(n),Lg(r,function(a,i){h9e(a,n.boxOffsetList[i],n.boxWidthList[i])}))})}function f9e(e){var t=[],n=[];return e.eachSeriesByType("boxplot",function(r){var a=r.getBaseAxis(),i=cn(n,a);i<0&&(i=n.length,n[i]=a,t[i]={axis:a,seriesModels:[]}),t[i].seriesModels.push(r)}),t}function d9e(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;Lg(n,function(v){l=Math.max(l,v.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Lg(n,function(v){var p=v.get("boxWidth");et(p)||(p=[p,p]),o.push([yt(p[0],s)||0,yt(p[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,h=d/2-c/2;Lg(n,function(v,p){i.push(h),h+=f+d,a.push(Math.min(Math.max(d,o[p][0]),o[p][1]))})}function h9e(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=w(d,c[2],f),v=w(d,c[0],f),p=w(d,c[1],f),g=w(d,c[3],f),m=w(d,c[4],f),b=[];S(b,p,!1),S(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 w(y,x,T){var A=a.get(x,T),M=[];M[o]=y,M[s]=A;var E;return isNaN(y)||isNaN(A)?E=[NaN,NaN]:(E=r.dataToPoint(M),E[o]+=t),E}function S(y,x,T){var A=x.slice(),M=x.slice();A[o]+=i,M[o]-=i,T?y.push(A,M):y.push(M,A)}function C(y,x){var T=x.slice(),A=x.slice();T[o]-=i,A[o]+=i,y.push(T,A)}}function v9e(e,t){t=t||{};for(var n=[],r=[],a=t.boundIQR,i=a==="none"||a===0,o=0;o<e.length;o++){var s=Ri(e[o].slice()),l=s1(s,.25),u=s1(s,.5),c=s1(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=It(g)?g({value:o}):St(g)?g.replace("{value}",o+""):o+"";n.push([m,v,l,u,c,p]);for(var b=0;b<s.length;b++){var w=s[b];if(w<v||w>p){var S=[m,w];r.push(S)}}}return{boxData:n,outliers:r}}var p9e={type:"echarts:boxplot",transform:function(t){var n=t.upstream;if(n.sourceFormat!==Fa){var r="";$n(r)}var a=v9e(n.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function g9e(e){e.registerSeriesModel(a9e),e.registerChartView(u9e),e.registerLayout(c9e),e.registerTransform(p9e)}var m9e=["color","borderColor"],y9e=function(e){Ne(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){uc(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&&BB(u,f))return;var d=_2(f,c,!0);cr(d,{shape:{points:f.ends}},n,c),w2(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&&BB(u,h)){i.remove(d);return}d?(Pn(d,{shape:{points:h.ends}},n,c),rs(d)):d=_2(h),w2(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(),FB(n,this.group);var r=n.get("clip",!0)?_S(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=_2(s);w2(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(n,r){FB(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}(Xn),b9e=function(){function e(){}return e}(),_9e=function(e){Ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="normalCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new b9e},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}(pn);function _2(e,t,n){var r=e.ends;return new _9e({shape:{points:n?w9e(r,e):r},z2:100})}function BB(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 w2(e,t,n,r){var a=t.getItemModel(n);e.useStyle(t.getItemVisual(n,"style")),e.style.strokeNoScale=!0,e.__simpleBox=r,xa(e,a)}function w9e(e,t){return at(e,function(n){return n=n.slice(),n[1]=t.initBaseline,n})}var S9e=function(){function e(){}return e}(),S2=function(e){Ne(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeCandlestickBox",r}return t.prototype.getDefaultShape=function(){return new S9e},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}(pn);function FB(e,t,n,r){var a=e.getData(),i=a.getLayout("largePoints"),o=new S2({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new S2({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new S2({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});t.add(l),C2(1,o,e),C2(-1,s,e),C2(0,l,e),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function C2(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(m9e);t.useStyle(i),t.style.fill=null,t.style.stroke=a}const C9e=y9e;var Uq=function(e){Ne(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}(or);Ir(Uq,Hq,!0);const x9e=Uq;function T9e(e){!e||!et(e.series)||K(e.series,function(t){Ot(t)&&t.type==="k"&&(t.type="candlestick")})}var k9e=["itemStyle","borderColor"],A9e=["itemStyle","borderColor0"],E9e=["itemStyle","borderColorDoji"],M9e=["itemStyle","color"],I9e=["itemStyle","color0"],D9e={seriesType:"candlestick",plan:Nv(),performRawSeries:!0,reset:function(e,t){function n(i,o){return o.get(i>0?M9e:I9e)}function r(i,o){return o.get(i===0?E9e:i>0?k9e:A9e)}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");je(f,c)}}}}}};const L9e=D9e;var P9e={seriesType:"candlestick",plan:Nv(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),r=R9e(e,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=at(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 w=b.get(s,m),S=b.get(u,m),C=b.get(c,m),y=b.get(f,m),x=b.get(d,m),T=Math.min(S,C),A=Math.max(S,C),M=$(T,w),E=$(A,w),I=$(y,w),L=$(x,w),O=[];V(O,E,0),V(O,M,1),O.push(G(L),G(E),G(I),G(M));var z=g.getItemModel(m),F=!!z.get(["itemStyle","borderColorDoji"]);g.setItemLayout(m,{sign:VB(b,m,S,C,c,F),initBaseline:S>C?E[i]:M[i],ends:O,brushRect:P(y,x,w)})}function $(j,J){var ne=[];return ne[a]=J,ne[i]=j,isNaN(J)||isNaN(j)?[NaN,NaN]:t.dataToPoint(ne)}function V(j,J,ne){var ve=J.slice(),le=J.slice();ve[a]=c1(ve[a]+r/2,1,!1),le[a]=c1(le[a]-r/2,1,!0),ne?j.push(ve,le):j.push(le,ve)}function P(j,J,ne){var ve=$(j,ne),le=$(J,ne);return ve[a]-=r/2,le[a]-=r/2,{x:ve[0],y:ve[1],width:r,height:le[1]-ve[1]}}function G(j){return j[a]=c1(j[a],1),j}}function v(p,g){for(var m=Is(p.count*4),b=0,w,S=[],C=[],y,x=g.getStore(),T=!!e.get(["itemStyle","borderColorDoji"]);(y=p.next())!=null;){var A=x.get(s,y),M=x.get(u,y),E=x.get(c,y),I=x.get(f,y),L=x.get(d,y);if(isNaN(A)||isNaN(I)||isNaN(L)){m[b++]=NaN,b+=3;continue}m[b++]=VB(x,y,M,E,c,T),S[a]=A,S[i]=I,w=t.dataToPoint(S,null,C),m[b++]=w?w[0]:NaN,m[b++]=w?w[1]:NaN,S[i]=L,w=t.dataToPoint(S,null,C),m[b++]=w?w[1]:NaN}g.setLayout("largePoints",m)}}};function VB(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 R9e(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=yt(on(e.get("barMaxWidth"),a),a),o=yt(on(e.get("barMinWidth"),1),a),s=e.get("barWidth");return s!=null?yt(s,a):Math.max(Math.min(a/2,i),o)}const O9e=P9e;function N9e(e){e.registerChartView(C9e),e.registerSeriesModel(x9e),e.registerPreprocessor(T9e),e.registerVisual(L9e),e.registerLayout(O9e)}function zB(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 $9e=function(e){Ne(t,e);function t(n,r){var a=e.call(this)||this,i=new Iy(n,r),o=new Gt;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=Nr(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)}zB(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}}zB(a,n)},t.prototype.highlight=function(){xl(this)},t.prototype.downplay=function(){Tl(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=Bv(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=vd(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,Ar(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(n){n&&n()},t}(Gt);const B9e=$9e;var F9e=function(e){Ne(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 Dy(B9e)},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=Ly("").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=iG(r.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Xn);const V9e=F9e;var z9e=function(e){Ne(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 js(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}(or);const H9e=z9e;function W9e(e){e.registerChartView(V9e),e.registerSeriesModel(H9e),e.registerLayout(Ly("effectScatter"))}var G9e=function(e){Ne(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 aL(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");et(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=Nr(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=na(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;It(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 sl(n.__p1,n.__cp1)+sl(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=ha,c=Pk;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=sl(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*sl(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}(Gt);const Kq=G9e;var U9e=function(e){Ne(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 li({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)}};Pn(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,Ar(this,l,u,c)},t.prototype.updateLayout=function(n,r){var a=this.childAt(0);a.setShape("points",n.getItemLayout(r))},t}(Gt);const jq=U9e;var K9e=function(e){Ne(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 jq(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+=sl(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}(Kq);const j9e=K9e;var Y9e=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),q9e=function(e){Ne(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 Y9e},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(vu(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(QG(f,d,g,m,v,p,s,n,r))return l}else if(vu(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 sn(i,o,s,l)}return n},t}(pn),X9e=function(){function e(){this.group=new Gt}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 q9e({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=Jt(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 Z9e=X9e;var J9e={seriesType:"lines",plan:Nv(),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 Yq=J9e;var Q9e=function(e){Ne(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)&&_S(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=Yq.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 Z9e:new iL(o?i?j9e:jq:i?Kq:aL),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}(Xn);const eWe=Q9e;var tWe=typeof Uint32Array>"u"?Array:Uint32Array,nWe=typeof Float64Array>"u"?Array:Float64Array;function HB(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=at(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),Fw([a,n[0],n[1]])}))}var rWe=function(e){Ne(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||[],HB(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(HB(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=mm(this._flatCoords,r.flatCoords),this._flatCoordsOffset=mm(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),Dn(n[0])){for(var a=n.length,i=new tWe(a),o=new nWe(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 Oa(["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),la("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}(or);const aWe=rWe;function vb(e){return e instanceof Array||(e=[e,e]),e}var iWe={seriesType:"lines",reset:function(e){var t=vb(e.get("symbol")),n=vb(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=vb(s.getShallow("symbol",!0)),u=vb(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 oWe=iWe;function sWe(e){e.registerChartView(eWe),e.registerSeriesModel(aWe),e.registerLayout(Yq),e.registerVisual(oWe)}var lWe=256,uWe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Qo.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],w=a(b);d.globalAlpha=w,d.drawImage(s,g-c,m-c)}if(!f.width||!f.height)return f;for(var S=d.getImageData(0,0,f.width,f.height),C=S.data,y=0,x=C.length,T=this.minOpacity,A=this.maxOpacity,M=A-T;y<x;){var w=C[y+3]/256,E=Math.floor(w*(lWe-1))*4;if(w>0){var I=o(w)?l:u;w>0&&(w=w*M+T),C[y++]=I[E],C[y++]=I[E+1],C[y++]=I[E+2],C[y++]=I[E+3]*w*256}else y+=4}return d.putImageData(S,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Qo.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 cWe=uWe;function fWe(e,t,n){var r=e[1]-e[0];t=at(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 dWe(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 WB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var hWe=function(e){Ne(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()):WB(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&&(WB(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},t.prototype.eachRendered=function(n){uc(this._progressiveEls||this.group,n)},t.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=pd(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(),w=n.getModel(["select","itemStyle"]).getItemStyle(),S=n.get(["itemStyle","borderRadius"]),C=sa(n),y=n.getModel("emphasis"),x=y.get("focus"),T=y.get("blurScope"),A=y.get("disabled"),M=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],E=a;E<i;E++){var I=void 0,L=g.getItemVisual(E,"style");if(l){var O=g.get(M[0],E),z=g.get(M[1],E);if(isNaN(g.get(M[2],E))||isNaN(O)||isNaN(z)||O<f[0]||O>f[1]||z<d[0]||z>d[1])continue;var F=s.dataToPoint([O,z]);I=new En({shape:{x:F[0]-u/2,y:F[1]-c/2,width:u,height:c},style:L})}else{if(isNaN(g.get(M[1],E)))continue;I=new En({z2:1,shape:s.dataToRect([g.get(M[0],E)]).contentShape,style:L})}if(g.hasItemOption){var $=g.getItemModel(E),V=$.getModel("emphasis");m=V.getModel("itemStyle").getItemStyle(),b=$.getModel(["blur","itemStyle"]).getItemStyle(),w=$.getModel(["select","itemStyle"]).getItemStyle(),S=$.get(["itemStyle","borderRadius"]),x=V.get("focus"),T=V.get("blurScope"),A=V.get("disabled"),C=sa($)}I.shape.r=S;var P=n.getRawValue(E),G="-";P&&P[2]!=null&&(G=P[2]+""),Ta(I,C,{labelFetcher:n,labelDataIndex:E,defaultOpacity:L.opacity,defaultText:G}),I.ensureState("emphasis").style=m,I.ensureState("blur").style=b,I.ensureState("select").style=w,Ar(I,x,T,A),I.incremental=o,o&&(I.states.emphasis.hoverLayer=!0),p.add(I),g.setItemGraphicEl(E,I),this._progressiveEls&&this._progressiveEls.push(I)}},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 cWe;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")],w=l.mapArray(b,function(x,T,A){var M=n.dataToPoint([x,T]);return M[0]-=d,M[1]-=h,M.push(A),M}),S=a.getExtent(),C=a.type==="visualMap.continuous"?dWe(S,a.option.range):fWe(S,a.getPieceList(),a.option.selected);u.update(w,g,m,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},C);var y=new ga({style:{width:g,height:m,x:d,y:h,image:u.canvas},silent:!0});this.group.add(y)},t.type="heatmap",t}(Xn);const vWe=hWe;var pWe=function(e){Ne(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 js(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var n=Ov.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}(or);const gWe=pWe;function mWe(e){e.registerChartView(vWe),e.registerSeriesModel(gWe)}var yWe=["itemStyle","borderWidth"],GB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],x2=new ns,bWe=function(e){Ne(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:GB[+c],categoryDim:GB[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var v=KB(o,h),p=UB(o,h,v,d),g=jB(o,d,p);o.setItemGraphicEl(h,g),i.add(g),qB(g,d,p)}}).update(function(h,v){var p=s.getItemGraphicEl(v);if(!o.hasValue(h)){i.remove(p);return}var g=KB(o,h),m=UB(o,h,g,d),b=eX(o,m);p&&b!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(h,null),p=null),p?kWe(p,d,m):p=jB(o,d,m,!0),o.setItemGraphicEl(h,p),p.__pictorialSymbolMeta=m,i.add(p),qB(p,d,m)}).remove(function(h){var v=s.getItemGraphicEl(h);v&&YB(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){YB(i,Jt(o).dataIndex,n,o)}):a.removeAll()},t.type="pictorialBar",t}(Xn);function UB(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};_We(n,i,a,r,d),wWe(e,t,a,i,o,d.boundingLength,d.pxSign,c,r,d),SWe(n,d.symbolScale,u,r,d);var h=d.symbolSize,v=vd(n.get("symbolOffset"),h);return CWe(n,h,a,i,o,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function _We(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(et(o)){var f=[T2(s,o[0])-l,T2(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=T2(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 T2(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function wWe(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;et(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=yt(v[f.index],d),v[c.index]=yt(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 SWe(e,t,n,r,a){var i=e.get(yWe)||0;i&&(x2.attr({scaleX:t[0],scaleY:t[1],rotation:n}),x2.updateTransform(),i/=x2.getLineScale(),i*=t[r.valueDim.index]),a.valueLineWidth=i||0}function CWe(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=na(e.get("symbolMargin"),"15%")+"",w=!1;b.lastIndexOf("!")===b.length-1&&(w=!0,b=b.slice(0,b.length-1));var S=yt(b,t[h.index]),C=Math.max(p+S*2,0),y=w?0:S*2,x=NI(r),T=x?r:XB((m+y)/C),A=m-T*p;S=A/2/(w?T:Math.max(T-1,1)),C=p+S*2,y=w?0:S*2,!x&&r!=="fixed"&&(T=u?XB((Math.abs(u)+y)/C):0),g=T*C-y,f.repeatTimes=T,f.symbolMargin=S}var M=v*(g/2),E=f.pathPosition=[];E[d.index]=n[d.wh]/2,E[h.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(E[0]+=i[0],E[1]+=i[1]);var I=f.bundlePosition=[];I[d.index]=n[d.xy],I[h.index]=n[h.xy];var L=f.barRectShape=je({},n);L[h.wh]=v*Math.max(Math.abs(n[h.wh]),Math.abs(E[h.index]+M)),L[d.wh]=n[d.wh];var O=f.clipShape={};O[d.xy]=-n[d.xy],O[d.wh]=c.ecSize[d.wh],O[h.xy]=0,O[h.wh]=n[h.wh]}function qq(e){var t=e.symbolPatternSize,n=Nr(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function Xq(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(hL(e,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?Ph(p,null,v(c),n,r):Ph(p,null,{scaleX:0,scaleY:0},n,r,function(){a.remove(p)}),c++});c<u;c++){var d=qq(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var h=v(c);Ph(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 Zq(e,t,n,r){var a=e.__pictorialBundle,i=e.__pictorialMainPath;i?Ph(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=qq(n),a.add(i),Ph(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 Jq(e,t,n){var r=je({},t.barRectShape),a=e.__pictorialBarRect;a?Ph(a,null,{shape:r},t,n):(a=e.__pictorialBarRect=new En({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,e.add(a))}function Qq(e,t,n,r){if(n.symbolClip){var a=e.__pictorialClipPath,i=je({},n.clipShape),o=t.valueDim,s=n.animationModel,l=n.dataIndex;if(a)Pn(a,{shape:i},s,l);else{i[o.wh]=0,a=new En({shape:i}),e.__pictorialBundle.setClipPath(a),e.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],Ty[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function KB(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=xWe,n.isAnimationEnabled=TWe,n}function xWe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function TWe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function jB(e,t,n,r){var a=new Gt,i=new Gt;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?Xq(a,t,n):Zq(a,t,n),Jq(a,n,r),Qq(a,t,n,r),a.__pictorialShapeStr=eX(e,n),a.__pictorialSymbolMeta=n,a}function kWe(e,t,n){var r=n.animationModel,a=n.dataIndex,i=e.__pictorialBundle;Pn(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?Xq(e,t,n,!0):Zq(e,t,n,!0),Jq(e,n,!0),Qq(e,t,n,!0)}function YB(e,t,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];hL(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),K(i,function(o){ju(o,{scaleX:0,scaleY:0},n,t,function(){r.parent&&r.parent.remove(r)})}),e.setItemGraphicEl(t,null)}function eX(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function hL(e,t,n){K(e.__pictorialBundle.children(),function(r){r!==e.__pictorialBarRect&&t.call(n,r)})}function Ph(e,t,n,r,a,i){t&&e.attr(t),r.symbolClip&&!a?n&&e.attr(n):n&&Ty[a?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,i)}function qB(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");hL(e,function(p){if(p instanceof ga){var g=p.style;p.useStyle(je({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;Ta(v,sa(a),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:lv(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),Ar(e,c,f,i.get("disabled"))}function XB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}const AWe=bWe;var EWe=function(e){Ne(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=cc(T_.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}(T_);const MWe=EWe;function IWe(e){e.registerChartView(AWe),e.registerSeriesModel(MWe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Zt(Oj,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Nj("pictorialBar"))}var DWe=function(e){Ne(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 kl(this._layersSeries||[],l,d,d),v=[];h.add(Ct(p,this,"add")).update(Ct(p,this,"update")).remove(Ct(p,this,"remove")).execute();function p(g,m,b){var w=o._layers;if(g==="remove"){s.remove(w[m]);return}for(var S=[],C=[],y,x=l[m].indices,T=0;T<x.length;T++){var A=i.getItemLayout(x[T]),M=A.x,E=A.y0,I=A.y;S.push(M,E),C.push(M,E+I),y=i.getItemVisual(x[T],"style")}var L,O=i.getItemLayout(x[0]),z=n.getModel("label"),F=z.get("margin"),$=n.getModel("emphasis");if(g==="add"){var V=v[m]=new Gt;L=new xY({shape:{points:S,stackedOnPoints:C,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),V.add(L),s.add(V),n.isAnimationEnabled()&&L.setClipPath(LWe(L.getBoundingRect(),n,function(){L.removeClipPath()}))}else{var V=w[b];L=V.childAt(0),s.add(V),v[m]=V,Pn(L,{shape:{points:S,stackedOnPoints:C}},n),rs(L)}Ta(L,sa(n),{labelDataIndex:x[T-1],defaultText:i.getName(x[T-1]),inheritColor:y.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var P=L.getTextContent();P&&(P.x=O.x-F,P.y=O.y0+O.y/2),L.useStyle(y),i.setItemGraphicEl(m,L),xa(L,n),Ar(L,$.get("focus"),$.get("blurScope"),$.get("disabled"))}this._layersSeries=l,this._layers=v},t.type="themeRiver",t}(Xn);function LWe(e,t,n){var r=new En({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return cr(r,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,n),r}const PWe=DWe;var k2=2,RWe=function(e){Ne(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 Ry(Ct(this.getData,this),Ct(this.getRawData,this))},t.prototype.fixData=function(n){var r=n.length,a={},i=Yk(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",Hr).models[0],i=a.get("type"),o=zn(n.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Et(),c=0,f=0;f<s.length;++f)l.push(s[f][k2]),u.get(s[f][k2])||(u.set(s[f][k2],c),c++);var d=Fv(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:__(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Oa(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=Yk(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){et(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 la("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}(or);const OWe=RWe;function NWe(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]=yt(s[0],o.height),s[1]=yt(s[1],o.height);var u=o.height-s[0]-s[1];ZB(r,n,u)}else{s[0]=yt(s[0],o.width),s[1]=yt(s[1],o.width);var c=o.width-s[0]-s[1];ZB(r,n,c)}r.setLayout("layoutInfo",i)})}function ZB(e,t,n){if(e.count())for(var r=t.coordinateSystem,a=t.getLayerSeries(),i=e.mapDimension("single"),o=e.mapDimension("value"),s=at(a,function(g){return at(g.indices,function(m){var b=r.dataToPoint(e.get(i,m));return b[1]=e.get(o,m),b})}),l=$We(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 $We(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 BWe(e){e.registerChartView(PWe),e.registerSeriesModel(OWe),e.registerLayout(NWe),e.registerProcessor(Py("themeRiver"))}var FWe=2,VWe=4,zWe=function(e){Ne(t,e);function t(n,r,a,i){var o=e.call(this)||this;o.z2=FWe,o.textConfig={inside:!0},Jt(o).seriesIndex=r.seriesIndex;var s=new An({z2:VWe,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;Jt(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=je({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var h=r.getVisual("decal");h&&(d.decal=sv(h,o));var v=Ef(l.getModel("itemStyle"),f,!0);je(f,v),K(ai,function(b){var w=s.ensureState(b),S=l.getModel([b,"itemStyle"]);w.style=S.getItemStyle();var C=Ef(S,f);C&&(w.shape=C)}),n?(s.setShape(f),s.shape.r=c.r0,cr(s,{shape:{r:c.r}},a,r.dataIndex)):(Pn(s,{shape:f},a),rs(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;Ar(this,m,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,v=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(v!=null&&Math.abs(s)<v);d.ignore=!p,K(Am,function(m){var b=m==="normal"?a.getModel("label"):a.getModel([m,"label"]),w=m==="normal",S=w?d:d.ensureState(m),C=n.getFormattedLabel(h,m);w&&(C=C||r.node.name),S.style=er(b,{},null,m!=="normal",!0),C&&(S.style.text=C);var y=b.get("show");y!=null&&!w&&(S.ignore=!y);var x=g(b,"position"),T=w?f:f.states[m],A=T.style.fill;T.textConfig={outsideFill:b.get("color")==="inherit"?A:null,inside:x!=="outside"};var M,E=g(b,"distance")||0,I=g(b,"align");x==="outside"?(M=o.r+E,I=l>Math.PI/2?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?M=0:M=(o.r+o.r0)/2,I="center"):I==="left"?(M=o.r0+E,l>Math.PI/2&&(I="right")):I==="right"&&(M=o.r-E,l>Math.PI/2&&(I="left")),S.style.align=I,S.style.verticalAlign=g(b,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*c+o.cy;var L=g(b,"rotate"),O=0;L==="radial"?(O=Go(-l),O>Math.PI/2&&O<Math.PI*1.5&&(O+=Math.PI)):L==="tangential"?(O=Math.PI/2-l,O>Math.PI/2?O-=Math.PI:O<-Math.PI/2&&(O+=Math.PI)):Dn(L)&&(O=L*Math.PI/180),S.rotation=Go(O)});function g(m,b){var w=m.get(b);return w??i.get(b)}d.dirtyStyle()},t}(ii);const JB=zWe;var jA="sunburstRootToNode",QB="sunburstHighlight",HWe="sunburstUnhighlight";function WWe(e){e.registerAction({type:jA,update:"updateView"},function(t,n){n.eachComponent({mainType:"series",subType:"sunburst",query:t},r);function r(a,i){var o=zm(t,[jA],a);if(o){var s=a.getViewRoot();s&&(t.direction=JD(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),e.registerAction({type:QB,update:"none"},function(t,n,r){t=je({},t),n.eachComponent({mainType:"series",subType:"sunburst",query:t},a);function a(i){var o=zm(t,[QB],i);o&&(t.dataIndex=o.node.dataIndex)}r.dispatchAction(je(t,{type:"highlight"}))}),e.registerAction({type:HWe,update:"updateView"},function(t,n,r){t=je({},t),r.dispatchAction(je(t,{type:"downplay"}))})}var GWe=function(e){Ne(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,w){if(b.length===0&&w.length===0)return;new kl(w,b,S,S).add(C).update(C).remove(Zt(C,null)).execute();function S(y){return y.getId()}function C(y,x){var T=y==null?null:b[y],A=x==null?null:w[x];p(T,A)}}function p(b,w){if(!f&&b&&!b.getValue()&&(b=null),b!==l&&w!==l){if(w&&w.piece)b?(w.piece.updateData(!1,b,n,r,a),s.setItemGraphicEl(b.dataIndex,w.piece)):g(w);else if(b){var S=new JB(b,n,r,a);c.add(S),s.setItemGraphicEl(b.dataIndex,S)}}}function g(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function m(b,w){w.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,n,r,a):(o.virtualPiece=new JB(b,n,r,a),c.add(o.virtualPiece)),w.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(w.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";c_(u,c)}}a=!0}})})},t.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:jA,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}(Xn);const UWe=GWe;var KWe=function(e){Ne(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};tX(a);var i=this._levelModels=at(n.levels||[],function(l){return new Yn(l,this,r)},this),o=ZD.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=CS(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(){iq(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}(or);function tX(e){var t=0;K(e.children,function(r){tX(r);var a=r.value;et(a)&&(a=a[0]),t+=a});var n=e.value;et(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),et(e.value)?e.value[0]=n:e.value=n}const jWe=KWe;var eF=Math.PI/180;function YWe(e,t,n){t.eachSeriesByType(e,function(r){var a=r.get("center"),i=r.get("radius");et(i)||(i=[0,i]),et(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=yt(a[0],o),c=yt(a[1],s),f=yt(i[0],l/2),d=yt(i[1],l/2),h=-r.get("startAngle")*eF,v=r.get("minAngle")*eF,p=r.getData().tree.root,g=r.getViewRoot(),m=g.depth,b=r.get("sort");b!=null&&nX(g,b);var w=0;K(g.children,function(F){!isNaN(F.getValue())&&w++});var S=g.getValue(),C=Math.PI/(S||w)*2,y=g.depth>0,x=g.height-(y?-1:1),T=(d-f)/(x||1),A=r.get("clockwise"),M=r.get("stillShowZeroSum"),E=A?1:-1,I=function(F,$){if(F){var V=$;if(F!==p){var P=F.getValue(),G=S===0&&M?C:P*C;G<v&&(G=v),V=$+E*G;var j=F.depth-m-(y?-1:1),J=f+T*j,ne=f+T*(j+1),ve=r.getLevelModel(F);if(ve){var le=ve.get("r0",!0),ce=ve.get("r",!0),ue=ve.get("radius",!0);ue!=null&&(le=ue[0],ce=ue[1]),le!=null&&(J=yt(le,l/2)),ce!=null&&(ne=yt(ce,l/2))}F.setLayout({angle:G,startAngle:$,endAngle:V,clockwise:A,cx:u,cy:c,r0:J,r:ne})}if(F.children&&F.children.length){var Q=0;K(F.children,function(_e){Q+=I(_e,$+Q)})}return V-$}};if(y){var L=f,O=f+T,z=Math.PI*2;p.setLayout({angle:z,startAngle:h,endAngle:h+z,clockwise:A,cx:u,cy:c,r0:L,r:O})}I(g,h)})}function nX(e,t){var n=e.children||[];e.children=qWe(n,t),n.length&&K(e.children,function(r){nX(r,t)})}function qWe(e,t){if(It(t)){var n=at(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)}),at(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 XWe(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&&St(s)&&(s=Q1(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");je(u,l)})})}function ZWe(e){e.registerChartView(UWe),e.registerSeriesModel(jWe),e.registerLayout(Zt(YWe,"sunburst")),e.registerProcessor(Zt(Py,"sunburst")),e.registerVisual(XWe),WWe(e)}var tF={color:"fill",borderColor:"stroke"},JWe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},gl=Ln(),QWe=function(e){Ne(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 js(null,this)},t.prototype.getDataParams=function(n,r,a){var i=e.prototype.getDataParams.call(this,n,r);return a&&(i.info=gl(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}(or);const e7e=QWe;function t7e(e,t){return t=t||[0,0],at(["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 n7e(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:Ct(t7e,e)}}}function r7e(e,t){return t=t||[0,0],at([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 a7e(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:Ct(r7e,e)}}}function i7e(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 o7e(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:Ct(i7e,e)}}}function s7e(e,t){return t=t||[0,0],at(["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 l7e(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:Ct(s7e,e)}}}function u7e(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 rX(e,t,n,r){return e&&(e.legacy||e.legacy!==!1&&!n&&!r&&t!=="tspan"&&(t==="text"||Tt(e,"text")))}function aX(e,t,n){var r=e,a,i,o;if(t==="text")o=r;else{o={},Tt(r,"text")&&(o.text=r.text),Tt(r,"rich")&&(o.rich=r.rich),Tt(r,"textFill")&&(o.fill=r.textFill),Tt(r,"textStroke")&&(o.stroke=r.textStroke),Tt(r,"fontFamily")&&(o.fontFamily=r.fontFamily),Tt(r,"fontSize")&&(o.fontSize=r.fontSize),Tt(r,"fontStyle")&&(o.fontStyle=r.fontStyle),Tt(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Tt(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),Tt(r,"textPosition")&&(a.position=r.textPosition),Tt(r,"textOffset")&&(a.offset=r.textOffset),Tt(r,"textRotation")&&(a.rotation=r.textRotation),Tt(r,"textDistance")&&(a.distance=r.textDistance)}return nF(o,e),K(o.rich,function(l){nF(l,l)}),{textConfig:a,textContent:i}}function nF(e,t){t&&(t.font=t.textFont||t.font,Tt(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Tt(t,"textAlign")&&(e.align=t.textAlign),Tt(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Tt(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Tt(t,"textWidth")&&(e.width=t.textWidth),Tt(t,"textHeight")&&(e.height=t.textHeight),Tt(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Tt(t,"textPadding")&&(e.padding=t.textPadding),Tt(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Tt(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Tt(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Tt(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Tt(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Tt(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Tt(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function rF(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";aF(r,t);var o=r.textFill==null;return a?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,K(t.rich,function(s){aF(s,s)}),r}function aF(e,t){t&&(Tt(t,"fill")&&(e.textFill=t.fill),Tt(t,"stroke")&&(e.textStroke=t.fill),Tt(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Tt(t,"font")&&(e.font=t.font),Tt(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Tt(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Tt(t,"fontSize")&&(e.fontSize=t.fontSize),Tt(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Tt(t,"align")&&(e.textAlign=t.align),Tt(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Tt(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Tt(t,"width")&&(e.textWidth=t.width),Tt(t,"height")&&(e.textHeight=t.height),Tt(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Tt(t,"padding")&&(e.textPadding=t.padding),Tt(t,"borderColor")&&(e.textBorderColor=t.borderColor),Tt(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Tt(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Tt(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Tt(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Tt(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Tt(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Tt(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Tt(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Tt(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Tt(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var iX={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},iF=_n(iX);bo(zs,function(e,t){return e[t]=1,e},{});zs.join(", ");var P_=["","style","shape","extra"],fv=Ln();function vL(e,t,n,r,a){var i=e+"Animation",o=Av(e,r,a)||{},s=fv(t).userDuring;return o.duration>0&&(o.during=s?Ct(v7e,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),je(o,n[i]),o}function g1(e,t,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=fv(e),u=t.style;l.userDuring=t.during;var c={},f={};if(g7e(e,t,f),sF("shape",t,f),sF("extra",t,f),!i&&s&&(p7e(e,t,c),oF("shape",e,t,c),oF("extra",e,t,c),m7e(e,t,u,c)),f.style=u,c7e(e,f,o),d7e(e,t),s)if(i){var d={};K(P_,function(v){var p=v?t[v]:t;p&&p.enterFrom&&(v&&(d[v]=d[v]||{}),je(v?d[v]:d,p.enterFrom))});var h=vL("enter",e,t,n,a);h.duration>0&&e.animateFrom(d,h)}else f7e(e,t,a||0,n,c);oX(e,t),u?e.dirty():e.markRedraw()}function oX(e,t){for(var n=fv(e).leaveToProps,r=0;r<P_.length;r++){var a=P_[r],i=a?t[a]:t;i&&i.leaveTo&&(n||(n=fv(e).leaveToProps={}),a&&(n[a]=n[a]||{}),je(a?n[a]:n,i.leaveTo))}}function kS(e,t,n,r){if(e){var a=e.parent,i=fv(e).leaveToProps;if(i){var o=vL("update",e,t,n,0);o.done=function(){a.remove(e),r&&r()},e.animateTo(i,o)}else a.remove(e),r&&r()}}function zf(e){return e==="all"}function c7e(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 f7e(e,t,n,r,a){if(a){var i=vL("update",e,t,r,n);i.duration>0&&e.animateFrom(a,i)}}function d7e(e,t){Tt(t,"silent")&&(e.silent=t.silent),Tt(t,"ignore")&&(e.ignore=t.ignore),e instanceof _o&&Tt(t,"invisible")&&(e.invisible=t.invisible),e instanceof pn&&Tt(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var bs={},h7e={setTransform:function(e,t){return bs.el[e]=t,this},getTransform:function(e){return bs.el[e]},setShape:function(e,t){var n=bs.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=bs.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=bs.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=bs.el.style;if(t)return t[e]},setExtra:function(e,t){var n=bs.el.extra||(bs.el.extra={});return n[e]=t,this},getExtra:function(e){var t=bs.el.extra;if(t)return t[e]}};function v7e(){var e=this,t=e.el;if(t){var n=fv(t).userDuring,r=e.userDuring;if(n!==r){e.el=e.userDuring=null;return}bs.el=t,r(h7e)}}function oF(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]={}),zf(l))je(o,i);else for(var u=qn(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(zf(s)||cn(s,e)>=0){!o&&(o=r[e]={});for(var h=_n(i),c=0;c<h.length;c++){var f=h[c],d=i[f];y7e(a[f],d)&&(o[f]=d)}}}}}function sF(e,t,n){var r=t[e];if(r)for(var a=n[e]={},i=_n(r),o=0;o<i.length;o++){var s=i[o];a[s]=wg(r[s])}}function p7e(e,t,n){for(var r=t.transition,a=zf(r)?zs:qn(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 g7e(e,t,n){for(var r=0;r<iF.length;r++){var a=iF[r],i=iX[a],o=t[a];o&&(n[i[0]]=o[0],n[i[1]]=o[1])}for(var r=0;r<zs.length;r++){var s=zs[r];t[s]!=null&&(n[s]=t[s])}}function m7e(e,t,n,r){if(n){var a=e.style,i;if(a){var o=n.transition,s=t.transition;if(o&&!zf(o)){var l=qn(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&&(zf(s)||zf(o)||cn(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=r.style={});for(var v=_n(n),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function y7e(e,t){return Ca(e)?e!==t:e!=null&&isFinite(e)}var sX=Ln(),b7e=["percent","easing","shape","style","extra"];function lX(e){e.stopAnimation("keyframe"),e.attr(sX(e))}function R_(e,t,n){if(!(!n.isAnimationEnabled()||!t)){if(et(t)){K(t,function(s){R_(e,s,n)});return}var r=t.keyframes,a=t.duration;if(n&&a==null){var i=Av("enter",n,0);a=i&&i.duration}if(!(!r||!a)){var o=sX(e);K(P_,function(s){if(!(s&&!e[s])){var l;r.sort(function(u,c){return u.percent-c.percent}),K(r,function(u){var c=e.animators,f=s?u[s]:u;if(f){var d=_n(f);if(s||(d=zn(d,function(p){return cn(b7e,p)<0})),!!d.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(d);s&&(o[s]=o[s]||{});var v=s?o[s]:o;K(d,function(p){v[p]=((s?e[s]:e)||{})[p]}),l.whenWithKeys(a*u.percent,f,d,u.easing)}}}),l&&l.delay(t.delay||0).duration(a).start(t.easing)}})}}}var ml="emphasis",Tu="normal",pL="blur",gL="select",Zu=[Tu,ml,pL,gL],A2={normal:["itemStyle"],emphasis:[ml,"itemStyle"],blur:[pL,"itemStyle"],select:[gL,"itemStyle"]},E2={normal:["label"],emphasis:[ml,"label"],blur:[pL,"label"],select:[gL,"label"]},_7e=["x","y"],w7e="e\0\0",ji={normal:{},emphasis:{},blur:{},select:{}},S7e={cartesian2d:n7e,geo:a7e,single:o7e,polar:l7e,calendar:u7e};function YA(e){return e instanceof pn}function qA(e){return e instanceof _o}function C7e(e,t){t.copyTransform(e),qA(t)&&qA(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,YA(t)&&YA(e)&&t.setShape(e.shape))}var x7e=function(e){Ne(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=lF(n,s,r,a);o||l.removeAll(),s.diff(o).add(function(f){M2(a,null,f,u(f,i),n,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&kS(d,gl(d).option,n)}).update(function(f,d){var h=o.getItemGraphicEl(d);M2(a,h,f,u(f,i),n,l,s)}).execute();var c=n.get("clip",!0)?_S(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=lF(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=M2(null,null,f,l(f,o),r,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(n){uc(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}(Xn);const T7e=x7e;function mL(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=fX(r);n=Cy(i,null,a,r.layout||"center"),gl(n).customPathData=i}else if(t==="image")n=new ga({}),gl(n).customImagePath=e.style.image;else if(t==="text")n=new An({});else if(t==="group")n=new Gt;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=nS(t);if(!o){var s="";$n(s)}n=new o}return gl(n).customGraphicType=t,n.name=e.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function yL(e,t,n,r,a,i,o){lX(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),r&&r.transition==null&&(r.transition=_7e);var l=r&&r.style;if(l){if(t.type==="text"){var u=l;Tt(u,"textFill")&&(u.fill=u.textFill),Tt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=YA(t)?l.decal:null;e&&f&&(f.dirty=!0,c=sv(f,e)),l.__decalPattern=c}if(qA(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}g1(t,r,i,{dataIndex:n,isInit:o,clearStyle:!0}),R_(t,r.keyframeAnimation,i)}function uX(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),Zf(i)}}function k7e(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<Zu.length;s++)A7e(r,t,Zu[s])}}function A7e(e,t,n){var r=n===Tu,a=r?t:O_(t,n),i=a?a.z2:null,o;i!=null&&(o=r?e:e.ensureState(n),o.z2=i||0)}function lF(e,t,n,r){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):S7e[i.type](i));for(var s=Lt({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:S,style:y,ordinalRawValue:C,styleEmphasis:x,visual:M,barLayout:E,currentSeriesIndices:I,font:L},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:E7e(e.getData())},u,c,f={},d={},h={},v={},p=0;p<Zu.length;p++){var g=Zu[p];h[g]=e.getModel(A2[g]),v[g]=e.getModel(E2[g])}function m(O){return O===u?c||(c=t.getItemModel(O)):t.getItemModel(O)}function b(O,z){return t.hasItemOption?O===u?f[z]||(f[z]=m(O).getModel(A2[z])):m(O).getModel(A2[z]):h[z]}function w(O,z){return t.hasItemOption?O===u?d[z]||(d[z]=m(O).getModel(E2[z])):m(O).getModel(E2[z]):v[z]}return function(O,z){return u=O,c=null,f={},d={},a&&a(Lt({dataIndexInside:O,dataIndex:t.getRawIndex(O),actionType:z?z.type:null},l),s)};function S(O,z){return z==null&&(z=u),t.getStore().get(t.getDimensionIndex(O||0),z)}function C(O,z){z==null&&(z=u),O=O||0;var F=t.getDimensionInfo(O);if(!F){var $=t.getDimensionIndex(O);return $>=0?t.getStore().get($,z):void 0}var V=t.get(F.name,z),P=F&&F.ordinalMeta;return P?P.categories[V]:V}function y(O,z){z==null&&(z=u);var F=t.getItemVisual(z,"style"),$=F&&F.fill,V=F&&F.opacity,P=b(z,Tu).getItemStyle();$!=null&&(P.fill=$),V!=null&&(P.opacity=V);var G={inheritColor:St($)?$:"#000"},j=w(z,Tu),J=er(j,null,G,!1,!0);J.text=j.getShallow("show")?on(e.getFormattedLabel(z,Tu),lv(t,z)):null;var ne=l_(j,G,!1);return A(O,P),P=rF(P,J,ne),O&&T(P,O),P.legacy=!0,P}function x(O,z){z==null&&(z=u);var F=b(z,ml).getItemStyle(),$=w(z,ml),V=er($,null,null,!0,!0);V.text=$.getShallow("show")?Yo(e.getFormattedLabel(z,ml),e.getFormattedLabel(z,Tu),lv(t,z)):null;var P=l_($,null,!0);return A(O,F),F=rF(F,V,P),O&&T(F,O),F.legacy=!0,F}function T(O,z){for(var F in z)Tt(z,F)&&(O[F]=z[F])}function A(O,z){O&&(O.textFill&&(z.textFill=O.textFill),O.textPosition&&(z.textPosition=O.textPosition))}function M(O,z){if(z==null&&(z=u),Tt(tF,O)){var F=t.getItemVisual(z,"style");return F?F[tF[O]]:null}if(Tt(JWe,O))return t.getItemVisual(z,O)}function E(O){if(i.type==="cartesian2d"){var z=i.getBaseAxis();return g4e(Lt({axis:z},O))}}function I(){return n.getCurrentSeriesIndices()}function L(O){return WU(O,n)}}function E7e(e){var t={};return K(e.dimensions,function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,i=t[a]=t[a]||[];i[r.coordDimIndex]=e.getDimensionIndex(n)}}),t}function M2(e,t,n,r,a,i,o){if(!r){i.remove(t);return}var s=bL(e,t,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&Ar(s,r.focus,r.blurScope,r.emphasisDisabled),s}function bL(e,t,n,r,a,i){var o=-1,s=t;t&&cX(t,r,a)&&(o=cn(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=mL(r),s&&C7e(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ji.normal.cfg=ji.normal.conOpt=ji.emphasis.cfg=ji.emphasis.conOpt=ji.blur.cfg=ji.blur.conOpt=ji.select.cfg=ji.select.conOpt=null,ji.isLegacy=!1,I7e(u,n,r,a,l,ji),M7e(u,n,r,a,l),yL(e,u,n,r,ji,a,l),Tt(r,"info")&&(gl(u).info=r.info);for(var c=0;c<Zu.length;c++){var f=Zu[c];if(f!==Tu){var d=O_(r,f),h=_L(r,d,f);uX(f,u,d,h,ji)}}return k7e(u,r,a),r.type==="group"&&D7e(e,u,n,r,a),o>=0?i.replaceAt(u,o):i.add(u),u}function cX(e,t,n){var r=gl(e),a=t.type,i=t.shape,o=t.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&O7e(i)&&fX(i)!==r.customPathData||a==="image"&&Tt(o,"image")&&o.image!==r.customImagePath}function M7e(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&&cX(o,i,r)&&(o=null),o||(o=mL(i),e.setClipPath(o)),yL(null,o,t,i,null,r,a)}}function I7e(e,t,n,r,a,i){if(!e.isGroup){uF(n,null,i),uF(n,ml,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=mL(o),e.setTextContent(c)),yL(null,c,t,o,null,r,a);for(var f=o&&o.style,d=0;d<Zu.length;d++){var h=Zu[d];if(h!==Tu){var v=i[h].conOpt;uX(h,c,v,_L(o,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function uF(e,t,n){var r=t?O_(e,t):e,a=t?_L(e,r,ml):e.style,i=e.type,o=r?r.textConfig:null,s=e.textContent,l=s?t?O_(s,t):s:null;if(a&&(n.isLegacy||rX(a,i,!!o,!!l))){n.isLegacy=!0;var u=aX(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 O_(e,t){return t?e?e[t]:null:e}function _L(e,t,n){var r=t&&t.style;return r==null&&n===ml&&e&&(r=e.styleEmphasis),r}function D7e(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){P7e({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),bL(e,d,n,f,a,t)):d.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var v=t.childAt(h);L7e(t,v,a)}}}function L7e(e,t,n){t&&kS(t,gl(e).option,n)}function P7e(e){new kl(e.oldChildren,e.newChildren,cF,cF,e).add(fF).update(fF).remove(R7e).execute()}function cF(e,t){var n=e&&e.name;return n??w7e+t}function fF(e,t){var n=this.context,r=e!=null?n.newChildren[e]:null,a=t!=null?n.oldChildren[t]:null;bL(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function R7e(e){var t=this.context,n=t.oldChildren[e];n&&kS(n,gl(n).option,t.seriesModel)}function fX(e){return e&&(e.pathData||e.d)}function O7e(e){return e&&(Tt(e,"pathData")||Tt(e,"d"))}function N7e(e){e.registerChartView(T7e),e.registerSeriesModel(e7e)}var ff=Ln(),dF=Ft,I2=Ct,$7e=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 Gt,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),r.getZr().add(s);else{var d=Zt(hF,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}pF(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=GD(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=ff(t).pointerEl=new Ty[i.type](dF(n.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,n,r,a){if(n.label){var i=ff(t).labelEl=new An(dF(n.label));t.add(i),vF(i,a)}},e.prototype.updatePointerEl=function(t,n,r){var a=ff(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=ff(t).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),vF(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=Ev(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Cl(u.event)},onmousedown:I2(this._onHandleDragMove,this,0,0),drift:I2(this._onHandleDragMove,this),ondragend:I2(this._onHandleDragEnd,this)}),r.add(a)),pF(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");et(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,$v(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){hF(this._axisPointerModel,!n&&this._moveAnimation,this._handle,D2(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(D2(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(D2(a)),ff(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),Rm(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 hF(e,t,n,r){dX(ff(n).lastProp,r)||(ff(n).lastProp=r,t?Pn(n,r,e):(n.stopAnimation(),n.attr(r)))}function dX(e,t){if(Ot(e)&&Ot(t)){var n=!0;return K(t,function(r,a){n=n&&dX(e[a],r)}),!!n}else return e===t}function vF(e,t){e[t.get(["label","show"])?"show":"hide"]()}function D2(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function pF(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 wL=$7e;function SL(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 hX(e,t,n,r,a){var i=n.get("value"),o=vX(i,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=hd(s.get("padding")||0),u=s.getFont(),c=yy(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),B7e(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:er(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function B7e(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 vX(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:OD(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};K(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),St(o)?i=o.replace("{value}",i):It(o)&&(i=o(s))}return i}function CL(e,t,n){var r=Bi();return lc(r,r,n.rotation),es(r,r,n.position),Zo([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function pX(e,t,n,r,a,i){var o=El.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),hX(t,r,a,i,{position:CL(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function xL(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function gX(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function gF(e,t,n,r,a,i){return{cx:e,cy:t,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var F7e=function(e){Ne(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=mF(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=SL(i),h=V7e[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=DA(l.model,a);pX(r,n,v,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=DA(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=CL(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=mF(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}(wL);function mF(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var V7e={line:function(e,t,n){var r=xL([t,n[0]],[t,n[1]],yF(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:gX([t-r/2,n[0]],[r,a],yF(e))}}};function yF(e){return e.dim==="x"?0:1}const z7e=F7e;var H7e=function(e){Ne(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}(kn);const W7e=H7e;var fl=Ln(),G7e=K;function mX(e,t,n){if(!Mn.node){var r=t.getZr();fl(r).records||(fl(r).records={}),U7e(r,t);var a=fl(r).records[e]||(fl(r).records[e]={});a.handler=n}}function U7e(e,t){if(fl(e).initialized)return;fl(e).initialized=!0,n("click",Zt(bF,"click")),n("mousemove",Zt(bF,"mousemove")),n("globalout",j7e);function n(r,a){e.on(r,function(i){var o=Y7e(t);G7e(fl(e).records,function(s){s&&a(s,i,o.dispatchAction)}),K7e(o.pendings,t)})}}function K7e(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 j7e(e,t,n){e.handler("leave",null,n)}function bF(e,t,n,r){t.handler(e,n,r)}function Y7e(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 XA(e,t){if(!Mn.node){var n=t.getZr(),r=(fl(n).records||{})[e];r&&(fl(n).records[e]=null)}}var q7e=function(e){Ne(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";mX("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){XA("axisPointer",r)},t.prototype.dispose=function(n,r){XA("axisPointer",r)},t.type="axisPointer",t}(gr);const X7e=q7e;function yX(e,t){var n=[],r=e.seriesIndex,a;if(r==null||!(a=t.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=qf(i,e);if(o==null||o<0||et(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(at(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 _F=Ln();function Z7e(e,t,n){var r=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||Ct(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){m1(a)&&(a=yX({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=m1(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||m1(a),d={},h={},v={list:[],map:{}},p={showPointer:Zt(Q7e,h),showTooltip:Zt(eGe,v)};K(s.coordSysMap,function(m,b){var w=l||m.containPoint(a);K(s.coordSysAxesInfo[b],function(S,C){var y=S.axis,x=aGe(u,S);if(!f&&w&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=y.pointToData(a)),T!=null&&wF(S,T,p,!1,d)}})});var g={};return K(c,function(m,b){var w=m.linkGroup;w&&!h[b]&&K(w.axesInfo,function(S,C){var y=h[C];if(S!==m&&y){var x=y.value;w.mapper&&(x=m.axis.scale.parse(w.mapper(x,SF(S),SF(m)))),g[m.key]=x}})}),K(g,function(m,b){wF(c[b],m,p,!0,d)}),tGe(h,c,d),nGe(v,a,e,o),rGe(c,o,n),d}}function wF(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=J7e(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&je(a,s[0]),!r&&e.snap&&i.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,o,l)}}function J7e(e,t){var n=t.axis,r=n.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return K(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,n);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,a=f,i.length=0),K(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function Q7e(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function eGe(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=Vm(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 tGe(e,t,n){var r=n.axesInfo=[];K(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function nGe(e,t,n,r){if(m1(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 rGe(e,t,n){var r=n.getZr(),a="axisPointerLastHighlights",i=_F(r)[a]||{},o=_F(r)[a]={};K(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&K(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];K(i,function(u,c){!o[c]&&l.push(u)}),K(o,function(u,c){!i[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function aGe(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 SF(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 m1(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function $y(e){gd.registerAxisPointerClass("CartesianAxisPointer",z7e),e.registerComponentModel(W7e),e.registerComponentView(X7e),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!et(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=UFe(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Z7e)}function iGe(e){dn(GY),dn($y)}var oGe=function(e){Ne(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=SL(i),v=lGe[d](s,l,f,c);v.style=h,n.graphicKey=v.type,n.pointer=v}var p=i.get(["label","margin"]),g=sGe(r,a,i,l,p);hX(n,a,i,o,g)},t}(wL);function sGe(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=Bi();lc(d,d,s),es(d,d,[r.cx,r.cy]),u=Zo([o,-a],d);var h=t.getModel("axisLabel").get("rotate")||0,v=El.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 lGe={line:function(e,t,n,r){return e.dim==="angle"?{type:"Line",shape:xL(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:gF(t.cx,t.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:gF(t.cx,t.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const uGe=oGe;var cGe=function(e){Ne(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}(kn);const fGe=cGe;var TL=function(e){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Hr).models[0]},t.type="polarAxis",t}(kn);Ir(TL,Vv);var dGe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="angleAxis",t}(TL),hGe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="radiusAxis",t}(TL),kL=function(e){Ne(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}(To);kL.prototype.dataToRadius=To.prototype.dataToCoord;kL.prototype.radiusToData=To.prototype.coordToData;const vGe=kL;var pGe=Ln(),AL=function(e){Ne(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=yy(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=pGe(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}(To);AL.prototype.dataToAngle=To.prototype.dataToCoord;AL.prototype.angleToData=To.prototype.coordToData;const gGe=AL;var bX=["radius","angle"],mGe=function(){function e(t){this.dimensions=bX,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new vGe,this._angleAxis=new gGe,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=CF(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=CF(n);return a===this?this.pointToData(r):null},e}();function CF(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}const yGe=mGe;function bGe(e,t,n){var r=t.get("center"),a=n.getWidth(),i=n.getHeight();e.cx=yt(r[0],a),e.cy=yt(r[1],i);var o=e.getRadiusAxis(),s=Math.min(a,i)/2,l=t.get("radius");l==null?l=[0,"100%"]:et(l)||(l=[0,l]);var u=[yt(l[0],s),yt(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function _Ge(e,t){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();K(w_(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),K(w_(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),Qf(r.scale,r.model),Qf(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 wGe(e){return e.mainType==="angleAxis"}function xF(e,t){if(e.type=t.get("type"),e.scale=Ey(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),wGe(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 SGe={dimensions:bX,create:function(e,t){var n=[];return e.eachComponent("polar",function(r,a){var i=new yGe(a+"");i.update=_Ge;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");xF(o,l),xF(s,u),bGe(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",Hr).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const CGe=SGe;var xGe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function pb(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 gb(e){var t=e.getRadiusAxis();return t.inverse?0:1}function TF(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 TGe=function(e){Ne(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=at(a.getViewLabels(),function(c){c=Ft(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});TF(u),TF(s),K(xGe,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&kGe[c](this.group,n,i,s,l,o,u)},this)}},t.type="angleAxis",t}(gd),kGe={axisLine:function(e,t,n,r,a,i){var o=t.getModel(["axisLine","lineStyle"]),s=gb(n),l=s?0:1,u;i[l]===0?u=new ns({shape:{cx:n.cx,cy:n.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new wy({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[gb(n)],u=at(r,function(c){return new ra({shape:pb(n,[l,l+s],c.coord)})});e.add(Ii(u,{style:Lt(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,a,i){if(a.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[gb(n)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new ra({shape:pb(n,[u,u+l],a[f][d].coord)}));e.add(Ii(c,{style:Lt(s.getModel("lineStyle").getLineStyle(),Lt(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,n,r,a,i,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");K(o,function(f,d){var h=l,v=f.tickValue,p=i[gb(n)],g=n.coordToPoint([p+u,f.coord]),m=n.cx,b=n.cy,w=Math.abs(g[0]-m)/p<.3?"center":g[0]>m?"left":"right",S=Math.abs(g[1]-b)/p<.3?"middle":g[1]>b?"top":"bottom";if(s&&s[v]){var C=s[v];Ot(C)&&C.textStyle&&(h=new Yn(C.textStyle,l,l.ecModel))}var y=new An({silent:El.isLabelSilent(t),style:er(h,{x:g[0],y:g[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:w,verticalAlign:S})});if(e.add(y),c){var x=El.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=f.rawLabel,Jt(y).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 ra({shape:pb(n,i,r[f].coord)}))}for(var f=0;f<c.length;f++)e.add(Ii(c[f],{style:Lt({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,n,r,a,i){if(a.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new ra({shape:pb(n,i,a[u][c].coord)}));e.add(Ii(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,w=u++%l.length;c[w]=c[w]||[],c[w].push(new ii({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(Ii(c[g],{style:Lt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const AGe=TGe;var EGe=["axisLine","axisTickLabel","axisName"],MGe=["splitLine","splitArea","minorSplitLine"],IGe=function(e){Ne(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 Gt;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=LGe(s,n,f),v=new El(n,h);K(EGe,v.add,v),i.add(v.getGroup()),xy(a,i,n),K(MGe,function(p){n.get([p,"show"])&&!o.scale.isBlank()&&DGe[p](this.group,n,s,f,d,u,c)},this)}},t.type="radiusAxis",t}(gd),DGe={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 ns({shape:{cx:n.cx,cy:n.cy,r:Math.max(i[f].coord,0)}}))}for(var f=0;f<c.length;f++)e.add(Ii(c[f],{style:Lt({stroke:l[f%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,n,r,a,i,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new ns({shape:{cx:n.cx,cy:n.cy,r:o[c][f].coord}}));e.add(Ii(u,{style:Lt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,n,r,a,i){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,d=1;d<i.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new ii({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(Ii(c[d],{style:Lt({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function LGe(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 PGe=IGe;function _X(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function wX(e,t){return t.dim+e.model.componentIndex}function RGe(e,t,n){var r={},a=OGe(zn(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=wX(s,l),c=_X(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 w=o.mapDimension(v.dim),S=o.mapDimension(l.dim),C=Al(o,w),y=l.dim!=="radius"||!i.get("roundCap",!0),x=v.dataToCoord(0),T=0,A=o.count();T<A;T++){var M=o.get(w,T),E=o.get(S,T),I=M>=0?"p":"n",L=x;C&&(r[c][E]||(r[c][E]={p:x,n:x}),L=r[c][E][I]);var O=void 0,z=void 0,F=void 0,$=void 0;if(v.dim==="radius"){var V=v.dataToCoord(M)-x,P=l.dataToCoord(E);Math.abs(V)<m&&(V=(V<0?-1:1)*m),O=L,z=L+V,F=P-d,$=F-h,C&&(r[c][E][I]=z)}else{var G=v.dataToCoord(M,y)-x,j=l.dataToCoord(E);Math.abs(G)<b&&(G=(G<0?-1:1)*b),O=j+d,z=O+h,F=L,$=L+G,C&&(r[c][E][I]=$)}o.setItemLayout(T,{cx:p,cy:g,r0:O,r:z,startAngle:-F*Math.PI/180,endAngle:-$*Math.PI/180,clockwise:F>=$})}}})}function OGe(e){var t={};K(e,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=wX(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=_X(r);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var v=yt(r.get("barWidth"),c),p=yt(r.get("barMaxWidth"),c),g=r.get("barGap"),m=r.get("barCategoryGap");v&&!d[h].width&&(v=Math.min(f.remainedWidth,v),d[h].width=v,f.remainedWidth-=v),p&&(d[h].maxWidth=p),g!=null&&(f.gap=g),m!=null&&(f.categoryGap=m)});var n={};return K(t,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=yt(r.categoryGap,o),l=yt(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),K(i,function(p,g){var m=p.maxWidth;m&&m<f&&(m=Math.min(m,u),p.width&&(m=Math.min(m,p.width)),u-=m,p.width=m,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;K(i,function(p,g){p.width||(p.width=f),h=p,d+=p.width*(1+l)}),h&&(d-=h.width*l);var v=-d/2;K(i,function(p,g){n[a][g]=n[a][g]||{offset:v,width:p.width},v+=p.width*(1+l)})}),n}var NGe={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},$Ge={splitNumber:5},BGe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="polar",t}(gr);function FGe(e){dn($y),gd.registerAxisPointerClass("PolarAxisPointer",uGe),e.registerCoordinateSystem("polar",CGe),e.registerComponentModel(fGe),e.registerComponentView(BGe),uv(e,"angle",dGe,NGe),uv(e,"radius",hGe,$Ge),e.registerComponentView(AGe),e.registerComponentView(PGe),e.registerLayout(Zt(RGe,"bar"))}function ZA(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),na(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 VGe=["axisLine","axisTickLabel","axisName"],zGe=["splitArea","splitLine"],HGe=function(e){Ne(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 Gt;var l=ZA(n),u=new El(n,l);K(VGe,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),K(zGe,function(c){n.get([c,"show"])&&WGe[c](this,this.group,this._axisGroup,n)},this),xy(s,this._axisGroup,n),e.prototype.render.call(this,n,r,a,i)},t.prototype.remove=function(){zY(this)},t.type="singleAxis",t}(gd),WGe={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 ra({shape:{x1:v[0],y1:v[1],x2:p[0],y2:p[1]},silent:!0});iv(b.shape,l);var w=d++%s.length;f[w]=f[w]||[],f[w].push(b)}for(var S=o.getLineStyle(["color"]),g=0;g<f.length;++g)t.add(Ii(f[g],{style:Lt({stroke:s[g%s.length]},S),silent:!0}))}},splitArea:function(e,t,n,r){VY(e,n,r,r)}};const GGe=HGe;var SX=function(e){Ne(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}(kn);Ir(SX,Vv.prototype);const L2=SX;var UGe=function(e){Ne(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}(To);const KGe=UGe;var CX=["single"],jGe=function(){function e(t,n,r){this.type="single",this.dimension="single",this.dimensions=CX,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 KGe(a,Ey(t),[0,0],t.get("type"),t.get("position")),o=i.type==="category";i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),t.axis=i,i.model=t,i.coordinateSystem=this,this._axis=i},e.prototype.update=function(t,n){t.eachSeries(function(r){if(r.coordinateSystem===this){var a=r.getData();K(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),Qf(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,n){this._rect=Yr({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=kF(n);return a===this?this.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=kF(n);return a===this?this.pointToData(r):null},e}();function kF(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}function YGe(e,t){var n=[];return e.eachComponent("singleAxis",function(r,a){var i=new jGe(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",Hr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var qGe={create:YGe,dimensions:CX};const XGe=qGe;var AF=["x","y"],ZGe=["width","height"],JGe=function(e){Ne(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=P2(l,1-N_(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=SL(i),h=QGe[f](s,c,u);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=ZA(a);pX(r,n,v,a,i,o)},t.prototype.getHandleTransform=function(n,r,a){var i=ZA(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=CL(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=N_(o),u=P2(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=P2(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}(wL),QGe={line:function(e,t,n){var r=xL([t,n[0]],[t,n[1]],N_(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:gX([t-r/2,n[0]],[r,a],N_(e))}}};function N_(e){return e.isHorizontal()?0:1}function P2(e,t){var n=e.getRect();return[n[AF[t]],n[AF[t]]+n[ZGe[t]]]}const eUe=JGe;var tUe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="single",t}(gr);function nUe(e){dn($y),gd.registerAxisPointerClass("SingleAxisPointer",eUe),e.registerComponentView(tUe),e.registerComponentView(GGe),e.registerComponentModel(L2),uv(e,"single",L2,L2.defaultOption),e.registerCoordinateSystem("single",XGe)}var rUe=function(e){Ne(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=Lv(n);e.prototype.init.apply(this,arguments),EF(n,i)},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),EF(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}(kn);function EF(e,t){var n=e.cellSize,r;et(n)?r=n:r=e.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=at([0,1],function(i){return jOe(t,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});Yu(e,t,{type:"box",ignoreSize:a})}const aUe=rUe;var iUe=function(e){Ne(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 En({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 li({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 St(n)&&n?WOe(n,r):It(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 An({z2:30,style:er(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||St(s))&&(s&&(r=oA(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 w=o.get("formatter"),S=s[+m.m-1],C={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:S},y=this._formatterLabel(w,C),x=new An({z2:30,style:je(er(o,{text:y}),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||St(c)){c&&(r=oA(c)||r);var h=r.get(["time","dayOfWeekShort"]);c=h||at(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=yt(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,w=g;w=Math.abs((g+d)%7);var S=new An({z2:30,style:je(er(s,{text:c[w]}),this._weekTextPositionControl(b,i,u,f,p))});o.add(S)}}},t.type="calendar",t}(gr);const oUe=iUe;var R2=864e5,sUe=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=Fi(t);var n=t.getFullYear(),r=t.getMonth()+1,a=r<10?"0"+r:""+r,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:n+"",m:a,d:o,day:s,time:t.getTime(),formatedDate:n+"-"+a+"-"+o,date:t}},e.prototype.getNextNDay=function(t,n){return n=n||0,n===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+n),this.getDateInfo(t))},e.prototype.update=function(t,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];K([0,1],function(f){c(i,f)&&(o[a[f]]=i[f]*s[f])});var l={width:n.getWidth(),height:n.getHeight()},u=this._rect=Yr(o,l);K([0,1],function(f){c(i,f)||(i[f]=u[a[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=i[0],this._sh=i[1]},e.prototype.dataToPoint=function(t,n){et(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+R2))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=MF(n);return a===this?a.dataToPoint(r):null},e.prototype.convertFromPixel=function(t,n,r){var a=MF(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(et(t)&&t.length===1&&(t=t[0]),et(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/R2)-Math.floor(n[0].time/R2)+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 MF(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}const lUe=sUe;function uUe(e){e.registerComponentModel(aUe),e.registerComponentView(oUe),e.registerCoordinateSystem("calendar",lUe)}function cUe(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 IF(e,t){var n;return K(t,function(r){e[r]!=null&&e[r]!=="auto"&&(n=!0)}),n}function fUe(e,t,n){var r=je({},n),a=e[t],i=n.$action||"merge";i==="merge"?a?(rn(a,r,!0),Yu(a,r,{ignoreSize:!0}),iK(n,a),mb(n,a),mb(n,a,"shape"),mb(n,a,"style"),mb(n,a,"extra"),n.clipPath=a.clipPath):e[t]=r:i==="replace"?e[t]=r:i==="remove"&&a&&(e[t]=null)}var xX=["transition","enterFrom","leaveTo"],dUe=xX.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function mb(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),!(!e||!t))for(var r=n?xX:dUe,a=0;a<r.length;a++){var i=r[a];e[i]==null&&t[i]!=null&&(e[i]=t[i])}}function hUe(e,t){if(e&&(e.hv=t.hv=[IF(t,["left","right"]),IF(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 vUe=function(e){Ne(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=HG(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];K(l,function(c,f){var d=c.newOption;d&&(u.push(d),cUe(c,d),fUe(o,f,d),hUe(o[f],d))},this),a.elements=zn(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(n,r,a){K(n,function(i){if(i){a&&(i.parentOption=a),r.push(i);var o=i.children;o&&o.length&&this._flatten(o,r,i),delete i.children}},this)},t.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},t.type="graphic",t.defaultOption={elements:[]},t}(kn),DF={path:null,compoundPath:null,group:Gt,image:ga,text:An},Qi=Ln(),pUe=function(e){Ne(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=Et()},t.prototype.render=function(n,r,a){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,a)},t.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var a=this._elMap,i=this.group,o=n.get("z"),s=n.get("zlevel");K(r,function(l){var u=Zr(l.id,null),c=u!=null?a.get(u):null,f=Zr(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&&rX(v,h,!!g,!!p)){var m=aX(v,h,!0);!g&&m.textConfig&&(g=l.textConfig=m.textConfig),!p&&m.textContent&&(p=m.textContent)}var b=gUe(l),w=l.$action||"merge",S=w==="merge",C=w==="replace";if(S){var y=!c,x=c;y?x=LF(u,d,l.type,a):(x&&(Qi(x).isNew=!1),lX(x)),x&&(g1(x,b,n,{isInit:y}),PF(x,l,o,s))}else if(C){y1(c,l,a,n);var T=LF(u,d,l.type,a);T&&(g1(T,b,n,{isInit:!0}),PF(T,l,o,s))}else w==="remove"&&(oX(c,l),y1(c,l,a,n));var A=a.get(u);if(A&&p)if(S){var M=A.getTextContent();M?M.attr(p):A.setTextContent(new An(p))}else C&&A.setTextContent(new An(p));if(A){var E=l.clipPath;if(E){var I=E.type,L=void 0,y=!1;if(S){var O=A.getClipPath();y=!O||Qi(O).type!==I,L=y?JA(I):O}else C&&(y=!0,L=JA(I));A.setClipPath(L),g1(L,E,n,{isInit:y}),R_(L,E.keyframeAnimation,n)}var z=Qi(A);A.setTextConfig(g),z.option=l,mUe(A,n,l),Mv({el:A,componentModel:n,itemName:A.name,itemTooltipOption:l.tooltip}),R_(A,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=Zr(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var v=h.parent,p=v===i,g=Qi(h),m=Qi(v);g.width=yt(g.option.width,p?s:m.width)||0,g.height=yt(g.option.height,p?l:m.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=Zr(f.id,null),h=d!=null?o.get(d):null;if(h){var v=h.parent,m=Qi(v),b=v===i?{width:s,height:l}:{width:m.width,height:m.height},w={},S=uS(h,f,b,null,{hv:f.hv,boundingMode:f.bounding},w);if(!Qi(h).isNew&&S){for(var C=f.transition,y={},x=0;x<u.length;x++){var T=u[x],A=w[T];C&&(zf(C)||cn(C,T)>=0)?y[T]=A:h[T]=A}Pn(h,y,n,0)}else h.attr(w)}}},t.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){y1(a,Qi(a).option,r,n._lastGraphicModel)}),this._elMap=Et()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(gr);function JA(e){var t=Tt(DF,e)?DF[e]:nS(e),n=new t({});return Qi(n).type=e,n}function LF(e,t,n,r){var a=JA(n);return t.add(a),r.set(e,a),Qi(a).id=e,Qi(a).isNew=!0,a}function y1(e,t,n,r){var a=e&&e.parent;a&&(e.type==="group"&&e.traverse(function(i){y1(i,t,n,r)}),kS(e,t,r),n.removeKey(Qi(e).id))}function PF(e,t,n,r){e.isGroup||K([["cursor",_o.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];Tt(t,i)?e[i]=on(t[i],a[1]):e[i]==null&&(e[i]=a[1])}),K(_n(t),function(a){if(a.indexOf("on")===0){var i=t[a];e[a]=It(i)?i:null}}),Tt(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function gUe(e){return e=je({},e),K(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(aK),function(t){delete e[t]}),e}function mUe(e,t,n){var r=Jt(e).eventData;!e.silent&&!e.ignore&&!r&&(r=Jt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function yUe(e){e.registerComponentModel(vUe),e.registerComponentView(pUe),e.registerPreprocessor(function(t){var n=t.graphic;et(n)?!n[0]||!n[0].elements?t.graphic=[{elements:n}]:t.graphic=[t.graphic[0]]:n&&!n.elements&&(t.graphic=[{elements:[n]}])})}var RF=["x","y","radius","angle","single"],bUe=["cartesian2d","polar","singleAxis"];function _Ue(e){var t=e.get("coordinateSystem");return cn(bUe,t)>=0}function ku(e){return e+"Axis"}function wUe(e,t){var n=Et(),r=[],a=Et();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 TX(e){var t=e.ecModel,n={infoList:[],infoMap:Et()};return e.eachTargetAxis(function(r,a){var i=t.getComponent(ku(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 O2=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}(),SUe=function(e){Ne(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=OF(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},t.prototype.mergeOption=function(n){var r=OF(n);rn(this.option,n,!0),rn(this.settledOption,r,!0),this._doInit(r)},t.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;K([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Et(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return K(RF,function(a){var i=this.getReferringComponents(ku(a),kPe);if(i.specified){r=!0;var o=new O2;K(i.models,function(s){o.add(s.componentIndex)}),n.set(a,o)}},this),r},t.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new O2;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",Hr).models[0];h&&K(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Hr).models[0]&&d.add(v.componentIndex)})}}}i&&K(RF,function(u){if(i){var c=a.findComponents({mainType:ku(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new O2;f.add(c[0].componentIndex),n.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");K([["start","startValue"],["end","endValue"]],function(i,o){var s=n[i[0]]!=null,l=n[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(ku(r),a))},this),n},t.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){K(a.indexList,function(o){n.call(r,i,o)})})},t.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(ku(n),r)},t.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;K([["start","startValue"],["end","endValue"]],function(i){(n[i[0]]!=null||n[i[1]]!=null)&&(r[i[0]]=a[i[0]]=n[i[0]],r[i[1]]=a[i[1]]=n[i[1]])},this),this._updateRangeUse(n)},t.prototype.setCalculatedRange=function(n){var r=this.option;K(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},t.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},t.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(kn);function OF(e){var t={};return K(["start","end","startValue","endValue","throttle"],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}const Km=SUe;var CUe=function(e){Ne(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}(Km);const xUe=CUe;var TUe=function(e){Ne(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}(gr);const EL=TUe;var kUe=function(e){Ne(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}(EL);const AUe=kUe;var oh=K,NF=Ri,EUe=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(_Ue(n)){var r=ku(this._dimName),a=n.getReferringComponents(r,Hr).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 Ft(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;oh(["start","end"],function(d,h){var v=t[d],p=t[d+"Value"];i[h]==="percent"?(v==null&&(v=o[h]),p=a.parse(Vn(v,o,n))):(u=!0,p=p==null?n[h]:a.parse(p),v=Vn(p,n,o)),l[h]=p==null||isNaN(p)?n[h]:p,s[h]=v==null||isNaN(v)?o[h]:v}),NF(l),NF(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";md(0,d,v,"all",c["min"+m],c["max"+m]);for(var b=0;b<2;b++)h[b]=Vn(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=MUe(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;oh(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=at(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),w=!isNaN(b),S=b<o[0],C=b>o[1];if(w&&!S&&!C)return!0;w&&(g=!0),S&&(v=!0),C&&(p=!0)}return g&&v&&p})}else oh(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)}});oh(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;oh(["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=Vn(r[0]+o,r,[0,100],!0):i!=null&&(o=Vn(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=PI(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 MUe(e,t,n){var r=[1/0,-1/0];oh(n,function(o){F4e(r,o.getData(),t)});var a=e.getAxisModel(),i=Hj(a.axis.scale,a,r).calculate();return[i.min,i.max]}const IUe=EUe;var DUe={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(ku(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 IUe(a,i,s,e),n.push(o.__dzAxisProxy))});var r=Et();return K(n,function(a){K(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(e,t){e.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,t)})}),e.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const LUe=DUe;function PUe(e){e.registerAction("dataZoom",function(t,n){var r=wUe(n,t);K(r,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var $F=!1;function ML(e){$F||($F=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,LUe),PUe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function RUe(e){e.registerComponentModel(xUe),e.registerComponentView(AUe),ML(e)}var to=function(){function e(){}return e}(),kX={};function sh(e,t){kX[e]=t}function AX(e){return kX[e]}var OUe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;K(this.option.feature,function(r,a){var i=AX(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),rn(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}(kn);const NUe=OUe;function $Ue(e,t,n){var r=t.getBoxLayoutParams(),a=t.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=Yr(r,i,a);$f(t.get("orient"),e,t.get("itemGap"),o.width,o.height),uS(e,r,i,a)}function EX(e,t){var n=hd(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new En({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 BUe=function(e){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a,i){var o=this.group;if(o.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];K(u,function(v,p){f.push(p)}),new kl(this._featureNames||[],f).add(d).update(d).remove(Zt(d,null)).execute(),this._featureNames=f;function d(v,p){var g=f[v],m=f[p],b=u[g],w=new Yn(b,n,n.ecModel),S;if(i&&i.newTitle!=null&&i.featureName===g&&(b.title=i.newTitle),g&&!m){if(FUe(g))S={onclick:w.option.onclick,featureName:g};else{var C=AX(g);if(!C)return;S=new C}c[g]=S}else if(S=c[m],!S)return;S.uid=Dv("toolbox-feature"),S.model=w,S.ecModel=r,S.api=a;var y=S instanceof to;if(!g&&m){y&&S.dispose&&S.dispose(r,a);return}if(!w.get("show")||y&&S.unusable){y&&S.remove&&S.remove(r,a);return}h(w,S,g),w.setIconStatus=function(x,T){var A=this.option,M=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[x]=T,M[x]&&(T==="emphasis"?xl:Tl)(M[x])},S instanceof to&&S.render&&S.render(w,r,a,i)}function h(v,p,g){var m=v.getModel("iconStyle"),b=v.getModel(["emphasis","iconStyle"]),w=p instanceof to&&p.getIcons?p.getIcons():v.get("icon"),S=v.get("title")||{},C,y;St(w)?(C={},C[g]=w):C=w,St(S)?(y={},y[g]=S):y=S;var x=v.iconPaths={};K(C,function(T,A){var M=Ev(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(m.getItemStyle());var E=M.ensureState("emphasis");E.style=b.getItemStyle();var I=new An({style:{text:y[A],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null},ignore:!0});M.setTextContent(I),Mv({el:M,componentModel:n,itemName:A,formatterParamsExtra:{title:y[A]}}),M.__title=y[A],M.on("mouseover",function(){var L=b.getItemStyle(),O=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:b.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),M.setTextConfig({position:b.get("textPosition")||O}),I.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",A])!=="emphasis"&&a.leaveEmphasis(this),I.hide()}),(v.get(["iconStatus",A])==="emphasis"?xl:Tl)(M),o.add(M),M.on("click",Ct(p.onclick,p,r,a,A)),x[A]=M})}$Ue(o,n,a),o.add(EX(o.getBoundingRect(),n)),l||o.eachChild(function(v){var p=v.__title,g=v.ensureState("emphasis"),m=g.textConfig||(g.textConfig={}),b=v.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!It(w)&&p){var S=w.style||(w.style={}),C=yy(p,An.makeFont(S)),y=v.x+o.x,x=v.y+o.y+s,T=!1;x+C.height>a.getHeight()&&(m.position="top",T=!0);var A=T?-5-C.height:s+10;y+C.width/2>a.getWidth()?(m.position=["100%",A],S.align="right"):y-C.width/2<0&&(m.position=[0,A],S.align="left")}})},t.prototype.updateView=function(n,r,a,i){K(this._features,function(o){o instanceof to&&o.updateView&&o.updateView(o.model,r,a,i)})},t.prototype.remove=function(n,r){K(this._features,function(a){a instanceof to&&a.remove&&a.remove(n,r)}),this.group.removeAll()},t.prototype.dispose=function(n,r){K(this._features,function(a){a instanceof to&&a.dispose&&a.dispose(n,r)})},t.type="toolbox",t}(gr);function FUe(e){return e.indexOf("my")===0}const VUe=BUe;var zUe=function(e){Ne(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=Mn.browser;if(It(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 w=document.createElement("iframe");document.body.appendChild(w);var S=w.contentWindow,C=S.document;C.open("image/svg+xml","replace"),C.write(v),C.close(),S.focus(),C.execCommand("SaveAs",!0,p),document.body.removeChild(w)}}else{var y=a.get("lang"),x='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(y&&y[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}(to);const HUe=zUe;var BF="__ec_magicType_stack__",WUe=[["line","bar"],["stack"]],GUe=function(e){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),a={};return K(n.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},t.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},t.prototype.onclick=function(n,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(FF[a]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,v=FF[a](d,h,f,i);v&&(Lt(v,f.option),s.series.push(v));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var m=g.dim,b=m+"Axis",w=f.getReferringComponents(b,Hr).models[0],S=w.componentIndex;s[b]=s[b]||[];for(var C=0;C<=S;C++)s[b][S]=s[b][S]||{};s[b][S].boundaryGap=a==="bar"}}};K(WUe,function(f){cn(f,a)>=0&&K(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=rn({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}(to),FF={line:function(e,t,n,r){if(e==="bar")return rn({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 rn({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")===BF;if(e==="line"||e==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),rn({id:t,stack:a?"":BF},r.get(["option","stack"])||{},!0)}};ls({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});const UUe=GUe;var AS=new Array(60).join("-"),dv=" ";function KUe(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 jUe(e){var t=[];return K(e,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(at(n.series,function(h){return h.name})),l=[a.model.getCategories()];K(n.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(p){return p}))});for(var u=[s.join(dv)],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(dv))}t.push(u.join(`
  102. `))}),t.join(`
  103. `+AS+`
  104. `)}function YUe(e){return at(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+dv:"")+a.join(dv))}),r.join(`
  105. `)}).join(`
  106. `+AS+`
  107. `)}function qUe(e){var t=KUe(e);return{value:zn([jUe(t.seriesGroupByCategoryAxis),YUe(t.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
  108. `+AS+`
  109. `),meta:t.meta}}function $_(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function XUe(e){var t=e.slice(0,e.indexOf(`
  110. `));if(t.indexOf(dv)>=0)return!0}var QA=new RegExp("["+dv+"]+","g");function ZUe(e){for(var t=e.split(/\n+/g),n=$_(t.shift()).split(QA),r=[],a=at(n,function(l){return{name:l,data:[]}}),i=0;i<t.length;i++){var o=$_(t[i]).split(QA);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 JUe(e){for(var t=e.split(/\n+/g),n=$_(t.shift()),r=[],a=0;a<t.length;a++){var i=$_(t[a]);if(i){var o=i.split(QA),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 QUe(e,t){var n=e.split(new RegExp(`
  111. *`+AS+`
  112. *`,"g")),r={series:[]};return K(n,function(a,i){if(XUe(a)){var o=ZUe(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=JUe(a);r.series.push(o)}}),r}var eKe=function(e){Ne(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=qUe(n);if(It(f)){var v=f(r.getOption());St(v)?u.innerHTML=v:rv(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",w=document.createElement("div"),S=document.createElement("div");b+=";background-color:"+i.get("buttonColor"),b+=";color:"+i.get("buttonTextColor");var C=this;function y(){a.removeChild(o),C._dom=null}Dk(w,"click",y),Dk(S,"click",function(){if(d==null&&f!=null||d!=null&&f==null){y();return}var x;try{It(d)?x=d(u,r.getOption()):x=QUe(c.value,g)}catch(T){throw y(),new Error("Data view format error "+T)}x&&r.dispatchAction({type:"changeDataView",newOption:x}),y()}),w.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=w.style.cssText=b,!i.get("readOnly")&&m.appendChild(S),m.appendChild(w),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}(to);function tKe(e,t){return at(e,function(n,r){var a=t&&t[r];if(Ot(a)&&!et(a)){var i=Ot(n)&&!et(n);i||(n={value:n});var o=a.name!=null&&n.name==null;return n=Lt(n,a),o&&delete n.name,n}else return n})}ls({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var n=[];K(e.newOption.series,function(r){var a=t.getSeriesByName(r.name)[0];if(!a)n.push(je({type:"scatter"},r));else{var i=a.get("data");n.push({name:r.name,data:tKe(r.data,i)})}}),t.mergeOption(Lt({series:n},e.newOption))});const nKe=eKe;var MX=K,IX=Ln();function rKe(e,t){var n=IL(e);MX(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 aKe(e){var t=IL(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return MX(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 iKe(e){IX(e).snapshots=null}function oKe(e){return IL(e).length}function IL(e){var t=IX(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var sKe=function(e){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(n,r){iKe(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}(to);ls({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});const lKe=sKe;var uKe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],cKe=function(){function e(t,n,r){var a=this;this._targetInfoList=[];var i=VF(n,t);K(fKe,function(o,s){(!r||!r.include||cn(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=N2[r.brushType](0,i,a);r.__rangeOffset={offset:GF[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,n,r){K(t,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&K(i.coordSyses,function(o){var s=N2[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},e.prototype.setInputRanges=function(t,n){K(t,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=N2[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?GF[r.brushType](i.values,o.offset,dKe(i.xyMinMax,o.xyMinMax)):i.values}},this)},e.prototype.makePanelOpts=function(t,n){return at(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:$q(a),isTargetByCursor:Fq(a,t,r.coordSysModel),getLinearBrushOtherExtent:Bq(a)}})},e.prototype.controlSeries=function(t,n,r){var a=this.findTargetInfo(t,r);return a===!0||a&&cn(a.coordSyses,n.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,n){for(var r=this._targetInfoList,a=VF(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<zF.length;l++)if(zF[l](a,o))return o}return!0},e}();function eE(e){return e[0]>e[1]&&e.reverse(),e}function VF(e,t){return Cg(e,t,{includeMainTypes:uKe})}var fKe={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,a=e.gridModels,i=Et(),o={},s={};!n&&!r&&!a||(K(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),K(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),K(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];K(u.getCartesians(),function(f,d){(cn(n,f.getAxis("x").model)>=0||cn(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:HF.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){K(e.geoModels,function(n){var r=n.coordinateSystem;t.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:HF.geo})})}},zF=[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}],HF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Ru(e)),t}},N2={lineX:Zt(WF,0),lineY:Zt(WF,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=[eE([a[0],i[0]]),eE([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=at(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 WF(e,t,n,r){var a=n.getAxis(["x","y"][e]),i=eE(at([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 GF={lineX:Zt(UF,0),lineY:Zt(UF,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 at(e,function(r,a){return[r[0]-n[0]*t[a][0],r[1]-n[1]*t[a][1]]})}};function UF(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function dKe(e,t){var n=KF(e),r=KF(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 KF(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}const DL=cKe;var tE=K,hKe=wPe("toolbox-dataZoom_"),vKe=function(e){Ne(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 fL(a.getZr()),this._brushController.on("brush",Ct(this._onBrush,this)).mount()),mKe(n,r,this,i,a),gKe(n,r)},t.prototype.onclick=function(n,r,a){pKe[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 DL(LL(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)}}),rKe(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=md(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=[];tE(n,function(a,i){r.push(Ft(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}(to),pKe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(aKe(this.ecModel))}};function LL(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 gKe(e,t){e.setIconStatus("back",oKe(t)>1?"emphasis":"normal")}function mKe(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 DL(LL(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)}QOe("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=LL(r),o=Cg(e,i);tE(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),tE(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:hKe+u+f};d[c]=f,a.push(d)}return a});const yKe=vKe;function bKe(e){e.registerComponentModel(NUe),e.registerComponentView(VUe),sh("saveAsImage",HUe),sh("magicType",UUe),sh("dataView",nKe),sh("dataZoom",yKe),sh("restore",lKe),dn(RUe)}var _Ke=function(e){Ne(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}(kn);const wKe=_Ke;function DX(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function LX(e){if(Mn.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var PX=LX(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),SKe=LX(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function RX(e,t){if(!e)return t;t=iD(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function CKe(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var xKe=RX(SKe,"transition"),PL=RX(PX,"transform"),TKe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Mn.transform3dSupported?"will-change:transform;":"");function kKe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function AKe(e,t,n){if(!St(n)||n==="inside")return"";var r=e.get("backgroundColor"),a=e.get("borderWidth");t=Jf(t);var i=kKe(n),o=Math.max(Math.round(a)*1.5,6),s="",l=PL+":",u;cn(["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 EKe(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+=Mn.transformSupported?","+PL+r:",left"+r+",top"+r),xKe+":"+a}function jF(e,t,n){var r=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!Mn.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=Mn.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+PL+":"+o+";":[["top",0],["left",0],[PX,o]]}function MKe(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(n*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),K(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function IKe(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=BK(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),t&&a&&r.push(EKe(a,n)),i&&r.push("background-color:"+i),K(["width","color","radius"],function(h){var v="border-"+h,p=iD(v),g=e.get(p);g!=null&&r.push(v+":"+g+(h==="color"?"":"px"))}),r.push(MKe(c)),f!=null&&r.push("padding:"+hd(f).join("px ")+"px"),r.join(";")+";"}function YF(e,t,n,r,a){var i=t&&t.painter;if(n){var o=i&&i.getViewportRoot();o&&FDe(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 DKe=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,Mn.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;YF(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();qi(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=CKe(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=TKe+IKe(t,!this._firstShow,this._longHide)+jF(i[0],i[1],!0)+("border-color:"+Jf(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(St(i)&&r.get("trigger")==="item"&&!DX(r)&&(s=AKe(r,a,i)),St(t))o.innerHTML=t+s;else if(t){o.innerHTML="",et(t)||(t=[t]);for(var l=0;l<t.length;l++)rv(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(YF(r,this._zr,this._appendToBody,t,n),r[0]!=null&&r[1]!=null){var a=this.el.style,i=jF(r[0],r[1]);K(i,function(o){a[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Mn.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(Ct(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 LKe=DKe;var PKe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),XF(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;Ot(t)&&$n(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new An({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:BK(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),K(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),K(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),r=qF(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;XF(a,this._zr,t,n),t=a[0],n=a[1];var i=r.style,o=fu(i.borderWidth||0),s=qF(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(Ct(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function fu(e){return Math.max(0,e)}function qF(e){var t=fu(e.shadowBlur||0),n=fu(e.shadowOffsetX||0),r=fu(e.shadowOffsetY||0);return{left:fu(t-n),right:fu(t+n),top:fu(t-r),bottom:fu(t+r)}}function XF(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}const RKe=PKe;var OKe=new En({shape:{x:-1,y:-1,width:2,height:2}}),NKe=function(e){Ne(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(!(Mn.node||!r.getDom())){var a=n.getComponent("tooltip"),i=this._renderMode=EPe(a.get("renderMode"));this._tooltipContent=i==="richText"?new RKe(r):new LKe(r.getDom(),r,{appendToBody:a.get("appendToBody",!0)})}},t.prototype.render=function(n,r,a){if(!(Mn.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")?$v(this,"_updatePosition",50,"fixRate"):Rm(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");mX("itemTooltip",this._api,Ct(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||Mn.node||!a.getDom())){var o=ZF(i,a);this._ticket="";var s=i.dataByCoordSys,l=VKe(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=OKe;c.x=i.x,c.y=i.y,c.update(),Jt(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=yX(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(ZF(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=Pp([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;Tf(a,function(u){if(Jt(u).dataIndex!=null)return s=u,!0;if(Jt(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=Ct(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=Pp([r.tooltipOption],i),l=this._renderMode,u=[],c=la("section",{blocks:[],noHeader:!0}),f=[],d=new _x;K(n,function(b){K(b.dataByAxis,function(w){var S=a.getComponent(w.axisDim+"Axis",w.axisIndex),C=w.value;if(!(!S||C==null)){var y=vX(C,S.axis,a,w.seriesDataIndices,w.valueLabelOpt),x=la("section",{header:y,noHeader:!oo(y),sortBlocks:!0,blocks:[]});c.blocks.push(x),K(w.seriesDataIndices,function(T){var A=a.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,E=A.getDataParams(M);if(!(E.dataIndex<0)){E.axisDim=w.axisDim,E.axisIndex=w.axisIndex,E.axisType=w.axisType,E.axisId=w.axisId,E.axisValue=OD(S.axis,{value:C}),E.axisValueLabel=y,E.marker=d.makeTooltipMarker("item",Jf(E.color),l);var I=$3(A.formatTooltip(M,!0,null)),L=I.frag;if(L){var O=Pp([A],i).get("valueFormatter");x.blocks.push(O?je({valueFormatter:O},L):L)}I.text&&f.push(I.text),u.push(E)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,v=s.get("order"),p=W3(c,d,l,v,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
  113. `:"<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=Jt(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=Pp([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 _x;m.marker=b.makeTooltipMarker("item",Jf(m.color),h);var w=$3(u.formatTooltip(c,!1,f)),S=p.get("order"),C=p.get("valueFormatter"),y=w.frag,x=y?W3(C?je({valueFormatter:C},y):y,b,h,S,i.get("useUTC"),p.get("textStyle")):w.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=Jt(r),o=i.tooltipConfig,s=o.option||{};if(St(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=Pp(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",p=new _x;this._showOrMove(d,function(){var g=Ft(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(St(d)){var g=n.ecModel.get("useUTC"),m=et(a)?a[0]:a,b=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,b&&(h=ky(m.axisValue,h,g)),h=oD(h,a,!0)}else if(It(d)){var w=Ct(function(S,C){S===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,w)}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"||et(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!et(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),It(r)&&(r=r([a,i],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),et(r))a=yt(r[0],u),i=yt(r[1],c);else if(Ot(r)){var p=r;p.width=f[0],p.height=f[1];var g=Yr(p,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(St(r)&&l){var m=FKe(r,v,f,n.get("borderWidth"));a=m[0],i=m[1]}else{var m=$Ke(a,i,o,u,c,d?null:20,h?null:20);a=m[0],i=m[1]}if(d&&(a-=JF(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=JF(h)?f[1]/2:h==="bottom"?f[1]:0),DX(n)){var m=BKe(a,i,o,u,c);a=m[0],i=m[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&K(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&K(u,function(d,h){var v=f[h]||{},p=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&p.length===g.length,o&&K(p,function(m,b){var w=g[b];o=o&&m.seriesIndex===w.seriesIndex&&m.dataIndex===w.dataIndex}),i&&K(d.seriesDataIndices,function(m){var b=m.seriesIndex,w=r[b],S=i[b];w&&S&&S.data!==w.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){Mn.node||!r.getDom()||(Rm(this,"_updatePosition"),this._tooltipContent.dispose(),XA("itemTooltip",r))},t.type="tooltip",t}(gr);function Pp(e,t,n){var r=t.ecModel,a;n?(a=new Yn(n,r,r),a=new Yn(t.option,a,r)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Yn&&(o=o.get("tooltip",!0)),St(o)&&(o={formatter:o}),o&&(a=new Yn(o,a,r)))}return a}function ZF(e,t){return e.dispatchAction||Ct(t.dispatchAction,t)}function $Ke(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 BKe(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 FKe(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 JF(e){return e==="center"||e==="middle"}function VKe(e,t,n){var r=BI(e).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=by(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=Jt(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const zKe=NKe;function HKe(e){dn($y),e.registerComponentModel(wKe),e.registerComponentView(zKe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Er),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Er)}var WKe=["rect","polygon","keep","clear"];function GKe(e,t){var n=qn(e?e.brush:[]);if(n.length){var r=[];K(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=e&&e.toolbox;et(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),UKe(s),t&&!s.length&&s.push.apply(s,WKe)}}function UKe(e){var t={};K(e,function(n){t[n]=1}),e.length=0,K(t,function(n,r){e.push(r)})}var QF=K;function eV(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function nE(e,t,n){var r={};return QF(t,function(i){var o=r[i]=a();QF(e[i],function(s,l){if(wa.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new wa(u),l==="opacity"&&(u=Ft(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new wa(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function OX(e,t,n){var r;K(n,function(a){t.hasOwnProperty(a)&&eV(t[a])&&(r=!0)}),r&&K(n,function(a){t.hasOwnProperty(a)&&eV(t[a])?e[a]=Ft(t[a]):delete e[a]})}function KKe(e,t,n,r,a,i){var o={};K(e,function(f){var d=wa.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return yD(n,s,f)}function u(f,d){YK(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 w=g[m];p[w]&&p[w].applyVisual(f,l,u)}}}function jKe(e,t,n,r){var a={};return K(e,function(i){var o=wa.prepareVisualTypes(t[i]);a[i]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(C){return yD(s,f,C)}function c(C,y){YK(s,f,C,y)}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,w=m.length;b<w;b++){var S=m[b];g[S]&&g[S].applyVisual(v,u,c)}}}}}function YKe(e){var t=e.brushType,n={point:function(r){return tV[t].point(r,n,e)},rect:function(r){return tV[t].rect(r,n,e)}};return n}var tV={lineX:nV(0),lineY:nV(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])&&uf(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(uf(r,a,i)||uf(r,a+o,i)||uf(r,a,i+s)||uf(r,a+o,i+s)||sn.create(e).contain(l[0],l[1])||jp(a,i,a+o,i,r)||jp(a,i,a,i+s,r)||jp(a+o,i,a+o,i+s,r)||jp(a,i+s,a+o,i+s,r))return!0}}};function nV(e){var t=["x","y"],n=["width","height"];return{point:function(r,a,i){if(r){var o=i.range,s=r[e];return Rp(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(),Rp(s[0],o)||Rp(s[1],o)||Rp(o[0],s)||Rp(o[1],s)}}}}function Rp(e,t){return t[0]<=e&&e<=t[1]}var rV=["inBrush","outOfBrush"],$2="__ecBrushSelect",rE="__ecInBrushSelectEvent";function NX(e){e.eachComponent({mainType:"brush"},function(t){var n=t.brushTargetManager=new DL(t.option,e);n.setInputRanges(t.areas,e)})}function qKe(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})}),NX(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:Ft(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=at(o.areas,function(C){var y=QKe[C.brushType],x=Lt({boundingRect:y?y(C):void 0},C);return x.selectors=YKe(x),x}),g=nE(o.option,rV,function(C){C.mappingMethod="fixed"});et(c)&&K(c,function(C){f[C]=1});function m(C){return c==="all"||!!f[C]}function b(C){return!!C.length}e.eachSeries(function(C,y){var x=h[y]=[];C.subType==="parallel"?w(C,y):S(C,y,x)});function w(C,y){var x=C.coordinateSystem;v=v||x.hasAxisBrushed(),m(y)&&x.eachActiveState(C.getData(),function(T,A){T==="active"&&(d[A]=1)})}function S(C,y,x){if(!(!C.brushSelector||JKe(o,y))&&(K(p,function(A){o.brushTargetManager.controlSeries(A,C,e)&&x.push(A),v=v||b(x)}),m(y)&&b(x))){var T=C.getData();T.each(function(A){aV(C,x,T,A)&&(d[A]=1)})}}e.eachSeries(function(C,y){var x={seriesId:C.id,seriesIndex:y,seriesName:C.name,dataIndex:[]};l.selected.push(x);var T=h[y],A=C.getData(),M=m(y)?function(E){return d[E]?(x.dataIndex.push(A.getRawIndex(E)),"inBrush"):"outOfBrush"}:function(E){return aV(C,T,A,E)?(x.dataIndex.push(A.getRawIndex(E)),"inBrush"):"outOfBrush"};(m(y)?v:b(T))&&KKe(rV,g,A,M)})}),XKe(t,a,i,r,n)}function XKe(e,t,n,r,a){if(a){var i=e.getZr();if(!i[rE]){i[$2]||(i[$2]=ZKe);var o=$v(i,$2,n,t);o(e,r)}}}function ZKe(e,t){if(!e.isDisposed()){var n=e.getZr();n[rE]=!0,e.dispatchAction({type:"brushSelect",batch:t}),n[rE]=!1}}function aV(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 JKe(e,t){var n=e.option.seriesIndex;return n!=null&&n!=="all"&&(et(n)?cn(n,t)<0:t!==n)}var QKe={rect:function(e){return iV(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&&iV(t)}};function iV(e){return new sn(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var eje=function(e){Ne(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 fL(r.getZr())).on("brush",Ct(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){NX(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:Ft(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ft(a),$from:r})},t.type="brush",t}(gr);const tje=eje;var nje="#ddd",rje=function(e){Ne(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&&OX(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:nje},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(n){n&&(this.areas=at(n,function(r){return oV(this.option,r)},this))},t.prototype.setBrushOption=function(n){this.brushOption=oV(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}(kn);function oV(e,t){return rn({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Yn(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}const aje=rje;var ije=["rect","polygon","lineX","lineY","keep","clear"],oje=function(e){Ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(n,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,K(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},t.prototype.updateView=function(n,r,a){this.render(n,r,a)},t.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return K(n.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},t.prototype.onclick=function(n,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(n){var r={show:!0,type:ije.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}(to);const sje=oje;function lje(e){e.registerComponentView(tje),e.registerComponentModel(aje),e.registerPreprocessor(GKe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,qKe),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"},Er),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Er),sh("brush",sje)}var uje=function(e){Ne(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}(kn),cje=function(e){Ne(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=on(n.get("textBaseline"),n.get("textVerticalAlign")),c=new An({style:er(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),h=new An({style:er(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(){c_(v,"_"+n.get("target"))}),p&&h.on("click",function(){c_(p,"_"+n.get("subtarget"))}),Jt(c).eventData=Jt(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 w=Yr(b,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?w.x+=w.width:l==="center"&&(w.x+=w.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?w.y+=w.height:u==="middle"&&(w.y+=w.height/2),u=u||"top"),i.x=w.x,i.y=w.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),m=i.getBoundingRect();var C=w.margin,y=n.getItemStyle(["color","opacity"]);y.fill=n.get("backgroundColor");var x=new En({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:y,subPixelOptimize:!0,silent:!0});i.add(x)}},t.type="title",t}(gr);function fje(e){e.registerComponentModel(uje),e.registerComponentView(cje)}var dje=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return t.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},t.prototype.mergeOption=function(n){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(n){this.option.autoPlay=!!n},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,i=this._names=[],o;a==="category"?(o=[],K(r,function(u,c){var f=Zr(xv(u),""),d;Ot(u)?(d=Ft(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 Oa([{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}(kn);const sV=dje;var $X=function(e){Ne(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=cc(sV.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}(sV);Ir($X,vD.prototype);const hje=$X;var vje=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="timeline",t}(gr);const pje=vje;var gje=function(e){Ne(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}(To);const mje=gje;var B2=Math.PI,lV=Ln(),yje=function(e){Ne(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 la("nameValue",{noName:!0,value:c})},K(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,n)},this),this._renderAxisLabel(i,s,l,n),this._position(i,n)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(n,r){var a=n.get(["label","position"]),i=n.get("orient"),o=_je(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?"+":"-":St(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:B2/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*B2/180;var b,w,S,C=d.get("position",!0),y=h&&d.get("showPlayBtn",!0),x=h&&d.get("showPrevBtn",!0),T=h&&d.get("showNextBtn",!0),A=0,M=f;C==="left"||C==="bottom"?(y&&(b=[0,0],A+=g),x&&(w=[A,0],A+=g),T&&(S=[M-v,0],M-=g)):(y&&(b=[M-v,0],M-=g),x&&(w=[0,0],A+=g),T&&(S=[M-v,0],M-=g));var E=[A,M];return n.get("inverse")&&E.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:m,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[i],playPosition:b,prevBtnPosition:w,nextBtnPosition:S,axisExtent:E,controlSize:v,controlGap:p}},t.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=Bi(),l=o.x,u=o.y+o.height;es(s,s,[-l,-u]),lc(s,s,-B2/2),es(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||St(p)){var g=p==="+"?0:1;w(h,f,c,1,g),w(v,d,c,1,1-g)}else{var g=p>=0?0:1;w(h,f,c,1,g),v[1]=h[1]+p}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=n.rotation,m(a),m(i);function m(S){S.originX=c[0][0]-S.x,S.originY=c[1][0]-S.y}function b(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function w(S,C,y,x,T){S[x]+=y[x][T]-C[x][T]}},t.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=bje(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 mje("value",o,n.axisExtent,i);return l.model=r,l},t.prototype._createGroup=function(n){var r=this[n]=new Gt;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 ra({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:je({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new ra({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Lt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},t.prototype._renderAxisTick=function(n,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],K(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:Ct(o._changeTimeline,o,u.value)},g=uV(f,d,r,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=v.getItemStyle(),Pu(g);var m=Jt(g);f.get("tooltip")?(m.dataIndex=u.value,m.dataModel=i):m.dataIndex=m.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(n,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],K(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),v=d.getModel(["emphasis","label"]),p=d.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),m=new An({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:Ct(o._changeTimeline,o,f),silent:!1,style:er(h,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});m.ensureState("emphasis").style=er(v),m.ensureState("progress").style=er(p),r.add(m),Pu(m),lV(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",Ct(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",Ct(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",Ct(this._handlePlayClick,this,!c),!0);function d(h,v,p,g){if(h){var m=ts(on(i.get(["controlStyle",v+"BtnSize"]),o),o),b=[0,-m/2,m,m],w=wje(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});w.ensureState("emphasis").style=u,r.add(w),Pu(w)}}},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=Ct(u._handlePointerDrag,u),f.ondragend=Ct(u._handlePointerDragend,u),cV(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){cV(f,u._progressLine,s,a,i)}};this._currentPointer=uV(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=Ri(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 Zo(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",lV(a[i]).dataIndex<=n)},t.type="timeline.slider",t}(pje);function bje(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new DD({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new Vj({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new qu}}function _je(e,t){return Yr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function wje(e,t,n,r){var a=r.style,i=Ev(e.get(["controlStyle",t]),r||{},new sn(n[0],n[1],n[2],n[3]));return a&&i.setStyle(a),i}function uV(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=Nr(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=rn({rectHover:!0,z2:100},r,!0);var u=Bv(e.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=vd(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 cV(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 Sje=yje;function Cje(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,n,r){var a=n.getComponent("timeline");return a&&t.currentIndex!=null&&(a.setCurrentIndex(t.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),n.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),Lt({currentIndex:a.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,n){var r=n.getComponent("timeline");r&&t.playState!=null&&r.setPlayState(t.playState)})}function xje(e){var t=e&&e.timeline;et(t)||(t=t?[t]:[]),K(t,function(n){n&&Tje(n)})}function Tje(e){var t=e.type,n={number:"value",time:"time"};if(n[t]&&(e.axisType=n[t],delete e.type),fV(e),df(e,"controlPosition")){var r=e.controlStyle||(e.controlStyle={});df(r,"position")||(r.position=e.controlPosition),r.position==="none"&&!df(r,"show")&&(r.show=!1,delete r.position),delete e.controlPosition}K(e.data||[],function(a){Ot(a)&&!et(a)&&(!df(a,"value")&&df(a,"name")&&(a.value=a.name),fV(a))})}function fV(e){var t=e.itemStyle||(e.itemStyle={}),n=t.emphasis||(t.emphasis={}),r=e.label||e.label||{},a=r.normal||(r.normal={}),i={normal:1,emphasis:1};K(r,function(o,s){!i[s]&&!df(a,s)&&(a[s]=o)}),n.label&&!df(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function df(e,t){return e.hasOwnProperty(t)}function kje(e){e.registerComponentModel(hje),e.registerComponentView(Sje),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),Cje(e),e.registerPreprocessor(xje)}function RL(e,t){if(!e)return!1;for(var n=et(e)?e:[e],r=0;r<n.length;r++)if(n[r]&&n[r][t])return!0;return!1}function yb(e){Yf(e,"label",["show"])}var bb=Ln(),BX=function(e){Ne(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(Mn.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=bb(s)[o];if(!l||!l.data){bb(s)[o]=null;return}u?u._mergeOption(l,r,!0):(i&&yb(l),K(l.data,function(c){c instanceof Array?(yb(c[0]),yb(c[1])):yb(c)}),u=this.createMarkerModelFromSeries(l,this,r),je(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),bb(s)[o]=u},this)},t.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return la("section",{header:this.name,blocks:[la("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 bb(n)[r]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(kn);Ir(BX,vD.prototype);const Ju=BX;var Aje=function(e){Ne(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}(Ju);const Eje=Aje;function aE(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function Mje(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function _b(e,t,n,r,a,i){var o=[],s=Al(t,r),l=s?t.getCalculationInfo("stackResultDimension"):r,u=OL(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=Wo(t.get(r,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var F2={min:Zt(_b,"min"),max:Zt(_b,"max"),average:Zt(_b,"average"),median:Zt(_b,"median")};function jm(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,a=r&&r.dimensions;if(!Mje(t)&&!et(t.coord)&&et(a)){var i=FX(t,n,r,e);if(t=Ft(t),t.type&&F2[t.type]&&i.baseAxis&&i.valueAxis){var o=cn(a,i.baseAxis.dim),s=cn(a,i.valueAxis.dim),l=F2[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||!et(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)F2[u[c]]&&(u[c]=OL(n,n.mapDimension(a[c]),u[c]));return t}}function FX(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(Ije(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 Ije(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function Ym(e,t){return e&&e.containData&&t.coord&&!aE(t)?e.containData(t.coord):!0}function Dje(e,t,n){return e&&e.containZone&&t.coord&&n.coord&&!aE(t)&&!aE(n)?e.containZone(t.coord,n.coord):!0}function VX(e,t){return e?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return Nu(o,t[i])}:function(n,r,a,i){return Nu(n.value,t[i])}}function OL(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 V2=Ln(),Lje=function(e){Ne(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=Et()},t.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){V2(s).keep=!1}),r.eachSeries(function(s){var l=Ju.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!V2(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(n){V2(n).keep=!0},t.prototype.toggleBlurSeries=function(n,r){var a=this;K(n,function(i){var o=Ju.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?hU(l):GI(l))})}})},t.type="marker",t}(gr);const NL=Lje;function dV(e,t,n){var r=t.coordinateSystem;e.each(function(a){var i=e.getItemModel(a),o,s=yt(i.get("x"),n.getWidth()),l=yt(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 Pje=function(e){Ne(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=Ju.getMarkerModelFromSeries(i,"markPoint");o&&(dV(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 Dy),f=Rje(o,n,r);r.setData(f),dV(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(It(v)||It(p)||It(g)||It(m)){var w=r.getRawValue(d),S=r.getDataParams(d);It(v)&&(v=v(w,S)),It(p)&&(p=p(w,S)),It(g)&&(g=g(w,S)),It(m)&&(m=m(w,S))}var C=h.getModel("itemStyle").getItemStyle(),y=Ay(l,"color");C.fill||(C.fill=y),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){Jt(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markPoint",t}(NL);function Rje(e,t,n){var r;e?r=at(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return je(je({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Oa(r,n),i=at(n.get("data"),Zt(jm,t));e&&(i=zn(i,Zt(Ym,e)));var o=VX(!!e,r);return a.initData(i,null,o),a}const Oje=Pje;function Nje(e){e.registerComponentModel(Eje),e.registerComponentView(Oje),e.registerPreprocessor(function(t){RL(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var $je=function(e){Ne(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}(Ju);const Bje=$je;var wb=Ln(),Fje=function(e,t,n,r){var a=e.getData(),i;if(et(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=na(r.yAxis,r.xAxis);else{var u=FX(r,a,t,e);s=u.valueAxis;var c=ID(a,u.valueDataDim);l=OL(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=Ft(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&&Dn(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=[jm(e,i[0]),jm(e,i[1]),je({},i[2])];return g[2].type=g[2].type||null,rn(g[2],g[0]),rn(g[2],g[1]),g};function B_(e){return!isNaN(e)&&!isFinite(e)}function hV(e,t,n,r){var a=1-e,i=r.dimensions[e];return B_(t[a])&&B_(n[a])&&t[e]===n[e]&&r.getAxis(i).containData(t[e])}function Vje(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,r=t[1].coord;if(n&&r&&(hV(1,n,r,e)||hV(0,n,r,e)))return!0}return Ym(e,t[0])&&Ym(e,t[1])}function z2(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=yt(o.get("x"),a.getWidth()),u=yt(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(pd(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),c=i.dimensions;B_(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):B_(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 zje=function(e){Ne(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=Ju.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=wb(o).from,u=wb(o).to;l.each(function(c){z2(l,c,!0,i,a),z2(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 iL);this.group.add(c.group);var f=Hje(o,n,r),d=f.from,h=f.to,v=f.line;wb(r).from=d,wb(r).to=h,r.setData(v);var p=r.get("symbol"),g=r.get("symbolSize"),m=r.get("symbolRotate"),b=r.get("symbolOffset");et(p)||(p=[p,p]),et(g)||(g=[g,g]),et(m)||(m=[m,m]),et(b)||(b=[b,b]),f.from.each(function(S){w(d,S,!0),w(h,S,!1)}),v.each(function(S){var C=v.getItemModel(S).getModel("lineStyle").getLineStyle();v.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),C.stroke==null&&(C.stroke=d.getItemVisual(S,"style").fill),v.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:C})}),c.updateData(v),f.line.eachItemGraphicEl(function(S){Jt(S).dataModel=r,S.traverse(function(C){Jt(C).dataModel=r})});function w(S,C,y){var x=S.getItemModel(C);z2(S,C,y,n,i);var T=x.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Ay(l,"color")),S.setItemVisual(C,{symbolKeepAspect:x.get("symbolKeepAspect"),symbolOffset:on(x.get("symbolOffset",!0),b[y?0:1]),symbolRotate:on(x.get("symbolRotate",!0),m[y?0:1]),symbolSize:on(x.get("symbolSize"),g[y?0:1]),symbol:on(x.get("symbol",!0),p[y?0:1]),style:T})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},t.type="markLine",t}(NL);function Hje(e,t,n){var r;e?r=at(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return je(je({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new Oa(r,n),i=new Oa(r,n),o=new Oa([],n),s=at(n.get("data"),Zt(Fje,t,e,n));e&&(s=zn(s,Zt(Vje,e)));var l=VX(!!e,r);return a.initData(at(s,function(u){return u[0]}),null,l),i.initData(at(s,function(u){return u[1]}),null,l),o.initData(at(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const Wje=zje;function Gje(e){e.registerComponentModel(Bje),e.registerComponentView(Wje),e.registerPreprocessor(function(t){RL(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var Uje=function(e){Ne(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}(Ju);const Kje=Uje;var Sb=Ln(),jje=function(e,t,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=jm(e,a),s=jm(e,i),l=o.coord,u=s.coord;l[0]=na(l[0],-1/0),l[1]=na(l[1],-1/0),u[0]=na(u[0],1/0),u[1]=na(u[1],1/0);var c=Fw([{},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 F_(e){return!isNaN(e)&&!isFinite(e)}function vV(e,t,n,r){var a=1-e;return F_(t[a])&&F_(n[a])}function Yje(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 pd(e,"cartesian2d")?n&&r&&(vV(1,n,r)||vV(0,n,r))?!0:Dje(e,a,i):Ym(e,a)||Ym(e,i)}function pV(e,t,n,r,a){var i=r.coordinateSystem,o=e.getItemModel(t),s,l=yt(o.get(n[0]),a.getWidth()),u=yt(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(pd(i,"cartesian2d")){var b=i.getAxis("x"),w=i.getAxis("y"),p=e.get(n[0],t),g=e.get(n[1],t);F_(p)?s[0]=b.toGlobalCoord(b.getExtent()[n[0]==="x0"?0:1]):F_(g)&&(s[1]=w.toGlobalCoord(w.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var gV=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],qje=function(e){Ne(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=Ju.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=at(gV,function(f){return pV(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 Gt});this.group.add(c.group),this.markKeep(c);var f=Xje(o,n,r);r.setData(f),f.each(function(d){var h=at(gV,function(T){return pV(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))],w=[p.parse(f.get("y0",d)),p.parse(f.get("y1",d))];Ri(b),Ri(w);var S=!(g[0]>b[1]||g[1]<b[0]||m[0]>w[1]||m[1]<w[0]),C=!S;f.setItemLayout(d,{points:h,allClipped:C});var y=f.getItemModel(d).getModel("itemStyle").getItemStyle(),x=Ay(l,"color");y.fill||(y.fill=x,St(y.fill)&&(y.fill=wm(y.fill,.4))),y.stroke||(y.stroke=x),f.setItemVisual(d,"style",y)}),f.diff(Sb(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var v=new oi({shape:{points:h.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,h){var v=Sb(c).data.getItemGraphicEl(h),p=f.getItemLayout(d);p.allClipped?v&&c.group.remove(v):(v?Pn(v,{shape:{points:p.points}},r,d):v=new oi({shape:{points:p.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var h=Sb(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")),Ta(d,sa(v),{labelFetcher:r,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:St(p.fill)?wm(p.fill,1):"#000"}),xa(d,v),Ar(d,null,null,v.get(["emphasis","disabled"])),Jt(d).dataModel=r}),Sb(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},t.type="markArea",t}(NL);function Xje(e,t,n){var r,a,i=["x0","y0","x1","y1"];if(e){var o=at(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return je(je({},f),{name:u,ordinalMeta:null})});a=at(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new Oa(a,n)}else a=[{name:"value",type:"float"}],r=new Oa(a,n);var s=at(n.get("data"),Zt(jje,t,e,n));e&&(s=zn(s,Zt(Yje,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return Nu(h,a[d])}:function(u,c,f,d){return Nu(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}const Zje=qje;function Jje(e){e.registerComponentModel(Kje),e.registerComponentView(Zje),e.registerPreprocessor(function(t){RL(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var Qje=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"])}},eYe=function(e){Ne(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"]),et(r)&&K(r,function(i,o){St(i)&&(i={type:i}),r[o]=rn(i,Qje(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&&$I(l)&&r.push(l.name)}),this._availableNames=a;var i=this.get("data")||r,o=Et(),s=at(i,function(l){return(St(l)||Dn(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Yn(l,this,this.ecModel))},this);this._data=zn(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var r=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;K(i,function(o){r[o.get("name")]=!1})}r[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,r=this.option.selected;K(n,function(a){r[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;K(n,function(a){var i=a.get("name",!0);r.hasOwnProperty(i)||(r[i]=!0),r[i]=!r[i]})},t.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&cn(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}(kn);const iE=eYe;var Yd=Zt,oE=K,Cb=Gt,tYe=function(e){Ne(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 Cb),this.group.add(this._selectorGroup=new Cb),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=Yr(c,f,d),v=this.layoutInner(n,o,h,i,l,u),p=Yr(Lt({width:v.width,height:v.height},c),f,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=EX(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=Et(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),oE(r.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
  114. `)){var g=new Cb;g.newline=!0,u.add(g);return}var m=a.getSeriesByName(p)[0];if(!c.get(p))if(m){var b=m.getData(),w=b.getVisual("legendLineStyle")||{},S=b.getVisual("legendIcon"),C=b.getVisual("style"),y=this._createItem(m,p,v,h,r,n,w,C,S,f,i);y.on("click",Yd(mV,p,null,i,d)).on("mouseover",Yd(sE,m.name,null,i,d)).on("mouseout",Yd(lE,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 A=T.indexOfName(p),M=T.getItemVisual(A,"style"),E=T.getItemVisual(A,"legendIcon"),I=Qa(M.fill);I&&I[3]===0&&(I[3]=.2,M=je(je({},M),{fill:Xo(I,"rgba")}));var L=this._createItem(x,p,v,h,r,n,{},M,E,f,i);L.on("click",Yd(mV,null,p,i,d)).on("mouseover",Yd(sE,null,p,i,d)).on("mouseout",Yd(lE,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();oE(n,function(u){var c=u.type,f=new An({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"]);Ta(f,{normal:d,emphasis:h},{defaultText:u.title}),Pu(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"),w=i.get("icon");c=w||c||"roundRect";var S=nYe(c,i,l,u,h,g,d),C=new Cb,y=i.getModel("textStyle");if(It(n.getLegendIcon)&&(!w||w==="inherit"))C.add(n.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}));else{var x=w==="inherit"&&n.getData().getVisual("symbol")?m==="inherit"?n.getData().getVisual("symbolRotate"):m:0;C.add(rYe({itemWidth:v,itemHeight:p,icon:c,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:b}))}var T=s==="left"?v+5:-5,A=s,M=o.get("formatter"),E=r;St(M)&&M?E=M.replace("{name}",r??""):It(M)&&(E=M(r));var I=g?y.getTextColor():i.get("inactiveColor");C.add(new An({style:er(y,{text:E,x:T,y:p/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new En({shape:C.getBoundingRect(),invisible:!0}),O=i.getModel("tooltip");return O.get("show")&&Mv({el:L,componentModel:o,itemName:r,itemTooltipOption:O.option}),C.add(L),C.eachChild(function(z){z.silent=!0}),L.silent=!f,this.getContentGroup().add(C),Pu(C),C.__legendDataIndex=a,C},t.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();$f(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){$f("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 w={x:0,y:0};return w[g]=c[g]+v+d[g],w[m]=Math.max(c[m],d[m]),w[b]=Math.min(0,d[b]+h[1-p]),w}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}(gr);function nYe(e,t,n,r,a,i,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),oE(g,function(b,w){g[w]==="inherit"&&(g[w]=m[w])})}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:sv(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 rYe(e){var t=e.icon||"roundRect",n=Nr(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 mV(e,t,n,r){lE(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),sE(e,t,n,r)}function zX(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 sE(e,t,n,r){zX(n)||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:r})}function lE(e,t,n,r){zX(n)||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:r})}const HX=tYe;function aYe(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 Op(e,t,n){var r={},a=e==="toggleSelected",i;return n.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),i=o.isSelected(t.name));var s=o.getData();K(s,function(l){var u=l.get("name");if(!(u===`
  115. `||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 iYe(e){e.registerAction("legendToggleSelect","legendselectchanged",Zt(Op,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Zt(Op,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Zt(Op,"inverseSelect")),e.registerAction("legendSelect","legendselected",Zt(Op,"select")),e.registerAction("legendUnSelect","legendunselected",Zt(Op,"unSelect"))}function WX(e){e.registerComponentModel(iE),e.registerComponentView(HX),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,aYe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),iYe(e)}var oYe=function(e){Ne(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=Lv(n);e.prototype.init.call(this,n,r,a),yV(this,n,i)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),yV(this,this.option,n)},t.type="legend.scroll",t.defaultOption=cc(iE.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}(iE);function yV(e,t,n){var r=e.getOrient(),a=[1,1];a[r.index]=0,Yu(t,n,{type:"box",ignoreSize:!!a})}const sYe=oYe;var bV=Gt,H2=["width","height"],W2=["x","y"],lYe=function(e){Ne(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 bV),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new bV)},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=et(f)?f:[f,f];v("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new An({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=Ev(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:Ct(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=H2[u],f=W2[u],d=H2[1-u],h=W2[1-u];o&&$f("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],m=Ft(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 w=p[c]+v;g[u]-=w,b[f]-=w}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;$f(n.get("orient"),c,n.get("itemGap"),i?a.width:null,i?null:a.height),$f("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],w=on(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(p){var S=n.get("pageButtonPosition",!0);S==="end"?b[i]+=a[o]-v[o]:m[i]+=v[o]+w}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 y={x:0,y:0};y[o]=Math.max(a[o]-v[o]-w,0),y[s]=C[s],f.setClipPath(new En({shape:y})),f.__rectSize=y[o]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(n);return x.pageIndex!=null&&Pn(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;K(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",St(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=H2[o],l=W2[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=S(f);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,b=p,w=null;g<=d;++g)w=S(c[g]),(!w&&b.e>m.s+i||w&&!C(w,m.s))&&(b.i>m.i?m=b:m=w,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),b=w;for(var g=u-1,m=p,b=p,w=null;g>=-1;--g)w=S(c[g]),(!w||!C(b,w.s))&&m.i<b.i&&(b=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=w;return v;function S(y){if(y){var x=y.getBoundingRect(),T=x[l]+y[l];return{s:T,e:T+x[s],i:y.__legendDataIndex}}}function C(y,x){return y.e>=x&&y.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}(HX);const uYe=lYe;function cYe(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 fYe(e){dn(WX),e.registerComponentModel(sYe),e.registerComponentView(uYe),cYe(e)}function dYe(e){dn(WX),dn(fYe)}var hYe=function(e){Ne(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=cc(Km.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Km);const vYe=hYe;var $L=Ln();function pYe(e,t,n){$L(e).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(t.uid);a&&(a.getRange=n)})}function gYe(e,t){for(var n=$L(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||GX(n,o))}}}function GX(e,t){if(t){e.removeKey(t.model.uid);var n=t.controller;n&&n.dispose()}}function mYe(e,t){var n={model:t,containsPoint:Zt(bYe,t),dispatchAction:Zt(yYe,e),dataZoomInfoMap:null,controller:null},r=n.controller=new Oy(e.getZr());return K(["pan","zoom","scrollMove"],function(a){r.on(a,function(i){var o=[];n.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&n.dispatchAction(o)})}),n}function yYe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function bYe(e,t,n,r){return e.coordinateSystem.containPoint([n,r])}function _Ye(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 wYe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,n){var r=$L(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=Et());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=TX(i);K(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,mYe(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Et());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){GX(a,i);return}var c=_Ye(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),$v(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var SYe=function(e){Ne(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(),pYe(a,n,{pan:Ct(G2.pan,this),zoom:Ct(G2.zoom,this),scrollMove:Ct(G2.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){gYe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(EL),G2={zoom:function(e,t,n,r){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=U2[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(md(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:_V(function(e,t,n,r,a,i){var o=U2[r]([i.oldX,i.oldY],[i.newX,i.newY],t,a,n);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:_V(function(e,t,n,r,a,i){var o=U2[r]([0,0],[i.scrollDelta,i.scrollDelta],t,a,n);return o.signal*(e[1]-e[0])*i.scrollDelta})};function _V(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(md(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var U2={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 CYe=SYe;function UX(e){ML(e),e.registerComponentModel(vYe),e.registerComponentView(CYe),wYe(e)}var xYe=function(e){Ne(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=cc(Km.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}(Km);const TYe=xYe;var Np=En,wV=7,kYe=1,K2=30,AYe=7,$p="horizontal",SV="vertical",EYe=5,MYe=["line","bar","candlestick","scatter"],IYe={easing:"cubicOut",duration:100,delay:0},DYe=function(e){Ne(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=Ct(this._onBrush,this),this._onBrushEnd=Ct(this._onBrushEnd,this)},t.prototype.render=function(n,r,a,i){if(e.prototype.render.apply(this,arguments),$v(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(){Rm(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 Gt;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?AYe:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===$p?{right:s.width-o.x-o.width,top:s.height-K2-wV-i,width:o.width,height:K2}:{right:wV,top:o.y,width:K2,height:o.height},u=Lv(n.option);K(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Yr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===SV&&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===$p&&!o?{scaleY:l?1:-1,scaleX:1}:a===$p&&o?{scaleY:l?1:-1,scaleX:-1}:a===SV&&!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 Np({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new Np({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Ct(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,w=Math.round(o.count()/r[0]),S;o.each([l],function(A,M){if(w>0&&M%w){b+=m;return}var E=A==null||isNaN(A)||A==="",I=E?0:Vn(A,f,h,!0);E&&!S&&M?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!E&&S&&(p.push([b,0]),g.push([b,0])),p.push([b,I]),g.push([b,I]),b+=m,S=E}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var C=this.dataZoomModel;function y(A){var M=C.getModel(A?"selectedDataBackground":"dataBackground"),E=new Gt,I=new oi({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new li({shape:{points:c},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return E.add(I),E.add(L),E}for(var x=0;x<3;x++){var T=y(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();K(l,function(u){if(!a&&!(r!==!0&&cn(MYe,u.get("type"))<0)){var c=i.getComponent(ku(o),s).axis,f=LYe(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 Np({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Np({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:kYe,fill:"rgba(0,0,0,0)"}})),K([0,1],function(w){var S=l.get("handleIcon");!h_[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var C=Nr(S,-1,0,2,2,null,!0);C.attr({cursor:CV(this._orient),draggable:!0,drift:Ct(this._onDragMove,this,w),ondragend:Ct(this._onDragEnd,this),onmouseover:Ct(this._showDataInfo,this,!0),onmouseout:Ct(this._showDataInfo,this,!1),z2:5});var y=C.getBoundingRect(),x=l.get("handleSize");this._handleHeight=yt(x,this._size[1]),this._handleWidth=y.width/y.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(),Pu(C);var T=l.get("handleColor");T!=null&&(C.style.fill=T),o.add(a[w]=C);var A=l.getModel("textStyle");n.add(i[w]=new An({silent:!0,invisible:!0,style:er(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var h=d;if(f){var v=yt(l.get("moveHandleSize"),s[1]),p=r.moveHandle=new En({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=Nr(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 En({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:CV(this._orient),drift:Ct(this._onDragMove,this,"all"),ondragstart:Ct(this._showDataInfo,this,!0),ondragend:Ct(this._onDragEnd,this),onmouseover:Ct(this._showDataInfo,this,!0),onmouseout:Ct(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[Vn(n[0],[0,100],r,!0),Vn(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];md(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?Vn(s.minSpan,l,o,!0):null,s.maxSpan!=null?Vn(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Ri([Vn(i[0],o,l,!0),Vn(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=Ri(a.slice()),o=this._size;K([0,1],function(h){var v=r.handles[h],p=this._handleHeight;v.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new En,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=Ri(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var p=Ru(a.handles[v].parent,this.group),g=rS(v===0?"right":"left",p),m=this._handleWidth/2+EYe,b=Zo([d[v]+(v===0?-m:m),this._size[1]/2],p);i[v].setStyle({x:b[0],y:b[1],verticalAlign:o===$p?"middle":g,align:o===$p?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 It(i)?i(n,s):St(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,Cl(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Zo([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 an(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=Ri([Vn(a.x,o,s,!0),Vn(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&&(Cl(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 Np({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?IYe:null,start:r[0],end:r[1]})},t.prototype._findCoordRect=function(){var n,r=TX(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}(EL);function LYe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function CV(e){return e==="vertical"?"ns-resize":"ew-resize"}const PYe=DYe;function KX(e){e.registerComponentModel(TYe),e.registerComponentView(PYe),ML(e)}function RYe(e){dn(UX),dn(KX)}var OYe={get:function(e,t,n){var r=Ft((NYe[e]||{})[t]);return n&&et(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 jX=OYe;var xV=wa.mapVisual,$Ye=wa.eachVisual,BYe=et,TV=K,FYe=Ri,VYe=Vn,zYe=function(e){Ne(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&&OX(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(n){var r=this.stateList;n=Ct(n,this),this.controllerVisuals=nE(this.option.controller,r,n),this.targetVisuals=nE(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=qn(n),r},t.prototype.eachTargetSeries=function(n,r){K(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&n.call(r,i)},this)},t.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},t.prototype.formatValueText=function(n,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],et(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(St(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(It(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=FYe([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={});rn(i,a),rn(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){BYe(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]={},TV(v,function(g,m){if(wa.isValidType(m)){var b=jX.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";TV(this.stateList,function(m){var b=this.itemSize,w=f[m];w||(w=f[m]={color:s?v:[v]}),w.symbol==null&&(w.symbol=d&&Ft(d)||(s?g:[g])),w.symbolSize==null&&(w.symbolSize=h&&Ft(h)||(s?b[0]:[b[0],b[0]])),w.symbol=xV(w.symbol,function(y){return y==="none"?g:y});var S=w.symbolSize;if(S!=null){var C=-1/0;$Ye(S,function(y){y>C&&(C=y)}),w.symbolSize=xV(S,function(y){return VYe(y,[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}(kn);const V_=zYe;var kV=[20,140],HYe=function(e){Ne(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]=kV[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=kV[1])},t.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):et(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),K(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},t.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},t.prototype.getSelected=function(){var n=this.getExtent(),r=Ri((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=AV(this,"outOfRange",this.getExtent()),a=AV(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=cc(V_.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}(V_);function AV(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 WYe=HYe;var GYe=function(e){Ne(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=hd(r.get("padding")||0),i=n.getBoundingRect();n.add(new En({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=wa.prepareVisualTypes(f);return K(d,function(h){var v=f[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=f.__alphaForOpacity),wa.dependsOn(h,r)&&v&&v.applyVisual(n,u,c)}),s[r]},t.prototype.positionGroup=function(n){var r=this.visualMapModel,a=this.api;uS(n,r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},t.prototype.doRender=function(n,r,a,i){},t.type="visualMap",t}(gr);const YX=GYe;var EV=[["left","right","width"],["top","bottom","height"]];function qX(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=EV[o],l=[0,null,10],u={},c=0;c<3;c++)u[EV[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=Yr(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 b1(e,t){return K(e||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var _s=Vn,UYe=K,MV=Math.min,j2=Math.max,KYe=12,jYe=6,YYe=function(e){Ne(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 An({style:er(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=qX(r,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new Gt;u.add(c),c.add(a.outOfRange=IV()),c.add(a.inRange=IV(null,s?LV(this._orient):null,Ct(this._dragHandle,this,"all",!1),Ct(this._dragHandle,this,"all",!0))),c.setClipPath(new En({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=j2(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=Ct(this._dragHandle,this,a,!1),u=Ct(this._dragHandle,this,a,!0),c=ts(n.get("handleSize"),i[0]),f=Nr(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=LV(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(m){Cl(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(),Cf(f,!0),r.add(f);var h=this.visualMapModel.textStyleModel,v=new An({cursor:d,draggable:!0,drift:l,onmousemove:function(m){Cl(m.event)},ondragend:u,style:er(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=ts(n.get("indicatorSize"),a[0]),l=Nr(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 ga){var c=l.style;l.useStyle(je({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 An({silent:!0,invisible:!0,style:er(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?i/2:jYe)+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():DV(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=[_s(r[0],a,i,!0),_s(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]];md(r,i,o,n,0);var s=a.getExtent();this._dataInterval=[_s(i[0],o,s,!0),_s(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 kv(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 Gt(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();UYe([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=_s(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=Zo(a.handleLabelPoints[c],Ru(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=_s(n,s,u,!0),g=l[0]-v/2,m={x:f.x,y:f.y};f.y=p,f.x=g;var b=Zo(c.indicatorLabelPoint,Ru(f,this.group)),w=c.indicatorLabel;w.attr("invisible",!1);var S=this._applyTransform("left",c.mainGroup),C=this._orient,y=C==="horizontal";w.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:y?S:"middle",align:y?"center":S});var x={x:g,y:p,style:{fill:h}},T={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=m.x,f.y=m.y,f.animateTo(x,A),w.animateTo(T,A)}else f.attr(x),w.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var E=0;E<M.length;E++)this._api.enterBlur(M[E])}},t.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var a=n.visualMapModel.itemSize,i=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);i[1]=MV(j2(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=MV(j2(o[0],n),o[1]);var l=qYe(a,s,o),u=[n-l,n+l],c=_s(n,o,s,!0),f=[_s(u[0],o,s,!0),_s(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||DV(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=xPe(d,h);this._dispatchHighDown("downplay",b1(v[0],a)),this._dispatchHighDown("highlight",b1(v[1],a))}},t.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Tf(n.target,function(l){var u=Jt(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",b1(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=Ru(r,i?null:this.group);return et(n)?Zo(n,o,a):rS(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}(YX);function IV(e,t,n,r){return new oi({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(a){Cl(a.event)},ondragend:r})}function qYe(e,t,n){var r=KYe/2,a=e.get("hoverLinkDataSize");return a&&(r=_s(a,t,n,!0)/2),r}function DV(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function LV(e){return e==="vertical"?"ns-resize":"ew-resize"}const XYe=YYe;var ZYe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},JYe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(n){n.setSelected(e.selected)})},QYe=[{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(jKe(r.stateList,r.targetVisuals,Ct(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(Ct(eqe,null,e,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}}),e.getData().setVisual("visualMeta",r)}}];function eqe(e,t,n,r){for(var a=t.targetVisuals[r],i=wa.prepareVisualTypes(a),o={color:Ay(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 PV=K;function tqe(e){var t=e&&e.visualMap;et(t)||(t=t?[t]:[]),PV(t,function(n){if(n){qd(n,"splitList")&&!qd(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&et(r)&&PV(r,function(a){Ot(a)&&(qd(a,"start")&&!qd(a,"min")&&(a.min=a.start),qd(a,"end")&&!qd(a,"max")&&(a.max=a.end))})}})}function qd(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var RV=!1;function XX(e){RV||(RV=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(ZYe,JYe),K(QYe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(tqe))}function ZX(e){e.registerComponentModel(WYe),e.registerComponentView(XYe),XX(e)}var nqe=function(e){Ne(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=[],rqe[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=Ft(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=at(this._pieceList,function(l){return l=Ft(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var n=this.option,r={},a=wa.listVisualTypes(),i=this.isCategory();K(n.pieces,function(s){K(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),K(r,function(s,l){var u=!1;K(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&K(this.stateList,function(c){(n[c]||(n[c]={}))[l]=jX.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(n,r){var a=this.option,i=this._pieceList,o=(r?a:n).selected||{};if(a.selected=o,K(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;K(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(n){this.option.selected=Ft(n)},t.prototype.getValueState=function(n){var r=wa.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=wa.findPieceIndex(l,a);c===n&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},t.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},t.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var h=n(d,f);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return K(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:r,outerColors:a}},t.type="visualMap.piecewise",t.defaultOption=cc(V_.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}(V_),rqe={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]}),jk(e),K(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;K(t.categories,function(n){e.push({text:this.formatValueText(n,!0),value:n})},this),OV(t,e)},pieces:function(e){var t=this.option;K(t.pieces,function(n,r){Ot(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=wa.retrieveVisuals(n),e.push(a)},this),OV(t,e),jk(e),K(e,function(n){var r=n.close,a=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function OV(e,t){var n=e.inverse;(e.orient==="vertical"?!n:n)&&t.reverse()}const aqe=nqe;var iqe=function(e){Ne(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=na(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),K(c.viewPieceList,function(h){var v=h.piece,p=new Gt;p.onclick=Ct(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 An({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),$f(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:b1(s.findTargetDataIndices(r),s)})}},t.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return qX(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 Gt,l=this.visualMapModel.textStyleModel;s.add(new An({style:er(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=at(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(Nr(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=Ft(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,K(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(YX);const oqe=iqe;function JX(e){e.registerComponentModel(aqe),e.registerComponentView(oqe),XX(e)}function sqe(e){dn(ZX),dn(JX)}var lqe={label:{enabled:!0},decal:{show:!1}},NV=Ln(),uqe={};function cqe(e,t){var n=e.getModel("aria");if(!n.get("enabled"))return;var r=Ft(lqe);rn(r.label,e.getLocaleModel().get("aria"),!1),rn(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=Et();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),NV(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(It(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var b=uA(d.ecModel,d.name,uqe,e.getSeriesCount()),w=h.getVisual("decal");h.setVisual("decal",S(w,b))}else{var v=d.getRawData(),p={},g=NV(d).scope;h.each(function(C){var y=h.getRawIndex(C);p[y]=C});var m=v.count();v.each(function(C){var y=p[C],x=v.getName(C)||C+"",T=uA(d.ecModel,x,g,m),A=h.getItemVisual(y,"decal");h.setItemVisual(y,"decal",S(A,T))})}function S(C,y){var x=C?je(je({},y),C):y;return x.dirty=!0,x}})}}function i(){var u=e.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=Lt(c.option,u),!!c.get("enabled")){var f=t.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=e.getSeriesCount(),h=c.get(["data","maxCount"])||10,v=c.get(["series","maxCount"])||10,p=Math.min(d,v),g;if(!(d<1)){var m=s();if(m){var b=c.get(["general","withTitle"]);g=o(b,{title:m})}else g=c.get(["general","withoutTitle"]);var w=[],S=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(S,{seriesCount:d}),e.eachSeries(function(T,A){if(A<p){var M=void 0,E=T.get("name"),I=E?"withName":"withoutName";M=d>1?c.get(["series","multiple",I]):c.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var O=c.get(["data","partialData"]);M+=o(O,{displayCnt:h})}else M+=c.get(["data","allData"]);for(var z=c.get(["data","separator","middle"]),F=c.get(["data","separator","end"]),$=[],V=0;V<L.count();V++)if(V<h){var P=L.getName(V),G=L.getValues(V),j=c.get(["data",P?"withName":"withoutName"]);$.push(o(j,{name:P,value:G.join(z)}))}M+=$.join(z)+F,w.push(M)}});var C=c.getModel(["series","multiple","separator"]),y=C.get("middle"),x=C.get("end");g+=w.join(y)+x,f.setAttribute("aria-label",g)}}}function o(u,c){if(!St(u))return u;var f=u;return K(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return e.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function fqe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},K(["description","general","series","data"],function(n){t[n]!=null&&(t.label[n]=t[n])})}}function dqe(e){e.registerPreprocessor(fqe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,cqe)}var $V={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},hqe=function(){function e(t){var n=this._condVal=St(t)?new RegExp(t):J7(t)?t:null;if(n==null){var r="";$n(r)}}return e.prototype.evaluate=function(t){var n=typeof t;return St(n)?this._condVal.test(t):Dn(n)?this._condVal.test(t+""):!1},e}(),vqe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),pqe=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}(),gqe=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}(),mqe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),yqe=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 BL(e,t){if(e===!0||e===!1){var n=new vqe;return n.value=e,n}var r="";return QX(e)||$n(r),e.and?BV("and",e,t):e.or?BV("or",e,t):e.not?bqe(e,t):_qe(e,t)}function BV(e,t,n){var r=t[e],a="";et(r)||$n(a),r.length||$n(a);var i=e==="and"?new pqe:new gqe;return i.children=at(r,function(o){return BL(o,n)}),i.children.length||$n(a),i}function bqe(e,t){var n=e.not,r="";QX(n)||$n(r);var a=new mqe;return a.child=BL(n,t),a.child||$n(r),a}function _qe(e,t){for(var n="",r=t.prepareGetValue(e),a=[],i=_n(e),o=e.parser,s=o?TK(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=Tt($V,u)?$V[u]:u,f=e[u],d=s?s(f):f,h=$Ne(c,d)||c==="reg"&&new hqe(d);h||$n(n),a.push(h)}}a.length||$n(n);var v=new yqe;return v.valueGetterParam=r,v.valueParser=s,v.getValue=t.getValue,v.subCondList=a,v}function QX(e){return Ot(e)&&!Ca(e)}var wqe=function(){function e(t,n){this._cond=BL(t,n)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function Sqe(e,t){return new wqe(e,t)}var Cqe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,n,r=Sqe(e.config,{valueGetterAttrMap:Et({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Tt(s,"dimension")||$n(l);var c=t.getDimensionInfo(u);return c||$n(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}}},xqe={type:"echarts:sort",transform:function(e){var t=e.upstream,n=e.config,r="",a=qn(n);a.length||$n(r);var i=[];K(a,function(c){var f=c.dimension,d=c.order,h=c.parser,v=c.incomparable;if(f==null&&$n(r),d!=="asc"&&d!=="desc"&&$n(r),v&&v!=="min"&&v!=="max"){var p="";$n(p)}if(d!=="asc"&&d!=="desc"){var g="";$n(g)}var m=t.getDimensionInfo(f);m||$n(r);var b=h?TK(h):null;h&&!b&&$n(r),i.push({dimIdx:m.index,parser:b,comparator:new AK(d,v)})});var o=t.sourceFormat;o!==Fa&&o!==xo&&$n(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 Tqe(e){e.registerTransform(Cqe),e.registerTransform(xqe)}var kqe=function(e){Ne(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 DK(this),z3(this)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),z3(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Os},t}(kn),Aqe=function(e){Ne(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="dataset",n}return t.type="dataset",t}(gr);function Eqe(e){e.registerComponentModel(kqe),e.registerComponentView(Aqe)}var ys=Ws.CMD;function gh(e,t){return Math.abs(e-t)<1e-5}function uE(e){var t=e.data,n=e.len(),r=[],a,i=0,o=0,s=0,l=0;function u(L,O){a&&a.length>2&&r.push(a),a=[L,O]}function c(L,O,z,F){gh(L,z)&&gh(O,F)||a.push(L,O,z,F,z,F)}function f(L,O,z,F,$,V){var P=Math.abs(O-L),G=Math.tan(P/4)*4/3,j=O<L?-1:1,J=Math.cos(L),ne=Math.sin(L),ve=Math.cos(O),le=Math.sin(O),ce=J*$+z,ue=ne*V+F,Q=ve*$+z,_e=le*V+F,Pe=$*G*j,pe=V*G*j;a.push(ce-Pe*ne,ue+pe*J,Q+Pe*le,_e-pe*ve,Q,_e)}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===ys.L||m===ys.C||m===ys.Q)&&(a=[s,l])),m){case ys.M:i=s=t[g++],o=l=t[g++],u(s,l);break;case ys.L:d=t[g++],h=t[g++],c(i,o,d,h),i=d,o=h;break;case ys.C:a.push(t[g++],t[g++],t[g++],t[g++],i=t[g++],o=t[g++]);break;case ys.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 ys.A:var w=t[g++],S=t[g++],C=t[g++],y=t[g++],x=t[g++],T=t[g++]+x;g+=1;var A=!t[g++];d=Math.cos(x)*C+w,h=Math.sin(x)*y+S,b?(s=d,l=h,u(s,l)):c(i,o,d,h),i=Math.cos(T)*C+w,o=Math.sin(T)*y+S;for(var M=(A?-1:1)*Math.PI/2,E=x;A?E>T:E<T;E+=M){var I=A?Math.max(E+M,T):Math.min(E+M,T);f(E,I,w,S,C,y)}break;case ys.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 ys.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&r.push(a),r}function cE(e,t,n,r,a,i,o,s,l,u){if(gh(e,n)&&gh(t,r)&&gh(a,o)&&gh(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,w=p*p+g*g,S=m*m+b*b;if(w<f&&S<f){l.push(o,s);return}var C=d*p+h*g,y=-d*m-h*b,x=w-C*C,T=S-y*y;if(x<f&&C>=0&&T<f&&y>=0){l.push(o,s);return}var A=[],M=[];Ku(e,n,a,o,.5,A),Ku(t,r,i,s,.5,M),cE(A[0],M[0],A[1],M[1],A[2],M[2],A[3],M[3],l,u),cE(A[4],M[4],A[5],M[5],A[6],M[6],A[7],M[7],l,u)}function Mqe(e,t){var n=uE(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++];cE(s,l,c,f,d,h,v,p,o,t),s=v,l=p}r.push(o)}return r}function eZ(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 FV(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=eZ([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 Iqe(e,t,n){for(var r=e.width,a=e.height,i=r>a,o=eZ([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 VV(e,t,n,r){return e*r-n*t}function Dqe(e,t,n,r,a,i,o,s){var l=n-e,u=r-t,c=o-a,f=s-i,d=VV(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-a,v=t-i,p=VV(h,v,c,f)/d;return p<0||p>1?null:new an(p*l+e,p*u+t)}function Lqe(e,t,n){var r=new an;an.sub(r,n,t),r.normalize();var a=new an;an.sub(a,e,t);var i=a.dot(r);return i}function Xd(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function Pqe(e,t,n){for(var r=e.length,a=[],i=0;i<r;i++){var o=e[i],s=e[(i+1)%r],l=Dqe(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);l&&a.push({projPt:Lqe(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++)Xd(v,e[i].slice());Xd(v,h),Xd(v,d);for(var i=c.idx+1;i<=u.idx+r;i++)Xd(p,e[i%r].slice());return Xd(p,d),Xd(p,h),[{points:v},{points:p}]}function zV(e){var t=e.points,n=[],r=[];Xw(t,n,r);var a=new sn(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 an,c=new an;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),Pqe(t,u,c)}function z_(e,t,n,r){if(n===1)r.push(t);else{var a=Math.floor(n/2),i=e(t);z_(e,i[0],a,r),z_(e,i[1],n-a,r)}return r}function Rqe(e,t){for(var n=[],r=0;r<t;r++)n.push(KI(e));return n}function Oqe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function Nqe(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function $qe(e,t){var n=[],r=e.shape,a;switch(e.type){case"rect":Iqe(r,t,n),a=En;break;case"sector":FV(r,t,n),a=ii;break;case"circle":FV({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),a=ii;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=at(Mqe(e.getUpdatedPathProxy(),o),function(m){return Nqe(m)}),l=s.length;if(l===0)z_(zV,{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=at(s,function(m){var b=[],w=[];Xw(m,b,w);var S=(w[1]-b[1])*(w[0]-b[0]);return c+=S,{poly:m,area:S}});f.sort(function(m,b){return b.area-m.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var v=u===l-1?d:Math.ceil(h.area/c*t);v<0||(z_(zV,{points:h.poly},v,n),d-=v)}}a=oi;break}if(!a)return Rqe(e,t);for(var p=[],u=0;u<n.length;u++){var g=new a;g.setShape(n[u]),Oqe(e,g),p.push(g)}return p}function Bqe(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++],w=o[h++],S=o[h++],C=o[h++];if(d<=0){f.push(g,m,b,w,S,C);continue}for(var y=Math.min(d,c-1)+1,x=1;x<=y;x++){var T=x/y;Ku(v,g,b,S,T,a),Ku(p,m,w,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],w=i[6]}d-=y-1}return o===e?[f,t]:[e,f]}function HV(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 Fqe(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=Bqe(l,u),c=n[0],f=n[1],r=c,a=f):(f=HV(a||l,l),c=l):(c=HV(r||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function WV(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 Vqe(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,w=m-p;f+=b*b+w*w}f<i&&(i=f,o=u)}return o}function zqe(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 Hqe(e,t,n,r){for(var a=[],i,o=0;o<e.length;o++){var s=e[o],l=t[o],u=WV(s),c=WV(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],h=0,v=1/0,p=[],g=s.length;i&&(s=zqe(s));for(var m=Vqe(s,l,u,c)*6,b=g-2,w=0;w<b;w+=2){var S=(m+w)%b+2;f[w+2]=s[S]-u[0],f[w+3]=s[S+1]-u[1]}if(f[0]=s[m]-u[0],f[1]=s[m+1]-u[1],n>0)for(var C=r/n,y=-r/2;y<=r/2;y+=C){for(var x=Math.sin(y),T=Math.cos(y),A=0,w=0;w<s.length;w+=2){var M=f[w],E=f[w+1],I=l[w]-c[0],L=l[w+1]-c[1],O=I*T-L*x,z=I*x+L*T;p[w]=O,p[w+1]=z;var F=O-M,$=z-E;A+=F*F+$*$}if(A<v){v=A,h=y;for(var V=0;V<p.length;V++)d[V]=p[V]}}else for(var P=0;P<g;P+=2)d[P]=l[P]-c[0],d[P+1]=l[P+1]-c[1];a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return a}function H_(e){return e.__isCombineMorphing}var tZ="__mOriginal_";function W_(e,t,n){var r=tZ+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 Pg(e,t){var n=tZ+t;e[n]&&(e[t]=e[n],e[n]=null)}function GV(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 nZ(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),a=Fqe(uE(n),uE(r)),i=a[0],o=a[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&GV(i,s),l&&GV(o,l),W_(t,"updateTransform",{replace:u}),t.transform=null;var c=Hqe(i,o,10,Math.PI),f=[];W_(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,w=m.to,S=m.rotation*h,C=m.fromCp,y=m.toCp,x=Math.sin(S),T=Math.cos(S);bg(p,C,y,h);for(var A=0;A<b.length;A+=2){var M=b[A],E=b[A+1],I=w[A],L=w[A+1],O=M*v+I*h,z=E*v+L*h;f[A]=O*T-z*x+p[0],f[A+1]=O*x+z*T+p[1]}var F=f[0],$=f[1];d.moveTo(F,$);for(var A=2;A<b.length;){var I=f[A++],L=f[A++],V=f[A++],P=f[A++],G=f[A++],j=f[A++];F===I&&$===L&&V===G&&P===j?d.lineTo(G,j):d.bezierCurveTo(I,L,V,P,G,j),F=G,$=j}}}})}function FL(e,t,n){if(!e||!t)return t;var r=n.done,a=n.during;nZ(e,t),t.__morphT=0;function i(){Pg(t,"buildPath"),Pg(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Lt({during:function(o){t.dirtyShape(),a&&a(o)},done:function(){i(),r&&r()}},n)),t}function Wqe(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 G_(e){var t=1/0,n=1/0,r=-1/0,a=-1/0,i=at(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=at(i,function(s,l){return{cp:s,z:Wqe(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 rZ(e){return $qe(e.path,e.count)}function fE(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Gqe(e,t,n){var r=[];function a(C){for(var y=0;y<C.length;y++){var x=C[y];H_(x)?a(x.childrenRef()):x instanceof pn&&r.push(x)}}a(e);var i=r.length;if(!i)return fE();var o=n.dividePath||rZ,s=o({path:t,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),fE();r=G_(r),s=G_(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new cl,d=0;d<i;d++){var h=r[d],v=s[d];v.parent=t,v.copyTransform(f),c||nZ(h,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(C){for(var y=0;y<s.length;y++)s[y].addSelfToZr(C)}W_(t,"addSelfToZr",{after:function(C){p(C)}}),W_(t,"removeSelfFromZr",{after:function(C){for(var y=0;y<s.length;y++)s[y].removeSelfFromZr(C)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Pg(t,"addSelfToZr"),Pg(t,"removeSelfFromZr")}var m=s.length;if(c)for(var b=m,w=function(){b--,b===0&&(g(),l&&l())},d=0;d<m;d++){var S=c?Lt({delay:(n.delay||0)+c(d,m,r[d],s[d]),done:w},n):n;FL(r[d],s[d],S)}else t.__morphT=0,t.animateTo({__morphT:1},Lt({during:function(C){for(var y=0;y<m;y++){var x=s[y];x.__morphT=t.__morphT,x.dirtyShape()}u&&u(C)},done:function(){g();for(var C=0;C<e.length;C++)Pg(e[C],"updateTransform");l&&l()}},n));return t.__zr&&p(t.__zr),{fromIndividuals:r,toIndividuals:s,count:m}}function Uqe(e,t,n){var r=t.length,a=[],i=n.dividePath||rZ;function o(h){for(var v=0;v<h.length;v++){var p=h[v];H_(p)?o(p.childrenRef()):p instanceof pn&&a.push(p)}}if(H_(e)){o(e.childrenRef());var s=a.length;if(s<r)for(var l=0,u=s;u<r;u++)a.push(KI(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"),fE()}a=G_(a),t=G_(t);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?Lt({delay:(n.delay||0)+f(u,r,a[u],t[u])},n):n;FL(a[u],t[u],d)}return{fromIndividuals:a,toIndividuals:t,count:t.length}}function UV(e){return et(e[0])}function KV(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 Kqe={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=KI(e.path);a.setStyle("opacity",n),t.push(a)}return t},split:null};function Y2(e,t,n,r,a,i){if(!e.length||!t.length)return;var o=Av("update",r,a);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;UV(e)&&(u=e,c=t),UV(t)&&(u=t,c=e);function f(m,b,w,S,C){var y=m.many,x=m.one;if(y.length===1&&!C){var T=b?y[0]:x,A=b?x:y[0];if(H_(T))f({many:[T],one:A},!0,w,S,!0);else{var M=s?Lt({delay:s(w,S)},l):l;FL(T,A,M),i(T,A,T,A,M)}}else for(var E=Lt({dividePath:Kqe[n],individualDelay:s&&function($,V,P,G){return s($+w,S)}},l),I=b?Gqe(y,x,E):Uqe(x,y,E),L=I.fromIndividuals,O=I.toIndividuals,z=L.length,F=0;F<z;F++){var M=s?Lt({delay:s(F,z)},l):l;i(L[F],O[F],b?y[F]:m.one,b?m.one:y[F],M)}}for(var d=u?u===e:e.length>t.length,h=u?KV(c,u):KV(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 nf(e){if(!e)return[];if(et(e)){for(var t=[],n=0;n<e.length;n++)t.push(nf(e[n]));return t}var r=[];return e.traverse(function(a){a instanceof pn&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var aZ=1e4,jqe=Ln();function Yqe(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 jV(e){var t=[];return K(e,function(n){var r=n.data;if(!(r.count()>aZ))for(var a=r.getIndices(),i=Yqe(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 q2(e,t,n){e.traverse(function(r){r instanceof pn&&cr(r,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function X2(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Zd(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function qqe(e,t,n){var r=Av("update",n,t);r&&e.traverse(function(a){if(a instanceof _o){var i=mOe(a);i&&a.animateFrom({style:i},r)}})}function Xqe(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 iZ(e,t,n){var r=jV(e),a=jV(t);function i(m,b,w,S,C){(w||m)&&b.animateFrom({style:w&&w!==m?je(je({},w.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(w){var S=w.data,C=w.dataIndex;if(b)return S.getId(C);var y=w.dataGroupId,x=m?s||l:l||s,T=x&&S.getDimensionInfo(x),A=T&&T.ordinalMeta;if(T){var M=S.get(T.name,C);return A&&A.categories[M]||M+""}var E=S.getRawDataItem(C);return E&&E.groupId?E.groupId+"":y||S.getId(C)}}var f=Xqe(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 w=r[b],S=a[m],C=S.data.hostModel,y=w.data.getItemGraphicEl(w.dataIndex),x=S.data.getItemGraphicEl(S.dataIndex);if(y===x){x&&qqe(x,S.dataIndex,C);return}y&&d[y.id]||x&&(Zd(x),y?(Zd(y),X2(y),u=!0,Y2(nf(y),nf(x),S.divide,C,m,i)):q2(x,C,m))}new kl(r,a,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(m,b){var w=a[m],S=w.data,C=S.hostModel,y=S.getItemGraphicEl(w.dataIndex),x=zn(at(b,function(T){return r[T].data.getItemGraphicEl(r[T].dataIndex)}),function(T){return T&&T!==y&&!d[T.id]});y&&(Zd(y),x.length?(K(x,function(T){Zd(T),X2(T)}),u=!0,Y2(nf(x),nf(y),w.divide,C,m,i)):q2(y,C,w.dataIndex))}).updateOneToMany(function(m,b){var w=r[b],S=w.data.getItemGraphicEl(w.dataIndex);if(!(S&&d[S.id])){var C=zn(at(m,function(x){return a[x].data.getItemGraphicEl(a[x].dataIndex)}),function(x){return x&&x!==S}),y=a[m[0]].data.hostModel;C.length&&(K(C,function(x){return Zd(x)}),S?(Zd(S),X2(S),u=!0,Y2(nf(S),nf(C),w.divide,y,m[0],i)):K(C,function(x){return q2(x,y,m[0])}))}}).updateManyToMany(function(m,b){new kl(b,m,function(w){return r[w].data.getId(r[w].dataIndex)},function(w){return a[w].data.getId(a[w].dataIndex)}).update(function(w,S){g(m[w],b[S])}).execute()}).execute(),u&&K(t,function(m){var b=m.data,w=b.hostModel,S=w&&n.getViewOfSeriesModel(w),C=Av("update",w,0);S&&w.isAnimationEnabled()&&C&&C.duration>0&&S.group.traverse(function(y){y instanceof pn&&!y.animators.length&&y.animateFrom({style:{opacity:0}},C)})})}function YV(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function qV(e){return et(e)?e.sort().join(","):e}function pu(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function Zqe(e,t){var n=Et(),r=Et(),a=Et();return K(e.oldSeries,function(i,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=YV(i),c=qV(u);r.set(c,{dataGroupId:s,data:l}),et(u)&&K(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),K(t.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=YV(i),u=qV(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:pu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:pu(s),data:s}]});else if(et(l)){var f=[];K(l,function(v){var p=r.get(v);p.data&&f.push({dataGroupId:p.dataGroupId,divide:pu(p.data),data:p.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:pu(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:pu(d.data)}],newSeries:[]},n.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:pu(s)})}}}}),n}function XV(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 Jqe(e,t,n,r){var a=[],i=[];K(qn(e.from),function(o){var s=XV(t.oldSeries,o);s>=0&&a.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:pu(t.oldData[s]),dim:o.dimension})}),K(qn(e.to),function(o){var s=XV(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:pu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&iZ(a,i,r)}function Qqe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,n,r){K(qn(r.seriesTransition),function(a){K(qn(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][h1]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,n,r){var a=jqe(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)K(qn(i),function(h){Jqe(h,a,r,n)});else{var o=Zqe(a,r);K(o.keys(),function(h){var v=o.get(h);iZ(v.oldSeries,v.newSeries,n)})}K(r.updatedSeries,function(h){h[h1]&&(h[h1]=!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()<aZ&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}dn([gBe]);dn([uBe]);dn([VBe,aFe,mFe,aVe,wVe,p6e,K6e,L8e,oze,pze,kze,IHe,r9e,g9e,N9e,W9e,sWe,mWe,IWe,BWe,ZWe,N7e]);dn(iGe);dn(FGe);dn(eq);dn(nUe);dn(Vq);dn(uUe);dn(yUe);dn(bKe);dn(HKe);dn($y);dn(lje);dn(fje);dn(kje);dn(Nje);dn(Gje);dn(Jje);dn(dYe);dn(RYe);dn(UX);dn(KX);dn(sqe);dn(ZX);dn(JX);dn(dqe);dn(Tqe);dn(Eqe);dn(Qqe);dn(M5e);const eXe=Object.freeze(Object.defineProperty({__proto__:null,Axis:To,ChartView:Xn,ComponentModel:kn,ComponentView:gr,List:Oa,Model:Yn,PRIORITY:oj,SeriesModel:or,color:xLe,connect:D3e,dataTool:B3e,dependencies:h3e,disConnect:L3e,disconnect:vj,dispose:P3e,env:Mn,extendChartView:p5e,extendComponentModel:d5e,extendComponentView:h5e,extendSeriesModel:v5e,format:e5e,getCoordinateSystemDimensions:O3e,getInstanceByDom:xD,getInstanceById:R3e,getMap:$3e,graphic:Q4e,helper:U4e,init:I3e,innerDrawElementOnCanvas:_D,matrix:XDe,number:Z4e,parseGeoJSON:xA,parseGeoJson:xA,registerAction:ls,registerCoordinateSystem:mj,registerLayout:yj,registerLoading:MD,registerLocale:eD,registerMap:bj,registerPostInit:pj,registerPostUpdate:gj,registerPreprocessor:kD,registerProcessor:AD,registerTheme:TD,registerTransform:_j,registerUpdateLifecycle:pS,registerVisual:fc,setCanvasCreator:N3e,setPlatformAPI:j7,throttle:hS,time:J4e,use:dn,util:t5e,vector:RDe,version:d3e,zrUtil:ADe,zrender:uPe},Symbol.toStringTag,{value:"Module"}));/*!
  116. * shared v12.0.0-alpha.2
  117. * (c) 2016-present kazuya kawaguchi and contributors
  118. * Released under the MIT License.
  119. */const ZV=typeof window<"u",dc=(e,t=!1)=>t?Symbol.for(e):Symbol(e),tXe=(e,t,n)=>nXe({l:e,k:t,s:n}),nXe=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Pa=e=>typeof e=="number"&&isFinite(e),rXe=e=>VL(e)==="[object Date]",U_=e=>VL(e)==="[object RegExp]",ES=e=>Un(e)&&Object.keys(e).length===0,Na=Object.assign,aXe=Object.create,pr=(e=null)=>aXe(e);let JV;const Rh=()=>JV||(JV=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:pr());function QV(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const iXe=Object.prototype.hasOwnProperty;function nd(e,t){return iXe.call(e,t)}const ia=Array.isArray,Rr=e=>typeof e=="function",Yt=e=>typeof e=="string",Or=e=>typeof e=="boolean",tr=e=>e!==null&&typeof e=="object",oXe=e=>tr(e)&&Rr(e.then)&&Rr(e.catch),oZ=Object.prototype.toString,VL=e=>oZ.call(e),Un=e=>VL(e)==="[object Object]",sXe=e=>e==null?"":ia(e)||Un(e)&&e.toString===oZ?JSON.stringify(e,null,2):String(e);function lXe(e,t=""){return e.reduce((n,r,a)=>a===0?n+r:n+t+r,"")}function uXe(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const xb=e=>!tr(e)||ia(e);function _1(e,t){if(xb(e)||xb(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:r,des:a}=n.pop();Object.keys(r).forEach(i=>{i!=="__proto__"&&(tr(r[i])&&!tr(a[i])&&(a[i]=Array.isArray(r[i])?[]:pr()),xb(a[i])||xb(r[i])?a[i]=r[i]:n.push({src:r[i],des:a[i]}))})}}/*!
  120. * message-compiler v12.0.0-alpha.2
  121. * (c) 2016-present kazuya kawaguchi and contributors
  122. * Released under the MIT License.
  123. */const cXe=17;function sZ(e,t,n={}){const{domain:r,messages:a,args:i}=n,o=e,s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}/*!
  124. * core-base v12.0.0-alpha.2
  125. * (c) 2016-present kazuya kawaguchi and contributors
  126. * Released under the MIT License.
  127. */function fXe(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rh().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rh().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const dXe=["t","type"];function hXe(e){return vXe(e,dXe)}function vXe(e,t,n){for(let r=0;r<t.length;r++){const a=t[r];if(nd(e,a)&&e[a]!=null)return e[a]}return n}function hv(e){return tr(e)&&hXe(e)===0&&(nd(e,"b")||nd(e,"body"))}let qm=null;function pXe(e){qm=e}function gXe(e,t,n){qm&&qm.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const mXe=yXe("function:translate");function yXe(e){return t=>qm&&qm.emit(e,t)}const dl={INVALID_ARGUMENT:cXe,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_NON_STRING_MESSAGE:20,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},bXe=24;function hl(e){return sZ(e,null,void 0)}function zL(e,t){return t.locale!=null?e6(t.locale):e6(e.locale)}let Z2;function e6(e){if(Yt(e))return e;if(Rr(e)){if(e.resolvedOnce&&Z2!=null)return Z2;if(e.constructor.name==="Function"){const t=e();if(oXe(t))throw hl(dl.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Z2=t}else throw hl(dl.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw hl(dl.NOT_SUPPORT_LOCALE_TYPE)}function _Xe(e,t,n){return[...new Set([n,...ia(t)?t:tr(t)?Object.keys(t):Yt(t)?[t]:[n]])]}function wXe(e,t,n){const r=Yt(n)?n:K_,a=e;a.__localeChainCache||(a.__localeChainCache=new Map);let i=a.__localeChainCache.get(r);if(!i){i=[];let o=[n];for(;ia(o);)o=t6(i,o,t);const s=ia(t)||!Un(t)?t:t.default?t.default:null;o=Yt(s)?[s]:s,ia(o)&&t6(i,o,!1),a.__localeChainCache.set(r,i)}return i}function t6(e,t,n){let r=!0;for(let a=0;a<t.length&&Or(r);a++){const i=t[a];Yt(i)&&(r=SXe(e,t[a],n))}return r}function SXe(e,t,n){let r;const a=t.split("-");do{const i=a.join("-");r=CXe(e,i,n),a.splice(-1,1)}while(a.length&&r===!0);return r}function CXe(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const a=t.replace(/!/g,"");e.push(a),(ia(n)||Un(n))&&n[a]&&(r=n[a])}return r}function xXe(e,t){return tr(e)?e[t]:null}const TXe="12.0.0-alpha.2",MS=-1,K_="en-US",n6="",r6=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function kXe(){return{upper:(e,t)=>t==="text"&&Yt(e)?e.toUpperCase():t==="vnode"&&tr(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Yt(e)?e.toLowerCase():t==="vnode"&&tr(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Yt(e)?r6(e):t==="vnode"&&tr(e)&&"__v_isVNode"in e?r6(e.children):e}}let AXe,lZ=null;const EXe=e=>{lZ=e},MXe=()=>lZ;let uZ=null;const a6=e=>{uZ=e},IXe=()=>uZ;let i6=0;function DXe(e={}){const t=Rr(e.onWarn)?e.onWarn:uXe,n=Yt(e.version)?e.version:TXe,r=Yt(e.locale)||Rr(e.locale)?e.locale:K_,a=Rr(r)?K_:r,i=ia(e.fallbackLocale)||Un(e.fallbackLocale)||Yt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a,o=Un(e.messages)?e.messages:J2(a),s=Un(e.datetimeFormats)?e.datetimeFormats:J2(a),l=Un(e.numberFormats)?e.numberFormats:J2(a),u=Na(pr(),e.modifiers,kXe()),c=e.pluralRules||pr(),f=Rr(e.missing)?e.missing:null,d=Or(e.missingWarn)||U_(e.missingWarn)?e.missingWarn:!0,h=Or(e.fallbackWarn)||U_(e.fallbackWarn)?e.fallbackWarn:!0,v=!!e.fallbackFormat,p=!!e.unresolving,g=Rr(e.postTranslation)?e.postTranslation:null,m=Un(e.processor)?e.processor:null,b=Or(e.warnHtmlMessage)?e.warnHtmlMessage:!0,w=!!e.escapeParameter,S=Rr(e.messageCompiler)?e.messageCompiler:AXe,C=Rr(e.messageResolver)?e.messageResolver:xXe,y=Rr(e.localeFallbacker)?e.localeFallbacker:_Xe,x=tr(e.fallbackContext)?e.fallbackContext:void 0,T=e,A=tr(T.__datetimeFormatters)?T.__datetimeFormatters:new Map,M=tr(T.__numberFormatters)?T.__numberFormatters:new Map,E=tr(T.__meta)?T.__meta:{};i6++;const I={version:n,cid:i6,locale:r,fallbackLocale:i,messages:o,modifiers:u,pluralRules:c,missing:f,missingWarn:d,fallbackWarn:h,fallbackFormat:v,unresolving:p,postTranslation:g,processor:m,warnHtmlMessage:b,escapeParameter:w,messageCompiler:S,messageResolver:C,localeFallbacker:y,fallbackContext:x,onWarn:t,__meta:E};return I.datetimeFormats=s,I.numberFormats=l,I.__datetimeFormatters=A,I.__numberFormatters=M,__INTLIFY_PROD_DEVTOOLS__&&gXe(I,n,E),I}const J2=e=>({[e]:pr()});function HL(e,t,n,r,a){const{missing:i,onWarn:o}=e;if(i!==null){const s=i(e,n,t,a);return Yt(s)?s:t}else return t}function Bp(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function LXe(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function PXe(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let r=n+1;r<t.length;r++)if(LXe(e,t[r]))return!0;return!1}function o6(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=e,{__datetimeFormatters:s}=e,[l,u,c,f]=dE(...t),d=Or(c.missingWarn)?c.missingWarn:e.missingWarn;Or(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,v=zL(e,c),p=o(e,a,v);if(!Yt(l)||l==="")return new Intl.DateTimeFormat(v,f).format(u);let g={},m,b=null;const w="datetime format";for(let y=0;y<p.length&&(m=p[y],g=n[m]||{},b=g[l],!Un(b));y++)HL(e,l,m,d,w);if(!Un(b)||!Yt(m))return r?MS:l;let S=`${m}__${l}`;ES(f)||(S=`${S}__${JSON.stringify(f)}`);let C=s.get(S);return C||(C=new Intl.DateTimeFormat(m,Na({},b,f)),s.set(S,C)),h?C.formatToParts(u):C.format(u)}const cZ=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function dE(...e){const[t,n,r,a]=e,i=pr();let o=pr(),s;if(Yt(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw hl(dl.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();s=new Date(u);try{s.toISOString()}catch{throw hl(dl.INVALID_ISO_DATE_ARGUMENT)}}else if(rXe(t)){if(isNaN(t.getTime()))throw hl(dl.INVALID_DATE_ARGUMENT);s=t}else if(Pa(t))s=t;else throw hl(dl.INVALID_ARGUMENT);return Yt(n)?i.key=n:Un(n)&&Object.keys(n).forEach(l=>{cZ.includes(l)?o[l]=n[l]:i[l]=n[l]}),Yt(r)?i.locale=r:Un(r)&&(o=r),Un(a)&&(o=a),[i.key||"",s,i,o]}function s6(e,t,n){const r=e;for(const a in n){const i=`${t}__${a}`;r.__datetimeFormatters.has(i)&&r.__datetimeFormatters.delete(i)}}function l6(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:a,onWarn:i,localeFallbacker:o}=e,{__numberFormatters:s}=e,[l,u,c,f]=hE(...t),d=Or(c.missingWarn)?c.missingWarn:e.missingWarn;Or(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const h=!!c.part,v=zL(e,c),p=o(e,a,v);if(!Yt(l)||l==="")return new Intl.NumberFormat(v,f).format(u);let g={},m,b=null;const w="number format";for(let y=0;y<p.length&&(m=p[y],g=n[m]||{},b=g[l],!Un(b));y++)HL(e,l,m,d,w);if(!Un(b)||!Yt(m))return r?MS:l;let S=`${m}__${l}`;ES(f)||(S=`${S}__${JSON.stringify(f)}`);let C=s.get(S);return C||(C=new Intl.NumberFormat(m,Na({},b,f)),s.set(S,C)),h?C.formatToParts(u):C.format(u)}const fZ=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function hE(...e){const[t,n,r,a]=e,i=pr();let o=pr();if(!Pa(t))throw hl(dl.INVALID_ARGUMENT);const s=t;return Yt(n)?i.key=n:Un(n)&&Object.keys(n).forEach(l=>{fZ.includes(l)?o[l]=n[l]:i[l]=n[l]}),Yt(r)?i.locale=r:Un(r)&&(o=r),Un(a)&&(o=a),[i.key||"",s,i,o]}function u6(e,t,n){const r=e;for(const a in n){const i=`${t}__${a}`;r.__numberFormatters.has(i)&&r.__numberFormatters.delete(i)}}const RXe=e=>e,OXe=e=>"",NXe="text",$Xe=e=>e.length===0?"":lXe(e),BXe=sXe;function c6(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function FXe(e){const t=Pa(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Pa(e.named.count)||Pa(e.named.n))?Pa(e.named.count)?e.named.count:Pa(e.named.n)?e.named.n:t:t}function VXe(e,t){t.count||(t.count=e),t.n||(t.n=e)}function zXe(e={}){const t=e.locale,n=FXe(e),r=tr(e.pluralRules)&&Yt(t)&&Rr(e.pluralRules[t])?e.pluralRules[t]:c6,a=tr(e.pluralRules)&&Yt(t)&&Rr(e.pluralRules[t])?c6:void 0,i=m=>m[r(n,m.length,a)],o=e.list||[],s=m=>o[m],l=e.named||pr();Pa(e.pluralIndex)&&VXe(n,l);const u=m=>l[m];function c(m,b){const w=Rr(e.messages)?e.messages(m,!!b):tr(e.messages)?e.messages[m]:!1;return w||(e.parent?e.parent.message(m):OXe)}const f=m=>e.modifiers?e.modifiers[m]:RXe,d=Un(e.processor)&&Rr(e.processor.normalize)?e.processor.normalize:$Xe,h=Un(e.processor)&&Rr(e.processor.interpolate)?e.processor.interpolate:BXe,v=Un(e.processor)&&Yt(e.processor.type)?e.processor.type:NXe,g={list:s,named:u,plural:i,linked:(m,...b)=>{const[w,S]=b;let C="text",y="";b.length===1?tr(w)?(y=w.modifier||y,C=w.type||C):Yt(w)&&(y=w||y):b.length===2&&(Yt(w)&&(y=w||y),Yt(S)&&(C=S||C));const x=c(m,!0)(g),T=C==="vnode"&&ia(x)&&y?x[0]:x;return y?f(y)(T,C):T},message:c,type:v,interpolate:h,normalize:d,values:Na(pr(),o,l)};return g}const f6=()=>"",no=e=>Rr(e);function d6(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:a,messageCompiler:i,fallbackLocale:o,messages:s}=e,[l,u]=vE(...t),c=Or(u.missingWarn)?u.missingWarn:e.missingWarn,f=Or(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=Or(u.escapeParameter)?u.escapeParameter:e.escapeParameter,h=!!u.resolvedMessage,v=Yt(u.default)||Or(u.default)?Or(u.default)?i?l:()=>l:u.default:n?i?l:()=>l:null,p=n||v!=null&&(Yt(v)||Rr(v)),g=zL(e,u);d&&HXe(u);let[m,b,w]=h?[l,g,s[g]||pr()]:dZ(e,l,g,o,f,c),S=m,C=l;if(!h&&!(Yt(S)||hv(S)||no(S))&&p&&(S=v,C=S),!h&&(!(Yt(S)||hv(S)||no(S))||!Yt(b)))return a?MS:l;let y=!1;const x=()=>{y=!0},T=no(S)?S:hZ(e,l,b,S,C,x);if(y)return S;const A=UXe(e,b,w,u),M=zXe(A),E=WXe(e,T,M),I=r?r(E,l):E;if(__INTLIFY_PROD_DEVTOOLS__){const L={timestamp:Date.now(),key:Yt(l)?l:no(S)?S.key:"",locale:b||(no(S)?S.locale:""),format:Yt(S)?S:no(S)?S.source:"",message:I};L.meta=Na({},e.__meta,MXe()||{}),mXe(L)}return I}function HXe(e){ia(e.list)?e.list=e.list.map(t=>Yt(t)?QV(t):t):tr(e.named)&&Object.keys(e.named).forEach(t=>{Yt(e.named[t])&&(e.named[t]=QV(e.named[t]))})}function dZ(e,t,n,r,a,i){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let f=pr(),d,h=null;const v="translate";for(let p=0;p<c.length&&(d=c[p],f=o[d]||pr(),(h=l(f,t))===null&&(h=f[t]),!(Yt(h)||hv(h)||no(h)));p++)if(!PXe(d,c)){const g=HL(e,t,d,i,v);g!==t&&(h=g)}return[h,d,f]}function hZ(e,t,n,r,a,i){const{messageCompiler:o,warnHtmlMessage:s}=e;if(no(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}if(o==null){const u=()=>r;return u.locale=n,u.key=t,u}const l=o(r,GXe(e,n,a,r,s,i));return l.locale=n,l.key=t,l.source=r,l}function WXe(e,t,n){return t(n)}function vE(...e){const[t,n,r]=e,a=pr();if(!Yt(t)&&!Pa(t)&&!no(t)&&!hv(t))throw hl(dl.INVALID_ARGUMENT);const i=Pa(t)?String(t):(no(t),t);return Pa(n)?a.plural=n:Yt(n)?a.default=n:Un(n)&&!ES(n)?a.named=n:ia(n)&&(a.list=n),Pa(r)?a.plural=r:Yt(r)?a.default=r:Un(r)&&Na(a,r),[i,a]}function GXe(e,t,n,r,a,i){return{locale:t,key:n,warnHtmlMessage:a,onError:o=>{throw i&&i(o),o},onCacheKey:o=>tXe(t,n,o)}}function UXe(e,t,n,r){const{modifiers:a,pluralRules:i,messageResolver:o,fallbackLocale:s,fallbackWarn:l,missingWarn:u,fallbackContext:c}=e,d={locale:t,modifiers:a,pluralRules:i,messages:(h,v)=>{let p=o(n,h);if(p==null&&(c||v)){const[,,g]=dZ(c||e,h,t,s,l,u);p=o(g,h)}if(Yt(p)||hv(p)){let g=!1;const b=hZ(e,h,t,p,h,()=>{g=!0});return g?f6:b}else return no(p)?p:f6}};return e.processor&&(d.processor=e.processor),r.list&&(d.list=r.list),r.named&&(d.named=r.named),Pa(r.plural)&&(d.pluralIndex=r.plural),d}fXe();/*!
  128. * vue-i18n-core v12.0.0-alpha.2
  129. * (c) 2016-present kazuya kawaguchi and contributors
  130. * Released under the MIT License.
  131. */const KXe="12.0.0-alpha.2";function jXe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(Rh().__VUE_I18N_FULL_INSTALL__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(Rh().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Rh().__INTLIFY_PROD_DEVTOOLS__=!1)}const Il={UNEXPECTED_RETURN_TYPE:bXe,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:30,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Qu(e,...t){return sZ(e,null,void 0)}const pE=dc("__translateVNode"),gE=dc("__datetimeParts"),mE=dc("__numberParts"),YXe=dc("__setPluralRules"),qXe=dc("__injectWithOption"),yE=dc("__dispose");function Xm(e){if(!tr(e))return e;for(const t in e)if(nd(e,t))if(!t.includes("."))tr(e[t])&&Xm(e[t]);else{const n=t.split("."),r=n.length-1;let a=e,i=!1;for(let o=0;o<r;o++){if(n[o]==="__proto__")throw new Error(`unsafe key: ${n[o]}`);if(n[o]in a||(a[n[o]]=pr()),!tr(a[n[o]])){i=!0;break}a=a[n[o]]}i||(a[n[r]]=e[t],delete e[t]),tr(a[n[r]])&&Xm(a[n[r]])}return e}function vZ(e,t){const{messages:n,__i18n:r,messageResolver:a,flatJson:i}=t,o=Un(n)?n:ia(r)?pr():{[e]:pr()};if(ia(r)&&r.forEach(s=>{if("locale"in s&&"resource"in s){const{locale:l,resource:u}=s;l?(o[l]=o[l]||pr(),_1(u,o[l])):_1(u,o)}else Yt(s)&&_1(JSON.parse(s),o)}),a==null&&i)for(const s in o)nd(o,s)&&Xm(o[s]);return o}function pZ(e){return e.type}function XXe(e,t,n){let r=tr(t.messages)?t.messages:pr();"__i18nGlobal"in n&&(r=vZ(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const a=Object.keys(r);a.length&&a.forEach(i=>{e.mergeLocaleMessage(i,r[i])});{if(tr(t.datetimeFormats)){const i=Object.keys(t.datetimeFormats);i.length&&i.forEach(o=>{e.mergeDateTimeFormat(o,t.datetimeFormats[o])})}if(tr(t.numberFormats)){const i=Object.keys(t.numberFormats);i.length&&i.forEach(o=>{e.mergeNumberFormat(o,t.numberFormats[o])})}}}function h6(e){return re(ad,null,e,0)}const v6="__INTLIFY_META__",p6=()=>[],ZXe=()=>!1;let g6=0;function m6(e){return(t,n,r,a)=>e(n,r,Nt()||void 0,a)}const JXe=()=>{const e=Nt();let t=null;return e&&(t=pZ(e)[v6])?{[v6]:t}:null};function gZ(e={}){const{__root:t,__injectWithOption:n}=e,r=t===void 0,a=e.flatJson,i=ZV?U:Wn;let o=Or(e.inheritLocale)?e.inheritLocale:!0;const s=i(t&&o?t.locale.value:Yt(e.locale)?e.locale:K_),l=i(t&&o?t.fallbackLocale.value:Yt(e.fallbackLocale)||ia(e.fallbackLocale)||Un(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),u=i(vZ(s.value,e)),c=i(Un(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),f=i(Un(e.numberFormats)?e.numberFormats:{[s.value]:{}});let d=t?t.missingWarn:Or(e.missingWarn)||U_(e.missingWarn)?e.missingWarn:!0,h=t?t.fallbackWarn:Or(e.fallbackWarn)||U_(e.fallbackWarn)?e.fallbackWarn:!0,v=t?t.fallbackRoot:Or(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,g=Rr(e.missing)?e.missing:null,m=Rr(e.missing)?m6(e.missing):null,b=Rr(e.postTranslation)?e.postTranslation:null,w=t?t.warnHtmlMessage:Or(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const C=t?t.modifiers:Un(e.modifiers)?e.modifiers:{};let y=e.pluralRules||t&&t.pluralRules,x;x=(()=>{r&&a6(null);const oe={version:KXe,locale:s.value,fallbackLocale:l.value,messages:u.value,modifiers:C,pluralRules:y,missing:m===null?void 0:m,missingWarn:d,fallbackWarn:h,fallbackFormat:p,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:w,escapeParameter:S,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};oe.datetimeFormats=c.value,oe.numberFormats=f.value,oe.__datetimeFormatters=Un(x)?x.__datetimeFormatters:void 0,oe.__numberFormatters=Un(x)?x.__numberFormatters:void 0;const ke=DXe(oe);return r&&a6(ke),ke})(),Bp(x,s.value,l.value);function A(){return[s.value,l.value,u.value,c.value,f.value]}const M=R({get:()=>s.value,set:oe=>{x.locale=oe,s.value=oe}}),E=R({get:()=>l.value,set:oe=>{x.fallbackLocale=oe,l.value=oe,Bp(x,s.value,oe)}}),I=R(()=>u.value),L=R(()=>Object.keys(u.value).sort()),O=R(()=>c.value),z=R(()=>f.value);function F(){return Rr(b)?b:null}function $(oe){b=oe,x.postTranslation=oe}function V(){return g}function P(oe){oe!==null&&(m=m6(oe)),g=oe,x.missing=m}const G=(oe,ke,nt,st,ut,lt)=>{A();let Me;try{__INTLIFY_PROD_DEVTOOLS__,r||(x.fallbackContext=t?IXe():void 0),Me=oe(x)}finally{__INTLIFY_PROD_DEVTOOLS__,r||(x.fallbackContext=void 0)}if(nt!=="translate exists"&&Pa(Me)&&Me===MS||nt==="translate exists"&&!Me){const[ye,ge]=ke();return t&&v?st(t):ut(ye)}else{if(lt(Me))return Me;throw Qu(Il.UNEXPECTED_RETURN_TYPE)}};function j(...oe){return G(ke=>Reflect.apply(d6,null,[ke,...oe]),()=>vE(...oe),"translate",ke=>Reflect.apply(ke.t,ke,[...oe]),ke=>ke,ke=>Yt(ke))}function J(...oe){const[ke,nt,st]=oe;if(st&&!tr(st))throw Qu(Il.INVALID_ARGUMENT);return j(ke,nt,Na({resolvedMessage:!0},st||{}))}function ne(...oe){return G(ke=>Reflect.apply(o6,null,[ke,...oe]),()=>dE(...oe),"datetime format",ke=>Reflect.apply(ke.d,ke,[...oe]),()=>n6,ke=>Yt(ke))}function ve(...oe){return G(ke=>Reflect.apply(l6,null,[ke,...oe]),()=>hE(...oe),"number format",ke=>Reflect.apply(ke.n,ke,[...oe]),()=>n6,ke=>Yt(ke))}function le(oe){return oe.map(ke=>Yt(ke)||Pa(ke)||Or(ke)?h6(String(ke)):ke)}const ue={normalize:le,interpolate:oe=>oe,type:"vnode"};function Q(...oe){return G(ke=>{let nt;const st=ke;try{st.processor=ue,nt=Reflect.apply(d6,null,[st,...oe])}finally{st.processor=null}return nt},()=>vE(...oe),"translate",ke=>ke[pE](...oe),ke=>[h6(ke)],ke=>ia(ke))}function _e(...oe){return G(ke=>Reflect.apply(l6,null,[ke,...oe]),()=>hE(...oe),"number format",ke=>ke[mE](...oe),p6,ke=>Yt(ke)||ia(ke))}function Pe(...oe){return G(ke=>Reflect.apply(o6,null,[ke,...oe]),()=>dE(...oe),"datetime format",ke=>ke[gE](...oe),p6,ke=>Yt(ke)||ia(ke))}function pe(oe){y=oe,x.pluralRules=y}function Y(oe,ke){return G(()=>{if(!oe)return!1;const nt=Yt(ke)?ke:s.value,st=De(nt),ut=x.messageResolver(st,oe);return hv(ut)||no(ut)||Yt(ut)},()=>[oe],"translate exists",nt=>Reflect.apply(nt.te,nt,[oe,ke]),ZXe,nt=>Or(nt))}function ie(oe){let ke=null;const nt=wXe(x,l.value,s.value);for(let st=0;st<nt.length;st++){const ut=u.value[nt[st]]||{},lt=x.messageResolver(ut,oe);if(lt!=null){ke=lt;break}}return ke}function me(oe){const ke=ie(oe);return ke??(t?t.tm(oe)||{}:{})}function De(oe){return u.value[oe]||{}}function Be(oe,ke){if(a){const nt={[oe]:ke};for(const st in nt)nd(nt,st)&&Xm(nt[st]);ke=nt[oe]}u.value[oe]=ke,x.messages=u.value}function Oe(oe,ke){u.value[oe]=u.value[oe]||{};const nt={[oe]:ke};if(a)for(const st in nt)nd(nt,st)&&Xm(nt[st]);ke=nt[oe],_1(ke,u.value[oe]),x.messages=u.value}function de(oe){return c.value[oe]||{}}function we(oe,ke){c.value[oe]=ke,x.datetimeFormats=c.value,s6(x,oe,ke)}function Se(oe,ke){c.value[oe]=Na(c.value[oe]||{},ke),x.datetimeFormats=c.value,s6(x,oe,ke)}function Ie(oe){return f.value[oe]||{}}function Ee(oe,ke){f.value[oe]=ke,x.numberFormats=f.value,u6(x,oe,ke)}function Ge(oe,ke){f.value[oe]=Na(f.value[oe]||{},ke),x.numberFormats=f.value,u6(x,oe,ke)}g6++,t&&ZV&&(ze(t.locale,oe=>{o&&(s.value=oe,x.locale=oe,Bp(x,s.value,l.value))}),ze(t.fallbackLocale,oe=>{o&&(l.value=oe,x.fallbackLocale=oe,Bp(x,s.value,l.value))}));const Ue={id:g6,locale:M,fallbackLocale:E,get inheritLocale(){return o},set inheritLocale(oe){o=oe,oe&&t&&(s.value=t.locale.value,l.value=t.fallbackLocale.value,Bp(x,s.value,l.value))},availableLocales:L,messages:I,get modifiers(){return C},get pluralRules(){return y||{}},get isGlobal(){return r},get missingWarn(){return d},set missingWarn(oe){d=oe,x.missingWarn=d},get fallbackWarn(){return h},set fallbackWarn(oe){h=oe,x.fallbackWarn=h},get fallbackRoot(){return v},set fallbackRoot(oe){v=oe},get fallbackFormat(){return p},set fallbackFormat(oe){p=oe,x.fallbackFormat=p},get warnHtmlMessage(){return w},set warnHtmlMessage(oe){w=oe,x.warnHtmlMessage=oe},get escapeParameter(){return S},set escapeParameter(oe){S=oe,x.escapeParameter=oe},t:j,getLocaleMessage:De,setLocaleMessage:Be,mergeLocaleMessage:Oe,getPostTranslationHandler:F,setPostTranslationHandler:$,getMissingHandler:V,setMissingHandler:P,[YXe]:pe};return Ue.datetimeFormats=O,Ue.numberFormats=z,Ue.rt=J,Ue.te=Y,Ue.tm=me,Ue.d=ne,Ue.n=ve,Ue.getDateTimeFormat=de,Ue.setDateTimeFormat=we,Ue.mergeDateTimeFormat=Se,Ue.getNumberFormat=Ie,Ue.setNumberFormat=Ee,Ue.mergeNumberFormat=Ge,Ue[qXe]=n,Ue[pE]=Q,Ue[gE]=Pe,Ue[mE]=_e,Ue}const WL={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function QXe({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,a)=>[...r,...a.type===gt?a.children:[a]],[]):t.reduce((n,r)=>{const a=e[r];return a&&(n[r]=a()),n},pr())}function mZ(){return gt}function eZe(e){return ia(e)&&!Yt(e[0])}function yZ(e,t,n,r){const{slots:a,attrs:i}=t;return()=>{const o={part:!0};let s=pr();e.locale&&(o.locale=e.locale),Yt(e.format)?o.key=e.format:tr(e.format)&&(Yt(e.format.key)&&(o.key=e.format.key),s=Object.keys(e.format).reduce((d,h)=>n.includes(h)?Na(pr(),d,{[h]:e.format[h]}):d,pr()));const l=r(e.value,o,s);let u=[o.key];ia(l)?u=l.map((d,h)=>{const v=a[d.type],p=v?v({[d.type]:d.value,index:h,parts:l}):[d.value];return eZe(p)&&(p[0].key=`${d.type}-${h}`),p}):Yt(l)&&(u=[l]);const c=Na(pr(),i),f=Yt(e.tag)||tr(e.tag)?e.tag:mZ();return bt(f,c,u)}}const tZe=te({name:"i18n-d",props:Na({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},WL),setup(e,t){const n=e.i18n||GL({useScope:e.scope,__useComponent:!0});return yZ(e,t,cZ,(...r)=>n[gE](...r))}}),y6=tZe,nZe=te({name:"i18n-n",props:Na({value:{type:Number,required:!0},format:{type:[String,Object]}},WL),setup(e,t){const n=e.i18n||GL({useScope:e.scope,__useComponent:!0});return yZ(e,t,fZ,(...r)=>n[mE](...r))}}),b6=nZe,rZe=te({name:"i18n-t",props:Na({},{keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Pa(e)||!isNaN(e)}},WL),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||GL({useScope:e.scope,__useComponent:!0});return()=>{const i=Object.keys(n).filter(f=>f!=="_"),o=pr();e.locale&&(o.locale=e.locale),e.plural!==void 0&&(o.plural=Yt(e.plural)?+e.plural:e.plural);const s=QXe(t,i),l=a[pE](e.keypath,s,o),u=Na(pr(),r),c=Yt(e.tag)||tr(e.tag)?e.tag:mZ();return bt(c,u,l)}}}),_6=rZe;function aZe(e,...t){const n=Un(t[0])?t[0]:{};(Or(n.globalInstall)?n.globalInstall:!0)&&([_6.name,"I18nT"].forEach(a=>e.component(a,_6)),[b6.name,"I18nN"].forEach(a=>e.component(a,b6)),[y6.name,"I18nD"].forEach(a=>e.component(a,y6)))}const iZe=dc("global-vue-i18n");function oZe(e={}){const t=Or(e.globalInjection)?e.globalInjection:!0,n=new Map,[r,a]=sZe(e),i=dc("");function o(c){return n.get(c)||null}function s(c,f){n.set(c,f)}function l(c){n.delete(c)}const u={async install(c,...f){if(c.__VUE_I18N_SYMBOL__=i,c.provide(c.__VUE_I18N_SYMBOL__,u),Un(f[0])){const v=f[0];u.__composerExtend=v.__composerExtend}let d=null;t&&(d=pZe(c,u.global)),__VUE_I18N_FULL_INSTALL__&&aZe(c,...f);const h=c.unmount;c.unmount=()=>{d&&d(),u.dispose(),h()}},get global(){return a},dispose(){r.stop()},__instances:n,__getInstance:o,__setInstance:s,__deleteInstance:l};return u}function GL(e={}){const t=Nt();if(t==null)throw Qu(Il.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Qu(Il.NOT_INSTALLED);const n=lZe(t),r=cZe(n),a=pZ(t),i=uZe(e,a);if(i==="global")return XXe(r,e,a),r;if(i==="parent"){let l=fZe(n,t,e.__useComponent);return l==null&&(l=r),l}const o=n;let s=o.__getInstance(t);if(s==null){const l=Na({},e);"__i18n"in a&&(l.__i18n=a.__i18n),r&&(l.__root=r),s=gZ(l),o.__composerExtend&&(s[yE]=o.__composerExtend(s)),hZe(o,t,s),o.__setInstance(t,s)}return s}function sZe(e){const t=X_(),n=t.run(()=>gZ(e));if(n==null)throw Qu(Il.UNEXPECTED_ERROR);return[t,n]}function lZe(e){const t=ct(e.isCE?iZe:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Qu(e.isCE?Il.NOT_INSTALLED_WITH_PROVIDE:Il.UNEXPECTED_ERROR);return t}function uZe(e,t){return ES(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function cZe(e){return e.global}function fZe(e,t,n=!1){let r=null;const a=t.root;let i=dZe(t,n);for(;i!=null&&(r=e.__getInstance(i),!(r!=null||a===i));)i=i.parent;return r}function dZe(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function hZe(e,t,n){zt(()=>{},t),Pl(()=>{const r=n;e.__deleteInstance(t);const a=r[yE];a&&(a(),delete r[yE])},t)}const vZe=["locale","fallbackLocale","availableLocales"],w6=["t","rt","d","n","tm","te"];function pZe(e,t){const n=Object.create(null);return vZe.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i)throw Qu(Il.UNEXPECTED_ERROR);const o=Rn(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,a,o)}),e.config.globalProperties.$i18n=n,w6.forEach(a=>{const i=Object.getOwnPropertyDescriptor(t,a);if(!i||!i.value)throw Qu(Il.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${a}`,i)}),()=>{delete e.config.globalProperties.$i18n,w6.forEach(a=>{delete e.config.globalProperties[`$${a}`]})}}jXe();if(__INTLIFY_PROD_DEVTOOLS__){const e=Rh();e.__INTLIFY__=!0,pXe(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const S6=[],IS=oZe({legacy:!1,locale:localStorage.getItem("locale")||"zh-CN",fallbackLocale:"en",messages:{}});async function gZe(e){if(S6.includes(e))return Promise.resolve();try{const n=await fetch(`/eps/locales/${e}.json`);if(!n.ok)throw new Error("Failed to load locale messages");const r=await n.json();return IS.global.setLocaleMessage(e,r),S6.push(e),Promise.resolve()}catch(t){return console.error(t),Promise.reject(t)}}gZe(IS.global.locale.value);/*! Element Plus v2.3.14 */var mZe={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};/*! Element Plus v2.3.14 */var yZe={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 bZ=localStorage.getItem("locale")||"zh-CN",bZe=bZ==="zh-CN"?mZe:yZe;IS.global.locale.value=bZ;const yd=L8(pee);yd.use(KE);yd.use(X8);yd.use(IS);yd.use(cDe,{locale:bZe});yd.config.globalProperties.$echarts=eXe;yd.mount("#app");yd.config.errorHandler=function(e,t,n){console.error("Vue error:",e,n)};export{Nt as A,ze as B,un as C,gZe as D,OIe as E,gt as F,mZe as G,yZe as H,wZe as I,Rl as J,as as K,xn as L,yn as M,kte as N,Ate as O,KE as P,kZe as Q,_te as R,SZe as S,xZe as T,X8 as U,dee as _,ee as a,re as b,X as c,GL as d,_Ze as e,R as f,U as g,MZe as h,tc as i,Cn as j,AZe as k,CZe as l,TZe as m,H as n,N as o,zt as p,Rn as q,Dt as r,EZe as s,qe as t,_ as u,_a as v,fe as w,Iue as x,H1e as y,qIe as z};