var KL=Object.defineProperty;var XL=(e,t,r)=>t in e?KL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ZL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $t=(e,t,r)=>(XL(e,typeof t!="symbol"?t+"":t,r),r);var Kte=ZL((kr,Nr)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function Cm(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i!!r[i.toLowerCase()]:i=>!!r[i]}function St(e){if(be(e)){const t={};for(let r=0;r{if(r){const n=r.split(JL);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function le(e){let t="";if(ze(e))t=e;else if(be(e))for(let r=0;rMd(r,t))}const Me=e=>ze(e)?e:e==null?"":be(e)||Ke(e)&&(e.toString===fC||!Le(e.toString))?JSON.stringify(e,cC,2):String(e),cC=(e,t)=>t&&t.__v_isRef?cC(e,t.value):is(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i])=>(r[`${n} =>`]=i,r),{})}:Ed(t)?{[`Set(${t.size})`]:[...t.values()]}:Ke(t)&&!be(t)&&!dC(t)?String(t):t,mt={},ns=[],ur=()=>{},aD=()=>!1,oD=/^on[^a-z]/,Ad=e=>oD.test(e),Tm=e=>e.startsWith("onUpdate:"),Xt=Object.assign,Mm=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},sD=Object.prototype.hasOwnProperty,Ve=(e,t)=>sD.call(e,t),be=Array.isArray,is=e=>Ru(e)==="[object Map]",Ed=e=>Ru(e)==="[object Set]",V0=e=>Ru(e)==="[object Date]",Le=e=>typeof e=="function",ze=e=>typeof e=="string",eu=e=>typeof e=="symbol",Ke=e=>e!==null&&typeof e=="object",Hf=e=>Ke(e)&&Le(e.then)&&Le(e.catch),fC=Object.prototype.toString,Ru=e=>fC.call(e),lD=e=>Ru(e).slice(8,-1),dC=e=>Ru(e)==="[object Object]",Am=e=>ze(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ff=Cm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pd=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},uD=/-(\w)/g,An=Pd(e=>e.replace(uD,(t,r)=>r?r.toUpperCase():"")),cD=/\B([A-Z])/g,wo=Pd(e=>e.replace(cD,"-$1").toLowerCase()),Ld=Pd(e=>e.charAt(0).toUpperCase()+e.slice(1)),df=Pd(e=>e?`on${Ld(e)}`:""),tu=(e,t)=>!Object.is(e,t),hf=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Em=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let G0;const fD=()=>G0||(G0=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Ir;class dD{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Ir,!t&&Ir&&(this.index=(Ir.scopes||(Ir.scopes=[])).push(this)-1)}run(t){if(this.active){const r=Ir;try{return Ir=this,t()}finally{Ir=r}}}on(){Ir=this}off(){Ir=this.parent}stop(t){if(this.active){let r,n;for(r=0,n=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},hC=e=>(e.w&Qi)>0,vC=e=>(e.n&Qi)>0,gD=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n{(c==="length"||c>=l)&&s.push(u)})}else switch(r!==void 0&&s.push(o.get(r)),t){case"add":be(e)?Am(r)&&s.push(o.get("length")):(s.push(o.get(ro)),is(e)&&s.push(o.get(wp)));break;case"delete":be(e)||(s.push(o.get(ro)),is(e)&&s.push(o.get(wp)));break;case"set":is(e)&&s.push(o.get(ro));break}if(s.length===1)s[0]&&Sp(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);Sp(Pm(l))}}function Sp(e,t){const r=be(e)?e:[...e];for(const n of r)n.computed&&j0(n);for(const n of r)n.computed||j0(n)}function j0(e,t){(e!==bn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const yD=Cm("__proto__,__v_isRef,__isVue"),mC=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(eu)),_D=Dm(),bD=Dm(!1,!0),wD=Dm(!0),Y0=SD();function SD(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Je(this);for(let a=0,o=this.length;a{e[t]=function(...r){Os();const n=Je(this)[t].apply(this,r);return Rs(),n}}),e}function Dm(e=!1,t=!1){return function(n,i,a){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&a===(e?t?FD:SC:t?wC:bC).get(n))return n;const o=be(n);if(!e&&o&&Ve(Y0,i))return Reflect.get(Y0,i,a);const s=Reflect.get(n,i,a);return(eu(i)?mC.has(i):yD(i))||(e||Hr(n,"get",i),t)?s:xt(s)?o&&Am(i)?s:s.value:Ke(s)?e?ku(s):fn(s):s}}const xD=yC(),CD=yC(!0);function yC(e=!1){return function(r,n,i,a){let o=r[n];if(vs(o)&&xt(o)&&!xt(i))return!1;if(!e&&(!Wf(i)&&!vs(i)&&(o=Je(o),i=Je(i)),!be(r)&&xt(o)&&!xt(i)))return o.value=i,!0;const s=be(r)&&Am(n)?Number(n)e,Dd=e=>Reflect.getPrototypeOf(e);function ic(e,t,r=!1,n=!1){e=e.__v_raw;const i=Je(e),a=Je(t);r||(t!==a&&Hr(i,"get",t),Hr(i,"get",a));const{has:o}=Dd(i),s=n?Im:r?km:ru;if(o.call(i,t))return s(e.get(t));if(o.call(i,a))return s(e.get(a));e!==i&&e.get(t)}function ac(e,t=!1){const r=this.__v_raw,n=Je(r),i=Je(e);return t||(e!==i&&Hr(n,"has",e),Hr(n,"has",i)),e===i?r.has(e):r.has(e)||r.has(i)}function oc(e,t=!1){return e=e.__v_raw,!t&&Hr(Je(e),"iterate",ro),Reflect.get(e,"size",e)}function q0(e){e=Je(e);const t=Je(this);return Dd(t).has.call(t,e)||(t.add(e),pi(t,"add",e,e)),this}function K0(e,t){t=Je(t);const r=Je(this),{has:n,get:i}=Dd(r);let a=n.call(r,e);a||(e=Je(e),a=n.call(r,e));const o=i.call(r,e);return r.set(e,t),a?tu(t,o)&&pi(r,"set",e,t):pi(r,"add",e,t),this}function X0(e){const t=Je(this),{has:r,get:n}=Dd(t);let i=r.call(t,e);i||(e=Je(e),i=r.call(t,e)),n&&n.call(t,e);const a=t.delete(e);return i&&pi(t,"delete",e,void 0),a}function Z0(){const e=Je(this),t=e.size!==0,r=e.clear();return t&&pi(e,"clear",void 0,void 0),r}function sc(e,t){return function(n,i){const a=this,o=a.__v_raw,s=Je(o),l=t?Im:e?km:ru;return!e&&Hr(s,"iterate",ro),o.forEach((u,c)=>n.call(i,l(u),l(c),a))}}function lc(e,t,r){return function(...n){const i=this.__v_raw,a=Je(i),o=is(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),c=r?Im:t?km:ru;return!t&&Hr(a,"iterate",l?wp:ro),{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 Ai(e){return function(...t){return e==="delete"?!1:this}}function LD(){const e={get(a){return ic(this,a)},get size(){return oc(this)},has:ac,add:q0,set:K0,delete:X0,clear:Z0,forEach:sc(!1,!1)},t={get(a){return ic(this,a,!1,!0)},get size(){return oc(this)},has:ac,add:q0,set:K0,delete:X0,clear:Z0,forEach:sc(!1,!0)},r={get(a){return ic(this,a,!0)},get size(){return oc(this,!0)},has(a){return ac.call(this,a,!0)},add:Ai("add"),set:Ai("set"),delete:Ai("delete"),clear:Ai("clear"),forEach:sc(!0,!1)},n={get(a){return ic(this,a,!0,!0)},get size(){return oc(this,!0)},has(a){return ac.call(this,a,!0)},add:Ai("add"),set:Ai("set"),delete:Ai("delete"),clear:Ai("clear"),forEach:sc(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=lc(a,!1,!1),r[a]=lc(a,!0,!1),t[a]=lc(a,!1,!0),n[a]=lc(a,!0,!0)}),[e,r,t,n]}const[DD,ID,OD,RD]=LD();function Om(e,t){const r=t?e?RD:OD:e?ID:DD;return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(Ve(r,i)&&i in n?r:n,i,a)}const kD={get:Om(!1,!1)},ND={get:Om(!1,!0)},BD={get:Om(!0,!1)},bC=new WeakMap,wC=new WeakMap,SC=new WeakMap,FD=new WeakMap;function $D(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function HD(e){return e.__v_skip||!Object.isExtensible(e)?0:$D(lD(e))}function fn(e){return vs(e)?e:Rm(e,!1,_C,kD,bC)}function xC(e){return Rm(e,!1,PD,ND,wC)}function ku(e){return Rm(e,!0,ED,BD,SC)}function Rm(e,t,r,n,i){if(!Ke(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=HD(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function as(e){return vs(e)?as(e.__v_raw):!!(e&&e.__v_isReactive)}function vs(e){return!!(e&&e.__v_isReadonly)}function Wf(e){return!!(e&&e.__v_isShallow)}function CC(e){return as(e)||vs(e)}function Je(e){const t=e&&e.__v_raw;return t?Je(t):e}function TC(e){return zf(e,"__v_skip",!0),e}const ru=e=>Ke(e)?fn(e):e,km=e=>Ke(e)?ku(e):e;function MC(e){qi&&bn&&(e=Je(e),gC(e.dep||(e.dep=Pm())))}function AC(e,t){e=Je(e),e.dep&&Sp(e.dep)}function xt(e){return!!(e&&e.__v_isRef===!0)}function H(e){return PC(e,!1)}function EC(e){return PC(e,!0)}function PC(e,t){return xt(e)?e:new zD(e,t)}class zD{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Je(t),this._value=r?t:ru(t)}get value(){return MC(this),this._value}set value(t){const r=this.__v_isShallow||Wf(t)||vs(t);t=r?t:Je(t),tu(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:ru(t),AC(this))}}function P(e){return xt(e)?e.value:e}const WD={get:(e,t,r)=>P(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return xt(i)&&!xt(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function LC(e){return as(e)?e:new Proxy(e,WD)}function Id(e){const t=be(e)?new Array(e.length):{};for(const r in e)t[r]=Tn(e,r);return t}class VD{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Tn(e,t,r){const n=e[t];return xt(n)?n:new VD(e,t,r)}var DC;class GD{constructor(t,r,n,i){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this[DC]=!1,this._dirty=!0,this.effect=new Lm(t,()=>{this._dirty||(this._dirty=!0,AC(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Je(this);return MC(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}DC="__v_isReadonly";function UD(e,t,r=!1){let n,i;const a=Le(e);return a?(n=e,i=ur):(n=e.get,i=e.set),new GD(n,i,a||!i,r)}function jD(e,...t){}function Ki(e,t,r,n){let i;try{i=n?e(...n):e()}catch(a){Od(a,t,r)}return i}function rn(e,t,r,n){if(Le(e)){const a=Ki(e,t,r,n);return a&&Hf(a)&&a.catch(o=>{Od(o,t,r)}),a}const i=[];for(let a=0;a>>1;iu(tr[n])$n&&tr.splice(t,1)}function XD(e){be(e)?os.push(...e):(!ui||!ui.includes(e,e.allowRecurse?Va+1:Va))&&os.push(e),OC()}function Q0(e,t=nu?$n+1:0){for(;tiu(r)-iu(n)),Va=0;Vae.id==null?1/0:e.id,ZD=(e,t)=>{const r=iu(e)-iu(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function kC(e){xp=!1,nu=!0,tr.sort(ZD);const t=ur;try{for($n=0;$nze(h)?h.trim():h)),f&&(i=r.map(Em))}let s,l=n[s=df(t)]||n[s=df(An(t))];!l&&a&&(l=n[s=df(wo(t))]),l&&rn(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,rn(u,e,6,i)}}function NC(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!Le(e)){const l=u=>{const c=NC(u,t,!0);c&&(s=!0,Xt(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(Ke(e)&&n.set(e,null),null):(be(a)?a.forEach(l=>o[l]=null):Xt(o,a),Ke(e)&&n.set(e,o),o)}function Rd(e,t){return!e||!Ad(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ve(e,t[0].toLowerCase()+t.slice(1))||Ve(e,wo(t))||Ve(e,t))}let jt=null,BC=null;function Vf(e){const t=jt;return jt=e,BC=e&&e.type.__scopeId||null,t}function Z(e,t=jt,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&c_(-1);const a=Vf(t);let o;try{o=e(...i)}finally{Vf(a),n._d&&c_(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Ah(e){const{type:t,vnode:r,proxy:n,withProxy:i,props:a,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 y=Vf(e);try{if(r.shapeFlag&4){const b=i||n;g=Fn(c.call(b,b,f,a,h,d,v)),m=l}else{const b=t;g=Fn(b.length>1?b(a,{attrs:l,slots:s,emit:u}):b(a,null)),m=t.props?l:JD(l)}}catch(b){Ll.length=0,Od(b,e,1),g=ee(Sr)}let _=g;if(m&&p!==!1){const b=Object.keys(m),{shapeFlag:S}=_;b.length&&S&7&&(o&&b.some(Tm)&&(m=eI(m,o)),_=gi(_,m))}return r.dirs&&(_=gi(_),_.dirs=_.dirs?_.dirs.concat(r.dirs):r.dirs),r.transition&&(_.transition=r.transition),g=_,Vf(y),g}const JD=e=>{let t;for(const r in e)(r==="class"||r==="style"||Ad(r))&&((t||(t={}))[r]=e[r]);return t},eI=(e,t)=>{const r={};for(const n in e)(!Tm(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function tI(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?J0(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function iI(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):XD(e)}function Tt(e,t){if(zt){let r=zt.provides;const n=zt.parent&&zt.parent.provides;n===r&&(r=zt.provides=Object.create(n)),r[e]=t}}function Oe(e,t,r=!1){const n=zt||jt;if(n){const i=n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return r&&Le(t)?t.call(n.proxy):t}}function no(e,t){return Fm(e,null,t)}const uc={};function xe(e,t,r){return Fm(e,t,r)}function Fm(e,t,{immediate:r,deep:n,flush:i,onTrack:a,onTrigger:o}=mt){const s=zt;let l,u=!1,c=!1;if(xt(e)?(l=()=>e.value,u=Wf(e)):as(e)?(l=()=>e,n=!0):be(e)?(c=!0,u=e.some(_=>as(_)||Wf(_)),l=()=>e.map(_=>{if(xt(_))return _.value;if(as(_))return Ka(_);if(Le(_))return Ki(_,s,2)})):Le(e)?t?l=()=>Ki(e,s,2):l=()=>{if(!(s&&s.isUnmounted))return f&&f(),rn(e,s,3,[d])}:l=ur,t&&n){const _=l;l=()=>Ka(_())}let f,d=_=>{f=m.onStop=()=>{Ki(_,s,4)}},h;if(ou)if(d=ur,t?r&&rn(t,s,3,[l(),c?[]:void 0,d]):l(),i==="sync"){const _=XI();h=_.__watcherHandles||(_.__watcherHandles=[])}else return ur;let v=c?new Array(e.length).fill(uc):uc;const p=()=>{if(m.active)if(t){const _=m.run();(n||u||(c?_.some((b,S)=>tu(b,v[S])):tu(_,v)))&&(f&&f(),rn(t,s,3,[_,v===uc?void 0:c&&v[0]===uc?[]:v,d]),v=_)}else m.run()};p.allowRecurse=!!t;let g;i==="sync"?g=p:i==="post"?g=()=>yr(p,s&&s.suspense):(p.pre=!0,s&&(p.id=s.uid),g=()=>Bm(p));const m=new Lm(l,g);t?r?p():v=m.run():i==="post"?yr(m.run.bind(m),s&&s.suspense):m.run();const y=()=>{m.stop(),s&&s.scope&&Mm(s.scope.effects,m)};return h&&h.push(y),y}function aI(e,t,r){const n=this.proxy,i=ze(e)?e.includes(".")?FC(n,e):()=>n[e]:e.bind(n,n);let a;Le(t)?a=t:(a=t.handler,r=t);const o=zt;ps(this);const s=Fm(i,a.bind(n),r);return o?ps(o):io(),s}function FC(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i{Ka(r,t)});else if(dC(e))for(const r in e)Ka(e[r],t);return e}function oI(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mt(()=>{e.isMounted=!0}),nr(()=>{e.isUnmounting=!0}),e}const Vr=[Function,Array],sI={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vr,onEnter:Vr,onAfterEnter:Vr,onEnterCancelled:Vr,onBeforeLeave:Vr,onLeave:Vr,onAfterLeave:Vr,onLeaveCancelled:Vr,onBeforeAppear:Vr,onAppear:Vr,onAfterAppear:Vr,onAppearCancelled:Vr},setup(e,{slots:t}){const r=dt(),n=oI();let i;return()=>{const a=t.default&&zC(t.default(),!0);if(!a||!a.length)return;let o=a[0];if(a.length>1){for(const p of a)if(p.type!==Sr){o=p;break}}const s=Je(e),{mode:l}=s;if(n.isLeaving)return Eh(o);const u=e_(o);if(!u)return Eh(o);const c=Cp(u,s,n,r);Tp(u,c);const f=r.subTree,d=f&&e_(f);let h=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();i===void 0?i=p:p!==i&&(i=p,h=!0)}if(d&&d.type!==Sr&&(!Ga(u,d)||h)){const p=Cp(d,s,n,r);if(Tp(d,p),l==="out-in")return n.isLeaving=!0,p.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Eh(o);l==="in-out"&&u.type!==Sr&&(p.delayLeave=(g,m,y)=>{const _=HC(n,d);_[String(d.key)]=d,g._leaveCb=()=>{m(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=y})}return o}}},$C=sI;function HC(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Cp(e,t,r,n){const{appear:i,mode:a,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:y}=t,_=String(e.key),b=HC(r,e),S=(C,T)=>{C&&rn(C,n,9,T)},w=(C,T)=>{const E=T[1];S(C,T),be(C)?C.every(A=>A.length<=1)&&E():C.length<=1&&E()},x={mode:a,persisted:o,beforeEnter(C){let T=s;if(!r.isMounted)if(i)T=p||s;else return;C._leaveCb&&C._leaveCb(!0);const E=b[_];E&&Ga(e,E)&&E.el._leaveCb&&E.el._leaveCb(),S(T,[C])},enter(C){let T=l,E=u,A=c;if(!r.isMounted)if(i)T=g||l,E=m||u,A=y||c;else return;let M=!1;const D=C._enterCb=R=>{M||(M=!0,R?S(A,[C]):S(E,[C]),x.delayedLeave&&x.delayedLeave(),C._enterCb=void 0)};T?w(T,[C,D]):D()},leave(C,T){const E=String(e.key);if(C._enterCb&&C._enterCb(!0),r.isUnmounting)return T();S(f,[C]);let A=!1;const M=C._leaveCb=D=>{A||(A=!0,T(),D?S(v,[C]):S(h,[C]),C._leaveCb=void 0,b[E]===e&&delete b[E])};b[E]=e,d?w(d,[C,M]):M()},clone(C){return Cp(C,t,r,n)}};return x}function Eh(e){if(kd(e))return e=gi(e),e.children=null,e}function e_(e){return kd(e)?e.children?e.children[0]:void 0:e}function Tp(e,t){e.shapeFlag&6&&e.component?Tp(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 zC(e,t=!1,r){let n=[],i=0;for(let a=0;a1)for(let a=0;a!!e.type.__asyncLoader,kd=e=>e.type.__isKeepAlive;function lI(e,t){VC(e,"a",t)}function WC(e,t){VC(e,"da",t)}function VC(e,t,r=zt){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Nd(t,n,r),r){let i=r.parent;for(;i&&i.parent;)kd(i.parent.vnode)&&uI(n,t,r,i),i=i.parent}}function uI(e,t,r,n){const i=Nd(t,e,n,!0);Nu(()=>{Mm(n[t],i)},r)}function Nd(e,t,r=zt,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(r.isUnmounted)return;Os(),ps(r);const s=rn(t,r,e,o);return io(),Rs(),s});return n?i.unshift(a):i.push(a),a}}const Si=e=>(t,r=zt)=>(!ou||e==="sp")&&Nd(e,(...n)=>t(...n),r),Bd=Si("bm"),Mt=Si("m"),cI=Si("bu"),Fd=Si("u"),nr=Si("bum"),Nu=Si("um"),fI=Si("sp"),dI=Si("rtg"),hI=Si("rtc");function vI(e,t=zt){Nd("ec",e,t)}function qt(e,t){const r=jt;if(r===null)return e;const n=Hd(r)||r.proxy,i=e.dirs||(e.dirs=[]);for(let a=0;at(o,s,void 0,a&&a[s]));else{const o=Object.keys(e);i=new Array(o.length);for(let s=0,l=o.length;sJi(t)?!(t.type===Sr||t.type===yt&&!UC(t.children)):!0)?e:null}function gI(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:df(n)]=e[n];return r}const Mp=e=>e?rT(e)?Hd(e)||e.proxy:Mp(e.parent):null,El=Xt(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=>Mp(e.parent),$root:e=>Mp(e.root),$emit:e=>e.emit,$options:e=>Wm(e),$forceUpdate:e=>e.f||(e.f=()=>Bm(e.update)),$nextTick:e=>e.n||(e.n=Rt.bind(e.proxy)),$watch:e=>aI.bind(e)}),Ph=(e,t)=>e!==mt&&!e.__isScriptSetup&&Ve(e,t),mI={get({_:e},t){const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(Ph(n,t))return o[t]=1,n[t];if(i!==mt&&Ve(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&Ve(u,t))return o[t]=3,a[t];if(r!==mt&&Ve(r,t))return o[t]=4,r[t];Ap&&(o[t]=0)}}const c=El[t];let f,d;if(c)return t==="$attrs"&&Hr(e,"get",t),c(e);if((f=s.__cssModules)&&(f=f[t]))return f;if(r!==mt&&Ve(r,t))return o[t]=4,r[t];if(d=l.config.globalProperties,Ve(d,t))return d[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return Ph(i,t)?(i[t]=r,!0):n!==mt&&Ve(n,t)?(n[t]=r,!0):Ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==mt&&Ve(e,o)||Ph(t,o)||(s=a[0])&&Ve(s,o)||Ve(n,o)||Ve(El,o)||Ve(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Ve(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};let Ap=!0;function yI(e){const t=Wm(e),r=e.proxy,n=e.ctx;Ap=!1,t.beforeCreate&&n_(t.beforeCreate,e,"bc");const{data:i,computed:a,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:y,destroyed:_,unmounted:b,render:S,renderTracked:w,renderTriggered:x,errorCaptured:C,serverPrefetch:T,expose:E,inheritAttrs:A,components:M,directives:D,filters:R}=t;if(u&&_I(u,n,null,e.appContext.config.unwrapInjectedRef),o)for(const K in o){const B=o[K];Le(B)&&(n[K]=B.bind(r))}if(i){const K=i.call(r,r);Ke(K)&&(e.data=fn(K))}if(Ap=!0,a)for(const K in a){const B=a[K],N=Le(B)?B.bind(r,r):Le(B.get)?B.get.bind(r,r):ur,j=!Le(B)&&Le(B.set)?B.set.bind(r):ur,re=$({get:N,set:j});Object.defineProperty(n,K,{enumerable:!0,configurable:!0,get:()=>re.value,set:oe=>re.value=oe})}if(s)for(const K in s)jC(s[K],n,r,K);if(l){const K=Le(l)?l.call(r):l;Reflect.ownKeys(K).forEach(B=>{Tt(B,K[B])})}c&&n_(c,e,"c");function F(K,B){be(B)?B.forEach(N=>K(N.bind(r))):B&&K(B.bind(r))}if(F(Bd,f),F(Mt,d),F(cI,h),F(Fd,v),F(lI,p),F(WC,g),F(vI,C),F(hI,w),F(dI,x),F(nr,y),F(Nu,b),F(fI,T),be(E))if(E.length){const K=e.exposed||(e.exposed={});E.forEach(B=>{Object.defineProperty(K,B,{get:()=>r[B],set:N=>r[B]=N})})}else e.exposed||(e.exposed={});S&&e.render===ur&&(e.render=S),A!=null&&(e.inheritAttrs=A),M&&(e.components=M),D&&(e.directives=D)}function _I(e,t,r=ur,n=!1){be(e)&&(e=Ep(e));for(const i in e){const a=e[i];let o;Ke(a)?"default"in a?o=Oe(a.from||i,a.default,!0):o=Oe(a.from||i):o=Oe(a),xt(o)&&n?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[i]=o}}function n_(e,t,r){rn(be(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function jC(e,t,r,n){const i=n.includes(".")?FC(r,n):()=>r[n];if(ze(e)){const a=t[e];Le(a)&&xe(i,a)}else if(Le(e))xe(i,e.bind(r));else if(Ke(e))if(be(e))e.forEach(a=>jC(a,t,r,n));else{const a=Le(e.handler)?e.handler.bind(r):t[e.handler];Le(a)&&xe(i,a,e)}}function Wm(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>Gf(l,u,o,!0)),Gf(l,t,o)),Ke(t)&&a.set(t,l),l}function Gf(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&Gf(e,a,r,!0),i&&i.forEach(o=>Gf(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=bI[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const bI={data:i_,props:Ha,emits:Ha,methods:Ha,computed:Ha,beforeCreate:ir,created:ir,beforeMount:ir,mounted:ir,beforeUpdate:ir,updated:ir,beforeDestroy:ir,beforeUnmount:ir,destroyed:ir,unmounted:ir,activated:ir,deactivated:ir,errorCaptured:ir,serverPrefetch:ir,components:Ha,directives:Ha,watch:SI,provide:i_,inject:wI};function i_(e,t){return t?e?function(){return Xt(Le(e)?e.call(this,this):e,Le(t)?t.call(this,this):t)}:t:e}function wI(e,t){return Ha(Ep(e),Ep(t))}function Ep(e){if(be(e)){const t={};for(let r=0;r0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,h]=qC(f,t,!0);Xt(o,d),h&&s.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return Ke(e)&&n.set(e,ns),ns;if(be(a))for(let c=0;c-1,h[1]=p<0||v-1||Ve(h,"default"))&&s.push(f)}}}const u=[o,s];return Ke(e)&&n.set(e,u),u}function a_(e){return e[0]!=="$"}function o_(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function s_(e,t){return o_(e)===o_(t)}function l_(e,t){return be(t)?t.findIndex(r=>s_(r,e)):Le(t)&&s_(t,e)?0:-1}const KC=e=>e[0]==="_"||e==="$stable",Vm=e=>be(e)?e.map(Fn):[Fn(e)],TI=(e,t,r)=>{if(t._n)return t;const n=Z((...i)=>Vm(t(...i)),r);return n._c=!1,n},XC=(e,t,r)=>{const n=e._ctx;for(const i in e){if(KC(i))continue;const a=e[i];if(Le(a))t[i]=TI(i,a,n);else if(a!=null){const o=Vm(a);t[i]=()=>o}}},ZC=(e,t)=>{const r=Vm(t);e.slots.default=()=>r},MI=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Je(t),zf(t,"_",r)):XC(t,e.slots={})}else e.slots={},t&&ZC(e,t);zf(e.slots,$d,1)},AI=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=mt;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:(Xt(i,t),!r&&s===1&&delete i._):(a=!t.$stable,XC(t,i)),o=t}else t&&(ZC(e,t),o={default:1});if(a)for(const s in i)!KC(s)&&!(s in o)&&delete i[s]};function QC(){return{app:null,config:{isNativeTag:aD,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 EI=0;function PI(e,t){return function(n,i=null){Le(n)||(n=Object.assign({},n)),i!=null&&!Ke(i)&&(i=null);const a=QC(),o=new Set;let s=!1;const l=a.app={_uid:EI++,_component:n,_props:i,_container:null,_context:a,_instance:null,version:ZI,get config(){return a.config},set config(u){},use(u,...c){return o.has(u)||(u&&Le(u.install)?(o.add(u),u.install(l,...c)):Le(u)&&(o.add(u),u(l,...c))),l},mixin(u){return a.mixins.includes(u)||a.mixins.push(u),l},component(u,c){return c?(a.components[u]=c,l):a.components[u]},directive(u,c){return c?(a.directives[u]=c,l):a.directives[u]},mount(u,c,f){if(!s){const d=ee(n,i);return d.appContext=a,c&&t?t(d,u):e(d,u,f),s=!0,l._container=u,u.__vue_app__=l,Hd(d.component)||d.component.proxy}},unmount(){s&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return a.provides[u]=c,l}};return l}}function Lp(e,t,r,n,i=!1){if(be(e)){e.forEach((d,h)=>Lp(d,t&&(be(t)?t[h]:t),r,n,i));return}if(Al(n)&&!i)return;const a=n.shapeFlag&4?Hd(n.component)||n.component.proxy:n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===mt?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(ze(u)?(c[u]=null,Ve(f,u)&&(f[u]=null)):xt(u)&&(u.value=null)),Le(l))Ki(l,s,12,[o,c]);else{const d=ze(l),h=xt(l);if(d||h){const v=()=>{if(e.f){const p=d?Ve(f,l)?f[l]:c[l]:l.value;i?be(p)&&Mm(p,a):be(p)?p.includes(a)||p.push(a):d?(c[l]=[a],Ve(f,l)&&(f[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else d?(c[l]=o,Ve(f,l)&&(f[l]=o)):h&&(l.value=o,e.k&&(c[e.k]=o))};o?(v.id=-1,yr(v,r)):v()}}}const yr=iI;function LI(e){return DI(e)}function DI(e,t){const r=fD();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=ur,insertStaticContent:v}=e,p=(L,I,z,G=null,q=null,ne=null,de=!1,te=null,ie=!!I.dynamicChildren)=>{if(L===I)return;L&&!Ga(L,I)&&(G=W(L),oe(L,q,ne,!0),L=null),I.patchFlag===-2&&(ie=!1,I.dynamicChildren=null);const{type:X,ref:we,shapeFlag:ve}=I;switch(X){case ks:g(L,I,z,G);break;case Sr:m(L,I,z,G);break;case Lh:L==null&&y(I,z,G,de);break;case yt:M(L,I,z,G,q,ne,de,te,ie);break;default:ve&1?S(L,I,z,G,q,ne,de,te,ie):ve&6?D(L,I,z,G,q,ne,de,te,ie):(ve&64||ve&128)&&X.process(L,I,z,G,q,ne,de,te,ie,ue)}we!=null&&q&&Lp(we,L&&L.ref,ne,I||L,!I)},g=(L,I,z,G)=>{if(L==null)n(I.el=s(I.children),z,G);else{const q=I.el=L.el;I.children!==L.children&&u(q,I.children)}},m=(L,I,z,G)=>{L==null?n(I.el=l(I.children||""),z,G):I.el=L.el},y=(L,I,z,G)=>{[L.el,L.anchor]=v(L.children,I,z,G,L.el,L.anchor)},_=({el:L,anchor:I},z,G)=>{let q;for(;L&&L!==I;)q=d(L),n(L,z,G),L=q;n(I,z,G)},b=({el:L,anchor:I})=>{let z;for(;L&&L!==I;)z=d(L),i(L),L=z;i(I)},S=(L,I,z,G,q,ne,de,te,ie)=>{de=de||I.type==="svg",L==null?w(I,z,G,q,ne,de,te,ie):T(L,I,q,ne,de,te,ie)},w=(L,I,z,G,q,ne,de,te)=>{let ie,X;const{type:we,props:ve,shapeFlag:Se,transition:Ie,dirs:$e}=L;if(ie=L.el=o(L.type,ne,ve&&ve.is,ve),Se&8?c(ie,L.children):Se&16&&C(L.children,ie,null,G,q,ne&&we!=="foreignObject",de,te),$e&&fa(L,null,G,"created"),ve){for(const et in ve)et!=="value"&&!ff(et)&&a(ie,et,null,ve[et],ne,L.children,G,q,J);"value"in ve&&a(ie,"value",null,ve.value),(X=ve.onVnodeBeforeMount)&&On(X,G,L)}x(ie,L,L.scopeId,de,G),$e&&fa(L,null,G,"beforeMount");const nt=(!q||q&&!q.pendingBranch)&&Ie&&!Ie.persisted;nt&&Ie.beforeEnter(ie),n(ie,I,z),((X=ve&&ve.onVnodeMounted)||nt||$e)&&yr(()=>{X&&On(X,G,L),nt&&Ie.enter(ie),$e&&fa(L,null,G,"mounted")},q)},x=(L,I,z,G,q)=>{if(z&&h(L,z),G)for(let ne=0;ne{for(let X=ie;X{const te=I.el=L.el;let{patchFlag:ie,dynamicChildren:X,dirs:we}=I;ie|=L.patchFlag&16;const ve=L.props||mt,Se=I.props||mt;let Ie;z&&da(z,!1),(Ie=Se.onVnodeBeforeUpdate)&&On(Ie,z,I,L),we&&fa(I,L,z,"beforeUpdate"),z&&da(z,!0);const $e=q&&I.type!=="foreignObject";if(X?E(L.dynamicChildren,X,te,z,G,$e,ne):de||B(L,I,te,null,z,G,$e,ne,!1),ie>0){if(ie&16)A(te,I,ve,Se,z,G,q);else if(ie&2&&ve.class!==Se.class&&a(te,"class",null,Se.class,q),ie&4&&a(te,"style",ve.style,Se.style,q),ie&8){const nt=I.dynamicProps;for(let et=0;et{Ie&&On(Ie,z,I,L),we&&fa(I,L,z,"updated")},G)},E=(L,I,z,G,q,ne,de)=>{for(let te=0;te{if(z!==G){if(z!==mt)for(const te in z)!ff(te)&&!(te in G)&&a(L,te,z[te],null,de,I.children,q,ne,J);for(const te in G){if(ff(te))continue;const ie=G[te],X=z[te];ie!==X&&te!=="value"&&a(L,te,X,ie,de,I.children,q,ne,J)}"value"in G&&a(L,"value",z.value,G.value)}},M=(L,I,z,G,q,ne,de,te,ie)=>{const X=I.el=L?L.el:s(""),we=I.anchor=L?L.anchor:s("");let{patchFlag:ve,dynamicChildren:Se,slotScopeIds:Ie}=I;Ie&&(te=te?te.concat(Ie):Ie),L==null?(n(X,z,G),n(we,z,G),C(I.children,z,we,q,ne,de,te,ie)):ve>0&&ve&64&&Se&&L.dynamicChildren?(E(L.dynamicChildren,Se,z,q,ne,de,te),(I.key!=null||q&&I===q.subTree)&&Gm(L,I,!0)):B(L,I,z,we,q,ne,de,te,ie)},D=(L,I,z,G,q,ne,de,te,ie)=>{I.slotScopeIds=te,L==null?I.shapeFlag&512?q.ctx.activate(I,z,G,de,ie):R(I,z,G,q,ne,de,ie):k(L,I,ie)},R=(L,I,z,G,q,ne,de)=>{const te=L.component=WI(L,G,q);if(kd(L)&&(te.ctx.renderer=ue),VI(te),te.asyncDep){if(q&&q.registerDep(te,F),!L.el){const ie=te.subTree=ee(Sr);m(null,ie,I,z)}return}F(te,L,I,z,q,ne,de)},k=(L,I,z)=>{const G=I.component=L.component;if(tI(L,I,z))if(G.asyncDep&&!G.asyncResolved){K(G,I,z);return}else G.next=I,KD(G.update),G.update();else I.el=L.el,G.vnode=I},F=(L,I,z,G,q,ne,de)=>{const te=()=>{if(L.isMounted){let{next:we,bu:ve,u:Se,parent:Ie,vnode:$e}=L,nt=we,et;da(L,!1),we?(we.el=$e.el,K(L,we,de)):we=$e,ve&&hf(ve),(et=we.props&&we.props.onVnodeBeforeUpdate)&&On(et,Ie,we,$e),da(L,!0);const fe=Ah(L),Te=L.subTree;L.subTree=fe,p(Te,fe,f(Te.el),W(Te),L,q,ne),we.el=fe.el,nt===null&&rI(L,fe.el),Se&&yr(Se,q),(et=we.props&&we.props.onVnodeUpdated)&&yr(()=>On(et,Ie,we,$e),q)}else{let we;const{el:ve,props:Se}=I,{bm:Ie,m:$e,parent:nt}=L,et=Al(I);if(da(L,!1),Ie&&hf(Ie),!et&&(we=Se&&Se.onVnodeBeforeMount)&&On(we,nt,I),da(L,!0),ve&&Q){const fe=()=>{L.subTree=Ah(L),Q(ve,L.subTree,L,q,null)};et?I.type.__asyncLoader().then(()=>!L.isUnmounted&&fe()):fe()}else{const fe=L.subTree=Ah(L);p(null,fe,z,G,L,q,ne),I.el=fe.el}if($e&&yr($e,q),!et&&(we=Se&&Se.onVnodeMounted)){const fe=I;yr(()=>On(we,nt,fe),q)}(I.shapeFlag&256||nt&&Al(nt.vnode)&&nt.vnode.shapeFlag&256)&&L.a&&yr(L.a,q),L.isMounted=!0,I=z=G=null}},ie=L.effect=new Lm(te,()=>Bm(X),L.scope),X=L.update=()=>ie.run();X.id=L.uid,da(L,!0),X()},K=(L,I,z)=>{I.component=L;const G=L.vnode.props;L.vnode=I,L.next=null,CI(L,I.props,G,z),AI(L,I.children,z),Os(),Q0(),Rs()},B=(L,I,z,G,q,ne,de,te,ie=!1)=>{const X=L&&L.children,we=L?L.shapeFlag:0,ve=I.children,{patchFlag:Se,shapeFlag:Ie}=I;if(Se>0){if(Se&128){j(X,ve,z,G,q,ne,de,te,ie);return}else if(Se&256){N(X,ve,z,G,q,ne,de,te,ie);return}}Ie&8?(we&16&&J(X,q,ne),ve!==X&&c(z,ve)):we&16?Ie&16?j(X,ve,z,G,q,ne,de,te,ie):J(X,q,ne,!0):(we&8&&c(z,""),Ie&16&&C(ve,z,G,q,ne,de,te,ie))},N=(L,I,z,G,q,ne,de,te,ie)=>{L=L||ns,I=I||ns;const X=L.length,we=I.length,ve=Math.min(X,we);let Se;for(Se=0;Sewe?J(L,q,ne,!0,!1,ve):C(I,z,G,q,ne,de,te,ie,ve)},j=(L,I,z,G,q,ne,de,te,ie)=>{let X=0;const we=I.length;let ve=L.length-1,Se=we-1;for(;X<=ve&&X<=Se;){const Ie=L[X],$e=I[X]=ie?zi(I[X]):Fn(I[X]);if(Ga(Ie,$e))p(Ie,$e,z,null,q,ne,de,te,ie);else break;X++}for(;X<=ve&&X<=Se;){const Ie=L[ve],$e=I[Se]=ie?zi(I[Se]):Fn(I[Se]);if(Ga(Ie,$e))p(Ie,$e,z,null,q,ne,de,te,ie);else break;ve--,Se--}if(X>ve){if(X<=Se){const Ie=Se+1,$e=IeSe)for(;X<=ve;)oe(L[X],q,ne,!0),X++;else{const Ie=X,$e=X,nt=new Map;for(X=$e;X<=Se;X++){const ht=I[X]=ie?zi(I[X]):Fn(I[X]);ht.key!=null&&nt.set(ht.key,X)}let et,fe=0;const Te=Se-$e+1;let He=!1,We=0;const Ze=new Array(Te);for(X=0;X=Te){oe(ht,q,ne,!0);continue}let Wt;if(ht.key!=null)Wt=nt.get(ht.key);else for(et=$e;et<=Se;et++)if(Ze[et-$e]===0&&Ga(ht,I[et])){Wt=et;break}Wt===void 0?oe(ht,q,ne,!0):(Ze[Wt-$e]=X+1,Wt>=We?We=Wt:He=!0,p(ht,I[Wt],z,null,q,ne,de,te,ie),fe++)}const kt=He?II(Ze):ns;for(et=kt.length-1,X=Te-1;X>=0;X--){const ht=$e+X,Wt=I[ht],Wr=ht+1{const{el:ne,type:de,transition:te,children:ie,shapeFlag:X}=L;if(X&6){re(L.component.subTree,I,z,G);return}if(X&128){L.suspense.move(I,z,G);return}if(X&64){de.move(L,I,z,ue);return}if(de===yt){n(ne,I,z);for(let ve=0;vete.enter(ne),q);else{const{leave:ve,delayLeave:Se,afterLeave:Ie}=te,$e=()=>n(ne,I,z),nt=()=>{ve(ne,()=>{$e(),Ie&&Ie()})};Se?Se(ne,$e,nt):nt()}else n(ne,I,z)},oe=(L,I,z,G=!1,q=!1)=>{const{type:ne,props:de,ref:te,children:ie,dynamicChildren:X,shapeFlag:we,patchFlag:ve,dirs:Se}=L;if(te!=null&&Lp(te,null,z,L,!0),we&256){I.ctx.deactivate(L);return}const Ie=we&1&&Se,$e=!Al(L);let nt;if($e&&(nt=de&&de.onVnodeBeforeUnmount)&&On(nt,I,L),we&6)V(L.component,z,G);else{if(we&128){L.suspense.unmount(z,G);return}Ie&&fa(L,null,I,"beforeUnmount"),we&64?L.type.remove(L,I,z,q,ue,G):X&&(ne!==yt||ve>0&&ve&64)?J(X,I,z,!1,!0):(ne===yt&&ve&384||!q&&we&16)&&J(ie,I,z),G&&_e(L)}($e&&(nt=de&&de.onVnodeUnmounted)||Ie)&&yr(()=>{nt&&On(nt,I,L),Ie&&fa(L,null,I,"unmounted")},z)},_e=L=>{const{type:I,el:z,anchor:G,transition:q}=L;if(I===yt){Ee(z,G);return}if(I===Lh){b(L);return}const ne=()=>{i(z),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(L.shapeFlag&1&&q&&!q.persisted){const{leave:de,delayLeave:te}=q,ie=()=>de(z,ne);te?te(L.el,ne,ie):ie()}else ne()},Ee=(L,I)=>{let z;for(;L!==I;)z=d(L),i(L),L=z;i(I)},V=(L,I,z)=>{const{bum:G,scope:q,update:ne,subTree:de,um:te}=L;G&&hf(G),q.stop(),ne&&(ne.active=!1,oe(de,L,I,z)),te&&yr(te,I),yr(()=>{L.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&L.asyncDep&&!L.asyncResolved&&L.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},J=(L,I,z,G=!1,q=!1,ne=0)=>{for(let de=ne;deL.shapeFlag&6?W(L.component.subTree):L.shapeFlag&128?L.suspense.next():d(L.anchor||L.el),Y=(L,I,z)=>{L==null?I._vnode&&oe(I._vnode,null,null,!0):p(I._vnode||null,L,I,null,null,null,z),Q0(),RC(),I._vnode=L},ue={p,um:oe,m:re,r:_e,mt:R,mc:C,pc:B,pbc:E,n:W,o:e};let he,Q;return t&&([he,Q]=t(ue)),{render:Y,hydrate:he,createApp:PI(Y,he)}}function da({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function Gm(e,t,r=!1){const n=e.children,i=t.children;if(be(n)&&be(i))for(let a=0;a>1,e[r[s]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}const OI=e=>e.__isTeleport,Pl=e=>e&&(e.disabled||e.disabled===""),u_=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Dp=(e,t)=>{const r=e&&e.to;return ze(r)?t?t(r):null:r},RI={__isTeleport:!0,process(e,t,r,n,i,a,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:p,createComment:g}}=u,m=Pl(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const S=t.el=p(""),w=t.anchor=p("");h(S,r,n),h(w,r,n);const x=t.target=Dp(t.props,v),C=t.targetAnchor=p("");x&&(h(C,x),o=o||u_(x));const T=(E,A)=>{y&16&&c(_,E,A,i,a,o,s,l)};m?T(r,w):x&&T(x,C)}else{t.el=e.el;const S=t.anchor=e.anchor,w=t.target=e.target,x=t.targetAnchor=e.targetAnchor,C=Pl(e.props),T=C?r:w,E=C?S:x;if(o=o||u_(w),b?(d(e.dynamicChildren,b,T,i,a,o,s),Gm(e,t,!0)):l||f(e,t,T,E,i,a,o,s,!1),m)C||cc(t,r,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const A=t.target=Dp(t.props,v);A&&cc(t,A,null,u,0)}else C&&cc(t,w,x,u,1)}JC(t)},remove(e,t,r,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=e;if(f&&a(c),(o||!Pl(d))&&(a(u),s&16))for(let h=0;h0?wn||ns:null,BI(),au>0&&wn&&wn.push(e),e}function ye(e,t,r,n,i,a){return eT(ae(e,t,r,n,i,a,!0))}function me(e,t,r,n,i){return eT(ee(e,t,r,n,i,!0))}function Ji(e){return e?e.__v_isVNode===!0:!1}function Ga(e,t){return e.type===t.type&&e.key===t.key}const $d="__vInternal",tT=({key:e})=>e??null,vf=({ref:e,ref_key:t,ref_for:r})=>e!=null?ze(e)||xt(e)||Le(e)?{i:jt,r:e,k:t,f:!!r}:e:null;function ae(e,t=null,r=null,n=0,i=null,a=e===yt?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tT(t),ref:t&&vf(t),scopeId:BC,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:jt};return s?(Um(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=ze(r)?8:16),au>0&&!o&&wn&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&wn.push(l),l}const ee=FI;function FI(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===GC)&&(e=Sr),Ji(e)){const s=gi(e,t,!0);return r&&Um(s,r),au>0&&!a&&wn&&(s.shapeFlag&6?wn[wn.indexOf(e)]=s:wn.push(s)),s.patchFlag|=-2,s}if(YI(e)&&(e=e.__vccOpts),t){t=$I(t);let{class:s,style:l}=t;s&&!ze(s)&&(t.class=le(s)),Ke(l)&&(CC(l)&&!be(l)&&(l=Xt({},l)),t.style=St(l))}const o=ze(e)?1:nI(e)?128:OI(e)?64:Ke(e)?4:Le(e)?2:0;return ae(e,t,r,n,i,o,a,!0)}function $I(e){return e?CC(e)||$d in e?Xt({},e):e:null}function gi(e,t,r=!1){const{props:n,ref:i,patchFlag:a,children:o}=e,s=t?So(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&tT(s),ref:t&&t.ref?r&&i?be(i)?i.concat(vf(t)):[i,vf(t)]:vf(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==yt?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&gi(e.ssContent),ssFallback:e.ssFallback&&gi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function Nt(e=" ",t=0){return ee(ks,null,e,t)}function ke(e="",t=!1){return t?(U(),me(Sr,null,e)):ee(Sr,null,e)}function Fn(e){return e==null||typeof e=="boolean"?ee(Sr):be(e)?ee(yt,null,e.slice()):typeof e=="object"?zi(e):ee(ks,null,String(e))}function zi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:gi(e)}function Um(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(be(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Um(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!($d in t)?t._ctx=jt:i===3&&jt&&(jt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Le(t)?(t={default:t,_ctx:jt},r=32):(t=String(t),n&64?(r=16,t=[Nt(t)]):r=8);e.children=t,e.shapeFlag|=r}function So(...e){const t={};for(let r=0;rzt||jt,ps=e=>{zt=e,e.scope.on()},io=()=>{zt&&zt.scope.off(),zt=null};function rT(e){return e.vnode.shapeFlag&4}let ou=!1;function VI(e,t=!1){ou=t;const{props:r,children:n}=e.vnode,i=rT(e);xI(e,r,i,t),MI(e,n);const a=i?GI(e,t):void 0;return ou=!1,a}function GI(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=TC(new Proxy(e.ctx,mI));const{setup:n}=r;if(n){const i=e.setupContext=n.length>1?iT(e):null;ps(e),Os();const a=Ki(n,e,0,[e.props,i]);if(Rs(),io(),Hf(a)){if(a.then(io,io),t)return a.then(o=>{f_(e,o,t)}).catch(o=>{Od(o,e,0)});e.asyncDep=a}else f_(e,a,t)}else nT(e,t)}function f_(e,t,r){Le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ke(t)&&(e.setupState=LC(t)),nT(e,r)}let d_;function nT(e,t,r){const n=e.type;if(!e.render){if(!t&&d_&&!n.render){const i=n.template||Wm(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Xt(Xt({isCustomElement:a,delimiters:s},o),l);n.render=d_(i,u)}}e.render=n.render||ur}ps(e),Os(),yI(e),Rs(),io()}function UI(e){return new Proxy(e.attrs,{get(t,r){return Hr(e,"get","$attrs"),t[r]}})}function iT(e){const t=n=>{e.exposed=n||{}};let r;return{get attrs(){return r||(r=UI(e))},slots:e.slots,emit:e.emit,expose:t}}function Hd(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(LC(TC(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in El)return El[r](e)},has(t,r){return r in t||r in El}}))}function jI(e,t=!0){return Le(e)?e.displayName||e.name:e.name||t&&e.__name}function YI(e){return Le(e)&&"__vccOpts"in e}const $=(e,t)=>UD(e,t,ou);function zd(){return qI().slots}function qI(){const e=dt();return e.setupContext||(e.setupContext=iT(e))}function Ce(e,t,r){const n=arguments.length;return n===2?Ke(t)&&!be(t)?Ji(t)?ee(e,null,[t]):ee(e,t):ee(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ji(r)&&(r=[r]),ee(e,t,r))}const KI=Symbol(""),XI=()=>Oe(KI),ZI="3.2.45",QI="http://www.w3.org/2000/svg",Ua=typeof document<"u"?document:null,h_=Ua&&Ua.createElement("template"),JI={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t?Ua.createElementNS(QI,e):Ua.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>Ua.createTextNode(e),createComment:e=>Ua.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ua.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{h_.innerHTML=n?`${e}`:e;const s=h_.content;if(n){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function eO(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function tO(e,t,r){const n=e.style,i=ze(r);if(r&&!i){for(const a in r)Ip(n,a,r[a]);if(t&&!ze(t))for(const a in t)r[a]==null&&Ip(n,a,"")}else{const a=n.display;i?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=a)}}const v_=/\s*!important$/;function Ip(e,t,r){if(be(r))r.forEach(n=>Ip(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=rO(e,t);v_.test(r)?e.setProperty(wo(n),r.replace(v_,""),"important"):e[n]=r}}const p_=["Webkit","Moz","ms"],Dh={};function rO(e,t){const r=Dh[t];if(r)return r;let n=An(t);if(n!=="filter"&&n in e)return Dh[t]=n;n=Ld(n);for(let i=0;iIh||(lO.then(()=>Ih=0),Ih=Date.now());function cO(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;rn(fO(n,r.value),t,5,[n])};return r.value=e,r.attached=uO(),r}function fO(e,t){if(be(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const y_=/^on[a-z]/,dO=(e,t,r,n,i=!1,a,o,s,l)=>{t==="class"?eO(e,n,i):t==="style"?tO(e,r,n):Ad(t)?Tm(t)||oO(e,t,r,n,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):hO(e,t,n,i))?iO(e,t,n,a,o,s,l):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),nO(e,t,n,i))};function hO(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&y_.test(t)&&Le(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||y_.test(t)&&ze(r)?!1:t in e}const Ei="transition",js="animation",Qn=(e,{slots:t})=>Ce($C,vO(e),t);Qn.displayName="Transition";const oT={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};Qn.props=Xt({},$C.props,oT);const ha=(e,t=[])=>{be(e)?e.forEach(r=>r(...t)):e&&e(...t)},__=e=>e?be(e)?e.some(t=>t.length>1):e.length>1:!1;function vO(e){const t={};for(const M in e)M in oT||(t[M]=e[M]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:d=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,v=pO(i),p=v&&v[0],g=v&&v[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:S,onBeforeAppear:w=m,onAppear:x=y,onAppearCancelled:C=_}=t,T=(M,D,R)=>{va(M,D?c:s),va(M,D?u:o),R&&R()},E=(M,D)=>{M._isLeaving=!1,va(M,f),va(M,h),va(M,d),D&&D()},A=M=>(D,R)=>{const k=M?x:y,F=()=>T(D,M,R);ha(k,[D,F]),b_(()=>{va(D,M?l:a),Pi(D,M?c:s),__(k)||w_(D,n,p,F)})};return Xt(t,{onBeforeEnter(M){ha(m,[M]),Pi(M,a),Pi(M,o)},onBeforeAppear(M){ha(w,[M]),Pi(M,l),Pi(M,u)},onEnter:A(!1),onAppear:A(!0),onLeave(M,D){M._isLeaving=!0;const R=()=>E(M,D);Pi(M,f),yO(),Pi(M,d),b_(()=>{M._isLeaving&&(va(M,f),Pi(M,h),__(b)||w_(M,n,g,R))}),ha(b,[M,R])},onEnterCancelled(M){T(M,!1),ha(_,[M])},onAppearCancelled(M){T(M,!0),ha(C,[M])},onLeaveCancelled(M){E(M),ha(S,[M])}})}function pO(e){if(e==null)return null;if(Ke(e))return[Oh(e.enter),Oh(e.leave)];{const t=Oh(e);return[t,t]}}function Oh(e){return Em(e)}function Pi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function va(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function b_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gO=0;function w_(e,t,r,n){const i=e._endId=++gO,a=()=>{i===e._endId&&n()};if(r)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=mO(e,t);if(!o)return n();const u=o+"end";let c=0;const f=()=>{e.removeEventListener(u,d),a()},d=h=>{h.target===e&&++c>=l&&f()};setTimeout(()=>{c(r[v]||"").split(", "),i=n(`${Ei}Delay`),a=n(`${Ei}Duration`),o=S_(i,a),s=n(`${js}Delay`),l=n(`${js}Duration`),u=S_(s,l);let c=null,f=0,d=0;t===Ei?o>0&&(c=Ei,f=o,d=a.length):t===js?u>0&&(c=js,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?Ei:js:null,d=c?c===Ei?a.length:l.length:0);const h=c===Ei&&/\b(transform|all)(,|$)/.test(n(`${Ei}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function S_(e,t){for(;e.lengthx_(r)+x_(e[n])))}function x_(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function yO(){return document.body.offsetHeight}const C_=e=>{const t=e.props["onUpdate:modelValue"]||!1;return be(t)?r=>hf(t,r):t},Uf={deep:!0,created(e,t,r){e._assign=C_(r),aT(e,"change",()=>{const n=e._modelValue,i=_O(e),a=e.checked,o=e._assign;if(be(n)){const s=uC(n,i),l=s!==-1;if(a&&!l)o(n.concat(i));else if(!a&&l){const u=[...n];u.splice(s,1),o(u)}}else if(Ed(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(sT(e,a))})},mounted:T_,beforeUpdate(e,t,r){e._assign=C_(r),T_(e,t,r)}};function T_(e,{value:t,oldValue:r},n){e._modelValue=t,be(t)?e.checked=uC(t,n.props.value)>-1:Ed(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=Md(t,sT(e,!0)))}function _O(e){return"_value"in e?e._value:e.value}function sT(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const bO=["ctrl","shift","alt","meta"],wO={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)=>bO.some(r=>e[`${r}Key`]&&!t.includes(r))},jf=(e,t)=>(r,...n)=>{for(let i=0;ir=>{if(!("key"in r))return;const n=wo(r.key);if(t.some(i=>i===n||SO[i]===n))return e(r)},mi={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Ys(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),Ys(e,!0),n.enter(e)):n.leave(e,()=>{Ys(e,!1)}):Ys(e,t))},beforeUnmount(e,{value:t}){Ys(e,t)}};function Ys(e,t){e.style.display=t?e._vod:"none"}const CO=Xt({patchProp:dO},JI);let M_;function lT(){return M_||(M_=LI(CO))}const A_=(...e)=>{lT().render(...e)},TO=(...e)=>{const t=lT().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=MO(n);if(!i)return;const a=t._component;!Le(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.innerHTML="";const o=r(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t};function MO(e){return ze(e)?document.querySelector(e):e}var AO=typeof global=="object"&&global&&global.Object===Object&&global;const uT=AO;var EO=typeof self=="object"&&self&&self.Object===Object&&self,PO=uT||EO||Function("return this")();const Pn=PO;var LO=Pn.Symbol;const sn=LO;var cT=Object.prototype,DO=cT.hasOwnProperty,IO=cT.toString,qs=sn?sn.toStringTag:void 0;function OO(e){var t=DO.call(e,qs),r=e[qs];try{e[qs]=void 0;var n=!0}catch{}var i=IO.call(e);return n&&(t?e[qs]=r:delete e[qs]),i}var RO=Object.prototype,kO=RO.toString;function NO(e){return kO.call(e)}var BO="[object Null]",FO="[object Undefined]",E_=sn?sn.toStringTag:void 0;function xo(e){return e==null?e===void 0?FO:BO:E_&&E_ in Object(e)?OO(e):NO(e)}function Kn(e){return e!=null&&typeof e=="object"}var $O="[object Symbol]";function Wd(e){return typeof e=="symbol"||Kn(e)&&xo(e)==$O}function fT(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r0){if(++t>=mR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function wR(e){return function(){return e}}var SR=function(){try{var e=To(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Yf=SR;var xR=Yf?function(e,t){return Yf(e,"toString",{configurable:!0,enumerable:!1,value:wR(t),writable:!0})}:jm;const CR=xR;var TR=bR(CR);const vT=TR;function MR(e,t){for(var r=-1,n=e==null?0:e.length;++r-1&&e%1==0&&e-1&&e%1==0&&e<=IR}function Ns(e){return e!=null&&Xm(e.length)&&!Ym(e)}function OR(e,t,r){if(!Mr(r))return!1;var n=typeof t;return(n=="number"?Ns(r)&&Vd(t,r.length):n=="string"&&t in r)?Bu(r[t],e):!1}function RR(e){return DR(function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,o=i>2?r[2]:void 0;for(a=e.length>3&&typeof a=="function"?(i--,a):void 0,o&&OR(r[0],r[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t);++n-1}function Xk(e,t){var r=this.__data__,n=Gd(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function xi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0&&r(s)?t>1?iy(s,t-1,r,n,i):ny(i,s):n||(i[i.length]=s)}return i}function vN(e){var t=e==null?0:e.length;return t?iy(e,1):[]}function pN(e){return vT(pT(e,void 0,vN),e+"")}var gN=bT(Object.getPrototypeOf,Object);const ay=gN;var mN="[object Object]",yN=Function.prototype,_N=Object.prototype,wT=yN.toString,bN=_N.hasOwnProperty,wN=wT.call(Object);function SN(e){if(!Kn(e)||xo(e)!=mN)return!1;var t=ay(e);if(t===null)return!0;var r=bN.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&wT.call(r)==wN}function Rp(){if(!arguments.length)return[];var e=arguments[0];return fr(e)?e:[e]}function xN(){this.__data__=new xi,this.size=0}function CN(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function TN(e){return this.__data__.get(e)}function MN(e){return this.__data__.has(e)}var AN=200;function EN(e,t){var r=this.__data__;if(r instanceof xi){var n=r.__data__;if(!cu||n.lengths))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,h=r&fF?new Kf:void 0;for(a.set(e,t),a.set(t,e);++f=t||x<0||f&&C>=a}function m(){var w=Bh();if(g(w))return y(w);s=setTimeout(m,p(w))}function y(w){return s=void 0,d&&n?h(w):(n=i=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function b(){return s===void 0?o:y(Bh())}function S(){var w=Bh(),x=g(w);if(n=arguments,i=this,l=w,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 S.cancel=_,S.flush=b,S}function $p(e,t,r){(r!==void 0&&!Bu(e[t],r)||r===void 0&&!(t in e))&&qm(e,t,r)}function a$(e){return Kn(e)&&Ns(e)}function Hp(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function o$(e){return Fu(e,Hu(e))}function s$(e,t,r,n,i,a,o){var s=Hp(e,r),l=Hp(t,r),u=o.get(l);if(u){$p(e,r,u);return}var c=a?a(s,l,r+"",e,t,o):void 0,f=c===void 0;if(f){var d=fr(l),h=!d&&lu(l),v=!d&&!h&&Jm(l);c=l,d||h||v?fr(s)?c=s:a$(s)?c=hT(s):h?(f=!1,c=xT(l,!0)):v?(f=!1,c=AT(l,!0)):c=[]:SN(l)||su(l)?(c=s,su(s)?c=o$(s):(!Mr(s)||Ym(s))&&(c=ET(l))):f=!1}f&&(o.set(l,c),i(c,l,n,a,o),o.delete(l)),$p(e,r,c)}function BT(e,t,r,n,i){e!==t&&NT(t,function(a,o){if(i||(i=new Mn),Mr(a))s$(e,t,o,r,BT,n,i);else{var s=n?n(Hp(e,o),a,o+"",e,t,i):void 0;s===void 0&&(s=a),$p(e,o,s)}},Hu)}function l$(e,t){var r=-1,n=Ns(e)?Array(e.length):[];return e$(e,function(i,a,o){n[++r]=t(i,a,o)}),n}function u$(e,t){var r=fr(e)?fT:l$;return r(e,qF(t))}function c$(e,t){return iy(u$(e,t),1)}function f$(e){for(var t=-1,r=e==null?0:e.length,n={};++ti=>{const a=e==null?void 0:e(i);if(r===!1||!a)return t==null?void 0:t(i)};var ab;const Ot=typeof window<"u",Br=e=>typeof e=="boolean",_$=e=>typeof e=="function",Yt=e=>typeof e=="number",b$=e=>typeof e=="string",zp=()=>{};Ot&&((ab=window==null?void 0:window.navigator)!=null&&ab.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ho(e){return typeof e=="function"?e():P(e)}function HT(e,t){function r(...n){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(a)})}return r}const zT=e=>e();function w$(e,t={}){let r,n,i=zp;const a=s=>{clearTimeout(s),i(),i=zp};return s=>{const l=ho(e),u=ho(t.maxWait);return r&&a(r),l<=0||u!==void 0&&u<=0?(n&&(a(n),n=null),Promise.resolve(s())):new Promise((c,f)=>{i=t.rejectOnCancel?f:c,u&&!n&&(n=setTimeout(()=>{r&&a(r),n=null,c(s())},u)),r=setTimeout(()=>{n&&a(n),n=null,c(s())},l)})}}function S$(e=zT){const t=H(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...a)=>{t.value&&e(...a)};return{isActive:ku(t),pause:r,resume:n,eventFilter:i}}function x$(e){return e}function Wu(e){return vD()?(pD(e),!0):!1}function C$(e,t=200,r={}){return HT(w$(t,r),e)}function T$(e,t=200,r={}){const n=H(e.value),i=C$(()=>{n.value=e.value},t,r);return xe(e,()=>i()),n}function M$(e){return typeof e=="function"?$(e):H(e)}function WT(e,t=!0){dt()?Mt(e):t?e():Rt(e)}function Wp(e,t,r={}){const{immediate:n=!0}=r,i=H(!1);let a=null;function o(){a&&(clearTimeout(a),a=null)}function s(){i.value=!1,o()}function l(...u){o(),i.value=!0,a=setTimeout(()=>{i.value=!1,a=null,e(...u)},ho(t))}return n&&(i.value=!0,Ot&&l()),Wu(s),{isPending:ku(i),start:l,stop:s}}function A$(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,i=xt(e),a=H(e);function o(s){if(arguments.length)return a.value=s,a.value;{const l=ho(r);return a.value=a.value===l?ho(n):l,a.value}}return i?o:[a,o]}var ob=Object.getOwnPropertySymbols,E$=Object.prototype.hasOwnProperty,P$=Object.prototype.propertyIsEnumerable,L$=(e,t)=>{var r={};for(var n in e)E$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ob)for(var n of ob(e))t.indexOf(n)<0&&P$.call(e,n)&&(r[n]=e[n]);return r};function D$(e,t,r={}){const n=r,{eventFilter:i=zT}=n,a=L$(n,["eventFilter"]);return xe(e,HT(i,t),a)}var I$=Object.defineProperty,O$=Object.defineProperties,R$=Object.getOwnPropertyDescriptors,Zf=Object.getOwnPropertySymbols,VT=Object.prototype.hasOwnProperty,GT=Object.prototype.propertyIsEnumerable,sb=(e,t,r)=>t in e?I$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,k$=(e,t)=>{for(var r in t||(t={}))VT.call(t,r)&&sb(e,r,t[r]);if(Zf)for(var r of Zf(t))GT.call(t,r)&&sb(e,r,t[r]);return e},N$=(e,t)=>O$(e,R$(t)),B$=(e,t)=>{var r={};for(var n in e)VT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Zf)for(var n of Zf(e))t.indexOf(n)<0&>.call(e,n)&&(r[n]=e[n]);return r};function F$(e,t,r={}){const n=r,{eventFilter:i}=n,a=B$(n,["eventFilter"]),{eventFilter:o,pause:s,resume:l,isActive:u}=S$(i);return{stop:D$(e,t,N$(k$({},a),{eventFilter:o})),pause:s,resume:l,isActive:u}}function Vi(e){var t;const r=ho(e);return(t=r==null?void 0:r.$el)!=null?t:r}const ea=Ot?window:void 0;function Sn(...e){let t,r,n,i;if(b$(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=ea):[t,r,n,i]=e,!t)return zp;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,f,d)=>(c.addEventListener(f,d,i),()=>c.removeEventListener(f,d,i)),l=xe(()=>Vi(t),c=>{o(),c&&a.push(...r.flatMap(f=>n.map(d=>s(c,f,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Wu(u),u}function $$(e,t,r={}){const{window:n=ea,ignore:i=[],capture:a=!0,detectIframe:o=!1}=r;if(!n)return;let s=!0,l;const u=h=>i.some(v=>{if(typeof v=="string")return Array.from(n.document.querySelectorAll(v)).some(p=>p===h.target||h.composedPath().includes(p));{const p=Vi(v);return p&&(h.target===p||h.composedPath().includes(p))}}),c=h=>{n.clearTimeout(l);const v=Vi(e);if(!(!v||v===h.target||h.composedPath().includes(v))){if(h.detail===0&&(s=!u(h)),!s){s=!0;return}t(h)}},f=[Sn(n,"click",c,{passive:!0,capture:a}),Sn(n,"pointerdown",h=>{const v=Vi(e);v&&(s=!h.composedPath().includes(v)&&!u(h))},{passive:!0}),Sn(n,"pointerup",h=>{if(h.button===0){const v=h.composedPath();h.composedPath=()=>v,l=n.setTimeout(()=>c(h),50)}},{passive:!0}),o&&Sn(n,"blur",h=>{var v;const p=Vi(e);((v=n.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!(p!=null&&p.contains(n.document.activeElement))&&t(h)})].filter(Boolean);return()=>f.forEach(h=>h())}function UT(e,t=!1){const r=H(),n=()=>r.value=Boolean(e());return n(),WT(n,t),r}function H$(e,t={}){const{window:r=ea}=t,n=UT(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const a=H(!1),o=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",s):i.removeListener(s))},s=()=>{n.value&&(o(),i=r.matchMedia(M$(e).value),a.value=i.matches,"addEventListener"in i?i.addEventListener("change",s):i.addListener(s))};return no(s),Wu(()=>o()),a}const Vp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Gp="__vueuse_ssr_handlers__";Vp[Gp]=Vp[Gp]||{};const z$=Vp[Gp];function jT(e,t){return z$[e]||t}function W$(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var V$=Object.defineProperty,lb=Object.getOwnPropertySymbols,G$=Object.prototype.hasOwnProperty,U$=Object.prototype.propertyIsEnumerable,ub=(e,t,r)=>t in e?V$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,cb=(e,t)=>{for(var r in t||(t={}))G$.call(t,r)&&ub(e,r,t[r]);if(lb)for(var r of lb(t))U$.call(t,r)&&ub(e,r,t[r]);return e};const j$={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}};function Y$(e,t,r,n={}){var i;const{flush:a="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:l=!0,mergeDefaults:u=!1,shallow:c,window:f=ea,eventFilter:d,onError:h=x=>{console.error(x)}}=n,v=(c?EC:H)(t);if(!r)try{r=jT("getDefaultStorage",()=>{var x;return(x=ea)==null?void 0:x.localStorage})()}catch(x){h(x)}if(!r)return v;const p=ho(t),g=W$(p),m=(i=n.serializer)!=null?i:j$[g],{pause:y,resume:_}=F$(v,()=>b(v.value),{flush:a,deep:o,eventFilter:d});return f&&s&&Sn(f,"storage",w),w(),v;function b(x){try{if(x==null)r.removeItem(e);else{const C=m.write(x),T=r.getItem(e);T!==C&&(r.setItem(e,C),f&&(f==null||f.dispatchEvent(new StorageEvent("storage",{key:e,oldValue:T,newValue:C,storageArea:r}))))}}catch(C){h(C)}}function S(x){const C=x?x.newValue:r.getItem(e);if(C==null)return l&&p!==null&&r.setItem(e,m.write(p)),p;if(!x&&u){const T=m.read(C);return _$(u)?u(T,p):g==="object"&&!Array.isArray(T)?cb(cb({},p),T):T}else return typeof C!="string"?C:m.read(C)}function w(x){if(!(x&&x.storageArea!==r)){if(x&&x.key==null){v.value=p;return}if(!(x&&x.key!==e)){y();try{v.value=S(x)}catch(C){h(C)}finally{x?Rt(_):_()}}}}}function YT(e){return H$("(prefers-color-scheme: dark)",e)}var q$=Object.defineProperty,fb=Object.getOwnPropertySymbols,K$=Object.prototype.hasOwnProperty,X$=Object.prototype.propertyIsEnumerable,db=(e,t,r)=>t in e?q$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z$=(e,t)=>{for(var r in t||(t={}))K$.call(t,r)&&db(e,r,t[r]);if(fb)for(var r of fb(t))X$.call(t,r)&&db(e,r,t[r]);return e};function Q$(e={}){const{selector:t="html",attribute:r="class",initialValue:n="auto",window:i=ea,storage:a,storageKey:o="vueuse-color-scheme",listenToStorageChanges:s=!0,storageRef:l,emitAuto:u}=e,c=Z$({auto:"",light:"light",dark:"dark"},e.modes||{}),f=YT({window:i}),d=$(()=>f.value?"dark":"light"),h=l||(o==null?H(n):Y$(o,n,a,{window:i,listenToStorageChanges:s})),v=$({get(){return h.value==="auto"&&!u?d.value:h.value},set(y){h.value=y}}),p=jT("updateHTMLAttrs",(y,_,b)=>{const S=i==null?void 0:i.document.querySelector(y);if(S)if(_==="class"){const w=b.split(/\s/g);Object.values(c).flatMap(x=>(x||"").split(/\s/g)).filter(Boolean).forEach(x=>{w.includes(x)?S.classList.add(x):S.classList.remove(x)})}else S.setAttribute(_,b)});function g(y){var _;const b=y==="auto"?d.value:y;p(t,r,(_=c[b])!=null?_:b)}function m(y){e.onChanged?e.onChanged(y,g):g(y)}return xe(v,m,{flush:"post",immediate:!0}),u&&xe(d,()=>m(v.value),{flush:"post"}),WT(()=>m(v.value)),v}var J$=Object.defineProperty,e5=Object.defineProperties,t5=Object.getOwnPropertyDescriptors,hb=Object.getOwnPropertySymbols,r5=Object.prototype.hasOwnProperty,n5=Object.prototype.propertyIsEnumerable,vb=(e,t,r)=>t in e?J$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,i5=(e,t)=>{for(var r in t||(t={}))r5.call(t,r)&&vb(e,r,t[r]);if(hb)for(var r of hb(t))n5.call(t,r)&&vb(e,r,t[r]);return e},a5=(e,t)=>e5(e,t5(t));function o5(e={}){const{valueDark:t="dark",valueLight:r="",window:n=ea}=e,i=Q$(a5(i5({},e),{onChanged:(s,l)=>{var u;e.onChanged?(u=e.onChanged)==null||u.call(e,s==="dark"):l(s)},modes:{dark:t,light:r}})),a=YT({window:n});return $({get(){return i.value==="dark"},set(s){s===a.value?i.value="auto":i.value=s?"dark":"light"}})}var pb=Object.getOwnPropertySymbols,s5=Object.prototype.hasOwnProperty,l5=Object.prototype.propertyIsEnumerable,u5=(e,t)=>{var r={};for(var n in e)s5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&pb)for(var n of pb(e))t.indexOf(n)<0&&l5.call(e,n)&&(r[n]=e[n]);return r};function ms(e,t,r={}){const n=r,{window:i=ea}=n,a=u5(n,["window"]);let o;const s=UT(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=xe(()=>Vi(e),f=>{l(),s.value&&i&&f&&(o=new ResizeObserver(t),o.observe(f,a))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return Wu(c),{isSupported:s,stop:c}}var gb;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(gb||(gb={}));var c5=Object.defineProperty,mb=Object.getOwnPropertySymbols,f5=Object.prototype.hasOwnProperty,d5=Object.prototype.propertyIsEnumerable,yb=(e,t,r)=>t in e?c5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h5=(e,t)=>{for(var r in t||(t={}))f5.call(t,r)&&yb(e,r,t[r]);if(mb)for(var r of mb(t))d5.call(t,r)&&yb(e,r,t[r]);return e};const v5={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]};h5({linear:x$},v5);const Qf=e=>e===void 0,ys=e=>typeof Element>"u"?!1:e instanceof Element,p5=e=>ze(e)?!Number.isNaN(Number(e)):!1,_b=e=>Object.keys(e),mf=(e,t,r)=>({get value(){return fu(e,t,r)},set value(n){y$(e,t,n)}});class g5 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function ta(e,t){throw new g5(`[${e}] ${t}`)}const qT=(e="")=>e.split(" ").filter(t=>!!t.trim()),Il=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Zo=(e,t)=>{!e||!t.trim()||e.classList.add(...qT(t))},ss=(e,t)=>{!e||!t.trim()||e.classList.remove(...qT(t))},bb=(e,t)=>{var r;if(!Ot||!e||!t)return"";let n=An(t);n==="float"&&(n="cssFloat");try{const i=e.style[n];if(i)return i;const a=(r=document.defaultView)==null?void 0:r.getComputedStyle(e,"");return a?a[n]:""}catch{return e.style[n]}};function vo(e,t="px"){if(!e)return"";if(Yt(e)||p5(e))return`${e}${t}`;if(ze(e))return e}/*! Element Plus Icons Vue v2.0.10 */var Jn=(e,t)=>{let r=e.__vccOpts||e;for(let[n,i]of t)r[n]=i;return r},m5={name:"ArrowDown"},y5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_5=ae("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),b5=[_5];function w5(e,t,r,n,i,a){return U(),ye("svg",y5,b5)}var KT=Jn(m5,[["render",w5],["__file","arrow-down.vue"]]),S5={name:"ArrowRight"},x5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},C5=ae("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),T5=[C5];function M5(e,t,r,n,i,a){return U(),ye("svg",x5,T5)}var uy=Jn(S5,[["render",M5],["__file","arrow-right.vue"]]),A5={name:"ArrowUp"},E5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},P5=ae("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),L5=[P5];function D5(e,t,r,n,i,a){return U(),ye("svg",E5,L5)}var I5=Jn(A5,[["render",D5],["__file","arrow-up.vue"]]),O5={name:"CircleCloseFilled"},R5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},k5=ae("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),N5=[k5];function B5(e,t,r,n,i,a){return U(),ye("svg",R5,N5)}var XT=Jn(O5,[["render",B5],["__file","circle-close-filled.vue"]]),F5={name:"Close"},$5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},H5=ae("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),z5=[H5];function W5(e,t,r,n,i,a){return U(),ye("svg",$5,z5)}var Up=Jn(F5,[["render",W5],["__file","close.vue"]]),V5={name:"InfoFilled"},G5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},U5=ae("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),j5=[U5];function Y5(e,t,r,n,i,a){return U(),ye("svg",G5,j5)}var ZT=Jn(V5,[["render",Y5],["__file","info-filled.vue"]]),q5={name:"Loading"},K5={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},X5=ae("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),Z5=[X5];function Q5(e,t,r,n,i,a){return U(),ye("svg",K5,Z5)}var cy=Jn(q5,[["render",Q5],["__file","loading.vue"]]),J5={name:"More"},e3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},t3=ae("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),r3=[t3];function n3(e,t,r,n,i,a){return U(),ye("svg",e3,r3)}var i3=Jn(J5,[["render",n3],["__file","more.vue"]]),a3={name:"SuccessFilled"},o3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},s3=ae("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),l3=[s3];function u3(e,t,r,n,i,a){return U(),ye("svg",o3,l3)}var QT=Jn(a3,[["render",u3],["__file","success-filled.vue"]]),c3={name:"WarningFilled"},f3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},d3=ae("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),h3=[d3];function v3(e,t,r,n,i,a){return U(),ye("svg",f3,h3)}var JT=Jn(c3,[["render",v3],["__file","warning-filled.vue"]]);const eM="__epPropKey",Pe=e=>e,p3=e=>Ke(e)&&!!e[eM],qd=(e,t)=>{if(!Ke(e)||p3(e))return e;const{values:r,required:n,default:i,type:a,validator:o}=e,l={type:a,required:!!n,validator:r||o?u=>{let c=!1,f=[];if(r&&(f=Array.from(r),Ve(e,"default")&&f.push(i),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(", ");jD(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[eM]:!0};return Ve(e,"default")&&(l.default=i),l},rt=e=>f$(Object.entries(e).map(([t,r])=>[t,qd(r,t)])),Wn=Pe([String,Object,Function]),g3={Close:Up,SuccessFilled:QT,InfoFilled:ZT,WarningFilled:JT,CircleCloseFilled:XT},wb={success:QT,warning:JT,error:XT,info:ZT},hr=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e},m3=(e,t)=>(e.install=r=>{e._context=r._context,r.config.globalProperties[t]=e},e),y3=(e,t)=>(e.install=r=>{r.directive(t,e)},e),la=e=>(e.install=ur,e),Lt={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},po="update:modelValue",jp="change",Yp="input",Vu=["","default","small","large"],_3=e=>["",...Vu].includes(e),yf=e=>{const t=be(e)?e:[e],r=[];return t.forEach(n=>{var i;be(n)?r.push(...yf(n)):Ji(n)&&be(n.children)?r.push(...yf(n.children)):(r.push(n),Ji(n)&&((i=n.component)!=null&&i.subTree)&&r.push(...yf(n.component.subTree)))}),r},ja=e=>e,tM=Symbol("buttonGroupContextKey"),Bs=Symbol("checkboxGroupContextKey"),rM=Symbol(),Fs=Symbol("formContextKey"),go=Symbol("formItemContextKey"),nM=Symbol("rowContextKey"),iM=Symbol("scrollbarContextKey"),fy=Symbol("popper"),aM=Symbol("popperContent"),dy=Symbol("elTooltip"),oM=e=>{const t=dt();return $(()=>{var r,n;return(n=((r=t.proxy)==null?void 0:r.$props)[e])!=null?n:void 0})},Jf=H();function ua(e,t=void 0){const r=dt()?Oe(rM,Jf):Jf;return e?$(()=>{var n,i;return(i=(n=r.value)==null?void 0:n[e])!=null?i:t}):r}const b3=(e,t,r=!1)=>{var n;const i=!!dt(),a=i?ua():void 0,o=(n=t==null?void 0:t.provide)!=null?n:i?Tt:void 0;if(!o)return;const s=$(()=>{const l=P(e);return a!=null&&a.value?w3(a.value,l):l});return o(rM,s),(r||!Jf.value)&&(Jf.value=s.value),s},w3=(e,t)=>{var r;const n=[...new Set([..._b(e),..._b(t)])],i={};for(const a of n)i[a]=(r=t[a])!=null?r:e[a];return i},Kd=qd({type:String,values:Vu,required:!1}),ra=(e,t={})=>{const r=H(void 0),n=t.prop?r:oM("size"),i=t.global?r:ua("size"),a=t.form?{size:void 0}:Oe(Fs,void 0),o=t.formItem?{size:void 0}:Oe(go,void 0);return $(()=>n.value||P(e)||(o==null?void 0:o.size)||(a==null?void 0:a.size)||i.value||"")},Xd=e=>{const t=oM("disabled"),r=Oe(Fs,void 0);return $(()=>t.value||P(e)||(r==null?void 0:r.disabled)||!1)},sM=({from:e,replacement:t,scope:r,version:n,ref:i,type:a="API"},o)=>{xe(()=>P(o),s=>{},{immediate:!0})},hy="el",S3="is-",pa=(e,t,r,n,i)=>{let a=`${e}-${t}`;return r&&(a+=`-${r}`),n&&(a+=`__${n}`),i&&(a+=`--${i}`),a},Be=e=>{const t=ua("namespace",hy);return{namespace:t,b:(v="")=>pa(t.value,e,v,"",""),e:v=>v?pa(t.value,e,"",v,""):"",m:v=>v?pa(t.value,e,"","",v):"",be:(v,p)=>v&&p?pa(t.value,e,v,p,""):"",em:(v,p)=>v&&p?pa(t.value,e,"",v,p):"",bm:(v,p)=>v&&p?pa(t.value,e,v,"",p):"",bem:(v,p,g)=>v&&p&&g?pa(t.value,e,v,p,g):"",is:(v,...p)=>{const g=p.length>=1?p[0]:!0;return v&&g?`${S3}${v}`:""},cssVar:v=>{const p={};for(const g in v)v[g]&&(p[`--${t.value}-${g}`]=v[g]);return p},cssVarName:v=>`--${t.value}-${v}`,cssVarBlock:v=>{const p={};for(const g in v)v[g]&&(p[`--${t.value}-${e}-${g}`]=v[g]);return p},cssVarBlockName:v=>`--${t.value}-${e}-${v}`}},Sb={prefix:Math.floor(Math.random()*1e4),current:0},x3=Symbol("elIdInjection"),lM=()=>dt()?Oe(x3,Sb):Sb,vy=e=>{const t=lM(),r=ua("namespace",hy);return $(()=>P(e)||`${r.value}-id-${t.prefix}-${t.current++}`)},Gu=()=>{const e=Oe(Fs,void 0),t=Oe(go,void 0);return{form:e,formItem:t}},py=(e,{formItemContext:t,disableIdGeneration:r,disableIdManagement:n})=>{r||(r=H(!1)),n||(n=H(!1));const i=H();let a;const o=$(()=>{var s;return!!(!e.label&&t&&t.inputIds&&((s=t.inputIds)==null?void 0:s.length)<=1)});return Mt(()=>{a=xe([Tn(e,"id"),r],([s,l])=>{const u=s??(l?void 0:vy().value);u!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(n!=null&&n.value)&&!l&&u&&t.addInputId(u)),i.value=u)},{immediate:!0})}),Nu(()=>{a&&a(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}};var C3={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const T3=e=>(t,r)=>M3(t,r,P(e)),M3=(e,t,r)=>fu(r,e,e).replace(/\{(\w+)\}/g,(n,i)=>{var a;return`${(a=t==null?void 0:t[i])!=null?a:`{${i}}`}`}),A3=e=>{const t=$(()=>P(e).name),r=xt(e)?e:H(e);return{lang:t,locale:r,t:T3(e)}},uM=()=>{const e=ua("locale");return A3($(()=>e.value||C3))},E3=qd({type:Pe(Boolean),default:null}),P3=qd({type:Pe(Function)}),L3=e=>{const t=`update:${e}`,r=`onUpdate:${e}`,n=[t],i={[e]:E3,[r]:P3};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=dt(),{emit:h}=d,v=d.props,p=$(()=>Le(v[r])),g=$(()=>v[e]===null),m=x=>{o.value!==!0&&(o.value=!0,s&&(s.value=x),Le(c)&&c(x))},y=x=>{o.value!==!1&&(o.value=!1,s&&(s.value=x),Le(f)&&f(x))},_=x=>{if(v.disabled===!0||Le(u)&&!u())return;const C=p.value&&Ot;C&&h(t,!0),(g.value||!C)&&m(x)},b=x=>{if(v.disabled===!0||!Ot)return;const C=p.value&&Ot;C&&h(t,!1),(g.value||!C)&&y(x)},S=x=>{Br(x)&&(v.disabled&&x?p.value&&h(t,!1):o.value!==x&&(x?m():y()))},w=()=>{o.value?b():_()};return xe(()=>v[e],S),l&&d.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&b()}),Mt(()=>{S(v[e])}),{hide:b,show:_,toggle:w,hasUpdateHandler:p}},useModelToggleProps:i,useModelToggleEmits:n}};var xr="top",ln="bottom",un="right",Cr="left",gy="auto",Uu=[xr,ln,un,Cr],_s="start",hu="end",D3="clippingParents",cM="viewport",Ks="popper",I3="reference",xb=Uu.reduce(function(e,t){return e.concat([t+"-"+_s,t+"-"+hu])},[]),my=[].concat(Uu,[gy]).reduce(function(e,t){return e.concat([t,t+"-"+_s,t+"-"+hu])},[]),O3="beforeRead",R3="read",k3="afterRead",N3="beforeMain",B3="main",F3="afterMain",$3="beforeWrite",H3="write",z3="afterWrite",W3=[O3,R3,k3,N3,B3,F3,$3,H3,z3];function Xn(e){return e?(e.nodeName||"").toLowerCase():null}function Ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function bs(e){var t=Ln(e).Element;return e instanceof t||e instanceof Element}function an(e){var t=Ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function yy(e){if(typeof ShadowRoot>"u")return!1;var t=Ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function V3(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!an(a)||!Xn(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function G3(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(l,u){return l[u]="",l},{});!an(i)||!Xn(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}var fM={name:"applyStyles",enabled:!0,phase:"write",fn:V3,effect:G3,requires:["computeStyles"]};function Yn(e){return e.split("-")[0]}var ao=Math.max,ed=Math.min,ws=Math.round;function Ss(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),n=1,i=1;if(an(e)&&t){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(n=ws(r.width)/o||1),a>0&&(i=ws(r.height)/a||1)}return{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function _y(e){var t=Ss(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function dM(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&yy(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function yi(e){return Ln(e).getComputedStyle(e)}function U3(e){return["table","td","th"].indexOf(Xn(e))>=0}function ca(e){return((bs(e)?e.ownerDocument:e.document)||window.document).documentElement}function Zd(e){return Xn(e)==="html"?e:e.assignedSlot||e.parentNode||(yy(e)?e.host:null)||ca(e)}function Cb(e){return!an(e)||yi(e).position==="fixed"?null:e.offsetParent}function j3(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&an(e)){var n=yi(e);if(n.position==="fixed")return null}var i=Zd(e);for(yy(i)&&(i=i.host);an(i)&&["html","body"].indexOf(Xn(i))<0;){var a=yi(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function ju(e){for(var t=Ln(e),r=Cb(e);r&&U3(r)&&yi(r).position==="static";)r=Cb(r);return r&&(Xn(r)==="html"||Xn(r)==="body"&&yi(r).position==="static")?t:r||j3(e)||t}function by(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ol(e,t,r){return ao(e,ed(t,r))}function Y3(e,t,r){var n=Ol(e,t,r);return n>r?r:n}function hM(){return{top:0,right:0,bottom:0,left:0}}function vM(e){return Object.assign({},hM(),e)}function pM(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var q3=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,vM(typeof e!="number"?e:pM(e,Uu))};function K3(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Yn(r.placement),l=by(s),u=[Cr,un].indexOf(s)>=0,c=u?"height":"width";if(!(!a||!o)){var f=q3(i.padding,r),d=_y(a),h=l==="y"?xr:Cr,v=l==="y"?ln:un,p=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],g=o[l]-r.rects.reference[l],m=ju(a),y=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,_=p/2-g/2,b=f[h],S=y-d[c]-f[v],w=y/2-d[c]/2+_,x=Ol(b,w,S),C=l;r.modifiersData[n]=(t={},t[C]=x,t.centerOffset=x-w,t)}}function X3(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!dM(t.elements.popper,i)||(t.elements.arrow=i))}var Z3={name:"arrow",enabled:!0,phase:"main",fn:K3,effect:X3,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function xs(e){return e.split("-")[1]}var Q3={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J3(e){var t=e.x,r=e.y,n=window,i=n.devicePixelRatio||1;return{x:ws(t*i)/i||0,y:ws(r*i)/i||0}}function Tb(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,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"),y=o.hasOwnProperty("y"),_=Cr,b=xr,S=window;if(u){var w=ju(r),x="clientHeight",C="clientWidth";if(w===Ln(r)&&(w=ca(r),yi(w).position!=="static"&&s==="absolute"&&(x="scrollHeight",C="scrollWidth")),w=w,i===xr||(i===Cr||i===un)&&a===hu){b=ln;var T=f&&w===S&&S.visualViewport?S.visualViewport.height:w[x];p-=T-n.height,p*=l?1:-1}if(i===Cr||(i===xr||i===ln)&&a===hu){_=un;var E=f&&w===S&&S.visualViewport?S.visualViewport.width:w[C];h-=E-n.width,h*=l?1:-1}}var A=Object.assign({position:s},u&&Q3),M=c===!0?J3({x:h,y:p}):{x:h,y:p};if(h=M.x,p=M.y,l){var D;return Object.assign({},A,(D={},D[b]=y?"0":"",D[_]=m?"0":"",D.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",D))}return Object.assign({},A,(t={},t[b]=y?p+"px":"",t[_]=m?h+"px":"",t.transform="",t))}function e4(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:Yn(t.placement),variation:xs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Tb(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,Tb(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 gM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:e4,data:{}},dc={passive:!0};function t4(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,l=Ln(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,dc)}),s&&l.addEventListener("resize",r.update,dc),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,dc)}),s&&l.removeEventListener("resize",r.update,dc)}}var mM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:t4,data:{}},r4={left:"right",right:"left",bottom:"top",top:"bottom"};function _f(e){return e.replace(/left|right|bottom|top/g,function(t){return r4[t]})}var n4={start:"end",end:"start"};function Mb(e){return e.replace(/start|end/g,function(t){return n4[t]})}function wy(e){var t=Ln(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Sy(e){return Ss(ca(e)).left+wy(e).scrollLeft}function i4(e){var t=Ln(e),r=ca(e),n=t.visualViewport,i=r.clientWidth,a=r.clientHeight,o=0,s=0;return n&&(i=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=n.offsetLeft,s=n.offsetTop)),{width:i,height:a,x:o+Sy(e),y:s}}function a4(e){var t,r=ca(e),n=wy(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=ao(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=ao(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+Sy(e),l=-n.scrollTop;return yi(i||r).direction==="rtl"&&(s+=ao(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function xy(e){var t=yi(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function yM(e){return["html","body","#document"].indexOf(Xn(e))>=0?e.ownerDocument.body:an(e)&&xy(e)?e:yM(Zd(e))}function Rl(e,t){var r;t===void 0&&(t=[]);var n=yM(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Ln(n),o=i?[a].concat(a.visualViewport||[],xy(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Rl(Zd(o)))}function qp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function o4(e){var t=Ss(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 Ab(e,t){return t===cM?qp(i4(e)):bs(t)?o4(t):qp(a4(ca(e)))}function s4(e){var t=Rl(Zd(e)),r=["absolute","fixed"].indexOf(yi(e).position)>=0,n=r&&an(e)?ju(e):e;return bs(n)?t.filter(function(i){return bs(i)&&dM(i,n)&&Xn(i)!=="body"}):[]}function l4(e,t,r){var n=t==="clippingParents"?s4(e):[].concat(t),i=[].concat(n,[r]),a=i[0],o=i.reduce(function(s,l){var u=Ab(e,l);return s.top=ao(u.top,s.top),s.right=ed(u.right,s.right),s.bottom=ed(u.bottom,s.bottom),s.left=ao(u.left,s.left),s},Ab(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function _M(e){var t=e.reference,r=e.element,n=e.placement,i=n?Yn(n):null,a=n?xs(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case xr:l={x:o,y:t.y-r.height};break;case ln:l={x:o,y:t.y+t.height};break;case un:l={x:t.x+t.width,y:s};break;case Cr:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?by(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case _s:l[u]=l[u]-(t[c]/2-r[c]/2);break;case hu:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function vu(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.boundary,o=a===void 0?D3:a,s=r.rootBoundary,l=s===void 0?cM:s,u=r.elementContext,c=u===void 0?Ks:u,f=r.altBoundary,d=f===void 0?!1:f,h=r.padding,v=h===void 0?0:h,p=vM(typeof v!="number"?v:pM(v,Uu)),g=c===Ks?I3:Ks,m=e.rects.popper,y=e.elements[d?g:c],_=l4(bs(y)?y:y.contextElement||ca(e.elements.popper),o,l),b=Ss(e.elements.reference),S=_M({reference:b,element:m,strategy:"absolute",placement:i}),w=qp(Object.assign({},m,S)),x=c===Ks?w:b,C={top:_.top-x.top+p.top,bottom:x.bottom-_.bottom+p.bottom,left:_.left-x.left+p.left,right:x.right-_.right+p.right},T=e.modifiersData.offset;if(c===Ks&&T){var E=T[i];Object.keys(C).forEach(function(A){var M=[un,ln].indexOf(A)>=0?1:-1,D=[xr,ln].indexOf(A)>=0?"y":"x";C[A]+=E[D]*M})}return C}function u4(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?my:l,c=xs(n),f=c?s?xb:xb.filter(function(v){return xs(v)===c}):Uu,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]=vu(e,{placement:p,boundary:i,rootBoundary:a,padding:o})[Yn(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function c4(e){if(Yn(e)===gy)return[];var t=_f(e);return[Mb(e),t,Mb(t)]}function f4(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,p=r.allowedAutoPlacements,g=t.options.placement,m=Yn(g),y=m===g,_=l||(y||!v?[_f(g)]:c4(g)),b=[g].concat(_).reduce(function(Ee,V){return Ee.concat(Yn(V)===gy?u4(t,{placement:V,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:p}):V)},[]),S=t.rects.reference,w=t.rects.popper,x=new Map,C=!0,T=b[0],E=0;E=0,k=R?"width":"height",F=vu(t,{placement:A,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),K=R?D?un:Cr:D?ln:xr;S[k]>w[k]&&(K=_f(K));var B=_f(K),N=[];if(a&&N.push(F[M]<=0),s&&N.push(F[K]<=0,F[B]<=0),N.every(function(Ee){return Ee})){T=A,C=!1;break}x.set(A,N)}if(C)for(var j=v?3:1,re=function(Ee){var V=b.find(function(J){var W=x.get(J);if(W)return W.slice(0,Ee).every(function(Y){return Y})});if(V)return T=V,"break"},oe=j;oe>0;oe--){var _e=re(oe);if(_e==="break")break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}}var d4={name:"flip",enabled:!0,phase:"main",fn:f4,requiresIfExists:["offset"],data:{_skip:!1}};function Eb(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Pb(e){return[xr,un,ln,Cr].some(function(t){return e[t]>=0})}function h4(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=vu(t,{elementContext:"reference"}),s=vu(t,{altBoundary:!0}),l=Eb(o,n),u=Eb(s,i,a),c=Pb(l),f=Pb(u);t.modifiersData[r]={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 v4={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:h4};function p4(e,t,r){var n=Yn(e),i=[Cr,xr].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Cr,un].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function g4(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=my.reduce(function(c,f){return c[f]=p4(f,t.rects,a),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[n]=o}var m4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:g4};function y4(e){var t=e.state,r=e.name;t.modifiersData[r]=_M({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var bM={name:"popperOffsets",enabled:!0,phase:"read",fn:y4,data:{}};function _4(e){return e==="x"?"y":"x"}function b4(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,p=v===void 0?0:v,g=vu(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),m=Yn(t.placement),y=xs(t.placement),_=!y,b=by(m),S=_4(b),w=t.modifiersData.popperOffsets,x=t.rects.reference,C=t.rects.popper,T=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,E=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(w){if(a){var D,R=b==="y"?xr:Cr,k=b==="y"?ln:un,F=b==="y"?"height":"width",K=w[b],B=K+g[R],N=K-g[k],j=h?-C[F]/2:0,re=y===_s?x[F]:C[F],oe=y===_s?-C[F]:-x[F],_e=t.elements.arrow,Ee=h&&_e?_y(_e):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hM(),J=V[R],W=V[k],Y=Ol(0,x[F],Ee[F]),ue=_?x[F]/2-j-Y-J-E.mainAxis:re-Y-J-E.mainAxis,he=_?-x[F]/2+j+Y+W+E.mainAxis:oe+Y+W+E.mainAxis,Q=t.elements.arrow&&ju(t.elements.arrow),L=Q?b==="y"?Q.clientTop||0:Q.clientLeft||0:0,I=(D=A==null?void 0:A[b])!=null?D:0,z=K+ue-I-L,G=K+he-I,q=Ol(h?ed(B,z):B,K,h?ao(N,G):N);w[b]=q,M[b]=q-K}if(s){var ne,de=b==="x"?xr:Cr,te=b==="x"?ln:un,ie=w[S],X=S==="y"?"height":"width",we=ie+g[de],ve=ie-g[te],Se=[xr,Cr].indexOf(m)!==-1,Ie=(ne=A==null?void 0:A[S])!=null?ne:0,$e=Se?we:ie-x[X]-C[X]-Ie+E.altAxis,nt=Se?ie+x[X]+C[X]-Ie-E.altAxis:ve,et=h&&Se?Y3($e,ie,nt):Ol(h?$e:we,ie,h?nt:ve);w[S]=et,M[S]=et-ie}t.modifiersData[n]=M}}var w4={name:"preventOverflow",enabled:!0,phase:"main",fn:b4,requiresIfExists:["offset"]};function S4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function x4(e){return e===Ln(e)||!an(e)?wy(e):S4(e)}function C4(e){var t=e.getBoundingClientRect(),r=ws(t.width)/e.offsetWidth||1,n=ws(t.height)/e.offsetHeight||1;return r!==1||n!==1}function T4(e,t,r){r===void 0&&(r=!1);var n=an(t),i=an(t)&&C4(t),a=ca(t),o=Ss(e,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Xn(t)!=="body"||xy(a))&&(s=x4(t)),an(t)?(l=Ss(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Sy(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function M4(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function A4(e){var t=M4(e);return W3.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function E4(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function P4(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Lb={placement:"bottom",modifiers:[],strategy:"absolute"};function Db(){for(var e=arguments.length,t=new Array(e),r=0;r{r(),e=window.setTimeout(n,i)},r=()=>window.clearTimeout(e);return Wu(()=>r()),{registerTimeout:t,cancelTimeout:r}}let Yo=[];const Ib=e=>{const t=e;t.key===Lt.esc&&Yo.forEach(r=>r(t))},O4=e=>{Mt(()=>{Yo.length===0&&document.addEventListener("keydown",Ib),Ot&&Yo.push(e)}),nr(()=>{Yo=Yo.filter(t=>t!==e),Yo.length===0&&Ot&&document.removeEventListener("keydown",Ib)})};let Ob;const SM=()=>{const e=ua("namespace",hy),t=lM(),r=$(()=>`${e.value}-popper-container-${t.prefix}`),n=$(()=>`#${r.value}`);return{id:r,selector:n}},R4=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},k4=()=>{Bd(()=>{if(!Ot)return;const{id:e,selector:t}=SM();!Ob&&!document.body.querySelector(t.value)&&(Ob=R4(e.value))})},N4=rt({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),xM=({showAfter:e,hideAfter:t,open:r,close:n})=>{const{registerTimeout:i}=I4();return{onOpen:s=>{i(()=>{r(s)},P(e))},onClose:s=>{i(()=>{n(s)},P(t))}}},CM=Symbol("elForwardRef"),B4=e=>{Tt(CM,{setForwardRef:r=>{e.value=r}})},F4=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Rb=H(0),Ty=()=>{const e=ua("zIndex",2e3),t=$(()=>e.value+Rb.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Rb.value++,t.value)}};var Xe=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const $4=rt({size:{type:Pe([Number,String])},color:{type:String}}),H4=ce({name:"ElIcon",inheritAttrs:!1}),z4=ce({...H4,props:$4,setup(e){const t=e,r=Be("icon"),n=$(()=>{const{size:i,color:a}=t;return!i&&!a?{}:{fontSize:Qf(i)?void 0:vo(i),"--color":a}});return(i,a)=>(U(),ye("i",So({class:P(r).b(),style:P(n)},i.$attrs),[Fe(i.$slots,"default")],16))}});var W4=Xe(z4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const lr=hr(W4),Qo=4,V4={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"}},G4=({move:e,size:t,bar:r})=>({[r.size]:t,transform:`translate${r.axis}(${e}%)`}),U4=rt({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),j4="Thumb",Y4=ce({__name:"thumb",props:U4,setup(e){const t=e,r=Oe(iM),n=Be("scrollbar");r||ta(j4,"can not inject scrollbar context");const i=H(),a=H(),o=H({}),s=H(!1);let l=!1,u=!1,c=Ot?document.onselectstart:null;const f=$(()=>V4[t.vertical?"vertical":"horizontal"]),d=$(()=>G4({size:t.size,move:t.move,bar:f.value})),h=$(()=>i.value[f.value.offset]**2/r.wrapElement[f.value.scrollSize]/t.ratio/a.value[f.value.offset]),v=w=>{var x;if(w.stopPropagation(),w.ctrlKey||[1,2].includes(w.button))return;(x=window.getSelection())==null||x.removeAllRanges(),g(w);const C=w.currentTarget;C&&(o.value[f.value.axis]=C[f.value.offset]-(w[f.value.client]-C.getBoundingClientRect()[f.value.direction]))},p=w=>{if(!a.value||!i.value||!r.wrapElement)return;const x=Math.abs(w.target.getBoundingClientRect()[f.value.direction]-w[f.value.client]),C=a.value[f.value.offset]/2,T=(x-C)*100*h.value/i.value[f.value.offset];r.wrapElement[f.value.scroll]=T*r.wrapElement[f.value.scrollSize]/100},g=w=>{w.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",y),c=document.onselectstart,document.onselectstart=()=>!1},m=w=>{if(!i.value||!a.value||l===!1)return;const x=o.value[f.value.axis];if(!x)return;const C=(i.value.getBoundingClientRect()[f.value.direction]-w[f.value.client])*-1,T=a.value[f.value.offset]-x,E=(C-T)*100*h.value/i.value[f.value.offset];r.wrapElement[f.value.scroll]=E*r.wrapElement[f.value.scrollSize]/100},y=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y),S(),u&&(s.value=!1)},_=()=>{u=!1,s.value=!!t.size},b=()=>{u=!0,s.value=l};nr(()=>{S(),document.removeEventListener("mouseup",y)});const S=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Sn(Tn(r,"scrollbarElement"),"mousemove",_),Sn(Tn(r,"scrollbarElement"),"mouseleave",b),(w,x)=>(U(),me(Qn,{name:P(n).b("fade"),persisted:""},{default:Z(()=>[qt(ae("div",{ref_key:"instance",ref:i,class:le([P(n).e("bar"),P(n).is(P(f).key)]),onMousedown:p},[ae("div",{ref_key:"thumb",ref:a,class:le(P(n).e("thumb")),style:St(P(d)),onMousedown:v},null,38)],34),[[mi,w.always||s.value]])]),_:1},8,["name"]))}});var kb=Xe(Y4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const q4=rt({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),K4=ce({__name:"bar",props:q4,setup(e,{expose:t}){const r=e,n=H(0),i=H(0);return t({handleScroll:o=>{if(o){const s=o.offsetHeight-Qo,l=o.offsetWidth-Qo;i.value=o.scrollTop*100/s*r.ratioY,n.value=o.scrollLeft*100/l*r.ratioX}}}),(o,s)=>(U(),ye(yt,null,[ee(kb,{move:n.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),ee(kb,{move:i.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var X4=Xe(K4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const Z4=rt({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:Pe([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),Q4={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Yt)},J4="ElScrollbar",eH=ce({name:J4}),tH=ce({...eH,props:Z4,emits:Q4,setup(e,{expose:t,emit:r}){const n=e,i=Be("scrollbar");let a,o;const s=H(),l=H(),u=H(),c=H("0"),f=H("0"),d=H(),h=H(1),v=H(1),p=$(()=>{const x={};return n.height&&(x.height=vo(n.height)),n.maxHeight&&(x.maxHeight=vo(n.maxHeight)),[n.wrapStyle,x]}),g=$(()=>[n.wrapClass,i.e("wrap"),{[i.em("wrap","hidden-default")]:!n.native}]),m=$(()=>[i.e("view"),n.viewClass]),y=()=>{var x;l.value&&((x=d.value)==null||x.handleScroll(l.value),r("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function _(x,C){Ke(x)?l.value.scrollTo(x):Yt(x)&&Yt(C)&&l.value.scrollTo(x,C)}const b=x=>{Yt(x)&&(l.value.scrollTop=x)},S=x=>{Yt(x)&&(l.value.scrollLeft=x)},w=()=>{if(!l.value)return;const x=l.value.offsetHeight-Qo,C=l.value.offsetWidth-Qo,T=x**2/l.value.scrollHeight,E=C**2/l.value.scrollWidth,A=Math.max(T,n.minSize),M=Math.max(E,n.minSize);h.value=T/(x-T)/(A/(x-A)),v.value=E/(C-E)/(M/(C-M)),f.value=A+Qon.noresize,x=>{x?(a==null||a(),o==null||o()):({stop:a}=ms(u,w),o=Sn("resize",w))},{immediate:!0}),xe(()=>[n.maxHeight,n.height],()=>{n.native||Rt(()=>{var x;w(),l.value&&((x=d.value)==null||x.handleScroll(l.value))})}),Tt(iM,fn({scrollbarElement:s,wrapElement:l})),Mt(()=>{n.native||Rt(()=>{w()})}),Fd(()=>w()),t({wrapRef:l,update:w,scrollTo:_,setScrollTop:b,setScrollLeft:S,handleScroll:y}),(x,C)=>(U(),ye("div",{ref_key:"scrollbarRef",ref:s,class:le(P(i).b())},[ae("div",{ref_key:"wrapRef",ref:l,class:le(P(g)),style:St(P(p)),onScroll:y},[(U(),me(nn(x.tag),{ref_key:"resizeRef",ref:u,class:le(P(m)),style:St(x.viewStyle)},{default:Z(()=>[Fe(x.$slots,"default")]),_:3},8,["class","style"]))],38),x.native?ke("v-if",!0):(U(),me(X4,{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 rH=Xe(tH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const TM=hr(rH),nH=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],MM=rt({role:{type:String,values:nH,default:"tooltip"}}),iH=ce({name:"ElPopperRoot",inheritAttrs:!1}),aH=ce({...iH,props:MM,setup(e,{expose:t}){const r=e,n=H(),i=H(),a=H(),o=H(),s=$(()=>r.role),l={triggerRef:n,popperInstanceRef:i,contentRef:a,referenceRef:o,role:s};return t(l),Tt(fy,l),(u,c)=>Fe(u.$slots,"default")}});var oH=Xe(aH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const AM=rt({arrowOffset:{type:Number,default:5}}),sH=ce({name:"ElPopperArrow",inheritAttrs:!1}),lH=ce({...sH,props:AM,setup(e,{expose:t}){const r=e,n=Be("popper"),{arrowOffset:i,arrowRef:a}=Oe(aM,void 0);return xe(()=>r.arrowOffset,o=>{i.value=o}),nr(()=>{a.value=void 0}),t({arrowRef:a}),(o,s)=>(U(),ye("span",{ref_key:"arrowRef",ref:a,class:le(P(n).e("arrow")),"data-popper-arrow":""},null,2))}});var uH=Xe(lH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const cH="ElOnlyChild",fH=ce({name:cH,setup(e,{slots:t,attrs:r}){var n;const i=Oe(CM),a=F4((n=i==null?void 0:i.setForwardRef)!=null?n:ur);return()=>{var o;const s=(o=t.default)==null?void 0:o.call(t,r);if(!s||s.length>1)return null;const l=EM(s);return l?qt(gi(l,r),[[a]]):null}}});function EM(e){if(!e)return null;const t=e;for(const r of t){if(Ke(r))switch(r.type){case Sr:continue;case ks:case"svg":return Nb(r);case yt:return EM(r.children);default:return r}return Nb(r)}return null}function Nb(e){const t=Be("only-child");return ee("span",{class:t.e("content")},[e])}const PM=rt({virtualRef:{type:Pe(Object)},virtualTriggering:Boolean,onMouseenter:{type:Pe(Function)},onMouseleave:{type:Pe(Function)},onClick:{type:Pe(Function)},onKeydown:{type:Pe(Function)},onFocus:{type:Pe(Function)},onBlur:{type:Pe(Function)},onContextmenu:{type:Pe(Function)},id:String,open:Boolean}),dH=ce({name:"ElPopperTrigger",inheritAttrs:!1}),hH=ce({...dH,props:PM,setup(e,{expose:t}){const r=e,{role:n,triggerRef:i}=Oe(fy,void 0);B4(i);const a=$(()=>s.value?r.id:void 0),o=$(()=>{if(n&&n.value==="tooltip")return r.open&&r.id?r.id:void 0}),s=$(()=>{if(n&&n.value!=="tooltip")return n.value}),l=$(()=>s.value?`${r.open}`:void 0);let u;return Mt(()=>{xe(()=>r.virtualRef,c=>{c&&(i.value=Vi(c))},{immediate:!0}),xe(i,(c,f)=>{u==null||u(),u=void 0,ys(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=r[d];v&&(c.addEventListener(d.slice(2).toLowerCase(),v),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),v))}),u=xe([a,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{ly(d[v])?c.removeAttribute(h):c.setAttribute(h,d[v])})},{immediate:!0})),ys(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),nr(()=>{u==null||u(),u=void 0}),t({triggerRef:i}),(c,f)=>c.virtualTriggering?ke("v-if",!0):(U(),me(P(fH),So({key:0},c.$attrs,{"aria-controls":P(a),"aria-describedby":P(o),"aria-expanded":P(l),"aria-haspopup":P(s)}),{default:Z(()=>[Fe(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var vH=Xe(hH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const Fh="focus-trap.focus-after-trapped",$h="focus-trap.focus-after-released",pH="focus-trap.focusout-prevented",Bb={cancelable:!0,bubbles:!1},gH={cancelable:!0,bubbles:!1},Fb="focusAfterTrapped",$b="focusAfterReleased",mH=Symbol("elFocusTrap"),My=H(),Qd=H(0),Ay=H(0);let hc=0;const LM=e=>{const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0||n===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t},Hb=(e,t)=>{for(const r of e)if(!yH(r,t))return r},yH=(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},_H=e=>{const t=LM(e),r=Hb(t,e),n=Hb(t.reverse(),e);return[r,n]},bH=e=>e instanceof HTMLInputElement&&"select"in e,Bi=(e,t)=>{if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),Ay.value=window.performance.now(),e!==r&&bH(e)&&t&&e.select()}};function zb(e,t){const r=[...e],n=e.indexOf(t);return n!==-1&&r.splice(n,1),r}const wH=()=>{let e=[];return{push:n=>{const i=e[0];i&&n!==i&&i.pause(),e=zb(e,n),e.unshift(n)},remove:n=>{var i,a;e=zb(e,n),(a=(i=e[0])==null?void 0:i.resume)==null||a.call(i)}}},SH=(e,t=!1)=>{const r=document.activeElement;for(const n of e)if(Bi(n,t),document.activeElement!==r)return},Wb=wH(),xH=()=>Qd.value>Ay.value,vc=()=>{My.value="pointer",Qd.value=window.performance.now()},Vb=()=>{My.value="keyboard",Qd.value=window.performance.now()},CH=()=>(Mt(()=>{hc===0&&(document.addEventListener("mousedown",vc),document.addEventListener("touchstart",vc),document.addEventListener("keydown",Vb)),hc++}),nr(()=>{hc--,hc<=0&&(document.removeEventListener("mousedown",vc),document.removeEventListener("touchstart",vc),document.removeEventListener("keydown",Vb))}),{focusReason:My,lastUserFocusTimestamp:Qd,lastAutomatedFocusTimestamp:Ay}),pc=e=>new CustomEvent(pH,{...gH,detail:e}),TH=ce({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Fb,$b,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const r=H();let n,i;const{focusReason:a}=CH();O4(v=>{e.trapped&&!o.paused&&t("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!e.loop&&!e.trapped||o.paused)return;const{key:p,altKey:g,ctrlKey:m,metaKey:y,currentTarget:_,shiftKey:b}=v,{loop:S}=e,w=p===Lt.tab&&!g&&!m&&!y,x=document.activeElement;if(w&&x){const C=_,[T,E]=_H(C);if(T&&E){if(!b&&x===E){const M=pc({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||(v.preventDefault(),S&&Bi(T,!0))}else if(b&&[T,C].includes(x)){const M=pc({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||(v.preventDefault(),S&&Bi(E,!0))}}else if(x===C){const M=pc({focusReason:a.value});t("focusout-prevented",M),M.defaultPrevented||v.preventDefault()}}};Tt(mH,{focusTrapRef:r,onKeydown:s}),xe(()=>e.focusTrapEl,v=>{v&&(r.value=v)},{immediate:!0}),xe([r],([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(Fb,v)},u=v=>t($b,v),c=v=>{const p=P(r);if(!p)return;const g=v.target,m=v.relatedTarget,y=g&&p.contains(g);e.trapped||m&&p.contains(m)||(n=m),y&&t("focusin",v),!o.paused&&e.trapped&&(y?i=g:Bi(i,!0))},f=v=>{const p=P(r);if(!(o.paused||!p))if(e.trapped){const g=v.relatedTarget;!ly(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&e.trapped){const m=pc({focusReason:a.value});t("focusout-prevented",m),m.defaultPrevented||Bi(i,!0)}},0)}else{const g=v.target;g&&p.contains(g)||t("focusout",v)}};async function d(){await Rt();const v=P(r);if(v){Wb.push(o);const p=v.contains(document.activeElement)?n:document.activeElement;if(n=p,!v.contains(p)){const m=new Event(Fh,Bb);v.addEventListener(Fh,l),v.dispatchEvent(m),m.defaultPrevented||Rt(()=>{let y=e.focusStartEl;ze(y)||(Bi(y),document.activeElement!==y&&(y="first")),y==="first"&&SH(LM(v),!0),(document.activeElement===p||y==="container")&&Bi(v)})}}}function h(){const v=P(r);if(v){v.removeEventListener(Fh,l);const p=new CustomEvent($h,{...Bb,detail:{focusReason:a.value}});v.addEventListener($h,u),v.dispatchEvent(p),!p.defaultPrevented&&(a.value=="keyboard"||!xH())&&Bi(n??document.body),v.removeEventListener($h,l),Wb.remove(o)}}return Mt(()=>{e.trapped&&d(),xe(()=>e.trapped,v=>{v?d():h()})}),nr(()=>{e.trapped&&h()}),{onKeydown:s}}});function MH(e,t,r,n,i,a){return Fe(e.$slots,"default",{handleKeydown:e.onKeydown})}var AH=Xe(TH,[["render",MH],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const EH=["fixed","absolute"],PH=rt({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Pe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:my,default:"bottom"},popperOptions:{type:Pe(Object),default:()=>({})},strategy:{type:String,values:EH,default:"absolute"}}),DM=rt({...PH,id:String,style:{type:Pe([String,Array,Object])},className:{type:Pe([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Pe([String,Array,Object])},popperStyle:{type:Pe([String,Array,Object])},referenceEl:{type:Pe(Object)},triggerTargetEl:{type:Pe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),LH={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},Gb=(e,t)=>{const{placement:r,strategy:n,popperOptions:i}=e,a={placement:r,strategy:n,...i,modifiers:IH(e)};return OH(a,t),RH(a,i==null?void 0:i.modifiers),a},DH=e=>{if(Ot)return Vi(e)};function IH(e){const{offset:t,gpuAcceleration:r,fallbackPlacements:n}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:n}},{name:"computeStyles",options:{gpuAcceleration:r}}]}function OH(e,{arrowEl:t,arrowOffset:r}){e.modifiers.push({name:"arrow",options:{element:t,padding:r??5}})}function RH(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const kH=ce({name:"ElPopperContent"}),NH=ce({...kH,props:DM,emits:LH,setup(e,{expose:t,emit:r}){const n=e,{popperInstanceRef:i,contentRef:a,triggerRef:o,role:s}=Oe(fy,void 0),l=Oe(go,void 0),{nextZIndex:u}=Ty(),c=Be("popper"),f=H(),d=H("first"),h=H(),v=H();Tt(aM,{arrowRef:h,arrowOffset:v}),l&&(l.addInputId||l.removeInputId)&&Tt(go,{...l,addInputId:ur,removeInputId:ur});const p=H(n.zIndex||u()),g=H(!1);let m;const y=$(()=>DH(n.referenceEl)||P(o)),_=$(()=>[{zIndex:P(p)},n.popperStyle]),b=$(()=>[c.b(),c.is("pure",n.pure),c.is(n.effect),n.popperClass]),S=$(()=>s&&s.value==="dialog"?"false":void 0),w=({referenceEl:R,popperContentEl:k,arrowEl:F})=>{const K=Gb(n,{arrowEl:F,arrowOffset:P(v)});return wM(R,k,K)},x=(R=!0)=>{var k;(k=P(i))==null||k.update(),R&&(p.value=n.zIndex||u())},C=()=>{var R,k;const F={name:"eventListeners",enabled:n.visible};(k=(R=P(i))==null?void 0:R.setOptions)==null||k.call(R,K=>({...K,modifiers:[...K.modifiers||[],F]})),x(!1),n.visible&&n.focusOnShow?g.value=!0:n.visible===!1&&(g.value=!1)},T=()=>{r("focus")},E=R=>{var k;((k=R.detail)==null?void 0:k.focusReason)!=="pointer"&&(d.value="first",r("blur"))},A=R=>{n.visible&&!g.value&&(R.target&&(d.value=R.target),g.value=!0)},M=R=>{n.trapping||(R.detail.focusReason==="pointer"&&R.preventDefault(),g.value=!1)},D=()=>{g.value=!1,r("close")};return Mt(()=>{let R;xe(y,k=>{var F;R==null||R();const K=P(i);if((F=K==null?void 0:K.destroy)==null||F.call(K),k){const B=P(f);a.value=B,i.value=w({referenceEl:k,popperContentEl:B,arrowEl:P(h)}),R=xe(()=>k.getBoundingClientRect(),()=>x(),{immediate:!0})}else i.value=void 0},{immediate:!0}),xe(()=>n.triggerTargetEl,(k,F)=>{m==null||m(),m=void 0;const K=P(k||f.value),B=P(F||f.value);ys(K)&&(m=xe([s,()=>n.ariaLabel,S,()=>n.id],N=>{["role","aria-label","aria-modal","id"].forEach((j,re)=>{ly(N[re])?K.removeAttribute(j):K.setAttribute(j,N[re])})},{immediate:!0})),B!==K&&ys(B)&&["role","aria-label","aria-modal","id"].forEach(N=>{B.removeAttribute(N)})},{immediate:!0}),xe(()=>n.visible,C,{immediate:!0}),xe(()=>Gb(n,{arrowEl:P(h),arrowOffset:P(v)}),k=>{var F;return(F=i.value)==null?void 0:F.setOptions(k)})}),nr(()=>{m==null||m(),m=void 0}),t({popperContentRef:f,popperInstanceRef:i,updatePopper:x,contentStyle:_}),(R,k)=>(U(),ye("div",{ref_key:"popperContentRef",ref:f,style:St(P(_)),class:le(P(b)),tabindex:"-1",onMouseenter:k[0]||(k[0]=F=>R.$emit("mouseenter",F)),onMouseleave:k[1]||(k[1]=F=>R.$emit("mouseleave",F))},[ee(P(AH),{trapped:g.value,"trap-on-focus-in":!0,"focus-trap-el":f.value,"focus-start-el":d.value,onFocusAfterTrapped:T,onFocusAfterReleased:E,onFocusin:A,onFocusoutPrevented:M,onReleaseRequested:D},{default:Z(()=>[Fe(R.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var BH=Xe(NH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const FH=hr(oH),$H=Be("tooltip"),Kr=rt({...N4,...DM,appendTo:{type:Pe([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Pe(Boolean),default:null},transition:{type:String,default:`${$H.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),pu=rt({...PM,disabled:Boolean,trigger:{type:Pe([String,Array]),default:"hover"},triggerKeys:{type:Pe(Array),default:()=>[Lt.enter,Lt.space]}}),{useModelToggleProps:HH,useModelToggleEmits:zH,useModelToggle:WH}=L3("visible"),VH=rt({...MM,...HH,...Kr,...pu,...AM,showArrow:{type:Boolean,default:!0}}),GH=[...zH,"before-show","before-hide","show","hide","open","close"],UH=(e,t)=>be(e)?e.includes(t):e===t,Lo=(e,t,r)=>n=>{UH(P(e),t)&&r(n)},jH=ce({name:"ElTooltipTrigger"}),YH=ce({...jH,props:pu,setup(e,{expose:t}){const r=e,n=Be("tooltip"),{controlled:i,id:a,open:o,onOpen:s,onClose:l,onToggle:u}=Oe(dy,void 0),c=H(null),f=()=>{if(P(i)||r.disabled)return!0},d=Tn(r,"trigger"),h=ci(f,Lo(d,"hover",s)),v=ci(f,Lo(d,"hover",l)),p=ci(f,Lo(d,"click",b=>{b.button===0&&u(b)})),g=ci(f,Lo(d,"focus",s)),m=ci(f,Lo(d,"focus",l)),y=ci(f,Lo(d,"contextmenu",b=>{b.preventDefault(),u(b)})),_=ci(f,b=>{const{code:S}=b;r.triggerKeys.includes(S)&&(b.preventDefault(),u(b))});return t({triggerRef:c}),(b,S)=>(U(),me(P(vH),{id:P(a),"virtual-ref":b.virtualRef,open:P(o),"virtual-triggering":b.virtualTriggering,class:le(P(n).e("trigger")),onBlur:P(m),onClick:P(p),onContextmenu:P(y),onFocus:P(g),onMouseenter:P(h),onMouseleave:P(v),onKeydown:P(_)},{default:Z(()=>[Fe(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var qH=Xe(YH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const KH=ce({name:"ElTooltipContent",inheritAttrs:!1}),XH=ce({...KH,props:Kr,setup(e,{expose:t}){const r=e,{selector:n}=SM(),i=H(null),a=H(!1),{controlled:o,id:s,open:l,trigger:u,onClose:c,onOpen:f,onShow:d,onHide:h,onBeforeShow:v,onBeforeHide:p}=Oe(dy,void 0),g=$(()=>r.persistent);nr(()=>{a.value=!0});const m=$(()=>P(g)?!0:P(l)),y=$(()=>r.disabled?!1:P(l)),_=$(()=>r.appendTo||n.value),b=$(()=>{var k;return(k=r.style)!=null?k:{}}),S=$(()=>!P(l)),w=()=>{h()},x=()=>{if(P(o))return!0},C=ci(x,()=>{r.enterable&&P(u)==="hover"&&f()}),T=ci(x,()=>{P(u)==="hover"&&c()}),E=()=>{var k,F;(F=(k=i.value)==null?void 0:k.updatePopper)==null||F.call(k),v==null||v()},A=()=>{p==null||p()},M=()=>{d(),R=$$($(()=>{var k;return(k=i.value)==null?void 0:k.popperContentRef}),()=>{if(P(o))return;P(u)!=="hover"&&c()})},D=()=>{r.virtualTriggering||c()};let R;return xe(()=>P(l),k=>{k||R==null||R()},{flush:"post"}),xe(()=>r.content,()=>{var k,F;(F=(k=i.value)==null?void 0:k.updatePopper)==null||F.call(k)}),t({contentRef:i}),(k,F)=>(U(),me(NI,{disabled:!k.teleported,to:P(_)},[ee(Qn,{name:k.transition,onAfterLeave:w,onBeforeEnter:E,onAfterEnter:M,onBeforeLeave:A},{default:Z(()=>[P(m)?qt((U(),me(P(BH),So({key:0,id:P(s),ref_key:"contentRef",ref:i},k.$attrs,{"aria-label":k.ariaLabel,"aria-hidden":P(S),"boundaries-padding":k.boundariesPadding,"fallback-placements":k.fallbackPlacements,"gpu-acceleration":k.gpuAcceleration,offset:k.offset,placement:k.placement,"popper-options":k.popperOptions,strategy:k.strategy,effect:k.effect,enterable:k.enterable,pure:k.pure,"popper-class":k.popperClass,"popper-style":[k.popperStyle,P(b)],"reference-el":k.referenceEl,"trigger-target-el":k.triggerTargetEl,visible:P(y),"z-index":k.zIndex,onMouseenter:P(C),onMouseleave:P(T),onBlur:D,onClose:P(c)}),{default:Z(()=>[a.value?ke("v-if",!0):Fe(k.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[mi,P(y)]]):ke("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var ZH=Xe(XH,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const QH=["innerHTML"],JH={key:1},ez=ce({name:"ElTooltip"}),tz=ce({...ez,props:VH,emits:GH,setup(e,{expose:t,emit:r}){const n=e;k4();const i=vy(),a=H(),o=H(),s=()=>{var m;const y=P(a);y&&((m=y.popperInstanceRef)==null||m.update())},l=H(!1),u=H(),{show:c,hide:f,hasUpdateHandler:d}=WH({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=xM({showAfter:Tn(n,"showAfter"),hideAfter:Tn(n,"hideAfter"),open:c,close:f}),p=$(()=>Br(n.visible)&&!d.value);Tt(dy,{controlled:p,id:i,open:ku(l),trigger:Tn(n,"trigger"),onOpen:m=>{h(m)},onClose:m=>{v(m)},onToggle:m=>{P(l)?v(m):h(m)},onShow:()=>{r("show",u.value)},onHide:()=>{r("hide",u.value)},onBeforeShow:()=>{r("before-show",u.value)},onBeforeHide:()=>{r("before-hide",u.value)},updatePopper:s}),xe(()=>n.disabled,m=>{m&&l.value&&(l.value=!1)});const g=()=>{var m,y;const _=(y=(m=o.value)==null?void 0:m.contentRef)==null?void 0:y.popperContentRef;return _&&_.contains(document.activeElement)};return WC(()=>l.value&&f()),t({popperRef:a,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:f}),(m,y)=>(U(),me(P(FH),{ref_key:"popperRef",ref:a,role:m.role},{default:Z(()=>[ee(qH,{disabled:m.disabled,trigger:m.trigger,"trigger-keys":m.triggerKeys,"virtual-ref":m.virtualRef,"virtual-triggering":m.virtualTriggering},{default:Z(()=>[m.$slots.default?Fe(m.$slots,"default",{key:0}):ke("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ee(ZH,{ref_key:"contentRef",ref:o,"aria-label":m.ariaLabel,"boundaries-padding":m.boundariesPadding,content:m.content,disabled:m.disabled,effect:m.effect,enterable:m.enterable,"fallback-placements":m.fallbackPlacements,"hide-after":m.hideAfter,"gpu-acceleration":m.gpuAcceleration,offset:m.offset,persistent:m.persistent,"popper-class":m.popperClass,"popper-style":m.popperStyle,placement:m.placement,"popper-options":m.popperOptions,pure:m.pure,"raw-content":m.rawContent,"reference-el":m.referenceEl,"trigger-target-el":m.triggerTargetEl,"show-after":m.showAfter,strategy:m.strategy,teleported:m.teleported,transition:m.transition,"virtual-triggering":m.virtualTriggering,"z-index":m.zIndex,"append-to":m.appendTo},{default:Z(()=>[Fe(m.$slots,"content",{},()=>[m.rawContent?(U(),ye("span",{key:0,innerHTML:m.content},null,8,QH)):(U(),ye("span",JH,Me(m.content),1))]),m.showArrow?(U(),me(P(uH),{key:0,"arrow-offset":m.arrowOffset},null,8,["arrow-offset"])):ke("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 rz=Xe(tz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Yu=hr(rz),nz=rt({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"}}),iz=["textContent"],az=ce({name:"ElBadge"}),oz=ce({...az,props:nz,setup(e,{expose:t}){const r=e,n=Be("badge"),i=$(()=>r.isDot?"":Yt(r.value)&&Yt(r.max)?r.max(U(),ye("div",{class:le(P(n).b())},[Fe(a.$slots,"default"),ee(Qn,{name:`${P(n).namespace.value}-zoom-in-center`,persisted:""},{default:Z(()=>[qt(ae("sup",{class:le([P(n).e("content"),P(n).em("content",a.type),P(n).is("fixed",!!a.$slots.default),P(n).is("dot",a.isDot)]),textContent:Me(P(i))},null,10,iz),[[mi,!a.hidden&&(P(i)||a.isDot)]])]),_:1},8,["name"])],2))}});var sz=Xe(oz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const lz=hr(sz),uz=(e,t)=>{sM({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},$(()=>e.type==="text"));const r=Oe(tM,void 0),n=ua("button"),{form:i}=Gu(),a=ra($(()=>r==null?void 0:r.size)),o=Xd(),s=H(),l=zd(),u=$(()=>e.type||(r==null?void 0:r.type)||""),c=$(()=>{var h,v,p;return(p=(v=e.autoInsertSpace)!=null?v:(h=n.value)==null?void 0:h.autoInsertSpace)!=null?p:!1}),f=$(()=>{var h;const v=(h=l.default)==null?void 0:h.call(l);if(c.value&&(v==null?void 0:v.length)===1){const p=v[0];if((p==null?void 0:p.type)===ks){const g=p.children;return/^\p{Unified_Ideograph}{2}$/u.test(g.trim())}}return!1});return{_disabled:o,_size:a,_type:u,_ref:s,shouldAddSpace:f,handleClick:h=>{e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",h)}}},cz=["default","primary","success","warning","info","danger","text",""],fz=["button","submit","reset"],Kp=rt({size:Kd,disabled:Boolean,type:{type:String,values:cz,default:""},icon:{type:Wn},nativeType:{type:String,values:fz,default:"button"},loading:Boolean,loadingIcon:{type:Wn,default:()=>cy},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),dz={click:e=>e instanceof MouseEvent};function Kt(e,t){hz(e)&&(e="100%");var r=vz(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function gc(e){return Math.min(1,Math.max(0,e))}function hz(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function vz(e){return typeof e=="string"&&e.indexOf("%")!==-1}function IM(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mc(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Xa(e){return e.length===1?"0"+e:String(e)}function pz(e,t,r){return{r:Kt(e,255)*255,g:Kt(t,255)*255,b:Kt(r,255)*255}}function Ub(e,t,r){e=Kt(e,255),t=Kt(t,255),r=Kt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=0,s=(n+i)/2;if(n===i)o=0,a=0;else{var l=n-i;switch(o=s>.5?l/(2-n-i):l/(n+i),n){case e:a=(t-r)/l+(t1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function gz(e,t,r){var n,i,a;if(e=Kt(e,360),t=Kt(t,100),r=Kt(r,100),t===0)i=r,a=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=Hh(s,o,e+1/3),i=Hh(s,o,e),a=Hh(s,o,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function jb(e,t,r){e=Kt(e,255),t=Kt(t,255),r=Kt(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=n,s=n-i,l=n===0?0:s/n;if(n===i)a=0;else{switch(n){case e:a=(t-r)/s+(t>16,g:(e&65280)>>8,b:e&255}}var Xp={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 wz(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=Cz(e)),typeof e=="object"&&(ii(e.r)&&ii(e.g)&&ii(e.b)?(t=pz(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ii(e.h)&&ii(e.s)&&ii(e.v)?(n=mc(e.s),i=mc(e.v),t=mz(e.h,n,i),o=!0,s="hsv"):ii(e.h)&&ii(e.s)&&ii(e.l)&&(n=mc(e.s),a=mc(e.l),t=gz(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=IM(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var Sz="[-\\+]?\\d+%?",xz="[-\\+]?\\d*\\.\\d+%?",Gi="(?:".concat(xz,")|(?:").concat(Sz,")"),zh="[\\s|\\(]+(".concat(Gi,")[,|\\s]+(").concat(Gi,")[,|\\s]+(").concat(Gi,")\\s*\\)?"),Wh="[\\s|\\(]+(".concat(Gi,")[,|\\s]+(").concat(Gi,")[,|\\s]+(").concat(Gi,")[,|\\s]+(").concat(Gi,")\\s*\\)?"),pn={CSS_UNIT:new RegExp(Gi),rgb:new RegExp("rgb"+zh),rgba:new RegExp("rgba"+Wh),hsl:new RegExp("hsl"+zh),hsla:new RegExp("hsla"+Wh),hsv:new RegExp("hsv"+zh),hsva:new RegExp("hsva"+Wh),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 Cz(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Xp[e])e=Xp[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=pn.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=pn.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=pn.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=pn.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=pn.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=pn.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=pn.hex8.exec(e),r?{r:Dr(r[1]),g:Dr(r[2]),b:Dr(r[3]),a:qb(r[4]),format:t?"name":"hex8"}:(r=pn.hex6.exec(e),r?{r:Dr(r[1]),g:Dr(r[2]),b:Dr(r[3]),format:t?"name":"hex"}:(r=pn.hex4.exec(e),r?{r:Dr(r[1]+r[1]),g:Dr(r[2]+r[2]),b:Dr(r[3]+r[3]),a:qb(r[4]+r[4]),format:t?"name":"hex8"}:(r=pn.hex3.exec(e),r?{r:Dr(r[1]+r[1]),g:Dr(r[2]+r[2]),b:Dr(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function ii(e){return Boolean(pn.CSS_UNIT.exec(String(e)))}var OM=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=bz(t)),this.originalInput=t;var i=wz(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=IM(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=jb(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=jb(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Ub(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=Ub(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Yb(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),yz(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Kt(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Kt(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Yb(this.r,this.g,this.b,!1),r=0,n=Object.entries(Xp);r=0,a=!r&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=gc(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=gc(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=gc(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=gc(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),a=r/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,a=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(new e(n));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb();return new e({r:n.r+(r.r-n.r)*r.a,g:n.g+(r.g-n.g)*r.a,b:n.b+(r.b-n.b)*r.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],a=360/t,o=1;o{let n={};const i=e.color;if(i){const a=new OM(i),o=e.dark?a.tint(20).toString():Li(a,20);if(e.plain)n=r.cssVarBlock({"bg-color":e.dark?Li(a,90):a.tint(90).toString(),"text-color":i,"border-color":e.dark?Li(a,50):a.tint(50).toString(),"hover-text-color":`var(${r.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":o,"active-text-color":`var(${r.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(n[r.cssVarBlockName("disabled-bg-color")]=e.dark?Li(a,90):a.tint(90).toString(),n[r.cssVarBlockName("disabled-text-color")]=e.dark?Li(a,50):a.tint(50).toString(),n[r.cssVarBlockName("disabled-border-color")]=e.dark?Li(a,80):a.tint(80).toString());else{const s=e.dark?Li(a,30):a.tint(30).toString(),l=a.isDark()?`var(${r.cssVarName("color-white")})`:`var(${r.cssVarName("color-black")})`;if(n=r.cssVarBlock({"bg-color":i,"text-color":l,"border-color":i,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":o,"active-border-color":o}),t.value){const u=e.dark?Li(a,50):a.tint(50).toString();n[r.cssVarBlockName("disabled-bg-color")]=u,n[r.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${r.cssVarName("color-white")})`,n[r.cssVarBlockName("disabled-border-color")]=u}}}return n})}const Mz=["aria-disabled","disabled","autofocus","type"],Az=ce({name:"ElButton"}),Ez=ce({...Az,props:Kp,emits:dz,setup(e,{expose:t,emit:r}){const n=e,i=Tz(n),a=Be("button"),{_ref:o,_size:s,_type:l,_disabled:u,shouldAddSpace:c,handleClick:f}=uz(n,r);return t({ref:o,size:s,type:l,disabled:u,shouldAddSpace:c}),(d,h)=>(U(),ye("button",{ref_key:"_ref",ref:o,class:le([P(a).b(),P(a).m(P(l)),P(a).m(P(s)),P(a).is("disabled",P(u)),P(a).is("loading",d.loading),P(a).is("plain",d.plain),P(a).is("round",d.round),P(a).is("circle",d.circle),P(a).is("text",d.text),P(a).is("link",d.link),P(a).is("has-bg",d.bg)]),"aria-disabled":P(u)||d.loading,disabled:P(u)||d.loading,autofocus:d.autofocus,type:d.nativeType,style:St(P(i)),onClick:h[0]||(h[0]=(...v)=>P(f)&&P(f)(...v))},[d.loading?(U(),ye(yt,{key:0},[d.$slots.loading?Fe(d.$slots,"loading",{key:0}):(U(),me(P(lr),{key:1,class:le(P(a).is("loading"))},{default:Z(()=>[(U(),me(nn(d.loadingIcon)))]),_:1},8,["class"]))],64)):d.icon||d.$slots.icon?(U(),me(P(lr),{key:1},{default:Z(()=>[d.icon?(U(),me(nn(d.icon),{key:0})):Fe(d.$slots,"icon",{key:1})]),_:3})):ke("v-if",!0),d.$slots.default?(U(),ye("span",{key:2,class:le({[P(a).em("text","expand")]:P(c)})},[Fe(d.$slots,"default")],2)):ke("v-if",!0)],14,Mz))}});var Pz=Xe(Ez,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Lz={size:Kp.size,type:Kp.type},Dz=ce({name:"ElButtonGroup"}),Iz=ce({...Dz,props:Lz,setup(e){const t=e;Tt(tM,fn({size:Tn(t,"size"),type:Tn(t,"type")}));const r=Be("button");return(n,i)=>(U(),ye("div",{class:le(`${P(r).b("group")}`)},[Fe(n.$slots,"default")],2))}});var RM=Xe(Iz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Oz=hr(Pz,{ButtonGroup:RM});la(RM);var Rz=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const Fi=new Map;let Kb;Ot&&(document.addEventListener("mousedown",e=>Kb=e),document.addEventListener("mouseup",e=>{for(const t of Fi.values())for(const{documentHandler:r}of t)r(e,Kb)}));function Xb(e,t){let r=[];return Array.isArray(t.arg)?r=t.arg:ys(t.arg)&&r.push(t.arg),function(n,i){const a=t.instance.popperRef,o=n.target,s=i==null?void 0:i.target,l=!t||!t.instance,u=!o||!s,c=e.contains(o)||e.contains(s),f=e===o,d=r.length&&r.some(v=>v==null?void 0:v.contains(o))||r.length&&r.includes(s),h=a&&(a.contains(o)||a.contains(s));l||u||c||f||d||h||t.value(n,i)}}const kz={beforeMount(e,t){Fi.has(e)||Fi.set(e,[]),Fi.get(e).push({documentHandler:Xb(e,t),bindingFn:t.value})},updated(e,t){Fi.has(e)||Fi.set(e,[]);const r=Fi.get(e),n=r.findIndex(a=>a.bindingFn===t.oldValue),i={documentHandler:Xb(e,t),bindingFn:t.value};n>=0?r.splice(n,1,i):r.push(i)},unmounted(e){Fi.delete(e)}};var Zb=!1,Ya,Zp,Qp,bf,wf,kM,Sf,Jp,eg,tg,NM,rg,ng,BM,FM;function vr(){if(!Zb){Zb=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),r=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(rg=/\b(iPhone|iP[ao]d)/.exec(e),ng=/\b(iP[ao]d)/.exec(e),tg=/Android/i.exec(e),BM=/FBAN\/\w+;/i.exec(e),FM=/Mobile/i.exec(e),NM=!!/Win64/.exec(e),t){Ya=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,Ya&&document&&document.documentMode&&(Ya=document.documentMode);var n=/(?:Trident\/(\d+.\d+))/.exec(e);kM=n?parseFloat(n[1])+4:Ya,Zp=t[2]?parseFloat(t[2]):NaN,Qp=t[3]?parseFloat(t[3]):NaN,bf=t[4]?parseFloat(t[4]):NaN,bf?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),wf=t&&t[1]?parseFloat(t[1]):NaN):wf=NaN}else Ya=Zp=Qp=wf=bf=NaN;if(r){if(r[1]){var i=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Sf=i?parseFloat(i[1].replace("_",".")):!0}else Sf=!1;Jp=!!r[2],eg=!!r[3]}else Sf=Jp=eg=!1}}var ig={ie:function(){return vr()||Ya},ieCompatibilityMode:function(){return vr()||kM>Ya},ie64:function(){return ig.ie()&&NM},firefox:function(){return vr()||Zp},opera:function(){return vr()||Qp},webkit:function(){return vr()||bf},safari:function(){return ig.webkit()},chrome:function(){return vr()||wf},windows:function(){return vr()||Jp},osx:function(){return vr()||Sf},linux:function(){return vr()||eg},iphone:function(){return vr()||rg},mobile:function(){return vr()||rg||ng||tg||FM},nativeApp:function(){return vr()||BM},android:function(){return vr()||tg},ipad:function(){return vr()||ng}},Nz=ig,yc=!!(typeof window<"u"&&window.document&&window.document.createElement),Bz={canUseDOM:yc,canUseWorkers:typeof Worker<"u",canUseEventListeners:yc&&!!(window.addEventListener||window.attachEvent),canUseViewport:yc&&!!window.screen,isInWorker:!yc},$M=Bz,HM;$M.canUseDOM&&(HM=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function Fz(e,t){if(!$M.canUseDOM||t&&!("addEventListener"in document))return!1;var r="on"+e,n=r in document;if(!n){var i=document.createElement("div");i.setAttribute(r,"return;"),n=typeof i[r]=="function"}return!n&&HM&&e==="wheel"&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var $z=Fz,Qb=10,Jb=40,e1=800;function zM(e){var t=0,r=0,n=0,i=0;return"detail"in e&&(r=e.detail),"wheelDelta"in e&&(r=-e.wheelDelta/120),"wheelDeltaY"in e&&(r=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=r,r=0),n=t*Qb,i=r*Qb,"deltaY"in e&&(i=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||i)&&e.deltaMode&&(e.deltaMode==1?(n*=Jb,i*=Jb):(n*=e1,i*=e1)),n&&!t&&(t=n<1?-1:1),i&&!r&&(r=i<1?-1:1),{spinX:t,spinY:r,pixelX:n,pixelY:i}}zM.getEventType=function(){return Nz.firefox()?"DOMMouseScroll":$z("wheel")?"wheel":"mousewheel"};var Hz=zM;/** * Checks if an event is supported in the current execution environment. * * NOTE: This will not work correctly for non-generic events such as `change`, * `reset`, `load`, `error`, and `select`. * * Borrows from Modernizr. * * @param {string} eventNameSuffix Event name, e.g. "click". * @param {?boolean} capture Check if the capture phase is supported. * @return {boolean} True if the event is supported. * @internal * @license Modernizr 3.0.0pre (Custom Build) | MIT */const zz=function(e,t){if(e&&e.addEventListener){const r=function(n){const i=Hz(n);t&&Reflect.apply(t,this,[n,i])};e.addEventListener("wheel",r,{passive:!0})}},Wz={beforeMount(e,t){zz(e,t.value)}},WM={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:Kd,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},VM={[po]:e=>ze(e)||Yt(e)||Br(e),change:e=>ze(e)||Yt(e)||Br(e)},Vz=({model:e,isChecked:t})=>{const r=Oe(Bs,void 0),n=$(()=>{var a,o;const s=(a=r==null?void 0:r.max)==null?void 0:a.value,l=(o=r==null?void 0:r.min)==null?void 0:o.value;return!Qf(s)&&e.value.length>=s&&!t.value||!Qf(l)&&e.value.length<=l&&t.value});return{isDisabled:Xd($(()=>(r==null?void 0:r.disabled.value)||n.value)),isLimitDisabled:n}},Gz=(e,{model:t,isLimitExceeded:r,hasOwnLabel:n,isDisabled:i,isLabeledByFormItem:a})=>{const o=Oe(Bs,void 0),{formItem:s}=Gu(),{emit:l}=dt();function u(v){var p,g;return v===e.trueLabel||v===!0?(p=e.trueLabel)!=null?p:!0:(g=e.falseLabel)!=null?g:!1}function c(v,p){l("change",u(v),p)}function f(v){if(r.value)return;const p=v.target;l("change",u(p.checked),v)}async function d(v){r.value||!n.value&&!i.value&&a.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Rt(),c(t.value,v)))}const h=$(()=>(o==null?void 0:o.validateEvent)||e.validateEvent);return xe(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},Uz=e=>{const t=H(!1),{emit:r}=dt(),n=Oe(Bs,void 0),i=$(()=>Qf(n)===!1),a=H(!1);return{model:$({get(){var s,l;return i.value?(s=n==null?void 0:n.modelValue)==null?void 0:s.value:(l=e.modelValue)!=null?l:t.value},set(s){var l,u;i.value&&be(s)?(a.value=((l=n==null?void 0:n.max)==null?void 0:l.value)!==void 0&&s.length>(n==null?void 0:n.max.value),a.value===!1&&((u=n==null?void 0:n.changeEvent)==null||u.call(n,s))):(r(po,s),t.value=s)}}),isGroup:i,isLimitExceeded:a}},jz=(e,t,{model:r})=>{const n=Oe(Bs,void 0),i=H(!1),a=$(()=>{const u=r.value;return Br(u)?u:be(u)?Ke(e.label)?u.map(Je).some(c=>d$(c,e.label)):u.map(Je).includes(e.label):u!=null?u===e.trueLabel:!!u}),o=ra($(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value}),{prop:!0}),s=ra($(()=>{var u;return(u=n==null?void 0:n.size)==null?void 0:u.value})),l=$(()=>!!(t.default||e.label));return{checkboxButtonSize:o,isChecked:a,isFocused:i,checkboxSize:s,hasOwnLabel:l}},Yz=(e,{model:t})=>{function r(){be(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&r()},GM=(e,t)=>{const{formItem:r}=Gu(),{model:n,isGroup:i,isLimitExceeded:a}=Uz(e),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=jz(e,t,{model:n}),{isDisabled:f}=Vz({model:n,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=py(e,{formItemContext:r,disableIdGeneration:c,disableIdManagement:i}),{handleChange:v,onClickRoot:p}=Gz(e,{model:n,isLimitExceeded:a,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return Yz(e,{model:n}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:n,handleChange:v,onClickRoot:p}},qz=["tabindex","role","aria-checked"],Kz=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Xz=["id","aria-hidden","disabled","value","name","tabindex"],Zz=ce({name:"ElCheckbox"}),Qz=ce({...Zz,props:WM,emits:VM,setup(e){const t=e,r=zd(),{inputId:n,isLabeledByFormItem:i,isChecked:a,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=GM(t,r),h=Be("checkbox"),v=$(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",t.border),h.is("checked",a.value)]),p=$(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",a.value),h.is("indeterminate",t.indeterminate),h.is("focus",s.value)]);return(g,m)=>(U(),me(nn(!P(u)&&P(i)?"span":"label"),{class:le(P(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:P(d)},{default:Z(()=>[ae("span",{class:le(P(p)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?qt((U(),ye("input",{key:0,id:P(n),"onUpdate:modelValue":m[0]||(m[0]=y=>xt(c)?c.value=y:null),class:le(P(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:P(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:m[1]||(m[1]=(...y)=>P(f)&&P(f)(...y)),onFocus:m[2]||(m[2]=y=>s.value=!0),onBlur:m[3]||(m[3]=y=>s.value=!1)},null,42,Kz)),[[Uf,P(c)]]):qt((U(),ye("input",{key:1,id:P(n),"onUpdate:modelValue":m[4]||(m[4]=y=>xt(c)?c.value=y:null),class:le(P(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:P(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:m[5]||(m[5]=(...y)=>P(f)&&P(f)(...y)),onFocus:m[6]||(m[6]=y=>s.value=!0),onBlur:m[7]||(m[7]=y=>s.value=!1)},null,42,Xz)),[[Uf,P(c)]]),ae("span",{class:le(P(h).e("inner"))},null,2)],10,qz),P(u)?(U(),ye("span",{key:0,class:le(P(h).e("label"))},[Fe(g.$slots,"default"),g.$slots.default?ke("v-if",!0):(U(),ye(yt,{key:0},[Nt(Me(g.label),1)],64))],2)):ke("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Jz=Xe(Qz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const e6=["name","tabindex","disabled","true-value","false-value"],t6=["name","tabindex","disabled","value"],r6=ce({name:"ElCheckboxButton"}),n6=ce({...r6,props:WM,emits:VM,setup(e){const t=e,r=zd(),{isFocused:n,isChecked:i,isDisabled:a,checkboxButtonSize:o,model:s,handleChange:l}=GM(t,r),u=Oe(Bs,void 0),c=Be("checkbox"),f=$(()=>{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=$(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",a.value),c.is("checked",i.value),c.is("focus",n.value)]);return(h,v)=>(U(),ye("label",{class:le(P(d))},[h.trueLabel||h.falseLabel?qt((U(),ye("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>xt(s)?s.value=p:null),class:le(P(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:P(a),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>P(l)&&P(l)(...p)),onFocus:v[2]||(v[2]=p=>n.value=!0),onBlur:v[3]||(v[3]=p=>n.value=!1)},null,42,e6)),[[Uf,P(s)]]):qt((U(),ye("input",{key:1,"onUpdate:modelValue":v[4]||(v[4]=p=>xt(s)?s.value=p:null),class:le(P(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:P(a),value:h.label,onChange:v[5]||(v[5]=(...p)=>P(l)&&P(l)(...p)),onFocus:v[6]||(v[6]=p=>n.value=!0),onBlur:v[7]||(v[7]=p=>n.value=!1)},null,42,t6)),[[Uf,P(s)]]),h.$slots.default||h.label?(U(),ye("span",{key:2,class:le(P(c).be("button","inner")),style:St(P(i)?P(f):void 0)},[Fe(h.$slots,"default",{},()=>[Nt(Me(h.label),1)])],6)):ke("v-if",!0)],2))}});var UM=Xe(n6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const i6=rt({modelValue:{type:Pe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:Kd,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),a6={[po]:e=>be(e),change:e=>be(e)},o6=ce({name:"ElCheckboxGroup"}),s6=ce({...o6,props:i6,emits:a6,setup(e,{emit:t}){const r=e,n=Be("checkbox"),{formItem:i}=Gu(),{inputId:a,isLabeledByFormItem:o}=py(r,{formItemContext:i}),s=async u=>{t(po,u),await Rt(),t("change",u)},l=$({get(){return r.modelValue},set(u){s(u)}});return Tt(Bs,{...m$(Id(r),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),xe(()=>r.modelValue,()=>{r.validateEvent&&(i==null||i.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return U(),me(nn(u.tag),{id:P(a),class:le(P(n).b("group")),role:"group","aria-label":P(o)?void 0:u.label||"checkbox-group","aria-labelledby":P(o)?(f=P(i))==null?void 0:f.labelId:void 0},{default:Z(()=>[Fe(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var jM=Xe(s6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Cs=hr(Jz,{CheckboxButton:UM,CheckboxGroup:jM});la(UM);la(jM);const l6=rt({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Vu,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),u6={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},c6=ce({name:"ElTag"}),f6=ce({...c6,props:l6,emits:u6,setup(e,{emit:t}){const r=e,n=ra(),i=Be("tag"),a=$(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=r;return[i.b(),i.is("closable",f),i.m(l),i.m(n.value),i.m(c),i.is("hit",u),i.is("round",d)]}),o=l=>{t("close",l)},s=l=>{t("click",l)};return(l,u)=>l.disableTransitions?(U(),ye("span",{key:0,class:le(P(a)),style:St({backgroundColor:l.color}),onClick:s},[ae("span",{class:le(P(i).e("content"))},[Fe(l.$slots,"default")],2),l.closable?(U(),me(P(lr),{key:0,class:le(P(i).e("close")),onClick:jf(o,["stop"])},{default:Z(()=>[ee(P(Up))]),_:1},8,["class","onClick"])):ke("v-if",!0)],6)):(U(),me(Qn,{key:1,name:`${P(i).namespace.value}-zoom-in-center`,appear:""},{default:Z(()=>[ae("span",{class:le(P(a)),style:St({backgroundColor:l.color}),onClick:s},[ae("span",{class:le(P(i).e("content"))},[Fe(l.$slots,"default")],2),l.closable?(U(),me(P(lr),{key:0,class:le(P(i).e("close")),onClick:jf(o,["stop"])},{default:Z(()=>[ee(P(Up))]),_:1},8,["class","onClick"])):ke("v-if",!0)],6)]),_:3},8,["name"]))}});var d6=Xe(f6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const h6=hr(d6),v6=rt({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Pe([Number,Object]),default:()=>ja({})},sm:{type:Pe([Number,Object]),default:()=>ja({})},md:{type:Pe([Number,Object]),default:()=>ja({})},lg:{type:Pe([Number,Object]),default:()=>ja({})},xl:{type:Pe([Number,Object]),default:()=>ja({})}}),p6=ce({name:"ElCol"}),g6=ce({...p6,props:v6,setup(e){const t=e,{gutter:r}=Oe(nM,{gutter:$(()=>0)}),n=Be("col"),i=$(()=>{const o={};return r.value&&(o.paddingLeft=o.paddingRight=`${r.value/2}px`),o}),a=$(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];Yt(c)&&(u==="span"?o.push(n.b(`${t[u]}`)):c>0&&o.push(n.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{Yt(t[u])?o.push(n.b(`${u}-${t[u]}`)):Ke(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{o.push(c!=="span"?n.b(`${u}-${c}-${f}`):n.b(`${u}-${f}`))})}),r.value&&o.push(n.is("guttered")),[n.b(),o]});return(o,s)=>(U(),me(nn(o.tag),{class:le(P(a)),style:St(P(i))},{default:Z(()=>[Fe(o.$slots,"default")]),_:3},8,["class","style"]))}});var m6=Xe(g6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const YM=hr(m6),y6=ce({name:"ElCollapseTransition"}),_6=ce({...y6,setup(e){const t=Be("collapse-transition"),r={beforeEnter(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0},enter(n){n.dataset.oldOverflow=n.style.overflow,n.scrollHeight!==0?(n.style.maxHeight=`${n.scrollHeight}px`,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom):(n.style.maxHeight=0,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom),n.style.overflow="hidden"},afterEnter(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow},beforeLeave(n){n.dataset||(n.dataset={}),n.dataset.oldPaddingTop=n.style.paddingTop,n.dataset.oldPaddingBottom=n.style.paddingBottom,n.dataset.oldOverflow=n.style.overflow,n.style.maxHeight=`${n.scrollHeight}px`,n.style.overflow="hidden"},leave(n){n.scrollHeight!==0&&(n.style.maxHeight=0,n.style.paddingTop=0,n.style.paddingBottom=0)},afterLeave(n){n.style.maxHeight="",n.style.overflow=n.dataset.oldOverflow,n.style.paddingTop=n.dataset.oldPaddingTop,n.style.paddingBottom=n.dataset.oldPaddingBottom}};return(n,i)=>(U(),me(Qn,So({name:P(t).b()},gI(r)),{default:Z(()=>[Fe(n.$slots,"default")]),_:3},16,["name"]))}});var xf=Xe(_6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);xf.install=e=>{e.component(xf.name,xf)};const b6=xf,ag={},w6=rt({a11y:{type:Boolean,default:!0},locale:{type:Pe(Object)},size:Kd,button:{type:Pe(Object)},experimentalFeatures:{type:Pe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Pe(Object)},zIndex:Number,namespace:{type:String,default:"el"}});ce({name:"ElConfigProvider",props:w6,setup(e,{slots:t}){xe(()=>e.message,n=>{Object.assign(ag,n??{})},{immediate:!0,deep:!0});const r=b3(e);return()=>Fe(t,"default",{config:r==null?void 0:r.value})}});const S6=ce({inheritAttrs:!1});function x6(e,t,r,n,i,a){return Fe(e.$slots,"default")}var C6=Xe(S6,[["render",x6],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const T6=ce({name:"ElCollectionItem",inheritAttrs:!1});function M6(e,t,r,n,i,a){return Fe(e.$slots,"default")}var A6=Xe(T6,[["render",M6],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const E6="data-el-collection-item",P6=e=>{const t=`El${e}Collection`,r=`${t}Item`,n=Symbol(t),i=Symbol(r),a={...C6,name:t,setup(){const s=H(null),l=new Map;Tt(n,{itemMap:l,getItems:()=>{const c=P(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${E6}]`));return[...l.values()].sort((h,v)=>f.indexOf(h.ref)-f.indexOf(v.ref))},collectionRef:s})}},o={...A6,name:r,setup(s,{attrs:l}){const u=H(null),c=Oe(n,void 0);Tt(i,{collectionItemRef:u}),Mt(()=>{const f=P(u);f&&c.itemMap.set(f,{ref:f,...l})}),nr(()=>{const f=P(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:n,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:a,ElCollectionItem:o}},Vh=rt({trigger:pu.trigger,effect:{...Kr.effect,default:"light"},type:{type:Pe(String)},placement:{type:Pe(String),default:"bottom"},popperOptions:{type:Pe(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Pe([Number,String]),default:0},maxHeight:{type:Pe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Pe(Object)},teleported:Kr.teleported});rt({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Wn}});rt({onKeydown:{type:Pe(Function)}});Lt.down,Lt.pageDown,Lt.home;Lt.up,Lt.pageUp,Lt.end;P6("Dropdown");const L6=rt({model:Object,rules:{type:Pe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},size:{type:String,values:Vu},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),D6={validate:(e,t,r)=>(be(e)||ze(e))&&Br(t)&&ze(r)};function I6(){const e=H([]),t=$(()=>{if(!e.value.length)return"0";const a=Math.max(...e.value);return a?`${a}px`:""});function r(a){const o=e.value.indexOf(a);return o===-1&&t.value,o}function n(a,o){if(a&&o){const s=r(o);e.value.splice(s,1,a)}else a&&e.value.push(a)}function i(a){const o=r(a);o>-1&&e.value.splice(o,1)}return{autoLabelWidth:t,registerLabelWidth:n,deregisterLabelWidth:i}}const _c=(e,t)=>{const r=Rp(t);return r.length>0?e.filter(n=>n.prop&&r.includes(n.prop)):e},O6="ElForm",R6=ce({name:O6}),k6=ce({...R6,props:L6,emits:D6,setup(e,{expose:t,emit:r}){const n=e,i=[],a=ra(),o=Be("form"),s=$(()=>{const{labelPosition:y,inline:_}=n;return[o.b(),o.m(a.value||"default"),{[o.m(`label-${y}`)]:y,[o.m("inline")]:_}]}),l=y=>{i.push(y)},u=y=>{y.prop&&i.splice(i.indexOf(y),1)},c=(y=[])=>{n.model&&_c(i,y).forEach(_=>_.resetField())},f=(y=[])=>{_c(i,y).forEach(_=>_.clearValidate())},d=$(()=>!!n.model),h=y=>{if(i.length===0)return[];const _=_c(i,y);return _.length?_:[]},v=async y=>g(void 0,y),p=async(y=[])=>{if(!d.value)return!1;const _=h(y);if(_.length===0)return!0;let b={};for(const S of _)try{await S.validate("")}catch(w){b={...b,...w}}return Object.keys(b).length===0?!0:Promise.reject(b)},g=async(y=[],_)=>{const b=!Le(_);try{const S=await p(y);return S===!0&&(_==null||_(S)),S}catch(S){if(S instanceof Error)throw S;const w=S;return n.scrollToError&&m(Object.keys(w)[0]),_==null||_(!1,w),b&&Promise.reject(w)}},m=y=>{var _;const b=_c(i,y)[0];b&&((_=b.$el)==null||_.scrollIntoView())};return xe(()=>n.rules,()=>{n.validateOnRuleChange&&v().catch(y=>void 0)},{deep:!0}),Tt(Fs,fn({...Id(n),emit:r,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...I6()})),t({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:m}),(y,_)=>(U(),ye("form",{class:le(P(s))},[Fe(y.$slots,"default")],2))}});var N6=Xe(k6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Za(){return Za=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 Cf(e,t,r){return F6()?Cf=Reflect.construct.bind():Cf=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&gu(u,o.prototype),u},Cf.apply(null,arguments)}function $6(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function sg(e){var t=typeof Map=="function"?new Map:void 0;return sg=function(n){if(n===null||!$6(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return Cf(n,arguments,og(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),gu(i,n)},sg(e)}var H6=/%[sdj%]/g,z6=function(){};typeof process<"u"&&process.env;function lg(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Rr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=a)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function W6(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Ft(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||W6(t)&&typeof e=="string"&&!e)}function V6(e,t,r){var n=[],i=0,a=e.length;function o(s){n.push.apply(n,s||[]),i++,i===a&&r(n)}e.forEach(function(s){t(s,o)})}function t1(e,t,r){var n=0,i=e.length;function a(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s()\[\]\\.,;:\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},_l={integer:function(t){return _l.number(t)&&parseInt(t,10)===t},float:function(t){return _l.number(t)&&!_l.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"&&!_l.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(a1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(K6())},hex:function(t){return typeof t=="string"&&!!t.match(a1.hex)}},X6=function(t,r,n,i,a){if(t.required&&r===void 0){qM(t,r,n,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?_l[s](r)||i.push(Rr(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(Rr(a.messages.types[s],t.fullField,t.type))},Z6=function(t,r,n,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,f=null,d=typeof r=="number",h=typeof r=="string",v=Array.isArray(r);if(d?f="number":h?f="string":v&&(f="array"),!f)return!1;v&&(c=r.length),h&&(c=r.replace(u,"_").length),o?c!==t.len&&i.push(Rr(a.messages[f].len,t.fullField,t.len)):s&&!l&&ct.max?i.push(Rr(a.messages[f].max,t.fullField,t.max)):s&&l&&(ct.max)&&i.push(Rr(a.messages[f].range,t.fullField,t.min,t.max))},Do="enum",Q6=function(t,r,n,i,a){t[Do]=Array.isArray(t[Do])?t[Do]:[],t[Do].indexOf(r)===-1&&i.push(Rr(a.messages[Do],t.fullField,t[Do].join(", ")))},J6=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(Rr(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||i.push(Rr(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Ye={required:qM,whitespace:q6,type:X6,range:Z6,enum:Q6,pattern:J6},e8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r,"string")&&!t.required)return n();Ye.required(t,r,i,o,a,"string"),Ft(r,"string")||(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a),Ye.pattern(t,r,i,o,a),t.whitespace===!0&&Ye.whitespace(t,r,i,o,a))}n(o)},t8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},r8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},n8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},i8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),Ft(r)||Ye.type(t,r,i,o,a)}n(o)},a8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},o8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},s8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Ye.required(t,r,i,o,a,"array"),r!=null&&(Ye.type(t,r,i,o,a),Ye.range(t,r,i,o,a))}n(o)},l8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye.type(t,r,i,o,a)}n(o)},u8="enum",c8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a),r!==void 0&&Ye[u8](t,r,i,o,a)}n(o)},f8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r,"string")&&!t.required)return n();Ye.required(t,r,i,o,a),Ft(r,"string")||Ye.pattern(t,r,i,o,a)}n(o)},d8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r,"date")&&!t.required)return n();if(Ye.required(t,r,i,o,a),!Ft(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Ye.type(t,l,i,o,a),l&&Ye.range(t,l.getTime(),i,o,a)}}n(o)},h8=function(t,r,n,i,a){var o=[],s=Array.isArray(r)?"array":typeof r;Ye.required(t,r,i,o,a,s),n(o)},Gh=function(t,r,n,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(Ft(r,o)&&!t.required)return n();Ye.required(t,r,i,s,a,o),Ft(r,o)||Ye.type(t,r,i,s,a)}n(s)},v8=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(Ft(r)&&!t.required)return n();Ye.required(t,r,i,o,a)}n(o)},kl={string:e8,method:t8,number:r8,boolean:n8,regexp:i8,integer:a8,float:o8,array:s8,object:l8,enum:c8,pattern:f8,date:d8,url:Gh,hex:Gh,email:Gh,required:h8,any:v8};function ug(){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 cg=ug(),qu=function(){function e(r){this.rules=null,this._messages=cg,this.define(r)}var t=e.prototype;return t.define=function(n){var i=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];i.rules[a]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=i1(ug(),n)),this._messages},t.validate=function(n,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var s=n,l=i,u=a;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(p){var g=[],m={};function y(b){if(Array.isArray(b)){var S;g=(S=g).concat.apply(S,b)}else g.push(b)}for(var _=0;_");const i=Be("form"),a=H(),o=H(0),s=()=>{var c;if((c=a.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(a.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{Rt(()=>{t.default&&e.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(r==null||r.deregisterLabelWidth(o.value)))})},u=()=>l("update");return Mt(()=>{u()}),nr(()=>{l("remove")}),Fd(()=>u()),xe(o,(c,f)=>{e.updateAll&&(r==null||r.registerLabelWidth(c,f))}),ms($(()=>{var c,f;return(f=(c=a.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=r==null?void 0:r.autoLabelWidth,v=n==null?void 0:n.hasLabel,p={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),m=r.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[m]=`${g}px`)}return ee("div",{ref:a,class:[i.be("item","label-wrap")],style:p},[(c=t.default)==null?void 0:c.call(t)])}else return ee(yt,{ref:a},[(f=t.default)==null?void 0:f.call(t)])}}});const y8=["role","aria-labelledby"],_8=ce({name:"ElFormItem"}),b8=ce({..._8,props:g8,setup(e,{expose:t}){const r=e,n=zd(),i=Oe(Fs,void 0),a=Oe(go,void 0),o=ra(void 0,{formItem:!1}),s=Be("form-item"),l=vy().value,u=H([]),c=H(""),f=T$(c,100),d=H(""),h=H();let v,p=!1;const g=$(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const W=vo(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return W?{width:W}:{}}),m=$(()=>{if((i==null?void 0:i.labelPosition)==="top"||i!=null&&i.inline)return{};if(!r.label&&!r.labelWidth&&T)return{};const W=vo(r.labelWidth||(i==null?void 0:i.labelWidth)||"");return!r.label&&!n.label?{marginLeft:W}:{}}),y=$(()=>[s.b(),s.m(o.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",R.value||r.required),s.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:i==null?void 0:i.statusIcon}]),_=$(()=>Br(r.inlineMessage)?r.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),b=$(()=>[s.e("error"),{[s.em("error","inline")]:_.value}]),S=$(()=>r.prop?ze(r.prop)?r.prop:r.prop.join("."):""),w=$(()=>!!(r.label||n.label)),x=$(()=>r.for||u.value.length===1?u.value[0]:void 0),C=$(()=>!x.value&&w.value),T=!!a,E=$(()=>{const W=i==null?void 0:i.model;if(!(!W||!r.prop))return mf(W,r.prop).value}),A=$(()=>{const{required:W}=r,Y=[];r.rules&&Y.push(...Rp(r.rules));const ue=i==null?void 0:i.rules;if(ue&&r.prop){const he=mf(ue,r.prop).value;he&&Y.push(...Rp(he))}if(W!==void 0){const he=Y.map((Q,L)=>[Q,L]).filter(([Q])=>Object.keys(Q).includes("required"));if(he.length>0)for(const[Q,L]of he)Q.required!==W&&(Y[L]={...Q,required:W});else Y.push({required:W})}return Y}),M=$(()=>A.value.length>0),D=W=>A.value.filter(ue=>!ue.trigger||!W?!0:Array.isArray(ue.trigger)?ue.trigger.includes(W):ue.trigger===W).map(({trigger:ue,...he})=>he),R=$(()=>A.value.some(W=>W.required)),k=$(()=>{var W;return f.value==="error"&&r.showMessage&&((W=i==null?void 0:i.showMessage)!=null?W:!0)}),F=$(()=>`${r.label||""}${(i==null?void 0:i.labelSuffix)||""}`),K=W=>{c.value=W},B=W=>{var Y,ue;const{errors:he,fields:Q}=W;(!he||!Q)&&console.error(W),K("error"),d.value=he?(ue=(Y=he==null?void 0:he[0])==null?void 0:Y.message)!=null?ue:`${r.prop} is required`:"",i==null||i.emit("validate",r.prop,!1,d.value)},N=()=>{K("success"),i==null||i.emit("validate",r.prop,!0,"")},j=async W=>{const Y=S.value;return new qu({[Y]:W}).validate({[Y]:E.value},{firstFields:!0}).then(()=>(N(),!0)).catch(he=>(B(he),Promise.reject(he)))},re=async(W,Y)=>{if(p||!r.prop)return!1;const ue=Le(Y);if(!M.value)return Y==null||Y(!1),!1;const he=D(W);return he.length===0?(Y==null||Y(!0),!0):(K("validating"),j(he).then(()=>(Y==null||Y(!0),!0)).catch(Q=>{const{fields:L}=Q;return Y==null||Y(!1,L),ue?!1:Promise.reject(L)}))},oe=()=>{K(""),d.value="",p=!1},_e=async()=>{const W=i==null?void 0:i.model;if(!W||!r.prop)return;const Y=mf(W,r.prop);p=!0,Y.value=eb(v),await Rt(),oe(),p=!1},Ee=W=>{u.value.includes(W)||u.value.push(W)},V=W=>{u.value=u.value.filter(Y=>Y!==W)};xe(()=>r.error,W=>{d.value=W||"",K(W?"error":"")},{immediate:!0}),xe(()=>r.validateStatus,W=>K(W||""));const J=fn({...Id(r),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:C,hasLabel:w,addInputId:Ee,removeInputId:V,resetField:_e,clearValidate:oe,validate:re});return Tt(go,J),Mt(()=>{r.prop&&(i==null||i.addField(J),v=eb(E.value))}),nr(()=>{i==null||i.removeField(J)}),t({size:o,validateMessage:d,validateState:c,validate:re,clearValidate:oe,resetField:_e}),(W,Y)=>{var ue;return U(),ye("div",{ref_key:"formItemRef",ref:h,class:le(P(y)),role:P(C)?"group":void 0,"aria-labelledby":P(C)?P(l):void 0},[ee(P(m8),{"is-auto-width":P(g).width==="auto","update-all":((ue=P(i))==null?void 0:ue.labelWidth)==="auto"},{default:Z(()=>[P(w)?(U(),me(nn(P(x)?"label":"div"),{key:0,id:P(l),for:P(x),class:le(P(s).e("label")),style:St(P(g))},{default:Z(()=>[Fe(W.$slots,"label",{label:P(F)},()=>[Nt(Me(P(F)),1)])]),_:3},8,["id","for","class","style"])):ke("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ae("div",{class:le(P(s).e("content")),style:St(P(m))},[Fe(W.$slots,"default"),ee(Qn,{name:`${P(s).namespace.value}-zoom-in-top`},{default:Z(()=>[P(k)?Fe(W.$slots,"error",{key:0,error:d.value},()=>[ae("div",{class:le(P(b))},Me(d.value),3)]):ke("v-if",!0)]),_:3},8,["name"])],6)],10,y8)}}});var KM=Xe(b8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const XM=hr(N6,{FormItem:KM}),ZM=la(KM);let w8=class{constructor(t,r){this.parent=t,this.domNode=r,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,r=>{r.addEventListener("keydown",n=>{let i=!1;switch(n.code){case Lt.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Lt.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Lt.tab:{gf(t,"mouseleave");break}case Lt.enter:case Lt.space:{i=!0,n.currentTarget.click();break}}return i&&(n.preventDefault(),n.stopPropagation()),!1})})}},S8=class{constructor(t,r){this.domNode=t,this.submenu=null,this.submenu=null,this.init(r)}init(t){this.domNode.setAttribute("tabindex","0");const r=this.domNode.querySelector(`.${t}-menu`);r&&(this.submenu=new w8(this,r)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let r=!1;switch(t.code){case Lt.down:{gf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case Lt.up:{gf(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case Lt.tab:{gf(t.currentTarget,"mouseleave");break}case Lt.enter:case Lt.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}},x8=class{constructor(t,r){this.domNode=t,this.init(r)}init(t){const r=this.domNode.childNodes;Array.from(r).forEach(n=>{n.nodeType===1&&new S8(n,t)})}};const C8=ce({name:"ElMenuCollapseTransition",setup(){const e=Be("menu");return{listeners:{onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,n){Zo(r,`${e.namespace.value}-opacity-transition`),r.style.opacity="1",n()},onAfterEnter(r){ss(r,`${e.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),Il(r,e.m("collapse"))?(ss(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Zo(r,e.m("collapse"))):(Zo(r,e.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),ss(r,e.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Zo(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}}}}});function T8(e,t,r,n,i,a){return U(),me(Qn,So({mode:"out-in"},e.listeners),{default:Z(()=>[Fe(e.$slots,"default")]),_:3},16)}var M8=Xe(C8,[["render",T8],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function QM(e,t){const r=$(()=>{let i=e.parent;const a=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&a.unshift(i.props.index),i=i.parent;return a});return{parentMenu:$(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:r}}function A8(e){return $(()=>{const r=e.backgroundColor;return r?new OM(r).shade(20).toString():""})}const JM=(e,t)=>{const r=Be("menu");return $(()=>r.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":A8(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},E8=rt({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Wn},expandOpenIcon:{type:Wn},collapseCloseIcon:{type:Wn},collapseOpenIcon:{type:Wn}}),Uh="ElSubMenu";var Ey=ce({name:Uh,props:E8,setup(e,{slots:t,expose:r}){const n=dt(),{indexPath:i,parentMenu:a}=QM(n,$(()=>e.index)),o=Be("menu"),s=Be("sub-menu"),l=Oe("rootMenu");l||ta(Uh,"can not inject root menu");const u=Oe(`subMenu:${a.value.uid}`);u||ta(Uh,"can not inject sub menu");const c=H({}),f=H({});let d;const h=H(!1),v=H(),p=H(null),g=$(()=>A.value==="horizontal"&&y.value?"bottom-start":"right-start"),m=$(()=>A.value==="horizontal"&&y.value||A.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?w.value?e.expandOpenIcon:e.expandCloseIcon:KT:e.collapseCloseIcon&&e.collapseOpenIcon?w.value?e.collapseOpenIcon:e.collapseCloseIcon:uy),y=$(()=>u.level===0),_=$(()=>e.popperAppendToBody===void 0?y.value:Boolean(e.popperAppendToBody)),b=$(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),S=$(()=>A.value==="horizontal"&&y.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),w=$(()=>l.openedMenus.includes(e.index)),x=$(()=>{let N=!1;return Object.values(c.value).forEach(j=>{j.active&&(N=!0)}),Object.values(f.value).forEach(j=>{j.active&&(N=!0)}),N}),C=$(()=>l.props.backgroundColor||""),T=$(()=>l.props.activeTextColor||""),E=$(()=>l.props.textColor||""),A=$(()=>l.props.mode),M=fn({index:e.index,indexPath:i,active:x}),D=$(()=>A.value!=="horizontal"?{color:E.value}:{borderBottomColor:x.value?l.props.activeTextColor?T.value:"":"transparent",color:x.value?T.value:E.value}),R=()=>{var N,j,re;return(re=(j=(N=p.value)==null?void 0:N.popperRef)==null?void 0:j.popperInstanceRef)==null?void 0:re.destroy()},k=N=>{N||R()},F=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:i.value,active:x.value})},K=(N,j=e.showTimeout)=>{var re;N.type!=="focus"&&(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,d==null||d(),{stop:d}=Wp(()=>{l.openMenu(e.index,i.value)},j),_.value&&((re=a.value.vnode.el)==null||re.dispatchEvent(new MouseEvent("mouseenter")))))},B=(N=!1)=>{var j,re;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=Wp(()=>!h.value&&l.closeMenu(e.index,i.value),e.hideTimeout),_.value&&N&&((j=n.parent)==null?void 0:j.type.name)==="ElSubMenu"&&((re=u.handleMouseleave)==null||re.call(u,!0)))};xe(()=>l.props.collapse,N=>k(Boolean(N)));{const N=re=>{f.value[re.index]=re},j=re=>{delete f.value[re.index]};Tt(`subMenu:${n.uid}`,{addSubMenu:N,removeSubMenu:j,handleMouseleave:B,mouseInChild:h,level:u.level+1})}return r({opened:w}),Mt(()=>{l.addSubMenu(M),u.addSubMenu(M)}),nr(()=>{u.removeSubMenu(M),l.removeSubMenu(M)}),()=>{var N;const j=[(N=t.title)==null?void 0:N.call(t),Ce(lr,{class:s.e("icon-arrow"),style:{transform:w.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>ze(m.value)?Ce(n.appContext.components[m.value]):Ce(m.value)})],re=JM(l.props,u.level+1),oe=l.isMenuPopup?Ce(Yu,{ref:p,visible:w.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:_.value,fallbackPlacements:S.value,transition:b.value,gpuAcceleration:!1},{content:()=>{var _e;return Ce("div",{class:[o.m(A.value),o.m("popup-container"),e.popperClass],onMouseenter:Ee=>K(Ee,100),onMouseleave:()=>B(!0),onFocus:Ee=>K(Ee,100)},[Ce("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:re.value},[(_e=t.default)==null?void 0:_e.call(t)])])},default:()=>Ce("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],onClick:F},j)}):Ce(yt,{},[Ce("div",{class:s.e("title"),style:[D.value,{backgroundColor:C.value}],ref:v,onClick:F},j),Ce(b6,{},{default:()=>{var _e;return qt(Ce("ul",{role:"menu",class:[o.b(),o.m("inline")],style:re.value},[(_e=t.default)==null?void 0:_e.call(t)]),[[mi,w.value]])}})]);return Ce("li",{class:[s.b(),s.is("active",x.value),s.is("opened",w.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:w.value,onMouseenter:K,onMouseleave:()=>B(!0),onFocus:K},[oe])}}});const P8=rt({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Pe(Array),default:()=>ja([])},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"}}),jh=e=>Array.isArray(e)&&e.every(t=>ze(t)),L8={close:(e,t)=>ze(e)&&jh(t),open:(e,t)=>ze(e)&&jh(t),select:(e,t,r,n)=>ze(e)&&jh(t)&&Ke(r)&&(n===void 0||n instanceof Promise)};var D8=ce({name:"ElMenu",props:P8,emits:L8,setup(e,{emit:t,slots:r,expose:n}){const i=dt(),a=i.appContext.config.globalProperties.$router,o=H(),s=Be("menu"),l=Be("sub-menu"),u=H(-1),c=H(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=H(e.defaultActive),d=H({}),h=H({}),v=$(()=>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(M=>{const D=h.value[M];D&&g(M,D.indexPath)})},g=(E,A)=>{c.value.includes(E)||(e.uniqueOpened&&(c.value=c.value.filter(M=>A.includes(M))),c.value.push(E),t("open",E,A))},m=(E,A)=>{const M=c.value.indexOf(E);M!==-1&&c.value.splice(M,1),t("close",E,A)},y=({index:E,indexPath:A})=>{c.value.includes(E)?m(E,A):g(E,A)},_=E=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:A,indexPath:M}=E;if(!(A===void 0||M===void 0))if(e.router&&a){const D=E.route||A,R=a.push(D).then(k=>(k||(f.value=A),k));t("select",A,M,{index:A,indexPath:M,route:D},R)}else f.value=A,t("select",A,M,{index:A,indexPath:M})},b=E=>{const A=d.value,M=A[E]||f.value&&A[f.value]||A[e.defaultActive];M?f.value=M.index:f.value=E},S=()=>{var E,A;if(!o.value)return-1;const M=Array.from((A=(E=o.value)==null?void 0:E.childNodes)!=null?A:[]).filter(N=>N.nodeName!=="#text"||N.nodeValue),D=64,R=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),k=Number.parseInt(getComputedStyle(o.value).paddingRight,10),F=o.value.clientWidth-R-k;let K=0,B=0;return M.forEach((N,j)=>{K+=N.offsetWidth||0,K<=F-D&&(B=j+1)}),B===M.length?-1:B},w=(E,A=33.34)=>{let M;return()=>{M&&clearTimeout(M),M=setTimeout(()=>{E()},A)}};let x=!0;const C=()=>{const E=()=>{u.value=-1,Rt(()=>{u.value=S()})};x?E():w(E)(),x=!1};xe(()=>e.defaultActive,E=>{d.value[E]||(f.value=""),b(E)}),xe(()=>e.collapse,E=>{E&&(c.value=[])}),xe(d.value,p);let T;no(()=>{e.mode==="horizontal"&&e.ellipsis?T=ms(o,C).stop:T==null||T()});{const E=R=>{h.value[R.index]=R},A=R=>{delete h.value[R.index]};Tt("rootMenu",fn({props:e,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:v,addMenuItem:R=>{d.value[R.index]=R},removeMenuItem:R=>{delete d.value[R.index]},addSubMenu:E,removeSubMenu:A,openMenu:g,closeMenu:m,handleMenuItemClick:_,handleSubMenuClick:y})),Tt(`subMenu:${i.uid}`,{addSubMenu:E,removeSubMenu:A,mouseInChild:H(!1),level:0})}return Mt(()=>{e.mode==="horizontal"&&new x8(i.vnode.el,s.namespace.value)}),n({open:A=>{const{indexPath:M}=h.value[A];M.forEach(D=>g(D,M))},close:m,handleResize:C}),()=>{var E,A;let M=(A=(E=r.default)==null?void 0:E.call(r))!=null?A:[];const D=[];if(e.mode==="horizontal"&&o.value){const F=yf(M),K=u.value===-1?F:F.slice(0,u.value),B=u.value===-1?[]:F.slice(u.value);B!=null&&B.length&&e.ellipsis&&(M=K,D.push(Ce(Ey,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>Ce(lr,{class:l.e("icon-more")},{default:()=>Ce(i3)}),default:()=>B})))}const R=JM(e,0),k=Ce("ul",{key:String(e.collapse),role:"menubar",ref:o,style:R.value,class:{[s.b()]:!0,[s.m(e.mode)]:!0,[s.m("collapse")]:e.collapse}},[...M,...D]);return e.collapseTransition&&e.mode==="vertical"?Ce(M8,()=>k):k}}});const I8=rt({index:{type:Pe([String,null]),default:null},route:{type:Pe([String,Object])},disabled:Boolean}),O8={click:e=>ze(e.index)&&Array.isArray(e.indexPath)},Yh="ElMenuItem",R8=ce({name:Yh,components:{ElTooltip:Yu},props:I8,emits:O8,setup(e,{emit:t}){const r=dt(),n=Oe("rootMenu"),i=Be("menu"),a=Be("menu-item");n||ta(Yh,"can not inject root menu");const{parentMenu:o,indexPath:s}=QM(r,Tn(e,"index")),l=Oe(`subMenu:${o.value.uid}`);l||ta(Yh,"can not inject sub menu");const u=$(()=>e.index===n.activeIndex),c=fn({index:e.index,indexPath:s,active:u}),f=()=>{e.disabled||(n.handleMenuItemClick({index:e.index,indexPath:s.value,route:e.route}),t("click",c))};return Mt(()=>{l.addSubMenu(c),n.addMenuItem(c)}),nr(()=>{l.removeSubMenu(c),n.removeMenuItem(c)}),{parentMenu:o,rootMenu:n,active:u,nsMenu:i,nsMenuItem:a,handleClick:f}}});function k8(e,t,r,n,i,a){const o=_r("el-tooltip");return U(),ye("li",{class:le([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?(U(),me(o,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:Z(()=>[Fe(e.$slots,"title")]),default:Z(()=>[ae("div",{class:le(e.nsMenu.be("tooltip","trigger"))},[Fe(e.$slots,"default")],2)]),_:3},8,["effect"])):(U(),ye(yt,{key:1},[Fe(e.$slots,"default"),Fe(e.$slots,"title")],64))],2)}var eA=Xe(R8,[["render",k8],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const N8={title:String},B8="ElMenuItemGroup",F8=ce({name:B8,props:N8,setup(){return{ns:Be("menu-item-group")}}});function $8(e,t,r,n,i,a){return U(),ye("li",{class:le(e.ns.b())},[ae("div",{class:le(e.ns.e("title"))},[e.$slots.title?Fe(e.$slots,"title",{key:1}):(U(),ye(yt,{key:0},[Nt(Me(e.title),1)],64))],2),ae("ul",null,[Fe(e.$slots,"default")])],2)}var tA=Xe(F8,[["render",$8],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const H8=hr(D8,{MenuItem:eA,MenuItemGroup:tA,SubMenu:Ey}),z8=la(eA);la(tA);const W8=la(Ey),V8=rt({trigger:pu.trigger,placement:Vh.placement,disabled:pu.disabled,visible:Kr.visible,transition:Kr.transition,popperOptions:Vh.popperOptions,tabindex:Vh.tabindex,content:Kr.content,popperStyle:Kr.popperStyle,popperClass:Kr.popperClass,enterable:{...Kr.enterable,default:!0},effect:{...Kr.effect,default:"light"},teleported:Kr.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}}),G8={"update:visible":e=>Br(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},U8="onUpdate:visible",j8=ce({name:"ElPopover"}),Y8=ce({...j8,props:V8,emits:G8,setup(e,{expose:t,emit:r}){const n=e,i=$(()=>n[U8]),a=Be("popover"),o=H(),s=$(()=>{var g;return(g=P(o))==null?void 0:g.popperRef}),l=$(()=>[{width:vo(n.width)},n.popperStyle]),u=$(()=>[a.b(),n.popperClass,{[a.m("plain")]:!!n.content}]),c=$(()=>n.transition===`${a.namespace.value}-fade-in-linear`),f=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{r("before-enter")},h=()=>{r("before-leave")},v=()=>{r("after-enter")},p=()=>{r("update:visible",!1),r("after-leave")};return t({popperRef:s,hide:f}),(g,m)=>(U(),me(P(Yu),So({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":P(u),"popper-style":P(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":P(c),"onUpdate:visible":P(i),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:Z(()=>[g.title?(U(),ye("div",{key:0,class:le(P(a).e("title")),role:"title"},Me(g.title),3)):ke("v-if",!0),Fe(g.$slots,"default",{},()=>[Nt(Me(g.content),1)])]),default:Z(()=>[g.$slots.reference?Fe(g.$slots,"reference",{key:0}):ke("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 q8=Xe(Y8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const s1=(e,t)=>{const r=t.arg||t.value,n=r==null?void 0:r.popperRef;n&&(n.triggerRef=e)};var K8={mounted(e,t){s1(e,t)},updated(e,t){s1(e,t)}};const X8="popover",Z8=y3(K8,X8),Q8=hr(q8,{directive:Z8}),J8=["start","center","end","space-around","space-between","space-evenly"],eW=["top","middle","bottom"],tW=rt({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:J8,default:"start"},align:{type:String,values:eW,default:"top"}}),rW=ce({name:"ElRow"}),nW=ce({...rW,props:tW,setup(e){const t=e,r=Be("row"),n=$(()=>t.gutter);Tt(nM,{gutter:n});const i=$(()=>{const o={};return t.gutter&&(o.marginRight=o.marginLeft=`-${t.gutter/2}px`),o}),a=$(()=>[r.b(),r.is(`justify-${t.justify}`,t.justify!=="start"),r.is(`align-${t.align}`,t.align!=="top")]);return(o,s)=>(U(),me(nn(o.tag),{class:le(P(a)),style:St(P(i))},{default:Z(()=>[Fe(o.$slots,"default")]),_:3},8,["class","style"]))}});var iW=Xe(nW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const rA=hr(iW),aW=rt({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Wn},inactiveIcon:{type:Wn},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Pe(Function)},size:{type:String,validator:_3},tabindex:{type:[String,Number]}}),oW={[po]:e=>Br(e)||ze(e)||Yt(e),[jp]:e=>Br(e)||ze(e)||Yt(e),[Yp]:e=>Br(e)||ze(e)||Yt(e)},sW=["onClick"],lW=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],uW=["aria-hidden"],cW=["aria-hidden"],fW=["aria-hidden"],fg="ElSwitch",dW=ce({name:fg}),hW=ce({...dW,props:aW,emits:oW,setup(e,{expose:t,emit:r}){const n=e,i=dt(),{formItem:a}=Gu(),o=ra(),s=Be("switch");sM({from:'"value"',replacement:'"model-value" or "v-model"',scope:fg,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},$(()=>{var S;return!!((S=i.vnode.props)!=null&&S.value)}));const{inputId:l}=py(n,{formItemContext:a}),u=Xd($(()=>n.loading)),c=H(n.modelValue!==!1),f=H(),d=H(),h=$(()=>[s.b(),s.m(o.value),s.is("disabled",u.value),s.is("checked",g.value)]),v=$(()=>({width:vo(n.width)}));xe(()=>n.modelValue,()=>{c.value=!0}),xe(()=>n.value,()=>{c.value=!1});const p=$(()=>c.value?n.modelValue:n.value),g=$(()=>p.value===n.activeValue);[n.activeValue,n.inactiveValue].includes(p.value)||(r(po,n.inactiveValue),r(jp,n.inactiveValue),r(Yp,n.inactiveValue)),xe(g,S=>{var w;f.value.checked=S,n.validateEvent&&((w=a==null?void 0:a.validate)==null||w.call(a,"change").catch(x=>void 0))});const m=()=>{const S=g.value?n.inactiveValue:n.activeValue;r(po,S),r(jp,S),r(Yp,S),Rt(()=>{f.value.checked=g.value})},y=()=>{if(u.value)return;const{beforeChange:S}=n;if(!S){m();return}const w=S();[Hf(w),Br(w)].includes(!0)||ta(fg,"beforeChange must return type `Promise` or `boolean`"),Hf(w)?w.then(C=>{C&&m()}).catch(C=>{}):w&&m()},_=$(()=>s.cssVarBlock({...n.activeColor?{"on-color":n.activeColor}:null,...n.inactiveColor?{"off-color":n.inactiveColor}:null,...n.borderColor?{"border-color":n.borderColor}:null})),b=()=>{var S,w;(w=(S=f.value)==null?void 0:S.focus)==null||w.call(S)};return Mt(()=>{f.value.checked=g.value}),t({focus:b,checked:g}),(S,w)=>(U(),ye("div",{class:le(P(h)),style:St(P(_)),onClick:jf(y,["prevent"])},[ae("input",{id:P(l),ref_key:"input",ref:f,class:le(P(s).e("input")),type:"checkbox",role:"switch","aria-checked":P(g),"aria-disabled":P(u),name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:P(u),tabindex:S.tabindex,onChange:m,onKeydown:xO(y,["enter"])},null,42,lW),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText)?(U(),ye("span",{key:0,class:le([P(s).e("label"),P(s).em("label","left"),P(s).is("active",!P(g))])},[S.inactiveIcon?(U(),me(P(lr),{key:0},{default:Z(()=>[(U(),me(nn(S.inactiveIcon)))]),_:1})):ke("v-if",!0),!S.inactiveIcon&&S.inactiveText?(U(),ye("span",{key:1,"aria-hidden":P(g)},Me(S.inactiveText),9,uW)):ke("v-if",!0)],2)):ke("v-if",!0),ae("span",{ref_key:"core",ref:d,class:le(P(s).e("core")),style:St(P(v))},[S.inlinePrompt?(U(),ye("div",{key:0,class:le(P(s).e("inner"))},[S.activeIcon||S.inactiveIcon?(U(),me(P(lr),{key:0,class:le(P(s).is("icon"))},{default:Z(()=>[(U(),me(nn(P(g)?S.activeIcon:S.inactiveIcon)))]),_:1},8,["class"])):S.activeText||S.inactiveText?(U(),ye("span",{key:1,class:le(P(s).is("text")),"aria-hidden":!P(g)},Me(P(g)?S.activeText:S.inactiveText),11,cW)):ke("v-if",!0)],2)):ke("v-if",!0),ae("div",{class:le(P(s).e("action"))},[S.loading?(U(),me(P(lr),{key:0,class:le(P(s).is("loading"))},{default:Z(()=>[ee(P(cy))]),_:1},8,["class"])):ke("v-if",!0)],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText)?(U(),ye("span",{key:1,class:le([P(s).e("label"),P(s).em("label","right"),P(s).is("active",P(g))])},[S.activeIcon?(U(),me(P(lr),{key:0},{default:Z(()=>[(U(),me(nn(S.activeIcon)))]),_:1})):ke("v-if",!0),!S.activeIcon&&S.activeText?(U(),ye("span",{key:1,"aria-hidden":!P(g)},Me(S.activeText),9,fW)):ke("v-if",!0)],2)):ke("v-if",!0)],14,sW))}});var vW=Xe(hW,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const pW=hr(vW);/*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */var gW=/["'&<>]/,mW=yW;function yW(e){var t=""+e,r=gW.exec(t);if(!r)return t;var n,i="",a=0,o=0;for(a=r.index;atypeof u=="string"?fu(s,u):u(s,l,e))):(t!=="$key"&&Ke(s)&&"$value"in s&&(s=s.$value),[Ke(s)?fu(s,t):s])},o=function(s,l){if(n)return n(s.value,l.value);for(let u=0,c=s.key.length;ul.key[u])return 1}return 0};return e.map((s,l)=>({value:s,index:l,key:a?a(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+r}).map(s=>s.value)},nA=function(e,t){let r=null;return e.columns.forEach(n=>{n.id===t&&(r=n)}),r},bW=function(e,t){let r=null;for(let n=0;n{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const r=t.split(".");let n=e;for(const i of r)n=n[i];return`${n}`}else if(typeof t=="function")return t.call(null,e)},Qa=function(e,t){const r={};return(e||[]).forEach((n,i)=>{r[Ut(n,t)]={row:n,index:i}}),r};function wW(e,t){const r={};let n;for(n in e)r[n]=e[n];for(n in t)if(Ve(t,n)){const i=t[n];typeof i<"u"&&(r[n]=i)}return r}function Py(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function iA(e){return e===""||e!==void 0&&(e=Py(e),Number.isNaN(e)&&(e=80)),e}function SW(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function xW(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function Nl(e,t,r){let n=!1;const i=e.indexOf(t),a=i!==-1,o=s=>{s==="add"?e.push(t):e.splice(i,1),n=!0,be(t.children)&&t.children.forEach(l=>{Nl(e,l,r??!a)})};return Br(r)?r&&!a?o("add"):!r&&a&&o("remove"):o(a?"remove":"add"),n}function CW(e,t,r="children",n="hasChildren"){const i=o=>!(Array.isArray(o)&&o.length);function a(o,s,l){t(o,s,l),s.forEach(u=>{if(u[n]){t(u,null,l+1);return}const c=u[r];i(c)||a(u,c,l+1)})}e.forEach(o=>{if(o[n]){t(o,null,0);return}const s=o[r];i(s)||a(o,s,0)})}let li;function TW(e,t,r,n){n=FT({enterable:!0,showArrow:!0},n);const{nextZIndex:i}=Ty(),a=e==null?void 0:e.dataset.prefix,o=e==null?void 0:e.querySelector(`.${a}-scrollbar__wrap`);function s(){const g=n.effect==="light",m=document.createElement("div");return m.className=[`${a}-popper`,g?"is-light":"is-dark",n.popperClass||""].join(" "),r=mW(r),m.innerHTML=r,m.style.zIndex=String(i()),e==null||e.appendChild(m),m}function l(){const g=document.createElement("div");return g.className=`${a}-popper__arrow`,g}function u(){c&&c.update()}li==null||li(),li=()=>{try{c&&c.destroy(),h&&(e==null||e.removeChild(h)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",li),li=void 0}catch{}};let c=null,f=u,d=li;n.enterable&&({onOpen:f,onClose:d}=xM({showAfter:n.showAfter,hideAfter:n.hideAfter,open:u,close:li}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const v=[];if(n.offset&&v.push({name:"offset",options:{offset:[0,n.offset]}}),n.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=n.popperOptions||{};return c=wM(t,h,{placement:n.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",li),c}function aA(e){return e.children?c$(e.children,aA):[e]}function u1(e,t){return e+t.colSpan}const oA=(e,t,r,n)=>{let i=0,a=e;const o=r.states.columns.value;if(n){const l=aA(n[e]);i=o.slice(0,o.indexOf(l[0])).reduce(u1,0),a=i+l.reduce(u1,0)-1}else i=e;let s;switch(t){case"left":a=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:a=o.length-r.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:i,after:a}:{}},Ly=(e,t,r,n,i,a=0)=>{const o=[],{direction:s,start:l,after:u}=oA(t,r,n,i);if(s){const c=s==="left";o.push(`${e}-fixed-column--${s}`),c&&u+a===n.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!c&&l-a===n.states.columns.value.length-n.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function c1(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const Dy=(e,t,r,n)=>{const{direction:i,start:a=0,after:o=0}=oA(e,t,r,n);if(!i)return;const s={},l=i==="left",u=r.states.columns.value;return l?s.left=u.slice(0,a).reduce(c1,0):s.right=u.slice(o+1).reverse().reduce(c1,0),s},Ts=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function MW(e){const t=dt(),r=H(!1),n=H([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(r.value)n.value=l.slice();else if(u){const c=Qa(n.value,u);n.value=l.reduce((f,d)=>{const h=Ut(d,u);return c[h]&&f.push(d),f},[])}else n.value=[]},toggleRowExpansion:(l,u)=>{Nl(n.value,l,u)&&t.emit("expand-change",l,n.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,f=Qa(u,c);n.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?!!Qa(n.value,u)[Ut(l,u)]:n.value.includes(l)},states:{expandRows:n,defaultExpandAll:r}}}function AW(e){const t=dt(),r=H(null),n=H(null),i=u=>{t.store.assertRowKey(),r.value=u,o(u)},a=()=>{r.value=null},o=u=>{const{data:c,rowKey:f}=e;let d=null;f.value&&(d=(P(c)||[]).find(h=>Ut(h,f.value)===u)),n.value=d,t.emit("current-change",n.value,null)};return{setCurrentRowKey:i,restoreCurrentRowKey:a,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=n.value;if(u&&u!==c){n.value=u,t.emit("current-change",n.value,c);return}!u&&c&&(n.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],f=n.value;if(!c.includes(f)&&f){if(u){const d=Ut(f,u);o(d)}else n.value=null;n.value===null&&t.emit("current-change",null,f)}else r.value&&(o(r.value),a())},states:{_currentRowKey:r,currentRow:n}}}function EW(e){const t=H([]),r=H({}),n=H(16),i=H(!1),a=H({}),o=H("hasChildren"),s=H("children"),l=dt(),u=$(()=>{if(!e.rowKey.value)return{};const m=e.data.value||[];return f(m)}),c=$(()=>{const m=e.rowKey.value,y=Object.keys(a.value),_={};return y.length&&y.forEach(b=>{if(a.value[b].length){const S={children:[]};a.value[b].forEach(w=>{const x=Ut(w,m);S.children.push(x),w[o.value]&&!_[x]&&(_[x]={children:[]})}),_[b]=S}}),_}),f=m=>{const y=e.rowKey.value,_={};return CW(m,(b,S,w)=>{const x=Ut(b,y);Array.isArray(S)?_[x]={children:S.map(C=>Ut(C,y)),level:w}:i.value&&(_[x]={children:[],lazy:!0,level:w})},s.value,o.value),_},d=(m=!1,y=(_=>(_=l.store)==null?void 0:_.states.defaultExpandAll.value)())=>{var _;const b=u.value,S=c.value,w=Object.keys(b),x={};if(w.length){const C=P(r),T=[],E=(M,D)=>{if(m)return t.value?y||t.value.includes(D):!!(y||M!=null&&M.expanded);{const R=y||t.value&&t.value.includes(D);return!!(M!=null&&M.expanded||R)}};w.forEach(M=>{const D=C[M],R={...b[M]};if(R.expanded=E(D,M),R.lazy){const{loaded:k=!1,loading:F=!1}=D||{};R.loaded=!!k,R.loading=!!F,T.push(M)}x[M]=R});const A=Object.keys(S);i.value&&A.length&&T.length&&A.forEach(M=>{const D=C[M],R=S[M].children;if(T.includes(M)){if(x[M].children.length!==0)throw new Error("[ElTable]children must be an empty array.");x[M].children=R}else{const{loaded:k=!1,loading:F=!1}=D||{};x[M]={lazy:!0,loaded:!!k,loading:!!F,expanded:E(D,M),children:R,level:""}}})}r.value=x,(_=l.store)==null||_.updateTableScrollY()};xe(()=>t.value,()=>{d(!0)}),xe(()=>u.value,()=>{d()}),xe(()=>c.value,()=>{d()});const h=m=>{t.value=m,d()},v=(m,y)=>{l.store.assertRowKey();const _=e.rowKey.value,b=Ut(m,_),S=b&&r.value[b];if(b&&S&&"expanded"in S){const w=S.expanded;y=typeof y>"u"?!S.expanded:y,r.value[b].expanded=y,w!==y&&l.emit("expand-change",m,y),l.store.updateTableScrollY()}},p=m=>{l.store.assertRowKey();const y=e.rowKey.value,_=Ut(m,y),b=r.value[_];i.value&&b&&"loaded"in b&&!b.loaded?g(m,_,b):v(m,void 0)},g=(m,y,_)=>{const{load:b}=l.props;b&&!r.value[y].loaded&&(r.value[y].loading=!0,b(m,_,S=>{if(!Array.isArray(S))throw new TypeError("[ElTable] data must be an array");r.value[y].loading=!1,r.value[y].loaded=!0,r.value[y].expanded=!0,S.length&&(a.value[y]=S),l.emit("expand-change",m,!0)}))};return{loadData:g,loadOrToggle:p,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:t,treeData:r,indent:n,lazy:i,lazyTreeNodeMap:a,lazyColumnIdentifier:o,childrenColumnName:s}}}const PW=(e,t)=>{const r=t.sortingColumn;return!r||typeof r.sortable=="string"?e:_W(e,t.sortProp,t.sortOrder,r.sortMethod,r.sortBy)},Tf=e=>{const t=[];return e.forEach(r=>{r.children?t.push.apply(t,Tf(r.children)):t.push(r)}),t};function LW(){var e;const t=dt(),{size:r}=Id((e=t.proxy)==null?void 0:e.$props),n=H(null),i=H([]),a=H([]),o=H(!1),s=H([]),l=H([]),u=H([]),c=H([]),f=H([]),d=H([]),h=H([]),v=H([]),p=H(0),g=H(0),m=H(0),y=H(!1),_=H([]),b=H(!1),S=H(!1),w=H(null),x=H({}),C=H(null),T=H(null),E=H(null),A=H(null),M=H(null);xe(i,()=>t.state&&F(!1),{deep:!0});const D=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},R=fe=>{var Te;(Te=fe.children)==null||Te.forEach(He=>{He.fixed=fe.fixed,R(He)})},k=()=>{s.value.forEach(Ze=>{R(Ze)}),c.value=s.value.filter(Ze=>Ze.fixed===!0||Ze.fixed==="left"),f.value=s.value.filter(Ze=>Ze.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 fe=s.value.filter(Ze=>!Ze.fixed);l.value=[].concat(c.value).concat(fe).concat(f.value);const Te=Tf(fe),He=Tf(c.value),We=Tf(f.value);p.value=Te.length,g.value=He.length,m.value=We.length,u.value=[].concat(He).concat(Te).concat(We),o.value=c.value.length>0||f.value.length>0},F=(fe,Te=!1)=>{fe&&k(),Te?t.state.doLayout():t.state.debouncedUpdateLayout()},K=fe=>_.value.includes(fe),B=()=>{y.value=!1,_.value.length&&(_.value=[],t.emit("selection-change",[]))},N=()=>{let fe;if(n.value){fe=[];const Te=Qa(_.value,n.value),He=Qa(i.value,n.value);for(const We in Te)Ve(Te,We)&&!He[We]&&fe.push(Te[We].row)}else fe=_.value.filter(Te=>!i.value.includes(Te));if(fe.length){const Te=_.value.filter(He=>!fe.includes(He));_.value=Te,t.emit("selection-change",Te.slice())}},j=()=>(_.value||[]).slice(),re=(fe,Te=void 0,He=!0)=>{if(Nl(_.value,fe,Te)){const Ze=(_.value||[]).slice();He&&t.emit("select",Ze,fe),t.emit("selection-change",Ze)}},oe=()=>{var fe,Te;const He=S.value?!y.value:!(y.value||_.value.length);y.value=He;let We=!1,Ze=0;const kt=(Te=(fe=t==null?void 0:t.store)==null?void 0:fe.states)==null?void 0:Te.rowKey.value;i.value.forEach((ht,Wt)=>{const Wr=Wt+Ze;w.value?w.value.call(null,ht,Wr)&&Nl(_.value,ht,He)&&(We=!0):Nl(_.value,ht,He)&&(We=!0),Ze+=V(Ut(ht,kt))}),We&&t.emit("selection-change",_.value?_.value.slice():[]),t.emit("select-all",_.value)},_e=()=>{const fe=Qa(_.value,n.value);i.value.forEach(Te=>{const He=Ut(Te,n.value),We=fe[He];We&&(_.value[We.index]=Te)})},Ee=()=>{var fe,Te,He;if(((fe=i.value)==null?void 0:fe.length)===0){y.value=!1;return}let We;n.value&&(We=Qa(_.value,n.value));const Ze=function(Wr){return We?!!We[Ut(Wr,n.value)]:_.value.includes(Wr)};let kt=!0,ht=0,Wt=0;for(let Wr=0,UL=(i.value||[]).length;Wr{var Te;if(!t||!t.store)return 0;const{treeData:He}=t.store.states;let We=0;const Ze=(Te=He.value[fe])==null?void 0:Te.children;return Ze&&(We+=Ze.length,Ze.forEach(kt=>{We+=V(kt)})),We},J=(fe,Te)=>{Array.isArray(fe)||(fe=[fe]);const He={};return fe.forEach(We=>{x.value[We.id]=Te,He[We.columnKey||We.id]=Te}),He},W=(fe,Te,He)=>{T.value&&T.value!==fe&&(T.value.order=null),T.value=fe,E.value=Te,A.value=He},Y=()=>{let fe=P(a);Object.keys(x.value).forEach(Te=>{const He=x.value[Te];if(!He||He.length===0)return;const We=nA({columns:u.value},Te);We&&We.filterMethod&&(fe=fe.filter(Ze=>He.some(kt=>We.filterMethod.call(null,kt,Ze,We))))}),C.value=fe},ue=()=>{i.value=PW(C.value,{sortingColumn:T.value,sortProp:E.value,sortOrder:A.value})},he=(fe=void 0)=>{fe&&fe.filter||Y(),ue()},Q=fe=>{const{tableHeaderRef:Te}=t.refs;if(!Te)return;const He=Object.assign({},Te.filterPanels),We=Object.keys(He);if(We.length)if(typeof fe=="string"&&(fe=[fe]),Array.isArray(fe)){const Ze=fe.map(kt=>bW({columns:u.value},kt));We.forEach(kt=>{const ht=Ze.find(Wt=>Wt.id===kt);ht&&(ht.filteredValue=[])}),t.store.commit("filterChange",{column:Ze,values:[],silent:!0,multi:!0})}else We.forEach(Ze=>{const kt=u.value.find(ht=>ht.id===Ze);kt&&(kt.filteredValue=[])}),x.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},L=()=>{T.value&&(W(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:I,toggleRowExpansion:z,updateExpandRows:G,states:q,isRowExpanded:ne}=MW({data:i,rowKey:n}),{updateTreeExpandKeys:de,toggleTreeExpansion:te,updateTreeData:ie,loadOrToggle:X,states:we}=EW({data:i,rowKey:n}),{updateCurrentRowData:ve,updateCurrentRow:Se,setCurrentRowKey:Ie,states:$e}=AW({data:i,rowKey:n});return{assertRowKey:D,updateColumns:k,scheduleLayout:F,isSelected:K,clearSelection:B,cleanSelection:N,getSelectionRows:j,toggleRowSelection:re,_toggleAllSelection:oe,toggleAllSelection:null,updateSelectionByRowKey:_e,updateAllSelected:Ee,updateFilters:J,updateCurrentRow:Se,updateSort:W,execFilter:Y,execSort:ue,execQuery:he,clearFilter:Q,clearSort:L,toggleRowExpansion:z,setExpandRowKeysAdapter:fe=>{I(fe),de(fe)},setCurrentRowKey:Ie,toggleRowExpansionAdapter:(fe,Te)=>{u.value.some(({type:We})=>We==="expand")?z(fe,Te):te(fe,Te)},isRowExpanded:ne,updateExpandRows:G,updateCurrentRowData:ve,loadOrToggle:X,updateTreeData:ie,states:{tableSize:r,rowKey:n,data:i,_data:a,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:v,leafColumnsLength:p,fixedLeafColumnsLength:g,rightFixedLeafColumnsLength:m,isAllSelected:y,selection:_,reserveSelection:b,selectOnIndeterminate:S,selectable:w,filters:x,filteredData:C,sortingColumn:T,sortProp:E,sortOrder:A,hoverRow:M,...q,...we,...$e}}}function dg(e,t){return e.map(r=>{var n;return r.id===t.id?t:((n=r.children)!=null&&n.length&&(r.children=dg(r.children,t)),r)})}function sA(e){e.forEach(t=>{var r,n;t.no=(r=t.getColumnIndex)==null?void 0:r.call(t),(n=t.children)!=null&&n.length&&sA(t.children)}),e.sort((t,r)=>t.no-r.no)}function DW(){const e=dt(),t=LW();return{ns:Be("table"),...t,mutations:{setData(o,s){const l=P(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),P(o.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(o,s,l){const u=P(o._columns);let c=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),c=dg(u,l)):(u.push(s),c=u),sA(c),o._columns.value=c,s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},removeColumn(o,s,l){const u=P(o._columns)||[];if(l)l.children.splice(l.children.findIndex(c=>c.id===s.id),1),Rt(()=>{var c;((c=l.children)==null?void 0:c.length)===0&&delete l.children}),o._columns.value=dg(u,l);else{const c=u.indexOf(s);c>-1&&(u.splice(c,1),o._columns.value=u)}e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const f=P(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=P(l),d=P(u),h=P(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(){Rt(()=>e.layout.updateScrollY.apply(e.layout))}}}const Bl={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 IW(e,t){if(!e)throw new Error("Table is required.");const r=DW();return r.toggleAllSelection=Xf(r._toggleAllSelection,10),Object.keys(Bl).forEach(n=>{lA(uA(t,n),n,r)}),OW(r,t),r}function OW(e,t){Object.keys(Bl).forEach(r=>{xe(()=>uA(t,r),n=>{lA(n,r,e)})})}function lA(e,t,r){let n=e,i=Bl[t];typeof Bl[t]=="object"&&(i=i.key,n=n||Bl[t].default),r.states[i].value=n}function uA(e,t){if(t.includes(".")){const r=t.split(".");let n=e;return r.forEach(i=>{n=n[i]}),n}else return e[t]}class RW{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=H(null),this.scrollX=H(!1),this.scrollY=H(!1),this.bodyWidth=H(null),this.fixedWidth=H(null),this.rightFixedWidth=H(null),this.gutterWidth=0;for(const r in t)Ve(t,r)&&(xt(this[r])?this[r].value=t[r]:this[r]=t[r]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const r=this.table.refs.scrollBarRef;if(this.table.vnode.el&&r){let n=!0;const i=this.scrollY.value;return n=r.wrapRef.scrollHeight>r.wrapRef.clientHeight,this.scrollY.value=n,i!==n}return!1}setHeight(t,r="height"){if(!Ot)return;const n=this.table.vnode.el;if(t=SW(t),this.height.value=Number(t),!n&&(t||t===0))return Rt(()=>this.setHeight(t,r));typeof t=="number"?(n.style[r]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(n.style[r]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(n=>{n.isColumnGroup?t.push.apply(t,n.columns):t.push(n)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let r=t;for(;r.tagName!=="DIV";){if(getComputedStyle(r).display==="none")return!0;r=r.parentElement}return!1}updateColumnsWidth(){if(!Ot)return;const t=this.fit,r=this.table.vnode.el.clientWidth;let n=0;const i=this.getFlattenColumns(),a=i.filter(l=>typeof l.width!="number");if(i.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),a.length>0&&t){if(i.forEach(l=>{n+=Number(l.width||l.minWidth||80)}),n<=r){this.scrollX.value=!1;const l=r-n;if(a.length===1)a[0].realWidth=Number(a[0].minWidth||80)+l;else{const u=a.reduce((d,h)=>d+Number(h.minWidth||80),0),c=l/u;let f=0;a.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}),a[0].realWidth=Number(a[0].minWidth||80)+l-f}}else this.scrollX.value=!0,a.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(n,r),this.table.state.resizeState.value.width=this.bodyWidth.value}else i.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),n+=l.realWidth}),this.scrollX.value=n>r,this.bodyWidth.value=n;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const r=this.observers.indexOf(t);r!==-1&&this.observers.splice(r,1)}notifyObservers(t){this.observers.forEach(n=>{var i,a;switch(t){case"columns":(i=n.state)==null||i.onColumnsChange(this);break;case"scrollable":(a=n.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:kW}=Cs,NW=ce({name:"ElTableFilterPanel",components:{ElCheckbox:Cs,ElCheckboxGroup:kW,ElScrollbar:TM,ElTooltip:Yu,ElIcon:lr,ArrowDown:KT,ArrowUp:I5},directives:{ClickOutside:kz},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(e){const t=dt(),{t:r}=uM(),n=Be("table-filter"),i=t==null?void 0:t.parent;i.filterPanels.value[e.column.id]||(i.filterPanels.value[e.column.id]=t);const a=H(!1),o=H(null),s=$(()=>e.column&&e.column.filters),l=$({get:()=>{var b;return(((b=e.column)==null?void 0:b.filteredValue)||[])[0]},set:b=>{u.value&&(typeof b<"u"&&b!==null?u.value.splice(0,1,b):u.value.splice(0,1))}}),u=$({get(){return e.column?e.column.filteredValue||[]:[]},set(b){e.column&&e.upDataColumn("filteredValue",b)}}),c=$(()=>e.column?e.column.filterMultiple:!0),f=b=>b.value===l.value,d=()=>{a.value=!1},h=b=>{b.stopPropagation(),a.value=!a.value},v=()=>{a.value=!1},p=()=>{y(u.value),d()},g=()=>{u.value=[],y(u.value),d()},m=b=>{l.value=b,y(typeof b<"u"&&b!==null?u.value:[]),d()},y=b=>{e.store.commit("filterChange",{column:e.column,values:b}),e.store.updateAllSelected()};xe(a,b=>{e.column&&e.upDataColumn("filterOpened",b)},{immediate:!0});const _=$(()=>{var b,S;return(S=(b=o.value)==null?void 0:b.popperRef)==null?void 0:S.contentRef});return{tooltipVisible:a,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:m,isActive:f,t:r,ns:n,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:_,tooltip:o}}}),BW={key:0},FW=["disabled"],$W=["label","onClick"];function HW(e,t,r,n,i,a){const o=_r("el-checkbox"),s=_r("el-checkbox-group"),l=_r("el-scrollbar"),u=_r("arrow-up"),c=_r("arrow-down"),f=_r("el-icon"),d=_r("el-tooltip"),h=Hm("click-outside");return U(),me(d,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.ns.b(),persistent:""},{content:Z(()=>[e.multiple?(U(),ye("div",BW,[ae("div",{class:le(e.ns.e("content"))},[ee(l,{"wrap-class":e.ns.e("wrap")},{default:Z(()=>[ee(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=v=>e.filteredValue=v),class:le(e.ns.e("checkbox-group"))},{default:Z(()=>[(U(!0),ye(yt,null,r_(e.filters,v=>(U(),me(o,{key:v.value,label:v.value},{default:Z(()=>[Nt(Me(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),ae("div",{class:le(e.ns.e("bottom"))},[ae("button",{class:le({[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))},Me(e.t("el.table.confirmFilter")),11,FW),ae("button",{type:"button",onClick:t[2]||(t[2]=(...v)=>e.handleReset&&e.handleReset(...v))},Me(e.t("el.table.resetFilter")),1)],2)])):(U(),ye("ul",{key:1,class:le(e.ns.e("list"))},[ae("li",{class:le([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))},Me(e.t("el.table.clearFilter")),3),(U(!0),ye(yt,null,r_(e.filters,v=>(U(),ye("li",{key:v.value,class:le([e.ns.e("list-item"),e.ns.is("active",e.isActive(v))]),label:v.value,onClick:p=>e.handleSelect(v.value)},Me(v.text),11,$W))),128))],2))]),default:Z(()=>[qt((U(),ye("span",{class:le([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:t[4]||(t[4]=(...v)=>e.showFilterPanel&&e.showFilterPanel(...v))},[ee(f,null,{default:Z(()=>[e.column.filterOpened?(U(),me(u,{key:0})):(U(),me(c,{key:1}))]),_:1})],2)),[[h,e.hideFilterPanel,e.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var zW=Xe(NW,[["render",HW],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function cA(e){const t=dt();Bd(()=>{r.value.addObserver(t)}),Mt(()=>{n(r.value),i(r.value)}),Fd(()=>{n(r.value),i(r.value)}),Nu(()=>{r.value.removeObserver(t)});const r=$(()=>{const a=e.layout;if(!a)throw new Error("Can not find table layout.");return a}),n=a=>{var o;const s=((o=e.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=a.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,f=s.length;c{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{p.stopPropagation()},a=(p,g)=>{!g.filters&&g.sortable?v(p,g,!1):g.filterable&&!g.sortable&&i(p),n==null||n.emit("header-click",g,p)},o=(p,g)=>{n==null||n.emit("header-contextmenu",g,p)},s=H(null),l=H(!1),u=H({}),c=(p,g)=>{if(Ot&&!(g.children&&g.children.length>0)&&s.value&&e.border){l.value=!0;const m=n;t("set-drag-visible",!0);const _=(m==null?void 0:m.vnode.el).getBoundingClientRect().left,b=r.vnode.el.querySelector(`th.${g.id}`),S=b.getBoundingClientRect(),w=S.left-_+30;Zo(b,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:S.right-_,startColumnLeft:S.left-_,tableLeft:_};const x=m==null?void 0:m.refs.resizeProxy;x.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const C=E=>{const A=E.clientX-u.value.startMouseLeft,M=u.value.startLeft+A;x.style.left=`${Math.max(w,M)}px`},T=()=>{if(l.value){const{startColumnLeft:E,startLeft:A}=u.value,D=Number.parseInt(x.style.left,10)-E;g.width=g.realWidth=D,m==null||m.emit("header-dragend",g.width,A-E,g,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",T),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{ss(b,"noclick")},0)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",T)}},f=(p,g)=>{var m;if(g.children&&g.children.length>0)return;const y=(m=p.target)==null?void 0:m.closest("th");if(!(!g||!g.resizable)&&!l.value&&e.border){const _=y.getBoundingClientRect(),b=document.body.style;_.width>12&&_.right-p.pageX<8?(b.cursor="col-resize",Il(y,"is-sortable")&&(y.style.cursor="col-resize"),s.value=g):l.value||(b.cursor="",Il(y,"is-sortable")&&(y.style.cursor="pointer"),s.value=null)}},d=()=>{Ot&&(document.body.style.cursor="")},h=({order:p,sortOrders:g})=>{if(p==="")return g[0];const m=g.indexOf(p||null);return g[m>g.length-2?0:m+1]},v=(p,g,m)=>{var y;p.stopPropagation();const _=g.order===m?null:m||h(g),b=(y=p.target)==null?void 0:y.closest("th");if(b&&Il(b,"noclick")){ss(b,"noclick");return}if(!g.sortable)return;const S=e.store.states;let w=S.sortProp.value,x;const C=S.sortingColumn.value;(C!==g||C===g&&C.order===null)&&(C&&(C.order=null),S.sortingColumn.value=g,w=g.property),_?x=g.order=_:x=g.order=null,S.sortProp.value=w,S.sortOrder.value=x,n==null||n.store.commit("changeSortCondition")};return{handleHeaderClick:a,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:v,handleFilterClick:i}}function VW(e){const t=Oe(ei),r=Be("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=Dy(l,c.fixed,e.store,u);return Ts(h,"left"),Ts(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=Ly(r.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(r.e("cell")),d.filter(v=>Boolean(v)).join(" ")}}}const fA=e=>{const t=[];return e.forEach(r=>{r.children?(t.push(r),t.push.apply(t,fA(r.children))):t.push(r)}),t},GW=e=>{let t=1;const r=(a,o)=>{if(o&&(a.level=o.level+1,t{r(l,a),s+=l.colSpan}),a.colSpan=s}else a.colSpan=1};e.forEach(a=>{a.level=1,r(a,void 0)});const n=[];for(let a=0;a{a.children?(a.rowSpan=1,a.children.forEach(o=>o.isSubColumn=!0)):a.rowSpan=t-a.level+1,n[a.level-1].push(a)}),n};function UW(e){const t=Oe(ei),r=$(()=>GW(e.store.states.originColumns.value));return{isGroup:$(()=>{const a=r.value.length>1;return a&&t&&(t.state.isGroup.value=!0),a}),toggleAllSelection:a=>{a.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:r}}var jW=ce({name:"ElTableHeader",components:{ElCheckbox:Cs},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e,{emit:t}){const r=dt(),n=Oe(ei),i=Be("table"),a=H({}),{onColumnsChange:o,onScrollableChange:s}=cA(n);Mt(async()=>{await Rt(),await Rt();const{prop:w,order:x}=e.defaultSort;n==null||n.store.commit("sort",{prop:w,order:x,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=WW(e,t),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:m,getHeaderCellClass:y}=VW(e),{isGroup:_,toggleAllSelection:b,columnRows:S}=UW(e);return r.state={onColumnsChange:o,onScrollableChange:s},r.filterPanels=a,{ns:i,filterPanels:a,onColumnsChange:o,onScrollableChange:s,columnRows:S,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:y,getHeaderCellStyle:m,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v,isGroup:_,toggleAllSelection:b}},render(){const{ns:e,isGroup:t,columnRows:r,getHeaderCellStyle:n,getHeaderCellClass:i,getHeaderRowClass:a,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:v}=this;let p=1;return Ce("thead",{class:{[e.is("group")]:t}},r.map((g,m)=>Ce("tr",{class:a(m),key:m,style:o(m)},g.map((y,_)=>(y.rowSpan>p&&(p=y.rowSpan),Ce("th",{class:i(m,_,g,y),colspan:y.colSpan,key:`${y.id}-thead`,rowspan:y.rowSpan,style:n(m,_,g,y),onClick:b=>s(b,y),onContextmenu:b=>l(b,y),onMousedown:b=>u(b,y),onMousemove:b=>c(b,y),onMouseout:d},[Ce("div",{class:["cell",y.filteredValue&&y.filteredValue.length>0?"highlight":""]},[y.renderHeader?y.renderHeader({column:y,$index:_,store:h,_self:v}):y.label,y.sortable&&Ce("span",{onClick:b=>f(b,y),class:"caret-wrapper"},[Ce("i",{onClick:b=>f(b,y,"ascending"),class:"sort-caret ascending"}),Ce("i",{onClick:b=>f(b,y,"descending"),class:"sort-caret descending"})]),y.filterable&&Ce(zW,{store:h,placement:y.filterPlacement||"bottom-start",column:y,upDataColumn:(b,S)=>{y[b]=S}})])]))))))}});function YW(e){const t=Oe(ei),r=H(""),n=H(Ce("div")),i=(d,h,v)=>{var p;const g=t,m=qh(d);let y;const _=(p=g==null?void 0:g.vnode.el)==null?void 0:p.dataset.prefix;m&&(y=l1({columns:e.store.states.columns.value},m,_),y&&(g==null||g.emit(`cell-${v}`,h,y,m,d))),g==null||g.emit(`row-${v}`,h,y,d)},a=(d,h)=>{i(d,h,"dblclick")},o=(d,h)=>{e.store.commit("setCurrentRow",h),i(d,h,"click")},s=(d,h)=>{i(d,h,"contextmenu")},l=Xf(d=>{e.store.commit("setHoverRow",d)},30),u=Xf(()=>{e.store.commit("setHoverRow",null)},30);return{handleDoubleClick:a,handleClick:o,handleContextMenu:s,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(d,h,v)=>{var p;const g=t,m=qh(d),y=(p=g==null?void 0:g.vnode.el)==null?void 0:p.dataset.prefix;if(m){const x=l1({columns:e.store.states.columns.value},m,y),C=g.hoverState={cell:m,column:x,row:h};g==null||g.emit("cell-mouse-enter",C.row,C.column,C.cell,d)}if(!v)return;const _=d.target.querySelector(".cell");if(!(Il(_,`${y}-tooltip`)&&_.childNodes.length))return;const b=document.createRange();b.setStart(_,0),b.setEnd(_,_.childNodes.length);const S=Math.round(b.getBoundingClientRect().width),w=(Number.parseInt(bb(_,"paddingLeft"),10)||0)+(Number.parseInt(bb(_,"paddingRight"),10)||0);(S+w>_.offsetWidth||_.scrollWidth>_.offsetWidth)&&TW(t==null?void 0:t.refs.tableWrapper,m,m.innerText||m.textContent,v)},handleCellMouseLeave:d=>{if(!qh(d))return;const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,d)},tooltipContent:r,tooltipTrigger:n}}function qW(e){const t=Oe(ei),r=Be("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=[r.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&c%2===1&&f.push(r.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=Dy(c,e==null?void 0:e.fixed,e.store);return Ts(p,"left"),Ts(p,"right"),Object.assign({},v,p)},getCellClass:(u,c,f,d,h)=>{const v=Ly(r.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(r.e("cell")),p.filter(m=>Boolean(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 KW(e){const t=Oe(ei),r=Be("table"),{handleDoubleClick:n,handleClick:i,handleContextMenu:a,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=YW(e),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:m}=qW(e),y=$(()=>e.store.states.columns.value.findIndex(({type:x})=>x==="default")),_=(x,C)=>{const T=t.props.rowKey;return T?Ut(x,T):C},b=(x,C,T,E=!1)=>{const{tooltipEffect:A,tooltipOptions:M,store:D}=e,{indent:R,columns:k}=D.states,F=h(x,C);let K=!0;return T&&(F.push(r.em("row",`level-${T.level}`)),K=T.display),Ce("tr",{style:[K?null:{display:"none"},d(x,C)],class:F,key:_(x,C),onDblclick:N=>n(N,x),onClick:N=>i(N,x),onContextmenu:N=>a(N,x),onMouseenter:()=>o(C),onMouseleave:s},k.value.map((N,j)=>{const{rowspan:re,colspan:oe}=g(x,N,C,j);if(!re||!oe)return null;const _e={...N};_e.realWidth=m(k.value,oe,j);const Ee={store:e.store,_self:e.context||t,column:_e,row:x,$index:C,cellIndex:j,expanded:E};j===y.value&&T&&(Ee.treeNode={indent:T.level*R.value,level:T.level},typeof T.expanded=="boolean"&&(Ee.treeNode.expanded=T.expanded,"loading"in T&&(Ee.treeNode.loading=T.loading),"noLazyChildren"in T&&(Ee.treeNode.noLazyChildren=T.noLazyChildren)));const V=`${C},${j}`,J=_e.columnKey||_e.rawColumnKey||"",W=S(j,N,Ee),Y=N.showOverflowTooltip&&FT({effect:A},M,N.showOverflowTooltip);return Ce("td",{style:v(C,j,x,N),class:p(C,j,x,N,oe-1),key:`${J}${V}`,rowspan:re,colspan:oe,onMouseenter:ue=>l(ue,x,Y),onMouseleave:u},[W])}))},S=(x,C,T)=>C.renderCell(T);return{wrappedRowRender:(x,C)=>{const T=e.store,{isRowExpanded:E,assertRowKey:A}=T,{treeData:M,lazyTreeNodeMap:D,childrenColumnName:R,rowKey:k}=T.states,F=T.states.columns.value;if(F.some(({type:B})=>B==="expand")){const B=E(x),N=b(x,C,void 0,B),j=t.renderExpanded;return B?j?[[N,Ce("tr",{key:`expanded-row__${N.key}`},[Ce("td",{colspan:F.length,class:`${r.e("cell")} ${r.e("expanded-cell")}`},[j({row:x,$index:C,store:T,expanded:B})])])]]:(console.error("[Element Error]renderExpanded is required."),N):[[N]]}else if(Object.keys(M.value).length){A();const B=Ut(x,k.value);let N=M.value[B],j=null;N&&(j={expanded:N.expanded,level:N.level,display:!0},typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(j.noLazyChildren=!(N.children&&N.children.length)),j.loading=N.loading));const re=[b(x,C,j)];if(N){let oe=0;const _e=(V,J)=>{V&&V.length&&J&&V.forEach(W=>{const Y={display:J.display&&J.expanded,level:J.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ue=Ut(W,k.value);if(ue==null)throw new Error("For nested data item, row-key is required.");if(N={...M.value[ue]},N&&(Y.expanded=N.expanded,N.level=N.level||Y.level,N.display=!!(N.expanded&&Y.display),typeof N.lazy=="boolean"&&(typeof N.loaded=="boolean"&&N.loaded&&(Y.noLazyChildren=!(N.children&&N.children.length)),Y.loading=N.loading)),oe++,re.push(b(W,C+oe,Y)),N){const he=D.value[ue]||W[R.value];_e(he,N)}})};N.display=!0;const Ee=D.value[B]||x[R.value];_e(Ee,N)}return re}else return b(x,C,void 0)},tooltipContent:c,tooltipTrigger:f}}const XW={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 ZW=ce({name:"ElTableBody",props:XW,setup(e){const t=dt(),r=Oe(ei),n=Be("table"),{wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}=KW(e),{onColumnsChange:s,onScrollableChange:l}=cA(r);return xe(e.store.states.hoverRow,(u,c)=>{if(!e.store.states.isComplex.value||!Ot)return;let f=window.requestAnimationFrame;f||(f=d=>window.setTimeout(d,16)),f(()=>{const d=t==null?void 0:t.vnode.el,h=Array.from((d==null?void 0:d.children)||[]).filter(g=>g==null?void 0:g.classList.contains(`${n.e("row")}`)),v=h[c],p=h[u];v&&ss(v,"hover-row"),p&&Zo(p,"hover-row")})}),Nu(()=>{var u;(u=li)==null||u()}),{ns:n,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:i,tooltipContent:a,tooltipTrigger:o}},render(){const{wrappedRowRender:e,store:t}=this,r=t.states.data.value||[];return Ce("tbody",{},[r.reduce((n,i)=>n.concat(e(i,n.length)),[])])}});function Iy(e){const t=e.tableLayout==="auto";let r=e.columns||[];t&&r.every(i=>i.width===void 0)&&(r=[]);const n=i=>{const a={key:`${e.tableLayout}_${i.id}`,style:{},name:void 0};return t?a.style={width:`${i.width}px`}:a.name=i.id,a};return Ce("colgroup",{},r.map(i=>Ce("col",n(i))))}Iy.props=["columns","tableLayout"];function QW(){const e=Oe(ei),t=e==null?void 0:e.store,r=$(()=>t.states.fixedLeafColumnsLength.value),n=$(()=>t.states.rightFixedColumns.value.length),i=$(()=>t.states.columns.value.length),a=$(()=>t.states.fixedColumns.value.length),o=$(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:r,rightFixedLeafCount:n,columnsCount:i,leftFixedCount:a,rightFixedCount:o,columns:t.states.columns}}function JW(e){const{columns:t}=QW(),r=Be("table");return{getCellClasses:(a,o)=>{const s=a[o],l=[r.e("cell"),s.id,s.align,s.labelClassName,...Ly(r.b(),o,s.fixed,e.store)];return s.className&&l.push(s.className),s.children||l.push(r.is("leaf")),l},getCellStyles:(a,o)=>{const s=Dy(o,a.fixed,e.store);return Ts(s,"left"),Ts(s,"right"),s},columns:t}}var eV=ce({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:r,columns:n}=JW(e);return{ns:Be("table"),getCellClasses:t,getCellStyles:r,columns:n}},render(){const{columns:e,getCellStyles:t,getCellClasses:r,summaryMethod:n,sumText:i,ns:a}=this,o=this.store.states.data.value;let s=[];return n?s=n({columns:e,data:o}):e.forEach((l,u)=>{if(u===0){s[u]=i;return}const 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)}),Ce("table",{class:a.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[Iy({columns:e}),Ce("tbody",[Ce("tr",{},[...e.map((l,u)=>Ce("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:r(e,u),style:t(l,u)},[Ce("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function tV(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 rV(e,t,r,n){const i=H(!1),a=H(null),o=H(!1),s=B=>{o.value=B},l=H({width:null,height:null,headerHeight:null}),u=H(!1),c={display:"inline-block",verticalAlign:"middle"},f=H(),d=H(0),h=H(0),v=H(0),p=H(0);no(()=>{t.setHeight(e.height)}),no(()=>{t.setMaxHeight(e.maxHeight)}),xe(()=>[e.currentRowKey,r.states.rowKey],([B,N])=>{!P(N)||!P(B)||r.setCurrentRowKey(`${B}`)},{immediate:!0}),xe(()=>e.data,B=>{n.store.commit("setData",B)},{immediate:!0,deep:!0}),no(()=>{e.expandRowKeys&&r.setExpandRowKeysAdapter(e.expandRowKeys)});const g=()=>{n.store.commit("setHoverRow",null),n.hoverState&&(n.hoverState=null)},m=(B,N)=>{const{pixelX:j,pixelY:re}=N;Math.abs(j)>=Math.abs(re)&&(n.refs.bodyWrapper.scrollLeft+=N.pixelX/5)},y=$(()=>e.height||e.maxHeight||r.states.fixedColumns.value.length>0||r.states.rightFixedColumns.value.length>0),_=$(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),b=()=>{y.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame(C)};Mt(async()=>{await Rt(),r.updateColumns(),T(),requestAnimationFrame(b);const B=n.vnode.el,N=n.refs.headerWrapper;e.flexible&&B&&B.parentElement&&(B.parentElement.style.minWidth="0"),l.value={width:f.value=B.offsetWidth,height:B.offsetHeight,headerHeight:e.showHeader&&N?N.offsetHeight:null},r.states.columns.value.forEach(j=>{j.filteredValue&&j.filteredValue.length&&n.store.commit("filterChange",{column:j,values:j.filteredValue,silent:!0})}),n.$ready=!0});const S=(B,N)=>{if(!B)return;const j=Array.from(B.classList).filter(re=>!re.startsWith("is-scrolling-"));j.push(t.scrollX.value?N:"is-scrolling-none"),B.className=j.join(" ")},w=B=>{const{tableWrapper:N}=n.refs;S(N,B)},x=B=>{const{tableWrapper:N}=n.refs;return!!(N&&N.classList.contains(B))},C=function(){if(!n.refs.scrollBarRef)return;if(!t.scrollX.value){const V="is-scrolling-none";x(V)||w(V);return}const B=n.refs.scrollBarRef.wrapRef;if(!B)return;const{scrollLeft:N,offsetWidth:j,scrollWidth:re}=B,{headerWrapper:oe,footerWrapper:_e}=n.refs;oe&&(oe.scrollLeft=N),_e&&(_e.scrollLeft=N);const Ee=re-j-1;N>=Ee?w("is-scrolling-right"):w(N===0?"is-scrolling-left":"is-scrolling-middle")},T=()=>{n.refs.scrollBarRef&&(n.refs.scrollBarRef.wrapRef&&Sn(n.refs.scrollBarRef.wrapRef,"scroll",C,{passive:!0}),e.fit?ms(n.vnode.el,E):Sn(window,"resize",E),ms(n.refs.bodyWrapper,()=>{var B,N;E(),(N=(B=n.refs)==null?void 0:B.scrollBarRef)==null||N.update()}))},E=()=>{var B,N,j;const re=n.vnode.el;if(!n.$ready||!re)return;let oe=!1;const{width:_e,height:Ee,headerHeight:V}=l.value,J=f.value=re.offsetWidth;_e!==J&&(oe=!0);const W=re.offsetHeight;(e.height||y.value)&&Ee!==W&&(oe=!0);const Y=e.tableLayout==="fixed"?n.refs.headerWrapper:(B=n.refs.tableHeaderRef)==null?void 0:B.$el;e.showHeader&&(Y==null?void 0:Y.offsetHeight)!==V&&(oe=!0),d.value=((N=n.refs.tableWrapper)==null?void 0:N.scrollHeight)||0,v.value=(Y==null?void 0:Y.scrollHeight)||0,p.value=((j=n.refs.footerWrapper)==null?void 0:j.offsetHeight)||0,h.value=d.value-v.value-p.value,oe&&(l.value={width:J,height:W,headerHeight:e.showHeader&&(Y==null?void 0:Y.offsetHeight)||0},b())},A=ra(),M=$(()=>{const{bodyWidth:B,scrollY:N,gutterWidth:j}=t;return B.value?`${B.value-(N.value?j:0)}px`:""}),D=$(()=>e.maxHeight?"fixed":e.tableLayout),R=$(()=>{if(e.data&&e.data.length)return null;let B="100%";e.height&&h.value&&(B=`${h.value}px`);const N=f.value;return{width:N?`${N}px`:"",height:B}}),k=$(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),F=$(()=>{if(e.height)return{height:"100%"};if(e.maxHeight){if(Number.isNaN(Number(e.maxHeight)))return{maxHeight:`calc(${e.maxHeight} - ${v.value+p.value}px)`};{const B=e.maxHeight;if(d.value>=Number(B))return{maxHeight:`${d.value-v.value-p.value}px`}}}return{}});return{isHidden:i,renderExpanded:a,setDragVisible:s,isGroup:u,handleMouseLeave:g,handleHeaderFooterMousewheel:m,tableSize:A,emptyBlockStyle:R,handleFixedMousewheel:(B,N)=>{const j=n.refs.bodyWrapper;if(Math.abs(N.spinY)>0){const re=j.scrollTop;N.pixelY<0&&re!==0&&B.preventDefault(),N.pixelY>0&&j.scrollHeight-j.clientHeight>re&&B.preventDefault(),j.scrollTop+=Math.ceil(N.pixelY/5)}else j.scrollLeft+=Math.ceil(N.pixelX/5)},resizeProxyVisible:o,bodyWidth:M,resizeState:l,doLayout:b,tableBodyStyles:_,tableLayout:D,scrollbarViewStyle:c,tableInnerStyle:k,scrollbarStyle:F}}var nV={data:{type:Array,default:()=>[]},size:String,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const iV=()=>{const e=H(),t=(a,o)=>{const s=e.value;s&&s.scrollTo(a,o)},r=(a,o)=>{const s=e.value;s&&Yt(o)&&["Top","Left"].includes(a)&&s[`setScroll${a}`](o)};return{scrollBarRef:e,scrollTo:t,setScrollTop:a=>r("Top",a),setScrollLeft:a=>r("Left",a)}};let aV=1;const oV=ce({name:"ElTable",directives:{Mousewheel:Wz},components:{TableHeader:jW,TableBody:ZW,TableFooter:eV,ElScrollbar:TM,hColgroup:Iy},props:nV,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}=uM(),r=Be("table"),n=dt();Tt(ei,n);const i=IW(n,e);n.store=i;const a=new RW({store:n.store,table:n,fit:e.fit,showHeader:e.showHeader});n.layout=a;const o=$(()=>(i.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=tV(i),{isHidden:g,renderExpanded:m,setDragVisible:y,isGroup:_,handleMouseLeave:b,handleHeaderFooterMousewheel:S,tableSize:w,emptyBlockStyle:x,handleFixedMousewheel:C,resizeProxyVisible:T,bodyWidth:E,resizeState:A,doLayout:M,tableBodyStyles:D,tableLayout:R,scrollbarViewStyle:k,tableInnerStyle:F,scrollbarStyle:K}=rV(e,a,i,n),{scrollBarRef:B,scrollTo:N,setScrollLeft:j,setScrollTop:re}=iV(),oe=Xf(M,50),_e=`${r.namespace.value}-table_${aV++}`;n.tableId=_e,n.state={isGroup:_,resizeState:A,doLayout:M,debouncedUpdateLayout:oe};const Ee=$(()=>e.sumText||t("el.table.sumText")),V=$(()=>e.emptyText||t("el.table.emptyText"));return{ns:r,layout:a,store:i,handleHeaderFooterMousewheel:S,handleMouseLeave:b,tableId:_e,tableSize:w,isHidden:g,isEmpty:o,renderExpanded:m,resizeProxyVisible:T,resizeState:A,isGroup:_,bodyWidth:E,tableBodyStyles:D,emptyBlockStyle:x,debouncedUpdateLayout:oe,handleFixedMousewheel:C,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:M,sort:p,t,setDragVisible:y,context:n,computedSumText:Ee,computedEmptyText:V,tableLayout:R,scrollbarViewStyle:k,tableInnerStyle:F,scrollbarStyle:K,scrollBarRef:B,scrollTo:N,setScrollLeft:j,setScrollTop:re}}}),sV=["data-prefix"],lV={ref:"hiddenColumns",class:"hidden-columns"};function uV(e,t,r,n,i,a){const o=_r("hColgroup"),s=_r("table-header"),l=_r("table-body"),u=_r("el-scrollbar"),c=_r("table-footer"),f=Hm("mousewheel");return U(),ye("div",{ref:"tableWrapper",class:le([{[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:St(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[0]||(t[0]=d=>e.handleMouseLeave())},[ae("div",{class:le(e.ns.e("inner-wrapper")),style:St(e.tableInnerStyle)},[ae("div",lV,[Fe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?qt((U(),ye("div",{key:0,ref:"headerWrapper",class:le(e.ns.e("header-wrapper"))},[ae("table",{ref:"tableHeader",class:le(e.ns.e("header")),style:St(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[ee(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),ee(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):ke("v-if",!0),ae("div",{ref:"bodyWrapper",class:le(e.ns.e("body-wrapper"))},[ee(u,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn},{default:Z(()=>[ae("table",{ref:"tableBody",class:le(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:St({width:e.bodyWidth,tableLayout:e.tableLayout})},[ee(o,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(U(),me(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"])):ke("v-if",!0),ee(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),e.isEmpty?(U(),ye("div",{key:0,ref:"emptyBlock",style:St(e.emptyBlockStyle),class:le(e.ns.e("empty-block"))},[ae("span",{class:le(e.ns.e("empty-text"))},[Fe(e.$slots,"empty",{},()=>[Nt(Me(e.computedEmptyText),1)])],2)],6)):ke("v-if",!0),e.$slots.append?(U(),ye("div",{key:1,ref:"appendWrapper",class:le(e.ns.e("append-wrapper"))},[Fe(e.$slots,"append")],2)):ke("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),e.showSummary?qt((U(),ye("div",{key:1,ref:"footerWrapper",class:le(e.ns.e("footer-wrapper"))},[ee(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,style:St(e.tableBodyStyles),"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[mi,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):ke("v-if",!0),e.border||e.isGroup?(U(),ye("div",{key:2,class:le(e.ns.e("border-left-patch"))},null,2)):ke("v-if",!0)],6),qt(ae("div",{ref:"resizeProxy",class:le(e.ns.e("column-resize-proxy"))},null,2),[[mi,e.resizeProxyVisible]])],46,sV)}var cV=Xe(oV,[["render",uV],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const fV={selection:"table-column--selection",expand:"table__expand-column"},dV={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:""}},hV=e=>fV[e]||"",vV={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return Ce(Cs,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value})},renderCell({row:e,column:t,store:r,$index:n}){return Ce(Cs,{disabled:t.selectable?!t.selectable.call(null,e,n):!1,size:r.states.tableSize.value,onChange:()=>{r.commit("rowSelectedChanged",e)},onClick:i=>i.stopPropagation(),modelValue:r.isSelected(e)})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let r=t+1;const n=e.index;return typeof n=="number"?r=t+n:typeof n=="function"&&(r=n(t)),Ce("div",{},[r])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:r}){const{ns:n}=t,i=[n.e("expand-icon")];return r&&i.push(n.em("expand-icon","expanded")),Ce("div",{class:i,onClick:function(o){o.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[Ce(lr,null,{default:()=>[Ce(uy)]})]})},sortable:!1,resizable:!1}};function pV({row:e,column:t,$index:r}){var n;const i=t.property,a=i&&mf(e,i).value;return t&&t.formatter?t.formatter(e,t,a,r):((n=a==null?void 0:a.toString)==null?void 0:n.call(a))||""}function gV({row:e,treeNode:t,store:r},n=!1){const{ns:i}=r;if(!t)return n?[Ce("span",{class:i.e("placeholder")})]:null;const a=[],o=function(s){s.stopPropagation(),!t.loading&&r.loadOrToggle(e)};if(t.indent&&a.push(Ce("span",{class:i.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const s=[i.e("expand-icon"),t.expanded?i.em("expand-icon","expanded"):""];let l=uy;t.loading&&(l=cy),a.push(Ce("div",{class:s,onClick:o},{default:()=>[Ce(lr,{class:{[i.is("loading")]:t.loading}},{default:()=>[Ce(l)]})]}))}else a.push(Ce("span",{class:i.e("placeholder")}));return a}function f1(e,t){return e.reduce((r,n)=>(r[n]=n,r),t)}function mV(e,t){const r=dt();return{registerComplexWatchers:()=>{const a=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=f1(a,o);Object.keys(s).forEach(l=>{const u=o[l];Ve(t,u)&&xe(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=Py(c)),u==="minWidth"&&l==="realMinWidth"&&(f=iA(c)),r.columnConfig.value[u]=f,r.columnConfig.value[l]=f;const d=u==="fixed";e.value.store.scheduleLayout(d)})})},registerNormalWatchers:()=>{const a=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=f1(a,o);Object.keys(s).forEach(l=>{const u=o[l];Ve(t,u)&&xe(()=>t[u],c=>{r.columnConfig.value[l]=c})})}}}function yV(e,t,r){const n=dt(),i=H(""),a=H(!1),o=H(),s=H(),l=Be("table");no(()=>{o.value=e.align?`is-${e.align}`:null,o.value}),no(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:o.value,s.value});const u=$(()=>{let _=n.vnode.vParent||n.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),c=$(()=>{const{store:_}=n.parent;if(!_)return!1;const{treeData:b}=_.states,S=b.value;return S&&Object.keys(S).length>0}),f=H(Py(e.width)),d=H(iA(e.minWidth)),h=_=>(f.value&&(_.width=f.value),d.value&&(_.minWidth=d.value),!f.value&&d.value&&(_.width=void 0),_.minWidth||(_.minWidth=80),_.realWidth=Number(_.width===void 0?_.minWidth:_.width),_),v=_=>{const b=_.type,S=vV[b]||{};Object.keys(S).forEach(x=>{const C=S[x];x!=="className"&&C!==void 0&&(_[x]=C)});const w=hV(b);if(w){const x=`${P(l.namespace)}-${w}`;_.className=_.className?`${_.className} ${x}`:x}return _},p=_=>{Array.isArray(_)?_.forEach(S=>b(S)):b(_);function b(S){var w;((w=S==null?void 0:S.type)==null?void 0:w.name)==="ElTableColumn"&&(S.vParent=n)}};return{columnId:i,realAlign:o,isSubColumn:a,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:_=>{e.renderHeader||_.type!=="selection"&&(_.renderHeader=S=>{n.columnConfig.value.label;const w=t.header;return w?w(S):_.label});let b=_.renderCell;return _.type==="expand"?(_.renderCell=S=>Ce("div",{class:"cell"},[b(S)]),r.value.renderExpanded=S=>t.default?t.default(S):t.default):(b=b||pV,_.renderCell=S=>{let w=null;if(t.default){const E=t.default(S);w=E.some(A=>A.type!==Sr)?E:b(S)}else w=b(S);const x=c.value&&S.cellIndex===0&&S.column.type!=="selection",C=gV(S,x),T={class:"cell",style:{}};return _.showOverflowTooltip&&(T.class=`${T.class} ${P(l.namespace)}-tooltip`,T.style={width:`${(S.column.realWidth||Number(S.column.width))-1}px`}),p(w),Ce("div",T,[C,w])}),_},getPropsData:(..._)=>_.reduce((b,S)=>(Array.isArray(S)&&S.forEach(w=>{b[w]=e[w]}),b),{}),getColumnElIndex:(_,b)=>Array.prototype.indexOf.call(_,b)}}var _V={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let bV=1;var dA=ce({name:"ElTableColumn",components:{ElCheckbox:Cs},props:_V,setup(e,{slots:t}){const r=dt(),n=H({}),i=$(()=>{let y=r.parent;for(;y&&!y.tableId;)y=y.parent;return y}),{registerNormalWatchers:a,registerComplexWatchers:o}=mV(i,e),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g}=yV(e,t,i),m=c.value;s.value=`${m.tableId||m.columnId}_column_${bV++}`,Bd(()=>{l.value=i.value!==m;const y=e.type||"default",_=e.sortable===""?!0:e.sortable,b={...dV[y],id:s.value,type:y,property:e.prop||e.property,align:g,headerAlign:u,showOverflowTooltip:e.showOverflowTooltip,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:e.index,rawColumnKey:r.vnode.key};let T=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);T=wW(b,T),T=xW(h,f,d)(T),n.value=T,a(),o()}),Mt(()=>{var y;const _=c.value,b=l.value?_.vnode.el.children:(y=_.refs.hiddenColumns)==null?void 0:y.children,S=()=>p(b||[],r.vnode.el);n.value.getColumnIndex=S,S()>-1&&i.value.store.commit("insertColumn",n.value,l.value?_.columnConfig.value:null)}),nr(()=>{i.value.store.commit("removeColumn",n.value,l.value?m.columnConfig.value:null)}),r.columnId=s.value,r.columnConfig=n},render(){var e,t,r;try{const n=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),i=[];if(Array.isArray(n))for(const o of n)((r=o.type)==null?void 0:r.name)==="ElTableColumn"||o.shapeFlag&2?i.push(o):o.type===yt&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!ze(s==null?void 0:s.children)&&i.push(s)});return Ce("div",i)}catch{return Ce("div",[])}}});const wV=hr(cV,{TableColumn:dA}),SV=la(dA),hA=["success","info","warning","error"],mr=ja({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:Ot?document.body:void 0}),xV=rt({customClass:{type:String,default:mr.customClass},center:{type:Boolean,default:mr.center},dangerouslyUseHTMLString:{type:Boolean,default:mr.dangerouslyUseHTMLString},duration:{type:Number,default:mr.duration},icon:{type:Wn,default:mr.icon},id:{type:String,default:mr.id},message:{type:Pe([String,Object,Function]),default:mr.message},onClose:{type:Pe(Function),required:!1},showClose:{type:Boolean,default:mr.showClose},type:{type:String,values:hA,default:mr.type},offset:{type:Number,default:mr.offset},zIndex:{type:Number,default:mr.zIndex},grouping:{type:Boolean,default:mr.grouping},repeatNum:{type:Number,default:mr.repeatNum}}),CV={destroy:()=>!0},Vn=xC([]),TV=e=>{const t=Vn.findIndex(i=>i.id===e),r=Vn[t];let n;return t>0&&(n=Vn[t-1]),{current:r,prev:n}},MV=e=>{const{prev:t}=TV(e);return t?t.vm.exposed.bottom.value:0},AV=["id"],EV=["innerHTML"],PV=ce({name:"ElMessage"}),LV=ce({...PV,props:xV,emits:CV,setup(e,{expose:t}){const r=e,{Close:n}=g3,i=Be("message"),a=H(),o=H(!1),s=H(0);let l;const u=$(()=>r.type?r.type==="error"?"danger":r.type:"info"),c=$(()=>{const b=r.type;return{[i.bm("icon",b)]:b&&wb[b]}}),f=$(()=>r.icon||wb[r.type]||""),d=$(()=>MV(r.id)),h=$(()=>r.offset+d.value),v=$(()=>s.value+h.value),p=$(()=>({top:`${h.value}px`,zIndex:r.zIndex}));function g(){r.duration!==0&&({stop:l}=Wp(()=>{y()},r.duration))}function m(){l==null||l()}function y(){o.value=!1}function _({code:b}){b===Lt.esc&&y()}return Mt(()=>{g(),o.value=!0}),xe(()=>r.repeatNum,()=>{m(),g()}),Sn(document,"keydown",_),ms(a,()=>{s.value=a.value.getBoundingClientRect().height}),t({visible:o,bottom:v,close:y}),(b,S)=>(U(),me(Qn,{name:P(i).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:S[0]||(S[0]=w=>b.$emit("destroy")),persisted:""},{default:Z(()=>[qt(ae("div",{id:b.id,ref_key:"messageRef",ref:a,class:le([P(i).b(),{[P(i).m(b.type)]:b.type&&!b.icon},P(i).is("center",b.center),P(i).is("closable",b.showClose),b.customClass]),style:St(P(p)),role:"alert",onMouseenter:m,onMouseleave:g},[b.repeatNum>1?(U(),me(P(lz),{key:0,value:b.repeatNum,type:P(u),class:le(P(i).e("badge"))},null,8,["value","type","class"])):ke("v-if",!0),P(f)?(U(),me(P(lr),{key:1,class:le([P(i).e("icon"),P(c)])},{default:Z(()=>[(U(),me(nn(P(f))))]),_:1},8,["class"])):ke("v-if",!0),Fe(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(U(),ye(yt,{key:1},[ke(" Caution here, message could've been compromised, never use user's input as message "),ae("p",{class:le(P(i).e("content")),innerHTML:b.message},null,10,EV)],2112)):(U(),ye("p",{key:0,class:le(P(i).e("content"))},Me(b.message),3))]),b.showClose?(U(),me(P(lr),{key:2,class:le(P(i).e("closeBtn")),onClick:jf(y,["stop"])},{default:Z(()=>[ee(P(n))]),_:1},8,["class","onClick"])):ke("v-if",!0)],46,AV),[[mi,o.value]])]),_:3},8,["name","onBeforeLeave"]))}});var DV=Xe(LV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let IV=1;const vA=e=>{const t=!e||ze(e)||Ji(e)||Le(e)?{message:e}:e,r={...mr,...t};if(!r.appendTo)r.appendTo=document.body;else if(ze(r.appendTo)){let n=document.querySelector(r.appendTo);ys(n)||(n=document.body),r.appendTo=n}return r},OV=e=>{const t=Vn.indexOf(e);if(t===-1)return;Vn.splice(t,1);const{handler:r}=e;r.close()},RV=({appendTo:e,...t},r)=>{const{nextZIndex:n}=Ty(),i=`message_${IV++}`,a=t.onClose,o=document.createElement("div"),s={...t,zIndex:n()+t.zIndex,id:i,onClose:()=>{a==null||a(),OV(f)},onDestroy:()=>{A_(null,o)}},l=ee(DV,s,Le(s.message)||Ji(s.message)?{default:Le(s.message)?s.message:()=>s.message}:null);l.appContext=r||Ms._context,A_(l,o),e.appendChild(o.firstElementChild);const u=l.component,f={id:i,vnode:l,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:l.component.props};return f},Ms=(e={},t)=>{if(!Ot)return{close:()=>{}};if(Yt(ag.max)&&Vn.length>=ag.max)return{close:()=>{}};const r=vA(e);if(r.grouping&&Vn.length){const i=Vn.find(({vnode:a})=>{var o;return((o=a.props)==null?void 0:o.message)===r.message});if(i)return i.props.repeatNum+=1,i.props.type=r.type,i.handler}const n=RV(r,t);return Vn.push(n),n.handler};hA.forEach(e=>{Ms[e]=(t={},r)=>{const n=vA(t);return Ms({...n,type:e},r)}});function kV(e){for(const t of Vn)(!e||e===t.props.type)&&t.handler.close()}Ms.closeAll=kV;Ms._context=null;const pA=m3(Ms,"$message"),NV={id:"app"},BV={class:"grid-content header-color"},FV={class:"header-content"},$V=ae("div",{class:"brand"},[ae("a",{href:"#"},"frp")],-1),HV={class:"dark-switch"},zV=ae("span",null,"Proxies",-1),WV={id:"content"},VV=ae("footer",null,null,-1),GV=ce({__name:"App",setup(e){const t=o5(),r=H(t),n=A$(t),i=a=>{a==""&&window.open("https://github.com/fatedier/frp")};return(a,o)=>{const s=pW,l=z8,u=W8,c=H8,f=YM,d=_r("router-view"),h=rA;return U(),ye("div",NV,[ae("header",BV,[ae("div",FV,[$V,ae("div",HV,[ee(s,{modelValue:r.value,"onUpdate:modelValue":o[0]||(o[0]=v=>r.value=v),"inline-prompt":"","active-text":"Dark","inactive-text":"Light",onChange:P(n),style:{"--el-switch-on-color":"#444452","--el-switch-off-color":"#589ef8"}},null,8,["modelValue","onChange"])])])]),ae("section",null,[ee(h,null,{default:Z(()=>[ee(f,{id:"side-nav",xs:24,md:4},{default:Z(()=>[ee(c,{"default-active":"/",mode:"vertical",theme:"light",router:"false",onSelect:i},{default:Z(()=>[ee(l,{index:"/"},{default:Z(()=>[Nt("Overview")]),_:1}),ee(u,{index:"/proxies"},{title:Z(()=>[zV]),default:Z(()=>[ee(l,{index:"/proxies/tcp"},{default:Z(()=>[Nt("TCP")]),_:1}),ee(l,{index:"/proxies/udp"},{default:Z(()=>[Nt("UDP")]),_:1}),ee(l,{index:"/proxies/http"},{default:Z(()=>[Nt("HTTP")]),_:1}),ee(l,{index:"/proxies/https"},{default:Z(()=>[Nt("HTTPS")]),_:1}),ee(l,{index:"/proxies/stcp"},{default:Z(()=>[Nt("STCP")]),_:1}),ee(l,{index:"/proxies/sudp"},{default:Z(()=>[Nt("SUDP")]),_:1})]),_:1}),ee(l,{index:""},{default:Z(()=>[Nt("Help")]),_:1})]),_:1})]),_:1}),ee(f,{xs:24,md:20},{default:Z(()=>[ae("div",WV,[ee(d)])]),_:1})]),_:1})]),VV])}}});/*! * vue-router v4.1.6 * (c) 2022 Eduardo San Martin Morote * @license MIT */const qo=typeof window<"u";function UV(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const st=Object.assign;function Kh(e,t){const r={};for(const n in t){const i=t[n];r[n]=En(i)?i.map(e):e(i)}return r}const Fl=()=>{},En=Array.isArray,jV=/\/$/,YV=e=>e.replace(jV,"");function Xh(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),i=e(a)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=ZV(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:o}}function qV(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function d1(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function KV(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&As(t.matched[n],r.matched[i])&&gA(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function As(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function gA(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!XV(e[r],t[r]))return!1;return!0}function XV(e,t){return En(e)?h1(e,t):En(t)?h1(t,e):e===t}function h1(e,t){return En(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function ZV(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/");let i=r.length-1,a,o;for(a=0;a1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var mu;(function(e){e.pop="pop",e.push="push"})(mu||(mu={}));var $l;(function(e){e.back="back",e.forward="forward",e.unknown=""})($l||($l={}));function QV(e){if(!e)if(qo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),YV(e)}const JV=/^[^#]+#/;function eG(e,t){return e.replace(JV,"#")+t}function tG(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const Jd=()=>({left:window.pageXOffset,top:window.pageYOffset});function rG(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=tG(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function v1(e,t){return(history.state?history.state.position-t:-1)+e}const hg=new Map;function nG(e,t){hg.set(e,t)}function iG(e){const t=hg.get(e);return hg.delete(e),t}let aG=()=>location.protocol+"//"+location.host;function mA(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),d1(l,"")}return d1(r,e)+n+i}function oG(e,t,r,n){let i=[],a=[],o=null;const s=({state:d})=>{const h=mA(e,location),v=r.value,p=t.value;let g=0;if(d){if(r.value=h,t.value=d,o&&o===v){o=null;return}g=p?d.position-p.position:0}else n(h);i.forEach(m=>{m(r.value,v,{delta:g,type:mu.pop,direction:g?g>0?$l.forward:$l.back:$l.unknown})})};function l(){o=r.value}function u(d){i.push(d);const h=()=>{const v=i.indexOf(d);v>-1&&i.splice(v,1)};return a.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(st({},d.state,{scroll:Jd()}),"")}function f(){for(const d of a)d();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:f}}function p1(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?Jd():null}}function sG(e){const{history:t,location:r}=window,n={value:mA(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const f=e.indexOf("#"),d=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+l:aG()+e+l;try{t[c?"replaceState":"pushState"](u,"",d),i.value=u}catch(h){console.error(h),r[c?"replace":"assign"](d)}}function o(l,u){const c=st({},t.state,p1(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,c,!0),n.value=l}function s(l,u){const c=st({},i.value,t.state,{forward:l,scroll:Jd()});a(c.current,c,!0);const f=st({},p1(n.value,l,null),{position:c.position+1},u);a(l,f,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function lG(e){e=QV(e);const t=sG(e),r=oG(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=st({location:"",base:e,go:n,createHref:eG.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function uG(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),lG(e)}function cG(e){return typeof e=="string"||e&&typeof e=="object"}function yA(e){return typeof e=="string"||typeof e=="symbol"}const Di={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},_A=Symbol("");var g1;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(g1||(g1={}));function Es(e,t){return st(new Error,{type:e,[_A]:!0},t)}function ai(e,t){return e instanceof Error&&_A in e&&(t==null||!!(e.type&t))}const m1="[^/]+?",fG={sensitive:!1,strict:!1,start:!0,end:!0},dG=/[.+*?^${}()[\]/\\]/g;function hG(e,t){const r=st({},fG,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function pG(e,t){let r=0;const n=e.score,i=t.score;for(;r0&&t[t.length-1]<0}const gG={type:0,value:""},mG=/[a-zA-Z0-9_]/;function yG(e){if(!e)return[[]];if(e==="/")return[[gG]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${u}": ${h}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",c="";function f(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s{o(y)}:Fl}function o(c){if(yA(c)){const f=n.get(c);f&&(n.delete(c),r.splice(r.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=r.indexOf(c);f>-1&&(r.splice(f,1),c.record.name&&n.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return r}function l(c){let f=0;for(;f=0&&(c.record.path!==r[f].record.path||!bA(c,r[f]));)f++;r.splice(f,0,c),c.record.name&&!b1(c)&&n.set(c.record.name,c)}function u(c,f){let d,h={},v,p;if("name"in c&&c.name){if(d=n.get(c.name),!d)throw Es(1,{location:c});p=d.record.name,h=st(_1(f.params,d.keys.filter(y=>!y.optional).map(y=>y.name)),c.params&&_1(c.params,d.keys.map(y=>y.name))),v=d.stringify(h)}else if("path"in c)v=c.path,d=r.find(y=>y.re.test(v)),d&&(h=d.parse(v),p=d.record.name);else{if(d=f.name?n.get(f.name):r.find(y=>y.re.test(f.path)),!d)throw Es(1,{location:c,currentLocation:f});p=d.record.name,h=st({},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:xG(g)}}return e.forEach(c=>a(c)),{addRoute:a,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:i}}function _1(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function wG(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:SG(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function SG(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="boolean"?r:r[n];return t}function b1(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xG(e){return e.reduce((t,r)=>st(t,r.meta),{})}function w1(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function bA(e,t){return t.children.some(r=>r===e||bA(e,r))}const wA=/#/g,CG=/&/g,TG=/\//g,MG=/=/g,AG=/\?/g,SA=/\+/g,EG=/%5B/g,PG=/%5D/g,xA=/%5E/g,LG=/%60/g,CA=/%7B/g,DG=/%7C/g,TA=/%7D/g,IG=/%20/g;function Oy(e){return encodeURI(""+e).replace(DG,"|").replace(EG,"[").replace(PG,"]")}function OG(e){return Oy(e).replace(CA,"{").replace(TA,"}").replace(xA,"^")}function vg(e){return Oy(e).replace(SA,"%2B").replace(IG,"+").replace(wA,"%23").replace(CG,"%26").replace(LG,"`").replace(CA,"{").replace(TA,"}").replace(xA,"^")}function RG(e){return vg(e).replace(MG,"%3D")}function kG(e){return Oy(e).replace(wA,"%23").replace(AG,"%3F")}function NG(e){return e==null?"":kG(e).replace(TG,"%2F")}function td(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function BG(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&vg(a)):[n&&vg(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function FG(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=En(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const $G=Symbol(""),x1=Symbol(""),Ry=Symbol(""),MA=Symbol(""),pg=Symbol("");function Xs(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e,reset:r}}function Wi(e,t,r,n,i){const a=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((o,s)=>{const l=f=>{f===!1?s(Es(4,{from:r,to:t})):f instanceof Error?s(f):cG(f)?s(Es(2,{from:t,to:f})):(a&&n.enterCallbacks[i]===a&&typeof f=="function"&&a.push(f),o())},u=e.call(n&&n.instances[i],t,r,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(f=>s(f))})}function Zh(e,t,r,n){const i=[];for(const a of e)for(const o in a.components){let s=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(HG(s)){const u=(s.__vccOpts||s)[t];u&&i.push(Wi(u,r,n,a,o))}else{let l=s();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const c=UV(u)?u.default:u;a.components[o]=c;const d=(c.__vccOpts||c)[t];return d&&Wi(d,r,n,a,o)()}))}}return i}function HG(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function C1(e){const t=Oe(Ry),r=Oe(MA),n=$(()=>t.resolve(P(e.to))),i=$(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],f=r.matched;if(!c||!f.length)return-1;const d=f.findIndex(As.bind(null,c));if(d>-1)return d;const h=T1(l[u-2]);return u>1&&T1(c)===h&&f[f.length-1].path!==h?f.findIndex(As.bind(null,l[u-2])):d}),a=$(()=>i.value>-1&&GG(r.params,n.value.params)),o=$(()=>i.value>-1&&i.value===r.matched.length-1&&gA(r.params,n.value.params));function s(l={}){return VG(l)?t[P(e.replace)?"replace":"push"](P(e.to)).catch(Fl):Promise.resolve()}return{route:n,href:$(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}const zG=ce({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:C1,setup(e,{slots:t}){const r=fn(C1(e)),{options:n}=Oe(Ry),i=$(()=>({[M1(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[M1(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&t.default(r);return e.custom?a:Ce("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),WG=zG;function VG(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 GG(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!En(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function T1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const M1=(e,t,r)=>e??t??r,UG=ce({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Oe(pg),i=$(()=>e.route||n.value),a=Oe(x1,0),o=$(()=>{let u=P(a);const{matched:c}=i.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=$(()=>i.value.matched[o.value]);Tt(x1,$(()=>o.value+1)),Tt($G,s),Tt(pg,i);const l=H();return xe(()=>[l.value,s.value,e.name],([u,c,f],[d,h,v])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!As(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,f=s.value,d=f&&f.components[c];if(!d)return A1(r.default,{Component:d,route:u});const h=f.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=Ce(d,st({},v,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return A1(r.default,{Component:g,route:u})||g}}});function A1(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const jG=UG;function YG(e){const t=bG(e.routes,e),r=e.parseQuery||BG,n=e.stringifyQuery||S1,i=e.history,a=Xs(),o=Xs(),s=Xs(),l=EC(Di);let u=Di;qo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Kh.bind(null,V=>""+V),f=Kh.bind(null,NG),d=Kh.bind(null,td);function h(V,J){let W,Y;return yA(V)?(W=t.getRecordMatcher(V),Y=J):Y=V,t.addRoute(Y,W)}function v(V){const J=t.getRecordMatcher(V);J&&t.removeRoute(J)}function p(){return t.getRoutes().map(V=>V.record)}function g(V){return!!t.getRecordMatcher(V)}function m(V,J){if(J=st({},J||l.value),typeof V=="string"){const L=Xh(r,V,J.path),I=t.resolve({path:L.path},J),z=i.createHref(L.fullPath);return st(L,I,{params:d(I.params),hash:td(L.hash),redirectedFrom:void 0,href:z})}let W;if("path"in V)W=st({},V,{path:Xh(r,V.path,J.path).path});else{const L=st({},V.params);for(const I in L)L[I]==null&&delete L[I];W=st({},V,{params:f(V.params)}),J.params=f(J.params)}const Y=t.resolve(W,J),ue=V.hash||"";Y.params=c(d(Y.params));const he=qV(n,st({},V,{hash:OG(ue),path:Y.path})),Q=i.createHref(he);return st({fullPath:he,hash:ue,query:n===S1?FG(V.query):V.query||{}},Y,{redirectedFrom:void 0,href:Q})}function y(V){return typeof V=="string"?Xh(r,V,l.value.path):st({},V)}function _(V,J){if(u!==V)return Es(8,{from:J,to:V})}function b(V){return x(V)}function S(V){return b(st(y(V),{replace:!0}))}function w(V){const J=V.matched[V.matched.length-1];if(J&&J.redirect){const{redirect:W}=J;let Y=typeof W=="function"?W(V):W;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=y(Y):{path:Y},Y.params={}),st({query:V.query,hash:V.hash,params:"path"in Y?{}:V.params},Y)}}function x(V,J){const W=u=m(V),Y=l.value,ue=V.state,he=V.force,Q=V.replace===!0,L=w(W);if(L)return x(st(y(L),{state:typeof L=="object"?st({},ue,L.state):ue,force:he,replace:Q}),J||W);const I=W;I.redirectedFrom=J;let z;return!he&&KV(n,Y,W)&&(z=Es(16,{to:I,from:Y}),j(Y,Y,!0,!1)),(z?Promise.resolve(z):T(I,Y)).catch(G=>ai(G)?ai(G,2)?G:N(G):K(G,I,Y)).then(G=>{if(G){if(ai(G,2))return x(st({replace:Q},y(G.to),{state:typeof G.to=="object"?st({},ue,G.to.state):ue,force:he}),J||I)}else G=A(I,Y,!0,Q,ue);return E(I,Y,G),G})}function C(V,J){const W=_(V,J);return W?Promise.reject(W):Promise.resolve()}function T(V,J){let W;const[Y,ue,he]=qG(V,J);W=Zh(Y.reverse(),"beforeRouteLeave",V,J);for(const L of Y)L.leaveGuards.forEach(I=>{W.push(Wi(I,V,J))});const Q=C.bind(null,V,J);return W.push(Q),Io(W).then(()=>{W=[];for(const L of a.list())W.push(Wi(L,V,J));return W.push(Q),Io(W)}).then(()=>{W=Zh(ue,"beforeRouteUpdate",V,J);for(const L of ue)L.updateGuards.forEach(I=>{W.push(Wi(I,V,J))});return W.push(Q),Io(W)}).then(()=>{W=[];for(const L of V.matched)if(L.beforeEnter&&!J.matched.includes(L))if(En(L.beforeEnter))for(const I of L.beforeEnter)W.push(Wi(I,V,J));else W.push(Wi(L.beforeEnter,V,J));return W.push(Q),Io(W)}).then(()=>(V.matched.forEach(L=>L.enterCallbacks={}),W=Zh(he,"beforeRouteEnter",V,J),W.push(Q),Io(W))).then(()=>{W=[];for(const L of o.list())W.push(Wi(L,V,J));return W.push(Q),Io(W)}).catch(L=>ai(L,8)?L:Promise.reject(L))}function E(V,J,W){for(const Y of s.list())Y(V,J,W)}function A(V,J,W,Y,ue){const he=_(V,J);if(he)return he;const Q=J===Di,L=qo?history.state:{};W&&(Y||Q?i.replace(V.fullPath,st({scroll:Q&&L&&L.scroll},ue)):i.push(V.fullPath,ue)),l.value=V,j(V,J,W,Q),N()}let M;function D(){M||(M=i.listen((V,J,W)=>{if(!Ee.listening)return;const Y=m(V),ue=w(Y);if(ue){x(st(ue,{replace:!0}),Y).catch(Fl);return}u=Y;const he=l.value;qo&&nG(v1(he.fullPath,W.delta),Jd()),T(Y,he).catch(Q=>ai(Q,12)?Q:ai(Q,2)?(x(Q.to,Y).then(L=>{ai(L,20)&&!W.delta&&W.type===mu.pop&&i.go(-1,!1)}).catch(Fl),Promise.reject()):(W.delta&&i.go(-W.delta,!1),K(Q,Y,he))).then(Q=>{Q=Q||A(Y,he,!1),Q&&(W.delta&&!ai(Q,8)?i.go(-W.delta,!1):W.type===mu.pop&&ai(Q,20)&&i.go(-1,!1)),E(Y,he,Q)}).catch(Fl)}))}let R=Xs(),k=Xs(),F;function K(V,J,W){N(V);const Y=k.list();return Y.length?Y.forEach(ue=>ue(V,J,W)):console.error(V),Promise.reject(V)}function B(){return F&&l.value!==Di?Promise.resolve():new Promise((V,J)=>{R.add([V,J])})}function N(V){return F||(F=!V,D(),R.list().forEach(([J,W])=>V?W(V):J()),R.reset()),V}function j(V,J,W,Y){const{scrollBehavior:ue}=e;if(!qo||!ue)return Promise.resolve();const he=!W&&iG(v1(V.fullPath,0))||(Y||!W)&&history.state&&history.state.scroll||null;return Rt().then(()=>ue(V,J,he)).then(Q=>Q&&rG(Q)).catch(Q=>K(Q,V,J))}const re=V=>i.go(V);let oe;const _e=new Set,Ee={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:m,options:e,push:b,replace:S,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:k.add,isReady:B,install(V){const J=this;V.component("RouterLink",WG),V.component("RouterView",jG),V.config.globalProperties.$router=J,Object.defineProperty(V.config.globalProperties,"$route",{enumerable:!0,get:()=>P(l)}),qo&&!oe&&l.value===Di&&(oe=!0,b(i.location).catch(ue=>{}));const W={};for(const ue in Di)W[ue]=$(()=>l.value[ue]);V.provide(Ry,J),V.provide(MA,fn(W)),V.provide(pg,l);const Y=V.unmount;_e.add(V),V.unmount=function(){_e.delete(V),_e.size<1&&(u=Di,M&&M(),M=null,l.value=Di,oe=!1,F=!1),Y()}}};return Ee}function Io(e){return e.reduce((t,r)=>t.then(()=>r()),Promise.resolve())}function qG(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oAs(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>As(u,l))||i.push(l))}return[r,n,i]}var na={},KG={get exports(){return na},set exports(e){na=e}};(function(e,t){var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol?"symbol":typeof n};(function(n,i){r(t)==="object"?e.exports=i():n.Humanize=i()})(Rz,function(){var n=[{name:"second",value:1e3},{name:"minute",value:6e4},{name:"hour",value:36e5},{name:"day",value:864e5},{name:"week",value:6048e5}],i={P:Math.pow(2,50),T:Math.pow(2,40),G:Math.pow(2,30),M:Math.pow(2,20)},a=function(f){return typeof f<"u"&&f!==null},o=function(f){return f!==f},s=function(f){return isFinite(f)&&!o(parseFloat(f))},l=function(f){var d=Object.prototype.toString.call(f);return d==="[object Array]"},u={intword:function(f,d){var h=arguments.length<=2||arguments[2]===void 0?2:arguments[2];return u.compactInteger(f,h)},compactInteger:function(f){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1];d=Math.max(d,0);var h=parseInt(f,10),v=h<0?"-":"",p=Math.abs(h),g=String(p),m=g.length,y=[13,10,7,4],_=["T","B","M","k"];if(p<1e3)return""+v+g;if(m>y[0]+3)return h.toExponential(d).replace("e+","x10^");for(var b=void 0,S=0;S=w){b=w;break}}var x=m-b+1,C=g.split(""),T=C.slice(0,x),E=C.slice(x,x+d+1),A=T.join(""),M=E.join("");M.length=v)return u.formatNumber(f/v,d,"")+" "+h+"B"}return f>=1024?u.formatNumber(f/1024,0)+" KB":u.formatNumber(f,0)+u.pluralize(f," byte")},filesize:function(){return u.fileSize.apply(u,arguments)},formatNumber:function(f){var d=arguments.length<=1||arguments[1]===void 0?0:arguments[1],h=arguments.length<=2||arguments[2]===void 0?",":arguments[2],v=arguments.length<=3||arguments[3]===void 0?".":arguments[3],p=function(x,C,T){return T?x.substr(0,T)+C:""},g=function(x,C,T){return x.substr(T).replace(/(\d{3})(?=\d)/g,"$1"+C)},m=function(x,C,T){return T?C+u.toFixed(Math.abs(x),T).split(".")[1]:""},y=u.normalizePrecision(d),_=f<0&&"-"||"",b=String(parseInt(u.toFixed(Math.abs(f||0),y),10)),S=b.length>3?b.length%3:0;return _+p(b,h,S)+g(b,h,S)+m(f,v,y)},toFixed:function(f,d){d=a(d)?d:u.normalizePrecision(d,0);var h=Math.pow(10,d);return(Math.round(f*h)/h).toFixed(d)},normalizePrecision:function(f,d){return f=Math.round(Math.abs(f)),o(f)?d:f},ordinal:function(f){var d=parseInt(f,10);if(d===0)return f;var h=d%100;if([11,12,13].indexOf(h)>=0)return d+"th";var v=d%10,p=void 0;switch(v){case 1:p="st";break;case 2:p="nd";break;case 3:p="rd";break;default:p="th"}return""+d+p},times:function(f){var d=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];if(s(f)&&f>=0){var h=parseFloat(f),v=["never","once","twice"];if(a(d[h]))return String(d[h]);var p=a(v[h])&&v[h].toString();return p||h.toString()+" times"}return null},pluralize:function(f,d,h){return a(f)&&a(d)?(h=a(h)?h:d+"s",parseInt(f,10)===1?d:h):null},truncate:function(f){var d=arguments.length<=1||arguments[1]===void 0?100:arguments[1],h=arguments.length<=2||arguments[2]===void 0?"...":arguments[2];return f.length>d?f.substring(0,d-h.length)+h:f},truncateWords:function(f,d){for(var h=f.split(" "),v="",p=0;pd?v+"...":null},truncatewords:function(){return u.truncateWords.apply(u,arguments)},boundedNumber:function(f){var d=arguments.length<=1||arguments[1]===void 0?100:arguments[1],h=arguments.length<=2||arguments[2]===void 0?"+":arguments[2],v=void 0;return s(f)&&s(d)&&f>d&&(v=d+h),(v||f).toString()},truncatenumber:function(){return u.boundedNumber.apply(u,arguments)},oxford:function(f,d,h){var v=f.length,p=void 0;if(v<2)return String(f);if(v===2)return f.join(" and ");if(a(d)&&v>d){var g=v-d;p=d,h=a(h)?h:", and "+g+" "+u.pluralize(g,"other")}else p=-1,h=", and "+f[v-1];return f.slice(0,p).join(", ")+h},dictionary:function(f){var d=arguments.length<=1||arguments[1]===void 0?" is ":arguments[1],h=arguments.length<=2||arguments[2]===void 0?", ":arguments[2],v="";if(a(f)&&(typeof f>"u"?"undefined":r(f))==="object"&&!l(f)){var p=[];for(var g in f)if(f.hasOwnProperty(g)){var m=f[g];p.push(""+g+d+m)}return p.join(h)}return v},frequency:function(f,d){if(!l(f))return null;var h=f.length,v=u.times(h);return h===0?v+" "+d:d+" "+v},pace:function(f,d){var h=arguments.length<=2||arguments[2]===void 0?"time":arguments[2];if(f===0||d===0)return"No "+u.pluralize(0,h);for(var v="Approximately",p=void 0,g=void 0,m=f/d,y=0;y1){p=_.name;break}}p||(v="Less than",g=1,p=n[n.length-1].name);var b=Math.round(g);return h=u.pluralize(b,h),v+" "+b+" "+h+" per "+p},nl2br:function(f){var d=arguments.length<=1||arguments[1]===void 0?"
":arguments[1];return f.replace(/\n/g,d)},br2nl:function(f){var d=arguments.length<=1||arguments[1]===void 0?`\r `:arguments[1];return f.replace(/\/g,d)},capitalize:function(f){var d=arguments.length<=1||arguments[1]===void 0?!1:arguments[1];return""+f.charAt(0).toUpperCase()+(d?f.slice(1).toLowerCase():f.slice(1))},capitalizeAll:function(f){return f.replace(/(?:^|\s)\S/g,function(d){return d.toUpperCase()})},titleCase:function(f){var d=/\b(a|an|and|at|but|by|de|en|for|if|in|of|on|or|the|to|via|vs?\.?)\b/i,h=/\S+[A-Z]+\S*/,v=/\s+/,p=/-/,g=void 0;return g=function(y){for(var _=arguments.length<=1||arguments[1]===void 0?!1:arguments[1],b=arguments.length<=2||arguments[2]===void 0?!0:arguments[2],S=[],w=y.split(_?p:v),x=0;x"u"&&typeof self<"u"?Wa.worker=!0:typeof navigator>"u"?(Wa.node=!0,Wa.svgSupported=!0):QG(navigator.userAgent,Wa);function QG(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}const Ue=Wa;var ky=12,JG="sans-serif",mo=ky+"px "+JG,eU=20,tU=100,rU="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function nU(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.length;else for(var l=0;l>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function PU(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?D1(s,o):D1(o,s))}function RA(e){return e.nodeName.toUpperCase()==="CANVAS"}var LU=/([&<>"'])/g,DU={"&":"&","<":"<",">":">",'"':""","'":"'"};function Zr(e){return e==null?"":(e+"").replace(LU,function(t,r){return DU[r]})}var IU=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,tv=[],OU=Ue.browser.firefox&&+Ue.browser.version.split(".")[0]<39;function xg(e,t,r,n){return r=r||{},n?O1(e,t,r):OU&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):O1(e,t,r),r}function O1(e,t,r){if(Ue.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(RA(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(Sg(tv,e,n,i)){r.zrX=tv[0],r.zrY=tv[1];return}}r.zrX=r.zrY=0}function Hy(e){return e||window.event}function Yr(e,t,r){if(t=Hy(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&xg(e,o,t,r)}else{xg(e,t,t,r);var a=RU(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&IU.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function RU(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function kU(e,t,r,n){e.addEventListener(t,r,n)}function NU(e,t,r,n){e.removeEventListener(t,r,n)}var kA=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},BU=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=R1(n)/R1(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=FU(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function _u(){return[1,0,0,1,0,0]}function zy(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function $U(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 us(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function Cg(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Wy(e,t,r){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=n*c+o*u,e[1]=-n*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function HU(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function nh(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}var zU=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}();const Ne=zU;var Sc=Math.min,xc=Math.max,ga=new Ne,ma=new Ne,ya=new Ne,_a=new Ne,Zs=new Ne,Qs=new Ne,WU=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=Sc(t.x,this.x),n=Sc(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=xc(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=xc(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=_u();return Cg(a,a,[-r.x,-r.y]),HU(a,a,[n,i]),Cg(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(av&&(v=_,pv&&(v=b,m=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ga.x=ya.x=r.x,ga.y=_a.y=r.y,ma.x=_a.x=r.x+r.width,ma.y=ya.y=r.y+r.height,ga.transform(n),_a.transform(n),ma.transform(n),ya.transform(n),t.x=Sc(ga.x,ma.x,ya.x,_a.x),t.y=Sc(ga.y,ma.y,ya.y,_a.y);var l=xc(ga.x,ma.x,ya.x,_a.x),u=xc(ga.y,ma.y,ya.y,_a.y);t.width=l-t.x,t.height=u-t.y},e}();const tt=WU;var NA="silent";function VU(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:GU}}function GU(){kA(this.event)}var UU=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ri),Js=function(){function e(t,r){this.x=t,this.y=r}return e}(),jU=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],nv=new tt(0,0,0,0),BA=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new Js(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new UU,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new CU(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(O(jU,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=FA(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Js(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Js(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=VU(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new Js(r,n);if(k1(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new tt(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(nv.copy(d.getBoundingRect()),d.transform&&nv.applyTransform(d.transform),nv.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function YU(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?NA:!0}return!1}function k1(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=YU(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==NA)){t.target=o;break}}}function FA(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const qU=BA;var $A=32,el=7;function KU(e){for(var t=0;e>=$A;)t|=e&1,e>>=1;return e+t}function N1(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function XU(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function iv(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function av(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function ZU(e,t){var r=el,n,i,a=0;e.length;var o=[];n=[],i=[];function s(h,v){n[a]=h,i[a]=v,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]=el||x>=el);if(C)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(m=0;m=0;m--)e[w+m]=e[S+m];e[b]=o[_];return}for(var x=r;;){var C=0,T=0,E=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],C++,T=0,--v===0){E=!0;break}}else if(e[b--]=o[_--],T++,C=0,--g===1){E=!0;break}while((C|T)=0;m--)e[w+m]=e[S+m];if(v===0){E=!0;break}}if(e[b--]=o[_--],--g===1){E=!0;break}if(T=g-iv(e[y],o,0,g,g-1,t),T!==0){for(b-=T,_-=T,g-=T,w=b+1,S=_+1,m=0;m=el||T>=el);if(E)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),g===1){for(b-=v,y-=v,w=b+1,S=y+1,m=v-1;m>=0;m--)e[w+m]=e[S+m];e[b]=o[_]}else{if(g===0)throw new Error;for(S=b-(g-1),m=0;ms&&(l=s),B1(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Or=1,bl=2,Ko=4,F1=!1;function ov(){F1||(F1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $1(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var QU=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$1}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(ov(),c.z=0),isNaN(c.z2)&&(ov(),c.z2=0),isNaN(c.zlevel)&&(ov(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}();const JU=QU;var HA;HA=Ue.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Tg=HA;var Af={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Af.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?Af.bounceIn(e*2)*.5:Af.bounceOut(e*2-1)*.5+.5}};const zA=Af;var Cc=Math.pow,Xi=Math.sqrt,id=1e-8,WA=1e-4,H1=Xi(3),Tc=1/3,Hn=$s(),Qr=$s(),cs=$s();function Ui(e){return e>-id&&eid||e<-id}function Gt(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function z1(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function GA(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Ui(c)&&Ui(f))if(Ui(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var p=f*f-4*c*d;if(Ui(p)){var g=f/c,v=-s/o+g,m=-g/2;v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m)}else if(p>0){var y=Xi(p),_=c*s+1.5*o*(-f+y),b=c*s+1.5*o*(-f-y);_<0?_=-Cc(-_,Tc):_=Cc(_,Tc),b<0?b=-Cc(-b,Tc):b=Cc(b,Tc);var v=(-s-(_+b))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*c*s-3*o*f)/(2*Xi(c*c*c)),w=Math.acos(S)/3,x=Xi(c),C=Math.cos(w),v=(-s-2*x*C)/(3*o),m=(-s+x*(C+H1*Math.sin(w)))/(3*o),T=(-s+x*(C-H1*Math.sin(w)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),T>=0&&T<=1&&(a[h++]=T)}}return h}function UA(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Ui(o)){if(VA(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Ui(c))i[0]=-a/(2*o);else if(c>0){var f=Xi(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function ad(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function jA(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,v,p,g,m;Hn[0]=l,Hn[1]=u;for(var y=0;y<1;y+=.05)Qr[0]=Gt(e,r,i,o,y),Qr[1]=Gt(t,n,a,s,y),g=ls(Hn,Qr),g=0&&g=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Ui(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Xi(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function YA(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function od(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function qA(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;Hn[0]=o,Hn[1]=s;for(var d=0;d<1;d+=.05){Qr[0]=Jt(e,r,i,d),Qr[1]=Jt(t,n,a,d);var h=ls(Hn,Qr);h=0&&h=1?1:GA(0,n,a,1,l,s)&&Gt(0,i,o,1,s[0])}}}var i9=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||Tr,this.ondestroy=t.ondestroy||Tr,this.onrestart=t.onrestart||Tr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Ge(t)?t:zA[t]||KA(t)},e}();const a9=i9;var XA=function(){function e(t){this.value=t}return e}(),o9=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new XA(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),s9=function(){function e(t){this._list=new o9,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new XA(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();const Xu=s9;var V1={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 Wl(e){return e=Math.round(e),e<0?0:e>255?255:e}function G1(e){return e<0?0:e>1?1:e}function sv(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Wl(parseFloat(t)/100*255):Wl(parseInt(t,10))}function Vl(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?G1(parseFloat(t)/100):G1(parseFloat(t))}function lv(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function jr(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Mg(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ZA=new Xu(20),Mc=null;function Ro(e,t){Mc&&Mg(Mc,t),Mc=ZA.put(e,Mc||t.slice())}function oo(e,t){if(e){t=t||[];var r=ZA.get(e);if(r)return Mg(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in V1)return Mg(t,V1[n]),Ro(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){jr(t,0,0,0,1);return}return jr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Ro(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){jr(t,0,0,0,1);return}return jr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Ro(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?jr(t,+u[0],+u[1],+u[2],1):jr(t,0,0,0,1);c=Vl(u.pop());case"rgb":if(u.length>=3)return jr(t,sv(u[0]),sv(u[1]),sv(u[2]),u.length===3?c:Vl(u[3])),Ro(e,t),t;jr(t,0,0,0,1);return;case"hsla":if(u.length!==4){jr(t,0,0,0,1);return}return u[3]=Vl(u[3]),U1(u,t),Ro(e,t),t;case"hsl":if(u.length!==3){jr(t,0,0,0,1);return}return U1(u,t),Ro(e,t),t;default:return}}jr(t,0,0,0,1)}}function U1(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Vl(e[1]),i=Vl(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],jr(t,Wl(lv(o,a,r+1/3)*255),Wl(lv(o,a,r)*255),Wl(lv(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function j1(e,t){var r=oo(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Vy(r,r.length===4?"rgba":"rgb")}}function Vy(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function sd(e,t){var r=oo(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}function l9(e){return e.type==="linear"}function u9(e){return e.type==="radial"}(function(){return Ue.hasGlobalWindow&&Ge(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var Ag=Array.prototype.slice;function fi(e,t,r){return(t-e)*r+e}function uv(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=q1,l=r;if(Ar(r)){var u=h9(r);s=u,(u===1&&!bt(r[0])||u===2&&!bt(r[0][0]))&&(o=!0)}else if(bt(r)&&!nd(r))s=Ec;else if(Ae(r))if(!isNaN(+r))s=Ec;else{var c=oo(r);c&&(l=c,s=wl)}else if(th(r)){var f=se({},l);f.colorStops=Re(r.colorStops,function(h){return{offset:h.offset,color:oo(h.color)}}),l9(r)?s=Eg:u9(r)&&(s=Pg),l=f}a===0?this.valType=s:(s!==this.valType||s===q1)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=Ge(n)?n:zA[n]||KA(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Pc(i),u=K1(i),c=0;c=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;cr);c++);c=d(c-1,s-2)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,this._lastFrP=r;var g=v.percent-h.percent,m=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(m=v.easingFunc(m));var y=n?this._additiveValue:u?tl:t[l];if((Pc(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=m<1?h.rawValue:v.rawValue;else if(Pc(a))a===Lf?uv(y,h[i],v[i],m):c9(y,h[i],v[i],m);else if(K1(a)){var _=h[i],b=v[i],S=a===Eg;t[l]={type:S?"linear":"radial",x:fi(_.x,b.x,m),y:fi(_.y,b.y,m),colorStops:Re(_.colorStops,function(x,C){var T=b.colorStops[C];return{offset:fi(x.offset,T.offset,m),color:Pf(uv([],x.color,T.color,m))}}),global:b.global},S?(t[l].x2=fi(_.x2,b.x2,m),t[l].y2=fi(_.y2,b.y2,m)):t[l].r=fi(_.r,b.r,m)}else if(u)uv(y,h[i],v[i],m),n||(t[l]=Pf(y));else{var w=fi(h[i],v[i],m);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ec?t[n]=t[n]+i:r===wl?(oo(t[n],tl),Ac(tl,tl,i,1),t[n]=Pf(tl)):r===Lf?Ac(t[n],t[n],i,1):r===QA&&Y1(t[n],t[n],i,1)},e}(),p9=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Fy("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,Ct(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,Ef(u),i),this._trackKeys.push(s)}l.addKeyframe(t,Ef(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();const Gy=p9;function ts(){return new Date().getTime()}var g9=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=ts()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Tg(n),!r._paused&&r.update())}Tg(n)},t.prototype.start=function(){this._running||(this._time=ts(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ts(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ts()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new Gy(r,n.loop);return this.addAnimator(i),i},t}(ri);const m9=g9;var y9=300,cv=Ue.domSupported,fv=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Re(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),X1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Z1=!1;function Lg(e){var t=e.pointerType;return t==="pen"||t==="touch"}function _9(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 dv(e){e&&(e.zrByTouch=!0)}function b9(e,t){return Yr(e.dom,new w9(e,t),!0)}function JA(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var w9=function(){function e(t,r){this.stopPropagation=Tr,this.stopImmediatePropagation=Tr,this.preventDefault=Tr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),mn={mousedown:function(e){e=Yr(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Yr(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=Yr(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Yr(this.dom,e);var t=e.toElement||e.relatedTarget;JA(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Z1=!0,e=Yr(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Z1||(e=Yr(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Yr(this.dom,e),dv(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),mn.mousemove.call(this,e),mn.mousedown.call(this,e)},touchmove:function(e){e=Yr(this.dom,e),dv(e),this.handler.processGesture(e,"change"),mn.mousemove.call(this,e)},touchend:function(e){e=Yr(this.dom,e),dv(e),this.handler.processGesture(e,"end"),mn.mouseup.call(this,e),+new Date-+this.__lastTouchMomentew||e<-ew}var wa=[],ko=[],vv=_u(),pv=Math.abs,A9=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 ba(this.rotation)||ba(this.x)||ba(this.y)||ba(this.scaleX-1)||ba(this.scaleY-1)||ba(this.skewX)||ba(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&J1(n);return}n=n||_u(),r?this.getLocalTransform(n):J1(n),t&&(r?us(n,t,n):$U(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(wa);var n=wa[0]<0?-1:1,i=wa[1]<0?-1:1,a=((wa[0]-n)*r+n)/wa[0]||0,o=((wa[1]-i)*r+i)/wa[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||_u(),nh(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(us(ko,t.invTransform,r),r=ko);var n=this.originX,i=this.originY;(n||i)&&(vv[4]=n,vv[5]=i,us(ko,r,vv),ko[4]-=n,ko[5]-=i,r=ko),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&on(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&on(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&pv(t[0]-1)>1e-10&&pv(t[3]-1)>1e-10?Math.sqrt(pv(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){E9(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,p=i+l;r[4]=-v*a-d*p*o,r[5]=-p*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&Wy(r,r,u),r[4]+=n+c,r[5]+=i+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),bu=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function E9(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function ud(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=aa(n[0],r.width),u+=aa(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var gv="__zr_normal__",mv=bu.concat(["ignore"]),P9=ia(bu,function(e,t){return e[t]=!0,e},{ignore:!1}),No={},L9=new tt(0,0,0,0),Yy=function(){function e(t){this.id=PA(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=L9;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(No,n,c):ud(No,n,c),a.x=No.x,a.y=No.y,o=No.align,s=No.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=aa(f[0],c.width),h=aa(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;p&&this.canBeInsideText()?(m=n.insideFill,y=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=n.outsideFill,y=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Or,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Rg:Og},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&oo(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Vy(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},se(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(De(t))for(var n=t,i=Ct(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(gv,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===gv,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(at(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Fy("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Or),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,v);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Or)}},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=at(i,t),o=at(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(v,p){r.during(p)});for(var d=0;d0||i.force&&!o.length){var C=void 0,T=void 0,E=void 0;if(s){T={},d&&(C={});for(var b=0;b<_;b++){var m=p[b];T[m]=r[m],d?C[m]=n[m]:r[m]=n[m]}}else if(d){E={};for(var b=0;b<_;b++){var m=p[b];E[m]=Ef(r[m]),I9(r,n,m)}}var S=new Gy(r,!1,!1,f?Ht(v,function(M){return M.targetName===t}):null);S.targetName=t,i.scope&&(S.scope=i.scope),d&&C&&S.whenWithKeys(0,C,p),E&&S.whenWithKeys(0,E,p),S.whenWithKeys(u??500,s?T:n,p).delay(c||0),e.addAnimator(S,t),o.push(S)}}const r2=Yy;var n2=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=at(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=at(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},e.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this.handler.off(t,r)},e.prototype.trigger=function(t,r){this.handler.trigger(t,r)},e.prototype.clear=function(){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function pt(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Ae(e)?$9(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function It(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),a2),e=(+e).toFixed(t),r?e:+e}function di(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return H9(e)}function H9(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function z9(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function W9(e,t){var r=ia(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Re(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Re(i,function(h){return Math.floor(h)}),s=ia(o,function(h,v){return h+v},0),l=Re(i,function(h,v){return h-o[v]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Re(o,function(h){return h/n})}function V9(e,t){var r=Math.max(di(e),di(t)),n=e+t;return r>a2?n:It(n,r)}function o2(e){var t=Math.PI*2;return(e%t+t)%t}function cd(e){return e>-iw&&e=10&&t++,t}function s2(e,t){var r=qy(e),n=Math.pow(10,r),i=e/n,a;return t?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function fd(e){var t=parseFloat(e);return t==e&&(t!==0||!Ae(e)||e.indexOf("x")<=0)?t:NaN}function j9(e){return!isNaN(fd(e))}function l2(){return Math.round(Math.random()*9)}function u2(e,t){return t===0?e:u2(t,e%t)}function aw(e,t){return e==null?t:t==null?e:e*t/u2(e,t)}function br(e){throw new Error(e)}function ow(e,t,r){return(t-e)*r+e}var c2="series\0",Y9="\0_ec_\0";function cr(e){return e instanceof Array?e:e==null?[]:[e]}function Ng(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n=0||a&&at(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var gj=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],mj=Su(gj),yj=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return mj(this,t,r)},e}(),Bg=new Xu(50);function _j(e){if(typeof e=="string"){var t=Bg.get(e);return t&&t.image}else return e}function p2(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=Bg.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!oh(t)&&a.pending.push(o)):(t=Mo.loadImage(e,lw,lw),t.__zrImageSrc=e,Bg.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function lw(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=Fr(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function m2(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Fr(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?wj(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Fr(e,n)}return e===""&&(e=t.placeholder),e}function wj(e,t,r,n){for(var i=0,a=0,o=e.length;ah&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&a&&c!=null)for(var p=g2(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;gs&&Sv(r,e.substring(s,u),t,o),Sv(r,l[2],t,o,l[1]),s=wv.lastIndex}si){S>0?(y.tokens=y.tokens.slice(0,S),g(y,b,_),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var M=x.width,D=M==null||M==="auto";if(typeof M=="string"&&M.charAt(M.length-1)==="%")w.percentWidth=M,c.push(w),w.contentWidth=Fr(w.text,E);else{if(D){var R=x.backgroundColor,k=R&&R.image;k&&(k=_j(k),oh(k)&&(w.width=Math.max(w.width,k.width*A/k.height)))}var F=v&&n!=null?n-b:null;F!=null&&F0&&v+n.accumWidth>n.width&&(c=t.split(` `),u=!0),n.accumWidth=v}else{var p=y2(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=t.split(` `);for(var g=0;g=33&&t<=383}var Aj=ia(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Ej(e){return Mj(e)?!!Aj[e]:!0}function y2(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;fr:i+c+h>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):v?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var Fg="__zr_style_"+Math.round(Math.random()*10),so={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},sh={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};so[Fg]=!0;var cw=["z","z2","invisible"],Pj=["invisible"],Lj=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Ct(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Lc[0]=Mv(i)*r+e,Lc[1]=Tv(i)*n+t,Dc[0]=Mv(a)*r+e,Dc[1]=Tv(a)*n+t,u(s,Lc,Dc),c(l,Lc,Dc),i=i%xa,i<0&&(i=i+xa),a=a%xa,a<0&&(a=a+xa),i>a&&!o?a+=xa:ii&&(Ic[0]=Mv(h)*r+e,Ic[1]=Tv(h)*n+t,u(s,Ic,s),c(l,Ic,l))}var it={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ca=[],Ta=[],Rn=[],Ii=[],kn=[],Nn=[],Av=Math.min,Ev=Math.max,Ma=Math.cos,Aa=Math.sin,oi=Math.abs,$g=Math.PI,$i=$g*2,Pv=typeof Float32Array<"u",rl=[];function Lv(e){var t=Math.round(e/$g*1e8)/1e8;return t%2*$g}function kj(e,t){var r=Lv(e[0]);r<0&&(r+=$i);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=$i?i=r+$i:t&&r-i>=$i?i=r-$i:!t&&r>i?i=r+($i-Lv(r-i)):t&&r0&&(this._ux=oi(n/ld/t)||0,this._uy=oi(n/ld/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(it.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=oi(t-this._xi),i=oi(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(it.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(it.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(it.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),rl[0]=i,rl[1]=a,kj(rl,o),i=rl[0],a=rl[1];var s=a-i;return this.addData(it.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Ma(a)*n+t,this._yi=Aa(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(it.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(it.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Pv&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Rn[0]=Rn[1]=kn[0]=kn[1]=Number.MAX_VALUE,Ii[0]=Ii[1]=Nn[0]=Nn[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||oi(_)>i||d===r-1)&&(p=Math.sqrt(y*y+_*_),a=g,o=m);break}case it.C:{var b=t[d++],S=t[d++],g=t[d++],m=t[d++],w=t[d++],x=t[d++];p=e9(a,o,b,S,g,m,w,x,10),a=w,o=x;break}case it.Q:{var b=t[d++],S=t[d++],g=t[d++],m=t[d++];p=r9(a,o,b,S,g,m,10),a=g,o=m;break}case it.A:var C=t[d++],T=t[d++],E=t[d++],A=t[d++],M=t[d++],D=t[d++],R=D+M;d+=1,t[d++],v&&(s=Ma(M)*E+C,l=Aa(M)*A+T),p=Ev(E,A)*Av($i,Math.abs(D)),a=Ma(R)*E+C,o=Aa(R)*A+T;break;case it.R:{s=a=t[d++],l=o=t[d++];var k=t[d++],F=t[d++];p=k*2+F*2;break}case it.Z:{var y=s-a,_=l-o;p=Math.sqrt(y*y+_*_),a=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,v,p,g=0,m=0,y,_=0,b,S;if(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,y=r*p,!y))return;e:for(var w=0;w0&&(t.lineTo(b,S),_=0),x){case it.M:s=u=n[w++],l=c=n[w++],t.moveTo(u,c);break;case it.L:{f=n[w++],d=n[w++];var T=oi(f-u),E=oi(d-c);if(T>i||E>a){if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;t.lineTo(u*(1-M)+f*M,c*(1-M)+d*M);break e}g+=A}t.lineTo(f,d),u=f,c=d,_=0}else{var D=T*T+E*E;D>_&&(b=f,S=d,_=D)}break}case it.C:{var R=n[w++],k=n[w++],F=n[w++],K=n[w++],B=n[w++],N=n[w++];if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;ad(u,R,F,B,M,Ca),ad(c,k,K,N,M,Ta),t.bezierCurveTo(Ca[1],Ta[1],Ca[2],Ta[2],Ca[3],Ta[3]);break e}g+=A}t.bezierCurveTo(R,k,F,K,B,N),u=B,c=N;break}case it.Q:{var R=n[w++],k=n[w++],F=n[w++],K=n[w++];if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;od(u,R,F,M,Ca),od(c,k,K,M,Ta),t.quadraticCurveTo(Ca[1],Ta[1],Ca[2],Ta[2]);break e}g+=A}t.quadraticCurveTo(R,k,F,K),u=F,c=K;break}case it.A:var j=n[w++],re=n[w++],oe=n[w++],_e=n[w++],Ee=n[w++],V=n[w++],J=n[w++],W=!n[w++],Y=oe>_e?oe:_e,ue=oi(oe-_e)>.001,he=Ee+V,Q=!1;if(h){var A=v[m++];g+A>y&&(he=Ee+V*(y-g)/A,Q=!0),g+=A}if(ue&&t.ellipse?t.ellipse(j,re,oe,_e,J,Ee,he,W):t.arc(j,re,Y,Ee,he,W),Q)break e;C&&(s=Ma(Ee)*oe+j,l=Aa(Ee)*_e+re),u=Ma(he)*oe+j,c=Aa(he)*_e+re;break;case it.R:s=u=n[w],l=c=n[w+1],f=n[w++],d=n[w++];var L=n[w++],I=n[w++];if(h){var A=v[m++];if(g+A>y){var z=y-g;t.moveTo(f,d),t.lineTo(f+Av(z,L),d),z-=L,z>0&&t.lineTo(f+L,d+Av(z,I)),z-=I,z>0&&t.lineTo(f+Ev(L-z,0),d+I),z-=L,z>0&&t.lineTo(f,d+Ev(I-z,0));break e}g+=A}t.rect(f,d,L,I);break;case it.Z:if(h){var A=v[m++];if(g+A>y){var M=(y-g)/A;t.lineTo(u*(1-M)+s*M,c*(1-M)+l*M);break e}g+=A}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=it,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();const yo=Nj;function Bo(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+f&&c>n+f&&c>a+f&&c>s+f||ce+f&&u>r+f&&u>i+f&&u>o+f||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=nl);var d=Math.atan2(l,s);return d<0&&(d+=nl),d>=n&&d<=i||d+nl>=n&&d+nl<=i}function Ea(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Oi=yo.CMD,Pa=Math.PI*2,Hj=1e-4;function zj(e,t){return Math.abs(e-t)t&&u>n&&u>a&&u>s||u1&&Wj(),h=Gt(t,n,a,s,Xr[0]),d>1&&(v=Gt(t,n,a,s,Xr[1]))),d===2?gt&&s>n&&s>a||s=0&&u<=1){for(var c=0,f=Jt(t,n,a,u),d=0;dr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);or[0]=-l,or[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Pa-1e-4){n=0,i=Pa;var c=a?1:-1;return o>=or[0]+e&&o<=or[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=Pa,i+=Pa);for(var d=0,h=0;h<2;h++){var v=or[h];if(v+e>o){var p=Math.atan2(s,v),c=a?1:-1;p<0&&(p=Pa+p),(p>=n&&p<=i||p+Pa>=n&&p+Pa<=i)&&(p>Math.PI/2&&p1&&(r||(s+=Ea(l,u,c,f,n,i))),g&&(l=a[v],u=a[v+1],c=l,f=u),p){case Oi.M:c=a[v++],f=a[v++],l=c,u=f;break;case Oi.L:if(r){if(Bo(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Ea(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Oi.C:if(r){if(Bj(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Vj(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Oi.Q:if(r){if(Fj(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Gj(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Oi.A:var m=a[v++],y=a[v++],_=a[v++],b=a[v++],S=a[v++],w=a[v++];v+=1;var x=!!(1-a[v++]);d=Math.cos(S)*_+m,h=Math.sin(S)*b+y,g?(c=d,f=h):s+=Ea(l,u,d,h,n,i);var C=(n-m)*b/_+m;if(r){if($j(m,y,b,S,S+w,x,t,C,i))return!0}else s+=Uj(m,y,b,S,S+w,x,C,i);l=Math.cos(S+w)*_+m,u=Math.sin(S+w)*b+y;break;case Oi.R:c=l=a[v++],f=u=a[v++];var T=a[v++],E=a[v++];if(d=c+T,h=f+E,r){if(Bo(c,f,d,f,t,n,i)||Bo(d,f,d,h,t,n,i)||Bo(d,h,c,h,t,n,i)||Bo(c,h,c,f,t,n,i))return!0}else s+=Ea(d,f,d,h,n,i),s+=Ea(c,h,c,f,n,i);break;case Oi.Z:if(r){if(Bo(l,u,c,f,t,n,i))return!0}else s+=Ea(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!zj(u,f)&&(s+=Ea(l,u,c,f,n,i)||0),s!==0}function jj(e,t,r){return _2(e,0,!1,t,r)}function Yj(e,t,r,n){return _2(e,t,!0,r,n)}var b2=ct({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},so),qj={style:ct({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},sh.style)},Dv=bu.concat(["invisible","culling","z","z2","zlevel","parent"]),Kj=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Og:n>.2?M9:Rg}else if(r)return Rg}return Og},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Ae(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=sd(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ko)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var 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 r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Yj(s,l/u,r,n)))return!0}if(this.hasFill())return jj(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ko,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:se(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ko)},t.prototype.createStyle=function(r){return rh(b2,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=se({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=se({},i.shape),se(u,n.shape)):(u=se({},a?this.shape:i.shape),se(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=se({},this.shape);for(var c={},f=Ct(u),d=0;d0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return rh(Xj,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=Uy(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ec);w2.prototype.type="tspan";const Hg=w2;var Zj=ct({x:0,y:0},so),Qj={style:ct({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},sh.style)};function Jj(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var S2=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return rh(Zj,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Jj(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Qj},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new tt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ec);S2.prototype.type="image";const Hs=S2;function eY(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),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>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var rs=Math.round;function x2(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(rs(n*2)===rs(i*2)&&(e.x1=e.x2=Ja(n,s,!0)),rs(a*2)===rs(o*2)&&(e.y1=e.y2=Ja(a,s,!0))),e}}function C2(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Ja(n,s,!0),e.y=Ja(i,s,!0),e.width=Math.max(Ja(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Ja(i+o,s,!1)-e.y,o===0?0:1)),e}}function Ja(e,t,r){if(!t)return e;var n=rs(e*2);return(n+rs(t))%2===0?n/2:(n+(r?1:-1))/2}var tY=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),rY={},T2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new tY},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=C2(rY,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?eY(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ft);T2.prototype.type="rect";const Bt=T2;var pw={fill:"#000"},gw=2,nY={style:ct({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},sh.style)},M2=function(e){pe(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=pw,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),D=o.calculatedLineHeight,R=0;R=0&&(R=w[D],R.align==="right");)this._placeToken(R,r,C,m,M,"right",_),T-=R.width,M-=R.width,D--;for(A+=(a-(A-g)-(y-M)-T)/2;E<=D;)R=w[E],this._placeToken(R,r,C,m,A+R.width/2,"center",_),A+=R.width,E++;m+=C}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&Iv(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=Sw(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var p=this._getOrCreateChild(Hg),g=p.createStyle();p.useStyle(g);var m=this._defaultStyle,y=!1,_=0,b=ww("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,m.fill)),S=bw("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!m.autoStroke||y)?(_=gw,m.stroke):null),w=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,w&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||mo,g.opacity=Hl(u.opacity,n.opacity,1),yw(g,u),S&&(g.lineWidth=Hl(u.lineWidth,n.lineWidth,_),g.lineDash=qe(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=S),b&&(g.fill=b);var x=r.contentWidth,C=r.contentHeight;p.setBoundingRect(new tt(Sl(g.x,x,g.textAlign),Xo(g.y,C,g.textBaseline),x,C))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,v=this,p,g;if(d||r.lineHeight||u&&c){p=this._getOrCreateChild(Bt),p.useStyle(p.createStyle()),p.style.fill=null;var m=p.shape;m.x=i,m.y=a,m.width=o,m.height=s,m.r=h,p.dirtyShape()}if(d){var y=p.style;y.fill=l||null,y.fillOpacity=qe(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Hs),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var y=p.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=qe(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(p||g).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=Hl(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return sY(r)&&(n=[r.fontStyle,r.fontWeight,oY(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Gn(n)||r.textFont||r.font},t}(ec),iY={left:!0,right:1,center:1},aY={top:1,bottom:1,middle:1},mw=["fontStyle","fontWeight","fontSize","fontFamily"];function oY(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?ky+"px":e+"px"}function yw(e,t){for(var r=0;r=0,a=!1;if(e instanceof ft){var o=A2(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Fo(s)||Fo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=se({},n),u=se({},u),u.fill=s):!Fo(u.fill)&&Fo(s)?(a=!0,n=se({},n),u=se({},u),u.fill=Aw(s)):!Fo(u.stroke)&&Fo(l)&&(a||(n=se({},n),u=se({},u)),u.stroke=Aw(l)),n.style=u}}if(n&&n.z2==null){a||(n=se({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??cY)}return n}function gY(e,t,r){if(r&&r.z2==null){r=se({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??fY)}return r}function mY(e,t,r){var n=at(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:vY(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=se({},r),o=se({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Ov(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return pY(this,e,t,r);if(e==="blur")return mY(this,e,r);if(e==="select")return gY(this,e,r)}return r}function yY(e){e.stateProxy=Ov;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Ov),r&&(r.stateProxy=Ov)}function Pw(e,t){!k2(e,t)&&!e.__highByOuter&&Ti(e,P2)}function Lw(e,t){!k2(e,t)&&!e.__highByOuter&&Ti(e,L2)}function zg(e,t){e.__highByOuter|=1<<(t||0),Ti(e,P2)}function Wg(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ti(e,L2)}function _Y(e){Ti(e,t0)}function I2(e){Ti(e,D2)}function O2(e){Ti(e,dY)}function R2(e){Ti(e,hY)}function k2(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function N2(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Qy(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){D2(u)}),s&&r.push(a)),o.isBlured=!1}),O(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function Vg(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Ug(e,t,r){$2(e,!0),Ti(e,yY),MY(e,t,r)}function TY(e){$2(e,!1)}function B2(e,t,r,n){n?TY(e):Ug(e,t,r)}function MY(e,t,r){var n=ut(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Iw=["emphasis","blur","select"],AY={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function F2(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=Rv(v),s*=Rv(v));var p=(i===a?-1:1)*Rv((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=p*o*h/s,m=p*-s*d/o,y=(e+r)/2+Rc(f)*g-Oc(f)*m,_=(t+n)/2+Oc(f)*g+Rc(f)*m,b=Nw([1,0],[(d-g)/o,(h-m)/s]),S=[(d-g)/o,(h-m)/s],w=[(-1*d-g)/o,(-1*h-m)/s],x=Nw(S,w);if(qg(S,w)<=-1&&(x=il),qg(S,w)>=1&&(x=0),x<0){var C=Math.round(x/il*1e6)/1e6;x=il*2+C%2*il}c.addData(u,y,_,o,s,b,x,f,a)}var OY=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,RY=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function kY(e){var t=new yo;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=yo.CMD,l=e.match(OY);if(!l)return t;for(var u=0;uR*R+k*k&&(C=E,T=A),{cx:C,cy:T,x0:-c,y0:-f,x1:C*(i/S-1),y1:T*(i/S-1)}}function VY(e){var t;if(ge(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function GY(e,t){var r,n=xl(t.r,0),i=xl(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=Fw(u-l),v=h>kv&&h%kv;if(v>gn&&(h=v),!(n>gn))e.moveTo(c,f);else if(h>kv-gn)e.moveTo(c+n*Ho(l),f+n*La(l)),e.arc(c,f,n,l,u,!d),i>gn&&(e.moveTo(c+i*Ho(u),f+i*La(u)),e.arc(c,f,i,u,l,d));else{var p=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,x=void 0,C=void 0,T=void 0,E=void 0,A=void 0,M=void 0,D=void 0,R=void 0,k=n*Ho(l),F=n*La(l),K=i*Ho(u),B=i*La(u),N=h>gn;if(N){var j=t.cornerRadius;j&&(r=VY(j),p=r[0],g=r[1],m=r[2],y=r[3]);var re=Fw(n-i)/2;if(_=Bn(re,m),b=Bn(re,y),S=Bn(re,p),w=Bn(re,g),T=x=xl(_,b),E=C=xl(S,w),(x>gn||C>gn)&&(A=n*Ho(u),M=n*La(u),D=i*Ho(l),R=i*La(l),hgn){var ue=Bn(m,T),he=Bn(y,T),Q=kc(D,R,k,F,n,ue,d),L=kc(A,M,K,B,n,he,d);e.moveTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),T0&&e.arc(c+Q.cx,f+Q.cy,ue,Zt(Q.y0,Q.x0),Zt(Q.y1,Q.x1),!d),e.arc(c,f,n,Zt(Q.cy+Q.y1,Q.cx+Q.x1),Zt(L.cy+L.y1,L.cx+L.x1),!d),he>0&&e.arc(c+L.cx,f+L.cy,he,Zt(L.y1,L.x1),Zt(L.y0,L.x0),!d))}else e.moveTo(c+k,f+F),e.arc(c,f,n,l,u,!d);if(!(i>gn)||!N)e.lineTo(c+K,f+B);else if(E>gn){var ue=Bn(p,E),he=Bn(g,E),Q=kc(K,B,A,M,i,-he,d),L=kc(k,F,D,R,i,-ue,d);e.lineTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),E0&&e.arc(c+Q.cx,f+Q.cy,he,Zt(Q.y0,Q.x0),Zt(Q.y1,Q.x1),!d),e.arc(c,f,i,Zt(Q.cy+Q.y1,Q.cx+Q.x1),Zt(L.cy+L.y1,L.cx+L.x1),d),ue>0&&e.arc(c+L.cx,f+L.cy,ue,Zt(L.y1,L.x1),Zt(L.y0,L.x0),!d))}else e.lineTo(c+K,f+B),e.arc(c,f,i,u,l,d)}e.closePath()}}}var UY=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}(),Y2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new UY},t.prototype.buildPath=function(r,n){GY(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ft);Y2.prototype.type="sector";const Ao=Y2;var jY=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),q2=function(e){pe(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new jY},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(ft);q2.prototype.type="ring";const K2=q2;function YY(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d=2){if(n){var a=YY(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;sIa[1]){if(s=!1,a)return s;var c=Math.abs(Ia[0]-Da[1]),f=Math.abs(Da[0]-Ia[1]);Math.min(c,f)>i.len()&&(c0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Er(e,t,r,n,i,a){a0("update",e,t,r,n,i,a)}function $r(e,t,r,n,i,a){a0("enter",e,t,r,n,i,a)}function fs(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function zw(e){return!e.isGroup}function S7(e){return e.shape!=null}function cE(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){zw(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return S7(o)&&(s.shape=se({},o.shape)),s}var a=n(e);t.traverse(function(o){if(zw(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Er(o,l,r,ut(o).dataIndex)}}})}function x7(e,t){return Re(e,function(r){var n=r[0];n=pd(n,t.x),n=gd(n,t.x+t.width);var i=r[1];return i=pd(i,t.y),i=gd(i,t.y+t.height),[n,i]})}function C7(e,t){var r=pd(e.x,t.x),n=gd(e.x+e.width,t.x+t.width),i=pd(e.y,t.y),a=gd(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function l0(e,t,r){var n=se({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),ct(i,r),new Hs(n)):o0(e.replace("path://",""),n,r,"center")}function T7(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Nv(h,v,c,f)/d;return!(g<0||g>1)}function Nv(e,t,r,n){return e*n-r*t}function M7(e){return e<=1e-6&&e>=-1e-6}function u0(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Ae(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&O(Ct(l),function(c){Ps(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ut(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:ct({content:n,formatterParams:s},i)}}function Ww(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function c0(e,t){if(e)if(ge(e))for(var r=0;r=0&&s.push(l)}),s}}function gE(e,t){return ot(ot({},e,!0),t,!0)}const V7={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:". "}}}},G7={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 md="ZH",d0="EN",Cu=d0,kf={},h0={},mE=Ue.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(md)>-1?md:Cu}():Cu;function yE(e,t){e=e.toUpperCase(),h0[e]=new rr(t),kf[e]=t}function U7(e){if(Ae(e)){var t=kf[e.toUpperCase()]||{};return e===md||e===d0?Qe(t):ot(Qe(t),Qe(kf[Cu]),!1)}else return ot(Qe(e),Qe(kf[Cu]),!1)}function j7(e){return h0[e]}function Y7(){return h0[Cu]}yE(d0,V7);yE(md,G7);var v0=1e3,p0=v0*60,ql=p0*60,tn=ql*24,qw=tn*365,Cl={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}"},Fc="{yyyy}-{MM}-{dd}",Kw={year:"{yyyy}",month:"{yyyy}-{MM}",day:Fc,hour:Fc+" "+Cl.hour,minute:Fc+" "+Cl.minute,second:Fc+" "+Cl.second,millisecond:Cl.none},$v=["year","month","day","hour","minute","second","millisecond"],_E=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Oa(e,t){return e+="","0000".substr(0,t-e.length)+e}function ds(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 q7(e){return e===ds(e)}function K7(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function dh(e,t,r,n){var i=bi(e),a=i[g0(r)](),o=i[hs(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[hh(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Tu(r)](),f=(c-1)%12+1,d=i[vh(r)](),h=i[ph(r)](),v=i[gh(r)](),p=n instanceof rr?n:j7(n||mE)||Y7(),g=p.getModel("time"),m=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),b=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,a%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Oa(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Oa(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Oa(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Oa(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Oa(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Oa(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Oa(v,3)).replace(/{S}/g,v+"")}function X7(e,t,r,n,i){var a=null;if(Ae(r))a=r;else if(Ge(r))a=r(e.value,t,{level:e.level});else{var o=se({},Cl);if(e.level>0)for(var s=0;s<$v.length;++s)o[$v[s]]="{primary|"+o[$v[s]]+"}";var l=r?r.inherit===!1?r:ct(r,o):o,u=bE(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=_E.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ge(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return dh(new Date(e.value),a,i,n)}function bE(e,t){var r=bi(e),n=r[hs(t)]()+1,i=r[hh(t)](),a=r[Tu(t)](),o=r[vh(t)](),s=r[ph(t)](),l=r[gh(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,v=h&&n===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Xw(e,t,r){var n=bt(e)?bi(e):e;switch(t=t||bE(e,r),t){case"year":return n[g0(r)]();case"half-year":return n[hs(r)]()>=6?1:0;case"quarter":return Math.floor((n[hs(r)]()+1)/4);case"month":return n[hs(r)]();case"day":return n[hh(r)]();case"half-day":return n[Tu(r)]()/24;case"hour":return n[Tu(r)]();case"minute":return n[vh(r)]();case"second":return n[ph(r)]();case"millisecond":return n[gh(r)]()}}function g0(e){return e?"getUTCFullYear":"getFullYear"}function hs(e){return e?"getUTCMonth":"getMonth"}function hh(e){return e?"getUTCDate":"getDate"}function Tu(e){return e?"getUTCHours":"getHours"}function vh(e){return e?"getUTCMinutes":"getMinutes"}function ph(e){return e?"getUTCSeconds":"getSeconds"}function gh(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Z7(e){return e?"setUTCFullYear":"setFullYear"}function wE(e){return e?"setUTCMonth":"setMonth"}function SE(e){return e?"setUTCDate":"setDate"}function xE(e){return e?"setUTCHours":"setHours"}function CE(e){return e?"setUTCMinutes":"setMinutes"}function TE(e){return e?"setUTCSeconds":"setSeconds"}function ME(e){return e?"setUTCMilliseconds":"setMilliseconds"}function AE(e){if(!j9(e))return Ae(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function EE(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var mh=LA;function Zg(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Gn(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?bi(e):e;if(isNaN(+l)){if(s)return"-"}else return dh(l,n,r)}if(t==="ordinal")return mg(e)?i(e):bt(e)&&a(e)?e+"":"-";var u=fd(e);return a(u)?AE(u):mg(e)?i(e):typeof e=="boolean"?e+"":"-"}var Zw=["a","b","c","d","e","f","g"],Hv=function(e,t){return"{"+e+(t??"")+"}"};function PE(e,t,r){ge(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Mu(e,t){return t=t||"transparent",Ae(e)?e:De(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Qw(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Nf=O,J7=["left","right","top","bottom","width","height"],$c=[["width","left","right"],["height","top","bottom"]];function m0(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var 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=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=o+g,v>i||l.newline?(a+=s+r,o=0,v=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=v+r)})}var Kl=m0;Dt(m0,"vertical");Dt(m0,"horizontal");function Ls(e,t,r){r=mh(r||0);var n=t.width,i=t.height,a=pt(e.left,n),o=pt(e.top,i),s=pt(e.right,n),l=pt(e.bottom,i),u=pt(e.width,n),c=pt(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var v=new tt(a+r[3],o+r[0],u,c);return v.margin=r,v}function Au(e){var t=e.layoutMode||e.constructor.layoutMode;return De(t)?t:t?{type:t}:null}function Ds(e,t,r){var n=r&&r.ignoreSize;!ge(n)&&(n=[n,n]);var i=o($c[0],0),a=o($c[1],1);u($c[0],e,i),u($c[1],e,a);function o(c,f){var d={},h=0,v={},p=0,g=2;if(Nf(c,function(_){v[_]=e[_]}),Nf(c,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&p++}),n[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=0;l--)s=ot(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return Ju(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(rr);v2(zs,rr);ah(zs);z7(zs);W7(zs,rq);function rq(e){var t=[];return O(zs.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Re(t,function(r){return Un(r).main}),e!=="dataset"&&at(t,"dataset")<=0&&t.unshift("dataset"),t}const wt=zs;var LE="";typeof navigator<"u"&&(LE=navigator.platform||"");var zo="rgba(0, 0, 0, 0.2)";const nq={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:LE.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 DE=je(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),dn="original",Pr="arrayRows",In="objectRows",ni="keyedColumns",Zi="typedArray",IE="unknown",vi="column",Ws="row",Vt={Must:1,Might:2,Not:3},OE=At();function iq(e){OE(e).datasetMap=je()}function aq(e,t,r){var n={},i=y0(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=OE(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),O(e,function(p,g){var m=De(p)?p:e[g]={name:p};m.type==="ordinal"&&c==null&&(c=g,f=v(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});O(e,function(p,g){var m=p.name,y=v(p);if(c==null){var _=d.valueWayDim;h(n[m],_,y),h(o,_,y),d.valueWayDim+=y}else if(c===g)h(n[m],0,y),h(a,0,y);else{var _=d.categoryWayDim;h(n[m],_,y),h(o,_,y),d.categoryWayDim+=y}});function h(p,g,m){for(var y=0;yt)return e[n];return e[r-1]}function fq(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:cq(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function dq(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Hc,al,eS,tS="\0_ec_inner",hq=1,NE=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new rr(a),this._locale=new rr(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=iS(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,iS(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?eS(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&O(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=je(),u=n&&n.replaceMergeMainTypeMap;iq(this),O(r,function(f,d){f!=null&&(wt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Qe(f):ot(i[d],f,!0))}),u&&u.each(function(f,d){wt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),wt.topologicalTravel(s,wt.getAllClassMainTypes(),c,this);function c(f){var d=uq(this,f,cr(r[f])),h=a.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=K9(h,d,v);rj(p,f,wt),i[f]=null,a.set(f,null),o.set(f,0);var g=[],m=[],y=0,_;O(p,function(b,S){var w=b.existing,x=b.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=f==="series",T=wt.getClass(f,b.keyInfo.subType,!C);if(!T)return;if(f==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===T)w.name=b.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,!1);else{var E=se({componentIndex:S},b.keyInfo);w=new T(x,this,this,E),se(w,E),b.brandNew&&(w.__requireNewView=!0),w.init(x,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),m.push(w),y++):(g.push(void 0),m.push(void 0))},this),i[f]=g,a.set(f,m),o.set(f,y),f==="series"&&Hc(this)}this._seriesIndices||Hc(this)},t.prototype.getOption=function(){var r=Qe(this.option);return O(r,function(n,i){if(wt.hasClass(i)){for(var a=cr(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!wu(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[tS],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function Cq(e,t){return e.join(",")===t.join(",")}const Tq=bq;var hn=O,Eu=De,aS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Wv(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=aS.length;r=0;g--){var m=e[g];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&d>=0&&y>0||l==="samesign"&&d<=0&&y<0){d=V9(d,y),p=y;break}}}return n[0]=d,n[1]=p,n})})}var _h=function(){function e(t){this.data=t.data||(t.sourceFormat===ni?{}:[]),this.sourceFormat=t.sourceFormat||IE,this.seriesLayoutBy=t.seriesLayoutBy||vi,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;np&&(p=_)}h[0]=v,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};dS=(t={},t[Pr+"_"+vi]={pure:!0,appendData:a},t[Pr+"_"+Ws]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[In]={pure:!0,appendData:a},t[ni]={pure:!0,appendData:function(o){var s=this._data;O(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[dn]={appendData:a},t[Zi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return Is(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function gS(e){var t,r;return De(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Xl(e){return new Vq(e)}var Vq=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(y){return!(y>=1)&&(y=1),y}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h1&&n>0?s:o}};return a;function o(){return t=e?null:li?-this._resultLT:0},e}(),Uq=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Bf(t,r)},e}();function jq(e,t){var r=new Uq,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==vi&&br(o);var s=[],l={},u=e.dimensionsDefine;if(u)O(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";Ps(l,m)&&br(_),l[m]=y}});else for(var c=0;c65535?eK:tK}function Wo(){return[1/0,-1/0]}function rK(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function _S(e,t,r,n,i){var a=KE[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Re(o,function(y){return y.property}),c=0;cm[1]&&(m[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=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,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=f&&y<=d||isNaN(y))&&(l[u++]=p),p++}v=!0}else if(a===2){for(var g=h[i[0]],_=h[i[1]],b=t[i[1]][0],S=t[i[1]][1],m=0;m=f&&y<=d||isNaN(y))&&(w>=b&&w<=S||isNaN(w))&&(l[u++]=p),p++}v=!0}}if(!v)if(a===1)for(var m=0;m=f&&y<=d||isNaN(y))&&(l[u++]=x)}else for(var m=0;mt[E][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return um[1]&&(m[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(sl(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;vc&&(c=f,d=b)}A>0&&Ac-v&&(l=c-v,s.length=l);for(var p=0;pf[1]&&(f[1]=m),d[h++]=y}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return Bf(r[a],this._dimensions[a])}Uv={arrayRows:t,objectRows:function(r,n,i,a){return Bf(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Bf(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),nK=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(zc(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=zr(s)?Zi:dn,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=qe(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=qe(f.sourceHeader,d.sourceHeader),p=qe(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;i=g?[Qg(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},l)]:[]}else{var m=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=m.get("source",!0);i=[Qg(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&bS(a)}var o,s=[],l=[];return O(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&bS(f),s.push(c),l.push(u._getVersionSign())}),n?o=Qq(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[kq(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return O(e.blocks,function(i){var a=JE(i);a>=t&&(t=a+ +(n&&(!a||em(i)&&!i.noHeader)))}),t}return 0}function oK(e,t,r,n){var i=t.noHeader,a=lK(JE(t)),o=[],s=t.blocks||[];_i(!s||ge(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ps(u,l)){var c=new Gq(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}O(s,function(v,p){var g=t.valueFormatter,m=QE(v)(g?se(se({},e),{valueFormatter:g}):e,v,p>0?a.html:0,n);m!=null&&o.push(m)});var f=e.renderMode==="richText"?o.join(a.richText):tm(o.join(""),i?r:a.html);if(i)return f;var d=Zg(t.header,"ordinal",e.useUTC),h=ZE(n,e.renderMode).nameStyle;return e.renderMode==="richText"?eP(e,d,h)+a.richText+f:tm('
'+Zr(d)+"
"+f,r)}function sK(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(b){return b=ge(b)?b:[b],Re(b,function(S,w){return Zg(S,ge(h)?h[w]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":Zg(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value),p=!s||!a,g=!s&&a,m=ZE(n,i),y=m.nameStyle,_=m.valueStyle;return i==="richText"?(s?"":f)+(a?"":eP(e,d,y))+(o?"":fK(e,v,p,g,_)):tm((s?"":f)+(a?"":uK(d,!s,y))+(o?"":cK(v,p,g,_)),r)}}function wS(e,t,r,n,i,a){if(e){var o=QE(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function lK(e){return{html:iK[e],richText:aK[e]}}function tm(e,t){var r='
',n="margin: "+t+"px 0 0";return'
'+e+r+"
"}function uK(e,t,r){var n=t?"margin-left:2px":"";return''+Zr(e)+""}function cK(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ge(e)?e:[e],''+Re(e,function(o){return Zr(o)}).join("  ")+""}function eP(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function fK(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ge(t)?t.join(" "):t,a)}function dK(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Mu(n)}function tP(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var jv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=l2()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=Q7({color:r,type:t,renderMode:n,markerId:i});return Ae(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ge(r)?O(r,function(a){return se(n,a)}):se(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function hK(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=ge(s),u=dK(t,r),c,f,d,h;if(o>1||l&&!o){var v=vK(s,t,r,a,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=c=Is(i,r,a[0]),f=p.type}else h=c=l?s[0]:s;var g=Ky(t),m=g&&t.name||"",y=i.getName(r),_=n?m:y;return Pu("section",{header:m,noHeader:n||!g,sortParam:h,blocks:[Pu("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Gn(_),value:c,valueType:f})].concat(d||[])})}function vK(e,t,r,n,i){var a=t.getData(),o=ia(e,function(f,d,h){var v=a.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?O(n,function(f){c(Is(a,r,f),f)}):O(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Pu("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ri=At();function Wc(e,t){return e.getName(t)||e.getId(t)}var pK="__universalTransitionEnabled",wh=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Xl({count:mK,reset:yK}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Ri(this).sourceManager=new nK(this);a.prepareSource();var o=this.getInitialData(r,i);xS(o,this),this.dataTask.context.data=o,Ri(this).dataBeforeProcessed=o,SS(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Au(this),a=i?yh(r):{},o=this.subType;wt.hasClass(o)&&(o+="Series"),ot(r,n.getTheme().get(this.subType)),ot(r,this.getDefaultOption()),Ng(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Ds(r,a,i)},t.prototype.mergeOption=function(r,n){r=ot(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Au(this);i&&Ds(this.option,r,i);var a=Ri(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);xS(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ri(this).dataBeforeProcessed=o,SS(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!zr(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=_0.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Wc(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[pK])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){De(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return wt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(wt);ti(wh,Wq);ti(wh,_0);v2(wh,wt);function SS(e){var t=e.name;Ky(e)||(e.name=gK(e)||t)}function gK(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return O(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function mK(e){return e.model.getRawData().count()}function yK(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),_K}function _K(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function xS(e,t){O(pU(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Dt(bK,t))})}function bK(e,t){var r=rm(e);return r&&r.setOutputEnd((t||this).count()),t}function rm(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}const bo=wh;var T0=function(){function e(){this.group=new cn,this.uid=fh("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Zy(T0);ah(T0);const wi=T0;function rP(){var e=At();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var nP=At(),wK=rP(),M0=function(){function e(){this.group=new cn,this.uid=fh("viewChart"),this.renderTask=Xl({plan:SK,reset:xK}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&TS(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&TS(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){c0(this.group,t)},e.markUpdateMethod=function(t,r){nP(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function CS(e,t,r){e&&jg(e)&&(t==="emphasis"?zg:Wg)(e,r)}function TS(e,t,r){var n=Qu(e,t),i=t&&t.highlightKey!=null?EY(t.highlightKey):null;n!=null?O(cr(n),function(a){CS(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){CS(a,r,i)})}Zy(M0);ah(M0);function SK(e){return wK(e.model)}function xK(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&nP(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),CK[l]}var CK={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 uo=M0;var yd="\0__throttleOriginMethod",MS="\0__throttleRate",AS="\0__throttleType";function A0(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function iP(e,t,r,n){var i=e[t];if(i){var a=i[yd]||i,o=i[AS],s=i[MS];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=A0(a,r,n==="debounce"),i[yd]=a,i[AS]=n,i[MS]=r}return i}}function nm(e,t){var r=e[t];r&&r[yd]&&(r.clear&&r.clear(),e[t]=r[yd])}var ES=At(),PS={itemStyle:Su(pE,!0),lineStyle:Su(vE,!0)},TK={lineStyle:"stroke",itemStyle:"fill"};function aP(e,t){var r=e.visualStyleMapper||PS[t];return r||(console.warn("Unknown style type '"+t+"'."),PS.itemStyle)}function oP(e,t){var r=e.visualDrawType||TK[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var MK={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=aP(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=oP(e,n),u=o[l],c=Ge(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,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Ge(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Ge(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var p=e.getDataParams(v),g=se({},o);g[l]=c(p),h.setItemVisual(v,"style",g)}}}},ll=new rr,AK={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=aP(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ll.option=l[n];var u=i(ll),c=o.ensureUniqueItemVisual(s,"style");se(c,u),ll.option.decal&&(o.setItemVisual(s,"decal",ll.option.decal),ll.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},EK={performRawSeries:!0,overallReset:function(e){var t=je();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),ES(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=ES(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=oP(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},Vc=Math.PI;function PK(e,t){t=t||{},ct(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new cn,n=new Bt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new dr({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Bt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new i0({shape:{startAngle:-Vc/2,endAngle:-Vc/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:Vc*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Vc*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var LK=function(){function e(t,r,n,i){this._stageTaskMap=je(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=je();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;O(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";_i(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;O(t,function(l,u){if(!(i.visualType&&i.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(i,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var p=o.getPerformArgs(d,i.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(a=!0)}else f&&f.each(function(g,m){s(i,g)&&g.dirty();var y=o.getPerformArgs(g,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=je(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||Xl({plan:kK,reset:NK,count:FK}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Xl({reset:DK});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=je(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";_i(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):c?c(n,i).each(v):(f=!1,O(n.getSeries(),v));function v(p){var g=p.uid,m=l.set(g,s&&s.get(g)||(d=!0,Xl({reset:IK,onDirty:RK})));m.context={model:p,overallProgress:f},m.agent=o,m.__block=f,a._pipe(p,m)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return Ge(t)&&(t={overallReset:t,seriesType:$K(t)}),t.uid=fh("stageHandler"),r&&(t.visualType=r),t},e}();function DK(e){e.overallReset(e.ecModel,e.api,e.payload)}function IK(e){return e.overallProgress&&OK}function OK(){this.agent.dirty(),this.getDownstream().dirty()}function RK(){this.agent&&this.agent.dirty()}function kK(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function NK(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=cr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Re(t,function(r,n){return sP(n)}):BK}var BK=sP(0);function sP(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),im=["symbol","symbolSize","symbolRotate","symbolOffset"],OS=im.concat(["symbolKeepAspect"]),VK={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&eo(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function om(e,t,r){for(var n=t.type==="radial"?uX(e,t,r):lX(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:bt(e)?[e]:ge(e)?e:null}function dP(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&fX(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Re(r,function(a){return a/i}),n/=i)}return[r,n]}var dX=new yo(!0);function bd(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function RS(e){return typeof e=="string"&&e!=="none"}function wd(e){var t=e.fill;return t!=null&&t!=="none"}function kS(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function NS(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function sm(e,t,r){var n=p2(t.image,t.__image,r);if(oh(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*gU),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function hX(e,t,r,n){var i,a=bd(r),o=wd(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||dX,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=o&&!!d.colorStops,p=a&&!!h.colorStops,g=o&&!!d.image,m=a&&!!h.image,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0;(v||p)&&(w=t.getBoundingRect()),v&&(y=f?om(e,d,w):t.__canvasFillGradient,t.__canvasFillGradient=y),p&&(_=f?om(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(b=f||!t.__canvasFillPattern?sm(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(S=f||!t.__canvasStrokePattern?sm(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),v?e.fillStyle=y:g&&(b?e.fillStyle=b:o=!1),p?e.strokeStyle=_:m&&(S?e.strokeStyle=S:a=!1)}var x=t.getGlobalScale();c.setScale(x[0],x[1],t.segmentIgnoreThreshold);var C,T;e.setLineDash&&r.lineDash&&(i=dP(t),C=i[0],T=i[1]);var E=!0;(u||f&Ko)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),E=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),E&&c.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=T),n||(r.strokeFirst?(a&&NS(e,r),o&&kS(e,r)):(o&&kS(e,r),a&&NS(e,r))),C&&e.setLineDash([])}function vX(e,t,r){var n=t.__image=p2(r.image,t.__image,t,t.onload);if(!(!n||!oh(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function pX(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||mo,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=dP(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(bd(r)&&e.strokeText(i,r.x,r.y),wd(r)&&e.fillText(i,r.x,r.y)):(wd(r)&&e.fillText(i,r.x,r.y),bd(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var BS=["shadowBlur","shadowOffsetX","shadowOffsetY"],FS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function hP(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){wr(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?so.opacity:o}(n||t.blend!==r.blend)&&(a||(wr(e,i),a=!0),e.globalCompositeOperation=t.blend||so.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Qt]){if(this._disposed){this.id;return}var a,o,s;if(De(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Qt]=!0,!this._model||n){var l=new Tq(this._api),u=this._theme,c=this._model=new BE;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},cm);var f={seriesTransition:s,optionChanged:!0};if(i)this[gr]={silent:a,updateParams:f},this[Qt]=!1,this.getZr().wakeUp();else{try{Go(this),ki.update.call(this,null,f)}catch(d){throw this[gr]=null,this[Qt]=!1,d}this._ssr||this._zr.flush(),this[gr]=null,this[Qt]=!1,ul.call(this,a),cl.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ue.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(Ue.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return O(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;O(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return O(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(JS[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();O(Ql,function(_,b){if(_.group===i){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Qe(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),c=o(w.right,c),f=o(w.bottom,f),d.push({dom:S,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,p=f-u,g=Mo.createCanvas(),m=nw(g,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:p}),n){var y="";return O(d,function(_){var b=_.left-l,S=_.top-u;y+=''+_.dom+""}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Bt({shape:{x:0,y:0,width:v,height:p},style:{fill:r.connectedBackgroundColor}})),O(d,function(_){var b=new Hs({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(b)}),m.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Zv(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Zv(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=bv(i,r);return O(o,function(s,l){l.indexOf("Models")>=0&&O(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=bv(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?UK(s,l,n):jK(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;O(zX,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Ml(s,function(v){var p=ut(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType)||{},!0}else if(p.eventData)return l=se({},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&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),O(Zl,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),O(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),qK(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&d2(this.getDom(),D0,"");var n=this,i=n._api,a=n._model;O(n._componentsViews,function(o){o.dispose(a,i)}),O(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Ql[n.id]},t.prototype.resize=function(r){if(!this[Qt]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[gr]&&(a==null&&(a=this[gr].silent),i=!0,this[gr]=null),this[Qt]=!0;try{i&&Go(this),ki.update.call(this,{type:"resize",animation:se({duration:0},r&&r.animation)})}catch(o){throw this[Qt]=!1,o}this[Qt]=!1,ul.call(this,a),cl.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(De(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!fm[r]){var i=fm[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=se({},r);return n.type=Zl[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(De(n)||(n={silent:!!n}),!!Sd[r.type]&&this._model){if(this[Qt]){this._pendingActions.push(r);return}var i=n.silent;Jv.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&Ue.browser.weChat&&this._throttledZrFlush(),ul.call(this,i),cl.call(this,i)}},t.prototype.updateLabelLayout=function(){yn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Go=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Xv(f,!0),Xv(f,!1),d.plan()},Xv=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,y=f._api,_=0;_d.get("hoverLayerThreshold")&&!Ue.node&&!Ue.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var m=f._chartsMap[g.__viewId];m.__alive&&m.eachRendered(function(y){y.states.emphasis&&(y.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 y=f.childrenRef(),_=0;_0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(fs(m))return;if(m instanceof ft&&PY(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=g;var _=m.getTextContent(),b=m.getTextGuideLine();_&&(_.stateTransition=g),b&&(b.stateTransition=g)}m.__dirty&&i(m)}})}ZS=function(f){return new(function(d){pe(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){zg(v,p),Gr(f)},h.prototype.leaveEmphasis=function(v,p){Wg(v,p),Gr(f)},h.prototype.enterBlur=function(v){_Y(v),Gr(f)},h.prototype.leaveBlur=function(v){I2(v),Gr(f)},h.prototype.enterSelect=function(v){O2(v),Gr(f)},h.prototype.leaveSelect=function(v){R2(v),Gr(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}(FE))(f)},EP=function(f){function d(h,v){for(var p=0;p=0)){ex.push(r);var a=cP.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function RP(e,t){fm[e]=t}function qX(e,t,r){var n=MX("registerMap");n&&n(e,t,r)}var KX=Zq;Po(P0,MK);Po(Sh,AK);Po(Sh,EK);Po(P0,VK);Po(Sh,GK);Po(SP,xX);IP(HE);OP(PX,Oq);RP("default",PK);Vs({type:lo,event:lo,update:lo},Tr);Vs({type:Of,event:Of,update:Of},Tr);Vs({type:Ul,event:Ul,update:Ul},Tr);Vs({type:Rf,event:Rf,update:Rf},Tr);Vs({type:jl,event:jl,update:jl},Tr);DP("light",HK);DP("dark",zK);function fl(e){return e==null?0:e.length||1}function tx(e){return e}var XX=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||tx,this._newKeyGetter=i||tx,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;s30}var dl=De,Ni=Re,aZ=typeof Int32Array>"u"?Array:Int32Array,oZ="e\0\0",rx=-1,sZ=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],lZ=["_approximateExtent"],nx,Kc,hl,vl,rp,Xc,np,uZ=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;NP(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===dn;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),ge(a)?a=a.slice():dl(a)&&(a=se({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,dl(r)?se(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){dl(t)?se(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?se(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;uY(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){O(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Ni(this.dimensions,this._getDimInfo,this),this.hostModel)),rp(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Ge(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat($y(arguments)))})},e.internalField=function(){nx=function(t){var r=t._invertedIndicesMap;O(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new aZ(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();const HP=uZ;function zP(e,t){w0(e)||(e=S0(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=je(),a=[],o=fZ(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&$P(o),l=n===e.dimensionsDefine,u=l?FP(e):BP(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=je(c),d=new qE(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function fZ(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return O(t,function(a){var o;De(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function dZ(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var hZ=function(){function e(t){this.coordSysDims=[],this.axisMap=je(),this.categoryAxisMap=je(),this.coordSysName=t}return e}();function vZ(e){var t=e.get("coordinateSystem"),r=new hZ(t),n=pZ[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var pZ={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",xn).models[0],a=e.getReferringComponents("yAxis",xn).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Uo(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Uo(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",xn).models[0];t.coordSysDims=["single"],r.set("single",i),Uo(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",xn).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Uo(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Uo(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();O(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),Uo(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Uo(e){return e.get("type")==="category"}function gZ(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;mZ(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(O(a,function(y,_){Ae(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!c&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(c=y))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,p=0;O(a,function(y){y.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},m={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(g),o.appendCalculationDimension(m)):(a.push(g),a.push(m))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function mZ(e){return!NP(e.schema)}function WP(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function yZ(e,t){return WP(e,t)?e.getCalculationInfo("stackResultDimension"):t}function _Z(e,t){var r=e.get("coordinateSystem"),n=b0.get(r),i;return t&&t.coordSysDims&&(i=Re(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=eZ(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function bZ(e,t,r){var n,i;return r&&O(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function VP(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=S0(e)):(i=n.getSource(),a=i.sourceFormat===dn);var o=vZ(t),s=_Z(t,o),l=r.useEncodeDefaulter,u=Ge(l)?l:l?Dt(aq,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=zP(i,c),d=bZ(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),v=gZ(t,{schema:f,store:h}),p=new HP(f,t);p.setCalculationInfo(v);var g=d!=null&&wZ(i)?function(m,y,_,b){return b===d?_:this.defaultDimValueGetter(m,y,_,b)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,g),p}function wZ(e){if(e.sourceFormat===dn){var t=SZ(e.data||[]);return!ge(Zu(t))}}function SZ(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();ah(GP);const Mi=GP;var xZ=0,CZ=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++xZ}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Re(n,TZ);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Ae(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=je(this.categories))},e}();function TZ(e){return De(e)&&e.value!=null?e.value:e+""}const dm=CZ;function hm(e){return e.type==="interval"||e.type==="log"}function MZ(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=s2(a/t,!0);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=UP(o),l=i.niceTickExtent=[It(Math.ceil(e[0]/o)*o,s),It(Math.floor(e[1]/o)*o,s)];return AZ(l,e),i}function ip(e){var t=Math.pow(10,qy(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,It(r*t)}function UP(e){return di(e)+2}function ix(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function AZ(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),ix(e,0,t),ix(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function xh(e,t){return e>=t[0]&&e<=t[1]}function Ch(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Th(e,t){return e*(t[1]-t[0])+t[0]}var jP=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new dm({})),ge(i)&&(i=new dm({categories:Re(i,function(a){return De(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Ae(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),xh(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Ch(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Th(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Mi);Mi.registerClass(jP);const YP=jP;var Ba=It,qP=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return xh(r,this._extent)},t.prototype.normalize=function(r){return Ch(r,this._extent)},t.prototype.scale=function(r){return Th(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=UP(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:Ba(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&h0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function ZP(e){var t=LZ(e),r=[];return O(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=pt(n.get("barWidth"),s),p=pt(n.get("barMaxWidth"),s),g=pt(n.get("barMinWidth")||(JP(n)?.5:1),s),m=n.get("barGap"),y=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:m,barCategoryGap:y,axisKey:N0(a),stackId:k0(n)})}),DZ(r)}function DZ(e){var t={};O(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return O(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Ct(a).length;s=Math.max(35-l*4,15)+"%"}var u=pt(s,o),c=pt(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),O(a,function(m){var y=m.maxWidth,_=m.minWidth;if(m.width){var b=m.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),m.width=b,f-=b+c*b,d--}else{var b=h;y&&yb&&(b=_),b!==h&&(m.width=b,f-=b+c*b,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,p;O(a,function(m,y){m.width||(m.width=h),p=m,v+=m.width*(1+c)}),p&&(v-=p.width*c);var g=-v/2;O(a,function(m,y){r[i][y]=r[i][y]||{bandWidth:o,offset:g,width:m.width},g+=m.width*(1+c)})}),r}function IZ(e,t,r){if(e&&t){var n=e[N0(t)];return n!=null&&r!=null?n[k0(r)]:n}}function OZ(e,t){var r=XP(e,t),n=ZP(r);O(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=k0(i),u=n[N0(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function RZ(e){return{seriesType:e,plan:rP(),reset:function(t){if(QP(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=WP(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=kZ(i,a),v=JP(t),p=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),m=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var S=_.count,w=v&&ap(S*3),x=v&&l&&ap(S*3),C=v&&ap(S),T=n.master.getRect(),E=d?T.width:T.height,A,M=b.getStore(),D=0;(A=_.next())!=null;){var R=M.get(f?g:o,A),k=M.get(s,A),F=h,K=void 0;f&&(K=+R-M.get(o,A));var B=void 0,N=void 0,j=void 0,re=void 0;if(d){var oe=n.dataToPoint([R,k]);if(f){var _e=n.dataToPoint([K,k]);F=_e[0]}B=F,N=oe[1]+y,j=oe[0]-F,re=m,Math.abs(j)>>1;e[i][1]i&&(this._approxInterval=i);var s=Zc.length,l=Math.min(NZ(Zc,this._approxInterval,0,s),s-1);this._interval=Zc[l][1],this._minLevelUnit=Zc[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return bt(r)?r:+bi(r)},t.prototype.contain=function(r){return xh(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Ch(this.parse(r),this._extent)},t.prototype.scale=function(r){return Th(r,this._extent)},t.type="time",t}(rc),Zc=[["second",v0],["minute",p0],["hour",ql],["quarter-day",ql*6],["half-day",ql*12],["day",tn*1.2],["half-week",tn*3.5],["week",tn*7],["month",tn*31],["quarter",tn*95],["half-year",qw/2],["year",qw]];function BZ(e,t,r,n){var i=bi(t),a=bi(r),o=function(v){return Xw(i,v,n)===Xw(a,v,n)},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 FZ(e,t){return e/=tn,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function $Z(e){var t=30*tn;return e/=t,e>6?6:e>3?3:e>2?2:1}function HZ(e){return e/=ql,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function ax(e,t){return e/=t?p0:v0,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function zZ(e){return s2(e,!0)}function WZ(e,t,r){var n=new Date(e);switch(ds(t)){case"year":case"month":n[wE(r)](0);case"day":n[SE(r)](1);case"hour":n[xE(r)](0);case"minute":n[CE(r)](0);case"second":n[TE(r)](0),n[ME(r)](0)}return n.getTime()}function VZ(e,t,r,n){var i=1e4,a=_E,o=0;function s(E,A,M,D,R,k,F){for(var K=new Date(A),B=A,N=K[D]();B1&&k===0&&M.unshift({value:M[0].value-B})}}for(var k=0;k=n[0]&&y<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===a[h]))break}c=[]}}}for(var b=Ht(Re(u,function(E){return Ht(E,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(E){return E.length>0}),S=[],w=b.length-1,h=0;h0;)a*=10;var s=[It(YZ(n[0]/a)*a),It(jZ(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Jl.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=vn(r)/vn(this.base),xh(r,this._extent)},t.prototype.normalize=function(r){return r=vn(r)/vn(this.base),Ch(r,this._extent)},t.prototype.scale=function(r){return r=Th(r,this._extent),Qc(this.base,r)},t.type="log",t}(Mi),tL=B0.prototype;tL.getMinorTicks=Jl.getMinorTicks;tL.getLabel=Jl.getLabel;function Jc(e,t){return UZ(e,di(t))}Mi.registerClass(B0);const qZ=B0;var KZ=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]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,r){this[ZZ[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=XZ[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),XZ={min:"_determinedMin",max:"_determinedMax"},ZZ={min:"_dataMin",max:"_dataMax"};function QZ(e,t,r){var n=e.rawExtentInfo;return n||(n=new KZ(e,t,r),e.rawExtentInfo=n,n)}function ef(e,t){return t==null?null:nd(t)?NaN:e.parse(t)}function rL(e,t){var r=e.type,n=QZ(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=XP("bar",o),l=!1;if(O(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=ZP(s),c=JZ(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function JZ(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=IZ(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;O(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;O(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)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function sx(e,t){var r=t,n=rL(e,r),i=n.extent,a=r.get("splitNumber");e instanceof qZ&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function eQ(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new YP({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new GZ({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mi.getClass(t)||rc)}}function tQ(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function nc(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):Ae(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Ge(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(F0(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function F0(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function rQ(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof YP?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=nc(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c=0||(lx.push(e),Ge(e)&&(e={install:e}),e.install(oQ))}var Iu=At();function sQ(e){return e.type==="category"?uQ(e):fQ(e)}function lQ(e,t){return e.type==="category"?cQ(e,t):{ticks:Re(e.scale.getTicks(),function(r){return r.value})}}function uQ(e){var t=e.getLabelModel(),r=iL(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function iL(e,t){var r=aL(e,"labels"),n=$0(t),i=oL(r,n);if(i)return i;var a,o;return Ge(n)?a=uL(e,n):(o=n==="auto"?dQ(e):n,a=lL(e,o)),sL(r,n,{labels:a,labelCategoryInterval:o})}function cQ(e,t){var r=aL(e,"ticks"),n=$0(t),i=oL(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Ge(n))a=uL(e,n,!0);else if(n==="auto"){var s=iL(e,e.getLabelModel());o=s.labelCategoryInterval,a=Re(s.labels,function(l){return l.tickValue})}else o=n,a=lL(e,o,!0);return sL(r,n,{ticks:a,tickCategoryInterval:o})}function fQ(e){var t=e.scale.getTicks(),r=nc(e);return{labels:Re(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function aL(e,t){return Iu(e)[t]||(Iu(e)[t]=[])}function oL(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var v=0,p=0,g=Uy(r({value:l}),t.font,"center","top");v=g.width*1.3,p=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,p,7)}var m=d/c,y=h/f;isNaN(m)&&(m=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(m,y))),b=Iu(e.model),S=e.getExtent(),w=b.lastAutoInterval,x=b.lastTickCount;return w!=null&&x!=null&&Math.abs(w-_)<=1&&Math.abs(x-o)<=1&&w>_&&b.axisExtent0===S[0]&&b.axisExtent1===S[1]?_=w:(b.lastTickCount=o,b.lastAutoInterval=_,b.axisExtent0=S[0],b.axisExtent1=S[1]),_}function vQ(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 lL(e,t,r){var n=nc(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=nL(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&p(a[0]);for(var v=u;v<=a[1];v+=l)p(v);h&&v-l!==a[1]&&p(a[1]);function p(g){var m={value:g};s.push(r?g:{formattedLabel:n(m),rawLabel:i.getLabel(m),tickValue:g})}return s}function uL(e,t,r){var n=e.scale,i=nc(e),a=[];return O(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var ux=[0,1],pQ=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return z9(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),cx(n,i.count())),kg(t,ux,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),cx(n,i.count()));var a=kg(t,n,ux,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=lQ(this,r),i=n.ticks,a=Re(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return gQ(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Re(n,function(a){return Re(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return sQ(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return hQ(this)},e}();function cx(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function gQ(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[0]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;O(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,v){return h=It(h),v=It(v),f?h>v:hi&&(i+=pl);var h=Math.atan2(s,o);if(h<0&&(h+=pl),h>=n&&h<=i||h+pl>=n&&h+pl<=i)return l[0]=c,l[1]=f,u-r;var v=r*Math.cos(n)+e,p=r*Math.sin(n)+t,g=r*Math.cos(i)+e,m=r*Math.sin(i)+t,y=(v-o)*(v-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(m-s)*(m-s);return y<_?(l[0]=v,l[1]=p,Math.sqrt(y)):(l[0]=g,l[1]=m,Math.sqrt(_))}function Cd(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,c=r-e,f=n-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-i)*(p-i)+(g-a)*(g-a))}function cL(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var _n=[];function wQ(e,t,r){var n=cL(t.x,t.y,t.width,t.height,e.x,e.y,_n);return r.set(_n[0],_n[1]),n}function SQ(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h0){t=t/180*Math.PI,Cn.fromArray(e[0]),lt.fromArray(e[1]),Et.fromArray(e[2]),Ne.sub(jn,Cn,lt),Ne.sub(zn,Et,lt);var r=jn.len(),n=zn.len();if(!(r<.001||n<.001)){jn.scale(1/r),zn.scale(1/n);var i=jn.dot(zn),a=Math.cos(t);if(a1&&Ne.copy(sr,Et),sr.toArray(e[1])}}}}function xQ(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Cn.fromArray(e[0]),lt.fromArray(e[1]),Et.fromArray(e[2]),Ne.sub(jn,lt,Cn),Ne.sub(zn,Et,lt);var n=jn.len(),i=zn.len();if(!(n<.001||i<.001)){jn.scale(1/n),zn.scale(1/i);var a=jn.dot(t),o=Math.cos(r);if(a=l)Ne.copy(sr,Et);else{sr.scaleAndAdd(zn,s/Math.tan(Math.PI/2-c));var f=Et.x!==lt.x?(sr.x-lt.x)/(Et.x-lt.x):(sr.y-lt.y)/(Et.y-lt.y);if(isNaN(f))return;f<0?Ne.copy(sr,lt):f>1&&Ne.copy(sr,Et)}sr.toArray(e[1])}}}}function dx(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function CQ(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=bg(n[0],n[1]),a=bg(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=Jh([],n[1],n[0],o/i),l=Jh([],n[1],n[2],o/a),u=Jh([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&a&&S(-c/o,0,o);var p=e[0],g=e[o-1],m,y;_(),m<0&&w(-m,.8),y<0&&w(y,.8),_(),b(m,y,1),b(y,m,-1),_(),m<0&&x(-m),y<0&&x(y);function _(){m=p.rect[t]-n,y=i-g.rect[t]-g.rect[r]}function b(C,T,E){if(C<0){var A=Math.min(T,-C);if(A>0){S(A*E,0,o);var M=A+C;M<0&&w(-M*E,1)}else w(-C*E,1)}}function S(C,T,E){C!==0&&(u=!0);for(var A=T;A0)for(var M=0;M0;M--){var F=E[M-1]*k;S(-F,M,o)}}}function x(C){var T=C<0?-1:1;C=Math.abs(C);for(var E=Math.ceil(C/(o-1)),A=0;A0?S(E,0,A+1):S(-E,o-A-1,o),C-=E,C<=0)return}return u}function TQ(e,t,r,n){return pL(e,"x","width",t,r,n)}function gL(e,t,r,n){return pL(e,"y","height",t,r,n)}function mL(e){var t=[];e.sort(function(p,g){return g.priority-p.priority});var r=new tt(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),at(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Er(n,u,r,l)}else if(n.attr(u),!tc(n).valueAnimation){var f=qe(n.style.opacity,1);n.style.opacity=0,$r(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};tf(h,u,rf),tf(h,n.states.select,rf)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};tf(v,u,rf),tf(v,n.states.emphasis,rf)}I7(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=EQ(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),Er(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,$r(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}();const LQ=PQ;var sp=At();function DQ(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=sp(r).labelManager;i||(i=sp(r).labelManager=new LQ),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=sp(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}function IQ(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Is(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}function RQ(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.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 Bt({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=Ge(i)?function(g){i(g,f)}:null;$r(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,p)}return f}function kQ(e,t,r){var n=e.getArea(),i=It(n.r0,1),a=It(n.r,1),o=new Ao({shape:{cx:It(e.cx,1),cy:It(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,$r(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function NQ(e,t,r,n,i){if(e){if(e.type==="polar")return kQ(e,t,r);if(e.type==="cartesian2d")return RQ(e,t,r,n,i)}else return null;return null}function yL(e,t){return e.type===t}var BQ={average:function(e){for(var t=0,r=0,n=0;nt&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var v=void 0;Ae(a)?v=BQ[a]:Ge(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,FQ))}}}}}var _L=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return VP(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.dataToPoint(a.clampData(r));if(i)O(a.getAxes(),function(f,d){if(f.type==="category"){var h=f.getTicksCoords(),v=a.clampData(r)[d];n&&(n[d]==="x1"||n[d]==="y1")&&(v+=1),v>h.length-1&&(v=h.length-1),v<0&&(v=0),h[v]&&(o[d]=f.toGlobalCoord(h[v].coord))}});else{var s=this.getData(),l=s.getLayout("offset"),u=s.getLayout("size"),c=a.getBaseAxis().isHorizontal()?0:1;o[c]+=l+u/2}return o}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(bo);bo.registerClass(_L);const vx=_L;var HQ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return VP(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=gE(vx.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}(vx);const zQ=HQ;var WQ=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}(),VQ=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new WQ},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){vd(a,r,ut(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(uo),gx={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=lp(t.x,e.x),s=up(t.x+t.width,i),l=lp(t.y,e.y),u=up(t.y+t.height,a),c=si?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=up(t.r,e.r),a=lp(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},mx={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Bt({shape:se({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?px:Ao,c=new u({shape:n,z2:1});c.name="item";var f=bL(i);if(c.calculateTextPosition=GQ(f,{isRoundCap:u===px}),a){var d=c.shape,h=i?"r":"endAngle",v={};d[h]=i?0:n.startAngle,v[h]=n[h],(s?Er:$r)(c,{shape:v},a)}return c}};function qQ(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function yx(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Er:$r)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Er:$r)(r,{shape:u},c,i)}function _x(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function ZQ(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function bL(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function Sx(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");s||e.setShape("r",n.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=n.getShallow("cursor");u&&e.attr("cursor",u);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",f=hE(n);f0(e,f,{labelFetcher:a,labelDataIndex:r,defaultText:IQ(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=e.getTextContent();if(s&&d){var h=n.get(["label","position"]);e.textConfig.inside=h==="middle"?!0:null,UQ(e,h==="outside"?c:h,bL(o),n.get(["label","rotate"]))}D7(d,f,a.getRawValue(r),function(p){return OQ(t,p)});var v=n.getModel(["emphasis"]);B2(e,v.get("focus"),v.get("blurScope"),v.get("disabled")),F2(e,n),ZQ(i)&&(e.style.fill="none",e.style.stroke="none",O(e.states,function(p){p.style&&(p.style.fill=p.style.stroke="none")}))}function QQ(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var JQ=function(){function e(){}return e}(),xx=function(e){pe(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new JQ},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function eJ(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function wL(e,t,r){if(yL(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function tJ(e,t,r){var n=e.type==="polar"?Ao:Bt;return new n({shape:wL(t,r,e),silent:!0,z2:0})}const rJ=YQ;function nJ(e){e.registerChartView(rJ),e.registerSeriesModel(zQ),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Dt(OZ,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,RZ("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$Q("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var sf=Math.PI*2,Mx=Math.PI/180;function SL(e,t){return Ls(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xL(e,t){var r=SL(e,t),n=e.get("center"),i=e.get("radius");ge(i)||(i=[0,i]);var a=pt(r.width,t.getWidth()),o=pt(r.height,t.getHeight()),s=Math.min(a,o),l=pt(i[0],s/2),u=pt(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else ge(n)||(n=[n,n]),c=pt(n[0],a)+r.x,f=pt(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function iJ(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=SL(n,r),s=xL(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*Mx,h=n.get("minAngle")*Mx,v=0;i.each(a,function(E){!isNaN(E)&&v++});var p=i.getSum(a),g=Math.PI/(p||v)*2,m=n.get("clockwise"),y=n.get("roseType"),_=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var S=sf,w=0,x=d,C=m?1:-1;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(E,A){var M;if(isNaN(E)){i.setItemLayout(A,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:l,cy:u,r0:f,r:y?NaN:c});return}y!=="area"?M=p===0&&_?g:E*g:M=sf/v,Mr?m:g,S=Math.abs(_.label.y-r);if(S>=b.maxY){var w=_.label.x-t-_.len2*i,x=n+_.len,C=Math.abs(w)e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-f)/2}}}function cp(e){return e.position==="center"}function lJ(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*oJ,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(w){w.ignore=!0}function v(w){if(!w.ignore)return!0;for(var x in w.states)if(w.states[x].ignore===!1)return!0;return!1}t.each(function(w){var x=t.getItemGraphicEl(w),C=x.shape,T=x.getTextContent(),E=x.getTextGuideLine(),A=t.getItemModel(w),M=A.getModel("label"),D=M.get("position")||A.get(["emphasis","label","position"]),R=M.get("distanceToLabelLine"),k=M.get("alignTo"),F=pt(M.get("edgeDistance"),u),K=M.get("bleedMargin"),B=A.getModel("labelLine"),N=B.get("length");N=pt(N,u);var j=B.get("length2");if(j=pt(j,u),Math.abs(C.endAngle-C.startAngle)0?"right":"left":oe>0?"left":"right"}var G=Math.PI,q=0,ne=M.get("rotate");if(bt(ne))q=ne*(G/180);else if(D==="center")q=0;else if(ne==="radial"||ne===!0){var de=oe<0?-re+G:-re;q=de}else if(ne==="tangential"&&D!=="outside"&&D!=="outer"){var te=Math.atan2(oe,_e);te<0&&(te=G*2+te);var ie=_e>0;ie&&(te=G+te),q=te-G}if(a=!!q,T.x=Ee,T.y=V,T.rotation=q,T.setStyle({verticalAlign:"middle"}),Y){T.setStyle({align:W});var ve=T.states.select;ve&&(ve.x+=T.x,ve.y+=T.y)}else{var X=T.getBoundingRect().clone();X.applyTransform(T.getComputedTransform());var we=(T.style.margin||0)+2.1;X.y-=we/2,X.height+=we,r.push({label:T,labelLine:E,position:D,len:N,len2:j,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new Ne(oe,_e),linePoints:J,textAlign:W,labelDistance:R,labelAlignTo:k,edgeDistance:F,bleedMargin:K,rect:X,unconstrainedWidth:X.width,labelStyleWidth:T.style.width})}x.setTextConfig({inside:Y})}}),!a&&e.get("avoidLabelOverlap")&&sJ(r,n,i,l,u,d,c,f);for(var p=0;p0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=a.r0}},t.type="pie",t}(uo);const fJ=cJ;function dJ(e,t,r){t=ge(t)&&{coordDimensions:t}||se({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=zP(n,t).dimensions,a=new HP(i,e);return a.initData(n,r),a}var hJ=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const vJ=hJ;var pJ=At(),gJ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new vJ(_t(this.getData,this),_t(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return dJ(this,{coordDimensions:["value"],encodeDefaulter:Dt(oq,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=pJ(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=W9(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){Ng(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(bo);const mJ=gJ;function yJ(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(bt(o)&&!isNaN(o)&&o<0)})}}}function _J(e){e.registerChartView(fJ),e.registerSeriesModel(mJ),YK("pie",e.registerAction),e.registerLayout(Dt(iJ,"pie")),e.registerProcessor(aJ("pie")),e.registerProcessor(yJ("pie"))}var bJ=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(wt);const wJ=bJ;var vm=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",xn).models[0]},t.type="cartesian2dAxis",t}(wt);ti(vm,aQ);var TL={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},SJ=ot({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},TL),H0=ot({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},TL),xJ=ot({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},H0),CJ=ct({logBase:10},H0);const TJ={category:SJ,value:H0,time:xJ,log:CJ};var MJ={value:1,category:1,time:1,log:1};function Ex(e,t,r,n){O(MJ,function(i,a){var o=ot(ot({},TJ[a],!0),n,!0),s=function(l){pe(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Au(this),h=d?yh(c):{},v=f.getTheme();ot(c,v.get(a+"Axis")),ot(c,this.getDefaultOption()),c.type=Px(c),d&&Ds(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=dm.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."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Px)}function Px(e){return e.type||(e.data?"category":"value")}var AJ=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 Re(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ht(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const EJ=AJ;var pm=["x","y"];function Lx(e){return e.type==="interval"||e.type==="time"}var PJ=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=pm,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Lx(r)||!Lx(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=nh([],v)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new tt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return on(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return on(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(){var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(r[0],r[1]),a=Math.min(n[0],n[1]),o=Math.max(r[0],r[1])-i,s=Math.max(n[0],n[1])-a;return new tt(i,a,o,s)},t}(EJ),LJ=function(e){pe(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(mQ);const DJ=LJ;function gm(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.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])}a.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),yu(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var m=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-m:m,a.z2=1,a}function Dx(e){return e.get("coordinateSystem")==="cartesian2d"}function Ix(e){var t={xAxisModel:null,yAxisModel:null};return O(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,xn).models[0];t[n]=a}),t}var fp=Math.log;function IJ(e,t,r){var n=rc.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=rL(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=fp(e.base);u=[fp(u[0])/d,fp(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=n.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;gu[0]&&isFinite(p)&&isFinite(u[0]);)v=ip(v),p=u[1]-v*o;else{var m=e.getTicks().length-1;m>o&&(v=ip(v));var y=v*o;g=Math.ceil(u[1]/v)*v,p=It(g-y),p<0&&u[0]>=0?(p=0,g=It(y)):g>0&&u[1]<=0&&(g=0,p=-It(y))}var _=(i[0].value-a[0].value)/s,b=(i[o].value-a[o].value)/s;n.setExtent.call(e,p+v*_,g+v*b),n.setInterval.call(e,v),(_||b)&&n.setNiceExtent.call(e,p+v,g-v)}var OJ=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pm,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Ct(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;hm(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(sx(p,v),hm(p)&&(s=h))}c.length&&(s||(s=c.pop(),sx(s.scale,s.model)),O(c,function(g){IJ(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};O(n.x,function(o){Ox(n,"y",o,a)}),O(n.y,function(o){Ox(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Ls(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(O(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=rQ(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()),O(this._coordsList,function(u){u.calcAffineTransform()});function l(){O(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]),RJ(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}De(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):cd(i-Yi)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),kx={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(on(s,s,o),on(l,l,o));var c=se({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new _o({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});xu(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);Ae(d)&&(d=[d,d]),(Ae(h)||bt(h))&&(h=[h,h]);var v=sX(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];O([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,y){if(d[y]!=="none"&&d[y]!=null){var _=E0(d[y],-p/2,-g/2,p,g,c.stroke,!0),b=m.r+m.offset,S=u?l:s;_.attr({rotation:m.rotate,x:S[0]+b*Math.cos(e.rotation),y:S[1]-b*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=FJ(r,n,t,e),a=HJ(r,n,t,e);if(BJ(t,a,i),$J(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=vL(Re(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));mL(o)}},axisName:function(e,t,r,n){var i=yu(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,Bx(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*Yi/180);var v;Bx(a)?d=co.innerTextLayout(e.rotation,h??e.rotation,o):(d=NJ(e.rotation,a,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},m=g.ellipsis,y=yu(e.nameTruncateMaxWidth,g.maxWidth,v),_=new dr({x:f[0],y:f[1],rotation:d.rotation,silent:co.isLabelSilent(t),style:oa(s,{text:i,font:p,overflow:"truncate",width:y,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(u0({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var b=co.makeAxisEventDataBase(t);b.targetType="axisName",b.name=i,ut(_).eventData=b}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function NJ(e,t,r,n){var i=o2(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return cd(i-Yi/2)?(o=l?"bottom":"top",a="center"):cd(i-Yi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iYi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function BJ(e,t,r){if(!nL(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Ur(a),Ur(u)):Nx(a,o)&&(n?(Ur(o),Ur(c)):(Ur(a),Ur(u))),i===!1?(Ur(s),Ur(f)):Nx(l,s)&&(i?(Ur(l),Ur(d)):(Ur(s),Ur(f)))}}function Ur(e){e&&(e.ignore=!0)}function Nx(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=zy([]);return Wy(i,i,-e.rotation),r.applyTransform(us([],i,e.getLocalTransform())),n.applyTransform(us([],i,t.getLocalTransform())),r.intersect(n)}}function Bx(e){return e==="middle"||e==="center"}function ML(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function jJ(e){var t=z0(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=mm(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o=s)}}for(var f=this.__startIndex;f15)break}}R.prevElClipPaths&&m.restore()};if(y)if(y.length===0)C=g.__endIndex;else for(var E=h.dpr,A=0;A0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.__painter=this}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?uf:0),this._needsManuallyCompositing),c.__builtin__||Fy("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&Or&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(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,O(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?ot(n[t],r,!0):n[t]=r;for(var i=0;is)return!0;if(o){var l=z0(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=qa(t).pointerEl=new A7[a.type](Wx(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=qa(t).labelEl=new dr(Wx(r.label));t.add(a),Gx(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=qa(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=qa(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),Gx(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=l0(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){kA(u.event)},onmousedown:pp(this._onHandleDragMove,this,0,0),drift:pp(this._onHandleDragMove,this),ondragend:pp(this._onHandleDragEnd,this)}),n.add(i)),Ux(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ge(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,iP(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Vx(this._axisPointerModel,!r&&this._moveAnimation,this._handle,gp(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(gp(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(gp(i)),qa(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),nm(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function Vx(e,t,r,n){DL(qa(r).lastProp,n)||(qa(r).lastProp=n,t?Er(r,n,e):(r.stopAnimation(),r.attr(n)))}function DL(e,t){if(De(e)&&De(t)){var r=!0;return O(t,function(n,i){r=r&&DL(e[i],n)}),!!r}else return e===t}function Gx(e,t){e[t.get(["label","show"])?"show":"hide"]()}function gp(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Ux(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}const fee=cee;function dee(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function hee(e,t,r,n,i){var a=r.get("value"),o=IL(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=mh(s.get("padding")||0),u=s.getFont(),c=Uy(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var p=i.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),vee(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:oa(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function vee(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function IL(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:F0(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};O(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ae(o)?a=o.replace("{value}",a):Ge(o)&&(a=o(s))}return a}function OL(e,t,r){var n=_u();return Wy(n,n,r.rotation),Cg(n,n,r.position),s0([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function pee(e,t,r,n,i,a){var o=AL.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),hee(t,n,i,a,{position:OL(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function gee(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function mee(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var yee=function(e){pe(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=jx(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=dee(a),h=_ee[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=gm(l.model,i);pee(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=gm(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=OL(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=jx(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[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:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(fee);function jx(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var _ee={line:function(e,t,r){var n=gee([t,r[0]],[t,r[1]],Yx(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:mee([t-n/2,r[0]],[n,i],Yx(e))}}};function Yx(e){return e.dim==="x"?0:1}const bee=yee;var wee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(wt);const See=wee;var hi=At(),xee=O;function RL(e,t,r){if(!Ue.node){var n=t.getZr();hi(n).records||(hi(n).records={}),Cee(n,t);var i=hi(n).records[e]||(hi(n).records[e]={});i.handler=r}}function Cee(e,t){if(hi(e).initialized)return;hi(e).initialized=!0,r("click",Dt(qx,"click")),r("mousemove",Dt(qx,"mousemove")),r("globalout",Mee);function r(n,i){e.on(n,function(a){var o=Aee(t);xee(hi(e).records,function(s){s&&i(s,a,o.dispatchAction)}),Tee(o.pendings,t)})}}function Tee(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Mee(e,t,r){e.handler("leave",null,r)}function qx(e,t,r,n){t.handler(e,r,n)}function Aee(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function _m(e,t){if(!Ue.node){var r=t.getZr(),n=(hi(r).records||{})[e];n&&(hi(r).records[e]=null)}}var Eee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";RL("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){_m("axisPointer",n)},t.prototype.dispose=function(r,n){_m("axisPointer",n)},t.type="axisPointer",t}(wi);const Pee=Eee;function kL(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Qu(a,e);if(o==null||o<0||ge(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=a.mapDimension(d),p=[];p[h]=a.get(v,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(Re(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var Kx=At();function Lee(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||_t(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){$f(i)&&(i=kL({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=$f(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||$f(i),d={},h={},v={list:[],map:{}},p={showPointer:Dt(Iee,h),showTooltip:Dt(Oee,v)};O(s.coordSysMap,function(m,y){var _=l||m.containPoint(i);O(s.coordSysAxesInfo[y],function(b,S){var w=b.axis,x=Bee(u,b);if(!f&&_&&(!u||x)){var C=x&&x.value;C==null&&!l&&(C=w.pointToData(i)),C!=null&&Xx(b,C,p,!1,d)}})});var g={};return O(c,function(m,y){var _=m.linkGroup;_&&!h[y]&&O(_.axesInfo,function(b,S){var w=h[S];if(b!==m&&w){var x=w.value;_.mapper&&(x=m.axis.scale.parse(_.mapper(x,Zx(b),Zx(m)))),g[m.key]=x}})}),O(g,function(m,y){Xx(c[y],m,p,!0,d)}),Ree(h,c,d),kee(v,i,e,o),Nee(c,o,r),d}}function Xx(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=Dee(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&se(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function Dee(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return O(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.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=0&&s<0)&&(o=p,s=v,i=f,a.length=0),O(d,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function Iee(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function Oee(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Ou(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:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Ree(e,t,r){var n=r.axesInfo=[];O(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function kee(e,t,r,n){if($f(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Nee(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=Kx(n)[i]||{},o=Kx(n)[i]={};O(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&O(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];O(a,function(u,c){!o[c]&&l.push(u)}),O(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Bee(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Zx(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function $f(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function NL(e){EL.registerAxisPointerClass("CartesianAxisPointer",bee),e.registerComponentModel(See),e.registerComponentView(Pee),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!ge(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=zJ(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Lee)}function Fee(e){sa(ree),sa(NL)}function $ee(e,t){var r=mh(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Bt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var Hee=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(wt);const zee=Hee;function BL(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function FL(e){if(Ue.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'
'}function qee(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=Ue.transformSupported?","+W0+n:",left"+n+",top"+n),Gee+":"+i}function Qx(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Ue.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Ue.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+W0+":"+o+";":[["top",0],["left",0],[$L,o]]}function Kee(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),O(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function Xee(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=tP(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(qee(i,r)),a&&n.push("background-color:"+a),O(["width","color","radius"],function(h){var v="border-"+h,p=EE(v),g=e.get(p);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(Kee(c)),f!=null&&n.push("padding:"+mh(f).join("px ")+"px"),n.join(";")+";"}function Jx(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&AU(e,o,document.body,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Zee=function(){function e(t,r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,Ue.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=this._appendToBody=n&&n.appendToBody;Jx(this._styleCoord,a,o,r.getWidth()/2,r.getHeight()/2),o?document.body.appendChild(i):t.appendChild(i),this._container=t;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();Yr(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){var r=this._container,n=Vee(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative");var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=Uee+Xee(t,!this._firstShow,this._longHide)+Qx(a[0],a[1],!0)+("border-color:"+Mu(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Ae(a)&&n.get("trigger")==="item"&&!BL(n)&&(s=Yee(n,i,a)),Ae(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ge(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||Ue.node||!i.getDom())){var o=rC(a,i);this._ticket="";var s=a.dataByCoordSys,l=ote(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=tte;c.x=a.x,c.y=a.y,c.update(),ut(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=kL(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(rC(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=gl([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){this._lastDataByCoordSys=null;var s,l;Ml(i,function(u){if(ut(u).dataIndex!=null)return s=u,!0;if(ut(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(r,s,n):l?this._showComponentItemTooltip(r,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=_t(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=gl([n.tooltipOption],a),l=this._renderMode,u=[],c=Pu("section",{blocks:[],noHeader:!0}),f=[],d=new jv;O(r,function(y){O(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!b||S==null)){var w=IL(S,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Pu("section",{header:w,noHeader:!Gn(w),sortBlocks:!0,blocks:[]});c.blocks.push(x),O(_.seriesDataIndices,function(C){var T=i.getSeriesByIndex(C.seriesIndex),E=C.dataIndexInside,A=T.getDataParams(E);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=F0(b.axis,{value:S}),A.axisValueLabel=w,A.marker=d.makeTooltipMarker("item",Mu(A.color),l);var M=gS(T.formatTooltip(E,!0,null)),D=M.frag;if(D){var R=gl([T],a).get("valueFormatter");x.blocks.push(R?se({valueFormatter:R},D):D)}M.text&&f.push(M.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,v=s.get("order"),p=wS(c,d,l,v,i.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?` `:"
",m=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=ut(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,v=r.positionDefault,p=gl([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),y=new jv;m.marker=y.makeTooltipMarker("item",Mu(m.color),h);var _=gS(u.formatTooltip(c,!1,f)),b=p.get("order"),S=p.get("valueFormatter"),w=_.frag,x=w?wS(S?se({valueFormatter:S},w):w,y,h,b,a.get("useUTC"),p.get("textStyle")):_.text,C="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,m,C,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=ut(n),o=a.tooltipConfig,s=o.option||{};if(Ae(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(a.componentMainType,a.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=gl(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",p=new jv;this._showOrMove(d,function(){var g=Qe(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,r.offsetX,r.offsetY,r.position,n,p)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=v.color;if(d)if(Ae(d)){var g=r.ecModel.get("useUTC"),m=ge(i)?i[0]:i,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;h=d,y&&(h=dh(m.axisValue,h,g)),h=PE(h,i,!0)}else if(Ge(d)){var _=_t(function(b,S){b===this._ticket&&(f.setContent(S,c,r,p,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,_)}else h=d;f.setContent(h,c,r,p,l),f.show(r,p),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||ge(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ge(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Ge(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),ge(n))i=pt(n[0],u),a=pt(n[1],c);else if(De(n)){var p=n;p.width=f[0],p.height=f[1];var g=Ls(p,{width:u,height:c});i=g.x,a=g.y,d=null,h=null}else if(Ae(n)&&l){var m=ate(n,v,f,r.get("borderWidth"));i=m[0],a=m[1]}else{var m=nte(i,a,o,u,c,d?null:20,h?null:20);i=m[0],a=m[1]}if(d&&(i-=nC(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=nC(h)?f[1]/2:h==="bottom"?f[1]:0),BL(r)){var m=ite(i,a,o,u,c);i=m[0],a=m[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&O(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&O(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&&O(p,function(m,y){var _=g[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&O(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){Ue.node||!n.getDom()||(nm(this,"_updatePosition"),this._tooltipContent.dispose(),_m("itemTooltip",n))},t.type="tooltip",t}(wi);function gl(e,t,r){var n=t.ecModel,i;r?(i=new rr(r,n,n),i=new rr(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof rr&&(o=o.get("tooltip",!0)),Ae(o)&&(o={formatter:o}),o&&(i=new rr(o,i,n)))}return i}function rC(e,t){return e.dispatchAction||_t(t.dispatchAction,t)}function nte(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function ite(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function ate(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function nC(e){return e==="center"||e==="middle"}function ote(e,t,r){var n=Xy(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Ju(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ut(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const ste=rte;function lte(e){sa(NL),e.registerComponentModel(zee),e.registerComponentView(ste),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Tr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Tr)}var ute=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(wt),cte=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=qe(r.get("textBaseline"),r.get("textVerticalAlign")),c=new dr({style:oa(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new dr({style:oa(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),p=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!p&&!g,v&&c.on("click",function(){Qw(v,"_"+r.get("target"))}),p&&h.on("click",function(){Qw(p,"_"+r.get("subtarget"))}),ut(c).eventData=ut(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var m=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=m.width,y.height=m.height;var _=Ls(y,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),h.setStyle(b),m=a.getBoundingRect();var S=_.margin,w=r.getItemStyle(["color","opacity"]);w.fill=r.get("backgroundColor");var x=new Bt({shape:{x:m.x-S[3],y:m.y-S[0],width:m.width+S[1]+S[3],height:m.height+S[0]+S[2],r:r.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});a.add(x)}},t.type="title",t}(wi);function fte(e){e.registerComponentModel(ute),e.registerComponentView(cte)}var dte=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"])}},hte=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),ge(n)&&O(n,function(a,o){Ae(a)&&(a={type:a}),n[o]=ot(a,dte(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(wt);const bm=hte;var jo=Dt,wm=O,cf=cn,vte=function(e){pe(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new cf),this.group.add(this._selectorGroup=new cf),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=Ls(c,f,d),v=this.layoutInner(r,o,h,a,l,u),p=Ls(ct({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=$ee(v,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=je(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),wm(n.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var g=new cf;g.newline=!0,u.add(g);return}var m=i.getSeriesByName(p)[0];if(!c.get(p))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),S=y.getVisual("style"),w=this._createItem(m,p,v,h,n,r,_,S,b,f,a);w.on("click",jo(iC,p,null,a,d)).on("mouseover",jo(Sm,m.name,null,a,d)).on("mouseout",jo(xm,m.name,null,a,d)),c.set(p,!0)}else i.eachRawSeries(function(x){if(!c.get(p)&&x.legendVisualProvider){var C=x.legendVisualProvider;if(!C.containName(p))return;var T=C.indexOfName(p),E=C.getItemVisual(T,"style"),A=C.getItemVisual(T,"legendIcon"),M=oo(E.fill);M&&M[3]===0&&(M[3]=.2,E=se(se({},E),{fill:Vy(M,"rgba")}));var D=this._createItem(x,p,v,h,n,r,{},E,A,f,a);D.on("click",jo(iC,null,p,a,d)).on("mouseover",jo(Sm,null,p,a,d)).on("mouseout",jo(xm,null,p,a,d)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();wm(r,function(u){var c=u.type,f=new dr({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);f0(f,{normal:d,emphasis:h},{defaultText:u.title}),Ug(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");c=_||c||"roundRect";var b=pte(c,a,l,u,h,g,d),S=new cf,w=a.getModel("textStyle");if(Ge(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;S.add(gte({itemWidth:v,itemHeight:p,icon:c,iconRotate:x,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var C=s==="left"?v+5:-5,T=s,E=o.get("formatter"),A=n;Ae(E)&&E?A=E.replace("{name}",n??""):Ge(E)&&(A=E(n));var M=a.get("inactiveColor");S.add(new dr({style:oa(w,{text:A,x:C,y:p/2,fill:g?w.getTextColor():M,align:T,verticalAlign:"middle"})}));var D=new Bt({shape:S.getBoundingRect(),invisible:!0}),R=a.getModel("tooltip");return R.get("show")&&u0({el:D,componentModel:o,itemName:n,itemTooltipOption:R.option}),S.add(D),S.eachChild(function(k){k.silent=!0}),D.silent=!f,this.getContentGroup().add(S),Ug(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Kl(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Kl("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),p=r.getOrient().index,g=p===0?"width":"height",m=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=c[g]+v:f[p]+=d[g]+v,h[1-p]+=c[m]/2-d[m]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+v+d[g],_[m]=Math.max(c[m],d[m]),_[y]=Math.min(0,d[y]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(wi);function pte(e,t,r,n,i,a,o){function s(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),wm(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:lm(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function gte(e){var t=e.icon||"roundRect",r=E0(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function iC(e,t,r,n){xm(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),Sm(e,t,r,n)}function zL(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],g=[-h.x,-h.y];n||(g[a]=c[u]);var m=[0,0],y=[-v.x,-v.y],_=qe(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-v[o]:m[a]+=v[o]+_}y[1-a]+=h[s]/2-v[s]/2,c.setPosition(g),f.setPosition(m),d.setPosition(y);var S={x:0,y:0};if(S[o]=p?i[o]:h[o],S[s]=Math.max(h[s],v[s]),S[l]=Math.min(0,v[l]+y[1-a]),f.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-v[o]-_,0),w[s]=S[s],f.setClipPath(new Bt({shape:w})),f.__rectSize=w[o]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Er(c,{x:x.contentPosition[0],y:x.contentPosition[1]},p?r:null),this._updatePageInfoView(r,x),S},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;O(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Ae(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=mp[o],l=yp[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=b(f);v.contentPosition[o]=-p.s;for(var g=u+1,m=p,y=p,_=null;g<=d;++g)_=b(c[g]),(!_&&y.e>m.s+a||_&&!S(_,m.s))&&(y.i>m.i?m=y:m=_,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),y=_;for(var g=u-1,m=p,y=p,_=null;g>=-1;--g)_=b(c[g]),(!_||!S(y,_.s))&&m.i=x&&w.s<=x+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(WL);const Ste=wte;function xte(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function Cte(e){sa(VL),e.registerComponentModel(bte),e.registerComponentView(Ste),xte(e)}function Tte(e){sa(VL),sa(Cte)}sa([_J,nJ,uee,DQ,fte,lte,Tte,Fee]);function Mte(e,t,r){const n=I0(document.getElementById(e),"macarons");n.showLoading();const i={title:{text:"Network Traffic",subtext:"today",left:"center"},tooltip:{trigger:"item",formatter:function(a){return na.fileSize(a.data.value)+" ("+a.percent+"%)"}},legend:{orient:"vertical",left:"left",data:["Traffic In","Traffic Out"]},series:[{type:"pie",radius:"55%",center:["50%","60%"],data:[{value:t,name:"Traffic In"},{value:r,name:"Traffic Out"}],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};n.setOption(i),n.hideLoading()}function Ate(e,t){const r=I0(document.getElementById(e),"macarons");r.showLoading();const n={title:{text:"Proxies",subtext:"now",left:"center"},tooltip:{trigger:"item",formatter:function(i){return String(i.data.value)}},legend:{orient:"vertical",left:"left",data:[]},series:[{type:"pie",radius:"55%",center:["50%","60%"],data:[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};t.proxy_type_count.tcp!=null&&t.proxy_type_count.tcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.tcp,name:"TCP"}),n.legend.data.push("TCP")),t.proxy_type_count.udp!=null&&t.proxy_type_count.udp!=0&&(n.series[0].data.push({value:t.proxy_type_count.udp,name:"UDP"}),n.legend.data.push("UDP")),t.proxy_type_count.http!=null&&t.proxy_type_count.http!=0&&(n.series[0].data.push({value:t.proxy_type_count.http,name:"HTTP"}),n.legend.data.push("HTTP")),t.proxy_type_count.https!=null&&t.proxy_type_count.https!=0&&(n.series[0].data.push({value:t.proxy_type_count.https,name:"HTTPS"}),n.legend.data.push("HTTPS")),t.proxy_type_count.stcp!=null&&t.proxy_type_count.stcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.stcp,name:"STCP"}),n.legend.data.push("STCP")),t.proxy_type_count.sudp!=null&&t.proxy_type_count.sudp!=0&&(n.series[0].data.push({value:t.proxy_type_count.sudp,name:"SUDP"}),n.legend.data.push("SUDP")),t.proxy_type_count.xtcp!=null&&t.proxy_type_count.xtcp!=0&&(n.series[0].data.push({value:t.proxy_type_count.xtcp,name:"XTCP"}),n.legend.data.push("XTCP")),r.setOption(n),r.hideLoading()}function Ete(e,t,r){const n={width:"600px",height:"400px"},i=I0(document.getElementById(e),"macarons",n);i.showLoading(),t=t.reverse(),r=r.reverse();let a=new Date;a=new Date(a.getFullYear(),a.getMonth(),a.getDate()-6);const o=[];for(let l=0;l<7;l++)o.push(a.getFullYear()+"-"+(a.getMonth()+1)+"-"+a.getDate()),a=new Date(a.getFullYear(),a.getMonth(),a.getDate()+1);const s={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(l){let u="";l.length>0&&(u+=l[0].name+"
");for(const c of l){const f='';u+=f+c.seriesName+": "+na.fileSize(c.value)+"
"}return u}},legend:{data:["Traffic In","Traffic Out"]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{type:"category",data:o}],yAxis:[{type:"value",axisLabel:{formatter:function(l){return na.fileSize(l)}}}],series:[{name:"Traffic In",type:"bar",data:t},{name:"Traffic Out",type:"bar",data:r}]};i.setOption(s),i.hideLoading()}const sC=ce({__name:"LongSpan",props:{content:null,length:null},setup(e){return(t,r)=>{const n=Yu;return U(),ye(yt,null,[ee(n,{content:e.content,placement:"top"},{default:Z(()=>[qt(ae("span",null,Me(e.content.slice(0,e.length))+"...",513),[[mi,e.content.length>e.length]])]),_:1},8,["content"]),qt(ae("span",null,Me(e.content),513),[[mi,e.content.length<30]])],64)}}}),Pte={class:"source"},Lte=ae("div",{id:"traffic",style:{width:"400px",height:"250px","margin-bottom":"30px"}},null,-1),Dte=ae("div",{id:"proxies",style:{width:"400px",height:"250px"}},null,-1),Ite=ce({__name:"ServerOverview",setup(e){let t=H({version:"",bind_port:0,bind_udp_port:0,kcp_bind_port:0,quic_bind_port:0,vhost_http_port:0,vhost_https_port:0,tcpmux_httpconnect_port:0,subdomain_host:"",max_pool_count:0,max_ports_per_client:"",allow_ports_str:"",tls_only:!1,heart_beat_timeout:0,client_counts:0,cur_conns:0,proxy_counts:0});return(()=>{fetch("../api/serverinfo",{credentials:"include"}).then(n=>n.json()).then(n=>{t.value.version=n.version,t.value.bind_port=n.bind_port,t.value.bind_udp_port=n.bind_udp_port,t.value.kcp_bind_port=n.kcp_bind_port,t.value.quic_bind_port=n.quic_bind_port,t.value.vhost_http_port=n.vhost_http_port,t.value.vhost_https_port=n.vhost_https_port,t.value.tcpmux_httpconnect_port=n.tcpmux_httpconnect_port,t.value.subdomain_host=n.subdomain_host,t.value.max_pool_count=n.max_pool_count,t.value.max_ports_per_client=n.max_ports_per_client,t.value.max_ports_per_client=="0"&&(t.value.max_ports_per_client="no limit"),t.value.allow_ports_str=n.allow_ports_str,t.value.tls_only=n.tls_only,t.value.heart_beat_timeout=n.heart_beat_timeout,t.value.client_counts=n.client_counts,t.value.cur_conns=n.cur_conns,t.value.proxy_counts=0,n.proxy_type_count!=null&&(n.proxy_type_count.tcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.tcp),n.proxy_type_count.udp!=null&&(t.value.proxy_counts+=n.proxy_type_count.udp),n.proxy_type_count.http!=null&&(t.value.proxy_counts+=n.proxy_type_count.http),n.proxy_type_count.https!=null&&(t.value.proxy_counts+=n.proxy_type_count.https),n.proxy_type_count.stcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.stcp),n.proxy_type_count.sudp!=null&&(t.value.proxy_counts+=n.proxy_type_count.sudp),n.proxy_type_count.xtcp!=null&&(t.value.proxy_counts+=n.proxy_type_count.xtcp)),Mte("traffic",n.total_traffic_in,n.total_traffic_out),Ate("proxies",n)}).catch(()=>{pA({showClose:!0,message:"Get server info from frps failed!",type:"warning"})})})(),(n,i)=>{const a=ZM,o=XM,s=YM,l=rA;return U(),ye("div",null,[ee(l,null,{default:Z(()=>[ee(s,{md:12},{default:Z(()=>[ae("div",Pte,[ee(o,{"label-position":"left","label-width":"220px",class:"server_info"},{default:Z(()=>[ee(a,{label:"Version"},{default:Z(()=>[ae("span",null,Me(P(t).version),1)]),_:1}),ee(a,{label:"BindPort"},{default:Z(()=>[ae("span",null,Me(P(t).bind_port),1)]),_:1}),P(t).bind_udp_port!=0?(U(),me(a,{key:0,label:"Bind UDP Port"},{default:Z(()=>[ae("span",null,Me(P(t).bind_udp_port),1)]),_:1})):ke("",!0),P(t).kcp_bind_port!=0?(U(),me(a,{key:1,label:"KCP Bind Port"},{default:Z(()=>[ae("span",null,Me(P(t).kcp_bind_port),1)]),_:1})):ke("",!0),P(t).quic_bind_port!=0?(U(),me(a,{key:2,label:"QUIC Bind Port"},{default:Z(()=>[ae("span",null,Me(P(t).quic_bind_port),1)]),_:1})):ke("",!0),P(t).vhost_http_port!=0?(U(),me(a,{key:3,label:"Http Port"},{default:Z(()=>[ae("span",null,Me(P(t).vhost_http_port),1)]),_:1})):ke("",!0),P(t).vhost_https_port!=0?(U(),me(a,{key:4,label:"Https Port"},{default:Z(()=>[ae("span",null,Me(P(t).vhost_https_port),1)]),_:1})):ke("",!0),P(t).tcpmux_httpconnect_port!=0?(U(),me(a,{key:5,label:"TCPMux HTTPConnect Port"},{default:Z(()=>[ae("span",null,Me(P(t).tcpmux_httpconnect_port),1)]),_:1})):ke("",!0),P(t).subdomain_host!=""?(U(),me(a,{key:6,label:"Subdomain Host"},{default:Z(()=>[ee(sC,{content:P(t).subdomain_host,length:30},null,8,["content"])]),_:1})):ke("",!0),ee(a,{label:"Max PoolCount"},{default:Z(()=>[ae("span",null,Me(P(t).max_pool_count),1)]),_:1}),ee(a,{label:"Max Ports Per Client"},{default:Z(()=>[ae("span",null,Me(P(t).max_ports_per_client),1)]),_:1}),P(t).allow_ports_str!=""?(U(),me(a,{key:7,label:"Allow Ports"},{default:Z(()=>[ee(sC,{content:P(t).allow_ports_str,length:30},null,8,["content"])]),_:1})):ke("",!0),P(t).tls_only===!0?(U(),me(a,{key:8,label:"TLS Only"},{default:Z(()=>[ae("span",null,Me(P(t).tls_only),1)]),_:1})):ke("",!0),ee(a,{label:"HeartBeat Timeout"},{default:Z(()=>[ae("span",null,Me(P(t).heart_beat_timeout),1)]),_:1}),ee(a,{label:"Client Counts"},{default:Z(()=>[ae("span",null,Me(P(t).client_counts),1)]),_:1}),ee(a,{label:"Current Connections"},{default:Z(()=>[ae("span",null,Me(P(t).cur_conns),1)]),_:1}),ee(a,{label:"Proxy Counts"},{default:Z(()=>[ae("span",null,Me(P(t).proxy_counts),1)]),_:1})]),_:1})])]),_:1}),ee(s,{md:12},{default:Z(()=>[Lte,Dte]),_:1})]),_:1})])}}});class Gs{constructor(t){$t(this,"name");$t(this,"type");$t(this,"encryption");$t(this,"compression");$t(this,"conns");$t(this,"traffic_in");$t(this,"traffic_out");$t(this,"last_start_time");$t(this,"last_close_time");$t(this,"status");$t(this,"client_version");$t(this,"addr");$t(this,"port");$t(this,"custom_domains");$t(this,"host_header_rewrite");$t(this,"locations");$t(this,"subdomain");this.name=t.name,this.type="",t.conf!=null?(this.encryption=t.conf.use_encryption,this.compression=t.conf.use_compression):(this.encryption=!1,this.compression=!1),this.conns=t.cur_conns,this.traffic_in=t.today_traffic_in,this.traffic_out=t.today_traffic_out,this.last_start_time=t.last_start_time,this.last_close_time=t.last_close_time,this.status=t.status,this.client_version=t.client_version,this.addr="",this.port=0,this.custom_domains="",this.host_header_rewrite="",this.locations="",this.subdomain=""}}class Ote extends Gs{constructor(t){super(t),this.type="tcp",t.conf!=null?(this.addr=":"+t.conf.remote_port,this.port=t.conf.remote_port):(this.addr="",this.port=0)}}class Rte extends Gs{constructor(t){super(t),this.type="udp",t.conf!=null?(this.addr=":"+t.conf.remote_port,this.port=t.conf.remote_port):(this.addr="",this.port=0)}}class kte extends Gs{constructor(t,r,n){super(t),this.type="http",this.port=r,t.conf!=null?(this.custom_domains=t.conf.custom_domains,this.host_header_rewrite=t.conf.host_header_rewrite,this.locations=t.conf.locations,t.conf.subdomain!=""?this.subdomain=t.conf.subdomain+"."+n:this.subdomain=""):(this.custom_domains="",this.host_header_rewrite="",this.subdomain="",this.locations="")}}class Nte extends Gs{constructor(t,r,n){super(t),this.type="https",this.port=r,t.conf!=null?(this.custom_domains=t.conf.custom_domains,t.conf.subdomain!=""?this.subdomain=t.conf.subdomain+"."+n:this.subdomain=""):(this.custom_domains="",this.subdomain="")}}class Bte extends Gs{constructor(t){super(t),this.type="stcp"}}class Fte extends Gs{constructor(t){super(t),this.type="sudp"}}const $te=["id"],Hte=ce({__name:"Traffic",props:{proxy_name:null},setup(e){const t=e;return(()=>{let n="../api/traffic/"+t.proxy_name;fetch(n,{credentials:"include"}).then(i=>i.json()).then(i=>{Ete(t.proxy_name,i.traffic_in,i.traffic_out)}).catch(i=>{pA({showClose:!0,message:"Get traffic info failed!"+i,type:"warning"})})})(),(n,i)=>(U(),ye("div",{id:e.proxy_name,style:{width:"600px",height:"400px"}},null,8,$te))}}),zte=ce({__name:"ProxyViewExpand",props:{row:null,proxyType:null},setup(e){return(t,r)=>{const n=ZM,i=XM;return e.proxyType==="http"||e.proxyType==="https"?(U(),me(i,{key:0,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:Z(()=>[ee(n,{label:"Name"},{default:Z(()=>[ae("span",null,Me(e.row.name),1)]),_:1}),ee(n,{label:"Type"},{default:Z(()=>[ae("span",null,Me(e.row.type),1)]),_:1}),ee(n,{label:"Domains"},{default:Z(()=>[ae("span",null,Me(e.row.custom_domains),1)]),_:1}),ee(n,{label:"SubDomain"},{default:Z(()=>[ae("span",null,Me(e.row.subdomain),1)]),_:1}),ee(n,{label:"locations"},{default:Z(()=>[ae("span",null,Me(e.row.locations),1)]),_:1}),ee(n,{label:"HostRewrite"},{default:Z(()=>[ae("span",null,Me(e.row.host_header_rewrite),1)]),_:1}),ee(n,{label:"Encryption"},{default:Z(()=>[ae("span",null,Me(e.row.encryption),1)]),_:1}),ee(n,{label:"Compression"},{default:Z(()=>[ae("span",null,Me(e.row.compression),1)]),_:1}),ee(n,{label:"Last Start"},{default:Z(()=>[ae("span",null,Me(e.row.last_start_time),1)]),_:1}),ee(n,{label:"Last Close"},{default:Z(()=>[ae("span",null,Me(e.row.last_close_time),1)]),_:1})]),_:1})):(U(),me(i,{key:1,"label-position":"left",inline:"",class:"proxy-table-expand"},{default:Z(()=>[ee(n,{label:"Name"},{default:Z(()=>[ae("span",null,Me(e.row.name),1)]),_:1}),ee(n,{label:"Type"},{default:Z(()=>[ae("span",null,Me(e.row.type),1)]),_:1}),ee(n,{label:"Addr"},{default:Z(()=>[ae("span",null,Me(e.row.addr),1)]),_:1}),ee(n,{label:"Encryption"},{default:Z(()=>[ae("span",null,Me(e.row.encryption),1)]),_:1}),ee(n,{label:"Compression"},{default:Z(()=>[ae("span",null,Me(e.row.compression),1)]),_:1}),ee(n,{label:"Last Start"},{default:Z(()=>[ae("span",null,Me(e.row.last_start_time),1)]),_:1}),ee(n,{label:"Last Close"},{default:Z(()=>[ae("span",null,Me(e.row.last_close_time),1)]),_:1})]),_:1}))}}}),Us=ce({__name:"ProxyView",props:{proxies:null,proxyType:null},setup(e){const t=(o,s)=>na.fileSize(o.traffic_in),r=(o,s)=>na.fileSize(o.traffic_out),n=H(),i=H(),a=()=>{var o,s;(s=(o=P(i).popoverTraffic)==null?void 0:o.delayHide)==null||s.call(o)};return(o,s)=>{const l=Hte,u=Q8,c=Oz,f=SV,d=h6,h=wV,v=Hm("click-outside");return U(),ye("div",null,[ee(h,{data:e.proxies,"default-sort":{prop:"name",order:"ascending"},style:{width:"100%"}},{default:Z(()=>[ee(f,{type:"expand"},{default:Z(p=>[ee(u,{ref_key:"popoverTraffic",ref:i,"virtual-ref":n.value,placement:"right",width:"600",style:{"margin-left":"0px"},trigger:"click","virtual-triggering":""},{default:Z(()=>[ee(l,{proxy_name:p.row.name},null,8,["proxy_name"])]),_:2},1032,["virtual-ref"]),qt((U(),me(c,{ref_key:"buttonTraffic",ref:n,type:"primary",size:"large",name:p.row.name,style:{"margin-bottom":"10px"}},{default:Z(()=>[Nt("Traffic Statistics ")]),_:2},1032,["name"])),[[v,a]]),ee(zte,{row:p.row,proxyType:e.proxyType},null,8,["row","proxyType"])]),_:1}),ee(f,{label:"Name",prop:"name",sortable:""}),ee(f,{label:"Port",prop:"port",sortable:""}),ee(f,{label:"Connections",prop:"conns",sortable:""}),ee(f,{label:"Traffic In",prop:"traffic_in",formatter:t,sortable:""}),ee(f,{label:"Traffic Out",prop:"traffic_out",formatter:r,sortable:""}),ee(f,{label:"ClientVersion",prop:"client_version",sortable:""}),ee(f,{label:"Status",prop:"status",sortable:""},{default:Z(p=>[p.row.status==="online"?(U(),me(d,{key:0,type:"success"},{default:Z(()=>[Nt(Me(p.row.status),1)]),_:2},1024)):(U(),me(d,{key:1,type:"danger"},{default:Z(()=>[Nt(Me(p.row.status),1)]),_:2},1024))]),_:1})]),_:1},8,["data"])])}}}),Wte=ce({__name:"ProxiesTCP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/tcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new Ote(i))})})(),(n,i)=>(U(),me(Us,{proxies:P(t),proxyType:"tcp"},null,8,["proxies"]))}}),Vte=ce({__name:"ProxiesUDP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/udp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new Rte(i))})})(),(n,i)=>(U(),me(Us,{proxies:P(t),proxyType:"udp"},null,8,["proxies"]))}}),Gte=ce({__name:"ProxiesHTTP",setup(e){let t=H([]);return(()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.vhost_http_port,i=a.subdomain_host,!(n==null||n==0)&&fetch("../api/proxy/http",{credentials:"include"}).then(o=>o.json()).then(o=>{for(let s of o.proxies)t.value.push(new kte(s,n,i))})})})(),(n,i)=>(U(),me(Us,{proxies:P(t),proxyType:"http"},null,8,["proxies"]))}}),Ute=ce({__name:"ProxiesHTTPS",setup(e){let t=H([]);return(()=>{let n,i;fetch("../api/serverinfo",{credentials:"include"}).then(a=>a.json()).then(a=>{n=a.vhost_https_port,i=a.subdomain_host,!(n==null||n==0)&&fetch("../api/proxy/https",{credentials:"include"}).then(o=>o.json()).then(o=>{for(let s of o.proxies)t.value.push(new Nte(s,n,i))})})})(),(n,i)=>(U(),me(Us,{proxies:P(t),proxyType:"https"},null,8,["proxies"]))}}),jte=ce({__name:"ProxiesSTCP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/stcp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new Bte(i))})})(),(n,i)=>(U(),me(Us,{proxies:P(t),proxyType:"stcp"},null,8,["proxies"]))}}),Yte=ce({__name:"ProxiesSUDP",setup(e){let t=H([]);return(()=>{fetch("../api/proxy/sudp",{credentials:"include"}).then(n=>n.json()).then(n=>{for(let i of n.proxies)t.value.push(new Fte(i))})})(),(n,i)=>(U(),me(Us,{proxies:P(t),proxyType:"sudp"},null,8,["proxies"]))}}),qte=YG({history:uG(),routes:[{path:"/",name:"ServerOverview",component:Ite},{path:"/proxies/tcp",name:"ProxiesTCP",component:Wte},{path:"/proxies/udp",name:"ProxiesUDP",component:Vte},{path:"/proxies/http",name:"ProxiesHTTP",component:Gte},{path:"/proxies/https",name:"ProxiesHTTPS",component:Ute},{path:"/proxies/stcp",name:"ProxiesSTCP",component:jte},{path:"/proxies/sudp",name:"ProxiesSUDP",component:Yte}]}),GL=TO(GV);GL.use(qte);GL.mount("#app")});export default Kte();