(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();function IR(t,e){const n=Object.create(null),r=t.split(",");for(let a=0;a!!n[a.toLowerCase()]:a=>!!n[a]}const jn={},Lh=[],cn=()=>{},Hie=()=>!1,Uie=/^on[^a-z]/,gw=t=>Uie.test(t),BR=t=>t.startsWith("onUpdate:"),fr=Object.assign,VR=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Wie=Object.prototype.hasOwnProperty,Gt=(t,e)=>Wie.call(t,e),He=Array.isArray,Ah=t=>Fv(t)==="[object Map]",yw=t=>Fv(t)==="[object Set]",qf=t=>Fv(t)==="[object Date]",jie=t=>Fv(t)==="[object RegExp]",ut=t=>typeof t=="function",ft=t=>typeof t=="string",f0=t=>typeof t=="symbol",Lt=t=>t!==null&&typeof t=="object",d0=t=>Lt(t)&&ut(t.then)&&ut(t.catch),MH=Object.prototype.toString,Fv=t=>MH.call(t),mb=t=>Fv(t).slice(8,-1),TS=t=>Fv(t)==="[object Object]",PR=t=>ft(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,bb=IR(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mw=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Kie=/-(\w)/g,Gi=mw(t=>t.replace(Kie,(e,n)=>n?n.toUpperCase():"")),Yie=/\B([A-Z])/g,nc=mw(t=>t.replace(Yie,"-$1").toLowerCase()),Ay=mw(t=>t.charAt(0).toUpperCase()+t.slice(1)),Sb=mw(t=>t?`on${Ay(t)}`:""),h0=(t,e)=>!Object.is(t,e),Oh=(t,e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},QE=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Xie=t=>{const e=ft(t)?Number(t):NaN;return isNaN(e)?t:e};let i$;const JE=()=>i$||(i$=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function qe(t){if(He(t)){const e={};for(let n=0;n{if(n){const r=n.split(Zie);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function F(t){let e="";if(ft(t))e=t;else if(He(t))for(let n=0;ntv(n,e))}const Ae=t=>ft(t)?t:t==null?"":He(t)||Lt(t)&&(t.toString===MH||!ut(t.toString))?JSON.stringify(t,RH,2):String(t),RH=(t,e)=>e&&e.__v_isRef?RH(t,e.value):Ah(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:yw(e)?{[`Set(${e.size})`]:[...e.values()]}:Lt(e)&&!He(e)&&!TS(e)?String(e):e;let ii;class LH{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ii,!e&&ii&&(this.index=(ii.scopes||(ii.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=ii;try{return ii=this,e()}finally{ii=n}}}on(){ii=this}off(){ii=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n{const e=new Set(t);return e.w=0,e.n=0,e},$H=t=>(t.w&Vu)>0,IH=t=>(t.n&Vu)>0,aoe=({deps:t})=>{if(t.length)for(let e=0;e{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r{(c==="length"||c>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(o.get(n)),e){case"add":He(t)?PR(n)&&s.push(o.get("length")):(s.push(o.get(Nf)),Ah(t)&&s.push(o.get(tM)));break;case"delete":He(t)||(s.push(o.get(Nf)),Ah(t)&&s.push(o.get(tM)));break;case"set":Ah(t)&&s.push(o.get(Nf));break}if(s.length===1)s[0]&&nM(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);nM(FR(l))}}function nM(t,e){const n=He(t)?t:[...t];for(const r of n)r.computed&&s$(r);for(const r of n)r.computed||s$(r)}function s$(t,e){(t!==yo||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function ooe(t,e){var n;return(n=MS.get(t))==null?void 0:n.get(e)}const soe=IR("__proto__,__v_isRef,__isVue"),PH=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(f0)),loe=GR(),uoe=GR(!1,!0),coe=GR(!0),l$=foe();function foe(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=on(this);for(let i=0,o=this.length;i{t[e]=function(...n){zv();const r=on(this)[e].apply(this,n);return Gv(),r}}),t}function doe(t){const e=on(this);return ei(e,"has",t),e.hasOwnProperty(t)}function GR(t=!1,e=!1){return function(r,a,i){if(a==="__v_isReactive")return!t;if(a==="__v_isReadonly")return t;if(a==="__v_isShallow")return e;if(a==="__v_raw"&&i===(t?e?koe:UH:e?HH:GH).get(r))return r;const o=He(r);if(!t){if(o&&Gt(l$,a))return Reflect.get(l$,a,i);if(a==="hasOwnProperty")return doe}const s=Reflect.get(r,a,i);return(f0(a)?PH.has(a):soe(a))||(t||ei(r,"get",a),e)?s:pt(s)?o&&PR(a)?s:s.value:Lt(s)?t?Hv(s):Qt(s):s}}const hoe=FH(),voe=FH(!0);function FH(t=!1){return function(n,r,a,i){let o=n[r];if(nv(o)&&pt(o)&&!pt(a))return!1;if(!t&&(!kS(a)&&!nv(a)&&(o=on(o),a=on(a)),!He(n)&&pt(o)&&!pt(a)))return o.value=a,!0;const s=He(n)&&PR(r)?Number(r)t,bw=t=>Reflect.getPrototypeOf(t);function Em(t,e,n=!1,r=!1){t=t.__v_raw;const a=on(t),i=on(e);n||(e!==i&&ei(a,"get",e),ei(a,"get",i));const{has:o}=bw(a),s=r?HR:n?jR:v0;if(o.call(a,e))return s(t.get(e));if(o.call(a,i))return s(t.get(i));t!==a&&t.get(e)}function Mm(t,e=!1){const n=this.__v_raw,r=on(n),a=on(t);return e||(t!==a&&ei(r,"has",t),ei(r,"has",a)),t===a?n.has(t):n.has(t)||n.has(a)}function km(t,e=!1){return t=t.__v_raw,!e&&ei(on(t),"iterate",Nf),Reflect.get(t,"size",t)}function u$(t){t=on(t);const e=on(this);return bw(e).has.call(e,t)||(e.add(t),pl(e,"add",t,t)),this}function c$(t,e){e=on(e);const n=on(this),{has:r,get:a}=bw(n);let i=r.call(n,t);i||(t=on(t),i=r.call(n,t));const o=a.call(n,t);return n.set(t,e),i?h0(e,o)&&pl(n,"set",t,e):pl(n,"add",t,e),this}function f$(t){const e=on(this),{has:n,get:r}=bw(e);let a=n.call(e,t);a||(t=on(t),a=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return a&&pl(e,"delete",t,void 0),i}function d$(){const t=on(this),e=t.size!==0,n=t.clear();return e&&pl(t,"clear",void 0,void 0),n}function Dm(t,e){return function(r,a){const i=this,o=i.__v_raw,s=on(o),l=e?HR:t?jR:v0;return!t&&ei(s,"iterate",Nf),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function Rm(t,e,n){return function(...r){const a=this.__v_raw,i=on(a),o=Ah(i),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=a[t](...r),c=n?HR:e?jR:v0;return!e&&ei(i,"iterate",l?tM:Nf),{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 Nl(t){return function(...e){return t==="delete"?!1:this}}function Soe(){const t={get(i){return Em(this,i)},get size(){return km(this)},has:Mm,add:u$,set:c$,delete:f$,clear:d$,forEach:Dm(!1,!1)},e={get(i){return Em(this,i,!1,!0)},get size(){return km(this)},has:Mm,add:u$,set:c$,delete:f$,clear:d$,forEach:Dm(!1,!0)},n={get(i){return Em(this,i,!0)},get size(){return km(this,!0)},has(i){return Mm.call(this,i,!0)},add:Nl("add"),set:Nl("set"),delete:Nl("delete"),clear:Nl("clear"),forEach:Dm(!0,!1)},r={get(i){return Em(this,i,!0,!0)},get size(){return km(this,!0)},has(i){return Mm.call(this,i,!0)},add:Nl("add"),set:Nl("set"),delete:Nl("delete"),clear:Nl("clear"),forEach:Dm(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=Rm(i,!1,!1),n[i]=Rm(i,!0,!1),e[i]=Rm(i,!1,!0),r[i]=Rm(i,!0,!0)}),[t,n,e,r]}const[_oe,woe,xoe,Coe]=Soe();function UR(t,e){const n=e?t?Coe:xoe:t?woe:_oe;return(r,a,i)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?r:Reflect.get(Gt(n,a)&&a in r?n:r,a,i)}const Toe={get:UR(!1,!1)},Eoe={get:UR(!1,!0)},Moe={get:UR(!0,!1)},GH=new WeakMap,HH=new WeakMap,UH=new WeakMap,koe=new WeakMap;function Doe(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Roe(t){return t.__v_skip||!Object.isExtensible(t)?0:Doe(mb(t))}function Qt(t){return nv(t)?t:WR(t,!1,zH,Toe,GH)}function WH(t){return WR(t,!1,boe,Eoe,HH)}function Hv(t){return WR(t,!0,moe,Moe,UH)}function WR(t,e,n,r,a){if(!Lt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const i=a.get(t);if(i)return i;const o=Roe(t);if(o===0)return t;const s=new Proxy(t,o===2?r:n);return a.set(t,s),s}function Nh(t){return nv(t)?Nh(t.__v_raw):!!(t&&t.__v_isReactive)}function nv(t){return!!(t&&t.__v_isReadonly)}function kS(t){return!!(t&&t.__v_isShallow)}function jH(t){return Nh(t)||nv(t)}function on(t){const e=t&&t.__v_raw;return e?on(e):t}function Eu(t){return ES(t,"__v_skip",!0),t}const v0=t=>Lt(t)?Qt(t):t,jR=t=>Lt(t)?Hv(t):t;function KH(t){Tu&&yo&&(t=on(t),VH(t.dep||(t.dep=FR())))}function KR(t,e){t=on(t);const n=t.dep;n&&nM(n)}function pt(t){return!!(t&&t.__v_isRef===!0)}function z(t){return YH(t,!1)}function Sn(t){return YH(t,!0)}function YH(t,e){return pt(t)?t:new Loe(t,e)}class Loe{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:on(e),this._value=n?e:v0(e)}get value(){return KH(this),this._value}set value(e){const n=this.__v_isShallow||kS(e)||nv(e);e=n?e:on(e),h0(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:v0(e),KR(this))}}function _p(t){KR(t)}function S(t){return pt(t)?t.value:t}const Aoe={get:(t,e,n)=>S(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const a=t[e];return pt(a)&&!pt(n)?(a.value=n,!0):Reflect.set(t,e,n,r)}};function XH(t){return Nh(t)?t:new Proxy(t,Aoe)}function kr(t){const e=He(t)?new Array(t.length):{};for(const n in t)e[n]=qH(t,n);return e}class Ooe{constructor(e,n,r){this._object=e,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return ooe(on(this._object),this._key)}}class Noe{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Bn(t,e,n){return pt(t)?t:ut(t)?new Noe(t):Lt(t)&&arguments.length>1?qH(t,e,n):z(t)}function qH(t,e,n){const r=t[e];return pt(r)?r:new Ooe(t,e,n)}class $oe{constructor(e,n,r,a){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new zR(e,()=>{this._dirty||(this._dirty=!0,KR(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const e=on(this);return KH(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function ZH(t,e,n=!1){let r,a;const i=ut(t);return i?(r=t,a=cn):(r=t.get,a=t.set),new $oe(r,a,i||!a,n)}function Ioe(t,...e){}function Mu(t,e,n,r){let a;try{a=r?t(...r):t()}catch(i){Sw(i,e,n)}return a}function Vi(t,e,n,r){if(ut(t)){const i=Mu(t,e,n,r);return i&&d0(i)&&i.catch(o=>{Sw(o,e,n)}),i}const a=[];for(let i=0;i>>1;g0(la[r])ss&&la.splice(e,1)}function Foe(t){He(t)?$h.push(...t):(!Ys||!Ys.includes(t,t.allowRecurse?lf+1:lf))&&$h.push(t),JH()}function h$(t,e=p0?ss+1:0){for(;eg0(n)-g0(r)),lf=0;lft.id==null?1/0:t.id,zoe=(t,e)=>{const n=g0(t)-g0(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function tU(t){rM=!1,p0=!0,la.sort(zoe);const e=cn;try{for(ss=0;ssft(h)?h.trim():h)),f&&(a=n.map(QE))}let s,l=r[s=Sb(e)]||r[s=Sb(Gi(e))];!l&&i&&(l=r[s=Sb(nc(e))]),l&&Vi(l,t,6,a);const u=r[s+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[s])return;t.emitted[s]=!0,Vi(u,t,6,a)}}function nU(t,e,n=!1){const r=e.emitsCache,a=r.get(t);if(a!==void 0)return a;const i=t.emits;let o={},s=!1;if(!ut(t)){const l=u=>{const c=nU(u,e,!0);c&&(s=!0,fr(o,c))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!i&&!s?(Lt(t)&&r.set(t,null),null):(He(i)?i.forEach(l=>o[l]=null):fr(o,i),Lt(t)&&r.set(t,o),o)}function _w(t,e){return!t||!gw(e)?!1:(e=e.slice(2).replace(/Once$/,""),Gt(t,e[0].toLowerCase()+e.slice(1))||Gt(t,nc(e))||Gt(t,e))}let Kr=null,ww=null;function DS(t){const e=Kr;return Kr=t,ww=t&&t.type.__scopeId||null,e}function xw(t){ww=t}function Cw(){ww=null}function Z(t,e=Kr,n){if(!e||t._n)return t;const r=(...a)=>{r._d&&E$(-1);const i=DS(e);let o;try{o=t(...a)}finally{DS(i),r._d&&E$(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function g2(t){const{type:e,vnode:n,proxy:r,withProxy:a,props:i,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:h,ctx:p,inheritAttrs:v}=t;let g,y;const m=DS(t);try{if(n.shapeFlag&4){const _=a||r;g=is(c.call(_,_,f,i,h,d,p)),y=l}else{const _=e;g=is(_.length>1?_(i,{attrs:l,slots:s,emit:u}):_(i,null)),y=e.props?l:Hoe(l)}}catch(_){Og.length=0,Sw(_,t,1),g=H(Ma)}let b=g;if(y&&v!==!1){const _=Object.keys(y),{shapeFlag:x}=b;_.length&&x&7&&(o&&_.some(BR)&&(y=Uoe(y,o)),b=xs(b,y))}return n.dirs&&(b=xs(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),g=b,DS(m),g}const Hoe=t=>{let e;for(const n in t)(n==="class"||n==="style"||gw(n))&&((e||(e={}))[n]=t[n]);return e},Uoe=(t,e)=>{const n={};for(const r in t)(!BR(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Woe(t,e,n){const{props:r,children:a,component:i}=t,{props:o,children:s,patchFlag:l}=e,u=i.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?v$(r,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let f=0;ft.__isSuspense;function Koe(t,e){e&&e.pendingBranch?He(t)?e.effects.push(...t):e.effects.push(t):Foe(t)}function di(t,e){return qR(t,null,e)}const Lm={};function Ee(t,e,n){return qR(t,e,n)}function qR(t,e,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=jn){var s;const l=OH()===((s=Ir)==null?void 0:s.scope)?Ir:null;let u,c=!1,f=!1;if(pt(t)?(u=()=>t.value,c=kS(t)):Nh(t)?(u=()=>t,r=!0):He(t)?(f=!0,c=t.some(_=>Nh(_)||kS(_)),u=()=>t.map(_=>{if(pt(_))return _.value;if(Nh(_))return mf(_);if(ut(_))return Mu(_,l,2)})):ut(t)?e?u=()=>Mu(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),Vi(t,l,3,[h])}:u=cn,e&&r){const _=u;u=()=>mf(_())}let d,h=_=>{d=m.onStop=()=>{Mu(_,l,4)}},p;if(S0)if(h=cn,e?n&&Vi(e,l,3,[u(),f?[]:void 0,h]):u(),a==="sync"){const _=Ise();p=_.__watcherHandles||(_.__watcherHandles=[])}else return cn;let v=f?new Array(t.length).fill(Lm):Lm;const g=()=>{if(m.active)if(e){const _=m.run();(r||c||(f?_.some((x,w)=>h0(x,v[w])):h0(_,v)))&&(d&&d(),Vi(e,l,3,[_,v===Lm?void 0:f&&v[0]===Lm?[]:v,h]),v=_)}else m.run()};g.allowRecurse=!!e;let y;a==="sync"?y=g:a==="post"?y=()=>Hr(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),y=()=>XR(g));const m=new zR(u,y);e?n?g():v=m.run():a==="post"?Hr(m.run.bind(m),l&&l.suspense):m.run();const b=()=>{m.stop(),l&&l.scope&&VR(l.scope.effects,m)};return p&&p.push(b),b}function Yoe(t,e,n){const r=this.proxy,a=ft(t)?t.includes(".")?aU(r,t):()=>r[t]:t.bind(r,r);let i;ut(e)?i=e:(i=e.handler,n=e);const o=Ir;av(this);const s=qR(a,i.bind(r),n);return o?av(o):$f(),s}function aU(t,e){const n=e.split(".");return()=>{let r=t;for(let a=0;a{mf(n,e)});else if(TS(t))for(const n in t)mf(t[n],e);return t}function yt(t,e){const n=Kr;if(n===null)return t;const r=Rw(n)||n.proxy,a=t.dirs||(t.dirs=[]);for(let i=0;i{t.isMounted=!0}),Tn(()=>{t.isUnmounting=!0}),t}const mi=[Function,Array],oU={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:mi,onEnter:mi,onAfterEnter:mi,onEnterCancelled:mi,onBeforeLeave:mi,onLeave:mi,onAfterLeave:mi,onLeaveCancelled:mi,onBeforeAppear:mi,onAppear:mi,onAfterAppear:mi,onAppearCancelled:mi},Xoe={name:"BaseTransition",props:oU,setup(t,{slots:e}){const n=wt(),r=iU();let a;return()=>{const i=e.default&&ZR(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const v of i)if(v.type!==Ma){o=v;break}}const s=on(t),{mode:l}=s;if(r.isLeaving)return y2(o);const u=p$(o);if(!u)return y2(o);const c=y0(u,s,r,n);rv(u,c);const f=n.subTree,d=f&&p$(f);let h=!1;const{getTransitionKey:p}=u.type;if(p){const v=p();a===void 0?a=v:v!==a&&(a=v,h=!0)}if(d&&d.type!==Ma&&(!fu(u,d)||h)){const v=y0(d,s,r,n);if(rv(d,v),l==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},y2(o);l==="in-out"&&u.type!==Ma&&(v.delayLeave=(g,y,m)=>{const b=sU(r,d);b[String(d.key)]=d,g._leaveCb=()=>{y(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=m})}return o}}},qoe=Xoe;function sU(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function y0(t,e,n,r){const{appear:a,mode:i,persisted:o=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:v,onAppear:g,onAfterAppear:y,onAppearCancelled:m}=e,b=String(t.key),_=sU(n,t),x=(T,k)=>{T&&Vi(T,r,9,k)},w=(T,k)=>{const E=k[1];x(T,k),He(T)?T.every(M=>M.length<=1)&&E():T.length<=1&&E()},C={mode:i,persisted:o,beforeEnter(T){let k=s;if(!n.isMounted)if(a)k=v||s;else return;T._leaveCb&&T._leaveCb(!0);const E=_[b];E&&fu(t,E)&&E.el._leaveCb&&E.el._leaveCb(),x(k,[T])},enter(T){let k=l,E=u,M=c;if(!n.isMounted)if(a)k=g||l,E=y||u,M=m||c;else return;let D=!1;const R=T._enterCb=A=>{D||(D=!0,A?x(M,[T]):x(E,[T]),C.delayedLeave&&C.delayedLeave(),T._enterCb=void 0)};k?w(k,[T,R]):R()},leave(T,k){const E=String(t.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return k();x(f,[T]);let M=!1;const D=T._leaveCb=R=>{M||(M=!0,k(),R?x(p,[T]):x(h,[T]),T._leaveCb=void 0,_[E]===t&&delete _[E])};_[E]=t,d?w(d,[T,D]):D()},clone(T){return y0(T,e,n,r)}};return C}function y2(t){if(Tw(t))return t=xs(t),t.children=null,t}function p$(t){return Tw(t)?t.children?t.children[0]:void 0:t}function rv(t,e){t.shapeFlag&6&&t.component?rv(t.component.subTree,e):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function ZR(t,e=!1,n){let r=[],a=0;for(let i=0;i1)for(let i=0;ifr({name:t.name},e,{setup:t}))():t}const Ih=t=>!!t.type.__asyncLoader,Tw=t=>t.type.__isKeepAlive,Zoe={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=wt(),r=n.ctx;if(!r.renderer)return()=>{const m=e.default&&e.default();return m&&m.length===1?m[0]:m};const a=new Map,i=new Set;let o=null;const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=r,d=f("div");r.activate=(m,b,_,x,w)=>{const C=m.component;u(m,b,_,0,s),l(C.vnode,m,b,_,C,s,x,m.slotScopeIds,w),Hr(()=>{C.isDeactivated=!1,C.a&&Oh(C.a);const T=m.props&&m.props.onVnodeMounted;T&&Ti(T,C.parent,m)},s)},r.deactivate=m=>{const b=m.component;u(m,d,null,1,s),Hr(()=>{b.da&&Oh(b.da);const _=m.props&&m.props.onVnodeUnmounted;_&&Ti(_,b.parent,m),b.isDeactivated=!0},s)};function h(m){m2(m),c(m,n,s,!0)}function p(m){a.forEach((b,_)=>{const x=cM(b.type);x&&(!m||!m(x))&&v(_)})}function v(m){const b=a.get(m);!o||!fu(b,o)?h(b):o&&m2(o),a.delete(m),i.delete(m)}Ee(()=>[t.include,t.exclude],([m,b])=>{m&&p(_=>dg(m,_)),b&&p(_=>!dg(b,_))},{flush:"post",deep:!0});let g=null;const y=()=>{g!=null&&a.set(g,b2(n.subTree))};return ht(y),As(y),Tn(()=>{a.forEach(m=>{const{subTree:b,suspense:_}=n,x=b2(b);if(m.type===x.type&&m.key===x.key){m2(x);const w=x.component.da;w&&Hr(w,_);return}h(m)})}),()=>{if(g=null,!e.default)return null;const m=e.default(),b=m[0];if(m.length>1)return o=null,m;if(!Ln(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return o=null,b;let _=b2(b);const x=_.type,w=cM(Ih(_)?_.type.__asyncResolved||{}:x),{include:C,exclude:T,max:k}=t;if(C&&(!w||!dg(C,w))||T&&w&&dg(T,w))return o=_,b;const E=_.key==null?x:_.key,M=a.get(E);return _.el&&(_=xs(_),b.shapeFlag&128&&(b.ssContent=_)),g=E,M?(_.el=M.el,_.component=M.component,_.transition&&rv(_,_.transition),_.shapeFlag|=512,i.delete(E),i.add(E)):(i.add(E),k&&i.size>parseInt(k,10)&&v(i.values().next().value)),_.shapeFlag|=256,o=_,rU(b.type)?b:_}}},Qoe=Zoe;function dg(t,e){return He(t)?t.some(n=>dg(n,e)):ft(t)?t.split(",").includes(e):jie(t)?t.test(e):!1}function Joe(t,e){uU(t,"a",e)}function lU(t,e){uU(t,"da",e)}function uU(t,e,n=Ir){const r=t.__wdc||(t.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(Ew(e,r,n),n){let a=n.parent;for(;a&&a.parent;)Tw(a.parent.vnode)&&ese(r,e,n,a),a=a.parent}}function ese(t,e,n,r){const a=Ew(e,t,r,!0);rc(()=>{VR(r[e],a)},n)}function m2(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function b2(t){return t.shapeFlag&128?t.ssContent:t}function Ew(t,e,n=Ir,r=!1){if(n){const a=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;zv(),av(n);const s=Vi(e,n,t,o);return $f(),Gv(),s});return r?a.unshift(i):a.push(i),i}}const Ml=t=>(e,n=Ir)=>(!S0||t==="sp")&&Ew(t,(...r)=>e(...r),n),Mw=Ml("bm"),ht=Ml("m"),cU=Ml("bu"),As=Ml("u"),Tn=Ml("bum"),rc=Ml("um"),tse=Ml("sp"),nse=Ml("rtg"),rse=Ml("rtc");function ase(t,e=Ir){Ew("ec",t,e)}const QR="components",ise="directives";function Ge(t,e){return JR(QR,t,!0,e)||t}const fU=Symbol.for("v-ndc");function Et(t){return ft(t)?JR(QR,t,!1)||t:t||fU}function m0(t){return JR(ise,t)}function JR(t,e,n=!0,r=!1){const a=Kr||Ir;if(a){const i=a.type;if(t===QR){const s=cM(i,!1);if(s&&(s===e||s===Gi(e)||s===Ay(Gi(e))))return i}const o=g$(a[t]||i[t],e)||g$(a.appContext[t],e);return!o&&r?i:o}}function g$(t,e){return t&&(t[e]||t[Gi(e)]||t[Ay(Gi(e))])}function Pt(t,e,n,r){let a;const i=n&&n[r];if(He(t)||ft(t)){a=new Array(t.length);for(let o=0,s=t.length;oe(o,s,void 0,i&&i[s]));else{const o=Object.keys(t);a=new Array(o.length);for(let s=0,l=o.length;s{const i=r.fn(...a);return i&&(i.key=r.key),i}:r.fn)}return t}function Te(t,e,n={},r,a){if(Kr.isCE||Kr.parent&&Ih(Kr.parent)&&Kr.parent.isCE)return e!=="default"&&(n.name=e),H("slot",n,r&&r());let i=t[e];i&&i._c&&(i._d=!1),B();const o=i&&dU(i(n)),s=de(Ze,{key:n.key||o&&o.key||`_${e}`},o||(r?r():[]),o&&t._===1?64:-2);return!a&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function dU(t){return t.some(e=>Ln(e)?!(e.type===Ma||e.type===Ze&&!dU(e.children)):!0)?t:null}function ose(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:Sb(r)]=t[r];return n}const aM=t=>t?CU(t)?Rw(t)||t.proxy:aM(t.parent):null,Lg=fr(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>aM(t.parent),$root:t=>aM(t.root),$emit:t=>t.emit,$options:t=>eL(t),$forceUpdate:t=>t.f||(t.f=()=>XR(t.update)),$nextTick:t=>t.n||(t.n=Xe.bind(t.proxy)),$watch:t=>Yoe.bind(t)}),S2=(t,e)=>t!==jn&&!t.__isScriptSetup&&Gt(t,e),sse={get({_:t},e){const{ctx:n,setupState:r,data:a,props:i,accessCache:o,type:s,appContext:l}=t;let u;if(e[0]!=="$"){const h=o[e];if(h!==void 0)switch(h){case 1:return r[e];case 2:return a[e];case 4:return n[e];case 3:return i[e]}else{if(S2(r,e))return o[e]=1,r[e];if(a!==jn&&Gt(a,e))return o[e]=2,a[e];if((u=t.propsOptions[0])&&Gt(u,e))return o[e]=3,i[e];if(n!==jn&&Gt(n,e))return o[e]=4,n[e];iM&&(o[e]=0)}}const c=Lg[e];let f,d;if(c)return e==="$attrs"&&ei(t,"get",e),c(t);if((f=s.__cssModules)&&(f=f[e]))return f;if(n!==jn&&Gt(n,e))return o[e]=4,n[e];if(d=l.config.globalProperties,Gt(d,e))return d[e]},set({_:t},e,n){const{data:r,setupState:a,ctx:i}=t;return S2(a,e)?(a[e]=n,!0):r!==jn&&Gt(r,e)?(r[e]=n,!0):Gt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(i[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:a,propsOptions:i}},o){let s;return!!n[o]||t!==jn&&Gt(t,o)||S2(e,o)||(s=i[0])&&Gt(s,o)||Gt(r,o)||Gt(Lg,o)||Gt(a.config.globalProperties,o)},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Gt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function ea(){return hU().slots}function fd(){return hU().attrs}function hU(){const t=wt();return t.setupContext||(t.setupContext=EU(t))}function y$(t){return He(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let iM=!0;function lse(t){const e=eL(t),n=t.proxy,r=t.ctx;iM=!1,e.beforeCreate&&m$(e.beforeCreate,t,"bc");const{data:a,computed:i,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:h,updated:p,activated:v,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:b,unmounted:_,render:x,renderTracked:w,renderTriggered:C,errorCaptured:T,serverPrefetch:k,expose:E,inheritAttrs:M,components:D,directives:R,filters:A}=e;if(u&&use(u,r,null),o)for(const N in o){const I=o[N];ut(I)&&(r[N]=I.bind(n))}if(a){const N=a.call(n,n);Lt(N)&&(t.data=Qt(N))}if(iM=!0,i)for(const N in i){const I=i[N],L=ut(I)?I.bind(n,n):ut(I.get)?I.get.bind(n,n):cn,$=!ut(I)&&ut(I.set)?I.set.bind(n):cn,U=O({get:L,set:$});Object.defineProperty(r,N,{enumerable:!0,configurable:!0,get:()=>U.value,set:j=>U.value=j})}if(s)for(const N in s)vU(s[N],r,n,N);if(l){const N=ut(l)?l.call(n):l;Reflect.ownKeys(N).forEach(I=>{Nt(I,N[I])})}c&&m$(c,t,"c");function P(N,I){He(I)?I.forEach(L=>N(L.bind(n))):I&&N(I.bind(n))}if(P(Mw,f),P(ht,d),P(cU,h),P(As,p),P(Joe,v),P(lU,g),P(ase,T),P(rse,w),P(nse,C),P(Tn,m),P(rc,_),P(tse,k),He(E))if(E.length){const N=t.exposed||(t.exposed={});E.forEach(I=>{Object.defineProperty(N,I,{get:()=>n[I],set:L=>n[I]=L})})}else t.exposed||(t.exposed={});x&&t.render===cn&&(t.render=x),M!=null&&(t.inheritAttrs=M),D&&(t.components=D),R&&(t.directives=R)}function use(t,e,n=cn){He(t)&&(t=oM(t));for(const r in t){const a=t[r];let i;Lt(a)?"default"in a?i=We(a.from||r,a.default,!0):i=We(a.from||r):i=We(a),pt(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function m$(t,e,n){Vi(He(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function vU(t,e,n,r){const a=r.includes(".")?aU(n,r):()=>n[r];if(ft(t)){const i=e[t];ut(i)&&Ee(a,i)}else if(ut(t))Ee(a,t.bind(n));else if(Lt(t))if(He(t))t.forEach(i=>vU(i,e,n,r));else{const i=ut(t.handler)?t.handler.bind(n):e[t.handler];ut(i)&&Ee(a,i,t)}}function eL(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:a,optionsCache:i,config:{optionMergeStrategies:o}}=t.appContext,s=i.get(e);let l;return s?l=s:!a.length&&!n&&!r?l=e:(l={},a.length&&a.forEach(u=>RS(l,u,o,!0)),RS(l,e,o)),Lt(e)&&i.set(e,l),l}function RS(t,e,n,r=!1){const{mixins:a,extends:i}=e;i&&RS(t,i,n,!0),a&&a.forEach(o=>RS(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const s=cse[o]||n&&n[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const cse={data:b$,props:S$,emits:S$,methods:hg,computed:hg,beforeCreate:Sa,created:Sa,beforeMount:Sa,mounted:Sa,beforeUpdate:Sa,updated:Sa,beforeDestroy:Sa,beforeUnmount:Sa,destroyed:Sa,unmounted:Sa,activated:Sa,deactivated:Sa,errorCaptured:Sa,serverPrefetch:Sa,components:hg,directives:hg,watch:dse,provide:b$,inject:fse};function b$(t,e){return e?t?function(){return fr(ut(t)?t.call(this,this):t,ut(e)?e.call(this,this):e)}:e:t}function fse(t,e){return hg(oM(t),oM(e))}function oM(t){if(He(t)){const e={};for(let n=0;n1)return n&&ut(e)?e.call(r&&r.proxy):e}}function pse(t,e,n,r=!1){const a={},i={};ES(i,kw,1),t.propsDefaults=Object.create(null),gU(t,e,a,i);for(const o in t.propsOptions[0])o in a||(a[o]=void 0);n?t.props=r?a:WH(a):t.type.props?t.props=a:t.props=i,t.attrs=i}function gse(t,e,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=t,s=on(a),[l]=t.propsOptions;let u=!1;if((r||o>0)&&!(o&16)){if(o&8){const c=t.vnode.dynamicProps;for(let f=0;f{l=!0;const[d,h]=yU(f,e,!0);fr(o,d),h&&s.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!i&&!l)return Lt(t)&&r.set(t,Lh),Lh;if(He(i))for(let c=0;c-1,h[1]=v<0||p-1||Gt(h,"default"))&&s.push(f)}}}const u=[o,s];return Lt(t)&&r.set(t,u),u}function _$(t){return t[0]!=="$"}function w$(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function x$(t,e){return w$(t)===w$(e)}function C$(t,e){return He(e)?e.findIndex(n=>x$(n,t)):ut(e)&&x$(e,t)?0:-1}const mU=t=>t[0]==="_"||t==="$stable",tL=t=>He(t)?t.map(is):[is(t)],yse=(t,e,n)=>{if(e._n)return e;const r=Z((...a)=>tL(e(...a)),n);return r._c=!1,r},bU=(t,e,n)=>{const r=t._ctx;for(const a in t){if(mU(a))continue;const i=t[a];if(ut(i))e[a]=yse(a,i,r);else if(i!=null){const o=tL(i);e[a]=()=>o}}},SU=(t,e)=>{const n=tL(e);t.slots.default=()=>n},mse=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=on(e),ES(e,"_",n)):bU(e,t.slots={})}else t.slots={},e&&SU(t,e);ES(t.slots,kw,1)},bse=(t,e,n)=>{const{vnode:r,slots:a}=t;let i=!0,o=jn;if(r.shapeFlag&32){const s=e._;s?n&&s===1?i=!1:(fr(a,e),!n&&s===1&&delete a._):(i=!e.$stable,bU(e,a)),o=e}else e&&(SU(t,e),o={default:1});if(i)for(const s in a)!mU(s)&&!(s in o)&&delete a[s]};function lM(t,e,n,r,a=!1){if(He(t)){t.forEach((d,h)=>lM(d,e&&(He(e)?e[h]:e),n,r,a));return}if(Ih(r)&&!a)return;const i=r.shapeFlag&4?Rw(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=t,u=e&&e.r,c=s.refs===jn?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(ft(u)?(c[u]=null,Gt(f,u)&&(f[u]=null)):pt(u)&&(u.value=null)),ut(l))Mu(l,s,12,[o,c]);else{const d=ft(l),h=pt(l);if(d||h){const p=()=>{if(t.f){const v=d?Gt(f,l)?f[l]:c[l]:l.value;a?He(v)&&VR(v,i):He(v)?v.includes(i)||v.push(i):d?(c[l]=[i],Gt(f,l)&&(f[l]=c[l])):(l.value=[i],t.k&&(c[t.k]=l.value))}else d?(c[l]=o,Gt(f,l)&&(f[l]=o)):h&&(l.value=o,t.k&&(c[t.k]=o))};o?(p.id=-1,Hr(p,n)):p()}}}const Hr=Koe;function Sse(t){return _se(t)}function _se(t,e){const n=JE();n.__VUE__=!0;const{insert:r,remove:a,patchProp:i,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:h=cn,insertStaticContent:p}=t,v=(K,ee,se,ye=null,we=null,be=null,Me=!1,Se=null,xe=!!ee.dynamicChildren)=>{if(K===ee)return;K&&!fu(K,ee)&&(ye=ne(K),j(K,we,be,!0),K=null),ee.patchFlag===-2&&(xe=!1,ee.dynamicChildren=null);const{type:ke,ref:ge,shapeFlag:Ve}=ee;switch(ke){case Uv:g(K,ee,se,ye);break;case Ma:y(K,ee,se,ye);break;case _2:K==null&&m(ee,se,ye,Me);break;case Ze:D(K,ee,se,ye,we,be,Me,Se,xe);break;default:Ve&1?x(K,ee,se,ye,we,be,Me,Se,xe):Ve&6?R(K,ee,se,ye,we,be,Me,Se,xe):(Ve&64||Ve&128)&&ke.process(K,ee,se,ye,we,be,Me,Se,xe,he)}ge!=null&&we&&lM(ge,K&&K.ref,be,ee||K,!ee)},g=(K,ee,se,ye)=>{if(K==null)r(ee.el=s(ee.children),se,ye);else{const we=ee.el=K.el;ee.children!==K.children&&u(we,ee.children)}},y=(K,ee,se,ye)=>{K==null?r(ee.el=l(ee.children||""),se,ye):ee.el=K.el},m=(K,ee,se,ye)=>{[K.el,K.anchor]=p(K.children,ee,se,ye,K.el,K.anchor)},b=({el:K,anchor:ee},se,ye)=>{let we;for(;K&&K!==ee;)we=d(K),r(K,se,ye),K=we;r(ee,se,ye)},_=({el:K,anchor:ee})=>{let se;for(;K&&K!==ee;)se=d(K),a(K),K=se;a(ee)},x=(K,ee,se,ye,we,be,Me,Se,xe)=>{Me=Me||ee.type==="svg",K==null?w(ee,se,ye,we,be,Me,Se,xe):k(K,ee,we,be,Me,Se,xe)},w=(K,ee,se,ye,we,be,Me,Se)=>{let xe,ke;const{type:ge,props:Ve,shapeFlag:Ke,transition:Le,dirs:Ue}=K;if(xe=K.el=o(K.type,be,Ve&&Ve.is,Ve),Ke&8?c(xe,K.children):Ke&16&&T(K.children,xe,null,ye,we,be&&ge!=="foreignObject",Me,Se),Ue&&gc(K,null,ye,"created"),C(xe,K,K.scopeId,Me,ye),Ve){for(const bt in Ve)bt!=="value"&&!bb(bt)&&i(xe,bt,null,Ve[bt],be,K.children,ye,we,re);"value"in Ve&&i(xe,"value",null,Ve.value),(ke=Ve.onVnodeBeforeMount)&&Ti(ke,ye,K)}Ue&&gc(K,null,ye,"beforeMount");const st=(!we||we&&!we.pendingBranch)&&Le&&!Le.persisted;st&&Le.beforeEnter(xe),r(xe,ee,se),((ke=Ve&&Ve.onVnodeMounted)||st||Ue)&&Hr(()=>{ke&&Ti(ke,ye,K),st&&Le.enter(xe),Ue&&gc(K,null,ye,"mounted")},we)},C=(K,ee,se,ye,we)=>{if(se&&h(K,se),ye)for(let be=0;be{for(let ke=xe;ke{const Se=ee.el=K.el;let{patchFlag:xe,dynamicChildren:ke,dirs:ge}=ee;xe|=K.patchFlag&16;const Ve=K.props||jn,Ke=ee.props||jn;let Le;se&&yc(se,!1),(Le=Ke.onVnodeBeforeUpdate)&&Ti(Le,se,ee,K),ge&&gc(ee,K,se,"beforeUpdate"),se&&yc(se,!0);const Ue=we&&ee.type!=="foreignObject";if(ke?E(K.dynamicChildren,ke,Se,se,ye,Ue,be):Me||I(K,ee,Se,null,se,ye,Ue,be,!1),xe>0){if(xe&16)M(Se,ee,Ve,Ke,se,ye,we);else if(xe&2&&Ve.class!==Ke.class&&i(Se,"class",null,Ke.class,we),xe&4&&i(Se,"style",Ve.style,Ke.style,we),xe&8){const st=ee.dynamicProps;for(let bt=0;bt{Le&&Ti(Le,se,ee,K),ge&&gc(ee,K,se,"updated")},ye)},E=(K,ee,se,ye,we,be,Me)=>{for(let Se=0;Se{if(se!==ye){if(se!==jn)for(const Se in se)!bb(Se)&&!(Se in ye)&&i(K,Se,se[Se],null,Me,ee.children,we,be,re);for(const Se in ye){if(bb(Se))continue;const xe=ye[Se],ke=se[Se];xe!==ke&&Se!=="value"&&i(K,Se,ke,xe,Me,ee.children,we,be,re)}"value"in ye&&i(K,"value",se.value,ye.value)}},D=(K,ee,se,ye,we,be,Me,Se,xe)=>{const ke=ee.el=K?K.el:s(""),ge=ee.anchor=K?K.anchor:s("");let{patchFlag:Ve,dynamicChildren:Ke,slotScopeIds:Le}=ee;Le&&(Se=Se?Se.concat(Le):Le),K==null?(r(ke,se,ye),r(ge,se,ye),T(ee.children,se,ge,we,be,Me,Se,xe)):Ve>0&&Ve&64&&Ke&&K.dynamicChildren?(E(K.dynamicChildren,Ke,se,we,be,Me,Se),(ee.key!=null||we&&ee===we.subTree)&&nL(K,ee,!0)):I(K,ee,se,ge,we,be,Me,Se,xe)},R=(K,ee,se,ye,we,be,Me,Se,xe)=>{ee.slotScopeIds=Se,K==null?ee.shapeFlag&512?we.ctx.activate(ee,se,ye,Me,xe):A(ee,se,ye,we,be,Me,xe):V(K,ee,xe)},A=(K,ee,se,ye,we,be,Me)=>{const Se=K.component=Rse(K,ye,we);if(Tw(K)&&(Se.ctx.renderer=he),Lse(Se),Se.asyncDep){if(we&&we.registerDep(Se,P),!K.el){const xe=Se.subTree=H(Ma);y(null,xe,ee,se)}return}P(Se,K,ee,se,we,be,Me)},V=(K,ee,se)=>{const ye=ee.component=K.component;if(Woe(K,ee,se))if(ye.asyncDep&&!ye.asyncResolved){N(ye,ee,se);return}else ye.next=ee,Poe(ye.update),ye.update();else ee.el=K.el,ye.vnode=ee},P=(K,ee,se,ye,we,be,Me)=>{const Se=()=>{if(K.isMounted){let{next:ge,bu:Ve,u:Ke,parent:Le,vnode:Ue}=K,st=ge,bt;yc(K,!1),ge?(ge.el=Ue.el,N(K,ge,Me)):ge=Ue,Ve&&Oh(Ve),(bt=ge.props&&ge.props.onVnodeBeforeUpdate)&&Ti(bt,Le,ge,Ue),yc(K,!0);const At=g2(K),rt=K.subTree;K.subTree=At,v(rt,At,f(rt.el),ne(rt),K,we,be),ge.el=At.el,st===null&&joe(K,At.el),Ke&&Hr(Ke,we),(bt=ge.props&&ge.props.onVnodeUpdated)&&Hr(()=>Ti(bt,Le,ge,Ue),we)}else{let ge;const{el:Ve,props:Ke}=ee,{bm:Le,m:Ue,parent:st}=K,bt=Ih(ee);if(yc(K,!1),Le&&Oh(Le),!bt&&(ge=Ke&&Ke.onVnodeBeforeMount)&&Ti(ge,st,ee),yc(K,!0),Ve&&X){const At=()=>{K.subTree=g2(K),X(Ve,K.subTree,K,we,null)};bt?ee.type.__asyncLoader().then(()=>!K.isUnmounted&&At()):At()}else{const At=K.subTree=g2(K);v(null,At,se,ye,K,we,be),ee.el=At.el}if(Ue&&Hr(Ue,we),!bt&&(ge=Ke&&Ke.onVnodeMounted)){const At=ee;Hr(()=>Ti(ge,st,At),we)}(ee.shapeFlag&256||st&&Ih(st.vnode)&&st.vnode.shapeFlag&256)&&K.a&&Hr(K.a,we),K.isMounted=!0,ee=se=ye=null}},xe=K.effect=new zR(Se,()=>XR(ke),K.scope),ke=K.update=()=>xe.run();ke.id=K.uid,yc(K,!0),ke()},N=(K,ee,se)=>{ee.component=K;const ye=K.vnode.props;K.vnode=ee,K.next=null,gse(K,ee.props,ye,se),bse(K,ee.children,se),zv(),h$(),Gv()},I=(K,ee,se,ye,we,be,Me,Se,xe=!1)=>{const ke=K&&K.children,ge=K?K.shapeFlag:0,Ve=ee.children,{patchFlag:Ke,shapeFlag:Le}=ee;if(Ke>0){if(Ke&128){$(ke,Ve,se,ye,we,be,Me,Se,xe);return}else if(Ke&256){L(ke,Ve,se,ye,we,be,Me,Se,xe);return}}Le&8?(ge&16&&re(ke,we,be),Ve!==ke&&c(se,Ve)):ge&16?Le&16?$(ke,Ve,se,ye,we,be,Me,Se,xe):re(ke,we,be,!0):(ge&8&&c(se,""),Le&16&&T(Ve,se,ye,we,be,Me,Se,xe))},L=(K,ee,se,ye,we,be,Me,Se,xe)=>{K=K||Lh,ee=ee||Lh;const ke=K.length,ge=ee.length,Ve=Math.min(ke,ge);let Ke;for(Ke=0;Kege?re(K,we,be,!0,!1,Ve):T(ee,se,ye,we,be,Me,Se,xe,Ve)},$=(K,ee,se,ye,we,be,Me,Se,xe)=>{let ke=0;const ge=ee.length;let Ve=K.length-1,Ke=ge-1;for(;ke<=Ve&&ke<=Ke;){const Le=K[ke],Ue=ee[ke]=xe?ou(ee[ke]):is(ee[ke]);if(fu(Le,Ue))v(Le,Ue,se,null,we,be,Me,Se,xe);else break;ke++}for(;ke<=Ve&&ke<=Ke;){const Le=K[Ve],Ue=ee[Ke]=xe?ou(ee[Ke]):is(ee[Ke]);if(fu(Le,Ue))v(Le,Ue,se,null,we,be,Me,Se,xe);else break;Ve--,Ke--}if(ke>Ve){if(ke<=Ke){const Le=Ke+1,Ue=LeKe)for(;ke<=Ve;)j(K[ke],we,be,!0),ke++;else{const Le=ke,Ue=ke,st=new Map;for(ke=Ue;ke<=Ke;ke++){const ae=ee[ke]=xe?ou(ee[ke]):is(ee[ke]);ae.key!=null&&st.set(ae.key,ke)}let bt,At=0;const rt=Ke-Ue+1;let _e=!1,ve=0;const ce=new Array(rt);for(ke=0;ke=rt){j(ae,we,be,!0);continue}let Fe;if(ae.key!=null)Fe=st.get(ae.key);else for(bt=Ue;bt<=Ke;bt++)if(ce[bt-Ue]===0&&fu(ae,ee[bt])){Fe=bt;break}Fe===void 0?j(ae,we,be,!0):(ce[Fe-Ue]=ke+1,Fe>=ve?ve=Fe:_e=!0,v(ae,ee[Fe],se,null,we,be,Me,Se,xe),At++)}const Re=_e?wse(ce):Lh;for(bt=Re.length-1,ke=rt-1;ke>=0;ke--){const ae=Ue+ke,Fe=ee[ae],dt=ae+1{const{el:be,type:Me,transition:Se,children:xe,shapeFlag:ke}=K;if(ke&6){U(K.component.subTree,ee,se,ye);return}if(ke&128){K.suspense.move(ee,se,ye);return}if(ke&64){Me.move(K,ee,se,he);return}if(Me===Ze){r(be,ee,se);for(let Ve=0;VeSe.enter(be),we);else{const{leave:Ve,delayLeave:Ke,afterLeave:Le}=Se,Ue=()=>r(be,ee,se),st=()=>{Ve(be,()=>{Ue(),Le&&Le()})};Ke?Ke(be,Ue,st):st()}else r(be,ee,se)},j=(K,ee,se,ye=!1,we=!1)=>{const{type:be,props:Me,ref:Se,children:xe,dynamicChildren:ke,shapeFlag:ge,patchFlag:Ve,dirs:Ke}=K;if(Se!=null&&lM(Se,null,se,K,!0),ge&256){ee.ctx.deactivate(K);return}const Le=ge&1&&Ke,Ue=!Ih(K);let st;if(Ue&&(st=Me&&Me.onVnodeBeforeUnmount)&&Ti(st,ee,K),ge&6)te(K.component,se,ye);else{if(ge&128){K.suspense.unmount(se,ye);return}Le&&gc(K,null,ee,"beforeUnmount"),ge&64?K.type.remove(K,ee,se,we,he,ye):ke&&(be!==Ze||Ve>0&&Ve&64)?re(ke,ee,se,!1,!0):(be===Ze&&Ve&384||!we&&ge&16)&&re(xe,ee,se),ye&&Y(K)}(Ue&&(st=Me&&Me.onVnodeUnmounted)||Le)&&Hr(()=>{st&&Ti(st,ee,K),Le&&gc(K,null,ee,"unmounted")},se)},Y=K=>{const{type:ee,el:se,anchor:ye,transition:we}=K;if(ee===Ze){oe(se,ye);return}if(ee===_2){_(K);return}const be=()=>{a(se),we&&!we.persisted&&we.afterLeave&&we.afterLeave()};if(K.shapeFlag&1&&we&&!we.persisted){const{leave:Me,delayLeave:Se}=we,xe=()=>Me(se,be);Se?Se(K.el,be,xe):xe()}else be()},oe=(K,ee)=>{let se;for(;K!==ee;)se=d(K),a(K),K=se;a(ee)},te=(K,ee,se)=>{const{bum:ye,scope:we,update:be,subTree:Me,um:Se}=K;ye&&Oh(ye),we.stop(),be&&(be.active=!1,j(Me,K,ee,se)),Se&&Hr(Se,ee),Hr(()=>{K.isUnmounted=!0},ee),ee&&ee.pendingBranch&&!ee.isUnmounted&&K.asyncDep&&!K.asyncResolved&&K.suspenseId===ee.pendingId&&(ee.deps--,ee.deps===0&&ee.resolve())},re=(K,ee,se,ye=!1,we=!1,be=0)=>{for(let Me=be;MeK.shapeFlag&6?ne(K.component.subTree):K.shapeFlag&128?K.suspense.next():d(K.anchor||K.el),J=(K,ee,se)=>{K==null?ee._vnode&&j(ee._vnode,null,null,!0):v(ee._vnode||null,K,ee,null,null,null,se),h$(),eU(),ee._vnode=K},he={p:v,um:j,m:U,r:Y,mt:A,mc:T,pc:I,pbc:E,n:ne,o:t};let ue,X;return e&&([ue,X]=e(he)),{render:J,hydrate:ue,createApp:vse(J,ue)}}function yc({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function nL(t,e,n=!1){const r=t.children,a=e.children;if(He(r)&&He(a))for(let i=0;i>1,t[n[s]]0&&(e[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=e[o];return n}const xse=t=>t.__isTeleport,Ag=t=>t&&(t.disabled||t.disabled===""),T$=t=>typeof SVGElement<"u"&&t instanceof SVGElement,uM=(t,e)=>{const n=t&&t.to;return ft(n)?e?e(n):null:n},Cse={__isTeleport:!0,process(t,e,n,r,a,i,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:p,createText:v,createComment:g}}=u,y=Ag(e.props);let{shapeFlag:m,children:b,dynamicChildren:_}=e;if(t==null){const x=e.el=v(""),w=e.anchor=v("");h(x,n,r),h(w,n,r);const C=e.target=uM(e.props,p),T=e.targetAnchor=v("");C&&(h(T,C),o=o||T$(C));const k=(E,M)=>{m&16&&c(b,E,M,a,i,o,s,l)};y?k(n,w):C&&k(C,T)}else{e.el=t.el;const x=e.anchor=t.anchor,w=e.target=t.target,C=e.targetAnchor=t.targetAnchor,T=Ag(t.props),k=T?n:w,E=T?x:C;if(o=o||T$(w),_?(d(t.dynamicChildren,_,k,a,i,o,s),nL(t,e,!0)):l||f(t,e,k,E,a,i,o,s,!1),y)T||Am(e,n,x,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const M=e.target=uM(e.props,p);M&&Am(e,M,null,u,0)}else T&&Am(e,w,C,u,1)}_U(e)},remove(t,e,n,r,{um:a,o:{remove:i}},o){const{shapeFlag:s,children:l,anchor:u,targetAnchor:c,target:f,props:d}=t;if(f&&i(c),(o||!Ag(d))&&(i(u),s&16))for(let h=0;h0?_o||Lh:null,Ese(),b0>0&&_o&&_o.push(t),t}function q(t,e,n,r,a,i){return wU(G(t,e,n,r,a,i,!0))}function de(t,e,n,r,a){return wU(H(t,e,n,r,a,!0))}function Ln(t){return t?t.__v_isVNode===!0:!1}function fu(t,e){return t.type===e.type&&t.key===e.key}const kw="__vInternal",xU=({key:t})=>t??null,_b=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ft(t)||pt(t)||ut(t)?{i:Kr,r:t,k:e,f:!!n}:t:null);function G(t,e=null,n=null,r=0,a=null,i=t===Ze?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&xU(e),ref:e&&_b(e),scopeId:ww,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Kr};return s?(rL(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=ft(n)?8:16),b0>0&&!o&&_o&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&_o.push(l),l}const H=Mse;function Mse(t,e=null,n=null,r=0,a=null,i=!1){if((!t||t===fU)&&(t=Ma),Ln(t)){const s=xs(t,e,!0);return n&&rL(s,n),b0>0&&!i&&_o&&(s.shapeFlag&6?_o[_o.indexOf(t)]=s:_o.push(s)),s.patchFlag|=-2,s}if(Nse(t)&&(t=t.__vccOpts),e){e=Dw(e);let{class:s,style:l}=e;s&&!ft(s)&&(e.class=F(s)),Lt(l)&&(jH(l)&&!He(l)&&(l=fr({},l)),e.style=qe(l))}const o=ft(t)?1:rU(t)?128:xse(t)?64:Lt(t)?4:ut(t)?2:0;return G(t,e,n,r,a,o,i,!0)}function Dw(t){return t?jH(t)||kw in t?fr({},t):t:null}function xs(t,e,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=t,s=e?kt(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&xU(s),ref:e&&e.ref?n&&a?He(a)?a.concat(_b(e)):[a,_b(e)]:_b(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ze?i===-1?16:i|16:i,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&xs(t.ssContent),ssFallback:t.ssFallback&&xs(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function Qe(t=" ",e=0){return H(Uv,null,t,e)}function le(t="",e=!1){return e?(B(),de(Ma,null,t)):H(Ma,null,t)}function is(t){return t==null||typeof t=="boolean"?H(Ma):He(t)?H(Ze,null,t.slice()):typeof t=="object"?ou(t):H(Uv,null,String(t))}function ou(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:xs(t)}function rL(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(He(e))n=16;else if(typeof e=="object")if(r&65){const a=e.default;a&&(a._c&&(a._d=!1),rL(t,a()),a._c&&(a._d=!0));return}else{n=32;const a=e._;!a&&!(kw in e)?e._ctx=Kr:a===3&&Kr&&(Kr.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ut(e)?(e={default:e,_ctx:Kr},n=32):(e=String(e),r&64?(n=16,e=[Qe(e)]):n=8);t.children=e,t.shapeFlag|=n}function kt(...t){const e={};for(let n=0;nIr||Kr;let aL,Ed,M$="__VUE_INSTANCE_SETTERS__";(Ed=JE()[M$])||(Ed=JE()[M$]=[]),Ed.push(t=>Ir=t),aL=t=>{Ed.length>1?Ed.forEach(e=>e(t)):Ed[0](t)};const av=t=>{aL(t),t.scope.on()},$f=()=>{Ir&&Ir.scope.off(),aL(null)};function CU(t){return t.vnode.shapeFlag&4}let S0=!1;function Lse(t,e=!1){S0=e;const{props:n,children:r}=t.vnode,a=CU(t);pse(t,n,a,e),mse(t,r);const i=a?Ase(t,e):void 0;return S0=!1,i}function Ase(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=Eu(new Proxy(t.ctx,sse));const{setup:r}=n;if(r){const a=t.setupContext=r.length>1?EU(t):null;av(t),zv();const i=Mu(r,t,0,[t.props,a]);if(Gv(),$f(),d0(i)){if(i.then($f,$f),e)return i.then(o=>{k$(t,o,e)}).catch(o=>{Sw(o,t,0)});t.asyncDep=i}else k$(t,i,e)}else TU(t,e)}function k$(t,e,n){ut(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Lt(e)&&(t.setupState=XH(e)),TU(t,n)}let D$;function TU(t,e,n){const r=t.type;if(!t.render){if(!e&&D$&&!r.render){const a=r.template||eL(t).template;if(a){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:l}=r,u=fr(fr({isCustomElement:i,delimiters:s},o),l);r.render=D$(a,u)}}t.render=r.render||cn}av(t),zv(),lse(t),Gv(),$f()}function Ose(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return ei(t,"get","$attrs"),e[n]}}))}function EU(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return Ose(t)},slots:t.slots,emit:t.emit,expose:e}}function Rw(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(XH(Eu(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Lg)return Lg[n](t)},has(e,n){return n in e||n in Lg}}))}function cM(t,e=!0){return ut(t)?t.displayName||t.name:t.name||e&&t.__name}function Nse(t){return ut(t)&&"__vccOpts"in t}const O=(t,e)=>ZH(t,e,S0);function tt(t,e,n){const r=arguments.length;return r===2?Lt(e)&&!He(e)?Ln(e)?H(t,null,[e]):H(t,e):H(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ln(n)&&(n=[n]),H(t,e,n))}const $se=Symbol.for("v-scx"),Ise=()=>We($se),Bse="3.3.4",Vse="http://www.w3.org/2000/svg",uf=typeof document<"u"?document:null,R$=uf&&uf.createElement("template"),Pse={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const a=e?uf.createElementNS(Vse,t):uf.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:t=>uf.createTextNode(t),createComment:t=>uf.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>uf.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,a,i){const o=n?n.previousSibling:e.lastChild;if(a&&(a===i||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),n),!(a===i||!(a=a.nextSibling)););else{R$.innerHTML=r?`${t}`:t;const s=R$.content;if(r){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}e.insertBefore(s,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}};function Fse(t,e,n){const r=t._vtc;r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}function zse(t,e,n){const r=t.style,a=ft(n);if(n&&!a){if(e&&!ft(e))for(const i in e)n[i]==null&&fM(r,i,"");for(const i in n)fM(r,i,n[i])}else{const i=r.display;a?e!==n&&(r.cssText=n):e&&t.removeAttribute("style"),"_vod"in t&&(r.display=i)}}const L$=/\s*!important$/;function fM(t,e,n){if(He(n))n.forEach(r=>fM(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Gse(t,e);L$.test(n)?t.setProperty(nc(r),n.replace(L$,""),"important"):t[r]=n}}const A$=["Webkit","Moz","ms"],w2={};function Gse(t,e){const n=w2[e];if(n)return n;let r=Gi(e);if(r!=="filter"&&r in t)return w2[e]=r;r=Ay(r);for(let a=0;ax2||(Yse.then(()=>x2=0),x2=Date.now());function qse(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Vi(Zse(r,n.value),e,5,[r])};return n.value=t,n.attached=Xse(),n}function Zse(t,e){if(He(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>a=>!a._stopped&&r&&r(a))}else return e}const $$=/^on[a-z]/,Qse=(t,e,n,r,a=!1,i,o,s,l)=>{e==="class"?Fse(t,r,a):e==="style"?zse(t,n,r):gw(e)?BR(e)||jse(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Jse(t,e,r,a))?Use(t,e,r,i,o,s,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Hse(t,e,r,a))};function Jse(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&$$.test(e)&&ut(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||$$.test(e)&&ft(n)?!1:e in t}const $l="transition",wp="animation",Qn=(t,{slots:e})=>tt(qoe,kU(t),e);Qn.displayName="Transition";const MU={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},ele=Qn.props=fr({},oU,MU),mc=(t,e=[])=>{He(t)?t.forEach(n=>n(...e)):t&&t(...e)},I$=t=>t?He(t)?t.some(e=>e.length>1):t.length>1:!1;function kU(t){const e={};for(const D in t)D in MU||(e[D]=t[D]);if(t.css===!1)return e;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,p=tle(a),v=p&&p[0],g=p&&p[1],{onBeforeEnter:y,onEnter:m,onEnterCancelled:b,onLeave:_,onLeaveCancelled:x,onBeforeAppear:w=y,onAppear:C=m,onAppearCancelled:T=b}=e,k=(D,R,A)=>{Ql(D,R?c:s),Ql(D,R?u:o),A&&A()},E=(D,R)=>{D._isLeaving=!1,Ql(D,f),Ql(D,h),Ql(D,d),R&&R()},M=D=>(R,A)=>{const V=D?C:m,P=()=>k(R,D,A);mc(V,[R,P]),B$(()=>{Ql(R,D?l:i),js(R,D?c:s),I$(V)||V$(R,r,v,P)})};return fr(e,{onBeforeEnter(D){mc(y,[D]),js(D,i),js(D,o)},onBeforeAppear(D){mc(w,[D]),js(D,l),js(D,u)},onEnter:M(!1),onAppear:M(!0),onLeave(D,R){D._isLeaving=!0;const A=()=>E(D,R);js(D,f),RU(),js(D,d),B$(()=>{D._isLeaving&&(Ql(D,f),js(D,h),I$(_)||V$(D,r,g,A))}),mc(_,[D,A])},onEnterCancelled(D){k(D,!1),mc(b,[D])},onAppearCancelled(D){k(D,!0),mc(T,[D])},onLeaveCancelled(D){E(D),mc(x,[D])}})}function tle(t){if(t==null)return null;if(Lt(t))return[C2(t.enter),C2(t.leave)];{const e=C2(t);return[e,e]}}function C2(t){return Xie(t)}function js(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function Ql(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const{_vtc:n}=t;n&&(n.delete(e),n.size||(t._vtc=void 0))}function B$(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let nle=0;function V$(t,e,n,r){const a=t._endId=++nle,i=()=>{a===t._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=DU(t,e);if(!o)return r();const u=o+"end";let c=0;const f=()=>{t.removeEventListener(u,d),i()},d=h=>{h.target===t&&++c>=l&&f()};setTimeout(()=>{c(n[p]||"").split(", "),a=r(`${$l}Delay`),i=r(`${$l}Duration`),o=P$(a,i),s=r(`${wp}Delay`),l=r(`${wp}Duration`),u=P$(s,l);let c=null,f=0,d=0;e===$l?o>0&&(c=$l,f=o,d=i.length):e===wp?u>0&&(c=wp,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?$l:wp:null,d=c?c===$l?i.length:l.length:0);const h=c===$l&&/\b(transform|all)(,|$)/.test(r(`${$l}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function P$(t,e){for(;t.lengthF$(n)+F$(t[r])))}function F$(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function RU(){return document.body.offsetHeight}const LU=new WeakMap,AU=new WeakMap,OU={name:"TransitionGroup",props:fr({},ele,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=wt(),r=iU();let a,i;return As(()=>{if(!a.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!sle(a[0].el,n.vnode.el,o))return;a.forEach(ale),a.forEach(ile);const s=a.filter(ole);RU(),s.forEach(l=>{const u=l.el,c=u.style;js(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const f=u._moveCb=d=>{d&&d.target!==u||(!d||/transform$/.test(d.propertyName))&&(u.removeEventListener("transitionend",f),u._moveCb=null,Ql(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=on(t),s=kU(o);let l=o.tag||Ze;a=i,i=e.default?ZR(e.default()):[];for(let u=0;udelete t.mode;OU.props;const NU=OU;function ale(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function ile(t){AU.set(t,t.el.getBoundingClientRect())}function ole(t){const e=LU.get(t),n=AU.get(t),r=e.left-n.left,a=e.top-n.top;if(r||a){const i=t.el.style;return i.transform=i.webkitTransform=`translate(${r}px,${a}px)`,i.transitionDuration="0s",t}}function sle(t,e,n){const r=t.cloneNode();t._vtc&&t._vtc.forEach(o=>{o.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const a=e.nodeType===1?e:e.parentNode;a.appendChild(r);const{hasTransform:i}=DU(r);return a.removeChild(r),i}const iv=t=>{const e=t.props["onUpdate:modelValue"]||!1;return He(e)?n=>Oh(e,n):e};function lle(t){t.target.composing=!0}function z$(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const iL={created(t,{modifiers:{lazy:e,trim:n,number:r}},a){t._assign=iv(a);const i=r||a.props&&a.props.type==="number";du(t,e?"change":"input",o=>{if(o.target.composing)return;let s=t.value;n&&(s=s.trim()),i&&(s=QE(s)),t._assign(s)}),n&&du(t,"change",()=>{t.value=t.value.trim()}),e||(du(t,"compositionstart",lle),du(t,"compositionend",z$),du(t,"change",z$))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:a}},i){if(t._assign=iv(i),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(a||t.type==="number")&&QE(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},AS={deep:!0,created(t,e,n){t._assign=iv(n),du(t,"change",()=>{const r=t._modelValue,a=IU(t),i=t.checked,o=t._assign;if(He(r)){const s=DH(r,a),l=s!==-1;if(i&&!l)o(r.concat(a));else if(!i&&l){const u=[...r];u.splice(s,1),o(u)}}else if(yw(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(BU(t,i))})},mounted:G$,beforeUpdate(t,e,n){t._assign=iv(n),G$(t,e,n)}};function G$(t,{value:e,oldValue:n},r){t._modelValue=e,He(e)?t.checked=DH(e,r.props.value)>-1:yw(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=tv(e,BU(t,!0)))}const $U={created(t,{value:e},n){t.checked=tv(e,n.props.value),t._assign=iv(n),du(t,"change",()=>{t._assign(IU(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t._assign=iv(r),e!==n&&(t.checked=tv(e,r.props.value))}};function IU(t){return"_value"in t?t._value:t.value}function BU(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const ule=["ctrl","shift","alt","meta"],cle={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>ule.some(n=>t[`${n}Key`]&&!e.includes(n))},it=(t,e)=>(n,...r)=>{for(let a=0;an=>{if(!("key"in n))return;const r=nc(n.key);if(e.some(a=>a===r||fle[a]===r))return t(n)},qt={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):xp(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:r}){!e!=!n&&(r?e?(r.beforeEnter(t),xp(t,!0),r.enter(t)):r.leave(t,()=>{xp(t,!1)}):xp(t,e))},beforeUnmount(t,{value:e}){xp(t,e)}};function xp(t,e){t.style.display=e?t._vod:"none"}const dle=fr({patchProp:Qse},Pse);let H$;function VU(){return H$||(H$=Sse(dle))}const ov=(...t)=>{VU().render(...t)},PU=(...t)=>{const e=VU().createApp(...t),{mount:n}=e;return e.mount=r=>{const a=hle(r);if(!a)return;const i=e._component;!ut(i)&&!i.render&&!i.template&&(i.template=a.innerHTML),a.innerHTML="";const o=n(a,!1,a instanceof SVGElement);return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),o},e};function hle(t){return ft(t)?document.querySelector(t):t}const vle={__name:"App",setup(t){return(e,n)=>{const r=Ge("router-view");return B(),de(r,null,{default:Z(({Component:a})=>[(B(),de(Qoe,null,[e.$route.meta.keepAlive?(B(),de(Et(a),{key:0})):le("",!0)],1024)),e.$route.meta.keepAlive?le("",!0):(B(),de(Et(a),{key:0}))]),_:1})}}},ple="modulepreload",gle=function(t,e){return new URL(t,e).href},U$={},W$=function(e,n,r){if(!n||n.length===0)return e();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=gle(i,r),i in U$)return;U$[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!r)for(let c=a.length-1;c>=0;c--){const f=a[c];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":ple,o||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),o)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})};/*! * vue-router v4.0.16 * (c) 2022 Eduardo San Martin Morote * @license MIT */const FU=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Wv=t=>FU?Symbol(t):"_vr_"+t,yle=Wv("rvlm"),j$=Wv("rvd"),Lw=Wv("r"),zU=Wv("rl"),dM=Wv("rvl"),ih=typeof window<"u";function mle(t){return t.__esModule||FU&&t[Symbol.toStringTag]==="Module"}const In=Object.assign;function T2(t,e){const n={};for(const r in e){const a=e[r];n[r]=Array.isArray(a)?a.map(t):t(a)}return n}const Ng=()=>{},ble=/\/$/,Sle=t=>t.replace(ble,"");function E2(t,e,n="/"){let r,a={},i="",o="";const s=e.indexOf("?"),l=e.indexOf("#",s>-1?s:0);return s>-1&&(r=e.slice(0,s),i=e.slice(s+1,l>-1?l:e.length),a=t(i)),l>-1&&(r=r||e.slice(0,l),o=e.slice(l,e.length)),r=Cle(r??e,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function _le(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function K$(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function wle(t,e,n){const r=e.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&sv(e.matched[r],n.matched[a])&&GU(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function sv(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function GU(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!xle(t[n],e[n]))return!1;return!0}function xle(t,e){return Array.isArray(t)?Y$(t,e):Array.isArray(e)?Y$(e,t):t===e}function Y$(t,e){return Array.isArray(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function Cle(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/");let a=n.length-1,i,o;for(i=0;i({left:window.pageXOffset,top:window.pageYOffset});function Dle(t){let e;if("el"in t){const n=t.el,r=typeof n=="string"&&n.startsWith("#"),a=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!a)return;e=kle(a,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.pageXOffset,e.top!=null?e.top:window.pageYOffset)}function X$(t,e){return(history.state?history.state.position-e:-1)+t}const hM=new Map;function Rle(t,e){hM.set(t,e)}function Lle(t){const e=hM.get(t);return hM.delete(t),e}let Ale=()=>location.protocol+"//"+location.host;function HU(t,e){const{pathname:n,search:r,hash:a}=e,i=t.indexOf("#");if(i>-1){let s=a.includes(t.slice(i))?t.slice(i).length:1,l=a.slice(s);return l[0]!=="/"&&(l="/"+l),K$(l,"")}return K$(n,t)+r+a}function Ole(t,e,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const h=HU(t,location),p=n.value,v=e.value;let g=0;if(d){if(n.value=h,e.value=d,o&&o===p){o=null;return}g=v?d.position-v.position:0}else r(h);a.forEach(y=>{y(n.value,p,{delta:g,type:_0.pop,direction:g?g>0?$g.forward:$g.back:$g.unknown})})};function l(){o=n.value}function u(d){a.push(d);const h=()=>{const p=a.indexOf(d);p>-1&&a.splice(p,1)};return i.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(In({},d.state,{scroll:Aw()}),"")}function f(){for(const d of i)d();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:f}}function q$(t,e,n,r=!1,a=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:a?Aw():null}}function Nle(t){const{history:e,location:n}=window,r={value:HU(t,n)},a={value:e.state};a.value||i(r.value,{back:null,current:r.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=t.indexOf("#"),d=f>-1?(n.host&&document.querySelector("base")?t:t.slice(f))+l:Ale()+t+l;try{e[c?"replaceState":"pushState"](u,"",d),a.value=u}catch(h){console.error(h),n[c?"replace":"assign"](d)}}function o(l,u){const c=In({},e.state,q$(a.value.back,l,a.value.forward,!0),u,{position:a.value.position});i(l,c,!0),r.value=l}function s(l,u){const c=In({},a.value,e.state,{forward:l,scroll:Aw()});i(c.current,c,!0);const f=In({},q$(r.value,l,null),{position:c.position+1},u);i(l,f,!1),r.value=l}return{location:r,state:a,push:s,replace:o}}function $le(t){t=Tle(t);const e=Nle(t),n=Ole(t,e.state,e.location,e.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=In({location:"",base:t,go:r,createHref:Mle.bind(null,t)},e,n);return Object.defineProperty(a,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(a,"state",{enumerable:!0,get:()=>e.state.value}),a}function Ile(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),$le(t)}function Ble(t){return typeof t=="string"||t&&typeof t=="object"}function UU(t){return typeof t=="string"||typeof t=="symbol"}const Il={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},WU=Wv("nf");var Z$;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(Z$||(Z$={}));function lv(t,e){return In(new Error,{type:t,[WU]:!0},e)}function Bl(t,e){return t instanceof Error&&WU in t&&(e==null||!!(t.type&e))}const Q$="[^/]+?",Vle={sensitive:!1,strict:!1,start:!0,end:!0},Ple=/[.+*?^${}()[\]/\\]/g;function Fle(t,e){const n=In({},Vle,e),r=[];let a=n.start?"^":"";const i=[];for(const u of t){const c=u.length?[]:[90];n.strict&&!u.length&&(a+="/");for(let f=0;f1&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${p}"`);c+=m}}return c}return{re:o,score:r,keys:i,parse:s,stringify:l}}function zle(t,e){let n=0;for(;ne.length?e.length===1&&e[0]===40+40?1:-1:0}function Gle(t,e){let n=0;const r=t.score,a=e.score;for(;n0&&e[e.length-1]<0}const Hle={type:0,value:""},Ule=/[a-zA-Z0-9_]/;function Wle(t){if(!t)return[[]];if(t==="/")return[[Hle]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,r=n;const a=[];let i;function o(){i&&a.push(i),i=[]}let s=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&e(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):e("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;s{o(m)}:Ng}function o(c){if(UU(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return n}function l(c){let f=0;for(;f=0&&(c.record.path!==n[f].record.path||!jU(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!eI(c)&&r.set(c.record.name,c)}function u(c,f){let d,h={},p,v;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw lv(1,{location:c});v=d.record.name,h=In(Yle(f.params,d.keys.filter(m=>!m.optional).map(m=>m.name)),c.params),p=d.stringify(h)}else if("path"in c)p=c.path,d=n.find(m=>m.re.test(p)),d&&(h=d.parse(p),v=d.record.name);else{if(d=f.name?r.get(f.name):n.find(m=>m.re.test(f.path)),!d)throw lv(1,{location:c,currentLocation:f});v=d.record.name,h=In({},f.params,c.params),p=d.stringify(h)}const g=[];let y=d;for(;y;)g.unshift(y.record),y=y.parent;return{name:v,path:p,params:h,matched:g,meta:Zle(g)}}return t.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function Yle(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function Xle(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:qle(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||{}:{default:t.component}}}function qle(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const r in t.components)e[r]=typeof n=="boolean"?n:n[r];return e}function eI(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Zle(t){return t.reduce((e,n)=>In(e,n.meta),{})}function tI(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function jU(t,e){return e.children.some(n=>n===t||jU(t,n))}const KU=/#/g,Qle=/&/g,Jle=/\//g,eue=/=/g,tue=/\?/g,YU=/\+/g,nue=/%5B/g,rue=/%5D/g,XU=/%5E/g,aue=/%60/g,qU=/%7B/g,iue=/%7C/g,ZU=/%7D/g,oue=/%20/g;function oL(t){return encodeURI(""+t).replace(iue,"|").replace(nue,"[").replace(rue,"]")}function sue(t){return oL(t).replace(qU,"{").replace(ZU,"}").replace(XU,"^")}function vM(t){return oL(t).replace(YU,"%2B").replace(oue,"+").replace(KU,"%23").replace(Qle,"%26").replace(aue,"`").replace(qU,"{").replace(ZU,"}").replace(XU,"^")}function lue(t){return vM(t).replace(eue,"%3D")}function uue(t){return oL(t).replace(KU,"%23").replace(tue,"%3F")}function cue(t){return t==null?"":uue(t).replace(Jle,"%2F")}function OS(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function fue(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;ai&&vM(i)):[r&&vM(r)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function due(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=Array.isArray(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return e}function Cp(){let t=[];function e(r){return t.push(r),()=>{const a=t.indexOf(r);a>-1&&t.splice(a,1)}}function n(){t=[]}return{add:e,list:()=>t,reset:n}}function su(t,e,n,r,a){const i=r&&(r.enterCallbacks[a]=r.enterCallbacks[a]||[]);return()=>new Promise((o,s)=>{const l=f=>{f===!1?s(lv(4,{from:n,to:e})):f instanceof Error?s(f):Ble(f)?s(lv(2,{from:e,to:f})):(i&&r.enterCallbacks[a]===i&&typeof f=="function"&&i.push(f),o())},u=t.call(r&&r.instances[a],e,n,l);let c=Promise.resolve(u);t.length<3&&(c=c.then(l)),c.catch(f=>s(f))})}function M2(t,e,n,r){const a=[];for(const i of t)for(const o in i.components){let s=i.components[o];if(!(e!=="beforeRouteEnter"&&!i.instances[o]))if(hue(s)){const u=(s.__vccOpts||s)[e];u&&a.push(su(u,n,r,i,o))}else{let l=s();a.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${i.path}"`));const c=mle(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[e];return d&&su(d,n,r,i,o)()}))}}return a}function hue(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function rI(t){const e=We(Lw),n=We(zU),r=O(()=>e.resolve(S(t.to))),a=O(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const d=f.findIndex(sv.bind(null,c));if(d>-1)return d;const h=aI(l[u-2]);return u>1&&aI(c)===h&&f[f.length-1].path!==h?f.findIndex(sv.bind(null,l[u-2])):d}),i=O(()=>a.value>-1&&yue(n.params,r.value.params)),o=O(()=>a.value>-1&&a.value===n.matched.length-1&&GU(n.params,r.value.params));function s(l={}){return gue(l)?e[S(t.replace)?"replace":"push"](S(t.to)).catch(Ng):Promise.resolve()}return{route:r,href:O(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const vue=ie({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:rI,setup(t,{slots:e}){const n=Qt(rI(t)),{options:r}=We(Lw),a=O(()=>({[iI(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[iI(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&e.default(n);return t.custom?i:tt("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),pue=vue;function gue(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function yue(t,e){for(const n in e){const r=e[n],a=t[n];if(typeof r=="string"){if(r!==a)return!1}else if(!Array.isArray(a)||a.length!==r.length||r.some((i,o)=>i!==a[o]))return!1}return!0}function aI(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const iI=(t,e,n)=>t??e??n,mue=ie({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=We(dM),a=O(()=>t.route||r.value),i=We(j$,0),o=O(()=>a.value.matched[i]);Nt(j$,i+1),Nt(yle,o),Nt(dM,a);const s=z();return Ee(()=>[s.value,o.value,t.name],([l,u,c],[f,d,h])=>{u&&(u.instances[c]=l,d&&d!==u&&l&&l===f&&(u.leaveGuards.size||(u.leaveGuards=d.leaveGuards),u.updateGuards.size||(u.updateGuards=d.updateGuards))),l&&u&&(!d||!sv(u,d)||!f)&&(u.enterCallbacks[c]||[]).forEach(p=>p(l))},{flush:"post"}),()=>{const l=a.value,u=o.value,c=u&&u.components[t.name],f=t.name;if(!c)return oI(n.default,{Component:c,route:l});const d=u.props[t.name],h=d?d===!0?l.params:typeof d=="function"?d(l):d:null,v=tt(c,In({},h,e,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[f]=null)},ref:s}));return oI(n.default,{Component:v,route:l})||v}}});function oI(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const bue=mue;function Sue(t){const e=Kle(t.routes,t),n=t.parseQuery||fue,r=t.stringifyQuery||nI,a=t.history,i=Cp(),o=Cp(),s=Cp(),l=Sn(Il);let u=Il;ih&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=T2.bind(null,te=>""+te),f=T2.bind(null,cue),d=T2.bind(null,OS);function h(te,re){let ne,J;return UU(te)?(ne=e.getRecordMatcher(te),J=re):J=te,e.addRoute(J,ne)}function p(te){const re=e.getRecordMatcher(te);re&&e.removeRoute(re)}function v(){return e.getRoutes().map(te=>te.record)}function g(te){return!!e.getRecordMatcher(te)}function y(te,re){if(re=In({},re||l.value),typeof te=="string"){const K=E2(n,te,re.path),ee=e.resolve({path:K.path},re),se=a.createHref(K.fullPath);return In(K,ee,{params:d(ee.params),hash:OS(K.hash),redirectedFrom:void 0,href:se})}let ne;if("path"in te)ne=In({},te,{path:E2(n,te.path,re.path).path});else{const K=In({},te.params);for(const ee in K)K[ee]==null&&delete K[ee];ne=In({},te,{params:f(te.params)}),re.params=f(re.params)}const J=e.resolve(ne,re),he=te.hash||"";J.params=c(d(J.params));const ue=_le(r,In({},te,{hash:sue(he),path:J.path})),X=a.createHref(ue);return In({fullPath:ue,hash:he,query:r===nI?due(te.query):te.query||{}},J,{redirectedFrom:void 0,href:X})}function m(te){return typeof te=="string"?E2(n,te,l.value.path):In({},te)}function b(te,re){if(u!==te)return lv(8,{from:re,to:te})}function _(te){return C(te)}function x(te){return _(In(m(te),{replace:!0}))}function w(te){const re=te.matched[te.matched.length-1];if(re&&re.redirect){const{redirect:ne}=re;let J=typeof ne=="function"?ne(te):ne;return typeof J=="string"&&(J=J.includes("?")||J.includes("#")?J=m(J):{path:J},J.params={}),In({query:te.query,hash:te.hash,params:te.params},J)}}function C(te,re){const ne=u=y(te),J=l.value,he=te.state,ue=te.force,X=te.replace===!0,K=w(ne);if(K)return C(In(m(K),{state:he,force:ue,replace:X}),re||ne);const ee=ne;ee.redirectedFrom=re;let se;return!ue&&wle(r,J,ne)&&(se=lv(16,{to:ee,from:J}),$(J,J,!0,!1)),(se?Promise.resolve(se):k(ee,J)).catch(ye=>Bl(ye)?Bl(ye,2)?ye:L(ye):N(ye,ee,J)).then(ye=>{if(ye){if(Bl(ye,2))return C(In(m(ye.to),{state:he,force:ue,replace:X}),re||ee)}else ye=M(ee,J,!0,X,he);return E(ee,J,ye),ye})}function T(te,re){const ne=b(te,re);return ne?Promise.reject(ne):Promise.resolve()}function k(te,re){let ne;const[J,he,ue]=_ue(te,re);ne=M2(J.reverse(),"beforeRouteLeave",te,re);for(const K of J)K.leaveGuards.forEach(ee=>{ne.push(su(ee,te,re))});const X=T.bind(null,te,re);return ne.push(X),Md(ne).then(()=>{ne=[];for(const K of i.list())ne.push(su(K,te,re));return ne.push(X),Md(ne)}).then(()=>{ne=M2(he,"beforeRouteUpdate",te,re);for(const K of he)K.updateGuards.forEach(ee=>{ne.push(su(ee,te,re))});return ne.push(X),Md(ne)}).then(()=>{ne=[];for(const K of te.matched)if(K.beforeEnter&&!re.matched.includes(K))if(Array.isArray(K.beforeEnter))for(const ee of K.beforeEnter)ne.push(su(ee,te,re));else ne.push(su(K.beforeEnter,te,re));return ne.push(X),Md(ne)}).then(()=>(te.matched.forEach(K=>K.enterCallbacks={}),ne=M2(ue,"beforeRouteEnter",te,re),ne.push(X),Md(ne))).then(()=>{ne=[];for(const K of o.list())ne.push(su(K,te,re));return ne.push(X),Md(ne)}).catch(K=>Bl(K,8)?K:Promise.reject(K))}function E(te,re,ne){for(const J of s.list())J(te,re,ne)}function M(te,re,ne,J,he){const ue=b(te,re);if(ue)return ue;const X=re===Il,K=ih?history.state:{};ne&&(J||X?a.replace(te.fullPath,In({scroll:X&&K&&K.scroll},he)):a.push(te.fullPath,he)),l.value=te,$(te,re,ne,X),L()}let D;function R(){D||(D=a.listen((te,re,ne)=>{const J=y(te),he=w(J);if(he){C(In(he,{replace:!0}),J).catch(Ng);return}u=J;const ue=l.value;ih&&Rle(X$(ue.fullPath,ne.delta),Aw()),k(J,ue).catch(X=>Bl(X,12)?X:Bl(X,2)?(C(X.to,J).then(K=>{Bl(K,20)&&!ne.delta&&ne.type===_0.pop&&a.go(-1,!1)}).catch(Ng),Promise.reject()):(ne.delta&&a.go(-ne.delta,!1),N(X,J,ue))).then(X=>{X=X||M(J,ue,!1),X&&(ne.delta?a.go(-ne.delta,!1):ne.type===_0.pop&&Bl(X,20)&&a.go(-1,!1)),E(J,ue,X)}).catch(Ng)}))}let A=Cp(),V=Cp(),P;function N(te,re,ne){L(te);const J=V.list();return J.length?J.forEach(he=>he(te,re,ne)):console.error(te),Promise.reject(te)}function I(){return P&&l.value!==Il?Promise.resolve():new Promise((te,re)=>{A.add([te,re])})}function L(te){return P||(P=!te,R(),A.list().forEach(([re,ne])=>te?ne(te):re()),A.reset()),te}function $(te,re,ne,J){const{scrollBehavior:he}=t;if(!ih||!he)return Promise.resolve();const ue=!ne&&Lle(X$(te.fullPath,0))||(J||!ne)&&history.state&&history.state.scroll||null;return Xe().then(()=>he(te,re,ue)).then(X=>X&&Dle(X)).catch(X=>N(X,te,re))}const U=te=>a.go(te);let j;const Y=new Set;return{currentRoute:l,addRoute:h,removeRoute:p,hasRoute:g,getRoutes:v,resolve:y,options:t,push:_,replace:x,go:U,back:()=>U(-1),forward:()=>U(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:V.add,isReady:I,install(te){const re=this;te.component("RouterLink",pue),te.component("RouterView",bue),te.config.globalProperties.$router=re,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>S(l)}),ih&&!j&&l.value===Il&&(j=!0,_(a.location).catch(he=>{}));const ne={};for(const he in Il)ne[he]=O(()=>l.value[he]);te.provide(Lw,re),te.provide(zU,Qt(ne)),te.provide(dM,l);const J=te.unmount;Y.add(te),te.unmount=function(){Y.delete(te),Y.size<1&&(u=Il,D&&D(),D=null,l.value=Il,j=!1,P=!1),J()}}}}function Md(t){return t.reduce((e,n)=>e.then(()=>n()),Promise.resolve())}function _ue(t,e){const n=[],r=[],a=[],i=Math.max(e.matched.length,t.matched.length);for(let o=0;osv(u,s))?r.push(s):n.push(s));const l=t.matched[o];l&&(e.matched.find(u=>sv(u,l))||a.push(l))}return[n,r,a]}function wue(){return We(Lw)}function QU(t,e){return function(){return t.apply(e,arguments)}}const{toString:xue}=Object.prototype,{getPrototypeOf:sL}=Object,Ow=(t=>e=>{const n=xue.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Os=t=>(t=t.toLowerCase(),e=>Ow(e)===t),Nw=t=>e=>typeof e===t,{isArray:jv}=Array,w0=Nw("undefined");function Cue(t){return t!==null&&!w0(t)&&t.constructor!==null&&!w0(t.constructor)&&Pi(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const JU=Os("ArrayBuffer");function Tue(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&JU(t.buffer),e}const Eue=Nw("string"),Pi=Nw("function"),eW=Nw("number"),$w=t=>t!==null&&typeof t=="object",Mue=t=>t===!0||t===!1,wb=t=>{if(Ow(t)!=="object")return!1;const e=sL(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},kue=Os("Date"),Due=Os("File"),Rue=Os("Blob"),Lue=Os("FileList"),Aue=t=>$w(t)&&Pi(t.pipe),Oue=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Pi(t.append)&&((e=Ow(t))==="formdata"||e==="object"&&Pi(t.toString)&&t.toString()==="[object FormData]"))},Nue=Os("URLSearchParams"),$ue=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ny(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,a;if(typeof t!="object"&&(t=[t]),jv(t))for(r=0,a=t.length;r0;)if(a=n[r],e===a.toLowerCase())return a;return null}const nW=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),rW=t=>!w0(t)&&t!==nW;function pM(){const{caseless:t}=rW(this)&&this||{},e={},n=(r,a)=>{const i=t&&tW(e,a)||a;wb(e[i])&&wb(r)?e[i]=pM(e[i],r):wb(r)?e[i]=pM({},r):jv(r)?e[i]=r.slice():e[i]=r};for(let r=0,a=arguments.length;r(Ny(e,(a,i)=>{n&&Pi(a)?t[i]=QU(a,n):t[i]=a},{allOwnKeys:r}),t),Bue=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Vue=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Pue=(t,e,n,r)=>{let a,i,o;const s={};if(e=e||{},t==null)return e;do{for(a=Object.getOwnPropertyNames(t),i=a.length;i-- >0;)o=a[i],(!r||r(o,t,e))&&!s[o]&&(e[o]=t[o],s[o]=!0);t=n!==!1&&sL(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Fue=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},zue=t=>{if(!t)return null;if(jv(t))return t;let e=t.length;if(!eW(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Gue=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&sL(Uint8Array)),Hue=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let a;for(;(a=r.next())&&!a.done;){const i=a.value;e.call(t,i[0],i[1])}},Uue=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Wue=Os("HTMLFormElement"),jue=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),sI=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Kue=Os("RegExp"),aW=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Ny(n,(a,i)=>{let o;(o=e(a,i,t))!==!1&&(r[i]=o||a)}),Object.defineProperties(t,r)},Yue=t=>{aW(t,(e,n)=>{if(Pi(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Pi(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Xue=(t,e)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return jv(t)?r(t):r(String(t).split(e)),n},que=()=>{},Zue=(t,e)=>(t=+t,Number.isFinite(t)?t:e),k2="abcdefghijklmnopqrstuvwxyz",lI="0123456789",iW={DIGIT:lI,ALPHA:k2,ALPHA_DIGIT:k2+k2.toUpperCase()+lI},Que=(t=16,e=iW.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Jue(t){return!!(t&&Pi(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ece=t=>{const e=new Array(10),n=(r,a)=>{if($w(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[a]=r;const i=jv(r)?[]:{};return Ny(r,(o,s)=>{const l=n(o,a+1);!w0(l)&&(i[s]=l)}),e[a]=void 0,i}}return r};return n(t,0)},tce=Os("AsyncFunction"),nce=t=>t&&($w(t)||Pi(t))&&Pi(t.then)&&Pi(t.catch),je={isArray:jv,isArrayBuffer:JU,isBuffer:Cue,isFormData:Oue,isArrayBufferView:Tue,isString:Eue,isNumber:eW,isBoolean:Mue,isObject:$w,isPlainObject:wb,isUndefined:w0,isDate:kue,isFile:Due,isBlob:Rue,isRegExp:Kue,isFunction:Pi,isStream:Aue,isURLSearchParams:Nue,isTypedArray:Gue,isFileList:Lue,forEach:Ny,merge:pM,extend:Iue,trim:$ue,stripBOM:Bue,inherits:Vue,toFlatObject:Pue,kindOf:Ow,kindOfTest:Os,endsWith:Fue,toArray:zue,forEachEntry:Hue,matchAll:Uue,isHTMLForm:Wue,hasOwnProperty:sI,hasOwnProp:sI,reduceDescriptors:aW,freezeMethods:Yue,toObjectSet:Xue,toCamelCase:jue,noop:que,toFiniteNumber:Zue,findKey:tW,global:nW,isContextDefined:rW,ALPHABET:iW,generateString:Que,isSpecCompliantForm:Jue,toJSONObject:ece,isAsyncFn:tce,isThenable:nce};function bn(t,e,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a)}je.inherits(bn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:je.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const oW=bn.prototype,sW={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{sW[t]={value:t}});Object.defineProperties(bn,sW);Object.defineProperty(oW,"isAxiosError",{value:!0});bn.from=(t,e,n,r,a,i)=>{const o=Object.create(oW);return je.toFlatObject(t,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),bn.call(o,t.message,e,n,r,a),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const rce=null;function gM(t){return je.isPlainObject(t)||je.isArray(t)}function lW(t){return je.endsWith(t,"[]")?t.slice(0,-2):t}function uI(t,e,n){return t?t.concat(e).map(function(a,i){return a=lW(a),!n&&i?"["+a+"]":a}).join(n?".":""):e}function ace(t){return je.isArray(t)&&!t.some(gM)}const ice=je.toFlatObject(je,{},null,function(e){return/^is[A-Z]/.test(e)});function Iw(t,e,n){if(!je.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=je.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,g){return!je.isUndefined(g[v])});const r=n.metaTokens,a=n.visitor||c,i=n.dots,o=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&je.isSpecCompliantForm(e);if(!je.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(je.isDate(p))return p.toISOString();if(!l&&je.isBlob(p))throw new bn("Blob is not supported. Use a Buffer instead.");return je.isArrayBuffer(p)||je.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,v,g){let y=p;if(p&&!g&&typeof p=="object"){if(je.endsWith(v,"{}"))v=r?v:v.slice(0,-2),p=JSON.stringify(p);else if(je.isArray(p)&&ace(p)||(je.isFileList(p)||je.endsWith(v,"[]"))&&(y=je.toArray(p)))return v=lW(v),y.forEach(function(b,_){!(je.isUndefined(b)||b===null)&&e.append(o===!0?uI([v],_,i):o===null?v:v+"[]",u(b))}),!1}return gM(p)?!0:(e.append(uI(g,v,i),u(p)),!1)}const f=[],d=Object.assign(ice,{defaultVisitor:c,convertValue:u,isVisitable:gM});function h(p,v){if(!je.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+v.join("."));f.push(p),je.forEach(p,function(y,m){(!(je.isUndefined(y)||y===null)&&a.call(e,y,je.isString(m)?m.trim():m,v,d))===!0&&h(y,v?v.concat(m):[m])}),f.pop()}}if(!je.isObject(t))throw new TypeError("data must be an object");return h(t),e}function cI(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function lL(t,e){this._pairs=[],t&&Iw(t,this,e)}const uW=lL.prototype;uW.append=function(e,n){this._pairs.push([e,n])};uW.toString=function(e){const n=e?function(r){return e.call(this,r,cI)}:cI;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function oce(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cW(t,e,n){if(!e)return t;const r=n&&n.encode||oce,a=n&&n.serialize;let i;if(a?i=a(e,n):i=je.isURLSearchParams(e)?e.toString():new lL(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class sce{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){je.forEach(this.handlers,function(r){r!==null&&e(r)})}}const fI=sce,fW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},lce=typeof URLSearchParams<"u"?URLSearchParams:lL,uce=typeof FormData<"u"?FormData:null,cce=typeof Blob<"u"?Blob:null,fce=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),dce=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),wo={isBrowser:!0,classes:{URLSearchParams:lce,FormData:uce,Blob:cce},isStandardBrowserEnv:fce,isStandardBrowserWebWorkerEnv:dce,protocols:["http","https","file","blob","url","data"]};function hce(t,e){return Iw(t,new wo.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return wo.isNode&&je.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function vce(t){return je.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function pce(t){const e={},n=Object.keys(t);let r;const a=n.length;let i;for(r=0;r=n.length;return o=!o&&je.isArray(a)?a.length:o,l?(je.hasOwnProp(a,o)?a[o]=[a[o],r]:a[o]=r,!s):((!a[o]||!je.isObject(a[o]))&&(a[o]=[]),e(n,r,a[o],i)&&je.isArray(a[o])&&(a[o]=pce(a[o])),!s)}if(je.isFormData(t)&&je.isFunction(t.entries)){const n={};return je.forEachEntry(t,(r,a)=>{e(vce(r),a,n,0)}),n}return null}function gce(t,e,n){if(je.isString(t))try{return(e||JSON.parse)(t),je.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const uL={transitional:fW,adapter:wo.isNode?"http":"xhr",transformRequest:[function(e,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=je.isObject(e);if(i&&je.isHTMLForm(e)&&(e=new FormData(e)),je.isFormData(e))return a&&a?JSON.stringify(dW(e)):e;if(je.isArrayBuffer(e)||je.isBuffer(e)||je.isStream(e)||je.isFile(e)||je.isBlob(e))return e;if(je.isArrayBufferView(e))return e.buffer;if(je.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return hce(e,this.formSerializer).toString();if((s=je.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Iw(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||a?(n.setContentType("application/json",!1),gce(e)):e}],transformResponse:[function(e){const n=this.transitional||uL.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(e&&je.isString(e)&&(r&&!this.responseType||a)){const o=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?bn.from(s,bn.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wo.classes.FormData,Blob:wo.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};je.forEach(["delete","get","head","post","put","patch"],t=>{uL.headers[t]={}});const cL=uL,yce=je.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),mce=t=>{const e={};let n,r,a;return t&&t.split(` `).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||e[n]&&yce[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},dI=Symbol("internals");function Tp(t){return t&&String(t).trim().toLowerCase()}function xb(t){return t===!1||t==null?t:je.isArray(t)?t.map(xb):String(t)}function bce(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Sce=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function D2(t,e,n,r,a){if(je.isFunction(r))return r.call(this,e,n);if(a&&(e=n),!!je.isString(e)){if(je.isString(r))return e.indexOf(r)!==-1;if(je.isRegExp(r))return r.test(e)}}function _ce(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function wce(t,e){const n=je.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(a,i,o){return this[r].call(this,e,a,i,o)},configurable:!0})})}class Bw{constructor(e){e&&this.set(e)}set(e,n,r){const a=this;function i(s,l,u){const c=Tp(l);if(!c)throw new Error("header name must be a non-empty string");const f=je.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||l]=xb(s))}const o=(s,l)=>je.forEach(s,(u,c)=>i(u,c,l));return je.isPlainObject(e)||e instanceof this.constructor?o(e,n):je.isString(e)&&(e=e.trim())&&!Sce(e)?o(mce(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=Tp(e),e){const r=je.findKey(this,e);if(r){const a=this[r];if(!n)return a;if(n===!0)return bce(a);if(je.isFunction(n))return n.call(this,a,r);if(je.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Tp(e),e){const r=je.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||D2(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let a=!1;function i(o){if(o=Tp(o),o){const s=je.findKey(r,o);s&&(!n||D2(r,r[s],s,n))&&(delete r[s],a=!0)}}return je.isArray(e)?e.forEach(i):i(e),a}clear(e){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!e||D2(this,this[i],i,e,!0))&&(delete this[i],a=!0)}return a}normalize(e){const n=this,r={};return je.forEach(this,(a,i)=>{const o=je.findKey(r,i);if(o){n[o]=xb(a),delete n[i];return}const s=e?_ce(i):String(i).trim();s!==i&&delete n[i],n[s]=xb(a),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return je.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=e&&je.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(a=>r.set(a)),r}static accessor(e){const r=(this[dI]=this[dI]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Tp(o);r[s]||(wce(a,o),r[s]=!0)}return je.isArray(e)?e.forEach(i):i(e),this}}Bw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);je.reduceDescriptors(Bw.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});je.freezeMethods(Bw);const fl=Bw;function R2(t,e){const n=this||cL,r=e||n,a=fl.from(r.headers);let i=r.data;return je.forEach(t,function(s){i=s.call(n,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function hW(t){return!!(t&&t.__CANCEL__)}function $y(t,e,n){bn.call(this,t??"canceled",bn.ERR_CANCELED,e,n),this.name="CanceledError"}je.inherits($y,bn,{__CANCEL__:!0});function xce(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new bn("Request failed with status code "+n.status,[bn.ERR_BAD_REQUEST,bn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Cce=wo.isStandardBrowserEnv?function(){return{write:function(n,r,a,i,o,s){const l=[];l.push(n+"="+encodeURIComponent(r)),je.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),je.isString(i)&&l.push("path="+i),je.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Tce(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ece(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function vW(t,e){return t&&!Tce(e)?Ece(t,e):e}const Mce=wo.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function a(i){let o=i;return e&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=a(window.location.href),function(o){const s=je.isString(o)?a(o):o;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function kce(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Dce(t,e){t=t||10;const n=new Array(t),r=new Array(t);let a=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[i];o||(o=u),n[a]=l,r[a]=u;let f=i,d=0;for(;f!==a;)d+=n[f++],f=f%t;if(a=(a+1)%t,a===i&&(i=(i+1)%t),u-o{const i=a.loaded,o=a.lengthComputable?a.total:void 0,s=i-n,l=r(s),u=i<=o;n=i;const c={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-i)/l:void 0,event:a};c[e?"download":"upload"]=!0,t(c)}}const Rce=typeof XMLHttpRequest<"u",Lce=Rce&&function(t){return new Promise(function(n,r){let a=t.data;const i=fl.from(t.headers).normalize(),o=t.responseType;let s;function l(){t.cancelToken&&t.cancelToken.unsubscribe(s),t.signal&&t.signal.removeEventListener("abort",s)}je.isFormData(a)&&(wo.isStandardBrowserEnv||wo.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",p=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+p))}const c=vW(t.baseURL,t.url);u.open(t.method.toUpperCase(),cW(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function f(){if(!u)return;const h=fl.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),v={data:!o||o==="text"||o==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:h,config:t,request:u};xce(function(y){n(y),l()},function(y){r(y),l()},v),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new bn("Request aborted",bn.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new bn("Network Error",bn.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let p=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const v=t.transitional||fW;t.timeoutErrorMessage&&(p=t.timeoutErrorMessage),r(new bn(p,v.clarifyTimeoutError?bn.ETIMEDOUT:bn.ECONNABORTED,t,u)),u=null},wo.isStandardBrowserEnv){const h=(t.withCredentials||Mce(c))&&t.xsrfCookieName&&Cce.read(t.xsrfCookieName);h&&i.set(t.xsrfHeaderName,h)}a===void 0&&i.setContentType(null),"setRequestHeader"in u&&je.forEach(i.toJSON(),function(p,v){u.setRequestHeader(v,p)}),je.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&o!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",hI(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",hI(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=h=>{u&&(r(!h||h.type?new $y(null,t,u):h),u.abort(),u=null)},t.cancelToken&&t.cancelToken.subscribe(s),t.signal&&(t.signal.aborted?s():t.signal.addEventListener("abort",s)));const d=kce(c);if(d&&wo.protocols.indexOf(d)===-1){r(new bn("Unsupported protocol "+d+":",bn.ERR_BAD_REQUEST,t));return}u.send(a||null)})},Cb={http:rce,xhr:Lce};je.forEach(Cb,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const pW={getAdapter:t=>{t=je.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let a=0;at instanceof fl?t.toJSON():t;function uv(t,e){e=e||{};const n={};function r(u,c,f){return je.isPlainObject(u)&&je.isPlainObject(c)?je.merge.call({caseless:f},u,c):je.isPlainObject(c)?je.merge({},c):je.isArray(c)?c.slice():c}function a(u,c,f){if(je.isUndefined(c)){if(!je.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function i(u,c){if(!je.isUndefined(c))return r(void 0,c)}function o(u,c){if(je.isUndefined(c)){if(!je.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in e)return r(u,c);if(f in t)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c)=>a(pI(u),pI(c),!0)};return je.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||a,d=f(t[c],e[c],c);je.isUndefined(d)&&f!==s||(n[c]=d)}),n}const gW="1.5.0",fL={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{fL[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const gI={};fL.transitional=function(e,n,r){function a(i,o){return"[Axios v"+gW+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new bn(a(o," has been removed"+(n?" in "+n:"")),bn.ERR_DEPRECATED);return n&&!gI[o]&&(gI[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,o,s):!0}};function Ace(t,e,n){if(typeof t!="object")throw new bn("options must be an object",bn.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let a=r.length;for(;a-- >0;){const i=r[a],o=e[i];if(o){const s=t[i],l=s===void 0||o(s,i,t);if(l!==!0)throw new bn("option "+i+" must be "+l,bn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new bn("Unknown option "+i,bn.ERR_BAD_OPTION)}}const yM={assertOptions:Ace,validators:fL},Vl=yM.validators;class NS{constructor(e){this.defaults=e,this.interceptors={request:new fI,response:new fI}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=uv(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&yM.assertOptions(r,{silentJSONParsing:Vl.transitional(Vl.boolean),forcedJSONParsing:Vl.transitional(Vl.boolean),clarifyTimeoutError:Vl.transitional(Vl.boolean)},!1),a!=null&&(je.isFunction(a)?n.paramsSerializer={serialize:a}:yM.assertOptions(a,{encode:Vl.function,serialize:Vl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&je.merge(i.common,i[n.method]);i&&je.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=fl.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(l=l&&v.synchronous,s.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,f=0,d;if(!l){const p=[vI.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),d=p.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{r.subscribe(s),i=s}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},e(function(i,o,s){r.reason||(r.reason=new $y(i,o,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new yW(function(a){e=a}),cancel:e}}};const Nce=Oce;function $ce(t){return function(n){return t.apply(null,n)}}function Ice(t){return je.isObject(t)&&t.isAxiosError===!0}const mM={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mM).forEach(([t,e])=>{mM[e]=t});const Bce=mM;function mW(t){const e=new Tb(t),n=QU(Tb.prototype.request,e);return je.extend(n,Tb.prototype,e,{allOwnKeys:!0}),je.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return mW(uv(t,a))},n}const _r=mW(cL);_r.Axios=Tb;_r.CanceledError=$y;_r.CancelToken=Nce;_r.isCancel=hW;_r.VERSION=gW;_r.toFormData=Iw;_r.AxiosError=bn;_r.Cancel=_r.CanceledError;_r.all=function(e){return Promise.all(e)};_r.spread=$ce;_r.isAxiosError=Ice;_r.mergeConfig=uv;_r.AxiosHeaders=fl;_r.formToJSON=t=>dW(je.isHTMLForm(t)?new FormData(t):t);_r.getAdapter=pW.getAdapter;_r.HttpStatusCode=Bce;_r.default=_r;const Pu=_r;var Vce=!1;/*! * pinia v2.1.6 * (c) 2023 Eduardo San Martin Morote * @license MIT */const Pce=Symbol();var yI;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(yI||(yI={}));function Fce(){const t=AH(!0),e=t.run(()=>z({}));let n=[],r=[];const a=Eu({install(i){a._a=i,i.provide(Pce,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!Vce?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}function zce(t){return typeof t=="object"&&t!==null}function mI(t,e){return t=zce(t)?t:Object.create(null),new Proxy(t,{get(n,r,a){return r==="key"?Reflect.get(n,r,a):Reflect.get(n,r,a)||Reflect.get(e,r,a)}})}function Gce(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function Hce(t,e,n){return e.slice(0,-1).reduce((r,a)=>/^(__proto__)$/.test(a)?{}:r[a]=r[a]||{},t)[e[e.length-1]]=n,t}function Uce(t,e){return e.reduce((n,r)=>{const a=r.split(".");return Hce(n,a,Gce(t,a))},{})}function bI(t,{storage:e,serializer:n,key:r,debug:a}){try{const i=e==null?void 0:e.getItem(r);i&&t.$patch(n==null?void 0:n.deserialize(i))}catch(i){a&&console.error(i)}}function SI(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?Uce(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function Wce(t={}){return e=>{const{auto:n=!1}=t,{options:{persist:r=n},store:a,pinia:i}=e;if(!r)return;if(!(a.$id in i.state.value)){const s=i._s.get(a.$id.replace("__hot:",""));s&&Promise.resolve().then(()=>s.$persist());return}const o=(Array.isArray(r)?r.map(s=>mI(s,t)):[mI(r,t)]).map(({storage:s=localStorage,beforeRestore:l=null,afterRestore:u=null,serializer:c={serialize:JSON.stringify,deserialize:JSON.parse},key:f=a.$id,paths:d=null,debug:h=!1})=>{var p;return{storage:s,beforeRestore:l,afterRestore:u,serializer:c,key:((p=t.key)!=null?p:v=>v)(typeof f=="string"?f:f(a.$id)),paths:d,debug:h}});a.$persist=()=>{o.forEach(s=>{SI(a.$state,s)})},a.$hydrate=({runHooks:s=!0}={})=>{o.forEach(l=>{const{beforeRestore:u,afterRestore:c}=l;s&&(u==null||u(e)),bI(a,l),s&&(c==null||c(e))})},o.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;l==null||l(e),bI(a,s),u==null||u(e),a.$subscribe((c,f)=>{SI(f,s)},{detached:!0})})}}var jce=Wce();const bh=Fce();bh.use(jce);var sr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Kce(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:function(){return t[r]}})}),n}var Yce={exports:{}};/*! * JavaScript Cookie v2.2.0 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */(function(t,e){(function(n){var r=!1;if(t.exports=n(),r=!0,!r){var a=window.Cookies,i=window.Cookies=n();i.noConflict=function(){return window.Cookies=a,i}}})(function(){function n(){for(var a=0,i={};a"u")){if(arguments.length>1){if(l=n({path:"/"},i.defaults,l),typeof l.expires=="number"){var c=new Date;c.setMilliseconds(c.getMilliseconds()+l.expires*864e5),l.expires=c}l.expires=l.expires?l.expires.toUTCString():"";try{u=JSON.stringify(s),/^[\{\[]/.test(u)&&(s=u)}catch{}a.write?s=a.write(s,o):s=encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),o=encodeURIComponent(String(o)),o=o.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),o=o.replace(/[\(\)]/g,escape);var f="";for(var d in l)l[d]&&(f+="; "+d,l[d]!==!0&&(f+="="+l[d]));return document.cookie=o+"="+s+f}o||(u={});for(var h=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,v=0;v{const e=JSON.stringify(t.url)+(t.data?JSON.stringify(t.data):JSON.stringify(t.params));return t.cancelToken=new Qce(n=>{}),hu.includes(e),hu.push(e),t},t=>Promise.reject(t));Pu.interceptors.response.use(t=>{const e=JSON.stringify(t.config.url)+(t.config.data?JSON.stringify(t.config.data):JSON.stringify(t.config.params));if(hu.splice(hu.findIndex(n=>n===e),1),t.status===200){let{data:n}=t;return n.returnCode==Jce?Promise.resolve(n):(n.returnMsg==="系统没有登录或会话超时!"&&(bh.dispatch("user/changeState",{key:"token",value:""}),bh.dispatch("user/changeState",{key:"name",value:""}),bh.dispatch("user/changeState",{key:"userId",value:""}),bh.dispatch("user/changeState",{key:"loginStatus",value:!1}),MessageBox.confirm("系统没有登录或会话超时, 是否登录?","提示",{confirmButtonText:"登录",cancelButtonText:"取消",type:"warning"}).then(()=>{MessageBox.close();let r=window.location.protocol+"//"+window.location.host+"/"+Xce;window.location.href=r}).catch(()=>{Zce.info("已取消!"),MessageBox.close()})),Promise.reject(n))}else return Promise.reject(t)},t=>{const{res:e}=t;if(e)return hu.length=0,errorHandle(e.status,e.data.message),Promise.reject(e);if(console.log(t),t.message=="取消上传")return Promise.reject("cancel");if(t.message!="取消重复请求"){let n=t.message.indexOf("timeout")!=-1?{returnMsg:"请求超时"}:{returnMsg:"网络通讯异常"};return hu.splice(hu.findIndex(r=>r===Cr),1),Promise.reject(n)}});function efe(t="service"){let e="";return t=="service"?e="/TransServlet":t=="manager"&&(e="/managersvr/TransServlet"),e}function tfe(t,e){t.clientToken="e47b87eec69545559d1e81e56626da68";let n="5f06c8bc77234f969d13e160b54c27e3";return t.userId=n,t.channelNo=e,t}const Cr=(t,e="service",n="post")=>{let r=efe(e);return t=tfe(t,e),new Promise((a,i)=>{n=="post"?Pu.post(r,t).then(o=>{a(o)}).catch(o=>{i(o)}):n=="get"&&Pu.get(r,{params:t}).then(o=>{a(o)}).catch(o=>{i(o)})})},nfe='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',rfe=t=>getComputedStyle(t).position==="fixed"?!1:t.offsetParent!==null,_I=t=>Array.from(t.querySelectorAll(nfe)).filter(e=>afe(e)&&rfe(e)),afe=t=>{if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return!(t.type==="hidden"||t.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Eb=function(t,e,...n){let r;e.includes("mouse")||e.includes("click")?r="MouseEvents":e.includes("key")?r="KeyboardEvent":r="HTMLEvents";const a=document.createEvent(r);return a.initEvent(e,...n),t.dispatchEvent(a),t},bW=t=>!t.getAttribute("aria-owns"),SW=(t,e,n)=>{const{parentNode:r}=t;if(!r)return null;const a=r.querySelectorAll(n),i=Array.prototype.indexOf.call(a,t);return a[i+e]||null},Mb=t=>{t&&(t.focus(),!bW(t)&&t.click())},Gn=(t,e,{checkForDefaultPrevented:n=!0}={})=>a=>{const i=t==null?void 0:t(a);if(n===!1||!i)return e==null?void 0:e(a)},wI=t=>e=>e.pointerType==="mouse"?t(e):void 0;var ife=Object.defineProperty,ofe=Object.defineProperties,sfe=Object.getOwnPropertyDescriptors,xI=Object.getOwnPropertySymbols,lfe=Object.prototype.hasOwnProperty,ufe=Object.prototype.propertyIsEnumerable,CI=(t,e,n)=>e in t?ife(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cfe=(t,e)=>{for(var n in e||(e={}))lfe.call(e,n)&&CI(t,n,e[n]);if(xI)for(var n of xI(e))ufe.call(e,n)&&CI(t,n,e[n]);return t},ffe=(t,e)=>ofe(t,sfe(e));function TI(t,e){var n;const r=Sn();return di(()=>{r.value=t()},ffe(cfe({},e),{flush:(n=e==null?void 0:e.flush)!=null?n:"sync"})),Hv(r)}var EI;const Ut=typeof window<"u",dfe=t=>typeof t<"u",hfe=t=>typeof t=="function",vfe=t=>typeof t=="string",cv=()=>{},_W=Ut&&((EI=window==null?void 0:window.navigator)==null?void 0:EI.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Fu(t){return typeof t=="function"?t():S(t)}function wW(t,e){function n(...r){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(a).catch(i)})}return n}function pfe(t,e={}){let n,r,a=cv;const i=s=>{clearTimeout(s),a(),a=cv};return s=>{const l=Fu(t),u=Fu(e.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise((c,f)=>{a=e.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&i(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&i(r),r=null,c(s())},l)})}}function gfe(t,e=!0,n=!0,r=!1){let a=0,i,o=!0,s=cv,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=cv)};return f=>{const d=Fu(t),h=Date.now()-a,p=()=>l=f();return u(),d<=0?(a=Date.now(),p()):(h>d&&(n||!o)?(a=Date.now(),p()):e&&(l=new Promise((v,g)=>{s=r?g:v,i=setTimeout(()=>{a=Date.now(),o=!0,v(p()),u()},Math.max(0,d-h))})),!n&&!i&&(i=setTimeout(()=>o=!0,d)),o=!1,l)}}function yfe(t){return t}function Vw(t){return OH()?(NH(t),!0):!1}function mfe(t,e=200,n={}){return wW(pfe(e,n),t)}function bfe(t,e=200,n={}){const r=z(t.value),a=mfe(()=>{r.value=t.value},e,n);return Ee(t,()=>a()),r}function xW(t,e=200,n=!1,r=!0,a=!1){return wW(gfe(e,n,r,a),t)}function dL(t,e=!0){wt()?ht(t):e?t():Xe(t)}function Zf(t,e,n={}){const{immediate:r=!0}=n,a=z(!1);let i=null;function o(){i&&(clearTimeout(i),i=null)}function s(){a.value=!1,o()}function l(...u){o(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,t(...u)},Fu(e))}return r&&(a.value=!0,Ut&&l()),Vw(s),{isPending:Hv(a),start:l,stop:s}}function ui(t){var e;const n=Fu(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Kv=Ut?window:void 0,Sfe=Ut?window.document:void 0;function Rn(...t){let e,n,r,a;if(vfe(t[0])||Array.isArray(t[0])?([n,r,a]=t,e=Kv):[e,n,r,a]=t,!e)return cv;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],o=()=>{i.forEach(c=>c()),i.length=0},s=(c,f,d,h)=>(c.addEventListener(f,d,h),()=>c.removeEventListener(f,d,h)),l=Ee(()=>[ui(e),Fu(a)],([c,f])=>{o(),c&&i.push(...n.flatMap(d=>r.map(h=>s(c,d,h,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return Vw(u),u}let MI=!1;function hL(t,e,n={}){const{window:r=Kv,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;_W&&!MI&&(MI=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",cv)));let s=!0;const l=d=>a.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(p=>p===d.target||d.composedPath().includes(p));{const p=ui(h);return p&&(d.target===p||d.composedPath().includes(p))}}),c=[Rn(r,"click",d=>{const h=ui(t);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}e(d)}},{passive:!0,capture:i}),Rn(r,"pointerdown",d=>{const h=ui(t);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&Rn(r,"blur",d=>{var h;const p=ui(t);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(p!=null&&p.contains(r.document.activeElement))&&e(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function _fe(t,e=!1){const n=z(),r=()=>n.value=!!t();return r(),dL(r,e),n}function wfe(t){return JSON.parse(JSON.stringify(t))}const kI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},DI="__vueuse_ssr_handlers__";kI[DI]=kI[DI]||{};function xfe(t,e,{window:n=Kv,initialValue:r=""}={}){const a=z(r),i=O(()=>{var o;return ui(e)||((o=n==null?void 0:n.document)==null?void 0:o.documentElement)});return Ee([i,()=>Fu(t)],([o,s])=>{var l;if(o&&n){const u=(l=n.getComputedStyle(o).getPropertyValue(s))==null?void 0:l.trim();a.value=u||r}},{immediate:!0}),Ee(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(Fu(t),o)}),a}function Cfe({document:t=Sfe}={}){if(!t)return z("visible");const e=z(t.visibilityState);return Rn(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var RI=Object.getOwnPropertySymbols,Tfe=Object.prototype.hasOwnProperty,Efe=Object.prototype.propertyIsEnumerable,Mfe=(t,e)=>{var n={};for(var r in t)Tfe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&RI)for(var r of RI(t))e.indexOf(r)<0&&Efe.call(t,r)&&(n[r]=t[r]);return n};function da(t,e,n={}){const r=n,{window:a=Kv}=r,i=Mfe(r,["window"]);let o;const s=_fe(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Ee(()=>ui(t),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(e),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return Vw(c),{isSupported:s,stop:c}}function LI(t,e={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0}=e,o=z(0),s=z(0),l=z(0),u=z(0),c=z(0),f=z(0),d=z(0),h=z(0);function p(){const v=ui(t);if(!v){n&&(o.value=0,s.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,h.value=0);return}const g=v.getBoundingClientRect();o.value=g.height,s.value=g.bottom,l.value=g.left,u.value=g.right,c.value=g.top,f.value=g.width,d.value=g.x,h.value=g.y}return da(t,p),Ee(()=>ui(t),v=>!v&&p()),a&&Rn("scroll",p,{capture:!0,passive:!0}),r&&Rn("resize",p,{passive:!0}),dL(()=>{i&&p()}),{height:o,bottom:s,left:l,right:u,top:c,width:f,x:d,y:h,update:p}}var AI;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(AI||(AI={}));var kfe=Object.defineProperty,OI=Object.getOwnPropertySymbols,Dfe=Object.prototype.hasOwnProperty,Rfe=Object.prototype.propertyIsEnumerable,NI=(t,e,n)=>e in t?kfe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Lfe=(t,e)=>{for(var n in e||(e={}))Dfe.call(e,n)&&NI(t,n,e[n]);if(OI)for(var n of OI(e))Rfe.call(e,n)&&NI(t,n,e[n]);return t};const Afe={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]};Lfe({linear:yfe},Afe);function Ofe(t,e,n,r={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=r,d=wt(),h=n||(d==null?void 0:d.emit)||((a=d==null?void 0:d.$emit)==null?void 0:a.bind(d))||((o=(i=d==null?void 0:d.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(d==null?void 0:d.proxy));let p=u;e||(e="modelValue"),p=u||p||`update:${e.toString()}`;const v=y=>s?hfe(s)?s(y):wfe(y):y,g=()=>dfe(t[e])?v(t[e]):f;if(l){const y=g(),m=z(y);return Ee(()=>t[e],b=>m.value=v(b)),Ee(m,b=>{(b!==t[e]||c)&&h(p,b)},{deep:c}),m}else return O({get(){return g()},set(y){h(p,y)}})}function Nfe({window:t=Kv}={}){if(!t)return z(!1);const e=z(t.document.hasFocus());return Rn(t,"blur",()=>{e.value=!1}),Rn(t,"focus",()=>{e.value=!0}),e}function $fe(t={}){const{window:e=Kv,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=t,o=z(n),s=z(r),l=()=>{e&&(i?(o.value=e.innerWidth,s.value=e.innerHeight):(o.value=e.document.documentElement.clientWidth,s.value=e.document.documentElement.clientHeight))};return l(),dL(l),Rn("resize",l,{passive:!0}),a&&Rn("orientationchange",l,{passive:!0}),{width:o,height:s}}const CW=()=>Ut&&/firefox/i.test(window.navigator.userAgent),Ife=(t,e)=>{if(!Ut||!t||!e)return!1;const n=t.getBoundingClientRect();let r;return e instanceof Element?r=e.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.topr.top&&n.right>r.left&&n.left{let e=0,n=t;for(;n;)e+=n.offsetTop,n=n.offsetParent;return e},Bfe=(t,e)=>Math.abs($I(t)-$I(e)),vL=t=>{let e,n;return t.type==="touchend"?(n=t.changedTouches[0].clientY,e=t.changedTouches[0].clientX):t.type.startsWith("touch")?(n=t.touches[0].clientY,e=t.touches[0].clientX):(n=t.clientY,e=t.clientX),{clientX:e,clientY:n}};var Vfe=typeof global=="object"&&global&&global.Object===Object&&global;const TW=Vfe;var Pfe=typeof self=="object"&&self&&self.Object===Object&&self,Ffe=TW||Pfe||Function("return this")();const zo=Ffe;var zfe=zo.Symbol;const Hi=zfe;var EW=Object.prototype,Gfe=EW.hasOwnProperty,Hfe=EW.toString,Mp=Hi?Hi.toStringTag:void 0;function Ufe(t){var e=Gfe.call(t,Mp),n=t[Mp];try{t[Mp]=void 0;var r=!0}catch{}var a=Hfe.call(t);return r&&(e?t[Mp]=n:delete t[Mp]),a}var Wfe=Object.prototype,jfe=Wfe.toString;function Kfe(t){return jfe.call(t)}var Yfe="[object Null]",Xfe="[object Undefined]",II=Hi?Hi.toStringTag:void 0;function dd(t){return t==null?t===void 0?Xfe:Yfe:II&&II in Object(t)?Ufe(t):Kfe(t)}function Cs(t){return t!=null&&typeof t=="object"}var qfe="[object Symbol]";function Pw(t){return typeof t=="symbol"||Cs(t)&&dd(t)==qfe}function MW(t,e){for(var n=-1,r=t==null?0:t.length,a=Array(r);++n0){if(++e>=Ade)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Ide(t){return function(){return t}}var Bde=function(){try{var t=vd(Object,"defineProperty");return t({},"",{}),t}catch{}}();const $S=Bde;var Vde=$S?function(t,e){return $S(t,"toString",{configurable:!0,enumerable:!1,value:Ide(e),writable:!0})}:pL;const Pde=Vde;var Fde=$de(Pde);const RW=Fde;function zde(t,e){for(var n=-1,r=t==null?0:t.length;++n-1}var jde=9007199254740991,Kde=/^(?:0|[1-9]\d*)$/;function Fw(t,e){var n=typeof t;return e=e??jde,!!e&&(n=="number"||n!="symbol"&&Kde.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=qde}function Yv(t){return t!=null&&bL(t.length)&&!gL(t)}function Zde(t,e,n){if(!Aa(n))return!1;var r=typeof e;return(r=="number"?Yv(n)&&Fw(e,n.length):r=="string"&&e in n)?Iy(n[e],t):!1}function Qde(t){return OW(function(e,n){var r=-1,a=n.length,i=a>1?n[a-1]:void 0,o=a>2?n[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,o&&Zde(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++r-1}function vve(t,e){var n=this.__data__,r=zw(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function kl(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e0&&n(s)?e>1?zy(s,e-1,n,r,a):TL(a,s):r||(a[a.length]=s)}return a}function PW(t){var e=t==null?0:t.length;return e?zy(t,1):[]}function Ave(t){return RW(AW(t,void 0,PW),t+"")}var Ove=VW(Object.getPrototypeOf,Object);const EL=Ove;var Nve="[object Object]",$ve=Function.prototype,Ive=Object.prototype,FW=$ve.toString,Bve=Ive.hasOwnProperty,Vve=FW.call(Object);function Pve(t){if(!Cs(t)||dd(t)!=Nve)return!1;var e=EL(t);if(e===null)return!0;var n=Bve.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&FW.call(n)==Vve}function Jf(){if(!arguments.length)return[];var t=arguments[0];return La(t)?t:[t]}function Fve(){this.__data__=new kl,this.size=0}function zve(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Gve(t){return this.__data__.get(t)}function Hve(t){return this.__data__.has(t)}var Uve=200;function Wve(t,e){var n=this.__data__;if(n instanceof kl){var r=n.__data__;if(!E0||r.lengths))return!1;var u=i.get(t),c=i.get(e);if(u&&c)return u==e&&c==t;var f=-1,d=!0,h=n&Dge?new k0:void 0;for(i.set(t,e),i.set(e,t);++f=e||C<0||f&&T>=i}function y(){var w=$2();if(g(w))return m(w);s=setTimeout(y,v(w))}function m(w){return s=void 0,d&&r?h(w):(r=a=void 0,o)}function b(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function _(){return s===void 0?o:m($2())}function x(){var w=$2(),C=g(w);if(r=arguments,a=this,l=w,C){if(s===void 0)return p(l);if(f)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return x.cancel=b,x.flush=_,x}function CM(t,e,n){(n!==void 0&&!Iy(t[e],n)||n===void 0&&!(e in t))&&yL(t,e,n)}function a9(t){return Cs(t)&&Yv(t)}function TM(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function _0e(t){return By(t,Py(t))}function w0e(t,e,n,r,a,i,o){var s=TM(t,n),l=TM(e,n),u=o.get(l);if(u){CM(t,n,u);return}var c=i?i(s,l,n+"",t,e,o):void 0,f=c===void 0;if(f){var d=La(l),h=!d&&C0(l),p=!d&&!h&&wL(l);c=l,d||h||p?La(s)?c=s:a9(s)?c=DW(s):h?(f=!1,c=GW(l,!0)):p?(f=!1,c=jW(l,!0)):c=[]:Pve(l)||x0(l)?(c=s,x0(s)?c=_0e(s):(!Aa(s)||gL(s))&&(c=KW(l))):f=!1}f&&(o.set(l,c),a(c,l,r,i,o),o.delete(l)),CM(t,n,c)}function i9(t,e,n,r,a){t!==e&&r9(e,function(i,o){if(a||(a=new ko),Aa(i))w0e(t,e,o,n,i9,r,a);else{var s=r?r(TM(t,o),i,o+"",t,e,a):void 0;s===void 0&&(s=i),CM(t,o,s)}},Py)}function x0e(t,e,n){for(var r=-1,a=t==null?0:t.length;++r=G0e){var u=e?null:z0e(t);if(u)return DL(u);o=!1,a=ZW,l=new k0}else l=e?[]:s;e:for(;++rt===void 0,cr=t=>typeof t=="boolean",lt=t=>typeof t=="number",Ni=t=>!t&&t!==0||He(t)&&t.length===0||Lt(t)&&!Object.keys(t).length,Ui=t=>typeof Element>"u"?!1:t instanceof Element,W0e=t=>ur(t),j0e=t=>ft(t)?!Number.isNaN(Number(t)):!1,l9=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),ls=t=>Ay(t),D0=t=>Object.keys(t),K0e=t=>Object.entries(t),kb=(t,e,n)=>({get value(){return On(t,e,n)},set value(r){B0e(t,e,r)}});class Y0e extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function dr(t,e){throw new Y0e(`[${t}] ${e}`)}const u9=(t="")=>t.split(" ").filter(e=>!!e.trim()),Do=(t,e)=>{if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(e)},fs=(t,e)=>{!t||!e.trim()||t.classList.add(...u9(e))},qa=(t,e)=>{!t||!e.trim()||t.classList.remove(...u9(e))},vu=(t,e)=>{var n;if(!Ut||!t||!e)return"";let r=Gi(e);r==="float"&&(r="cssFloat");try{const a=t.style[r];if(a)return a;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(t,"");return i?i[r]:""}catch{return t.style[r]}};function Xn(t,e="px"){if(!t)return"";if(lt(t)||j0e(t))return`${t}${e}`;if(ft(t))return t}const X0e=(t,e)=>{if(!Ut)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(e)],r=vu(t,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},RL=(t,e)=>{if(!Ut)return;let n=t;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(X0e(n,e))return n;n=n.parentNode}return n};let Nm;const c9=t=>{var e;if(!Ut)return 0;if(Nm!==void 0)return Nm;const n=document.createElement("div");n.className=`${t}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",n.appendChild(a);const i=a.offsetWidth;return(e=n.parentNode)==null||e.removeChild(n),Nm=r-i,Nm};function f9(t,e){if(!Ut)return;if(!e){t.scrollTop=0;return}const n=[];let r=e.offsetParent;for(;r!==null&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;const a=e.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=a+e.offsetHeight,o=t.scrollTop,s=o+t.clientHeight;as&&(t.scrollTop=i-t.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var tn=(t,e)=>{let n=t.__vccOpts||t;for(let[r,a]of e)n[r]=a;return n},q0e={name:"ArrowDown"},Z0e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Q0e=G("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),J0e=[Q0e];function eye(t,e,n,r,a,i){return B(),q("svg",Z0e,J0e)}var ac=tn(q0e,[["render",eye],["__file","arrow-down.vue"]]),tye={name:"ArrowLeft"},nye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rye=G("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),aye=[rye];function iye(t,e,n,r,a,i){return B(),q("svg",nye,aye)}var zu=tn(tye,[["render",iye],["__file","arrow-left.vue"]]),oye={name:"ArrowRight"},sye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lye=G("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),uye=[lye];function cye(t,e,n,r,a,i){return B(),q("svg",sye,uye)}var ka=tn(oye,[["render",cye],["__file","arrow-right.vue"]]),fye={name:"ArrowUp"},dye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hye=G("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),vye=[hye];function pye(t,e,n,r,a,i){return B(),q("svg",dye,vye)}var jw=tn(fye,[["render",pye],["__file","arrow-up.vue"]]),gye={name:"Back"},yye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mye=G("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),bye=G("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),Sye=[mye,bye];function _ye(t,e,n,r,a,i){return B(),q("svg",yye,Sye)}var wye=tn(gye,[["render",_ye],["__file","back.vue"]]),xye={name:"Calendar"},Cye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Tye=G("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),Eye=[Tye];function Mye(t,e,n,r,a,i){return B(),q("svg",Cye,Eye)}var kye=tn(xye,[["render",Mye],["__file","calendar.vue"]]),Dye={name:"CaretRight"},Rye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Lye=G("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),Aye=[Lye];function Oye(t,e,n,r,a,i){return B(),q("svg",Rye,Aye)}var d9=tn(Dye,[["render",Oye],["__file","caret-right.vue"]]),Nye={name:"CaretTop"},$ye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Iye=G("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),Bye=[Iye];function Vye(t,e,n,r,a,i){return B(),q("svg",$ye,Bye)}var Pye=tn(Nye,[["render",Vye],["__file","caret-top.vue"]]),Fye={name:"Check"},zye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Gye=G("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),Hye=[Gye];function Uye(t,e,n,r,a,i){return B(),q("svg",zye,Hye)}var Gy=tn(Fye,[["render",Uye],["__file","check.vue"]]),Wye={name:"CircleCheckFilled"},jye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Kye=G("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),Yye=[Kye];function Xye(t,e,n,r,a,i){return B(),q("svg",jye,Yye)}var qye=tn(Wye,[["render",Xye],["__file","circle-check-filled.vue"]]),Zye={name:"CircleCheck"},Qye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Jye=G("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),eme=G("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),tme=[Jye,eme];function nme(t,e,n,r,a,i){return B(),q("svg",Qye,tme)}var LL=tn(Zye,[["render",nme],["__file","circle-check.vue"]]),rme={name:"CircleCloseFilled"},ame={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ime=G("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),ome=[ime];function sme(t,e,n,r,a,i){return B(),q("svg",ame,ome)}var AL=tn(rme,[["render",sme],["__file","circle-close-filled.vue"]]),lme={name:"CircleClose"},ume={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},cme=G("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),fme=G("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),dme=[cme,fme];function hme(t,e,n,r,a,i){return B(),q("svg",ume,dme)}var ic=tn(lme,[["render",hme],["__file","circle-close.vue"]]),vme={name:"Clock"},pme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},gme=G("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),yme=G("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),mme=G("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),bme=[gme,yme,mme];function Sme(t,e,n,r,a,i){return B(),q("svg",pme,bme)}var h9=tn(vme,[["render",Sme],["__file","clock.vue"]]),_me={name:"Close"},wme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xme=G("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),Cme=[xme];function Tme(t,e,n,r,a,i){return B(),q("svg",wme,Cme)}var No=tn(_me,[["render",Tme],["__file","close.vue"]]),Eme={name:"DArrowLeft"},Mme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kme=G("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),Dme=[kme];function Rme(t,e,n,r,a,i){return B(),q("svg",Mme,Dme)}var dv=tn(Eme,[["render",Rme],["__file","d-arrow-left.vue"]]),Lme={name:"DArrowRight"},Ame={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ome=G("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),Nme=[Ome];function $me(t,e,n,r,a,i){return B(),q("svg",Ame,Nme)}var hv=tn(Lme,[["render",$me],["__file","d-arrow-right.vue"]]),Ime={name:"Delete"},Bme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Vme=G("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Pme=[Vme];function Fme(t,e,n,r,a,i){return B(),q("svg",Bme,Pme)}var zme=tn(Ime,[["render",Fme],["__file","delete.vue"]]),Gme={name:"Document"},Hme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Ume=G("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),Wme=[Ume];function jme(t,e,n,r,a,i){return B(),q("svg",Hme,Wme)}var Kme=tn(Gme,[["render",jme],["__file","document.vue"]]),Yme={name:"FullScreen"},Xme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},qme=G("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),Zme=[qme];function Qme(t,e,n,r,a,i){return B(),q("svg",Xme,Zme)}var Jme=tn(Yme,[["render",Qme],["__file","full-screen.vue"]]),e1e={name:"Hide"},t1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},n1e=G("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),r1e=G("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),a1e=[n1e,r1e];function i1e(t,e,n,r,a,i){return B(),q("svg",t1e,a1e)}var o1e=tn(e1e,[["render",i1e],["__file","hide.vue"]]),s1e={name:"InfoFilled"},l1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},u1e=G("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),c1e=[u1e];function f1e(t,e,n,r,a,i){return B(),q("svg",l1e,c1e)}var OL=tn(s1e,[["render",f1e],["__file","info-filled.vue"]]),d1e={name:"Loading"},h1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},v1e=G("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),p1e=[v1e];function g1e(t,e,n,r,a,i){return B(),q("svg",h1e,p1e)}var oc=tn(d1e,[["render",g1e],["__file","loading.vue"]]),y1e={name:"Minus"},m1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},b1e=G("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),S1e=[b1e];function _1e(t,e,n,r,a,i){return B(),q("svg",m1e,S1e)}var w1e=tn(y1e,[["render",_1e],["__file","minus.vue"]]),x1e={name:"MoreFilled"},C1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},T1e=G("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),E1e=[T1e];function M1e(t,e,n,r,a,i){return B(),q("svg",C1e,E1e)}var hB=tn(x1e,[["render",M1e],["__file","more-filled.vue"]]),k1e={name:"More"},D1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},R1e=G("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),L1e=[R1e];function A1e(t,e,n,r,a,i){return B(),q("svg",D1e,L1e)}var O1e=tn(k1e,[["render",A1e],["__file","more.vue"]]),N1e={name:"PictureFilled"},$1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},I1e=G("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),B1e=[I1e];function V1e(t,e,n,r,a,i){return B(),q("svg",$1e,B1e)}var P1e=tn(N1e,[["render",V1e],["__file","picture-filled.vue"]]),F1e={name:"Plus"},z1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},G1e=G("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),H1e=[G1e];function U1e(t,e,n,r,a,i){return B(),q("svg",z1e,H1e)}var v9=tn(F1e,[["render",U1e],["__file","plus.vue"]]),W1e={name:"QuestionFilled"},j1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},K1e=G("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),Y1e=[K1e];function X1e(t,e,n,r,a,i){return B(),q("svg",j1e,Y1e)}var q1e=tn(W1e,[["render",X1e],["__file","question-filled.vue"]]),Z1e={name:"RefreshLeft"},Q1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},J1e=G("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),ebe=[J1e];function tbe(t,e,n,r,a,i){return B(),q("svg",Q1e,ebe)}var nbe=tn(Z1e,[["render",tbe],["__file","refresh-left.vue"]]),rbe={name:"RefreshRight"},abe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ibe=G("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),obe=[ibe];function sbe(t,e,n,r,a,i){return B(),q("svg",abe,obe)}var lbe=tn(rbe,[["render",sbe],["__file","refresh-right.vue"]]),ube={name:"ScaleToOriginal"},cbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},fbe=G("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),dbe=[fbe];function hbe(t,e,n,r,a,i){return B(),q("svg",cbe,dbe)}var vbe=tn(ube,[["render",hbe],["__file","scale-to-original.vue"]]),pbe={name:"Search"},gbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},ybe=G("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),mbe=[ybe];function bbe(t,e,n,r,a,i){return B(),q("svg",gbe,mbe)}var Sbe=tn(pbe,[["render",bbe],["__file","search.vue"]]),_be={name:"SortDown"},wbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xbe=G("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),Cbe=[xbe];function Tbe(t,e,n,r,a,i){return B(),q("svg",wbe,Cbe)}var Ebe=tn(_be,[["render",Tbe],["__file","sort-down.vue"]]),Mbe={name:"SortUp"},kbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Dbe=G("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),Rbe=[Dbe];function Lbe(t,e,n,r,a,i){return B(),q("svg",kbe,Rbe)}var Abe=tn(Mbe,[["render",Lbe],["__file","sort-up.vue"]]),Obe={name:"StarFilled"},Nbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$be=G("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),Ibe=[$be];function Bbe(t,e,n,r,a,i){return B(),q("svg",Nbe,Ibe)}var $m=tn(Obe,[["render",Bbe],["__file","star-filled.vue"]]),Vbe={name:"Star"},Pbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Fbe=G("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),zbe=[Fbe];function Gbe(t,e,n,r,a,i){return B(),q("svg",Pbe,zbe)}var Hbe=tn(Vbe,[["render",Gbe],["__file","star.vue"]]),Ube={name:"SuccessFilled"},Wbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},jbe=G("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),Kbe=[jbe];function Ybe(t,e,n,r,a,i){return B(),q("svg",Wbe,Kbe)}var p9=tn(Ube,[["render",Ybe],["__file","success-filled.vue"]]),Xbe={name:"View"},qbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Zbe=G("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),Qbe=[Zbe];function Jbe(t,e,n,r,a,i){return B(),q("svg",qbe,Qbe)}var eSe=tn(Xbe,[["render",Jbe],["__file","view.vue"]]),tSe={name:"WarningFilled"},nSe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rSe=G("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),aSe=[rSe];function iSe(t,e,n,r,a,i){return B(),q("svg",nSe,aSe)}var Kw=tn(tSe,[["render",iSe],["__file","warning-filled.vue"]]),oSe={name:"ZoomIn"},sSe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lSe=G("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),uSe=[lSe];function cSe(t,e,n,r,a,i){return B(),q("svg",sSe,uSe)}var g9=tn(oSe,[["render",cSe],["__file","zoom-in.vue"]]),fSe={name:"ZoomOut"},dSe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},hSe=G("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),vSe=[hSe];function pSe(t,e,n,r,a,i){return B(),q("svg",dSe,vSe)}var gSe=tn(fSe,[["render",pSe],["__file","zoom-out.vue"]]);const y9="__epPropKey",fe=t=>t,ySe=t=>Lt(t)&&!!t[y9],Go=(t,e)=>{if(!Lt(t)||ySe(t))return t;const{values:n,required:r,default:a,type:i,validator:o}=t,l={type:i,required:!!r,validator:n||o?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),Gt(t,"default")&&f.push(a),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const d=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");Ioe(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[y9]:!0};return Gt(t,"default")&&(l.default=a),l},$e=t=>VS(Object.entries(t).map(([e,n])=>[e,Go(n,e)])),_n=fe([String,Object,Function]),m9={Close:No},NL={Close:No,SuccessFilled:p9,InfoFilled:OL,WarningFilled:Kw,CircleCloseFilled:AL},Gu={success:p9,warning:Kw,error:AL,info:OL},$L={validating:oc,success:LL,error:ic},Tt=(t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(e??{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t},b9=(t,e)=>(t.install=n=>{t._context=n._context,n.config.globalProperties[e]=t},t),mSe=(t,e)=>(t.install=n=>{n.directive(e,t)},t),Hn=t=>(t.install=cn,t),Yw=(...t)=>e=>{t.forEach(n=>{ut(n)?n(e):n.value=e})},et={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"},bSe=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],B2=["sun","mon","tue","wed","thu","fri","sat"],Mt="update:modelValue",kn="change",Da="input",vB=Symbol("INSTALLED_KEY"),Ns=["","default","small","large"],SSe={large:40,default:32,small:24},_Se=t=>SSe[t||"default"],Xw=t=>["",...Ns].includes(t);var Di=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(Di||{});function EM(t){return Ln(t)&&t.type===Ze}function wSe(t){return Ln(t)&&t.type===Ma}function xSe(t){return Ln(t)&&!EM(t)&&!wSe(t)}const CSe=t=>{if(!Ln(t))return{};const e=t.props||{},n=(Ln(t.type)?t.type.props:void 0)||{},r={};return Object.keys(n).forEach(a=>{Gt(n[a],"default")&&(r[a]=n[a].default)}),Object.keys(e).forEach(a=>{r[Gi(a)]=e[a]}),r},TSe=t=>{if(!He(t)||t.length>1)throw new Error("expect to receive a single Vue element child");return t[0]},Vh=t=>{const e=He(t)?t:[t],n=[];return e.forEach(r=>{var a;He(r)?n.push(...Vh(r)):Ln(r)&&He(r.children)?n.push(...Vh(r.children)):(n.push(r),Ln(r)&&((a=r.component)!=null&&a.subTree)&&n.push(...Vh(r.component.subTree)))}),n},pB=t=>[...new Set(t)],dl=t=>!t&&t!==0?[]:Array.isArray(t)?t:[t],qw=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),vv=t=>Ut?window.requestAnimationFrame(t):setTimeout(t,16),Zw=t=>Ut?window.cancelAnimationFrame(t):clearTimeout(t),Qw=()=>Math.floor(Math.random()*1e4),Nn=t=>t,ESe=["class","style"],MSe=/^on[A-Z]/,IL=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,r=O(()=>((n==null?void 0:n.value)||[]).concat(ESe)),a=wt();return O(a?()=>{var i;return VS(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!r.value.includes(o)&&!(e&&MSe.test(o))))}:()=>({}))},Ts=({from:t,replacement:e,scope:n,version:r,ref:a,type:i="API"},o)=>{Ee(()=>S(o),s=>{},{immediate:!0})},S9=(t,e,n)=>{let r={offsetX:0,offsetY:0};const a=s=>{const l=s.clientX,u=s.clientY,{offsetX:c,offsetY:f}=r,d=t.value.getBoundingClientRect(),h=d.left,p=d.top,v=d.width,g=d.height,y=document.documentElement.clientWidth,m=document.documentElement.clientHeight,b=-h+c,_=-p+f,x=y-h-v+c,w=m-p-g+f,C=k=>{const E=Math.min(Math.max(c+k.clientX-l,b),x),M=Math.min(Math.max(f+k.clientY-u,_),w);r={offsetX:E,offsetY:M},t.value.style.transform=`translate(${Xn(E)}, ${Xn(M)})`},T=()=>{document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",C),document.addEventListener("mouseup",T)},i=()=>{e.value&&t.value&&e.value.addEventListener("mousedown",a)},o=()=>{e.value&&t.value&&e.value.removeEventListener("mousedown",a)};ht(()=>{di(()=>{n.value?i():o()})}),Tn(()=>{o()})};var kSe={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const DSe=t=>(e,n)=>RSe(e,n,S(t)),RSe=(t,e,n)=>On(n,t,t).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=e==null?void 0:e[a])!=null?i:`{${a}}`}`}),LSe=t=>{const e=O(()=>S(t).name),n=pt(t)?t:z(t);return{lang:e,locale:n,t:DSe(t)}},_9=Symbol("localeContextKey"),Kt=t=>{const e=t||We(_9,z());return LSe(O(()=>e.value||kSe))},Vg="el",ASe="is-",bc=(t,e,n,r,a)=>{let i=`${t}-${e}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},w9=Symbol("namespaceContextKey"),BL=t=>{const e=t||(wt()?We(w9,z(Vg)):z(Vg));return O(()=>S(e)||Vg)},De=(t,e)=>{const n=BL(e);return{namespace:n,b:(v="")=>bc(n.value,t,v,"",""),e:v=>v?bc(n.value,t,"",v,""):"",m:v=>v?bc(n.value,t,"","",v):"",be:(v,g)=>v&&g?bc(n.value,t,v,g,""):"",em:(v,g)=>v&&g?bc(n.value,t,"",v,g):"",bm:(v,g)=>v&&g?bc(n.value,t,v,"",g):"",bem:(v,g,y)=>v&&g&&y?bc(n.value,t,v,g,y):"",is:(v,...g)=>{const y=g.length>=1?g[0]:!0;return v&&y?`${ASe}${v}`:""},cssVar:v=>{const g={};for(const y in v)v[y]&&(g[`--${n.value}-${y}`]=v[y]);return g},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const g={};for(const y in v)v[y]&&(g[`--${n.value}-${t}-${y}`]=v[y]);return g},cssVarBlockName:v=>`--${n.value}-${t}-${v}`}},x9=(t,e={})=>{pt(t)||dr("[useLockscreen]","You need to pass a ref param to this function");const n=e.ns||De("popup"),r=ZH(()=>n.bm("parent","hidden"));if(!Ut||Do(document.body,r.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{qa(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=o)},200)};Ee(t,l=>{if(!l){s();return}i=!Do(document.body,r.value),i&&(o=document.body.style.width),a=c9(n.namespace.value);const u=document.documentElement.clientHeight0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),fs(document.body,r.value)}),NH(()=>s())},OSe=Go({type:fe(Boolean),default:null}),NSe=Go({type:fe(Function)}),C9=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,r=[e],a={[t]:OSe,[n]:NSe};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=wt(),{emit:h}=d,p=d.props,v=O(()=>ut(p[n])),g=O(()=>p[t]===null),y=C=>{o.value!==!0&&(o.value=!0,s&&(s.value=C),ut(c)&&c(C))},m=C=>{o.value!==!1&&(o.value=!1,s&&(s.value=C),ut(f)&&f(C))},b=C=>{if(p.disabled===!0||ut(u)&&!u())return;const T=v.value&&Ut;T&&h(e,!0),(g.value||!T)&&y(C)},_=C=>{if(p.disabled===!0||!Ut)return;const T=v.value&&Ut;T&&h(e,!1),(g.value||!T)&&m(C)},x=C=>{cr(C)&&(p.disabled&&C?v.value&&h(e,!1):o.value!==C&&(C?y():m()))},w=()=>{o.value?_():b()};return Ee(()=>p[t],x),l&&d.appContext.config.globalProperties.$route!==void 0&&Ee(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&_()}),ht(()=>{x(p[t])}),{hide:_,show:b,toggle:w,hasUpdateHandler:v}},useModelToggleProps:a,useModelToggleEmits:r}};C9("modelValue");const T9=t=>{const e=wt();return O(()=>{var n,r;return(r=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:r[t]})};var Za="top",Wi="bottom",ji="right",Qa="left",VL="auto",Hy=[Za,Wi,ji,Qa],pv="start",R0="end",$Se="clippingParents",E9="viewport",kp="popper",ISe="reference",gB=Hy.reduce(function(t,e){return t.concat([e+"-"+pv,e+"-"+R0])},[]),pd=[].concat(Hy,[VL]).reduce(function(t,e){return t.concat([e,e+"-"+pv,e+"-"+R0])},[]),BSe="beforeRead",VSe="read",PSe="afterRead",FSe="beforeMain",zSe="main",GSe="afterMain",HSe="beforeWrite",USe="write",WSe="afterWrite",jSe=[BSe,VSe,PSe,FSe,zSe,GSe,HSe,USe,WSe];function Es(t){return t?(t.nodeName||"").toLowerCase():null}function Ho(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function gv(t){var e=Ho(t).Element;return t instanceof e||t instanceof Element}function Fi(t){var e=Ho(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function PL(t){if(typeof ShadowRoot>"u")return!1;var e=Ho(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function KSe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},a=e.attributes[n]||{},i=e.elements[n];!Fi(i)||!Es(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(o){var s=a[o];s===!1?i.removeAttribute(o):i.setAttribute(o,s===!0?"":s)}))})}function YSe(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var a=e.elements[r],i=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=o.reduce(function(l,u){return l[u]="",l},{});!Fi(a)||!Es(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var M9={name:"applyStyles",enabled:!0,phase:"write",fn:KSe,effect:YSe,requires:["computeStyles"]};function gs(t){return t.split("-")[0]}var Bf=Math.max,PS=Math.min,yv=Math.round;function mv(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,a=1;if(Fi(t)&&e){var i=t.offsetHeight,o=t.offsetWidth;o>0&&(r=yv(n.width)/o||1),i>0&&(a=yv(n.height)/i||1)}return{width:n.width/r,height:n.height/a,top:n.top/a,right:n.right/r,bottom:n.bottom/a,left:n.left/r,x:n.left/r,y:n.top/a}}function FL(t){var e=mv(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function k9(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&PL(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function yl(t){return Ho(t).getComputedStyle(t)}function XSe(t){return["table","td","th"].indexOf(Es(t))>=0}function sc(t){return((gv(t)?t.ownerDocument:t.document)||window.document).documentElement}function Jw(t){return Es(t)==="html"?t:t.assignedSlot||t.parentNode||(PL(t)?t.host:null)||sc(t)}function yB(t){return!Fi(t)||yl(t).position==="fixed"?null:t.offsetParent}function qSe(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Fi(t)){var r=yl(t);if(r.position==="fixed")return null}var a=Jw(t);for(PL(a)&&(a=a.host);Fi(a)&&["html","body"].indexOf(Es(a))<0;){var i=yl(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Uy(t){for(var e=Ho(t),n=yB(t);n&&XSe(n)&&yl(n).position==="static";)n=yB(n);return n&&(Es(n)==="html"||Es(n)==="body"&&yl(n).position==="static")?e:n||qSe(t)||e}function zL(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Pg(t,e,n){return Bf(t,PS(e,n))}function ZSe(t,e,n){var r=Pg(t,e,n);return r>n?n:r}function D9(){return{top:0,right:0,bottom:0,left:0}}function R9(t){return Object.assign({},D9(),t)}function L9(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var QSe=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,R9(typeof t!="number"?t:L9(t,Hy))};function JSe(t){var e,n=t.state,r=t.name,a=t.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=gs(n.placement),l=zL(s),u=[Qa,ji].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var f=QSe(a.padding,n),d=FL(i),h=l==="y"?Za:Qa,p=l==="y"?Wi:ji,v=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],y=Uy(i),m=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,b=v/2-g/2,_=f[h],x=m-d[c]-f[p],w=m/2-d[c]/2+b,C=Pg(_,w,x),T=l;n.modifiersData[r]=(e={},e[T]=C,e.centerOffset=C-w,e)}}function e_e(t){var e=t.state,n=t.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||!k9(e.elements.popper,a)||(e.elements.arrow=a))}var t_e={name:"arrow",enabled:!0,phase:"main",fn:JSe,effect:e_e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bv(t){return t.split("-")[1]}var n_e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function r_e(t){var e=t.x,n=t.y,r=window,a=r.devicePixelRatio||1;return{x:yv(e*a)/a||0,y:yv(n*a)/a||0}}function mB(t){var e,n=t.popper,r=t.popperRect,a=t.placement,i=t.variation,o=t.offsets,s=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=o.x,h=d===void 0?0:d,p=o.y,v=p===void 0?0:p,g=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var y=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),b=Qa,_=Za,x=window;if(u){var w=Uy(n),C="clientHeight",T="clientWidth";if(w===Ho(n)&&(w=sc(n),yl(w).position!=="static"&&s==="absolute"&&(C="scrollHeight",T="scrollWidth")),w=w,a===Za||(a===Qa||a===ji)&&i===R0){_=Wi;var k=f&&w===x&&x.visualViewport?x.visualViewport.height:w[C];v-=k-r.height,v*=l?1:-1}if(a===Qa||(a===Za||a===Wi)&&i===R0){b=ji;var E=f&&w===x&&x.visualViewport?x.visualViewport.width:w[T];h-=E-r.width,h*=l?1:-1}}var M=Object.assign({position:s},u&&n_e),D=c===!0?r_e({x:h,y:v}):{x:h,y:v};if(h=D.x,v=D.y,l){var R;return Object.assign({},M,(R={},R[_]=m?"0":"",R[b]=y?"0":"",R.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",R))}return Object.assign({},M,(e={},e[_]=m?v+"px":"",e[b]=y?h+"px":"",e.transform="",e))}function a_e(t){var e=t.state,n=t.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,o=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:gs(e.placement),variation:bv(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,mB(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,mB(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var A9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:a_e,data:{}},Im={passive:!0};function i_e(t){var e=t.state,n=t.instance,r=t.options,a=r.scroll,i=a===void 0?!0:a,o=r.resize,s=o===void 0?!0:o,l=Ho(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Im)}),s&&l.addEventListener("resize",n.update,Im),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Im)}),s&&l.removeEventListener("resize",n.update,Im)}}var O9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:i_e,data:{}},o_e={left:"right",right:"left",bottom:"top",top:"bottom"};function Db(t){return t.replace(/left|right|bottom|top/g,function(e){return o_e[e]})}var s_e={start:"end",end:"start"};function bB(t){return t.replace(/start|end/g,function(e){return s_e[e]})}function GL(t){var e=Ho(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function HL(t){return mv(sc(t)).left+GL(t).scrollLeft}function l_e(t){var e=Ho(t),n=sc(t),r=e.visualViewport,a=n.clientWidth,i=n.clientHeight,o=0,s=0;return r&&(a=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:a,height:i,x:o+HL(t),y:s}}function u_e(t){var e,n=sc(t),r=GL(t),a=(e=t.ownerDocument)==null?void 0:e.body,i=Bf(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=Bf(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+HL(t),l=-r.scrollTop;return yl(a||n).direction==="rtl"&&(s+=Bf(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function UL(t){var e=yl(t),n=e.overflow,r=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function N9(t){return["html","body","#document"].indexOf(Es(t))>=0?t.ownerDocument.body:Fi(t)&&UL(t)?t:N9(Jw(t))}function Fg(t,e){var n;e===void 0&&(e=[]);var r=N9(t),a=r===((n=t.ownerDocument)==null?void 0:n.body),i=Ho(r),o=a?[i].concat(i.visualViewport||[],UL(r)?r:[]):r,s=e.concat(o);return a?s:s.concat(Fg(Jw(o)))}function MM(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function c_e(t){var e=mv(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function SB(t,e){return e===E9?MM(l_e(t)):gv(e)?c_e(e):MM(u_e(sc(t)))}function f_e(t){var e=Fg(Jw(t)),n=["absolute","fixed"].indexOf(yl(t).position)>=0,r=n&&Fi(t)?Uy(t):t;return gv(r)?e.filter(function(a){return gv(a)&&k9(a,r)&&Es(a)!=="body"}):[]}function d_e(t,e,n){var r=e==="clippingParents"?f_e(t):[].concat(e),a=[].concat(r,[n]),i=a[0],o=a.reduce(function(s,l){var u=SB(t,l);return s.top=Bf(u.top,s.top),s.right=PS(u.right,s.right),s.bottom=PS(u.bottom,s.bottom),s.left=Bf(u.left,s.left),s},SB(t,i));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function $9(t){var e=t.reference,n=t.element,r=t.placement,a=r?gs(r):null,i=r?bv(r):null,o=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(a){case Za:l={x:o,y:e.y-n.height};break;case Wi:l={x:o,y:e.y+e.height};break;case ji:l={x:e.x+e.width,y:s};break;case Qa:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var u=a?zL(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case pv:l[u]=l[u]-(e[c]/2-n[c]/2);break;case R0:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function L0(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=r===void 0?t.placement:r,i=n.boundary,o=i===void 0?$Se:i,s=n.rootBoundary,l=s===void 0?E9:s,u=n.elementContext,c=u===void 0?kp:u,f=n.altBoundary,d=f===void 0?!1:f,h=n.padding,p=h===void 0?0:h,v=R9(typeof p!="number"?p:L9(p,Hy)),g=c===kp?ISe:kp,y=t.rects.popper,m=t.elements[d?g:c],b=d_e(gv(m)?m:m.contextElement||sc(t.elements.popper),o,l),_=mv(t.elements.reference),x=$9({reference:_,element:y,strategy:"absolute",placement:a}),w=MM(Object.assign({},y,x)),C=c===kp?w:_,T={top:b.top-C.top+v.top,bottom:C.bottom-b.bottom+v.bottom,left:b.left-C.left+v.left,right:C.right-b.right+v.right},k=t.modifiersData.offset;if(c===kp&&k){var E=k[a];Object.keys(T).forEach(function(M){var D=[ji,Wi].indexOf(M)>=0?1:-1,R=[Za,Wi].indexOf(M)>=0?"y":"x";T[M]+=E[R]*D})}return T}function h_e(t,e){e===void 0&&(e={});var n=e,r=n.placement,a=n.boundary,i=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?pd:l,c=bv(r),f=c?s?gB:gB.filter(function(p){return bv(p)===c}):Hy,d=f.filter(function(p){return u.indexOf(p)>=0});d.length===0&&(d=f);var h=d.reduce(function(p,v){return p[v]=L0(t,{placement:v,boundary:a,rootBoundary:i,padding:o})[gs(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function v_e(t){if(gs(t)===VL)return[];var e=Db(t);return[bB(t),e,bB(e)]}function p_e(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,v=n.allowedAutoPlacements,g=e.options.placement,y=gs(g),m=y===g,b=l||(m||!p?[Db(g)]:v_e(g)),_=[g].concat(b).reduce(function(oe,te){return oe.concat(gs(te)===VL?h_e(e,{placement:te,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):te)},[]),x=e.rects.reference,w=e.rects.popper,C=new Map,T=!0,k=_[0],E=0;E<_.length;E++){var M=_[E],D=gs(M),R=bv(M)===pv,A=[Za,Wi].indexOf(D)>=0,V=A?"width":"height",P=L0(e,{placement:M,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),N=A?R?ji:Qa:R?Wi:Za;x[V]>w[V]&&(N=Db(N));var I=Db(N),L=[];if(i&&L.push(P[D]<=0),s&&L.push(P[N]<=0,P[I]<=0),L.every(function(oe){return oe})){k=M,T=!1;break}C.set(M,L)}if(T)for(var $=p?3:1,U=function(oe){var te=_.find(function(re){var ne=C.get(re);if(ne)return ne.slice(0,oe).every(function(J){return J})});if(te)return k=te,"break"},j=$;j>0;j--){var Y=U(j);if(Y==="break")break}e.placement!==k&&(e.modifiersData[r]._skip=!0,e.placement=k,e.reset=!0)}}var g_e={name:"flip",enabled:!0,phase:"main",fn:p_e,requiresIfExists:["offset"],data:{_skip:!1}};function _B(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function wB(t){return[Za,ji,Wi,Qa].some(function(e){return t[e]>=0})}function y_e(t){var e=t.state,n=t.name,r=e.rects.reference,a=e.rects.popper,i=e.modifiersData.preventOverflow,o=L0(e,{elementContext:"reference"}),s=L0(e,{altBoundary:!0}),l=_B(o,r),u=_B(s,a,i),c=wB(l),f=wB(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var m_e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:y_e};function b_e(t,e,n){var r=gs(t),a=[Qa,Za].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=i[0],s=i[1];return o=o||0,s=(s||0)*a,[Qa,ji].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function S_e(t){var e=t.state,n=t.options,r=t.name,a=n.offset,i=a===void 0?[0,0]:a,o=pd.reduce(function(c,f){return c[f]=b_e(f,e.rects,i),c},{}),s=o[e.placement],l=s.x,u=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=o}var __e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:S_e};function w_e(t){var e=t.state,n=t.name;e.modifiersData[n]=$9({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var I9={name:"popperOffsets",enabled:!0,phase:"read",fn:w_e,data:{}};function x_e(t){return t==="x"?"y":"x"}function C_e(t){var e=t.state,n=t.options,r=t.name,a=n.mainAxis,i=a===void 0?!0:a,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,p=n.tetherOffset,v=p===void 0?0:p,g=L0(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=gs(e.placement),m=bv(e.placement),b=!m,_=zL(y),x=x_e(_),w=e.modifiersData.popperOffsets,C=e.rects.reference,T=e.rects.popper,k=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,E=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,D={x:0,y:0};if(w){if(i){var R,A=_==="y"?Za:Qa,V=_==="y"?Wi:ji,P=_==="y"?"height":"width",N=w[_],I=N+g[A],L=N-g[V],$=h?-T[P]/2:0,U=m===pv?C[P]:T[P],j=m===pv?-T[P]:-C[P],Y=e.elements.arrow,oe=h&&Y?FL(Y):{width:0,height:0},te=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:D9(),re=te[A],ne=te[V],J=Pg(0,C[P],oe[P]),he=b?C[P]/2-$-J-re-E.mainAxis:U-J-re-E.mainAxis,ue=b?-C[P]/2+$+J+ne+E.mainAxis:j+J+ne+E.mainAxis,X=e.elements.arrow&&Uy(e.elements.arrow),K=X?_==="y"?X.clientTop||0:X.clientLeft||0:0,ee=(R=M==null?void 0:M[_])!=null?R:0,se=N+he-ee-K,ye=N+ue-ee,we=Pg(h?PS(I,se):I,N,h?Bf(L,ye):L);w[_]=we,D[_]=we-N}if(s){var be,Me=_==="x"?Za:Qa,Se=_==="x"?Wi:ji,xe=w[x],ke=x==="y"?"height":"width",ge=xe+g[Me],Ve=xe-g[Se],Ke=[Za,Qa].indexOf(y)!==-1,Le=(be=M==null?void 0:M[x])!=null?be:0,Ue=Ke?ge:xe-C[ke]-T[ke]-Le+E.altAxis,st=Ke?xe+C[ke]+T[ke]-Le-E.altAxis:Ve,bt=h&&Ke?ZSe(Ue,xe,st):Pg(h?Ue:ge,xe,h?st:Ve);w[x]=bt,D[x]=bt-xe}e.modifiersData[r]=D}}var T_e={name:"preventOverflow",enabled:!0,phase:"main",fn:C_e,requiresIfExists:["offset"]};function E_e(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function M_e(t){return t===Ho(t)||!Fi(t)?GL(t):E_e(t)}function k_e(t){var e=t.getBoundingClientRect(),n=yv(e.width)/t.offsetWidth||1,r=yv(e.height)/t.offsetHeight||1;return n!==1||r!==1}function D_e(t,e,n){n===void 0&&(n=!1);var r=Fi(e),a=Fi(e)&&k_e(e),i=sc(e),o=mv(t,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Es(e)!=="body"||UL(i))&&(s=M_e(e)),Fi(e)?(l=mv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=HL(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function R_e(t){var e=new Map,n=new Set,r=[];t.forEach(function(i){e.set(i.name,i)});function a(i){n.add(i.name);var o=[].concat(i.requires||[],i.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&a(l)}}),r.push(i)}return t.forEach(function(i){n.has(i.name)||a(i)}),r}function L_e(t){var e=R_e(t);return jSe.reduce(function(n,r){return n.concat(e.filter(function(a){return a.phase===r}))},[])}function A_e(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function O_e(t){var e=t.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var xB={placement:"bottom",modifiers:[],strategy:"absolute"};function CB(){for(var t=arguments.length,e=new Array(t),n=0;n{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=B_e(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=O(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=S(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),i=Sn(),o=z({styles:{popper:{position:S(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return Ee(a,l=>{const u=S(i);u&&u.setOptions(l)},{deep:!0}),Ee([t,e],([l,u])=>{s(),!(!l||!u)&&(i.value=B9(l,u,S(a)))}),Tn(()=>{s()}),{state:O(()=>{var l;return{...((l=S(i))==null?void 0:l.state)||{}}}),styles:O(()=>S(o).styles),attributes:O(()=>S(o).attributes),update:()=>{var l;return(l=S(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=S(i))==null?void 0:l.forceUpdate()},instanceRef:O(()=>S(i))}};function B_e(t){const e=Object.keys(t.elements),n=VS(e.map(a=>[a,t.styles[a]||{}])),r=VS(e.map(a=>[a,t.attributes[a]]));return{styles:n,attributes:r}}const jL=t=>{if(!t)return{onClick:cn,onMousedown:cn,onMouseup:cn};let e=!1,n=!1;return{onClick:o=>{e&&n&&t(o),e=n=!1},onMousedown:o=>{e=o.target===o.currentTarget},onMouseup:o=>{n=o.target===o.currentTarget}}},V_e=(t,e=0)=>{if(e===0)return t;const n=z(!1);let r=0;const a=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=t.value},e)};return ht(a),Ee(()=>t.value,i=>{i?a():n.value=i}),n};function TB(){let t;const e=(r,a)=>{n(),t=window.setTimeout(r,a)},n=()=>window.clearTimeout(t);return Vw(()=>n()),{registerTimeout:e,cancelTimeout:n}}const EB={prefix:Math.floor(Math.random()*1e4),current:0},P_e=Symbol("elIdInjection"),V9=()=>wt()?We(P_e,EB):EB,Ki=t=>{const e=V9(),n=BL();return O(()=>S(t)||`${n.value}-id-${e.prefix}-${e.current++}`)};let oh=[];const MB=t=>{const e=t;e.key===et.esc&&oh.forEach(n=>n(e))},F_e=t=>{ht(()=>{oh.length===0&&document.addEventListener("keydown",MB),Ut&&oh.push(t)}),Tn(()=>{oh=oh.filter(e=>e!==t),oh.length===0&&Ut&&document.removeEventListener("keydown",MB)})};let kB;const P9=()=>{const t=BL(),e=V9(),n=O(()=>`${t.value}-popper-container-${e.prefix}`),r=O(()=>`#${n.value}`);return{id:n,selector:r}},z_e=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},G_e=()=>{const{id:t,selector:e}=P9();return Mw(()=>{Ut&&!kB&&!document.body.querySelector(e.value)&&(kB=z_e(t.value))}),{id:t,selector:e}},H_e=$e({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),F9=({showAfter:t,hideAfter:e,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=TB(),{registerTimeout:o,cancelTimeout:s}=TB();return{onOpen:c=>{i(()=>{r(c);const f=S(n);lt(f)&&f>0&&o(()=>{a(c)},f)},S(t))},onClose:c=>{s(),i(()=>{a(c)},S(e))}}},z9=Symbol("elForwardRef"),U_e=t=>{Nt(z9,{setForwardRef:n=>{t.value=n}})},W_e=t=>({mounted(e){t(e)},updated(e){t(e)},unmounted(){t(null)}}),DB=z(0),G9=2e3,H9=Symbol("zIndexContextKey"),Xv=t=>{const e=t||(wt()?We(H9,void 0):void 0),n=O(()=>{const i=S(e);return lt(i)?i:G9}),r=O(()=>n.value+DB.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(DB.value++,r.value)}},A0=Math.min,Ph=Math.max,FS=Math.round,Hu=t=>({x:t,y:t});function j_e(t,e,n){return Ph(t,A0(e,n))}function U9(t,e){return typeof t=="function"?t(e):t}function KL(t){return t.split("-")[0]}function YL(t){return t.split("-")[1]}function K_e(t){return t==="x"?"y":"x"}function W9(t){return t==="y"?"height":"width"}function XL(t){return["top","bottom"].includes(KL(t))?"y":"x"}function j9(t){return K_e(XL(t))}function Y_e(t){return{top:0,right:0,bottom:0,left:0,...t}}function X_e(t){return typeof t!="number"?Y_e(t):{top:t,right:t,bottom:t,left:t}}function K9(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function RB(t,e,n){let{reference:r,floating:a}=t;const i=XL(e),o=j9(e),s=W9(o),l=KL(e),u=i==="y",c=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,d=r[s]/2-a[s]/2;let h;switch(l){case"top":h={x:c,y:r.y-a.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-a.width,y:f};break;default:h={x:r.x,y:r.y}}switch(YL(e)){case"start":h[o]-=d*(n&&u?-1:1);break;case"end":h[o]+=d*(n&&u?-1:1);break}return h}const q_e=async(t,e,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:i=[],platform:o}=n,s=i.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let u=await o.getElementRects({reference:t,floating:e,strategy:a}),{x:c,y:f}=RB(u,r,l),d=r,h={},p=0;for(let v=0;v({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:a,rects:i,platform:o,elements:s,middlewareData:l}=e,{element:u,padding:c=0}=U9(t,e)||{};if(u==null)return{};const f=X_e(c),d={x:n,y:r},h=j9(a),p=W9(h),v=await o.getDimensions(u),g=h==="y",y=g?"top":"left",m=g?"bottom":"right",b=g?"clientHeight":"clientWidth",_=i.reference[p]+i.reference[h]-d[h]-i.floating[p],x=d[h]-i.reference[h],w=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let C=w?w[b]:0;(!C||!await(o.isElement==null?void 0:o.isElement(w)))&&(C=s.floating[b]||i.floating[p]);const T=_/2-x/2,k=C/2-v[p]/2-1,E=A0(f[y],k),M=A0(f[m],k),D=E,R=C-v[p]-M,A=C/2-v[p]/2+T,V=j_e(D,A,R),P=!l.arrow&&YL(a)!=null&&A!=V&&i.reference[p]/2-(A"u"?!1:t instanceof ShadowRoot||t instanceof hi(t).ShadowRoot}function Wy(t){const{overflow:e,overflowX:n,overflowY:r,display:a}=Yi(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(a)}function ewe(t){return["table","td","th"].includes(Uu(t))}function qL(t){const e=ZL(),n=Yi(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function twe(t){let e=Sv(t);for(;Ms(e)&&!ex(e);){if(qL(e))return e;e=Sv(e)}return null}function ZL(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ex(t){return["html","body","#document"].includes(Uu(t))}function Yi(t){return hi(t).getComputedStyle(t)}function tx(t){return ml(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Sv(t){if(Uu(t)==="html")return t;const e=t.assignedSlot||t.parentNode||LB(t)&&t.host||lc(t);return LB(e)?e.host:e}function X9(t){const e=Sv(t);return ex(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ms(e)&&Wy(e)?e:X9(e)}function kM(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=X9(t),i=a===((r=t.ownerDocument)==null?void 0:r.body),o=hi(a);return i?e.concat(o,o.visualViewport||[],Wy(a)?a:[],o.frameElement&&n?kM(o.frameElement):[]):e.concat(a,kM(a,[],n))}function q9(t){const e=Yi(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=Ms(t),i=a?t.offsetWidth:n,o=a?t.offsetHeight:r,s=FS(n)!==i||FS(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function Z9(t){return ml(t)?t:t.contextElement}function Fh(t){const e=Z9(t);if(!Ms(e))return Hu(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:i}=q9(e);let o=(i?FS(n.width):n.width)/r,s=(i?FS(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const nwe=Hu(0);function Q9(t){const e=hi(t);return!ZL()||!e.visualViewport?nwe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function rwe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==hi(t)?!1:e}function O0(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),i=Z9(t);let o=Hu(1);e&&(r?ml(r)&&(o=Fh(r)):o=Fh(t));const s=rwe(i,n,r)?Q9(i):Hu(0);let l=(a.left+s.x)/o.x,u=(a.top+s.y)/o.y,c=a.width/o.x,f=a.height/o.y;if(i){const d=hi(i),h=r&&ml(r)?hi(r):r;let p=d.frameElement;for(;p&&r&&h!==d;){const v=Fh(p),g=p.getBoundingClientRect(),y=Yi(p),m=g.left+(p.clientLeft+parseFloat(y.paddingLeft))*v.x,b=g.top+(p.clientTop+parseFloat(y.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,f*=v.y,l+=m,u+=b,p=hi(p).frameElement}}return K9({width:c,height:f,x:l,y:u})}function awe(t){let{rect:e,offsetParent:n,strategy:r}=t;const a=Ms(n),i=lc(n);if(n===i)return e;let o={scrollLeft:0,scrollTop:0},s=Hu(1);const l=Hu(0);if((a||!a&&r!=="fixed")&&((Uu(n)!=="body"||Wy(i))&&(o=tx(n)),Ms(n))){const u=O0(n);s=Fh(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-o.scrollLeft*s.x+l.x,y:e.y*s.y-o.scrollTop*s.y+l.y}}function iwe(t){return Array.from(t.getClientRects())}function J9(t){return O0(lc(t)).left+tx(t).scrollLeft}function owe(t){const e=lc(t),n=tx(t),r=t.ownerDocument.body,a=Ph(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Ph(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+J9(t);const s=-n.scrollTop;return Yi(r).direction==="rtl"&&(o+=Ph(e.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function swe(t,e){const n=hi(t),r=lc(t),a=n.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,l=0;if(a){i=a.width,o=a.height;const u=ZL();(!u||u&&e==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function lwe(t,e){const n=O0(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,i=Ms(t)?Fh(t):Hu(1),o=t.clientWidth*i.x,s=t.clientHeight*i.y,l=a*i.x,u=r*i.y;return{width:o,height:s,x:l,y:u}}function AB(t,e,n){let r;if(e==="viewport")r=swe(t,n);else if(e==="document")r=owe(lc(t));else if(ml(e))r=lwe(e,n);else{const a=Q9(t);r={...e,x:e.x-a.x,y:e.y-a.y}}return K9(r)}function e7(t,e){const n=Sv(t);return n===e||!ml(n)||ex(n)?!1:Yi(n).position==="fixed"||e7(n,e)}function uwe(t,e){const n=e.get(t);if(n)return n;let r=kM(t,[],!1).filter(s=>ml(s)&&Uu(s)!=="body"),a=null;const i=Yi(t).position==="fixed";let o=i?Sv(t):t;for(;ml(o)&&!ex(o);){const s=Yi(o),l=qL(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Wy(o)&&!l&&e7(t,o))?r=r.filter(c=>c!==o):a=s,o=Sv(o)}return e.set(t,r),r}function cwe(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const o=[...n==="clippingAncestors"?uwe(e,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const f=AB(e,c,a);return u.top=Ph(f.top,u.top),u.right=A0(f.right,u.right),u.bottom=A0(f.bottom,u.bottom),u.left=Ph(f.left,u.left),u},AB(e,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function fwe(t){return q9(t)}function dwe(t,e,n){const r=Ms(e),a=lc(e),i=n==="fixed",o=O0(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=Hu(0);if(r||!r&&!i)if((Uu(e)!=="body"||Wy(a))&&(s=tx(e)),r){const u=O0(e,!0,i,e);l.x=u.x+e.clientLeft,l.y=u.y+e.clientTop}else a&&(l.x=J9(a));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function OB(t,e){return!Ms(t)||Yi(t).position==="fixed"?null:e?e(t):t.offsetParent}function t7(t,e){const n=hi(t);if(!Ms(t))return n;let r=OB(t,e);for(;r&&ewe(r)&&Yi(r).position==="static";)r=OB(r,e);return r&&(Uu(r)==="html"||Uu(r)==="body"&&Yi(r).position==="static"&&!qL(r))?n:r||twe(t)||n}const hwe=async function(t){let{reference:e,floating:n,strategy:r}=t;const a=this.getOffsetParent||t7,i=this.getDimensions;return{reference:dwe(e,await a(n),r),floating:{x:0,y:0,...await i(n)}}};function vwe(t){return Yi(t).direction==="rtl"}const pwe={convertOffsetParentRelativeRectToViewportRelativeRect:awe,getDocumentElement:lc,getClippingRect:cwe,getOffsetParent:t7,getElementRects:hwe,getClientRects:iwe,getDimensions:fwe,getScale:Fh,isElement:ml,isRTL:vwe},gwe=(t,e,n)=>{const r=new Map,a={platform:pwe,...n},i={...a.platform,_c:r};return q_e(t,e,{...a,platform:i})};$e({});const ywe=t=>{if(!Ut)return;if(!t)return t;const e=ui(t);return e||(pt(t)?e:t)},mwe=({middleware:t,placement:e,strategy:n})=>{const r=z(),a=z(),i=z(),o=z(),s=z({}),l={x:i,y:o,placement:e,strategy:n,middlewareData:s},u=async()=>{if(!Ut)return;const c=ywe(r),f=ui(a);if(!c||!f)return;const d=await gwe(c,f,{placement:S(e),strategy:S(n),middleware:S(t)});D0(l).forEach(h=>{l[h].value=d[h]})};return ht(()=>{di(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:a}},bwe=({arrowRef:t,padding:e})=>({name:"arrow",options:{element:t,padding:e},fn(n){const r=S(t);return r?Z_e({element:r,padding:e}).fn(n):{}}});function Swe(t){const e=z();function n(){if(t.value==null)return;const{selectionStart:a,selectionEnd:i,value:o}=t.value;if(a==null||i==null)return;const s=o.slice(0,Math.max(0,a)),l=o.slice(Math.max(0,i));e.value={selectionStart:a,selectionEnd:i,value:o,beforeTxt:s,afterTxt:l}}function r(){if(t.value==null||e.value==null)return;const{value:a}=t.value,{beforeTxt:i,afterTxt:o,selectionStart:s}=e.value;if(i==null||o==null||s==null)return;let l=a.length;if(a.endsWith(o))l=a.length-o.length;else if(a.startsWith(i))l=i.length;else{const u=i[s-1],c=a.indexOf(u,s-1);c!==-1&&(l=c+1)}t.value.setSelectionRange(l,l)}return[n,r]}const _we=(t,e,n)=>Vh(t.subTree).filter(i=>{var o;return Ln(i)&&((o=i.type)==null?void 0:o.name)===e&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),QL=(t,e)=>{const n={},r=Sn([]);return{children:r,addChild:o=>{n[o.uid]=o,r.value=_we(t,e,n)},removeChild:o=>{delete n[o],r.value=r.value.filter(s=>s.uid!==o)}}},qr=Go({type:String,values:Ns,required:!1}),n7=Symbol("size"),wwe=()=>{const t=We(n7,{});return O(()=>S(t.size)||"")};function xwe(t,{afterFocus:e,afterBlur:n}={}){const r=wt(),{emit:a}=r,i=Sn(),o=z(!1),s=c=>{o.value||(o.value=!0,a("focus",c),e==null||e())},l=c=>{var f;c.relatedTarget&&((f=i.value)!=null&&f.contains(c.relatedTarget))||(o.value=!1,a("blur",c),n==null||n())},u=()=>{var c;(c=t.value)==null||c.focus()};return Ee(i,c=>{c&&c.setAttribute("tabindex","-1")}),Rn(i,"click",u),{wrapperRef:i,isFocused:o,handleFocus:s,handleBlur:l}}const r7=Symbol(),zS=z();function nx(t,e=void 0){const n=wt()?We(r7,zS):zS;return t?O(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[t])!=null?a:e}):n}function rx(t,e){const n=nx(),r=De(t,O(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Vg})),a=Kt(O(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=Xv(O(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||G9})),o=O(()=>{var s;return S(e)||((s=n.value)==null?void 0:s.size)||""});return JL(O(()=>S(n)||{})),{ns:r,locale:a,zIndex:i,size:o}}const JL=(t,e,n=!1)=>{var r;const a=!!wt(),i=a?nx():void 0,o=(r=e==null?void 0:e.provide)!=null?r:a?Nt:void 0;if(!o)return;const s=O(()=>{const l=S(t);return i!=null&&i.value?Cwe(i.value,l):l});return o(r7,s),o(_9,O(()=>s.value.locale)),o(w9,O(()=>s.value.namespace)),o(H9,O(()=>s.value.zIndex)),o(n7,{size:O(()=>s.value.size||"")}),(n||!zS.value)&&(zS.value=s.value),s},Cwe=(t,e)=>{var n;const r=[...new Set([...D0(t),...D0(e)])],a={};for(const i of r)a[i]=(n=e[i])!=null?n:t[i];return a},Twe=$e({a11y:{type:Boolean,default:!0},locale:{type:fe(Object)},size:qr,button:{type:fe(Object)},experimentalFeatures:{type:fe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:fe(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),DM={},Ewe=ie({name:"ElConfigProvider",props:Twe,setup(t,{slots:e}){Ee(()=>t.message,r=>{Object.assign(DM,r??{})},{immediate:!0,deep:!0});const n=JL(t);return()=>Te(e,"default",{config:n==null?void 0:n.value})}}),Mwe=Tt(Ewe),kwe="2.3.14",Dwe=(t=[])=>({version:kwe,install:(n,r)=>{n[vB]||(n[vB]=!0,t.forEach(a=>n.use(a)),r&&JL(r,n,!0))}}),Rwe=$e({zIndex:{type:fe([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),Lwe={scroll:({scrollTop:t,fixed:e})=>lt(t)&&cr(e),[kn]:t=>cr(t)};var Ne=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n};const a7="ElAffix",Awe=ie({name:a7}),Owe=ie({...Awe,props:Rwe,emits:Lwe,setup(t,{expose:e,emit:n}){const r=t,a=De("affix"),i=Sn(),o=Sn(),s=Sn(),{height:l}=$fe(),{height:u,width:c,top:f,bottom:d,update:h}=LI(o,{windowScroll:!1}),p=LI(i),v=z(!1),g=z(0),y=z(0),m=O(()=>({height:v.value?`${u.value}px`:"",width:v.value?`${c.value}px`:""})),b=O(()=>{if(!v.value)return{};const w=r.offset?Xn(r.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:r.position==="top"?w:"",bottom:r.position==="bottom"?w:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:r.zIndex}}),_=()=>{if(s.value)if(g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const w=p.bottom.value-r.offset-u.value;v.value=r.offset>f.value&&p.bottom.value>0,y.value=w<0?w:0}else v.value=r.offset>f.value;else if(r.target){const w=l.value-p.top.value-r.offset-u.value;v.value=l.value-r.offsetp.top.value,y.value=w<0?-w:0}else v.value=l.value-r.offset{h(),n("scroll",{scrollTop:g.value,fixed:v.value})};return Ee(v,w=>n("change",w)),ht(()=>{var w;r.target?(i.value=(w=document.querySelector(r.target))!=null?w:void 0,i.value||dr(a7,`Target is not existed: ${r.target}`)):i.value=document.documentElement,s.value=RL(o.value,!0),h()}),Rn(s,"scroll",x),di(_),e({update:_,updateRoot:h}),(w,C)=>(B(),q("div",{ref_key:"root",ref:o,class:F(S(a).b()),style:qe(S(m))},[G("div",{class:F({[S(a).m("fixed")]:v.value}),style:qe(S(b))},[Te(w.$slots,"default")],6)],6))}});var Nwe=Ne(Owe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const $we=Tt(Nwe),Iwe=$e({size:{type:fe([Number,String])},color:{type:String}}),Bwe=ie({name:"ElIcon",inheritAttrs:!1}),Vwe=ie({...Bwe,props:Iwe,setup(t){const e=t,n=De("icon"),r=O(()=>{const{size:a,color:i}=e;return!a&&!i?{}:{fontSize:br(a)?void 0:Xn(a),"--color":i}});return(a,i)=>(B(),q("i",kt({class:S(n).b(),style:S(r)},a.$attrs),[Te(a.$slots,"default")],16))}});var Pwe=Ne(Vwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Ye=Tt(Pwe),Fwe=["light","dark"],zwe=$e({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:D0(Gu),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:Fwe,default:"light"}}),Gwe={close:t=>t instanceof MouseEvent},Hwe=ie({name:"ElAlert"}),Uwe=ie({...Hwe,props:zwe,emits:Gwe,setup(t,{emit:e}){const n=t,{Close:r}=NL,a=ea(),i=De("alert"),o=z(!0),s=O(()=>Gu[n.type]),l=O(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!a.default}]),u=O(()=>({[i.is("bold")]:n.description||a.default})),c=f=>{o.value=!1,e("close",f)};return(f,d)=>(B(),de(Qn,{name:S(i).b("fade"),persisted:""},{default:Z(()=>[yt(G("div",{class:F([S(i).b(),S(i).m(f.type),S(i).is("center",f.center),S(i).is(f.effect)]),role:"alert"},[f.showIcon&&S(s)?(B(),de(S(Ye),{key:0,class:F(S(l))},{default:Z(()=>[(B(),de(Et(S(s))))]),_:1},8,["class"])):le("v-if",!0),G("div",{class:F(S(i).e("content"))},[f.title||f.$slots.title?(B(),q("span",{key:0,class:F([S(i).e("title"),S(u)])},[Te(f.$slots,"title",{},()=>[Qe(Ae(f.title),1)])],2)):le("v-if",!0),f.$slots.default||f.description?(B(),q("p",{key:1,class:F(S(i).e("description"))},[Te(f.$slots,"default",{},()=>[Qe(Ae(f.description),1)])],2)):le("v-if",!0),f.closable?(B(),q(Ze,{key:2},[f.closeText?(B(),q("div",{key:0,class:F([S(i).e("close-btn"),S(i).is("customed")]),onClick:c},Ae(f.closeText),3)):(B(),de(S(Ye),{key:1,class:F(S(i).e("close-btn")),onClick:c},{default:Z(()=>[H(S(r))]),_:1},8,["class"]))],64)):le("v-if",!0)],2)],2),[[qt,o.value]])]),_:3},8,["name"]))}});var Wwe=Ne(Uwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const jwe=Tt(Wwe),gd=Symbol("formContextKey"),ks=Symbol("formItemContextKey"),hr=(t,e={})=>{const n=z(void 0),r=e.prop?n:T9("size"),a=e.global?n:wwe(),i=e.form?{size:void 0}:We(gd,void 0),o=e.formItem?{size:void 0}:We(ks,void 0);return O(()=>r.value||S(t)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},ni=t=>{const e=T9("disabled"),n=We(gd,void 0);return O(()=>e.value||S(t)||(n==null?void 0:n.disabled)||!1)},Va=()=>{const t=We(gd,void 0),e=We(ks,void 0);return{form:t,formItem:e}},uc=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=z(!1)),r||(r=z(!1));const a=z();let i;const o=O(()=>{var s;return!!(!t.label&&e&&e.inputIds&&((s=e.inputIds)==null?void 0:s.length)<=1)});return ht(()=>{i=Ee([Bn(t,"id"),n],([s,l])=>{const u=s??(l?void 0:Ki().value);u!==a.value&&(e!=null&&e.removeInputId&&(a.value&&e.removeInputId(a.value),!(r!=null&&r.value)&&!l&&u&&e.addInputId(u)),a.value=u)},{immediate:!0})}),rc(()=>{i&&i(),e!=null&&e.removeInputId&&a.value&&e.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},Kwe=$e({size:{type:String,values:Ns},disabled:Boolean}),Ywe=$e({...Kwe,model:Object,rules:{type:fe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),Xwe={validate:(t,e,n)=>(He(t)||ft(t))&&cr(e)&&ft(n)};function qwe(){const t=z([]),e=O(()=>{if(!t.value.length)return"0";const i=Math.max(...t.value);return i?`${i}px`:""});function n(i){const o=t.value.indexOf(i);return o===-1&&e.value,o}function r(i,o){if(i&&o){const s=n(o);t.value.splice(s,1,i)}else i&&t.value.push(i)}function a(i){const o=n(i);o>-1&&t.value.splice(o,1)}return{autoLabelWidth:e,registerLabelWidth:r,deregisterLabelWidth:a}}const Bm=(t,e)=>{const n=Jf(e);return n.length>0?t.filter(r=>r.prop&&n.includes(r.prop)):t},Zwe="ElForm",Qwe=ie({name:Zwe}),Jwe=ie({...Qwe,props:Ywe,emits:Xwe,setup(t,{expose:e,emit:n}){const r=t,a=[],i=hr(),o=De("form"),s=O(()=>{const{labelPosition:m,inline:b}=r;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${m}`)]:m,[o.m("inline")]:b}]}),l=m=>{a.push(m)},u=m=>{m.prop&&a.splice(a.indexOf(m),1)},c=(m=[])=>{r.model&&Bm(a,m).forEach(b=>b.resetField())},f=(m=[])=>{Bm(a,m).forEach(b=>b.clearValidate())},d=O(()=>!!r.model),h=m=>{if(a.length===0)return[];const b=Bm(a,m);return b.length?b:[]},p=async m=>g(void 0,m),v=async(m=[])=>{if(!d.value)return!1;const b=h(m);if(b.length===0)return!0;let _={};for(const x of b)try{await x.validate("")}catch(w){_={..._,...w}}return Object.keys(_).length===0?!0:Promise.reject(_)},g=async(m=[],b)=>{const _=!ut(b);try{const x=await v(m);return x===!0&&(b==null||b(x)),x}catch(x){if(x instanceof Error)throw x;const w=x;return r.scrollToError&&y(Object.keys(w)[0]),b==null||b(!1,w),_&&Promise.reject(w)}},y=m=>{var b;const _=Bm(a,m)[0];_&&((b=_.$el)==null||b.scrollIntoView(r.scrollIntoViewOptions))};return Ee(()=>r.rules,()=>{r.validateOnRuleChange&&p().catch(m=>void 0)},{deep:!0}),Nt(gd,Qt({...kr(r),emit:n,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,...qwe()})),e({validate:p,validateField:g,resetFields:c,clearValidate:f,scrollToField:y}),(m,b)=>(B(),q("form",{class:F(S(s))},[Te(m.$slots,"default")],2))}});var exe=Ne(Jwe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function bf(){return bf=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rb(t,e,n){return nxe()?Rb=Reflect.construct.bind():Rb=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&N0(u,o.prototype),u},Rb.apply(null,arguments)}function rxe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function LM(t){var e=typeof Map=="function"?new Map:void 0;return LM=function(r){if(r===null||!rxe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return Rb(r,arguments,RM(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),N0(a,r)},LM(t)}var axe=/%[sdj%]/g,ixe=function(){};typeof process<"u"&&process.env;function AM(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function ci(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=i)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return o}return t}function oxe(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Dr(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||oxe(e)&&typeof t=="string"&&!t)}function sxe(t,e,n){var r=[],a=0,i=t.length;function o(s){r.push.apply(r,s||[]),a++,a===i&&n(r)}t.forEach(function(s){e(s,o)})}function NB(t,e,n){var r=0,a=t.length;function i(o){if(o&&o.length){n(o);return}var s=r;r=r+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},vg={integer:function(e){return vg.number(e)&&parseInt(e,10)===e},float:function(e){return vg.number(e)&&!vg.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!vg.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(VB.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(hxe())},hex:function(e){return typeof e=="string"&&!!e.match(VB.hex)}},vxe=function(e,n,r,a,i){if(e.required&&n===void 0){i7(e,n,r,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?vg[s](n)||a.push(ci(i.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&a.push(ci(i.messages.types[s],e.fullField,e.type))},pxe=function(e,n,r,a,i){var o=typeof e.len=="number",s=typeof e.min=="number",l=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",h=typeof n=="string",p=Array.isArray(n);if(d?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(c=n.length),h&&(c=n.replace(u,"_").length),o?c!==e.len&&a.push(ci(i.messages[f].len,e.fullField,e.len)):s&&!l&&ce.max?a.push(ci(i.messages[f].max,e.fullField,e.max)):s&&l&&(ce.max)&&a.push(ci(i.messages[f].range,e.fullField,e.min,e.max))},kd="enum",gxe=function(e,n,r,a,i){e[kd]=Array.isArray(e[kd])?e[kd]:[],e[kd].indexOf(n)===-1&&a.push(ci(i.messages[kd],e.fullField,e[kd].join(", ")))},yxe=function(e,n,r,a,i){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||a.push(ci(i.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(n)||a.push(ci(i.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},vn={required:i7,whitespace:dxe,type:vxe,range:pxe,enum:gxe,pattern:yxe},mxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Dr(n,"string")&&!e.required)return r();vn.required(e,n,a,o,i,"string"),Dr(n,"string")||(vn.type(e,n,a,o,i),vn.range(e,n,a,o,i),vn.pattern(e,n,a,o,i),e.whitespace===!0&&vn.whitespace(e,n,a,o,i))}r(o)},bxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Dr(n)&&!e.required)return r();vn.required(e,n,a,o,i),n!==void 0&&vn.type(e,n,a,o,i)}r(o)},Sxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),Dr(n)&&!e.required)return r();vn.required(e,n,a,o,i),n!==void 0&&(vn.type(e,n,a,o,i),vn.range(e,n,a,o,i))}r(o)},_xe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Dr(n)&&!e.required)return r();vn.required(e,n,a,o,i),n!==void 0&&vn.type(e,n,a,o,i)}r(o)},wxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Dr(n)&&!e.required)return r();vn.required(e,n,a,o,i),Dr(n)||vn.type(e,n,a,o,i)}r(o)},xxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Dr(n)&&!e.required)return r();vn.required(e,n,a,o,i),n!==void 0&&(vn.type(e,n,a,o,i),vn.range(e,n,a,o,i))}r(o)},Cxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Dr(n)&&!e.required)return r();vn.required(e,n,a,o,i),n!==void 0&&(vn.type(e,n,a,o,i),vn.range(e,n,a,o,i))}r(o)},Txe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return r();vn.required(e,n,a,o,i,"array"),n!=null&&(vn.type(e,n,a,o,i),vn.range(e,n,a,o,i))}r(o)},Exe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Dr(n)&&!e.required)return r();vn.required(e,n,a,o,i),n!==void 0&&vn.type(e,n,a,o,i)}r(o)},Mxe="enum",kxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Dr(n)&&!e.required)return r();vn.required(e,n,a,o,i),n!==void 0&&vn[Mxe](e,n,a,o,i)}r(o)},Dxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Dr(n,"string")&&!e.required)return r();vn.required(e,n,a,o,i),Dr(n,"string")||vn.pattern(e,n,a,o,i)}r(o)},Rxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Dr(n,"date")&&!e.required)return r();if(vn.required(e,n,a,o,i),!Dr(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),vn.type(e,l,a,o,i),l&&vn.range(e,l.getTime(),a,o,i)}}r(o)},Lxe=function(e,n,r,a,i){var o=[],s=Array.isArray(n)?"array":typeof n;vn.required(e,n,a,o,i,s),r(o)},V2=function(e,n,r,a,i){var o=e.type,s=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Dr(n,o)&&!e.required)return r();vn.required(e,n,a,s,i,o),Dr(n,o)||vn.type(e,n,a,s,i)}r(s)},Axe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Dr(n)&&!e.required)return r();vn.required(e,n,a,o,i)}r(o)},zg={string:mxe,method:bxe,number:Sxe,boolean:_xe,regexp:wxe,integer:xxe,float:Cxe,array:Txe,object:Exe,enum:kxe,pattern:Dxe,date:Rxe,url:V2,hex:V2,email:V2,required:Lxe,any:Axe};function OM(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var NM=OM(),jy=function(){function t(n){this.rules=null,this._messages=NM,this.define(n)}var e=t.prototype;return e.define=function(r){var a=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(i){var o=r[i];a.rules[i]=Array.isArray(o)?o:[o]})},e.messages=function(r){return r&&(this._messages=BB(OM(),r)),this._messages},e.validate=function(r,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=r,l=a,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(v){var g=[],y={};function m(_){if(Array.isArray(_)){var x;g=(x=g).concat.apply(x,_)}else g.push(_)}for(var b=0;b");const a=De("form"),i=z(),o=z(0),s=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{Xe(()=>{e.default&&t.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},u=()=>l("update");return ht(()=>{u()}),Tn(()=>{l("remove")}),As(()=>u()),Ee(o,(c,f)=>{t.updateAll&&(n==null||n.registerLabelWidth(c,f))}),da(O(()=>{var c,f;return(f=(c=i.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!e)return null;const{isAutoWidth:d}=t;if(d){const h=n==null?void 0:n.autoLabelWidth,p=r==null?void 0:r.hasLabel,v={};if(p&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(v[y]=`${g}px`)}return H("div",{ref:i,class:[a.be("item","label-wrap")],style:v},[(c=e.default)==null?void 0:c.call(e)])}else return H(Ze,{ref:i},[(f=e.default)==null?void 0:f.call(e)])}}});const Ixe=["role","aria-labelledby"],Bxe=ie({name:"ElFormItem"}),Vxe=ie({...Bxe,props:Nxe,setup(t,{expose:e}){const n=t,r=ea(),a=We(gd,void 0),i=We(ks,void 0),o=hr(void 0,{formItem:!1}),s=De("form-item"),l=Ki().value,u=z([]),c=z(""),f=bfe(c,100),d=z(""),h=z();let p,v=!1;const g=O(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const ne=Xn(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return ne?{width:ne}:{}}),y=O(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&k)return{};const ne=Xn(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!r.label?{marginLeft:ne}:{}}),m=O(()=>[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",A.value||n.required),s.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:a==null?void 0:a.statusIcon}]),b=O(()=>cr(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),_=O(()=>[s.e("error"),{[s.em("error","inline")]:b.value}]),x=O(()=>n.prop?ft(n.prop)?n.prop:n.prop.join("."):""),w=O(()=>!!(n.label||r.label)),C=O(()=>n.for||u.value.length===1?u.value[0]:void 0),T=O(()=>!C.value&&w.value),k=!!i,E=O(()=>{const ne=a==null?void 0:a.model;if(!(!ne||!n.prop))return kb(ne,n.prop).value}),M=O(()=>{const{required:ne}=n,J=[];n.rules&&J.push(...Jf(n.rules));const he=a==null?void 0:a.rules;if(he&&n.prop){const ue=kb(he,n.prop).value;ue&&J.push(...Jf(ue))}if(ne!==void 0){const ue=J.map((X,K)=>[X,K]).filter(([X])=>Object.keys(X).includes("required"));if(ue.length>0)for(const[X,K]of ue)X.required!==ne&&(J[K]={...X,required:ne});else J.push({required:ne})}return J}),D=O(()=>M.value.length>0),R=ne=>M.value.filter(he=>!he.trigger||!ne?!0:Array.isArray(he.trigger)?he.trigger.includes(ne):he.trigger===ne).map(({trigger:he,...ue})=>ue),A=O(()=>M.value.some(ne=>ne.required)),V=O(()=>{var ne;return f.value==="error"&&n.showMessage&&((ne=a==null?void 0:a.showMessage)!=null?ne:!0)}),P=O(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),N=ne=>{c.value=ne},I=ne=>{var J,he;const{errors:ue,fields:X}=ne;(!ue||!X)&&console.error(ne),N("error"),d.value=ue?(he=(J=ue==null?void 0:ue[0])==null?void 0:J.message)!=null?he:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,d.value)},L=()=>{N("success"),a==null||a.emit("validate",n.prop,!0,"")},$=async ne=>{const J=x.value;return new jy({[J]:ne}).validate({[J]:E.value},{firstFields:!0}).then(()=>(L(),!0)).catch(ue=>(I(ue),Promise.reject(ue)))},U=async(ne,J)=>{if(v||!n.prop)return!1;const he=ut(J);if(!D.value)return J==null||J(!1),!1;const ue=R(ne);return ue.length===0?(J==null||J(!0),!0):(N("validating"),$(ue).then(()=>(J==null||J(!0),!0)).catch(X=>{const{fields:K}=X;return J==null||J(!1,K),he?!1:Promise.reject(K)}))},j=()=>{N(""),d.value="",v=!1},Y=async()=>{const ne=a==null?void 0:a.model;if(!ne||!n.prop)return;const J=kb(ne,n.prop);v=!0,J.value=lB(p),await Xe(),j(),v=!1},oe=ne=>{u.value.includes(ne)||u.value.push(ne)},te=ne=>{u.value=u.value.filter(J=>J!==ne)};Ee(()=>n.error,ne=>{d.value=ne||"",N(ne?"error":"")},{immediate:!0}),Ee(()=>n.validateStatus,ne=>N(ne||""));const re=Qt({...kr(n),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:T,hasLabel:w,addInputId:oe,removeInputId:te,resetField:Y,clearValidate:j,validate:U});return Nt(ks,re),ht(()=>{n.prop&&(a==null||a.addField(re),p=lB(E.value))}),Tn(()=>{a==null||a.removeField(re)}),e({size:o,validateMessage:d,validateState:c,validate:U,clearValidate:j,resetField:Y}),(ne,J)=>{var he;return B(),q("div",{ref_key:"formItemRef",ref:h,class:F(S(m)),role:S(T)?"group":void 0,"aria-labelledby":S(T)?S(l):void 0},[H(S($xe),{"is-auto-width":S(g).width==="auto","update-all":((he=S(a))==null?void 0:he.labelWidth)==="auto"},{default:Z(()=>[S(w)?(B(),de(Et(S(C)?"label":"div"),{key:0,id:S(l),for:S(C),class:F(S(s).e("label")),style:qe(S(g))},{default:Z(()=>[Te(ne.$slots,"label",{label:S(P)},()=>[Qe(Ae(S(P)),1)])]),_:3},8,["id","for","class","style"])):le("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),G("div",{class:F(S(s).e("content")),style:qe(S(y))},[Te(ne.$slots,"default"),H(NU,{name:`${S(s).namespace.value}-zoom-in-top`},{default:Z(()=>[S(V)?Te(ne.$slots,"error",{key:0,error:d.value},()=>[G("div",{class:F(S(_))},Ae(d.value),3)]):le("v-if",!0)]),_:3},8,["name"])],6)],10,Ixe)}}});var o7=Ne(Vxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Pxe=Tt(exe,{FormItem:o7}),Fxe=Hn(o7);let ro;const zxe=` height:0 !important; visibility:hidden !important; ${CW()?"":"overflow:hidden !important;"} position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; `,Gxe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Hxe(t){const e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),a=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:Gxe.map(o=>`${o}:${e.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function FB(t,e=1,n){var r;ro||(ro=document.createElement("textarea"),document.body.appendChild(ro));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=Hxe(t);ro.setAttribute("style",`${s};${zxe}`),ro.value=t.value||t.placeholder||"";let l=ro.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),ro.value="";const c=ro.scrollHeight-a;if(lt(e)){let f=c*e;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(lt(n)){let f=c*n;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(r=ro.parentNode)==null||r.removeChild(ro),ro=void 0,u}const Uxe=$e({id:{type:String,default:void 0},size:qr,disabled:Boolean,modelValue:{type:fe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:fe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:_n},prefixIcon:{type:_n},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:fe([Object,Array,String]),default:()=>Nn({})},autofocus:{type:Boolean,default:!1}}),Wxe={[Mt]:t=>ft(t),input:t=>ft(t),change:t=>ft(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},jxe=["role"],Kxe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],Yxe=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],Xxe=ie({name:"ElInput",inheritAttrs:!1}),qxe=ie({...Xxe,props:Uxe,emits:Wxe,setup(t,{expose:e,emit:n}){const r=t,a=fd(),i=ea(),o=O(()=>{const Le={};return r.containerRole==="combobox"&&(Le["aria-haspopup"]=a["aria-haspopup"],Le["aria-owns"]=a["aria-owns"],Le["aria-expanded"]=a["aria-expanded"]),Le}),s=O(()=>[r.type==="textarea"?g.b():v.b(),v.m(h.value),v.is("disabled",p.value),v.is("exceed",oe.value),{[v.b("group")]:i.prepend||i.append,[v.bm("group","append")]:i.append,[v.bm("group","prepend")]:i.prepend,[v.m("prefix")]:i.prefix||r.prefixIcon,[v.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:$.value&&U.value},a.class]),l=O(()=>[v.e("wrapper"),v.is("focus",E.value)]),u=IL({excludeKeys:O(()=>Object.keys(o.value))}),{form:c,formItem:f}=Va(),{inputId:d}=uc(r,{formItemContext:f}),h=hr(),p=ni(),v=De("input"),g=De("textarea"),y=Sn(),m=Sn(),b=z(!1),_=z(!1),x=z(!1),w=z(),C=Sn(r.inputStyle),T=O(()=>y.value||m.value),{wrapperRef:k,isFocused:E,handleFocus:M,handleBlur:D}=xwe(T,{afterBlur(){var Le;r.validateEvent&&((Le=f==null?void 0:f.validate)==null||Le.call(f,"blur").catch(Ue=>void 0))}}),R=O(()=>{var Le;return(Le=c==null?void 0:c.statusIcon)!=null?Le:!1}),A=O(()=>(f==null?void 0:f.validateState)||""),V=O(()=>A.value&&$L[A.value]),P=O(()=>x.value?eSe:o1e),N=O(()=>[a.style,r.inputStyle]),I=O(()=>[r.inputStyle,C.value,{resize:r.resize}]),L=O(()=>ur(r.modelValue)?"":String(r.modelValue)),$=O(()=>r.clearable&&!p.value&&!r.readonly&&!!L.value&&(E.value||b.value)),U=O(()=>r.showPassword&&!p.value&&!r.readonly&&!!L.value&&(!!L.value||E.value)),j=O(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!p.value&&!r.readonly&&!r.showPassword),Y=O(()=>L.value.length),oe=O(()=>!!j.value&&Y.value>Number(u.value.maxlength)),te=O(()=>!!i.suffix||!!r.suffixIcon||$.value||r.showPassword||j.value||!!A.value&&R.value),[re,ne]=Swe(y);da(m,Le=>{if(ue(),!j.value||r.resize!=="both")return;const Ue=Le[0],{width:st}=Ue.contentRect;w.value={right:`calc(100% - ${st+15+6}px)`}});const J=()=>{const{type:Le,autosize:Ue}=r;if(!(!Ut||Le!=="textarea"||!m.value))if(Ue){const st=Lt(Ue)?Ue.minRows:void 0,bt=Lt(Ue)?Ue.maxRows:void 0,At=FB(m.value,st,bt);C.value={overflowY:"hidden",...At},Xe(()=>{m.value.offsetHeight,C.value=At})}else C.value={minHeight:FB(m.value).minHeight}},ue=(Le=>{let Ue=!1;return()=>{var st;if(Ue||!r.autosize)return;((st=m.value)==null?void 0:st.offsetParent)===null||(Le(),Ue=!0)}})(J),X=()=>{const Le=T.value,Ue=r.formatter?r.formatter(L.value):L.value;!Le||Le.value===Ue||(Le.value=Ue)},K=async Le=>{re();let{value:Ue}=Le.target;if(r.formatter&&(Ue=r.parser?r.parser(Ue):Ue),!_.value){if(Ue===L.value){X();return}n(Mt,Ue),n("input",Ue),await Xe(),X(),ne()}},ee=Le=>{n("change",Le.target.value)},se=Le=>{n("compositionstart",Le),_.value=!0},ye=Le=>{var Ue;n("compositionupdate",Le);const st=(Ue=Le.target)==null?void 0:Ue.value,bt=st[st.length-1]||"";_.value=!qw(bt)},we=Le=>{n("compositionend",Le),_.value&&(_.value=!1,K(Le))},be=()=>{x.value=!x.value,Me()},Me=async()=>{var Le;await Xe(),(Le=T.value)==null||Le.focus()},Se=()=>{var Le;return(Le=T.value)==null?void 0:Le.blur()},xe=Le=>{b.value=!1,n("mouseleave",Le)},ke=Le=>{b.value=!0,n("mouseenter",Le)},ge=Le=>{n("keydown",Le)},Ve=()=>{var Le;(Le=T.value)==null||Le.select()},Ke=()=>{n(Mt,""),n("change",""),n("clear"),n("input","")};return Ee(()=>r.modelValue,()=>{var Le;Xe(()=>J()),r.validateEvent&&((Le=f==null?void 0:f.validate)==null||Le.call(f,"change").catch(Ue=>void 0))}),Ee(L,()=>X()),Ee(()=>r.type,async()=>{await Xe(),X(),J()}),ht(()=>{!r.formatter&&r.parser,X(),Xe(J)}),e({input:y,textarea:m,ref:T,textareaStyle:I,autosize:Bn(r,"autosize"),focus:Me,blur:Se,select:Ve,clear:Ke,resizeTextarea:J}),(Le,Ue)=>yt((B(),q("div",kt(S(o),{class:S(s),style:S(N),role:Le.containerRole,onMouseenter:ke,onMouseleave:xe}),[le(" input "),Le.type!=="textarea"?(B(),q(Ze,{key:0},[le(" prepend slot "),Le.$slots.prepend?(B(),q("div",{key:0,class:F(S(v).be("group","prepend"))},[Te(Le.$slots,"prepend")],2)):le("v-if",!0),G("div",{ref_key:"wrapperRef",ref:k,class:F(S(l))},[le(" prefix slot "),Le.$slots.prefix||Le.prefixIcon?(B(),q("span",{key:0,class:F(S(v).e("prefix"))},[G("span",{class:F(S(v).e("prefix-inner"))},[Te(Le.$slots,"prefix"),Le.prefixIcon?(B(),de(S(Ye),{key:0,class:F(S(v).e("icon"))},{default:Z(()=>[(B(),de(Et(Le.prefixIcon)))]),_:1},8,["class"])):le("v-if",!0)],2)],2)):le("v-if",!0),G("input",kt({id:S(d),ref_key:"input",ref:y,class:S(v).e("inner")},S(u),{type:Le.showPassword?x.value?"text":"password":Le.type,disabled:S(p),formatter:Le.formatter,parser:Le.parser,readonly:Le.readonly,autocomplete:Le.autocomplete,tabindex:Le.tabindex,"aria-label":Le.label,placeholder:Le.placeholder,style:Le.inputStyle,form:r.form,autofocus:r.autofocus,onCompositionstart:se,onCompositionupdate:ye,onCompositionend:we,onInput:K,onFocus:Ue[0]||(Ue[0]=(...st)=>S(M)&&S(M)(...st)),onBlur:Ue[1]||(Ue[1]=(...st)=>S(D)&&S(D)(...st)),onChange:ee,onKeydown:ge}),null,16,Kxe),le(" suffix slot "),S(te)?(B(),q("span",{key:1,class:F(S(v).e("suffix"))},[G("span",{class:F(S(v).e("suffix-inner"))},[!S($)||!S(U)||!S(j)?(B(),q(Ze,{key:0},[Te(Le.$slots,"suffix"),Le.suffixIcon?(B(),de(S(Ye),{key:0,class:F(S(v).e("icon"))},{default:Z(()=>[(B(),de(Et(Le.suffixIcon)))]),_:1},8,["class"])):le("v-if",!0)],64)):le("v-if",!0),S($)?(B(),de(S(Ye),{key:1,class:F([S(v).e("icon"),S(v).e("clear")]),onMousedown:it(S(cn),["prevent"]),onClick:Ke},{default:Z(()=>[H(S(ic))]),_:1},8,["class","onMousedown"])):le("v-if",!0),S(U)?(B(),de(S(Ye),{key:2,class:F([S(v).e("icon"),S(v).e("password")]),onClick:be},{default:Z(()=>[(B(),de(Et(S(P))))]),_:1},8,["class"])):le("v-if",!0),S(j)?(B(),q("span",{key:3,class:F(S(v).e("count"))},[G("span",{class:F(S(v).e("count-inner"))},Ae(S(Y))+" / "+Ae(S(u).maxlength),3)],2)):le("v-if",!0),S(A)&&S(V)&&S(R)?(B(),de(S(Ye),{key:4,class:F([S(v).e("icon"),S(v).e("validateIcon"),S(v).is("loading",S(A)==="validating")])},{default:Z(()=>[(B(),de(Et(S(V))))]),_:1},8,["class"])):le("v-if",!0)],2)],2)):le("v-if",!0)],2),le(" append slot "),Le.$slots.append?(B(),q("div",{key:1,class:F(S(v).be("group","append"))},[Te(Le.$slots,"append")],2)):le("v-if",!0)],64)):(B(),q(Ze,{key:1},[le(" textarea "),G("textarea",kt({id:S(d),ref_key:"textarea",ref:m,class:S(g).e("inner")},S(u),{tabindex:Le.tabindex,disabled:S(p),readonly:Le.readonly,autocomplete:Le.autocomplete,style:S(I),"aria-label":Le.label,placeholder:Le.placeholder,form:r.form,autofocus:r.autofocus,onCompositionstart:se,onCompositionupdate:ye,onCompositionend:we,onInput:K,onFocus:Ue[2]||(Ue[2]=(...st)=>S(M)&&S(M)(...st)),onBlur:Ue[3]||(Ue[3]=(...st)=>S(D)&&S(D)(...st)),onChange:ee,onKeydown:ge}),null,16,Yxe),S(j)?(B(),q("span",{key:0,style:qe(w.value),class:F(S(v).e("count"))},Ae(S(Y))+" / "+Ae(S(u).maxlength),7)):le("v-if",!0)],64))],16,jxe)),[[qt,Le.type!=="hidden"]])}});var Zxe=Ne(qxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const ca=Tt(Zxe),Sh=4,s7={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"}},Qxe=({move:t,size:e,bar:n})=>({[n.size]:e,transform:`translate${n.axis}(${t}%)`}),l7=Symbol("scrollbarContextKey"),Jxe=$e({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),e2e="Thumb",t2e=ie({__name:"thumb",props:Jxe,setup(t){const e=t,n=We(l7),r=De("scrollbar");n||dr(e2e,"can not inject scrollbar context");const a=z(),i=z(),o=z({}),s=z(!1);let l=!1,u=!1,c=Ut?document.onselectstart:null;const f=O(()=>s7[e.vertical?"vertical":"horizontal"]),d=O(()=>Qxe({size:e.size,move:e.move,bar:f.value})),h=O(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/e.ratio/i.value[f.value.offset]),p=w=>{var C;if(w.stopPropagation(),w.ctrlKey||[1,2].includes(w.button))return;(C=window.getSelection())==null||C.removeAllRanges(),g(w);const T=w.currentTarget;T&&(o.value[f.value.axis]=T[f.value.offset]-(w[f.value.client]-T.getBoundingClientRect()[f.value.direction]))},v=w=>{if(!i.value||!a.value||!n.wrapElement)return;const C=Math.abs(w.target.getBoundingClientRect()[f.value.direction]-w[f.value.client]),T=i.value[f.value.offset]/2,k=(C-T)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=k*n.wrapElement[f.value.scrollSize]/100},g=w=>{w.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",m),c=document.onselectstart,document.onselectstart=()=>!1},y=w=>{if(!a.value||!i.value||l===!1)return;const C=o.value[f.value.axis];if(!C)return;const T=(a.value.getBoundingClientRect()[f.value.direction]-w[f.value.client])*-1,k=i.value[f.value.offset]-C,E=(T-k)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=E*n.wrapElement[f.value.scrollSize]/100},m=()=>{l=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",m),x(),u&&(s.value=!1)},b=()=>{u=!1,s.value=!!e.size},_=()=>{u=!0,s.value=l};Tn(()=>{x(),document.removeEventListener("mouseup",m)});const x=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Rn(Bn(n,"scrollbarElement"),"mousemove",b),Rn(Bn(n,"scrollbarElement"),"mouseleave",_),(w,C)=>(B(),de(Qn,{name:S(r).b("fade"),persisted:""},{default:Z(()=>[yt(G("div",{ref_key:"instance",ref:a,class:F([S(r).e("bar"),S(r).is(S(f).key)]),onMousedown:v},[G("div",{ref_key:"thumb",ref:i,class:F(S(r).e("thumb")),style:qe(S(d)),onMousedown:p},null,38)],34),[[qt,w.always||s.value]])]),_:1},8,["name"]))}});var zB=Ne(t2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const n2e=$e({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),r2e=ie({__name:"bar",props:n2e,setup(t,{expose:e}){const n=t,r=z(0),a=z(0);return e({handleScroll:o=>{if(o){const s=o.offsetHeight-Sh,l=o.offsetWidth-Sh;a.value=o.scrollTop*100/s*n.ratioY,r.value=o.scrollLeft*100/l*n.ratioX}}}),(o,s)=>(B(),q(Ze,null,[H(zB,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),H(zB,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var a2e=Ne(r2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const i2e=$e({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:fe([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}}),o2e={scroll:({scrollTop:t,scrollLeft:e})=>[t,e].every(lt)},s2e="ElScrollbar",l2e=ie({name:s2e}),u2e=ie({...l2e,props:i2e,emits:o2e,setup(t,{expose:e,emit:n}){const r=t,a=De("scrollbar");let i,o;const s=z(),l=z(),u=z(),c=z("0"),f=z("0"),d=z(),h=z(1),p=z(1),v=O(()=>{const C={};return r.height&&(C.height=Xn(r.height)),r.maxHeight&&(C.maxHeight=Xn(r.maxHeight)),[r.wrapStyle,C]}),g=O(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),y=O(()=>[a.e("view"),r.viewClass]),m=()=>{var C;l.value&&((C=d.value)==null||C.handleScroll(l.value),n("scroll",{scrollTop:l.value.scrollTop,scrollLeft:l.value.scrollLeft}))};function b(C,T){Lt(C)?l.value.scrollTo(C):lt(C)&<(T)&&l.value.scrollTo(C,T)}const _=C=>{lt(C)&&(l.value.scrollTop=C)},x=C=>{lt(C)&&(l.value.scrollLeft=C)},w=()=>{if(!l.value)return;const C=l.value.offsetHeight-Sh,T=l.value.offsetWidth-Sh,k=C**2/l.value.scrollHeight,E=T**2/l.value.scrollWidth,M=Math.max(k,r.minSize),D=Math.max(E,r.minSize);h.value=k/(C-k)/(M/(C-M)),p.value=E/(T-E)/(D/(T-D)),f.value=M+Shr.noresize,C=>{C?(i==null||i(),o==null||o()):({stop:i}=da(u,w),o=Rn("resize",w))},{immediate:!0}),Ee(()=>[r.maxHeight,r.height],()=>{r.native||Xe(()=>{var C;w(),l.value&&((C=d.value)==null||C.handleScroll(l.value))})}),Nt(l7,Qt({scrollbarElement:s,wrapElement:l})),ht(()=>{r.native||Xe(()=>{w()})}),As(()=>w()),e({wrapRef:l,update:w,scrollTo:b,setScrollTop:_,setScrollLeft:x,handleScroll:m}),(C,T)=>(B(),q("div",{ref_key:"scrollbarRef",ref:s,class:F(S(a).b())},[G("div",{ref_key:"wrapRef",ref:l,class:F(S(g)),style:qe(S(v)),onScroll:m},[(B(),de(Et(C.tag),{ref_key:"resizeRef",ref:u,class:F(S(y)),style:qe(C.viewStyle)},{default:Z(()=>[Te(C.$slots,"default")]),_:3},8,["class","style"]))],38),C.native?le("v-if",!0):(B(),de(a2e,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:C.always,"ratio-x":p.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var c2e=Ne(u2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Rl=Tt(c2e),eA=Symbol("popper"),u7=Symbol("popperContent"),f2e=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],c7=$e({role:{type:String,values:f2e,default:"tooltip"}}),d2e=ie({name:"ElPopper",inheritAttrs:!1}),h2e=ie({...d2e,props:c7,setup(t,{expose:e}){const n=t,r=z(),a=z(),i=z(),o=z(),s=O(()=>n.role),l={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return e(l),Nt(eA,l),(u,c)=>Te(u.$slots,"default")}});var v2e=Ne(h2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const f7=$e({arrowOffset:{type:Number,default:5}}),p2e=ie({name:"ElPopperArrow",inheritAttrs:!1}),g2e=ie({...p2e,props:f7,setup(t,{expose:e}){const n=t,r=De("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=We(u7,void 0);return Ee(()=>n.arrowOffset,s=>{a.value=s}),Tn(()=>{i.value=void 0}),e({arrowRef:i}),(s,l)=>(B(),q("span",{ref_key:"arrowRef",ref:i,class:F(S(r).e("arrow")),style:qe(S(o)),"data-popper-arrow":""},null,6))}});var y2e=Ne(g2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const m2e="ElOnlyChild",d7=ie({name:m2e,setup(t,{slots:e,attrs:n}){var r;const a=We(z9),i=W_e((r=a==null?void 0:a.setForwardRef)!=null?r:cn);return()=>{var o;const s=(o=e.default)==null?void 0:o.call(e,n);if(!s||s.length>1)return null;const l=h7(s);return l?yt(xs(l,n),[[i]]):null}}});function h7(t){if(!t)return null;const e=t;for(const n of e){if(Lt(n))switch(n.type){case Ma:continue;case Uv:case"svg":return GB(n);case Ze:return h7(n.children);default:return n}return GB(n)}return null}function GB(t){const e=De("only-child");return H("span",{class:e.e("content")},[t])}const v7=$e({virtualRef:{type:fe(Object)},virtualTriggering:Boolean,onMouseenter:{type:fe(Function)},onMouseleave:{type:fe(Function)},onClick:{type:fe(Function)},onKeydown:{type:fe(Function)},onFocus:{type:fe(Function)},onBlur:{type:fe(Function)},onContextmenu:{type:fe(Function)},id:String,open:Boolean}),b2e=ie({name:"ElPopperTrigger",inheritAttrs:!1}),S2e=ie({...b2e,props:v7,setup(t,{expose:e}){const n=t,{role:r,triggerRef:a}=We(eA,void 0);U_e(a);const i=O(()=>s.value?n.id:void 0),o=O(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=O(()=>{if(r&&r.value!=="tooltip")return r.value}),l=O(()=>s.value?`${n.open}`:void 0);let u;return ht(()=>{Ee(()=>n.virtualRef,c=>{c&&(a.value=ui(c))},{immediate:!0}),Ee(a,(c,f)=>{u==null||u(),u=void 0,Ui(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const p=n[d];p&&(c.addEventListener(d.slice(2).toLowerCase(),p),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),p))}),u=Ee([i,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,p)=>{ur(d[p])?c.removeAttribute(h):c.setAttribute(h,d[p])})},{immediate:!0})),Ui(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),Tn(()=>{u==null||u(),u=void 0}),e({triggerRef:a}),(c,f)=>c.virtualTriggering?le("v-if",!0):(B(),de(S(d7),kt({key:0},c.$attrs,{"aria-controls":S(i),"aria-describedby":S(o),"aria-expanded":S(l),"aria-haspopup":S(s)}),{default:Z(()=>[Te(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var _2e=Ne(S2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const P2="focus-trap.focus-after-trapped",F2="focus-trap.focus-after-released",w2e="focus-trap.focusout-prevented",HB={cancelable:!0,bubbles:!1},x2e={cancelable:!0,bubbles:!1},UB="focusAfterTrapped",WB="focusAfterReleased",tA=Symbol("elFocusTrap"),nA=z(),ax=z(0),rA=z(0);let Pm=0;const p7=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},jB=(t,e)=>{for(const n of t)if(!C2e(n,e))return n},C2e=(t,e)=>{if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},T2e=t=>{const e=p7(t),n=jB(e,t),r=jB(e.reverse(),t);return[n,r]},E2e=t=>t instanceof HTMLInputElement&&"select"in t,Jl=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),rA.value=window.performance.now(),t!==n&&E2e(t)&&e&&t.select()}};function KB(t,e){const n=[...t],r=t.indexOf(e);return r!==-1&&n.splice(r,1),n}const M2e=()=>{let t=[];return{push:r=>{const a=t[0];a&&r!==a&&a.pause(),t=KB(t,r),t.unshift(r)},remove:r=>{var a,i;t=KB(t,r),(i=(a=t[0])==null?void 0:a.resume)==null||i.call(a)}}},k2e=(t,e=!1)=>{const n=document.activeElement;for(const r of t)if(Jl(r,e),document.activeElement!==n)return},YB=M2e(),D2e=()=>ax.value>rA.value,Fm=()=>{nA.value="pointer",ax.value=window.performance.now()},XB=()=>{nA.value="keyboard",ax.value=window.performance.now()},R2e=()=>(ht(()=>{Pm===0&&(document.addEventListener("mousedown",Fm),document.addEventListener("touchstart",Fm),document.addEventListener("keydown",XB)),Pm++}),Tn(()=>{Pm--,Pm<=0&&(document.removeEventListener("mousedown",Fm),document.removeEventListener("touchstart",Fm),document.removeEventListener("keydown",XB))}),{focusReason:nA,lastUserFocusTimestamp:ax,lastAutomatedFocusTimestamp:rA}),zm=t=>new CustomEvent(w2e,{...x2e,detail:t}),L2e=ie({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[UB,WB,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=z();let r,a;const{focusReason:i}=R2e();F_e(p=>{t.trapped&&!o.paused&&e("release-requested",p)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!t.loop&&!t.trapped||o.paused)return;const{key:v,altKey:g,ctrlKey:y,metaKey:m,currentTarget:b,shiftKey:_}=p,{loop:x}=t,w=v===et.tab&&!g&&!y&&!m,C=document.activeElement;if(w&&C){const T=b,[k,E]=T2e(T);if(k&&E){if(!_&&C===E){const D=zm({focusReason:i.value});e("focusout-prevented",D),D.defaultPrevented||(p.preventDefault(),x&&Jl(k,!0))}else if(_&&[k,T].includes(C)){const D=zm({focusReason:i.value});e("focusout-prevented",D),D.defaultPrevented||(p.preventDefault(),x&&Jl(E,!0))}}else if(C===T){const D=zm({focusReason:i.value});e("focusout-prevented",D),D.defaultPrevented||p.preventDefault()}}};Nt(tA,{focusTrapRef:n,onKeydown:s}),Ee(()=>t.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),Ee([n],([p],[v])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",c),p.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",c),v.removeEventListener("focusout",f))});const l=p=>{e(UB,p)},u=p=>e(WB,p),c=p=>{const v=S(n);if(!v)return;const g=p.target,y=p.relatedTarget,m=g&&v.contains(g);t.trapped||y&&v.contains(y)||(r=y),m&&e("focusin",p),!o.paused&&t.trapped&&(m?a=g:Jl(a,!0))},f=p=>{const v=S(n);if(!(o.paused||!v))if(t.trapped){const g=p.relatedTarget;!ur(g)&&!v.contains(g)&&setTimeout(()=>{if(!o.paused&&t.trapped){const y=zm({focusReason:i.value});e("focusout-prevented",y),y.defaultPrevented||Jl(a,!0)}},0)}else{const g=p.target;g&&v.contains(g)||e("focusout",p)}};async function d(){await Xe();const p=S(n);if(p){YB.push(o);const v=p.contains(document.activeElement)?r:document.activeElement;if(r=v,!p.contains(v)){const y=new Event(P2,HB);p.addEventListener(P2,l),p.dispatchEvent(y),y.defaultPrevented||Xe(()=>{let m=t.focusStartEl;ft(m)||(Jl(m),document.activeElement!==m&&(m="first")),m==="first"&&k2e(p7(p),!0),(document.activeElement===v||m==="container")&&Jl(p)})}}}function h(){const p=S(n);if(p){p.removeEventListener(P2,l);const v=new CustomEvent(F2,{...HB,detail:{focusReason:i.value}});p.addEventListener(F2,u),p.dispatchEvent(v),!v.defaultPrevented&&(i.value=="keyboard"||!D2e()||p.contains(document.activeElement))&&Jl(r??document.body),p.removeEventListener(F2,u),YB.remove(o)}}return ht(()=>{t.trapped&&d(),Ee(()=>t.trapped,p=>{p?d():h()})}),Tn(()=>{t.trapped&&h()}),{onKeydown:s}}});function A2e(t,e,n,r,a,i){return Te(t.$slots,"default",{handleKeydown:t.onKeydown})}var ix=Ne(L2e,[["render",A2e],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const O2e=["fixed","absolute"],N2e=$e({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:fe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:pd,default:"bottom"},popperOptions:{type:fe(Object),default:()=>({})},strategy:{type:String,values:O2e,default:"absolute"}}),g7=$e({...N2e,id:String,style:{type:fe([String,Array,Object])},className:{type:fe([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:fe([String,Array,Object])},popperStyle:{type:fe([String,Array,Object])},referenceEl:{type:fe(Object)},triggerTargetEl:{type:fe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),$2e={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},I2e=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:a}=t,i={placement:n,strategy:r,...a,modifiers:[...V2e(t),...e]};return P2e(i,a==null?void 0:a.modifiers),i},B2e=t=>{if(Ut)return ui(t)};function V2e(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:r}=t;return[{name:"offset",options:{offset:[0,e??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function P2e(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]])}const F2e=0,z2e=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:r,role:a}=We(eA,void 0),i=z(),o=z(),s=O(()=>({name:"eventListeners",enabled:!!t.visible})),l=O(()=>{var y;const m=S(i),b=(y=S(o))!=null?y:F2e;return{name:"arrow",enabled:!A0e(m),options:{element:m,padding:b}}}),u=O(()=>({onFirstUpdate:()=>{p()},...I2e(t,[S(l),S(s)])})),c=O(()=>B2e(t.referenceEl)||S(r)),{attributes:f,state:d,styles:h,update:p,forceUpdate:v,instanceRef:g}=I_e(c,n,u);return Ee(g,y=>e.value=y),ht(()=>{Ee(()=>{var y;return(y=S(c))==null?void 0:y.getBoundingClientRect()},()=>{p()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:g,state:d,styles:h,role:a,forceUpdate:v,update:p}},G2e=(t,{attributes:e,styles:n,role:r})=>{const{nextZIndex:a}=Xv(),i=De("popper"),o=O(()=>S(e).popper),s=z(t.zIndex||a()),l=O(()=>[i.b(),i.is("pure",t.pure),i.is(t.effect),t.popperClass]),u=O(()=>[{zIndex:S(s)},S(n).popper,t.popperStyle||{}]),c=O(()=>r.value==="dialog"?"false":void 0),f=O(()=>S(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=t.zIndex||a()}}},H2e=(t,e)=>{const n=z(!1),r=z();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:u=>{t.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{t.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,e("close")}}},U2e=ie({name:"ElPopperContent"}),W2e=ie({...U2e,props:g7,emits:$2e,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=H2e(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:p,instanceRef:v,role:g,update:y}=z2e(r),{ariaModal:m,arrowStyle:b,contentAttrs:_,contentClass:x,contentStyle:w,updateZIndex:C}=G2e(r,{styles:p,attributes:f,role:g}),T=We(ks,void 0),k=z();Nt(u7,{arrowStyle:b,arrowRef:d,arrowOffset:k}),T&&(T.addInputId||T.removeInputId)&&Nt(ks,{...T,addInputId:cn,removeInputId:cn});let E;const M=(R=!0)=>{y(),R&&C()},D=()=>{M(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return ht(()=>{Ee(()=>r.triggerTargetEl,(R,A)=>{E==null||E(),E=void 0;const V=S(R||h.value),P=S(A||h.value);Ui(V)&&(E=Ee([g,()=>r.ariaLabel,m,()=>r.id],N=>{["role","aria-label","aria-modal","id"].forEach((I,L)=>{ur(N[L])?V.removeAttribute(I):V.setAttribute(I,N[L])})},{immediate:!0})),P!==V&&Ui(P)&&["role","aria-label","aria-modal","id"].forEach(N=>{P.removeAttribute(N)})},{immediate:!0}),Ee(()=>r.visible,D,{immediate:!0})}),Tn(()=>{E==null||E(),E=void 0}),e({popperContentRef:h,popperInstanceRef:v,updatePopper:M,contentStyle:w}),(R,A)=>(B(),q("div",kt({ref_key:"contentRef",ref:h},S(_),{style:S(w),class:S(x),tabindex:"-1",onMouseenter:A[0]||(A[0]=V=>R.$emit("mouseenter",V)),onMouseleave:A[1]||(A[1]=V=>R.$emit("mouseleave",V))}),[H(S(ix),{trapped:S(i),"trap-on-focus-in":!0,"focus-trap-el":S(h),"focus-start-el":S(a),onFocusAfterTrapped:S(s),onFocusAfterReleased:S(o),onFocusin:S(l),onFocusoutPrevented:S(u),onReleaseRequested:S(c)},{default:Z(()=>[Te(R.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var j2e=Ne(W2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const y7=Tt(v2e),ox=Symbol("elTooltip"),Nr=$e({...H_e,...g7,appendTo:{type:fe([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:fe(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),$0=$e({...v7,disabled:Boolean,trigger:{type:fe([String,Array]),default:"hover"},triggerKeys:{type:fe(Array),default:()=>[et.enter,et.space]}}),{useModelToggleProps:K2e,useModelToggleEmits:Y2e,useModelToggle:X2e}=C9("visible"),q2e=$e({...c7,...K2e,...Nr,...$0,...f7,showArrow:{type:Boolean,default:!0}}),Z2e=[...Y2e,"before-show","before-hide","show","hide","open","close"],Q2e=(t,e)=>He(t)?t.includes(e):t===e,Dd=(t,e,n)=>r=>{Q2e(S(t),e)&&n(r)},J2e=ie({name:"ElTooltipTrigger"}),eCe=ie({...J2e,props:$0,setup(t,{expose:e}){const n=t,r=De("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=We(ox,void 0),c=z(null),f=()=>{if(S(a)||n.disabled)return!0},d=Bn(n,"trigger"),h=Gn(f,Dd(d,"hover",s)),p=Gn(f,Dd(d,"hover",l)),v=Gn(f,Dd(d,"click",_=>{_.button===0&&u(_)})),g=Gn(f,Dd(d,"focus",s)),y=Gn(f,Dd(d,"focus",l)),m=Gn(f,Dd(d,"contextmenu",_=>{_.preventDefault(),u(_)})),b=Gn(f,_=>{const{code:x}=_;n.triggerKeys.includes(x)&&(_.preventDefault(),u(_))});return e({triggerRef:c}),(_,x)=>(B(),de(S(_2e),{id:S(i),"virtual-ref":_.virtualRef,open:S(o),"virtual-triggering":_.virtualTriggering,class:F(S(r).e("trigger")),onBlur:S(y),onClick:S(v),onContextmenu:S(m),onFocus:S(g),onMouseenter:S(h),onMouseleave:S(p),onKeydown:S(b)},{default:Z(()=>[Te(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var tCe=Ne(eCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const nCe=ie({name:"ElTooltipContent",inheritAttrs:!1}),rCe=ie({...nCe,props:Nr,setup(t,{expose:e}){const n=t,{selector:r}=P9(),a=De("tooltip"),i=z(null),o=z(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:p,onBeforeShow:v,onBeforeHide:g}=We(ox,void 0),y=O(()=>n.transition||`${a.namespace.value}-fade-in-linear`),m=O(()=>n.persistent);Tn(()=>{o.value=!0});const b=O(()=>S(m)?!0:S(u)),_=O(()=>n.disabled?!1:S(u)),x=O(()=>n.appendTo||r.value),w=O(()=>{var N;return(N=n.style)!=null?N:{}}),C=O(()=>!S(u)),T=()=>{p()},k=()=>{if(S(s))return!0},E=Gn(k,()=>{n.enterable&&S(c)==="hover"&&d()}),M=Gn(k,()=>{S(c)==="hover"&&f()}),D=()=>{var N,I;(I=(N=i.value)==null?void 0:N.updatePopper)==null||I.call(N),v==null||v()},R=()=>{g==null||g()},A=()=>{h(),P=hL(O(()=>{var N;return(N=i.value)==null?void 0:N.popperContentRef}),()=>{if(S(s))return;S(c)!=="hover"&&f()})},V=()=>{n.virtualTriggering||f()};let P;return Ee(()=>S(u),N=>{N||P==null||P()},{flush:"post"}),Ee(()=>n.content,()=>{var N,I;(I=(N=i.value)==null?void 0:N.updatePopper)==null||I.call(N)}),e({contentRef:i}),(N,I)=>(B(),de(Oy,{disabled:!N.teleported,to:S(x)},[H(Qn,{name:S(y),onAfterLeave:T,onBeforeEnter:D,onAfterEnter:A,onBeforeLeave:R},{default:Z(()=>[S(b)?yt((B(),de(S(j2e),kt({key:0,id:S(l),ref_key:"contentRef",ref:i},N.$attrs,{"aria-label":N.ariaLabel,"aria-hidden":S(C),"boundaries-padding":N.boundariesPadding,"fallback-placements":N.fallbackPlacements,"gpu-acceleration":N.gpuAcceleration,offset:N.offset,placement:N.placement,"popper-options":N.popperOptions,strategy:N.strategy,effect:N.effect,enterable:N.enterable,pure:N.pure,"popper-class":N.popperClass,"popper-style":[N.popperStyle,S(w)],"reference-el":N.referenceEl,"trigger-target-el":N.triggerTargetEl,visible:S(_),"z-index":N.zIndex,onMouseenter:S(E),onMouseleave:S(M),onBlur:V,onClose:S(f)}),{default:Z(()=>[o.value?le("v-if",!0):Te(N.$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"])),[[qt,S(_)]]):le("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var aCe=Ne(rCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const iCe=["innerHTML"],oCe={key:1},sCe=ie({name:"ElTooltip"}),lCe=ie({...sCe,props:q2e,emits:Z2e,setup(t,{expose:e,emit:n}){const r=t;G_e();const a=Ki(),i=z(),o=z(),s=()=>{var y;const m=S(i);m&&((y=m.popperInstanceRef)==null||y.update())},l=z(!1),u=z(),{show:c,hide:f,hasUpdateHandler:d}=X2e({indicator:l,toggleReason:u}),{onOpen:h,onClose:p}=F9({showAfter:Bn(r,"showAfter"),hideAfter:Bn(r,"hideAfter"),autoClose:Bn(r,"autoClose"),open:c,close:f}),v=O(()=>cr(r.visible)&&!d.value);Nt(ox,{controlled:v,id:a,open:Hv(l),trigger:Bn(r,"trigger"),onOpen:y=>{h(y)},onClose:y=>{p(y)},onToggle:y=>{S(l)?p(y):h(y)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),Ee(()=>r.disabled,y=>{y&&l.value&&(l.value=!1)});const g=y=>{var m,b;const _=(b=(m=o.value)==null?void 0:m.contentRef)==null?void 0:b.popperContentRef,x=(y==null?void 0:y.relatedTarget)||document.activeElement;return _&&_.contains(x)};return lU(()=>l.value&&f()),e({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:p,hide:f}),(y,m)=>(B(),de(S(y7),{ref_key:"popperRef",ref:i,role:y.role},{default:Z(()=>[H(tCe,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:Z(()=>[y.$slots.default?Te(y.$slots,"default",{key:0}):le("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),H(aCe,{ref_key:"contentRef",ref:o,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:Z(()=>[Te(y.$slots,"content",{},()=>[y.rawContent?(B(),q("span",{key:0,innerHTML:y.content},null,8,iCe)):(B(),q("span",oCe,Ae(y.content),1))]),y.showArrow?(B(),de(S(y2e),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):le("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 uCe=Ne(lCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Na=Tt(uCe),cCe=$e({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:fe(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:fe([Function,Array]),default:cn},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Nr.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),fCe={[Mt]:t=>ft(t),[Da]:t=>ft(t),[kn]:t=>ft(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,select:t=>Lt(t)},dCe=["aria-expanded","aria-owns"],hCe={key:0},vCe=["id","aria-selected","onClick"],m7="ElAutocomplete",pCe=ie({name:m7,inheritAttrs:!1}),gCe=ie({...pCe,props:cCe,emits:fCe,setup(t,{expose:e,emit:n}){const r=t,a=IL(),i=fd(),o=ni(),s=De("autocomplete"),l=z(),u=z(),c=z(),f=z();let d=!1,h=!1;const p=z([]),v=z(-1),g=z(""),y=z(!1),m=z(!1),b=z(!1),_=O(()=>s.b(String(Qw()))),x=O(()=>i.style),w=O(()=>(p.value.length>0||b.value)&&y.value),C=O(()=>!r.hideLoading&&b.value),T=O(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),k=()=>{w.value&&(g.value=`${l.value.$el.offsetWidth}px`)},E=()=>{v.value=-1},D=Oa(async re=>{if(m.value)return;const ne=J=>{b.value=!1,!m.value&&(He(J)?(p.value=J,v.value=r.highlightFirstItem?0:-1):dr(m7,"autocomplete suggestions must be an array"))};if(b.value=!0,He(r.fetchSuggestions))ne(r.fetchSuggestions);else{const J=await r.fetchSuggestions(re,ne);He(J)&&ne(J)}},r.debounce),R=re=>{const ne=!!re;if(n(Da,re),n(Mt,re),m.value=!1,y.value||(y.value=ne),!r.triggerOnFocus&&!re){m.value=!0,p.value=[];return}D(re)},A=re=>{var ne;o.value||(((ne=re.target)==null?void 0:ne.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(y.value=!0)},V=re=>{n(kn,re)},P=re=>{h?h=!1:(y.value=!0,n("focus",re),r.triggerOnFocus&&!d&&D(String(r.modelValue)))},N=re=>{setTimeout(()=>{var ne;if((ne=c.value)!=null&&ne.isFocusInsideContent()){h=!0;return}y.value&&U(),n("blur",re)})},I=()=>{y.value=!1,n(Mt,""),n("clear")},L=async()=>{w.value&&v.value>=0&&v.value{w.value&&(re.preventDefault(),re.stopPropagation(),U())},U=()=>{y.value=!1},j=()=>{var re;(re=l.value)==null||re.focus()},Y=()=>{var re;(re=l.value)==null||re.blur()},oe=async re=>{n(Da,re[r.valueKey]),n(Mt,re[r.valueKey]),n("select",re),p.value=[],v.value=-1},te=re=>{if(!w.value||b.value)return;if(re<0){v.value=-1;return}re>=p.value.length&&(re=p.value.length-1);const ne=u.value.querySelector(`.${s.be("suggestion","wrap")}`),he=ne.querySelectorAll(`.${s.be("suggestion","list")} li`)[re],ue=ne.scrollTop,{offsetTop:X,scrollHeight:K}=he;X+K>ue+ne.clientHeight&&(ne.scrollTop+=K),X{w.value&&U()}),ht(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${_.value}-item-${v.value}`),d=l.value.ref.hasAttribute("readonly")}),e({highlightedIndex:v,activated:y,loading:b,inputRef:l,popperRef:c,suggestions:p,handleSelect:oe,handleKeyEnter:L,focus:j,blur:Y,close:U,highlight:te}),(re,ne)=>(B(),de(S(Na),{ref_key:"popperRef",ref:c,visible:S(w),placement:re.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[S(s).e("popper"),re.popperClass],teleported:re.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${S(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:k,onHide:E},{content:Z(()=>[G("div",{ref_key:"regionRef",ref:u,class:F([S(s).b("suggestion"),S(s).is("loading",S(C))]),style:qe({[re.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[H(S(Rl),{id:S(_),tag:"ul","wrap-class":S(s).be("suggestion","wrap"),"view-class":S(s).be("suggestion","list"),role:"listbox"},{default:Z(()=>[S(C)?(B(),q("li",hCe,[H(S(Ye),{class:F(S(s).is("loading"))},{default:Z(()=>[H(S(oc))]),_:1},8,["class"])])):(B(!0),q(Ze,{key:1},Pt(p.value,(J,he)=>(B(),q("li",{id:`${S(_)}-item-${he}`,key:he,class:F({highlighted:v.value===he}),role:"option","aria-selected":v.value===he,onClick:ue=>oe(J)},[Te(re.$slots,"default",{item:J},()=>[Qe(Ae(J[re.valueKey]),1)])],10,vCe))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:Z(()=>[G("div",{ref_key:"listboxRef",ref:f,class:F([S(s).b(),re.$attrs.class]),style:qe(S(x)),role:"combobox","aria-haspopup":"listbox","aria-expanded":S(w),"aria-owns":S(_)},[H(S(ca),kt({ref_key:"inputRef",ref:l},S(a),{clearable:re.clearable,disabled:S(o),name:re.name,"model-value":re.modelValue,onInput:R,onChange:V,onFocus:P,onBlur:N,onClear:I,onKeydown:[ne[0]||(ne[0]=jt(it(J=>te(v.value-1),["prevent"]),["up"])),ne[1]||(ne[1]=jt(it(J=>te(v.value+1),["prevent"]),["down"])),jt(L,["enter"]),jt(U,["tab"]),jt($,["esc"])],onMousedown:A}),gl({_:2},[re.$slots.prepend?{name:"prepend",fn:Z(()=>[Te(re.$slots,"prepend")])}:void 0,re.$slots.append?{name:"append",fn:Z(()=>[Te(re.$slots,"append")])}:void 0,re.$slots.prefix?{name:"prefix",fn:Z(()=>[Te(re.$slots,"prefix")])}:void 0,re.$slots.suffix?{name:"suffix",fn:Z(()=>[Te(re.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,dCe)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var yCe=Ne(gCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const mCe=Tt(yCe),bCe=$e({size:{type:[Number,String],values:Ns,default:"",validator:t=>lt(t)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:_n},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:fe(String),default:"cover"}}),SCe={error:t=>t instanceof Event},_Ce=["src","alt","srcset"],wCe=ie({name:"ElAvatar"}),xCe=ie({...wCe,props:bCe,emits:SCe,setup(t,{emit:e}){const n=t,r=De("avatar"),a=z(!1),i=O(()=>{const{size:u,icon:c,shape:f}=n,d=[r.b()];return ft(u)&&d.push(r.m(u)),c&&d.push(r.m("icon")),f&&d.push(r.m(f)),d}),o=O(()=>{const{size:u}=n;return lt(u)?r.cssVarBlock({size:Xn(u)||""}):void 0}),s=O(()=>({objectFit:n.fit}));Ee(()=>n.src,()=>a.value=!1);function l(u){a.value=!0,e("error",u)}return(u,c)=>(B(),q("span",{class:F(S(i)),style:qe(S(o))},[(u.src||u.srcSet)&&!a.value?(B(),q("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:qe(S(s)),onError:l},null,44,_Ce)):u.icon?(B(),de(S(Ye),{key:1},{default:Z(()=>[(B(),de(Et(u.icon)))]),_:1})):Te(u.$slots,"default",{key:2})],6))}});var CCe=Ne(xCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const TCe=Tt(CCe),ECe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},MCe={click:t=>t instanceof MouseEvent},kCe=(t,e,n)=>{const r=Sn(),a=Sn(),i=z(!1),o=()=>{r.value&&(i.value=r.value.scrollTop>=t.visibilityHeight)},s=u=>{var c;(c=r.value)==null||c.scrollTo({top:0,behavior:"smooth"}),e("click",u)},l=xW(o,300,!0);return Rn(a,"scroll",l),ht(()=>{var u;a.value=document,r.value=document.documentElement,t.target&&(r.value=(u=document.querySelector(t.target))!=null?u:void 0,r.value||dr(n,`target does not exist: ${t.target}`),a.value=r.value),o()}),{visible:i,handleClick:s}},b7="ElBacktop",DCe=ie({name:b7}),RCe=ie({...DCe,props:ECe,emits:MCe,setup(t,{emit:e}){const n=t,r=De("backtop"),{handleClick:a,visible:i}=kCe(n,e,b7),o=O(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(B(),de(Qn,{name:`${S(r).namespace.value}-fade-in`},{default:Z(()=>[S(i)?(B(),q("div",{key:0,style:qe(S(o)),class:F(S(r).b()),onClick:l[0]||(l[0]=it((...u)=>S(a)&&S(a)(...u),["stop"]))},[Te(s.$slots,"default",{},()=>[H(S(Ye),{class:F(S(r).e("icon"))},{default:Z(()=>[H(S(Pye))]),_:1},8,["class"])])],6)):le("v-if",!0)]),_:3},8,["name"]))}});var LCe=Ne(RCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const ACe=Tt(LCe),OCe=$e({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"}}),NCe=["textContent"],$Ce=ie({name:"ElBadge"}),ICe=ie({...$Ce,props:OCe,setup(t,{expose:e}){const n=t,r=De("badge"),a=O(()=>n.isDot?"":lt(n.value)&<(n.max)?n.max(B(),q("div",{class:F(S(r).b())},[Te(i.$slots,"default"),H(Qn,{name:`${S(r).namespace.value}-zoom-in-center`,persisted:""},{default:Z(()=>[yt(G("sup",{class:F([S(r).e("content"),S(r).em("content",i.type),S(r).is("fixed",!!i.$slots.default),S(r).is("dot",i.isDot)]),textContent:Ae(S(a))},null,10,NCe),[[qt,!i.hidden&&(S(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var BCe=Ne(ICe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const S7=Tt(BCe),_7=Symbol("breadcrumbKey"),VCe=$e({separator:{type:String,default:"/"},separatorIcon:{type:_n}}),PCe=ie({name:"ElBreadcrumb"}),FCe=ie({...PCe,props:VCe,setup(t){const e=t,n=De("breadcrumb"),r=z();return Nt(_7,e),ht(()=>{const a=r.value.querySelectorAll(`.${n.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>(B(),q("div",{ref_key:"breadcrumb",ref:r,class:F(S(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[Te(a.$slots,"default")],2))}});var zCe=Ne(FCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const GCe=$e({to:{type:fe([String,Object]),default:""},replace:{type:Boolean,default:!1}}),HCe=ie({name:"ElBreadcrumbItem"}),UCe=ie({...HCe,props:GCe,setup(t){const e=t,n=wt(),r=We(_7,void 0),a=De("breadcrumb"),i=n.appContext.config.globalProperties.$router,o=z(),s=()=>{!e.to||!i||(e.replace?i.replace(e.to):i.push(e.to))};return(l,u)=>{var c,f;return B(),q("span",{class:F(S(a).e("item"))},[G("span",{ref_key:"link",ref:o,class:F([S(a).e("inner"),S(a).is("link",!!l.to)]),role:"link",onClick:s},[Te(l.$slots,"default")],2),(c=S(r))!=null&&c.separatorIcon?(B(),de(S(Ye),{key:0,class:F(S(a).e("separator"))},{default:Z(()=>[(B(),de(Et(S(r).separatorIcon)))]),_:1},8,["class"])):(B(),q("span",{key:1,class:F(S(a).e("separator")),role:"presentation"},Ae((f=S(r))==null?void 0:f.separator),3))],2)}}});var w7=Ne(UCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const WCe=Tt(zCe,{BreadcrumbItem:w7}),jCe=Hn(w7),x7=Symbol("buttonGroupContextKey"),KCe=(t,e)=>{Ts({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},O(()=>t.type==="text"));const n=We(x7,void 0),r=nx("button"),{form:a}=Va(),i=hr(O(()=>n==null?void 0:n.size)),o=ni(),s=z(),l=ea(),u=O(()=>t.type||(n==null?void 0:n.type)||""),c=O(()=>{var p,v,g;return(g=(v=t.autoInsertSpace)!=null?v:(p=r.value)==null?void 0:p.autoInsertSpace)!=null?g:!1}),f=O(()=>t.tag==="button"?{ariaDisabled:o.value||t.loading,disabled:o.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),d=O(()=>{var p;const v=(p=l.default)==null?void 0:p.call(l);if(c.value&&(v==null?void 0:v.length)===1){const g=v[0];if((g==null?void 0:g.type)===Uv){const y=g.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:o,_size:i,_type:u,_ref:s,_props:f,shouldAddSpace:d,handleClick:p=>{t.nativeType==="reset"&&(a==null||a.resetFields()),e("click",p)}}},$M=["default","primary","success","warning","info","danger","text",""],YCe=["button","submit","reset"],IM=$e({size:qr,disabled:Boolean,type:{type:String,values:$M,default:""},icon:{type:_n},nativeType:{type:String,values:YCe,default:"button"},loading:Boolean,loadingIcon:{type:_n,default:()=>oc},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:fe([String,Object]),default:"button"}}),XCe={click:t=>t instanceof MouseEvent};function Yr(t,e){qCe(t)&&(t="100%");var n=ZCe(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function Gm(t){return Math.min(1,Math.max(0,t))}function qCe(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function ZCe(t){return typeof t=="string"&&t.indexOf("%")!==-1}function C7(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Hm(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Sf(t){return t.length===1?"0"+t:String(t)}function QCe(t,e,n){return{r:Yr(t,255)*255,g:Yr(e,255)*255,b:Yr(n,255)*255}}function qB(t,e,n){t=Yr(t,255),e=Yr(e,255),n=Yr(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),i=0,o=0,s=(r+a)/2;if(r===a)o=0,i=0;else{var l=r-a;switch(o=s>.5?l/(2-r-a):l/(r+a),r){case t:i=(e-n)/l+(e1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function JCe(t,e,n){var r,a,i;if(t=Yr(t,360),e=Yr(e,100),n=Yr(n,100),e===0)a=n,i=n,r=n;else{var o=n<.5?n*(1+e):n+e-n*e,s=2*n-o;r=z2(s,o,t+1/3),a=z2(s,o,t),i=z2(s,o,t-1/3)}return{r:r*255,g:a*255,b:i*255}}function ZB(t,e,n){t=Yr(t,255),e=Yr(e,255),n=Yr(n,255);var r=Math.max(t,e,n),a=Math.min(t,e,n),i=0,o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case t:i=(e-n)/s+(e>16,g:(t&65280)>>8,b:t&255}}var BM={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 aTe(t){var e={r:0,g:0,b:0},n=1,r=null,a=null,i=null,o=!1,s=!1;return typeof t=="string"&&(t=sTe(t)),typeof t=="object"&&(Fs(t.r)&&Fs(t.g)&&Fs(t.b)?(e=QCe(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Fs(t.h)&&Fs(t.s)&&Fs(t.v)?(r=Hm(t.s),a=Hm(t.v),e=eTe(t.h,r,a),o=!0,s="hsv"):Fs(t.h)&&Fs(t.s)&&Fs(t.l)&&(r=Hm(t.s),i=Hm(t.l),e=JCe(t.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=C7(n),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var iTe="[-\\+]?\\d+%?",oTe="[-\\+]?\\d*\\.\\d+%?",gu="(?:".concat(oTe,")|(?:").concat(iTe,")"),G2="[\\s|\\(]+(".concat(gu,")[,|\\s]+(").concat(gu,")[,|\\s]+(").concat(gu,")\\s*\\)?"),H2="[\\s|\\(]+(".concat(gu,")[,|\\s]+(").concat(gu,")[,|\\s]+(").concat(gu,")[,|\\s]+(").concat(gu,")\\s*\\)?"),oo={CSS_UNIT:new RegExp(gu),rgb:new RegExp("rgb"+G2),rgba:new RegExp("rgba"+H2),hsl:new RegExp("hsl"+G2),hsla:new RegExp("hsla"+H2),hsv:new RegExp("hsv"+G2),hsva:new RegExp("hsva"+H2),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 sTe(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(BM[t])t=BM[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=oo.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=oo.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=oo.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=oo.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=oo.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=oo.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=oo.hex8.exec(t),n?{r:ai(n[1]),g:ai(n[2]),b:ai(n[3]),a:JB(n[4]),format:e?"name":"hex8"}:(n=oo.hex6.exec(t),n?{r:ai(n[1]),g:ai(n[2]),b:ai(n[3]),format:e?"name":"hex"}:(n=oo.hex4.exec(t),n?{r:ai(n[1]+n[1]),g:ai(n[2]+n[2]),b:ai(n[3]+n[3]),a:JB(n[4]+n[4]),format:e?"name":"hex8"}:(n=oo.hex3.exec(t),n?{r:ai(n[1]+n[1]),g:ai(n[2]+n[2]),b:ai(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function Fs(t){return!!oo.CSS_UNIT.exec(String(t))}var T7=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=rTe(e)),this.originalInput=e;var a=aTe(e);this.originalInput=e,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,a,i=e.r/255,o=e.g/255,s=e.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*a},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=C7(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=ZB(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=ZB(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=qB(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=qB(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),a=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(a,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(a,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),QB(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),tTe(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(Yr(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(Yr(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+QB(this.r,this.g,this.b,!1),n=0,r=Object.entries(BM);n=0,i=!n&&a&&(e.startsWith("hex")||e==="name");return i?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=Gm(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=Gm(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=Gm(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=Gm(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),a=new t(e).toRgb(),i=n/100,o={r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a};return new t(o)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),a=360/n,i=[this];for(r.h=(r.h-(a*e>>1)+720)%360;--e;)r.h=(r.h+a)%360,i.push(new t(r));return i},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,a=n.s,i=n.v,o=[],s=1/e;e--;)o.push(new t({h:r,s:a,v:i})),i=(i+s)%1;return o},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),a=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/a,g:(n.g*n.a+r.g*r.a*(1-n.a))/a,b:(n.b*n.a+r.b*r.a*(1-n.a))/a,a})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,a=[this],i=360/e,o=1;o{let r={};const a=t.color;if(a){const i=new T7(a),o=t.dark?i.tint(20).toString():Pl(i,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?Pl(i,90):i.tint(90).toString(),"text-color":a,"border-color":t.dark?Pl(i,50):i.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":a,"hover-border-color":a,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),e.value&&(r[n.cssVarBlockName("disabled-bg-color")]=t.dark?Pl(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?Pl(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?Pl(i,80):i.tint(80).toString());else{const s=t.dark?Pl(i,30):i.tint(30).toString(),l=i.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":a,"text-color":l,"border-color":a,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":o,"active-border-color":o}),e.value){const u=t.dark?Pl(i,50):i.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,r[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=u}}}return r})}const uTe=ie({name:"ElButton"}),cTe=ie({...uTe,props:IM,emits:XCe,setup(t,{expose:e,emit:n}){const r=t,a=lTe(r),i=De("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=KCe(r,n);return e({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(h,p)=>(B(),de(Et(h.tag),kt({ref_key:"_ref",ref:o},S(c),{class:[S(i).b(),S(i).m(S(l)),S(i).m(S(s)),S(i).is("disabled",S(u)),S(i).is("loading",h.loading),S(i).is("plain",h.plain),S(i).is("round",h.round),S(i).is("circle",h.circle),S(i).is("text",h.text),S(i).is("link",h.link),S(i).is("has-bg",h.bg)],style:S(a),onClick:S(d)}),{default:Z(()=>[h.loading?(B(),q(Ze,{key:0},[h.$slots.loading?Te(h.$slots,"loading",{key:0}):(B(),de(S(Ye),{key:1,class:F(S(i).is("loading"))},{default:Z(()=>[(B(),de(Et(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(B(),de(S(Ye),{key:1},{default:Z(()=>[h.icon?(B(),de(Et(h.icon),{key:0})):Te(h.$slots,"icon",{key:1})]),_:3})):le("v-if",!0),h.$slots.default?(B(),q("span",{key:2,class:F({[S(i).em("text","expand")]:S(f)})},[Te(h.$slots,"default")],2)):le("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var fTe=Ne(cTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const dTe={size:IM.size,type:IM.type},hTe=ie({name:"ElButtonGroup"}),vTe=ie({...hTe,props:dTe,setup(t){const e=t;Nt(x7,Qt({size:Bn(e,"size"),type:Bn(e,"type")}));const n=De("button");return(r,a)=>(B(),q("div",{class:F(`${S(n).b("group")}`)},[Te(r.$slots,"default")],2))}});var E7=Ne(vTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const St=Tt(fTe,{ButtonGroup:E7}),M7=Hn(E7);var k7={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(sr,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",p="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var V=["th","st","nd","rd"],P=A%100;return"["+A+(V[(P-20)%10]||V[P]||V[0])+"]"}},b=function(A,V,P){var N=String(A);return!N||N.length>=V?A:""+Array(V+1-N.length).join(P)+A},_={s:b,z:function(A){var V=-A.utcOffset(),P=Math.abs(V),N=Math.floor(P/60),I=P%60;return(V<=0?"+":"-")+b(N,2,"0")+":"+b(I,2,"0")},m:function A(V,P){if(V.date()1)return A($[0])}else{var U=V.name;w[U]=V,I=U}return!N&&I&&(x=I),I||!N&&x},E=function(A,V){if(T(A))return A.clone();var P=typeof V=="object"?V:{};return P.date=A,P.args=arguments,new D(P)},M=_;M.l=k,M.i=T,M.w=function(A,V){return E(A,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var D=function(){function A(P){this.$L=k(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[C]=!0}var V=A.prototype;return V.parse=function(P){this.$d=function(N){var I=N.date,L=N.utc;if(I===null)return new Date(NaN);if(M.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var $=I.match(g);if($){var U=$[2]-1||0,j=($[7]||"0").substring(0,3);return L?new Date(Date.UTC($[1],U,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)):new Date($[1],U,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)}}return new Date(I)}(P),this.init()},V.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},V.$utils=function(){return M},V.isValid=function(){return this.$d.toString()!==v},V.isSame=function(P,N){var I=E(P);return this.startOf(N)<=I&&I<=this.endOf(N)},V.isAfter=function(P,N){return E(P)68?1900:2e3)},u=function(v){return function(g){this[v]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var y=g.match(/([+-]|\d\d)/g),m=60*y[1]+(+y[2]||0);return m===0?0:y[0]==="+"?-m:m}(v)}],f=function(v){var g=s[v];return g&&(g.indexOf?g:g.s.concat(g.f))},d=function(v,g){var y,m=s.meridiem;if(m){for(var b=1;b<=24;b+=1)if(v.indexOf(m(b,0,g))>-1){y=b>12;break}}else y=v===(g?"pm":"PM");return y},h={A:[o,function(v){this.afternoon=d(v,!1)}],a:[o,function(v){this.afternoon=d(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[a,u("day")],Do:[o,function(v){var g=s.ordinal,y=v.match(/\d+/);if(this.day=y[0],g)for(var m=1;m<=31;m+=1)g(m).replace(/\[|\]/g,"")===v&&(this.day=m)}],M:[i,u("month")],MM:[a,u("month")],MMM:[o,function(v){var g=f("months"),y=(f("monthsShort")||g.map(function(m){return m.slice(0,3)})).indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[o,function(v){var g=f("months").indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(v){this.year=l(v)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function p(v){var g,y;g=v,y=s&&s.formats;for(var m=(v=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(k,E,M){var D=M&&M.toUpperCase();return E||y[M]||n[M]||y[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,A,V){return A||V.slice(1)})})).match(r),b=m.length,_=0;_-1)return new Date((N==="X"?1e3:1)*P);var L=p(N)(P),$=L.year,U=L.month,j=L.day,Y=L.hours,oe=L.minutes,te=L.seconds,re=L.milliseconds,ne=L.zone,J=new Date,he=j||($||U?1:J.getDate()),ue=$||J.getFullYear(),X=0;$&&!U||(X=U>0?U-1:J.getMonth());var K=Y||0,ee=oe||0,se=te||0,ye=re||0;return ne?new Date(Date.UTC(ue,X,he,K,ee,se,ye+60*ne.offset*1e3)):I?new Date(Date.UTC(ue,X,he,K,ee,se,ye)):new Date(ue,X,he,K,ee,se,ye)}catch{return new Date("")}}(x,T,w),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),M&&x!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var R=T.length,A=1;A<=R;A+=1){C[1]=T[A-1];var V=y.apply(this,C);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}A===R&&(this.$d=new Date(""))}else b.call(this,_)}}})})(D7);var gTe=D7.exports;const aA=yi(gTe),eV=["hours","minutes","seconds"],VM="HH:mm:ss",sh="YYYY-MM-DD",yTe={date:sh,dates:sh,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${sh} ${VM}`,monthrange:"YYYY-MM",daterange:sh,datetimerange:`${sh} ${VM}`},U2=(t,e)=>[t>0?t-1:void 0,t,tArray.from(Array.from({length:t}).keys()),R7=t=>t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),L7=t=>t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),tV=function(t,e){const n=qf(t),r=qf(e);return n&&r?t.getTime()===e.getTime():!n&&!r?t===e:!1},nV=function(t,e){const n=He(t),r=He(e);return n&&r?t.length!==e.length?!1:t.every((a,i)=>tV(a,e[i])):!n&&!r?tV(t,e):!1},rV=function(t,e,n){const r=Ni(e)||e==="x"?xt(t).locale(n):xt(t,e).locale(n);return r.isValid()?r:void 0},aV=function(t,e,n){return Ni(e)?t:e==="x"?+t:xt(t).locale(n).format(e)},W2=(t,e)=>{var n;const r=[],a=e==null?void 0:e();for(let i=0;i({})},modelValue:{type:fe([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:fe([Date,Array])},defaultTime:{type:fe([Date,Array])},isRange:{type:Boolean,default:!1},...A7,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:fe([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),mTe=["id","name","placeholder","value","disabled","readonly"],bTe=["id","name","placeholder","value","disabled","readonly"],STe=ie({name:"Picker"}),_Te=ie({...STe,props:iA,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(t,{expose:e,emit:n}){const r=t,a=fd(),{lang:i}=Kt(),o=De("date"),s=De("input"),l=De("range"),{form:u,formItem:c}=Va(),f=We("ElPopperOptions",{}),d=z(),h=z(),p=z(!1),v=z(!1),g=z(null);let y=!1,m=!1;const b=O(()=>[o.b("editor"),o.bm("editor",r.type),s.e("wrapper"),o.is("disabled",j.value),o.is("active",p.value),l.b("editor"),be?l.bm("editor",be.value):"",a.class]),_=O(()=>[s.e("icon"),l.e("close-icon"),he.value?"":l.e("close-icon--hidden")]);Ee(p,ae=>{ae?Xe(()=>{ae&&(g.value=r.modelValue)}):(xe.value=null,Xe(()=>{x(r.modelValue)}))});const x=(ae,Fe)=>{(Fe||!nV(ae,g.value))&&(n("change",ae),r.validateEvent&&(c==null||c.validate("change").catch(dt=>void 0)))},w=ae=>{if(!nV(r.modelValue,ae)){let Fe;He(ae)?Fe=ae.map(dt=>aV(dt,r.valueFormat,i.value)):ae&&(Fe=aV(ae,r.valueFormat,i.value)),n("update:modelValue",ae&&Fe,i.value)}},C=ae=>{n("keydown",ae)},T=O(()=>{if(h.value){const ae=we.value?h.value:h.value.$el;return Array.from(ae.querySelectorAll("input"))}return[]}),k=(ae,Fe,dt)=>{const $t=T.value;$t.length&&(!dt||dt==="min"?($t[0].setSelectionRange(ae,Fe),$t[0].focus()):dt==="max"&&($t[1].setSelectionRange(ae,Fe),$t[1].focus()))},E=()=>{I(!0,!0),Xe(()=>{m=!1})},M=(ae="",Fe=!1)=>{Fe||(m=!0),p.value=Fe;let dt;He(ae)?dt=ae.map($t=>$t.toDate()):dt=ae&&ae.toDate(),xe.value=null,w(dt)},D=()=>{v.value=!0},R=()=>{n("visible-change",!0)},A=ae=>{(ae==null?void 0:ae.key)===et.esc&&I(!0,!0)},V=()=>{v.value=!1,p.value=!1,m=!1,n("visible-change",!1)},P=()=>{p.value=!0},N=()=>{p.value=!1},I=(ae=!0,Fe=!1)=>{m=Fe;const[dt,$t]=S(T);let er=dt;!ae&&we.value&&(er=$t),er&&er.focus()},L=ae=>{r.readonly||j.value||p.value||m||(p.value=!0,n("focus",ae))};let $;const U=ae=>{const Fe=async()=>{setTimeout(()=>{var dt;$===Fe&&(!((dt=d.value)!=null&&dt.isFocusInsideContent()&&!y)&&T.value.filter($t=>$t.contains(document.activeElement)).length===0&&(ke(),p.value=!1,n("blur",ae),r.validateEvent&&(c==null||c.validate("blur").catch($t=>void 0))),y=!1)},0)};$=Fe,Fe()},j=O(()=>r.disabled||(u==null?void 0:u.disabled)),Y=O(()=>{let ae;if(X.value?_e.value.getDefaultValue&&(ae=_e.value.getDefaultValue()):He(r.modelValue)?ae=r.modelValue.map(Fe=>rV(Fe,r.valueFormat,i.value)):ae=rV(r.modelValue,r.valueFormat,i.value),_e.value.getRangeAvailableTime){const Fe=_e.value.getRangeAvailableTime(ae);Xa(Fe,ae)||(ae=Fe,w(He(ae)?ae.map(dt=>dt.toDate()):ae.toDate()))}return He(ae)&&ae.some(Fe=>!Fe)&&(ae=[]),ae}),oe=O(()=>{if(!_e.value.panelReady)return"";const ae=Ve(Y.value);return He(xe.value)?[xe.value[0]||ae&&ae[0]||"",xe.value[1]||ae&&ae[1]||""]:xe.value!==null?xe.value:!re.value&&X.value||!p.value&&X.value?"":ae?ne.value?ae.join(", "):ae:""}),te=O(()=>r.type.includes("time")),re=O(()=>r.type.startsWith("time")),ne=O(()=>r.type==="dates"),J=O(()=>r.prefixIcon||(te.value?h9:kye)),he=z(!1),ue=ae=>{r.readonly||j.value||he.value&&(ae.stopPropagation(),E(),w(null),x(null,!0),he.value=!1,p.value=!1,_e.value.handleClear&&_e.value.handleClear())},X=O(()=>{const{modelValue:ae}=r;return!ae||He(ae)&&!ae.filter(Boolean).length}),K=async ae=>{var Fe;r.readonly||j.value||(((Fe=ae.target)==null?void 0:Fe.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(p.value=!0)},ee=()=>{r.readonly||j.value||!X.value&&r.clearable&&(he.value=!0)},se=()=>{he.value=!1},ye=ae=>{var Fe;r.readonly||j.value||(((Fe=ae.touches[0].target)==null?void 0:Fe.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(p.value=!0)},we=O(()=>r.type.includes("range")),be=hr(),Me=O(()=>{var ae,Fe;return(Fe=(ae=S(d))==null?void 0:ae.popperRef)==null?void 0:Fe.contentRef}),Se=O(()=>{var ae;return S(we)?S(h):(ae=S(h))==null?void 0:ae.$el});hL(Se,ae=>{const Fe=S(Me),dt=S(Se);Fe&&(ae.target===Fe||ae.composedPath().includes(Fe))||ae.target===dt||ae.composedPath().includes(dt)||(p.value=!1)});const xe=z(null),ke=()=>{if(xe.value){const ae=ge(oe.value);ae&&Ke(ae)&&(w(He(ae)?ae.map(Fe=>Fe.toDate()):ae.toDate()),xe.value=null)}xe.value===""&&(w(null),x(null),xe.value=null)},ge=ae=>ae?_e.value.parseUserInput(ae):null,Ve=ae=>ae?_e.value.formatToString(ae):null,Ke=ae=>_e.value.isValidValue(ae),Le=async ae=>{if(r.readonly||j.value)return;const{code:Fe}=ae;if(C(ae),Fe===et.esc){p.value===!0&&(p.value=!1,ae.preventDefault(),ae.stopPropagation());return}if(Fe===et.down&&(_e.value.handleFocusPicker&&(ae.preventDefault(),ae.stopPropagation()),p.value===!1&&(p.value=!0,await Xe()),_e.value.handleFocusPicker)){_e.value.handleFocusPicker();return}if(Fe===et.tab){y=!0;return}if(Fe===et.enter||Fe===et.numpadEnter){(xe.value===null||xe.value===""||Ke(ge(oe.value)))&&(ke(),p.value=!1),ae.stopPropagation();return}if(xe.value){ae.stopPropagation();return}_e.value.handleKeydownInput&&_e.value.handleKeydownInput(ae)},Ue=ae=>{xe.value=ae,p.value||(p.value=!0)},st=ae=>{const Fe=ae.target;xe.value?xe.value=[Fe.value,xe.value[1]]:xe.value=[Fe.value,null]},bt=ae=>{const Fe=ae.target;xe.value?xe.value=[xe.value[0],Fe.value]:xe.value=[null,Fe.value]},At=()=>{var ae;const Fe=xe.value,dt=ge(Fe&&Fe[0]),$t=S(Y);if(dt&&dt.isValid()){xe.value=[Ve(dt),((ae=oe.value)==null?void 0:ae[1])||null];const er=[dt,$t&&($t[1]||null)];Ke(er)&&(w(er),xe.value=null)}},rt=()=>{var ae;const Fe=S(xe),dt=ge(Fe&&Fe[1]),$t=S(Y);if(dt&&dt.isValid()){xe.value=[((ae=S(oe))==null?void 0:ae[0])||null,Ve(dt)];const er=[$t&&$t[0],dt];Ke(er)&&(w(er),xe.value=null)}},_e=z({}),ve=ae=>{_e.value[ae[0]]=ae[1],_e.value.panelReady=!0},ce=ae=>{n("calendar-change",ae)},Re=(ae,Fe,dt)=>{n("panel-change",ae,Fe,dt)};return Nt("EP_PICKER_BASE",{props:r}),e({focus:I,handleFocusInput:L,handleBlurInput:U,handleOpen:P,handleClose:N,onPick:M}),(ae,Fe)=>(B(),de(S(Na),kt({ref_key:"refPopper",ref:d,visible:p.value,effect:"light",pure:"",trigger:"click"},ae.$attrs,{role:"dialog",teleported:"",transition:`${S(o).namespace.value}-zoom-in-top`,"popper-class":[`${S(o).namespace.value}-picker__popper`,ae.popperClass],"popper-options":S(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:D,onShow:R,onHide:V}),{default:Z(()=>[S(we)?(B(),q("div",{key:1,ref_key:"inputRef",ref:h,class:F(S(b)),style:qe(ae.$attrs.style),onClick:L,onMouseenter:ee,onMouseleave:se,onTouchstart:ye,onKeydown:Le},[S(J)?(B(),de(S(Ye),{key:0,class:F([S(s).e("icon"),S(l).e("icon")]),onMousedown:it(K,["prevent"]),onTouchstart:ye},{default:Z(()=>[(B(),de(Et(S(J))))]),_:1},8,["class","onMousedown"])):le("v-if",!0),G("input",{id:ae.id&&ae.id[0],autocomplete:"off",name:ae.name&&ae.name[0],placeholder:ae.startPlaceholder,value:S(oe)&&S(oe)[0],disabled:S(j),readonly:!ae.editable||ae.readonly,class:F(S(l).b("input")),onMousedown:K,onInput:st,onChange:At,onFocus:L,onBlur:U},null,42,mTe),Te(ae.$slots,"range-separator",{},()=>[G("span",{class:F(S(l).b("separator"))},Ae(ae.rangeSeparator),3)]),G("input",{id:ae.id&&ae.id[1],autocomplete:"off",name:ae.name&&ae.name[1],placeholder:ae.endPlaceholder,value:S(oe)&&S(oe)[1],disabled:S(j),readonly:!ae.editable||ae.readonly,class:F(S(l).b("input")),onMousedown:K,onFocus:L,onBlur:U,onInput:bt,onChange:rt},null,42,bTe),ae.clearIcon?(B(),de(S(Ye),{key:1,class:F(S(_)),onClick:ue},{default:Z(()=>[(B(),de(Et(ae.clearIcon)))]),_:1},8,["class"])):le("v-if",!0)],38)):(B(),de(S(ca),{key:0,id:ae.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":S(oe),name:ae.name,size:S(be),disabled:S(j),placeholder:ae.placeholder,class:F([S(o).b("editor"),S(o).bm("editor",ae.type),ae.$attrs.class]),style:qe(ae.$attrs.style),readonly:!ae.editable||ae.readonly||S(ne)||ae.type==="week",label:ae.label,tabindex:ae.tabindex,"validate-event":!1,onInput:Ue,onFocus:L,onBlur:U,onKeydown:Le,onChange:ke,onMousedown:K,onMouseenter:ee,onMouseleave:se,onTouchstart:ye,onClick:Fe[0]||(Fe[0]=it(()=>{},["stop"]))},{prefix:Z(()=>[S(J)?(B(),de(S(Ye),{key:0,class:F(S(s).e("icon")),onMousedown:it(K,["prevent"]),onTouchstart:ye},{default:Z(()=>[(B(),de(Et(S(J))))]),_:1},8,["class","onMousedown"])):le("v-if",!0)]),suffix:Z(()=>[he.value&&ae.clearIcon?(B(),de(S(Ye),{key:0,class:F(`${S(s).e("icon")} clear-icon`),onClick:it(ue,["stop"])},{default:Z(()=>[(B(),de(Et(ae.clearIcon)))]),_:1},8,["class","onClick"])):le("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:Z(()=>[Te(ae.$slots,"default",{visible:p.value,actualVisible:v.value,parsedValue:S(Y),format:ae.format,unlinkPanels:ae.unlinkPanels,type:ae.type,defaultValue:ae.defaultValue,onPick:M,onSelectRange:k,onSetPickerOption:ve,onCalendarChange:ce,onPanelChange:Re,onKeydown:A,onMousedown:Fe[1]||(Fe[1]=it(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var N7=Ne(_Te,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const wTe=$e({...O7,datetimeRole:String,parsedValue:{type:fe(Object)}}),$7=({getAvailableHours:t,getAvailableMinutes:e,getAvailableSeconds:n})=>{const r=(o,s,l,u)=>{const c={hour:t,minute:e,second:n};let f=o;return["hour","minute","second"].forEach(d=>{if(c[d]){let h;const p=c[d];switch(d){case"minute":{h=p(f.hour(),s,u);break}case"second":{h=p(f.hour(),f.minute(),s,u);break}default:{h=p(s,u);break}}if(h!=null&&h.length&&!h.includes(f[d]())){const v=l?0:h.length-1;f=f[d](h[v])}}}),f},a={};return{timePickerOptions:a,getAvailableTime:r,onSetOption:([o,s])=>{a[o]=s}}},j2=t=>{const e=(r,a)=>r||a,n=r=>r!==!0;return t.map(e).filter(n)},I7=(t,e,n)=>({getHoursList:(o,s)=>W2(24,t&&(()=>t==null?void 0:t(o,s))),getMinutesList:(o,s,l)=>W2(60,e&&(()=>e==null?void 0:e(o,s,l))),getSecondsList:(o,s,l,u)=>W2(60,n&&(()=>n==null?void 0:n(o,s,l,u)))}),B7=(t,e,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=I7(t,e,n);return{getAvailableHours:(u,c)=>j2(r(u,c)),getAvailableMinutes:(u,c,f)=>j2(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>j2(i(u,c,f,d))}},V7=t=>{const e=z(t.parsedValue);return Ee(()=>t.visible,n=>{n||(e.value=t.parsedValue)}),e},eu=new Map;let iV;Ut&&(document.addEventListener("mousedown",t=>iV=t),document.addEventListener("mouseup",t=>{for(const e of eu.values())for(const{documentHandler:n}of e)n(t,iV)}));function oV(t,e){let n=[];return Array.isArray(e.arg)?n=e.arg:Ui(e.arg)&&n.push(e.arg),function(r,a){const i=e.instance.popperRef,o=r.target,s=a==null?void 0:a.target,l=!e||!e.instance,u=!o||!s,c=t.contains(o)||t.contains(s),f=t===o,d=n.length&&n.some(p=>p==null?void 0:p.contains(o))||n.length&&n.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||c||f||d||h||e.value(r,a)}}const Wu={beforeMount(t,e){eu.has(t)||eu.set(t,[]),eu.get(t).push({documentHandler:oV(t,e),bindingFn:e.value})},updated(t,e){eu.has(t)||eu.set(t,[]);const n=eu.get(t),r=n.findIndex(i=>i.bindingFn===e.oldValue),a={documentHandler:oV(t,e),bindingFn:e.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(t){eu.delete(t)}},xTe=100,CTe=600,GS={beforeMount(t,e){const n=e.value,{interval:r=xTe,delay:a=CTe}=ut(n)?{}:n;let i,o;const s=()=>ut(n)?n():n.handler(),l=()=>{o&&(clearTimeout(o),o=void 0),i&&(clearInterval(i),i=void 0)};t.addEventListener("mousedown",u=>{u.button===0&&(l(),s(),document.addEventListener("mouseup",()=>l(),{once:!0}),o=setTimeout(()=>{i=setInterval(()=>{s()},r)},a))})}},PM="_trap-focus-children",_f=[],sV=t=>{if(_f.length===0)return;const e=_f[_f.length-1][PM];if(e.length>0&&t.code===et.tab){if(e.length===1){t.preventDefault(),document.activeElement!==e[0]&&e[0].focus();return}const n=t.shiftKey,r=t.target===e[0],a=t.target===e[e.length-1];r&&n&&(t.preventDefault(),e[e.length-1].focus()),a&&!n&&(t.preventDefault(),e[0].focus())}},TTe={beforeMount(t){t[PM]=_I(t),_f.push(t),_f.length<=1&&document.addEventListener("keydown",sV)},updated(t){Xe(()=>{t[PM]=_I(t)})},unmounted(){_f.shift(),_f.length===0&&document.removeEventListener("keydown",sV)}};var lV=!1,cf,FM,zM,Lb,Ab,P7,Ob,GM,HM,UM,F7,WM,jM,z7,G7;function za(){if(!lV){lV=!0;var t=navigator.userAgent,e=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),n=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(WM=/\b(iPhone|iP[ao]d)/.exec(t),jM=/\b(iP[ao]d)/.exec(t),UM=/Android/i.exec(t),z7=/FBAN\/\w+;/i.exec(t),G7=/Mobile/i.exec(t),F7=!!/Win64/.exec(t),e){cf=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,cf&&document&&document.documentMode&&(cf=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(t);P7=r?parseFloat(r[1])+4:cf,FM=e[2]?parseFloat(e[2]):NaN,zM=e[3]?parseFloat(e[3]):NaN,Lb=e[4]?parseFloat(e[4]):NaN,Lb?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),Ab=e&&e[1]?parseFloat(e[1]):NaN):Ab=NaN}else cf=FM=zM=Ab=Lb=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);Ob=a?parseFloat(a[1].replace("_",".")):!0}else Ob=!1;GM=!!n[2],HM=!!n[3]}else Ob=GM=HM=!1}}var KM={ie:function(){return za()||cf},ieCompatibilityMode:function(){return za()||P7>cf},ie64:function(){return KM.ie()&&F7},firefox:function(){return za()||FM},opera:function(){return za()||zM},webkit:function(){return za()||Lb},safari:function(){return KM.webkit()},chrome:function(){return za()||Ab},windows:function(){return za()||GM},osx:function(){return za()||Ob},linux:function(){return za()||HM},iphone:function(){return za()||WM},mobile:function(){return za()||WM||jM||UM||G7},nativeApp:function(){return za()||z7},android:function(){return za()||UM},ipad:function(){return za()||jM}},ETe=KM,Um=!!(typeof window<"u"&&window.document&&window.document.createElement),MTe={canUseDOM:Um,canUseWorkers:typeof Worker<"u",canUseEventListeners:Um&&!!(window.addEventListener||window.attachEvent),canUseViewport:Um&&!!window.screen,isInWorker:!Um},H7=MTe,U7;H7.canUseDOM&&(U7=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function kTe(t,e){if(!H7.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r=typeof a[n]=="function"}return!r&&U7&&t==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var DTe=kTe,uV=10,cV=40,fV=800;function W7(t){var e=0,n=0,r=0,a=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*uV,a=n*uV,"deltaY"in t&&(a=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||a)&&t.deltaMode&&(t.deltaMode==1?(r*=cV,a*=cV):(r*=fV,a*=fV)),r&&!e&&(e=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:a}}W7.getEventType=function(){return ETe.firefox()?"DOMMouseScroll":DTe("wheel")?"wheel":"mousewheel"};var RTe=W7;/** * 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 LTe=function(t,e){if(t&&t.addEventListener){const n=function(r){const a=RTe(r);e&&Reflect.apply(e,this,[r,a])};t.addEventListener("wheel",n,{passive:!0})}},ATe={beforeMount(t,e){LTe(t,e.value)}},OTe=$e({role:{type:String,required:!0},spinnerDate:{type:fe(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:fe(String),default:""},...A7}),NTe=["onClick"],$Te=["onMouseenter"],ITe=ie({__name:"basic-time-spinner",props:OTe,emits:["change","select-range","set-option"],setup(t,{emit:e}){const n=t,r=De("time"),{getHoursList:a,getMinutesList:i,getSecondsList:o}=I7(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=z(),u=z(),c=z(),f=z(),d={hours:u,minutes:c,seconds:f},h=O(()=>n.showSeconds?eV:eV.slice(0,2)),p=O(()=>{const{spinnerDate:L}=n,$=L.hour(),U=L.minute(),j=L.second();return{hours:$,minutes:U,seconds:j}}),v=O(()=>{const{hours:L,minutes:$}=S(p);return{hours:a(n.role),minutes:i(L,n.role),seconds:o(L,$,n.role)}}),g=O(()=>{const{hours:L,minutes:$,seconds:U}=S(p);return{hours:U2(L,23),minutes:U2($,59),seconds:U2(U,59)}}),y=Oa(L=>{s=!1,_(L)},200),m=L=>{if(!!!n.amPmMode)return"";const U=n.amPmMode==="A";let j=L<12?" am":" pm";return U&&(j=j.toUpperCase()),j},b=L=>{let $;switch(L){case"hours":$=[0,2];break;case"minutes":$=[3,5];break;case"seconds":$=[6,8];break}const[U,j]=$;e("select-range",U,j),l.value=L},_=L=>{C(L,S(p)[L])},x=()=>{_("hours"),_("minutes"),_("seconds")},w=L=>L.querySelector(`.${r.namespace.value}-scrollbar__wrap`),C=(L,$)=>{if(n.arrowControl)return;const U=S(d[L]);U&&U.$el&&(w(U.$el).scrollTop=Math.max(0,$*T(L)))},T=L=>{const $=S(d[L]),U=$==null?void 0:$.$el.querySelector("li");return U&&Number.parseFloat(vu(U,"height"))||0},k=()=>{M(1)},E=()=>{M(-1)},M=L=>{l.value||b("hours");const $=l.value,U=S(p)[$],j=l.value==="hours"?24:60,Y=D($,U,L,j);R($,Y),C($,Y),Xe(()=>b($))},D=(L,$,U,j)=>{let Y=($+U+j)%j;const oe=S(v)[L];for(;oe[Y]&&Y!==$;)Y=(Y+U+j)%j;return Y},R=(L,$)=>{if(S(v)[L][$])return;const{hours:Y,minutes:oe,seconds:te}=S(p);let re;switch(L){case"hours":re=n.spinnerDate.hour($).minute(oe).second(te);break;case"minutes":re=n.spinnerDate.hour(Y).minute($).second(te);break;case"seconds":re=n.spinnerDate.hour(Y).minute(oe).second($);break}e("change",re)},A=(L,{value:$,disabled:U})=>{U||(R(L,$),b(L),C(L,$))},V=L=>{s=!0,y(L);const $=Math.min(Math.round((w(S(d[L]).$el).scrollTop-(P(L)*.5-10)/T(L)+3)/T(L)),L==="hours"?23:59);R(L,$)},P=L=>S(d[L]).$el.offsetHeight,N=()=>{const L=$=>{const U=S(d[$]);U&&U.$el&&(w(U.$el).onscroll=()=>{V($)})};L("hours"),L("minutes"),L("seconds")};ht(()=>{Xe(()=>{!n.arrowControl&&N(),x(),n.role==="start"&&b("hours")})});const I=(L,$)=>{d[$].value=L};return e("set-option",[`${n.role}_scrollDown`,M]),e("set-option",[`${n.role}_emitSelectRange`,b]),Ee(()=>n.spinnerDate,()=>{s||x()}),(L,$)=>(B(),q("div",{class:F([S(r).b("spinner"),{"has-seconds":L.showSeconds}])},[L.arrowControl?le("v-if",!0):(B(!0),q(Ze,{key:0},Pt(S(h),U=>(B(),de(S(Rl),{key:U,ref_for:!0,ref:j=>I(j,U),class:F(S(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":S(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:j=>b(U),onMousemove:j=>_(U)},{default:Z(()=>[(B(!0),q(Ze,null,Pt(S(v)[U],(j,Y)=>(B(),q("li",{key:Y,class:F([S(r).be("spinner","item"),S(r).is("active",Y===S(p)[U]),S(r).is("disabled",j)]),onClick:oe=>A(U,{value:Y,disabled:j})},[U==="hours"?(B(),q(Ze,{key:0},[Qe(Ae(("0"+(L.amPmMode?Y%12||12:Y)).slice(-2))+Ae(m(Y)),1)],64)):(B(),q(Ze,{key:1},[Qe(Ae(("0"+Y).slice(-2)),1)],64))],10,NTe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),L.arrowControl?(B(!0),q(Ze,{key:1},Pt(S(h),U=>(B(),q("div",{key:U,class:F([S(r).be("spinner","wrapper"),S(r).is("arrow")]),onMouseenter:j=>b(U)},[yt((B(),de(S(Ye),{class:F(["arrow-up",S(r).be("spinner","arrow")])},{default:Z(()=>[H(S(jw))]),_:1},8,["class"])),[[S(GS),E]]),yt((B(),de(S(Ye),{class:F(["arrow-down",S(r).be("spinner","arrow")])},{default:Z(()=>[H(S(ac))]),_:1},8,["class"])),[[S(GS),k]]),G("ul",{class:F(S(r).be("spinner","list"))},[(B(!0),q(Ze,null,Pt(S(g)[U],(j,Y)=>(B(),q("li",{key:Y,class:F([S(r).be("spinner","item"),S(r).is("active",j===S(p)[U]),S(r).is("disabled",S(v)[U][j])])},[typeof j=="number"?(B(),q(Ze,{key:0},[U==="hours"?(B(),q(Ze,{key:0},[Qe(Ae(("0"+(L.amPmMode?j%12||12:j)).slice(-2))+Ae(m(j)),1)],64)):(B(),q(Ze,{key:1},[Qe(Ae(("0"+j).slice(-2)),1)],64))],64)):le("v-if",!0)],2))),128))],2)],42,$Te))),128)):le("v-if",!0)],2))}});var YM=Ne(ITe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const BTe=ie({__name:"panel-time-pick",props:wTe,emits:["pick","select-range","set-picker-option"],setup(t,{emit:e}){const n=t,r=We("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=B7(i,o,s),d=De("time"),{t:h,lang:p}=Kt(),v=z([0,2]),g=V7(n),y=O(()=>br(n.actualVisible)?`${d.namespace.value}-zoom-in-top`:""),m=O(()=>n.format.includes("ss")),b=O(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),_=I=>{const L=xt(I).locale(p.value),$=A(L);return L.isSame($)},x=()=>{e("pick",g.value,!1)},w=(I=!1,L=!1)=>{L||e("pick",n.parsedValue,I)},C=I=>{if(!n.visible)return;const L=A(I).millisecond(0);e("pick",L,!0)},T=(I,L)=>{e("select-range",I,L),v.value=[I,L]},k=I=>{const L=[0,3].concat(m.value?[6]:[]),$=["hours","minutes"].concat(m.value?["seconds"]:[]),j=(L.indexOf(v.value[0])+I+L.length)%L.length;M.start_emitSelectRange($[j])},E=I=>{const L=I.code,{left:$,right:U,up:j,down:Y}=et;if([$,U].includes(L)){k(L===$?-1:1),I.preventDefault();return}if([j,Y].includes(L)){const oe=L===j?-1:1;M.start_scrollDown(oe),I.preventDefault();return}},{timePickerOptions:M,onSetOption:D,getAvailableTime:R}=$7({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),A=I=>R(I,n.datetimeRole||"",!0),V=I=>I?xt(I,n.format).locale(p.value):null,P=I=>I?I.format(n.format):null,N=()=>xt(l).locale(p.value);return e("set-picker-option",["isValidValue",_]),e("set-picker-option",["formatToString",P]),e("set-picker-option",["parseUserInput",V]),e("set-picker-option",["handleKeydownInput",E]),e("set-picker-option",["getRangeAvailableTime",A]),e("set-picker-option",["getDefaultValue",N]),(I,L)=>(B(),de(Qn,{name:S(y)},{default:Z(()=>[I.actualVisible||I.visible?(B(),q("div",{key:0,class:F(S(d).b("panel"))},[G("div",{class:F([S(d).be("panel","content"),{"has-seconds":S(m)}])},[H(YM,{ref:"spinner",role:I.datetimeRole||"start","arrow-control":S(a),"show-seconds":S(m),"am-pm-mode":S(b),"spinner-date":I.parsedValue,"disabled-hours":S(i),"disabled-minutes":S(o),"disabled-seconds":S(s),onChange:C,onSetOption:S(D),onSelectRange:T},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),G("div",{class:F(S(d).be("panel","footer"))},[G("button",{type:"button",class:F([S(d).be("panel","btn"),"cancel"]),onClick:x},Ae(S(h)("el.datepicker.cancel")),3),G("button",{type:"button",class:F([S(d).be("panel","btn"),"confirm"]),onClick:L[0]||(L[0]=$=>w())},Ae(S(h)("el.datepicker.confirm")),3)],2)],2)):le("v-if",!0)]),_:1},8,["name"]))}});var HS=Ne(BTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const VTe=$e({...O7,parsedValue:{type:fe(Array)}}),PTe=["disabled"],FTe=ie({__name:"panel-time-range",props:VTe,emits:["pick","select-range","set-picker-option"],setup(t,{emit:e}){const n=t,r=(X,K)=>{const ee=[];for(let se=X;se<=K;se++)ee.push(se);return ee},{t:a,lang:i}=Kt(),o=De("time"),s=De("picker"),l=We("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:d,defaultValue:h}=l.props,p=O(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),_.value?"has-seconds":""]),v=O(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),_.value?"has-seconds":""]),g=O(()=>n.parsedValue[0]),y=O(()=>n.parsedValue[1]),m=V7(n),b=()=>{e("pick",m.value,!1)},_=O(()=>n.format.includes("ss")),x=O(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),w=(X=!1)=>{e("pick",[g.value,y.value],X)},C=X=>{E(X.millisecond(0),y.value)},T=X=>{E(g.value,X.millisecond(0))},k=X=>{const K=X.map(se=>xt(se).locale(i.value)),ee=U(K);return K[0].isSame(ee[0])&&K[1].isSame(ee[1])},E=(X,K)=>{e("pick",[X,K],!0)},M=O(()=>g.value>y.value),D=z([0,2]),R=(X,K)=>{e("select-range",X,K,"min"),D.value=[X,K]},A=O(()=>_.value?11:8),V=(X,K)=>{e("select-range",X,K,"max");const ee=S(A);D.value=[X+ee,K+ee]},P=X=>{const K=_.value?[0,3,6,11,14,17]:[0,3,8,11],ee=["hours","minutes"].concat(_.value?["seconds"]:[]),ye=(K.indexOf(D.value[0])+X+K.length)%K.length,we=K.length/2;ye{const K=X.code,{left:ee,right:se,up:ye,down:we}=et;if([ee,se].includes(K)){P(K===ee?-1:1),X.preventDefault();return}if([ye,we].includes(K)){const be=K===ye?-1:1,Me=D.value[0]{const ee=c?c(X):[],se=X==="start",we=(K||(se?y.value:g.value)).hour(),be=se?r(we+1,23):r(0,we-1);return I2(ee,be)},L=(X,K,ee)=>{const se=f?f(X,K):[],ye=K==="start",we=ee||(ye?y.value:g.value),be=we.hour();if(X!==be)return se;const Me=we.minute(),Se=ye?r(Me+1,59):r(0,Me-1);return I2(se,Se)},$=(X,K,ee,se)=>{const ye=d?d(X,K,ee):[],we=ee==="start",be=se||(we?y.value:g.value),Me=be.hour(),Se=be.minute();if(X!==Me||K!==Se)return ye;const xe=be.second(),ke=we?r(xe+1,59):r(0,xe-1);return I2(ye,ke)},U=([X,K])=>[re(X,"start",!0,K),re(K,"end",!1,X)],{getAvailableHours:j,getAvailableMinutes:Y,getAvailableSeconds:oe}=B7(I,L,$),{timePickerOptions:te,getAvailableTime:re,onSetOption:ne}=$7({getAvailableHours:j,getAvailableMinutes:Y,getAvailableSeconds:oe}),J=X=>X?He(X)?X.map(K=>xt(K,n.format).locale(i.value)):xt(X,n.format).locale(i.value):null,he=X=>X?He(X)?X.map(K=>K.format(n.format)):X.format(n.format):null,ue=()=>{if(He(h))return h.map(K=>xt(K).locale(i.value));const X=xt(h).locale(i.value);return[X,X.add(60,"m")]};return e("set-picker-option",["formatToString",he]),e("set-picker-option",["parseUserInput",J]),e("set-picker-option",["isValidValue",k]),e("set-picker-option",["handleKeydownInput",N]),e("set-picker-option",["getDefaultValue",ue]),e("set-picker-option",["getRangeAvailableTime",U]),(X,K)=>X.actualVisible?(B(),q("div",{key:0,class:F([S(o).b("range-picker"),S(s).b("panel")])},[G("div",{class:F(S(o).be("range-picker","content"))},[G("div",{class:F(S(o).be("range-picker","cell"))},[G("div",{class:F(S(o).be("range-picker","header"))},Ae(S(a)("el.datepicker.startTime")),3),G("div",{class:F(S(p))},[H(YM,{ref:"minSpinner",role:"start","show-seconds":S(_),"am-pm-mode":S(x),"arrow-control":S(u),"spinner-date":S(g),"disabled-hours":I,"disabled-minutes":L,"disabled-seconds":$,onChange:C,onSetOption:S(ne),onSelectRange:R},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),G("div",{class:F(S(o).be("range-picker","cell"))},[G("div",{class:F(S(o).be("range-picker","header"))},Ae(S(a)("el.datepicker.endTime")),3),G("div",{class:F(S(v))},[H(YM,{ref:"maxSpinner",role:"end","show-seconds":S(_),"am-pm-mode":S(x),"arrow-control":S(u),"spinner-date":S(y),"disabled-hours":I,"disabled-minutes":L,"disabled-seconds":$,onChange:T,onSetOption:S(ne),onSelectRange:V},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),G("div",{class:F(S(o).be("panel","footer"))},[G("button",{type:"button",class:F([S(o).be("panel","btn"),"cancel"]),onClick:K[0]||(K[0]=ee=>b())},Ae(S(a)("el.datepicker.cancel")),3),G("button",{type:"button",class:F([S(o).be("panel","btn"),"confirm"]),disabled:S(M),onClick:K[1]||(K[1]=ee=>w())},Ae(S(a)("el.datepicker.confirm")),11,PTe)],2)],2)):le("v-if",!0)}});var zTe=Ne(FTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);xt.extend(aA);var GTe=ie({name:"ElTimePicker",install:null,props:{...iA,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,e){const n=z(),[r,a]=t.isRange?["timerange",zTe]:["time",HS],i=o=>e.emit("update:modelValue",o);return Nt("ElPopperOptions",t.popperOptions),e.expose({focus:o=>{var s;(s=n.value)==null||s.handleFocusInput(o)},blur:o=>{var s;(s=n.value)==null||s.handleBlurInput(o)},handleOpen:()=>{var o;(o=n.value)==null||o.handleOpen()},handleClose:()=>{var o;(o=n.value)==null||o.handleClose()}}),()=>{var o;const s=(o=t.format)!=null?o:VM;return H(N7,kt(t,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>H(a,l,null)})}}});const Nb=GTe;Nb.install=t=>{t.component(Nb.name,Nb)};const HTe=Nb,UTe=(t,e)=>{const n=t.subtract(1,"month").endOf("month").date();return ku(e).map((r,a)=>n-(e-a-1))},WTe=t=>{const e=t.daysInMonth();return ku(e).map((n,r)=>r+1)},jTe=t=>ku(t.length/7).map(e=>{const n=e*7;return t.slice(n,n+7)}),KTe=$e({selectedDay:{type:fe(Object)},range:{type:fe(Array)},date:{type:fe(Object),required:!0},hideHeader:{type:Boolean}}),YTe={pick:t=>Lt(t)};var j7={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(sr,function(){return function(n,r,a){var i=r.prototype,o=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,d,h,p,v){var g=f.name?f:f.$locale(),y=o(g[d]),m=o(g[h]),b=y||m.map(function(x){return x.slice(0,p)});if(!v)return b;var _=g.weekStart;return b.map(function(x,w){return b[(w+(_||0))%7]})},l=function(){return a.Ls[a.locale()]},u=function(f,d){return f.formats[d]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,v,g){return v||g.slice(1)})}(f.formats[d.toUpperCase()])},c=function(){var f=this;return{months:function(d){return d?d.format("MMMM"):s(f,"months")},monthsShort:function(d){return d?d.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):s(f,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return u(f.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return c.bind(this)()},a.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(d){return u(f,d)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(l(),"months")},a.monthsShort=function(){return s(l(),"monthsShort","months",3)},a.weekdays=function(f){return s(l(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}})})(j7);var XTe=j7.exports;const K7=yi(XTe),qTe=(t,e)=>{xt.extend(K7);const n=xt.localeData().firstDayOfWeek(),{t:r,lang:a}=Kt(),i=xt().locale(a.value),o=O(()=>!!t.range&&!!t.range.length),s=O(()=>{let d=[];if(o.value){const[h,p]=t.range,v=ku(p.date()-h.date()+1).map(m=>({text:h.date()+m,type:"current"}));let g=v.length%7;g=g===0?0:7-g;const y=ku(g).map((m,b)=>({text:b+1,type:"next"}));d=v.concat(y)}else{const h=t.date.startOf("month").day(),p=UTe(t.date,(h-n+7)%7).map(m=>({text:m,type:"prev"})),v=WTe(t.date).map(m=>({text:m,type:"current"}));d=[...p,...v];const g=7-(d.length%7||7),y=ku(g).map((m,b)=>({text:b+1,type:"next"}));d=d.concat(y)}return jTe(d)}),l=O(()=>{const d=n;return d===0?B2.map(h=>r(`el.datepicker.weeks.${h}`)):B2.slice(d).concat(B2.slice(0,d)).map(h=>r(`el.datepicker.weeks.${h}`))}),u=(d,h)=>{switch(h){case"prev":return t.date.startOf("month").subtract(1,"month").date(d);case"next":return t.date.startOf("month").add(1,"month").date(d);case"current":return t.date.date(d)}};return{now:i,isInRange:o,rows:s,weekDays:l,getFormattedDate:u,handlePickDay:({text:d,type:h})=>{const p=u(d,h);e("pick",p)},getSlotData:({text:d,type:h})=>{const p=u(d,h);return{isSelected:p.isSame(t.selectedDay),type:`${h}-month`,day:p.format("YYYY-MM-DD"),date:p.toDate()}}}},ZTe={key:0},QTe=["onClick"],JTe=ie({name:"DateTable"}),eEe=ie({...JTe,props:KTe,emits:YTe,setup(t,{expose:e,emit:n}){const r=t,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=qTe(r,n),f=De("calendar-table"),d=De("calendar-day"),h=({text:p,type:v})=>{const g=[v];if(v==="current"){const y=l(p,v);y.isSame(r.selectedDay,"day")&&g.push(d.is("selected")),y.isSame(i,"day")&&g.push(d.is("today"))}return g};return e({getFormattedDate:l}),(p,v)=>(B(),q("table",{class:F([S(f).b(),S(f).is("range",S(a))]),cellspacing:"0",cellpadding:"0"},[p.hideHeader?le("v-if",!0):(B(),q("thead",ZTe,[(B(!0),q(Ze,null,Pt(S(s),g=>(B(),q("th",{key:g},Ae(g),1))),128))])),G("tbody",null,[(B(!0),q(Ze,null,Pt(S(o),(g,y)=>(B(),q("tr",{key:y,class:F({[S(f).e("row")]:!0,[S(f).em("row","hide-border")]:y===0&&p.hideHeader})},[(B(!0),q(Ze,null,Pt(g,(m,b)=>(B(),q("td",{key:b,class:F(h(m)),onClick:_=>S(u)(m)},[G("div",{class:F(S(d).b())},[Te(p.$slots,"date-cell",{data:S(c)(m)},()=>[G("span",null,Ae(m.text),1)])],2)],10,QTe))),128))],2))),128))])],2))}});var dV=Ne(eEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const tEe=(t,e)=>{const n=t.endOf("month"),r=e.startOf("month"),i=n.isSame(r,"week")?r.add(1,"week"):r;return[[t,n],[i.startOf("week"),e]]},nEe=(t,e)=>{const n=t.endOf("month"),r=t.add(1,"month").startOf("month"),a=n.isSame(r,"week")?r.add(1,"week"):r,i=a.endOf("month"),o=e.startOf("month"),s=i.isSame(o,"week")?o.add(1,"week"):o;return[[t,n],[a.startOf("week"),i],[s.startOf("week"),e]]},rEe=(t,e,n)=>{const r=ea(),{lang:a}=Kt(),i=z(),o=xt().locale(a.value),s=O({get(){return t.modelValue?u.value:i.value},set(y){if(!y)return;i.value=y;const m=y.toDate();e(Da,m),e(Mt,m)}}),l=O(()=>{if(!t.range)return[];const y=t.range.map(_=>xt(_).locale(a.value)),[m,b]=y;return m.isAfter(b)?[]:m.isSame(b,"month")?p(m,b):m.add(1,"month").month()!==b.month()?[]:p(m,b)}),u=O(()=>t.modelValue?xt(t.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:o)),c=O(()=>u.value.subtract(1,"month").date(1)),f=O(()=>u.value.add(1,"month").date(1)),d=O(()=>u.value.subtract(1,"year").date(1)),h=O(()=>u.value.add(1,"year").date(1)),p=(y,m)=>{const b=y.startOf("week"),_=m.endOf("week"),x=b.get("month"),w=_.get("month");return x===w?[[b,_]]:(x+1)%12===w?tEe(b,_):x+2===w||(x+1)%11===w?nEe(b,_):[]},v=y=>{s.value=y},g=y=>{const b={"prev-month":c.value,"next-month":f.value,"prev-year":d.value,"next-year":h.value,today:o}[y];b.isSame(u.value,"day")||v(b)};return Ts({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},O(()=>!!r.dateCell)),{calculateValidatedDateRange:p,date:u,realSelectedDay:s,pickDay:v,selectDate:g,validatedRange:l}},aEe=t=>He(t)&&t.length===2&&t.every(e=>qf(e)),iEe=$e({modelValue:{type:Date},range:{type:fe(Array),validator:aEe}}),oEe={[Mt]:t=>qf(t),[Da]:t=>qf(t)},sEe="ElCalendar",lEe=ie({name:sEe}),uEe=ie({...lEe,props:iEe,emits:oEe,setup(t,{expose:e,emit:n}){const r=t,a=De("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=rEe(r,n),{t:f}=Kt(),d=O(()=>{const h=`el.datepicker.month${o.value.format("M")}`;return`${o.value.year()} ${f("el.datepicker.year")} ${f(h)}`});return e({selectedDay:l,pickDay:s,selectDate:u,calculateValidatedDateRange:i}),(h,p)=>(B(),q("div",{class:F(S(a).b())},[G("div",{class:F(S(a).e("header"))},[Te(h.$slots,"header",{date:S(d)},()=>[G("div",{class:F(S(a).e("title"))},Ae(S(d)),3),S(c).length===0?(B(),q("div",{key:0,class:F(S(a).e("button-group"))},[H(S(M7),null,{default:Z(()=>[H(S(St),{size:"small",onClick:p[0]||(p[0]=v=>S(u)("prev-month"))},{default:Z(()=>[Qe(Ae(S(f)("el.datepicker.prevMonth")),1)]),_:1}),H(S(St),{size:"small",onClick:p[1]||(p[1]=v=>S(u)("today"))},{default:Z(()=>[Qe(Ae(S(f)("el.datepicker.today")),1)]),_:1}),H(S(St),{size:"small",onClick:p[2]||(p[2]=v=>S(u)("next-month"))},{default:Z(()=>[Qe(Ae(S(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):le("v-if",!0)])],2),S(c).length===0?(B(),q("div",{key:0,class:F(S(a).e("body"))},[H(dV,{date:S(o),"selected-day":S(l),onPick:S(s)},gl({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:Z(v=>[h.$slots["date-cell"]?Te(h.$slots,"date-cell",So(kt({key:0},v))):Te(h.$slots,"dateCell",So(kt({key:1},v)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(B(),q("div",{key:1,class:F(S(a).e("body"))},[(B(!0),q(Ze,null,Pt(S(c),(v,g)=>(B(),de(dV,{key:g,date:v[0],"selected-day":S(l),range:v,"hide-header":g!==0,onPick:S(s)},gl({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:Z(y=>[h.$slots["date-cell"]?Te(h.$slots,"date-cell",So(kt({key:0},y))):Te(h.$slots,"dateCell",So(kt({key:1},y)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var cEe=Ne(uEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const fEe=Tt(cEe),dEe=$e({header:{type:String,default:""},bodyStyle:{type:fe([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),hEe=ie({name:"ElCard"}),vEe=ie({...hEe,props:dEe,setup(t){const e=De("card");return(n,r)=>(B(),q("div",{class:F([S(e).b(),S(e).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(B(),q("div",{key:0,class:F(S(e).e("header"))},[Te(n.$slots,"header",{},()=>[Qe(Ae(n.header),1)])],2)):le("v-if",!0),G("div",{class:F([S(e).e("body"),n.bodyClass]),style:qe(n.bodyStyle)},[Te(n.$slots,"default")],6)],2))}});var pEe=Ne(vEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const gEe=Tt(pEe),yEe=$e({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),mEe={change:(t,e)=>[t,e].every(lt)},Y7=Symbol("carouselContextKey"),hV=300,bEe=(t,e,n)=>{const{children:r,addChild:a,removeChild:i}=QL(wt(),"ElCarouselItem"),o=z(-1),s=z(null),l=z(!1),u=z(),c=z(0),f=O(()=>t.arrow!=="never"&&!S(p)),d=O(()=>r.value.some(L=>L.props.label.toString().length>0)),h=O(()=>t.type==="card"),p=O(()=>t.direction==="vertical"),v=O(()=>t.height!=="auto"?{height:t.height}:{height:`${c.value}px`,overflow:"hidden"}),g=If(L=>{x(L)},hV,{trailing:!0}),y=If(L=>{R(L)},hV);function m(){s.value&&(clearInterval(s.value),s.value=null)}function b(){t.interval<=0||!t.autoplay||s.value||(s.value=setInterval(()=>_(),t.interval))}const _=()=>{o.valueY.props.name===L);j.length>0&&(L=r.value.indexOf(j[0]))}if(L=Number(L),Number.isNaN(L)||L!==Math.floor(L))return;const $=r.value.length,U=o.value;L<0?o.value=t.loop?$-1:0:L>=$?o.value=t.loop?0:$-1:o.value=L,U===o.value&&w(U),P()}function w(L){r.value.forEach(($,U)=>{$.translateItem(U,o.value,L)})}function C(L,$){var U,j,Y,oe;const te=S(r),re=te.length;if(re===0||!L.states.inStage)return!1;const ne=$+1,J=$-1,he=re-1,ue=te[he].states.active,X=te[0].states.active,K=(j=(U=te[ne])==null?void 0:U.states)==null?void 0:j.active,ee=(oe=(Y=te[J])==null?void 0:Y.states)==null?void 0:oe.active;return $===he&&X||K?"left":$===0&&ue||ee?"right":!1}function T(){l.value=!0,t.pauseOnHover&&m()}function k(){l.value=!1,b()}function E(L){S(p)||r.value.forEach(($,U)=>{L===C($,U)&&($.states.hover=!0)})}function M(){S(p)||r.value.forEach(L=>{L.states.hover=!1})}function D(L){o.value=L}function R(L){t.trigger==="hover"&&L!==o.value&&(o.value=L)}function A(){x(o.value-1)}function V(){x(o.value+1)}function P(){m(),b()}function N(L){t.height==="auto"&&(c.value=L)}Ee(()=>o.value,(L,$)=>{w($),$>-1&&e("change",L,$)}),Ee(()=>t.autoplay,L=>{L?b():m()}),Ee(()=>t.loop,()=>{x(o.value)}),Ee(()=>t.interval,()=>{P()}),Ee(()=>r.value,()=>{r.value.length>0&&x(t.initialIndex)});const I=Sn();return ht(()=>{I.value=da(u.value,()=>{w()}),b()}),Tn(()=>{m(),u.value&&I.value&&I.value.stop()}),Nt(Y7,{root:u,isCardType:h,isVertical:p,items:r,loop:t.loop,addItem:a,removeItem:i,setActiveItem:x,setContainerHeight:N}),{root:u,activeIndex:o,arrowDisplay:f,hasLabel:d,hover:l,isCardType:h,items:r,isVertical:p,containerStyle:v,handleButtonEnter:E,handleButtonLeave:M,handleIndicatorClick:D,handleMouseEnter:T,handleMouseLeave:k,setActiveItem:x,prev:A,next:V,throttledArrowClick:g,throttledIndicatorHover:y}},SEe=["onMouseenter","onClick"],_Ee={key:0},wEe="ElCarousel",xEe=ie({name:wEe}),CEe=ie({...xEe,props:yEe,emits:mEe,setup(t,{expose:e,emit:n}){const r=t,{root:a,activeIndex:i,arrowDisplay:o,hasLabel:s,hover:l,isCardType:u,items:c,isVertical:f,containerStyle:d,handleButtonEnter:h,handleButtonLeave:p,handleIndicatorClick:v,handleMouseEnter:g,handleMouseLeave:y,setActiveItem:m,prev:b,next:_,throttledArrowClick:x,throttledIndicatorHover:w}=bEe(r,n),C=De("carousel"),T=O(()=>{const E=[C.b(),C.m(r.direction)];return S(u)&&E.push(C.m("card")),E}),k=O(()=>{const E=[C.e("indicators"),C.em("indicators",r.direction)];return S(s)&&E.push(C.em("indicators","labels")),r.indicatorPosition==="outside"&&E.push(C.em("indicators","outside")),S(f)&&E.push(C.em("indicators","right")),E});return e({setActiveItem:m,prev:b,next:_}),(E,M)=>(B(),q("div",{ref_key:"root",ref:a,class:F(S(T)),onMouseenter:M[6]||(M[6]=it((...D)=>S(g)&&S(g)(...D),["stop"])),onMouseleave:M[7]||(M[7]=it((...D)=>S(y)&&S(y)(...D),["stop"]))},[G("div",{class:F(S(C).e("container")),style:qe(S(d))},[S(o)?(B(),de(Qn,{key:0,name:"carousel-arrow-left",persisted:""},{default:Z(()=>[yt(G("button",{type:"button",class:F([S(C).e("arrow"),S(C).em("arrow","left")]),onMouseenter:M[0]||(M[0]=D=>S(h)("left")),onMouseleave:M[1]||(M[1]=(...D)=>S(p)&&S(p)(...D)),onClick:M[2]||(M[2]=it(D=>S(x)(S(i)-1),["stop"]))},[H(S(Ye),null,{default:Z(()=>[H(S(zu))]),_:1})],34),[[qt,(E.arrow==="always"||S(l))&&(r.loop||S(i)>0)]])]),_:1})):le("v-if",!0),S(o)?(B(),de(Qn,{key:1,name:"carousel-arrow-right",persisted:""},{default:Z(()=>[yt(G("button",{type:"button",class:F([S(C).e("arrow"),S(C).em("arrow","right")]),onMouseenter:M[3]||(M[3]=D=>S(h)("right")),onMouseleave:M[4]||(M[4]=(...D)=>S(p)&&S(p)(...D)),onClick:M[5]||(M[5]=it(D=>S(x)(S(i)+1),["stop"]))},[H(S(Ye),null,{default:Z(()=>[H(S(ka))]),_:1})],34),[[qt,(E.arrow==="always"||S(l))&&(r.loop||S(i)(B(),q("li",{key:R,class:F([S(C).e("indicator"),S(C).em("indicator",E.direction),S(C).is("active",R===S(i))]),onMouseenter:A=>S(w)(R),onClick:it(A=>S(v)(R),["stop"])},[G("button",{class:F(S(C).e("button"))},[S(s)?(B(),q("span",_Ee,Ae(D.props.label),1)):le("v-if",!0)],2)],42,SEe))),128))],2)):le("v-if",!0)],34))}});var TEe=Ne(CEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const EEe=$e({name:{type:String,default:""},label:{type:[String,Number],default:""}}),MEe=(t,e)=>{const n=We(Y7),r=wt(),a=.83,i=z(),o=z(!1),s=z(0),l=z(1),u=z(!1),c=z(!1),f=z(!1),d=z(!1),{isCardType:h,isVertical:p}=n;function v(_,x,w){const C=w-1,T=x-1,k=x+1,E=w/2;return x===0&&_===C?-1:x===C&&_===0?w:_=E?w+1:_>k&&_-x>=E?-2:_}function g(_,x){var w,C;const T=S(p)?((w=n.root.value)==null?void 0:w.offsetHeight)||0:((C=n.root.value)==null?void 0:C.offsetWidth)||0;return f.value?T*((2-a)*(_-x)+1)/4:_{var C;const T=S(h),k=(C=n.items.value.length)!=null?C:Number.NaN,E=_===x;!T&&!br(w)&&(d.value=E||_===w),!E&&k>2&&n.loop&&(_=v(_,x,k));const M=S(p);u.value=E,T?(f.value=Math.round(Math.abs(_-x))<=1,s.value=g(_,x),l.value=S(u)?1:a):s.value=y(_,x,M),c.value=!0,E&&i.value&&n.setContainerHeight(i.value.offsetHeight)};function b(){if(n&&S(h)){const _=n.items.value.findIndex(({uid:x})=>x===r.uid);n.setActiveItem(_)}}return ht(()=>{n.addItem({props:t,states:Qt({hover:o,translate:s,scale:l,active:u,ready:c,inStage:f,animating:d}),uid:r.uid,translateItem:m})}),rc(()=>{n.removeItem(r.uid)}),{carouselItemRef:i,active:u,animating:d,hover:o,inStage:f,isVertical:p,translate:s,isCardType:h,scale:l,ready:c,handleItemClick:b}},kEe=ie({name:"ElCarouselItem"}),DEe=ie({...kEe,props:EEe,setup(t){const e=t,n=De("carousel"),{carouselItemRef:r,active:a,animating:i,hover:o,inStage:s,isVertical:l,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:h}=MEe(e),p=O(()=>{const g=`${`translate${S(l)?"Y":"X"}`}(${S(u)}px)`,y=`scale(${S(f)})`;return{transform:[g,y].join(" ")}});return(v,g)=>yt((B(),q("div",{ref_key:"carouselItemRef",ref:r,class:F([S(n).e("item"),S(n).is("active",S(a)),S(n).is("in-stage",S(s)),S(n).is("hover",S(o)),S(n).is("animating",S(i)),{[S(n).em("item","card")]:S(c),[S(n).em("item","card-vertical")]:S(c)&&S(l)}]),style:qe(S(p)),onClick:g[0]||(g[0]=(...y)=>S(h)&&S(h)(...y))},[S(c)?yt((B(),q("div",{key:0,class:F(S(n).e("mask"))},null,2)),[[qt,!S(a)]]):le("v-if",!0),Te(v.$slots,"default")],6)),[[qt,S(d)]])}});var X7=Ne(DEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const REe=Tt(TEe,{CarouselItem:X7}),LEe=Hn(X7),q7={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:qr,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},Z7={[Mt]:t=>ft(t)||lt(t)||cr(t),change:t=>ft(t)||lt(t)||cr(t)},qv=Symbol("checkboxGroupContextKey"),AEe=({model:t,isChecked:e})=>{const n=We(qv,void 0),r=O(()=>{var i,o;const s=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(o=n==null?void 0:n.min)==null?void 0:o.value;return!br(s)&&t.value.length>=s&&!e.value||!br(l)&&t.value.length<=l&&e.value});return{isDisabled:ni(O(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},OEe=(t,{model:e,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const o=We(qv,void 0),{formItem:s}=Va(),{emit:l}=wt();function u(p){var v,g;return p===t.trueLabel||p===!0?(v=t.trueLabel)!=null?v:!0:(g=t.falseLabel)!=null?g:!1}function c(p,v){l("change",u(p),v)}function f(p){if(n.value)return;const v=p.target;l("change",u(v.checked),p)}async function d(p){n.value||!r.value&&!a.value&&i.value&&(p.composedPath().some(y=>y.tagName==="LABEL")||(e.value=u([!1,t.falseLabel].includes(e.value)),await Xe(),c(e.value,p)))}const h=O(()=>(o==null?void 0:o.validateEvent)||t.validateEvent);return Ee(()=>t.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(p=>void 0))}),{handleChange:f,onClickRoot:d}},NEe=t=>{const e=z(!1),{emit:n}=wt(),r=We(qv,void 0),a=O(()=>br(r)===!1),i=z(!1);return{model:O({get(){var s,l;return a.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=t.modelValue)!=null?l:e.value},set(s){var l,u;a.value&&He(s)?(i.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&s.length>(r==null?void 0:r.max.value),i.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(Mt,s),e.value=s)}}),isGroup:a,isLimitExceeded:i}},$Ee=(t,e,{model:n})=>{const r=We(qv,void 0),a=z(!1),i=O(()=>{const u=n.value;return cr(u)?u:He(u)?Lt(t.label)?u.map(on).some(c=>Xa(c,t.label)):u.map(on).includes(t.label):u!=null?u===t.trueLabel:!!u}),o=hr(O(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=hr(O(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=O(()=>!!(e.default||t.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:l}},IEe=(t,{model:e})=>{function n(){He(e.value)&&!e.value.includes(t.label)?e.value.push(t.label):e.value=t.trueLabel||!0}t.checked&&n()},Q7=(t,e)=>{const{formItem:n}=Va(),{model:r,isGroup:a,isLimitExceeded:i}=NEe(t),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=$Ee(t,e,{model:r}),{isDisabled:f}=AEe({model:r,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=uc(t,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:p,onClickRoot:v}=OEe(t,{model:r,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return IEe(t,{model:r}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:p,onClickRoot:v}},BEe=["tabindex","role","aria-checked"],VEe=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],PEe=["id","aria-hidden","disabled","value","name","tabindex"],FEe=ie({name:"ElCheckbox"}),zEe=ie({...FEe,props:q7,emits:Z7,setup(t){const e=t,n=ea(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=Q7(e,n),h=De("checkbox"),p=O(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",e.border),h.is("checked",i.value)]),v=O(()=>[h.e("input"),h.is("disabled",o.value),h.is("checked",i.value),h.is("indeterminate",e.indeterminate),h.is("focus",s.value)]);return(g,y)=>(B(),de(Et(!S(u)&&S(a)?"span":"label"),{class:F(S(p)),"aria-controls":g.indeterminate?g.controls:null,onClick:S(d)},{default:Z(()=>[G("span",{class:F(S(v)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?yt((B(),q("input",{key:0,id:S(r),"onUpdate:modelValue":y[0]||(y[0]=m=>pt(c)?c.value=m:null),class:F(S(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:S(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:y[1]||(y[1]=(...m)=>S(f)&&S(f)(...m)),onFocus:y[2]||(y[2]=m=>s.value=!0),onBlur:y[3]||(y[3]=m=>s.value=!1),onClick:y[4]||(y[4]=it(()=>{},["stop"]))},null,42,VEe)),[[AS,S(c)]]):yt((B(),q("input",{key:1,id:S(r),"onUpdate:modelValue":y[5]||(y[5]=m=>pt(c)?c.value=m:null),class:F(S(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:S(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:y[6]||(y[6]=(...m)=>S(f)&&S(f)(...m)),onFocus:y[7]||(y[7]=m=>s.value=!0),onBlur:y[8]||(y[8]=m=>s.value=!1),onClick:y[9]||(y[9]=it(()=>{},["stop"]))},null,42,PEe)),[[AS,S(c)]]),G("span",{class:F(S(h).e("inner"))},null,2)],10,BEe),S(u)?(B(),q("span",{key:0,class:F(S(h).e("label"))},[Te(g.$slots,"default"),g.$slots.default?le("v-if",!0):(B(),q(Ze,{key:0},[Qe(Ae(g.label),1)],64))],2)):le("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var GEe=Ne(zEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const HEe=["name","tabindex","disabled","true-value","false-value"],UEe=["name","tabindex","disabled","value"],WEe=ie({name:"ElCheckboxButton"}),jEe=ie({...WEe,props:q7,emits:Z7,setup(t){const e=t,n=ea(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:l}=Q7(e,n),u=We(qv,void 0),c=De("checkbox"),f=O(()=>{var h,p,v,g;const y=(p=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?p:"";return{backgroundColor:y,borderColor:y,color:(g=(v=u==null?void 0:u.textColor)==null?void 0:v.value)!=null?g:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}}),d=O(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",i.value),c.is("checked",a.value),c.is("focus",r.value)]);return(h,p)=>(B(),q("label",{class:F(S(d))},[h.trueLabel||h.falseLabel?yt((B(),q("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=v=>pt(s)?s.value=v:null),class:F(S(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:S(i),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:p[1]||(p[1]=(...v)=>S(l)&&S(l)(...v)),onFocus:p[2]||(p[2]=v=>r.value=!0),onBlur:p[3]||(p[3]=v=>r.value=!1),onClick:p[4]||(p[4]=it(()=>{},["stop"]))},null,42,HEe)),[[AS,S(s)]]):yt((B(),q("input",{key:1,"onUpdate:modelValue":p[5]||(p[5]=v=>pt(s)?s.value=v:null),class:F(S(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:S(i),value:h.label,onChange:p[6]||(p[6]=(...v)=>S(l)&&S(l)(...v)),onFocus:p[7]||(p[7]=v=>r.value=!0),onBlur:p[8]||(p[8]=v=>r.value=!1),onClick:p[9]||(p[9]=it(()=>{},["stop"]))},null,42,UEe)),[[AS,S(s)]]),h.$slots.default||h.label?(B(),q("span",{key:2,class:F(S(c).be("button","inner")),style:qe(S(a)?S(f):void 0)},[Te(h.$slots,"default",{},()=>[Qe(Ae(h.label),1)])],6)):le("v-if",!0)],2))}});var J7=Ne(jEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const KEe=$e({modelValue:{type:fe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:qr,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),YEe={[Mt]:t=>He(t),change:t=>He(t)},XEe=ie({name:"ElCheckboxGroup"}),qEe=ie({...XEe,props:KEe,emits:YEe,setup(t,{emit:e}){const n=t,r=De("checkbox"),{formItem:a}=Va(),{inputId:i,isLabeledByFormItem:o}=uc(n,{formItemContext:a}),s=async u=>{e(Mt,u),await Xe(),e("change",u)},l=O({get(){return n.modelValue},set(u){s(u)}});return Nt(qv,{...al(kr(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Ee(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return B(),de(Et(u.tag),{id:S(i),class:F(S(r).b("group")),role:"group","aria-label":S(o)?void 0:u.label||"checkbox-group","aria-labelledby":S(o)?(f=S(a))==null?void 0:f.labelId:void 0},{default:Z(()=>[Te(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var ej=Ne(qEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const Xi=Tt(GEe,{CheckboxButton:J7,CheckboxGroup:ej}),ZEe=Hn(J7),tj=Hn(ej),nj=$e({size:qr,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),QEe=$e({...nj,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),rj={[Mt]:t=>ft(t)||lt(t)||cr(t),[kn]:t=>ft(t)||lt(t)||cr(t)},aj=Symbol("radioGroupKey"),ij=(t,e)=>{const n=z(),r=We(aj,void 0),a=O(()=>!!r),i=O({get(){return a.value?r.modelValue:t.modelValue},set(c){a.value?r.changeEvent(c):e&&e(Mt,c),n.value.checked=t.modelValue===t.label}}),o=hr(O(()=>r==null?void 0:r.size)),s=ni(O(()=>r==null?void 0:r.disabled)),l=z(!1),u=O(()=>s.value||a.value&&i.value!==t.label?-1:0);return{radioRef:n,isGroup:a,radioGroup:r,focus:l,size:o,disabled:s,tabIndex:u,modelValue:i}},JEe=["value","name","disabled"],eMe=ie({name:"ElRadio"}),tMe=ie({...eMe,props:QEe,emits:rj,setup(t,{emit:e}){const n=t,r=De("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=ij(n,e);function c(){Xe(()=>e("change",u.value))}return(f,d)=>{var h;return B(),q("label",{class:F([S(r).b(),S(r).is("disabled",S(l)),S(r).is("focus",S(o)),S(r).is("bordered",f.border),S(r).is("checked",S(u)===f.label),S(r).m(S(s))])},[G("span",{class:F([S(r).e("input"),S(r).is("disabled",S(l)),S(r).is("checked",S(u)===f.label)])},[yt(G("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=p=>pt(u)?u.value=p:null),class:F(S(r).e("original")),value:f.label,name:f.name||((h=S(i))==null?void 0:h.name),disabled:S(l),type:"radio",onFocus:d[1]||(d[1]=p=>o.value=!0),onBlur:d[2]||(d[2]=p=>o.value=!1),onChange:c,onClick:d[3]||(d[3]=it(()=>{},["stop"]))},null,42,JEe),[[$U,S(u)]]),G("span",{class:F(S(r).e("inner"))},null,2)],2),G("span",{class:F(S(r).e("label")),onKeydown:d[4]||(d[4]=it(()=>{},["stop"]))},[Te(f.$slots,"default",{},()=>[Qe(Ae(f.label),1)])],34)],2)}}});var nMe=Ne(tMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const rMe=$e({...nj,name:{type:String,default:""}}),aMe=["value","name","disabled"],iMe=ie({name:"ElRadioButton"}),oMe=ie({...iMe,props:rMe,setup(t){const e=t,n=De("radio"),{radioRef:r,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=ij(e),u=O(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(c,f)=>{var d;return B(),q("label",{class:F([S(n).b("button"),S(n).is("active",S(s)===c.label),S(n).is("disabled",S(o)),S(n).is("focus",S(a)),S(n).bm("button",S(i))])},[yt(G("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=h=>pt(s)?s.value=h:null),class:F(S(n).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((d=S(l))==null?void 0:d.name),disabled:S(o),onFocus:f[1]||(f[1]=h=>a.value=!0),onBlur:f[2]||(f[2]=h=>a.value=!1),onClick:f[3]||(f[3]=it(()=>{},["stop"]))},null,42,aMe),[[$U,S(s)]]),G("span",{class:F(S(n).be("button","inner")),style:qe(S(s)===c.label?S(u):{}),onKeydown:f[4]||(f[4]=it(()=>{},["stop"]))},[Te(c.$slots,"default",{},()=>[Qe(Ae(c.label),1)])],38)],2)}}});var oj=Ne(oMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const sMe=$e({id:{type:String,default:void 0},size:qr,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),lMe=rj,uMe=["id","aria-label","aria-labelledby"],cMe=ie({name:"ElRadioGroup"}),fMe=ie({...cMe,props:sMe,emits:lMe,setup(t,{emit:e}){const n=t,r=De("radio"),a=Ki(),i=z(),{formItem:o}=Va(),{inputId:s,isLabeledByFormItem:l}=uc(n,{formItemContext:o}),u=f=>{e(Mt,f),Xe(()=>e("change",f))};ht(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=O(()=>n.name||a.value);return Nt(aj,Qt({...kr(n),changeEvent:u,name:c})),Ee(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>(B(),q("div",{id:S(s),ref_key:"radioGroupRef",ref:i,class:F(S(r).b("group")),role:"radiogroup","aria-label":S(l)?void 0:f.label||"radio-group","aria-labelledby":S(l)?S(o).labelId:void 0},[Te(f.$slots,"default")],10,uMe))}});var sj=Ne(fMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const lj=Tt(nMe,{RadioButton:oj,RadioGroup:sj}),dMe=Hn(sj),hMe=Hn(oj);var vMe=ie({name:"NodeContent",setup(){return{ns:De("cascader-node")}},render(){const{ns:t}=this,{node:e,panel:n}=this.$parent,{data:r,label:a}=e,{renderLabelFn:i}=n;return tt("span",{class:t.e("label")},i?i({node:e,data:r}):a)}});const oA=Symbol(),pMe=ie({name:"ElCascaderNode",components:{ElCheckbox:Xi,ElRadio:lj,NodeContent:vMe,ElIcon:Ye,Check:Gy,Loading:oc,ArrowRight:ka},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(t,{emit:e}){const n=We(oA),r=De("cascader-node"),a=O(()=>n.isHoverMenu),i=O(()=>n.config.multiple),o=O(()=>n.config.checkStrictly),s=O(()=>{var w;return(w=n.checkedNodes[0])==null?void 0:w.uid}),l=O(()=>t.node.isDisabled),u=O(()=>t.node.isLeaf),c=O(()=>o.value&&!u.value||!l.value),f=O(()=>h(n.expandingNode)),d=O(()=>o.value&&n.checkedNodes.some(h)),h=w=>{var C;const{level:T,uid:k}=t.node;return((C=w==null?void 0:w.pathNodes[T-1])==null?void 0:C.uid)===k},p=()=>{f.value||n.expandNode(t.node)},v=w=>{const{node:C}=t;w!==C.checked&&n.handleCheckChange(C,w)},g=()=>{n.lazyLoad(t.node,()=>{u.value||p()})},y=w=>{a.value&&(m(),!u.value&&e("expand",w))},m=()=>{const{node:w}=t;!c.value||w.loading||(w.loaded?p():g())},b=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?x(!0):m())},_=w=>{o.value?(v(w),t.node.loaded&&p()):x(w)},x=w=>{t.node.loaded?(v(w),!o.value&&p()):g()};return{panel:n,isHoverMenu:a,multiple:i,checkStrictly:o,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:f,inCheckedPath:d,ns:r,handleHoverExpand:y,handleExpand:m,handleClick:b,handleCheck:x,handleSelectCheck:_}}}),gMe=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],yMe=G("span",null,null,-1);function mMe(t,e,n,r,a,i){const o=Ge("el-checkbox"),s=Ge("el-radio"),l=Ge("check"),u=Ge("el-icon"),c=Ge("node-content"),f=Ge("loading"),d=Ge("arrow-right");return B(),q("li",{id:`${t.menuId}-${t.node.uid}`,role:"menuitem","aria-haspopup":!t.isLeaf,"aria-owns":t.isLeaf?null:t.menuId,"aria-expanded":t.inExpandingPath,tabindex:t.expandable?-1:void 0,class:F([t.ns.b(),t.ns.is("selectable",t.checkStrictly),t.ns.is("active",t.node.checked),t.ns.is("disabled",!t.expandable),t.inExpandingPath&&"in-active-path",t.inCheckedPath&&"in-checked-path"]),onMouseenter:e[2]||(e[2]=(...h)=>t.handleHoverExpand&&t.handleHoverExpand(...h)),onFocus:e[3]||(e[3]=(...h)=>t.handleHoverExpand&&t.handleHoverExpand(...h)),onClick:e[4]||(e[4]=(...h)=>t.handleClick&&t.handleClick(...h))},[le(" prefix "),t.multiple?(B(),de(o,{key:0,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:t.isDisabled,onClick:e[0]||(e[0]=it(()=>{},["stop"])),"onUpdate:modelValue":t.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):t.checkStrictly?(B(),de(s,{key:1,"model-value":t.checkedNodeId,label:t.node.uid,disabled:t.isDisabled,"onUpdate:modelValue":t.handleSelectCheck,onClick:e[1]||(e[1]=it(()=>{},["stop"]))},{default:Z(()=>[le(` Add an empty element to avoid render label, do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 `),yMe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):t.isLeaf&&t.node.checked?(B(),de(u,{key:2,class:F(t.ns.e("prefix"))},{default:Z(()=>[H(l)]),_:1},8,["class"])):le("v-if",!0),le(" content "),H(c),le(" postfix "),t.isLeaf?le("v-if",!0):(B(),q(Ze,{key:3},[t.node.loading?(B(),de(u,{key:0,class:F([t.ns.is("loading"),t.ns.e("postfix")])},{default:Z(()=>[H(f)]),_:1},8,["class"])):(B(),de(u,{key:1,class:F(["arrow-right",t.ns.e("postfix")])},{default:Z(()=>[H(d)]),_:1},8,["class"]))],64))],42,gMe)}var bMe=Ne(pMe,[["render",mMe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const SMe=ie({name:"ElCascaderMenu",components:{Loading:oc,ElIcon:Ye,ElScrollbar:Rl,ElCascaderNode:bMe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(t){const e=wt(),n=De("cascader-menu"),{t:r}=Kt(),a=Qw();let i=null,o=null;const s=We(oA),l=z(null),u=O(()=>!t.nodes.length),c=O(()=>!s.initialLoaded),f=O(()=>`cascader-menu-${a}-${t.index}`),d=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){p();const y=e.vnode.el,{left:m}=y.getBoundingClientRect(),{offsetWidth:b,offsetHeight:_}=y,x=g.clientX-m,w=i.offsetTop,C=w+i.offsetHeight;l.value.innerHTML=` `}else o||(o=window.setTimeout(v,s.config.hoverThreshold))},p=()=>{o&&(clearTimeout(o),o=null)},v=()=>{l.value&&(l.value.innerHTML="",p())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:r,handleExpand:d,handleMouseMove:h,clearHoverZone:v}}});function _Me(t,e,n,r,a,i){const o=Ge("el-cascader-node"),s=Ge("loading"),l=Ge("el-icon"),u=Ge("el-scrollbar");return B(),de(u,{key:t.menuId,tag:"ul",role:"menu",class:F(t.ns.b()),"wrap-class":t.ns.e("wrap"),"view-class":[t.ns.e("list"),t.ns.is("empty",t.isEmpty)],onMousemove:t.handleMouseMove,onMouseleave:t.clearHoverZone},{default:Z(()=>{var c;return[(B(!0),q(Ze,null,Pt(t.nodes,f=>(B(),de(o,{key:f.uid,node:f,"menu-id":t.menuId,onExpand:t.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),t.isLoading?(B(),q("div",{key:0,class:F(t.ns.e("empty-text"))},[H(l,{size:"14",class:F(t.ns.is("loading"))},{default:Z(()=>[H(s)]),_:1},8,["class"]),Qe(" "+Ae(t.t("el.cascader.loading")),1)],2)):t.isEmpty?(B(),q("div",{key:1,class:F(t.ns.e("empty-text"))},Ae(t.t("el.cascader.noData")),3)):(c=t.panel)!=null&&c.isHoverMenu?(B(),q("svg",{key:2,ref:"hoverZone",class:F(t.ns.e("hover-zone"))},null,2)):le("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var wMe=Ne(SMe,[["render",_Me],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let xMe=0;const CMe=t=>{const e=[t];let{parent:n}=t;for(;n;)e.unshift(n),n=n.parent;return e};let XM=class qM{constructor(e,n,r,a=!1){this.data=e,this.config=n,this.parent=r,this.root=a,this.uid=xMe++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:o,children:s}=n,l=e[s],u=CMe(this);this.level=a?0:r?r.level+1:1,this.value=e[i],this.label=e[o],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new qM(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!Ni(l)}get isDisabled(){const{data:e,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(ut(a)?a(e,this):!!e[a])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:e,config:n,childrenData:r,loaded:a}=this,{lazy:i,leaf:o}=n,s=ut(o)?o(e,this):e[o];return br(s)?i&&!a?!1:!(Array.isArray(r)&&r.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(e){const{childrenData:n,children:r}=this,a=new qM(e,this.config,this);return Array.isArray(n)?n.push(e):this.childrenData=[e],r.push(a),a}calcText(e,n){const r=e?this.pathLabels.join(n):this.label;return this.text=r,r}broadcast(e,...n){const r=`onParent${ls(e)}`;this.children.forEach(a=>{a&&(a.broadcast(e,...n),a[r]&&a[r](...n))})}emit(e,...n){const{parent:r}=this,a=`onChild${ls(e)}`;r&&(r[a]&&r[a](...n),r.emit(e,...n))}onParentCheck(e){this.isDisabled||this.setCheckState(e)}onChildCheck(){const{children:e}=this,n=e.filter(a=>!a.isDisabled),r=n.length?n.every(a=>a.checked):!1;this.setCheckState(r)}setCheckState(e){const n=this.children.length,r=this.children.reduce((a,i)=>{const o=i.checked?1:i.indeterminate?.5:0;return a+o},0);this.checked=this.loaded&&this.children.filter(a=>!a.isDisabled).every(a=>a.loaded&&a.checked)&&e,this.indeterminate=this.loaded&&r!==n&&r>0}doCheck(e){if(this.checked===e)return;const{checkStrictly:n,multiple:r}=this.config;n||!r?this.checked=e:(this.broadcast("check",e),this.setCheckState(e),this.emit("check"))}};const ZM=(t,e)=>t.reduce((n,r)=>(r.isLeaf?n.push(r):(!e&&n.push(r),n=n.concat(ZM(r.children,e))),n),[]);class vV{constructor(e,n){this.config=n;const r=(e||[]).map(a=>new XM(a,this.config));this.nodes=r,this.allNodes=ZM(r,!1),this.leafNodes=ZM(r,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,n){const r=n?n.appendChild(e):new XM(e,this.config);n||this.nodes.push(r),this.allNodes.push(r),r.isLeaf&&this.leafNodes.push(r)}appendNodes(e,n){e.forEach(r=>this.appendNode(r,n))}getNodeByValue(e,n=!1){return!e&&e!==0?null:this.getFlattedNodes(n).find(a=>Xa(a.value,e)||Xa(a.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:r,level:a})=>Xa(e.value,r)&&e.level===a)||null}}const uj=$e({modelValue:{type:fe([Number,String,Array])},options:{type:fe(Array),default:()=>[]},props:{type:fe(Object),default:()=>({})}}),TMe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:cn,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},EMe=t=>O(()=>({...TMe,...t.props})),pV=t=>{if(!t)return 0;const e=t.id.split("-");return Number(e[e.length-2])},MMe=t=>{if(!t)return;const e=t.querySelector("input");e?e.click():bW(t)&&t.click()},kMe=(t,e)=>{const n=e.slice(0),r=n.map(i=>i.uid),a=t.reduce((i,o)=>{const s=r.indexOf(o.uid);return s>-1&&(i.push(o),n.splice(s,1),r.splice(s,1)),i},[]);return a.push(...n),a},DMe=ie({name:"ElCascaderPanel",components:{ElCascaderMenu:wMe},props:{...uj,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Mt,kn,"close","expand-change"],setup(t,{emit:e,slots:n}){let r=!1;const a=De("cascader"),i=EMe(t);let o=null;const s=z(!0),l=z([]),u=z(null),c=z([]),f=z(null),d=z([]),h=O(()=>i.value.expandTrigger==="hover"),p=O(()=>t.renderLabel||n.default),v=()=>{const{options:D}=t,R=i.value;r=!1,o=new vV(D,R),c.value=[o.getNodes()],R.lazy&&Ni(t.options)?(s.value=!1,g(void 0,A=>{A&&(o=new vV(A,R),c.value=[o.getNodes()]),s.value=!0,T(!1,!0)})):T(!1,!0)},g=(D,R)=>{const A=i.value;D=D||new XM({},A,void 0,!0),D.loading=!0;const V=P=>{const N=D,I=N.root?null:N;P&&(o==null||o.appendNodes(P,I)),N.loading=!1,N.loaded=!0,N.childrenData=N.childrenData||[],R&&R(P)};A.lazyLoad(D,V)},y=(D,R)=>{var A;const{level:V}=D,P=c.value.slice(0,V);let N;D.isLeaf?N=D.pathNodes[V-2]:(N=D,P.push(D.children)),((A=f.value)==null?void 0:A.uid)!==(N==null?void 0:N.uid)&&(f.value=D,c.value=P,!R&&e("expand-change",(D==null?void 0:D.pathValues)||[]))},m=(D,R,A=!0)=>{const{checkStrictly:V,multiple:P}=i.value,N=d.value[0];r=!0,!P&&(N==null||N.doCheck(!1)),D.doCheck(R),C(),A&&!P&&!V&&e("close"),!A&&!P&&!V&&b(D)},b=D=>{D&&(D=D.parent,b(D),D&&y(D))},_=D=>o==null?void 0:o.getFlattedNodes(D),x=D=>{var R;return(R=_(D))==null?void 0:R.filter(A=>A.checked!==!1)},w=()=>{d.value.forEach(D=>D.doCheck(!1)),C(),c.value=c.value.slice(0,1),f.value=null,e("expand-change",[])},C=()=>{var D;const{checkStrictly:R,multiple:A}=i.value,V=d.value,P=x(!R),N=kMe(V,P),I=N.map(L=>L.valueByOption);d.value=N,u.value=A?I:(D=I[0])!=null?D:null},T=(D=!1,R=!1)=>{const{modelValue:A}=t,{lazy:V,multiple:P,checkStrictly:N}=i.value,I=!N;if(!(!s.value||r||!R&&Xa(A,u.value)))if(V&&!D){const $=pB(L0e(dl(A))).map(U=>o==null?void 0:o.getNodeByValue(U)).filter(U=>!!U&&!U.loaded&&!U.loading);$.length?$.forEach(U=>{g(U,()=>T(!1,R))}):T(!0,R)}else{const L=P?dl(A):[A],$=pB(L.map(U=>o==null?void 0:o.getNodeByValue(U,I)));k($,R),u.value=BS(A)}},k=(D,R=!0)=>{const{checkStrictly:A}=i.value,V=d.value,P=D.filter(L=>!!L&&(A||L.isLeaf)),N=o==null?void 0:o.getSameNode(f.value),I=R&&N||P[0];I?I.pathNodes.forEach(L=>y(L,!0)):f.value=null,V.forEach(L=>L.doCheck(!1)),t.props.multiple?Qt(P).forEach(L=>L.doCheck(!0)):P.forEach(L=>L.doCheck(!0)),d.value=P,Xe(E)},E=()=>{Ut&&l.value.forEach(D=>{const R=D==null?void 0:D.$el;if(R){const A=R.querySelector(`.${a.namespace.value}-scrollbar__wrap`),V=R.querySelector(`.${a.b("node")}.${a.is("active")}`)||R.querySelector(`.${a.b("node")}.in-active-path`);f9(A,V)}})},M=D=>{const R=D.target,{code:A}=D;switch(A){case et.up:case et.down:{D.preventDefault();const V=A===et.up?-1:1;Mb(SW(R,V,`.${a.b("node")}[tabindex="-1"]`));break}case et.left:{D.preventDefault();const V=l.value[pV(R)-1],P=V==null?void 0:V.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);Mb(P);break}case et.right:{D.preventDefault();const V=l.value[pV(R)+1],P=V==null?void 0:V.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);Mb(P);break}case et.enter:MMe(R);break}};return Nt(oA,Qt({config:i,expandingNode:f,checkedNodes:d,isHoverMenu:h,initialLoaded:s,renderLabelFn:p,lazyLoad:g,expandNode:y,handleCheckChange:m})),Ee([i,()=>t.options],v,{deep:!0,immediate:!0}),Ee(()=>t.modelValue,()=>{r=!1,T()},{deep:!0}),Ee(()=>u.value,D=>{Xa(D,t.modelValue)||(e(Mt,D),e(kn,D))}),cU(()=>l.value=[]),ht(()=>!Ni(t.modelValue)&&T()),{ns:a,menuList:l,menus:c,checkedNodes:d,handleKeyDown:M,handleCheckChange:m,getFlattedNodes:_,getCheckedNodes:x,clearCheckedNodes:w,calculateCheckedValue:C,scrollToExpandingNode:E}}});function RMe(t,e,n,r,a,i){const o=Ge("el-cascader-menu");return B(),q("div",{class:F([t.ns.b("panel"),t.ns.is("bordered",t.border)]),onKeydown:e[0]||(e[0]=(...s)=>t.handleKeyDown&&t.handleKeyDown(...s))},[(B(!0),q(Ze,null,Pt(t.menus,(s,l)=>(B(),de(o,{key:l,ref_for:!0,ref:u=>t.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var $b=Ne(DMe,[["render",RMe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);$b.install=t=>{t.component($b.name,$b)};const cj=$b,LMe=cj,sA=$e({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:Ns,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),AMe={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},OMe=ie({name:"ElTag"}),NMe=ie({...OMe,props:sA,emits:AMe,setup(t,{emit:e}){const n=t,r=hr(),a=De("tag"),i=O(()=>{const{type:l,hit:u,effect:c,closable:f,round:d}=n;return[a.b(),a.is("closable",f),a.m(l),a.m(r.value),a.m(c),a.is("hit",u),a.is("round",d)]}),o=l=>{e("close",l)},s=l=>{e("click",l)};return(l,u)=>l.disableTransitions?(B(),q("span",{key:0,class:F(S(i)),style:qe({backgroundColor:l.color}),onClick:s},[G("span",{class:F(S(a).e("content"))},[Te(l.$slots,"default")],2),l.closable?(B(),de(S(Ye),{key:0,class:F(S(a).e("close")),onClick:it(o,["stop"])},{default:Z(()=>[H(S(No))]),_:1},8,["class","onClick"])):le("v-if",!0)],6)):(B(),de(Qn,{key:1,name:`${S(a).namespace.value}-zoom-in-center`,appear:""},{default:Z(()=>[G("span",{class:F(S(i)),style:qe({backgroundColor:l.color}),onClick:s},[G("span",{class:F(S(a).e("content"))},[Te(l.$slots,"default")],2),l.closable?(B(),de(S(Ye),{key:0,class:F(S(a).e("close")),onClick:it(o,["stop"])},{default:Z(()=>[H(S(No))]),_:1},8,["class","onClick"])):le("v-if",!0)],6)]),_:3},8,["name"]))}});var $Me=Ne(NMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const I0=Tt($Me),IMe=$e({...uj,size:qr,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:fe(Function),default:(t,e)=>t.text.includes(e)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:fe(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Nr.teleported,tagType:{...sA.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),BMe={[Mt]:t=>!!t||t===null,[kn]:t=>!!t||t===null,focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,visibleChange:t=>cr(t),expandChange:t=>!!t,removeTag:t=>!!t},VMe={key:0},PMe=["placeholder","onKeydown"],FMe=["onClick"],zMe="ElCascader",GMe=ie({name:zMe}),HMe=ie({...GMe,props:IMe,emits:BMe,setup(t,{expose:e,emit:n}){const r=t,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:ve})=>{const{modifiersData:ce,placement:Re}=ve;["right","left","bottom","top"].includes(Re)||(ce.arrow.x=35)},requires:["arrow"]}]},i=fd();let o=0,s=0;const l=De("cascader"),u=De("input"),{t:c}=Kt(),{form:f,formItem:d}=Va(),h=z(null),p=z(null),v=z(null),g=z(null),y=z(null),m=z(!1),b=z(!1),_=z(!1),x=z(!1),w=z(""),C=z(""),T=z([]),k=z([]),E=z([]),M=z(!1),D=O(()=>i.style),R=O(()=>r.disabled||(f==null?void 0:f.disabled)),A=O(()=>r.placeholder||c("el.cascader.placeholder")),V=O(()=>C.value||T.value.length>0||M.value?"":A.value),P=hr(),N=O(()=>["small"].includes(P.value)?"small":"default"),I=O(()=>!!r.props.multiple),L=O(()=>!r.filterable||I.value),$=O(()=>I.value?C.value:w.value),U=O(()=>{var ve;return((ve=g.value)==null?void 0:ve.checkedNodes)||[]}),j=O(()=>!r.clearable||R.value||_.value||!b.value?!1:!!U.value.length),Y=O(()=>{const{showAllLevels:ve,separator:ce}=r,Re=U.value;return Re.length?I.value?"":Re[0].calcText(ve,ce):""}),oe=O({get(){return BS(r.modelValue)},set(ve){n(Mt,ve),n(kn,ve),r.validateEvent&&(d==null||d.validate("change").catch(ce=>void 0))}}),te=O(()=>[l.b(),l.m(P.value),l.is("disabled",R.value),i.class]),re=O(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",m.value)]),ne=O(()=>l.is("focus",m.value||x.value)),J=O(()=>{var ve,ce;return(ce=(ve=h.value)==null?void 0:ve.popperRef)==null?void 0:ce.contentRef}),he=ve=>{var ce,Re,ae;R.value||(ve=ve??!m.value,ve!==m.value&&(m.value=ve,(Re=(ce=p.value)==null?void 0:ce.input)==null||Re.setAttribute("aria-expanded",`${ve}`),ve?(ue(),Xe((ae=g.value)==null?void 0:ae.scrollToExpandingNode)):r.filterable&&Ve(),n("visibleChange",ve)))},ue=()=>{Xe(()=>{var ve;(ve=h.value)==null||ve.updatePopper()})},X=()=>{_.value=!1},K=ve=>{const{showAllLevels:ce,separator:Re}=r;return{node:ve,key:ve.uid,text:ve.calcText(ce,Re),hitState:!1,closable:!R.value&&!ve.isDisabled,isCollapseTag:!1}},ee=ve=>{var ce;const Re=ve.node;Re.doCheck(!1),(ce=g.value)==null||ce.calculateCheckedValue(),n("removeTag",Re.valueByOption)},se=()=>{if(!I.value)return;const ve=U.value,ce=[],Re=[];if(ve.forEach(ae=>Re.push(K(ae))),k.value=Re,ve.length){ve.slice(0,r.maxCollapseTags).forEach(dt=>ce.push(K(dt)));const ae=ve.slice(r.maxCollapseTags),Fe=ae.length;Fe&&(r.collapseTags?ce.push({key:-1,text:`+ ${Fe}`,closable:!1,isCollapseTag:!0}):ae.forEach(dt=>ce.push(K(dt))))}T.value=ce},ye=()=>{var ve,ce;const{filterMethod:Re,showAllLevels:ae,separator:Fe}=r,dt=(ce=(ve=g.value)==null?void 0:ve.getFlattedNodes(!r.props.checkStrictly))==null?void 0:ce.filter($t=>$t.isDisabled?!1:($t.calcText(ae,Fe),Re($t,$.value)));I.value&&(T.value.forEach($t=>{$t.hitState=!1}),k.value.forEach($t=>{$t.hitState=!1})),_.value=!0,E.value=dt,ue()},we=()=>{var ve;let ce;_.value&&y.value?ce=y.value.$el.querySelector(`.${l.e("suggestion-item")}`):ce=(ve=g.value)==null?void 0:ve.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),ce&&(ce.focus(),!_.value&&ce.click())},be=()=>{var ve,ce;const Re=(ve=p.value)==null?void 0:ve.input,ae=v.value,Fe=(ce=y.value)==null?void 0:ce.$el;if(!(!Ut||!Re)){if(Fe){const dt=Fe.querySelector(`.${l.e("suggestion-list")}`);dt.style.minWidth=`${Re.offsetWidth}px`}if(ae){const{offsetHeight:dt}=ae,$t=T.value.length>0?`${Math.max(dt+6,o)}px`:`${o}px`;Re.style.height=$t,ue()}}},Me=ve=>{var ce;return(ce=g.value)==null?void 0:ce.getCheckedNodes(ve)},Se=ve=>{ue(),n("expandChange",ve)},xe=ve=>{var ce;const Re=(ce=ve.target)==null?void 0:ce.value;if(ve.type==="compositionend")M.value=!1,Xe(()=>rt(Re));else{const ae=Re[Re.length-1]||"";M.value=!qw(ae)}},ke=ve=>{if(!M.value)switch(ve.code){case et.enter:he();break;case et.down:he(!0),Xe(we),ve.preventDefault();break;case et.esc:m.value===!0&&(ve.preventDefault(),ve.stopPropagation(),he(!1));break;case et.tab:he(!1);break}},ge=()=>{var ve;(ve=g.value)==null||ve.clearCheckedNodes(),!m.value&&r.filterable&&Ve(),he(!1)},Ve=()=>{const{value:ve}=Y;w.value=ve,C.value=ve},Ke=ve=>{var ce,Re;const{checked:ae}=ve;I.value?(ce=g.value)==null||ce.handleCheckChange(ve,!ae,!1):(!ae&&((Re=g.value)==null||Re.handleCheckChange(ve,!0,!1)),he(!1))},Le=ve=>{const ce=ve.target,{code:Re}=ve;switch(Re){case et.up:case et.down:{const ae=Re===et.up?-1:1;Mb(SW(ce,ae,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case et.enter:ce.click();break}},Ue=()=>{const ve=T.value,ce=ve[ve.length-1];s=C.value?0:s+1,!(!ce||!s||r.collapseTags&&ve.length>1)&&(ce.hitState?ee(ce):ce.hitState=!0)},st=ve=>{const ce=ve.target,Re=l.e("search-input");ce.className===Re&&(x.value=!0),n("focus",ve)},bt=ve=>{x.value=!1,n("blur",ve)},At=Oa(()=>{const{value:ve}=$;if(!ve)return;const ce=r.beforeFilter(ve);d0(ce)?ce.then(ye).catch(()=>{}):ce!==!1?ye():X()},r.debounce),rt=(ve,ce)=>{!m.value&&he(!0),!(ce!=null&&ce.isComposing)&&(ve?At():X())},_e=ve=>Number.parseFloat(xfe(u.cssVarName("input-height"),ve).value)-2;return Ee(_,ue),Ee([U,R],se),Ee(T,()=>{Xe(()=>be())}),Ee(P,async()=>{await Xe();const ve=p.value.input;o=_e(ve)||o,be()}),Ee(Y,Ve,{immediate:!0}),ht(()=>{const ve=p.value.input,ce=_e(ve);o=ve.offsetHeight||ce,da(ve,be)}),e({getCheckedNodes:Me,cascaderPanelRef:g,togglePopperVisible:he,contentRef:J}),(ve,ce)=>(B(),de(S(Na),{ref_key:"tooltipRef",ref:h,visible:m.value,teleported:ve.teleported,"popper-class":[S(l).e("dropdown"),ve.popperClass],"popper-options":a,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${S(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:X},{default:Z(()=>[yt((B(),q("div",{class:F(S(te)),style:qe(S(D)),onClick:ce[5]||(ce[5]=()=>he(S(L)?void 0:!0)),onKeydown:ke,onMouseenter:ce[6]||(ce[6]=Re=>b.value=!0),onMouseleave:ce[7]||(ce[7]=Re=>b.value=!1)},[H(S(ca),{ref_key:"input",ref:p,modelValue:w.value,"onUpdate:modelValue":ce[1]||(ce[1]=Re=>w.value=Re),placeholder:S(V),readonly:S(L),disabled:S(R),"validate-event":!1,size:S(P),class:F(S(ne)),tabindex:S(I)&&ve.filterable&&!S(R)?-1:void 0,onCompositionstart:xe,onCompositionupdate:xe,onCompositionend:xe,onFocus:st,onBlur:bt,onInput:rt},{suffix:Z(()=>[S(j)?(B(),de(S(Ye),{key:"clear",class:F([S(u).e("icon"),"icon-circle-close"]),onClick:it(ge,["stop"])},{default:Z(()=>[H(S(ic))]),_:1},8,["class","onClick"])):(B(),de(S(Ye),{key:"arrow-down",class:F(S(re)),onClick:ce[0]||(ce[0]=it(Re=>he(),["stop"]))},{default:Z(()=>[H(S(ac))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),S(I)?(B(),q("div",{key:0,ref_key:"tagWrapper",ref:v,class:F(S(l).e("tags"))},[(B(!0),q(Ze,null,Pt(T.value,Re=>(B(),de(S(I0),{key:Re.key,type:ve.tagType,size:S(N),hit:Re.hitState,closable:Re.closable,"disable-transitions":"",onClose:ae=>ee(Re)},{default:Z(()=>[Re.isCollapseTag===!1?(B(),q("span",VMe,Ae(Re.text),1)):(B(),de(S(Na),{key:1,disabled:m.value||!ve.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:Z(()=>[G("span",null,Ae(Re.text),1)]),content:Z(()=>[G("div",{class:F(S(l).e("collapse-tags"))},[(B(!0),q(Ze,null,Pt(k.value.slice(ve.maxCollapseTags),(ae,Fe)=>(B(),q("div",{key:Fe,class:F(S(l).e("collapse-tag"))},[(B(),de(S(I0),{key:ae.key,class:"in-tooltip",type:ve.tagType,size:S(N),hit:ae.hitState,closable:ae.closable,"disable-transitions":"",onClose:dt=>ee(ae)},{default:Z(()=>[G("span",null,Ae(ae.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),ve.filterable&&!S(R)?yt((B(),q("input",{key:0,"onUpdate:modelValue":ce[2]||(ce[2]=Re=>C.value=Re),type:"text",class:F(S(l).e("search-input")),placeholder:S(Y)?"":S(A),onInput:ce[3]||(ce[3]=Re=>rt(C.value,Re)),onClick:ce[4]||(ce[4]=it(Re=>he(!0),["stop"])),onKeydown:jt(Ue,["delete"]),onCompositionstart:xe,onCompositionupdate:xe,onCompositionend:xe,onFocus:st,onBlur:bt},null,42,PMe)),[[iL,C.value]]):le("v-if",!0)],2)):le("v-if",!0)],38)),[[S(Wu),()=>he(!1),S(J)]])]),content:Z(()=>[yt(H(S(cj),{ref_key:"cascaderPanelRef",ref:g,modelValue:S(oe),"onUpdate:modelValue":ce[8]||(ce[8]=Re=>pt(oe)?oe.value=Re:null),options:ve.options,props:r.props,border:!1,"render-label":ve.$slots.default,onExpandChange:Se,onClose:ce[9]||(ce[9]=Re=>ve.$nextTick(()=>he(!1)))},null,8,["modelValue","options","props","render-label"]),[[qt,!_.value]]),ve.filterable?yt((B(),de(S(Rl),{key:0,ref_key:"suggestionPanel",ref:y,tag:"ul",class:F(S(l).e("suggestion-panel")),"view-class":S(l).e("suggestion-list"),onKeydown:Le},{default:Z(()=>[E.value.length?(B(!0),q(Ze,{key:0},Pt(E.value,Re=>(B(),q("li",{key:Re.uid,class:F([S(l).e("suggestion-item"),S(l).is("checked",Re.checked)]),tabindex:-1,onClick:ae=>Ke(Re)},[G("span",null,Ae(Re.text),1),Re.checked?(B(),de(S(Ye),{key:0},{default:Z(()=>[H(S(Gy))]),_:1})):le("v-if",!0)],10,FMe))),128)):Te(ve.$slots,"empty",{key:1},()=>[G("li",{class:F(S(l).e("empty-text"))},Ae(S(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[qt,_.value]]):le("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var Ib=Ne(HMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);Ib.install=t=>{t.component(Ib.name,Ib)};const UMe=Ib,WMe=UMe,jMe=$e({checked:{type:Boolean,default:!1}}),KMe={"update:checked":t=>cr(t),[kn]:t=>cr(t)},YMe=ie({name:"ElCheckTag"}),XMe=ie({...YMe,props:jMe,emits:KMe,setup(t,{emit:e}){const n=t,r=De("check-tag"),a=O(()=>[r.b(),r.is("checked",n.checked)]),i=()=>{const o=!n.checked;e(kn,o),e("update:checked",o)};return(o,s)=>(B(),q("span",{class:F(S(a)),onClick:i},[Te(o.$slots,"default")],2))}});var qMe=Ne(XMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const ZMe=Tt(qMe),fj=Symbol("rowContextKey"),QMe=["start","center","end","space-around","space-between","space-evenly"],JMe=["top","middle","bottom"],eke=$e({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:QMe,default:"start"},align:{type:String,values:JMe}}),tke=ie({name:"ElRow"}),nke=ie({...tke,props:eke,setup(t){const e=t,n=De("row"),r=O(()=>e.gutter);Nt(fj,{gutter:r});const a=O(()=>{const o={};return e.gutter&&(o.marginRight=o.marginLeft=`-${e.gutter/2}px`),o}),i=O(()=>[n.b(),n.is(`justify-${e.justify}`,e.justify!=="start"),n.is(`align-${e.align}`,!!e.align)]);return(o,s)=>(B(),de(Et(o.tag),{class:F(S(i)),style:qe(S(a))},{default:Z(()=>[Te(o.$slots,"default")]),_:3},8,["class","style"]))}});var rke=Ne(nke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ake=Tt(rke),ike=$e({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:fe([Number,Object]),default:()=>Nn({})},sm:{type:fe([Number,Object]),default:()=>Nn({})},md:{type:fe([Number,Object]),default:()=>Nn({})},lg:{type:fe([Number,Object]),default:()=>Nn({})},xl:{type:fe([Number,Object]),default:()=>Nn({})}}),oke=ie({name:"ElCol"}),ske=ie({...oke,props:ike,setup(t){const e=t,{gutter:n}=We(fj,{gutter:O(()=>0)}),r=De("col"),a=O(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),i=O(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=e[u];lt(c)&&(u==="span"?o.push(r.b(`${e[u]}`)):c>0&&o.push(r.b(`${u}-${e[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{lt(e[u])?o.push(r.b(`${u}-${e[u]}`)):Lt(e[u])&&Object.entries(e[u]).forEach(([c,f])=>{o.push(c!=="span"?r.b(`${u}-${c}-${f}`):r.b(`${u}-${f}`))})}),n.value&&o.push(r.is("guttered")),[r.b(),o]});return(o,s)=>(B(),de(Et(o.tag),{class:F(S(i)),style:qe(S(a))},{default:Z(()=>[Te(o.$slots,"default")]),_:3},8,["class","style"]))}});var lke=Ne(ske,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const uke=Tt(lke),gV=t=>typeof lt(t),cke=$e({accordion:Boolean,modelValue:{type:fe([Array,String,Number]),default:()=>Nn([])}}),fke={[Mt]:gV,[kn]:gV},dj=Symbol("collapseContextKey"),dke=(t,e)=>{const n=z(Jf(t.modelValue)),r=i=>{n.value=i;const o=t.accordion?n.value[0]:n.value;e(Mt,o),e(kn,o)},a=i=>{if(t.accordion)r([n.value[0]===i?"":i]);else{const o=[...n.value],s=o.indexOf(i);s>-1?o.splice(s,1):o.push(i),r(o)}};return Ee(()=>t.modelValue,()=>n.value=Jf(t.modelValue),{deep:!0}),Nt(dj,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},hke=()=>{const t=De("collapse");return{rootKls:O(()=>t.b())}},vke=ie({name:"ElCollapse"}),pke=ie({...vke,props:cke,emits:fke,setup(t,{expose:e,emit:n}){const r=t,{activeNames:a,setActiveNames:i}=dke(r,n),{rootKls:o}=hke();return e({activeNames:a,setActiveNames:i}),(s,l)=>(B(),q("div",{class:F(S(o))},[Te(s.$slots,"default")],2))}});var gke=Ne(pke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const yke=ie({name:"ElCollapseTransition"}),mke=ie({...yke,setup(t){const e=De("collapse-transition"),n=a=>{a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom},r={beforeEnter(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0},enter(a){a.dataset.oldOverflow=a.style.overflow,a.scrollHeight!==0?a.style.maxHeight=`${a.scrollHeight}px`:a.style.maxHeight=0,a.style.paddingTop=a.dataset.oldPaddingTop,a.style.paddingBottom=a.dataset.oldPaddingBottom,a.style.overflow="hidden"},afterEnter(a){a.style.maxHeight="",a.style.overflow=a.dataset.oldOverflow},enterCancelled(a){n(a)},beforeLeave(a){a.dataset||(a.dataset={}),a.dataset.oldPaddingTop=a.style.paddingTop,a.dataset.oldPaddingBottom=a.style.paddingBottom,a.dataset.oldOverflow=a.style.overflow,a.style.maxHeight=`${a.scrollHeight}px`,a.style.overflow="hidden"},leave(a){a.scrollHeight!==0&&(a.style.maxHeight=0,a.style.paddingTop=0,a.style.paddingBottom=0)},afterLeave(a){n(a)},leaveCancelled(a){n(a)}};return(a,i)=>(B(),de(Qn,kt({name:S(e).b()},ose(r)),{default:Z(()=>[Te(a.$slots,"default")]),_:3},16,["name"]))}});var Bb=Ne(mke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Bb.install=t=>{t.component(Bb.name,Bb)};const sx=Bb,bke=sx,Ske=$e({title:{type:String,default:""},name:{type:fe([String,Number]),default:()=>Qw()},disabled:Boolean}),_ke=t=>{const e=We(dj),n=z(!1),r=z(!1),a=z(Qw()),i=O(()=>e==null?void 0:e.activeNames.value.includes(t.name));return{focusing:n,id:a,isActive:i,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:n.value=!0},50)},handleHeaderClick:()=>{t.disabled||(e==null||e.handleItemClick(t.name),n.value=!1,r.value=!0)},handleEnterClick:()=>{e==null||e.handleItemClick(t.name)}}},wke=(t,{focusing:e,isActive:n,id:r})=>{const a=De("collapse"),i=O(()=>[a.b("item"),a.is("active",S(n)),a.is("disabled",t.disabled)]),o=O(()=>[a.be("item","header"),a.is("active",S(n)),{focusing:S(e)&&!t.disabled}]),s=O(()=>[a.be("item","arrow"),a.is("active",S(n))]),l=O(()=>a.be("item","wrap")),u=O(()=>a.be("item","content")),c=O(()=>a.b(`content-${S(r)}`)),f=O(()=>a.b(`head-${S(r)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},xke=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],Cke=["id","aria-hidden","aria-labelledby"],Tke=ie({name:"ElCollapseItem"}),Eke=ie({...Tke,props:Ske,setup(t,{expose:e}){const n=t,{focusing:r,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=_ke(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:d,itemContentKls:h,scopedContentId:p,scopedHeadId:v}=wke(n,{focusing:r,isActive:i,id:a});return e({isActive:i}),(g,y)=>(B(),q("div",{class:F(S(f))},[G("button",{id:S(v),class:F(S(c)),"aria-expanded":S(i),"aria-controls":S(p),"aria-describedby":S(p),tabindex:g.disabled?-1:0,onClick:y[0]||(y[0]=(...m)=>S(s)&&S(s)(...m)),onKeydown:y[1]||(y[1]=jt(it((...m)=>S(l)&&S(l)(...m),["stop","prevent"]),["space","enter"])),onFocus:y[2]||(y[2]=(...m)=>S(o)&&S(o)(...m)),onBlur:y[3]||(y[3]=m=>r.value=!1)},[Te(g.$slots,"title",{},()=>[Qe(Ae(g.title),1)]),H(S(Ye),{class:F(S(u))},{default:Z(()=>[H(S(ka))]),_:1},8,["class"])],42,xke),H(S(sx),null,{default:Z(()=>[yt(G("div",{id:S(p),role:"region",class:F(S(d)),"aria-hidden":!S(i),"aria-labelledby":S(v)},[G("div",{class:F(S(h))},[Te(g.$slots,"default")],2)],10,Cke),[[qt,S(i)]])]),_:3})],2))}});var hj=Ne(Eke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const Mke=Tt(gke,{CollapseItem:hj}),kke=Hn(hj),Dke=$e({color:{type:fe(Object),required:!0},vertical:{type:Boolean,default:!1}});let K2=!1;function B0(t,e){if(!Ut)return;const n=function(i){var o;(o=e.drag)==null||o.call(e,i)},r=function(i){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,K2=!1,(o=e.end)==null||o.call(e,i)},a=function(i){var o;K2||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),K2=!0,(o=e.start)==null||o.call(e,i))};t.addEventListener("mousedown",a),t.addEventListener("touchstart",a)}const Rke=t=>{const e=wt(),n=Sn(),r=Sn();function a(o){o.target!==n.value&&i(o)}function i(o){if(!r.value||!n.value)return;const l=e.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=vL(o);if(t.vertical){let f=c-l.top;f=Math.max(n.value.offsetHeight/2,f),f=Math.min(f,l.height-n.value.offsetHeight/2),t.color.set("alpha",Math.round((f-n.value.offsetHeight/2)/(l.height-n.value.offsetHeight)*100))}else{let f=u-l.left;f=Math.max(n.value.offsetWidth/2,f),f=Math.min(f,l.width-n.value.offsetWidth/2),t.color.set("alpha",Math.round((f-n.value.offsetWidth/2)/(l.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:i,handleClick:a}},Lke=(t,{bar:e,thumb:n,handleDrag:r})=>{const a=wt(),i=De("color-alpha-slider"),o=z(0),s=z(0),l=z();function u(){if(!n.value||t.vertical)return 0;const m=a.vnode.el,b=t.color.get("alpha");return m?Math.round(b*(m.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const m=a.vnode.el;if(!t.vertical)return 0;const b=t.color.get("alpha");return m?Math.round(b*(m.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(t.color&&t.color.value){const{r:m,g:b,b:_}=t.color.toRgb();return`linear-gradient(to right, rgba(${m}, ${b}, ${_}, 0) 0%, rgba(${m}, ${b}, ${_}, 1) 100%)`}return""}function d(){o.value=u(),s.value=c(),l.value=f()}ht(()=>{if(!e.value||!n.value)return;const m={drag:b=>{r(b)},end:b=>{r(b)}};B0(e.value,m),B0(n.value,m),d()}),Ee(()=>t.color.get("alpha"),()=>d()),Ee(()=>t.color.value,()=>d());const h=O(()=>[i.b(),i.is("vertical",t.vertical)]),p=O(()=>i.e("bar")),v=O(()=>i.e("thumb")),g=O(()=>({background:l.value})),y=O(()=>({left:Xn(o.value),top:Xn(s.value)}));return{rootKls:h,barKls:p,barStyle:g,thumbKls:v,thumbStyle:y,update:d}},Ake="ElColorAlphaSlider",Oke=ie({name:Ake}),Nke=ie({...Oke,props:Dke,setup(t,{expose:e}){const n=t,{bar:r,thumb:a,handleDrag:i,handleClick:o}=Rke(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=Lke(n,{bar:r,thumb:a,handleDrag:i});return e({update:d,bar:r,thumb:a}),(h,p)=>(B(),q("div",{class:F(S(s))},[G("div",{ref_key:"bar",ref:r,class:F(S(l)),style:qe(S(u)),onClick:p[0]||(p[0]=(...v)=>S(o)&&S(o)(...v))},null,6),G("div",{ref_key:"thumb",ref:a,class:F(S(c)),style:qe(S(f))},null,6)],2))}});var $ke=Ne(Nke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const Ike=ie({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const e=De("color-hue-slider"),n=wt(),r=z(),a=z(),i=z(0),o=z(0),s=O(()=>t.color.get("hue"));Ee(()=>s.value,()=>{d()});function l(h){h.target!==r.value&&u(h)}function u(h){if(!a.value||!r.value)return;const v=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:y}=vL(h);let m;if(t.vertical){let b=y-v.top;b=Math.min(b,v.height-r.value.offsetHeight/2),b=Math.max(r.value.offsetHeight/2,b),m=Math.round((b-r.value.offsetHeight/2)/(v.height-r.value.offsetHeight)*360)}else{let b=g-v.left;b=Math.min(b,v.width-r.value.offsetWidth/2),b=Math.max(r.value.offsetWidth/2,b),m=Math.round((b-r.value.offsetWidth/2)/(v.width-r.value.offsetWidth)*360)}t.color.set("hue",m)}function c(){if(!r.value)return 0;const h=n.vnode.el;if(t.vertical)return 0;const p=t.color.get("hue");return h?Math.round(p*(h.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const h=n.vnode.el;if(!t.vertical)return 0;const p=t.color.get("hue");return h?Math.round(p*(h.offsetHeight-r.value.offsetHeight/2)/360):0}function d(){i.value=c(),o.value=f()}return ht(()=>{if(!a.value||!r.value)return;const h={drag:p=>{u(p)},end:p=>{u(p)}};B0(a.value,h),B0(r.value,h),d()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:e}}});function Bke(t,e,n,r,a,i){return B(),q("div",{class:F([t.ns.b(),t.ns.is("vertical",t.vertical)])},[G("div",{ref:"bar",class:F(t.ns.e("bar")),onClick:e[0]||(e[0]=(...o)=>t.handleClick&&t.handleClick(...o))},null,2),G("div",{ref:"thumb",class:F(t.ns.e("thumb")),style:qe({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var Vke=Ne(Ike,[["render",Bke],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const Pke=$e({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:qr,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:fe(Array)},validateEvent:{type:Boolean,default:!0}}),Fke={[Mt]:t=>ft(t)||ur(t),[kn]:t=>ft(t)||ur(t),activeChange:t=>ft(t)||ur(t)},vj=Symbol("colorPickerContextKey"),yV=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},zke=function(t){return typeof t=="string"&&t.includes(".")&&Number.parseFloat(t)===1},Gke=function(t){return typeof t=="string"&&t.includes("%")},zh=function(t,e){zke(t)&&(t="100%");const n=Gke(t);return t=Math.min(e,Math.max(0,Number.parseFloat(`${t}`))),n&&(t=Number.parseInt(`${t*e}`,10)/100),Math.abs(t-e)<1e-6?1:t%e/Number.parseFloat(e)},mV={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Vb=t=>{t=Math.min(Math.round(t),255);const e=Math.floor(t/16),n=t%16;return`${mV[e]||e}${mV[n]||n}`},bV=function({r:t,g:e,b:n}){return Number.isNaN(+t)||Number.isNaN(+e)||Number.isNaN(+n)?"":`#${Vb(t)}${Vb(e)}${Vb(n)}`},Y2={A:10,B:11,C:12,D:13,E:14,F:15},Sc=function(t){return t.length===2?(Y2[t[0].toUpperCase()]||+t[0])*16+(Y2[t[1].toUpperCase()]||+t[1]):Y2[t[1].toUpperCase()]||+t[1]},Hke=function(t,e,n){e=e/100,n=n/100;let r=e;const a=Math.max(n,.01);n*=2,e*=n<=1?n:2-n,r*=a<=1?a:2-a;const i=(n+e)/2,o=n===0?2*r/(a+r):2*e/(n+e);return{h:t,s:o*100,v:i*100}},SV=(t,e,n)=>{t=zh(t,255),e=zh(e,255),n=zh(n,255);const r=Math.max(t,e,n),a=Math.min(t,e,n);let i;const o=r,s=r-a,l=r===0?0:s/r;if(r===a)i=0;else{switch(r){case t:{i=(e-n)/s+(e{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,a)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(e.includes("hsl")){const r=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:o}=Hke(r[0],r[1],r[2]);n(a,i,o)}}else if(e.includes("hsv")){const r=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(e.includes("rgb")){const r=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(a=>a!=="").map((a,i)=>i>2?Number.parseFloat(a):Number.parseInt(a,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:a,s:i,v:o}=SV(r[0],r[1],r[2]);n(a,i,o)}}else if(e.includes("#")){const r=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let a,i,o;r.length===3?(a=Sc(r[0]+r[0]),i=Sc(r[1]+r[1]),o=Sc(r[2]+r[2])):(r.length===6||r.length===8)&&(a=Sc(r.slice(0,2)),i=Sc(r.slice(2,4)),o=Sc(r.slice(4,6))),r.length===8?this._alpha=Sc(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=SV(a,i,o);n(s,l,u)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:n,_value:r,_alpha:a,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const o=yV(e,n/100,r/100);this.value=`hsla(${e}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${e}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${bV(Dp(e,n,r))}${Vb(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=Dp(e,n,r);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=yV(e,n/100,r/100);this.value=`hsl(${e}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${e}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:o,g:s,b:l}=Dp(e,n,r);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=bV(Dp(e,n,r))}}};const Uke=ie({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(t){const e=De("color-predefine"),{currentColor:n}=We(vj),r=z(i(t.colors,t.color));Ee(()=>n.value,o=>{const s=new Gg;s.fromString(o),r.value.forEach(l=>{l.selected=s.compare(l)})}),di(()=>{r.value=i(t.colors,t.color)});function a(o){t.color.fromString(t.colors[o])}function i(o,s){return o.map(l=>{const u=new Gg;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:a,ns:e}}}),Wke=["onClick"];function jke(t,e,n,r,a,i){return B(),q("div",{class:F(t.ns.b())},[G("div",{class:F(t.ns.e("colors"))},[(B(!0),q(Ze,null,Pt(t.rgbaColors,(o,s)=>(B(),q("div",{key:t.colors[s],class:F([t.ns.e("color-selector"),t.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>t.handleSelect(s)},[G("div",{style:qe({backgroundColor:o.value})},null,4)],10,Wke))),128))],2)],2)}var Kke=Ne(Uke,[["render",jke],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Yke=ie({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const e=De("color-svpanel"),n=wt(),r=z(0),a=z(0),i=z("hsl(0, 100%, 50%)"),o=O(()=>{const u=t.color.get("hue"),c=t.color.get("value");return{hue:u,value:c}});function s(){const u=t.color.get("saturation"),c=t.color.get("value"),f=n.vnode.el,{clientWidth:d,clientHeight:h}=f;a.value=u*d/100,r.value=(100-c)*h/100,i.value=`hsl(${t.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:d,clientY:h}=vL(u);let p=d-f.left,v=h-f.top;p=Math.max(0,p),p=Math.min(p,f.width),v=Math.max(0,v),v=Math.min(v,f.height),a.value=p,r.value=v,t.color.set({saturation:p/f.width*100,value:100-v/f.height*100})}return Ee(()=>o.value,()=>{s()}),ht(()=>{B0(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:a,background:i,colorValue:o,handleDrag:l,update:s,ns:e}}}),Xke=G("div",null,null,-1),qke=[Xke];function Zke(t,e,n,r,a,i){return B(),q("div",{class:F(t.ns.b()),style:qe({backgroundColor:t.background})},[G("div",{class:F(t.ns.e("white"))},null,2),G("div",{class:F(t.ns.e("black"))},null,2),G("div",{class:F(t.ns.e("cursor")),style:qe({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},qke,6)],6)}var Qke=Ne(Yke,[["render",Zke],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const Jke=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],eDe=ie({name:"ElColorPicker"}),tDe=ie({...eDe,props:Pke,emits:Fke,setup(t,{expose:e,emit:n}){const r=t,{t:a}=Kt(),i=De("color"),{formItem:o}=Va(),s=hr(),l=ni(),{inputId:u,isLabeledByFormItem:c}=uc(r,{formItemContext:o}),f=z(),d=z(),h=z(),p=z();let v=!0;const g=Qt(new Gg({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),y=z(!1),m=z(!1),b=z(""),_=O(()=>!r.modelValue&&!m.value?"transparent":k(g,r.showAlpha)),x=O(()=>!r.modelValue&&!m.value?"":g.value),w=O(()=>c.value?void 0:r.label||a("el.colorpicker.defaultLabel")),C=O(()=>c.value?o==null?void 0:o.labelId:void 0),T=O(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value)]);function k(L,$){if(!(L instanceof Gg))throw new TypeError("color should be instance of _color Class");const{r:U,g:j,b:Y}=L.toRgb();return $?`rgba(${U}, ${j}, ${Y}, ${L.get("alpha")/100})`:`rgb(${U}, ${j}, ${Y})`}function E(L){y.value=L}const M=Oa(E,100);function D(){l.value||E(!0)}function R(){M(!1),A()}function A(){Xe(()=>{r.modelValue?g.fromString(r.modelValue):(g.value="",Xe(()=>{m.value=!1}))})}function V(){l.value||M(!y.value)}function P(){g.fromString(b.value)}function N(){const L=g.value;n(Mt,L),n("change",L),r.validateEvent&&(o==null||o.validate("change").catch($=>void 0)),M(!1),Xe(()=>{const $=new Gg({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});g.compare($)||A()})}function I(){M(!1),n(Mt,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(o==null||o.validate("change").catch(L=>void 0)),A()}return ht(()=>{r.modelValue&&(b.value=x.value)}),Ee(()=>r.modelValue,L=>{L?L&&L!==g.value&&(v=!1,g.fromString(L)):m.value=!1}),Ee(()=>x.value,L=>{b.value=L,v&&n("activeChange",L),v=!0}),Ee(()=>g.value,()=>{!r.modelValue&&!m.value&&(m.value=!0)}),Ee(()=>y.value,()=>{Xe(()=>{var L,$,U;(L=f.value)==null||L.update(),($=d.value)==null||$.update(),(U=h.value)==null||U.update()})}),Nt(vj,{currentColor:x}),e({color:g,show:D,hide:R}),(L,$)=>(B(),de(S(Na),{ref_key:"popper",ref:p,visible:y.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[S(i).be("picker","panel"),S(i).b("dropdown"),L.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${S(i).namespace.value}-zoom-in-top`,persistent:""},{content:Z(()=>[yt((B(),q("div",null,[G("div",{class:F(S(i).be("dropdown","main-wrapper"))},[H(Vke,{ref_key:"hue",ref:f,class:"hue-slider",color:S(g),vertical:""},null,8,["color"]),H(Qke,{ref_key:"sv",ref:d,color:S(g)},null,8,["color"])],2),L.showAlpha?(B(),de($ke,{key:0,ref_key:"alpha",ref:h,color:S(g)},null,8,["color"])):le("v-if",!0),L.predefine?(B(),de(Kke,{key:1,ref:"predefine",color:S(g),colors:L.predefine},null,8,["color","colors"])):le("v-if",!0),G("div",{class:F(S(i).be("dropdown","btns"))},[G("span",{class:F(S(i).be("dropdown","value"))},[H(S(ca),{modelValue:b.value,"onUpdate:modelValue":$[0]||($[0]=U=>b.value=U),"validate-event":!1,size:"small",onKeyup:jt(P,["enter"]),onBlur:P},null,8,["modelValue","onKeyup"])],2),H(S(St),{class:F(S(i).be("dropdown","link-btn")),text:"",size:"small",onClick:I},{default:Z(()=>[Qe(Ae(S(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),H(S(St),{plain:"",size:"small",class:F(S(i).be("dropdown","btn")),onClick:N},{default:Z(()=>[Qe(Ae(S(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[S(Wu),R]])]),default:Z(()=>[G("div",{id:S(u),class:F(S(T)),role:"button","aria-label":S(w),"aria-labelledby":S(C),"aria-description":S(a)("el.colorpicker.description",{color:L.modelValue||""}),tabindex:L.tabindex,onKeydown:jt(V,["enter"])},[S(l)?(B(),q("div",{key:0,class:F(S(i).be("picker","mask"))},null,2)):le("v-if",!0),G("div",{class:F(S(i).be("picker","trigger")),onClick:V},[G("span",{class:F([S(i).be("picker","color"),S(i).is("alpha",L.showAlpha)])},[G("span",{class:F(S(i).be("picker","color-inner")),style:qe({backgroundColor:S(_)})},[yt(H(S(Ye),{class:F([S(i).be("picker","icon"),S(i).is("icon-arrow-down")])},{default:Z(()=>[H(S(ac))]),_:1},8,["class"]),[[qt,L.modelValue||m.value]]),yt(H(S(Ye),{class:F([S(i).be("picker","empty"),S(i).is("icon-close")])},{default:Z(()=>[H(S(No))]),_:1},8,["class"]),[[qt,!L.modelValue&&!m.value]])],6)],2)],2)],42,Jke)]),_:1},8,["visible","popper-class","transition"]))}});var nDe=Ne(tDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const rDe=Tt(nDe),aDe=ie({name:"ElContainer"}),iDe=ie({...aDe,props:{direction:{type:String}},setup(t){const e=t,n=ea(),r=De("container"),a=O(()=>e.direction==="vertical"?!0:e.direction==="horizontal"?!1:n&&n.default?n.default().some(o=>{const s=o.type.name;return s==="ElHeader"||s==="ElFooter"}):!1);return(i,o)=>(B(),q("section",{class:F([S(r).b(),S(r).is("vertical",S(a))])},[Te(i.$slots,"default")],2))}});var oDe=Ne(iDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const sDe=ie({name:"ElAside"}),lDe=ie({...sDe,props:{width:{type:String,default:null}},setup(t){const e=t,n=De("aside"),r=O(()=>e.width?n.cssVarBlock({width:e.width}):{});return(a,i)=>(B(),q("aside",{class:F(S(n).b()),style:qe(S(r))},[Te(a.$slots,"default")],6))}});var pj=Ne(lDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const uDe=ie({name:"ElFooter"}),cDe=ie({...uDe,props:{height:{type:String,default:null}},setup(t){const e=t,n=De("footer"),r=O(()=>e.height?n.cssVarBlock({height:e.height}):{});return(a,i)=>(B(),q("footer",{class:F(S(n).b()),style:qe(S(r))},[Te(a.$slots,"default")],6))}});var gj=Ne(cDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const fDe=ie({name:"ElHeader"}),dDe=ie({...fDe,props:{height:{type:String,default:null}},setup(t){const e=t,n=De("header"),r=O(()=>e.height?n.cssVarBlock({height:e.height}):{});return(a,i)=>(B(),q("header",{class:F(S(n).b()),style:qe(S(r))},[Te(a.$slots,"default")],6))}});var yj=Ne(dDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const hDe=ie({name:"ElMain"}),vDe=ie({...hDe,setup(t){const e=De("main");return(n,r)=>(B(),q("main",{class:F(S(e).b())},[Te(n.$slots,"default")],2))}});var mj=Ne(vDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const pDe=Tt(oDe,{Aside:pj,Footer:gj,Header:yj,Main:mj}),gDe=Hn(pj),yDe=Hn(gj),mDe=Hn(yj),bDe=Hn(mj);var bj={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(sr,function(){return function(n,r){var a=r.prototype,i=a.format;a.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(o);var u=this.$utils(),c=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return i.bind(this)(c)}}})})(bj);var SDe=bj.exports;const _De=yi(SDe);var Sj={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(sr,function(){var n="week",r="year";return function(a,i,o){var s=i.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=o(this).startOf(r).add(1,r).date(u),f=o(this).endOf(n);if(c.isBefore(f))return 1}var d=o(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(d,n,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(Sj);var wDe=Sj.exports;const xDe=yi(wDe);var _j={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(sr,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),i=this.week(),o=this.year();return i===1&&a===11?o+1:a===0&&i>=52?o-1:o}}})})(_j);var CDe=_j.exports;const TDe=yi(CDe);var wj={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(sr,function(){return function(n,r,a){r.prototype.dayOfYear=function(i){var o=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return i==null?o:this.add(i-o,"day")}}})})(wj);var EDe=wj.exports;const MDe=yi(EDe);var xj={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(sr,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(xj);var kDe=xj.exports;const DDe=yi(kDe);var Cj={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(sr,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(Cj);var RDe=Cj.exports;const LDe=yi(RDe),lA=Symbol(),ADe=$e({...iA,type:{type:fe(String),default:"date"}}),ODe=["date","dates","year","month","week","range"],uA=$e({disabledDate:{type:fe(Function)},date:{type:fe(Object),required:!0},minDate:{type:fe(Object)},maxDate:{type:fe(Object)},parsedValue:{type:fe([Object,Array])},rangeState:{type:fe(Object),default:()=>({endDate:null,selecting:!1})}}),Tj=$e({type:{type:fe(String),required:!0,values:bSe}}),Ej=$e({unlinkPanels:Boolean,parsedValue:{type:fe(Array)}}),Mj=t=>({type:String,values:ODe,default:t}),NDe=$e({...Tj,parsedValue:{type:fe([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),$De=$e({...uA,cellClassName:{type:fe(Function)},showWeekNumber:Boolean,selectionMode:Mj("date")}),IDe=["changerange","pick","select"],QM=t=>{if(!He(t))return!1;const[e,n]=t;return xt.isDayjs(e)&&xt.isDayjs(n)&&e.isSameOrBefore(n)},kj=(t,{lang:e,unit:n,unlinkPanels:r})=>{let a;if(He(t)){let[i,o]=t.map(s=>xt(s).locale(e));return r||(o=i.add(1,n)),[i,o]}else t?a=xt(t):a=xt();return a=a.locale(e),[a,a.add(1,n)]},BDe=(t,e,{columnIndexOffset:n,startDate:r,nextEndDate:a,now:i,unit:o,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c["normal","today"].includes(t),VDe=(t,e)=>{const{lang:n}=Kt(),r=z(),a=z(),i=z(),o=z(),s=z([[],[],[],[],[],[]]);let l=!1;const u=t.date.$locale().weekStart||7,c=t.date.locale("en").localeData().weekdaysShort().map(L=>L.toLowerCase()),f=O(()=>u>3?7-u:-u),d=O(()=>{const L=t.date.startOf("month");return L.subtract(L.day()||7,"day")}),h=O(()=>c.concat(c).slice(u,u+7)),p=O(()=>PW(S(_)).some(L=>L.isCurrent)),v=O(()=>{const L=t.date.startOf("month"),$=L.day()||7,U=L.daysInMonth(),j=L.subtract(1,"month").daysInMonth();return{startOfMonthDay:$,dateCountOfMonth:U,dateCountOfLastMonth:j}}),g=O(()=>t.selectionMode==="dates"?dl(t.parsedValue):[]),y=(L,{count:$,rowIndex:U,columnIndex:j})=>{const{startOfMonthDay:Y,dateCountOfMonth:oe,dateCountOfLastMonth:te}=S(v),re=S(f);if(U>=0&&U<=1){const ne=Y+re<0?7+Y+re:Y+re;if(j+U*7>=ne)return L.text=$,!0;L.text=te-(ne-j%7)+1+U*7,L.type="prev-month"}else return $<=oe?L.text=$:(L.text=$-oe,L.type="next-month"),!0;return!1},m=(L,{columnIndex:$,rowIndex:U},j)=>{const{disabledDate:Y,cellClassName:oe}=t,te=S(g),re=y(L,{count:j,rowIndex:U,columnIndex:$}),ne=L.dayjs.toDate();return L.selected=te.find(J=>J.valueOf()===L.dayjs.valueOf()),L.isSelected=!!L.selected,L.isCurrent=w(L),L.disabled=Y==null?void 0:Y(ne),L.customClass=oe==null?void 0:oe(ne),re},b=L=>{if(t.selectionMode==="week"){const[$,U]=t.showWeekNumber?[1,7]:[0,6],j=I(L[$+1]);L[$].inRange=j,L[$].start=j,L[U].inRange=j,L[U].end=j}},_=O(()=>{const{minDate:L,maxDate:$,rangeState:U,showWeekNumber:j}=t,Y=S(f),oe=S(s),te="day";let re=1;if(j)for(let ne=0;ne<6;ne++)oe[ne][0]||(oe[ne][0]={type:"week",text:S(d).add(ne*7+1,te).week()});return BDe({row:6,column:7},oe,{startDate:L,columnIndexOffset:j?1:0,nextEndDate:U.endDate||$||U.selecting&&L||null,now:xt().locale(S(n)).startOf(te),unit:te,relativeDateGetter:ne=>S(d).add(ne-Y,te),setCellMetadata:(...ne)=>{m(...ne,re)&&(re+=1)},setRowMetadata:b}),oe});Ee(()=>t.date,async()=>{var L;(L=S(r))!=null&&L.contains(document.activeElement)&&(await Xe(),await x())});const x=async()=>{var L;return(L=S(a))==null?void 0:L.focus()},w=L=>t.selectionMode==="date"&&JM(L.type)&&C(L,t.parsedValue),C=(L,$)=>$?xt($).locale(S(n)).isSame(t.date.date(Number(L.text)),"day"):!1,T=(L,$)=>{const U=L*7+($-(t.showWeekNumber?1:0))-S(f);return S(d).add(U,"day")},k=L=>{var $;if(!t.rangeState.selecting)return;let U=L.target;if(U.tagName==="SPAN"&&(U=($=U.parentNode)==null?void 0:$.parentNode),U.tagName==="DIV"&&(U=U.parentNode),U.tagName!=="TD")return;const j=U.parentNode.rowIndex-1,Y=U.cellIndex;S(_)[j][Y].disabled||(j!==S(i)||Y!==S(o))&&(i.value=j,o.value=Y,e("changerange",{selecting:!0,endDate:T(j,Y)}))},E=L=>!S(p)&&(L==null?void 0:L.text)===1&&L.type==="normal"||L.isCurrent,M=L=>{l||S(p)||t.selectionMode!=="date"||N(L,!0)},D=L=>{L.target.closest("td")&&(l=!0)},R=L=>{L.target.closest("td")&&(l=!1)},A=L=>{!t.rangeState.selecting||!t.minDate?(e("pick",{minDate:L,maxDate:null}),e("select",!0)):(L>=t.minDate?e("pick",{minDate:t.minDate,maxDate:L}):e("pick",{minDate:L,maxDate:t.minDate}),e("select",!1))},V=L=>{const $=L.week(),U=`${L.year()}w${$}`;e("pick",{year:L.year(),week:$,value:U,date:L.startOf("week")})},P=(L,$)=>{const U=$?dl(t.parsedValue).filter(j=>(j==null?void 0:j.valueOf())!==L.valueOf()):dl(t.parsedValue).concat([L]);e("pick",U)},N=(L,$=!1)=>{const U=L.target.closest("td");if(!U)return;const j=U.parentNode.rowIndex-1,Y=U.cellIndex,oe=S(_)[j][Y];if(oe.disabled||oe.type==="week")return;const te=T(j,Y);switch(t.selectionMode){case"range":{A(te);break}case"date":{e("pick",te,$);break}case"week":{V(te);break}case"dates":{P(te,!!oe.selected);break}}},I=L=>{if(t.selectionMode!=="week")return!1;let $=t.date.startOf("day");if(L.type==="prev-month"&&($=$.subtract(1,"month")),L.type==="next-month"&&($=$.add(1,"month")),$=$.date(Number.parseInt(L.text,10)),t.parsedValue&&!Array.isArray(t.parsedValue)){const U=(t.parsedValue.day()-u+7)%7-1;return t.parsedValue.subtract(U,"day").isSame($,"day")}return!1};return{WEEKS:h,rows:_,tbodyRef:r,currentCellRef:a,focus:x,isCurrent:w,isWeekActive:I,isSelectedCell:E,handlePickDate:N,handleMouseUp:R,handleMouseDown:D,handleMouseMove:k,handleFocus:M}},PDe=(t,{isCurrent:e,isWeekActive:n})=>{const r=De("date-table"),{t:a}=Kt(),i=O(()=>[r.b(),{"is-week-mode":t.selectionMode==="week"}]),o=O(()=>a("el.datepicker.dateTablePrompt")),s=O(()=>a("el.datepicker.week"));return{tableKls:i,tableLabel:o,weekLabel:s,getCellClasses:c=>{const f=[];return JM(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),e(c)&&f.push("current"),c.inRange&&(JM(c.type)||t.selectionMode==="week")&&(f.push("in-range"),c.start&&f.push("start-date"),c.end&&f.push("end-date")),c.disabled&&f.push("disabled"),c.selected&&f.push("selected"),c.customClass&&f.push(c.customClass),f.join(" ")},getRowKls:c=>[r.e("row"),{current:n(c)}],t:a}},FDe=$e({cell:{type:fe(Object)}});var zDe=ie({name:"ElDatePickerCell",props:FDe,setup(t){const e=De("date-table-cell"),{slots:n}=We(lA);return()=>{const{cell:r}=t;if(n.default){const a=n.default(r).filter(i=>i.patchFlag!==-2&&i.type.toString()!=="Symbol(Comment)");if(a.length)return a}return H("div",{class:e.b()},[H("span",{class:e.e("text")},[r==null?void 0:r.text])])}}});const GDe=["aria-label"],HDe={key:0,scope:"col"},UDe=["aria-label"],WDe=["aria-current","aria-selected","tabindex"],jDe=ie({__name:"basic-date-table",props:$De,emits:IDe,setup(t,{expose:e,emit:n}){const r=t,{WEEKS:a,rows:i,tbodyRef:o,currentCellRef:s,focus:l,isCurrent:u,isWeekActive:c,isSelectedCell:f,handlePickDate:d,handleMouseUp:h,handleMouseDown:p,handleMouseMove:v,handleFocus:g}=VDe(r,n),{tableLabel:y,tableKls:m,weekLabel:b,getCellClasses:_,getRowKls:x,t:w}=PDe(r,{isCurrent:u,isWeekActive:c});return e({focus:l}),(C,T)=>(B(),q("table",{"aria-label":S(y),class:F(S(m)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:T[1]||(T[1]=(...k)=>S(d)&&S(d)(...k)),onMousemove:T[2]||(T[2]=(...k)=>S(v)&&S(v)(...k)),onMousedown:T[3]||(T[3]=it((...k)=>S(p)&&S(p)(...k),["prevent"])),onMouseup:T[4]||(T[4]=(...k)=>S(h)&&S(h)(...k))},[G("tbody",{ref_key:"tbodyRef",ref:o},[G("tr",null,[C.showWeekNumber?(B(),q("th",HDe,Ae(S(b)),1)):le("v-if",!0),(B(!0),q(Ze,null,Pt(S(a),(k,E)=>(B(),q("th",{key:E,"aria-label":S(w)("el.datepicker.weeksFull."+k),scope:"col"},Ae(S(w)("el.datepicker.weeks."+k)),9,UDe))),128))]),(B(!0),q(Ze,null,Pt(S(i),(k,E)=>(B(),q("tr",{key:E,class:F(S(x)(k[1]))},[(B(!0),q(Ze,null,Pt(k,(M,D)=>(B(),q("td",{key:`${E}.${D}`,ref_for:!0,ref:R=>S(f)(M)&&(s.value=R),class:F(S(_)(M)),"aria-current":M.isCurrent?"date":void 0,"aria-selected":M.isCurrent,tabindex:S(f)(M)?0:-1,onFocus:T[0]||(T[0]=(...R)=>S(g)&&S(g)(...R))},[H(S(zDe),{cell:M},null,8,["cell"])],42,WDe))),128))],2))),128))],512)],42,GDe))}});var ek=Ne(jDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const KDe=$e({...uA,selectionMode:Mj("month")}),YDe=["aria-label"],XDe=["aria-selected","aria-label","tabindex","onKeydown"],qDe={class:"cell"},ZDe=ie({__name:"basic-month-table",props:KDe,emits:["changerange","pick","select"],setup(t,{expose:e,emit:n}){const r=t,a=(_,x,w)=>{const C=xt().locale(w).startOf("month").month(x).year(_),T=C.daysInMonth();return ku(T).map(k=>C.add(k,"day").toDate())},i=De("month-table"),{t:o,lang:s}=Kt(),l=z(),u=z(),c=z(r.date.locale("en").localeData().monthsShort().map(_=>_.toLowerCase())),f=z([[],[],[]]),d=z(),h=z(),p=O(()=>{var _,x;const w=f.value,C=xt().locale(s.value).startOf("month");for(let T=0;T<3;T++){const k=w[T];for(let E=0;E<4;E++){const M=k[E]||(k[E]={row:T,column:E,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});M.type="normal";const D=T*4+E,R=r.date.startOf("year").month(D),A=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;M.inRange=!!(r.minDate&&R.isSameOrAfter(r.minDate,"month")&&A&&R.isSameOrBefore(A,"month"))||!!(r.minDate&&R.isSameOrBefore(r.minDate,"month")&&A&&R.isSameOrAfter(A,"month")),(_=r.minDate)!=null&&_.isSameOrAfter(A)?(M.start=!!(A&&R.isSame(A,"month")),M.end=r.minDate&&R.isSame(r.minDate,"month")):(M.start=!!(r.minDate&&R.isSame(r.minDate,"month")),M.end=!!(A&&R.isSame(A,"month"))),C.isSame(R)&&(M.type="today"),M.text=D,M.disabled=((x=r.disabledDate)==null?void 0:x.call(r,R.toDate()))||!1}}return w}),v=()=>{var _;(_=u.value)==null||_.focus()},g=_=>{const x={},w=r.date.year(),C=new Date,T=_.text;return x.disabled=r.disabledDate?a(w,T,s.value).every(r.disabledDate):!1,x.current=dl(r.parsedValue).findIndex(k=>xt.isDayjs(k)&&k.year()===w&&k.month()===T)>=0,x.today=C.getFullYear()===w&&C.getMonth()===T,_.inRange&&(x["in-range"]=!0,_.start&&(x["start-date"]=!0),_.end&&(x["end-date"]=!0)),x},y=_=>{const x=r.date.year(),w=_.text;return dl(r.date).findIndex(C=>C.year()===x&&C.month()===w)>=0},m=_=>{var x;if(!r.rangeState.selecting)return;let w=_.target;if(w.tagName==="A"&&(w=(x=w.parentNode)==null?void 0:x.parentNode),w.tagName==="DIV"&&(w=w.parentNode),w.tagName!=="TD")return;const C=w.parentNode.rowIndex,T=w.cellIndex;p.value[C][T].disabled||(C!==d.value||T!==h.value)&&(d.value=C,h.value=T,n("changerange",{selecting:!0,endDate:r.date.startOf("year").month(C*4+T)}))},b=_=>{var x;const w=(x=_.target)==null?void 0:x.closest("td");if((w==null?void 0:w.tagName)!=="TD"||Do(w,"disabled"))return;const C=w.cellIndex,k=w.parentNode.rowIndex*4+C,E=r.date.startOf("year").month(k);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&E>=r.minDate?n("pick",{minDate:r.minDate,maxDate:E}):n("pick",{minDate:E,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:E,maxDate:null}),n("select",!0)):n("pick",k)};return Ee(()=>r.date,async()=>{var _,x;(_=l.value)!=null&&_.contains(document.activeElement)&&(await Xe(),(x=u.value)==null||x.focus())}),e({focus:v}),(_,x)=>(B(),q("table",{role:"grid","aria-label":S(o)("el.datepicker.monthTablePrompt"),class:F(S(i).b()),onClick:b,onMousemove:m},[G("tbody",{ref_key:"tbodyRef",ref:l},[(B(!0),q(Ze,null,Pt(S(p),(w,C)=>(B(),q("tr",{key:C},[(B(!0),q(Ze,null,Pt(w,(T,k)=>(B(),q("td",{key:k,ref_for:!0,ref:E=>y(T)&&(u.value=E),class:F(g(T)),"aria-selected":`${y(T)}`,"aria-label":S(o)(`el.datepicker.month${+T.text+1}`),tabindex:y(T)?0:-1,onKeydown:[jt(it(b,["prevent","stop"]),["space"]),jt(it(b,["prevent","stop"]),["enter"])]},[G("div",null,[G("span",qDe,Ae(S(o)("el.datepicker.months."+c.value[T.text])),1)])],42,XDe))),128))]))),128))],512)],42,YDe))}});var tk=Ne(ZDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:QDe,disabledDate:JDe,parsedValue:eRe}=uA,tRe=$e({date:QDe,disabledDate:JDe,parsedValue:eRe}),nRe=["aria-label"],rRe=["aria-selected","tabindex","onKeydown"],aRe={class:"cell"},iRe={key:1},oRe=ie({__name:"basic-year-table",props:tRe,emits:["pick"],setup(t,{expose:e,emit:n}){const r=t,a=(v,g)=>{const y=xt(String(v)).locale(g).startOf("year"),b=y.endOf("year").dayOfYear();return ku(b).map(_=>y.add(_,"day").toDate())},i=De("year-table"),{t:o,lang:s}=Kt(),l=z(),u=z(),c=O(()=>Math.floor(r.date.year()/10)*10),f=()=>{var v;(v=u.value)==null||v.focus()},d=v=>{const g={},y=xt().locale(s.value);return g.disabled=r.disabledDate?a(v,s.value).every(r.disabledDate):!1,g.current=dl(r.parsedValue).findIndex(m=>m.year()===v)>=0,g.today=y.year()===v,g},h=v=>v===c.value&&r.date.year()c.value+9||dl(r.date).findIndex(g=>g.year()===v)>=0,p=v=>{const y=v.target.closest("td");if(y&&y.textContent){if(Do(y,"disabled"))return;const m=y.textContent||y.innerText;n("pick",Number(m))}};return Ee(()=>r.date,async()=>{var v,g;(v=l.value)!=null&&v.contains(document.activeElement)&&(await Xe(),(g=u.value)==null||g.focus())}),e({focus:f}),(v,g)=>(B(),q("table",{role:"grid","aria-label":S(o)("el.datepicker.yearTablePrompt"),class:F(S(i).b()),onClick:p},[G("tbody",{ref_key:"tbodyRef",ref:l},[(B(),q(Ze,null,Pt(3,(y,m)=>G("tr",{key:m},[(B(),q(Ze,null,Pt(4,(b,_)=>(B(),q(Ze,{key:m+"_"+_},[m*4+_<10?(B(),q("td",{key:0,ref_for:!0,ref:x=>h(S(c)+m*4+_)&&(u.value=x),class:F(["available",d(S(c)+m*4+_)]),"aria-selected":`${h(S(c)+m*4+_)}`,tabindex:h(S(c)+m*4+_)?0:-1,onKeydown:[jt(it(p,["prevent","stop"]),["space"]),jt(it(p,["prevent","stop"]),["enter"])]},[G("span",aRe,Ae(S(c)+m*4+_),1)],42,rRe)):(B(),q("td",iRe))],64))),64))])),64))],512)],10,nRe))}});var sRe=Ne(oRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const lRe=["onClick"],uRe=["aria-label"],cRe=["aria-label"],fRe=["aria-label"],dRe=["aria-label"],hRe=ie({__name:"panel-date-pick",props:NDe,emits:["pick","set-picker-option","panel-change"],setup(t,{emit:e}){const n=t,r=(_e,ve,ce)=>!0,a=De("picker-panel"),i=De("date-picker"),o=fd(),s=ea(),{t:l,lang:u}=Kt(),c=We("EP_PICKER_BASE"),f=We(ox),{shortcuts:d,disabledDate:h,cellClassName:p,defaultTime:v}=c.props,g=Bn(c.props,"defaultValue"),y=z(),m=z(xt().locale(u.value)),b=z(!1);let _=!1;const x=O(()=>xt(v).locale(u.value)),w=O(()=>m.value.month()),C=O(()=>m.value.year()),T=z([]),k=z(null),E=z(null),M=_e=>T.value.length>0?r(_e,T.value,n.format||"HH:mm:ss"):!0,D=_e=>v&&!se.value&&!b.value&&!_?x.value.year(_e.year()).month(_e.month()).date(_e.date()):re.value?_e.millisecond(0):_e.startOf("day"),R=(_e,...ve)=>{if(!_e)e("pick",_e,...ve);else if(He(_e)){const ce=_e.map(D);e("pick",ce,...ve)}else e("pick",D(_e),...ve);k.value=null,E.value=null,b.value=!1,_=!1},A=(_e,ve)=>{if($.value==="date"){_e=_e;let ce=n.parsedValue?n.parsedValue.year(_e.year()).month(_e.month()).date(_e.date()):_e;M(ce)||(ce=T.value[0][0].year(_e.year()).month(_e.month()).date(_e.date())),m.value=ce,R(ce,re.value||ve)}else $.value==="week"?R(_e.date):$.value==="dates"&&R(_e,!0)},V=_e=>{const ve=_e?"add":"subtract";m.value=m.value[ve](1,"month"),rt("month")},P=_e=>{const ve=m.value,ce=_e?"add":"subtract";m.value=N.value==="year"?ve[ce](10,"year"):ve[ce](1,"year"),rt("year")},N=z("date"),I=O(()=>{const _e=l("el.datepicker.year");if(N.value==="year"){const ve=Math.floor(C.value/10)*10;return _e?`${ve} ${_e} - ${ve+9} ${_e}`:`${ve} - ${ve+9}`}return`${C.value} ${_e}`}),L=_e=>{const ve=ut(_e.value)?_e.value():_e.value;if(ve){_=!0,R(xt(ve).locale(u.value));return}_e.onClick&&_e.onClick({attrs:o,slots:s,emit:e})},$=O(()=>{const{type:_e}=n;return["week","month","year","dates"].includes(_e)?_e:"date"}),U=O(()=>$.value==="date"?N.value:$.value),j=O(()=>!!d.length),Y=async _e=>{m.value=m.value.startOf("month").month(_e),$.value==="month"?R(m.value,!1):(N.value="date",["month","year","date","week"].includes($.value)&&(R(m.value,!0),await Xe(),st())),rt("month")},oe=async _e=>{$.value==="year"?(m.value=m.value.startOf("year").year(_e),R(m.value,!1)):(m.value=m.value.year(_e),N.value="month",["month","year","date","week"].includes($.value)&&(R(m.value,!0),await Xe(),st())),rt("year")},te=async _e=>{N.value=_e,await Xe(),st()},re=O(()=>n.type==="datetime"||n.type==="datetimerange"),ne=O(()=>re.value||$.value==="dates"),J=O(()=>h?n.parsedValue?He(n.parsedValue)?h(n.parsedValue[0].toDate()):h(n.parsedValue.toDate()):!0:!1),he=()=>{if($.value==="dates")R(n.parsedValue);else{let _e=n.parsedValue;if(!_e){const ve=xt(v).locale(u.value),ce=Ue();_e=ve.year(ce.year()).month(ce.month()).date(ce.date())}m.value=_e,R(_e)}},ue=O(()=>h?h(xt().locale(u.value).toDate()):!1),X=()=>{const ve=xt().locale(u.value).toDate();b.value=!0,(!h||!h(ve))&&M(ve)&&(m.value=xt().locale(u.value),R(m.value))},K=O(()=>L7(n.format)),ee=O(()=>R7(n.format)),se=O(()=>{if(E.value)return E.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(K.value)}),ye=O(()=>{if(k.value)return k.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(ee.value)}),we=z(!1),be=()=>{we.value=!0},Me=()=>{we.value=!1},Se=_e=>({hour:_e.hour(),minute:_e.minute(),second:_e.second(),year:_e.year(),month:_e.month(),date:_e.date()}),xe=(_e,ve,ce)=>{const{hour:Re,minute:ae,second:Fe}=Se(_e),dt=n.parsedValue?n.parsedValue.hour(Re).minute(ae).second(Fe):_e;m.value=dt,R(m.value,!0),ce||(we.value=ve)},ke=_e=>{const ve=xt(_e,K.value).locale(u.value);if(ve.isValid()&&M(ve)){const{year:ce,month:Re,date:ae}=Se(m.value);m.value=ve.year(ce).month(Re).date(ae),E.value=null,we.value=!1,R(m.value,!0)}},ge=_e=>{const ve=xt(_e,ee.value).locale(u.value);if(ve.isValid()){if(h&&h(ve.toDate()))return;const{hour:ce,minute:Re,second:ae}=Se(m.value);m.value=ve.hour(ce).minute(Re).second(ae),k.value=null,R(m.value,!0)}},Ve=_e=>xt.isDayjs(_e)&&_e.isValid()&&(h?!h(_e.toDate()):!0),Ke=_e=>$.value==="dates"?_e.map(ve=>ve.format(n.format)):_e.format(n.format),Le=_e=>xt(_e,n.format).locale(u.value),Ue=()=>{const _e=xt(g.value).locale(u.value);if(!g.value){const ve=x.value;return xt().hour(ve.hour()).minute(ve.minute()).second(ve.second()).locale(u.value)}return _e},st=async()=>{var _e;["week","month","year","date"].includes($.value)&&((_e=y.value)==null||_e.focus(),$.value==="week"&&At(et.down))},bt=_e=>{const{code:ve}=_e;[et.up,et.down,et.left,et.right,et.home,et.end,et.pageUp,et.pageDown].includes(ve)&&(At(ve),_e.stopPropagation(),_e.preventDefault()),[et.enter,et.space,et.numpadEnter].includes(ve)&&k.value===null&&E.value===null&&(_e.preventDefault(),R(m.value,!1))},At=_e=>{var ve;const{up:ce,down:Re,left:ae,right:Fe,home:dt,end:$t,pageUp:er,pageDown:pr}=et,Fa={year:{[ce]:-4,[Re]:4,[ae]:-1,[Fe]:1,offset:(Ce,Pe)=>Ce.setFullYear(Ce.getFullYear()+Pe)},month:{[ce]:-4,[Re]:4,[ae]:-1,[Fe]:1,offset:(Ce,Pe)=>Ce.setMonth(Ce.getMonth()+Pe)},week:{[ce]:-1,[Re]:1,[ae]:-1,[Fe]:1,offset:(Ce,Pe)=>Ce.setDate(Ce.getDate()+Pe*7)},date:{[ce]:-7,[Re]:7,[ae]:-1,[Fe]:1,[dt]:Ce=>-Ce.getDay(),[$t]:Ce=>-Ce.getDay()+6,[er]:Ce=>-new Date(Ce.getFullYear(),Ce.getMonth(),0).getDate(),[pr]:Ce=>new Date(Ce.getFullYear(),Ce.getMonth()+1,0).getDate(),offset:(Ce,Pe)=>Ce.setDate(Ce.getDate()+Pe)}},zr=m.value.toDate();for(;Math.abs(m.value.diff(zr,"year",!0))<1;){const Ce=Fa[U.value];if(!Ce)return;if(Ce.offset(zr,ut(Ce[_e])?Ce[_e](zr):(ve=Ce[_e])!=null?ve:0),h&&h(zr))break;const Pe=xt(zr).locale(u.value);m.value=Pe,e("pick",Pe,!0);break}},rt=_e=>{e("panel-change",m.value.toDate(),_e,N.value)};return Ee(()=>$.value,_e=>{if(["month","year"].includes(_e)){N.value=_e;return}N.value="date"},{immediate:!0}),Ee(()=>N.value,()=>{f==null||f.updatePopper()}),Ee(()=>g.value,_e=>{_e&&(m.value=Ue())},{immediate:!0}),Ee(()=>n.parsedValue,_e=>{if(_e){if($.value==="dates"||Array.isArray(_e))return;m.value=_e}else m.value=Ue()},{immediate:!0}),e("set-picker-option",["isValidValue",Ve]),e("set-picker-option",["formatToString",Ke]),e("set-picker-option",["parseUserInput",Le]),e("set-picker-option",["handleFocusPicker",st]),(_e,ve)=>(B(),q("div",{class:F([S(a).b(),S(i).b(),{"has-sidebar":_e.$slots.sidebar||S(j),"has-time":S(re)}])},[G("div",{class:F(S(a).e("body-wrapper"))},[Te(_e.$slots,"sidebar",{class:F(S(a).e("sidebar"))}),S(j)?(B(),q("div",{key:0,class:F(S(a).e("sidebar"))},[(B(!0),q(Ze,null,Pt(S(d),(ce,Re)=>(B(),q("button",{key:Re,type:"button",class:F(S(a).e("shortcut")),onClick:ae=>L(ce)},Ae(ce.text),11,lRe))),128))],2)):le("v-if",!0),G("div",{class:F(S(a).e("body"))},[S(re)?(B(),q("div",{key:0,class:F(S(i).e("time-header"))},[G("span",{class:F(S(i).e("editor-wrap"))},[H(S(ca),{placeholder:S(l)("el.datepicker.selectDate"),"model-value":S(ye),size:"small","validate-event":!1,onInput:ve[0]||(ve[0]=ce=>k.value=ce),onChange:ge},null,8,["placeholder","model-value"])],2),yt((B(),q("span",{class:F(S(i).e("editor-wrap"))},[H(S(ca),{placeholder:S(l)("el.datepicker.selectTime"),"model-value":S(se),size:"small","validate-event":!1,onFocus:be,onInput:ve[1]||(ve[1]=ce=>E.value=ce),onChange:ke},null,8,["placeholder","model-value"]),H(S(HS),{visible:we.value,format:S(K),"parsed-value":m.value,onPick:xe},null,8,["visible","format","parsed-value"])],2)),[[S(Wu),Me]])],2)):le("v-if",!0),yt(G("div",{class:F([S(i).e("header"),(N.value==="year"||N.value==="month")&&S(i).e("header--bordered")])},[G("span",{class:F(S(i).e("prev-btn"))},[G("button",{type:"button","aria-label":S(l)("el.datepicker.prevYear"),class:F(["d-arrow-left",S(a).e("icon-btn")]),onClick:ve[2]||(ve[2]=ce=>P(!1))},[H(S(Ye),null,{default:Z(()=>[H(S(dv))]),_:1})],10,uRe),yt(G("button",{type:"button","aria-label":S(l)("el.datepicker.prevMonth"),class:F([S(a).e("icon-btn"),"arrow-left"]),onClick:ve[3]||(ve[3]=ce=>V(!1))},[H(S(Ye),null,{default:Z(()=>[H(S(zu))]),_:1})],10,cRe),[[qt,N.value==="date"]])],2),G("span",{role:"button",class:F(S(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:ve[4]||(ve[4]=jt(ce=>te("year"),["enter"])),onClick:ve[5]||(ve[5]=ce=>te("year"))},Ae(S(I)),35),yt(G("span",{role:"button","aria-live":"polite",tabindex:"0",class:F([S(i).e("header-label"),{active:N.value==="month"}]),onKeydown:ve[6]||(ve[6]=jt(ce=>te("month"),["enter"])),onClick:ve[7]||(ve[7]=ce=>te("month"))},Ae(S(l)(`el.datepicker.month${S(w)+1}`)),35),[[qt,N.value==="date"]]),G("span",{class:F(S(i).e("next-btn"))},[yt(G("button",{type:"button","aria-label":S(l)("el.datepicker.nextMonth"),class:F([S(a).e("icon-btn"),"arrow-right"]),onClick:ve[8]||(ve[8]=ce=>V(!0))},[H(S(Ye),null,{default:Z(()=>[H(S(ka))]),_:1})],10,fRe),[[qt,N.value==="date"]]),G("button",{type:"button","aria-label":S(l)("el.datepicker.nextYear"),class:F([S(a).e("icon-btn"),"d-arrow-right"]),onClick:ve[9]||(ve[9]=ce=>P(!0))},[H(S(Ye),null,{default:Z(()=>[H(S(hv))]),_:1})],10,dRe)],2)],2),[[qt,N.value!=="time"]]),G("div",{class:F(S(a).e("content")),onKeydown:bt},[N.value==="date"?(B(),de(ek,{key:0,ref_key:"currentViewRef",ref:y,"selection-mode":S($),date:m.value,"parsed-value":_e.parsedValue,"disabled-date":S(h),"cell-class-name":S(p),onPick:A},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):le("v-if",!0),N.value==="year"?(B(),de(sRe,{key:1,ref_key:"currentViewRef",ref:y,date:m.value,"disabled-date":S(h),"parsed-value":_e.parsedValue,onPick:oe},null,8,["date","disabled-date","parsed-value"])):le("v-if",!0),N.value==="month"?(B(),de(tk,{key:2,ref_key:"currentViewRef",ref:y,date:m.value,"parsed-value":_e.parsedValue,"disabled-date":S(h),onPick:Y},null,8,["date","parsed-value","disabled-date"])):le("v-if",!0)],34)],2)],2),yt(G("div",{class:F(S(a).e("footer"))},[yt(H(S(St),{text:"",size:"small",class:F(S(a).e("link-btn")),disabled:S(ue),onClick:X},{default:Z(()=>[Qe(Ae(S(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[qt,S($)!=="dates"]]),H(S(St),{plain:"",size:"small",class:F(S(a).e("link-btn")),disabled:S(J),onClick:he},{default:Z(()=>[Qe(Ae(S(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[qt,S(ne)&&N.value==="date"]])],2))}});var vRe=Ne(hRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const pRe=$e({...Tj,...Ej}),gRe=t=>{const{emit:e}=wt(),n=fd(),r=ea();return i=>{const o=ut(i.value)?i.value():i.value;if(o){e("pick",[xt(o[0]).locale(t.value),xt(o[1]).locale(t.value)]);return}i.onClick&&i.onClick({attrs:n,slots:r,emit:e})}},Dj=(t,{defaultValue:e,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:o}=wt(),{pickerNs:s}=We(lA),l=De("date-range-picker"),{t:u,lang:c}=Kt(),f=gRe(c),d=z(),h=z(),p=z({endDate:null,selecting:!1}),v=b=>{p.value=b},g=(b=!1)=>{const _=S(d),x=S(h);QM([_,x])&&o("pick",[_,x],b)},y=b=>{p.value.selecting=b,b||(p.value.endDate=null)},m=()=>{const[b,_]=kj(S(e),{lang:S(c),unit:a,unlinkPanels:t.unlinkPanels});d.value=void 0,h.value=void 0,n.value=b,r.value=_};return Ee(e,b=>{b&&m()},{immediate:!0}),Ee(()=>t.parsedValue,b=>{if(He(b)&&b.length===2){const[_,x]=b;d.value=_,n.value=_,h.value=x,i(S(d),S(h))}else m()},{immediate:!0}),{minDate:d,maxDate:h,rangeState:p,lang:c,ppNs:s,drpNs:l,handleChangeRange:v,handleRangeConfirm:g,handleShortcutClick:f,onSelect:y,t:u}},yRe=["onClick"],mRe=["aria-label"],bRe=["aria-label"],SRe=["disabled","aria-label"],_Re=["disabled","aria-label"],wRe=["disabled","aria-label"],xRe=["disabled","aria-label"],CRe=["aria-label"],TRe=["aria-label"],Wm="month",ERe=ie({__name:"panel-date-range",props:pRe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(t,{emit:e}){const n=t,r=We("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:o,defaultTime:s,clearable:l}=r.props,u=Bn(r.props,"shortcuts"),c=Bn(r.props,"defaultValue"),{lang:f}=Kt(),d=z(xt().locale(f.value)),h=z(xt().locale(f.value).add(1,Wm)),{minDate:p,maxDate:v,rangeState:g,ppNs:y,drpNs:m,handleChangeRange:b,handleRangeConfirm:_,handleShortcutClick:x,onSelect:w,t:C}=Dj(n,{defaultValue:c,leftDate:d,rightDate:h,unit:Wm,onParsedValueChanged:ve}),T=z({min:null,max:null}),k=z({min:null,max:null}),E=O(()=>`${d.value.year()} ${C("el.datepicker.year")} ${C(`el.datepicker.month${d.value.month()+1}`)}`),M=O(()=>`${h.value.year()} ${C("el.datepicker.year")} ${C(`el.datepicker.month${h.value.month()+1}`)}`),D=O(()=>d.value.year()),R=O(()=>d.value.month()),A=O(()=>h.value.year()),V=O(()=>h.value.month()),P=O(()=>!!u.value.length),N=O(()=>T.value.min!==null?T.value.min:p.value?p.value.format(j.value):""),I=O(()=>T.value.max!==null?T.value.max:v.value||p.value?(v.value||p.value).format(j.value):""),L=O(()=>k.value.min!==null?k.value.min:p.value?p.value.format(U.value):""),$=O(()=>k.value.max!==null?k.value.max:v.value||p.value?(v.value||p.value).format(U.value):""),U=O(()=>L7(o)),j=O(()=>R7(o)),Y=ce=>QM(ce)&&(a?!a(ce[0].toDate())&&!a(ce[1].toDate()):!0),oe=()=>{d.value=d.value.subtract(1,"year"),n.unlinkPanels||(h.value=d.value.add(1,"month")),K("year")},te=()=>{d.value=d.value.subtract(1,"month"),n.unlinkPanels||(h.value=d.value.add(1,"month")),K("month")},re=()=>{n.unlinkPanels?h.value=h.value.add(1,"year"):(d.value=d.value.add(1,"year"),h.value=d.value.add(1,"month")),K("year")},ne=()=>{n.unlinkPanels?h.value=h.value.add(1,"month"):(d.value=d.value.add(1,"month"),h.value=d.value.add(1,"month")),K("month")},J=()=>{d.value=d.value.add(1,"year"),K("year")},he=()=>{d.value=d.value.add(1,"month"),K("month")},ue=()=>{h.value=h.value.subtract(1,"year"),K("year")},X=()=>{h.value=h.value.subtract(1,"month"),K("month")},K=ce=>{e("panel-change",[d.value.toDate(),h.value.toDate()],ce)},ee=O(()=>{const ce=(R.value+1)%12,Re=R.value+1>=12?1:0;return n.unlinkPanels&&new Date(D.value+Re,ce)n.unlinkPanels&&A.value*12+V.value-(D.value*12+R.value+1)>=12),ye=O(()=>!(p.value&&v.value&&!g.value.selecting&&QM([p.value,v.value]))),we=O(()=>n.type==="datetime"||n.type==="datetimerange"),be=(ce,Re)=>{if(ce)return s?xt(s[Re]||s).locale(f.value).year(ce.year()).month(ce.month()).date(ce.date()):ce},Me=(ce,Re=!0)=>{const ae=ce.minDate,Fe=ce.maxDate,dt=be(ae,0),$t=be(Fe,1);v.value===$t&&p.value===dt||(e("calendar-change",[ae.toDate(),Fe&&Fe.toDate()]),v.value=$t,p.value=dt,!(!Re||we.value)&&_())},Se=z(!1),xe=z(!1),ke=()=>{Se.value=!1},ge=()=>{xe.value=!1},Ve=(ce,Re)=>{T.value[Re]=ce;const ae=xt(ce,j.value).locale(f.value);if(ae.isValid()){if(a&&a(ae.toDate()))return;Re==="min"?(d.value=ae,p.value=(p.value||d.value).year(ae.year()).month(ae.month()).date(ae.date()),!n.unlinkPanels&&(!v.value||v.value.isBefore(p.value))&&(h.value=ae.add(1,"month"),v.value=p.value.add(1,"month"))):(h.value=ae,v.value=(v.value||h.value).year(ae.year()).month(ae.month()).date(ae.date()),!n.unlinkPanels&&(!p.value||p.value.isAfter(v.value))&&(d.value=ae.subtract(1,"month"),p.value=v.value.subtract(1,"month")))}},Ke=(ce,Re)=>{T.value[Re]=null},Le=(ce,Re)=>{k.value[Re]=ce;const ae=xt(ce,U.value).locale(f.value);ae.isValid()&&(Re==="min"?(Se.value=!0,p.value=(p.value||d.value).hour(ae.hour()).minute(ae.minute()).second(ae.second()),(!v.value||v.value.isBefore(p.value))&&(v.value=p.value)):(xe.value=!0,v.value=(v.value||h.value).hour(ae.hour()).minute(ae.minute()).second(ae.second()),h.value=v.value,v.value&&v.value.isBefore(p.value)&&(p.value=v.value)))},Ue=(ce,Re)=>{k.value[Re]=null,Re==="min"?(d.value=p.value,Se.value=!1):(h.value=v.value,xe.value=!1)},st=(ce,Re,ae)=>{k.value.min||(ce&&(d.value=ce,p.value=(p.value||d.value).hour(ce.hour()).minute(ce.minute()).second(ce.second())),ae||(Se.value=Re),(!v.value||v.value.isBefore(p.value))&&(v.value=p.value,h.value=ce))},bt=(ce,Re,ae)=>{k.value.max||(ce&&(h.value=ce,v.value=(v.value||h.value).hour(ce.hour()).minute(ce.minute()).second(ce.second())),ae||(xe.value=Re),v.value&&v.value.isBefore(p.value)&&(p.value=v.value))},At=()=>{d.value=kj(S(c),{lang:S(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],h.value=d.value.add(1,"month"),e("pick",null)},rt=ce=>He(ce)?ce.map(Re=>Re.format(o)):ce.format(o),_e=ce=>He(ce)?ce.map(Re=>xt(Re,o).locale(f.value)):xt(ce,o).locale(f.value);function ve(ce,Re){if(n.unlinkPanels&&Re){const ae=(ce==null?void 0:ce.year())||0,Fe=(ce==null?void 0:ce.month())||0,dt=Re.year(),$t=Re.month();h.value=ae===dt&&Fe===$t?Re.add(1,Wm):Re}else h.value=d.value.add(1,Wm),Re&&(h.value=h.value.hour(Re.hour()).minute(Re.minute()).second(Re.second()))}return e("set-picker-option",["isValidValue",Y]),e("set-picker-option",["parseUserInput",_e]),e("set-picker-option",["formatToString",rt]),e("set-picker-option",["handleClear",At]),(ce,Re)=>(B(),q("div",{class:F([S(y).b(),S(m).b(),{"has-sidebar":ce.$slots.sidebar||S(P),"has-time":S(we)}])},[G("div",{class:F(S(y).e("body-wrapper"))},[Te(ce.$slots,"sidebar",{class:F(S(y).e("sidebar"))}),S(P)?(B(),q("div",{key:0,class:F(S(y).e("sidebar"))},[(B(!0),q(Ze,null,Pt(S(u),(ae,Fe)=>(B(),q("button",{key:Fe,type:"button",class:F(S(y).e("shortcut")),onClick:dt=>S(x)(ae)},Ae(ae.text),11,yRe))),128))],2)):le("v-if",!0),G("div",{class:F(S(y).e("body"))},[S(we)?(B(),q("div",{key:0,class:F(S(m).e("time-header"))},[G("span",{class:F(S(m).e("editors-wrap"))},[G("span",{class:F(S(m).e("time-picker-wrap"))},[H(S(ca),{size:"small",disabled:S(g).selecting,placeholder:S(C)("el.datepicker.startDate"),class:F(S(m).e("editor")),"model-value":S(N),"validate-event":!1,onInput:Re[0]||(Re[0]=ae=>Ve(ae,"min")),onChange:Re[1]||(Re[1]=ae=>Ke(ae,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),yt((B(),q("span",{class:F(S(m).e("time-picker-wrap"))},[H(S(ca),{size:"small",class:F(S(m).e("editor")),disabled:S(g).selecting,placeholder:S(C)("el.datepicker.startTime"),"model-value":S(L),"validate-event":!1,onFocus:Re[2]||(Re[2]=ae=>Se.value=!0),onInput:Re[3]||(Re[3]=ae=>Le(ae,"min")),onChange:Re[4]||(Re[4]=ae=>Ue(ae,"min"))},null,8,["class","disabled","placeholder","model-value"]),H(S(HS),{visible:Se.value,format:S(U),"datetime-role":"start","parsed-value":d.value,onPick:st},null,8,["visible","format","parsed-value"])],2)),[[S(Wu),ke]])],2),G("span",null,[H(S(Ye),null,{default:Z(()=>[H(S(ka))]),_:1})]),G("span",{class:F([S(m).e("editors-wrap"),"is-right"])},[G("span",{class:F(S(m).e("time-picker-wrap"))},[H(S(ca),{size:"small",class:F(S(m).e("editor")),disabled:S(g).selecting,placeholder:S(C)("el.datepicker.endDate"),"model-value":S(I),readonly:!S(p),"validate-event":!1,onInput:Re[5]||(Re[5]=ae=>Ve(ae,"max")),onChange:Re[6]||(Re[6]=ae=>Ke(ae,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),yt((B(),q("span",{class:F(S(m).e("time-picker-wrap"))},[H(S(ca),{size:"small",class:F(S(m).e("editor")),disabled:S(g).selecting,placeholder:S(C)("el.datepicker.endTime"),"model-value":S($),readonly:!S(p),"validate-event":!1,onFocus:Re[7]||(Re[7]=ae=>S(p)&&(xe.value=!0)),onInput:Re[8]||(Re[8]=ae=>Le(ae,"max")),onChange:Re[9]||(Re[9]=ae=>Ue(ae,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),H(S(HS),{"datetime-role":"end",visible:xe.value,format:S(U),"parsed-value":h.value,onPick:bt},null,8,["visible","format","parsed-value"])],2)),[[S(Wu),ge]])],2)],2)):le("v-if",!0),G("div",{class:F([[S(y).e("content"),S(m).e("content")],"is-left"])},[G("div",{class:F(S(m).e("header"))},[G("button",{type:"button",class:F([S(y).e("icon-btn"),"d-arrow-left"]),"aria-label":S(C)("el.datepicker.prevYear"),onClick:oe},[H(S(Ye),null,{default:Z(()=>[H(S(dv))]),_:1})],10,mRe),G("button",{type:"button",class:F([S(y).e("icon-btn"),"arrow-left"]),"aria-label":S(C)("el.datepicker.prevMonth"),onClick:te},[H(S(Ye),null,{default:Z(()=>[H(S(zu))]),_:1})],10,bRe),ce.unlinkPanels?(B(),q("button",{key:0,type:"button",disabled:!S(se),class:F([[S(y).e("icon-btn"),{"is-disabled":!S(se)}],"d-arrow-right"]),"aria-label":S(C)("el.datepicker.nextYear"),onClick:J},[H(S(Ye),null,{default:Z(()=>[H(S(hv))]),_:1})],10,SRe)):le("v-if",!0),ce.unlinkPanels?(B(),q("button",{key:1,type:"button",disabled:!S(ee),class:F([[S(y).e("icon-btn"),{"is-disabled":!S(ee)}],"arrow-right"]),"aria-label":S(C)("el.datepicker.nextMonth"),onClick:he},[H(S(Ye),null,{default:Z(()=>[H(S(ka))]),_:1})],10,_Re)):le("v-if",!0),G("div",null,Ae(S(E)),1)],2),H(ek,{"selection-mode":"range",date:d.value,"min-date":S(p),"max-date":S(v),"range-state":S(g),"disabled-date":S(a),"cell-class-name":S(i),onChangerange:S(b),onPick:Me,onSelect:S(w)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),G("div",{class:F([[S(y).e("content"),S(m).e("content")],"is-right"])},[G("div",{class:F(S(m).e("header"))},[ce.unlinkPanels?(B(),q("button",{key:0,type:"button",disabled:!S(se),class:F([[S(y).e("icon-btn"),{"is-disabled":!S(se)}],"d-arrow-left"]),"aria-label":S(C)("el.datepicker.prevYear"),onClick:ue},[H(S(Ye),null,{default:Z(()=>[H(S(dv))]),_:1})],10,wRe)):le("v-if",!0),ce.unlinkPanels?(B(),q("button",{key:1,type:"button",disabled:!S(ee),class:F([[S(y).e("icon-btn"),{"is-disabled":!S(ee)}],"arrow-left"]),"aria-label":S(C)("el.datepicker.prevMonth"),onClick:X},[H(S(Ye),null,{default:Z(()=>[H(S(zu))]),_:1})],10,xRe)):le("v-if",!0),G("button",{type:"button","aria-label":S(C)("el.datepicker.nextYear"),class:F([S(y).e("icon-btn"),"d-arrow-right"]),onClick:re},[H(S(Ye),null,{default:Z(()=>[H(S(hv))]),_:1})],10,CRe),G("button",{type:"button",class:F([S(y).e("icon-btn"),"arrow-right"]),"aria-label":S(C)("el.datepicker.nextMonth"),onClick:ne},[H(S(Ye),null,{default:Z(()=>[H(S(ka))]),_:1})],10,TRe),G("div",null,Ae(S(M)),1)],2),H(ek,{"selection-mode":"range",date:h.value,"min-date":S(p),"max-date":S(v),"range-state":S(g),"disabled-date":S(a),"cell-class-name":S(i),onChangerange:S(b),onPick:Me,onSelect:S(w)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),S(we)?(B(),q("div",{key:0,class:F(S(y).e("footer"))},[S(l)?(B(),de(S(St),{key:0,text:"",size:"small",class:F(S(y).e("link-btn")),onClick:At},{default:Z(()=>[Qe(Ae(S(C)("el.datepicker.clear")),1)]),_:1},8,["class"])):le("v-if",!0),H(S(St),{plain:"",size:"small",class:F(S(y).e("link-btn")),disabled:S(ye),onClick:Re[10]||(Re[10]=ae=>S(_)(!1))},{default:Z(()=>[Qe(Ae(S(C)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):le("v-if",!0)],2))}});var MRe=Ne(ERe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const kRe=$e({...Ej}),DRe=["pick","set-picker-option","calendar-change"],RRe=({unlinkPanels:t,leftDate:e,rightDate:n})=>{const{t:r}=Kt(),a=()=>{e.value=e.value.subtract(1,"year"),t.value||(n.value=n.value.subtract(1,"year"))},i=()=>{t.value||(e.value=e.value.add(1,"year")),n.value=n.value.add(1,"year")},o=()=>{e.value=e.value.add(1,"year")},s=()=>{n.value=n.value.subtract(1,"year")},l=O(()=>`${e.value.year()} ${r("el.datepicker.year")}`),u=O(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=O(()=>e.value.year()),f=O(()=>n.value.year()===e.value.year()?e.value.year()+1:n.value.year());return{leftPrevYear:a,rightNextYear:i,leftNextYear:o,rightPrevYear:s,leftLabel:l,rightLabel:u,leftYear:c,rightYear:f}},LRe=["onClick"],ARe=["disabled"],ORe=["disabled"],jm="year",NRe=ie({name:"DatePickerMonthRange"}),$Re=ie({...NRe,props:kRe,emits:DRe,setup(t,{emit:e}){const n=t,{lang:r}=Kt(),a=We("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:s}=a.props,l=Bn(a.props,"defaultValue"),u=z(xt().locale(r.value)),c=z(xt().locale(r.value).add(1,jm)),{minDate:f,maxDate:d,rangeState:h,ppNs:p,drpNs:v,handleChangeRange:g,handleRangeConfirm:y,handleShortcutClick:m,onSelect:b}=Dj(n,{defaultValue:l,leftDate:u,rightDate:c,unit:jm,onParsedValueChanged:P}),_=O(()=>!!i.length),{leftPrevYear:x,rightNextYear:w,leftNextYear:C,rightPrevYear:T,leftLabel:k,rightLabel:E,leftYear:M,rightYear:D}=RRe({unlinkPanels:Bn(n,"unlinkPanels"),leftDate:u,rightDate:c}),R=O(()=>n.unlinkPanels&&D.value>M.value+1),A=(N,I=!0)=>{const L=N.minDate,$=N.maxDate;d.value===$&&f.value===L||(e("calendar-change",[L.toDate(),$&&$.toDate()]),d.value=$,f.value=L,I&&y())},V=N=>N.map(I=>I.format(s));function P(N,I){if(n.unlinkPanels&&I){const L=(N==null?void 0:N.year())||0,$=I.year();c.value=L===$?I.add(1,jm):I}else c.value=u.value.add(1,jm)}return e("set-picker-option",["formatToString",V]),(N,I)=>(B(),q("div",{class:F([S(p).b(),S(v).b(),{"has-sidebar":!!N.$slots.sidebar||S(_)}])},[G("div",{class:F(S(p).e("body-wrapper"))},[Te(N.$slots,"sidebar",{class:F(S(p).e("sidebar"))}),S(_)?(B(),q("div",{key:0,class:F(S(p).e("sidebar"))},[(B(!0),q(Ze,null,Pt(S(i),(L,$)=>(B(),q("button",{key:$,type:"button",class:F(S(p).e("shortcut")),onClick:U=>S(m)(L)},Ae(L.text),11,LRe))),128))],2)):le("v-if",!0),G("div",{class:F(S(p).e("body"))},[G("div",{class:F([[S(p).e("content"),S(v).e("content")],"is-left"])},[G("div",{class:F(S(v).e("header"))},[G("button",{type:"button",class:F([S(p).e("icon-btn"),"d-arrow-left"]),onClick:I[0]||(I[0]=(...L)=>S(x)&&S(x)(...L))},[H(S(Ye),null,{default:Z(()=>[H(S(dv))]),_:1})],2),N.unlinkPanels?(B(),q("button",{key:0,type:"button",disabled:!S(R),class:F([[S(p).e("icon-btn"),{[S(p).is("disabled")]:!S(R)}],"d-arrow-right"]),onClick:I[1]||(I[1]=(...L)=>S(C)&&S(C)(...L))},[H(S(Ye),null,{default:Z(()=>[H(S(hv))]),_:1})],10,ARe)):le("v-if",!0),G("div",null,Ae(S(k)),1)],2),H(tk,{"selection-mode":"range",date:u.value,"min-date":S(f),"max-date":S(d),"range-state":S(h),"disabled-date":S(o),onChangerange:S(g),onPick:A,onSelect:S(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),G("div",{class:F([[S(p).e("content"),S(v).e("content")],"is-right"])},[G("div",{class:F(S(v).e("header"))},[N.unlinkPanels?(B(),q("button",{key:0,type:"button",disabled:!S(R),class:F([[S(p).e("icon-btn"),{"is-disabled":!S(R)}],"d-arrow-left"]),onClick:I[2]||(I[2]=(...L)=>S(T)&&S(T)(...L))},[H(S(Ye),null,{default:Z(()=>[H(S(dv))]),_:1})],10,ORe)):le("v-if",!0),G("button",{type:"button",class:F([S(p).e("icon-btn"),"d-arrow-right"]),onClick:I[3]||(I[3]=(...L)=>S(w)&&S(w)(...L))},[H(S(Ye),null,{default:Z(()=>[H(S(hv))]),_:1})],2),G("div",null,Ae(S(E)),1)],2),H(tk,{"selection-mode":"range",date:c.value,"min-date":S(f),"max-date":S(d),"range-state":S(h),"disabled-date":S(o),onChangerange:S(g),onPick:A,onSelect:S(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var IRe=Ne($Re,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const BRe=function(t){switch(t){case"daterange":case"datetimerange":return MRe;case"monthrange":return IRe;default:return vRe}};xt.extend(K7);xt.extend(_De);xt.extend(aA);xt.extend(xDe);xt.extend(TDe);xt.extend(MDe);xt.extend(DDe);xt.extend(LDe);var VRe=ie({name:"ElDatePicker",install:null,props:ADe,emits:["update:modelValue"],setup(t,{expose:e,emit:n,slots:r}){const a=De("picker-panel");Nt("ElPopperOptions",Qt(Bn(t,"popperOptions"))),Nt(lA,{slots:r,pickerNs:a});const i=z();e({focus:(l=!0)=>{var u;(u=i.value)==null||u.focus(l)},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const s=l=>{n("update:modelValue",l)};return()=>{var l;const u=(l=t.format)!=null?l:yTe[t.type]||sh,c=BRe(t.type);return H(N7,kt(t,{format:u,type:t.type,ref:i,"onUpdate:modelValue":s}),{default:f=>H(c,f,null),"range-separator":r["range-separator"]})}}});const Pb=VRe;Pb.install=t=>{t.component(Pb.name,Pb)};const PRe=Pb,cA=Symbol("elDescriptions");var Rp=ie({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:We(cA,{})}},render(){var t,e,n,r,a,i;const o=CSe(this.cell),{border:s,direction:l}=this.descriptions,u=l==="vertical",c=((n=(e=(t=this.cell)==null?void 0:t.children)==null?void 0:e.label)==null?void 0:n.call(e))||o.label,f=(i=(a=(r=this.cell)==null?void 0:r.children)==null?void 0:a.default)==null?void 0:i.call(a),d=o.span,h=o.align?`is-${o.align}`:"",p=o.labelAlign?`is-${o.labelAlign}`:h,v=o.className,g=o.labelClassName,y={width:Xn(o.width),minWidth:Xn(o.minWidth)},m=De("descriptions");switch(this.type){case"label":return tt(this.tag,{style:y,class:[m.e("cell"),m.e("label"),m.is("bordered-label",s),m.is("vertical-label",u),p,g],colSpan:u?d:1},c);case"content":return tt(this.tag,{style:y,class:[m.e("cell"),m.e("content"),m.is("bordered-content",s),m.is("vertical-content",u),h,v],colSpan:u?d:d*2-1},f);default:return tt("td",{style:y,class:[m.e("cell"),h],colSpan:d},[ur(c)?void 0:tt("span",{class:[m.e("label"),g]},c),tt("span",{class:[m.e("content"),v]},f)])}}});const FRe=$e({row:{type:Array,default:()=>[]}}),zRe={key:1},GRe=ie({name:"ElDescriptionsRow"}),HRe=ie({...GRe,props:FRe,setup(t){const e=We(cA,{});return(n,r)=>S(e).direction==="vertical"?(B(),q(Ze,{key:0},[G("tr",null,[(B(!0),q(Ze,null,Pt(n.row,(a,i)=>(B(),de(S(Rp),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),G("tr",null,[(B(!0),q(Ze,null,Pt(n.row,(a,i)=>(B(),de(S(Rp),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(B(),q("tr",zRe,[(B(!0),q(Ze,null,Pt(n.row,(a,i)=>(B(),q(Ze,{key:`tr3-${i}`},[S(e).border?(B(),q(Ze,{key:0},[H(S(Rp),{cell:a,tag:"td",type:"label"},null,8,["cell"]),H(S(Rp),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(B(),de(S(Rp),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var URe=Ne(HRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const WRe=$e({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:qr,title:{type:String,default:""},extra:{type:String,default:""}}),jRe=ie({name:"ElDescriptions"}),KRe=ie({...jRe,props:WRe,setup(t){const e=t,n=De("descriptions"),r=hr(),a=ea();Nt(cA,e);const i=O(()=>[n.b(),n.m(r.value)]),o=(l,u,c,f=!1)=>(l.props||(l.props={}),u>c&&(l.props.span=c),f&&(l.props.span=u),l),s=()=>{var l;const u=Vh((l=a.default)==null?void 0:l.call(a)).filter(p=>{var v;return((v=p==null?void 0:p.type)==null?void 0:v.name)==="ElDescriptionsItem"}),c=[];let f=[],d=e.column,h=0;return u.forEach((p,v)=>{var g;const y=((g=p.props)==null?void 0:g.span)||1;if(vd?d:y),v===u.length-1){const m=e.column-h%e.column;f.push(o(p,m,d,!0)),c.push(f);return}y(B(),q("div",{class:F(S(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(B(),q("div",{key:0,class:F(S(n).e("header"))},[G("div",{class:F(S(n).e("title"))},[Te(l.$slots,"title",{},()=>[Qe(Ae(l.title),1)])],2),G("div",{class:F(S(n).e("extra"))},[Te(l.$slots,"extra",{},()=>[Qe(Ae(l.extra),1)])],2)],2)):le("v-if",!0),G("div",{class:F(S(n).e("body"))},[G("table",{class:F([S(n).e("table"),S(n).is("bordered",l.border)])},[G("tbody",null,[(B(!0),q(Ze,null,Pt(s(),(c,f)=>(B(),de(URe,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var YRe=Ne(KRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),Rj=ie({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const XRe=Tt(YRe,{DescriptionsItem:Rj}),qRe=Hn(Rj),ZRe=$e({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:fe([String,Array,Object])},zIndex:{type:fe([String,Number])}}),QRe={click:t=>t instanceof MouseEvent},JRe="overlay";var eLe=ie({name:"ElOverlay",props:ZRe,emits:QRe,setup(t,{slots:e,emit:n}){const r=De(JRe),a=l=>{n("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=jL(t.customMaskEvent?void 0:a);return()=>t.mask?H("div",{class:[r.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:i,onMousedown:o,onMouseup:s},[Te(e,"default")],Di.STYLE|Di.CLASS|Di.PROPS,["onClick","onMouseup","onMousedown"]):tt("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Te(e,"default")])}});const fA=eLe,Lj=Symbol("dialogInjectionKey"),Aj=$e({center:Boolean,alignCenter:Boolean,closeIcon:{type:_n},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),tLe={close:()=>!0},nLe=["aria-level"],rLe=["aria-label"],aLe=["id"],iLe=ie({name:"ElDialogContent"}),oLe=ie({...iLe,props:Aj,emits:tLe,setup(t){const e=t,{t:n}=Kt(),{Close:r}=m9,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:l}=We(Lj),{focusTrapRef:u}=We(tA),c=O(()=>[s.b(),s.is("fullscreen",e.fullscreen),s.is("draggable",e.draggable),s.is("align-center",e.alignCenter),{[s.m("center")]:e.center},e.customClass]),f=Yw(u,a),d=O(()=>e.draggable);return S9(a,i,d),(h,p)=>(B(),q("div",{ref:S(f),class:F(S(c)),style:qe(S(l)),tabindex:"-1"},[G("header",{ref_key:"headerRef",ref:i,class:F(S(s).e("header"))},[Te(h.$slots,"header",{},()=>[G("span",{role:"heading","aria-level":h.ariaLevel,class:F(S(s).e("title"))},Ae(h.title),11,nLe)]),h.showClose?(B(),q("button",{key:0,"aria-label":S(n)("el.dialog.close"),class:F(S(s).e("headerbtn")),type:"button",onClick:p[0]||(p[0]=v=>h.$emit("close"))},[H(S(Ye),{class:F(S(s).e("close"))},{default:Z(()=>[(B(),de(Et(h.closeIcon||S(r))))]),_:1},8,["class"])],10,rLe)):le("v-if",!0)],2),G("div",{id:S(o),class:F(S(s).e("body"))},[Te(h.$slots,"default")],10,aLe),h.$slots.footer?(B(),q("footer",{key:0,class:F(S(s).e("footer"))},[Te(h.$slots,"footer")],2)):le("v-if",!0)],6))}});var sLe=Ne(oLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const Oj=$e({...Aj,appendToBody:Boolean,beforeClose:{type:fe(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),Nj={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Mt]:t=>cr(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},$j=(t,e)=>{const r=wt().emit,{nextZIndex:a}=Xv();let i="";const o=Ki(),s=Ki(),l=z(!1),u=z(!1),c=z(!1),f=z(t.zIndex||a());let d,h;const p=nx("namespace",Vg),v=O(()=>{const A={},V=`--${p.value}-dialog`;return t.fullscreen||(t.top&&(A[`${V}-margin-top`]=t.top),t.width&&(A[`${V}-width`]=Xn(t.width))),A}),g=O(()=>t.alignCenter?{display:"flex"}:{});function y(){r("opened")}function m(){r("closed"),r(Mt,!1),t.destroyOnClose&&(c.value=!1)}function b(){r("close")}function _(){h==null||h(),d==null||d(),t.openDelay&&t.openDelay>0?{stop:d}=Zf(()=>T(),t.openDelay):T()}function x(){d==null||d(),h==null||h(),t.closeDelay&&t.closeDelay>0?{stop:h}=Zf(()=>k(),t.closeDelay):k()}function w(){function A(V){V||(u.value=!0,l.value=!1)}t.beforeClose?t.beforeClose(A):x()}function C(){t.closeOnClickModal&&w()}function T(){Ut&&(l.value=!0)}function k(){l.value=!1}function E(){r("openAutoFocus")}function M(){r("closeAutoFocus")}function D(A){var V;((V=A.detail)==null?void 0:V.focusReason)==="pointer"&&A.preventDefault()}t.lockScroll&&x9(l);function R(){t.closeOnPressEscape&&w()}return Ee(()=>t.modelValue,A=>{A?(u.value=!1,_(),c.value=!0,f.value=t.zIndex?f.value++:a(),Xe(()=>{r("open"),e.value&&(e.value.scrollTop=0)})):l.value&&x()}),Ee(()=>t.fullscreen,A=>{e.value&&(A?(i=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=i)}),ht(()=>{t.modelValue&&(l.value=!0,c.value=!0,_())}),{afterEnter:y,afterLeave:m,beforeLeave:b,handleClose:w,onModalClick:C,close:x,doClose:k,onOpenAutoFocus:E,onCloseAutoFocus:M,onCloseRequested:R,onFocusoutPrevented:D,titleId:o,bodyId:s,closed:u,style:v,overlayDialogStyle:g,rendered:c,visible:l,zIndex:f}},lLe=["aria-label","aria-labelledby","aria-describedby"],uLe=ie({name:"ElDialog",inheritAttrs:!1}),cLe=ie({...uLe,props:Oj,emits:Nj,setup(t,{expose:e}){const n=t,r=ea();Ts({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},O(()=>!!r.title)),Ts({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},O(()=>!!n.customClass));const a=De("dialog"),i=z(),o=z(),s=z(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:p,afterEnter:v,afterLeave:g,beforeLeave:y,handleClose:m,onModalClick:b,onOpenAutoFocus:_,onCloseAutoFocus:x,onCloseRequested:w,onFocusoutPrevented:C}=$j(n,i);Nt(Lj,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:f});const T=jL(b),k=O(()=>n.draggable&&!n.fullscreen);return e({visible:l,dialogContentRef:s}),(E,M)=>(B(),de(Oy,{to:"body",disabled:!E.appendToBody},[H(Qn,{name:"dialog-fade",onAfterEnter:S(v),onAfterLeave:S(g),onBeforeLeave:S(y),persisted:""},{default:Z(()=>[yt(H(S(fA),{"custom-mask-event":"",mask:E.modal,"overlay-class":E.modalClass,"z-index":S(p)},{default:Z(()=>[G("div",{role:"dialog","aria-modal":"true","aria-label":E.title||void 0,"aria-labelledby":E.title?void 0:S(u),"aria-describedby":S(c),class:F(`${S(a).namespace.value}-overlay-dialog`),style:qe(S(d)),onClick:M[0]||(M[0]=(...D)=>S(T).onClick&&S(T).onClick(...D)),onMousedown:M[1]||(M[1]=(...D)=>S(T).onMousedown&&S(T).onMousedown(...D)),onMouseup:M[2]||(M[2]=(...D)=>S(T).onMouseup&&S(T).onMouseup(...D))},[H(S(ix),{loop:"",trapped:S(l),"focus-start-el":"container",onFocusAfterTrapped:S(_),onFocusAfterReleased:S(x),onFocusoutPrevented:S(C),onReleaseRequested:S(w)},{default:Z(()=>[S(h)?(B(),de(sLe,kt({key:0,ref_key:"dialogContentRef",ref:s},E.$attrs,{"custom-class":E.customClass,center:E.center,"align-center":E.alignCenter,"close-icon":E.closeIcon,draggable:S(k),fullscreen:E.fullscreen,"show-close":E.showClose,title:E.title,"aria-level":E.headerAriaLevel,onClose:S(m)}),gl({header:Z(()=>[E.$slots.title?Te(E.$slots,"title",{key:1}):Te(E.$slots,"header",{key:0,close:S(m),titleId:S(u),titleClass:S(a).e("title")})]),default:Z(()=>[Te(E.$slots,"default")]),_:2},[E.$slots.footer?{name:"footer",fn:Z(()=>[Te(E.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):le("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,lLe)]),_:3},8,["mask","overlay-class","z-index"]),[[qt,S(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var fLe=Ne(cLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const Br=Tt(fLe),dLe=$e({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:fe(String),default:"solid"}}),hLe=ie({name:"ElDivider"}),vLe=ie({...hLe,props:dLe,setup(t){const e=t,n=De("divider"),r=O(()=>n.cssVar({"border-style":e.borderStyle}));return(a,i)=>(B(),q("div",{class:F([S(n).b(),S(n).m(a.direction)]),style:qe(S(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(B(),q("div",{key:0,class:F([S(n).e("text"),S(n).is(a.contentPosition)])},[Te(a.$slots,"default")],2)):le("v-if",!0)],6))}});var pLe=Ne(vLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const Ij=Tt(pLe),gLe=$e({...Oj,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),yLe=Nj,mLe=ie({name:"ElDrawer",components:{ElOverlay:fA,ElFocusTrap:ix,ElIcon:Ye,Close:No},inheritAttrs:!1,props:gLe,emits:yLe,setup(t,{slots:e}){Ts({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},O(()=>!!e.title)),Ts({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},O(()=>!!t.customClass));const n=z(),r=z(),a=De("drawer"),{t:i}=Kt(),o=O(()=>t.direction==="rtl"||t.direction==="ltr"),s=O(()=>Xn(t.size));return{...$j(t,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:s,ns:a,t:i}}}),bLe=["aria-label","aria-labelledby","aria-describedby"],SLe=["id","aria-level"],_Le=["aria-label"],wLe=["id"];function xLe(t,e,n,r,a,i){const o=Ge("close"),s=Ge("el-icon"),l=Ge("el-focus-trap"),u=Ge("el-overlay");return B(),de(Oy,{to:"body",disabled:!t.appendToBody},[H(Qn,{name:t.ns.b("fade"),onAfterEnter:t.afterEnter,onAfterLeave:t.afterLeave,onBeforeLeave:t.beforeLeave,persisted:""},{default:Z(()=>[yt(H(u,{mask:t.modal,"overlay-class":t.modalClass,"z-index":t.zIndex,onClick:t.onModalClick},{default:Z(()=>[H(l,{loop:"",trapped:t.visible,"focus-trap-el":t.drawerRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:Z(()=>[G("div",kt({ref:"drawerRef","aria-modal":"true","aria-label":t.title||void 0,"aria-labelledby":t.title?void 0:t.titleId,"aria-describedby":t.bodyId},t.$attrs,{class:[t.ns.b(),t.direction,t.visible&&"open",t.customClass],style:t.isHorizontal?"width: "+t.drawerSize:"height: "+t.drawerSize,role:"dialog",onClick:e[1]||(e[1]=it(()=>{},["stop"]))}),[G("span",{ref:"focusStartRef",class:F(t.ns.e("sr-focus")),tabindex:"-1"},null,2),t.withHeader?(B(),q("header",{key:0,class:F(t.ns.e("header"))},[t.$slots.title?Te(t.$slots,"title",{key:1},()=>[le(" DEPRECATED SLOT ")]):Te(t.$slots,"header",{key:0,close:t.handleClose,titleId:t.titleId,titleClass:t.ns.e("title")},()=>[t.$slots.title?le("v-if",!0):(B(),q("span",{key:0,id:t.titleId,role:"heading","aria-level":t.headerAriaLevel,class:F(t.ns.e("title"))},Ae(t.title),11,SLe))]),t.showClose?(B(),q("button",{key:2,"aria-label":t.t("el.drawer.close"),class:F(t.ns.e("close-btn")),type:"button",onClick:e[0]||(e[0]=(...c)=>t.handleClose&&t.handleClose(...c))},[H(s,{class:F(t.ns.e("close"))},{default:Z(()=>[H(o)]),_:1},8,["class"])],10,_Le)):le("v-if",!0)],2)):le("v-if",!0),t.rendered?(B(),q("div",{key:1,id:t.bodyId,class:F(t.ns.e("body"))},[Te(t.$slots,"default")],10,wLe)):le("v-if",!0),t.$slots.footer?(B(),q("div",{key:2,class:F(t.ns.e("footer"))},[Te(t.$slots,"footer")],2)):le("v-if",!0)],16,bLe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[qt,t.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var CLe=Ne(mLe,[["render",xLe],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const TLe=Tt(CLe),ELe=ie({inheritAttrs:!1});function MLe(t,e,n,r,a,i){return Te(t.$slots,"default")}var kLe=Ne(ELe,[["render",MLe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const DLe=ie({name:"ElCollectionItem",inheritAttrs:!1});function RLe(t,e,n,r,a,i){return Te(t.$slots,"default")}var LLe=Ne(DLe,[["render",RLe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const Bj="data-el-collection-item",Vj=t=>{const e=`El${t}Collection`,n=`${e}Item`,r=Symbol(e),a=Symbol(n),i={...kLe,name:e,setup(){const s=z(null),l=new Map;Nt(r,{itemMap:l,getItems:()=>{const c=S(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${Bj}]`));return[...l.values()].sort((h,p)=>f.indexOf(h.ref)-f.indexOf(p.ref))},collectionRef:s})}},o={...LLe,name:n,setup(s,{attrs:l}){const u=z(null),c=We(r,void 0);Nt(a,{collectionItemRef:u}),ht(()=>{const f=S(u);f&&c.itemMap.set(f,{ref:f,...l})}),Tn(()=>{const f=S(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},ALe=$e({style:{type:fe([String,Array,Object])},currentTabId:{type:fe(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:fe(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:OLe,ElCollectionItem:NLe,COLLECTION_INJECTION_KEY:dA,COLLECTION_ITEM_INJECTION_KEY:$Le}=Vj("RovingFocusGroup"),hA=Symbol("elRovingFocusGroup"),Pj=Symbol("elRovingFocusGroupItem"),ILe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},BLe=(t,e)=>{if(e!=="rtl")return t;switch(t){case et.right:return et.left;case et.left:return et.right;default:return t}},VLe=(t,e,n)=>{const r=BLe(t.key,n);if(!(e==="vertical"&&[et.left,et.right].includes(r))&&!(e==="horizontal"&&[et.up,et.down].includes(r)))return ILe[r]},PLe=(t,e)=>t.map((n,r)=>t[(r+e)%t.length]),vA=t=>{const{activeElement:e}=document;for(const n of t)if(n===e||(n.focus(),e!==document.activeElement))return},_V="currentTabIdChange",wV="rovingFocusGroup.entryFocus",FLe={bubbles:!1,cancelable:!0},zLe=ie({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:ALe,emits:[_V,"entryFocus"],setup(t,{emit:e}){var n;const r=z((n=t.currentTabId||t.defaultCurrentTabId)!=null?n:null),a=z(!1),i=z(!1),o=z(null),{getItems:s}=We(dA,void 0),l=O(()=>[{outline:"none"},t.style]),u=v=>{e(_V,v)},c=()=>{a.value=!0},f=Gn(v=>{var g;(g=t.onMousedown)==null||g.call(t,v)},()=>{i.value=!0}),d=Gn(v=>{var g;(g=t.onFocus)==null||g.call(t,v)},v=>{const g=!S(i),{target:y,currentTarget:m}=v;if(y===m&&g&&!S(a)){const b=new Event(wV,FLe);if(m==null||m.dispatchEvent(b),!b.defaultPrevented){const _=s().filter(k=>k.focusable),x=_.find(k=>k.active),w=_.find(k=>k.id===S(r)),T=[x,w,..._].filter(Boolean).map(k=>k.ref);vA(T)}}i.value=!1}),h=Gn(v=>{var g;(g=t.onBlur)==null||g.call(t,v)},()=>{a.value=!1}),p=(...v)=>{e("entryFocus",...v)};Nt(hA,{currentTabbedId:Hv(r),loop:Bn(t,"loop"),tabIndex:O(()=>S(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:Bn(t,"orientation"),dir:Bn(t,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:d,onMousedown:f}),Ee(()=>t.currentTabId,v=>{r.value=v??null}),Rn(o,wV,p)}});function GLe(t,e,n,r,a,i){return Te(t.$slots,"default")}var HLe=Ne(zLe,[["render",GLe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const ULe=ie({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:OLe,ElRovingFocusGroupImpl:HLe}});function WLe(t,e,n,r,a,i){const o=Ge("el-roving-focus-group-impl"),s=Ge("el-focus-group-collection");return B(),de(s,null,{default:Z(()=>[H(o,So(Dw(t.$attrs)),{default:Z(()=>[Te(t.$slots,"default")]),_:3},16)]),_:3})}var jLe=Ne(ULe,[["render",WLe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const KLe=ie({components:{ElRovingFocusCollectionItem:NLe},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(t,{emit:e}){const{currentTabbedId:n,loop:r,onItemFocus:a,onItemShiftTab:i}=We(hA,void 0),{getItems:o}=We(dA,void 0),s=Ki(),l=z(null),u=Gn(h=>{e("mousedown",h)},h=>{t.focusable?a(S(s)):h.preventDefault()}),c=Gn(h=>{e("focus",h)},()=>{a(S(s))}),f=Gn(h=>{e("keydown",h)},h=>{const{key:p,shiftKey:v,target:g,currentTarget:y}=h;if(p===et.tab&&v){i();return}if(g!==y)return;const m=VLe(h);if(m){h.preventDefault();let _=o().filter(x=>x.focusable).map(x=>x.ref);switch(m){case"last":{_.reverse();break}case"prev":case"next":{m==="prev"&&_.reverse();const x=_.indexOf(y);_=r.value?PLe(_,x+1):_.slice(x+1);break}}Xe(()=>{vA(_)})}}),d=O(()=>n.value===S(s));return Nt(Pj,{rovingFocusGroupItemRef:l,tabIndex:O(()=>S(d)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:s,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function YLe(t,e,n,r,a,i){const o=Ge("el-roving-focus-collection-item");return B(),de(o,{id:t.id,focusable:t.focusable,active:t.active},{default:Z(()=>[Te(t.$slots,"default")]),_:3},8,["id","focusable","active"])}var XLe=Ne(KLe,[["render",YLe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Fb=$e({trigger:$0.trigger,effect:{...Nr.effect,default:"light"},type:{type:fe(String)},placement:{type:fe(String),default:"bottom"},popperOptions:{type:fe(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:fe([Number,String]),default:0},maxHeight:{type:fe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:fe(Object)},teleported:Nr.teleported}),Fj=$e({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:_n}}),qLe=$e({onKeydown:{type:fe(Function)}}),ZLe=[et.down,et.pageDown,et.home],zj=[et.up,et.pageUp,et.end],QLe=[...ZLe,...zj],{ElCollection:JLe,ElCollectionItem:eAe,COLLECTION_INJECTION_KEY:tAe,COLLECTION_ITEM_INJECTION_KEY:nAe}=Vj("Dropdown"),lx=Symbol("elDropdown"),{ButtonGroup:rAe}=St,aAe=ie({name:"ElDropdown",components:{ElButton:St,ElButtonGroup:rAe,ElScrollbar:Rl,ElDropdownCollection:JLe,ElTooltip:Na,ElRovingFocusGroup:jLe,ElOnlyChild:d7,ElIcon:Ye,ArrowDown:ac},props:Fb,emits:["visible-change","click","command"],setup(t,{emit:e}){const n=wt(),r=De("dropdown"),{t:a}=Kt(),i=z(),o=z(),s=z(null),l=z(null),u=z(null),c=z(null),f=z(!1),d=[et.enter,et.space,et.down],h=O(()=>({maxHeight:Xn(t.maxHeight)})),p=O(()=>[r.m(x.value)]),v=O(()=>Jf(t.trigger)),g=Ki().value,y=O(()=>t.id||g);Ee([i,v],([N,I],[L])=>{var $,U,j;($=L==null?void 0:L.$el)!=null&&$.removeEventListener&&L.$el.removeEventListener("pointerenter",C),(U=N==null?void 0:N.$el)!=null&&U.removeEventListener&&N.$el.removeEventListener("pointerenter",C),(j=N==null?void 0:N.$el)!=null&&j.addEventListener&&I.includes("hover")&&N.$el.addEventListener("pointerenter",C)},{immediate:!0}),Tn(()=>{var N,I;(I=(N=i.value)==null?void 0:N.$el)!=null&&I.removeEventListener&&i.value.$el.removeEventListener("pointerenter",C)});function m(){b()}function b(){var N;(N=s.value)==null||N.onClose()}function _(){var N;(N=s.value)==null||N.onOpen()}const x=hr();function w(...N){e("command",...N)}function C(){var N,I;(I=(N=i.value)==null?void 0:N.$el)==null||I.focus()}function T(){}function k(){const N=S(l);v.value.includes("hover")&&(N==null||N.focus()),c.value=null}function E(N){c.value=N}function M(N){f.value||(N.preventDefault(),N.stopImmediatePropagation())}function D(){e("visible-change",!0)}function R(N){(N==null?void 0:N.type)==="keydown"&&l.value.focus()}function A(){e("visible-change",!1)}return Nt(lx,{contentRef:l,role:O(()=>t.role),triggerId:y,isUsingKeyboard:f,onItemEnter:T,onItemLeave:k}),Nt("elDropdown",{instance:n,dropdownSize:x,handleClick:m,commandHandler:w,trigger:Bn(t,"trigger"),hideOnClick:Bn(t,"hideOnClick")}),{t:a,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:p,dropdownSize:x,triggerId:y,triggerKeys:d,currentTabId:c,handleCurrentTabIdChange:E,handlerMainButtonClick:N=>{e("click",N)},handleEntryFocus:M,handleClose:b,handleOpen:_,handleBeforeShowTooltip:D,handleShowTooltip:R,handleBeforeHideTooltip:A,onFocusAfterTrapped:N=>{var I,L;N.preventDefault(),(L=(I=l.value)==null?void 0:I.focus)==null||L.call(I,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function iAe(t,e,n,r,a,i){var o;const s=Ge("el-dropdown-collection"),l=Ge("el-roving-focus-group"),u=Ge("el-scrollbar"),c=Ge("el-only-child"),f=Ge("el-tooltip"),d=Ge("el-button"),h=Ge("arrow-down"),p=Ge("el-icon"),v=Ge("el-button-group");return B(),q("div",{class:F([t.ns.b(),t.ns.is("disabled",t.disabled)])},[H(f,{ref:"popperRef",role:t.role,effect:t.effect,"fallback-placements":["bottom","top"],"popper-options":t.popperOptions,"gpu-acceleration":!1,"hide-after":t.trigger==="hover"?t.hideTimeout:0,"manual-mode":!0,placement:t.placement,"popper-class":[t.ns.e("popper"),t.popperClass],"reference-element":(o=t.referenceElementRef)==null?void 0:o.$el,trigger:t.trigger,"trigger-keys":t.triggerKeys,"trigger-target-el":t.contentRef,"show-after":t.trigger==="hover"?t.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":t.triggeringElementRef,"virtual-triggering":t.splitButton,disabled:t.disabled,transition:`${t.ns.namespace.value}-zoom-in-top`,teleported:t.teleported,pure:"",persistent:"",onBeforeShow:t.handleBeforeShowTooltip,onShow:t.handleShowTooltip,onBeforeHide:t.handleBeforeHideTooltip},gl({content:Z(()=>[H(u,{ref:"scrollbar","wrap-style":t.wrapStyle,tag:"div","view-class":t.ns.e("list")},{default:Z(()=>[H(l,{loop:t.loop,"current-tab-id":t.currentTabId,orientation:"horizontal",onCurrentTabIdChange:t.handleCurrentTabIdChange,onEntryFocus:t.handleEntryFocus},{default:Z(()=>[H(s,null,{default:Z(()=>[Te(t.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[t.splitButton?void 0:{name:"default",fn:Z(()=>[H(c,{id:t.triggerId,ref:"triggeringElementRef",role:"button",tabindex:t.tabindex},{default:Z(()=>[Te(t.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),t.splitButton?(B(),de(v,{key:0},{default:Z(()=>[H(d,kt({ref:"referenceElementRef"},t.buttonProps,{size:t.dropdownSize,type:t.type,disabled:t.disabled,tabindex:t.tabindex,onClick:t.handlerMainButtonClick}),{default:Z(()=>[Te(t.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),H(d,kt({id:t.triggerId,ref:"triggeringElementRef"},t.buttonProps,{role:"button",size:t.dropdownSize,type:t.type,class:t.ns.e("caret-button"),disabled:t.disabled,tabindex:t.tabindex,"aria-label":t.t("el.dropdown.toggleDropdown")}),{default:Z(()=>[H(p,{class:F(t.ns.e("icon"))},{default:Z(()=>[H(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):le("v-if",!0)],2)}var oAe=Ne(aAe,[["render",iAe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const sAe=ie({name:"DropdownItemImpl",components:{ElIcon:Ye},props:Fj,emits:["pointermove","pointerleave","click","clickimpl"],setup(t,{emit:e}){const n=De("dropdown"),{role:r}=We(lx,void 0),{collectionItemRef:a}=We(nAe,void 0),{collectionItemRef:i}=We($Le,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=We(Pj,void 0),f=Yw(a,i,o),d=O(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=Gn(p=>{const{code:v}=p;if(v===et.enter||v===et.space)return p.preventDefault(),p.stopImmediatePropagation(),e("clickimpl",p),!0},u);return{ns:n,itemRef:f,dataset:{[Bj]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}}),lAe=["aria-disabled","tabindex","role"];function uAe(t,e,n,r,a,i){const o=Ge("el-icon");return B(),q(Ze,null,[t.divided?(B(),q("li",kt({key:0,role:"separator",class:t.ns.bem("menu","item","divided")},t.$attrs),null,16)):le("v-if",!0),G("li",kt({ref:t.itemRef},{...t.dataset,...t.$attrs},{"aria-disabled":t.disabled,class:[t.ns.be("menu","item"),t.ns.is("disabled",t.disabled)],tabindex:t.tabIndex,role:t.role,onClick:e[0]||(e[0]=s=>t.$emit("clickimpl",s)),onFocus:e[1]||(e[1]=(...s)=>t.handleFocus&&t.handleFocus(...s)),onKeydown:e[2]||(e[2]=it((...s)=>t.handleKeydown&&t.handleKeydown(...s),["self"])),onMousedown:e[3]||(e[3]=(...s)=>t.handleMousedown&&t.handleMousedown(...s)),onPointermove:e[4]||(e[4]=s=>t.$emit("pointermove",s)),onPointerleave:e[5]||(e[5]=s=>t.$emit("pointerleave",s))}),[t.icon?(B(),de(o,{key:0},{default:Z(()=>[(B(),de(Et(t.icon)))]),_:1})):le("v-if",!0),Te(t.$slots,"default")],16,lAe)],64)}var cAe=Ne(sAe,[["render",uAe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const Gj=()=>{const t=We("elDropdown",{}),e=O(()=>t==null?void 0:t.dropdownSize);return{elDropdown:t,_elDropdownSize:e}},fAe=ie({name:"ElDropdownItem",components:{ElDropdownCollectionItem:eAe,ElRovingFocusItem:XLe,ElDropdownItemImpl:cAe},inheritAttrs:!1,props:Fj,emits:["pointermove","pointerleave","click"],setup(t,{emit:e,attrs:n}){const{elDropdown:r}=Gj(),a=wt(),i=z(null),o=O(()=>{var h,p;return(p=(h=S(i))==null?void 0:h.textContent)!=null?p:""}),{onItemEnter:s,onItemLeave:l}=We(lx,void 0),u=Gn(h=>(e("pointermove",h),h.defaultPrevented),wI(h=>{if(t.disabled){l(h);return}const p=h.currentTarget;p===document.activeElement||p.contains(document.activeElement)||(s(h),h.defaultPrevented||p==null||p.focus())})),c=Gn(h=>(e("pointerleave",h),h.defaultPrevented),wI(h=>{l(h)})),f=Gn(h=>{if(!t.disabled)return e("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var p,v,g;if(t.disabled){h.stopImmediatePropagation();return}(p=r==null?void 0:r.hideOnClick)!=null&&p.value&&((v=r.handleClick)==null||v.call(r)),(g=r.commandHandler)==null||g.call(r,t.command,a,h)}),d=O(()=>({...t,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:d}}});function dAe(t,e,n,r,a,i){var o;const s=Ge("el-dropdown-item-impl"),l=Ge("el-roving-focus-item"),u=Ge("el-dropdown-collection-item");return B(),de(u,{disabled:t.disabled,"text-value":(o=t.textValue)!=null?o:t.textContent},{default:Z(()=>[H(l,{focusable:!t.disabled},{default:Z(()=>[H(s,kt(t.propsAndAttrs,{onPointerleave:t.handlePointerLeave,onPointermove:t.handlePointerMove,onClickimpl:t.handleClick}),{default:Z(()=>[Te(t.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Hj=Ne(fAe,[["render",dAe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const hAe=ie({name:"ElDropdownMenu",props:qLe,setup(t){const e=De("dropdown"),{_elDropdownSize:n}=Gj(),r=n.value,{focusTrapRef:a,onKeydown:i}=We(tA,void 0),{contentRef:o,role:s,triggerId:l}=We(lx,void 0),{collectionRef:u,getItems:c}=We(tAe,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:d,tabIndex:h,onBlur:p,onFocus:v,onMousedown:g}=We(hA,void 0),{collectionRef:y}=We(dA,void 0),m=O(()=>[e.b("menu"),e.bm("menu",r==null?void 0:r.value)]),b=Yw(o,u,a,f,y),_=Gn(w=>{var C;(C=t.onKeydown)==null||C.call(t,w)},w=>{const{currentTarget:C,code:T,target:k}=w;if(C.contains(k),et.tab===T&&w.stopImmediatePropagation(),w.preventDefault(),k!==S(o)||!QLe.includes(T))return;const M=c().filter(D=>!D.disabled).map(D=>D.ref);zj.includes(T)&&M.reverse(),vA(M)});return{size:r,rovingFocusGroupRootStyle:d,tabIndex:h,dropdownKls:m,role:s,triggerId:l,dropdownListWrapperRef:b,handleKeydown:w=>{_(w),i(w)},onBlur:p,onFocus:v,onMousedown:g}}}),vAe=["role","aria-labelledby"];function pAe(t,e,n,r,a,i){return B(),q("ul",{ref:t.dropdownListWrapperRef,class:F(t.dropdownKls),style:qe(t.rovingFocusGroupRootStyle),tabindex:-1,role:t.role,"aria-labelledby":t.triggerId,onBlur:e[0]||(e[0]=(...o)=>t.onBlur&&t.onBlur(...o)),onFocus:e[1]||(e[1]=(...o)=>t.onFocus&&t.onFocus(...o)),onKeydown:e[2]||(e[2]=it((...o)=>t.handleKeydown&&t.handleKeydown(...o),["self"])),onMousedown:e[3]||(e[3]=it((...o)=>t.onMousedown&&t.onMousedown(...o),["self"]))},[Te(t.$slots,"default")],46,vAe)}var Uj=Ne(hAe,[["render",pAe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const gAe=Tt(oAe,{DropdownItem:Hj,DropdownMenu:Uj}),yAe=Hn(Hj),mAe=Hn(Uj),bAe={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},SAe=["id"],_Ae=["stop-color"],wAe=["stop-color"],xAe=["id"],CAe=["stop-color"],TAe=["stop-color"],EAe=["id"],MAe={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},kAe={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},DAe={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},RAe=["fill"],LAe=["fill"],AAe={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},OAe=["fill"],NAe=["fill"],$Ae=["fill"],IAe=["fill"],BAe=["fill"],VAe={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},PAe=["fill","xlink:href"],FAe=["fill","mask"],zAe=["fill"],GAe=ie({name:"ImgEmpty"}),HAe=ie({...GAe,setup(t){const e=De("empty"),n=Ki();return(r,a)=>(B(),q("svg",bAe,[G("defs",null,[G("linearGradient",{id:`linearGradient-1-${S(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[G("stop",{"stop-color":`var(${S(e).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_Ae),G("stop",{"stop-color":`var(${S(e).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,wAe)],8,SAe),G("linearGradient",{id:`linearGradient-2-${S(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[G("stop",{"stop-color":`var(${S(e).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,CAe),G("stop",{"stop-color":`var(${S(e).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,TAe)],8,xAe),G("rect",{id:`path-3-${S(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,EAe)]),G("g",MAe,[G("g",kAe,[G("g",DAe,[G("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${S(e).cssVarBlockName("fill-color-3")})`},null,8,RAe),G("polygon",{id:"Rectangle-Copy-14",fill:`var(${S(e).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,LAe),G("g",AAe,[G("polygon",{id:"Rectangle-Copy-10",fill:`var(${S(e).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,OAe),G("polygon",{id:"Rectangle-Copy-11",fill:`var(${S(e).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,NAe),G("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${S(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,$Ae),G("polygon",{id:"Rectangle-Copy-13",fill:`var(${S(e).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,IAe)]),G("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${S(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,BAe),G("g",VAe,[G("use",{id:"Mask",fill:`var(${S(e).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${S(n)}`},null,8,PAe),G("polygon",{id:"Rectangle-Copy",fill:`var(${S(e).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${S(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,FAe)]),G("polygon",{id:"Rectangle-Copy-18",fill:`var(${S(e).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,zAe)])])])]))}});var UAe=Ne(HAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const WAe=$e({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),jAe=["src"],KAe={key:1},YAe=ie({name:"ElEmpty"}),XAe=ie({...YAe,props:WAe,setup(t){const e=t,{t:n}=Kt(),r=De("empty"),a=O(()=>e.description||n("el.table.emptyText")),i=O(()=>({width:Xn(e.imageSize)}));return(o,s)=>(B(),q("div",{class:F(S(r).b())},[G("div",{class:F(S(r).e("image")),style:qe(S(i))},[o.image?(B(),q("img",{key:0,src:o.image,ondragstart:"return false"},null,8,jAe)):Te(o.$slots,"image",{key:1},()=>[H(UAe)])],6),G("div",{class:F(S(r).e("description"))},[o.$slots.description?Te(o.$slots,"description",{key:0}):(B(),q("p",KAe,Ae(S(a)),1))],2),o.$slots.default?(B(),q("div",{key:0,class:F(S(r).e("bottom"))},[Te(o.$slots,"default")],2)):le("v-if",!0)],2))}});var qAe=Ne(XAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const Wj=Tt(qAe),ZAe=$e({urlList:{type:fe(Array),default:()=>Nn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),QAe={close:()=>!0,switch:t=>lt(t),rotate:t=>lt(t)},JAe=["src"],eOe=ie({name:"ElImageViewer"}),tOe=ie({...eOe,props:ZAe,emits:QAe,setup(t,{expose:e,emit:n}){const r=t,a={CONTAIN:{name:"contain",icon:Eu(Jme)},ORIGINAL:{name:"original",icon:Eu(vbe)}},{t:i}=Kt(),o=De("image-viewer"),{nextZIndex:s}=Xv(),l=z(),u=z([]),c=AH(),f=z(!0),d=z(r.initialIndex),h=Sn(a.CONTAIN),p=z({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),v=O(()=>{const{urlList:L}=r;return L.length<=1}),g=O(()=>d.value===0),y=O(()=>d.value===r.urlList.length-1),m=O(()=>r.urlList[d.value]),b=O(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!r.infinite&&g.value)]),_=O(()=>[o.e("btn"),o.e("next"),o.is("disabled",!r.infinite&&y.value)]),x=O(()=>{const{scale:L,deg:$,offsetX:U,offsetY:j,enableTransition:Y}=p.value;let oe=U/L,te=j/L;switch($%360){case 90:case-270:[oe,te]=[te,-oe];break;case 180:case-180:[oe,te]=[-oe,-te];break;case 270:case-90:[oe,te]=[-te,oe];break}const re={transform:`scale(${L}) rotate(${$}deg) translate(${oe}px, ${te}px)`,transition:Y?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(re.maxWidth=re.maxHeight="100%"),re}),w=O(()=>lt(r.zIndex)?r.zIndex:s());function C(){k(),n("close")}function T(){const L=If(U=>{switch(U.code){case et.esc:r.closeOnPressEscape&&C();break;case et.space:A();break;case et.left:P();break;case et.up:I("zoomIn");break;case et.right:N();break;case et.down:I("zoomOut");break}}),$=If(U=>{const j=U.deltaY||U.deltaX;I(j<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});c.run(()=>{Rn(document,"keydown",L),Rn(document,"wheel",$)})}function k(){c.stop()}function E(){f.value=!1}function M(L){f.value=!1,L.target.alt=i("el.image.error")}function D(L){if(f.value||L.button!==0||!l.value)return;p.value.enableTransition=!1;const{offsetX:$,offsetY:U}=p.value,j=L.pageX,Y=L.pageY,oe=If(re=>{p.value={...p.value,offsetX:$+re.pageX-j,offsetY:U+re.pageY-Y}}),te=Rn(document,"mousemove",oe);Rn(document,"mouseup",()=>{te()}),L.preventDefault()}function R(){p.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function A(){if(f.value)return;const L=D0(a),$=Object.values(a),U=h.value.name,Y=($.findIndex(oe=>oe.name===U)+1)%L.length;h.value=a[L[Y]],R()}function V(L){const $=r.urlList.length;d.value=(L+$)%$}function P(){g.value&&!r.infinite||V(d.value-1)}function N(){y.value&&!r.infinite||V(d.value+1)}function I(L,$={}){if(f.value)return;const{zoomRate:U,rotateDeg:j,enableTransition:Y}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...$};switch(L){case"zoomOut":p.value.scale>.2&&(p.value.scale=Number.parseFloat((p.value.scale/U).toFixed(3)));break;case"zoomIn":p.value.scale<7&&(p.value.scale=Number.parseFloat((p.value.scale*U).toFixed(3)));break;case"clockwise":p.value.deg+=j,n("rotate",p.value.deg);break;case"anticlockwise":p.value.deg-=j,n("rotate",p.value.deg);break}p.value.enableTransition=Y}return Ee(m,()=>{Xe(()=>{const L=u.value[0];L!=null&&L.complete||(f.value=!0)})}),Ee(d,L=>{R(),n("switch",L)}),ht(()=>{var L,$;T(),($=(L=l.value)==null?void 0:L.focus)==null||$.call(L)}),e({setActiveItem:V}),(L,$)=>(B(),de(Oy,{to:"body",disabled:!L.teleported},[H(Qn,{name:"viewer-fade",appear:""},{default:Z(()=>[G("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:F(S(o).e("wrapper")),style:qe({zIndex:S(w)})},[G("div",{class:F(S(o).e("mask")),onClick:$[0]||($[0]=it(U=>L.hideOnClickModal&&C(),["self"]))},null,2),le(" CLOSE "),G("span",{class:F([S(o).e("btn"),S(o).e("close")]),onClick:C},[H(S(Ye),null,{default:Z(()=>[H(S(No))]),_:1})],2),le(" ARROW "),S(v)?le("v-if",!0):(B(),q(Ze,{key:0},[G("span",{class:F(S(b)),onClick:P},[H(S(Ye),null,{default:Z(()=>[H(S(zu))]),_:1})],2),G("span",{class:F(S(_)),onClick:N},[H(S(Ye),null,{default:Z(()=>[H(S(ka))]),_:1})],2)],64)),le(" ACTIONS "),G("div",{class:F([S(o).e("btn"),S(o).e("actions")])},[G("div",{class:F(S(o).e("actions__inner"))},[H(S(Ye),{onClick:$[1]||($[1]=U=>I("zoomOut"))},{default:Z(()=>[H(S(gSe))]),_:1}),H(S(Ye),{onClick:$[2]||($[2]=U=>I("zoomIn"))},{default:Z(()=>[H(S(g9))]),_:1}),G("i",{class:F(S(o).e("actions__divider"))},null,2),H(S(Ye),{onClick:A},{default:Z(()=>[(B(),de(Et(S(h).icon)))]),_:1}),G("i",{class:F(S(o).e("actions__divider"))},null,2),H(S(Ye),{onClick:$[3]||($[3]=U=>I("anticlockwise"))},{default:Z(()=>[H(S(nbe))]),_:1}),H(S(Ye),{onClick:$[4]||($[4]=U=>I("clockwise"))},{default:Z(()=>[H(S(lbe))]),_:1})],2)],2),le(" CANVAS "),G("div",{class:F(S(o).e("canvas"))},[(B(!0),q(Ze,null,Pt(L.urlList,(U,j)=>yt((B(),q("img",{ref_for:!0,ref:Y=>u.value[j]=Y,key:U,src:U,style:qe(S(x)),class:F(S(o).e("img")),onLoad:E,onError:M,onMousedown:D},null,46,JAe)),[[qt,j===d.value]])),128))],2),Te(L.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var nOe=Ne(tOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const jj=Tt(nOe),rOe=$e({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:fe([String,Object])},previewSrcList:{type:fe(Array),default:()=>Nn([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),aOe={load:t=>t instanceof Event,error:t=>t instanceof Event,switch:t=>lt(t),close:()=>!0,show:()=>!0},iOe=["src","loading"],oOe={key:0},sOe=ie({name:"ElImage",inheritAttrs:!1}),lOe=ie({...sOe,props:rOe,emits:aOe,setup(t,{emit:e}){const n=t;let r="";const{t:a}=Kt(),i=De("image"),o=fd(),s=IL(),l=z(),u=z(!1),c=z(!0),f=z(!1),d=z(),h=z(),p=Ut&&"loading"in HTMLImageElement.prototype;let v,g;const y=O(()=>[i.e("inner"),_.value&&i.e("preview"),c.value&&i.is("loading")]),m=O(()=>o.style),b=O(()=>{const{fit:I}=n;return Ut&&I?{objectFit:I}:{}}),_=O(()=>{const{previewSrcList:I}=n;return Array.isArray(I)&&I.length>0}),x=O(()=>{const{previewSrcList:I,initialIndex:L}=n;let $=L;return L>I.length-1&&($=0),$}),w=O(()=>n.loading==="eager"?!1:!p&&n.loading==="lazy"||n.lazy),C=()=>{Ut&&(c.value=!0,u.value=!1,l.value=n.src)};function T(I){c.value=!1,u.value=!1,e("load",I)}function k(I){c.value=!1,u.value=!0,e("error",I)}function E(){Ife(d.value,h.value)&&(C(),R())}const M=xW(E,200,!0);async function D(){var I;if(!Ut)return;await Xe();const{scrollContainer:L}=n;Ui(L)?h.value=L:ft(L)&&L!==""?h.value=(I=document.querySelector(L))!=null?I:void 0:d.value&&(h.value=RL(d.value)),h.value&&(v=Rn(h,"scroll",M),setTimeout(()=>E(),100))}function R(){!Ut||!h.value||!M||(v==null||v(),h.value=void 0)}function A(I){if(I.ctrlKey){if(I.deltaY<0)return I.preventDefault(),!1;if(I.deltaY>0)return I.preventDefault(),!1}}function V(){_.value&&(g=Rn("wheel",A,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,e("show"))}function P(){g==null||g(),document.body.style.overflow=r,f.value=!1,e("close")}function N(I){e("switch",I)}return Ee(()=>n.src,()=>{w.value?(c.value=!0,u.value=!1,R(),D()):C()}),ht(()=>{w.value?D():C()}),(I,L)=>(B(),q("div",{ref_key:"container",ref:d,class:F([S(i).b(),I.$attrs.class]),style:qe(S(m))},[u.value?Te(I.$slots,"error",{key:0},()=>[G("div",{class:F(S(i).e("error"))},Ae(S(a)("el.image.error")),3)]):(B(),q(Ze,{key:1},[l.value!==void 0?(B(),q("img",kt({key:0},S(s),{src:l.value,loading:I.loading,style:S(b),class:S(y),onClick:V,onLoad:T,onError:k}),null,16,iOe)):le("v-if",!0),c.value?(B(),q("div",{key:1,class:F(S(i).e("wrapper"))},[Te(I.$slots,"placeholder",{},()=>[G("div",{class:F(S(i).e("placeholder"))},null,2)])],2)):le("v-if",!0)],64)),S(_)?(B(),q(Ze,{key:2},[f.value?(B(),de(S(jj),{key:0,"z-index":I.zIndex,"initial-index":S(x),infinite:I.infinite,"zoom-rate":I.zoomRate,"url-list":I.previewSrcList,"hide-on-click-modal":I.hideOnClickModal,teleported:I.previewTeleported,"close-on-press-escape":I.closeOnPressEscape,onClose:P,onSwitch:N},{default:Z(()=>[I.$slots.viewer?(B(),q("div",oOe,[Te(I.$slots,"viewer")])):le("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):le("v-if",!0)],64)):le("v-if",!0)],6))}});var uOe=Ne(lOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const cOe=Tt(uOe),fOe=$e({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:qr,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:t=>t===null||lt(t)||["min","max"].includes(t),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:t=>t>=0&&t===Number.parseInt(`${t}`,10)},validateEvent:{type:Boolean,default:!0}}),dOe={[kn]:(t,e)=>e!==t,blur:t=>t instanceof FocusEvent,focus:t=>t instanceof FocusEvent,[Da]:t=>lt(t)||ur(t),[Mt]:t=>lt(t)||ur(t)},hOe=["aria-label","onKeydown"],vOe=["aria-label","onKeydown"],pOe=ie({name:"ElInputNumber"}),gOe=ie({...pOe,props:fOe,emits:dOe,setup(t,{expose:e,emit:n}){const r=t,{t:a}=Kt(),i=De("input-number"),o=z(),s=Qt({currentValue:r.modelValue,userInput:null}),{formItem:l}=Va(),u=O(()=>lt(r.modelValue)&&r.modelValue<=r.min),c=O(()=>lt(r.modelValue)&&r.modelValue>=r.max),f=O(()=>{const R=y(r.step);return br(r.precision)?Math.max(y(r.modelValue),R):(R>r.precision,r.precision)}),d=O(()=>r.controls&&r.controlsPosition==="right"),h=hr(),p=ni(),v=O(()=>{if(s.userInput!==null)return s.userInput;let R=s.currentValue;if(ur(R))return"";if(lt(R)){if(Number.isNaN(R))return"";br(r.precision)||(R=R.toFixed(r.precision))}return R}),g=(R,A)=>{if(br(A)&&(A=f.value),A===0)return Math.round(R);let V=String(R);const P=V.indexOf(".");if(P===-1||!V.replace(".","").split("")[P+A])return R;const L=V.length;return V.charAt(L-1)==="5"&&(V=`${V.slice(0,Math.max(0,L-1))}6`),Number.parseFloat(Number(V).toFixed(A))},y=R=>{if(ur(R))return 0;const A=R.toString(),V=A.indexOf(".");let P=0;return V!==-1&&(P=A.length-V-1),P},m=(R,A=1)=>lt(R)?g(R+r.step*A):s.currentValue,b=()=>{if(r.readonly||p.value||c.value)return;const R=Number(v.value)||0,A=m(R);w(A),n(Da,s.currentValue)},_=()=>{if(r.readonly||p.value||u.value)return;const R=Number(v.value)||0,A=m(R,-1);w(A),n(Da,s.currentValue)},x=(R,A)=>{const{max:V,min:P,step:N,precision:I,stepStrictly:L,valueOnClear:$}=r;VV||UV?V:P,A&&n(Mt,U)),U},w=(R,A=!0)=>{var V;const P=s.currentValue,N=x(R);if(!A){n(Mt,N);return}P!==N&&(s.userInput=null,n(Mt,N),n(kn,N,P),r.validateEvent&&((V=l==null?void 0:l.validate)==null||V.call(l,"change").catch(I=>void 0)),s.currentValue=N)},C=R=>{s.userInput=R;const A=R===""?null:Number(R);n(Da,A),w(A,!1)},T=R=>{const A=R!==""?Number(R):"";(lt(A)&&!Number.isNaN(A)||R==="")&&w(A),s.userInput=null},k=()=>{var R,A;(A=(R=o.value)==null?void 0:R.focus)==null||A.call(R)},E=()=>{var R,A;(A=(R=o.value)==null?void 0:R.blur)==null||A.call(R)},M=R=>{n("focus",R)},D=R=>{var A;n("blur",R),r.validateEvent&&((A=l==null?void 0:l.validate)==null||A.call(l,"blur").catch(V=>void 0))};return Ee(()=>r.modelValue,R=>{const A=x(s.userInput),V=x(R,!0);!lt(A)&&(!A||A!==V)&&(s.currentValue=V,s.userInput=null)},{immediate:!0}),ht(()=>{var R;const{min:A,max:V,modelValue:P}=r,N=(R=o.value)==null?void 0:R.input;if(N.setAttribute("role","spinbutton"),Number.isFinite(V)?N.setAttribute("aria-valuemax",String(V)):N.removeAttribute("aria-valuemax"),Number.isFinite(A)?N.setAttribute("aria-valuemin",String(A)):N.removeAttribute("aria-valuemin"),N.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),N.setAttribute("aria-disabled",String(p.value)),!lt(P)&&P!=null){let I=Number(P);Number.isNaN(I)&&(I=null),n(Mt,I)}}),As(()=>{var R,A;const V=(R=o.value)==null?void 0:R.input;V==null||V.setAttribute("aria-valuenow",`${(A=s.currentValue)!=null?A:""}`)}),e({focus:k,blur:E}),(R,A)=>(B(),q("div",{class:F([S(i).b(),S(i).m(S(h)),S(i).is("disabled",S(p)),S(i).is("without-controls",!R.controls),S(i).is("controls-right",S(d))]),onDragstart:A[1]||(A[1]=it(()=>{},["prevent"]))},[R.controls?yt((B(),q("span",{key:0,role:"button","aria-label":S(a)("el.inputNumber.decrease"),class:F([S(i).e("decrease"),S(i).is("disabled",S(u))]),onKeydown:jt(_,["enter"])},[H(S(Ye),null,{default:Z(()=>[S(d)?(B(),de(S(ac),{key:0})):(B(),de(S(w1e),{key:1}))]),_:1})],42,hOe)),[[S(GS),_]]):le("v-if",!0),R.controls?yt((B(),q("span",{key:1,role:"button","aria-label":S(a)("el.inputNumber.increase"),class:F([S(i).e("increase"),S(i).is("disabled",S(c))]),onKeydown:jt(b,["enter"])},[H(S(Ye),null,{default:Z(()=>[S(d)?(B(),de(S(jw),{key:0})):(B(),de(S(v9),{key:1}))]),_:1})],42,vOe)),[[S(GS),b]]):le("v-if",!0),H(S(ca),{id:R.id,ref_key:"input",ref:o,type:"number",step:R.step,"model-value":S(v),placeholder:R.placeholder,readonly:R.readonly,disabled:S(p),size:S(h),max:R.max,min:R.min,name:R.name,label:R.label,"validate-event":!1,onWheel:A[0]||(A[0]=it(()=>{},["prevent"])),onKeydown:[jt(it(b,["prevent"]),["up"]),jt(it(_,["prevent"]),["down"])],onBlur:D,onFocus:M,onInput:C,onChange:T},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var yOe=Ne(gOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const Kj=Tt(yOe),mOe=$e({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:_n}}),bOe={click:t=>t instanceof MouseEvent},SOe=["href"],_Oe=ie({name:"ElLink"}),wOe=ie({..._Oe,props:mOe,emits:bOe,setup(t,{emit:e}){const n=t,r=De("link"),a=O(()=>[r.b(),r.m(n.type),r.is("disabled",n.disabled),r.is("underline",n.underline&&!n.disabled)]);function i(o){n.disabled||e("click",o)}return(o,s)=>(B(),q("a",{class:F(S(a)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?(B(),de(S(Ye),{key:0},{default:Z(()=>[(B(),de(Et(o.icon)))]),_:1})):le("v-if",!0),o.$slots.default?(B(),q("span",{key:1,class:F(S(r).e("inner"))},[Te(o.$slots,"default")],2)):le("v-if",!0),o.$slots.icon?Te(o.$slots,"icon",{key:2}):le("v-if",!0)],10,SOe))}});var xOe=Ne(wOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const COe=Tt(xOe);let TOe=class{constructor(e,n){this.parent=e,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{let a=!1;switch(r.code){case et.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case et.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case et.tab:{Eb(e,"mouseleave");break}case et.enter:case et.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}},EOe=class{constructor(e,n){this.domNode=e,this.submenu=null,this.submenu=null,this.init(n)}init(e){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${e}-menu`);n&&(this.submenu=new TOe(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{let n=!1;switch(e.code){case et.down:{Eb(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case et.up:{Eb(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case et.tab:{Eb(e.currentTarget,"mouseleave");break}case et.enter:case et.space:{n=!0,e.currentTarget.click();break}}n&&e.preventDefault()})}},MOe=class{constructor(e,n){this.domNode=e,this.init(n)}init(e){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new EOe(r,e)})}};const kOe=ie({name:"ElMenuCollapseTransition",setup(){const t=De("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){fs(n,`${t.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){qa(n,`${t.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Do(n,t.m("collapse"))?(qa(n,t.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),fs(n,t.m("collapse"))):(fs(n,t.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),qa(n,t.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){fs(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function DOe(t,e,n,r,a,i){return B(),de(Qn,kt({mode:"out-in"},t.listeners),{default:Z(()=>[Te(t.$slots,"default")]),_:3},16)}var ROe=Ne(kOe,[["render",DOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function Yj(t,e){const n=O(()=>{let a=t.parent;const i=[e.value];for(;a.type.name!=="ElMenu";)a.props.index&&i.unshift(a.props.index),a=a.parent;return i});return{parentMenu:O(()=>{let a=t.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function LOe(t){return O(()=>{const n=t.backgroundColor;return n?new T7(n).shade(20).toString():""})}const Xj=(t,e)=>{const n=De("menu");return O(()=>n.cssVarBlock({"text-color":t.textColor||"","hover-text-color":t.textColor||"","bg-color":t.backgroundColor||"","hover-bg-color":LOe(t).value||"","active-color":t.activeTextColor||"",level:`${e}`}))},AOe=$e({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:_n},expandOpenIcon:{type:_n},collapseCloseIcon:{type:_n},collapseOpenIcon:{type:_n}}),Km="ElSubMenu";var pA=ie({name:Km,props:AOe,setup(t,{slots:e,expose:n}){Ts({from:"popper-append-to-body",replacement:"teleported",scope:Km,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},O(()=>t.popperAppendToBody!==void 0));const r=wt(),{indexPath:a,parentMenu:i}=Yj(r,O(()=>t.index)),o=De("menu"),s=De("sub-menu"),l=We("rootMenu");l||dr(Km,"can not inject root menu");const u=We(`subMenu:${i.value.uid}`);u||dr(Km,"can not inject sub menu");const c=z({}),f=z({});let d;const h=z(!1),p=z(),v=z(null),g=O(()=>M.value==="horizontal"&&m.value?"bottom-start":"right-start"),y=O(()=>M.value==="horizontal"&&m.value||M.value==="vertical"&&!l.props.collapse?t.expandCloseIcon&&t.expandOpenIcon?w.value?t.expandOpenIcon:t.expandCloseIcon:ac:t.collapseCloseIcon&&t.collapseOpenIcon?w.value?t.collapseOpenIcon:t.collapseCloseIcon:ka),m=O(()=>u.level===0),b=O(()=>{var $;const U=($=t.teleported)!=null?$:t.popperAppendToBody;return U===void 0?m.value:U}),_=O(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),x=O(()=>M.value==="horizontal"&&m.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),w=O(()=>l.openedMenus.includes(t.index)),C=O(()=>{let $=!1;return Object.values(c.value).forEach(U=>{U.active&&($=!0)}),Object.values(f.value).forEach(U=>{U.active&&($=!0)}),$}),T=O(()=>l.props.backgroundColor||""),k=O(()=>l.props.activeTextColor||""),E=O(()=>l.props.textColor||""),M=O(()=>l.props.mode),D=Qt({index:t.index,indexPath:a,active:C}),R=Xj(l.props,u.level+1),A=O(()=>M.value!=="horizontal"?{color:E.value}:{borderBottomColor:C.value?l.props.activeTextColor?k.value:"":"transparent",color:C.value?k.value:E.value}),V=()=>{var $,U,j;return(j=(U=($=v.value)==null?void 0:$.popperRef)==null?void 0:U.popperInstanceRef)==null?void 0:j.destroy()},P=$=>{$||V()},N=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||t.disabled||l.handleSubMenuClick({index:t.index,indexPath:a.value,active:C.value})},I=($,U=t.showTimeout)=>{var j;$.type!=="focus"&&(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||t.disabled||(u.mouseInChild.value=!0,d==null||d(),{stop:d}=Zf(()=>{l.openMenu(t.index,a.value)},U),b.value&&((j=i.value.vnode.el)==null||j.dispatchEvent(new MouseEvent("mouseenter")))))},L=($=!1)=>{var U,j;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=Zf(()=>!h.value&&l.closeMenu(t.index,a.value),t.hideTimeout),b.value&&$&&((U=r.parent)==null?void 0:U.type.name)==="ElSubMenu"&&((j=u.handleMouseleave)==null||j.call(u,!0)))};Ee(()=>l.props.collapse,$=>P(!!$));{const $=j=>{f.value[j.index]=j},U=j=>{delete f.value[j.index]};Nt(`subMenu:${r.uid}`,{addSubMenu:$,removeSubMenu:U,handleMouseleave:L,mouseInChild:h,level:u.level+1})}return n({opened:w}),ht(()=>{l.addSubMenu(D),u.addSubMenu(D)}),Tn(()=>{u.removeSubMenu(D),l.removeSubMenu(D)}),()=>{var $;const U=[($=e.title)==null?void 0:$.call(e),tt(Ye,{class:s.e("icon-arrow"),style:{transform:w.value?t.expandCloseIcon&&t.expandOpenIcon||t.collapseCloseIcon&&t.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>ft(y.value)?tt(r.appContext.components[y.value]):tt(y.value)})],j=l.isMenuPopup?tt(Na,{ref:v,visible:w.value,effect:"light",pure:!0,offset:t.popperOffset,showArrow:!1,persistent:!0,popperClass:t.popperClass,placement:g.value,teleported:b.value,fallbackPlacements:x.value,transition:_.value,gpuAcceleration:!1},{content:()=>{var Y;return tt("div",{class:[o.m(M.value),o.m("popup-container"),t.popperClass],onMouseenter:oe=>I(oe,100),onMouseleave:()=>L(!0),onFocus:oe=>I(oe,100)},[tt("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:R.value},[(Y=e.default)==null?void 0:Y.call(e)])])},default:()=>tt("div",{class:s.e("title"),style:[A.value,{backgroundColor:T.value}],onClick:N},U)}):tt(Ze,{},[tt("div",{class:s.e("title"),style:[A.value,{backgroundColor:T.value}],ref:p,onClick:N},U),tt(sx,{},{default:()=>{var Y;return yt(tt("ul",{role:"menu",class:[o.b(),o.m("inline")],style:R.value},[(Y=e.default)==null?void 0:Y.call(e)]),[[qt,w.value]])}})]);return tt("li",{class:[s.b(),s.is("active",C.value),s.is("opened",w.value),s.is("disabled",t.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:w.value,onMouseenter:I,onMouseleave:()=>L(!0),onFocus:I},[j])}}});const OOe=$e({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:fe(Array),default:()=>Nn([])},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"}}),X2=t=>Array.isArray(t)&&t.every(e=>ft(e)),NOe={close:(t,e)=>ft(t)&&X2(e),open:(t,e)=>ft(t)&&X2(e),select:(t,e,n,r)=>ft(t)&&X2(e)&&Lt(n)&&(r===void 0||r instanceof Promise)};var $Oe=ie({name:"ElMenu",props:OOe,emits:NOe,setup(t,{emit:e,slots:n,expose:r}){const a=wt(),i=a.appContext.config.globalProperties.$router,o=z(),s=De("menu"),l=De("sub-menu"),u=z(-1),c=z(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),f=z(t.defaultActive),d=z({}),h=z({}),p=O(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),v=()=>{const M=f.value&&d.value[f.value];if(!M||t.mode==="horizontal"||t.collapse)return;M.indexPath.forEach(R=>{const A=h.value[R];A&&g(R,A.indexPath)})},g=(M,D)=>{c.value.includes(M)||(t.uniqueOpened&&(c.value=c.value.filter(R=>D.includes(R))),c.value.push(M),e("open",M,D))},y=M=>{const D=c.value.indexOf(M);D!==-1&&c.value.splice(D,1)},m=(M,D)=>{y(M),e("close",M,D)},b=({index:M,indexPath:D})=>{c.value.includes(M)?m(M,D):g(M,D)},_=M=>{(t.mode==="horizontal"||t.collapse)&&(c.value=[]);const{index:D,indexPath:R}=M;if(!(ur(D)||ur(R)))if(t.router&&i){const A=M.route||D,V=i.push(A).then(P=>(P||(f.value=D),P));e("select",D,R,{index:D,indexPath:R,route:A},V)}else f.value=D,e("select",D,R,{index:D,indexPath:R})},x=M=>{const D=d.value,R=D[M]||f.value&&D[f.value]||D[t.defaultActive];R?f.value=R.index:f.value=M},w=()=>{var M,D;if(!o.value)return-1;const R=Array.from((D=(M=o.value)==null?void 0:M.childNodes)!=null?D:[]).filter($=>$.nodeName!=="#comment"&&($.nodeName!=="#text"||$.nodeValue)),A=64,V=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),P=Number.parseInt(getComputedStyle(o.value).paddingRight,10),N=o.value.clientWidth-V-P;let I=0,L=0;return R.forEach(($,U)=>{I+=$.offsetWidth||0,I<=N-A&&(L=U+1)}),L===R.length?-1:L},C=(M,D=33.34)=>{let R;return()=>{R&&clearTimeout(R),R=setTimeout(()=>{M()},D)}};let T=!0;const k=()=>{const M=()=>{u.value=-1,Xe(()=>{u.value=w()})};T?M():C(M)(),T=!1};Ee(()=>t.defaultActive,M=>{d.value[M]||(f.value=""),x(M)}),Ee(()=>t.collapse,M=>{M&&(c.value=[])}),Ee(d.value,v);let E;di(()=>{t.mode==="horizontal"&&t.ellipsis?E=da(o,k).stop:E==null||E()});{const M=V=>{h.value[V.index]=V},D=V=>{delete h.value[V.index]};Nt("rootMenu",Qt({props:t,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:p,addMenuItem:V=>{d.value[V.index]=V},removeMenuItem:V=>{delete d.value[V.index]},addSubMenu:M,removeSubMenu:D,openMenu:g,closeMenu:m,handleMenuItemClick:_,handleSubMenuClick:b})),Nt(`subMenu:${a.uid}`,{addSubMenu:M,removeSubMenu:D,mouseInChild:z(!1),level:0})}return ht(()=>{t.mode==="horizontal"&&new MOe(a.vnode.el,s.namespace.value)}),r({open:D=>{const{indexPath:R}=h.value[D];R.forEach(A=>g(A,R))},close:y,handleResize:k}),()=>{var M,D;let R=(D=(M=n.default)==null?void 0:M.call(n))!=null?D:[];const A=[];if(t.mode==="horizontal"&&o.value){const N=Vh(R),I=u.value===-1?N:N.slice(0,u.value),L=u.value===-1?[]:N.slice(u.value);L!=null&&L.length&&t.ellipsis&&(R=I,A.push(tt(pA,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>tt(Ye,{class:l.e("icon-more")},{default:()=>tt(O1e)}),default:()=>L})))}const V=Xj(t,0),P=tt("ul",{key:String(t.collapse),role:"menubar",ref:o,style:V.value,class:{[s.b()]:!0,[s.m(t.mode)]:!0,[s.m("collapse")]:t.collapse}},[...R,...A]);return t.collapseTransition&&t.mode==="vertical"?tt(ROe,()=>P):P}}});const IOe=$e({index:{type:fe([String,null]),default:null},route:{type:fe([String,Object])},disabled:Boolean}),BOe={click:t=>ft(t.index)&&Array.isArray(t.indexPath)},q2="ElMenuItem",VOe=ie({name:q2,components:{ElTooltip:Na},props:IOe,emits:BOe,setup(t,{emit:e}){const n=wt(),r=We("rootMenu"),a=De("menu"),i=De("menu-item");r||dr(q2,"can not inject root menu");const{parentMenu:o,indexPath:s}=Yj(n,Bn(t,"index")),l=We(`subMenu:${o.value.uid}`);l||dr(q2,"can not inject sub menu");const u=O(()=>t.index===r.activeIndex),c=Qt({index:t.index,indexPath:s,active:u}),f=()=>{t.disabled||(r.handleMenuItemClick({index:t.index,indexPath:s.value,route:t.route}),e("click",c))};return ht(()=>{l.addSubMenu(c),r.addMenuItem(c)}),Tn(()=>{l.removeSubMenu(c),r.removeMenuItem(c)}),{parentMenu:o,rootMenu:r,active:u,nsMenu:a,nsMenuItem:i,handleClick:f}}});function POe(t,e,n,r,a,i){const o=Ge("el-tooltip");return B(),q("li",{class:F([t.nsMenuItem.b(),t.nsMenuItem.is("active",t.active),t.nsMenuItem.is("disabled",t.disabled)]),role:"menuitem",tabindex:"-1",onClick:e[0]||(e[0]=(...s)=>t.handleClick&&t.handleClick(...s))},[t.parentMenu.type.name==="ElMenu"&&t.rootMenu.props.collapse&&t.$slots.title?(B(),de(o,{key:0,effect:t.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:Z(()=>[Te(t.$slots,"title")]),default:Z(()=>[G("div",{class:F(t.nsMenu.be("tooltip","trigger"))},[Te(t.$slots,"default")],2)]),_:3},8,["effect"])):(B(),q(Ze,{key:1},[Te(t.$slots,"default"),Te(t.$slots,"title")],64))],2)}var qj=Ne(VOe,[["render",POe],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const FOe={title:String},zOe="ElMenuItemGroup",GOe=ie({name:zOe,props:FOe,setup(){return{ns:De("menu-item-group")}}});function HOe(t,e,n,r,a,i){return B(),q("li",{class:F(t.ns.b())},[G("div",{class:F(t.ns.e("title"))},[t.$slots.title?Te(t.$slots,"title",{key:1}):(B(),q(Ze,{key:0},[Qe(Ae(t.title),1)],64))],2),G("ul",null,[Te(t.$slots,"default")])],2)}var Zj=Ne(GOe,[["render",HOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const UOe=Tt($Oe,{MenuItem:qj,MenuItemGroup:Zj,SubMenu:pA}),WOe=Hn(qj),jOe=Hn(Zj),KOe=Hn(pA),YOe=$e({icon:{type:_n,default:()=>wye},title:String,content:{type:String,default:""}}),XOe={back:()=>!0},qOe=["aria-label"],ZOe=ie({name:"ElPageHeader"}),QOe=ie({...ZOe,props:YOe,emits:XOe,setup(t,{emit:e}){const n=ea(),{t:r}=Kt(),a=De("page-header"),i=O(()=>[a.b(),{[a.m("has-breadcrumb")]:!!n.breadcrumb,[a.m("has-extra")]:!!n.extra,[a.is("contentful")]:!!n.default}]);function o(){e("back")}return(s,l)=>(B(),q("div",{class:F(S(i))},[s.$slots.breadcrumb?(B(),q("div",{key:0,class:F(S(a).e("breadcrumb"))},[Te(s.$slots,"breadcrumb")],2)):le("v-if",!0),G("div",{class:F(S(a).e("header"))},[G("div",{class:F(S(a).e("left"))},[G("div",{class:F(S(a).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(B(),q("div",{key:0,"aria-label":s.title||S(r)("el.pageHeader.title"),class:F(S(a).e("icon"))},[Te(s.$slots,"icon",{},()=>[s.icon?(B(),de(S(Ye),{key:0},{default:Z(()=>[(B(),de(Et(s.icon)))]),_:1})):le("v-if",!0)])],10,qOe)):le("v-if",!0),G("div",{class:F(S(a).e("title"))},[Te(s.$slots,"title",{},()=>[Qe(Ae(s.title||S(r)("el.pageHeader.title")),1)])],2)],2),H(S(Ij),{direction:"vertical"}),G("div",{class:F(S(a).e("content"))},[Te(s.$slots,"content",{},()=>[Qe(Ae(s.content),1)])],2)],2),s.$slots.extra?(B(),q("div",{key:0,class:F(S(a).e("extra"))},[Te(s.$slots,"extra")],2)):le("v-if",!0)],2),s.$slots.default?(B(),q("div",{key:1,class:F(S(a).e("main"))},[Te(s.$slots,"default")],2)):le("v-if",!0)],2))}});var JOe=Ne(QOe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const eNe=Tt(JOe),Qj=Symbol("elPaginationKey"),tNe=$e({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:_n}}),nNe={click:t=>t instanceof MouseEvent},rNe=["disabled","aria-label","aria-disabled"],aNe={key:0},iNe=ie({name:"ElPaginationPrev"}),oNe=ie({...iNe,props:tNe,emits:nNe,setup(t){const e=t,{t:n}=Kt(),r=O(()=>e.disabled||e.currentPage<=1);return(a,i)=>(B(),q("button",{type:"button",class:"btn-prev",disabled:S(r),"aria-label":a.prevText||S(n)("el.pagination.prev"),"aria-disabled":S(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.prevText?(B(),q("span",aNe,Ae(a.prevText),1)):(B(),de(S(Ye),{key:1},{default:Z(()=>[(B(),de(Et(a.prevIcon)))]),_:1}))],8,rNe))}});var sNe=Ne(oNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const lNe=$e({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:_n}}),uNe=["disabled","aria-label","aria-disabled"],cNe={key:0},fNe=ie({name:"ElPaginationNext"}),dNe=ie({...fNe,props:lNe,emits:["click"],setup(t){const e=t,{t:n}=Kt(),r=O(()=>e.disabled||e.currentPage===e.pageCount||e.pageCount===0);return(a,i)=>(B(),q("button",{type:"button",class:"btn-next",disabled:S(r),"aria-label":a.nextText||S(n)("el.pagination.next"),"aria-disabled":S(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.nextText?(B(),q("span",cNe,Ae(a.nextText),1)):(B(),de(S(Ye),{key:1},{default:Z(()=>[(B(),de(Et(a.nextIcon)))]),_:1}))],8,uNe))}});var hNe=Ne(dNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const Jj=Symbol("ElSelectGroup"),Ky=Symbol("ElSelect");function vNe(t,e){const n=We(Ky),r=We(Jj,{disabled:!1}),a=O(()=>Object.prototype.toString.call(t.value).toLowerCase()==="[object object]"),i=O(()=>n.props.multiple?f(n.props.modelValue,t.value):d(t.value,n.props.modelValue)),o=O(()=>{if(n.props.multiple){const v=n.props.modelValue||[];return!i.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=O(()=>t.label||(a.value?"":t.value)),l=O(()=>t.value||t.label||""),u=O(()=>t.disabled||e.groupDisabled||o.value),c=wt(),f=(v=[],g)=>{if(a.value){const y=n.props.valueKey;return v&&v.some(m=>on(On(m,y))===On(g,y))}else return v&&v.includes(g)},d=(v,g)=>{if(a.value){const{valueKey:y}=n.props;return On(v,y)===On(g,y)}else return v===g},h=()=>{!t.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};Ee(()=>s.value,()=>{!t.created&&!n.props.remote&&n.setSelected()}),Ee(()=>t.value,(v,g)=>{const{remote:y,valueKey:m}=n.props;if(Object.is(v,g)||(n.onOptionDestroy(g,c.proxy),n.onOptionCreate(c.proxy)),!t.created&&!y){if(m&&typeof v=="object"&&typeof g=="object"&&v[m]===g[m])return;n.setSelected()}}),Ee(()=>r.disabled,()=>{e.groupDisabled=r.disabled},{immediate:!0});const{queryChange:p}=on(n);return Ee(p,v=>{const{query:g}=S(v),y=new RegExp(l9(g),"i");e.visible=y.test(s.value)||t.created,e.visible||n.filteredOptionsCount--},{immediate:!0}),{select:n,currentLabel:s,currentValue:l,itemSelected:i,isDisabled:u,hoverItem:h}}const pNe=ie({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(t){const e=De("select"),n=O(()=>[e.be("dropdown","item"),e.is("disabled",S(o)),{selected:S(i),hover:S(c)}]),r=Qt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l}=vNe(t,r),{visible:u,hover:c}=kr(r),f=wt().proxy;s.onOptionCreate(f),Tn(()=>{const h=f.value,{selected:p}=s,g=(s.props.multiple?p:[p]).some(y=>y.value===f.value);Xe(()=>{s.cachedOptions.get(h)===f&&!g&&s.cachedOptions.delete(h)}),s.onOptionDestroy(h,f)});function d(){t.disabled!==!0&&r.groupDisabled!==!0&&s.handleOptionSelect(f)}return{ns:e,containerKls:n,currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l,visible:u,hover:c,selectOptionClick:d,states:r}}});function gNe(t,e,n,r,a,i){return yt((B(),q("li",{class:F(t.containerKls),onMouseenter:e[0]||(e[0]=(...o)=>t.hoverItem&&t.hoverItem(...o)),onClick:e[1]||(e[1]=it((...o)=>t.selectOptionClick&&t.selectOptionClick(...o),["stop"]))},[Te(t.$slots,"default",{},()=>[G("span",null,Ae(t.currentLabel),1)])],34)),[[qt,t.visible]])}var gA=Ne(pNe,[["render",gNe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const yNe=ie({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=We(Ky),e=De("select"),n=O(()=>t.props.popperClass),r=O(()=>t.props.multiple),a=O(()=>t.props.fitInputWidth),i=z("");function o(){var s;i.value=`${(s=t.selectWrapper)==null?void 0:s.offsetWidth}px`}return ht(()=>{o(),da(t.selectWrapper,o)}),{ns:e,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function mNe(t,e,n,r,a,i){return B(),q("div",{class:F([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:qe({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[Te(t.$slots,"default")],6)}var bNe=Ne(yNe,[["render",mNe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function SNe(t){const{t:e}=Kt();return Qt({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:t.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:e("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const _Ne=(t,e,n)=>{const{t:r}=Kt(),a=De("select");Ts({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},O(()=>t.suffixTransition===!1));const i=z(null),o=z(null),s=z(null),l=z(null),u=z(null),c=z(null),f=z(null),d=z(null),h=z(-1),p=Sn({query:""}),v=Sn(""),g=z([]);let y=0;const{form:m,formItem:b}=Va(),_=O(()=>!t.filterable||t.multiple||!e.visible),x=O(()=>t.disabled||(m==null?void 0:m.disabled)),w=O(()=>{const Ce=t.multiple?Array.isArray(t.modelValue)&&t.modelValue.length>0:t.modelValue!==void 0&&t.modelValue!==null&&t.modelValue!=="";return t.clearable&&!x.value&&e.inputHovering&&Ce}),C=O(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),T=O(()=>a.is("reverse",C.value&&e.visible&&t.suffixTransition)),k=O(()=>(m==null?void 0:m.statusIcon)&&(b==null?void 0:b.validateState)&&$L[b==null?void 0:b.validateState]),E=O(()=>t.remote?300:0),M=O(()=>t.loading?t.loadingText||r("el.select.loading"):t.remote&&e.query===""&&e.options.size===0?!1:t.filterable&&e.query&&e.options.size>0&&e.filteredOptionsCount===0?t.noMatchText||r("el.select.noMatch"):e.options.size===0?t.noDataText||r("el.select.noData"):null),D=O(()=>{const Ce=Array.from(e.options.values()),Pe=[];return g.value.forEach(pe=>{const ze=Ce.findIndex(Ot=>Ot.currentLabel===pe);ze>-1&&Pe.push(Ce[ze])}),Pe.length>=Ce.length?Pe:Ce}),R=O(()=>Array.from(e.cachedOptions.values())),A=O(()=>{const Ce=D.value.filter(Pe=>!Pe.created).some(Pe=>Pe.currentLabel===e.query);return t.filterable&&t.allowCreate&&e.query!==""&&!Ce}),V=hr(),P=O(()=>["small"].includes(V.value)?"small":"default"),N=O({get(){return e.visible&&M.value!==!1},set(Ce){e.visible=Ce}});Ee([()=>x.value,()=>V.value,()=>m==null?void 0:m.size],()=>{Xe(()=>{I()})}),Ee(()=>t.placeholder,Ce=>{e.cachedPlaceHolder=e.currentPlaceholder=Ce,t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(e.currentPlaceholder="")}),Ee(()=>t.modelValue,(Ce,Pe)=>{t.multiple&&(I(),Ce&&Ce.length>0||o.value&&e.query!==""?e.currentPlaceholder="":e.currentPlaceholder=e.cachedPlaceHolder,t.filterable&&!t.reserveKeyword&&(e.query="",L(e.query))),j(),t.filterable&&!t.multiple&&(e.inputLength=20),!Xa(Ce,Pe)&&t.validateEvent&&(b==null||b.validate("change").catch(pe=>void 0))},{flush:"post",deep:!0}),Ee(()=>e.visible,Ce=>{var Pe,pe,ze,Ot,Xt;Ce?((pe=(Pe=l.value)==null?void 0:Pe.updatePopper)==null||pe.call(Pe),t.filterable&&(e.filteredOptionsCount=e.optionsCount,e.query=t.remote?"":e.selectedLabel,(Ot=(ze=s.value)==null?void 0:ze.focus)==null||Ot.call(ze),t.multiple?(Xt=o.value)==null||Xt.focus():e.selectedLabel&&(e.currentPlaceholder=`${e.selectedLabel}`,e.selectedLabel=""),L(e.query),!t.multiple&&!t.remote&&(p.value.query="",_p(p),_p(v)))):(t.filterable&&(ut(t.filterMethod)&&t.filterMethod(""),ut(t.remoteMethod)&&t.remoteMethod("")),e.query="",e.previousQuery=null,e.selectedLabel="",e.inputLength=20,e.menuVisibleOnFocus=!1,oe(),Xe(()=>{o.value&&o.value.value===""&&e.selected.length===0&&(e.currentPlaceholder=e.cachedPlaceHolder)}),t.multiple||(e.selected&&(t.filterable&&t.allowCreate&&e.createdSelected&&e.createdLabel?e.selectedLabel=e.createdLabel:e.selectedLabel=e.selected.currentLabel,t.filterable&&(e.query=e.selectedLabel)),t.filterable&&(e.currentPlaceholder=e.cachedPlaceHolder))),n.emit("visible-change",Ce)}),Ee(()=>e.options.entries(),()=>{var Ce,Pe,pe;if(!Ut)return;(Pe=(Ce=l.value)==null?void 0:Ce.updatePopper)==null||Pe.call(Ce),t.multiple&&I();const ze=((pe=f.value)==null?void 0:pe.querySelectorAll("input"))||[];(!t.filterable&&!t.defaultFirstOption&&!br(t.modelValue)||!Array.from(ze).includes(document.activeElement))&&j(),t.defaultFirstOption&&(t.filterable||t.remote)&&e.filteredOptionsCount&&U()},{flush:"post"}),Ee(()=>e.hoverIndex,Ce=>{lt(Ce)&&Ce>-1?h.value=D.value[Ce]||{}:h.value={},D.value.forEach(Pe=>{Pe.hover=h.value===Pe})});const I=()=>{Xe(()=>{var Ce,Pe;if(!i.value)return;const pe=i.value.$el.querySelector("input");y=y||(pe.clientHeight>0?pe.clientHeight+2:0);const ze=c.value,Ot=_Se(V.value||(m==null?void 0:m.size)),Xt=V.value||Ot===y||y<=0?Ot:y;!(pe.offsetParent===null)&&(pe.style.height=`${(e.selected.length===0?Xt:Math.max(ze?ze.clientHeight+(ze.clientHeight>Xt?6:0):0,Xt))-2}px`),e.visible&&M.value!==!1&&((Pe=(Ce=l.value)==null?void 0:Ce.updatePopper)==null||Pe.call(Ce))})},L=async Ce=>{if(!(e.previousQuery===Ce||e.isOnComposition)){if(e.previousQuery===null&&(ut(t.filterMethod)||ut(t.remoteMethod))){e.previousQuery=Ce;return}e.previousQuery=Ce,Xe(()=>{var Pe,pe;e.visible&&((pe=(Pe=l.value)==null?void 0:Pe.updatePopper)==null||pe.call(Pe))}),e.hoverIndex=-1,t.multiple&&t.filterable&&Xe(()=>{if(!x.value){const Pe=o.value.value.length*15+20;e.inputLength=t.collapseTags?Math.min(50,Pe):Pe,$()}I()}),t.remote&&ut(t.remoteMethod)?(e.hoverIndex=-1,t.remoteMethod(Ce)):ut(t.filterMethod)?(t.filterMethod(Ce),_p(v)):(e.filteredOptionsCount=e.optionsCount,p.value.query=Ce,_p(p),_p(v)),t.defaultFirstOption&&(t.filterable||t.remote)&&e.filteredOptionsCount&&(await Xe(),U())}},$=()=>{e.currentPlaceholder!==""&&(e.currentPlaceholder=o.value.value?"":e.cachedPlaceHolder)},U=()=>{const Ce=D.value.filter(ze=>ze.visible&&!ze.disabled&&!ze.states.groupDisabled),Pe=Ce.find(ze=>ze.created),pe=Ce[0];e.hoverIndex=we(D.value,Pe||pe)},j=()=>{var Ce;if(t.multiple)e.selectedLabel="";else{const pe=Y(t.modelValue);(Ce=pe.props)!=null&&Ce.created?(e.createdLabel=pe.props.value,e.createdSelected=!0):e.createdSelected=!1,e.selectedLabel=pe.currentLabel,e.selected=pe,t.filterable&&(e.query=e.selectedLabel);return}const Pe=[];Array.isArray(t.modelValue)&&t.modelValue.forEach(pe=>{Pe.push(Y(pe))}),e.selected=Pe,Xe(()=>{I()})},Y=Ce=>{let Pe;const pe=mb(Ce).toLowerCase()==="object",ze=mb(Ce).toLowerCase()==="null",Ot=mb(Ce).toLowerCase()==="undefined";for(let yr=e.cachedOptions.size-1;yr>=0;yr--){const ta=R.value[yr];if(pe?On(ta.value,t.valueKey)===On(Ce,t.valueKey):ta.value===Ce){Pe={value:Ce,currentLabel:ta.currentLabel,isDisabled:ta.isDisabled};break}}if(Pe)return Pe;const Xt=pe?Ce.label:!ze&&!Ot?Ce:"",gr={value:Ce,currentLabel:Xt};return t.multiple&&(gr.hitState=!1),gr},oe=()=>{setTimeout(()=>{const Ce=t.valueKey;t.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map(Pe=>D.value.findIndex(pe=>On(pe,Ce)===On(Pe,Ce)))):e.hoverIndex=-1:e.hoverIndex=D.value.findIndex(Pe=>Re(Pe)===Re(e.selected))},300)},te=()=>{var Ce,Pe;re(),(Pe=(Ce=l.value)==null?void 0:Ce.updatePopper)==null||Pe.call(Ce),t.multiple&&I()},re=()=>{var Ce;e.inputWidth=(Ce=i.value)==null?void 0:Ce.$el.offsetWidth},ne=()=>{t.filterable&&e.query!==e.selectedLabel&&(e.query=e.selectedLabel,L(e.query))},J=Oa(()=>{ne()},E.value),he=Oa(Ce=>{L(Ce.target.value)},E.value),ue=Ce=>{Xa(t.modelValue,Ce)||n.emit(kn,Ce)},X=Ce=>E0e(Ce,Pe=>!e.disabledOptions.has(Pe)),K=Ce=>{if(Ce.code!==et.delete){if(Ce.target.value.length<=0&&!ge()){const Pe=t.modelValue.slice(),pe=X(Pe);if(pe<0)return;Pe.splice(pe,1),n.emit(Mt,Pe),ue(Pe)}Ce.target.value.length===1&&t.modelValue.length===0&&(e.currentPlaceholder=e.cachedPlaceHolder)}},ee=(Ce,Pe)=>{const pe=e.selected.indexOf(Pe);if(pe>-1&&!x.value){const ze=t.modelValue.slice();ze.splice(pe,1),n.emit(Mt,ze),ue(ze),n.emit("remove-tag",Pe.value)}Ce.stopPropagation(),Ue()},se=Ce=>{Ce.stopPropagation();const Pe=t.multiple?[]:"";if(!ft(Pe))for(const pe of e.selected)pe.isDisabled&&Pe.push(pe.value);n.emit(Mt,Pe),ue(Pe),e.hoverIndex=-1,e.visible=!1,n.emit("clear"),Ue()},ye=Ce=>{var Pe;if(t.multiple){const pe=(t.modelValue||[]).slice(),ze=we(pe,Ce.value);ze>-1?pe.splice(ze,1):(t.multipleLimit<=0||pe.length{Me(Ce)})},we=(Ce=[],Pe)=>{if(!Lt(Pe))return Ce.indexOf(Pe);const pe=t.valueKey;let ze=-1;return Ce.some((Ot,Xt)=>on(On(Ot,pe))===On(Pe,pe)?(ze=Xt,!0):!1),ze},be=()=>{const Ce=o.value||i.value;Ce&&(Ce==null||Ce.focus())},Me=Ce=>{var Pe,pe,ze,Ot,Xt;const gr=Array.isArray(Ce)?Ce[0]:Ce;let yr=null;if(gr!=null&&gr.value){const ta=D.value.filter(na=>na.value===gr.value);ta.length>0&&(yr=ta[0].$el)}if(l.value&&yr){const ta=(Ot=(ze=(pe=(Pe=l.value)==null?void 0:Pe.popperRef)==null?void 0:pe.contentRef)==null?void 0:ze.querySelector)==null?void 0:Ot.call(ze,`.${a.be("dropdown","wrap")}`);ta&&f9(ta,yr)}(Xt=d.value)==null||Xt.handleScroll()},Se=Ce=>{e.optionsCount++,e.filteredOptionsCount++,e.options.set(Ce.value,Ce),e.cachedOptions.set(Ce.value,Ce),Ce.disabled&&e.disabledOptions.set(Ce.value,Ce)},xe=(Ce,Pe)=>{e.options.get(Ce)===Pe&&(e.optionsCount--,e.filteredOptionsCount--,e.options.delete(Ce))},ke=Ce=>{Ce.code!==et.backspace&&ge(!1),e.inputLength=o.value.value.length*15+20,I()},ge=Ce=>{if(!Array.isArray(e.selected))return;const Pe=X(e.selected.map(ze=>ze.value)),pe=e.selected[Pe];if(pe)return Ce===!0||Ce===!1?(pe.hitState=Ce,Ce):(pe.hitState=!pe.hitState,pe.hitState)},Ve=Ce=>{const Pe=Ce.target.value;if(Ce.type==="compositionend")e.isOnComposition=!1,Xe(()=>L(Pe));else{const pe=Pe[Pe.length-1]||"";e.isOnComposition=!qw(pe)}},Ke=()=>{Xe(()=>Me(e.selected))},Le=Ce=>{e.focused||((t.automaticDropdown||t.filterable)&&(t.filterable&&!e.visible&&(e.menuVisibleOnFocus=!0),e.visible=!0),e.focused=!0,n.emit("focus",Ce))},Ue=()=>{var Ce,Pe;e.visible?(Ce=o.value||i.value)==null||Ce.focus():(Pe=i.value)==null||Pe.focus()},st=()=>{var Ce,Pe,pe;e.visible=!1,(Ce=i.value)==null||Ce.blur(),(pe=(Pe=s.value)==null?void 0:Pe.blur)==null||pe.call(Pe)},bt=Ce=>{var Pe,pe,ze;(Pe=l.value)!=null&&Pe.isFocusInsideContent(Ce)||(pe=u.value)!=null&&pe.isFocusInsideContent(Ce)||(ze=f.value)!=null&&ze.contains(Ce.relatedTarget)||(e.visible&&rt(),e.focused=!1,n.emit("blur",Ce))},At=Ce=>{se(Ce)},rt=()=>{e.visible=!1},_e=Ce=>{e.visible&&(Ce.preventDefault(),Ce.stopPropagation(),e.visible=!1)},ve=Ce=>{Ce&&!e.mouseEnter||x.value||(e.menuVisibleOnFocus?e.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(e.visible=!e.visible),Ue())},ce=()=>{e.visible?D.value[e.hoverIndex]&&ye(D.value[e.hoverIndex]):ve()},Re=Ce=>Lt(Ce.value)?On(Ce.value,t.valueKey):Ce.value,ae=O(()=>D.value.filter(Ce=>Ce.visible).every(Ce=>Ce.disabled)),Fe=O(()=>t.multiple?e.selected.slice(0,t.maxCollapseTags):[]),dt=O(()=>t.multiple?e.selected.slice(t.maxCollapseTags):[]),$t=Ce=>{if(!e.visible){e.visible=!0;return}if(!(e.options.size===0||e.filteredOptionsCount===0)&&!e.isOnComposition&&!ae.value){Ce==="next"?(e.hoverIndex++,e.hoverIndex===e.options.size&&(e.hoverIndex=0)):Ce==="prev"&&(e.hoverIndex--,e.hoverIndex<0&&(e.hoverIndex=e.options.size-1));const Pe=D.value[e.hoverIndex];(Pe.disabled===!0||Pe.states.groupDisabled===!0||!Pe.visible)&&$t(Ce),Xe(()=>Me(h.value))}},er=()=>{e.mouseEnter=!0},pr=()=>{e.mouseEnter=!1},Fa=(Ce,Pe)=>{var pe,ze;ee(Ce,Pe),(ze=(pe=u.value)==null?void 0:pe.updatePopper)==null||ze.call(pe)},zr=O(()=>({maxWidth:`${S(e.inputWidth)-32-(k.value?22:0)}px`,width:"100%"}));return{optionList:g,optionsArray:D,selectSize:V,handleResize:te,debouncedOnInputChange:J,debouncedQueryChange:he,deletePrevTag:K,deleteTag:ee,deleteSelected:se,handleOptionSelect:ye,scrollToOption:Me,readonly:_,resetInputHeight:I,showClose:w,iconComponent:C,iconReverse:T,showNewOption:A,collapseTagSize:P,setSelected:j,managePlaceholder:$,selectDisabled:x,emptyText:M,toggleLastOptionHitState:ge,resetInputState:ke,handleComposition:Ve,onOptionCreate:Se,onOptionDestroy:xe,handleMenuEnter:Ke,handleFocus:Le,focus:Ue,blur:st,handleBlur:bt,handleClearClick:At,handleClose:rt,handleKeydownEscape:_e,toggleMenu:ve,selectOption:ce,getValueKey:Re,navigateOptions:$t,handleDeleteTooltipTag:Fa,dropMenuVisible:N,queryChange:p,groupQueryChange:v,showTagList:Fe,collapseTagList:dt,selectTagsStyle:zr,reference:i,input:o,iOSInput:s,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:f,scrollbar:d,handleMouseEnter:er,handleMouseLeave:pr}};var wNe=ie({name:"ElOptions",emits:["update-options"],setup(t,{slots:e,emit:n}){let r=[];function a(i,o){if(i.length!==o.length)return!1;for(const[s]of i.entries())if(i[s]!=o[s])return!1;return!0}return()=>{var i,o;const s=(i=e.default)==null?void 0:i.call(e),l=[];function u(c){Array.isArray(c)&&c.forEach(f=>{var d,h,p,v;const g=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?u(!ft(f.children)&&!Array.isArray(f.children)&&ut((h=f.children)==null?void 0:h.default)?(p=f.children)==null?void 0:p.default():f.children):g==="ElOption"?l.push((v=f.props)==null?void 0:v.label):Array.isArray(f.children)&&u(f.children)})}return s.length&&u((o=s[0])==null?void 0:o.children),a(l,r)||(r=l,n("update-options",l)),s}}});const xV="ElSelect",xNe=ie({name:xV,componentName:xV,components:{ElInput:ca,ElSelectMenu:bNe,ElOption:gA,ElOptions:wNe,ElTag:I0,ElScrollbar:Rl,ElTooltip:Na,ElIcon:Ye},directives:{ClickOutside:Wu},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:Xw},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:Nr.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:_n,default:ic},fitInputWidth:Boolean,suffixIcon:{type:_n,default:ac},tagType:{...sA.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:pd,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[Mt,kn,"remove-tag","clear","visible-change","focus","blur"],setup(t,e){const n=De("select"),r=De("input"),{t:a}=Kt(),i=SNe(t),{optionList:o,optionsArray:s,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:p,deleteTag:v,deleteSelected:g,handleOptionSelect:y,scrollToOption:m,setSelected:b,resetInputHeight:_,managePlaceholder:x,showClose:w,selectDisabled:C,iconComponent:T,iconReverse:k,showNewOption:E,emptyText:M,toggleLastOptionHitState:D,resetInputState:R,handleComposition:A,onOptionCreate:V,onOptionDestroy:P,handleMenuEnter:N,handleFocus:I,focus:L,blur:$,handleBlur:U,handleClearClick:j,handleClose:Y,handleKeydownEscape:oe,toggleMenu:te,selectOption:re,getValueKey:ne,navigateOptions:J,handleDeleteTooltipTag:he,dropMenuVisible:ue,reference:X,input:K,iOSInput:ee,tooltipRef:se,tagTooltipRef:ye,tags:we,selectWrapper:be,scrollbar:Me,queryChange:Se,groupQueryChange:xe,handleMouseEnter:ke,handleMouseLeave:ge,showTagList:Ve,collapseTagList:Ke,selectTagsStyle:Le}=_Ne(t,i,e),{inputWidth:Ue,selected:st,inputLength:bt,filteredOptionsCount:At,visible:rt,selectedLabel:_e,hoverIndex:ve,query:ce,inputHovering:Re,currentPlaceholder:ae,menuVisibleOnFocus:Fe,isOnComposition:dt,options:$t,cachedOptions:er,optionsCount:pr,prefixWidth:Fa}=kr(i),zr=O(()=>{const na=[n.b()],pc=S(l);return pc&&na.push(n.m(pc)),t.disabled&&na.push(n.m("disabled")),na}),Ce=O(()=>[n.e("tags"),n.is("disabled",S(C))]),Pe=O(()=>[n.b("tags-wrapper"),{"has-prefix":S(Fa)&&S(st).length}]),pe=O(()=>[n.e("input"),n.is(S(l)),n.is("disabled",S(C))]),ze=O(()=>[n.e("input"),n.is(S(l)),n.em("input","iOS")]),Ot=O(()=>[n.is("empty",!t.allowCreate&&!!S(ce)&&S(At)===0)]),Xt=O(()=>({maxWidth:`${S(Ue)>123?S(Ue)-123:S(Ue)-75}px`})),gr=O(()=>({marginLeft:`${S(Fa)}px`,flexGrow:1,width:`${S(bt)/(S(Ue)-32)}%`,maxWidth:`${S(Ue)-42}px`}));Nt(Ky,Qt({props:t,options:$t,optionsArray:s,cachedOptions:er,optionsCount:pr,filteredOptionsCount:At,hoverIndex:ve,handleOptionSelect:y,onOptionCreate:V,onOptionDestroy:P,selectWrapper:be,selected:st,setSelected:b,queryChange:Se,groupQueryChange:xe})),ht(()=>{i.cachedPlaceHolder=ae.value=t.placeholder||(()=>a("el.select.placeholder")),t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(ae.value=""),da(be,c),t.remote&&t.multiple&&_(),Xe(()=>{const na=X.value&&X.value.$el;if(na&&(Ue.value=na.getBoundingClientRect().width,e.slots.prefix)){const pc=na.querySelector(`.${r.e("prefix")}`);Fa.value=Math.max(pc.getBoundingClientRect().width+11,30)}}),b()}),t.multiple&&!Array.isArray(t.modelValue)&&e.emit(Mt,[]),!t.multiple&&Array.isArray(t.modelValue)&&e.emit(Mt,"");const yr=O(()=>{var na,pc;return(pc=(na=se.value)==null?void 0:na.popperRef)==null?void 0:pc.contentRef});return{isIOS:_W,onOptionsRendered:na=>{o.value=na},prefixWidth:Fa,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:p,deleteTag:v,handleDeleteTooltipTag:he,deleteSelected:g,handleOptionSelect:y,scrollToOption:m,inputWidth:Ue,selected:st,inputLength:bt,filteredOptionsCount:At,visible:rt,selectedLabel:_e,hoverIndex:ve,query:ce,inputHovering:Re,currentPlaceholder:ae,menuVisibleOnFocus:Fe,isOnComposition:dt,options:$t,resetInputHeight:_,managePlaceholder:x,showClose:w,selectDisabled:C,iconComponent:T,iconReverse:k,showNewOption:E,emptyText:M,toggleLastOptionHitState:D,resetInputState:R,handleComposition:A,handleMenuEnter:N,handleFocus:I,focus:L,blur:$,handleBlur:U,handleClearClick:j,handleClose:Y,handleKeydownEscape:oe,toggleMenu:te,selectOption:re,getValueKey:ne,navigateOptions:J,dropMenuVisible:ue,reference:X,input:K,iOSInput:ee,tooltipRef:se,popperPaneRef:yr,tags:we,selectWrapper:be,scrollbar:Me,wrapperKls:zr,tagsKls:Ce,tagWrapperKls:Pe,inputKls:pe,iOSInputKls:ze,scrollbarKls:Ot,selectTagsStyle:Le,nsSelect:n,tagTextStyle:Xt,inputStyle:gr,handleMouseEnter:ke,handleMouseLeave:ge,showTagList:Ve,collapseTagList:Ke,tagTooltipRef:ye}}}),CNe=["disabled","autocomplete","aria-label"],TNe=["disabled"],ENe={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function MNe(t,e,n,r,a,i){const o=Ge("el-tag"),s=Ge("el-tooltip"),l=Ge("el-icon"),u=Ge("el-input"),c=Ge("el-option"),f=Ge("el-options"),d=Ge("el-scrollbar"),h=Ge("el-select-menu"),p=m0("click-outside");return yt((B(),q("div",{ref:"selectWrapper",class:F(t.wrapperKls),onMouseenter:e[22]||(e[22]=(...v)=>t.handleMouseEnter&&t.handleMouseEnter(...v)),onMouseleave:e[23]||(e[23]=(...v)=>t.handleMouseLeave&&t.handleMouseLeave(...v)),onClick:e[24]||(e[24]=it((...v)=>t.toggleMenu&&t.toggleMenu(...v),["stop"]))},[H(s,{ref:"tooltipRef",visible:t.dropMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,pure:"",trigger:"click",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,onShow:t.handleMenuEnter},{default:Z(()=>[G("div",{class:"select-trigger",onMouseenter:e[20]||(e[20]=v=>t.inputHovering=!0),onMouseleave:e[21]||(e[21]=v=>t.inputHovering=!1)},[t.multiple?(B(),q("div",{key:0,ref:"tags",tabindex:"-1",class:F(t.tagsKls),style:qe(t.selectTagsStyle),onClick:e[15]||(e[15]=(...v)=>t.focus&&t.focus(...v))},[t.collapseTags&&t.selected.length?(B(),de(Qn,{key:0,onAfterLeave:t.resetInputHeight},{default:Z(()=>[G("span",{class:F(t.tagWrapperKls)},[(B(!0),q(Ze,null,Pt(t.showTagList,v=>(B(),de(o,{key:t.getValueKey(v),closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,hit:v.hitState,type:t.tagType,"disable-transitions":"",onClose:g=>t.deleteTag(g,v)},{default:Z(()=>[G("span",{class:F(t.nsSelect.e("tags-text")),style:qe(t.tagTextStyle)},Ae(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),t.selected.length>t.maxCollapseTags?(B(),de(o,{key:0,closable:!1,size:t.collapseTagSize,type:t.tagType,"disable-transitions":""},{default:Z(()=>[t.collapseTagsTooltip?(B(),de(s,{key:0,ref:"tagTooltipRef",disabled:t.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:Z(()=>[G("span",{class:F(t.nsSelect.e("tags-text"))},"+ "+Ae(t.selected.length-t.maxCollapseTags),3)]),content:Z(()=>[G("div",{class:F(t.nsSelect.e("collapse-tags"))},[(B(!0),q(Ze,null,Pt(t.collapseTagList,v=>(B(),q("div",{key:t.getValueKey(v),class:F(t.nsSelect.e("collapse-tag"))},[H(o,{class:"in-tooltip",closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,hit:v.hitState,type:t.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>t.handleDeleteTooltipTag(g,v)},{default:Z(()=>[G("span",{class:F(t.nsSelect.e("tags-text")),style:qe({maxWidth:t.inputWidth-75+"px"})},Ae(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(B(),q("span",{key:1,class:F(t.nsSelect.e("tags-text"))},"+ "+Ae(t.selected.length-t.maxCollapseTags),3))]),_:1},8,["size","type"])):le("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):le("v-if",!0),t.collapseTags?le("v-if",!0):(B(),de(Qn,{key:1,onAfterLeave:t.resetInputHeight},{default:Z(()=>[G("span",{class:F(t.tagWrapperKls),style:qe(t.prefixWidth&&t.selected.length?{marginLeft:`${t.prefixWidth}px`}:"")},[(B(!0),q(Ze,null,Pt(t.selected,v=>(B(),de(o,{key:t.getValueKey(v),closable:!t.selectDisabled&&!v.isDisabled,size:t.collapseTagSize,hit:v.hitState,type:t.tagType,"disable-transitions":"",onClose:g=>t.deleteTag(g,v)},{default:Z(()=>[G("span",{class:F(t.nsSelect.e("tags-text")),style:qe({maxWidth:t.inputWidth-75+"px"})},Ae(v.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),t.filterable&&!t.selectDisabled?yt((B(),q("input",{key:2,ref:"input","onUpdate:modelValue":e[0]||(e[0]=v=>t.query=v),type:"text",class:F(t.inputKls),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:qe(t.inputStyle),"aria-label":t.ariaLabel,onFocus:e[1]||(e[1]=(...v)=>t.handleFocus&&t.handleFocus(...v)),onBlur:e[2]||(e[2]=(...v)=>t.handleBlur&&t.handleBlur(...v)),onKeyup:e[3]||(e[3]=(...v)=>t.managePlaceholder&&t.managePlaceholder(...v)),onKeydown:[e[4]||(e[4]=(...v)=>t.resetInputState&&t.resetInputState(...v)),e[5]||(e[5]=jt(it(v=>t.navigateOptions("next"),["prevent"]),["down"])),e[6]||(e[6]=jt(it(v=>t.navigateOptions("prev"),["prevent"]),["up"])),e[7]||(e[7]=jt((...v)=>t.handleKeydownEscape&&t.handleKeydownEscape(...v),["esc"])),e[8]||(e[8]=jt(it((...v)=>t.selectOption&&t.selectOption(...v),["stop","prevent"]),["enter"])),e[9]||(e[9]=jt((...v)=>t.deletePrevTag&&t.deletePrevTag(...v),["delete"])),e[10]||(e[10]=jt(v=>t.visible=!1,["tab"]))],onCompositionstart:e[11]||(e[11]=(...v)=>t.handleComposition&&t.handleComposition(...v)),onCompositionupdate:e[12]||(e[12]=(...v)=>t.handleComposition&&t.handleComposition(...v)),onCompositionend:e[13]||(e[13]=(...v)=>t.handleComposition&&t.handleComposition(...v)),onInput:e[14]||(e[14]=(...v)=>t.debouncedQueryChange&&t.debouncedQueryChange(...v))},null,46,CNe)),[[iL,t.query]]):le("v-if",!0)],6)):le("v-if",!0),le(" fix: https://github.com/element-plus/element-plus/issues/11415 "),t.isIOS&&!t.multiple&&t.filterable&&t.readonly?(B(),q("input",{key:1,ref:"iOSInput",class:F(t.iOSInputKls),disabled:t.selectDisabled,type:"text"},null,10,TNe)):le("v-if",!0),H(u,{id:t.id,ref:"reference",modelValue:t.selectedLabel,"onUpdate:modelValue":e[16]||(e[16]=v=>t.selectedLabel=v),type:"text",placeholder:typeof t.currentPlaceholder=="function"?t.currentPlaceholder():t.currentPlaceholder,name:t.name,autocomplete:t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,class:F([t.nsSelect.is("focus",t.visible)]),tabindex:t.multiple&&t.filterable?-1:void 0,label:t.ariaLabel,onFocus:t.handleFocus,onBlur:t.handleBlur,onInput:t.debouncedOnInputChange,onPaste:t.debouncedOnInputChange,onCompositionstart:t.handleComposition,onCompositionupdate:t.handleComposition,onCompositionend:t.handleComposition,onKeydown:[e[17]||(e[17]=jt(it(v=>t.navigateOptions("next"),["stop","prevent"]),["down"])),e[18]||(e[18]=jt(it(v=>t.navigateOptions("prev"),["stop","prevent"]),["up"])),jt(it(t.selectOption,["stop","prevent"]),["enter"]),jt(t.handleKeydownEscape,["esc"]),e[19]||(e[19]=jt(v=>t.visible=!1,["tab"]))]},gl({suffix:Z(()=>[t.iconComponent&&!t.showClose?(B(),de(l,{key:0,class:F([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:Z(()=>[(B(),de(Et(t.iconComponent)))]),_:1},8,["class"])):le("v-if",!0),t.showClose&&t.clearIcon?(B(),de(l,{key:1,class:F([t.nsSelect.e("caret"),t.nsSelect.e("icon")]),onClick:t.handleClearClick},{default:Z(()=>[(B(),de(Et(t.clearIcon)))]),_:1},8,["class","onClick"])):le("v-if",!0)]),_:2},[t.$slots.prefix?{name:"prefix",fn:Z(()=>[G("div",ENe,[Te(t.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:Z(()=>[H(h,null,{default:Z(()=>[yt(H(d,{ref:"scrollbar",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:F(t.scrollbarKls)},{default:Z(()=>[t.showNewOption?(B(),de(c,{key:0,value:t.query,created:!0},null,8,["value"])):le("v-if",!0),H(f,{onUpdateOptions:t.onOptionsRendered},{default:Z(()=>[Te(t.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[qt,t.options.size>0&&!t.loading]]),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&t.options.size===0)?(B(),q(Ze,{key:0},[t.$slots.empty?Te(t.$slots,"empty",{key:0}):(B(),q("p",{key:1,class:F(t.nsSelect.be("dropdown","empty"))},Ae(t.emptyText),3))],64)):le("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[p,t.handleClose,t.popperPaneRef]])}var kNe=Ne(xNe,[["render",MNe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const DNe=ie({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(t){const e=De("select"),n=z(!0),r=wt(),a=z([]);Nt(Jj,Qt({...kr(t)}));const i=We(Ky);ht(()=>{a.value=o(r.subTree)});const o=l=>{const u=[];return Array.isArray(l.children)&&l.children.forEach(c=>{var f;c.type&&c.type.name==="ElOption"&&c.component&&c.component.proxy?u.push(c.component.proxy):(f=c.children)!=null&&f.length&&u.push(...o(c))}),u},{groupQueryChange:s}=on(i);return Ee(s,()=>{n.value=a.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:e}}});function RNe(t,e,n,r,a,i){return yt((B(),q("ul",{class:F(t.ns.be("group","wrap"))},[G("li",{class:F(t.ns.be("group","title"))},Ae(t.label),3),G("li",null,[G("ul",{class:F(t.ns.b("group"))},[Te(t.$slots,"default")],2)])],2)),[[qt,t.visible]])}var eK=Ne(DNe,[["render",RNe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const ju=Tt(kNe,{Option:gA,OptionGroup:eK}),US=Hn(gA),LNe=Hn(eK),yA=()=>We(Qj,{}),ANe=$e({pageSize:{type:Number,required:!0},pageSizes:{type:fe(Array),default:()=>Nn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:Ns}}),ONe=ie({name:"ElPaginationSizes"}),NNe=ie({...ONe,props:ANe,emits:["page-size-change"],setup(t,{emit:e}){const n=t,{t:r}=Kt(),a=De("pagination"),i=yA(),o=z(n.pageSize);Ee(()=>n.pageSizes,(u,c)=>{if(!Xa(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];e("page-size-change",f)}}),Ee(()=>n.pageSize,u=>{o.value=u});const s=O(()=>n.pageSizes);function l(u){var c;u!==o.value&&(o.value=u,(c=i.handleSizeChange)==null||c.call(i,Number(u)))}return(u,c)=>(B(),q("span",{class:F(S(a).e("sizes"))},[H(S(ju),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:Z(()=>[(B(!0),q(Ze,null,Pt(S(s),f=>(B(),de(S(US),{key:f,value:f,label:f+S(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var $Ne=Ne(NNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const INe=$e({size:{type:String,values:Ns}}),BNe=["disabled"],VNe=ie({name:"ElPaginationJumper"}),PNe=ie({...VNe,props:INe,setup(t){const{t:e}=Kt(),n=De("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:o}=yA(),s=z(),l=O(()=>{var f;return(f=s.value)!=null?f:i==null?void 0:i.value});function u(f){s.value=f?+f:""}function c(f){f=Math.trunc(+f),o==null||o(f),s.value=void 0}return(f,d)=>(B(),q("span",{class:F(S(n).e("jump")),disabled:S(a)},[G("span",{class:F([S(n).e("goto")])},Ae(S(e)("el.pagination.goto")),3),H(S(ca),{size:f.size,class:F([S(n).e("editor"),S(n).is("in-pagination")]),min:1,max:S(r),disabled:S(a),"model-value":S(l),"validate-event":!1,label:S(e)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),G("span",{class:F([S(n).e("classifier")])},Ae(S(e)("el.pagination.pageClassifier")),3)],10,BNe))}});var FNe=Ne(PNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const zNe=$e({total:{type:Number,default:1e3}}),GNe=["disabled"],HNe=ie({name:"ElPaginationTotal"}),UNe=ie({...HNe,props:zNe,setup(t){const{t:e}=Kt(),n=De("pagination"),{disabled:r}=yA();return(a,i)=>(B(),q("span",{class:F(S(n).e("total")),disabled:S(r)},Ae(S(e)("el.pagination.total",{total:a.total})),11,GNe))}});var WNe=Ne(UNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const jNe=$e({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),KNe=["onKeyup"],YNe=["aria-current","aria-label","tabindex"],XNe=["tabindex","aria-label"],qNe=["aria-current","aria-label","tabindex"],ZNe=["tabindex","aria-label"],QNe=["aria-current","aria-label","tabindex"],JNe=ie({name:"ElPaginationPager"}),e3e=ie({...JNe,props:jNe,emits:["change"],setup(t,{emit:e}){const n=t,r=De("pager"),a=De("icon"),{t:i}=Kt(),o=z(!1),s=z(!1),l=z(!1),u=z(!1),c=z(!1),f=z(!1),d=O(()=>{const _=n.pagerCount,x=(_-1)/2,w=Number(n.currentPage),C=Number(n.pageCount);let T=!1,k=!1;C>_&&(w>_-x&&(T=!0),w["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)]),p=O(()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)]),v=O(()=>n.disabled?-1:0);di(()=>{const _=(n.pagerCount-1)/2;o.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-_&&(o.value=!0),n.currentPageC&&(w=C)),w!==T&&e("change",w)}return(_,x)=>(B(),q("ul",{class:F(S(r).b()),onClick:b,onKeyup:jt(m,["enter"])},[_.pageCount>0?(B(),q("li",{key:0,class:F([[S(r).is("active",_.currentPage===1),S(r).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===1,"aria-label":S(i)("el.pagination.currentPage",{pager:1}),tabindex:S(v)}," 1 ",10,YNe)):le("v-if",!0),o.value?(B(),q("li",{key:1,class:F(S(h)),tabindex:S(v),"aria-label":S(i)("el.pagination.prevPages",{pager:_.pagerCount-2}),onMouseenter:x[0]||(x[0]=w=>g(!0)),onMouseleave:x[1]||(x[1]=w=>l.value=!1),onFocus:x[2]||(x[2]=w=>y(!0)),onBlur:x[3]||(x[3]=w=>c.value=!1)},[(l.value||c.value)&&!_.disabled?(B(),de(S(dv),{key:0})):(B(),de(S(hB),{key:1}))],42,XNe)):le("v-if",!0),(B(!0),q(Ze,null,Pt(S(d),w=>(B(),q("li",{key:w,class:F([[S(r).is("active",_.currentPage===w),S(r).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===w,"aria-label":S(i)("el.pagination.currentPage",{pager:w}),tabindex:S(v)},Ae(w),11,qNe))),128)),s.value?(B(),q("li",{key:2,class:F(S(p)),tabindex:S(v),"aria-label":S(i)("el.pagination.nextPages",{pager:_.pagerCount-2}),onMouseenter:x[4]||(x[4]=w=>g()),onMouseleave:x[5]||(x[5]=w=>u.value=!1),onFocus:x[6]||(x[6]=w=>y()),onBlur:x[7]||(x[7]=w=>f.value=!1)},[(u.value||f.value)&&!_.disabled?(B(),de(S(hv),{key:0})):(B(),de(S(hB),{key:1}))],42,ZNe)):le("v-if",!0),_.pageCount>1?(B(),q("li",{key:3,class:F([[S(r).is("active",_.currentPage===_.pageCount),S(r).is("disabled",_.disabled)],"number"]),"aria-current":_.currentPage===_.pageCount,"aria-label":S(i)("el.pagination.currentPage",{pager:_.pageCount}),tabindex:S(v)},Ae(_.pageCount),11,QNe)):le("v-if",!0)],42,KNe))}});var t3e=Ne(e3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const ga=t=>typeof t!="number",n3e=$e({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:t=>lt(t)&&Math.trunc(t)===t&&t>4&&t<22&&t%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:fe(Array),default:()=>Nn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:_n,default:()=>zu},nextText:{type:String,default:""},nextIcon:{type:_n,default:()=>ka},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),r3e={"update:current-page":t=>lt(t),"update:page-size":t=>lt(t),"size-change":t=>lt(t),"current-change":t=>lt(t),"prev-click":t=>lt(t),"next-click":t=>lt(t)},CV="ElPagination";var a3e=ie({name:CV,props:n3e,emits:r3e,setup(t,{emit:e,slots:n}){const{t:r}=Kt(),a=De("pagination"),i=wt().vnode.props||{},o="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,s="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,l=O(()=>{if(ga(t.total)&&ga(t.pageCount)||!ga(t.currentPage)&&!o)return!1;if(t.layout.includes("sizes")){if(ga(t.pageCount)){if(!ga(t.total)&&!ga(t.pageSize)&&!s)return!1}else if(!s)return!1}return!0}),u=z(ga(t.defaultPageSize)?10:t.defaultPageSize),c=z(ga(t.defaultCurrentPage)?1:t.defaultCurrentPage),f=O({get(){return ga(t.pageSize)?u.value:t.pageSize},set(b){ga(t.pageSize)&&(u.value=b),s&&(e("update:page-size",b),e("size-change",b))}}),d=O(()=>{let b=0;return ga(t.pageCount)?ga(t.total)||(b=Math.max(1,Math.ceil(t.total/f.value))):b=t.pageCount,b}),h=O({get(){return ga(t.currentPage)?c.value:t.currentPage},set(b){let _=b;b<1?_=1:b>d.value&&(_=d.value),ga(t.currentPage)&&(c.value=_),o&&(e("update:current-page",_),e("current-change",_))}});Ee(d,b=>{h.value>b&&(h.value=b)});function p(b){h.value=b}function v(b){f.value=b;const _=d.value;h.value>_&&(h.value=_)}function g(){t.disabled||(h.value-=1,e("prev-click",h.value))}function y(){t.disabled||(h.value+=1,e("next-click",h.value))}function m(b,_){b&&(b.props||(b.props={}),b.props.class=[b.props.class,_].join(" "))}return Nt(Qj,{pageCount:d,disabled:O(()=>t.disabled),currentPage:h,changeEvent:p,handleSizeChange:v}),()=>{var b,_;if(!l.value)return r("el.pagination.deprecationWarning"),null;if(!t.layout||t.hideOnSinglePage&&d.value<=1)return null;const x=[],w=[],C=tt("div",{class:a.e("rightwrapper")},w),T={prev:tt(sNe,{disabled:t.disabled,currentPage:h.value,prevText:t.prevText,prevIcon:t.prevIcon,onClick:g}),jumper:tt(FNe,{size:t.small?"small":"default"}),pager:tt(t3e,{currentPage:h.value,pageCount:d.value,pagerCount:t.pagerCount,onChange:p,disabled:t.disabled}),next:tt(hNe,{disabled:t.disabled,currentPage:h.value,pageCount:d.value,nextText:t.nextText,nextIcon:t.nextIcon,onClick:y}),sizes:tt($Ne,{pageSize:f.value,pageSizes:t.pageSizes,popperClass:t.popperClass,disabled:t.disabled,teleported:t.teleported,size:t.small?"small":"default"}),slot:(_=(b=n==null?void 0:n.default)==null?void 0:b.call(n))!=null?_:null,total:tt(WNe,{total:ga(t.total)?0:t.total})},k=t.layout.split(",").map(M=>M.trim());let E=!1;return k.forEach(M=>{if(M==="->"){E=!0;return}E?w.push(T[M]):x.push(T[M])}),m(x[0],a.is("first")),m(x[x.length-1],a.is("last")),E&&w.length>0&&(m(w[0],a.is("first")),m(w[w.length-1],a.is("last")),x.push(C)),tt("div",{class:[a.b(),a.is("background",t.background),{[a.m("small")]:t.small}]},x)}}});const i3e=Tt(a3e),o3e=$e({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:$M,default:"primary"},cancelButtonType:{type:String,values:$M,default:"text"},icon:{type:_n,default:()=>q1e},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Nr.teleported,persistent:Nr.persistent,width:{type:[String,Number],default:150}}),s3e={confirm:t=>t instanceof MouseEvent,cancel:t=>t instanceof MouseEvent},l3e=ie({name:"ElPopconfirm"}),u3e=ie({...l3e,props:o3e,emits:s3e,setup(t,{emit:e}){const n=t,{t:r}=Kt(),a=De("popconfirm"),i=z(),o=()=>{var d,h;(h=(d=i.value)==null?void 0:d.onClose)==null||h.call(d)},s=O(()=>({width:Xn(n.width)})),l=d=>{e("confirm",d),o()},u=d=>{e("cancel",d),o()},c=O(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),f=O(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(d,h)=>(B(),de(S(Na),kt({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},d.$attrs,{"popper-class":`${S(a).namespace.value}-popover`,"popper-style":S(s),teleported:d.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":d.hideAfter,persistent:d.persistent}),{content:Z(()=>[G("div",{class:F(S(a).b())},[G("div",{class:F(S(a).e("main"))},[!d.hideIcon&&d.icon?(B(),de(S(Ye),{key:0,class:F(S(a).e("icon")),style:qe({color:d.iconColor})},{default:Z(()=>[(B(),de(Et(d.icon)))]),_:1},8,["class","style"])):le("v-if",!0),Qe(" "+Ae(d.title),1)],2),G("div",{class:F(S(a).e("action"))},[H(S(St),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:Z(()=>[Qe(Ae(S(f)),1)]),_:1},8,["type","text"]),H(S(St),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:l},{default:Z(()=>[Qe(Ae(S(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:Z(()=>[d.$slots.reference?Te(d.$slots,"reference",{key:0}):le("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var c3e=Ne(u3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const f3e=Tt(c3e),d3e=$e({trigger:$0.trigger,placement:Fb.placement,disabled:$0.disabled,visible:Nr.visible,transition:Nr.transition,popperOptions:Fb.popperOptions,tabindex:Fb.tabindex,content:Nr.content,popperStyle:Nr.popperStyle,popperClass:Nr.popperClass,enterable:{...Nr.enterable,default:!0},effect:{...Nr.effect,default:"light"},teleported:Nr.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}}),h3e={"update:visible":t=>cr(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},v3e="onUpdate:visible",p3e=ie({name:"ElPopover"}),g3e=ie({...p3e,props:d3e,emits:h3e,setup(t,{expose:e,emit:n}){const r=t,a=O(()=>r[v3e]),i=De("popover"),o=z(),s=O(()=>{var g;return(g=S(o))==null?void 0:g.popperRef}),l=O(()=>[{width:Xn(r.width)},r.popperStyle]),u=O(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),c=O(()=>r.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{n("before-enter")},h=()=>{n("before-leave")},p=()=>{n("after-enter")},v=()=>{n("update:visible",!1),n("after-leave")};return e({popperRef:s,hide:f}),(g,y)=>(B(),de(S(Na),kt({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":S(u),"popper-style":S(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":S(c),"onUpdate:visible":S(a),onBeforeShow:d,onBeforeHide:h,onShow:p,onHide:v}),{content:Z(()=>[g.title?(B(),q("div",{key:0,class:F(S(i).e("title")),role:"title"},Ae(g.title),3)):le("v-if",!0),Te(g.$slots,"default",{},()=>[Qe(Ae(g.content),1)])]),default:Z(()=>[g.$slots.reference?Te(g.$slots,"reference",{key:0}):le("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 y3e=Ne(g3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const TV=(t,e)=>{const n=e.arg||e.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=t)};var m3e={mounted(t,e){TV(t,e)},updated(t,e){TV(t,e)}};const b3e="popover",tK=mSe(m3e,b3e),S3e=Tt(y3e,{directive:tK}),_3e=$e({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:t=>t>=0&&t<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:fe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:fe([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:fe(Function),default:t=>`${t}%`}}),w3e=["aria-valuenow"],x3e={viewBox:"0 0 100 100"},C3e=["d","stroke","stroke-linecap","stroke-width"],T3e=["d","stroke","opacity","stroke-linecap","stroke-width"],E3e={key:0},M3e=ie({name:"ElProgress"}),k3e=ie({...M3e,props:_3e,setup(t){const e=t,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=De("progress"),a=O(()=>({width:`${e.percentage}%`,animationDuration:`${e.duration}s`,backgroundColor:m(e.percentage)})),i=O(()=>(e.strokeWidth/e.width*100).toFixed(1)),o=O(()=>["circle","dashboard"].includes(e.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=O(()=>{const b=o.value,_=e.type==="dashboard";return` M 50 50 m 0 ${_?"":"-"}${b} a ${b} ${b} 0 1 1 0 ${_?"-":""}${b*2} a ${b} ${b} 0 1 1 0 ${_?"":"-"}${b*2} `}),l=O(()=>2*Math.PI*o.value),u=O(()=>e.type==="dashboard"?.75:1),c=O(()=>`${-1*l.value*(1-u.value)/2}px`),f=O(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=O(()=>({strokeDasharray:`${l.value*u.value*(e.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=O(()=>{let b;return e.color?b=m(e.percentage):b=n[e.status]||n.default,b}),p=O(()=>e.status==="warning"?Kw:e.type==="line"?e.status==="success"?LL:ic:e.status==="success"?Gy:No),v=O(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),g=O(()=>e.format(e.percentage));function y(b){const _=100/b.length;return b.map((w,C)=>ft(w)?{color:w,percentage:(C+1)*_}:w).sort((w,C)=>w.percentage-C.percentage)}const m=b=>{var _;const{color:x}=e;if(ut(x))return x(b);if(ft(x))return x;{const w=y(x);for(const C of w)if(C.percentage>b)return C.color;return(_=w[w.length-1])==null?void 0:_.color}};return(b,_)=>(B(),q("div",{class:F([S(r).b(),S(r).m(b.type),S(r).is(b.status),{[S(r).m("without-text")]:!b.showText,[S(r).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(B(),q("div",{key:0,class:F(S(r).b("bar"))},[G("div",{class:F(S(r).be("bar","outer")),style:qe({height:`${b.strokeWidth}px`})},[G("div",{class:F([S(r).be("bar","inner"),{[S(r).bem("bar","inner","indeterminate")]:b.indeterminate},{[S(r).bem("bar","inner","striped")]:b.striped},{[S(r).bem("bar","inner","striped-flow")]:b.stripedFlow}]),style:qe(S(a))},[(b.showText||b.$slots.default)&&b.textInside?(B(),q("div",{key:0,class:F(S(r).be("bar","innerText"))},[Te(b.$slots,"default",{percentage:b.percentage},()=>[G("span",null,Ae(S(g)),1)])],2)):le("v-if",!0)],6)],6)],2)):(B(),q("div",{key:1,class:F(S(r).b("circle")),style:qe({height:`${b.width}px`,width:`${b.width}px`})},[(B(),q("svg",x3e,[G("path",{class:F(S(r).be("circle","track")),d:S(s),stroke:`var(${S(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":b.strokeLinecap,"stroke-width":S(i),fill:"none",style:qe(S(f))},null,14,C3e),G("path",{class:F(S(r).be("circle","path")),d:S(s),stroke:S(h),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":S(i),style:qe(S(d))},null,14,T3e)]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(B(),q("div",{key:2,class:F(S(r).e("text")),style:qe({fontSize:`${S(v)}px`})},[Te(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(B(),de(S(Ye),{key:1},{default:Z(()=>[(B(),de(Et(S(p))))]),_:1})):(B(),q("span",E3e,Ae(S(g)),1))])],6)):le("v-if",!0)],10,w3e))}});var D3e=Ne(k3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const nK=Tt(D3e),R3e=$e({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:fe([Array,Object]),default:()=>Nn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:fe([Array,Object]),default:()=>[$m,$m,$m]},voidIcon:{type:_n,default:()=>Hbe},disabledVoidIcon:{type:_n,default:()=>$m},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:fe(Array),default:()=>Nn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:qr,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),L3e={[kn]:t=>lt(t),[Mt]:t=>lt(t)},A3e=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],O3e=["onMousemove","onClick"],N3e=ie({name:"ElRate"}),$3e=ie({...N3e,props:R3e,emits:L3e,setup(t,{expose:e,emit:n}){const r=t;function a(P,N){const I=U=>Lt(U),L=Object.keys(N).map(U=>+U).filter(U=>{const j=N[U];return(I(j)?j.excluded:!1)?PU-j),$=N[L[0]];return I($)&&$.value||$}const i=We(gd,void 0),o=We(ks,void 0),s=hr(),l=De("rate"),{inputId:u,isLabeledByFormItem:c}=uc(r,{formItemContext:o}),f=z(r.modelValue),d=z(-1),h=z(!0),p=O(()=>[l.b(),l.m(s.value)]),v=O(()=>r.disabled||(i==null?void 0:i.disabled)),g=O(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":_.value})),y=O(()=>{let P="";return r.showScore?P=r.scoreTemplate.replace(/\{\s*value\s*\}/,v.value?`${r.modelValue}`:`${f.value}`):r.showText&&(P=r.texts[Math.ceil(f.value)-1]),P}),m=O(()=>r.modelValue*100-Math.floor(r.modelValue)*100),b=O(()=>He(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),_=O(()=>{const P=a(f.value,b.value);return Lt(P)?"":P}),x=O(()=>{let P="";return v.value?P=`${m.value}%`:r.allowHalf&&(P="50%"),{color:_.value,width:P}}),w=O(()=>{let P=He(r.icons)?[...r.icons]:{...r.icons};return P=Eu(P),He(P)?{[r.lowThreshold]:P[0],[r.highThreshold]:{value:P[1],excluded:!0},[r.max]:P[2]}:P}),C=O(()=>a(r.modelValue,w.value)),T=O(()=>v.value?ft(r.disabledVoidIcon)?r.disabledVoidIcon:Eu(r.disabledVoidIcon):ft(r.voidIcon)?r.voidIcon:Eu(r.voidIcon)),k=O(()=>a(f.value,w.value));function E(P){const N=v.value&&m.value>0&&P-1r.modelValue,I=r.allowHalf&&h.value&&P-.5<=f.value&&P>f.value;return N||I}function M(P){r.clearable&&P===r.modelValue&&(P=0),n(Mt,P),r.modelValue!==P&&n("change",P)}function D(P){v.value||(r.allowHalf&&h.value?M(f.value):M(P))}function R(P){if(v.value)return;let N=f.value;const I=P.code;return I===et.up||I===et.right?(r.allowHalf?N+=.5:N+=1,P.stopPropagation(),P.preventDefault()):(I===et.left||I===et.down)&&(r.allowHalf?N-=.5:N-=1,P.stopPropagation(),P.preventDefault()),N=N<0?0:N,N=N>r.max?r.max:N,n(Mt,N),n("change",N),N}function A(P,N){if(!v.value){if(r.allowHalf&&N){let I=N.target;Do(I,l.e("item"))&&(I=I.querySelector(`.${l.e("icon")}`)),(I.clientWidth===0||Do(I,l.e("decimal")))&&(I=I.parentNode),h.value=N.offsetX*2<=I.clientWidth,f.value=h.value?P-.5:P}else f.value=P;d.value=P}}function V(){v.value||(r.allowHalf&&(h.value=r.modelValue!==Math.floor(r.modelValue)),f.value=r.modelValue,d.value=-1)}return Ee(()=>r.modelValue,P=>{f.value=P,h.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(Mt,0),e({setCurrentValue:A,resetCurrentValue:V}),(P,N)=>{var I;return B(),q("div",{id:S(u),class:F([S(p),S(l).is("disabled",S(v))]),role:"slider","aria-label":S(c)?void 0:P.label||"rating","aria-labelledby":S(c)?(I=S(o))==null?void 0:I.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":S(y)||void 0,"aria-valuemin":"0","aria-valuemax":P.max,tabindex:"0",style:qe(S(g)),onKeydown:R},[(B(!0),q(Ze,null,Pt(P.max,(L,$)=>(B(),q("span",{key:$,class:F(S(l).e("item")),onMousemove:U=>A(L,U),onMouseleave:V,onClick:U=>D(L)},[H(S(Ye),{class:F([S(l).e("icon"),{hover:d.value===L},S(l).is("active",L<=f.value)])},{default:Z(()=>[E(L)?le("v-if",!0):(B(),q(Ze,{key:0},[yt((B(),de(Et(S(k)),null,null,512)),[[qt,L<=f.value]]),yt((B(),de(Et(S(T)),null,null,512)),[[qt,!(L<=f.value)]])],64)),E(L)?(B(),de(S(Ye),{key:1,style:qe(S(x)),class:F([S(l).e("icon"),S(l).e("decimal")])},{default:Z(()=>[(B(),de(Et(S(C))))]),_:1},8,["style","class"])):le("v-if",!0)]),_:2},1032,["class"])],42,O3e))),128)),P.showText||P.showScore?(B(),q("span",{key:0,class:F(S(l).e("text")),style:qe({color:P.textColor})},Ae(S(y)),7)):le("v-if",!0)],46,A3e)}}});var I3e=Ne($3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const B3e=Tt(I3e),_h={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},EV={[_h.success]:qye,[_h.warning]:Kw,[_h.error]:AL,[_h.info]:OL},V3e=$e({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),P3e=ie({name:"ElResult"}),F3e=ie({...P3e,props:V3e,setup(t){const e=t,n=De("result"),r=O(()=>{const a=e.icon,i=a&&_h[a]?_h[a]:"icon-info",o=EV[i]||EV["icon-info"];return{class:i,component:o}});return(a,i)=>(B(),q("div",{class:F(S(n).b())},[G("div",{class:F(S(n).e("icon"))},[Te(a.$slots,"icon",{},()=>[S(r).component?(B(),de(Et(S(r).component),{key:0,class:F(S(r).class)},null,8,["class"])):le("v-if",!0)])],2),a.title||a.$slots.title?(B(),q("div",{key:0,class:F(S(n).e("title"))},[Te(a.$slots,"title",{},()=>[G("p",null,Ae(a.title),1)])],2)):le("v-if",!0),a.subTitle||a.$slots["sub-title"]?(B(),q("div",{key:1,class:F(S(n).e("subtitle"))},[Te(a.$slots,"sub-title",{},()=>[G("p",null,Ae(a.subTitle),1)])],2)):le("v-if",!0),a.$slots.extra?(B(),q("div",{key:2,class:F(S(n).e("extra"))},[Te(a.$slots,"extra")],2)):le("v-if",!0)],2))}});var z3e=Ne(F3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const G3e=Tt(z3e);var MV=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function H3e(t,e){return!!(t===e||MV(t)&&MV(e))}function U3e(t,e){if(t.length!==e.length)return!1;for(var n=0;n{const e=wt().proxy.$props;return O(()=>{const n=(r,a,i)=>({});return e.perfMode?Hw(n):W3e(n)})},nk=50,WS="itemRendered",jS="scroll",wh="forward",KS="backward",Ii="auto",ux="smart",V0="start",ds="center",P0="end",_v="horizontal",mA="vertical",j3e="ltr",Gh="rtl",F0="negative",bA="positive-ascending",SA="positive-descending",K3e={[_v]:"left",[mA]:"top"},Y3e=20,X3e={[_v]:"deltaX",[mA]:"deltaY"},q3e=({atEndEdge:t,atStartEdge:e,layout:n},r)=>{let a,i=0;const o=l=>l<0&&e.value||l>0&&t.value;return{hasReachedEdge:o,onWheel:l=>{Zw(a);const u=l[X3e[n.value]];o(i)&&o(i+u)||(i+=u,CW()||l.preventDefault(),a=vv(()=>{r(i),i=0}))}}},rk=Go({type:fe([Number,Function]),required:!0}),ak=Go({type:Number}),ik=Go({type:Number,default:2}),Z3e=Go({type:String,values:["ltr","rtl"],default:"ltr"}),ok=Go({type:Number,default:0}),YS=Go({type:Number,required:!0}),aK=Go({type:String,values:["horizontal","vertical"],default:mA}),iK=$e({className:{type:String,default:""},containerElement:{type:fe([String,Object]),default:"div"},data:{type:fe(Array),default:()=>Nn([])},direction:Z3e,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:fe([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),oK=$e({cache:ik,estimatedItemSize:ak,layout:aK,initScrollOffset:ok,total:YS,itemSize:rk,...iK}),sk={type:Number,default:6},sK={type:Number,default:0},lK={type:Number,default:2},Vf=$e({columnCache:ik,columnWidth:rk,estimatedColumnWidth:ak,estimatedRowHeight:ak,initScrollLeft:ok,initScrollTop:ok,itemKey:{type:fe(Function),default:({columnIndex:t,rowIndex:e})=>`${e}:${t}`},rowCache:ik,rowHeight:rk,totalColumn:YS,totalRow:YS,hScrollbarSize:sk,vScrollbarSize:sk,scrollbarStartGap:sK,scrollbarEndGap:lK,role:String,...iK}),uK=$e({alwaysOn:Boolean,class:String,layout:aK,total:YS,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:sk,startGap:sK,endGap:lK,visible:Boolean}),wf=(t,e)=>tt===j3e||t===Gh||t===_v,kV=t=>t===Gh;let Rd=null;function XS(t=!1){if(Rd===null||t){const e=document.createElement("div"),n=e.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),a=r.style;return a.width="100px",a.height="100px",e.appendChild(r),document.body.appendChild(e),e.scrollLeft>0?Rd=SA:(e.scrollLeft=1,e.scrollLeft===0?Rd=F0:Rd=bA),document.body.removeChild(e),Rd}return Rd}function Q3e({move:t,size:e,bar:n},r){const a={},i=`translate${n.axis}(${t}px)`;return a[n.size]=e,a.transform=i,a.msTransform=i,a.webkitTransform=i,r==="horizontal"?a.height="100%":a.width="100%",a}const lk=ie({name:"ElVirtualScrollBar",props:uK,emits:["scroll","start-move","stop-move"],setup(t,{emit:e}){const n=O(()=>t.startGap+t.endGap),r=De("virtual-scrollbar"),a=De("scrollbar"),i=z(),o=z();let s=null,l=null;const u=Qt({isDragging:!1,traveled:0}),c=O(()=>s7[t.layout]),f=O(()=>t.clientSize-S(n)),d=O(()=>({position:"absolute",width:`${_v===t.layout?f.value:t.scrollbarSize}px`,height:`${_v===t.layout?t.scrollbarSize:f.value}px`,[K3e[t.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=O(()=>{const w=t.ratio,C=t.clientSize;if(w>=100)return Number.POSITIVE_INFINITY;if(w>=50)return w*C/100;const T=C/3;return Math.floor(Math.min(Math.max(w*C,Y3e),T))}),p=O(()=>{if(!Number.isFinite(h.value))return{display:"none"};const w=`${h.value}px`;return Q3e({bar:c.value,size:w,move:u.traveled},t.layout)}),v=O(()=>Math.floor(t.clientSize-h.value-S(n))),g=()=>{window.addEventListener("mousemove",_),window.addEventListener("mouseup",b);const w=S(o);w&&(l=document.onselectstart,document.onselectstart=()=>!1,w.addEventListener("touchmove",_),w.addEventListener("touchend",b))},y=()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",b),document.onselectstart=l,l=null;const w=S(o);w&&(w.removeEventListener("touchmove",_),w.removeEventListener("touchend",b))},m=w=>{w.stopImmediatePropagation(),!(w.ctrlKey||[1,2].includes(w.button))&&(u.isDragging=!0,u[c.value.axis]=w.currentTarget[c.value.offset]-(w[c.value.client]-w.currentTarget.getBoundingClientRect()[c.value.direction]),e("start-move"),g())},b=()=>{u.isDragging=!1,u[c.value.axis]=0,e("stop-move"),y()},_=w=>{const{isDragging:C}=u;if(!C||!o.value||!i.value)return;const T=u[c.value.axis];if(!T)return;Zw(s);const k=(i.value.getBoundingClientRect()[c.value.direction]-w[c.value.client])*-1,E=o.value[c.value.offset]-T,M=k-E;s=vv(()=>{u.traveled=Math.max(t.startGap,Math.min(M,v.value)),e("scroll",M,v.value)})},x=w=>{const C=Math.abs(w.target.getBoundingClientRect()[c.value.direction]-w[c.value.client]),T=o.value[c.value.offset]/2,k=C-T;u.traveled=Math.max(0,Math.min(k,v.value)),e("scroll",k,v.value)};return Ee(()=>t.scrollFrom,w=>{u.isDragging||(u.traveled=Math.ceil(w*v.value))}),Tn(()=>{y()}),()=>tt("div",{role:"presentation",ref:i,class:[r.b(),t.class,(t.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:it(x,["stop","prevent"]),onTouchstartPrevent:m},tt("div",{ref:o,class:a.e("thumb"),style:p.value,onMousedown:m},[]))}}),cK=({name:t,getOffset:e,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>ie({name:t??"ElVirtualList",props:oK,emits:[WS,jS],setup(c,{emit:f,expose:d}){u(c);const h=wt(),p=De("vl"),v=z(s(c,h)),g=rK(),y=z(),m=z(),b=z(),_=z({isScrolling:!1,scrollDir:"forward",scrollOffset:lt(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),x=O(()=>{const{total:Y,cache:oe}=c,{isScrolling:te,scrollDir:re,scrollOffset:ne}=S(_);if(Y===0)return[0,0,0,0];const J=i(c,ne,S(v)),he=o(c,J,ne,S(v)),ue=!te||re===KS?Math.max(1,oe):1,X=!te||re===wh?Math.max(1,oe):1;return[Math.max(0,J-ue),Math.max(0,Math.min(Y-1,he+X)),J,he]}),w=O(()=>a(c,S(v))),C=O(()=>z0(c.layout)),T=O(()=>[{position:"relative",[`overflow-${C.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:lt(c.height)?`${c.height}px`:c.height,width:lt(c.width)?`${c.width}px`:c.width},c.style]),k=O(()=>{const Y=S(w),oe=S(C);return{height:oe?"100%":`${Y}px`,pointerEvents:S(_).isScrolling?"none":void 0,width:oe?`${Y}px`:"100%"}}),E=O(()=>C.value?c.width:c.height),{onWheel:M}=q3e({atStartEdge:O(()=>_.value.scrollOffset<=0),atEndEdge:O(()=>_.value.scrollOffset>=w.value),layout:O(()=>c.layout)},Y=>{var oe,te;(te=(oe=b.value).onMouseUp)==null||te.call(oe),N(Math.min(_.value.scrollOffset+Y,w.value-E.value))}),D=()=>{const{total:Y}=c;if(Y>0){const[ne,J,he,ue]=S(x);f(WS,ne,J,he,ue)}const{scrollDir:oe,scrollOffset:te,updateRequested:re}=S(_);f(jS,oe,te,re)},R=Y=>{const{clientHeight:oe,scrollHeight:te,scrollTop:re}=Y.currentTarget,ne=S(_);if(ne.scrollOffset===re)return;const J=Math.max(0,Math.min(re,te-oe));_.value={...ne,isScrolling:!0,scrollDir:wf(ne.scrollOffset,J),scrollOffset:J,updateRequested:!1},Xe($)},A=Y=>{const{clientWidth:oe,scrollLeft:te,scrollWidth:re}=Y.currentTarget,ne=S(_);if(ne.scrollOffset===te)return;const{direction:J}=c;let he=te;if(J===Gh)switch(XS()){case F0:{he=-te;break}case SA:{he=re-oe-te;break}}he=Math.max(0,Math.min(he,re-oe)),_.value={...ne,isScrolling:!0,scrollDir:wf(ne.scrollOffset,he),scrollOffset:he,updateRequested:!1},Xe($)},V=Y=>{S(C)?A(Y):R(Y),D()},P=(Y,oe)=>{const te=(w.value-E.value)/oe*Y;N(Math.min(w.value-E.value,te))},N=Y=>{Y=Math.max(Y,0),Y!==S(_).scrollOffset&&(_.value={...S(_),scrollOffset:Y,scrollDir:wf(S(_).scrollOffset,Y),updateRequested:!0},Xe($))},I=(Y,oe=Ii)=>{const{scrollOffset:te}=S(_);Y=Math.max(0,Math.min(Y,c.total-1)),N(e(c,Y,oe,te,S(v)))},L=Y=>{const{direction:oe,itemSize:te,layout:re}=c,ne=g.value(l&&te,l&&re,l&&oe);let J;if(Gt(ne,String(Y)))J=ne[Y];else{const he=r(c,Y,S(v)),ue=n(c,Y,S(v)),X=S(C),K=oe===Gh,ee=X?he:0;ne[Y]=J={position:"absolute",left:K?void 0:`${ee}px`,right:K?`${ee}px`:void 0,top:X?0:`${he}px`,height:X?"100%":`${ue}px`,width:X?`${ue}px`:"100%"}}return J},$=()=>{_.value.isScrolling=!1,Xe(()=>{g.value(-1,null,null)})},U=()=>{const Y=y.value;Y&&(Y.scrollTop=0)};ht(()=>{if(!Ut)return;const{initScrollOffset:Y}=c,oe=S(y);lt(Y)&&oe&&(S(C)?oe.scrollLeft=Y:oe.scrollTop=Y),D()}),As(()=>{const{direction:Y,layout:oe}=c,{scrollOffset:te,updateRequested:re}=S(_),ne=S(y);if(re&&ne)if(oe===_v)if(Y===Gh)switch(XS()){case F0:{ne.scrollLeft=-te;break}case bA:{ne.scrollLeft=te;break}default:{const{clientWidth:J,scrollWidth:he}=ne;ne.scrollLeft=he-J-te;break}}else ne.scrollLeft=te;else ne.scrollTop=te});const j={ns:p,clientSize:E,estimatedTotalSize:w,windowStyle:T,windowRef:y,innerRef:m,innerStyle:k,itemsToRender:x,scrollbarRef:b,states:_,getItemStyle:L,onScroll:V,onScrollbarScroll:P,onWheel:M,scrollTo:N,scrollToItem:I,resetScrollTop:U};return d({windowRef:y,innerRef:m,getItemStyleCache:g,scrollTo:N,scrollToItem:I,resetScrollTop:U,states:_}),j},render(c){var f;const{$slots:d,className:h,clientSize:p,containerElement:v,data:g,getItemStyle:y,innerElement:m,itemsToRender:b,innerStyle:_,layout:x,total:w,onScroll:C,onScrollbarScroll:T,onWheel:k,states:E,useIsScrolling:M,windowStyle:D,ns:R}=c,[A,V]=b,P=Et(v),N=Et(m),I=[];if(w>0)for(let j=A;j<=V;j++)I.push((f=d.default)==null?void 0:f.call(d,{data:g,key:j,index:j,isScrolling:M?E.isScrolling:void 0,style:y(j)}));const L=[tt(N,{style:_,ref:"innerRef"},ft(N)?I:{default:()=>I})],$=tt(lk,{ref:"scrollbarRef",clientSize:p,layout:x,onScroll:T,ratio:p*100/this.estimatedTotalSize,scrollFrom:E.scrollOffset/(this.estimatedTotalSize-p),total:w}),U=tt(P,{class:[R.e("window"),h],style:D,onScroll:C,onWheel:k,ref:"windowRef",key:0},ft(P)?[L]:{default:()=>[L]});return tt("div",{key:0,class:[R.e("wrapper"),E.scrollbarAlwaysOn?"always-on":""]},[U,$])}}),fK=cK({name:"ElFixedSizeList",getItemOffset:({itemSize:t},e)=>e*t,getItemSize:({itemSize:t})=>t,getEstimatedTotalSize:({total:t,itemSize:e})=>e*t,getOffset:({height:t,total:e,itemSize:n,layout:r,width:a},i,o,s)=>{const l=z0(r)?a:t,u=Math.max(0,e*n-l),c=Math.min(u,i*n),f=Math.max(0,(i+1)*n-l);switch(o===ux&&(s>=f-l&&s<=c+l?o=Ii:o=ds),o){case V0:return c;case P0:return f;case ds:{const d=Math.round(f+(c-f)/2);return du+Math.floor(l/2)?u:d}case Ii:default:return s>=f&&s<=c?s:sMath.max(0,Math.min(t-1,Math.floor(n/e))),getStopIndexForStartIndex:({height:t,total:e,itemSize:n,layout:r,width:a},i,o)=>{const s=i*n,l=z0(r)?a:t,u=Math.ceil((l+o-s)/n);return Math.max(0,Math.min(e-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),xh=(t,e,n)=>{const{itemSize:r}=t,{items:a,lastVisitedIndex:i}=n;if(e>i){let o=0;if(i>=0){const s=a[i];o=s.offset+s.size}for(let s=i+1;s<=e;s++){const l=r(s);a[s]={offset:o,size:l},o+=l}n.lastVisitedIndex=e}return a[e]},J3e=(t,e,n)=>{const{items:r,lastVisitedIndex:a}=e;return(a>0?r[a].offset:0)>=n?dK(t,e,0,a,n):e$e(t,e,Math.max(0,a),n)},dK=(t,e,n,r,a)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),o=xh(t,i,e).offset;if(o===a)return i;oa&&(r=i-1)}return Math.max(0,n-1)},e$e=(t,e,n,r)=>{const{total:a}=t;let i=1;for(;n{let a=0;if(r>=t&&(r=t-1),r>=0){const s=e[r];a=s.offset+s.size}const o=(t-r-1)*n;return a+o},t$e=cK({name:"ElDynamicSizeList",getItemOffset:(t,e,n)=>xh(t,e,n).offset,getItemSize:(t,e,{items:n})=>n[e].size,getEstimatedTotalSize:DV,getOffset:(t,e,n,r,a)=>{const{height:i,layout:o,width:s}=t,l=z0(o)?s:i,u=xh(t,e,a),c=DV(t,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(n===ux&&(r>=d-l&&r<=f+l?n=Ii:n=ds),n){case V0:return f;case P0:return d;case ds:return Math.round(d+(f-d)/2);case Ii:default:return r>=d&&r<=f?r:rJ3e(t,n,e),getStopIndexForStartIndex:(t,e,n,r)=>{const{height:a,total:i,layout:o,width:s}=t,l=z0(o)?s:a,u=xh(t,e,r),c=n+l;let f=u.offset+u.size,d=e;for(;d{var i,o;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,r-1),(i=e.exposed)==null||i.getItemStyleCache(-1),a&&((o=e.proxy)==null||o.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:t})=>{}}),n$e=({atXEndEdge:t,atXStartEdge:e,atYEndEdge:n,atYStartEdge:r},a)=>{let i=null,o=0,s=0;const l=(c,f)=>{const d=c<=0&&e.value||c>=0&&t.value,h=f<=0&&r.value||f>=0&&n.value;return d&&h};return{hasReachedEdge:l,onWheel:c=>{Zw(i);let f=c.deltaX,d=c.deltaY;Math.abs(f)>Math.abs(d)?d=0:f=0,c.shiftKey&&d!==0&&(f=d,d=0),!(l(o,s)&&l(o+f,s+d))&&(o+=f,s+=d,c.preventDefault(),i=vv(()=>{a(o,s),o=0,s=0}))}}},hK=({name:t,clearCache:e,getColumnPosition:n,getColumnStartIndexForOffset:r,getColumnStopIndexForStartIndex:a,getEstimatedTotalHeight:i,getEstimatedTotalWidth:o,getColumnOffset:s,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:f,initCache:d,injectToInstance:h,validateProps:p})=>ie({name:t??"ElVirtualList",props:Vf,emits:[WS,jS],setup(v,{emit:g,expose:y,slots:m}){const b=De("vl");p(v);const _=wt(),x=z(d(v,_));h==null||h(_,x);const w=z(),C=z(),T=z(),k=z(null),E=z({isScrolling:!1,scrollLeft:lt(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:lt(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:wh,yAxisScrollDir:wh}),M=rK(),D=O(()=>Number.parseInt(`${v.height}`,10)),R=O(()=>Number.parseInt(`${v.width}`,10)),A=O(()=>{const{totalColumn:be,totalRow:Me,columnCache:Se}=v,{isScrolling:xe,xAxisScrollDir:ke,scrollLeft:ge}=S(E);if(be===0||Me===0)return[0,0,0,0];const Ve=r(v,ge,S(x)),Ke=a(v,Ve,ge,S(x)),Le=!xe||ke===KS?Math.max(1,Se):1,Ue=!xe||ke===wh?Math.max(1,Se):1;return[Math.max(0,Ve-Le),Math.max(0,Math.min(be-1,Ke+Ue)),Ve,Ke]}),V=O(()=>{const{totalColumn:be,totalRow:Me,rowCache:Se}=v,{isScrolling:xe,yAxisScrollDir:ke,scrollTop:ge}=S(E);if(be===0||Me===0)return[0,0,0,0];const Ve=c(v,ge,S(x)),Ke=f(v,Ve,ge,S(x)),Le=!xe||ke===KS?Math.max(1,Se):1,Ue=!xe||ke===wh?Math.max(1,Se):1;return[Math.max(0,Ve-Le),Math.max(0,Math.min(Me-1,Ke+Ue)),Ve,Ke]}),P=O(()=>i(v,S(x))),N=O(()=>o(v,S(x))),I=O(()=>{var be;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:lt(v.height)?`${v.height}px`:v.height,width:lt(v.width)?`${v.width}px`:v.width},(be=v.style)!=null?be:{}]}),L=O(()=>{const be=`${S(N)}px`;return{height:`${S(P)}px`,pointerEvents:S(E).isScrolling?"none":void 0,width:be}}),$=()=>{const{totalColumn:be,totalRow:Me}=v;if(be>0&&Me>0){const[Ke,Le,Ue,st]=S(A),[bt,At,rt,_e]=S(V);g(WS,{columnCacheStart:Ke,columnCacheEnd:Le,rowCacheStart:bt,rowCacheEnd:At,columnVisibleStart:Ue,columnVisibleEnd:st,rowVisibleStart:rt,rowVisibleEnd:_e})}const{scrollLeft:Se,scrollTop:xe,updateRequested:ke,xAxisScrollDir:ge,yAxisScrollDir:Ve}=S(E);g(jS,{xAxisScrollDir:ge,scrollLeft:Se,yAxisScrollDir:Ve,scrollTop:xe,updateRequested:ke})},U=be=>{const{clientHeight:Me,clientWidth:Se,scrollHeight:xe,scrollLeft:ke,scrollTop:ge,scrollWidth:Ve}=be.currentTarget,Ke=S(E);if(Ke.scrollTop===ge&&Ke.scrollLeft===ke)return;let Le=ke;if(kV(v.direction))switch(XS()){case F0:Le=-ke;break;case SA:Le=Ve-Se-ke;break}E.value={...Ke,isScrolling:!0,scrollLeft:Le,scrollTop:Math.max(0,Math.min(ge,xe-Me)),updateRequested:!0,xAxisScrollDir:wf(Ke.scrollLeft,Le),yAxisScrollDir:wf(Ke.scrollTop,ge)},Xe(()=>J()),he(),$()},j=(be,Me)=>{const Se=S(D),xe=(P.value-Se)/Me*be;te({scrollTop:Math.min(P.value-Se,xe)})},Y=(be,Me)=>{const Se=S(R),xe=(N.value-Se)/Me*be;te({scrollLeft:Math.min(N.value-Se,xe)})},{onWheel:oe}=n$e({atXStartEdge:O(()=>E.value.scrollLeft<=0),atXEndEdge:O(()=>E.value.scrollLeft>=N.value-S(R)),atYStartEdge:O(()=>E.value.scrollTop<=0),atYEndEdge:O(()=>E.value.scrollTop>=P.value-S(D))},(be,Me)=>{var Se,xe,ke,ge;(xe=(Se=C.value)==null?void 0:Se.onMouseUp)==null||xe.call(Se),(ge=(ke=T.value)==null?void 0:ke.onMouseUp)==null||ge.call(ke);const Ve=S(R),Ke=S(D);te({scrollLeft:Math.min(E.value.scrollLeft+be,N.value-Ve),scrollTop:Math.min(E.value.scrollTop+Me,P.value-Ke)})}),te=({scrollLeft:be=E.value.scrollLeft,scrollTop:Me=E.value.scrollTop})=>{be=Math.max(be,0),Me=Math.max(Me,0);const Se=S(E);Me===Se.scrollTop&&be===Se.scrollLeft||(E.value={...Se,xAxisScrollDir:wf(Se.scrollLeft,be),yAxisScrollDir:wf(Se.scrollTop,Me),scrollLeft:be,scrollTop:Me,updateRequested:!0},Xe(()=>J()),he(),$())},re=(be=0,Me=0,Se=Ii)=>{const xe=S(E);Me=Math.max(0,Math.min(Me,v.totalColumn-1)),be=Math.max(0,Math.min(be,v.totalRow-1));const ke=c9(b.namespace.value),ge=S(x),Ve=i(v,ge),Ke=o(v,ge);te({scrollLeft:s(v,Me,Se,xe.scrollLeft,ge,Ke>v.width?ke:0),scrollTop:l(v,be,Se,xe.scrollTop,ge,Ve>v.height?ke:0)})},ne=(be,Me)=>{const{columnWidth:Se,direction:xe,rowHeight:ke}=v,ge=M.value(e&&Se,e&&ke,e&&xe),Ve=`${be},${Me}`;if(Gt(ge,Ve))return ge[Ve];{const[,Ke]=n(v,Me,S(x)),Le=S(x),Ue=kV(xe),[st,bt]=u(v,be,Le),[At]=n(v,Me,Le);return ge[Ve]={position:"absolute",left:Ue?void 0:`${Ke}px`,right:Ue?`${Ke}px`:void 0,top:`${bt}px`,height:`${st}px`,width:`${At}px`},ge[Ve]}},J=()=>{E.value.isScrolling=!1,Xe(()=>{M.value(-1,null,null)})};ht(()=>{if(!Ut)return;const{initScrollLeft:be,initScrollTop:Me}=v,Se=S(w);Se&&(lt(be)&&(Se.scrollLeft=be),lt(Me)&&(Se.scrollTop=Me)),$()});const he=()=>{const{direction:be}=v,{scrollLeft:Me,scrollTop:Se,updateRequested:xe}=S(E),ke=S(w);if(xe&&ke){if(be===Gh)switch(XS()){case F0:{ke.scrollLeft=-Me;break}case bA:{ke.scrollLeft=Me;break}default:{const{clientWidth:ge,scrollWidth:Ve}=ke;ke.scrollLeft=Ve-ge-Me;break}}else ke.scrollLeft=Math.max(0,Me);ke.scrollTop=Math.max(0,Se)}},{resetAfterColumnIndex:ue,resetAfterRowIndex:X,resetAfter:K}=_.proxy;y({windowRef:w,innerRef:k,getItemStyleCache:M,scrollTo:te,scrollToItem:re,states:E,resetAfterColumnIndex:ue,resetAfterRowIndex:X,resetAfter:K});const ee=()=>{const{scrollbarAlwaysOn:be,scrollbarStartGap:Me,scrollbarEndGap:Se,totalColumn:xe,totalRow:ke}=v,ge=S(R),Ve=S(D),Ke=S(N),Le=S(P),{scrollLeft:Ue,scrollTop:st}=S(E),bt=tt(lk,{ref:C,alwaysOn:be,startGap:Me,endGap:Se,class:b.e("horizontal"),clientSize:ge,layout:"horizontal",onScroll:Y,ratio:ge*100/Ke,scrollFrom:Ue/(Ke-ge),total:ke,visible:!0}),At=tt(lk,{ref:T,alwaysOn:be,startGap:Me,endGap:Se,class:b.e("vertical"),clientSize:Ve,layout:"vertical",onScroll:j,ratio:Ve*100/Le,scrollFrom:st/(Le-Ve),total:xe,visible:!0});return{horizontalScrollbar:bt,verticalScrollbar:At}},se=()=>{var be;const[Me,Se]=S(A),[xe,ke]=S(V),{data:ge,totalColumn:Ve,totalRow:Ke,useIsScrolling:Le,itemKey:Ue}=v,st=[];if(Ke>0&&Ve>0)for(let bt=xe;bt<=ke;bt++)for(let At=Me;At<=Se;At++)st.push((be=m.default)==null?void 0:be.call(m,{columnIndex:At,data:ge,key:Ue({columnIndex:At,data:ge,rowIndex:bt}),isScrolling:Le?S(E).isScrolling:void 0,style:ne(bt,At),rowIndex:bt}));return st},ye=()=>{const be=Et(v.innerElement),Me=se();return[tt(be,{style:S(L),ref:k},ft(be)?Me:{default:()=>Me})]};return()=>{const be=Et(v.containerElement),{horizontalScrollbar:Me,verticalScrollbar:Se}=ee(),xe=ye();return tt("div",{key:0,class:b.e("wrapper"),role:v.role},[tt(be,{class:v.className,style:S(I),onScroll:U,onWheel:oe,ref:w},ft(be)?xe:{default:()=>xe}),Me,Se])}}}),r$e=hK({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:t},e)=>[t,e*t],getRowPosition:({rowHeight:t},e)=>[t,e*t],getEstimatedTotalHeight:({totalRow:t,rowHeight:e})=>e*t,getEstimatedTotalWidth:({totalColumn:t,columnWidth:e})=>e*t,getColumnOffset:({totalColumn:t,columnWidth:e,width:n},r,a,i,o,s)=>{n=Number(n);const l=Math.max(0,t*e-n),u=Math.min(l,r*e),c=Math.max(0,r*e-n+s+e);switch(a==="smart"&&(i>=c-n&&i<=u+n?a=Ii:a=ds),a){case V0:return u;case P0:return c;case ds:{const f=Math.round(c+(u-c)/2);return fl+Math.floor(n/2)?l:f}case Ii:default:return i>=c&&i<=u?i:c>u||i{e=Number(e);const l=Math.max(0,n*t-e),u=Math.min(l,r*t),c=Math.max(0,r*t-e+s+t);switch(a===ux&&(i>=c-e&&i<=u+e?a=Ii:a=ds),a){case V0:return u;case P0:return c;case ds:{const f=Math.round(c+(u-c)/2);return fl+Math.floor(e/2)?l:f}case Ii:default:return i>=c&&i<=u?i:c>u||iMath.max(0,Math.min(e-1,Math.floor(n/t))),getColumnStopIndexForStartIndex:({columnWidth:t,totalColumn:e,width:n},r,a)=>{const i=r*t,o=Math.ceil((n+a-i)/t);return Math.max(0,Math.min(e-1,r+o-1))},getRowStartIndexForOffset:({rowHeight:t,totalRow:e},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getRowStopIndexForStartIndex:({rowHeight:t,totalRow:e,height:n},r,a)=>{const i=r*t,o=Math.ceil((n+a-i)/t);return Math.max(0,Math.min(e-1,r+o-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:t,rowHeight:e})=>{}}),{max:qS,min:vK,floor:pK}=Math,a$e={column:"columnWidth",row:"rowHeight"},uk={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Qs=(t,e,n,r)=>{const[a,i,o]=[n[r],t[a$e[r]],n[uk[r]]];if(e>o){let s=0;if(o>=0){const l=a[o];s=l.offset+l.size}for(let l=o+1;l<=e;l++){const u=i(l);a[l]={offset:s,size:u},s+=u}n[uk[r]]=e}return a[e]},gK=(t,e,n,r,a,i)=>{for(;n<=r;){const o=n+pK((r-n)/2),s=Qs(t,o,e,i).offset;if(s===a)return o;s{const i=a==="column"?t.totalColumn:t.totalRow;let o=1;for(;n{const[a,i]=[e[r],e[uk[r]]];return(i>0?a[i].offset:0)>=n?gK(t,e,0,i,n,r):i$e(t,e,qS(0,i),n,r)},yK=({totalRow:t},{estimatedRowHeight:e,lastVisitedRowIndex:n,row:r})=>{let a=0;if(n>=t&&(n=t-1),n>=0){const s=r[n];a=s.offset+s.size}const o=(t-n-1)*e;return a+o},mK=({totalColumn:t},{column:e,estimatedColumnWidth:n,lastVisitedColumnIndex:r})=>{let a=0;if(r>t&&(r=t-1),r>=0){const s=e[r];a=s.offset+s.size}const o=(t-r-1)*n;return a+o},o$e={column:mK,row:yK},LV=(t,e,n,r,a,i,o)=>{const[s,l]=[i==="row"?t.height:t.width,o$e[i]],u=Qs(t,e,a,i),c=l(t,a),f=qS(0,vK(c-s,u.offset)),d=qS(0,u.offset-s+o+u.size);switch(n===ux&&(r>=d-s&&r<=f+s?n=Ii:n=ds),n){case V0:return f;case P0:return d;case ds:return Math.round(d+(f-d)/2);case Ii:default:return r>=d&&r<=f?r:d>f||r{const r=Qs(t,e,n,"column");return[r.size,r.offset]},getRowPosition:(t,e,n)=>{const r=Qs(t,e,n,"row");return[r.size,r.offset]},getColumnOffset:(t,e,n,r,a,i)=>LV(t,e,n,r,a,"column",i),getRowOffset:(t,e,n,r,a,i)=>LV(t,e,n,r,a,"row",i),getColumnStartIndexForOffset:(t,e,n)=>RV(t,n,e,"column"),getColumnStopIndexForStartIndex:(t,e,n,r)=>{const a=Qs(t,e,r,"column"),i=n+t.width;let o=a.offset+a.size,s=e;for(;sRV(t,n,e,"row"),getRowStopIndexForStartIndex:(t,e,n,r)=>{const{totalRow:a,height:i}=t,o=Qs(t,e,r,"row"),s=n+i;let l=o.size+o.offset,u=e;for(;u{const n=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=br(s)?!0:s,lt(i)&&(e.value.lastVisitedColumnIndex=Math.min(e.value.lastVisitedColumnIndex,i-1)),lt(o)&&(e.value.lastVisitedRowIndex=Math.min(e.value.lastVisitedRowIndex,o-1)),(l=t.exposed)==null||l.getItemStyleCache.value(-1,null,null),s&&((u=t.proxy)==null||u.$forceUpdate())},r=(i,o)=>{n({columnIndex:i},o)},a=(i,o)=>{n({rowIndex:i},o)};Object.assign(t.proxy,{resetAfterColumnIndex:r,resetAfterRowIndex:a,resetAfter:n})},initCache:({estimatedColumnWidth:t=nk,estimatedRowHeight:e=nk})=>({column:{},estimatedColumnWidth:t,estimatedRowHeight:e,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:t,rowHeight:e})=>{}}),l$e=ie({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:De("select")}}});function u$e(t,e,n,r,a,i){return t.item.isTitle?(B(),q("div",{key:0,class:F(t.ns.be("group","title")),style:qe([t.style,{lineHeight:`${t.height}px`}])},Ae(t.item.label),7)):(B(),q("div",{key:1,class:F(t.ns.be("group","split")),style:qe(t.style)},[G("span",{class:F(t.ns.be("group","split-dash")),style:qe({top:`${t.height/2}px`})},null,6)],6))}var c$e=Ne(l$e,[["render",u$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function f$e(t,{emit:e}){return{hoverItem:()=>{t.disabled||e("hover",t.index)},selectOptionClick:()=>{t.disabled||e("select",t.item,t.index)}}}const d$e={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:ic},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:Nr.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:Xw},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:fe(String),values:pd,default:"bottom-start"}},h$e={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},v$e=ie({props:h$e,emits:["select","hover"],setup(t,{emit:e}){const n=De("select"),{hoverItem:r,selectOptionClick:a}=f$e(t,{emit:e});return{ns:n,hoverItem:r,selectOptionClick:a}}}),p$e=["aria-selected"];function g$e(t,e,n,r,a,i){return B(),q("li",{"aria-selected":t.selected,style:qe(t.style),class:F([t.ns.be("dropdown","option-item"),t.ns.is("selected",t.selected),t.ns.is("disabled",t.disabled),t.ns.is("created",t.created),{hover:t.hovering}]),onMouseenter:e[0]||(e[0]=(...o)=>t.hoverItem&&t.hoverItem(...o)),onClick:e[1]||(e[1]=it((...o)=>t.selectOptionClick&&t.selectOptionClick(...o),["stop"]))},[Te(t.$slots,"default",{item:t.item,index:t.index,disabled:t.disabled},()=>[G("span",null,Ae(t.item.label),1)])],46,p$e)}var y$e=Ne(v$e,[["render",g$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const bK=Symbol("ElSelectV2Injection");var m$e=ie({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(t,{slots:e,expose:n}){const r=We(bK),a=De("select"),i=z([]),o=z(),s=O(()=>t.data.length);Ee(()=>s.value,()=>{var T,k;(k=(T=r.popper.value).updatePopper)==null||k.call(T)});const l=O(()=>br(r.props.estimatedOptionHeight)),u=O(()=>l.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:T=>i.value[T]}),c=(T=[],k)=>{const{props:{valueKey:E}}=r;return Lt(k)?T&&T.some(M=>On(M,E)===On(k,E)):T.includes(k)},f=(T,k)=>{if(Lt(k)){const{valueKey:E}=r.props;return On(T,E)===On(k,E)}else return T===k},d=(T,k)=>{const{valueKey:E}=r.props;return r.props.multiple?c(T,On(k,E)):f(T,On(k,E))},h=(T,k)=>{const{disabled:E,multiple:M,multipleLimit:D}=r.props;return E||!k&&(M?D>0&&T.length>=D:!1)},p=T=>t.hoveringIndex===T;n({listRef:o,isSized:l,isItemDisabled:h,isItemHovering:p,isItemSelected:d,scrollToItem:T=>{const k=o.value;k&&k.scrollToItem(T)},resetScrollTop:()=>{const T=o.value;T&&T.resetScrollTop()}});const y=T=>{const{index:k,data:E,style:M}=T,D=S(l),{itemSize:R,estimatedSize:A}=S(u),{modelValue:V}=r.props,{onSelect:P,onHover:N}=r,I=E[k];if(I.type==="Group")return H(c$e,{item:I,style:M,height:D?R:A},null);const L=d(V,I),$=h(V,L),U=p(k);return H(y$e,kt(T,{selected:L,disabled:I.disabled||$,created:!!I.created,hovering:U,item:I,onSelect:P,onHover:N}),{default:j=>{var Y;return((Y=e.default)==null?void 0:Y.call(e,j))||H("span",null,[I.label])}})},{onKeyboardNavigate:m,onKeyboardSelect:b}=r,_=()=>{m("forward")},x=()=>{m("backward")},w=()=>{r.expanded=!1},C=T=>{const{code:k}=T,{tab:E,esc:M,down:D,up:R,enter:A}=et;switch(k!==E&&(T.preventDefault(),T.stopPropagation()),k){case E:case M:{w();break}case D:{_();break}case R:{x();break}case A:{b();break}}};return()=>{var T;const{data:k,width:E}=t,{height:M,multiple:D,scrollbarAlwaysOn:R}=r.props;if(k.length===0)return H("div",{class:a.b("dropdown"),style:{width:`${E}px`}},[(T=e.empty)==null?void 0:T.call(e)]);const A=S(l)?fK:t$e;return H("div",{class:[a.b("dropdown"),a.is("multiple",D)]},[H(A,kt({ref:o},S(u),{className:a.be("dropdown","list"),scrollbarAlwaysOn:R,data:k,height:M,width:E,total:k.length,onKeydown:C}),{default:V=>H(y,V,null)})])}}});function b$e(t,e){const n=z(0),r=z(null),a=O(()=>t.allowCreate&&t.filterable);function i(c){const f=d=>d.value===c;return t.options&&t.options.some(f)||e.createdOptions.some(f)}function o(c){a.value&&(t.multiple&&c.created?n.value++:r.value=c)}function s(c){if(a.value)if(c&&c.length>0&&!i(c)){const f={value:c,label:c,created:!0,disabled:!1};e.createdOptions.length>=n.value?e.createdOptions[n.value]=f:e.createdOptions.push(f)}else if(t.multiple)e.createdOptions.length=n.value;else{const f=r.value;e.createdOptions.length=0,f&&f.created&&e.createdOptions.push(f)}}function l(c){if(!a.value||!c||!c.created||c.created&&t.reserveKeyword&&e.inputValue===c.label)return;const f=e.createdOptions.findIndex(d=>d.value===c.value);~f&&(e.createdOptions.splice(f,1),n.value--)}function u(){a.value&&(e.createdOptions.length=0,n.value=0)}return{createNewOption:s,removeNewOption:l,selectNewOption:o,clearAllNewOption:u}}const S$e=t=>{const e=[];return t.forEach(n=>{He(n.options)?(e.push({label:n.label,isTitle:!0,type:"Group"}),n.options.forEach(r=>{e.push(r)}),e.push({type:"Group"})):e.push(n)}),e};function _$e(t){const e=z(!1);return{handleCompositionStart:()=>{e.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,s=o[o.length-1]||"";e.value=!qw(s)},handleCompositionEnd:i=>{e.value&&(e.value=!1,ut(t)&&t(i))}}}const AV="",OV=11,w$e={larget:51,default:42,small:33},x$e=(t,e)=>{const{t:n}=Kt(),r=De("select-v2"),a=De("input"),{form:i,formItem:o}=Va(),s=Qt({inputValue:AV,displayInputValue:AV,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),l=z(-1),u=z(-1),c=z(null),f=z(null),d=z(null),h=z(null),p=z(null),v=z(null),g=z(null),y=z(!1),m=O(()=>t.disabled||(i==null?void 0:i.disabled)),b=O(()=>{const pe=D.value.length*34;return pe>t.height?t.height:pe}),_=O(()=>!ur(t.modelValue)),x=O(()=>{const pe=t.multiple?Array.isArray(t.modelValue)&&t.modelValue.length>0:_.value;return t.clearable&&!m.value&&s.comboBoxHovering&&pe}),w=O(()=>t.remote&&t.filterable?"":jw),C=O(()=>w.value&&r.is("reverse",y.value)),T=O(()=>(o==null?void 0:o.validateState)||""),k=O(()=>$L[T.value]),E=O(()=>t.remote?300:0),M=O(()=>{const pe=D.value;return t.loading?t.loadingText||n("el.select.loading"):t.remote&&s.inputValue===""&&pe.length===0?!1:t.filterable&&s.inputValue&&pe.length>0?t.noMatchText||n("el.select.noMatch"):pe.length===0?t.noDataText||n("el.select.noData"):null}),D=O(()=>{const pe=ze=>{const Ot=s.inputValue,Xt=new RegExp(l9(Ot),"i");return Ot?Xt.test(ze.label||""):!0};return t.loading?[]:S$e(t.options.concat(s.createdOptions).map(ze=>{if(He(ze.options)){const Ot=ze.options.filter(pe);if(Ot.length>0)return{...ze,options:Ot}}else if(t.remote||pe(ze))return ze;return null}).filter(ze=>ze!==null))}),R=O(()=>{const pe=new Map;return D.value.forEach((ze,Ot)=>{pe.set(ge(ze),{option:ze,index:Ot})}),pe}),A=O(()=>D.value.every(pe=>pe.disabled)),V=hr(),P=O(()=>V.value==="small"?"small":"default"),N=O(()=>{const pe=v.value,ze=P.value||"default",Ot=pe?Number.parseInt(getComputedStyle(pe).paddingLeft):0,Xt=pe?Number.parseInt(getComputedStyle(pe).paddingRight):0;return s.selectWidth-Xt-Ot-w$e[ze]}),I=()=>{var pe;u.value=((pe=p.value)==null?void 0:pe.offsetWidth)||200},L=O(()=>({width:`${s.calculatedWidth===0?OV:Math.ceil(s.calculatedWidth)+OV}px`})),$=O(()=>He(t.modelValue)?t.modelValue.length===0&&!s.displayInputValue:t.filterable?s.displayInputValue.length===0:!0),U=O(()=>{const pe=t.placeholder||n("el.select.placeholder");return t.multiple||ur(t.modelValue)?pe:s.selectedLabel}),j=O(()=>{var pe,ze;return(ze=(pe=h.value)==null?void 0:pe.popperRef)==null?void 0:ze.contentRef}),Y=O(()=>{if(t.multiple){const pe=t.modelValue.length;if(t.modelValue.length>0&&R.value.has(t.modelValue[pe-1])){const{index:ze}=R.value.get(t.modelValue[pe-1]);return ze}}else if(t.modelValue&&R.value.has(t.modelValue)){const{index:pe}=R.value.get(t.modelValue);return pe}return-1}),oe=O({get(){return y.value&&M.value!==!1},set(pe){y.value=pe}}),te=O(()=>s.cachedOptions.slice(0,t.maxCollapseTags)),re=O(()=>s.cachedOptions.slice(t.maxCollapseTags)),{createNewOption:ne,removeNewOption:J,selectNewOption:he,clearAllNewOption:ue}=b$e(t,s),{handleCompositionStart:X,handleCompositionUpdate:K,handleCompositionEnd:ee}=_$e(pe=>pr(pe)),se=()=>{var pe,ze,Ot;(ze=(pe=f.value)==null?void 0:pe.focus)==null||ze.call(pe),(Ot=h.value)==null||Ot.updatePopper()},ye=()=>{if(!t.automaticDropdown&&!m.value)return s.isComposing&&(s.softFocus=!0),Xe(()=>{var pe,ze;y.value=!y.value,(ze=(pe=f.value)==null?void 0:pe.focus)==null||ze.call(pe)})},we=()=>(t.filterable&&s.inputValue!==s.selectedLabel&&(s.query=s.selectedLabel),Me(s.inputValue),Xe(()=>{ne(s.inputValue)})),be=Oa(we,E.value),Me=pe=>{s.previousQuery!==pe&&(s.previousQuery=pe,t.filterable&&ut(t.filterMethod)?t.filterMethod(pe):t.filterable&&t.remote&&ut(t.remoteMethod)&&t.remoteMethod(pe))},Se=pe=>{Xa(t.modelValue,pe)||e(kn,pe)},xe=pe=>{e(Mt,pe),Se(pe),s.previousValue=pe==null?void 0:pe.toString()},ke=(pe=[],ze)=>{if(!Lt(ze))return pe.indexOf(ze);const Ot=t.valueKey;let Xt=-1;return pe.some((gr,yr)=>On(gr,Ot)===On(ze,Ot)?(Xt=yr,!0):!1),Xt},ge=pe=>Lt(pe)?On(pe,t.valueKey):pe,Ve=pe=>Lt(pe)?pe.label:pe,Ke=()=>Xe(()=>{var pe,ze;if(!f.value)return;const Ot=v.value;p.value.height=Ot.offsetHeight,y.value&&M.value!==!1&&((ze=(pe=h.value)==null?void 0:pe.updatePopper)==null||ze.call(pe))}),Le=()=>{var pe,ze;if(Ue(),I(),(ze=(pe=h.value)==null?void 0:pe.updatePopper)==null||ze.call(pe),t.multiple)return Ke()},Ue=()=>{const pe=v.value;pe&&(s.selectWidth=pe.getBoundingClientRect().width)},st=(pe,ze,Ot=!0)=>{var Xt,gr;if(t.multiple){let yr=t.modelValue.slice();const ta=ke(yr,ge(pe));ta>-1?(yr=[...yr.slice(0,ta),...yr.slice(ta+1)],s.cachedOptions.splice(ta,1),J(pe)):(t.multipleLimit<=0||yr.length{const{valueKey:Ot}=t,Xt=t.modelValue.indexOf(On(ze,Ot));if(Xt>-1&&!m.value){const gr=[...t.modelValue.slice(0,Xt),...t.modelValue.slice(Xt+1)];return s.cachedOptions.splice(Xt,1),xe(gr),e("remove-tag",On(ze,Ot)),s.softFocus=!0,J(ze),Xe(se)}pe.stopPropagation()},At=pe=>{const ze=s.isComposing;s.isComposing=!0,s.softFocus?s.softFocus=!1:ze||e("focus",pe)},rt=pe=>(s.softFocus=!1,Xe(()=>{var ze,Ot;(Ot=(ze=f.value)==null?void 0:ze.blur)==null||Ot.call(ze),g.value&&(s.calculatedWidth=g.value.getBoundingClientRect().width),s.isSilentBlur?s.isSilentBlur=!1:s.isComposing&&e("blur",pe),s.isComposing=!1})),_e=()=>{s.displayInputValue.length>0?Re(""):y.value=!1},ve=pe=>{if(s.displayInputValue.length===0){pe.preventDefault();const ze=t.modelValue.slice();ze.pop(),J(s.cachedOptions.pop()),xe(ze)}},ce=()=>{let pe;return He(t.modelValue)?pe=[]:pe=void 0,s.softFocus=!0,t.multiple?s.cachedOptions=[]:s.selectedLabel="",y.value=!1,xe(pe),e("clear"),ue(),Xe(se)},Re=pe=>{s.displayInputValue=pe,s.inputValue=pe},ae=(pe,ze=void 0)=>{const Ot=D.value;if(!["forward","backward"].includes(pe)||m.value||Ot.length<=0||A.value)return;if(!y.value)return ye();ze===void 0&&(ze=s.hoveringIndex);let Xt=-1;pe==="forward"?(Xt=ze+1,Xt>=Ot.length&&(Xt=0)):pe==="backward"&&(Xt=ze-1,(Xt<0||Xt>=Ot.length)&&(Xt=Ot.length-1));const gr=Ot[Xt];if(gr.disabled||gr.type==="Group")return ae(pe,Xt);dt(Xt),Ce(Xt)},Fe=()=>{if(y.value)~s.hoveringIndex&&D.value[s.hoveringIndex]&&st(D.value[s.hoveringIndex],s.hoveringIndex,!1);else return ye()},dt=pe=>{s.hoveringIndex=pe},$t=()=>{s.hoveringIndex=-1},er=()=>{var pe;const ze=f.value;ze&&((pe=ze.focus)==null||pe.call(ze))},pr=pe=>{const ze=pe.target.value;if(Re(ze),s.displayInputValue.length>0&&!y.value&&(y.value=!0),s.calculatedWidth=g.value.getBoundingClientRect().width,t.multiple&&Ke(),t.remote)be();else return we()},Fa=()=>(y.value=!1,rt()),zr=()=>(s.inputValue=s.displayInputValue,Xe(()=>{~Y.value&&(dt(Y.value),Ce(s.hoveringIndex))})),Ce=pe=>{d.value.scrollToItem(pe)},Pe=()=>{if($t(),t.multiple)if(t.modelValue.length>0){let pe=!1;s.cachedOptions.length=0,s.previousValue=t.modelValue.toString();for(const ze of t.modelValue)if(R.value.has(ze)){const{index:Ot,option:Xt}=R.value.get(ze);s.cachedOptions.push(Xt),pe||dt(Ot),pe=!0}}else s.cachedOptions=[],s.previousValue=void 0;else if(_.value){s.previousValue=t.modelValue;const pe=D.value,ze=pe.findIndex(Ot=>ge(Ot)===ge(t.modelValue));~ze?(s.selectedLabel=pe[ze].label,dt(ze)):s.selectedLabel=`${t.modelValue}`}else s.selectedLabel="",s.previousValue=void 0;ue(),I()};return Ee(y,pe=>{var ze,Ot;e("visible-change",pe),pe?(Ot=(ze=h.value).update)==null||Ot.call(ze):(s.displayInputValue="",s.previousQuery=null,ne(""))}),Ee(()=>t.modelValue,(pe,ze)=>{var Ot;(!pe||pe.toString()!==s.previousValue)&&Pe(),!Xa(pe,ze)&&t.validateEvent&&((Ot=o==null?void 0:o.validate)==null||Ot.call(o,"change").catch(Xt=>void 0))},{deep:!0}),Ee(()=>t.options,()=>{const pe=f.value;(!pe||pe&&document.activeElement!==pe)&&Pe()},{deep:!0}),Ee(D,()=>Xe(d.value.resetScrollTop)),Ee(()=>oe.value,pe=>{pe||$t()}),ht(()=>{Pe()}),da(p,Le),{collapseTagSize:P,currentPlaceholder:U,expanded:y,emptyText:M,popupHeight:b,debounce:E,filteredOptions:D,iconComponent:w,iconReverse:C,inputWrapperStyle:L,popperSize:u,dropdownMenuVisible:oe,hasModelValue:_,shouldShowPlaceholder:$,selectDisabled:m,selectSize:V,showClearBtn:x,states:s,tagMaxWidth:N,nsSelectV2:r,nsInput:a,calculatorRef:g,controlRef:c,inputRef:f,menuRef:d,popper:h,selectRef:p,selectionRef:v,popperRef:j,validateState:T,validateIcon:k,showTagList:te,collapseTagList:re,debouncedOnInputChange:be,deleteTag:bt,getLabel:Ve,getValueKey:ge,handleBlur:rt,handleClear:ce,handleClickOutside:Fa,handleDel:ve,handleEsc:_e,handleFocus:At,handleMenuEnter:zr,handleResize:Le,toggleMenu:ye,scrollTo:Ce,onInput:pr,onKeyboardNavigate:ae,onKeyboardSelect:Fe,onSelect:st,onHover:dt,onUpdateInputValue:Re,handleCompositionStart:X,handleCompositionEnd:ee,handleCompositionUpdate:K}},C$e=ie({name:"ElSelectV2",components:{ElSelectMenu:m$e,ElTag:I0,ElTooltip:Na,ElIcon:Ye},directives:{ClickOutside:Wu,ModelText:iL},props:d$e,emits:[Mt,kn,"remove-tag","clear","visible-change","focus","blur"],setup(t,{emit:e}){const n=O(()=>{const{modelValue:a,multiple:i}=t,o=i?[]:void 0;return He(a)?i?a:o:i?o:a}),r=x$e(Qt({...kr(t),modelValue:n}),e);return Nt(bK,{props:Qt({...kr(t),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),T$e={key:0},E$e=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],M$e=["textContent"],k$e=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],D$e=["textContent"];function R$e(t,e,n,r,a,i){const o=Ge("el-tag"),s=Ge("el-tooltip"),l=Ge("el-icon"),u=Ge("el-select-menu"),c=m0("model-text"),f=m0("click-outside");return yt((B(),q("div",{ref:"selectRef",class:F([t.nsSelectV2.b(),t.nsSelectV2.m(t.selectSize)]),onClick:e[24]||(e[24]=it((...d)=>t.toggleMenu&&t.toggleMenu(...d),["stop"])),onMouseenter:e[25]||(e[25]=d=>t.states.comboBoxHovering=!0),onMouseleave:e[26]||(e[26]=d=>t.states.comboBoxHovering=!1)},[H(s,{ref:"popper",visible:t.dropdownMenuVisible,teleported:t.teleported,"popper-class":[t.nsSelectV2.e("popper"),t.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,placement:t.placement,pure:"",transition:`${t.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:t.persistent,onBeforeShow:t.handleMenuEnter,onHide:e[23]||(e[23]=d=>t.states.inputValue=t.states.displayInputValue)},{default:Z(()=>[G("div",{ref:"selectionRef",class:F([t.nsSelectV2.e("wrapper"),t.nsSelectV2.is("focused",t.states.isComposing||t.expanded),t.nsSelectV2.is("hovering",t.states.comboBoxHovering),t.nsSelectV2.is("filterable",t.filterable),t.nsSelectV2.is("disabled",t.selectDisabled)])},[t.$slots.prefix?(B(),q("div",T$e,[Te(t.$slots,"prefix")])):le("v-if",!0),t.multiple?(B(),q("div",{key:1,class:F(t.nsSelectV2.e("selection"))},[t.collapseTags&&t.modelValue.length>0?(B(),q(Ze,{key:0},[(B(!0),q(Ze,null,Pt(t.showTagList,d=>(B(),q("div",{key:t.getValueKey(d),class:F(t.nsSelectV2.e("selected-item"))},[H(o,{closable:!t.selectDisabled&&!(d!=null&&d.disable),size:t.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>t.deleteTag(h,d)},{default:Z(()=>[G("span",{class:F(t.nsSelectV2.e("tags-text")),style:qe({maxWidth:`${t.tagMaxWidth}px`})},Ae(d==null?void 0:d.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),G("div",{class:F(t.nsSelectV2.e("selected-item"))},[t.modelValue.length>t.maxCollapseTags?(B(),de(o,{key:0,closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""},{default:Z(()=>[t.collapseTagsTooltip?(B(),de(s,{key:0,disabled:t.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:!1},{default:Z(()=>[G("span",{class:F(t.nsSelectV2.e("tags-text")),style:qe({maxWidth:`${t.tagMaxWidth}px`})},"+ "+Ae(t.modelValue.length-t.maxCollapseTags),7)]),content:Z(()=>[G("div",{class:F(t.nsSelectV2.e("selection"))},[(B(!0),q(Ze,null,Pt(t.collapseTagList,d=>(B(),q("div",{key:t.getValueKey(d),class:F(t.nsSelectV2.e("selected-item"))},[H(o,{closable:!t.selectDisabled&&!d.disabled,size:t.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>t.deleteTag(h,d)},{default:Z(()=>[G("span",{class:F(t.nsSelectV2.e("tags-text")),style:qe({maxWidth:`${t.tagMaxWidth}px`})},Ae(t.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(B(),q("span",{key:1,class:F(t.nsSelectV2.e("tags-text")),style:qe({maxWidth:`${t.tagMaxWidth}px`})},"+ "+Ae(t.modelValue.length-t.maxCollapseTags),7))]),_:1},8,["size"])):le("v-if",!0)],2)],64)):(B(!0),q(Ze,{key:1},Pt(t.states.cachedOptions,d=>(B(),q("div",{key:t.getValueKey(d),class:F(t.nsSelectV2.e("selected-item"))},[H(o,{closable:!t.selectDisabled&&!d.disabled,size:t.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>t.deleteTag(h,d)},{default:Z(()=>[G("span",{class:F(t.nsSelectV2.e("tags-text")),style:qe({maxWidth:`${t.tagMaxWidth}px`})},Ae(t.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),G("div",{class:F([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-wrapper")]),style:qe(t.inputWrapperStyle)},[yt(G("input",{id:t.id,ref:"inputRef",autocomplete:t.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":t.expanded,"aria-labelledby":t.label,class:F([t.nsSelectV2.is(t.selectSize),t.nsSelectV2.e("combobox-input")]),disabled:t.disabled,role:"combobox",readonly:!t.filterable,spellcheck:"false",type:"text",name:t.name,unselectable:t.expanded?"on":void 0,"onUpdate:modelValue":e[0]||(e[0]=(...d)=>t.onUpdateInputValue&&t.onUpdateInputValue(...d)),onFocus:e[1]||(e[1]=(...d)=>t.handleFocus&&t.handleFocus(...d)),onBlur:e[2]||(e[2]=(...d)=>t.handleBlur&&t.handleBlur(...d)),onInput:e[3]||(e[3]=(...d)=>t.onInput&&t.onInput(...d)),onCompositionstart:e[4]||(e[4]=(...d)=>t.handleCompositionStart&&t.handleCompositionStart(...d)),onCompositionupdate:e[5]||(e[5]=(...d)=>t.handleCompositionUpdate&&t.handleCompositionUpdate(...d)),onCompositionend:e[6]||(e[6]=(...d)=>t.handleCompositionEnd&&t.handleCompositionEnd(...d)),onKeydown:[e[7]||(e[7]=jt(it(d=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),e[8]||(e[8]=jt(it(d=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),e[9]||(e[9]=jt(it((...d)=>t.onKeyboardSelect&&t.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),e[10]||(e[10]=jt(it((...d)=>t.handleEsc&&t.handleEsc(...d),["stop","prevent"]),["esc"])),e[11]||(e[11]=jt(it((...d)=>t.handleDel&&t.handleDel(...d),["stop"]),["delete"]))]},null,42,E$e),[[c,t.states.displayInputValue]]),t.filterable?(B(),q("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:F(t.nsSelectV2.e("input-calculator")),textContent:Ae(t.states.displayInputValue)},null,10,M$e)):le("v-if",!0)],6)],2)):(B(),q(Ze,{key:2},[G("div",{class:F([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-wrapper")])},[yt(G("input",{id:t.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":t.label,"aria-expanded":t.expanded,autocapitalize:"off",autocomplete:t.autocomplete,class:F(t.nsSelectV2.e("combobox-input")),disabled:t.disabled,name:t.name,role:"combobox",readonly:!t.filterable,spellcheck:"false",type:"text",unselectable:t.expanded?"on":void 0,onCompositionstart:e[12]||(e[12]=(...d)=>t.handleCompositionStart&&t.handleCompositionStart(...d)),onCompositionupdate:e[13]||(e[13]=(...d)=>t.handleCompositionUpdate&&t.handleCompositionUpdate(...d)),onCompositionend:e[14]||(e[14]=(...d)=>t.handleCompositionEnd&&t.handleCompositionEnd(...d)),onFocus:e[15]||(e[15]=(...d)=>t.handleFocus&&t.handleFocus(...d)),onBlur:e[16]||(e[16]=(...d)=>t.handleBlur&&t.handleBlur(...d)),onInput:e[17]||(e[17]=(...d)=>t.onInput&&t.onInput(...d)),onKeydown:[e[18]||(e[18]=jt(it(d=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),e[19]||(e[19]=jt(it(d=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),e[20]||(e[20]=jt(it((...d)=>t.onKeyboardSelect&&t.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),e[21]||(e[21]=jt(it((...d)=>t.handleEsc&&t.handleEsc(...d),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":e[22]||(e[22]=(...d)=>t.onUpdateInputValue&&t.onUpdateInputValue(...d))},null,42,k$e),[[c,t.states.displayInputValue]])],2),t.filterable?(B(),q("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:F([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-calculator")]),textContent:Ae(t.states.displayInputValue)},null,10,D$e)):le("v-if",!0)],64)),t.shouldShowPlaceholder?(B(),q("span",{key:3,class:F([t.nsSelectV2.e("placeholder"),t.nsSelectV2.is("transparent",t.multiple?t.modelValue.length===0:!t.hasModelValue)])},Ae(t.currentPlaceholder),3)):le("v-if",!0),G("span",{class:F(t.nsSelectV2.e("suffix"))},[t.iconComponent?yt((B(),de(l,{key:0,class:F([t.nsSelectV2.e("caret"),t.nsInput.e("icon"),t.iconReverse])},{default:Z(()=>[(B(),de(Et(t.iconComponent)))]),_:1},8,["class"])),[[qt,!t.showClearBtn]]):le("v-if",!0),t.showClearBtn&&t.clearIcon?(B(),de(l,{key:1,class:F([t.nsSelectV2.e("caret"),t.nsInput.e("icon")]),onClick:it(t.handleClear,["prevent","stop"])},{default:Z(()=>[(B(),de(Et(t.clearIcon)))]),_:1},8,["class","onClick"])):le("v-if",!0),t.validateState&&t.validateIcon?(B(),de(l,{key:2,class:F([t.nsInput.e("icon"),t.nsInput.e("validateIcon")])},{default:Z(()=>[(B(),de(Et(t.validateIcon)))]),_:1},8,["class"])):le("v-if",!0)],2)],2)]),content:Z(()=>[H(u,{ref:"menuRef",data:t.filteredOptions,width:t.popperSize,"hovering-index":t.states.hoveringIndex,"scrollbar-always-on":t.scrollbarAlwaysOn},{default:Z(d=>[Te(t.$slots,"default",So(Dw(d)))]),empty:Z(()=>[Te(t.$slots,"empty",{},()=>[G("p",{class:F(t.nsSelectV2.e("empty"))},Ae(t.emptyText?t.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[f,t.handleClickOutside,t.popperRef]])}var zb=Ne(C$e,[["render",R$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);zb.install=t=>{t.component(zb.name,zb)};const L$e=zb,A$e=L$e,O$e=$e({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),N$e=$e({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),$$e=ie({name:"ElSkeletonItem"}),I$e=ie({...$$e,props:N$e,setup(t){const e=De("skeleton");return(n,r)=>(B(),q("div",{class:F([S(e).e("item"),S(e).e(n.variant)])},[n.variant==="image"?(B(),de(S(P1e),{key:0})):le("v-if",!0)],2))}});var ZS=Ne(I$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const B$e=ie({name:"ElSkeleton"}),V$e=ie({...B$e,props:O$e,setup(t,{expose:e}){const n=t,r=De("skeleton"),a=V_e(Bn(n,"loading"),n.throttle);return e({uiLoading:a}),(i,o)=>S(a)?(B(),q("div",kt({key:0,class:[S(r).b(),S(r).is("animated",i.animated)]},i.$attrs),[(B(!0),q(Ze,null,Pt(i.count,s=>(B(),q(Ze,{key:s},[i.loading?Te(i.$slots,"template",{key:s},()=>[H(ZS,{class:F(S(r).is("first")),variant:"p"},null,8,["class"]),(B(!0),q(Ze,null,Pt(i.rows,l=>(B(),de(ZS,{key:l,class:F([S(r).e("paragraph"),S(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):le("v-if",!0)],64))),128))],16)):Te(i.$slots,"default",So(kt({key:1},i.$attrs)))}});var P$e=Ne(V$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const F$e=Tt(P$e,{SkeletonItem:ZS}),z$e=Hn(ZS),SK=Symbol("sliderContextKey"),G$e=$e({modelValue:{type:fe([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:qr,inputSize:qr,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:fe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:fe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:pd,default:"top"},marks:{type:fe(Object)},validateEvent:{type:Boolean,default:!0}}),Z2=t=>lt(t)||He(t)&&t.every(lt),H$e={[Mt]:Z2,[Da]:Z2,[kn]:Z2},U$e=(t,e,n)=>{const r=z();return ht(async()=>{t.range?(Array.isArray(t.modelValue)?(e.firstValue=Math.max(t.min,t.modelValue[0]),e.secondValue=Math.min(t.max,t.modelValue[1])):(e.firstValue=t.min,e.secondValue=t.max),e.oldValue=[e.firstValue,e.secondValue]):(typeof t.modelValue!="number"||Number.isNaN(t.modelValue)?e.firstValue=t.min:e.firstValue=Math.min(t.max,Math.max(t.min,t.modelValue)),e.oldValue=e.firstValue),Rn(window,"resize",n),await Xe(),n()}),{sliderWrapper:r}},W$e=t=>O(()=>t.marks?Object.keys(t.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=t.max&&n>=t.min).map(n=>({point:n,position:(n-t.min)*100/(t.max-t.min),mark:t.marks[n]})):[]),j$e=(t,e,n)=>{const{form:r,formItem:a}=Va(),i=Sn(),o=z(),s=z(),l={firstButton:o,secondButton:s},u=O(()=>t.disabled||(r==null?void 0:r.disabled)||!1),c=O(()=>Math.min(e.firstValue,e.secondValue)),f=O(()=>Math.max(e.firstValue,e.secondValue)),d=O(()=>t.range?`${100*(f.value-c.value)/(t.max-t.min)}%`:`${100*(e.firstValue-t.min)/(t.max-t.min)}%`),h=O(()=>t.range?`${100*(c.value-t.min)/(t.max-t.min)}%`:"0%"),p=O(()=>t.vertical?{height:t.height}:{}),v=O(()=>t.vertical?{height:d.value,bottom:h.value}:{width:d.value,left:h.value}),g=()=>{i.value&&(e.sliderSize=i.value[`client${t.vertical?"Height":"Width"}`])},y=M=>{const D=t.min+M*(t.max-t.min)/100;if(!t.range)return o;let R;return Math.abs(c.value-D)e.secondValue?"firstButton":"secondButton",l[R]},m=M=>{const D=y(M);return D.value.setPosition(M),D},b=M=>{e.firstValue=M,x(t.range?[c.value,f.value]:M)},_=M=>{e.secondValue=M,t.range&&x([c.value,f.value])},x=M=>{n(Mt,M),n(Da,M)},w=async()=>{await Xe(),n(kn,t.range?[c.value,f.value]:t.modelValue)},C=M=>{var D,R,A,V,P,N;if(u.value||e.dragging)return;g();let I=0;if(t.vertical){const L=(A=(R=(D=M.touches)==null?void 0:D.item(0))==null?void 0:R.clientY)!=null?A:M.clientY;I=(i.value.getBoundingClientRect().bottom-L)/e.sliderSize*100}else{const L=(N=(P=(V=M.touches)==null?void 0:V.item(0))==null?void 0:P.clientX)!=null?N:M.clientX,$=i.value.getBoundingClientRect().left;I=(L-$)/e.sliderSize*100}if(!(I<0||I>100))return m(I)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:p,barStyle:v,resetSize:g,setPosition:m,emitChange:w,onSliderWrapperPrevent:M=>{var D,R;((D=l.firstButton.value)!=null&&D.dragging||(R=l.secondButton.value)!=null&&R.dragging)&&M.preventDefault()},onSliderClick:M=>{C(M)&&w()},onSliderDown:async M=>{const D=C(M);D&&(await Xe(),D.value.onButtonDown(M))},setFirstValue:b,setSecondValue:_}},{left:K$e,down:Y$e,right:X$e,up:q$e,home:Z$e,end:Q$e,pageUp:J$e,pageDown:eIe}=et,tIe=(t,e,n)=>{const r=z(),a=z(!1),i=O(()=>e.value instanceof Function),o=O(()=>i.value&&e.value(t.modelValue)||t.modelValue),s=Oa(()=>{n.value&&(a.value=!0)},50),l=Oa(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},nIe=(t,e,n)=>{const{disabled:r,min:a,max:i,step:o,showTooltip:s,precision:l,sliderSize:u,formatTooltip:c,emitChange:f,resetSize:d,updateDragging:h}=We(SK),{tooltip:p,tooltipVisible:v,formatValue:g,displayTooltip:y,hideTooltip:m}=tIe(t,c,s),b=z(),_=O(()=>`${(t.modelValue-a.value)/(i.value-a.value)*100}%`),x=O(()=>t.vertical?{bottom:_.value}:{left:_.value}),w=()=>{e.hovering=!0,y()},C=()=>{e.hovering=!1,e.dragging||m()},T=j=>{r.value||(j.preventDefault(),I(j),window.addEventListener("mousemove",L),window.addEventListener("touchmove",L),window.addEventListener("mouseup",$),window.addEventListener("touchend",$),window.addEventListener("contextmenu",$),b.value.focus())},k=j=>{r.value||(e.newPosition=Number.parseFloat(_.value)+j/(i.value-a.value)*100,U(e.newPosition),f())},E=()=>{k(-o.value)},M=()=>{k(o.value)},D=()=>{k(-o.value*4)},R=()=>{k(o.value*4)},A=()=>{r.value||(U(0),f())},V=()=>{r.value||(U(100),f())},P=j=>{let Y=!0;[K$e,Y$e].includes(j.key)?E():[X$e,q$e].includes(j.key)?M():j.key===Z$e?A():j.key===Q$e?V():j.key===eIe?D():j.key===J$e?R():Y=!1,Y&&j.preventDefault()},N=j=>{let Y,oe;return j.type.startsWith("touch")?(oe=j.touches[0].clientY,Y=j.touches[0].clientX):(oe=j.clientY,Y=j.clientX),{clientX:Y,clientY:oe}},I=j=>{e.dragging=!0,e.isClick=!0;const{clientX:Y,clientY:oe}=N(j);t.vertical?e.startY=oe:e.startX=Y,e.startPosition=Number.parseFloat(_.value),e.newPosition=e.startPosition},L=j=>{if(e.dragging){e.isClick=!1,y(),d();let Y;const{clientX:oe,clientY:te}=N(j);t.vertical?(e.currentY=te,Y=(e.startY-e.currentY)/u.value*100):(e.currentX=oe,Y=(e.currentX-e.startX)/u.value*100),e.newPosition=e.startPosition+Y,U(e.newPosition)}},$=()=>{e.dragging&&(setTimeout(()=>{e.dragging=!1,e.hovering||m(),e.isClick||U(e.newPosition),f()},0),window.removeEventListener("mousemove",L),window.removeEventListener("touchmove",L),window.removeEventListener("mouseup",$),window.removeEventListener("touchend",$),window.removeEventListener("contextmenu",$))},U=async j=>{if(j===null||Number.isNaN(+j))return;j<0?j=0:j>100&&(j=100);const Y=100/((i.value-a.value)/o.value);let te=Math.round(j/Y)*Y*(i.value-a.value)*.01+a.value;te=Number.parseFloat(te.toFixed(l.value)),te!==t.modelValue&&n(Mt,te),!e.dragging&&t.modelValue!==e.oldValue&&(e.oldValue=t.modelValue),await Xe(),e.dragging&&y(),p.value.updatePopper()};return Ee(()=>e.dragging,j=>{h(j)}),{disabled:r,button:b,tooltip:p,tooltipVisible:v,showTooltip:s,wrapperStyle:x,formatValue:g,handleMouseEnter:w,handleMouseLeave:C,onButtonDown:T,onKeyDown:P,setPosition:U}},rIe=(t,e,n,r)=>({stops:O(()=>{if(!t.showStops||t.min>t.max)return[];if(t.step===0)return[];const o=(t.max-t.min)/t.step,s=100*t.step/(t.max-t.min),l=Array.from({length:o-1}).map((u,c)=>(c+1)*s);return t.range?l.filter(u=>u<100*(n.value-t.min)/(t.max-t.min)||u>100*(r.value-t.min)/(t.max-t.min)):l.filter(u=>u>100*(e.firstValue-t.min)/(t.max-t.min))}),getStopStyle:o=>t.vertical?{bottom:`${o}%`}:{left:`${o}%`}}),aIe=(t,e,n,r,a,i)=>{const o=u=>{a(Mt,u),a(Da,u)},s=()=>t.range?![n.value,r.value].every((u,c)=>u===e.oldValue[c]):t.modelValue!==e.oldValue,l=()=>{var u,c;t.min>t.max&&dr("Slider","min should not be greater than max.");const f=t.modelValue;t.range&&Array.isArray(f)?f[1]t.max?o([t.max,t.max]):f[0]t.max?o([f[0],t.max]):(e.firstValue=f[0],e.secondValue=f[1],s()&&(t.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(d=>void 0)),e.oldValue=f.slice())):!t.range&&typeof f=="number"&&!Number.isNaN(f)&&(ft.max?o(t.max):(e.firstValue=f,s()&&(t.validateEvent&&((c=i==null?void 0:i.validate)==null||c.call(i,"change").catch(d=>void 0)),e.oldValue=f)))};l(),Ee(()=>e.dragging,u=>{u||l()}),Ee(()=>t.modelValue,(u,c)=>{e.dragging||Array.isArray(u)&&Array.isArray(c)&&u.every((f,d)=>f===c[d])&&e.firstValue===u[0]&&e.secondValue===u[1]||l()},{deep:!0}),Ee(()=>[t.min,t.max],()=>{l()})},iIe=$e({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:pd,default:"top"}}),oIe={[Mt]:t=>lt(t)},sIe=["tabindex"],lIe=ie({name:"ElSliderButton"}),uIe=ie({...lIe,props:iIe,emits:oIe,setup(t,{expose:e,emit:n}){const r=t,a=De("slider"),i=Qt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:o,button:s,tooltip:l,showTooltip:u,tooltipVisible:c,wrapperStyle:f,formatValue:d,handleMouseEnter:h,handleMouseLeave:p,onButtonDown:v,onKeyDown:g,setPosition:y}=nIe(r,i,n),{hovering:m,dragging:b}=kr(i);return e({onButtonDown:v,onKeyDown:g,setPosition:y,hovering:m,dragging:b}),(_,x)=>(B(),q("div",{ref_key:"button",ref:s,class:F([S(a).e("button-wrapper"),{hover:S(m),dragging:S(b)}]),style:qe(S(f)),tabindex:S(o)?-1:0,onMouseenter:x[0]||(x[0]=(...w)=>S(h)&&S(h)(...w)),onMouseleave:x[1]||(x[1]=(...w)=>S(p)&&S(p)(...w)),onMousedown:x[2]||(x[2]=(...w)=>S(v)&&S(v)(...w)),onTouchstart:x[3]||(x[3]=(...w)=>S(v)&&S(v)(...w)),onFocus:x[4]||(x[4]=(...w)=>S(h)&&S(h)(...w)),onBlur:x[5]||(x[5]=(...w)=>S(p)&&S(p)(...w)),onKeydown:x[6]||(x[6]=(...w)=>S(g)&&S(g)(...w))},[H(S(Na),{ref_key:"tooltip",ref:l,visible:S(c),placement:_.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":_.tooltipClass,disabled:!S(u),persistent:""},{content:Z(()=>[G("span",null,Ae(S(d)),1)]),default:Z(()=>[G("div",{class:F([S(a).e("button"),{hover:S(m),dragging:S(b)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,sIe))}});var NV=Ne(uIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const cIe=$e({mark:{type:fe([String,Object]),default:void 0}});var fIe=ie({name:"ElSliderMarker",props:cIe,setup(t){const e=De("slider"),n=O(()=>ft(t.mark)?t.mark:t.mark.label),r=O(()=>ft(t.mark)?void 0:t.mark.style);return()=>tt("div",{class:e.e("marks-text"),style:r.value},n.value)}});const dIe=["id","role","aria-label","aria-labelledby"],hIe={key:1},vIe=ie({name:"ElSlider"}),pIe=ie({...vIe,props:G$e,emits:H$e,setup(t,{expose:e,emit:n}){const r=t,a=De("slider"),{t:i}=Kt(),o=Qt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:c,sliderDisabled:f,minValue:d,maxValue:h,runwayStyle:p,barStyle:v,resetSize:g,emitChange:y,onSliderWrapperPrevent:m,onSliderClick:b,onSliderDown:_,setFirstValue:x,setSecondValue:w}=j$e(r,o,n),{stops:C,getStopStyle:T}=rIe(r,o,d,h),{inputId:k,isLabeledByFormItem:E}=uc(r,{formItemContext:s}),M=hr(),D=O(()=>r.inputSize||M.value),R=O(()=>r.label||i("el.slider.defaultLabel",{min:r.min,max:r.max})),A=O(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):R.value),V=O(()=>r.formatValueText?r.formatValueText(j.value):`${j.value}`),P=O(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),N=O(()=>r.formatValueText?r.formatValueText(Y.value):`${Y.value}`),I=O(()=>[a.b(),a.m(M.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),L=W$e(r);aIe(r,o,d,h,n,s);const $=O(()=>{const re=[r.min,r.max,r.step].map(ne=>{const J=`${ne}`.split(".")[1];return J?J.length:0});return Math.max.apply(null,re)}),{sliderWrapper:U}=U$e(r,o,g),{firstValue:j,secondValue:Y,sliderSize:oe}=kr(o),te=re=>{o.dragging=re};return Nt(SK,{...kr(r),sliderSize:oe,disabled:f,precision:$,emitChange:y,resetSize:g,updateDragging:te}),e({onSliderClick:b}),(re,ne)=>{var J,he;return B(),q("div",{id:re.range?S(k):void 0,ref_key:"sliderWrapper",ref:U,class:F(S(I)),role:re.range?"group":void 0,"aria-label":re.range&&!S(E)?S(R):void 0,"aria-labelledby":re.range&&S(E)?(J=S(s))==null?void 0:J.labelId:void 0,onTouchstart:ne[2]||(ne[2]=(...ue)=>S(m)&&S(m)(...ue)),onTouchmove:ne[3]||(ne[3]=(...ue)=>S(m)&&S(m)(...ue))},[G("div",{ref_key:"slider",ref:l,class:F([S(a).e("runway"),{"show-input":re.showInput&&!re.range},S(a).is("disabled",S(f))]),style:qe(S(p)),onMousedown:ne[0]||(ne[0]=(...ue)=>S(_)&&S(_)(...ue)),onTouchstart:ne[1]||(ne[1]=(...ue)=>S(_)&&S(_)(...ue))},[G("div",{class:F(S(a).e("bar")),style:qe(S(v))},null,6),H(NV,{id:re.range?void 0:S(k),ref_key:"firstButton",ref:u,"model-value":S(j),vertical:re.vertical,"tooltip-class":re.tooltipClass,placement:re.placement,role:"slider","aria-label":re.range||!S(E)?S(A):void 0,"aria-labelledby":!re.range&&S(E)?(he=S(s))==null?void 0:he.labelId:void 0,"aria-valuemin":re.min,"aria-valuemax":re.range?S(Y):re.max,"aria-valuenow":S(j),"aria-valuetext":S(V),"aria-orientation":re.vertical?"vertical":"horizontal","aria-disabled":S(f),"onUpdate:modelValue":S(x)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),re.range?(B(),de(NV,{key:0,ref_key:"secondButton",ref:c,"model-value":S(Y),vertical:re.vertical,"tooltip-class":re.tooltipClass,placement:re.placement,role:"slider","aria-label":S(P),"aria-valuemin":S(j),"aria-valuemax":re.max,"aria-valuenow":S(Y),"aria-valuetext":S(N),"aria-orientation":re.vertical?"vertical":"horizontal","aria-disabled":S(f),"onUpdate:modelValue":S(w)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):le("v-if",!0),re.showStops?(B(),q("div",hIe,[(B(!0),q(Ze,null,Pt(S(C),(ue,X)=>(B(),q("div",{key:X,class:F(S(a).e("stop")),style:qe(S(T)(ue))},null,6))),128))])):le("v-if",!0),S(L).length>0?(B(),q(Ze,{key:2},[G("div",null,[(B(!0),q(Ze,null,Pt(S(L),(ue,X)=>(B(),q("div",{key:X,style:qe(S(T)(ue.position)),class:F([S(a).e("stop"),S(a).e("marks-stop")])},null,6))),128))]),G("div",{class:F(S(a).e("marks"))},[(B(!0),q(Ze,null,Pt(S(L),(ue,X)=>(B(),de(S(fIe),{key:X,mark:ue.mark,style:qe(S(T)(ue.position))},null,8,["mark","style"]))),128))],2)],64)):le("v-if",!0)],38),re.showInput&&!re.range?(B(),de(S(Kj),{key:0,ref:"input","model-value":S(j),class:F(S(a).e("input")),step:re.step,disabled:S(f),controls:re.showInputControls,min:re.min,max:re.max,debounce:re.debounce,size:S(D),"onUpdate:modelValue":S(x),onChange:S(y)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):le("v-if",!0)],42,dIe)}}});var gIe=Ne(pIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const yIe=Tt(gIe),mIe=$e({prefixCls:{type:String}}),$V=ie({name:"ElSpaceItem",props:mIe,setup(t,{slots:e}){const n=De("space"),r=O(()=>`${t.prefixCls||n.b()}__item`);return()=>tt("div",{class:r.value},Te(e,"default"))}}),IV={small:8,default:12,large:16};function bIe(t){const e=De("space"),n=O(()=>[e.b(),e.m(t.direction),t.class]),r=z(0),a=z(0),i=O(()=>{const s=t.wrap||t.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`}:{},l={alignItems:t.alignment};return[s,l,t.style]}),o=O(()=>{const s={paddingBottom:`${a.value}px`,marginRight:`${r.value}px`},l=t.fill?{flexGrow:1,minWidth:`${t.fillRatio}%`}:{};return[s,l]});return di(()=>{const{size:s="small",wrap:l,direction:u,fill:c}=t;if(He(s)){const[f=0,d=0]=s;r.value=f,a.value=d}else{let f;lt(s)?f=s:f=IV[s||"small"]||IV.small,(l||c)&&u==="horizontal"?r.value=a.value=f:u==="horizontal"?(r.value=f,a.value=0):(a.value=f,r.value=0)}}),{classes:n,containerStyle:i,itemStyle:o}}const SIe=$e({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:fe([String,Object,Array]),default:""},style:{type:fe([String,Array,Object]),default:""},alignment:{type:fe(String),default:"center"},prefixCls:{type:String},spacer:{type:fe([Object,String,Number,Array]),default:null,validator:t=>Ln(t)||lt(t)||ft(t)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:Ns,validator:t=>lt(t)||He(t)&&t.length===2&&t.every(lt)}}),_Ie=ie({name:"ElSpace",props:SIe,setup(t,{slots:e}){const{classes:n,containerStyle:r,itemStyle:a}=bIe(t);function i(o,s="",l=[]){const{prefixCls:u}=t;return o.forEach((c,f)=>{EM(c)?He(c.children)&&c.children.forEach((d,h)=>{EM(d)&&He(d.children)?i(d.children,`${s+h}-`,l):l.push(H($V,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[d]},Di.PROPS|Di.STYLE,["style","prefixCls"]))}):xSe(c)&&l.push(H($V,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},Di.PROPS|Di.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=t,u=Te(e,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(He(u.children)){let c=i(u.children);if(s){const f=c.length-1;c=c.reduce((d,h,p)=>{const v=[...d,h];return p!==f&&v.push(H("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:p},[Ln(s)?s:Qe(s,Di.TEXT)],Di.STYLE)),v},[])}return H("div",{class:n.value,style:r.value},c,Di.STYLE|Di.CLASS)}return u.children}}}),wIe=Tt(_Ie),xIe=$e({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:fe([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:fe([String,Object,Array])}}),CIe=ie({name:"ElStatistic"}),TIe=ie({...CIe,props:xIe,setup(t,{expose:e}){const n=t,r=De("statistic"),a=O(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(ut(o))return o(i);if(!lt(i))return i;let[c,f=""]=String(i).split(".");return f=f.padEnd(s,"0").slice(0,s>0?s:0),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,u),[c,f].join(f?l:"")});return e({displayValue:a}),(i,o)=>(B(),q("div",{class:F(S(r).b())},[i.$slots.title||i.title?(B(),q("div",{key:0,class:F(S(r).e("head"))},[Te(i.$slots,"title",{},()=>[Qe(Ae(i.title),1)])],2)):le("v-if",!0),G("div",{class:F(S(r).e("content"))},[i.$slots.prefix||i.prefix?(B(),q("div",{key:0,class:F(S(r).e("prefix"))},[Te(i.$slots,"prefix",{},()=>[G("span",null,Ae(i.prefix),1)])],2)):le("v-if",!0),G("span",{class:F(S(r).e("number")),style:qe(i.valueStyle)},Ae(S(a)),7),i.$slots.suffix||i.suffix?(B(),q("div",{key:1,class:F(S(r).e("suffix"))},[Te(i.$slots,"suffix",{},()=>[G("span",null,Ae(i.suffix),1)])],2)):le("v-if",!0)],2)],2))}});var EIe=Ne(TIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const _K=Tt(EIe),MIe=$e({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:fe([Number,Object]),default:0},valueStyle:{type:fe([String,Object,Array])}}),kIe={finish:()=>!0,[kn]:t=>lt(t)},DIe=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],BV=t=>lt(t)?new Date(t).getTime():t.valueOf(),VV=(t,e)=>{let n=t;const r=/\[([^\]]*)]/g;return DIe.reduce((i,[o,s])=>{const l=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/s);return n-=u*s,i.replace(l,c=>String(u).padStart(c.length,"0"))}return i},e).replace(r,"$1")},RIe=ie({name:"ElCountdown"}),LIe=ie({...RIe,props:MIe,emits:kIe,setup(t,{expose:e,emit:n}){const r=t;let a;const i=z(BV(r.value)-Date.now()),o=O(()=>VV(i.value,r.format)),s=c=>VV(c,r.format),l=()=>{a&&(Zw(a),a=void 0)},u=()=>{const c=BV(r.value),f=()=>{let d=c-Date.now();n("change",d),d<=0?(d=0,l(),n("finish")):a=vv(f),i.value=d};a=vv(f)};return Ee(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0}),Tn(()=>{l()}),e({displayValue:o}),(c,f)=>(B(),de(S(_K),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},gl({_:2},[Pt(c.$slots,(d,h)=>({name:h,fn:Z(()=>[Te(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var AIe=Ne(LIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const OIe=Tt(AIe),NIe=$e({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),$Ie={[kn]:(t,e)=>[t,e].every(lt)},IIe=ie({name:"ElSteps"}),BIe=ie({...IIe,props:NIe,emits:$Ie,setup(t,{emit:e}){const n=t,r=De("steps"),{children:a,addChild:i,removeChild:o}=QL(wt(),"ElStep");return Ee(a,()=>{a.value.forEach((s,l)=>{s.setIndex(l)})}),Nt("ElSteps",{props:n,steps:a,addStep:i,removeStep:o}),Ee(()=>n.active,(s,l)=>{e(kn,s,l)}),(s,l)=>(B(),q("div",{class:F([S(r).b(),S(r).m(s.simple?"simple":s.direction)])},[Te(s.$slots,"default")],2))}});var VIe=Ne(BIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const PIe=$e({title:{type:String,default:""},icon:{type:_n},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),FIe=ie({name:"ElStep"}),zIe=ie({...FIe,props:PIe,setup(t){const e=t,n=De("step"),r=z(-1),a=z({}),i=z(""),o=We("ElSteps"),s=wt();ht(()=>{Ee([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([w])=>{_(w)},{immediate:!0})}),Tn(()=>{o.removeStep(x.uid)});const l=O(()=>e.status||i.value),u=O(()=>{const w=o.steps.value[r.value-1];return w?w.currentStatus:"wait"}),c=O(()=>o.props.alignCenter),f=O(()=>o.props.direction==="vertical"),d=O(()=>o.props.simple),h=O(()=>o.steps.value.length),p=O(()=>{var w;return((w=o.steps.value[h.value-1])==null?void 0:w.uid)===(s==null?void 0:s.uid)}),v=O(()=>d.value?"":o.props.space),g=O(()=>[n.b(),n.is(d.value?"simple":o.props.direction),n.is("flex",p.value&&!v.value&&!c.value),n.is("center",c.value&&!f.value&&!d.value)]),y=O(()=>{const w={flexBasis:lt(v.value)?`${v.value}px`:v.value?v.value:`${100/(h.value-(c.value?0:1))}%`};return f.value||p.value&&(w.maxWidth=`${100/h.value}%`),w}),m=w=>{r.value=w},b=w=>{const C=w==="wait",T={transitionDelay:`${C?"-":""}${150*r.value}ms`},k=w===o.props.processStatus||C?0:100;T.borderWidth=k&&!d.value?"1px":0,T[o.props.direction==="vertical"?"height":"width"]=`${k}%`,a.value=T},_=w=>{w>r.value?i.value=o.props.finishStatus:w===r.value&&u.value!=="error"?i.value=o.props.processStatus:i.value="wait";const C=o.steps.value[r.value-1];C&&C.calcProgress(i.value)},x=Qt({uid:s.uid,currentStatus:l,setIndex:m,calcProgress:b});return o.addStep(x),(w,C)=>(B(),q("div",{style:qe(S(y)),class:F(S(g))},[le(" icon & line "),G("div",{class:F([S(n).e("head"),S(n).is(S(l))])},[S(d)?le("v-if",!0):(B(),q("div",{key:0,class:F(S(n).e("line"))},[G("i",{class:F(S(n).e("line-inner")),style:qe(a.value)},null,6)],2)),G("div",{class:F([S(n).e("icon"),S(n).is(w.icon||w.$slots.icon?"icon":"text")])},[Te(w.$slots,"icon",{},()=>[w.icon?(B(),de(S(Ye),{key:0,class:F(S(n).e("icon-inner"))},{default:Z(()=>[(B(),de(Et(w.icon)))]),_:1},8,["class"])):S(l)==="success"?(B(),de(S(Ye),{key:1,class:F([S(n).e("icon-inner"),S(n).is("status")])},{default:Z(()=>[H(S(Gy))]),_:1},8,["class"])):S(l)==="error"?(B(),de(S(Ye),{key:2,class:F([S(n).e("icon-inner"),S(n).is("status")])},{default:Z(()=>[H(S(No))]),_:1},8,["class"])):S(d)?le("v-if",!0):(B(),q("div",{key:3,class:F(S(n).e("icon-inner"))},Ae(r.value+1),3))])],2)],2),le(" title & description "),G("div",{class:F(S(n).e("main"))},[G("div",{class:F([S(n).e("title"),S(n).is(S(l))])},[Te(w.$slots,"title",{},()=>[Qe(Ae(w.title),1)])],2),S(d)?(B(),q("div",{key:0,class:F(S(n).e("arrow"))},null,2)):(B(),q("div",{key:1,class:F([S(n).e("description"),S(n).is(S(l))])},[Te(w.$slots,"description",{},()=>[Qe(Ae(w.description),1)])],2))],2)],6))}});var wK=Ne(zIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const GIe=Tt(VIe,{Step:wK}),HIe=Hn(wK),UIe=$e({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:Xw},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:_n},activeActionIcon:{type:_n},activeIcon:{type:_n},inactiveIcon:{type:_n},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:fe(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),WIe={[Mt]:t=>cr(t)||ft(t)||lt(t),[kn]:t=>cr(t)||ft(t)||lt(t),[Da]:t=>cr(t)||ft(t)||lt(t)},jIe=["onClick"],KIe=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],YIe=["aria-hidden"],XIe=["aria-hidden"],qIe=["aria-hidden"],ck="ElSwitch",ZIe=ie({name:ck}),QIe=ie({...ZIe,props:UIe,emits:WIe,setup(t,{expose:e,emit:n}){const r=t,a=wt(),{formItem:i}=Va(),o=hr(),s=De("switch");(T=>{T.forEach(k=>{Ts({from:k[0],replacement:k[1],scope:ck,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},O(()=>{var E;return!!((E=a.vnode.props)!=null&&E[k[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:u}=uc(r,{formItemContext:i}),c=ni(O(()=>r.loading)),f=z(r.modelValue!==!1),d=z(),h=z(),p=O(()=>[s.b(),s.m(o.value),s.is("disabled",c.value),s.is("checked",b.value)]),v=O(()=>[s.e("label"),s.em("label","left"),s.is("active",!b.value)]),g=O(()=>[s.e("label"),s.em("label","right"),s.is("active",b.value)]),y=O(()=>({width:Xn(r.width)}));Ee(()=>r.modelValue,()=>{f.value=!0}),Ee(()=>r.value,()=>{f.value=!1});const m=O(()=>f.value?r.modelValue:r.value),b=O(()=>m.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(m.value)||(n(Mt,r.inactiveValue),n(kn,r.inactiveValue),n(Da,r.inactiveValue)),Ee(b,T=>{var k;d.value.checked=T,r.validateEvent&&((k=i==null?void 0:i.validate)==null||k.call(i,"change").catch(E=>void 0))});const _=()=>{const T=b.value?r.inactiveValue:r.activeValue;n(Mt,T),n(kn,T),n(Da,T),Xe(()=>{d.value.checked=b.value})},x=()=>{if(c.value)return;const{beforeChange:T}=r;if(!T){_();return}const k=T();[d0(k),cr(k)].includes(!0)||dr(ck,"beforeChange must return type `Promise` or `boolean`"),d0(k)?k.then(M=>{M&&_()}).catch(M=>{}):k&&_()},w=O(()=>s.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),C=()=>{var T,k;(k=(T=d.value)==null?void 0:T.focus)==null||k.call(T)};return ht(()=>{d.value.checked=b.value}),e({focus:C,checked:b}),(T,k)=>(B(),q("div",{class:F(S(p)),style:qe(S(w)),onClick:it(x,["prevent"])},[G("input",{id:S(u),ref_key:"input",ref:d,class:F(S(s).e("input")),type:"checkbox",role:"switch","aria-checked":S(b),"aria-disabled":S(c),name:T.name,"true-value":T.activeValue,"false-value":T.inactiveValue,disabled:S(c),tabindex:T.tabindex,onChange:_,onKeydown:jt(x,["enter"])},null,42,KIe),!T.inlinePrompt&&(T.inactiveIcon||T.inactiveText)?(B(),q("span",{key:0,class:F(S(v))},[T.inactiveIcon?(B(),de(S(Ye),{key:0},{default:Z(()=>[(B(),de(Et(T.inactiveIcon)))]),_:1})):le("v-if",!0),!T.inactiveIcon&&T.inactiveText?(B(),q("span",{key:1,"aria-hidden":S(b)},Ae(T.inactiveText),9,YIe)):le("v-if",!0)],2)):le("v-if",!0),G("span",{ref_key:"core",ref:h,class:F(S(s).e("core")),style:qe(S(y))},[T.inlinePrompt?(B(),q("div",{key:0,class:F(S(s).e("inner"))},[T.activeIcon||T.inactiveIcon?(B(),de(S(Ye),{key:0,class:F(S(s).is("icon"))},{default:Z(()=>[(B(),de(Et(S(b)?T.activeIcon:T.inactiveIcon)))]),_:1},8,["class"])):T.activeText||T.inactiveText?(B(),q("span",{key:1,class:F(S(s).is("text")),"aria-hidden":!S(b)},Ae(S(b)?T.activeText:T.inactiveText),11,XIe)):le("v-if",!0)],2)):le("v-if",!0),G("div",{class:F(S(s).e("action"))},[T.loading?(B(),de(S(Ye),{key:0,class:F(S(s).is("loading"))},{default:Z(()=>[H(S(oc))]),_:1},8,["class"])):T.activeActionIcon&&S(b)?(B(),de(S(Ye),{key:1},{default:Z(()=>[(B(),de(Et(T.activeActionIcon)))]),_:1})):T.inactiveActionIcon&&!S(b)?(B(),de(S(Ye),{key:2},{default:Z(()=>[(B(),de(Et(T.inactiveActionIcon)))]),_:1})):le("v-if",!0)],2)],6),!T.inlinePrompt&&(T.activeIcon||T.activeText)?(B(),q("span",{key:1,class:F(S(g))},[T.activeIcon?(B(),de(S(Ye),{key:0},{default:Z(()=>[(B(),de(Et(T.activeIcon)))]),_:1})):le("v-if",!0),!T.activeIcon&&T.activeText?(B(),q("span",{key:1,"aria-hidden":!S(b)},Ae(T.activeText),9,qIe)):le("v-if",!0)],2)):le("v-if",!0)],14,jIe))}});var JIe=Ne(QIe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const eBe=Tt(JIe);/*! * escape-html * Copyright(c) 2012-2013 TJ Holowaychuk * Copyright(c) 2015 Andreas Lubbe * Copyright(c) 2015 Tiancheng "Timothy" Gu * MIT Licensed */var tBe=/["'&<>]/,nBe=rBe;function rBe(t){var e=""+t,n=tBe.exec(e);if(!n)return e;var r,a="",i=0,o=0;for(i=n.index;itypeof u=="string"?On(s,u):u(s,l,t))):(e!=="$key"&&Lt(s)&&"$value"in s&&(s=s.$value),[Lt(s)?On(s,e):s])},o=function(s,l){if(r)return r(s.value,l.value);for(let u=0,c=s.key.length;ul.key[u])return 1}return 0};return t.map((s,l)=>({value:s,index:l,key:i?i(s,l):null})).sort((s,l)=>{let u=o(s,l);return u||(u=s.index-l.index),u*+n}).map(s=>s.value)},xK=function(t,e){let n=null;return t.columns.forEach(r=>{r.id===e&&(n=r)}),n},oBe=function(t,e){let n=null;for(let r=0;r{if(!t)throw new Error("Row is required when get row identity");if(typeof e=="string"){if(!e.includes("."))return`${t[e]}`;const n=e.split(".");let r=t;for(const a of n)r=r[a];return`${r}`}else if(typeof e=="function")return e.call(null,t)},xf=function(t,e){const n={};return(t||[]).forEach((r,a)=>{n[Wr(r,e)]={row:r,index:a}}),n};function sBe(t,e){const n={};let r;for(r in t)n[r]=t[r];for(r in e)if(Gt(e,r)){const a=e[r];typeof a<"u"&&(n[r]=a)}return n}function _A(t){return t===""||t!==void 0&&(t=Number.parseInt(t,10),Number.isNaN(t)&&(t="")),t}function CK(t){return t===""||t!==void 0&&(t=_A(t),Number.isNaN(t)&&(t=80)),t}function lBe(t){return typeof t=="number"?t:typeof t=="string"?/^\d+(?:px)?$/.test(t)?Number.parseInt(t,10):t:null}function uBe(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function Hg(t,e,n){let r=!1;const a=t.indexOf(e),i=a!==-1,o=s=>{s==="add"?t.push(e):t.splice(a,1),r=!0,He(e.children)&&e.children.forEach(l=>{Hg(t,l,n??!i)})};return cr(n)?n&&!i?o("add"):!n&&i&&o("remove"):o(i?"remove":"add"),r}function cBe(t,e,n="children",r="hasChildren"){const a=o=>!(Array.isArray(o)&&o.length);function i(o,s,l){e(o,s,l),s.forEach(u=>{if(u[r]){e(u,null,l+1);return}const c=u[n];a(c)||i(u,c,l+1)})}t.forEach(o=>{if(o[r]){e(o,null,0);return}const s=o[n];a(s)||i(o,s,0)})}let Ks;function fBe(t,e,n,r,a){a=o9({enterable:!0,showArrow:!0},a);const i=t==null?void 0:t.dataset.prefix,o=t==null?void 0:t.querySelector(`.${i}-scrollbar__wrap`);function s(){const g=a.effect==="light",y=document.createElement("div");return y.className=[`${i}-popper`,g?"is-light":"is-dark",a.popperClass||""].join(" "),n=aBe(n),y.innerHTML=n,y.style.zIndex=String(r()),t==null||t.appendChild(y),y}function l(){const g=document.createElement("div");return g.className=`${i}-popper__arrow`,g}function u(){c&&c.update()}Ks==null||Ks(),Ks=()=>{try{c&&c.destroy(),h&&(t==null||t.removeChild(h)),e.removeEventListener("mouseenter",f),e.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",Ks),Ks=void 0}catch{}};let c=null,f=u,d=Ks;a.enterable&&({onOpen:f,onClose:d}=F9({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:Ks}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const p=[];if(a.offset&&p.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=h.appendChild(l());p.push({name:"arrow",options:{element:g,padding:10}})}const v=a.popperOptions||{};return c=B9(e,h,{placement:a.placement||"top",strategy:"fixed",...v,modifiers:v.modifiers?p.concat(v.modifiers):p}),e.addEventListener("mouseenter",f),e.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",Ks),c}function TK(t){return t.children?D0e(t.children,TK):[t]}function FV(t,e){return t+e.colSpan}const EK=(t,e,n,r)=>{let a=0,i=t;const o=n.states.columns.value;if(r){const l=TK(r[t]);a=o.slice(0,o.indexOf(l[0])).reduce(FV,0),i=a+l.reduce(FV,0)-1}else a=t;let s;switch(e){case"left":i=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:a,after:i}:{}},wA=(t,e,n,r,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=EK(e,n,r,a);if(s){const c=s==="left";o.push(`${t}-fixed-column--${s}`),c&&u+i===r.states.fixedLeafColumnsLength.value-1?o.push("is-last-column"):!c&&l-i===r.states.columns.value.length-r.states.rightFixedLeafColumnsLength.value&&o.push("is-first-column")}return o};function zV(t,e){return t+(e.realWidth===null||Number.isNaN(e.realWidth)?Number(e.width):e.realWidth)}const xA=(t,e,n,r)=>{const{direction:a,start:i=0,after:o=0}=EK(t,e,n,r);if(!a)return;const s={},l=a==="left",u=n.states.columns.value;return l?s.left=u.slice(0,i).reduce(zV,0):s.right=u.slice(o+1).reverse().reduce(zV,0),s},wv=(t,e)=>{t&&(Number.isNaN(t[e])||(t[e]=`${t[e]}px`))};function dBe(t){const e=wt(),n=z(!1),r=z([]);return{updateExpandRows:()=>{const l=t.data.value||[],u=t.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=xf(r.value,u);r.value=l.reduce((f,d)=>{const h=Wr(d,u);return c[h]&&f.push(d),f},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{Hg(r.value,l,u)&&e.emit("expand-change",l,r.value.slice())},setExpandRowKeys:l=>{e.store.assertRowKey();const u=t.data.value||[],c=t.rowKey.value,f=xf(u,c);r.value=l.reduce((d,h)=>{const p=f[h];return p&&d.push(p.row),d},[])},isRowExpanded:l=>{const u=t.rowKey.value;return u?!!xf(r.value,u)[Wr(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function hBe(t){const e=wt(),n=z(null),r=z(null),a=u=>{e.store.assertRowKey(),n.value=u,o(u)},i=()=>{n.value=null},o=u=>{const{data:c,rowKey:f}=t;let d=null;f.value&&(d=(S(c)||[]).find(h=>Wr(h,f.value)===u)),r.value=d,e.emit("current-change",r.value,null)};return{setCurrentRowKey:a,restoreCurrentRowKey:i,setCurrentRowByKey:o,updateCurrentRow:u=>{const c=r.value;if(u&&u!==c){r.value=u,e.emit("current-change",r.value,c);return}!u&&c&&(r.value=null,e.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=t.rowKey.value,c=t.data.value||[],f=r.value;if(!c.includes(f)&&f){if(u){const d=Wr(f,u);o(d)}else r.value=null;r.value===null&&e.emit("current-change",null,f)}else n.value&&(o(n.value),i())},states:{_currentRowKey:n,currentRow:r}}}function vBe(t){const e=z([]),n=z({}),r=z(16),a=z(!1),i=z({}),o=z("hasChildren"),s=z("children"),l=wt(),u=O(()=>{if(!t.rowKey.value)return{};const y=t.data.value||[];return f(y)}),c=O(()=>{const y=t.rowKey.value,m=Object.keys(i.value),b={};return m.length&&m.forEach(_=>{if(i.value[_].length){const x={children:[]};i.value[_].forEach(w=>{const C=Wr(w,y);x.children.push(C),w[o.value]&&!b[C]&&(b[C]={children:[]})}),b[_]=x}}),b}),f=y=>{const m=t.rowKey.value,b={};return cBe(y,(_,x,w)=>{const C=Wr(_,m);Array.isArray(x)?b[C]={children:x.map(T=>Wr(T,m)),level:w}:a.value&&(b[C]={children:[],lazy:!0,level:w})},s.value,o.value),b},d=(y=!1,m=(b=>(b=l.store)==null?void 0:b.states.defaultExpandAll.value)())=>{var b;const _=u.value,x=c.value,w=Object.keys(_),C={};if(w.length){const T=S(n),k=[],E=(D,R)=>{if(y)return e.value?m||e.value.includes(R):!!(m||D!=null&&D.expanded);{const A=m||e.value&&e.value.includes(R);return!!(D!=null&&D.expanded||A)}};w.forEach(D=>{const R=T[D],A={..._[D]};if(A.expanded=E(R,D),A.lazy){const{loaded:V=!1,loading:P=!1}=R||{};A.loaded=!!V,A.loading=!!P,k.push(D)}C[D]=A});const M=Object.keys(x);a.value&&M.length&&k.length&&M.forEach(D=>{const R=T[D],A=x[D].children;if(k.includes(D)){if(C[D].children.length!==0)throw new Error("[ElTable]children must be an empty array.");C[D].children=A}else{const{loaded:V=!1,loading:P=!1}=R||{};C[D]={lazy:!0,loaded:!!V,loading:!!P,expanded:E(R,D),children:A,level:""}}})}n.value=C,(b=l.store)==null||b.updateTableScrollY()};Ee(()=>e.value,()=>{d(!0)}),Ee(()=>u.value,()=>{d()}),Ee(()=>c.value,()=>{d()});const h=y=>{e.value=y,d()},p=(y,m)=>{l.store.assertRowKey();const b=t.rowKey.value,_=Wr(y,b),x=_&&n.value[_];if(_&&x&&"expanded"in x){const w=x.expanded;m=typeof m>"u"?!x.expanded:m,n.value[_].expanded=m,w!==m&&l.emit("expand-change",y,m),l.store.updateTableScrollY()}},v=y=>{l.store.assertRowKey();const m=t.rowKey.value,b=Wr(y,m),_=n.value[b];a.value&&_&&"loaded"in _&&!_.loaded?g(y,b,_):p(y,void 0)},g=(y,m,b)=>{const{load:_}=l.props;_&&!n.value[m].loaded&&(n.value[m].loading=!0,_(y,b,x=>{if(!Array.isArray(x))throw new TypeError("[ElTable] data must be an array");n.value[m].loading=!1,n.value[m].loaded=!0,n.value[m].expanded=!0,x.length&&(i.value[m]=x),l.emit("expand-change",y,!0)}))};return{loadData:g,loadOrToggle:v,toggleTreeExpansion:p,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:e,treeData:n,indent:r,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:s}}}const pBe=(t,e)=>{const n=e.sortingColumn;return!n||typeof n.sortable=="string"?t:iBe(t,e.sortProp,e.sortOrder,n.sortMethod,n.sortBy)},Gb=t=>{const e=[];return t.forEach(n=>{n.children&&n.children.length>0?e.push.apply(e,Gb(n.children)):e.push(n)}),e};function gBe(){var t;const e=wt(),{size:n}=kr((t=e.proxy)==null?void 0:t.$props),r=z(null),a=z([]),i=z([]),o=z(!1),s=z([]),l=z([]),u=z([]),c=z([]),f=z([]),d=z([]),h=z([]),p=z([]),v=[],g=z(0),y=z(0),m=z(0),b=z(!1),_=z([]),x=z(!1),w=z(!1),C=z(null),T=z({}),k=z(null),E=z(null),M=z(null),D=z(null),R=z(null);Ee(a,()=>e.state&&N(!1),{deep:!0});const A=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},V=rt=>{var _e;(_e=rt.children)==null||_e.forEach(ve=>{ve.fixed=rt.fixed,V(ve)})},P=()=>{s.value.forEach(Re=>{V(Re)}),c.value=s.value.filter(Re=>Re.fixed===!0||Re.fixed==="left"),f.value=s.value.filter(Re=>Re.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 rt=s.value.filter(Re=>!Re.fixed);l.value=[].concat(c.value).concat(rt).concat(f.value);const _e=Gb(rt),ve=Gb(c.value),ce=Gb(f.value);g.value=_e.length,y.value=ve.length,m.value=ce.length,u.value=[].concat(ve).concat(_e).concat(ce),o.value=c.value.length>0||f.value.length>0},N=(rt,_e=!1)=>{rt&&P(),_e?e.state.doLayout():e.state.debouncedUpdateLayout()},I=rt=>_.value.includes(rt),L=()=>{b.value=!1,_.value.length&&(_.value=[],e.emit("selection-change",[]))},$=()=>{let rt;if(r.value){rt=[];const _e=xf(_.value,r.value),ve=xf(a.value,r.value);for(const ce in _e)Gt(_e,ce)&&!ve[ce]&&rt.push(_e[ce].row)}else rt=_.value.filter(_e=>!a.value.includes(_e));if(rt.length){const _e=_.value.filter(ve=>!rt.includes(ve));_.value=_e,e.emit("selection-change",_e.slice())}},U=()=>(_.value||[]).slice(),j=(rt,_e=void 0,ve=!0)=>{if(Hg(_.value,rt,_e)){const Re=(_.value||[]).slice();ve&&e.emit("select",Re,rt),e.emit("selection-change",Re)}},Y=()=>{var rt,_e;const ve=w.value?!b.value:!(b.value||_.value.length);b.value=ve;let ce=!1,Re=0;const ae=(_e=(rt=e==null?void 0:e.store)==null?void 0:rt.states)==null?void 0:_e.rowKey.value;a.value.forEach((Fe,dt)=>{const $t=dt+Re;C.value?C.value.call(null,Fe,$t)&&Hg(_.value,Fe,ve)&&(ce=!0):Hg(_.value,Fe,ve)&&(ce=!0),Re+=re(Wr(Fe,ae))}),ce&&e.emit("selection-change",_.value?_.value.slice():[]),e.emit("select-all",_.value)},oe=()=>{const rt=xf(_.value,r.value);a.value.forEach(_e=>{const ve=Wr(_e,r.value),ce=rt[ve];ce&&(_.value[ce.index]=_e)})},te=()=>{var rt,_e,ve;if(((rt=a.value)==null?void 0:rt.length)===0){b.value=!1;return}let ce;r.value&&(ce=xf(_.value,r.value));const Re=function($t){return ce?!!ce[Wr($t,r.value)]:_.value.includes($t)};let ae=!0,Fe=0,dt=0;for(let $t=0,er=(a.value||[]).length;$t{var _e;if(!e||!e.store)return 0;const{treeData:ve}=e.store.states;let ce=0;const Re=(_e=ve.value[rt])==null?void 0:_e.children;return Re&&(ce+=Re.length,Re.forEach(ae=>{ce+=re(ae)})),ce},ne=(rt,_e)=>{Array.isArray(rt)||(rt=[rt]);const ve={};return rt.forEach(ce=>{T.value[ce.id]=_e,ve[ce.columnKey||ce.id]=_e}),ve},J=(rt,_e,ve)=>{E.value&&E.value!==rt&&(E.value.order=null),E.value=rt,M.value=_e,D.value=ve},he=()=>{let rt=S(i);Object.keys(T.value).forEach(_e=>{const ve=T.value[_e];if(!ve||ve.length===0)return;const ce=xK({columns:u.value},_e);ce&&ce.filterMethod&&(rt=rt.filter(Re=>ve.some(ae=>ce.filterMethod.call(null,ae,Re,ce))))}),k.value=rt},ue=()=>{a.value=pBe(k.value,{sortingColumn:E.value,sortProp:M.value,sortOrder:D.value})},X=(rt=void 0)=>{rt&&rt.filter||he(),ue()},K=rt=>{const{tableHeaderRef:_e}=e.refs;if(!_e)return;const ve=Object.assign({},_e.filterPanels),ce=Object.keys(ve);if(ce.length)if(typeof rt=="string"&&(rt=[rt]),Array.isArray(rt)){const Re=rt.map(ae=>oBe({columns:u.value},ae));ce.forEach(ae=>{const Fe=Re.find(dt=>dt.id===ae);Fe&&(Fe.filteredValue=[])}),e.store.commit("filterChange",{column:Re,values:[],silent:!0,multi:!0})}else ce.forEach(Re=>{const ae=u.value.find(Fe=>Fe.id===Re);ae&&(ae.filteredValue=[])}),T.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},ee=()=>{E.value&&(J(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:se,toggleRowExpansion:ye,updateExpandRows:we,states:be,isRowExpanded:Me}=dBe({data:a,rowKey:r}),{updateTreeExpandKeys:Se,toggleTreeExpansion:xe,updateTreeData:ke,loadOrToggle:ge,states:Ve}=vBe({data:a,rowKey:r}),{updateCurrentRowData:Ke,updateCurrentRow:Le,setCurrentRowKey:Ue,states:st}=hBe({data:a,rowKey:r});return{assertRowKey:A,updateColumns:P,scheduleLayout:N,isSelected:I,clearSelection:L,cleanSelection:$,getSelectionRows:U,toggleRowSelection:j,_toggleAllSelection:Y,toggleAllSelection:null,updateSelectionByRowKey:oe,updateAllSelected:te,updateFilters:ne,updateCurrentRow:Le,updateSort:J,execFilter:he,execSort:ue,execQuery:X,clearFilter:K,clearSort:ee,toggleRowExpansion:ye,setExpandRowKeysAdapter:rt=>{se(rt),Se(rt)},setCurrentRowKey:Ue,toggleRowExpansionAdapter:(rt,_e)=>{u.value.some(({type:ce})=>ce==="expand")?ye(rt,_e):xe(rt,_e)},isRowExpanded:Me,updateExpandRows:we,updateCurrentRowData:Ke,loadOrToggle:ge,updateTreeData:ke,states:{tableSize:n,rowKey:r,data:a,_data:i,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:p,updateOrderFns:v,leafColumnsLength:g,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:m,isAllSelected:b,selection:_,reserveSelection:x,selectOnIndeterminate:w,selectable:C,filters:T,filteredData:k,sortingColumn:E,sortProp:M,sortOrder:D,hoverRow:R,...be,...Ve,...st}}}function fk(t,e){return t.map(n=>{var r;return n.id===e.id?e:((r=n.children)!=null&&r.length&&(n.children=fk(n.children,e)),n)})}function dk(t){t.forEach(e=>{var n,r;e.no=(n=e.getColumnIndex)==null?void 0:n.call(e),(r=e.children)!=null&&r.length&&dk(e.children)}),t.sort((e,n)=>e.no-n.no)}function yBe(){const t=wt(),e=gBe();return{ns:De("table"),...e,mutations:{setData(o,s){const l=S(o._data)!==s;o.data.value=s,o._data.value=s,t.store.execQuery(),t.store.updateCurrentRowData(),t.store.updateExpandRows(),t.store.updateTreeData(t.store.states.defaultExpandAll.value),S(o.reserveSelection)?(t.store.assertRowKey(),t.store.updateSelectionByRowKey()):l?t.store.clearSelection():t.store.cleanSelection(),t.store.updateAllSelected(),t.$ready&&t.store.scheduleLayout()},insertColumn(o,s,l,u){const c=S(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=fk(c,l)):(c.push(s),f=c),dk(f),o._columns.value=f,o.updateOrderFns.push(u),s.type==="selection"&&(o.selectable.value=s.selectable,o.reserveSelection.value=s.reserveSelection),t.$ready&&(t.store.updateColumns(),t.store.scheduleLayout())},updateColumnOrder(o,s){var l;((l=s.getColumnIndex)==null?void 0:l.call(s))!==s.no&&(dk(o._columns.value),t.$ready&&t.store.updateColumns())},removeColumn(o,s,l,u){const c=S(o._columns)||[];if(l)l.children.splice(l.children.findIndex(d=>d.id===s.id),1),Xe(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=fk(c,l);else{const d=c.indexOf(s);d>-1&&(c.splice(d,1),o._columns.value=c)}const f=o.updateOrderFns.indexOf(u);f>-1&&o.updateOrderFns.splice(f,1),t.$ready&&(t.store.updateColumns(),t.store.scheduleLayout())},sort(o,s){const{prop:l,order:u,init:c}=s;if(l){const f=S(o.columns).find(d=>d.property===l);f&&(f.order=u,t.store.updateSort(f,l,u),t.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(o,s){const{sortingColumn:l,sortProp:u,sortOrder:c}=o,f=S(l),d=S(u),h=S(c);h===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const p={filter:!0};t.store.execQuery(p),(!s||!(s.silent||s.init))&&t.emit("sort-change",{column:f,prop:d,order:h}),t.store.updateTableScrollY()},filterChange(o,s){const{column:l,values:u,silent:c}=s,f=t.store.updateFilters(l,u);t.store.execQuery(),c||t.emit("filter-change",f),t.store.updateTableScrollY()},toggleAllSelection(){t.store.toggleAllSelection()},rowSelectedChanged(o,s){t.store.toggleRowSelection(s),t.store.updateAllSelected()},setHoverRow(o,s){o.hoverRow.value=s},setCurrentRow(o,s){t.store.updateCurrentRow(s)}},commit:function(o,...s){const l=t.store.mutations;if(l[o])l[o].apply(t,[t.store.states].concat(s));else throw new Error(`Action not found: ${o}`)},updateTableScrollY:function(){Xe(()=>t.layout.updateScrollY.apply(t.layout))}}}const Ug={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 mBe(t,e){if(!t)throw new Error("Table is required.");const n=yBe();return n.toggleAllSelection=Oa(n._toggleAllSelection,10),Object.keys(Ug).forEach(r=>{MK(kK(e,r),r,n)}),bBe(n,e),n}function bBe(t,e){Object.keys(Ug).forEach(n=>{Ee(()=>kK(e,n),r=>{MK(r,n,t)})})}function MK(t,e,n){let r=t,a=Ug[e];typeof Ug[e]=="object"&&(a=a.key,r=r||Ug[e].default),n.states[a].value=r}function kK(t,e){if(e.includes(".")){const n=e.split(".");let r=t;return n.forEach(a=>{r=r[a]}),r}else return t[e]}class SBe{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=z(null),this.scrollX=z(!1),this.scrollY=z(!1),this.bodyWidth=z(null),this.fixedWidth=z(null),this.rightFixedWidth=z(null),this.gutterWidth=0;for(const n in e)Gt(e,n)&&(pt(this[n])?this[n].value=e[n]:this[n]=e[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let r=!0;const a=this.scrollY.value;return r=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=r,a!==r}return!1}setHeight(e,n="height"){if(!Ut)return;const r=this.table.vnode.el;if(e=lBe(e),this.height.value=Number(e),!r&&(e||e===0))return Xe(()=>this.setHeight(e,n));typeof e=="number"?(r.style[n]=`${e}px`,this.updateElsHeight()):typeof e=="string"&&(r.style[n]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(r=>{r.isColumnGroup?e.push.apply(e,r.columns):e.push(r)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let n=e;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!Ut)return;const e=this.fit,n=this.table.vnode.el.clientWidth;let r=0;const a=this.getFlattenColumns(),i=a.filter(l=>typeof l.width!="number");if(a.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&e){if(a.forEach(l=>{r+=Number(l.width||l.minWidth||80)}),r<=n){this.scrollX.value=!1;const l=n-r;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((d,h)=>d+Number(h.minWidth||80),0),c=l/u;let f=0;i.forEach((d,h)=>{if(h===0)return;const p=Math.floor(Number(d.minWidth||80)*c);f+=p,d.realWidth=Number(d.minWidth||80)+p}),i[0].realWidth=Number(i[0].minWidth||80)+l-f}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),r+=l.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const n=this.observers.indexOf(e);n!==-1&&this.observers.splice(n,1)}notifyObservers(e){this.observers.forEach(r=>{var a,i;switch(e){case"columns":(a=r.state)==null||a.onColumnsChange(this);break;case"scrollable":(i=r.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}}const{CheckboxGroup:_Be}=Xi,wBe=ie({name:"ElTableFilterPanel",components:{ElCheckbox:Xi,ElCheckboxGroup:_Be,ElScrollbar:Rl,ElTooltip:Na,ElIcon:Ye,ArrowDown:ac,ArrowUp:jw},directives:{ClickOutside:Wu},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(t){const e=wt(),{t:n}=Kt(),r=De("table-filter"),a=e==null?void 0:e.parent;a.filterPanels.value[t.column.id]||(a.filterPanels.value[t.column.id]=e);const i=z(!1),o=z(null),s=O(()=>t.column&&t.column.filters),l=O({get:()=>{var _;return(((_=t.column)==null?void 0:_.filteredValue)||[])[0]},set:_=>{u.value&&(typeof _<"u"&&_!==null?u.value.splice(0,1,_):u.value.splice(0,1))}}),u=O({get(){return t.column?t.column.filteredValue||[]:[]},set(_){t.column&&t.upDataColumn("filteredValue",_)}}),c=O(()=>t.column?t.column.filterMultiple:!0),f=_=>_.value===l.value,d=()=>{i.value=!1},h=_=>{_.stopPropagation(),i.value=!i.value},p=()=>{i.value=!1},v=()=>{m(u.value),d()},g=()=>{u.value=[],m(u.value),d()},y=_=>{l.value=_,m(typeof _<"u"&&_!==null?u.value:[]),d()},m=_=>{t.store.commit("filterChange",{column:t.column,values:_}),t.store.updateAllSelected()};Ee(i,_=>{t.column&&t.upDataColumn("filterOpened",_)},{immediate:!0});const b=O(()=>{var _,x;return(x=(_=o.value)==null?void 0:_.popperRef)==null?void 0:x.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:v,handleReset:g,handleSelect:y,isActive:f,t:n,ns:r,showFilterPanel:h,hideFilterPanel:p,popperPaneRef:b,tooltip:o}}}),xBe={key:0},CBe=["disabled"],TBe=["label","onClick"];function EBe(t,e,n,r,a,i){const o=Ge("el-checkbox"),s=Ge("el-checkbox-group"),l=Ge("el-scrollbar"),u=Ge("arrow-up"),c=Ge("arrow-down"),f=Ge("el-icon"),d=Ge("el-tooltip"),h=m0("click-outside");return B(),de(d,{ref:"tooltip",visible:t.tooltipVisible,offset:0,placement:t.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":t.ns.b(),persistent:""},{content:Z(()=>[t.multiple?(B(),q("div",xBe,[G("div",{class:F(t.ns.e("content"))},[H(l,{"wrap-class":t.ns.e("wrap")},{default:Z(()=>[H(s,{modelValue:t.filteredValue,"onUpdate:modelValue":e[0]||(e[0]=p=>t.filteredValue=p),class:F(t.ns.e("checkbox-group"))},{default:Z(()=>[(B(!0),q(Ze,null,Pt(t.filters,p=>(B(),de(o,{key:p.value,label:p.value},{default:Z(()=>[Qe(Ae(p.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),G("div",{class:F(t.ns.e("bottom"))},[G("button",{class:F({[t.ns.is("disabled")]:t.filteredValue.length===0}),disabled:t.filteredValue.length===0,type:"button",onClick:e[1]||(e[1]=(...p)=>t.handleConfirm&&t.handleConfirm(...p))},Ae(t.t("el.table.confirmFilter")),11,CBe),G("button",{type:"button",onClick:e[2]||(e[2]=(...p)=>t.handleReset&&t.handleReset(...p))},Ae(t.t("el.table.resetFilter")),1)],2)])):(B(),q("ul",{key:1,class:F(t.ns.e("list"))},[G("li",{class:F([t.ns.e("list-item"),{[t.ns.is("active")]:t.filterValue===void 0||t.filterValue===null}]),onClick:e[3]||(e[3]=p=>t.handleSelect(null))},Ae(t.t("el.table.clearFilter")),3),(B(!0),q(Ze,null,Pt(t.filters,p=>(B(),q("li",{key:p.value,class:F([t.ns.e("list-item"),t.ns.is("active",t.isActive(p))]),label:p.value,onClick:v=>t.handleSelect(p.value)},Ae(p.text),11,TBe))),128))],2))]),default:Z(()=>[yt((B(),q("span",{class:F([`${t.ns.namespace.value}-table__column-filter-trigger`,`${t.ns.namespace.value}-none-outline`]),onClick:e[4]||(e[4]=(...p)=>t.showFilterPanel&&t.showFilterPanel(...p))},[H(f,null,{default:Z(()=>[t.column.filterOpened?(B(),de(u,{key:0})):(B(),de(c,{key:1}))]),_:1})],2)),[[h,t.hideFilterPanel,t.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var MBe=Ne(wBe,[["render",EBe],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function DK(t){const e=wt();Mw(()=>{n.value.addObserver(e)}),ht(()=>{r(n.value),a(n.value)}),As(()=>{r(n.value),a(n.value)}),rc(()=>{n.value.removeObserver(e)});const n=O(()=>{const i=t.layout;if(!i)throw new Error("Can not find table layout.");return i}),r=i=>{var o;const s=((o=t.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col"))||[];if(!s.length)return;const l=i.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,f=s.length;c{var o,s;const l=((o=t.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c{v.stopPropagation()},i=(v,g)=>{!g.filters&&g.sortable?p(v,g,!1):g.filterable&&!g.sortable&&a(v),r==null||r.emit("header-click",g,v)},o=(v,g)=>{r==null||r.emit("header-contextmenu",g,v)},s=z(null),l=z(!1),u=z({}),c=(v,g)=>{if(Ut&&!(g.children&&g.children.length>0)&&s.value&&t.border){l.value=!0;const y=r;e("set-drag-visible",!0);const b=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,_=n.vnode.el.querySelector(`th.${g.id}`),x=_.getBoundingClientRect(),w=x.left-b+30;fs(_,"noclick"),u.value={startMouseLeft:v.clientX,startLeft:x.right-b,startColumnLeft:x.left-b,tableLeft:b};const C=y==null?void 0:y.refs.resizeProxy;C.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const T=E=>{const M=E.clientX-u.value.startMouseLeft,D=u.value.startLeft+M;C.style.left=`${Math.max(w,D)}px`},k=()=>{if(l.value){const{startColumnLeft:E,startLeft:M}=u.value,R=Number.parseInt(C.style.left,10)-E;g.width=g.realWidth=R,y==null||y.emit("header-dragend",g.width,M-E,g,v),requestAnimationFrame(()=>{t.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,s.value=null,u.value={},e("set-drag-visible",!1)}document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",k),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{qa(_,"noclick")},0)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",k)}},f=(v,g)=>{if(g.children&&g.children.length>0)return;const y=v.target;if(!Ui(y))return;const m=y==null?void 0:y.closest("th");if(!(!g||!g.resizable)&&!l.value&&t.border){const b=m.getBoundingClientRect(),_=document.body.style;b.width>12&&b.right-v.pageX<8?(_.cursor="col-resize",Do(m,"is-sortable")&&(m.style.cursor="col-resize"),s.value=g):l.value||(_.cursor="",Do(m,"is-sortable")&&(m.style.cursor="pointer"),s.value=null)}},d=()=>{Ut&&(document.body.style.cursor="")},h=({order:v,sortOrders:g})=>{if(v==="")return g[0];const y=g.indexOf(v||null);return g[y>g.length-2?0:y+1]},p=(v,g,y)=>{var m;v.stopPropagation();const b=g.order===y?null:y||h(g),_=(m=v.target)==null?void 0:m.closest("th");if(_&&Do(_,"noclick")){qa(_,"noclick");return}if(!g.sortable)return;const x=t.store.states;let w=x.sortProp.value,C;const T=x.sortingColumn.value;(T!==g||T===g&&T.order===null)&&(T&&(T.order=null),x.sortingColumn.value=g,w=g.property),b?C=g.order=b:C=g.order=null,x.sortProp.value=w,x.sortOrder.value=C,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:p,handleFilterClick:a}}function DBe(t){const e=We($s),n=De("table");return{getHeaderRowStyle:s=>{const l=e==null?void 0:e.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:s}):l},getHeaderRowClass:s=>{const l=[],u=e==null?void 0:e.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=e==null?void 0:e.props.headerCellStyle)!=null?f:{};typeof d=="function"&&(d=d.call(null,{rowIndex:s,columnIndex:l,row:u,column:c}));const h=xA(l,c.fixed,t.store,u);return wv(h,"left"),wv(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=wA(n.b(),l,c.fixed,t.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=e==null?void 0:e.props.headerCellClassName;return typeof h=="string"?d.push(h):typeof h=="function"&&d.push(h.call(null,{rowIndex:s,columnIndex:l,row:u,column:c})),d.push(n.e("cell")),d.filter(p=>!!p).join(" ")}}}const RK=t=>{const e=[];return t.forEach(n=>{n.children?(e.push(n),e.push.apply(e,RK(n.children))):e.push(n)}),e},RBe=t=>{let e=1;const n=(i,o)=>{if(o&&(i.level=o.level+1,e{n(l,i),s+=l.colSpan}),i.colSpan=s}else i.colSpan=1};t.forEach(i=>{i.level=1,n(i,void 0)});const r=[];for(let i=0;i{i.children?(i.rowSpan=1,i.children.forEach(o=>o.isSubColumn=!0)):i.rowSpan=e-i.level+1,r[i.level-1].push(i)}),r};function LBe(t){const e=We($s),n=O(()=>RBe(t.store.states.originColumns.value));return{isGroup:O(()=>{const i=n.value.length>1;return i&&e&&(e.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),e==null||e.store.commit("toggleAllSelection")},columnRows:n}}var ABe=ie({name:"ElTableHeader",components:{ElCheckbox:Xi},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(t,{emit:e}){const n=wt(),r=We($s),a=De("table"),i=z({}),{onColumnsChange:o,onScrollableChange:s}=DK(r);ht(async()=>{await Xe(),await Xe();const{prop:w,order:C}=t.defaultSort;r==null||r.store.commit("sort",{prop:w,order:C,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:p}=kBe(t,e),{getHeaderRowStyle:v,getHeaderRowClass:g,getHeaderCellStyle:y,getHeaderCellClass:m}=DBe(t),{isGroup:b,toggleAllSelection:_,columnRows:x}=LBe(t);return n.state={onColumnsChange:o,onScrollableChange:s},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:s,columnRows:x,getHeaderRowClass:g,getHeaderRowStyle:v,getHeaderCellClass:m,getHeaderCellStyle:y,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:p,isGroup:b,toggleAllSelection:_}},render(){const{ns:t,isGroup:e,columnRows:n,getHeaderCellStyle:r,getHeaderCellClass:a,getHeaderRowClass:i,getHeaderRowStyle:o,handleHeaderClick:s,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:d,store:h,$parent:p}=this;let v=1;return tt("thead",{class:{[t.is("group")]:e}},n.map((g,y)=>tt("tr",{class:i(y),key:y,style:o(y)},g.map((m,b)=>(m.rowSpan>v&&(v=m.rowSpan),tt("th",{class:a(y,b,g,m),colspan:m.colSpan,key:`${m.id}-thead`,rowspan:m.rowSpan,style:r(y,b,g,m),onClick:_=>s(_,m),onContextmenu:_=>l(_,m),onMousedown:_=>u(_,m),onMousemove:_=>c(_,m),onMouseout:d},[tt("div",{class:["cell",m.filteredValue&&m.filteredValue.length>0?"highlight":""]},[m.renderHeader?m.renderHeader({column:m,$index:b,store:h,_self:p}):m.label,m.sortable&&tt("span",{onClick:_=>f(_,m),class:"caret-wrapper"},[tt("i",{onClick:_=>f(_,m,"ascending"),class:"sort-caret ascending"}),tt("i",{onClick:_=>f(_,m,"descending"),class:"sort-caret descending"})]),m.filterable&&tt(MBe,{store:h,placement:m.filterPlacement||"bottom-start",column:m,upDataColumn:(_,x)=>{m[_]=x}})])]))))))}});function OBe(t){const e=We($s),n=z(""),r=z(tt("div")),{nextZIndex:a}=Xv(),i=(p,v,g)=>{var y;const m=e,b=Q2(p);let _;const x=(y=m==null?void 0:m.vnode.el)==null?void 0:y.dataset.prefix;b&&(_=PV({columns:t.store.states.columns.value},b,x),_&&(m==null||m.emit(`cell-${g}`,v,_,b,p))),m==null||m.emit(`row-${g}`,v,_,p)},o=(p,v)=>{i(p,v,"dblclick")},s=(p,v)=>{t.store.commit("setCurrentRow",v),i(p,v,"click")},l=(p,v)=>{i(p,v,"contextmenu")},u=Oa(p=>{t.store.commit("setHoverRow",p)},30),c=Oa(()=>{t.store.commit("setHoverRow",null)},30),f=p=>{const v=window.getComputedStyle(p,null),g=Number.parseInt(v.paddingLeft,10)||0,y=Number.parseInt(v.paddingRight,10)||0,m=Number.parseInt(v.paddingTop,10)||0,b=Number.parseInt(v.paddingBottom,10)||0;return{left:g,right:y,top:m,bottom:b}};return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(p,v,g)=>{var y;const m=e,b=Q2(p),_=(y=m==null?void 0:m.vnode.el)==null?void 0:y.dataset.prefix;if(b){const N=PV({columns:t.store.states.columns.value},b,_),I=m.hoverState={cell:b,column:N,row:v};m==null||m.emit("cell-mouse-enter",I.row,I.column,I.cell,p)}if(!g)return;const x=p.target.querySelector(".cell");if(!(Do(x,`${_}-tooltip`)&&x.childNodes.length))return;const w=document.createRange();w.setStart(x,0),w.setEnd(x,x.childNodes.length);let C=w.getBoundingClientRect().width,T=w.getBoundingClientRect().height;C-Math.floor(C)<.001&&(C=Math.floor(C)),T-Math.floor(T)<.001&&(T=Math.floor(T));const{top:M,left:D,right:R,bottom:A}=f(x),V=D+R,P=M+A;(C+V>x.offsetWidth||T+P>x.offsetHeight||x.scrollWidth>x.offsetWidth)&&fBe(e==null?void 0:e.refs.tableWrapper,b,b.innerText||b.textContent,a,g)},handleCellMouseLeave:p=>{if(!Q2(p))return;const g=e==null?void 0:e.hoverState;e==null||e.emit("cell-mouse-leave",g==null?void 0:g.row,g==null?void 0:g.column,g==null?void 0:g.cell,p)},tooltipContent:n,tooltipTrigger:r}}function NBe(t){const e=We($s),n=De("table");return{getRowStyle:(u,c)=>{const f=e==null?void 0:e.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[n.e("row")];e!=null&&e.props.highlightCurrentRow&&u===t.store.states.currentRow.value&&f.push("current-row"),t.stripe&&c%2===1&&f.push(n.em("row","striped"));const d=e==null?void 0:e.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=e==null?void 0:e.props.cellStyle;let p=h??{};typeof h=="function"&&(p=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const v=xA(c,t==null?void 0:t.fixed,t.store);return wv(v,"left"),wv(v,"right"),Object.assign({},p,v)},getCellClass:(u,c,f,d,h)=>{const p=wA(n.b(),c,t==null?void 0:t.fixed,t.store,void 0,h),v=[d.id,d.align,d.className,...p],g=e==null?void 0:e.props.cellClassName;return typeof g=="string"?v.push(g):typeof g=="function"&&v.push(g.call(null,{rowIndex:u,columnIndex:c,row:f,column:d})),v.push(n.e("cell")),v.filter(y=>!!y).join(" ")},getSpan:(u,c,f,d)=>{let h=1,p=1;const v=e==null?void 0:e.props.spanMethod;if(typeof v=="function"){const g=v({row:u,column:c,rowIndex:f,columnIndex:d});Array.isArray(g)?(h=g[0],p=g[1]):typeof g=="object"&&(h=g.rowspan,p=g.colspan)}return{rowspan:h,colspan:p}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:p})=>h||p).slice(f,f+c);return Number(d.reduce((h,p)=>Number(h)+Number(p),-1))}}}function $Be(t){const e=We($s),n=De("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=OBe(t),{getRowStyle:d,getRowClass:h,getCellStyle:p,getCellClass:v,getSpan:g,getColspanRealWidth:y}=NBe(t),m=O(()=>t.store.states.columns.value.findIndex(({type:C})=>C==="default")),b=(C,T)=>{const k=e.props.rowKey;return k?Wr(C,k):T},_=(C,T,k,E=!1)=>{const{tooltipEffect:M,tooltipOptions:D,store:R}=t,{indent:A,columns:V}=R.states,P=h(C,T);let N=!0;return k&&(P.push(n.em("row",`level-${k.level}`)),N=k.display),tt("tr",{style:[N?null:{display:"none"},d(C,T)],class:P,key:b(C,T),onDblclick:L=>r(L,C),onClick:L=>a(L,C),onContextmenu:L=>i(L,C),onMouseenter:()=>o(T),onMouseleave:s},V.value.map((L,$)=>{const{rowspan:U,colspan:j}=g(C,L,T,$);if(!U||!j)return null;const Y=Object.assign({},L);Y.realWidth=y(V.value,j,$);const oe={store:t.store,_self:t.context||e,column:Y,row:C,$index:T,cellIndex:$,expanded:E};$===m.value&&k&&(oe.treeNode={indent:k.level*A.value,level:k.level},typeof k.expanded=="boolean"&&(oe.treeNode.expanded=k.expanded,"loading"in k&&(oe.treeNode.loading=k.loading),"noLazyChildren"in k&&(oe.treeNode.noLazyChildren=k.noLazyChildren)));const te=`${T},${$}`,re=Y.columnKey||Y.rawColumnKey||"",ne=x($,L,oe),J=L.showOverflowTooltip&&o9({effect:M},D,L.showOverflowTooltip);return tt("td",{style:p(T,$,C,L),class:v(T,$,C,L,j-1),key:`${re}${te}`,rowspan:U,colspan:j,onMouseenter:he=>l(he,C,J),onMouseleave:u},[ne])}))},x=(C,T,k)=>T.renderCell(k);return{wrappedRowRender:(C,T)=>{const k=t.store,{isRowExpanded:E,assertRowKey:M}=k,{treeData:D,lazyTreeNodeMap:R,childrenColumnName:A,rowKey:V}=k.states,P=k.states.columns.value;if(P.some(({type:I})=>I==="expand")){const I=E(C),L=_(C,T,void 0,I),$=e.renderExpanded;return I?$?[[L,tt("tr",{key:`expanded-row__${L.key}`},[tt("td",{colspan:P.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[$({row:C,$index:T,store:k,expanded:I})])])]]:(console.error("[Element Error]renderExpanded is required."),L):[[L]]}else if(Object.keys(D.value).length){M();const I=Wr(C,V.value);let L=D.value[I],$=null;L&&($={expanded:L.expanded,level:L.level,display:!0},typeof L.lazy=="boolean"&&(typeof L.loaded=="boolean"&&L.loaded&&($.noLazyChildren=!(L.children&&L.children.length)),$.loading=L.loading));const U=[_(C,T,$)];if(L){let j=0;const Y=(te,re)=>{te&&te.length&&re&&te.forEach(ne=>{const J={display:re.display&&re.expanded,level:re.level+1,expanded:!1,noLazyChildren:!1,loading:!1},he=Wr(ne,V.value);if(he==null)throw new Error("For nested data item, row-key is required.");if(L={...D.value[he]},L&&(J.expanded=L.expanded,L.level=L.level||J.level,L.display=!!(L.expanded&&J.display),typeof L.lazy=="boolean"&&(typeof L.loaded=="boolean"&&L.loaded&&(J.noLazyChildren=!(L.children&&L.children.length)),J.loading=L.loading)),j++,U.push(_(ne,T+j,J)),L){const ue=R.value[he]||ne[A.value];Y(ue,L)}})};L.display=!0;const oe=R.value[I]||C[A.value];Y(oe,L)}return U}else return _(C,T,void 0)},tooltipContent:c,tooltipTrigger:f}}const IBe={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 BBe=ie({name:"ElTableBody",props:IBe,setup(t){const e=wt(),n=We($s),r=De("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=$Be(t),{onColumnsChange:s,onScrollableChange:l}=DK(n);return Ee(t.store.states.hoverRow,(u,c)=>{!t.store.states.isComplex.value||!Ut||vv(()=>{const f=e==null?void 0:e.vnode.el,d=Array.from((f==null?void 0:f.children)||[]).filter(v=>v==null?void 0:v.classList.contains(`${r.e("row")}`)),h=d[c],p=d[u];h&&qa(h,"hover-row"),p&&fs(p,"hover-row")})}),rc(()=>{var u;(u=Ks)==null||u()}),{ns:r,onColumnsChange:s,onScrollableChange:l,wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}},render(){const{wrappedRowRender:t,store:e}=this,n=e.states.data.value||[];return tt("tbody",{tabIndex:-1},[n.reduce((r,a)=>r.concat(t(a,r.length)),[])])}});function CA(t){const e=t.tableLayout==="auto";let n=t.columns||[];e&&n.every(a=>a.width===void 0)&&(n=[]);const r=a=>{const i={key:`${t.tableLayout}_${a.id}`,style:{},name:void 0};return e?i.style={width:`${a.width}px`}:i.name=a.id,i};return tt("colgroup",{},n.map(a=>tt("col",r(a))))}CA.props=["columns","tableLayout"];function VBe(){const t=We($s),e=t==null?void 0:t.store,n=O(()=>e.states.fixedLeafColumnsLength.value),r=O(()=>e.states.rightFixedColumns.value.length),a=O(()=>e.states.columns.value.length),i=O(()=>e.states.fixedColumns.value.length),o=O(()=>e.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:e.states.columns}}function PBe(t){const{columns:e}=VBe(),n=De("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[n.e("cell"),s.id,s.align,s.labelClassName,...wA(n.b(),o,s.fixed,t.store)];return s.className&&l.push(s.className),s.children||l.push(n.is("leaf")),l},getCellStyles:(i,o)=>{const s=xA(o,i.fixed,t.store);return wv(s,"left"),wv(s,"right"),s},columns:e}}var FBe=ie({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(t){const{getCellClasses:e,getCellStyles:n,columns:r}=PBe(t);return{ns:De("table"),getCellClasses:e,getCellStyles:n,columns:r}},render(){const{columns:t,getCellStyles:e,getCellClasses:n,summaryMethod:r,sumText:a,ns:i}=this,o=this.store.states.data.value;let s=[];return r?s=r({columns:t,data:o}):t.forEach((l,u)=>{if(u===0){s[u]=a;return}const c=o.map(p=>Number(p[l.property])),f=[];let d=!0;c.forEach(p=>{if(!Number.isNaN(+p)){d=!1;const v=`${p}`.split(".")[1];f.push(v?v.length:0)}});const h=Math.max.apply(null,f);d?s[u]="":s[u]=c.reduce((p,v)=>{const g=Number(v);return Number.isNaN(+g)?p:Number.parseFloat((p+v).toFixed(Math.min(h,20)))},0)}),tt("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[CA({columns:t}),tt("tbody",[tt("tr",{},[...t.map((l,u)=>tt("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(t,u),style:e(l,u)},[tt("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function zBe(t){return{setCurrentRow:c=>{t.commit("setCurrentRow",c)},getSelectionRows:()=>t.getSelectionRows(),toggleRowSelection:(c,f)=>{t.toggleRowSelection(c,f,!1),t.updateAllSelected()},clearSelection:()=>{t.clearSelection()},clearFilter:c=>{t.clearFilter(c)},toggleAllSelection:()=>{t.commit("toggleAllSelection")},toggleRowExpansion:(c,f)=>{t.toggleRowExpansionAdapter(c,f)},clearSort:()=>{t.clearSort()},sort:(c,f)=>{t.commit("sort",{prop:c,order:f})}}}function GBe(t,e,n,r){const a=z(!1),i=z(null),o=z(!1),s=L=>{o.value=L},l=z({width:null,height:null,headerHeight:null}),u=z(!1),c={display:"inline-block",verticalAlign:"middle"},f=z(),d=z(0),h=z(0),p=z(0),v=z(0),g=z(0);di(()=>{e.setHeight(t.height)}),di(()=>{e.setMaxHeight(t.maxHeight)}),Ee(()=>[t.currentRowKey,n.states.rowKey],([L,$])=>{!S($)||!S(L)||n.setCurrentRowKey(`${L}`)},{immediate:!0}),Ee(()=>t.data,L=>{r.store.commit("setData",L)},{immediate:!0,deep:!0}),di(()=>{t.expandRowKeys&&n.setExpandRowKeysAdapter(t.expandRowKeys)});const y=()=>{r.store.commit("setHoverRow",null),r.hoverState&&(r.hoverState=null)},m=(L,$)=>{const{pixelX:U,pixelY:j}=$;Math.abs(U)>=Math.abs(j)&&(r.refs.bodyWrapper.scrollLeft+=$.pixelX/5)},b=O(()=>t.height||t.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),_=O(()=>({width:e.bodyWidth.value?`${e.bodyWidth.value}px`:""})),x=()=>{b.value&&e.updateElsHeight(),e.updateColumnsWidth(),requestAnimationFrame(k)};ht(async()=>{await Xe(),n.updateColumns(),E(),requestAnimationFrame(x);const L=r.vnode.el,$=r.refs.headerWrapper;t.flexible&&L&&L.parentElement&&(L.parentElement.style.minWidth="0"),l.value={width:f.value=L.offsetWidth,height:L.offsetHeight,headerHeight:t.showHeader&&$?$.offsetHeight:null},n.states.columns.value.forEach(U=>{U.filteredValue&&U.filteredValue.length&&r.store.commit("filterChange",{column:U,values:U.filteredValue,silent:!0})}),r.$ready=!0});const w=(L,$)=>{if(!L)return;const U=Array.from(L.classList).filter(j=>!j.startsWith("is-scrolling-"));U.push(e.scrollX.value?$:"is-scrolling-none"),L.className=U.join(" ")},C=L=>{const{tableWrapper:$}=r.refs;w($,L)},T=L=>{const{tableWrapper:$}=r.refs;return!!($&&$.classList.contains(L))},k=function(){if(!r.refs.scrollBarRef)return;if(!e.scrollX.value){const re="is-scrolling-none";T(re)||C(re);return}const L=r.refs.scrollBarRef.wrapRef;if(!L)return;const{scrollLeft:$,offsetWidth:U,scrollWidth:j}=L,{headerWrapper:Y,footerWrapper:oe}=r.refs;Y&&(Y.scrollLeft=$),oe&&(oe.scrollLeft=$);const te=j-U-1;$>=te?C("is-scrolling-right"):C($===0?"is-scrolling-left":"is-scrolling-middle")},E=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&Rn(r.refs.scrollBarRef.wrapRef,"scroll",k,{passive:!0}),t.fit?da(r.vnode.el,M):Rn(window,"resize",M),da(r.refs.bodyWrapper,()=>{var L,$;M(),($=(L=r.refs)==null?void 0:L.scrollBarRef)==null||$.update()}))},M=()=>{var L,$,U,j;const Y=r.vnode.el;if(!r.$ready||!Y)return;let oe=!1;const{width:te,height:re,headerHeight:ne}=l.value,J=f.value=Y.offsetWidth;te!==J&&(oe=!0);const he=Y.offsetHeight;(t.height||b.value)&&re!==he&&(oe=!0);const ue=t.tableLayout==="fixed"?r.refs.headerWrapper:(L=r.refs.tableHeaderRef)==null?void 0:L.$el;t.showHeader&&(ue==null?void 0:ue.offsetHeight)!==ne&&(oe=!0),d.value=(($=r.refs.tableWrapper)==null?void 0:$.scrollHeight)||0,p.value=(ue==null?void 0:ue.scrollHeight)||0,v.value=((U=r.refs.footerWrapper)==null?void 0:U.offsetHeight)||0,g.value=((j=r.refs.appendWrapper)==null?void 0:j.offsetHeight)||0,h.value=d.value-p.value-v.value-g.value,oe&&(l.value={width:J,height:he,headerHeight:t.showHeader&&(ue==null?void 0:ue.offsetHeight)||0},x())},D=hr(),R=O(()=>{const{bodyWidth:L,scrollY:$,gutterWidth:U}=e;return L.value?`${L.value-($.value?U:0)}px`:""}),A=O(()=>t.maxHeight?"fixed":t.tableLayout),V=O(()=>{if(t.data&&t.data.length)return null;let L="100%";t.height&&h.value&&(L=`${h.value}px`);const $=f.value;return{width:$?`${$}px`:"",height:L}}),P=O(()=>t.height?{height:Number.isNaN(Number(t.height))?t.height:`${t.height}px`}:t.maxHeight?{maxHeight:Number.isNaN(Number(t.maxHeight))?t.maxHeight:`${t.maxHeight}px`}:{}),N=O(()=>t.height?{height:"100%"}:t.maxHeight?Number.isNaN(Number(t.maxHeight))?{maxHeight:`calc(${t.maxHeight} - ${p.value+v.value}px)`}:{maxHeight:`${t.maxHeight-p.value-v.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:y,handleHeaderFooterMousewheel:m,tableSize:D,emptyBlockStyle:V,handleFixedMousewheel:(L,$)=>{const U=r.refs.bodyWrapper;if(Math.abs($.spinY)>0){const j=U.scrollTop;$.pixelY<0&&j!==0&&L.preventDefault(),$.pixelY>0&&U.scrollHeight-U.clientHeight>j&&L.preventDefault(),U.scrollTop+=Math.ceil($.pixelY/5)}else U.scrollLeft+=Math.ceil($.pixelX/5)},resizeProxyVisible:o,bodyWidth:R,resizeState:l,doLayout:x,tableBodyStyles:_,tableLayout:A,scrollbarViewStyle:c,tableInnerStyle:P,scrollbarStyle:N}}function HBe(t){const e=z(),n=()=>{const a=t.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},o=t.store.states.updateOrderFns;e.value=new MutationObserver(()=>{o.forEach(s=>s())}),e.value.observe(a,i)};ht(()=>{n()}),rc(()=>{var r;(r=e.value)==null||r.disconnect()})}var UBe={data:{type:Array,default:()=>[]},size:qr,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};const WBe=()=>{const t=z(),e=(i,o)=>{const s=t.value;s&&s.scrollTo(i,o)},n=(i,o)=>{const s=t.value;s&<(o)&&["Top","Left"].includes(i)&&s[`setScroll${i}`](o)};return{scrollBarRef:t,scrollTo:e,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let jBe=1;const KBe=ie({name:"ElTable",directives:{Mousewheel:ATe},components:{TableHeader:ABe,TableBody:BBe,TableFooter:FBe,ElScrollbar:Rl,hColgroup:CA},props:UBe,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(t){const{t:e}=Kt(),n=De("table"),r=wt();Nt($s,r);const a=mBe(r,t);r.store=a;const i=new SBe({store:r.store,table:r,fit:t.fit,showHeader:t.showHeader});r.layout=i;const o=O(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:p,sort:v}=zBe(a),{isHidden:g,renderExpanded:y,setDragVisible:m,isGroup:b,handleMouseLeave:_,handleHeaderFooterMousewheel:x,tableSize:w,emptyBlockStyle:C,handleFixedMousewheel:T,resizeProxyVisible:k,bodyWidth:E,resizeState:M,doLayout:D,tableBodyStyles:R,tableLayout:A,scrollbarViewStyle:V,tableInnerStyle:P,scrollbarStyle:N}=GBe(t,i,a,r),{scrollBarRef:I,scrollTo:L,setScrollLeft:$,setScrollTop:U}=WBe(),j=Oa(D,50),Y=`${n.namespace.value}-table_${jBe++}`;r.tableId=Y,r.state={isGroup:b,resizeState:M,doLayout:D,debouncedUpdateLayout:j};const oe=O(()=>t.sumText||e("el.table.sumText")),te=O(()=>t.emptyText||e("el.table.emptyText"));return HBe(r),{ns:n,layout:i,store:a,handleHeaderFooterMousewheel:x,handleMouseLeave:_,tableId:Y,tableSize:w,isHidden:g,isEmpty:o,renderExpanded:y,resizeProxyVisible:k,resizeState:M,isGroup:b,bodyWidth:E,tableBodyStyles:R,emptyBlockStyle:C,debouncedUpdateLayout:j,handleFixedMousewheel:T,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:p,doLayout:D,sort:v,t:e,setDragVisible:m,context:r,computedSumText:oe,computedEmptyText:te,tableLayout:A,scrollbarViewStyle:V,tableInnerStyle:P,scrollbarStyle:N,scrollBarRef:I,scrollTo:L,setScrollLeft:$,setScrollTop:U}}}),YBe=["data-prefix"],XBe={ref:"hiddenColumns",class:"hidden-columns"};function qBe(t,e,n,r,a,i){const o=Ge("hColgroup"),s=Ge("table-header"),l=Ge("table-body"),u=Ge("el-scrollbar"),c=Ge("table-footer"),f=m0("mousewheel");return B(),q("div",{ref:"tableWrapper",class:F([{[t.ns.m("fit")]:t.fit,[t.ns.m("striped")]:t.stripe,[t.ns.m("border")]:t.border||t.isGroup,[t.ns.m("hidden")]:t.isHidden,[t.ns.m("group")]:t.isGroup,[t.ns.m("fluid-height")]:t.maxHeight,[t.ns.m("scrollable-x")]:t.layout.scrollX.value,[t.ns.m("scrollable-y")]:t.layout.scrollY.value,[t.ns.m("enable-row-hover")]:!t.store.states.isComplex.value,[t.ns.m("enable-row-transition")]:(t.store.states.data.value||[]).length!==0&&(t.store.states.data.value||[]).length<100,"has-footer":t.showSummary},t.ns.m(t.tableSize),t.className,t.ns.b(),t.ns.m(`layout-${t.tableLayout}`)]),style:qe(t.style),"data-prefix":t.ns.namespace.value,onMouseleave:e[0]||(e[0]=(...d)=>t.handleMouseLeave&&t.handleMouseLeave(...d))},[G("div",{class:F(t.ns.e("inner-wrapper")),style:qe(t.tableInnerStyle)},[G("div",XBe,[Te(t.$slots,"default")],512),t.showHeader&&t.tableLayout==="fixed"?yt((B(),q("div",{key:0,ref:"headerWrapper",class:F(t.ns.e("header-wrapper"))},[G("table",{ref:"tableHeader",class:F(t.ns.e("header")),style:qe(t.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[H(o,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),H(s,{ref:"tableHeaderRef",border:t.border,"default-sort":t.defaultSort,store:t.store,onSetDragVisible:t.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[f,t.handleHeaderFooterMousewheel]]):le("v-if",!0),G("div",{ref:"bodyWrapper",class:F(t.ns.e("body-wrapper"))},[H(u,{ref:"scrollBarRef","view-style":t.scrollbarViewStyle,"wrap-style":t.scrollbarStyle,always:t.scrollbarAlwaysOn},{default:Z(()=>[G("table",{ref:"tableBody",class:F(t.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:qe({width:t.bodyWidth,tableLayout:t.tableLayout})},[H(o,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),t.showHeader&&t.tableLayout==="auto"?(B(),de(s,{key:0,ref:"tableHeaderRef",border:t.border,"default-sort":t.defaultSort,store:t.store,onSetDragVisible:t.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):le("v-if",!0),H(l,{context:t.context,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"tooltip-effect":t.tooltipEffect,"tooltip-options":t.tooltipOptions,"row-style":t.rowStyle,store:t.store,stripe:t.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),t.isEmpty?(B(),q("div",{key:0,ref:"emptyBlock",style:qe(t.emptyBlockStyle),class:F(t.ns.e("empty-block"))},[G("span",{class:F(t.ns.e("empty-text"))},[Te(t.$slots,"empty",{},()=>[Qe(Ae(t.computedEmptyText),1)])],2)],6)):le("v-if",!0),t.$slots.append?(B(),q("div",{key:1,ref:"appendWrapper",class:F(t.ns.e("append-wrapper"))},[Te(t.$slots,"append")],2)):le("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),t.showSummary?yt((B(),q("div",{key:1,ref:"footerWrapper",class:F(t.ns.e("footer-wrapper"))},[H(c,{border:t.border,"default-sort":t.defaultSort,store:t.store,style:qe(t.tableBodyStyles),"sum-text":t.computedSumText,"summary-method":t.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[qt,!t.isEmpty],[f,t.handleHeaderFooterMousewheel]]):le("v-if",!0),t.border||t.isGroup?(B(),q("div",{key:2,class:F(t.ns.e("border-left-patch"))},null,2)):le("v-if",!0)],6),yt(G("div",{ref:"resizeProxy",class:F(t.ns.e("column-resize-proxy"))},null,2),[[qt,t.resizeProxyVisible]])],46,YBe)}var ZBe=Ne(KBe,[["render",qBe],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const QBe={selection:"table-column--selection",expand:"table__expand-column"},JBe={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:""}},eVe=t=>QBe[t]||"",tVe={selection:{renderHeader({store:t,column:e}){function n(){return t.states.data.value&&t.states.data.value.length===0}return tt(Xi,{disabled:n(),size:t.states.tableSize.value,indeterminate:t.states.selection.value.length>0&&!t.states.isAllSelected.value,"onUpdate:modelValue":t.toggleAllSelection,modelValue:t.states.isAllSelected.value,ariaLabel:e.label})},renderCell({row:t,column:e,store:n,$index:r}){return tt(Xi,{disabled:e.selectable?!e.selectable.call(null,t,r):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",t)},onClick:a=>a.stopPropagation(),modelValue:n.isSelected(t),ariaLabel:e.label})},sortable:!1,resizable:!1},index:{renderHeader({column:t}){return t.label||"#"},renderCell({column:t,$index:e}){let n=e+1;const r=t.index;return typeof r=="number"?n=e+r:typeof r=="function"&&(n=r(e)),tt("div",{},[n])},sortable:!1},expand:{renderHeader({column:t}){return t.label||""},renderCell({row:t,store:e,expanded:n}){const{ns:r}=e,a=[r.e("expand-icon")];return n&&a.push(r.em("expand-icon","expanded")),tt("div",{class:a,onClick:function(o){o.stopPropagation(),e.toggleRowExpansion(t)}},{default:()=>[tt(Ye,null,{default:()=>[tt(ka)]})]})},sortable:!1,resizable:!1}};function nVe({row:t,column:e,$index:n}){var r;const a=e.property,i=a&&kb(t,a).value;return e&&e.formatter?e.formatter(t,e,i,n):((r=i==null?void 0:i.toString)==null?void 0:r.call(i))||""}function rVe({row:t,treeNode:e,store:n},r=!1){const{ns:a}=n;if(!e)return r?[tt("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!e.loading&&n.loadOrToggle(t)};if(e.indent&&i.push(tt("span",{class:a.e("indent"),style:{"padding-left":`${e.indent}px`}})),typeof e.expanded=="boolean"&&!e.noLazyChildren){const s=[a.e("expand-icon"),e.expanded?a.em("expand-icon","expanded"):""];let l=ka;e.loading&&(l=oc),i.push(tt("div",{class:s,onClick:o},{default:()=>[tt(Ye,{class:{[a.is("loading")]:e.loading}},{default:()=>[tt(l)]})]}))}else i.push(tt("span",{class:a.e("placeholder")}));return i}function GV(t,e){return t.reduce((n,r)=>(n[r]=r,n),e)}function aVe(t,e){const n=wt();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=GV(i,o);Object.keys(s).forEach(l=>{const u=o[l];Gt(e,u)&&Ee(()=>e[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=_A(c)),u==="minWidth"&&l==="realMinWidth"&&(f=CK(c)),n.columnConfig.value[u]=f,n.columnConfig.value[l]=f;const d=u==="fixed";t.value.store.scheduleLayout(d)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],o={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},s=GV(i,o);Object.keys(s).forEach(l=>{const u=o[l];Gt(e,u)&&Ee(()=>e[u],c=>{n.columnConfig.value[l]=c})})}}}function iVe(t,e,n){const r=wt(),a=z(""),i=z(!1),o=z(),s=z(),l=De("table");di(()=>{o.value=t.align?`is-${t.align}`:null,o.value}),di(()=>{s.value=t.headerAlign?`is-${t.headerAlign}`:o.value,s.value});const u=O(()=>{let _=r.vnode.vParent||r.parent;for(;_&&!_.tableId&&!_.columnId;)_=_.vnode.vParent||_.parent;return _}),c=O(()=>{const{store:_}=r.parent;if(!_)return!1;const{treeData:x}=_.states,w=x.value;return w&&Object.keys(w).length>0}),f=z(_A(t.width)),d=z(CK(t.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),_),p=_=>{const x=_.type,w=tVe[x]||{};Object.keys(w).forEach(T=>{const k=w[T];T!=="className"&&k!==void 0&&(_[T]=k)});const C=eVe(x);if(C){const T=`${S(l.namespace)}-${C}`;_.className=_.className?`${_.className} ${T}`:T}return _},v=_=>{Array.isArray(_)?_.forEach(w=>x(w)):x(_);function x(w){var C;((C=w==null?void 0:w.type)==null?void 0:C.name)==="ElTableColumn"&&(w.vParent=r)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:p,setColumnRenders:_=>{t.renderHeader||_.type!=="selection"&&(_.renderHeader=w=>{r.columnConfig.value.label;const C=e.header;return C?C(w):_.label});let x=_.renderCell;return _.type==="expand"?(_.renderCell=w=>tt("div",{class:"cell"},[x(w)]),n.value.renderExpanded=w=>e.default?e.default(w):e.default):(x=x||nVe,_.renderCell=w=>{let C=null;if(e.default){const R=e.default(w);C=R.some(A=>A.type!==Ma)?R:x(w)}else C=x(w);const{columns:T}=n.value.store.states,k=T.value.findIndex(R=>R.type==="default"),E=c.value&&w.cellIndex===k,M=rVe(w,E),D={class:"cell",style:{}};return _.showOverflowTooltip&&(D.class=`${D.class} ${S(l.namespace)}-tooltip`,D.style={width:`${(w.column.realWidth||Number(w.column.width))-1}px`}),v(C),tt("div",D,[M,C])}),_},getPropsData:(..._)=>_.reduce((x,w)=>(Array.isArray(w)&&w.forEach(C=>{x[C]=t[C]}),x),{}),getColumnElIndex:(_,x)=>Array.prototype.indexOf.call(_,x),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var oVe={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:t=>t.every(e=>["ascending","descending",null].includes(e))}};let sVe=1;var LK=ie({name:"ElTableColumn",components:{ElCheckbox:Xi},props:oVe,setup(t,{slots:e}){const n=wt(),r=z({}),a=O(()=>{let b=n.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:i,registerComplexWatchers:o}=aVe(a,t),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:p,getColumnElIndex:v,realAlign:g,updateColumnOrder:y}=iVe(t,e,a),m=c.value;s.value=`${m.tableId||m.columnId}_column_${sVe++}`,Mw(()=>{l.value=a.value!==m;const b=t.type||"default",_=t.sortable===""?!0:t.sortable,x=br(t.showOverflowTooltip)?m.props.showOverflowTooltip:t.showOverflowTooltip,w={...JBe[b],id:s.value,type:b,property:t.prop||t.property,align:g,headerAlign:u,showOverflowTooltip:x,filterable:t.filters||t.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:_,index:t.index,rawColumnKey:n.vnode.key};let M=p(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);M=sBe(w,M),M=uBe(h,f,d)(M),r.value=M,i(),o()}),ht(()=>{var b;const _=c.value,x=l.value?_.vnode.el.children:(b=_.refs.hiddenColumns)==null?void 0:b.children,w=()=>v(x||[],n.vnode.el);r.value.getColumnIndex=w,w()>-1&&a.value.store.commit("insertColumn",r.value,l.value?_.columnConfig.value:null,y)}),Tn(()=>{a.value.store.commit("removeColumn",r.value,l.value?m.columnConfig.value:null,y)}),n.columnId=s.value,n.columnConfig=r},render(){var t,e,n;try{const r=(e=(t=this.$slots).default)==null?void 0:e.call(t,{row:{},column:{},$index:-1}),a=[];if(Array.isArray(r))for(const o of r)((n=o.type)==null?void 0:n.name)==="ElTableColumn"||o.shapeFlag&2?a.push(o):o.type===Ze&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!ft(s==null?void 0:s.children)&&a.push(s)});return tt("div",a)}catch{return tt("div",[])}}});const lVe=Tt(ZBe,{TableColumn:LK}),uVe=Hn(LK);var G0=(t=>(t.ASC="asc",t.DESC="desc",t))(G0||{}),H0=(t=>(t.CENTER="center",t.RIGHT="right",t))(H0||{}),AK=(t=>(t.LEFT="left",t.RIGHT="right",t))(AK||{});const hk={asc:"desc",desc:"asc"},U0=Symbol("placeholder"),cVe=(t,e,n)=>{var r;const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:t.flexGrow||0,flexShrink:t.flexShrink||1}};n||(a.flexShrink=1);const i={...(r=t.style)!=null?r:{},...a,flexBasis:"auto",width:t.width};return e||(t.maxWidth&&(i.maxWidth=t.maxWidth),t.minWidth&&(i.minWidth=t.minWidth)),i};function fVe(t,e,n){const r=O(()=>S(e).filter(v=>!v.hidden)),a=O(()=>S(r).filter(v=>v.fixed==="left"||v.fixed===!0)),i=O(()=>S(r).filter(v=>v.fixed==="right")),o=O(()=>S(r).filter(v=>!v.fixed)),s=O(()=>{const v=[];return S(a).forEach(g=>{v.push({...g,placeholderSign:U0})}),S(o).forEach(g=>{v.push(g)}),S(i).forEach(g=>{v.push({...g,placeholderSign:U0})}),v}),l=O(()=>S(a).length||S(i).length),u=O(()=>S(e).reduce((g,y)=>(g[y.key]=cVe(y,S(n),t.fixed),g),{})),c=O(()=>S(r).reduce((v,g)=>v+g.width,0)),f=v=>S(e).find(g=>g.key===v),d=v=>S(u)[v],h=(v,g)=>{v.width=g};function p(v){var g;const{key:y}=v.currentTarget.dataset;if(!y)return;const{sortState:m,sortBy:b}=t;let _=G0.ASC;Lt(m)?_=hk[m[y]]:_=hk[b.order],(g=t.onColumnSort)==null||g.call(t,{column:f(y),key:y,order:_})}return{columns:e,columnsStyles:u,columnsTotalWidth:c,fixedColumnsOnLeft:a,fixedColumnsOnRight:i,hasFixedColumns:l,mainColumns:s,normalColumns:o,visibleColumns:r,getColumn:f,getColumnStyle:d,updateColumnWidth:h,onColumnSorted:p}}const dVe=(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const i=z({scrollLeft:0,scrollTop:0});function o(h){var p,v,g;const{scrollTop:y}=h;(p=e.value)==null||p.scrollTo(h),(v=n.value)==null||v.scrollToTop(y),(g=r.value)==null||g.scrollToTop(y)}function s(h){i.value=h,o(h)}function l(h){i.value.scrollTop=h,o(S(i))}function u(h){var p,v;i.value.scrollLeft=h,(v=(p=e.value)==null?void 0:p.scrollTo)==null||v.call(p,S(i))}function c(h){var p;s(h),(p=t.onScroll)==null||p.call(t,h)}function f({scrollTop:h}){const{scrollTop:p}=S(i);h!==p&&l(h)}function d(h,p="auto"){var v;(v=e.value)==null||v.scrollToRow(h,p)}return Ee(()=>S(i).scrollTop,(h,p)=>{h>p&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},hVe=(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r})=>{const a=wt(),{emit:i}=a,o=Sn(!1),s=Sn(null),l=z(t.defaultExpandedRowKeys||[]),u=z(-1),c=Sn(null),f=z({}),d=z({}),h=Sn({}),p=Sn({}),v=Sn({}),g=O(()=>lt(t.estimatedRowHeight));function y(T){var k;(k=t.onRowsRendered)==null||k.call(t,T),T.rowCacheEnd>S(u)&&(u.value=T.rowCacheEnd)}function m({hovered:T,rowKey:k}){s.value=T?k:null}function b({expanded:T,rowData:k,rowIndex:E,rowKey:M}){var D,R;const A=[...S(l)],V=A.indexOf(M);T?V===-1&&A.push(M):V>-1&&A.splice(V,1),l.value=A,i("update:expandedRowKeys",A),(D=t.onRowExpand)==null||D.call(t,{expanded:T,rowData:k,rowIndex:E,rowKey:M}),(R=t.onExpandedRowsChange)==null||R.call(t,A)}const _=Oa(()=>{var T,k,E,M;o.value=!0,f.value={...S(f),...S(d)},x(S(c),!1),d.value={},c.value=null,(T=e.value)==null||T.forceUpdate(),(k=n.value)==null||k.forceUpdate(),(E=r.value)==null||E.forceUpdate(),(M=a.proxy)==null||M.$forceUpdate(),o.value=!1},0);function x(T,k=!1){S(g)&&[e,n,r].forEach(E=>{const M=S(E);M&&M.resetAfterRowIndex(T,k)})}function w(T,k,E){const M=S(c);(M===null||M>E)&&(c.value=E),d.value[T]=k}function C({rowKey:T,height:k,rowIndex:E},M){M?M===AK.RIGHT?v.value[T]=k:h.value[T]=k:p.value[T]=k;const D=Math.max(...[h,v,p].map(R=>R.value[T]||0));S(f)[T]!==D&&(w(T,D,E),_())}return{hoveringRowKey:s,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:g,isResetting:o,rowHeights:f,resetAfterIndex:x,onRowExpanded:b,onRowHovered:m,onRowsRendered:y,onRowHeightChange:C}},vVe=(t,{expandedRowKeys:e,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=z({}),i=O(()=>{const s={},{data:l,rowKey:u}=t,c=S(e);if(!c||!c.length)return l;const f=[],d=new Set;c.forEach(p=>d.add(p));let h=l.slice();for(h.forEach(p=>s[p[u]]=0);h.length>0;){const p=h.shift();f.push(p),d.has(p[u])&&Array.isArray(p.children)&&p.children.length>0&&(h=[...p.children,...h],p.children.forEach(v=>s[v[u]]=s[p[u]]+1))}return a.value=s,f}),o=O(()=>{const{data:s,expandColumnKey:l}=t;return l?S(i):s});return Ee(o,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:o,depthMap:a}},pVe=(t,e)=>t+e,Hb=t=>He(t)?t.reduce(pVe,0):t,ed=(t,e,n={})=>ut(t)?t(e):t??n,yu=t=>(["width","maxWidth","minWidth","height"].forEach(e=>{t[e]=Xn(t[e])}),t),OK=t=>Ln(t)?e=>tt(t,e):t,gVe=(t,{columnsTotalWidth:e,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=O(()=>{const{fixed:b,width:_,vScrollbarSize:x}=t,w=_-x;return b?Math.max(Math.round(S(e)),w):w}),o=O(()=>S(i)+(t.fixed?t.vScrollbarSize:0)),s=O(()=>{const{height:b=0,maxHeight:_=0,footerHeight:x,hScrollbarSize:w}=t;if(_>0){const C=S(p),T=S(l),E=S(h)+C+T+w;return Math.min(E,_-x)}return b-x}),l=O(()=>{const{rowHeight:b,estimatedRowHeight:_}=t,x=S(n);return lt(_)?x.length*_:x.length*b}),u=O(()=>{const{maxHeight:b}=t,_=S(s);if(lt(b)&&b>0)return _;const x=S(l)+S(h)+S(p);return Math.min(_,x)}),c=b=>b.width,f=O(()=>Hb(S(r).map(c))),d=O(()=>Hb(S(a).map(c))),h=O(()=>Hb(t.headerHeight)),p=O(()=>{var b;return(((b=t.fixedData)==null?void 0:b.length)||0)*t.rowHeight}),v=O(()=>S(s)-S(h)-S(p)),g=O(()=>{const{style:b={},height:_,width:x}=t;return yu({...b,height:_,width:x})}),y=O(()=>yu({height:t.footerHeight})),m=O(()=>({top:Xn(S(h)),bottom:Xn(t.footerHeight),width:Xn(t.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:f,rightTableWidth:d,headerWidth:o,rowsHeight:l,windowHeight:v,footerHeight:y,emptyStyle:m,rootStyle:g,headerHeight:h}},yVe=t=>{const e=z(),n=z(0),r=z(0);let a;return ht(()=>{a=da(e,([i])=>{const{width:o,height:s}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:c,paddingBottom:f}=getComputedStyle(i.target),d=Number.parseInt(l)||0,h=Number.parseInt(u)||0,p=Number.parseInt(c)||0,v=Number.parseInt(f)||0;n.value=o-d-h,r.value=s-p-v}).stop}),Tn(()=>{a==null||a()}),Ee([n,r],([i,o])=>{var s;(s=t.onResize)==null||s.call(t,{width:i,height:o})}),{sizer:e,width:n,height:r}};function mVe(t){const e=z(),n=z(),r=z(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=fVe(t,Bn(t,"columns"),Bn(t,"fixed")),{scrollTo:d,scrollToLeft:h,scrollToTop:p,scrollToRow:v,onScroll:g,onVerticalScroll:y,scrollPos:m}=dVe(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r,onMaybeEndReached:K}),{expandedRowKeys:b,hoveringRowKey:_,lastRenderedRowIndex:x,isDynamic:w,isResetting:C,rowHeights:T,resetAfterIndex:k,onRowExpanded:E,onRowHeightChange:M,onRowHovered:D,onRowsRendered:R}=hVe(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r}),{data:A,depthMap:V}=vVe(t,{expandedRowKeys:b,lastRenderedRowIndex:x,resetAfterIndex:k}),{bodyWidth:P,fixedTableHeight:N,mainTableHeight:I,leftTableWidth:L,rightTableWidth:$,headerWidth:U,rowsHeight:j,windowHeight:Y,footerHeight:oe,emptyStyle:te,rootStyle:re,headerHeight:ne}=gVe(t,{columnsTotalWidth:o,data:A,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),J=Sn(!1),he=z(),ue=O(()=>{const ee=S(A).length===0;return He(t.fixedData)?t.fixedData.length===0&&ee:ee});function X(ee){const{estimatedRowHeight:se,rowHeight:ye,rowKey:we}=t;return se?S(T)[S(A)[ee][we]]||se:ye}function K(){const{onEndReached:ee}=t;if(!ee)return;const{scrollTop:se}=S(m),ye=S(j),we=S(Y),be=ye-(se+we)+t.hScrollbarSize;S(x)>=0&&ye===se+S(I)-S(ne)&&ee(be)}return Ee(()=>t.expandedRowKeys,ee=>b.value=ee,{deep:!0}),{columns:a,containerRef:he,mainTableRef:e,leftTableRef:n,rightTableRef:r,isDynamic:w,isResetting:C,isScrolling:J,hoveringRowKey:_,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:A,expandedRowKeys:b,depthMap:V,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:P,emptyStyle:te,rootStyle:re,headerWidth:U,footerHeight:oe,mainTableHeight:I,fixedTableHeight:N,leftTableWidth:L,rightTableWidth:$,showEmpty:ue,getRowHeight:X,onColumnSorted:f,onRowHovered:D,onRowExpanded:E,onRowsRendered:R,onRowHeightChange:M,scrollTo:d,scrollToLeft:h,scrollToTop:p,scrollToRow:v,onScroll:g,onVerticalScroll:y}}const TA=Symbol("tableV2"),NK=String,Yy={type:fe(Array),required:!0},EA={type:fe(Array)},$K={...EA,required:!0},bVe=String,HV={type:fe(Array),default:()=>Nn([])},ff={type:Number,required:!0},IK={type:fe([String,Number,Symbol]),default:"id"},UV={type:fe(Object)},Cf=$e({class:String,columns:Yy,columnsStyles:{type:fe(Object),required:!0},depth:Number,expandColumnKey:bVe,estimatedRowHeight:{...Vf.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:fe(Function)},onRowHover:{type:fe(Function)},onRowHeightChange:{type:fe(Function)},rowData:{type:fe(Object),required:!0},rowEventHandlers:{type:fe(Object)},rowIndex:{type:Number,required:!0},rowKey:IK,style:{type:fe(Object)}}),J2={type:Number,required:!0},MA=$e({class:String,columns:Yy,fixedHeaderData:{type:fe(Array)},headerData:{type:fe(Array),required:!0},headerHeight:{type:fe([Number,Array]),default:50},rowWidth:J2,rowHeight:{type:Number,default:50},height:J2,width:J2}),Ub=$e({columns:Yy,data:$K,fixedData:EA,estimatedRowHeight:Cf.estimatedRowHeight,width:ff,height:ff,headerWidth:ff,headerHeight:MA.headerHeight,bodyWidth:ff,rowHeight:ff,cache:oK.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Vf.scrollbarAlwaysOn,scrollbarStartGap:Vf.scrollbarStartGap,scrollbarEndGap:Vf.scrollbarEndGap,class:NK,style:UV,containerStyle:UV,getRowHeight:{type:fe(Function),required:!0},rowKey:Cf.rowKey,onRowsRendered:{type:fe(Function)},onScroll:{type:fe(Function)}}),SVe=$e({cache:Ub.cache,estimatedRowHeight:Cf.estimatedRowHeight,rowKey:IK,headerClass:{type:fe([String,Function])},headerProps:{type:fe([Object,Function])},headerCellProps:{type:fe([Object,Function])},headerHeight:MA.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:fe([String,Function])},rowProps:{type:fe([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:fe([Object,Function])},columns:Yy,data:$K,dataGetter:{type:fe(Function)},fixedData:EA,expandColumnKey:Cf.expandColumnKey,expandedRowKeys:HV,defaultExpandedRowKeys:HV,class:NK,fixed:Boolean,style:{type:fe(Object)},width:ff,height:ff,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Vf.hScrollbarSize,vScrollbarSize:Vf.vScrollbarSize,scrollbarAlwaysOn:uK.alwaysOn,sortBy:{type:fe(Object),default:()=>({})},sortState:{type:fe(Object),default:void 0},onColumnSort:{type:fe(Function)},onExpandedRowsChange:{type:fe(Function)},onEndReached:{type:fe(Function)},onRowExpand:Cf.onRowExpand,onScroll:Ub.onScroll,onRowsRendered:Ub.onRowsRendered,rowEventHandlers:Cf.rowEventHandlers}),kA=(t,{slots:e})=>{var n;const{cellData:r,style:a}=t,i=((n=r==null?void 0:r.toString)==null?void 0:n.call(r))||"";return H("div",{class:t.class,title:i,style:a},[e.default?e.default(t):i])};kA.displayName="ElTableV2Cell";kA.inheritAttrs=!1;const DA=(t,{slots:e})=>{var n,r;return e.default?e.default(t):H("div",{class:t.class,title:(n=t.column)==null?void 0:n.title},[(r=t.column)==null?void 0:r.title])};DA.displayName="ElTableV2HeaderCell";DA.inheritAttrs=!1;const _Ve=$e({class:String,columns:Yy,columnsStyles:{type:fe(Object),required:!0},headerIndex:Number,style:{type:fe(Object)}}),wVe=ie({name:"ElTableV2HeaderRow",props:_Ve,setup(t,{slots:e}){return()=>{const{columns:n,columnsStyles:r,headerIndex:a,style:i}=t;let o=n.map((s,l)=>e.cell({columns:n,column:s,columnIndex:l,headerIndex:a,style:r[s.key]}));return e.header&&(o=e.header({cells:o.map(s=>He(s)&&s.length===1?s[0]:s),columns:n,headerIndex:a})),H("div",{class:t.class,style:i,role:"row"},[o])}}}),xVe="ElTableV2Header",CVe=ie({name:xVe,props:MA,setup(t,{slots:e,expose:n}){const r=De("table-v2"),a=z(),i=O(()=>yu({width:t.width,height:t.height})),o=O(()=>yu({width:t.rowWidth,height:t.height})),s=O(()=>Jf(S(t.headerHeight))),l=f=>{const d=S(a);Xe(()=>{d!=null&&d.scroll&&d.scroll({left:f})})},u=()=>{const f=r.e("fixed-header-row"),{columns:d,fixedHeaderData:h,rowHeight:p}=t;return h==null?void 0:h.map((v,g)=>{var y;const m=yu({height:p,width:"100%"});return(y=e.fixed)==null?void 0:y.call(e,{class:f,columns:d,rowData:v,rowIndex:-(g+1),style:m})})},c=()=>{const f=r.e("dynamic-header-row"),{columns:d}=t;return S(s).map((h,p)=>{var v;const g=yu({width:"100%",height:h});return(v=e.dynamic)==null?void 0:v.call(e,{class:f,columns:d,headerIndex:p,style:g})})};return n({scrollToLeft:l}),()=>{if(!(t.height<=0))return H("div",{ref:a,class:t.class,style:S(i),role:"rowgroup"},[H("div",{style:S(o),class:r.e("header")},[c(),u()])])}}}),TVe=t=>{const{isScrolling:e}=We(TA),n=z(!1),r=z(),a=O(()=>lt(t.estimatedRowHeight)&&t.rowIndex>=0),i=(l=!1)=>{const u=S(r);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:d,rowIndex:h,style:p}=t,{height:v}=u.getBoundingClientRect();n.value=!0,Xe(()=>{if(l||v!==Number.parseInt(p.height)){const g=c[0],y=(g==null?void 0:g.placeholderSign)===U0;f==null||f({rowKey:d,height:v,rowIndex:h},g&&!y&&g.fixed)}})},o=O(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=t,d=t.rowEventHandlers||{},h={};return Object.entries(d).forEach(([p,v])=>{ut(v)&&(h[p]=g=>{v({event:g,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:v})=>{const g=h[p];h[p]=y=>{f({event:y,hovered:v,rowData:l,rowIndex:u,rowKey:c}),g==null||g(y)}}),h}),s=l=>{const{onRowExpand:u,rowData:c,rowIndex:f,rowKey:d}=t;u==null||u({expanded:l,rowData:c,rowIndex:f,rowKey:d})};return ht(()=>{S(a)&&i(!0)}),{isScrolling:e,measurable:a,measured:n,rowRef:r,eventHandlers:o,onExpand:s}},EVe="ElTableV2TableRow",MVe=ie({name:EVe,props:Cf,setup(t,{expose:e,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=TVe(t);return e({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:d,depth:h,rowData:p,rowIndex:v,style:g}=t;let y=c.map((m,b)=>{const _=He(p.children)&&p.children.length>0&&m.key===d;return n.cell({column:m,columns:c,columnIndex:b,depth:h,style:f[m.key],rowData:p,rowIndex:v,isScrolling:S(i),expandIconProps:_?{rowData:p,rowIndex:v,onExpand:u}:void 0})});if(n.row&&(y=n.row({cells:y.map(m=>He(m)&&m.length===1?m[0]:m),style:g,columns:c,depth:h,rowData:p,rowIndex:v,isScrolling:S(i)})),S(o)){const{height:m,...b}=g||{},_=S(s);return H("div",kt({ref:l,class:t.class,style:_?g:b,role:"row"},r,S(a)),[y])}return H("div",kt(r,{ref:l,class:t.class,style:g,role:"row"},S(a)),[y])}}}),kVe=t=>{const{sortOrder:e}=t;return H(Ye,{size:14,class:t.class},{default:()=>[e===G0.ASC?H(Abe,null,null):H(Ebe,null,null)]})},DVe=t=>{const{expanded:e,expandable:n,onExpand:r,style:a,size:i}=t,o={onClick:n?()=>r(!e):void 0,class:t.class};return H(Ye,kt(o,{size:i,style:a}),{default:()=>[H(ka,null,null)]})},RVe="ElTableV2Grid",LVe=t=>{const e=z(),n=z(),r=O(()=>{const{data:v,rowHeight:g,estimatedRowHeight:y}=t;if(!y)return v.length*g}),a=O(()=>{const{fixedData:v,rowHeight:g}=t;return((v==null?void 0:v.length)||0)*g}),i=O(()=>Hb(t.headerHeight)),o=O(()=>{const{height:v}=t;return Math.max(0,v-S(i)-S(a))}),s=O(()=>S(i)+S(a)>0),l=({data:v,rowIndex:g})=>v[g][t.rowKey];function u({rowCacheStart:v,rowCacheEnd:g,rowVisibleStart:y,rowVisibleEnd:m}){var b;(b=t.onRowsRendered)==null||b.call(t,{rowCacheStart:v,rowCacheEnd:g,rowVisibleStart:y,rowVisibleEnd:m})}function c(v,g){var y;(y=n.value)==null||y.resetAfterRowIndex(v,g)}function f(v,g){const y=S(e),m=S(n);!y||!m||(Lt(v)?(y.scrollToLeft(v.scrollLeft),m.scrollTo(v)):(y.scrollToLeft(v),m.scrollTo({scrollLeft:v,scrollTop:g})))}function d(v){var g;(g=S(n))==null||g.scrollTo({scrollTop:v})}function h(v,g){var y;(y=S(n))==null||y.scrollToItem(v,1,g)}function p(){var v,g;(v=S(n))==null||v.$forceUpdate(),(g=S(e))==null||g.$forceUpdate()}return{bodyRef:n,forceUpdate:p,fixedRowHeight:a,gridHeight:o,hasHeader:s,headerHeight:i,headerRef:e,totalHeight:r,itemKey:l,onItemRendered:u,resetAfterRowIndex:c,scrollTo:f,scrollToTop:d,scrollToRow:h}},RA=ie({name:RVe,props:Ub,setup(t,{slots:e,expose:n}){const{ns:r}=We(TA),{bodyRef:a,fixedRowHeight:i,gridHeight:o,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:d,onItemRendered:h,resetAfterRowIndex:p,scrollTo:v,scrollToTop:g,scrollToRow:y}=LVe(t);n({forceUpdate:f,totalHeight:c,scrollTo:v,scrollToTop:g,scrollToRow:y,resetAfterRowIndex:p});const m=()=>t.bodyWidth;return()=>{const{cache:b,columns:_,data:x,fixedData:w,useIsScrolling:C,scrollbarAlwaysOn:T,scrollbarEndGap:k,scrollbarStartGap:E,style:M,rowHeight:D,bodyWidth:R,estimatedRowHeight:A,headerWidth:V,height:P,width:N,getRowHeight:I,onScroll:L}=t,$=lt(A),U=$?s$e:r$e,j=S(u);return H("div",{role:"table",class:[r.e("table"),t.class],style:M},[H(U,{ref:a,data:x,useIsScrolling:C,itemKey:d,columnCache:0,columnWidth:$?m:R,totalColumn:1,totalRow:x.length,rowCache:b,rowHeight:$?I:D,width:N,height:S(o),class:r.e("body"),role:"rowgroup",scrollbarStartGap:E,scrollbarEndGap:k,scrollbarAlwaysOn:T,onScroll:L,onItemRendered:h,perfMode:!1},{default:Y=>{var oe;const te=x[Y.rowIndex];return(oe=e.row)==null?void 0:oe.call(e,{...Y,columns:_,rowData:te})}}),S(s)&&H(CVe,{ref:l,class:r.e("header-wrapper"),columns:_,headerData:x,headerHeight:t.headerHeight,fixedHeaderData:w,rowWidth:V,rowHeight:D,width:N,height:Math.min(j+S(i),P)},{dynamic:e.header,fixed:e.row})])}}});function AVe(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ln(t)}const OVe=(t,{slots:e})=>{const{mainTableRef:n,...r}=t;return H(RA,kt({ref:n},r),AVe(e)?e:{default:()=>[e]})};function NVe(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ln(t)}const $Ve=(t,{slots:e})=>{if(!t.columns.length)return;const{leftTableRef:n,...r}=t;return H(RA,kt({ref:n},r),NVe(e)?e:{default:()=>[e]})};function IVe(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ln(t)}const BVe=(t,{slots:e})=>{if(!t.columns.length)return;const{rightTableRef:n,...r}=t;return H(RA,kt({ref:n},r),IVe(e)?e:{default:()=>[e]})};function VVe(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ln(t)}const PVe=(t,{slots:e})=>{const{columns:n,columnsStyles:r,depthMap:a,expandColumnKey:i,expandedRowKeys:o,estimatedRowHeight:s,hasFixedColumns:l,hoveringRowKey:u,rowData:c,rowIndex:f,style:d,isScrolling:h,rowProps:p,rowClass:v,rowKey:g,rowEventHandlers:y,ns:m,onRowHovered:b,onRowExpanded:_}=t,x=ed(v,{columns:n,rowData:c,rowIndex:f},""),w=ed(p,{columns:n,rowData:c,rowIndex:f}),C=c[g],T=a[C]||0,k=!!i,E=f<0,M=[m.e("row"),x,{[m.e(`row-depth-${T}`)]:k&&f>=0,[m.is("expanded")]:k&&o.includes(C),[m.is("hovered")]:!h&&C===u,[m.is("fixed")]:!T&&E,[m.is("customized")]:!!e.row}],D=l?b:void 0,R={...w,columns:n,columnsStyles:r,class:M,depth:T,expandColumnKey:i,estimatedRowHeight:E?void 0:s,isScrolling:h,rowIndex:f,rowData:c,rowKey:C,rowEventHandlers:y,style:d};return H(MVe,kt(R,{onRowHover:D,onRowExpand:_}),VVe(e)?e:{default:()=>[e]})},vk=({columns:t,column:e,columnIndex:n,depth:r,expandIconProps:a,isScrolling:i,rowData:o,rowIndex:s,style:l,expandedRowKeys:u,ns:c,cellProps:f,expandColumnKey:d,indentSize:h,iconSize:p,rowKey:v},{slots:g})=>{const y=yu(l);if(e.placeholderSign===U0)return H("div",{class:c.em("row-cell","placeholder"),style:y},null);const{cellRenderer:m,dataKey:b,dataGetter:_}=e,w=OK(m)||g.default||(P=>H(kA,P,null)),C=ut(_)?_({columns:t,column:e,columnIndex:n,rowData:o,rowIndex:s}):On(o,b??""),T=ed(f,{cellData:C,columns:t,column:e,columnIndex:n,rowIndex:s,rowData:o}),k={class:c.e("cell-text"),columns:t,column:e,columnIndex:n,cellData:C,isScrolling:i,rowData:o,rowIndex:s},E=w(k),M=[c.e("row-cell"),e.class,e.align===H0.CENTER&&c.is("align-center"),e.align===H0.RIGHT&&c.is("align-right")],D=s>=0&&d&&e.key===d,R=s>=0&&u.includes(o[v]);let A;const V=`margin-inline-start: ${r*h}px;`;return D&&(Lt(a)?A=H(DVe,kt(a,{class:[c.e("expand-icon"),c.is("expanded",R)],size:p,expanded:R,style:V,expandable:!0}),null):A=H("div",{style:[V,`width: ${p}px; height: ${p}px;`].join(" ")},null)),H("div",kt({class:M,style:y},T,{role:"cell"}),[A,E])};vk.inheritAttrs=!1;function FVe(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ln(t)}const zVe=({columns:t,columnsStyles:e,headerIndex:n,style:r,headerClass:a,headerProps:i,ns:o},{slots:s})=>{const l={columns:t,headerIndex:n},u=[o.e("header-row"),ed(a,l,""),{[o.is("customized")]:!!s.header}],c={...ed(i,l),columnsStyles:e,class:u,columns:t,headerIndex:n,style:r};return H(wVe,c,FVe(s)?s:{default:()=>[s]})},WV=(t,{slots:e})=>{const{column:n,ns:r,style:a,onColumnSorted:i}=t,o=yu(a);if(n.placeholderSign===U0)return H("div",{class:r.em("header-row-cell","placeholder"),style:o},null);const{headerCellRenderer:s,headerClass:l,sortable:u}=n,c={...t,class:r.e("header-cell-text")},d=(OK(s)||e.default||(_=>H(DA,_,null)))(c),{sortBy:h,sortState:p,headerCellProps:v}=t;let g,y;if(p){const _=p[n.key];g=!!hk[_],y=g?_:G0.ASC}else g=n.key===h.key,y=g?h.order:G0.ASC;const m=[r.e("header-cell"),ed(l,t,""),n.align===H0.CENTER&&r.is("align-center"),n.align===H0.RIGHT&&r.is("align-right"),u&&r.is("sortable")],b={...ed(v,t),onClick:n.sortable?i:void 0,class:m,style:o,"data-key":n.key};return H("div",kt(b,{role:"columnheader"}),[d,u&&H(kVe,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:y},null)])},BK=(t,{slots:e})=>{var n;return H("div",{class:t.class,style:t.style},[(n=e.default)==null?void 0:n.call(e)])};BK.displayName="ElTableV2Footer";const VK=(t,{slots:e})=>H("div",{class:t.class,style:t.style},[e.default?e.default():H(Wj,null,null)]);VK.displayName="ElTableV2Empty";const PK=(t,{slots:e})=>{var n;return H("div",{class:t.class,style:t.style},[(n=e.default)==null?void 0:n.call(e)])};PK.displayName="ElTableV2Overlay";function Lp(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Ln(t)}const GVe="ElTableV2",HVe=ie({name:GVe,props:SVe,setup(t,{slots:e,expose:n}){const r=De("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:d,depthMap:h,expandedRowKeys:p,hasFixedColumns:v,hoveringRowKey:g,mainTableRef:y,leftTableRef:m,rightTableRef:b,isDynamic:_,isResetting:x,isScrolling:w,bodyWidth:C,emptyStyle:T,rootStyle:k,headerWidth:E,footerHeight:M,showEmpty:D,scrollTo:R,scrollToLeft:A,scrollToTop:V,scrollToRow:P,getRowHeight:N,onColumnSorted:I,onRowHeightChange:L,onRowHovered:$,onRowExpanded:U,onRowsRendered:j,onScroll:Y,onVerticalScroll:oe}=mVe(t);return n({scrollTo:R,scrollToLeft:A,scrollToTop:V,scrollToRow:P}),Nt(TA,{ns:r,isResetting:x,hoveringRowKey:g,isScrolling:w}),()=>{const{cache:te,cellProps:re,estimatedRowHeight:ne,expandColumnKey:J,fixedData:he,headerHeight:ue,headerClass:X,headerProps:K,headerCellProps:ee,sortBy:se,sortState:ye,rowHeight:we,rowClass:be,rowEventHandlers:Me,rowKey:Se,rowProps:xe,scrollbarAlwaysOn:ke,indentSize:ge,iconSize:Ve,useIsScrolling:Ke,vScrollbarSize:Le,width:Ue}=t,st=S(d),bt={cache:te,class:r.e("main"),columns:S(s),data:st,fixedData:he,estimatedRowHeight:ne,bodyWidth:S(C)+Le,headerHeight:ue,headerWidth:S(E),height:S(l),mainTableRef:y,rowKey:Se,rowHeight:we,scrollbarAlwaysOn:ke,scrollbarStartGap:2,scrollbarEndGap:Le,useIsScrolling:Ke,width:Ue,getRowHeight:N,onRowsRendered:j,onScroll:Y},At=S(c),rt=S(u),_e={cache:te,class:r.e("left"),columns:S(i),data:st,estimatedRowHeight:ne,leftTableRef:m,rowHeight:we,bodyWidth:At,headerWidth:At,headerHeight:ue,height:rt,rowKey:Se,scrollbarAlwaysOn:ke,scrollbarStartGap:2,scrollbarEndGap:Le,useIsScrolling:Ke,width:At,getRowHeight:N,onScroll:oe},ce=S(f)+Le,Re={cache:te,class:r.e("right"),columns:S(o),data:st,estimatedRowHeight:ne,rightTableRef:b,rowHeight:we,bodyWidth:ce,headerWidth:ce,headerHeight:ue,height:rt,rowKey:Se,scrollbarAlwaysOn:ke,scrollbarStartGap:2,scrollbarEndGap:Le,width:ce,style:`--${S(r.namespace)}-table-scrollbar-size: ${Le}px`,useIsScrolling:Ke,getRowHeight:N,onScroll:oe},ae=S(a),Fe={ns:r,depthMap:S(h),columnsStyles:ae,expandColumnKey:J,expandedRowKeys:S(p),estimatedRowHeight:ne,hasFixedColumns:S(v),hoveringRowKey:S(g),rowProps:xe,rowClass:be,rowKey:Se,rowEventHandlers:Me,onRowHovered:$,onRowExpanded:U,onRowHeightChange:L},dt={cellProps:re,expandColumnKey:J,indentSize:ge,iconSize:Ve,rowKey:Se,expandedRowKeys:S(p),ns:r},$t={ns:r,headerClass:X,headerProps:K,columnsStyles:ae},er={ns:r,sortBy:se,sortState:ye,headerCellProps:ee,onColumnSorted:I},pr={row:Ce=>H(PVe,kt(Ce,Fe),{row:e.row,cell:Pe=>{let pe;return e.cell?H(vk,kt(Pe,dt,{style:ae[Pe.column.key]}),Lp(pe=e.cell(Pe))?pe:{default:()=>[pe]}):H(vk,kt(Pe,dt,{style:ae[Pe.column.key]}),null)}}),header:Ce=>H(zVe,kt(Ce,$t),{header:e.header,cell:Pe=>{let pe;return e["header-cell"]?H(WV,kt(Pe,er,{style:ae[Pe.column.key]}),Lp(pe=e["header-cell"](Pe))?pe:{default:()=>[pe]}):H(WV,kt(Pe,er,{style:ae[Pe.column.key]}),null)}})},Fa=[t.class,r.b(),r.e("root"),{[r.is("dynamic")]:S(_)}],zr={class:r.e("footer"),style:S(M)};return H("div",{class:Fa,style:S(k)},[H(OVe,bt,Lp(pr)?pr:{default:()=>[pr]}),H($Ve,_e,Lp(pr)?pr:{default:()=>[pr]}),H(BVe,Re,Lp(pr)?pr:{default:()=>[pr]}),e.footer&&H(BK,zr,{default:e.footer}),S(D)&&H(VK,{class:r.e("empty"),style:S(T)},{default:e.empty}),e.overlay&&H(PK,{class:r.e("overlay")},{default:e.overlay})])}}}),UVe=$e({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:fe(Function)}}),WVe=ie({name:"ElAutoResizer",props:UVe,setup(t,{slots:e}){const n=De("auto-resizer"),{height:r,width:a,sizer:i}=yVe(t),o={width:"100%",height:"100%"};return()=>{var s;return H("div",{ref:i,class:n.b(),style:o},[(s=e.default)==null?void 0:s.call(e,{height:r.value,width:a.value})])}}}),jVe=Tt(HVe),KVe=Tt(WVe),cx=Symbol("tabsRootContextKey"),YVe=$e({tabs:{type:fe(Array),default:()=>Nn([])}}),FK="ElTabBar",XVe=ie({name:FK}),qVe=ie({...XVe,props:YVe,setup(t,{expose:e}){const n=t,r=wt(),a=We(cx);a||dr(FK,"");const i=De("tabs"),o=z(),s=z(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(a.props.tabPosition)?"width":"height",h=d==="width"?"x":"y",p=h==="x"?"left":"top";return n.tabs.every(v=>{var g,y;const m=(y=(g=r.parent)==null?void 0:g.refs)==null?void 0:y[`tab-${v.uid}`];if(!m)return!1;if(!v.active)return!0;c=m[`offset${ls(p)}`],f=m[`client${ls(d)}`];const b=window.getComputedStyle(m);return d==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(b.paddingLeft)+Number.parseFloat(b.paddingRight)),c+=Number.parseFloat(b.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${ls(h)}(${c}px)`}},u=()=>s.value=l();return Ee(()=>n.tabs,async()=>{await Xe(),u()},{immediate:!0}),da(o,()=>u()),e({ref:o,update:u}),(c,f)=>(B(),q("div",{ref_key:"barRef",ref:o,class:F([S(i).e("active-bar"),S(i).is(S(a).props.tabPosition)]),style:qe(s.value)},null,6))}});var ZVe=Ne(qVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const QVe=$e({panes:{type:fe(Array),default:()=>Nn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),JVe={tabClick:(t,e,n)=>n instanceof Event,tabRemove:(t,e)=>e instanceof Event},jV="ElTabNav",ePe=ie({name:jV,props:QVe,emits:JVe,setup(t,{expose:e,emit:n}){const r=wt(),a=We(cx);a||dr(jV,"");const i=De("tabs"),o=Cfe(),s=Nfe(),l=z(),u=z(),c=z(),f=z(),d=z(!1),h=z(0),p=z(!1),v=z(!0),g=O(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),y=O(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),m=()=>{if(!l.value)return;const k=l.value[`offset${ls(g.value)}`],E=h.value;if(!E)return;const M=E>k?E-k:0;h.value=M},b=()=>{if(!l.value||!u.value)return;const k=u.value[`offset${ls(g.value)}`],E=l.value[`offset${ls(g.value)}`],M=h.value;if(k-M<=E)return;const D=k-M>E*2?M+E:k-E;h.value=D},_=async()=>{const k=u.value;if(!d.value||!c.value||!l.value||!k)return;await Xe();const E=c.value.querySelector(".is-active");if(!E)return;const M=l.value,D=["top","bottom"].includes(a.props.tabPosition),R=E.getBoundingClientRect(),A=M.getBoundingClientRect(),V=D?k.offsetWidth-A.width:k.offsetHeight-A.height,P=h.value;let N=P;D?(R.leftA.right&&(N=P+R.right-A.right)):(R.topA.bottom&&(N=P+(R.bottom-A.bottom))),N=Math.max(N,0),h.value=Math.min(N,V)},x=()=>{var k;if(!u.value||!l.value)return;t.stretch&&((k=f.value)==null||k.update());const E=u.value[`offset${ls(g.value)}`],M=l.value[`offset${ls(g.value)}`],D=h.value;M0&&(h.value=0))},w=k=>{const E=k.code,{up:M,down:D,left:R,right:A}=et;if(![M,D,R,A].includes(E))return;const V=Array.from(k.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),P=V.indexOf(k.target);let N;E===R||E===M?P===0?N=V.length-1:N=P-1:P{v.value&&(p.value=!0)},T=()=>p.value=!1;return Ee(o,k=>{k==="hidden"?v.value=!1:k==="visible"&&setTimeout(()=>v.value=!0,50)}),Ee(s,k=>{k?setTimeout(()=>v.value=!0,50):v.value=!1}),da(c,x),ht(()=>setTimeout(()=>_(),0)),As(()=>x()),e({scrollToActiveTab:_,removeFocus:T}),Ee(()=>t.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const k=d.value?[H("span",{class:[i.e("nav-prev"),i.is("disabled",!d.value.prev)],onClick:m},[H(Ye,null,{default:()=>[H(zu,null,null)]})]),H("span",{class:[i.e("nav-next"),i.is("disabled",!d.value.next)],onClick:b},[H(Ye,null,{default:()=>[H(ka,null,null)]})])]:null,E=t.panes.map((M,D)=>{var R,A,V,P;const N=M.uid,I=M.props.disabled,L=(A=(R=M.props.name)!=null?R:M.index)!=null?A:`${D}`,$=!I&&(M.isClosable||t.editable);M.index=`${D}`;const U=$?H(Ye,{class:"is-icon-close",onClick:oe=>n("tabRemove",M,oe)},{default:()=>[H(No,null,null)]}):null,j=((P=(V=M.slots).label)==null?void 0:P.call(V))||M.props.label,Y=!I&&M.active?0:-1;return H("div",{ref:`tab-${N}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",M.active),i.is("disabled",I),i.is("closable",$),i.is("focus",p.value)],id:`tab-${L}`,key:`tab-${N}`,"aria-controls":`pane-${L}`,role:"tab","aria-selected":M.active,tabindex:Y,onFocus:()=>C(),onBlur:()=>T(),onClick:oe=>{T(),n("tabClick",M,L,oe)},onKeydown:oe=>{$&&(oe.code===et.delete||oe.code===et.backspace)&&n("tabRemove",M,oe)}},[j,U])});return H("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!d.value),i.is(a.props.tabPosition)]},[k,H("div",{class:i.e("nav-scroll"),ref:l},[H("div",{class:[i.e("nav"),i.is(a.props.tabPosition),i.is("stretch",t.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:y.value,role:"tablist",onKeydown:w},[t.type?null:H(ZVe,{ref:f,tabs:[...t.panes]},null),E])])])}}}),tPe=$e({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:fe(Function),default:()=>!0},stretch:Boolean}),eC=t=>ft(t)||lt(t),nPe={[Mt]:t=>eC(t),tabClick:(t,e)=>e instanceof Event,tabChange:t=>eC(t),edit:(t,e)=>["remove","add"].includes(e),tabRemove:t=>eC(t),tabAdd:()=>!0};var rPe=ie({name:"ElTabs",props:tPe,emits:nPe,setup(t,{emit:e,slots:n,expose:r}){var a,i;const o=De("tabs"),{children:s,addChild:l,removeChild:u}=QL(wt(),"ElTabPane"),c=z(),f=z((i=(a=t.modelValue)!=null?a:t.activeName)!=null?i:"0"),d=y=>{f.value=y,e(Mt,y),e("tabChange",y)},h=async y=>{var m,b,_;if(!(f.value===y||br(y)))try{await((m=t.beforeLeave)==null?void 0:m.call(t,y,f.value))!==!1&&(d(y),(_=(b=c.value)==null?void 0:b.removeFocus)==null||_.call(b))}catch{}},p=(y,m,b)=>{y.props.disabled||(h(m),e("tabClick",y,b))},v=(y,m)=>{y.props.disabled||br(y.props.name)||(m.stopPropagation(),e("edit",y.props.name,"remove"),e("tabRemove",y.props.name))},g=()=>{e("edit",void 0,"add"),e("tabAdd")};return Ts({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},O(()=>!!t.activeName)),Ee(()=>t.activeName,y=>h(y)),Ee(()=>t.modelValue,y=>h(y)),Ee(f,async()=>{var y;await Xe(),(y=c.value)==null||y.scrollToActiveTab()}),Nt(cx,{props:t,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const y=t.editable||t.addable?H("span",{class:o.e("new-tab"),tabindex:"0",onClick:g,onKeydown:_=>{_.code===et.enter&&g()}},[H(Ye,{class:o.is("icon-plus")},{default:()=>[H(v9,null,null)]})]):null,m=H("div",{class:[o.e("header"),o.is(t.tabPosition)]},[y,H(ePe,{ref:c,currentName:f.value,editable:t.editable,type:t.type,panes:s.value,stretch:t.stretch,onTabClick:p,onTabRemove:v},null)]),b=H("div",{class:o.e("content")},[Te(n,"default")]);return H("div",{class:[o.b(),o.m(t.tabPosition),{[o.m("card")]:t.type==="card",[o.m("border-card")]:t.type==="border-card"}]},[...t.tabPosition!=="bottom"?[m,b]:[b,m]])}}});const aPe=$e({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),iPe=["id","aria-hidden","aria-labelledby"],zK="ElTabPane",oPe=ie({name:zK}),sPe=ie({...oPe,props:aPe,setup(t){const e=t,n=wt(),r=ea(),a=We(cx);a||dr(zK,"usage: ");const i=De("tab-pane"),o=z(),s=O(()=>e.closable||a.props.closable),l=TI(()=>{var h;return a.currentName.value===((h=e.name)!=null?h:o.value)}),u=z(l.value),c=O(()=>{var h;return(h=e.name)!=null?h:o.value}),f=TI(()=>!e.lazy||u.value||l.value);Ee(l,h=>{h&&(u.value=!0)});const d=Qt({uid:n.uid,slots:r,props:e,paneName:c,active:l,index:o,isClosable:s});return ht(()=>{a.registerPane(d)}),rc(()=>{a.unregisterPane(d.uid)}),(h,p)=>S(f)?yt((B(),q("div",{key:0,id:`pane-${S(c)}`,class:F(S(i).b()),role:"tabpanel","aria-hidden":!S(l),"aria-labelledby":`tab-${S(c)}`},[Te(h.$slots,"default")],10,iPe)),[[qt,S(l)]]):le("v-if",!0)}});var GK=Ne(sPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const lPe=Tt(rPe,{TabPane:GK}),uPe=Hn(GK),cPe=$e({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:Ns,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),fPe=ie({name:"ElText"}),dPe=ie({...fPe,props:cPe,setup(t){const e=t,n=hr(),r=De("text"),a=O(()=>[r.b(),r.m(e.type),r.m(n.value),r.is("truncated",e.truncated)]);return(i,o)=>(B(),de(Et(i.tag),{class:F(S(a))},{default:Z(()=>[Te(i.$slots,"default")]),_:3},8,["class"]))}});var hPe=Ne(dPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const vPe=Tt(hPe),pPe=$e({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:qr,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:fe([String,Object]),default:()=>h9},clearIcon:{type:fe([String,Object]),default:()=>ic}}),nl=t=>{const e=(t||"").split(":");if(e.length>=2){let n=Number.parseInt(e[0],10);const r=Number.parseInt(e[1],10),a=t.toUpperCase();return a.includes("AM")&&n===12?n=0:a.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:r}}return null},tC=(t,e)=>{const n=nl(t);if(!n)return-1;const r=nl(e);if(!r)return-1;const a=n.minutes+n.hours*60,i=r.minutes+r.hours*60;return a===i?0:a>i?1:-1},KV=t=>`${t}`.padStart(2,"0"),lh=t=>`${KV(t.hours)}:${KV(t.minutes)}`,gPe=(t,e)=>{const n=nl(t);if(!n)return"";const r=nl(e);if(!r)return"";const a={hours:n.hours,minutes:n.minutes};return a.minutes+=r.minutes,a.hours+=r.hours,a.hours+=Math.floor(a.minutes/60),a.minutes=a.minutes%60,lh(a)},yPe=ie({name:"ElTimeSelect"}),mPe=ie({...yPe,props:pPe,emits:["change","blur","focus","update:modelValue"],setup(t,{expose:e}){const n=t;xt.extend(aA);const{Option:r}=ju,a=De("input"),i=z(),o=ni(),s=O(()=>n.modelValue),l=O(()=>{const g=nl(n.start);return g?lh(g):null}),u=O(()=>{const g=nl(n.end);return g?lh(g):null}),c=O(()=>{const g=nl(n.step);return g?lh(g):null}),f=O(()=>{const g=nl(n.minTime||"");return g?lh(g):null}),d=O(()=>{const g=nl(n.maxTime||"");return g?lh(g):null}),h=O(()=>{const g=[];if(n.start&&n.end&&n.step){let y=l.value,m;for(;y&&u.value&&tC(y,u.value)<=0;)m=xt(y,"HH:mm").format(n.format),g.push({value:m,disabled:tC(y,f.value||"-1:-1")<=0||tC(y,d.value||"100:100")>=0}),y=gPe(y,c.value)}return g});return e({blur:()=>{var g,y;(y=(g=i.value)==null?void 0:g.blur)==null||y.call(g)},focus:()=>{var g,y;(y=(g=i.value)==null?void 0:g.focus)==null||y.call(g)}}),(g,y)=>(B(),de(S(ju),{ref_key:"select",ref:i,"model-value":S(s),disabled:S(o),clearable:g.clearable,"clear-icon":g.clearIcon,size:g.size,effect:g.effect,placeholder:g.placeholder,"default-first-option":"",filterable:g.editable,"onUpdate:modelValue":y[0]||(y[0]=m=>g.$emit("update:modelValue",m)),onChange:y[1]||(y[1]=m=>g.$emit("change",m)),onBlur:y[2]||(y[2]=m=>g.$emit("blur",m)),onFocus:y[3]||(y[3]=m=>g.$emit("focus",m))},{prefix:Z(()=>[g.prefixIcon?(B(),de(S(Ye),{key:0,class:F(S(a).e("prefix-icon"))},{default:Z(()=>[(B(),de(Et(g.prefixIcon)))]),_:1},8,["class"])):le("v-if",!0)]),default:Z(()=>[(B(!0),q(Ze,null,Pt(S(h),m=>(B(),de(S(r),{key:m.value,label:m.value,value:m.value,disabled:m.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var Wb=Ne(mPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);Wb.install=t=>{t.component(Wb.name,Wb)};const bPe=Wb,SPe=bPe,_Pe=ie({name:"ElTimeline",setup(t,{slots:e}){const n=De("timeline");return Nt("timeline",e),()=>tt("ul",{class:[n.b()]},[Te(e,"default")])}}),wPe=$e({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:_n},hollow:{type:Boolean,default:!1}}),xPe=ie({name:"ElTimelineItem"}),CPe=ie({...xPe,props:wPe,setup(t){const e=t,n=De("timeline-item"),r=O(()=>[n.e("node"),n.em("node",e.size||""),n.em("node",e.type||""),n.is("hollow",e.hollow)]);return(a,i)=>(B(),q("li",{class:F([S(n).b(),{[S(n).e("center")]:a.center}])},[G("div",{class:F(S(n).e("tail"))},null,2),a.$slots.dot?le("v-if",!0):(B(),q("div",{key:0,class:F(S(r)),style:qe({backgroundColor:a.color})},[a.icon?(B(),de(S(Ye),{key:0,class:F(S(n).e("icon"))},{default:Z(()=>[(B(),de(Et(a.icon)))]),_:1},8,["class"])):le("v-if",!0)],6)),a.$slots.dot?(B(),q("div",{key:1,class:F(S(n).e("dot"))},[Te(a.$slots,"dot")],2)):le("v-if",!0),G("div",{class:F(S(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(B(),q("div",{key:0,class:F([S(n).e("timestamp"),S(n).is("top")])},Ae(a.timestamp),3)):le("v-if",!0),G("div",{class:F(S(n).e("content"))},[Te(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(B(),q("div",{key:1,class:F([S(n).e("timestamp"),S(n).is("bottom")])},Ae(a.timestamp),3)):le("v-if",!0)],2)],2))}});var HK=Ne(CPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const TPe=Tt(_Pe,{TimelineItem:HK}),EPe=Hn(HK),UK=$e({nowrap:Boolean});var WK=(t=>(t.top="top",t.bottom="bottom",t.left="left",t.right="right",t))(WK||{});const MPe=Object.values(WK),LA=$e({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:fe(Object),default:null}}),kPe=$e({side:{type:fe(String),values:MPe,required:!0}}),DPe=["absolute","fixed"],RPe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],AA=$e({ariaLabel:String,arrowPadding:{type:fe(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:fe(String),values:RPe,default:"bottom"},reference:{type:fe(Object),default:null},offset:{type:Number,default:8},strategy:{type:fe(String),values:DPe,default:"absolute"},showArrow:{type:Boolean,default:!1}}),OA=$e({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:fe(Function)},"onUpdate:open":{type:fe(Function)}}),Ld={type:fe(Function)},NA=$e({onBlur:Ld,onClick:Ld,onFocus:Ld,onMouseDown:Ld,onMouseEnter:Ld,onMouseLeave:Ld}),LPe=$e({...OA,...LA,...NA,...AA,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:fe(Object),default:null},teleported:Boolean,to:{type:fe(String),default:"body"}}),fx=Symbol("tooltipV2"),jK=Symbol("tooltipV2Content"),nC="tooltip_v2.open",APe=ie({name:"ElTooltipV2Root"}),OPe=ie({...APe,props:OA,setup(t,{expose:e}){const n=t,r=z(n.defaultOpen),a=z(null),i=O({get:()=>W0e(n.open)?r.value:n.open,set:g=>{var y;r.value=g,(y=n["onUpdate:open"])==null||y.call(n,g)}}),o=O(()=>lt(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=Zf(()=>{i.value=!0},O(()=>n.delayDuration),{immediate:!1}),u=De("tooltip-v2"),c=Ki(),f=()=>{l(),i.value=!0},d=()=>{S(o)?s():f()},h=f,p=()=>{l(),i.value=!1};return Ee(i,g=>{var y;g&&(document.dispatchEvent(new CustomEvent(nC)),h()),(y=n.onOpenChange)==null||y.call(n,g)}),ht(()=>{document.addEventListener(nC,p)}),Tn(()=>{l(),document.removeEventListener(nC,p)}),Nt(fx,{contentId:c,triggerRef:a,ns:u,onClose:p,onDelayOpen:d,onOpen:h}),e({onOpen:h,onClose:p}),(g,y)=>Te(g.$slots,"default",{open:S(i)})}});var NPe=Ne(OPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const $Pe=ie({name:"ElTooltipV2Arrow"}),IPe=ie({...$Pe,props:{...LA,...kPe},setup(t){const e=t,{ns:n}=We(fx),{arrowRef:r}=We(jK),a=O(()=>{const{style:i,width:o,height:s}=e,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${o}px`,[`--${l}-tooltip-v2-arrow-height`]:`${s}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${o/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:o/2-1,...i||{}}});return(i,o)=>(B(),q("span",{ref_key:"arrowRef",ref:r,style:qe(S(a)),class:F(S(n).e("arrow"))},null,6))}});var YV=Ne(IPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const BPe=$e({style:{type:fe([String,Object,Array]),default:()=>({})}}),VPe=ie({name:"ElVisuallyHidden"}),PPe=ie({...VPe,props:BPe,setup(t){const e=t,n=O(()=>[e.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(r,a)=>(B(),q("span",kt(r.$attrs,{style:S(n)}),[Te(r.$slots,"default")],16))}});var FPe=Ne(PPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const zPe=["data-side"],GPe=ie({name:"ElTooltipV2Content"}),HPe=ie({...GPe,props:{...AA,...UK},setup(t){const e=t,{triggerRef:n,contentId:r}=We(fx),a=z(e.placement),i=z(e.strategy),o=z(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:f,update:d}=mwe({placement:a,strategy:i,middleware:O(()=>{const b=[J_e(e.offset)];return e.showArrow&&b.push(bwe({arrowRef:o})),b})}),h=Xv().nextZIndex(),p=De("tooltip-v2"),v=O(()=>a.value.split("-")[0]),g=O(()=>({position:S(i),top:`${S(f)||0}px`,left:`${S(c)||0}px`,zIndex:h})),y=O(()=>{if(!e.showArrow)return{};const{arrow:b}=S(u);return{[`--${p.namespace.value}-tooltip-v2-arrow-x`]:`${b==null?void 0:b.x}px`||"",[`--${p.namespace.value}-tooltip-v2-arrow-y`]:`${b==null?void 0:b.y}px`||""}}),m=O(()=>[p.e("content"),p.is("dark",e.effect==="dark"),p.is(S(i)),e.contentClass]);return Ee(o,()=>d()),Ee(()=>e.placement,b=>a.value=b),ht(()=>{Ee(()=>e.reference||n.value,b=>{s.value=b||void 0},{immediate:!0})}),Nt(jK,{arrowRef:o}),(b,_)=>(B(),q("div",{ref_key:"contentRef",ref:l,style:qe(S(g)),"data-tooltip-v2-root":""},[b.nowrap?le("v-if",!0):(B(),q("div",{key:0,"data-side":S(v),class:F(S(m))},[Te(b.$slots,"default",{contentStyle:S(g),contentClass:S(m)}),H(S(FPe),{id:S(r),role:"tooltip"},{default:Z(()=>[b.ariaLabel?(B(),q(Ze,{key:0},[Qe(Ae(b.ariaLabel),1)],64)):Te(b.$slots,"default",{key:1})]),_:3},8,["id"]),Te(b.$slots,"arrow",{style:qe(S(y)),side:S(v)})],10,zPe))],4))}});var XV=Ne(HPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const UPe=$e({setRef:{type:fe(Function),required:!0},onlyChild:Boolean});var WPe=ie({props:UPe,setup(t,{slots:e}){const n=z(),r=Yw(n,a=>{a?t.setRef(a.nextElementSibling):t.setRef(null)});return()=>{var a;const[i]=((a=e.default)==null?void 0:a.call(e))||[],o=t.onlyChild?TSe(i.children):i.children;return H(Ze,{ref:r},[o])}}});const jPe=ie({name:"ElTooltipV2Trigger"}),KPe=ie({...jPe,props:{...UK,...NA},setup(t){const e=t,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:o}=We(fx);let s=!1;const l=m=>{i.value=m},u=()=>{s=!1},c=Gn(e.onMouseEnter,a),f=Gn(e.onMouseLeave,n),d=Gn(e.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=Gn(e.onFocus,()=>{s||r()}),p=Gn(e.onBlur,n),v=Gn(e.onClick,m=>{m.detail===0&&n()}),g={blur:p,click:v,focus:h,mousedown:d,mouseenter:c,mouseleave:f},y=(m,b,_)=>{m&&Object.entries(b).forEach(([x,w])=>{m[_](x,w)})};return Ee(i,(m,b)=>{y(m,g,"addEventListener"),y(b,g,"removeEventListener"),m&&m.setAttribute("aria-describedby",o.value)}),Tn(()=>{y(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(m,b)=>m.nowrap?(B(),de(S(WPe),{key:0,"set-ref":l,"only-child":""},{default:Z(()=>[Te(m.$slots,"default")]),_:3})):(B(),q("button",kt({key:1,ref_key:"triggerRef",ref:i},m.$attrs),[Te(m.$slots,"default")],16))}});var YPe=Ne(KPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const XPe=ie({name:"ElTooltipV2"}),qPe=ie({...XPe,props:LPe,setup(t){const n=kr(t),r=Qt(al(n,Object.keys(LA))),a=Qt(al(n,Object.keys(AA))),i=Qt(al(n,Object.keys(OA))),o=Qt(al(n,Object.keys(NA)));return(s,l)=>(B(),de(NPe,So(Dw(i)),{default:Z(({open:u})=>[H(YPe,kt(o,{nowrap:""}),{default:Z(()=>[Te(s.$slots,"trigger")]),_:3},16),(B(),de(Oy,{to:s.to,disabled:!s.teleported},[s.fullTransition?(B(),de(Qn,So(kt({key:0},s.transitionProps)),{default:Z(()=>[s.alwaysOn||u?(B(),de(XV,So(kt({key:0},a)),{arrow:Z(({style:c,side:f})=>[s.showArrow?(B(),de(YV,kt({key:0},r,{style:c,side:f}),null,16,["style","side"])):le("v-if",!0)]),default:Z(()=>[Te(s.$slots,"default")]),_:3},16)):le("v-if",!0)]),_:2},1040)):(B(),q(Ze,{key:1},[s.alwaysOn||u?(B(),de(XV,So(kt({key:0},a)),{arrow:Z(({style:c,side:f})=>[s.showArrow?(B(),de(YV,kt({key:0},r,{style:c,side:f}),null,16,["style","side"])):le("v-if",!0)]),default:Z(()=>[Te(s.$slots,"default")]),_:3},16)):le("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var ZPe=Ne(qPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const QPe=Tt(ZPe),KK="left-check-change",YK="right-check-change",uh=$e({data:{type:fe(Array),default:()=>[]},titles:{type:fe(Array),default:()=>[]},buttonTexts:{type:fe(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:fe(Function)},leftDefaultChecked:{type:fe(Array),default:()=>[]},rightDefaultChecked:{type:fe(Array),default:()=>[]},renderContent:{type:fe(Function)},modelValue:{type:fe(Array),default:()=>[]},format:{type:fe(Object),default:()=>({})},filterable:Boolean,props:{type:fe(Object),default:()=>Nn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),pk=(t,e)=>[t,e].every(He)||He(t)&&ur(e),JPe={[kn]:(t,e,n)=>[t,n].every(He)&&["left","right"].includes(e),[Mt]:t=>He(t),[KK]:pk,[YK]:pk},gk="checked-change",e4e=$e({data:uh.data,optionRender:{type:fe(Function)},placeholder:String,title:String,filterable:Boolean,format:uh.format,filterMethod:uh.filterMethod,defaultChecked:uh.leftDefaultChecked,props:uh.props}),t4e={[gk]:pk},Xy=t=>{const e={label:"label",key:"key",disabled:"disabled"};return O(()=>({...e,...t.props}))},n4e=(t,e,n)=>{const r=Xy(t),a=O(()=>t.data.filter(c=>ut(t.filterMethod)?t.filterMethod(e.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(e.query.toLowerCase()))),i=O(()=>a.value.filter(c=>!c[r.value.disabled])),o=O(()=>{const c=e.checked.length,f=t.data.length,{noChecked:d,hasChecked:h}=t.format;return d&&h?c>0?h.replace(/\${checked}/g,c.toString()).replace(/\${total}/g,f.toString()):d.replace(/\${total}/g,f.toString()):`${c}/${f}`}),s=O(()=>{const c=e.checked.length;return c>0&&c{const c=i.value.map(f=>f[r.value.key]);e.allChecked=c.length>0&&c.every(f=>e.checked.includes(f))},u=c=>{e.checked=c?i.value.map(f=>f[r.value.key]):[]};return Ee(()=>e.checked,(c,f)=>{if(l(),e.checkChangeByUser){const d=c.concat(f).filter(h=>!c.includes(h)||!f.includes(h));n(gk,c,d)}else n(gk,c),e.checkChangeByUser=!0}),Ee(i,()=>{l()}),Ee(()=>t.data,()=>{const c=[],f=a.value.map(d=>d[r.value.key]);e.checked.forEach(d=>{f.includes(d)&&c.push(d)}),e.checkChangeByUser=!1,e.checked=c}),Ee(()=>t.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(p=>f.includes(p)))return;const d=[],h=i.value.map(p=>p[r.value.key]);c.forEach(p=>{h.includes(p)&&d.push(p)}),e.checkChangeByUser=!1,e.checked=d},{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:o,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},r4e=(t,e)=>({onSourceCheckedChange:(a,i)=>{t.leftChecked=a,i&&e(KK,a,i)},onTargetCheckedChange:(a,i)=>{t.rightChecked=a,i&&e(YK,a,i)}}),a4e=t=>{const e=Xy(t),n=O(()=>t.data.reduce((i,o)=>(i[o[e.value.key]]=o)&&i,{})),r=O(()=>t.data.filter(i=>!t.modelValue.includes(i[e.value.key]))),a=O(()=>t.targetOrder==="original"?t.data.filter(i=>t.modelValue.includes(i[e.value.key])):t.modelValue.reduce((i,o)=>{const s=n.value[o];return s&&i.push(s),i},[]));return{sourceData:r,targetData:a}},i4e=(t,e,n)=>{const r=Xy(t),a=(s,l,u)=>{n(Mt,s),n(kn,s,l,u)};return{addToLeft:()=>{const s=t.modelValue.slice();e.rightChecked.forEach(l=>{const u=s.indexOf(l);u>-1&&s.splice(u,1)}),a(s,"left",e.rightChecked)},addToRight:()=>{let s=t.modelValue.slice();const l=t.data.filter(u=>{const c=u[r.value.key];return e.leftChecked.includes(c)&&!t.modelValue.includes(c)}).map(u=>u[r.value.key]);s=t.targetOrder==="unshift"?l.concat(s):s.concat(l),t.targetOrder==="original"&&(s=t.data.filter(u=>s.includes(u[r.value.key])).map(u=>u[r.value.key])),a(s,"right",e.leftChecked)}}},o4e=ie({name:"ElTransferPanel"}),s4e=ie({...o4e,props:e4e,emits:t4e,setup(t,{expose:e,emit:n}){const r=t,a=ea(),i=({option:b})=>b,{t:o}=Kt(),s=De("transfer"),l=Qt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=Xy(r),{filteredData:c,checkedSummary:f,isIndeterminate:d,handleAllCheckedChange:h}=n4e(r,l,n),p=O(()=>!Ni(l.query)&&Ni(c.value)),v=O(()=>!Ni(a.default()[0].children)),{checked:g,allChecked:y,query:m}=kr(l);return e({query:m}),(b,_)=>(B(),q("div",{class:F(S(s).b("panel"))},[G("p",{class:F(S(s).be("panel","header"))},[H(S(Xi),{modelValue:S(y),"onUpdate:modelValue":_[0]||(_[0]=x=>pt(y)?y.value=x:null),indeterminate:S(d),"validate-event":!1,onChange:S(h)},{default:Z(()=>[Qe(Ae(b.title)+" ",1),G("span",null,Ae(S(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),G("div",{class:F([S(s).be("panel","body"),S(s).is("with-footer",S(v))])},[b.filterable?(B(),de(S(ca),{key:0,modelValue:S(m),"onUpdate:modelValue":_[1]||(_[1]=x=>pt(m)?m.value=x:null),class:F(S(s).be("panel","filter")),size:"default",placeholder:b.placeholder,"prefix-icon":S(Sbe),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):le("v-if",!0),yt(H(S(tj),{modelValue:S(g),"onUpdate:modelValue":_[2]||(_[2]=x=>pt(g)?g.value=x:null),"validate-event":!1,class:F([S(s).is("filterable",b.filterable),S(s).be("panel","list")])},{default:Z(()=>[(B(!0),q(Ze,null,Pt(S(c),x=>(B(),de(S(Xi),{key:x[S(u).key],class:F(S(s).be("panel","item")),label:x[S(u).key],disabled:x[S(u).disabled],"validate-event":!1},{default:Z(()=>{var w;return[H(i,{option:(w=b.optionRender)==null?void 0:w.call(b,x)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[qt,!S(p)&&!S(Ni)(b.data)]]),yt(G("p",{class:F(S(s).be("panel","empty"))},Ae(S(p)?S(o)("el.transfer.noMatch"):S(o)("el.transfer.noData")),3),[[qt,S(p)||S(Ni)(b.data)]])],2),S(v)?(B(),q("p",{key:0,class:F(S(s).be("panel","footer"))},[Te(b.$slots,"default")],2)):le("v-if",!0)],2))}});var qV=Ne(s4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const l4e={key:0},u4e={key:0},c4e=ie({name:"ElTransfer"}),f4e=ie({...c4e,props:uh,emits:JPe,setup(t,{expose:e,emit:n}){const r=t,a=ea(),{t:i}=Kt(),o=De("transfer"),{formItem:s}=Va(),l=Qt({leftChecked:[],rightChecked:[]}),u=Xy(r),{sourceData:c,targetData:f}=a4e(r),{onSourceCheckedChange:d,onTargetCheckedChange:h}=r4e(l,n),{addToLeft:p,addToRight:v}=i4e(r,l,n),g=z(),y=z(),m=T=>{switch(T){case"left":g.value.query="";break;case"right":y.value.query="";break}},b=O(()=>r.buttonTexts.length===2),_=O(()=>r.titles[0]||i("el.transfer.titles.0")),x=O(()=>r.titles[1]||i("el.transfer.titles.1")),w=O(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));Ee(()=>r.modelValue,()=>{var T;r.validateEvent&&((T=s==null?void 0:s.validate)==null||T.call(s,"change").catch(k=>void 0))});const C=O(()=>T=>r.renderContent?r.renderContent(tt,T):a.default?a.default({option:T}):tt("span",T[u.value.label]||T[u.value.key]));return e({clearQuery:m,leftPanel:g,rightPanel:y}),(T,k)=>(B(),q("div",{class:F(S(o).b())},[H(qV,{ref_key:"leftPanel",ref:g,data:S(c),"option-render":S(C),placeholder:S(w),title:S(_),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,"default-checked":T.leftDefaultChecked,props:r.props,onCheckedChange:S(d)},{default:Z(()=>[Te(T.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),G("div",{class:F(S(o).e("buttons"))},[H(S(St),{type:"primary",class:F([S(o).e("button"),S(o).is("with-texts",S(b))]),disabled:S(Ni)(l.rightChecked),onClick:S(p)},{default:Z(()=>[H(S(Ye),null,{default:Z(()=>[H(S(zu))]),_:1}),S(br)(T.buttonTexts[0])?le("v-if",!0):(B(),q("span",l4e,Ae(T.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),H(S(St),{type:"primary",class:F([S(o).e("button"),S(o).is("with-texts",S(b))]),disabled:S(Ni)(l.leftChecked),onClick:S(v)},{default:Z(()=>[S(br)(T.buttonTexts[1])?le("v-if",!0):(B(),q("span",u4e,Ae(T.buttonTexts[1]),1)),H(S(Ye),null,{default:Z(()=>[H(S(ka))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),H(qV,{ref_key:"rightPanel",ref:y,data:S(f),"option-render":S(C),placeholder:S(w),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,title:S(x),"default-checked":T.rightDefaultChecked,props:r.props,onCheckedChange:S(h)},{default:Z(()=>[Te(T.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var d4e=Ne(f4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const h4e=Tt(d4e),Hh="$treeNodeId",ZV=function(t,e){!e||e[Hh]||Object.defineProperty(e,Hh,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},$A=function(t,e){return t?e[t]:e[Hh]},yk=(t,e,n)=>{const r=t.value.currentNode;n();const a=t.value.currentNode;r!==a&&e("current-change",a?a.data:null,a)},mk=t=>{let e=!0,n=!0,r=!0;for(let a=0,i=t.length;a"u"){const i=r[e];return i===void 0?"":i}};let v4e=0,bk=class Kb{constructor(e){this.id=v4e++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in e)Gt(e,n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const e=this.store;if(!e)throw new Error("[Node]store is required!");e.registerNode(this);const n=e.props;if(n&&typeof n.isLeaf<"u"){const i=Ym(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(e.lazy!==!0&&this.data?(this.setData(this.data),e.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&e.lazy&&e.defaultExpandAll&&this.expand(),Array.isArray(this.data)||ZV(this,this.data),!this.data)return;const r=e.defaultExpandedKeys,a=e.key;a&&r&&r.includes(this.key)&&this.expand(null,e.autoExpandParent),a&&e.currentNodeKey!==void 0&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(e){Array.isArray(e)||ZV(this,e),this.data=e,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Ym(this,"children")||[];for(let r=0,a=n.length;r-1)return e.childNodes[n+1]}return null}get previousSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return n>0?e.childNodes[n-1]:null}return null}contains(e,n=!0){return(this.childNodes||[]).some(r=>r===e||n&&r.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,n,r){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof Kb)){if(!r){const a=this.getChildren(!0);a.includes(e.data)||(typeof n>"u"||n<0?a.push(e.data):a.splice(n,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=Qt(new Kb(e)),e instanceof Kb&&e.initialize()}e.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()}insertBefore(e,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(e,r)}insertAfter(e,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(e,r)}removeChild(e){const n=this.getChildren()||[],r=n.indexOf(e.data);r>-1&&n.splice(r,1);const a=this.childNodes.indexOf(e);a>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(e){let n=null;for(let r=0;r{if(n){let a=this.parent;for(;a.level>0;)a.expanded=!0,a=a.parent}this.expanded=!0,e&&e(),this.childNodes.forEach(a=>{a.canFocus=!0})};this.shouldLoadData()?this.loadData(a=>{Array.isArray(a)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||jb(this),r())}):r()}doCreateChildren(e,n={}){e.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(e=>{e.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const e=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!e||e.length===0;return}this.isLeaf=!1}setChecked(e,n,r,a){if(this.indeterminate=e==="half",this.checked=e===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:o,allWithoutDisable:s}=mk(this.childNodes);!this.isLeaf&&!o&&s&&(this.checked=!1,e=!1);const l=()=>{if(n){const u=this.childNodes;for(let d=0,h=u.length;d{l(),jb(this)},{checked:e!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||jb(i)}getChildren(e=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let a="children";return r&&(a=r.children||"children"),n[a]===void 0&&(n[a]=null),e&&!n[a]&&(n[a]=[]),n[a]}updateChildren(){const e=this.getChildren()||[],n=this.childNodes.map(i=>i.data),r={},a=[];e.forEach((i,o)=>{const s=i[Hh];!!s&&n.findIndex(u=>u[Hh]===s)>=0?r[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||n.forEach(i=>{r[i[Hh]]||this.removeChildByData(i)}),a.forEach(({index:i,data:o})=>{this.insertChild({data:o},i)}),this.updateLeafState()}loadData(e,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=a=>{this.childNodes=[],this.doCreateChildren(a,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,a)};this.store.load(this,r)}else e&&e.call(this)}};class p4e{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const n in e)Gt(e,n)&&(this[n]=e[n]);this.nodesMap={}}initialize(){if(this.root=new bk({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(e){const n=this.filterNodeMethod,r=this.lazy,a=function(i){const o=i.root?i.root.childNodes:i.childNodes;if(o.forEach(s=>{s.visible=n.call(s,e,s.data,s),a(s)}),!i.visible&&o.length){let s=!0;s=!o.some(l=>l.visible),i.root?i.root.visible=s===!1:i.visible=s===!1}e&&i.visible&&!i.isLeaf&&!r&&i.expand()};a(this)}setData(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(e){if(e instanceof bk)return e;const n=Lt(e)?$A(this.key,e):e;return this.nodesMap[n]||null}insertBefore(e,n){const r=this.getNode(n);r.parent.insertBefore({data:e},r)}insertAfter(e,n){const r=this.getNode(n);r.parent.insertAfter({data:e},r)}remove(e){const n=this.getNode(e);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(e,n){const r=n?this.getNode(n):this.root;r&&r.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach(r=>{const a=n[r];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){(this.defaultCheckedKeys||[]).includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const n=this.key;!e||!e.data||(n?e.key!==void 0&&(this.nodesMap[e.key]=e):this.nodesMap[e.id]=e)}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,n=!1){const r=[],a=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!e||e&&s.isLeaf)&&r.push(s.data),a(s)})};return a(this),r}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const e=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(i=>{i.indeterminate&&e.push(i.data),n(i)})};return n(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],n=this.nodesMap;for(const r in n)Gt(n,r)&&e.push(n[r]);return e}updateChildren(e,n){const r=this.nodesMap[e];if(!r)return;const a=r.childNodes;for(let i=a.length-1;i>=0;i--){const o=a[i];this.remove(o.data)}for(let i=0,o=n.length;il.level-s.level),i=Object.create(null),o=Object.keys(r);a.forEach(s=>s.setChecked(!1,!1));for(let s=0,l=a.length;s0;)i[d.data[e]]=!0,d=d.parent;if(u.isLeaf||this.checkStrictly){u.setChecked(!0,!1);continue}if(u.setChecked(!0,!0),n){u.setChecked(!1,!1);const h=function(p){p.childNodes.forEach(g=>{g.isLeaf||g.setChecked(!1,!1),h(g)})};h(u)}}}setCheckedNodes(e,n=!1){const r=this.key,a={};e.forEach(i=>{a[(i||{})[r]]=!0}),this._setCheckedKeys(r,n,a)}setCheckedKeys(e,n=!1){this.defaultCheckedKeys=e;const r=this.key,a={};e.forEach(i=>{a[i]=!0}),this._setCheckedKeys(r,n,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(e,n,r){const a=this.getNode(e);a&&a.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,n=!0){const r=e[this.key],a=this.nodesMap[r];this.setCurrentNode(a),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,n=!0){if(e==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(e);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const g4e=ie({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const e=De("tree"),n=We("NodeInstance"),r=We("RootTree");return()=>{const a=t.node,{data:i,store:o}=a;return t.renderContent?t.renderContent(tt,{_self:n,node:a,data:i,store:o}):r.ctx.slots.default?r.ctx.slots.default({node:a,data:i}):tt("span",{class:e.be("node","label")},[a.label])}}});var y4e=Ne(g4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function XK(t){const e=We("TreeNodeMap",null),n={treeNodeExpand:r=>{t.node!==r&&t.node.collapse()},children:[]};return e&&e.children.push(n),Nt("TreeNodeMap",n),{broadcastExpanded:r=>{if(t.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const qK=Symbol("dragEvents");function m4e({props:t,ctx:e,el$:n,dropIndicator$:r,store:a}){const i=De("tree"),o=z({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Nt(qK,{treeNodeDragStart:({event:c,treeNode:f})=>{if(typeof t.allowDrag=="function"&&!t.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}o.value.draggingNode=f,e.emit("node-drag-start",f.node,c)},treeNodeDragOver:({event:c,treeNode:f})=>{const d=f,h=o.value.dropNode;h&&h.node.id!==d.node.id&&qa(h.$el,i.is("drop-inner"));const p=o.value.draggingNode;if(!p||!d)return;let v=!0,g=!0,y=!0,m=!0;typeof t.allowDrop=="function"&&(v=t.allowDrop(p.node,d.node,"prev"),m=g=t.allowDrop(p.node,d.node,"inner"),y=t.allowDrop(p.node,d.node,"next")),c.dataTransfer.dropEffect=g||v||y?"move":"none",(v||g||y)&&(h==null?void 0:h.node.id)!==d.node.id&&(h&&e.emit("node-drag-leave",p.node,h.node,c),e.emit("node-drag-enter",p.node,d.node,c)),(v||g||y)&&(o.value.dropNode=d),d.node.nextSibling===p.node&&(y=!1),d.node.previousSibling===p.node&&(v=!1),d.node.contains(p.node,!1)&&(g=!1),(p.node===d.node||p.node.contains(d.node))&&(v=!1,g=!1,y=!1);const b=d.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),_=n.value.getBoundingClientRect();let x;const w=v?g?.25:y?.45:1:-1,C=y?g?.75:v?.55:0:1;let T=-9999;const k=c.clientY-b.top;kb.height*C?x="after":g?x="inner":x="none";const E=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),M=r.value;x==="before"?T=E.top-_.top:x==="after"&&(T=E.bottom-_.top),M.style.top=`${T}px`,M.style.left=`${E.right-_.left}px`,x==="inner"?fs(d.$el,i.is("drop-inner")):qa(d.$el,i.is("drop-inner")),o.value.showDropIndicator=x==="before"||x==="after",o.value.allowDrop=o.value.showDropIndicator||m,o.value.dropType=x,e.emit("node-drag-over",p.node,d.node,c)},treeNodeDragEnd:c=>{const{draggingNode:f,dropType:d,dropNode:h}=o.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&h){const p={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?h.node.parent.insertBefore(p,h.node):d==="after"?h.node.parent.insertAfter(p,h.node):d==="inner"&&h.node.insertChild(p),d!=="none"&&a.value.registerNode(p),qa(h.$el,i.is("drop-inner")),e.emit("node-drag-end",f.node,h.node,d,c),d!=="none"&&e.emit("node-drop",f.node,h.node,d,c)}f&&!h&&e.emit("node-drag-end",f.node,null,d,c),o.value.showDropIndicator=!1,o.value.draggingNode=null,o.value.dropNode=null,o.value.allowDrop=!0}}),{dragState:o}}const b4e=ie({name:"ElTreeNode",components:{ElCollapseTransition:sx,ElCheckbox:Xi,NodeContent:y4e,ElIcon:Ye,Loading:oc},props:{node:{type:bk,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,e){const n=De("tree"),{broadcastExpanded:r}=XK(t),a=We("RootTree"),i=z(!1),o=z(!1),s=z(null),l=z(null),u=z(null),c=We(qK),f=wt();Nt("NodeInstance",f),t.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.props.children||"children";Ee(()=>{const k=t.node.data[d];return k&&[...k]},()=>{t.node.updateChildren()}),Ee(()=>t.node.indeterminate,k=>{v(t.node.checked,k)}),Ee(()=>t.node.checked,k=>{v(k,t.node.indeterminate)}),Ee(()=>t.node.expanded,k=>{Xe(()=>i.value=k),k&&(o.value=!0)});const h=k=>$A(a.props.nodeKey,k.data),p=k=>{const E=t.props.class;if(!E)return{};let M;if(ut(E)){const{data:D}=k;M=E(D,k)}else M=E;return ft(M)?{[M]:!0}:M},v=(k,E)=>{(s.value!==k||l.value!==E)&&a.ctx.emit("check-change",t.node.data,k,E),s.value=k,l.value=E},g=k=>{yk(a.store,a.ctx.emit,()=>a.store.value.setCurrentNode(t.node)),a.currentNode.value=t.node,a.props.expandOnClickNode&&m(),a.props.checkOnClickNode&&!t.node.disabled&&b(null,{target:{checked:!t.node.checked}}),a.ctx.emit("node-click",t.node.data,t.node,f,k)},y=k=>{a.instance.vnode.props.onNodeContextmenu&&(k.stopPropagation(),k.preventDefault()),a.ctx.emit("node-contextmenu",k,t.node.data,t.node,f)},m=()=>{t.node.isLeaf||(i.value?(a.ctx.emit("node-collapse",t.node.data,t.node,f),t.node.collapse()):(t.node.expand(),e.emit("node-expand",t.node.data,t.node,f)))},b=(k,E)=>{t.node.setChecked(E.target.checked,!a.props.checkStrictly),Xe(()=>{const M=a.store.value;a.ctx.emit("check",t.node.data,{checkedNodes:M.getCheckedNodes(),checkedKeys:M.getCheckedKeys(),halfCheckedNodes:M.getHalfCheckedNodes(),halfCheckedKeys:M.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:l,getNodeKey:h,getNodeClass:p,handleSelectChange:v,handleClick:g,handleContextMenu:y,handleExpandIconClick:m,handleCheckChange:b,handleChildNodeExpand:(k,E,M)=>{r(E),a.ctx.emit("node-expand",k,E,M)},handleDragStart:k=>{a.props.draggable&&c.treeNodeDragStart({event:k,treeNode:t})},handleDragOver:k=>{k.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:k,treeNode:{$el:u.value,node:t.node}})},handleDrop:k=>{k.preventDefault()},handleDragEnd:k=>{a.props.draggable&&c.treeNodeDragEnd(k)},CaretRight:d9}}}),S4e=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],_4e=["aria-expanded"];function w4e(t,e,n,r,a,i){const o=Ge("el-icon"),s=Ge("el-checkbox"),l=Ge("loading"),u=Ge("node-content"),c=Ge("el-tree-node"),f=Ge("el-collapse-transition");return yt((B(),q("div",{ref:"node$",class:F([t.ns.b("node"),t.ns.is("expanded",t.expanded),t.ns.is("current",t.node.isCurrent),t.ns.is("hidden",!t.node.visible),t.ns.is("focusable",!t.node.disabled),t.ns.is("checked",!t.node.disabled&&t.node.checked),t.getNodeClass(t.node)]),role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.props.draggable,"data-key":t.getNodeKey(t.node),onClick:e[1]||(e[1]=it((...d)=>t.handleClick&&t.handleClick(...d),["stop"])),onContextmenu:e[2]||(e[2]=(...d)=>t.handleContextMenu&&t.handleContextMenu(...d)),onDragstart:e[3]||(e[3]=it((...d)=>t.handleDragStart&&t.handleDragStart(...d),["stop"])),onDragover:e[4]||(e[4]=it((...d)=>t.handleDragOver&&t.handleDragOver(...d),["stop"])),onDragend:e[5]||(e[5]=it((...d)=>t.handleDragEnd&&t.handleDragEnd(...d),["stop"])),onDrop:e[6]||(e[6]=it((...d)=>t.handleDrop&&t.handleDrop(...d),["stop"]))},[G("div",{class:F(t.ns.be("node","content")),style:qe({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(B(),de(o,{key:0,class:F([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:it(t.handleExpandIconClick,["stop"])},{default:Z(()=>[(B(),de(Et(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):le("v-if",!0),t.showCheckbox?(B(),de(s,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:e[0]||(e[0]=it(()=>{},["stop"])),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):le("v-if",!0),t.node.loading?(B(),de(o,{key:2,class:F([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:Z(()=>[H(l)]),_:1},8,["class"])):le("v-if",!0),H(u,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),H(f,null,{default:Z(()=>[!t.renderAfterExpand||t.childNodeRendered?yt((B(),q("div",{key:0,class:F(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded},[(B(!0),q(Ze,null,Pt(t.node.childNodes,d=>(B(),de(c,{key:t.getNodeKey(d),"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:d,accordion:t.accordion,props:t.props,onNodeExpand:t.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,_4e)),[[qt,t.expanded]]):le("v-if",!0)]),_:1})],42,S4e)),[[qt,t.node.visible]])}var x4e=Ne(b4e,[["render",w4e],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function C4e({el$:t},e){const n=De("tree"),r=Sn([]),a=Sn([]);ht(()=>{o()}),As(()=>{r.value=Array.from(t.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"))}),Ee(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),Rn(t,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const c=r.value.indexOf(l);let f;if([et.up,et.down].includes(u)){if(s.preventDefault(),u===et.up){f=c===-1?0:c!==0?c-1:r.value.length-1;const h=f;for(;!e.value.getNode(r.value[f].dataset.key).canFocus;){if(f--,f===h){f=-1;break}f<0&&(f=r.value.length-1)}}else{f=c===-1?0:c=r.value.length&&(f=0)}}f!==-1&&r.value[f].focus()}[et.left,et.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[et.enter,et.space].includes(u)&&d&&(s.preventDefault(),d.click())});const o=()=>{var s;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),a.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"));const l=t.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const T4e=ie({name:"ElTree",components:{ElTreeNode:x4e},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:_n}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(t,e){const{t:n}=Kt(),r=De("tree"),a=z(new p4e({key:t.nodeKey,data:t.data,lazy:t.lazy,props:t.props,load:t.load,currentNodeKey:t.currentNodeKey,checkStrictly:t.checkStrictly,checkDescendants:t.checkDescendants,defaultCheckedKeys:t.defaultCheckedKeys,defaultExpandedKeys:t.defaultExpandedKeys,autoExpandParent:t.autoExpandParent,defaultExpandAll:t.defaultExpandAll,filterNodeMethod:t.filterNodeMethod}));a.value.initialize();const i=z(a.value.root),o=z(null),s=z(null),l=z(null),{broadcastExpanded:u}=XK(t),{dragState:c}=m4e({props:t,ctx:e,el$:s,dropIndicator$:l,store:a});C4e({el$:s},a);const f=O(()=>{const{childNodes:N}=i.value;return!N||N.length===0||N.every(({visible:I})=>!I)});Ee(()=>t.currentNodeKey,N=>{a.value.setCurrentNodeKey(N)}),Ee(()=>t.defaultCheckedKeys,N=>{a.value.setDefaultCheckedKey(N)}),Ee(()=>t.defaultExpandedKeys,N=>{a.value.setDefaultExpandedKeys(N)}),Ee(()=>t.data,N=>{a.value.setData(N)},{deep:!0}),Ee(()=>t.checkStrictly,N=>{a.value.checkStrictly=N});const d=N=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(N)},h=N=>$A(t.nodeKey,N.data),p=N=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const I=a.value.getNode(N);if(!I)return[];const L=[I.data];let $=I.parent;for(;$&&$!==i.value;)L.push($.data),$=$.parent;return L.reverse()},v=(N,I)=>a.value.getCheckedNodes(N,I),g=N=>a.value.getCheckedKeys(N),y=()=>{const N=a.value.getCurrentNode();return N?N.data:null},m=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const N=y();return N?N[t.nodeKey]:null},b=(N,I)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(N,I)},_=(N,I)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(N,I)},x=(N,I,L)=>{a.value.setChecked(N,I,L)},w=()=>a.value.getHalfCheckedNodes(),C=()=>a.value.getHalfCheckedKeys(),T=(N,I=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");yk(a,e.emit,()=>a.value.setUserCurrentNode(N,I))},k=(N,I=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");yk(a,e.emit,()=>a.value.setCurrentNodeKey(N,I))},E=N=>a.value.getNode(N),M=N=>{a.value.remove(N)},D=(N,I)=>{a.value.append(N,I)},R=(N,I)=>{a.value.insertBefore(N,I)},A=(N,I)=>{a.value.insertAfter(N,I)},V=(N,I,L)=>{u(I),e.emit("node-expand",N,I,L)},P=(N,I)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(N,I)};return Nt("RootTree",{ctx:e,props:t,store:a,root:i,currentNode:o,instance:wt()}),Nt(ks,void 0),{ns:r,store:a,root:i,currentNode:o,dragState:c,el$:s,dropIndicator$:l,isEmpty:f,filter:d,getNodeKey:h,getNodePath:p,getCheckedNodes:v,getCheckedKeys:g,getCurrentNode:y,getCurrentKey:m,setCheckedNodes:b,setCheckedKeys:_,setChecked:x,getHalfCheckedNodes:w,getHalfCheckedKeys:C,setCurrentNode:T,setCurrentKey:k,t:n,getNode:E,remove:M,append:D,insertBefore:R,insertAfter:A,handleNodeExpand:V,updateKeyChildren:P}}});function E4e(t,e,n,r,a,i){const o=Ge("el-tree-node");return B(),q("div",{ref:"el$",class:F([t.ns.b(),t.ns.is("dragging",!!t.dragState.draggingNode),t.ns.is("drop-not-allow",!t.dragState.allowDrop),t.ns.is("drop-inner",t.dragState.dropType==="inner"),{[t.ns.m("highlight-current")]:t.highlightCurrent}]),role:"tree"},[(B(!0),q(Ze,null,Pt(t.root.childNodes,s=>(B(),de(o,{key:t.getNodeKey(s),node:s,props:t.props,accordion:t.accordion,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent,onNodeExpand:t.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),t.isEmpty?(B(),q("div",{key:0,class:F(t.ns.e("empty-block"))},[Te(t.$slots,"empty",{},()=>{var s;return[G("span",{class:F(t.ns.e("empty-text"))},Ae((s=t.emptyText)!=null?s:t.t("el.tree.emptyText")),3)]})],2)):le("v-if",!0),yt(G("div",{ref:"dropIndicator$",class:F(t.ns.e("drop-indicator"))},null,2),[[qt,t.dragState.showDropIndicator]])],2)}var Yb=Ne(T4e,[["render",E4e],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Yb.install=t=>{t.component(Yb.name,Yb)};const QS=Yb,M4e=QS,k4e=(t,{attrs:e},{tree:n,key:r})=>{const a=De("tree-select"),i={...al(kr(t),Object.keys(ju.props)),...e,valueKey:r,popperClass:O(()=>{const o=[a.e("popper")];return t.popperClass&&o.push(t.popperClass),o.join(" ")}),filterMethod:(o="")=>{t.filterMethod&&t.filterMethod(o),Xe(()=>{var s;(s=n.value)==null||s.filter(o)})},onVisibleChange:o=>{var s;(s=e.onVisibleChange)==null||s.call(e,o),t.filterable&&o&&i.filterMethod()}};return i},D4e=ie({extends:US,setup(t,e){const n=US.setup(t,e);delete n.selectOptionClick;const r=wt().proxy;return Xe(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function Sk(t){return t||t===0}function IA(t){return Array.isArray(t)&&t.length}function Ap(t){return Array.isArray(t)?t:Sk(t)?[t]:[]}function Xb(t,e,n,r,a){for(let i=0;i{Ee(()=>t.modelValue,()=>{t.showCheckbox&&Xe(()=>{const d=i.value;d&&!Xa(d.getCheckedKeys(),Ap(t.modelValue))&&d.setCheckedKeys(Ap(t.modelValue))})},{immediate:!0,deep:!0});const s=O(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...t.props})),l=(d,h)=>{var p;const v=s.value[d];return ut(v)?v(h,(p=i.value)==null?void 0:p.getNode(l("value",h))):h[v]},u=Ap(t.modelValue).map(d=>Xb(t.data||[],h=>l("value",h)===d,h=>l("children",h),(h,p,v,g)=>g&&l("value",g))).filter(d=>Sk(d)),c=O(()=>{if(!t.renderAfterExpand&&!t.lazy)return[];const d=[];return ZK(t.data.concat(t.cacheData),h=>{const p=l("value",h);d.push({value:p,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),d}),f=O(()=>c.value.reduce((d,h)=>({...d,[h.value]:h}),{}));return{...al(kr(t),Object.keys(QS.props)),...e,nodeKey:o,expandOnClickNode:O(()=>!t.checkStrictly&&t.expandOnClickNode),defaultExpandedKeys:O(()=>t.defaultExpandedKeys?t.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:h,data:p,store:v})=>d(D4e,{value:l("value",p),label:l("label",p),disabled:l("disabled",p)},t.renderContent?()=>t.renderContent(d,{node:h,data:p,store:v}):n.default?()=>n.default({node:h,data:p,store:v}):void 0),filterNodeMethod:(d,h,p)=>{var v;return t.filterNodeMethod?t.filterNodeMethod(d,h,p):d?(v=l("label",h))==null?void 0:v.includes(d):!0},onNodeClick:(d,h,p)=>{var v,g,y;if((v=e.onNodeClick)==null||v.call(e,d,h,p),!(t.showCheckbox&&t.checkOnClickNode))if(!t.showCheckbox&&(t.checkStrictly||h.isLeaf)){if(!l("disabled",d)){const m=(g=a.value)==null?void 0:g.options.get(l("value",d));(y=a.value)==null||y.handleOptionSelect(m)}}else t.expandOnClickNode&&p.proxy.handleExpandIconClick()},onCheck:(d,h)=>{if(!t.showCheckbox)return;const p=l("value",d),v=h.checkedKeys,g=t.multiple?Ap(t.modelValue).filter(m=>m in f.value&&!i.value.getNode(m)&&!v.includes(m)):[],y=v.concat(g);if(t.checkStrictly)r(Mt,t.multiple?y:y.includes(p)?p:void 0);else if(t.multiple)r(Mt,i.value.getCheckedKeys(!0));else{const m=Xb([d],x=>!IA(l("children",x))&&!l("disabled",x),x=>l("children",x)),b=m?l("value",m):void 0,_=Sk(t.modelValue)&&!!Xb([d],x=>l("value",x)===t.modelValue,x=>l("children",x));r(Mt,b===t.modelValue||_?void 0:b)}Xe(()=>{var m;const b=Ap(t.modelValue);i.value.setCheckedKeys(b),(m=e.onCheck)==null||m.call(e,d,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})})},cacheOptions:c}};var L4e=ie({props:{data:{type:Array,default:()=>[]}},setup(t){const e=We(Ky);return Ee(()=>t.data,()=>{var n;t.data.forEach(a=>{e.cachedOptions.has(a.value)||e.cachedOptions.set(a.value,a)});const r=((n=e.selectWrapper)==null?void 0:n.querySelectorAll("input"))||[];Array.from(r).includes(document.activeElement)||e.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const A4e=ie({name:"ElTreeSelect",inheritAttrs:!1,props:{...ju.props,...QS.props,cacheData:{type:Array,default:()=>[]}},setup(t,e){const{slots:n,expose:r}=e,a=z(),i=z(),o=O(()=>t.nodeKey||t.valueKey||"value"),s=k4e(t,e,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=R4e(t,e,{select:a,tree:i,key:o}),c=Qt({});return r(c),ht(()=>{Object.assign(c,{...al(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...al(a.value,["focus","blur"])})}),()=>tt(ju,Qt({...s,ref:f=>a.value=f}),{...n,default:()=>[tt(L4e,{data:l.value}),tt(QS,Qt({...u,ref:f=>i.value=f}))]})}});var qb=Ne(A4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);qb.install=t=>{t.component(qb.name,qb)};const O4e=qb,N4e=O4e,BA=Symbol(),$4e={key:-1,level:-1,data:{}};var pg=(t=>(t.KEY="id",t.LABEL="label",t.CHILDREN="children",t.DISABLED="disabled",t))(pg||{}),_k=(t=>(t.ADD="add",t.DELETE="delete",t))(_k||{});const QK={type:Number,default:26},I4e=$e({data:{type:fe(Array),default:()=>Nn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:fe(Object),default:()=>Nn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:fe(Array),default:()=>Nn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:fe(Array),default:()=>Nn([])},indent:{type:Number,default:16},itemSize:QK,icon:{type:_n},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:fe([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:fe(Function)},perfMode:{type:Boolean,default:!0}}),B4e=$e({node:{type:fe(Object),default:()=>Nn($4e)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:QK}),V4e=$e({node:{type:fe(Object),required:!0}}),JK="node-click",eY="node-expand",tY="node-collapse",nY="current-change",rY="check",aY="check-change",iY="node-contextmenu",P4e={[JK]:(t,e,n)=>t&&e&&n,[eY]:(t,e)=>t&&e,[tY]:(t,e)=>t&&e,[nY]:(t,e)=>t&&e,[rY]:(t,e)=>t&&e,[aY]:(t,e)=>t&&typeof e=="boolean",[iY]:(t,e,n)=>t&&e&&n},F4e={click:(t,e)=>!!(t&&e),toggle:t=>!!t,check:(t,e)=>t&&typeof e=="boolean"};function z4e(t,e){const n=z(new Set),r=z(new Set),{emit:a}=wt();Ee([()=>e.value,()=>t.defaultCheckedKeys],()=>Xe(()=>{m(t.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!e.value||!t.showCheckbox||t.checkStrictly)return;const{levelTreeNodeMap:b,maxLevel:_}=e.value,x=n.value,w=new Set;for(let C=_-1;C>=1;--C){const T=b.get(C);T&&T.forEach(k=>{const E=k.children;if(E){let M=!0,D=!1;for(const R of E){const A=R.key;if(x.has(A))D=!0;else if(w.has(A)){M=!1,D=!0;break}else M=!1}M?x.add(k.key):D?(w.add(k.key),x.delete(k.key)):(x.delete(k.key),w.delete(k.key))}})}r.value=w},o=b=>n.value.has(b.key),s=b=>r.value.has(b.key),l=(b,_,x=!0)=>{const w=n.value,C=(T,k)=>{w[k?_k.ADD:_k.DELETE](T.key);const E=T.children;!t.checkStrictly&&E&&E.forEach(M=>{M.disabled||C(M,k)})};C(b,_),i(),x&&u(b,_)},u=(b,_)=>{const{checkedNodes:x,checkedKeys:w}=p(),{halfCheckedNodes:C,halfCheckedKeys:T}=v();a(rY,b.data,{checkedKeys:w,checkedNodes:x,halfCheckedKeys:T,halfCheckedNodes:C}),a(aY,b.data,_)};function c(b=!1){return p(b).checkedKeys}function f(b=!1){return p(b).checkedNodes}function d(){return v().halfCheckedKeys}function h(){return v().halfCheckedNodes}function p(b=!1){const _=[],x=[];if(e!=null&&e.value&&t.showCheckbox){const{treeNodeMap:w}=e.value;n.value.forEach(C=>{const T=w.get(C);T&&(!b||b&&T.isLeaf)&&(x.push(C),_.push(T.data))})}return{checkedKeys:x,checkedNodes:_}}function v(){const b=[],_=[];if(e!=null&&e.value&&t.showCheckbox){const{treeNodeMap:x}=e.value;r.value.forEach(w=>{const C=x.get(w);C&&(_.push(w),b.push(C.data))})}return{halfCheckedNodes:b,halfCheckedKeys:_}}function g(b){n.value.clear(),r.value.clear(),m(b)}function y(b,_){if(e!=null&&e.value&&t.showCheckbox){const x=e.value.treeNodeMap.get(b);x&&l(x,_,!1)}}function m(b){if(e!=null&&e.value){const{treeNodeMap:_}=e.value;if(t.showCheckbox&&_&&b)for(const x of b){const w=_.get(x);w&&!o(w)&&l(w,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:y,setCheckedKeys:g}}function G4e(t,e){const n=z(new Set([])),r=z(new Set([])),a=O(()=>ut(t.filterMethod));function i(s){var l;if(!a.value)return;const u=new Set,c=r.value,f=n.value,d=[],h=((l=e.value)==null?void 0:l.treeNodes)||[],p=t.filterMethod;f.clear();function v(g){g.forEach(y=>{d.push(y),p!=null&&p(s,y.data)?d.forEach(b=>{u.add(b.key)}):y.isLeaf&&f.add(y.key);const m=y.children;if(m&&v(m),!y.isLeaf){if(!u.has(y.key))f.add(y.key);else if(m){let b=!0;for(const _ of m)if(!f.has(_.key)){b=!1;break}b?c.add(y.key):c.delete(y.key)}}d.pop()})}return v(h),u}function o(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:o}}function H4e(t,e){const n=z(new Set(t.defaultExpandedKeys)),r=z(),a=Sn();Ee(()=>t.currentNodeKey,J=>{r.value=J},{immediate:!0}),Ee(()=>t.data,J=>{re(J)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:s,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h}=z4e(t,a),{doFilter:p,hiddenNodeKeySet:v,isForceHiddenExpandIcon:g}=G4e(t,a),y=O(()=>{var J;return((J=t.props)==null?void 0:J.value)||pg.KEY}),m=O(()=>{var J;return((J=t.props)==null?void 0:J.children)||pg.CHILDREN}),b=O(()=>{var J;return((J=t.props)==null?void 0:J.disabled)||pg.DISABLED}),_=O(()=>{var J;return((J=t.props)==null?void 0:J.label)||pg.LABEL}),x=O(()=>{const J=n.value,he=v.value,ue=[],X=a.value&&a.value.treeNodes||[];function K(){const ee=[];for(let se=X.length-1;se>=0;--se)ee.push(X[se]);for(;ee.length;){const se=ee.pop();if(se&&(he.has(se.key)||ue.push(se),J.has(se.key))){const ye=se.children;if(ye){const we=ye.length;for(let be=we-1;be>=0;--be)ee.push(ye[be])}}}}return K(),ue}),w=O(()=>x.value.length>0);function C(J){const he=new Map,ue=new Map;let X=1;function K(se,ye=1,we=void 0){var be;const Me=[];for(const Se of se){const xe=E(Se),ke={level:ye,key:xe,data:Se};ke.label=D(Se),ke.parent=we;const ge=k(Se);ke.disabled=M(Se),ke.isLeaf=!ge||ge.length===0,ge&&ge.length&&(ke.children=K(ge,ye+1,ke)),Me.push(ke),he.set(xe,ke),ue.has(ye)||ue.set(ye,[]),(be=ue.get(ye))==null||be.push(ke)}return ye>X&&(X=ye),Me}const ee=K(J);return{treeNodeMap:he,levelTreeNodeMap:ue,maxLevel:X,treeNodes:ee}}function T(J){const he=p(J);he&&(n.value=he)}function k(J){return J[m.value]}function E(J){return J?J[y.value]:""}function M(J){return J[b.value]}function D(J){return J[_.value]}function R(J){n.value.has(J.key)?L(J):I(J)}function A(J){n.value=new Set(J)}function V(J,he){e(JK,J.data,J,he),P(J),t.expandOnClickNode&&R(J),t.showCheckbox&&t.checkOnClickNode&&!J.disabled&&s(J,!o(J),!0)}function P(J){j(J)||(r.value=J.key,e(nY,J.data,J))}function N(J,he){s(J,he)}function I(J){const he=n.value;if(a.value&&t.accordion){const{treeNodeMap:ue}=a.value;he.forEach(X=>{const K=ue.get(X);J&&J.level===(K==null?void 0:K.level)&&he.delete(X)})}he.add(J.key),e(eY,J.data,J)}function L(J){n.value.delete(J.key),e(tY,J.data,J)}function $(J){return n.value.has(J.key)}function U(J){return!!J.disabled}function j(J){const he=r.value;return he!==void 0&&he===J.key}function Y(){var J,he;if(r.value)return(he=(J=a.value)==null?void 0:J.treeNodeMap.get(r.value))==null?void 0:he.data}function oe(){return r.value}function te(J){r.value=J}function re(J){Xe(()=>a.value=C(J))}function ne(J){var he;const ue=Lt(J)?E(J):J;return(he=a.value)==null?void 0:he.treeNodeMap.get(ue)}return{tree:a,flattenTree:x,isNotEmpty:w,getKey:E,getChildren:k,toggleExpand:R,toggleCheckbox:s,isExpanded:$,isChecked:o,isIndeterminate:i,isDisabled:U,isCurrent:j,isForceHiddenExpandIcon:g,handleNodeClick:V,handleNodeCheck:N,getCurrentNode:Y,getCurrentKey:oe,setCurrentKey:te,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h,filter:T,setData:re,getNode:ne,expandNode:I,collapseNode:L,setExpandedKeys:A}}var U4e=ie({name:"ElTreeNodeContent",props:V4e,setup(t){const e=We(BA),n=De("tree");return()=>{const r=t.node,{data:a}=r;return e!=null&&e.ctx.slots.default?e.ctx.slots.default({node:r,data:a}):tt("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const W4e=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],j4e=ie({name:"ElTreeNode"}),K4e=ie({...j4e,props:B4e,emits:F4e,setup(t,{emit:e}){const n=t,r=We(BA),a=De("tree"),i=O(()=>{var f;return(f=r==null?void 0:r.props.indent)!=null?f:16}),o=O(()=>{var f;return(f=r==null?void 0:r.props.icon)!=null?f:d9}),s=f=>{e("click",n.node,f)},l=()=>{e("toggle",n.node)},u=f=>{e("check",n.node,f)},c=f=>{var d,h,p,v;(p=(h=(d=r==null?void 0:r.instance)==null?void 0:d.vnode)==null?void 0:h.props)!=null&&p.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),r==null||r.ctx.emit(iY,f,(v=n.node)==null?void 0:v.data,n.node)};return(f,d)=>{var h,p,v;return B(),q("div",{ref:"node$",class:F([S(a).b("node"),S(a).is("expanded",f.expanded),S(a).is("current",f.current),S(a).is("focusable",!f.disabled),S(a).is("checked",!f.disabled&&f.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":f.expanded,"aria-disabled":f.disabled,"aria-checked":f.checked,"data-key":(h=f.node)==null?void 0:h.key,onClick:it(s,["stop"]),onContextmenu:c},[G("div",{class:F(S(a).be("node","content")),style:qe({paddingLeft:`${(f.node.level-1)*S(i)}px`,height:f.itemSize+"px"})},[S(o)?(B(),de(S(Ye),{key:0,class:F([S(a).is("leaf",!!((p=f.node)!=null&&p.isLeaf)),S(a).is("hidden",f.hiddenExpandIcon),{expanded:!((v=f.node)!=null&&v.isLeaf)&&f.expanded},S(a).be("node","expand-icon")]),onClick:it(l,["stop"])},{default:Z(()=>[(B(),de(Et(S(o))))]),_:1},8,["class","onClick"])):le("v-if",!0),f.showCheckbox?(B(),de(S(Xi),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:d[0]||(d[0]=it(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):le("v-if",!0),H(S(U4e),{node:f.node},null,8,["node"])],6)],42,W4e)}}});var Y4e=Ne(K4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const X4e=ie({name:"ElTreeV2"}),q4e=ie({...X4e,props:I4e,emits:P4e,setup(t,{expose:e,emit:n}){const r=t,a=ea(),i=O(()=>r.itemSize);Nt(BA,{ctx:{emit:n,slots:a},props:r,instance:wt()}),Nt(ks,void 0);const{t:o}=Kt(),s=De("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:d,isChecked:h,isDisabled:p,isCurrent:v,isForceHiddenExpandIcon:g,handleNodeClick:y,handleNodeCheck:m,toggleCheckbox:b,getCurrentNode:_,getCurrentKey:x,setCurrentKey:w,getCheckedKeys:C,getCheckedNodes:T,getHalfCheckedKeys:k,getHalfCheckedNodes:E,setChecked:M,setCheckedKeys:D,filter:R,setData:A,getNode:V,expandNode:P,collapseNode:N,setExpandedKeys:I}=H4e(r,n);return e({toggleCheckbox:b,getCurrentNode:_,getCurrentKey:x,setCurrentKey:w,getCheckedKeys:C,getCheckedNodes:T,getHalfCheckedKeys:k,getHalfCheckedNodes:E,setChecked:M,setCheckedKeys:D,filter:R,setData:A,getNode:V,expandNode:P,collapseNode:N,setExpandedKeys:I}),(L,$)=>{var U;return B(),q("div",{class:F([S(s).b(),{[S(s).m("highlight-current")]:L.highlightCurrent}]),role:"tree"},[S(u)?(B(),de(S(fK),{key:0,"class-name":S(s).b("virtual-list"),data:S(l),total:S(l).length,height:L.height,"item-size":S(i),"perf-mode":L.perfMode},{default:Z(({data:j,index:Y,style:oe})=>[(B(),de(Y4e,{key:j[Y].key,style:qe(oe),node:j[Y],expanded:S(f)(j[Y]),"show-checkbox":L.showCheckbox,checked:S(h)(j[Y]),indeterminate:S(d)(j[Y]),"item-size":S(i),disabled:S(p)(j[Y]),current:S(v)(j[Y]),"hidden-expand-icon":S(g)(j[Y]),onClick:S(y),onToggle:S(c),onCheck:S(m)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(B(),q("div",{key:1,class:F(S(s).e("empty-block"))},[G("span",{class:F(S(s).e("empty-text"))},Ae((U=L.emptyText)!=null?U:S(o)("el.tree.emptyText")),3)],2))],2)}}});var Z4e=Ne(q4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const Q4e=Tt(Z4e),oY=Symbol("uploadContextKey"),J4e="ElUpload";class eFe extends Error{constructor(e,n,r,a){super(e),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function QV(t,e,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${e.method} ${t} ${n.status}`,new eFe(r,n.status,e.method,t)}function tFe(t){const e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}const nFe=t=>{typeof XMLHttpRequest>"u"&&dr(J4e,"XMLHttpRequest is undefined");const e=new XMLHttpRequest,n=t.action;e.upload&&e.upload.addEventListener("progress",i=>{const o=i;o.percent=i.total>0?i.loaded/i.total*100:0,t.onProgress(o)});const r=new FormData;if(t.data)for(const[i,o]of Object.entries(t.data))He(o)&&o.length?r.append(i,...o):r.append(i,o);r.append(t.filename,t.file,t.file.name),e.addEventListener("error",()=>{t.onError(QV(n,t,e))}),e.addEventListener("load",()=>{if(e.status<200||e.status>=300)return t.onError(QV(n,t,e));t.onSuccess(tFe(e))}),e.open(t.method,n,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);const a=t.headers||{};if(a instanceof Headers)a.forEach((i,o)=>e.setRequestHeader(o,i));else for(const[i,o]of Object.entries(a))ur(o)||e.setRequestHeader(i,String(o));return e.send(r),e},sY=["text","picture","picture-card"];let rFe=1;const wk=()=>Date.now()+rFe++,lY=$e({action:{type:String,default:"#"},headers:{type:fe(Object)},method:{type:String,default:"post"},data:{type:fe([Object,Function,Promise]),default:()=>Nn({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:fe(Array),default:()=>Nn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:sY,default:"text"},httpRequest:{type:fe(Function),default:nFe},disabled:Boolean,limit:Number}),aFe=$e({...lY,beforeUpload:{type:fe(Function),default:cn},beforeRemove:{type:fe(Function)},onRemove:{type:fe(Function),default:cn},onChange:{type:fe(Function),default:cn},onPreview:{type:fe(Function),default:cn},onSuccess:{type:fe(Function),default:cn},onProgress:{type:fe(Function),default:cn},onError:{type:fe(Function),default:cn},onExceed:{type:fe(Function),default:cn}}),iFe=$e({files:{type:fe(Array),default:()=>Nn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:fe(Function),default:cn},listType:{type:String,values:sY,default:"text"}}),oFe={remove:t=>!!t},sFe=["onKeydown"],lFe=["src"],uFe=["onClick"],cFe=["title"],fFe=["onClick"],dFe=["onClick"],hFe=ie({name:"ElUploadList"}),vFe=ie({...hFe,props:iFe,emits:oFe,setup(t,{emit:e}){const{t:n}=Kt(),r=De("upload"),a=De("icon"),i=De("list"),o=ni(),s=z(!1),l=u=>{e("remove",u)};return(u,c)=>(B(),de(NU,{tag:"ul",class:F([S(r).b("list"),S(r).bm("list",u.listType),S(r).is("disabled",S(o))]),name:S(i).b()},{default:Z(()=>[(B(!0),q(Ze,null,Pt(u.files,f=>(B(),q("li",{key:f.uid||f.name,class:F([S(r).be("list","item"),S(r).is(f.status),{focusing:s.value}]),tabindex:"0",onKeydown:jt(d=>!S(o)&&l(f),["delete"]),onFocus:c[0]||(c[0]=d=>s.value=!0),onBlur:c[1]||(c[1]=d=>s.value=!1),onClick:c[2]||(c[2]=d=>s.value=!1)},[Te(u.$slots,"default",{file:f},()=>[u.listType==="picture"||f.status!=="uploading"&&u.listType==="picture-card"?(B(),q("img",{key:0,class:F(S(r).be("list","item-thumbnail")),src:f.url,alt:""},null,10,lFe)):le("v-if",!0),f.status==="uploading"||u.listType!=="picture-card"?(B(),q("div",{key:1,class:F(S(r).be("list","item-info"))},[G("a",{class:F(S(r).be("list","item-name")),onClick:it(d=>u.handlePreview(f),["prevent"])},[H(S(Ye),{class:F(S(a).m("document"))},{default:Z(()=>[H(S(Kme))]),_:1},8,["class"]),G("span",{class:F(S(r).be("list","item-file-name")),title:f.name},Ae(f.name),11,cFe)],10,uFe),f.status==="uploading"?(B(),de(S(nK),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:qe(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):le("v-if",!0)],2)):le("v-if",!0),G("label",{class:F(S(r).be("list","item-status-label"))},[u.listType==="text"?(B(),de(S(Ye),{key:0,class:F([S(a).m("upload-success"),S(a).m("circle-check")])},{default:Z(()=>[H(S(LL))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(B(),de(S(Ye),{key:1,class:F([S(a).m("upload-success"),S(a).m("check")])},{default:Z(()=>[H(S(Gy))]),_:1},8,["class"])):le("v-if",!0)],2),S(o)?le("v-if",!0):(B(),de(S(Ye),{key:2,class:F(S(a).m("close")),onClick:d=>l(f)},{default:Z(()=>[H(S(No))]),_:2},1032,["class","onClick"])),le(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),le(" This is a bug which needs to be fixed "),le(" TODO: Fix the incorrect navigation interaction "),S(o)?le("v-if",!0):(B(),q("i",{key:3,class:F(S(a).m("close-tip"))},Ae(S(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(B(),q("span",{key:4,class:F(S(r).be("list","item-actions"))},[G("span",{class:F(S(r).be("list","item-preview")),onClick:d=>u.handlePreview(f)},[H(S(Ye),{class:F(S(a).m("zoom-in"))},{default:Z(()=>[H(S(g9))]),_:1},8,["class"])],10,fFe),S(o)?le("v-if",!0):(B(),q("span",{key:0,class:F(S(r).be("list","item-delete")),onClick:d=>l(f)},[H(S(Ye),{class:F(S(a).m("delete"))},{default:Z(()=>[H(S(zme))]),_:1},8,["class"])],10,dFe))],2)):le("v-if",!0)])],42,sFe))),128)),Te(u.$slots,"append")]),_:3},8,["class","name"]))}});var JV=Ne(vFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const pFe=$e({disabled:{type:Boolean,default:!1}}),gFe={file:t=>He(t)},yFe=["onDrop","onDragover"],uY="ElUploadDrag",mFe=ie({name:uY}),bFe=ie({...mFe,props:pFe,emits:gFe,setup(t,{emit:e}){const n=We(oY);n||dr(uY,"usage: ");const r=De("upload"),a=z(!1),i=ni(),o=l=>{if(i.value)return;a.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files),c=n.accept.value;if(!c){e("file",u);return}const f=u.filter(d=>{const{type:h,name:p}=d,v=p.includes(".")?`.${p.split(".").pop()}`:"",g=h.replace(/\/.*$/,"");return c.split(",").map(y=>y.trim()).filter(y=>y).some(y=>y.startsWith(".")?v===y:/\/\*$/.test(y)?g===y.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(y)?h===y:!1)});e("file",f)},s=()=>{i.value||(a.value=!0)};return(l,u)=>(B(),q("div",{class:F([S(r).b("dragger"),S(r).is("dragover",a.value)]),onDrop:it(o,["prevent"]),onDragover:it(s,["prevent"]),onDragleave:u[0]||(u[0]=it(c=>a.value=!1,["prevent"]))},[Te(l.$slots,"default")],42,yFe))}});var SFe=Ne(bFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const _Fe=$e({...lY,beforeUpload:{type:fe(Function),default:cn},onRemove:{type:fe(Function),default:cn},onStart:{type:fe(Function),default:cn},onSuccess:{type:fe(Function),default:cn},onProgress:{type:fe(Function),default:cn},onError:{type:fe(Function),default:cn},onExceed:{type:fe(Function),default:cn}}),wFe=["onKeydown"],xFe=["name","multiple","accept"],CFe=ie({name:"ElUploadContent",inheritAttrs:!1}),TFe=ie({...CFe,props:_Fe,setup(t,{expose:e}){const n=t,r=De("upload"),a=ni(),i=Sn({}),o=Sn(),s=v=>{if(v.length===0)return;const{autoUpload:g,limit:y,fileList:m,multiple:b,onStart:_,onExceed:x}=n;if(y&&m.length+v.length>y){x(v,m);return}b||(v=v.slice(0,1));for(const w of v){const C=w;C.uid=wk(),_(C),g&&l(C)}},l=async v=>{if(o.value.value="",!n.beforeUpload)return c(v);let g,y={};try{const b=n.data,_=n.beforeUpload(v);y=TS(n.data)?BS(n.data):n.data,g=await _,TS(n.data)&&Xa(b,y)&&(y=BS(n.data))}catch{g=!1}if(g===!1){n.onRemove(v);return}let m=v;g instanceof Blob&&(g instanceof File?m=g:m=new File([g],v.name,{type:v.type})),c(Object.assign(m,{uid:v.uid}),y)},u=async(v,g)=>ut(v)?v(g):v,c=async(v,g)=>{const{headers:y,data:m,method:b,withCredentials:_,name:x,action:w,onProgress:C,onSuccess:T,onError:k,httpRequest:E}=n;try{g=await u(g??m,v)}catch{n.onRemove(v);return}const{uid:M}=v,D={headers:y||{},withCredentials:_,file:v,data:g,method:b,filename:x,action:w,onProgress:A=>{C(A,v)},onSuccess:A=>{T(A,v),delete i.value[M]},onError:A=>{k(A,v),delete i.value[M]}},R=E(D);i.value[M]=R,R instanceof Promise&&R.then(D.onSuccess,D.onError)},f=v=>{const g=v.target.files;g&&s(Array.from(g))},d=()=>{a.value||(o.value.value="",o.value.click())},h=()=>{d()};return e({abort:v=>{K0e(i.value).filter(v?([y])=>String(v.uid)===y:()=>!0).forEach(([y,m])=>{m instanceof XMLHttpRequest&&m.abort(),delete i.value[y]})},upload:l}),(v,g)=>(B(),q("div",{class:F([S(r).b(),S(r).m(v.listType),S(r).is("drag",v.drag)]),tabindex:"0",onClick:d,onKeydown:jt(it(h,["self"]),["enter","space"])},[v.drag?(B(),de(SFe,{key:0,disabled:S(a),onFile:s},{default:Z(()=>[Te(v.$slots,"default")]),_:3},8,["disabled"])):Te(v.$slots,"default",{key:1}),G("input",{ref_key:"inputRef",ref:o,class:F(S(r).e("input")),name:v.name,multiple:v.multiple,accept:v.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=it(()=>{},["stop"]))},null,42,xFe)],42,wFe))}});var eP=Ne(TFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const tP="ElUpload",nP=t=>{var e;(e=t.url)!=null&&e.startsWith("blob:")&&URL.revokeObjectURL(t.url)},EFe=(t,e)=>{const n=Ofe(t,"fileList",void 0,{passive:!0}),r=d=>n.value.find(h=>h.uid===d.uid);function a(d){var h;(h=e.value)==null||h.abort(d)}function i(d=["ready","uploading","success","fail"]){n.value=n.value.filter(h=>!d.includes(h.status))}const o=(d,h)=>{const p=r(h);p&&(console.error(d),p.status="fail",n.value.splice(n.value.indexOf(p),1),t.onError(d,p,n.value),t.onChange(p,n.value))},s=(d,h)=>{const p=r(h);p&&(t.onProgress(d,p,n.value),p.status="uploading",p.percentage=Math.round(d.percent))},l=(d,h)=>{const p=r(h);p&&(p.status="success",p.response=d,t.onSuccess(d,p,n.value),t.onChange(p,n.value))},u=d=>{ur(d.uid)&&(d.uid=wk());const h={name:d.name,percentage:0,status:"ready",size:d.size,raw:d,uid:d.uid};if(t.listType==="picture-card"||t.listType==="picture")try{h.url=URL.createObjectURL(d)}catch(p){p.message,t.onError(p,h,n.value)}n.value=[...n.value,h],t.onChange(h,n.value)},c=async d=>{const h=d instanceof File?r(d):d;h||dr(tP,"file to be removed not found");const p=v=>{a(v);const g=n.value;g.splice(g.indexOf(v),1),t.onRemove(v,g),nP(v)};t.beforeRemove?await t.beforeRemove(h,n.value)!==!1&&p(h):p(h)};function f(){n.value.filter(({status:d})=>d==="ready").forEach(({raw:d})=>{var h;return d&&((h=e.value)==null?void 0:h.upload(d))})}return Ee(()=>t.listType,d=>{d!=="picture-card"&&d!=="picture"||(n.value=n.value.map(h=>{const{raw:p,url:v}=h;if(!v&&p)try{h.url=URL.createObjectURL(p)}catch(g){t.onError(g,h,n.value)}return h}))}),Ee(n,d=>{for(const h of d)h.uid||(h.uid=wk()),h.status||(h.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:a,clearFiles:i,handleError:o,handleProgress:s,handleStart:u,handleSuccess:l,handleRemove:c,submit:f,revokeFileObjectURL:nP}},MFe=ie({name:"ElUpload"}),kFe=ie({...MFe,props:aFe,setup(t,{expose:e}){const n=t,r=ni(),a=Sn(),{abort:i,submit:o,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:d,handleProgress:h,revokeFileObjectURL:p}=EFe(n,a),v=O(()=>n.listType==="picture-card"),g=O(()=>({...n,fileList:l.value,onStart:u,onProgress:h,onSuccess:d,onError:c,onRemove:f}));return Tn(()=>{l.value.forEach(p)}),Nt(oY,{accept:Bn(n,"accept")}),e({abort:i,submit:o,clearFiles:s,handleStart:u,handleRemove:f}),(y,m)=>(B(),q("div",null,[S(v)&&y.showFileList?(B(),de(JV,{key:0,disabled:S(r),"list-type":y.listType,files:S(l),"handle-preview":y.onPreview,onRemove:S(f)},gl({append:Z(()=>[H(eP,kt({ref_key:"uploadRef",ref:a},S(g)),{default:Z(()=>[y.$slots.trigger?Te(y.$slots,"trigger",{key:0}):le("v-if",!0),!y.$slots.trigger&&y.$slots.default?Te(y.$slots,"default",{key:1}):le("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:Z(({file:b})=>[Te(y.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):le("v-if",!0),!S(v)||S(v)&&!y.showFileList?(B(),de(eP,kt({key:1,ref_key:"uploadRef",ref:a},S(g)),{default:Z(()=>[y.$slots.trigger?Te(y.$slots,"trigger",{key:0}):le("v-if",!0),!y.$slots.trigger&&y.$slots.default?Te(y.$slots,"default",{key:1}):le("v-if",!0)]),_:3},16)):le("v-if",!0),y.$slots.trigger?Te(y.$slots,"default",{key:2}):le("v-if",!0),Te(y.$slots,"tip"),!S(v)&&y.showFileList?(B(),de(JV,{key:3,disabled:S(r),"list-type":y.listType,files:S(l),"handle-preview":y.onPreview,onRemove:S(f)},gl({_:2},[y.$slots.file?{name:"default",fn:Z(({file:b})=>[Te(y.$slots,"file",{file:b})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):le("v-if",!0)]))}});var DFe=Ne(kFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const RFe=Tt(DFe);var LFe=[$we,jwe,mCe,KVe,TCe,ACe,S7,WCe,jCe,St,M7,fEe,gEe,REe,LEe,WMe,LMe,ZMe,Xi,ZEe,tj,uke,Mke,kke,bke,rDe,Mwe,pDe,gDe,yDe,mDe,bDe,PRe,XRe,qRe,Br,Ij,TLe,gAe,yAe,mAe,Wj,Pxe,Fxe,Ye,cOe,jj,ca,Kj,COe,UOe,WOe,jOe,KOe,eNe,i3e,f3e,S3e,y7,nK,lj,hMe,dMe,B3e,G3e,ake,Rl,ju,US,LNe,A$e,F$e,z$e,yIe,wIe,_K,OIe,GIe,HIe,eBe,lVe,uVe,jVe,lPe,uPe,I0,vPe,HTe,SPe,TPe,EPe,Na,QPe,h4e,M4e,N4e,Q4e,RFe];const po="ElInfiniteScroll",AFe=50,OFe=200,NFe=0,$Fe={delay:{type:Number,default:OFe},distance:{type:Number,default:NFe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},VA=(t,e)=>Object.entries($Fe).reduce((n,[r,a])=>{var i,o;const{type:s,default:l}=a,u=t.getAttribute(`infinite-scroll-${r}`);let c=(o=(i=e[u])!=null?i:u)!=null?o:l;return c=c==="false"?!1:c,c=s(c),n[r]=Number.isNaN(c)?l:c,n},{}),cY=t=>{const{observer:e}=t[po];e&&(e.disconnect(),delete t[po].observer)},IFe=(t,e)=>{const{container:n,containerEl:r,instance:a,observer:i,lastScrollTop:o}=t[po],{disabled:s,distance:l}=VA(t,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=r,d=f-o;if(t[po].lastScrollTop=f,i||s||d<0)return;let h=!1;if(n===t)h=c-(u+f)<=l;else{const{clientTop:p,scrollHeight:v}=t,g=Bfe(t,r);h=f+u>=g+p+v-l}h&&e.call(a)};function rC(t,e){const{containerEl:n,instance:r}=t[po],{disabled:a}=VA(t,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?e.call(r):cY(t))}const BFe={async mounted(t,e){const{instance:n,value:r}=e;ut(r)||dr(po,"'v-infinite-scroll' binding value must be a function"),await Xe();const{delay:a,immediate:i}=VA(t,n),o=RL(t,!0),s=o===window?document.documentElement:o,l=If(IFe.bind(null,t,r),a);if(o){if(t[po]={instance:n,container:o,containerEl:s,delay:a,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(If(rC.bind(null,t,r),AFe));t[po].observer=u,u.observe(t,{childList:!0,subtree:!0}),rC(t,r)}o.addEventListener("scroll",l)}},unmounted(t){const{container:e,onScroll:n}=t[po];e==null||e.removeEventListener("scroll",n),cY(t)},async updated(t){if(!t[po])await Xe();else{const{containerEl:e,cb:n,observer:r}=t[po];e.clientHeight&&r&&rC(t,n)}}},xk=BFe;xk.install=t=>{t.directive("InfiniteScroll",xk)};const VFe=xk;function PFe(t){let e;const n=z(!1),r=Qt({...t,originalPosition:"",originalOverflow:"",visible:!1});function a(d){r.text=d}function i(){const d=r.parent,h=f.ns;if(!d.vLoadingAddClassList){let p=d.getAttribute("loading-number");p=Number.parseInt(p)-1,p?d.setAttribute("loading-number",p.toString()):(qa(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),qa(d,h.bm("parent","hidden"))}o(),c.unmount()}function o(){var d,h;(h=(d=f.$el)==null?void 0:d.parentNode)==null||h.removeChild(f.$el)}function s(){var d;t.beforeClose&&!t.beforeClose()||(n.value=!0,clearTimeout(e),e=window.setTimeout(l,400),r.visible=!1,(d=t.closed)==null||d.call(t))}function l(){if(!n.value)return;const d=r.parent;n.value=!1,d.vLoadingAddClassList=void 0,i()}const u=ie({name:"ElLoading",setup(d,{expose:h}){const{ns:p,zIndex:v}=rx("loading");return h({ns:p,zIndex:v}),()=>{const g=r.spinner||r.svg,y=tt("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[tt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),m=r.text?tt("p",{class:p.b("text")},[r.text]):void 0;return tt(Qn,{name:p.b("fade"),onAfterLeave:l},{default:Z(()=>[yt(H("div",{style:{backgroundColor:r.background||""},class:[p.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[tt("div",{class:p.b("spinner")},[y,m])]),[[qt,r.visible]])])})}}}),c=PU(u),f=c.mount(document.createElement("div"));return{...kr(r),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let Xm;const Ck=function(t={}){if(!Ut)return;const e=FFe(t);if(e.fullscreen&&Xm)return Xm;const n=PFe({...e,closed:()=>{var a;(a=e.closed)==null||a.call(e),e.fullscreen&&(Xm=void 0)}});zFe(e,e.parent,n),rP(e,e.parent,n),e.parent.vLoadingAddClassList=()=>rP(e,e.parent,n);let r=e.parent.getAttribute("loading-number");return r?r=`${Number.parseInt(r)+1}`:r="1",e.parent.setAttribute("loading-number",r),e.parent.appendChild(n.$el),Xe(()=>n.visible.value=e.visible),e.fullscreen&&(Xm=n),n},FFe=t=>{var e,n,r,a;let i;return ft(t.target)?i=(e=document.querySelector(t.target))!=null?e:document.body:i=t.target||document.body,{parent:i===document.body||t.body?document.body:i,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:i===document.body&&((n=t.fullscreen)!=null?n:!0),lock:(r=t.lock)!=null?r:!1,customClass:t.customClass||"",visible:(a=t.visible)!=null?a:!0,target:i}},zFe=async(t,e,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(t.fullscreen)n.originalPosition.value=vu(document.body,"position"),n.originalOverflow.value=vu(document.body,"overflow"),a.zIndex=r();else if(t.parent===document.body){n.originalPosition.value=vu(document.body,"position"),await Xe();for(const i of["top","left"]){const o=i==="top"?"scrollTop":"scrollLeft";a[i]=`${t.target.getBoundingClientRect()[i]+document.body[o]+document.documentElement[o]-Number.parseInt(vu(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${t.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=vu(e,"position");for(const[i,o]of Object.entries(a))n.$el.style[i]=o},rP=(t,e,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?qa(e,r.bm("parent","relative")):fs(e,r.bm("parent","relative")),t.fullscreen&&t.lock?fs(e,r.bm("parent","hidden")):qa(e,r.bm("parent","hidden"))},Tk=Symbol("ElLoading"),aP=(t,e)=>{var n,r,a,i;const o=e.instance,s=d=>Lt(e.value)?e.value[d]:void 0,l=d=>{const h=ft(d)&&(o==null?void 0:o[d])||d;return h&&z(h)},u=d=>l(s(d)||t.getAttribute(`element-loading-${nc(d)}`)),c=(n=s("fullscreen"))!=null?n:e.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(r=s("target"))!=null?r:c?void 0:t,body:(a=s("body"))!=null?a:e.modifiers.body,lock:(i=s("lock"))!=null?i:e.modifiers.lock};t[Tk]={options:f,instance:Ck(f)}},GFe=(t,e)=>{for(const n of Object.keys(e))pt(e[n])&&(e[n].value=t[n])},iP={mounted(t,e){e.value&&aP(t,e)},updated(t,e){const n=t[Tk];e.oldValue!==e.value&&(e.value&&!e.oldValue?aP(t,e):e.value&&e.oldValue?Lt(e.value)&&GFe(e.value,n.options):n==null||n.instance.close())},unmounted(t){var e;(e=t[Tk])==null||e.instance.close()}},HFe={install(t){t.directive("loading",iP),t.config.globalProperties.$loading=Ck},directive:iP,service:Ck},fY=["success","info","warning","error"],Ua=Nn({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:Ut?document.body:void 0}),UFe=$e({customClass:{type:String,default:Ua.customClass},center:{type:Boolean,default:Ua.center},dangerouslyUseHTMLString:{type:Boolean,default:Ua.dangerouslyUseHTMLString},duration:{type:Number,default:Ua.duration},icon:{type:_n,default:Ua.icon},id:{type:String,default:Ua.id},message:{type:fe([String,Object,Function]),default:Ua.message},onClose:{type:fe(Function),required:!1},showClose:{type:Boolean,default:Ua.showClose},type:{type:String,values:fY,default:Ua.type},offset:{type:Number,default:Ua.offset},zIndex:{type:Number,default:Ua.zIndex},grouping:{type:Boolean,default:Ua.grouping},repeatNum:{type:Number,default:Ua.repeatNum}}),WFe={destroy:()=>!0},xo=WH([]),jFe=t=>{const e=xo.findIndex(a=>a.id===t),n=xo[e];let r;return e>0&&(r=xo[e-1]),{current:n,prev:r}},KFe=t=>{const{prev:e}=jFe(t);return e?e.vm.exposed.bottom.value:0},YFe=(t,e)=>xo.findIndex(r=>r.id===t)>0?20:e,XFe=["id"],qFe=["innerHTML"],ZFe=ie({name:"ElMessage"}),QFe=ie({...ZFe,props:UFe,emits:WFe,setup(t,{expose:e}){const n=t,{Close:r}=NL,{ns:a,zIndex:i}=rx("message"),{currentZIndex:o,nextZIndex:s}=i,l=z(),u=z(!1),c=z(0);let f;const d=O(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=O(()=>{const C=n.type;return{[a.bm("icon",C)]:C&&Gu[C]}}),p=O(()=>n.icon||Gu[n.type]||""),v=O(()=>KFe(n.id)),g=O(()=>YFe(n.id,n.offset)+v.value),y=O(()=>c.value+g.value),m=O(()=>({top:`${g.value}px`,zIndex:o.value}));function b(){n.duration!==0&&({stop:f}=Zf(()=>{x()},n.duration))}function _(){f==null||f()}function x(){u.value=!1}function w({code:C}){C===et.esc&&x()}return ht(()=>{b(),s(),u.value=!0}),Ee(()=>n.repeatNum,()=>{_(),b()}),Rn(document,"keydown",w),da(l,()=>{c.value=l.value.getBoundingClientRect().height}),e({visible:u,bottom:y,close:x}),(C,T)=>(B(),de(Qn,{name:S(a).b("fade"),onBeforeLeave:C.onClose,onAfterLeave:T[0]||(T[0]=k=>C.$emit("destroy")),persisted:""},{default:Z(()=>[yt(G("div",{id:C.id,ref_key:"messageRef",ref:l,class:F([S(a).b(),{[S(a).m(C.type)]:C.type&&!C.icon},S(a).is("center",C.center),S(a).is("closable",C.showClose),C.customClass]),style:qe(S(m)),role:"alert",onMouseenter:_,onMouseleave:b},[C.repeatNum>1?(B(),de(S(S7),{key:0,value:C.repeatNum,type:S(d),class:F(S(a).e("badge"))},null,8,["value","type","class"])):le("v-if",!0),S(p)?(B(),de(S(Ye),{key:1,class:F([S(a).e("icon"),S(h)])},{default:Z(()=>[(B(),de(Et(S(p))))]),_:1},8,["class"])):le("v-if",!0),Te(C.$slots,"default",{},()=>[C.dangerouslyUseHTMLString?(B(),q(Ze,{key:1},[le(" Caution here, message could've been compromised, never use user's input as message "),G("p",{class:F(S(a).e("content")),innerHTML:C.message},null,10,qFe)],2112)):(B(),q("p",{key:0,class:F(S(a).e("content"))},Ae(C.message),3))]),C.showClose?(B(),de(S(Ye),{key:2,class:F(S(a).e("closeBtn")),onClick:it(x,["stop"])},{default:Z(()=>[H(S(r))]),_:1},8,["class","onClick"])):le("v-if",!0)],46,XFe),[[qt,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var JFe=Ne(QFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let e5e=1;const dY=t=>{const e=!t||ft(t)||Ln(t)||ut(t)?{message:t}:t,n={...Ua,...e};if(!n.appendTo)n.appendTo=document.body;else if(ft(n.appendTo)){let r=document.querySelector(n.appendTo);Ui(r)||(r=document.body),n.appendTo=r}return n},t5e=t=>{const e=xo.indexOf(t);if(e===-1)return;xo.splice(e,1);const{handler:n}=t;n.close()},n5e=({appendTo:t,...e},n)=>{const r=`message_${e5e++}`,a=e.onClose,i=document.createElement("div"),o={...e,id:r,onClose:()=>{a==null||a(),t5e(c)},onDestroy:()=>{ov(null,i)}},s=H(JFe,o,ut(o.message)||Ln(o.message)?{default:ut(o.message)?o.message:()=>o.message}:null);s.appContext=n||xv._context,ov(s,i),t.appendChild(i.firstElementChild);const l=s.component,c={id:r,vnode:s,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:s.component.props};return c},xv=(t={},e)=>{if(!Ut)return{close:()=>{}};if(lt(DM.max)&&xo.length>=DM.max)return{close:()=>{}};const n=dY(t);if(n.grouping&&xo.length){const a=xo.find(({vnode:i})=>{var o;return((o=i.props)==null?void 0:o.message)===n.message});if(a)return a.props.repeatNum+=1,a.props.type=n.type,a.handler}const r=n5e(n,e);return xo.push(r),r.handler};fY.forEach(t=>{xv[t]=(e={},n)=>{const r=dY(e);return xv({...r,type:t},n)}});function r5e(t){for(const e of xo)(!t||t===e.props.type)&&e.handler.close()}xv.closeAll=r5e;xv._context=null;const ln=b9(xv,"$message"),a5e=ie({name:"ElMessageBox",directives:{TrapFocus:TTe},components:{ElButton:St,ElFocusTrap:ix,ElInput:ca,ElOverlay:fA,ElIcon:Ye,...NL},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Xw},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(t,{emit:e}){const{locale:n,zIndex:r,ns:a,size:i}=rx("message-box",O(()=>t.buttonSize)),{t:o}=n,{nextZIndex:s}=r,l=z(!1),u=Qt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),c=O(()=>{const V=u.type;return{[a.bm("icon",V)]:V&&Gu[V]}}),f=Ki(),d=Ki(),h=O(()=>u.icon||Gu[u.type]||""),p=O(()=>!!u.message),v=z(),g=z(),y=z(),m=z(),b=z(),_=O(()=>u.confirmButtonClass);Ee(()=>u.inputValue,async V=>{await Xe(),t.boxType==="prompt"&&V!==null&&M()},{immediate:!0}),Ee(()=>l.value,V=>{var P,N;V&&(t.boxType!=="prompt"&&(u.autofocus?y.value=(N=(P=b.value)==null?void 0:P.$el)!=null?N:v.value:y.value=v.value),u.zIndex=s()),t.boxType==="prompt"&&(V?Xe().then(()=>{var I;m.value&&m.value.$el&&(u.autofocus?y.value=(I=D())!=null?I:v.value:y.value=v.value)}):(u.editorErrorMessage="",u.validateError=!1))});const x=O(()=>t.draggable);S9(v,g,x),ht(async()=>{await Xe(),t.closeOnHashChange&&window.addEventListener("hashchange",w)}),Tn(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",w)});function w(){l.value&&(l.value=!1,Xe(()=>{u.action&&e("action",u.action)}))}const C=()=>{t.closeOnClickModal&&E(u.distinguishCancelAndClose?"close":"cancel")},T=jL(C),k=V=>{if(u.inputType!=="textarea")return V.preventDefault(),E("confirm")},E=V=>{var P;t.boxType==="prompt"&&V==="confirm"&&!M()||(u.action=V,u.beforeClose?(P=u.beforeClose)==null||P.call(u,V,u,w):w())},M=()=>{if(t.boxType==="prompt"){const V=u.inputPattern;if(V&&!V.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const P=u.inputValidator;if(typeof P=="function"){const N=P(u.inputValue);if(N===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof N=="string")return u.editorErrorMessage=N,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},D=()=>{const V=m.value.$refs;return V.input||V.textarea},R=()=>{E("close")},A=()=>{t.closeOnPressEscape&&R()};return t.lockScroll&&x9(l),{...kr(u),ns:a,overlayEvent:T,visible:l,hasMessage:p,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:h,confirmButtonClasses:_,rootRef:v,focusStartRef:y,headerRef:g,inputRef:m,confirmRef:b,doClose:w,handleClose:R,onCloseRequested:A,handleWrapperClick:C,handleInputEnter:k,handleAction:E,t:o}}}),i5e=["aria-label","aria-describedby"],o5e=["aria-label"],s5e=["id"];function l5e(t,e,n,r,a,i){const o=Ge("el-icon"),s=Ge("close"),l=Ge("el-input"),u=Ge("el-button"),c=Ge("el-focus-trap"),f=Ge("el-overlay");return B(),de(Qn,{name:"fade-in-linear",onAfterLeave:e[11]||(e[11]=d=>t.$emit("vanish")),persisted:""},{default:Z(()=>[yt(H(f,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:Z(()=>[G("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:F(`${t.ns.namespace.value}-overlay-message-box`),onClick:e[8]||(e[8]=(...d)=>t.overlayEvent.onClick&&t.overlayEvent.onClick(...d)),onMousedown:e[9]||(e[9]=(...d)=>t.overlayEvent.onMousedown&&t.overlayEvent.onMousedown(...d)),onMouseup:e[10]||(e[10]=(...d)=>t.overlayEvent.onMouseup&&t.overlayEvent.onMouseup(...d))},[H(c,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:Z(()=>[G("div",{ref:"rootRef",class:F([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:qe(t.customStyle),tabindex:"-1",onClick:e[7]||(e[7]=it(()=>{},["stop"]))},[t.title!==null&&t.title!==void 0?(B(),q("div",{key:0,ref:"headerRef",class:F(t.ns.e("header"))},[G("div",{class:F(t.ns.e("title"))},[t.iconComponent&&t.center?(B(),de(o,{key:0,class:F([t.ns.e("status"),t.typeClass])},{default:Z(()=>[(B(),de(Et(t.iconComponent)))]),_:1},8,["class"])):le("v-if",!0),G("span",null,Ae(t.title),1)],2),t.showClose?(B(),q("button",{key:0,type:"button",class:F(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:e[0]||(e[0]=d=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel")),onKeydown:e[1]||(e[1]=jt(it(d=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[H(o,{class:F(t.ns.e("close"))},{default:Z(()=>[H(s)]),_:1},8,["class"])],42,o5e)):le("v-if",!0)],2)):le("v-if",!0),G("div",{id:t.contentId,class:F(t.ns.e("content"))},[G("div",{class:F(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(B(),de(o,{key:0,class:F([t.ns.e("status"),t.typeClass])},{default:Z(()=>[(B(),de(Et(t.iconComponent)))]),_:1},8,["class"])):le("v-if",!0),t.hasMessage?(B(),q("div",{key:1,class:F(t.ns.e("message"))},[Te(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(B(),de(Et(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(B(),de(Et(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:Z(()=>[Qe(Ae(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):le("v-if",!0)],2),yt(G("div",{class:F(t.ns.e("input"))},[H(l,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":e[2]||(e[2]=d=>t.inputValue=d),type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:F({invalid:t.validateError}),onKeydown:jt(t.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),G("div",{class:F(t.ns.e("errormsg")),style:qe({visibility:t.editorErrorMessage?"visible":"hidden"})},Ae(t.editorErrorMessage),7)],2),[[qt,t.showInput]])],10,s5e),G("div",{class:F(t.ns.e("btns"))},[t.showCancelButton?(B(),de(u,{key:0,loading:t.cancelButtonLoading,class:F([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:e[3]||(e[3]=d=>t.handleAction("cancel")),onKeydown:e[4]||(e[4]=jt(it(d=>t.handleAction("cancel"),["prevent"]),["enter"]))},{default:Z(()=>[Qe(Ae(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):le("v-if",!0),yt(H(u,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,class:F([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:e[5]||(e[5]=d=>t.handleAction("confirm")),onKeydown:e[6]||(e[6]=jt(it(d=>t.handleAction("confirm"),["prevent"]),["enter"]))},{default:Z(()=>[Qe(Ae(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[qt,t.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,i5e)]),_:3},8,["z-index","overlay-class","mask"]),[[qt,t.visible]])]),_:3})}var u5e=Ne(a5e,[["render",l5e],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const W0=new Map,c5e=t=>{let e=document.body;return t.appendTo&&(ft(t.appendTo)&&(e=document.querySelector(t.appendTo)),Ui(t.appendTo)&&(e=t.appendTo),Ui(e)||(e=document.body)),e},f5e=(t,e,n=null)=>{const r=H(u5e,t,ut(t.message)||Ln(t.message)?{default:ut(t.message)?t.message:()=>t.message}:null);return r.appContext=n,ov(r,e),c5e(t).appendChild(e.firstElementChild),r.component},d5e=()=>document.createElement("div"),h5e=(t,e)=>{const n=d5e();t.onVanish=()=>{ov(null,n),W0.delete(a)},t.onAction=i=>{const o=W0.get(a);let s;t.showInput?s={value:a.inputValue,action:i}:s=i,t.callback?t.callback(s,r.proxy):i==="cancel"||i==="close"?t.distinguishCancelAndClose&&i!=="cancel"?o.reject("close"):o.reject("cancel"):o.resolve(s)};const r=f5e(t,n,e),a=r.proxy;for(const i in t)Gt(t,i)&&!Gt(a.$props,i)&&(a[i]=t[i]);return a.visible=!0,a};function Zv(t,e=null){if(!Ut)return Promise.reject();let n;return ft(t)||Ln(t)?t={message:t}:n=t.callback,new Promise((r,a)=>{const i=h5e(t,e??Zv._context);W0.set(i,{options:t,callback:n,resolve:r,reject:a})})}const v5e=["alert","confirm","prompt"],p5e={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};v5e.forEach(t=>{Zv[t]=g5e(t)});function g5e(t){return(e,n,r,a)=>{let i="";return Lt(n)?(r=n,i=""):br(n)?i="":i=n,Zv(Object.assign({title:i,message:e,type:"",...p5e[t]},r,{boxType:t}),a)}}Zv.close=()=>{W0.forEach((t,e)=>{e.doClose()}),W0.clear()};Zv._context=null;const tu=Zv;tu.install=t=>{tu._context=t._context,t.config.globalProperties.$msgbox=tu,t.config.globalProperties.$messageBox=tu,t.config.globalProperties.$alert=tu.alert,t.config.globalProperties.$confirm=tu.confirm,t.config.globalProperties.$prompt=tu.prompt};const y5e=tu,hY=["success","info","warning","error"],m5e=$e({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:_n},id:{type:String,default:""},message:{type:fe([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:fe(Function),default:()=>{}},onClose:{type:fe(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...hY,""],default:""},zIndex:Number}),b5e={destroy:()=>!0},S5e=["id"],_5e=["textContent"],w5e={key:0},x5e=["innerHTML"],C5e=ie({name:"ElNotification"}),T5e=ie({...C5e,props:m5e,emits:b5e,setup(t,{expose:e}){const n=t,{ns:r,zIndex:a}=rx("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=m9,l=z(!1);let u;const c=O(()=>{const b=n.type;return b&&Gu[n.type]?r.m(b):""}),f=O(()=>n.type&&Gu[n.type]||n.icon),d=O(()=>n.position.endsWith("right")?"right":"left"),h=O(()=>n.position.startsWith("top")?"top":"bottom"),p=O(()=>{var b;return{[h.value]:`${n.offset}px`,zIndex:(b=n.zIndex)!=null?b:o.value}});function v(){n.duration>0&&({stop:u}=Zf(()=>{l.value&&y()},n.duration))}function g(){u==null||u()}function y(){l.value=!1}function m({code:b}){b===et.delete||b===et.backspace?g():b===et.esc?l.value&&y():v()}return ht(()=>{v(),i(),l.value=!0}),Rn(document,"keydown",m),e({visible:l,close:y}),(b,_)=>(B(),de(Qn,{name:S(r).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:_[1]||(_[1]=x=>b.$emit("destroy")),persisted:""},{default:Z(()=>[yt(G("div",{id:b.id,class:F([S(r).b(),b.customClass,S(d)]),style:qe(S(p)),role:"alert",onMouseenter:g,onMouseleave:v,onClick:_[0]||(_[0]=(...x)=>b.onClick&&b.onClick(...x))},[S(f)?(B(),de(S(Ye),{key:0,class:F([S(r).e("icon"),S(c)])},{default:Z(()=>[(B(),de(Et(S(f))))]),_:1},8,["class"])):le("v-if",!0),G("div",{class:F(S(r).e("group"))},[G("h2",{class:F(S(r).e("title")),textContent:Ae(b.title)},null,10,_5e),yt(G("div",{class:F(S(r).e("content")),style:qe(b.title?void 0:{margin:0})},[Te(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(B(),q(Ze,{key:1},[le(" Caution here, message could've been compromised, never use user's input as message "),G("p",{innerHTML:b.message},null,8,x5e)],2112)):(B(),q("p",w5e,Ae(b.message),1))])],6),[[qt,b.message]]),b.showClose?(B(),de(S(Ye),{key:0,class:F(S(r).e("closeBtn")),onClick:it(y,["stop"])},{default:Z(()=>[H(S(s))]),_:1},8,["class","onClick"])):le("v-if",!0)],2)],46,S5e),[[qt,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var E5e=Ne(T5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const JS={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Ek=16;let M5e=1;const Cv=function(t={},e=null){if(!Ut)return{close:()=>{}};(typeof t=="string"||Ln(t))&&(t={message:t});const n=t.position||"top-right";let r=t.offset||0;JS[n].forEach(({vm:c})=>{var f;r+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+Ek}),r+=Ek;const a=`notification_${M5e++}`,i=t.onClose,o={...t,offset:r,id:a,onClose:()=>{k5e(a,n,i)}};let s=document.body;Ui(t.appendTo)?s=t.appendTo:ft(t.appendTo)&&(s=document.querySelector(t.appendTo)),Ui(s)||(s=document.body);const l=document.createElement("div"),u=H(E5e,o,Ln(o.message)?{default:()=>o.message}:null);return u.appContext=e??Cv._context,u.props.onDestroy=()=>{ov(null,l)},ov(u,l),JS[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};hY.forEach(t=>{Cv[t]=(e={})=>((typeof e=="string"||Ln(e))&&(e={message:e}),Cv({...e,type:t}))});function k5e(t,e,n){const r=JS[e],a=r.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===t});if(a===-1)return;const{vm:i}=r[a];if(!i)return;n==null||n(i);const o=i.el.offsetHeight,s=e.split("-")[0];r.splice(a,1);const l=r.length;if(!(l<1))for(let u=a;u{e.component.exposed.visible.value=!1})}Cv.closeAll=D5e;Cv._context=null;const R5e=b9(Cv,"$notify");var L5e=[VFe,HFe,ln,y5e,R5e,tK],A5e=Dwe([...LFe,...L5e]);const jr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAALCAYAAACksgdhAAAAAXNSR0IArs4c6QAAANZJREFUKFONkKFOw3AQxn/HGqiYQNQsQSCWzC010/AAPMHUEgQVPETfAbMsSzaHYe8wP4UnAVlRUVFRknYfLQHC2n+Wnblc7n733XfGT8xW8rnE/61d+eOVfBtbaU0zetETRgR4xyCJAuPRomddc877seGDnkj+Q2VVMelVZK4FdsGNxFqQHSqJN0HuVDUCg6sOJDHHKJxKYohx14ZKQVQbTV2QRHgGcfe8E77RUdp/MlhM7VvpYaP72sOyvcf1iOTPkwgw+g4otdtY3mjMzkR4wnXNyPILgh9dNRVCDU4AAAAASUVORK5CYII=",O5e=""+new URL("g-5e0184b4.jpg",import.meta.url).href,N5e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEySURBVHgB7ZbbDYIwFIaPxAHcQJ3AEXQTZQL1jUuI5QV4UycQN3AERmEQgv41NCHEciuKD/2Tk1Pg9M/XayDS0hpZE9F4QvRDTSCeDRpZGmAq+yDWqE5BEBxQtkczQfi2baeyWtkek27CMAwfMD/WmRZ1C6Qd4oRgiPunPlV/MUApQBRFZmGaUMPoBAgsGHzXeZ77ruvGSgCiAMYMaasK0hugaorHGBA+NQh9NkhnxIyDOI5z6w3QNLoGkB3SybKshTJAGQQAF8MwVm1BlJagBmSD9J7aLMtMz/MSGgoApyDtOs1Us1H7ACzxKkbdfAgQlWMoTLmZ2eFi2sMihu2V91HeA22muQpSPro4BUwJQKjL/V8GQd12EABhinRAcBBGkvu/rM5L8G3pP6K/AdDSGl0vEYcYLybsUwwAAAAASUVORK5CYII=",$5e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAL4SURBVHgB5Ve9bhpBEB5QHoBI7gP2A9h+Al/eABd2yyHRUBl3/Aj5KBB0gZKKyxOYJwDS0hgkekgHQsiUFIjLN749ZVn2LnCQJhlptHezM7Pf7M3M7hH97xQ5RtlxHANDEnwHjoNjYmoFHoJH4E4kEunTOQkLm+CJczixrkmnEpzEwW9OeJqwDwpDMEyB353TiX0kj108qfO0Xq+d+Xz+Kubjkv6NkNkBQFK6tT5pFmfHbY1up91uj1ar1Qu5CTf0JpB03nsH9hZGZnXBBuZ+QHcqC6OahXr0O7s9eobhfTabtfCcgKME61WrVVM15gXALK8oU+zzdU9ffnHczFWjr8ChpRrWajVOUAtzd9vttlIqlWxVB/M5DN8UcRo2th+ACbn17ZEN5TQFEIAYYpGYDgh8ctRyEvIOJfYAOG6T6cnGrVZrulwutdFpgJgYOD+m4HShUJgKv7z1HJj8Wb96zUoG0MDwJCnZ9Xq9gqga0Wj02m+bA4D0wRUGovHdBICcCoCjNySleyh1hFOWf+TGZrNJl8vlPv0ZiEVuJfQfHx9Hl5eXci4M4ftWBfBOu9t0K8orMDoKBvGRqLFYLIUKkqdW8P1ZBeDIGlCIBDg2jwWSz+cnOv+hAHhOMZjgJy4rmDeDgPj59/0ENmg2mx28zdwP2Az6Fc3iNxjeJJH2E7DCjffe7XY7g8GA3/t0xPfWNSZxGMldkFuyoQLYKxWUIctyQm6Bvx8IhBvYFw8Iv9Pu2aAtQ4N2GxHfchJQXB3SdjVATAwvFxcX00wmYyjT+41IgFBbMV+v7pXojgKyWCx6AGFIIn0rFgBM2j+M+CRsyAK5McHmuVgsdkhDmONStRSx/2EkjHaSURBHvZfdfv1f+NGdhDvR+wGIk1sy6p3AJvdongYA6V9dXTUfHh74Wb2GcU7d6uxJA8IMuFq1NVcyzo3keDye8LXNh0LdC891KTUpDInIJk544it9nE4l5y/+mIT9NeMquabdX7Of5Lbt8/+a/dP0CyTTqNuZ5l8rAAAAAElFTkSuQmCC";const yd=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},I5e=t=>(xw("data-v-5e8c9070"),t=t(),Cw(),t),B5e={class:"my-header"},V5e=["id"],P5e={class:"demo-input-suffix firsttitle leftbgimg2 my_content1"},F5e={class:"guand_1"},z5e=I5e(()=>G("span",{class:"spantext"},"搜索",-1)),G5e=[z5e],H5e={class:"demo-pagination-block",style:{"margin-top":"20px"}},U5e={class:"dialog-footer footer_div l_btn"},W5e={class:"footerbtn flex1"},j5e={class:"borderimg"},K5e={class:"footerbtn flex1"},Y5e={class:"borderimg"},X5e={__name:"NodeLine",props:{},emits:["queding"],setup(t,{expose:e,emit:n}){z({dianadddialog:!1});let r=z(99),a=z(500),i=z([]);const o=z(),s=z([]);let l=z(!1),u=z(1),c=z(""),f=z("");const d=z(1),h=z(5);ht(()=>{});const p=({row:x,rowIndex:w})=>w%2!=0?"evenRow":"oddRow",v=x=>{g()},g=()=>{const x={transCode:"D00000",count:h.value,page:d.value,searchtag:f.value};Cr(x).then(w=>{i.value=w.rows,u.value=w.total}).catch(w=>{ln.error(w.returnMsg)})};function y(){f.value=c.value,g()}const m=(x,w)=>{if(x.length>1){o.value.clearSelection(),o.value.toggleRowSelection(w,!0),s.value=x[1];return}x.length==1?s.value=x:x.length==0},b=()=>{n("queding",""),d.value=1,s.value.length!=0&&n("queding",s.value[0])},_=()=>{f.value="",b()};return e({dialogVisiblenode:l,pipelinedata:g,searchtaggd:c}),(x,w)=>{const C=Ge("el-image"),T=Ge("el-input"),k=Ge("el-form-item"),E=Ge("el-table-column"),M=Ge("el-table"),D=Ge("el-pagination");return B(),q("div",null,[H(S(Br),{modelValue:S(l),"onUpdate:modelValue":w[5]||(w[5]=R=>pt(l)?l.value=R:l=R),width:"700",class:"dialog_class bgcolor tianjia asideg asidegbg leftbgimg"},{header:Z(({titleId:R,titleClass:A})=>[G("div",B5e,[H(C,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:R,class:F(A)}," 选择节点",10,V5e)])]),default:Z(()=>[G("div",P5e,[G("div",F5e,[H(k,{label:"节点选择","label-width":S(r)},{default:Z(()=>[H(T,{modelValue:S(c),"onUpdate:modelValue":w[0]||(w[0]=R=>pt(c)?c.value=R:c=R),class:"w-50 m-2",placeholder:"节点"},null,8,["modelValue"])]),_:1},8,["label-width"]),G("div",{class:"asdis_btn"},[G("div",{class:"flex_a"},[G("div",{class:"btns",onClick:y},G5e)])])]),H(M,{"row-class-name":p,"max-height":S(a),ref_key:"multipleTableRef",ref:o,data:S(i),style:{width:"100%"},onSelect:m,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:Z(()=>[H(E,{type:"selection",width:"55"}),H(E,{property:"id",label:"节点编号"}),H(E,{property:"name",label:"名称"}),H(E,{property:"ntype",label:"类型"}),H(E,{property:"x",label:"x"}),H(E,{property:"y",label:"y"}),H(E,{property:"z",label:"z"})]),_:1},8,["max-height","data","header-cell-style"]),G("div",H5e,[H(D,{"current-page":d.value,"onUpdate:currentPage":w[1]||(w[1]=R=>d.value=R),"page-size":h.value,"onUpdate:pageSize":w[2]||(w[2]=R=>h.value=R),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(S(u)),class:"mt-4",onCurrentChange:v},null,8,["current-page","page-size","total"])]),G("div",U5e,[G("div",W5e,[G("div",j5e,[H(S(St),{onClick:w[3]||(w[3]=R=>{pt(l)?l.value=!1:l=!1,pt(f)?f.value="":f=""})},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",K5e,[G("div",Y5e,[H(S(St),{onClick:w[4]||(w[4]=R=>{_(),pt(l)?l.value=!1:l=!1})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])])]),_:1},8,["modelValue"])])}}},q5e=yd(X5e,[["__scopeId","data-v-5e8c9070"]]);const Z5e={class:"l_Dialog"},Q5e={class:"my-header xinxi_header"},J5e=["id"],eze={class:"classtab"},tze={class:"asides_content"},nze={class:"jc_content tablecolor jc_content"},rze={class:"font12 my_content1"},aze={class:"btncolor tablefocus bmar"},ize={class:"demo-pagination-block pagination",style:{"margin-top":"20px"}},oze={class:"dialog-footer footer_div l_btn"},sze={class:"footerbtn flex1"},lze={class:"borderimg"},uze={class:"footerbtn flex1"},cze={class:"borderimg"},fze={class:"footerbtn flex1"},dze={class:"borderimg"},hze={class:"footerbtn flex1"},vze={class:"borderimg"},pze={class:"asides_content"},gze={class:"jc_content tablecolor jc_content"},yze={class:"font12 my_content1"},mze={class:"btncolor tablefocus bmar"},bze={class:"demo-pagination-block pagination",style:{"margin-top":"20px"}},Sze={class:"dialog-footer footer_div l_btn"},_ze={class:"footerbtn flex1"},wze={class:"borderimg"},xze={class:"footerbtn flex1"},Cze={class:"borderimg"},Tze={class:"footerbtn flex1"},Eze={class:"borderimg"},Mze={class:"footerbtn flex1"},kze={class:"borderimg"},Dze={class:"my-header"},Rze=["id"],Lze={class:"dialog-footer footer_div l_btn"},Aze={class:"footerbtn flex1"},Oze={class:"borderimg"},Nze={class:"footerbtn flex1"},$ze={class:"borderimg"},Ize={class:"my-header"},Bze=["id"],Vze={class:"delecttitle"},Pze={class:"spanclad"},Fze={class:"dialog-footer footer_div l_btn"},zze={class:"footerbtn flex1"},Gze={class:"borderimg"},Hze={class:"footerbtn flex1"},Uze={class:"borderimg"},Wze={class:"my-header"},jze=["id"],Kze={class:"demo-input-suffix firsttitle magintop guand_1"},Yze={class:"btn2"},Xze={class:"demo-input-suffix firsttitle magintop guand_1"},qze={class:"btn2"},Zze={class:"demo-input-suffix firsttitle magintop guand_1"},Qze={class:"btn2"},Jze={key:0,class:"elimg"},e6e={key:1,class:"elimg"},t6e={key:2,class:"elimg"},n6e={class:"dialog-footer footer_div l_btn"},r6e={class:"footerbtn flex1"},a6e={class:"borderimg"},i6e={class:"footerbtn flex1"},o6e={class:"borderimg"},s6e={class:"my-header"},l6e=["id"],u6e={class:"delecttitle"},c6e={class:"spanclad"},f6e={class:"dialog-footer footer_div l_btn"},d6e={class:"footerbtn flex1"},h6e={class:"borderimg"},v6e={class:"footerbtn flex1"},p6e={class:"borderimg"},g6e={__name:"MenuMine",setup(t,{expose:e}){let n=z(),r=z(!1),a=z([]);z("Fire");let i=z(70),o=z(100);const s=z("first");let l=z(570),u=z(1),c=z(""),f=z([{label:"CIRCULAR",value:"CIRCULAR"},{label:"RECTANGLE",value:"RECTANGLE"}]);const d=z(1),h=z(5);let p=z(!1),v=z(!1),g=z({adddialog:!1,dialogsgdelect:!1,gdadddialog:!1,guddialogsgdelect:!1}),y=z(""),m=z(),b=z(""),_=z("添加"),x=z({}),w=z({}),C=z({name:"",x:"",y:"",z:""}),T=z({pid:"",name:"",snId:Number,enId:Number,roughCoe:"",sectionType:"CIRCULAR",sectionPara1:"",sectionPara2:"",sectionPara3:"",sectionPara4:"",sectionPara5:""}),k=z({total:1,currentPage4:1,pageSize4:5});const E=({row:ue,rowIndex:X})=>X%2!=0?"evenRow":"oddRow";ht(()=>{A()});const M=(ue,X)=>{switch(ue.props.name){case"first":A();break;case"second":j();break}},D=ue=>{A()},R=ue=>{j()},A=()=>{const ue={transCode:"D00000",count:h.value,page:d.value,searchtag:c.value};Cr(ue).then(X=>{a.value=X.rows,u.value=X.total}).catch(X=>{ln.error(X.returnMsg)})},V=()=>{_.value="添加",p.value=!1,g.value.adddialog=!0,C.value.name="",C.value.x="",C.value.y="",C.value.z="",C.value.nid=""},P=()=>{if(C.value.name==null)ln.error("名称不能为空");else if(C.value.x==null)ln.error("X不能为空");else if(C.value.y==null)ln.error("Y不能为空");else if(C.value.z==null)ln.error("Z不能为空");else{const ue={transCode:"D10000",nid:C.value.nid,name:C.value.name,x:C.value.x,y:C.value.y,z:C.value.z,desc:"",ntype:"mid"};Cr(ue).then(X=>{g.value.adddialog=!1,A(),ln({message:X.returnMsg,type:"success"})}).catch(X=>{ln.error(X.returnMsg)})}},N=ue=>{p.value=!0,x.value=ue},I=ue=>{v.value=!0,w.value=ue},L=()=>{console.log(x.value),JSON.stringify(x.value)=="{}"?ln.error("你还没有选中修改的项目"):(g.value.dialogsgdelect=!0,b.value=x.value.name)},$=()=>{const ue={transCode:"D10001",nid:x.value.id};Cr(ue).then(X=>{A(),ln({message:X.returnMsg,type:"success"})}).catch(X=>{ln.error(X.returnMsg)})},U=()=>{JSON.stringify(x.value)=="{}"?ln.error("你还没有选中修改的项目"):(_.value="修改",g.value.adddialog=!0,C.value.name=x.value.name,C.value.x=x.value.x,C.value.y=x.value.y,C.value.z=x.value.z,C.value.nid=x.value.id)},j=()=>{const ue={transCode:"D00001",count:k.value.pageSize4,page:k.value.currentPage4,searchtag:""};Cr(ue).then(X=>{m.value=X.rows,k.value.total=X.total}).catch(X=>{ln.error(X.returnMsg)})},Y=ue=>{console.log(111),n.value.searchtaggd="",n.value.dialogVisiblenode=!0,n.value.pipelinedata(""),y.value=ue},oe=ue=>{y.value=="start"?T.value.snId=ue.id:T.value.enId=ue.id},te=()=>{g.value.gdadddialog=!0,v.value=!1,T.value.pid="",T.value.name="",T.value.snId="",T.value.enId="",T.value.roughCoe="",T.value.sectionType="CIRCULAR",T.value.sectionPara1="",T.value.sectionPara2="",T.value.sectionPara3="",T.value.sectionPara4="",T.value.sectionPara5=""},re=()=>{if(T.value.snId{g.value.gdadddialog=!1,ln({message:X.returnMsg,type:"success"}),j()}).catch(X=>{ln.error(X.returnMsg)})}else ln.error("结束节点要大于开始节点")},ne=()=>{console.log(w.value),JSON.stringify(w.value)=="{}"?ln.error("你还没有选中修改的项目"):(g.value.guddialogsgdelect=!0,b.value=w.value.name)},J=()=>{const ue={transCode:"D10003",pid:w.value.id};Cr(ue).then(X=>{j(),ln({message:X.returnMsg,type:"success"})}).catch(X=>{ln.error(X.returnMsg)})},he=()=>{JSON.stringify(w.value)=="{}"?ln.error("你还没有选中修改的项目"):(_.value="修改",g.value.gdadddialog=!0,T.value.pid=w.value.id,T.value.name=w.value.name,T.value.snId=w.value.snId,T.value.enId=w.value.enId,T.value.roughCoe=w.value.roughCoe,T.value.sectionType=w.value.sectionType,T.value.sectionPara1=w.value.sectionPara1,T.value.sectionPara2=w.value.sectionPara2,T.value.sectionPara3=w.value.sectionPara3,T.value.sectionPara4=w.value.sectionPara4,T.value.sectionPara5=w.value.sectionPara5)};return e({dialogVisible:r}),(ue,X)=>{const K=Ge("el-image"),ee=Ge("el-table-column"),se=Ge("el-table"),ye=Ge("el-pagination"),we=Ge("el-tab-pane"),be=Ge("el-tabs"),Me=Ge("el-input"),Se=Ge("el-form-item"),xe=Ge("el-form"),ke=Ge("el-option");return B(),q("div",Z5e,[H(S(Br),{modelValue:S(r),"onUpdate:modelValue":X[15]||(X[15]=ge=>pt(r)?r.value=ge:r=ge),width:"480","align-center":"",modal:!1,"close-on-click-modal":!1,draggable:"",fullscreen:!1,"modal-append-to-body":!1,"modal-class":"summary-dlg",class:"dialog_class bgcolor zhucentent"},{header:Z(({titleId:ge,titleClass:Ve})=>[G("div",Q5e,[H(K,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:ge,class:F(Ve)},"矿井信息",10,J5e)])]),default:Z(()=>[G("div",eze,[H(be,{modelValue:s.value,"onUpdate:modelValue":X[14]||(X[14]=ge=>s.value=ge),type:"card",class:"demo-tabs",onTabClick:M,stretch:!0},{default:Z(()=>[H(we,{label:"节点信息",name:"first"},{default:Z(()=>[G("div",tze,[G("div",nze,[G("div",rze,[G("div",aze,[H(se,{data:S(a),style:{width:"480px"},"max-height":S(l),"highlight-current-row":S(p),"row-class-name":E,onRowClick:X[0]||(X[0]=ge=>N(ge)),"header-cell-style":{background:"rgba(13, 22, 57, 0.9) "}},{default:Z(()=>[H(ee,{type:"index",label:"节点编号",width:"80px"}),H(ee,{prop:"name",label:"节点名称"}),H(ee,{prop:"x",label:"X"}),H(ee,{prop:"y",label:"Y"}),H(ee,{prop:"z",label:"Z"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"]),G("div",ize,[H(ye,{"current-page":d.value,"onUpdate:currentPage":X[1]||(X[1]=ge=>d.value=ge),"page-size":h.value,"onUpdate:pageSize":X[2]||(X[2]=ge=>h.value=ge),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(S(u)),class:"mt-4",onCurrentChange:D},null,8,["current-page","page-size","total"])])])]),G("div",oze,[G("div",sze,[G("div",lze,[H(S(St),{onClick:X[3]||(X[3]=ge=>{V()})},{default:Z(()=>[Qe("添加")]),_:1})])]),G("div",uze,[G("div",cze,[H(S(St),{onClick:X[4]||(X[4]=ge=>L())},{default:Z(()=>[Qe(" 删除 ")]),_:1})])]),G("div",fze,[G("div",dze,[H(S(St),{onClick:X[5]||(X[5]=ge=>U())},{default:Z(()=>[Qe(" 修改 ")]),_:1})])]),G("div",hze,[G("div",vze,[H(S(St),{onClick:X[6]||(X[6]=ge=>{pt(r)?r.value=!1:r=!1,pt(p)?p.value=!1:p=!1})},{default:Z(()=>[Qe(" 确认 ")]),_:1})])])])])])]),_:1}),H(we,{label:"巷道信息",name:"second"},{default:Z(()=>[G("div",pze,[G("div",gze,[G("div",yze,[G("div",mze,[H(se,{"row-class-name":E,"max-height":S(l),ref:"multipleTableRef","highlight-current-row":S(v),onRowClick:X[7]||(X[7]=ge=>I(ge)),data:S(m),style:{width:"100%"},"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:Z(()=>[H(ee,{property:"snId",label:"开始节点"}),H(ee,{property:"enId",label:"结束节点"}),H(ee,{property:"id",label:"编号",width:"70"}),H(ee,{property:"name",label:"名称",width:"70"}),H(ee,{property:"sectionType",label:"截面类型",width:"120"}),H(ee,{property:"roughCoe",label:"粗糙系数"}),H(ee,{property:"sectionPara1",label:"截面参数1",width:"90"}),H(ee,{property:"sectionPara2",label:"截面参数2",width:"90"}),H(ee,{property:"sectionPara3",label:"截面参数3",width:"90"}),H(ee,{property:"sectionPara4",label:"截面参数4",width:"90"}),H(ee,{property:"sectionPara5",label:"截面参数5",width:"90"})]),_:1},8,["max-height","highlight-current-row","data","header-cell-style"]),G("div",bze,[H(ye,{"current-page":S(k).currentPage4,"onUpdate:currentPage":X[8]||(X[8]=ge=>S(k).currentPage4=ge),"page-size":S(k).pageSize4,"onUpdate:pageSize":X[9]||(X[9]=ge=>S(k).pageSize4=ge),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(S(k).total),class:"mt-4",onCurrentChange:R},null,8,["current-page","page-size","total"])])])]),G("div",Sze,[G("div",_ze,[G("div",wze,[H(S(St),{onClick:X[10]||(X[10]=ge=>{te()})},{default:Z(()=>[Qe("添加")]),_:1})])]),G("div",xze,[G("div",Cze,[H(S(St),{onClick:X[11]||(X[11]=ge=>{ne()})},{default:Z(()=>[Qe(" 删除 ")]),_:1})])]),G("div",Tze,[G("div",Eze,[H(S(St),{onClick:X[12]||(X[12]=ge=>he())},{default:Z(()=>[Qe(" 修改 ")]),_:1})])]),G("div",Mze,[G("div",kze,[H(S(St),{onClick:X[13]||(X[13]=ge=>{pt(r)?r.value=!1:r=!1,pt(v)?v.value=!1:v=!1})},{default:Z(()=>[Qe(" 确认 ")]),_:1})])])])])])]),_:1}),H(we,{label:"设备信息",name:"third"}),H(we,{label:"网络信息",name:"thirds"})]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"]),H(S(Br),{modelValue:S(g).adddialog,"onUpdate:modelValue":X[22]||(X[22]=ge=>S(g).adddialog=ge),width:"480",class:"dialog_class bgcolor tianjia"},{header:Z(({titleId:ge,titleClass:Ve})=>[G("div",Dze,[H(K,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:ge,class:F(Ve)},Ae(S(_)),11,Rze)])]),default:Z(()=>[G("div",null,[H(xe,null,{default:Z(()=>[H(Se,{label:"名称","label-width":S(i)},{default:Z(()=>[H(Me,{modelValue:S(C).name,"onUpdate:modelValue":X[16]||(X[16]=ge=>S(C).name=ge),maxlength:"18",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Se,{label:"X","label-width":S(i)},{default:Z(()=>[H(Me,{modelValue:S(C).x,"onUpdate:modelValue":X[17]||(X[17]=ge=>S(C).x=ge),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Se,{label:"Y","label-width":S(i)},{default:Z(()=>[H(Me,{modelValue:S(C).y,"onUpdate:modelValue":X[18]||(X[18]=ge=>S(C).y=ge),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Se,{label:"Z","label-width":S(i)},{default:Z(()=>[H(Me,{modelValue:S(C).z,"onUpdate:modelValue":X[19]||(X[19]=ge=>S(C).z=ge),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1})]),G("div",Lze,[G("div",Aze,[G("div",Oze,[H(S(St),{onClick:X[20]||(X[20]=ge=>S(g).adddialog=!1)},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",Nze,[G("div",$ze,[H(S(St),{onClick:X[21]||(X[21]=ge=>P())},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Br),{modelValue:S(g).dialogsgdelect,"onUpdate:modelValue":X[25]||(X[25]=ge=>S(g).dialogsgdelect=ge),width:"400",class:"dialog_class bgcolor tianjia"},{header:Z(({titleId:ge,titleClass:Ve})=>[G("div",Ize,[H(K,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:ge,class:F(Ve)},"删除框",10,Bze)])]),default:Z(()=>[G("h4",Vze,[Qe(" 是否确认删除 "),G("span",Pze,Ae(S(b)),1)]),G("div",Fze,[G("div",zze,[G("div",Gze,[H(S(St),{onClick:X[23]||(X[23]=ge=>S(g).dialogsgdelect=!1)},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",Hze,[G("div",Uze,[H(S(St),{onClick:X[24]||(X[24]=ge=>{$(),S(g).dialogsgdelect=!1})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Br),{modelValue:S(g).gdadddialog,"onUpdate:modelValue":X[40]||(X[40]=ge=>S(g).gdadddialog=ge),width:"480",class:"dialog_class bgcolor tianjia"},{header:Z(({titleId:ge,titleClass:Ve})=>[G("div",Wze,[H(K,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:ge,class:F(Ve)},Ae(S(_)),11,jze)])]),default:Z(()=>[G("div",null,[H(Se,{label:"名称","label-width":S(o)},{default:Z(()=>[H(Me,{modelValue:S(T).name,"onUpdate:modelValue":X[26]||(X[26]=ge=>S(T).name=ge),oninput:"value=value.replace(/[^\\w_]/g,'');",maxlength:"18",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),G("div",Kze,[H(Se,{label:"开始节点","label-width":S(o)},{default:Z(()=>[H(Me,{modelValue:S(T).snId,"onUpdate:modelValue":X[27]||(X[27]=ge=>S(T).snId=ge),disabled:"",class:"w-50 m-2",oninput:"value=value.replace(/[^0-9.]/g,'')",placeholder:"请选择节点"},null,8,["modelValue"])]),_:1},8,["label-width"]),G("div",Yze,[H(S(St),{type:"primary",onClick:X[28]||(X[28]=ge=>{Y("start")})},{default:Z(()=>[Qe("选择开始节点")]),_:1})])]),G("div",Xze,[H(Se,{label:"结束节点","label-width":S(o)},{default:Z(()=>[H(Me,{modelValue:S(T).enId,"onUpdate:modelValue":X[29]||(X[29]=ge=>S(T).enId=ge),disabled:"disabled",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请选择节点"},null,8,["modelValue"])]),_:1},8,["label-width"]),G("div",qze,[H(S(St),{type:"primary",onClick:X[30]||(X[30]=ge=>{Y("end")})},{default:Z(()=>[Qe("选择结束节点")]),_:1})])]),H(Se,{label:"粗糙系数","label-width":S(o)},{default:Z(()=>[H(Me,{modelValue:S(T).roughCoe,"onUpdate:modelValue":X[31]||(X[31]=ge=>S(T).roughCoe=ge),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),G("div",Zze,[H(Se,{label:"截面类型","label-width":S(o)},{default:Z(()=>[H(S(ju),{modelValue:S(T).sectionType,"onUpdate:modelValue":X[32]||(X[32]=ge=>S(T).sectionType=ge),placeholder:"请选择"},{default:Z(()=>[(B(!0),q(Ze,null,Pt(S(f),ge=>(B(),de(ke,{key:ge.id,label:ge.label,value:ge.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),G("div",Qze,[S(T).sectionType=="CIRCULAR"?(B(),q("div",Jze,[H(K,{src:S($5e),fit:"contain"},null,8,["src"])])):S(T).sectionType=="RECTANGLE"?(B(),q("div",e6e,[H(K,{src:S(N5e),fit:"contain"},null,8,["src"])])):(B(),q("div",t6e,[H(K,{src:S(O5e),fit:"contain"},null,8,["src"])]))])]),_:1},8,["label-width"])]),H(Se,{label:"截面参数1","label-width":S(o)},{default:Z(()=>[H(Me,{modelValue:S(T).sectionPara1,"onUpdate:modelValue":X[33]||(X[33]=ge=>S(T).sectionPara1=ge),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Se,{label:"截面参数2","label-width":S(o)},{default:Z(()=>[H(Me,{modelValue:S(T).sectionPara2,"onUpdate:modelValue":X[34]||(X[34]=ge=>S(T).sectionPara2=ge),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Se,{label:"截面参数3","label-width":S(o)},{default:Z(()=>[H(Me,{modelValue:S(T).sectionPara3,"onUpdate:modelValue":X[35]||(X[35]=ge=>S(T).sectionPara3=ge),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Se,{label:"截面参数4","label-width":S(o)},{default:Z(()=>[H(Me,{modelValue:S(T).sectionPara4,"onUpdate:modelValue":X[36]||(X[36]=ge=>S(T).sectionPara4=ge),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(Se,{label:"截面参数5","label-width":S(o)},{default:Z(()=>[H(Me,{modelValue:S(T).sectionPara5,"onUpdate:modelValue":X[37]||(X[37]=ge=>S(T).sectionPara5=ge),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),G("div",n6e,[G("div",r6e,[G("div",a6e,[H(S(St),{onClick:X[38]||(X[38]=ge=>S(g).gdadddialog=!1)},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",i6e,[G("div",o6e,[H(S(St),{onClick:X[39]||(X[39]=ge=>{re()})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Br),{modelValue:S(g).guddialogsgdelect,"onUpdate:modelValue":X[43]||(X[43]=ge=>S(g).guddialogsgdelect=ge),width:"400",class:"dialog_class bgcolor tianjia"},{header:Z(({titleId:ge,titleClass:Ve})=>[G("div",s6e,[H(K,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:ge,class:F(Ve)},"删除框",10,l6e)])]),default:Z(()=>[G("h4",u6e,[Qe(" 是否确认删除 "),G("span",c6e,Ae(S(b)),1)]),G("div",f6e,[G("div",d6e,[G("div",h6e,[H(S(St),{onClick:X[41]||(X[41]=ge=>S(g).guddialogsgdelect=!1)},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",v6e,[G("div",p6e,[H(S(St),{onClick:X[42]||(X[42]=ge=>{J(),S(g).guddialogsgdelect=!1})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(q5e,{ref_key:"nodeselect",ref:n,onQueding:oe},null,512)])}}},y6e=yd(g6e,[["__scopeId","data-v-aaa73cd1"]]);const m6e=t=>(xw("data-v-e6673ff2"),t=t(),Cw(),t),b6e={class:"my-header"},S6e=["id"],_6e={class:"demo-input-suffix firsttitle leftbgimg2 my_content1"},w6e={class:"guand_1"},x6e=m6e(()=>G("span",{class:"spantext"},"搜索",-1)),C6e=[x6e],T6e={class:"demo-pagination-block",style:{"margin-top":"20px"}},E6e={class:"dialog-footer footer_div l_btn"},M6e={class:"footerbtn flex1"},k6e={class:"borderimg"},D6e={class:"footerbtn flex1"},R6e={class:"borderimg"},L6e={__name:"PipeIine",props:{},emits:["pipelineapi"],setup(t,{expose:e,emit:n}){z({dianadddialog:!1});let r=z(99),a=z(500),i=z([]);const o=z(),s=z([]);let l=z(!1),u=z(1),c=z(""),f=z("");const d=z(1),h=z(5);ht(()=>{});const p=({row:x,rowIndex:w})=>w%2!=0?"evenRow":"oddRow";function v(){f.value=c.value,y(c.value)}const g=x=>{y()},y=x=>{const w={transCode:"D00001",count:h.value,page:d.value,searchtag:x};Cr(w).then(C=>{i.value=C.rows,u.value=C.total}).catch(C=>{ln.error(C.returnMsg)})},m=(x,w)=>{if(x.length>1){o.value.clearSelection(),o.value.toggleRowSelection(w,!0),s.value=x[1];return}x.length==1?s.value=x:x.length==0},b=()=>{n("pipelineapi",""),d.value=1,s.value.length!=0&&n("pipelineapi",s.value[0])},_=()=>{b()};return e({dialogVisiblenode:l,pipelinedata:y,searchtaggd:c}),(x,w)=>{const C=Ge("el-image"),T=Ge("el-input"),k=Ge("el-form-item"),E=Ge("el-table-column"),M=Ge("el-table"),D=Ge("el-pagination");return B(),q("div",null,[H(S(Br),{modelValue:S(l),"onUpdate:modelValue":w[5]||(w[5]=R=>pt(l)?l.value=R:l=R),width:"700",class:"log_class bgcolor tianjia asideg asidegbg leftbgimg"},{header:Z(({titleId:R,titleClass:A})=>[G("div",b6e,[H(C,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:R,class:F(A)}," 选择巷道",10,S6e)])]),default:Z(()=>[G("div",_6e,[G("div",w6e,[H(k,{label:"节点选择","label-width":S(r)},{default:Z(()=>[H(T,{modelValue:S(c),"onUpdate:modelValue":w[0]||(w[0]=R=>pt(c)?c.value=R:c=R),class:"w-50 m-2",placeholder:"巷道"},null,8,["modelValue"])]),_:1},8,["label-width"]),G("div",{class:"asdis_btn"},[G("div",{class:"flex_a"},[G("div",{class:"btns",onClick:v},C6e)])])]),H(M,{"row-class-name":p,"max-height":S(a),ref_key:"multipleTableRef",ref:o,data:S(i),style:{width:"100%"},onSelect:m,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:Z(()=>[H(E,{type:"selection",width:"55"}),H(E,{property:"snId",label:"开始节点"}),H(E,{property:"enId",label:"结束节点"}),H(E,{property:"id",label:"编号",width:"70"}),H(E,{property:"name",label:"名称",width:"70"}),H(E,{property:"sectionType",label:"截面类型",width:"120"}),H(E,{property:"roughCoe",label:"粗糙系数"}),H(E,{property:"sectionPara1",label:"截面参数1",width:"90"}),H(E,{property:"sectionPara2",label:"截面参数2",width:"90"}),H(E,{property:"sectionPara3",label:"截面参数3",width:"90"}),H(E,{property:"sectionPara4",label:"截面参数4",width:"90"}),H(E,{property:"sectionPara5",label:"截面参数5",width:"90"})]),_:1},8,["max-height","data","header-cell-style"]),G("div",T6e,[H(D,{"current-page":d.value,"onUpdate:currentPage":w[1]||(w[1]=R=>d.value=R),"page-size":h.value,"onUpdate:pageSize":w[2]||(w[2]=R=>h.value=R),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(S(u)),class:"mt-4",onCurrentChange:g},null,8,["current-page","page-size","total"])]),G("div",E6e,[G("div",M6e,[G("div",k6e,[H(S(St),{onClick:w[3]||(w[3]=R=>pt(l)?l.value=!1:l=!1)},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",D6e,[G("div",R6e,[H(S(St),{onClick:w[4]||(w[4]=R=>{_(),pt(l)?l.value=!1:l=!1})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])])]),_:1},8,["modelValue"])])}}},A6e=yd(L6e,[["__scopeId","data-v-e6673ff2"]]);const O6e={class:"l_Dialog"},N6e={class:"my-header xinxi_header"},$6e=["id"],I6e={class:"classtab"},B6e={class:"asides_content"},V6e={class:"jc_content tablecolor jc_content"},P6e={class:"font12 my_content1"},F6e={class:"btncolor tablefocus bmar"},z6e={class:"dialog-footer footer_div l_btn"},G6e={class:"footerbtn flex1"},H6e={class:"borderimg"},U6e={class:"footerbtn flex1"},W6e={class:"borderimg"},j6e={class:"footerbtn flex1"},K6e={class:"borderimg"},Y6e={class:"footerbtn flex1"},X6e={class:"borderimg"},q6e={class:"my-header"},Z6e=["id"],Q6e={class:"demo-input-suffix firsttitle magintop guand_1"},J6e={class:"btn2"},e8e={class:"input"},t8e={class:"dialog-footer footer_div l_btn"},n8e={class:"footerbtn flex1"},r8e={class:"borderimg"},a8e={class:"footerbtn flex1"},i8e={class:"borderimg"},o8e={class:"my-header"},s8e=["id"],l8e={class:"delecttitle"},u8e={class:"spanclad"},c8e={class:"dialog-footer footer_div l_btn"},f8e={class:"footerbtn flex1"},d8e={class:"borderimg"},h8e={class:"footerbtn flex1"},v8e={class:"borderimg"},p8e={__name:"MenuSensor",setup(t,{expose:e}){let n=z(),r=z(!0),a=z(!1),i=z(!1),o=z(!1);z("Fire");const s=z(100);let l=z("");z("first");let u=z(400),c=z([]),f=z({}),d=z(),h=z({pid:0,seid:0,site:0,type:"温度传感器",senobj:""}),p=z({selectstr:"",site:""});z("");const v=({row:k,rowIndex:E})=>E%2!=0?"evenRow":"oddRow",g=k=>{f.value=k,r.value=!0},y=()=>{JSON.stringify(f.value)=="{}"?ln.error("你还没有选中修改的项目"):(o.value=!0,d.value=f.value.type)},m=()=>{const k={transCode:"D10012",seid:f.value.seid};Cr(k).then(E=>{b()}).catch(E=>{ln.error(E.returnMsg)})};ht(()=>{b()});const b=()=>{Cr({transCode:"D10010",type:"Fire"}).then(E=>{c.value=E.rows}).catch(E=>{ln.error(E.returnMsg)})},_=()=>{l.value="添加",r.value=!1,i.value=!0,h.value.seid="",h.value.pid="",h.value.type="",h.value.site=0,p.value.selectstr=""},x=()=>{const k={transCode:"D10011",seid:h.value.seid,pid:h.value.pid,site:h.value.site,type:h.value.type};Cr(k).then(E=>{c.value=E.rows,b()}).catch(E=>{ln.error(E.returnMsg)})},w=()=>{l.value="修改",JSON.stringify(f.value)=="{}"?ln.error("你还没有选中修改的项目"):(h.value.seid=f.value.seid,h.value.pid=f.value.pid,h.value.site=f.value.site,h.value.type=f.value.type,p.value.selectstr=f.value.pname,i.value=!0)},C=()=>{n.value.searchtaggd="",n.value.dialogVisiblenode=!0,n.value.pipelinedata("")},T=k=>{h.value.pid=k.id,p.value.selectstr=k.name,f.value.pid=k.id};return e({sendialogVisible:a}),(k,E)=>{const M=Ge("el-image"),D=Ge("el-table-column"),R=Ge("el-table"),A=Ge("el-input"),V=Ge("el-form-item"),P=Ge("el-input-number"),N=Ge("el-form");return B(),q("div",O6e,[H(S(Br),{modelValue:S(a),"onUpdate:modelValue":E[5]||(E[5]=I=>pt(a)?a.value=I:a=I),width:"470","align-center":"",modal:!1,"close-on-click-modal":!1,"modal-class":"summary-dlg",draggable:"",class:"dialog_class bgcolor zhucentent chuanjianc"},{header:Z(({titleId:I,titleClass:L})=>[G("div",N6e,[H(M,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:I,class:F(L)},"传感器信息",10,$6e)])]),default:Z(()=>[G("div",I6e,[G("div",B6e,[G("div",V6e,[G("div",P6e,[G("div",F6e,[H(R,{data:S(c),style:{width:"480px"},"max-height":S(u),"highlight-current-row":S(r),"row-class-name":v,onRowClick:E[0]||(E[0]=I=>g(I)),"header-cell-style":{background:"rgba(13, 22, 57, 0.9) "}},{default:Z(()=>[H(D,{type:"index",label:"编号"}),H(D,{prop:"type",label:"类型"}),H(D,{prop:"pname",label:"所在巷道"}),H(D,{prop:"site",label:"位置"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),G("div",z6e,[G("div",G6e,[G("div",H6e,[H(S(St),{onClick:E[1]||(E[1]=I=>{_()})},{default:Z(()=>[Qe("添加")]),_:1})])]),G("div",U6e,[G("div",W6e,[H(S(St),{onClick:E[2]||(E[2]=I=>y())},{default:Z(()=>[Qe(" 删除 ")]),_:1})])]),G("div",j6e,[G("div",K6e,[H(S(St),{onClick:E[3]||(E[3]=I=>w())},{default:Z(()=>[Qe(" 修改 ")]),_:1})])]),G("div",Y6e,[G("div",X6e,[H(S(St),{onClick:E[4]||(E[4]=I=>{pt(a)?a.value=!1:a=!1,pt(r)?r.value=!1:r=!1})},{default:Z(()=>[Qe(" 确认 ")]),_:1})])])])])])])]),_:1},8,["modelValue"]),H(S(Br),{modelValue:S(i),"onUpdate:modelValue":E[12]||(E[12]=I=>pt(i)?i.value=I:i=I),width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:Z(({titleId:I,titleClass:L})=>[G("div",q6e,[H(M,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:I,class:F(L)},Ae(S(l)),11,Z6e)])]),default:Z(()=>[H(N,{class:"demo-form-inline",inline:!0,model:S(h)},{default:Z(()=>[H(V,{label:"类型","label-width":s.value},{default:Z(()=>[H(A,{modelValue:S(h).type,"onUpdate:modelValue":E[6]||(E[6]=I=>S(h).type=I),maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),G("div",Q6e,[H(V,{label:"巷道名称","label-width":s.value},{default:Z(()=>[H(A,{modelValue:S(p).selectstr,"onUpdate:modelValue":E[7]||(E[7]=I=>S(p).selectstr=I),disabled:"",class:"w-50 m-2",placeholder:"巷道名称"},null,8,["modelValue"])]),_:1},8,["label-width"]),G("div",J6e,[H(S(St),{type:"primary",onClick:E[8]||(E[8]=I=>{C()})},{default:Z(()=>[Qe("选择巷道")]),_:1})])]),G("div",e8e,[H(V,{label:"位置","label-width":s.value},{default:Z(()=>[H(P,{modelValue:S(h).site,"onUpdate:modelValue":E[9]||(E[9]=I=>S(h).site=I),min:0,max:1,precision:2,step:.1,"controls-position":"right",class:"w-50 m-2",placeholder:"位置"},null,8,["modelValue"])]),_:1},8,["label-width"])])]),_:1},8,["model"]),G("div",t8e,[G("div",n8e,[G("div",r8e,[H(S(St),{onClick:E[10]||(E[10]=I=>pt(i)?i.value=!1:i=!1)},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",a8e,[G("div",i8e,[H(S(St),{onClick:E[11]||(E[11]=I=>{x(),pt(i)?i.value=!1:i=!1})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Br),{modelValue:S(o),"onUpdate:modelValue":E[15]||(E[15]=I=>pt(o)?o.value=I:o=I),width:"400",class:"dialog_class bgcolor tianjia"},{header:Z(({titleId:I,titleClass:L})=>[G("div",o8e,[H(M,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:I,class:F(L)},"删除框",10,s8e)])]),default:Z(()=>[G("h4",l8e,[Qe(" 是否确认删除类型: "),G("span",u8e,Ae(S(d)),1)]),G("div",c8e,[G("div",f8e,[G("div",d8e,[H(S(St),{onClick:E[13]||(E[13]=I=>pt(o)?o.value=!1:o=!1)},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",h8e,[G("div",v8e,[H(S(St),{onClick:E[14]||(E[14]=I=>{m(),pt(o)?o.value=!1:o=!1})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(A6e,{ref_key:"pipeline",ref:n,selectstr:S(p).selectstr,onPipelineapi:T},null,8,["selectstr"])])}}},g8e=yd(p8e,[["__scopeId","data-v-9e380db0"]]);const y8e=t=>(xw("data-v-9e03d1f7"),t=t(),Cw(),t),m8e={class:"l_Dialog"},b8e={class:"my-header xinxi_header"},S8e=["id"],_8e={class:"classtab"},w8e={class:"asides_content"},x8e={class:"jc_content tablecolor jc_content"},C8e={class:"font12 my_content1"},T8e={class:"btncolor tablefocus bmar"},E8e={class:"dialog-footer footer_div l_btn"},M8e={class:"footerbtn flex1"},k8e={class:"borderimg"},D8e={class:"footerbtn flex1"},R8e={class:"borderimg"},L8e={class:"footerbtn flex1"},A8e={class:"borderimg"},O8e={class:"footerbtn flex1"},N8e={class:"borderimg"},$8e={class:"my-header"},I8e=["id"],B8e={class:"delecttitle"},V8e={class:"spanclad"},P8e={class:"dialog-footer footer_div l_btn"},F8e={class:"footerbtn flex1"},z8e={class:"borderimg"},G8e={class:"footerbtn flex1"},H8e={class:"borderimg"},U8e={class:"my-header"},W8e=["id"],j8e={class:"demo-input-suffix firsttitle magintop guand_1"},K8e={class:"btn2"},Y8e={class:"input"},X8e={class:"dialog-footer footer_div l_btn"},q8e={class:"footerbtn flex1"},Z8e={class:"borderimg"},Q8e={class:"footerbtn flex1"},J8e={class:"borderimg"},eGe={class:"my-header"},tGe=["id"],nGe={class:"demo-input-suffix firsttitle leftbgimg2 my_content1"},rGe={class:"guand_1"},aGe=y8e(()=>G("span",{class:"spantext"},"搜索",-1)),iGe=[aGe],oGe={class:"demo-pagination-block",style:{"margin-top":"20px"}},sGe={class:"dialog-footer footer_div l_btn"},lGe={class:"footerbtn flex1"},uGe={class:"borderimg"},cGe={class:"footerbtn flex1"},fGe={class:"borderimg"},dGe={__name:"MenuCheck",setup(t,{expose:e}){let n=z(!1),r=z(!0),a=z(!1),i=z(!1);z("Fire"),z(100);const o=z(90),s=z(),l=z([]);let u=z(""),c=z([]),f=z({dianadddialog:!1,dialogVisiblenode:!1}),d=z(1),h=z("");const p=z(1),v=z(5);let g=z(""),y=z({selectstr:"",site:"",chname:""}),m=z("");z("first");let b=z(400),_=z([]),x=z({}),w=z();z({pid:0,seid:0,site:0,type:"温度传感器"});const C=({row:j,rowIndex:Y})=>Y%2!=0?"evenRow":"oddRow",T=j=>{r.value=!0,x.value=j,g.value=j.cid,console.log(x.value)},k=()=>{JSON.stringify(x.value)=="{}"?ln.error("你还没有选中修改的项目"):(w.value=x.value.pname,i.value=!0)},E=()=>{const j={transCode:"D10006",cid:g.value};Cr(j).then(Y=>{M()}).catch(Y=>{ln.error(Y.returnMsg)})};ht(()=>{M()});const M=()=>{Cr({transCode:"D10004"}).then(Y=>{_.value=Y.rows}).catch(Y=>{ln.error(Y.returnMsg)})},D=()=>{u.value="添加",a.value=!0,r.value=!1,y.value.selectstr="",y.value.site="",m.value="",g.value="",x.value=[]},R=()=>{const j={transCode:"D10005",cid:g.value,pid:m.value,site:y.value.site,chname:y.value.chname};Cr(j).then(Y=>{f.value.dianadddialog=!1,ln({message:Y.returnMsg,type:"success"}),_.value=Y.rows,M()}).catch(Y=>{ln.error(Y.returnMsg)})},A=()=>{u.value="修改",JSON.stringify(x.value)=="{}"?ln.error("你还没有选中修改的项目"):(f.value.dianadddialog=!0,g.value=x.value.cid,y.value.chname=x.value.chname,y.value.site=x.value.site,y.value.selectstr=x.value.pname,m.value=x.value.pid)},V=()=>{h.value="",I("")};function P(){I(h.value)}const N=j=>{I(h.value)},I=j=>{const Y={transCode:"D00001",count:v.value,page:p.value,searchtag:j};Cr(Y).then(oe=>{c.value=oe.rows,d.value=oe.total}).catch(oe=>{ln.error(oe.returnMsg)})},L=(j,Y)=>{if(j.length>1){s.value.clearSelection(),s.value.toggleRowSelection(Y,!0),l.value=j[1];return}j.length==1?l.value=j:j.length==0},$=()=>{y.value.selectstr="",p.value=1,console.log(),l.value.length!=0&&(m.value=l.value[0].id,y.value.selectstr=l.value[0].name,console.log(l.value[0]))},U=()=>{$()};return e({sendialogVisible:n}),(j,Y)=>{const oe=Ge("el-image"),te=Ge("el-table-column"),re=Ge("el-table"),ne=Ge("el-input"),J=Ge("el-form-item"),he=Ge("el-input-number"),ue=Ge("el-pagination");return B(),q("div",m8e,[H(S(Br),{modelValue:S(n),"onUpdate:modelValue":Y[5]||(Y[5]=X=>pt(n)?n.value=X:n=X),width:"470","align-center":"",modal:!1,"close-on-click-modal":!1,"modal-class":"summary-dlg",draggable:"",class:"dialog_class bgcolor zhucentent chuanjianc"},{header:Z(({titleId:X,titleClass:K})=>[G("div",b8e,[H(oe,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:X,class:F(K)},"监测点信息",10,S8e)])]),default:Z(()=>[G("div",_8e,[G("div",w8e,[G("div",x8e,[G("div",C8e,[G("div",T8e,[H(re,{data:S(_),style:{width:"480px"},"max-height":S(b),"highlight-current-row":S(r),"row-class-name":C,onRowClick:Y[0]||(Y[0]=X=>T(X)),"header-cell-style":{background:"rgba(13, 22, 57, 0.9) "}},{default:Z(()=>[H(te,{type:"index",label:"编号"}),H(te,{prop:"chname",label:"所在巷道"}),H(te,{prop:"pname",label:"所在巷道"}),H(te,{prop:"site",label:"位置"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),G("div",E8e,[G("div",M8e,[G("div",k8e,[H(S(St),{onClick:Y[1]||(Y[1]=X=>{D(),S(f).dianadddialog=!0})},{default:Z(()=>[Qe("添加")]),_:1})])]),G("div",D8e,[G("div",R8e,[H(S(St),{onClick:Y[2]||(Y[2]=X=>k())},{default:Z(()=>[Qe(" 删除 ")]),_:1})])]),G("div",L8e,[G("div",A8e,[H(S(St),{onClick:Y[3]||(Y[3]=X=>A())},{default:Z(()=>[Qe(" 修改 ")]),_:1})])]),G("div",O8e,[G("div",N8e,[H(S(St),{onClick:Y[4]||(Y[4]=X=>{pt(n)?n.value=!1:n=!1,pt(r)?r.value=!1:r=!1})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])])])])]),_:1},8,["modelValue"]),H(S(Br),{modelValue:S(i),"onUpdate:modelValue":Y[8]||(Y[8]=X=>pt(i)?i.value=X:i=X),width:"400",class:"dialog_class bgcolor tianjia"},{header:Z(({titleId:X,titleClass:K})=>[G("div",$8e,[H(oe,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:X,class:F(K)},"删除框",10,I8e)])]),default:Z(()=>[G("h4",B8e,[Qe(" 是否确认删除 "),G("span",V8e,"巷道"+Ae(S(w)),1)]),G("div",P8e,[G("div",F8e,[G("div",z8e,[H(S(St),{onClick:Y[6]||(Y[6]=X=>pt(i)?i.value=!1:i=!1)},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",G8e,[G("div",H8e,[H(S(St),{onClick:Y[7]||(Y[7]=X=>{E(),pt(i)?i.value=!1:i=!1})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Br),{modelValue:S(f).dianadddialog,"onUpdate:modelValue":Y[15]||(Y[15]=X=>S(f).dianadddialog=X),width:"500px",class:"dialog_class bgcolor tianjia"},{header:Z(({titleId:X,titleClass:K})=>[G("div",U8e,[H(oe,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:X,class:F(K)},Ae(S(u)),11,W8e)])]),default:Z(()=>[H(J,{label:"监测点名称:","label-width":o.value},{default:Z(()=>[H(ne,{modelValue:S(y).chname,"onUpdate:modelValue":Y[9]||(Y[9]=X=>S(y).chname=X),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),G("div",j8e,[H(J,{label:"巷道名称","label-width":o.value},{default:Z(()=>[H(ne,{modelValue:S(y).selectstr,"onUpdate:modelValue":Y[10]||(Y[10]=X=>S(y).selectstr=X),disabled:"",class:"w-50 m-2 text-disabled",placeholder:"请选择巷道"},null,8,["modelValue"])]),_:1},8,["label-width"]),G("div",K8e,[H(S(St),{type:"primary",onClick:Y[11]||(Y[11]=X=>{V(),S(f).dialogVisiblenode=!0})},{default:Z(()=>[Qe("选择巷道")]),_:1})])]),G("div",Y8e,[H(J,{label:"位置","label-width":o.value},{default:Z(()=>[H(he,{modelValue:S(y).site,"onUpdate:modelValue":Y[12]||(Y[12]=X=>S(y).site=X),min:0,max:1,precision:2,step:.1,"controls-position":"right",class:"w-50 m-2",placeholder:"位置"},null,8,["modelValue"])]),_:1},8,["label-width"])]),G("div",X8e,[G("div",q8e,[G("div",Z8e,[H(S(St),{onClick:Y[13]||(Y[13]=X=>S(f).dianadddialog=!1)},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",Q8e,[G("div",J8e,[H(S(St),{onClick:Y[14]||(Y[14]=X=>{R()})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Br),{modelValue:S(f).dialogVisiblenode,"onUpdate:modelValue":Y[21]||(Y[21]=X=>S(f).dialogVisiblenode=X),width:"600",class:"dialog_class bgcolor tianjia asideg asidegbg leftbgimg"},{header:Z(({titleId:X,titleClass:K})=>[G("div",eGe,[H(oe,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:X,class:F(K)}," 选择巷道",10,tGe)])]),default:Z(()=>[G("div",nGe,[G("div",rGe,[H(J,{label:"节点选择","label-width":o.value},{default:Z(()=>[H(ne,{modelValue:S(h),"onUpdate:modelValue":Y[16]||(Y[16]=X=>pt(h)?h.value=X:h=X),class:"w-50 m-2",placeholder:"巷道"},null,8,["modelValue"])]),_:1},8,["label-width"]),G("div",{class:"asdis_btn"},[G("div",{class:"flex_a"},[G("div",{class:"btns",onClick:P},iGe)])])]),H(re,{"row-class-name":C,"max-height":S(b),ref_key:"multipleTableRef",ref:s,data:S(c),style:{width:"100%"},onSelect:L,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:Z(()=>[H(te,{type:"selection",width:"55"}),H(te,{property:"snId",label:"开始节点"}),H(te,{property:"enId",label:"结束节点"}),H(te,{property:"id",label:"编号",width:"70"}),H(te,{property:"name",label:"名称",width:"70"}),H(te,{property:"sectionType",label:"截面类型",width:"120"}),H(te,{property:"roughCoe",label:"粗糙系数"}),H(te,{property:"sectionPara1",label:"截面参数1",width:"90"}),H(te,{property:"sectionPara2",label:"截面参数2",width:"90"}),H(te,{property:"sectionPara3",label:"截面参数3",width:"90"}),H(te,{property:"sectionPara4",label:"截面参数4",width:"90"}),H(te,{property:"sectionPara5",label:"截面参数5",width:"90"})]),_:1},8,["max-height","data","header-cell-style"]),G("div",oGe,[H(ue,{"current-page":p.value,"onUpdate:currentPage":Y[17]||(Y[17]=X=>p.value=X),"page-size":v.value,"onUpdate:pageSize":Y[18]||(Y[18]=X=>v.value=X),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(S(d)),class:"mt-4",onCurrentChange:N},null,8,["current-page","page-size","total"])]),G("div",sGe,[G("div",lGe,[G("div",uGe,[H(S(St),{onClick:Y[19]||(Y[19]=X=>S(f).dialogVisiblenode=!1)},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",cGe,[G("div",fGe,[H(S(St),{onClick:Y[20]||(Y[20]=X=>{U(),S(f).dialogVisiblenode=!1})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])])]),_:1},8,["modelValue"])])}}},hGe=yd(dGe,[["__scopeId","data-v-9e03d1f7"]]);const vGe={class:"l_Dialog"},pGe={class:"my-header xinxi_header"},gGe=["id"],yGe={class:"classtab"},mGe={class:"asides_content"},bGe={class:"jc_content tablecolor jc_content"},SGe={class:"font12 my_content1"},_Ge={class:"btncolor tablefocus bmar"},wGe={class:"dialog-footer footer_div l_btn"},xGe={class:"footerbtn flex1"},CGe={class:"borderimg"},TGe={class:"footerbtn flex1"},EGe={class:"borderimg"},MGe={class:"footerbtn flex1"},kGe={class:"borderimg"},DGe={class:"footerbtn flex1"},RGe={class:"borderimg"},LGe={class:"my-header"},AGe=["id"],OGe={class:"dialog-footer footer_div l_btn"},NGe={class:"footerbtn flex1"},$Ge={class:"borderimg"},IGe={class:"footerbtn flex1"},BGe={class:"borderimg"},VGe={class:"my-header"},PGe=["id"],FGe={class:"delecttitle"},zGe={class:"spanclad"},GGe={class:"dialog-footer footer_div l_btn"},HGe={class:"footerbtn flex1"},UGe={class:"borderimg"},WGe={class:"footerbtn flex1"},jGe={class:"borderimg"},KGe={__name:"MenuPhysics",setup(t,{expose:e}){z();let n=z(!1),r=z(!0),a=z(!1),i=z(!1);z("Fire");const o=z(100);let s=z("");z("first");let l=z(570),u=z([]),c=z({}),f=z(),d=z({coid:"",code:"",name:"",density:"",diffcoe:"",speheat:""});z({selectstr:"",site:""}),z("");const h=({row:x,rowIndex:w})=>w%2!=0?"evenRow":"oddRow",p=x=>{r.value=!0,c.value=x,console.log(c.value)},v=()=>{JSON.stringify(c.value)=="{}"?ln.error("你还没有选中修改的项目"):(i.value=!0,f.value=c.value.name)},g=()=>{console.log(f.value);const x={transCode:"D10015",coid:c.value.coid};Cr(x).then(w=>{y()}).catch(w=>{ln.error(w.returnMsg)})};ht(()=>{y()});const y=()=>{Cr({transCode:"D10013"}).then(w=>{u.value=w.rows}).catch(w=>{ln.error(w.returnMsg)})},m=()=>{s.value="添加",r.value=!1,a.value=!0,d.value.coid="",d.value.code="",d.value.name="",d.value.density="",d.value.diffcoe="",d.value.speheat=""},b=()=>{const x={transCode:"D10014",coid:d.value.coid,code:d.value.code,name:d.value.name,density:d.value.density,diffcoe:d.value.diffcoe,speheat:d.value.speheat};Cr(x).then(w=>{u.value=w.rows,y()}).catch(w=>{ln.error(w.returnMsg)})},_=()=>{s.value="修改",JSON.stringify(c.value)=="{}"?ln.error("你还没有选中修改的项目"):(a.value=!0,d.value.coid=c.value.coid,d.value.code=c.value.code,d.value.name=c.value.name,d.value.density=c.value.density,d.value.diffcoe=c.value.diffcoe,d.value.speheat=c.value.speheat)};return e({sendialogVisible:n}),(x,w)=>{const C=Ge("el-image"),T=Ge("el-table-column"),k=Ge("el-table"),E=Ge("el-input"),M=Ge("el-form-item"),D=Ge("el-form");return B(),q("div",vGe,[H(S(Br),{modelValue:S(n),"onUpdate:modelValue":w[5]||(w[5]=R=>pt(n)?n.value=R:n=R),width:"470","align-center":"",modal:!1,"close-on-click-modal":!1,"modal-class":"summary-dlg",draggable:"",class:"dialog_class bgcolor zhucentent"},{header:Z(({titleId:R,titleClass:A})=>[G("div",pGe,[H(C,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:R,class:F(A)},"物理属性",10,gGe)])]),default:Z(()=>[G("div",yGe,[G("div",mGe,[G("div",bGe,[G("div",SGe,[G("div",_Ge,[H(k,{data:S(u),style:{width:"480px"},"max-height":S(l),"highlight-current-row":S(r),"row-class-name":h,onRowClick:w[0]||(w[0]=R=>p(R)),"header-cell-style":{background:"rgba(13, 22, 57, 0.9) "}},{default:Z(()=>[H(T,{prop:"name",label:"名称"}),H(T,{prop:"density",label:"密度"}),H(T,{prop:"diffcoe",label:"扩散系数"}),H(T,{prop:"speheat",label:"比热"})]),_:1},8,["data","max-height","highlight-current-row","header-cell-style"])])]),G("div",wGe,[G("div",xGe,[G("div",CGe,[H(S(St),{onClick:w[1]||(w[1]=R=>{m()})},{default:Z(()=>[Qe("添加")]),_:1})])]),G("div",TGe,[G("div",EGe,[H(S(St),{onClick:w[2]||(w[2]=R=>v())},{default:Z(()=>[Qe(" 删除 ")]),_:1})])]),G("div",MGe,[G("div",kGe,[H(S(St),{onClick:w[3]||(w[3]=R=>_())},{default:Z(()=>[Qe(" 修改 ")]),_:1})])]),G("div",DGe,[G("div",RGe,[H(S(St),{onClick:w[4]||(w[4]=R=>{pt(n)?n.value=!1:n=!1,pt(r)?r.value=!1:r=!1})},{default:Z(()=>[Qe(" 确认 ")]),_:1})])])])])])])]),_:1},8,["modelValue"]),H(S(Br),{modelValue:S(a),"onUpdate:modelValue":w[13]||(w[13]=R=>pt(a)?a.value=R:a=R),width:"400",class:"dialog_class bgcolor tianjia foter_l tianjia"},{header:Z(({titleId:R,titleClass:A})=>[G("div",LGe,[H(C,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:R,class:F(A)},Ae(S(s)),11,AGe)])]),default:Z(()=>[H(D,{class:"demo-form-inline",inline:!0,model:S(d)},{default:Z(()=>[H(M,{label:"编号","label-width":o.value},{default:Z(()=>[H(E,{modelValue:S(d).code,"onUpdate:modelValue":w[6]||(w[6]=R=>S(d).code=R),maxlength:"15",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(M,{label:"名称","label-width":o.value},{default:Z(()=>[H(E,{modelValue:S(d).name,"onUpdate:modelValue":w[7]||(w[7]=R=>S(d).name=R),maxlength:"18",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(M,{label:"密度","label-width":o.value},{default:Z(()=>[H(E,{modelValue:S(d).density,"onUpdate:modelValue":w[8]||(w[8]=R=>S(d).density=R),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(M,{label:"扩散系数","label-width":o.value},{default:Z(()=>[H(E,{modelValue:S(d).diffcoe,"onUpdate:modelValue":w[9]||(w[9]=R=>S(d).diffcoe=R),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),H(M,{label:"比热","label-width":o.value},{default:Z(()=>[H(E,{modelValue:S(d).speheat,"onUpdate:modelValue":w[10]||(w[10]=R=>S(d).speheat=R),maxlength:"15",oninput:"value=value.replace(/[^0-9.]/g,'')",class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1},8,["model"]),G("div",OGe,[G("div",NGe,[G("div",$Ge,[H(S(St),{onClick:w[11]||(w[11]=R=>pt(a)?a.value=!1:a=!1)},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",IGe,[G("div",BGe,[H(S(St),{onClick:w[12]||(w[12]=R=>{b(),pt(a)?a.value=!1:a=!1})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),H(S(Br),{modelValue:S(i),"onUpdate:modelValue":w[16]||(w[16]=R=>pt(i)?i.value=R:i=R),width:"400",class:"dialog_class bgcolor tianjia"},{header:Z(({titleId:R,titleClass:A})=>[G("div",VGe,[H(C,{src:S(jr),fit:"contain"},null,8,["src"]),G("h4",{id:R,class:F(A)},"删除框",10,PGe)])]),default:Z(()=>[G("h4",FGe,[Qe(" 是否确认删除名称 "),G("span",zGe,Ae(S(f)),1)]),G("div",GGe,[G("div",HGe,[G("div",UGe,[H(S(St),{onClick:w[14]||(w[14]=R=>pt(i)?i.value=!1:i=!1)},{default:Z(()=>[Qe("取消")]),_:1})])]),G("div",WGe,[G("div",jGe,[H(S(St),{onClick:w[15]||(w[15]=R=>{g(),pt(i)?i.value=!1:i=!1})},{default:Z(()=>[Qe(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"])])}}},YGe=yd(KGe,[["__scopeId","data-v-6f10f638"]]),XGe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAeCAYAAADQBxWhAAAAAXNSR0IArs4c6QAAAd1JREFUSEvtlz1oFFEUhb877hLQgFpYGFRsFgsLZ42N2NlZaoizESGNhTZaCDZKIKBiYRo7LcRCTGYREQXBKgo2IpJZmzSx0moFgz8BDZk5OussLIHMvLGxcKa7vHPefe/OfedwDWB2QXs3GScEm9N4o0/i+9owd0837OsgZjZS4EEjj5utvQl8e27tjvZJvAa2OpAQLHe3sPN8w36m+DDSI+C4CzfDnLN2pCnBdAkSCbQmfAtTzlykVYN6Cf6ShZFuAhdLkJC40mratSxpbOA5843lKmlutaryOjVT1UhFZUrE5YmmXf+rdwqf7WFHk7G4V5RocL1m7B47YB8zGfwGDLvyE/HSUnC7o8e/9fcY0IvzNB/xJGjaeB9zv6NddVhEDOUTe5t368bBoiSuFyiF+3dJbz3T0I4RLnkwUnDkpcC3mfWYsKMxwVHTxsIv8YOEO61RW7QHkfbX4K3I/ycDib4Evm3rx2GkV8ARp/oaicSF1E+nBVNOpAwUx5w9NWq3s+5dpYSfCj5U1lZZW68ClYk7Pbv/x8ThUyoOJ9PpwKk0f0DSGo3WIXvfU6QFrWD5M9C6vZ/a/Lxq3e3MGJwpGqCAFQ9ujPt2tb9R+50OK2YOY0/RwSVeeDGTvwDKqlpaV85FCQAAAABJRU5ErkJggg==",qGe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACUAAAAlCAYAAADFniADAAAAAXNSR0IArs4c6QAABx9JREFUWEedWH+IVNcV/s6bt+6GqjVRwbSROhpwAzFdwdIVLG4hpQZa1H3PH02ErsQ4b9uGGGKwJSndgIWUWEypwfdWy27oppF1ZmOIUEsaNJjQlljcEIO2SndpAxFrkmWzbXY3M+/r3Lczb+/7MTtj31/Dvffc851zvvPjjuAWv7Nnaa78Kr5O39/kAysEvJuUJSIwCUwAvA7KqCEYnpouvrH6S81XblEFpFGByx9+tqIpM+9hw0CXAHc1Kkfimhg4MjY+/uLa7O1jjcjVBXVx5JNFX5y/8DlIAMZs5NK0MyRuioGDGP+nl81mJ+e6py6of3xUOibEnv8XTEKOGCaMnSuXyt9q3VkX1MgIW7iArwl4v34JgWsiOM0i/1oy+IHaE6LFNIxVELSRUOdXpComJiF0skvMF9P264JSQu/fuDG/We44a4i0CTDgs/TCqqXzLqi9XJ7rQHzZ2yavxhVcvT7dbprmAYBbUsEJerKLM8/E9xKgnAJ/RsD0LPmpfnjkxsSyaaNp0eol0WzKDXKTZPB7Amc+LmHbye0yEVfy9xvTbU2GeRhgR3yPgv0rF2d+qa9HQOUK3CHAicqBHteShBXxS7vz/D4F/WqdwFsfl/BAGjC1P3qz9FTZ4IMxGhQzhtHxlTvk7ep6CKqrjy0tCzACwTJNqC4wp8BfA/hRVYbEKc+WrbVIPPpR0fIpJ1QmEygqOuDz6Weyd942mgDVnedzypUxKw7GwxhX5hQ4kiC0j13uNnmpq4+L+ndLojbNeIzrmMn0rLxd3k3llBJuXoAPRdASHhCcdjvlu3OVAifPb0NwJiXtr125hHtWtaK1ycRm15af30pJCcLnFPgEgENaCCanfGT7t8v1OqDOQpAgbyBD2JMZvNHi4xP127WlUA/YngHedXyXfFAF9ScA7SEo4HnPksfjl+z9HVt7H5Sgl+VOcrMYOFVLkeJW0ceTTRlcJTBW+gxrlML4+Y4emq33YQd97IdgwrPkG+K8zBWYB8WL2W8aWfd7EhJPbVRC3KdIHCTFQlyuWRxnblKlQWXyTDcgTrt2lA4/GOQy38B5CO6uKC/6U7hTnCE+BGJAC92wZ8vauEW5PB8rW7Lfs2S5k2ef6oX1wpEgsKDjaKe8WV1XXlq9Bv8WYFF4lrAlkdIpoQtcvAYXy5a3EnDKU8JxXSGBCyDujSRKGuIUbzl5vgbBdzTqHFSgXgeCPhV8vqCrt1MiPUkvkACKiE0LqprLNLrRjD6wBvFnri9OlrBcT6BEKSJOS7mKXy5X8VbNfZtcW/6gG5o4E/MCgVHPkmyFa6qY1p4qBLvcTnmpekVuiAfKjfxZTf8F5alI8SsV8a1jO+SP1UM1a5HiLjEggp0quzxLloYyBfap3EiLoBCHjtryZHVv70nuMwwc1s5eEifPqxr7gZglToHHalle/Bzrm0xYPnC/nhzKY80LcTESgVmt/a4lu0MDhvgUONsPSQwrUO9AsE5DGul3uQLPC7AhbjWBK54l9+wd5AbDwMZ41e4e4kYS51K8ddy15JEwfHkeFYGjnfuz5PL8rQh2aYtxoYsiaEuAEmzxOuVVVWv++x+M9e+WxIibyzNNdr9rSTiqxM+ooqs4FWkxasJwLclqnEq0EgKnPKv2JKBxKzJBqPVSCWuPbZdh9Vu1FfM2/CtiMPGs7M2z1ZCgOoefaEVODX3ljR593y9ia+8OqdliNFARWVXPPEu+pu3HHQKW8EDQ+3IFviOY5ZU+E6k2xCZc1gujbm1ahtXIwiKJ9Z4twRgd6E2Gd2JyHEuroB6OV2mfaO+15S9KuHuIPyRxJATQQNePD40U/NjrlF9otLAgyMeMCjIzAJU2darUnPoU66sEjoSROOfa8s06XtJDE8nobYOcvziD9+INnYI2r1PeDcdhp8AcADdGuiOuLY+G1r1Ciz6OVxpozVFZFVyVDEqOBpx424r3u+CcljwhqErTPa/PVRUwEeVdg1zWksHhsie3cBrLex+Um3GP5Qp8RYD5PvForz0zf4U8KvCwAPv0Nap3oIF25SW1HnnNqEwUQNWW2bF4pp24U5/i8bRaNFcI9b0gZII+GLATMsTTevFNvPtyQ9wsTE6UimMw0FW1plEwlUTZ6BNuattJeQukvpDVQCeC52sozvvEoWpmzgVuzwm2Z0wcEEHqC1mNPFPj2BqPQM1nu6NIXQqmgEgoqyAIKC6dYwxg0PN82AQ2pLUnzYj+yXF0p1Fizv8SHhlkm5HByzW6fXA/iX2eLb8KMzSlA0RIDYxRsC+ekfqZun9wVGrYE+XX7NM1vBZpsGltqaJQTawDkyX8pN7TrS6oqgVBKTDxGIk9AizRLIuUjDgoNQCWi2R/sYQXfrNdrjWSIA2DCsGpAe4L6BATG+HjXgHyR+3ZmV7N875gJwSX/BLevPo+zpzrEeWlhr//AWlIKm5yX6W0AAAAAElFTkSuQmCC";const ZGe=t=>(xw("data-v-b956d422"),t=t(),Cw(),t),QGe={class:"appmian"},JGe={class:"ve_menu_logo"},eHe={class:"ve_title"},tHe={class:"ve_logo_img"},nHe={class:"ve_timeioc"},rHe=ZGe(()=>G("span",null,"返回主界面",-1)),aHe="灾情推演软件",iHe={__name:"configurator",setup(t){const e=z("");ht(()=>{});let n=wue(),r=z(),a=z(),i=z(),o=z();const s=()=>{n.push("/")},l=(u,c)=>{switch(u){case"1":r.value.dialogVisible=!0,a.value.sendialogVisible=!1,i.value.sendialogVisible=!1,o.value.sendialogVisible=!1;break;case"2":r.value.dialogVisible=!1,a.value.sendialogVisible=!0,i.value.sendialogVisible=!1,o.value.sendialogVisible=!1;break;case"3":r.value.dialogVisible=!1,i.value.sendialogVisible=!0,a.value.sendialogVisible=!1,o.value.sendialogVisible=!1;break;case"4":r.value.dialogVisible=!1,i.value.sendialogVisible=!1,a.value.sendialogVisible=!1,o.value.sendialogVisible=!0}};return Ee(n,(u,c)=>{n.go(0)}),(u,c)=>{const f=Ge("el-image"),d=Ge("el-menu-item"),h=Ge("el-menu"),p=Ge("el-header"),v=Ge("el-main"),g=Ge("el-container");return B(),q("div",QGe,[H(g,null,{default:Z(()=>[H(p,null,{default:Z(()=>[G("div",JGe,[G("div",eHe,[G("div",tHe,[H(f,{style:{height:"100%"},src:S(qGe),fit:"contain"},null,8,["src"])]),G("h3",{class:"ve_logo_title"},Ae(aHe))]),H(h,{"default-active":e.value,class:"el-menu-demo",mode:"horizontal","popper-offset":2,style:{width:"780px"},"background-color":"#0D1639 ","active-background-color":"#0E50C8","text-color":"#68ADFF","active-text-color":"#fff",onSelect:l},{default:Z(()=>[H(d,{index:"1"},{default:Z(()=>[Qe("矿井信息")]),_:1}),H(d,{index:"2"},{default:Z(()=>[Qe("传感器信息")]),_:1}),H(d,{index:"3"},{default:Z(()=>[Qe("监测点信息")]),_:1}),H(d,{index:"4"},{default:Z(()=>[Qe("物理属性")]),_:1})]),_:1},8,["default-active"]),G("div",{class:"ve_right",onClick:c[0]||(c[0]=y=>s())},[G("div",nHe,[H(f,{src:S(XGe),fit:"contain"},null,8,["src"]),rHe])])])]),_:1}),H(v,null,{default:Z(()=>[H(y6e,{ref_key:"menumine",ref:r},null,512),H(g8e,{ref_key:"menusen",ref:a},null,512),H(hGe,{ref_key:"menucheck",ref:i},null,512),H(YGe,{ref_key:"menuphysics",ref:o},null,512)]),_:1})]),_:1})])}}},oHe=yd(iHe,[["__scopeId","data-v-b956d422"]]);function Zb(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function sHe(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function vY(t){let e,n,r;t.length!==2?(e=Zb,n=(s,l)=>Zb(t(s),l),r=(s,l)=>t(s)-l):(e=t===Zb||t===sHe?t:lHe,n=t,r=t);function a(s,l,u=0,c=s.length){if(u>>1;n(s[f],l)<0?u=f+1:c=f}while(u>>1;n(s[f],l)<=0?u=f+1:c=f}while(uu&&r(s[f-1],l)>-r(s[f],l)?f-1:f}return{left:a,center:o,right:i}}function lHe(){return 0}function uHe(t){return t===null?NaN:+t}const cHe=vY(Zb),fHe=cHe.right;vY(uHe).center;const dHe=fHe,hHe=Math.sqrt(50),vHe=Math.sqrt(10),pHe=Math.sqrt(2);function e_(t,e,n){const r=(e-t)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=hHe?10:i>=vHe?5:i>=pHe?2:1;let s,l,u;return a<0?(u=Math.pow(10,-a)/o,s=Math.round(t*u),l=Math.round(e*u),s/ue&&--l,u=-u):(u=Math.pow(10,a)*o,s=Math.round(t/u),l=Math.round(e/u),s*ue&&--l),l0))return[];if(t===e)return[t];const r=e=a))return[];const s=i-a+1,l=new Array(s);if(r)if(o<0)for(let u=0;u>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?qm(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?qm(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=SHe.exec(t))?new Ya(e[1],e[2],e[3],1):(e=_He.exec(t))?new Ya(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=wHe.exec(t))?qm(e[1],e[2],e[3],e[4]):(e=xHe.exec(t))?qm(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=CHe.exec(t))?dP(e[1],e[2]/100,e[3]/100,1):(e=THe.exec(t))?dP(e[1],e[2]/100,e[3]/100,e[4]):oP.hasOwnProperty(t)?uP(oP[t]):t==="transparent"?new Ya(NaN,NaN,NaN,0):null}function uP(t){return new Ya(t>>16&255,t>>8&255,t&255,1)}function qm(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ya(t,e,n,r)}function kHe(t){return t instanceof qy||(t=Y0(t)),t?(t=t.rgb(),new Ya(t.r,t.g,t.b,t.opacity)):new Ya}function kk(t,e,n,r){return arguments.length===1?kHe(t):new Ya(t,e,n,r??1)}function Ya(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}PA(Ya,kk,pY(qy,{brighter(t){return t=t==null?t_:Math.pow(t_,t),new Ya(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?j0:Math.pow(j0,t),new Ya(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ya(Pf(this.r),Pf(this.g),Pf(this.b),n_(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cP,formatHex:cP,formatHex8:DHe,formatRgb:fP,toString:fP}));function cP(){return`#${Tf(this.r)}${Tf(this.g)}${Tf(this.b)}`}function DHe(){return`#${Tf(this.r)}${Tf(this.g)}${Tf(this.b)}${Tf((isNaN(this.opacity)?1:this.opacity)*255)}`}function fP(){const t=n_(this.opacity);return`${t===1?"rgb(":"rgba("}${Pf(this.r)}, ${Pf(this.g)}, ${Pf(this.b)}${t===1?")":`, ${t})`}`}function n_(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Pf(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Tf(t){return t=Pf(t),(t<16?"0":"")+t.toString(16)}function dP(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new mo(t,e,n,r)}function gY(t){if(t instanceof mo)return new mo(t.h,t.s,t.l,t.opacity);if(t instanceof qy||(t=Y0(t)),!t)return new mo;if(t instanceof mo)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),i=Math.max(e,n,r),o=NaN,s=i-a,l=(i+a)/2;return s?(e===i?o=(n-r)/s+(n0&&l<1?0:o,new mo(o,s,l,t.opacity)}function RHe(t,e,n,r){return arguments.length===1?gY(t):new mo(t,e,n,r??1)}function mo(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}PA(mo,RHe,pY(qy,{brighter(t){return t=t==null?t_:Math.pow(t_,t),new mo(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?j0:Math.pow(j0,t),new mo(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,a=2*n-r;return new Ya(aC(t>=240?t-240:t+120,a,r),aC(t,a,r),aC(t<120?t+240:t-120,a,r),this.opacity)},clamp(){return new mo(hP(this.h),Zm(this.s),Zm(this.l),n_(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=n_(this.opacity);return`${t===1?"hsl(":"hsla("}${hP(this.h)}, ${Zm(this.s)*100}%, ${Zm(this.l)*100}%${t===1?")":`, ${t})`}`}}));function hP(t){return t=(t||0)%360,t<0?t+360:t}function Zm(t){return Math.max(0,Math.min(1,t||0))}function aC(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const FA=t=>()=>t;function LHe(t,e){return function(n){return t+n*e}}function AHe(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function OHe(t){return(t=+t)==1?yY:function(e,n){return n-e?AHe(e,n,t):FA(isNaN(e)?n:e)}}function yY(t,e){var n=e-t;return n?LHe(t,n):FA(isNaN(t)?e:t)}const vP=function t(e){var n=OHe(e);function r(a,i){var o=n((a=kk(a)).r,(i=kk(i)).r),s=n(a.g,i.g),l=n(a.b,i.b),u=yY(a.opacity,i.opacity);return function(c){return a.r=o(c),a.g=s(c),a.b=l(c),a.opacity=u(c),a+""}}return r.gamma=t,r}(1);function NHe(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),a;return function(i){for(a=0;an&&(i=e.slice(n,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:r_(r,a)})),n=iC.lastIndex;return ne&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function jHe(t,e,n){var r=t[0],a=t[1],i=e[0],o=e[1];return a2?KHe:jHe,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?i:(l||(l=s(t.map(r),e,n)))(r(o(d)))}return f.invert=function(d){return o(a((u||(u=s(e,t.map(r),r_)))(d)))},f.domain=function(d){return arguments.length?(t=Array.from(d,UHe),c()):t.slice()},f.range=function(d){return arguments.length?(e=Array.from(d),c()):e.slice()},f.rangeRound=function(d){return e=Array.from(d),n=GHe,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Ch,c()):o!==Ch},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(i=d,f):i},function(d,h){return r=d,a=h,c()}}function qHe(){return XHe()(Ch,Ch)}function ZHe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function a_(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Tv(t){return t=a_(Math.abs(t)),t?t[1]:NaN}function QHe(t,e){return function(n,r){for(var a=n.length,i=[],o=0,s=t[0],l=0;a>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(a-=s,a+s)),!((l+=s+1)>r));)s=t[o=(o+1)%t.length];return i.reverse().join(e)}}function JHe(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var eUe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i_(t){if(!(e=eUe.exec(t)))throw new Error("invalid format: "+t);var e;return new GA({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}i_.prototype=GA.prototype;function GA(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}GA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function tUe(t){e:for(var e=t.length,n=1,r=-1,a;n0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(a+1):t}var mY;function nUe(t,e){var n=a_(t,e);if(!n)return t+"";var r=n[0],a=n[1],i=a-(mY=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+a_(t,Math.max(0,e+i-1))[0]}function gP(t,e){var n=a_(t,e);if(!n)return t+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const yP={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:ZHe,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>gP(t*100,e),r:gP,s:nUe,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function mP(t){return t}var bP=Array.prototype.map,SP=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rUe(t){var e=t.grouping===void 0||t.thousands===void 0?mP:QHe(bP.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",r=t.currency===void 0?"":t.currency[1]+"",a=t.decimal===void 0?".":t.decimal+"",i=t.numerals===void 0?mP:JHe(bP.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",s=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function u(f){f=i_(f);var d=f.fill,h=f.align,p=f.sign,v=f.symbol,g=f.zero,y=f.width,m=f.comma,b=f.precision,_=f.trim,x=f.type;x==="n"?(m=!0,x="g"):yP[x]||(b===void 0&&(b=12),_=!0,x="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var w=v==="$"?n:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",C=v==="$"?r:/[%p]/.test(x)?o:"",T=yP[x],k=/[defgprs%]/.test(x);b=b===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function E(M){var D=w,R=C,A,V,P;if(x==="c")R=T(M)+R,M="";else{M=+M;var N=M<0||1/M<0;if(M=isNaN(M)?l:T(Math.abs(M),b),_&&(M=tUe(M)),N&&+M==0&&p!=="+"&&(N=!1),D=(N?p==="("?p:s:p==="-"||p==="("?"":p)+D,R=(x==="s"?SP[8+mY/3]:"")+R+(N&&p==="("?")":""),k){for(A=-1,V=M.length;++AP||P>57){R=(P===46?a+M.slice(A+1):M.slice(A))+R,M=M.slice(0,A);break}}}m&&!g&&(M=e(M,1/0));var I=D.length+M.length+R.length,L=I>1)+D+M+R+L.slice(I);break;default:M=L+D+M+R;break}return i(M)}return E.toString=function(){return f+""},E}function c(f,d){var h=u((f=i_(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Tv(d)/3)))*3,v=Math.pow(10,-p),g=SP[8+p/3];return function(y){return h(v*y)+g}}return{format:u,formatPrefix:c}}var Qm,bY,SY;HA({thousands:",",grouping:[3],currency:["$",""]});function HA(t){return Qm=rUe(t),bY=Qm.format,SY=Qm.formatPrefix,Qm}function aUe(t){return Math.max(0,-Tv(Math.abs(t)))}function iUe(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Tv(e)/3)))*3-Tv(Math.abs(t)))}function oUe(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Tv(e)-Tv(t))+1}function sUe(t,e,n,r){var a=yHe(t,e,n),i;switch(r=i_(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(i=iUe(a,o))&&(r.precision=i),SY(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=oUe(a,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=aUe(a))&&(r.precision=i-(r.type==="%")*2);break}}return bY(r)}function lUe(t){var e=t.domain;return t.ticks=function(n){var r=e();return gHe(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var a=e();return sUe(a[0],a[a.length-1],n??10,r)},t.nice=function(n){n==null&&(n=10);var r=e(),a=0,i=r.length-1,o=r[a],s=r[i],l,u,c=10;for(s0;){if(u=Mk(o,s,n),u===l)return r[a]=o,r[i]=s,e(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return t},t}function dx(){var t=qHe();return t.copy=function(){return YHe(t,dx())},mHe.apply(t,arguments),lUe(t)}var uUe=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,a,i;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(a=r;a--!==0;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(i=Object.keys(e),r=i.length,r!==Object.keys(n).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,i[a]))return!1;for(a=r;a--!==0;){var o=i[a];if(!t(e[o],n[o]))return!1}return!0}return e!==e&&n!==n};const cUe=yi(uUe);var _P=Object.prototype.toString,_Y=function(e){var n=_P.call(e),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&_P.call(e.callee)==="[object Function]"),r},oC,wP;function fUe(){if(wP)return oC;wP=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=_Y,a=Object.prototype.propertyIsEnumerable,i=!a.call({toString:null},"toString"),o=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(d){var h=d.constructor;return h&&h.prototype===d},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var d in window)try{if(!u["$"+d]&&e.call(window,d)&&window[d]!==null&&typeof window[d]=="object")try{l(window[d])}catch{return!0}}catch{return!0}return!1}(),f=function(d){if(typeof window>"u"||!c)return l(d);try{return l(d)}catch{return!1}};t=function(h){var p=h!==null&&typeof h=="object",v=n.call(h)==="[object Function]",g=r(h),y=p&&n.call(h)==="[object String]",m=[];if(!p&&!v&&!g)throw new TypeError("Object.keys called on a non-object");var b=o&&v;if(y&&h.length>0&&!e.call(h,0))for(var _=0;_0)for(var x=0;x"u"||!Or?fn:Or(Uint8Array),zf={"%AggregateError%":typeof AggregateError>"u"?fn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?fn:ArrayBuffer,"%ArrayIteratorPrototype%":Ad&&Or?Or([][Symbol.iterator]()):fn,"%AsyncFromSyncIteratorPrototype%":fn,"%AsyncFunction%":ch,"%AsyncGenerator%":ch,"%AsyncGeneratorFunction%":ch,"%AsyncIteratorPrototype%":ch,"%Atomics%":typeof Atomics>"u"?fn:Atomics,"%BigInt%":typeof BigInt>"u"?fn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?fn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?fn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?fn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?fn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?fn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?fn:FinalizationRegistry,"%Function%":xY,"%GeneratorFunction%":ch,"%Int8Array%":typeof Int8Array>"u"?fn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?fn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?fn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ad&&Or?Or(Or([][Symbol.iterator]())):fn,"%JSON%":typeof JSON=="object"?JSON:fn,"%Map%":typeof Map>"u"?fn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ad||!Or?fn:Or(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?fn:Promise,"%Proxy%":typeof Proxy>"u"?fn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?fn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?fn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ad||!Or?fn:Or(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?fn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ad&&Or?Or(""[Symbol.iterator]()):fn,"%Symbol%":Ad?Symbol:fn,"%SyntaxError%":Ev,"%ThrowTypeError%":MUe,"%TypedArray%":DUe,"%TypeError%":Wh,"%Uint8Array%":typeof Uint8Array>"u"?fn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?fn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?fn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?fn:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?fn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?fn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?fn:WeakSet};if(Or)try{null.error}catch(t){var RUe=Or(Or(t));zf["%Error.prototype%"]=RUe}var LUe=function t(e){var n;if(e==="%AsyncFunction%")n=lC("async function () {}");else if(e==="%GeneratorFunction%")n=lC("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=lC("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&Or&&(n=Or(a.prototype))}return zf[e]=n,n},MP={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Zy=wY,o_=EUe,AUe=Zy.call(Function.call,Array.prototype.concat),OUe=Zy.call(Function.apply,Array.prototype.splice),kP=Zy.call(Function.call,String.prototype.replace),s_=Zy.call(Function.call,String.prototype.slice),NUe=Zy.call(Function.call,RegExp.prototype.exec),$Ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,IUe=/\\(\\)?/g,BUe=function(e){var n=s_(e,0,1),r=s_(e,-1);if(n==="%"&&r!=="%")throw new Ev("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Ev("invalid intrinsic syntax, expected opening `%`");var a=[];return kP(e,$Ue,function(i,o,s,l){a[a.length]=s?kP(l,IUe,"$1"):o||i}),a},VUe=function(e,n){var r=e,a;if(o_(MP,r)&&(a=MP[r],r="%"+a[0]+"%"),o_(zf,r)){var i=zf[r];if(i===ch&&(i=LUe(r)),typeof i>"u"&&!n)throw new Wh("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:i}}throw new Ev("intrinsic "+e+" does not exist!")},UA=function(e,n){if(typeof e!="string"||e.length===0)throw new Wh("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Wh('"allowMissing" argument must be a boolean');if(NUe(/^%?[^%]*%?$/,e)===null)throw new Ev("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=BUe(e),a=r.length>0?r[0]:"",i=VUe("%"+a+"%",n),o=i.name,s=i.value,l=!1,u=i.alias;u&&(a=u[0],OUe(r,AUe([0,1],u)));for(var c=1,f=!0;c=r.length){var v=Ff(s,d);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?s=v.get:s=s[d]}else f=o_(s,d),s=s[d];f&&!l&&(zf[o]=s)}}return s},PUe=UA,Lk=PUe("%Object.defineProperty%",!0),Ak=function(){if(Lk)try{return Lk({},"a",{value:1}),!0}catch{return!1}return!1};Ak.hasArrayLengthDefineBug=function(){if(!Ak())return null;try{return Lk([],"length",{value:1}).length!==1}catch{return!0}};var CY=Ak,cC,DP;function FUe(){if(DP)return cC;DP=1;var t=UA,e=t("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return cC=e,cC}var zUe=CY(),WA=UA,RP=zUe&&WA("%Object.defineProperty%",!0),GUe=WA("%SyntaxError%"),Od=WA("%TypeError%"),LP=FUe(),HUe=function(e,n,r){if(!e||typeof e!="object"&&typeof e!="function")throw new Od("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Od("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Od("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Od("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Od("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Od("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,l=!!LP&&LP(e,n);if(RP)RP(e,n,{configurable:o===null&&l?l.configurable:!o,enumerable:a===null&&l?l.enumerable:!a,value:r,writable:i===null&&l?l.writable:!i});else if(s||!a&&!i&&!o)e[n]=r;else throw new GUe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},UUe=vUe,WUe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",jUe=Object.prototype.toString,KUe=Array.prototype.concat,AP=HUe,YUe=function(t){return typeof t=="function"&&jUe.call(t)==="[object Function]"},TY=CY(),XUe=function(t,e,n,r){if(e in t){if(r===!0){if(t[e]===n)return}else if(!YUe(r)||!r())return}TY?AP(t,e,n,!0):AP(t,e,n)},EY=function(t,e){var n=arguments.length>2?arguments[2]:{},r=UUe(e);WUe&&(r=KUe.call(r,Object.getOwnPropertySymbols(e)));for(var a=0;anull};function Co(t){if(t==null||t.isA)return t;if(!t.vtkClass)return go.console&&go.console.error&&go.console.error("Invalid VTK object"),null;const e=AY[t.vtkClass];if(!e)return go.console&&go.console.error&&go.console.error(`No vtk class found for Object of type ${t.vtkClass}`),null;const n={...t};Object.keys(n).forEach(a=>{n[a]&&typeof n[a]=="object"&&n[a].vtkClass&&(n[a]=Co(n[a]))});const r=e(n);return r&&r.modified&&r.modified(),r}function oWe(t,e){AY[t]=e}Co.register=oWe;class fC extends Array{push(){for(let e=0;e{NY[t]=df});go.console=console.hasOwnProperty("log")?console:NY;const Ku={debug:df,error:go.console.error||df,info:go.console.info||df,log:go.console.log||df,warn:go.console.warn||df};function $Y(t,e){Ku[t]&&(Ku[t]=e||df)}function IY(){Ku.log(...arguments)}function BY(){Ku.info(...arguments)}function l_(){Ku.debug(...arguments)}function un(){Ku.error(...arguments)}function jA(){Ku.warn(...arguments)}const OP={};function VY(t){OP[t]||(Ku.error(t),OP[t]=!0)}const ha=Object.create(null);ha.Float32Array=Float32Array;ha.Float64Array=Float64Array;ha.Uint8Array=Uint8Array;ha.Int8Array=Int8Array;ha.Uint16Array=Uint16Array;ha.Int16Array=Int16Array;ha.Uint32Array=Uint32Array;ha.Int32Array=Int32Array;ha.Uint8ClampedArray=Uint8ClampedArray;try{ha.BigInt64Array=BigInt64Array,ha.BigUint64Array=BigUint64Array}catch{}function Qv(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1?e-1:0),r=1;r1&&arguments[1]!==void 0?arguments[1]:2,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1e3;const r=["TB","GB","MB","KB"];let a=Number(t),i="B";for(;a>n;)a/=n,i=r.pop();return`${a.toFixed(e)} ${i}`}function zY(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ";const n=[];let r=t;for(;r>1e3;)n.push(`000${r%1e3}`.slice(-3)),r=Math.floor(r/1e3);return r>0&&n.push(r),n.reverse(),n.join(e)}function GY(t){Object.keys(t).forEach(e=>{Array.isArray(t[e])&&(t[e]=[].concat(t[e]))})}function uWe(t){return Object.values(ha).some(e=>t instanceof e)}function cWe(t,e){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let n=0;nt[n]===e)}function HY(t){return t&&t.isA?t.getState():t}function YA(t){setTimeout(t,0)}function UY(t,e){const n=performance.now();t.finally(()=>{const r=performance.now()-n;e(r)})}function $o(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};GY(e);const n=[];if(Number.isInteger(e.mtime)||(e.mtime=++Ok),!("classHierarchy"in e))e.classHierarchy=new fC("vtkObject");else if(!(e.classHierarchy instanceof fC)){const i=new fC;for(let o=0;o!!e.deleted,t.modified=i=>{if(e.deleted){un("instance deleted - cannot call any method");return}i&&io&&o(t)))},t.onModified=i=>{if(e.deleted)return un("instance deleted - cannot call any method"),null;const o=n.length;return n.push(i),a(o)},t.getMTime=()=>e.mtime,t.isA=i=>{let o=e.classHierarchy.length;for(;o--;)if(e.classHierarchy[o]===i)return!0;return!1},t.getClassName=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.classHierarchy[e.classHierarchy.length-1-i]},t.set=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,l=!1;return Object.keys(i).forEach(u=>{const c=s?null:t[`set${hx(u)}`];c&&Array.isArray(i[u])&&c.length>1?l=c(...i[u])||l:c?l=c(i[u])||l:(["mtime"].indexOf(u)===-1&&!o&&jA(`Warning: Set value to model directly ${u}, ${i[u]}`),l=e[u]!==i[u]||l,e[u]=i[u])}),l},t.get=function(){for(var i=arguments.length,o=new Array(i),s=0;s{l[u]=e[u]}),l},t.getReferenceByName=i=>e[i],t.delete=()=>{Object.keys(e).forEach(i=>delete e[i]),n.forEach((i,o)=>r(o)),e.deleted=!0},t.getState=()=>{if(e.deleted)return null;const i={...e,vtkClass:t.getClassName()};Object.keys(i).forEach(s=>{i[s]===null||i[s]===void 0||s[0]==="_"?delete i[s]:i[s].isA?i[s]=i[s].getState():Array.isArray(i[s])?i[s]=i[s].map(HY):uWe(i[s])&&(i[s]=Array.from(i[s]))});const o={};return Object.keys(i).sort().forEach(s=>{o[s]=i[s]}),o.mtime&&delete o.mtime,o},t.shallowCopy=function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(i.getClassName()!==t.getClassName())throw new Error(`Cannot ShallowCopy ${i.getClassName()} into ${t.getClassName()}`);const s=i.get(),l=Object.keys(e).sort();Object.keys(s).sort().forEach(c=>{const f=l.indexOf(c);f===-1?o&&l_(`add ${c} in shallowCopy`):l.splice(f,1),e[c]=s[c]}),l.length&&o&&l_(`Untouched keys: ${l.join(", ")}`),t.modified()},t.toJSON=function(){return t.getState()},t}const dWe={object(t,e,n){return function(){return{...e[n.name]}}}};function Is(t,e,n){n.forEach(r=>{if(typeof r=="object"){const a=dWe[r.type];a?t[`get${ar(r.name)}`]=a(t,e,r):t[`get${ar(r.name)}`]=()=>e[r.name]}else t[`get${ar(r)}`]=()=>e[r]})}const hWe={enum(t,e,n){const r=`_on${ar(n.name)}Changed`;return a=>{var i;if(typeof a=="string"){if(n.enum[a]!==void 0)return e[n.name]!==n.enum[a]?(e[n.name]=n.enum[a],t.modified(),!0):!1;throw un(`Set Enum with invalid argument ${n}, ${a}`),new RangeError("Set Enum with invalid string argument")}if(typeof a=="number"){if(e[n.name]!==a){if(Object.keys(n.enum).map(o=>n.enum[o]).indexOf(a)!==-1){const o=e[n.name];return e[n.name]=a,(i=e[r])==null||i.call(e,t,e,a,o),t.modified(),!0}throw un(`Set Enum outside numeric range ${n}, ${a}`),new RangeError("Set Enum outside numeric range")}return!1}throw un(`Set Enum with invalid argument (String/Number) ${n}, ${a}`),new TypeError("Set Enum with invalid argument (String/Number)")}},object(t,e,n){const r=`_on${ar(n.name)}Changed`;return a=>{var i;if(!cUe(e[n.name],a)){const o=e[n.name];return e[n.name]=a,(i=e[r])==null||i.call(e,t,e,a,o),t.modified(),!0}return!1}}};function NP(t){if(typeof t=="object"){const e=hWe[t.type];if(e)return(n,r)=>e(n,r,t);throw un(`No setter for field ${t}`),new TypeError("No setter for field")}return function(n,r){const a=`_on${ar(t)}Changed`;return function(o){var s;if(r.deleted)return un("instance deleted - cannot call any method"),!1;if(r[t]!==o){const l=r[t.name];return r[t]=o,(s=r[a])==null||s.call(r,n,r,o,l),n.modified(),!0}return!1}}}function Qy(t,e,n){n.forEach(r=>{typeof r=="object"?t[`set${ar(r.name)}`]=NP(r)(t,e):t[`set${ar(r)}`]=NP(r)(t,e)})}function Bs(t,e,n){Is(t,e,n),Qy(t,e,n)}function Jy(t,e,n){n.forEach(r=>{t[`get${ar(r)}`]=()=>e[r]?Array.from(e[r]):e[r],t[`get${ar(r)}ByReference`]=()=>e[r]})}function XA(t,e,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0;n.forEach(i=>{if(e[i]&&r&&e[i].length!==r)throw new RangeError(`Invalid initial number of values for array (${i})`);const o=`_on${ar(i)}Changed`;t[`set${ar(i)}`]=function(){var h;if(e.deleted)return un("instance deleted - cannot call any method"),!1;for(var s=arguments.length,l=new Array(s),u=0;u=0)&&(c=c[0],d=!0),c==null)f=e[i]!==c;else{if(r&&c.length!==r)if(c.length{const l=e[i];s.forEach((u,c)=>{l[c]=u})}})}function qA(t,e,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0;Jy(t,e,n),XA(t,e,n,r,a)}function vx(t,e,n){for(let r=0;r1&&arguments[1]!==void 0?arguments[1]:0;if(e.deleted){un("instance deleted - cannot call any method");return}if(p>=e.numberOfInputs){un(`algorithm ${t.getClassName()} only has ${e.numberOfInputs} input ports. To add more input ports, use addInputData()`);return}(e.inputData[p]!==h||e.inputConnection[p])&&(e.inputData[p]=h,e.inputConnection[p]=null,t.modified&&t.modified())}function i(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.inputConnection[h]&&(e.inputData[h]=e.inputConnection[h]()),e.inputData[h]}function o(h){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e.deleted){un("instance deleted - cannot call any method");return}if(p>=e.numberOfInputs){let v=`algorithm ${t.getClassName()} only has `;v+=`${e.numberOfInputs}`,v+=" input ports. To add more input ports, use addInputConnection()",un(v);return}e.inputData[p]=null,e.inputConnection[p]=h}function s(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.inputConnection[h]}function l(){let h=e.numberOfInputs;for(;h&&!e.inputData[h-1]&&!e.inputConnection[h-1];)h--;return h===e.numberOfInputs&&e.numberOfInputs++,h}function u(h){if(e.deleted){un("instance deleted - cannot call any method");return}o(h,l())}function c(h){if(e.deleted){un("instance deleted - cannot call any method");return}a(h,l())}function f(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e.deleted?(un("instance deleted - cannot call any method"),null):(t.shouldUpdate()&&t.update(),e.output[h])}t.shouldUpdate=()=>{var g,y;const h=t.getMTime();let p=1/0,v=r;for(;v--;){if(!e.output[v]||e.output[v].isDeleted())return!0;const m=e.output[v].getMTime();if(mp)return!0;return!1};function d(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const p=()=>f(h);return p.filter=t,p}if(e.numberOfInputs){let h=e.numberOfInputs;for(;h--;)e.inputData.push(null),e.inputConnection.push(null);t.setInputData=a,t.setInputConnection=o,t.addInputData=c,t.addInputConnection=u,t.getInputData=i,t.getInputConnection=s}r&&(t.getOutputData=f,t.getOutputPort=d),t.update=()=>{const h=[];if(e.numberOfInputs){let p=0;for(;pe.numberOfInputs,t.getNumberOfOutputPorts=()=>r||e.output.length,t.getInputArrayToProcess=h=>{const p=e.inputArrayToProcess[h],v=e.inputData[h];return p&&v?v[`get${p.fieldAssociation}`]().getArray(p.arrayName):null},t.setInputArrayToProcess=function(h,p,v){let g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"Scalars";for(;e.inputArrayToProcess.lengthf.apply(t,arguments),1-d);else if(f.apply(t,arguments)===ZA)break}}}t[`invoke${ar(n)}`]=l,t[`on${ar(n)}`]=function(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!u.apply)return console.error(`Invalid callback for event ${n}`),null;if(e.deleted)return un("instance deleted - cannot call any method"),null;const f=i++;return r.push([f,u,c]),r.sort((d,h)=>h[2]-d[2]),s(f)},t.delete=()=>{a(),r.forEach(u=>{let[c]=u;return o(c)})}}function Uo(t,e){const n=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const a={},i={};return t(i,a,r),Object.freeze(i)};return e&&Co.register(e,n),n}function KY(){for(var t=arguments.length,e=new Array(t),n=0;n!!o).map(o=>o(...a))}}function QA(t){return t&&t.isA&&t.isA("vtkObject")}function u_(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];if(QA(t)){if(r.indexOf(t)>=0)return n;r.push(t);const a=e(t);a!==void 0&&n.push(a);const i=t.get();Object.keys(i).forEach(o=>{const s=i[o];Array.isArray(s)?s.forEach(l=>{u_(l,e,n,r)}):u_(s,e,n,r)})}return n}function YY(t,e,n){var r=this;let a;const i=function(){for(var o=arguments.length,s=new Array(o),l=0;l{a=null,n||t.apply(u,s)},f=n&&!a;clearTimeout(a),a=setTimeout(c,e),f&&t.apply(u,s)};return i.cancel=()=>clearTimeout(a),i}function XY(t,e){let n=!1,r=null;function a(){n=!1,r!==null&&(i(...r),r=null)}function i(){for(var o=arguments.length,s=new Array(o),l=0;l2&&arguments[2]!==void 0?arguments[2]:{};e.keystore=Object.assign(e.keystore||{},n),t.setKey=(r,a)=>{e.keystore[r]=a},t.getKey=r=>e.keystore[r],t.getAllKeys=()=>Object.keys(e.keystore),t.deleteKey=r=>delete e.keystore[r],t.clearKeystore=()=>t.getAllKeys().forEach(r=>delete e.keystore[r])}let vWe=1;const Jm="__root__";function qY(t,e){JA(t,e);const n=t.delete;e.proxyId=`${vWe++}`,e.ui=JSON.parse(JSON.stringify(e.ui||[])),Is(t,e,["proxyId","proxyGroup","proxyName"]),Bs(t,e,["proxyManager"]);const r={},a={};function i(u,c){a[c]||(a[c]=[]);const f=a[c];for(let d=0;d{e.ui=JSON.parse(JSON.stringify(u||[])),Object.keys(r).forEach(c=>delete r[c]),Object.keys(a).forEach(c=>delete a[c]),i(e.ui,Jm),t.modified()};function o(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jm;return a[u]}t.updateProxyProperty=(u,c)=>{const f=r[u];f?Object.assign(f,c):r[u]={...c}},t.activate=()=>{if(e.proxyManager){const u=`setActive${ar(t.getProxyGroup().slice(0,-1))}`;e.proxyManager[u]&&e.proxyManager[u](t)}},e.propertyLinkSubscribers={},t.registerPropertyLinkForGC=(u,c)=>{c in e.propertyLinkSubscribers||(e.propertyLinkSubscribers[c]=[]),e.propertyLinkSubscribers[c].push(u)},t.gcPropertyLinks=u=>{const c=e.propertyLinkSubscribers[u]||[];for(;c.length;)c.pop().unbind(t)},e.propertyLinkMap={},t.getPropertyLink=function(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.propertyLinkMap[u])return e.propertyLinkMap[u];let f=null;const d=[];let h=0,p=!1;function v(_){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(p)return null;const w=[];let C=null;for(h=d.length;h--;){const k=d[h];k.instance===_?C=k:w.push(k)}if(!C)return null;const T=C.instance[`get${ar(C.propertyName)}`]();if(!cWe(T,f)||x){for(f=T,p=!0;w.length;){const k=w.pop();k.instance.set({[k.propertyName]:f})}p=!1}return e.propertyLinkMap[u].persistent&&(e.propertyLinkMap[u].value=T),T}function g(_,x){const w=[];for(h=d.length;h--;){const C=d[h];C.instance===_&&(C.propertyName===x||x===void 0)&&(C.subscription.unsubscribe(),w.push(h))}for(;w.length;)d.splice(w.pop(),1)}function y(_,x){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const C=_.onModified(v),T=d[0];return d.push({instance:_,propertyName:x,subscription:C}),w&&(e.propertyLinkMap[u].persistent&&e.propertyLinkMap[u].value!==void 0?_.set({[x]:e.propertyLinkMap[u].value}):T&&v(T.instance,!0)),{unsubscribe:()=>g(_,x)}}function m(){for(;d.length;)d.pop().subscription.unsubscribe()}const b={bind:y,unbind:g,unsubscribe:m,persistent:c};return e.propertyLinkMap[u]=b,b};function s(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jm;const c=[],f=e.proxyId,d=o(u)||[];for(let h=0;hs().map(u=>u.name),t.getPropertyByName=u=>s().find(c=>c.name===u),t.getPropertyDomainByName=u=>(r[u]||{}).domain,t.getProxySection=()=>({id:e.proxyId,name:e.proxyGroup,ui:e.ui,properties:s()}),t.delete=()=>{const u=Object.keys(e.propertyLinkMap);let c=u.length;for(;c--;)e.propertyLinkMap[u[c]].unsubscribe();Object.keys(e.propertyLinkSubscribers).forEach(t.gcPropertyLinks),n()},t.getState=()=>null;function l(){if(e.links)for(let u=0;u{for(;a.length;)a.pop().unsubscribe();r()}}function QY(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};e.this=t;function a(s){const l=Object.keys(s);let u=l.length;for(;u--;){const c=l[u];e[c].set(s[c])}}const i=Object.keys(r);let o=i.length;for(;o--;){const s=i[o];e[s]=r[s];const l=n[s];t[`set${ar(s)}`]=u=>{if(u!==e[s]){e[s]=u;const c=l[u];a(c),t.modified()}}}i.length&&Is(t,e,i)}const $P=10,IP=40,BP=800;function JY(t){let e=0,n=0,r=0,a=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),r=e*$P,a=n*$P,"deltaY"in t&&(a=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||a)&&t.deltaMode&&(t.deltaMode===1?(r*=IP,a*=IP):(r*=BP,a*=BP)),r&&!e&&(e=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:e,spinY:n||e,pixelX:r,pixelY:a||r}}var Q={algo:WY,capitalize:hx,chain:KY,debounce:YY,enumToString:fWe,event:jY,EVENT_ABORT:ZA,formatBytesToProperUnit:FY,formatNumbersWithThousandSeparator:zY,get:Is,getArray:Jy,getCurrentGlobalMTime:sWe,getStateArrayMapFunc:HY,isVtkObject:QA,keystore:JA,measurePromiseExecution:UY,moveToProtected:vx,newInstance:Uo,newTypedArray:Qv,newTypedArrayFrom:KA,normalizeWheel:JY,obj:$o,proxy:qY,proxyPropertyMapping:ZY,proxyPropertyState:QY,safeArrays:GY,set:Qy,setArray:XA,setGet:Bs,setGetArray:qA,setImmediate:YA,setLoggerFunction:$Y,throttle:XY,traverseInstanceTree:u_,TYPED_ARRAYS:ha,uncapitalize:PY,VOID:OY,vtkDebugMacro:l_,vtkErrorMacro:un,vtkInfoMacro:BY,vtkLogMacro:IY,vtkOnceErrorMacro:VY,vtkWarningMacro:jA},px=Object.freeze({__proto__:null,VOID:OY,setLoggerFunction:$Y,vtkLogMacro:IY,vtkInfoMacro:BY,vtkDebugMacro:l_,vtkErrorMacro:un,vtkWarningMacro:jA,vtkOnceErrorMacro:VY,TYPED_ARRAYS:ha,newTypedArray:Qv,newTypedArrayFrom:KA,capitalize:hx,_capitalize:ar,uncapitalize:PY,formatBytesToProperUnit:FY,formatNumbersWithThousandSeparator:zY,setImmediateVTK:YA,measurePromiseExecution:UY,obj:$o,get:Is,set:Qy,setGet:Bs,getArray:Jy,setArray:XA,setGetArray:qA,moveToProtected:vx,algo:WY,EVENT_ABORT:ZA,event:jY,newInstance:Uo,chain:KY,isVtkObject:QA,traverseInstanceTree:u_,debounce:YY,throttle:XY,keystore:JA,proxy:qY,proxyPropertyMapping:ZY,proxyPropertyState:QY,normalizeWheel:JY,default:Q}),gn=1e-6,Pr=typeof Float32Array<"u"?Float32Array:Array,pWe=Math.PI/180;function gWe(t){return t*pWe}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function eX(){var t=new Pr(9);return Pr!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function yWe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function mWe(t){var e=new Pr(9);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[6]=t[6],e[7]=t[7],e[8]=t[8],e}function bWe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function SWe(t,e,n,r,a,i,o,s,l){var u=new Pr(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=a,u[5]=i,u[6]=o,u[7]=s,u[8]=l,u}function _We(t,e,n,r,a,i,o,s,l,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t}function tX(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function wWe(t,e){if(t===e){var n=e[1],r=e[2],a=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=a}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function xWe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=c*o-s*u,d=-c*i+s*l,h=u*i-o*l,p=n*f+r*d+a*h;return p?(p=1/p,t[0]=f*p,t[1]=(-c*r+a*u)*p,t[2]=(s*r-a*o)*p,t[3]=d*p,t[4]=(c*n-a*l)*p,t[5]=(-s*n+a*i)*p,t[6]=h*p,t[7]=(-u*n+r*l)*p,t[8]=(o*n-r*i)*p,t):null}function CWe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t[0]=o*c-s*u,t[1]=a*u-r*c,t[2]=r*s-a*o,t[3]=s*l-i*c,t[4]=n*c-a*l,t[5]=a*i-n*s,t[6]=i*u-o*l,t[7]=r*l-n*u,t[8]=n*o-r*i,t}function TWe(t){var e=t[0],n=t[1],r=t[2],a=t[3],i=t[4],o=t[5],s=t[6],l=t[7],u=t[8];return e*(u*i-o*l)+n*(-u*a+o*s)+r*(l*a-i*s)}function nX(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=n[0],h=n[1],p=n[2],v=n[3],g=n[4],y=n[5],m=n[6],b=n[7],_=n[8];return t[0]=d*r+h*o+p*u,t[1]=d*a+h*s+p*c,t[2]=d*i+h*l+p*f,t[3]=v*r+g*o+y*u,t[4]=v*a+g*s+y*c,t[5]=v*i+g*l+y*f,t[6]=m*r+b*o+_*u,t[7]=m*a+b*s+_*c,t[8]=m*i+b*l+_*f,t}function EWe(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=n[0],h=n[1];return t[0]=r,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t[6]=d*r+h*o+u,t[7]=d*a+h*s+c,t[8]=d*i+h*l+f,t}function MWe(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=Math.sin(n),h=Math.cos(n);return t[0]=h*r+d*o,t[1]=h*a+d*s,t[2]=h*i+d*l,t[3]=h*o-d*r,t[4]=h*s-d*a,t[5]=h*l-d*i,t[6]=u,t[7]=c,t[8]=f,t}function kWe(t,e,n){var r=n[0],a=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=a*e[3],t[4]=a*e[4],t[5]=a*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function DWe(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function RWe(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function LWe(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function AWe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function OWe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=n+n,s=r+r,l=a+a,u=n*o,c=r*o,f=r*s,d=a*o,h=a*s,p=a*l,v=i*o,g=i*s,y=i*l;return t[0]=1-f-p,t[3]=c-y,t[6]=d+g,t[1]=c+y,t[4]=1-u-p,t[7]=h-v,t[2]=d-g,t[5]=h+v,t[8]=1-u-f,t}function NWe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*o,b=n*l-a*o,_=n*u-i*o,x=r*l-a*s,w=r*u-i*s,C=a*u-i*l,T=c*v-f*p,k=c*g-d*p,E=c*y-h*p,M=f*g-d*v,D=f*y-h*v,R=d*y-h*g,A=m*R-b*D+_*M+x*E-w*k+C*T;return A?(A=1/A,t[0]=(s*R-l*D+u*M)*A,t[1]=(l*E-o*R-u*k)*A,t[2]=(o*D-s*E+u*T)*A,t[3]=(a*D-r*R-i*M)*A,t[4]=(n*R-a*E+i*k)*A,t[5]=(r*E-n*D-i*T)*A,t[6]=(v*C-g*w+y*x)*A,t[7]=(g*_-p*C-y*b)*A,t[8]=(p*w-v*_+y*m)*A,t):null}function $We(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function IWe(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function BWe(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function VWe(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function rX(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function PWe(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function FWe(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function zWe(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function GWe(t,e){var n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=e[0],d=e[1],h=e[2],p=e[3],v=e[4],g=e[5],y=e[6],m=e[7],b=e[8];return Math.abs(n-f)<=gn*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-d)<=gn*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(a-h)<=gn*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(i-p)<=gn*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-v)<=gn*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-g)<=gn*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-y)<=gn*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-m)<=gn*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-b)<=gn*Math.max(1,Math.abs(c),Math.abs(b))}var HWe=nX,UWe=rX;const l2t=Object.freeze(Object.defineProperty({__proto__:null,add:VWe,adjoint:CWe,clone:mWe,copy:bWe,create:eX,determinant:TWe,equals:GWe,exactEquals:zWe,frob:BWe,fromMat2d:AWe,fromMat4:yWe,fromQuat:OWe,fromRotation:RWe,fromScaling:LWe,fromTranslation:DWe,fromValues:SWe,identity:tX,invert:xWe,mul:HWe,multiply:nX,multiplyScalar:PWe,multiplyScalarAndAdd:FWe,normalFromMat4:NWe,projection:$We,rotate:MWe,scale:kWe,set:_We,str:IWe,sub:UWe,subtract:rX,translate:EWe,transpose:wWe},Symbol.toStringTag,{value:"Module"}));function eO(){var t=new Pr(16);return Pr!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function WWe(t){var e=new Pr(16);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[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Js(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function jWe(t,e,n,r,a,i,o,s,l,u,c,f,d,h,p,v){var g=new Pr(16);return g[0]=t,g[1]=e,g[2]=n,g[3]=r,g[4]=a,g[5]=i,g[6]=o,g[7]=s,g[8]=l,g[9]=u,g[10]=c,g[11]=f,g[12]=d,g[13]=h,g[14]=p,g[15]=v,g}function KWe(t,e,n,r,a,i,o,s,l,u,c,f,d,h,p,v,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=f,t[11]=d,t[12]=h,t[13]=p,t[14]=v,t[15]=g,t}function zn(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function oi(t,e){if(t===e){var n=e[1],r=e[2],a=e[3],i=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=i,t[11]=e[14],t[12]=a,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function ms(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*o,b=n*l-a*o,_=n*u-i*o,x=r*l-a*s,w=r*u-i*s,C=a*u-i*l,T=c*v-f*p,k=c*g-d*p,E=c*y-h*p,M=f*g-d*v,D=f*y-h*v,R=d*y-h*g,A=m*R-b*D+_*M+x*E-w*k+C*T;return A?(A=1/A,t[0]=(s*R-l*D+u*M)*A,t[1]=(a*D-r*R-i*M)*A,t[2]=(v*C-g*w+y*x)*A,t[3]=(d*w-f*C-h*x)*A,t[4]=(l*E-o*R-u*k)*A,t[5]=(n*R-a*E+i*k)*A,t[6]=(g*_-p*C-y*b)*A,t[7]=(c*C-d*_+h*b)*A,t[8]=(o*D-s*E+u*T)*A,t[9]=(r*E-n*D-i*T)*A,t[10]=(p*w-v*_+y*m)*A,t[11]=(f*_-c*w-h*m)*A,t[12]=(s*k-o*M-l*T)*A,t[13]=(n*M-r*k+a*T)*A,t[14]=(v*b-p*x-g*m)*A,t[15]=(c*x-f*b+d*m)*A,t):null}function YWe(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15];return t[0]=s*(d*y-h*g)-f*(l*y-u*g)+v*(l*h-u*d),t[1]=-(r*(d*y-h*g)-f*(a*y-i*g)+v*(a*h-i*d)),t[2]=r*(l*y-u*g)-s*(a*y-i*g)+v*(a*u-i*l),t[3]=-(r*(l*h-u*d)-s*(a*h-i*d)+f*(a*u-i*l)),t[4]=-(o*(d*y-h*g)-c*(l*y-u*g)+p*(l*h-u*d)),t[5]=n*(d*y-h*g)-c*(a*y-i*g)+p*(a*h-i*d),t[6]=-(n*(l*y-u*g)-o*(a*y-i*g)+p*(a*u-i*l)),t[7]=n*(l*h-u*d)-o*(a*h-i*d)+c*(a*u-i*l),t[8]=o*(f*y-h*v)-c*(s*y-u*v)+p*(s*h-u*f),t[9]=-(n*(f*y-h*v)-c*(r*y-i*v)+p*(r*h-i*f)),t[10]=n*(s*y-u*v)-o*(r*y-i*v)+p*(r*u-i*s),t[11]=-(n*(s*h-u*f)-o*(r*h-i*f)+c*(r*u-i*s)),t[12]=-(o*(f*g-d*v)-c*(s*g-l*v)+p*(s*d-l*f)),t[13]=n*(f*g-d*v)-c*(r*g-a*v)+p*(r*d-a*f),t[14]=-(n*(s*g-l*v)-o*(r*g-a*v)+p*(r*l-a*s)),t[15]=n*(s*d-l*f)-o*(r*d-a*f)+c*(r*l-a*s),t}function XWe(t){var e=t[0],n=t[1],r=t[2],a=t[3],i=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],d=t[11],h=t[12],p=t[13],v=t[14],g=t[15],y=e*o-n*i,m=e*s-r*i,b=e*l-a*i,_=n*s-r*o,x=n*l-a*o,w=r*l-a*s,C=u*p-c*h,T=u*v-f*h,k=u*g-d*h,E=c*v-f*p,M=c*g-d*p,D=f*g-d*v;return y*D-m*M+b*E+_*k-x*T+w*C}function Ja(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],d=e[9],h=e[10],p=e[11],v=e[12],g=e[13],y=e[14],m=e[15],b=n[0],_=n[1],x=n[2],w=n[3];return t[0]=b*r+_*s+x*f+w*v,t[1]=b*a+_*l+x*d+w*g,t[2]=b*i+_*u+x*h+w*y,t[3]=b*o+_*c+x*p+w*m,b=n[4],_=n[5],x=n[6],w=n[7],t[4]=b*r+_*s+x*f+w*v,t[5]=b*a+_*l+x*d+w*g,t[6]=b*i+_*u+x*h+w*y,t[7]=b*o+_*c+x*p+w*m,b=n[8],_=n[9],x=n[10],w=n[11],t[8]=b*r+_*s+x*f+w*v,t[9]=b*a+_*l+x*d+w*g,t[10]=b*i+_*u+x*h+w*y,t[11]=b*o+_*c+x*p+w*m,b=n[12],_=n[13],x=n[14],w=n[15],t[12]=b*r+_*s+x*f+w*v,t[13]=b*a+_*l+x*d+w*g,t[14]=b*i+_*u+x*h+w*y,t[15]=b*o+_*c+x*p+w*m,t}function ia(t,e,n){var r=n[0],a=n[1],i=n[2],o,s,l,u,c,f,d,h,p,v,g,y;return e===t?(t[12]=e[0]*r+e[4]*a+e[8]*i+e[12],t[13]=e[1]*r+e[5]*a+e[9]*i+e[13],t[14]=e[2]*r+e[6]*a+e[10]*i+e[14],t[15]=e[3]*r+e[7]*a+e[11]*i+e[15]):(o=e[0],s=e[1],l=e[2],u=e[3],c=e[4],f=e[5],d=e[6],h=e[7],p=e[8],v=e[9],g=e[10],y=e[11],t[0]=o,t[1]=s,t[2]=l,t[3]=u,t[4]=c,t[5]=f,t[6]=d,t[7]=h,t[8]=p,t[9]=v,t[10]=g,t[11]=y,t[12]=o*r+c*a+p*i+e[12],t[13]=s*r+f*a+v*i+e[13],t[14]=l*r+d*a+g*i+e[14],t[15]=u*r+h*a+y*i+e[15]),t}function td(t,e,n){var r=n[0],a=n[1],i=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function uo(t,e,n,r){var a=r[0],i=r[1],o=r[2],s=Math.hypot(a,i,o),l,u,c,f,d,h,p,v,g,y,m,b,_,x,w,C,T,k,E,M,D,R,A,V;return s0?(n[0]=(s*o+c*r+l*i-u*a)*2/f,n[1]=(l*o+c*a+u*r-s*i)*2/f,n[2]=(u*o+c*i+s*a-l*r)*2/f):(n[0]=(s*o+c*r+l*i-u*a)*2,n[1]=(l*o+c*a+u*r-s*i)*2,n[2]=(u*o+c*i+s*a-l*r)*2),sX(t,e,n),t}function e9e(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function lX(t,e){var n=e[0],r=e[1],a=e[2],i=e[4],o=e[5],s=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.hypot(n,r,a),t[1]=Math.hypot(i,o,s),t[2]=Math.hypot(l,u,c),t}function uX(t,e){var n=new Pr(3);lX(n,e);var r=1/n[0],a=1/n[1],i=1/n[2],o=e[0]*r,s=e[1]*a,l=e[2]*i,u=e[4]*r,c=e[5]*a,f=e[6]*i,d=e[8]*r,h=e[9]*a,p=e[10]*i,v=o+c+p,g=0;return v>0?(g=Math.sqrt(v+1)*2,t[3]=.25*g,t[0]=(f-h)/g,t[1]=(d-l)/g,t[2]=(s-u)/g):o>c&&o>p?(g=Math.sqrt(1+o-c-p)*2,t[3]=(f-h)/g,t[0]=.25*g,t[1]=(s+u)/g,t[2]=(d+l)/g):c>p?(g=Math.sqrt(1+c-o-p)*2,t[3]=(d-l)/g,t[0]=(s+u)/g,t[1]=.25*g,t[2]=(f+h)/g):(g=Math.sqrt(1+p-o-c)*2,t[3]=(s-u)/g,t[0]=(d+l)/g,t[1]=(f+h)/g,t[2]=.25*g),t}function cX(t,e,n,r){var a=e[0],i=e[1],o=e[2],s=e[3],l=a+a,u=i+i,c=o+o,f=a*l,d=a*u,h=a*c,p=i*u,v=i*c,g=o*c,y=s*l,m=s*u,b=s*c,_=r[0],x=r[1],w=r[2];return t[0]=(1-(p+g))*_,t[1]=(d+b)*_,t[2]=(h-m)*_,t[3]=0,t[4]=(d-b)*x,t[5]=(1-(f+g))*x,t[6]=(v+y)*x,t[7]=0,t[8]=(h+m)*w,t[9]=(v-y)*w,t[10]=(1-(f+p))*w,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function t9e(t,e,n,r,a){var i=e[0],o=e[1],s=e[2],l=e[3],u=i+i,c=o+o,f=s+s,d=i*u,h=i*c,p=i*f,v=o*c,g=o*f,y=s*f,m=l*u,b=l*c,_=l*f,x=r[0],w=r[1],C=r[2],T=a[0],k=a[1],E=a[2],M=(1-(v+y))*x,D=(h+_)*x,R=(p-b)*x,A=(h-_)*w,V=(1-(d+y))*w,P=(g+m)*w,N=(p+b)*C,I=(g-m)*C,L=(1-(d+v))*C;return t[0]=M,t[1]=D,t[2]=R,t[3]=0,t[4]=A,t[5]=V,t[6]=P,t[7]=0,t[8]=N,t[9]=I,t[10]=L,t[11]=0,t[12]=n[0]+T-(M*T+A*k+N*E),t[13]=n[1]+k-(D*T+V*k+I*E),t[14]=n[2]+E-(R*T+P*k+L*E),t[15]=1,t}function aO(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=n+n,s=r+r,l=a+a,u=n*o,c=r*o,f=r*s,d=a*o,h=a*s,p=a*l,v=i*o,g=i*s,y=i*l;return t[0]=1-f-p,t[1]=c+y,t[2]=d-g,t[3]=0,t[4]=c-y,t[5]=1-u-p,t[6]=h+v,t[7]=0,t[8]=d+g,t[9]=h-v,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function n9e(t,e,n,r,a,i,o){var s=1/(n-e),l=1/(a-r),u=1/(i-o);return t[0]=i*2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i*2*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(a+r)*l,t[10]=(o+i)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*u,t[15]=0,t}function fX(t,e,n,r,a){var i=1/Math.tan(e/2),o;return t[0]=i/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,a!=null&&a!==1/0?(o=1/(r-a),t[10]=(a+r)*o,t[14]=2*a*r*o):(t[10]=-1,t[14]=-2*r),t}var r9e=fX;function a9e(t,e,n,r,a){var i=1/Math.tan(e/2),o;return t[0]=i/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,a!=null&&a!==1/0?(o=1/(r-a),t[10]=a*o,t[14]=a*r*o):(t[10]=-1,t[14]=-r),t}function i9e(t,e,n,r){var a=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(a+i);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-((o-s)*l*.5),t[9]=(a-i)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function dX(t,e,n,r,a,i,o){var s=1/(e-n),l=1/(r-a),u=1/(i-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(a+r)*l,t[14]=(o+i)*u,t[15]=1,t}var hX=dX;function o9e(t,e,n,r,a,i,o){var s=1/(e-n),l=1/(r-a),u=1/(i-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=u,t[11]=0,t[12]=(e+n)*s,t[13]=(a+r)*l,t[14]=i*u,t[15]=1,t}function vX(t,e,n,r){var a,i,o,s,l,u,c,f,d,h,p=e[0],v=e[1],g=e[2],y=r[0],m=r[1],b=r[2],_=n[0],x=n[1],w=n[2];return Math.abs(p-_)0&&(h=1/Math.sqrt(h),c*=h,f*=h,d*=h);var p=l*d-u*f,v=u*c-s*d,g=s*f-l*c;return h=p*p+v*v+g*g,h>0&&(h=1/Math.sqrt(h),p*=h,v*=h,g*=h),t[0]=p,t[1]=v,t[2]=g,t[3]=0,t[4]=f*g-d*v,t[5]=d*p-c*g,t[6]=c*v-f*p,t[7]=0,t[8]=c,t[9]=f,t[10]=d,t[11]=0,t[12]=a,t[13]=i,t[14]=o,t[15]=1,t}function l9e(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function u9e(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function c9e(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function pX(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function f9e(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function d9e(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function h9e(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function v9e(t,e){var n=t[0],r=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],g=t[14],y=t[15],m=e[0],b=e[1],_=e[2],x=e[3],w=e[4],C=e[5],T=e[6],k=e[7],E=e[8],M=e[9],D=e[10],R=e[11],A=e[12],V=e[13],P=e[14],N=e[15];return Math.abs(n-m)<=gn*Math.max(1,Math.abs(n),Math.abs(m))&&Math.abs(r-b)<=gn*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(a-_)<=gn*Math.max(1,Math.abs(a),Math.abs(_))&&Math.abs(i-x)<=gn*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-w)<=gn*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(s-C)<=gn*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(l-T)<=gn*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(u-k)<=gn*Math.max(1,Math.abs(u),Math.abs(k))&&Math.abs(c-E)<=gn*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(f-M)<=gn*Math.max(1,Math.abs(f),Math.abs(M))&&Math.abs(d-D)<=gn*Math.max(1,Math.abs(d),Math.abs(D))&&Math.abs(h-R)<=gn*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(p-A)<=gn*Math.max(1,Math.abs(p),Math.abs(A))&&Math.abs(v-V)<=gn*Math.max(1,Math.abs(v),Math.abs(V))&&Math.abs(g-P)<=gn*Math.max(1,Math.abs(g),Math.abs(P))&&Math.abs(y-N)<=gn*Math.max(1,Math.abs(y),Math.abs(N))}var p9e=Ja,g9e=pX;const u2t=Object.freeze(Object.defineProperty({__proto__:null,add:c9e,adjoint:YWe,clone:WWe,copy:Js,create:eO,determinant:XWe,equals:v9e,exactEquals:h9e,frob:u9e,fromQuat:aO,fromQuat2:JWe,fromRotation:oX,fromRotationTranslation:sX,fromRotationTranslationScale:cX,fromRotationTranslationScaleOrigin:t9e,fromScaling:iX,fromTranslation:aX,fromValues:jWe,fromXRotation:qWe,fromYRotation:ZWe,fromZRotation:QWe,frustum:n9e,getRotation:uX,getScaling:lX,getTranslation:e9e,identity:zn,invert:ms,lookAt:vX,mul:p9e,multiply:Ja,multiplyScalar:f9e,multiplyScalarAndAdd:d9e,ortho:hX,orthoNO:dX,orthoZO:o9e,perspective:r9e,perspectiveFromFieldOfView:i9e,perspectiveNO:fX,perspectiveZO:a9e,rotate:uo,rotateX:tO,rotateY:nO,rotateZ:rO,scale:td,set:KWe,str:l9e,sub:g9e,subtract:pX,targetTo:s9e,translate:ia,transpose:oi},Symbol.toStringTag,{value:"Module"}));function gX(){var t=new Pr(3);return Pr!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function Nk(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function VP(t,e,n){var r=new Pr(3);return r[0]=t,r[1]=e,r[2]=n,r}function os(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function c2t(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function $k(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function f2t(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function y9e(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function jh(t,e){var n=e[0],r=e[1],a=e[2],i=n*n+r*r+a*a;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function yX(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Kh(t,e,n){var r=e[0],a=e[1],i=e[2],o=n[0],s=n[1],l=n[2];return t[0]=a*l-i*s,t[1]=i*o-r*l,t[2]=r*s-a*o,t}function tr(t,e,n){var r=e[0],a=e[1],i=e[2],o=n[3]*r+n[7]*a+n[11]*i+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*a+n[8]*i+n[12])/o,t[1]=(n[1]*r+n[5]*a+n[9]*i+n[13])/o,t[2]=(n[2]*r+n[6]*a+n[10]*i+n[14])/o,t}function PP(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function FP(t,e){var n=t[0],r=t[1],a=t[2],i=e[0],o=e[1],s=e[2];return Math.abs(n-i)<=gn*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-o)<=gn*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(a-s)<=gn*Math.max(1,Math.abs(a),Math.abs(s))}var zP=$k,m9e=Nk;(function(){var t=gX();return function(e,n,r,a,i,o){var s,l;for(n||(n=3),r||(r=0),a?l=Math.min(a*n+r,e.length):l=e.length,s=r;s0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=a*o,t[3]=i*o,t}function e1(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3];return t[0]=n[0]*r+n[4]*a+n[8]*i+n[12]*o,t[1]=n[1]*r+n[5]*a+n[9]*i+n[13]*o,t[2]=n[2]*r+n[6]*a+n[10]*i+n[14]*o,t[3]=n[3]*r+n[7]*a+n[11]*i+n[15]*o,t}(function(){var t=b9e();return function(e,n,r,a,i,o){var s,l;for(n||(n=4),r||(r=0),a?l=Math.min(a*n+r,e.length):l=e.length,s=r;sgn?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n}function GP(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+o*s+a*u-i*l,t[1]=a*c+o*l+i*s-r*u,t[2]=i*c+o*u+r*l-a*s,t[3]=o*c-r*s-a*l-i*u,t}function eS(t,e,n,r){var a=e[0],i=e[1],o=e[2],s=e[3],l=n[0],u=n[1],c=n[2],f=n[3],d,h,p,v,g;return h=a*l+i*u+o*c+s*f,h<0&&(h=-h,l=-l,u=-u,c=-c,f=-f),1-h>gn?(d=Math.acos(h),p=Math.sin(d),v=Math.sin((1-r)*d)/p,g=Math.sin(r*d)/p):(v=1-r,g=r),t[0]=v*a+g*l,t[1]=v*i+g*u,t[2]=v*o+g*c,t[3]=v*s+g*f,t}function x9e(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function C9e(t,e){var n=e[0]+e[4]+e[8],r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var a=0;e[4]>e[0]&&(a=1),e[8]>e[a*3+a]&&(a=2);var i=(a+1)%3,o=(a+2)%3;r=Math.sqrt(e[a*3+a]-e[i*3+i]-e[o*3+o]+1),t[a]=.5*r,r=.5/r,t[3]=(e[i*3+o]-e[o*3+i])*r,t[i]=(e[i*3+a]+e[a*3+i])*r,t[o]=(e[o*3+a]+e[a*3+o])*r}return t}var HP=S9e,mX=_9e;(function(){var t=gX(),e=VP(1,0,0),n=VP(0,1,0);return function(r,a,i){var o=yX(a,i);return o<-.999999?(Kh(t,e,a),m9e(t)<1e-6&&Kh(t,n,a),jh(t,t),iO(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Kh(t,a,i),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,mX(r,r))}})();(function(){var t=nd(),e=nd();return function(n,r,a,i,o,s){return eS(t,r,o,s),eS(e,a,i,s),eS(n,t,e,2*s*(1-s)),n}})();(function(){var t=eX();return function(e,n,r,a){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=a[0],t[4]=a[1],t[7]=a[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],mX(e,C9e(e,t))}})();var oO={exports:{}};oO.exports;(function(t){(function(e,n,r){function a(l){var u=this,c=s();u.next=function(){var f=2091639*u.s0+u.c*23283064365386963e-26;return u.s0=u.s1,u.s1=u.s2,u.s2=f-(u.c=f|0)},u.c=1,u.s0=c(" "),u.s1=c(" "),u.s2=c(" "),u.s0-=c(l),u.s0<0&&(u.s0+=1),u.s1-=c(l),u.s1<0&&(u.s1+=1),u.s2-=c(l),u.s2<0&&(u.s2+=1),c=null}function i(l,u){return u.c=l.c,u.s0=l.s0,u.s1=l.s1,u.s2=l.s2,u}function o(l,u){var c=new a(l),f=u&&u.state,d=c.next;return d.int32=function(){return c.next()*4294967296|0},d.double=function(){return d()+(d()*2097152|0)*11102230246251565e-32},d.quick=d,f&&(typeof f=="object"&&i(f,c),d.state=function(){return i(c,{})}),d}function s(){var l=4022871197,u=function(c){c=String(c);for(var f=0;f>>0,d-=l,d*=l,l=d>>>0,d-=l,l+=d*4294967296}return(l>>>0)*23283064365386963e-26};return u}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.alea=o})(sr,t,!1)})(oO);var T9e=oO.exports,sO={exports:{}};sO.exports;(function(t){(function(e,n,r){function a(s){var l=this,u="";l.x=0,l.y=0,l.z=0,l.w=0,l.next=function(){var f=l.x^l.x<<11;return l.x=l.y,l.y=l.z,l.z=l.w,l.w^=l.w>>>19^f^f>>>8},s===(s|0)?l.x=s:u+=s;for(var c=0;c>>0)/4294967296};return f.double=function(){do var d=u.next()>>>11,h=(u.next()>>>0)/4294967296,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.xor128=o})(sr,t,!1)})(sO);var E9e=sO.exports,lO={exports:{}};lO.exports;(function(t){(function(e,n,r){function a(s){var l=this,u="";l.next=function(){var f=l.x^l.x>>>2;return l.x=l.y,l.y=l.z,l.z=l.w,l.w=l.v,(l.d=l.d+362437|0)+(l.v=l.v^l.v<<4^(f^f<<1))|0},l.x=0,l.y=0,l.z=0,l.w=0,l.v=0,s===(s|0)?l.x=s:u+=s;for(var c=0;c>>4),l.next()}function i(s,l){return l.x=s.x,l.y=s.y,l.z=s.z,l.w=s.w,l.v=s.v,l.d=s.d,l}function o(s,l){var u=new a(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var d=u.next()>>>11,h=(u.next()>>>0)/4294967296,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.xorwow=o})(sr,t,!1)})(lO);var M9e=lO.exports,uO={exports:{}};uO.exports;(function(t){(function(e,n,r){function a(s){var l=this;l.next=function(){var c=l.x,f=l.i,d,h;return d=c[f],d^=d>>>7,h=d^d<<24,d=c[f+1&7],h^=d^d>>>10,d=c[f+3&7],h^=d^d>>>3,d=c[f+4&7],h^=d^d<<7,d=c[f+7&7],d=d^d<<13,h^=d^d<<9,c[f]=h,l.i=f+1&7,h};function u(c,f){var d,h=[];if(f===(f|0))h[0]=f;else for(f=""+f,d=0;d0;--d)c.next()}u(l,s)}function i(s,l){return l.x=s.x.slice(),l.i=s.i,l}function o(s,l){s==null&&(s=+new Date);var u=new a(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var d=u.next()>>>11,h=(u.next()>>>0)/4294967296,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(c.x&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.xorshift7=o})(sr,t,!1)})(uO);var k9e=uO.exports,cO={exports:{}};cO.exports;(function(t){(function(e,n,r){function a(s){var l=this;l.next=function(){var c=l.w,f=l.X,d=l.i,h,p;return l.w=c=c+1640531527|0,p=f[d+34&127],h=f[d=d+1&127],p^=p<<13,h^=h<<17,p^=p>>>15,h^=h>>>12,p=f[d]=p^h,l.i=d,p+(c^c>>>16)|0};function u(c,f){var d,h,p,v,g,y=[],m=128;for(f===(f|0)?(h=f,f=null):(f=f+"\0",h=0,m=Math.max(m,f.length)),p=0,v=-32;v>>15,h^=h<<4,h^=h>>>13,v>=0&&(g=g+1640531527|0,d=y[v&127]^=h+g,p=d==0?p+1:0);for(p>=128&&(y[(f&&f.length||0)&127]=-1),p=127,v=4*128;v>0;--v)h=y[p+34&127],d=y[p=p+1&127],h^=h<<13,d^=d<<17,h^=h>>>15,d^=d>>>12,y[p]=h^d;c.w=g,c.X=y,c.i=p}u(l,s)}function i(s,l){return l.i=s.i,l.w=s.w,l.X=s.X.slice(),l}function o(s,l){s==null&&(s=+new Date);var u=new a(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var d=u.next()>>>11,h=(u.next()>>>0)/4294967296,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(c.X&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.xor4096=o})(sr,t,!1)})(cO);var D9e=cO.exports,fO={exports:{}};fO.exports;(function(t){(function(e,n,r){function a(s){var l=this,u="";l.next=function(){var f=l.b,d=l.c,h=l.d,p=l.a;return f=f<<25^f>>>7^d,d=d-h|0,h=h<<24^h>>>8^p,p=p-f|0,l.b=f=f<<20^f>>>12^d,l.c=d=d-h|0,l.d=h<<16^d>>>16^p,l.a=p-f|0},l.a=0,l.b=0,l.c=-1640531527,l.d=1367130551,s===Math.floor(s)?(l.a=s/4294967296|0,l.b=s|0):u+=s;for(var c=0;c>>0)/4294967296};return f.double=function(){do var d=u.next()>>>11,h=(u.next()>>>0)/4294967296,p=(d+h)/(1<<21);while(p===0);return p},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=o:r&&r.amd?r(function(){return o}):this.tychei=o})(sr,t,!1)})(fO);var R9e=fO.exports,bX={exports:{}};const L9e={},A9e=Object.freeze(Object.defineProperty({__proto__:null,default:L9e},Symbol.toStringTag,{value:"Module"})),O9e=Kce(A9e);(function(t){(function(e,n,r){var a=256,i=6,o=52,s="random",l=r.pow(a,i),u=r.pow(2,o),c=u*2,f=a-1,d;function h(_,x,w){var C=[];x=x==!0?{entropy:!0}:x||{};var T=y(g(x.entropy?[_,b(n)]:_??m(),3),C),k=new p(C),E=function(){for(var M=k.g(i),D=l,R=0;M=c;)M/=2,D/=2,R>>>=1;return(M+R)/D};return E.int32=function(){return k.g(4)|0},E.quick=function(){return k.g(4)/4294967296},E.double=E,y(b(k.S),n),(x.pass||w||function(M,D,R,A){return A&&(A.S&&v(A,k),M.state=function(){return v(k,{})}),R?(r[s]=M,D):M})(E,T,"global"in x?x.global:this==r,x.state)}function p(_){var x,w=_.length,C=this,T=0,k=C.i=C.j=0,E=C.S=[];for(w||(_=[w++]);T0&&arguments[0]!==void 0?arguments[0]:3;const e=Array(t);for(let n=0;n0&&arguments[0]!==void 0?arguments[0]:0;const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:1)-t;return t+n*Math.random()}function Bk(t,e,n){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n[2]=t[2]+e[2],n}function Du(t,e,n){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n[2]=t[2]-e[2],n}function WP(t,e,n,r){return r[0]=t[0]+e[0]*n,r[1]=t[1]+e[1]*n,r[2]=t[2]+e[2]*n,r}function dn(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function q0(t,e,n){const r=t[1]*e[2]-t[2]*e[1],a=t[2]*e[0]-t[0]*e[2],i=t[0]*e[1]-t[1]*e[0];return n[0]=r,n[1]=a,n[2]=i,n}function SX(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3;switch(e){case 1:return Math.abs(t);case 2:return Math.sqrt(t[0]*t[0]+t[1]*t[1]);case 3:return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);default:{let n=0;for(let r=0;r2&&arguments[2]!==void 0?arguments[2]:G9e;if(t.length!==e.length)return!1;function r(a,i){return Math.abs(a-e[i])<=n}return t.every(r)}const _X=j9e;function dC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!`${t}`.includes("e"))return+`${Math.round(`${t}e+${e}`)}e-${e}`;const n=`${t}`.split("e");let r="";return+n[1]+e>0&&(r="+"),+`${Math.round(`${+n[0]}e${r}${+n[1]+e}`)}e-${e}`}function jP(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[0,0,0],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return e[0]=dC(t[0],n),e[1]=dC(t[1],n),e[2]=dC(t[2],n),e}function K9e(t,e,n){let r,a,i,o,s=0,l,u,c;const f=Ik(n);for(r=0;ro&&(o=c);if(o===0)return UP("Unable to factor linear system"),0;f[r]=1/o}for(a=0;a=o&&(o=u,s=r)}if(a!==s){for(i=0;i=0)for(i=o;i<=a-1;i++)l-=t[a*r+i]*n[i];else l!==0&&(o=a);n[a]=l}for(a=r-1;a>=0;a--){for(l=n[a],i=a+1;ic?c=i:ic?c=o:o0?r=(c-f)/c:r=0,r>0?(a===c?n=l*(i-o)/(c-f):i===c?n=s+l*(o-a)/(c-f):n=u+l*(a-i)/(c-f),n<0&&(n+=1)):n=0,e[0]=n,e[1]=r,e[2]=d}function fh(t,e){const[n,r,a]=t,i=1/3,o=1/6,s=2/3,l=5/6;let u,c,f;n>o&&n<=i?(c=1,u=(i-n)/o,f=0):n>i&&n<=.5?(c=1,f=(n-i)/o,u=0):n>.5&&n<=s?(f=1,c=(s-n)/o,u=0):n>s&&n<=l?(f=1,u=(n-s)/o,c=0):n>l&&n<=1?(u=1,f=(1-n)/o,c=0):(u=1,c=n/o,f=0),u=r*u+(1-r),c=r*c+(1-r),f=r*f+(1-r),u*=a,c*=a,f*=a,e[0]=u,e[1]=c,e[2]=f}function q9e(t,e){const[n,r,a]=t;let i=(n+16)/116,o=r/500+i,s=i-a/200;i**3>.008856?i**=3:i=(i-16/116)/7.787,o**3>.008856?o**=3:o=(o-16/116)/7.787,s**3>.008856?s**=3:s=(s-16/116)/7.787;const l=.9505,u=1,c=1.089;e[0]=l*o,e[1]=u*i,e[2]=c*s}function Z9e(t,e){const[n,r,a]=t,i=.9505,o=1,s=1.089;let l=n/i,u=r/o,c=a/s;l>.008856?l**=1/3:l=7.787*l+16/116,u>.008856?u**=1/3:u=7.787*u+16/116,c>.008856?c**=1/3:c=7.787*c+16/116,e[0]=116*u-16,e[1]=500*(l-u),e[2]=200*(u-c)}function Q9e(t,e){const[n,r,a]=t;let i=n*3.2406+r*-1.5372+a*-.4986,o=n*-.9689+r*1.8758+a*.0415,s=n*.0557+r*-.204+a*1.057;i>.0031308?i=1.055*i**(1/2.4)-.055:i*=12.92,o>.0031308?o=1.055*o**(1/2.4)-.055:o*=12.92,s>.0031308?s=1.055*s**(1/2.4)-.055:s*=12.92;let l=i;l1&&(i/=l,o/=l,s/=l),i<0&&(i=0),o<0&&(o=0),s<0&&(s=0),e[0]=i,e[1]=o,e[2]=s}function J9e(t,e){let[n,r,a]=t;n>.04045?n=((n+.055)/1.055)**2.4:n/=12.92,r>.04045?r=((r+.055)/1.055)**2.4:r/=12.92,a>.04045?a=((a+.055)/1.055)**2.4:a/=12.92,e[0]=n*.4124+r*.3576+a*.1805,e[1]=n*.2126+r*.7152+a*.0722,e[2]=n*.0193+r*.1192+a*.9505}function Th(t,e){const n=[0,0,0];J9e(t,n),Z9e(n,e)}function Vk(t,e){const n=[0,0,0];q9e(t,n),Q9e(n,e)}function wX(t){return t[0]=1,t[1]=-1,t[2]=1,t[3]=-1,t[4]=1,t[5]=-1,t}function hC(t){return!(t[1]-t[0]<0)}function vC(t,e,n){return tn?n:t}function KP(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0,0,0];return r[0]=vC(t[0],e[0],n[0]),r[1]=vC(t[1],e[1],n[1]),r[2]=vC(t[2],e[2],n[2]),r}const e7e=t=>!Number.isFinite(t),{isFinite:b2t,isNaN:t7e}=Number,c_=t7e;function hO(){return[].concat([Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE])}const{vtkDebugMacro:r1}=Q;function n7e(t,e){e.classHierarchy.push("vtkCamera");const n=new Float64Array(3),r=new Float64Array([0,0,-1]),a=new Float64Array([0,1,0]),i=zn(new Float64Array(16)),o=zn(new Float64Array(16)),s=new Float64Array(3),l=new Float64Array(3),u=new Float64Array(3),c=zn(new Float64Array(16)),f=zn(new Float64Array(16)),d=new Float64Array(3),h=new Float64Array(3);function p(){e.viewPlaneNormal[0]=-e.directionOfProjection[0],e.viewPlaneNormal[1]=-e.directionOfProjection[1],e.viewPlaneNormal[2]=-e.directionOfProjection[2]}t.orthogonalizeViewUp=()=>{const v=t.getViewMatrix();e.viewUp[0]=v[4],e.viewUp[1]=v[5],e.viewUp[2]=v[6],t.modified()},t.setPosition=(v,g,y)=>{v===e.position[0]&&g===e.position[1]&&y===e.position[2]||(e.position[0]=v,e.position[1]=g,e.position[2]=y,t.computeDistance(),t.modified())},t.setFocalPoint=(v,g,y)=>{v===e.focalPoint[0]&&g===e.focalPoint[1]&&y===e.focalPoint[2]||(e.focalPoint[0]=v,e.focalPoint[1]=g,e.focalPoint[2]=y,t.computeDistance(),t.modified())},t.setDistance=v=>{if(e.distance===v)return;e.distance=v,e.distance<1e-20&&(e.distance=1e-20,r1("Distance is set to minimum."));const g=e.directionOfProjection;e.focalPoint[0]=e.position[0]+g[0]*e.distance,e.focalPoint[1]=e.position[1]+g[1]*e.distance,e.focalPoint[2]=e.position[2]+g[2]*e.distance,t.modified()},t.computeDistance=()=>{const v=e.focalPoint[0]-e.position[0],g=e.focalPoint[1]-e.position[1],y=e.focalPoint[2]-e.position[2];if(e.distance=Math.sqrt(v*v+g*g+y*y),e.distance<1e-20){e.distance=1e-20,r1("Distance is set to minimum.");const m=e.directionOfProjection;e.focalPoint[0]=e.position[0]+m[0]*e.distance,e.focalPoint[1]=e.position[1]+m[1]*e.distance,e.focalPoint[2]=e.position[2]+m[2]*e.distance}e.directionOfProjection[0]=v/e.distance,e.directionOfProjection[1]=g/e.distance,e.directionOfProjection[2]=y/e.distance,p()},t.dolly=v=>{if(v<=0)return;const g=e.distance/v;t.setPosition(e.focalPoint[0]-g*e.directionOfProjection[0],e.focalPoint[1]-g*e.directionOfProjection[1],e.focalPoint[2]-g*e.directionOfProjection[2])},t.roll=v=>{const g=e.position,y=e.focalPoint,m=e.viewUp,b=new Float64Array([m[0],m[1],m[2],0]);zn(c);const _=new Float64Array([y[0]-g[0],y[1]-g[1],y[2]-g[2]]);uo(c,c,wr(v),_),e1(b,b,c),e.viewUp[0]=b[0],e.viewUp[1]=b[1],e.viewUp[2]=b[2],t.modified()},t.azimuth=v=>{const g=e.focalPoint;zn(f),ia(f,f,g),uo(f,f,wr(v),e.viewUp),ia(f,f,[-g[0],-g[1],-g[2]]),tr(d,e.position,f),t.setPosition(d[0],d[1],d[2])},t.yaw=v=>{const g=e.position;zn(f),ia(f,f,g),uo(f,f,wr(v),e.viewUp),ia(f,f,[-g[0],-g[1],-g[2]]),tr(h,e.focalPoint,f),t.setFocalPoint(h[0],h[1],h[2])},t.elevation=v=>{const g=e.focalPoint,y=t.getViewMatrix(),m=[-y[0],-y[1],-y[2]];zn(f),ia(f,f,g),uo(f,f,wr(v),m),ia(f,f,[-g[0],-g[1],-g[2]]),tr(d,e.position,f),t.setPosition(d[0],d[1],d[2])},t.pitch=v=>{const g=e.position,y=t.getViewMatrix(),m=[y[0],y[1],y[2]];zn(f),ia(f,f,g),uo(f,f,wr(v),m),ia(f,f,[-g[0],-g[1],-g[2]]),tr(h,e.focalPoint,f),t.setFocalPoint(...h)},t.zoom=v=>{v<=0||(e.parallelProjection?e.parallelScale/=v:e.viewAngle/=v,t.modified())},t.translate=(v,g,y)=>{const m=[v,g,y];Bk(e.position,m,e.position),Bk(e.focalPoint,m,e.focalPoint),t.computeDistance(),t.modified()},t.applyTransform=v=>{const g=[...e.viewUp,1],y=[],m=[],b=[];g[0]+=e.position[0],g[1]+=e.position[1],g[2]+=e.position[2],e1(y,[...e.position,1],v),e1(m,[...e.focalPoint,1],v),e1(b,g,v),b[0]-=y[0],b[1]-=y[1],b[2]-=y[2],t.setPosition(...y.slice(0,3)),t.setFocalPoint(...m.slice(0,3)),t.setViewUp(...b.slice(0,3))},t.getThickness=()=>e.clippingRange[1]-e.clippingRange[0],t.setThickness=v=>{let g=v;g<1e-20&&(g=1e-20,r1("Thickness is set to minimum.")),t.setClippingRange(e.clippingRange[0],e.clippingRange[0]+g)},t.setThicknessFromFocalPoint=v=>{let g=v;g<1e-20&&(g=1e-20,r1("Thickness is set to minimum.")),t.setClippingRange(e.distance-g/2,e.distance+g/2)},t.setRoll=v=>{},t.getRoll=()=>{},t.setObliqueAngles=(v,g)=>{},t.getOrientation=()=>{},t.getOrientationWXYZ=()=>{},t.getFrustumPlanes=v=>{},t.getCameraLightTransformMatrix=v=>(Js(v,e.cameraLightTransform),v),t.computeCameraLightTransform=()=>{Js(i,t.getViewMatrix()),ms(i,i),iX(o,[e.distance,e.distance,e.distance]),Ja(i,i,o),zn(e.cameraLightTransform),ia(e.cameraLightTransform,i,[0,0,-1])},t.deepCopy=v=>{},t.physicalOrientationToWorldDirection=v=>{const g=HP(v[0],v[1],v[2],v[3]),y=nd(),m=HP(0,0,1,0);return x9e(y,g),GP(m,g,m),GP(m,m,y),[m[0],m[1],m[2]]},t.getPhysicalToWorldMatrix=v=>{t.getWorldToPhysicalMatrix(v),ms(v,v)},t.getWorldToPhysicalMatrix=v=>{zn(v);const g=[3];q0(e.physicalViewNorth,e.physicalViewUp,g),v[0]=g[0],v[1]=g[1],v[2]=g[2],v[4]=e.physicalViewUp[0],v[5]=e.physicalViewUp[1],v[6]=e.physicalViewUp[2],v[8]=-e.physicalViewNorth[0],v[9]=-e.physicalViewNorth[1],v[10]=-e.physicalViewNorth[2],oi(v,v),os(s,1/e.physicalScale,1/e.physicalScale,1/e.physicalScale),td(v,v,s),ia(v,v,e.physicalTranslation)},t.computeViewParametersFromViewMatrix=v=>{ms(i,v),tr(s,n,i),t.computeDistance();const g=e.distance;t.setPosition(s[0],s[1],s[2]),tr(l,r,i),$k(l,l,s),jh(l,l),t.setDirectionOfProjection(l[0],l[1],l[2]),tr(u,a,i),$k(u,u,s),jh(u,u),t.setViewUp(u[0],u[1],u[2]),t.setDistance(g)},t.computeViewParametersFromPhysicalMatrix=v=>{t.getWorldToPhysicalMatrix(i),Ja(i,v,i),t.computeViewParametersFromViewMatrix(i)},t.setViewMatrix=v=>{e.viewMatrix=v,e.viewMatrix&&(Js(i,e.viewMatrix),t.computeViewParametersFromViewMatrix(i),oi(e.viewMatrix,e.viewMatrix))},t.getViewMatrix=()=>{if(e.viewMatrix)return e.viewMatrix;vX(i,e.position,e.focalPoint,e.viewUp),oi(i,i);const v=new Float64Array(16);return Js(v,i),v},t.setProjectionMatrix=v=>{e.projectionMatrix=v},t.getProjectionMatrix=(v,g,y)=>{const m=new Float64Array(16);if(zn(m),e.projectionMatrix){const x=1/e.physicalScale;return os(s,x,x,x),Js(m,e.projectionMatrix),td(m,m,s),oi(m,m),m}zn(i);const b=e.clippingRange[1]-e.clippingRange[0],_=[e.clippingRange[0]+(g+1)*b/2,e.clippingRange[0]+(y+1)*b/2];if(e.parallelProjection){const x=e.parallelScale*v,w=e.parallelScale,C=(e.windowCenter[0]-1)*x,T=(e.windowCenter[0]+1)*x,k=(e.windowCenter[1]-1)*w,E=(e.windowCenter[1]+1)*w;hX(i,C,T,k,E,_[0],_[1]),oi(i,i)}else{if(e.useOffAxisProjection)throw new Error("Off-Axis projection is not supported at this time");{const x=Math.tan(wr(e.viewAngle)/2);let w,C;e.useHorizontalViewAngle===!0?(w=e.clippingRange[0]*x,C=e.clippingRange[0]*x/v):(w=e.clippingRange[0]*x*v,C=e.clippingRange[0]*x);const T=(e.windowCenter[0]-1)*w,k=(e.windowCenter[0]+1)*w,E=(e.windowCenter[1]-1)*C,M=(e.windowCenter[1]+1)*C,D=_[0],R=_[1];i[0]=2*D/(k-T),i[5]=2*D/(M-E),i[2]=(T+k)/(k-T),i[6]=(E+M)/(M-E),i[10]=-(D+R)/(R-D),i[14]=-1,i[11]=-2*D*R/(R-D),i[15]=0}}return Js(m,i),m},t.getCompositeProjectionMatrix=(v,g,y)=>{const m=t.getViewMatrix(),b=t.getProjectionMatrix(v,g,y);return Ja(b,m,b),b},t.setDirectionOfProjection=(v,g,y)=>{if(e.directionOfProjection[0]===v&&e.directionOfProjection[1]===g&&e.directionOfProjection[2]===y)return;e.directionOfProjection[0]=v,e.directionOfProjection[1]=g,e.directionOfProjection[2]=y;const m=e.directionOfProjection;e.focalPoint[0]=e.position[0]+m[0]*e.distance,e.focalPoint[1]=e.position[1]+m[1]*e.distance,e.focalPoint[2]=e.position[2]+m[2]*e.distance,p()},t.setDeviceAngles=(v,g,y,m)=>{const b=[3];q0(e.physicalViewNorth,e.physicalViewUp,b);const _=zn(new Float64Array(16));uo(_,_,wr(v),e.physicalViewUp),uo(_,_,wr(g),b),uo(_,_,wr(y),e.physicalViewNorth),uo(_,_,wr(-m),e.physicalViewUp);const x=new Float64Array([-e.physicalViewUp[0],-e.physicalViewUp[1],-e.physicalViewUp[2]]),w=new Float64Array(e.physicalViewNorth);tr(x,x,_),tr(w,w,_),t.setDirectionOfProjection(x[0],x[1],x[2]),t.setViewUp(w[0],w[1],w[2]),t.modified()},t.setOrientationWXYZ=(v,g,y,m)=>{const b=zn(new Float64Array(16));if(v!==0&&(g!==0||y!==0||m!==0)){const w=wr(v),C=nd();iO(C,[g,y,m],w),aO(b,C)}const _=new Float64Array(3);tr(_,[0,0,-1],b);const x=new Float64Array(3);tr(x,[0,1,0],b),t.setDirectionOfProjection(..._),t.setViewUp(...x),t.modified()},t.computeClippingRange=v=>{let g=null,y=null;g=e.viewPlaneNormal,y=e.position;const m=-g[0],b=-g[1],_=-g[2],x=-(m*y[0]+b*y[1]+_*y[2]),w=[m*v[0]+b*v[2]+_*v[4]+x,1e-18];for(let C=0;C<2;C++)for(let T=0;T<2;T++)for(let k=0;k<2;k++){const E=m*v[k]+b*v[2+T]+_*v[4+C]+x;w[0]=Ew[1]?E:w[1]}return w}}const r7e={position:[0,0,1],focalPoint:[0,0,0],viewUp:[0,1,0],directionOfProjection:[0,0,-1],parallelProjection:!1,useHorizontalViewAngle:!1,viewAngle:30,parallelScale:1,clippingRange:[.01,1000.01],windowCenter:[0,0],viewPlaneNormal:[0,0,1],useOffAxisProjection:!1,screenBottomLeft:[-.5,-.5,-.5],screenBottomRight:[.5,-.5,-.5],screenTopRight:[.5,.5,-.5],freezeFocalPoint:!1,projectionMatrix:null,viewMatrix:null,cameraLightTransform:eO(),physicalTranslation:[0,0,0],physicalScale:1,physicalViewUp:[0,1,0],physicalViewNorth:[0,0,-1]};function xX(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,r7e,n),Q.obj(t,e),Q.get(t,e,["distance"]),Q.setGet(t,e,["parallelProjection","useHorizontalViewAngle","viewAngle","parallelScale","useOffAxisProjection","freezeFocalPoint","physicalScale"]),Q.getArray(t,e,["directionOfProjection","viewPlaneNormal","position","focalPoint"]),Q.setGetArray(t,e,["clippingRange","windowCenter"],2),Q.setGetArray(t,e,["viewUp","screenBottomLeft","screenBottomRight","screenTopRight","physicalTranslation","physicalViewUp","physicalViewNorth"],3),n7e(t,e)}const a7e=Q.newInstance(xX,"vtkCamera");var i7e={newInstance:a7e,extend:xX};const o7e=["HeadLight","CameraLight","SceneLight"];function s7e(t,e){e.classHierarchy.push("vtkLight");const n=new Float64Array(3);t.getTransformedPosition=()=>(e.transformMatrix?tr(n,e.position,e.transformMatrix):os(n,e.position[0],e.position[1],e.position[2]),n),t.getTransformedFocalPoint=()=>(e.transformMatrix?tr(n,e.focalPoint,e.transformMatrix):os(n,e.focalPoint[0],e.focalPoint[1],e.focalPoint[2]),n),t.getDirection=()=>(e.directionMTime{const a=new Float64Array(3);zP(a,e.position,r),e.focalPoint=a},t.setDirectionAngle=(r,a)=>{const i=wr(r),o=wr(a);t.setPosition(Math.cos(i)*Math.sin(o),Math.sin(i),Math.cos(i)*Math.cos(o)),t.setFocalPoint(0,0,0),t.setPositional(0)},t.setLightTypeToHeadLight=()=>{t.setLightType("HeadLight")},t.setLightTypeToCameraLight=()=>{t.setLightType("CameraLight")},t.setLightTypeToSceneLight=()=>{t.setTransformMatrix(null),t.setLightType("SceneLight")},t.lightTypeIsHeadLight=()=>e.lightType==="HeadLight",t.lightTypeIsSceneLight=()=>e.lightType==="SceneLight",t.lightTypeIsCameraLight=()=>e.lightType==="CameraLight"}const l7e={switch:!0,intensity:1,color:[1,1,1],position:[0,0,1],focalPoint:[0,0,0],positional:!1,exponent:1,coneAngle:30,coneFalloff:5,attenuationValues:[1,0,0],transformMatrix:null,lightType:"SceneLight",shadowAttenuation:1,direction:[0,0,0],directionMTime:0};function CX(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,l7e,n),Q.obj(t,e),Q.setGet(t,e,["intensity","switch","positional","exponent","coneAngle","coneFalloff","transformMatrix","lightType","shadowAttenuation","attenuationValues"]),Q.setGetArray(t,e,["color","position","focalPoint","attenuationValues"],3),s7e(t,e)}const u7e=Q.newInstance(CX,"vtkLight");var c7e={newInstance:u7e,extend:CX,LIGHT_TYPES:o7e};const{vtkErrorMacro:nS}=Q;function f7e(t){return()=>nS(`vtkViewport::${t} - NOT IMPLEMENTED`)}function d7e(t,e){e.classHierarchy.push("vtkViewport"),t.getViewProps=()=>e.props,t.hasViewProp=r=>e.props.includes(r),t.addViewProp=r=>{r&&!t.hasViewProp(r)&&e.props.push(r)},t.removeViewProp=r=>{const a=e.props.filter(i=>i!==r);e.props.length!==a.length&&(e.props=a)},t.removeAllViewProps=()=>{e.props=[]};function n(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];a.push(r);const i=r.getNestedProps();if(i&&i.length)for(let o=0;o{const r=[];for(let a=0;a{t.removeViewProp(r)},t.getActors2D=()=>(e.actors2D=[],e.props.forEach(r=>{e.actors2D=e.actors2D.concat(r.getActors2D())}),e.actors2D),t.displayToView=()=>nS("call displayToView on your view instead"),t.viewToDisplay=()=>nS("callviewtodisplay on your view instead"),t.getSize=()=>nS("call getSize on your View instead"),t.normalizedDisplayToProjection=(r,a,i)=>{const o=t.normalizedDisplayToNormalizedViewport(r,a,i);return t.normalizedViewportToProjection(o[0],o[1],o[2])},t.normalizedDisplayToNormalizedViewport=(r,a,i)=>{const o=[e.viewport[2]-e.viewport[0],e.viewport[3]-e.viewport[1]];return[(r-e.viewport[0])/o[0],(a-e.viewport[1])/o[1],i]},t.normalizedViewportToProjection=(r,a,i)=>[r*2-1,a*2-1,i*2-1],t.projectionToNormalizedDisplay=(r,a,i)=>{const o=t.projectionToNormalizedViewport(r,a,i);return t.normalizedViewportToNormalizedDisplay(o[0],o[1],o[2])},t.normalizedViewportToNormalizedDisplay=(r,a,i)=>{const o=[e.viewport[2]-e.viewport[0],e.viewport[3]-e.viewport[1]];return[r*o[0]+e.viewport[0],a*o[1]+e.viewport[1],i]},t.projectionToNormalizedViewport=(r,a,i)=>[(r+1)*.5,(a+1)*.5,(i+1)*.5],t.PickPropFrom=f7e("PickPropFrom")}const h7e={background:[0,0,0],background2:[.2,.2,.2],gradientBackground:!1,viewport:[0,0,1,1],aspect:[1,1],pixelAspect:[1,1],props:[],actors2D:[]};function TX(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,h7e,n),Q.obj(t,e),Q.event(t,e,"event"),Q.setGetArray(t,e,["viewport"],4),Q.setGetArray(t,e,["background","background2"],3),d7e(t,e)}const v7e=Q.newInstance(TX,"vtkViewport");var p7e={newInstance:v7e,extend:TX};const Pk=1e-6,EX="coincide",MX="disjoint";function g7e(t,e,n){return t[0]*(n[0]-e[0])+t[1]*(n[1]-e[1])+t[2]*(n[2]-e[2])}function kX(t,e,n){const r=n[0]*(t[0]-e[0])+n[1]*(t[1]-e[1])+n[2]*(t[2]-e[2]);return Math.abs(r)}function DX(t,e,n,r){const a=[];Du(t,e,a);const i=dn(n,a);r[0]=t[0]-i*n[0],r[1]=t[1]-i*n[1],r[2]=t[2]-i*n[2]}function RX(t,e,n){const r=dn(t,e);let a=dn(e,e);return a===0&&(a=1),n[0]=t[0]-r*e[0]/a,n[1]=t[1]-r*e[1]/a,n[2]=t[2]-r*e[2]/a,n}function LX(t,e,n,r){const a=[];Du(t,e,a);const i=dn(n,a),o=dn(n,n);o!==0?(r[0]=t[0]-i*n[0]/o,r[1]=t[1]-i*n[1]/o,r[2]=t[2]-i*n[2]/o):(r[0]=t[0],r[1]=t[1],r[2]=t[2])}function AX(t,e,n,r){const a={intersection:!1,betweenPoints:!1,t:Number.MAX_VALUE,x:[]},i=[],o=[];Du(e,t,i),Du(n,t,o);const s=dn(r,o),l=dn(r,i);let u,c;return l<0?u=-l:u=l,s<0?c=-s*Pk:c=s*Pk,u<=c||(a.t=s/l,a.x[0]=t[0]+a.t*i[0],a.x[1]=t[1]+a.t*i[1],a.x[2]=t[2]+a.t*i[2],a.intersection=!0,a.betweenPoints=a.t>=0&&a.t<=1),a}function OX(t,e,n,r){const a={intersection:!1,l0:[],l1:[],error:null},i=[];q0(e,r,i);const o=i.map(f=>Math.abs(f));if(o[0]+o[1]+o[2]o[1]&&o[0]>o[2]?s="x":o[1]>o[2]?s="y":s="z";const l=[],u=-dn(e,t),c=-dn(r,n);switch(s){case"x":l[0]=0,l[1]=(c*e[2]-u*r[2])/i[0],l[2]=(u*r[1]-c*e[1])/i[0];break;case"y":l[0]=(u*r[2]-c*e[2])/i[1],l[1]=0,l[2]=(c*e[0]-u*r[0])/i[1];break;case"z":l[0]=(c*e[1]-u*r[1])/i[2],l[1]=(u*r[0]-c*e[0])/i[2],l[2]=0;break}return a.l0=l,Bk(l,i,a.l1),a.intersection=!0,a}const y7e={evaluate:g7e,distanceToPlane:kX,projectPoint:DX,projectVector:RX,generalizedProjectPoint:LX,intersectWithLine:AX,intersectWithPlane:OX,DISJOINT:MX,COINCIDE:EX};function m7e(t,e){e.classHierarchy.push("vtkPlane"),t.distanceToPlane=n=>kX(n,e.origin,e.normal),t.projectPoint=(n,r)=>{DX(n,e.origin,e.normal,r)},t.projectVector=(n,r)=>RX(n,e.normal,r),t.push=n=>{if(n!==0)for(let r=0;r<3;r++)e.origin[r]+=n*e.normal[r]},t.generalizedProjectPoint=(n,r)=>{LX(n,e.origin,e.normal,r)},t.evaluateFunction=(n,r,a)=>Array.isArray(n)?e.normal[0]*(n[0]-e.origin[0])+e.normal[1]*(n[1]-e.origin[1])+e.normal[2]*(n[2]-e.origin[2]):e.normal[0]*(n-e.origin[0])+e.normal[1]*(r-e.origin[1])+e.normal[2]*(a-e.origin[2]),t.evaluateGradient=n=>[e.normal[0],e.normal[1],e.normal[2]],t.intersectWithLine=(n,r)=>AX(n,r,e.origin,e.normal),t.intersectWithPlane=(n,r)=>OX(n,r,e.origin,e.normal)}const b7e={normal:[0,0,1],origin:[0,0,0]};function NX(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,b7e,n),Q.obj(t,e),Q.setGetArray(t,e,["normal","origin"],3),m7e(t,e)}const S7e=Q.newInstance(NX,"vtkPlane");var Mv={newInstance:S7e,extend:NX,...y7e};const gx=[Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE];function $X(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]}function bl(t){return(t==null?void 0:t.length)>=6&&t[0]<=t[1]&&t[2]<=t[3]&&t[4]<=t[5]}function vO(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function pO(t){return vO(t,gx)}function f_(t,e,n,r){const[a,i,o,s,l,u]=t;return t[0]=ae?i:e,t[2]=on?s:n,t[4]=lr?u:r,t}function gO(t,e){if(e.length===0)return t;if(Array.isArray(e[0]))for(let n=0;ni?e:i,t[2]=n,t[3]=n>s?n:s,t[4]=r,t[5]=r>u?r:u,a!==e||o!==n||l!==r}function VX(t,e,n,r){const[a,i,o,s,l,u]=t;return t[0]=e=0?(t[0]*=e,t[1]*=e):(t[0]=e*t[1],t[1]=e*t[0]),n>=0?(t[2]*=n,t[3]*=n):(t[2]=n*t[3],t[3]=n*t[2]),r>=0?(t[4]*=r,t[5]*=r):(t[4]=r*t[5],t[5]=r*t[4]),!0):!1}function mO(t){return[.5*(t[0]+t[1]),.5*(t[2]+t[3]),.5*(t[4]+t[5])]}function _7e(t,e,n,r){if(!bl(t))return!1;const a=mO(t);return t[0]-=a[0],t[1]-=a[0],t[2]-=a[1],t[3]-=a[1],t[4]-=a[2],t[5]-=a[2],yO(t,e,n,r),t[0]+=a[0],t[1]+=a[0],t[2]+=a[1],t[3]+=a[1],t[4]+=a[2],t[5]+=a[2],!0}function Wg(t,e){return t[e*2+1]-t[e*2]}function yx(t){return[Wg(t,0),Wg(t,1),Wg(t,2)]}function FX(t){return t.slice(0,2)}function zX(t){return t.slice(2,4)}function GX(t){return t.slice(4,6)}function HX(t){const e=yx(t);return e[0]>e[1]?e[0]>e[2]?e[0]:e[2]:e[1]>e[2]?e[1]:e[2]}function UX(t){if(bl(t)){const e=yx(t);return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}return null}function bO(t){return[t[0],t[2],t[4]]}function SO(t){return[t[1],t[3],t[5]]}function a1(t,e){return t<=0&&e>=0||t>=0&&e<=0}function _O(t,e){let n=0;for(let r=0;r<2;r++)for(let a=2;a<4;a++)for(let i=4;i<6;i++)e[n++]=[t[r],t[a],t[i]];return e}function WX(t,e,n){return e[0]=t[0],e[1]=t[2],e[2]=t[4],n[0]=t[1],n[1]=t[3],n[2]=t[5],e}function jX(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=_O(t,[]);for(let a=0;a1&&arguments[1]!==void 0?arguments[1]:[];return e[0]=.5*(t[1]-t[0]),e[1]=.5*(t[3]-t[2]),e[2]=.5*(t[5]-t[4]),e}function YX(t,e,n,r){const a=[].concat(gx),i=t.getData();for(let o=0;ot[2*h+1]?(o[h]=c,u[h]=t[2*h+1],i=!1):o[h]=d;if(i)return r[0]=e[0],r[1]=e[1],r[2]=e[2],a[0]=0,1;for(let h=0;h<3;h++)o[h]!==d&&n[h]!==0?l[h]=(u[h]-e[h])/n[h]:l[h]=-1;for(let h=0;h<3;h++)l[s]1||l[s]<0)return 0;a[0]=l[s];for(let h=0;h<3;h++)if(s!==h){if(r[h]=e[h]+l[s]*n[h],r[h]t[2*h+1])return 0}else r[h]=u[h];return 1}function qX(t,e,n){const r=[];let a=0,i=1,o=1;for(let s=4;s<=5;++s){r[2]=t[s];for(let l=2;l<=3;++l){r[1]=t[l];for(let u=0;u<=1;++u)if(r[0]=t[u],a=Mv.evaluate(n,e,r),o&&(i=a>=0?1:-1,o=0),a===0||i>0&&a<0||i<0&&a>0)return 1}}return 0}function ZX(t,e){if(!(bl(t)&&bl(e)))return!1;const n=[0,0,0,0,0,0];let r;for(let a=0;a<3;a++)if(r=!1,e[a*2]>=t[a*2]&&e[a*2]<=t[a*2+1]?(r=!0,n[a*2]=e[a*2]):t[a*2]>=e[a*2]&&t[a*2]<=e[a*2+1]&&(r=!0,n[a*2]=t[a*2]),e[a*2+1]>=t[a*2]&&e[a*2+1]<=t[a*2+1]?(r=!0,n[a*2+1]=e[2*a+1]):t[a*2+1]>=e[a*2]&&t[a*2+1]<=e[a*2+1]&&(r=!0,n[a*2+1]=t[a*2+1]),!r)return!1;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],!0}function d_(t,e){if(!(bl(t)&&bl(e)))return!1;for(let n=0;n<3;n++)if(!(e[n*2]>=t[n*2]&&e[n*2]<=t[n*2+1])&&!(t[n*2]>=e[n*2]&&t[n*2]<=e[n*2+1])&&!(e[n*2+1]>=t[n*2]&&e[n*2+1]<=t[n*2+1])&&!(t[n*2+1]>=e[n*2]&&t[n*2+1]<=e[n*2+1]))return!1;return!0}function h_(t,e,n,r){return!(et[1]||nt[3]||rt[5])}function w7e(t,e){return!(!d_(t,e)||!h_(t,...bO(e))||!h_(t,...SO(e)))}function QX(t,e,n){const r=[[0,1,2,3,4,5,6,7],[0,1,4,5,2,3,6,7],[0,2,4,6,1,3,5,7]],a=[0,0,0,0,0,0,0,0];let i=0;for(let f=0;f<2;f++)for(let d=2;d<4;d++)for(let h=4;h<6;h++){const p=[t[f],t[d],t[h]];a[i++]=Mv.evaluate(n,e,p)}let o=2;for(;o--&&!(a1(a[r[o][0]],a[r[o][4]])&&a1(a[r[o][1]],a[r[o][5]])&&a1(a[r[o][2]],a[r[o][6]])&&a1(a[r[o][3]],a[r[o][7]])););if(o<0)return!1;const s=Math.sign(n[o]),l=Math.abs((t[o*2+1]-t[o*2])*n[o]);let u=s>0?1:0;for(let f=0;f<4;f++){if(l===0)continue;const d=Math.abs(a[r[o][f]])/l;s>0&&du&&(u=d)}const c=(1-u)*t[o*2]+u*t[o*2+1];return s>0?t[o*2]=c:t[o*2+1]=c,!0}class x7e{constructor(e){this.bounds=e,this.bounds||(this.bounds=new Float64Array(gx))}getBounds(){return this.bounds}equals(e){return $X(this.bounds,e)}isValid(){return bl(this.bounds)}setBounds(e){return vO(this.bounds,e)}reset(){return pO(this.bounds)}addPoint(){for(var e=arguments.length,n=new Array(e),r=0;r1&&arguments[1]!==void 0?arguments[1]:[];return jX(this.bounds,e,n)}computeScale3(e){return KX(this.bounds,e)}cutWithPlane(e,n){return QX(this.bounds,e,n)}intersectBox(e,n,r,a){return XX(this.bounds,e,n,r,a)}intersectPlane(e,n){return qX(this.bounds,e,n)}intersect(e){return ZX(this.bounds,e)}intersects(e){return d_(this.bounds,e)}containsPoint(e,n,r){return h_(this.bounds,e,n,r)}contains(e){return d_(this.bounds,e)}}function C7e(t){const e=t&&t.bounds;return new x7e(e)}const T7e={equals:$X,isValid:bl,setBounds:vO,reset:pO,addPoint:f_,addPoints:gO,addBounds:IX,setMinPoint:BX,setMaxPoint:VX,inflate:PX,scale:yO,scaleAboutCenter:_7e,getCenter:mO,getLength:Wg,getLengths:yx,getMaxLength:HX,getDiagonalLength:UX,getMinPoint:bO,getMaxPoint:SO,getXRange:FX,getYRange:zX,getZRange:GX,getCorners:_O,computeCornerPoints:WX,computeLocalBounds:YX,transformBounds:jX,computeScale3:KX,cutWithPlane:QX,intersectBox:XX,intersectPlane:qX,intersect:ZX,intersects:d_,containsPoint:h_,contains:w7e,INIT_BOUNDS:gx};var rr={newInstance:C7e,...T7e};const{vtkDebugMacro:Op,vtkErrorMacro:nu,vtkWarningMacro:E7e}=px;function YP(t){return()=>nu(`vtkRenderer::${t} - NOT IMPLEMENTED`)}function M7e(t,e){e.classHierarchy.push("vtkRenderer");const n={type:"ComputeVisiblePropBoundsEvent",renderer:t},r={type:"ResetCameraClippingRangeEvent",renderer:t},a={type:"ResetCameraEvent",renderer:t};t.updateCamera=()=>(e.activeCamera||(Op("No cameras are on, creating one."),t.getActiveCameraAndResetIfCreated()),e.activeCamera.render(t),!0),t.updateLightsGeometryToFollowCamera=()=>{const i=t.getActiveCameraAndResetIfCreated();e.lights.forEach(o=>{o.lightTypeIsSceneLight()||(o.lightTypeIsHeadLight()?(o.setPositionFrom(i.getPositionByReference()),o.setFocalPointFrom(i.getFocalPointByReference()),o.modified(i.getMTime())):o.lightTypeIsCameraLight()?o.setTransformMatrix(i.getCameraLightTransformMatrix(eO())):nu("light has unknown light type",o.get()))})},t.updateLightGeometry=()=>e.lightFollowCamera?t.updateLightsGeometryToFollowCamera():!0,t.allocateTime=YP("allocateTime"),t.updateGeometry=YP("updateGeometry"),t.getVTKWindow=()=>e._renderWindow,t.setLayer=i=>{Op(t.getClassName(),t,"setting Layer to ",i),e.layer!==i&&(e.layer=i,t.modified()),t.setPreserveColorBuffer(!!i)},t.setActiveCamera=i=>e.activeCamera===i?!1:(e.activeCamera=i,t.modified(),t.invokeEvent({type:"ActiveCameraEvent",camera:i}),!0),t.makeCamera=()=>{const i=i7e.newInstance();return t.invokeEvent({type:"CreateCameraEvent",camera:i}),i},t.getActiveCamera=()=>(e.activeCamera||(e.activeCamera=t.makeCamera()),e.activeCamera),t.getActiveCameraAndResetIfCreated=()=>(e.activeCamera||(t.getActiveCamera(),t.resetCamera()),e.activeCamera),t.getActors=()=>(e.actors=[],e.props.forEach(i=>{e.actors=e.actors.concat(i.getActors())}),e.actors),t.addActor=t.addViewProp,t.removeActor=i=>{e.actors=e.actors.filter(o=>o!==i),t.removeViewProp(i),t.modified()},t.removeAllActors=()=>{t.getActors().forEach(o=>{t.removeViewProp(o)}),e.actors=[],t.modified()},t.getVolumes=()=>(e.volumes=[],e.props.forEach(i=>{e.volumes=e.volumes.concat(i.getVolumes())}),e.volumes),t.addVolume=t.addViewProp,t.removeVolume=i=>{e.volumes=e.volumes.filter(o=>o!==i),t.removeViewProp(i),t.modified()},t.removeAllVolumes=()=>{t.getVolumes().forEach(o=>{t.removeViewProp(o)}),e.volumes=[],t.modified()},t.hasLight=i=>e.lights.includes(i),t.addLight=i=>{i&&!t.hasLight(i)&&(e.lights.push(i),t.modified())},t.removeLight=i=>{e.lights=e.lights.filter(o=>o!==i),t.modified()},t.removeAllLights=()=>{e.lights=[],t.modified()},t.setLightCollection=i=>{e.lights=i,t.modified()},t.makeLight=c7e.newInstance,t.createLight=()=>{e.automaticLightCreation&&(e._createdLight&&(t.removeLight(e._createdLight),e._createdLight.delete(),e._createdLight=null),e._createdLight=t.makeLight(),t.addLight(e._createdLight),e._createdLight.setLightTypeToHeadLight(),e._createdLight.setPosition(t.getActiveCamera().getPosition()),e._createdLight.setFocalPoint(t.getActiveCamera().getFocalPoint()))},t.normalizedDisplayToWorld=(i,o,s,l)=>{let u=t.normalizedDisplayToProjection(i,o,s);return u=t.projectionToView(u[0],u[1],u[2],l),t.viewToWorld(u[0],u[1],u[2])},t.worldToNormalizedDisplay=(i,o,s,l)=>{let u=t.worldToView(i,o,s);return u=t.viewToProjection(u[0],u[1],u[2],l),t.projectionToNormalizedDisplay(u[0],u[1],u[2])},t.viewToWorld=(i,o,s)=>{if(e.activeCamera===null)return nu("ViewToWorld: no active camera, cannot compute view to world, returning 0,0,0"),[0,0,0];const l=e.activeCamera.getViewMatrix();ms(l,l),oi(l,l);const u=new Float64Array([i,o,s]);return tr(u,u,l),u},t.projectionToView=(i,o,s,l)=>{if(e.activeCamera===null)return nu("ProjectionToView: no active camera, cannot compute projection to view, returning 0,0,0"),[0,0,0];const u=e.activeCamera.getProjectionMatrix(l,-1,1);ms(u,u),oi(u,u);const c=new Float64Array([i,o,s]);return tr(c,c,u),c},t.worldToView=(i,o,s)=>{if(e.activeCamera===null)return nu("WorldToView: no active camera, cannot compute view to world, returning 0,0,0"),[0,0,0];const l=e.activeCamera.getViewMatrix();oi(l,l);const u=new Float64Array([i,o,s]);return tr(u,u,l),u},t.viewToProjection=(i,o,s,l)=>{if(e.activeCamera===null)return nu("ViewToProjection: no active camera, cannot compute view to projection, returning 0,0,0"),[0,0,0];const u=e.activeCamera.getProjectionMatrix(l,-1,1);oi(u,u);const c=new Float64Array([i,o,s]);return tr(c,c,u),c},t.computeVisiblePropBounds=()=>{e.allBounds[0]=rr.INIT_BOUNDS[0],e.allBounds[1]=rr.INIT_BOUNDS[1],e.allBounds[2]=rr.INIT_BOUNDS[2],e.allBounds[3]=rr.INIT_BOUNDS[3],e.allBounds[4]=rr.INIT_BOUNDS[4],e.allBounds[5]=rr.INIT_BOUNDS[5];let i=!0;t.invokeEvent(n);for(let o=0;oe.allBounds[1]&&(e.allBounds[1]=l[1]),l[2]e.allBounds[3]&&(e.allBounds[3]=l[3]),l[4]e.allBounds[5]&&(e.allBounds[5]=l[5]))}}return i&&(wX(e.allBounds),Op("Can't compute bounds, no 3D props are visible")),e.allBounds},t.resetCamera=function(){const o=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:null)||t.computeVisiblePropBounds(),s=[0,0,0];if(!hC(o))return Op("Cannot reset camera!"),!1;let l=null;if(t.getActiveCamera())l=e.activeCamera.getViewPlaneNormal();else return nu("Trying to reset non-existent camera"),!1;e.activeCamera.setViewAngle(30),s[0]=(o[0]+o[1])/2,s[1]=(o[2]+o[3])/2,s[2]=(o[4]+o[5])/2;let u=o[1]-o[0],c=o[3]-o[2],f=o[5]-o[4];u*=u,c*=c,f*=f;let d=u+c+f;d=d===0?1:d,d=Math.sqrt(d)*.5;const h=wr(e.activeCamera.getViewAngle()),p=d,v=d/Math.sin(h*.5),g=e.activeCamera.getViewUp();return Math.abs(dn(g,l))>.999&&(E7e("Resetting view-up since view plane normal is parallel"),e.activeCamera.setViewUp(-g[2],g[0],g[1])),e.activeCamera.setFocalPoint(s[0],s[1],s[2]),e.activeCamera.setPosition(s[0]+v*l[0],s[1]+v*l[1],s[2]+v*l[2]),t.resetCameraClippingRange(o),e.activeCamera.setParallelScale(p),e.activeCamera.setPhysicalScale(d),e.activeCamera.setPhysicalTranslation(-s[0],-s[1],-s[2]),t.invokeEvent(a),!0},t.resetCameraClippingRange=function(){const o=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:null)||t.computeVisiblePropBounds();if(!hC(o))return Op("Cannot reset camera clipping range!"),!1;if(t.getActiveCameraAndResetIfCreated(),!e.activeCamera)return nu("Trying to reset clipping range of non-existent camera"),!1;const s=e.activeCamera.computeClippingRange(o);let l=0;if(e.activeCamera.getParallelProjection())l=.2*e.activeCamera.getParallelScale();else{const u=wr(e.activeCamera.getViewAngle());l=.2*Math.tan(u/2)*s[1]}return s[1]-s[0]=s[1]?.01*s[1]:s[0],e.nearClippingPlaneTolerance||(e.nearClippingPlaneTolerance=.01),s[0]{i!==e._renderWindow&&(e._vtkWindow=i,e._renderWindow=i)},t.visibleActorCount=()=>e.props.filter(i=>i.getVisibility()).length,t.visibleVolumeCount=t.visibleActorCount,t.getMTime=()=>{let i=e.mtime;const o=e.activeCamera?e.activeCamera.getMTime():0;o>i&&(i=o);const s=e._createdLight?e._createdLight.getMTime():0;return s>i&&(i=s),i},t.getTransparent=()=>!!e.preserveColorBuffer,t.isActiveCameraCreated=()=>!!e.activeCamera}const k7e={pickedProp:null,activeCamera:null,allBounds:[],ambient:[1,1,1],allocatedRenderTime:100,timeFactor:1,automaticLightCreation:!0,twoSidedLighting:!0,lastRenderTimeInSeconds:-1,renderWindow:null,lights:[],actors:[],volumes:[],lightFollowCamera:!0,numberOfPropsRendered:0,propArray:null,pathArray:null,layer:0,preserveColorBuffer:!1,preserveDepthBuffer:!1,computeVisiblePropBounds:hO(),interactive:!0,nearClippingPlaneTolerance:0,clippingRangeExpansion:.05,erase:!0,draw:!0,useShadows:!1,useDepthPeeling:!1,occlusionRatio:0,maximumNumberOfPeels:4,selector:null,delegate:null,texturedBackground:!1,backgroundTexture:null,environmentTexture:null,environmentTextureDiffuseStrength:1,environmentTextureSpecularStrength:1,useEnvironmentTextureAsBackground:!1,pass:0};function JX(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(Object.assign(e,k7e,n),p7e.extend(t,e,n),e.background||(e.background=[0,0,0,1]);e.background.length<3;)e.background.push(0);e.background.length===3&&e.background.push(1),Is(t,e,["_renderWindow","allocatedRenderTime","timeFactor","lastRenderTimeInSeconds","numberOfPropsRendered","lastRenderingUsedDepthPeeling","selector"]),Bs(t,e,["twoSidedLighting","lightFollowCamera","automaticLightCreation","erase","draw","nearClippingPlaneTolerance","clippingRangeExpansion","backingStore","interactive","layer","preserveColorBuffer","preserveDepthBuffer","useDepthPeeling","occlusionRatio","maximumNumberOfPeels","delegate","backgroundTexture","texturedBackground","environmentTexture","environmentTextureDiffuseStrength","environmentTextureSpecularStrength","useEnvironmentTextureAsBackground","useShadows","pass"]),Jy(t,e,["actors","volumes","lights"]),qA(t,e,["background"],4,1),vx(t,e,["renderWindow"]),M7e(t,e)}const D7e=Uo(JX,"vtkRenderer");var R7e={newInstance:D7e,extend:JX};const L7e="WebGL",v_=Object.create(null);function wO(t,e){v_[t]=e}function A7e(){return Object.keys(v_)}function eq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return v_[t]&&v_[t](e)}function O7e(t,e){e.classHierarchy.push("vtkRenderWindow"),t.addRenderer=n=>{t.hasRenderer(n)||(n.setRenderWindow(t),e.renderers.push(n),t.modified())},t.removeRenderer=n=>{e.renderers=e.renderers.filter(r=>r!==n),t.modified()},t.hasRenderer=n=>e.renderers.indexOf(n)!==-1,t.newAPISpecificView=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return eq(n||e.defaultViewAPI,r)},t.addView=n=>{t.hasView(n)||(n.setRenderable(t),e._views.push(n),t.modified())},t.removeView=n=>{e._views=e._views.filter(r=>r!==n),t.modified()},t.hasView=n=>e._views.indexOf(n)!==-1,t.preRender=()=>{e.renderers.forEach(n=>{n.isActiveCameraCreated()||n.resetCamera()})},t.render=()=>{t.preRender(),e.interactor?e.interactor.render():e._views.forEach(n=>n.traverseAllPasses())},t.getStatistics=()=>{const n={propCount:0,invisiblePropCount:0,gpuMemoryMB:0};return e._views.forEach(r=>{r.getGraphicsMemoryInfo&&(n.gpuMemoryMB+=r.getGraphicsMemoryInfo()/1e6)}),e.renderers.forEach(r=>{const a=r.getViewProps(),i=e._views[0].getViewNodeFor(r);a.forEach(o=>{if(o.getVisibility()){n.propCount+=1;const s=o.getMapper&&o.getMapper();if(s&&s.getPrimitiveCount){const l=i.getViewNodeFor(s);if(l){l.getAllocatedGPUMemoryInBytes&&(n.gpuMemoryMB+=l.getAllocatedGPUMemoryInBytes()/1e6);const u=s.getPrimitiveCount();Object.keys(u).forEach(c=>{n[c]||(n[c]=0),n[c]+=u[c]})}}}else n.invisiblePropCount+=1})}),n.str=Object.keys(n).map(r=>`${r}: ${n[r]}`).join(` `),n},t.captureImages=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"image/png",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Q.setImmediate(t.render),e._views.map(a=>a.captureNextImage?a.captureNextImage(n,r):void 0).filter(a=>!!a)}}const N7e={defaultViewAPI:L7e,renderers:[],views:[],interactor:null,neverRendered:!0,numberOfLayers:1};function tq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,N7e,n),Q.obj(t,e),Q.setGet(t,e,["interactor","numberOfLayers","_views","defaultViewAPI"]),Q.get(t,e,["neverRendered"]),Q.getArray(t,e,["renderers"]),Q.moveToProtected(t,e,["views"]),Q.event(t,e,"completion"),O7e(t,e)}const $7e=Q.newInstance(tq,"vtkRenderWindow");var I7e={newInstance:$7e,extend:tq,registerViewConstructor:wO,listViewAPIs:A7e,newAPISpecificView:eq};const Fk={Unknown:0,LeftController:1,RightController:2},gg={Unknown:0,Trigger:1,TrackPad:2,Grip:3,Thumbstick:4,A:5,B:6,ApplicationMenu:7},B7e={Unknown:0,TouchpadX:1,TouchpadY:2,ThumbstickX:3,ThumbstickY:4};var nq={Device:Fk,Input:gg,Axis:B7e};const{Device:i1,Input:Qc}=nq,{vtkWarningMacro:o1,vtkErrorMacro:s1,normalizeWheel:V7e,vtkOnceErrorMacro:P7e}=Q,Nd={ctrlKey:!1,altKey:!1,shiftKey:!1},pC={"xr-standard":[Qc.Trigger,Qc.Grip,Qc.TrackPad,Qc.Thumbstick,Qc.A,Qc.B]},xO=["StartAnimation","Animation","EndAnimation","PointerEnter","PointerLeave","MouseEnter","MouseLeave","StartMouseMove","MouseMove","EndMouseMove","LeftButtonPress","LeftButtonRelease","MiddleButtonPress","MiddleButtonRelease","RightButtonPress","RightButtonRelease","KeyPress","KeyDown","KeyUp","StartMouseWheel","MouseWheel","EndMouseWheel","StartPinch","Pinch","EndPinch","StartPan","Pan","EndPan","StartRotate","Rotate","EndRotate","Button3D","Move3D","StartPointerLock","EndPointerLock","StartInteraction","Interaction","EndInteraction","AnimationFrameRateUpdate"];function Np(t){t.cancelable&&t.preventDefault()}function l1(t){const e=Object.create(null);return t.forEach(n=>{let{pointerId:r,position:a}=n;e[r]=a}),e}function F7e(t,e){e.classHierarchy.push("vtkRenderWindowInteractor");const n={...t},r=new Set,a=new Map;let i=1;t.start=()=>{!e.initialized&&(t.initialize(),!e.initialized)||t.startEventLoop()},t.setRenderWindow=v=>{s1("you want to call setView(view) instead of setRenderWindow on a vtk.js interactor")},t.setInteractorStyle=v=>{e.interactorStyle!==v&&(e.interactorStyle!=null&&e.interactorStyle.setInteractor(null),e.interactorStyle=v,e.interactorStyle!=null&&e.interactorStyle.getInteractor()!==t&&e.interactorStyle.setInteractor(t))},t.initialize=()=>{e.initialized=!0,t.enable(),t.render()},t.enable=()=>t.setEnabled(!0),t.disable=()=>t.setEnabled(!1),t.startEventLoop=()=>o1("empty event loop");function o(v,g){e._forcedRenderer||(e.currentRenderer=t.findPokedRenderer(v,g))}t.getCurrentRenderer=()=>(e.currentRenderer||o(0,0),e.currentRenderer);function s(v){const g=e._view.getCanvas(),y=g.getBoundingClientRect(),m=g.width/y.width,b=g.height/y.height,_={x:m*(v.clientX-y.left),y:b*(y.height-v.clientY+y.top),z:0};return(a.size<=1||!e.currentRenderer)&&o(_.x,_.y),_}const l=e._getScreenEventPositionFor||s;function u(v){return{controlKey:v.ctrlKey,altKey:v.altKey,shiftKey:v.shiftKey}}function c(v){const g=u(v);return{key:v.key,keyCode:v.charCode,...g}}function f(v){return v.pointerType||""}const d=()=>{if(e.container===null)return;const{container:v}=e;v.addEventListener("contextmenu",Np),v.addEventListener("wheel",t.handleWheel),v.addEventListener("DOMMouseScroll",t.handleWheel),v.addEventListener("pointerenter",t.handlePointerEnter),v.addEventListener("pointerleave",t.handlePointerLeave),v.addEventListener("pointermove",t.handlePointerMove,{passive:!1}),v.addEventListener("pointerdown",t.handlePointerDown,{passive:!1}),v.addEventListener("pointerup",t.handlePointerUp),v.addEventListener("pointercancel",t.handlePointerCancel),document.addEventListener("keypress",t.handleKeyPress),document.addEventListener("keydown",t.handleKeyDown),document.addEventListener("keyup",t.handleKeyUp),document.addEventListener("pointerlockchange",t.handlePointerLockChange),v.style.touchAction="none",v.style.userSelect="none",v.style.webkitTapHighlightColor="rgba(0,0,0,0)"};t.bindEvents=v=>{if(v===null)return;n.setContainer(v)&&d()};const h=()=>{clearTimeout(e.moveTimeoutID),clearTimeout(e.wheelTimeoutID),e.moveTimeoutID=0,e.wheelTimeoutID=0,i=1;const{container:v}=e;v&&(v.removeEventListener("contextmenu",Np),v.removeEventListener("wheel",t.handleWheel),v.removeEventListener("DOMMouseScroll",t.handleWheel),v.removeEventListener("pointerenter",t.handlePointerEnter),v.removeEventListener("pointerleave",t.handlePointerLeave),v.removeEventListener("pointermove",t.handlePointerMove,{passive:!1}),v.removeEventListener("pointerdown",t.handlePointerDown,{passive:!1}),v.removeEventListener("pointerup",t.handlePointerUp),v.removeEventListener("pointercancel",t.handlePointerCancel)),document.removeEventListener("keypress",t.handleKeyPress),document.removeEventListener("keydown",t.handleKeyDown),document.removeEventListener("keyup",t.handleKeyUp),document.removeEventListener("pointerlockchange",t.handlePointerLockChange),a.clear()};t.unbindEvents=()=>{h(),n.setContainer(null)},t.handleKeyPress=v=>{const g=c(v);t.keyPressEvent(g)},t.handleKeyDown=v=>{const g=c(v);t.keyDownEvent(g)},t.handleKeyUp=v=>{const g=c(v);t.keyUpEvent(g)},t.handlePointerEnter=v=>{const g={...u(v),position:l(v),deviceType:f(v)};t.pointerEnterEvent(g),g.deviceType==="mouse"&&t.mouseEnterEvent(g)},t.handlePointerLeave=v=>{const g={...u(v),position:l(v),deviceType:f(v)};t.pointerLeaveEvent(g),g.deviceType==="mouse"&&t.mouseLeaveEvent(g)},t.handlePointerDown=v=>{if(!(v.button>2||t.isPointerLocked()))switch(e.preventDefaultOnPointerDown&&Np(v),v.target.hasPointerCapture(v.pointerId)&&v.target.releasePointerCapture(v.pointerId),e.container.setPointerCapture(v.pointerId),a.has(v.pointerId)&&o1("[RenderWindowInteractor] duplicate pointerId detected"),a.set(v.pointerId,{pointerId:v.pointerId,position:l(v)}),v.pointerType){case"pen":case"touch":t.handleTouchStart(v);break;case"mouse":default:t.handleMouseDown(v);break}},t.handlePointerUp=v=>{if(a.has(v.pointerId))switch(e.preventDefaultOnPointerUp&&Np(v),a.delete(v.pointerId),e.container.releasePointerCapture(v.pointerId),v.pointerType){case"pen":case"touch":t.handleTouchEnd(v);break;case"mouse":default:t.handleMouseUp(v);break}},t.handlePointerCancel=v=>{if(a.has(v.pointerId))switch(a.delete(v.pointerId),v.pointerType){case"pen":case"touch":t.handleTouchEnd(v);break;case"mouse":default:t.handleMouseUp(v);break}},t.handlePointerMove=v=>{if(a.has(v.pointerId)){const g=a.get(v.pointerId);g.position=l(v)}switch(v.pointerType){case"pen":case"touch":t.handleTouchMove(v);break;case"mouse":default:t.handleMouseMove(v);break}},t.handleMouseDown=v=>{const g={...u(v),position:l(v),deviceType:f(v)};switch(v.button){case 0:t.leftButtonPressEvent(g);break;case 1:t.middleButtonPressEvent(g);break;case 2:t.rightButtonPressEvent(g);break;default:s1(`Unknown mouse button pressed: ${v.button}`);break}},t.requestPointerLock=()=>{e.container&&e.container.requestPointerLock()},t.exitPointerLock=()=>{var v;return(v=document.exitPointerLock)==null?void 0:v.call(document)},t.isPointerLocked=()=>!!e.container&&document.pointerLockElement===e.container,t.handlePointerLockChange=()=>{t.isPointerLocked()?t.startPointerLockEvent():t.endPointerLockEvent()};function p(){e._view&&e.enabled&&e.enableRender&&(e.inRender=!0,e._view.traverseAllPasses(),e.inRender=!1),t.invokeRenderEvent()}t.requestAnimation=v=>{if(v===void 0){s1("undefined requester, can not start animating");return}if(r.has(v)){o1("requester is already registered for animating");return}r.add(v),!e.animationRequest&&r.size===1&&!e.xrAnimation&&(e._animationStartTime=Date.now(),e._animationFrameCount=0,e.animationRequest=requestAnimationFrame(t.handleAnimation),t.startAnimationEvent())},t.extendAnimation=v=>{const g=Date.now()+v;e._animationExtendedEnd=Math.max(e._animationExtendedEnd,g),!e.animationRequest&&r.size===0&&!e.xrAnimation&&(e._animationStartTime=Date.now(),e._animationFrameCount=0,e.animationRequest=requestAnimationFrame(t.handleAnimation),t.startAnimationEvent())},t.isAnimating=()=>e.xrAnimation||e.animationRequest!==null,t.cancelAnimation=function(v){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!r.has(v)){if(!g){const y=v&&v.getClassName?v.getClassName():v;o1(`${y} did not request an animation`)}return}r.delete(v),e.animationRequest&&r.size===0&&Date.now()>e._animationExtendedEnd&&(cancelAnimationFrame(e.animationRequest),e.animationRequest=null,t.endAnimationEvent(),t.render())},t.switchToXRAnimation=()=>{e.animationRequest&&(cancelAnimationFrame(e.animationRequest),e.animationRequest=null),e.xrAnimation=!0},t.returnFromXRAnimation=()=>{e.xrAnimation=!1,r.size!==0&&(e.recentAnimationFrameRate=10,e.animationRequest=requestAnimationFrame(t.handleAnimation))},t.updateXRGamepads=(v,g,y)=>{v.inputSources.forEach(m=>{const b=m.gripSpace==null?null:g.getPose(m.gripSpace,y),_=m.gamepad,x=m.handedness;if(_){_.index in e.lastGamepadValues||(e.lastGamepadValues[_.index]={left:{buttons:{}},right:{buttons:{}},none:{buttons:{}}});for(let w=0;w<_.buttons.length;++w)w in e.lastGamepadValues[_.index][x].buttons||(e.lastGamepadValues[_.index][x].buttons[w]=!1),e.lastGamepadValues[_.index][x].buttons[w]!==_.buttons[w].pressed&&b!=null&&(t.button3DEvent({gamepad:_,position:b.transform.position,orientation:b.transform.orientation,pressed:_.buttons[w].pressed,device:m.handedness==="left"?i1.LeftController:i1.RightController,input:pC[_.mapping]&&pC[_.mapping][w]?pC[_.mapping][w]:Qc.Trigger}),e.lastGamepadValues[_.index][x].buttons[w]=_.buttons[w].pressed),e.lastGamepadValues[_.index][x].buttons[w]&&b!=null&&t.move3DEvent({gamepad:_,position:b.transform.position,orientation:b.transform.orientation,device:m.handedness==="left"?i1.LeftController:i1.RightController})}})},t.handleMouseMove=v=>{const g={...u(v),position:l(v),deviceType:f(v)};e.moveTimeoutID===0?t.startMouseMoveEvent(g):(t.mouseMoveEvent(g),clearTimeout(e.moveTimeoutID)),e.moveTimeoutID=setTimeout(()=>{t.endMouseMoveEvent(),e.moveTimeoutID=0},200)},t.handleAnimation=()=>{const v=Date.now();e._animationFrameCount++,v-e._animationStartTime>1e3&&e._animationFrameCount>1&&(e.recentAnimationFrameRate=1e3*(e._animationFrameCount-1)/(v-e._animationStartTime),e.lastFrameTime=1/e.recentAnimationFrameRate,t.animationFrameRateUpdateEvent(),e._animationStartTime=v,e._animationFrameCount=1),t.animationEvent(),p(),r.size>0||Date.now(){Np(v);const g={...V7e(v),...u(v),position:l(v),deviceType:f(v)};e.wheelTimeoutID===0&&(Math.abs(g.spinY)>=.3?i=Math.abs(g.spinY):i=1),g.spinY/=i,e.wheelTimeoutID===0?(t.startMouseWheelEvent(g),t.mouseWheelEvent(g)):(t.mouseWheelEvent(g),clearTimeout(e.wheelTimeoutID)),e.mouseScrollDebounceByPass?(t.extendAnimation(600),t.endMouseWheelEvent(),e.wheelTimeoutID=0):e.wheelTimeoutID=setTimeout(()=>{t.extendAnimation(600),t.endMouseWheelEvent(),e.wheelTimeoutID=0},200)},t.handleMouseUp=v=>{const g={...u(v),position:l(v),deviceType:f(v)};switch(v.button){case 0:t.leftButtonReleaseEvent(g);break;case 1:t.middleButtonReleaseEvent(g);break;case 2:t.rightButtonReleaseEvent(g);break;default:s1(`Unknown mouse button released: ${v.button}`);break}},t.handleTouchStart=v=>{const g=[...a.values()];if(e.recognizeGestures&&g.length>1){const y=l1(a);if(g.length===2){const m={...u(Nd),position:g[0].position,deviceType:f(v)};t.leftButtonReleaseEvent(m)}t.recognizeGesture("TouchStart",y)}else if(g.length===1){const y={...u(Nd),position:l(v),deviceType:f(v)};t.leftButtonPressEvent(y)}},t.handleTouchMove=v=>{const g=[...a.values()];if(e.recognizeGestures&&g.length>1){const y=l1(a);t.recognizeGesture("TouchMove",y)}else if(g.length===1){const y={...u(Nd),position:g[0].position,deviceType:f(v)};t.mouseMoveEvent(y)}},t.handleTouchEnd=v=>{const g=[...a.values()];if(e.recognizeGestures)if(g.length===0){const y={...u(Nd),position:l(v),deviceType:f(v)};t.leftButtonReleaseEvent(y)}else if(g.length===1){const y=l1(a);t.recognizeGesture("TouchEnd",y);const m={...u(Nd),position:g[0].position,deviceType:f(v)};t.leftButtonPressEvent(m)}else{const y=l1(a);t.recognizeGesture("TouchMove",y)}else if(g.length===1){const y={...u(Nd),position:g[0].position,deviceType:f(v)};t.leftButtonReleaseEvent(y)}},t.setView=v=>{e._view!==v&&(e._view=v,e._view.getRenderable().setInteractor(t),t.modified())},t.getFirstRenderer=()=>{var v,g,y;return(y=(g=(v=e._view)==null?void 0:v.getRenderable())==null?void 0:g.getRenderersByReference())==null?void 0:y[0]},t.findPokedRenderer=function(){var w,C;let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!e._view)return null;const y=(C=(w=e._view)==null?void 0:w.getRenderable())==null?void 0:C.getRenderers();if(!y||y.length===0)return null;y.sort((T,k)=>T.getLayer()-k.getLayer());let m=null,b=null,_=null,x=y.length;for(;x--;){const T=y[x];if(e._view.isInViewport(v,g,T)&&T.getInteractive()){_=T;break}m===null&&T.getInteractive()&&(m=T),b===null&&e._view.isInViewport(v,g,T)&&(b=T)}return _===null&&(_=m),_===null&&(_=b),_==null&&(_=y[0]),_},t.render=()=>{!t.isAnimating()&&!e.inRender&&p()},xO.forEach(v=>{const g=v.charAt(0).toLowerCase()+v.slice(1);t[`${g}Event`]=y=>{if(!e.enabled)return;if(!t.getCurrentRenderer()){P7e(` Can not forward events without a current renderer on the interactor. `);return}const b={type:v,pokedRenderer:e.currentRenderer,firstRenderer:t.getFirstRenderer(),...y};t[`invoke${v}`](b)}}),t.recognizeGesture=(v,g)=>{if(Object.keys(g).length>2)return;if(e.startingEventPositions||(e.startingEventPositions={}),v==="TouchStart"){Object.keys(g).forEach(E=>{e.startingEventPositions[E]=g[E]}),e.currentGesture="Start";return}if(v==="TouchEnd"){e.currentGesture==="Pinch"&&(t.render(),t.endPinchEvent()),e.currentGesture==="Rotate"&&(t.render(),t.endRotateEvent()),e.currentGesture==="Pan"&&(t.render(),t.endPanEvent()),e.currentGesture="Start",e.startingEventPositions={};return}let y=0;const m=[],b=[];Object.keys(g).forEach(E=>{m[y]=g[E],b[y]=e.startingEventPositions[E],y++});const _=Math.sqrt((b[0].x-b[1].x)*(b[0].x-b[1].x)+(b[0].y-b[1].y)*(b[0].y-b[1].y)),x=Math.sqrt((m[0].x-m[1].x)*(m[0].x-m[1].x)+(m[0].y-m[1].y)*(m[0].y-m[1].y));let w=X0(Math.atan2(b[1].y-b[0].y,b[1].x-b[0].x)),C=X0(Math.atan2(m[1].y-m[0].y,m[1].x-m[0].x)),T=C-w;C=C+180>=360?C-180:C+180,w=w+180>=360?w-180:w+180,Math.abs(C-w)E&&M>D&&M>R){e.currentGesture="Pinch";const A={scale:1,touches:g};t.startPinchEvent(A)}else if(D>E&&D>R){e.currentGesture="Rotate";const A={rotation:0,touches:g};t.startRotateEvent(A)}else if(R>E){e.currentGesture="Pan";const A={translation:[0,0],touches:g};t.startPanEvent(A)}}else{if(e.currentGesture==="Rotate"){const E={rotation:T,touches:g};t.rotateEvent(E)}if(e.currentGesture==="Pinch"){const E={scale:x/_,touches:g};t.pinchEvent(E)}if(e.currentGesture==="Pan"){const E={translation:k,touches:g};t.panEvent(E)}}},t.handleVisibilityChange=()=>{e._animationStartTime=Date.now(),e._animationFrameCount=0},t.setCurrentRenderer=v=>{e._forcedRenderer=!!v,e.currentRenderer=v},t.setContainer=v=>{h();const g=n.setContainer(v??null);return g&&d(),g},t.delete=()=>{for(;r.size;)t.cancelAnimation(r.values().next().value);typeof document.hidden<"u"&&document.removeEventListener("visibilitychange",t.handleVisibilityChange),e.container&&t.setContainer(null),n.delete()},typeof document.hidden<"u"&&document.addEventListener("visibilitychange",t.handleVisibilityChange,!1)}const z7e={renderWindow:null,interactorStyle:null,picker:null,pickingManager:null,initialized:!1,enabled:!1,enableRender:!0,currentRenderer:null,lightFollowCamera:!0,desiredUpdateRate:30,stillUpdateRate:2,container:null,recognizeGestures:!0,currentGesture:"Start",animationRequest:null,lastFrameTime:.1,recentAnimationFrameRate:10,wheelTimeoutID:0,moveTimeoutID:0,lastGamepadValues:{},preventDefaultOnPointerDown:!1,preventDefaultOnPointerUp:!1,mouseScrollDebounceByPass:!1};function rq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,z7e,n),Q.obj(t,e),e._animationExtendedEnd=0,Q.event(t,e,"RenderEvent"),xO.forEach(r=>Q.event(t,e,r)),Q.get(t,e,["initialized","interactorStyle","lastFrameTime","recentAnimationFrameRate","_view"]),Q.setGet(t,e,["container","lightFollowCamera","enabled","enableRender","recognizeGestures","desiredUpdateRate","stillUpdateRate","picker","preventDefaultOnPointerDown","preventDefaultOnPointerUp","mouseScrollDebounceByPass"]),Q.moveToProtected(t,e,["view"]),F7e(t,e)}const G7e=Q.newInstance(rq,"vtkRenderWindowInteractor");var aq={newInstance:G7e,extend:rq,handledEvents:xO,...nq};const{vtkErrorMacro:H7e,VOID:U7e}=Q;function W7e(t,e,n,r){return t.getRenderWindow().getViews()[0].worldToDisplay(e,n,r,t)}function j7e(t,e,n,r){return t.getRenderWindow().getViews()[0].displayToWorld(e,n,r,t)}const K7e={computeWorldToDisplay:W7e,computeDisplayToWorld:j7e};function Y7e(t,e){e.classHierarchy.push("vtkInteractorObserver");const n={...t};function r(){for(;e.subscribedEvents.length;)e.subscribedEvents.pop().unsubscribe()}function a(){aq.handledEvents.forEach(i=>{t[`handle${i}`]&&e.subscribedEvents.push(e._interactor[`on${i}`](o=>e.processEvents?t[`handle${i}`](o):U7e,e.priority))})}t.setInteractor=i=>{i!==e._interactor&&(r(),e._interactor=i,i&&e.enabled&&a(),t.modified())},t.setEnabled=i=>{i!==e.enabled&&(r(),i&&(e._interactor?a():H7e(` The interactor must be set before subscribing to events `)),e.enabled=i,t.modified())},t.computeDisplayToWorld=(i,o,s,l)=>i?e._interactor.getView().displayToWorld(o,s,l,i):null,t.computeWorldToDisplay=(i,o,s,l)=>i?e._interactor.getView().worldToDisplay(o,s,l,i):null,t.setPriority=i=>{n.setPriority(i)&&e._interactor&&(r(),a())}}const X7e={enabled:!0,priority:0,processEvents:!0,subscribedEvents:[]};function iq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,X7e,n),Q.obj(t,e),Q.event(t,e,"InteractionEvent"),Q.event(t,e,"StartInteractionEvent"),Q.event(t,e,"EndInteractionEvent"),Q.get(t,e,["_interactor","enabled"]),Q.setGet(t,e,["priority","processEvents"]),Q.moveToProtected(t,e,["interactor"]),Y7e(t,e)}const q7e=Q.newInstance(iq,"vtkInteractorObserver");var Z7e={newInstance:q7e,extend:iq,...K7e};const Q7e={IS_START:0,IS_NONE:0,IS_ROTATE:1,IS_PAN:2,IS_SPIN:3,IS_DOLLY:4,IS_CAMERA_POSE:11,IS_WINDOW_LEVEL:1024,IS_SLICE:1025};var CO={States:Q7e};const{States:rs}=CO,gC={Rotate:rs.IS_ROTATE,Pan:rs.IS_PAN,Spin:rs.IS_SPIN,Dolly:rs.IS_DOLLY,CameraPose:rs.IS_CAMERA_POSE,WindowLevel:rs.IS_WINDOW_LEVEL,Slice:rs.IS_SLICE};function J7e(t,e){e.classHierarchy.push("vtkInteractorStyle"),Object.keys(gC).forEach(n=>{Q.event(t,e,`Start${n}Event`),t[`start${n}`]=()=>{e.state===rs.IS_NONE&&(e.state=gC[n],e._interactor.requestAnimation(t),t.invokeStartInteractionEvent({type:"StartInteractionEvent"}),t[`invokeStart${n}Event`]({type:`Start${n}Event`}))},Q.event(t,e,`End${n}Event`),t[`end${n}`]=()=>{e.state===gC[n]&&(e.state=rs.IS_NONE,e._interactor.cancelAnimation(t),t.invokeEndInteractionEvent({type:"EndInteractionEvent"}),t[`invokeEnd${n}Event`]({type:`End${n}Event`}),e._interactor.render())}}),t.handleKeyPress=n=>{const r=e._interactor;let a=null;switch(n.key){case"r":case"R":n.pokedRenderer.resetCamera(),r.render();break;case"w":case"W":a=n.pokedRenderer.getActors(),a.forEach(i=>{const o=i.getProperty();o.setRepresentationToWireframe&&o.setRepresentationToWireframe()}),r.render();break;case"s":case"S":a=n.pokedRenderer.getActors(),a.forEach(i=>{const o=i.getProperty();o.setRepresentationToSurface&&o.setRepresentationToSurface()}),r.render();break;case"v":case"V":a=n.pokedRenderer.getActors(),a.forEach(i=>{const o=i.getProperty();o.setRepresentationToPoints&&o.setRepresentationToPoints()}),r.render();break}}}const eje={state:rs.IS_NONE,handleObservers:1,autoAdjustCameraClippingRange:1};function oq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,eje,n),Z7e.extend(t,e,n),J7e(t,e)}const tje=Q.newInstance(oq,"vtkInteractorStyle");var nje={newInstance:tje,extend:oq,...CO};const{States:jo}=CO;function rje(t,e){e.classHierarchy.push("vtkInteractorStyleTrackballCamera"),t.handleMouseMove=n=>{const r=n.position,a=n.pokedRenderer;switch(e.state){case jo.IS_ROTATE:t.handleMouseRotate(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break;case jo.IS_PAN:t.handleMousePan(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break;case jo.IS_DOLLY:t.handleMouseDolly(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break;case jo.IS_SPIN:t.handleMouseSpin(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break}e.previousPosition=r},t.handleButton3D=n=>{if(n&&n.pressed&&n.device===Fk.RightController&&(n.input===gg.Trigger||n.input===gg.TrackPad)){t.startCameraPose();return}n&&!n.pressed&&n.device===Fk.RightController&&(n.input===gg.Trigger||n.input===gg.TrackPad)&&e.state===jo.IS_CAMERA_POSE&&t.endCameraPose()},t.handleMove3D=n=>{switch(e.state){case jo.IS_CAMERA_POSE:t.updateCameraPose(n);break}},t.updateCameraPose=n=>{const r=n.pokedRenderer.getActiveCamera(),a=r.getPhysicalTranslation(),o=.5*.05*r.getPhysicalScale(),s=r.physicalOrientationToWorldDirection([n.orientation.x,n.orientation.y,n.orientation.z,n.orientation.w]);r.setPhysicalTranslation(a[0]+s[0]*o,a[1]+s[1]*o,a[2]+s[2]*o)},t.handleLeftButtonPress=n=>{const r=n.position;e.previousPosition=r,n.shiftKey?n.controlKey||n.altKey?t.startDolly():t.startPan():n.controlKey||n.altKey?t.startSpin():t.startRotate()},t.handleLeftButtonRelease=()=>{switch(e.state){case jo.IS_DOLLY:t.endDolly();break;case jo.IS_PAN:t.endPan();break;case jo.IS_SPIN:t.endSpin();break;case jo.IS_ROTATE:t.endRotate();break}},t.handleStartMouseWheel=()=>{t.startDolly()},t.handleEndMouseWheel=()=>{t.endDolly()},t.handleStartPinch=n=>{e.previousScale=n.scale,t.startDolly()},t.handleEndPinch=()=>{t.endDolly()},t.handleStartRotate=n=>{e.previousRotation=n.rotation,t.startRotate()},t.handleEndRotate=()=>{t.endRotate()},t.handleStartPan=n=>{e.previousTranslation=n.translation,t.startPan()},t.handleEndPan=()=>{t.endPan()},t.handlePinch=n=>{t.dollyByFactor(n.pokedRenderer,n.scale/e.previousScale),e.previousScale=n.scale},t.handlePan=n=>{const r=n.pokedRenderer.getActiveCamera();let a=r.getFocalPoint();a=t.computeWorldToDisplay(n.pokedRenderer,a[0],a[1],a[2]);const i=a[2],o=n.translation,s=e.previousTranslation,l=t.computeDisplayToWorld(n.pokedRenderer,a[0]+o[0]-s[0],a[1]+o[1]-s[1],i),u=t.computeDisplayToWorld(n.pokedRenderer,a[0],a[1],i),c=[];c[0]=u[0]-l[0],c[1]=u[1]-l[1],c[2]=u[2]-l[2],a=r.getFocalPoint();const f=r.getPosition();r.setFocalPoint(c[0]+a[0],c[1]+a[1],c[2]+a[2]),r.setPosition(c[0]+f[0],c[1]+f[1],c[2]+f[2]),e._interactor.getLightFollowCamera()&&n.pokedRenderer.updateLightsGeometryToFollowCamera(),r.orthogonalizeViewUp(),e.previousTranslation=n.translation},t.handleRotate=n=>{const r=n.pokedRenderer.getActiveCamera();r.roll(n.rotation-e.previousRotation),r.orthogonalizeViewUp(),e.previousRotation=n.rotation},t.handleMouseRotate=(n,r)=>{if(!e.previousPosition)return;const a=e._interactor,i=r.x-e.previousPosition.x,o=r.y-e.previousPosition.y,s=a.getView().getViewportSize(n);let l=-.1,u=-.1;s[0]&&s[1]&&(l=-20/s[1],u=-20/s[0]);const c=i*u*e.motionFactor,f=o*l*e.motionFactor,d=n.getActiveCamera();!Number.isNaN(c)&&!Number.isNaN(f)&&(d.azimuth(c),d.elevation(f),d.orthogonalizeViewUp()),e.autoAdjustCameraClippingRange&&n.resetCameraClippingRange(),a.getLightFollowCamera()&&n.updateLightsGeometryToFollowCamera()},t.handleMouseSpin=(n,r)=>{if(!e.previousPosition)return;const a=e._interactor,i=n.getActiveCamera(),o=a.getView().getViewportCenter(n),s=X0(Math.atan2(e.previousPosition.y-o[1],e.previousPosition.x-o[0])),l=X0(Math.atan2(r.y-o[1],r.x-o[0]))-s;Number.isNaN(l)||(i.roll(l),i.orthogonalizeViewUp())},t.handleMousePan=(n,r)=>{if(!e.previousPosition)return;const a=n.getActiveCamera();let i=a.getFocalPoint();i=t.computeWorldToDisplay(n,i[0],i[1],i[2]);const o=i[2],s=t.computeDisplayToWorld(n,r.x,r.y,o),l=t.computeDisplayToWorld(n,e.previousPosition.x,e.previousPosition.y,o),u=[];u[0]=l[0]-s[0],u[1]=l[1]-s[1],u[2]=l[2]-s[2],i=a.getFocalPoint();const c=a.getPosition();a.setFocalPoint(u[0]+i[0],u[1]+i[1],u[2]+i[2]),a.setPosition(u[0]+c[0],u[1]+c[1],u[2]+c[2]),e._interactor.getLightFollowCamera()&&n.updateLightsGeometryToFollowCamera()},t.handleMouseDolly=(n,r)=>{if(!e.previousPosition)return;const a=r.y-e.previousPosition.y,o=e._interactor.getView().getViewportCenter(n),s=e.motionFactor*a/o[1];t.dollyByFactor(n,1.1**s)},t.handleMouseWheel=n=>{const r=1-n.spinY/e.zoomFactor;t.dollyByFactor(n.pokedRenderer,r)},t.dollyByFactor=(n,r)=>{if(Number.isNaN(r))return;const a=n.getActiveCamera();a.getParallelProjection()?a.setParallelScale(a.getParallelScale()/r):(a.dolly(r),e.autoAdjustCameraClippingRange&&n.resetCameraClippingRange()),e._interactor.getLightFollowCamera()&&n.updateLightsGeometryToFollowCamera()}}const aje={motionFactor:10,zoomFactor:10};function sq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,aje,n),nje.extend(t,e,n),Q.setGet(t,e,["motionFactor","zoomFactor"]),rje(t,e)}const ije=Q.newInstance(sq,"vtkInteractorStyleTrackballCamera");var oje={newInstance:ije,extend:sq};function sje(t){return t}function TO(t){if(t===null||t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;if(!(t===void 0||t==="undefined"))return t[0]==="["&&t[t.length-1]==="]"?t.substring(1,t.length-1).split(",").map(e=>TO(e.trim())):t===""||Number.isNaN(Number(t))?t:Number(t)}function lje(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window.location.search;const n={},r=t?TO:sje;return(e||"").replace(/#.*/,"").replace("?","").split("&").forEach(i=>{const[o,s]=i.split("=").map(l=>decodeURIComponent(l));o&&(n[o]=s?r(s):!0)}),n}var uje={toNativeType:TO,extractURLParameters:lje};const lq={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ar={VOID:"",CHAR:"Int8Array",SIGNED_CHAR:"Int8Array",UNSIGNED_CHAR:"Uint8Array",SHORT:"Int16Array",UNSIGNED_SHORT:"Uint16Array",INT:"Int32Array",UNSIGNED_INT:"Uint32Array",FLOAT:"Float32Array",DOUBLE:"Float64Array"},cje=Ar.FLOAT;var uq={DefaultDataType:cje,DataTypeByteSize:lq,VtkDataTypes:Ar};const{vtkErrorMacro:fje}=px,{DefaultDataType:dje}=uq,hje=1e-6;function zk(t,e,n){const r=t.length;let a=Number.MAX_VALUE,i=-Number.MAX_VALUE,o,s;for(s=e;si&&(i=o);return{min:a,max:i}}function vje(){let t=Number.MAX_VALUE,e=-Number.MAX_VALUE,n=0,r=0;return{add(a){t>a&&(t=a),e1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(e<0&&n>1){const a=t.length/n,i=new Float64Array(a);for(let o=0,s=0;o1&&arguments[1]!==void 0?arguments[1]:0;const n=t||[];for(;n.length<=e;)n.push(null);return n}function EO(t){return Object.prototype.toString.call(t).slice(8,-1)}function pje(t){const e=t.getNumberOfComponents();let n=0;const r=new Array(e);for(let a=0;an&&(n=i)}return n}const gje={computeRange:cq,createRangeHelper:vje,fastComputeRange:zk,getDataType:EO,getMaxNorm:pje};function yje(t,e){e.classHierarchy.push("vtkDataArray");function n(r){if(r<0)return!1;const a=t.getNumberOfComponents(),i=e.values.length/(a>0?a:1);if(r===i)return!0;if(r>i){const o=e.values;return e.values=Qv(e.dataType,(r+i)*a),e.values.set(o),!0}return e.size>r*a&&(e.size=r*a,t.dataChange()),!0}t.dataChange=()=>{e.ranges=null,t.modified()},t.resize=r=>{n(r);const a=r*t.getNumberOfComponents();return e.size!==a?(e.size=a,t.dataChange(),!0):!1},t.initialize=()=>{t.resize(0)},t.getElementComponentSize=()=>e.values.BYTES_PER_ELEMENT,t.getComponent=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.values[r*e.numberOfComponents+a]},t.setComponent=(r,a,i)=>{i!==e.values[r*e.numberOfComponents+a]&&(e.values[r*e.numberOfComponents+a]=i,t.dataChange())},t.getValue=r=>{const a=r/e.numberOfComponents,i=r%e.numberOfComponents;return t.getComponent(a,i)},t.setValue=(r,a)=>{const i=r/e.numberOfComponents,o=r%e.numberOfComponents;t.setComponent(i,o,a)},t.getData=()=>e.size===e.values.length?e.values:e.values.subarray(0,e.size),t.getRange=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1,a=r;a<0&&(a=e.numberOfComponents===1?0:e.numberOfComponents);let i=null;return e.ranges||(e.ranges=XP(e.ranges,e.numberOfComponents)),i=e.ranges[a],i?(e.rangeTuple[0]=i.min,e.rangeTuple[1]=i.max,e.rangeTuple):(i=cq(t.getData(),r,e.numberOfComponents),e.ranges[a]=i,e.rangeTuple[0]=i.min,e.rangeTuple[1]=i.max,e.rangeTuple)},t.setRange=(r,a)=>{e.ranges||(e.ranges=XP(e.ranges,e.numberOfComponents));const i={min:r.min,max:r.max};return e.ranges[a]=i,e.rangeTuple[0]=i.min,e.rangeTuple[1]=i.max,e.rangeTuple},t.setTuple=(r,a)=>{const i=r*e.numberOfComponents;for(let o=0;o{let i=r*e.numberOfComponents;const o=Math.min(a.length,e.size-i);for(let s=0;s(e.size<=r*e.numberOfComponents&&(e.size=(r+1)*e.numberOfComponents,n(r+1)),t.setTuple(r,a),r),t.insertTuples=(r,a)=>{const i=r+a.length/e.numberOfComponents;return e.size{const a=e.size/e.numberOfComponents;return t.insertTuple(a,r)},t.insertNextTuples=r=>{const a=e.size/e.numberOfComponents;return t.insertTuples(a,r)},t.findTuple=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hje;for(let i=0;ia){o=!1;break}if(o)return i/e.numberOfComponents}return-1},t.getTuple=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const i=e.numberOfComponents||1,o=r*i;switch(i){case 4:a[3]=e.values[o+3];case 3:a[2]=e.values[o+2];case 2:a[1]=e.values[o+1];case 1:a[0]=e.values[o];break;default:for(let s=i-1;s>=0;--s)a[s]=e.values[o+s]}return a},t.getTuples=(r,a)=>{const i=(r??0)*e.numberOfComponents,o=(a??t.getNumberOfTuples())*e.numberOfComponents,s=t.getData().subarray(i,o);return s.length>0?s:null},t.getTupleLocation=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:1)*e.numberOfComponents},t.getNumberOfComponents=()=>e.numberOfComponents,t.getNumberOfValues=()=>e.size,t.getNumberOfTuples=()=>e.size/e.numberOfComponents,t.getDataType=()=>e.dataType,t.newClone=()=>dq({empty:!0,name:e.name,dataType:e.dataType,numberOfComponents:e.numberOfComponents}),t.getName=()=>(e.name||(t.modified(),e.name=`vtkDataArray${t.getMTime()}`),e.name),t.setData=(r,a)=>{e.values=r,e.size=r.length,e.dataType=EO(r),a&&(e.numberOfComponents=a),e.size%e.numberOfComponents!==0&&(e.numberOfComponents=1),t.dataChange()},t.getState=()=>{if(e.deleted)return null;const r={...e,vtkClass:t.getClassName()};r.values=Array.from(r.values),delete r.buffer,Object.keys(r).forEach(i=>{r[i]||delete r[i]});const a={};return Object.keys(r).sort().forEach(i=>{a[i]=r[i]}),a.mtime&&delete a.mtime,a},t.deepCopy=r=>{const a=t.getDataType(),i=e.values;t.shallowCopy(r),(i==null?void 0:i.length)>=r.getNumberOfValues()&&a===r.getDataType()?(i.set(r.getData()),e.values=i,t.dataChange()):t.setData(r.getData().slice())},t.interpolateTuple=(r,a,i,o,s,l)=>{const u=e.numberOfComponents||1;(u!==a.getNumberOfComponents()||u!==o.getNumberOfComponents())&&fje("numberOfComponents must match");const c=a.getTuple(i),f=o.getTuple(s),d=[];switch(d.length=u,u){case 4:d[3]=c[3]+(f[3]-c[3])*l;case 3:d[2]=c[2]+(f[2]-c[2])*l;case 2:d[1]=c[1]+(f[1]-c[1])*l;case 1:d[0]=c[0]+(f[0]-c[0])*l;break;default:for(let h=0;h2&&arguments[2]!==void 0?arguments[2]:{};if(Object.assign(e,mje,n),!e.empty&&!e.values&&!e.size)throw new TypeError("Cannot create vtkDataArray object without: size > 0, values");if(e.values?Array.isArray(e.values)&&(e.values=KA(e.dataType,e.values)):e.values=Qv(e.dataType,e.size),e.values&&(e.size=e.size??e.values.length,e.dataType=EO(e.values)),$o(t,e),Qy(t,e,["name","numberOfComponents"]),e.size%e.numberOfComponents!==0)throw new RangeError("model.size is not a multiple of model.numberOfComponents");yje(t,e)}const dq=Uo(fq,"vtkDataArray");var Kn={newInstance:dq,extend:fq,...gje,...uq};const{vtkErrorMacro:bje}=Q,Sje=[1,-1,1,-1,1,-1];function _je(t,e){e.classHierarchy.push("vtkPoints"),t.getNumberOfPoints=t.getNumberOfTuples,t.setNumberOfPoints=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3;t.getNumberOfPoints()!==n&&(e.size=n*r,e.values=Q.newTypedArray(e.dataType,e.size),t.setNumberOfComponents(r),t.modified())},t.setPoint=function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;it.insertNextTuple([n,r,a]),t.getBounds=()=>{if(t.getNumberOfComponents()===3){const a=t.getRange(0);e.bounds[0]=a[0],e.bounds[1]=a[1];const i=t.getRange(1);e.bounds[2]=i[0],e.bounds[3]=i[1];const o=t.getRange(2);return e.bounds[4]=o[0],e.bounds[5]=o[1],e.bounds}if(t.getNumberOfComponents()!==2)return bje(`getBounds called on an array with components of ${t.getNumberOfComponents()}`),Sje;const n=t.getRange(0);e.bounds[0]=n[0],e.bounds[1]=n[1];const r=t.getRange(1);return e.bounds[2]=r[0],e.bounds[3]=r[1],e.bounds[4]=0,e.bounds[5]=0,e.bounds},t.computeBounds=t.getBounds,t.setNumberOfComponents(e.numberOfComponents<2?3:e.numberOfComponents)}const wje={empty:!0,numberOfComponents:3,dataType:Ar.FLOAT,bounds:[1,-1,1,-1,1,-1]};function hq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,wje,n),Kn.extend(t,e,n),_je(t,e)}const xje=Q.newInstance(hq,"vtkPoints");var Gk={newInstance:xje,extend:hq};function vq(t){let e=0;return t.filter((n,r)=>r===e?(e+=n+1,!0):!1)}function pq(t){let e=0;for(let n=0;n(e.numberOfCells!==void 0&&!r||(e.cellSizes?e.numberOfCells=e.cellSizes.length:e.numberOfCells=pq(t.getData())),e.numberOfCells),t.getCellSizes=r=>(e.cellSizes!==void 0&&!r||(e.cellSizes=vq(t.getData())),e.cellSizes),t.resize=r=>{const a=t.getNumberOfTuples();n.resize(r);const i=t.getNumberOfTuples();i{n.setData(r,1),e.numberOfCells=void 0,e.cellSizes=void 0},t.getCell=r=>{let a=r;const i=e.values[a++];return e.values.subarray(a,a+i)},t.insertNextCell=r=>{const a=t.getNumberOfCells();return t.insertNextTuples([r.length,...r]),++e.numberOfCells,e.cellSizes!=null&&e.cellSizes.push(r.length),a}}function Eje(t){return{empty:!0,numberOfComponents:1,dataType:Ar.UNSIGNED_INT,...t}}function gq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Kn.extend(t,e,Eje(n)),Tje(t,e)}const Mje=Q.newInstance(gq,"vtkCellArray");var qP={newInstance:Mje,extend:gq,...Cje};function kje(t,e){e.classHierarchy.push("vtkCell"),t.initialize=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(r){e.pointsIds=r;let a=e.points.getData();a.length!==3*e.pointsIds.length&&(a=Q.newTypedArray(n.getDataType(),3*e.pointsIds.length));const i=n.getData();e.pointsIds.forEach((o,s)=>{let l=3*o,u=3*s;a[u]=i[l],a[++u]=i[++l],a[++u]=i[++l]}),e.points.setData(a)}else{e.points=n,e.pointsIds=new Array(n.getNumberOfPoints());for(let a=n.getNumberOfPoints()-1;a>=0;--a)e.pointsIds[a]=a}},t.getBounds=()=>{const n=e.points.getNumberOfPoints(),r=[];if(n){e.points.getPoint(0,r),e.bounds[0]=r[0],e.bounds[1]=r[0],e.bounds[2]=r[1],e.bounds[3]=r[1],e.bounds[4]=r[2],e.bounds[5]=r[2];for(let a=1;ae.bounds[1]?r[0]:e.bounds[1],e.bounds[2]=r[1]e.bounds[3]?r[1]:e.bounds[3],e.bounds[4]=r[2]e.bounds[5]?r[2]:e.bounds[5]}else wX(e.bounds);return e.bounds},t.getLength2=()=>{t.getBounds();let n=0,r=0;for(let a=0;a<3;a++)r=e.bounds[2*a+1]-e.bounds[2*a],n+=r*r;return n},t.getParametricDistance=n=>{let r,a=0;for(let i=0;i<3;i++)n[i]<0?r=-n[i]:n[i]>1?r=n[i]-1:r=0,r>a&&(a=r);return a},t.getNumberOfPoints=()=>e.points.getNumberOfPoints(),t.deepCopy=n=>{n.initialize(e.points,e.pointsIds)},t.getCellDimension=()=>{},t.intersectWithLine=(n,r,a,i,o,s,l)=>{},t.evaluatePosition=(n,r,a,i,o,s)=>{Q.vtkErrorMacro("vtkCell.evaluatePosition is not implemented.")}}const Dje={bounds:[-1,-1,-1,-1,-1,-1],pointsIds:[]};function yq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Dje,n),Q.obj(t,e),e.points||(e.points=Gk.newInstance()),Q.get(t,e,["points","pointsIds"]),kje(t,e)}const Rje=Q.newInstance(yq,"vtkCell");var p_={newInstance:Rje,extend:yq};function Lje(t,e){let n=e;for(e>=t.array.length&&(n+=t.array.length);n>t.array.length;)t.array.push({ncells:0,cells:null});t.array.length=n}function Aje(t,e){e.classHierarchy.push("vtkCellLinks"),t.buildLinks=n=>{const r=n.getPoints().getNumberOfPoints(),a=n.getNumberOfCells(),i=new Uint32Array(r);if(n.isA("vtkPolyData")){for(let o=0;o{t.incrementLinkCount(l)})}t.allocateLinks(r),e.maxId=r-1;for(let o=0;o{t.insertCellReference(l,i[l]++,o)})}}else{for(let o=0;o{t.incrementLinkCount(l)});t.allocateLinks(r),e.maxId=r-1;for(let o=0;o{t.insertCellReference(l,i[l]++,o)})}},t.allocate=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;e.array=Array(n).fill().map(()=>({ncells:0,cells:null})),e.extend=r,e.maxId=-1},t.initialize=()=>{e.array=null},t.getLink=n=>e.array[n],t.getNcells=n=>e.array[n].ncells,t.getCells=n=>e.array[n].cells,t.insertNextPoint=n=>{e.array.push({ncells:n,cells:Array(n)}),++e.maxId},t.insertNextCellReference=(n,r)=>{e.array[n].cells[e.array[n].ncells++]=r},t.deletePoint=n=>{e.array[n].ncells=0,e.array[n].cells=null},t.removeCellReference=(n,r)=>{e.array[r].cells=e.array[r].cells.filter(a=>a!==n),e.array[r].ncells=e.array[r].cells.length},t.addCellReference=(n,r)=>{e.array[r].cells[e.array[r].ncells++]=n},t.resizeCellList=(n,r)=>{e.array[n].cells.length=r},t.squeeze=()=>{Lje(e,e.maxId+1)},t.reset=()=>{e.maxId=-1},t.deepCopy=n=>{e.array=[...n.array],e.extend=n.extend,e.maxId=n.maxId},t.incrementLinkCount=n=>{++e.array[n].ncells},t.allocateLinks=n=>{for(let r=0;r{e.array[n].cells[r]=a}}const Oje={array:null,maxId:0,extend:0};function mq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Oje,n),Q.obj(t,e),Aje(t,e)}const Nje=Q.newInstance(mq,"vtkCellLinks");var $je={newInstance:Nje,extend:mq};const Fn={VTK_EMPTY_CELL:0,VTK_VERTEX:1,VTK_POLY_VERTEX:2,VTK_LINE:3,VTK_POLY_LINE:4,VTK_TRIANGLE:5,VTK_TRIANGLE_STRIP:6,VTK_POLYGON:7,VTK_PIXEL:8,VTK_QUAD:9,VTK_TETRA:10,VTK_VOXEL:11,VTK_HEXAHEDRON:12,VTK_WEDGE:13,VTK_PYRAMID:14,VTK_PENTAGONAL_PRISM:15,VTK_HEXAGONAL_PRISM:16,VTK_QUADRATIC_EDGE:21,VTK_QUADRATIC_TRIANGLE:22,VTK_QUADRATIC_QUAD:23,VTK_QUADRATIC_POLYGON:36,VTK_QUADRATIC_TETRA:24,VTK_QUADRATIC_HEXAHEDRON:25,VTK_QUADRATIC_WEDGE:26,VTK_QUADRATIC_PYRAMID:27,VTK_BIQUADRATIC_QUAD:28,VTK_TRIQUADRATIC_HEXAHEDRON:29,VTK_QUADRATIC_LINEAR_QUAD:30,VTK_QUADRATIC_LINEAR_WEDGE:31,VTK_BIQUADRATIC_QUADRATIC_WEDGE:32,VTK_BIQUADRATIC_QUADRATIC_HEXAHEDRON:33,VTK_BIQUADRATIC_TRIANGLE:34,VTK_CUBIC_LINE:35,VTK_CONVEX_POINT_SET:41,VTK_POLYHEDRON:42,VTK_PARAMETRIC_CURVE:51,VTK_PARAMETRIC_SURFACE:52,VTK_PARAMETRIC_TRI_SURFACE:53,VTK_PARAMETRIC_QUAD_SURFACE:54,VTK_PARAMETRIC_TETRA_REGION:55,VTK_PARAMETRIC_HEX_REGION:56,VTK_HIGHER_ORDER_EDGE:60,VTK_HIGHER_ORDER_TRIANGLE:61,VTK_HIGHER_ORDER_QUAD:62,VTK_HIGHER_ORDER_POLYGON:63,VTK_HIGHER_ORDER_TETRAHEDRON:64,VTK_HIGHER_ORDER_WEDGE:65,VTK_HIGHER_ORDER_PYRAMID:66,VTK_HIGHER_ORDER_HEXAHEDRON:67,VTK_LAGRANGE_CURVE:68,VTK_LAGRANGE_TRIANGLE:69,VTK_LAGRANGE_QUADRILATERAL:70,VTK_LAGRANGE_TETRAHEDRON:71,VTK_LAGRANGE_HEXAHEDRON:72,VTK_LAGRANGE_WEDGE:73,VTK_LAGRANGE_PYRAMID:74,VTK_NUMBER_OF_CELL_TYPES:75},Hk=["vtkEmptyCell","vtkVertex","vtkPolyVertex","vtkLine","vtkPolyLine","vtkTriangle","vtkTriangleStrip","vtkPolygon","vtkPixel","vtkQuad","vtkTetra","vtkVoxel","vtkHexahedron","vtkWedge","vtkPyramid","vtkPentagonalPrism","vtkHexagonalPrism","UnknownClass","UnknownClass","UnknownClass","UnknownClass","vtkQuadraticEdge","vtkQuadraticTriangle","vtkQuadraticQuad","vtkQuadraticTetra","vtkQuadraticHexahedron","vtkQuadraticWedge","vtkQuadraticPyramid","vtkBiQuadraticQuad","vtkTriQuadraticHexahedron","vtkQuadraticLinearQuad","vtkQuadraticLinearWedge","vtkBiQuadraticQuadraticWedge","vtkBiQuadraticQuadraticHexahedron","vtkBiQuadraticTriangle","vtkCubicLine","vtkQuadraticPolygon","UnknownClass","UnknownClass","UnknownClass","UnknownClass","vtkConvexPointSet","UnknownClass","UnknownClass","UnknownClass","UnknownClass","UnknownClass","UnknownClass","UnknownClass","UnknownClass","UnknownClass","vtkParametricCurve","vtkParametricSurface","vtkParametricTriSurface","vtkParametricQuadSurface","vtkParametricTetraRegion","vtkParametricHexRegion","UnknownClass","UnknownClass","UnknownClass","vtkHigherOrderEdge","vtkHigherOrderTriangle","vtkHigherOrderQuad","vtkHigherOrderPolygon","vtkHigherOrderTetrahedron","vtkHigherOrderWedge","vtkHigherOrderPyramid","vtkHigherOrderHexahedron"];function Ije(t){return t0&&arguments[0]!==void 0?arguments[0]:512,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e3;e.size=n>0?n:1,e.extend=r>0?r:1,e.maxId=-1,e.typeArray=new Uint8Array(n),e.locationArray=new Uint32Array(n)},t.insertCell=(n,r,a)=>{e.typeArray[n]=r,e.locationArray[n]=a,n>e.maxId&&(e.maxId=n)},t.insertNextCell=(n,r)=>(t.insertCell(++e.maxId,n,r),e.maxId),t.setCellTypes=(n,r,a)=>{e.size=n,e.typeArray=r,e.locationArray=a,e.maxId=n-1},t.getCellLocation=n=>e.locationArray[n],t.deleteCell=n=>{e.typeArray[n]=Fn.VTK_EMPTY_CELL},t.getNumberOfTypes=()=>e.maxId+1,t.isType=n=>{const r=t.getNumberOfTypes();for(let a=0;at.insertNextCell(n,-1),t.getCellType=n=>e.typeArray[n],t.reset=()=>{e.maxId=-1},t.deepCopy=n=>{t.allocate(n.getSize(),n.getExtend()),e.typeArray.set(n.getTypeArray()),e.locationArray.set(n.getLocationArray()),e.maxId=n.getMaxId()}}const Gje={size:0,maxId:-1,extend:1e3};function bq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Gje,n),Q.obj(t,e),Q.get(t,e,["size","maxId","extend"]),Q.getArray(t,e,["typeArray","locationArray"]),zje(t,e)}const Hje=Q.newInstance(bq,"vtkCellTypes");var Uje={newInstance:Hje,extend:bq,...Fje};const Wje={NO_INTERSECTION:0,YES_INTERSECTION:1,ON_LINE:2};var Sq={IntersectionState:Wje};const{IntersectionState:rS}=Sq;function Eh(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;const a={t:Number.MIN_VALUE,distance:0},i=[];let o;i[0]=n[0]-e[0],i[1]=n[1]-e[1],i[2]=n[2]-e[2];const s=i[0]*(t[0]-e[0])+i[1]*(t[1]-e[1])+i[2]*(t[2]-e[2]),l=dn(i,i);let u=1e-5*s;return l!==0&&(a.t=s/l),u<0&&(u=-u),-u1?o=n:(o=i,i[0]=e[0]+a.t*i[0],i[1]=e[1]+a.t*i[1],i[2]=e[2]+a.t*i[2]),r&&(r[0]=o[0],r[1]=o[1],r[2]=o[2]),a.distance=ns(o,t),a}function _q(t,e,n,r,a,i){const o=[],s=[],l=[];a[0]=0,i[0]=0,Du(e,t,o),Du(r,n,s),Du(n,t,l);const u=[dn(o,o),-dn(o,s),-dn(o,s),dn(s,s)],c=[];if(c[0]=dn(o,l),c[1]=-dn(s,l),X9e(u,c,2)===0){let f=Number.MAX_VALUE;const d=[t,e,n,r],h=[n,n,t,t],p=[r,r,e,e];i[0],i[0],a[0],a[0],a[0],a[0],i[0],i[0];let v;for(let g=0;g<4;g++)v=Eh(d[g],h[g],p[g]),v.distance=0&&a[0]<=1&&i[0]>=0&&i[0]<=1?rS.YES_INTERSECTION:rS.NO_INTERSECTION}const jje={distanceToLine:Eh,intersection:_q};function Kje(t,e){e.classHierarchy.push("vtkLine");function n(r){return r>=0&&r<=1}t.getCellDimension=()=>1,t.intersectWithLine=(r,a,i,o,s)=>{const l={intersect:0,t:Number.MAX_VALUE,subId:0,betweenPoints:null};s[1]=0,s[2]=0;const u=[],c=[],f=[];e.points.getPoint(0,c),e.points.getPoint(1,f);const d=[],h=[],p=_q(r,a,c,f,d,h);if(l.t=d[0],l.betweenPoints=n(l.t),s[0]=h[0],p===rS.YES_INTERSECTION){for(let v=0;v<3;v++)o[v]=c[v]+s[0]*(f[v]-c[v]),u[v]=r[v]+l.t*(a[v]-r[v]);if(ns(o,u)<=i*i)return l.intersect=1,l}else{let v;if(l.t<0)return v=Eh(r,c,f,o),v.distance<=i*i&&(l.t=0,l.intersect=1,l.betweenPoints=!0),l;if(l.t>1)return v=Eh(a,c,f,o),v.distance<=i*i&&(l.t=1,l.intersect=1,l.betweenPoints=!0),l;if(s[0]<0)return s[0]=0,v=Eh(c,r,a,o),l.t=v.t,v.distance<=i*i&&(l.intersect=1),l;if(s[0]>1)return s[0]=1,v=Eh(f,r,a,o),l.t=v.t,v.distance<=i*i&&(l.intersect=1),l}return l},t.evaluateLocation=(r,a,i)=>{const o=[],s=[];e.points.getPoint(0,o),e.points.getPoint(1,s);for(let l=0;l<3;l++)a[l]=o[l]+r[0]*(s[l]-o[l]);i[0]=1-r[0],i[1]=r[0]},t.evaluateOrientation=(r,a,i)=>e.orientations?(eS(a,e.orientations[0],e.orientations[1],r[0]),i[0]=1-r[0],i[1]=r[0],!0):!1}const Yje={orientations:null};function wq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Yje,n),p_.extend(t,e,n),Q.setGet(t,e,["orientations"]),Kje(t,e)}const Xje=Q.newInstance(wq,"vtkLine");var Ei={newInstance:Xje,extend:wq,...jje,...Sq};const{vtkErrorMacro:ZP,vtkWarningMacro:qje}=Q;function Zje(t,e){e.classHierarchy.push("vtkFieldData");const n=t.getState;e.arrays&&(e.arrays=e.arrays.map(r=>({data:Co(r.data)}))),t.initialize=()=>{t.initializeFields(),t.copyAllOn(),t.clearFieldFlags()},t.initializeFields=()=>{e.arrays=[],e.copyFieldFlags={},t.modified()},t.copyStructure=r=>{t.initializeFields(),e.copyFieldFlags=r.getCopyFieldFlags().map(a=>a),e.arrays=r.arrays().map(a=>({array:a}))},t.getNumberOfArrays=()=>e.arrays.length,t.getNumberOfActiveArrays=()=>e.arrays.length,t.addArray=r=>{const a=r.getName(),{array:i,index:o}=t.getArrayWithIndex(a);return i!=null?(e.arrays[o]={data:r},o):(e.arrays=[].concat(e.arrays,{data:r}),e.arrays.length-1)},t.removeAllArrays=()=>{e.arrays=[]},t.removeArray=r=>{const a=e.arrays.findIndex(i=>i.data.getName()===r);return t.removeArrayByIndex(a)},t.removeArrayByIndex=r=>r!==-1&&re.arrays.map(r=>r.data),t.getArray=r=>typeof r=="number"?t.getArrayByIndex(r):t.getArrayByName(r),t.getArrayByName=r=>e.arrays.reduce((a,i,o)=>i.data.getName()===r?i.data:a,null),t.getArrayWithIndex=r=>{const a=e.arrays.findIndex(i=>i.data.getName()===r);return{array:a!==-1?e.arrays[a].data:null,index:a}},t.getArrayByIndex=r=>r>=0&&rt.getArrayWithIndex(r).index>=0,t.getArrayName=r=>{const a=e.arrays[r];return a?a.data.getName():""},t.getCopyFieldFlags=()=>e.copyFieldFlags,t.getFlag=r=>e.copyFieldFlags[r],t.passData=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;r.getArrays().forEach(o=>{const s=t.getFlag(o.getName());if(s!==!1&&!(e.doCopyAllOff&&s!==!0)&&o){let l=t.getArrayByName(o.getName());if(l)if(o.getNumberOfComponents()===l.getNumberOfComponents())if(a>-1&&a-1?i:a;l.insertTuple(u,o.getTuple(a))}else l.insertTuples(0,o.getTuples());else ZP("Unhandled case in passData");else if(a<0||a>o.getNumberOfTuples())t.addArray(o),r.getAttributes(o).forEach(u=>{t.setAttribute(o,u)});else{const u=o.getNumberOfComponents();let c=o.getNumberOfValues();const f=i>-1?i:a;c<=f*u&&(c=(f+1)*u),l=Kn.newInstance({name:o.getName(),dataType:o.getDataType(),numberOfComponents:u,values:Q.newTypedArray(o.getDataType(),c),size:0}),l.insertTuple(f,o.getTuple(a)),t.addArray(l),r.getAttributes(o).forEach(d=>{t.setAttribute(l,d)})}}})},t.interpolateData=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.5;r.getArrays().forEach(l=>{const u=t.getFlag(l.getName());if(u!==!1&&!(e.doCopyAllOff&&u!==!0)&&l){let c=t.getArrayByName(l.getName());if(c)if(l.getNumberOfComponents()===c.getNumberOfComponents())if(a>-1&&a-1?o:a;c.interpolateTuple(f,l,a,l,i,s),qje("Unexpected case in interpolateData")}else c.insertTuples(l.getTuples());else ZP("Unhandled case in interpolateData");else if(a<0||i<0||a>l.getNumberOfTuples())t.addArray(l),r.getAttributes(l).forEach(f=>{t.setAttribute(l,f)});else{const f=l.getNumberOfComponents();let d=l.getNumberOfValues();const h=o>-1?o:a;d<=h*f&&(d=(h+1)*f),c=Kn.newInstance({name:l.getName(),dataType:l.getDataType(),numberOfComponents:f,values:Q.newTypedArray(l.getDataType(),d),size:0}),c.interpolateTuple(h,l,a,l,i,s),t.addArray(c),r.getAttributes(l).forEach(p=>{t.setAttribute(c,p)})}}})},t.copyFieldOn=r=>{e.copyFieldFlags[r]=!0},t.copyFieldOff=r=>{e.copyFieldFlags[r]=!1},t.copyAllOn=()=>{(!e.doCopyAllOn||e.doCopyAllOff)&&(e.doCopyAllOn=!0,e.doCopyAllOff=!1,t.modified())},t.copyAllOff=()=>{(e.doCopyAllOn||!e.doCopyAllOff)&&(e.doCopyAllOn=!1,e.doCopyAllOff=!0,t.modified())},t.clearFieldFlags=()=>{e.copyFieldFlags={}},t.deepCopy=r=>{e.arrays=r.getArrays().map(a=>{const i=a.newClone();return i.deepCopy(a),{data:i}})},t.copyFlags=r=>r.getCopyFieldFlags().map(a=>a),t.reset=()=>e.arrays.forEach(r=>r.data.reset()),t.getMTime=()=>e.arrays.reduce((r,a)=>a.data.getMTime()>r?a.data.getMTime():r,e.mtime),t.getNumberOfComponents=()=>e.arrays.reduce((r,a)=>r+a.data.getNumberOfComponents(),0),t.getNumberOfTuples=()=>e.arrays.length>0?e.arrays[0].getNumberOfTuples():0,t.getState=()=>{const r=n();return r&&(r.arrays=e.arrays.map(a=>({data:a.data.getState()}))),r}}const Qje={arrays:[],copyFieldFlags:[],doCopyAllOn:!0,doCopyAllOff:!1};function xq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Qje,n),Q.obj(t,e),Zje(t,e)}const Jje=Q.newInstance(xq,"vtkFieldData");var eKe={newInstance:Jje,extend:xq};const tKe={SCALARS:0,VECTORS:1,NORMALS:2,TCOORDS:3,TENSORS:4,GLOBALIDS:5,PEDIGREEIDS:6,EDGEFLAG:7,NUM_ATTRIBUTES:8},nKe={MAX:0,EXACT:1,NOLIMIT:2},rKe={DUPLICATECELL:1,HIGHCONNECTIVITYCELL:2,LOWCONNECTIVITYCELL:4,REFINEDCELL:8,EXTERIORCELL:16,HIDDENCELL:32},aKe={DUPLICATEPOINT:1,HIDDENPOINT:2},iKe={COPYTUPLE:0,INTERPOLATE:1,PASSDATA:2,ALLCOPY:3},oKe="vtkGhostType",sKe={DEFAULT:0,SINGLE:1,DOUBLE:2};var Cq={AttributeCopyOperations:iKe,AttributeLimitTypes:nKe,AttributeTypes:tKe,CellGhostTypes:rKe,DesiredOutputPrecision:sKe,PointGhostTypes:aKe,ghostArrayName:oKe};const{AttributeTypes:Fl,AttributeCopyOperations:_c}=Cq,{vtkWarningMacro:u1}=Q;function lKe(t,e){const n=["Scalars","Vectors","Normals","TCoords","Tensors","GlobalIds","PedigreeIds"];function r(o){let s=n.find(l=>Fl[l.toUpperCase()]===o||typeof o!="number"&&l.toLowerCase()===o.toLowerCase());return typeof s>"u"&&(s=null),s}e.classHierarchy.push("vtkDataSetAttributes");const a={...t};t.checkNumberOfComponents=o=>!0,t.setAttribute=(o,s)=>{const l=r(s);if(o&&l.toUpperCase()==="PEDIGREEIDS"&&!o.isA("vtkDataArray"))return u1(`Cannot set attribute ${l}. The attribute must be a vtkDataArray.`),-1;if(o&&!t.checkNumberOfComponents(o,l))return u1(`Cannot set attribute ${l}. Incorrect number of components.`),-1;let u=e[`active${l}`];if(u>=0&&un.filter(s=>t[`get${s}`]()===o),t.setActiveAttributeByName=(o,s)=>t.setActiveAttributeByIndex(t.getArrayWithIndex(o).index,s),t.setActiveAttributeByIndex=(o,s)=>{const l=r(s);if(o>=0&&o{const s=r(o);return t[`get${s}`]()},t.removeAllArrays=()=>{n.forEach(o=>{e[`active${o}`]=-1}),a.removeAllArrays()},t.removeArrayByIndex=o=>(o!==-1&&n.forEach(s=>{o===e[`active${s}`]?e[`active${s}`]=-1:o{const s=`active${o}`;t[`get${o}`]=()=>t.getArrayByIndex(e[s]),t[`set${o}`]=l=>t.setAttribute(l,o),t[`setActive${o}`]=l=>t.setActiveAttributeByIndex(t.getArrayWithIndex(l).index,o),t[`copy${o}Off`]=()=>{const l=o.toUpperCase();e.copyAttributeFlags[_c.PASSDATA][Fl[l]]=!1},t[`copy${o}On`]=()=>{const l=o.toUpperCase();e.copyAttributeFlags[_c.PASSDATA][Fl[l]]=!0}}),t.initializeAttributeCopyFlags=()=>{e.copyAttributeFlags=[],Object.keys(_c).filter(o=>o!=="ALLCOPY").forEach(o=>{e.copyAttributeFlags[_c[o]]=Object.keys(Fl).filter(s=>s!=="NUM_ATTRIBUTES").reduce((s,l)=>(s[Fl[l]]=!0,s),[])}),e.copyAttributeFlags[_c.COPYTUPLE][Fl.GLOBALIDS]=!1,e.copyAttributeFlags[_c.INTERPOLATE][Fl.GLOBALIDS]=!1,e.copyAttributeFlags[_c.COPYTUPLE][Fl.PEDIGREEIDS]=!1},t.initialize=Q.chain(t.initialize,t.initializeAttributeCopyFlags),e.dataArrays&&Object.keys(e.dataArrays).length&&Object.keys(e.dataArrays).forEach(o=>{!e.dataArrays[o].ref&&e.dataArrays[o].type==="vtkDataArray"&&t.addArray(Kn.newInstance(e.dataArrays[o]))});const i=t.shallowCopy;t.shallowCopy=(o,s)=>{i(o,s),e.arrays=o.getArrays().map(l=>{const u=l.newClone();return u.shallowCopy(l,s),{data:u}})},t.initializeAttributeCopyFlags()}const uKe={activeScalars:-1,activeVectors:-1,activeTensors:-1,activeNormals:-1,activeTCoords:-1,activeGlobalIds:-1,activePedigreeIds:-1};function Tq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,uKe,n),eKe.extend(t,e,n),Q.setGet(t,e,["activeScalars","activeNormals","activeTCoords","activeVectors","activeTensors","activeGlobalIds","activePedigreeIds"]),e.arrays||(e.arrays={}),lKe(t,e)}const cKe=Q.newInstance(Tq,"vtkDataSetAttributes");var QP={newInstance:cKe,extend:Tq,...Cq};const fKe={UNIFORM:0,DATA_OBJECT_FIELD:0,COORDINATE:1,POINT_DATA:1,POINT:2,POINT_FIELD_DATA:2,CELL:3,CELL_FIELD_DATA:3,VERTEX:4,VERTEX_FIELD_DATA:4,EDGE:5,EDGE_FIELD_DATA:5,ROW:6,ROW_DATA:6},dKe={FIELD_ASSOCIATION_POINTS:0,FIELD_ASSOCIATION_CELLS:1,FIELD_ASSOCIATION_NONE:2,FIELD_ASSOCIATION_POINTS_THEN_CELLS:3,FIELD_ASSOCIATION_VERTICES:4,FIELD_ASSOCIATION_EDGES:5,FIELD_ASSOCIATION_ROWS:6,NUMBER_OF_ASSOCIATIONS:7};var hKe={FieldDataTypes:fKe,FieldAssociations:dKe};const Uk=["pointData","cellData","fieldData"];function vKe(t,e){e.classHierarchy.push("vtkDataSet"),Uk.forEach(r=>{e[r]?e[r]=Co(e[r]):e[r]=QP.newInstance()});const n=t.shallowCopy;t.shallowCopy=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n(r,a),Uk.forEach(i=>{e[i]=QP.newInstance(),e[i].shallowCopy(r.getReferenceByName(i))})}}const pKe={};function Eq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,pKe,n),Q.obj(t,e),Q.setGet(t,e,Uk),vKe(t,e)}const gKe=Q.newInstance(Eq,"vtkDataSet");var ep={newInstance:gKe,extend:Eq,...hKe};function yKe(t,e){e.classHierarchy.push("vtkPointSet"),e.points?e.points=Co(e.points):e.points=Gk.newInstance(),t.getNumberOfPoints=()=>e.points.getNumberOfPoints(),t.getBounds=()=>e.points.getBounds(),t.computeBounds=()=>{t.getBounds()};const n=t.shallowCopy;t.shallowCopy=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n(r,a),e.points=Gk.newInstance(),e.points.shallowCopy(r.getPoints())}}const mKe={};function Mq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,mKe,n),ep.extend(t,e,n),Q.setGet(t,e,["points"]),yKe(t,e)}const bKe=Q.newInstance(Mq,"vtkPointSet");var SKe={newInstance:bKe,extend:Mq};function MO(t,e,n,r){const a=n[0]-e[0],i=n[1]-e[1],o=n[2]-e[2],s=t[0]-e[0],l=t[1]-e[1],u=t[2]-e[2];r[0]=i*u-o*l,r[1]=o*s-a*u,r[2]=a*l-i*s}function g_(t,e,n,r){MO(t,e,n,r);const a=Math.sqrt(r[0]*r[0]+r[1]*r[1]+r[2]*r[2]);a!==0&&(r[0]/=a,r[1]/=a,r[2]/=a)}function _Ke(t,e,n,r,a,i){let o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:1e-6,s=!1;const l=[],u=[],c=[],f=[],d=[];g_(t,e,n,f),g_(r,a,i,d);const h=-dn(f,t),p=-dn(d,r),v=[dn(d,t)+p,dn(d,e)+p,dn(d,n)+p];if(v[0]*v[1]>o&&v[0]*v[2]>o)return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};const g=[dn(f,r)+h,dn(f,a)+h,dn(f,i)+h];if(g[0]*g[1]>o&&g[0]*g[2]>o)return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};if(Math.abs(f[0]-d[0])<1e-9&&Math.abs(f[1]-d[1])<1e-9&&Math.abs(f[2]-d[2])<1e-9&&Math.abs(h-p)<1e-9)return s=!0,{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};const y=[t,e,n],m=[r,a,i],b=dn(f,d),_=(h-p*b)/(b*b-1),x=(p-h*b)/(b*b-1),w=[_*f[0]+x*d[0],_*f[1]+x*d[1],_*f[2]+x*d[2]],C=q0(f,d,[]);dO(C);let T=0,k=0;const E=[],M=[];let D=50,R=50;for(let P=0;P<3;P++){const N=P,I=(P+1)%3,L=Mv.intersectWithLine(y[N],y[I],r,d);L.intersection&&L.t>0-o&&L.t<1+o&&(L.t<1+o&&L.t>1-o&&(D=T),E[T++]=dn(L.x,C)-dn(w,C));const $=Mv.intersectWithLine(m[N],m[I],t,f);$.intersection&&$.t>0-o&&$.t<1+o&&($.t<1+o&&$.t>1-o&&(R=k),M[k++]=dn($.x,C)-dn(w,C))}if(T>2){T--;const P=E[2];E[2]=E[D],E[D]=P}if(k>2){k--;const P=M[2];M[2]=M[R],M[R]=P}if(T!==2||k!==2)return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};if(Number.isNaN(E[0])||Number.isNaN(E[1])||Number.isNaN(M[0])||Number.isNaN(M[1]))return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};if(E[0]>E[1]){const P=E[1];E[1]=E[0],E[0]=P}if(M[0]>M[1]){const P=M[1];M[1]=M[0],M[0]=P}let A,V;return E[1]2,t.intersectWithLine=(n,r,a,i,o)=>{const s={subId:0,t:Number.MAX_VALUE,intersect:0,betweenPoints:!1};o[2]=0;const l=[],u=a*a,c=[],f=[],d=[];e.points.getPoint(0,c),e.points.getPoint(1,f),e.points.getPoint(2,d);const h=[],p=[];if(g_(c,f,d,h),h[0]!==0||h[1]!==0||h[2]!==0){const b=Mv.intersectWithLine(n,r,c,h);if(s.betweenPoints=b.betweenPoints,s.t=b.t,i[0]=b.x[0],i[1]=b.x[1],i[2]=b.x[2],!b.intersection)return o[0]=0,o[1]=0,s.intersect=0,s;const _=t.evaluatePosition(i,l,o,p);if(_.evaluation>=0)return _.dist2<=u?(s.intersect=1,s):(s.intersect=_.evaluation,s)}const v=ns(c,f),g=ns(f,d),y=ns(d,c);e.line||(e.line=Ei.newInstance()),v>g&&v>y?(e.line.getPoints().setPoint(0,c),e.line.getPoints().setPoint(1,f)):g>y&&g>v?(e.line.getPoints().setPoint(0,f),e.line.getPoints().setPoint(1,d)):(e.line.getPoints().setPoint(0,d),e.line.getPoints().setPoint(1,c));const m=e.line.intersectWithLine(n,r,a,i,o);if(s.betweenPoints=m.betweenPoints,s.t=m.t,m.intersect){const b=[],_=[],x=[];for(let w=0;w<3;w++)b[w]=c[w]-d[w],_[w]=f[w]-d[w],x[w]=i[w]-d[w];return o[0]=dn(x,b)/y,o[1]=dn(x,_)/g,s.intersect=1,s}return o[0]=0,o[1]=0,s.intersect=0,s},t.evaluatePosition=(n,r,a,i)=>{const o={subId:0,dist2:0,evaluation:-1};let s,l;const u=[],c=[],f=[],d=[];let h;const p=[],v=[],g=[];let y=0,m=0;const b=[];let _,x,w,C=[];const T=[],k=[],E=[];o.subId=0,a[2]=0,e.points.getPoint(1,u),e.points.getPoint(2,c),e.points.getPoint(0,f),MO(u,c,f,d),Mv.generalizedProjectPoint(n,u,d,E);let M=0;for(s=0;s<3;s++)d[s]<0?h=-d[s]:h=d[s],h>M&&(M=h,m=s);for(l=0,s=0;s<3;s++)s!==m&&(b[l++]=s);for(s=0;s<2;s++)p[s]=E[b[s]]-f[b[s]],v[s]=u[b[s]]-f[b[s]],g[s]=c[b[s]]-f[b[s]];if(y=tS(v,g),y===0)return a[0]=0,a[1]=0,o.evaluation=-1,o;if(a[0]=tS(p,g)/y,a[1]=tS(v,p)/y,i[0]=1-(a[0]+a[1]),i[1]=a[0],i[2]=a[1],i[0]>=0&&i[0]<=1&&i[1]>=0&&i[1]<=1&&i[2]>=0&&i[2]<=1)r&&(o.dist2=ns(E,n),r[0]=E[0],r[1]=E[1],r[2]=E[2]),o.evaluation=1;else{let D;if(r){if(i[1]<0&&i[2]<0)for(_=ns(n,f),x=Ei.distanceToLine(n,u,f,D,T),w=Ei.distanceToLine(n,f,c,D,k),_{const i=[],o=[],s=[];e.points.getPoint(0,i),e.points.getPoint(1,o),e.points.getPoint(2,s);const l=1-n[0]-n[1];for(let u=0;u<3;u++)r[u]=i[u]*l+o[u]*n[0]+s[u]*n[1];a[0]=l,a[1]=n[0],a[2]=n[1]},t.getParametricDistance=n=>{let r,a=0;const i=[];i[0]=n[0],i[1]=n[1],i[2]=1-n[0]-n[1];for(let o=0;o<3;o++)i[o]<0?r=-i[o]:i[o]>1?r=i[o]-1:r=0,r>a&&(a=r);return a}}const CKe={};function kq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,CKe,n),p_.extend(t,e,n),xKe(t,e)}const TKe=Q.newInstance(kq,"vtkTriangle");var EKe={newInstance:TKe,extend:kq,...wKe};const yC=["verts","lines","polys","strips"],{vtkWarningMacro:JP}=Q,MKe={[Fn.VTK_LINE]:Ei,[Fn.VTK_POLY_LINE]:Ei,[Fn.VTK_TRIANGLE]:EKe};function kKe(t,e){e.classHierarchy.push("vtkPolyData");function n(a){return a.replace(/(?:^\w|[A-Z]|\b\w)/g,i=>i.toUpperCase()).replace(/\s+/g,"")}yC.forEach(a=>{t[`getNumberOf${n(a)}`]=()=>e[a].getNumberOfCells(),e[a]?e[a]=Co(e[a]):e[a]=qP.newInstance()}),t.getNumberOfCells=()=>yC.reduce((a,i)=>a+e[i].getNumberOfCells(),0);const r=t.shallowCopy;t.shallowCopy=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r(a,i),yC.forEach(o=>{e[o]=qP.newInstance(),e[o].shallowCopy(a.getReferenceByName(o))})},t.buildCells=()=>{const a=t.getNumberOfVerts(),i=t.getNumberOfLines(),o=t.getNumberOfPolys(),s=t.getNumberOfStrips(),l=a+i+o+s,u=new Uint8Array(l);let c=u;const f=new Uint32Array(l);let d=f;if(a){let h=0;e.verts.getCellSizes().forEach((p,v)=>{d[v]=h,c[v]=p>1?Fn.VTK_POLY_VERTEX:Fn.VTK_VERTEX,h+=p+1}),d=d.subarray(a),c=c.subarray(a)}if(i){let h=0;e.lines.getCellSizes().forEach((p,v)=>{d[v]=h,c[v]=p>2?Fn.VTK_POLY_LINE:Fn.VTK_LINE,p===1&&JP("Building VTK_LINE ",v," with only one point, but VTK_LINE needs at least two points. Check the input."),h+=p+1}),d=d.subarray(i),c=c.subarray(i)}if(o){let h=0;e.polys.getCellSizes().forEach((p,v)=>{switch(d[v]=h,p){case 3:c[v]=Fn.VTK_TRIANGLE;break;case 4:c[v]=Fn.VTK_QUAD;break;default:c[v]=Fn.VTK_POLYGON;break}p<3&&JP("Building VTK_TRIANGLE ",v," with less than three points, but VTK_TRIANGLE needs at least three points. Check the input."),h+=p+1}),d+=d.subarray(o),c+=c.subarray(o)}if(s){let h=0;c.fill(Fn.VTK_TRIANGLE_STRIP,0,s),e.strips.getCellSizes().forEach((p,v)=>{d[v]=h,h+=p+1})}e.cells=Uje.newInstance(),e.cells.setCellTypes(l,u,f)},t.buildLinks=function(){let a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;e.cells===void 0&&t.buildCells(),e.links=$je.newInstance(),a>0?e.links.allocate(a):e.links.allocate(t.getPoints().getNumberOfPoints()),e.links.buildLinks(t)},t.getCellType=a=>e.cells.getCellType(a),t.getCellPoints=a=>{const i=t.getCellType(a);let o=null;switch(i){case Fn.VTK_VERTEX:case Fn.VTK_POLY_VERTEX:o=e.verts;break;case Fn.VTK_LINE:case Fn.VTK_POLY_LINE:o=e.lines;break;case Fn.VTK_TRIANGLE:case Fn.VTK_QUAD:case Fn.VTK_POLYGON:o=e.polys;break;case Fn.VTK_TRIANGLE_STRIP:o=e.strips;break;default:return o=null,{type:0,cellPointIds:null}}const s=e.cells.getCellLocation(a),l=o.getCell(s);return{cellType:i,cellPointIds:l}},t.getPointCells=a=>e.links.getCells(a),t.getCellEdgeNeighbors=(a,i,o)=>{const s=e.links.getLink(i),l=e.links.getLink(o);return s.cells.filter(u=>u!==a&&l.cells.indexOf(u)!==-1)},t.getCell=function(a){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const o=t.getCellPoints(a),s=i||MKe[o.cellType].newInstance();return s.initialize(t.getPoints(),o.cellPointIds),s}}const DKe={};function Dq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,DKe,n),SKe.extend(t,e,n),Q.get(t,e,["cells","links"]),Q.setGet(t,e,["verts","lines","polys","strips"]),kKe(t,e)}const RKe=Q.newInstance(Dq,"vtkPolyData");var Z0={newInstance:RKe,extend:Dq};const LKe={DISPLAY:0,WORLD:1};var Rq={CoordinateSystem:LKe};const{CoordinateSystem:Wk}=Rq;function e4(t){return()=>Q.vtkErrorMacro(`vtkProp::${t} - NOT IMPLEMENTED`)}function AKe(t,e){e.classHierarchy.push("vtkProp"),t.getMTime=()=>{let n=e.mtime;for(let r=0;rn&&(n=a)}return n},t.processSelectorPixelBuffers=(n,r)=>{},t.getNestedProps=()=>null,t.getActors=()=>[],t.getActors2D=()=>[],t.getVolumes=()=>[],t.pick=e4("pick"),t.hasKey=e4("hasKey"),t.getNestedVisibility=()=>e.visibility&&(!e._parentProp||e._parentProp.getNestedVisibility()),t.getNestedPickable=()=>e.pickable&&(!e._parentProp||e._parentProp.getNestedPickable()),t.getNestedDragable=()=>e.dragable&&(!e._parentProp||e._parentProp.getNestedDragable()),t.getRedrawMTime=()=>e.mtime,t.setEstimatedRenderTime=n=>{e.estimatedRenderTime=n,e.savedEstimatedRenderTime=n},t.restoreEstimatedRenderTime=()=>{e.estimatedRenderTime=e.savedEstimatedRenderTime},t.addEstimatedRenderTime=n=>{e.estimatedRenderTime+=n},t.setAllocatedRenderTime=n=>{e.allocatedRenderTime=n,e.savedEstimatedRenderTime=e.estimatedRenderTime,e.estimatedRenderTime=0},t.getSupportsSelection=()=>!1,t.getTextures=()=>e.textures,t.hasTexture=n=>e.textures.indexOf(n)!==-1,t.addTexture=n=>{n&&!t.hasTexture(n)&&(e.textures=e.textures.concat(n),t.modified())},t.removeTexture=n=>{const r=e.textures.filter(a=>a!==n);e.textures.length!==r.length&&(e.textures=r,t.modified())},t.removeAllTextures=()=>{e.textures=[],t.modified()},t.setCoordinateSystemToWorld=()=>t.setCoordinateSystem(Wk.WORLD),t.setCoordinateSystemToDisplay=()=>t.setCoordinateSystem(Wk.DISPLAY)}const OKe={allocatedRenderTime:10,coordinateSystem:Wk.WORLD,dragable:!0,estimatedRenderTime:0,paths:null,pickable:!0,renderTimeMultiplier:1,savedEstimatedRenderTime:0,textures:[],useBounds:!0,visibility:!0};function Lq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,OKe,n),Q.obj(t,e),Q.get(t,e,["estimatedRenderTime","allocatedRenderTime"]),Q.setGet(t,e,["_parentProp","coordinateSystem","dragable","pickable","renderTimeMultiplier","useBounds","visibility"]),Q.moveToProtected(t,e,["parentProp"]),AKe(t,e)}const NKe=Q.newInstance(Lq,"vtkProp");var $Ke={newInstance:NKe,extend:Lq,...Rq};function IKe(t,e){e.classHierarchy.push("vtkProp3D"),t.addPosition=r=>{e.position=e.position.map((a,i)=>a+r[i]),t.modified()},t.getOrientationWXYZ=()=>{const r=nd();uX(r,e.rotation);const a=new Float64Array(3),i=w9e(a,r);return[X0(i),a[0],a[1],a[2]]},t.rotateX=r=>{r!==0&&(tO(e.rotation,e.rotation,wr(r)),t.modified())},t.rotateY=r=>{r!==0&&(nO(e.rotation,e.rotation,wr(r)),t.modified())},t.rotateZ=r=>{r!==0&&(rO(e.rotation,e.rotation,wr(r)),t.modified())},t.rotateWXYZ=(r,a,i,o)=>{if(r===0||a===0&&i===0&&o===0)return;const s=wr(r),l=nd();iO(l,[a,i,o],s);const u=new Float64Array(16);aO(u,l),Ja(e.rotation,e.rotation,u),t.modified()},t.setOrientation=(r,a,i)=>r===e.orientation[0]&&a===e.orientation[1]&&i===e.orientation[2]?!1:(e.orientation=[r,a,i],zn(e.rotation),t.rotateZ(i),t.rotateX(r),t.rotateY(a),t.modified(),!0),t.setUserMatrix=r=>_X(e.userMatrix,r)?!1:(Js(e.userMatrix,r),t.modified(),!0),t.getMatrix=()=>(t.computeMatrix(),e.matrix),t.computeMatrix=()=>{if(t.getMTime()>e.matrixMTime.getMTime()){zn(e.matrix),e.userMatrix&&Ja(e.matrix,e.matrix,e.userMatrix),ia(e.matrix,e.matrix,e.origin),ia(e.matrix,e.matrix,e.position),Ja(e.matrix,e.matrix,e.rotation),td(e.matrix,e.matrix,e.scale),ia(e.matrix,e.matrix,[-e.origin[0],-e.origin[1],-e.origin[2]]),oi(e.matrix,e.matrix),e.isIdentity=!0;for(let r=0;r<4;++r)for(let a=0;a<4;++a)(r===a?1:0)!==e.matrix[r+a*4]&&(e.isIdentity=!1);e.matrixMTime.modified()}},t.getCenter=()=>rr.getCenter(e.bounds),t.getLength=()=>rr.getLength(e.bounds),t.getXRange=()=>rr.getXRange(e.bounds),t.getYRange=()=>rr.getYRange(e.bounds),t.getZRange=()=>rr.getZRange(e.bounds),t.getUserMatrix=()=>e.userMatrix;function n(){t.computeMatrix()}t.onModified(n)}const BKe={origin:[0,0,0],position:[0,0,0],orientation:[0,0,0],rotation:null,scale:[1,1,1],bounds:[1,-1,1,-1,1,-1],userMatrix:null,userMatrixMTime:null,cachedProp3D:null,isIdentity:!0,matrixMTime:null};function Aq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,BKe,n),$Ke.extend(t,e,n),e.matrixMTime={},Q.obj(e.matrixMTime),Q.get(t,e,["bounds","isIdentity"]),Q.getArray(t,e,["orientation"]),Q.setGetArray(t,e,["origin","position","scale"],3),e.matrix=zn(new Float64Array(16)),e.rotation=zn(new Float64Array(16)),e.userMatrix=zn(new Float64Array(16)),e.transform=null,IKe(t,e)}const VKe=Q.newInstance(Aq,"vtkProp3D");var PKe={newInstance:VKe,extend:Aq};const Oq={FLAT:0,GOURAUD:1,PHONG:2},Ru={POINTS:0,WIREFRAME:1,SURFACE:2},FKe=Oq;var Nq={Shading:Oq,Representation:Ru,Interpolation:FKe};const{Representation:yg,Interpolation:mg}=Nq;function t4(t){return()=>Q.vtkErrorMacro(`vtkProperty::${t} - NOT IMPLEMENTED`)}function zKe(t,e){e.classHierarchy.push("vtkProperty"),t.setColor=(n,r,a)=>{Array.isArray(n)?(e.color[0]!==n[0]||e.color[1]!==n[1]||e.color[2]!==n[2])&&(e.color[0]=n[0],e.color[1]=n[1],e.color[2]=n[2],t.modified()):(e.color[0]!==n||e.color[1]!==r||e.color[2]!==a)&&(e.color[0]=n,e.color[1]=r,e.color[2]=a,t.modified()),t.setDiffuseColor(e.color),t.setAmbientColor(e.color),t.setSpecularColor(e.color)},t.computeCompositeColor=t4("ComputeCompositeColor"),t.getColor=()=>{let n=0;e.ambient+e.diffuse+e.specular>0&&(n=1/(e.ambient+e.diffuse+e.specular));for(let r=0;r<3;r++)e.color[r]=n*(e.ambient*e.ambientColor[r]+e.diffuse*e.diffuseColor[r]+e.specular*e.specularColor[r]);return[].concat(e.color)},t.setSpecularPower=n=>{const r=1/Math.max(1,n);(e.roughness!==r||e.specularPower!==n)&&(e.specularPower=n,e.roughness=r,t.modified())},t.addShaderVariable=t4("AddShaderVariable"),t.setInterpolationToFlat=()=>t.setInterpolation(mg.FLAT),t.setInterpolationToGouraud=()=>t.setInterpolation(mg.GOURAUD),t.setInterpolationToPhong=()=>t.setInterpolation(mg.PHONG),t.getInterpolationAsString=()=>Q.enumToString(mg,e.interpolation),t.setRepresentationToWireframe=()=>t.setRepresentation(yg.WIREFRAME),t.setRepresentationToSurface=()=>t.setRepresentation(yg.SURFACE),t.setRepresentationToPoints=()=>t.setRepresentation(yg.POINTS),t.getRepresentationAsString=()=>Q.enumToString(yg,e.representation)}const GKe={color:[1,1,1],ambientColor:[1,1,1],diffuseColor:[1,1,1],specularColor:[1,1,1],edgeColor:[0,0,0],ambient:0,diffuse:1,metallic:0,roughness:.6,normalStrength:1,emission:1,baseIOR:1.45,specular:0,specularPower:1,opacity:1,interpolation:mg.GOURAUD,representation:yg.SURFACE,edgeVisibility:!1,backfaceCulling:!1,frontfaceCulling:!1,pointSize:1,lineWidth:1,lighting:!0,shading:!1,materialName:null};function $q(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,GKe,n),Q.obj(t,e),Q.setGet(t,e,["lighting","interpolation","ambient","diffuse","metallic","roughness","normalStrength","emission","baseIOR","specular","specularPower","opacity","edgeVisibility","lineWidth","pointSize","backfaceCulling","frontfaceCulling","representation","diffuseTexture","metallicTexture","roughnessTexture","normalTexture","ambientOcclusionTexture","emissionTexture"]),Q.setGetArray(t,e,["ambientColor","specularColor","diffuseColor","edgeColor"],3),zKe(t,e)}const HKe=Q.newInstance($q,"vtkProperty");var mx={newInstance:HKe,extend:$q,...Nq};const{vtkDebugMacro:UKe}=Q;function WKe(t,e){e.classHierarchy.push("vtkActor");const n={...t};t.getActors=()=>[t],t.getIsOpaque=()=>{if(e.forceOpaque)return!0;if(e.forceTranslucent)return!1;e.property||t.getProperty();let r=e.property.getOpacity()>=1;return r=r&&(!e.texture||!e.texture.isTranslucent()),r=r&&(!e.mapper||e.mapper.getIsOpaque()),r},t.hasTranslucentPolygonalGeometry=()=>e.mapper===null?!1:(e.property===null&&t.setProperty(t.makeProperty()),!t.getIsOpaque()),t.makeProperty=mx.newInstance,t.getProperty=()=>(e.property===null&&(e.property=t.makeProperty()),e.property),t.getBounds=()=>{if(e.mapper===null)return e.bounds;const r=e.mapper.getBounds();if(!r||r.length!==6)return r;if(r[0]>r[1])return e.mapperBounds=r.concat(),e.bounds=[1,-1,1,-1,1,-1],e.boundsMTime.modified(),r;if(!e.mapperBounds||r[0]!==e.mapperBounds[0]||r[1]!==e.mapperBounds[1]||r[2]!==e.mapperBounds[2]||r[3]!==e.mapperBounds[3]||r[4]!==e.mapperBounds[4]||r[5]!==e.mapperBounds[5]||t.getMTime()>e.boundsMTime.getMTime()){UKe("Recomputing bounds..."),e.mapperBounds=r.concat();const a=[];rr.getCorners(r,a),t.computeMatrix();const i=new Float64Array(16);oi(i,e.matrix),a.forEach(o=>tr(o,o,i)),e.bounds[0]=e.bounds[2]=e.bounds[4]=Number.MAX_VALUE,e.bounds[1]=e.bounds[3]=e.bounds[5]=-Number.MAX_VALUE,e.bounds=e.bounds.map((o,s)=>s%2===0?a.reduce((l,u)=>l>u[s/2]?u[s/2]:l,o):a.reduce((l,u)=>l{let r=n.getMTime();if(e.property!==null){const a=e.property.getMTime();r=a>r?a:r}if(e.backfaceProperty!==null){const a=e.backfaceProperty.getMTime();r=a>r?a:r}return r},t.getRedrawMTime=()=>{let r=e.mtime;if(e.mapper!==null){let a=e.mapper.getMTime();r=a>r?a:r,e.mapper.getInput()!==null&&(e.mapper.getInputAlgorithm().update(),a=e.mapper.getInput().getMTime(),r=a>r?a:r)}return r},t.getSupportsSelection=()=>e.mapper?e.mapper.getSupportsSelection():!1,t.processSelectorPixelBuffers=(r,a)=>{e.mapper&&e.mapper.processSelectorPixelBuffers&&e.mapper.processSelectorPixelBuffers(r,a)}}const jKe={mapper:null,property:null,backfaceProperty:null,forceOpaque:!1,forceTranslucent:!1,bounds:[1,-1,1,-1,1,-1]};function Iq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,jKe,n),PKe.extend(t,e,n),e.boundsMTime={},Q.obj(e.boundsMTime),Q.set(t,e,["property"]),Q.setGet(t,e,["backfaceProperty","forceOpaque","forceTranslucent","mapper"]),WKe(t,e)}const KKe=Q.newInstance(Iq,"vtkActor");var Q0={newInstance:KKe,extend:Iq};function YKe(t,e){e.classHierarchy.push("vtkAbstractMapper"),t.update=()=>{t.getInputData()},t.addClippingPlane=n=>n.isA("vtkPlane")?e.clippingPlanes.includes(n)?!1:(e.clippingPlanes.push(n),t.modified(),!0):!1,t.getNumberOfClippingPlanes=()=>e.clippingPlanes.length,t.removeAllClippingPlanes=()=>e.clippingPlanes.length===0?!1:(e.clippingPlanes.length=0,t.modified(),!0),t.removeClippingPlane=n=>{const r=e.clippingPlanes.indexOf(n);return r===-1?!1:(e.clippingPlanes.splice(r,1),t.modified(),!0)},t.getClippingPlanes=()=>e.clippingPlanes,t.setClippingPlanes=n=>{if(n)if(!Array.isArray(n))t.addClippingPlane(n);else{const r=n.length;for(let a=0;a{const i=e.clippingPlanes,o=n;if(i){const s=i.length;if(r>=0&&r2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,XKe,n),Q.obj(t,e),Q.algo(t,e,1,0),e.clippingPlanes||(e.clippingPlanes=[]),YKe(t,e)}var ZKe={extend:qKe};function QKe(t,e){t.getBounds=()=>(Q.vtkErrorMacro("vtkAbstractMapper3D.getBounds - NOT IMPLEMENTED"),hO()),t.getCenter=()=>{var r;const n=t.getBounds();return e.center=rr.isValid(n)?rr.getCenter(n):null,(r=e.center)==null?void 0:r.slice()},t.getLength=()=>{const n=t.getBounds();return rr.getDiagonalLength(n)}}const JKe=t=>({bounds:[...rr.INIT_BOUNDS],center:[0,0,0],viewSpecificProperties:{},...t});function eYe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,JKe(n)),ZKe.extend(t,e,n),Q.setGet(t,e,["viewSpecificProperties"]),QKe(t,e)}var tYe={extend:eYe};const co={UNCHANGED:0,SINGLE_POINT:1,X_LINE:2,Y_LINE:3,Z_LINE:4,XY_PLANE:5,YZ_PLANE:6,XZ_PLANE:7,XYZ_GRID:8,EMPTY:9};var Bq={StructuredType:co};const{StructuredType:zs}=Bq;function nYe(t){let e=0;for(let n=0;n<3;++n)t[n*2]t[1]||t[2]>t[3]||t[4]>t[5]?zs.EMPTY:e===3?zs.XYZ_GRID:e===2?t[0]===t[1]?zs.YZ_PLANE:t[2]===t[3]?zs.XZ_PLANE:zs.XY_PLANE:e===1?t[0]s!==i[l]);return o&&(e.extent=i.slice(),e.dataDescription=rYe.getDataDescriptionFromExtent(e.extent),t.modified()),o},t.setDimensions=function(){let n,r,a;if(e.deleted){wc("instance deleted - cannot call any method");return}if(arguments.length===1){const i=arguments.length<=0?void 0:arguments[0];n=i[0],r=i[1],a=i[2]}else if(arguments.length===3)n=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],a=arguments.length<=2?void 0:arguments[2];else{wc("Bad dimension specification");return}t.setExtent(0,n-1,0,r-1,0,a-1)},t.getDimensions=()=>[e.extent[1]-e.extent[0]+1,e.extent[3]-e.extent[2]+1,e.extent[5]-e.extent[4]+1],t.getNumberOfCells=()=>{const n=t.getDimensions();let r=1;for(let a=0;a<3;a++){if(n[a]===0)return 0;n[a]>1&&(r*=n[a]-1)}return r},t.getNumberOfPoints=()=>{const n=t.getDimensions();return n[0]*n[1]*n[2]},t.getPoint=n=>{const r=t.getDimensions();if(r[0]===0||r[1]===0||r[2]===0)return wc("Requesting a point from an empty image."),null;const a=new Float64Array(3);switch(e.dataDescription){case co.EMPTY:return null;case co.SINGLE_POINT:break;case co.X_LINE:a[0]=n;break;case co.Y_LINE:a[1]=n;break;case co.Z_LINE:a[2]=n;break;case co.XY_PLANE:a[0]=n%r[0],a[1]=n/r[0];break;case co.YZ_PLANE:a[1]=n%r[1],a[2]=n/r[1];break;case co.XZ_PLANE:a[0]=n%r[0],a[2]=n/r[0];break;case co.XYZ_GRID:a[0]=n%r[0],a[1]=n/r[0]%r[1],a[2]=n/(r[0]*r[1]);break;default:wc("Invalid dataDescription");break}const i=[0,0,0];return t.indexToWorld(a,i),i},t.getBounds=()=>t.extentToBounds(t.getSpatialExtent()),t.extentToBounds=n=>rr.transformBounds(n,e.indexToWorld),t.getSpatialExtent=()=>rr.inflate([...e.extent],.5),t.computeTransforms=()=>{aX(e.indexToWorld,e.origin),e.indexToWorld[0]=e.direction[0],e.indexToWorld[1]=e.direction[1],e.indexToWorld[2]=e.direction[2],e.indexToWorld[4]=e.direction[3],e.indexToWorld[5]=e.direction[4],e.indexToWorld[6]=e.direction[5],e.indexToWorld[8]=e.direction[6],e.indexToWorld[9]=e.direction[7],e.indexToWorld[10]=e.direction[8],td(e.indexToWorld,e.indexToWorld,e.spacing),ms(e.worldToIndex,e.indexToWorld)},t.indexToWorld=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return tr(r,n,e.indexToWorld),r},t.indexToWorldVec3=t.indexToWorld,t.worldToIndex=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return tr(r,n,e.worldToIndex),r},t.worldToIndexVec3=t.worldToIndex,t.indexToWorldBounds=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return rr.transformBounds(n,e.indexToWorld,r)},t.worldToIndexBounds=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return rr.transformBounds(n,e.worldToIndex,r)},t.onModified(t.computeTransforms),t.computeTransforms(),t.getCenter=()=>rr.getCenter(t.getBounds()),t.computeHistogram=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const a=[0,0,0,0,0,0];t.worldToIndexBounds(n,a);const i=[0,0,0],o=[0,0,0];rr.computeCornerPoints(a,i,o),jP(i,i),jP(o,o);const s=t.getDimensions();KP(i,[0,0,0],[s[0]-1,s[1]-1,s[2]-1],i),KP(o,[0,0,0],[s[0]-1,s[1]-1,s[2]-1],o);const l=s[0],u=s[0]*s[1],c=t.getPointData().getScalars().getData();let f=-1/0,d=1/0,h=0,p=0,v=0;for(let b=i[2];b<=o[2];b++)for(let _=i[1];_<=o[1];_++){let x=i[0]+_*l+b*u;for(let w=i[0];w<=o[0];w++){if(!r||r([w,_,b],a)){const C=c[x];C>f&&(f=C),C0?p/v:0,y=v?Math.abs(h/v-g*g):0,m=Math.sqrt(y);return{minimum:d,maximum:f,average:g,variance:y,sigma:m,count:v}},t.computeIncrements=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const a=[];let i=r;for(let o=0;o<3;++o)a[o]=i,i*=n[o*2+1]-n[o*2]+1;return a},t.computeOffsetIndex=n=>{let[r,a,i]=n;const o=t.getExtent(),s=t.getPointData().getScalars().getNumberOfComponents(),l=t.computeIncrements(o,s);return Math.floor((Math.round(r)-o[0])*l[0]+(Math.round(a)-o[2])*l[1]+(Math.round(i)-o[4])*l[2])},t.getOffsetIndexFromWorld=n=>{const r=t.getExtent(),a=t.worldToIndex(n);for(let i=0;i<3;++i)if(a[i]r[i*2+1])return wc(`GetScalarPointer: Pixel ${a} is not in memory. Current extent = ${r}`),NaN;return t.computeOffsetIndex(a)},t.getScalarValueFromWorld=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const a=t.getPointData().getScalars().getNumberOfComponents();if(r<0||r>=a)return wc(`GetScalarPointer: Scalar Component ${r} is not within bounds. Current Scalar numberOfComponents: ${a}`),NaN;const i=t.getOffsetIndexFromWorld(n);return Number.isNaN(i)?i:t.getPointData().getScalars().getComponent(i,r)}}const iYe={direction:null,indexToWorld:null,worldToIndex:null,spacing:[1,1,1],origin:[0,0,0],extent:[0,-1,0,-1,0,-1],dataDescription:co.EMPTY};function Vq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,iYe,n),ep.extend(t,e,n),e.direction?Array.isArray(e.direction)&&(e.direction=new Float64Array(e.direction.slice(0,9))):e.direction=tX(new Float64Array(9)),e.indexToWorld=new Float64Array(16),e.worldToIndex=new Float64Array(16),Q.get(t,e,["indexToWorld","worldToIndex"]),Q.setGetArray(t,e,["origin","spacing"],3),Q.setGetArray(t,e,["direction"],9),Q.getArray(t,e,["extent"],6),aYe(t,e)}const oYe=Q.newInstance(Vq,"vtkImageData");var sYe={newInstance:oYe,extend:Vq};const lYe={MAGNITUDE:0,COMPONENT:1,RGBCOLORS:2},jk={LUMINANCE:1,LUMINANCE_ALPHA:2,RGB:3,RGBA:4};var kO={VectorMode:lYe,ScalarMappingTarget:jk};const uYe={DEFAULT:0,MAP_SCALARS:1,DIRECT_SCALARS:2},cYe={DEFAULT:0,USE_POINT_DATA:1,USE_CELL_DATA:2,USE_POINT_FIELD_DATA:3,USE_CELL_FIELD_DATA:4,USE_FIELD_DATA:5},fYe={BY_ID:0,BY_NAME:1};var DO={ColorMode:uYe,GetArray:fYe,ScalarMode:cYe};const{ScalarMappingTarget:n4,VectorMode:Jo}=kO,{VtkDataTypes:xc}=Kn,{ColorMode:c1}=DO,{vtkErrorMacro:r4}=Q;function dYe(t){return t}function a4(t){return Math.floor(t*255+.5)}function hYe(t,e){e.classHierarchy.push("vtkScalarsToColors"),t.setVectorModeToMagnitude=()=>t.setVectorMode(Jo.MAGNITUDE),t.setVectorModeToComponent=()=>t.setVectorMode(Jo.COMPONENT),t.setVectorModeToRGBColors=()=>t.setVectorMode(Jo.RGBCOLORS),t.build=()=>{},t.isOpaque=()=>!0,t.setAnnotations=(n,r)=>{if(!(n&&!r||!n&&r)){if(n&&r&&n.length!==r.length){r4("Values and annotations do not have the same number of tuples so ignoring");return}if(e.annotationArray=[],r&&n){const a=r.length;for(let i=0;i{let a=t.checkForAnnotatedValue(n),i=!1;return a>=0?e.annotationArray[a].annotation!==r&&(e.annotationArray[a].annotation=r,i=!0):(e.annotationArray.push({value:n,annotation:r}),a=e.annotationArray.length-1,i=!0),i&&(t.updateAnnotatedValueMap(),t.modified()),a},t.getNumberOfAnnotatedValues=()=>e.annotationArray.length,t.getAnnotatedValue=n=>n<0||n>=e.annotationArray.length?null:e.annotationArray[n].value,t.getAnnotation=n=>e.annotationArray[n]===void 0?null:e.annotationArray[n].annotation,t.getAnnotatedValueIndex=n=>e.annotationArray.length?t.checkForAnnotatedValue(n):-1,t.removeAnnotation=n=>{const r=t.checkForAnnotatedValue(n),a=r>=0;return a&&(e.annotationArray.splice(r,1),t.updateAnnotatedValueMap(),t.modified()),a},t.resetAnnotations=()=>{e.annotationArray=[],e.annotatedValueMap=[],t.modified()},t.getAnnotationColor=(n,r)=>{if(e.indexedLookup){const a=t.getAnnotatedValueIndex(n);t.getIndexedColor(a,r)}else t.getColor(parseFloat(n),r),r[3]=1},t.checkForAnnotatedValue=n=>t.getAnnotatedValueIndexInternal(n),t.getAnnotatedValueIndexInternal=n=>{if(e.annotatedValueMap[n]!==void 0){const r=e.annotationArray.length;return e.annotatedValueMap[n]%r}return-1},t.getIndexedColor=(n,r)=>{r[0]=0,r[1]=0,r[2]=0,r[3]=0},t.updateAnnotatedValueMap=()=>{e.annotatedValueMap=[];const n=e.annotationArray.length;for(let r=0;r{const i=n.getNumberOfComponents();let o=null;if(r===c1.DEFAULT&&n.getDataType()===xc.UNSIGNED_CHAR||r===c1.DIRECT_SCALARS&&n)o=t.convertToRGBA(n,i,n.getNumberOfTuples());else{const s={type:"vtkDataArray",name:"temp",numberOfComponents:4,dataType:xc.UNSIGNED_CHAR},l=Q.newTypedArray(s.dataType,4*n.getNumberOfTuples());s.values=l,s.size=l.length,o=Kn.newInstance(s);let u=a;u<0&&i>1?t.mapVectorsThroughTable(n,o,n4.RGBA,-1,-1):(u<0&&(u=0),u>=i&&(u=i-1),t.mapScalarsThroughTable(n,o,n4.RGBA,u))}return o},t.mapVectorsToMagnitude=(n,r,a)=>{const i=n.getNumberOfTuples(),o=n.getNumberOfComponents(),s=r.getData(),l=n.getData();for(let u=0;u{let s=t.getVectorMode(),l=o,u=i;const c=n.getNumberOfComponents();s===Jo.COMPONENT?(u===-1&&(u=t.getVectorComponent()),u<0&&(u=0),u>=c&&(u=c-1)):(l===-1&&(l=t.getVectorSize()),l<=0?(u=0,l=c):(u<0&&(u=0),u>=c&&(u=c-1),u+l>c&&(l=c-u)),s===Jo.MAGNITUDE&&(c===1||l===1)&&(s=Jo.COMPONENT));let f=0;switch(u>0&&(f=u),s){case Jo.COMPONENT:{t.mapScalarsThroughTable(n,r,a,f);break}case Jo.RGBCOLORS:break;case Jo.MAGNITUDE:default:{const d=Kn.newInstance({numberOfComponents:1,values:new Float32Array(n.getNumberOfTuples())});t.mapVectorsToMagnitude(n,d,l),t.mapScalarsThroughTable(d,r,a,0);break}}},t.luminanceToRGBA=(n,r,a,i)=>{const o=i(a),s=r.getData(),l=n.getData(),u=s.length,c=0,f=1;let d=0;for(let h=c;h{const o=r.getData(),s=n.getData(),l=o.length,u=0,c=2;let f=0;for(let d=u;d{const o=a4(a),s=r.getData(),l=n.getData(),u=s.length,c=0,f=3;let d=0;for(let h=c;h{const o=r.getData(),s=n.getData(),l=o.length,u=0,c=4;let f=0;for(let d=u;d{let{alpha:i}=e;if(r===4&&i>=1&&n.getDataType()===xc.UNSIGNED_CHAR)return n;const o=Kn.newInstance({numberOfComponents:4,empty:!0,size:4*a,dataType:xc.UNSIGNED_CHAR});if(a<=0)return o;i=i>0?i:0,i=i<1?i:1;let s=dYe;switch((n.getDataType()===xc.FLOAT||n.getDataType()===xc.DOUBLE)&&(s=a4),r){case 1:t.luminanceToRGBA(o,n,i,s);break;case 2:t.luminanceAlphaToRGBA(o,n,s);break;case 3:t.rGBToRGBA(o,n,i,s);break;case 4:t.rGBAToRGBA(o,n,i,s);break;default:return r4("Cannot convert colors"),null}return o},t.usingLogScale=()=>!1,t.getNumberOfAvailableColors=()=>256*256*256,t.setRange=(n,r)=>t.setMappingRange(n,r),t.getRange=()=>t.getMappingRange(),t.areScalarsOpaque=(n,r,a)=>{if(!n)return t.isOpaque();const i=n.getNumberOfComponents();return r===c1.DEFAULT&&n.getDataType()===xc.UNSIGNED_CHAR||r===c1.DIRECT_SCALARS?i===3||i===1?e.alpha>=1:n.getRange(i-1)[0]===255:!0}}const vYe={alpha:1,vectorComponent:0,vectorSize:-1,vectorMode:Jo.COMPONENT,mappingRange:null,annotationArray:null,annotatedValueMap:null,indexedLookup:!1};function Pq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,vYe,n),Q.obj(t,e),e.mappingRange=[0,255],e.annotationArray=[],e.annotatedValueMap=[],Q.setGet(t,e,["vectorSize","vectorComponent","vectorMode","alpha","indexedLookup"]),Q.setArray(t,e,["mappingRange"],2),Q.getArray(t,e,["mappingRange"]),hYe(t,e)}const pYe=Q.newInstance(Pq,"vtkScalarsToColors");var bx={newInstance:pYe,extend:Pq,...kO};const{vtkErrorMacro:i4}=Q,o4=0,s4=1,mC=2;function gYe(t,e){e.classHierarchy.push("vtkLookupTable"),t.isOpaque=()=>{if(e.opaqueFlagBuildTime.getMTime()!1,t.getNumberOfAvailableColors=()=>e.table.length/4,t.linearIndexLookup=(n,r)=>{let a=0;const i=Number(n);return ir.range[1]?a=r.maxIndex+s4+1.5:(a=(i+r.shift)*r.scale,a=a{let i=0;c_(n)?i=Math.floor(a.maxIndex+1.5+mC):i=t.linearIndexLookup(n,a);const o=4*i;return r.slice(o,o+4)},t.indexedLookupFunction=(n,r,a)=>{let i=t.getAnnotatedValueIndexInternal(n);i===-1&&(i=e.numberOfColors+mC);const o=4*i;return[r[o],r[o+1],r[o+2],r[o+3]]},t.lookupShiftAndScale=(n,r)=>{r.shift=-n[0],r.scale=Number.MAX_VALUE,n[1]>n[0]&&(r.scale=(r.maxIndex+1)/(n[1]-n[0]))},t.mapScalarsThroughTable=(n,r,a,i)=>{let o=t.linearLookup;e.indexedLookup&&(o=t.indexedLookupFunction);const s=t.getMappingRange(),l={maxIndex:t.getNumberOfColors()-1,range:s,shift:0,scale:0};t.lookupShiftAndScale(s,l);const u=t.getAlpha(),c=n.getNumberOfTuples(),f=n.getNumberOfComponents(),d=r.getData(),h=n.getData();if(u>=1){if(a===jk.RGBA)for(let p=0;p{let n=0,r=0,a=0,i=0;const o=e.numberOfColors-1;o&&(n=(e.hueRange[1]-e.hueRange[0])/o,r=(e.saturationRange[1]-e.saturationRange[0])/o,a=(e.valueRange[1]-e.valueRange[0])/o,i=(e.alphaRange[1]-e.alphaRange[0])/o),e.table.length=4*o+16;const s=[],l=[];for(let u=0;u<=o;u++)s[0]=e.hueRange[0]+u*n,s[1]=e.saturationRange[0]+u*r,s[2]=e.valueRange[0]+u*a,fh(s,l),l[3]=e.alphaRange[0]+u*i,e.table[u*4]=l[0]*255+.5,e.table[u*4+1]=l[1]*255+.5,e.table[u*4+2]=l[2]*255+.5,e.table[u*4+3]=l[3]*255+.5;t.buildSpecialColors(),e.buildTime.modified()},t.setTable=n=>{if(Array.isArray(n)){const a=n[0].length;e.numberOfColors=n.length;const i=4-a;let o=0;for(let s=0;s{const{numberOfColors:n}=e,r=e.table;let a=(n+o4)*4;e.useBelowRangeColor||n===0?(r[a]=e.belowRangeColor[0]*255+.5,r[a+1]=e.belowRangeColor[1]*255+.5,r[a+2]=e.belowRangeColor[2]*255+.5,r[a+3]=e.belowRangeColor[3]*255+.5):(r[a]=r[0],r[a+1]=r[1],r[a+2]=r[2],r[a+3]=r[3]),a=(n+s4)*4,e.useAboveRangeColor||n===0?(r[a]=e.aboveRangeColor[0]*255+.5,r[a+1]=e.aboveRangeColor[1]*255+.5,r[a+2]=e.aboveRangeColor[2]*255+.5,r[a+3]=e.aboveRangeColor[3]*255+.5):(r[a]=r[4*(n-1)+0],r[a+1]=r[4*(n-1)+1],r[a+2]=r[4*(n-1)+2],r[a+3]=r[4*(n-1)+3]),a=(n+mC)*4,r[a]=e.nanColor[0]*255+.5,r[a+1]=e.nanColor[1]*255+.5,r[a+2]=e.nanColor[2]*255+.5,r[a+3]=e.nanColor[3]*255+.5},t.build=()=>{(e.table.length<1||t.getMTime()>e.buildTime.getMTime()&&e.insertTime.getMTime()<=e.buildTime.getMTime())&&t.forceBuild()},e.table.length>0&&(t.buildSpecialColors(),e.insertTime.modified())}const yYe={numberOfColors:256,hueRange:[0,.66667],saturationRange:[1,1],valueRange:[1,1],alphaRange:[1,1],nanColor:[.5,0,0,1],belowRangeColor:[0,0,0,1],aboveRangeColor:[1,1,1,1],useAboveRangeColor:!1,useBelowRangeColor:!1,alpha:1};function Fq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,yYe,n),bx.extend(t,e,n),e.table||(e.table=[]),e.buildTime={},Q.obj(e.buildTime),e.opaqueFlagBuildTime={},Q.obj(e.opaqueFlagBuildTime,{mtime:0}),e.insertTime={},Q.obj(e.insertTime,{mtime:0}),Q.get(t,e,["buildTime"]),Q.setGet(t,e,["numberOfColors","useAboveRangeColor","useBelowRangeColor"]),Q.setArray(t,e,["alphaRange","hueRange","saturationRange","valueRange"],2),Q.setArray(t,e,["nanColor","belowRangeColor","aboveRangeColor"],4),Q.getArray(t,e,["hueRange","saturationRange","valueRange","alphaRange","nanColor","belowRangeColor","aboveRangeColor"]),gYe(t,e)}const mYe=Q.newInstance(Fq,"vtkLookupTable");var f1={newInstance:mYe,extend:Fq};let zq=1,RO=0;const bYe=["VTK_RESOLVE_OFF","VTK_RESOLVE_POLYGON_OFFSET"];function SYe(){return zq}function _Ye(t){zq=t}function wYe(){return RO}function Sx(){RO=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0}function xYe(){Sx(0)}function CYe(){Sx(0)}function TYe(){Sx(1)}function EYe(){return bYe[RO]}var Kk={getResolveCoincidentTopologyAsString:EYe,getResolveCoincidentTopologyPolygonOffsetFaces:SYe,getResolveCoincidentTopology:wYe,setResolveCoincidentTopology:Sx,setResolveCoincidentTopologyPolygonOffsetFaces:_Ye,setResolveCoincidentTopologyToDefault:xYe,setResolveCoincidentTopologyToOff:CYe,setResolveCoincidentTopologyToPolygonOffset:TYe};function Gq(t,e,n){n.forEach(r=>{t[`get${r.method}`]=()=>e[r.key],t[`set${r.method}`]=(a,i)=>{e[r.key]={factor:a,offset:i}}})}const LO=["Polygon","Line","Point"],MYe={Polygon:{factor:2,offset:0},Line:{factor:1,offset:-1},Point:{factor:0,offset:-2}},hf={};Gq(hf,MYe,LO.map(t=>({key:t,method:`ResolveCoincidentTopology${t}OffsetParameters`})));function kYe(t,e){e.resolveCoincidentTopology===void 0&&(e.resolveCoincidentTopology=!1),Q.setGet(t,e,["resolveCoincidentTopology"]),e.topologyOffset={Polygon:{factor:0,offset:0},Line:{factor:0,offset:0},Point:{factor:0,offset:0}},Object.keys(Kk).forEach(n=>{t[n]=Kk[n]}),Object.keys(hf).forEach(n=>{t[n]=hf[n]}),Gq(t,e.topologyOffset,LO.map(n=>({key:n,method:`RelativeCoincidentTopology${n}OffsetParameters`}))),t.getCoincidentTopologyPolygonOffsetParameters=()=>{const n=hf.getResolveCoincidentTopologyPolygonOffsetParameters(),r=t.getRelativeCoincidentTopologyPolygonOffsetParameters();return{factor:n.factor+r.factor,offset:n.offset+r.offset}},t.getCoincidentTopologyLineOffsetParameters=()=>{const n=hf.getResolveCoincidentTopologyLineOffsetParameters(),r=t.getRelativeCoincidentTopologyLineOffsetParameters();return{factor:n.factor+r.factor,offset:n.offset+r.offset}},t.getCoincidentTopologyPointOffsetParameter=()=>{const n=hf.getResolveCoincidentTopologyPointOffsetParameters(),r=t.getRelativeCoincidentTopologyPointOffsetParameters();return{factor:n.factor+r.factor,offset:n.offset+r.offset}}}var Hq={implementCoincidentTopologyMethods:kYe,staticOffsetAPI:hf,otherStaticMethods:Kk,CATEGORIES:LO};const Jc={MIN_KNOWN_PASS:0,ACTOR_PASS:0,COMPOSITE_INDEX_PASS:1,ID_LOW24:2,ID_HIGH24:3,MAX_KNOWN_PASS:3};var Uq={PassTypes:Jc};const{FieldAssociations:l4}=ep,{staticOffsetAPI:DYe,otherStaticMethods:RYe}=Hq,{ColorMode:bC,ScalarMode:Cc,GetArray:SC}=DO,{VectorMode:LYe}=kO,{VtkDataTypes:AYe}=Kn;function $p(t){return()=>Q.vtkErrorMacro(`vtkMapper::${t} - NOT IMPLEMENTED`)}function OYe(t,e){e.classHierarchy.push("vtkMapper"),t.getBounds=()=>{const n=t.getInputData();return n?(e.static||t.update(),e.bounds=n.getBounds()):e.bounds=hO(),e.bounds},t.setForceCompileOnly=n=>{e.forceCompileOnly=n},t.setSelectionWebGLIdsToVTKIds=n=>{e.selectionWebGLIdsToVTKIds=n},t.createDefaultLookupTable=()=>{e.lookupTable=f1.newInstance()},t.getColorModeAsString=()=>Q.enumToString(bC,e.colorMode),t.setColorModeToDefault=()=>t.setColorMode(0),t.setColorModeToMapScalars=()=>t.setColorMode(1),t.setColorModeToDirectScalars=()=>t.setColorMode(2),t.getScalarModeAsString=()=>Q.enumToString(Cc,e.scalarMode),t.setScalarModeToDefault=()=>t.setScalarMode(0),t.setScalarModeToUsePointData=()=>t.setScalarMode(1),t.setScalarModeToUseCellData=()=>t.setScalarMode(2),t.setScalarModeToUsePointFieldData=()=>t.setScalarMode(3),t.setScalarModeToUseCellFieldData=()=>t.setScalarMode(4),t.setScalarModeToUseFieldData=()=>t.setScalarMode(5),t.getAbstractScalars=(n,r,a,i,o)=>{if(!n||!e.scalarVisibility)return{scalars:null,cellFLag:!1};let s=null,l=!1;if(r===Cc.DEFAULT)s=n.getPointData().getScalars(),s||(s=n.getCellData().getScalars(),l=!0);else if(r===Cc.USE_POINT_DATA)s=n.getPointData().getScalars();else if(r===Cc.USE_CELL_DATA)s=n.getCellData().getScalars(),l=!0;else if(r===Cc.USE_POINT_FIELD_DATA){const u=n.getPointData();a===SC.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===Cc.USE_CELL_FIELD_DATA){const u=n.getCellData();l=!0,a===SC.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===Cc.USE_FIELD_DATA){const u=n.getFieldData();a===SC.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}return{scalars:s,cellFlag:l}},t.mapScalars=(n,r)=>{const a=t.getAbstractScalars(n,e.scalarMode,e.arrayAccessMode,e.arrayId,e.colorByArrayName).scalars;if(!a){e.colorCoordinates=null,e.colorTextureMap=null,e.colorMapColors=null;return}const i=`${t.getMTime()}${a.getMTime()}${r}`;if(e.colorBuildString!==i){if(e.useLookupTableScalarRange||t.getLookupTable().setRange(e.scalarRange[0],e.scalarRange[1]),t.canUseTextureMapForColoring(n))t.mapScalarsToTexture(a,r);else{e.colorCoordinates=null,e.colorTextureMap=null;const o=t.getLookupTable();o&&(o.build(),e.colorMapColors=o.mapScalars(a,e.colorMode,e.fieldDataTupleId))}e.colorBuildString=`${t.getMTime()}${a.getMTime()}${r}`}},t.scalarToTextureCoordinate=(n,r,a)=>{let i=.5,o=1;return c_(n)||(o=.49,i=(n-r)*a,i>1e3?i=1e3:i<-1e3&&(i=-1e3)),{texCoordS:i,texCoordT:o}},t.createColorTextureCoordinates=(n,r,a,i,o,s,l,u,c)=>{const f=(s[1]-s[0])/u,d=[];d[0]=s[0]-f,d[1]=s[1]+f;const h=1/(d[1]-d[0]),p=r.getData(),v=n.getData();let g=0,y=0;if(o<0||o>=i)for(let m=0;m{const a=e.lookupTable.getRange(),i=e.lookupTable.usingLogScale();i&&f1.getLogRange(a,a);const o=e.lookupTable.getAlpha();if(e.colorMapColors=null,e.colorTextureMap==null||t.getMTime()>e.colorTextureMap.getMTime()||e.lookupTable.getMTime()>e.colorTextureMap.getMTime()||e.lookupTable.getAlpha()!==r){e.lookupTable.setAlpha(r),e.colorTextureMap=null,e.lookupTable.build();let s=e.lookupTable.getNumberOfAvailableColors();s>4094&&(s=4094),s<64&&(s=64),s+=2;const l=(a[1]-a[0])/(s-2),u=new Float64Array(s*2);for(let f=0;fe.colorCoordinates.getMTime()||t.getInputData(0).getMTime()>e.colorCoordinates.getMTime()||e.lookupTable.getMTime()>e.colorCoordinates.getMTime()){e.colorCoordinates=null;const s=n.getNumberOfComponents(),l=n.getNumberOfTuples();e.colorCoordinates=Kn.newInstance({numberOfComponents:2,values:new Float32Array(l*2)});let u=e.lookupTable.getVectorComponent();e.lookupTable.getVectorMode()===LYe.MAGNITUDE&&n.getNumberOfComponents()>1&&(u=-1),t.createColorTextureCoordinates(n,e.colorCoordinates,l,s,u,a,e.lookupTable.getRange(),e.colorTextureMap.getPointData().getScalars().getNumberOfTuples()/2-2,i)}},t.getIsOpaque=()=>{const n=t.getInputData(),a=t.getAbstractScalars(n,e.scalarMode,e.arrayAccessMode,e.arrayId,e.colorByArrayName).scalars;if(!e.scalarVisibility||a==null)return!0;const i=t.getLookupTable();return i?(i.build(),i.areScalarsOpaque(a,e.colorMode,-1)):!0},t.canUseTextureMapForColoring=n=>{if(!e.interpolateScalarsBeforeMapping||e.lookupTable&&e.lookupTable.getIndexedLookup())return!1;const r=t.getAbstractScalars(n,e.scalarMode,e.arrayAccessMode,e.arrayId,e.colorByArrayName),a=r.scalars;return!(!a||r.cellFlag||e.colorMode===bC.DEFAULT&&a.getDataType()===AYe.UNSIGNED_CHAR||e.colorMode===bC.DIRECT_SCALARS)},t.clearColorArrays=()=>{e.colorMapColors=null,e.colorCoordinates=null,e.colorTextureMap=null},t.getLookupTable=()=>(e.lookupTable||t.createDefaultLookupTable(),e.lookupTable),t.getMTime=()=>{let n=e.mtime;if(e.lookupTable!==null){const r=e.lookupTable.getMTime();n=r>n?r:n}return n},t.getPrimitiveCount=()=>{const n=t.getInputData();return{points:n.getPoints().getNumberOfValues()/3,verts:n.getVerts().getNumberOfValues()-n.getVerts().getNumberOfCells(),lines:n.getLines().getNumberOfValues()-2*n.getLines().getNumberOfCells(),triangles:n.getPolys().getNumberOfValues()-3*n.getPolys().getNumberOfCells()}},t.acquireInvertibleLookupTable=$p("AcquireInvertibleLookupTable"),t.valueToColor=$p("ValueToColor"),t.colorToValue=$p("ColorToValue"),t.useInvertibleColorFor=$p("UseInvertibleColorFor"),t.clearInvertibleColor=$p("ClearInvertibleColor"),t.processSelectorPixelBuffers=(n,r)=>{if(!n||!e.selectionWebGLIdsToVTKIds||!e.populateSelectionSettings)return;const a=n.getRawPixelBuffer(Jc.ID_LOW24),i=n.getRawPixelBuffer(Jc.ID_HIGH24),o=n.getCurrentPass(),s=n.getFieldAssociation();let l=null;s===l4.FIELD_ASSOCIATION_POINTS?l=e.selectionWebGLIdsToVTKIds.points:s===l4.FIELD_ASSOCIATION_CELLS&&(l=e.selectionWebGLIdsToVTKIds.cells),l&&r.forEach(u=>{if(o===Jc.ID_LOW24){let c=0;i&&(c+=i[u],c*=256),c+=a[u+2],c*=256,c+=a[u+1],c*=256,c+=a[u];const f=l[c],d=n.getPixelBuffer(Jc.ID_LOW24);d[u]=f&255,d[u+1]=(f&65280)>>8,d[u+2]=(f&16711680)>>16}else if(o===Jc.ID_HIGH24&&i){let c=0;c+=i[u],c*=256,c+=a[u],c*=256,c+=a[u+1],c*=256,c+=a[u+2];const f=l[c],d=n.getPixelBuffer(Jc.ID_HIGH24);d[u]=(f&4278190080)>>24}})}}const NYe={colorMapColors:null,static:!1,lookupTable:null,scalarVisibility:!0,scalarRange:[0,1],useLookupTableScalarRange:!1,colorMode:0,scalarMode:0,arrayAccessMode:1,renderTime:0,colorByArrayName:null,fieldDataTupleId:-1,populateSelectionSettings:!0,selectionWebGLIdsToVTKIds:null,interpolateScalarsBeforeMapping:!1,colorCoordinates:null,colorTextureMap:null,forceCompileOnly:0,useInvertibleColors:!1,invertibleScalars:null,customShaderAttributes:[]};function Wq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,NYe,n),tYe.extend(t,e,n),Q.get(t,e,["colorCoordinates","colorMapColors","colorTextureMap","selectionWebGLIdsToVTKIds"]),Q.setGet(t,e,["colorByArrayName","arrayAccessMode","colorMode","fieldDataTupleId","interpolateScalarsBeforeMapping","lookupTable","populateSelectionSettings","renderTime","scalarMode","scalarVisibility","static","useLookupTableScalarRange","customShaderAttributes"]),Q.setGetArray(t,e,["scalarRange"],2),Hq.implementCoincidentTopologyMethods(t,e),OYe(t,e)}const $Ye=Q.newInstance(Wq,"vtkMapper");var y_={newInstance:$Ye,extend:Wq,...DYe,...RYe,...DO};const IYe={CLAMP_TO_EDGE:0,REPEAT:1,MIRRORED_REPEAT:2},Yk={NEAREST:0,LINEAR:1,NEAREST_MIPMAP_NEAREST:2,NEAREST_MIPMAP_LINEAR:3,LINEAR_MIPMAP_NEAREST:4,LINEAR_MIPMAP_LINEAR:5};var jq={Wrap:IYe,Filter:Yk};const Kq=new Float32Array(1),BYe=new Int32Array(Kq.buffer);function VYe(t){Kq[0]=t;const e=BYe[0];let n=e>>16&32768,r=e>>12&2047;const a=e>>23&255;return a<103?n:a>142?(n|=31744,n|=(a===255?0:1)&&e&8388607,n):a<113?(r|=2048,n|=(r>>114-a)+(r>>113-a&1),n):(n|=a-112<<10|r>>1,n+=r&1,n)}function PYe(t){const e=(t&32768)>>15,n=(t&31744)>>10,r=t&1023;return n===0?(e?-1:1)*2**-14*(r/2**10):n===31?r?NaN:(e?-1:1)*(1/0):(e?-1:1)*2**(n-15)*(1+r/2**10)}var bo={fromHalf:PYe,toHalf:VYe};const{vtkErrorMacro:FYe}=Q,zYe=["Build","Render"];function GYe(t,e){e.classHierarchy.push("vtkViewNode"),t.build=r=>{},t.render=r=>{},t.traverse=r=>{const a=r.getTraverseOperation(),i=t[a];if(i){i(r);return}t.apply(r,!0);for(let o=0;o{const i=t[r.getOperation()];i&&i(a,r)},t.getViewNodeFor=r=>{if(e.renderable===r)return t;for(let a=0;ae._parent?e._parent.isA(r)?e._parent:e._parent.getFirstAncestorOfType(r):null,t.addMissingNode=r=>{if(!r)return;const a=e._renderableChildMap.get(r);if(a!==void 0)a.setVisited(!0);else{const i=t.createViewNode(r);i&&(i.setParent(t),i.setVisited(!0),e._renderableChildMap.set(r,i),e.children.push(i))}},t.addMissingNodes=r=>{if(!(!r||!r.length))for(let a=0;a{if(!(!r||!r.length))for(let a=0;a{for(let r=0;r{e.visited=r},t.removeUnusedNodes=()=>{let r=0;for(let a=0;a{if(!e.myFactory)return FYe("Cannot create view nodes without my own factory"),null;const a=e.myFactory.createNode(r);return a&&a.setRenderable(r),a};const n=t.delete;t.delete=()=>{for(let r=0;r2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,HYe,n),Q.obj(t,e),Q.event(t,e,"event"),e._renderableChildMap=new Map,Q.get(t,e,["visited"]),Q.setGet(t,e,["_parent","renderable","myFactory"]),Q.getArray(t,e,["children"]),Q.moveToProtected(t,e,["parent"]),GYe(t,e)}const UYe=Q.newInstance(Yq,"vtkViewNode");var AO={newInstance:UYe,extend:Yq,PASS_TYPES:zYe};function WYe(t,e){e.overrides||(e.overrides={}),e.classHierarchy.push("vtkViewNodeFactory"),t.createNode=n=>{if(n.isDeleted())return null;let r=0,a=n.getClassName(r++),i=!1;const o=Object.keys(e.overrides);for(;a&&!i;)o.indexOf(a)!==-1?i=!0:a=n.getClassName(r++);if(!i)return null;const s=e.overrides[a]();return s.setMyFactory(t),s},t.registerOverride=(n,r)=>{e.overrides[n]=r}}const jYe={};function Xq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,jYe,n),Q.obj(t,e),WYe(t,e)}const KYe=Q.newInstance(Xq,"vtkViewNodeFactory");var qq={newInstance:KYe,extend:Xq};const Zq=Object.create(null);function YYe(t,e){Zq[t]=e}function XYe(t,e){e.classHierarchy.push("vtkOpenGLViewNodeFactory")}const qYe={};function Qq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,qYe,n),e.overrides=Zq,qq.extend(t,e,n),XYe(t,e)}const ZYe=Q.newInstance(Qq,"vtkOpenGLViewNodeFactory");var QYe={newInstance:ZYe,extend:Qq};const{Wrap:tl,Filter:Gr}=jq,{VtkDataTypes:pn}=Kn,{vtkDebugMacro:_C,vtkErrorMacro:$d,vtkWarningMacro:u4}=px,{toHalf:JYe}=bo;function eXe(t,e){e.classHierarchy.push("vtkOpenGLTexture"),t.render=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(u?e._openGLRenderWindow=u:(e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent()),e.context=e._openGLRenderWindow.getContext(),e.renderable.getInterpolate()?(e.generateMipmap?t.setMinificationFilter(Gr.LINEAR_MIPMAP_LINEAR):t.setMinificationFilter(Gr.LINEAR),t.setMagnificationFilter(Gr.LINEAR)):(t.setMinificationFilter(Gr.NEAREST),t.setMagnificationFilter(Gr.NEAREST)),e.renderable.getRepeat()&&(t.setWrapR(tl.REPEAT),t.setWrapS(tl.REPEAT),t.setWrapT(tl.REPEAT)),e.renderable.getInputData()&&e.renderable.setImage(null),!e.handle||e.renderable.getMTime()>e.textureBuildTime.getMTime()){if(e.renderable.getImage()!==null&&(e.renderable.getInterpolate()&&(e.generateMipmap=!0,t.setMinificationFilter(Gr.LINEAR_MIPMAP_LINEAR)),e.renderable.getImage()&&e.renderable.getImageLoaded()&&(t.create2DFromImage(e.renderable.getImage()),t.activate(),t.sendParameters(),e.textureBuildTime.modified())),e.renderable.getCanvas()!==null){e.renderable.getInterpolate()&&(e.generateMipmap=!0,t.setMinificationFilter(Gr.LINEAR_MIPMAP_LINEAR));const f=e.renderable.getCanvas();t.create2DFromRaw(f.width,f.height,4,pn.UNSIGNED_CHAR,f,!0),t.activate(),t.sendParameters(),e.textureBuildTime.modified()}if(e.renderable.getJsImageData()!==null){const f=e.renderable.getJsImageData();e.renderable.getInterpolate()&&(e.generateMipmap=!0,t.setMinificationFilter(Gr.LINEAR_MIPMAP_LINEAR)),t.create2DFromRaw(f.width,f.height,4,pn.UNSIGNED_CHAR,f.data,!0),t.activate(),t.sendParameters(),e.textureBuildTime.modified()}const c=e.renderable.getInputData(0);if(c&&c.getPointData().getScalars()){const f=c.getExtent(),d=c.getPointData().getScalars(),h=[];for(let p=0;p{t.deactivate(),e.context&&e.handle&&e.context.deleteTexture(e.handle),e.handle=0,e.numberOfDimensions=0,e.target=0,e.components=0,e.width=0,e.height=0,e.depth=0,t.resetFormatAndType()},t.createTexture=()=>{e.handle||(e.handle=e.context.createTexture(),e.target&&(e.context.bindTexture(e.target,e.handle),e.context.texParameteri(e.target,e.context.TEXTURE_MIN_FILTER,t.getOpenGLFilterMode(e.minificationFilter)),e.context.texParameteri(e.target,e.context.TEXTURE_MAG_FILTER,t.getOpenGLFilterMode(e.magnificationFilter)),e.context.texParameteri(e.target,e.context.TEXTURE_WRAP_S,t.getOpenGLWrapMode(e.wrapS)),e.context.texParameteri(e.target,e.context.TEXTURE_WRAP_T,t.getOpenGLWrapMode(e.wrapT)),e._openGLRenderWindow.getWebgl2()&&e.context.texParameteri(e.target,e.context.TEXTURE_WRAP_R,t.getOpenGLWrapMode(e.wrapR)),e.context.bindTexture(e.target,null)))},t.getTextureUnit=()=>e._openGLRenderWindow?e._openGLRenderWindow.getTextureUnitForTexture(t):-1,t.activate=()=>{e._openGLRenderWindow.activateTexture(t),t.bind()},t.deactivate=()=>{e._openGLRenderWindow&&e._openGLRenderWindow.deactivateTexture(t)},t.releaseGraphicsResources=u=>{u&&e.handle&&(u.activateTexture(t),u.deactivateTexture(t),e.context.deleteTexture(e.handle),e.handle=0,e.numberOfDimensions=0,e.target=0,e.internalFormat=0,e.format=0,e.openGLDataType=0,e.components=0,e.width=0,e.height=0,e.depth=0,e.allocatedGPUMemoryInBytes=0),e.shaderProgram&&(e.shaderProgram.releaseGraphicsResources(u),e.shaderProgram=null)},t.bind=()=>{e.context.bindTexture(e.target,e.handle),e.autoParameters&&t.getMTime()>e.sendParametersTime.getMTime()&&t.sendParameters()},t.isBound=()=>{let u=!1;if(e.context&&e.handle){let c=0;switch(e.target){case e.context.TEXTURE_2D:c=e.context.TEXTURE_BINDING_2D;break;default:u4("impossible case");break}u=e.context.getIntegerv(c)===e.handle}return u},t.sendParameters=()=>{e.context.texParameteri(e.target,e.context.TEXTURE_WRAP_S,t.getOpenGLWrapMode(e.wrapS)),e.context.texParameteri(e.target,e.context.TEXTURE_WRAP_T,t.getOpenGLWrapMode(e.wrapT)),e._openGLRenderWindow.getWebgl2()&&e.context.texParameteri(e.target,e.context.TEXTURE_WRAP_R,t.getOpenGLWrapMode(e.wrapR)),e.context.texParameteri(e.target,e.context.TEXTURE_MIN_FILTER,t.getOpenGLFilterMode(e.minificationFilter)),e.context.texParameteri(e.target,e.context.TEXTURE_MAG_FILTER,t.getOpenGLFilterMode(e.magnificationFilter)),e._openGLRenderWindow.getWebgl2()&&(e.context.texParameteri(e.target,e.context.TEXTURE_BASE_LEVEL,e.baseLevel),e.context.texParameteri(e.target,e.context.TEXTURE_MAX_LEVEL,e.maxLevel)),e.sendParametersTime.modified()},t.getInternalFormat=(u,c)=>(e._forceInternalFormat||(e.internalFormat=t.getDefaultInternalFormat(u,c)),e.internalFormat||_C(`Unable to find suitable internal format for T=${u} NC= ${c}`),[e.context.R32F,e.context.RG32F,e.context.RGB32F,e.context.RGBA32F].includes(e.internalFormat)&&!e.context.getExtension("OES_texture_float_linear")&&u4("Failed to load OES_texture_float_linear. Texture filtering is not available for *32F internal formats."),e.internalFormat),t.getDefaultInternalFormat=(u,c)=>{let f=0;return f=e._openGLRenderWindow.getDefaultTextureInternalFormat(u,c,e.oglNorm16Ext,e.useHalfFloat),f||(f||(_C("Unsupported internal texture type!"),_C(`Unable to find suitable internal format for T=${u} NC= ${c}`)),f)},t.setInternalFormat=u=>{e._forceInternalFormat=!0,u!==e.internalFormat&&(e.internalFormat=u,t.modified())},t.getFormat=(u,c)=>(e.format=t.getDefaultFormat(u,c),e.format),t.getDefaultFormat=(u,c)=>{if(e._openGLRenderWindow.getWebgl2())switch(c){case 1:return e.context.RED;case 2:return e.context.RG;case 3:return e.context.RGB;case 4:return e.context.RGBA;default:return e.context.RGB}else switch(c){case 1:return e.context.LUMINANCE;case 2:return e.context.LUMINANCE_ALPHA;case 3:return e.context.RGB;case 4:return e.context.RGBA;default:return e.context.RGB}},t.resetFormatAndType=()=>{e.format=0,e.internalFormat=0,e._forceInternalFormat=!1,e.openGLDataType=0},t.getDefaultDataType=u=>{if(e._openGLRenderWindow.getWebgl2())switch(u){case pn.UNSIGNED_CHAR:return e.context.UNSIGNED_BYTE;case(e.oglNorm16Ext&&!e.useHalfFloat&&pn.SHORT):return e.context.SHORT;case(e.oglNorm16Ext&&!e.useHalfFloat&&pn.UNSIGNED_SHORT):return e.context.UNSIGNED_SHORT;case(e.useHalfFloat&&pn.SHORT):return e.context.HALF_FLOAT;case(e.useHalfFloat&&pn.UNSIGNED_SHORT):return e.context.HALF_FLOAT;case pn.FLOAT:case pn.VOID:default:return e.context.FLOAT}switch(u){case pn.UNSIGNED_CHAR:return e.context.UNSIGNED_BYTE;case pn.FLOAT:case pn.VOID:default:if(e.context.getExtension("OES_texture_float")&&e.context.getExtension("OES_texture_float_linear"))return e.context.FLOAT;{const c=e.context.getExtension("OES_texture_half_float");if(c&&e.context.getExtension("OES_texture_half_float_linear"))return c.HALF_FLOAT_OES}return e.context.UNSIGNED_BYTE}},t.getOpenGLDataType=function(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(!e.openGLDataType||c)&&(e.openGLDataType=t.getDefaultDataType(u)),e.openGLDataType},t.getShiftAndScale=()=>{let u=0,c=1;switch(e.openGLDataType){case e.context.BYTE:c=127.5,u=c-128;break;case e.context.UNSIGNED_BYTE:c=255,u=0;break;case e.context.SHORT:c=32767.5,u=c-32768;break;case e.context.UNSIGNED_SHORT:c=65536,u=0;break;case e.context.INT:c=21474836475e-1,u=c-2147483648;break;case e.context.UNSIGNED_INT:c=4294967295,u=0;break;case e.context.FLOAT:}return{shift:u,scale:c}},t.getOpenGLFilterMode=u=>{switch(u){case Gr.NEAREST:return e.context.NEAREST;case Gr.LINEAR:return e.context.LINEAR;case Gr.NEAREST_MIPMAP_NEAREST:return e.context.NEAREST_MIPMAP_NEAREST;case Gr.NEAREST_MIPMAP_LINEAR:return e.context.NEAREST_MIPMAP_LINEAR;case Gr.LINEAR_MIPMAP_NEAREST:return e.context.LINEAR_MIPMAP_NEAREST;case Gr.LINEAR_MIPMAP_LINEAR:return e.context.LINEAR_MIPMAP_LINEAR;default:return e.context.NEAREST}},t.getOpenGLWrapMode=u=>{switch(u){case tl.CLAMP_TO_EDGE:return e.context.CLAMP_TO_EDGE;case tl.REPEAT:return e.context.REPEAT;case tl.MIRRORED_REPEAT:return e.context.MIRRORED_REPEAT;default:return e.context.CLAMP_TO_EDGE}};function n(u,c){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const d=[];let h=e.width*e.height*e.components;if(f&&(h*=e.depth),u!==pn.FLOAT&&e.openGLDataType===e.context.FLOAT)for(let v=0;vh?c[v].subarray(0,h):c[v];d.push(new Float32Array(g))}else d.push(null);if(u!==pn.UNSIGNED_CHAR&&e.openGLDataType===e.context.UNSIGNED_BYTE)for(let v=0;vh?c[v].subarray(0,h):c[v];d.push(new Uint8Array(g))}else d.push(null);let p=!1;if(e._openGLRenderWindow.getWebgl2())p=e.openGLDataType===e.context.HALF_FLOAT;else{const v=e.context.getExtension("OES_texture_half_float");p=v&&e.openGLDataType===v.HALF_FLOAT_OES}if(p)for(let v=0;v=d&&(M=d-1);const D=k-E,R=1-D;E=E*f*h,M=M*f*h;for(let A=0;A=f&&(I=f-1);const L=P-N;N*=h,I*=h;for(let $=0;$5&&arguments[5]!==void 0?arguments[5]:!1;if(t.getOpenGLDataType(d,!0),t.getInternalFormat(d,f),t.getFormat(d,f),!e.internalFormat||!e.format||!e.openGLDataType)return $d("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_2D,e.components=f,e.width=u,e.height=c,e.depth=1,e.numberOfDimensions=2,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind();const g=n(d,[h]),y=r(g);return e.context.pixelStorei(e.context.UNPACK_FLIP_Y_WEBGL,p),e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(d)?(e.context.texStorage2D(e.target,1,e.internalFormat,e.width,e.height),y[0]!=null&&e.context.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.openGLDataType,y[0])):e.context.texImage2D(e.target,0,e.internalFormat,e.width,e.height,0,e.format,e.openGLDataType,y[0]),e.generateMipmap&&e.context.generateMipmap(e.target),p&&e.context.pixelStorei(e.context.UNPACK_FLIP_Y_WEBGL,!1),e.allocatedGPUMemoryInBytes=e.width*e.height*e.depth*f*e._openGLRenderWindow.getDefaultTextureByteSize(d,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0},t.createCubeFromRaw=(u,c,f,d,h)=>{if(t.getOpenGLDataType(d),t.getInternalFormat(d,f),t.getFormat(d,f),!e.internalFormat||!e.format||!e.openGLDataType)return $d("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_CUBE_MAP,e.components=f,e.width=u,e.height=c,e.depth=1,e.numberOfDimensions=2,e._openGLRenderWindow.activateTexture(t),e.maxLevel=h.length/6-1,t.createTexture(),t.bind();const p=n(d,h),v=r(p),g=[];let y=e.width,m=e.height;for(let b=0;b=1&&w>=1;){let C=null;_<=e.maxLevel&&(C=g[6*_+b]),a(d)?C!=null&&e.context.texSubImage2D(e.context.TEXTURE_CUBE_MAP_POSITIVE_X+b,_,0,0,x,w,e.format,e.openGLDataType,C):e.context.texImage2D(e.context.TEXTURE_CUBE_MAP_POSITIVE_X+b,_,e.internalFormat,x,w,0,e.format,e.openGLDataType,C),_++,x/=2,w/=2}}return e.allocatedGPUMemoryInBytes=e.width*e.height*e.depth*f*e._openGLRenderWindow.getDefaultTextureByteSize(d,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0},t.createDepthFromRaw=(u,c,f,d)=>(t.getOpenGLDataType(f),e.format=e.context.DEPTH_COMPONENT,e._openGLRenderWindow.getWebgl2()?f===pn.FLOAT?e.internalFormat=e.context.DEPTH_COMPONENT32F:e.internalFormat=e.context.DEPTH_COMPONENT16:e.internalFormat=e.context.DEPTH_COMPONENT,!e.internalFormat||!e.format||!e.openGLDataType?($d("Failed to determine texture parameters."),!1):(e.target=e.context.TEXTURE_2D,e.components=1,e.width=u,e.height=c,e.depth=1,e.numberOfDimensions=2,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind(),e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(f)?(e.context.texStorage2D(e.target,1,e.internalFormat,e.width,e.height),d!=null&&e.context.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.openGLDataType,d)):e.context.texImage2D(e.target,0,e.internalFormat,e.width,e.height,0,e.format,e.openGLDataType,d),e.generateMipmap&&e.context.generateMipmap(e.target),e.allocatedGPUMemoryInBytes=e.width*e.height*e.depth*e.components*e._openGLRenderWindow.getDefaultTextureByteSize(f,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0)),t.create2DFromImage=u=>{if(t.getOpenGLDataType(pn.UNSIGNED_CHAR),t.getInternalFormat(pn.UNSIGNED_CHAR,4),t.getFormat(pn.UNSIGNED_CHAR,4),!e.internalFormat||!e.format||!e.openGLDataType)return $d("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_2D,e.components=4,e.depth=1,e.numberOfDimensions=2,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind(),e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1);const c=!e._openGLRenderWindow.getWebgl2()&&(!t1(u.width)||!t1(u.height)),f=document.createElement("canvas");f.width=c?el(u.width):u.width,f.height=c?el(u.height):u.height,e.width=f.width,e.height=f.height;const d=f.getContext("2d");d.translate(0,f.height),d.scale(1,-1),d.drawImage(u,0,0,u.width,u.height,0,0,f.width,f.height);const h=f;return a(pn.UNSIGNED_CHAR)?(e.context.texStorage2D(e.target,1,e.internalFormat,e.width,e.height),h!=null&&e.context.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.openGLDataType,h)):e.context.texImage2D(e.target,0,e.internalFormat,e.width,e.height,0,e.format,e.openGLDataType,h),e.generateMipmap&&e.context.generateMipmap(e.target),e.allocatedGPUMemoryInBytes=e.width*e.height*e.depth*e.components*e._openGLRenderWindow.getDefaultTextureByteSize(pn.UNSIGNED_CHAR,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0};function i(u,c,f){const d=new Array(f),h=new Array(f);for(let p=0;p2048||h<-2048||h>2048)return!1}return!0}function s(u,c,f,d){t.getOpenGLDataType(u);let h=!1;if(e._openGLRenderWindow.getWebgl2())h=e.openGLDataType===e.context.HALF_FLOAT;else{const v=e.context.getExtension("OES_texture_half_float");h=v&&e.openGLDataType===v.HALF_FLOAT_OES}const p=h&&(o(c,f)||d);e.useHalfFloat=p}function l(u,c){const f=u.getNumberOfComponents(),d=u.getDataType(),h=u.getData(),p=new Array(f),v=new Array(f);for(let y=0;y5&&arguments[5]!==void 0?arguments[5]:!1;return t.create2DFilterableFromDataArray(u,c,Kn.newInstance({numberOfComponents:f,dataType:d,values:h}),p)},t.create2DFilterableFromDataArray=function(u,c,f){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{numComps:h,dataType:p,data:v}=l(f,d);t.create2DFromRaw(u,c,h,p,v)},t.create3DFromRaw=(u,c,f,d,h,p)=>{if(t.getOpenGLDataType(h),t.getInternalFormat(h,d),t.getFormat(h,d),!e.internalFormat||!e.format||!e.openGLDataType)return $d("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_3D,e.components=d,e.width=u,e.height=c,e.depth=f,e.numberOfDimensions=3,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind();const y=n(h,[p],!0),m=r(y);return e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(h)?(e.context.texStorage3D(e.target,1,e.internalFormat,e.width,e.height,e.depth),m[0]!=null&&e.context.texSubImage3D(e.target,0,0,0,0,e.width,e.height,e.depth,e.format,e.openGLDataType,m[0])):e.context.texImage3D(e.target,0,e.internalFormat,e.width,e.height,e.depth,0,e.format,e.openGLDataType,m[0]),e.generateMipmap&&e.context.generateMipmap(e.target),e.allocatedGPUMemoryInBytes=e.width*e.height*e.depth*e.components*e._openGLRenderWindow.getDefaultTextureByteSize(h,e.oglNorm16Ext,e.useHalfFloat),t.deactivate(),!0},t.create3DFilterableFromRaw=function(u,c,f,d,h,p){let v=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1;return t.create3DFilterableFromDataArray(u,c,f,Kn.newInstance({numberOfComponents:d,dataType:h,values:p}),v)},t.create3DFilterableFromDataArray=function(u,c,f,d){let h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;const{numComps:p,dataType:v,data:g,scaleOffsets:y}=l(d,h),m=u*c*f,b=[],_=[];for(let $=0;$1/Y);for(let Y=0;Y{$[U]=j},C=pn.UNSIGNED_CHAR;if(v===pn.UNSIGNED_CHAR)for(let $=0;${$[U]=(j-Y)/oe}):(C=pn.UNSIGNED_CHAR,w=($,U,j,Y,oe)=>{$[U]=255*(j-Y)/oe});if(t.getOpenGLDataType(C),t.getInternalFormat(C,p),t.getFormat(C,p),!e.internalFormat||!e.format||!e.openGLDataType)return $d("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_2D,e.components=p,e.depth=1,e.numberOfDimensions=2;let T=e.context.getParameter(e.context.MAX_TEXTURE_SIZE);T>4096&&(C===pn.FLOAT||p>=3)&&(T=4096);let k=1,E=1;m>T*T&&(k=Math.ceil(Math.sqrt(m/(T*T))),E=k);let M=Math.sqrt(m)/k;M=el(M);const D=Math.floor(M*k/u),R=Math.ceil(f/D),A=el(c*R/E);e.width=M,e.height=A,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind(),e.volumeInfo.xreps=D,e.volumeInfo.yreps=R,e.volumeInfo.xstride=k,e.volumeInfo.ystride=E,e.volumeInfo.offset=x.offset,e.volumeInfo.scale=x.scale;let V;const P=M*A*p;C===pn.FLOAT?V=new Float32Array(P):V=new Uint8Array(P);let N=0;const I=Math.floor(u/k),L=Math.floor(c/E);for(let $=0;${e._openGLRenderWindow!==u&&(t.releaseGraphicsResources(),e._openGLRenderWindow=u,e.context=null,u&&(e.context=e._openGLRenderWindow.getContext()))},t.getMaximumTextureSize=u=>u&&u.isCurrent()?u.getIntegerv(u.MAX_TEXTURE_SIZE):-1}const tXe={_openGLRenderWindow:null,_forceInternalFormat:!1,context:null,handle:0,sendParametersTime:null,textureBuildTime:null,numberOfDimensions:0,target:0,format:0,openGLDataType:0,components:0,width:0,height:0,depth:0,autoParameters:!0,wrapS:tl.CLAMP_TO_EDGE,wrapT:tl.CLAMP_TO_EDGE,wrapR:tl.CLAMP_TO_EDGE,minificationFilter:Gr.NEAREST,magnificationFilter:Gr.NEAREST,minLOD:-1e3,maxLOD:1e3,baseLevel:0,maxLevel:1e3,generateMipmap:!1,useHalfFloat:!0,oglNorm16Ext:null,allocatedGPUMemoryInBytes:0};function Jq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,tXe,n),AO.extend(t,e,n),e.sendParametersTime={},$o(e.sendParametersTime,{mtime:0}),e.textureBuildTime={},$o(e.textureBuildTime,{mtime:0}),Qy(t,e,["format","openGLDataType"]),Bs(t,e,["keyMatrixTime","minificationFilter","magnificationFilter","wrapS","wrapT","wrapR","generateMipmap","oglNorm16Ext"]),Is(t,e,["width","height","volumeInfo","components","handle","target","allocatedGPUMemoryInBytes"]),vx(t,e,["openGLRenderWindow"]),eXe(t,e)}const eZ=Uo(Jq,"vtkOpenGLTexture");var aS={newInstance:eZ,extend:Jq,...jq};YYe("vtkTexture",eZ);function nXe(t,e){e.classHierarchy.push("vtkFramebuffer"),t.getBothMode=()=>e.context.FRAMEBUFFER,t.saveCurrentBindingsAndBuffers=n=>{const r=typeof n<"u"?n:t.getBothMode();t.saveCurrentBindings(r),t.saveCurrentBuffers(r)},t.saveCurrentBindings=n=>{if(!e.context){un("you must set the OpenGLRenderWindow before calling saveCurrentBindings");return}const r=e.context;e.previousDrawBinding=r.getParameter(e.context.FRAMEBUFFER_BINDING),e.previousActiveFramebuffer=e._openGLRenderWindow.getActiveFramebuffer()},t.saveCurrentBuffers=n=>{},t.restorePreviousBindingsAndBuffers=n=>{const r=typeof n<"u"?n:t.getBothMode();t.restorePreviousBindings(r),t.restorePreviousBuffers(r)},t.restorePreviousBindings=n=>{if(!e.context){un("you must set the OpenGLRenderWindow before calling restorePreviousBindings");return}const r=e.context;r.bindFramebuffer(r.FRAMEBUFFER,e.previousDrawBinding),e._openGLRenderWindow.setActiveFramebuffer(e.previousActiveFramebuffer)},t.restorePreviousBuffers=n=>{},t.bind=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;r===null&&(r=e.context.FRAMEBUFFER),e.context.bindFramebuffer(r,e.glFramebuffer);for(let a=0;a{if(!e.context){un("you must set the OpenGLRenderWindow before calling create");return}e.glFramebuffer=e.context.createFramebuffer(),e.glFramebuffer.width=n,e.glFramebuffer.height=r},t.setColorBuffer=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const a=e.context;if(!a){un("you must set the OpenGLRenderWindow before calling setColorBuffer");return}let i=a.COLOR_ATTACHMENT0;if(r>0)if(e._openGLRenderWindow.getWebgl2())i+=r;else{un("Using multiple framebuffer attachments requires WebGL 2");return}e.colorBuffers[r]=n,a.framebufferTexture2D(a.FRAMEBUFFER,i,a.TEXTURE_2D,n.getHandle(),0)},t.removeColorBuffer=function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const r=e.context;if(!r){un("you must set the OpenGLRenderWindow before calling removeColorBuffer");return}let a=r.COLOR_ATTACHMENT0;if(n>0)if(e._openGLRenderWindow.getWebgl2())a+=n;else{un("Using multiple framebuffer attachments requires WebGL 2");return}r.framebufferTexture2D(r.FRAMEBUFFER,a,r.TEXTURE_2D,null,0),e.colorBuffers=e.colorBuffers.splice(n,1)},t.setDepthBuffer=n=>{if(!e.context){un("you must set the OpenGLRenderWindow before calling setDepthBuffer");return}if(e._openGLRenderWindow.getWebgl2()){const r=e.context;r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,n.getHandle(),0)}else un("Attaching depth buffer textures to fbo requires WebGL 2")},t.removeDepthBuffer=()=>{if(!e.context){un("you must set the OpenGLRenderWindow before calling removeDepthBuffer");return}if(e._openGLRenderWindow.getWebgl2()){const n=e.context;n.framebufferTexture2D(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.TEXTURE_2D,null,0)}else un("Attaching depth buffer textures to framebuffers requires WebGL 2")},t.getGLFramebuffer=()=>e.glFramebuffer,t.setOpenGLRenderWindow=n=>{e._openGLRenderWindow!==n&&(t.releaseGraphicsResources(),e._openGLRenderWindow=n,e.context=null,n&&(e.context=e._openGLRenderWindow.getContext()))},t.releaseGraphicsResources=()=>{e.glFramebuffer&&e.context.deleteFramebuffer(e.glFramebuffer)},t.getSize=()=>e.glFramebuffer==null?null:[e.glFramebuffer.width,e.glFramebuffer.height],t.populateFramebuffer=()=>{if(!e.context){un("you must set the OpenGLRenderWindow before calling populateFrameBuffer");return}t.bind();const n=e.context,r=aS.newInstance();r.setOpenGLRenderWindow(e._openGLRenderWindow),r.setMinificationFilter(Yk.LINEAR),r.setMagnificationFilter(Yk.LINEAR),r.create2DFromRaw(e.glFramebuffer.width,e.glFramebuffer.height,4,Ar.UNSIGNED_CHAR,null),t.setColorBuffer(r),e.depthTexture=n.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,e.depthTexture),n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,e.glFramebuffer.width,e.glFramebuffer.height),n.framebufferRenderbuffer(n.FRAMEBUFFER,n.DEPTH_ATTACHMENT,n.RENDERBUFFER,e.depthTexture)},t.getColorTexture=()=>e.colorBuffers[0]}const rXe={glFramebuffer:null,colorBuffers:null,depthTexture:null,previousDrawBinding:0,previousReadBinding:0,previousDrawBuffer:0,previousReadBuffer:0,previousActiveFramebuffer:null};function tZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,rXe,n),$o(t,e),e.colorBuffers&&un("you cannot initialize colorBuffers through the constructor. You should call setColorBuffer() instead."),e.colorBuffers=[],Jy(t,e,["colorBuffers"]),nXe(t,e)}const aXe=Uo(tZ,"vtkFramebuffer");var OO={newInstance:aXe,extend:tZ};function iXe(t,e){e.classHierarchy.push("vtkRenderPass"),t.getOperation=()=>e.currentOperation,t.setCurrentOperation=n=>{e.currentOperation=n,e.currentTraverseOperation=`traverse${Q.capitalize(e.currentOperation)}`},t.getTraverseOperation=()=>e.currentTraverseOperation,t.traverse=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;e.deleted||(e._currentParent=r,e.preDelegateOperations.forEach(a=>{t.setCurrentOperation(a),n.traverse(t)}),e.delegates.forEach(a=>{a.traverse(n,t)}),e.postDelegateOperations.forEach(a=>{t.setCurrentOperation(a),n.traverse(t)}))}}const oXe={delegates:[],currentOperation:null,preDelegateOperations:[],postDelegateOperations:[],currentParent:null};function nZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,oXe,n),Q.obj(t,e),Q.get(t,e,["currentOperation"]),Q.setGet(t,e,["delegates","_currentParent","preDelegateOperations","postDelegateOperations"]),Q.moveToProtected(t,e,["currentParent"]),iXe(t,e)}const sXe=Q.newInstance(nZ,"vtkRenderPass");var Ll={newInstance:sXe,extend:nZ};const jg={ARRAY_BUFFER:0,ELEMENT_ARRAY_BUFFER:1,TEXTURE_BUFFER:2};var rZ={ObjectType:jg};const{ObjectType:iS}=rZ,lXe={};function uXe(t,e){e.classHierarchy.push("vtkOpenGLBufferObject");function n(s){switch(s){case iS.ELEMENT_ARRAY_BUFFER:return e.context.ELEMENT_ARRAY_BUFFER;case iS.TEXTURE_BUFFER:if("TEXTURE_BUFFER"in e.context)return e.context.TEXTURE_BUFFER;case iS.ARRAY_BUFFER:default:return e.context.ARRAY_BUFFER}}let r=null,a=null,i=!0,o="";t.getType=()=>r,t.setType=s=>{r=s},t.getHandle=()=>a,t.isReady=()=>i===!1,t.generateBuffer=s=>{const l=n(s);return a===null&&(a=e.context.createBuffer(),r=s),n(r)===l},t.upload=(s,l)=>t.generateBuffer(l)?(e.context.bindBuffer(n(r),a),e.context.bufferData(n(r),s,e.context.STATIC_DRAW),e.allocatedGPUMemoryInBytes=s.length*s.BYTES_PER_ELEMENT,i=!1,!0):(o="Trying to upload array buffer to incompatible buffer.",!1),t.bind=()=>a?(e.context.bindBuffer(n(r),a),!0):!1,t.release=()=>a?(e.context.bindBuffer(n(r),null),!0):!1,t.releaseGraphicsResources=()=>{a!==null&&(e.context.bindBuffer(n(r),null),e.context.deleteBuffer(a),a=null,e.allocatedGPUMemoryInBytes=0)},t.setOpenGLRenderWindow=s=>{e._openGLRenderWindow!==s&&(t.releaseGraphicsResources(),e._openGLRenderWindow=s,e.context=null,s&&(e.context=e._openGLRenderWindow.getContext()))},t.getError=()=>o}const cXe={objectType:iS.ARRAY_BUFFER,context:null,allocatedGPUMemoryInBytes:0};function aZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,cXe,n),Q.obj(t,e),Q.get(t,e,["_openGLRenderWindow","allocatedGPUMemoryInBytes"]),Q.moveToProtected(t,e,["openGLRenderWindow"]),uXe(t,e)}const fXe=Q.newInstance(aZ);var iZ={newInstance:fXe,extend:aZ,...lXe,...rZ};const{vtkErrorMacro:c4}=Q;function dXe(t,e){const n=new Float64Array(3);y9e(n,e);const r=new Float64Array(16);return cX(r,nd(),t,n),r}function hXe(t,e){return t===null||e===null?!1:!(PP(t,[0,0,0])&&PP(e,[1,1,1]))}function vXe(t,e){e.classHierarchy.push("vtkOpenGLCellArrayBufferObject"),t.setType(jg.ARRAY_BUFFER),t.createVBO=function(n,r,a,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;if(!n.getData()||!n.getData().length)return e.elementCount=0,0;e.blockSize=3,e.vertexOffset=0,e.normalOffset=0,e.tCoordOffset=0,e.tCoordComponents=0,e.colorComponents=0,e.colorOffset=0,e.customData=[];const s=i.points.getData();let l=null,u=null,c=null;const f=i.colors?i.colors.getNumberOfComponents():0,d=i.tcoords?i.tcoords.getNumberOfComponents():0;i.normals&&(e.normalOffset=4*e.blockSize,e.blockSize+=3,l=i.normals.getData()),i.customAttributes&&i.customAttributes.forEach(L=>{L&&(e.customData.push({data:L.getData(),offset:4*e.blockSize,components:L.getNumberOfComponents(),name:L.getName()}),e.blockSize+=L.getNumberOfComponents())}),i.tcoords&&(e.tCoordOffset=4*e.blockSize,e.tCoordComponents=d,e.blockSize+=d,u=i.tcoords.getData()),i.colors?(e.colorComponents=i.colors.getNumberOfComponents(),e.colorOffset=0,c=i.colors.getData(),e.colorBO||(e.colorBO=iZ.newInstance()),e.colorBO.setOpenGLRenderWindow(e._openGLRenderWindow)):e.colorBO=null,e.stride=4*e.blockSize;let h=0,p=0,v=0,g=0,y=0,m=0,b;const _={anythingToPoints(L,$,U){for(let j=0;j2)for(let j=0;j2){for(let j=0;j1?(L-1)*2:0},polysToWireframe(L,$){return L>2?L*2:0},stripsToWireframe(L,$){return L>2?L*4-6:0},polysToSurface(L,$){return L>2?(L-2)*3:0},stripsToSurface(L,$,U){return L>2?(L-2)*3:0}};let w=null,C=null;a===Ru.POINTS||r==="verts"?(w=_.anythingToPoints,C=x.anythingToPoints):a===Ru.WIREFRAME||r==="lines"?(w=_[`${r}ToWireframe`],C=x[`${r}ToWireframe`]):(w=_[`${r}ToSurface`],C=x[`${r}ToSurface`]);const T=n.getData(),k=T.length;let E=0;for(let L=0;L0&&(Math.abs(P)/V>1e6||Math.abs(Math.log10(V))>3||V===0&&P>1e6)){const L=new Float64Array(3),$=new Float64Array(3);for(let U=0;U<3;++U){const j=i.points.getRange(U),Y=j[1]-j[0];L[U]=.5*(j[1]+j[0]),$[U]=Y>0?1/Y:1}t.setCoordShiftAndScale(L,$)}else e.coordShiftAndScaleEnabled===!0&&t.setCoordShiftAndScale(null,null);if(o)if(!o.points&&!o.cells)o.points=new Int32Array(E),o.cells=new Int32Array(E);else{const L=new Int32Array(E+o.points.length);L.set(o.points),o.points=L;const $=new Int32Array(E+o.cells.length);$.set(o.cells),o.cells=$}let I=i.vertexOffset;b=function($){if(o&&(o.points[I]=$,o.cells[I]=m+i.cellOffset),++I,h=$*3,e.coordShiftAndScaleEnabled?(D[R++]=(s[h++]-e.coordShift[0])*e.coordScale[0],D[R++]=(s[h++]-e.coordShift[1])*e.coordScale[1],D[R++]=(s[h++]-e.coordShift[2])*e.coordScale[2]):(D[R++]=s[h++],D[R++]=s[h++],D[R++]=s[h++]),l!==null&&(i.haveCellNormals?p=(m+i.cellOffset)*3:p=$*3,D[R++]=l[p++],D[R++]=l[p++],D[R++]=l[p++]),e.customData.forEach(U=>{y=$*U.components;for(let j=0;j{if(n!==null&&(n.constructor!==Float64Array||n.length!==3)){c4("Wrong type for coordShift, expected vec3 or null");return}if(r!==null&&(r.constructor!==Float64Array||r.length!==3)){c4("Wrong type for coordScale, expected vec3 or null");return}(e.coordShift===null||n===null||!FP(n,e.coordShift))&&(e.coordShift=n),(e.coordScale===null||r===null||!FP(r,e.coordScale))&&(e.coordScale=r),e.coordShiftAndScaleEnabled=hXe(e.coordShift,e.coordScale),e.coordShiftAndScaleEnabled?e.inverseShiftAndScaleMatrix=dXe(e.coordShift,e.coordScale):e.inverseShiftAndScaleMatrix=null}}const pXe={elementCount:0,stride:0,colorBOStride:0,vertexOffset:0,normalOffset:0,tCoordOffset:0,tCoordComponents:0,colorOffset:0,colorComponents:0,tcoordBO:null,customData:[],coordShift:null,coordScale:null,coordShiftAndScaleEnabled:!1,inverseShiftAndScaleMatrix:null};function oZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,pXe,n),iZ.extend(t,e,n),Q.setGet(t,e,["colorBO","elementCount","stride","colorBOStride","vertexOffset","normalOffset","tCoordOffset","tCoordComponents","colorOffset","colorComponents","customData"]),Q.get(t,e,["coordShift","coordScale","coordShiftAndScaleEnabled","inverseShiftAndScaleMatrix"]),vXe(t,e)}const gXe=Q.newInstance(oZ);var yXe={newInstance:gXe,extend:oZ};const{vtkErrorMacro:mXe}=Q;function bXe(t,e){e.classHierarchy.push("vtkShader"),t.compile=()=>{let n=e.context.VERTEX_SHADER;if(!e.source||!e.source.length||e.shaderType==="Unknown")return!1;switch(e.handle!==0&&(e.context.deleteShader(e.handle),e.handle=0),e.shaderType){case"Fragment":n=e.context.FRAGMENT_SHADER;break;case"Vertex":default:n=e.context.VERTEX_SHADER;break}if(e.handle=e.context.createShader(n),e.context.shaderSource(e.handle,e.source),e.context.compileShader(e.handle),!e.context.getShaderParameter(e.handle,e.context.COMPILE_STATUS)){const a=e.context.getShaderInfoLog(e.handle);return mXe(`Error compiling shader '${e.source}': ${a}`),e.context.deleteShader(e.handle),e.handle=0,!1}return!0},t.cleanup=()=>{e.shaderType==="Unknown"||e.handle===0||(e.context.deleteShader(e.handle),e.handle=0,e.dirty=!0)}}const SXe={shaderType:"Unknown",source:"",error:"",handle:0,dirty:!1,context:null};function sZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,SXe,n),Q.obj(t,e),Q.setGet(t,e,["shaderType","source","error","handle","context"]),bXe(t,e)}const _Xe=Q.newInstance(sZ,"vtkShader");var wC={newInstance:_Xe,extend:sZ};const{vtkErrorMacro:Ko}=Q;function wXe(t,e,n,r){const a=typeof n=="string"?n:n.join(` `),i=r===!1?e:new RegExp(e,"g"),o=t.replace(i,a);return{replace:o!==a,result:o}}function xXe(t,e){e.classHierarchy.push("vtkShaderProgram"),t.compileShader=()=>e.vertexShader.compile()?e.fragmentShader.compile()?!t.attachShader(e.vertexShader)||!t.attachShader(e.fragmentShader)?(Ko(e.error),0):t.link()?(t.setCompiled(!0),1):(Ko(`Links failed: ${e.error}`),0):(Ko(e.fragmentShader.getSource().split(` `).map((n,r)=>`${r}: ${n}`).join(` `)),Ko(e.fragmentShader.getError()),0):(Ko(e.vertexShader.getSource().split(` `).map((n,r)=>`${r}: ${n}`).join(` `)),Ko(e.vertexShader.getError()),0),t.cleanup=()=>{e.shaderType==="Unknown"||e.handle===0||(t.release(),e.vertexShaderHandle!==0&&(e.context.detachShader(e.handle,e.vertexShaderHandle),e.vertexShaderHandle=0),e.fragmentShaderHandle!==0&&(e.context.detachShader(e.handle,e.fragmentShaderHandle),e.fragmentShaderHandle=0),e.context.deleteProgram(e.handle),e.handle=0,t.setCompiled(!1))},t.bind=()=>!e.linked&&!t.link()?!1:(e.context.useProgram(e.handle),t.setBound(!0),!0),t.isBound=()=>!!e.bound,t.release=()=>{e.context.useProgram(null),t.setBound(!1)},t.setContext=n=>{e.vertexShader.setContext(n),e.fragmentShader.setContext(n),e.geometryShader.setContext(n)},t.link=()=>{if(e.linked)return!0;if(e.handle===0)return e.error="Program has not been initialized, and/or does not have shaders.",!1;if(e.uniformLocs={},e.context.linkProgram(e.handle),!e.context.getProgramParameter(e.handle,e.context.LINK_STATUS)){const r=e.context.getProgramInfoLog(e.handle);return Ko(`Error linking shader ${r}`),e.handle=0,!1}return t.setLinked(!0),e.attributeLocs={},!0},t.setUniformMatrix=(n,r)=>{const a=t.findUniform(n);if(a===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;const i=new Float32Array(r);return e.context.uniformMatrix4fv(a,!1,i),!0},t.setUniformMatrix3x3=(n,r)=>{const a=t.findUniform(n);if(a===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;const i=new Float32Array(r);return e.context.uniformMatrix3fv(a,!1,i),!0},t.setUniformf=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform1f(a,r),!0)},t.setUniformfv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform1fv(a,r),!0)},t.setUniformi=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform1i(a,r),!0)},t.setUniformiv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform1iv(a,r),!0)},t.setUniform2f=(n,r,a)=>{const i=t.findUniform(n);if(i===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;if(a===void 0)throw new RangeError("Invalid number of values for array");return e.context.uniform2f(i,r,a),!0},t.setUniform2fv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform2fv(a,r),!0)},t.setUniform2i=(n,r,a)=>{const i=t.findUniform(n);if(i===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;if(a===void 0)throw new RangeError("Invalid number of values for array");return e.context.uniform2i(i,r,a),!0},t.setUniform2iv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform2iv(a,r),!0)},t.setUniform3f=(n,r,a,i)=>{const o=t.findUniform(n);if(o===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;if(i===void 0)throw new RangeError("Invalid number of values for array");return e.context.uniform3f(o,r,a,i),!0},t.setUniform3fArray=(n,r)=>{const a=t.findUniform(n);if(a===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;if(!Array.isArray(r)||r.length!==3)throw new RangeError("Invalid number of values for array");return e.context.uniform3f(a,r[0],r[1],r[2]),!0},t.setUniform3fv=(n,r)=>{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform3fv(a,r),!0)},t.setUniform3i=function(n){const r=t.findUniform(n);if(r===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform3iv(a,r),!0)},t.setUniform4f=function(n){const r=t.findUniform(n);if(r===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform4fv(a,r),!0)},t.setUniform4i=function(n){const r=t.findUniform(n);if(r===-1)return e.error=`Could not set uniform ${n} . No such uniform.`,!1;for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o{const a=t.findUniform(n);return a===-1?(e.error=`Could not set uniform ${n} . No such uniform.`,!1):(e.context.uniform4iv(a,r),!0)},t.findUniform=n=>{if(!n||!e.linked)return-1;let r=e.uniformLocs[n];return r!==void 0?r:(r=e.context.getUniformLocation(e.handle,n),r===null?(e.error=`Uniform ${n} not found in current shader program.`,e.uniformLocs[n]=-1,-1):(e.uniformLocs[n]=r,r))},t.isUniformUsed=n=>{if(!n)return!1;let r=e.uniformLocs[n];return r!==void 0?r!==null:e.linked?(r=e.context.getUniformLocation(e.handle,n),e.uniformLocs[n]=r,r!==null):(Ko("attempt to find uniform when the shader program is not linked"),!1)},t.isAttributeUsed=n=>{if(!n)return!1;if(n in e.attributeLocs)return!0;if(!e.linked)return Ko("attempt to find uniform when the shader program is not linked"),!1;const r=e.context.getAttribLocation(e.handle,n);return r===-1?!1:(e.attributeLocs[n]=r,!0)},t.attachShader=n=>{if(n.getHandle()===0)return e.error="Shader object was not initialized, cannot attach it.",!1;if(n.getShaderType()==="Unknown")return e.error="Shader object is of type Unknown and cannot be used.",!1;if(e.handle===0){const r=e.context.createProgram();if(r===0)return e.error="Could not create shader program.",!1;e.handle=r,e.linked=!1}return n.getShaderType()==="Vertex"&&(e.vertexShaderHandle!==0&&e.context.detachShader(e.handle,e.vertexShaderHandle),e.vertexShaderHandle=n.getHandle()),n.getShaderType()==="Fragment"&&(e.fragmentShaderHandle!==0&&e.context.detachShader(e.handle,e.fragmentShaderHandle),e.fragmentShaderHandle=n.getHandle()),e.context.attachShader(e.handle,n.getHandle()),t.setLinked(!1),!0},t.detachShader=n=>{if(n.getHandle()===0)return e.error="shader object was not initialized, cannot attach it.",!1;if(n.getShaderType()==="Unknown")return e.error="Shader object is of type Unknown and cannot be used.",!1;switch(e.handle===0&&(e.error="This shader program has not been initialized yet."),n.getShaderType()){case"Vertex":return e.vertexShaderHandle!==n.getHandle()?(e.error="The supplied shader was not attached to this program.",!1):(e.context.detachShader(e.handle,n.getHandle()),e.vertexShaderHandle=0,e.linked=!1,!0);case"Fragment":return e.fragmentShaderHandle!==n.getHandle()?(e.error="The supplied shader was not attached to this program.",!1):(e.context.detachShader(e.handle,n.getHandle()),e.fragmentShaderHandle=0,e.linked=!1,!0);default:return!1}},t.setContext=n=>{e.context=n,e.vertexShader.setContext(n),e.fragmentShader.setContext(n),e.geometryShader.setContext(n)},t.setLastCameraMTime=n=>{e.lastCameraMTime=n}}const CXe={vertexShaderHandle:0,fragmentShaderHandle:0,geometryShaderHandle:0,vertexShader:null,fragmentShader:null,geometryShader:null,linked:!1,bound:!1,compiled:!1,error:"",handle:0,numberOfOutputs:0,attributesLocs:null,uniformLocs:null,md5Hash:0,context:null,lastCameraMTime:null};function lZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,CXe,n),e.attributesLocs={},e.uniformLocs={},e.vertexShader=wC.newInstance(),e.vertexShader.setShaderType("Vertex"),e.fragmentShader=wC.newInstance(),e.fragmentShader.setShaderType("Fragment"),e.geometryShader=wC.newInstance(),e.geometryShader.setShaderType("Geometry"),Q.obj(t,e),Q.get(t,e,["lastCameraMTime"]),Q.setGet(t,e,["error","handle","compiled","bound","md5Hash","vertexShader","fragmentShader","geometryShader","linked"]),xXe(t,e)}const TXe=Q.newInstance(lZ,"vtkShaderProgram");var wa={newInstance:TXe,extend:lZ,substitute:wXe};function EXe(t,e){e.classHierarchy.push("vtkOpenGLVertexArrayObject"),t.exposedMethod=()=>{},t.initialize=()=>{e.instancingExtension=null,e._openGLRenderWindow.getWebgl2()||(e.instancingExtension=e.context.getExtension("ANGLE_instanced_arrays")),!e.forceEmulation&&e._openGLRenderWindow&&e._openGLRenderWindow.getWebgl2()?(e.extension=null,e.supported=!0,e.handleVAO=e.context.createVertexArray()):(e.extension=e.context.getExtension("OES_vertex_array_object"),!e.forceEmulation&&e.extension?(e.supported=!0,e.handleVAO=e.extension.createVertexArrayOES()):e.supported=!1)},t.isReady=()=>e.handleVAO!==0||e.supported===!1,t.bind=()=>{if(t.isReady()||t.initialize(),t.isReady()&&e.supported)e.extension?e.extension.bindVertexArrayOES(e.handleVAO):e.context.bindVertexArray(e.handleVAO);else if(t.isReady()){const n=e.context;for(let r=0;r0&&(e.instancingExtension?e.instancingExtension.vertexAttribDivisorANGLE(o.index+l,1):n.vertexAttribDivisor(o.index+l,1))}}}},t.release=()=>{if(t.isReady()&&e.supported)e.extension?e.extension.bindVertexArrayOES(null):e.context.bindVertexArray(null);else if(t.isReady()){const n=e.context;for(let r=0;r0&&(e.instancingExtension?e.instancingExtension.vertexAttribDivisorANGLE(o.index+l,0):n.vertexAttribDivisor(o.index+l,0)),n.disableVertexAttribArray(o.index+l)}}}},t.shaderProgramChanged=()=>{t.release(),e.handleVAO&&(e.extension?e.extension.deleteVertexArrayOES(e.handleVAO):e.context.deleteVertexArray(e.handleVAO)),e.handleVAO=0,e.handleProgram=0},t.releaseGraphicsResources=()=>{t.shaderProgramChanged(),e.handleVAO&&(e.extension?e.extension.deleteVertexArrayOES(e.handleVAO):e.context.deleteVertexArray(e.handleVAO)),e.handleVAO=0,e.supported=!0,e.handleProgram=0},t.addAttributeArray=(n,r,a,i,o,s,l,u)=>t.addAttributeArrayWithDivisor(n,r,a,i,o,s,l,u,0,!1),t.addAttributeArrayWithDivisor=(n,r,a,i,o,s,l,u,c,f)=>{if(!n||!n.isBound()||r.getHandle()===0||r.getType()!==jg.ARRAY_BUFFER||(e.handleProgram===0&&(e.handleProgram=n.getHandle()),t.isReady()||t.initialize(),!t.isReady()||e.handleProgram!==n.getHandle()))return!1;const d=e.context,h={};if(h.name=a,h.index=d.getAttribLocation(e.handleProgram,a),h.offset=i,h.stride=o,h.type=s,h.size=l,h.normalize=u,h.isMatrix=f,h.divisor=c,h.Index===-1)return!1;if(r.bind(),d.enableVertexAttribArray(h.index),d.vertexAttribPointer(h.index,h.size,h.type,h.normalize,h.stride,h.offset),c>0&&(e.instancingExtension?e.instancingExtension.vertexAttribDivisorANGLE(h.index,1):d.vertexAttribDivisor(h.index,1)),h.buffer=r.getHandle(),!e.supported){let p=!1;for(let v=0;v{const f=t.addAttributeArrayWithDivisor(n,r,a,i,o,s,l,u,c,!0);if(!f)return f;const d=e.context,h=d.getAttribLocation(e.handleProgram,a);for(let p=1;p0&&(e.instancingExtension?e.instancingExtension.vertexAttribDivisorANGLE(h+p,1):d.vertexAttribDivisor(h+p,1));return!0},t.removeAttributeArray=n=>{if(!t.isReady()||e.handleProgram===0)return!1;if(!e.supported)for(let r=0;r{e._openGLRenderWindow!==n&&(t.releaseGraphicsResources(),e._openGLRenderWindow=n,e.context=null,n&&(e.context=e._openGLRenderWindow.getContext()))}}const MXe={forceEmulation:!1,handleVAO:0,handleProgram:0,supported:!0,buffers:null,context:null};function uZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,MXe,n),e.buffers=[],Q.obj(t,e),Q.get(t,e,["supported"]),Q.setGet(t,e,["forceEmulation"]),EXe(t,e)}const kXe=Q.newInstance(uZ,"vtkOpenGLVertexArrayObject");var cZ={newInstance:kXe,extend:uZ};const ru={Start:0,Points:0,Lines:1,Tris:2,TriStrips:3,TrisEdges:4,TriStripsEdges:5,End:6};function DXe(t,e){e.classHierarchy.push("vtkOpenGLHelper"),t.setOpenGLRenderWindow=n=>{e.context=n.getContext(),e.program.setContext(e.context),e.VAO.setOpenGLRenderWindow(n),e.CABO.setOpenGLRenderWindow(n)},t.releaseGraphicsResources=n=>{e.VAO.releaseGraphicsResources(),e.CABO.releaseGraphicsResources(),e.CABO.setElementCount(0)},t.drawArrays=(n,r,a,i)=>{if(e.CABO.getElementCount()){const o=t.getOpenGLMode(a),s=t.haveWideLines(n,r),l=e.context,u=l.getParameter(l.DEPTH_WRITEMASK);e.pointPicking&&l.depthMask(!1),o===l.LINES&&s?(t.updateShaders(n,r,i),l.drawArraysInstanced(o,0,e.CABO.getElementCount(),2*Math.ceil(r.getProperty().getLineWidth()))):(l.lineWidth(r.getProperty().getLineWidth()),t.updateShaders(n,r,i),l.drawArrays(o,0,e.CABO.getElementCount()),l.lineWidth(1));const f=(o===l.POINTS?1:0)||(o===l.LINES?2:3);return e.pointPicking&&l.depthMask(u),e.CABO.getElementCount()/f}return 0},t.getOpenGLMode=n=>{if(e.pointPicking)return e.context.POINTS;const r=e.primitiveType;return n===Ru.POINTS||r===ru.Points?e.context.POINTS:n===Ru.WIREFRAME||r===ru.Lines||r===ru.TrisEdges||r===ru.TriStripsEdges?e.context.LINES:e.context.TRIANGLES},t.haveWideLines=(n,r)=>r.getProperty().getLineWidth()>1?!(e.CABO.getOpenGLRenderWindow()&&e.CABO.getOpenGLRenderWindow().getHardwareMaximumLineWidth()>=r.getProperty().getLineWidth()):!1,t.getNeedToRebuildShaders=(n,r,a)=>!!(a.getNeedToRebuildShaders(t,n,r)||t.getProgram()===0||t.getShaderSourceTime().getMTime(){if(t.getNeedToRebuildShaders(n,r,a)){const i={Vertex:null,Fragment:null,Geometry:null};a.buildShaders(i,n,r);const o=e.CABO.getOpenGLRenderWindow().getShaderCache().readyShaderProgramArray(i.Vertex,i.Fragment,i.Geometry);o!==t.getProgram()&&(t.setProgram(o),t.getVAO().releaseGraphicsResources()),t.getShaderSourceTime().modified()}else e.CABO.getOpenGLRenderWindow().getShaderCache().readyShaderProgram(t.getProgram());t.getVAO().bind(),a.setMapperShaderParameters(t,n,r),a.setPropertyShaderParameters(t,n,r),a.setCameraShaderParameters(t,n,r),a.setLightingShaderParameters(t,n,r),a.invokeShaderCallbacks(t,n,r)},t.setMapperShaderParameters=(n,r,a)=>{if(t.haveWideLines(n,r)){t.getProgram().setUniform2f("viewportSize",a.usize,a.vsize);const i=parseFloat(r.getProperty().getLineWidth()),o=i/2;t.getProgram().setUniformf("lineWidthStepSize",i/Math.ceil(i)),t.getProgram().setUniformf("halfLineWidth",o)}e.primitiveType===ru.Points||r.getProperty().getRepresentation()===Ru.POINTS?t.getProgram().setUniformf("pointSize",r.getProperty().getPointSize()):e.pointPicking&&t.getProgram().setUniformf("pointSize",t.getPointPickingPrimitiveSize())},t.replaceShaderPositionVC=(n,r,a)=>{let i=n.Vertex;i=wa.substitute(i,"//VTK::PositionVC::Dec",["//VTK::PositionVC::Dec","uniform float pointSize;"]).result,i=wa.substitute(i,"//VTK::PositionVC::Impl",["//VTK::PositionVC::Impl"," gl_PointSize = pointSize;"],!1).result,t.getOpenGLMode(a.getProperty().getRepresentation())===e.context.LINES&&t.haveWideLines(r,a)&&(i=wa.substitute(i,"//VTK::PositionVC::Dec",["//VTK::PositionVC::Dec","uniform vec2 viewportSize;","uniform float lineWidthStepSize;","uniform float halfLineWidth;"]).result,i=wa.substitute(i,"//VTK::PositionVC::Impl",["//VTK::PositionVC::Impl"," if (halfLineWidth > 0.0)"," {"," float offset = float(gl_InstanceID / 2) * lineWidthStepSize - halfLineWidth;"," vec4 tmpPos = gl_Position;"," vec3 tmpPos2 = tmpPos.xyz / tmpPos.w;"," tmpPos2.x = tmpPos2.x + 2.0 * mod(float(gl_InstanceID), 2.0) * offset / viewportSize[0];"," tmpPos2.y = tmpPos2.y + 2.0 * mod(float(gl_InstanceID + 1), 2.0) * offset / viewportSize[1];"," gl_Position = vec4(tmpPos2.xyz * tmpPos.w, tmpPos.w);"," }"]).result),n.Vertex=i},t.getPointPickingPrimitiveSize=()=>e.primitiveType===ru.Points?2:e.primitiveType===ru.Lines?4:6,t.getAllocatedGPUMemoryInBytes=()=>t.getCABO().getAllocatedGPUMemoryInBytes()}const RXe={context:null,program:null,shaderSourceTime:null,VAO:null,attributeUpdateTime:null,CABO:null,primitiveType:0,pointPicking:!1};function fZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,RXe,n),Q.obj(t,e),e.shaderSourceTime={},Q.obj(e.shaderSourceTime),e.attributeUpdateTime={},Q.obj(e.attributeUpdateTime),Q.setGet(t,e,["program","shaderSourceTime","VAO","attributeUpdateTime","CABO","primitiveType","pointPicking"]),e.program=wa.newInstance(),e.VAO=cZ.newInstance(),e.CABO=yXe.newInstance(),DXe(t,e)}const LXe=Q.newInstance(fZ);var AXe={newInstance:LXe,extend:fZ,primTypes:ru};const{Representation:OXe}=mx,{vtkErrorMacro:f4}=Q;function NXe(t){const e=wa.substitute(t.Fragment,"//VTK::RenderPassFragmentShader::Impl",` float weight = gl_FragData[0].a * pow(max(1.1 - gl_FragCoord.z, 0.0), 2.0); gl_FragData[0] = vec4(gl_FragData[0].rgb*weight, gl_FragData[0].a); gl_FragData[1].r = weight; `,!1);t.Fragment=e.result}const $Xe=`//VTK::System::Dec in vec2 tcoord; uniform sampler2D translucentRTexture; uniform sampler2D translucentRGBATexture; // the output of this shader //VTK::Output::Dec void main() { vec4 t1Color = texture(translucentRGBATexture, tcoord); float t2Color = texture(translucentRTexture, tcoord).r; gl_FragData[0] = vec4(t1Color.rgb/max(t2Color,0.01), 1.0 - t1Color.a); } `;function IXe(t,e){e.classHierarchy.push("vtkOpenGLOrderIndependentTranslucentPass"),t.createVertexBuffer=()=>{const n=new Float32Array([-1,-1,-1,1,-1,-1,-1,1,-1,1,1,-1]),r=new Float32Array([0,0,1,0,0,1,1,1]),a=new Uint16Array([4,0,1,3,2]),i=Kn.newInstance({numberOfComponents:3,values:n});i.setName("points");const o=Kn.newInstance({numberOfComponents:2,values:r});o.setName("tcoords");const s=Kn.newInstance({numberOfComponents:1,values:a});e.tris.getCABO().createVBO(s,"polys",OXe.SURFACE,{points:i,tcoords:o,cellOffset:0}),e.VBOBuildTime.modified()},t.createFramebuffer=n=>{const r=n.getSize(),a=n.getContext();e.framebuffer=OO.newInstance(),e.framebuffer.setOpenGLRenderWindow(n),e.framebuffer.create(...r),e.framebuffer.saveCurrentBindingsAndBuffers(),e.framebuffer.bind(),e.translucentRGBATexture=aS.newInstance(),e.translucentRGBATexture.setInternalFormat(a.RGBA16F),e.translucentRGBATexture.setFormat(a.RGBA),e.translucentRGBATexture.setOpenGLDataType(a.HALF_FLOAT),e.translucentRGBATexture.setOpenGLRenderWindow(n),e.translucentRGBATexture.create2DFromRaw(r[0],r[1],4,"Float32Array",null),e.translucentRTexture=aS.newInstance(),e.translucentRTexture.setInternalFormat(a.R16F),e.translucentRTexture.setFormat(a.RED),e.translucentRTexture.setOpenGLDataType(a.HALF_FLOAT),e.translucentRTexture.setOpenGLRenderWindow(n),e.translucentRTexture.create2DFromRaw(r[0],r[1],1,"Float32Array",null),e.translucentZTexture=aS.newInstance(),e.translucentZTexture.setOpenGLRenderWindow(n),e.translucentZTexture.createDepthFromRaw(r[0],r[1],"Float32Array",null),e.framebuffer.setColorBuffer(e.translucentRGBATexture,0),e.framebuffer.setColorBuffer(e.translucentRTexture,1),e.framebuffer.setDepthBuffer(e.translucentZTexture)},t.createCopyShader=n=>{e.copyShader=n.getShaderCache().readyShaderProgramArray(["//VTK::System::Dec","attribute vec4 vertexDC;","attribute vec2 tcoordTC;","varying vec2 tcoord;","void main() { tcoord = tcoordTC; gl_Position = vertexDC; }"].join(` `),$Xe,"")},t.createVBO=n=>{const r=n.getContext();e.tris.setOpenGLRenderWindow(n),t.createVertexBuffer();const a=e.copyShader;e.tris.getCABO().bind(),e.copyVAO.addAttributeArray(a,e.tris.getCABO(),"vertexDC",e.tris.getCABO().getVertexOffset(),e.tris.getCABO().getStride(),r.FLOAT,3,r.FALSE)||f4("Error setting vertexDC in copy shader VAO."),e.copyVAO.addAttributeArray(a,e.tris.getCABO(),"tcoordTC",e.tris.getCABO().getTCoordOffset(),e.tris.getCABO().getStride(),r.FLOAT,2,r.FALSE)||f4("Error setting vertexDC in copy shader VAO.")},t.traverse=(n,r,a)=>{if(e.deleted)return;const i=n.getSize(),o=n.getContext();if(e._supported=!1,r.getSelector()||!o||!n.getWebgl2()||!o.getExtension("EXT_color_buffer_half_float")&&!o.getExtension("EXT_color_buffer_float")){t.setCurrentOperation("translucentPass"),r.traverse(t);return}if(e._supported=!0,e.framebuffer===null)t.createFramebuffer(n);else{const s=e.framebuffer.getSize();s===null||s[0]!==i[0]||s[1]!==i[1]?(e.framebuffer.releaseGraphicsResources(),e.translucentRGBATexture.releaseGraphicsResources(n),e.translucentRTexture.releaseGraphicsResources(n),e.translucentZTexture.releaseGraphicsResources(n),t.createFramebuffer(n)):(e.framebuffer.saveCurrentBindingsAndBuffers(),e.framebuffer.bind())}o.drawBuffers([o.COLOR_ATTACHMENT0]),o.clearBufferfv(o.COLOR,0,[0,0,0,0]),o.clearBufferfv(o.DEPTH,0,[1]),o.colorMask(!1,!1,!1,!1),a.getOpaqueActorCount()>0&&(a.setCurrentOperation("opaqueZBufferPass"),r.traverse(a)),o.colorMask(!0,!0,!0,!0),o.drawBuffers([o.COLOR_ATTACHMENT0,o.COLOR_ATTACHMENT1]),o.viewport(0,0,i[0],i[1]),o.scissor(0,0,i[0],i[1]),o.clearBufferfv(o.COLOR,0,[0,0,0,1]),o.clearBufferfv(o.COLOR,1,[0,0,0,0]),o.enable(o.DEPTH_TEST),o.enable(o.BLEND),o.blendFuncSeparate(o.ONE,o.ONE,o.ZERO,o.ONE_MINUS_SRC_ALPHA),t.setCurrentOperation("translucentPass"),r.traverse(t),o.drawBuffers([o.NONE]),e.framebuffer.restorePreviousBindingsAndBuffers(),e.copyShader===null?t.createCopyShader(n):n.getShaderCache().readyShaderProgram(e.copyShader),e.copyVAO||(e.copyVAO=cZ.newInstance(),e.copyVAO.setOpenGLRenderWindow(n)),e.copyVAO.bind(),e.VBOBuildTime.getMTime()e._supported?NXe:null,t.releaseGraphicsResources=n=>{e.framebuffer&&(e.framebuffer.releaseGraphicsResources(n),e.framebuffer=null),e.translucentRGBATexture&&(e.translucentRGBATexture.releaseGraphicsResources(n),e.translucentRGBATexture=null),e.translucentRTexture&&(e.translucentRTexture.releaseGraphicsResources(n),e.translucentRTexture=null),e.translucentZTexture&&(e.translucentZTexture.releaseGraphicsResources(n),e.translucentZTexture=null),e.copyVAO&&(e.copyVAO.releaseGraphicsResources(n),e.copyVAO=null),e.copyShader&&(e.copyShader.releaseGraphicsResources(n),e.copyShader=null),e.tris&&(e.tris.releaseGraphicsResources(n),e.tris=null),t.modified()}}const BXe={framebuffer:null,copyShader:null,tris:null};function dZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,BXe,n),Ll.extend(t,e,n),e.VBOBuildTime={},Q.obj(e.VBOBuildTime,{mtime:0}),e.tris=AXe.newInstance(),Q.get(t,e,["framebuffer"]),IXe(t,e)}const VXe=Q.newInstance(dZ,"vtkOpenGLOrderIndependentTranslucentPass");var PXe={newInstance:VXe,extend:dZ};function FXe(t,e){e.classHierarchy.push("vtkForwardPass"),t.traverse=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(e.deleted)return;e._currentParent=r,t.setCurrentOperation("buildPass"),n.traverse(t);const a=n.getRenderable().getNumberOfLayers(),i=n.getChildren();for(let o=0;o0||e.translucentActorCount>0)&&e.volumeCount>0||e.depthRequested){const c=n.getFramebufferSize();e.framebuffer===null&&(e.framebuffer=OO.newInstance()),e.framebuffer.setOpenGLRenderWindow(n),e.framebuffer.saveCurrentBindingsAndBuffers();const f=e.framebuffer.getSize();(f===null||f[0]!==c[0]||f[1]!==c[1])&&(e.framebuffer.create(c[0],c[1]),e.framebuffer.populateFramebuffer()),e.framebuffer.bind(),t.setCurrentOperation("zBufferPass"),l.traverse(t),e.framebuffer.restorePreviousBindingsAndBuffers(),e.depthRequested=!1}t.setCurrentOperation("cameraPass"),l.traverse(t),e.opaqueActorCount>0&&(t.setCurrentOperation("opaquePass"),l.traverse(t)),e.translucentActorCount>0&&(e.translucentPass||(e.translucentPass=PXe.newInstance()),e.translucentPass.traverse(n,l,t)),e.volumeCount>0&&(t.setCurrentOperation("volumePass"),l.traverse(t)),e.overlayActorCount>0&&(t.setCurrentOperation("overlayPass"),l.traverse(t))}}},t.getZBufferTexture=()=>e.framebuffer?e.framebuffer.getColorTexture():null,t.requestDepth=()=>{e.depthRequested=!0},t.incrementOpaqueActorCount=()=>e.opaqueActorCount++,t.incrementTranslucentActorCount=()=>e.translucentActorCount++,t.incrementVolumeCount=()=>e.volumeCount++,t.incrementOverlayActorCount=()=>e.overlayActorCount++}const zXe={opaqueActorCount:0,translucentActorCount:0,volumeCount:0,overlayActorCount:0,framebuffer:null,depthRequested:!1};function hZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,zXe,n),Ll.extend(t,e,n),Q.get(t,e,["framebuffer","opaqueActorCount","translucentActorCount","volumeCount"]),FXe(t,e)}const GXe=Q.newInstance(hZ,"vtkForwardPass");var HXe={newInstance:GXe,extend:hZ};const{FieldAssociations:UXe}=ep;function WXe(t,e){e.classHierarchy.push("vtkHardwareSelector"),t.getSourceDataAsync=async(n,r,a,i,o)=>{},t.selectAsync=async(n,r,a,i,o)=>{const s=await t.getSourceDataAsync(n,r,a,i,o);return s?s.generateSelection(r,a,i,o):[]}}const jXe={fieldAssociation:UXe.FIELD_ASSOCIATION_CELLS,captureZValues:!1};function vZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,jXe,n),Q.obj(t,e),Q.setGet(t,e,["fieldAssociation","captureZValues"]),WXe(t,e)}const KXe=Q.newInstance(vZ,"vtkHardwareSelector");var pZ={newInstance:KXe,extend:vZ};const YXe={GLOBALIDS:0,PEDIGREEIDS:1,VALUES:2,INDICES:3,FRUSTUM:4,LOCATIONS:5,THRESHOLDS:6,BLOCKS:7,QUERY:8},XXe={CELL:0,POINT:1,FIELD:2,VERTEX:3,EDGE:4,ROW:5};var qXe={SelectionContent:YXe,SelectionField:XXe};function ZXe(t,e){e.classHierarchy.push("vtkSelectionNode"),t.getBounds=()=>e.points.getBounds()}const QXe={contentType:-1,fieldType:-1,properties:null,selectionList:[]};function gZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,QXe,n),Q.obj(t,e),e.properties={},Q.setGet(t,e,["contentType","fieldType","properties","selectionList"]),ZXe(t,e)}const JXe=Q.newInstance(gZ,"vtkSelectionNode");var _x={newInstance:JXe,extend:gZ,...qXe};const{PassTypes:mr}=Uq,{SelectionContent:eqe,SelectionField:d4}=_x,{FieldAssociations:Kg}=ep,{vtkErrorMacro:yZ}=Q,pu=1;function mZ(t){return`${t.propID} ${t.compositeID}`}function bZ(t,e,n,r){if(!n)return 0;const a=(e*(r[2]-r[0]+1)+t)*4;return n[a+3]}function rl(t,e,n,r){if(!n)return 0;const a=(e*(r[2]-r[0]+1)+t)*4,i=n[a],o=n[a+1];return(n[a+2]*256+o)*256+i}function SZ(t,e){let n=e;return n<<=24,n|=t,n}function dh(t,e,n,r){const a=n<0?0:n;if(a===0){if(r[0]=e[0],r[1]=e[1],e[0]t.area[2]||e[1]t.area[3])return null;const l=[e[0]-t.area[0],e[1]-t.area[1]],u=rl(l[0],l[1],t.pixBuffer[mr.ACTOR_PASS],t.area);if(u<=0||u-pu>=t.props.length)return null;const c={};c.valid=!0,c.propID=u-pu,c.prop=t.props[c.propID];let f=rl(l[0],l[1],t.pixBuffer[mr.COMPOSITE_INDEX_PASS],t.area);if((f<0||f>16777215)&&(f=0),c.compositeID=f-pu,t.captureZValues){const p=(l[1]*(t.area[2]-t.area[0]+1)+l[0])*4;c.zValue=(256*t.zBuffer[p]+t.zBuffer[p+1])/65535,c.displayPosition=e}if(t.pixBuffer[mr.ID_LOW24]&&bZ(l[0],l[1],t.pixBuffer[mr.ID_LOW24],t.area)===0)return c;const d=rl(l[0],l[1],t.pixBuffer[mr.ID_LOW24],t.area),h=rl(l[0],l[1],t.pixBuffer[mr.ID_HIGH24],t.area);return c.attributeID=SZ(d,h),c}const i=[e[0],e[1]],o=[0,0];let s=dh(t,e,0,r);if(s&&s.valid)return s;for(let l=1;ll?i[1]-l:0;u<=i[1]+l;++u)if(o[1]=u,i[0]>=l&&(o[0]=i[0]-l,s=dh(t,o,0,r),s&&s.valid)||(o[0]=i[0]+l,s=dh(t,o,0,r),s&&s.valid))return s;for(let u=i[0]>=l?i[0]-(l-1):0;u<=i[0]+(l-1);++u)if(o[0]=u,i[1]>=l&&(o[1]=i[1]-l,s=dh(t,o,0,r),s&&s.valid)||(o[1]=i[1]+l,s=dh(t,o,0,r),s&&s.valid))return s}return r[0]=e[0],r[1]=e[1],null}function _Z(t,e,n,r,a){const i=[];let o=0;return e.forEach((s,l)=>{const u=_x.newInstance();switch(u.setContentType(eqe.INDICES),t){case Kg.FIELD_ASSOCIATION_CELLS:u.setFieldType(d4.CELL);break;case Kg.FIELD_ASSOCIATION_POINTS:u.setFieldType(d4.POINT);break;default:yZ("Unknown field association")}u.getProperties().propID=s.info.propID,u.getProperties().prop=s.info.prop,u.getProperties().compositeID=s.info.compositeID,u.getProperties().attributeID=s.info.attributeID,u.getProperties().pixelCount=s.pixelCount,n&&(u.getProperties().displayPosition=[s.info.displayPosition[0],s.info.displayPosition[1],s.info.zValue],u.getProperties().worldPosition=a.displayToWorld(s.info.displayPosition[0],s.info.displayPosition[1],s.info.zValue,r)),u.setSelectionList(s.attributeIDs),i[o]=u,o++}),i}function tqe(t,e,n,r,a){const i=Math.floor(e),o=Math.floor(n),s=Math.floor(r),l=Math.floor(a),u=new Map,c=[0,0];for(let f=o;f<=l;f++)for(let d=i;d<=s;d++){const p=dh(t,[d,f],0,c);if(p&&p.valid){const v=mZ(p);if(!u.has(v))u.set(v,{info:p,pixelCount:1,attributeIDs:[p.attributeID]});else{const g=u.get(v);g.pixelCount++,t.captureZValues&&p.zValue{e.rawPixBuffer=[],e.pixBuffer=[],e.zBuffer=null},t.beginSelection=()=>{e._openGLRenderer=e._openGLRenderWindow.getViewNodeFor(e._renderer),e.maxAttributeId=0;const r=e._openGLRenderWindow.getSize();if(!e.framebuffer)e.framebuffer=OO.newInstance(),e.framebuffer.setOpenGLRenderWindow(e._openGLRenderWindow),e.framebuffer.saveCurrentBindingsAndBuffers(),e.framebuffer.create(r[0],r[1]),e.framebuffer.populateFramebuffer();else{e.framebuffer.setOpenGLRenderWindow(e._openGLRenderWindow),e.framebuffer.saveCurrentBindingsAndBuffers();const a=e.framebuffer.getSize();!a||a[0]!==r[0]||a[1]!==r[1]?(e.framebuffer.create(r[0],r[1]),e.framebuffer.populateFramebuffer()):e.framebuffer.bind()}if(e._openGLRenderer.clear(),e._openGLRenderer.setSelector(t),e.hitProps={},e.propPixels={},e.props=[],t.releasePixBuffers(),e.fieldAssociation===Kg.FIELD_ASSOCIATION_POINTS){const a=e._openGLRenderWindow.getContext(),i=a.isEnabled(a.BLEND);a.disable(a.BLEND),e._openGLRenderWindow.traverseAllPasses(),i&&a.enable(a.BLEND)}},t.endSelection=()=>{e.hitProps={},e._openGLRenderer.setSelector(null),e.framebuffer.restorePreviousBindingsAndBuffers()},t.preCapturePass=()=>{const r=e._openGLRenderWindow.getContext();e.originalBlending=r.isEnabled(r.BLEND),r.disable(r.BLEND)},t.postCapturePass=()=>{const r=e._openGLRenderWindow.getContext();e.originalBlending&&r.enable(r.BLEND)},t.select=()=>{let r=null;return t.captureBuffers()&&(r=t.generateSelection(e.area[0],e.area[1],e.area[2],e.area[3]),t.releasePixBuffers()),r},t.getSourceDataAsync=async(r,a,i,o,s)=>{if(e._renderer=r,a===void 0){const u=e._openGLRenderWindow.getSize();t.setArea(0,0,u[0]-1,u[1]-1)}else t.setArea(a,i,o,s);if(!t.captureBuffers())return!1;const l={area:[...e.area],pixBuffer:[...e.pixBuffer],captureZValues:e.captureZValues,zBuffer:e.zBuffer,props:[...e.props],fieldAssociation:e.fieldAssociation,renderer:r,openGLRenderWindow:e._openGLRenderWindow};return l.generateSelection=function(){for(var u=arguments.length,c=new Array(u),f=0;f{if(!e._renderer||!e._openGLRenderWindow)return yZ("Renderer and view must be set before calling Select."),!1;e._openGLRenderer=e._openGLRenderWindow.getViewNodeFor(e._renderer),e._openGLRenderWindow.getRenderable().preRender(),t.invokeEvent({type:"StartEvent"}),e.originalBackground=e._renderer.getBackgroundByReference(),e._renderer.setBackground(0,0,0,0);const r=e._openGLRenderWindow.getRenderPasses();for(t.beginSelection(),e.currentPass=mr.MIN_KNOWN_PASS;e.currentPass<=mr.MAX_KNOWN_PASS;e.currentPass++)t.passRequired(e.currentPass)&&(t.preCapturePass(e.currentPass),e.captureZValues&&e.currentPass===mr.ACTOR_PASS&&typeof r[0].requestDepth=="function"&&typeof r[0].getFramebuffer=="function"&&r[0].requestDepth(),e._openGLRenderWindow.traverseAllPasses(),t.postCapturePass(e.currentPass),t.savePixelBuffer(e.currentPass),t.processPixelBuffers());return t.endSelection(),e._renderer.setBackground(e.originalBackground),t.invokeEvent({type:"EndEvent"}),!0},t.processPixelBuffers=()=>{e.props.forEach((r,a)=>{t.isPropHit(a)&&r.processSelectorPixelBuffers(t,e.propPixels[a])})},t.passRequired=r=>{if(r===mr.ID_HIGH24){if(e.fieldAssociation===Kg.FIELD_ASSOCIATION_POINTS)return e.maximumPointId>16777215;if(e.fieldAssociation===Kg.FIELD_ASSOCIATION_CELLS)return e.maximumCellId>16777215}return!0},t.savePixelBuffer=r=>{if(e.pixBuffer[r]=e._openGLRenderWindow.getPixelData(e.area[0],e.area[1],e.area[2],e.area[3]),!e.rawPixBuffer[r]){const a=(e.area[2]-e.area[0]+1)*(e.area[3]-e.area[1]+1)*4;e.rawPixBuffer[r]=new Uint8Array(a),e.rawPixBuffer[r].set(e.pixBuffer[r])}if(r===mr.ACTOR_PASS){if(e.captureZValues){const a=e._openGLRenderWindow.getRenderPasses();if(typeof a[0].requestDepth=="function"&&typeof a[0].getFramebuffer=="function"){const i=a[0].getFramebuffer();i.saveCurrentBindingsAndBuffers(),i.bind(),e.zBuffer=e._openGLRenderWindow.getPixelData(e.area[0],e.area[1],e.area[2],e.area[3]),i.restorePreviousBindingsAndBuffers()}}t.buildPropHitList(e.rawPixBuffer[r])}},t.buildPropHitList=r=>{let a=0;for(let i=0;i<=e.area[3]-e.area[1];i++)for(let o=0;o<=e.area[2]-e.area[0];o++){let s=rl(o,i,r,e.area);s>0&&(s--,s in e.hitProps||(e.hitProps[s]=!0,e.propPixels[s]=[]),e.propPixels[s].push(a*4)),++a}},t.renderProp=r=>{e.currentPass===mr.ACTOR_PASS&&(t.setPropColorValueFromInt(e.props.length+pu),e.props.push(r))},t.renderCompositeIndex=r=>{e.currentPass===mr.COMPOSITE_INDEX_PASS&&t.setPropColorValueFromInt(r+pu)},t.renderAttributeId=r=>{r<0||(e.maxAttributeId=r>e.maxAttributeId?r:e.maxAttributeId)},t.passTypeToString=r=>Q.enumToString(mr,r),t.isPropHit=r=>!!e.hitProps[r],t.setPropColorValueFromInt=r=>{e.propColorValue[0]=r%256/255,e.propColorValue[1]=Math.floor(r/256)%256/255,e.propColorValue[2]=Math.floor(r/65536)%256/255},t.getPixelInformation=(r,a,i)=>{const o=a<0?0:a;if(o===0){if(i[0]=r[0],i[1]=r[1],r[0]e.area[2]||r[1]e.area[3])return null;const c=[r[0]-e.area[0],r[1]-e.area[1]],f=rl(c[0],c[1],e.pixBuffer[mr.ACTOR_PASS],e.area);if(f<=0||f-pu>=e.props.length)return null;const d={};d.valid=!0,d.propID=f-pu,d.prop=e.props[d.propID];let h=rl(c[0],c[1],e.pixBuffer[mr.COMPOSITE_INDEX_PASS],e.area);if((h<0||h>16777215)&&(h=0),d.compositeID=h-pu,e.captureZValues){const g=(c[1]*(e.area[2]-e.area[0]+1)+c[0])*4;d.zValue=(256*e.zBuffer[g]+e.zBuffer[g+1])/65535,d.displayPosition=r}if(e.pixBuffer[mr.ID_LOW24]&&bZ(c[0],c[1],e.pixBuffer[mr.ID_LOW24],e.area)===0)return d;const p=rl(c[0],c[1],e.pixBuffer[mr.ID_LOW24],e.area),v=rl(c[0],c[1],e.pixBuffer[mr.ID_HIGH24],e.area);return d.attributeID=SZ(p,v),d}const s=[r[0],r[1]],l=[0,0];let u=t.getPixelInformation(r,0,i);if(u&&u.valid)return u;for(let c=1;cc?s[1]-c:0;f<=s[1]+c;++f)if(l[1]=f,s[0]>=c&&(l[0]=s[0]-c,u=t.getPixelInformation(l,0,i),u&&u.valid)||(l[0]=s[0]+c,u=t.getPixelInformation(l,0,i),u&&u.valid))return u;for(let f=s[0]>=c?s[0]-(c-1):0;f<=s[0]+(c-1);++f)if(l[0]=f,s[1]>=c&&(l[1]=s[1]-c,u=t.getPixelInformation(l,0,i),u&&u.valid)||(l[1]=s[1]+c,u=t.getPixelInformation(l,0,i),u&&u.valid))return u}return i[0]=r[0],i[1]=r[1],null},t.generateSelection=(r,a,i,o)=>{const s=Math.floor(r),l=Math.floor(a),u=Math.floor(i),c=Math.floor(o),f=new Map,d=[0,0];for(let h=l;h<=c;h++)for(let p=s;p<=u;p++){const v=[p,h],g=t.getPixelInformation(v,0,d);if(g&&g.valid){const y=mZ(g);if(!f.has(y))f.set(y,{info:g,pixelCount:1,attributeIDs:[g.attributeID]});else{const m=f.get(y);m.pixelCount++,e.captureZValues&&g.zValuee.rawPixBuffer[r],t.getPixelBuffer=r=>e.pixBuffer[r],t.attach=(r,a)=>{e._openGLRenderWindow=r,e._renderer=a};const n=t.setArea;t.setArea=function(){return n(...arguments)?(e.area[0]=Math.floor(e.area[0]),e.area[1]=Math.floor(e.area[1]),e.area[2]=Math.floor(e.area[2]),e.area[3]=Math.floor(e.area[3]),!0):!1}}const rqe={area:void 0,currentPass:-1,propColorValue:null,props:null,maximumPointId:0,maximumCellId:0,idOffset:1};function wZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,rqe,n),pZ.extend(t,e,n),e.propColorValue=[0,0,0],e.props=[],e.area||(e.area=[0,0,0,0]),Q.setGetArray(t,e,["area"],4),Q.setGet(t,e,["_renderer","currentPass","_openGLRenderWindow","maximumPointId","maximumCellId"]),Q.setGetArray(t,e,["propColorValue"],3),Q.moveToProtected(t,e,["renderer","openGLRenderWindow"]),Q.event(t,e,"event"),nqe(t,e)}const aqe=Q.newInstance(wZ,"vtkOpenGLHardwareSelector");var xZ={newInstance:aqe,extend:wZ,...Uq},CZ={exports:{}};(function(t,e){(function(n){t.exports=n()})(function(n){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function a(y,m){var b=y[0],_=y[1],x=y[2],w=y[3];b+=(_&x|~_&w)+m[0]-680876936|0,b=(b<<7|b>>>25)+_|0,w+=(b&_|~b&x)+m[1]-389564586|0,w=(w<<12|w>>>20)+b|0,x+=(w&b|~w&_)+m[2]+606105819|0,x=(x<<17|x>>>15)+w|0,_+=(x&w|~x&b)+m[3]-1044525330|0,_=(_<<22|_>>>10)+x|0,b+=(_&x|~_&w)+m[4]-176418897|0,b=(b<<7|b>>>25)+_|0,w+=(b&_|~b&x)+m[5]+1200080426|0,w=(w<<12|w>>>20)+b|0,x+=(w&b|~w&_)+m[6]-1473231341|0,x=(x<<17|x>>>15)+w|0,_+=(x&w|~x&b)+m[7]-45705983|0,_=(_<<22|_>>>10)+x|0,b+=(_&x|~_&w)+m[8]+1770035416|0,b=(b<<7|b>>>25)+_|0,w+=(b&_|~b&x)+m[9]-1958414417|0,w=(w<<12|w>>>20)+b|0,x+=(w&b|~w&_)+m[10]-42063|0,x=(x<<17|x>>>15)+w|0,_+=(x&w|~x&b)+m[11]-1990404162|0,_=(_<<22|_>>>10)+x|0,b+=(_&x|~_&w)+m[12]+1804603682|0,b=(b<<7|b>>>25)+_|0,w+=(b&_|~b&x)+m[13]-40341101|0,w=(w<<12|w>>>20)+b|0,x+=(w&b|~w&_)+m[14]-1502002290|0,x=(x<<17|x>>>15)+w|0,_+=(x&w|~x&b)+m[15]+1236535329|0,_=(_<<22|_>>>10)+x|0,b+=(_&w|x&~w)+m[1]-165796510|0,b=(b<<5|b>>>27)+_|0,w+=(b&x|_&~x)+m[6]-1069501632|0,w=(w<<9|w>>>23)+b|0,x+=(w&_|b&~_)+m[11]+643717713|0,x=(x<<14|x>>>18)+w|0,_+=(x&b|w&~b)+m[0]-373897302|0,_=(_<<20|_>>>12)+x|0,b+=(_&w|x&~w)+m[5]-701558691|0,b=(b<<5|b>>>27)+_|0,w+=(b&x|_&~x)+m[10]+38016083|0,w=(w<<9|w>>>23)+b|0,x+=(w&_|b&~_)+m[15]-660478335|0,x=(x<<14|x>>>18)+w|0,_+=(x&b|w&~b)+m[4]-405537848|0,_=(_<<20|_>>>12)+x|0,b+=(_&w|x&~w)+m[9]+568446438|0,b=(b<<5|b>>>27)+_|0,w+=(b&x|_&~x)+m[14]-1019803690|0,w=(w<<9|w>>>23)+b|0,x+=(w&_|b&~_)+m[3]-187363961|0,x=(x<<14|x>>>18)+w|0,_+=(x&b|w&~b)+m[8]+1163531501|0,_=(_<<20|_>>>12)+x|0,b+=(_&w|x&~w)+m[13]-1444681467|0,b=(b<<5|b>>>27)+_|0,w+=(b&x|_&~x)+m[2]-51403784|0,w=(w<<9|w>>>23)+b|0,x+=(w&_|b&~_)+m[7]+1735328473|0,x=(x<<14|x>>>18)+w|0,_+=(x&b|w&~b)+m[12]-1926607734|0,_=(_<<20|_>>>12)+x|0,b+=(_^x^w)+m[5]-378558|0,b=(b<<4|b>>>28)+_|0,w+=(b^_^x)+m[8]-2022574463|0,w=(w<<11|w>>>21)+b|0,x+=(w^b^_)+m[11]+1839030562|0,x=(x<<16|x>>>16)+w|0,_+=(x^w^b)+m[14]-35309556|0,_=(_<<23|_>>>9)+x|0,b+=(_^x^w)+m[1]-1530992060|0,b=(b<<4|b>>>28)+_|0,w+=(b^_^x)+m[4]+1272893353|0,w=(w<<11|w>>>21)+b|0,x+=(w^b^_)+m[7]-155497632|0,x=(x<<16|x>>>16)+w|0,_+=(x^w^b)+m[10]-1094730640|0,_=(_<<23|_>>>9)+x|0,b+=(_^x^w)+m[13]+681279174|0,b=(b<<4|b>>>28)+_|0,w+=(b^_^x)+m[0]-358537222|0,w=(w<<11|w>>>21)+b|0,x+=(w^b^_)+m[3]-722521979|0,x=(x<<16|x>>>16)+w|0,_+=(x^w^b)+m[6]+76029189|0,_=(_<<23|_>>>9)+x|0,b+=(_^x^w)+m[9]-640364487|0,b=(b<<4|b>>>28)+_|0,w+=(b^_^x)+m[12]-421815835|0,w=(w<<11|w>>>21)+b|0,x+=(w^b^_)+m[15]+530742520|0,x=(x<<16|x>>>16)+w|0,_+=(x^w^b)+m[2]-995338651|0,_=(_<<23|_>>>9)+x|0,b+=(x^(_|~w))+m[0]-198630844|0,b=(b<<6|b>>>26)+_|0,w+=(_^(b|~x))+m[7]+1126891415|0,w=(w<<10|w>>>22)+b|0,x+=(b^(w|~_))+m[14]-1416354905|0,x=(x<<15|x>>>17)+w|0,_+=(w^(x|~b))+m[5]-57434055|0,_=(_<<21|_>>>11)+x|0,b+=(x^(_|~w))+m[12]+1700485571|0,b=(b<<6|b>>>26)+_|0,w+=(_^(b|~x))+m[3]-1894986606|0,w=(w<<10|w>>>22)+b|0,x+=(b^(w|~_))+m[10]-1051523|0,x=(x<<15|x>>>17)+w|0,_+=(w^(x|~b))+m[1]-2054922799|0,_=(_<<21|_>>>11)+x|0,b+=(x^(_|~w))+m[8]+1873313359|0,b=(b<<6|b>>>26)+_|0,w+=(_^(b|~x))+m[15]-30611744|0,w=(w<<10|w>>>22)+b|0,x+=(b^(w|~_))+m[6]-1560198380|0,x=(x<<15|x>>>17)+w|0,_+=(w^(x|~b))+m[13]+1309151649|0,_=(_<<21|_>>>11)+x|0,b+=(x^(_|~w))+m[4]-145523070|0,b=(b<<6|b>>>26)+_|0,w+=(_^(b|~x))+m[11]-1120210379|0,w=(w<<10|w>>>22)+b|0,x+=(b^(w|~_))+m[2]+718787259|0,x=(x<<15|x>>>17)+w|0,_+=(w^(x|~b))+m[9]-343485551|0,_=(_<<21|_>>>11)+x|0,y[0]=b+y[0]|0,y[1]=_+y[1]|0,y[2]=x+y[2]|0,y[3]=w+y[3]|0}function i(y){var m=[],b;for(b=0;b<64;b+=4)m[b>>2]=y.charCodeAt(b)+(y.charCodeAt(b+1)<<8)+(y.charCodeAt(b+2)<<16)+(y.charCodeAt(b+3)<<24);return m}function o(y){var m=[],b;for(b=0;b<64;b+=4)m[b>>2]=y[b]+(y[b+1]<<8)+(y[b+2]<<16)+(y[b+3]<<24);return m}function s(y){var m=y.length,b=[1732584193,-271733879,-1732584194,271733878],_,x,w,C,T,k;for(_=64;_<=m;_+=64)a(b,i(y.substring(_-64,_)));for(y=y.substring(_-64),x=y.length,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_=0;_>2]|=y.charCodeAt(_)<<(_%4<<3);if(w[_>>2]|=128<<(_%4<<3),_>55)for(a(b,w),_=0;_<16;_+=1)w[_]=0;return C=m*8,C=C.toString(16).match(/(.*?)(.{0,8})$/),T=parseInt(C[2],16),k=parseInt(C[1],16)||0,w[14]=T,w[15]=k,a(b,w),b}function l(y){var m=y.length,b=[1732584193,-271733879,-1732584194,271733878],_,x,w,C,T,k;for(_=64;_<=m;_+=64)a(b,o(y.subarray(_-64,_)));for(y=_-64>2]|=y[_]<<(_%4<<3);if(w[_>>2]|=128<<(_%4<<3),_>55)for(a(b,w),_=0;_<16;_+=1)w[_]=0;return C=m*8,C=C.toString(16).match(/(.*?)(.{0,8})$/),T=parseInt(C[2],16),k=parseInt(C[1],16)||0,w[14]=T,w[15]=k,a(b,w),b}function u(y){var m="",b;for(b=0;b<4;b+=1)m+=r[y>>b*8+4&15]+r[y>>b*8&15];return m}function c(y){var m;for(m=0;mw?new ArrayBuffer(0):(C=w-x,T=new ArrayBuffer(C),k=new Uint8Array(T),E=new Uint8Array(this,x,C),k.set(E),T)}}();function f(y){return/[\u0080-\uFFFF]/.test(y)&&(y=unescape(encodeURIComponent(y))),y}function d(y,m){var b=y.length,_=new ArrayBuffer(b),x=new Uint8Array(_),w;for(w=0;w>2]|=m.charCodeAt(_)<<(_%4<<3);return this._finish(x,b),w=c(this._hash),y&&(w=v(w)),this.reset(),w},g.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},g.prototype.setState=function(y){return this._buff=y.buff,this._length=y.length,this._hash=y.hash,this},g.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},g.prototype._finish=function(y,m){var b=m,_,x,w;if(y[b>>2]|=128<<(b%4<<3),b>55)for(a(this._hash,y),b=0;b<16;b+=1)y[b]=0;_=this._length*8,_=_.toString(16).match(/(.*?)(.{0,8})$/),x=parseInt(_[2],16),w=parseInt(_[1],16)||0,y[14]=x,y[15]=w,a(this._hash,y)},g.hash=function(y,m){return g.hashBinary(f(y),m)},g.hashBinary=function(y,m){var b=s(y),_=c(b);return m?v(_):_},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(y){var m=p(this._buff.buffer,y,!0),b=m.length,_;for(this._length+=y.byteLength,_=64;_<=b;_+=64)a(this._hash,o(m.subarray(_-64,_)));return this._buff=_-64>2]|=m[x]<<(x%4<<3);return this._finish(_,b),w=c(this._hash),y&&(w=v(w)),this.reset(),w},g.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},g.ArrayBuffer.prototype.getState=function(){var y=g.prototype.getState.call(this);return y.buff=h(y.buff),y},g.ArrayBuffer.prototype.setState=function(y){return y.buff=d(y.buff,!0),g.prototype.setState.call(this,y)},g.ArrayBuffer.prototype.destroy=g.prototype.destroy,g.ArrayBuffer.prototype._finish=g.prototype._finish,g.ArrayBuffer.hash=function(y,m){var b=l(new Uint8Array(y)),_=c(b);return m?v(_):_},g})})(CZ);var iqe=CZ.exports;const oqe=yi(iqe),sqe=["lastShaderProgramBound","context","_openGLRenderWindow"];function lqe(t,e){e.classHierarchy.push("vtkShaderCache"),t.replaceShaderValues=(n,r,a)=>{let i=r;a.length>0&&(i=wa.substitute(i,"VSOut","GSOut").result);const o=e._openGLRenderWindow.getWebgl2();let s=` `,l=`#version 100 `;o?l=`#version 300 es #define attribute in #define textureCube texture #define texture2D texture #define textureCubeLod textureLod #define texture2DLod textureLod `:(e.context.getExtension("OES_standard_derivatives"),e.context.getExtension("EXT_frag_depth")&&(s=`#extension GL_EXT_frag_depth : enable `),e.context.getExtension("EXT_shader_texture_lod")&&(s+=`#extension GL_EXT_shader_texture_lod : enable #define textureCubeLod textureCubeLodEXT #define texture2DLod texture2DLodEXT`)),i=wa.substitute(i,"//VTK::System::Dec",[`${l} `,o?"":`#extension GL_OES_standard_derivatives : enable `,s,"#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","precision highp int;","#else","precision mediump float;","precision mediump int;","#endif"]).result;let u=wa.substitute(n,"//VTK::System::Dec",[`${l} `,"#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","precision highp int;","#else","precision mediump float;","precision mediump int;","#endif"]).result;if(o){u=wa.substitute(u,"varying","out").result,i=wa.substitute(i,"varying","in").result;let f="",d=0;for(;i.includes(`gl_FragData[${d}]`);)i=wa.substitute(i,`gl_FragData\\[${d}\\]`,`fragOutput${d}`).result,f+=`layout(location = ${d}) out vec4 fragOutput${d}; `,d++;i=wa.substitute(i,"//VTK::Output::Dec",f).result}const c=wa.substitute(a,"//VTK::System::Dec",l).result;return{VSSource:u,FSSource:i,GSSource:c}},t.readyShaderProgramArray=(n,r,a)=>{const i=t.replaceShaderValues(n,r,a),o=t.getShaderProgram(i.VSSource,i.FSSource,i.GSSource);return t.readyShaderProgram(o)},t.readyShaderProgram=n=>!n||!n.getCompiled()&&!n.compileShader()||!t.bindShaderProgram(n)?null:n,t.getShaderProgram=(n,r,a)=>{const i=`${n}${r}${a}`,o=oqe.hash(i);if(!(o in e.shaderPrograms)){const s=wa.newInstance();return s.setContext(e.context),s.getVertexShader().setSource(n),s.getFragmentShader().setSource(r),a&&s.getGeometryShader().setSource(a),s.setMd5Hash(o),e.shaderPrograms[o]=s,s}return e.shaderPrograms[o]},t.releaseGraphicsResources=n=>{t.releaseCurrentShaderProgram(),Object.keys(e.shaderPrograms).map(r=>e.shaderPrograms[r]).forEach(r=>r.cleanup()),e.shaderPrograms={}},t.releaseCurrentShaderProgram=()=>{e.lastShaderProgramBound&&(e.lastShaderProgramBound.cleanup(),e.lastShaderProgramBound=null)},t.bindShaderProgram=n=>(e.lastShaderProgramBound===n||(e.lastShaderProgramBound&&e.lastShaderProgramBound.release(),n.bind(),e.lastShaderProgramBound=n),1)}const uqe={lastShaderProgramBound:null,shaderPrograms:null,context:null};function TZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,uqe,n),e.shaderPrograms={},Q.obj(t,e),Q.setGet(t,e,sqe),Q.moveToProtected(t,e,["openGLRenderWindow"]),lqe(t,e)}const cqe=Q.newInstance(TZ,"vtkShaderCache");var fqe={newInstance:cqe,extend:TZ};const{vtkErrorMacro:dqe}=Q;function hqe(t,e){e.classHierarchy.push("vtkOpenGLTextureUnitManager"),t.deleteTable=()=>{for(let n=0;n{if(e.context!==n){if(e.context!==0&&t.deleteTable(),e.context=n,e.context){e.numberOfTextureUnits=n.getParameter(n.MAX_TEXTURE_IMAGE_UNITS);for(let r=0;r{for(let n=0;nt.isAllocated(n)?-1:(e.textureUnits[n]=!0,n),t.isAllocated=n=>e.textureUnits[n],t.free=n=>{e.textureUnits[n]=!1},t.freeAll=()=>{for(let n=0;n2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,vqe,n),Q.obj(t,e),e.textureUnits=[],Q.get(t,e,["numberOfTextureUnits"]),Q.setGet(t,e,["context"]),hqe(t,e)}const pqe=Q.newInstance(EZ,"vtkOpenGLTextureUnitManager");var gqe={newInstance:pqe,extend:EZ};function yqe(t,e){e.classHierarchy.push("vtkRenderWindowViewNode"),t.getViewNodeFactory=()=>null,t.getAspectRatio=()=>e.size[0]/e.size[1],t.getAspectRatioForRenderer=n=>{const r=n.getViewportByReference();return e.size[0]*(r[2]-r[0])/((r[3]-r[1])*e.size[1])},t.isInViewport=(n,r,a)=>{const i=a.getViewportByReference(),o=t.getFramebufferSize();return i[0]*o[0]<=n&&i[2]*o[0]>=n&&i[1]*o[1]<=r&&i[3]*o[1]>=r},t.getViewportSize=n=>{const r=n.getViewportByReference(),a=t.getFramebufferSize();return[(r[2]-r[0])*a[0],(r[3]-r[1])*a[1]]},t.getViewportCenter=n=>{const r=t.getViewportSize(n);return[r[0]*.5,r[1]*.5]},t.displayToNormalizedDisplay=(n,r,a)=>{const i=t.getFramebufferSize();return[n/i[0],r/i[1],a]},t.normalizedDisplayToDisplay=(n,r,a)=>{const i=t.getFramebufferSize();return[n*i[0],r*i[1],a]},t.worldToView=(n,r,a,i)=>i.worldToView(n,r,a),t.viewToWorld=(n,r,a,i)=>i.viewToWorld(n,r,a),t.worldToDisplay=(n,r,a,i)=>{const o=i.worldToView(n,r,a),s=t.getViewportSize(i),l=i.viewToProjection(o[0],o[1],o[2],s[0]/s[1]),u=i.projectionToNormalizedDisplay(l[0],l[1],l[2]);return t.normalizedDisplayToDisplay(u[0],u[1],u[2])},t.displayToWorld=(n,r,a,i)=>{const o=t.displayToNormalizedDisplay(n,r,a),s=i.normalizedDisplayToProjection(o[0],o[1],o[2]),l=t.getViewportSize(i),u=i.projectionToView(s[0],s[1],s[2],l[0]/l[1]);return i.viewToWorld(u[0],u[1],u[2])},t.normalizedDisplayToViewport=(n,r,a,i)=>{let o=i.getViewportByReference();o=t.normalizedDisplayToDisplay(o[0],o[1],0);const s=t.normalizedDisplayToDisplay(n,r,a);return[s[0]-o[0]-.5,s[1]-o[1]-.5,a]},t.viewportToNormalizedViewport=(n,r,a,i)=>{const o=t.getViewportSize(i);return o&&o[0]!==0&&o[1]!==0?[n/(o[0]-1),r/(o[1]-1),a]:[n,r,a]},t.normalizedViewportToViewport=(n,r,a,i)=>{const o=t.getViewportSize(i);return[n*(o[0]-1),r*(o[1]-1),a]},t.displayToLocalDisplay=(n,r,a)=>{const i=t.getFramebufferSize();return[n,i[1]-r-1,a]},t.viewportToNormalizedDisplay=(n,r,a,i)=>{let o=i.getViewportByReference();o=t.normalizedDisplayToDisplay(o[0],o[1],0);const s=n+o[0]+.5,l=r+o[1]+.5;return t.displayToNormalizedDisplay(s,l,a)},t.getComputedDevicePixelRatio=()=>e.size[0]/t.getContainerSize()[0],t.getContainerSize=()=>{Q.vtkErrorMacro("not implemented")},t.getPixelData=(n,r,a,i)=>{Q.vtkErrorMacro("not implemented")},t.createSelector=()=>{Q.vtkErrorMacro("not implemented")}}const mqe={size:void 0,selector:void 0};function MZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,mqe,n),e.size||(e.size=[300,300]),Q.getArray(t,e,["size"],2),Q.get(t,e,["selector"]),AO.extend(t,e,n),yqe(t,e)}const bqe=Q.newInstance(MZ,"vtkRenderWindowViewNode");var kZ={newInstance:bqe,extend:MZ};const Sqe="__getUnderlyingContext";function _qe(){const t=new Map,e={apply(a,i,o){return t.has(o[0])?t.get(o[0]):a.apply(i,o)}};function n(a){return{apply(i,o,s){return t.set(a,s[0]),i.apply(o,s)}}}const r=Object.create(null);return r.getParameter=(a,i,o,s)=>new Proxy(s.bind(a),e),r.depthMask=(a,i,o,s)=>new Proxy(s.bind(a),n(a.DEPTH_WRITEMASK)),{get(a,i,o){if(i===Sqe)return()=>a;let s=Reflect.get(a,i,a);s instanceof Function&&(s=s.bind(a));const l=r[i];return l?l(a,i,o,s):s}}}const{vtkDebugMacro:h4,vtkErrorMacro:v4}=Q,wqe={position:"absolute",top:0,left:0,width:"100%",height:"100%"};function ya(t,e,n){const r=t.createFramebuffer(),a=t.createTexture();t.bindTexture(t.TEXTURE_2D,a),t.texImage2D(t.TEXTURE_2D,0,e,2,2,0,e,n,null),t.bindFramebuffer(t.FRAMEBUFFER,r),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,a,0);const i=t.checkFramebufferStatus(t.FRAMEBUFFER);return t.bindFramebuffer(t.FRAMEBUFFER,null),t.bindTexture(t.TEXTURE_2D,null),i===t.FRAMEBUFFER_COMPLETE}let m_=0;const DZ=[];function xqe(){m_++,DZ.forEach(t=>t(m_))}function Cqe(){m_--,DZ.forEach(t=>t(m_))}function p4(t){t.preventDefault()}function Tqe(t,e){e.classHierarchy.push("vtkOpenGLRenderWindow");const n=_qe();t.getViewNodeFactory=()=>e.myFactory,e.canvas.addEventListener("webglcontextlost",p4,!1),e.canvas.addEventListener("webglcontextrestored",t.restoreContext,!1);const r=[0,0];function a(){e.renderable&&(e.size[0]!==r[0]||e.size[1]!==r[1])&&(r[0]=e.size[0],r[1]=e.size[1],e.canvas.setAttribute("width",e.size[0]),e.canvas.setAttribute("height",e.size[1])),e.viewStream&&e.viewStream.setSize(e.size[0],e.size[1]),e.canvas.style.display=e.useOffScreen?"none":"block",e.el&&(e.el.style.cursor=e.cursorVisibility?e.cursor:"none"),e.containerSize=null}t.onModified(a),t.buildPass=u=>{if(u){if(!e.renderable)return;t.prepareNodes(),t.addMissingNodes(e.renderable.getRenderersByReference()),t.removeUnusedNodes(),t.initialize(),e.children.forEach(c=>{c.setOpenGLRenderWindow(t)})}},t.initialize=()=>{if(!e.initialized){e.context=t.get3DContext(),e.textureUnitManager=gqe.newInstance(),e.textureUnitManager.setContext(e.context),e.shaderCache.setContext(e.context);const u=e.context;u.blendFuncSeparate(u.SRC_ALPHA,u.ONE_MINUS_SRC_ALPHA,u.ONE,u.ONE_MINUS_SRC_ALPHA),u.depthFunc(u.LEQUAL),u.enable(u.BLEND),e.initialized=!0}},t.makeCurrent=()=>{e.context.makeCurrent()},t.setContainer=u=>{e.el&&e.el!==u&&(e.canvas.parentNode!==e.el&&v4("Error: canvas parent node does not match container"),e.el.removeChild(e.canvas),e.el.contains(e.bgImage)&&e.el.removeChild(e.bgImage)),e.el!==u&&(e.el=u,e.el&&(e.el.appendChild(e.canvas),e.useBackgroundImage&&e.el.appendChild(e.bgImage)),t.modified())},t.getContainer=()=>e.el,t.getContainerSize=()=>{if(!e.containerSize&&e.el){const{width:u,height:c}=e.el.getBoundingClientRect();e.containerSize=[u,c]}return e.containerSize||e.size},t.getFramebufferSize=()=>{var c;return((c=e.activeFramebuffer)==null?void 0:c.getSize())||e.size},t.getPixelData=(u,c,f,d)=>{const h=new Uint8Array((f-u+1)*(d-c+1)*4);return e.context.readPixels(u,c,f-u+1,d-c+1,e.context.RGBA,e.context.UNSIGNED_BYTE,h),h},t.get3DContext=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{preserveDrawingBuffer:!1,depth:!0,alpha:!0,powerPreference:"high-performance"},c=null;const f=typeof WebGL2RenderingContext<"u";return e.webgl2=!1,e.defaultToWebgl2&&f&&(c=e.canvas.getContext("webgl2",u),c&&(e.webgl2=!0,h4("using webgl2"))),c||(h4("using webgl1"),c=e.canvas.getContext("webgl",u)||e.canvas.getContext("experimental-webgl",u)),new Proxy(c,n)},t.restoreContext=()=>{const u=Ll.newInstance();u.setCurrentOperation("Release"),u.traverse(t,null)},t.activateTexture=u=>{const c=e._textureResourceIds.get(u);if(c!==void 0){e.context.activeTexture(e.context.TEXTURE0+c);return}const f=t.getTextureUnitManager().allocate();if(f<0){v4("Hardware does not support the number of textures defined.");return}e._textureResourceIds.set(u,f),e.context.activeTexture(e.context.TEXTURE0+f)},t.deactivateTexture=u=>{const c=e._textureResourceIds.get(u);c!==void 0&&(t.getTextureUnitManager().free(c),e._textureResourceIds.delete(u))},t.getTextureUnitForTexture=u=>{const c=e._textureResourceIds.get(u);return c!==void 0?c:-1},t.getDefaultTextureByteSize=function(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(e.webgl2)switch(u){case Ar.CHAR:case Ar.SIGNED_CHAR:case Ar.UNSIGNED_CHAR:return 1;case c:case f:case Ar.UNSIGNED_SHORT:case Ar.SHORT:case Ar.VOID:return 2;default:return 4}return 1},t.getDefaultTextureInternalFormat=function(u,c){let f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.webgl2)switch(u){case Ar.UNSIGNED_CHAR:switch(c){case 1:return e.context.R8;case 2:return e.context.RG8;case 3:return e.context.RGB8;case 4:default:return e.context.RGBA8}case(f&&!d&&Ar.UNSIGNED_SHORT):switch(c){case 1:return f.R16_EXT;case 2:return f.RG16_EXT;case 3:return f.RGB16_EXT;case 4:default:return f.RGBA16_EXT}case(f&&!d&&Ar.SHORT):switch(c){case 1:return f.R16_SNORM_EXT;case 2:return f.RG16_SNORM_EXT;case 3:return f.RGB16_SNORM_EXT;case 4:default:return f.RGBA16_SNORM_EXT}case Ar.UNSIGNED_SHORT:case Ar.SHORT:case Ar.FLOAT:default:switch(c){case 1:return d?e.context.R16F:e.context.R32F;case 2:return d?e.context.RG16F:e.context.RG32F;case 3:return d?e.context.RGB16F:e.context.RGB32F;case 4:default:return d?e.context.RGBA16F:e.context.RGBA32F}}switch(c){case 1:return e.context.LUMINANCE;case 2:return e.context.LUMINANCE_ALPHA;case 3:return e.context.RGB;case 4:default:return e.context.RGBA}},t.setBackgroundImage=u=>{e.bgImage.src=u.src},t.setUseBackgroundImage=u=>{e.useBackgroundImage=u,e.useBackgroundImage&&!e.el.contains(e.bgImage)?e.el.appendChild(e.bgImage):!e.useBackgroundImage&&e.el.contains(e.bgImage)&&e.el.removeChild(e.bgImage)};function i(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.imageFormat;const c=document.createElement("canvas"),f=c.getContext("2d");c.width=e.canvas.width,c.height=e.canvas.height,f.drawImage(e.canvas,0,0);const d=e.canvas.getBoundingClientRect();e.renderable.getRenderers().forEach(g=>{g.getViewProps().forEach(m=>{if(m.getContainer){const _=m.getContainer().getElementsByTagName("canvas");for(let x=0;x<_.length;x++){const w=_[x],C=w.getBoundingClientRect(),T=C.x-d.x,k=C.y-d.y;f.drawImage(w,T,k)}}})});const v=c.toDataURL(u);c.remove(),t.invokeImageReady(v)}t.captureNextImage=function(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"image/png",{resetCamera:c=!1,size:f=null,scale:d=1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e.deleted)return null;e.imageFormat=u;const h=e.notifyStartCaptureImage;return e.notifyStartCaptureImage=!0,e._screenshot={size:f||d!==1?f||e.size.map(p=>p*d):null},new Promise((p,v)=>{const g=t.onImageReady(y=>{if(e._screenshot.size===null)e.notifyStartCaptureImage=h,g.unsubscribe(),e._screenshot.placeHolder&&(e.size=e._screenshot.originalSize,t.modified(),e._screenshot.cameras&&e._screenshot.cameras.forEach(m=>{let{restoreParamsFn:b,arg:_}=m;return b(_)}),t.traverseAllPasses(),e.el.removeChild(e._screenshot.placeHolder),e._screenshot.placeHolder.remove(),e._screenshot=null),p(y);else{const m=document.createElement("img");if(m.style=wqe,m.src=y,e._screenshot.placeHolder=e.el.appendChild(m),e.canvas.style.display="none",e._screenshot.originalSize=e.size,e.size=e._screenshot.size,e._screenshot.size=null,t.modified(),c){const b=c!==!0;e._screenshot.cameras=e.renderable.getRenderers().map(_=>{const x=_.getActiveCamera(),w=x.get("focalPoint","position","parallelScale");return{resetCameraArgs:b?{renderer:_}:void 0,resetCameraFn:b?c:_.resetCamera,restoreParamsFn:x.set,arg:JSON.parse(JSON.stringify(w))}}),e._screenshot.cameras.forEach(_=>{let{resetCameraFn:x,resetCameraArgs:w}=_;return x(w)})}t.traverseAllPasses()}})})};let o;t.getHardwareMaximumLineWidth=()=>{if(o!=null)return o;const u=t.get3DContext(),c=u.getParameter(u.ALIASED_LINE_WIDTH_RANGE);return o=c[1],c[1]},t.getGLInformations=()=>{if(e._glInformation)return e._glInformation;const u=t.get3DContext(),c=u.getExtension("OES_texture_float"),f=u.getExtension("OES_texture_half_float"),d=u.getExtension("WEBGL_debug_renderer_info"),h=u.getExtension("WEBGL_draw_buffers"),p=u.getExtension("EXT_texture_filter_anisotropic")||u.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),v=[["Max Vertex Attributes","MAX_VERTEX_ATTRIBS",u.getParameter(u.MAX_VERTEX_ATTRIBS)],["Max Varying Vectors","MAX_VARYING_VECTORS",u.getParameter(u.MAX_VARYING_VECTORS)],["Max Vertex Uniform Vectors","MAX_VERTEX_UNIFORM_VECTORS",u.getParameter(u.MAX_VERTEX_UNIFORM_VECTORS)],["Max Fragment Uniform Vectors","MAX_FRAGMENT_UNIFORM_VECTORS",u.getParameter(u.MAX_FRAGMENT_UNIFORM_VECTORS)],["Max Fragment Texture Image Units","MAX_TEXTURE_IMAGE_UNITS",u.getParameter(u.MAX_TEXTURE_IMAGE_UNITS)],["Max Vertex Texture Image Units","MAX_VERTEX_TEXTURE_IMAGE_UNITS",u.getParameter(u.MAX_VERTEX_TEXTURE_IMAGE_UNITS)],["Max Combined Texture Image Units","MAX_COMBINED_TEXTURE_IMAGE_UNITS",u.getParameter(u.MAX_COMBINED_TEXTURE_IMAGE_UNITS)],["Max 2D Texture Size","MAX_TEXTURE_SIZE",u.getParameter(u.MAX_TEXTURE_SIZE)],["Max Cube Texture Size","MAX_CUBE_MAP_TEXTURE_SIZE",u.getParameter(u.MAX_CUBE_MAP_TEXTURE_SIZE)],["Max Texture Anisotropy","MAX_TEXTURE_MAX_ANISOTROPY_EXT",p&&u.getParameter(p.MAX_TEXTURE_MAX_ANISOTROPY_EXT)],["Point Size Range","ALIASED_POINT_SIZE_RANGE",u.getParameter(u.ALIASED_POINT_SIZE_RANGE).join(" - ")],["Line Width Range","ALIASED_LINE_WIDTH_RANGE",u.getParameter(u.ALIASED_LINE_WIDTH_RANGE).join(" - ")],["Max Viewport Dimensions","MAX_VIEWPORT_DIMS",u.getParameter(u.MAX_VIEWPORT_DIMS).join(" - ")],["Max Renderbuffer Size","MAX_RENDERBUFFER_SIZE",u.getParameter(u.MAX_RENDERBUFFER_SIZE)],["Framebuffer Red Bits","RED_BITS",u.getParameter(u.RED_BITS)],["Framebuffer Green Bits","GREEN_BITS",u.getParameter(u.GREEN_BITS)],["Framebuffer Blue Bits","BLUE_BITS",u.getParameter(u.BLUE_BITS)],["Framebuffer Alpha Bits","ALPHA_BITS",u.getParameter(u.ALPHA_BITS)],["Framebuffer Depth Bits","DEPTH_BITS",u.getParameter(u.DEPTH_BITS)],["Framebuffer Stencil Bits","STENCIL_BITS",u.getParameter(u.STENCIL_BITS)],["Framebuffer Subpixel Bits","SUBPIXEL_BITS",u.getParameter(u.SUBPIXEL_BITS)],["MSAA Samples","SAMPLES",u.getParameter(u.SAMPLES)],["MSAA Sample Buffers","SAMPLE_BUFFERS",u.getParameter(u.SAMPLE_BUFFERS)],["Supported Formats for UByte Render Targets ","UNSIGNED_BYTE RENDER TARGET FORMATS",[c&&ya(u,u.RGBA,u.UNSIGNED_BYTE)?"RGBA":"",c&&ya(u,u.RGB,u.UNSIGNED_BYTE)?"RGB":"",c&&ya(u,u.LUMINANCE,u.UNSIGNED_BYTE)?"LUMINANCE":"",c&&ya(u,u.ALPHA,u.UNSIGNED_BYTE)?"ALPHA":"",c&&ya(u,u.LUMINANCE_ALPHA,u.UNSIGNED_BYTE)?"LUMINANCE_ALPHA":""].join(" ")],["Supported Formats for Half Float Render Targets","HALF FLOAT RENDER TARGET FORMATS",[f&&ya(u,u.RGBA,f.HALF_FLOAT_OES)?"RGBA":"",f&&ya(u,u.RGB,f.HALF_FLOAT_OES)?"RGB":"",f&&ya(u,u.LUMINANCE,f.HALF_FLOAT_OES)?"LUMINANCE":"",f&&ya(u,u.ALPHA,f.HALF_FLOAT_OES)?"ALPHA":"",f&&ya(u,u.LUMINANCE_ALPHA,f.HALF_FLOAT_OES)?"LUMINANCE_ALPHA":""].join(" ")],["Supported Formats for Full Float Render Targets","FLOAT RENDER TARGET FORMATS",[c&&ya(u,u.RGBA,u.FLOAT)?"RGBA":"",c&&ya(u,u.RGB,u.FLOAT)?"RGB":"",c&&ya(u,u.LUMINANCE,u.FLOAT)?"LUMINANCE":"",c&&ya(u,u.ALPHA,u.FLOAT)?"ALPHA":"",c&&ya(u,u.LUMINANCE_ALPHA,u.FLOAT)?"LUMINANCE_ALPHA":""].join(" ")],["Max Multiple Render Targets Buffers","MAX_DRAW_BUFFERS_WEBGL",h?u.getParameter(h.MAX_DRAW_BUFFERS_WEBGL):0],["High Float Precision in Vertex Shader","HIGH_FLOAT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_FLOAT).precision," (-2",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_FLOAT).rangeMin," - 2",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_FLOAT).rangeMax,")"].join("")],["Medium Float Precision in Vertex Shader","MEDIUM_FLOAT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_FLOAT).precision," (-2",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_FLOAT).rangeMin," - 2",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_FLOAT).rangeMax,")"].join("")],["Low Float Precision in Vertex Shader","LOW_FLOAT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_FLOAT).precision," (-2",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_FLOAT).rangeMin," - 2",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_FLOAT).rangeMax,")"].join("")],["High Float Precision in Fragment Shader","HIGH_FLOAT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_FLOAT).precision," (-2",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_FLOAT).rangeMin," - 2",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_FLOAT).rangeMax,")"].join("")],["Medium Float Precision in Fragment Shader","MEDIUM_FLOAT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_FLOAT).precision," (-2",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_FLOAT).rangeMin," - 2",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_FLOAT).rangeMax,")"].join("")],["Low Float Precision in Fragment Shader","LOW_FLOAT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_FLOAT).precision," (-2",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_FLOAT).rangeMin," - 2",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_FLOAT).rangeMax,")"].join("")],["High Int Precision in Vertex Shader","HIGH_INT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_INT).precision," (-2",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_INT).rangeMin," - 2",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_INT).rangeMax,")"].join("")],["Medium Int Precision in Vertex Shader","MEDIUM_INT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_INT).precision," (-2",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_INT).rangeMin," - 2",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_INT).rangeMax,")"].join("")],["Low Int Precision in Vertex Shader","LOW_INT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_INT).precision," (-2",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_INT).rangeMin," - 2",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_INT).rangeMax,")"].join("")],["High Int Precision in Fragment Shader","HIGH_INT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_INT).precision," (-2",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_INT).rangeMin," - 2",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_INT).rangeMax,")"].join("")],["Medium Int Precision in Fragment Shader","MEDIUM_INT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_INT).precision," (-2",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_INT).rangeMin," - 2",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_INT).rangeMax,")"].join("")],["Low Int Precision in Fragment Shader","LOW_INT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_INT).precision," (-2",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_INT).rangeMin," - 2",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_INT).rangeMax,")"].join("")],["Supported Extensions","EXTENSIONS",u.getSupportedExtensions().join("
")],["WebGL Renderer","RENDERER",u.getParameter(u.RENDERER)],["WebGL Vendor","VENDOR",u.getParameter(u.VENDOR)],["WebGL Version","VERSION",u.getParameter(u.VERSION)],["Shading Language Version","SHADING_LANGUAGE_VERSION",u.getParameter(u.SHADING_LANGUAGE_VERSION)],["Unmasked Renderer","UNMASKED_RENDERER",d&&u.getParameter(d.UNMASKED_RENDERER_WEBGL)],["Unmasked Vendor","UNMASKED_VENDOR",d&&u.getParameter(d.UNMASKED_VENDOR_WEBGL)],["WebGL Version","WEBGL_VERSION",e.webgl2?2:1]],g={};for(;v.length;){const[y,m,b]=v.pop();m&&(g[m]={label:y,value:b})}return e._glInformation=g,g},t.traverseAllPasses=()=>{if(e.renderPasses)for(let u=0;u{e.cullFaceEnabled&&(e.context.disable(e.context.CULL_FACE),e.cullFaceEnabled=!1)},t.enableCullFace=()=>{e.cullFaceEnabled||(e.context.enable(e.context.CULL_FACE),e.cullFaceEnabled=!0)},t.setViewStream=u=>{if(e.viewStream===u)return!1;if(e.subscription&&(e.subscription.unsubscribe(),e.subscription=null),e.viewStream=u,e.viewStream){const c=e.renderable.getRenderers()[0];c.getBackgroundByReference()[3]=0,t.setUseBackgroundImage(!0),e.subscription=e.viewStream.onImageReady(f=>t.setBackgroundImage(f.image)),e.viewStream.setSize(e.size[0],e.size[1]),e.viewStream.invalidateCache(),e.viewStream.render(),t.modified()}return!0},t.createSelector=()=>{const u=xZ.newInstance();return u.setOpenGLRenderWindow(t),u};function s(){e.canvas.removeEventListener("webglcontextlost",p4),e.canvas.removeEventListener("webglcontextrestored",t.restoreContext)}t.delete=Q.chain(s,t.delete,t.setViewStream,Cqe),t.setActiveFramebuffer=u=>{e.activeFramebuffer=u};const l=t.setSize;t.setSize=(u,c)=>{const f=l(u,c);return f&&t.invokeWindowResizeEvent({width:u,height:c}),f},t.getGraphicsResourceForObject=u=>{if(!u)return null;const c=e._graphicsResources.get(u),f=e._graphicsResourceHash.get(u);return{vtkObj:c,hash:f}},t.setGraphicsResourceForObject=(u,c,f)=>{u&&(e._graphicsResources.set(u,c),e._graphicsResourceHash.set(u,f))},t.getGraphicsMemoryInfo=()=>{let u=0;return e._graphicsResources.forEach((c,f)=>{u+=c.getAllocatedGPUMemoryInBytes()}),u},t.releaseGraphicsResourcesForObject=u=>{var c;return u?((c=e._graphicsResources.get(u))==null||c.releaseGraphicsResources(t),e._graphicsResources.delete(u)&&e._graphicsResourceHash.delete(u)):!1},t.releaseGraphicsResources=()=>{e.shaderCache!==null&&e.shaderCache.releaseGraphicsResources(t),e._graphicsResources.forEach((u,c)=>{u.releaseGraphicsResources(t)}),e._graphicsResources.clear(),e._graphicsResourceHash.clear(),e.textureUnitManager!==null&&e.textureUnitManager.freeAll(),e.renderable.getRenderersByReference().forEach(u=>{const c=t.getViewNodeFor(u);c==null||c.releaseGraphicsResources()})}}const Eqe={cullFaceEnabled:!1,shaderCache:null,initialized:!1,context:null,canvas:null,cursorVisibility:!0,cursor:"pointer",textureUnitManager:null,textureResourceIds:null,containerSize:null,renderPasses:[],notifyStartCaptureImage:!1,webgl2:!1,defaultToWebgl2:!0,activeFramebuffer:null,imageFormat:"image/png",useOffScreen:!1,useBackgroundImage:!1};function Mqe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Eqe,n),kZ.extend(t,e,n),e.canvas=document.createElement("canvas"),e.canvas.style.width="100%",xqe(),e.selector||(e.selector=xZ.newInstance(),e.selector.setOpenGLRenderWindow(t)),e.bgImage=new Image,e.bgImage.style.position="absolute",e.bgImage.style.left="0",e.bgImage.style.top="0",e.bgImage.style.width="100%",e.bgImage.style.height="100%",e.bgImage.style.zIndex="-1",e._textureResourceIds=new Map,e._graphicsResources=new Map,e._graphicsResourceHash=new Map,e._glInformation=null,e.myFactory=QYe.newInstance(),e.myFactory.registerOverride("vtkRenderWindow",RZ),e.shaderCache=fqe.newInstance(),e.shaderCache.setOpenGLRenderWindow(t),e.renderPasses[0]=HXe.newInstance(),Q.event(t,e,"imageReady"),Q.get(t,e,["shaderCache","textureUnitManager","webgl2","useBackgroundImage","activeFramebuffer"]),Q.setGet(t,e,["initialized","context","canvas","renderPasses","notifyStartCaptureImage","defaultToWebgl2","cursor","useOffScreen"]),Q.setGetArray(t,e,["size"],2),Q.event(t,e,"windowResizeEvent"),Tqe(t,e)}const RZ=Q.newInstance(Mqe,"vtkOpenGLRenderWindow");wO("WebGL",RZ);function kqe(t,e){e.classHierarchy.push("vtkWebGPUShaderModule"),t.initialize=(n,r)=>{e.device=n,e.handle=e.device.getHandle().createShaderModule({code:r.getCode()})}}const Dqe={device:null,handle:null};function LZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Dqe,n),Q.obj(t,e),Q.get(t,e,["lastCameraMTime"]),Q.setGet(t,e,["device","handle"]),kqe(t,e)}const Rqe=Q.newInstance(LZ,"vtkWebGPUShaderModule");var Lqe={newInstance:Rqe,extend:LZ};function Aqe(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;const a=Array.isArray(n)?n.join(` `):n;let i=!1;t.search(e)!==-1&&(i=!0);let o="";r&&(o="g");const s=new RegExp(e,o),l=t.replace(s,a);return{replace:i,result:l}}function Oqe(t,e){e.classHierarchy.push("vtkWebGPUShaderCache"),t.getShaderModule=n=>{const r=n.getType(),a=n.getHash(),i=e._shaderModules.keys();for(let s=0;s2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Nqe,n),e._shaderModules=new Map,Q.obj(t,e),Q.setGet(t,e,["device","window"]),Oqe(t,e)}const $qe=Q.newInstance(AZ,"vtkWebGPUShaderCache");var Wn={newInstance:$qe,extend:AZ,substitute:Aqe};function Iqe(t,e){e.classHierarchy.push("vtkWebGPUBindGroup"),t.setBindables=n=>{if(e.bindables.length===n.length){let r=!0;for(let a=0;a{const r=[];for(let a=0;a{let r=t.getMTime();for(let i=0;ir?o:r}if(r{const r=[],a=n.getBindGroupLayoutCount(e.label);for(let i=0;i2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Bqe,n),Q.obj(t,e),e.bindables=[],e.bindGroupTime={},Q.obj(e.bindGroupTime,{mtime:0}),Q.get(t,e,["bindGroupTime","handle","sizeInBytes","usage"]),Q.setGet(t,e,["label","device","arrayInformation"]),Iqe(t,e)}const Vqe=Q.newInstance(OZ);var Pqe={newInstance:Vqe,extend:OZ};function Fqe(t,e){e.classHierarchy.push("vtkWebGPUPipeline"),t.getShaderDescriptions=()=>e.shaderDescriptions,t.initialize=(n,r)=>{e.pipelineDescription=e.renderEncoder.getPipelineSettings(),e.pipelineDescription.primitive.topology=e.topology,e.pipelineDescription.vertex=e.vertexState,e.pipelineDescription.label=r;const a=[];for(let i=0;i{for(let r=0;r{n&&e.layouts.push({layout:n.getBindGroupLayout(e.device),label:n.getLabel()})},t.getBindGroupLayout=n=>e.layouts[n].layout,t.getBindGroupLayoutCount=n=>{for(let r=0;r{r.bindBuffers(n)}}const zqe={handle:null,layouts:null,renderEncoder:null,shaderDescriptions:null,vertexState:null,topology:null,pipelineDescription:null};function NZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,zqe,n),$o(t,e),e.layouts=[],e.shaderDescriptions=[],Is(t,e,["handle","pipelineDescription"]),Bs(t,e,["device","renderEncoder","topology","vertexState"]),Fqe(t,e)}const Gqe=Uo(NZ,"vtkWebGPUPipeline");var Hqe={newInstance:Gqe,extend:NZ};function Uqe(t,e){e.classHierarchy.push("vtkWebGPUShaderDescription"),t.hasOutput=n=>e.outputNames.includes(n),t.addOutput=function(n,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;e.outputTypes.push(n),e.outputNames.push(r),e.outputInterpolations.push(a)},t.addBuiltinOutput=(n,r)=>{e.builtinOutputTypes.push(n),e.builtinOutputNames.push(r)},t.addBuiltinInput=(n,r)=>{e.builtinInputTypes.push(n),e.builtinInputNames.push(r)},t.replaceShaderCode=(n,r)=>{const a=[];let i=[];if(r&&a.push(r.getShaderCode()),n||e.builtinInputNames.length){const o=[];if(o.push(`struct ${e.type}Input {`),n){const s=n.getOutputNamesByReference(),l=n.getOutputTypesByReference(),u=n.getOutputInterpolationsByReference();for(let c=0;c1&&(o.push("};"),i=o,a[a.length-1]+=",",a.push(`input: ${e.type}Input`))}if(a.length&&(e.code=Wn.substitute(e.code,"//VTK::IOStructs::Input",a).result),e.outputNames.length+e.builtinOutputNames.length){const o=[`struct ${e.type}Output {`];for(let s=0;s ${e.type}Output`]).result}e.code=Wn.substitute(e.code,"//VTK::IOStructs::Dec",i).result}}const Wqe={type:null,hash:null,code:null,outputNames:null,outputTypes:null};function $Z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Wqe,n),e.outputNames=[],e.outputTypes=[],e.outputInterpolations=[],e.builtinOutputNames=[],e.builtinOutputTypes=[],e.builtinInputNames=[],e.builtinInputTypes=[],Q.obj(t,e),Q.setGet(t,e,["type","hash","code"]),Q.getArray(t,e,["outputTypes","outputNames","outputInterpolations"]),Uqe(t,e)}const jqe=Q.newInstance($Z,"vtkWebGPUShaderDescription");var g4={newInstance:jqe,extend:$Z};const y4={r8unorm:{numComponents:1,nativeType:Uint8Array,stride:1,elementSize:1,sampleType:"float"},r8snorm:{numComponents:1,nativeType:Int8Array,stride:1,elementSize:1,sampleType:"float"},r8uint:{numComponents:1,nativeType:Uint8Array,stride:1,elementSize:1,sampleType:"uint"},r8sint:{numComponents:1,nativeType:Int8Array,stride:1,elementSize:1,sampleType:"sint"},r16uint:{numComponents:1,nativeType:Uint16Array,stride:2,elementSize:2,sampleType:"uint"},r16sint:{numComponents:1,nativeType:Int16Array,stride:2,elementSize:2,sampleType:"sint"},r16float:{numComponents:1,nativeType:Float32Array,stride:2,elementSize:2,sampleType:"float"},rg8unorm:{numComponents:2,nativeType:Uint8Array,stride:2,elementSize:1,sampleType:"float"},rg8snorm:{numComponents:2,nativeType:Int8Array,stride:2,elementSize:1,sampleType:"float"},rg8uint:{numComponents:2,nativeType:Uint8Array,stride:2,elementSize:1,sampleType:"uint"},rg8sint:{numComponents:2,nativeType:Int8Array,stride:2,elementSize:1,sampleType:"sint"},r32uint:{numComponents:1,nativeType:Uint32Array,stride:4,elementSize:4,sampleType:"uint"},r32sint:{numComponents:1,nativeType:Int32Array,stride:4,elementSize:4,sampleType:"sint"},r32float:{numComponents:1,nativeType:Float32Array,stride:4,elementSize:4,sampleType:"unfilterable-float"},rg16uint:{numComponents:2,nativeType:Uint16Array,stride:4,elementSize:2,sampleType:"uint"},rg16sint:{numComponents:2,nativeType:Int16Array,stride:4,elementSize:2,sampleType:"sint"},rg16float:{numComponents:2,nativeType:Float32Array,stride:4,elementSize:2,sampleType:"float"},rgba8unorm:{numComponents:4,nativeType:Uint8Array,stride:4,elementSize:1,sampleType:"float"},"rgba8unorm-srgb":{numComponents:4,nativeType:Uint8Array,stride:4,elementSize:1,sampleType:"float"},rgba8snorm:{numComponents:4,nativeType:Int8Array,stride:4,elementSize:1,sampleType:"float"},rgba8uint:{numComponents:4,nativeType:Uint8Array,stride:4,elementSize:1,sampleType:"uint"},rgba8sint:{numComponents:4,nativeType:Int8Array,stride:4,elementSize:1,sampleType:"sint"},bgra8unorm:{numComponents:4,nativeType:Uint8Array,stride:4,elementSize:1,sampleType:"float"},"bgra8unorm-srgb":{numComponents:4,nativeType:Uint8Array,stride:4,elementSize:1,sampleType:"float"},rgb9e5ufloat:{numComponents:4,nativeType:Uint32Array,stride:4,sampleType:"float"},rgb10a2unorm:{numComponents:4,nativeType:Uint32Array,stride:4,sampleType:"float"},rg11b10ufloat:{numComponents:4,nativeType:Float32Array,stride:4,sampleType:"float"},rg32uint:{numComponents:2,nativeType:Uint32Array,stride:8,elementSize:4,sampleType:"uint"},rg32sint:{numComponents:2,nativeType:Int32Array,stride:8,elementSize:4,sampleType:"sint"},rg32float:{numComponents:2,nativeType:Float32Array,stride:8,elementSize:4,sampleType:"unfilterable-float"},rgba16uint:{numComponents:4,nativeType:Uint16Array,stride:8,elementSize:2,sampleType:"uint"},rgba16sint:{numComponents:4,nativeType:Int16Array,stride:8,elementSize:2,sampleType:"sint"},rgba16float:{numComponents:4,nativeType:Float32Array,stride:8,elementSize:2,sampleType:"float"},rgba32uint:{numComponents:4,nativeType:Uint32Array,stride:16,elementSize:4,sampleType:"uint"},rgba32sint:{numComponents:4,nativeType:Int32Array,stride:16,elementSize:4,sampleType:"sint"},rgba32float:{numComponents:4,nativeType:Float32Array,stride:16,elementSize:4,sampleType:"unfilterable-float"},stencil8:{numComponents:1,nativeType:Uint8Array,stride:1,elementSize:1,sampleType:"uint"},depth16unorm:{numComponents:1,nativeType:Uint16Array,stride:2,elementSize:2,sampleType:"depth"},depth24plus:{numComponents:1,nativeType:Uint32Array,stride:4,elementSize:3,sampleType:"depth"},"depth24plus-stencil8":{numComponents:2,nativeType:Uint32Array,stride:4,sampleType:"mixed"},depth32float:{numComponents:1,nativeType:Float32Array,stride:4,elementSize:4,sampleType:"depth"}};function Kqe(t){return!t||t.length<6?0:t in y4?y4[t]:(un(`unknown format ${t}`),null)}function Yqe(t){if(!t||t.length<5)return 0;let e=1;t[t.length-2]==="x"&&(e=Number(t[t.length-1]));const n=e===1?t.length-1:t.length-3,r=Number(t[n]);if(Number.isNaN(r))return un(`unknown format ${t}`),0;const a=5-r/2;return e*a}function Xqe(t){if(!t||t.length<5)return 0;let e=1;return t[t.length-2]==="x"&&(e=Number(t[t.length-1])),e}function qqe(t){if(!t||t.length<5)return 0;let e;if(t[0]==="f")e="Float";else if(t[0]==="s")e="Int";else if(t[0]==="u")e="Uint";else{un(`unknown format ${t}`);return}const n=t.split("x")[0],r=Number(n[n.length-1]);if(Number.isNaN(r)){un(`unknown format ${t}`);return}return e+=8*(5-r/2),e+="Array",e}function Zqe(t){let e;if(t[0]==="f"||t[1]==="n")e="f32";else if(t[0]==="s"&&t[1]==="i")e="i32";else if(t[0]==="u"&&t[1]==="i")e="u32";else{un(`unknown format ${t}`);return}let n=1;return t[t.length-2]==="x"&&(n=Number(t[t.length-1])),n===4?`vec4<${e}>`:n===3?`vec3<${e}>`:n===2?`vec2<${e}>`:e}function Qqe(t){if(!t)return 0;let e=1;return t.substring(0,3)==="vec"?e=Number(t[3]):t.substring(0,3)==="mat"&&(e=t[3]*t[5]),e*4}function Jqe(t){if(t){if(t.includes("f32"))return"Float32Array";if(t.includes("i32"))return"Int32Array";if(t.includes("u32"))return"Uint32Array";un(`unknown format ${t}`)}}var ua={getDetailsFromTextureFormat:Kqe,getByteStrideFromBufferFormat:Yqe,getNumberOfComponentsFromBufferFormat:Xqe,getNativeTypeFromBufferFormat:qqe,getShaderTypeFromBufferFormat:Zqe,getByteStrideFromShaderFormat:Qqe,getNativeTypeFromShaderFormat:Jqe};function eZe(t,e){if(t===e)return!0;if(t==null||e==null||t.length!==e.length)return!1;for(let n=0;n2&&arguments[2]!==void 0?arguments[2]:"vertex",i=r;Array.isArray(i)||(i=[i]);for(let o=0;oo.names[0]s.names[0]?1:0)},t.removeBufferIfPresent=n=>{for(let r=0;r{for(let r=0;r{for(let r=0;r{for(let r=0;r{let n="",r=0;for(let a=0;a0&&(n+=`, `),n=`${n} @location(${r}) ${e.inputs[a].names[i]} : ${s}`,r++}return n},t.getVertexInputInformation=()=>{const n={};if(e.inputs.length){const r=[];let a=0;for(let i=0;i{for(let r=0;r{},t.releaseGraphicsResources=()=>{e.created&&(e.inputs=[],e.bindingDescriptions=[],e.attributeDescriptions=[])}}const nZe={inputs:null,bindingDescriptions:!1,attributeDescriptions:null,indexBuffer:null};function IZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,nZe,n),$o(t,e),e.bindingDescriptions=[],e.attributeDescriptions=[],e.inputs=[],Bs(t,e,["created","device","handle","indexBuffer"]),tZe(t,e)}const rZe=Uo(IZ,"vtkWebGPUVertexInput");var aZe={newInstance:rZe,extend:IZ};const iZe=` //VTK::Renderer::Dec //VTK::Color::Dec //VTK::Normal::Dec //VTK::TCoord::Dec //VTK::Select::Dec //VTK::Mapper::Dec //VTK::IOStructs::Dec @vertex fn main( //VTK::IOStructs::Input ) //VTK::IOStructs::Output { var output : vertexOutput; // var vertex: vec4 = vertexBC; //VTK::Color::Impl //VTK::Normal::Impl //VTK::TCoord::Impl //VTK::Select::Impl //VTK::Position::Impl return output; } `,oZe=` //VTK::Renderer::Dec //VTK::Color::Dec //VTK::Normal::Dec //VTK::TCoord::Dec //VTK::Select::Dec //VTK::RenderEncoder::Dec //VTK::Mapper::Dec //VTK::IOStructs::Dec @fragment fn main( //VTK::IOStructs::Input ) //VTK::IOStructs::Output { var output : fragmentOutput; //VTK::Color::Impl //VTK::Normal::Impl //VTK::Light::Impl //VTK::TCoord::Impl //VTK::Select::Impl // var computedColor:vec4 = vec4(1.0,0.5,0.5,1.0); //VTK::RenderEncoder::Impl return output; } `;function sZe(t,e){e.classHierarchy.push("vtkWebGPUSimpleMapper"),t.generateShaderDescriptions=(n,r,a)=>{const i=g4.newInstance({type:"vertex",hash:n,code:e.vertexShaderTemplate}),o=g4.newInstance({type:"fragment",hash:n,code:e.fragmentShaderTemplate}),s=r.getShaderDescriptions();s.push(i),s.push(o);const l=e.vertexShaderTemplate+e.fragmentShaderTemplate,u=new RegExp("//VTK::[^:]*::","g"),f=l.match(u).filter((d,h,p)=>p.indexOf(d)===h).map(d=>`replaceShader${d.substring(7,d.length-2)}`);for(let d=0;d{const i=r.getShaderDescription("vertex");i.replaceShaderCode(null,a),r.getShaderDescription("fragment").replaceShaderCode(i)},t.replaceShaderRenderEncoder=(n,r,a)=>{e.renderEncoder.replaceShaderCode(r)},e.shaderReplacements.set("replaceShaderRenderEncoder",t.replaceShaderRenderEncoder),t.replaceShaderRenderer=(n,r,a)=>{if(!e.WebGPURenderer)return;const i=e.WebGPURenderer.getBindGroup().getShaderCode(r),o=r.getShaderDescription("vertex");let s=o.getCode();s=Wn.substitute(s,"//VTK::Renderer::Dec",[i]).result,o.setCode(s);const l=r.getShaderDescription("fragment");s=l.getCode(),s=Wn.substitute(s,"//VTK::Renderer::Dec",[i]).result,l.setCode(s)},e.shaderReplacements.set("replaceShaderRenderer",t.replaceShaderRenderer),t.replaceShaderMapper=(n,r,a)=>{const i=e.bindGroup.getShaderCode(r),o=r.getShaderDescription("vertex");let s=o.getCode();s=Wn.substitute(s,"//VTK::Mapper::Dec",[i]).result,o.setCode(s);const l=r.getShaderDescription("fragment");l.addBuiltinInput("bool","@builtin(front_facing) frontFacing"),s=l.getCode(),s=Wn.substitute(s,"//VTK::Mapper::Dec",[i]).result,l.setCode(s)},e.shaderReplacements.set("replaceShaderMapper",t.replaceShaderMapper),t.replaceShaderPosition=(n,r,a)=>{const i=r.getShaderDescription("vertex");i.addBuiltinOutput("vec4","@builtin(position) Position");let o=i.getCode();o=Wn.substitute(o,"//VTK::Position::Impl",[" output.Position = rendererUBO.SCPCMatrix*vertexBC;"]).result,i.setCode(o)},e.shaderReplacements.set("replaceShaderPosition",t.replaceShaderPosition),t.replaceShaderTCoord=(n,r,a)=>{r.getShaderDescription("vertex").addOutput("vec2","tcoordVS")},e.shaderReplacements.set("replaceShaderTCoord",t.replaceShaderTCoord),t.addTextureView=n=>{e.textureViews.includes(n)||e.textureViews.push(n)},t.prepareToDraw=n=>{e.renderEncoder=n,t.updateInput(),t.updateBuffers(),t.updateBindings(),t.updatePipeline()},t.updateInput=()=>{},t.updateBuffers=()=>{},t.updateBindings=()=>{e.bindGroup.setBindables(t.getBindables())},t.computePipelineHash=()=>{},t.registerDrawCallback=n=>{n.registerDrawCallback(e.pipeline,t.draw)},t.prepareAndDraw=n=>{t.prepareToDraw(n),n.setPipeline(e.pipeline),t.draw(n)},t.draw=n=>{const r=n.getBoundPipeline();n.activateBindGroup(e.bindGroup),e.WebGPURenderer&&e.WebGPURenderer.bindUBO(n),r.bindVertexInput(n,e.vertexInput);const a=e.vertexInput.getIndexBuffer();a?n.drawIndexed(a.getIndexCount(),e.numberOfInstances,0,0,0):n.draw(e.numberOfVertices,e.numberOfInstances,0,0)},t.getBindables=()=>{const n=[...e.additionalBindables];e.UBO&&n.push(e.UBO),e.SSBO&&n.push(e.SSBO);for(let r=0;r{t.computePipelineHash(),e.pipeline=e.device.getPipeline(e.pipelineHash),e.pipeline||(e.pipeline=Hqe.newInstance(),e.pipeline.setDevice(e.device),e.WebGPURenderer&&e.pipeline.addBindGroupLayout(e.WebGPURenderer.getBindGroup()),e.pipeline.addBindGroupLayout(e.bindGroup),t.generateShaderDescriptions(e.pipelineHash,e.pipeline,e.vertexInput),e.pipeline.setTopology(e.topology),e.pipeline.setRenderEncoder(e.renderEncoder),e.pipeline.setVertexState(e.vertexInput.getVertexInputInformation()),e.device.createPipeline(e.pipelineHash,e.pipeline))}}const lZe={additionalBindables:void 0,bindGroup:null,device:null,fragmentShaderTemplate:null,numberOfInstances:1,numberOfVertices:0,pipelineHash:null,shaderReplacements:null,SSBO:null,textureViews:null,topology:"triangle-list",UBO:null,vertexShaderTemplate:null,WebGPURenderer:null};function BZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,lZe,n),AO.extend(t,e,n),e.textureViews=[],e.vertexInput=aZe.newInstance(),e.bindGroup=Pqe.newInstance({label:"mapperBG"}),e.additionalBindables=[],e.fragmentShaderTemplate=e.fragmentShaderTemplate||oZe,e.vertexShaderTemplate=e.vertexShaderTemplate||iZe,e.shaderReplacements=new Map,Q.get(t,e,["pipeline","vertexInput"]),Q.setGet(t,e,["additionalBindables","device","fragmentShaderTemplate","interpolate","numberOfInstances","numberOfVertices","pipelineHash","shaderReplacements","SSBO","textureViews","topology","UBO","vertexShaderTemplate","WebGPURenderer"]),sZe(t,e)}const uZe=Q.newInstance(BZ,"vtkWebGPUSimpleMapper");var VZ={newInstance:uZe,extend:BZ};function cZe(t,e){e.classHierarchy.push("vtkWebGPUFullScreenQuad"),t.replaceShaderPosition=(n,r,a)=>{const i=r.getShaderDescription("vertex");i.addBuiltinOutput("vec4","@builtin(position) Position"),i.addOutput("vec4","vertexVC");let o=i.getCode();o=Wn.substitute(o,"//VTK::Position::Impl",["output.tcoordVS = vec2(vertexBC.x * 0.5 + 0.5, 1.0 - vertexBC.y * 0.5 - 0.5);","output.Position = vec4(vertexBC, 1.0);","output.vertexVC = vec4(vertexBC, 1);"]).result,i.setCode(o)},e.shaderReplacements.set("replaceShaderPosition",t.replaceShaderPosition),t.updateBuffers=()=>{const n=e.device.getBufferManager().getFullScreenQuadBuffer();e.vertexInput.addBuffer(n,["vertexBC"]),e.numberOfVertices=6}}const fZe={};function PZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,fZe,n),VZ.extend(t,e,n),cZe(t,e)}const dZe=Q.newInstance(PZ,"vtkWebGPUFullScreenQuad");var xx={newInstance:dZe,extend:PZ};const xC=["setBindGroup","setIndexBuffer","setVertexBuffer","draw","drawIndexed"];function hZe(t,e){e.classHierarchy.push("vtkWebGPURenderEncoder"),t.begin=n=>{e.drawCallbacks=[],e.handle=n.beginRenderPass(e.description),e.label&&e.handle.pushDebugGroup(e.label)},t.end=()=>{for(let n=0;n{var a,i;if(e.boundPipeline===n)return;e.handle.setPipeline(n.getHandle());const r=n.getPipelineDescription();if(e.colorTextureViews.length!==r.fragment.targets.length)console.log(`mismatched attachment counts on pipeline ${r.fragment.targets.length} while encoder has ${e.colorTextureViews.length}`),console.trace();else for(let o=0;o{e.replaceShaderCodeFunction(n)},t.setColorTextureView=(n,r)=>{e.colorTextureViews[n]!==r&&(e.colorTextureViews[n]=r)},t.activateBindGroup=n=>{const r=e.boundPipeline.getDevice(),a=e.boundPipeline.getBindGroupLayoutCount(n.getLabel());e.handle.setBindGroup(a,n.getBindGroup(r));const i=r.getBindGroupLayoutDescription(n.getBindGroupLayout(r)),o=r.getBindGroupLayoutDescription(e.boundPipeline.getBindGroupLayout(a));i!==o&&(console.log(`renderEncoder ${e.pipelineHash} mismatched bind group layouts bind group has ${i} versus pipeline ${o} `),console.trace())},t.attachTextureViews=()=>{for(let n=0;n{for(let a=0;a2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,vZe,n),$o(t,e),e.description={colorAttachments:[{view:void 0,loadOp:"load",storeOp:"store"}],depthStencilAttachment:{view:void 0,depthLoadOp:"clear",depthClearValue:0,depthStoreOp:"store"}},e.replaceShaderCodeFunction=r=>{const a=r.getShaderDescription("fragment");a.addOutput("vec4","outColor");let i=a.getCode();i=Wn.substitute(i,"//VTK::RenderEncoder::Impl",["output.outColor = computedColor;"]).result,a.setCode(i)},e.pipelineSettings={primitive:{cullMode:"none"},depthStencil:{depthWriteEnabled:!0,depthCompare:"greater-equal",format:"depth32float"},fragment:{targets:[{format:"rgba16float",blend:{color:{srcFactor:"src-alpha",dstFactor:"one-minus-src-alpha"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}},e.colorTextureViews=[],Is(t,e,["boundPipeline","colorTextureViews"]),Bs(t,e,["depthTextureView","description","handle","label","pipelineHash","pipelineSettings","replaceShaderCodeFunction"]),hZe(t,e)}const pZe=Uo(FZ,"vtkWebGPURenderEncoder");var il={newInstance:pZe,extend:FZ};const gZe={Verts:0,Lines:1,Triangles:2,Strips:3,LinesFromStrips:4,LinesFromTriangles:5,Points:6,UniformArray:7,PointArray:8,NormalsFromPoints:9,Texture:10,RawVertex:11,Storage:12,Index:13},yZe={Start:0,Points:0,Lines:1,Triangles:2,TriangleStrips:3,TriangleEdges:4,TriangleStripEdges:5,End:6};var em={BufferUsage:gZe,PrimitiveTypes:yZe};const CC=["getMappedRange","mapAsync","unmap"];function mZe(t,e,n,r){const a=r.byteLength,i=t.createBuffer({size:a,usage:GPUBufferUsage.COPY_SRC,mappedAtCreation:!0}),o=i.getMappedRange(0,a);new Uint8Array(o).set(new Uint8Array(r)),i.unmap();const s=t.createCommandEncoder();s.copyBufferToBuffer(i,0,e,n,a);const l=s.finish();t.queue.submit([l]),i.destroy()}function bZe(t,e){e.classHierarchy.push("vtkWebGPUBuffer"),t.create=(n,r)=>{e.handle=e.device.getHandle().createBuffer({size:n,usage:r,label:e.label}),e.sizeInBytes=n,e.usage=r},t.write=n=>{mZe(e.device.getHandle(),e.handle,0,n.buffer)},t.createAndWrite=(n,r)=>{e.handle=e.device.getHandle().createBuffer({size:n.byteLength,usage:r,mappedAtCreation:!0,label:e.label}),e.sizeInBytes=n.byteLength,e.usage=r,new Uint8Array(e.handle.getMappedRange()).set(new Uint8Array(n.buffer)),e.handle.unmap()};for(let n=0;n2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,SZe,n),Q.obj(t,e),Q.get(t,e,["handle","sizeInBytes","usage"]),Q.setGet(t,e,["strideInBytes","device","arrayInformation","label","sourceTime"]),bZe(t,e)}const _Ze=Q.newInstance(zZ);var kv={newInstance:_Ze,extend:zZ,...em};const{Representation:m4}=mx,{PrimitiveTypes:lu}=em;class wZe{constructor(){this.keys=new Uint32Array(10),this.values=new Uint32Array(10),this.count=0}clear(){this.count=0}has(e){for(let n=0;n2)for(let i=0;i2){for(let i=0;i{const r=n.cells,a=n.primitiveType,i=n.representation,o=n.cellOffset,s=r.getData(),l=s.length,u=xZe(a),c=n.numberOfPoints,f={provokedPointIds:new Uint8Array(c),extraPoints:0,iboSize:0,flatId:0,iboId:0,cellProvokedMap:new wZe};let d=null;i===m4.POINTS||a===lu.Points?d=TC.anythingToPoints:i===m4.WIREFRAME||a===lu.Lines?d=TC[`${u}ToWireframe`]:d=TC[`${u}ToSurface`],Xs=TZe;let h=o||0;for(let p=0;p2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,MZe,n),kv.extend(t,e,n),Q.setGet(t,e,["flatIdToPointId","flatIdToCellId","flatSize","indexCount"]),EZe(t,e)}const kZe=Q.newInstance(GZ);var DZe={newInstance:kZe,extend:GZ,...em};const{BufferUsage:Gl}=em,{vtkErrorMacro:RZe}=px,{VtkDataTypes:Tc}=Kn,LZe={};function AZe(t){let e;switch(t.getDataType()){case Tc.UNSIGNED_CHAR:e="uint8";break;case Tc.FLOAT:e="float32";break;case Tc.UNSIGNED_INT:e="uint32";break;case Tc.INT:e="sint32";break;case Tc.DOUBLE:e="float32";break;case Tc.UNSIGNED_SHORT:e="uint16";break;case Tc.SHORT:e="sin16";break;default:e="float32";break}switch(t.getNumberOfComponents()){case 2:e+="x2";break;case 3:e.includes("32")||RZe(`unsupported x3 type for ${e}`),e+="x3";break;case 4:e+="x4";break}return e}function S4(t,e,n,r,a){const i={},o=t.getFlatSize();if(!o)return i;let s=[0,0,0,0];a.shift&&(a.shift.length?s=a.shift:s.fill(a.shift));let l=[1,1,1,1];a.scale&&(a.scale.length?l=a.scale:l.fill(a.scale));const u=Object.prototype.hasOwnProperty.call(a,"packExtra")?a.packExtra:!1;let c,f=0;const d=n+(u?1:0),h=Qv(r,o*d);let p=t.getFlatIdToPointId();a.cellData&&(p=t.getFlatIdToCellId()),n===1?c=function(g){h[f++]=l[0]*e[g]+s[0]}:n===2?c=function(g){h[f++]=l[0]*e[g]+s[0],h[f++]=l[1]*e[g+1]+s[1]}:n===3&&!u?c=function(g){h[f++]=l[0]*e[g]+s[0],h[f++]=l[1]*e[g+1]+s[1],h[f++]=l[2]*e[g+2]+s[2]}:n===3&&u?c=function(g){h[f++]=l[0]*e[g]+s[0],h[f++]=l[1]*e[g+1]+s[1],h[f++]=l[2]*e[g+2]+s[2],h[f++]=l[3]*1+s[3]}:n===4&&(c=function(g){h[f++]=l[0]*e[g]+s[0],h[f++]=l[1]*e[g+1]+s[1],h[f++]=l[2]*e[g+2]+s[2],h[f++]=l[3]*e[g+3]+s[3]});for(let v=0;ve.device.hasCachedObject(r),t.getBuffer=r=>r.hash?e.device.getCachedObject(r.hash,n,r):n(r),t.getBufferForPointArray=(r,a)=>{const i=AZe(r),o={hash:`${r.getMTime()}I${a.getMTime()}${i}`,usage:Gl.PointArray,format:i,dataArray:r,indexBuffer:a};return t.getBuffer(o)},t.getFullScreenQuadBuffer=()=>{if(e.fullScreenQuadBuffer)return e.fullScreenQuadBuffer;e.fullScreenQuadBuffer=kv.newInstance(),e.fullScreenQuadBuffer.setDevice(e.device);const r=new Float32Array([-1,-1,0,1,-1,0,1,1,0,-1,-1,0,1,1,0,-1,1,0]);return e.fullScreenQuadBuffer.createAndWrite(r,GPUBufferUsage.VERTEX),e.fullScreenQuadBuffer.setStrideInBytes(12),e.fullScreenQuadBuffer.setArrayInformation([{offset:0,format:"float32x3"}]),e.fullScreenQuadBuffer}}const IZe={device:null,fullScreenQuadBuffer:null};function HZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,IZe,n),$o(t,e),Bs(t,e,["device"]),$Ze(t,e)}const BZe=Uo(HZ);var tm={newInstance:BZe,extend:HZ,...LZe,...em};function VZe(t,e){e.classHierarchy.push("vtkWebGPUSampler"),t.create=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.device=n,e.options.addressModeU=r.addressModeU?r.addressModeU:"clamp-to-edge",e.options.addressModeV=r.addressModeV?r.addressModeV:"clamp-to-edge",e.options.addressModeW=r.addressModeW?r.addressModeW:"clamp-to-edge",e.options.magFilter=r.magFilter?r.magFilter:"nearest",e.options.minFilter=r.minFilter?r.minFilter:"nearest",e.options.mipmapFilter=r.mipmapFilter?r.mipmapFilter:"nearest",e.options.label=e.label,e.handle=e.device.getHandle().createSampler(e.options),e.bindGroupTime.modified()},t.getShaderCode=(n,r)=>`@binding(${n}) @group(${r}) var ${e.label}: sampler;`,t.getBindGroupEntry=()=>({resource:e.handle})}const PZe={device:null,handle:null,label:null,options:null};function UZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,PZe,n),Q.obj(t,e),e.options={},e.bindGroupLayoutEntry={visibility:GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT,sampler:{}},e.bindGroupTime={},Q.obj(e.bindGroupTime,{mtime:0}),Q.get(t,e,["bindGroupTime","handle","options"]),Q.setGet(t,e,["bindGroupLayoutEntry","device","label"]),VZe(t,e)}const FZe=Q.newInstance(UZ);var NO={newInstance:FZe,extend:UZ};function zZe(t,e){e.classHierarchy.push("vtkWebGPUTextureView"),t.create=(n,r)=>{e.texture=n,e.options=r,e.options.dimension=e.options.dimension||"2d",e.options.label=e.label,e.textureHandle=n.getHandle(),e.handle=e.textureHandle.createView(e.options),e.bindGroupLayoutEntry.texture.viewDimension=e.options.dimension;const a=ua.getDetailsFromTextureFormat(e.texture.getFormat());e.bindGroupLayoutEntry.texture.sampleType=a.sampleType},t.createFromTextureHandle=(n,r)=>{e.texture=null,e.options=r,e.options.dimension=e.options.dimension||"2d",e.options.label=e.label,e.textureHandle=n,e.handle=e.textureHandle.createView(e.options),e.bindGroupLayoutEntry.texture.viewDimension=e.options.dimension;const a=ua.getDetailsFromTextureFormat(r.format);e.bindGroupLayoutEntry.texture.sampleType=a.sampleType,e.bindGroupTime.modified()},t.getBindGroupEntry=()=>({resource:t.getHandle()}),t.getShaderCode=(n,r)=>{let a="f32";e.bindGroupLayoutEntry.texture.sampleType==="sint"?a="i32":e.bindGroupLayoutEntry.texture.sampleType==="uint"&&(a="u32");let i=`@binding(${n}) @group(${r}) var ${e.label}: texture_${e.options.dimension}<${a}>;`;return e.bindGroupLayoutEntry.texture.sampleType==="depth"&&(i=`@binding(${n}) @group(${r}) var ${e.label}: texture_depth_${e.options.dimension};`),i},t.addSampler=(n,r)=>{const a=NO.newInstance({label:`${e.label}Sampler`});a.create(n,r),t.setSampler(a)},t.getBindGroupTime=()=>(e.texture&&e.texture.getHandle()!==e.textureHandle&&(e.textureHandle=e.texture.getHandle(),e.handle=e.textureHandle.createView(e.options),e.bindGroupTime.modified()),e.bindGroupTime),t.getHandle=()=>(e.texture&&e.texture.getHandle()!==e.textureHandle&&(e.textureHandle=e.texture.getHandle(),e.handle=e.textureHandle.createView(e.options),e.bindGroupTime.modified()),e.handle)}const GZe={texture:null,handle:null,sampler:null,label:null};function WZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,GZe,n),Q.obj(t,e),e.bindGroupLayoutEntry={visibility:GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT,texture:{sampleType:"float",viewDimension:"2d"}},e.bindGroupTime={},Q.obj(e.bindGroupTime,{mtime:0}),Q.get(t,e,["bindGroupTime","texture"]),Q.setGet(t,e,["bindGroupLayoutEntry","label","sampler"]),zZe(t,e)}const HZe=Q.newInstance(WZ);var jZ={newInstance:HZe,extend:WZ};function UZe(t,e){e.classHierarchy.push("vtkTexture"),t.imageLoaded=()=>{e.image.removeEventListener("load",t.imageLoaded),e.imageLoaded=!0,t.modified()},t.setJsImageData=n=>{e.jsImageData!==n&&(n!==null&&(t.setInputData(null),t.setInputConnection(null),e.image=null,e.canvas=null),e.jsImageData=n,e.imageLoaded=!0,t.modified())},t.setCanvas=n=>{e.canvas!==n&&(n!==null&&(t.setInputData(null),t.setInputConnection(null),e.image=null,e.jsImageData=null),e.canvas=n,t.modified())},t.setImage=n=>{e.image!==n&&(n!==null&&(t.setInputData(null),t.setInputConnection(null),e.canvas=null,e.jsImageData=null),e.image=n,e.imageLoaded=!1,n.complete?t.imageLoaded():n.addEventListener("load",t.imageLoaded),t.modified())},t.getDimensionality=()=>{let n=0,r=0,a=1;if(t.getInputData()){const o=t.getInputData();n=o.getDimensions()[0],r=o.getDimensions()[1],a=o.getDimensions()[2]}return e.jsImageData&&(n=e.jsImageData.width,r=e.jsImageData.height),e.canvas&&(n=e.canvas.width,r=e.canvas.height),e.image&&(n=e.image.width,r=e.image.height),(n>1)+(r>1)+(a>1)},t.getInputAsJsImageData=()=>{if(!e.imageLoaded||t.getInputData())return null;if(e.jsImageData)return e.jsImageData();if(e.canvas)return e.canvas.getContext("2d").getImageData(0,0,e.canvas.width,e.canvas.height);if(e.image){const n=document.createElement("canvas");n.width=e.image.width,n.height=e.image.height;const r=n.getContext("2d");return r.translate(0,n.height),r.scale(1,-1),r.drawImage(e.image,0,0,e.image.width,e.image.height),r.getImageData(0,0,n.width,n.height)}return null}}const WZe=(t,e,n,r)=>{const a=[1,2,1],i=4,o=a,s=i,l=t.length/(e*n);let u=e,c=n,f=t;const d=[f];for(let h=0;hl&&(T+=v),k<-l&&(T-=v),y[T]?w+=y[T]*o[C]:x-=o[C],_+=1}f[m+b]=w/x}y=[...f];for(let m=0;m2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,jZe,n),Q.obj(t,e),Q.algo(t,e,6,0),Q.get(t,e,["canvas","image","jsImageData","imageLoaded","resizable"]),Q.setGet(t,e,["repeat","edgeClamp","interpolate","mipLevel"]),UZe(t,e)}const KZe=Q.newInstance(KZ,"vtkTexture"),YZe={generateMipmaps:WZe};var YZ={newInstance:KZe,extend:KZ,...YZe};const{BufferUsage:_4}=tm;function XZe(t,e){e.classHierarchy.push("vtkWebGPUTexture"),t.create=(n,r)=>{e.device=n,e.width=r.width,e.height=r.height,e.depth=r.depth?r.depth:1;const a=e.depth===1?"2d":"3d";e.format=r.format?r.format:"rgba8unorm",e.mipLevel=r.mipLevel?r.mipLevel:0,e.usage=r.usage?r.usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST,e.handle=e.device.getHandle().createTexture({size:[e.width,e.height,e.depth],format:e.format,usage:e.usage,label:e.label,dimension:a,mipLevelCount:e.mipLevel+1})},t.assignFromHandle=(n,r,a)=>{e.device=n,e.handle=r,e.width=a.width,e.height=a.height,e.depth=a.depth?a.depth:1,e.format=a.format?a.format:"rgba8unorm",e.usage=a.usage?a.usage:GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST},t.writeImageData=n=>{let r=[];if(n.canvas){e.device.getHandle().queue.copyExternalImageToTexture({source:n.canvas,flipY:n.flip},{texture:e.handle,premultipliedAlpha:!0},[e.width,e.height,e.depth]),e.ready=!0;return}n.jsImageData&&!n.nativeArray&&(n.width=n.jsImageData.width,n.height=n.jsImageData.height,n.depth=1,n.format="rgba8unorm",n.flip=!0,n.nativeArray=n.jsImageData.data);const a=ua.getDetailsFromTextureFormat(e.format);let i=e.width*a.stride;const o=(l,u,c)=>{const f=l.length/(u*c)*l.BYTES_PER_ELEMENT,d=a.elementSize===2&&a.sampleType==="float";if(d||f%256){const h=l,p=f/h.BYTES_PER_ELEMENT,v=a.elementSize,g=256*Math.floor((p*v+255)/256),y=g/v,m=Q.newTypedArray(d?"Uint16Array":h.constructor.name,y*u*c);for(let b=0;b{const n=ua.getDetailsFromTextureFormat(e.format);return n.elementSize===2&&n.sampleType==="float"?1:255},t.getNumberOfComponents=()=>ua.getDetailsFromTextureFormat(e.format).numComponents,t.getDimensionality=()=>{let n=0;return e.width>1&&n++,e.height>1&&n++,e.depth>1&&n++,n},t.resizeToMatch=n=>{(n.getWidth()!==e.width||n.getHeight()!==e.height||n.getDepth()!==e.depth)&&(e.width=n.getWidth(),e.height=n.getHeight(),e.depth=n.getDepth(),e.handle=e.device.getHandle().createTexture({size:[e.width,e.height,e.depth],format:e.format,usage:e.usage,label:e.label}))},t.resize=function(n,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;(n!==e.width||r!==e.height||a!==e.depth)&&(e.width=n,e.height=r,e.depth=a,e.handle=e.device.getHandle().createTexture({size:[e.width,e.height,e.depth],format:e.format,usage:e.usage,label:e.label}))},t.createView=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.dimension||(r.dimension=e.depth===1?"2d":"3d");const a=jZ.newInstance({label:n});return a.create(t,r),a}}const qZe={device:null,handle:null,buffer:null,ready:!1,label:null};function XZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,qZe,n),Q.obj(t,e),Q.get(t,e,["handle","ready","width","height","depth","format","usage"]),Q.setGet(t,e,["device","label"]),XZe(t,e)}const ZZe=Q.newInstance(XZ);var bs={newInstance:ZZe,extend:XZ};function QZe(t,e){e.classHierarchy.push("vtkWebGPUOpaquePass"),t.traverse=(n,r)=>{if(e.deleted)return;e._currentParent=r;const a=r.getDevice();if(e.renderEncoder)e.colorTexture.resize(r.getCanvas().width,r.getCanvas().height),e.depthTexture.resize(r.getCanvas().width,r.getCanvas().height);else{t.createRenderEncoder(),e.colorTexture=bs.newInstance({label:"opaquePassColor"}),e.colorTexture.create(a,{width:r.getCanvas().width,height:r.getCanvas().height,format:"rgba16float",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_SRC});const i=e.colorTexture.createView("opaquePassColorTexture");e.renderEncoder.setColorTextureView(0,i),e.depthFormat="depth32float",e.depthTexture=bs.newInstance({label:"opaquePassDepth"}),e.depthTexture.create(a,{width:r.getCanvas().width,height:r.getCanvas().height,format:e.depthFormat,usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_SRC});const o=e.depthTexture.createView("opaquePassDepthTexture");e.renderEncoder.setDepthTextureView(o)}e.renderEncoder.attachTextureViews(),t.setCurrentOperation("opaquePass"),n.setRenderEncoder(e.renderEncoder),n.traverse(t)},t.getColorTextureView=()=>e.renderEncoder.getColorTextureViews()[0],t.getDepthTextureView=()=>e.renderEncoder.getDepthTextureView(),t.createRenderEncoder=()=>{e.renderEncoder=il.newInstance({label:"OpaquePass"}),e.renderEncoder.setPipelineHash("op")}}const JZe={renderEncoder:null,colorTexture:null,depthTexture:null};function qZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,JZe,n),Ll.extend(t,e,n),Q.get(t,e,["colorTexture","depthTexture"]),QZe(t,e)}const eQe=Q.newInstance(qZ,"vtkWebGPUOpaquePass");var tQe={newInstance:eQe,extend:qZ};const nQe=` //VTK::Mapper::Dec //VTK::TCoord::Dec //VTK::RenderEncoder::Dec //VTK::IOStructs::Dec @fragment fn main( //VTK::IOStructs::Input ) //VTK::IOStructs::Output { var output: fragmentOutput; var tcoord: vec2 = vec2(i32(input.fragPos.x), i32(input.fragPos.y)); var reveal: f32 = textureLoad(oitpAccumTexture, tcoord, 0).r; if (reveal == 1.0) { discard; } var tcolor: vec4 = textureLoad(oitpColorTexture, tcoord, 0); var total: f32 = max(tcolor.a, 0.01); var computedColor: vec4 = vec4(tcolor.r/total, tcolor.g/total, tcolor.b/total, 1.0 - reveal); //VTK::RenderEncoder::Impl return output; } `;function rQe(t,e){e.classHierarchy.push("vtkWebGPUOrderIndependentTranslucentPass"),t.traverse=(n,r)=>{if(e.deleted)return;e._currentParent=r;const a=r.getDevice();if(e.translucentRenderEncoder)e.translucentColorTexture.resizeToMatch(e.colorTextureView.getTexture()),e.translucentAccumulateTexture.resizeToMatch(e.colorTextureView.getTexture());else{t.createRenderEncoder(),t.createFinalEncoder(),e.translucentColorTexture=bs.newInstance({label:"translucentPassColor"}),e.translucentColorTexture.create(a,{width:r.getCanvas().width,height:r.getCanvas().height,format:"rgba16float",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING});const i=e.translucentColorTexture.createView("oitpColorTexture");e.translucentRenderEncoder.setColorTextureView(0,i),e.translucentAccumulateTexture=bs.newInstance({label:"translucentPassAccumulate"}),e.translucentAccumulateTexture.create(a,{width:r.getCanvas().width,height:r.getCanvas().height,format:"r16float",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING});const o=e.translucentAccumulateTexture.createView("oitpAccumTexture");e.translucentRenderEncoder.setColorTextureView(1,o),e.fullScreenQuad=xx.newInstance(),e.fullScreenQuad.setDevice(r.getDevice()),e.fullScreenQuad.setPipelineHash("oitpfsq"),e.fullScreenQuad.setTextureViews(e.translucentRenderEncoder.getColorTextureViews()),e.fullScreenQuad.setFragmentShaderTemplate(nQe)}e.translucentRenderEncoder.setDepthTextureView(e.depthTextureView),e.translucentRenderEncoder.attachTextureViews(),t.setCurrentOperation("translucentPass"),n.setRenderEncoder(e.translucentRenderEncoder),n.traverse(t),t.finalPass(r,n)},t.finalPass=(n,r)=>{e.translucentFinalEncoder.setColorTextureView(0,e.colorTextureView),e.translucentFinalEncoder.attachTextureViews(),e.translucentFinalEncoder.begin(n.getCommandEncoder()),r.scissorAndViewport(e.translucentFinalEncoder),e.fullScreenQuad.prepareAndDraw(e.translucentFinalEncoder),e.translucentFinalEncoder.end()},t.getTextures=()=>[e.translucentColorTexture,e.translucentAccumulateTexture],t.createRenderEncoder=()=>{e.translucentRenderEncoder=il.newInstance({label:"translucentRender"});const n=e.translucentRenderEncoder.getDescription();n.colorAttachments=[{view:void 0,clearValue:[0,0,0,0],loadOp:"clear",storeOp:"store"},{view:void 0,clearValue:[1,0,0,0],loadOp:"clear",storeOp:"store"}],n.depthStencilAttachment={view:void 0,depthLoadOp:"load",depthStoreOp:"store"},e.translucentRenderEncoder.setReplaceShaderCodeFunction(r=>{const a=r.getShaderDescription("fragment");a.addOutput("vec4","outColor"),a.addOutput("f32","outAccum"),a.addBuiltinInput("vec4","@builtin(position) fragPos");let i=a.getCode();i=Wn.substitute(i,"//VTK::RenderEncoder::Impl",["var w: f32 = computedColor.a * pow(0.1 + input.fragPos.z, 2.0);","output.outColor = vec4(computedColor.rgb*w, w);","output.outAccum = computedColor.a;"]).result,a.setCode(i)}),e.translucentRenderEncoder.setPipelineHash("oitpr"),e.translucentRenderEncoder.setPipelineSettings({primitive:{cullMode:"none"},depthStencil:{depthWriteEnabled:!1,depthCompare:"greater",format:"depth32float"},fragment:{targets:[{format:"rgba16float",blend:{color:{srcFactor:"one",dstFactor:"one"},alpha:{srcfactor:"one",dstFactor:"one"}}},{format:"r16float",blend:{color:{srcFactor:"zero",dstFactor:"one-minus-src"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}})},t.createFinalEncoder=()=>{e.translucentFinalEncoder=il.newInstance({label:"translucentFinal"}),e.translucentFinalEncoder.setDescription({colorAttachments:[{view:null,loadOp:"load",storeOp:"store"}]}),e.translucentFinalEncoder.setReplaceShaderCodeFunction(n=>{const r=n.getShaderDescription("fragment");r.addOutput("vec4","outColor"),r.addBuiltinInput("vec4","@builtin(position) fragPos");let a=r.getCode();a=Wn.substitute(a,"//VTK::RenderEncoder::Impl",["output.outColor = vec4(computedColor.rgb, computedColor.a);"]).result,r.setCode(a)}),e.translucentFinalEncoder.setPipelineHash("oitpf"),e.translucentFinalEncoder.setPipelineSettings({primitive:{cullMode:"none"},fragment:{targets:[{format:"rgba16float",blend:{color:{srcFactor:"src-alpha",dstFactor:"one-minus-src-alpha"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}})}}const aQe={colorTextureView:null,depthTextureView:null};function ZZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,aQe,n),Ll.extend(t,e,n),Q.setGet(t,e,["colorTextureView","depthTextureView"]),rQe(t,e)}const iQe=Q.newInstance(ZZ,"vtkWebGPUOrderIndependentTranslucentPass");var oQe={newInstance:iQe,extend:ZZ};const{BufferUsage:sQe}=tm,{vtkErrorMacro:EC}=Q;function lQe(t,e){e.classHierarchy.push("vtkWebGPUUniformBuffer"),t.addEntry=(n,r)=>{if(e._bufferEntryNames.has(n)){EC(`entry named ${n} already exists`);return}e.sortDirty=!0,e._bufferEntryNames.set(n,e.bufferEntries.length),e.bufferEntries.push({name:n,type:r,sizeInBytes:ua.getByteStrideFromShaderFormat(r),offset:-1,nativeType:ua.getNativeTypeFromShaderFormat(r),packed:!1})},t.sortBufferEntries=()=>{if(!e.sortDirty)return;let n=0;const r=[];let a=4;for(let i=0;i4&&(o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes)}for(let i=0;i{if(!e.UBO){const r={nativeArray:e.Float32Array,usage:sQe.UniformArray,label:e.label};e.UBO=n.getBufferManager().getBuffer(r),e.bindGroupTime.modified(),e.sendDirty=!1}e.sendDirty&&(n.getHandle().queue.writeBuffer(e.UBO.getHandle(),0,e.arrayBuffer,0,e.sizeInBytes),e.sendDirty=!1),e.sendTime.modified()},t.createView=n=>{n in e||(e.arrayBuffer||(e.arrayBuffer=new ArrayBuffer(e.sizeInBytes)),e[n]=Q.newTypedArray(n,e.arrayBuffer))},t.setValue=(n,r)=>{t.sortBufferEntries();const a=e._bufferEntryNames.get(n);if(a===void 0){EC(`entry named ${n} not found in UBO`);return}const i=e.bufferEntries[a];t.createView(i.nativeType);const o=e[i.nativeType];i.lastValue!==r&&(o[i.offset/o.BYTES_PER_ELEMENT]=r,e.sendDirty=!0),i.lastValue=r},t.setArray=(n,r)=>{t.sortBufferEntries();const a=e._bufferEntryNames.get(n);if(a===void 0){EC(`entry named ${n} not found in UBO`);return}const i=e.bufferEntries[a];t.createView(i.nativeType);const o=e[i.nativeType];let s=!1;for(let l=0;l({resource:{buffer:e.UBO.getHandle()}}),t.getSendTime=()=>e.sendTime.getMTime(),t.getShaderCode=(n,r)=>{t.sortBufferEntries();const a=[`struct ${e.label}Struct {`];for(let i=0;i ${e.label}: ${e.label}Struct;`),a.join(` `)}}const uQe={bufferEntries:null,bufferEntryNames:null,sizeInBytes:0,label:null,bindGroupLayoutEntry:null,bindGroupEntry:null};function QZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,uQe,n),Q.obj(t,e),e._bufferEntryNames=new Map,e.bufferEntries=[],e.bindGroupLayoutEntry=e.bindGroupLayoutEntry||{buffer:{type:"uniform"}},e.sendTime={},Q.obj(e.sendTime,{mtime:0}),e.bindGroupTime={},Q.obj(e.bindGroupTime,{mtime:0}),e.sendDirty=!0,e.sortDirty=!0,Q.get(t,e,["binding","bindGroupTime"]),Q.setGet(t,e,["bindGroupLayoutEntry","device","label","sizeInBytes"]),lQe(t,e)}const cQe=Q.newInstance(QZ,"vtkWebGPUUniformBuffer");var JZ={newInstance:cQe,extend:QZ};const{BufferUsage:fQe}=tm,{vtkErrorMacro:Id}=Q;function dQe(t,e){e.classHierarchy.push("vtkWebGPUStorageBuffer"),t.addEntry=(n,r)=>{if(e._bufferEntryNames.has(n)){Id(`entry named ${n} already exists`);return}e._bufferEntryNames.set(n,e.bufferEntries.length);const a=ua.getByteStrideFromShaderFormat(r);e.bufferEntries.push({name:n,type:r,sizeInBytes:a,offset:e.sizeInBytes,nativeType:ua.getNativeTypeFromShaderFormat(r)}),e.sizeInBytes+=a},t.send=n=>{if(!e._buffer){const r={nativeArray:e.Float32Array,usage:fQe.Storage,label:e.label};e._buffer=n.getBufferManager().getBuffer(r),e.bindGroupTime.modified(),e._sendTime.modified();return}n.getHandle().queue.writeBuffer(e._buffer.getHandle(),0,e.arrayBuffer,0,e.sizeInBytes*e.numberOfInstances),e._sendTime.modified()},t.createView=n=>{n in e||(e.arrayBuffer||(e.arrayBuffer=new ArrayBuffer(e.sizeInBytes*e.numberOfInstances)),e[n]=Q.newTypedArray(n,e.arrayBuffer))},t.setValue=(n,r,a)=>{const i=e._bufferEntryNames.get(n);if(i===void 0){Id(`entry named ${n} not found in UBO`);return}const o=e.bufferEntries[i];t.createView(o.nativeType);const s=e[o.nativeType];s[(o.offset+r*e.sizeInBytes)/s.BYTES_PER_ELEMENT]=a},t.setArray=(n,r,a)=>{const i=e._bufferEntryNames.get(n);if(i===void 0){Id(`entry named ${n} not found in UBO`);return}const o=e.bufferEntries[i];t.createView(o.nativeType);const s=e[o.nativeType],l=(o.offset+r*e.sizeInBytes)/s.BYTES_PER_ELEMENT;for(let u=0;u{const a=e._bufferEntryNames.get(n);if(a===void 0){Id(`entry named ${n} not found in UBO`);return}const i=e.bufferEntries[a];t.createView(i.nativeType);const o=e[i.nativeType],s=r.length/e.numberOfInstances;for(let l=0;l{const a=e._bufferEntryNames.get(n);if(a===void 0){Id(`entry named ${n} not found in UBO`);return}const i=e.bufferEntries[a];t.createView(i.nativeType);const o=e[i.nativeType],s=r.length/e.numberOfInstances;for(let l=0;l{const a=e._bufferEntryNames.get(n);if(a===void 0){Id(`entry named ${n} not found in UBO`);return}const i=e.bufferEntries[a];t.createView(i.nativeType);const o=e[i.nativeType],s=9;for(let l=0;le._sendTime.getMTime(),t.getShaderCode=(n,r)=>{const a=[`struct ${e.label}StructEntry {`];for(let i=0;i, }; @binding(${n}) @group(${r}) var ${e.label}: ${e.label}Struct; `),a.join(` `)},t.getBindGroupEntry=()=>({resource:{buffer:e._buffer.getHandle()}}),t.clearData=()=>{e.numberOfInstances=0,e.sizeInBytes=0,e.bufferEntries=[],e._bufferEntryNames=new Map,e._buffer=null,delete e.arrayBuffer,delete e.Float32Array}}const hQe={bufferEntries:null,bufferEntryNames:null,sizeInBytes:0,label:null,numberOfInstances:1};function eQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,hQe,n),Q.obj(t,e),e._bufferEntryNames=new Map,e.bufferEntries=[],e._sendTime={},Q.obj(e._sendTime,{mtime:0}),e.bindGroupTime={},Q.obj(e.bindGroupTime,{mtime:0}),e.bindGroupLayoutEntry=e.bindGroupLayoutEntry||{buffer:{type:"read-only-storage"}},Q.get(t,e,["bindGroupTime"]),Q.setGet(t,e,["device","bindGroupLayoutEntry","label","numberOfInstances","sizeInBytes"]),dQe(t,e)}const vQe=Q.newInstance(eQ,"vtkWebGPUStorageBuffer");var w4={newInstance:vQe,extend:eQ};const Bd={COMPOSITE_BLEND:0,MAXIMUM_INTENSITY_BLEND:1,MINIMUM_INTENSITY_BLEND:2,AVERAGE_INTENSITY_BLEND:3,ADDITIVE_INTENSITY_BLEND:4,RADON_TRANSFORM_BLEND:5},pQe=` //VTK::Renderer::Dec //VTK::Mapper::Dec //VTK::TCoord::Dec //VTK::Volume::TraverseDec //VTK::RenderEncoder::Dec //VTK::IOStructs::Dec fn getTextureValue(vTex: texture_3d, tpos: vec4) -> f32 { // todo multicomponent support return textureSampleLevel(vTex, clampSampler, tpos.xyz, 0.0).r; } fn getGradient(vTex: texture_3d, tpos: vec4, vNum: i32, scalar: f32) -> vec4 { var result: vec4; var tstep: vec4 = volumeSSBO.values[vNum].tstep; result.x = getTextureValue(vTex, tpos + vec4(tstep.x, 0.0, 0.0, 1.0)) - scalar; result.y = getTextureValue(vTex, tpos + vec4(0.0, tstep.y, 0.0, 1.0)) - scalar; result.z = getTextureValue(vTex, tpos + vec4(0.0, 0.0, tstep.z, 1.0)) - scalar; result.w = 0.0; // divide by spacing as that is our delta result = result / volumeSSBO.values[vNum].spacing; // now we have a gradient in unit tcoords var grad: f32 = length(result.xyz); if (grad > 0.0) { // rotate to View Coords, needed for lighting and shading var nMat: mat4x4 = rendererUBO.SCVCMatrix * volumeSSBO.values[vNum].planeNormals; result = nMat * result; result = result / length(result); } // store gradient magnitude in .w result.w = grad; return result; } fn processVolume(vTex: texture_3d, vNum: i32, cNum: i32, posSC: vec4, tfunRows: f32) -> vec4 { var outColor: vec4 = vec4(0.0, 0.0, 0.0, 0.0); // convert to tcoords and reject if outside the volume var tpos: vec4 = volumeSSBO.values[vNum].SCTCMatrix*posSC; if (tpos.x < 0.0 || tpos.y < 0.0 || tpos.z < 0.0 || tpos.x > 1.0 || tpos.y > 1.0 || tpos.z > 1.0) { return outColor; } var scalar: f32 = getTextureValue(vTex, tpos); var coord: vec2 = vec2(scalar * componentSSBO.values[cNum].cScale + componentSSBO.values[cNum].cShift, (0.5 + 2.0 * f32(vNum)) / tfunRows); var color: vec4 = textureSampleLevel(tfunTexture, clampSampler, coord, 0.0); var gofactor: f32 = 1.0; var normal: vec4 = vec4(0.0,0.0,0.0,0.0); if (componentSSBO.values[cNum].gomin < 1.0 || volumeSSBO.values[vNum].shade[0] > 0.0) { normal = getGradient(vTex, tpos, vNum, scalar); if (componentSSBO.values[cNum].gomin < 1.0) { gofactor = clamp(normal.a*componentSSBO.values[cNum].goScale + componentSSBO.values[cNum].goShift, componentSSBO.values[cNum].gomin, componentSSBO.values[cNum].gomax); } } coord.x = (scalar * componentSSBO.values[cNum].oScale + componentSSBO.values[cNum].oShift); var opacity: f32 = textureSampleLevel(ofunTexture, clampSampler, coord, 0.0).r; if (volumeSSBO.values[vNum].shade[0] > 0.0) { color = color*abs(normal.z); } outColor = vec4(color.rgb, gofactor * opacity); return outColor; } // adjust the start and end point of a raycast such that it intersects the unit cube. // This function is used to take a raycast starting point and step vector // and numSteps and return the startijng and ending steps for intersecting the // unit cube. Recall for a 3D texture, the unit cube is the range of texture coordsinates // that have valid values. So this funtion can be used to take a ray in texture coordinates // and bound it to intersecting the texture. // fn adjustBounds(tpos: vec4, tstep: vec4, numSteps: f32) -> vec2 { var result: vec2 = vec2(0.0, numSteps); var tpos2: vec4 = tpos + tstep*numSteps; // move tpos to the start of the volume var adjust: f32 = min( max(tpos.x/tstep.x, (tpos.x - 1.0)/tstep.x), min( max((tpos.y - 1.0)/tstep.y, tpos.y/tstep.y), max((tpos.z - 1.0)/tstep.z, tpos.z/tstep.z))); if (adjust < 0.0) { result.x = result.x - adjust; } // adjust length to the end adjust = max( min(tpos2.x/tstep.x, (tpos2.x - 1.0)/tstep.x), max( min((tpos2.y - 1.0)/tstep.y, tpos2.y/tstep.y), min((tpos2.z - 1.0)/tstep.z, tpos2.z/tstep.z))); if (adjust > 0.0) { result.y = result.y - adjust; } return result; } fn getSimpleColor(scalar: f32, vNum: i32, cNum: i32) -> vec4 { // how many rows (tfuns) do we have in our tfunTexture var tfunRows: f32 = f32(textureDimensions(tfunTexture).y); var coord: vec2 = vec2(scalar * componentSSBO.values[cNum].cScale + componentSSBO.values[cNum].cShift, (0.5 + 2.0 * f32(vNum)) / tfunRows); var color: vec4 = textureSampleLevel(tfunTexture, clampSampler, coord, 0.0); coord.x = (scalar * componentSSBO.values[cNum].oScale + componentSSBO.values[cNum].oShift); var opacity: f32 = textureSampleLevel(ofunTexture, clampSampler, coord, 0.0).r; return vec4(color.rgb, opacity); } fn traverseMax(vTex: texture_3d, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4, rayStepSC: vec4) { // convert to tcoords and reject if outside the volume var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance; var tpos: vec4 = volumeSSBO.values[vNum].SCTCMatrix*minPosSC; var tpos2: vec4 = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC); var tstep: vec4 = tpos2 - tpos; var rayBounds: vec2 = adjustBounds(tpos, tstep, numSteps); // did we hit anything if (rayBounds.x >= rayBounds.y) { traverseVals[vNum] = vec4(0.0,0.0,0.0,0.0); return; } tpos = tpos + tstep*rayBounds.x; var curDist: f32 = rayBounds.x; var maxVal: f32 = -1.0e37; loop { var scalar: f32 = getTextureValue(vTex, tpos); if (scalar > maxVal) { maxVal = scalar; } // increment position curDist = curDist + 1.0; tpos = tpos + tstep; // check if we have reached a terminating condition if (curDist > rayBounds.y) { break; } } // process to get the color and opacity traverseVals[vNum] = getSimpleColor(maxVal, vNum, cNum); } fn traverseMin(vTex: texture_3d, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4, rayStepSC: vec4) { // convert to tcoords and reject if outside the volume var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance; var tpos: vec4 = volumeSSBO.values[vNum].SCTCMatrix*minPosSC; var tpos2: vec4 = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC); var tstep: vec4 = tpos2 - tpos; var rayBounds: vec2 = adjustBounds(tpos, tstep, numSteps); // did we hit anything if (rayBounds.x >= rayBounds.y) { traverseVals[vNum] = vec4(0.0,0.0,0.0,0.0); return; } tpos = tpos + tstep*rayBounds.x; var curDist: f32 = rayBounds.x; var minVal: f32 = 1.0e37; loop { var scalar: f32 = getTextureValue(vTex, tpos); if (scalar < minVal) { minVal = scalar; } // increment position curDist = curDist + 1.0; tpos = tpos + tstep; // check if we have reached a terminating condition if (curDist > rayBounds.y) { break; } } // process to get the color and opacity traverseVals[vNum] = getSimpleColor(minVal, vNum, cNum); } fn traverseAverage(vTex: texture_3d, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4, rayStepSC: vec4) { // convert to tcoords and reject if outside the volume var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance; var tpos: vec4 = volumeSSBO.values[vNum].SCTCMatrix*minPosSC; var tpos2: vec4 = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC); var tstep: vec4 = tpos2 - tpos; var rayBounds: vec2 = adjustBounds(tpos, tstep, numSteps); // did we hit anything if (rayBounds.x >= rayBounds.y) { traverseVals[vNum] = vec4(0.0,0.0,0.0,0.0); return; } let ipRange: vec4 = volumeSSBO.values[vNum].ipScalarRange; tpos = tpos + tstep*rayBounds.x; var curDist: f32 = rayBounds.x; var avgVal: f32 = 0.0; var sampleCount: f32 = 0.0; loop { var sample: f32 = getTextureValue(vTex, tpos); // right now leave filtering off until WebGL changes get merged // if (ipRange.z == 0.0 || sample >= ipRange.x && sample <= ipRange.y) // { avgVal = avgVal + sample; sampleCount = sampleCount + 1.0; // } // increment position curDist = curDist + 1.0; tpos = tpos + tstep; // check if we have reached a terminating condition if (curDist > rayBounds.y) { break; } } if (sampleCount <= 0.0) { traverseVals[vNum] = vec4(0.0,0.0,0.0,0.0); } // process to get the color and opacity traverseVals[vNum] = getSimpleColor(avgVal/sampleCount, vNum, cNum); } fn traverseAdditive(vTex: texture_3d, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4, rayStepSC: vec4) { // convert to tcoords and reject if outside the volume var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance; var tpos: vec4 = volumeSSBO.values[vNum].SCTCMatrix*minPosSC; var tpos2: vec4 = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC); var tstep: vec4 = tpos2 - tpos; var rayBounds: vec2 = adjustBounds(tpos, tstep, numSteps); // did we hit anything if (rayBounds.x >= rayBounds.y) { traverseVals[vNum] = vec4(0.0,0.0,0.0,0.0); return; } let ipRange: vec4 = volumeSSBO.values[vNum].ipScalarRange; tpos = tpos + tstep*rayBounds.x; var curDist: f32 = rayBounds.x; var sumVal: f32 = 0.0; loop { var sample: f32 = getTextureValue(vTex, tpos); // right now leave filtering off until WebGL changes get merged // if (ipRange.z == 0.0 || sample >= ipRange.x && sample <= ipRange.y) // { sumVal = sumVal + sample; // } // increment position curDist = curDist + 1.0; tpos = tpos + tstep; // check if we have reached a terminating condition if (curDist > rayBounds.y) { break; } } // process to get the color and opacity traverseVals[vNum] = getSimpleColor(sumVal, vNum, cNum); } fn composite(rayLengthSC: f32, minPosSC: vec4, rayStepSC: vec4) -> vec4 { // initial ray position is at the beginning var rayPosSC: vec4 = minPosSC; // how many rows (tfuns) do we have in our tfunTexture var tfunRows: f32 = f32(textureDimensions(tfunTexture).y); var curDist: f32 = 0.0; var computedColor: vec4 = vec4(0.0, 0.0, 0.0, 0.0); var sampleColor: vec4; //VTK::Volume::TraverseCalls loop { // for each volume, sample and accumulate color //VTK::Volume::CompositeCalls // increment position curDist = curDist + mapperUBO.SampleDistance; rayPosSC = rayPosSC + rayStepSC; // check if we have reached a terminating condition if (curDist > rayLengthSC) { break; } if (computedColor.a > 0.98) { break; } } return computedColor; } @fragment fn main( //VTK::IOStructs::Input ) //VTK::IOStructs::Output { var output: fragmentOutput; var rayMax: f32 = textureSampleLevel(maxTexture, clampSampler, input.tcoordVS, 0.0).r; var rayMin: f32 = textureSampleLevel(minTexture, clampSampler, input.tcoordVS, 0.0).r; // discard empty rays if (rayMax <= rayMin) { discard; } else { // compute start and end ray positions in view coordinates var minPosSC: vec4 = rendererUBO.PCSCMatrix*vec4(2.0 * input.tcoordVS.x - 1.0, 1.0 - 2.0 * input.tcoordVS.y, rayMax, 1.0); minPosSC = minPosSC * (1.0 / minPosSC.w); var maxPosSC: vec4 = rendererUBO.PCSCMatrix*vec4(2.0 * input.tcoordVS.x - 1.0, 1.0 - 2.0 * input.tcoordVS.y, rayMin, 1.0); maxPosSC = maxPosSC * (1.0 / maxPosSC.w); var rayLengthSC: f32 = distance(minPosSC.xyz, maxPosSC.xyz); var rayStepSC: vec4 = (maxPosSC - minPosSC)*(mapperUBO.SampleDistance/rayLengthSC); rayStepSC.w = 0.0; var computedColor: vec4; //VTK::Volume::Loop //VTK::RenderEncoder::Impl } return output; } `,ma=new Float64Array(16),Hl=new Float64Array(16);function gQe(t,e){e.classHierarchy.push("vtkWebGPUVolumePassFSQ"),t.replaceShaderPosition=(a,i,o)=>{const s=i.getShaderDescription("vertex");s.addBuiltinOutput("vec4","@builtin(position) Position");let l=s.getCode();l=Wn.substitute(l,"//VTK::Position::Impl",["output.tcoordVS = vec2(vertexBC.x * 0.5 + 0.5, 1.0 - vertexBC.y * 0.5 - 0.5);","output.Position = vec4(vertexBC, 1.0);"]).result,s.setCode(l),i.getShaderDescription("fragment").addBuiltinInput("vec4","@builtin(position) fragPos")},e.shaderReplacements.set("replaceShaderPosition",t.replaceShaderPosition),t.replaceShaderVolume=(a,i,o)=>{const s=i.getShaderDescription("fragment");let l=s.getCode();const u=[],c=[];for(let d=0;d( sampleColor.a * sampleColor.rgb * (1.0 - computedColor.a) + computedColor.rgb, (1.0 - computedColor.a)*sampleColor.a + computedColor.a);`)):(c.push(` sampleColor = traverseVals[${d}];`),c.push(` computedColor = vec4( sampleColor.a * sampleColor.rgb * (1.0 - computedColor.a) + computedColor.rgb, (1.0 - computedColor.a)*sampleColor.a + computedColor.a);`));l=Wn.substitute(l,"//VTK::Volume::CompositeCalls",u).result,l=Wn.substitute(l,"//VTK::Volume::TraverseCalls",c).result,l=Wn.substitute(l,"//VTK::Volume::TraverseDec",[`var traverseVals: array,${e.volumes.length}>;`]).result;let f=!1;for(let d=0;d{let i=t.getMTime();for(let f=0;f{let i=Math.max(t.getMTime(),e.WebGPURenderer.getStabilizedTime());for(let w=0;w"),e.SSBO.addEntry("planeNormals","mat4x4"),e.SSBO.addEntry("shade","vec4"),e.SSBO.addEntry("tstep","vec4"),e.SSBO.addEntry("spacing","vec4"),e.SSBO.addEntry("ipScalarRange","vec4"),e.SSBO.setAllInstancesFromArray("SCTCMatrix",s),e.SSBO.setAllInstancesFromArray("planeNormals",l),e.SSBO.setAllInstancesFromArray("shade",c),e.SSBO.setAllInstancesFromArray("tstep",u),e.SSBO.setAllInstancesFromArray("spacing",f),e.SSBO.setAllInstancesFromArray("ipScalarRange",d),e.SSBO.send(a),e.componentSSBO.clearData(),e.componentSSBO.setNumberOfInstances(e.numRows);const h=new Float64Array(e.numRows),p=new Float64Array(e.numRows),v=new Float64Array(e.numRows),g=new Float64Array(e.numRows),y=new Float64Array(e.numRows),m=new Float64Array(e.numRows),b=new Float64Array(e.numRows),_=new Float64Array(e.numRows);let x=0;for(let w=0;w{n();let a=e.volumes[0].getRenderable().getMapper().getSampleDistance();for(let i=0;i{e.pipelineHash="volfsq";for(let a=0;a{if(!e.volumes||e.volumes.length!==a.length){e.volumes=[...a],t.modified();return}for(let i=0;i{const a=r();return a.push(e.componentSSBO),a.push(e.clampSampler),a}}const yQe={volumes:null,rowLength:1024,lastVolumeLength:0};function tQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,yQe,n),xx.extend(t,e,n),e.fragmentShaderTemplate=pQe,e.UBO=JZ.newInstance({label:"mapperUBO"}),e.UBO.addEntry("SampleDistance","f32"),e.SSBO=w4.newInstance({label:"volumeSSBO"}),e.componentSSBO=w4.newInstance({label:"componentSSBO"}),e.lutBuildTime={},Q.obj(e.lutBuildTime,{mtime:0}),gQe(t,e)}const mQe=Q.newInstance(tQ,"vtkWebGPUVolumePassFSQ");var bQe={newInstance:mQe,extend:tQ};const{Representation:SQe}=mx,{BufferUsage:x4,PrimitiveTypes:_Qe}=tm,MC=[[0,4,6],[0,6,2],[1,3,7],[1,7,5],[0,5,4],[0,1,5],[2,6,7],[2,7,3],[0,3,1],[0,2,3],[4,5,7],[4,7,6]],wQe=` //VTK::Renderer::Dec //VTK::Select::Dec //VTK::VolumePass::Dec //VTK::TCoord::Dec //VTK::RenderEncoder::Dec //VTK::Mapper::Dec //VTK::IOStructs::Dec @fragment fn main( //VTK::IOStructs::Input ) //VTK::IOStructs::Output { var output : fragmentOutput; //VTK::Select::Impl //VTK::TCoord::Impl //VTK::VolumePass::Impl // use the maximum (closest) of the current value and the zbuffer // the blend func will then take the min to find the farthest stop value var stopval: f32 = max(input.fragPos.z, textureLoad(opaquePassDepthTexture, vec2(i32(input.fragPos.x), i32(input.fragPos.y)), 0)); //VTK::RenderEncoder::Impl return output; } `,xQe=` //VTK::Renderer::Dec //VTK::Mapper::Dec //VTK::TCoord::Dec //VTK::RenderEncoder::Dec //VTK::IOStructs::Dec @fragment fn main( //VTK::IOStructs::Input ) //VTK::IOStructs::Output { var output: fragmentOutput; var computedColor: vec4 = textureSample(volumePassColorTexture, volumePassColorTextureSampler, mapperUBO.tscale*input.tcoordVS); //VTK::RenderEncoder::Impl return output; } `;function CQe(t,e){e.classHierarchy.push("vtkWebGPUVolumePass"),t.initialize=n=>{e._clearEncoder||t.createClearEncoder(n),e._mergeEncoder||t.createMergeEncoder(n),e._copyEncoder||t.createCopyEncoder(n),e._depthRangeEncoder||t.createDepthRangeEncoder(n),e.fullScreenQuad||(e.fullScreenQuad=bQe.newInstance(),e.fullScreenQuad.setDevice(n.getDevice()),e.fullScreenQuad.setTextureViews([...e._depthRangeEncoder.getColorTextureViews()])),e._volumeCopyQuad||(e._volumeCopyQuad=xx.newInstance(),e._volumeCopyQuad.setPipelineHash("volpassfsq"),e._volumeCopyQuad.setDevice(n.getDevice()),e._volumeCopyQuad.setFragmentShaderTemplate(xQe),e._copyUBO=JZ.newInstance({label:"mapperUBO"}),e._copyUBO.addEntry("tscale","vec2"),e._volumeCopyQuad.setUBO(e._copyUBO),e._volumeCopyQuad.setTextureViews([e._colorTextureView]))},t.traverse=(n,r)=>{if(e.deleted)return;e._currentParent=r,t.initialize(r),t.computeTiming(r),t.renderDepthBounds(n,r),e._firstGroup=!0;const a=r.getDevice(),i=a.getHandle().limits.maxSampledTexturesPerShaderStage-4;if(e.volumes.length>i){const o=n.getRenderable().getActiveCamera().getPosition(),s=[];for(let f=0;fs[d]-s[f]);let u=[],c=l.length%i;for(let f=0;f=c&&(t.rayCastPass(r,n,u),u=[],c=i,e._firstGroup=!1)}else t.rayCastPass(r,n,e.volumes);if(e._volumeCopyQuad.setWebGPURenderer(n),e._useSmallViewport){const o=e._colorTextureView.getTexture().getWidth(),s=e._colorTextureView.getTexture().getHeight();e._copyUBO.setArray("tscale",[e._smallViewportWidth/o,e._smallViewportHeight/s])}else e._copyUBO.setArray("tscale",[1,1]);e._copyUBO.sendIfNeeded(a),e._copyEncoder.setColorTextureView(0,e.colorTextureView),e._copyEncoder.attachTextureViews(),e._copyEncoder.begin(r.getCommandEncoder()),n.scissorAndViewport(e._copyEncoder),e._volumeCopyQuad.prepareAndDraw(e._copyEncoder),e._copyEncoder.end()},t.delete=Q.chain(()=>{e._animationRateSubscription&&(e._animationRateSubscription.unsubscribe(),e._animationRateSubscription=null)},t.delete),t.computeTiming=n=>{const r=n.getRenderable().getInteractor();if(e._lastScale==null){const a=e.volumes[0].getRenderable().getMapper();e._lastScale=a.getInitialInteractionScale()||1}e._useSmallViewport=!1,r.isAnimating()&&e._lastScale>1.5&&(e._useSmallViewport=!0),e._colorTexture.resize(n.getCanvas().width,n.getCanvas().height),e._animationRateSubscription||(e._animationRateSubscription=r.onAnimationFrameRateUpdate(()=>{const a=e.volumes[0].getRenderable().getMapper();if(a.getAutoAdjustSampleDistances()){const i=r.getRecentAnimationFrameRate(),o=e._lastScale*r.getDesiredUpdateRate()/i;e._lastScale=o,e._lastScale>400&&(e._lastScale=400)}else e._lastScale=a.getImageSampleDistance()*a.getImageSampleDistance();e._lastScale<1.5&&(e._lastScale=1.5)}))},t.rayCastPass=(n,r,a)=>{const i=e._firstGroup?e._clearEncoder:e._mergeEncoder;i.attachTextureViews(),i.begin(n.getCommandEncoder());let o=e._colorTextureView.getTexture().getWidth(),s=e._colorTextureView.getTexture().getHeight();if(e._useSmallViewport){const l=n.getCanvas(),u=1/Math.sqrt(e._lastScale);e._smallViewportWidth=Math.ceil(u*l.width),e._smallViewportHeight=Math.ceil(u*l.height),o=e._smallViewportWidth,s=e._smallViewportHeight}i.getHandle().setViewport(0,0,o,s,0,1),i.getHandle().setScissorRect(0,0,o,s),e.fullScreenQuad.setWebGPURenderer(r),e.fullScreenQuad.setVolumes(a),e.fullScreenQuad.prepareAndDraw(i),i.end()},t.renderDepthBounds=(n,r)=>{t.updateDepthPolyData(n);const a=e._boundsPoly,i=a.getPoints(),o=a.getPolys();let s={hash:`vp${o.getMTime()}`,usage:x4.Index,cells:o,numberOfPoints:i.getNumberOfPoints(),primitiveType:_Qe.Triangles,representation:SQe.SURFACE};const l=r.getDevice().getBufferManager().getBuffer(s);e._mapper.getVertexInput().setIndexBuffer(l),s={usage:x4.PointArray,format:"float32x4",hash:`vp${i.getMTime()}${o.getMTime()}`,dataArray:i,indexBuffer:l,packExtra:!0};const u=r.getDevice().getBufferManager().getBuffer(s);e._mapper.getVertexInput().addBuffer(u,["vertexBC"]),e._mapper.setNumberOfVertices(u.getSizeInBytes()/u.getStrideInBytes()),t.drawDepthRange(n,r)},t.updateDepthPolyData=n=>{let r=!1;for(let c=0;c{e._depthRangeTexture.resizeToMatch(e.colorTextureView.getTexture()),e._depthRangeTexture2.resizeToMatch(e.colorTextureView.getTexture()),e._depthRangeEncoder.attachTextureViews(),t.setCurrentOperation("volumeDepthRangePass"),n.setRenderEncoder(e._depthRangeEncoder),n.volumeDepthRangePass(!0),e._mapper.setWebGPURenderer(n),e._mapper.prepareToDraw(e._depthRangeEncoder),e._mapper.registerDrawCallback(e._depthRangeEncoder),n.volumeDepthRangePass(!1)},t.createDepthRangeEncoder=n=>{const r=n.getDevice();e._depthRangeEncoder=il.newInstance({label:"VolumePass DepthRange"}),e._depthRangeEncoder.setPipelineHash("volr"),e._depthRangeEncoder.setReplaceShaderCodeFunction(o=>{const s=o.getShaderDescription("fragment");s.addOutput("vec4","outColor1"),s.addOutput("vec4","outColor2");let l=s.getCode();l=Wn.substitute(l,"//VTK::RenderEncoder::Impl",["output.outColor1 = vec4(input.fragPos.z, 0.0, 0.0, 0.0);","output.outColor2 = vec4(stopval, 0.0, 0.0, 0.0);"]).result,s.setCode(l)}),e._depthRangeEncoder.setDescription({colorAttachments:[{view:null,clearValue:[0,0,0,0],loadOp:"clear",storeOp:"store"},{view:null,clearValue:[1,1,1,1],loadOp:"clear",storeOp:"store"}]}),e._depthRangeEncoder.setPipelineSettings({primitive:{cullMode:"none"},fragment:{targets:[{format:"r16float",blend:{color:{srcFactor:"one",dstFactor:"one",operation:"max"},alpha:{srcfactor:"one",dstFactor:"one",operation:"max"}}},{format:"r16float",blend:{color:{srcFactor:"one",dstFactor:"one",operation:"min"},alpha:{srcfactor:"one",dstFactor:"one",operation:"min"}}}]}}),e._depthRangeTexture=bs.newInstance({label:"volumePassMaxDepth"}),e._depthRangeTexture.create(r,{width:n.getCanvas().width,height:n.getCanvas().height,format:"r16float",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING});const a=e._depthRangeTexture.createView("maxTexture");e._depthRangeEncoder.setColorTextureView(0,a),e._depthRangeTexture2=bs.newInstance({label:"volumePassDepthMin"}),e._depthRangeTexture2.create(r,{width:n.getCanvas().width,height:n.getCanvas().height,format:"r16float",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING});const i=e._depthRangeTexture2.createView("minTexture");e._depthRangeEncoder.setColorTextureView(1,i),e._mapper.setDevice(n.getDevice()),e._mapper.setTextureViews([e.depthTextureView])},t.createClearEncoder=n=>{e._colorTexture=bs.newInstance({label:"volumePassColor"}),e._colorTexture.create(n.getDevice(),{width:n.getCanvas().width,height:n.getCanvas().height,format:"bgra8unorm",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_SRC}),e._colorTextureView=e._colorTexture.createView("volumePassColorTexture"),e._colorTextureView.addSampler(n.getDevice(),{minFilter:"linear",magFilter:"linear"}),e._clearEncoder=il.newInstance({label:"VolumePass Clear"}),e._clearEncoder.setColorTextureView(0,e._colorTextureView),e._clearEncoder.setDescription({colorAttachments:[{view:null,clearValue:[0,0,0,0],loadOp:"clear",storeOp:"store"}]}),e._clearEncoder.setPipelineHash("volpf"),e._clearEncoder.setPipelineSettings({primitive:{cullMode:"none"},fragment:{targets:[{format:"bgra8unorm",blend:{color:{srcFactor:"src-alpha",dstFactor:"one-minus-src-alpha"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}})},t.createCopyEncoder=n=>{e._copyEncoder=il.newInstance({label:"volumePassCopy"}),e._copyEncoder.setDescription({colorAttachments:[{view:null,loadOp:"load",storeOp:"store"}]}),e._copyEncoder.setPipelineHash("volcopypf"),e._copyEncoder.setPipelineSettings({primitive:{cullMode:"none"},fragment:{targets:[{format:"rgba16float",blend:{color:{srcFactor:"one",dstFactor:"one-minus-src-alpha"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}})},t.createMergeEncoder=n=>{e._mergeEncoder=il.newInstance({label:"volumePassMerge"}),e._mergeEncoder.setColorTextureView(0,e._colorTextureView),e._mergeEncoder.setDescription({colorAttachments:[{view:null,loadOp:"load",storeOp:"store"}]}),e._mergeEncoder.setReplaceShaderCodeFunction(r=>{const a=r.getShaderDescription("fragment");a.addOutput("vec4","outColor");let i=a.getCode();i=Wn.substitute(i,"//VTK::RenderEncoder::Impl",["output.outColor = vec4(computedColor.rgb, computedColor.a);"]).result,a.setCode(i)}),e._mergeEncoder.setPipelineHash("volpf"),e._mergeEncoder.setPipelineSettings({primitive:{cullMode:"none"},fragment:{targets:[{format:"bgra8unorm",blend:{color:{srcFactor:"src-alpha",dstFactor:"one-minus-src-alpha"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}})},t.setVolumes=n=>{if(!e.volumes||e.volumes.length!==n.length){e.volumes=[...n],t.modified();return}for(let r=0;r2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,TQe,n),Ll.extend(t,e,n),e._mapper=VZ.newInstance(),e._mapper.setFragmentShaderTemplate(wQe),e._mapper.getShaderReplacements().set("replaceShaderVolumePass",(r,a,i)=>{a.getShaderDescription("fragment").addBuiltinInput("vec4","@builtin(position) fragPos")}),e._boundsPoly=Z0.newInstance(),e._lastMTimes=[],Q.setGet(t,e,["colorTextureView","depthTextureView"]),CQe(t,e)}const EQe=Q.newInstance(nQ,"vtkWebGPUVolumePass");var MQe={newInstance:EQe,extend:nQ};const kQe=` //VTK::Mapper::Dec //VTK::TCoord::Dec //VTK::RenderEncoder::Dec //VTK::IOStructs::Dec @fragment fn main( //VTK::IOStructs::Input ) //VTK::IOStructs::Output { var output: fragmentOutput; var computedColor: vec4 = clamp(textureSampleLevel(opaquePassColorTexture, finalPassSampler, input.tcoordVS, 0.0),vec4(0.0),vec4(1.0)); //VTK::RenderEncoder::Impl return output; } `;function DQe(t,e){e.classHierarchy.push("vtkForwardPass"),t.traverse=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(e.deleted)return;e._currentParent=r,t.setCurrentOperation("buildPass"),n.traverse(t),e.opaquePass||(e.opaquePass=tQe.newInstance());const a=n.getRenderable().getNumberOfLayers(),i=n.getChildren();for(let o=0;o0&&(e.translucentPass||(e.translucentPass=oQe.newInstance()),e.translucentPass.setColorTextureView(e.opaquePass.getColorTextureView()),e.translucentPass.setDepthTextureView(e.opaquePass.getDepthTextureView()),e.translucentPass.traverse(l,n)),e.volumes.length>0&&(e.volumePass||(e.volumePass=MQe.newInstance()),e.volumePass.setColorTextureView(e.opaquePass.getColorTextureView()),e.volumePass.setDepthTextureView(e.opaquePass.getDepthTextureView()),e.volumePass.setVolumes(e.volumes),e.volumePass.traverse(l,n)),t.finalPass(n,l))}},t.finalPass=(n,r)=>{e._finalBlitEncoder||t.createFinalBlitEncoder(n),e._finalBlitOutputTextureView.createFromTextureHandle(n.getCurrentTexture(),{depth:1,format:n.getPresentationFormat()}),e._finalBlitEncoder.attachTextureViews(),e._finalBlitEncoder.begin(n.getCommandEncoder()),r.scissorAndViewport(e._finalBlitEncoder),e._fullScreenQuad.prepareAndDraw(e._finalBlitEncoder),e._finalBlitEncoder.end()},t.createFinalBlitEncoder=n=>{e._finalBlitEncoder=il.newInstance({label:"forwardPassBlit"}),e._finalBlitEncoder.setDescription({colorAttachments:[{view:null,loadOp:"load",storeOp:"store"}]}),e._finalBlitEncoder.setPipelineHash("fpf"),e._finalBlitEncoder.setPipelineSettings({primitive:{cullMode:"none"},fragment:{targets:[{format:n.getPresentationFormat(),blend:{color:{srcFactor:"src-alpha",dstFactor:"one-minus-src-alpha"},alpha:{srcfactor:"one",dstFactor:"one-minus-src-alpha"}}}]}}),e._fsqSampler=NO.newInstance({label:"finalPassSampler"}),e._fsqSampler.create(n.getDevice(),{minFilter:"linear",magFilter:"linear"}),e._fullScreenQuad=xx.newInstance(),e._fullScreenQuad.setDevice(n.getDevice()),e._fullScreenQuad.setPipelineHash("fpfsq"),e._fullScreenQuad.setTextureViews([e.opaquePass.getColorTextureView()]),e._fullScreenQuad.setAdditionalBindables([e._fsqSampler]),e._fullScreenQuad.setFragmentShaderTemplate(kQe),e._finalBlitOutputTextureView=jZ.newInstance(),e._finalBlitEncoder.setColorTextureView(0,e._finalBlitOutputTextureView)},t.incrementOpaqueActorCount=()=>e.opaqueActorCount++,t.incrementTranslucentActorCount=()=>e.translucentActorCount++,t.addVolume=n=>{e.volumes.push(n)}}const RQe={opaqueActorCount:0,translucentActorCount:0,volumes:null,opaqueRenderEncoder:null,translucentPass:null,volumePass:null};function rQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,RQe,n),Ll.extend(t,e,n),Q.setGet(t,e,["opaquePass","translucentPass","volumePass"]),DQe(t,e)}const LQe=Q.newInstance(rQ,"vtkForwardPass");var AQe={newInstance:LQe,extend:rQ};const{VtkDataTypes:Ec}=Kn;function OQe(t,e){e.classHierarchy.push("vtkWebGPUTextureManager");function n(a){if(a.imageData){a.dataArray=a.imageData.getPointData().getScalars(),a.time=a.dataArray.getMTime(),a.nativeArray=a.dataArray.getData();const i=a.imageData.getDimensions();switch(a.width=i[0],a.height=i[1],a.depth=i[2],a.dataArray.getNumberOfComponents()){case 1:a.format="r";break;case 2:a.format="rg";break;case 3:case 4:default:a.format="rgba";break}switch(a.dataArray.getDataType()){case Ec.UNSIGNED_CHAR:a.format+="8unorm";break;case Ec.FLOAT:case Ec.UNSIGNED_INT:case Ec.INT:case Ec.DOUBLE:case Ec.UNSIGNED_SHORT:case Ec.SHORT:default:a.format+="16float";break}}a.image&&(a.width=a.image.width,a.height=a.image.height,a.depth=1,a.format="rgba8unorm"),a.jsImageData&&(a.width=a.jsImageData.width,a.height=a.jsImageData.height,a.depth=1,a.format="rgba8unorm",a.flip=!0,a.nativeArray=a.jsImageData.data),a.canvas&&(a.width=a.canvas.width,a.height=a.canvas.height,a.depth=1,a.format="rgba8unorm",a.flip=!0,a.usage=GPUTextureUsage.TEXTURE_BINDING|GPUTextureUsage.COPY_DST|GPUTextureUsage.RENDER_ATTACHMENT)}function r(a){const i=bs.newInstance();return i.create(e.device,{width:a.width,height:a.height,depth:a.depth,format:a.format,usage:a.usage,mipLevel:a.mipLevel}),(a.nativeArray||a.image||a.canvas)&&i.writeImageData(a),i}t.getTexture=a=>a.hash?e.device.getCachedObject(a.hash,r,a):r(a),t.getTextureForImageData=a=>{const i={time:a.getMTime()};return i.imageData=a,n(i),i.hash=i.time+i.format+i.mipLevel,e.device.getTextureManager().getTexture(i)},t.getTextureForVTKTexture=a=>{const i={time:a.getMTime()};return a.getInputData()?i.imageData=a.getInputData():a.getImage()?i.image=a.getImage():a.getJsImageData()?i.jsImageData=a.getJsImageData():a.getCanvas()&&(i.canvas=a.getCanvas()),n(i),i.mipLevel=a.getMipLevel(),i.hash=i.time+i.format+i.mipLevel,e.device.getTextureManager().getTexture(i)}}const NQe={handle:null,device:null};function aQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,NQe,n),Q.obj(t,e),Q.setGet(t,e,["device"]),OQe(t,e)}const $Qe=Q.newInstance(aQ);var IQe={newInstance:$Qe,extend:aQ};class BQe extends Map{constructor(){super(),this.registry=new FinalizationRegistry(e=>{const n=super.get(e);n&&n.deref&&n.deref()===void 0&&super.delete(e)})}getValue(e){const n=super.get(e);if(n){const r=n.deref();if(r!==void 0)return r;super.delete(e)}}setValue(e,n){let r;return n&&typeof n=="object"&&(r=new WeakRef(n),this.registry.register(n,e),super.set(e,r)),r}}function VQe(t,e){e.classHierarchy.push("vtkWebGPUDevice"),t.initialize=n=>{e.handle=n},t.createCommandEncoder=()=>e.handle.createCommandEncoder(),t.submitCommandEncoder=n=>{e.handle.queue.submit([n.finish()])},t.getShaderModule=n=>e.shaderCache.getShaderModule(n),t.getBindGroupLayout=n=>{if(!n.entries)return null;for(let i=0;i{for(let r=0;rn in e.pipelines?e.pipelines[n]:null,t.createPipeline=(n,r)=>{r.initialize(t,n),e.pipelines[n]=r},t.onSubmittedWorkDone=()=>e.handle.queue.onSubmittedWorkDone(),t.hasCachedObject=n=>e.objectCache.getValue(n),t.getCachedObject=function(n,r){if(!n)return vtkErrorMacro("attempt to cache an object without a hash"),null;const a=e.objectCache.getValue(n);if(a)return a;for(var i=arguments.length,o=new Array(i>2?i-2:0),s=2;s2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,PQe,n),$o(t,e),Bs(t,e,["handle"]),Is(t,e,["bufferManager","shaderCache","textureManager"]),e.objectCache=new BQe,e.shaderCache=Wn.newInstance(),e.shaderCache.setDevice(t),e.bindGroupLayouts=[],e.bufferManager=tm.newInstance(),e.bufferManager.setDevice(t),e.textureManager=IQe.newInstance(),e.textureManager.setDevice(t),e.pipelines={},VQe(t,e)}const FQe=Uo(iQ,"vtkWebGPUDevice");var zQe={newInstance:FQe,extend:iQ};function GQe(t,e){e.classHierarchy.push("vtkWebGPUHardwareSelectionPass"),t.traverse=(n,r)=>{if(e.deleted)return;e._currentParent=null,t.setCurrentOperation("buildPass"),n.traverse(t);const a=n.getDevice();if(e.selectionRenderEncoder)e.colorTexture.resize(n.getCanvas().width,n.getCanvas().height),e.depthTexture.resizeToMatch(e.colorTexture);else{t.createRenderEncoder(),e.colorTexture=bs.newInstance({label:"hardwareSelectorColor"}),e.colorTexture.create(a,{width:n.getCanvas().width,height:n.getCanvas().height,format:"rgba32uint",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.COPY_SRC});const i=e.colorTexture.createView("hardwareSelectColorTexture");e.selectionRenderEncoder.setColorTextureView(0,i),e.depthTexture=bs.newInstance({label:"hardwareSelectorDepth"}),e.depthTexture.create(a,{width:n.getCanvas().width,height:n.getCanvas().height,format:"depth32float",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.COPY_SRC});const o=e.depthTexture.createView("hardwareSelectDepthTexture");e.selectionRenderEncoder.setDepthTextureView(o)}e.selectionRenderEncoder.attachTextureViews(),r.setRenderEncoder(e.selectionRenderEncoder),t.setCurrentOperation("cameraPass"),r.traverse(t),t.setCurrentOperation("opaquePass"),r.traverse(t)},t.createRenderEncoder=()=>{e.selectionRenderEncoder=il.newInstance({label:"HardwareSelectionPass"}),e.selectionRenderEncoder.setPipelineHash("sel"),e.selectionRenderEncoder.setReplaceShaderCodeFunction(r=>{const a=r.getShaderDescription("fragment");a.addOutput("vec4","outColor");let i=a.getCode();i=Wn.substitute(i,"//VTK::RenderEncoder::Impl",["output.outColor = vec4(mapperUBO.PropID, compositeID, 0u, 0u);"]).result,a.setCode(i)});const n=e.selectionRenderEncoder.getDescription();n.colorAttachments[0].clearValue=[0,0,0,0],e.selectionRenderEncoder.setPipelineSettings({primitive:{cullMode:"none"},depthStencil:{depthWriteEnabled:!0,depthCompare:"greater",format:"depth32float"},fragment:{targets:[{format:"rgba32uint",blend:void 0}]}})}}const HQe={selectionRenderEncoder:null,colorTexture:null,depthTexture:null};function oQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,HQe,n),Ll.extend(t,e,n),Q.get(t,e,["colorTexture","depthTexture"]),GQe(t,e)}const UQe=Q.newInstance(oQ,"vtkWebGPUHardwareSelectionPass");var WQe={newInstance:UQe,extend:oQ};const{SelectionContent:jQe,SelectionField:C4}=_x,{FieldAssociations:T4}=ep,{vtkErrorMacro:sQ}=Q;function KQe(t){return`${t.propID} ${t.compositeID}`}function E4(t,e,n,r){const a=((n.height-e-1)*n.colorBufferWidth+t)*4+r;return n.colorValues[a]}function hh(t,e,n,r){const a=n<0?0:n;if(a===0){if(r[0]=e[0],r[1]=e[1],e[0]<0||e[0]>=t.width||e[1]<0||e[1]>=t.height)return null;const l=E4(e[0],e[1],t,0);if(l<=0)return null;const u={};u.propID=l;let c=E4(e[0],e[1],t,1);if((c<0||c>16777215)&&(c=0),u.compositeID=c,t.captureZValues){const f=(t.height-e[1]-1)*t.zbufferBufferWidth+e[0];u.zValue=t.depthValues[f],u.zValue=t.webGPURenderer.convertToOpenGLDepth(u.zValue),u.displayPosition=e}return u}const i=[e[0],e[1]],o=[0,0];let s=hh(t,e,0,r);if(s)return s;for(let l=1;ll?i[1]-l:0;u<=i[1]+l;++u)if(o[1]=u,i[0]>=l&&(o[0]=i[0]-l,s=hh(t,o,0,r),s)||(o[0]=i[0]+l,s=hh(t,o,0,r),s))return s;for(let u=i[0]>=l?i[0]-(l-1):0;u<=i[0]+(l-1);++u)if(o[0]=u,i[1]>=l&&(o[1]=i[1]-l,s=hh(t,o,0,r),s)||(o[1]=i[1]+l,s=hh(t,o,0,r),s))return s}return r[0]=e[0],r[1]=e[1],null}function YQe(t,e,n){const r=[];let a=0;return e.forEach((i,o)=>{const s=_x.newInstance();switch(s.setContentType(jQe.INDICES),t){case T4.FIELD_ASSOCIATION_CELLS:s.setFieldType(C4.CELL);break;case T4.FIELD_ASSOCIATION_POINTS:s.setFieldType(C4.POINT);break;default:sQ("Unknown field association")}s.getProperties().propID=i.info.propID;const l=n.webGPURenderer.getPropFromID(i.info.propID);s.getProperties().prop=l.getRenderable(),s.getProperties().compositeID=i.info.compositeID,s.getProperties().pixelCount=i.pixelCount,n.captureZValues&&(s.getProperties().displayPosition=[i.info.displayPosition[0],i.info.displayPosition[1],i.info.zValue],s.getProperties().worldPosition=n.webGPURenderWindow.displayToWorld(i.info.displayPosition[0],i.info.displayPosition[1],i.info.zValue,n.renderer)),s.setSelectionList(i.attributeIDs),r[a]=s,a++}),r}function XQe(t,e,n,r,a){const i=Math.floor(e),o=Math.floor(n),s=Math.floor(r),l=Math.floor(a),u=new Map,c=[0,0];for(let f=o;f<=l;f++)for(let d=i;d<=s;d++){const p=hh(t,[d,f],0,c);if(p){const v=KQe(p);if(!u.has(v))u.set(v,{info:p,pixelCount:1,attributeIDs:[p.attributeID]});else{const g=u.get(v);g.pixelCount++,t.captureZValues&&p.zValue{e.WebGPURenderer.setSelector(null)},t.getSourceDataAsync=async n=>{if(!n||!e._WebGPURenderWindow)return sQ("Renderer and view must be set before calling Select."),!1;e._WebGPURenderWindow.getRenderable().preRender(),e._WebGPURenderWindow.getInitialized()||(e._WebGPURenderWindow.initialize(),await new Promise(h=>{e._WebGPURenderWindow.onInitialized(h)}));const r=e._WebGPURenderWindow.getViewNodeFor(n);if(!r)return!1;const a=r.getSuppressClear();r.setSuppressClear(!0),e._selectionPass.traverse(e._WebGPURenderWindow,r),r.setSuppressClear(a);const i=e._WebGPURenderWindow.getDevice(),o=e._selectionPass.getColorTexture(),s=e._selectionPass.getDepthTexture(),l={area:[0,0,o.getWidth()-1,o.getHeight()-1],captureZValues:e.captureZValues,fieldAssociation:e.fieldAssociation,renderer:n,webGPURenderer:r,webGPURenderWindow:e._WebGPURenderWindow,width:o.getWidth(),height:o.getHeight()};l.colorBufferWidth=16*Math.floor((l.width+15)/16),l.colorBufferSizeInBytes=l.colorBufferWidth*l.height*4*4;const u=kv.newInstance({label:"hardwareSelectColorBuffer"});u.setDevice(i),u.create(l.colorBufferSizeInBytes,GPUBufferUsage.MAP_READ|GPUBufferUsage.COPY_DST);const c=e._WebGPURenderWindow.getCommandEncoder();c.copyTextureToBuffer({texture:o.getHandle()},{buffer:u.getHandle(),bytesPerRow:16*l.colorBufferWidth,rowsPerImage:l.height},{width:l.width,height:l.height,depthOrArrayLayers:1});let f;e.captureZValues&&(l.zbufferBufferWidth=64*Math.floor((l.width+63)/64),f=kv.newInstance({label:"hardwareSelectDepthBuffer"}),f.setDevice(i),l.zbufferSizeInBytes=l.height*l.zbufferBufferWidth*4,f.create(l.zbufferSizeInBytes,GPUBufferUsage.MAP_READ|GPUBufferUsage.COPY_DST),c.copyTextureToBuffer({texture:s.getHandle(),aspect:"depth-only"},{buffer:f.getHandle(),bytesPerRow:4*l.zbufferBufferWidth,rowsPerImage:l.height},{width:l.width,height:l.height,depthOrArrayLayers:1})),i.submitCommandEncoder(c);const d=u.mapAsync(GPUMapMode.READ);if(e.captureZValues){const h=f.mapAsync(GPUMapMode.READ);await Promise.all([d,h]),l.depthValues=new Float32Array(f.getMappedRange().slice()),f.unmap()}else await d;return l.colorValues=new Uint32Array(u.getMappedRange().slice()),u.unmap(),l.generateSelection=(h,p,v,g)=>XQe(l,h,p,v,g),l}}const ZQe={};function lQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ZQe,n),pZ.extend(t,e,n),e._selectionPass=WQe.newInstance(),Q.setGet(t,e,["_WebGPURenderWindow"]),Q.moveToProtected(t,e,["WebGPURenderWindow"]),qQe(t,e)}const QQe=Q.newInstance(lQ,"vtkWebGPUHardwareSelector");var uQ={newInstance:QQe,extend:lQ};const cQ=Object.create(null);function S2t(t,e){cQ[t]=e}function JQe(t,e){e.classHierarchy.push("vtkWebGPUViewNodeFactory")}const eJe={};function fQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,eJe,n),e.overrides=cQ,qq.extend(t,e,n),JQe(t,e)}const tJe=Q.newInstance(fQ,"vtkWebGPUViewNodeFactory");var nJe={newInstance:tJe,extend:fQ};const{vtkErrorMacro:M4}=Q,rJe={position:"absolute",top:0,left:0,width:"100%",height:"100%"};function aJe(t,e){e.classHierarchy.push("vtkWebGPURenderWindow"),t.getViewNodeFactory=()=>e.myFactory;const n=[0,0];function r(){e.renderable&&(e.size[0]!==n[0]||e.size[1]!==n[1])&&(n[0]=e.size[0],n[1]=e.size[1],e.canvas.setAttribute("width",e.size[0]),e.canvas.setAttribute("height",e.size[1]),t.recreateSwapChain()),e.viewStream&&e.viewStream.setSize(e.size[0],e.size[1]),e.canvas.style.display=e.useOffScreen?"none":"block",e.el&&(e.el.style.cursor=e.cursorVisibility?e.cursor:"none"),e.containerSize=null}t.onModified(r),t.recreateSwapChain=()=>{e.context&&(e.context.unconfigure(),e.presentationFormat=navigator.gpu.getPreferredCanvasFormat(e.adapter),e.context.configure({device:e.device.getHandle(),format:e.presentationFormat,alphaMode:"premultiplied",usage:GPUTextureUsage.RENDER_ATTACHMENT|GPUTextureUsage.COPY_DST,width:e.size[0],height:e.size[1]}),e._configured=!0)},t.getCurrentTexture=()=>e.context.getCurrentTexture(),t.buildPass=o=>{if(o){if(!e.renderable)return;t.prepareNodes(),t.addMissingNodes(e.renderable.getRenderersByReference()),t.removeUnusedNodes(),t.initialize()}else e.initialized&&(e._configured||t.recreateSwapChain(),e.commandEncoder=e.device.createCommandEncoder())},t.initialize=()=>{if(!e.initializing){if(e.initializing=!0,!navigator.gpu){M4("WebGPU is not enabled.");return}t.create3DContextAsync().then(()=>{e.initialized=!0,!e.deleted&&t.invokeInitialized()})}},t.setContainer=o=>{e.el&&e.el!==o&&(e.canvas.parentNode!==e.el&&M4("Error: canvas parent node does not match container"),e.el.removeChild(e.canvas),e.el.contains(e.bgImage)&&e.el.removeChild(e.bgImage)),e.el!==o&&(e.el=o,e.el&&(e.el.appendChild(e.canvas),e.useBackgroundImage&&e.el.appendChild(e.bgImage)),t.modified())},t.getContainer=()=>e.el,t.getContainerSize=()=>{if(!e.containerSize&&e.el){const{width:o,height:s}=e.el.getBoundingClientRect();e.containerSize=[o,s]}return e.containerSize||e.size},t.getFramebufferSize=()=>e.size,t.create3DContextAsync=async()=>{if(e.adapter=await navigator.gpu.requestAdapter({powerPreference:"high-performance"}),!e.deleted){if(e.device=zQe.newInstance(),e.device.initialize(await e.adapter.requestDevice()),e.deleted){e.device=null;return}e.context=e.canvas.getContext("webgpu")}},t.releaseGraphicsResources=()=>{const o=Ll.newInstance();o.setCurrentOperation("Release"),o.traverse(t,null),e.adapter=null,e.device=null,e.context=null,e.initialized=!1,e.initializing=!1},t.setBackgroundImage=o=>{e.bgImage.src=o.src},t.setUseBackgroundImage=o=>{e.useBackgroundImage=o,e.useBackgroundImage&&!e.el.contains(e.bgImage)?e.el.appendChild(e.bgImage):!e.useBackgroundImage&&e.el.contains(e.bgImage)&&e.el.removeChild(e.bgImage)};async function a(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.imageFormat;const s=document.createElement("canvas"),l=s.getContext("2d");s.width=e.canvas.width,s.height=e.canvas.height;const u=await t.getPixelsAsync(),c=new ImageData(u.colorValues,u.width,u.height);l.putImageData(c,0,0);const f=e.canvas.getBoundingClientRect();e.renderable.getRenderers().forEach(v=>{v.getViewProps().forEach(y=>{if(y.getContainer){const b=y.getContainer().getElementsByTagName("canvas");for(let _=0;_0&&arguments[0]!==void 0?arguments[0]:"image/png",{resetCamera:s=!1,size:l=null,scale:u=1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e.deleted)return null;e.imageFormat=o;const c=e.notifyStartCaptureImage;return e.notifyStartCaptureImage=!0,e._screenshot={size:l||u!==1?l||e.size.map(f=>f*u):null},new Promise((f,d)=>{const h=t.onImageReady(p=>{if(e._screenshot.size===null)e.notifyStartCaptureImage=c,h.unsubscribe(),e._screenshot.placeHolder&&(e.size=e._screenshot.originalSize,t.modified(),e._screenshot.cameras&&e._screenshot.cameras.forEach(v=>{let{restoreParamsFn:g,arg:y}=v;return g(y)}),t.traverseAllPasses(),e.el.removeChild(e._screenshot.placeHolder),e._screenshot.placeHolder.remove(),e._screenshot=null),f(p);else{const v=document.createElement("img");if(v.style=rJe,v.src=p,e._screenshot.placeHolder=e.el.appendChild(v),e.canvas.style.display="none",e._screenshot.originalSize=e.size,e.size=e._screenshot.size,e._screenshot.size=null,t.modified(),s){const g=s!==!0;e._screenshot.cameras=e.renderable.getRenderers().map(y=>{const m=y.getActiveCamera(),b=m.get("focalPoint","position","parallelScale");return{resetCameraArgs:g?{renderer:y}:void 0,resetCameraFn:g?s:y.resetCamera,restoreParamsFn:m.set,arg:JSON.parse(JSON.stringify(b))}}),e._screenshot.cameras.forEach(y=>{let{resetCameraFn:m,resetCameraArgs:b}=y;return m(b)})}t.traverseAllPasses()}})})},t.traverseAllPasses=()=>{if(!e.deleted)if(e.initialized){if(e.renderPasses)for(let o=0;o{a()}))}else{t.initialize();const o=t.onInitialized(()=>{o.unsubscribe(),t.traverseAllPasses()})}},t.setViewStream=o=>{if(e.viewStream===o)return!1;if(e.subscription&&(e.subscription.unsubscribe(),e.subscription=null),e.viewStream=o,e.viewStream){const s=e.renderable.getRenderers()[0];s.getBackgroundByReference()[3]=0,t.setUseBackgroundImage(!0),e.subscription=e.viewStream.onImageReady(l=>t.setBackgroundImage(l.image)),e.viewStream.setSize(e.size[0],e.size[1]),e.viewStream.invalidateCache(),e.viewStream.render(),t.modified()}return!0},t.getUniquePropID=()=>e.nextPropID++,t.getPropFromID=o=>{for(let s=0;s{const o=e.device,s=e.renderPasses[0].getOpaquePass().getColorTexture(),l={width:s.getWidth(),height:s.getHeight()};l.colorBufferWidth=32*Math.floor((l.width+31)/32),l.colorBufferSizeInBytes=l.colorBufferWidth*l.height*8;const u=kv.newInstance();u.setDevice(o),u.create(l.colorBufferSizeInBytes,GPUBufferUsage.MAP_READ|GPUBufferUsage.COPY_DST);const c=e.device.createCommandEncoder();c.copyTextureToBuffer({texture:s.getHandle()},{buffer:u.getHandle(),bytesPerRow:8*l.colorBufferWidth,rowsPerImage:l.height},{width:l.width,height:l.height,depthOrArrayLayers:1}),o.submitCommandEncoder(c),await u.mapAsync(GPUMapMode.READ),l.colorValues=new Uint16Array(u.getMappedRange().slice()),u.unmap();const d=new Uint8ClampedArray(l.height*l.width*4);for(let h=0;h{const o=uQ.newInstance();return o.setWebGPURenderWindow(t),o};const i=t.setSize;t.setSize=(o,s)=>{const l=i(o,s);return l&&t.invokeWindowResizeEvent({width:o,height:s}),l},t.delete=Q.chain(t.delete,t.setViewStream)}const iJe={initialized:!1,context:null,adapter:null,device:null,canvas:null,cursorVisibility:!0,cursor:"pointer",containerSize:null,renderPasses:[],notifyStartCaptureImage:!1,imageFormat:"image/png",useOffScreen:!1,useBackgroundImage:!1,nextPropID:1,xrSupported:!1,presentationFormat:null};function oJe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,iJe,n),e.canvas=document.createElement("canvas"),e.canvas.style.width="100%",e.bgImage=new Image,e.bgImage.style.position="absolute",e.bgImage.style.left="0",e.bgImage.style.top="0",e.bgImage.style.width="100%",e.bgImage.style.height="100%",e.bgImage.style.zIndex="-1",kZ.extend(t,e,n),e.myFactory=nJe.newInstance(),e.myFactory.registerOverride("vtkRenderWindow",dQ),e.renderPasses[0]=AQe.newInstance(),e.selector||(e.selector=uQ.newInstance(),e.selector.setWebGPURenderWindow(t)),Q.event(t,e,"imageReady"),Q.event(t,e,"initialized"),Q.get(t,e,["commandEncoder","device","presentationFormat","useBackgroundImage","xrSupported"]),Q.setGet(t,e,["initialized","context","canvas","device","renderPasses","notifyStartCaptureImage","cursor","useOffScreen"]),Q.setGetArray(t,e,["size"],2),Q.event(t,e,"windowResizeEvent"),aJe(t,e)}const dQ=Q.newInstance(oJe,"vtkWebGPURenderWindow");wO("WebGPU",dQ);const sJe=uje.extractURLParameters();function lJe(t,e){const n=t.invokeResize;delete t.invokeResize,e.renderWindow=I7e.newInstance(),e.renderer=R7e.newInstance(),e.renderWindow.addRenderer(e.renderer),e._apiSpecificRenderWindow=e.renderWindow.newAPISpecificView(sJe.viewAPI??e.defaultViewAPI),e.renderWindow.addView(e._apiSpecificRenderWindow),e.interactor=aq.newInstance(),e.interactor.setInteractorStyle(oje.newInstance()),e.interactor.setView(e._apiSpecificRenderWindow),e.interactor.initialize(),t.setBackground=e.renderer.setBackground,t.setBackground(...e.background),t.resize=()=>{if(e.container){const r=e.container.getBoundingClientRect(),a=window.devicePixelRatio||1;e._apiSpecificRenderWindow.setSize(Math.floor(r.width*a),Math.floor(r.height*a)),n(),e.renderWindow.render()}},t.setContainer=r=>{e.container&&e.interactor.unbindEvents(e.container),e.container=r,e._apiSpecificRenderWindow.setContainer(e.container),e.container&&e.interactor.bindEvents(e.container)},t.delete=Q.chain(t.setContainer,e._apiSpecificRenderWindow.delete,t.delete),e.listenWindowResize&&window.addEventListener("resize",t.resize),t.resize()}const uJe={background:[.32,.34,.43],listenWindowResize:!0,container:null};function hQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,uJe,n),Q.obj(t,e),Q.get(t,e,["renderWindow","renderer","_apiSpecificRenderWindow","interactor","container"]),Q.moveToProtected(t,e,["_apiSpecificRenderWindow"]),Q.event(t,e,"resize"),lJe(t,e)}const cJe=Q.newInstance(hQ);var $O={newInstance:cJe,extend:hQ};function fJe(t,e){e===void 0&&(e={});var n=e.insertAt;if(!(!t||typeof document>"u")){var r=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&r.firstChild?r.insertBefore(a,r.firstChild):r.appendChild(a),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t))}}var dJe=`.RenderWindowWithControlBar-module_rootContainer__1xqVd { position: relative; } .RenderWindowWithControlBar-module_renderWindow__2mz6Z { position: absolute; top: 0; left: 0; right: 0; bottom: 0; } .RenderWindowWithControlBar-module_control__38_dI { z-index: 1; position: absolute; } `,h1={rootContainer:"RenderWindowWithControlBar-module_rootContainer__1xqVd",renderWindow:"RenderWindowWithControlBar-module_renderWindow__2mz6Z",control:"RenderWindowWithControlBar-module_control__38_dI"};fJe(dJe);const hJe={left(t){return{top:"0",left:"0",bottom:"0",right:"unset",height:"unset",width:`${t}px`}},right(t){return{top:"0",right:"0",bottom:"0",left:"unset",height:"unset",width:`${t}px`}},top(t){return{top:"0",left:"0",right:"0",bottom:"unset",width:"unset",height:`${t}px`}},bottom(t){return{bottom:"0",left:"0",right:"0",top:"unset",width:"unset",height:`${t}px`}}};function vJe(t,e,n){const r=hJe[e](n);Object.keys(r).forEach(a=>{t.style[a]=r[a]})}function pJe(t,e){const n={...t};function r(i){e.renderWindowContainer.style[i]="0px"}function a(){["left","right","top","bottom"].forEach(r),e.renderWindowContainer.style[e.controlPosition]=`${e.controlSize}px`,vJe(e.controlContainer,e.controlPosition,e.controlSize)}e.renderWindowContainer=document.createElement("div"),e.renderWindowContainer.classList.add(h1.renderWindow),n.setContainer(e.renderWindowContainer),e.controlContainer=document.createElement("div"),e.controlContainer.classList.add(h1.control),t.setContainer=i=>{e.rootContainer&&(e.rootContainer.removeChild(e.container),e.rootContainer.removeChild(e.controlContainer),e.rootContainer.classList.remove(h1.rootContainer)),e.rootContainer=i,e.rootContainer&&(e.rootContainer.appendChild(e.container),e.rootContainer.appendChild(e.controlContainer),e.rootContainer.classList.add(h1.rootContainer),a(),t.resize())},t.setControlSize=i=>{e.controlSize=i,a(),t.modified()},t.setControlPosition=i=>{e.controlPosition=i,a(),t.modified()},e.listenWindowResize&&window.addEventListener("resize",t.resize),a(),t.resize()}const gJe={rootContainer:null,controlPosition:"left",controlSize:10};function yJe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,gJe,n),$O.extend(t,e),Q.get(t,e,["rootContainer","controlContainer","renderWindowContainer"]),pJe(t,e)}Q.newInstance(yJe,"vtkRenderWindowWithControlBar");const mJe=t=>t,k4=1e-6;class vQ{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.matrix=zn(new Float64Array(16)),this.tmp=new Float64Array(3),this.angleConv=e?gWe:mJe}rotateFromDirections(e,n){const r=new Float64Array(3),a=new Float64Array(3),i=new Float64Array(16);os(r,e[0],e[1],e[2]),os(a,n[0],n[1],n[2]),jh(r,r),jh(a,a);const o=yX(r,a);return o>=1?this:(Kh(this.tmp,r,a),Nk(this.tmp)1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(_X(z9e,this.matrix))return this;const a=r===-1?e.length:n+r*3;for(let i=n;ie.resolution?1:p+2;_Je.buildFromRadian().translate(...e.center).rotateFromDirections([1,0,0],e.direction).apply(f),i=Z0.newInstance(),i.getPoints().setData(f,3),i.getPolys().setData(h,1),a[0]=i}t.requestData=n}const xJe={height:1,radius:.5,resolution:6,center:[0,0,0],direction:[1,0,0],capping:!0,pointType:"Float64Array"};function CJe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,xJe,n),Q.obj(t,e),Q.setGet(t,e,["height","radius","resolution","capping"]),Q.setGetArray(t,e,["center","direction"],3),Q.algo(t,e,0,1),wJe(t,e)}Q.newInstance(CJe,"vtkConeSource");const IO={};function pQ(t){return!!IO[t]}function TJe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return IO[t](e)}function gQ(t,e){IO[t]=e}var EJe={get:TJe,has:pQ,registerType:gQ};const MJe={bit:Uint8Array,unsigned_char:Uint8Array,char:Int8Array,unsigned_short:Uint16Array,short:Int16Array,unsigned_int:Uint32Array,int:Int32Array,unsigned_long:Uint32Array,long:Int32Array,float:Float32Array,double:Float64Array};function kC(t,e,n){let r=0;function a(i){return i.split(" ").forEach(o=>{o.length&&(t[r++]=Number(o))}),r1&&arguments[1]!==void 0?arguments[1]:{},n=null;const a=/\r?\n/.exec(t),i=a!==null?a[0]:null;return t.split(i).forEach((o,s)=>{if(!(s<0)){if(!n){if(n=DJe(o),!n)return;n=n.init(o,e)?n:null;return}n&&!n.parse(o,e)&&(n=null)}}),e}var LJe={parseLegacyASCII:RJe};function yQ(){const t=new ArrayBuffer(4),e=new Uint8Array(t),n=new Uint32Array(t);return e[0]=161,e[1]=178,e[2]=195,e[3]=212,n[0]===3569595041?"LittleEndian":n[0]===2712847316?"BigEndian":null}const AJe=yQ();function OJe(t,e){if(e<2)return;const n=new Int8Array(t),r=n.length,a=[];for(let i=0;i(mQ("LiteHttpDataAccessHelper does not support compression. Need to register HttpDataAccessHelper instead."),Promise.reject(new Error("LiteHttpDataAccessHelper does not support compression. Need to register HttpDataAccessHelper instead.")));let Dv=0;function Cx(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=new XMLHttpRequest;return r.open(t,e,!0),n.headers&&Object.entries(n.headers).forEach(a=>{let[i,o]=a;return r.setRequestHeader(i,o)}),n.progressCallback&&r.addEventListener("progress",n.progressCallback),r}function $Je(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise((n,r)=>{const a=Cx("GET",t,e);a.onreadystatechange=i=>{a.readyState===4&&(a.status===200||a.status===0?n(a.response):r({xhr:a,e:i}))},a.responseType="arraybuffer",a.send()})}function IJe(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r&&r.compression?BO():n.ref&&!n.ref.pending?new Promise((a,i)=>{const o=[e,n.ref.basepath,n.ref.id].join("/"),s=Cx("GET",o,r);s.onreadystatechange=l=>{s.readyState===1&&(n.ref.pending=!0,++Dv===1&&(t!=null&&t.invokeBusy)&&t.invokeBusy(!0)),s.readyState===4&&(n.ref.pending=!1,s.status===200||s.status===0?(n.buffer=s.response,n.ref.encode==="JSON"?n.values=JSON.parse(n.buffer):(DC.ENDIANNESS!==n.ref.encode&&DC.ENDIANNESS&&(NJe(`Swap bytes of ${n.name}`),DC.swapBytes(n.buffer,lq[n.dataType])),n.values=Q.newTypedArray(n.dataType,n.buffer)),n.values.length!==n.size&&mQ(`Error in FetchArray: ${n.name}, does not have the proper array size. Got ${n.values.length}, instead of ${n.size}`),delete n.ref,--Dv===0&&(t!=null&&t.invokeBusy)&&t.invokeBusy(!1),t!=null&&t.modified&&t.modified(),a(n)):i({xhr:s,e:l}))},s.responseType=n.dataType!=="string"?"arraybuffer":"text",s.send()}):Promise.resolve(n)}function BJe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n&&n.compression?BO():new Promise((r,a)=>{const i=Cx("GET",e,n);i.onreadystatechange=o=>{i.readyState===1&&++Dv===1&&t!=null&&t.invokeBusy&&t.invokeBusy(!0),i.readyState===4&&(--Dv===0&&(t!=null&&t.invokeBusy)&&t.invokeBusy(!1),i.status===200||i.status===0?r(JSON.parse(i.responseText)):a({xhr:i,e:o}))},i.responseType="text",i.send()})}function VJe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n&&n.compression?BO():new Promise((r,a)=>{const i=Cx("GET",e,n);i.onreadystatechange=o=>{i.readyState===1&&++Dv===1&&t!=null&&t.invokeBusy&&t.invokeBusy(!0),i.readyState===4&&(--Dv===0&&(t!=null&&t.invokeBusy)&&t.invokeBusy(!1),i.status===200||i.status===0?r(i.responseText):a({xhr:i,e:o}))},i.responseType="text",i.send()})}function PJe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return new Promise((r,a)=>{const i=new Image;n.crossOrigin&&(i.crossOrigin=n.crossOrigin),i.onload=()=>r(i),i.onerror=a,i.src=e})}const FJe={fetchArray:IJe,fetchJSON:BJe,fetchText:VJe,fetchBinary:$Je,fetchImage:PJe};pQ("http")||gQ("http",t=>FJe);function zJe(t,e){e.classHierarchy.push("vtkUnstructuredDataReader"),e.dataAccessHelper||(e.dataAccessHelper=EJe.get("http"));function n(r){const{compression:a,progressCallback:i}=e;return e.dataAccessHelper.fetchText(t,r,{compression:a,progressCallback:i})}t.setUrl=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.url=r;const i=r.split("/");return i.pop(),e.baseURL=i.join("/"),e.compression=a.compression,t.loadData({progressCallback:a.progressCallback})},t.loadData=function(){const r=n(e.url);return r.then(t.parseAsText),r},t.parseAsText=r=>{if(r){if(r!==e.parseData)t.modified();else return;e.parseData=r,e.dataModel=LJe.parseLegacyASCII(e.parseData),e.output[0]=e.dataModel.dataset,e.output[1]=e.dataModel.scalars}},t.requestData=(r,a)=>{t.parseAsText(e.parseData)}}const GJe={};function bQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,GJe,n),Q.obj(t,e),Q.get(t,e,["url","baseURL"]),Q.setGet(t,e,["dataAccessHelper"]),Q.algo(t,e,0,1),zJe(t,e),e.compression||(e.compression=null),e.progressCallback||(e.progressCallback=null)}const HJe=Q.newInstance(bQ,"vtkUnstructuredDataReader");var UJe={newInstance:HJe,extend:bQ};class WJe{constructor(){this.aid=5,this.step,this.stepsum=10,this._url="/disaster/TransServlet?channelNo=service&clientToken=e47b87eec69545559d1e81e56626da68&userId=5f06c8bc77234f969d13e160b54c27e3&aid=",this.polydata,this.scalars=new Map,this.scalar=new Map,this.reader=UJe.newInstance()}async initGemetry(){this.scalars=new Map,this.scalar=new Map;const e=this._url+this.aid+"&transCode=D000014";await this.reader.setUrl(e).then(()=>{this.polydata=this.reader.getOutputData(0)})}async initScalrs(){for(let e=0;e<=this.stepsum;e++)await this.reader.setUrl(this._url+"&transCode=D00009&step="+e).then(()=>{const n=this.reader.getOutputData(1);this.scalars.set(e,n)})}async getScalrsByStep(e){if(this.step=e,this.scalars.get(e))this.scalar=this.scalars.get(e);else{const n=this._url+this.aid+"&transCode=D00009&step="+this.step;await this.reader.setUrl(n).then(()=>{const r=this.reader.getOutputData(1);this.scalar=r,this.scalars.set(e,r)})}}}function SQ(){return new WJe}const{VectorMode:jJe}=bx;function RC(t,e){t.strokeStyle=e.strokeColor,t.lineWidth=e.strokeSize,t.fillStyle=e.fontColor,t.font=`${e.fontStyle} ${e.fontSize}px ${e.fontFamily}`}function _Q(t,e){return n=>{const r=n.getLastSize(),a=(r[0]/700)**.8,i=(r[1]/700)**.8,o=Math.min(a,i),s=n.getAxisTextStyle(),l=n.getTickTextStyle();Object.assign(s,e.axisTextStyle),Object.assign(l,e.tickTextStyle),s.fontSize=Math.max(24*o,12),n.getLastAspectRatio()>1?l.fontSize=Math.max(20*o,10):l.fontSize=Math.max(16*o,10);const u=n.updateTextureAtlas();n.setTopTitle(!1);const c=n.getBoxSizeByReference();if(n.getLastAspectRatio()>1)n.setTickLabelPixelOffset(.3*l.fontSize),u.titleWidth<=u.tickWidth+n.getTickLabelPixelOffset()+.8*l.fontSize?(n.setTopTitle(!0),n.setAxisTitlePixelOffset(.2*l.fontSize),c[0]=2*(u.tickWidth+n.getTickLabelPixelOffset()+.8*l.fontSize)/r[0],n.setBoxPosition([.98-c[0],-.92])):(n.setAxisTitlePixelOffset(.2*l.fontSize),c[0]=2*(u.titleHeight+n.getAxisTitlePixelOffset()+u.tickWidth+n.getTickLabelPixelOffset()+.8*l.fontSize)/r[0],n.setBoxPosition([.99-c[0],-.92])),c[1]=Math.max(1.2,Math.min(1.84/i,1.84));else{n.setAxisTitlePixelOffset(1.2*l.fontSize),n.setTickLabelPixelOffset(.1*l.fontSize);const f=2*(.8*l.fontSize+u.titleHeight+n.getAxisTitlePixelOffset())/r[1],d=2*u.tickWidth/r[0];c[0]=Math.min(1.9,Math.max(1.4,1.4*d*(n.getTicks().length+3))),c[1]=f,n.setBoxPosition([-.5*c[0],-.97])}n.recomputeBarSegments(u)}}function wQ(t,e){return n=>{const r=n.getLastTickBounds(),a=dx().domain([r[0],r[1]]),i=a.ticks(5),o=a.tickFormat(5);n.setTicks(i),n.setTickStrings(i.map(o))}}function KJe(t,e){e.classHierarchy.push("vtkScalarBarActorHelper"),t.setRenderable=a=>{e.renderable!==a&&(e.renderable=a,e.barActor.setProperty(a.getProperty()),e.barActor.setParentProp(a),e.barActor.setCoordinateSystemToDisplay(),e.tmActor.setProperty(a.getProperty()),e.tmActor.setParentProp(a),e.tmActor.setCoordinateSystemToDisplay(),e.generateTicks=a.generateTicks,e.axisTextStyle={...a.getAxisTextStyle()},e.tickTextStyle={...a.getTickTextStyle()},t.modified())},t.updateAPISpecificData=(a,i,o)=>{(e.lastSize[0]!==a[0]||e.lastSize[1]!==a[1])&&(e.lastSize[0]=a[0],e.lastSize[1]=a[1],e.lastAspectRatio=a[0]/a[1],e.forceUpdate=!0);const s=e.renderable.getScalarsToColors();if(!(!s||!e.renderable.getVisibility())&&(e.barMapper.setLookupTable(s),e.camera=i,e.renderWindow=o,e.forceUpdate||Math.max(s.getMTime(),t.getMTime(),e.renderable.getMTime())>e.lastRebuildTime.getMTime())){const l=s.getMappingRange();if(e.lastTickBounds=[...l],e.renderable.getGenerateTicks()(t),e.renderable.getAutomated())e.renderable.getAutoLayout()(t);else{e.axisTextStyle={...e.renderable.getAxisTextStyle()},e.tickTextStyle={...e.renderable.getTickTextStyle()},e.barPosition=[...e.renderable.getBarPosition()],e.barSize=[...e.renderable.getBarSize()],e.boxPosition=[...e.renderable.getBoxPosition()],e.boxSize=[...e.renderable.getBoxSize()],e.axisTitlePixelOffset=e.renderable.getAxisTitlePixelOffset(),e.tickLabelPixelOffset=e.renderable.getTickLabelPixelOffset();const u=t.updateTextureAtlas();t.recomputeBarSegments(u)}t.updatePolyDataForLabels(),t.updatePolyDataForBarSegments(),e.lastRebuildTime.modified(),e.forceUpdate=!1}},t.updateTextureAtlas=()=>{e.tmContext.textBaseline="bottom",e.tmContext.textAlign="left";const a={},i=new Map;let o=0,s=1;RC(e.tmContext,e.axisTextStyle);let l=e.tmContext.measureText(e.renderable.getAxisLabel()),u={height:l.actualBoundingBoxAscent+2,startingHeight:s,width:l.width+2,textStyle:e.axisTextStyle};i.set(e.renderable.getAxisLabel(),u),s+=u.height,o=u.width,a.titleWidth=u.width,a.titleHeight=u.height,a.tickWidth=0,a.tickHeight=0,RC(e.tmContext,e.tickTextStyle);const c=[...t.getTickStrings(),"NaN","Below","Above"];for(let f=0;f{f.tcoords=[0,(s-f.startingHeight-f.height)/s,f.width/o,(s-f.startingHeight-f.height)/s,f.width/o,(s-f.startingHeight)/s,0,(s-f.startingHeight)/s]}),e.tmCanvas.width=o,e.tmCanvas.height=s,e.tmContext.textBaseline="bottom",e.tmContext.textAlign="left",e.tmContext.clearRect(0,0,o,s),i.forEach((f,d)=>{RC(e.tmContext,f.textStyle),e.tmContext.fillText(d,1,f.startingHeight+f.height-1)}),e.tmTexture.setCanvas(e.tmCanvas),e.tmTexture.modified(),e._tmAtlas=i,a},t.computeBarSize=a=>{e.vertical=e.boxSize[1]>e.boxSize[0];const i=2*a.tickHeight/e.lastSize[1],o=[1,1];if(e.vertical){const s=2*(a.tickWidth+e.tickLabelPixelOffset)/e.lastSize[0];if(e.topTitle){const l=2*(a.titleHeight+e.axisTitlePixelOffset)/e.lastSize[1];e.barSize[0]=e.boxSize[0]-s,e.barSize[1]=e.boxSize[1]-l}else{const l=2*(a.titleHeight+e.axisTitlePixelOffset)/e.lastSize[0];e.barSize[0]=e.boxSize[0]-l-s,e.barSize[1]=e.boxSize[1]}e.barPosition[0]=e.boxPosition[0]+s,e.barPosition[1]=e.boxPosition[1],o[1]=i}else{const s=(2*a.tickWidth-8)/e.lastSize[0],l=2*(a.titleHeight+e.axisTitlePixelOffset)/e.lastSize[1];e.barSize[0]=e.boxSize[0],e.barPosition[0]=e.boxPosition[0],e.barSize[1]=e.boxSize[1]-l,e.barPosition[1]=e.boxPosition[1],o[0]=s}return o},t.recomputeBarSegments=a=>{var d,h,p,v;const i=t.computeBarSize(a);e.barSegments=[];const o=[0,0],s=e.vertical?1:0,l=e.vertical?.01:.02;function u(g,y){e.barSegments.push({corners:[[...o],[o[0]+i[0],o[1]],[o[0]+i[0],o[1]+i[1]],[o[0],o[1]+i[1]]],scalars:y,title:g}),o[s]+=i[s]+l}e.renderable.getDrawNanAnnotation()&&e.renderable.getScalarsToColors().getNanColor()&&u("NaN",[NaN,NaN,NaN,NaN]),e.renderable.getDrawBelowRangeSwatch()&&((h=(d=e.renderable.getScalarsToColors()).getUseBelowRangeColor)!=null&&h.call(d))&&u("Below",[-.1,-.1,-.1,-.1]);const c=(v=(p=e.renderable.getScalarsToColors()).getUseAboveRangeColor)==null?void 0:v.call(p);o[s]+=l;const f=i[s];i[s]=c?1-2*l-i[s]-o[s]:1-l-o[s],u("ticks",e.vertical?[0,0,.995,.995]:[0,.995,.995,0]),e.renderable.getDrawAboveRangeSwatch()&&c&&(i[s]=f,o[s]+=l,u("Above",[1.1,1.1,1.1,1.1]))};const n=new Float64Array(3);t.createPolyDataForOneLabel=(a,i,o,s,l,u)=>{const c=e._tmAtlas.get(a);if(!c)return;let f=u.ptIdx,d=u.cellIdx;n[0]=(.5*i[0]+.5)*e.lastSize[0],n[1]=(.5*i[1]+.5)*e.lastSize[1],n[2]=i[2],n[0]+=l[0],n[1]+=l[1];const h=[],p=s==="vertical"?[1,0]:[0,1];s==="vertical"?(h[0]=c.width,h[1]=-c.height,o[0]==="middle"?n[1]-=c.width/2:o[0]==="right"&&(n[1]-=c.width),o[1]==="middle"?n[0]+=c.height/2:o[1]==="top"&&(n[0]+=c.height)):(h[0]=c.width,h[1]=c.height,o[0]==="middle"?n[0]-=c.width/2:o[0]==="right"&&(n[0]-=c.width),o[1]==="middle"?n[1]-=c.height/2:o[1]==="top"&&(n[1]-=c.height)),u.points[f*3]=n[0],u.points[f*3+1]=n[1],u.points[f*3+2]=n[2],u.tcoords[f*2]=c.tcoords[0],u.tcoords[f*2+1]=c.tcoords[1],f++,n[p[0]]+=h[0],u.points[f*3]=n[0],u.points[f*3+1]=n[1],u.points[f*3+2]=n[2],u.tcoords[f*2]=c.tcoords[2],u.tcoords[f*2+1]=c.tcoords[3],f++,n[p[1]]+=h[1],u.points[f*3]=n[0],u.points[f*3+1]=n[1],u.points[f*3+2]=n[2],u.tcoords[f*2]=c.tcoords[4],u.tcoords[f*2+1]=c.tcoords[5],f++,n[p[0]]-=h[0],u.points[f*3]=n[0],u.points[f*3+1]=n[1],u.points[f*3+2]=n[2],u.tcoords[f*2]=c.tcoords[6],u.tcoords[f*2+1]=c.tcoords[7],f++,u.polys[d*4]=3,u.polys[d*4+1]=f-4,u.polys[d*4+2]=f-3,u.polys[d*4+3]=f-2,d++,u.polys[d*4]=3,u.polys[d*4+1]=f-4,u.polys[d*4+2]=f-2,u.polys[d*4+3]=f-1,u.ptIdx+=4,u.cellIdx+=2};const r=new Float64Array(3);t.updatePolyDataForLabels=()=>{const a=t.getTickStrings().length+e.barSegments.length,i=a*4,o=a*2,s=new Float64Array(i*3),l=new Uint16Array(o*4),u=new Float32Array(i*2),c={ptIdx:0,cellIdx:0,polys:l,points:s,tcoords:u},f=e.vertical?0:1,d=e.vertical?1:0;r[2]=-.99;const h=e.vertical?["right","middle"]:["middle","bottom"];let p=[0,1];const v=[0,0];e.vertical?(v[0]=-e.tickLabelPixelOffset,e.topTitle?(r[0]=e.boxPosition[0]+.5*e.boxSize[0],r[1]=e.barPosition[1]+e.barSize[1],t.createPolyDataForOneLabel(e.renderable.getAxisLabel(),r,["middle","bottom"],"horizontal",[0,e.axisTitlePixelOffset],c)):(r[0]=e.barPosition[0]+e.barSize[0],r[1]=e.barPosition[1]+.5*e.barSize[1],t.createPolyDataForOneLabel(e.renderable.getAxisLabel(),r,["middle","top"],"vertical",[e.axisTitlePixelOffset,0],c)),p=[-1,0]):(v[1]=e.tickLabelPixelOffset,r[0]=e.barPosition[0]+.5*e.barSize[0],r[1]=e.barPosition[1]+e.barSize[1],t.createPolyDataForOneLabel(e.renderable.getAxisLabel(),r,["middle","bottom"],"horizontal",[0,e.axisTitlePixelOffset],c)),r[f]=e.barPosition[f]+(.5*p[f]+.5)*e.barSize[f],r[d]=e.barPosition[d]+e.barSize[d]*.5;let g=null;for(let w=0;w{var v,g;const a=e.renderable.getScalarsToColors();let i=0;e.renderable.getDrawNanAnnotation()&&a.getNanColor()&&(i+=1),e.renderable.getDrawBelowRangeSwatch()&&((v=a.getUseBelowRangeColor)!=null&&v.call(a))&&(i+=1),e.renderable.getDrawAboveRangeSwatch()&&((g=a.getUseAboveRangeColor)!=null&&g.call(a))&&(i+=1);const o=4*(1+i),s=o;let l=1;a.getVectorMode()===jJe.COMPONENT&&(l=a.getVectorComponent()+1);const u=new Float64Array(o*3),c=new Uint16Array(s*5),f=new Float32Array(o*l);let d=0,h=0;for(let y=0;y2&&arguments[2]!==void 0?arguments[2]:{renderable:null};Object.assign(e,{},n),Q.obj(t,e),Q.setGet(t,e,["axisTitlePixelOffset","tickLabelPixelOffset","renderable","topTitle","ticks","tickStrings"]),Q.get(t,e,["lastSize","lastAspectRatio","lastTickBounds","axisTextStyle","tickTextStyle","barActor","tmActor"]),Q.getArray(t,e,["boxPosition","boxSize"]),Q.setArray(t,e,["boxPosition","boxSize"],2),e.forceUpdate=!1,e.lastRebuildTime={},Q.obj(e.lastRebuildTime,{mtime:0}),e.lastSize=[-1,-1],e.tmCanvas=document.createElement("canvas"),e.tmContext=e.tmCanvas.getContext("2d"),e._tmAtlas=new Map,e.barMapper=y_.newInstance(),e.barMapper.setInterpolateScalarsBeforeMapping(!0),e.barMapper.setUseLookupTableScalarRange(!0),e.polyData=Z0.newInstance(),e.barMapper.setInputData(e.polyData),e.barActor=Q0.newInstance(),e.barActor.setMapper(e.barMapper),e.tmPolyData=Z0.newInstance(),e.tmMapper=y_.newInstance(),e.tmMapper.setInputData(e.tmPolyData),e.tmTexture=YZ.newInstance({resizable:!0}),e.tmTexture.setInterpolate(!1),e.tmActor=Q0.newInstance({parentProp:t}),e.tmActor.setMapper(e.tmMapper),e.tmActor.addTexture(e.tmTexture),e.barPosition=[0,0],e.barSize=[0,0],e.boxPosition=[.88,-.92],e.boxSize=[.1,1.1],e.lastTickBounds=[],KJe(t,e)},"vtkScalarBarActorHelper");function XJe(t,e){e.classHierarchy.push("vtkScalarBarActor"),t.setTickTextStyle=n=>{e.tickTextStyle={...e.tickTextStyle,...n},t.modified()},t.setAxisTextStyle=n=>{e.axisTextStyle={...e.axisTextStyle,...n},t.modified()},t.resetAutoLayoutToDefault=()=>{t.setAutoLayout(_Q(t,e))},t.resetGenerateTicksToDefault=()=>{t.setGenerateTicks(wQ())}}function qJe(t){return{automated:!0,autoLayout:null,axisLabel:"Scalar Value",barPosition:[0,0],barSize:[0,0],boxPosition:[.88,-.92],boxSize:[.1,1.1],scalarToColors:null,axisTitlePixelOffset:36,axisTextStyle:{fontColor:"white",fontStyle:"normal",fontSize:18,fontFamily:"serif"},tickLabelPixelOffset:14,tickTextStyle:{fontColor:"white",fontStyle:"normal",fontSize:14,fontFamily:"serif"},generateTicks:null,drawNanAnnotation:!0,drawBelowRangeSwatch:!0,drawAboveRangeSwatch:!0,...t}}function xQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,qJe(n)),e.autoLayout||(e.autoLayout=_Q(t,e)),e.generateTicks||(e.generateTicks=wQ()),Q0.extend(t,e,n),t.getProperty().setDiffuse(0),t.getProperty().setAmbient(1),Q.setGet(t,e,["automated","autoLayout","axisTitlePixelOffset","axisLabel","scalarsToColors","tickLabelPixelOffset","generateTicks","drawNanAnnotation","drawBelowRangeSwatch","drawAboveRangeSwatch"]),Q.get(t,e,["axisTextStyle","tickTextStyle"]),Q.getArray(t,e,["barPosition","barSize","boxPosition","boxSize"]),Q.setArray(t,e,["barPosition","barSize","boxPosition","boxSize"],2),XJe(t,e)}const ZJe=Q.newInstance(xQ,"vtkScalarBarActor");var CQ={newInstance:ZJe,extend:xQ,newScalarBarActorHelper:YJe};const QJe={RGB:0,HSV:1,LAB:2,DIVERGING:3},JJe={LINEAR:0,LOG10:1};var TQ={ColorSpace:QJe,Scale:JJe};const{ColorSpace:so,Scale:EQ}=TQ,{ScalarMappingTarget:v1}=bx,{vtkDebugMacro:eet,vtkErrorMacro:Gs,vtkWarningMacro:tet}=Q;function D4(t,e){const n=t[0],r=t[1],a=t[2],i=Math.sqrt(n*n+r*r+a*a),o=i>.001?Math.acos(n/i):0,s=o>.001?Math.atan2(a,r):0;e[0]=i,e[1]=o,e[2]=s}function net(t,e){const n=t[0],r=t[1],a=t[2];e[0]=n*Math.cos(r),e[1]=n*Math.sin(r)*Math.cos(a),e[2]=n*Math.sin(r)*Math.sin(a)}function R4(t,e){if(t[0]>=e-.1)return t[2];const n=t[1]*Math.sqrt(e*e-t[0]*t[0])/(t[0]*Math.sin(t[1]));return t[2]>-.3*Math.PI?t[2]+n:t[2]-n}function ret(t,e){let n=t-e;for(n<0&&(n=-n);n>=2*Math.PI;)n-=2*Math.PI;return n>Math.PI&&(n=2*Math.PI-n),n}function L4(t,e,n,r){const a=[],i=[];Th(e,a),Th(n,i);const o=[],s=[];D4(a,o),D4(i,s);let l=t;if(o[1]>.05&&s[1]>.05&&ret(o[2],s[2])>.33*Math.PI){let f=Math.max(o[0],s[0]);f=Math.max(88,f),t<.5?(s[0]=f,s[1]=0,s[2]=0,l*=2):(o[0]=f,o[1]=0,o[2]=0,l=2*l-1)}o[1]<.05&&s[1]>.05?o[2]=R4(s,o[0]):s[1]<.05&&o[1]>.05&&(s[2]=R4(o,s[0]));const u=[];u[0]=(1-l)*o[0]+l*s[0],u[1]=(1-l)*o[1]+l*s[1],u[2]=(1-l)*o[2]+l*s[2];const c=[];net(u,c),Vk(c,r)}function aet(t,e){e.classHierarchy.push("vtkColorTransferFunction"),t.getSize=()=>e.nodes.length,t.addRGBPoint=(n,r,a,i)=>t.addRGBPointLong(n,r,a,i,.5,0),t.addRGBPointLong=function(n,r,a,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.5,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(o<0||o>1)return Gs("Midpoint outside range [0.0, 1.0]"),-1;if(s<0||s>1)return Gs("Sharpness outside range [0.0, 1.0]"),-1;e.allowDuplicateScalars||t.removePoint(n);const l={x:n,r,g:a,b:i,midpoint:o,sharpness:s};e.nodes.push(l),t.sortAndUpdateRange();let u=0;for(;ut.addHSVPointLong(n,r,a,i,.5,0),t.addHSVPointLong=function(n,r,a,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.5,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;const l=[];return fh([r,a,i],l),t.addRGBPoint(n,l[0],l[1],l[2],o,s)},t.setNodes=n=>{if(e.nodes!==n){const r=JSON.stringify(e.nodes);e.nodes=n;const a=JSON.stringify(e.nodes);if(t.sortAndUpdateRange()||r!==a)return t.modified(),!0}return!1},t.sortAndUpdateRange=()=>{const n=JSON.stringify(e.nodes);e.nodes.sort((i,o)=>i.x-o.x);const r=JSON.stringify(e.nodes),a=t.updateRange();return!a&&n!==r?(t.modified(),!0):a},t.updateRange=()=>{const n=[2];n[0]=e.mappingRange[0],n[1]=e.mappingRange[1];const r=e.nodes.length;return r?(e.mappingRange[0]=e.nodes[0].x,e.mappingRange[1]=e.nodes[r-1].x):(e.mappingRange[0]=0,e.mappingRange[1]=0),n[0]===e.mappingRange[0]&&n[1]===e.mappingRange[1]?!1:(t.modified(),!0)},t.removePoint=n=>{let r=0;for(;r=e.nodes.length)return-1;let i=!1;return e.nodes.splice(r,1),(r===0||r===e.nodes.length)&&(i=t.updateRange()),i||t.modified(),a},t.movePoint=(n,r)=>{if(n!==r){t.removePoint(r);for(let a=0;a{e.nodes=[],t.sortAndUpdateRange()},t.addRGBSegment=(n,r,a,i,o,s,l,u)=>{t.sortAndUpdateRange();for(let c=0;c=n&&e.nodes[c].x<=o?e.nodes.splice(c,1):c++;t.addRGBPointLong(n,r,a,i,.5,0),t.addRGBPointLong(o,s,l,u,.5,0),t.modified()},t.addHSVSegment=(n,r,a,i,o,s,l,u)=>{const c=[r,a,i],f=[s,l,u],d=[],h=[];fh(c,d),fh(f,h),t.addRGBSegment(n,d[0],d[1],d[2],o,h[0],h[1],h[2])},t.mapValue=n=>{const r=[];return t.getColor(n,r),[Math.floor(255*r[0]+.5),Math.floor(255*r[1]+.5),Math.floor(255*r[2]+.5),255]},t.getColor=(n,r)=>{if(e.indexedLookup){const a=t.getSize(),i=t.getAnnotatedValueIndexInternal(n);if(i<0||a===0){const o=t.getNanColorByReference();r[0]=o[0],r[1]=o[1],r[2]=o[2]}else{const o=[];t.getNodeValue(i%a,o),r[0]=o[1],r[1]=o[2],r[2]=o[3]}return}t.getTable(n,n,1,r)},t.getRedValue=n=>{const r=[];return t.getColor(n,r),r[0]},t.getGreenValue=n=>{const r=[];return t.getColor(n,r),r[1]},t.getBlueValue=n=>{const r=[];return t.getColor(n,r),r[2]},t.getTable=(n,r,a,i)=>{const o=Number(n),s=Number(r);if(c_(o)||c_(s)){for(let k=0;k0);let w=0,C=0,T=0;x&&(w=Math.log10(o),C=Math.log10(s));for(let k=0;k1?x?(T=w+k/(a-1)*(C-w),h=10**T):h=o+k/(a-1)*(s-o):x?(T=.5*(w+C),h=10**T):h=.5*(o+s),e.discretize){const M=e.mappingRange;if(h>=M[0]&&h<=M[1]){const D=e.numberOfValues,R=M[1]-M[0];if(D<=1)h=M[0]+R/2;else{const A=(h-M[0])/R,V=U9e(D*A);h=M[0]+V/(D-1)*R}}}for(;le.nodes[l].x;)l++,l.99999&&(m=.99999));if(h>e.mappingRange[1])i[E]=0,i[E+1]=0,i[E+2]=0,e.clamping&&(t.getUseAboveRangeColor()?(i[E]=e.aboveRangeColor[0],i[E+1]=e.aboveRangeColor[1],i[E+2]=e.aboveRangeColor[2]):(i[E]=c,i[E+1]=f,i[E+2]=d));else if(h0&&(i[E]=e.nodes[0].r,i[E+1]=e.nodes[0].g,i[E+2]=e.nodes[0].b));else if(l===0&&(Math.abs(h-o)<1e-6||e.discretize))u>0?(i[E]=e.nodes[0].r,i[E+1]=e.nodes[0].g,i[E+2]=e.nodes[0].b):(i[E]=0,i[E+1]=0,i[E+2]=0);else{let M=0;if(x?M=(T-p)/(v-p):M=(h-p)/(v-p),M.99)if(M<.5){i[E]=g[0],i[E+1]=g[1],i[E+2]=g[2];continue}else{i[E]=y[0],i[E+1]=y[1],i[E+2]=y[2];continue}if(b<.01){if(e.colorSpace===so.RGB)i[E]=(1-M)*g[0]+M*y[0],i[E+1]=(1-M)*g[1]+M*y[1],i[E+2]=(1-M)*g[2]+M*y[2];else if(e.colorSpace===so.HSV){const $=[],U=[];n1(g,$),n1(y,U),e.hSVWrap&&($[0]-U[0]>.5||U[0]-$[0]>.5)&&($[0]>U[0]?$[0]-=1:U[0]-=1);const j=[];j[0]=(1-M)*$[0]+M*U[0],j[0]<0&&(j[0]+=1),j[1]=(1-M)*$[1]+M*U[1],j[2]=(1-M)*$[2]+M*U[2],fh(j,_),i[E]=_[0],i[E+1]=_[1],i[E+2]=_[2]}else if(e.colorSpace===so.LAB){const $=[],U=[];Th(g,$),Th(y,U);const j=[];j[0]=(1-M)*$[0]+M*U[0],j[1]=(1-M)*$[1]+M*U[1],j[2]=(1-M)*$[2]+M*U[2],Vk(j,_),i[E]=_[0],i[E+1]=_[1],i[E+2]=_[2]}else e.colorSpace===so.DIVERGING?(L4(M,g,y,_),i[E]=_[0],i[E+1]=_[1],i[E+2]=_[2]):Gs("ColorSpace set to invalid value.",e.colorSpace);continue}M<.5?M=.5*(M*2)**(1+10*b):M>.5&&(M=1-.5*((1-M)*2)**(1+10*b));const D=M*M,R=D*M,A=2*R-3*D+1,V=-2*R+3*D,P=R-2*D+M,N=R-D;let I,L;if(e.colorSpace===so.RGB)for(let $=0;$<3;$++)I=y[$]-g[$],L=(1-b)*I,i[E+$]=A*g[$]+V*y[$]+P*L+N*L;else if(e.colorSpace===so.HSV){const $=[],U=[];n1(g,$),n1(y,U),e.hSVWrap&&($[0]-U[0]>.5||U[0]-$[0]>.5)&&($[0]>U[0]?$[0]-=1:U[0]-=1);const j=[];for(let Y=0;Y<3;Y++)I=U[Y]-$[Y],L=(1-b)*I,j[Y]=A*$[Y]+V*U[Y]+P*L+N*L,Y===0&&j[Y]<0&&(j[Y]+=1);fh(j,_),i[E]=_[0],i[E+1]=_[1],i[E+2]=_[2]}else if(e.colorSpace===so.LAB){const $=[],U=[];Th(g,$),Th(y,U);const j=[];for(let Y=0;Y<3;Y++)I=U[Y]-$[Y],L=(1-b)*I,j[Y]=A*$[Y]+V*U[Y]+P*L+N*L;Vk(j,_),i[E]=_[0],i[E+1]=_[1],i[E+2]=_[2]}else e.colorSpace===so.DIVERGING?(L4(M,g,y,_),i[E]=_[0],i[E+1]=_[1],i[E+2]=_[2]):Gs("ColorSpace set to invalid value.");for(let $=0;$<3;$++)i[E+$]=i[E+$]<0?0:i[E+$],i[E+$]=i[E+$]>1?1:i[E+$]}}},t.getUint8Table=function(n,r,a){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t.getMTime()<=e.buildTime&&e.tableSize===a&&e.tableWithAlpha!==i)return e.table;if(e.nodes.length===0)return Gs("Attempting to lookup a value with no points in the function"),e.table;const o=i?4:3;(e.tableSize!==a||e.tableWithAlpha!==i)&&(e.table=new Uint8Array(a*o),e.tableSize=a,e.tableWithAlpha=i);const s=[];t.getTable(n,r,a,s);for(let l=0;l{t.removeAllPoints();const r=n.getNumberOfComponents();for(let a=0;a{let o=0;t.removeAllPoints(),a>1&&(o=(r-n)/(a-1));for(let s=0;sn<0||n>=e.nodes.length?(Gs("Index out of range!"),-1):(r[0]=e.nodes[n].x,r[1]=e.nodes[n].r,r[2]=e.nodes[n].g,r[3]=e.nodes[n].b,r[4]=e.nodes[n].midpoint,r[5]=e.nodes[n].sharpness,1),t.setNodeValue=(n,r)=>{if(n<0||n>=e.nodes.length)return Gs("Index out of range!"),-1;const a=e.nodes[n].x;return e.nodes[n].x=r[0],e.nodes[n].r=r[1],e.nodes[n].g=r[2],e.nodes[n].b=r[3],e.nodes[n].midpoint=r[4],e.nodes[n].sharpness=r[5],a!==r[0]?t.sortAndUpdateRange():t.modified(),1},t.getNumberOfAvailableColors=()=>e.indexedLookup&&t.getSize()?t.getSize():e.tableSize?e.tableSize:16777216,t.getIndexedColor=(n,r)=>{const a=t.getSize();if(a>0&&n>=0){const o=[];t.getNodeValue(n%a,o);for(let s=0;s<3;++s)r[s]=o[s+1];r[3]=1;return}const i=t.getNanColorByReference();r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=1},t.fillFromDataPointer=(n,r)=>{if(!(n<=0||!r)){t.removeAllPoints();for(let a=0;a{const a=[n,r],i=t.getRange();if(i[1]===a[1]&&i[0]===a[0])return;if(a[1]===a[0]){Gs("attempt to set zero width color range");return}const o=(a[1]-a[0])/(i[1]-i[0]),s=a[0]-i[0]*o;for(let l=0;l{const r=t.getRange(),a=[];r[0]n[1]?(t.getColor(n[1],a),t.addRGBPoint(n[1],a[0],a[1],a[2])):(t.getColor(r[1],a),t.addRGBPoint(n[1],a[0],a[1],a[2])),t.sortAndUpdateRange();for(let i=0;i=n[0]&&e.nodes[i].x<=n[1]?e.nodes.splice(i,1):++i;return 1},t.estimateMinNumberOfSamples=(n,r)=>{const a=t.findMinimumXDistance();return Math.ceil((r-n)/a)},t.findMinimumXDistance=()=>{if(e.nodes.length<2)return-1;let n=Number.MAX_VALUE;for(let r=0;r{if(t.getSize()===0){eet("Transfer Function Has No Points!");return}e.indexedLookup?t.mapDataIndexed(n,r,a,i):t.mapData(n,r,a,i)},t.mapData=(n,r,a,i)=>{if(t.getSize()===0){tet("Transfer Function Has No Points!");return}const o=Math.floor(t.getAlpha()*255+.5),s=n.getNumberOfTuples(),l=n.getNumberOfComponents(),u=r.getData(),c=n.getData(),f=[];if(a===v1.RGBA)for(let d=0;d{const r=JSON.stringify(e.colorSpace);n.ColorSpace&&(e.colorSpace=so[n.ColorSpace.toUpperCase()],e.colorSpace===void 0&&(Gs(`ColorSpace ${n.ColorSpace} not supported, using RGB instead`),e.colorSpace=so.RGB));let a=r!==JSON.stringify(e.colorSpace);const i=a||JSON.stringify(e.nanColor);if(n.NanColor)for(e.nanColor=[].concat(n.NanColor);e.nanColor.length<4;)e.nanColor.push(1);a=a||i!==JSON.stringify(e.nanColor);const o=a||JSON.stringify(e.nodes);if(n.RGBPoints){const u=n.RGBPoints.length;e.nodes=[];const c=.5,f=0;for(let d=0;d2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,iet,n),bx.extend(t,e,n),e.table=[],e.nodes=[],e.nanColor=[.5,0,0,1],e.belowRangeColor=[0,0,0,1],e.aboveRangeColor=[1,1,1,1],e.buildTime={},Q.obj(e.buildTime),Q.get(t,e,["buildTime","mappingRange"]),Q.setGet(t,e,["useAboveRangeColor","useBelowRangeColor","colorSpace","discretize","numberOfValues"]),Q.setArray(t,e,["nanColor","belowRangeColor","aboveRangeColor"],4),Q.getArray(t,e,["nanColor","belowRangeColor","aboveRangeColor"]),aet(t,e)}const oet=Q.newInstance(MQ,"vtkColorTransferFunction");var kQ={newInstance:oet,extend:MQ,...TQ};const set={id:"left",class:"result_left1"},uet={__name:"resultLeft",props:{region:"Temperature",count:50,aid:49},setup(t,{expose:e}){const n=t;let r={},a=!1,i,o,s=!1;Ee(()=>[n.region,n.count,n.aid],(p,v)=>{s&&(p[1]!=v[1]&&(console.log("步数改变",p[1],v[1]),r.fcon&&c(n.count)),p[0]!=v[0]&&(console.log("标量改变",p[0],v[0]),r.fcon&&f()))},{deep:!0}),ht(()=>{const p=document.getElementById("left");p.style.position="relative",p.style.width="100%",p.style.height="100%",r.fcon=SQ(),r.renderWindow=$O.newInstance(),r.renderWindow.setContainer(p),r.jgMapper=y_.newInstance(),r.jgActor=Q0.newInstance(),r.jgActor.getProperty().setRepresentation(Ru.SURFACE),r.jgActor.setMapper(r.jgMapper),r.scalarBarActor=CQ.newInstance(),r.scalarBarActor.setGenerateTicks(l(5)),r.scalarBarActor.setDrawAboveRangeSwatch(!0),r.scalarBarActor.setDrawNanAnnotation(!1),r.scalarBarActor.setBoxPosition([1,0]);const v=kQ.newInstance();v.addRGBPoint(0,0,0,1),v.addRGBPoint(1,0,1,.5),v.addRGBPoint(2,0,1,0),v.addRGBPoint(3,1,.5,0),v.addRGBPoint(4,1,0,0),r.jgMapper.setLookupTable(v);const g=r.jgMapper.getLookupTable();r.scalarBarActor.setScalarsToColors(g)});function l(p){return v=>{const g=v.getLastTickBounds(),y=dx().domain([0,1]).range([g[0],g[1]]),b=y.ticks(p).map(w=>y(w));HA({minus:"-"});const _=y.tickFormat(b[0],b[b.length-1],p),x=b.map(_).map(w=>Number(parseFloat(w).toPrecision(12)).toPrecision());v.setTicks(b),v.setTickStrings(x)}}function u(p){const v=r.fcon;v.aid=p,v.initGemetry().then(g=>{console.log(v.polydata),c(n.count)}).catch(g=>{})}function c(p){const v=r.fcon;v.getScalrsByStep(p).then(g=>{console.log(v.scalar),f()}).catch(g=>{console.log(g)})}function f(){console.log("执行了");const p=r.scalarBarActor,v=r.jgMapper,g=r.jgActor,y=r.fcon;console.log(n.region);const m=y.scalar.get(n.region);if(!m||!y.polydata)return;const b=Kn.newInstance({name:n.region,size:y.polydata.getNumberOfPoints()});b.setData(m),y.polydata.getPointData().setScalars(b),v.setInputData(y.polydata),d(m),v.setScalarRange(parseFloat(o.toFixed(3)),parseFloat(i.toFixed(3))),p.setAxisLabel(n.region),v.clearColorArrays(),g.getProperty().setOpacity(n.count),r.renderWindow.getRenderer().addActor(p),r.renderWindow.getRenderer().addActor(g),a||(r.renderWindow.getRenderer().resetCamera(),a=!0),r.renderWindow.resize(),r.renderWindow.getRenderWindow().render(),s=!0}function d(p){o=p[0],i=p[0];for(let v=0;v<=p.length;v++){let g=p[v];o>g&&(o=g),i{r.scalarBarActor.delete(),r.jgMapper.delete(),r.jgActor.delete(),r.renderWindow.delete(),r=null}),e({leftChangAid:(p,v,g)=>{console.log(p,v,g),r.fcon&&(console.log(n),u(p))}}),(p,v)=>(B(),q("div",set))}},cet={id:"right",class:"resultRight"},fet={__name:"resultRight",props:{region:"Temperature",count:50,aid:49},setup(t,{expose:e}){const n=t;let r={},a=!1,i,o,s=!1;Ee(()=>[n.region,n.count,n.aid],(p,v)=>{s&&(p[1]!=v[1]&&(console.log("步数改变",p[1],v[1]),r.fcon&&c(n.count)),p[0]!=v[0]&&(console.log("标量改变",p[0],v[0]),r.fcon&&f()))},{deep:!0}),ht(()=>{const p=document.getElementById("right");p.style.position="relative",p.style.width="100%",p.style.height="100%",r.fcon=SQ(),r.renderWindow=$O.newInstance(),r.renderWindow.setContainer(p),r.jgMapper=y_.newInstance(),r.jgActor=Q0.newInstance(),r.jgActor.getProperty().setRepresentation(Ru.SURFACE),r.jgActor.setMapper(r.jgMapper),r.scalarBarActor=CQ.newInstance(),r.scalarBarActor.setGenerateTicks(l(5)),r.scalarBarActor.setDrawAboveRangeSwatch(!0),r.scalarBarActor.setDrawNanAnnotation(!1),r.scalarBarActor.setBoxPosition([1,0]);const v=kQ.newInstance();v.addRGBPoint(0,0,0,1),v.addRGBPoint(1,0,1,.5),v.addRGBPoint(2,0,1,0),v.addRGBPoint(3,1,.5,0),v.addRGBPoint(4,1,0,0),r.jgMapper.setLookupTable(v);const g=r.jgMapper.getLookupTable();r.scalarBarActor.setScalarsToColors(g)});function l(p){return v=>{const g=v.getLastTickBounds(),y=dx().domain([0,1]).range([g[0],g[1]]),b=y.ticks(p).map(w=>y(w));HA({minus:"-"});const _=y.tickFormat(b[0],b[b.length-1],p),x=b.map(_).map(w=>Number(parseFloat(w).toPrecision(12)).toPrecision());v.setTicks(b),v.setTickStrings(x)}}function u(p){const v=r.fcon;v.aid=p,v.initGemetry().then(g=>{console.log(v.polydata),c(n.count)}).catch(g=>{})}function c(p){const v=r.fcon;v.getScalrsByStep(p).then(g=>{console.log(v.scalar),f()}).catch(g=>{console.log(g)})}function f(){console.log("执行了");const p=r.scalarBarActor,v=r.jgMapper,g=r.jgActor,y=r.fcon;console.log(n.region);const m=y.scalar.get(n.region);if(!m||!y.polydata)return;const b=Kn.newInstance({name:n.region,size:y.polydata.getNumberOfPoints()});b.setData(m),y.polydata.getPointData().setScalars(b),v.setInputData(y.polydata),d(m),v.setScalarRange(parseFloat(o.toFixed(3)),parseFloat(i.toFixed(3))),p.setAxisLabel(n.region),v.clearColorArrays(),g.getProperty().setOpacity(n.count),r.renderWindow.getRenderer().addActor(p),r.renderWindow.getRenderer().addActor(g),a||(r.renderWindow.getRenderer().resetCamera(),a=!0),r.renderWindow.resize(),r.renderWindow.getRenderWindow().render(),s=!0}function d(p){o=p[0],i=p[0];for(let v=0;v<=p.length;v++){let g=p[v];o>g&&(o=g),i{r.scalarBarActor.delete(),r.jgMapper.delete(),r.jgActor.delete(),r.renderWindow.delete(),r=null}),e({rightChangAid:(p,v,g)=>{console.log(p,v,g),r.fcon&&(console.log(n),u(p))}}),(p,v)=>(B(),q("div",cet))}};const VO=Sue({history:Ile(),routes:[{path:"/myHome",component:()=>W$(()=>import("./myHome-8978bf4f.js"),["./myHome-8978bf4f.js","./myHome-eeb55409.css"],import.meta.url)},{path:"/configurator",name:"模型库",component:oHe,beforeEnter:(t,e,n)=>{console.log(t,e),n()}},{path:"/",name:"首页",component:()=>W$(()=>import("./appmian-a4474f32.js"),["./appmian-a4474f32.js","./appmian-51f76ea2.css"],import.meta.url),meta:{keepAlive:!0,title:"首页"}},{path:"/goods",name:"goods",component:{goods:uet}},{path:"/orderinfo",name:"orderinfo",component:{orderinfo:fet}}]});VO.beforeEach((t,e,n)=>{window.document.title=t.name,n()});VO.afterEach((t,e,n)=>{window.scrollTo(0,0)});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Xk=function(t,e){return Xk=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Xk(t,e)};function me(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Xk(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var det=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),het=function(){function t(){this.browser=new det,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),ef=new het;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ef.wxa=!0,ef.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ef.worker=!0:typeof navigator>"u"?(ef.node=!0,ef.svgSupported=!0):vet(navigator.userAgent,ef);function vet(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),i=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),a&&(n.ie=!0,n.version=a[1]),i&&(n.edge=!0,n.version=i[1],n.newEdge=+i[1].split(".")[0]>18),o&&(n.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}const nn=ef;var PO=12,DQ="sans-serif",Yu=PO+"px "+DQ,pet=20,get=100,yet="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function met(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n=0)s=o*n.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",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}function Het(t,e,n){for(var r=n?"invTrans":"trans",a=e[r],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&i&&d===i[f]&&h===i[f+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[r]=n?O4(s,o):O4(o,s))}function zQ(t){return t.nodeName.toUpperCase()==="CANVAS"}var Uet=/([&<>"'])/g,Wet={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ea(t){return t==null?"":(t+"").replace(Uet,function(e,n){return Wet[n]})}var jet=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,AC=[],Ket=nn.browser.firefox&&+nn.browser.version.split(".")[0]<39;function eD(t,e,n,r){return n=n||{},r?$4(t,e,n):Ket&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):$4(t,e,n),n}function $4(t,e,n){if(nn.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(zQ(t)){var i=t.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(Jk(AC,t,r,a)){n.zrX=AC[0],n.zrY=AC[1];return}}n.zrX=n.zrY=0}function jO(t){return t||window.event}function Mi(t,e,n){if(e=jO(e),e.zrX!=null)return e;var r=e.type,a=r&&r.indexOf("touch")>=0;if(a){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&eD(t,o,e,n)}else{eD(t,e,e,n);var i=Yet(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&jet.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Yet(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var a=Math.abs(r!==0?r:n),i=r>0?-1:r<0?1:n>0?-1:1;return 3*a*i}function tD(t,e,n,r){t.addEventListener(e,n,r)}function Xet(t,e,n,r){t.removeEventListener(e,n,r)}var Sl=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function I4(t){return t.which===2||t.which===3}var qet=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var a=e.touches;if(a){for(var i={points:[],touches:[],target:n,event:e},o=0,s=a.length;o1&&r&&r.length>1){var i=B4(r)/B4(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Zet(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function pi(){return[1,0,0,1,0,0]}function am(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Rx(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function _s(t,e,n){var r=e[0]*n[0]+e[2]*n[1],a=e[1]*n[0]+e[3]*n[1],i=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=l,t}function Bo(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function fc(t,e,n){var r=e[0],a=e[2],i=e[4],o=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+o*u,t[1]=-r*u+o*c,t[2]=a*c+s*u,t[3]=-a*u+c*s,t[4]=c*i+u*l,t[5]=c*l-u*i,t}function Lx(t,e,n){var r=n[0],a=n[1];return t[0]=e[0]*r,t[1]=e[1]*a,t[2]=e[2]*r,t[3]=e[3]*a,t[4]=e[4]*r,t[5]=e[5]*a,t}function bd(t,e){var n=e[0],r=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=n*o-i*r;return l?(l=1/l,t[0]=o*l,t[1]=-i*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-o*a)*l,t[5]=(i*a-n*s)*l,t):null}function GQ(t){var e=pi();return Rx(e,t),e}const Qet=Object.freeze(Object.defineProperty({__proto__:null,clone:GQ,copy:Rx,create:pi,identity:am,invert:bd,mul:_s,rotate:fc,scale:Lx,translate:Bo},Symbol.toStringTag,{value:"Module"}));var Jet=function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,a){e.x=n.x+r.x*a,e.y=n.y+r.y*a},t.lerp=function(e,n,r,a){var i=1-a;e.x=i*n.x+a*r.x,e.y=i*n.y+a*r.y},t}();const Bt=Jet;var g1=Math.min,y1=Math.max,Mc=new Bt,kc=new Bt,Dc=new Bt,Rc=new Bt,Ip=new Bt,Bp=new Bt,ett=function(){function t(e,n,r,a){r<0&&(e=e+r,r=-r),a<0&&(n=n+a,a=-a),this.x=e,this.y=n,this.width=r,this.height=a}return t.prototype.union=function(e){var n=g1(e.x,this.x),r=g1(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=y1(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=y1(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,a=e.height/n.height,i=pi();return Bo(i,i,[-n.x,-n.y]),Lx(i,i,[r,a]),Bo(i,i,[e.x,e.y]),i},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,a=r.x,i=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,d=!(ip&&(p=b,vp&&(p=_,y=r.x&&e<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var a=r[0],i=r[3],o=r[4],s=r[5];e.x=n.x*a+o,e.y=n.y*i+s,e.width=n.width*a,e.height=n.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Mc.x=Dc.x=n.x,Mc.y=Rc.y=n.y,kc.x=Rc.x=n.x+n.width,kc.y=Dc.y=n.y+n.height,Mc.transform(r),Rc.transform(r),kc.transform(r),Dc.transform(r),e.x=g1(Mc.x,kc.x,Dc.x,Rc.x),e.y=g1(Mc.y,kc.y,Dc.y,Rc.y);var l=y1(Mc.x,kc.x,Dc.x,Rc.x),u=y1(Mc.y,kc.y,Dc.y,Rc.y);e.width=l-e.x,e.height=u-e.y},t}();const Ft=ett;var HQ="silent";function ttt(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:ntt}}function ntt(){Sl(this.event)}var rtt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Qi),Vp=function(){function t(e,n){this.x=e,this.y=n}return t}(),att=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],NC=new Ft(0,0,0,0),UQ=function(t){me(e,t);function e(n,r,a,i,o){var s=t.call(this)||this;return s._hovered=new Vp(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new rtt,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Vet(s),s}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(W(att,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,a=n.zrY,i=WQ(this,r,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Vp(r,a):this.findHover(r,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},e.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},e.prototype.resize=function(){this._hovered=new Vp(0,0)},e.prototype.dispatch=function(n,r){var a=this[n];a&&a.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,a){n=n||{};var i=n.target;if(!(i&&i.silent)){for(var o="on"+r,s=ttt(r,n,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(r,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(n,r,a){var i=this.storage.getDisplayList(),o=new Vp(n,r);if(V4(i,o,n,r,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ft(n-u,r-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(NC.copy(d.getBoundingRect()),d.transform&&NC.applyTransform(d.transform),NC.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,v=Math.PI*2,g=0;g4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function itt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,a=void 0,i=!1;r;){if(r.ignoreClip&&(i=!0),!i){var o=r.getClipPath();if(o&&!o.contain(e,n))return!1;r.silent&&(a=!0)}var s=r.__hostTarget;r=s||r.parent}return a?HQ:!0}return!1}function V4(t,e,n,r,a){for(var i=t.length-1;i>=0;i--){var o=t[i],s=void 0;if(o!==a&&!o.ignore&&(s=itt(o,n,r))&&(!e.topTarget&&(e.topTarget=o),s!==HQ)){e.target=o;break}}}function WQ(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}const ott=UQ;var jQ=32,Pp=7;function stt(t){for(var e=0;t>=jQ;)e|=t&1,t>>=1;return t+e}function P4(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;a=0;)a++;return a-e}function ltt(t,e,n){for(n--;e>>1,a(i,t[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=i}}function $C(t,e,n,r,a,i){var o=0,s=0,l=1;if(i(t,e[n+a])>0){for(s=r-a;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o>>1);i(t,e[n+c])>0?o=c+1:l=c}return l}function IC(t,e,n,r,a,i){var o=0,s=0,l=1;if(i(t,e[n+a])<0){for(s=a+1;ls&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o>>1);i(t,e[n+c])<0?l=c:o=c+1}return l}function utt(t,e){var n=Pp,r,a,i=0;t.length;var o=[];r=[],a=[];function s(h,p){r[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]=Pp||C>=Pp);if(T)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),p===1){for(y=0;y=0;y--)t[w+y]=t[x+y];t[_]=o[b];return}for(var C=n;;){var T=0,k=0,E=!1;do if(e(o[b],t[m])<0){if(t[_--]=t[m--],T++,k=0,--p===0){E=!0;break}}else if(t[_--]=o[b--],k++,T=0,--g===1){E=!0;break}while((T|k)=0;y--)t[w+y]=t[x+y];if(p===0){E=!0;break}}if(t[_--]=o[b--],--g===1){E=!0;break}if(k=g-$C(t[m],o,0,g,g-1,e),k!==0){for(_-=k,b-=k,g-=k,w=_+1,x=b+1,y=0;y=Pp||k>=Pp);if(E)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),g===1){for(_-=p,m-=p,w=_+1,x=m+1,y=p-1;y>=0;y--)t[w+y]=t[x+y];t[_]=o[b]}else{if(g===0)throw new Error;for(x=_-(g-1),y=0;ys&&(l=s),F4(t,n,n+l,n+i,e),i=l}o.pushRun(n,i),o.mergeRuns(),a-=i,n+=i}while(a!==0);o.forceMergeRuns()}}var si=1,bg=2,vh=4,z4=!1;function BC(){z4||(z4=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function G4(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ctt=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=G4}return t.prototype.traverse=function(e,n){for(var r=0;r0&&(c.__clipPaths=[]),isNaN(c.z)&&(BC(),c.z=0),isNaN(c.z2)&&(BC(),c.z2=0),isNaN(c.zlevel)&&(BC(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,n,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n=0&&this._roots.splice(a,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const ftt=ctt;var KQ;KQ=nn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const nD=KQ;var sS={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-sS.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?sS.bounceIn(t*2)*.5:sS.bounceOut(t*2-1)*.5+.5}};const YQ=sS;var m1=Math.pow,Au=Math.sqrt,w_=1e-8,XQ=1e-4,H4=Au(3),b1=1/3,us=cc(),Ai=cc(),Xh=cc();function bu(t){return t>-w_&&tw_||t<-w_}function xr(t,e,n,r,a){var i=1-a;return i*i*(i*t+3*a*e)+a*a*(a*r+3*i*n)}function U4(t,e,n,r,a){var i=1-a;return 3*(((e-t)*i+2*(n-e)*a)*i+(r-n)*a*a)}function x_(t,e,n,r,a,i){var o=r+3*(e-n)-t,s=3*(n-e*2+t),l=3*(e-t),u=t-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(bu(c)&&bu(f))if(bu(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var v=f*f-4*c*d;if(bu(v)){var g=f/c,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(v>0){var m=Au(v),b=c*s+1.5*o*(-f+m),_=c*s+1.5*o*(-f-m);b<0?b=-m1(-b,b1):b=m1(b,b1),_<0?_=-m1(-_,b1):_=m1(_,b1);var p=(-s-(b+_))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var x=(2*c*s-3*o*f)/(2*Au(c*c*c)),w=Math.acos(x)/3,C=Au(c),T=Math.cos(w),p=(-s-2*C*T)/(3*o),y=(-s+C*(T+H4*Math.sin(w)))/(3*o),k=(-s+C*(T-H4*Math.sin(w)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),k>=0&&k<=1&&(i[h++]=k)}}return h}function ZQ(t,e,n,r,a){var i=6*n-12*e+6*t,o=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(bu(o)){if(qQ(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(bu(c))a[0]=-i/(2*o);else if(c>0){var f=Au(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function Xu(t,e,n,r,a,i){var o=(e-t)*a+t,s=(n-e)*a+e,l=(r-n)*a+n,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=t,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=r}function QQ(t,e,n,r,a,i,o,s,l,u,c){var f,d=.005,h=1/0,p,v,g,y;us[0]=l,us[1]=u;for(var m=0;m<1;m+=.05)Ai[0]=xr(t,n,a,o,m),Ai[1]=xr(e,r,i,s,m),g=Lu(us,Ai),g=0&&g=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(bu(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Au(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function JQ(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function ny(t,e,n,r,a){var i=(e-t)*r+t,o=(n-e)*r+e,s=(o-i)*r+i;a[0]=t,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=n}function eJ(t,e,n,r,a,i,o,s,l){var u,c=.005,f=1/0;us[0]=o,us[1]=s;for(var d=0;d<1;d+=.05){Ai[0]=$r(t,n,a,d),Ai[1]=$r(e,r,i,d);var h=Lu(us,Ai);h=0&&h=1?1:x_(0,r,i,1,l,s)&&xr(0,a,o,1,s[0])}}}var gtt=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Zn,this.ondestroy=e.ondestroy||Zn,this.onrestart=e.onrestart||Zn,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,a=e-this._startTime-this._pausedTime,i=a/r;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%r;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=vt(e)?e:YQ[e]||KO(e)},t}();const ytt=gtt;var tJ=function(){function t(e){this.value=e}return t}(),mtt=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new tJ(e);return this.insertEntry(n),n},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),btt=function(){function t(e){this._list=new mtt,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,a=this._map,i=null;if(a[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new tJ(n),s.key=e,r.insertEntry(s),a[e]=s}return i},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const im=btt;var W4={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 Lo(t){return t=Math.round(t),t<0?0:t>255?255:t}function Stt(t){return t=Math.round(t),t<0?0:t>360?360:t}function ry(t){return t<0?0:t>1?1:t}function VC(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Lo(parseFloat(e)/100*255):Lo(parseInt(e,10))}function Gf(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ry(parseFloat(e)/100):ry(parseFloat(e))}function PC(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function Su(t,e,n){return t+(e-t)*n}function Ci(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t}function aD(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var nJ=new im(20),S1=null;function Pd(t,e){S1&&aD(S1,e),S1=nJ.put(t,S1||e.slice())}function Ra(t,e){if(t){e=e||[];var n=nJ.get(t);if(n)return aD(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in W4)return aD(e,W4[r]),Pd(t,e),e;var a=r.length;if(r.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(r.slice(1,4),16);if(!(i>=0&&i<=4095)){Ci(e,0,0,0,1);return}return Ci(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(r.slice(4),16)/15:1),Pd(t,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Ci(e,0,0,0,1);return}return Ci(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Pd(t,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===a){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Ci(e,+u[0],+u[1],+u[2],1):Ci(e,0,0,0,1);c=Gf(u.pop());case"rgb":if(u.length>=3)return Ci(e,VC(u[0]),VC(u[1]),VC(u[2]),u.length===3?c:Gf(u[3])),Pd(t,e),e;Ci(e,0,0,0,1);return;case"hsla":if(u.length!==4){Ci(e,0,0,0,1);return}return u[3]=Gf(u[3]),iD(u,e),Pd(t,e),e;case"hsl":if(u.length!==3){Ci(e,0,0,0,1);return}return iD(u,e),Pd(t,e),e;default:return}}Ci(e,0,0,0,1)}}function iD(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Gf(t[1]),a=Gf(t[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Ci(e,Lo(PC(o,i,n+1/3)*255),Lo(PC(o,i,n)*255),Lo(PC(o,i,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function _tt(t){if(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,a=Math.min(e,n,r),i=Math.max(e,n,r),o=i-a,s=(i+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+a):u=o/(2-i-a);var c=((i-e)/6+o/2)/o,f=((i-n)/6+o/2)/o,d=((i-r)/6+o/2)/o;e===i?l=d-f:n===i?l=1/3+c-d:r===i&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function C_(t,e){var n=Ra(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Ao(n,n.length===4?"rgba":"rgb")}}function wtt(t){var e=Ra(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Zg(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){n=n||[];var r=t*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=e[a],s=e[i],l=r-a;return n[0]=Lo(Su(o[0],s[0],l)),n[1]=Lo(Su(o[1],s[1],l)),n[2]=Lo(Su(o[2],s[2],l)),n[3]=ry(Su(o[3],s[3],l)),n}}var xtt=Zg;function YO(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r=t*(e.length-1),a=Math.floor(r),i=Math.ceil(r),o=Ra(e[a]),s=Ra(e[i]),l=r-a,u=Ao([Lo(Su(o[0],s[0],l)),Lo(Su(o[1],s[1],l)),Lo(Su(o[2],s[2],l)),ry(Su(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}var Ctt=YO;function qh(t,e,n,r){var a=Ra(t);if(t)return a=_tt(a),e!=null&&(a[0]=Stt(e)),n!=null&&(a[1]=Gf(n)),r!=null&&(a[2]=Gf(r)),Ao(iD(a),"rgba")}function ay(t,e){var n=Ra(t);if(n&&e!=null)return n[3]=ry(e),Ao(n,"rgba")}function Ao(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function iy(t,e){var n=Ra(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Ttt(){return Ao([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const Ett=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Zg,fastMapToColor:xtt,lerp:YO,lift:C_,lum:iy,mapToColor:Ctt,modifyAlpha:ay,modifyHSL:qh,parse:Ra,random:Ttt,stringify:Ao,toHex:wtt},Symbol.toStringTag,{value:"Module"}));var T_=Math.round;function oy(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var n=Ra(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}return{color:t,opacity:e??1}}var j4=1e-4;function _u(t){return t-j4}function _1(t){return T_(t*1e3)/1e3}function oD(t){return T_(t*1e4)/1e4}function Mtt(t){return"matrix("+_1(t[0])+","+_1(t[1])+","+_1(t[2])+","+_1(t[3])+","+oD(t[4])+","+oD(t[5])+")"}var ktt={left:"start",right:"end",center:"middle",middle:"middle"};function Dtt(t,e,n){return n==="top"?t+=e/2:n==="bottom"&&(t-=e/2),t}function Rtt(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function Ltt(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function rJ(t){return t&&!!t.image}function Att(t){return t&&!!t.svgElement}function XO(t){return rJ(t)||Att(t)}function aJ(t){return t.type==="linear"}function iJ(t){return t.type==="radial"}function oJ(t){return t&&(t.type==="linear"||t.type==="radial")}function Ax(t){return"url(#"+t+")"}function sJ(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function lJ(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*Yg,a=Vt(t.scaleX,1),i=Vt(t.scaleY,1),o=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(a!==1||i!==1)&&l.push("scale("+a+","+i+")"),(o||s)&&l.push("skew("+T_(o*Yg)+"deg, "+T_(s*Yg)+"deg)"),l.join(" ")}var Ott=function(){return nn.hasGlobalWindow&&vt(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}}(),sD=Array.prototype.slice;function qs(t,e,n){return(e-t)*n+t}function FC(t,e,n,r){for(var a=e.length,i=0;ir?e:t,i=Math.min(n,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;so;if(s)r.length=o;else for(var l=i;l=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=Y4,l=n;if(Zr(n)){var u=Btt(n);s=u,(u===1&&!rn(n[0])||u===2&&!rn(n[0][0]))&&(o=!0)}else if(rn(n)&&!Lv(n))s=x1;else if(nt(n))if(!isNaN(+n))s=x1;else{var c=Ra(n);c&&(l=c,s=Sg)}else if(nm(n)){var f=Oe({},l);f.colorStops=Be(n.colorStops,function(h){return{offset:h.offset,color:Ra(h.color)}}),aJ(n)?s=lD:iJ(n)&&(s=uD),l=f}i===0?this.valType=s:(s!==this.valType||s===Y4)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=vt(r)?r:YQ[r]||KO(r)),a.push(d),d},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(v,g){return v.time-g.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=C1(a),u=X4(a),c=0;c=0&&!(o[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;cn);c++);c=d(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=n;var g=p.percent-h.percent,y=g===0?1:d((n-h.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=r?this._additiveValue:u?Fp:e[l];if((C1(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:p.rawValue;else if(C1(i))i===uS?FC(m,h[a],p[a],y):Ntt(m,h[a],p[a],y);else if(X4(i)){var b=h[a],_=p[a],x=i===lD;e[l]={type:x?"linear":"radial",x:qs(b.x,_.x,y),y:qs(b.y,_.y,y),colorStops:Be(b.colorStops,function(C,T){var k=_.colorStops[T];return{offset:qs(C.offset,k.offset,y),color:lS(FC([],C.color,k.color,y))}}),global:_.global},x?(e[l].x2=qs(b.x2,_.x2,y),e[l].y2=qs(b.y2,_.y2,y)):e[l].r=qs(b.r,_.r,y)}else if(u)FC(m,h[a],p[a],y),r||(e[l]=lS(m));else{var w=qs(h[a],p[a],y);r?this._additiveValue=w:e[l]=w}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,a=this._additiveValue;n===x1?e[r]=e[r]+a:n===Sg?(Ra(e[r],Fp),w1(Fp,Fp,a,1),e[r]=lS(Fp)):n===uS?w1(e[r],e[r],a,1):n===uJ&&K4(e[r],e[r],a,1)},t}(),Ptt=function(){function t(e,n,r,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&a){Ex("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,Yt(n),r)},t.prototype.whenWithKeys=function(e,n,r,a){for(var i=this._tracks,o=0;o0&&l.addKeyframe(0,Qg(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Qg(n[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,i=0;i1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();const qO=Ptt;function Mh(){return new Date().getTime()}var Ftt=function(t){me(e,t);function e(n){var r=t.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return e.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.prototype.removeClip=function(n){if(n.animation){var r=n.prev,a=n.next;r?r.next=a:this._head=a,a?a.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=Mh()-this._pausedTime,a=r-this._time,i=this._head;i;){var o=i.next,s=i.step(r,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=r,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(nD(r),!n._paused&&n.update())}nD(r)},e.prototype.start=function(){this._running||(this._time=Mh(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Mh(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Mh()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var a=new qO(n,r.loop);return this.addAnimator(a),a},e}(Qi);const ztt=Ftt;var Gtt=300,zC=nn.domSupported,GC=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=Be(t,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:r}}(),q4={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Z4=!1;function cD(t){var e=t.pointerType;return e==="pen"||e==="touch"}function Htt(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function HC(t){t&&(t.zrByTouch=!0)}function Utt(t,e){return Mi(t.dom,new Wtt(t,e),!0)}function cJ(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var Wtt=function(){function t(e,n){this.stopPropagation=Zn,this.stopImmediatePropagation=Zn,this.preventDefault=Zn,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),fo={mousedown:function(t){t=Mi(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Mi(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Mi(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Mi(this.dom,t);var e=t.toElement||t.relatedTarget;cJ(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Z4=!0,t=Mi(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Z4||(t=Mi(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Mi(this.dom,t),HC(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),fo.mousemove.call(this,t),fo.mousedown.call(this,t)},touchmove:function(t){t=Mi(this.dom,t),HC(t),this.handler.processGesture(t,"change"),fo.mousemove.call(this,t)},touchend:function(t){t=Mi(this.dom,t),HC(t),this.handler.processGesture(t,"end"),fo.mouseup.call(this,t),+new Date-+this.__lastTouchMomenteF||t<-eF}var Ac=[],Fd=[],WC=pi(),jC=Math.abs,Ztt=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Lc(this.rotation)||Lc(this.x)||Lc(this.y)||Lc(this.scaleX-1)||Lc(this.scaleY-1)||Lc(this.skewX)||Lc(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(J4(r),this.invTransform=null);return}r=r||pi(),n?this.getLocalTransform(r):J4(r),e&&(n?_s(r,e,r):Rx(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Ac);var r=Ac[0]<0?-1:1,a=Ac[1]<0?-1:1,i=((Ac[0]-r)*n+r)/Ac[0]||0,o=((Ac[1]-a)*n+a)/Ac[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||pi(),bd(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),i=Math.PI/2+a-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(i),n=Math.sqrt(n),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(_s(Fd,e.invTransform,n),n=Fd);var r=this.originX,a=this.originY;(r||a)&&(WC[4]=r,WC[5]=a,_s(Fd,n,WC),Fd[4]-=r,Fd[5]-=a,n=Fd),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],a=this.invTransform;return a&&Vr(r,r,a),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],a=this.transform;return a&&Vr(r,r,a),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&jC(e[0]-1)>1e-10&&jC(e[3]-1)>1e-10?Math.sqrt(jC(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){dJ(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,a=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(r||a||s||l){var p=r+s,v=a+l;n[4]=-p*i-d*v*o,n[5]=-v*o-h*p*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=h*i,n[2]=d*o,u&&fc(n,n,u),n[4]+=r+c,n[5]+=a+f,n},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),Ds=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function dJ(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function M_(t,e,n){var r=e.position||"inside",a=e.distance!=null?e.distance:5,i=n.height,o=n.width,s=i/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=Vo(r[0],n.width),u+=Vo(r[1],n.height),c=null,f=null;else switch(r){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}var KC="__zr_normal__",YC=Ds.concat(["ignore"]),Qtt=qi(Ds,function(t,e){return t[e]=!0,t},{ignore:!1}),zd={},Jtt=new Ft(0,0,0,0),ZO=function(){function t(e){this.id=GO(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){this.textConfig||(this.textConfig={});var r=this.textConfig,a=r.local,i=n.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(n),r.position!=null){var c=Jtt;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(zd,r,c):M_(zd,r,c),i.x=zd.x,i.y=zd.y,o=zd.align,s=zd.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Vo(f[0],c.width),h=Vo(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var p=r.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var v=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,b=void 0;v&&this.canBeInsideText()?(y=r.insideFill,m=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),b=!0)):(y=r.outsideFill,m=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),b=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=b,g.align=o,g.verticalAlign=s,n.setDefaultTextStyle(g)),n.__dirty|=si,l&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?vD:hD},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Ra(n);r||(r=[255,255,255,1]);for(var a=r[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*a+(i?0:255)*(1-a);return r[3]=1,Ao(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},Oe(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(mt(e))for(var r=e,a=Yt(r),i=0;i0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(KC,!1,e)},t.prototype.useState=function(e,n,r,a){var i=e===KC,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(zt(s,e)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){Ex("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(e,n,r,c),d&&d.useState(e,n,r,c),i?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~si),u}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var a=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l0,p);var v=this._textContent,g=this._textGuide;v&&v.useStates(e,n,d),g&&g.useStates(e,n,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~si)}},t.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var a=this.currentStates.slice(),i=zt(a,e),o=zt(a,n)>=0;i>=0?o?a.splice(i,1):a[i]=n:r&&!o&&a.push(n),this.useStates(a)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,a=0;a=0&&i.splice(o,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,a=r.length,i=[],o=0;o0&&n.during&&i[0].during(function(p,v){n.during(v)});for(var d=0;d0||a.force&&!o.length){var T=void 0,k=void 0,E=void 0;if(s){k={},d&&(T={});for(var _=0;_=0&&(a.splice(i,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var a=zt(this._children,n);return a>=0&&this.replaceAt(r,a),this},e.prototype.replaceAt=function(n,r){var a=this._children,i=a[r];if(n&&n!==this&&n.parent!==this&&n!==i){a[r]=n,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(n)}return this},e.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},e.prototype.remove=function(n){var r=this.__zr,a=this._children,i=zt(a,n);return i<0?this:(a.splice(i,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,a=0;a0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},t.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this.handler.off(e,n)},t.prototype.trigger=function(e,n){this.handler.trigger(e,n)},t.prototype.clear=function(){for(var e=this.storage.getRoots(),n=0;n0){if(t<=a)return o;if(t>=i)return s}else{if(t>=a)return o;if(t<=i)return s}else{if(t===a)return o;if(t===i)return s}return(t-a)/l*u+o}function Je(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return nt(t)?dnt(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Yn(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),yJ),t=(+t).toFixed(e),n?t:+t}function fi(t){return t.sort(function(e,n){return e-n}),t}function To(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n}return mJ(t)}function mJ(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,a=n>0?n:e.length,i=e.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-r)}function QO(t,e){var n=Math.log,r=Math.LN10,a=Math.floor(n(t[1]-t[0])/r),i=Math.round(n(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function hnt(t,e,n){if(!t[e])return 0;var r=bJ(t,n);return r[e]||0}function bJ(t,e){var n=qi(t,function(h,p){return h+(isNaN(p)?0:p)},0);if(n===0)return[];for(var r=Math.pow(10,e),a=Be(t,function(h){return(isNaN(h)?0:h)/n*r*100}),i=r*100,o=Be(a,function(h){return Math.floor(h)}),s=qi(o,function(h,p){return h+p},0),l=Be(a,function(h,p){return h-o[p]});su&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Be(o,function(h){return h/r})}function vnt(t,e){var n=Math.max(To(t),To(e)),r=t+e;return n>yJ?r:Yn(r,n)}var gD=9007199254740991;function JO(t){var e=Math.PI*2;return(t%e+e)%e}function sy(t){return t>-rF&&t=10&&e++,e}function eN(t,e){var n=Nx(t),r=Math.pow(10,n),a=t/r,i;return e?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,t=i*r,n>=-20?+t.toFixed(n<0?-n:0):t}function dS(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),a=+t[r-1],i=n-r;return i?a+i*(t[r]-a):a}function yD(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,n=1,r=0;r=0||i&&zt(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var Pnt=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Fnt=id(Pnt),znt=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return Fnt(this,e,n)},t}(),bD=new im(50);function Gnt(t){if(typeof t=="string"){var e=bD.get(t);return e&&e.image}else return t}function iN(t,e,n,r,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var i=bD.get(t),o={hostEl:n,cb:r,cbPayload:a};return i?(e=i.image,!Ix(e)&&i.pending.push(o)):(e=Io.loadImage(t,sF,sF),e.__zrImageSrc=t,bD.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function sF(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=o;l++)s-=o;var u=vi(n,e);return u>s&&(n="",u=0),s=t-u,a.ellipsis=n,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=t,a}function OJ(t,e){var n=e.containerWidth,r=e.font,a=e.contentWidth;if(!n)return"";var i=vi(t,r);if(i<=n)return t;for(var o=0;;o++){if(i<=a||o>=e.maxIterations){t+=e.ellipsis;break}var s=o===0?Hnt(t,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(t.length*a/i):0;t=t.substr(0,s),i=vi(t,r)}return t===""&&(t=e.placeholder),t}function Hnt(t,e,n,r){for(var a=0,i=0,o=t.length;ih&&u){var p=Math.floor(h/s);f=f.slice(0,p)}if(t&&i&&c!=null)for(var v=AJ(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;gs&&QC(n,t.substring(s,u),e,o),QC(n,l[2],e,o,l[1]),s=ZC.lastIndex}sa){x>0?(m.tokens=m.tokens.slice(0,x),g(m,_,b),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var D=C.width,R=D==null||D==="auto";if(typeof D=="string"&&D.charAt(D.length-1)==="%")w.percentWidth=D,c.push(w),w.contentWidth=vi(w.text,E);else{if(R){var A=C.backgroundColor,V=A&&A.image;V&&(V=Gnt(V),Ix(V)&&(w.width=Math.max(w.width,V.width*M/V.height)))}var P=p&&r!=null?r-_:null;P!=null&&P0&&p+r.accumWidth>r.width&&(c=e.split(` `),u=!0),r.accumWidth=p}else{var v=NJ(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=e.split(` `);for(var g=0;g=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Xnt=qi(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function qnt(t){return Ynt(t)?!!Xnt[t]:!0}function NJ(t,e,n,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;fn:a+c+h>n){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=h)):p?(i.push(l),o.push(u),l=d,u=h):(i.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var SD="__zr_style_"+Math.round(Math.random()*10),Hf={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Bx={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Hf[SD]=!0;var uF=["z","z2","invisible"],Znt=["invisible"],Qnt=function(t){me(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=Yt(n),a=0;a1e-4){s[0]=t-n,s[1]=e-r,l[0]=t+n,l[1]=e+r;return}if(T1[0]=nT(a)*n+t,T1[1]=tT(a)*r+e,E1[0]=nT(i)*n+t,E1[1]=tT(i)*r+e,u(s,T1,E1),c(l,T1,E1),a=a%Nc,a<0&&(a=a+Nc),i=i%Nc,i<0&&(i=i+Nc),a>i&&!o?i+=Nc:aa&&(M1[0]=nT(h)*n+t,M1[1]=tT(h)*r+e,u(s,M1,s),c(l,M1,l))}var En={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$c=[],Ic=[],Yo=[],Ul=[],Xo=[],qo=[],rT=Math.min,aT=Math.max,Bc=Math.cos,Vc=Math.sin,Hs=Math.abs,_D=Math.PI,au=_D*2,iT=typeof Float32Array<"u",zp=[];function oT(t){var e=Math.round(t/_D*1e8)/1e8;return e%2*_D}function $J(t,e){var n=oT(t[0]);n<0&&(n+=au);var r=n-t[0],a=t[1];a+=r,!e&&a-n>=au?a=n+au:e&&n-a>=au?a=n-au:!e&&n>a?a=n+(au-oT(n-a)):e&&n0&&(this._ux=Hs(r/E_/e)||0,this._uy=Hs(r/E_/n)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,n){return this._drawPendingPt(),this.addData(En.M,e,n),this._ctx&&this._ctx.moveTo(e,n),this._x0=e,this._y0=n,this._xi=e,this._yi=n,this},t.prototype.lineTo=function(e,n){var r=Hs(e-this._xi),a=Hs(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(En.L,e,n),this._ctx&&i&&this._ctx.lineTo(e,n),i)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var o=r*r+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,n,r,a,i,o){return this._drawPendingPt(),this.addData(En.C,e,n,r,a,i,o),this._ctx&&this._ctx.bezierCurveTo(e,n,r,a,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,n,r,a){return this._drawPendingPt(),this.addData(En.Q,e,n,r,a),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,a),this._xi=r,this._yi=a,this},t.prototype.arc=function(e,n,r,a,i,o){this._drawPendingPt(),zp[0]=a,zp[1]=i,$J(zp,o),a=zp[0],i=zp[1];var s=i-a;return this.addData(En.A,e,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,n,r,a,i,o),this._xi=Bc(i)*r+e,this._yi=Vc(i)*r+n,this},t.prototype.arcTo=function(e,n,r,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,a,i),this},t.prototype.rect=function(e,n,r,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,a),this.addData(En.R,e,n,r,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(En.Z);var e=this._ctx,n=this._x0,r=this._y0;return e&&e.closePath(),this._xi=n,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var n=e.length;!(this.data&&this.data.length===n)&&iT&&(this.data=new Float32Array(n));for(var r=0;rc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],n=0;n11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Yo[0]=Yo[1]=Xo[0]=Xo[1]=Number.MAX_VALUE,Ul[0]=Ul[1]=qo[0]=qo[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,a=0,i=0,o;for(o=0;or||Hs(b)>a||d===n-1)&&(v=Math.sqrt(m*m+b*b),i=g,o=y);break}case En.C:{var _=e[d++],x=e[d++],g=e[d++],y=e[d++],w=e[d++],C=e[d++];v=dtt(i,o,_,x,g,y,w,C,10),i=w,o=C;break}case En.Q:{var _=e[d++],x=e[d++],g=e[d++],y=e[d++];v=vtt(i,o,_,x,g,y,10),i=g,o=y;break}case En.A:var T=e[d++],k=e[d++],E=e[d++],M=e[d++],D=e[d++],R=e[d++],A=R+D;d+=1,e[d++],p&&(s=Bc(D)*E+T,l=Vc(D)*M+k),v=aT(E,M)*rT(au,Math.abs(R)),i=Bc(A)*E+T,o=Vc(A)*M+k;break;case En.R:{s=i=e[d++],l=o=e[d++];var V=e[d++],P=e[d++];v=V*2+P*2;break}case En.Z:{var m=s-i,b=l-o;v=Math.sqrt(m*m+b*b),i=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,n){var r=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,h=n<1,p,v,g=0,y=0,m,b=0,_,x;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,v=this._pathLen,m=n*v,!m)))e:for(var w=0;w0&&(e.lineTo(_,x),b=0),C){case En.M:s=u=r[w++],l=c=r[w++],e.moveTo(u,c);break;case En.L:{f=r[w++],d=r[w++];var k=Hs(f-u),E=Hs(d-c);if(k>a||E>i){if(h){var M=p[y++];if(g+M>m){var D=(m-g)/M;e.lineTo(u*(1-D)+f*D,c*(1-D)+d*D);break e}g+=M}e.lineTo(f,d),u=f,c=d,b=0}else{var R=k*k+E*E;R>b&&(_=f,x=d,b=R)}break}case En.C:{var A=r[w++],V=r[w++],P=r[w++],N=r[w++],I=r[w++],L=r[w++];if(h){var M=p[y++];if(g+M>m){var D=(m-g)/M;Xu(u,A,P,I,D,$c),Xu(c,V,N,L,D,Ic),e.bezierCurveTo($c[1],Ic[1],$c[2],Ic[2],$c[3],Ic[3]);break e}g+=M}e.bezierCurveTo(A,V,P,N,I,L),u=I,c=L;break}case En.Q:{var A=r[w++],V=r[w++],P=r[w++],N=r[w++];if(h){var M=p[y++];if(g+M>m){var D=(m-g)/M;ny(u,A,P,D,$c),ny(c,V,N,D,Ic),e.quadraticCurveTo($c[1],Ic[1],$c[2],Ic[2]);break e}g+=M}e.quadraticCurveTo(A,V,P,N),u=P,c=N;break}case En.A:var $=r[w++],U=r[w++],j=r[w++],Y=r[w++],oe=r[w++],te=r[w++],re=r[w++],ne=!r[w++],J=j>Y?j:Y,he=Hs(j-Y)>.001,ue=oe+te,X=!1;if(h){var M=p[y++];g+M>m&&(ue=oe+te*(m-g)/M,X=!0),g+=M}if(he&&e.ellipse?e.ellipse($,U,j,Y,re,oe,ue,ne):e.arc($,U,J,oe,ue,ne),X)break e;T&&(s=Bc(oe)*j+$,l=Vc(oe)*Y+U),u=Bc(ue)*j+$,c=Vc(ue)*Y+U;break;case En.R:s=u=r[w],l=c=r[w+1],f=r[w++],d=r[w++];var K=r[w++],ee=r[w++];if(h){var M=p[y++];if(g+M>m){var se=m-g;e.moveTo(f,d),e.lineTo(f+rT(se,K),d),se-=K,se>0&&e.lineTo(f+K,d+rT(se,ee)),se-=ee,se>0&&e.lineTo(f+aT(K-se,0),d+ee),se-=K,se>0&&e.lineTo(f,d+aT(ee-se,0));break e}g+=M}e.rect(f,d,K,ee);break;case En.Z:if(h){var M=p[y++];if(g+M>m){var D=(m-g)/M;e.lineTo(u*(1-D)+s*D,c*(1-D)+l*D);break e}g+=M}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=En,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const Ls=rrt;function uu(t,e,n,r,a,i,o){if(a===0)return!1;var s=a,l=0,u=t;if(o>e+s&&o>r+s||ot+s&&i>n+s||ie+f&&c>r+f&&c>i+f&&c>s+f||ct+f&&u>n+f&&u>a+f&&u>o+f||ue+u&&l>r+u&&l>i+u||lt+u&&s>n+u&&s>a+u||sn||c+ua&&(a+=Gp);var d=Math.atan2(l,s);return d<0&&(d+=Gp),d>=r&&d<=a||d+Gp>=r&&d+Gp<=a}function Zs(t,e,n,r,a,i){if(i>e&&i>r||ia?s:0}var Wl=Ls.CMD,Pc=Math.PI*2,ort=1e-4;function srt(t,e){return Math.abs(t-e)e&&u>r&&u>i&&u>s||u1&&lrt(),h=xr(e,r,i,s,Ri[0]),d>1&&(p=xr(e,r,i,s,Ri[1]))),d===2?ge&&s>r&&s>i||s=0&&u<=1){for(var c=0,f=$r(e,r,i,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);xa[0]=-l,xa[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=Pc-1e-4){r=0,a=Pc;var c=i?1:-1;return o>=xa[0]+t&&o<=xa[1]+t?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=Pc,a+=Pc);for(var d=0,h=0;h<2;h++){var p=xa[h];if(p+t>o){var v=Math.atan2(s,p),c=i?1:-1;v<0&&(v=Pc+v),(v>=r&&v<=a||v+Pc>=r&&v+Pc<=a)&&(v>Math.PI/2&&v1&&(n||(s+=Zs(l,u,c,f,r,a))),g&&(l=i[p],u=i[p+1],c=l,f=u),v){case Wl.M:c=i[p++],f=i[p++],l=c,u=f;break;case Wl.L:if(n){if(uu(l,u,i[p],i[p+1],e,r,a))return!0}else s+=Zs(l,u,i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Wl.C:if(n){if(art(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=urt(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Wl.Q:if(n){if(IJ(l,u,i[p++],i[p++],i[p],i[p+1],e,r,a))return!0}else s+=crt(l,u,i[p++],i[p++],i[p],i[p+1],r,a)||0;l=i[p++],u=i[p++];break;case Wl.A:var y=i[p++],m=i[p++],b=i[p++],_=i[p++],x=i[p++],w=i[p++];p+=1;var C=!!(1-i[p++]);d=Math.cos(x)*b+y,h=Math.sin(x)*_+m,g?(c=d,f=h):s+=Zs(l,u,d,h,r,a);var T=(r-y)*_/b+y;if(n){if(irt(y,m,_,x,x+w,C,e,T,a))return!0}else s+=frt(y,m,_,x,x+w,C,T,a);l=Math.cos(x+w)*b+y,u=Math.sin(x+w)*_+m;break;case Wl.R:c=l=i[p++],f=u=i[p++];var k=i[p++],E=i[p++];if(d=c+k,h=f+E,n){if(uu(c,f,d,f,e,r,a)||uu(d,f,d,h,e,r,a)||uu(d,h,c,h,e,r,a)||uu(c,h,c,f,e,r,a))return!0}else s+=Zs(d,f,d,h,r,a),s+=Zs(c,h,c,f,r,a);break;case Wl.Z:if(n){if(uu(l,u,c,f,e,r,a))return!0}else s+=Zs(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!srt(u,f)&&(s+=Zs(l,u,c,f,r,a)||0),s!==0}function drt(t,e,n){return BJ(t,0,!1,e,n)}function hrt(t,e,n,r){return BJ(t,e,!0,n,r)}var k_=gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Hf),vrt={style:gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Bx.style)},sT=Ds.concat(["invisible","culling","z","z2","zlevel","parent"]),prt=function(t){me(e,t);function e(n){return t.call(this,n)||this}return e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){n.buildPath(l,n.shape)}),a.silent=!0;var i=a.style;for(var o in r)i[o]!==r[o]&&(i[o]=r[o]);i.fill=r.fill?r.decal:null,i.decal=null,i.shadowColor=null,r.strokeFirst&&(i.stroke=null);for(var s=0;s.5?hD:r>.2?qtt:vD}else if(n)return vD}return hD},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(nt(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=iy(n,0)0))},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,a=!n;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&vh)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){s.copy(n);var l=r.strokeNoScale?this.getLineScale():1,u=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return n},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect(),o=this.style;if(n=a[0],r=a[1],i.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),hrt(s,l/u,n,r)))return!0}if(this.hasFill())return drt(s,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=vh,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(n){return this.animate("shape",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):t.prototype.attrKV.call(this,n,r)},e.prototype.setShape=function(n,r){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=r:Oe(a,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&vh)},e.prototype.createStyle=function(n){return rm(k_,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=Oe({},this.shape))},e.prototype._applyStateObj=function(n,r,a,i,o,s){t.prototype._applyStateObj.call(this,n,r,a,i,o,s);var l=!(r&&i),u;if(r&&r.shape?o?i?u=r.shape:(u=Oe({},a.shape),Oe(u,r.shape)):(u=Oe({},i?this.shape:a.shape),Oe(u,r.shape)):l&&(u=a.shape),u)if(o){this.shape=Oe({},this.shape);for(var c={},f=Yt(u),d=0;d0},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(n){return rm(grt,n)},e.prototype.setBoundingRect=function(n){this._rect=n},e.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var a=om(r,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var i=n.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},e.initDefaultProps=function(){var n=e.prototype;n.dirtyRectTolerance=10}(),e}(Zi);VJ.prototype.type="tspan";const uy=VJ;var yrt=gt({x:0,y:0},Hf),mrt={style:gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Bx.style)};function brt(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var PJ=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return rm(yrt,n)},e.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=brt(r.image)?r.image:this.__image;if(!i)return 0;var o=n==="width"?"height":"width",s=r[o];return s==null?i[n]:i[n]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return mrt},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Ft(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Zi);PJ.prototype.type="image";const Fr=PJ;function Srt(t,e){var n=e.x,r=e.y,a=e.width,i=e.height,o=e.r,s,l,u,c;a<0&&(n=n+a,a=-a),i<0&&(r=r+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),t.moveTo(n+s,r),t.lineTo(n+a-l,r),l!==0&&t.arc(n+a-l,r+l,l,-Math.PI/2,0),t.lineTo(n+a,r+i-u),u!==0&&t.arc(n+a-u,r+i-u,u,0,Math.PI/2),t.lineTo(n+c,r+i),c!==0&&t.arc(n+c,r+i-c,c,Math.PI/2,Math.PI),t.lineTo(n,r+s),s!==0&&t.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var kh=Math.round;function FJ(t,e,n){if(e){var r=e.x1,a=e.x2,i=e.y1,o=e.y2;t.x1=r,t.x2=a,t.y1=i,t.y2=o;var s=n&&n.lineWidth;return s&&(kh(r*2)===kh(a*2)&&(t.x1=t.x2=Mf(r,s,!0)),kh(i*2)===kh(o*2)&&(t.y1=t.y2=Mf(i,s,!0))),t}}function zJ(t,e,n){if(e){var r=e.x,a=e.y,i=e.width,o=e.height;t.x=r,t.y=a,t.width=i,t.height=o;var s=n&&n.lineWidth;return s&&(t.x=Mf(r,s,!0),t.y=Mf(a,s,!0),t.width=Math.max(Mf(r+i,s,!1)-t.x,i===0?0:1),t.height=Math.max(Mf(a+o,s,!1)-t.y,o===0?0:1)),t}}function Mf(t,e,n){if(!e)return t;var r=kh(t*2);return(r+kh(e))%2===0?r/2:(r+(n?1:-1))/2}var _rt=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),wrt={},GJ=function(t){me(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new _rt},e.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=zJ(wrt,r,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else a=r.x,i=r.y,o=r.width,s=r.height;r.r?Srt(n,r):n.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Wt);GJ.prototype.type="rect";const en=GJ;var vF={fill:"#000"},pF=2,xrt={style:gt({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},Bx.style)},HJ=function(t){me(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=vF,r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,D=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),R=o.calculatedLineHeight,A=0;A=0&&(A=w[R],A.align==="right");)this._placeToken(A,n,T,y,D,"right",b),k-=A.width,D-=A.width,R--;for(M+=(i-(M-g)-(m-D)-k)/2;E<=R;)A=w[E],this._placeToken(A,n,T,y,M+A.width/2,"center",b),M+=A.width,E++;y+=T}},e.prototype._placeToken=function(n,r,a,i,o,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=i+a/2;c==="top"?f=i+n.height/2:c==="bottom"&&(f=i+a-n.height/2);var d=!n.isLineHolder&&lT(u);d&&this._renderBackground(u,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var h=!!u.backgroundColor,p=n.textPadding;p&&(o=_F(o,s,p),f-=n.height/2-p[0]-n.innerHeight/2);var v=this._getOrCreateChild(uy),g=v.createStyle();v.useStyle(g);var y=this._defaultStyle,m=!1,b=0,_=SF("fill"in u?u.fill:"fill"in r?r.fill:(m=!0,y.fill)),x=bF("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||m)?(b=pF,y.stroke):null),w=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=f,w&&(g.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,g.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=n.font||Yu,g.opacity=Ro(u.opacity,r.opacity,1),yF(g,u),x&&(g.lineWidth=Ro(u.lineWidth,r.lineWidth,b),g.lineDash=Vt(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=x),_&&(g.fill=_);var C=n.contentWidth,T=n.contentHeight;v.setBoundingRect(new Ft(_g(g.x,C,g.textAlign),ph(g.y,T,g.textBaseline),C,T))},e.prototype._renderBackground=function(n,r,a,i,o,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,p=this,v,g;if(d||n.lineHeight||u&&c){v=this._getOrCreateChild(en),v.useStyle(v.createStyle()),v.style.fill=null;var y=v.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,v.dirtyShape()}if(d){var m=v.style;m.fill=l||null,m.fillOpacity=Vt(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Fr),g.onload=function(){p.dirtyStyle()};var b=g.style;b.image=l.image,b.x=a,b.y=i,b.width=o,b.height=s}if(u&&c){var m=v.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=Vt(n.strokeOpacity,1),m.lineDash=n.borderDash,m.lineDashOffset=n.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var _=(v||g).style;_.shadowBlur=n.shadowBlur||0,_.shadowColor=n.shadowColor||"transparent",_.shadowOffsetX=n.shadowOffsetX||0,_.shadowOffsetY=n.shadowOffsetY||0,_.opacity=Ro(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return WJ(n)&&(r=[n.fontStyle,n.fontWeight,UJ(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Bi(r)||n.textFont||n.font},e}(Zi),Crt={left:!0,right:1,center:1},Trt={top:1,bottom:1,middle:1},gF=["fontStyle","fontWeight","fontSize","fontFamily"];function UJ(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?PO+"px":t+"px"}function yF(t,e){for(var n=0;n=0,i=!1;if(t instanceof Wt){var o=jJ(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Gd(s)||Gd(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=Oe({},r),u=Oe({},u),u.fill=s):!Gd(u.fill)&&Gd(s)?(i=!0,r=Oe({},r),u=Oe({},u),u.fill=EF(s)):!Gd(u.stroke)&&Gd(l)&&(i||(r=Oe({},r),u=Oe({},u)),u.stroke=EF(l)),r.style=u}}if(r&&r.z2==null){i||(r=Oe({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(c??rp)}return r}function Art(t,e,n){if(n&&n.z2==null){n=Oe({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??Mrt)}return n}function Ort(t,e,n){var r=zt(t.currentStates,e)>=0,a=t.style.opacity,i=r?null:Rrt(t,["opacity"],e,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=Oe({},n),o=Oe({opacity:r?a:i.opacity*.1},o),n.style=o),n}function uT(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return Lrt(this,t,e,n);if(t==="blur")return Ort(this,t,n);if(t==="select")return Art(this,t,n)}return n}function od(t){t.stateProxy=uT;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=uT),n&&(n.stateProxy=uT)}function kF(t,e){!JJ(t,e)&&!t.__highByOuter&&Al(t,KJ)}function DF(t,e){!JJ(t,e)&&!t.__highByOuter&&Al(t,YJ)}function _l(t,e){t.__highByOuter|=1<<(e||0),Al(t,KJ)}function wl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Al(t,YJ)}function qJ(t){Al(t,lN)}function uN(t){Al(t,XJ)}function ZJ(t){Al(t,krt)}function QJ(t){Al(t,Drt)}function JJ(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function eee(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(a,i){var o=oN(i),s=a==="series",l=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){XJ(u)}),s&&n.push(i)),o.isBlured=!1}),W(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,e)})}function xD(t,e,n,r){var a=r.getModel();n=n||"coordinateSystem";function i(u,c){for(var f=0;f0){var s={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function Ou(t,e,n){kf(t,!0),Al(t,od),TD(t,e,n)}function Prt(t){kf(t,!1)}function qn(t,e,n,r){r?Prt(t):Ou(t,e,n)}function TD(t,e,n){var r=Rt(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var LF=["emphasis","blur","select"],Frt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Qr(t,e,n,r){n=n||"itemStyle";for(var a=0;a1&&(o*=cT(p),s*=cT(p));var v=(a===i?-1:1)*cT((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=v*o*h/s,y=v*-s*d/o,m=(t+n)/2+D1(f)*g-k1(f)*y,b=(e+r)/2+k1(f)*g+D1(f)*y,_=$F([1,0],[(d-g)/o,(h-y)/s]),x=[(d-g)/o,(h-y)/s],w=[(-1*d-g)/o,(-1*h-y)/s],C=$F(x,w);if(MD(x,w)<=-1&&(C=Hp),MD(x,w)>=1&&(C=0),C<0){var T=Math.round(C/Hp*1e6)/1e6;C=Hp*2+T%2*Hp}c.addData(u,m,b,o,s,_,C,f,i)}var jrt=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Krt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Yrt(t){var e=new Ls;if(!t)return e;var n=0,r=0,a=n,i=r,o,s=Ls.CMD,l=t.match(jrt);if(!l)return e;for(var u=0;uA*A+V*V&&(T=E,k=M),{cx:T,cy:k,x0:-c,y0:-f,x1:T*(a/x-1),y1:k*(a/x-1)}}function tat(t){var e;if(Ie(t)){var n=t.length;if(!n)return t;n===1?e=[t[0],t[0],0,0]:n===2?e=[t[0],t[0],t[1],t[1]]:n===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function nat(t,e){var n,r=wg(e.r,0),a=wg(e.r0||0,0),i=r>0,o=a>0;if(!(!i&&!o)){if(i||(r=a,a=0),a>r){var s=r;r=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,d=!!e.clockwise,h=BF(u-l),p=h>fT&&h%fT;if(p>lo&&(h=p),!(r>lo))t.moveTo(c,f);else if(h>fT-lo)t.moveTo(c+r*Ud(l),f+r*Fc(l)),t.arc(c,f,r,l,u,!d),a>lo&&(t.moveTo(c+a*Ud(u),f+a*Fc(u)),t.arc(c,f,a,u,l,d));else{var v=void 0,g=void 0,y=void 0,m=void 0,b=void 0,_=void 0,x=void 0,w=void 0,C=void 0,T=void 0,k=void 0,E=void 0,M=void 0,D=void 0,R=void 0,A=void 0,V=r*Ud(l),P=r*Fc(l),N=a*Ud(u),I=a*Fc(u),L=h>lo;if(L){var $=e.cornerRadius;$&&(n=tat($),v=n[0],g=n[1],y=n[2],m=n[3]);var U=BF(r-a)/2;if(b=Zo(U,y),_=Zo(U,m),x=Zo(U,v),w=Zo(U,g),k=C=wg(b,_),E=T=wg(x,w),(C>lo||T>lo)&&(M=r*Ud(u),D=r*Fc(u),R=a*Ud(l),A=a*Fc(l),hlo){var he=Zo(y,k),ue=Zo(m,k),X=R1(R,A,V,P,r,he,d),K=R1(M,D,N,I,r,ue,d);t.moveTo(c+X.cx+X.x0,f+X.cy+X.y0),k0&&t.arc(c+X.cx,f+X.cy,he,ra(X.y0,X.x0),ra(X.y1,X.x1),!d),t.arc(c,f,r,ra(X.cy+X.y1,X.cx+X.x1),ra(K.cy+K.y1,K.cx+K.x1),!d),ue>0&&t.arc(c+K.cx,f+K.cy,ue,ra(K.y1,K.x1),ra(K.y0,K.x0),!d))}else t.moveTo(c+V,f+P),t.arc(c,f,r,l,u,!d);if(!(a>lo)||!L)t.lineTo(c+N,f+I);else if(E>lo){var he=Zo(v,E),ue=Zo(g,E),X=R1(N,I,M,D,a,-ue,d),K=R1(V,P,R,A,a,-he,d);t.lineTo(c+X.cx+X.x0,f+X.cy+X.y0),E0&&t.arc(c+X.cx,f+X.cy,ue,ra(X.y0,X.x0),ra(X.y1,X.x1),!d),t.arc(c,f,a,ra(X.cy+X.y1,X.cx+X.x1),ra(K.cy+K.y1,K.cx+K.x1),d),he>0&&t.arc(c+K.cx,f+K.cy,he,ra(K.y1,K.x1),ra(K.y0,K.x0),!d))}else t.lineTo(c+N,f+I),t.arc(c,f,a,u,l,d)}t.closePath()}}}var rat=function(){function t(){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 t}(),uee=function(t){me(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new rat},e.prototype.buildPath=function(n,r){nat(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Wt);uee.prototype.type="sector";const Ia=uee;var aat=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),cee=function(t){me(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new aat},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.PI*2;n.moveTo(a+r.r,i),n.arc(a,i,r.r,0,o,!1),n.moveTo(a+r.r0,i),n.arc(a,i,r.r0,0,o,!0)},e}(Wt);cee.prototype.type="ring";const um=cee;function iat(t,e,n,r){var a=[],i=[],o=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=t.length;d=2){if(r){var i=iat(a,r,n,e.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(n?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;sGc[1]){if(s=!1,i)return s;var c=Math.abs(Gc[0]-zc[1]),f=Math.abs(zc[0]-Gc[1]);Math.min(c,f)>a.len()&&(c0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(n,p):e.animateTo(n,p)}else e.stopAnimation(),!s&&e.attr(n),o&&o(1),i&&i()}function sn(t,e,n,r,a,i){hN("update",t,e,n,r,a,i)}function $n(t,e,n,r,a,i){hN("enter",t,e,n,r,a,i)}function Zh(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function FF(t){return!t.isGroup}function wat(t){return t.shape!=null}function dm(t,e,n){if(!t||!e)return;function r(o){var s={};return o.traverse(function(l){FF(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return wat(o)&&(s.shape=Oe({},o.shape)),s}var i=r(t);e.traverse(function(o){if(FF(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),sn(o,l,n,Rt(o).dataIndex)}}})}function gN(t,e){return Be(t,function(n){var r=n[0];r=L_(r,e.x),r=A_(r,e.x+e.width);var a=n[1];return a=L_(a,e.y),a=A_(a,e.y+e.height),[r,a]})}function xee(t,e){var n=L_(t.x,e.x),r=A_(t.x+t.width,e.x+e.width),a=L_(t.y,e.y),i=A_(t.y+t.height,e.y+e.height);if(r>=n&&i>=a)return{x:n,y:a,width:r-n,height:i-a}}function op(t,e,n){var r=Oe({rectHover:!0},e),a=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),gt(a,n),new Fr(r)):fm(t.replace("path://",""),r,n,"center")}function xg(t,e,n,r,a){for(var i=0,o=a[a.length-1];i1)return!1;var g=dT(h,p,c,f)/d;return!(g<0||g>1)}function dT(t,e,n,r){return t*r-n*e}function xat(t){return t<=1e-6&&t>=-1e-6}function sp(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,a=nt(e)?{formatter:e}:e,i=n.mainType,o=n.componentIndex,s={componentType:i,name:r,$vars:["name"]};s[i+"Index"]=o;var l=t.formatterParamsExtra;l&&W(Yt(l),function(c){ot(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Rt(t.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:r,option:gt({content:r,formatterParams:s},a)}}function zF(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function dc(t,e){if(t)if(Ie(t))for(var n=0;n=0&&s.push(l)}),s}}function hc(t,e){return It(It({},t,!0),e,!0)}const Iat={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:". "}}}},Bat={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 N_="ZH",yN="EN",hy=yN,gS={},mN={},Lee=nn.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(N_)>-1?N_:hy}():hy;function bN(t,e){t=t.toUpperCase(),mN[t]=new wn(e),gS[t]=e}function Vat(t){if(nt(t)){var e=gS[t.toUpperCase()]||{};return t===N_||t===yN?_t(e):It(_t(e),_t(gS[hy]),!1)}else return It(_t(t),_t(gS[hy]),!1)}function RD(t){return mN[t]}function Pat(){return mN[hy]}bN(yN,Iat);bN(N_,Bat);var SN=1e3,_N=SN*60,a0=_N*60,$i=a0*24,jF=$i*365,Cg={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}"},O1="{yyyy}-{MM}-{dd}",KF={year:"{yyyy}",month:"{yyyy}-{MM}",day:O1,hour:O1+" "+Cg.hour,minute:O1+" "+Cg.minute,second:O1+" "+Cg.second,millisecond:Cg.none},pT=["year","month","day","hour","minute","second","millisecond"],Aee=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ca(t,e){return t+="","0000".substr(0,e-t.length)+t}function Qh(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Fat(t){return t===Qh(t)}function zat(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function vm(t,e,n,r){var a=gi(t),i=a[wN(n)](),o=a[Jh(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[Kx(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[vy(n)](),f=(c-1)%12+1,d=a[Yx(n)](),h=a[Xx(n)](),p=a[qx(n)](),v=r instanceof wn?r:RD(r||Lee)||Pat(),g=v.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),b=g.get("dayOfWeek"),_=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ca(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Ca(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ca(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ca(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ca(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ca(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Ca(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ca(p,3)).replace(/{S}/g,p+"")}function Gat(t,e,n,r,a){var i=null;if(nt(n))i=n;else if(vt(n))i=n(t.value,e,{level:t.level});else{var o=Oe({},Cg);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(Ie(i)){var f=t.level==null?0:t.level>=0?t.level:i.length+t.level;f=Math.min(f,i.length-1),i=i[f]}}return vm(new Date(t.value),i,a,r)}function Oee(t,e){var n=gi(t),r=n[Jh(e)]()+1,a=n[Kx(e)](),i=n[vy(e)](),o=n[Yx(e)](),s=n[Xx(e)](),l=n[qx(e)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,h=d&&a===1,p=h&&r===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function YF(t,e,n){var r=rn(t)?gi(t):t;switch(e=e||Oee(t,n),e){case"year":return r[wN(n)]();case"half-year":return r[Jh(n)]()>=6?1:0;case"quarter":return Math.floor((r[Jh(n)]()+1)/4);case"month":return r[Jh(n)]();case"day":return r[Kx(n)]();case"half-day":return r[vy(n)]()/24;case"hour":return r[vy(n)]();case"minute":return r[Yx(n)]();case"second":return r[Xx(n)]();case"millisecond":return r[qx(n)]()}}function wN(t){return t?"getUTCFullYear":"getFullYear"}function Jh(t){return t?"getUTCMonth":"getMonth"}function Kx(t){return t?"getUTCDate":"getDate"}function vy(t){return t?"getUTCHours":"getHours"}function Yx(t){return t?"getUTCMinutes":"getMinutes"}function Xx(t){return t?"getUTCSeconds":"getSeconds"}function qx(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Hat(t){return t?"setUTCFullYear":"setFullYear"}function Nee(t){return t?"setUTCMonth":"setMonth"}function $ee(t){return t?"setUTCDate":"setDate"}function Iee(t){return t?"setUTCHours":"setHours"}function Bee(t){return t?"setUTCMinutes":"setMinutes"}function Vee(t){return t?"setUTCSeconds":"setSeconds"}function Pee(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Uat(t,e,n,r,a,i,o,s){var l=new Jt({style:{text:t,font:e,align:n,verticalAlign:r,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function xN(t){if(!tN(t))return nt(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function CN(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var _d=Dx;function LD(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Bi(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?gi(t):t;if(isNaN(+l)){if(s)return"-"}else return vm(l,r,n)}if(e==="ordinal")return b_(t)?a(t):rn(t)&&i(t)?t+"":"-";var u=Rs(t);return i(u)?xN(u):b_(t)?a(t):typeof t=="boolean"?t+"":"-"}var XF=["a","b","c","d","e","f","g"],gT=function(t,e){return"{"+t+(e??"")+"}"};function TN(t,e,n){Ie(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i':'';var o=n.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function jat(t,e,n){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd yyyy`);var r=gi(e),a=n?"getUTC":"get",i=r[a+"FullYear"](),o=r[a+"Month"]()+1,s=r[a+"Date"](),l=r[a+"Hours"](),u=r[a+"Minutes"](),c=r[a+"Seconds"](),f=r[a+"Milliseconds"]();return t=t.replace("MM",Ca(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Ca(i%100+"",2)).replace("dd",Ca(s,2)).replace("d",s).replace("hh",Ca(l,2)).replace("h",l).replace("mm",Ca(u,2)).replace("m",u).replace("ss",Ca(c,2)).replace("s",c).replace("SSS",Ca(f,3)),t}function Kat(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function sd(t,e){return e=e||"transparent",nt(t)?t:mt(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function $_(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var yS=W,zee=["left","right","top","bottom","width","height"],Df=[["width","left","right"],["height","top","bottom"]];function EN(t,e,n,r,a){var i=0,o=0;r==null&&(r=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(t==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=i+v,h>r||l.newline?(i=0,h=v,o+=s+n,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>a||l.newline?(i+=s+n,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),t==="horizontal"?i=h+n:o=p+n)})}var Wf=EN;Dt(EN,"vertical");Dt(EN,"horizontal");function Yat(t,e,n){var r=e.width,a=e.height,i=Je(t.left,r),o=Je(t.top,a),s=Je(t.right,r),l=Je(t.bottom,a);return(isNaN(i)||isNaN(parseFloat(t.left)))&&(i=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(t.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=a),n=_d(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function vr(t,e,n){n=_d(n||0);var r=e.width,a=e.height,i=Je(t.left,r),o=Je(t.top,a),s=Je(t.right,r),l=Je(t.bottom,a),u=Je(t.width,r),c=Je(t.height,a),f=n[2]+n[0],d=n[1]+n[3],h=t.aspect;switch(isNaN(u)&&(u=r-s-d-i),isNaN(c)&&(c=a-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/a?u=r*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=r-s-u-d),isNaN(o)&&(o=a-l-c-f),t.left||t.right){case"center":i=r/2-u/2-n[3];break;case"right":i=r-u-d;break}switch(t.top||t.bottom){case"middle":case"center":o=a/2-c/2-n[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=r-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var p=new Ft(i+n[3],o+n[0],u,c);return p.margin=n,p}function Zx(t,e,n,r,a,i){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(i=i||t,i.x=t.x,i.y=t.y,!o&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new Ft(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=vr(gt({width:u.width,height:u.height},e),n,r),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(i.x=d,i.y=h):(i.x+=d,i.y+=h),i===t&&t.markRedraw(),!0}function Xat(t,e){return t[Df[e][0]]!=null||t[Df[e][1]]!=null&&t[Df[e][2]]!=null}function py(t){var e=t.layoutMode||t.constructor.layoutMode;return mt(e)?e:e?{type:e}:null}function Zu(t,e,n){var r=n&&n.ignoreSize;!Ie(r)&&(r=[r,r]);var a=o(Df[0],0),i=o(Df[1],1);u(Df[0],t,a),u(Df[1],t,i);function o(c,f){var d={},h=0,p={},v=0,g=2;if(yS(c,function(b){p[b]=t[b]}),yS(c,function(b){s(e,b)&&(d[b]=p[b]=e[b]),l(d,b)&&h++,l(p,b)&&v++}),r[f])return l(e,c[1])?p[c[2]]=null:l(e,c[2])&&(p[c[1]]=null),p;if(v===g||!h)return p;if(h>=g)return d;for(var y=0;y=0;l--)s=It(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return sm(this.ecModel,n,{index:this.get(a,!0),id:this.get(i,!0)},r)},e.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(n){this.option.zlevel=n},e.protoInitialize=function(){var n=e.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),e}(wn);RJ(fp,wn);$x(fp);Nat(fp);$at(fp,Zat);function Zat(t){var e=[];return W(fp.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=Be(e,function(n){return hs(n).main}),t!=="dataset"&&zt(e,"dataset")<=0&&e.unshift("dataset"),e}const Zt=fp;var Hee="";typeof navigator<"u"&&(Hee=navigator.platform||"");var Wd="rgba(0, 0, 0, 0.2)";const Qat={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Wd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Wd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Wd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Wd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Wd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Wd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Hee.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 Uee=ct(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),eo="original",pa="arrayRows",to="objectRows",Vs="keyedColumns",$u="typedArray",Wee="unknown",ws="column",dp="row",Ur={Must:1,Might:2,Not:3},jee=an();function Jat(t){jee(t).datasetMap=ct()}function Kee(t,e,n){var r={},a=kN(e);if(!a||!t)return r;var i=[],o=[],s=e.ecModel,l=jee(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;t=t.slice(),W(t,function(v,g){var y=mt(v)?v:t[g]={name:v};y.type==="ordinal"&&c==null&&(c=g,f=p(y)),r[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});W(t,function(v,g){var y=v.name,m=p(v);if(c==null){var b=d.valueWayDim;h(r[y],b,m),h(o,b,m),d.valueWayDim+=m}else if(c===g)h(r[y],0,m),h(i,0,m);else{var b=d.categoryWayDim;h(r[y],b,m),h(o,b,m),d.categoryWayDim+=m}});function h(v,g,y){for(var m=0;me)return t[r];return t[n-1]}function qee(t,e,n,r,a,i,o){i=i||t;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!r?n:ait(r,o);if(c=c||n,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function iit(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var N1,Up,ZF,QF="\0_ec_inner",oit=1,Zee=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,a,i,o,s){i=i||{},this.option=null,this._theme=new wn(i),this._locale=new wn(o),this._optionManager=s},e.prototype.setOption=function(n,r,a){var i=t5(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(n,r){return this._resetOption(n,t5(r))},e.prototype._resetOption=function(n,r){var a=!1,i=this._optionManager;if(!n||n==="recreate"){var o=i.mountOption(n==="recreate");!this.option||n==="recreate"?ZF(this,o):(this.restoreData(),this._mergeOption(o,r)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=i.getMediaOption(this);l.length&&W(l,function(u){a=!0,this._mergeOption(u,r)},this)}return a},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ct(),u=r&&r.replaceMergeMainTypeMap;Jat(this),W(n,function(f,d){f!=null&&(Zt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?_t(f):It(a[d],f,!0))}),u&&u.each(function(f,d){Zt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Zt.topologicalTravel(s,Zt.getAllClassMainTypes(),c,this);function c(f){var d=nit(this,f,xn(n[f])),h=i.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=TJ(h,d,p);Cnt(v,f,Zt),a[f]=null,i.set(f,null),o.set(f,0);var g=[],y=[],m=0,b;W(v,function(_,x){var w=_.existing,C=_.newOption;if(!C)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var T=f==="series",k=Zt.getClass(f,_.keyInfo.subType,!T);if(!k)return;if(f==="tooltip"){if(b)return;b=!0}if(w&&w.constructor===k)w.name=_.keyInfo.name,w.mergeOption(C,this),w.optionUpdated(C,!1);else{var E=Oe({componentIndex:x},_.keyInfo);w=new k(C,this,this,E),Oe(w,E),_.brandNew&&(w.__requireNewView=!0),w.init(C,this,this),w.optionUpdated(null,!0)}}w?(g.push(w.option),y.push(w),m++):(g.push(void 0),y.push(void 0))},this),a[f]=g,i.set(f,y),o.set(f,m),f==="series"&&N1(this)}this._seriesIndices||N1(this)},e.prototype.getOption=function(){var n=_t(this.option);return W(n,function(r,a){if(Zt.hasClass(a)){for(var i=xn(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!ly(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[QF],n},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(n){this._payload=n},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(n,r){var a=this._componentsMap.get(n);if(a){var i=a[r||0];if(i)return i;if(r==null){for(var o=0;o=e:n==="max"?t<=e:t===e}function yit(t,e){return t.join(",")===e.join(",")}const mit=hit;var ao=W,gy=mt,n5=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function mT(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=n5.length;n=0;g--){var y=t[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&d>=0&&m>0||l==="samesign"&&d<=0&&m<0){d=vnt(d,m),v=m;break}}}return r[0]=d,r[1]=v,r})})}var Qx=function(){function t(e){this.data=e.data||(e.sourceFormat===Vs?{}:[]),this.sourceFormat=e.sourceFormat||Wee,this.seriesLayoutBy=e.seriesLayoutBy||ws,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var n=this.dimensionsDefine=e.dimensionsDefine;if(n)for(var r=0;rv&&(v=b)}h[0]=p,h[1]=v}},a=function(){return this._data?this._data.length/this._dimSize:0};u5=(e={},e[pa+"_"+ws]={pure:!0,appendData:i},e[pa+"_"+dp]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[to]={pure:!0,appendData:i},e[Vs]={pure:!0,appendData:function(o){var s=this._data;W(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[eo]={appendData:i},e[$u]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s=0&&(v=o.interpolatedValue[g])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,n){return Ov(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t}();function h5(t){var e,n;return mt(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function i0(t){return new $it(t)}var $it=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!r&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(m){return!(m>=1)&&(m=1),m}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(r)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h1&&r>0?s:o}};return i;function o(){return e=t?null:le},gte:function(t,e){return t>=e}},Bit=function(){function t(e,n){if(!rn(n)){var r="";hn(r)}this._opFn=ute[e],this._rvalFloat=Rs(n)}return t.prototype.evaluate=function(e){return rn(e)?this._opFn(e,this._rvalFloat):this._opFn(Rs(e),this._rvalFloat)},t}(),cte=function(){function t(e,n){var r=e==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,n){var r=rn(e)?e:Rs(e),a=rn(n)?n:Rs(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=nt(e),l=nt(n);s&&(r=l?e:0),l&&(a=s?n:0)}return ra?-this._resultLT:0},t}(),Vit=function(){function t(e,n){this._rval=n,this._isEQ=e,this._rvalTypeof=typeof n,this._rvalFloat=Rs(n)}return t.prototype.evaluate=function(e){var n=e===this._rval;if(!n){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=Rs(e)===this._rvalFloat)}return this._isEQ?n:!n},t}();function Pit(t,e){return t==="eq"||t==="ne"?new Vit(t==="eq",e):ot(ute,t)?new Bit(t,e):null}var Fit=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,n){},t.prototype.retrieveValueFromItem=function(e,n){},t.prototype.convertValue=function(e,n){return Iu(e,n)},t}();function zit(t,e){var n=new Fit,r=t.data,a=n.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==ws&&hn(o);var s=[],l={},u=t.dimensionsDefine;if(u)W(u,function(v,g){var y=v.name,m={index:g,name:y,displayName:v.displayName};if(s.push(m),y!=null){var b="";ot(l,y)&&hn(b),l[y]=m}});else for(var c=0;c65535?Xit:qit}function jd(){return[1/0,-1/0]}function Zit(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function g5(t,e,n,r,a){var i=hte[n||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;ug[1]&&(g[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,n,r){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Be(o,function(m){return m.property}),c=0;cy[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,n){if(!(n>=0&&n=0&&n=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&re)i=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,n,r){var a=this._chunks,i=a[e],o=[];if(!i)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,a=this._count;if(r===Array){e=new r(a);for(var i=0;i=f&&m<=d||isNaN(m))&&(l[u++]=v),v++}p=!0}else if(i===2){for(var g=h[a[0]],b=h[a[1]],_=e[a[1]][0],x=e[a[1]][1],y=0;y=f&&m<=d||isNaN(m))&&(w>=_&&w<=x||isNaN(w))&&(l[u++]=v),v++}p=!0}}if(!p)if(i===1)for(var y=0;y=f&&m<=d||isNaN(m))&&(l[u++]=C)}else for(var y=0;ye[E][1])&&(T=!1)}T&&(l[u++]=n.getRawIndex(y))}return uy[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),a=r._chunks,i=a[e],o=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,h=new(jp(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;pc&&(c=f,d=_)}M>0&&Mc-p&&(l=c-p,s.length=l);for(var v=0;vf[1]&&(f[1]=y),d[h++]=m}return i._count=h,i._indices=d,i._updateGetRawIdx(),i},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,a=this._chunks,i=0,o=this.count();il&&(l=f)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],a=this._chunks,i=0;i=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(n,r,a,i){return Iu(n[i],this._dimensions[i])}_T={arrayRows:e,objectRows:function(n,r,a,i){return Iu(n[r],this._dimensions[i])},keyedColumns:e,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return Iu(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),t}();const $D=Qit;var vte=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,n){this._sourceList=e,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,a,i;if($1(e)){var o=e,s=void 0,l=void 0,u=void 0;if(r){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=ti(s)?$u:eo,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Vt(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=Vt(f.sourceHeader,d.sourceHeader),v=Vt(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||v;a=g?[ND(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:v},l)]:[]}else{var y=e;if(r){var m=this._applyTransform(n);a=m.sourceList,i=m.upstreamSignList}else{var b=y.get("source",!0);a=[ND(b,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(a,i)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var i="";e.length!==1&&m5(i)}var o,s=[],l=[];return W(e,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&m5(f),s.push(c),l.push(u._getVersionSign())}),r?o=Kit(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[kit(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!t.noHeader;return W(t.blocks,function(a){var i=mte(a);i>=e&&(e=i+ +(r&&(!i||ID(a)&&!a.noHeader)))}),e}return 0}function tot(t,e,n,r){var a=e.noHeader,i=rot(mte(e)),o=[],s=e.blocks||[];va(!s||Ie(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ot(u,l)){var c=new cte(u[l],null);s.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}W(s,function(p,v){var g=e.valueFormatter,y=yte(p)(g?Oe(Oe({},t),{valueFormatter:g}):t,p,v>0?i.html:0,r);y!=null&&o.push(y)});var f=t.renderMode==="richText"?o.join(i.richText):BD(o.join(""),a?n:i.html);if(a)return f;var d=LD(e.header,"ordinal",t.useUTC),h=gte(r,t.renderMode).nameStyle;return t.renderMode==="richText"?bte(t,d,h)+i.richText+f:BD('
'+Ea(d)+"
"+f,n)}function not(t,e,n,r){var a=t.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(_){return _=Ie(_)?_:[_],Be(_,function(x,w){return LD(x,Ie(h)?h[w]:h,u)})};if(!(i&&o)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),d=i?"":LD(l,"ordinal",u),h=e.valueType,p=o?[]:c(e.value),v=!s||!i,g=!s&&i,y=gte(r,a),m=y.nameStyle,b=y.valueStyle;return a==="richText"?(s?"":f)+(i?"":bte(t,d,m))+(o?"":oot(t,p,v,g,b)):BD((s?"":f)+(i?"":aot(d,!s,m))+(o?"":iot(p,v,g,b)),n)}}function b5(t,e,n,r,a,i){if(t){var o=yte(t),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function rot(t){return{html:Jit[t],richText:eot[t]}}function BD(t,e){var n='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function aot(t,e,n){var r=e?"margin-left:2px":"";return''+Ea(t)+""}function iot(t,e,n,r){var a=n?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=Ie(t)?t:[t],''+Be(t,function(o){return Ea(o)}).join("  ")+""}function bte(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function oot(t,e,n,r,a){var i=[a],o=r?10:20;return n&&i.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Ie(e)?e.join(" "):e,i)}function Ste(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return sd(r)}function _te(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var wT=function(){function t(){this.richTextStyles={},this._nextStyleNameId=_J()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var a=r==="richText"?this._generateStyleName():null,i=Fee({color:n,type:e,renderMode:r,markerId:a});return nt(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};Ie(n)?W(n,function(i){return Oe(r,i)}):Oe(r,n);var a=this._generateStyleName();return this.richTextStyles[a]=r,"{"+a+"|"+e+"}"},t}();function wte(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,a=e.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(n),l=Ie(s),u=Ste(e,n),c,f,d,h;if(o>1||l&&!o){var p=sot(s,e,n,i,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var v=a.getDimensionInfo(i[0]);h=c=Ov(a,n,i[0]),f=v.type}else h=c=l?s[0]:s;var g=nN(e),y=g&&e.name||"",m=a.getName(n),b=r?y:m;return Lr("section",{header:y,noHeader:r||!g,sortParam:h,blocks:[Lr("nameValue",{markerType:"item",markerColor:u,name:b,noName:!Bi(b),value:c,valueType:f})].concat(d||[])})}function sot(t,e,n,r,a){var i=e.getData(),o=qi(t,function(f,d,h){var p=i.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];r.length?W(r,function(f){c(Ov(i,n,f),f)}):W(t,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Lr("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var jl=an();function I1(t,e){return t.getName(e)||t.getId(e)}var mS="__universalTransitionEnabled",e2=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return e.prototype.init=function(n,r,a){this.seriesIndex=this.componentIndex,this.dataTask=i0({count:uot,reset:cot}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=jl(this).sourceManager=new vte(this);i.prepareSource();var o=this.getInitialData(n,a);_5(o,this),this.dataTask.context.data=o,jl(this).dataBeforeProcessed=o,S5(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=py(this),i=a?cp(n):{},o=this.subType;Zt.hasClass(o)&&(o+="Series"),It(n,r.getTheme().get(this.subType)),It(n,this.getDefaultOption()),rd(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&Zu(n,i,a)},e.prototype.mergeOption=function(n,r){n=It(this.option,n,!0),this.fillDataTextStyle(n.data);var a=py(this);a&&Zu(this.option,n,a);var i=jl(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);_5(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,jl(this).dataBeforeProcessed=o,S5(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(n){if(n&&!ti(n))for(var r=["show"],a=0;athis.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=DN.prototype.getColorFromPalette.call(this,n,r,a);return o||(o=i.getColorFromPalette(n,r,a)),o},e.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},e.prototype.unselect=function(n,r){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(r);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&a.push(o)}return a},e.prototype.isSelected=function(n,r){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(r);return(a==="all"||a[I1(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[mS])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var a,i,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){mt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(n,r)}},e.registerClass=function(n){return Zt.registerClass(n)},e.protoInitialize=function(){var n=e.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),e}(Zt);Jn(e2,ON);Jn(e2,DN);RJ(e2,Zt);function S5(t){var e=t.name;nN(t)||(t.name=lot(t)||e)}function lot(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return W(n,function(a){var i=e.getDimensionInfo(a);i.displayName&&r.push(i.displayName)}),r.join(" ")}function uot(t){return t.model.getRawData().count()}function cot(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),fot}function fot(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function _5(t,e){W(ey(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,Dt(dot,e))})}function dot(t,e){var n=VD(t);return n&&n.setOutputEnd((e||this).count()),e}function VD(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var a=r.agentStubMap;a&&(r=a.get(t.uid))}return r}}const An=e2;var $N=function(){function t(){this.group=new Ct,this.uid=up("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){},t.prototype.updateLayout=function(e,n,r,a){},t.prototype.updateVisual=function(e,n,r,a){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t}();aN($N);$x($N);const Vn=$N;function vp(){var t=an();return function(e){var n=t(e),r=e.pipelineContext,a=!!n.large,i=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(a!==o||i!==s)&&"reset"}}var xte=an(),hot=vp(),IN=function(){function t(){this.group=new Ct,this.uid=up("viewChart"),this.renderTask=i0({plan:vot,reset:pot}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,a){},t.prototype.highlight=function(e,n,r,a){var i=e.getData(a&&a.dataType);i&&x5(i,a,"emphasis")},t.prototype.downplay=function(e,n,r,a){var i=e.getData(a&&a.dataType);i&&x5(i,a,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateLayout=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.updateVisual=function(e,n,r,a){this.render(e,n,r,a)},t.prototype.eachRendered=function(e){dc(this.group,e)},t.markUpdateMethod=function(e,n){xte(e).updateMethod=n},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function w5(t,e,n){t&&fy(t)&&(e==="emphasis"?_l:wl)(t,n)}function x5(t,e,n){var r=ad(t,e),a=e&&e.highlightKey!=null?Grt(e.highlightKey):null;r!=null?W(xn(r),function(i){w5(t.getItemGraphicEl(i),n,a)}):t.eachItemGraphicEl(function(i){w5(i,n,a)})}aN(IN);$x(IN);function vot(t){return hot(t.model)}function pot(t){var e=t.model,n=t.ecModel,r=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&xte(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,n,r,a),got[l]}var got={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Cn=IN;var I_="\0__throttleOriginMethod",C5="\0__throttleRate",T5="\0__throttleType";function t2(t,e,n){var r,a=0,i=0,o=null,s,l,u,c;e=e||0;function f(){i=new Date().getTime(),o=null,t.apply(l,u||[])}var d=function(){for(var h=[],p=0;p=0?f():o=setTimeout(f,-s),a=r};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function pp(t,e,n,r){var a=t[e];if(a){var i=a[I_]||a,o=a[T5],s=a[C5];if(s!==n||o!==r){if(n==null||!r)return t[e]=i;a=t[e]=t2(i,n,r==="debounce"),a[I_]=i,a[T5]=r,a[C5]=n}return a}}function yy(t,e){var n=t[e];n&&n[I_]&&(n.clear&&n.clear(),t[e]=n[I_])}var E5=an(),M5={itemStyle:id(Ree,!0),lineStyle:id(Dee,!0)},yot={lineStyle:"stroke",itemStyle:"fill"};function Cte(t,e){var n=t.visualStyleMapper||M5[e];return n||(console.warn("Unknown style type '"+e+"'."),M5.itemStyle)}function Tte(t,e){var n=t.visualDrawType||yot[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var mot={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=t.getModel(r),i=Cte(t,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Tte(t,r),u=o[l],c=vt(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||vt(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||vt(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var v=t.getDataParams(p),g=Oe({},o);g[l]=c(v),h.setItemVisual(p,"style",g)}}}},Kp=new wn,bot={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=Cte(t,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){Kp.option=l[r];var u=a(Kp),c=o.ensureUniqueItemVisual(s,"style");Oe(c,u),Kp.option.decal&&(o.setItemVisual(s,"decal",Kp.option.decal),Kp.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Sot={performRawSeries:!0,overallReset:function(t){var e=ct();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+r,i=e.get(a);i||(i={},e.set(a,i)),E5(n).scope=i}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=E5(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=Tte(n,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",p=r.count();d[l]=n.getColorFromPalette(h,o,p)}})}})}},B1=Math.PI;function _ot(t,e){e=e||{},gt(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ct,r=new en({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var a=new Jt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new en({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(i);var o;return e.showSpinner&&(o=new Gx({shape:{startAngle:-B1/2,endAngle:-B1/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:B1*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:B1*3/2}).delay(300).start("circularInOut"),n.add(o)),n.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var wot=function(){function t(e,n,r,a){this._stageTaskMap=ct(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=r.concat(a)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var a=r.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),a=r.context,i=!n&&r.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=i?r.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,n){var r=this._pipelineMap.get(e.uid),a=e.getData(),i=a.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&i>=r.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=ct();e.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;r.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;W(this._allHandlers,function(a){var i=e.get(a.uid)||e.set(a.uid,{}),o="";va(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,n,r),a.overallReset&&this._createOverallStageTask(a,i,n,r)},this)},t.prototype.prepareView=function(e,n,r,a){var i=e.renderTask,o=i.context;o.model=n,o.ecModel=r,o.api=a,i.__block=!e.incrementalPrepareRender,this._pipe(n,i)},t.prototype.performDataProcessorTasks=function(e,n){this._performStageTasks(this._dataProcessorHandlers,e,n,{block:!0})},t.prototype.performVisualTasks=function(e,n,r){this._performStageTasks(this._visualHandlers,e,n,r)},t.prototype._performStageTasks=function(e,n,r,a){a=a||{};var i=!1,o=this;W(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,r);var v=o.getPerformArgs(d,a.block);p.each(function(g){g.perform(v)}),d.perform(v)&&(i=!0)}else f&&f.each(function(g,y){s(a,g)&&g.dirty();var m=o.getPerformArgs(g,a.block);m.skip=!l.performRawSeries&&n.isSeriesFiltered(g.context.model),o.updatePayload(g,r),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,a){var i=this,o=n.seriesTaskMap,s=n.seriesTaskMap=ct(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,a).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||i0({plan:Mot,reset:kot,count:Rot}));h.context={model:f,ecModel:r,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(f,h)}},t.prototype._createOverallStageTask=function(e,n,r,a){var i=this,o=n.overallTask=n.overallTask||i0({reset:xot});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ct(),u=e.seriesType,c=e.getTargetSeries,f=!0,d=!1,h="";va(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,p):c?c(r,a).each(p):(f=!1,W(r.getSeries(),p));function p(v){var g=v.uid,y=l.set(g,s&&s.get(g)||(d=!0,i0({reset:Cot,onDirty:Eot})));y.context={model:v,overallProgress:f},y.agent=o,y.__block=f,i._pipe(v,y)}d&&o.dirty()},t.prototype._pipe=function(e,n){var r=e.uid,a=this._pipelineMap.get(r);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},t.wrapStageHandler=function(e,n){return vt(e)&&(e={overallReset:e,seriesType:Lot(e)}),e.uid=up("stageHandler"),n&&(e.visualType=n),e},t}();function xot(t){t.overallReset(t.ecModel,t.api,t.payload)}function Cot(t){return t.overallProgress&&Tot}function Tot(){this.agent.dirty(),this.getDownstream().dirty()}function Eot(){this.agent&&this.agent.dirty()}function Mot(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function kot(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=xn(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Be(e,function(n,r){return Ete(r)}):Dot}var Dot=Ete(0);function Ete(t){return function(e,n){var r=n.data,a=n.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(n.mainType=p,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},t.prototype.filter=function(e,n){var r=this.eventInfo;if(!r)return!0;var a=r.targetEl,i=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,n.otherQuery,a,i));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),PD=["symbol","symbolSize","symbolRotate","symbolOffset"],L5=PD.concat(["symbolKeepAspect"]),$ot={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var r={},a={},i=!1,o=0;o=0&&Lf(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function FD(t,e,n){for(var r=e.type==="radial"?Zot(t,e,n):qot(t,e,n),a=e.colorStops,i=0;i0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:rn(t)?[t]:Ie(t)?t:null}function VN(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Jot(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(n=Be(n,function(i){return i/a}),r/=a)}return[n,r]}var est=new Ls(!0);function P_(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function A5(t){return typeof t=="string"&&t!=="none"}function F_(t){var e=t.fill;return e!=null&&e!=="none"}function O5(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function N5(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function zD(t,e,n){var r=iN(e.image,e.__image,n);if(Ix(r)){var a=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*Yg),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function tst(t,e,n,r){var a,i=P_(n),o=F_(n),s=n.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||est,f=e.__dirty;if(!r){var d=n.fill,h=n.stroke,p=o&&!!d.colorStops,v=i&&!!h.colorStops,g=o&&!!d.image,y=i&&!!h.image,m=void 0,b=void 0,_=void 0,x=void 0,w=void 0;(p||v)&&(w=e.getBoundingRect()),p&&(m=f?FD(t,d,w):e.__canvasFillGradient,e.__canvasFillGradient=m),v&&(b=f?FD(t,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),g&&(_=f||!e.__canvasFillPattern?zD(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(x=f||!e.__canvasStrokePattern?zD(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),p?t.fillStyle=m:g&&(_?t.fillStyle=_:o=!1),v?t.strokeStyle=b:y&&(x?t.strokeStyle=x:i=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var T,k;t.setLineDash&&n.lineDash&&(a=VN(e),T=a[0],k=a[1]);var E=!0;(u||f&vh)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),E=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),E&&c.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=k),r||(n.strokeFirst?(i&&N5(t,n),o&&O5(t,n)):(o&&O5(t,n),i&&N5(t,n))),T&&t.setLineDash([])}function nst(t,e,n){var r=e.__image=iN(n.image,e.__image,e,e.onload);if(!(!r||!Ix(r))){var a=n.x||0,i=n.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,a,i,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=o-u,d=s-c;t.drawImage(r,u,c,f,d,a,i,o,s)}else t.drawImage(r,a,i,o,s)}}function rst(t,e,n){var r,a=n.text;if(a!=null&&(a+=""),a){t.font=n.font||Yu,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var i=void 0,o=void 0;t.setLineDash&&n.lineDash&&(r=VN(e),i=r[0],o=r[1]),i&&(t.setLineDash(i),t.lineDashOffset=o),n.strokeFirst?(P_(n)&&t.strokeText(a,n.x,n.y),F_(n)&&t.fillText(a,n.x,n.y)):(F_(n)&&t.fillText(a,n.x,n.y),P_(n)&&t.strokeText(a,n.x,n.y)),i&&t.setLineDash([])}}var $5=["shadowBlur","shadowOffsetX","shadowOffsetY"],I5=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ote(t,e,n,r,a){var i=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){Ka(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Hf.opacity:o}(r||e.blend!==n.blend)&&(i||(Ka(t,a),i=!0),t.globalCompositeOperation=e.blend||Hf.blend);for(var s=0;s<$5.length;s++){var l=$5[s];(r||e[l]!==n[l])&&(i||(Ka(t,a),i=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(i||(Ka(t,a),i=!0),t.shadowColor=e.shadowColor||Hf.shadowColor),i}function B5(t,e,n,r,a){var i=by(e,a.inHover),o=r?null:n&&by(n,a.inHover)||{};if(i===o)return!1;var s=Ote(t,i,o,r,a);if((r||i.fill!==o.fill)&&(s||(Ka(t,a),s=!0),A5(i.fill)&&(t.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(s||(Ka(t,a),s=!0),A5(i.stroke)&&(t.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(s||(Ka(t,a),s=!0),t.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Ka(t,a),s=!0),t.lineWidth=u)}for(var c=0;c0&&n.unfinished);n.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(n,r,a){if(!this[aa]){if(this._disposed){this.id;return}var i,o,s;if(mt(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[aa]=!0,!this._model||r){var l=new mit(this._api),u=this._theme,c=this._model=new Qee;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},HD);var f={seriesTransition:s,optionChanged:!0};if(a)this[Ha]={silent:i,updateParams:f},this[aa]=!1,this.getZr().wakeUp();else{try{Yd(this),Kl.update.call(this,null,f)}catch(d){throw this[Ha]=null,this[aa]=!1,d}this._ssr||this._zr.flush(),this[Ha]=null,this[aa]=!1,Yp.call(this,i),Xp.call(this,i)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||nn.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){if(nn.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return W(r,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,a=this._model,i=[],o=this;W(r,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return W(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(U_[a]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();W(jf,function(b,_){if(b.group===a){var x=r?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(_t(n)),w=b.getDom().getBoundingClientRect();l=i(w.left,l),u=i(w.top,u),c=o(w.right,c),f=o(w.bottom,f),d.push({dom:x,left:w.left,top:w.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,v=f-u,g=Io.createCanvas(),y=pD(g,{renderer:r?"svg":"canvas"});if(y.resize({width:p,height:v}),r){var m="";return W(d,function(b){var _=b.left-l,x=b.top-u;m+=''+b.dom+""}),y.painter.getSvgRoot().innerHTML=m,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new en({shape:{x:0,y:0,width:p,height:v},style:{fill:n.connectedBackgroundColor}})),W(d,function(b){var _=new Fr({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});y.add(_)}),y.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return MT(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return MT(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=e0(a,n);return W(o,function(s,l){l.indexOf("Models")>=0&&W(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(i=i||f.containPoint(r,u))}},this)},this),!!i},e.prototype.getVisual=function(n,r){var a=this._model,i=e0(a,n,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?BN(s,l,r):pm(s,r)},e.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},e.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},e.prototype._initEvents=function(){var n=this;W(Dst,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&Rf(s,function(p){var v=Rt(p);if(v&&v.dataIndex!=null){var g=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=g&&g.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=Oe({},v.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),W(o0,function(r,a){n._messageCenter.on(a,function(i){this.trigger(a,i)},n)}),W(["selectchanged"],function(r){n._messageCenter.on(r,function(a){this.trigger(r,a)},n)}),Bot(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&MJ(this.getDom(),GN,"");var r=this,a=r._api,i=r._model;W(r._componentsViews,function(o){o.dispose(i,a)}),W(r._chartsViews,function(o){o.dispose(i,a)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete jf[r.id]},e.prototype.resize=function(n){if(!this[aa]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var a=r.resetOption("media"),i=n&&n.silent;this[Ha]&&(i==null&&(i=this[Ha].silent),a=!0,this[Ha]=null),this[aa]=!0;try{a&&Yd(this),Kl.update.call(this,{type:"resize",animation:Oe({duration:0},n&&n.animation)})}catch(o){throw this[aa]=!1,o}this[aa]=!1,Yp.call(this,i),Xp.call(this,i)}}},e.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(mt(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!UD[n]){var a=UD[n](this._api,r),i=this._zr;this._loadingFX=a,i.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=Oe({},n);return r.type=o0[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(mt(r)||(r={silent:!!r}),!!G_[n.type]&&this._model){if(this[aa]){this._pendingActions.push(n);return}var a=r.silent;DT.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&nn.browser.weChat&&this._throttledZrFlush(),Yp.call(this,a),Xp.call(this,a)}},e.prototype.updateLabelLayout=function(){ho.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(r);i.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Yd=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),ET(f,!0),ET(f,!1),d.plan()},ET=function(f,d){for(var h=f._model,p=f._scheduler,v=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,y=f._zr,m=f._api,b=0;bd.get("hoverLayerThreshold")&&!nn.node&&!nn.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,p,-1/0),!0})}}function l(f,d,h,p){var v=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var m=f.childrenRef(),b=0;b0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Zh(y))return;if(y instanceof Wt&&Hrt(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var b=y.getTextContent(),_=y.getTextGuideLine();b&&(b.stateTransition=g),_&&(_.stateTransition=g)}y.__dirty&&a(y)}})}X5=function(f){return new(function(d){me(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(p){for(;p;){var v=p.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);p=p.parent}},h.prototype.enterEmphasis=function(p,v){_l(p,v),Si(f)},h.prototype.leaveEmphasis=function(p,v){wl(p,v),Si(f)},h.prototype.enterBlur=function(p){qJ(p),Si(f)},h.prototype.leaveBlur=function(p){uN(p),Si(f)},h.prototype.enterSelect=function(p){ZJ(p),Si(f)},h.prototype.leaveSelect=function(p){QJ(p),Si(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(Jee))(f)},Xte=function(f){function d(h,p){for(var v=0;v=0)){Z5.push(n);var i=Dte.wrapStageHandler(n,a);i.__prio=e,i.__raw=n,t.push(i)}}function YN(t,e){UD[t]=e}function Vst(t){RQ({createCanvas:t})}function nne(t,e,n){var r=Pte("registerMap");r&&r(t,e,n)}function Pst(t){var e=Pte("getMap");return e&&e(t)}var rne=jit;vc(FN,mot);vc(n2,bot);vc(n2,Sot);vc(FN,$ot);vc(n2,Iot);vc(Gte,fst);WN(tte);jN(mst,Eit);YN("default",_ot);Wo({type:Uf,event:Uf,update:Uf},Zn);Wo({type:hS,event:hS,update:hS},Zn);Wo({type:t0,event:t0,update:t0},Zn);Wo({type:vS,event:vS,update:vS},Zn);Wo({type:n0,event:n0,update:n0},Zn);UN("light",Aot);UN("dark",Oot);var Fst={},Q5=[],zst={registerPreprocessor:WN,registerProcessor:jN,registerPostInit:Qte,registerPostUpdate:Jte,registerUpdateLifecycle:r2,registerAction:Wo,registerCoordinateSystem:ene,registerLayout:tne,registerVisual:vc,registerTransform:rne,registerLoading:YN,registerMap:nne,registerImpl:hst,PRIORITY:Hte,ComponentModel:Zt,ComponentView:Vn,SeriesModel:An,ChartView:Cn,registerComponentModel:function(t){Zt.registerClass(t)},registerComponentView:function(t){Vn.registerClass(t)},registerSeriesModel:function(t){An.registerClass(t)},registerChartView:function(t){Cn.registerClass(t)},registerSubTypeDefaulter:function(t,e){Zt.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){gJ(t,e)}};function Ht(t){if(Ie(t)){W(t,function(e){Ht(e)});return}zt(Q5,t)>=0||(Q5.push(t),vt(t)&&(t={install:t}),t.install(zst))}function qp(t){return t==null?0:t.length||1}function J5(t){return t}var Gst=function(){function t(e,n,r,a,i,o){this._old=e,this._new=n,this._oldKeyGetter=r||J5,this._newKeyGetter=a||J5,this.context=i,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,n=this._new,r={},a=new Array(e.length),i=new Array(n.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(n,r,i,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},a={},i=[],o=[];this._initIndexMap(e,r,i,"_oldKeyGetter"),this._initIndexMap(n,a,o,"_newKeyGetter");for(var s=0;s1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var h=0;h1)for(var s=0;s30}var Zp=mt,Yl=Be,Xst=typeof Int32Array>"u"?Array:Int32Array,qst="e\0\0",ez=-1,Zst=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Qst=["_approximateExtent"],tz,G1,Qp,Jp,AT,H1,OT,Jst=function(){function t(e,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,a=!1;ine(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,r=e),r=r||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===eo;if(l&&!a.pure)for(var u=[],c=e;c0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,a=r[e];a||(a=r[e]={});var i=a[n];return i==null&&(i=this.getVisual(n),Ie(i)?i=i.slice():Zp(i)&&(i=Oe({},i)),a[n]=i),i},t.prototype.setItemVisual=function(e,n,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Zp(n)?Oe(a,n):a[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){Zp(e)?Oe(this._layout,e):this._layout[e]=n},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,n,r){this._itemLayouts[e]=r?Oe(this._itemLayouts[e]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,n){var r=this.hostModel&&this.hostModel.seriesIndex;wD(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){W(this._graphicEls,function(r,a){r&&e&&e.call(n,r,a)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Yl(this.dimensions,this._getDimInfo,this),this.hostModel)),AT(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];vt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(kx(arguments)))})},t.internalField=function(){tz=function(e){var n=e._invertedIndicesMap;W(n,function(r,a){var i=e._dimInfos[a],o=i.ordinalMeta,s=e._store;if(o){r=n[a]=new Xst(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),a[n]=l}}}(),t}();const fa=Jst;function elt(t,e){return yp(t,e).dimensions}function yp(t,e){RN(t)||(t=LN(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=ct(),i=[],o=nlt(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&lne(o),l=r===t.dimensionsDefine,u=l?sne(t):one(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var f=ct(c),d=new dte(o),h=0;h0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function nlt(t,e,n,r){var a=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return W(e,function(i){var o;mt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function rlt(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var alt=function(){function t(e){this.coordSysDims=[],this.axisMap=ct(),this.categoryAxisMap=ct(),this.coordSysName=e}return t}();function ilt(t){var e=t.get("coordinateSystem"),n=new alt(e),r=olt[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var olt={cartesian2d:function(t,e,n,r){var a=t.getReferringComponents("xAxis",lr).models[0],i=t.getReferringComponents("yAxis",lr).models[0];e.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),Xd(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),Xd(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var a=t.getReferringComponents("singleAxis",lr).models[0];e.coordSysDims=["single"],n.set("single",a),Xd(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var a=t.getReferringComponents("polar",lr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),Xd(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),Xd(o)&&(r.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var a=t.ecModel,i=a.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();W(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];n.set(c,u),Xd(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Xd(t){return t.get("type")==="category"}function une(t,e,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;slt(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,d;if(W(i,function(m,b){nt(m)&&(i[b]=m={name:m}),l&&!m.isExtraCoord&&(!r&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!a||a===m.coordDim)&&(c=m))}),c&&!r&&!u&&(r=!0),c){f="__\0ecstackresult_"+t.id,d="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,v=0;W(i,function(m){m.coordDim===h&&v++});var g={name:f,coordDim:h,coordDimIndex:v,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:v+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),y.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function slt(t){return!ine(t.schema)}function Cl(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function XN(t,e){return Cl(t,e)?t.getCalculationInfo("stackResultDimension"):e}function llt(t,e){var n=t.get("coordinateSystem"),r=hp.get(n),a;return e&&e.coordSysDims&&(a=Be(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=W_(l)}return o})),a||(a=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),a}function ult(t,e,n){var r,a;return n&&W(t,function(i,o){var s=i.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&r!=null&&(t[r].otherDims.itemName=0),r}function Ps(t,e,n){n=n||{};var r=e.getSourceManager(),a,i=!1;t?(i=!0,a=LN(t)):(a=r.getSource(),i=a.sourceFormat===eo);var o=ilt(e),s=llt(e,o),l=n.useEncodeDefaulter,u=vt(l)?l:l?Dt(Kee,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=yp(a,c),d=ult(f.dimensions,n.createInvertedIndices,o),h=i?null:r.getSharedDataStore(f),p=une(e,{schema:f,store:h}),v=new fa(f,e);v.setCalculationInfo(p);var g=d!=null&&clt(a)?function(y,m,b,_){return _===d?b:this.defaultDimValueGetter(y,m,b,_)}:null;return v.hasItemOption=!1,v.initData(i?a:h,null,g),v}function clt(t){if(t.sourceFormat===eo){var e=flt(t.data||[]);return!Ie(np(e))}}function flt(t){for(var e=0;en[1]&&(n[1]=e[1])},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,n){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(n)||(r[1]=n)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();$x(cne);const Ol=cne;var dlt=0,hlt=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++dlt}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&Be(r,vlt);return new t({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var n,r=this._needCollect;if(!nt(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,n;var a=this._getOrCreateMap();return n=a.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,a.set(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=ct(this.categories))},t}();function vlt(t){return mt(t)&&t.value!=null?t.value:t+""}const WD=hlt;function jD(t){return t.type==="interval"||t.type==="log"}function plt(t,e,n,r){var a={},i=t[1]-t[0],o=a.interval=eN(i/e,!0);n!=null&&or&&(o=a.interval=r);var s=a.intervalPrecision=fne(o),l=a.niceTickExtent=[Yn(Math.ceil(t[0]/o)*o,s),Yn(Math.floor(t[1]/o)*o,s)];return glt(l,t),a}function NT(t){var e=Math.pow(10,Nx(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Yn(n*e)}function fne(t){return To(t)+2}function nz(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function glt(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),nz(t,0,e),nz(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function a2(t,e){return t>=e[0]&&t<=e[1]}function i2(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function o2(t,e){return t*(e[1]-e[0])+e[0]}var dne=function(t){me(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new WD({})),Ie(a)&&(a=new WD({categories:Be(a,function(i){return mt(i)?i.value:i})})),r._ordinalMeta=a,r._extent=r.getSetting("extent")||[0,a.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:nt(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),a2(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),i2(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(o2(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,a=r[0];a<=r[1];)n.push({value:a}),a++;return n},e.prototype.getMinorTicks=function(n){},e.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o=0&&n=0&&n=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Ol);Ol.registerClass(dne);const qN=dne;var jc=Yn,hne=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return a2(n,this._extent)},e.prototype.normalize=function(n){return i2(n,this._extent)},e.prototype.scale=function(n){return o2(n,this._extent)},e.prototype.setExtent=function(n,r){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(r)||(a[1]=parseFloat(r))},e.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=fne(n)},e.prototype.getTicks=function(n){var r=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;a[0]l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(n?s.push({value:jc(c+r,o)}):s.push({value:a[1]})),s},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),a=[],i=this.getExtent(),o=1;oi[0]&&h0&&(i=i===null?s:Math.min(i,s))}n[r]=i}}return n}function gne(t){var e=blt(t),n=[];return W(t,function(r){var a=r.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=Je(r.get("barWidth"),s),v=Je(r.get("barMaxWidth"),s),g=Je(r.get("barMinWidth")||(_ne(r)?.5:1),s),y=r.get("barGap"),m=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:p,barMaxWidth:v,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:QN(i),stackId:ZN(r)})}),yne(n)}function yne(t){var e={};W(t,function(r,a){var i=r.axisKey,o=r.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[i]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var p=r.barCategoryGap;p!=null&&(s.categoryGap=p)});var n={};return W(e,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Yt(i).length;s=Math.max(35-l*4,15)+"%"}var u=Je(s,o),c=Je(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),W(i,function(y){var m=y.maxWidth,b=y.minWidth;if(y.width){var _=y.width;m&&(_=Math.min(_,m)),b&&(_=Math.max(_,b)),y.width=_,f-=_+c*_,d--}else{var _=h;m&&m<_&&(_=Math.min(m,f)),b&&b>_&&(_=b),_!==h&&(y.width=_,f-=_+c*_,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,v;W(i,function(y,m){y.width||(y.width=h),v=y,p+=y.width*(1+c)}),v&&(p-=v.width*c);var g=-p/2;W(i,function(y,m){n[a][m]=n[a][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),n}function Slt(t,e,n){if(t&&e){var r=t[QN(e)];return r!=null&&n!=null?r[ZN(n)]:r}}function mne(t,e){var n=pne(t,e),r=gne(n);W(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=ZN(a),u=r[QN(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function bne(t){return{seriesType:t,plan:vp(),reset:function(e){if(Sne(e)){var n=e.getData(),r=e.coordinateSystem,a=r.getBaseAxis(),i=r.getOtherAxis(a),o=n.getDimensionIndex(n.mapDimension(i.dim)),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=e.get("showBackground",!0),u=n.mapDimension(i.dim),c=n.getCalculationInfo("stackResultDimension"),f=Cl(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=_lt(a,i),p=_ne(e),v=e.get("barMinHeight")||0,g=c&&n.getDimensionIndex(c),y=n.getLayout("size"),m=n.getLayout("offset");return{progress:function(b,_){for(var x=b.count,w=p&&vs(x*3),C=p&&l&&vs(x*3),T=p&&vs(x),k=r.master.getRect(),E=d?k.width:k.height,M,D=_.getStore(),R=0;(M=b.next())!=null;){var A=D.get(f?g:o,M),V=D.get(s,M),P=h,N=void 0;f&&(N=+A-D.get(o,M));var I=void 0,L=void 0,$=void 0,U=void 0;if(d){var j=r.dataToPoint([A,V]);if(f){var Y=r.dataToPoint([N,V]);P=Y[0]}I=P,L=j[1]+m,$=j[0]-P,U=y,Math.abs($)>>1;t[a][1]a&&(this._approxInterval=a);var s=U1.length,l=Math.min(wlt(U1,this._approxInterval,0,s),s-1);this._interval=U1[l][1],this._minLevelUnit=U1[Math.max(l-1,0)][0]},e.prototype.parse=function(n){return rn(n)?n:+gi(n)},e.prototype.contain=function(n){return a2(this.parse(n),this._extent)},e.prototype.normalize=function(n){return i2(this.parse(n),this._extent)},e.prototype.scale=function(n){return o2(n,this._extent)},e.type="time",e}(Qu),U1=[["second",SN],["minute",_N],["hour",a0],["quarter-day",a0*6],["half-day",a0*12],["day",$i*1.2],["half-week",$i*3.5],["week",$i*7],["month",$i*31],["quarter",$i*95],["half-year",jF/2],["year",jF]];function xlt(t,e,n,r){var a=gi(e),i=gi(n),o=function(p){return YF(a,p,r)===YF(i,p,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(t){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 Clt(t,e){return t/=$i,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Tlt(t){var e=30*$i;return t/=e,t>6?6:t>3?3:t>2?2:1}function Elt(t){return t/=a0,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function rz(t,e){return t/=e?_N:SN,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function Mlt(t){return eN(t,!0)}function klt(t,e,n){var r=new Date(t);switch(Qh(e)){case"year":case"month":r[Nee(n)](0);case"day":r[$ee(n)](1);case"hour":r[Iee(n)](0);case"minute":r[Bee(n)](0);case"second":r[Vee(n)](0),r[Pee(n)](0)}return r.getTime()}function Dlt(t,e,n,r){var a=1e4,i=Aee,o=0;function s(E,M,D,R,A,V,P){for(var N=new Date(M),I=M,L=N[R]();I1&&V===0&&D.unshift({value:D[0].value-I})}}for(var V=0;V=r[0]&&m<=r[1]&&f++)}var b=(r[1]-r[0])/e;if(f>b*1.5&&d>b/1.5||(u.push(g),f>b||t===i[h]))break}c=[]}}}for(var _=mn(Be(u,function(E){return mn(E,function(M){return M.value>=r[0]&&M.value<=r[1]&&!M.notAdd})}),function(E){return E.length>0}),x=[],w=_.length-1,h=0;h<_.length;++h)for(var C=_[h],T=0;T0;)i*=10;var s=[Yn(Alt(r[0]/i)*i),Yn(Llt(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(n){s0.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return n=io(n)/io(this.base),a2(n,this._extent)},e.prototype.normalize=function(n){return n=io(n)/io(this.base),i2(n,this._extent)},e.prototype.scale=function(n){return n=o2(n,this._extent),W1(this.base,n)},e.type="log",e}(Ol),Cne=JN.prototype;Cne.getMinorTicks=s0.getMinorTicks;Cne.getLabel=s0.getLabel;function j1(t,e){return Rlt(t,To(e))}Ol.registerClass(JN);const Olt=JN;var Nlt=function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[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}},t.prototype.modifyDataMinMax=function(e,n){this[Ilt[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=$lt[e];this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),$lt={min:"_determinedMin",max:"_determinedMax"},Ilt={min:"_dataMin",max:"_dataMax"};function Tne(t,e,n){var r=t.rawExtentInfo;return r||(r=new Nlt(t,e,n),t.rawExtentInfo=r,r)}function K1(t,e){return e==null?null:Lv(e)?NaN:t.parse(e)}function Ene(t,e){var n=t.type,r=Tne(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var a=r.min,i=r.max,o=e.ecModel;if(o&&n==="time"){var s=pne("bar",o),l=!1;if(W(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=gne(s),c=Blt(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function Blt(t,e,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=Slt(r,n.axis);if(o===void 0)return{min:t,max:e};var s=1/0;W(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;W(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,f=1-(s+l)/i,d=c/f-c;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function ld(t,e){var n=e,r=Ene(t,n),a=r.extent,i=n.get("splitNumber");t instanceof Olt&&(t.base=n.get("logBase"));var o=t.type,s=n.get("interval"),l=o==="interval"||o==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:i,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function gm(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new qN({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new xne({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Ol.getClass(e)||Qu)}}function Vlt(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function ym(t){var e=t.getLabelModel().get("formatter"),n=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(r){return function(a,i){return t.scale.getFormattedLabel(a,i,r)}}(e):nt(e)?function(r){return function(a){var i=t.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):vt(e)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r(e3(t,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return t.scale.getLabel(r)}}function e3(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function Plt(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof qN?a=n.count():(r=n.getTicks(),a=r.length);var o=t.getLabelModel(),s=ym(t),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;ct[1]&&(t[1]=a[1])})}var mp=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function Glt(t){return Ps(null,t)}var Hlt={isDimensionStacked:Cl,enableDataStack:une,getStackedDimension:XN};function Ult(t,e){var n=e;e instanceof wn||(n=new wn(e));var r=gm(n);return r.setExtent(t[0],t[1]),ld(r,n),r}function Wlt(t){Jn(t,mp)}function jlt(t,e){return e=e||{},Mn(t,null,null,e.state!=="normal")}const Klt=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:elt,createList:Glt,createScale:Ult,createSymbol:ir,createTextStyle:jlt,dataStack:Hlt,enableHoverEmphasis:Ou,getECData:Rt,getLayoutRect:vr,mixinAxisModelCommonMethods:Wlt},Symbol.toStringTag,{value:"Module"}));var Ylt=1e-8;function iz(t,e){return Math.abs(t-e)a&&(r=o,a=l)}if(r)return qlt(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var a=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return W(o,function(s){s.type==="polygon"?oz(s.exterior,a,i,n):W(s.points,function(l){oz(l,a,i,n)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(i[0])&&isFinite(i[1])||(a[0]=a[1]=i[0]=i[1]=0),r=new Ft(a[0],a[1],i[0]-a[0],i[1]-a[1]),n||(this._rect=r),r},e.prototype.contain=function(n){var r=this.getBoundingRect(),a=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var i=0,o=a.length;i>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/n,l/n])}return r}function YD(t,e){return t=Qlt(t),Be(mn(t.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,a=n.geometry,i=[];switch(a.type){case"Polygon":var o=a.coordinates;i.push(new sz(o[0],o.slice(1)));break;case"MultiPolygon":W(a.coordinates,function(l){l[0]&&i.push(new sz(l[0],l.slice(1)))});break;case"LineString":i.push(new lz([a.coordinates]));break;case"MultiLineString":i.push(new lz(a.coordinates))}var s=new Dne(r[e||"name"],i,r.cp);return s.properties=r,s})}const Jlt=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:gD,asc:fi,getPercentWithPrecision:hnt,getPixelPrecision:QO,getPrecision:To,getPrecisionSafe:mJ,isNumeric:tN,isRadianAroundZero:sy,linearMap:yn,nice:eN,numericToNumber:Rs,parseDate:gi,quantile:dS,quantity:SJ,quantityExponent:Nx,reformIntervals:yD,remRadian:JO,round:Yn},Symbol.toStringTag,{value:"Module"})),eut=Object.freeze(Object.defineProperty({__proto__:null,format:vm,parse:gi},Symbol.toStringTag,{value:"Module"})),tut=Object.freeze(Object.defineProperty({__proto__:null,Arc:Gx,BezierCurve:cm,BoundingRect:Ft,Circle:Po,CompoundPath:Hx,Ellipse:zx,Group:Ct,Image:Fr,IncrementalDisplayable:mee,Line:Er,LinearGradient:ap,Polygon:Ba,Polyline:Pa,RadialGradient:dN,Rect:en,Ring:um,Sector:Ia,Text:Jt,clipPointsByRect:gN,clipRectByRect:xee,createIcon:op,extendPath:_ee,extendShape:See,getShapeClass:Ux,getTransform:Nu,initProps:$n,makeImage:vN,makePath:fm,mergePath:li,registerShape:Ji,resizePath:pN,updateProps:sn},Symbol.toStringTag,{value:"Module"})),nut=Object.freeze(Object.defineProperty({__proto__:null,addCommas:xN,capitalFirst:Kat,encodeHTML:Ea,formatTime:jat,formatTpl:TN,getTextRect:Uat,getTooltipMarker:Fee,normalizeCssArray:_d,toCamelCase:CN,truncateText:LJ},Symbol.toStringTag,{value:"Module"})),rut=Object.freeze(Object.defineProperty({__proto__:null,bind:at,clone:_t,curry:Dt,defaults:gt,each:W,extend:Oe,filter:mn,indexOf:zt,inherits:HO,isArray:Ie,isFunction:vt,isObject:mt,isString:nt,map:Be,merge:It,reduce:qi},Symbol.toStringTag,{value:"Module"}));var Sy=an();function aut(t){return t.type==="category"?out(t):lut(t)}function iut(t,e){return t.type==="category"?sut(t,e):{ticks:Be(t.scale.getTicks(),function(n){return n.value})}}function out(t){var e=t.getLabelModel(),n=Lne(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Lne(t,e){var n=Ane(t,"labels"),r=t3(e),a=One(n,r);if(a)return a;var i,o;return vt(r)?i=Ine(t,r):(o=r==="auto"?uut(t):r,i=$ne(t,o)),Nne(n,r,{labels:i,labelCategoryInterval:o})}function sut(t,e){var n=Ane(t,"ticks"),r=t3(e),a=One(n,r);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),vt(r))i=Ine(t,r,!0);else if(r==="auto"){var s=Lne(t,t.getLabelModel());o=s.labelCategoryInterval,i=Be(s.labels,function(l){return l.tickValue})}else o=r,i=$ne(t,o,!0);return Nne(n,r,{ticks:i,tickCategoryInterval:o})}function lut(t){var e=t.scale.getTicks(),n=ym(t);return{labels:Be(e,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function Ane(t,e){return Sy(t)[e]||(Sy(t)[e]=[])}function One(t,e){for(var n=0;n40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,h=0;l<=i[1];l+=s){var p=0,v=0,g=om(n({value:l}),e.font,"center","top");p=g.width*1.3,v=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,v,7)}var y=d/c,m=h/f;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var b=Math.max(0,Math.floor(Math.min(y,m))),_=Sy(t.model),x=t.getExtent(),w=_.lastAutoInterval,C=_.lastTickCount;return w!=null&&C!=null&&Math.abs(w-b)<=1&&Math.abs(C-o)<=1&&w>b&&_.axisExtent0===x[0]&&_.axisExtent1===x[1]?b=w:(_.lastTickCount=o,_.lastAutoInterval=b,_.axisExtent0=x[0],_.axisExtent1=x[1]),b}function fut(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function $ne(t,e,n){var r=ym(t),a=t.scale,i=a.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=Mne(t),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==i[0]&&v(i[0]);for(var p=u;p<=i[1];p+=l)v(p);h&&p-l!==i[1]&&v(i[1]);function v(g){var y={value:g};s.push(n?g:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function Ine(t,e,n){var r=t.scale,a=ym(t),i=[];return W(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&i.push(n?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var uz=[0,1],dut=function(){function t(e,n,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=n,this._extent=r||[0,0]}return t.prototype.contain=function(e){var n=this._extent,r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return e>=r&&e<=a},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return QO(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,n){var r=this._extent;r[0]=e,r[1]=n},t.prototype.dataToCoord=function(e,n){var r=this._extent,a=this.scale;return e=a.normalize(e),this.onBand&&a.type==="ordinal"&&(r=r.slice(),cz(r,a.count())),yn(e,uz,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),cz(r,a.count()));var i=yn(e,r,uz,n);return this.scale.scale(i)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=iut(this,n),a=r.ticks,i=Be(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return hut(this,i,o,e.clamp),i},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),n=e.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),a=Be(r,function(i){return Be(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(){return aut(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var a=Math.abs(e[1]-e[0]);return Math.abs(a)/r},t.prototype.calculateCategoryInterval=function(){return cut(this)},t}();function cz(t,e){var n=t[1]-t[0],r=e,a=n/r/2;t[0]+=a,t[1]-=a}function hut(t,e,n,r){var a=e.length;if(!t.onBand||n||!a)return;var i=t.getExtent(),o,s;if(a===1)e[0].coord=i[0],o=e[1]={coord:i[1]};else{var l=e[a-1].tickValue-e[0].tickValue,u=(e[a-1].coord-e[0].coord)/l;W(e,function(h){h.coord-=u/2});var c=t.scale.getExtent();s=1+c[1]-e[a-1].tickValue,o={coord:e[a-1].coord+u*s},e.push(o)}var f=i[0]>i[1];d(e[0].coord,i[0])&&(r?e[0].coord=i[0]:e.shift()),r&&d(i[0],e[0].coord)&&e.unshift({coord:i[0]}),d(i[1],o.coord)&&(r?o.coord=i[1]:e.pop()),r&&d(o.coord,i[1])&&e.push({coord:i[1]});function d(h,p){return h=Yn(h),p=Yn(p),f?h>p:ha&&(a+=eg);var h=Math.atan2(s,o);if(h<0&&(h+=eg),h>=r&&h<=a||h+eg>=r&&h+eg<=a)return l[0]=c,l[1]=f,u-n;var p=n*Math.cos(r)+t,v=n*Math.sin(r)+e,g=n*Math.cos(a)+t,y=n*Math.sin(a)+e,m=(p-o)*(p-o)+(v-s)*(v-s),b=(g-o)*(g-o)+(y-s)*(y-s);return m0){e=e/180*Math.PI,Mo.fromArray(t[0]),Dn.fromArray(t[1]),nr.fromArray(t[2]),Bt.sub(ps,Mo,Dn),Bt.sub(cs,nr,Dn);var n=ps.len(),r=cs.len();if(!(n<.001||r<.001)){ps.scale(1/n),cs.scale(1/r);var a=ps.dot(cs),i=Math.cos(e);if(i1&&Bt.copy(Ta,nr),Ta.toArray(t[1])}}}}function xut(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,Mo.fromArray(t[0]),Dn.fromArray(t[1]),nr.fromArray(t[2]),Bt.sub(ps,Dn,Mo),Bt.sub(cs,nr,Dn);var r=ps.len(),a=cs.len();if(!(r<.001||a<.001)){ps.scale(1/r),cs.scale(1/a);var i=ps.dot(e),o=Math.cos(n);if(i=l)Bt.copy(Ta,nr);else{Ta.scaleAndAdd(cs,s/Math.tan(Math.PI/2-c));var f=nr.x!==Dn.x?(Ta.x-Dn.x)/(nr.x-Dn.x):(Ta.y-Dn.y)/(nr.y-Dn.y);if(isNaN(f))return;f<0?Bt.copy(Ta,Dn):f>1&&Bt.copy(Ta,nr)}Ta.toArray(t[1])}}}}function dz(t,e,n,r){var a=n==="normal",i=a?t:t.ensureState(n);i.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();a?t.useStyle(s):i.style=s}function Cut(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var a=ol(r[0],r[1]),i=ol(r[1],r[2]);if(!a||!i){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var o=Math.min(a,i)*n,s=qg([],r[1],r[0],o/a),l=qg([],r[1],r[2],o/i),u=qg([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&i&&x(-c/o,0,o);var v=t[0],g=t[o-1],y,m;b(),y<0&&w(-y,.8),m<0&&w(m,.8),b(),_(y,m,1),_(m,y,-1),b(),y<0&&C(-y),m<0&&C(m);function b(){y=v.rect[e]-r,m=a-g.rect[e]-g.rect[n]}function _(T,k,E){if(T<0){var M=Math.min(k,-T);if(M>0){x(M*E,0,o);var D=M+T;D<0&&w(-D*E,1)}else w(-T*E,1)}}function x(T,k,E){T!==0&&(u=!0);for(var M=k;M0)for(var D=0;D0;D--){var P=E[D-1]*V;x(-P,D,o)}}}function C(T){var k=T<0?-1:1;T=Math.abs(T);for(var E=Math.ceil(T/(o-1)),M=0;M0?x(E,0,M+1):x(-E,o-M-1,o),T-=E,T<=0)return}return u}function Tut(t,e,n,r){return Fne(t,"x","width",e,n,r)}function zne(t,e,n,r){return Fne(t,"y","height",e,n,r)}function Gne(t){var e=[];t.sort(function(v,g){return g.priority-v.priority});var n=new Ft(0,0,0,0);function r(v){if(!v.ignore){var g=v.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}v.ignore=!0}for(var a=0;a=0&&r.attr(i.oldLayoutSelect),zt(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),sn(r,u,n,l)}else if(r.attr(u),!lp(r).valueAnimation){var f=Vt(r.style.opacity,1);r.style.opacity=0,$n(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};Y1(h,u,X1),Y1(h,r.states.select,X1)}if(r.states.emphasis){var p=i.oldLayoutEmphasis={};Y1(p,u,X1),Y1(p,r.states.emphasis,X1)}kee(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=kut(a),o=i.oldLayout,v={points:a.shape.points};o?(a.attr({shape:o}),sn(a,{shape:v},n)):(a.setShape(v),a.style.strokePercent=0,$n(a,{style:{strokePercent:1}},n)),i.oldLayout=v}},t}();const Rut=Dut;var VT=an();function Lut(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){var a=VT(n).labelManager;a||(a=VT(n).labelManager=new Rut),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,n,r){var a=VT(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var PT=Math.sin,FT=Math.cos,Hne=Math.PI,Yc=Math.PI*2,Aut=180/Hne,Out=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,n){this._add("M",e,n)},t.prototype.lineTo=function(e,n){this._add("L",e,n)},t.prototype.bezierCurveTo=function(e,n,r,a,i,o){this._add("C",e,n,r,a,i,o)},t.prototype.quadraticCurveTo=function(e,n,r,a){this._add("Q",e,n,r,a)},t.prototype.arc=function(e,n,r,a,i,o){this.ellipse(e,n,r,r,0,a,i,o)},t.prototype.ellipse=function(e,n,r,a,i,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=_u(f-Yc)||(c?u>=Yc:-u>=Yc),h=u>0?u%Yc:u%Yc+Yc,p=!1;d?p=!0:_u(f)?p=!1:p=h>=Hne==!!c;var v=e+r*FT(o),g=n+a*PT(o);this._start&&this._add("M",v,g);var y=Math.round(i*Aut);if(d){var m=1/this._p,b=(c?1:-1)*(Yc-m);this._add("A",r,a,y,1,+c,e+r*FT(o+b),n+a*PT(o+b)),m>.01&&this._add("A",r,a,y,0,+c,v,g)}else{var _=e+r*FT(s),x=n+a*PT(s);this._add("A",r,a,y,+p,+c,_,x)}},t.prototype.rect=function(e,n,r,a){this._add("M",e,n),this._add("l",r,0),this._add("l",0,a),this._add("l",-r,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,n,r,a,i,o,s,l,u){for(var c=[],f=this._p,d=1;d"}function Gut(t){return""}function a3(t,e){e=e||{};var n=e.newline?` `:"";function r(a){var i=a.children,o=a.tag,s=a.attrs,l=a.text;return zut(o,s)+(o!=="style"?Ea(l):l||"")+(i?""+n+Be(i,function(u){return r(u)}).join(n)+n:"")+Gut(o)}return r(t)}function Hut(t,e,n){n=n||{};var r=n.newline?` `:"",a=" {"+r,i=r+"}",o=Be(Yt(t),function(l){return l+a+Be(Yt(t[l]),function(u){return u+":"+t[l][u]+";"}).join(r)+i}).join(r),s=Be(Yt(e),function(l){return"@keyframes "+l+a+Be(Yt(e[l]),function(u){return u+a+Be(Yt(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+i}).join(r)+i}).join(r);return!o&&!s?"":[""].join(r)}function qD(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function vz(t,e,n,r){return Mr("svg","root",{width:t,height:e,xmlns:Wne,"xmlns:xlink":jne,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+t+" "+e:!1},n)}var pz={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},tf="transform-origin";function Uut(t,e,n){var r=Oe({},t.shape);Oe(r,e),t.buildPath(n,r);var a=new Une;return a.reset(sJ(t)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function Wut(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[tf]=n+"px "+r+"px")}var jut={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Yne(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Kut(t,e,n){var r=t.shape.paths,a={},i,o;if(W(r,function(l){var u=qD(n.zrId);u.animation=!0,s2(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Yt(c),h=d.length;if(h){o=d[h-1];var p=c[o];for(var v in p){var g=p[v];a[v]=a[v]||{d:""},a[v].d+=g.d||""}for(var y in f){var m=f[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=Yne(a,n);return i.replace(o,s)}}function gz(t){return nt(t)?pz[t]?"cubic-bezier("+pz[t]+")":KO(t)?t:"":""}function s2(t,e,n,r){var a=t.animators,i=a.length,o=[];if(t instanceof Hx){var s=Kut(t,e,n);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u0}).length){var ne=Yne(C,n);return ne+" "+m[0]+" both"}}for(var g in l){var s=v(l[g]);s&&o.push(s)}if(o.length){var y=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+y]={animation:o.join(",")},e.class=y}}var _y=Math.round;function Xne(t){return t&&nt(t.src)}function qne(t){return t&&vt(t.toDataURL)}function i3(t,e,n,r){Vut(function(a,i){var o=a==="fill"||a==="stroke";o&&oJ(i)?Qne(e,t,a,r):o&&XO(i)?Jne(n,t,a,r):t[a]=i},e,n,!1),ect(n,t,r)}function yz(t){return _u(t[0]-1)&&_u(t[1])&&_u(t[2])&&_u(t[3]-1)}function Yut(t){return _u(t[4])&&_u(t[5])}function o3(t,e,n){if(e&&!(Yut(e)&&yz(e))){var r=n?10:1e4;t.transform=yz(e)?"translate("+_y(e[4]*r)/r+" "+_y(e[5]*r)/r+")":Mtt(e)}}function mz(t,e,n){for(var r=t.points,a=[],i=0;i"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";va(d,g),va(h,g)}else if(d==null||h==null){var y=function(E,M){if(E){var D=E.elm,R=d||M.width,A=h||M.height;E.tag==="pattern"&&(u?(A=1,R/=i.width):c&&(R=1,A/=i.height)),E.attrs.width=R,E.attrs.height=A,D&&(D.setAttribute("width",R),D.setAttribute("height",A))}},m=iN(p,null,t,function(E){l||y(w,E),y(f,E)});m&&m.width&&m.height&&(d=d||m.width,h=h||m.height)}f=Mr("image","img",{href:p,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=_t(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var b,_;l?b=_=1:u?(_=1,b=o.width/i.width):c?(b=1,_=o.height/i.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),_!=null&&!isNaN(_)&&(o.height=_);var x=lJ(a);x&&(o.patternTransform=x);var w=Mr("pattern","",o,[f]),C=a3(w),T=r.patternCache,k=T[C];k||(k=r.zrId+"-p"+r.patternIdx++,T[C]=k,o.id=k,w=r.defs[k]=Mr("pattern",k,o,[f])),e[n]=Ax(k)}}function tct(t,e,n){var r=n.clipPathCache,a=n.defs,i=r[t.id];if(!i){i=n.zrId+"-c"+n.clipPathIdx++;var o={id:i};r[t.id]=i,a[i]=Mr("clipPath",i,o,[Zne(t,n)])}e["clip-path"]=Ax(i)}function _z(t){return document.createTextNode(t)}function pf(t,e,n){t.insertBefore(e,n)}function wz(t,e){t.removeChild(e)}function xz(t,e){t.appendChild(e)}function ere(t){return t.parentNode}function tre(t){return t.nextSibling}function zT(t,e){t.textContent=e}var Cz=58,nct=120,rct=Mr("","");function ZD(t){return t===void 0}function as(t){return t!==void 0}function act(t,e,n){for(var r={},a=e;a<=n;++a){var i=t[a].key;i!==void 0&&(r[i]=a)}return r}function Eg(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function wy(t){var e,n=t.children,r=t.tag;if(as(r)){var a=t.elm=Kne(r);if(s3(rct,t),Ie(n))for(e=0;ei?(p=n[l+1]==null?null:n[l+1].elm,nre(t,p,n,a,l)):X_(t,e,r,i))}function gh(t,e){var n=e.elm=t.elm,r=t.children,a=e.children;t!==e&&(s3(t,e),ZD(e.text)?as(r)&&as(a)?r!==a&&ict(n,r,a):as(a)?(as(t.text)&&zT(n,""),nre(n,null,a,0,a.length-1)):as(r)?X_(n,r,0,r.length-1):as(t.text)&&zT(n,""):t.text!==e.text&&(as(r)&&X_(n,r,0,r.length-1),zT(n,e.text)))}function oct(t,e){if(Eg(t,e))gh(t,e);else{var n=t.elm,r=ere(n);wy(e),r!==null&&(pf(r,e.elm,tre(n)),X_(r,[t],0,0))}return e}var sct=0,lct=function(){function t(e,n,r){if(this.type="svg",this.refreshHover=Tz(),this.configLayer=Tz(),this.storage=n,this._opts=r=Oe({},r),this.root=e,this._id="zr"+sct++,this._oldVNode=vz(r.width,r.height),e&&!r.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=Kne("svg");s3(null,this._oldVNode),a.appendChild(i),e.appendChild(a)}this.resize(r.width,r.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",oct(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return Sz(e,qD(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=qD(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=uct(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=Mr("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=Be(Yt(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(Mr("defs","defs",{},u)),e.animation){var c=Hut(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=Mr("style","stl",{},[],c);o.push(f)}}return vz(r,a,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},a3(this.renderToVNode({animation:Vt(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Vt(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,n,r){for(var a=e.length,i=[],o=0,s,l,u=0,c=0;c=0&&!(d&&l&&d[v]===l[v]);v--);for(var g=p-1;g>v;g--)o--,s=i[o-1];for(var y=v+1;y=s)}}for(var f=this.__startIndex;f15)break}}A.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var E=h.dpr,M=0;M0&&e>a[0]){for(l=0;le);l++);s=r[a[l]]}if(a.splice(l+1,0,e),r[e]=n,!n.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(n.dom,u.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.appendChild(n.dom);n.__painter=this}},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,a=0;a0?q1:0),this._needsManuallyCompositing),c.__builtin__||Ex("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),i=c),a.__dirty&si&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,W(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?It(r[e],n,!0):r[e]=n;for(var a=0;a-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(An);const Sct=bct;function $v(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=Ov(t,e,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o=0&&r.push(e[i])}return r.join(" ")}var _ct=function(t){me(e,t);function e(n,r,a,i){var o=t.call(this)||this;return o.updateData(n,r,a,i),o}return e.prototype._createSymbol=function(n,r,a,i,o){this.removeAll();var s=ir(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=wct,this._symbolType=n,this.add(s)},e.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){_l(this.childAt(0))},e.prototype.downplay=function(){wl(this.childAt(0))},e.prototype.setZ=function(n,r){var a=this.childAt(0);a.zlevel=n,a.z=r},e.prototype.setDraggable=function(n,r){var a=this.childAt(0);a.draggable=n,a.cursor=!r&&n?"move":a.cursor},e.prototype.updateData=function(n,r,a,i){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=e.getSymbolSize(n,r),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):sn(d,h,s,r),Fo(d)}if(this._updateCommon(n,r,l,a,i),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,$n(d,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(n,r,a,i,o){var s=this.childAt(0),l=n.hostModel,u,c,f,d,h,p,v,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,v=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||n.hasItemOption){var m=i&&i.itemModel?i.itemModel:n.getItemModel(r),b=m.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),d=b.get("focus"),h=b.get("blurScope"),p=b.get("disabled"),v=Rr(m),g=b.getShallow("scale"),y=m.getShallow("cursor")}var _=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var x=wd(n.getItemVisual(r,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var w=n.getItemVisual(r,"style"),C=w.fill;if(s instanceof Fr){var T=s.style;s.useStyle(Oe({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(Oe({},w)):s.useStyle(w),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var k=n.getItemVisual(r,"liftZ"),E=this._z2;k!=null?E==null&&(this._z2=s.z2,s.z2+=k):E!=null&&(s.z2=E,this._z2=null);var M=o&&o.useNameLabel;Jr(s,v,{labelFetcher:l,labelDataIndex:r,defaultText:D,inheritColor:C,defaultOpacity:w.opacity});function D(V){return M?n.getName(V):$v(n,V)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var A=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;R.scaleX=this._sizeX*A,R.scaleY=this._sizeY*A,this.setSymbolScale(1),qn(this,d,h,p)},e.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},e.prototype.fadeOut=function(n,r,a){var i=this.childAt(0),o=Rt(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&qu(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();qu(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},e.getSymbolSize=function(n,r){return gp(n.getItemVisual(r,"symbolSize"))},e}(Ct);function wct(t,e){this.parent.drift(t,e)}const mm=_ct;function HT(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&t.getItemVisual(n,"symbol")!=="none"}function kz(t){return t!=null&&!mt(t)&&(t={isIgnore:t}),t||{}}function Dz(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Rr(e),cursorStyle:e.get("cursor")}}var xct=function(){function t(e){this.group=new Ct,this._SymbolCtor=e||mm}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=kz(n);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=Dz(e),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return e.getItemLayout(f)};i||r.removeAll(),e.diff(i).add(function(f){var d=c(f);if(HT(e,d,f,n)){var h=new o(e,f,l,u);h.setPosition(d),e.setItemGraphicEl(f,h),r.add(h)}}).update(function(f,d){var h=i.getItemGraphicEl(d),p=c(f);if(!HT(e,p,f,n)){r.remove(h);return}var v=e.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==v)r.remove(h),h=new o(e,f,l,u),h.setPosition(p);else{h.updateData(e,f,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):sn(h,y,a)}r.add(h),e.setItemGraphicEl(f,h)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(){var e=this,n=this._data;n&&n.eachItemGraphicEl(function(r,a){var i=e._getSymbolPoint(a);r.setPosition(i),r.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Dz(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=kz(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function ire(t,e,n,r){var a=NaN;t.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(a)&&(a=t.valueStart);var i=t.baseDataOffset,o=[];return o[i]=n.get(t.baseDim,r),o[1-i]=a,e.dataToPoint(o)}function Tct(t,e){var n=[];return e.diff(t).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,a){n.push({cmd:"=",idx:a,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Ect(t,e,n,r,a,i,o,s){for(var l=Tct(t,e),u=[],c=[],f=[],d=[],h=[],p=[],v=[],g=are(a,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],b=0;b=a||v<0)break;if(Kf(y,m)){if(l){v+=i;continue}break}if(v===n)t[i>0?"moveTo":"lineTo"](y,m),f=y,d=m;else{var b=y-u,_=m-c;if(b*b+_*_<.5){v+=i;continue}if(o>0){for(var x=v+i,w=e[x*2],C=e[x*2+1];w===y&&C===m&&g=r||Kf(w,C))h=y,p=m;else{E=w-u,M=C-c;var A=y-u,V=w-y,P=m-c,N=C-m,I=void 0,L=void 0;if(s==="x"){I=Math.abs(A),L=Math.abs(V);var $=E>0?1:-1;h=y-$*I*o,p=m,D=y+$*L*o,R=m}else if(s==="y"){I=Math.abs(P),L=Math.abs(N);var U=M>0?1:-1;h=y,p=m-U*I*o,D=y,R=m+U*L*o}else I=Math.sqrt(A*A+P*P),L=Math.sqrt(V*V+N*N),k=L/(L+I),h=y-E*o*(1-k),p=m-M*o*(1-k),D=y+E*o*k,R=m+M*o*k,D=Xl(D,ql(w,y)),R=Xl(R,ql(C,m)),D=ql(D,Xl(w,y)),R=ql(R,Xl(C,m)),E=D-y,M=R-m,h=y-E*I/L,p=m-M*I/L,h=Xl(h,ql(u,y)),p=Xl(p,ql(c,m)),h=ql(h,Xl(u,y)),p=ql(p,Xl(c,m)),E=y-h,M=m-p,D=y+E*L/I,R=m+M*L/I}t.bezierCurveTo(f,d,h,p,y,m),f=D,d=R}else t.lineTo(y,m)}u=y,c=m,v+=i}return g}var ore=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),Mct=function(t){me(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ore},e.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&Kf(a[o*2-2],a[o*2-1]);o--);for(;i=0){var _=u?(p-l)*b+l:(h-s)*b+s;return u?[n,_]:[_,n]}s=h,l=p;break;case o.C:h=i[f++],p=i[f++],v=i[f++],g=i[f++],y=i[f++],m=i[f++];var x=u?x_(s,h,v,y,n,c):x_(l,p,g,m,n,c);if(x>0)for(var w=0;w=0){var _=u?xr(l,p,g,m,C):xr(s,h,v,y,C);return u?[n,_]:[_,n]}}s=y,l=m;break}}},e}(Wt),kct=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(ore),sre=function(t){me(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new kct},e.prototype.buildPath=function(n,r){var a=r.points,i=r.stackedOnPoints,o=0,s=a.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Kf(a[s*2-2],a[s*2-1]);s--);for(;oe){i?n.push(o(i,l,e)):a&&n.push(o(a,l,0),o(a,l,e));break}else a&&(n.push(o(a,l,0)),a=null),n.push(l),i=l}return n}function Lct(t,e,n){var r=t.getVisual("visualMeta");if(!(!r||!r.length||!t.count())&&e.type==="cartesian2d"){for(var a,i,o=r.length-1;o>=0;o--){var s=t.getDimensionInfo(r[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=r[o];break}}if(i){var l=e.getAxis(a),u=Be(i.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Rct(u,a==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,v=d[0].coord-p,g=d[h-1].coord+p,y=g-v;if(y<.001)return"transparent";W(d,function(b){b.offset=(b.coord-v)/y}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var m=new ap(0,0,0,0,d,!0);return m[a]=v,m[a+"2"]=g,m}}}function Act(t,e,n){var r=t.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&Oct(i,e))){var o=e.mapDimension(i.dim),s={};return W(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Oct(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var a=e.count(),i=Math.max(1,Math.round(a/5)),o=0;or)return!1;return!0}function Nct(t,e){return isNaN(t)||isNaN(e)}function $ct(t){for(var e=t.length/2;e>0&&Nct(t[e*2-2],t[e*2-1]);e--);return e-1}function Nz(t,e){return[t[e*2],t[e*2+1]]}function Ict(t,e,n){for(var r=t.length/2,a=n==="x"?0:1,i,o,s=0,l=-1,u=0;u=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function cre(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<$a.length;e++)if(t.get([$a[e],"endLabel","show"]))return!0;return!1}function UT(t,e,n,r){if(xd(e,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=cre(r)?function(h,p){t._endLabelOnDuring(h,p,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),c=lre(e,n,r,function(){var h=t._endLabel;h&&n&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return ure(e,n,r)}function Bct(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),a=n.inverse,i=r?a?"right":"left":"center",o=r?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||i,verticalAlign:t.get("verticalAlign")||o}}}var Vct=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=new Ct,r=new bm;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n},e.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem,s=this.group,l=n.getData(),u=n.getModel("lineStyle"),c=n.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,p=this._symbolDraw,v=this._polyline,g=this._polygon,y=this._lineGroup,m=!r.ssr&&n.isAnimationEnabled(),b=!c.isEmpty(),_=c.get("origin"),x=are(o,l,_),w=b&&Dct(o,l,x),C=n.get("showSymbol"),T=n.get("connectNulls"),k=C&&!d&&Act(n,l,o),E=this._data;E&&E.eachItemGraphicEl(function(re,ne){re.__temp&&(s.remove(re),E.setItemGraphicEl(ne,null))}),C||p.remove(),s.add(y);var M=d?!1:n.get("step"),D;o&&o.getArea&&n.get("clip",!0)&&(D=o.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var R=Lct(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(v&&h.type===o.type&&M===this._step))C&&p.updateData(l,{isIgnore:k,clipShape:D,disableAnimation:!0,getSymbolPoint:function(re){return[f[re*2],f[re*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,D),M&&(f=Zl(f,o,M,T),w&&(w=Zl(w,o,M,T))),v=this._newPolyline(f),b?g=this._newPolygon(f,w):g&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,sd(R)),y.setClipPath(UT(this,o,!0,n));else{b&&!g?g=this._newPolygon(f,w):g&&!b&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,sd(R));var A=y.getClipPath();if(A){var V=UT(this,o,!1,n);$n(A,{shape:V.shape},n)}else y.setClipPath(UT(this,o,!0,n));C&&p.updateData(l,{isIgnore:k,clipShape:D,disableAnimation:!0,getSymbolPoint:function(re){return[f[re*2],f[re*2+1]]}}),(!Rz(this._stackedOnPoints,w)||!Rz(this._points,f))&&(m?this._doUpdateAnimation(l,w,o,a,M,_,T):(M&&(f=Zl(f,o,M,T),w&&(w=Zl(w,o,M,T))),v.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:w})))}var P=n.getModel("emphasis"),N=P.get("focus"),I=P.get("blurScope"),L=P.get("disabled");if(v.useStyle(gt(u.getLineStyle(),{fill:"none",stroke:R,lineJoin:"bevel"})),Qr(v,n,"lineStyle"),v.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var $=v.getState("emphasis").style;$.lineWidth=+v.style.lineWidth+1}Rt(v).seriesIndex=n.seriesIndex,qn(v,N,I,L);var U=Oz(n.get("smooth")),j=n.get("smoothMonotone");if(v.setShape({smooth:U,smoothMonotone:j,connectNulls:T}),g){var Y=l.getCalculationInfo("stackedOnSeries"),oe=0;g.useStyle(gt(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Y&&(oe=Oz(Y.get("smooth"))),g.setShape({smooth:U,stackedOnSmooth:oe,smoothMonotone:j,connectNulls:T}),Qr(g,n,"areaStyle"),Rt(g).seriesIndex=n.seriesIndex,qn(g,N,I,L)}var te=function(re){i._changePolyState(re)};l.eachItemGraphicEl(function(re){re&&(re.onHoverStateChange=te)}),this._polyline.onHoverStateChange=te,this._data=l,this._coordSys=o,this._stackedOnPoints=w,this._points=f,this._step=M,this._valueOrigin=_,n.get("triggerLineEvent")&&(this.packEventData(n,v),g&&this.packEventData(n,g))},e.prototype.packEventData=function(n,r){Rt(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},e.prototype.highlight=function(n,r,a,i){var o=n.getData(),s=ad(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,h=n.get("z")||0;u=new mm(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Cn.prototype.highlight.call(this,n,r,a,i)},e.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=ad(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Cn.prototype.downplay.call(this,n,r,a,i)},e.prototype._changePolyState=function(n){var r=this._polygon;D_(this._polyline,n),r&&D_(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Mct({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(n,r){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new sre({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(n,r,a){var i,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):r.type==="polar"&&(i=s.dim==="angle",o=!0);var u=n.hostModel,c=u.get("animationDuration");vt(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=vt(f)?f(null):f;n.eachItemGraphicEl(function(h,p){var v=h;if(v){var g=[h.x,h.y],y=void 0,m=void 0,b=void 0;if(a)if(o){var _=a,x=r.pointToCoord(g);i?(y=_.startAngle,m=_.endAngle,b=-x[1]/180*Math.PI):(y=_.r0,m=_.r,b=x[0])}else{var w=a;i?(y=w.x,m=w.x+w.width,b=h.x):(y=w.y+w.height,m=w.y,b=h.y)}var C=m===y?0:(b-y)/(m-y);l&&(C=1-C);var T=vt(f)?f(p):c*C+d,k=v.getSymbolPath(),E=k.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:T}),k.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(cre(n)){var o=n.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Jt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=$ct(l);c>=0&&(Jr(s,Rr(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?rre(o,h):$v(o,f)},enableTextSetter:!0},Bct(i,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(n,r,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),p=s.get("precision"),v=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,b=r.shape,_=m?y?b.x:b.y+b.height:y?b.x+b.width:b.y,x=(y?v:0)*(m?-1:1),w=(y?0:-v)*(m?-1:1),C=y?"x":"y",T=Ict(f,_,C),k=T.range,E=k[1]-k[0],M=void 0;if(E>=1){if(E>1&&!h){var D=Nz(f,k[0]);u.attr({x:D[0]+x,y:D[1]+w}),o&&(M=d.getRawValue(k[0]))}else{var D=c.getPointOn(_,C);D&&u.attr({x:D[0]+x,y:D[1]+w});var R=d.getRawValue(k[0]),A=d.getRawValue(k[1]);o&&(M=kJ(a,p,R,A,T.t))}i.lastFrameIndex=k[0]}else{var V=n===1||i.lastFrameIndex>0?k[0]:0,D=Nz(f,V);o&&(M=d.getRawValue(V)),u.attr({x:D[0]+x,y:D[1]+w})}if(o){var P=lp(u);typeof P.setLabelText=="function"&&P.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=Ect(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,v=d.next,g=d.stackedOnNext;if(o&&(h=Zl(d.current,a,o,l),p=Zl(d.stackedOnCurrent,a,o,l),v=Zl(d.next,a,o,l),g=Zl(d.stackedOnNext,a,o,l)),Az(h,v)>3e3||c&&Az(p,g)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var y={shape:{points:v}};d.current!==h&&(y.shape.__points=d.next),u.stopAnimation(),sn(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),sn(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],b=d.status,_=0;_e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;nt(i)?p=Fct[i]:vt(i)&&(p=i),p&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,p,zct))}}}}}function Gct(t){t.registerChartView(Pct),t.registerSeriesModel(Sct),t.registerLayout(Sm("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var n=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,fre("line"))}var dre=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return Ps(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(n),s=i.dataToPoint(o);if(a)W(i.getAxes(),function(d,h){if(d.type==="category"&&r!=null){var p=d.getTicksCoords(),v=o[h],g=r[h]==="x1"||r[h]==="y1";if(g&&(v+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,b=1,_=0;_v){m=(x+y)/2;break}_===1&&(b=w-p[0].tickValue)}m==null&&(y?y&&(m=p[p.length-1].coord):m=p[0].coord),s[h]=d.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(An);An.registerClass(dre);const q_=dre;var Hct=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(){return Ps(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},e.prototype.brushSelector=function(n,r,a){return a.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=hc(q_.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}),e}(q_);const Uct=Hct;var Wct=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),jct=function(t){me(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new Wct},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,h=Math.PI*2,p=d?f-cMath.PI/2&&cs)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(n,r){for(var a=r.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(n.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(n,r,a,i){if(this._isOrderChangedWithinSameData(n,r,a)){var o=this._dataSort(n,a,r);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(n,r,a){var i=r.baseAxis,o=this._dataSort(n,i,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(n){var r=this.group,a=this._data;n&&n.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){dy(i,n,Rt(i).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Cn),$z={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var a=t.x+t.width,i=t.y+t.height,o=WT(e.x,t.x),s=jT(e.x+e.width,a),l=WT(e.y,t.y),u=jT(e.y+e.height,i),c=sa?s:o,e.y=f&&l>i?u:l,e.width=c?0:s-o,e.height=f?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var a=jT(e.r,t.r),i=WT(e.r0,t.r0);e.r=a,e.r0=i;var o=a-i<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},Iz={cartesian2d:function(t,e,n,r,a,i,o,s,l){var u=new en({shape:Oe({},r),z2:1});if(u.__dataIndex=n,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(t,e,n,r,a,i,o,s,l){var u=!a&&l?Z_:Ia,c=new u({shape:r,z2:1});c.name="item";var f=hre(a);if(c.calculateTextPosition=Kct(f,{isRoundCap:u===Z_}),i){var d=c.shape,h=a?"r":"endAngle",p={};d[h]=a?r.r0:r.startAngle,p[h]=r[h],(s?sn:$n)(c,{shape:p},i)}return c}};function Zct(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function Bz(t,e,n,r,a,i,o,s){var l,u;i?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?sn:$n)(n,{shape:l},e,a,null);var c=e?t.baseAxis.model:null;(o?sn:$n)(n,{shape:u},c,a)}function Vz(t,e){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function eft(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function hre(t){return function(e){var n=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(t)}function Fz(t,e,n,r,a,i,o,s){var l=e.getItemVisual(n,"style");if(s){if(!i.get("roundCap")){var c=t.shape,f=Of(r.getModel("itemStyle"),c,!0);Oe(c,f),t.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var d=r.getShallow("cursor");d&&t.attr("cursor",d);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=Rr(r);Jr(t,p,{labelFetcher:i,labelDataIndex:n,defaultText:$v(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var g=r.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,Yct(t,g==="outside"?h:g,hre(o),r.get(["label","rotate"]))}Mee(v,p,i.getRawValue(n),function(m){return rre(e,m)});var y=r.getModel(["emphasis"]);qn(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),Qr(t,r),eft(a)&&(t.style.fill="none",t.style.stroke="none",W(t.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function tft(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,a,i)}var nft=function(){function t(){}return t}(),zz=function(t){me(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new nft},e.prototype.buildPath=function(n,r){for(var a=r.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?n:null},30,!1);function rft(t,e,n){for(var r=t.baseDimIdx,a=1-r,i=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,f=i.length/3;c=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function vre(t,e,n){if(xd(n,"cartesian2d")){var r=e,a=n.getArea();return{x:t?r.x:a.x,y:t?a.y:r.y,width:t?r.width:a.width,height:t?a.height:r.height}}else{var a=n.getArea(),i=e;return{cx:a.cx,cy:a.cy,r0:t?a.r0:i.r0,r:t?a.r:i.r,startAngle:t?i.startAngle:0,endAngle:t?i.endAngle:Math.PI*2}}}function aft(t,e,n){var r=t.type==="polar"?Ia:en;return new r({shape:vre(e,n,t),silent:!0,z2:0})}const ift=qct;function oft(t){t.registerChartView(ift),t.registerSeriesModel(Uct),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Dt(mne,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bne("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,fre("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})})}var eb=Math.PI*2,Uz=Math.PI/180;function pre(t,e){return vr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gre(t,e){var n=pre(t,e),r=t.get("center"),a=t.get("radius");Ie(a)||(a=[0,a]);var i=Je(n.width,e.getWidth()),o=Je(n.height,e.getHeight()),s=Math.min(i,o),l=Je(a[0],s/2),u=Je(a[1],s/2),c,f,d=t.coordinateSystem;if(d){var h=d.dataToPoint(r);c=h[0]||0,f=h[1]||0}else Ie(r)||(r=[r,r]),c=Je(r[0],i)+n.x,f=Je(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function sft(t,e,n){e.eachSeriesByType(t,function(r){var a=r.getData(),i=a.mapDimension("value"),o=pre(r,n),s=gre(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*Uz,h=r.get("minAngle")*Uz,p=0;a.each(i,function(E){!isNaN(E)&&p++});var v=a.getSum(i),g=Math.PI/(v||p)*2,y=r.get("clockwise"),m=r.get("roseType"),b=r.get("stillShowZeroSum"),_=a.getDataExtent(i);_[0]=0;var x=eb,w=0,C=d,T=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(E,M){var D;if(isNaN(E)){a.setItemLayout(M,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:f,r:m?NaN:c});return}m!=="area"?D=v===0&&b?g:E*g:D=eb/p,Dn?y:g,x=Math.abs(b.label.y-n);if(x>=_.maxY){var w=b.label.x-e-b.len2*a,C=r+b.len,T=Math.abs(w)t.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var v=r.getBoundingRect();i.width=v.width;var g=(r.style.margin||0)+2.1;i.height=v.height+g,i.y-=(i.height-f)/2}}}function KT(t){return t.position==="center"}function cft(t){var e=t.getData(),n=[],r,a,i=!1,o=(t.get("minShowLabelAngle")||0)*lft,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(w){w.ignore=!0}function p(w){if(!w.ignore)return!0;for(var C in w.states)if(w.states[C].ignore===!1)return!0;return!1}e.each(function(w){var C=e.getItemGraphicEl(w),T=C.shape,k=C.getTextContent(),E=C.getTextGuideLine(),M=e.getItemModel(w),D=M.getModel("label"),R=D.get("position")||M.get(["emphasis","label","position"]),A=D.get("distanceToLabelLine"),V=D.get("alignTo"),P=Je(D.get("edgeDistance"),u),N=D.get("bleedMargin"),I=M.getModel("labelLine"),L=I.get("length");L=Je(L,u);var $=I.get("length2");if($=Je($,u),Math.abs(T.endAngle-T.startAngle)0?"right":"left":j>0?"left":"right"}var ye=Math.PI,we=0,be=D.get("rotate");if(rn(be))we=be*(ye/180);else if(R==="center")we=0;else if(be==="radial"||be===!0){var Me=j<0?-U+ye:-U;we=Me}else if(be==="tangential"&&R!=="outside"&&R!=="outer"){var Se=Math.atan2(j,Y);Se<0&&(Se=ye*2+Se);var xe=Y>0;xe&&(Se=ye+Se),we=Se-ye}if(i=!!we,k.x=oe,k.y=te,k.rotation=we,k.setStyle({verticalAlign:"middle"}),J){k.setStyle({align:ne});var Ve=k.states.select;Ve&&(Ve.x+=k.x,Ve.y+=k.y)}else{var ke=k.getBoundingRect().clone();ke.applyTransform(k.getComputedTransform());var ge=(k.style.margin||0)+2.1;ke.y-=ge/2,ke.height+=ge,n.push({label:k,labelLine:E,position:R,len:L,len2:$,minTurnAngle:I.get("minTurnAngle"),maxSurfaceAngle:I.get("maxSurfaceAngle"),surfaceNormal:new Bt(j,Y),linePoints:re,textAlign:ne,labelDistance:A,labelAlignTo:V,edgeDistance:P,bleedMargin:N,rect:ke,unconstrainedWidth:ke.width,labelStyleWidth:k.style.width})}C.setTextConfig({inside:J})}}),!i&&t.get("avoidLabelOverlap")&&uft(n,r,a,l,u,d,c,f);for(var v=0;v0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=i.r0}},e.type="pie",e}(Cn);const hft=dft;function bp(t,e,n){e=Ie(e)&&{coordDimensions:e}||Oe({encodeDefine:t.getEncode()},e);var r=t.getSource(),a=yp(r,e).dimensions,i=new fa(a,t);return i.initData(r,n),i}var vft=function(){function t(e,n){this._getDataWithEncodedVisual=e,this._getRawData=n}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var n=this._getRawData();return n.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var n=this._getDataWithEncodedVisual();return n.indexOfName(e)},t.prototype.getItemVisual=function(e,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,n)},t}();const wm=vft;var pft=an(),gft=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new wm(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return bp(this,{coordDimensions:["value"],encodeDefaulter:Dt(MN,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),a=pft(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=bJ(o,r.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,n);return s.percent=i[n]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(n){rd(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},e.type="series.pie",e.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"},e}(An);const yft=gft;function mft(t){return{seriesType:t,reset:function(e,n){var r=e.getData();r.filterSelf(function(a){var i=r.mapDimension("value"),o=r.get(i,a);return!(rn(o)&&!isNaN(o)&&o<0)})}}}function bft(t){t.registerChartView(hft),t.registerSeriesModel(yft),Ate("pie",t.registerAction),t.registerLayout(Dt(sft,"pie")),t.registerProcessor(_m("pie")),t.registerProcessor(mft("pie"))}var Sft=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n,r){return Ps(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(An);const _ft=Sft;var mre=4,wft=function(){function t(){}return t}(),xft=function(t){me(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new wft},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(n,r){var a=r.points,i=r.size,o=this.symbolProxy,s=o.shape,l=n.getContext?n.getContext():n,u=l&&i[0]=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.points,i=r.size,o=i[0],s=i[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d=0&&(u.dataIndex=f+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const Tft=Cft;var Eft=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.updateData(i,{clipShape:this._getClipShape(n)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateSymbolDraw(i,n);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(n,r,a){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},e.prototype.updateTransform=function(n,r,a){var i=n.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Sm("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},e.prototype._getClipShape=function(n){var r=n.coordinateSystem,a=r&&r.getArea&&r.getArea();return n.get("clip",!0)?a:null},e.prototype._updateSymbolDraw=function(n,r){var a=this._symbolDraw,i=r.pipelineContext,o=i.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new Tft:new bm,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Cn);const Mft=Eft;var kft=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(Zt);const Dft=kft;var JD=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",lr).models[0]},e.type="cartesian2dAxis",e}(Zt);Jn(JD,mp);var bre={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)"]}}},Rft=It({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},bre),l3=It({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}}},bre),Lft=It({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},l3),Aft=gt({logBase:10},l3);const Sre={category:Rft,value:l3,time:Lft,log:Aft};var Oft={value:1,category:1,time:1,log:1};function Iv(t,e,n,r){W(Oft,function(a,i){var o=It(It({},Sre[i],!0),r,!0),s=function(l){me(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=py(this),h=d?cp(c):{},p=f.getTheme();It(c,p.get(i+"Axis")),It(c,this.getDefaultOption()),c.type=jz(c),d&&Zu(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=WD.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=e+"Axis."+i,u.defaultOption=o,u}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",jz)}function jz(t){return t.type||(t.data?"category":"value")}var Nft=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return Be(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),mn(this.getAxes(),function(n){return n.scale.type===e})},t.prototype.addAxis=function(e){var n=e.dim;this._axes[n]=e,this._dimList.push(n)},t}();const $ft=Nft;var eR=["x","y"];function Kz(t){return t.type==="interval"||t.type==="time"}var Ift=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=eR,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!Kz(n)||!Kz(r))){var a=n.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,h=o[1]-i[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=bd([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(n){var r=this.getAxis("x"),a=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&a.contain(a.toLocalCoord(n[1]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var a=this.dataToPoint(n),i=this.dataToPoint(r),o=this.getArea(),s=new Ft(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(n,r,a){a=a||[];var i=n[0],o=n[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Vr(a,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,r)),a[1]=l.toGlobalCoord(l.dataToCoord(o,r)),a},e.prototype.clampData=function(n,r){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(n[0]),u=i.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),r},e.prototype.pointToData=function(n,r){var a=[];if(this._invTransform)return Vr(a,n,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(n[0]),r),a[1]=o.coordToData(o.toLocalCoord(n[1]),r),a},e.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},e.prototype.getArea=function(){var n=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1]),i=Math.min(r[0],r[1]),o=Math.max(n[0],n[1])-a,s=Math.max(r[0],r[1])-i;return new Ft(a,i,o,s)},e}($ft),Bft=function(t){me(e,t);function e(n,r,a,i,o){var s=t.call(this,n,r,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},e.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},e}(no);const Vft=Bft;function tR(t,e,n){n=n||{};var r=t.coordinateSystem,a=e.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(v,p[1]),p[0])}i.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[d[s]]-p[d.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Tr(n.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=e.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function Yz(t){return t.get("coordinateSystem")==="cartesian2d"}function Xz(t){var e={xAxisModel:null,yAxisModel:null};return W(e,function(n,r){var a=r.replace(/Model$/,""),i=t.getReferringComponents(a,lr).models[0];e[r]=i}),e}var YT=Math.log;function _re(t,e,n){var r=Qu.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=Ene(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(t.type==="log"){var d=YT(t.base);u=[YT(u[0])/d,YT(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=r.getExtent.call(t);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=r.getInterval.call(t),v=u[0],g=u[1];if(c&&f)p=(g-v)/o;else if(c)for(g=u[0]+p*o;gu[0]&&isFinite(v)&&isFinite(u[0]);)p=NT(p),v=u[1]-p*o;else{var y=t.getTicks().length-1;y>o&&(p=NT(p));var m=p*o;g=Math.ceil(u[1]/p)*p,v=Yn(g-m),v<0&&u[0]>=0?(v=0,g=Yn(m)):g>0&&u[1]<=0&&(g=0,v=-Yn(m))}var b=(a[0].value-i[0].value)/s,_=(a[o].value-i[o].value)/s;r.setExtent.call(t,v+p*b,g+p*_),r.setInterval.call(t,p),(b||_)&&r.setNiceExtent.call(t,v+p,g-p)}var Pft=function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=eR,this._initCartesian(e,n,r),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,n){var r=this._axesMap;this._updateScale(e,this.model);function a(o){var s,l=Yt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,v=h.scale;jD(v)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(ld(v,p),jD(v)&&(s=h))}c.length&&(s||(s=c.pop(),ld(s.scale,s.model)),W(c,function(g){_re(g.scale,g.model,s.scale)}))}}a(r.x),a(r.y);var i={};W(r.x,function(o){qz(r,"y",o,i)}),W(r.y,function(o){qz(r,"x",o,i)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var a=e.getBoxLayoutParams(),i=!r&&e.get("containLabel"),o=vr(a,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(W(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Plt(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()),W(this._coordsList,function(u){u.calcAffineTransform()});function l(){W(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]),Fft(u,c?o.x:o.y)})}},t.prototype.getAxis=function(e,n){var r=this._axesMap[e];if(r!=null)return r[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,n){if(e!=null&&n!=null){var r="x"+e+"y"+n;return this._coordsMap[r]}mt(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a0?"top":"bottom",i="center"):sy(a-wu)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a0?"right":"left":i=r>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var n={componentType:e.mainType,componentIndex:e.componentIndex};return n[e.mainType+"Index"]=e.componentIndex,n},t.isLabelSilent=function(e){var n=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||n&&n.show)},t}(),Qz={axisLine:function(t,e,n,r){var a=e.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var i=e.axis.getExtent(),o=r.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Vr(s,s,o),Vr(l,l,o));var c=Oe({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Er({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Av(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=e.get(["axisLine","symbol"]);if(d!=null){var h=e.get(["axisLine","symbolSize"]);nt(d)&&(d=[d,d]),(nt(h)||rn(h))&&(h=[h,h]);var p=wd(e.get(["axisLine","symbolOffset"])||0,h),v=h[0],g=h[1];W([{rotate:t.rotation+Math.PI/2,offset:p[0],r:0},{rotate:t.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(d[m]!=="none"&&d[m]!=null){var b=ir(d[m],-v/2,-g/2,v,g,c.stroke,!0),_=y.r+y.offset,x=u?l:s;b.attr({rotation:y.rotate,x:x[0]+_*Math.cos(t.rotation),y:x[1]-_*Math.sin(t.rotation),silent:!0,z2:11}),n.add(b)}})}}},axisTickLabel:function(t,e,n,r){var a=Uft(n,r,e,t),i=jft(n,r,e,t);if(Hft(e,i,a),Wft(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=Pne(Be(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Gne(o)}},axisName:function(t,e,n,r){var a=Tr(t.axisName,e.get("name"));if(a){var i=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,e6(i)?t.labelOffset+o*l:0],d,h=e.get("nameRotate");h!=null&&(h=h*wu/180);var p;e6(i)?d=Yf.innerTextLayout(t.rotation,h??t.rotation,o):(d=Gft(t.rotation,i,h||0,u),p=t.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var v=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=Tr(t.nameTruncateMaxWidth,g.maxWidth,p),b=new Jt({x:f[0],y:f[1],rotation:d.rotation,silent:Yf.isLabelSilent(e),style:Mn(s,{text:a,font:v,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(sp({el:b,componentModel:e,itemName:a}),b.__fullText=a,b.anid="name",e.get("triggerEvent")){var _=Yf.makeAxisEventDataBase(e);_.targetType="axisName",_.name=a,Rt(b).eventData=_}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function Gft(t,e,n,r){var a=JO(n-t),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return sy(a-wu/2)?(o=l?"bottom":"top",i="center"):sy(a-wu*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",awu/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Hft(t,e,n){if(!Mne(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var i=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(_i(i),_i(u)):Jz(i,o)&&(r?(_i(o),_i(c)):(_i(i),_i(u))),a===!1?(_i(s),_i(f)):Jz(l,s)&&(a?(_i(l),_i(d)):(_i(s),_i(f)))}}function _i(t){t&&(t.ignore=!0)}function Jz(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var a=am([]);return fc(a,a,-t.rotation),n.applyTransform(_s([],a,t.getLocalTransform())),r.applyTransform(_s([],a,e.getLocalTransform())),n.intersect(r)}}function e6(t){return t==="middle"||t==="center"}function wre(t,e,n,r,a){for(var i=[],o=[],s=[],l=0;l=0||t===e}function Qft(t){var e=u3(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,a=n.option,i=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var s=nR(n);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var v=l;p.color!=null&&(v=gt({color:p.color},l));var g=It(_t(p),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(nt(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else vt(c)&&(g.name=c(g.name,g));var m=new wn(g,null,this.ecModel);return Jn(m,mp.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:It({lineStyle:{color:"#bbb"}},tg.axisLine),axisLabel:tb(tg.axisLabel,!1),axisTick:tb(tg.axisTick,!1),splitLine:tb(tg.splitLine,!0),splitArea:tb(tg.splitArea,!0),indicator:[]},e}(Zt);const vdt=hdt;var pdt=["axisLine","axisTickLabel","axisName"],gdt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=this.group;i.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},e.prototype._buildAxes=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes(),i=Be(a,function(o){var s=o.model.get("showName")?o.name:"",l=new Tl(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});W(i,function(o){W(pdt,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,a=r.getIndicatorAxes();if(!a.length)return;var i=n.get("shape"),o=n.getModel("splitLine"),s=n.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),p=Ie(d)?d:[d],v=Ie(h)?h:[h],g=[],y=[];function m(V,P,N){var I=N%P.length;return V[I]=V[I]||[],I}if(i==="circle")for(var b=a[0].getTicksCoords(),_=r.cx,x=r.cy,w=0;w3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;ZT(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);ZT(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(n){if(!o6(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;ZT(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e}(Qi);function ZT(t,e,n,r,a){t.pointerChecker&&t.pointerChecker(r,a.originX,a.originY)&&(Sl(r.event),kre(t,e,n,r,a))}function kre(t,e,n,r,a){a.isAvailableBehavior=at(SS,null,n,r),t.trigger(e,a)}function SS(t,e,n){var r=n[t];return!t||r&&(!nt(r)||e.event[r+"Key"])}const xm=Edt;function f3(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function d3(t,e,n,r){var a=t.target,i=t.zoomLimit,o=t.zoom=t.zoom||1;if(o*=e,i){var s=i.min||0,l=i.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/t.zoom;t.zoom=o,a.x-=(n-a.x)*(u-1),a.y-=(r-a.y)*(u-1),a.scaleX*=u,a.scaleY*=u,a.dirty()}var Mdt={axisPointer:1,tooltip:1,brush:1};function u2(t,e,n){var r=e.getComponentByElement(t.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!Mdt.hasOwnProperty(r.mainType)&&a&&a.model!==n}function Dre(t){if(nt(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var QT,Q_={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},s6=Yt(Q_),J_={"alignment-baseline":"textBaseline","stop-color":"stopColor"},l6=Yt(J_),kdt=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,n){n=n||{};var r=Dre(e);this._defsUsePending=[];var a=new Ct;this._root=a;var i=[],o=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),ri(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;Ldt(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=c2(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=Lre(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var h=a;a=new Ct,a.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new en({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:i}},t.prototype._parseNode=function(e,n,r,a,i,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=n;else{if(!i){var c=QT[s];if(c&&ot(QT,s)){l=c.call(this,e,n);var f=e.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else a&&r.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});n.add(l)}}var h=u6[s];if(h&&ot(u6,s)){var p=h.call(this,e),v=e.getAttribute("id");v&&(this._defs[v]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,r,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},t.prototype._parseText=function(e,n){var r=new uy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});wi(n,r),ri(e,r,this._defsUsePending,!1,!1),Ddt(r,n);var a=r.style,i=a.fontSize;i&&i<9&&(a.fontSize=9,r.scaleX*=i/9,r.scaleY*=i/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},t.internalField=function(){QT={g:function(e,n){var r=new Ct;return wi(n,r),ri(e,r,this._defsUsePending,!1,!1),r},rect:function(e,n){var r=new en;return wi(n,r),ri(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,n){var r=new Po;return wi(n,r),ri(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,n){var r=new Er;return wi(n,r),ri(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,n){var r=new zx;return wi(n,r),ri(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,n){var r=e.getAttribute("points"),a;r&&(a=d6(r));var i=new Ba({shape:{points:a||[]},silent:!0});return wi(n,i),ri(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,n){var r=e.getAttribute("points"),a;r&&(a=d6(r));var i=new Pa({shape:{points:a||[]},silent:!0});return wi(n,i),ri(e,i,this._defsUsePending,!1,!1),i},image:function(e,n){var r=new Fr;return wi(n,r),ri(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,n){var r=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(i),this._textY=parseFloat(a)+parseFloat(o);var s=new Ct;return wi(n,s),ri(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,n){var r=e.getAttribute("x"),a=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),a!=null&&(this._textY=parseFloat(a));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Ct;return wi(n,s),ri(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,n){var r=e.getAttribute("d")||"",a=iee(r);return wi(n,a),ri(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),t}(),u6={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),a=parseInt(t.getAttribute("y2")||"0",10),i=new ap(e,n,r,a);return c6(t,i),f6(t,i),i},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),a=new dN(e,n,r);return c6(t,a),f6(t,a),a}};function c6(t,e){var n=t.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(e.global=!0)}function f6(t,e){for(var n=t.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),a=void 0;r&&r.indexOf("%")>0?a=parseInt(r,10)/100:r?a=parseFloat(r):a=0;var i={};Rre(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function wi(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),gt(e.__inheritedStyle,t.__inheritedStyle))}function d6(t){for(var e=c2(t),n=[],r=0;r0;i-=2){var o=r[i],s=r[i-1],l=c2(o);switch(a=a||pi(),s){case"translate":Bo(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Lx(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":fc(a,a,-parseFloat(l[0])*JT);break;case"skewX":var u=Math.tan(parseFloat(l[0])*JT);_s(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*JT);_s(a,[1,c,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var v6=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Rre(t,e,n){var r=t.getAttribute("style");if(r){v6.lastIndex=0;for(var a;(a=v6.exec(r))!=null;){var i=a[1],o=ot(Q_,i)?Q_[i]:null;o&&(e[o]=a[2]);var s=ot(J_,i)?J_[i]:null;s&&(n[s]=a[2])}}}function $dt(t,e,n){for(var r=0;r0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:v,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,n,r),this._updateMapSelectHandler(e,u,r,a)},t.prototype._buildGeoJSON=function(e){var n=this._regionsGroupByName=ct(),r=ct(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,p){return p&&(h=p(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var p=[],v=!u&&l&&l.project,g=0;g=0)&&(d=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Jr(e,Rr(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var p=e.getTextContent();if(p&&(Are(p).ignore=p.ignore,e.textConfig&&o)){var v=e.getBoundingRect().clone();e.textConfig.layoutRect=v,e.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function b6(t,e,n,r,a,i){t.data?t.data.setItemGraphicEl(i,e):Rt(e).eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:n,region:r&&r.option||{}}}function S6(t,e,n,r,a){t.data||sp({el:e,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function _6(t,e,n,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return qn(e,o,i.get("blurScope"),i.get("disabled")),t.isGeo&&zrt(e,a,n),o}function w6(t,e,n){var r=[],a;function i(){a=[]}function o(){a.length&&(r.push(a),a=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),W(t,function(l){s.lineStart();for(var u=0;u-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(An);const rht=nht;function aht(t,e){var n={};return W(t,function(r){r.each(r.mapDimension("value"),function(a,i){var o="ec-"+r.getName(i);n[o]=n[o]||[],isNaN(a)||n[o].push(a)})}),t[0].map(t[0].mapDimension("value"),function(r,a){for(var i="ec-"+t[0].getName(a),o=0,s=1/0,l=-1/0,u=n[i].length,c=0;c1?(_.width=b,_.height=b/g):(_.height=b,_.width=b*g),_.y=m[1]-_.height/2,_.x=m[0]-_.width/2;else{var x=t.getBoxLayoutParams();x.aspect=g,_=vr(x,{width:p,height:v})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function uht(t,e){W(e.get("geoCoord"),function(n,r){t.addGeoCoord(r,n)})}var cht=function(){function t(){this.dimensions=Nre}return t.prototype.create=function(e,n){var r=[];function a(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new E6(l+s,l,Oe({nameMap:o.get("nameMap")},a(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=M6,u.resize(o,n)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),W(i,function(o,s){var l=Be(o,function(c){return c.get("nameMap")}),u=new E6(s,s,Oe({nameMap:Mx(l)},a(o[0])));u.zoomLimit=Tr.apply(null,Be(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=M6,u.resize(o[0],n),W(o,function(c){c.coordinateSystem=u,uht(u,c)})}),r},t.prototype.getFilledRegions=function(e,n,r,a){for(var i=(e||[]).slice(),o=ct(),s=0;s=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function bht(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,a=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){wht(t);var i=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;a?(t.hierNode.prelim=a.hierNode.prelim+e(t,a),t.hierNode.modifier=t.hierNode.prelim-i):t.hierNode.prelim=i}else a&&(t.hierNode.prelim=a.hierNode.prelim+e(t,a));t.parentNode.hierNode.defaultAncestor=xht(t,a,t.parentNode.hierNode.defaultAncestor||r[0],e)}function Sht(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function D6(t){return arguments.length?t:Eht}function Mg(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function _ht(t,e){return vr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function wht(t){for(var e=t.children,n=e.length,r=0,a=0;--n>=0;){var i=e[n];i.hierNode.prelim+=r,i.hierNode.modifier+=r,a+=i.hierNode.change,r+=i.hierNode.shift+a}}function xht(t,e,n,r){if(e){for(var a=t,i=t,o=i.parentNode.children[0],s=e,l=a.hierNode.modifier,u=i.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=eE(s),i=tE(i),s&&i;){a=eE(a),o=tE(o),a.hierNode.ancestor=t;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(Tht(Cht(s,t,n),t,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=a.hierNode.modifier,c+=o.hierNode.modifier}s&&!eE(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!tE(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=t)}return n}function eE(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function tE(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function Cht(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function Tht(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function Eht(t,e){return t.parentNode===e.parentNode?1:2}var Mht=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),kht=function(t){me(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Mht},e.prototype.buildPath=function(n,r){var a=r.childPoints,i=a.length,o=r.parentPoint,s=a[0],l=a[i-1];if(i===1){n.moveTo(o[0],o[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=Je(r.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,n.moveTo(o[0],o[1]),n.lineTo(h[0],h[1]),n.moveTo(s[0],s[1]),h[c]=s[c],n.lineTo(h[0],h[1]),h[c]=l[c],n.lineTo(h[0],h[1]),n.lineTo(l[0],l[1]);for(var p=1;pm.x,x||(_=_-Math.PI));var C=x?"left":"right",T=s.getModel("label"),k=T.get("rotate"),E=k*(Math.PI/180),M=g.getTextContent();M&&(g.setTextConfig({position:T.get("position")||C,rotation:k==null?-_:E,origin:"center"}),M.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),R=D==="relative"?ey(o.getAncestorsIndices(),o.getDescendantIndices()):D==="ancestor"?o.getAncestorsIndices():D==="descendant"?o.getDescendantIndices():null;R&&(Rt(n).focus=R),Rht(a,o,c,n,p,h,v,r),n.__edge&&(n.onHoverStateChange=function(A){if(A!=="blur"){var V=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);V&&V.hoverState===lm||D_(n.__edge,A)}})}function Rht(t,e,n,r,a,i,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),f=t.getOrient(),d=t.get(["lineStyle","curveness"]),h=t.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),v=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==n&&(v||(v=r.__edge=new cm({shape:iR(c,f,d,a,a)})),sn(v,{shape:iR(c,f,d,i,o)},t));else if(u==="polyline"&&c==="orthogonal"&&e!==n&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;mn&&(n=a.height)}this.height=n+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var n=0,r=this.children,a=r.length;n=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,n)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,n)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,n=0;n=0){var r=n.getData().tree.root,a=t.targetNode;if(nt(a)&&(a=r.getNodeById(a)),a&&r.contains(a))return{node:a};var i=t.targetNodeId;if(i!=null&&(a=r.getNodeById(i)))return{node:a}}}function zre(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function y3(t,e){var n=zre(t);return zt(n,e)>=0}function f2(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var zht=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},a=n.leaves||{},i=new wn(a,this,this.ecModel),o=g3.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var p=o.getNodeByDataIndex(h);return p&&p.children.length&&p.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},e.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.formatTooltip=function(n,r,a){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Lr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=f2(a,this),r.collapsed=!a.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(An);const Ght=zht;function Hht(t,e,n){for(var r=[t],a=[],i;i=r.pop();)if(a.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s=0;i--)n.push(a[i])}}function Uht(t,e){t.eachSeriesByType("tree",function(n){Wht(n,e)})}function Wht(t,e){var n=_ht(t,e);t.layoutInfo=n;var r=t.get("layout"),a=0,i=0,o=null;r==="radial"?(a=2*Math.PI,i=Math.min(n.height,n.width)/2,o=D6(function(b,_){return(b.parentNode===_.parentNode?1:2)/b.depth})):(a=n.width,i=n.height,o=D6());var s=t.getData().tree.root,l=s.children[0];if(l){mht(s),Hht(l,bht,o),s.hierNode.modifier=-l.hierNode.prelim,rg(l,Sht);var u=l,c=l,f=l;rg(l,function(b){var _=b.getLayout().x;_c.getLayout().x&&(c=b),b.depth>f.depth&&(f=b)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,p=0,v=0,g=0,y=0;if(r==="radial")p=a/(c.getLayout().x+d+h),v=i/(f.depth-1||1),rg(l,function(b){g=(b.getLayout().x+h)*p,y=(b.depth-1)*v;var _=Mg(g,y);b.setLayout({x:_.x,y:_.y,rawX:g,rawY:y},!0)});else{var m=t.getOrient();m==="RL"||m==="LR"?(v=i/(c.getLayout().x+d+h),p=a/(f.depth-1||1),rg(l,function(b){y=(b.getLayout().x+h)*v,g=m==="LR"?(b.depth-1)*p:a-(b.depth-1)*p,b.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(p=a/(c.getLayout().x+d+h),v=i/(f.depth-1||1),rg(l,function(b){g=(b.getLayout().x+h)*p,y=m==="TB"?(b.depth-1)*v:i-(b.depth-1)*v,b.setLayout({x:g,y},!0)}))}}}function jht(t){t.eachSeriesByType("tree",function(e){var n=e.getData(),r=n.tree;r.eachNode(function(a){var i=a.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(a.dataIndex,"style");Oe(s,o)})})}function Kht(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var a=e.dataIndex,i=r.getData().tree,o=i.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,n,r){n.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var i=a.coordinateSystem,o=v3(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function Yht(t){t.registerChartView(Lht),t.registerSeriesModel(Ght),t.registerLayout(Uht),t.registerVisual(jht),Kht(t)}var N6=["treemapZoomToNode","treemapRender","treemapMove"];function Xht(t){for(var e=0;e1;)i=i.parentNode;var o=OD(t.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var qht=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return e.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};Hre(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new wn({itemStyle:o},this,r);i=n.levels=Zht(i,r);var l=Be(i||[],function(f){return new wn(f,s,r)},this),u=g3.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var p=u.getNodeByDataIndex(h),v=p?l[p.depth]:null;return d.parentModel=v||s,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return Lr("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=f2(a,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},Oe(this.layoutInfo,n)},e.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=ct(),this._idIndexMapCount=0);var a=r.get(n);return a==null&&r.set(n,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Gre(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(An);function Hre(t){var e=0;W(t.children,function(r){Hre(r);var a=r.value;Ie(a)&&(a=a[0]),e+=a});var n=t.value;Ie(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),Ie(t.value)?t.value[0]=n:t.value=n}function Zht(t,e){var n=xn(e.get("color")),r=xn(e.get(["aria","decal","decals"]));if(n){t=t||[];var a,i;W(t,function(s){var l=new wn(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(i=!0)});var o=t[0]||(t[0]={});return a||(o.color=n.slice()),!i&&r&&(o.decal=r.slice()),t}}const Qht=qht;var Jht=8,$6=8,nE=5,evt=function(){function t(e){this.group=new Ct,e.add(this.group)}return t.prototype.render=function(e,n,r,a){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!r)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(e,f,s,l,u,c,a),Zx(o,f.pos,f.box)}},t.prototype._prepare=function(e,n,r){for(var a=e;a;a=a.parentNode){var i=Sr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+Jht*2,n.emptyItemWidth);n.totalWidth+=s+$6,n.renderList.push({node:a,text:i,width:s})}},t.prototype._renderContent=function(e,n,r,a,i,o,s){for(var l=0,u=n.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=Yat(n.pos,n.box),d=n.totalWidth,h=n.renderList,p=a.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var g=h[v],y=g.node,m=g.width,b=g.text;d>f.width&&(d-=m-u,m=u,b=null);var _=new Ba({shape:{points:tvt(l,0,m,c,v===h.length-1,v===0)},style:gt(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Jt({style:Mn(i,{text:b})}),textConfig:{position:"inside"},z2:rp*1e4,onclick:Dt(s,y)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Mn(o,{text:b}),_.ensureState("emphasis").style=p,qn(_,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(_),nvt(_,e,y),l+=m+$6}},t.prototype.remove=function(){this.group.removeAll()},t}();function tvt(t,e,n,r,a,i){var o=[[a?t:t-nE,e],[t+n,e],[t+n,e+r],[a?t:t-nE,e+r]];return!i&&o.splice(2,0,[t+n+nE,e+r/2]),!a&&o.push([t,e+r/2]),o}function nvt(t,e,n){Rt(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&f2(n,e)}}const rvt=evt;var avt=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,n,r,a,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:n,duration:r,delay:a,easing:i}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,n=this._storage.length,r=function(){n--,n<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,i=this._storage.length;aB6||Math.abs(n.dy)>B6)){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+n.dx,y:a.y+n.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(n){var r=n.originX,a=n.originY;if(this._state!=="animating"){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var s=new Ft(o.x,o.y,o.width,o.height),l=this.seriesModel.layoutInfo;r-=l.x,a-=l.y;var u=pi();Bo(u,u,[-r,-a]),Lx(u,u,[n.scale,n.scale]),Bo(u,u,[r,a]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(n){var r=this;n.on("click",function(a){if(r._state==="ready"){var i=r.seriesModel.get("nodeClick",!0);if(i){var o=r.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(i==="zoomToNode")r._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&$_(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(n,r,a){var i=this;a||(a=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),a||(a={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new rvt(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(y3(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=ag(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype.findTarget=function(n,r){var a,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e}(Cn);function ag(){return{nodeGroup:[],background:[],content:[]}}function cvt(t,e,n,r,a,i,o,s,l,u){if(!o)return;var c=o.getLayout(),f=t.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,p=c.height,v=c.borderWidth,g=c.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),b=o.viewChildren,_=c.upperHeight,x=b&&b.length,w=d.getModel("itemStyle"),C=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),k=d.getModel(["select","itemStyle"]),E=w.get("borderRadius")||0,M=oe("nodeGroup",oR);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),ew(M).nodeWidth=h,ew(M).nodeHeight=p,c.isAboveViewRoot)return M;var D=oe("background",I6,u,svt);D&&L(M,D,x&&c.upperLabelHeight);var R=d.getModel("emphasis"),A=R.get("focus"),V=R.get("blurScope"),P=R.get("disabled"),N=A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():A;if(x)fy(M)&&kf(M,!1),D&&(kf(D,!P),f.setItemGraphicEl(o.dataIndex,D),TD(D,N,V));else{var I=oe("content",I6,u,lvt);I&&$(M,I),D.disableMorphing=!0,D&&fy(D)&&kf(D,!1),kf(M,!P),f.setItemGraphicEl(o.dataIndex,M),TD(M,N,V)}return M;function L(ne,J,he){var ue=Rt(J);if(ue.dataIndex=o.dataIndex,ue.seriesIndex=t.seriesIndex,J.setShape({x:0,y:0,width:h,height:p,r:E}),g)U(J);else{J.invisible=!1;var X=o.getVisual("style"),K=X.stroke,ee=F6(w);ee.fill=K;var se=rf(C);se.fill=C.get("borderColor");var ye=rf(T);ye.fill=T.get("borderColor");var we=rf(k);if(we.fill=k.get("borderColor"),he){var be=h-2*v;j(J,K,X.opacity,{x:v,y:0,width:be,height:_})}else J.removeTextContent();J.setStyle(ee),J.ensureState("emphasis").style=se,J.ensureState("blur").style=ye,J.ensureState("select").style=we,od(J)}ne.add(J)}function $(ne,J){var he=Rt(J);he.dataIndex=o.dataIndex,he.seriesIndex=t.seriesIndex;var ue=Math.max(h-2*v,0),X=Math.max(p-2*v,0);if(J.culling=!0,J.setShape({x:v,y:v,width:ue,height:X,r:E}),g)U(J);else{J.invisible=!1;var K=o.getVisual("style"),ee=K.fill,se=F6(w);se.fill=ee,se.decal=K.decal;var ye=rf(C),we=rf(T),be=rf(k);j(J,ee,K.opacity,null),J.setStyle(se),J.ensureState("emphasis").style=ye,J.ensureState("blur").style=we,J.ensureState("select").style=be,od(J)}ne.add(J)}function U(ne){!ne.invisible&&i.push(ne)}function j(ne,J,he,ue){var X=d.getModel(ue?P6:V6),K=Sr(d.get("name"),null),ee=X.getShallow("show");Jr(ne,Rr(d,ue?P6:V6),{defaultText:ee?K:null,inheritColor:J,defaultOpacity:he,labelFetcher:t,labelDataIndex:o.dataIndex});var se=ne.getTextContent();if(se){var ye=se.style,we=Dx(ye.padding||0);ue&&(ne.setTextConfig({layoutRect:ue}),se.disableLabelLayout=!0),se.beforeUpdate=function(){var Me=Math.max((ue?ue.width:ne.shape.width)-we[1]-we[3],0),Se=Math.max((ue?ue.height:ne.shape.height)-we[0]-we[2],0);(ye.width!==Me||ye.height!==Se)&&se.setStyle({width:Me,height:Se})},ye.truncateMinChar=2,ye.lineOverflow="truncate",Y(ye,ue,c);var be=se.getState("emphasis");Y(be?be.style:null,ue,c)}}function Y(ne,J,he){var ue=ne?ne.text:null;if(!J&&he.isLeafRoot&&ue!=null){var X=t.get("drillDownIcon",!0);ne.text=X?X+" "+ue:ue}}function oe(ne,J,he,ue){var X=m!=null&&n[ne][m],K=a[ne];return X?(n[ne][m]=null,te(K,X)):g||(X=new J,X instanceof Zi&&(X.z2=fvt(he,ue)),re(K,X)),e[ne][y]=X}function te(ne,J){var he=ne[y]={};J instanceof oR?(he.oldX=J.x,he.oldY=J.y):he.oldShape=Oe({},J.shape)}function re(ne,J){var he=ne[y]={},ue=o.parentNode,X=J instanceof Ct;if(ue&&(!r||r.direction==="drillDown")){var K=0,ee=0,se=a.background[ue.getRawIndex()];!r&&se&&se.oldShape&&(K=se.oldShape.width,ee=se.oldShape.height),X?(he.oldX=0,he.oldY=ee):he.oldShape={x:K,y:ee,width:0,height:0}}he.fadein=!X}}function fvt(t,e){return t*ovt+e}const dvt=uvt;var Ty=W,hvt=mt,tw=-1,m3=function(){function t(e){var n=e.mappingMethod,r=e.type,a=this.option=_t(e);this.type=r,this.mappingMethod=n,this._normalizeData=gvt[n];var i=t.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(rE(a),vvt(a)):n==="category"?a.categories?pvt(a):rE(a,!0):(va(n!=="linear"||a.dataExtent),rE(a))}return t.prototype.mapValueToVisual=function(e){var n=this._normalizeData(e);return this._normalizedToVisual(n,e)},t.prototype.getNormalizer=function(){return at(this._normalizeData,this)},t.listVisualTypes=function(){return Yt(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,n,r){mt(e)?W(e,n,r):n.call(r,e)},t.mapVisual=function(e,n,r){var a,i=Ie(e)?[]:mt(e)?{}:(a=!0,null);return t.eachVisual(e,function(o,s){var l=n.call(r,o,s);a?i=l:i[s]=l}),i},t.retrieveVisuals=function(e){var n={},r;return e&&Ty(t.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(n[i]=e[i],r=!0)}),r?n:null},t.prepareVisualTypes=function(e){if(Ie(e))e=e.slice();else if(hvt(e)){var n=[];Ty(e,function(r,a){n.push(a)}),e=n}else return[];return e.sort(function(r,a){return a==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,n){return n==="color"?!!(e&&e.indexOf(n)===0):e===n},t.findPieceIndex=function(e,n,r){for(var a,i=1/0,o=0,s=n.length;o=0;i--)r[i]==null&&(delete n[e[i]],e.pop())}function rE(t,e){var n=t.visual,r=[];mt(n)?Ty(n,function(i){r.push(i)}):n!=null&&r.push(n);var a={color:1,symbol:1};!e&&r.length===1&&!a.hasOwnProperty(t.type)&&(r[1]=r[0]),Ure(t,r)}function rb(t){return{applyVisual:function(e,n,r){var a=this.mapValueToVisual(e);r("color",t(n("color"),a))},_normalizedToVisual:sR([0,1])}}function z6(t){var e=this.option.visual;return e[Math.round(yn(t,[0,1],[0,e.length-1],!0))]||{}}function ig(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function kg(t){var e=this.option.visual;return e[this.option.loop&&t!==tw?t%e.length:t]}function af(){return this.option.visual[0]}function sR(t){return{linear:function(e){return yn(e,t,this.option.visual,!0)},category:kg,piecewise:function(e,n){var r=lR.call(this,n);return r==null&&(r=yn(e,t,this.option.visual,!0)),r},fixed:af}}function lR(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=m3.findPieceIndex(t,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function Ure(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=Be(e,function(n){var r=Ra(n);return r||[0,0,0,1]})),e}var gvt={linear:function(t){return yn(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=m3.findPieceIndex(t,e,!0);if(n!=null)return yn(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??tw},fixed:Zn};function ab(t,e,n){return t?e<=n:e=n.length||v===n[v.depth]){var y=wvt(a,l,v,g,p,r);jre(v,y,n,r)}})}}}function bvt(t,e,n){var r=Oe({},e),a=n.designatedVisualItemStyle;return W(["color","colorAlpha","colorSaturation"],function(i){a[i]=e[i];var o=t.get(i);a[i]=null,o!=null&&(r[i]=o)}),r}function G6(t){var e=aE(t,"color");if(e){var n=aE(t,"colorAlpha"),r=aE(t,"colorSaturation");return r&&(e=qh(e,null,null,r)),n&&(e=ay(e,n)),e}}function Svt(t,e){return e!=null?qh(e,null,null,t):null}function aE(t,e){var n=t[e];if(n!=null&&n!=="none")return n}function _vt(t,e,n,r,a,i){if(!(!i||!i.length)){var o=iE(e,"color")||a.color!=null&&a.color!=="none"&&(iE(e,"colorAlpha")||iE(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new Xr(f);return Wre(d).drColorMappingBy=c,d}}}function iE(t,e){var n=t.get(e);return Ie(n)&&n.length?{name:e,range:n}:null}function wvt(t,e,n,r,a,i){var o=Oe({},e);if(a){var s=a.type,l=s==="color"&&Wre(a).drColorMappingBy,u=l==="index"?r:l==="id"?i.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}var Ey=Math.max,nw=Math.min,H6=Tr,b3=W,Kre=["itemStyle","borderWidth"],xvt=["itemStyle","gapWidth"],Cvt=["upperLabel","show"],Tvt=["upperLabel","height"];const Evt={seriesType:"treemap",reset:function(t,e,n,r){var a=n.getWidth(),i=n.getHeight(),o=t.option,s=vr(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=Je(H6(s.width,l[0]),a),c=Je(H6(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],h=Cy(r,d,t),p=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,v=t.getViewRoot(),g=zre(v);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?Avt(t,h,v,u,c):p?[p.width,p.height]:[u,c],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var b={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var _={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};v.setLayout(_),Yre(v,b,!1,0),_=v.getLayout(),b3(g,function(w,C){var T=(g[C+1]||v).getValue();w.setLayout(Oe({dataExtent:[T,T],borderWidth:0,upperHeight:0},_))})}var x=t.getData().tree.root;x.setLayout(Ovt(s,p,h),!0),t.setLayoutInfo(s),Xre(x,new Ft(-s.x,-s.y,a,i),g,v,0)}};function Yre(t,e,n,r){var a,i;if(!t.isRemoved()){var o=t.getLayout();a=o.width,i=o.height;var s=t.getModel(),l=s.get(Kre),u=s.get(xvt)/2,c=qre(s),f=Math.max(l,c),d=l-u,h=f-u;t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=Ey(a-2*d,0),i=Ey(i-d-h,0);var p=a*i,v=Mvt(t,s,p,e,n,r);if(v.length){var g={x:d,y:h,width:a,height:i},y=nw(a,i),m=1/0,b=[];b.area=0;for(var _=0,x=v.length;_=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/n*es[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function Lvt(t,e,n){for(var r=0,a=1/0,i=0,o=void 0,s=t.length;ir&&(r=o));var l=t.area*t.area,u=e*e*n;return l?Ey(u*r/l,l/(u*a)):1/0}function U6(t,e,n,r,a){var i=e===n.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=n[s[i]],c=e?t.area/e:0;(a||c>n[l[o]])&&(c=n[l[o]]);for(var f=0,d=t.length;fgD&&(u=gD),i=s}ur&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o0&&(x[0]=-x[0],x[1]=-x[1]);var C=_[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(_[1],_[0]);f[0].8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*y+c[0],i.y=-d[1]*m+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*C+c[0],i.y=c[1]+k,p=_[0]<0?"right":"left",i.originX=-y*C,i.originY=-k;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=w[0],i.y=w[1]+k,p="center",i.originY=-k;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*C+f[0],i.y=f[1]+k,p=_[0]>=0?"right":"left",i.originX=y*C,i.originY=-k;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||v,align:i.__align||p})}},e}(Ct);const x3=Qvt;var Jvt=function(){function t(e){this.group=new Ct,this._LineCtor=e||x3}return t.prototype.updateData=function(e){var n=this;this._progressiveEls=null;var r=this,a=r.group,i=r._lineData;r._lineData=e,i||a.removeAll();var o=q6(e);e.diff(i).add(function(s){n._doAdd(e,s,o)}).update(function(s,l){n._doUpdate(i,e,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(n,r){n.updateLayout(e,r)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=q6(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n){this._progressiveEls=[];function r(s){!s.isGroup&&!ept(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a0}function q6(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Rr(e)}}function Z6(t){return isNaN(t[0])||isNaN(t[1])}function cE(t){return t&&!Z6(t[0])&&!Z6(t[1])}const C3=Jvt;var fE=[],dE=[],hE=[],Qd=$r,vE=Lu,Q6=Math.abs;function J6(t,e,n){for(var r=t[0],a=t[1],i=t[2],o=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){fE[0]=Qd(r[0],a[0],i[0],c),fE[1]=Qd(r[1],a[1],i[1],c);var f=Q6(vE(fE,e)-l);f=0?s=s+u:s=s-u:p>=0?s=s-u:s=s+u}return s}function pE(t,e){var n=[],r=ny,a=[[],[],[]],i=[[],[]],o=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Ss(u[0]),Ss(u[1])],u[2]&&u.__original.push(Ss(u[2])));var d=u.__original;if(u[2]!=null){if(oa(a[0],d[0]),oa(a[1],d[2]),oa(a[2],d[1]),c&&c!=="none"){var h=Rg(s.node1),p=J6(a,d[0],h*e);r(a[0][0],a[1][0],a[2][0],p,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],p,n),a[0][1]=n[3],a[1][1]=n[4]}if(f&&f!=="none"){var h=Rg(s.node2),p=J6(a,d[1],h*e);r(a[0][0],a[1][0],a[2][0],p,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],p,n),a[1][1]=n[1],a[2][1]=n[2]}oa(u[0],a[0]),oa(u[1],a[2]),oa(u[2],a[1])}else{if(oa(i[0],d[0]),oa(i[1],d[1]),mu(o,i[1],i[0]),md(o,o),c&&c!=="none"){var h=Rg(s.node1);S_(i[0],i[0],o,h*e)}if(f&&f!=="none"){var h=Rg(s.node2);S_(i[1],i[1],o,-h*e)}oa(u[0],i[0]),oa(u[1],i[1])}})}function e8(t){return t.type==="view"}var tpt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){var a=new bm,i=new C3,o=this.group;this._controller=new xm(r.getZr()),this._controllerHost={target:o},o.add(a.group),o.add(i.group),this._symbolDraw=a,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(n,r,a){var i=this,o=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(e8(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):sn(u,c,n)}pE(n.getGraph(),Dg(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,a),clearTimeout(this._layoutTimeout);var h=n.forceLayout,p=n.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,p);var v=n.get("layout");f.graph.eachNode(function(b){var _=b.dataIndex,x=b.getGraphicEl(),w=b.getModel();if(x){x.off("drag").off("dragend");var C=w.get("draggable");C&&x.on("drag",function(k){switch(v){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,p),h.setFixed(_),f.setItemLayout(_,[x.x,x.y]);break;case"circular":f.setItemLayout(_,[x.x,x.y]),b.setLayout({fixed:!0},!0),w3(n,"symbolSize",b,[k.offsetX,k.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(_,[x.x,x.y]),_3(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(_)}),x.setDraggable(C,!!w.get("cursor"));var T=w.get(["emphasis","focus"]);T==="adjacency"&&(Rt(x).focus=b.getAdjacentDataIndices())}}),f.graph.eachEdge(function(b){var _=b.getGraphicEl(),x=b.getModel().get(["emphasis","focus"]);_&&x==="adjacency"&&(Rt(_).focus={edge:[b.dataIndex],node:[b.node1.dataIndex,b.node2.dataIndex]})});var g=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),y=f.getLayout("cx"),m=f.getLayout("cy");f.graph.eachNode(function(b){eae(b,g,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(n,r){var a=this;(function i(){n.step(function(o){a.updateLayout(a._model),(a._layouting=!o)&&(r?a._layoutTimeout=setTimeout(i,16):i())})})()},e.prototype._updateController=function(n,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!u2(u,a,n)}),!e8(n.coordinateSystem)){o.disable();return}o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){f3(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){d3(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(),pE(n.getGraph(),Dg(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=Dg(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(n){pE(n.getGraph(),Dg(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Cn);const npt=tpt;function Jd(t){return"_EC_"+t}var rpt=function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,n){e=e==null?""+n:""+e;var r=this._nodesMap;if(!r[Jd(e)]){var a=new of(e,n);return a.hostGraph=this,this.nodes.push(a),r[Jd(e)]=a,a}},t.prototype.getNodeByIndex=function(e){var n=this.data.getRawIndex(e);return this.nodes[n]},t.prototype.getNodeById=function(e){return this._nodesMap[Jd(e)]},t.prototype.addEdge=function(e,n,r){var a=this._nodesMap,i=this._edgesMap;if(rn(e)&&(e=this.nodes[e]),rn(n)&&(n=this.nodes[n]),e instanceof of||(e=a[Jd(e)]),n instanceof of||(n=a[Jd(n)]),!(!e||!n)){var o=e.id+"-"+n.id,s=new nae(e,n,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),n.inEdges.push(s)),e.edges.push(s),e!==n&&n.edges.push(s),this.edges.push(s),i[o]=s,s}},t.prototype.getEdgeByIndex=function(e){var n=this.edgeData.getRawIndex(e);return this.edges[n]},t.prototype.getEdge=function(e,n){e instanceof of&&(e=e.id),n instanceof of&&(n=n.id);var r=this._edgesMap;return this._directed?r[e+"-"+n]:r[e+"-"+n]||r[n+"-"+e]},t.prototype.eachNode=function(e,n){for(var r=this.nodes,a=r.length,i=0;i=0&&e.call(n,r[i],i)},t.prototype.eachEdge=function(e,n){for(var r=this.edges,a=r.length,i=0;i=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(n,r[i],i)},t.prototype.breadthFirstTraverse=function(e,n,r,a){if(n instanceof of||(n=this._nodesMap[Jd(n)]),!!n){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Jn(of,rae("hostGraph","data"));Jn(nae,rae("hostGraph","edgeData"));const apt=rpt;function aae(t,e,n,r,a){for(var i=new apt(r),o=0;o "+d)),u++)}var h=n.get("coordinateSystem"),p;if(h==="cartesian2d"||h==="polar")p=Ps(t,n);else{var v=hp.get(h),g=v?v.dimensions||[]:[];zt(g,"value")<0&&g.concat(["value"]);var y=yp(t,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;p=new fa(y,n),p.initData(t)}var m=new fa(["value"],n);return m.initData(l,s),a&&a(p,m),Pre({mainData:p,struct:i,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var ipt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments);var r=this;function a(){return r._categoriesData}this.legendVisualProvider=new wm(a,a),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(n){t.prototype.mergeDefaultAndTheme.apply(this,arguments),rd(n,"edgeLabel",["show"])},e.prototype.getInitialData=function(n,r){var a=n.edges||n.links||[],i=n.data||n.nodes||[],o=this;if(i&&a){Fvt(this);var s=aae(i,a,this,!0,l);return W(s.edges,function(u){zvt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(p){var v=o._categoriesModels,g=p.getShallow("category"),y=v[g];return y&&(y.parentModel=p.parentModel,p.parentModel=y),p});var f=wn.prototype.getModel;function d(p,v){var g=f.call(this,p,v);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(p){return p.resolveParentPath=h,p.getModel=d,p});function h(p){if(p&&(p[0]==="label"||p[1]==="label")){var v=p.slice();return p[0]==="label"?v[0]="edgeLabel":p[1]==="label"&&(v[1]="edgeLabel"),v}return p}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(n,r,a){if(a==="edge"){var i=this.getData(),o=this.getDataParams(n,a),s=i.graph.getEdgeByIndex(n),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Lr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=wte({series:this,dataIndex:n,multipleSeries:r});return f},e.prototype._updateCategoriesData=function(){var n=Be(this.option.categories||[],function(a){return a.value!=null?a:Oe({value:0},a)}),r=new fa(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(a){return r.getItemModel(a)})},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(An);const opt=ipt;var spt={type:"graphRoam",event:"graphRoam",update:"none"};function lpt(t){t.registerChartView(npt),t.registerSeriesModel(opt),t.registerProcessor($vt),t.registerVisual(Ivt),t.registerVisual(Bvt),t.registerLayout(Gvt),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Uvt),t.registerLayout(jvt),t.registerCoordinateSystem("graphView",{dimensions:Cm.dimensions,create:Yvt}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Zn),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Zn),t.registerAction(spt,function(e,n,r){n.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=v3(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var upt=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),cpt=function(t){me(e,t);function e(n){var r=t.call(this,n)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new upt},e.prototype.buildPath=function(n,r){var a=Math.cos,i=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-a(l)*s*(s>=o/3?1:2),c=r.y-i(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+a(l)*s,r.y+i(l)*s),n.lineTo(r.x+a(r.angle)*o,r.y+i(r.angle)*o),n.lineTo(r.x-a(l)*s,r.y-i(l)*s),n.lineTo(u,c)},e}(Wt);const fpt=cpt;function dpt(t,e){var n=t.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=Je(n[0],e.getWidth()),s=Je(n[1],e.getHeight()),l=Je(t.get("radius"),i/2);return{cx:o,cy:s,r:l}}function ob(t,e){var n=t==null?"":t+"";return e&&(nt(e)?n=e.replace("{value}",n):vt(e)&&(n=e(t))),n}var hpt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){this.group.removeAll();var i=n.get(["axisLine","lineStyle","color"]),o=dpt(n,a);this._renderMain(n,r,a,i,o),this._data=n.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(n,r,a,i,o){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),h=d?Z_:Ia,p=f.get("show"),v=f.getModel("lineStyle"),g=v.get("width"),y=[u,c];$J(y,!l),u=y[0],c=y[1];for(var m=c-u,b=u,_=[],x=0;p&&x=k&&(E===0?0:i[E-1][0])Math.PI/2&&(oe+=Math.PI)):Y==="tangential"?oe=-T-Math.PI/2:rn(Y)&&(oe=Y*Math.PI/180),oe===0?f.add(new Jt({style:Mn(b,{text:L,x:U,y:j,verticalAlign:V<-.8?"top":V>.8?"bottom":"middle",align:A<-.4?"left":A>.4?"right":"center"},{inheritColor:$}),silent:!0})):f.add(new Jt({style:Mn(b,{text:L,x:U,y:j,verticalAlign:"middle",align:"center"},{inheritColor:$}),silent:!0,originX:U,originY:j,rotation:oe}))}if(m.get("show")&&P!==_){var N=m.get("distance");N=N?N+c:c;for(var te=0;te<=x;te++){A=Math.cos(T),V=Math.sin(T);var re=new Er({shape:{x1:A*(p-N)+d,y1:V*(p-N)+h,x2:A*(p-C-N)+d,y2:V*(p-C-N)+h},silent:!0,style:D});D.stroke==="auto"&&re.setStyle({stroke:i((P+te/x)/_)}),f.add(re),T+=E}T-=E}else T+=k}},e.prototype._renderPointer=function(n,r,a,i,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,p=[],v=n.get(["pointer","show"]),g=n.getModel("progress"),y=g.get("show"),m=n.getData(),b=m.mapDimension("value"),_=+n.get("min"),x=+n.get("max"),w=[_,x],C=[s,l];function T(E,M){var D=m.getItemModel(E),R=D.getModel("pointer"),A=Je(R.get("width"),o.r),V=Je(R.get("length"),o.r),P=n.get(["pointer","icon"]),N=R.get("offsetCenter"),I=Je(N[0],o.r),L=Je(N[1],o.r),$=R.get("keepAspect"),U;return P?U=ir(P,I-A/2,L-V,A,V,null,$):U=new fpt({shape:{angle:-Math.PI/2,width:A,r:V,x:I,y:L}}),U.rotation=-(M+Math.PI/2),U.x=o.cx,U.y=o.cy,U}function k(E,M){var D=g.get("roundCap"),R=D?Z_:Ia,A=g.get("overlap"),V=A?g.get("width"):c/m.count(),P=A?o.r-V:o.r-(E+1)*V,N=A?o.r:o.r-E*V,I=new R({shape:{startAngle:s,endAngle:M,cx:o.cx,cy:o.cy,clockwise:u,r0:P,r:N}});return A&&(I.z2=x-m.get(b,E)%x),I}(y||v)&&(m.diff(d).add(function(E){var M=m.get(b,E);if(v){var D=T(E,s);$n(D,{rotation:-((isNaN(+M)?C[0]:yn(M,w,C,!0))+Math.PI/2)},n),f.add(D),m.setItemGraphicEl(E,D)}if(y){var R=k(E,s),A=g.get("clip");$n(R,{shape:{endAngle:yn(M,w,C,A)}},n),f.add(R),wD(n.seriesIndex,m.dataType,E,R),p[E]=R}}).update(function(E,M){var D=m.get(b,E);if(v){var R=d.getItemGraphicEl(M),A=R?R.rotation:s,V=T(E,A);V.rotation=A,sn(V,{rotation:-((isNaN(+D)?C[0]:yn(D,w,C,!0))+Math.PI/2)},n),f.add(V),m.setItemGraphicEl(E,V)}if(y){var P=h[M],N=P?P.shape.endAngle:s,I=k(E,N),L=g.get("clip");sn(I,{shape:{endAngle:yn(D,w,C,L)}},n),f.add(I),wD(n.seriesIndex,m.dataType,E,I),p[E]=I}}).execute(),m.each(function(E){var M=m.getItemModel(E),D=M.getModel("emphasis"),R=D.get("focus"),A=D.get("blurScope"),V=D.get("disabled");if(v){var P=m.getItemGraphicEl(E),N=m.getItemVisual(E,"style"),I=N.fill;if(P instanceof Fr){var L=P.style;P.useStyle(Oe({image:L.image,x:L.x,y:L.y,width:L.width,height:L.height},N))}else P.useStyle(N),P.type!=="pointer"&&P.setColor(I);P.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),P.style.fill==="auto"&&P.setStyle("fill",i(yn(m.get(b,E),w,[0,1],!0))),P.z2EmphasisLift=0,Qr(P,M),qn(P,R,A,V)}if(y){var $=p[E];$.useStyle(m.getItemVisual(E,"style")),$.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),$.z2EmphasisLift=0,Qr($,M),qn($,R,A,V)}}),this._progressEls=p)},e.prototype._renderAnchor=function(n,r){var a=n.getModel("anchor"),i=a.get("show");if(i){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),c=ir(s,r.cx-o/2+Je(l[0],r.r),r.cy-o/2+Je(l[1],r.r),o,o,null,u);c.z2=a.get("showAbove")?1:0,c.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(n,r,a,i,o){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new Ct,h=[],p=[],v=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Jt({silent:!0}),p[y]=new Jt({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],p[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),b=l.get(u,y),_=new Ct,x=i(yn(b,[c,f],[0,1],!0)),w=m.getModel("title");if(w.get("show")){var C=w.get("offsetCenter"),T=o.cx+Je(C[0],o.r),k=o.cy+Je(C[1],o.r),E=h[y];E.attr({z2:g?0:2,style:Mn(w,{x:T,y:k,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),_.add(E)}var M=m.getModel("detail");if(M.get("show")){var D=M.get("offsetCenter"),R=o.cx+Je(D[0],o.r),A=o.cy+Je(D[1],o.r),V=Je(M.get("width"),o.r),P=Je(M.get("height"),o.r),N=n.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,E=p[y],I=M.get("formatter");E.attr({z2:g?0:2,style:Mn(M,{x:R,y:A,text:ob(b,I),width:isNaN(V)?null:V,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:N})}),Mee(E,{normal:M},b,function($){return ob($,I)}),v&&kee(E,y,l,n,{getFormattedLabel:function($,U,j,Y,oe,te){return ob(te?te.interpolatedValue:b,I)}}),_.add(E)}d.add(_)}),this.group.add(d),this._titleEls=h,this._detailEls=p},e.type="gauge",e}(Cn);const vpt=hpt;var ppt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return e.prototype.getInitialData=function(n,r){return bp(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(An);const gpt=ppt;function ypt(t){t.registerChartView(vpt),t.registerSeriesModel(gpt)}var mpt=["itemStyle","opacity"],bpt=function(t){me(e,t);function e(n,r){var a=t.call(this)||this,i=a,o=new Pa,s=new Jt;return i.setTextContent(s),a.setTextGuideLine(o),a.updateData(n,r,!0),a}return e.prototype.updateData=function(n,r,a){var i=this,o=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(mpt);c=c??1,a||Fo(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,$n(i,{style:{opacity:c}},o,r)):sn(i,{style:{opacity:c},shape:{points:l.points}},o,r),Qr(i,s),this._updateLabel(n,r),qn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r){var a=this,i=this.getTextGuideLine(),o=a.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Jr(o,Rr(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),a.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;i.setShape({points:h}),a.textGuideLineConfig={anchor:h?new Bt(h[0][0],h[0][1]):null},sn(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),n3(a,r3(l),{stroke:d})},e}(Ba),Spt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,a){var i=n.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new bpt(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(i,l),s.add(c),i.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);dy(u,n,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Cn);const _pt=Spt;var wpt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new wm(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.getInitialData=function(n,r){return bp(this,{coordDimensions:["value"],encodeDefaulter:Dt(MN,this)})},e.prototype._defaultLabelLine=function(n){rd(n,"labelLine",["show"]);var r=n.labelLine,a=n.emphasis.labelLine;r.show=r.show&&n.label.show,a.show=a.show&&n.emphasis.label.show},e.prototype.getDataParams=function(n){var r=this.getData(),a=t.prototype.getDataParams.call(this,n),i=r.mapDimension("value"),o=r.getSum(i);return a.percent=o?+(r.get(i,n)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(An);const xpt=wpt;function Cpt(t,e){return vr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Tpt(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,function(l){return l}),a=[],i=e==="ascending",o=0,s=t.count();oUpt)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!(this._mouseDownPoint||!yE(this,"mousemove"))){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function yE(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}const Kpt=Wpt;var Ypt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(n){var r=this.option;n&&It(r,n,!0),this._initDimensions()},e.prototype.contains=function(n,r){var a=n.get("parallelIndex");return a!=null&&r.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(n){W(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},e.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],a=mn(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);W(a,function(i){n.push("dim"+i.get("dim")),r.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Zt);const Xpt=Ypt;var qpt=function(t){me(e,t);function e(n,r,a,i,o){var s=t.call(this,n,r,a)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(no);const Zpt=qpt;function Td(t,e,n,r,a,i){t=t||0;var o=n[1]-n[0];if(a!=null&&(a=eh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=eh(s,[0,o]),a=i=eh(s,[a,i]),r=0}e[0]=eh(e[0],n),e[1]=eh(e[1],n);var l=mE(e,r);e[r]+=t;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=eh(e[r],c);var f;return f=mE(e,r),a!=null&&(f.sign!==l.sign||f.spani&&(e[1-r]=e[r]+f.sign*i),e}function mE(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function eh(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var bE=W,oae=Math.min,sae=Math.max,r8=Math.floor,Qpt=Math.ceil,a8=Yn,Jpt=Math.PI,egt=function(){function t(e,n,r){this.type="parallel",this._axesMap=ct(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,n,r)}return t.prototype._init=function(e,n,r){var a=e.dimensions,i=e.parallelAxisIndex;bE(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new Zpt(o,gm(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},t.prototype.update=function(e,n){this._updateAxesFromSeries(this._model,e)},t.prototype.containPoint=function(e){var n=this._makeLayoutInfo(),r=n.axisBase,a=n.layoutBase,i=n.pixelDimIndex,o=e[1-i],s=e[i];return o>=r&&o<=r+n.axisLength&&s>=a&&s<=a+n.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(e,n){n.eachSeries(function(r){if(e.contains(r,n)){var a=r.getData();bE(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),ld(o.scale,o.model)},this)}},this)},t.prototype.resize=function(e,n){this._rect=vr(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var e=this._model,n=this._rect,r=["x","y"],a=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=n[a[o]],l=[0,s],u=this.dimensions.length,c=sb(e.get("axisExpandWidth"),l),f=sb(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=e.get("axisExpandWindow"),p;if(h)p=sb(h[1]-h[0],l),h[1]=h[0]+p;else{p=sb(c*(f-1),l);var v=e.get("axisExpandCenter")||r8(u/2);h=[c*v-p/2],h[1]=h[0]+p}var g=(s-p)/(u-f);g<3&&(g=0);var y=[r8(a8(h[0]/c,1))+1,Qpt(a8(h[1]/c,1))-1],m=g/c*h[0];return{layout:i,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[a[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},t.prototype._layoutAxes=function(){var e=this._rect,n=this._axesMap,r=this.dimensions,a=this._makeLayoutInfo(),i=a.layout;n.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),bE(r,function(o,s){var l=(a.axisExpandable?ngt:tgt)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Jpt/2,vertical:0},f=[u[i].x+e.x,u[i].y+e.y],d=c[i],h=pi();fc(h,h,d),Bo(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(e){return this._axesMap.get(e)},t.prototype.dataToPoint=function(e,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(e),n)},t.prototype.eachActiveState=function(e,n,r,a){r==null&&(r=0),a==null&&(a=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];W(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),c=r;ci*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?Td(l,a,o,"all"):u="none";else{var h=a[1]-a[0],p=o[1]*s/h;a=[sae(0,p-h/2)],a[1]=oae(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},t}();function sb(t,e){return oae(sae(t,e[0]),e[1])}function tgt(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function ngt(t,e){var n=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,c;return t=0;a--)fi(r[a])},e.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var a=r[0];if(a[0]<=n&&n<=a[1])return"active"}else for(var i=0,o=r.length;iugt}function vae(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function pae(t,e,n,r){var a=new Ct;return a.add(new en({name:"main",style:k3(n),silent:!0,draggable:!0,cursor:"move",drift:Dt(l8,t,e,a,["n","s","w","e"]),ondragend:Dt(cd,e,{isEnd:!0})})),W(r,function(i){a.add(new en({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Dt(l8,t,e,a,i),ondragend:Dt(cd,e,{isEnd:!0})}))}),a}function gae(t,e,n,r){var a=r.brushStyle.lineWidth||0,i=Bv(a,cgt),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],f=n[1][1],d=c-i+a/2,h=f-i+a/2,p=c-o,v=f-s,g=p+a,y=v+a;Ws(t,e,"main",o,s,p,v),r.transformable&&(Ws(t,e,"w",l,u,i,y),Ws(t,e,"e",d,u,i,y),Ws(t,e,"n",l,u,g,i),Ws(t,e,"s",l,h,g,i),Ws(t,e,"nw",l,u,i,i),Ws(t,e,"ne",d,u,i,i),Ws(t,e,"sw",l,h,i,i),Ws(t,e,"se",d,h,i,i))}function hR(t,e){var n=e.__brushOption,r=n.transformable,a=e.childAt(0);a.useStyle(k3(n)),a.attr({silent:!r,cursor:r?"move":"default"}),W([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?vR(t,i[0]):ygt(t,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?dgt[s]+"-resize":null})})}function Ws(t,e,n,r,a,i,o){var s=e.childOfName(n);s&&s.setShape(bgt(D3(t,e,[[r,a],[r+i,a+o]])))}function k3(t){return gt({strokeNoScale:!0},t.brushStyle)}function yae(t,e,n,r){var a=[ky(t,n),ky(e,r)],i=[Bv(t,n),Bv(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function ggt(t){return Nu(t.group)}function vR(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=Wx(n[e],ggt(t));return r[a]}function ygt(t,e){var n=[vR(t,e[0]),vR(t,e[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function l8(t,e,n,r,a,i){var o=n.__brushOption,s=t.toRectRange(o.range),l=mae(e,a,i);W(r,function(u){var c=fgt[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=t.fromRectRange(yae(s[0][0],s[1][0],s[0][1],s[1][1])),T3(e,n),cd(e,{isEnd:!1})}function mgt(t,e,n,r){var a=e.__brushOption.range,i=mae(t,n,r);W(a,function(o){o[0]+=i[0],o[1]+=i[1]}),T3(t,e),cd(t,{isEnd:!1})}function mae(t,e,n){var r=t.group,a=r.transformCoordToLocal(e,n),i=r.transformCoordToLocal(0,0);return[a[0]-i[0],a[1]-i[1]]}function D3(t,e,n){var r=hae(t,e);return r&&r!==ud?r.clipPath(n,t._transform):_t(n)}function bgt(t){var e=ky(t[0][0],t[1][0]),n=ky(t[0][1],t[1][1]),r=Bv(t[0][0],t[1][0]),a=Bv(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:a-n}}function Sgt(t,e,n){if(!(!t._brushType||wgt(t,e.offsetX,e.offsetY))){var r=t._zr,a=t._covers,i=M3(t,e,n);if(!t._dragging)for(var o=0;or.getWidth()||n<0||n>r.getHeight()}var h2={lineX:f8(0),lineY:f8(1),rect:{createCover:function(t,e){function n(r){return r}return pae({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=vae(t);return yae(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){gae(t,e,n,r)},updateCommon:hR,contain:gR},polygon:{createCover:function(t,e){var n=new Ct;return n.add(new Pa({name:"main",style:k3(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Ba({name:"main",draggable:!0,drift:Dt(mgt,t,e),ondragend:Dt(cd,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:D3(t,e,n)})},updateCommon:hR,contain:gR}};function f8(t){return{createCover:function(e,n){return pae({toRectRange:function(r){var a=[r,[0,100]];return t&&a.reverse(),a},fromRectRange:function(r){return r[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=vae(e),r=ky(n[0][t],n[1][t]),a=Bv(n[0][t],n[1][t]);return[r,a]},updateCoverShape:function(e,n,r,a){var i,o=hae(e,n);if(o!==ud&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(t);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,i];t&&l.reverse(),gae(e,n,l,a)},updateCommon:hR,contain:gR}}const R3=vgt;function Sae(t){return t=L3(t),function(e){return gN(e,t)}}function _ae(t,e){return t=L3(t),function(n){var r=e??n,a=r?t.width:t.height,i=r?t.x:t.y;return[i,i+(a||0)]}}function wae(t,e,n){var r=L3(t);return function(a,i){return r.contain(i[0],i[1])&&!u2(a,e,n)}}function L3(t){return Ft.create(t)}var xgt=["axisLine","axisTickLabel","axisName"],Cgt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){t.prototype.init.apply(this,arguments),(this._brushController=new R3(r.getZr())).on("brush",at(this._onBrush,this))},e.prototype.render=function(n,r,a,i){if(!Tgt(n,r,i)){this.axisModel=n,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ct,this.group.add(this._axisGroup),!!n.get("show")){var s=Mgt(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),h=Oe({strokeContainThreshold:c},d),p=new Tl(n,h);W(xgt,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(h,u,n,s,c,a),dm(o,this._axisGroup,n)}}},e.prototype._refreshBrushController=function(n,r,a,i,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=Ft.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:Sae(f),isTargetByCursor:wae(f,s,i),getLinearBrushOtherExtent:_ae(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(Egt(a))},e.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=Be(r,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!a.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Vn);function Tgt(t,e,n){return n&&n.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function Egt(t){var e=t.axis;return Be(t.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(n[0],!0),e.dataToCoord(n[1],!0)]}})}function Mgt(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}const kgt=Cgt;var Dgt={type:"axisAreaSelect",event:"axisAreaSelected"};function Rgt(t){t.registerAction(Dgt,function(e,n){n.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,n){n.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var Lgt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function xae(t){t.registerComponentView(Kpt),t.registerComponentModel(Xpt),t.registerCoordinateSystem("parallel",ogt),t.registerPreprocessor(zpt),t.registerComponentModel(i8),t.registerComponentView(kgt),Iv(t,"parallel",i8,Lgt),Rgt(t)}function Agt(t){Ht(xae),t.registerChartView(Opt),t.registerSeriesModel(Bpt),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Fpt)}var Ogt=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),Ngt=function(t){me(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Ogt},e.prototype.buildPath=function(n,r){var a=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+a,r.y2),n.bezierCurveTo(r.cpx2+a,r.cpy2,r.cpx1+a,r.cpy1,r.x1+a,r.y1)):(n.lineTo(r.x2,r.y2+a),n.bezierCurveTo(r.cpx2,r.cpy2+a,r.cpx1,r.cpy1+a,r.x1,r.y1+a)),n.closePath()},e.prototype.highlight=function(){_l(this)},e.prototype.downplay=function(){wl(this)},e}(Wt),$gt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return e.prototype.render=function(n,r,a){var i=this,o=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),h=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(p){var v=new Ngt,g=Rt(v);g.dataIndex=p.dataIndex,g.seriesIndex=n.seriesIndex,g.dataType="edge";var y=p.getModel(),m=y.getModel("lineStyle"),b=m.get("curveness"),_=p.node1.getLayout(),x=p.node1.getModel(),w=x.get("localX"),C=x.get("localY"),T=p.node2.getLayout(),k=p.node2.getModel(),E=k.get("localX"),M=k.get("localY"),D=p.getLayout(),R,A,V,P,N,I,L,$;v.shape.extent=Math.max(1,D.dy),v.shape.orient=h,h==="vertical"?(R=(w!=null?w*u:_.x)+D.sy,A=(C!=null?C*c:_.y)+_.dy,V=(E!=null?E*u:T.x)+D.ty,P=M!=null?M*c:T.y,N=R,I=A*(1-b)+P*b,L=V,$=A*b+P*(1-b)):(R=(w!=null?w*u:_.x)+_.dx,A=(C!=null?C*c:_.y)+D.sy,V=E!=null?E*u:T.x,P=(M!=null?M*c:T.y)+D.ty,N=R*(1-b)+V*b,I=A,L=R*b+V*(1-b),$=P),v.setShape({x1:R,y1:A,x2:V,y2:P,cpx1:N,cpy1:I,cpx2:L,cpy2:$}),v.useStyle(m.getItemStyle()),d8(v.style,h,p);var U=""+y.get("value"),j=Rr(y,"edgeLabel");Jr(v,j,{labelFetcher:{getFormattedLabel:function(te,re,ne,J,he,ue){return n.getFormattedLabel(te,re,"edge",J,Ro(he,j.normal&&j.normal.get("formatter"),U),ue)}},labelDataIndex:p.dataIndex,defaultText:U}),v.setTextConfig({position:"inside"});var Y=y.getModel("emphasis");Qr(v,y,"lineStyle",function(te){var re=te.getItemStyle();return d8(re,h,p),re}),s.add(v),d.setItemGraphicEl(p.dataIndex,v);var oe=Y.get("focus");qn(v,oe==="adjacency"?p.getAdjacentDataIndices():oe==="trajectory"?p.getTrajectoryDataIndices():oe,Y.get("blurScope"),Y.get("disabled"))}),o.eachNode(function(p){var v=p.getLayout(),g=p.getModel(),y=g.get("localX"),m=g.get("localY"),b=g.getModel("emphasis"),_=new en({shape:{x:y!=null?y*u:v.x,y:m!=null?m*c:v.y,width:v.dx,height:v.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});Jr(_,Rr(g),{labelFetcher:{getFormattedLabel:function(w,C){return n.getFormattedLabel(w,C,"node")}},labelDataIndex:p.dataIndex,defaultText:p.id}),_.disableLabelAnimation=!0,_.setStyle("fill",p.getVisual("color")),_.setStyle("decal",p.getVisual("style").decal),Qr(_,g),s.add(_),f.setItemGraphicEl(p.dataIndex,_),Rt(_).dataType="node";var x=b.get("focus");qn(_,x==="adjacency"?p.getAdjacentDataIndices():x==="trajectory"?p.getTrajectoryDataIndices():x,b.get("blurScope"),b.get("disabled"))}),f.eachItemGraphicEl(function(p,v){var g=f.getItemModel(v);g.get("draggable")&&(p.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},p.ondragend=function(){i._focusAdjacencyDisabled=!1},p.draggable=!0,p.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(Igt(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Cn);function d8(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),a=n.node2.getVisual("color");nt(r)&&nt(a)&&(t.fill=new ap(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function Igt(t,e,n){var r=new en({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return $n(r,{shape:{width:t.width+20}},e,n),r}const Bgt=$gt;var Vgt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){var a=n.edges||n.links,i=n.data||n.nodes,o=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new wn(o[l],this,r));if(i&&a){var u=aae(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getData().getItemLayout(p);if(g){var y=g.depth,m=v.levelModels[y];m&&(h.parentModel=m)}return h}),d.wrapMethod("getItemModel",function(h,p){var v=h.parentModel,g=v.getGraph().getEdgeByIndex(p),y=g.node1.getLayout();if(y){var m=y.depth,b=v.levelModels[m];b&&(h.parentModel=b)}return h})}},e.prototype.setNodePosition=function(n,r){var a=this.option.data||this.option.nodes,i=a[n];i.localX=r[0],i.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(n,r,a){function i(h){return isNaN(h)||h==null}if(a==="edge"){var o=this.getDataParams(n,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Lr("nameValue",{name:u,value:l,noValue:i(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,a).data.name;return Lr("nameValue",{name:d!=null?d+"":null,value:f,noValue:i(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(n,r){var a=t.prototype.getDataParams.call(this,n,r);if(a.value==null&&r==="node"){var i=this.getGraph().getNodeByIndex(n),o=i.getLayout().value;a.value=o}return a},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(An);const Pgt=Vgt;function Fgt(t,e){t.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=zgt(n,e);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;Hgt(u);var f=mn(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),p=n.get("nodeAlign");Ggt(u,c,r,a,o,s,d,h,p)})}function zgt(t,e){return vr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Ggt(t,e,n,r,a,i,o,s,l){Ugt(t,e,n,a,i,s,l),Ygt(t,e,i,a,r,o,s),r0t(t,s)}function Hgt(t){W(t,function(e){var n=Bu(e.outEdges,rw),r=Bu(e.inEdges,rw),a=e.getValue()||0,i=Math.max(n,r,a);e.setLayout({value:i},!0)})}function Ugt(t,e,n,r,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d=0;y&&g.depth>h&&(h=g.depth),v.setLayout({depth:y?g.depth:f},!0),i==="vertical"?v.setLayout({dy:n},!0):v.setLayout({dx:n},!0);for(var m=0;mf-1?h:f-1;o&&o!=="left"&&Wgt(t,o,i,C);var T=i==="vertical"?(a-n)/C:(r-n)/C;Kgt(t,T,i)}function Cae(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function Wgt(t,e,n,r){if(e==="right"){for(var a=[],i=t,o=0;i.length;){for(var s=0;s0;i--)l*=.99,Zgt(s,l,o),SE(s,a,n,r,o),n0t(s,l,o),SE(s,a,n,r,o)}function Xgt(t,e){var n=[],r=e==="vertical"?"y":"x",a=mD(t,function(i){return i.getLayout()[r]});return a.keys.sort(function(i,o){return i-o}),W(a.keys,function(i){n.push(a.buckets.get(i))}),n}function qgt(t,e,n,r,a,i){var o=1/0;W(t,function(s){var l=s.length,u=0;W(s,function(f){u+=f.getLayout().value});var c=i==="vertical"?(r-(l-1)*a)/u:(n-(l-1)*a)/u;c0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+e;var p=a==="vertical"?r:n;if(u=c-e-p,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[d]+e-c,u>0&&(s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]}})}function Zgt(t,e,n){W(t.slice().reverse(),function(r){W(r,function(a){if(a.outEdges.length){var i=Bu(a.outEdges,Qgt,n)/Bu(a.outEdges,rw);if(isNaN(i)){var o=a.outEdges.length;i=o?Bu(a.outEdges,Jgt,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-Ju(a,n))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-Ju(a,n))*e;a.setLayout({y:l},!0)}}})})}function Qgt(t,e){return Ju(t.node2,e)*t.getValue()}function Jgt(t,e){return Ju(t.node2,e)}function e0t(t,e){return Ju(t.node1,e)*t.getValue()}function t0t(t,e){return Ju(t.node1,e)}function Ju(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function rw(t){return t.getValue()}function Bu(t,e,n){for(var r=0,a=t.length,i=-1;++io&&(o=l)}),W(r,function(s){var l=new Xr({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&W(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function i0t(t){t.registerChartView(Bgt),t.registerSeriesModel(Pgt),t.registerLayout(Fgt),t.registerVisual(a0t),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Tae=function(){function t(){}return t.prototype.getInitialData=function(e,n){var r,a=n.getComponent("xAxis",this.get("xAxisIndex")),i=n.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",r=a.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=i.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[a,i],p=h[c].get("type"),v=h[1-c].get("type"),g=e.data;if(g&&l){var y=[];W(g,function(_,x){var w;Ie(_)?(w=_.slice(),_.unshift(x)):Ie(_.value)?(w=Oe({},_),w.value=w.value.slice(),_.value.unshift(x)):w=_,y.push(w)}),e.data=y}var m=this.defaultValueDimensions,b=[{name:f,type:W_(p),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:W_(v),dimsDef:m.slice()}];return bp(this,{coordDimensions:b,dimensionsCount:m.length+1,encodeDefaulter:Dt(Kee,b,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),Eae=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(An);Jn(Eae,Tae,!0);const o0t=Eae;var s0t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=n.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=n.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var c=i.getItemLayout(u),f=h8(c,i,u,l,!0);i.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!i.hasValue(u)){o.remove(f);return}var d=i.getItemLayout(u);f?(Fo(f),Mae(d,f,i,u)):f=h8(d,i,u,l),o.add(f),i.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=i},e.prototype.remove=function(n){var r=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(i){i&&r.remove(i)})},e.type="boxplot",e}(Cn),l0t=function(){function t(){}return t}(),u0t=function(t){me(e,t);function e(n){var r=t.call(this,n)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new l0t},e.prototype.buildPath=function(n,r){var a=r.points,i=0;for(n.moveTo(a[i][0],a[i][1]),i++;i<4;i++)n.lineTo(a[i][0],a[i][1]);for(n.closePath();iv){var _=[y,b];r.push(_)}}}return{boxData:n,outliers:r}}var y0t={type:"echarts:boxplot",transform:function(e){var n=e.upstream;if(n.sourceFormat!==pa){var r="";hn(r)}var a=g0t(n.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function m0t(t){t.registerSeriesModel(o0t),t.registerChartView(f0t),t.registerLayout(d0t),t.registerTransform(y0t)}var b0t=["color","borderColor"],S0t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},e.prototype.incrementalPrepareRender=function(n,r,a){this._clear(),this._updateDrawMode(n)},e.prototype.incrementalRender=function(n,r,a,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},e.prototype.eachRendered=function(n){dc(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n){var r=n.getData(),a=this._data,i=this.group,o=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),r.diff(a).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&v8(u,f))return;var d=_E(f,c,!0);$n(d,{shape:{points:f.ends}},n,c),wE(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=a.getItemGraphicEl(f);if(!r.hasValue(c)){i.remove(d);return}var h=r.getItemLayout(c);if(s&&v8(u,h)){i.remove(d);return}d?(sn(d,{shape:{points:h.ends}},n,c),Fo(d)):d=_E(h),wE(d,r,c,o),i.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=a.getItemGraphicEl(c);f&&i.remove(f)}).execute(),this._data=r},e.prototype._renderLarge=function(n){this._clear(),p8(n,this.group);var r=n.get("clip",!0)?l2(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(n,r){for(var a=r.getData(),i=a.getLayout("isSimpleBox"),o;(o=n.next())!=null;){var s=a.getItemLayout(o),l=_E(s);wE(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(n,r){p8(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(n){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Cn),_0t=function(){function t(){}return t}(),w0t=function(t){me(e,t);function e(n){var r=t.call(this,n)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new _0t},e.prototype.buildPath=function(n,r){var a=r.points;this.__simpleBox?(n.moveTo(a[4][0],a[4][1]),n.lineTo(a[6][0],a[6][1])):(n.moveTo(a[0][0],a[0][1]),n.lineTo(a[1][0],a[1][1]),n.lineTo(a[2][0],a[2][1]),n.lineTo(a[3][0],a[3][1]),n.closePath(),n.moveTo(a[4][0],a[4][1]),n.lineTo(a[5][0],a[5][1]),n.moveTo(a[6][0],a[6][1]),n.lineTo(a[7][0],a[7][1]))},e}(Wt);function _E(t,e,n){var r=t.ends;return new w0t({shape:{points:n?x0t(r,t):r},z2:100})}function v8(t,e){for(var n=!0,r=0;r0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);t===0&&(a=n.get(["itemStyle","borderColorDoji"]));var i=n.getModel("itemStyle").getItemStyle(b0t);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const T0t=S0t;var kae=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(n,r,a){var i=r.getItemLayout(n);return i&&a.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(An);Jn(kae,Tae,!0);const E0t=kae;function M0t(t){!t||!Ie(t.series)||W(t.series,function(e){mt(e)&&e.type==="k"&&(e.type="candlestick")})}var k0t=["itemStyle","borderColor"],D0t=["itemStyle","borderColor0"],R0t=["itemStyle","borderColorDoji"],L0t=["itemStyle","color"],A0t=["itemStyle","color0"],O0t={seriesType:"candlestick",plan:vp(),performRawSeries:!0,reset:function(t,e){function n(i,o){return o.get(i>0?L0t:A0t)}function r(i,o){return o.get(i===0?R0t:i>0?k0t:D0t)}if(!e.isSeriesFiltered(t)){var a=t.pipelineContext.large;return!a&&{progress:function(i,o){for(var s;(s=i.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=n(u,l),c.stroke=r(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");Oe(f,c)}}}}}};const N0t=O0t;var $0t={seriesType:"candlestick",plan:vp(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=I0t(t,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=Be(n.mapDimensionsAll(o[i]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:t.pipelineContext.large?p:h};function h(v,g){for(var y,m=g.getStore();(y=v.next())!=null;){var b=m.get(s,y),_=m.get(u,y),x=m.get(c,y),w=m.get(f,y),C=m.get(d,y),T=Math.min(_,x),k=Math.max(_,x),E=N(T,b),M=N(k,b),D=N(w,b),R=N(C,b),A=[];I(A,M,0),I(A,E,1),A.push($(R),$(M),$(D),$(E));var V=g.getItemModel(y),P=!!V.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:g8(m,y,_,x,c,P),initBaseline:_>x?M[i]:E[i],ends:A,brushRect:L(w,C,b)})}function N(U,j){var Y=[];return Y[a]=j,Y[i]=U,isNaN(j)||isNaN(U)?[NaN,NaN]:e.dataToPoint(Y)}function I(U,j,Y){var oe=j.slice(),te=j.slice();oe[a]=pS(oe[a]+r/2,1,!1),te[a]=pS(te[a]-r/2,1,!0),Y?U.push(oe,te):U.push(te,oe)}function L(U,j,Y){var oe=N(U,Y),te=N(j,Y);return oe[a]-=r/2,te[a]-=r/2,{x:oe[0],y:oe[1],width:r,height:te[1]-oe[1]}}function $(U){return U[a]=pS(U[a],1),U}}function p(v,g){for(var y=vs(v.count*4),m=0,b,_=[],x=[],w,C=g.getStore(),T=!!t.get(["itemStyle","borderColorDoji"]);(w=v.next())!=null;){var k=C.get(s,w),E=C.get(u,w),M=C.get(c,w),D=C.get(f,w),R=C.get(d,w);if(isNaN(k)||isNaN(D)||isNaN(R)){y[m++]=NaN,m+=3;continue}y[m++]=g8(C,w,E,M,c,T),_[a]=k,_[i]=D,b=e.dataToPoint(_,null,x),y[m++]=b?b[0]:NaN,y[m++]=b?b[1]:NaN,_[i]=R,b=e.dataToPoint(_,null,x),y[m++]=b?b[1]:NaN}g.setLayout("largePoints",y)}}};function g8(t,e,n,r,a,i){var o;return n>r?o=-1:n0?t.get(a,e-1)<=r?1:-1:1,o}function I0t(t,e){var n=t.getBaseAxis(),r,a=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/e.count()),i=Je(Vt(t.get("barMaxWidth"),a),a),o=Je(Vt(t.get("barMinWidth"),1),a),s=t.get("barWidth");return s!=null?Je(s,a):Math.max(Math.min(a/2,i),o)}const B0t=$0t;function V0t(t){t.registerChartView(T0t),t.registerSeriesModel(E0t),t.registerPreprocessor(M0t),t.registerVisual(N0t),t.registerLayout(B0t)}function y8(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?n:null,fill:e.brushType==="fill"?n:null}})})}var P0t=function(t){me(e,t);function e(n,r){var a=t.call(this)||this,i=new mm(n,r),o=new Ct;return a.add(i),a.add(o),a.updateData(n,r),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,a=n.color,i=n.rippleNumber,o=this.childAt(1),s=0;s0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;vt(f)?d=f(a):d=f,i.__t>0&&(d=-s*i.__t),this._animateSymbol(i,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(n,r,a,i,o){if(r>0){n.__t=0;var s=this,l=n.animate("",i).when(o?r*2:r,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(n)});i||l.done(function(){s.remove(n)}),l.start()}},e.prototype._getLineLength=function(n){return ol(n.__p1,n.__cp1)+ol(n.__cp1,n.__p2)},e.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(n,r,a){this.childAt(0).updateData(n,r,a),this._updateEffectSymbol(n,r)},e.prototype._updateSymbolPosition=function(n){var r=n.__p1,a=n.__p2,i=n.__cp1,o=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=$r,c=rD;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var f=n.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),d=n.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var h=n.__t<1?d[0]-f[0]:f[0]-d[0],p=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(p,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},e}(Dae);const X0t=Y0t;var q0t=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),Z0t=function(t){me(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new q0t},e.prototype.buildPath=function(n,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o0){n.moveTo(a[o++],a[o++]);for(var l=1;l0){var h=(u+f)/2-(c-d)*i,p=(c+d)/2-(f-u)*i;n.quadraticCurveTo(h,p,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(n,r){var a=this.shape,i=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u0)for(var f=i[u++],d=i[u++],h=1;h0){var g=(f+p)/2-(d-v)*o,y=(d+v)/2-(p-f)*o;if(IJ(f,d,g,y,p,v,s,n,r))return l}else if(uu(f,d,p,v,s,n,r))return l;l++}return-1},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(n=a[0],r=a[1],i.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,a=r.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const J0t=Q0t;var eyt={seriesType:"lines",plan:vp(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(a,i){var o=[];if(r){var s=void 0,l=a.end-a.start;if(n){for(var u=0,c=a.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=n.get("clip",!0)&&l2(n.coordinateSystem,!1,n);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,a){var i=n.getData(),o=this._updateLineDraw(i,n);o.incrementalPrepareUpdate(i),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(n,r,a){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},e.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},e.prototype.updateTransform=function(n,r,a){var i=n.getData(),o=n.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=Lae.reset(n,r,a);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(n,r){var a=this._lineDraw,i=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return(!a||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new J0t:new C3(o?i?X0t:Rae:i?Dae:x3),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(n){return!!n.get(["effect","show"])},e.prototype._clearLayer=function(n){var r=n.getZr(),a=r.painter.getType()==="svg";!a&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(n,r){this.remove(n,r)},e.type="lines",e}(Cn);const nyt=tyt;var ryt=typeof Uint32Array>"u"?Array:Uint32Array,ayt=typeof Float64Array>"u"?Array:Float64Array;function m8(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Be(e,function(n){var r=[n[0].coord,n[1].coord],a={coords:r};return n[0].name&&(a.fromName=n[0].name),n[1].name&&(a.toName=n[1].name),Mx([a,n[0],n[1]])}))}var iyt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return e.prototype.init=function(n){n.data=n.data||[],m8(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(n){if(m8(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=ey(this._flatCoords,r.flatCoords),this._flatCoordsOffset=ey(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},e.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),a=r.option instanceof Array?r.option:r.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},e.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[n*2],i=this._flatCoordsOffset[n*2+1],o=0;o ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(An);const oyt=iyt;function lb(t){return t instanceof Array||(t=[t,t]),t}var syt={seriesType:"lines",reset:function(t){var e=lb(t.get("symbol")),n=lb(t.get("symbolSize")),r=t.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function a(i,o){var s=i.getItemModel(o),l=lb(s.getShallow("symbol",!0)),u=lb(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?a:null}}};const lyt=syt;function uyt(t){t.registerChartView(nyt),t.registerSeriesModel(oyt),t.registerLayout(Lae),t.registerVisual(lyt)}var cyt=256,fyt=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Io.createCanvas();this.canvas=e}return t.prototype.update=function(e,n,r,a,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=e.length;f.width=n,f.height=r;for(var p=0;p0){var D=o(b)?l:u;b>0&&(b=b*E+T),x[w++]=D[M],x[w++]=D[M+1],x[w++]=D[M+2],x[w++]=D[M+3]*b*256}else w+=4}return d.putImageData(_,0,0),f},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Io.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;e.width=r,e.height=r;var a=e.getContext("2d");return a.clearRect(0,0,r,r),a.shadowOffsetX=r,a.shadowBlur=this.blurSize,a.shadowColor="#000",a.beginPath(),a.arc(-n,n,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},t.prototype._getGradient=function(e,n){for(var r=this._gradientPixels,a=r[n]||(r[n]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[n](s/255,!0,i),a[o++]=i[0],a[o++]=i[1],a[o++]=i[2],a[o++]=i[3];return a},t}();const dyt=fyt;function hyt(t,e,n){var r=t[1]-t[0];e=Be(e,function(o){return{interval:[(o.interval[0]-t[0])/r,(o.interval[1]-t[0])/r]}});var a=e.length,i=0;return function(o){var s;for(s=i;s=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s=e[0]&&r<=e[1]}}function b8(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var pyt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i;r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=n.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(n,a,0,n.getData().count()):b8(o)&&this._renderOnGeo(o,n,i,a)},e.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll()},e.prototype.incrementalRender=function(n,r,a,i){var o=r.coordinateSystem;o&&(b8(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},e.prototype.eachRendered=function(n){dc(this._progressiveEls||this.group,n)},e.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=xd(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),p=s.getAxis("y");u=h.getBandWidth()+.5,c=p.getBandWidth()+.5,f=h.scale.getExtent(),d=p.scale.getExtent()}for(var v=this.group,g=n.getData(),y=n.getModel(["emphasis","itemStyle"]).getItemStyle(),m=n.getModel(["blur","itemStyle"]).getItemStyle(),b=n.getModel(["select","itemStyle"]).getItemStyle(),_=n.get(["itemStyle","borderRadius"]),x=Rr(n),w=n.getModel("emphasis"),C=w.get("focus"),T=w.get("blurScope"),k=w.get("disabled"),E=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],M=a;Mf[1]||Vd[1])continue;var P=s.dataToPoint([A,V]);D=new en({shape:{x:P[0]-u/2,y:P[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(g.get(E[1],M)))continue;D=new en({z2:1,shape:s.dataToRect([g.get(E[0],M)]).contentShape,style:R})}if(g.hasItemOption){var N=g.getItemModel(M),I=N.getModel("emphasis");y=I.getModel("itemStyle").getItemStyle(),m=N.getModel(["blur","itemStyle"]).getItemStyle(),b=N.getModel(["select","itemStyle"]).getItemStyle(),_=N.get(["itemStyle","borderRadius"]),C=I.get("focus"),T=I.get("blurScope"),k=I.get("disabled"),x=Rr(N)}D.shape.r=_;var L=n.getRawValue(M),$="-";L&&L[2]!=null&&($=L[2]+""),Jr(D,x,{labelFetcher:n,labelDataIndex:M,defaultOpacity:R.opacity,defaultText:$}),D.ensureState("emphasis").style=y,D.ensureState("blur").style=m,D.ensureState("select").style=b,qn(D,C,T,k),D.incremental=o,o&&(D.states.emphasis.hoverLayer=!0),v.add(D),g.setItemGraphicEl(M,D),this._progressiveEls&&this._progressiveEls.push(D)}},e.prototype._renderOnGeo=function(n,r,a,i){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new dyt;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),p=Math.min(c.width+c.x,i.getWidth()),v=Math.min(c.height+c.y,i.getHeight()),g=p-d,y=v-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(m,function(C,T,k){var E=n.dataToPoint([C,T]);return E[0]-=d,E[1]-=h,E.push(k),E}),_=a.getExtent(),x=a.type==="visualMap.continuous"?vyt(_,a.option.range):hyt(_,a.getPieceList(),a.option.selected);u.update(b,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var w=new Fr({style:{width:g,height:y,x:d,y:h,image:u.canvas},silent:!0});this.group.add(w)},e.type="heatmap",e}(Cn);const gyt=pyt;var yyt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return Ps(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var n=hp.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(An);const myt=yyt;function byt(t){t.registerChartView(gyt),t.registerSeriesModel(myt)}var Syt=["itemStyle","borderWidth"],S8=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],TE=new Po,_yt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=this.group,o=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:S8[+c],categoryDim:S8[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var p=w8(o,h),v=_8(o,h,p,d),g=x8(o,d,v);o.setItemGraphicEl(h,g),i.add(g),T8(g,d,v)}}).update(function(h,p){var v=s.getItemGraphicEl(p);if(!o.hasValue(h)){i.remove(v);return}var g=w8(o,h),y=_8(o,h,g,d),m=Bae(o,y);v&&m!==v.__pictorialShapeStr&&(i.remove(v),o.setItemGraphicEl(h,null),v=null),v?kyt(v,d,y):v=x8(o,d,y,!0),o.setItemGraphicEl(h,v),v.__pictorialSymbolMeta=y,i.add(v),T8(v,d,y)}).remove(function(h){var p=s.getItemGraphicEl(h);p&&C8(s,h,p.__pictorialSymbolMeta.animationModel,p)}).execute(),this._data=o,this.group},e.prototype.remove=function(n,r){var a=this.group,i=this._data;n.get("animation")?i&&i.eachItemGraphicEl(function(o){C8(i,Rt(o).dataIndex,n,o)}):a.removeAll()},e.type="pictorialBar",e}(Cn);function _8(t,e,n,r){var a=t.getItemLayout(e),i=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:e,layout:a,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};wyt(n,i,a,r,d),xyt(t,e,a,i,o,d.boundingLength,d.pxSign,c,r,d),Cyt(n,d.symbolScale,u,r,d);var h=d.symbolSize,p=wd(n.get("symbolOffset"),h);return Tyt(n,h,a,i,o,p,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function wyt(t,e,n,r,a){var i=r.valueDim,o=t.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[i.wh]<=0),c;if(Ie(o)){var f=[EE(s,o[0])-l,EE(s,o[1])-l];f[1]0?1:-1}function EE(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function xyt(t,e,n,r,a,i,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),h=t.getItemVisual(e,"symbolSize"),p;Ie(h)?p=h.slice():h==null?p=["100%","100%"]:p=[h,h],p[f.index]=Je(p[f.index],d),p[c.index]=Je(p[c.index],r?d:Math.abs(i)),u.symbolSize=p;var v=u.symbolScale=[p[0]/s,p[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function Cyt(t,e,n,r,a){var i=t.get(Syt)||0;i&&(TE.attr({scaleX:e[0],scaleY:e[1],rotation:n}),TE.updateTransform(),i/=TE.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function Tyt(t,e,n,r,a,i,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,p=f.pxSign,v=Math.max(e[h.index]+s,0),g=v;if(r){var y=Math.abs(l),m=Tr(t.get("symbolMargin"),"15%")+"",b=!1;m.lastIndexOf("!")===m.length-1&&(b=!0,m=m.slice(0,m.length-1));var _=Je(m,e[h.index]),x=Math.max(v+_*2,0),w=b?0:_*2,C=tN(r),T=C?r:E8((y+w)/x),k=y-T*v;_=k/2/(b?T:Math.max(T-1,1)),x=v+_*2,w=b?0:_*2,!C&&r!=="fixed"&&(T=u?E8((Math.abs(u)+w)/x):0),g=T*x-w,f.repeatTimes=T,f.symbolMargin=_}var E=p*(g/2),M=f.pathPosition=[];M[d.index]=n[d.wh]/2,M[h.index]=o==="start"?E:o==="end"?l-E:l/2,i&&(M[0]+=i[0],M[1]+=i[1]);var D=f.bundlePosition=[];D[d.index]=n[d.xy],D[h.index]=n[h.xy];var R=f.barRectShape=Oe({},n);R[h.wh]=p*Math.max(Math.abs(n[h.wh]),Math.abs(M[h.index]+E)),R[d.wh]=n[d.wh];var A=f.clipShape={};A[d.xy]=-n[d.xy],A[d.wh]=c.ecSize[d.wh],A[h.xy]=0,A[h.wh]=n[h.wh]}function Aae(t){var e=t.symbolPatternSize,n=ir(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function Oae(t,e,n,r){var a=t.__pictorialBundle,i=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,f=i[e.valueDim.index]+o+n.symbolMargin*2;for(A3(t,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c0:y<0)&&(m=u-1-v),g[l.index]=f*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Nae(t,e,n,r){var a=t.__pictorialBundle,i=t.__pictorialMainPath;i?ev(i,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(i=t.__pictorialMainPath=Aae(n),a.add(i),ev(i,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function $ae(t,e,n){var r=Oe({},e.barRectShape),a=t.__pictorialBarRect;a?ev(a,null,{shape:r},e,n):(a=t.__pictorialBarRect=new en({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,t.add(a))}function Iae(t,e,n,r){if(n.symbolClip){var a=t.__pictorialClipPath,i=Oe({},n.clipShape),o=e.valueDim,s=n.animationModel,l=n.dataIndex;if(a)sn(a,{shape:i},s,l);else{i[o.wh]=0,a=new en({shape:i}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],hm[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function w8(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=Eyt,n.isAnimationEnabled=Myt,n}function Eyt(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function Myt(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function x8(t,e,n,r){var a=new Ct,i=new Ct;return a.add(i),a.__pictorialBundle=i,i.x=n.bundlePosition[0],i.y=n.bundlePosition[1],n.symbolRepeat?Oae(a,e,n):Nae(a,e,n),$ae(a,n,r),Iae(a,e,n,r),a.__pictorialShapeStr=Bae(t,n),a.__pictorialSymbolMeta=n,a}function kyt(t,e,n){var r=n.animationModel,a=n.dataIndex,i=t.__pictorialBundle;sn(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?Oae(t,e,n,!0):Nae(t,e,n,!0),$ae(t,n,!0),Iae(t,e,n,!0)}function C8(t,e,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];A3(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),W(i,function(o){qu(o,{scaleX:0,scaleY:0},n,e,function(){r.parent&&r.parent.remove(r)})}),t.setItemGraphicEl(e,null)}function Bae(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function A3(t,e,n){W(t.__pictorialBundle.children(),function(r){r!==t.__pictorialBarRect&&e.call(n,r)})}function ev(t,e,n,r,a,i){e&&t.attr(e),r.symbolClip&&!a?n&&t.attr(n):n&&hm[a?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,i)}function T8(t,e,n){var r=n.dataIndex,a=n.itemModel,i=a.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),c=i.get("focus"),f=i.get("blurScope"),d=i.get("scale");A3(t,function(v){if(v instanceof Fr){var g=v.style;v.useStyle(Oe({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},n.style))}else v.useStyle(n.style);var y=v.ensureState("emphasis");y.style=o,d&&(y.scaleX=v.scaleX*1.1,y.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=n.z2});var h=e.valueDim.posDesc[+(n.boundingLength>0)],p=t.__pictorialBarRect;Jr(p,Rr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:$v(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),qn(t,c,f,i.get("disabled"))}function E8(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const Dyt=_yt;var Ryt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return e.prototype.getInitialData=function(n){return n.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=hc(q_.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(q_);const Lyt=Ryt;function Ayt(t){t.registerChartView(Dyt),t.registerSeriesModel(Lyt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,Dt(mne,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,bne("pictorialBar"))}var Oyt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return e.prototype.render=function(n,r,a){var i=n.getData(),o=this,s=this.group,l=n.getLayerSeries(),u=i.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(g){return g.name}var h=new xl(this._layersSeries||[],l,d,d),p=[];h.add(at(v,this,"add")).update(at(v,this,"update")).remove(at(v,this,"remove")).execute();function v(g,y,m){var b=o._layers;if(g==="remove"){s.remove(b[y]);return}for(var _=[],x=[],w,C=l[y].indices,T=0;Ti&&(i=s),r.push(s)}for(var u=0;ui&&(i=f)}return{y0:a,max:i}}function Fyt(t){t.registerChartView($yt),t.registerSeriesModel(Byt),t.registerLayout(Vyt),t.registerProcessor(_m("themeRiver"))}var zyt=2,Gyt=4,Hyt=function(t){me(e,t);function e(n,r,a,i){var o=t.call(this)||this;o.z2=zyt,o.textConfig={inside:!0},Rt(o).seriesIndex=r.seriesIndex;var s=new Jt({z2:Gyt,silent:n.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,n,r,a,i),o}return e.prototype.updateData=function(n,r,a,i,o){this.node=r,r.piece=this,a=a||this._seriesModel,i=i||this._ecModel;var s=this;Rt(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=Oe({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var h=r.getVisual("decal");h&&(d.decal=Nv(h,o));var p=Of(l.getModel("itemStyle"),f,!0);Oe(f,p),W($a,function(m){var b=s.ensureState(m),_=l.getModel([m,"itemStyle"]);b.style=_.getItemStyle();var x=Of(_,f);x&&(b.shape=x)}),n?(s.setShape(f),s.shape.r=c.r0,$n(s,{shape:{r:c.r}},a,r.dataIndex)):(sn(s,{shape:f},a),Fo(s)),s.useStyle(d),this._updateLabel(a);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;qn(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n){var r=this,a=this.node.getModel(),i=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,p=i.get("minAngle")/180*Math.PI,v=i.get("show")&&!(p!=null&&Math.abs(s)Math.PI/2?"right":"left"):!D||D==="center"?(s===2*Math.PI&&o.r0===0?E=0:E=(o.r+o.r0)/2,D="center"):D==="left"?(E=o.r0+M,l>Math.PI/2&&(D="right")):D==="right"&&(E=o.r-M,l>Math.PI/2&&(D="left")),_.style.align=D,_.style.verticalAlign=g(m,"verticalAlign")||"middle",_.x=E*u+o.cx,_.y=E*c+o.cy;var R=g(m,"rotate"),A=0;R==="radial"?(A=Eo(-l),A>Math.PI/2&&AMath.PI/2?A-=Math.PI:A<-Math.PI/2&&(A+=Math.PI)):rn(R)&&(A=R*Math.PI/180),_.rotation=Eo(A)});function g(y,m){var b=y.get(m);return b??i.get(m)}d.dirtyStyle()},e}(Ia);const k8=Hyt;var yR="sunburstRootToNode",D8="sunburstHighlight",Uyt="sunburstUnhighlight";function Wyt(t){t.registerAction({type:yR,update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=Cy(e,[yR],a);if(o){var s=a.getViewRoot();s&&(e.direction=y3(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),t.registerAction({type:D8,update:"none"},function(e,n,r){e=Oe({},e),n.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=Cy(e,[D8],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(Oe(e,{type:"highlight"}))}),t.registerAction({type:Uyt,update:"updateView"},function(e,n,r){e=Oe({},e),r.dispatchAction(Oe(e,{type:"downplay"}))})}var jyt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a,i){var o=this;this.seriesModel=n,this.api=a,this.ecModel=r;var s=n.getData(),l=s.tree.root,u=n.getViewRoot(),c=this.group,f=n.get("renderLabelForZeroData"),d=[];u.eachNode(function(m){d.push(m)});var h=this._oldChildren||[];p(d,h),y(l,u),this._initEvents(),this._oldChildren=d;function p(m,b){if(m.length===0&&b.length===0)return;new xl(b,m,_,_).add(x).update(x).remove(Dt(x,null)).execute();function _(w){return w.getId()}function x(w,C){var T=w==null?null:m[w],k=C==null?null:b[C];v(T,k)}}function v(m,b){if(!f&&m&&!m.getValue()&&(m=null),m!==l&&b!==l){if(b&&b.piece)m?(b.piece.updateData(!1,m,n,r,a),s.setItemGraphicEl(m.dataIndex,b.piece)):g(b);else if(m){var _=new k8(m,n,r,a);c.add(_),s.setItemGraphicEl(m.dataIndex,_)}}}function g(m){m&&m.piece&&(c.remove(m.piece),m.piece=null)}function y(m,b){b.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,n,r,a):(o.virtualPiece=new k8(m,n,r,a),c.add(o.virtualPiece)),b.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(b.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var a=!1,i=n.seriesModel.getViewRoot();i.eachNode(function(o){if(!a&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";$_(u,c)}}a=!0}})})},e.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:yR,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},e.prototype.containPoint=function(n,r){var a=r.getData(),i=a.getItemLayout(0);if(i){var o=n[0]-i.cx,s=n[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Cn);const Kyt=jyt;var Yyt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n,r){var a={name:n.name,children:n.data};Vae(a);var i=this._levelModels=Be(n.levels||[],function(l){return new wn(l,this,r)},this),o=g3.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=i[f.depth];return d&&(u.parentModel=d),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=f2(a,this),r},e.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Gre(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(An);function Vae(t){var e=0;W(t.children,function(r){Vae(r);var a=r.value;Ie(a)&&(a=a[0]),e+=a});var n=t.value;Ie(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),Ie(t.value)?t.value[0]=n:t.value=n}const Xyt=Yyt;var R8=Math.PI/180;function qyt(t,e,n){e.eachSeriesByType(t,function(r){var a=r.get("center"),i=r.get("radius");Ie(i)||(i=[0,i]),Ie(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=Je(a[0],o),c=Je(a[1],s),f=Je(i[0],l/2),d=Je(i[1],l/2),h=-r.get("startAngle")*R8,p=r.get("minAngle")*R8,v=r.getData().tree.root,g=r.getViewRoot(),y=g.depth,m=r.get("sort");m!=null&&Pae(g,m);var b=0;W(g.children,function(P){!isNaN(P.getValue())&&b++});var _=g.getValue(),x=Math.PI/(_||b)*2,w=g.depth>0,C=g.height-(w?-1:1),T=(d-f)/(C||1),k=r.get("clockwise"),E=r.get("stillShowZeroSum"),M=k?1:-1,D=function(P,N){if(P){var I=N;if(P!==v){var L=P.getValue(),$=_===0&&E?x:L*x;$1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&nt(s)&&(s=C_(s,(r.depth-1)/(i-1)*.5)),s}t.eachSeriesByType("sunburst",function(r){var a=r.getData(),i=a.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(o,r,i.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");Oe(u,l)})})}function Jyt(t){t.registerChartView(Kyt),t.registerSeriesModel(Xyt),t.registerLayout(Dt(qyt,"sunburst")),t.registerProcessor(Dt(_m,"sunburst")),t.registerVisual(Qyt),Wyt(t)}var L8={color:"fill",borderColor:"stroke"},emt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},hl=an(),tmt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(n,r){return Ps(null,this)},e.prototype.getDataParams=function(n,r,a){var i=t.prototype.getDataParams.call(this,n,r);return a&&(i.info=hl(a).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(An);const nmt=tmt;function rmt(t,e){return e=e||[0,0],Be(["x","y"],function(n,r){var a=this.getAxis(n),i=e[r],o=t[r]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function amt(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(n){return t.dataToPoint(n)},size:at(rmt,t)}}}function imt(t,e){return e=e||[0,0],Be([0,1],function(n){var r=e[n],a=t[n]/2,i=[],o=[];return i[n]=r-a,o[n]=r+a,i[1-n]=o[1-n]=e[1-n],Math.abs(this.dataToPoint(i)[n]-this.dataToPoint(o)[n])},this)}function omt(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(n){return t.dataToPoint(n)},size:at(imt,t)}}}function smt(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,a=(t instanceof Array?t[0]:t)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-a)-n.dataToCoord(r+a))}function lmt(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(n){return t.dataToPoint(n)},size:at(smt,t)}}}function umt(t,e){return e=e||[0,0],Be(["Radius","Angle"],function(n,r){var a="get"+n+"Axis",i=this[a](),o=e[r],s=t[r]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function cmt(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(a){var i=e.dataToRadius(a[0]),o=n.dataToAngle(a[1]),s=t.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:at(umt,t)}}}function fmt(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,a){return t.dataToPoint(r,a)}}}}function Fae(t,e,n,r){return t&&(t.legacy||t.legacy!==!1&&!n&&!r&&e!=="tspan"&&(e==="text"||ot(t,"text")))}function zae(t,e,n){var r=t,a,i,o;if(e==="text")o=r;else{o={},ot(r,"text")&&(o.text=r.text),ot(r,"rich")&&(o.rich=r.rich),ot(r,"textFill")&&(o.fill=r.textFill),ot(r,"textStroke")&&(o.stroke=r.textStroke),ot(r,"fontFamily")&&(o.fontFamily=r.fontFamily),ot(r,"fontSize")&&(o.fontSize=r.fontSize),ot(r,"fontStyle")&&(o.fontStyle=r.fontStyle),ot(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=ot(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),ot(r,"textPosition")&&(a.position=r.textPosition),ot(r,"textOffset")&&(a.offset=r.textOffset),ot(r,"textRotation")&&(a.rotation=r.textRotation),ot(r,"textDistance")&&(a.distance=r.textDistance)}return A8(o,t),W(o.rich,function(l){A8(l,l)}),{textConfig:a,textContent:i}}function A8(t,e){e&&(e.font=e.textFont||e.font,ot(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),ot(e,"textAlign")&&(t.align=e.textAlign),ot(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),ot(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),ot(e,"textWidth")&&(t.width=e.textWidth),ot(e,"textHeight")&&(t.height=e.textHeight),ot(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),ot(e,"textPadding")&&(t.padding=e.textPadding),ot(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),ot(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),ot(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),ot(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),ot(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),ot(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),ot(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function O8(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var a=r.textPosition.indexOf("inside")>=0,i=t.fill||"#000";N8(r,e);var o=r.textFill==null;return a?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=i),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,W(e.rich,function(s){N8(s,s)}),r}function N8(t,e){e&&(ot(e,"fill")&&(t.textFill=e.fill),ot(e,"stroke")&&(t.textStroke=e.fill),ot(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),ot(e,"font")&&(t.font=e.font),ot(e,"fontStyle")&&(t.fontStyle=e.fontStyle),ot(e,"fontWeight")&&(t.fontWeight=e.fontWeight),ot(e,"fontSize")&&(t.fontSize=e.fontSize),ot(e,"fontFamily")&&(t.fontFamily=e.fontFamily),ot(e,"align")&&(t.textAlign=e.align),ot(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),ot(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),ot(e,"width")&&(t.textWidth=e.width),ot(e,"height")&&(t.textHeight=e.height),ot(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),ot(e,"padding")&&(t.textPadding=e.padding),ot(e,"borderColor")&&(t.textBorderColor=e.borderColor),ot(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),ot(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),ot(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),ot(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),ot(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),ot(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),ot(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),ot(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),ot(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),ot(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var Gae={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},$8=Yt(Gae);qi(Ds,function(t,e){return t[e]=1,t},{});Ds.join(", ");var aw=["","style","shape","extra"],Vv=an();function O3(t,e,n,r,a){var i=t+"Animation",o=ip(t,r,a)||{},s=Vv(e).userDuring;return o.duration>0&&(o.during=s?at(gmt,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),Oe(o,n[i]),o}function _S(t,e,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=Vv(t),u=e.style;l.userDuring=e.during;var c={},f={};if(mmt(t,e,f),B8("shape",e,f),B8("extra",e,f),!i&&s&&(ymt(t,e,c),I8("shape",t,e,c),I8("extra",t,e,c),bmt(t,e,u,c)),f.style=u,dmt(t,f,o),vmt(t,e),s)if(i){var d={};W(aw,function(p){var v=p?e[p]:e;v&&v.enterFrom&&(p&&(d[p]=d[p]||{}),Oe(p?d[p]:d,v.enterFrom))});var h=O3("enter",t,e,n,a);h.duration>0&&t.animateFrom(d,h)}else hmt(t,e,a||0,n,c);Hae(t,e),u?t.dirty():t.markRedraw()}function Hae(t,e){for(var n=Vv(t).leaveToProps,r=0;r0&&t.animateFrom(a,i)}}function vmt(t,e){ot(e,"silent")&&(t.silent=e.silent),ot(e,"ignore")&&(t.ignore=e.ignore),t instanceof Zi&&ot(e,"invisible")&&(t.invisible=e.invisible),t instanceof Wt&&ot(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var es={},pmt={setTransform:function(t,e){return es.el[t]=e,this},getTransform:function(t){return es.el[t]},setShape:function(t,e){var n=es.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=es.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=es.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=es.el.style;if(e)return e[t]},setExtra:function(t,e){var n=es.el.extra||(es.el.extra={});return n[t]=e,this},getExtra:function(t){var e=es.el.extra;if(e)return e[t]}};function gmt(){var t=this,e=t.el;if(e){var n=Vv(e).userDuring,r=t.userDuring;if(n!==r){t.el=t.userDuring=null;return}es.el=e,r(pmt)}}function I8(t,e,n,r){var a=n[t];if(a){var i=e[t],o;if(i){var s=n.transition,l=a.transition;if(l)if(!o&&(o=r[t]={}),Xf(l))Oe(o,i);else for(var u=xn(l),c=0;c=0){!o&&(o=r[t]={});for(var h=Yt(i),c=0;c=0)){var d=t.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=r.style={});for(var p=Yt(n),u=0;u=0?e.getStore().get(N,V):void 0}var I=e.get(P.name,V),L=P&&P.ordinalMeta;return L?L.categories[I]:I}function w(A,V){V==null&&(V=u);var P=e.getItemVisual(V,"style"),N=P&&P.fill,I=P&&P.opacity,L=m(V,xu).getItemStyle();N!=null&&(L.fill=N),I!=null&&(L.opacity=I);var $={inheritColor:nt(N)?N:"#000"},U=b(V,xu),j=Mn(U,null,$,!1,!0);j.text=U.getShallow("show")?Vt(t.getFormattedLabel(V,xu),$v(e,V)):null;var Y=O_(U,$,!1);return k(A,L),L=O8(L,j,Y),A&&T(L,A),L.legacy=!0,L}function C(A,V){V==null&&(V=u);var P=m(V,vl).getItemStyle(),N=b(V,vl),I=Mn(N,null,null,!0,!0);I.text=N.getShallow("show")?Ro(t.getFormattedLabel(V,vl),t.getFormattedLabel(V,xu),$v(e,V)):null;var L=O_(N,null,!0);return k(A,P),P=O8(P,I,L),A&&T(P,A),P.legacy=!0,P}function T(A,V){for(var P in V)ot(V,P)&&(A[P]=V[P])}function k(A,V){A&&(A.textFill&&(V.textFill=A.textFill),A.textPosition&&(V.textPosition=A.textPosition))}function E(A,V){if(V==null&&(V=u),ot(L8,A)){var P=e.getItemVisual(V,"style");return P?P[L8[A]]:null}if(ot(emt,A))return e.getItemVisual(V,A)}function M(A){if(i.type==="cartesian2d"){var V=i.getBaseAxis();return mlt(gt({axis:V},A))}}function D(){return n.getCurrentSeriesIndices()}function R(A){return Eee(A,n)}}function Rmt(t){var e={};return W(t.dimensions,function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var a=r.coordDim,i=e[a]=e[a]||[];i[r.coordDimIndex]=t.getDimensionIndex(n)}}),e}function RE(t,e,n,r,a,i,o){if(!r){i.remove(e);return}var s=V3(t,e,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&qn(s,r.focus,r.blurScope,r.emphasisDisabled),s}function V3(t,e,n,r,a,i){var o=-1,s=e;e&&Kae(e,r,a)&&(o=zt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=I3(r),s&&Tmt(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),xi.normal.cfg=xi.normal.conOpt=xi.emphasis.cfg=xi.emphasis.conOpt=xi.blur.cfg=xi.blur.conOpt=xi.select.cfg=xi.select.conOpt=null,xi.isLegacy=!1,Amt(u,n,r,a,l,xi),Lmt(u,n,r,a,l),B3(t,u,n,r,xi,a,l),ot(r,"info")&&(hl(u).info=r.info);for(var c=0;c=0?i.replaceAt(u,o):i.add(u),u}function Kae(t,e,n){var r=hl(t),a=e.type,i=e.shape,o=e.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&Bmt(i)&&Yae(i)!==r.customPathData||a==="image"&&ot(o,"image")&&o.image!==r.customImagePath}function Lmt(t,e,n,r,a){var i=n.clipPath;if(i===!1)t&&t.getClipPath()&&t.removeClipPath();else if(i){var o=t.getClipPath();o&&Kae(o,i,r)&&(o=null),o||(o=I3(i),t.setClipPath(o)),B3(null,o,e,i,null,r,a)}}function Amt(t,e,n,r,a,i){if(!t.isGroup){P8(n,null,i),P8(n,vl,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=t.getTextContent();if(o===!1)c&&t.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=I3(o),t.setTextContent(c)),B3(null,c,e,o,null,r,a);for(var f=o&&o.style,d=0;d=c;h--){var p=e.childAt(h);Nmt(e,p,a)}}}function Nmt(t,e,n){e&&v2(e,hl(t).option,n)}function $mt(t){new xl(t.oldChildren,t.newChildren,F8,F8,t).add(z8).update(z8).remove(Imt).execute()}function F8(t,e){var n=t&&t.name;return n??xmt+e}function z8(t,e){var n=this.context,r=t!=null?n.newChildren[t]:null,a=e!=null?n.oldChildren[e]:null;V3(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function Imt(t){var e=this.context,n=e.oldChildren[t];n&&v2(n,hl(n).option,e.seriesModel)}function Yae(t){return t&&(t.pathData||t.d)}function Bmt(t){return t&&(ot(t,"pathData")||ot(t,"d"))}function Vmt(t){t.registerChartView(Mmt),t.registerSeriesModel(nmt)}var gf=an(),G8=_t,LE=at,Pmt=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,a){var i=n.get("value"),o=n.get("status");if(this._axisModel=e,this._axisPointerModel=n,this._api=r,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,n);if(!s)s=this._group=new Ct,this.createPointerEl(s,u,e,n),this.createLabelEl(s,u,e,n),r.getZr().add(s);else{var d=Dt(H8,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}W8(s,n,!0),this._renderHandle(i)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,n){var r=n.get("animation"),a=e.axis,i=a.type==="category",o=n.get("snap");if(!o&&!i)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=u3(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},t.prototype.makeElOption=function(e,n,r,a,i){},t.prototype.createPointerEl=function(e,n,r,a){var i=n.pointer;if(i){var o=gf(e).pointerEl=new hm[i.type](G8(n.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,n,r,a){if(n.label){var i=gf(e).labelEl=new Jt(G8(n.label));e.add(i),U8(i,a)}},t.prototype.updatePointerEl=function(e,n,r){var a=gf(e).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),r(a,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(e,n,r,a){var i=gf(e).labelEl;i&&(i.setStyle(n.label.style),r(i,{x:n.label.x,y:n.label.y}),U8(i,a))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),a=this._handle,i=n.getModel("handle"),o=n.get("status");if(!i.get("show")||!o||o==="hide"){a&&r.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=op(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Sl(u.event)},onmousedown:LE(this._onHandleDragMove,this,0,0),drift:LE(this._onHandleDragMove,this),ondragend:LE(this._onHandleDragEnd,this)}),r.add(a)),W8(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");Ie(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,pp(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,n){H8(this._axisPointerModel,!n&&this._moveAnimation,this._handle,AE(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,n){var r=this._handle;if(r){this._dragging=!0;var a=this.updateHandleTransform(AE(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(AE(a)),gf(r).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var n=e.getZr(),r=this._group,a=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),yy(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,n,r){return r=r||0,{x:e[r],y:e[1-r],width:n[r],height:n[1-r]}},t}();function H8(t,e,n,r){Xae(gf(n).lastProp,r)||(gf(n).lastProp=r,e?sn(n,r,t):(n.stopAnimation(),n.attr(r)))}function Xae(t,e){if(mt(t)&&mt(e)){var n=!0;return W(e,function(r,a){n=n&&Xae(t[a],r)}),!!n}else return t===e}function U8(t,e){t[e.get(["label","show"])?"show":"hide"]()}function AE(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function W8(t,e,n){var r=e.get("z"),a=e.get("zlevel");t&&t.traverse(function(i){i.type!=="group"&&(r!=null&&(i.z=r),a!=null&&(i.zlevel=a),i.silent=n)})}const F3=Pmt;function z3(t){var e=t.get("type"),n=t.getModel(e+"Style"),r;return e==="line"?(r=n.getLineStyle(),r.fill=null):e==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function qae(t,e,n,r,a){var i=n.get("value"),o=Zae(i,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=_d(s.get("padding")||0),u=s.getFont(),c=om(o,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var v=a.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),Fmt(f,d,h,r);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:Mn(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function Fmt(t,e,n,r){var a=r.getWidth(),i=r.getHeight();t[0]=Math.min(t[0]+e,a)-e,t[1]=Math.min(t[1]+n,i)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Zae(t,e,n,r,a){t=e.scale.parse(t);var i=e.scale.getLabel({value:t},{precision:a.precision}),o=a.formatter;if(o){var s={value:e3(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};W(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),nt(o)?i=o.replace("{value}",i):vt(o)&&(i=o(s))}return i}function G3(t,e,n){var r=pi();return fc(r,r,n.rotation),Bo(r,r,n.position),Oo([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Qae(t,e,n,r,a,i){var o=Tl.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),qae(e,r,a,i,{position:G3(r.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function H3(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function Jae(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function j8(t,e,n,r,a,i){return{cx:t,cy:e,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var zmt=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=K8(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=z3(i),h=Gmt[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var p=tR(l.model,a);Qae(r,n,p,a,i,o)},e.prototype.getHandleTransform=function(n,r,a){var i=tR(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=G3(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=K8(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:p[c]}},e}(F3);function K8(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var Gmt={line:function(t,e,n){var r=H3([e,n[0]],[e,n[1]],Y8(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:Jae([e-r/2,n[0]],[r,a],Y8(t))}}};function Y8(t){return t.dim==="x"?0:1}const Hmt=zmt;var Umt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(Zt);const Wmt=Umt;var cl=an(),jmt=W;function eie(t,e,n){if(!nn.node){var r=e.getZr();cl(r).records||(cl(r).records={}),Kmt(r,e);var a=cl(r).records[t]||(cl(r).records[t]={});a.handler=n}}function Kmt(t,e){if(cl(t).initialized)return;cl(t).initialized=!0,n("click",Dt(X8,"click")),n("mousemove",Dt(X8,"mousemove")),n("globalout",Xmt);function n(r,a){t.on(r,function(i){var o=qmt(e);jmt(cl(t).records,function(s){s&&a(s,i,o.dispatchAction)}),Ymt(o.pendings,e)})}}function Ymt(t,e){var n=t.showTip.length,r=t.hideTip.length,a;n?a=t.showTip[n-1]:r&&(a=t.hideTip[r-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function Xmt(t,e,n){t.handler("leave",null,n)}function X8(t,e,n,r){e.handler(t,n,r)}function qmt(t){var e={showTip:[],hideTip:[]},n=function(r){var a=e[r.type];a?a.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function SR(t,e){if(!nn.node){var n=e.getZr(),r=(cl(n).records||{})[t];r&&(cl(n).records[t]=null)}}var Zmt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=r.getComponent("tooltip"),o=n.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";eie("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(n,r){SR("axisPointer",r)},e.prototype.dispose=function(n,r){SR("axisPointer",r)},e.type="axisPointer",e}(Vn);const Qmt=Zmt;function tie(t,e){var n=[],r=t.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=ad(i,t);if(o==null||o<0||Ie(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=i.mapDimension(d),v=[];v[h]=i.get(p,o),v[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(v)||[]}else n=l.dataToPoint(i.getValues(Be(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:s}}var q8=an();function Jmt(t,e,n){var r=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||at(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){wS(a)&&(a=tie({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=wS(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||wS(a),d={},h={},p={list:[],map:{}},v={showPointer:Dt(t1t,h),showTooltip:Dt(n1t,p)};W(s.coordSysMap,function(y,m){var b=l||y.containPoint(a);W(s.coordSysAxesInfo[m],function(_,x){var w=_.axis,C=o1t(u,_);if(!f&&b&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=w.pointToData(a)),T!=null&&Z8(_,T,v,!1,d)}})});var g={};return W(c,function(y,m){var b=y.linkGroup;b&&!h[m]&&W(b.axesInfo,function(_,x){var w=h[x];if(_!==y&&w){var C=w.value;b.mapper&&(C=y.axis.scale.parse(b.mapper(C,Q8(_),Q8(y)))),g[y.key]=C}})}),W(g,function(y,m){Z8(c[m],y,v,!0,d)}),r1t(h,c,d),a1t(p,a,t,o),i1t(c,o,n),d}}function Z8(t,e,n,r,a){var i=t.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var o=e1t(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&Oe(a,s[0]),!r&&t.snap&&i.containData(l)&&l!=null&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,o,l)}}function e1t(t,e){var n=e.axis,r=n.dim,a=t,i=[],o=Number.MAX_VALUE,s=-1;return W(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,t,n);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],t,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=t-f,v=Math.abs(p);v<=o&&((v=0&&s<0)&&(o=v,s=p,a=f,i.length=0),W(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function t1t(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function n1t(t,e,n,r){var a=n.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=xy(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function r1t(t,e,n){var r=n.axesInfo=[];W(e,function(a,i){var o=a.axisPointerModel.option,s=t[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function a1t(t,e,n,r){if(wS(e)||!t.list.length){r({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function i1t(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",i=q8(r)[a]||{},o=q8(r)[a]={};W(t,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&W(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];W(i,function(u,c){!o[c]&&l.push(u)}),W(o,function(u,c){!i[c]&&s.push(u)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function o1t(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function Q8(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function wS(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function Tm(t){Cd.registerAxisPointerClass("CartesianAxisPointer",Hmt),t.registerComponentModel(Wmt),t.registerComponentView(Qmt),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!Ie(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=Kft(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Jmt)}function s1t(t){Ht(Mre),Ht(Tm)}var l1t=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(r),d=i.get("type");if(d&&d!=="none"){var h=z3(i),p=c1t[d](s,l,f,c);p.style=h,n.graphicKey=p.type,n.pointer=p}var v=i.get(["label","margin"]),g=u1t(r,a,i,l,v);qae(n,a,i,o,g)},e}(F3);function u1t(t,e,n,r,a){var i=e.axis,o=i.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(i.dim==="radius"){var d=pi();fc(d,d,s),Bo(d,d,[r.cx,r.cy]),u=Oo([o,-a],d);var h=e.getModel("axisLabel").get("rotate")||0,p=Tl.innerTextLayout(s,h*Math.PI/180,-1);c=p.textAlign,f=p.textVerticalAlign}else{var v=l[1];u=r.coordToPoint([v+a,o]);var g=r.cx,y=r.cy;c=Math.abs(u[0]-g)/v<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-y)/v<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var c1t={line:function(t,e,n,r){return t.dim==="angle"?{type:"Line",shape:H3(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var a=Math.max(1,t.getBandWidth()),i=Math.PI/180;return t.dim==="angle"?{type:"Sector",shape:j8(e.cx,e.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:j8(e.cx,e.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const f1t=l1t;var d1t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.findAxisModel=function(n){var r,a=this.ecModel;return a.eachComponent(n,function(i){i.getCoordSysModel()===this&&(r=i)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Zt);const h1t=d1t;var U3=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",lr).models[0]},e.type="polarAxis",e}(Zt);Jn(U3,mp);var v1t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="angleAxis",e}(U3),p1t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="radiusAxis",e}(U3),W3=function(t){me(e,t);function e(n,r){return t.call(this,"radius",n,r)||this}return e.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},e}(no);W3.prototype.dataToRadius=no.prototype.dataToCoord;W3.prototype.radiusToData=no.prototype.coordToData;const g1t=W3;var y1t=an(),j3=function(t){me(e,t);function e(n,r){return t.call(this,"angle",n,r||[0,360])||this}return e.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),a=n.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=om(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),p=y1t(n.model),v=p.lastAutoInterval,g=p.lastTickCount;return v!=null&&g!=null&&Math.abs(v-h)<=1&&Math.abs(g-o)<=1&&v>h?h=v:(p.lastTickCount=o,p.lastAutoInterval=h),h},e}(no);j3.prototype.dataToAngle=no.prototype.dataToCoord;j3.prototype.angleToData=no.prototype.coordToData;const m1t=j3;var nie=["radius","angle"],b1t=function(){function t(e){this.dimensions=nie,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new g1t,this._angleAxis=new m1t,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(e){var n=this.pointToCoord(e);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},t.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},t.prototype.getAxis=function(e){var n="_"+e+"Axis";return this[n]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(e){var n=[],r=this._angleAxis,a=this._radiusAxis;return r.scale.type===e&&n.push(r),a.scale.type===e&&n.push(a),n},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(e){var n=this._angleAxis;return e===n?this._radiusAxis:n},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(e){var n=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},t.prototype.dataToPoint=function(e,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],n),this._angleAxis.dataToAngle(e[1],n)])},t.prototype.pointToData=function(e,n){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},t.prototype.pointToCoord=function(e){var n=e[0]-this.cx,r=e[1]-this.cy,a=this.getAngleAxis(),i=a.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var u=Math.atan2(-r,n)/Math.PI*180,c=us;)u+=c*360;return[l,u]},t.prototype.coordToPoint=function(e){var n=e[0],r=e[1]/180*Math.PI,a=Math.cos(r)*n+this.cx,i=-Math.sin(r)*n+this.cy;return[a,i]},t.prototype.getArea=function(){var e=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var a=e.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-a[0]*i,endAngle:-a[1]*i,clockwise:e.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},t.prototype.convertToPixel=function(e,n,r){var a=J8(n);return a===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=J8(n);return a===this?this.pointToData(r):null},t}();function J8(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const S1t=b1t;function _1t(t,e,n){var r=e.get("center"),a=n.getWidth(),i=n.getHeight();t.cx=Je(r[0],a),t.cy=Je(r[1],i);var o=t.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:Ie(l)||(l=[0,l]);var u=[Je(l[0],s),Je(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function w1t(t,e){var n=this,r=n.getAngleAxis(),a=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),a.scale.setExtent(1/0,-1/0),t.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();W(j_(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),W(j_(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),ld(r.scale,r.model),ld(a.scale,a.model),r.type==="category"&&!r.onBand){var i=r.getExtent(),o=360/r.scale.count();r.inverse?i[1]+=o:i[1]-=o,r.setExtent(i[0],i[1])}}function x1t(t){return t.mainType==="angleAxis"}function eG(t,e){if(t.type=e.get("type"),t.scale=gm(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),x1t(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var C1t={dimensions:nie,create:function(t,e){var n=[];return t.eachComponent("polar",function(r,a){var i=new S1t(a+"");i.update=w1t;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");eG(o,l),eG(s,u),_1t(i,r,e),n.push(i),r.coordinateSystem=i,i.model=r}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var a=r.getReferringComponents("polar",lr).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const T1t=C1t;var E1t=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ub(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),a=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:a[0],y2:a[1]}}function cb(t){var e=t.getRadiusAxis();return e.inverse?0:1}function tG(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var M1t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return e.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var a=n.axis,i=a.polar,o=i.getRadiusAxis().getExtent(),s=a.getTicksCoords(),l=a.getMinorTicksCoords(),u=Be(a.getViewLabels(),function(c){c=_t(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});tG(u),tG(s),W(E1t,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&k1t[c](this.group,n,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Cd),k1t={axisLine:function(t,e,n,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=cb(n),l=s?0:1,u;i[l]===0?u=new Po({shape:{cx:n.cx,cy:n.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new um({shape:{cx:n.cx,cy:n.cy,r:i[s],r0:i[l]},style:o.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,t.add(u)},axisTick:function(t,e,n,r,a,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[cb(n)],u=Be(r,function(c){return new Er({shape:ub(n,[l,l+s],c.coord)})});t.add(li(u,{style:gt(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,a,i){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[cb(n)],c=[],f=0;fy?"left":"right",_=Math.abs(g[1]-m)/v<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var x=s[p];mt(x)&&x.textStyle&&(h=new wn(x.textStyle,l,l.ecModel))}var w=new Jt({silent:Tl.isLabelSilent(e),style:Mn(h,{x:g[0],y:g[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:_})});if(t.add(w),c){var C=Tl.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=f.rawLabel,Rt(w).eventData=C}},this)},splitLine:function(t,e,n,r,a,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f=0?"p":"n",R=C;x&&(r[c][M]||(r[c][M]={p:C,n:C}),R=r[c][M][D]);var A=void 0,V=void 0,P=void 0,N=void 0;if(p.dim==="radius"){var I=p.dataToCoord(E)-C,L=l.dataToCoord(M);Math.abs(I)=N})}}})}function B1t(t){var e={};W(t,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=aie(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;e[l]=f;var h=rie(r);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var p=Je(r.get("barWidth"),c),v=Je(r.get("barMaxWidth"),c),g=r.get("barGap"),y=r.get("barCategoryGap");p&&!d[h].width&&(p=Math.min(f.remainedWidth,p),d[h].width=p,f.remainedWidth-=p),v&&(d[h].maxWidth=v),g!=null&&(f.gap=g),y!=null&&(f.categoryGap=y)});var n={};return W(e,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=Je(r.categoryGap,o),l=Je(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),W(i,function(v,g){var y=v.maxWidth;y&&y=n.y&&e[1]<=n.y+n.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=n.y&&e[0]<=n.y+n.height},t.prototype.pointToData=function(e){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(e[n.orient==="horizontal"?0:1]))]},t.prototype.dataToPoint=function(e){var n=this.getAxis(),r=this.getRect(),a=[],i=n.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[i]=n.toGlobalCoord(n.dataToCoord(+e)),a[1-i]=i===0?r.y+r.height/2:r.x+r.width/2,a},t.prototype.convertToPixel=function(e,n,r){var a=nG(n);return a===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=nG(n);return a===this?this.pointToData(r):null},t}();function nG(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function q1t(t,e){var n=[];return t.eachComponent("singleAxis",function(r,a){var i=new X1t(r,t,e);i.name="single_"+a,i.resize(r,e),r.coordinateSystem=i,n.push(i)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var a=r.getReferringComponents("singleAxis",lr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var Z1t={create:q1t,dimensions:oie};const Q1t=Z1t;var rG=["x","y"],J1t=["width","height"],ebt=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,a,i,o){var s=a.axis,l=s.coordinateSystem,u=NE(l,1-sw(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=z3(i),h=tbt[f](s,c,u);h.style=d,n.graphicKey=h.type,n.pointer=h}var p=_R(a);Qae(r,n,p,a,i,o)},e.prototype.getHandleTransform=function(n,r,a){var i=_R(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=G3(r.axis,n,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,a,i){var o=a.axis,s=o.coordinateSystem,l=sw(o),u=NE(s,l),c=[n.x,n.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=NE(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(F3),tbt={line:function(t,e,n){var r=H3([e,n[0]],[e,n[1]],sw(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=t.getBandWidth(),a=n[1]-n[0];return{type:"Rect",shape:Jae([e-r/2,n[0]],[r,a],sw(t))}}};function sw(t){return t.isHorizontal()?0:1}function NE(t,e){var n=t.getRect();return[n[rG[e]],n[rG[e]]+n[J1t[e]]]}const nbt=ebt;var rbt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="single",e}(Vn);function abt(t){Ht(Tm),Cd.registerAxisPointerClass("SingleAxisPointer",nbt),t.registerComponentView(rbt),t.registerComponentView(j1t),t.registerComponentModel(OE),Iv(t,"single",OE,OE.defaultOption),t.registerCoordinateSystem("single",Q1t)}var ibt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r,a){var i=cp(n);t.prototype.init.apply(this,arguments),aG(n,i)},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),aG(this.option,n)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Zt);function aG(t,e){var n=t.cellSize,r;Ie(n)?r=n:r=t.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=Be([0,1],function(i){return Xat(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});Zu(t,e,{type:"box",ignoreSize:a})}const obt=ibt;var sbt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){var i=this.group;i.removeAll();var o=n.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,i),this._renderLines(n,s,l,i),this._renderYearText(n,s,l,i),this._renderMonthText(n,u,l,i),this._renderWeekText(n,u,s,l,i)},e.prototype._renderDayRect=function(n,r,a){for(var i=n.coordinateSystem,o=n.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=r.start.time;u<=r.end.time;u=i.getNextNDay(u,1).time){var c=i.dataToRect([u],!1).tl,f=new en({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});a.add(f)}},e.prototype._renderLines=function(n,r,a,i){var o=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){p(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}p(s.getNextNDay(r.end.time,1).formatedDate);function p(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var g=o._getLinePointsOfOneWeek(n,v,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},e.prototype._getEdgesPoints=function(n,r,a){var i=[n[0].slice(),n[n.length-1].slice()],o=a==="horizontal"?0:1;return i[0][o]=i[0][o]-r/2,i[1][o]=i[1][o]+r/2,i},e.prototype._drawSplitline=function(n,r,a){var i=new Pa({z2:20,shape:{points:n},style:r});a.add(i)},e.prototype._getLinePointsOfOneWeek=function(n,r,a){for(var i=n.coordinateSystem,o=i.getDateInfo(r),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),c=i.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(n,r){return nt(n)&&n?Wat(n,r):vt(n)?n(r):r.nameMap},e.prototype._yearTextPositionControl=function(n,r,a,i,o){var s=r[0],l=r[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(i==="left"||i==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(n,r,a,i){var o=n.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=a==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},p=r.start.y;+r.end.y>+r.start.y&&(p=p+"-"+r.end.y);var v=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:p},y=this._formatterLabel(v,g),m=new Jt({z2:30,style:Mn(o,{text:y})});m.attr(this._yearTextPositionControl(m,h[l],a,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(n,r,a,i,o){var s="left",l="top",u=n[0],c=n[1];return a==="horizontal"?(c=c+o,r&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),i==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(n,r,a,i){var o=n.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||nt(s))&&(s&&(r=RD(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=c==="center",v=0;v=a.start.time&&r.times.end.time&&n.reverse(),n},t.prototype._getRangeInfo=function(e){var n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var a=Math.floor(n[1].time/$E)-Math.floor(n[0].time/$E)+1,i=new Date(n[0].time),o=i.getDate(),s=n[1].date.getDate();i.setDate(o+a-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-n[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-n[1].time)*u>0;)a-=u,i.setDate(l-u);var c=Math.floor((a+n[0].day+6)/7),f=r?-c+1:c-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:a,weeks:c,nthWeek:f,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(e,n,r){var a=this._getRangeInfo(r);if(e>a.weeks||e===0&&na.lweek)return null;var i=(e-1)*7-a.fweek+n,o=new Date(a.start.time);return o.setDate(+a.start.d+i),this.getDateInfo(o)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",function(a){var i=new t(a);r.push(i),a.coordinateSystem=i}),e.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=r[a.get("calendarIndex")||0])}),r},t.dimensions=["time","value"],t}();function iG(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}const cbt=ubt;function fbt(t){t.registerComponentModel(obt),t.registerComponentView(lbt),t.registerCoordinateSystem("calendar",cbt)}function dbt(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function oG(t,e){var n;return W(e,function(r){t[r]!=null&&t[r]!=="auto"&&(n=!0)}),n}function hbt(t,e,n){var r=Oe({},n),a=t[e],i=n.$action||"merge";i==="merge"?a?(It(a,r,!0),Zu(a,r,{ignoreSize:!0}),Gee(n,a),fb(n,a),fb(n,a,"shape"),fb(n,a,"style"),fb(n,a,"extra"),n.clipPath=a.clipPath):t[e]=r:i==="replace"?t[e]=r:i==="remove"&&a&&(t[e]=null)}var sie=["transition","enterFrom","leaveTo"],vbt=sie.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function fb(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),!(!t||!e))for(var r=n?sie:vbt,a=0;a=0;c--){var f=a[c],d=Sr(f.id,null),h=d!=null?o.get(d):null;if(h){var p=h.parent,y=Li(p),m=p===i?{width:s,height:l}:{width:y.width,height:y.height},b={},_=Zx(h,f,m,null,{hv:f.hv,boundingMode:f.bounding},b);if(!Li(h).isNew&&_){for(var x=f.transition,w={},C=0;C=0)?w[T]=k:h[T]=k}sn(h,w,n,0)}else h.attr(b)}}},e.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){xS(a,Li(a).option,r,n._lastGraphicModel)}),this._elMap=ct()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Vn);function wR(t){var e=ot(sG,t)?sG[t]:Ux(t),n=new e({});return Li(n).type=t,n}function lG(t,e,n,r){var a=wR(n);return e.add(a),r.set(t,a),Li(a).id=t,Li(a).isNew=!0,a}function xS(t,e,n,r){var a=t&&t.parent;a&&(t.type==="group"&&t.traverse(function(i){xS(i,e,n,r)}),v2(t,e,r),n.removeKey(Li(t).id))}function uG(t,e,n,r){t.isGroup||W([["cursor",Zi.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];ot(e,i)?t[i]=Vt(e[i],a[1]):t[i]==null&&(t[i]=a[1])}),W(Yt(e),function(a){if(a.indexOf("on")===0){var i=e[a];t[a]=vt(i)?i:null}}),ot(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function mbt(t){return t=Oe({},t),W(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(zee),function(e){delete t[e]}),t}function bbt(t,e,n){var r=Rt(t).eventData;!t.silent&&!t.ignore&&!r&&(r=Rt(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function Sbt(t){t.registerComponentModel(gbt),t.registerComponentView(ybt),t.registerPreprocessor(function(e){var n=e.graphic;Ie(n)?!n[0]||!n[0].elements?e.graphic=[{elements:n}]:e.graphic=[e.graphic[0]]:n&&!n.elements&&(e.graphic=[{elements:[n]}])})}var cG=["x","y","radius","angle","single"],_bt=["cartesian2d","polar","singleAxis"];function wbt(t){var e=t.get("coordinateSystem");return zt(_bt,e)>=0}function Cu(t){return t+"Axis"}function xbt(t,e){var n=ct(),r=[],a=ct();t.eachComponent({mainType:"dataZoom",query:e},function(c){a.get(c.uid)||s(c)});var i;do i=!1,t.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=n.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function lie(t){var e=t.ecModel,n={infoList:[],infoMap:ct()};return t.eachTargetAxis(function(r,a){var i=e.getComponent(Cu(r),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=n.infoMap.get(s);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(i)}}}),n}var IE=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),Cbt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return e.prototype.init=function(n,r,a){var i=fG(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},e.prototype.mergeOption=function(n){var r=fG(n);It(this.option,n,!0),It(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var a=this.settledOption;W([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(r[i[0]]=a[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=ct(),a=this._fillSpecifiedTargetAxis(r);a?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return W(cG,function(a){var i=this.getReferringComponents(Cu(a),knt);if(i.specified){r=!0;var o=new IE;W(i.models,function(s){o.add(s.componentIndex)}),n.set(a,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(n,r){var a=this.ecModel,i=!0;if(i){var o=r==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new IE;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",lr).models[0];h&&W(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",lr).models[0]&&d.add(p.componentIndex)})}}}i&&W(cG,function(u){if(i){var c=a.findComponents({mainType:Cu(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new IE;f.add(c[0].componentIndex),n.set(u,f),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(n){var r=this._rangePropMode,a=this.get("rangeMode");W([["start","startValue"],["end","endValue"]],function(i,o){var s=n[i[0]]!=null,l=n[i[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":a?r[o]=a[o]:s&&(r[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,a){n==null&&(n=this.ecModel.getComponent(Cu(r),a))},this),n},e.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(a,i){W(a.indexList,function(o){n.call(r,i,o)})})},e.prototype.getAxisProxy=function(n,r){var a=this.getAxisModel(n,r);if(a)return a.__dzAxisProxy},e.prototype.getAxisModel=function(n,r){var a=this._targetAxisInfoMap.get(n);if(a&&a.indexMap[r])return this.ecModel.getComponent(Cu(n),r)},e.prototype.setRawRange=function(n){var r=this.option,a=this.settledOption;W([["start","startValue"],["end","endValue"]],function(i){(n[i[0]]!=null||n[i[1]]!=null)&&(r[i[0]]=a[i[0]]=n[i[0]],r[i[1]]=a[i[1]]=n[i[1]])},this),this._updateRangeUse(n)},e.prototype.setCalculatedRange=function(n){var r=this.option;W(["start","startValue","end","endValue"],function(a){r[a]=n[a]})},e.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},e.prototype.getValueRange=function(n,r){if(n==null&&r==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,a=this._targetAxisInfoMap.keys(),i=0;io[1];if(b&&!_&&!x)return!0;b&&(g=!0),_&&(p=!0),x&&(v=!0)}return g&&p&&v})}else yh(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});yh(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;yh(["min","max"],function(a){var i=n.get(a+"Span"),o=n.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=yn(r[0]+o,r,[0,100],!0):i!=null&&(o=yn(i,[0,100],r,!0)-r[0]),e[a+"Span"]=i,e[a+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var a=QO(r,[0,500]);a=Math.min(a,20);var i=e.axis.scale.rawExtentInfo;n[0]!==0&&i.setDeterminedMinMax("min",+r[0].toFixed(a)),n[1]!==100&&i.setDeterminedMinMax("max",+r[1].toFixed(a)),i.freeze()}},t}();function Lbt(t,e,n){var r=[1/0,-1/0];yh(n,function(o){zlt(r,o.getData(),e)});var a=t.getAxisModel(),i=Tne(a.axis.scale,a,r).calculate();return[i.min,i.max]}const Abt=Rbt;var Obt={getTargetSeries:function(t){function e(a){t.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=t.getComponent(Cu(o),s);a(o,s,l,i)})})}e(function(a,i,o,s){o.__dzAxisProxy=null});var n=[];e(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Abt(a,i,s,t),n.push(o.__dzAxisProxy))});var r=ct();return W(n,function(a){W(a.getTargetSeriesModels(),function(i){r.set(i.uid,i)})}),r},overallReset:function(t,e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).reset(n)}),n.eachTargetAxis(function(r,a){n.getAxisProxy(r,a).filterData(n,e)})}),t.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var a=r.getDataPercentWindow(),i=r.getDataValueWindow();n.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const Nbt=Obt;function $bt(t){t.registerAction("dataZoom",function(e,n){var r=xbt(n,e);W(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var hG=!1;function Y3(t){hG||(hG=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,Nbt),$bt(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Ibt(t){t.registerComponentModel(Ebt),t.registerComponentView(Dbt),Y3(t)}var Oi=function(){function t(){}return t}(),uie={};function mh(t,e){uie[t]=e}function cie(t){return uie[t]}var Bbt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;W(this.option.feature,function(r,a){var i=cie(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),It(r,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(Zt);const Vbt=Bbt;function Pbt(t,e,n){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=vr(r,i,a);Wf(e.get("orient"),t,e.get("itemGap"),o.width,o.height),Zx(t,r,i,a)}function fie(t,e){var n=_d(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new en({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var Fbt=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,a,i){var o=this.group;if(o.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];W(u,function(p,v){f.push(v)}),new xl(this._featureNames||[],f).add(d).update(d).remove(Dt(d,null)).execute(),this._featureNames=f;function d(p,v){var g=f[p],y=f[v],m=u[g],b=new wn(m,n,n.ecModel),_;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(zbt(g))_={onclick:b.option.onclick,featureName:g};else{var x=cie(g);if(!x)return;_=new x}c[g]=_}else if(_=c[y],!_)return;_.uid=up("toolbox-feature"),_.model=b,_.ecModel=r,_.api=a;var w=_ instanceof Oi;if(!g&&y){w&&_.dispose&&_.dispose(r,a);return}if(!b.get("show")||w&&_.unusable){w&&_.remove&&_.remove(r,a);return}h(b,_,g),b.setIconStatus=function(C,T){var k=this.option,E=this.iconPaths;k.iconStatus=k.iconStatus||{},k.iconStatus[C]=T,E[C]&&(T==="emphasis"?_l:wl)(E[C])},_ instanceof Oi&&_.render&&_.render(b,r,a,i)}function h(p,v,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),b=v instanceof Oi&&v.getIcons?v.getIcons():p.get("icon"),_=p.get("title")||{},x,w;nt(b)?(x={},x[g]=b):x=b,nt(_)?(w={},w[g]=_):w=_;var C=p.iconPaths={};W(x,function(T,k){var E=op(T,{},{x:-s/2,y:-s/2,width:s,height:s});E.setStyle(y.getItemStyle());var M=E.ensureState("emphasis");M.style=m.getItemStyle();var D=new Jt({style:{text:w[k],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});E.setTextContent(D),sp({el:E,componentModel:n,itemName:k,formatterParamsExtra:{title:w[k]}}),E.__title=w[k],E.on("mouseover",function(){var R=m.getItemStyle(),A=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";D.setStyle({fill:m.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),E.setTextConfig({position:m.get("textPosition")||A}),D.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",k])!=="emphasis"&&a.leaveEmphasis(this),D.hide()}),(p.get(["iconStatus",k])==="emphasis"?_l:wl)(E),o.add(E),E.on("click",at(v.onclick,v,r,a,k)),C[k]=E})}Pbt(o,n,a),o.add(fie(o.getBoundingRect(),n)),l||o.eachChild(function(p){var v=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),b=m&&m.ensureState("emphasis");if(b&&!vt(b)&&v){var _=b.style||(b.style={}),x=om(v,Jt.makeFont(_)),w=p.x+o.x,C=p.y+o.y+s,T=!1;C+x.height>a.getHeight()&&(y.position="top",T=!0);var k=T?-5-x.height:s+10;w+x.width/2>a.getWidth()?(y.position=["100%",k],_.align="right"):w-x.width/2<0&&(y.position=[0,k],_.align="left")}})},e.prototype.updateView=function(n,r,a,i){W(this._features,function(o){o instanceof Oi&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(n,r){W(this._features,function(a){a instanceof Oi&&a.remove&&a.remove(n,r)}),this.group.removeAll()},e.prototype.dispose=function(n,r){W(this._features,function(a){a instanceof Oi&&a.dispose&&a.dispose(n,r)})},e.type="toolbox",e}(Vn);function zbt(t){return t.indexOf("my")===0}const Gbt=Fbt;var Hbt=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){var a=this.model,i=a.get("name")||n.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=nn.browser;if(vt(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,p=o?decodeURIComponent(d[1]):d[1];h&&(p=window.atob(p));var v=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,v)}else{var b=document.createElement("iframe");document.body.appendChild(b);var _=b.contentWindow,x=_.document;x.open("image/svg+xml","replace"),x.write(p),x.close(),_.focus(),x.execCommand("SaveAs",!0,v),document.body.removeChild(b)}}else{var w=a.get("lang"),C='',T=window.open();T.document.write(C),T.document.title=i}},e.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(Oi);const Ubt=Hbt;var vG="__ec_magicType_stack__",Wbt=[["line","bar"],["stack"]],jbt=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),a={};return W(n.get("type"),function(i){r[i]&&(a[i]=r[i])}),a},e.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(n,r,a){var i=this.model,o=i.get(["seriesIndex",a]);if(pG[a]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,p=pG[a](d,h,f,i);p&&(gt(p,f.option),s.series.push(p));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=v.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",b=f.getReferringComponents(m,lr).models[0],_=b.componentIndex;s[m]=s[m]||[];for(var x=0;x<=_;x++)s[m][_]=s[m][_]||{};s[m][_].boundaryGap=a==="bar"}}};W(Wbt,function(f){zt(f,a)>=0&&W(f,function(d){i.setIconStatus(d,"normal")})}),i.setIconStatus(a,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=a;a==="stack"&&(u=It({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",a])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(Oi),pG={line:function(t,e,n,r){if(t==="bar")return It({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if(t==="line")return It({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var a=n.get("stack")===vG;if(t==="line"||t==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),It({id:e,stack:a?"":vG},r.get(["option","stack"])||{},!0)}};Wo({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});const Kbt=jbt;var p2=new Array(60).join("-"),Pv=" ";function Ybt(t){var e={},n=[],r=[];return t.eachRawSeries(function(a){var i=a.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else n.push(a)}else n.push(a)}),{seriesGroupByCategoryAxis:e,other:n,meta:r}}function Xbt(t){var e=[];return W(t,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(Be(n.series,function(h){return h.name})),l=[a.model.getCategories()];W(n.series,function(h){var p=h.getRawData();l.push(h.getRawData().mapArray(p.mapDimension(o),function(v){return v}))});for(var u=[s.join(Pv)],c=0;c=0)return!0}var xR=new RegExp("["+Pv+"]+","g");function Jbt(t){for(var e=t.split(/\n+/g),n=lw(e.shift()).split(xR),r=[],a=Be(n,function(l){return{name:l,data:[]}}),i=0;i=0;i--){var o=n[i];if(o[a])break}if(i<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();n[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),n.push(e)}function oSt(t){var e=X3(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return die(n,function(a,i){for(var o=e.length-1;o>=0;o--)if(a=e[o][i],a){r[i]=a;break}}),r}function sSt(t){hie(t).snapshots=null}function lSt(t){return X3(t).length}function X3(t){var e=hie(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var uSt=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){sSt(n),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(n){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(Oi);Wo({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});const cSt=uSt;var fSt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],dSt=function(){function t(e,n,r){var a=this;this._targetInfoList=[];var i=gG(n,e);W(hSt,function(o,s){(!r||!r.include||zt(r.include,s)>=0)&&o(i,a._targetInfoList)})}return t.prototype.setOutputRanges=function(e,n){return this.matchOutputRanges(e,n,function(r,a,i){if((r.coordRanges||(r.coordRanges=[])).push(a),!r.coordRange){r.coordRange=a;var o=BE[r.brushType](0,i,a);r.__rangeOffset={offset:SG[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,n,r){W(e,function(a){var i=this.findTargetInfo(a,n);i&&i!==!0&&W(i.coordSyses,function(o){var s=BE[a.brushType](1,o,a.range,!0);r(a,s.values,o,n)})},this)},t.prototype.setInputRanges=function(e,n){W(e,function(r){var a=this.findTargetInfo(r,n);if(r.range=r.range||[],a&&a!==!0){r.panelId=a.panelId;var i=BE[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?SG[r.brushType](i.values,o.offset,vSt(i.xyMinMax,o.xyMinMax)):i.values}},this)},t.prototype.makePanelOpts=function(e,n){return Be(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:Sae(a),isTargetByCursor:wae(a,e,r.coordSysModel),getLinearBrushOtherExtent:_ae(a)}})},t.prototype.controlSeries=function(e,n,r){var a=this.findTargetInfo(e,r);return a===!0||a&&zt(a.coordSyses,n.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,n){for(var r=this._targetInfoList,a=gG(n,e),i=0;it[1]&&t.reverse(),t}function gG(t,e){return e0(t,e,{includeMainTypes:fSt})}var hSt={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,a=t.gridModels,i=ct(),o={},s={};!n&&!r&&!a||(W(n,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),W(r,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),W(a,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,c=[];W(u.getCartesians(),function(f,d){(zt(n,f.getAxis("x").model)>=0||zt(r,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:mG.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){W(t.geoModels,function(n){var r=n.coordinateSystem;e.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:mG.geo})})}},yG=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,a=t.gridModel;return!a&&n&&(a=n.axis.grid.model),!a&&r&&(a=r.axis.grid.model),a&&a===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],mG={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Nu(t)),e}},BE={lineX:Dt(bG,0),lineY:Dt(bG,1),rect:function(t,e,n,r){var a=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),i=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),o=[CR([a[0],i[0]]),CR([a[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n,r){var a=[[1/0,-1/0],[1/0,-1/0]],i=Be(n,function(o){var s=t?e.pointToData(o,r):e.dataToPoint(o,r);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:i,xyMinMax:a}}};function bG(t,e,n,r){var a=n.getAxis(["x","y"][t]),i=CR(Be([0,1],function(s){return e?a.coordToData(a.toLocalCoord(r[s]),!0):a.toGlobalCoord(a.dataToCoord(r[s]))})),o=[];return o[t]=i,o[1-t]=[NaN,NaN],{values:i,xyMinMax:o}}var SG={lineX:Dt(_G,0),lineY:Dt(_G,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Be(t,function(r,a){return[r[0]-n[0]*e[a][0],r[1]-n[1]*e[a][1]]})}};function _G(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function vSt(t,e){var n=wG(t),r=wG(e),a=[n[0]/r[0],n[1]/r[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function wG(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const q3=dSt;var TR=W,pSt=xnt("toolbox-dataZoom_"),gSt=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,a,i){this._brushController||(this._brushController=new R3(a.getZr()),this._brushController.on("brush",at(this._onBrush,this)).mount()),bSt(n,r,this,i,a),mSt(n,r)},e.prototype.onclick=function(n,r,a){ySt[a].call(this)},e.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var a={},i=this.ecModel;this._brushController.updateCovers([]);var o=new q3(Z3(this.model),i,{include:["grid"]});o.matchOutputRanges(r,i,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),iSt(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),h=d.model,p=l(u,h,i),v=p.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=Td(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),p&&(a[p.id]={dataZoomId:p.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var p=h.getAxisModel(u,c.componentIndex);p&&(d=h)}),d}},e.prototype._dispatchZoomAction=function(n){var r=[];TR(n,function(a,i){r.push(_t(a))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(Oi),ySt={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(oSt(this.ecModel))}};function Z3(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function mSt(t,e){t.setIconStatus("back",lSt(e)>1?"emphasis":"normal")}function bSt(t,e,n,r,a){var i=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(i=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=i,t.setIconStatus("zoom",i?"emphasis":"normal");var o=new q3(Z3(t),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}tit("dataZoom",function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(!e||e.get(n)==null)return;var r=e.getModel(n),a=[],i=Z3(r),o=e0(t,i);TR(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),TR(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:pSt+u+f};d[c]=f,a.push(d)}return a});const SSt=gSt;function _St(t){t.registerComponentModel(Vbt),t.registerComponentView(Gbt),mh("saveAsImage",Ubt),mh("magicType",Kbt),mh("dataView",aSt),mh("dataZoom",SSt),mh("restore",cSt),Ht(Ibt)}var wSt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(Zt);const xSt=wSt;function vie(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function pie(t){if(nn.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=e+" solid "+a+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function RSt(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,a="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,a+=nn.transformSupported?","+Q3+r:",left"+r+",top"+r),ESt+":"+a}function xG(t,e,n){var r=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!nn.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=nn.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+Q3+":"+o+";":[["top",0],["left",0],[gie,o]]}function LSt(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(n*3/2)+"px");var a=t.get("textShadowColor"),i=t.get("textShadowBlur")||0,o=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return a&&i&&e.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),W(["decoration","align"],function(l){var u=t.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function ASt(t,e,n){var r=[],a=t.get("transitionDuration"),i=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=_te(t,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),e&&a&&r.push(RSt(a,n)),i&&r.push("background-color:"+i),W(["width","color","radius"],function(h){var p="border-"+h,v=CN(p),g=t.get(v);g!=null&&r.push(p+":"+g+(h==="color"?"":"px"))}),r.push(LSt(c)),f!=null&&r.push("padding:"+_d(f).join("px ")+"px"),r.join(";")+";"}function CG(t,e,n,r,a){var i=e&&e.painter;if(n){var o=i&&i.getViewportRoot();o&&zet(t,o,document.body,r,a)}else{t[0]=r,t[1]=a;var s=i&&i.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var OSt=function(){function t(e,n,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,nn.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=n.getZr(),o=this._appendToBody=r&&r.appendToBody;CG(this._styleCoord,i,o,n.getWidth()/2,n.getHeight()/2),o?document.body.appendChild(a):e.appendChild(a),this._container=e;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();Mi(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){var n=this._container,r=TSt(n,"position"),a=n.style;a.position!=="absolute"&&r!=="absolute"&&(a.position="relative");var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},t.prototype.show=function(e,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,a=r.style,i=this._styleCoord;r.innerHTML?a.cssText=MSt+ASt(e,!this._firstShow,this._longHide)+xG(i[0],i[1],!0)+("border-color:"+sd(n)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,n,r,a,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(nt(i)&&r.get("trigger")==="item"&&!vie(r)&&(s=DSt(r,a,i)),nt(e))o.innerHTML=e+s;else if(e){o.innerHTML="",Ie(e)||(e=[e]);for(var l=0;l=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,a=this._api,i=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(n,r,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(n,r,a,i){if(!(i.from===this.uid||nn.node||!a.getDom())){var o=MG(i,a);this._ticket="";var s=i.dataByCoordSys,l=GSt(i,r,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=BSt;c.x=i.x,c.y=i.y,c.update(),Rt(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,a,i))return;var f=tie(i,r),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(n,r,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(MG(i,a))},e.prototype._manuallyAxisShowTip=function(n,r,a,i){var o=i.seriesIndex,s=i.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),f=og([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(n,r){var a=n.target,i=this._tooltipModel;if(i){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(a){this._lastDataByCoordSys=null;var s,l;Rf(a,function(u){if(Rt(u).dataIndex!=null)return s=u,!0;if(Rt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(n,s,r):l?this._showComponentItemTooltip(n,l,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},e.prototype._showOrMove=function(n,r){var a=n.get("showDelay");r=at(r,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(r,a):r()},e.prototype._showAxisTooltip=function(n,r){var a=this._ecModel,i=this._tooltipModel,o=[r.offsetX,r.offsetY],s=og([r.tooltipOption],i),l=this._renderMode,u=[],c=Lr("section",{blocks:[],noHeader:!0}),f=[],d=new wT;W(n,function(m){W(m.dataByAxis,function(b){var _=a.getComponent(b.axisDim+"Axis",b.axisIndex),x=b.value;if(!(!_||x==null)){var w=Zae(x,_.axis,a,b.seriesDataIndices,b.valueLabelOpt),C=Lr("section",{header:w,noHeader:!Bi(w),sortBlocks:!0,blocks:[]});c.blocks.push(C),W(b.seriesDataIndices,function(T){var k=a.getSeriesByIndex(T.seriesIndex),E=T.dataIndexInside,M=k.getDataParams(E);if(!(M.dataIndex<0)){M.axisDim=b.axisDim,M.axisIndex=b.axisIndex,M.axisType=b.axisType,M.axisId=b.axisId,M.axisValue=e3(_.axis,{value:x}),M.axisValueLabel=w,M.marker=d.makeTooltipMarker("item",sd(M.color),l);var D=h5(k.formatTooltip(E,!0,null)),R=D.frag;if(R){var A=og([k],i).get("valueFormatter");C.blocks.push(A?Oe({valueFormatter:A},R):R)}D.text&&f.push(D.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,p=s.get("order"),v=b5(c,d,l,p,a.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var g=l==="richText"?` `:"
",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,d)})},e.prototype._showSeriesItemTooltip=function(n,r,a){var i=this._ecModel,o=Rt(r),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=n.positionDefault,v=og([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),m=new wT;y.marker=m.makeTooltipMarker("item",sd(y.color),h);var b=h5(u.formatTooltip(c,!1,f)),_=v.get("order"),x=v.get("valueFormatter"),w=b.frag,C=w?b5(x?Oe({valueFormatter:x},w):w,m,h,_,i.get("useUTC"),v.get("textStyle")):b.text,T="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,C,y,T,n.offsetX,n.offsetY,n.position,n.target,m)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(n,r,a){var i=Rt(r),o=i.tooltipConfig,s=o.option||{};if(nt(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=n.positionDefault,d=og(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",v=new wT;this._showOrMove(d,function(){var g=_t(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,p,n.offsetX,n.offsetY,n.position,r,v)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,a,i,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var h=r,p=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),v=p.color;if(d)if(nt(d)){var g=n.ecModel.get("useUTC"),y=Ie(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,m&&(h=vm(y.axisValue,h,g)),h=TN(h,a,!0)}else if(vt(d)){var b=at(function(_,x){_===this._ticket&&(f.setContent(x,c,n,v,l),this._updatePosition(n,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,b)}else h=d;f.setContent(h,c,n,v,l),f.show(n,v),this._updatePosition(n,l,o,s,f,a,u)}},e.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||Ie(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!Ie(r))return{color:i||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=o.getSize(),d=n.get("align"),h=n.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),vt(r)&&(r=r([a,i],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),Ie(r))a=Je(r[0],u),i=Je(r[1],c);else if(mt(r)){var v=r;v.width=f[0],v.height=f[1];var g=vr(v,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(nt(r)&&l){var y=zSt(r,p,f,n.get("borderWidth"));a=y[0],i=y[1]}else{var y=PSt(a,i,o,u,c,d?null:20,h?null:20);a=y[0],i=y[1]}if(d&&(a-=kG(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=kG(h)?f[1]/2:h==="bottom"?f[1]:0),vie(n)){var y=FSt(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===n.length;return o&&W(a,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&W(u,function(d,h){var p=f[h]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,o&&W(v,function(y,m){var b=g[m];o=o&&y.seriesIndex===b.seriesIndex&&y.dataIndex===b.dataIndex}),i&&W(d.seriesDataIndices,function(y){var m=y.seriesIndex,b=r[m],_=i[m];b&&_&&_.data!==b.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){nn.node||!r.getDom()||(yy(this,"_updatePosition"),this._tooltipContent.dispose(),SR("itemTooltip",r))},e.type="tooltip",e}(Vn);function og(t,e,n){var r=e.ecModel,a;n?(a=new wn(n,r,r),a=new wn(e.option,a,r)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof wn&&(o=o.get("tooltip",!0)),nt(o)&&(o={formatter:o}),o&&(a=new wn(o,a,r)))}return a}function MG(t,e){return t.dispatchAction||at(e.dispatchAction,e)}function PSt(t,e,n,r,a,i,o){var s=n.getSize(),l=s[0],u=s[1];return i!=null&&(t+l+i+2>r?t-=l+i:t+=i),o!=null&&(e+u+o>a?e-=u+o:e+=o),[t,e]}function FSt(t,e,n,r,a){var i=n.getSize(),o=i[0],s=i[1];return t=Math.min(t+o,r)-o,e=Math.min(e+s,a)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function zSt(t,e,n,r){var a=n[0],i=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-a/2,l=e.y+c/2-i/2;break;case"top":s=e.x+u/2-a/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+c+o;break;case"left":s=e.x-a-o,l=e.y+c/2-i/2;break;case"right":s=e.x+u+o,l=e.y+c/2-i/2}return[s,l]}function kG(t){return t==="center"||t==="middle"}function GSt(t,e,n){var r=rN(t).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=sm(e,a,r.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=n.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Rt(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const HSt=VSt;function USt(t){Ht(Tm),t.registerComponentModel(xSt),t.registerComponentView(HSt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Zn),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Zn)}var WSt=["rect","polygon","keep","clear"];function jSt(t,e){var n=xn(t?t.brush:[]);if(n.length){var r=[];W(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var a=t&&t.toolbox;Ie(a)&&(a=a[0]),a||(a={feature:{}},t.toolbox=[a]);var i=a.feature||(a.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),KSt(s),e&&!s.length&&s.push.apply(s,WSt)}}function KSt(t){var e={};W(t,function(n){e[n]=1}),t.length=0,W(e,function(n,r){t.push(r)})}var DG=W;function RG(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function ER(t,e,n){var r={};return DG(e,function(i){var o=r[i]=a();DG(t[i],function(s,l){if(Xr.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new Xr(u),l==="opacity"&&(u=_t(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Xr(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function mie(t,e,n){var r;W(n,function(a){e.hasOwnProperty(a)&&RG(e[a])&&(r=!0)}),r&&W(n,function(a){e.hasOwnProperty(a)&&RG(e[a])?t[a]=_t(e[a]):delete t[a]})}function YSt(t,e,n,r,a,i){var o={};W(t,function(f){var d=Xr.prepareVisualTypes(e[f]);o[f]=d});var s;function l(f){return BN(n,s,f)}function u(f,d){Lte(n,s,f,d)}i==null?n.each(c):n.each([i],c);function c(f,d){s=i==null?f:d;var h=n.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var p=r.call(a,f),v=e[p],g=o[p],y=0,m=g.length;ye[0][1]&&(e[0][1]=i[0]),i[1]e[1][1]&&(e[1][1]=i[1])}return e&&$G(e)}};function $G(t){return new Ft(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var n_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new R3(r.getZr())).on("brush",at(this._onBrush,this)).mount()},e.prototype.render=function(n,r,a,i){this.model=n,this._updateController(n,r,a,i)},e.prototype.updateTransform=function(n,r,a,i){bie(r),this._updateController(n,r,a,i)},e.prototype.updateVisual=function(n,r,a,i){this.updateTransform(n,r,a,i)},e.prototype.updateView=function(n,r,a,i){this._updateController(n,r,a,i)},e.prototype._updateController=function(n,r,a,i){(!i||i.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(a)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(n){var r=this.model.id,a=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:_t(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:_t(a),$from:r})},e.type="brush",e}(Vn);const r_t=n_t;var a_t="#ddd",i_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return e.prototype.optionUpdated=function(n,r){var a=this.option;!r&&mie(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:a_t},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(n){n&&(this.areas=Be(n,function(r){return IG(this.option,r)},this))},e.prototype.setBrushOption=function(n){this.brushOption=IG(this.option,n),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(Zt);function IG(t,e){return It({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new wn(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const o_t=i_t;var s_t=["rect","polygon","lineX","lineY","keep","clear"],l_t=function(t){me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,a){var i,o,s;r.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,W(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(n,r,a){this.render(n,r,a)},e.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),a={};return W(n.get("type",!0),function(i){r[i]&&(a[i]=r[i])}),a},e.prototype.onclick=function(n,r,a){var i=this._brushType,o=this._brushMode;a==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?i:i===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(n){var r={show:!0,type:s_t.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(Oi);const u_t=l_t;function c_t(t){t.registerComponentView(r_t),t.registerComponentModel(o_t),t.registerPreprocessor(jSt),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,ZSt),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,n){n.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Zn),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Zn),mh("brush",u_t)}var f_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.type="title",e.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"}},e}(Zt),d_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,a){if(this.group.removeAll(),!!n.get("show")){var i=this.group,o=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=Vt(n.get("textBaseline"),n.get("textVerticalAlign")),c=new Jt({style:Mn(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),h=new Jt({style:Mn(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=n.get("link"),v=n.get("sublink"),g=n.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!v&&!g,p&&c.on("click",function(){$_(p,"_"+n.get("target"))}),v&&h.on("click",function(){$_(v,"_"+n.get("subtarget"))}),Rt(c).eventData=Rt(h).eventData=g?{componentType:"title",componentIndex:n.componentIndex}:null,i.add(c),d&&i.add(h);var y=i.getBoundingRect(),m=n.getBoxLayoutParams();m.width=y.width,m.height=y.height;var b=vr(m,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),i.x=b.x,i.y=b.y,i.markRedraw();var _={align:l,verticalAlign:u};c.setStyle(_),h.setStyle(_),y=i.getBoundingRect();var x=b.margin,w=n.getItemStyle(["color","opacity"]);w.fill=n.get("backgroundColor");var C=new en({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:n.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(C)}},e.type="title",e}(Vn);function h_t(t){t.registerComponentModel(f_t),t.registerComponentView(d_t)}var v_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._initData()},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(n){this.option.autoPlay=!!n},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var n=this.option,r=n.data||[],a=n.axisType,i=this._names=[],o;a==="category"?(o=[],W(r,function(u,c){var f=Sr(np(u),""),d;mt(u)?(d=_t(u),d.value=c):d=c,o.push(d),i.push(f)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new fa([{name:"value",type:s}],this);l.initData(o,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(Zt);const BG=v_t;var Sie=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline.slider",e.defaultOption=hc(BG.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(BG);Jn(Sie,ON.prototype);const p_t=Sie;var g_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline",e}(Vn);const y_t=g_t;var m_t=function(t){me(e,t);function e(n,r,a,i){var o=t.call(this,n,r,a)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(no);const b_t=m_t;var PE=Math.PI,VG=an(),S_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.api=r},e.prototype.render=function(n,r,a){if(this.model=n,this.api=a,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var i=this._layout(n,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Lr("nameValue",{noName:!0,value:c})},W(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,n)},this),this._renderAxisLabel(i,s,l,n),this._position(i,n)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(n,r){var a=n.get(["label","position"]),i=n.get("orient"),o=w_t(n,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:PE/2},f=i==="vertical"?o.height:o.width,d=n.getModel("controlStyle"),h=d.get("show",!0),p=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,g=p+v,y=n.get(["label","rotate"])||0;y=y*PE/180;var m,b,_,x=d.get("position",!0),w=h&&d.get("showPlayBtn",!0),C=h&&d.get("showPrevBtn",!0),T=h&&d.get("showNextBtn",!0),k=0,E=f;x==="left"||x==="bottom"?(w&&(m=[0,0],k+=g),C&&(b=[k,0],k+=g),T&&(_=[E-p,0],E-=g)):(w&&(m=[E-p,0],E-=g),C&&(b=[0,0],k+=g),T&&(_=[E-p,0],E-=g));var M=[k,E];return n.get("inverse")&&M.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:c[i],labelRotation:y,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[i],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:b,nextBtnPosition:_,axisExtent:M,controlSize:p,controlGap:v}},e.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=pi(),l=o.x,u=o.y+o.height;Bo(s,s,[-l,-u]),fc(s,s,-PE/2),Bo(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=m(o),f=m(a.getBoundingRect()),d=m(i.getBoundingRect()),h=[a.x,a.y],p=[i.x,i.y];p[0]=h[0]=c[0][0];var v=n.labelPosOpt;if(v==null||nt(v)){var g=v==="+"?0:1;b(h,f,c,1,g),b(p,d,c,1,1-g)}else{var g=v>=0?0:1;b(h,f,c,1,g),p[1]=h[1]+v}a.setPosition(h),i.setPosition(p),a.rotation=i.rotation=n.rotation,y(a),y(i);function y(_){_.originX=c[0][0]-_.x,_.originY=c[1][0]-_.y}function m(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function b(_,x,w,C,T){_[C]+=w[C][T]-x[C][T]}},e.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=__t(r,i);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new b_t("value",o,n.axisExtent,i);return l.model=r,l},e.prototype._createGroup=function(n){var r=this[n]=new Ct;return this.group.add(r),r},e.prototype._renderAxisLine=function(n,r,a,i){var o=a.getExtent();if(i.get(["lineStyle","show"])){var s=new Er({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:Oe({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new Er({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:gt({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(n,r,a,i){var o=this,s=i.getData(),l=a.scale.getTicks();this._tickSymbols=[],W(l,function(u){var c=a.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),p=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:at(o._changeTimeline,o,u.value)},g=PG(f,d,r,v);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),Ou(g);var y=Rt(g);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(n,r,a,i){var o=this,s=a.getLabelModel();if(s.get("show")){var l=i.getData(),u=a.getViewLabels();this._tickLabels=[],W(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),p=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),y=new Jt({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:at(o._changeTimeline,o,f),silent:!1,style:Mn(h,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});y.ensureState("emphasis").style=Mn(p),y.ensureState("progress").style=Mn(v),r.add(y),Ou(y),VG(y).dataIndex=f,o._tickLabels.push(y)})}},e.prototype._renderControl=function(n,r,a,i){var o=n.controlSize,s=n.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),c=i.getPlayState(),f=i.get("inverse",!0);d(n.nextBtnPosition,"next",at(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",at(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",at(this._handlePlayClick,this,!c),!0);function d(h,p,v,g){if(h){var y=Vo(Vt(i.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],b=x_t(i,p+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:v});b.ensureState("emphasis").style=u,r.add(b),Ou(b)}}},e.prototype._renderCurrentPointer=function(n,r,a,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=at(u._handlePointerDrag,u),f.ondragend=at(u._handlePointerDragend,u),FG(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){FG(f,u._progressLine,s,a,i)}};this._currentPointer=PG(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},e.prototype._handlePointerDrag=function(n,r,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},e.prototype._pointerChangeTimeline=function(n,r){var a=this._toAxisCoord(n)[0],i=this._axis,o=fi(i.getExtent().slice());a>o[1]&&(a=o[1]),a=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var FE={min:Dt(vb,"min"),max:Dt(vb,"max"),average:Dt(vb,"average"),median:Dt(vb,"median")};function Ry(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,a=r&&r.dimensions;if(!L_t(e)&&!Ie(e.coord)&&Ie(a)){var i=wie(e,n,r,t);if(e=_t(e),e.type&&FE[e.type]&&i.baseAxis&&i.valueAxis){var o=zt(a,i.baseAxis.dim),s=zt(a,i.valueAxis.dim),l=FE[e.type](n,i.baseDataDim,i.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!Ie(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)FE[u[c]]&&(u[c]=e$(n,n.mapDimension(a[c]),u[c]));return e}}function wie(t,e,n,r){var a={};return t.valueIndex!=null||t.valueDim!=null?(a.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,a.valueAxis=n.getAxis(A_t(r,a.valueDataDim)),a.baseAxis=n.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=r.getBaseAxis(),a.valueAxis=n.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function A_t(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function Ly(t,e){return t&&t.containData&&e.coord&&!kR(e)?t.containData(e.coord):!0}function O_t(t,e,n){return t&&t.containZone&&e.coord&&n.coord&&!kR(e)&&!kR(n)?t.containZone(e.coord,n.coord):!0}function xie(t,e){return t?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return Iu(o,e[i])}:function(n,r,a,i){return Iu(n.value,e[i])}}function e$(t,e,n){if(n==="average"){var r=0,a=0;return t.each(e,function(i,o){isNaN(i)||(r+=i,a++)}),r/a}else return n==="median"?t.getMedian(e):t.getDataExtent(e)[n==="max"?1:0]}var zE=an(),N_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this.markerGroupMap=ct()},e.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){zE(s).keep=!1}),r.eachSeries(function(s){var l=tc.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,r,a)}),o.each(function(s){!zE(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(n){zE(n).keep=!0},e.prototype.toggleBlurSeries=function(n,r){var a=this;W(n,function(i){var o=tc.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?qJ(l):uN(l))})}})},e.type="marker",e}(Vn);const t$=N_t;function GG(t,e,n){var r=e.coordinateSystem;t.each(function(a){var i=t.getItemModel(a),o,s=Je(i.get("x"),n.getWidth()),l=Je(i.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,a));else if(r){var u=t.get(r.dimensions[0],a),c=t.get(r.dimensions[1],a);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(a,o)})}var $_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=tc.getMarkerModelFromSeries(i,"markPoint");o&&(GG(o.getData(),i,a),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new bm),f=I_t(o,n,r);r.setData(f),GG(r.getData(),n,i),f.each(function(d){var h=f.getItemModel(d),p=h.getShallow("symbol"),v=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(vt(p)||vt(v)||vt(g)||vt(y)){var b=r.getRawValue(d),_=r.getDataParams(d);vt(p)&&(p=p(b,_)),vt(v)&&(v=v(b,_)),vt(g)&&(g=g(b,_)),vt(y)&&(y=y(b,_))}var x=h.getModel("itemStyle").getItemStyle(),w=pm(l,"color");x.fill||(x.fill=w),f.setItemVisual(d,{symbol:p,symbolSize:v,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:x})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){Rt(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markPoint",e}(t$);function I_t(t,e,n){var r;t?r=Be(t&&t.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return Oe(Oe({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new fa(r,n),i=Be(n.get("data"),Dt(Ry,e));t&&(i=mn(i,Dt(Ly,t)));var o=xie(!!t,r);return a.initData(i,null,o),a}const B_t=$_t;function V_t(t){t.registerComponentModel(R_t),t.registerComponentView(B_t),t.registerPreprocessor(function(e){J3(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var P_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,a){return new e(n,r,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(tc);const F_t=P_t;var pb=an(),z_t=function(t,e,n,r){var a=t.getData(),i;if(Ie(r))i=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Tr(r.yAxis,r.xAxis);else{var u=wie(r,a,e,t);s=u.valueAxis;var c=XN(a,u.valueDataDim);l=e$(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=_t(r),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var v=n.get("precision");v>=0&&rn(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=p.coord[f]=l,i=[h,p,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[Ry(t,i[0]),Ry(t,i[1]),Oe({},i[2])];return g[2].type=g[2].type||null,It(g[2],g[0]),It(g[2],g[1]),g};function uw(t){return!isNaN(t)&&!isFinite(t)}function HG(t,e,n,r){var a=1-t,i=r.dimensions[t];return uw(e[a])&&uw(n[a])&&e[t]===n[t]&&r.getAxis(i).containData(e[t])}function G_t(t,e){if(t.type==="cartesian2d"){var n=e[0].coord,r=e[1].coord;if(n&&r&&(HG(1,n,r,t)||HG(0,n,r,t)))return!0}return Ly(t,e[0])&&Ly(t,e[1])}function GE(t,e,n,r,a){var i=r.coordinateSystem,o=t.getItemModel(e),s,l=Je(o.get("x"),a.getWidth()),u=Je(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=i.dimensions,f=t.get(c[0],e),d=t.get(c[1],e);s=i.dataToPoint([f,d])}if(xd(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;uw(t.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):uw(t.get(c[1],e))&&(s[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var H_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=tc.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=pb(o).from,u=pb(o).to;l.each(function(c){GE(l,c,!0,i,a),GE(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new C3);this.group.add(c.group);var f=U_t(o,n,r),d=f.from,h=f.to,p=f.line;pb(r).from=d,pb(r).to=h,r.setData(p);var v=r.get("symbol"),g=r.get("symbolSize"),y=r.get("symbolRotate"),m=r.get("symbolOffset");Ie(v)||(v=[v,v]),Ie(g)||(g=[g,g]),Ie(y)||(y=[y,y]),Ie(m)||(m=[m,m]),f.from.each(function(_){b(d,_,!0),b(h,_,!1)}),p.each(function(_){var x=p.getItemModel(_).getModel("lineStyle").getLineStyle();p.setItemLayout(_,[d.getItemLayout(_),h.getItemLayout(_)]),x.stroke==null&&(x.stroke=d.getItemVisual(_,"style").fill),p.setItemVisual(_,{fromSymbolKeepAspect:d.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(_,"symbolOffset"),fromSymbolRotate:d.getItemVisual(_,"symbolRotate"),fromSymbolSize:d.getItemVisual(_,"symbolSize"),fromSymbol:d.getItemVisual(_,"symbol"),toSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(_,"symbolOffset"),toSymbolRotate:h.getItemVisual(_,"symbolRotate"),toSymbolSize:h.getItemVisual(_,"symbolSize"),toSymbol:h.getItemVisual(_,"symbol"),style:x})}),c.updateData(p),f.line.eachItemGraphicEl(function(_){Rt(_).dataModel=r,_.traverse(function(x){Rt(x).dataModel=r})});function b(_,x,w){var C=_.getItemModel(x);GE(_,x,w,n,i);var T=C.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=pm(l,"color")),_.setItemVisual(x,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:Vt(C.get("symbolOffset",!0),m[w?0:1]),symbolRotate:Vt(C.get("symbolRotate",!0),y[w?0:1]),symbolSize:Vt(C.get("symbolSize"),g[w?0:1]),symbol:Vt(C.get("symbol",!0),v[w?0:1]),style:T})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markLine",e}(t$);function U_t(t,e,n){var r;t?r=Be(t&&t.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return Oe(Oe({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var a=new fa(r,n),i=new fa(r,n),o=new fa([],n),s=Be(n.get("data"),Dt(z_t,e,t,n));t&&(s=mn(s,Dt(G_t,t)));var l=xie(!!t,r);return a.initData(Be(s,function(u){return u[0]}),null,l),i.initData(Be(s,function(u){return u[1]}),null,l),o.initData(Be(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const W_t=H_t;function j_t(t){t.registerComponentModel(F_t),t.registerComponentView(W_t),t.registerPreprocessor(function(e){J3(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var K_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,a){return new e(n,r,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(tc);const Y_t=K_t;var gb=an(),X_t=function(t,e,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=Ry(t,a),s=Ry(t,i),l=o.coord,u=s.coord;l[0]=Tr(l[0],-1/0),l[1]=Tr(l[1],-1/0),u[0]=Tr(u[0],1/0),u[1]=Tr(u[1],1/0);var c=Mx([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function cw(t){return!isNaN(t)&&!isFinite(t)}function UG(t,e,n,r){var a=1-t;return cw(e[a])&&cw(n[a])}function q_t(t,e){var n=e.coord[0],r=e.coord[1],a={coord:n,x:e.x0,y:e.y0},i={coord:r,x:e.x1,y:e.y1};return xd(t,"cartesian2d")?n&&r&&(UG(1,n,r)||UG(0,n,r))?!0:O_t(t,a,i):Ly(t,a)||Ly(t,i)}function WG(t,e,n,r,a){var i=r.coordinateSystem,o=t.getItemModel(e),s,l=Je(o.get(n[0]),a.getWidth()),u=Je(o.get(n[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),f=t.getValues(["x1","y1"],e),d=i.clampData(c),h=i.clampData(f),p=[];n[0]==="x0"?p[0]=d[0]>h[0]?f[0]:c[0]:p[0]=d[0]>h[0]?c[0]:f[0],n[1]==="y0"?p[1]=d[1]>h[1]?f[1]:c[1]:p[1]=d[1]>h[1]?c[1]:f[1],s=r.getMarkerPosition(p,n,!0)}else{var v=t.get(n[0],e),g=t.get(n[1],e),y=[v,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(xd(i,"cartesian2d")){var m=i.getAxis("x"),b=i.getAxis("y"),v=t.get(n[0],e),g=t.get(n[1],e);cw(v)?s[0]=m.toGlobalCoord(m.getExtent()[n[0]==="x0"?0:1]):cw(g)&&(s[1]=b.toGlobalCoord(b.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var jG=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Z_t=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,a){r.eachSeries(function(i){var o=tc.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Be(jG,function(f){return WG(s,l,f,i,a)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(n,r,a,i){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Ct});this.group.add(c.group),this.markKeep(c);var f=Q_t(o,n,r);r.setData(f),f.each(function(d){var h=Be(jG,function(T){return WG(f,d,T,n,i)}),p=o.getAxis("x").scale,v=o.getAxis("y").scale,g=p.getExtent(),y=v.getExtent(),m=[p.parse(f.get("x0",d)),p.parse(f.get("x1",d))],b=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];fi(m),fi(b);var _=!(g[0]>m[1]||g[1]b[1]||y[1]=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}(Zt);const DR=nwt;var th=Dt,RR=W,yb=Ct,rwt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return e.prototype.init=function(){this.group.add(this._contentGroup=new yb),this.group.add(this._selectorGroup=new yb),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(n,r,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,n,r,a,l,s,u);var c=n.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=n.get("padding"),h=vr(c,f,d),p=this.layoutInner(n,o,h,i,l,u),v=vr(gt({width:p.width,height:p.height},c),f,d);this.group.x=v.x-p.x,this.group.y=v.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=fie(p,n))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this.getContentGroup(),c=ct(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),RR(r.getData(),function(h,p){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===` `)){var g=new yb;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(v)[0];if(!c.get(v))if(y){var m=y.getData(),b=m.getVisual("legendLineStyle")||{},_=m.getVisual("legendIcon"),x=m.getVisual("style"),w=this._createItem(y,v,p,h,r,n,b,x,_,f,i);w.on("click",th(KG,v,null,i,d)).on("mouseover",th(LR,y.name,null,i,d)).on("mouseout",th(AR,y.name,null,i,d)),c.set(v,!0)}else a.eachRawSeries(function(C){if(!c.get(v)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(v))return;var k=T.indexOfName(v),E=T.getItemVisual(k,"style"),M=T.getItemVisual(k,"legendIcon"),D=Ra(E.fill);D&&D[3]===0&&(D[3]=.2,E=Oe(Oe({},E),{fill:Ao(D,"rgba")}));var R=this._createItem(C,v,p,h,r,n,{},E,M,f,i);R.on("click",th(KG,null,v,i,d)).on("mouseover",th(LR,null,v,i,d)).on("mouseout",th(AR,null,v,i,d)),c.set(v,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();RR(n,function(u){var c=u.type,f=new Jt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=r.getModel("selectorLabel"),h=r.getModel(["emphasis","selectorLabel"]);Jr(f,{normal:d,emphasis:h},{defaultText:u.title}),Ou(f)})},e.prototype._createItem=function(n,r,a,i,o,s,l,u,c,f,d){var h=n.visualDrawType,p=o.get("itemWidth"),v=o.get("itemHeight"),g=o.isSelected(r),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),b=i.get("icon");c=b||c||"roundRect";var _=awt(c,i,l,u,h,g,d),x=new yb,w=i.getModel("textStyle");if(vt(n.getLegendIcon)&&(!b||b==="inherit"))x.add(n.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:y,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));else{var C=b==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;x.add(iwt({itemWidth:p,itemHeight:v,icon:c,iconRotate:C,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,k=s,E=o.get("formatter"),M=r;nt(E)&&E?M=E.replace("{name}",r??""):vt(E)&&(M=E(r));var D=g?w.getTextColor():i.get("inactiveColor");x.add(new Jt({style:Mn(w,{text:M,x:T,y:v/2,fill:D,align:k,verticalAlign:"middle"},{inheritColor:D})}));var R=new en({shape:x.getBoundingRect(),invisible:!0}),A=i.getModel("tooltip");return A.get("show")&&sp({el:R,componentModel:o,itemName:r,itemTooltipOption:A.option}),x.add(R),x.eachChild(function(V){V.silent=!0}),R.silent=!f,this.getContentGroup().add(x),Ou(x),x.__legendDataIndex=a,x},e.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Wf(n.get("orient"),l,n.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Wf("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=n.get("selectorButtonGap",!0),v=n.getOrient().index,g=v===0?"width":"height",y=v===0?"height":"width",m=v===0?"y":"x";s==="end"?h[v]+=c[g]+p:f[v]+=d[g]+p,h[1-v]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[g]=c[g]+p+d[g],b[y]=Math.max(c[y],d[y]),b[m]=Math.min(0,d[m]+h[1-v]),b}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Vn);function awt(t,e,n,r,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),RR(g,function(m,b){g[b]==="inherit"&&(g[b]=y[b])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:Nv(f,o),u.fill==="inherit"&&(u.fill=r[a]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?r:n).opacity),s(u,r);var d=e.getModel("lineStyle"),h=d.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!i){var p=e.get("inactiveBorderWidth"),v=u[c];u.lineWidth=p==="auto"?r.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function iwt(t){var e=t.icon||"roundRect",n=ir(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function KG(t,e,n,r){AR(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),LR(t,e,n,r)}function Cie(t){for(var e=t.getZr().storage.getDisplayList(),n,r=0,a=e.length;ra[o],g=[-h.x,-h.y];r||(g[i]=c[u]);var y=[0,0],m=[-p.x,-p.y],b=Vt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(v){var _=n.get("pageButtonPosition",!0);_==="end"?m[i]+=a[o]-p[o]:y[i]+=p[o]+b}m[1-i]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(y),d.setPosition(m);var x={x:0,y:0};if(x[o]=v?a[o]:h[o],x[s]=Math.max(h[s],p[s]),x[l]=Math.min(0,p[l]+m[1-i]),f.__rectSize=a[o],v){var w={x:0,y:0};w[o]=Math.max(a[o]-p[o]-b,0),w[s]=x[s],f.setClipPath(new en({shape:w})),f.__rectSize=w[o]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(n);return C.pageIndex!=null&&sn(c,{x:C.contentPosition[0],y:C.contentPosition[1]},v?n:null),this._updatePageInfoView(n,C),x},e.prototype._pageGo=function(n,r,a){var i=this._getPageInfo(r)[n];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:r.id})},e.prototype._updatePageInfoView=function(n,r){var a=this._controllerGroup;W(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;i&&o&&i.setStyle("text",nt(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=n.getOrient().index,s=HE[o],l=UE[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var v=_(f);p.contentPosition[o]=-v.s;for(var g=u+1,y=v,m=v,b=null;g<=d;++g)b=_(c[g]),(!b&&m.e>y.s+i||b&&!x(b,y.s))&&(m.i>y.i?y=m:y=b,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=b;for(var g=u-1,y=v,m=v,b=null;g>=-1;--g)b=_(c[g]),(!b||!x(m,b.s))&&y.i=C&&w.s<=C+i}},e.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===n&&(r=s)}),r??i},e.type="legend.scroll",e}(Tie);const fwt=cwt;function dwt(t){t.registerAction("legendScroll","legendscroll",function(e,n){var r=e.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(r)})})}function hwt(t){Ht(Eie),t.registerComponentModel(uwt),t.registerComponentView(fwt),dwt(t)}function vwt(t){Ht(Eie),Ht(hwt)}var pwt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.inside",e.defaultOption=hc(Dy.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Dy);const gwt=pwt;var n$=an();function ywt(t,e,n){n$(t).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=n)})}function mwt(t,e){for(var n=n$(t).coordSysRecordMap,r=n.keys(),a=0;ar[n+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function xwt(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=n$(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=ct());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=lie(i);W(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,bwt(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ct());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Mie(a,i);return}var c=wwt(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),pp(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Cwt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return e.prototype.render=function(n,r,a){if(t.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),ywt(a,n,{pan:at(WE.pan,this),zoom:at(WE.zoom,this),scrollMove:at(WE.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){mwt(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(K3),WE={zoom:function(t,e,n,r){var a=this.range,i=a.slice(),o=t.axisModels[0];if(o){var s=jE[e](null,[r.originX,r.originY],o,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/r.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Td(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:qG(function(t,e,n,r,a,i){var o=jE[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:qG(function(t,e,n,r,a,i){var o=jE[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,n);return o.signal*(t[1]-t[0])*i.scrollDelta})};function qG(t){return function(e,n,r,a){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,n,r,a);if(Td(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var jE={grid:function(t,e,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem.getRect();return t=t||[0,0],i.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(t,e,n,r,a){var i=n.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),n.mainType==="radiusAxis"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(t,e,n,r,a){var i=n.axis,o=a.model.coordinateSystem.getRect(),s={};return t=t||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const Twt=Cwt;function kie(t){Y3(t),t.registerComponentModel(gwt),t.registerComponentView(Twt),xwt(t)}var Ewt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=hc(Dy.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Dy);const Mwt=Ewt;var ug=en,ZG=7,kwt=1,KE=30,Dwt=7,cg="horizontal",QG="vertical",Rwt=5,Lwt=["line","bar","candlestick","scatter"],Awt={easing:"cubicOut",duration:100,delay:0},Owt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return e.prototype.init=function(n,r){this.api=r,this._onBrush=at(this._onBrush,this),this._onBrushEnd=at(this._onBrushEnd,this)},e.prototype.render=function(n,r,a,i){if(t.prototype.render.apply(this,arguments),pp(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){yy(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new Ct;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,a=n.get("brushSelect"),i=a?Dwt:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===cg?{right:s.width-o.x-o.width,top:s.height-KE-ZG-i,width:o.width,height:KE}:{right:ZG,top:o.y,width:KE,height:o.height},u=cp(n.option);W(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=vr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===QG&&this._size.reverse()},e.prototype._positionGroup=function(){var n=this.group,r=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===cg&&!o?{scaleY:l?1:-1,scaleX:1}:a===cg&&o?{scaleY:l?1:-1,scaleX:-1}:a===QG&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,a=this._displayables.sliderGroup,i=n.get("brushSelect");a.add(new ug({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new ug({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:at(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,a=this._shadowSize||[],i=n.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==a[0]||r[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,r[1]],p=[0,r[0]],v=[[r[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,b=Math.round(o.count()/r[0]),_;o.each([l],function(k,E){if(b>0&&E%b){m+=y;return}var M=k==null||isNaN(k)||k==="",D=M?0:yn(k,f,h,!0);M&&!_&&E?(v.push([v[v.length-1][0],0]),g.push([g[g.length-1][0],0])):!M&&_&&(v.push([m,0]),g.push([m,0])),v.push([m,D]),g.push([m,D]),m+=y,_=M}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var x=this.dataZoomModel;function w(k){var E=x.getModel(k?"selectedDataBackground":"dataBackground"),M=new Ct,D=new Ba({shape:{points:u},segmentIgnoreThreshold:1,style:E.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new Pa({shape:{points:c},segmentIgnoreThreshold:1,style:E.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(D),M.add(R),M}for(var C=0;C<3;C++){var T=w(C===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var a,i=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();W(l,function(u){if(!a&&!(r!==!0&&zt(Lwt,u.get("type"))<0)){var c=i.getComponent(Cu(o),s).axis,f=Nwt(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},e.prototype._renderHandle=function(){var n=this.group,r=this._displayables,a=r.handles=[null,null],i=r.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=r.filler=new ug({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new ug({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:kwt,fill:"rgba(0,0,0,0)"}})),W([0,1],function(b){var _=l.get("handleIcon");!V_[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var x=ir(_,-1,0,2,2,null,!0);x.attr({cursor:JG(this._orient),draggable:!0,drift:at(this._onDragMove,this,b),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1),z2:5});var w=x.getBoundingRect(),C=l.get("handleSize");this._handleHeight=Je(C,this._size[1]),this._handleWidth=w.width/w.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ou(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(a[b]=x);var k=l.getModel("textStyle");n.add(i[b]=new Jt({silent:!0,invisible:!0,style:Mn(k,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:k.getTextColor(),font:k.getFont()}),z2:10}))},this);var h=d;if(f){var p=Je(l.get("moveHandleSize"),s[1]),v=r.moveHandle=new en({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=r.moveHandleIcon=ir(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));h=r.moveZone=new en({invisible:!0,shape:{y:s[1]-m,height:p+m}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:JG(this._orient),drift:at(this._onDragMove,this,"all"),ondragstart:at(this._showDataInfo,this,!0),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[yn(n[0],[0,100],r,!0),yn(n[1],[0,100],r,!0)]},e.prototype._updateInterval=function(n,r){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Td(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?yn(s.minSpan,l,o,!0):null,s.maxSpan!=null?yn(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=fi([yn(i[0],o,l,!0),yn(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(n){var r=this._displayables,a=this._handleEnds,i=fi(a.slice()),o=this._size;W([0,1],function(h){var p=r.handles[h],v=this._handleHeight;p.attr({scaleX:v/2,scaleY:v/2,x:a[h]+(h?-1:1),y:o[1]/2-v/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;cr[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new Bt(r,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var a=r.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=fi([yn(a.x,o,s,!0),yn(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(n){this._brushing&&(Sl(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},e.prototype._updateBrushRect=function(n,r){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new ug({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?Awt:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=lie(this.dataZoomModel).infoList;if(!n&&r.length){var a=r[0].model.coordinateSystem;n=a.getRect&&a.getRect()}if(!n){var i=this.api.getWidth(),o=this.api.getHeight();n={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return n},e.type="dataZoom.slider",e}(K3);function Nwt(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function JG(t){return t==="vertical"?"ns-resize":"ew-resize"}const $wt=Owt;function Die(t){t.registerComponentModel(Mwt),t.registerComponentView($wt),Y3(t)}function Iwt(t){Ht(kie),Ht(Die)}var Bwt={get:function(t,e,n){var r=_t((Vwt[t]||{})[e]);return n&&Ie(r)?r[r.length-1]:r}},Vwt={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const Rie=Bwt;var eH=Xr.mapVisual,Pwt=Xr.eachVisual,Fwt=Ie,tH=W,zwt=fi,Gwt=yn,Hwt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},e.prototype.optionUpdated=function(n,r){var a=this.option;!r&&mie(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(n){var r=this.stateList;n=at(n,this),this.controllerVisuals=ER(this.option.controller,r,n),this.targetVisuals=ER(this.option.target,r,n)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(a,i){r.push(i)}):r=xn(n),r},e.prototype.eachTargetSeries=function(n,r){W(this.getTargetSeriesIndices(),function(a){var i=this.ecModel.getSeriesByIndex(a);i&&n.call(r,i)},this)},e.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(a){a===n&&(r=!0)}),r},e.prototype.formatValueText=function(n,r,a){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;a=a||["<",">"],Ie(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(nt(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(vt(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?a[0]+" "+c[1]:n[1]===s[1]?a[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var n=this.option,r=zwt([n.min,n.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var a=n.dimensions,i=a.length-1;i>=0;i--){var o=a[i],s=n.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,a={inRange:r.inRange,outOfRange:r.outOfRange},i=r.target||(r.target={}),o=r.controller||(r.controller={});It(i,a),It(o,a);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),c.call(this,o);function l(f){Fwt(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,h){var p=f[d],v=f[h];p&&!v&&(v=f[h]={},tH(p,function(g,y){if(Xr.isValidType(y)){var m=Rie.get(y,"inactive",s);m!=null&&(v[y]=m,y==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),v=this.getItemSymbol(),g=v||"roundRect";tH(this.stateList,function(y){var m=this.itemSize,b=f[y];b||(b=f[y]={color:s?p:[p]}),b.symbol==null&&(b.symbol=d&&_t(d)||(s?g:[g])),b.symbolSize==null&&(b.symbolSize=h&&_t(h)||(s?m[0]:[m[0],m[0]])),b.symbol=eH(b.symbol,function(w){return w==="none"?g:w});var _=b.symbolSize;if(_!=null){var x=-1/0;Pwt(_,function(w){w>x&&(x=w)}),b.symbolSize=eH(_,function(w){return Gwt(w,[0,x],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(n){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(n){return null},e.prototype.getVisualMeta=function(n){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(Zt);const fw=Hwt;var nH=[20,140],Uwt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=nH[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=nH[1])},e.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):Ie(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),W(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},e.prototype.getSelected=function(){var n=this.getExtent(),r=fi((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]=a[1]||n<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(a){var i=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){n[0]<=s&&s<=n[1]&&i.push(l)},this),r.push({seriesId:a.id,dataIndex:i})},this),r},e.prototype.getVisualMeta=function(n){var r=rH(this,"outOfRange",this.getExtent()),a=rH(this,"inRange",this.option.range.slice()),i=[];function o(h,p){i.push({value:h,color:n(h,p)})}for(var s=0,l=0,u=a.length,c=r.length;ln[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},e.prototype._createBarPoints=function(n,r){var a=this.visualMapModel.itemSize;return[[a[0]-r[0],n[0]],[a[0],n[0]],[a[0],n[1]],[a[0]-r[1],n[1]]]},e.prototype._createBarGroup=function(n){var r=this._orient,a=this.visualMapModel.get("inverse");return new Ct(r==="horizontal"&&!a?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&a?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!a?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},e.prototype._updateHandle=function(n,r){if(this._useHandle){var a=this._shapes,i=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=i.itemSize,u=i.getExtent();Kwt([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=ts(n[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var p=Oo(a.handleLabelPoints[c],Nu(f,this.group));s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(n,r,a,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(n,"color",d),p=this.getControllerVisual(n,"symbolSize"),v=ts(n,s,u,!0),g=l[0]-p/2,y={x:f.x,y:f.y};f.y=v,f.x=g;var m=Oo(c.indicatorLabelPoint,Nu(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var _=this._applyTransform("left",c.mainGroup),x=this._orient,w=x==="horizontal";b.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:w?_:"middle",align:w?"center":_});var C={x:g,y:v,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var k={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(C,k),b.animateTo(T,k)}else f.attr(C),b.attr(T);this._firstShowIndicator=!1;var E=this._shapes.handleLabels;if(E)for(var M=0;Mo[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(r||sH(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var p=Ent(d,h);this._dispatchHighDown("downplay",CS(p[0],a)),this._dispatchHighDown("highlight",CS(p[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(Rf(n.target,function(l){var u=Rt(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var a=this.ecModel.getSeriesByIndex(r.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(a)){var o=a.getData(r.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var a=0;a=0&&(i.dimension=o,r.push(i))}}),t.getData().setVisual("visualMeta",r)}}];function nxt(t,e,n,r){for(var a=e.targetVisuals[r],i=Xr.prepareVisualTypes(a),o={color:pm(t.getData(),"color")},s=0,l=i.length;s0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(Jwt,ext),W(txt,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(rxt))}function Nie(t){t.registerComponentModel(Wwt),t.registerComponentView(Qwt),Oie(t)}var axt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],ixt[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var i=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=_t(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Be(this._pieceList,function(l){return l=_t(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var n=this.option,r={},a=Xr.listVisualTypes(),i=this.isCategory();W(n.pieces,function(s){W(a,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),W(r,function(s,l){var u=!1;W(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&W(this.stateList,function(c){(n[c]||(n[c]={}))[l]=Rie.get(l,c==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(n,r){var a=this.option,i=this._pieceList,o=(r?a:n).selected||{};if(a.selected=o,W(i,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),a.selectedMode==="single"){var s=!1;W(i,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(n){this.option.selected=_t(n)},e.prototype.getValueState=function(n){var r=Xr.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[],a=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Xr.findPieceIndex(l,a);c===n&&o.push(u)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var a=n.interval||[];r=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return r},e.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],a=["",""],i=this;function o(c,f){var d=i.getRepresentValue({interval:c});f||(f=i.getValueState(d));var h=n(d,f);c[0]===-1/0?a[0]=h:c[1]===1/0?a[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return W(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:r,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=hc(fw.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(fw),ixt={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var i=(r[1]-r[0])/a;+i.toFixed(n)!==i&&n<5;)n++;e.precision=n,i=+i.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function fH(t,e){var n=t.inverse;(t.orient==="vertical"?!n:n)&&e.reverse()}const oxt=axt;var sxt=function(t){me(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,a=r.get("textGap"),i=r.textStyleModel,o=i.getFont(),s=i.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=Tr(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),W(c.viewPieceList,function(h){var p=h.piece,v=new Ct;v.onclick=at(this._onItemClick,this,p),this._enableHoverLink(v,h.indexInModelPieceList);var g=r.getRepresentValue(p);if(this._createItemSymbol(v,g,[0,0,u[0],u[1]]),d){var y=this.visualMapModel.getValueState(g);v.add(new Jt({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}n.add(v)},this),f&&this._renderEndsText(n,f[1],u,d,l),Wf(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},e.prototype._enableHoverLink=function(n,r){var a=this;n.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:CS(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return Aie(n,this.api,n.itemSize);var a=r.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(n,r,a,i,o){if(r){var s=new Ct,l=this.visualMapModel.textStyleModel;s.add(new Jt({style:Mn(l,{x:i?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:i?o:"center",text:r})})),n.add(s)}},e.prototype._getViewData=function(){var n=this.visualMapModel,r=Be(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=n.get("text"),i=n.get("orient"),o=n.get("inverse");return(i==="horizontal"?o:!o)?r.reverse():a&&(a=a.slice().reverse()),{viewPieceList:r,endsText:a}},e.prototype._createItemSymbol=function(n,r,a){n.add(ir(this.getControllerVisual(r,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(n){var r=this.visualMapModel,a=r.option,i=a.selectedMode;if(i){var o=_t(a.selected),s=r.getSelectedMapKey(n);i==="single"||i===!0?(o[s]=!0,W(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(Lie);const lxt=sxt;function $ie(t){t.registerComponentModel(oxt),t.registerComponentView(lxt),Oie(t)}function uxt(t){Ht(Nie),Ht($ie)}var cxt={label:{enabled:!0},decal:{show:!1}},dH=an(),fxt={};function dxt(t,e){var n=t.getModel("aria");if(!n.get("enabled"))return;var r=_t(cxt);It(r.label,t.getLocaleModel().get("aria"),!1),It(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=ct();t.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),dH(d).scope=h}}),t.eachRawSeries(function(d){if(t.isSeriesFiltered(d))return;if(vt(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var m=OD(d.ecModel,d.name,fxt,t.getSeriesCount()),b=h.getVisual("decal");h.setVisual("decal",_(b,m))}else{var p=d.getRawData(),v={},g=dH(d).scope;h.each(function(x){var w=h.getRawIndex(x);v[w]=x});var y=p.count();p.each(function(x){var w=v[x],C=p.getName(x)||x+"",T=OD(d.ecModel,C,g,y),k=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",_(k,T))})}function _(x,w){var C=x?Oe(Oe({},w),x):w;return C.dirty=!0,C}})}}function i(){var u=t.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=gt(c.option,u),!!c.get("enabled")){var f=e.getZr().dom;if(c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var d=t.getSeriesCount(),h=c.get(["data","maxCount"])||10,p=c.get(["series","maxCount"])||10,v=Math.min(d,p),g;if(!(d<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);g=o(m,{title:y})}else g=c.get(["general","withoutTitle"]);var b=[],_=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(_,{seriesCount:d}),t.eachSeries(function(T,k){if(k1?c.get(["series","multiple",D]):c.get(["series","single",D]),E=o(E,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var R=T.getData();if(R.count()>h){var A=c.get(["data","partialData"]);E+=o(A,{displayCnt:h})}else E+=c.get(["data","allData"]);for(var V=c.get(["data","separator","middle"]),P=c.get(["data","separator","end"]),N=[],I=0;I":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},pxt=function(){function t(e){var n=this._condVal=nt(e)?new RegExp(e):$Q(e)?e:null;if(n==null){var r="";hn(r)}}return t.prototype.evaluate=function(e){var n=typeof e;return nt(n)?this._condVal.test(e):rn(n)?this._condVal.test(e+""):!1},t}(),gxt=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),yxt=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n2&&r.push(a),a=[R,A]}function c(R,A,V,P){Rh(R,V)&&Rh(A,P)||a.push(R,A,V,P,V,P)}function f(R,A,V,P,N,I){var L=Math.abs(A-R),$=Math.tan(L/4)*4/3,U=AT:M2&&r.push(a),r}function NR(t,e,n,r,a,i,o,s,l,u){if(Rh(t,n)&&Rh(e,r)&&Rh(a,o)&&Rh(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-t,h=s-e,p=Math.sqrt(d*d+h*h);d/=p,h/=p;var v=n-t,g=r-e,y=a-o,m=i-s,b=v*v+g*g,_=y*y+m*m;if(b=0&&T=0){l.push(o,s);return}var k=[],E=[];Xu(t,n,a,o,.5,k),Xu(e,r,i,s,.5,E),NR(k[0],E[0],k[1],E[1],k[2],E[2],k[3],E[3],l,u),NR(k[4],E[4],k[5],E[5],k[6],E[6],k[7],E[7],l,u)}function Lxt(t,e){var n=OR(t),r=[];e=e||1;for(var a=0;a0)for(var u=0;uMath.abs(u),f=Bie([l,u],c?0:1,e),d=(c?s:u)/f.length,h=0;ha,o=Bie([r,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=t[s]/o.length,d=0;d1?null:new Bt(v*l+t,v*u+e)}function Nxt(t,e,n){var r=new Bt;Bt.sub(r,n,e),r.normalize();var a=new Bt;Bt.sub(a,t,e);var i=a.dot(r);return i}function rh(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function $xt(t,e,n){for(var r=t.length,a=[],i=0;io?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),$xt(e,u,c)}function dw(t,e,n,r){if(n===1)r.push(e);else{var a=Math.floor(n/2),i=t(e);dw(t,i[0],a,r),dw(t,i[1],n-a,r)}return r}function Ixt(t,e){for(var n=[],r=0;r0)for(var x=r/n,w=-r/2;w<=r/2;w+=x){for(var C=Math.sin(w),T=Math.cos(w),k=0,b=0;b0;u/=2){var c=0,f=0;(t&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function pw(t){var e=1/0,n=1/0,r=-1/0,a=-1/0,i=Be(t,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),n=Math.min(f,n),r=Math.max(c,r),a=Math.max(f,a),[c,f]}),o=Be(i,function(s,l){return{cp:s,z:Wxt(s[0],s[1],e,n,r,a),path:t[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Fie(t){return Pxt(t.path,t.count)}function $R(){return{fromIndividuals:[],toIndividuals:[],count:0}}function jxt(t,e,n){var r=[];function a(x){for(var w=0;w=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var i=l.length,u=Math.ceil(i/2);n[a].many=l.slice(u,i),n[s].many=l.slice(0,u),s++}return n}var Yxt={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;_H(t)&&(u=t,c=e),_H(e)&&(u=e,c=t);function f(y,m,b,_,x){var w=y.many,C=y.one;if(w.length===1&&!x){var T=m?w[0]:C,k=m?C:w[0];if(hw(T))f({many:[T],one:k},!0,b,_,!0);else{var E=s?gt({delay:s(b,_)},l):l;a$(T,k,E),i(T,k,T,k,E)}}else for(var M=gt({dividePath:Yxt[n],individualDelay:s&&function(N,I,L,$){return s(N+b,_)}},l),D=m?jxt(w,C,M):Kxt(C,w,M),R=D.fromIndividuals,A=D.toIndividuals,V=R.length,P=0;Pe.length,h=u?wH(c,u):wH(d?e:t,[d?t:e]),p=0,v=0;vzie))for(var a=r.getIndices(),i=qxt(r),o=0;o0&&_.group.traverse(function(w){w instanceof Wt&&!w.animators.length&&w.animateFrom({style:{opacity:0}},x)})})}function CH(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function TH(t){return Ie(t)?t.sort().join(","):t}function cu(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Jxt(t,e){var n=ct(),r=ct(),a=ct();return W(t.oldSeries,function(i,o){var s=t.oldDataGroupIds[o],l=t.oldData[o],u=CH(i),c=TH(u);r.set(c,{dataGroupId:s,data:l}),Ie(u)&&W(u,function(f){a.set(f,{key:c,dataGroupId:s,data:l})})}),W(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=CH(i),u=TH(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:cu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:cu(s),data:s}]});else if(Ie(l)){var f=[];W(l,function(p){var v=r.get(p);v.data&&f.push({dataGroupId:v.dataGroupId,divide:cu(v.data),data:v.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:cu(s)}]})}else{var d=a.get(l);if(d){var h=n.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:cu(d.data)}],newSeries:[]},n.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:cu(s)})}}}}),n}function EH(t,e){for(var n=0;n=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:cu(e.oldData[s]),dim:o.dimension})}),W(xn(t.to),function(o){var s=EH(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:cu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Gie(a,i,r)}function t2t(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){W(xn(r.seriesTransition),function(a){W(xn(a.to),function(i){for(var o=r.updatedSeries,s=0;s