1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489 |
- (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 PL(t,e){const n=Object.create(null),r=t.split(",");for(let a=0;a<r.length;a++)n[r[a]]=!0;return e?a=>!!n[a.toLowerCase()]:a=>!!n[a]}const er={},dp=[],pn=()=>{},Tse=()=>!1,Ese=/^on[^a-z]/,gx=t=>Ese.test(t),FL=t=>t.startsWith("onUpdate:"),br=Object.assign,zL=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Mse=Object.prototype.hasOwnProperty,Gt=(t,e)=>Mse.call(t,e),Ke=Array.isArray,hp=t=>fm(t)==="[object Map]",yx=t=>fm(t)==="[object Set]",kd=t=>fm(t)==="[object Date]",ft=t=>typeof t=="function",vt=t=>typeof t=="string",W0=t=>typeof t=="symbol",Lt=t=>t!==null&&typeof t=="object",K0=t=>Lt(t)&&ft(t.then)&&ft(t.catch),KH=Object.prototype.toString,fm=t=>KH.call(t),vb=t=>fm(t).slice(8,-1),_w=t=>fm(t)==="[object Object]",GL=t=>vt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,gb=PL(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),mx=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Dse=/-(\w)/g,ro=mx(t=>t.replace(Dse,(e,n)=>n?n.toUpperCase():"")),kse=/\B([A-Z])/g,Ec=mx(t=>t.replace(kse,"-$1").toLowerCase()),dm=mx(t=>t.charAt(0).toUpperCase()+t.slice(1)),yb=mx(t=>t?`on${dm(t)}`:""),j0=(t,e)=>!Object.is(t,e),mb=(t,e)=>{for(let n=0;n<t.length;n++)t[n](e)},xw=(t,e,n)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value:n})},JM=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Rse=t=>{const e=vt(t)?Number(t):NaN;return isNaN(e)?t:e};let cB;const eD=()=>cB||(cB=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function et(t){if(Ke(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],a=vt(r)?Nse(r):et(r);if(a)for(const i in a)e[i]=a[i]}return e}else{if(vt(t))return t;if(Lt(t))return t}}const Lse=/;(?![^(]*\))/g,Ose=/:([^]+)/,Ase=/\/\*[^]*?\*\//g;function Nse(t){const e={};return t.replace(Ase,"").split(Lse).forEach(n=>{if(n){const r=n.split(Ose);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function z(t){let e="";if(vt(t))e=t;else if(Ke(t))for(let n=0;n<t.length;n++){const r=z(t[n]);r&&(e+=r+" ")}else if(Lt(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function Po(t){if(!t)return null;let{class:e,style:n}=t;return e&&!vt(e)&&(t.class=z(e)),n&&(t.style=et(n)),t}const Vse="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Bse=PL(Vse);function jH(t){return!!t||t===""}function $se(t,e){if(t.length!==e.length)return!1;let n=!0;for(let r=0;n&&r<t.length;r++)n=Ap(t[r],e[r]);return n}function Ap(t,e){if(t===e)return!0;let n=kd(t),r=kd(e);if(n||r)return n&&r?t.getTime()===e.getTime():!1;if(n=W0(t),r=W0(e),n||r)return t===e;if(n=Ke(t),r=Ke(e),n||r)return n&&r?$se(t,e):!1;if(n=Lt(t),r=Lt(e),n||r){if(!n||!r)return!1;const a=Object.keys(t).length,i=Object.keys(e).length;if(a!==i)return!1;for(const o in t){const s=t.hasOwnProperty(o),l=e.hasOwnProperty(o);if(s&&!l||!s&&l||!Ap(t[o],e[o]))return!1}}return String(t)===String(e)}function YH(t,e){return t.findIndex(n=>Ap(n,e))}const Le=t=>vt(t)?t:t==null?"":Ke(t)||Lt(t)&&(t.toString===KH||!ft(t.toString))?JSON.stringify(t,XH,2):String(t),XH=(t,e)=>e&&e.__v_isRef?XH(t,e.value):hp(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,a])=>(n[`${r} =>`]=a,n),{})}:yx(e)?{[`Set(${e.size})`]:[...e.values()]}:Lt(e)&&!Ke(e)&&!_w(e)?String(e):e;let wi;class qH{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=wi,!e&&wi&&(this.index=(wi.scopes||(wi.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const n=wi;try{return wi=this,e()}finally{wi=n}}}on(){wi=this}off(){wi=this.parent}stop(e){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!e){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0,this._active=!1}}}function ZH(t){return new qH(t)}function Ise(t,e=wi){e&&e.active&&e.effects.push(t)}function QH(){return wi}function JH(t){wi&&wi.cleanups.push(t)}const UL=t=>{const e=new Set(t);return e.w=0,e.n=0,e},eW=t=>(t.w&sc)>0,tW=t=>(t.n&sc)>0,Pse=({deps:t})=>{if(t.length)for(let e=0;e<t.length;e++)t[e].w|=sc},Fse=t=>{const{deps:e}=t;if(e.length){let n=0;for(let r=0;r<e.length;r++){const a=e[r];eW(a)&&!tW(a)?a.delete(t):e[n++]=a,a.w&=~sc,a.n&=~sc}e.length=n}},Cw=new WeakMap;let Ug=0,sc=1;const tD=30;let Bo;const fd=Symbol(""),nD=Symbol("");class HL{constructor(e,n=null,r){this.fn=e,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Ise(this,r)}run(){if(!this.active)return this.fn();let e=Bo,n=Xu;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Bo,Bo=this,Xu=!0,sc=1<<++Ug,Ug<=tD?Pse(this):fB(this),this.fn()}finally{Ug<=tD&&Fse(this),sc=1<<--Ug,Bo=this.parent,Xu=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Bo===this?this.deferStop=!0:this.active&&(fB(this),this.onStop&&this.onStop(),this.active=!1)}}function fB(t){const{deps:e}=t;if(e.length){for(let n=0;n<e.length;n++)e[n].delete(t);e.length=0}}let Xu=!0;const nW=[];function mv(){nW.push(Xu),Xu=!1}function Sv(){const t=nW.pop();Xu=t===void 0?!0:t}function gi(t,e,n){if(Xu&&Bo){let r=Cw.get(t);r||Cw.set(t,r=new Map);let a=r.get(n);a||r.set(n,a=UL()),rW(a)}}function rW(t,e){let n=!1;Ug<=tD?tW(t)||(t.n|=sc,n=!eW(t)):n=!t.has(Bo),n&&(t.add(Bo),Bo.deps.push(t))}function Vl(t,e,n,r,a,i){const o=Cw.get(t);if(!o)return;let s=[];if(e==="clear")s=[...o.values()];else if(n==="length"&&Ke(t)){const l=Number(r);o.forEach((u,c)=>{(c==="length"||c>=l)&&s.push(u)})}else switch(n!==void 0&&s.push(o.get(n)),e){case"add":Ke(t)?GL(n)&&s.push(o.get("length")):(s.push(o.get(fd)),hp(t)&&s.push(o.get(nD)));break;case"delete":Ke(t)||(s.push(o.get(fd)),hp(t)&&s.push(o.get(nD)));break;case"set":hp(t)&&s.push(o.get(fd));break}if(s.length===1)s[0]&&rD(s[0]);else{const l=[];for(const u of s)u&&l.push(...u);rD(UL(l))}}function rD(t,e){const n=Ke(t)?t:[...t];for(const r of n)r.computed&&dB(r);for(const r of n)r.computed||dB(r)}function dB(t,e){(t!==Bo||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function zse(t,e){var n;return(n=Cw.get(t))==null?void 0:n.get(e)}const Gse=PL("__proto__,__v_isRef,__isVue"),aW=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(W0)),Use=WL(),Hse=WL(!1,!0),Wse=WL(!0),hB=Kse();function Kse(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...n){const r=un(this);for(let i=0,o=this.length;i<o;i++)gi(r,"get",i+"");const a=r[e](...n);return a===-1||a===!1?r[e](...n.map(un)):a}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...n){mv();const r=un(this)[e].apply(this,n);return Sv(),r}}),t}function jse(t){const e=un(this);return gi(e,"has",t),e.hasOwnProperty(t)}function WL(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?ule:uW:e?lW:sW).get(r))return r;const o=Ke(r);if(!t){if(o&&Gt(hB,a))return Reflect.get(hB,a,i);if(a==="hasOwnProperty")return jse}const s=Reflect.get(r,a,i);return(W0(a)?aW.has(a):Gse(a))||(t||gi(r,"get",a),e)?s:en(s)?o&&GL(a)?s:s.value:Lt(s)?t?bv(s):Zt(s):s}}const Yse=iW(),Xse=iW(!0);function iW(t=!1){return function(n,r,a,i){let o=n[r];if(Np(o)&&en(o)&&!en(a))return!1;if(!t&&(!Tw(a)&&!Np(a)&&(o=un(o),a=un(a)),!Ke(n)&&en(o)&&!en(a)))return o.value=a,!0;const s=Ke(n)&&GL(r)?Number(r)<n.length:Gt(n,r),l=Reflect.set(n,r,a,i);return n===un(i)&&(s?j0(a,o)&&Vl(n,"set",r,a):Vl(n,"add",r,a)),l}}function qse(t,e){const n=Gt(t,e);t[e];const r=Reflect.deleteProperty(t,e);return r&&n&&Vl(t,"delete",e,void 0),r}function Zse(t,e){const n=Reflect.has(t,e);return(!W0(e)||!aW.has(e))&&gi(t,"has",e),n}function Qse(t){return gi(t,"iterate",Ke(t)?"length":fd),Reflect.ownKeys(t)}const oW={get:Use,set:Yse,deleteProperty:qse,has:Zse,ownKeys:Qse},Jse={get:Wse,set(t,e){return!0},deleteProperty(t,e){return!0}},ele=br({},oW,{get:Hse,set:Xse}),KL=t=>t,Sx=t=>Reflect.getPrototypeOf(t);function c1(t,e,n=!1,r=!1){t=t.__v_raw;const a=un(t),i=un(e);n||(e!==i&&gi(a,"get",e),gi(a,"get",i));const{has:o}=Sx(a),s=r?KL:n?qL:Y0;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 f1(t,e=!1){const n=this.__v_raw,r=un(n),a=un(t);return e||(t!==a&&gi(r,"has",t),gi(r,"has",a)),t===a?n.has(t):n.has(t)||n.has(a)}function d1(t,e=!1){return t=t.__v_raw,!e&&gi(un(t),"iterate",fd),Reflect.get(t,"size",t)}function pB(t){t=un(t);const e=un(this);return Sx(e).has.call(e,t)||(e.add(t),Vl(e,"add",t,t)),this}function vB(t,e){e=un(e);const n=un(this),{has:r,get:a}=Sx(n);let i=r.call(n,t);i||(t=un(t),i=r.call(n,t));const o=a.call(n,t);return n.set(t,e),i?j0(e,o)&&Vl(n,"set",t,e):Vl(n,"add",t,e),this}function gB(t){const e=un(this),{has:n,get:r}=Sx(e);let a=n.call(e,t);a||(t=un(t),a=n.call(e,t)),r&&r.call(e,t);const i=e.delete(t);return a&&Vl(e,"delete",t,void 0),i}function yB(){const t=un(this),e=t.size!==0,n=t.clear();return e&&Vl(t,"clear",void 0,void 0),n}function h1(t,e){return function(r,a){const i=this,o=i.__v_raw,s=un(o),l=e?KL:t?qL:Y0;return!t&&gi(s,"iterate",fd),o.forEach((u,c)=>r.call(a,l(u),l(c),i))}}function p1(t,e,n){return function(...r){const a=this.__v_raw,i=un(a),o=hp(i),s=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,u=a[t](...r),c=n?KL:e?qL:Y0;return!e&&gi(i,"iterate",l?nD:fd),{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 au(t){return function(...e){return t==="delete"?!1:this}}function tle(){const t={get(i){return c1(this,i)},get size(){return d1(this)},has:f1,add:pB,set:vB,delete:gB,clear:yB,forEach:h1(!1,!1)},e={get(i){return c1(this,i,!1,!0)},get size(){return d1(this)},has:f1,add:pB,set:vB,delete:gB,clear:yB,forEach:h1(!1,!0)},n={get(i){return c1(this,i,!0)},get size(){return d1(this,!0)},has(i){return f1.call(this,i,!0)},add:au("add"),set:au("set"),delete:au("delete"),clear:au("clear"),forEach:h1(!0,!1)},r={get(i){return c1(this,i,!0,!0)},get size(){return d1(this,!0)},has(i){return f1.call(this,i,!0)},add:au("add"),set:au("set"),delete:au("delete"),clear:au("clear"),forEach:h1(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{t[i]=p1(i,!1,!1),n[i]=p1(i,!0,!1),e[i]=p1(i,!1,!0),r[i]=p1(i,!0,!0)}),[t,n,e,r]}const[nle,rle,ale,ile]=tle();function jL(t,e){const n=e?t?ile:ale:t?rle:nle;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 ole={get:jL(!1,!1)},sle={get:jL(!1,!0)},lle={get:jL(!0,!1)},sW=new WeakMap,lW=new WeakMap,uW=new WeakMap,ule=new WeakMap;function cle(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function fle(t){return t.__v_skip||!Object.isExtensible(t)?0:cle(vb(t))}function Zt(t){return Np(t)?t:XL(t,!1,oW,ole,sW)}function YL(t){return XL(t,!1,ele,sle,lW)}function bv(t){return XL(t,!0,Jse,lle,uW)}function XL(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=fle(t);if(o===0)return t;const s=new Proxy(t,o===2?r:n);return a.set(t,s),s}function pp(t){return Np(t)?pp(t.__v_raw):!!(t&&t.__v_isReactive)}function Np(t){return!!(t&&t.__v_isReadonly)}function Tw(t){return!!(t&&t.__v_isShallow)}function cW(t){return pp(t)||Np(t)}function un(t){const e=t&&t.__v_raw;return e?un(e):t}function qu(t){return xw(t,"__v_skip",!0),t}const Y0=t=>Lt(t)?Zt(t):t,qL=t=>Lt(t)?bv(t):t;function fW(t){Xu&&Bo&&(t=un(t),rW(t.dep||(t.dep=UL())))}function ZL(t,e){t=un(t);const n=t.dep;n&&rD(n)}function en(t){return!!(t&&t.__v_isRef===!0)}function G(t){return dW(t,!1)}function Cn(t){return dW(t,!0)}function dW(t,e){return en(t)?t:new dle(t,e)}class dle{constructor(e,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?e:un(e),this._value=n?e:Y0(e)}get value(){return fW(this),this._value}set value(e){const n=this.__v_isShallow||Tw(e)||Np(e);e=n?e:un(e),j0(e,this._rawValue)&&(this._rawValue=e,this._value=n?e:Y0(e),ZL(this))}}function Jv(t){ZL(t)}function w(t){return en(t)?t.value:t}const hle={get:(t,e,n)=>w(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const a=t[e];return en(a)&&!en(n)?(a.value=n,!0):Reflect.set(t,e,n,r)}};function hW(t){return pp(t)?t:new Proxy(t,hle)}function $r(t){const e=Ke(t)?new Array(t.length):{};for(const n in t)e[n]=pW(t,n);return e}class ple{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 zse(un(this._object),this._key)}}class vle{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Kn(t,e,n){return en(t)?t:ft(t)?new vle(t):Lt(t)&&arguments.length>1?pW(t,e,n):G(t)}function pW(t,e,n){const r=t[e];return en(r)?r:new ple(t,e,n)}class gle{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 HL(e,()=>{this._dirty||(this._dirty=!0,ZL(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=r}get value(){const e=un(this);return fW(e),(e._dirty||!e._cacheable)&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function vW(t,e,n=!1){let r,a;const i=ft(t);return i?(r=t,a=pn):(r=t.get,a=t.set),new gle(r,a,i||!a,n)}function yle(t,...e){}function Zu(t,e,n,r){let a;try{a=r?t(...r):t()}catch(i){bx(i,e,n)}return a}function Ji(t,e,n,r){if(ft(t)){const i=Zu(t,e,n,r);return i&&K0(i)&&i.catch(o=>{bx(o,e,n)}),i}const a=[];for(let i=0;i<t.length;i++)a.push(Ji(t[i],e,n,r));return a}function bx(t,e,n,r=!0){const a=e?e.vnode:null;if(e){let i=e.parent;const o=e.proxy,s=n;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](t,o,s)===!1)return}i=i.parent}const l=e.appContext.config.errorHandler;if(l){Zu(l,null,10,[t,o,s]);return}}mle(t,n,a,r)}function mle(t,e,n,r=!0){console.error(t)}let X0=!1,aD=!1;const ba=[];let Es=0;const vp=[];let vl=null,$f=0;const gW=Promise.resolve();let QL=null;function Ze(t){const e=QL||gW;return t?e.then(this?t.bind(this):t):e}function Sle(t){let e=Es+1,n=ba.length;for(;e<n;){const r=e+n>>>1;q0(ba[r])<t?e=r+1:n=r}return e}function JL(t){(!ba.length||!ba.includes(t,X0&&t.allowRecurse?Es+1:Es))&&(t.id==null?ba.push(t):ba.splice(Sle(t.id),0,t),yW())}function yW(){!X0&&!aD&&(aD=!0,QL=gW.then(SW))}function ble(t){const e=ba.indexOf(t);e>Es&&ba.splice(e,1)}function wle(t){Ke(t)?vp.push(...t):(!vl||!vl.includes(t,t.allowRecurse?$f+1:$f))&&vp.push(t),yW()}function mB(t,e=X0?Es+1:0){for(;e<ba.length;e++){const n=ba[e];n&&n.pre&&(ba.splice(e,1),e--,n())}}function mW(t){if(vp.length){const e=[...new Set(vp)];if(vp.length=0,vl){vl.push(...e);return}for(vl=e,vl.sort((n,r)=>q0(n)-q0(r)),$f=0;$f<vl.length;$f++)vl[$f]();vl=null,$f=0}}const q0=t=>t.id==null?1/0:t.id,_le=(t,e)=>{const n=q0(t)-q0(e);if(n===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return n};function SW(t){aD=!1,X0=!0,ba.sort(_le);const e=pn;try{for(Es=0;Es<ba.length;Es++){const n=ba[Es];n&&n.active!==!1&&Zu(n,null,14)}}finally{Es=0,ba.length=0,mW(),X0=!1,QL=null,(ba.length||vp.length)&&SW()}}function xle(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||er;let a=n;const i=e.startsWith("update:"),o=i&&e.slice(7);if(o&&o in r){const c=`${o==="modelValue"?"model":o}Modifiers`,{number:f,trim:d}=r[c]||er;d&&(a=n.map(h=>vt(h)?h.trim():h)),f&&(a=n.map(JM))}let s,l=r[s=yb(e)]||r[s=yb(ro(e))];!l&&i&&(l=r[s=yb(Ec(e))]),l&&Ji(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,Ji(u,t,6,a)}}function bW(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(!ft(t)){const l=u=>{const c=bW(u,e,!0);c&&(s=!0,br(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):(Ke(i)?i.forEach(l=>o[l]=null):br(o,i),Lt(t)&&r.set(t,o),o)}function _x(t,e){return!t||!gx(e)?!1:(e=e.slice(2).replace(/Once$/,""),Gt(t,e[0].toLowerCase()+e.slice(1))||Gt(t,Ec(e))||Gt(t,e))}let aa=null,xx=null;function Ew(t){const e=aa;return aa=t,xx=t&&t.type.__scopeId||null,e}function hm(t){xx=t}function pm(){xx=null}function q(t,e=aa,n){if(!e||t._n)return t;const r=(...a)=>{r._d&&LB(-1);const i=Ew(e);let o;try{o=t(...a)}finally{Ew(i),r._d&&LB(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function fT(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:v,inheritAttrs:p}=t;let g,y;const m=Ew(t);try{if(n.shapeFlag&4){const b=a||r;g=Cs(c.call(b,b,f,i,h,d,v)),y=l}else{const b=e;g=Cs(b.length>1?b(i,{attrs:l,slots:s,emit:u}):b(i,null)),y=e.props?l:Cle(l)}}catch(b){h0.length=0,bx(b,t,1),g=U(Fa)}let S=g;if(y&&p!==!1){const b=Object.keys(y),{shapeFlag:x}=S;b.length&&x&7&&(o&&b.some(FL)&&(y=Tle(y,o)),S=$l(S,y))}return n.dirs&&(S=$l(S),S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),g=S,Ew(m),g}const Cle=t=>{let e;for(const n in t)(n==="class"||n==="style"||gx(n))&&((e||(e={}))[n]=t[n]);return e},Tle=(t,e)=>{const n={};for(const r in t)(!FL(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Ele(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?SB(r,o,u):!!o;if(l&8){const c=e.dynamicProps;for(let f=0;f<c.length;f++){const d=c[f];if(o[d]!==r[d]&&!_x(u,d))return!0}}}else return(a||s)&&(!s||!s.$stable)?!0:r===o?!1:r?o?SB(r,o,u):!0:!!o;return!1}function SB(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let a=0;a<r.length;a++){const i=r[a];if(e[i]!==t[i]&&!_x(n,i))return!0}return!1}function Mle({vnode:t,parent:e},n){for(;e&&e.subTree===t;)(t=e.vnode).el=n,e=e.parent}const Dle=t=>t.__isSuspense;function kle(t,e){e&&e.pendingBranch?Ke(t)?e.effects.push(...t):e.effects.push(t):wle(t)}function Di(t,e){return eO(t,null,e)}const v1={};function Me(t,e,n){return eO(t,e,n)}function eO(t,e,{immediate:n,deep:r,flush:a,onTrack:i,onTrigger:o}=er){var s;const l=QH()===((s=Kr)==null?void 0:s.scope)?Kr:null;let u,c=!1,f=!1;if(en(t)?(u=()=>t.value,c=Tw(t)):pp(t)?(u=()=>t,r=!0):Ke(t)?(f=!0,c=t.some(b=>pp(b)||Tw(b)),u=()=>t.map(b=>{if(en(b))return b.value;if(pp(b))return Xf(b);if(ft(b))return Zu(b,l,2)})):ft(t)?e?u=()=>Zu(t,l,2):u=()=>{if(!(l&&l.isUnmounted))return d&&d(),Ji(t,l,3,[h])}:u=pn,e&&r){const b=u;u=()=>Xf(b())}let d,h=b=>{d=m.onStop=()=>{Zu(b,l,4)}},v;if(ey)if(h=pn,e?n&&Ji(e,l,3,[u(),f?[]:void 0,h]):u(),a==="sync"){const b=yue();v=b.__watcherHandles||(b.__watcherHandles=[])}else return pn;let p=f?new Array(t.length).fill(v1):v1;const g=()=>{if(m.active)if(e){const b=m.run();(r||c||(f?b.some((x,_)=>j0(x,p[_])):j0(b,p)))&&(d&&d(),Ji(e,l,3,[b,p===v1?void 0:f&&p[0]===v1?[]:p,h]),p=b)}else m.run()};g.allowRecurse=!!e;let y;a==="sync"?y=g:a==="post"?y=()=>oi(g,l&&l.suspense):(g.pre=!0,l&&(g.id=l.uid),y=()=>JL(g));const m=new HL(u,y);e?n?g():p=m.run():a==="post"?oi(m.run.bind(m),l&&l.suspense):m.run();const S=()=>{m.stop(),l&&l.scope&&zL(l.scope.effects,m)};return v&&v.push(S),S}function Rle(t,e,n){const r=this.proxy,a=vt(t)?t.includes(".")?wW(r,t):()=>r[t]:t.bind(r,r);let i;ft(e)?i=e:(i=e.handler,n=e);const o=Kr;Bp(this);const s=eO(a,i.bind(r),n);return o?Bp(o):dd(),s}function wW(t,e){const n=e.split(".");return()=>{let r=t;for(let a=0;a<n.length&&r;a++)r=r[n[a]];return r}}function Xf(t,e){if(!Lt(t)||t.__v_skip||(e=e||new Set,e.has(t)))return t;if(e.add(t),en(t))Xf(t.value,e);else if(Ke(t))for(let n=0;n<t.length;n++)Xf(t[n],e);else if(yx(t)||hp(t))t.forEach(n=>{Xf(n,e)});else if(_w(t))for(const n in t)Xf(t[n],e);return t}function ct(t,e){const n=aa;if(n===null)return t;const r=kx(n)||n.proxy,a=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[o,s,l,u=er]=e[i];o&&(ft(o)&&(o={mounted:o,updated:o}),o.deep&&Xf(s),a.push({dir:o,instance:r,value:s,oldValue:void 0,arg:l,modifiers:u}))}return t}function Gc(t,e,n,r){const a=t.dirs,i=e&&e.dirs;for(let o=0;o<a.length;o++){const s=a[o];i&&(s.oldValue=i[o].value);let l=s.dir[r];l&&(mv(),Ji(l,n,8,[t.el,s,t,e]),Sv())}}function _W(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return St(()=>{t.isMounted=!0}),Pn(()=>{t.isUnmounting=!0}),t}const Ni=[Function,Array],xW={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ni,onEnter:Ni,onAfterEnter:Ni,onEnterCancelled:Ni,onBeforeLeave:Ni,onLeave:Ni,onAfterLeave:Ni,onLeaveCancelled:Ni,onBeforeAppear:Ni,onAppear:Ni,onAfterAppear:Ni,onAppearCancelled:Ni},Lle={name:"BaseTransition",props:xW,setup(t,{slots:e}){const n=_t(),r=_W();let a;return()=>{const i=e.default&&tO(e.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const p of i)if(p.type!==Fa){o=p;break}}const s=un(t),{mode:l}=s;if(r.isLeaving)return dT(o);const u=bB(o);if(!u)return dT(o);const c=Z0(u,s,r,n);Q0(u,c);const f=n.subTree,d=f&&bB(f);let h=!1;const{getTransitionKey:v}=u.type;if(v){const p=v();a===void 0?a=p:p!==a&&(a=p,h=!0)}if(d&&d.type!==Fa&&(!If(u,d)||h)){const p=Z0(d,s,r,n);if(Q0(d,p),l==="out-in")return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},dT(o);l==="in-out"&&u.type!==Fa&&(p.delayLeave=(g,y,m)=>{const S=CW(r,d);S[String(d.key)]=d,g._leaveCb=()=>{y(),g._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=m})}return o}}},Ole=Lle;function CW(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 Z0(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:v,onBeforeAppear:p,onAppear:g,onAfterAppear:y,onAppearCancelled:m}=e,S=String(t.key),b=CW(n,t),x=(T,D)=>{T&&Ji(T,r,9,D)},_=(T,D)=>{const M=D[1];x(T,D),Ke(T)?T.every(E=>E.length<=1)&&M():T.length<=1&&M()},C={mode:i,persisted:o,beforeEnter(T){let D=s;if(!n.isMounted)if(a)D=p||s;else return;T._leaveCb&&T._leaveCb(!0);const M=b[S];M&&If(t,M)&&M.el._leaveCb&&M.el._leaveCb(),x(D,[T])},enter(T){let D=l,M=u,E=c;if(!n.isMounted)if(a)D=g||l,M=y||u,E=m||c;else return;let k=!1;const R=T._enterCb=O=>{k||(k=!0,O?x(E,[T]):x(M,[T]),C.delayedLeave&&C.delayedLeave(),T._enterCb=void 0)};D?_(D,[T,R]):R()},leave(T,D){const M=String(t.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return D();x(f,[T]);let E=!1;const k=T._leaveCb=R=>{E||(E=!0,D(),R?x(v,[T]):x(h,[T]),T._leaveCb=void 0,b[M]===t&&delete b[M])};b[M]=t,d?_(d,[T,k]):k()},clone(T){return Z0(T,e,n,r)}};return C}function dT(t){if(Cx(t))return t=$l(t),t.children=null,t}function bB(t){return Cx(t)?t.children?t.children[0]:void 0:t}function Q0(t,e){t.shapeFlag&6&&t.component?Q0(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 tO(t,e=!1,n){let r=[],a=0;for(let i=0;i<t.length;i++){let o=t[i];const s=n==null?o.key:String(n)+String(o.key!=null?o.key:i);o.type===Qe?(o.patchFlag&128&&a++,r=r.concat(tO(o.children,e,s))):(e||o.type!==Fa)&&r.push(s!=null?$l(o,{key:s}):o)}if(a>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function ae(t,e){return ft(t)?(()=>br({name:t.name},e,{setup:t}))():t}const c0=t=>!!t.type.__asyncLoader,Cx=t=>t.type.__isKeepAlive;function Ale(t,e){EW(t,"a",e)}function TW(t,e){EW(t,"da",e)}function EW(t,e,n=Kr){const r=t.__wdc||(t.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(Tx(e,r,n),n){let a=n.parent;for(;a&&a.parent;)Cx(a.parent.vnode)&&Nle(r,e,n,a),a=a.parent}}function Nle(t,e,n,r){const a=Tx(e,t,r,!0);Mc(()=>{zL(r[e],a)},n)}function Tx(t,e,n=Kr,r=!1){if(n){const a=n[t]||(n[t]=[]),i=e.__weh||(e.__weh=(...o)=>{if(n.isUnmounted)return;mv(),Bp(n);const s=Ji(e,n,t,o);return dd(),Sv(),s});return r?a.unshift(i):a.push(i),i}}const Xl=t=>(e,n=Kr)=>(!ey||t==="sp")&&Tx(t,(...r)=>e(...r),n),Ex=Xl("bm"),St=Xl("m"),MW=Xl("bu"),ql=Xl("u"),Pn=Xl("bum"),Mc=Xl("um"),Vle=Xl("sp"),Ble=Xl("rtg"),$le=Xl("rtc");function Ile(t,e=Kr){Tx("ec",t,e)}const nO="components",Ple="directives";function Pe(t,e){return rO(nO,t,!0,e)||t}const DW=Symbol.for("v-ndc");function Dt(t){return vt(t)?rO(nO,t,!1)||t:t||DW}function Vp(t){return rO(Ple,t)}function rO(t,e,n=!0,r=!1){const a=aa||Kr;if(a){const i=a.type;if(t===nO){const s=pue(i,!1);if(s&&(s===e||s===ro(e)||s===dm(ro(e))))return i}const o=wB(a[t]||i[t],e)||wB(a.appContext[t],e);return!o&&r?i:o}}function wB(t,e){return t&&(t[e]||t[ro(e)]||t[dm(ro(e))])}function Vt(t,e,n,r){let a;const i=n&&n[r];if(Ke(t)||vt(t)){a=new Array(t.length);for(let o=0,s=t.length;o<s;o++)a[o]=e(t[o],o,void 0,i&&i[o])}else if(typeof t=="number"){a=new Array(t);for(let o=0;o<t;o++)a[o]=e(o+1,o,void 0,i&&i[o])}else if(Lt(t))if(t[Symbol.iterator])a=Array.from(t,(o,s)=>e(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<l;s++){const u=o[s];a[s]=e(t[u],u,s,i&&i[s])}}else a=[];return n&&(n[r]=a),a}function Bl(t,e){for(let n=0;n<e.length;n++){const r=e[n];if(Ke(r))for(let a=0;a<r.length;a++)t[r[a].name]=r[a].fn;else r&&(t[r.name]=r.key?(...a)=>{const i=r.fn(...a);return i&&(i.key=r.key),i}:r.fn)}return t}function Ce(t,e,n={},r,a){if(aa.isCE||aa.parent&&c0(aa.parent)&&aa.parent.isCE)return e!=="default"&&(n.name=e),U("slot",n,r&&r());let i=t[e];i&&i._c&&(i._d=!1),I();const o=i&&kW(i(n)),s=ve(Qe,{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 kW(t){return t.some(e=>Hn(e)?!(e.type===Fa||e.type===Qe&&!kW(e.children)):!0)?t:null}function Fle(t,e){const n={};for(const r in t)n[e&&/[A-Z]/.test(r)?`on:${r}`:yb(r)]=t[r];return n}const iD=t=>t?zW(t)?kx(t)||t.proxy:iD(t.parent):null,f0=br(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=>iD(t.parent),$root:t=>iD(t.root),$emit:t=>t.emit,$options:t=>aO(t),$forceUpdate:t=>t.f||(t.f=()=>JL(t.update)),$nextTick:t=>t.n||(t.n=Ze.bind(t.proxy)),$watch:t=>Rle.bind(t)}),hT=(t,e)=>t!==er&&!t.__isScriptSetup&&Gt(t,e),zle={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(hT(r,e))return o[e]=1,r[e];if(a!==er&&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!==er&&Gt(n,e))return o[e]=4,n[e];oD&&(o[e]=0)}}const c=f0[e];let f,d;if(c)return e==="$attrs"&&gi(t,"get",e),c(t);if((f=s.__cssModules)&&(f=f[e]))return f;if(n!==er&&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 hT(a,e)?(a[e]=n,!0):r!==er&&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!==er&&Gt(t,o)||hT(e,o)||(s=i[0])&&Gt(s,o)||Gt(r,o)||Gt(f0,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 fa(){return RW().slots}function Hd(){return RW().attrs}function RW(){const t=_t();return t.setupContext||(t.setupContext=UW(t))}function _B(t){return Ke(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let oD=!0;function Gle(t){const e=aO(t),n=t.proxy,r=t.ctx;oD=!1,e.beforeCreate&&xB(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:v,activated:p,deactivated:g,beforeDestroy:y,beforeUnmount:m,destroyed:S,unmounted:b,render:x,renderTracked:_,renderTriggered:C,errorCaptured:T,serverPrefetch:D,expose:M,inheritAttrs:E,components:k,directives:R,filters:O}=e;if(u&&Ule(u,r,null),o)for(const V in o){const F=o[V];ft(F)&&(r[V]=F.bind(n))}if(a){const V=a.call(n,n);Lt(V)&&(t.data=Zt(V))}if(oD=!0,i)for(const V in i){const F=i[V],L=ft(F)?F.bind(n,n):ft(F.get)?F.get.bind(n,n):pn,N=!ft(F)&&ft(F.set)?F.set.bind(n):pn,H=A({get:L,set:N});Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>H.value,set:K=>H.value=K})}if(s)for(const V in s)LW(s[V],r,n,V);if(l){const V=ft(l)?l.call(n):l;Reflect.ownKeys(V).forEach(F=>{At(F,V[F])})}c&&xB(c,t,"c");function $(V,F){Ke(F)?F.forEach(L=>V(L.bind(n))):F&&V(F.bind(n))}if($(Ex,f),$(St,d),$(MW,h),$(ql,v),$(Ale,p),$(TW,g),$(Ile,T),$($le,_),$(Ble,C),$(Pn,m),$(Mc,b),$(Vle,D),Ke(M))if(M.length){const V=t.exposed||(t.exposed={});M.forEach(F=>{Object.defineProperty(V,F,{get:()=>n[F],set:L=>n[F]=L})})}else t.exposed||(t.exposed={});x&&t.render===pn&&(t.render=x),E!=null&&(t.inheritAttrs=E),k&&(t.components=k),R&&(t.directives=R)}function Ule(t,e,n=pn){Ke(t)&&(t=sD(t));for(const r in t){const a=t[r];let i;Lt(a)?"default"in a?i=Ye(a.from||r,a.default,!0):i=Ye(a.from||r):i=Ye(a),en(i)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):e[r]=i}}function xB(t,e,n){Ji(Ke(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function LW(t,e,n,r){const a=r.includes(".")?wW(n,r):()=>n[r];if(vt(t)){const i=e[t];ft(i)&&Me(a,i)}else if(ft(t))Me(a,t.bind(n));else if(Lt(t))if(Ke(t))t.forEach(i=>LW(i,e,n,r));else{const i=ft(t.handler)?t.handler.bind(n):e[t.handler];ft(i)&&Me(a,i,t)}}function aO(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=>Mw(l,u,o,!0)),Mw(l,e,o)),Lt(e)&&i.set(e,l),l}function Mw(t,e,n,r=!1){const{mixins:a,extends:i}=e;i&&Mw(t,i,n,!0),a&&a.forEach(o=>Mw(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const s=Hle[o]||n&&n[o];t[o]=s?s(t[o],e[o]):e[o]}return t}const Hle={data:CB,props:TB,emits:TB,methods:Hg,computed:Hg,beforeCreate:Aa,created:Aa,beforeMount:Aa,mounted:Aa,beforeUpdate:Aa,updated:Aa,beforeDestroy:Aa,beforeUnmount:Aa,destroyed:Aa,unmounted:Aa,activated:Aa,deactivated:Aa,errorCaptured:Aa,serverPrefetch:Aa,components:Hg,directives:Hg,watch:Kle,provide:CB,inject:Wle};function CB(t,e){return e?t?function(){return br(ft(t)?t.call(this,this):t,ft(e)?e.call(this,this):e)}:e:t}function Wle(t,e){return Hg(sD(t),sD(e))}function sD(t){if(Ke(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Aa(t,e){return t?[...new Set([].concat(t,e))]:e}function Hg(t,e){return t?br(Object.create(null),t,e):e}function TB(t,e){return t?Ke(t)&&Ke(e)?[...new Set([...t,...e])]:br(Object.create(null),_B(t),_B(e??{})):e}function Kle(t,e){if(!t)return e;if(!e)return t;const n=br(Object.create(null),t);for(const r in e)n[r]=Aa(t[r],e[r]);return n}function OW(){return{app:null,config:{isNativeTag:Tse,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let jle=0;function Yle(t,e){return function(r,a=null){ft(r)||(r=br({},r)),a!=null&&!Lt(a)&&(a=null);const i=OW(),o=new Set;let s=!1;const l=i.app={_uid:jle++,_component:r,_props:a,_container:null,_context:i,_instance:null,version:mue,get config(){return i.config},set config(u){},use(u,...c){return o.has(u)||(u&&ft(u.install)?(o.add(u),u.install(l,...c)):ft(u)&&(o.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,f){if(!s){const d=U(r,a);return d.appContext=i,c&&e?e(d,u):t(d,u,f),s=!0,l._container=u,u.__vue_app__=l,kx(d.component)||d.component.proxy}},unmount(){s&&(t(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l},runWithContext(u){Dw=l;try{return u()}finally{Dw=null}}};return l}}let Dw=null;function At(t,e){if(Kr){let n=Kr.provides;const r=Kr.parent&&Kr.parent.provides;r===n&&(n=Kr.provides=Object.create(r)),n[t]=e}}function Ye(t,e,n=!1){const r=Kr||aa;if(r||Dw){const a=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Dw._context.provides;if(a&&t in a)return a[t];if(arguments.length>1)return n&&ft(e)?e.call(r&&r.proxy):e}}function Xle(t,e,n,r=!1){const a={},i={};xw(i,Mx,1),t.propsDefaults=Object.create(null),AW(t,e,a,i);for(const o in t.propsOptions[0])o in a||(a[o]=void 0);n?t.props=r?a:YL(a):t.type.props?t.props=a:t.props=i,t.attrs=i}function qle(t,e,n,r){const{props:a,attrs:i,vnode:{patchFlag:o}}=t,s=un(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<c.length;f++){let d=c[f];if(_x(t.emitsOptions,d))continue;const h=e[d];if(l)if(Gt(i,d))h!==i[d]&&(i[d]=h,u=!0);else{const v=ro(d);a[v]=lD(l,s,v,h,t,!1)}else h!==i[d]&&(i[d]=h,u=!0)}}}else{AW(t,e,a,i)&&(u=!0);let c;for(const f in s)(!e||!Gt(e,f)&&((c=Ec(f))===f||!Gt(e,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(a[f]=lD(l,s,f,void 0,t,!0)):delete a[f]);if(i!==s)for(const f in i)(!e||!Gt(e,f))&&(delete i[f],u=!0)}u&&Vl(t,"set","$attrs")}function AW(t,e,n,r){const[a,i]=t.propsOptions;let o=!1,s;if(e)for(let l in e){if(gb(l))continue;const u=e[l];let c;a&&Gt(a,c=ro(l))?!i||!i.includes(c)?n[c]=u:(s||(s={}))[c]=u:_x(t.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,o=!0)}if(i){const l=un(n),u=s||er;for(let c=0;c<i.length;c++){const f=i[c];n[f]=lD(a,l,f,u[f],t,!Gt(u,f))}}return o}function lD(t,e,n,r,a,i){const o=t[n];if(o!=null){const s=Gt(o,"default");if(s&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&ft(l)){const{propsDefaults:u}=a;n in u?r=u[n]:(Bp(a),r=u[n]=l.call(null,e),dd())}else r=l}o[0]&&(i&&!s?r=!1:o[1]&&(r===""||r===Ec(n))&&(r=!0))}return r}function NW(t,e,n=!1){const r=e.propsCache,a=r.get(t);if(a)return a;const i=t.props,o={},s=[];let l=!1;if(!ft(t)){const c=f=>{l=!0;const[d,h]=NW(f,e,!0);br(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,dp),dp;if(Ke(i))for(let c=0;c<i.length;c++){const f=ro(i[c]);EB(f)&&(o[f]=er)}else if(i)for(const c in i){const f=ro(c);if(EB(f)){const d=i[c],h=o[f]=Ke(d)||ft(d)?{type:d}:br({},d);if(h){const v=kB(Boolean,h.type),p=kB(String,h.type);h[0]=v>-1,h[1]=p<0||v<p,(v>-1||Gt(h,"default"))&&s.push(f)}}}const u=[o,s];return Lt(t)&&r.set(t,u),u}function EB(t){return t[0]!=="$"}function MB(t){const e=t&&t.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:t===null?"null":""}function DB(t,e){return MB(t)===MB(e)}function kB(t,e){return Ke(e)?e.findIndex(n=>DB(n,t)):ft(e)&&DB(e,t)?0:-1}const VW=t=>t[0]==="_"||t==="$stable",iO=t=>Ke(t)?t.map(Cs):[Cs(t)],Zle=(t,e,n)=>{if(e._n)return e;const r=q((...a)=>iO(e(...a)),n);return r._c=!1,r},BW=(t,e,n)=>{const r=t._ctx;for(const a in t){if(VW(a))continue;const i=t[a];if(ft(i))e[a]=Zle(a,i,r);else if(i!=null){const o=iO(i);e[a]=()=>o}}},$W=(t,e)=>{const n=iO(e);t.slots.default=()=>n},Qle=(t,e)=>{if(t.vnode.shapeFlag&32){const n=e._;n?(t.slots=un(e),xw(e,"_",n)):BW(e,t.slots={})}else t.slots={},e&&$W(t,e);xw(t.slots,Mx,1)},Jle=(t,e,n)=>{const{vnode:r,slots:a}=t;let i=!0,o=er;if(r.shapeFlag&32){const s=e._;s?n&&s===1?i=!1:(br(a,e),!n&&s===1&&delete a._):(i=!e.$stable,BW(e,a)),o=e}else e&&($W(t,e),o={default:1});if(i)for(const s in a)!VW(s)&&!(s in o)&&delete a[s]};function uD(t,e,n,r,a=!1){if(Ke(t)){t.forEach((d,h)=>uD(d,e&&(Ke(e)?e[h]:e),n,r,a));return}if(c0(r)&&!a)return;const i=r.shapeFlag&4?kx(r.component)||r.component.proxy:r.el,o=a?null:i,{i:s,r:l}=t,u=e&&e.r,c=s.refs===er?s.refs={}:s.refs,f=s.setupState;if(u!=null&&u!==l&&(vt(u)?(c[u]=null,Gt(f,u)&&(f[u]=null)):en(u)&&(u.value=null)),ft(l))Zu(l,s,12,[o,c]);else{const d=vt(l),h=en(l);if(d||h){const v=()=>{if(t.f){const p=d?Gt(f,l)?f[l]:c[l]:l.value;a?Ke(p)&&zL(p,i):Ke(p)?p.includes(i)||p.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?(v.id=-1,oi(v,n)):v()}}}const oi=kle;function eue(t){return tue(t)}function tue(t,e){const n=eD();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=pn,insertStaticContent:v}=t,p=(Y,te,oe,Se=null,fe=null,ne=null,Ee=!1,_e=null,me=!!te.dynamicChildren)=>{if(Y===te)return;Y&&!If(Y,te)&&(Se=J(Y),K(Y,fe,ne,!0),Y=null),te.patchFlag===-2&&(me=!1,te.dynamicChildren=null);const{type:Te,ref:Ve,shapeFlag:ze}=te;switch(Te){case wv:g(Y,te,oe,Se);break;case Fa:y(Y,te,oe,Se);break;case pT:Y==null&&m(te,oe,Se,Ee);break;case Qe:k(Y,te,oe,Se,fe,ne,Ee,_e,me);break;default:ze&1?x(Y,te,oe,Se,fe,ne,Ee,_e,me):ze&6?R(Y,te,oe,Se,fe,ne,Ee,_e,me):(ze&64||ze&128)&&Te.process(Y,te,oe,Se,fe,ne,Ee,_e,me,ee)}Ve!=null&&fe&&uD(Ve,Y&&Y.ref,ne,te||Y,!te)},g=(Y,te,oe,Se)=>{if(Y==null)r(te.el=s(te.children),oe,Se);else{const fe=te.el=Y.el;te.children!==Y.children&&u(fe,te.children)}},y=(Y,te,oe,Se)=>{Y==null?r(te.el=l(te.children||""),oe,Se):te.el=Y.el},m=(Y,te,oe,Se)=>{[Y.el,Y.anchor]=v(Y.children,te,oe,Se,Y.el,Y.anchor)},S=({el:Y,anchor:te},oe,Se)=>{let fe;for(;Y&&Y!==te;)fe=d(Y),r(Y,oe,Se),Y=fe;r(te,oe,Se)},b=({el:Y,anchor:te})=>{let oe;for(;Y&&Y!==te;)oe=d(Y),a(Y),Y=oe;a(te)},x=(Y,te,oe,Se,fe,ne,Ee,_e,me)=>{Ee=Ee||te.type==="svg",Y==null?_(te,oe,Se,fe,ne,Ee,_e,me):D(Y,te,fe,ne,Ee,_e,me)},_=(Y,te,oe,Se,fe,ne,Ee,_e)=>{let me,Te;const{type:Ve,props:ze,shapeFlag:We,transition:De,dirs:Fe}=Y;if(me=Y.el=o(Y.type,ne,ze&&ze.is,ze),We&8?c(me,Y.children):We&16&&T(Y.children,me,null,Se,fe,ne&&Ve!=="foreignObject",Ee,_e),Fe&&Gc(Y,null,Se,"created"),C(me,Y,Y.scopeId,Ee,Se),ze){for(const yt in ze)yt!=="value"&&!gb(yt)&&i(me,yt,null,ze[yt],ne,Y.children,Se,fe,le);"value"in ze&&i(me,"value",null,ze.value),(Te=ze.onVnodeBeforeMount)&&fs(Te,Se,Y)}Fe&&Gc(Y,null,Se,"beforeMount");const at=(!fe||fe&&!fe.pendingBranch)&&De&&!De.persisted;at&&De.beforeEnter(me),r(me,te,oe),((Te=ze&&ze.onVnodeMounted)||at||Fe)&&oi(()=>{Te&&fs(Te,Se,Y),at&&De.enter(me),Fe&&Gc(Y,null,Se,"mounted")},fe)},C=(Y,te,oe,Se,fe)=>{if(oe&&h(Y,oe),Se)for(let ne=0;ne<Se.length;ne++)h(Y,Se[ne]);if(fe){let ne=fe.subTree;if(te===ne){const Ee=fe.vnode;C(Y,Ee,Ee.scopeId,Ee.slotScopeIds,fe.parent)}}},T=(Y,te,oe,Se,fe,ne,Ee,_e,me=0)=>{for(let Te=me;Te<Y.length;Te++){const Ve=Y[Te]=_e?Ru(Y[Te]):Cs(Y[Te]);p(null,Ve,te,oe,Se,fe,ne,Ee,_e)}},D=(Y,te,oe,Se,fe,ne,Ee)=>{const _e=te.el=Y.el;let{patchFlag:me,dynamicChildren:Te,dirs:Ve}=te;me|=Y.patchFlag&16;const ze=Y.props||er,We=te.props||er;let De;oe&&Uc(oe,!1),(De=We.onVnodeBeforeUpdate)&&fs(De,oe,te,Y),Ve&&Gc(te,Y,oe,"beforeUpdate"),oe&&Uc(oe,!0);const Fe=fe&&te.type!=="foreignObject";if(Te?M(Y.dynamicChildren,Te,_e,oe,Se,Fe,ne):Ee||F(Y,te,_e,null,oe,Se,Fe,ne,!1),me>0){if(me&16)E(_e,te,ze,We,oe,Se,fe);else if(me&2&&ze.class!==We.class&&i(_e,"class",null,We.class,fe),me&4&&i(_e,"style",ze.style,We.style,fe),me&8){const at=te.dynamicProps;for(let yt=0;yt<at.length;yt++){const Be=at[yt],Je=ze[Be],se=We[Be];(se!==Je||Be==="value")&&i(_e,Be,Je,se,fe,Y.children,oe,Se,le)}}me&1&&Y.children!==te.children&&c(_e,te.children)}else!Ee&&Te==null&&E(_e,te,ze,We,oe,Se,fe);((De=We.onVnodeUpdated)||Ve)&&oi(()=>{De&&fs(De,oe,te,Y),Ve&&Gc(te,Y,oe,"updated")},Se)},M=(Y,te,oe,Se,fe,ne,Ee)=>{for(let _e=0;_e<te.length;_e++){const me=Y[_e],Te=te[_e],Ve=me.el&&(me.type===Qe||!If(me,Te)||me.shapeFlag&70)?f(me.el):oe;p(me,Te,Ve,null,Se,fe,ne,Ee,!0)}},E=(Y,te,oe,Se,fe,ne,Ee)=>{if(oe!==Se){if(oe!==er)for(const _e in oe)!gb(_e)&&!(_e in Se)&&i(Y,_e,oe[_e],null,Ee,te.children,fe,ne,le);for(const _e in Se){if(gb(_e))continue;const me=Se[_e],Te=oe[_e];me!==Te&&_e!=="value"&&i(Y,_e,Te,me,Ee,te.children,fe,ne,le)}"value"in Se&&i(Y,"value",oe.value,Se.value)}},k=(Y,te,oe,Se,fe,ne,Ee,_e,me)=>{const Te=te.el=Y?Y.el:s(""),Ve=te.anchor=Y?Y.anchor:s("");let{patchFlag:ze,dynamicChildren:We,slotScopeIds:De}=te;De&&(_e=_e?_e.concat(De):De),Y==null?(r(Te,oe,Se),r(Ve,oe,Se),T(te.children,oe,Ve,fe,ne,Ee,_e,me)):ze>0&&ze&64&&We&&Y.dynamicChildren?(M(Y.dynamicChildren,We,oe,fe,ne,Ee,_e),(te.key!=null||fe&&te===fe.subTree)&&oO(Y,te,!0)):F(Y,te,oe,Ve,fe,ne,Ee,_e,me)},R=(Y,te,oe,Se,fe,ne,Ee,_e,me)=>{te.slotScopeIds=_e,Y==null?te.shapeFlag&512?fe.ctx.activate(te,oe,Se,Ee,me):O(te,oe,Se,fe,ne,Ee,me):B(Y,te,me)},O=(Y,te,oe,Se,fe,ne,Ee)=>{const _e=Y.component=cue(Y,Se,fe);if(Cx(Y)&&(_e.ctx.renderer=ee),fue(_e),_e.asyncDep){if(fe&&fe.registerDep(_e,$),!Y.el){const me=_e.subTree=U(Fa);y(null,me,te,oe)}return}$(_e,Y,te,oe,fe,ne,Ee)},B=(Y,te,oe)=>{const Se=te.component=Y.component;if(Ele(Y,te,oe))if(Se.asyncDep&&!Se.asyncResolved){V(Se,te,oe);return}else Se.next=te,ble(Se.update),Se.update();else te.el=Y.el,Se.vnode=te},$=(Y,te,oe,Se,fe,ne,Ee)=>{const _e=()=>{if(Y.isMounted){let{next:Ve,bu:ze,u:We,parent:De,vnode:Fe}=Y,at=Ve,yt;Uc(Y,!1),Ve?(Ve.el=Fe.el,V(Y,Ve,Ee)):Ve=Fe,ze&&mb(ze),(yt=Ve.props&&Ve.props.onVnodeBeforeUpdate)&&fs(yt,De,Ve,Fe),Uc(Y,!0);const Be=fT(Y),Je=Y.subTree;Y.subTree=Be,p(Je,Be,f(Je.el),J(Je),Y,fe,ne),Ve.el=Be.el,at===null&&Mle(Y,Be.el),We&&oi(We,fe),(yt=Ve.props&&Ve.props.onVnodeUpdated)&&oi(()=>fs(yt,De,Ve,Fe),fe)}else{let Ve;const{el:ze,props:We}=te,{bm:De,m:Fe,parent:at}=Y,yt=c0(te);if(Uc(Y,!1),De&&mb(De),!yt&&(Ve=We&&We.onVnodeBeforeMount)&&fs(Ve,at,te),Uc(Y,!0),ze&&ue){const Be=()=>{Y.subTree=fT(Y),ue(ze,Y.subTree,Y,fe,null)};yt?te.type.__asyncLoader().then(()=>!Y.isUnmounted&&Be()):Be()}else{const Be=Y.subTree=fT(Y);p(null,Be,oe,Se,Y,fe,ne),te.el=Be.el}if(Fe&&oi(Fe,fe),!yt&&(Ve=We&&We.onVnodeMounted)){const Be=te;oi(()=>fs(Ve,at,Be),fe)}(te.shapeFlag&256||at&&c0(at.vnode)&&at.vnode.shapeFlag&256)&&Y.a&&oi(Y.a,fe),Y.isMounted=!0,te=oe=Se=null}},me=Y.effect=new HL(_e,()=>JL(Te),Y.scope),Te=Y.update=()=>me.run();Te.id=Y.uid,Uc(Y,!0),Te()},V=(Y,te,oe)=>{te.component=Y;const Se=Y.vnode.props;Y.vnode=te,Y.next=null,qle(Y,te.props,Se,oe),Jle(Y,te.children,oe),mv(),mB(),Sv()},F=(Y,te,oe,Se,fe,ne,Ee,_e,me=!1)=>{const Te=Y&&Y.children,Ve=Y?Y.shapeFlag:0,ze=te.children,{patchFlag:We,shapeFlag:De}=te;if(We>0){if(We&128){N(Te,ze,oe,Se,fe,ne,Ee,_e,me);return}else if(We&256){L(Te,ze,oe,Se,fe,ne,Ee,_e,me);return}}De&8?(Ve&16&&le(Te,fe,ne),ze!==Te&&c(oe,ze)):Ve&16?De&16?N(Te,ze,oe,Se,fe,ne,Ee,_e,me):le(Te,fe,ne,!0):(Ve&8&&c(oe,""),De&16&&T(ze,oe,Se,fe,ne,Ee,_e,me))},L=(Y,te,oe,Se,fe,ne,Ee,_e,me)=>{Y=Y||dp,te=te||dp;const Te=Y.length,Ve=te.length,ze=Math.min(Te,Ve);let We;for(We=0;We<ze;We++){const De=te[We]=me?Ru(te[We]):Cs(te[We]);p(Y[We],De,oe,null,fe,ne,Ee,_e,me)}Te>Ve?le(Y,fe,ne,!0,!1,ze):T(te,oe,Se,fe,ne,Ee,_e,me,ze)},N=(Y,te,oe,Se,fe,ne,Ee,_e,me)=>{let Te=0;const Ve=te.length;let ze=Y.length-1,We=Ve-1;for(;Te<=ze&&Te<=We;){const De=Y[Te],Fe=te[Te]=me?Ru(te[Te]):Cs(te[Te]);if(If(De,Fe))p(De,Fe,oe,null,fe,ne,Ee,_e,me);else break;Te++}for(;Te<=ze&&Te<=We;){const De=Y[ze],Fe=te[We]=me?Ru(te[We]):Cs(te[We]);if(If(De,Fe))p(De,Fe,oe,null,fe,ne,Ee,_e,me);else break;ze--,We--}if(Te>ze){if(Te<=We){const De=We+1,Fe=De<Ve?te[De].el:Se;for(;Te<=We;)p(null,te[Te]=me?Ru(te[Te]):Cs(te[Te]),oe,Fe,fe,ne,Ee,_e,me),Te++}}else if(Te>We)for(;Te<=ze;)K(Y[Te],fe,ne,!0),Te++;else{const De=Te,Fe=Te,at=new Map;for(Te=Fe;Te<=We;Te++){const re=te[Te]=me?Ru(te[Te]):Cs(te[Te]);re.key!=null&&at.set(re.key,Te)}let yt,Be=0;const Je=We-Fe+1;let se=!1,he=0;const pe=new Array(Je);for(Te=0;Te<Je;Te++)pe[Te]=0;for(Te=De;Te<=ze;Te++){const re=Y[Te];if(Be>=Je){K(re,fe,ne,!0);continue}let Ue;if(re.key!=null)Ue=at.get(re.key);else for(yt=Fe;yt<=We;yt++)if(pe[yt-Fe]===0&&If(re,te[yt])){Ue=yt;break}Ue===void 0?K(re,fe,ne,!0):(pe[Ue-Fe]=Te+1,Ue>=he?he=Ue:se=!0,p(re,te[Ue],oe,null,fe,ne,Ee,_e,me),Be++)}const Re=se?nue(pe):dp;for(yt=Re.length-1,Te=Je-1;Te>=0;Te--){const re=Fe+Te,Ue=te[re],pt=re+1<Ve?te[re+1].el:Se;pe[Te]===0?p(null,Ue,oe,pt,fe,ne,Ee,_e,me):se&&(yt<0||Te!==Re[yt]?H(Ue,oe,pt,2):yt--)}}},H=(Y,te,oe,Se,fe=null)=>{const{el:ne,type:Ee,transition:_e,children:me,shapeFlag:Te}=Y;if(Te&6){H(Y.component.subTree,te,oe,Se);return}if(Te&128){Y.suspense.move(te,oe,Se);return}if(Te&64){Ee.move(Y,te,oe,ee);return}if(Ee===Qe){r(ne,te,oe);for(let ze=0;ze<me.length;ze++)H(me[ze],te,oe,Se);r(Y.anchor,te,oe);return}if(Ee===pT){S(Y,te,oe);return}if(Se!==2&&Te&1&&_e)if(Se===0)_e.beforeEnter(ne),r(ne,te,oe),oi(()=>_e.enter(ne),fe);else{const{leave:ze,delayLeave:We,afterLeave:De}=_e,Fe=()=>r(ne,te,oe),at=()=>{ze(ne,()=>{Fe(),De&&De()})};We?We(ne,Fe,at):at()}else r(ne,te,oe)},K=(Y,te,oe,Se=!1,fe=!1)=>{const{type:ne,props:Ee,ref:_e,children:me,dynamicChildren:Te,shapeFlag:Ve,patchFlag:ze,dirs:We}=Y;if(_e!=null&&uD(_e,null,oe,Y,!0),Ve&256){te.ctx.deactivate(Y);return}const De=Ve&1&&We,Fe=!c0(Y);let at;if(Fe&&(at=Ee&&Ee.onVnodeBeforeUnmount)&&fs(at,te,Y),Ve&6)be(Y.component,oe,Se);else{if(Ve&128){Y.suspense.unmount(oe,Se);return}De&&Gc(Y,null,te,"beforeUnmount"),Ve&64?Y.type.remove(Y,te,oe,fe,ee,Se):Te&&(ne!==Qe||ze>0&&ze&64)?le(Te,te,oe,!1,!0):(ne===Qe&&ze&384||!fe&&Ve&16)&&le(me,te,oe),Se&&Q(Y)}(Fe&&(at=Ee&&Ee.onVnodeUnmounted)||De)&&oi(()=>{at&&fs(at,te,Y),De&&Gc(Y,null,te,"unmounted")},oe)},Q=Y=>{const{type:te,el:oe,anchor:Se,transition:fe}=Y;if(te===Qe){ie(oe,Se);return}if(te===pT){b(Y);return}const ne=()=>{a(oe),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(Y.shapeFlag&1&&fe&&!fe.persisted){const{leave:Ee,delayLeave:_e}=fe,me=()=>Ee(oe,ne);_e?_e(Y.el,ne,me):me()}else ne()},ie=(Y,te)=>{let oe;for(;Y!==te;)oe=d(Y),a(Y),Y=oe;a(te)},be=(Y,te,oe)=>{const{bum:Se,scope:fe,update:ne,subTree:Ee,um:_e}=Y;Se&&mb(Se),fe.stop(),ne&&(ne.active=!1,K(Ee,Y,te,oe)),_e&&oi(_e,te),oi(()=>{Y.isUnmounted=!0},te),te&&te.pendingBranch&&!te.isUnmounted&&Y.asyncDep&&!Y.asyncResolved&&Y.suspenseId===te.pendingId&&(te.deps--,te.deps===0&&te.resolve())},le=(Y,te,oe,Se=!1,fe=!1,ne=0)=>{for(let Ee=ne;Ee<Y.length;Ee++)K(Y[Ee],te,oe,Se,fe)},J=Y=>Y.shapeFlag&6?J(Y.component.subTree):Y.shapeFlag&128?Y.suspense.next():d(Y.anchor||Y.el),Z=(Y,te,oe)=>{Y==null?te._vnode&&K(te._vnode,null,null,!0):p(te._vnode||null,Y,te,null,null,null,oe),mB(),mW(),te._vnode=Y},ee={p,um:K,m:H,r:Q,mt:O,mc:T,pc:F,pbc:M,n:J,o:t};let ce,ue;return e&&([ce,ue]=e(ee)),{render:Z,hydrate:ce,createApp:Yle(Z,ce)}}function Uc({effect:t,update:e},n){t.allowRecurse=e.allowRecurse=n}function oO(t,e,n=!1){const r=t.children,a=e.children;if(Ke(r)&&Ke(a))for(let i=0;i<r.length;i++){const o=r[i];let s=a[i];s.shapeFlag&1&&!s.dynamicChildren&&((s.patchFlag<=0||s.patchFlag===32)&&(s=a[i]=Ru(a[i]),s.el=o.el),n||oO(o,s)),s.type===wv&&(s.el=o.el)}}function nue(t){const e=t.slice(),n=[0];let r,a,i,o,s;const l=t.length;for(r=0;r<l;r++){const u=t[r];if(u!==0){if(a=n[n.length-1],t[a]<u){e[r]=a,n.push(r);continue}for(i=0,o=n.length-1;i<o;)s=i+o>>1,t[n[s]]<u?i=s+1:o=s;u<t[n[i]]&&(i>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 rue=t=>t.__isTeleport,d0=t=>t&&(t.disabled||t.disabled===""),RB=t=>typeof SVGElement<"u"&&t instanceof SVGElement,cD=(t,e)=>{const n=t&&t.to;return vt(n)?e?e(n):null:n},aue={__isTeleport:!0,process(t,e,n,r,a,i,o,s,l,u){const{mc:c,pc:f,pbc:d,o:{insert:h,querySelector:v,createText:p,createComment:g}}=u,y=d0(e.props);let{shapeFlag:m,children:S,dynamicChildren:b}=e;if(t==null){const x=e.el=p(""),_=e.anchor=p("");h(x,n,r),h(_,n,r);const C=e.target=cD(e.props,v),T=e.targetAnchor=p("");C&&(h(T,C),o=o||RB(C));const D=(M,E)=>{m&16&&c(S,M,E,a,i,o,s,l)};y?D(n,_):C&&D(C,T)}else{e.el=t.el;const x=e.anchor=t.anchor,_=e.target=t.target,C=e.targetAnchor=t.targetAnchor,T=d0(t.props),D=T?n:_,M=T?x:C;if(o=o||RB(_),b?(d(t.dynamicChildren,b,D,a,i,o,s),oO(t,e,!0)):l||f(t,e,D,M,a,i,o,s,!1),y)T||g1(e,n,x,u,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const E=e.target=cD(e.props,v);E&&g1(e,E,null,u,0)}else T&&g1(e,_,C,u,1)}IW(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||!d0(d))&&(i(u),s&16))for(let h=0;h<l.length;h++){const v=l[h];a(v,e,n,!0,!!v.dynamicChildren)}},move:g1,hydrate:iue};function g1(t,e,n,{o:{insert:r},m:a},i=2){i===0&&r(t.targetAnchor,e,n);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=t,f=i===2;if(f&&r(o,e,n),(!f||d0(c))&&l&16)for(let d=0;d<u.length;d++)a(u[d],e,n,2);f&&r(s,e,n)}function iue(t,e,n,r,a,i,{o:{nextSibling:o,parentNode:s,querySelector:l}},u){const c=e.target=cD(e.props,l);if(c){const f=c._lpa||c.firstChild;if(e.shapeFlag&16)if(d0(e.props))e.anchor=u(o(t),e,s(t),n,r,a,i),e.targetAnchor=f;else{e.anchor=o(t);let d=f;for(;d;)if(d=o(d),d&&d.nodeType===8&&d.data==="teleport anchor"){e.targetAnchor=d,c._lpa=e.targetAnchor&&o(e.targetAnchor);break}u(f,e,c,n,r,a,i)}IW(e)}return e.anchor&&o(e.anchor)}const vm=aue;function IW(t){const e=t.ctx;if(e&&e.ut){let n=t.children[0].el;for(;n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",e.uid),n=n.nextSibling;e.ut()}}const Qe=Symbol.for("v-fgt"),wv=Symbol.for("v-txt"),Fa=Symbol.for("v-cmt"),pT=Symbol.for("v-stc"),h0=[];let Fo=null;function I(t=!1){h0.push(Fo=t?null:[])}function oue(){h0.pop(),Fo=h0[h0.length-1]||null}let J0=1;function LB(t){J0+=t}function PW(t){return t.dynamicChildren=J0>0?Fo||dp:null,oue(),J0>0&&Fo&&Fo.push(t),t}function X(t,e,n,r,a,i){return PW(P(t,e,n,r,a,i,!0))}function ve(t,e,n,r,a){return PW(U(t,e,n,r,a,!0))}function Hn(t){return t?t.__v_isVNode===!0:!1}function If(t,e){return t.type===e.type&&t.key===e.key}const Mx="__vInternal",FW=({key:t})=>t??null,Sb=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?vt(t)||en(t)||ft(t)?{i:aa,r:t,k:e,f:!!n}:t:null);function P(t,e=null,n=null,r=0,a=null,i=t===Qe?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&FW(e),ref:e&&Sb(e),scopeId:xx,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:aa};return s?(sO(l,n),i&128&&t.normalize(l)):n&&(l.shapeFlag|=vt(n)?8:16),J0>0&&!o&&Fo&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&Fo.push(l),l}const U=sue;function sue(t,e=null,n=null,r=0,a=null,i=!1){if((!t||t===DW)&&(t=Fa),Hn(t)){const s=$l(t,e,!0);return n&&sO(s,n),J0>0&&!i&&Fo&&(s.shapeFlag&6?Fo[Fo.indexOf(t)]=s:Fo.push(s)),s.patchFlag|=-2,s}if(vue(t)&&(t=t.__vccOpts),e){e=Dx(e);let{class:s,style:l}=e;s&&!vt(s)&&(e.class=z(s)),Lt(l)&&(cW(l)&&!Ke(l)&&(l=br({},l)),e.style=et(l))}const o=vt(t)?1:Dle(t)?128:rue(t)?64:Lt(t)?4:ft(t)?2:0;return P(t,e,n,r,a,o,i,!0)}function Dx(t){return t?cW(t)||Mx in t?br({},t):t:null}function $l(t,e,n=!1){const{props:r,ref:a,patchFlag:i,children:o}=t,s=e?Mt(r||{},e):r;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:s,key:s&&FW(s),ref:e&&e.ref?n&&a?Ke(a)?a.concat(Sb(e)):[a,Sb(e)]:Sb(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!==Qe?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&&$l(t.ssContent),ssFallback:t.ssFallback&&$l(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function dt(t=" ",e=0){return U(wv,null,t,e)}function de(t="",e=!1){return e?(I(),ve(Fa,null,t)):U(Fa,null,t)}function Cs(t){return t==null||typeof t=="boolean"?U(Fa):Ke(t)?U(Qe,null,t.slice()):typeof t=="object"?Ru(t):U(wv,null,String(t))}function Ru(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:$l(t)}function sO(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Ke(e))n=16;else if(typeof e=="object")if(r&65){const a=e.default;a&&(a._c&&(a._d=!1),sO(t,a()),a._c&&(a._d=!0));return}else{n=32;const a=e._;!a&&!(Mx in e)?e._ctx=aa:a===3&&aa&&(aa.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ft(e)?(e={default:e,_ctx:aa},n=32):(e=String(e),r&64?(n=16,e=[dt(e)]):n=8);t.children=e,t.shapeFlag|=n}function Mt(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const a in r)if(a==="class")e.class!==r.class&&(e.class=z([e.class,r.class]));else if(a==="style")e.style=et([e.style,r.style]);else if(gx(a)){const i=e[a],o=r[a];o&&i!==o&&!(Ke(i)&&i.includes(o))&&(e[a]=i?[].concat(i,o):o)}else a!==""&&(e[a]=r[a])}return e}function fs(t,e,n,r=null){Ji(t,e,7,[n,r])}const lue=OW();let uue=0;function cue(t,e,n){const r=t.type,a=(e?e.appContext:t.appContext)||lue,i={uid:uue++,vnode:t,type:r,parent:e,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,scope:new qH(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(a.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:NW(r,a),emitsOptions:bW(r,a),emit:null,emitted:null,propsDefaults:er,inheritAttrs:r.inheritAttrs,ctx:er,data:er,props:er,attrs:er,slots:er,refs:er,setupState:er,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=e?e.root:i,i.emit=xle.bind(null,i),t.ce&&t.ce(i),i}let Kr=null;const _t=()=>Kr||aa;let lO,oh,OB="__VUE_INSTANCE_SETTERS__";(oh=eD()[OB])||(oh=eD()[OB]=[]),oh.push(t=>Kr=t),lO=t=>{oh.length>1?oh.forEach(e=>e(t)):oh[0](t)};const Bp=t=>{lO(t),t.scope.on()},dd=()=>{Kr&&Kr.scope.off(),lO(null)};function zW(t){return t.vnode.shapeFlag&4}let ey=!1;function fue(t,e=!1){ey=e;const{props:n,children:r}=t.vnode,a=zW(t);Xle(t,n,a,e),Qle(t,r);const i=a?due(t,e):void 0;return ey=!1,i}function due(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=qu(new Proxy(t.ctx,zle));const{setup:r}=n;if(r){const a=t.setupContext=r.length>1?UW(t):null;Bp(t),mv();const i=Zu(r,t,0,[t.props,a]);if(Sv(),dd(),K0(i)){if(i.then(dd,dd),e)return i.then(o=>{AB(t,o,e)}).catch(o=>{bx(o,t,0)});t.asyncDep=i}else AB(t,i,e)}else GW(t,e)}function AB(t,e,n){ft(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Lt(e)&&(t.setupState=hW(e)),GW(t,n)}let NB;function GW(t,e,n){const r=t.type;if(!t.render){if(!e&&NB&&!r.render){const a=r.template||aO(t).template;if(a){const{isCustomElement:i,compilerOptions:o}=t.appContext.config,{delimiters:s,compilerOptions:l}=r,u=br(br({isCustomElement:i,delimiters:s},o),l);r.render=NB(a,u)}}t.render=r.render||pn}Bp(t),mv(),Gle(t),Sv(),dd()}function hue(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(e,n){return gi(t,"get","$attrs"),e[n]}}))}function UW(t){const e=n=>{t.exposed=n||{}};return{get attrs(){return hue(t)},slots:t.slots,emit:t.emit,expose:e}}function kx(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(hW(qu(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in f0)return f0[n](t)},has(e,n){return n in e||n in f0}}))}function pue(t,e=!0){return ft(t)?t.displayName||t.name:t.name||e&&t.__name}function vue(t){return ft(t)&&"__vccOpts"in t}const A=(t,e)=>vW(t,e,ey);function rt(t,e,n){const r=arguments.length;return r===2?Lt(e)&&!Ke(e)?Hn(e)?U(t,null,[e]):U(t,e):U(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Hn(n)&&(n=[n]),U(t,e,n))}const gue=Symbol.for("v-scx"),yue=()=>Ye(gue),mue="3.3.4",Sue="http://www.w3.org/2000/svg",Pf=typeof document<"u"?document:null,VB=Pf&&Pf.createElement("template"),bue={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?Pf.createElementNS(Sue,t):Pf.createElement(t,n?{is:n}:void 0);return t==="select"&&r&&r.multiple!=null&&a.setAttribute("multiple",r.multiple),a},createText:t=>Pf.createTextNode(t),createComment:t=>Pf.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Pf.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{VB.innerHTML=r?`<svg>${t}</svg>`:t;const s=VB.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 wue(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 _ue(t,e,n){const r=t.style,a=vt(n);if(n&&!a){if(e&&!vt(e))for(const i in e)n[i]==null&&fD(r,i,"");for(const i in n)fD(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 BB=/\s*!important$/;function fD(t,e,n){if(Ke(n))n.forEach(r=>fD(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=xue(t,e);BB.test(n)?t.setProperty(Ec(r),n.replace(BB,""),"important"):t[r]=n}}const $B=["Webkit","Moz","ms"],vT={};function xue(t,e){const n=vT[e];if(n)return n;let r=ro(e);if(r!=="filter"&&r in t)return vT[e]=r;r=dm(r);for(let a=0;a<$B.length;a++){const i=$B[a]+r;if(i in t)return vT[e]=i}return e}const IB="http://www.w3.org/1999/xlink";function Cue(t,e,n,r,a){if(r&&e.startsWith("xlink:"))n==null?t.removeAttributeNS(IB,e.slice(6,e.length)):t.setAttributeNS(IB,e,n);else{const i=Bse(e);n==null||i&&!jH(n)?t.removeAttribute(e):t.setAttribute(e,i?"":n)}}function Tue(t,e,n,r,a,i,o){if(e==="innerHTML"||e==="textContent"){r&&o(r,a,i),t[e]=n??"";return}const s=t.tagName;if(e==="value"&&s!=="PROGRESS"&&!s.includes("-")){t._value=n;const u=s==="OPTION"?t.getAttribute("value"):t.value,c=n??"";u!==c&&(t.value=c),n==null&&t.removeAttribute(e);return}let l=!1;if(n===""||n==null){const u=typeof t[e];u==="boolean"?n=jH(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{t[e]=n}catch{}l&&t.removeAttribute(e)}function Vu(t,e,n,r){t.addEventListener(e,n,r)}function Eue(t,e,n,r){t.removeEventListener(e,n,r)}function Mue(t,e,n,r,a=null){const i=t._vei||(t._vei={}),o=i[e];if(r&&o)o.value=r;else{const[s,l]=Due(e);if(r){const u=i[e]=Lue(r,a);Vu(t,s,u,l)}else o&&(Eue(t,s,o,l),i[e]=void 0)}}const PB=/(?:Once|Passive|Capture)$/;function Due(t){let e;if(PB.test(t)){e={};let r;for(;r=t.match(PB);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Ec(t.slice(2)),e]}let gT=0;const kue=Promise.resolve(),Rue=()=>gT||(kue.then(()=>gT=0),gT=Date.now());function Lue(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Ji(Oue(r,n.value),e,5,[r])};return n.value=t,n.attached=Rue(),n}function Oue(t,e){if(Ke(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 FB=/^on[a-z]/,Aue=(t,e,n,r,a=!1,i,o,s,l)=>{e==="class"?wue(t,r,a):e==="style"?_ue(t,n,r):gx(e)?FL(e)||Mue(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Nue(t,e,r,a))?Tue(t,e,r,i,o,s,l):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),Cue(t,e,r,a))};function Nue(t,e,n,r){return r?!!(e==="innerHTML"||e==="textContent"||e in t&&FB.test(e)&&ft(n)):e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA"||FB.test(e)&&vt(n)?!1:e in t}const iu="transition",eg="animation",or=(t,{slots:e})=>rt(Ole,WW(t),e);or.displayName="Transition";const HW={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},Vue=or.props=br({},xW,HW),Hc=(t,e=[])=>{Ke(t)?t.forEach(n=>n(...e)):t&&t(...e)},zB=t=>t?Ke(t)?t.some(e=>e.length>1):t.length>1:!1;function WW(t){const e={};for(const k in t)k in HW||(e[k]=t[k]);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,v=Bue(a),p=v&&v[0],g=v&&v[1],{onBeforeEnter:y,onEnter:m,onEnterCancelled:S,onLeave:b,onLeaveCancelled:x,onBeforeAppear:_=y,onAppear:C=m,onAppearCancelled:T=S}=e,D=(k,R,O)=>{wu(k,R?c:s),wu(k,R?u:o),O&&O()},M=(k,R)=>{k._isLeaving=!1,wu(k,f),wu(k,h),wu(k,d),R&&R()},E=k=>(R,O)=>{const B=k?C:m,$=()=>D(R,k,O);Hc(B,[R,$]),GB(()=>{wu(R,k?l:i),hl(R,k?c:s),zB(B)||UB(R,r,p,$)})};return br(e,{onBeforeEnter(k){Hc(y,[k]),hl(k,i),hl(k,o)},onBeforeAppear(k){Hc(_,[k]),hl(k,l),hl(k,u)},onEnter:E(!1),onAppear:E(!0),onLeave(k,R){k._isLeaving=!0;const O=()=>M(k,R);hl(k,f),jW(),hl(k,d),GB(()=>{k._isLeaving&&(wu(k,f),hl(k,h),zB(b)||UB(k,r,g,O))}),Hc(b,[k,O])},onEnterCancelled(k){D(k,!1),Hc(S,[k])},onAppearCancelled(k){D(k,!0),Hc(T,[k])},onLeaveCancelled(k){M(k),Hc(x,[k])}})}function Bue(t){if(t==null)return null;if(Lt(t))return[yT(t.enter),yT(t.leave)];{const e=yT(t);return[e,e]}}function yT(t){return Rse(t)}function hl(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(e)}function wu(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 GB(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let $ue=0;function UB(t,e,n,r){const a=t._endId=++$ue,i=()=>{a===t._endId&&r()};if(n)return setTimeout(i,n);const{type:o,timeout:s,propCount:l}=KW(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<l&&f()},s+1),t.addEventListener(u,d)}function KW(t,e){const n=window.getComputedStyle(t),r=v=>(n[v]||"").split(", "),a=r(`${iu}Delay`),i=r(`${iu}Duration`),o=HB(a,i),s=r(`${eg}Delay`),l=r(`${eg}Duration`),u=HB(s,l);let c=null,f=0,d=0;e===iu?o>0&&(c=iu,f=o,d=i.length):e===eg?u>0&&(c=eg,f=u,d=l.length):(f=Math.max(o,u),c=f>0?o>u?iu:eg:null,d=c?c===iu?i.length:l.length:0);const h=c===iu&&/\b(transform|all)(,|$)/.test(r(`${iu}Property`).toString());return{type:c,timeout:f,propCount:d,hasTransform:h}}function HB(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>WB(n)+WB(t[r])))}function WB(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function jW(){return document.body.offsetHeight}const YW=new WeakMap,XW=new WeakMap,qW={name:"TransitionGroup",props:br({},Vue,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=_t(),r=_W();let a,i;return ql(()=>{if(!a.length)return;const o=t.moveClass||`${t.name||"v"}-move`;if(!Gue(a[0].el,n.vnode.el,o))return;a.forEach(Pue),a.forEach(Fue);const s=a.filter(zue);jW(),s.forEach(l=>{const u=l.el,c=u.style;hl(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,wu(u,o))};u.addEventListener("transitionend",f)})}),()=>{const o=un(t),s=WW(o);let l=o.tag||Qe;a=i,i=e.default?tO(e.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&Q0(c,Z0(c,s,r,n))}if(a)for(let u=0;u<a.length;u++){const c=a[u];Q0(c,Z0(c,s,r,n)),YW.set(c,c.el.getBoundingClientRect())}return U(l,null,i)}}},Iue=t=>delete t.mode;qW.props;const ZW=qW;function Pue(t){const e=t.el;e._moveCb&&e._moveCb(),e._enterCb&&e._enterCb()}function Fue(t){XW.set(t,t.el.getBoundingClientRect())}function zue(t){const e=YW.get(t),n=XW.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 Gue(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}=KW(r);return a.removeChild(r),i}const $p=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Ke(e)?n=>mb(e,n):e};function Uue(t){t.target.composing=!0}function KB(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const uO={created(t,{modifiers:{lazy:e,trim:n,number:r}},a){t._assign=$p(a);const i=r||a.props&&a.props.type==="number";Vu(t,e?"change":"input",o=>{if(o.target.composing)return;let s=t.value;n&&(s=s.trim()),i&&(s=JM(s)),t._assign(s)}),n&&Vu(t,"change",()=>{t.value=t.value.trim()}),e||(Vu(t,"compositionstart",Uue),Vu(t,"compositionend",KB),Vu(t,"change",KB))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,modifiers:{lazy:n,trim:r,number:a}},i){if(t._assign=$p(i),t.composing||document.activeElement===t&&t.type!=="range"&&(n||r&&t.value.trim()===e||(a||t.type==="number")&&JM(t.value)===e))return;const o=e??"";t.value!==o&&(t.value=o)}},kw={deep:!0,created(t,e,n){t._assign=$p(n),Vu(t,"change",()=>{const r=t._modelValue,a=JW(t),i=t.checked,o=t._assign;if(Ke(r)){const s=YH(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(yx(r)){const s=new Set(r);i?s.add(a):s.delete(a),o(s)}else o(e7(t,i))})},mounted:jB,beforeUpdate(t,e,n){t._assign=$p(n),jB(t,e,n)}};function jB(t,{value:e,oldValue:n},r){t._modelValue=e,Ke(e)?t.checked=YH(e,r.props.value)>-1:yx(e)?t.checked=e.has(r.props.value):e!==n&&(t.checked=Ap(e,e7(t,!0)))}const QW={created(t,{value:e},n){t.checked=Ap(e,n.props.value),t._assign=$p(n),Vu(t,"change",()=>{t._assign(JW(t))})},beforeUpdate(t,{value:e,oldValue:n},r){t._assign=$p(r),e!==n&&(t.checked=Ap(e,r.props.value))}};function JW(t){return"_value"in t?t._value:t.value}function e7(t,e){const n=e?"_trueValue":"_falseValue";return n in t?t[n]:e}const Hue=["ctrl","shift","alt","meta"],Wue={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)=>Hue.some(n=>t[`${n}Key`]&&!e.includes(n))},ot=(t,e)=>(n,...r)=>{for(let a=0;a<e.length;a++){const i=Wue[e[a]];if(i&&i(n,e))return}return t(n,...r)},Kue={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Kt=(t,e)=>n=>{if(!("key"in n))return;const r=Ec(n.key);if(e.some(a=>a===r||Kue[a]===r))return t(n)},Nt={beforeMount(t,{value:e},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):tg(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),tg(t,!0),r.enter(t)):r.leave(t,()=>{tg(t,!1)}):tg(t,e))},beforeUnmount(t,{value:e}){tg(t,e)}};function tg(t,e){t.style.display=e?t._vod:"none"}const jue=br({patchProp:Aue},bue);let YB;function t7(){return YB||(YB=eue(jue))}const Ip=(...t)=>{t7().render(...t)},n7=(...t)=>{const e=t7().createApp(...t),{mount:n}=e;return e.mount=r=>{const a=Yue(r);if(!a)return;const i=e._component;!ft(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 Yue(t){return vt(t)?document.querySelector(t):t}function r7(t,e){return function(){return t.apply(e,arguments)}}const{toString:Xue}=Object.prototype,{getPrototypeOf:cO}=Object,Rx=(t=>e=>{const n=Xue.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),el=t=>(t=t.toLowerCase(),e=>Rx(e)===t),Lx=t=>e=>typeof e===t,{isArray:_v}=Array,ty=Lx("undefined");function que(t){return t!==null&&!ty(t)&&t.constructor!==null&&!ty(t.constructor)&&eo(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const a7=el("ArrayBuffer");function Zue(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&a7(t.buffer),e}const Que=Lx("string"),eo=Lx("function"),i7=Lx("number"),Ox=t=>t!==null&&typeof t=="object",Jue=t=>t===!0||t===!1,bb=t=>{if(Rx(t)!=="object")return!1;const e=cO(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},ece=el("Date"),tce=el("File"),nce=el("Blob"),rce=el("FileList"),ace=t=>Ox(t)&&eo(t.pipe),ice=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||eo(t.append)&&((e=Rx(t))==="formdata"||e==="object"&&eo(t.toString)&&t.toString()==="[object FormData]"))},oce=el("URLSearchParams"),sce=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gm(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,a;if(typeof t!="object"&&(t=[t]),_v(t))for(r=0,a=t.length;r<a;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),o=i.length;let s;for(r=0;r<o;r++)s=i[r],e.call(null,t[s],s,t)}}function o7(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,a;for(;r-- >0;)if(a=n[r],e===a.toLowerCase())return a;return null}const s7=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),l7=t=>!ty(t)&&t!==s7;function dD(){const{caseless:t}=l7(this)&&this||{},e={},n=(r,a)=>{const i=t&&o7(e,a)||a;bb(e[i])&&bb(r)?e[i]=dD(e[i],r):bb(r)?e[i]=dD({},r):_v(r)?e[i]=r.slice():e[i]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&gm(arguments[r],n);return e}const lce=(t,e,n,{allOwnKeys:r}={})=>(gm(e,(a,i)=>{n&&eo(a)?t[i]=r7(a,n):t[i]=a},{allOwnKeys:r}),t),uce=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),cce=(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)},fce=(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&&cO(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},dce=(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},hce=t=>{if(!t)return null;if(_v(t))return t;let e=t.length;if(!i7(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},pce=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&cO(Uint8Array)),vce=(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])}},gce=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},yce=el("HTMLFormElement"),mce=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),XB=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Sce=el("RegExp"),u7=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};gm(n,(a,i)=>{let o;(o=e(a,i,t))!==!1&&(r[i]=o||a)}),Object.defineProperties(t,r)},bce=t=>{u7(t,(e,n)=>{if(eo(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(eo(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+"'")})}})},wce=(t,e)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return _v(t)?r(t):r(String(t).split(e)),n},_ce=()=>{},xce=(t,e)=>(t=+t,Number.isFinite(t)?t:e),mT="abcdefghijklmnopqrstuvwxyz",qB="0123456789",c7={DIGIT:qB,ALPHA:mT,ALPHA_DIGIT:mT+mT.toUpperCase()+qB},Cce=(t=16,e=c7.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Tce(t){return!!(t&&eo(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Ece=t=>{const e=new Array(10),n=(r,a)=>{if(Ox(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[a]=r;const i=_v(r)?[]:{};return gm(r,(o,s)=>{const l=n(o,a+1);!ty(l)&&(i[s]=l)}),e[a]=void 0,i}}return r};return n(t,0)},Mce=el("AsyncFunction"),Dce=t=>t&&(Ox(t)||eo(t))&&eo(t.then)&&eo(t.catch),je={isArray:_v,isArrayBuffer:a7,isBuffer:que,isFormData:ice,isArrayBufferView:Zue,isString:Que,isNumber:i7,isBoolean:Jue,isObject:Ox,isPlainObject:bb,isUndefined:ty,isDate:ece,isFile:tce,isBlob:nce,isRegExp:Sce,isFunction:eo,isStream:ace,isURLSearchParams:oce,isTypedArray:pce,isFileList:rce,forEach:gm,merge:dD,extend:lce,trim:sce,stripBOM:uce,inherits:cce,toFlatObject:fce,kindOf:Rx,kindOfTest:el,endsWith:dce,toArray:hce,forEachEntry:vce,matchAll:gce,isHTMLForm:yce,hasOwnProperty:XB,hasOwnProp:XB,reduceDescriptors:u7,freezeMethods:bce,toObjectSet:wce,toCamelCase:mce,noop:_ce,toFiniteNumber:xce,findKey:o7,global:s7,isContextDefined:l7,ALPHABET:c7,generateString:Cce,isSpecCompliantForm:Tce,toJSONObject:Ece,isAsyncFn:Mce,isThenable:Dce};function xn(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(xn,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 f7=xn.prototype,d7={};["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=>{d7[t]={value:t}});Object.defineProperties(xn,d7);Object.defineProperty(f7,"isAxiosError",{value:!0});xn.from=(t,e,n,r,a,i)=>{const o=Object.create(f7);return je.toFlatObject(t,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),xn.call(o,t.message,e,n,r,a),o.cause=t,o.name=t.name,i&&Object.assign(o,i),o};const kce=null;function hD(t){return je.isPlainObject(t)||je.isArray(t)}function h7(t){return je.endsWith(t,"[]")?t.slice(0,-2):t}function ZB(t,e,n){return t?t.concat(e).map(function(a,i){return a=h7(a),!n&&i?"["+a+"]":a}).join(n?".":""):e}function Rce(t){return je.isArray(t)&&!t.some(hD)}const Lce=je.toFlatObject(je,{},null,function(e){return/^is[A-Z]/.test(e)});function Ax(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(p,g){return!je.isUndefined(g[p])});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(v){if(v===null)return"";if(je.isDate(v))return v.toISOString();if(!l&&je.isBlob(v))throw new xn("Blob is not supported. Use a Buffer instead.");return je.isArrayBuffer(v)||je.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function c(v,p,g){let y=v;if(v&&!g&&typeof v=="object"){if(je.endsWith(p,"{}"))p=r?p:p.slice(0,-2),v=JSON.stringify(v);else if(je.isArray(v)&&Rce(v)||(je.isFileList(v)||je.endsWith(p,"[]"))&&(y=je.toArray(v)))return p=h7(p),y.forEach(function(S,b){!(je.isUndefined(S)||S===null)&&e.append(o===!0?ZB([p],b,i):o===null?p:p+"[]",u(S))}),!1}return hD(v)?!0:(e.append(ZB(g,p,i),u(v)),!1)}const f=[],d=Object.assign(Lce,{defaultVisitor:c,convertValue:u,isVisitable:hD});function h(v,p){if(!je.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(v),je.forEach(v,function(y,m){(!(je.isUndefined(y)||y===null)&&a.call(e,y,je.isString(m)?m.trim():m,p,d))===!0&&h(y,p?p.concat(m):[m])}),f.pop()}}if(!je.isObject(t))throw new TypeError("data must be an object");return h(t),e}function QB(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function fO(t,e){this._pairs=[],t&&Ax(t,this,e)}const p7=fO.prototype;p7.append=function(e,n){this._pairs.push([e,n])};p7.toString=function(e){const n=e?function(r){return e.call(this,r,QB)}:QB;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 v7(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 fO(e,n).toString(r),i){const o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ace{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 JB=Ace,g7={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Nce=typeof URLSearchParams<"u"?URLSearchParams:fO,Vce=typeof FormData<"u"?FormData:null,Bce=typeof Blob<"u"?Blob:null,$ce=(()=>{let t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),Ice=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),zo={isBrowser:!0,classes:{URLSearchParams:Nce,FormData:Vce,Blob:Bce},isStandardBrowserEnv:$ce,isStandardBrowserWebWorkerEnv:Ice,protocols:["http","https","file","blob","url","data"]};function Pce(t,e){return Ax(t,new zo.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,i){return zo.isNode&&je.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function Fce(t){return je.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function zce(t){const e={},n=Object.keys(t);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],e[i]=t[i];return e}function y7(t){function e(n,r,a,i){let o=n[i++];const s=Number.isFinite(+o),l=i>=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]=zce(a[o])),!s)}if(je.isFormData(t)&&je.isFunction(t.entries)){const n={};return je.forEachEntry(t,(r,a)=>{e(Fce(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 dO={transitional:g7,adapter:zo.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(y7(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 Pce(e,this.formSerializer).toString();if((s=je.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Ax(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||dO.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"?xn.from(s,xn.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:zo.classes.FormData,Blob:zo.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=>{dO.headers[t]={}});const hO=dO,Uce=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"]),Hce=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]&&Uce[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},e$=Symbol("internals");function ng(t){return t&&String(t).trim().toLowerCase()}function wb(t){return t===!1||t==null?t:je.isArray(t)?t.map(wb):String(t)}function Wce(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 Kce=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ST(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 jce(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Yce(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 Nx{constructor(e){e&&this.set(e)}set(e,n,r){const a=this;function i(s,l,u){const c=ng(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]=wb(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())&&!Kce(e)?o(Hce(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=ng(e),e){const r=je.findKey(this,e);if(r){const a=this[r];if(!n)return a;if(n===!0)return Wce(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=ng(e),e){const r=je.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||ST(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let a=!1;function i(o){if(o=ng(o),o){const s=je.findKey(r,o);s&&(!n||ST(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||ST(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]=wb(a),delete n[i];return}const s=e?jce(i):String(i).trim();s!==i&&delete n[i],n[s]=wb(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[e$]=this[e$]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=ng(o);r[s]||(Yce(a,o),r[s]=!0)}return je.isArray(e)?e.forEach(i):i(e),this}}Nx.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);je.reduceDescriptors(Nx.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});je.freezeMethods(Nx);const Rl=Nx;function bT(t,e){const n=this||hO,r=e||n,a=Rl.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 m7(t){return!!(t&&t.__CANCEL__)}function ym(t,e,n){xn.call(this,t??"canceled",xn.ERR_CANCELED,e,n),this.name="CanceledError"}je.inherits(ym,xn,{__CANCEL__:!0});function Xce(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new xn("Request failed with status code "+n.status,[xn.ERR_BAD_REQUEST,xn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const qce=zo.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 Zce(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Qce(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}function S7(t,e){return t&&!Zce(e)?Qce(t,e):e}const Jce=zo.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 efe(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function tfe(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<e)return;const h=c&&u-c;return h?Math.round(d*1e3/h):void 0}}function t$(t,e){let n=0;const r=tfe(50,250);return a=>{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 nfe=typeof XMLHttpRequest<"u",rfe=nfe&&function(t){return new Promise(function(n,r){let a=t.data;const i=Rl.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)&&(zo.isStandardBrowserEnv||zo.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(t.auth){const h=t.auth.username||"",v=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+v))}const c=S7(t.baseURL,t.url);u.open(t.method.toUpperCase(),v7(c,t.params,t.paramsSerializer),!0),u.timeout=t.timeout;function f(){if(!u)return;const h=Rl.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),p={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()},p),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 xn("Request aborted",xn.ECONNABORTED,t,u)),u=null)},u.onerror=function(){r(new xn("Network Error",xn.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let v=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const p=t.transitional||g7;t.timeoutErrorMessage&&(v=t.timeoutErrorMessage),r(new xn(v,p.clarifyTimeoutError?xn.ETIMEDOUT:xn.ECONNABORTED,t,u)),u=null},zo.isStandardBrowserEnv){const h=(t.withCredentials||Jce(c))&&t.xsrfCookieName&&qce.read(t.xsrfCookieName);h&&i.set(t.xsrfHeaderName,h)}a===void 0&&i.setContentType(null),"setRequestHeader"in u&&je.forEach(i.toJSON(),function(v,p){u.setRequestHeader(p,v)}),je.isUndefined(t.withCredentials)||(u.withCredentials=!!t.withCredentials),o&&o!=="json"&&(u.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&u.addEventListener("progress",t$(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",t$(t.onUploadProgress)),(t.cancelToken||t.signal)&&(s=h=>{u&&(r(!h||h.type?new ym(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=efe(c);if(d&&zo.protocols.indexOf(d)===-1){r(new xn("Unsupported protocol "+d+":",xn.ERR_BAD_REQUEST,t));return}u.send(a||null)})},_b={http:kce,xhr:rfe};je.forEach(_b,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const b7={getAdapter:t=>{t=je.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let a=0;a<e&&(n=t[a],!(r=je.isString(n)?_b[n.toLowerCase()]:n));a++);if(!r)throw r===!1?new xn(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(je.hasOwnProp(_b,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`);if(!je.isFunction(r))throw new TypeError("adapter is not a function");return r},adapters:_b};function wT(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ym(null,t)}function n$(t){return wT(t),t.headers=Rl.from(t.headers),t.data=bT.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),b7.getAdapter(t.adapter||hO.adapter)(t).then(function(r){return wT(t),r.data=bT.call(t,t.transformResponse,r),r.headers=Rl.from(r.headers),r},function(r){return m7(r)||(wT(t),r&&r.response&&(r.response.data=bT.call(t,t.transformResponse,r.response),r.response.headers=Rl.from(r.response.headers))),Promise.reject(r)})}const r$=t=>t instanceof Rl?t.toJSON():t;function Pp(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(r$(u),r$(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 w7="1.5.0",pO={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{pO[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const a$={};pO.transitional=function(e,n,r){function a(i,o){return"[Axios v"+w7+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,s)=>{if(e===!1)throw new xn(a(o," has been removed"+(n?" in "+n:"")),xn.ERR_DEPRECATED);return n&&!a$[o]&&(a$[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 afe(t,e,n){if(typeof t!="object")throw new xn("options must be an object",xn.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 xn("option "+i+" must be "+l,xn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new xn("Unknown option "+i,xn.ERR_BAD_OPTION)}}const pD={assertOptions:afe,validators:pO},ou=pD.validators;class Rw{constructor(e){this.defaults=e,this.interceptors={request:new JB,response:new JB}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Pp(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&pD.assertOptions(r,{silentJSONParsing:ou.transitional(ou.boolean),forcedJSONParsing:ou.transitional(ou.boolean),clarifyTimeoutError:ou.transitional(ou.boolean)},!1),a!=null&&(je.isFunction(a)?n.paramsSerializer={serialize:a}:pD.assertOptions(a,{encode:ou.function,serialize:ou.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"],v=>{delete i[v]}),n.headers=Rl.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,d;if(!l){const v=[n$.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(n);f<d;)c=c.then(v[f++],v[f++]);return c}d=s.length;let h=n;for(f=0;f<d;){const v=s[f++],p=s[f++];try{h=v(h)}catch(g){p.call(this,g);break}}try{c=n$.call(this,h)}catch(v){return Promise.reject(v)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=Pp(this.defaults,e);const n=S7(e.baseURL,e.url);return v7(n,e.params,e.paramsSerializer)}}je.forEach(["delete","get","head","options"],function(e){Rw.prototype[e]=function(n,r){return this.request(Pp(r||{},{method:e,url:n,data:(r||{}).data}))}});je.forEach(["post","put","patch"],function(e){function n(r){return function(i,o,s){return this.request(Pp(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Rw.prototype[e]=n(),Rw.prototype[e+"Form"]=n(!0)});const xb=Rw;let ife=class _7{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{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 ym(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 _7(function(a){e=a}),cancel:e}}};const ofe=ife;function sfe(t){return function(n){return t.apply(null,n)}}function lfe(t){return je.isObject(t)&&t.isAxiosError===!0}const vD={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(vD).forEach(([t,e])=>{vD[e]=t});const ufe=vD;function x7(t){const e=new xb(t),n=r7(xb.prototype.request,e);return je.extend(n,xb.prototype,e,{allOwnKeys:!0}),je.extend(n,e,null,{allOwnKeys:!0}),n.create=function(a){return x7(Pp(t,a))},n}const Lr=x7(hO);Lr.Axios=xb;Lr.CanceledError=ym;Lr.CancelToken=ofe;Lr.isCancel=m7;Lr.VERSION=w7;Lr.toFormData=Ax;Lr.AxiosError=xn;Lr.Cancel=Lr.CanceledError;Lr.all=function(e){return Promise.all(e)};Lr.spread=sfe;Lr.isAxiosError=lfe;Lr.mergeConfig=Pp;Lr.AxiosHeaders=Rl;Lr.formToJSON=t=>y7(je.isHTMLForm(t)?new FormData(t):t);Lr.getAdapter=b7.getAdapter;Lr.HttpStatusCode=ufe;Lr.default=Lr;const lc=Lr;var cfe=!1;/*!
- * pinia v2.1.6
- * (c) 2023 Eduardo San Martin Morote
- * @license MIT
- */const ffe=Symbol();var i$;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(i$||(i$={}));function dfe(){const t=ZH(!0),e=t.run(()=>G({}));let n=[],r=[];const a=qu({install(i){a._a=i,i.provide(ffe,a),i.config.globalProperties.$pinia=a,r.forEach(o=>n.push(o)),r=[]},use(i){return!this._a&&!cfe?r.push(i):n.push(i),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return a}function hfe(t){return typeof t=="object"&&t!==null}function o$(t,e){return t=hfe(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 pfe(t,e){return e.reduce((n,r)=>n==null?void 0:n[r],t)}function vfe(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 gfe(t,e){return e.reduce((n,r)=>{const a=r.split(".");return vfe(n,a,pfe(t,a))},{})}function s$(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 l$(t,{storage:e,serializer:n,key:r,paths:a,debug:i}){try{const o=Array.isArray(a)?gfe(t,a):t;e.setItem(r,n.serialize(o))}catch(o){i&&console.error(o)}}function yfe(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=>o$(s,t)):[o$(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 v;return{storage:s,beforeRestore:l,afterRestore:u,serializer:c,key:((v=t.key)!=null?v:p=>p)(typeof f=="string"?f:f(a.$id)),paths:d,debug:h}});a.$persist=()=>{o.forEach(s=>{l$(a.$state,s)})},a.$hydrate=({runHooks:s=!0}={})=>{o.forEach(l=>{const{beforeRestore:u,afterRestore:c}=l;s&&(u==null||u(e)),s$(a,l),s&&(c==null||c(e))})},o.forEach(s=>{const{beforeRestore:l,afterRestore:u}=s;l==null||l(e),s$(a,s),u==null||u(e),a.$subscribe((c,f)=>{l$(f,s)},{detached:!0})})}}var mfe=yfe();const Jh=dfe();Jh.use(mfe);var gr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ai(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Sfe(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 bfe={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<arguments.length;a++){var o=arguments[a];for(var s in o)i[s]=o[s]}return i}function r(a){function i(o,s,l){var u;if(!(typeof document>"u")){if(arguments.length>1){if(l=n({path:"/"},i.defaults,l),typeof l.expires=="number"){var c=new Date;c.setMilliseconds(c.getMilliseconds()+l.expires*864e5),l.expires=c}l.expires=l.expires?l.expires.toUTCString():"";try{u=JSON.stringify(s),/^[\{\[]/.test(u)&&(s=u)}catch{}a.write?s=a.write(s,o):s=encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),o=encodeURIComponent(String(o)),o=o.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),o=o.replace(/[\(\)]/g,escape);var f="";for(var d in l)l[d]&&(f+="; "+d,l[d]!==!0&&(f+="="+l[d]));return document.cookie=o+"="+s+f}o||(u={});for(var h=document.cookie?document.cookie.split("; "):[],v=/(%[0-9A-Z]{2})+/g,p=0;p<h.length;p++){var g=h[p].split("="),y=g.slice(1).join("=");!this.json&&y.charAt(0)==='"'&&(y=y.slice(1,-1));try{var m=g[0].replace(v,decodeURIComponent);if(y=a.read?a.read(y,m):a(y,m)||y.replace(v,decodeURIComponent),this.json)try{y=JSON.parse(y)}catch{}if(o===m){u=y;break}o||(u[m]=y)}catch{}}return u}}return i.set=i,i.get=function(o){return i.call(i,o)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(o,s){i(o,"",n(s,{expires:-1}))},i.withConverter=r,i}return r(function(){})})})(bfe);const wfe="",rg=Symbol("showMessage");let _fe=class{success(e,n=!0){this[rg]("success",e,n)}warning(e,n=!0){this[rg]("warning",e,n)}info(e,n=!0){this[rg]("info",e,n)}error(e,n=!0){this[rg]("error",e,n)}[rg](e,n,r){if(r){let a=!0,i=document.getElementsByClassName("el-message");for(let o=0;o<i.length;o++)n==i[o].getElementsByClassName("el-message__content")[0].innerHTML&&(a=!1);(i.length==0||a)&&Message[e](n)}else Message[e](n)}},xfe=new _fe;const Bu=[],Cfe=lc.CancelToken;let Tfe="000000000"|"0000000";lc.defaults.timeout=2e4;lc.defaults.baseURL="/disaster/TransServlet";lc.defaults.headers.post["Content-Type"]="application/json;charset=UTF-8";lc.interceptors.request.use(t=>{const e=JSON.stringify(t.url)+(t.data?JSON.stringify(t.data):JSON.stringify(t.params));return t.cancelToken=new Cfe(n=>{}),Bu.includes(e),Bu.push(e),t},t=>Promise.reject(t));lc.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(Bu.splice(Bu.findIndex(n=>n===e),1),t.status===200){let{data:n}=t;return n.returnCode==Tfe?Promise.resolve(n):(n.returnMsg==="系统没有登录或会话超时!"&&(Jh.dispatch("user/changeState",{key:"token",value:""}),Jh.dispatch("user/changeState",{key:"name",value:""}),Jh.dispatch("user/changeState",{key:"userId",value:""}),Jh.dispatch("user/changeState",{key:"loginStatus",value:!1}),MessageBox.confirm("系统没有登录或会话超时, 是否登录?","提示",{confirmButtonText:"登录",cancelButtonText:"取消",type:"warning"}).then(()=>{MessageBox.close();let r=window.location.protocol+"//"+window.location.host+"/"+wfe;window.location.href=r}).catch(()=>{xfe.info("已取消!"),MessageBox.close()})),Promise.reject(n))}else return Promise.reject(t)},t=>{const{res:e}=t;if(e)return Bu.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 Bu.splice(Bu.findIndex(r=>r===Lo),1),Promise.reject(n)}});function Efe(t="service"){let e="";return t=="service"?e="/TransServlet":t=="manager"&&(e="/managersvr/TransServlet"),e}function Mfe(t,e){t.clientToken="e47b87eec69545559d1e81e56626da68";let n="5f06c8bc77234f969d13e160b54c27e3";return t.userId=n,t.channelNo=e,t}const Lo=(t,e="service",n="post")=>{let r=Efe(e);return t=Mfe(t,e),new Promise((a,i)=>{n=="post"?lc.post(r,t).then(o=>{a(o)}).catch(o=>{i(o)}):n=="get"&&lc.get(r,{params:t}).then(o=>{a(o)}).catch(o=>{i(o)})})},Dfe='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',kfe=t=>getComputedStyle(t).position==="fixed"?!1:t.offsetParent!==null,u$=t=>Array.from(t.querySelectorAll(Dfe)).filter(e=>Rfe(e)&&kfe(e)),Rfe=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}},Cb=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},C7=t=>!t.getAttribute("aria-owns"),T7=(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},Tb=t=>{t&&(t.focus(),!C7(t)&&t.click())},Zn=(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)},c$=t=>e=>e.pointerType==="mouse"?t(e):void 0;var Lfe=Object.defineProperty,Ofe=Object.defineProperties,Afe=Object.getOwnPropertyDescriptors,f$=Object.getOwnPropertySymbols,Nfe=Object.prototype.hasOwnProperty,Vfe=Object.prototype.propertyIsEnumerable,d$=(t,e,n)=>e in t?Lfe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Bfe=(t,e)=>{for(var n in e||(e={}))Nfe.call(e,n)&&d$(t,n,e[n]);if(f$)for(var n of f$(e))Vfe.call(e,n)&&d$(t,n,e[n]);return t},$fe=(t,e)=>Ofe(t,Afe(e));function h$(t,e){var n;const r=Cn();return Di(()=>{r.value=t()},$fe(Bfe({},e),{flush:(n=e==null?void 0:e.flush)!=null?n:"sync"})),bv(r)}var p$;const Ht=typeof window<"u",Ife=t=>typeof t<"u",Pfe=t=>typeof t=="function",Ffe=t=>typeof t=="string",Fp=()=>{},E7=Ht&&((p$=window==null?void 0:window.navigator)==null?void 0:p$.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function uc(t){return typeof t=="function"?t():w(t)}function M7(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 zfe(t,e={}){let n,r,a=Fp;const i=s=>{clearTimeout(s),a(),a=Fp};return s=>{const l=uc(t),u=uc(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=Fp,l;const u=()=>{i&&(clearTimeout(i),i=void 0,s(),s=Fp)};return f=>{const d=uc(t),h=Date.now()-a,v=()=>l=f();return u(),d<=0?(a=Date.now(),v()):(h>d&&(n||!o)?(a=Date.now(),v()):e&&(l=new Promise((p,g)=>{s=r?g:p,i=setTimeout(()=>{a=Date.now(),o=!0,p(v()),u()},Math.max(0,d-h))})),!n&&!i&&(i=setTimeout(()=>o=!0,d)),o=!1,l)}}function Ufe(t){return t}function Vx(t){return QH()?(JH(t),!0):!1}function Hfe(t,e=200,n={}){return M7(zfe(e,n),t)}function Wfe(t,e=200,n={}){const r=G(t.value),a=Hfe(()=>{r.value=t.value},e,n);return Me(t,()=>a()),r}function D7(t,e=200,n=!1,r=!0,a=!1){return M7(Gfe(e,n,r,a),t)}function vO(t,e=!0){_t()?St(t):e?t():Ze(t)}function Rd(t,e,n={}){const{immediate:r=!0}=n,a=G(!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)},uc(e))}return r&&(a.value=!0,Ht&&l()),Vx(s),{isPending:bv(a),start:l,stop:s}}function Ci(t){var e;const n=uc(t);return(e=n==null?void 0:n.$el)!=null?e:n}const xv=Ht?window:void 0,Kfe=Ht?window.document:void 0;function $n(...t){let e,n,r,a;if(Ffe(t[0])||Array.isArray(t[0])?([n,r,a]=t,e=xv):[e,n,r,a]=t,!e)return Fp;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=Me(()=>[Ci(e),uc(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 Vx(u),u}let v$=!1;function gO(t,e,n={}){const{window:r=xv,ignore:a=[],capture:i=!0,detectIframe:o=!1}=n;if(!r)return;E7&&!v$&&(v$=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",Fp)));let s=!0;const l=d=>a.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(v=>v===d.target||d.composedPath().includes(v));{const v=Ci(h);return v&&(d.target===v||d.composedPath().includes(v))}}),c=[$n(r,"click",d=>{const h=Ci(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}),$n(r,"pointerdown",d=>{const h=Ci(t);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&$n(r,"blur",d=>{var h;const v=Ci(t);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(v!=null&&v.contains(r.document.activeElement))&&e(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function jfe(t,e=!1){const n=G(),r=()=>n.value=!!t();return r(),vO(r,e),n}function Yfe(t){return JSON.parse(JSON.stringify(t))}const g$=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},y$="__vueuse_ssr_handlers__";g$[y$]=g$[y$]||{};function Xfe(t,e,{window:n=xv,initialValue:r=""}={}){const a=G(r),i=A(()=>{var o;return Ci(e)||((o=n==null?void 0:n.document)==null?void 0:o.documentElement)});return Me([i,()=>uc(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}),Me(a,o=>{var s;(s=i.value)!=null&&s.style&&i.value.style.setProperty(uc(t),o)}),a}function qfe({document:t=Kfe}={}){if(!t)return G("visible");const e=G(t.visibilityState);return $n(t,"visibilitychange",()=>{e.value=t.visibilityState}),e}var m$=Object.getOwnPropertySymbols,Zfe=Object.prototype.hasOwnProperty,Qfe=Object.prototype.propertyIsEnumerable,Jfe=(t,e)=>{var n={};for(var r in t)Zfe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&m$)for(var r of m$(t))e.indexOf(r)<0&&Qfe.call(t,r)&&(n[r]=t[r]);return n};function xa(t,e,n={}){const r=n,{window:a=xv}=r,i=Jfe(r,["window"]);let o;const s=jfe(()=>a&&"ResizeObserver"in a),l=()=>{o&&(o.disconnect(),o=void 0)},u=Me(()=>Ci(t),f=>{l(),s.value&&a&&f&&(o=new ResizeObserver(e),o.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return Vx(c),{isSupported:s,stop:c}}function S$(t,e={}){const{reset:n=!0,windowResize:r=!0,windowScroll:a=!0,immediate:i=!0}=e,o=G(0),s=G(0),l=G(0),u=G(0),c=G(0),f=G(0),d=G(0),h=G(0);function v(){const p=Ci(t);if(!p){n&&(o.value=0,s.value=0,l.value=0,u.value=0,c.value=0,f.value=0,d.value=0,h.value=0);return}const g=p.getBoundingClientRect();o.value=g.height,s.value=g.bottom,l.value=g.left,u.value=g.right,c.value=g.top,f.value=g.width,d.value=g.x,h.value=g.y}return xa(t,v),Me(()=>Ci(t),p=>!p&&v()),a&&$n("scroll",v,{capture:!0,passive:!0}),r&&$n("resize",v,{passive:!0}),vO(()=>{i&&v()}),{height:o,bottom:s,left:l,right:u,top:c,width:f,x:d,y:h,update:v}}var b$;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(b$||(b$={}));var ede=Object.defineProperty,w$=Object.getOwnPropertySymbols,tde=Object.prototype.hasOwnProperty,nde=Object.prototype.propertyIsEnumerable,_$=(t,e,n)=>e in t?ede(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rde=(t,e)=>{for(var n in e||(e={}))tde.call(e,n)&&_$(t,n,e[n]);if(w$)for(var n of w$(e))nde.call(e,n)&&_$(t,n,e[n]);return t};const ade={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]};rde({linear:Ufe},ade);function ide(t,e,n,r={}){var a,i,o;const{clone:s=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=r,d=_t(),h=n||(d==null?void 0:d.emit)||((a=d==null?void 0:d.$emit)==null?void 0:a.bind(d))||((o=(i=d==null?void 0:d.proxy)==null?void 0:i.$emit)==null?void 0:o.bind(d==null?void 0:d.proxy));let v=u;e||(e="modelValue"),v=u||v||`update:${e.toString()}`;const p=y=>s?Pfe(s)?s(y):Yfe(y):y,g=()=>Ife(t[e])?p(t[e]):f;if(l){const y=g(),m=G(y);return Me(()=>t[e],S=>m.value=p(S)),Me(m,S=>{(S!==t[e]||c)&&h(v,S)},{deep:c}),m}else return A({get(){return g()},set(y){h(v,y)}})}function ode({window:t=xv}={}){if(!t)return G(!1);const e=G(t.document.hasFocus());return $n(t,"blur",()=>{e.value=!1}),$n(t,"focus",()=>{e.value=!0}),e}function sde(t={}){const{window:e=xv,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:a=!0,includeScrollbar:i=!0}=t,o=G(n),s=G(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(),vO(l),$n("resize",l,{passive:!0}),a&&$n("orientationchange",l,{passive:!0}),{width:o,height:s}}const k7=()=>Ht&&/firefox/i.test(window.navigator.userAgent),lde=(t,e)=>{if(!Ht||!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.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},x$=t=>{let e=0,n=t;for(;n;)e+=n.offsetTop,n=n.offsetParent;return e},ude=(t,e)=>Math.abs(x$(t)-x$(e)),yO=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 cde=typeof global=="object"&&global&&global.Object===Object&&global;const R7=cde;var fde=typeof self=="object"&&self&&self.Object===Object&&self,dde=R7||fde||Function("return this")();const os=dde;var hde=os.Symbol;const ao=hde;var L7=Object.prototype,pde=L7.hasOwnProperty,vde=L7.toString,ag=ao?ao.toStringTag:void 0;function gde(t){var e=pde.call(t,ag),n=t[ag];try{t[ag]=void 0;var r=!0}catch{}var a=vde.call(t);return r&&(e?t[ag]=n:delete t[ag]),a}var yde=Object.prototype,mde=yde.toString;function Sde(t){return mde.call(t)}var bde="[object Null]",wde="[object Undefined]",C$=ao?ao.toStringTag:void 0;function Wd(t){return t==null?t===void 0?wde:bde:C$&&C$ in Object(t)?gde(t):Sde(t)}function Hs(t){return t!=null&&typeof t=="object"}var _de="[object Symbol]";function Bx(t){return typeof t=="symbol"||Hs(t)&&Wd(t)==_de}function O7(t,e){for(var n=-1,r=t==null?0:t.length,a=Array(r);++n<r;)a[n]=e(t[n],n,t);return a}var xde=Array.isArray;const Wa=xde;var Cde=1/0,T$=ao?ao.prototype:void 0,E$=T$?T$.toString:void 0;function A7(t){if(typeof t=="string")return t;if(Wa(t))return O7(t,A7)+"";if(Bx(t))return E$?E$.call(t):"";var e=t+"";return e=="0"&&1/t==-Cde?"-0":e}var Tde=/\s/;function Ede(t){for(var e=t.length;e--&&Tde.test(t.charAt(e)););return e}var Mde=/^\s+/;function Dde(t){return t&&t.slice(0,Ede(t)+1).replace(Mde,"")}function Ka(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var M$=0/0,kde=/^[-+]0x[0-9a-f]+$/i,Rde=/^0b[01]+$/i,Lde=/^0o[0-7]+$/i,Ode=parseInt;function gD(t){if(typeof t=="number")return t;if(Bx(t))return M$;if(Ka(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ka(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Dde(t);var n=Rde.test(t);return n||Lde.test(t)?Ode(t.slice(2),n?2:8):kde.test(t)?M$:+t}var D$=1/0,Ade=17976931348623157e292;function Nde(t){if(!t)return t===0?t:0;if(t=gD(t),t===D$||t===-D$){var e=t<0?-1:1;return e*Ade}return t===t?t:0}function Vde(t){var e=Nde(t),n=e%1;return e===e?n?e-n:e:0}function mO(t){return t}var Bde="[object AsyncFunction]",$de="[object Function]",Ide="[object GeneratorFunction]",Pde="[object Proxy]";function SO(t){if(!Ka(t))return!1;var e=Wd(t);return e==$de||e==Ide||e==Bde||e==Pde}var Fde=os["__core-js_shared__"];const _T=Fde;var k$=function(){var t=/[^.]+$/.exec(_T&&_T.keys&&_T.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function zde(t){return!!k$&&k$ in t}var Gde=Function.prototype,Ude=Gde.toString;function Kd(t){if(t!=null){try{return Ude.call(t)}catch{}try{return t+""}catch{}}return""}var Hde=/[\\^$.*+?()[\]{}|]/g,Wde=/^\[object .+?Constructor\]$/,Kde=Function.prototype,jde=Object.prototype,Yde=Kde.toString,Xde=jde.hasOwnProperty,qde=RegExp("^"+Yde.call(Xde).replace(Hde,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Zde(t){if(!Ka(t)||zde(t))return!1;var e=SO(t)?qde:Wde;return e.test(Kd(t))}function Qde(t,e){return t==null?void 0:t[e]}function jd(t,e){var n=Qde(t,e);return Zde(n)?n:void 0}var Jde=jd(os,"WeakMap");const yD=Jde;var R$=Object.create,ehe=function(){function t(){}return function(e){if(!Ka(e))return{};if(R$)return R$(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const the=ehe;function nhe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function rhe(){}function N7(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var ahe=800,ihe=16,ohe=Date.now;function she(t){var e=0,n=0;return function(){var r=ohe(),a=ihe-(r-n);if(n=r,a>0){if(++e>=ahe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function lhe(t){return function(){return t}}var uhe=function(){try{var t=jd(Object,"defineProperty");return t({},"",{}),t}catch{}}();const Lw=uhe;var che=Lw?function(t,e){return Lw(t,"toString",{configurable:!0,enumerable:!1,value:lhe(e),writable:!0})}:mO;const fhe=che;var dhe=she(fhe);const V7=dhe;function hhe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function B7(t,e,n,r){for(var a=t.length,i=n+(r?1:-1);r?i--:++i<a;)if(e(t[i],i,t))return i;return-1}function phe(t){return t!==t}function vhe(t,e,n){for(var r=n-1,a=t.length;++r<a;)if(t[r]===e)return r;return-1}function ghe(t,e,n){return e===e?vhe(t,e,n):B7(t,phe,n)}function yhe(t,e){var n=t==null?0:t.length;return!!n&&ghe(t,e,0)>-1}var mhe=9007199254740991,She=/^(?:0|[1-9]\d*)$/;function $x(t,e){var n=typeof t;return e=e??mhe,!!e&&(n=="number"||n!="symbol"&&She.test(t))&&t>-1&&t%1==0&&t<e}function bO(t,e,n){e=="__proto__"&&Lw?Lw(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function mm(t,e){return t===e||t!==t&&e!==e}var bhe=Object.prototype,whe=bhe.hasOwnProperty;function wO(t,e,n){var r=t[e];(!(whe.call(t,e)&&mm(r,n))||n===void 0&&!(e in t))&&bO(t,e,n)}function Sm(t,e,n,r){var a=!n;n||(n={});for(var i=-1,o=e.length;++i<o;){var s=e[i],l=r?r(n[s],t[s],s,n,t):void 0;l===void 0&&(l=t[s]),a?bO(n,s,l):wO(n,s,l)}return n}var L$=Math.max;function $7(t,e,n){return e=L$(e===void 0?t.length-1:e,0),function(){for(var r=arguments,a=-1,i=L$(r.length-e,0),o=Array(i);++a<i;)o[a]=r[e+a];a=-1;for(var s=Array(e+1);++a<e;)s[a]=r[a];return s[e]=n(o),nhe(t,this,s)}}function I7(t,e){return V7($7(t,e,mO),t+"")}var _he=9007199254740991;function _O(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=_he}function Cv(t){return t!=null&&_O(t.length)&&!SO(t)}function xhe(t,e,n){if(!Ka(n))return!1;var r=typeof e;return(r=="number"?Cv(n)&&$x(e,n.length):r=="string"&&e in n)?mm(n[e],t):!1}function Che(t){return I7(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&&xhe(n[0],n[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++r<a;){var s=n[r];s&&t(e,s,r,i)}return e})}var The=Object.prototype;function xO(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||The;return t===n}function Ehe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Mhe="[object Arguments]";function O$(t){return Hs(t)&&Wd(t)==Mhe}var P7=Object.prototype,Dhe=P7.hasOwnProperty,khe=P7.propertyIsEnumerable,Rhe=O$(function(){return arguments}())?O$:function(t){return Hs(t)&&Dhe.call(t,"callee")&&!khe.call(t,"callee")};const ny=Rhe;function Lhe(){return!1}var F7=typeof exports=="object"&&exports&&!exports.nodeType&&exports,A$=F7&&typeof module=="object"&&module&&!module.nodeType&&module,Ohe=A$&&A$.exports===F7,N$=Ohe?os.Buffer:void 0,Ahe=N$?N$.isBuffer:void 0,Nhe=Ahe||Lhe;const ry=Nhe;var Vhe="[object Arguments]",Bhe="[object Array]",$he="[object Boolean]",Ihe="[object Date]",Phe="[object Error]",Fhe="[object Function]",zhe="[object Map]",Ghe="[object Number]",Uhe="[object Object]",Hhe="[object RegExp]",Whe="[object Set]",Khe="[object String]",jhe="[object WeakMap]",Yhe="[object ArrayBuffer]",Xhe="[object DataView]",qhe="[object Float32Array]",Zhe="[object Float64Array]",Qhe="[object Int8Array]",Jhe="[object Int16Array]",epe="[object Int32Array]",tpe="[object Uint8Array]",npe="[object Uint8ClampedArray]",rpe="[object Uint16Array]",ape="[object Uint32Array]",Jn={};Jn[qhe]=Jn[Zhe]=Jn[Qhe]=Jn[Jhe]=Jn[epe]=Jn[tpe]=Jn[npe]=Jn[rpe]=Jn[ape]=!0;Jn[Vhe]=Jn[Bhe]=Jn[Yhe]=Jn[$he]=Jn[Xhe]=Jn[Ihe]=Jn[Phe]=Jn[Fhe]=Jn[zhe]=Jn[Ghe]=Jn[Uhe]=Jn[Hhe]=Jn[Whe]=Jn[Khe]=Jn[jhe]=!1;function ipe(t){return Hs(t)&&_O(t.length)&&!!Jn[Wd(t)]}function CO(t){return function(e){return t(e)}}var z7=typeof exports=="object"&&exports&&!exports.nodeType&&exports,p0=z7&&typeof module=="object"&&module&&!module.nodeType&&module,ope=p0&&p0.exports===z7,xT=ope&&R7.process,spe=function(){try{var t=p0&&p0.require&&p0.require("util").types;return t||xT&&xT.binding&&xT.binding("util")}catch{}}();const zp=spe;var V$=zp&&zp.isTypedArray,lpe=V$?CO(V$):ipe;const TO=lpe;var upe=Object.prototype,cpe=upe.hasOwnProperty;function G7(t,e){var n=Wa(t),r=!n&&ny(t),a=!n&&!r&&ry(t),i=!n&&!r&&!a&&TO(t),o=n||r||a||i,s=o?Ehe(t.length,String):[],l=s.length;for(var u in t)(e||cpe.call(t,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||$x(u,l)))&&s.push(u);return s}function U7(t,e){return function(n){return t(e(n))}}var fpe=U7(Object.keys,Object);const dpe=fpe;var hpe=Object.prototype,ppe=hpe.hasOwnProperty;function vpe(t){if(!xO(t))return dpe(t);var e=[];for(var n in Object(t))ppe.call(t,n)&&n!="constructor"&&e.push(n);return e}function bm(t){return Cv(t)?G7(t):vpe(t)}function gpe(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var ype=Object.prototype,mpe=ype.hasOwnProperty;function Spe(t){if(!Ka(t))return gpe(t);var e=xO(t),n=[];for(var r in t)r=="constructor"&&(e||!mpe.call(t,r))||n.push(r);return n}function wm(t){return Cv(t)?G7(t,!0):Spe(t)}var bpe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,wpe=/^\w*$/;function EO(t,e){if(Wa(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Bx(t)?!0:wpe.test(t)||!bpe.test(t)||e!=null&&t in Object(e)}var _pe=jd(Object,"create");const ay=_pe;function xpe(){this.__data__=ay?ay(null):{},this.size=0}function Cpe(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Tpe="__lodash_hash_undefined__",Epe=Object.prototype,Mpe=Epe.hasOwnProperty;function Dpe(t){var e=this.__data__;if(ay){var n=e[t];return n===Tpe?void 0:n}return Mpe.call(e,t)?e[t]:void 0}var kpe=Object.prototype,Rpe=kpe.hasOwnProperty;function Lpe(t){var e=this.__data__;return ay?e[t]!==void 0:Rpe.call(e,t)}var Ope="__lodash_hash_undefined__";function Ape(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ay&&e===void 0?Ope:e,this}function Ld(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ld.prototype.clear=xpe;Ld.prototype.delete=Cpe;Ld.prototype.get=Dpe;Ld.prototype.has=Lpe;Ld.prototype.set=Ape;function Npe(){this.__data__=[],this.size=0}function Ix(t,e){for(var n=t.length;n--;)if(mm(t[n][0],e))return n;return-1}var Vpe=Array.prototype,Bpe=Vpe.splice;function $pe(t){var e=this.__data__,n=Ix(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Bpe.call(e,n,1),--this.size,!0}function Ipe(t){var e=this.__data__,n=Ix(e,t);return n<0?void 0:e[n][1]}function Ppe(t){return Ix(this.__data__,t)>-1}function Fpe(t,e){var n=this.__data__,r=Ix(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Zl(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Zl.prototype.clear=Npe;Zl.prototype.delete=$pe;Zl.prototype.get=Ipe;Zl.prototype.has=Ppe;Zl.prototype.set=Fpe;var zpe=jd(os,"Map");const iy=zpe;function Gpe(){this.size=0,this.__data__={hash:new Ld,map:new(iy||Zl),string:new Ld}}function Upe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function Px(t,e){var n=t.__data__;return Upe(e)?n[typeof e=="string"?"string":"hash"]:n.map}function Hpe(t){var e=Px(this,t).delete(t);return this.size-=e?1:0,e}function Wpe(t){return Px(this,t).get(t)}function Kpe(t){return Px(this,t).has(t)}function jpe(t,e){var n=Px(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ql(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ql.prototype.clear=Gpe;Ql.prototype.delete=Hpe;Ql.prototype.get=Wpe;Ql.prototype.has=Kpe;Ql.prototype.set=jpe;var Ype="Expected a function";function Fx(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Ype);var n=function(){var r=arguments,a=e?e.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=t.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Fx.Cache||Ql),n}Fx.Cache=Ql;var Xpe=500;function qpe(t){var e=Fx(t,function(r){return n.size===Xpe&&n.clear(),r}),n=e.cache;return e}var Zpe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qpe=/\\(\\)?/g,Jpe=qpe(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(Zpe,function(n,r,a,i){e.push(a?i.replace(Qpe,"$1"):r||n)}),e});const eve=Jpe;function tve(t){return t==null?"":A7(t)}function zx(t,e){return Wa(t)?t:EO(t,e)?[t]:eve(tve(t))}var nve=1/0;function _m(t){if(typeof t=="string"||Bx(t))return t;var e=t+"";return e=="0"&&1/t==-nve?"-0":e}function MO(t,e){e=zx(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[_m(e[n++])];return n&&n==r?t:void 0}function Fn(t,e,n){var r=t==null?void 0:MO(t,e);return r===void 0?n:r}function DO(t,e){for(var n=-1,r=e.length,a=t.length;++n<r;)t[a+n]=e[n];return t}var B$=ao?ao.isConcatSpreadable:void 0;function rve(t){return Wa(t)||ny(t)||!!(B$&&t&&t[B$])}function xm(t,e,n,r,a){var i=-1,o=t.length;for(n||(n=rve),a||(a=[]);++i<o;){var s=t[i];e>0&&n(s)?e>1?xm(s,e-1,n,r,a):DO(a,s):r||(a[a.length]=s)}return a}function H7(t){var e=t==null?0:t.length;return e?xm(t,1):[]}function ave(t){return V7($7(t,void 0,H7),t+"")}var ive=U7(Object.getPrototypeOf,Object);const kO=ive;var ove="[object Object]",sve=Function.prototype,lve=Object.prototype,W7=sve.toString,uve=lve.hasOwnProperty,cve=W7.call(Object);function fve(t){if(!Hs(t)||Wd(t)!=ove)return!1;var e=kO(t);if(e===null)return!0;var n=uve.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&W7.call(n)==cve}function Od(){if(!arguments.length)return[];var t=arguments[0];return Wa(t)?t:[t]}function dve(){this.__data__=new Zl,this.size=0}function hve(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function pve(t){return this.__data__.get(t)}function vve(t){return this.__data__.has(t)}var gve=200;function yve(t,e){var n=this.__data__;if(n instanceof Zl){var r=n.__data__;if(!iy||r.length<gve-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ql(r)}return n.set(t,e),this.size=n.size,this}function jo(t){var e=this.__data__=new Zl(t);this.size=e.size}jo.prototype.clear=dve;jo.prototype.delete=hve;jo.prototype.get=pve;jo.prototype.has=vve;jo.prototype.set=yve;function mve(t,e){return t&&Sm(e,bm(e),t)}function Sve(t,e){return t&&Sm(e,wm(e),t)}var K7=typeof exports=="object"&&exports&&!exports.nodeType&&exports,$$=K7&&typeof module=="object"&&module&&!module.nodeType&&module,bve=$$&&$$.exports===K7,I$=bve?os.Buffer:void 0,P$=I$?I$.allocUnsafe:void 0;function j7(t,e){if(e)return t.slice();var n=t.length,r=P$?P$(n):new t.constructor(n);return t.copy(r),r}function wve(t,e){for(var n=-1,r=t==null?0:t.length,a=0,i=[];++n<r;){var o=t[n];e(o,n,t)&&(i[a++]=o)}return i}function Y7(){return[]}var _ve=Object.prototype,xve=_ve.propertyIsEnumerable,F$=Object.getOwnPropertySymbols,Cve=F$?function(t){return t==null?[]:(t=Object(t),wve(F$(t),function(e){return xve.call(t,e)}))}:Y7;const RO=Cve;function Tve(t,e){return Sm(t,RO(t),e)}var Eve=Object.getOwnPropertySymbols,Mve=Eve?function(t){for(var e=[];t;)DO(e,RO(t)),t=kO(t);return e}:Y7;const X7=Mve;function Dve(t,e){return Sm(t,X7(t),e)}function q7(t,e,n){var r=e(t);return Wa(t)?r:DO(r,n(t))}function mD(t){return q7(t,bm,RO)}function kve(t){return q7(t,wm,X7)}var Rve=jd(os,"DataView");const SD=Rve;var Lve=jd(os,"Promise");const bD=Lve;var Ove=jd(os,"Set");const gp=Ove;var z$="[object Map]",Ave="[object Object]",G$="[object Promise]",U$="[object Set]",H$="[object WeakMap]",W$="[object DataView]",Nve=Kd(SD),Vve=Kd(iy),Bve=Kd(bD),$ve=Kd(gp),Ive=Kd(yD),Mf=Wd;(SD&&Mf(new SD(new ArrayBuffer(1)))!=W$||iy&&Mf(new iy)!=z$||bD&&Mf(bD.resolve())!=G$||gp&&Mf(new gp)!=U$||yD&&Mf(new yD)!=H$)&&(Mf=function(t){var e=Wd(t),n=e==Ave?t.constructor:void 0,r=n?Kd(n):"";if(r)switch(r){case Nve:return W$;case Vve:return z$;case Bve:return G$;case $ve:return U$;case Ive:return H$}return e});const oy=Mf;var Pve=Object.prototype,Fve=Pve.hasOwnProperty;function zve(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&Fve.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Gve=os.Uint8Array;const Ow=Gve;function LO(t){var e=new t.constructor(t.byteLength);return new Ow(e).set(new Ow(t)),e}function Uve(t,e){var n=e?LO(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Hve=/\w*$/;function Wve(t){var e=new t.constructor(t.source,Hve.exec(t));return e.lastIndex=t.lastIndex,e}var K$=ao?ao.prototype:void 0,j$=K$?K$.valueOf:void 0;function Kve(t){return j$?Object(j$.call(t)):{}}function Z7(t,e){var n=e?LO(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var jve="[object Boolean]",Yve="[object Date]",Xve="[object Map]",qve="[object Number]",Zve="[object RegExp]",Qve="[object Set]",Jve="[object String]",ege="[object Symbol]",tge="[object ArrayBuffer]",nge="[object DataView]",rge="[object Float32Array]",age="[object Float64Array]",ige="[object Int8Array]",oge="[object Int16Array]",sge="[object Int32Array]",lge="[object Uint8Array]",uge="[object Uint8ClampedArray]",cge="[object Uint16Array]",fge="[object Uint32Array]";function dge(t,e,n){var r=t.constructor;switch(e){case tge:return LO(t);case jve:case Yve:return new r(+t);case nge:return Uve(t,n);case rge:case age:case ige:case oge:case sge:case lge:case uge:case cge:case fge:return Z7(t,n);case Xve:return new r;case qve:case Jve:return new r(t);case Zve:return Wve(t);case Qve:return new r;case ege:return Kve(t)}}function Q7(t){return typeof t.constructor=="function"&&!xO(t)?the(kO(t)):{}}var hge="[object Map]";function pge(t){return Hs(t)&&oy(t)==hge}var Y$=zp&&zp.isMap,vge=Y$?CO(Y$):pge;const gge=vge;var yge="[object Set]";function mge(t){return Hs(t)&&oy(t)==yge}var X$=zp&&zp.isSet,Sge=X$?CO(X$):mge;const bge=Sge;var wge=1,_ge=2,xge=4,J7="[object Arguments]",Cge="[object Array]",Tge="[object Boolean]",Ege="[object Date]",Mge="[object Error]",e9="[object Function]",Dge="[object GeneratorFunction]",kge="[object Map]",Rge="[object Number]",t9="[object Object]",Lge="[object RegExp]",Oge="[object Set]",Age="[object String]",Nge="[object Symbol]",Vge="[object WeakMap]",Bge="[object ArrayBuffer]",$ge="[object DataView]",Ige="[object Float32Array]",Pge="[object Float64Array]",Fge="[object Int8Array]",zge="[object Int16Array]",Gge="[object Int32Array]",Uge="[object Uint8Array]",Hge="[object Uint8ClampedArray]",Wge="[object Uint16Array]",Kge="[object Uint32Array]",Xn={};Xn[J7]=Xn[Cge]=Xn[Bge]=Xn[$ge]=Xn[Tge]=Xn[Ege]=Xn[Ige]=Xn[Pge]=Xn[Fge]=Xn[zge]=Xn[Gge]=Xn[kge]=Xn[Rge]=Xn[t9]=Xn[Lge]=Xn[Oge]=Xn[Age]=Xn[Nge]=Xn[Uge]=Xn[Hge]=Xn[Wge]=Xn[Kge]=!0;Xn[Mge]=Xn[e9]=Xn[Vge]=!1;function v0(t,e,n,r,a,i){var o,s=e&wge,l=e&_ge,u=e&xge;if(n&&(o=a?n(t,r,a,i):n(t)),o!==void 0)return o;if(!Ka(t))return t;var c=Wa(t);if(c){if(o=zve(t),!s)return N7(t,o)}else{var f=oy(t),d=f==e9||f==Dge;if(ry(t))return j7(t,s);if(f==t9||f==J7||d&&!a){if(o=l||d?{}:Q7(t),!s)return l?Dve(t,Sve(o,t)):Tve(t,mve(o,t))}else{if(!Xn[f])return a?t:{};o=dge(t,f,s)}}i||(i=new jo);var h=i.get(t);if(h)return h;i.set(t,o),bge(t)?t.forEach(function(g){o.add(v0(g,e,n,g,t,i))}):gge(t)&&t.forEach(function(g,y){o.set(y,v0(g,e,n,y,t,i))});var v=u?l?kve:mD:l?wm:bm,p=c?void 0:v(t);return hhe(p||t,function(g,y){p&&(y=g,g=t[y]),wO(o,y,v0(g,e,n,y,t,i))}),o}var jge=4;function q$(t){return v0(t,jge)}var Yge=1,Xge=4;function Aw(t){return v0(t,Yge|Xge)}var qge="__lodash_hash_undefined__";function Zge(t){return this.__data__.set(t,qge),this}function Qge(t){return this.__data__.has(t)}function sy(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Ql;++e<n;)this.add(t[e])}sy.prototype.add=sy.prototype.push=Zge;sy.prototype.has=Qge;function Jge(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function n9(t,e){return t.has(e)}var e0e=1,t0e=2;function r9(t,e,n,r,a,i){var o=n&e0e,s=t.length,l=e.length;if(s!=l&&!(o&&l>s))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&t0e?new sy:void 0;for(i.set(t,e),i.set(e,t);++f<s;){var v=t[f],p=e[f];if(r)var g=o?r(p,v,f,e,t,i):r(v,p,f,t,e,i);if(g!==void 0){if(g)continue;d=!1;break}if(h){if(!Jge(e,function(y,m){if(!n9(h,m)&&(v===y||a(v,y,n,r,i)))return h.push(m)})){d=!1;break}}else if(!(v===p||a(v,p,n,r,i))){d=!1;break}}return i.delete(t),i.delete(e),d}function n0e(t){var e=-1,n=Array(t.size);return t.forEach(function(r,a){n[++e]=[a,r]}),n}function OO(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var r0e=1,a0e=2,i0e="[object Boolean]",o0e="[object Date]",s0e="[object Error]",l0e="[object Map]",u0e="[object Number]",c0e="[object RegExp]",f0e="[object Set]",d0e="[object String]",h0e="[object Symbol]",p0e="[object ArrayBuffer]",v0e="[object DataView]",Z$=ao?ao.prototype:void 0,CT=Z$?Z$.valueOf:void 0;function g0e(t,e,n,r,a,i,o){switch(n){case v0e:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case p0e:return!(t.byteLength!=e.byteLength||!i(new Ow(t),new Ow(e)));case i0e:case o0e:case u0e:return mm(+t,+e);case s0e:return t.name==e.name&&t.message==e.message;case c0e:case d0e:return t==e+"";case l0e:var s=n0e;case f0e:var l=r&r0e;if(s||(s=OO),t.size!=e.size&&!l)return!1;var u=o.get(t);if(u)return u==e;r|=a0e,o.set(t,e);var c=r9(s(t),s(e),r,a,i,o);return o.delete(t),c;case h0e:if(CT)return CT.call(t)==CT.call(e)}return!1}var y0e=1,m0e=Object.prototype,S0e=m0e.hasOwnProperty;function b0e(t,e,n,r,a,i){var o=n&y0e,s=mD(t),l=s.length,u=mD(e),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in e:S0e.call(e,d)))return!1}var h=i.get(t),v=i.get(e);if(h&&v)return h==e&&v==t;var p=!0;i.set(t,e),i.set(e,t);for(var g=o;++f<l;){d=s[f];var y=t[d],m=e[d];if(r)var S=o?r(m,y,d,e,t,i):r(y,m,d,t,e,i);if(!(S===void 0?y===m||a(y,m,n,r,i):S)){p=!1;break}g||(g=d=="constructor")}if(p&&!g){var b=t.constructor,x=e.constructor;b!=x&&"constructor"in t&&"constructor"in e&&!(typeof b=="function"&&b instanceof b&&typeof x=="function"&&x instanceof x)&&(p=!1)}return i.delete(t),i.delete(e),p}var w0e=1,Q$="[object Arguments]",J$="[object Array]",y1="[object Object]",_0e=Object.prototype,eI=_0e.hasOwnProperty;function x0e(t,e,n,r,a,i){var o=Wa(t),s=Wa(e),l=o?J$:oy(t),u=s?J$:oy(e);l=l==Q$?y1:l,u=u==Q$?y1:u;var c=l==y1,f=u==y1,d=l==u;if(d&&ry(t)){if(!ry(e))return!1;o=!0,c=!1}if(d&&!c)return i||(i=new jo),o||TO(t)?r9(t,e,n,r,a,i):g0e(t,e,l,n,r,a,i);if(!(n&w0e)){var h=c&&eI.call(t,"__wrapped__"),v=f&&eI.call(e,"__wrapped__");if(h||v){var p=h?t.value():t,g=v?e.value():e;return i||(i=new jo),a(p,g,n,r,i)}}return d?(i||(i=new jo),b0e(t,e,n,r,a,i)):!1}function Gx(t,e,n,r,a){return t===e?!0:t==null||e==null||!Hs(t)&&!Hs(e)?t!==t&&e!==e:x0e(t,e,n,r,Gx,a)}var C0e=1,T0e=2;function E0e(t,e,n,r){var a=n.length,i=a,o=!r;if(t==null)return!i;for(t=Object(t);a--;){var s=n[a];if(o&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++a<i;){s=n[a];var l=s[0],u=t[l],c=s[1];if(o&&s[2]){if(u===void 0&&!(l in t))return!1}else{var f=new jo;if(r)var d=r(u,c,l,t,e,f);if(!(d===void 0?Gx(c,u,C0e|T0e,r,f):d))return!1}}return!0}function a9(t){return t===t&&!Ka(t)}function M0e(t){for(var e=bm(t),n=e.length;n--;){var r=e[n],a=t[r];e[n]=[r,a,a9(a)]}return e}function i9(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function D0e(t){var e=M0e(t);return e.length==1&&e[0][2]?i9(e[0][0],e[0][1]):function(n){return n===t||E0e(n,t,e)}}function k0e(t,e){return t!=null&&e in Object(t)}function R0e(t,e,n){e=zx(e,t);for(var r=-1,a=e.length,i=!1;++r<a;){var o=_m(e[r]);if(!(i=t!=null&&n(t,o)))break;t=t[o]}return i||++r!=a?i:(a=t==null?0:t.length,!!a&&_O(a)&&$x(o,a)&&(Wa(t)||ny(t)))}function o9(t,e){return t!=null&&R0e(t,e,k0e)}var L0e=1,O0e=2;function A0e(t,e){return EO(t)&&a9(e)?i9(_m(t),e):function(n){var r=Fn(n,t);return r===void 0&&r===e?o9(n,t):Gx(e,r,L0e|O0e)}}function N0e(t){return function(e){return e==null?void 0:e[t]}}function V0e(t){return function(e){return MO(e,t)}}function B0e(t){return EO(t)?N0e(_m(t)):V0e(t)}function s9(t){return typeof t=="function"?t:t==null?mO:typeof t=="object"?Wa(t)?A0e(t[0],t[1]):D0e(t):B0e(t)}function $0e(t){return function(e,n,r){for(var a=-1,i=Object(e),o=r(e),s=o.length;s--;){var l=o[t?s:++a];if(n(i[l],l,i)===!1)break}return e}}var I0e=$0e();const l9=I0e;function P0e(t,e){return t&&l9(t,e,bm)}function F0e(t,e){return function(n,r){if(n==null)return n;if(!Cv(n))return t(n,r);for(var a=n.length,i=e?a:-1,o=Object(n);(e?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var z0e=F0e(P0e);const G0e=z0e;var U0e=function(){return os.Date.now()};const TT=U0e;var H0e="Expected a function",W0e=Math.max,K0e=Math.min;function ja(t,e,n){var r,a,i,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(H0e);e=gD(e)||0,Ka(n)&&(c=!!n.leading,f="maxWait"in n,i=f?W0e(gD(n.maxWait)||0,e):i,d="trailing"in n?!!n.trailing:d);function h(_){var C=r,T=a;return r=a=void 0,u=_,o=t.apply(T,C),o}function v(_){return u=_,s=setTimeout(y,e),c?h(_):o}function p(_){var C=_-l,T=_-u,D=e-C;return f?K0e(D,i-T):D}function g(_){var C=_-l,T=_-u;return l===void 0||C>=e||C<0||f&&T>=i}function y(){var _=TT();if(g(_))return m(_);s=setTimeout(y,p(_))}function m(_){return s=void 0,d&&r?h(_):(r=a=void 0,o)}function S(){s!==void 0&&clearTimeout(s),u=0,r=l=a=s=void 0}function b(){return s===void 0?o:m(TT())}function x(){var _=TT(),C=g(_);if(r=arguments,a=this,l=_,C){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return x.cancel=S,x.flush=b,x}function wD(t,e,n){(n!==void 0&&!mm(t[e],n)||n===void 0&&!(e in t))&&bO(t,e,n)}function u9(t){return Hs(t)&&Cv(t)}function _D(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function j0e(t){return Sm(t,wm(t))}function Y0e(t,e,n,r,a,i,o){var s=_D(t,n),l=_D(e,n),u=o.get(l);if(u){wD(t,n,u);return}var c=i?i(s,l,n+"",t,e,o):void 0,f=c===void 0;if(f){var d=Wa(l),h=!d&&ry(l),v=!d&&!h&&TO(l);c=l,d||h||v?Wa(s)?c=s:u9(s)?c=N7(s):h?(f=!1,c=j7(l,!0)):v?(f=!1,c=Z7(l,!0)):c=[]:fve(l)||ny(l)?(c=s,ny(s)?c=j0e(s):(!Ka(s)||SO(s))&&(c=Q7(l))):f=!1}f&&(o.set(l,c),a(c,l,r,i,o),o.delete(l)),wD(t,n,c)}function c9(t,e,n,r,a){t!==e&&l9(e,function(i,o){if(a||(a=new jo),Ka(i))Y0e(t,e,o,n,c9,r,a);else{var s=r?r(_D(t,o),i,o+"",t,e,a):void 0;s===void 0&&(s=i),wD(t,o,s)}},wm)}function X0e(t,e,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(e,t[r]))return!0;return!1}var q0e=Math.max,Z0e=Math.min;function Q0e(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var a=r-1;return n!==void 0&&(a=Vde(n),a=n<0?q0e(r+a,0):Z0e(a,r-1)),B7(t,s9(e),a,!0)}function J0e(t,e){var n=-1,r=Cv(t)?Array(t.length):[];return G0e(t,function(a,i,o){r[++n]=e(a,i,o)}),r}function eye(t,e){var n=Wa(t)?O7:J0e;return n(t,s9(e))}function tye(t,e){return xm(eye(t,e),1)}var nye=1/0;function rye(t){var e=t==null?0:t.length;return e?xm(t,nye):[]}function Nw(t){for(var e=-1,n=t==null?0:t.length,r={};++e<n;){var a=t[e];r[a[0]]=a[1]}return r}function di(t,e){return Gx(t,e)}function mr(t){return t==null}function aye(t){return t===void 0}var iye=Che(function(t,e,n){c9(t,e,n)});const f9=iye;function d9(t,e,n,r){if(!Ka(t))return t;e=zx(e,t);for(var a=-1,i=e.length,o=i-1,s=t;s!=null&&++a<i;){var l=_m(e[a]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(a!=o){var c=s[l];u=r?r(c,l,s):void 0,u===void 0&&(u=Ka(c)?c:$x(e[a+1])?[]:{})}wO(s,l,u),s=s[l]}return t}function oye(t,e,n){for(var r=-1,a=e.length,i={};++r<a;){var o=e[r],s=MO(t,o);n(s,o)&&d9(i,zx(o,t),s)}return i}function sye(t,e){return oye(t,e,function(n,r){return o9(t,r)})}var lye=ave(function(t,e){return t==null?{}:sye(t,e)});const xl=lye;function uye(t,e,n){return t==null?t:d9(t,e,n)}var cye="Expected a function";function hd(t,e,n){var r=!0,a=!0;if(typeof t!="function")throw new TypeError(cye);return Ka(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),ja(t,e,{leading:r,maxWait:e,trailing:a})}var fye=1/0,dye=gp&&1/OO(new gp([,-0]))[1]==fye?function(t){return new gp(t)}:rhe;const hye=dye;var pye=200;function vye(t,e,n){var r=-1,a=yhe,i=t.length,o=!0,s=[],l=s;if(n)o=!1,a=X0e;else if(i>=pye){var u=e?null:hye(t);if(u)return OO(u);o=!1,a=n9,l=new sy}else l=e?[]:s;e:for(;++r<i;){var c=t[r],f=e?e(c):c;if(c=n||c!==0?c:0,o&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;e&&l.push(f),s.push(c)}else a(l,f,n)||(l!==s&&l.push(f),s.push(c))}return s}var gye=I7(function(t){return vye(xm(t,1,u9,!0))});const ET=gye,kr=t=>t===void 0,Sr=t=>typeof t=="boolean",ut=t=>typeof t=="number",Xi=t=>!t&&t!==0||Ke(t)&&t.length===0||Lt(t)&&!Object.keys(t).length,io=t=>typeof Element>"u"?!1:t instanceof Element,yye=t=>mr(t),mye=t=>vt(t)?!Number.isNaN(Number(t)):!1,h9=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Ms=t=>dm(t),ly=t=>Object.keys(t),Sye=t=>Object.entries(t),Eb=(t,e,n)=>({get value(){return Fn(t,e,n)},set value(r){uye(t,e,r)}});class bye extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function wr(t,e){throw new bye(`[${t}] ${e}`)}const p9=(t="")=>t.split(" ").filter(e=>!!e.trim()),Yo=(t,e)=>{if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(e)},As=(t,e)=>{!t||!e.trim()||t.classList.add(...p9(e))},hi=(t,e)=>{!t||!e.trim()||t.classList.remove(...p9(e))},$u=(t,e)=>{var n;if(!Ht||!t||!e)return"";let r=ro(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 rr(t,e="px"){if(!t)return"";if(ut(t)||mye(t))return`${t}${e}`;if(vt(t))return t}const wye=(t,e)=>{if(!Ht)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(e)],r=$u(t,n);return["scroll","auto","overlay"].some(a=>r.includes(a))},AO=(t,e)=>{if(!Ht)return;let n=t;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(wye(n,e))return n;n=n.parentNode}return n};let m1;const v9=t=>{var e;if(!Ht)return 0;if(m1!==void 0)return m1;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),m1=r-i,m1};function g9(t,e){if(!Ht)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;a<o?t.scrollTop=a:i>s&&(t.scrollTop=i-t.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var rn=(t,e)=>{let n=t.__vccOpts||t;for(let[r,a]of e)n[r]=a;return n},_ye={name:"ArrowDown"},xye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Cye=P("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),Tye=[Cye];function Eye(t,e,n,r,a,i){return I(),X("svg",xye,Tye)}var Dc=rn(_ye,[["render",Eye],["__file","arrow-down.vue"]]),Mye={name:"ArrowLeft"},Dye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kye=P("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),Rye=[kye];function Lye(t,e,n,r,a,i){return I(),X("svg",Dye,Rye)}var cc=rn(Mye,[["render",Lye],["__file","arrow-left.vue"]]),Oye={name:"ArrowRight"},Aye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Nye=P("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),Vye=[Nye];function Bye(t,e,n,r,a,i){return I(),X("svg",Aye,Vye)}var za=rn(Oye,[["render",Bye],["__file","arrow-right.vue"]]),$ye={name:"ArrowUp"},Iye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pye=P("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),Fye=[Pye];function zye(t,e,n,r,a,i){return I(),X("svg",Iye,Fye)}var Ux=rn($ye,[["render",zye],["__file","arrow-up.vue"]]),Gye={name:"Back"},Uye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Hye=P("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),Wye=P("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),Kye=[Hye,Wye];function jye(t,e,n,r,a,i){return I(),X("svg",Uye,Kye)}var Yye=rn(Gye,[["render",jye],["__file","back.vue"]]),Xye={name:"Calendar"},qye={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Zye=P("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),Qye=[Zye];function Jye(t,e,n,r,a,i){return I(),X("svg",qye,Qye)}var eme=rn(Xye,[["render",Jye],["__file","calendar.vue"]]),tme={name:"CaretRight"},nme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},rme=P("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),ame=[rme];function ime(t,e,n,r,a,i){return I(),X("svg",nme,ame)}var y9=rn(tme,[["render",ime],["__file","caret-right.vue"]]),ome={name:"CaretTop"},sme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lme=P("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),ume=[lme];function cme(t,e,n,r,a,i){return I(),X("svg",sme,ume)}var fme=rn(ome,[["render",cme],["__file","caret-top.vue"]]),dme={name:"Check"},hme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pme=P("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),vme=[pme];function gme(t,e,n,r,a,i){return I(),X("svg",hme,vme)}var Cm=rn(dme,[["render",gme],["__file","check.vue"]]),yme={name:"CircleCheckFilled"},mme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Sme=P("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),bme=[Sme];function wme(t,e,n,r,a,i){return I(),X("svg",mme,bme)}var _me=rn(yme,[["render",wme],["__file","circle-check-filled.vue"]]),xme={name:"CircleCheck"},Cme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Tme=P("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=P("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),Mme=[Tme,Eme];function Dme(t,e,n,r,a,i){return I(),X("svg",Cme,Mme)}var NO=rn(xme,[["render",Dme],["__file","circle-check.vue"]]),kme={name:"CircleCloseFilled"},Rme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Lme=P("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=[Lme];function Ame(t,e,n,r,a,i){return I(),X("svg",Rme,Ome)}var VO=rn(kme,[["render",Ame],["__file","circle-close-filled.vue"]]),Nme={name:"CircleClose"},Vme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Bme=P("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),$me=P("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),Ime=[Bme,$me];function Pme(t,e,n,r,a,i){return I(),X("svg",Vme,Ime)}var kc=rn(Nme,[["render",Pme],["__file","circle-close.vue"]]),Fme={name:"Clock"},zme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Gme=P("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),Ume=P("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),Hme=P("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),Wme=[Gme,Ume,Hme];function Kme(t,e,n,r,a,i){return I(),X("svg",zme,Wme)}var m9=rn(Fme,[["render",Kme],["__file","clock.vue"]]),jme={name:"Close"},Yme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Xme=P("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),qme=[Xme];function Zme(t,e,n,r,a,i){return I(),X("svg",Yme,qme)}var Jo=rn(jme,[["render",Zme],["__file","close.vue"]]),Qme={name:"DArrowLeft"},Jme={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},e1e=P("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),t1e=[e1e];function n1e(t,e,n,r,a,i){return I(),X("svg",Jme,t1e)}var Gp=rn(Qme,[["render",n1e],["__file","d-arrow-left.vue"]]),r1e={name:"DArrowRight"},a1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},i1e=P("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),o1e=[i1e];function s1e(t,e,n,r,a,i){return I(),X("svg",a1e,o1e)}var Up=rn(r1e,[["render",s1e],["__file","d-arrow-right.vue"]]),l1e={name:"Delete"},u1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},c1e=P("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),f1e=[c1e];function d1e(t,e,n,r,a,i){return I(),X("svg",u1e,f1e)}var h1e=rn(l1e,[["render",d1e],["__file","delete.vue"]]),p1e={name:"Document"},v1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},g1e=P("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),y1e=[g1e];function m1e(t,e,n,r,a,i){return I(),X("svg",v1e,y1e)}var S1e=rn(p1e,[["render",m1e],["__file","document.vue"]]),b1e={name:"FullScreen"},w1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_1e=P("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),x1e=[_1e];function C1e(t,e,n,r,a,i){return I(),X("svg",w1e,x1e)}var T1e=rn(b1e,[["render",C1e],["__file","full-screen.vue"]]),E1e={name:"Hide"},M1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},D1e=P("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),k1e=P("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),R1e=[D1e,k1e];function L1e(t,e,n,r,a,i){return I(),X("svg",M1e,R1e)}var O1e=rn(E1e,[["render",L1e],["__file","hide.vue"]]),A1e={name:"InfoFilled"},N1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},V1e=P("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),B1e=[V1e];function $1e(t,e,n,r,a,i){return I(),X("svg",N1e,B1e)}var BO=rn(A1e,[["render",$1e],["__file","info-filled.vue"]]),I1e={name:"Loading"},P1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},F1e=P("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),z1e=[F1e];function G1e(t,e,n,r,a,i){return I(),X("svg",P1e,z1e)}var Rc=rn(I1e,[["render",G1e],["__file","loading.vue"]]),U1e={name:"Minus"},H1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},W1e=P("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),K1e=[W1e];function j1e(t,e,n,r,a,i){return I(),X("svg",H1e,K1e)}var Y1e=rn(U1e,[["render",j1e],["__file","minus.vue"]]),X1e={name:"MoreFilled"},q1e={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Z1e=P("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),Q1e=[Z1e];function J1e(t,e,n,r,a,i){return I(),X("svg",q1e,Q1e)}var tI=rn(X1e,[["render",J1e],["__file","more-filled.vue"]]),eSe={name:"More"},tSe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},nSe=P("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),rSe=[nSe];function aSe(t,e,n,r,a,i){return I(),X("svg",tSe,rSe)}var iSe=rn(eSe,[["render",aSe],["__file","more.vue"]]),oSe={name:"PictureFilled"},sSe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},lSe=P("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),uSe=[lSe];function cSe(t,e,n,r,a,i){return I(),X("svg",sSe,uSe)}var fSe=rn(oSe,[["render",cSe],["__file","picture-filled.vue"]]),dSe={name:"Plus"},hSe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},pSe=P("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),vSe=[pSe];function gSe(t,e,n,r,a,i){return I(),X("svg",hSe,vSe)}var S9=rn(dSe,[["render",gSe],["__file","plus.vue"]]),ySe={name:"QuestionFilled"},mSe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},SSe=P("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),bSe=[SSe];function wSe(t,e,n,r,a,i){return I(),X("svg",mSe,bSe)}var _Se=rn(ySe,[["render",wSe],["__file","question-filled.vue"]]),xSe={name:"RefreshLeft"},CSe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},TSe=P("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),ESe=[TSe];function MSe(t,e,n,r,a,i){return I(),X("svg",CSe,ESe)}var DSe=rn(xSe,[["render",MSe],["__file","refresh-left.vue"]]),kSe={name:"RefreshRight"},RSe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},LSe=P("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),OSe=[LSe];function ASe(t,e,n,r,a,i){return I(),X("svg",RSe,OSe)}var NSe=rn(kSe,[["render",ASe],["__file","refresh-right.vue"]]),VSe={name:"ScaleToOriginal"},BSe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},$Se=P("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),ISe=[$Se];function PSe(t,e,n,r,a,i){return I(),X("svg",BSe,ISe)}var FSe=rn(VSe,[["render",PSe],["__file","scale-to-original.vue"]]),zSe={name:"Search"},GSe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},USe=P("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),HSe=[USe];function WSe(t,e,n,r,a,i){return I(),X("svg",GSe,HSe)}var KSe=rn(zSe,[["render",WSe],["__file","search.vue"]]),jSe={name:"SortDown"},YSe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},XSe=P("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),qSe=[XSe];function ZSe(t,e,n,r,a,i){return I(),X("svg",YSe,qSe)}var QSe=rn(jSe,[["render",ZSe],["__file","sort-down.vue"]]),JSe={name:"SortUp"},ebe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},tbe=P("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),nbe=[tbe];function rbe(t,e,n,r,a,i){return I(),X("svg",ebe,nbe)}var abe=rn(JSe,[["render",rbe],["__file","sort-up.vue"]]),ibe={name:"StarFilled"},obe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},sbe=P("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),lbe=[sbe];function ube(t,e,n,r,a,i){return I(),X("svg",obe,lbe)}var S1=rn(ibe,[["render",ube],["__file","star-filled.vue"]]),cbe={name:"Star"},fbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},dbe=P("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),hbe=[dbe];function pbe(t,e,n,r,a,i){return I(),X("svg",fbe,hbe)}var vbe=rn(cbe,[["render",pbe],["__file","star.vue"]]),gbe={name:"SuccessFilled"},ybe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},mbe=P("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),Sbe=[mbe];function bbe(t,e,n,r,a,i){return I(),X("svg",ybe,Sbe)}var b9=rn(gbe,[["render",bbe],["__file","success-filled.vue"]]),wbe={name:"View"},_be={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},xbe=P("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),Cbe=[xbe];function Tbe(t,e,n,r,a,i){return I(),X("svg",_be,Cbe)}var Ebe=rn(wbe,[["render",Tbe],["__file","view.vue"]]),Mbe={name:"WarningFilled"},Dbe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},kbe=P("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),Rbe=[kbe];function Lbe(t,e,n,r,a,i){return I(),X("svg",Dbe,Rbe)}var Hx=rn(Mbe,[["render",Lbe],["__file","warning-filled.vue"]]),Obe={name:"ZoomIn"},Abe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Nbe=P("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),Vbe=[Nbe];function Bbe(t,e,n,r,a,i){return I(),X("svg",Abe,Vbe)}var w9=rn(Obe,[["render",Bbe],["__file","zoom-in.vue"]]),$be={name:"ZoomOut"},Ibe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},Pbe=P("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),Fbe=[Pbe];function zbe(t,e,n,r,a,i){return I(),X("svg",Ibe,Fbe)}var Gbe=rn($be,[["render",zbe],["__file","zoom-out.vue"]]);const _9="__epPropKey",ge=t=>t,Ube=t=>Lt(t)&&!!t[_9],ss=(t,e)=>{if(!Lt(t)||Ube(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(", ");yle(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[_9]:!0};return Gt(t,"default")&&(l.default=a),l},Ne=t=>Nw(Object.entries(t).map(([e,n])=>[e,ss(n,e)])),Tn=ge([String,Object,Function]),x9={Close:Jo},$O={Close:Jo,SuccessFilled:b9,InfoFilled:BO,WarningFilled:Hx,CircleCloseFilled:VO},fc={success:b9,warning:Hx,error:VO,info:BO},IO={validating:Rc,success:NO,error:kc},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},C9=(t,e)=>(t.install=n=>{t._context=n._context,n.config.globalProperties[e]=t},t),Hbe=(t,e)=>(t.install=n=>{n.directive(e,t)},t),Qn=t=>(t.install=pn,t),Wx=(...t)=>e=>{t.forEach(n=>{ft(n)?n(e):n.value=e})},nt={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"},Wbe=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],MT=["sun","mon","tue","wed","thu","fri","sat"],Et="update:modelValue",Nn="change",Ga="input",nI=Symbol("INSTALLED_KEY"),tl=["","default","small","large"],Kbe={large:40,default:32,small:24},jbe=t=>Kbe[t||"default"],Kx=t=>["",...tl].includes(t);var Ui=(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))(Ui||{});function xD(t){return Hn(t)&&t.type===Qe}function Ybe(t){return Hn(t)&&t.type===Fa}function Xbe(t){return Hn(t)&&!xD(t)&&!Ybe(t)}const qbe=t=>{if(!Hn(t))return{};const e=t.props||{},n=(Hn(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[ro(a)]=e[a]}),r},Zbe=t=>{if(!Ke(t)||t.length>1)throw new Error("expect to receive a single Vue element child");return t[0]},yp=t=>{const e=Ke(t)?t:[t],n=[];return e.forEach(r=>{var a;Ke(r)?n.push(...yp(r)):Hn(r)&&Ke(r.children)?n.push(...yp(r.children)):(n.push(r),Hn(r)&&((a=r.component)!=null&&a.subTree)&&n.push(...yp(r.component.subTree)))}),n},rI=t=>[...new Set(t)],Ll=t=>!t&&t!==0?[]:Array.isArray(t)?t:[t],jx=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),Hp=t=>Ht?window.requestAnimationFrame(t):setTimeout(t,16),Yx=t=>Ht?window.cancelAnimationFrame(t):clearTimeout(t),Xx=()=>Math.floor(Math.random()*1e4),Gn=t=>t,Qbe=["class","style"],Jbe=/^on[A-Z]/,PO=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,r=A(()=>((n==null?void 0:n.value)||[]).concat(Qbe)),a=_t();return A(a?()=>{var i;return Nw(Object.entries((i=a.proxy)==null?void 0:i.$attrs).filter(([o])=>!r.value.includes(o)&&!(e&&Jbe.test(o))))}:()=>({}))},Ws=({from:t,replacement:e,scope:n,version:r,ref:a,type:i="API"},o)=>{Me(()=>w(o),s=>{},{immediate:!0})},T9=(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,v=d.top,p=d.width,g=d.height,y=document.documentElement.clientWidth,m=document.documentElement.clientHeight,S=-h+c,b=-v+f,x=y-h-p+c,_=m-v-g+f,C=D=>{const M=Math.min(Math.max(c+D.clientX-l,S),x),E=Math.min(Math.max(f+D.clientY-u,b),_);r={offsetX:M,offsetY:E},t.value.style.transform=`translate(${rr(M)}, ${rr(E)})`},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)};St(()=>{Di(()=>{n.value?i():o()})}),Pn(()=>{o()})};var ewe={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 twe=t=>(e,n)=>nwe(e,n,w(t)),nwe=(t,e,n)=>Fn(n,t,t).replace(/\{(\w+)\}/g,(r,a)=>{var i;return`${(i=e==null?void 0:e[a])!=null?i:`{${a}}`}`}),rwe=t=>{const e=A(()=>w(t).name),n=en(t)?t:G(t);return{lang:e,locale:n,t:twe(t)}},E9=Symbol("localeContextKey"),jt=t=>{const e=t||Ye(E9,G());return rwe(A(()=>e.value||ewe))},g0="el",awe="is-",Wc=(t,e,n,r,a)=>{let i=`${t}-${e}`;return n&&(i+=`-${n}`),r&&(i+=`__${r}`),a&&(i+=`--${a}`),i},M9=Symbol("namespaceContextKey"),FO=t=>{const e=t||(_t()?Ye(M9,G(g0)):G(g0));return A(()=>w(e)||g0)},ke=(t,e)=>{const n=FO(e);return{namespace:n,b:(p="")=>Wc(n.value,t,p,"",""),e:p=>p?Wc(n.value,t,"",p,""):"",m:p=>p?Wc(n.value,t,"","",p):"",be:(p,g)=>p&&g?Wc(n.value,t,p,g,""):"",em:(p,g)=>p&&g?Wc(n.value,t,"",p,g):"",bm:(p,g)=>p&&g?Wc(n.value,t,p,"",g):"",bem:(p,g,y)=>p&&g&&y?Wc(n.value,t,p,g,y):"",is:(p,...g)=>{const y=g.length>=1?g[0]:!0;return p&&y?`${awe}${p}`:""},cssVar:p=>{const g={};for(const y in p)p[y]&&(g[`--${n.value}-${y}`]=p[y]);return g},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const g={};for(const y in p)p[y]&&(g[`--${n.value}-${t}-${y}`]=p[y]);return g},cssVarBlockName:p=>`--${n.value}-${t}-${p}`}},D9=(t,e={})=>{en(t)||wr("[useLockscreen]","You need to pass a ref param to this function");const n=e.ns||ke("popup"),r=vW(()=>n.bm("parent","hidden"));if(!Ht||Yo(document.body,r.value))return;let a=0,i=!1,o="0";const s=()=>{setTimeout(()=>{hi(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=o)},200)};Me(t,l=>{if(!l){s();return}i=!Yo(document.body,r.value),i&&(o=document.body.style.width),a=v9(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=$u(document.body,"overflowY");a>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${a}px)`),As(document.body,r.value)}),JH(()=>s())},iwe=ss({type:ge(Boolean),default:null}),owe=ss({type:ge(Function)}),k9=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,r=[e],a={[t]:iwe,[n]:owe};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=_t(),{emit:h}=d,v=d.props,p=A(()=>ft(v[n])),g=A(()=>v[t]===null),y=C=>{o.value!==!0&&(o.value=!0,s&&(s.value=C),ft(c)&&c(C))},m=C=>{o.value!==!1&&(o.value=!1,s&&(s.value=C),ft(f)&&f(C))},S=C=>{if(v.disabled===!0||ft(u)&&!u())return;const T=p.value&&Ht;T&&h(e,!0),(g.value||!T)&&y(C)},b=C=>{if(v.disabled===!0||!Ht)return;const T=p.value&&Ht;T&&h(e,!1),(g.value||!T)&&m(C)},x=C=>{Sr(C)&&(v.disabled&&C?p.value&&h(e,!1):o.value!==C&&(C?y():m()))},_=()=>{o.value?b():S()};return Me(()=>v[t],x),l&&d.appContext.config.globalProperties.$route!==void 0&&Me(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&b()}),St(()=>{x(v[t])}),{hide:b,show:S,toggle:_,hasUpdateHandler:p}},useModelToggleProps:a,useModelToggleEmits:r}};k9("modelValue");const R9=t=>{const e=_t();return A(()=>{var n,r;return(r=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:r[t]})};var pi="top",oo="bottom",so="right",vi="left",zO="auto",Tm=[pi,oo,so,vi],Wp="start",uy="end",swe="clippingParents",L9="viewport",ig="popper",lwe="reference",aI=Tm.reduce(function(t,e){return t.concat([e+"-"+Wp,e+"-"+uy])},[]),Yd=[].concat(Tm,[zO]).reduce(function(t,e){return t.concat([e,e+"-"+Wp,e+"-"+uy])},[]),uwe="beforeRead",cwe="read",fwe="afterRead",dwe="beforeMain",hwe="main",pwe="afterMain",vwe="beforeWrite",gwe="write",ywe="afterWrite",mwe=[uwe,cwe,fwe,dwe,hwe,pwe,vwe,gwe,ywe];function Ks(t){return t?(t.nodeName||"").toLowerCase():null}function ls(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Kp(t){var e=ls(t).Element;return t instanceof e||t instanceof Element}function to(t){var e=ls(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function GO(t){if(typeof ShadowRoot>"u")return!1;var e=ls(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Swe(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];!to(i)||!Ks(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 bwe(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},{});!to(a)||!Ks(a)||(Object.assign(a.style,s),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}var O9={name:"applyStyles",enabled:!0,phase:"write",fn:Swe,effect:bwe,requires:["computeStyles"]};function Is(t){return t.split("-")[0]}var pd=Math.max,Vw=Math.min,jp=Math.round;function Yp(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,a=1;if(to(t)&&e){var i=t.offsetHeight,o=t.offsetWidth;o>0&&(r=jp(n.width)/o||1),i>0&&(a=jp(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 UO(t){var e=Yp(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 A9(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&GO(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Il(t){return ls(t).getComputedStyle(t)}function wwe(t){return["table","td","th"].indexOf(Ks(t))>=0}function Lc(t){return((Kp(t)?t.ownerDocument:t.document)||window.document).documentElement}function qx(t){return Ks(t)==="html"?t:t.assignedSlot||t.parentNode||(GO(t)?t.host:null)||Lc(t)}function iI(t){return!to(t)||Il(t).position==="fixed"?null:t.offsetParent}function _we(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&to(t)){var r=Il(t);if(r.position==="fixed")return null}var a=qx(t);for(GO(a)&&(a=a.host);to(a)&&["html","body"].indexOf(Ks(a))<0;){var i=Il(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 Em(t){for(var e=ls(t),n=iI(t);n&&wwe(n)&&Il(n).position==="static";)n=iI(n);return n&&(Ks(n)==="html"||Ks(n)==="body"&&Il(n).position==="static")?e:n||_we(t)||e}function HO(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function y0(t,e,n){return pd(t,Vw(e,n))}function xwe(t,e,n){var r=y0(t,e,n);return r>n?n:r}function N9(){return{top:0,right:0,bottom:0,left:0}}function V9(t){return Object.assign({},N9(),t)}function B9(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var Cwe=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,V9(typeof t!="number"?t:B9(t,Tm))};function Twe(t){var e,n=t.state,r=t.name,a=t.options,i=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Is(n.placement),l=HO(s),u=[vi,so].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!o)){var f=Cwe(a.padding,n),d=UO(i),h=l==="y"?pi:vi,v=l==="y"?oo:so,p=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],g=o[l]-n.rects.reference[l],y=Em(i),m=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,S=p/2-g/2,b=f[h],x=m-d[c]-f[v],_=m/2-d[c]/2+S,C=y0(b,_,x),T=l;n.modifiersData[r]=(e={},e[T]=C,e.centerOffset=C-_,e)}}function Ewe(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)||!A9(e.elements.popper,a)||(e.elements.arrow=a))}var Mwe={name:"arrow",enabled:!0,phase:"main",fn:Twe,effect:Ewe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Xp(t){return t.split("-")[1]}var Dwe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kwe(t){var e=t.x,n=t.y,r=window,a=r.devicePixelRatio||1;return{x:jp(e*a)/a||0,y:jp(n*a)/a||0}}function oI(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,v=o.y,p=v===void 0?0:v,g=typeof c=="function"?c({x:h,y:p}):{x:h,y:p};h=g.x,p=g.y;var y=o.hasOwnProperty("x"),m=o.hasOwnProperty("y"),S=vi,b=pi,x=window;if(u){var _=Em(n),C="clientHeight",T="clientWidth";if(_===ls(n)&&(_=Lc(n),Il(_).position!=="static"&&s==="absolute"&&(C="scrollHeight",T="scrollWidth")),_=_,a===pi||(a===vi||a===so)&&i===uy){b=oo;var D=f&&_===x&&x.visualViewport?x.visualViewport.height:_[C];p-=D-r.height,p*=l?1:-1}if(a===vi||(a===pi||a===oo)&&i===uy){S=so;var M=f&&_===x&&x.visualViewport?x.visualViewport.width:_[T];h-=M-r.width,h*=l?1:-1}}var E=Object.assign({position:s},u&&Dwe),k=c===!0?kwe({x:h,y:p}):{x:h,y:p};if(h=k.x,p=k.y,l){var R;return Object.assign({},E,(R={},R[b]=m?"0":"",R[S]=y?"0":"",R.transform=(x.devicePixelRatio||1)<=1?"translate("+h+"px, "+p+"px)":"translate3d("+h+"px, "+p+"px, 0)",R))}return Object.assign({},E,(e={},e[b]=m?p+"px":"",e[S]=y?h+"px":"",e.transform="",e))}function Rwe(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:Is(e.placement),variation:Xp(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,oI(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,oI(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 $9={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Rwe,data:{}},b1={passive:!0};function Lwe(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=ls(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,b1)}),s&&l.addEventListener("resize",n.update,b1),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,b1)}),s&&l.removeEventListener("resize",n.update,b1)}}var I9={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Lwe,data:{}},Owe={left:"right",right:"left",bottom:"top",top:"bottom"};function Mb(t){return t.replace(/left|right|bottom|top/g,function(e){return Owe[e]})}var Awe={start:"end",end:"start"};function sI(t){return t.replace(/start|end/g,function(e){return Awe[e]})}function WO(t){var e=ls(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function KO(t){return Yp(Lc(t)).left+WO(t).scrollLeft}function Nwe(t){var e=ls(t),n=Lc(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+KO(t),y:s}}function Vwe(t){var e,n=Lc(t),r=WO(t),a=(e=t.ownerDocument)==null?void 0:e.body,i=pd(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),o=pd(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),s=-r.scrollLeft+KO(t),l=-r.scrollTop;return Il(a||n).direction==="rtl"&&(s+=pd(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:o,x:s,y:l}}function jO(t){var e=Il(t),n=e.overflow,r=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function P9(t){return["html","body","#document"].indexOf(Ks(t))>=0?t.ownerDocument.body:to(t)&&jO(t)?t:P9(qx(t))}function m0(t,e){var n;e===void 0&&(e=[]);var r=P9(t),a=r===((n=t.ownerDocument)==null?void 0:n.body),i=ls(r),o=a?[i].concat(i.visualViewport||[],jO(r)?r:[]):r,s=e.concat(o);return a?s:s.concat(m0(qx(o)))}function CD(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Bwe(t){var e=Yp(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 lI(t,e){return e===L9?CD(Nwe(t)):Kp(e)?Bwe(e):CD(Vwe(Lc(t)))}function $we(t){var e=m0(qx(t)),n=["absolute","fixed"].indexOf(Il(t).position)>=0,r=n&&to(t)?Em(t):t;return Kp(r)?e.filter(function(a){return Kp(a)&&A9(a,r)&&Ks(a)!=="body"}):[]}function Iwe(t,e,n){var r=e==="clippingParents"?$we(t):[].concat(e),a=[].concat(r,[n]),i=a[0],o=a.reduce(function(s,l){var u=lI(t,l);return s.top=pd(u.top,s.top),s.right=Vw(u.right,s.right),s.bottom=Vw(u.bottom,s.bottom),s.left=pd(u.left,s.left),s},lI(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 F9(t){var e=t.reference,n=t.element,r=t.placement,a=r?Is(r):null,i=r?Xp(r):null,o=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(a){case pi:l={x:o,y:e.y-n.height};break;case oo:l={x:o,y:e.y+e.height};break;case so:l={x:e.x+e.width,y:s};break;case vi:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var u=a?HO(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Wp:l[u]=l[u]-(e[c]/2-n[c]/2);break;case uy:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function cy(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?swe:i,s=n.rootBoundary,l=s===void 0?L9:s,u=n.elementContext,c=u===void 0?ig:u,f=n.altBoundary,d=f===void 0?!1:f,h=n.padding,v=h===void 0?0:h,p=V9(typeof v!="number"?v:B9(v,Tm)),g=c===ig?lwe:ig,y=t.rects.popper,m=t.elements[d?g:c],S=Iwe(Kp(m)?m:m.contextElement||Lc(t.elements.popper),o,l),b=Yp(t.elements.reference),x=F9({reference:b,element:y,strategy:"absolute",placement:a}),_=CD(Object.assign({},y,x)),C=c===ig?_:b,T={top:S.top-C.top+p.top,bottom:C.bottom-S.bottom+p.bottom,left:S.left-C.left+p.left,right:C.right-S.right+p.right},D=t.modifiersData.offset;if(c===ig&&D){var M=D[a];Object.keys(T).forEach(function(E){var k=[so,oo].indexOf(E)>=0?1:-1,R=[pi,oo].indexOf(E)>=0?"y":"x";T[E]+=M[R]*k})}return T}function Pwe(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?Yd:l,c=Xp(r),f=c?s?aI:aI.filter(function(v){return Xp(v)===c}):Tm,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,p){return v[p]=cy(t,{placement:p,boundary:a,rootBoundary:i,padding:o})[Is(p)],v},{});return Object.keys(h).sort(function(v,p){return h[v]-h[p]})}function Fwe(t){if(Is(t)===zO)return[];var e=Mb(t);return[sI(t),e,sI(e)]}function zwe(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,v=h===void 0?!0:h,p=n.allowedAutoPlacements,g=e.options.placement,y=Is(g),m=y===g,S=l||(m||!v?[Mb(g)]:Fwe(g)),b=[g].concat(S).reduce(function(ie,be){return ie.concat(Is(be)===zO?Pwe(e,{placement:be,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:p}):be)},[]),x=e.rects.reference,_=e.rects.popper,C=new Map,T=!0,D=b[0],M=0;M<b.length;M++){var E=b[M],k=Is(E),R=Xp(E)===Wp,O=[pi,oo].indexOf(k)>=0,B=O?"width":"height",$=cy(e,{placement:E,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),V=O?R?so:vi:R?oo:pi;x[B]>_[B]&&(V=Mb(V));var F=Mb(V),L=[];if(i&&L.push($[k]<=0),s&&L.push($[V]<=0,$[F]<=0),L.every(function(ie){return ie})){D=E,T=!1;break}C.set(E,L)}if(T)for(var N=v?3:1,H=function(ie){var be=b.find(function(le){var J=C.get(le);if(J)return J.slice(0,ie).every(function(Z){return Z})});if(be)return D=be,"break"},K=N;K>0;K--){var Q=H(K);if(Q==="break")break}e.placement!==D&&(e.modifiersData[r]._skip=!0,e.placement=D,e.reset=!0)}}var Gwe={name:"flip",enabled:!0,phase:"main",fn:zwe,requiresIfExists:["offset"],data:{_skip:!1}};function uI(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 cI(t){return[pi,so,oo,vi].some(function(e){return t[e]>=0})}function Uwe(t){var e=t.state,n=t.name,r=e.rects.reference,a=e.rects.popper,i=e.modifiersData.preventOverflow,o=cy(e,{elementContext:"reference"}),s=cy(e,{altBoundary:!0}),l=uI(o,r),u=uI(s,a,i),c=cI(l),f=cI(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 Hwe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Uwe};function Wwe(t,e,n){var r=Is(t),a=[vi,pi].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,[vi,so].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Kwe(t){var e=t.state,n=t.options,r=t.name,a=n.offset,i=a===void 0?[0,0]:a,o=Yd.reduce(function(c,f){return c[f]=Wwe(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 jwe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Kwe};function Ywe(t){var e=t.state,n=t.name;e.modifiersData[n]=F9({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var z9={name:"popperOffsets",enabled:!0,phase:"read",fn:Ywe,data:{}};function Xwe(t){return t==="x"?"y":"x"}function qwe(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,v=n.tetherOffset,p=v===void 0?0:v,g=cy(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=Is(e.placement),m=Xp(e.placement),S=!m,b=HO(y),x=Xwe(b),_=e.modifiersData.popperOffsets,C=e.rects.reference,T=e.rects.popper,D=typeof p=="function"?p(Object.assign({},e.rects,{placement:e.placement})):p,M=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,k={x:0,y:0};if(_){if(i){var R,O=b==="y"?pi:vi,B=b==="y"?oo:so,$=b==="y"?"height":"width",V=_[b],F=V+g[O],L=V-g[B],N=h?-T[$]/2:0,H=m===Wp?C[$]:T[$],K=m===Wp?-T[$]:-C[$],Q=e.elements.arrow,ie=h&&Q?UO(Q):{width:0,height:0},be=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:N9(),le=be[O],J=be[B],Z=y0(0,C[$],ie[$]),ee=S?C[$]/2-N-Z-le-M.mainAxis:H-Z-le-M.mainAxis,ce=S?-C[$]/2+N+Z+J+M.mainAxis:K+Z+J+M.mainAxis,ue=e.elements.arrow&&Em(e.elements.arrow),Y=ue?b==="y"?ue.clientTop||0:ue.clientLeft||0:0,te=(R=E==null?void 0:E[b])!=null?R:0,oe=V+ee-te-Y,Se=V+ce-te,fe=y0(h?Vw(F,oe):F,V,h?pd(L,Se):L);_[b]=fe,k[b]=fe-V}if(s){var ne,Ee=b==="x"?pi:vi,_e=b==="x"?oo:so,me=_[x],Te=x==="y"?"height":"width",Ve=me+g[Ee],ze=me-g[_e],We=[pi,vi].indexOf(y)!==-1,De=(ne=E==null?void 0:E[x])!=null?ne:0,Fe=We?Ve:me-C[Te]-T[Te]-De+M.altAxis,at=We?me+C[Te]+T[Te]-De-M.altAxis:ze,yt=h&&We?xwe(Fe,me,at):y0(h?Fe:Ve,me,h?at:ze);_[x]=yt,k[x]=yt-me}e.modifiersData[r]=k}}var Zwe={name:"preventOverflow",enabled:!0,phase:"main",fn:qwe,requiresIfExists:["offset"]};function Qwe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Jwe(t){return t===ls(t)||!to(t)?WO(t):Qwe(t)}function e_e(t){var e=t.getBoundingClientRect(),n=jp(e.width)/t.offsetWidth||1,r=jp(e.height)/t.offsetHeight||1;return n!==1||r!==1}function t_e(t,e,n){n===void 0&&(n=!1);var r=to(e),a=to(e)&&e_e(e),i=Lc(e),o=Yp(t,a),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ks(e)!=="body"||jO(i))&&(s=Jwe(e)),to(e)?(l=Yp(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=KO(i))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function n_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 r_e(t){var e=n_e(t);return mwe.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 i_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 fI={placement:"bottom",modifiers:[],strategy:"absolute"};function dI(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function YO(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,a=e.defaultOptions,i=a===void 0?fI:a;return function(o,s,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},fI,i),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(p){var g=typeof p=="function"?p(u.options):p;v(),u.options=Object.assign({},i,u.options,g),u.scrollParents={reference:Kp(o)?m0(o):o.contextElement?m0(o.contextElement):[],popper:m0(s)};var y=r_e(i_e([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(m){return m.enabled}),h(),d.update()},forceUpdate:function(){if(!f){var p=u.elements,g=p.reference,y=p.popper;if(dI(g,y)){u.rects={reference:t_e(g,Em(y),u.options.strategy==="fixed"),popper:UO(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var m=0;m<u.orderedModifiers.length;m++){if(u.reset===!0){u.reset=!1,m=-1;continue}var S=u.orderedModifiers[m],b=S.fn,x=S.options,_=x===void 0?{}:x,C=S.name;typeof b=="function"&&(u=b({state:u,options:_,name:C,instance:d})||u)}}}},update:a_e(function(){return new Promise(function(p){d.forceUpdate(),p(u)})}),destroy:function(){v(),f=!0}};if(!dI(o,s))return d;d.setOptions(l).then(function(p){!f&&l.onFirstUpdate&&l.onFirstUpdate(p)});function h(){u.orderedModifiers.forEach(function(p){var g=p.name,y=p.options,m=y===void 0?{}:y,S=p.effect;if(typeof S=="function"){var b=S({state:u,name:g,instance:d,options:m}),x=function(){};c.push(b||x)}})}function v(){c.forEach(function(p){return p()}),c=[]}return d}}YO();var o_e=[I9,z9,$9,O9];YO({defaultModifiers:o_e});var s_e=[I9,z9,$9,O9,jwe,Gwe,Zwe,Mwe,Hwe],G9=YO({defaultModifiers:s_e});const l_e=(t,e,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=u_e(l);Object.assign(o.value,u)},requires:["computeStyles"]},a=A(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=w(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),i=Cn(),o=G({styles:{popper:{position:w(a).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return Me(a,l=>{const u=w(i);u&&u.setOptions(l)},{deep:!0}),Me([t,e],([l,u])=>{s(),!(!l||!u)&&(i.value=G9(l,u,w(a)))}),Pn(()=>{s()}),{state:A(()=>{var l;return{...((l=w(i))==null?void 0:l.state)||{}}}),styles:A(()=>w(o).styles),attributes:A(()=>w(o).attributes),update:()=>{var l;return(l=w(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=w(i))==null?void 0:l.forceUpdate()},instanceRef:A(()=>w(i))}};function u_e(t){const e=Object.keys(t.elements),n=Nw(e.map(a=>[a,t.styles[a]||{}])),r=Nw(e.map(a=>[a,t.attributes[a]]));return{styles:n,attributes:r}}const XO=t=>{if(!t)return{onClick:pn,onMousedown:pn,onMouseup:pn};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}}},c_e=(t,e=0)=>{if(e===0)return t;const n=G(!1);let r=0;const a=()=>{r&&clearTimeout(r),r=window.setTimeout(()=>{n.value=t.value},e)};return St(a),Me(()=>t.value,i=>{i?a():n.value=i}),n};function hI(){let t;const e=(r,a)=>{n(),t=window.setTimeout(r,a)},n=()=>window.clearTimeout(t);return Vx(()=>n()),{registerTimeout:e,cancelTimeout:n}}const pI={prefix:Math.floor(Math.random()*1e4),current:0},f_e=Symbol("elIdInjection"),U9=()=>_t()?Ye(f_e,pI):pI,lo=t=>{const e=U9(),n=FO();return A(()=>w(t)||`${n.value}-id-${e.prefix}-${e.current++}`)};let Ph=[];const vI=t=>{const e=t;e.key===nt.esc&&Ph.forEach(n=>n(e))},d_e=t=>{St(()=>{Ph.length===0&&document.addEventListener("keydown",vI),Ht&&Ph.push(t)}),Pn(()=>{Ph=Ph.filter(e=>e!==t),Ph.length===0&&Ht&&document.removeEventListener("keydown",vI)})};let gI;const H9=()=>{const t=FO(),e=U9(),n=A(()=>`${t.value}-popper-container-${e.prefix}`),r=A(()=>`#${n.value}`);return{id:n,selector:r}},h_e=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},p_e=()=>{const{id:t,selector:e}=H9();return Ex(()=>{Ht&&!gI&&!document.body.querySelector(e.value)&&(gI=h_e(t.value))}),{id:t,selector:e}},v_e=Ne({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),W9=({showAfter:t,hideAfter:e,autoClose:n,open:r,close:a})=>{const{registerTimeout:i}=hI(),{registerTimeout:o,cancelTimeout:s}=hI();return{onOpen:c=>{i(()=>{r(c);const f=w(n);ut(f)&&f>0&&o(()=>{a(c)},f)},w(t))},onClose:c=>{s(),i(()=>{a(c)},w(e))}}},K9=Symbol("elForwardRef"),g_e=t=>{At(K9,{setForwardRef:n=>{t.value=n}})},y_e=t=>({mounted(e){t(e)},updated(e){t(e)},unmounted(){t(null)}}),yI=G(0),j9=2e3,Y9=Symbol("zIndexContextKey"),Tv=t=>{const e=t||(_t()?Ye(Y9,void 0):void 0),n=A(()=>{const i=w(e);return ut(i)?i:j9}),r=A(()=>n.value+yI.value);return{initialZIndex:n,currentZIndex:r,nextZIndex:()=>(yI.value++,r.value)}},fy=Math.min,mp=Math.max,Bw=Math.round,dc=t=>({x:t,y:t});function m_e(t,e,n){return mp(t,fy(e,n))}function X9(t,e){return typeof t=="function"?t(e):t}function qO(t){return t.split("-")[0]}function ZO(t){return t.split("-")[1]}function S_e(t){return t==="x"?"y":"x"}function q9(t){return t==="y"?"height":"width"}function QO(t){return["top","bottom"].includes(qO(t))?"y":"x"}function Z9(t){return S_e(QO(t))}function b_e(t){return{top:0,right:0,bottom:0,left:0,...t}}function w_e(t){return typeof t!="number"?b_e(t):{top:t,right:t,bottom:t,left:t}}function Q9(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function mI(t,e,n){let{reference:r,floating:a}=t;const i=QO(e),o=Z9(e),s=q9(o),l=qO(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(ZO(e)){case"start":h[o]-=d*(n&&u?-1:1);break;case"end":h[o]+=d*(n&&u?-1:1);break}return h}const __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}=mI(u,r,l),d=r,h={},v=0;for(let p=0;p<s.length;p++){const{name:g,fn:y}=s[p],{x:m,y:S,data:b,reset:x}=await y({x:c,y:f,initialPlacement:r,placement:d,strategy:a,middlewareData:h,rects:u,platform:o,elements:{reference:t,floating:e}});if(c=m??c,f=S??f,h={...h,[g]:{...h[g],...b}},x&&v<=50){v++,typeof x=="object"&&(x.placement&&(d=x.placement),x.rects&&(u=x.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:a}):x.rects),{x:c,y:f}=mI(u,d,l)),p=-1;continue}}return{x:c,y:f,placement:d,strategy:a,middlewareData:h}},x_e=t=>({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}=X9(t,e)||{};if(u==null)return{};const f=w_e(c),d={x:n,y:r},h=Z9(a),v=q9(h),p=await o.getDimensions(u),g=h==="y",y=g?"top":"left",m=g?"bottom":"right",S=g?"clientHeight":"clientWidth",b=i.reference[v]+i.reference[h]-d[h]-i.floating[v],x=d[h]-i.reference[h],_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let C=_?_[S]:0;(!C||!await(o.isElement==null?void 0:o.isElement(_)))&&(C=s.floating[S]||i.floating[v]);const T=b/2-x/2,D=C/2-p[v]/2-1,M=fy(f[y],D),E=fy(f[m],D),k=M,R=C-p[v]-E,O=C/2-p[v]/2+T,B=m_e(k,O,R),$=!l.arrow&&ZO(a)!=null&&O!=B&&i.reference[v]/2-(O<k?M:E)-p[v]/2<0,V=$?O<k?O-k:O-R:0;return{[h]:d[h]+V,data:{[h]:B,centerOffset:O-B-V,...$&&{alignmentOffset:V}},reset:$}}});async function C_e(t,e){const{placement:n,platform:r,elements:a}=t,i=await(r.isRTL==null?void 0:r.isRTL(a.floating)),o=qO(n),s=ZO(n),l=QO(n)==="y",u=["left","top"].includes(o)?-1:1,c=i&&l?-1:1,f=X9(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&typeof v=="number"&&(h=s==="end"?v*-1:v),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const T_e=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:r}=e,a=await C_e(e,t);return{x:n+a.x,y:r+a.y,data:a}}}};function hc(t){return J9(t)?(t.nodeName||"").toLowerCase():"#document"}function ki(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Oc(t){var e;return(e=(J9(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function J9(t){return t instanceof Node||t instanceof ki(t).Node}function Pl(t){return t instanceof Element||t instanceof ki(t).Element}function js(t){return t instanceof HTMLElement||t instanceof ki(t).HTMLElement}function SI(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ki(t).ShadowRoot}function Mm(t){const{overflow:e,overflowX:n,overflowY:r,display:a}=uo(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(a)}function E_e(t){return["table","td","th"].includes(hc(t))}function JO(t){const e=eA(),n=uo(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 M_e(t){let e=qp(t);for(;js(e)&&!Zx(e);){if(JO(e))return e;e=qp(e)}return null}function eA(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Zx(t){return["html","body","#document"].includes(hc(t))}function uo(t){return ki(t).getComputedStyle(t)}function Qx(t){return Pl(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qp(t){if(hc(t)==="html")return t;const e=t.assignedSlot||t.parentNode||SI(t)&&t.host||Oc(t);return SI(e)?e.host:e}function eK(t){const e=qp(t);return Zx(e)?t.ownerDocument?t.ownerDocument.body:t.body:js(e)&&Mm(e)?e:eK(e)}function TD(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=eK(t),i=a===((r=t.ownerDocument)==null?void 0:r.body),o=ki(a);return i?e.concat(o,o.visualViewport||[],Mm(a)?a:[],o.frameElement&&n?TD(o.frameElement):[]):e.concat(a,TD(a,[],n))}function tK(t){const e=uo(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const a=js(t),i=a?t.offsetWidth:n,o=a?t.offsetHeight:r,s=Bw(n)!==i||Bw(r)!==o;return s&&(n=i,r=o),{width:n,height:r,$:s}}function nK(t){return Pl(t)?t:t.contextElement}function Sp(t){const e=nK(t);if(!js(e))return dc(1);const n=e.getBoundingClientRect(),{width:r,height:a,$:i}=tK(e);let o=(i?Bw(n.width):n.width)/r,s=(i?Bw(n.height):n.height)/a;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const D_e=dc(0);function rK(t){const e=ki(t);return!eA()||!e.visualViewport?D_e:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function k_e(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==ki(t)?!1:e}function dy(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),i=nK(t);let o=dc(1);e&&(r?Pl(r)&&(o=Sp(r)):o=Sp(t));const s=k_e(i,n,r)?rK(i):dc(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=ki(i),h=r&&Pl(r)?ki(r):r;let v=d.frameElement;for(;v&&r&&h!==d;){const p=Sp(v),g=v.getBoundingClientRect(),y=uo(v),m=g.left+(v.clientLeft+parseFloat(y.paddingLeft))*p.x,S=g.top+(v.clientTop+parseFloat(y.paddingTop))*p.y;l*=p.x,u*=p.y,c*=p.x,f*=p.y,l+=m,u+=S,v=ki(v).frameElement}}return Q9({width:c,height:f,x:l,y:u})}function R_e(t){let{rect:e,offsetParent:n,strategy:r}=t;const a=js(n),i=Oc(n);if(n===i)return e;let o={scrollLeft:0,scrollTop:0},s=dc(1);const l=dc(0);if((a||!a&&r!=="fixed")&&((hc(n)!=="body"||Mm(i))&&(o=Qx(n)),js(n))){const u=dy(n);s=Sp(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 L_e(t){return Array.from(t.getClientRects())}function aK(t){return dy(Oc(t)).left+Qx(t).scrollLeft}function O_e(t){const e=Oc(t),n=Qx(t),r=t.ownerDocument.body,a=mp(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=mp(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+aK(t);const s=-n.scrollTop;return uo(r).direction==="rtl"&&(o+=mp(e.clientWidth,r.clientWidth)-a),{width:a,height:i,x:o,y:s}}function A_e(t,e){const n=ki(t),r=Oc(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=eA();(!u||u&&e==="fixed")&&(s=a.offsetLeft,l=a.offsetTop)}return{width:i,height:o,x:s,y:l}}function N_e(t,e){const n=dy(t,!0,e==="fixed"),r=n.top+t.clientTop,a=n.left+t.clientLeft,i=js(t)?Sp(t):dc(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 bI(t,e,n){let r;if(e==="viewport")r=A_e(t,n);else if(e==="document")r=O_e(Oc(t));else if(Pl(e))r=N_e(e,n);else{const a=rK(t);r={...e,x:e.x-a.x,y:e.y-a.y}}return Q9(r)}function iK(t,e){const n=qp(t);return n===e||!Pl(n)||Zx(n)?!1:uo(n).position==="fixed"||iK(n,e)}function V_e(t,e){const n=e.get(t);if(n)return n;let r=TD(t,[],!1).filter(s=>Pl(s)&&hc(s)!=="body"),a=null;const i=uo(t).position==="fixed";let o=i?qp(t):t;for(;Pl(o)&&!Zx(o);){const s=uo(o),l=JO(o);!l&&s.position==="fixed"&&(a=null),(i?!l&&!a:!l&&s.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Mm(o)&&!l&&iK(t,o))?r=r.filter(c=>c!==o):a=s,o=qp(o)}return e.set(t,r),r}function B_e(t){let{element:e,boundary:n,rootBoundary:r,strategy:a}=t;const o=[...n==="clippingAncestors"?V_e(e,this._c):[].concat(n),r],s=o[0],l=o.reduce((u,c)=>{const f=bI(e,c,a);return u.top=mp(f.top,u.top),u.right=fy(f.right,u.right),u.bottom=fy(f.bottom,u.bottom),u.left=mp(f.left,u.left),u},bI(e,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function $_e(t){return tK(t)}function I_e(t,e,n){const r=js(e),a=Oc(e),i=n==="fixed",o=dy(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const l=dc(0);if(r||!r&&!i)if((hc(e)!=="body"||Mm(a))&&(s=Qx(e)),r){const u=dy(e,!0,i,e);l.x=u.x+e.clientLeft,l.y=u.y+e.clientTop}else a&&(l.x=aK(a));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function wI(t,e){return!js(t)||uo(t).position==="fixed"?null:e?e(t):t.offsetParent}function oK(t,e){const n=ki(t);if(!js(t))return n;let r=wI(t,e);for(;r&&E_e(r)&&uo(r).position==="static";)r=wI(r,e);return r&&(hc(r)==="html"||hc(r)==="body"&&uo(r).position==="static"&&!JO(r))?n:r||M_e(t)||n}const P_e=async function(t){let{reference:e,floating:n,strategy:r}=t;const a=this.getOffsetParent||oK,i=this.getDimensions;return{reference:I_e(e,await a(n),r),floating:{x:0,y:0,...await i(n)}}};function F_e(t){return uo(t).direction==="rtl"}const z_e={convertOffsetParentRelativeRectToViewportRelativeRect:R_e,getDocumentElement:Oc,getClippingRect:B_e,getOffsetParent:oK,getElementRects:P_e,getClientRects:L_e,getDimensions:$_e,getScale:Sp,isElement:Pl,isRTL:F_e},G_e=(t,e,n)=>{const r=new Map,a={platform:z_e,...n},i={...a.platform,_c:r};return __e(t,e,{...a,platform:i})};Ne({});const U_e=t=>{if(!Ht)return;if(!t)return t;const e=Ci(t);return e||(en(t)?e:t)},H_e=({middleware:t,placement:e,strategy:n})=>{const r=G(),a=G(),i=G(),o=G(),s=G({}),l={x:i,y:o,placement:e,strategy:n,middlewareData:s},u=async()=>{if(!Ht)return;const c=U_e(r),f=Ci(a);if(!c||!f)return;const d=await G_e(c,f,{placement:w(e),strategy:w(n),middleware:w(t)});ly(l).forEach(h=>{l[h].value=d[h]})};return St(()=>{Di(()=>{u()})}),{...l,update:u,referenceRef:r,contentRef:a}},W_e=({arrowRef:t,padding:e})=>({name:"arrow",options:{element:t,padding:e},fn(n){const r=w(t);return r?x_e({element:r,padding:e}).fn(n):{}}});function K_e(t){const e=G();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 j_e=(t,e,n)=>yp(t.subTree).filter(i=>{var o;return Hn(i)&&((o=i.type)==null?void 0:o.name)===e&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),tA=(t,e)=>{const n={},r=Cn([]);return{children:r,addChild:o=>{n[o.uid]=o,r.value=j_e(t,e,n)},removeChild:o=>{delete n[o],r.value=r.value.filter(s=>s.uid!==o)}}},sa=ss({type:String,values:tl,required:!1}),sK=Symbol("size"),Y_e=()=>{const t=Ye(sK,{});return A(()=>w(t.size)||"")};function X_e(t,{afterFocus:e,afterBlur:n}={}){const r=_t(),{emit:a}=r,i=Cn(),o=G(!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 Me(i,c=>{c&&c.setAttribute("tabindex","-1")}),$n(i,"click",u),{wrapperRef:i,isFocused:o,handleFocus:s,handleBlur:l}}const lK=Symbol(),$w=G();function Jx(t,e=void 0){const n=_t()?Ye(lK,$w):$w;return t?A(()=>{var r,a;return(a=(r=n.value)==null?void 0:r[t])!=null?a:e}):n}function eC(t,e){const n=Jx(),r=ke(t,A(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||g0})),a=jt(A(()=>{var s;return(s=n.value)==null?void 0:s.locale})),i=Tv(A(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||j9})),o=A(()=>{var s;return w(e)||((s=n.value)==null?void 0:s.size)||""});return nA(A(()=>w(n)||{})),{ns:r,locale:a,zIndex:i,size:o}}const nA=(t,e,n=!1)=>{var r;const a=!!_t(),i=a?Jx():void 0,o=(r=e==null?void 0:e.provide)!=null?r:a?At:void 0;if(!o)return;const s=A(()=>{const l=w(t);return i!=null&&i.value?q_e(i.value,l):l});return o(lK,s),o(E9,A(()=>s.value.locale)),o(M9,A(()=>s.value.namespace)),o(Y9,A(()=>s.value.zIndex)),o(sK,{size:A(()=>s.value.size||"")}),(n||!$w.value)&&($w.value=s.value),s},q_e=(t,e)=>{var n;const r=[...new Set([...ly(t),...ly(e)])],a={};for(const i of r)a[i]=(n=e[i])!=null?n:t[i];return a},Z_e=Ne({a11y:{type:Boolean,default:!0},locale:{type:ge(Object)},size:sa,button:{type:ge(Object)},experimentalFeatures:{type:ge(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:ge(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),ED={},Q_e=ae({name:"ElConfigProvider",props:Z_e,setup(t,{slots:e}){Me(()=>t.message,r=>{Object.assign(ED,r??{})},{immediate:!0,deep:!0});const n=nA(t);return()=>Ce(e,"default",{config:n==null?void 0:n.value})}}),J_e=Tt(Q_e),exe="2.3.14",txe=(t=[])=>({version:exe,install:(n,r)=>{n[nI]||(n[nI]=!0,t.forEach(a=>n.use(a)),r&&nA(r,n,!0))}}),nxe=Ne({zIndex:{type:ge([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),rxe={scroll:({scrollTop:t,fixed:e})=>ut(t)&&Sr(e),[Nn]:t=>Sr(t)};var Ae=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n};const uK="ElAffix",axe=ae({name:uK}),ixe=ae({...axe,props:nxe,emits:rxe,setup(t,{expose:e,emit:n}){const r=t,a=ke("affix"),i=Cn(),o=Cn(),s=Cn(),{height:l}=sde(),{height:u,width:c,top:f,bottom:d,update:h}=S$(o,{windowScroll:!1}),v=S$(i),p=G(!1),g=G(0),y=G(0),m=A(()=>({height:p.value?`${u.value}px`:"",width:p.value?`${c.value}px`:""})),S=A(()=>{if(!p.value)return{};const _=r.offset?rr(r.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:r.position==="top"?_:"",bottom:r.position==="bottom"?_:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:r.zIndex}}),b=()=>{if(s.value)if(g.value=s.value instanceof Window?document.documentElement.scrollTop:s.value.scrollTop||0,r.position==="top")if(r.target){const _=v.bottom.value-r.offset-u.value;p.value=r.offset>f.value&&v.bottom.value>0,y.value=_<0?_:0}else p.value=r.offset>f.value;else if(r.target){const _=l.value-v.top.value-r.offset-u.value;p.value=l.value-r.offset<d.value&&l.value>v.top.value,y.value=_<0?-_:0}else p.value=l.value-r.offset<d.value},x=()=>{h(),n("scroll",{scrollTop:g.value,fixed:p.value})};return Me(p,_=>n("change",_)),St(()=>{var _;r.target?(i.value=(_=document.querySelector(r.target))!=null?_:void 0,i.value||wr(uK,`Target is not existed: ${r.target}`)):i.value=document.documentElement,s.value=AO(o.value,!0),h()}),$n(s,"scroll",x),Di(b),e({update:b,updateRoot:h}),(_,C)=>(I(),X("div",{ref_key:"root",ref:o,class:z(w(a).b()),style:et(w(m))},[P("div",{class:z({[w(a).m("fixed")]:p.value}),style:et(w(S))},[Ce(_.$slots,"default")],6)],6))}});var oxe=Ae(ixe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const sxe=Tt(oxe),lxe=Ne({size:{type:ge([Number,String])},color:{type:String}}),uxe=ae({name:"ElIcon",inheritAttrs:!1}),cxe=ae({...uxe,props:lxe,setup(t){const e=t,n=ke("icon"),r=A(()=>{const{size:a,color:i}=e;return!a&&!i?{}:{fontSize:kr(a)?void 0:rr(a),"--color":i}});return(a,i)=>(I(),X("i",Mt({class:w(n).b(),style:w(r)},a.$attrs),[Ce(a.$slots,"default")],16))}});var fxe=Ae(cxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const qe=Tt(fxe),dxe=["light","dark"],hxe=Ne({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:ly(fc),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:dxe,default:"light"}}),pxe={close:t=>t instanceof MouseEvent},vxe=ae({name:"ElAlert"}),gxe=ae({...vxe,props:hxe,emits:pxe,setup(t,{emit:e}){const n=t,{Close:r}=$O,a=fa(),i=ke("alert"),o=G(!0),s=A(()=>fc[n.type]),l=A(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!a.default}]),u=A(()=>({[i.is("bold")]:n.description||a.default})),c=f=>{o.value=!1,e("close",f)};return(f,d)=>(I(),ve(or,{name:w(i).b("fade"),persisted:""},{default:q(()=>[ct(P("div",{class:z([w(i).b(),w(i).m(f.type),w(i).is("center",f.center),w(i).is(f.effect)]),role:"alert"},[f.showIcon&&w(s)?(I(),ve(w(qe),{key:0,class:z(w(l))},{default:q(()=>[(I(),ve(Dt(w(s))))]),_:1},8,["class"])):de("v-if",!0),P("div",{class:z(w(i).e("content"))},[f.title||f.$slots.title?(I(),X("span",{key:0,class:z([w(i).e("title"),w(u)])},[Ce(f.$slots,"title",{},()=>[dt(Le(f.title),1)])],2)):de("v-if",!0),f.$slots.default||f.description?(I(),X("p",{key:1,class:z(w(i).e("description"))},[Ce(f.$slots,"default",{},()=>[dt(Le(f.description),1)])],2)):de("v-if",!0),f.closable?(I(),X(Qe,{key:2},[f.closeText?(I(),X("div",{key:0,class:z([w(i).e("close-btn"),w(i).is("customed")]),onClick:c},Le(f.closeText),3)):(I(),ve(w(qe),{key:1,class:z(w(i).e("close-btn")),onClick:c},{default:q(()=>[U(w(r))]),_:1},8,["class"]))],64)):de("v-if",!0)],2)],2),[[Nt,o.value]])]),_:3},8,["name"]))}});var yxe=Ae(gxe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const mxe=Tt(yxe),Xd=Symbol("formContextKey"),Ys=Symbol("formItemContextKey"),_r=(t,e={})=>{const n=G(void 0),r=e.prop?n:R9("size"),a=e.global?n:Y_e(),i=e.form?{size:void 0}:Ye(Xd,void 0),o=e.formItem?{size:void 0}:Ye(Ys,void 0);return A(()=>r.value||w(t)||(o==null?void 0:o.size)||(i==null?void 0:i.size)||a.value||"")},mi=t=>{const e=R9("disabled"),n=Ye(Xd,void 0);return A(()=>e.value||w(t)||(n==null?void 0:n.disabled)||!1)},Qa=()=>{const t=Ye(Xd,void 0),e=Ye(Ys,void 0);return{form:t,formItem:e}},Ac=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=G(!1)),r||(r=G(!1));const a=G();let i;const o=A(()=>{var s;return!!(!t.label&&e&&e.inputIds&&((s=e.inputIds)==null?void 0:s.length)<=1)});return St(()=>{i=Me([Kn(t,"id"),n],([s,l])=>{const u=s??(l?void 0:lo().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})}),Mc(()=>{i&&i(),e!=null&&e.removeInputId&&a.value&&e.removeInputId(a.value)}),{isLabeledByFormItem:o,inputId:a}},Sxe=Ne({size:{type:String,values:tl},disabled:Boolean}),bxe=Ne({...Sxe,model:Object,rules:{type:ge(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]}}),wxe={validate:(t,e,n)=>(Ke(t)||vt(t))&&Sr(e)&&vt(n)};function _xe(){const t=G([]),e=A(()=>{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 w1=(t,e)=>{const n=Od(e);return n.length>0?t.filter(r=>r.prop&&n.includes(r.prop)):t},xxe="ElForm",Cxe=ae({name:xxe}),Txe=ae({...Cxe,props:bxe,emits:wxe,setup(t,{expose:e,emit:n}){const r=t,a=[],i=_r(),o=ke("form"),s=A(()=>{const{labelPosition:m,inline:S}=r;return[o.b(),o.m(i.value||"default"),{[o.m(`label-${m}`)]:m,[o.m("inline")]:S}]}),l=m=>{a.push(m)},u=m=>{m.prop&&a.splice(a.indexOf(m),1)},c=(m=[])=>{r.model&&w1(a,m).forEach(S=>S.resetField())},f=(m=[])=>{w1(a,m).forEach(S=>S.clearValidate())},d=A(()=>!!r.model),h=m=>{if(a.length===0)return[];const S=w1(a,m);return S.length?S:[]},v=async m=>g(void 0,m),p=async(m=[])=>{if(!d.value)return!1;const S=h(m);if(S.length===0)return!0;let b={};for(const x of S)try{await x.validate("")}catch(_){b={...b,..._}}return Object.keys(b).length===0?!0:Promise.reject(b)},g=async(m=[],S)=>{const b=!ft(S);try{const x=await p(m);return x===!0&&(S==null||S(x)),x}catch(x){if(x instanceof Error)throw x;const _=x;return r.scrollToError&&y(Object.keys(_)[0]),S==null||S(!1,_),b&&Promise.reject(_)}},y=m=>{var S;const b=w1(a,m)[0];b&&((S=b.$el)==null||S.scrollIntoView(r.scrollIntoViewOptions))};return Me(()=>r.rules,()=>{r.validateOnRuleChange&&v().catch(m=>void 0)},{deep:!0}),At(Xd,Zt({...$r(r),emit:n,resetFields:c,clearValidate:f,validateField:g,addField:l,removeField:u,..._xe()})),e({validate:v,validateField:g,resetFields:c,clearValidate:f,scrollToField:y}),(m,S)=>(I(),X("form",{class:z(w(s))},[Ce(m.$slots,"default")],2))}});var Exe=Ae(Txe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function qf(){return qf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qf.apply(this,arguments)}function Mxe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,hy(t,e)}function MD(t){return MD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},MD(t)}function hy(t,e){return hy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},hy(t,e)}function Dxe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Db(t,e,n){return Dxe()?Db=Reflect.construct.bind():Db=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),u=new l;return o&&hy(u,o.prototype),u},Db.apply(null,arguments)}function kxe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function DD(t){var e=typeof Map=="function"?new Map:void 0;return DD=function(r){if(r===null||!kxe(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 Db(r,arguments,MD(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),hy(a,r)},DD(t)}var Rxe=/%[sdj%]/g,Lxe=function(){};typeof process<"u"&&process.env;function kD(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 Ti(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var a=0,i=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var o=t.replace(Rxe,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return s}});return o}return t}function Oxe(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Ir(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||Oxe(e)&&typeof t=="string"&&!t)}function Axe(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 _I(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<a?e(t[s],i):n([])}i([])}function Nxe(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n]||[])}),e}var xI=function(t){Mxe(e,t);function e(n,r){var a;return a=t.call(this,"Async Validation Error")||this,a.errors=n,a.fields=r,a}return e}(DD(Error));function Vxe(t,e,n,r,a){if(e.first){var i=new Promise(function(d,h){var v=function(y){return r(y),y.length?h(new xI(y,kD(y))):d(a)},p=Nxe(t);_I(p,n,v)});return i.catch(function(d){return d}),i}var o=e.firstFields===!0?Object.keys(t):e.firstFields||[],s=Object.keys(t),l=s.length,u=0,c=[],f=new Promise(function(d,h){var v=function(g){if(c.push.apply(c,g),u++,u===l)return r(c),c.length?h(new xI(c,kD(c))):d(a)};s.length||(r(c),d(a)),s.forEach(function(p){var g=t[p];o.indexOf(p)!==-1?_I(g,n,v):Axe(g,n,v)})});return f.catch(function(d){return d}),f}function Bxe(t){return!!(t&&t.message!==void 0)}function $xe(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function CI(t,e){return function(n){var r;return t.fullFields?r=$xe(e,t.fullFields):r=e[n.field||t.fullField],Bxe(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function TI(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];typeof r=="object"&&typeof t[n]=="object"?t[n]=qf({},t[n],r):t[n]=r}}return t}var cK=function(e,n,r,a,i,o){e.required&&(!r.hasOwnProperty(e.field)||Ir(n,o||e.type))&&a.push(Ti(i.messages.required,e.fullField))},Ixe=function(e,n,r,a,i){(/^\s+$/.test(n)||n==="")&&a.push(Ti(i.messages.whitespace,e.fullField))},_1,Pxe=function(){if(_1)return _1;var t="[a-fA-F\\d:]",e=function(b){return b&&b.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",a=(`
- (?:
- (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
- (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
- (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
- (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
- (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
- (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
- (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
- (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
- )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
- `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+a+"$)"),o=new RegExp("^"+n+"$"),s=new RegExp("^"+a+"$"),l=function(b){return b&&b.exact?i:new RegExp("(?:"+e(b)+n+e(b)+")|(?:"+e(b)+a+e(b)+")","g")};l.v4=function(S){return S&&S.exact?o:new RegExp(""+e(S)+n+e(S),"g")},l.v6=function(S){return S&&S.exact?s:new RegExp(""+e(S)+a+e(S),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',m="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+v+p+")"+g+y;return _1=new RegExp("(?:^"+m+"$)","i"),_1},EI={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Wg={integer:function(e){return Wg.number(e)&&parseInt(e,10)===e},float:function(e){return Wg.number(e)&&!Wg.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"&&!Wg.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(EI.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(Pxe())},hex:function(e){return typeof e=="string"&&!!e.match(EI.hex)}},Fxe=function(e,n,r,a,i){if(e.required&&n===void 0){cK(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?Wg[s](n)||a.push(Ti(i.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&a.push(Ti(i.messages.types[s],e.fullField,e.type))},zxe=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",v=Array.isArray(n);if(d?f="number":h?f="string":v&&(f="array"),!f)return!1;v&&(c=n.length),h&&(c=n.replace(u,"_").length),o?c!==e.len&&a.push(Ti(i.messages[f].len,e.fullField,e.len)):s&&!l&&c<e.min?a.push(Ti(i.messages[f].min,e.fullField,e.min)):l&&!s&&c>e.max?a.push(Ti(i.messages[f].max,e.fullField,e.max)):s&&l&&(c<e.min||c>e.max)&&a.push(Ti(i.messages[f].range,e.fullField,e.min,e.max))},sh="enum",Gxe=function(e,n,r,a,i){e[sh]=Array.isArray(e[sh])?e[sh]:[],e[sh].indexOf(n)===-1&&a.push(Ti(i.messages[sh],e.fullField,e[sh].join(", ")))},Uxe=function(e,n,r,a,i){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||a.push(Ti(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(Ti(i.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},yn={required:cK,whitespace:Ixe,type:Fxe,range:zxe,enum:Gxe,pattern:Uxe},Hxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Ir(n,"string")&&!e.required)return r();yn.required(e,n,a,o,i,"string"),Ir(n,"string")||(yn.type(e,n,a,o,i),yn.range(e,n,a,o,i),yn.pattern(e,n,a,o,i),e.whitespace===!0&&yn.whitespace(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(Ir(n)&&!e.required)return r();yn.required(e,n,a,o,i),n!==void 0&&yn.type(e,n,a,o,i)}r(o)},Kxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),Ir(n)&&!e.required)return r();yn.required(e,n,a,o,i),n!==void 0&&(yn.type(e,n,a,o,i),yn.range(e,n,a,o,i))}r(o)},jxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Ir(n)&&!e.required)return r();yn.required(e,n,a,o,i),n!==void 0&&yn.type(e,n,a,o,i)}r(o)},Yxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Ir(n)&&!e.required)return r();yn.required(e,n,a,o,i),Ir(n)||yn.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(Ir(n)&&!e.required)return r();yn.required(e,n,a,o,i),n!==void 0&&(yn.type(e,n,a,o,i),yn.range(e,n,a,o,i))}r(o)},qxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Ir(n)&&!e.required)return r();yn.required(e,n,a,o,i),n!==void 0&&(yn.type(e,n,a,o,i),yn.range(e,n,a,o,i))}r(o)},Zxe=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();yn.required(e,n,a,o,i,"array"),n!=null&&(yn.type(e,n,a,o,i),yn.range(e,n,a,o,i))}r(o)},Qxe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Ir(n)&&!e.required)return r();yn.required(e,n,a,o,i),n!==void 0&&yn.type(e,n,a,o,i)}r(o)},Jxe="enum",eCe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Ir(n)&&!e.required)return r();yn.required(e,n,a,o,i),n!==void 0&&yn[Jxe](e,n,a,o,i)}r(o)},tCe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Ir(n,"string")&&!e.required)return r();yn.required(e,n,a,o,i),Ir(n,"string")||yn.pattern(e,n,a,o,i)}r(o)},nCe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Ir(n,"date")&&!e.required)return r();if(yn.required(e,n,a,o,i),!Ir(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),yn.type(e,l,a,o,i),l&&yn.range(e,l.getTime(),a,o,i)}}r(o)},rCe=function(e,n,r,a,i){var o=[],s=Array.isArray(n)?"array":typeof n;yn.required(e,n,a,o,i,s),r(o)},DT=function(e,n,r,a,i){var o=e.type,s=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(Ir(n,o)&&!e.required)return r();yn.required(e,n,a,s,i,o),Ir(n,o)||yn.type(e,n,a,s,i)}r(s)},aCe=function(e,n,r,a,i){var o=[],s=e.required||!e.required&&a.hasOwnProperty(e.field);if(s){if(Ir(n)&&!e.required)return r();yn.required(e,n,a,o,i)}r(o)},S0={string:Hxe,method:Wxe,number:Kxe,boolean:jxe,regexp:Yxe,integer:Xxe,float:qxe,array:Zxe,object:Qxe,enum:eCe,pattern:tCe,date:nCe,url:DT,hex:DT,email:DT,required:rCe,any:aCe};function RD(){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 LD=RD(),Dm=function(){function t(n){this.rules=null,this._messages=LD,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=TI(RD(),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(p){var g=[],y={};function m(b){if(Array.isArray(b)){var x;g=(x=g).concat.apply(x,b)}else g.push(b)}for(var S=0;S<p.length;S++)m(p[S]);g.length?(y=kD(g),u(g,y)):u(null,s)}if(l.messages){var f=this.messages();f===LD&&(f=RD()),TI(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(p){var g=o.rules[p],y=s[p];g.forEach(function(m){var S=m;typeof S.transform=="function"&&(s===r&&(s=qf({},s)),y=s[p]=S.transform(y)),typeof S=="function"?S={validator:S}:S=qf({},S),S.validator=o.getValidationMethod(S),S.validator&&(S.field=p,S.fullField=S.fullField||p,S.type=o.getType(S),d[p]=d[p]||[],d[p].push({rule:S,value:y,source:s,field:p}))})});var v={};return Vxe(d,l,function(p,g){var y=p.rule,m=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");m=m&&(y.required||!y.required&&p.value),y.field=p.field;function S(_,C){return qf({},C,{fullField:y.fullField+"."+_,fullFields:y.fullFields?[].concat(y.fullFields,[_]):[_]})}function b(_){_===void 0&&(_=[]);var C=Array.isArray(_)?_:[_];!l.suppressWarning&&C.length&&t.warning("async-validator:",C),C.length&&y.message!==void 0&&(C=[].concat(y.message));var T=C.map(CI(y,s));if(l.first&&T.length)return v[y.field]=1,g(T);if(!m)g(T);else{if(y.required&&!p.value)return y.message!==void 0?T=[].concat(y.message).map(CI(y,s)):l.error&&(T=[l.error(y,Ti(l.messages.required,y.field))]),g(T);var D={};y.defaultField&&Object.keys(p.value).map(function(k){D[k]=y.defaultField}),D=qf({},D,p.rule.fields);var M={};Object.keys(D).forEach(function(k){var R=D[k],O=Array.isArray(R)?R:[R];M[k]=O.map(S.bind(null,k))});var E=new t(M);E.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),E.validate(p.value,p.rule.options||l,function(k){var R=[];T&&T.length&&R.push.apply(R,T),k&&k.length&&R.push.apply(R,k),g(R.length?R:null)})}}var x;if(y.asyncValidator)x=y.asyncValidator(y,p.value,b,p.source,l);else if(y.validator){try{x=y.validator(y,p.value,b,p.source,l)}catch(_){console.error==null||console.error(_),l.suppressValidatorError||setTimeout(function(){throw _},0),b(_.message)}x===!0?b():x===!1?b(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):x instanceof Array?b(x):x instanceof Error&&b(x.message)}x&&x.then&&x.then(function(){return b()},function(_){return b(_)})},function(p){c(p)},s)},e.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!S0.hasOwnProperty(r.type))throw new Error(Ti("Unknown rule type %s",r.type));return r.type||"string"},e.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var a=Object.keys(r),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?S0.required:S0[this.getType(r)]||void 0},t}();Dm.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");S0[e]=n};Dm.warning=Lxe;Dm.messages=LD;Dm.validators=S0;const iCe=["","error","validating","success"],oCe=Ne({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:ge([String,Array])},required:{type:Boolean,default:void 0},rules:{type:ge([Object,Array])},error:String,validateStatus:{type:String,values:iCe},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:tl}}),MI="ElLabelWrap";var sCe=ae({name:MI,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(t,{slots:e}){const n=Ye(Xd,void 0),r=Ye(Ys);r||wr(MI,"usage: <el-form-item><label-wrap /></el-form-item>");const a=ke("form"),i=G(),o=G(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")=>{Ze(()=>{e.default&&t.isAutoWidth&&(c==="update"?o.value=s():c==="remove"&&(n==null||n.deregisterLabelWidth(o.value)))})},u=()=>l("update");return St(()=>{u()}),Pn(()=>{l("remove")}),ql(()=>u()),Me(o,(c,f)=>{t.updateAll&&(n==null||n.registerLabelWidth(c,f))}),xa(A(()=>{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,v=r==null?void 0:r.hasLabel,p={};if(v&&h&&h!=="auto"){const g=Math.max(0,Number.parseInt(h,10)-o.value),y=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(p[y]=`${g}px`)}return U("div",{ref:i,class:[a.be("item","label-wrap")],style:p},[(c=e.default)==null?void 0:c.call(e)])}else return U(Qe,{ref:i},[(f=e.default)==null?void 0:f.call(e)])}}});const lCe=["role","aria-labelledby"],uCe=ae({name:"ElFormItem"}),cCe=ae({...uCe,props:oCe,setup(t,{expose:e}){const n=t,r=fa(),a=Ye(Xd,void 0),i=Ye(Ys,void 0),o=_r(void 0,{formItem:!1}),s=ke("form-item"),l=lo().value,u=G([]),c=G(""),f=Wfe(c,100),d=G(""),h=G();let v,p=!1;const g=A(()=>{if((a==null?void 0:a.labelPosition)==="top")return{};const J=rr(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return J?{width:J}:{}}),y=A(()=>{if((a==null?void 0:a.labelPosition)==="top"||a!=null&&a.inline)return{};if(!n.label&&!n.labelWidth&&D)return{};const J=rr(n.labelWidth||(a==null?void 0:a.labelWidth)||"");return!n.label&&!r.label?{marginLeft:J}:{}}),m=A(()=>[s.b(),s.m(o.value),s.is("error",c.value==="error"),s.is("validating",c.value==="validating"),s.is("success",c.value==="success"),s.is("required",O.value||n.required),s.is("no-asterisk",a==null?void 0:a.hideRequiredAsterisk),(a==null?void 0:a.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:a==null?void 0:a.statusIcon}]),S=A(()=>Sr(n.inlineMessage)?n.inlineMessage:(a==null?void 0:a.inlineMessage)||!1),b=A(()=>[s.e("error"),{[s.em("error","inline")]:S.value}]),x=A(()=>n.prop?vt(n.prop)?n.prop:n.prop.join("."):""),_=A(()=>!!(n.label||r.label)),C=A(()=>n.for||u.value.length===1?u.value[0]:void 0),T=A(()=>!C.value&&_.value),D=!!i,M=A(()=>{const J=a==null?void 0:a.model;if(!(!J||!n.prop))return Eb(J,n.prop).value}),E=A(()=>{const{required:J}=n,Z=[];n.rules&&Z.push(...Od(n.rules));const ee=a==null?void 0:a.rules;if(ee&&n.prop){const ce=Eb(ee,n.prop).value;ce&&Z.push(...Od(ce))}if(J!==void 0){const ce=Z.map((ue,Y)=>[ue,Y]).filter(([ue])=>Object.keys(ue).includes("required"));if(ce.length>0)for(const[ue,Y]of ce)ue.required!==J&&(Z[Y]={...ue,required:J});else Z.push({required:J})}return Z}),k=A(()=>E.value.length>0),R=J=>E.value.filter(ee=>!ee.trigger||!J?!0:Array.isArray(ee.trigger)?ee.trigger.includes(J):ee.trigger===J).map(({trigger:ee,...ce})=>ce),O=A(()=>E.value.some(J=>J.required)),B=A(()=>{var J;return f.value==="error"&&n.showMessage&&((J=a==null?void 0:a.showMessage)!=null?J:!0)}),$=A(()=>`${n.label||""}${(a==null?void 0:a.labelSuffix)||""}`),V=J=>{c.value=J},F=J=>{var Z,ee;const{errors:ce,fields:ue}=J;(!ce||!ue)&&console.error(J),V("error"),d.value=ce?(ee=(Z=ce==null?void 0:ce[0])==null?void 0:Z.message)!=null?ee:`${n.prop} is required`:"",a==null||a.emit("validate",n.prop,!1,d.value)},L=()=>{V("success"),a==null||a.emit("validate",n.prop,!0,"")},N=async J=>{const Z=x.value;return new Dm({[Z]:J}).validate({[Z]:M.value},{firstFields:!0}).then(()=>(L(),!0)).catch(ce=>(F(ce),Promise.reject(ce)))},H=async(J,Z)=>{if(p||!n.prop)return!1;const ee=ft(Z);if(!k.value)return Z==null||Z(!1),!1;const ce=R(J);return ce.length===0?(Z==null||Z(!0),!0):(V("validating"),N(ce).then(()=>(Z==null||Z(!0),!0)).catch(ue=>{const{fields:Y}=ue;return Z==null||Z(!1,Y),ee?!1:Promise.reject(Y)}))},K=()=>{V(""),d.value="",p=!1},Q=async()=>{const J=a==null?void 0:a.model;if(!J||!n.prop)return;const Z=Eb(J,n.prop);p=!0,Z.value=q$(v),await Ze(),K(),p=!1},ie=J=>{u.value.includes(J)||u.value.push(J)},be=J=>{u.value=u.value.filter(Z=>Z!==J)};Me(()=>n.error,J=>{d.value=J||"",V(J?"error":"")},{immediate:!0}),Me(()=>n.validateStatus,J=>V(J||""));const le=Zt({...$r(n),$el:h,size:o,validateState:c,labelId:l,inputIds:u,isGroup:T,hasLabel:_,addInputId:ie,removeInputId:be,resetField:Q,clearValidate:K,validate:H});return At(Ys,le),St(()=>{n.prop&&(a==null||a.addField(le),v=q$(M.value))}),Pn(()=>{a==null||a.removeField(le)}),e({size:o,validateMessage:d,validateState:c,validate:H,clearValidate:K,resetField:Q}),(J,Z)=>{var ee;return I(),X("div",{ref_key:"formItemRef",ref:h,class:z(w(m)),role:w(T)?"group":void 0,"aria-labelledby":w(T)?w(l):void 0},[U(w(sCe),{"is-auto-width":w(g).width==="auto","update-all":((ee=w(a))==null?void 0:ee.labelWidth)==="auto"},{default:q(()=>[w(_)?(I(),ve(Dt(w(C)?"label":"div"),{key:0,id:w(l),for:w(C),class:z(w(s).e("label")),style:et(w(g))},{default:q(()=>[Ce(J.$slots,"label",{label:w($)},()=>[dt(Le(w($)),1)])]),_:3},8,["id","for","class","style"])):de("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),P("div",{class:z(w(s).e("content")),style:et(w(y))},[Ce(J.$slots,"default"),U(ZW,{name:`${w(s).namespace.value}-zoom-in-top`},{default:q(()=>[w(B)?Ce(J.$slots,"error",{key:0,error:d.value},()=>[P("div",{class:z(w(b))},Le(d.value),3)]):de("v-if",!0)]),_:3},8,["name"])],6)],10,lCe)}}});var fK=Ae(cCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const fCe=Tt(Exe,{FormItem:fK}),dCe=Qn(fK);let So;const hCe=`
- height:0 !important;
- visibility:hidden !important;
- ${k7()?"":"overflow:hidden !important;"}
- position:absolute !important;
- z-index:-1000 !important;
- top:0 !important;
- right:0 !important;
- `,pCe=["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 vCe(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:pCe.map(o=>`${o}:${e.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:a,boxSizing:n}}function DI(t,e=1,n){var r;So||(So=document.createElement("textarea"),document.body.appendChild(So));const{paddingSize:a,borderSize:i,boxSizing:o,contextStyle:s}=vCe(t);So.setAttribute("style",`${s};${hCe}`),So.value=t.value||t.placeholder||"";let l=So.scrollHeight;const u={};o==="border-box"?l=l+i:o==="content-box"&&(l=l-a),So.value="";const c=So.scrollHeight-a;if(ut(e)){let f=c*e;o==="border-box"&&(f=f+a+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(ut(n)){let f=c*n;o==="border-box"&&(f=f+a+i),l=Math.min(f,l)}return u.height=`${l}px`,(r=So.parentNode)==null||r.removeChild(So),So=void 0,u}const gCe=Ne({id:{type:String,default:void 0},size:sa,disabled:Boolean,modelValue:{type:ge([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ge([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:Tn},prefixIcon:{type:Tn},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:ge([Object,Array,String]),default:()=>Gn({})},autofocus:{type:Boolean,default:!1}}),yCe={[Et]:t=>vt(t),input:t=>vt(t),change:t=>vt(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},mCe=["role"],SCe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],bCe=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],wCe=ae({name:"ElInput",inheritAttrs:!1}),_Ce=ae({...wCe,props:gCe,emits:yCe,setup(t,{expose:e,emit:n}){const r=t,a=Hd(),i=fa(),o=A(()=>{const De={};return r.containerRole==="combobox"&&(De["aria-haspopup"]=a["aria-haspopup"],De["aria-owns"]=a["aria-owns"],De["aria-expanded"]=a["aria-expanded"]),De}),s=A(()=>[r.type==="textarea"?g.b():p.b(),p.m(h.value),p.is("disabled",v.value),p.is("exceed",ie.value),{[p.b("group")]:i.prepend||i.append,[p.bm("group","append")]:i.append,[p.bm("group","prepend")]:i.prepend,[p.m("prefix")]:i.prefix||r.prefixIcon,[p.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[p.bm("suffix","password-clear")]:N.value&&H.value},a.class]),l=A(()=>[p.e("wrapper"),p.is("focus",M.value)]),u=PO({excludeKeys:A(()=>Object.keys(o.value))}),{form:c,formItem:f}=Qa(),{inputId:d}=Ac(r,{formItemContext:f}),h=_r(),v=mi(),p=ke("input"),g=ke("textarea"),y=Cn(),m=Cn(),S=G(!1),b=G(!1),x=G(!1),_=G(),C=Cn(r.inputStyle),T=A(()=>y.value||m.value),{wrapperRef:D,isFocused:M,handleFocus:E,handleBlur:k}=X_e(T,{afterBlur(){var De;r.validateEvent&&((De=f==null?void 0:f.validate)==null||De.call(f,"blur").catch(Fe=>void 0))}}),R=A(()=>{var De;return(De=c==null?void 0:c.statusIcon)!=null?De:!1}),O=A(()=>(f==null?void 0:f.validateState)||""),B=A(()=>O.value&&IO[O.value]),$=A(()=>x.value?Ebe:O1e),V=A(()=>[a.style,r.inputStyle]),F=A(()=>[r.inputStyle,C.value,{resize:r.resize}]),L=A(()=>mr(r.modelValue)?"":String(r.modelValue)),N=A(()=>r.clearable&&!v.value&&!r.readonly&&!!L.value&&(M.value||S.value)),H=A(()=>r.showPassword&&!v.value&&!r.readonly&&!!L.value&&(!!L.value||M.value)),K=A(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!v.value&&!r.readonly&&!r.showPassword),Q=A(()=>L.value.length),ie=A(()=>!!K.value&&Q.value>Number(u.value.maxlength)),be=A(()=>!!i.suffix||!!r.suffixIcon||N.value||r.showPassword||K.value||!!O.value&&R.value),[le,J]=K_e(y);xa(m,De=>{if(ce(),!K.value||r.resize!=="both")return;const Fe=De[0],{width:at}=Fe.contentRect;_.value={right:`calc(100% - ${at+15+6}px)`}});const Z=()=>{const{type:De,autosize:Fe}=r;if(!(!Ht||De!=="textarea"||!m.value))if(Fe){const at=Lt(Fe)?Fe.minRows:void 0,yt=Lt(Fe)?Fe.maxRows:void 0,Be=DI(m.value,at,yt);C.value={overflowY:"hidden",...Be},Ze(()=>{m.value.offsetHeight,C.value=Be})}else C.value={minHeight:DI(m.value).minHeight}},ce=(De=>{let Fe=!1;return()=>{var at;if(Fe||!r.autosize)return;((at=m.value)==null?void 0:at.offsetParent)===null||(De(),Fe=!0)}})(Z),ue=()=>{const De=T.value,Fe=r.formatter?r.formatter(L.value):L.value;!De||De.value===Fe||(De.value=Fe)},Y=async De=>{le();let{value:Fe}=De.target;if(r.formatter&&(Fe=r.parser?r.parser(Fe):Fe),!b.value){if(Fe===L.value){ue();return}n(Et,Fe),n("input",Fe),await Ze(),ue(),J()}},te=De=>{n("change",De.target.value)},oe=De=>{n("compositionstart",De),b.value=!0},Se=De=>{var Fe;n("compositionupdate",De);const at=(Fe=De.target)==null?void 0:Fe.value,yt=at[at.length-1]||"";b.value=!jx(yt)},fe=De=>{n("compositionend",De),b.value&&(b.value=!1,Y(De))},ne=()=>{x.value=!x.value,Ee()},Ee=async()=>{var De;await Ze(),(De=T.value)==null||De.focus()},_e=()=>{var De;return(De=T.value)==null?void 0:De.blur()},me=De=>{S.value=!1,n("mouseleave",De)},Te=De=>{S.value=!0,n("mouseenter",De)},Ve=De=>{n("keydown",De)},ze=()=>{var De;(De=T.value)==null||De.select()},We=()=>{n(Et,""),n("change",""),n("clear"),n("input","")};return Me(()=>r.modelValue,()=>{var De;Ze(()=>Z()),r.validateEvent&&((De=f==null?void 0:f.validate)==null||De.call(f,"change").catch(Fe=>void 0))}),Me(L,()=>ue()),Me(()=>r.type,async()=>{await Ze(),ue(),Z()}),St(()=>{!r.formatter&&r.parser,ue(),Ze(Z)}),e({input:y,textarea:m,ref:T,textareaStyle:F,autosize:Kn(r,"autosize"),focus:Ee,blur:_e,select:ze,clear:We,resizeTextarea:Z}),(De,Fe)=>ct((I(),X("div",Mt(w(o),{class:w(s),style:w(V),role:De.containerRole,onMouseenter:Te,onMouseleave:me}),[de(" input "),De.type!=="textarea"?(I(),X(Qe,{key:0},[de(" prepend slot "),De.$slots.prepend?(I(),X("div",{key:0,class:z(w(p).be("group","prepend"))},[Ce(De.$slots,"prepend")],2)):de("v-if",!0),P("div",{ref_key:"wrapperRef",ref:D,class:z(w(l))},[de(" prefix slot "),De.$slots.prefix||De.prefixIcon?(I(),X("span",{key:0,class:z(w(p).e("prefix"))},[P("span",{class:z(w(p).e("prefix-inner"))},[Ce(De.$slots,"prefix"),De.prefixIcon?(I(),ve(w(qe),{key:0,class:z(w(p).e("icon"))},{default:q(()=>[(I(),ve(Dt(De.prefixIcon)))]),_:1},8,["class"])):de("v-if",!0)],2)],2)):de("v-if",!0),P("input",Mt({id:w(d),ref_key:"input",ref:y,class:w(p).e("inner")},w(u),{type:De.showPassword?x.value?"text":"password":De.type,disabled:w(v),formatter:De.formatter,parser:De.parser,readonly:De.readonly,autocomplete:De.autocomplete,tabindex:De.tabindex,"aria-label":De.label,placeholder:De.placeholder,style:De.inputStyle,form:r.form,autofocus:r.autofocus,onCompositionstart:oe,onCompositionupdate:Se,onCompositionend:fe,onInput:Y,onFocus:Fe[0]||(Fe[0]=(...at)=>w(E)&&w(E)(...at)),onBlur:Fe[1]||(Fe[1]=(...at)=>w(k)&&w(k)(...at)),onChange:te,onKeydown:Ve}),null,16,SCe),de(" suffix slot "),w(be)?(I(),X("span",{key:1,class:z(w(p).e("suffix"))},[P("span",{class:z(w(p).e("suffix-inner"))},[!w(N)||!w(H)||!w(K)?(I(),X(Qe,{key:0},[Ce(De.$slots,"suffix"),De.suffixIcon?(I(),ve(w(qe),{key:0,class:z(w(p).e("icon"))},{default:q(()=>[(I(),ve(Dt(De.suffixIcon)))]),_:1},8,["class"])):de("v-if",!0)],64)):de("v-if",!0),w(N)?(I(),ve(w(qe),{key:1,class:z([w(p).e("icon"),w(p).e("clear")]),onMousedown:ot(w(pn),["prevent"]),onClick:We},{default:q(()=>[U(w(kc))]),_:1},8,["class","onMousedown"])):de("v-if",!0),w(H)?(I(),ve(w(qe),{key:2,class:z([w(p).e("icon"),w(p).e("password")]),onClick:ne},{default:q(()=>[(I(),ve(Dt(w($))))]),_:1},8,["class"])):de("v-if",!0),w(K)?(I(),X("span",{key:3,class:z(w(p).e("count"))},[P("span",{class:z(w(p).e("count-inner"))},Le(w(Q))+" / "+Le(w(u).maxlength),3)],2)):de("v-if",!0),w(O)&&w(B)&&w(R)?(I(),ve(w(qe),{key:4,class:z([w(p).e("icon"),w(p).e("validateIcon"),w(p).is("loading",w(O)==="validating")])},{default:q(()=>[(I(),ve(Dt(w(B))))]),_:1},8,["class"])):de("v-if",!0)],2)],2)):de("v-if",!0)],2),de(" append slot "),De.$slots.append?(I(),X("div",{key:1,class:z(w(p).be("group","append"))},[Ce(De.$slots,"append")],2)):de("v-if",!0)],64)):(I(),X(Qe,{key:1},[de(" textarea "),P("textarea",Mt({id:w(d),ref_key:"textarea",ref:m,class:w(g).e("inner")},w(u),{tabindex:De.tabindex,disabled:w(v),readonly:De.readonly,autocomplete:De.autocomplete,style:w(F),"aria-label":De.label,placeholder:De.placeholder,form:r.form,autofocus:r.autofocus,onCompositionstart:oe,onCompositionupdate:Se,onCompositionend:fe,onInput:Y,onFocus:Fe[2]||(Fe[2]=(...at)=>w(E)&&w(E)(...at)),onBlur:Fe[3]||(Fe[3]=(...at)=>w(k)&&w(k)(...at)),onChange:te,onKeydown:Ve}),null,16,bCe),w(K)?(I(),X("span",{key:0,style:et(_.value),class:z(w(p).e("count"))},Le(w(Q))+" / "+Le(w(u).maxlength),7)):de("v-if",!0)],64))],16,mCe)),[[Nt,De.type!=="hidden"]])}});var xCe=Ae(_Ce,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const wa=Tt(xCe),ep=4,dK={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"}},CCe=({move:t,size:e,bar:n})=>({[n.size]:e,transform:`translate${n.axis}(${t}%)`}),hK=Symbol("scrollbarContextKey"),TCe=Ne({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),ECe="Thumb",MCe=ae({__name:"thumb",props:TCe,setup(t){const e=t,n=Ye(hK),r=ke("scrollbar");n||wr(ECe,"can not inject scrollbar context");const a=G(),i=G(),o=G({}),s=G(!1);let l=!1,u=!1,c=Ht?document.onselectstart:null;const f=A(()=>dK[e.vertical?"vertical":"horizontal"]),d=A(()=>CCe({size:e.size,move:e.move,bar:f.value})),h=A(()=>a.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/e.ratio/i.value[f.value.offset]),v=_=>{var C;if(_.stopPropagation(),_.ctrlKey||[1,2].includes(_.button))return;(C=window.getSelection())==null||C.removeAllRanges(),g(_);const T=_.currentTarget;T&&(o.value[f.value.axis]=T[f.value.offset]-(_[f.value.client]-T.getBoundingClientRect()[f.value.direction]))},p=_=>{if(!i.value||!a.value||!n.wrapElement)return;const C=Math.abs(_.target.getBoundingClientRect()[f.value.direction]-_[f.value.client]),T=i.value[f.value.offset]/2,D=(C-T)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=D*n.wrapElement[f.value.scrollSize]/100},g=_=>{_.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",m),c=document.onselectstart,document.onselectstart=()=>!1},y=_=>{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]-_[f.value.client])*-1,D=i.value[f.value.offset]-C,M=(T-D)*100*h.value/a.value[f.value.offset];n.wrapElement[f.value.scroll]=M*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)},S=()=>{u=!1,s.value=!!e.size},b=()=>{u=!0,s.value=l};Pn(()=>{x(),document.removeEventListener("mouseup",m)});const x=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return $n(Kn(n,"scrollbarElement"),"mousemove",S),$n(Kn(n,"scrollbarElement"),"mouseleave",b),(_,C)=>(I(),ve(or,{name:w(r).b("fade"),persisted:""},{default:q(()=>[ct(P("div",{ref_key:"instance",ref:a,class:z([w(r).e("bar"),w(r).is(w(f).key)]),onMousedown:p},[P("div",{ref_key:"thumb",ref:i,class:z(w(r).e("thumb")),style:et(w(d)),onMousedown:v},null,38)],34),[[Nt,_.always||s.value]])]),_:1},8,["name"]))}});var kI=Ae(MCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const DCe=Ne({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),kCe=ae({__name:"bar",props:DCe,setup(t,{expose:e}){const n=t,r=G(0),a=G(0);return e({handleScroll:o=>{if(o){const s=o.offsetHeight-ep,l=o.offsetWidth-ep;a.value=o.scrollTop*100/s*n.ratioY,r.value=o.scrollLeft*100/l*n.ratioX}}}),(o,s)=>(I(),X(Qe,null,[U(kI,{move:r.value,ratio:o.ratioX,size:o.width,always:o.always},null,8,["move","ratio","size","always"]),U(kI,{move:a.value,ratio:o.ratioY,size:o.height,vertical:"",always:o.always},null,8,["move","ratio","size","always"])],64))}});var RCe=Ae(kCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const LCe=Ne({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:ge([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}}),OCe={scroll:({scrollTop:t,scrollLeft:e})=>[t,e].every(ut)},ACe="ElScrollbar",NCe=ae({name:ACe}),VCe=ae({...NCe,props:LCe,emits:OCe,setup(t,{expose:e,emit:n}){const r=t,a=ke("scrollbar");let i,o;const s=G(),l=G(),u=G(),c=G("0"),f=G("0"),d=G(),h=G(1),v=G(1),p=A(()=>{const C={};return r.height&&(C.height=rr(r.height)),r.maxHeight&&(C.maxHeight=rr(r.maxHeight)),[r.wrapStyle,C]}),g=A(()=>[r.wrapClass,a.e("wrap"),{[a.em("wrap","hidden-default")]:!r.native}]),y=A(()=>[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 S(C,T){Lt(C)?l.value.scrollTo(C):ut(C)&&ut(T)&&l.value.scrollTo(C,T)}const b=C=>{ut(C)&&(l.value.scrollTop=C)},x=C=>{ut(C)&&(l.value.scrollLeft=C)},_=()=>{if(!l.value)return;const C=l.value.offsetHeight-ep,T=l.value.offsetWidth-ep,D=C**2/l.value.scrollHeight,M=T**2/l.value.scrollWidth,E=Math.max(D,r.minSize),k=Math.max(M,r.minSize);h.value=D/(C-D)/(E/(C-E)),v.value=M/(T-M)/(k/(T-k)),f.value=E+ep<C?`${E}px`:"",c.value=k+ep<T?`${k}px`:""};return Me(()=>r.noresize,C=>{C?(i==null||i(),o==null||o()):({stop:i}=xa(u,_),o=$n("resize",_))},{immediate:!0}),Me(()=>[r.maxHeight,r.height],()=>{r.native||Ze(()=>{var C;_(),l.value&&((C=d.value)==null||C.handleScroll(l.value))})}),At(hK,Zt({scrollbarElement:s,wrapElement:l})),St(()=>{r.native||Ze(()=>{_()})}),ql(()=>_()),e({wrapRef:l,update:_,scrollTo:S,setScrollTop:b,setScrollLeft:x,handleScroll:m}),(C,T)=>(I(),X("div",{ref_key:"scrollbarRef",ref:s,class:z(w(a).b())},[P("div",{ref_key:"wrapRef",ref:l,class:z(w(g)),style:et(w(p)),onScroll:m},[(I(),ve(Dt(C.tag),{ref_key:"resizeRef",ref:u,class:z(w(y)),style:et(C.viewStyle)},{default:q(()=>[Ce(C.$slots,"default")]),_:3},8,["class","style"]))],38),C.native?de("v-if",!0):(I(),ve(RCe,{key:0,ref_key:"barRef",ref:d,height:f.value,width:c.value,always:C.always,"ratio-x":v.value,"ratio-y":h.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var BCe=Ae(VCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const Jl=Tt(BCe),rA=Symbol("popper"),pK=Symbol("popperContent"),$Ce=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],vK=Ne({role:{type:String,values:$Ce,default:"tooltip"}}),ICe=ae({name:"ElPopper",inheritAttrs:!1}),PCe=ae({...ICe,props:vK,setup(t,{expose:e}){const n=t,r=G(),a=G(),i=G(),o=G(),s=A(()=>n.role),l={triggerRef:r,popperInstanceRef:a,contentRef:i,referenceRef:o,role:s};return e(l),At(rA,l),(u,c)=>Ce(u.$slots,"default")}});var FCe=Ae(PCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const gK=Ne({arrowOffset:{type:Number,default:5}}),zCe=ae({name:"ElPopperArrow",inheritAttrs:!1}),GCe=ae({...zCe,props:gK,setup(t,{expose:e}){const n=t,r=ke("popper"),{arrowOffset:a,arrowRef:i,arrowStyle:o}=Ye(pK,void 0);return Me(()=>n.arrowOffset,s=>{a.value=s}),Pn(()=>{i.value=void 0}),e({arrowRef:i}),(s,l)=>(I(),X("span",{ref_key:"arrowRef",ref:i,class:z(w(r).e("arrow")),style:et(w(o)),"data-popper-arrow":""},null,6))}});var UCe=Ae(GCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const HCe="ElOnlyChild",yK=ae({name:HCe,setup(t,{slots:e,attrs:n}){var r;const a=Ye(K9),i=y_e((r=a==null?void 0:a.setForwardRef)!=null?r:pn);return()=>{var o;const s=(o=e.default)==null?void 0:o.call(e,n);if(!s||s.length>1)return null;const l=mK(s);return l?ct($l(l,n),[[i]]):null}}});function mK(t){if(!t)return null;const e=t;for(const n of e){if(Lt(n))switch(n.type){case Fa:continue;case wv:case"svg":return RI(n);case Qe:return mK(n.children);default:return n}return RI(n)}return null}function RI(t){const e=ke("only-child");return U("span",{class:e.e("content")},[t])}const SK=Ne({virtualRef:{type:ge(Object)},virtualTriggering:Boolean,onMouseenter:{type:ge(Function)},onMouseleave:{type:ge(Function)},onClick:{type:ge(Function)},onKeydown:{type:ge(Function)},onFocus:{type:ge(Function)},onBlur:{type:ge(Function)},onContextmenu:{type:ge(Function)},id:String,open:Boolean}),WCe=ae({name:"ElPopperTrigger",inheritAttrs:!1}),KCe=ae({...WCe,props:SK,setup(t,{expose:e}){const n=t,{role:r,triggerRef:a}=Ye(rA,void 0);g_e(a);const i=A(()=>s.value?n.id:void 0),o=A(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=A(()=>{if(r&&r.value!=="tooltip")return r.value}),l=A(()=>s.value?`${n.open}`:void 0);let u;return St(()=>{Me(()=>n.virtualRef,c=>{c&&(a.value=Ci(c))},{immediate:!0}),Me(a,(c,f)=>{u==null||u(),u=void 0,io(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const v=n[d];v&&(c.addEventListener(d.slice(2).toLowerCase(),v),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),v))}),u=Me([i,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,v)=>{mr(d[v])?c.removeAttribute(h):c.setAttribute(h,d[v])})},{immediate:!0})),io(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),Pn(()=>{u==null||u(),u=void 0}),e({triggerRef:a}),(c,f)=>c.virtualTriggering?de("v-if",!0):(I(),ve(w(yK),Mt({key:0},c.$attrs,{"aria-controls":w(i),"aria-describedby":w(o),"aria-expanded":w(l),"aria-haspopup":w(s)}),{default:q(()=>[Ce(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var jCe=Ae(KCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const kT="focus-trap.focus-after-trapped",RT="focus-trap.focus-after-released",YCe="focus-trap.focusout-prevented",LI={cancelable:!0,bubbles:!1},XCe={cancelable:!0,bubbles:!1},OI="focusAfterTrapped",AI="focusAfterReleased",aA=Symbol("elFocusTrap"),iA=G(),tC=G(0),oA=G(0);let x1=0;const bK=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},NI=(t,e)=>{for(const n of t)if(!qCe(n,e))return n},qCe=(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},ZCe=t=>{const e=bK(t),n=NI(e,t),r=NI(e.reverse(),t);return[n,r]},QCe=t=>t instanceof HTMLInputElement&&"select"in t,_u=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),oA.value=window.performance.now(),t!==n&&QCe(t)&&e&&t.select()}};function VI(t,e){const n=[...t],r=t.indexOf(e);return r!==-1&&n.splice(r,1),n}const JCe=()=>{let t=[];return{push:r=>{const a=t[0];a&&r!==a&&a.pause(),t=VI(t,r),t.unshift(r)},remove:r=>{var a,i;t=VI(t,r),(i=(a=t[0])==null?void 0:a.resume)==null||i.call(a)}}},eTe=(t,e=!1)=>{const n=document.activeElement;for(const r of t)if(_u(r,e),document.activeElement!==n)return},BI=JCe(),tTe=()=>tC.value>oA.value,C1=()=>{iA.value="pointer",tC.value=window.performance.now()},$I=()=>{iA.value="keyboard",tC.value=window.performance.now()},nTe=()=>(St(()=>{x1===0&&(document.addEventListener("mousedown",C1),document.addEventListener("touchstart",C1),document.addEventListener("keydown",$I)),x1++}),Pn(()=>{x1--,x1<=0&&(document.removeEventListener("mousedown",C1),document.removeEventListener("touchstart",C1),document.removeEventListener("keydown",$I))}),{focusReason:iA,lastUserFocusTimestamp:tC,lastAutomatedFocusTimestamp:oA}),T1=t=>new CustomEvent(YCe,{...XCe,detail:t}),rTe=ae({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[OI,AI,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=G();let r,a;const{focusReason:i}=nTe();d_e(v=>{t.trapped&&!o.paused&&e("release-requested",v)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!t.loop&&!t.trapped||o.paused)return;const{key:p,altKey:g,ctrlKey:y,metaKey:m,currentTarget:S,shiftKey:b}=v,{loop:x}=t,_=p===nt.tab&&!g&&!y&&!m,C=document.activeElement;if(_&&C){const T=S,[D,M]=ZCe(T);if(D&&M){if(!b&&C===M){const k=T1({focusReason:i.value});e("focusout-prevented",k),k.defaultPrevented||(v.preventDefault(),x&&_u(D,!0))}else if(b&&[D,T].includes(C)){const k=T1({focusReason:i.value});e("focusout-prevented",k),k.defaultPrevented||(v.preventDefault(),x&&_u(M,!0))}}else if(C===T){const k=T1({focusReason:i.value});e("focusout-prevented",k),k.defaultPrevented||v.preventDefault()}}};At(aA,{focusTrapRef:n,onKeydown:s}),Me(()=>t.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),Me([n],([v],[p])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",s),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=v=>{e(OI,v)},u=v=>e(AI,v),c=v=>{const p=w(n);if(!p)return;const g=v.target,y=v.relatedTarget,m=g&&p.contains(g);t.trapped||y&&p.contains(y)||(r=y),m&&e("focusin",v),!o.paused&&t.trapped&&(m?a=g:_u(a,!0))},f=v=>{const p=w(n);if(!(o.paused||!p))if(t.trapped){const g=v.relatedTarget;!mr(g)&&!p.contains(g)&&setTimeout(()=>{if(!o.paused&&t.trapped){const y=T1({focusReason:i.value});e("focusout-prevented",y),y.defaultPrevented||_u(a,!0)}},0)}else{const g=v.target;g&&p.contains(g)||e("focusout",v)}};async function d(){await Ze();const v=w(n);if(v){BI.push(o);const p=v.contains(document.activeElement)?r:document.activeElement;if(r=p,!v.contains(p)){const y=new Event(kT,LI);v.addEventListener(kT,l),v.dispatchEvent(y),y.defaultPrevented||Ze(()=>{let m=t.focusStartEl;vt(m)||(_u(m),document.activeElement!==m&&(m="first")),m==="first"&&eTe(bK(v),!0),(document.activeElement===p||m==="container")&&_u(v)})}}}function h(){const v=w(n);if(v){v.removeEventListener(kT,l);const p=new CustomEvent(RT,{...LI,detail:{focusReason:i.value}});v.addEventListener(RT,u),v.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!tTe()||v.contains(document.activeElement))&&_u(r??document.body),v.removeEventListener(RT,u),BI.remove(o)}}return St(()=>{t.trapped&&d(),Me(()=>t.trapped,v=>{v?d():h()})}),Pn(()=>{t.trapped&&h()}),{onKeydown:s}}});function aTe(t,e,n,r,a,i){return Ce(t.$slots,"default",{handleKeydown:t.onKeydown})}var nC=Ae(rTe,[["render",aTe],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const iTe=["fixed","absolute"],oTe=Ne({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:ge(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Yd,default:"bottom"},popperOptions:{type:ge(Object),default:()=>({})},strategy:{type:String,values:iTe,default:"absolute"}}),wK=Ne({...oTe,id:String,style:{type:ge([String,Array,Object])},className:{type:ge([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:ge([String,Array,Object])},popperStyle:{type:ge([String,Array,Object])},referenceEl:{type:ge(Object)},triggerTargetEl:{type:ge(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),sTe={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},lTe=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:a}=t,i={placement:n,strategy:r,...a,modifiers:[...cTe(t),...e]};return fTe(i,a==null?void 0:a.modifiers),i},uTe=t=>{if(Ht)return Ci(t)};function cTe(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 fTe(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]])}const dTe=0,hTe=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:r,role:a}=Ye(rA,void 0),i=G(),o=G(),s=A(()=>({name:"eventListeners",enabled:!!t.visible})),l=A(()=>{var y;const m=w(i),S=(y=w(o))!=null?y:dTe;return{name:"arrow",enabled:!aye(m),options:{element:m,padding:S}}}),u=A(()=>({onFirstUpdate:()=>{v()},...lTe(t,[w(l),w(s)])})),c=A(()=>uTe(t.referenceEl)||w(r)),{attributes:f,state:d,styles:h,update:v,forceUpdate:p,instanceRef:g}=l_e(c,n,u);return Me(g,y=>e.value=y),St(()=>{Me(()=>{var y;return(y=w(c))==null?void 0:y.getBoundingClientRect()},()=>{v()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:g,state:d,styles:h,role:a,forceUpdate:p,update:v}},pTe=(t,{attributes:e,styles:n,role:r})=>{const{nextZIndex:a}=Tv(),i=ke("popper"),o=A(()=>w(e).popper),s=G(t.zIndex||a()),l=A(()=>[i.b(),i.is("pure",t.pure),i.is(t.effect),t.popperClass]),u=A(()=>[{zIndex:w(s)},w(n).popper,t.popperStyle||{}]),c=A(()=>r.value==="dialog"?"false":void 0),f=A(()=>w(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=t.zIndex||a()}}},vTe=(t,e)=>{const n=G(!1),r=G();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")}}},gTe=ae({name:"ElPopperContent"}),yTe=ae({...gTe,props:wK,emits:sTe,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:a,trapped:i,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=vTe(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:v,instanceRef:p,role:g,update:y}=hTe(r),{ariaModal:m,arrowStyle:S,contentAttrs:b,contentClass:x,contentStyle:_,updateZIndex:C}=pTe(r,{styles:v,attributes:f,role:g}),T=Ye(Ys,void 0),D=G();At(pK,{arrowStyle:S,arrowRef:d,arrowOffset:D}),T&&(T.addInputId||T.removeInputId)&&At(Ys,{...T,addInputId:pn,removeInputId:pn});let M;const E=(R=!0)=>{y(),R&&C()},k=()=>{E(!1),r.visible&&r.focusOnShow?i.value=!0:r.visible===!1&&(i.value=!1)};return St(()=>{Me(()=>r.triggerTargetEl,(R,O)=>{M==null||M(),M=void 0;const B=w(R||h.value),$=w(O||h.value);io(B)&&(M=Me([g,()=>r.ariaLabel,m,()=>r.id],V=>{["role","aria-label","aria-modal","id"].forEach((F,L)=>{mr(V[L])?B.removeAttribute(F):B.setAttribute(F,V[L])})},{immediate:!0})),$!==B&&io($)&&["role","aria-label","aria-modal","id"].forEach(V=>{$.removeAttribute(V)})},{immediate:!0}),Me(()=>r.visible,k,{immediate:!0})}),Pn(()=>{M==null||M(),M=void 0}),e({popperContentRef:h,popperInstanceRef:p,updatePopper:E,contentStyle:_}),(R,O)=>(I(),X("div",Mt({ref_key:"contentRef",ref:h},w(b),{style:w(_),class:w(x),tabindex:"-1",onMouseenter:O[0]||(O[0]=B=>R.$emit("mouseenter",B)),onMouseleave:O[1]||(O[1]=B=>R.$emit("mouseleave",B))}),[U(w(nC),{trapped:w(i),"trap-on-focus-in":!0,"focus-trap-el":w(h),"focus-start-el":w(a),onFocusAfterTrapped:w(s),onFocusAfterReleased:w(o),onFocusin:w(l),onFocusoutPrevented:w(u),onReleaseRequested:w(c)},{default:q(()=>[Ce(R.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var mTe=Ae(yTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const _K=Tt(FCe),rC=Symbol("elTooltip"),Hr=Ne({...v_e,...wK,appendTo:{type:ge([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:ge(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),py=Ne({...SK,disabled:Boolean,trigger:{type:ge([String,Array]),default:"hover"},triggerKeys:{type:ge(Array),default:()=>[nt.enter,nt.space]}}),{useModelToggleProps:STe,useModelToggleEmits:bTe,useModelToggle:wTe}=k9("visible"),_Te=Ne({...vK,...STe,...Hr,...py,...gK,showArrow:{type:Boolean,default:!0}}),xTe=[...bTe,"before-show","before-hide","show","hide","open","close"],CTe=(t,e)=>Ke(t)?t.includes(e):t===e,lh=(t,e,n)=>r=>{CTe(w(t),e)&&n(r)},TTe=ae({name:"ElTooltipTrigger"}),ETe=ae({...TTe,props:py,setup(t,{expose:e}){const n=t,r=ke("tooltip"),{controlled:a,id:i,open:o,onOpen:s,onClose:l,onToggle:u}=Ye(rC,void 0),c=G(null),f=()=>{if(w(a)||n.disabled)return!0},d=Kn(n,"trigger"),h=Zn(f,lh(d,"hover",s)),v=Zn(f,lh(d,"hover",l)),p=Zn(f,lh(d,"click",b=>{b.button===0&&u(b)})),g=Zn(f,lh(d,"focus",s)),y=Zn(f,lh(d,"focus",l)),m=Zn(f,lh(d,"contextmenu",b=>{b.preventDefault(),u(b)})),S=Zn(f,b=>{const{code:x}=b;n.triggerKeys.includes(x)&&(b.preventDefault(),u(b))});return e({triggerRef:c}),(b,x)=>(I(),ve(w(jCe),{id:w(i),"virtual-ref":b.virtualRef,open:w(o),"virtual-triggering":b.virtualTriggering,class:z(w(r).e("trigger")),onBlur:w(y),onClick:w(p),onContextmenu:w(m),onFocus:w(g),onMouseenter:w(h),onMouseleave:w(v),onKeydown:w(S)},{default:q(()=>[Ce(b.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var MTe=Ae(ETe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const DTe=ae({name:"ElTooltipContent",inheritAttrs:!1}),kTe=ae({...DTe,props:Hr,setup(t,{expose:e}){const n=t,{selector:r}=H9(),a=ke("tooltip"),i=G(null),o=G(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:v,onBeforeShow:p,onBeforeHide:g}=Ye(rC,void 0),y=A(()=>n.transition||`${a.namespace.value}-fade-in-linear`),m=A(()=>n.persistent);Pn(()=>{o.value=!0});const S=A(()=>w(m)?!0:w(u)),b=A(()=>n.disabled?!1:w(u)),x=A(()=>n.appendTo||r.value),_=A(()=>{var V;return(V=n.style)!=null?V:{}}),C=A(()=>!w(u)),T=()=>{v()},D=()=>{if(w(s))return!0},M=Zn(D,()=>{n.enterable&&w(c)==="hover"&&d()}),E=Zn(D,()=>{w(c)==="hover"&&f()}),k=()=>{var V,F;(F=(V=i.value)==null?void 0:V.updatePopper)==null||F.call(V),p==null||p()},R=()=>{g==null||g()},O=()=>{h(),$=gO(A(()=>{var V;return(V=i.value)==null?void 0:V.popperContentRef}),()=>{if(w(s))return;w(c)!=="hover"&&f()})},B=()=>{n.virtualTriggering||f()};let $;return Me(()=>w(u),V=>{V||$==null||$()},{flush:"post"}),Me(()=>n.content,()=>{var V,F;(F=(V=i.value)==null?void 0:V.updatePopper)==null||F.call(V)}),e({contentRef:i}),(V,F)=>(I(),ve(vm,{disabled:!V.teleported,to:w(x)},[U(or,{name:w(y),onAfterLeave:T,onBeforeEnter:k,onAfterEnter:O,onBeforeLeave:R},{default:q(()=>[w(S)?ct((I(),ve(w(mTe),Mt({key:0,id:w(l),ref_key:"contentRef",ref:i},V.$attrs,{"aria-label":V.ariaLabel,"aria-hidden":w(C),"boundaries-padding":V.boundariesPadding,"fallback-placements":V.fallbackPlacements,"gpu-acceleration":V.gpuAcceleration,offset:V.offset,placement:V.placement,"popper-options":V.popperOptions,strategy:V.strategy,effect:V.effect,enterable:V.enterable,pure:V.pure,"popper-class":V.popperClass,"popper-style":[V.popperStyle,w(_)],"reference-el":V.referenceEl,"trigger-target-el":V.triggerTargetEl,visible:w(b),"z-index":V.zIndex,onMouseenter:w(M),onMouseleave:w(E),onBlur:B,onClose:w(f)}),{default:q(()=>[o.value?de("v-if",!0):Ce(V.$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"])),[[Nt,w(b)]]):de("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var RTe=Ae(kTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const LTe=["innerHTML"],OTe={key:1},ATe=ae({name:"ElTooltip"}),NTe=ae({...ATe,props:_Te,emits:xTe,setup(t,{expose:e,emit:n}){const r=t;p_e();const a=lo(),i=G(),o=G(),s=()=>{var y;const m=w(i);m&&((y=m.popperInstanceRef)==null||y.update())},l=G(!1),u=G(),{show:c,hide:f,hasUpdateHandler:d}=wTe({indicator:l,toggleReason:u}),{onOpen:h,onClose:v}=W9({showAfter:Kn(r,"showAfter"),hideAfter:Kn(r,"hideAfter"),autoClose:Kn(r,"autoClose"),open:c,close:f}),p=A(()=>Sr(r.visible)&&!d.value);At(rC,{controlled:p,id:a,open:bv(l),trigger:Kn(r,"trigger"),onOpen:y=>{h(y)},onClose:y=>{v(y)},onToggle:y=>{w(l)?v(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}),Me(()=>r.disabled,y=>{y&&l.value&&(l.value=!1)});const g=y=>{var m,S;const b=(S=(m=o.value)==null?void 0:m.contentRef)==null?void 0:S.popperContentRef,x=(y==null?void 0:y.relatedTarget)||document.activeElement;return b&&b.contains(x)};return TW(()=>l.value&&f()),e({popperRef:i,contentRef:o,isFocusInsideContent:g,updatePopper:s,onOpen:h,onClose:v,hide:f}),(y,m)=>(I(),ve(w(_K),{ref_key:"popperRef",ref:i,role:y.role},{default:q(()=>[U(MTe,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:q(()=>[y.$slots.default?Ce(y.$slots,"default",{key:0}):de("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),U(RTe,{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:q(()=>[Ce(y.$slots,"content",{},()=>[y.rawContent?(I(),X("span",{key:0,innerHTML:y.content},null,8,LTe)):(I(),X("span",OTe,Le(y.content),1))]),y.showArrow?(I(),ve(w(UCe),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):de("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 VTe=Ae(NTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Ya=Tt(VTe),BTe=Ne({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:ge(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:ge([Function,Array]),default:pn},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:Hr.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),$Te={[Et]:t=>vt(t),[Ga]:t=>vt(t),[Nn]:t=>vt(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,select:t=>Lt(t)},ITe=["aria-expanded","aria-owns"],PTe={key:0},FTe=["id","aria-selected","onClick"],xK="ElAutocomplete",zTe=ae({name:xK,inheritAttrs:!1}),GTe=ae({...zTe,props:BTe,emits:$Te,setup(t,{expose:e,emit:n}){const r=t,a=PO(),i=Hd(),o=mi(),s=ke("autocomplete"),l=G(),u=G(),c=G(),f=G();let d=!1,h=!1;const v=G([]),p=G(-1),g=G(""),y=G(!1),m=G(!1),S=G(!1),b=A(()=>s.b(String(Xx()))),x=A(()=>i.style),_=A(()=>(v.value.length>0||S.value)&&y.value),C=A(()=>!r.hideLoading&&S.value),T=A(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),D=()=>{_.value&&(g.value=`${l.value.$el.offsetWidth}px`)},M=()=>{p.value=-1},k=ja(async le=>{if(m.value)return;const J=Z=>{S.value=!1,!m.value&&(Ke(Z)?(v.value=Z,p.value=r.highlightFirstItem?0:-1):wr(xK,"autocomplete suggestions must be an array"))};if(S.value=!0,Ke(r.fetchSuggestions))J(r.fetchSuggestions);else{const Z=await r.fetchSuggestions(le,J);Ke(Z)&&J(Z)}},r.debounce),R=le=>{const J=!!le;if(n(Ga,le),n(Et,le),m.value=!1,y.value||(y.value=J),!r.triggerOnFocus&&!le){m.value=!0,v.value=[];return}k(le)},O=le=>{var J;o.value||(((J=le.target)==null?void 0:J.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(y.value=!0)},B=le=>{n(Nn,le)},$=le=>{h?h=!1:(y.value=!0,n("focus",le),r.triggerOnFocus&&!d&&k(String(r.modelValue)))},V=le=>{setTimeout(()=>{var J;if((J=c.value)!=null&&J.isFocusInsideContent()){h=!0;return}y.value&&H(),n("blur",le)})},F=()=>{y.value=!1,n(Et,""),n("clear")},L=async()=>{_.value&&p.value>=0&&p.value<v.value.length?ie(v.value[p.value]):r.selectWhenUnmatched&&(n("select",{value:r.modelValue}),v.value=[],p.value=-1)},N=le=>{_.value&&(le.preventDefault(),le.stopPropagation(),H())},H=()=>{y.value=!1},K=()=>{var le;(le=l.value)==null||le.focus()},Q=()=>{var le;(le=l.value)==null||le.blur()},ie=async le=>{n(Ga,le[r.valueKey]),n(Et,le[r.valueKey]),n("select",le),v.value=[],p.value=-1},be=le=>{if(!_.value||S.value)return;if(le<0){p.value=-1;return}le>=v.value.length&&(le=v.value.length-1);const J=u.value.querySelector(`.${s.be("suggestion","wrap")}`),ee=J.querySelectorAll(`.${s.be("suggestion","list")} li`)[le],ce=J.scrollTop,{offsetTop:ue,scrollHeight:Y}=ee;ue+Y>ce+J.clientHeight&&(J.scrollTop+=Y),ue<ce&&(J.scrollTop-=Y),p.value=le,l.value.ref.setAttribute("aria-activedescendant",`${b.value}-item-${p.value}`)};return gO(f,()=>{_.value&&H()}),St(()=>{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",`${b.value}-item-${p.value}`),d=l.value.ref.hasAttribute("readonly")}),e({highlightedIndex:p,activated:y,loading:S,inputRef:l,popperRef:c,suggestions:v,handleSelect:ie,handleKeyEnter:L,focus:K,blur:Q,close:H,highlight:be}),(le,J)=>(I(),ve(w(Ya),{ref_key:"popperRef",ref:c,visible:w(_),placement:le.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[w(s).e("popper"),le.popperClass],teleported:le.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${w(s).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:D,onHide:M},{content:q(()=>[P("div",{ref_key:"regionRef",ref:u,class:z([w(s).b("suggestion"),w(s).is("loading",w(C))]),style:et({[le.fitInputWidth?"width":"minWidth"]:g.value,outline:"none"}),role:"region"},[U(w(Jl),{id:w(b),tag:"ul","wrap-class":w(s).be("suggestion","wrap"),"view-class":w(s).be("suggestion","list"),role:"listbox"},{default:q(()=>[w(C)?(I(),X("li",PTe,[U(w(qe),{class:z(w(s).is("loading"))},{default:q(()=>[U(w(Rc))]),_:1},8,["class"])])):(I(!0),X(Qe,{key:1},Vt(v.value,(Z,ee)=>(I(),X("li",{id:`${w(b)}-item-${ee}`,key:ee,class:z({highlighted:p.value===ee}),role:"option","aria-selected":p.value===ee,onClick:ce=>ie(Z)},[Ce(le.$slots,"default",{item:Z},()=>[dt(Le(Z[le.valueKey]),1)])],10,FTe))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:q(()=>[P("div",{ref_key:"listboxRef",ref:f,class:z([w(s).b(),le.$attrs.class]),style:et(w(x)),role:"combobox","aria-haspopup":"listbox","aria-expanded":w(_),"aria-owns":w(b)},[U(w(wa),Mt({ref_key:"inputRef",ref:l},w(a),{clearable:le.clearable,disabled:w(o),name:le.name,"model-value":le.modelValue,onInput:R,onChange:B,onFocus:$,onBlur:V,onClear:F,onKeydown:[J[0]||(J[0]=Kt(ot(Z=>be(p.value-1),["prevent"]),["up"])),J[1]||(J[1]=Kt(ot(Z=>be(p.value+1),["prevent"]),["down"])),Kt(L,["enter"]),Kt(H,["tab"]),Kt(N,["esc"])],onMousedown:O}),Bl({_:2},[le.$slots.prepend?{name:"prepend",fn:q(()=>[Ce(le.$slots,"prepend")])}:void 0,le.$slots.append?{name:"append",fn:q(()=>[Ce(le.$slots,"append")])}:void 0,le.$slots.prefix?{name:"prefix",fn:q(()=>[Ce(le.$slots,"prefix")])}:void 0,le.$slots.suffix?{name:"suffix",fn:q(()=>[Ce(le.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,ITe)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var UTe=Ae(GTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const HTe=Tt(UTe),WTe=Ne({size:{type:[Number,String],values:tl,default:"",validator:t=>ut(t)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:Tn},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:ge(String),default:"cover"}}),KTe={error:t=>t instanceof Event},jTe=["src","alt","srcset"],YTe=ae({name:"ElAvatar"}),XTe=ae({...YTe,props:WTe,emits:KTe,setup(t,{emit:e}){const n=t,r=ke("avatar"),a=G(!1),i=A(()=>{const{size:u,icon:c,shape:f}=n,d=[r.b()];return vt(u)&&d.push(r.m(u)),c&&d.push(r.m("icon")),f&&d.push(r.m(f)),d}),o=A(()=>{const{size:u}=n;return ut(u)?r.cssVarBlock({size:rr(u)||""}):void 0}),s=A(()=>({objectFit:n.fit}));Me(()=>n.src,()=>a.value=!1);function l(u){a.value=!0,e("error",u)}return(u,c)=>(I(),X("span",{class:z(w(i)),style:et(w(o))},[(u.src||u.srcSet)&&!a.value?(I(),X("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:et(w(s)),onError:l},null,44,jTe)):u.icon?(I(),ve(w(qe),{key:1},{default:q(()=>[(I(),ve(Dt(u.icon)))]),_:1})):Ce(u.$slots,"default",{key:2})],6))}});var qTe=Ae(XTe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const ZTe=Tt(qTe),QTe={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},JTe={click:t=>t instanceof MouseEvent},e2e=(t,e,n)=>{const r=Cn(),a=Cn(),i=G(!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=D7(o,300,!0);return $n(a,"scroll",l),St(()=>{var u;a.value=document,r.value=document.documentElement,t.target&&(r.value=(u=document.querySelector(t.target))!=null?u:void 0,r.value||wr(n,`target does not exist: ${t.target}`),a.value=r.value),o()}),{visible:i,handleClick:s}},CK="ElBacktop",t2e=ae({name:CK}),n2e=ae({...t2e,props:QTe,emits:JTe,setup(t,{emit:e}){const n=t,r=ke("backtop"),{handleClick:a,visible:i}=e2e(n,e,CK),o=A(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(s,l)=>(I(),ve(or,{name:`${w(r).namespace.value}-fade-in`},{default:q(()=>[w(i)?(I(),X("div",{key:0,style:et(w(o)),class:z(w(r).b()),onClick:l[0]||(l[0]=ot((...u)=>w(a)&&w(a)(...u),["stop"]))},[Ce(s.$slots,"default",{},()=>[U(w(qe),{class:z(w(r).e("icon"))},{default:q(()=>[U(w(fme))]),_:1},8,["class"])])],6)):de("v-if",!0)]),_:3},8,["name"]))}});var r2e=Ae(n2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const a2e=Tt(r2e),i2e=Ne({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"}}),o2e=["textContent"],s2e=ae({name:"ElBadge"}),l2e=ae({...s2e,props:i2e,setup(t,{expose:e}){const n=t,r=ke("badge"),a=A(()=>n.isDot?"":ut(n.value)&&ut(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return e({content:a}),(i,o)=>(I(),X("div",{class:z(w(r).b())},[Ce(i.$slots,"default"),U(or,{name:`${w(r).namespace.value}-zoom-in-center`,persisted:""},{default:q(()=>[ct(P("sup",{class:z([w(r).e("content"),w(r).em("content",i.type),w(r).is("fixed",!!i.$slots.default),w(r).is("dot",i.isDot)]),textContent:Le(w(a))},null,10,o2e),[[Nt,!i.hidden&&(w(a)||i.isDot)]])]),_:1},8,["name"])],2))}});var u2e=Ae(l2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const TK=Tt(u2e),EK=Symbol("breadcrumbKey"),c2e=Ne({separator:{type:String,default:"/"},separatorIcon:{type:Tn}}),f2e=ae({name:"ElBreadcrumb"}),d2e=ae({...f2e,props:c2e,setup(t){const e=t,n=ke("breadcrumb"),r=G();return At(EK,e),St(()=>{const a=r.value.querySelectorAll(`.${n.e("item")}`);a.length&&a[a.length-1].setAttribute("aria-current","page")}),(a,i)=>(I(),X("div",{ref_key:"breadcrumb",ref:r,class:z(w(n).b()),"aria-label":"Breadcrumb",role:"navigation"},[Ce(a.$slots,"default")],2))}});var h2e=Ae(d2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const p2e=Ne({to:{type:ge([String,Object]),default:""},replace:{type:Boolean,default:!1}}),v2e=ae({name:"ElBreadcrumbItem"}),g2e=ae({...v2e,props:p2e,setup(t){const e=t,n=_t(),r=Ye(EK,void 0),a=ke("breadcrumb"),i=n.appContext.config.globalProperties.$router,o=G(),s=()=>{!e.to||!i||(e.replace?i.replace(e.to):i.push(e.to))};return(l,u)=>{var c,f;return I(),X("span",{class:z(w(a).e("item"))},[P("span",{ref_key:"link",ref:o,class:z([w(a).e("inner"),w(a).is("link",!!l.to)]),role:"link",onClick:s},[Ce(l.$slots,"default")],2),(c=w(r))!=null&&c.separatorIcon?(I(),ve(w(qe),{key:0,class:z(w(a).e("separator"))},{default:q(()=>[(I(),ve(Dt(w(r).separatorIcon)))]),_:1},8,["class"])):(I(),X("span",{key:1,class:z(w(a).e("separator")),role:"presentation"},Le((f=w(r))==null?void 0:f.separator),3))],2)}}});var MK=Ae(g2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const y2e=Tt(h2e,{BreadcrumbItem:MK}),m2e=Qn(MK),DK=Symbol("buttonGroupContextKey"),S2e=(t,e)=>{Ws({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},A(()=>t.type==="text"));const n=Ye(DK,void 0),r=Jx("button"),{form:a}=Qa(),i=_r(A(()=>n==null?void 0:n.size)),o=mi(),s=G(),l=fa(),u=A(()=>t.type||(n==null?void 0:n.type)||""),c=A(()=>{var v,p,g;return(g=(p=t.autoInsertSpace)!=null?p:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?g:!1}),f=A(()=>t.tag==="button"?{ariaDisabled:o.value||t.loading,disabled:o.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),d=A(()=>{var v;const p=(v=l.default)==null?void 0:v.call(l);if(c.value&&(p==null?void 0:p.length)===1){const g=p[0];if((g==null?void 0:g.type)===wv){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:v=>{t.nativeType==="reset"&&(a==null||a.resetFields()),e("click",v)}}},OD=["default","primary","success","warning","info","danger","text",""],b2e=["button","submit","reset"],AD=Ne({size:sa,disabled:Boolean,type:{type:String,values:OD,default:""},icon:{type:Tn},nativeType:{type:String,values:b2e,default:"button"},loading:Boolean,loadingIcon:{type:Tn,default:()=>Rc},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ge([String,Object]),default:"button"}}),w2e={click:t=>t instanceof MouseEvent};function ia(t,e){_2e(t)&&(t="100%");var n=x2e(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 E1(t){return Math.min(1,Math.max(0,t))}function _2e(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function x2e(t){return typeof t=="string"&&t.indexOf("%")!==-1}function kK(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function M1(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Zf(t){return t.length===1?"0"+t:String(t)}function C2e(t,e,n){return{r:ia(t,255)*255,g:ia(e,255)*255,b:ia(n,255)*255}}function II(t,e,n){t=ia(t,255),e=ia(e,255),n=ia(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+(e<n?6:0);break;case e:i=(n-t)/l+2;break;case n:i=(t-e)/l+4;break}i/=6}return{h:i,s:o,l:s}}function LT(t,e,n){return n<0&&(n+=1),n>1&&(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 T2e(t,e,n){var r,a,i;if(t=ia(t,360),e=ia(e,100),n=ia(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=LT(s,o,t+1/3),a=LT(s,o,t),i=LT(s,o,t-1/3)}return{r:r*255,g:a*255,b:i*255}}function PI(t,e,n){t=ia(t,255),e=ia(e,255),n=ia(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<n?6:0);break;case e:i=(n-t)/s+2;break;case n:i=(t-e)/s+4;break}i/=6}return{h:i,s:l,v:o}}function E2e(t,e,n){t=ia(t,360)*6,e=ia(e,100),n=ia(n,100);var r=Math.floor(t),a=t-r,i=n*(1-e),o=n*(1-a*e),s=n*(1-(1-a)*e),l=r%6,u=[n,o,i,i,s,n][l],c=[s,n,n,o,i,i][l],f=[i,i,s,n,n,o][l];return{r:u*255,g:c*255,b:f*255}}function FI(t,e,n,r){var a=[Zf(Math.round(t).toString(16)),Zf(Math.round(e).toString(16)),Zf(Math.round(n).toString(16))];return r&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function M2e(t,e,n,r,a){var i=[Zf(Math.round(t).toString(16)),Zf(Math.round(e).toString(16)),Zf(Math.round(n).toString(16)),Zf(D2e(r))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function D2e(t){return Math.round(parseFloat(t)*255).toString(16)}function zI(t){return bi(t)/255}function bi(t){return parseInt(t,16)}function k2e(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var ND={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 R2e(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=A2e(t)),typeof t=="object"&&(ol(t.r)&&ol(t.g)&&ol(t.b)?(e=C2e(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ol(t.h)&&ol(t.s)&&ol(t.v)?(r=M1(t.s),a=M1(t.v),e=E2e(t.h,r,a),o=!0,s="hsv"):ol(t.h)&&ol(t.s)&&ol(t.l)&&(r=M1(t.s),i=M1(t.l),e=T2e(t.h,r,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=kK(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 L2e="[-\\+]?\\d+%?",O2e="[-\\+]?\\d*\\.\\d+%?",Pu="(?:".concat(O2e,")|(?:").concat(L2e,")"),OT="[\\s|\\(]+(".concat(Pu,")[,|\\s]+(").concat(Pu,")[,|\\s]+(").concat(Pu,")\\s*\\)?"),AT="[\\s|\\(]+(".concat(Pu,")[,|\\s]+(").concat(Pu,")[,|\\s]+(").concat(Pu,")[,|\\s]+(").concat(Pu,")\\s*\\)?"),_o={CSS_UNIT:new RegExp(Pu),rgb:new RegExp("rgb"+OT),rgba:new RegExp("rgba"+AT),hsl:new RegExp("hsl"+OT),hsla:new RegExp("hsla"+AT),hsv:new RegExp("hsv"+OT),hsva:new RegExp("hsva"+AT),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 A2e(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(ND[t])t=ND[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=_o.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=_o.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=_o.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=_o.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=_o.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=_o.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=_o.hex8.exec(t),n?{r:bi(n[1]),g:bi(n[2]),b:bi(n[3]),a:zI(n[4]),format:e?"name":"hex8"}:(n=_o.hex6.exec(t),n?{r:bi(n[1]),g:bi(n[2]),b:bi(n[3]),format:e?"name":"hex"}:(n=_o.hex4.exec(t),n?{r:bi(n[1]+n[1]),g:bi(n[2]+n[2]),b:bi(n[3]+n[3]),a:zI(n[4]+n[4]),format:e?"name":"hex8"}:(n=_o.hex3.exec(t),n?{r:bi(n[1]+n[1]),g:bi(n[2]+n[2]),b:bi(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function ol(t){return!!_o.CSS_UNIT.exec(String(t))}var RK=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=k2e(e)),this.originalInput=e;var a=R2e(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=kK(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=PI(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=PI(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=II(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=II(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),FI(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),M2e(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(ia(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(ia(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="#"+FI(this.r,this.g,this.b,!1),n=0,r=Object.entries(ND);n<r.length;n++){var a=r[n],i=a[0],o=a[1];if(e===o)return i}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var r=!1,a=this.a<1&&this.a>=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=E1(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=E1(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=E1(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=E1(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<e;o++)a.push(new t({h:(r+o*i)%360,s:n.s,l:n.l}));return a},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function su(t,e=20){return t.mix("#141414",e).toString()}function N2e(t){const e=mi(),n=ke("button");return A(()=>{let r={};const a=t.color;if(a){const i=new RK(a),o=t.dark?i.tint(20).toString():su(i,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?su(i,90):i.tint(90).toString(),"text-color":a,"border-color":t.dark?su(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?su(i,90):i.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?su(i,50):i.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?su(i,80):i.tint(80).toString());else{const s=t.dark?su(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?su(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 V2e=ae({name:"ElButton"}),B2e=ae({...V2e,props:AD,emits:w2e,setup(t,{expose:e,emit:n}){const r=t,a=N2e(r),i=ke("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=S2e(r,n);return e({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(h,v)=>(I(),ve(Dt(h.tag),Mt({ref_key:"_ref",ref:o},w(c),{class:[w(i).b(),w(i).m(w(l)),w(i).m(w(s)),w(i).is("disabled",w(u)),w(i).is("loading",h.loading),w(i).is("plain",h.plain),w(i).is("round",h.round),w(i).is("circle",h.circle),w(i).is("text",h.text),w(i).is("link",h.link),w(i).is("has-bg",h.bg)],style:w(a),onClick:w(d)}),{default:q(()=>[h.loading?(I(),X(Qe,{key:0},[h.$slots.loading?Ce(h.$slots,"loading",{key:0}):(I(),ve(w(qe),{key:1,class:z(w(i).is("loading"))},{default:q(()=>[(I(),ve(Dt(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(I(),ve(w(qe),{key:1},{default:q(()=>[h.icon?(I(),ve(Dt(h.icon),{key:0})):Ce(h.$slots,"icon",{key:1})]),_:3})):de("v-if",!0),h.$slots.default?(I(),X("span",{key:2,class:z({[w(i).em("text","expand")]:w(f)})},[Ce(h.$slots,"default")],2)):de("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var $2e=Ae(B2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const I2e={size:AD.size,type:AD.type},P2e=ae({name:"ElButtonGroup"}),F2e=ae({...P2e,props:I2e,setup(t){const e=t;At(DK,Zt({size:Kn(e,"size"),type:Kn(e,"type")}));const n=ke("button");return(r,a)=>(I(),X("div",{class:z(`${w(n).b("group")}`)},[Ce(r.$slots,"default")],2))}});var LK=Ae(F2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const ln=Tt($2e,{ButtonGroup:LK}),OK=Qn(LK);var AK={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(gr,function(){var n=1e3,r=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",u="day",c="week",f="month",d="quarter",h="year",v="date",p="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,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(O){var B=["th","st","nd","rd"],$=O%100;return"["+O+(B[($-20)%10]||B[$]||B[0])+"]"}},S=function(O,B,$){var V=String(O);return!V||V.length>=B?O:""+Array(B+1-V.length).join($)+O},b={s:S,z:function(O){var B=-O.utcOffset(),$=Math.abs(B),V=Math.floor($/60),F=$%60;return(B<=0?"+":"-")+S(V,2,"0")+":"+S(F,2,"0")},m:function O(B,$){if(B.date()<$.date())return-O($,B);var V=12*($.year()-B.year())+($.month()-B.month()),F=B.clone().add(V,f),L=$-F<0,N=B.clone().add(V+(L?-1:1),f);return+(-(V+($-F)/(L?F-N:N-F))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:f,y:h,w:c,d:u,D:v,h:l,m:s,s:o,ms:i,Q:d}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},x="en",_={};_[x]=m;var C="$isDayjsObject",T=function(O){return O instanceof k||!(!O||!O[C])},D=function O(B,$,V){var F;if(!B)return x;if(typeof B=="string"){var L=B.toLowerCase();_[L]&&(F=L),$&&(_[L]=$,F=L);var N=B.split("-");if(!F&&N.length>1)return O(N[0])}else{var H=B.name;_[H]=B,F=H}return!V&&F&&(x=F),F||!V&&x},M=function(O,B){if(T(O))return O.clone();var $=typeof B=="object"?B:{};return $.date=O,$.args=arguments,new k($)},E=b;E.l=D,E.i=T,E.w=function(O,B){return M(O,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var k=function(){function O($){this.$L=D($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[C]=!0}var B=O.prototype;return B.parse=function($){this.$d=function(V){var F=V.date,L=V.utc;if(F===null)return new Date(NaN);if(E.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var N=F.match(g);if(N){var H=N[2]-1||0,K=(N[7]||"0").substring(0,3);return L?new Date(Date.UTC(N[1],H,N[3]||1,N[4]||0,N[5]||0,N[6]||0,K)):new Date(N[1],H,N[3]||1,N[4]||0,N[5]||0,N[6]||0,K)}}return new Date(F)}($),this.init()},B.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},B.$utils=function(){return E},B.isValid=function(){return this.$d.toString()!==p},B.isSame=function($,V){var F=M($);return this.startOf(V)<=F&&F<=this.endOf(V)},B.isAfter=function($,V){return M($)<this.startOf(V)},B.isBefore=function($,V){return this.endOf(V)<M($)},B.$g=function($,V,F){return E.u($)?this[V]:this.set(F,$)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function($,V){var F=this,L=!!E.u(V)||V,N=E.p($),H=function(ee,ce){var ue=E.w(F.$u?Date.UTC(F.$y,ce,ee):new Date(F.$y,ce,ee),F);return L?ue:ue.endOf(u)},K=function(ee,ce){return E.w(F.toDate()[ee].apply(F.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(ce)),F)},Q=this.$W,ie=this.$M,be=this.$D,le="set"+(this.$u?"UTC":"");switch(N){case h:return L?H(1,0):H(31,11);case f:return L?H(1,ie):H(0,ie+1);case c:var J=this.$locale().weekStart||0,Z=(Q<J?Q+7:Q)-J;return H(L?be-Z:be+(6-Z),ie);case u:case v:return K(le+"Hours",0);case l:return K(le+"Minutes",1);case s:return K(le+"Seconds",2);case o:return K(le+"Milliseconds",3);default:return this.clone()}},B.endOf=function($){return this.startOf($,!1)},B.$set=function($,V){var F,L=E.p($),N="set"+(this.$u?"UTC":""),H=(F={},F[u]=N+"Date",F[v]=N+"Date",F[f]=N+"Month",F[h]=N+"FullYear",F[l]=N+"Hours",F[s]=N+"Minutes",F[o]=N+"Seconds",F[i]=N+"Milliseconds",F)[L],K=L===u?this.$D+(V-this.$W):V;if(L===f||L===h){var Q=this.clone().set(v,1);Q.$d[H](K),Q.init(),this.$d=Q.set(v,Math.min(this.$D,Q.daysInMonth())).$d}else H&&this.$d[H](K);return this.init(),this},B.set=function($,V){return this.clone().$set($,V)},B.get=function($){return this[E.p($)]()},B.add=function($,V){var F,L=this;$=Number($);var N=E.p(V),H=function(ie){var be=M(L);return E.w(be.date(be.date()+Math.round(ie*$)),L)};if(N===f)return this.set(f,this.$M+$);if(N===h)return this.set(h,this.$y+$);if(N===u)return H(1);if(N===c)return H(7);var K=(F={},F[s]=r,F[l]=a,F[o]=n,F)[N]||1,Q=this.$d.getTime()+$*K;return E.w(Q,this)},B.subtract=function($,V){return this.add(-1*$,V)},B.format=function($){var V=this,F=this.$locale();if(!this.isValid())return F.invalidDate||p;var L=$||"YYYY-MM-DDTHH:mm:ssZ",N=E.z(this),H=this.$H,K=this.$m,Q=this.$M,ie=F.weekdays,be=F.months,le=F.meridiem,J=function(ce,ue,Y,te){return ce&&(ce[ue]||ce(V,L))||Y[ue].slice(0,te)},Z=function(ce){return E.s(H%12||12,ce,"0")},ee=le||function(ce,ue,Y){var te=ce<12?"AM":"PM";return Y?te.toLowerCase():te};return L.replace(y,function(ce,ue){return ue||function(Y){switch(Y){case"YY":return String(V.$y).slice(-2);case"YYYY":return E.s(V.$y,4,"0");case"M":return Q+1;case"MM":return E.s(Q+1,2,"0");case"MMM":return J(F.monthsShort,Q,be,3);case"MMMM":return J(be,Q);case"D":return V.$D;case"DD":return E.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return J(F.weekdaysMin,V.$W,ie,2);case"ddd":return J(F.weekdaysShort,V.$W,ie,3);case"dddd":return ie[V.$W];case"H":return String(H);case"HH":return E.s(H,2,"0");case"h":return Z(1);case"hh":return Z(2);case"a":return ee(H,K,!0);case"A":return ee(H,K,!1);case"m":return String(K);case"mm":return E.s(K,2,"0");case"s":return String(V.$s);case"ss":return E.s(V.$s,2,"0");case"SSS":return E.s(V.$ms,3,"0");case"Z":return N}return null}(ce)||N.replace(":","")})},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function($,V,F){var L,N=this,H=E.p(V),K=M($),Q=(K.utcOffset()-this.utcOffset())*r,ie=this-K,be=function(){return E.m(N,K)};switch(H){case h:L=be()/12;break;case f:L=be();break;case d:L=be()/3;break;case c:L=(ie-Q)/6048e5;break;case u:L=(ie-Q)/864e5;break;case l:L=ie/a;break;case s:L=ie/r;break;case o:L=ie/n;break;default:L=ie}return F?L:E.a(L)},B.daysInMonth=function(){return this.endOf(f).$D},B.$locale=function(){return _[this.$L]},B.locale=function($,V){if(!$)return this.$L;var F=this.clone(),L=D($,V,!0);return L&&(F.$L=L),F},B.clone=function(){return E.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},O}(),R=k.prototype;return M.prototype=R,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",v]].forEach(function(O){R[O[1]]=function(B){return this.$g(B,O[0],O[1])}}),M.extend=function(O,B){return O.$i||(O(B,k,M),O.$i=!0),M},M.locale=D,M.isDayjs=T,M.unix=function(O){return M(1e3*O)},M.en=_[x],M.Ls=_,M.p={},M})})(AK);var z2e=AK.exports;const xt=Ai(z2e);var NK={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(gr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,s={},l=function(p){return(p=+p)+(p>68?1900:2e3)},u=function(p){return function(g){this[p]=+g}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var y=g.match(/([+-]|\d\d)/g),m=60*y[1]+(+y[2]||0);return m===0?0:y[0]==="+"?-m:m}(p)}],f=function(p){var g=s[p];return g&&(g.indexOf?g:g.s.concat(g.f))},d=function(p,g){var y,m=s.meridiem;if(m){for(var S=1;S<=24;S+=1)if(p.indexOf(m(S,0,g))>-1){y=S>12;break}}else y=p===(g?"pm":"PM");return y},h={A:[o,function(p){this.afternoon=d(p,!1)}],a:[o,function(p){this.afternoon=d(p,!0)}],S:[/\d/,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[i,u("seconds")],ss:[i,u("seconds")],m:[i,u("minutes")],mm:[i,u("minutes")],H:[i,u("hours")],h:[i,u("hours")],HH:[i,u("hours")],hh:[i,u("hours")],D:[i,u("day")],DD:[a,u("day")],Do:[o,function(p){var g=s.ordinal,y=p.match(/\d+/);if(this.day=y[0],g)for(var m=1;m<=31;m+=1)g(m).replace(/\[|\]/g,"")===p&&(this.day=m)}],M:[i,u("month")],MM:[a,u("month")],MMM:[o,function(p){var g=f("months"),y=(f("monthsShort")||g.map(function(m){return m.slice(0,3)})).indexOf(p)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[o,function(p){var g=f("months").indexOf(p)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(p){this.year=l(p)}],YYYY:[/\d{4}/,u("year")],Z:c,ZZ:c};function v(p){var g,y;g=p,y=s&&s.formats;for(var m=(p=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,M,E){var k=E&&E.toUpperCase();return M||y[E]||n[E]||y[k].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(R,O,B){return O||B.slice(1)})})).match(r),S=m.length,b=0;b<S;b+=1){var x=m[b],_=h[x],C=_&&_[0],T=_&&_[1];m[b]=T?{regex:C,parser:T}:x.replace(/^\[|\]$/g,"")}return function(D){for(var M={},E=0,k=0;E<S;E+=1){var R=m[E];if(typeof R=="string")k+=R.length;else{var O=R.regex,B=R.parser,$=D.slice(k),V=O.exec($)[0];B.call(M,V),D=D.replace(V,"")}}return function(F){var L=F.afternoon;if(L!==void 0){var N=F.hours;L?N<12&&(F.hours+=12):N===12&&(F.hours=0),delete F.afternoon}}(M),M}}return function(p,g,y){y.p.customParseFormat=!0,p&&p.parseTwoDigitYear&&(l=p.parseTwoDigitYear);var m=g.prototype,S=m.parse;m.parse=function(b){var x=b.date,_=b.utc,C=b.args;this.$u=_;var T=C[1];if(typeof T=="string"){var D=C[2]===!0,M=C[3]===!0,E=D||M,k=C[2];M&&(k=C[2]),s=this.$locale(),!D&&k&&(s=y.Ls[k]),this.$d=function($,V,F){try{if(["x","X"].indexOf(V)>-1)return new Date((V==="X"?1e3:1)*$);var L=v(V)($),N=L.year,H=L.month,K=L.day,Q=L.hours,ie=L.minutes,be=L.seconds,le=L.milliseconds,J=L.zone,Z=new Date,ee=K||(N||H?1:Z.getDate()),ce=N||Z.getFullYear(),ue=0;N&&!H||(ue=H>0?H-1:Z.getMonth());var Y=Q||0,te=ie||0,oe=be||0,Se=le||0;return J?new Date(Date.UTC(ce,ue,ee,Y,te,oe,Se+60*J.offset*1e3)):F?new Date(Date.UTC(ce,ue,ee,Y,te,oe,Se)):new Date(ce,ue,ee,Y,te,oe,Se)}catch{return new Date("")}}(x,T,_),this.init(),k&&k!==!0&&(this.$L=this.locale(k).$L),E&&x!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var R=T.length,O=1;O<=R;O+=1){C[1]=T[O-1];var B=y.apply(this,C);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}O===R&&(this.$d=new Date(""))}else S.call(this,b)}}})})(NK);var G2e=NK.exports;const sA=Ai(G2e),GI=["hours","minutes","seconds"],VD="HH:mm:ss",Fh="YYYY-MM-DD",U2e={date:Fh,dates:Fh,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${Fh} ${VD}`,monthrange:"YYYY-MM",daterange:Fh,datetimerange:`${Fh} ${VD}`},NT=(t,e)=>[t>0?t-1:void 0,t,t<e?t+1:void 0],Qu=t=>Array.from(Array.from({length:t}).keys()),VK=t=>t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),BK=t=>t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),UI=function(t,e){const n=kd(t),r=kd(e);return n&&r?t.getTime()===e.getTime():!n&&!r?t===e:!1},HI=function(t,e){const n=Ke(t),r=Ke(e);return n&&r?t.length!==e.length?!1:t.every((a,i)=>UI(a,e[i])):!n&&!r?UI(t,e):!1},WI=function(t,e,n){const r=Xi(e)||e==="x"?xt(t).locale(n):xt(t,e).locale(n);return r.isValid()?r:void 0},KI=function(t,e,n){return Xi(e)?t:e==="x"?+t:xt(t).locale(n).format(e)},VT=(t,e)=>{var n;const r=[],a=e==null?void 0:e();for(let i=0;i<t;i++)r.push((n=a==null?void 0:a.includes(i))!=null?n:!1);return r},$K=Ne({disabledHours:{type:ge(Function)},disabledMinutes:{type:ge(Function)},disabledSeconds:{type:ge(Function)}}),IK=Ne({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),lA=Ne({id:{type:ge([Array,String])},name:{type:ge([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:ge([String,Object]),default:kc},editable:{type:Boolean,default:!0},prefixIcon:{type:ge([String,Object]),default:""},size:sa,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:ge(Object),default:()=>({})},modelValue:{type:ge([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:ge([Date,Array])},defaultTime:{type:ge([Date,Array])},isRange:{type:Boolean,default:!1},...$K,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:ge([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),H2e=["id","name","placeholder","value","disabled","readonly"],W2e=["id","name","placeholder","value","disabled","readonly"],K2e=ae({name:"Picker"}),j2e=ae({...K2e,props:lA,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(t,{expose:e,emit:n}){const r=t,a=Hd(),{lang:i}=jt(),o=ke("date"),s=ke("input"),l=ke("range"),{form:u,formItem:c}=Qa(),f=Ye("ElPopperOptions",{}),d=G(),h=G(),v=G(!1),p=G(!1),g=G(null);let y=!1,m=!1;const S=A(()=>[o.b("editor"),o.bm("editor",r.type),s.e("wrapper"),o.is("disabled",K.value),o.is("active",v.value),l.b("editor"),ne?l.bm("editor",ne.value):"",a.class]),b=A(()=>[s.e("icon"),l.e("close-icon"),ee.value?"":l.e("close-icon--hidden")]);Me(v,re=>{re?Ze(()=>{re&&(g.value=r.modelValue)}):(me.value=null,Ze(()=>{x(r.modelValue)}))});const x=(re,Ue)=>{(Ue||!HI(re,g.value))&&(n("change",re),r.validateEvent&&(c==null||c.validate("change").catch(pt=>void 0)))},_=re=>{if(!HI(r.modelValue,re)){let Ue;Ke(re)?Ue=re.map(pt=>KI(pt,r.valueFormat,i.value)):re&&(Ue=KI(re,r.valueFormat,i.value)),n("update:modelValue",re&&Ue,i.value)}},C=re=>{n("keydown",re)},T=A(()=>{if(h.value){const re=fe.value?h.value:h.value.$el;return Array.from(re.querySelectorAll("input"))}return[]}),D=(re,Ue,pt)=>{const Bt=T.value;Bt.length&&(!pt||pt==="min"?(Bt[0].setSelectionRange(re,Ue),Bt[0].focus()):pt==="max"&&(Bt[1].setSelectionRange(re,Ue),Bt[1].focus()))},M=()=>{F(!0,!0),Ze(()=>{m=!1})},E=(re="",Ue=!1)=>{Ue||(m=!0),v.value=Ue;let pt;Ke(re)?pt=re.map(Bt=>Bt.toDate()):pt=re&&re.toDate(),me.value=null,_(pt)},k=()=>{p.value=!0},R=()=>{n("visible-change",!0)},O=re=>{(re==null?void 0:re.key)===nt.esc&&F(!0,!0)},B=()=>{p.value=!1,v.value=!1,m=!1,n("visible-change",!1)},$=()=>{v.value=!0},V=()=>{v.value=!1},F=(re=!0,Ue=!1)=>{m=Ue;const[pt,Bt]=w(T);let lr=pt;!re&&fe.value&&(lr=Bt),lr&&lr.focus()},L=re=>{r.readonly||K.value||v.value||m||(v.value=!0,n("focus",re))};let N;const H=re=>{const Ue=async()=>{setTimeout(()=>{var pt;N===Ue&&(!((pt=d.value)!=null&&pt.isFocusInsideContent()&&!y)&&T.value.filter(Bt=>Bt.contains(document.activeElement)).length===0&&(Te(),v.value=!1,n("blur",re),r.validateEvent&&(c==null||c.validate("blur").catch(Bt=>void 0))),y=!1)},0)};N=Ue,Ue()},K=A(()=>r.disabled||(u==null?void 0:u.disabled)),Q=A(()=>{let re;if(ue.value?se.value.getDefaultValue&&(re=se.value.getDefaultValue()):Ke(r.modelValue)?re=r.modelValue.map(Ue=>WI(Ue,r.valueFormat,i.value)):re=WI(r.modelValue,r.valueFormat,i.value),se.value.getRangeAvailableTime){const Ue=se.value.getRangeAvailableTime(re);di(Ue,re)||(re=Ue,_(Ke(re)?re.map(pt=>pt.toDate()):re.toDate()))}return Ke(re)&&re.some(Ue=>!Ue)&&(re=[]),re}),ie=A(()=>{if(!se.value.panelReady)return"";const re=ze(Q.value);return Ke(me.value)?[me.value[0]||re&&re[0]||"",me.value[1]||re&&re[1]||""]:me.value!==null?me.value:!le.value&&ue.value||!v.value&&ue.value?"":re?J.value?re.join(", "):re:""}),be=A(()=>r.type.includes("time")),le=A(()=>r.type.startsWith("time")),J=A(()=>r.type==="dates"),Z=A(()=>r.prefixIcon||(be.value?m9:eme)),ee=G(!1),ce=re=>{r.readonly||K.value||ee.value&&(re.stopPropagation(),M(),_(null),x(null,!0),ee.value=!1,v.value=!1,se.value.handleClear&&se.value.handleClear())},ue=A(()=>{const{modelValue:re}=r;return!re||Ke(re)&&!re.filter(Boolean).length}),Y=async re=>{var Ue;r.readonly||K.value||(((Ue=re.target)==null?void 0:Ue.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(v.value=!0)},te=()=>{r.readonly||K.value||!ue.value&&r.clearable&&(ee.value=!0)},oe=()=>{ee.value=!1},Se=re=>{var Ue;r.readonly||K.value||(((Ue=re.touches[0].target)==null?void 0:Ue.tagName)!=="INPUT"||T.value.includes(document.activeElement))&&(v.value=!0)},fe=A(()=>r.type.includes("range")),ne=_r(),Ee=A(()=>{var re,Ue;return(Ue=(re=w(d))==null?void 0:re.popperRef)==null?void 0:Ue.contentRef}),_e=A(()=>{var re;return w(fe)?w(h):(re=w(h))==null?void 0:re.$el});gO(_e,re=>{const Ue=w(Ee),pt=w(_e);Ue&&(re.target===Ue||re.composedPath().includes(Ue))||re.target===pt||re.composedPath().includes(pt)||(v.value=!1)});const me=G(null),Te=()=>{if(me.value){const re=Ve(ie.value);re&&We(re)&&(_(Ke(re)?re.map(Ue=>Ue.toDate()):re.toDate()),me.value=null)}me.value===""&&(_(null),x(null),me.value=null)},Ve=re=>re?se.value.parseUserInput(re):null,ze=re=>re?se.value.formatToString(re):null,We=re=>se.value.isValidValue(re),De=async re=>{if(r.readonly||K.value)return;const{code:Ue}=re;if(C(re),Ue===nt.esc){v.value===!0&&(v.value=!1,re.preventDefault(),re.stopPropagation());return}if(Ue===nt.down&&(se.value.handleFocusPicker&&(re.preventDefault(),re.stopPropagation()),v.value===!1&&(v.value=!0,await Ze()),se.value.handleFocusPicker)){se.value.handleFocusPicker();return}if(Ue===nt.tab){y=!0;return}if(Ue===nt.enter||Ue===nt.numpadEnter){(me.value===null||me.value===""||We(Ve(ie.value)))&&(Te(),v.value=!1),re.stopPropagation();return}if(me.value){re.stopPropagation();return}se.value.handleKeydownInput&&se.value.handleKeydownInput(re)},Fe=re=>{me.value=re,v.value||(v.value=!0)},at=re=>{const Ue=re.target;me.value?me.value=[Ue.value,me.value[1]]:me.value=[Ue.value,null]},yt=re=>{const Ue=re.target;me.value?me.value=[me.value[0],Ue.value]:me.value=[null,Ue.value]},Be=()=>{var re;const Ue=me.value,pt=Ve(Ue&&Ue[0]),Bt=w(Q);if(pt&&pt.isValid()){me.value=[ze(pt),((re=ie.value)==null?void 0:re[1])||null];const lr=[pt,Bt&&(Bt[1]||null)];We(lr)&&(_(lr),me.value=null)}},Je=()=>{var re;const Ue=w(me),pt=Ve(Ue&&Ue[1]),Bt=w(Q);if(pt&&pt.isValid()){me.value=[((re=w(ie))==null?void 0:re[0])||null,ze(pt)];const lr=[Bt&&Bt[0],pt];We(lr)&&(_(lr),me.value=null)}},se=G({}),he=re=>{se.value[re[0]]=re[1],se.value.panelReady=!0},pe=re=>{n("calendar-change",re)},Re=(re,Ue,pt)=>{n("panel-change",re,Ue,pt)};return At("EP_PICKER_BASE",{props:r}),e({focus:F,handleFocusInput:L,handleBlurInput:H,handleOpen:$,handleClose:V,onPick:E}),(re,Ue)=>(I(),ve(w(Ya),Mt({ref_key:"refPopper",ref:d,visible:v.value,effect:"light",pure:"",trigger:"click"},re.$attrs,{role:"dialog",teleported:"",transition:`${w(o).namespace.value}-zoom-in-top`,"popper-class":[`${w(o).namespace.value}-picker__popper`,re.popperClass],"popper-options":w(f),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:k,onShow:R,onHide:B}),{default:q(()=>[w(fe)?(I(),X("div",{key:1,ref_key:"inputRef",ref:h,class:z(w(S)),style:et(re.$attrs.style),onClick:L,onMouseenter:te,onMouseleave:oe,onTouchstart:Se,onKeydown:De},[w(Z)?(I(),ve(w(qe),{key:0,class:z([w(s).e("icon"),w(l).e("icon")]),onMousedown:ot(Y,["prevent"]),onTouchstart:Se},{default:q(()=>[(I(),ve(Dt(w(Z))))]),_:1},8,["class","onMousedown"])):de("v-if",!0),P("input",{id:re.id&&re.id[0],autocomplete:"off",name:re.name&&re.name[0],placeholder:re.startPlaceholder,value:w(ie)&&w(ie)[0],disabled:w(K),readonly:!re.editable||re.readonly,class:z(w(l).b("input")),onMousedown:Y,onInput:at,onChange:Be,onFocus:L,onBlur:H},null,42,H2e),Ce(re.$slots,"range-separator",{},()=>[P("span",{class:z(w(l).b("separator"))},Le(re.rangeSeparator),3)]),P("input",{id:re.id&&re.id[1],autocomplete:"off",name:re.name&&re.name[1],placeholder:re.endPlaceholder,value:w(ie)&&w(ie)[1],disabled:w(K),readonly:!re.editable||re.readonly,class:z(w(l).b("input")),onMousedown:Y,onFocus:L,onBlur:H,onInput:yt,onChange:Je},null,42,W2e),re.clearIcon?(I(),ve(w(qe),{key:1,class:z(w(b)),onClick:ce},{default:q(()=>[(I(),ve(Dt(re.clearIcon)))]),_:1},8,["class"])):de("v-if",!0)],38)):(I(),ve(w(wa),{key:0,id:re.id,ref_key:"inputRef",ref:h,"container-role":"combobox","model-value":w(ie),name:re.name,size:w(ne),disabled:w(K),placeholder:re.placeholder,class:z([w(o).b("editor"),w(o).bm("editor",re.type),re.$attrs.class]),style:et(re.$attrs.style),readonly:!re.editable||re.readonly||w(J)||re.type==="week",label:re.label,tabindex:re.tabindex,"validate-event":!1,onInput:Fe,onFocus:L,onBlur:H,onKeydown:De,onChange:Te,onMousedown:Y,onMouseenter:te,onMouseleave:oe,onTouchstart:Se,onClick:Ue[0]||(Ue[0]=ot(()=>{},["stop"]))},{prefix:q(()=>[w(Z)?(I(),ve(w(qe),{key:0,class:z(w(s).e("icon")),onMousedown:ot(Y,["prevent"]),onTouchstart:Se},{default:q(()=>[(I(),ve(Dt(w(Z))))]),_:1},8,["class","onMousedown"])):de("v-if",!0)]),suffix:q(()=>[ee.value&&re.clearIcon?(I(),ve(w(qe),{key:0,class:z(`${w(s).e("icon")} clear-icon`),onClick:ot(ce,["stop"])},{default:q(()=>[(I(),ve(Dt(re.clearIcon)))]),_:1},8,["class","onClick"])):de("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:q(()=>[Ce(re.$slots,"default",{visible:v.value,actualVisible:p.value,parsedValue:w(Q),format:re.format,unlinkPanels:re.unlinkPanels,type:re.type,defaultValue:re.defaultValue,onPick:E,onSelectRange:D,onSetPickerOption:he,onCalendarChange:pe,onPanelChange:Re,onKeydown:O,onMousedown:Ue[1]||(Ue[1]=ot(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var PK=Ae(j2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const Y2e=Ne({...IK,datetimeRole:String,parsedValue:{type:ge(Object)}}),FK=({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 v=c[d];switch(d){case"minute":{h=v(f.hour(),s,u);break}case"second":{h=v(f.hour(),f.minute(),s,u);break}default:{h=v(s,u);break}}if(h!=null&&h.length&&!h.includes(f[d]())){const p=l?0:h.length-1;f=f[d](h[p])}}}),f},a={};return{timePickerOptions:a,getAvailableTime:r,onSetOption:([o,s])=>{a[o]=s}}},BT=t=>{const e=(r,a)=>r||a,n=r=>r!==!0;return t.map(e).filter(n)},zK=(t,e,n)=>({getHoursList:(o,s)=>VT(24,t&&(()=>t==null?void 0:t(o,s))),getMinutesList:(o,s,l)=>VT(60,e&&(()=>e==null?void 0:e(o,s,l))),getSecondsList:(o,s,l,u)=>VT(60,n&&(()=>n==null?void 0:n(o,s,l,u)))}),GK=(t,e,n)=>{const{getHoursList:r,getMinutesList:a,getSecondsList:i}=zK(t,e,n);return{getAvailableHours:(u,c)=>BT(r(u,c)),getAvailableMinutes:(u,c,f)=>BT(a(u,c,f)),getAvailableSeconds:(u,c,f,d)=>BT(i(u,c,f,d))}},UK=t=>{const e=G(t.parsedValue);return Me(()=>t.visible,n=>{n||(e.value=t.parsedValue)}),e},xu=new Map;let jI;Ht&&(document.addEventListener("mousedown",t=>jI=t),document.addEventListener("mouseup",t=>{for(const e of xu.values())for(const{documentHandler:n}of e)n(t,jI)}));function YI(t,e){let n=[];return Array.isArray(e.arg)?n=e.arg:io(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(v=>v==null?void 0:v.contains(o))||n.length&&n.includes(s),h=i&&(i.contains(o)||i.contains(s));l||u||c||f||d||h||e.value(r,a)}}const pc={beforeMount(t,e){xu.has(t)||xu.set(t,[]),xu.get(t).push({documentHandler:YI(t,e),bindingFn:e.value})},updated(t,e){xu.has(t)||xu.set(t,[]);const n=xu.get(t),r=n.findIndex(i=>i.bindingFn===e.oldValue),a={documentHandler:YI(t,e),bindingFn:e.value};r>=0?n.splice(r,1,a):n.push(a)},unmounted(t){xu.delete(t)}},X2e=100,q2e=600,Iw={beforeMount(t,e){const n=e.value,{interval:r=X2e,delay:a=q2e}=ft(n)?{}:n;let i,o;const s=()=>ft(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))})}},BD="_trap-focus-children",Qf=[],XI=t=>{if(Qf.length===0)return;const e=Qf[Qf.length-1][BD];if(e.length>0&&t.code===nt.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())}},Z2e={beforeMount(t){t[BD]=u$(t),Qf.push(t),Qf.length<=1&&document.addEventListener("keydown",XI)},updated(t){Ze(()=>{t[BD]=u$(t)})},unmounted(){Qf.shift(),Qf.length===0&&document.removeEventListener("keydown",XI)}};var qI=!1,Ff,$D,ID,kb,Rb,HK,Lb,PD,FD,zD,WK,GD,UD,KK,jK;function ni(){if(!qI){qI=!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(GD=/\b(iPhone|iP[ao]d)/.exec(t),UD=/\b(iP[ao]d)/.exec(t),zD=/Android/i.exec(t),KK=/FBAN\/\w+;/i.exec(t),jK=/Mobile/i.exec(t),WK=!!/Win64/.exec(t),e){Ff=e[1]?parseFloat(e[1]):e[5]?parseFloat(e[5]):NaN,Ff&&document&&document.documentMode&&(Ff=document.documentMode);var r=/(?:Trident\/(\d+.\d+))/.exec(t);HK=r?parseFloat(r[1])+4:Ff,$D=e[2]?parseFloat(e[2]):NaN,ID=e[3]?parseFloat(e[3]):NaN,kb=e[4]?parseFloat(e[4]):NaN,kb?(e=/(?:Chrome\/(\d+\.\d+))/.exec(t),Rb=e&&e[1]?parseFloat(e[1]):NaN):Rb=NaN}else Ff=$D=ID=Rb=kb=NaN;if(n){if(n[1]){var a=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);Lb=a?parseFloat(a[1].replace("_",".")):!0}else Lb=!1;PD=!!n[2],FD=!!n[3]}else Lb=PD=FD=!1}}var HD={ie:function(){return ni()||Ff},ieCompatibilityMode:function(){return ni()||HK>Ff},ie64:function(){return HD.ie()&&WK},firefox:function(){return ni()||$D},opera:function(){return ni()||ID},webkit:function(){return ni()||kb},safari:function(){return HD.webkit()},chrome:function(){return ni()||Rb},windows:function(){return ni()||PD},osx:function(){return ni()||Lb},linux:function(){return ni()||FD},iphone:function(){return ni()||GD},mobile:function(){return ni()||GD||UD||zD||jK},nativeApp:function(){return ni()||KK},android:function(){return ni()||zD},ipad:function(){return ni()||UD}},Q2e=HD,D1=!!(typeof window<"u"&&window.document&&window.document.createElement),J2e={canUseDOM:D1,canUseWorkers:typeof Worker<"u",canUseEventListeners:D1&&!!(window.addEventListener||window.attachEvent),canUseViewport:D1&&!!window.screen,isInWorker:!D1},YK=J2e,XK;YK.canUseDOM&&(XK=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function eEe(t,e){if(!YK.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&&XK&&t==="wheel"&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var tEe=eEe,ZI=10,QI=40,JI=800;function qK(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*ZI,a=n*ZI,"deltaY"in t&&(a=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||a)&&t.deltaMode&&(t.deltaMode==1?(r*=QI,a*=QI):(r*=JI,a*=JI)),r&&!e&&(e=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:e,spinY:n,pixelX:r,pixelY:a}}qK.getEventType=function(){return Q2e.firefox()?"DOMMouseScroll":tEe("wheel")?"wheel":"mousewheel"};var nEe=qK;/**
- * 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 rEe=function(t,e){if(t&&t.addEventListener){const n=function(r){const a=nEe(r);e&&Reflect.apply(e,this,[r,a])};t.addEventListener("wheel",n,{passive:!0})}},aEe={beforeMount(t,e){rEe(t,e.value)}},iEe=Ne({role:{type:String,required:!0},spinnerDate:{type:ge(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:ge(String),default:""},...$K}),oEe=["onClick"],sEe=["onMouseenter"],lEe=ae({__name:"basic-time-spinner",props:iEe,emits:["change","select-range","set-option"],setup(t,{emit:e}){const n=t,r=ke("time"),{getHoursList:a,getMinutesList:i,getSecondsList:o}=zK(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let s=!1;const l=G(),u=G(),c=G(),f=G(),d={hours:u,minutes:c,seconds:f},h=A(()=>n.showSeconds?GI:GI.slice(0,2)),v=A(()=>{const{spinnerDate:L}=n,N=L.hour(),H=L.minute(),K=L.second();return{hours:N,minutes:H,seconds:K}}),p=A(()=>{const{hours:L,minutes:N}=w(v);return{hours:a(n.role),minutes:i(L,n.role),seconds:o(L,N,n.role)}}),g=A(()=>{const{hours:L,minutes:N,seconds:H}=w(v);return{hours:NT(L,23),minutes:NT(N,59),seconds:NT(H,59)}}),y=ja(L=>{s=!1,b(L)},200),m=L=>{if(!!!n.amPmMode)return"";const H=n.amPmMode==="A";let K=L<12?" am":" pm";return H&&(K=K.toUpperCase()),K},S=L=>{let N;switch(L){case"hours":N=[0,2];break;case"minutes":N=[3,5];break;case"seconds":N=[6,8];break}const[H,K]=N;e("select-range",H,K),l.value=L},b=L=>{C(L,w(v)[L])},x=()=>{b("hours"),b("minutes"),b("seconds")},_=L=>L.querySelector(`.${r.namespace.value}-scrollbar__wrap`),C=(L,N)=>{if(n.arrowControl)return;const H=w(d[L]);H&&H.$el&&(_(H.$el).scrollTop=Math.max(0,N*T(L)))},T=L=>{const N=w(d[L]),H=N==null?void 0:N.$el.querySelector("li");return H&&Number.parseFloat($u(H,"height"))||0},D=()=>{E(1)},M=()=>{E(-1)},E=L=>{l.value||S("hours");const N=l.value,H=w(v)[N],K=l.value==="hours"?24:60,Q=k(N,H,L,K);R(N,Q),C(N,Q),Ze(()=>S(N))},k=(L,N,H,K)=>{let Q=(N+H+K)%K;const ie=w(p)[L];for(;ie[Q]&&Q!==N;)Q=(Q+H+K)%K;return Q},R=(L,N)=>{if(w(p)[L][N])return;const{hours:Q,minutes:ie,seconds:be}=w(v);let le;switch(L){case"hours":le=n.spinnerDate.hour(N).minute(ie).second(be);break;case"minutes":le=n.spinnerDate.hour(Q).minute(N).second(be);break;case"seconds":le=n.spinnerDate.hour(Q).minute(ie).second(N);break}e("change",le)},O=(L,{value:N,disabled:H})=>{H||(R(L,N),S(L),C(L,N))},B=L=>{s=!0,y(L);const N=Math.min(Math.round((_(w(d[L]).$el).scrollTop-($(L)*.5-10)/T(L)+3)/T(L)),L==="hours"?23:59);R(L,N)},$=L=>w(d[L]).$el.offsetHeight,V=()=>{const L=N=>{const H=w(d[N]);H&&H.$el&&(_(H.$el).onscroll=()=>{B(N)})};L("hours"),L("minutes"),L("seconds")};St(()=>{Ze(()=>{!n.arrowControl&&V(),x(),n.role==="start"&&S("hours")})});const F=(L,N)=>{d[N].value=L};return e("set-option",[`${n.role}_scrollDown`,E]),e("set-option",[`${n.role}_emitSelectRange`,S]),Me(()=>n.spinnerDate,()=>{s||x()}),(L,N)=>(I(),X("div",{class:z([w(r).b("spinner"),{"has-seconds":L.showSeconds}])},[L.arrowControl?de("v-if",!0):(I(!0),X(Qe,{key:0},Vt(w(h),H=>(I(),ve(w(Jl),{key:H,ref_for:!0,ref:K=>F(K,H),class:z(w(r).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":w(r).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:K=>S(H),onMousemove:K=>b(H)},{default:q(()=>[(I(!0),X(Qe,null,Vt(w(p)[H],(K,Q)=>(I(),X("li",{key:Q,class:z([w(r).be("spinner","item"),w(r).is("active",Q===w(v)[H]),w(r).is("disabled",K)]),onClick:ie=>O(H,{value:Q,disabled:K})},[H==="hours"?(I(),X(Qe,{key:0},[dt(Le(("0"+(L.amPmMode?Q%12||12:Q)).slice(-2))+Le(m(Q)),1)],64)):(I(),X(Qe,{key:1},[dt(Le(("0"+Q).slice(-2)),1)],64))],10,oEe))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),L.arrowControl?(I(!0),X(Qe,{key:1},Vt(w(h),H=>(I(),X("div",{key:H,class:z([w(r).be("spinner","wrapper"),w(r).is("arrow")]),onMouseenter:K=>S(H)},[ct((I(),ve(w(qe),{class:z(["arrow-up",w(r).be("spinner","arrow")])},{default:q(()=>[U(w(Ux))]),_:1},8,["class"])),[[w(Iw),M]]),ct((I(),ve(w(qe),{class:z(["arrow-down",w(r).be("spinner","arrow")])},{default:q(()=>[U(w(Dc))]),_:1},8,["class"])),[[w(Iw),D]]),P("ul",{class:z(w(r).be("spinner","list"))},[(I(!0),X(Qe,null,Vt(w(g)[H],(K,Q)=>(I(),X("li",{key:Q,class:z([w(r).be("spinner","item"),w(r).is("active",K===w(v)[H]),w(r).is("disabled",w(p)[H][K])])},[typeof K=="number"?(I(),X(Qe,{key:0},[H==="hours"?(I(),X(Qe,{key:0},[dt(Le(("0"+(L.amPmMode?K%12||12:K)).slice(-2))+Le(m(K)),1)],64)):(I(),X(Qe,{key:1},[dt(Le(("0"+K).slice(-2)),1)],64))],64)):de("v-if",!0)],2))),128))],2)],42,sEe))),128)):de("v-if",!0)],2))}});var WD=Ae(lEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const uEe=ae({__name:"panel-time-pick",props:Y2e,emits:["pick","select-range","set-picker-option"],setup(t,{emit:e}){const n=t,r=Ye("EP_PICKER_BASE"),{arrowControl:a,disabledHours:i,disabledMinutes:o,disabledSeconds:s,defaultValue:l}=r.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=GK(i,o,s),d=ke("time"),{t:h,lang:v}=jt(),p=G([0,2]),g=UK(n),y=A(()=>kr(n.actualVisible)?`${d.namespace.value}-zoom-in-top`:""),m=A(()=>n.format.includes("ss")),S=A(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),b=F=>{const L=xt(F).locale(v.value),N=O(L);return L.isSame(N)},x=()=>{e("pick",g.value,!1)},_=(F=!1,L=!1)=>{L||e("pick",n.parsedValue,F)},C=F=>{if(!n.visible)return;const L=O(F).millisecond(0);e("pick",L,!0)},T=(F,L)=>{e("select-range",F,L),p.value=[F,L]},D=F=>{const L=[0,3].concat(m.value?[6]:[]),N=["hours","minutes"].concat(m.value?["seconds"]:[]),K=(L.indexOf(p.value[0])+F+L.length)%L.length;E.start_emitSelectRange(N[K])},M=F=>{const L=F.code,{left:N,right:H,up:K,down:Q}=nt;if([N,H].includes(L)){D(L===N?-1:1),F.preventDefault();return}if([K,Q].includes(L)){const ie=L===K?-1:1;E.start_scrollDown(ie),F.preventDefault();return}},{timePickerOptions:E,onSetOption:k,getAvailableTime:R}=FK({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),O=F=>R(F,n.datetimeRole||"",!0),B=F=>F?xt(F,n.format).locale(v.value):null,$=F=>F?F.format(n.format):null,V=()=>xt(l).locale(v.value);return e("set-picker-option",["isValidValue",b]),e("set-picker-option",["formatToString",$]),e("set-picker-option",["parseUserInput",B]),e("set-picker-option",["handleKeydownInput",M]),e("set-picker-option",["getRangeAvailableTime",O]),e("set-picker-option",["getDefaultValue",V]),(F,L)=>(I(),ve(or,{name:w(y)},{default:q(()=>[F.actualVisible||F.visible?(I(),X("div",{key:0,class:z(w(d).b("panel"))},[P("div",{class:z([w(d).be("panel","content"),{"has-seconds":w(m)}])},[U(WD,{ref:"spinner",role:F.datetimeRole||"start","arrow-control":w(a),"show-seconds":w(m),"am-pm-mode":w(S),"spinner-date":F.parsedValue,"disabled-hours":w(i),"disabled-minutes":w(o),"disabled-seconds":w(s),onChange:C,onSetOption:w(k),onSelectRange:T},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),P("div",{class:z(w(d).be("panel","footer"))},[P("button",{type:"button",class:z([w(d).be("panel","btn"),"cancel"]),onClick:x},Le(w(h)("el.datepicker.cancel")),3),P("button",{type:"button",class:z([w(d).be("panel","btn"),"confirm"]),onClick:L[0]||(L[0]=N=>_())},Le(w(h)("el.datepicker.confirm")),3)],2)],2)):de("v-if",!0)]),_:1},8,["name"]))}});var Pw=Ae(uEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const cEe=Ne({...IK,parsedValue:{type:ge(Array)}}),fEe=["disabled"],dEe=ae({__name:"panel-time-range",props:cEe,emits:["pick","select-range","set-picker-option"],setup(t,{emit:e}){const n=t,r=(ue,Y)=>{const te=[];for(let oe=ue;oe<=Y;oe++)te.push(oe);return te},{t:a,lang:i}=jt(),o=ke("time"),s=ke("picker"),l=Ye("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:d,defaultValue:h}=l.props,v=A(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),b.value?"has-seconds":""]),p=A(()=>[o.be("range-picker","body"),o.be("panel","content"),o.is("arrow",u),b.value?"has-seconds":""]),g=A(()=>n.parsedValue[0]),y=A(()=>n.parsedValue[1]),m=UK(n),S=()=>{e("pick",m.value,!1)},b=A(()=>n.format.includes("ss")),x=A(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),_=(ue=!1)=>{e("pick",[g.value,y.value],ue)},C=ue=>{M(ue.millisecond(0),y.value)},T=ue=>{M(g.value,ue.millisecond(0))},D=ue=>{const Y=ue.map(oe=>xt(oe).locale(i.value)),te=H(Y);return Y[0].isSame(te[0])&&Y[1].isSame(te[1])},M=(ue,Y)=>{e("pick",[ue,Y],!0)},E=A(()=>g.value>y.value),k=G([0,2]),R=(ue,Y)=>{e("select-range",ue,Y,"min"),k.value=[ue,Y]},O=A(()=>b.value?11:8),B=(ue,Y)=>{e("select-range",ue,Y,"max");const te=w(O);k.value=[ue+te,Y+te]},$=ue=>{const Y=b.value?[0,3,6,11,14,17]:[0,3,8,11],te=["hours","minutes"].concat(b.value?["seconds"]:[]),Se=(Y.indexOf(k.value[0])+ue+Y.length)%Y.length,fe=Y.length/2;Se<fe?be.start_emitSelectRange(te[Se]):be.end_emitSelectRange(te[Se-fe])},V=ue=>{const Y=ue.code,{left:te,right:oe,up:Se,down:fe}=nt;if([te,oe].includes(Y)){$(Y===te?-1:1),ue.preventDefault();return}if([Se,fe].includes(Y)){const ne=Y===Se?-1:1,Ee=k.value[0]<O.value?"start":"end";be[`${Ee}_scrollDown`](ne),ue.preventDefault();return}},F=(ue,Y)=>{const te=c?c(ue):[],oe=ue==="start",fe=(Y||(oe?y.value:g.value)).hour(),ne=oe?r(fe+1,23):r(0,fe-1);return ET(te,ne)},L=(ue,Y,te)=>{const oe=f?f(ue,Y):[],Se=Y==="start",fe=te||(Se?y.value:g.value),ne=fe.hour();if(ue!==ne)return oe;const Ee=fe.minute(),_e=Se?r(Ee+1,59):r(0,Ee-1);return ET(oe,_e)},N=(ue,Y,te,oe)=>{const Se=d?d(ue,Y,te):[],fe=te==="start",ne=oe||(fe?y.value:g.value),Ee=ne.hour(),_e=ne.minute();if(ue!==Ee||Y!==_e)return Se;const me=ne.second(),Te=fe?r(me+1,59):r(0,me-1);return ET(Se,Te)},H=([ue,Y])=>[le(ue,"start",!0,Y),le(Y,"end",!1,ue)],{getAvailableHours:K,getAvailableMinutes:Q,getAvailableSeconds:ie}=GK(F,L,N),{timePickerOptions:be,getAvailableTime:le,onSetOption:J}=FK({getAvailableHours:K,getAvailableMinutes:Q,getAvailableSeconds:ie}),Z=ue=>ue?Ke(ue)?ue.map(Y=>xt(Y,n.format).locale(i.value)):xt(ue,n.format).locale(i.value):null,ee=ue=>ue?Ke(ue)?ue.map(Y=>Y.format(n.format)):ue.format(n.format):null,ce=()=>{if(Ke(h))return h.map(Y=>xt(Y).locale(i.value));const ue=xt(h).locale(i.value);return[ue,ue.add(60,"m")]};return e("set-picker-option",["formatToString",ee]),e("set-picker-option",["parseUserInput",Z]),e("set-picker-option",["isValidValue",D]),e("set-picker-option",["handleKeydownInput",V]),e("set-picker-option",["getDefaultValue",ce]),e("set-picker-option",["getRangeAvailableTime",H]),(ue,Y)=>ue.actualVisible?(I(),X("div",{key:0,class:z([w(o).b("range-picker"),w(s).b("panel")])},[P("div",{class:z(w(o).be("range-picker","content"))},[P("div",{class:z(w(o).be("range-picker","cell"))},[P("div",{class:z(w(o).be("range-picker","header"))},Le(w(a)("el.datepicker.startTime")),3),P("div",{class:z(w(v))},[U(WD,{ref:"minSpinner",role:"start","show-seconds":w(b),"am-pm-mode":w(x),"arrow-control":w(u),"spinner-date":w(g),"disabled-hours":F,"disabled-minutes":L,"disabled-seconds":N,onChange:C,onSetOption:w(J),onSelectRange:R},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),P("div",{class:z(w(o).be("range-picker","cell"))},[P("div",{class:z(w(o).be("range-picker","header"))},Le(w(a)("el.datepicker.endTime")),3),P("div",{class:z(w(p))},[U(WD,{ref:"maxSpinner",role:"end","show-seconds":w(b),"am-pm-mode":w(x),"arrow-control":w(u),"spinner-date":w(y),"disabled-hours":F,"disabled-minutes":L,"disabled-seconds":N,onChange:T,onSetOption:w(J),onSelectRange:B},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),P("div",{class:z(w(o).be("panel","footer"))},[P("button",{type:"button",class:z([w(o).be("panel","btn"),"cancel"]),onClick:Y[0]||(Y[0]=te=>S())},Le(w(a)("el.datepicker.cancel")),3),P("button",{type:"button",class:z([w(o).be("panel","btn"),"confirm"]),disabled:w(E),onClick:Y[1]||(Y[1]=te=>_())},Le(w(a)("el.datepicker.confirm")),11,fEe)],2)],2)):de("v-if",!0)}});var hEe=Ae(dEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);xt.extend(sA);var pEe=ae({name:"ElTimePicker",install:null,props:{...lA,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,e){const n=G(),[r,a]=t.isRange?["timerange",hEe]:["time",Pw],i=o=>e.emit("update:modelValue",o);return At("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:VD;return U(PK,Mt(t,{ref:n,type:r,format:s,"onUpdate:modelValue":i}),{default:l=>U(a,l,null)})}}});const Ob=pEe;Ob.install=t=>{t.component(Ob.name,Ob)};const vEe=Ob,gEe=(t,e)=>{const n=t.subtract(1,"month").endOf("month").date();return Qu(e).map((r,a)=>n-(e-a-1))},yEe=t=>{const e=t.daysInMonth();return Qu(e).map((n,r)=>r+1)},mEe=t=>Qu(t.length/7).map(e=>{const n=e*7;return t.slice(n,n+7)}),SEe=Ne({selectedDay:{type:ge(Object)},range:{type:ge(Array)},date:{type:ge(Object),required:!0},hideHeader:{type:Boolean}}),bEe={pick:t=>Lt(t)};var ZK={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(gr,function(){return function(n,r,a){var i=r.prototype,o=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,d,h,v,p){var g=f.name?f:f.$locale(),y=o(g[d]),m=o(g[h]),S=y||m.map(function(x){return x.slice(0,v)});if(!p)return S;var b=g.weekStart;return S.map(function(x,_){return S[(_+(b||0))%7]})},l=function(){return a.Ls[a.locale()]},u=function(f,d){return f.formats[d]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(v,p,g){return p||g.slice(1)})}(f.formats[d.toUpperCase()])},c=function(){var f=this;return{months:function(d){return d?d.format("MMMM"):s(f,"months")},monthsShort:function(d){return d?d.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(d){return d?d.format("dddd"):s(f,"weekdays")},weekdaysMin:function(d){return d?d.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(d){return d?d.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(d){return u(f.$locale(),d)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return c.bind(this)()},a.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(d){return u(f,d)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return s(l(),"months")},a.monthsShort=function(){return s(l(),"monthsShort","months",3)},a.weekdays=function(f){return s(l(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}})})(ZK);var wEe=ZK.exports;const QK=Ai(wEe),_Ee=(t,e)=>{xt.extend(QK);const n=xt.localeData().firstDayOfWeek(),{t:r,lang:a}=jt(),i=xt().locale(a.value),o=A(()=>!!t.range&&!!t.range.length),s=A(()=>{let d=[];if(o.value){const[h,v]=t.range,p=Qu(v.date()-h.date()+1).map(m=>({text:h.date()+m,type:"current"}));let g=p.length%7;g=g===0?0:7-g;const y=Qu(g).map((m,S)=>({text:S+1,type:"next"}));d=p.concat(y)}else{const h=t.date.startOf("month").day(),v=gEe(t.date,(h-n+7)%7).map(m=>({text:m,type:"prev"})),p=yEe(t.date).map(m=>({text:m,type:"current"}));d=[...v,...p];const g=7-(d.length%7||7),y=Qu(g).map((m,S)=>({text:S+1,type:"next"}));d=d.concat(y)}return mEe(d)}),l=A(()=>{const d=n;return d===0?MT.map(h=>r(`el.datepicker.weeks.${h}`)):MT.slice(d).concat(MT.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 v=u(d,h);e("pick",v)},getSlotData:({text:d,type:h})=>{const v=u(d,h);return{isSelected:v.isSame(t.selectedDay),type:`${h}-month`,day:v.format("YYYY-MM-DD"),date:v.toDate()}}}},xEe={key:0},CEe=["onClick"],TEe=ae({name:"DateTable"}),EEe=ae({...TEe,props:SEe,emits:bEe,setup(t,{expose:e,emit:n}){const r=t,{isInRange:a,now:i,rows:o,weekDays:s,getFormattedDate:l,handlePickDay:u,getSlotData:c}=_Ee(r,n),f=ke("calendar-table"),d=ke("calendar-day"),h=({text:v,type:p})=>{const g=[p];if(p==="current"){const y=l(v,p);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}),(v,p)=>(I(),X("table",{class:z([w(f).b(),w(f).is("range",w(a))]),cellspacing:"0",cellpadding:"0"},[v.hideHeader?de("v-if",!0):(I(),X("thead",xEe,[(I(!0),X(Qe,null,Vt(w(s),g=>(I(),X("th",{key:g},Le(g),1))),128))])),P("tbody",null,[(I(!0),X(Qe,null,Vt(w(o),(g,y)=>(I(),X("tr",{key:y,class:z({[w(f).e("row")]:!0,[w(f).em("row","hide-border")]:y===0&&v.hideHeader})},[(I(!0),X(Qe,null,Vt(g,(m,S)=>(I(),X("td",{key:S,class:z(h(m)),onClick:b=>w(u)(m)},[P("div",{class:z(w(d).b())},[Ce(v.$slots,"date-cell",{data:w(c)(m)},()=>[P("span",null,Le(m.text),1)])],2)],10,CEe))),128))],2))),128))])],2))}});var eP=Ae(EEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const MEe=(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]]},DEe=(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]]},kEe=(t,e,n)=>{const r=fa(),{lang:a}=jt(),i=G(),o=xt().locale(a.value),s=A({get(){return t.modelValue?u.value:i.value},set(y){if(!y)return;i.value=y;const m=y.toDate();e(Ga,m),e(Et,m)}}),l=A(()=>{if(!t.range)return[];const y=t.range.map(b=>xt(b).locale(a.value)),[m,S]=y;return m.isAfter(S)?[]:m.isSame(S,"month")?v(m,S):m.add(1,"month").month()!==S.month()?[]:v(m,S)}),u=A(()=>t.modelValue?xt(t.modelValue).locale(a.value):s.value||(l.value.length?l.value[0][0]:o)),c=A(()=>u.value.subtract(1,"month").date(1)),f=A(()=>u.value.add(1,"month").date(1)),d=A(()=>u.value.subtract(1,"year").date(1)),h=A(()=>u.value.add(1,"year").date(1)),v=(y,m)=>{const S=y.startOf("week"),b=m.endOf("week"),x=S.get("month"),_=b.get("month");return x===_?[[S,b]]:(x+1)%12===_?MEe(S,b):x+2===_||(x+1)%11===_?DEe(S,b):[]},p=y=>{s.value=y},g=y=>{const S={"prev-month":c.value,"next-month":f.value,"prev-year":d.value,"next-year":h.value,today:o}[y];S.isSame(u.value,"day")||p(S)};return Ws({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},A(()=>!!r.dateCell)),{calculateValidatedDateRange:v,date:u,realSelectedDay:s,pickDay:p,selectDate:g,validatedRange:l}},REe=t=>Ke(t)&&t.length===2&&t.every(e=>kd(e)),LEe=Ne({modelValue:{type:Date},range:{type:ge(Array),validator:REe}}),OEe={[Et]:t=>kd(t),[Ga]:t=>kd(t)},AEe="ElCalendar",NEe=ae({name:AEe}),VEe=ae({...NEe,props:LEe,emits:OEe,setup(t,{expose:e,emit:n}){const r=t,a=ke("calendar"),{calculateValidatedDateRange:i,date:o,pickDay:s,realSelectedDay:l,selectDate:u,validatedRange:c}=kEe(r,n),{t:f}=jt(),d=A(()=>{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,v)=>(I(),X("div",{class:z(w(a).b())},[P("div",{class:z(w(a).e("header"))},[Ce(h.$slots,"header",{date:w(d)},()=>[P("div",{class:z(w(a).e("title"))},Le(w(d)),3),w(c).length===0?(I(),X("div",{key:0,class:z(w(a).e("button-group"))},[U(w(OK),null,{default:q(()=>[U(w(ln),{size:"small",onClick:v[0]||(v[0]=p=>w(u)("prev-month"))},{default:q(()=>[dt(Le(w(f)("el.datepicker.prevMonth")),1)]),_:1}),U(w(ln),{size:"small",onClick:v[1]||(v[1]=p=>w(u)("today"))},{default:q(()=>[dt(Le(w(f)("el.datepicker.today")),1)]),_:1}),U(w(ln),{size:"small",onClick:v[2]||(v[2]=p=>w(u)("next-month"))},{default:q(()=>[dt(Le(w(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):de("v-if",!0)])],2),w(c).length===0?(I(),X("div",{key:0,class:z(w(a).e("body"))},[U(eP,{date:w(o),"selected-day":w(l),onPick:w(s)},Bl({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:q(p=>[h.$slots["date-cell"]?Ce(h.$slots,"date-cell",Po(Mt({key:0},p))):Ce(h.$slots,"dateCell",Po(Mt({key:1},p)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(I(),X("div",{key:1,class:z(w(a).e("body"))},[(I(!0),X(Qe,null,Vt(w(c),(p,g)=>(I(),ve(eP,{key:g,date:p[0],"selected-day":w(l),range:p,"hide-header":g!==0,onPick:w(s)},Bl({_:2},[h.$slots["date-cell"]||h.$slots.dateCell?{name:"date-cell",fn:q(y=>[h.$slots["date-cell"]?Ce(h.$slots,"date-cell",Po(Mt({key:0},y))):Ce(h.$slots,"dateCell",Po(Mt({key:1},y)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var BEe=Ae(VEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const $Ee=Tt(BEe),IEe=Ne({header:{type:String,default:""},bodyStyle:{type:ge([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),PEe=ae({name:"ElCard"}),FEe=ae({...PEe,props:IEe,setup(t){const e=ke("card");return(n,r)=>(I(),X("div",{class:z([w(e).b(),w(e).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(I(),X("div",{key:0,class:z(w(e).e("header"))},[Ce(n.$slots,"header",{},()=>[dt(Le(n.header),1)])],2)):de("v-if",!0),P("div",{class:z([w(e).e("body"),n.bodyClass]),style:et(n.bodyStyle)},[Ce(n.$slots,"default")],6)],2))}});var zEe=Ae(FEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const GEe=Tt(zEe),UEe=Ne({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}}),HEe={change:(t,e)=>[t,e].every(ut)},JK=Symbol("carouselContextKey"),tP=300,WEe=(t,e,n)=>{const{children:r,addChild:a,removeChild:i}=tA(_t(),"ElCarouselItem"),o=G(-1),s=G(null),l=G(!1),u=G(),c=G(0),f=A(()=>t.arrow!=="never"&&!w(v)),d=A(()=>r.value.some(L=>L.props.label.toString().length>0)),h=A(()=>t.type==="card"),v=A(()=>t.direction==="vertical"),p=A(()=>t.height!=="auto"?{height:t.height}:{height:`${c.value}px`,overflow:"hidden"}),g=hd(L=>{x(L)},tP,{trailing:!0}),y=hd(L=>{R(L)},tP);function m(){s.value&&(clearInterval(s.value),s.value=null)}function S(){t.interval<=0||!t.autoplay||s.value||(s.value=setInterval(()=>b(),t.interval))}const b=()=>{o.value<r.value.length-1?o.value=o.value+1:t.loop&&(o.value=0)};function x(L){if(vt(L)){const K=r.value.filter(Q=>Q.props.name===L);K.length>0&&(L=r.value.indexOf(K[0]))}if(L=Number(L),Number.isNaN(L)||L!==Math.floor(L))return;const N=r.value.length,H=o.value;L<0?o.value=t.loop?N-1:0:L>=N?o.value=t.loop?0:N-1:o.value=L,H===o.value&&_(H),$()}function _(L){r.value.forEach((N,H)=>{N.translateItem(H,o.value,L)})}function C(L,N){var H,K,Q,ie;const be=w(r),le=be.length;if(le===0||!L.states.inStage)return!1;const J=N+1,Z=N-1,ee=le-1,ce=be[ee].states.active,ue=be[0].states.active,Y=(K=(H=be[J])==null?void 0:H.states)==null?void 0:K.active,te=(ie=(Q=be[Z])==null?void 0:Q.states)==null?void 0:ie.active;return N===ee&&ue||Y?"left":N===0&&ce||te?"right":!1}function T(){l.value=!0,t.pauseOnHover&&m()}function D(){l.value=!1,S()}function M(L){w(v)||r.value.forEach((N,H)=>{L===C(N,H)&&(N.states.hover=!0)})}function E(){w(v)||r.value.forEach(L=>{L.states.hover=!1})}function k(L){o.value=L}function R(L){t.trigger==="hover"&&L!==o.value&&(o.value=L)}function O(){x(o.value-1)}function B(){x(o.value+1)}function $(){m(),S()}function V(L){t.height==="auto"&&(c.value=L)}Me(()=>o.value,(L,N)=>{_(N),N>-1&&e("change",L,N)}),Me(()=>t.autoplay,L=>{L?S():m()}),Me(()=>t.loop,()=>{x(o.value)}),Me(()=>t.interval,()=>{$()}),Me(()=>r.value,()=>{r.value.length>0&&x(t.initialIndex)});const F=Cn();return St(()=>{F.value=xa(u.value,()=>{_()}),S()}),Pn(()=>{m(),u.value&&F.value&&F.value.stop()}),At(JK,{root:u,isCardType:h,isVertical:v,items:r,loop:t.loop,addItem:a,removeItem:i,setActiveItem:x,setContainerHeight:V}),{root:u,activeIndex:o,arrowDisplay:f,hasLabel:d,hover:l,isCardType:h,items:r,isVertical:v,containerStyle:p,handleButtonEnter:M,handleButtonLeave:E,handleIndicatorClick:k,handleMouseEnter:T,handleMouseLeave:D,setActiveItem:x,prev:O,next:B,throttledArrowClick:g,throttledIndicatorHover:y}},KEe=["onMouseenter","onClick"],jEe={key:0},YEe="ElCarousel",XEe=ae({name:YEe}),qEe=ae({...XEe,props:UEe,emits:HEe,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:v,handleIndicatorClick:p,handleMouseEnter:g,handleMouseLeave:y,setActiveItem:m,prev:S,next:b,throttledArrowClick:x,throttledIndicatorHover:_}=WEe(r,n),C=ke("carousel"),T=A(()=>{const M=[C.b(),C.m(r.direction)];return w(u)&&M.push(C.m("card")),M}),D=A(()=>{const M=[C.e("indicators"),C.em("indicators",r.direction)];return w(s)&&M.push(C.em("indicators","labels")),r.indicatorPosition==="outside"&&M.push(C.em("indicators","outside")),w(f)&&M.push(C.em("indicators","right")),M});return e({setActiveItem:m,prev:S,next:b}),(M,E)=>(I(),X("div",{ref_key:"root",ref:a,class:z(w(T)),onMouseenter:E[6]||(E[6]=ot((...k)=>w(g)&&w(g)(...k),["stop"])),onMouseleave:E[7]||(E[7]=ot((...k)=>w(y)&&w(y)(...k),["stop"]))},[P("div",{class:z(w(C).e("container")),style:et(w(d))},[w(o)?(I(),ve(or,{key:0,name:"carousel-arrow-left",persisted:""},{default:q(()=>[ct(P("button",{type:"button",class:z([w(C).e("arrow"),w(C).em("arrow","left")]),onMouseenter:E[0]||(E[0]=k=>w(h)("left")),onMouseleave:E[1]||(E[1]=(...k)=>w(v)&&w(v)(...k)),onClick:E[2]||(E[2]=ot(k=>w(x)(w(i)-1),["stop"]))},[U(w(qe),null,{default:q(()=>[U(w(cc))]),_:1})],34),[[Nt,(M.arrow==="always"||w(l))&&(r.loop||w(i)>0)]])]),_:1})):de("v-if",!0),w(o)?(I(),ve(or,{key:1,name:"carousel-arrow-right",persisted:""},{default:q(()=>[ct(P("button",{type:"button",class:z([w(C).e("arrow"),w(C).em("arrow","right")]),onMouseenter:E[3]||(E[3]=k=>w(h)("right")),onMouseleave:E[4]||(E[4]=(...k)=>w(v)&&w(v)(...k)),onClick:E[5]||(E[5]=ot(k=>w(x)(w(i)+1),["stop"]))},[U(w(qe),null,{default:q(()=>[U(w(za))]),_:1})],34),[[Nt,(M.arrow==="always"||w(l))&&(r.loop||w(i)<w(c).length-1)]])]),_:1})):de("v-if",!0),Ce(M.$slots,"default")],6),M.indicatorPosition!=="none"?(I(),X("ul",{key:0,class:z(w(D))},[(I(!0),X(Qe,null,Vt(w(c),(k,R)=>(I(),X("li",{key:R,class:z([w(C).e("indicator"),w(C).em("indicator",M.direction),w(C).is("active",R===w(i))]),onMouseenter:O=>w(_)(R),onClick:ot(O=>w(p)(R),["stop"])},[P("button",{class:z(w(C).e("button"))},[w(s)?(I(),X("span",jEe,Le(k.props.label),1)):de("v-if",!0)],2)],42,KEe))),128))],2)):de("v-if",!0)],34))}});var ZEe=Ae(qEe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const QEe=Ne({name:{type:String,default:""},label:{type:[String,Number],default:""}}),JEe=(t,e)=>{const n=Ye(JK),r=_t(),a=.83,i=G(),o=G(!1),s=G(0),l=G(1),u=G(!1),c=G(!1),f=G(!1),d=G(!1),{isCardType:h,isVertical:v}=n;function p(b,x,_){const C=_-1,T=x-1,D=x+1,M=_/2;return x===0&&b===C?-1:x===C&&b===0?_:b<T&&x-b>=M?_+1:b>D&&b-x>=M?-2:b}function g(b,x){var _,C;const T=w(v)?((_=n.root.value)==null?void 0:_.offsetHeight)||0:((C=n.root.value)==null?void 0:C.offsetWidth)||0;return f.value?T*((2-a)*(b-x)+1)/4:b<x?-(1+a)*T/4:(3+a)*T/4}function y(b,x,_){const C=n.root.value;return C?((_?C.offsetHeight:C.offsetWidth)||0)*(b-x):0}const m=(b,x,_)=>{var C;const T=w(h),D=(C=n.items.value.length)!=null?C:Number.NaN,M=b===x;!T&&!kr(_)&&(d.value=M||b===_),!M&&D>2&&n.loop&&(b=p(b,x,D));const E=w(v);u.value=M,T?(f.value=Math.round(Math.abs(b-x))<=1,s.value=g(b,x),l.value=w(u)?1:a):s.value=y(b,x,E),c.value=!0,M&&i.value&&n.setContainerHeight(i.value.offsetHeight)};function S(){if(n&&w(h)){const b=n.items.value.findIndex(({uid:x})=>x===r.uid);n.setActiveItem(b)}}return St(()=>{n.addItem({props:t,states:Zt({hover:o,translate:s,scale:l,active:u,ready:c,inStage:f,animating:d}),uid:r.uid,translateItem:m})}),Mc(()=>{n.removeItem(r.uid)}),{carouselItemRef:i,active:u,animating:d,hover:o,inStage:f,isVertical:v,translate:s,isCardType:h,scale:l,ready:c,handleItemClick:S}},eMe=ae({name:"ElCarouselItem"}),tMe=ae({...eMe,props:QEe,setup(t){const e=t,n=ke("carousel"),{carouselItemRef:r,active:a,animating:i,hover:o,inStage:s,isVertical:l,translate:u,isCardType:c,scale:f,ready:d,handleItemClick:h}=JEe(e),v=A(()=>{const g=`${`translate${w(l)?"Y":"X"}`}(${w(u)}px)`,y=`scale(${w(f)})`;return{transform:[g,y].join(" ")}});return(p,g)=>ct((I(),X("div",{ref_key:"carouselItemRef",ref:r,class:z([w(n).e("item"),w(n).is("active",w(a)),w(n).is("in-stage",w(s)),w(n).is("hover",w(o)),w(n).is("animating",w(i)),{[w(n).em("item","card")]:w(c),[w(n).em("item","card-vertical")]:w(c)&&w(l)}]),style:et(w(v)),onClick:g[0]||(g[0]=(...y)=>w(h)&&w(h)(...y))},[w(c)?ct((I(),X("div",{key:0,class:z(w(n).e("mask"))},null,2)),[[Nt,!w(a)]]):de("v-if",!0),Ce(p.$slots,"default")],6)),[[Nt,w(d)]])}});var ej=Ae(tMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const nMe=Tt(ZEe,{CarouselItem:ej}),rMe=Qn(ej),tj={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:sa,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},nj={[Et]:t=>vt(t)||ut(t)||Sr(t),change:t=>vt(t)||ut(t)||Sr(t)},Ev=Symbol("checkboxGroupContextKey"),aMe=({model:t,isChecked:e})=>{const n=Ye(Ev,void 0),r=A(()=>{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!kr(s)&&t.value.length>=s&&!e.value||!kr(l)&&t.value.length<=l&&e.value});return{isDisabled:mi(A(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},iMe=(t,{model:e,isLimitExceeded:n,hasOwnLabel:r,isDisabled:a,isLabeledByFormItem:i})=>{const o=Ye(Ev,void 0),{formItem:s}=Qa(),{emit:l}=_t();function u(v){var p,g;return v===t.trueLabel||v===!0?(p=t.trueLabel)!=null?p:!0:(g=t.falseLabel)!=null?g:!1}function c(v,p){l("change",u(v),p)}function f(v){if(n.value)return;const p=v.target;l("change",u(p.checked),v)}async function d(v){n.value||!r.value&&!a.value&&i.value&&(v.composedPath().some(y=>y.tagName==="LABEL")||(e.value=u([!1,t.falseLabel].includes(e.value)),await Ze(),c(e.value,v)))}const h=A(()=>(o==null?void 0:o.validateEvent)||t.validateEvent);return Me(()=>t.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(v=>void 0))}),{handleChange:f,onClickRoot:d}},oMe=t=>{const e=G(!1),{emit:n}=_t(),r=Ye(Ev,void 0),a=A(()=>kr(r)===!1),i=G(!1);return{model:A({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&&Ke(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(Et,s),e.value=s)}}),isGroup:a,isLimitExceeded:i}},sMe=(t,e,{model:n})=>{const r=Ye(Ev,void 0),a=G(!1),i=A(()=>{const u=n.value;return Sr(u)?u:Ke(u)?Lt(t.label)?u.map(un).some(c=>di(c,t.label)):u.map(un).includes(t.label):u!=null?u===t.trueLabel:!!u}),o=_r(A(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value}),{prop:!0}),s=_r(A(()=>{var u;return(u=r==null?void 0:r.size)==null?void 0:u.value})),l=A(()=>!!(e.default||t.label));return{checkboxButtonSize:o,isChecked:i,isFocused:a,checkboxSize:s,hasOwnLabel:l}},lMe=(t,{model:e})=>{function n(){Ke(e.value)&&!e.value.includes(t.label)?e.value.push(t.label):e.value=t.trueLabel||!0}t.checked&&n()},rj=(t,e)=>{const{formItem:n}=Qa(),{model:r,isGroup:a,isLimitExceeded:i}=oMe(t),{isFocused:o,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c}=sMe(t,e,{model:r}),{isDisabled:f}=aMe({model:r,isChecked:s}),{inputId:d,isLabeledByFormItem:h}=Ac(t,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:v,onClickRoot:p}=iMe(t,{model:r,isLimitExceeded:i,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:h});return lMe(t,{model:r}),{inputId:d,isLabeledByFormItem:h,isChecked:s,isDisabled:f,isFocused:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,handleChange:v,onClickRoot:p}},uMe=["tabindex","role","aria-checked"],cMe=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],fMe=["id","aria-hidden","disabled","value","name","tabindex"],dMe=ae({name:"ElCheckbox"}),hMe=ae({...dMe,props:tj,emits:nj,setup(t){const e=t,n=fa(),{inputId:r,isLabeledByFormItem:a,isChecked:i,isDisabled:o,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:d}=rj(e,n),h=ke("checkbox"),v=A(()=>[h.b(),h.m(l.value),h.is("disabled",o.value),h.is("bordered",e.border),h.is("checked",i.value)]),p=A(()=>[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)=>(I(),ve(Dt(!w(u)&&w(a)?"span":"label"),{class:z(w(v)),"aria-controls":g.indeterminate?g.controls:null,onClick:w(d)},{default:q(()=>[P("span",{class:z(w(p)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?ct((I(),X("input",{key:0,id:w(r),"onUpdate:modelValue":y[0]||(y[0]=m=>en(c)?c.value=m:null),class:z(w(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:w(o),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:y[1]||(y[1]=(...m)=>w(f)&&w(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]=ot(()=>{},["stop"]))},null,42,cMe)),[[kw,w(c)]]):ct((I(),X("input",{key:1,id:w(r),"onUpdate:modelValue":y[5]||(y[5]=m=>en(c)?c.value=m:null),class:z(w(h).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",disabled:w(o),value:g.label,name:g.name,tabindex:g.tabindex,onChange:y[6]||(y[6]=(...m)=>w(f)&&w(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]=ot(()=>{},["stop"]))},null,42,fMe)),[[kw,w(c)]]),P("span",{class:z(w(h).e("inner"))},null,2)],10,uMe),w(u)?(I(),X("span",{key:0,class:z(w(h).e("label"))},[Ce(g.$slots,"default"),g.$slots.default?de("v-if",!0):(I(),X(Qe,{key:0},[dt(Le(g.label),1)],64))],2)):de("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var pMe=Ae(hMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const vMe=["name","tabindex","disabled","true-value","false-value"],gMe=["name","tabindex","disabled","value"],yMe=ae({name:"ElCheckboxButton"}),mMe=ae({...yMe,props:tj,emits:nj,setup(t){const e=t,n=fa(),{isFocused:r,isChecked:a,isDisabled:i,checkboxButtonSize:o,model:s,handleChange:l}=rj(e,n),u=Ye(Ev,void 0),c=ke("checkbox"),f=A(()=>{var h,v,p,g;const y=(v=(h=u==null?void 0:u.fill)==null?void 0:h.value)!=null?v:"";return{backgroundColor:y,borderColor:y,color:(g=(p=u==null?void 0:u.textColor)==null?void 0:p.value)!=null?g:"",boxShadow:y?`-1px 0 0 0 ${y}`:void 0}}),d=A(()=>[c.b("button"),c.bm("button",o.value),c.is("disabled",i.value),c.is("checked",a.value),c.is("focus",r.value)]);return(h,v)=>(I(),X("label",{class:z(w(d))},[h.trueLabel||h.falseLabel?ct((I(),X("input",{key:0,"onUpdate:modelValue":v[0]||(v[0]=p=>en(s)?s.value=p:null),class:z(w(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:w(i),"true-value":h.trueLabel,"false-value":h.falseLabel,onChange:v[1]||(v[1]=(...p)=>w(l)&&w(l)(...p)),onFocus:v[2]||(v[2]=p=>r.value=!0),onBlur:v[3]||(v[3]=p=>r.value=!1),onClick:v[4]||(v[4]=ot(()=>{},["stop"]))},null,42,vMe)),[[kw,w(s)]]):ct((I(),X("input",{key:1,"onUpdate:modelValue":v[5]||(v[5]=p=>en(s)?s.value=p:null),class:z(w(c).be("button","original")),type:"checkbox",name:h.name,tabindex:h.tabindex,disabled:w(i),value:h.label,onChange:v[6]||(v[6]=(...p)=>w(l)&&w(l)(...p)),onFocus:v[7]||(v[7]=p=>r.value=!0),onBlur:v[8]||(v[8]=p=>r.value=!1),onClick:v[9]||(v[9]=ot(()=>{},["stop"]))},null,42,gMe)),[[kw,w(s)]]),h.$slots.default||h.label?(I(),X("span",{key:2,class:z(w(c).be("button","inner")),style:et(w(a)?w(f):void 0)},[Ce(h.$slots,"default",{},()=>[dt(Le(h.label),1)])],6)):de("v-if",!0)],2))}});var aj=Ae(mMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const SMe=Ne({modelValue:{type:ge(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:sa,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),bMe={[Et]:t=>Ke(t),change:t=>Ke(t)},wMe=ae({name:"ElCheckboxGroup"}),_Me=ae({...wMe,props:SMe,emits:bMe,setup(t,{emit:e}){const n=t,r=ke("checkbox"),{formItem:a}=Qa(),{inputId:i,isLabeledByFormItem:o}=Ac(n,{formItemContext:a}),s=async u=>{e(Et,u),await Ze(),e("change",u)},l=A({get(){return n.modelValue},set(u){s(u)}});return At(Ev,{...xl($r(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Me(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return I(),ve(Dt(u.tag),{id:w(i),class:z(w(r).b("group")),role:"group","aria-label":w(o)?void 0:u.label||"checkbox-group","aria-labelledby":w(o)?(f=w(a))==null?void 0:f.labelId:void 0},{default:q(()=>[Ce(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var ij=Ae(_Me,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const co=Tt(pMe,{CheckboxButton:aj,CheckboxGroup:ij}),xMe=Qn(aj),oj=Qn(ij),sj=Ne({size:sa,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),CMe=Ne({...sj,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),lj={[Et]:t=>vt(t)||ut(t)||Sr(t),[Nn]:t=>vt(t)||ut(t)||Sr(t)},uj=Symbol("radioGroupKey"),cj=(t,e)=>{const n=G(),r=Ye(uj,void 0),a=A(()=>!!r),i=A({get(){return a.value?r.modelValue:t.modelValue},set(c){a.value?r.changeEvent(c):e&&e(Et,c),n.value.checked=t.modelValue===t.label}}),o=_r(A(()=>r==null?void 0:r.size)),s=mi(A(()=>r==null?void 0:r.disabled)),l=G(!1),u=A(()=>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}},TMe=["value","name","disabled"],EMe=ae({name:"ElRadio"}),MMe=ae({...EMe,props:CMe,emits:lj,setup(t,{emit:e}){const n=t,r=ke("radio"),{radioRef:a,radioGroup:i,focus:o,size:s,disabled:l,modelValue:u}=cj(n,e);function c(){Ze(()=>e("change",u.value))}return(f,d)=>{var h;return I(),X("label",{class:z([w(r).b(),w(r).is("disabled",w(l)),w(r).is("focus",w(o)),w(r).is("bordered",f.border),w(r).is("checked",w(u)===f.label),w(r).m(w(s))])},[P("span",{class:z([w(r).e("input"),w(r).is("disabled",w(l)),w(r).is("checked",w(u)===f.label)])},[ct(P("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":d[0]||(d[0]=v=>en(u)?u.value=v:null),class:z(w(r).e("original")),value:f.label,name:f.name||((h=w(i))==null?void 0:h.name),disabled:w(l),type:"radio",onFocus:d[1]||(d[1]=v=>o.value=!0),onBlur:d[2]||(d[2]=v=>o.value=!1),onChange:c,onClick:d[3]||(d[3]=ot(()=>{},["stop"]))},null,42,TMe),[[QW,w(u)]]),P("span",{class:z(w(r).e("inner"))},null,2)],2),P("span",{class:z(w(r).e("label")),onKeydown:d[4]||(d[4]=ot(()=>{},["stop"]))},[Ce(f.$slots,"default",{},()=>[dt(Le(f.label),1)])],34)],2)}}});var DMe=Ae(MMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const kMe=Ne({...sj,name:{type:String,default:""}}),RMe=["value","name","disabled"],LMe=ae({name:"ElRadioButton"}),OMe=ae({...LMe,props:kMe,setup(t){const e=t,n=ke("radio"),{radioRef:r,focus:a,size:i,disabled:o,modelValue:s,radioGroup:l}=cj(e),u=A(()=>({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 I(),X("label",{class:z([w(n).b("button"),w(n).is("active",w(s)===c.label),w(n).is("disabled",w(o)),w(n).is("focus",w(a)),w(n).bm("button",w(i))])},[ct(P("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=h=>en(s)?s.value=h:null),class:z(w(n).be("button","original-radio")),value:c.label,type:"radio",name:c.name||((d=w(l))==null?void 0:d.name),disabled:w(o),onFocus:f[1]||(f[1]=h=>a.value=!0),onBlur:f[2]||(f[2]=h=>a.value=!1),onClick:f[3]||(f[3]=ot(()=>{},["stop"]))},null,42,RMe),[[QW,w(s)]]),P("span",{class:z(w(n).be("button","inner")),style:et(w(s)===c.label?w(u):{}),onKeydown:f[4]||(f[4]=ot(()=>{},["stop"]))},[Ce(c.$slots,"default",{},()=>[dt(Le(c.label),1)])],38)],2)}}});var fj=Ae(OMe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const AMe=Ne({id:{type:String,default:void 0},size:sa,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),NMe=lj,VMe=["id","aria-label","aria-labelledby"],BMe=ae({name:"ElRadioGroup"}),$Me=ae({...BMe,props:AMe,emits:NMe,setup(t,{emit:e}){const n=t,r=ke("radio"),a=lo(),i=G(),{formItem:o}=Qa(),{inputId:s,isLabeledByFormItem:l}=Ac(n,{formItemContext:o}),u=f=>{e(Et,f),Ze(()=>e("change",f))};St(()=>{const f=i.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=A(()=>n.name||a.value);return At(uj,Zt({...$r(n),changeEvent:u,name:c})),Me(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>void 0))}),(f,d)=>(I(),X("div",{id:w(s),ref_key:"radioGroupRef",ref:i,class:z(w(r).b("group")),role:"radiogroup","aria-label":w(l)?void 0:f.label||"radio-group","aria-labelledby":w(l)?w(o).labelId:void 0},[Ce(f.$slots,"default")],10,VMe))}});var dj=Ae($Me,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const hj=Tt(DMe,{RadioButton:fj,RadioGroup:dj}),IMe=Qn(dj),PMe=Qn(fj);var FMe=ae({name:"NodeContent",setup(){return{ns:ke("cascader-node")}},render(){const{ns:t}=this,{node:e,panel:n}=this.$parent,{data:r,label:a}=e,{renderLabelFn:i}=n;return rt("span",{class:t.e("label")},i?i({node:e,data:r}):a)}});const uA=Symbol(),zMe=ae({name:"ElCascaderNode",components:{ElCheckbox:co,ElRadio:hj,NodeContent:FMe,ElIcon:qe,Check:Cm,Loading:Rc,ArrowRight:za},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(t,{emit:e}){const n=Ye(uA),r=ke("cascader-node"),a=A(()=>n.isHoverMenu),i=A(()=>n.config.multiple),o=A(()=>n.config.checkStrictly),s=A(()=>{var _;return(_=n.checkedNodes[0])==null?void 0:_.uid}),l=A(()=>t.node.isDisabled),u=A(()=>t.node.isLeaf),c=A(()=>o.value&&!u.value||!l.value),f=A(()=>h(n.expandingNode)),d=A(()=>o.value&&n.checkedNodes.some(h)),h=_=>{var C;const{level:T,uid:D}=t.node;return((C=_==null?void 0:_.pathNodes[T-1])==null?void 0:C.uid)===D},v=()=>{f.value||n.expandNode(t.node)},p=_=>{const{node:C}=t;_!==C.checked&&n.handleCheckChange(C,_)},g=()=>{n.lazyLoad(t.node,()=>{u.value||v()})},y=_=>{a.value&&(m(),!u.value&&e("expand",_))},m=()=>{const{node:_}=t;!c.value||_.loading||(_.loaded?v():g())},S=()=>{a.value&&!u.value||(u.value&&!l.value&&!o.value&&!i.value?x(!0):m())},b=_=>{o.value?(p(_),t.node.loaded&&v()):x(_)},x=_=>{t.node.loaded?(p(_),!o.value&&v()):g()};return{panel:n,isHoverMenu:a,multiple:i,checkStrictly:o,checkedNodeId:s,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:f,inCheckedPath:d,ns:r,handleHoverExpand:y,handleExpand:m,handleClick:S,handleCheck:x,handleSelectCheck:b}}}),GMe=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],UMe=P("span",null,null,-1);function HMe(t,e,n,r,a,i){const o=Pe("el-checkbox"),s=Pe("el-radio"),l=Pe("check"),u=Pe("el-icon"),c=Pe("node-content"),f=Pe("loading"),d=Pe("arrow-right");return I(),X("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:z([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))},[de(" prefix "),t.multiple?(I(),ve(o,{key:0,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:t.isDisabled,onClick:e[0]||(e[0]=ot(()=>{},["stop"])),"onUpdate:modelValue":t.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):t.checkStrictly?(I(),ve(s,{key:1,"model-value":t.checkedNodeId,label:t.node.uid,disabled:t.isDisabled,"onUpdate:modelValue":t.handleSelectCheck,onClick:e[1]||(e[1]=ot(()=>{},["stop"]))},{default:q(()=>[de(`
- Add an empty element to avoid render label,
- do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
- `),UMe]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):t.isLeaf&&t.node.checked?(I(),ve(u,{key:2,class:z(t.ns.e("prefix"))},{default:q(()=>[U(l)]),_:1},8,["class"])):de("v-if",!0),de(" content "),U(c),de(" postfix "),t.isLeaf?de("v-if",!0):(I(),X(Qe,{key:3},[t.node.loading?(I(),ve(u,{key:0,class:z([t.ns.is("loading"),t.ns.e("postfix")])},{default:q(()=>[U(f)]),_:1},8,["class"])):(I(),ve(u,{key:1,class:z(["arrow-right",t.ns.e("postfix")])},{default:q(()=>[U(d)]),_:1},8,["class"]))],64))],42,GMe)}var WMe=Ae(zMe,[["render",HMe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const KMe=ae({name:"ElCascaderMenu",components:{Loading:Rc,ElIcon:qe,ElScrollbar:Jl,ElCascaderNode:WMe},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(t){const e=_t(),n=ke("cascader-menu"),{t:r}=jt(),a=Xx();let i=null,o=null;const s=Ye(uA),l=G(null),u=A(()=>!t.nodes.length),c=A(()=>!s.initialLoaded),f=A(()=>`cascader-menu-${a}-${t.index}`),d=g=>{i=g.target},h=g=>{if(!(!s.isHoverMenu||!i||!l.value))if(i.contains(g.target)){v();const y=e.vnode.el,{left:m}=y.getBoundingClientRect(),{offsetWidth:S,offsetHeight:b}=y,x=g.clientX-m,_=i.offsetTop,C=_+i.offsetHeight;l.value.innerHTML=`
- <path style="pointer-events: auto;" fill="transparent" d="M${x} ${_} L${S} 0 V${_} Z" />
- <path style="pointer-events: auto;" fill="transparent" d="M${x} ${C} L${S} ${b} V${C} Z" />
- `}else o||(o=window.setTimeout(p,s.config.hoverThreshold))},v=()=>{o&&(clearTimeout(o),o=null)},p=()=>{l.value&&(l.value.innerHTML="",v())};return{ns:n,panel:s,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:r,handleExpand:d,handleMouseMove:h,clearHoverZone:p}}});function jMe(t,e,n,r,a,i){const o=Pe("el-cascader-node"),s=Pe("loading"),l=Pe("el-icon"),u=Pe("el-scrollbar");return I(),ve(u,{key:t.menuId,tag:"ul",role:"menu",class:z(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:q(()=>{var c;return[(I(!0),X(Qe,null,Vt(t.nodes,f=>(I(),ve(o,{key:f.uid,node:f,"menu-id":t.menuId,onExpand:t.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),t.isLoading?(I(),X("div",{key:0,class:z(t.ns.e("empty-text"))},[U(l,{size:"14",class:z(t.ns.is("loading"))},{default:q(()=>[U(s)]),_:1},8,["class"]),dt(" "+Le(t.t("el.cascader.loading")),1)],2)):t.isEmpty?(I(),X("div",{key:1,class:z(t.ns.e("empty-text"))},Le(t.t("el.cascader.noData")),3)):(c=t.panel)!=null&&c.isHoverMenu?(I(),X("svg",{key:2,ref:"hoverZone",class:z(t.ns.e("hover-zone"))},null,2)):de("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var YMe=Ae(KMe,[["render",jMe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let XMe=0;const qMe=t=>{const e=[t];let{parent:n}=t;for(;n;)e.unshift(n),n=n.parent;return e};let KD=class jD{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=qMe(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 jD(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!Xi(l)}get isDisabled(){const{data:e,parent:n,config:r}=this,{disabled:a,checkStrictly:i}=r;return(ft(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=ft(o)?o(e,this):e[o];return kr(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 jD(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${Ms(e)}`;this.children.forEach(a=>{a&&(a.broadcast(e,...n),a[r]&&a[r](...n))})}emit(e,...n){const{parent:r}=this,a=`onChild${Ms(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 YD=(t,e)=>t.reduce((n,r)=>(r.isLeaf?n.push(r):(!e&&n.push(r),n=n.concat(YD(r.children,e))),n),[]);class nP{constructor(e,n){this.config=n;const r=(e||[]).map(a=>new KD(a,this.config));this.nodes=r,this.allNodes=YD(r,!1),this.leafNodes=YD(r,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,n){const r=n?n.appendChild(e):new KD(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=>di(a.value,e)||di(a.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:r,level:a})=>di(e.value,r)&&e.level===a)||null}}const pj=Ne({modelValue:{type:ge([Number,String,Array])},options:{type:ge(Array),default:()=>[]},props:{type:ge(Object),default:()=>({})}}),ZMe={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:pn,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},QMe=t=>A(()=>({...ZMe,...t.props})),rP=t=>{if(!t)return 0;const e=t.id.split("-");return Number(e[e.length-2])},JMe=t=>{if(!t)return;const e=t.querySelector("input");e?e.click():C7(t)&&t.click()},eDe=(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},tDe=ae({name:"ElCascaderPanel",components:{ElCascaderMenu:YMe},props:{...pj,border:{type:Boolean,default:!0},renderLabel:Function},emits:[Et,Nn,"close","expand-change"],setup(t,{emit:e,slots:n}){let r=!1;const a=ke("cascader"),i=QMe(t);let o=null;const s=G(!0),l=G([]),u=G(null),c=G([]),f=G(null),d=G([]),h=A(()=>i.value.expandTrigger==="hover"),v=A(()=>t.renderLabel||n.default),p=()=>{const{options:k}=t,R=i.value;r=!1,o=new nP(k,R),c.value=[o.getNodes()],R.lazy&&Xi(t.options)?(s.value=!1,g(void 0,O=>{O&&(o=new nP(O,R),c.value=[o.getNodes()]),s.value=!0,T(!1,!0)})):T(!1,!0)},g=(k,R)=>{const O=i.value;k=k||new KD({},O,void 0,!0),k.loading=!0;const B=$=>{const V=k,F=V.root?null:V;$&&(o==null||o.appendNodes($,F)),V.loading=!1,V.loaded=!0,V.childrenData=V.childrenData||[],R&&R($)};O.lazyLoad(k,B)},y=(k,R)=>{var O;const{level:B}=k,$=c.value.slice(0,B);let V;k.isLeaf?V=k.pathNodes[B-2]:(V=k,$.push(k.children)),((O=f.value)==null?void 0:O.uid)!==(V==null?void 0:V.uid)&&(f.value=k,c.value=$,!R&&e("expand-change",(k==null?void 0:k.pathValues)||[]))},m=(k,R,O=!0)=>{const{checkStrictly:B,multiple:$}=i.value,V=d.value[0];r=!0,!$&&(V==null||V.doCheck(!1)),k.doCheck(R),C(),O&&!$&&!B&&e("close"),!O&&!$&&!B&&S(k)},S=k=>{k&&(k=k.parent,S(k),k&&y(k))},b=k=>o==null?void 0:o.getFlattedNodes(k),x=k=>{var R;return(R=b(k))==null?void 0:R.filter(O=>O.checked!==!1)},_=()=>{d.value.forEach(k=>k.doCheck(!1)),C(),c.value=c.value.slice(0,1),f.value=null,e("expand-change",[])},C=()=>{var k;const{checkStrictly:R,multiple:O}=i.value,B=d.value,$=x(!R),V=eDe(B,$),F=V.map(L=>L.valueByOption);d.value=V,u.value=O?F:(k=F[0])!=null?k:null},T=(k=!1,R=!1)=>{const{modelValue:O}=t,{lazy:B,multiple:$,checkStrictly:V}=i.value,F=!V;if(!(!s.value||r||!R&&di(O,u.value)))if(B&&!k){const N=rI(rye(Ll(O))).map(H=>o==null?void 0:o.getNodeByValue(H)).filter(H=>!!H&&!H.loaded&&!H.loading);N.length?N.forEach(H=>{g(H,()=>T(!1,R))}):T(!0,R)}else{const L=$?Ll(O):[O],N=rI(L.map(H=>o==null?void 0:o.getNodeByValue(H,F)));D(N,R),u.value=Aw(O)}},D=(k,R=!0)=>{const{checkStrictly:O}=i.value,B=d.value,$=k.filter(L=>!!L&&(O||L.isLeaf)),V=o==null?void 0:o.getSameNode(f.value),F=R&&V||$[0];F?F.pathNodes.forEach(L=>y(L,!0)):f.value=null,B.forEach(L=>L.doCheck(!1)),t.props.multiple?Zt($).forEach(L=>L.doCheck(!0)):$.forEach(L=>L.doCheck(!0)),d.value=$,Ze(M)},M=()=>{Ht&&l.value.forEach(k=>{const R=k==null?void 0:k.$el;if(R){const O=R.querySelector(`.${a.namespace.value}-scrollbar__wrap`),B=R.querySelector(`.${a.b("node")}.${a.is("active")}`)||R.querySelector(`.${a.b("node")}.in-active-path`);g9(O,B)}})},E=k=>{const R=k.target,{code:O}=k;switch(O){case nt.up:case nt.down:{k.preventDefault();const B=O===nt.up?-1:1;Tb(T7(R,B,`.${a.b("node")}[tabindex="-1"]`));break}case nt.left:{k.preventDefault();const B=l.value[rP(R)-1],$=B==null?void 0:B.$el.querySelector(`.${a.b("node")}[aria-expanded="true"]`);Tb($);break}case nt.right:{k.preventDefault();const B=l.value[rP(R)+1],$=B==null?void 0:B.$el.querySelector(`.${a.b("node")}[tabindex="-1"]`);Tb($);break}case nt.enter:JMe(R);break}};return At(uA,Zt({config:i,expandingNode:f,checkedNodes:d,isHoverMenu:h,initialLoaded:s,renderLabelFn:v,lazyLoad:g,expandNode:y,handleCheckChange:m})),Me([i,()=>t.options],p,{deep:!0,immediate:!0}),Me(()=>t.modelValue,()=>{r=!1,T()},{deep:!0}),Me(()=>u.value,k=>{di(k,t.modelValue)||(e(Et,k),e(Nn,k))}),MW(()=>l.value=[]),St(()=>!Xi(t.modelValue)&&T()),{ns:a,menuList:l,menus:c,checkedNodes:d,handleKeyDown:E,handleCheckChange:m,getFlattedNodes:b,getCheckedNodes:x,clearCheckedNodes:_,calculateCheckedValue:C,scrollToExpandingNode:M}}});function nDe(t,e,n,r,a,i){const o=Pe("el-cascader-menu");return I(),X("div",{class:z([t.ns.b("panel"),t.ns.is("bordered",t.border)]),onKeydown:e[0]||(e[0]=(...s)=>t.handleKeyDown&&t.handleKeyDown(...s))},[(I(!0),X(Qe,null,Vt(t.menus,(s,l)=>(I(),ve(o,{key:l,ref_for:!0,ref:u=>t.menuList[l]=u,index:l,nodes:[...s]},null,8,["index","nodes"]))),128))],34)}var Ab=Ae(tDe,[["render",nDe],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);Ab.install=t=>{t.component(Ab.name,Ab)};const vj=Ab,rDe=vj,cA=Ne({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:tl,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),aDe={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},iDe=ae({name:"ElTag"}),oDe=ae({...iDe,props:cA,emits:aDe,setup(t,{emit:e}){const n=t,r=_r(),a=ke("tag"),i=A(()=>{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?(I(),X("span",{key:0,class:z(w(i)),style:et({backgroundColor:l.color}),onClick:s},[P("span",{class:z(w(a).e("content"))},[Ce(l.$slots,"default")],2),l.closable?(I(),ve(w(qe),{key:0,class:z(w(a).e("close")),onClick:ot(o,["stop"])},{default:q(()=>[U(w(Jo))]),_:1},8,["class","onClick"])):de("v-if",!0)],6)):(I(),ve(or,{key:1,name:`${w(a).namespace.value}-zoom-in-center`,appear:""},{default:q(()=>[P("span",{class:z(w(i)),style:et({backgroundColor:l.color}),onClick:s},[P("span",{class:z(w(a).e("content"))},[Ce(l.$slots,"default")],2),l.closable?(I(),ve(w(qe),{key:0,class:z(w(a).e("close")),onClick:ot(o,["stop"])},{default:q(()=>[U(w(Jo))]),_:1},8,["class","onClick"])):de("v-if",!0)],6)]),_:3},8,["name"]))}});var sDe=Ae(oDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const vy=Tt(sDe),lDe=Ne({...pj,size:sa,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:ge(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:ge(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:Hr.teleported,tagType:{...cA.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),uDe={[Et]:t=>!!t||t===null,[Nn]:t=>!!t||t===null,focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,visibleChange:t=>Sr(t),expandChange:t=>!!t,removeTag:t=>!!t},cDe={key:0},fDe=["placeholder","onKeydown"],dDe=["onClick"],hDe="ElCascader",pDe=ae({name:hDe}),vDe=ae({...pDe,props:lDe,emits:uDe,setup(t,{expose:e,emit:n}){const r=t,a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:he})=>{const{modifiersData:pe,placement:Re}=he;["right","left","bottom","top"].includes(Re)||(pe.arrow.x=35)},requires:["arrow"]}]},i=Hd();let o=0,s=0;const l=ke("cascader"),u=ke("input"),{t:c}=jt(),{form:f,formItem:d}=Qa(),h=G(null),v=G(null),p=G(null),g=G(null),y=G(null),m=G(!1),S=G(!1),b=G(!1),x=G(!1),_=G(""),C=G(""),T=G([]),D=G([]),M=G([]),E=G(!1),k=A(()=>i.style),R=A(()=>r.disabled||(f==null?void 0:f.disabled)),O=A(()=>r.placeholder||c("el.cascader.placeholder")),B=A(()=>C.value||T.value.length>0||E.value?"":O.value),$=_r(),V=A(()=>["small"].includes($.value)?"small":"default"),F=A(()=>!!r.props.multiple),L=A(()=>!r.filterable||F.value),N=A(()=>F.value?C.value:_.value),H=A(()=>{var he;return((he=g.value)==null?void 0:he.checkedNodes)||[]}),K=A(()=>!r.clearable||R.value||b.value||!S.value?!1:!!H.value.length),Q=A(()=>{const{showAllLevels:he,separator:pe}=r,Re=H.value;return Re.length?F.value?"":Re[0].calcText(he,pe):""}),ie=A({get(){return Aw(r.modelValue)},set(he){n(Et,he),n(Nn,he),r.validateEvent&&(d==null||d.validate("change").catch(pe=>void 0))}}),be=A(()=>[l.b(),l.m($.value),l.is("disabled",R.value),i.class]),le=A(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",m.value)]),J=A(()=>l.is("focus",m.value||x.value)),Z=A(()=>{var he,pe;return(pe=(he=h.value)==null?void 0:he.popperRef)==null?void 0:pe.contentRef}),ee=he=>{var pe,Re,re;R.value||(he=he??!m.value,he!==m.value&&(m.value=he,(Re=(pe=v.value)==null?void 0:pe.input)==null||Re.setAttribute("aria-expanded",`${he}`),he?(ce(),Ze((re=g.value)==null?void 0:re.scrollToExpandingNode)):r.filterable&&ze(),n("visibleChange",he)))},ce=()=>{Ze(()=>{var he;(he=h.value)==null||he.updatePopper()})},ue=()=>{b.value=!1},Y=he=>{const{showAllLevels:pe,separator:Re}=r;return{node:he,key:he.uid,text:he.calcText(pe,Re),hitState:!1,closable:!R.value&&!he.isDisabled,isCollapseTag:!1}},te=he=>{var pe;const Re=he.node;Re.doCheck(!1),(pe=g.value)==null||pe.calculateCheckedValue(),n("removeTag",Re.valueByOption)},oe=()=>{if(!F.value)return;const he=H.value,pe=[],Re=[];if(he.forEach(re=>Re.push(Y(re))),D.value=Re,he.length){he.slice(0,r.maxCollapseTags).forEach(pt=>pe.push(Y(pt)));const re=he.slice(r.maxCollapseTags),Ue=re.length;Ue&&(r.collapseTags?pe.push({key:-1,text:`+ ${Ue}`,closable:!1,isCollapseTag:!0}):re.forEach(pt=>pe.push(Y(pt))))}T.value=pe},Se=()=>{var he,pe;const{filterMethod:Re,showAllLevels:re,separator:Ue}=r,pt=(pe=(he=g.value)==null?void 0:he.getFlattedNodes(!r.props.checkStrictly))==null?void 0:pe.filter(Bt=>Bt.isDisabled?!1:(Bt.calcText(re,Ue),Re(Bt,N.value)));F.value&&(T.value.forEach(Bt=>{Bt.hitState=!1}),D.value.forEach(Bt=>{Bt.hitState=!1})),b.value=!0,M.value=pt,ce()},fe=()=>{var he;let pe;b.value&&y.value?pe=y.value.$el.querySelector(`.${l.e("suggestion-item")}`):pe=(he=g.value)==null?void 0:he.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),pe&&(pe.focus(),!b.value&&pe.click())},ne=()=>{var he,pe;const Re=(he=v.value)==null?void 0:he.input,re=p.value,Ue=(pe=y.value)==null?void 0:pe.$el;if(!(!Ht||!Re)){if(Ue){const pt=Ue.querySelector(`.${l.e("suggestion-list")}`);pt.style.minWidth=`${Re.offsetWidth}px`}if(re){const{offsetHeight:pt}=re,Bt=T.value.length>0?`${Math.max(pt+6,o)}px`:`${o}px`;Re.style.height=Bt,ce()}}},Ee=he=>{var pe;return(pe=g.value)==null?void 0:pe.getCheckedNodes(he)},_e=he=>{ce(),n("expandChange",he)},me=he=>{var pe;const Re=(pe=he.target)==null?void 0:pe.value;if(he.type==="compositionend")E.value=!1,Ze(()=>Je(Re));else{const re=Re[Re.length-1]||"";E.value=!jx(re)}},Te=he=>{if(!E.value)switch(he.code){case nt.enter:ee();break;case nt.down:ee(!0),Ze(fe),he.preventDefault();break;case nt.esc:m.value===!0&&(he.preventDefault(),he.stopPropagation(),ee(!1));break;case nt.tab:ee(!1);break}},Ve=()=>{var he;(he=g.value)==null||he.clearCheckedNodes(),!m.value&&r.filterable&&ze(),ee(!1)},ze=()=>{const{value:he}=Q;_.value=he,C.value=he},We=he=>{var pe,Re;const{checked:re}=he;F.value?(pe=g.value)==null||pe.handleCheckChange(he,!re,!1):(!re&&((Re=g.value)==null||Re.handleCheckChange(he,!0,!1)),ee(!1))},De=he=>{const pe=he.target,{code:Re}=he;switch(Re){case nt.up:case nt.down:{const re=Re===nt.up?-1:1;Tb(T7(pe,re,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case nt.enter:pe.click();break}},Fe=()=>{const he=T.value,pe=he[he.length-1];s=C.value?0:s+1,!(!pe||!s||r.collapseTags&&he.length>1)&&(pe.hitState?te(pe):pe.hitState=!0)},at=he=>{const pe=he.target,Re=l.e("search-input");pe.className===Re&&(x.value=!0),n("focus",he)},yt=he=>{x.value=!1,n("blur",he)},Be=ja(()=>{const{value:he}=N;if(!he)return;const pe=r.beforeFilter(he);K0(pe)?pe.then(Se).catch(()=>{}):pe!==!1?Se():ue()},r.debounce),Je=(he,pe)=>{!m.value&&ee(!0),!(pe!=null&&pe.isComposing)&&(he?Be():ue())},se=he=>Number.parseFloat(Xfe(u.cssVarName("input-height"),he).value)-2;return Me(b,ce),Me([H,R],oe),Me(T,()=>{Ze(()=>ne())}),Me($,async()=>{await Ze();const he=v.value.input;o=se(he)||o,ne()}),Me(Q,ze,{immediate:!0}),St(()=>{const he=v.value.input,pe=se(he);o=he.offsetHeight||pe,xa(he,ne)}),e({getCheckedNodes:Ee,cascaderPanelRef:g,togglePopperVisible:ee,contentRef:Z}),(he,pe)=>(I(),ve(w(Ya),{ref_key:"tooltipRef",ref:h,visible:m.value,teleported:he.teleported,"popper-class":[w(l).e("dropdown"),he.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:`${w(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:ue},{default:q(()=>[ct((I(),X("div",{class:z(w(be)),style:et(w(k)),onClick:pe[5]||(pe[5]=()=>ee(w(L)?void 0:!0)),onKeydown:Te,onMouseenter:pe[6]||(pe[6]=Re=>S.value=!0),onMouseleave:pe[7]||(pe[7]=Re=>S.value=!1)},[U(w(wa),{ref_key:"input",ref:v,modelValue:_.value,"onUpdate:modelValue":pe[1]||(pe[1]=Re=>_.value=Re),placeholder:w(B),readonly:w(L),disabled:w(R),"validate-event":!1,size:w($),class:z(w(J)),tabindex:w(F)&&he.filterable&&!w(R)?-1:void 0,onCompositionstart:me,onCompositionupdate:me,onCompositionend:me,onFocus:at,onBlur:yt,onInput:Je},{suffix:q(()=>[w(K)?(I(),ve(w(qe),{key:"clear",class:z([w(u).e("icon"),"icon-circle-close"]),onClick:ot(Ve,["stop"])},{default:q(()=>[U(w(kc))]),_:1},8,["class","onClick"])):(I(),ve(w(qe),{key:"arrow-down",class:z(w(le)),onClick:pe[0]||(pe[0]=ot(Re=>ee(),["stop"]))},{default:q(()=>[U(w(Dc))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),w(F)?(I(),X("div",{key:0,ref_key:"tagWrapper",ref:p,class:z(w(l).e("tags"))},[(I(!0),X(Qe,null,Vt(T.value,Re=>(I(),ve(w(vy),{key:Re.key,type:he.tagType,size:w(V),hit:Re.hitState,closable:Re.closable,"disable-transitions":"",onClose:re=>te(Re)},{default:q(()=>[Re.isCollapseTag===!1?(I(),X("span",cDe,Le(Re.text),1)):(I(),ve(w(Ya),{key:1,disabled:m.value||!he.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:q(()=>[P("span",null,Le(Re.text),1)]),content:q(()=>[P("div",{class:z(w(l).e("collapse-tags"))},[(I(!0),X(Qe,null,Vt(D.value.slice(he.maxCollapseTags),(re,Ue)=>(I(),X("div",{key:Ue,class:z(w(l).e("collapse-tag"))},[(I(),ve(w(vy),{key:re.key,class:"in-tooltip",type:he.tagType,size:w(V),hit:re.hitState,closable:re.closable,"disable-transitions":"",onClose:pt=>te(re)},{default:q(()=>[P("span",null,Le(re.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),he.filterable&&!w(R)?ct((I(),X("input",{key:0,"onUpdate:modelValue":pe[2]||(pe[2]=Re=>C.value=Re),type:"text",class:z(w(l).e("search-input")),placeholder:w(Q)?"":w(O),onInput:pe[3]||(pe[3]=Re=>Je(C.value,Re)),onClick:pe[4]||(pe[4]=ot(Re=>ee(!0),["stop"])),onKeydown:Kt(Fe,["delete"]),onCompositionstart:me,onCompositionupdate:me,onCompositionend:me,onFocus:at,onBlur:yt},null,42,fDe)),[[uO,C.value]]):de("v-if",!0)],2)):de("v-if",!0)],38)),[[w(pc),()=>ee(!1),w(Z)]])]),content:q(()=>[ct(U(w(vj),{ref_key:"cascaderPanelRef",ref:g,modelValue:w(ie),"onUpdate:modelValue":pe[8]||(pe[8]=Re=>en(ie)?ie.value=Re:null),options:he.options,props:r.props,border:!1,"render-label":he.$slots.default,onExpandChange:_e,onClose:pe[9]||(pe[9]=Re=>he.$nextTick(()=>ee(!1)))},null,8,["modelValue","options","props","render-label"]),[[Nt,!b.value]]),he.filterable?ct((I(),ve(w(Jl),{key:0,ref_key:"suggestionPanel",ref:y,tag:"ul",class:z(w(l).e("suggestion-panel")),"view-class":w(l).e("suggestion-list"),onKeydown:De},{default:q(()=>[M.value.length?(I(!0),X(Qe,{key:0},Vt(M.value,Re=>(I(),X("li",{key:Re.uid,class:z([w(l).e("suggestion-item"),w(l).is("checked",Re.checked)]),tabindex:-1,onClick:re=>We(Re)},[P("span",null,Le(Re.text),1),Re.checked?(I(),ve(w(qe),{key:0},{default:q(()=>[U(w(Cm))]),_:1})):de("v-if",!0)],10,dDe))),128)):Ce(he.$slots,"empty",{key:1},()=>[P("li",{class:z(w(l).e("empty-text"))},Le(w(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Nt,b.value]]):de("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var Nb=Ae(vDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);Nb.install=t=>{t.component(Nb.name,Nb)};const gDe=Nb,yDe=gDe,mDe=Ne({checked:{type:Boolean,default:!1}}),SDe={"update:checked":t=>Sr(t),[Nn]:t=>Sr(t)},bDe=ae({name:"ElCheckTag"}),wDe=ae({...bDe,props:mDe,emits:SDe,setup(t,{emit:e}){const n=t,r=ke("check-tag"),a=A(()=>[r.b(),r.is("checked",n.checked)]),i=()=>{const o=!n.checked;e(Nn,o),e("update:checked",o)};return(o,s)=>(I(),X("span",{class:z(w(a)),onClick:i},[Ce(o.$slots,"default")],2))}});var _De=Ae(wDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const xDe=Tt(_De),gj=Symbol("rowContextKey"),CDe=["start","center","end","space-around","space-between","space-evenly"],TDe=["top","middle","bottom"],EDe=Ne({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:CDe,default:"start"},align:{type:String,values:TDe}}),MDe=ae({name:"ElRow"}),DDe=ae({...MDe,props:EDe,setup(t){const e=t,n=ke("row"),r=A(()=>e.gutter);At(gj,{gutter:r});const a=A(()=>{const o={};return e.gutter&&(o.marginRight=o.marginLeft=`-${e.gutter/2}px`),o}),i=A(()=>[n.b(),n.is(`justify-${e.justify}`,e.justify!=="start"),n.is(`align-${e.align}`,!!e.align)]);return(o,s)=>(I(),ve(Dt(o.tag),{class:z(w(i)),style:et(w(a))},{default:q(()=>[Ce(o.$slots,"default")]),_:3},8,["class","style"]))}});var kDe=Ae(DDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const RDe=Tt(kDe),LDe=Ne({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:ge([Number,Object]),default:()=>Gn({})},sm:{type:ge([Number,Object]),default:()=>Gn({})},md:{type:ge([Number,Object]),default:()=>Gn({})},lg:{type:ge([Number,Object]),default:()=>Gn({})},xl:{type:ge([Number,Object]),default:()=>Gn({})}}),ODe=ae({name:"ElCol"}),ADe=ae({...ODe,props:LDe,setup(t){const e=t,{gutter:n}=Ye(gj,{gutter:A(()=>0)}),r=ke("col"),a=A(()=>{const o={};return n.value&&(o.paddingLeft=o.paddingRight=`${n.value/2}px`),o}),i=A(()=>{const o=[];return["span","offset","pull","push"].forEach(u=>{const c=e[u];ut(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=>{ut(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)=>(I(),ve(Dt(o.tag),{class:z(w(i)),style:et(w(a))},{default:q(()=>[Ce(o.$slots,"default")]),_:3},8,["class","style"]))}});var NDe=Ae(ADe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const VDe=Tt(NDe),aP=t=>typeof ut(t),BDe=Ne({accordion:Boolean,modelValue:{type:ge([Array,String,Number]),default:()=>Gn([])}}),$De={[Et]:aP,[Nn]:aP},yj=Symbol("collapseContextKey"),IDe=(t,e)=>{const n=G(Od(t.modelValue)),r=i=>{n.value=i;const o=t.accordion?n.value[0]:n.value;e(Et,o),e(Nn,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 Me(()=>t.modelValue,()=>n.value=Od(t.modelValue),{deep:!0}),At(yj,{activeNames:n,handleItemClick:a}),{activeNames:n,setActiveNames:r}},PDe=()=>{const t=ke("collapse");return{rootKls:A(()=>t.b())}},FDe=ae({name:"ElCollapse"}),zDe=ae({...FDe,props:BDe,emits:$De,setup(t,{expose:e,emit:n}){const r=t,{activeNames:a,setActiveNames:i}=IDe(r,n),{rootKls:o}=PDe();return e({activeNames:a,setActiveNames:i}),(s,l)=>(I(),X("div",{class:z(w(o))},[Ce(s.$slots,"default")],2))}});var GDe=Ae(zDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const UDe=ae({name:"ElCollapseTransition"}),HDe=ae({...UDe,setup(t){const e=ke("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)=>(I(),ve(or,Mt({name:w(e).b()},Fle(r)),{default:q(()=>[Ce(a.$slots,"default")]),_:3},16,["name"]))}});var Vb=Ae(HDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Vb.install=t=>{t.component(Vb.name,Vb)};const aC=Vb,WDe=aC,KDe=Ne({title:{type:String,default:""},name:{type:ge([String,Number]),default:()=>Xx()},disabled:Boolean}),jDe=t=>{const e=Ye(yj),n=G(!1),r=G(!1),a=G(Xx()),i=A(()=>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)}}},YDe=(t,{focusing:e,isActive:n,id:r})=>{const a=ke("collapse"),i=A(()=>[a.b("item"),a.is("active",w(n)),a.is("disabled",t.disabled)]),o=A(()=>[a.be("item","header"),a.is("active",w(n)),{focusing:w(e)&&!t.disabled}]),s=A(()=>[a.be("item","arrow"),a.is("active",w(n))]),l=A(()=>a.be("item","wrap")),u=A(()=>a.be("item","content")),c=A(()=>a.b(`content-${w(r)}`)),f=A(()=>a.b(`head-${w(r)}`));return{arrowKls:s,headKls:o,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},XDe=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],qDe=["id","aria-hidden","aria-labelledby"],ZDe=ae({name:"ElCollapseItem"}),QDe=ae({...ZDe,props:KDe,setup(t,{expose:e}){const n=t,{focusing:r,id:a,isActive:i,handleFocus:o,handleHeaderClick:s,handleEnterClick:l}=jDe(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:d,itemContentKls:h,scopedContentId:v,scopedHeadId:p}=YDe(n,{focusing:r,isActive:i,id:a});return e({isActive:i}),(g,y)=>(I(),X("div",{class:z(w(f))},[P("button",{id:w(p),class:z(w(c)),"aria-expanded":w(i),"aria-controls":w(v),"aria-describedby":w(v),tabindex:g.disabled?-1:0,onClick:y[0]||(y[0]=(...m)=>w(s)&&w(s)(...m)),onKeydown:y[1]||(y[1]=Kt(ot((...m)=>w(l)&&w(l)(...m),["stop","prevent"]),["space","enter"])),onFocus:y[2]||(y[2]=(...m)=>w(o)&&w(o)(...m)),onBlur:y[3]||(y[3]=m=>r.value=!1)},[Ce(g.$slots,"title",{},()=>[dt(Le(g.title),1)]),U(w(qe),{class:z(w(u))},{default:q(()=>[U(w(za))]),_:1},8,["class"])],42,XDe),U(w(aC),null,{default:q(()=>[ct(P("div",{id:w(v),role:"region",class:z(w(d)),"aria-hidden":!w(i),"aria-labelledby":w(p)},[P("div",{class:z(w(h))},[Ce(g.$slots,"default")],2)],10,qDe),[[Nt,w(i)]])]),_:3})],2))}});var mj=Ae(QDe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const JDe=Tt(GDe,{CollapseItem:mj}),eke=Qn(mj),tke=Ne({color:{type:ge(Object),required:!0},vertical:{type:Boolean,default:!1}});let $T=!1;function gy(t,e){if(!Ht)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,$T=!1,(o=e.end)==null||o.call(e,i)},a=function(i){var o;$T||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),$T=!0,(o=e.start)==null||o.call(e,i))};t.addEventListener("mousedown",a),t.addEventListener("touchstart",a)}const nke=t=>{const e=_t(),n=Cn(),r=Cn();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}=yO(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}},rke=(t,{bar:e,thumb:n,handleDrag:r})=>{const a=_t(),i=ke("color-alpha-slider"),o=G(0),s=G(0),l=G();function u(){if(!n.value||t.vertical)return 0;const m=a.vnode.el,S=t.color.get("alpha");return m?Math.round(S*(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 S=t.color.get("alpha");return m?Math.round(S*(m.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(t.color&&t.color.value){const{r:m,g:S,b}=t.color.toRgb();return`linear-gradient(to right, rgba(${m}, ${S}, ${b}, 0) 0%, rgba(${m}, ${S}, ${b}, 1) 100%)`}return""}function d(){o.value=u(),s.value=c(),l.value=f()}St(()=>{if(!e.value||!n.value)return;const m={drag:S=>{r(S)},end:S=>{r(S)}};gy(e.value,m),gy(n.value,m),d()}),Me(()=>t.color.get("alpha"),()=>d()),Me(()=>t.color.value,()=>d());const h=A(()=>[i.b(),i.is("vertical",t.vertical)]),v=A(()=>i.e("bar")),p=A(()=>i.e("thumb")),g=A(()=>({background:l.value})),y=A(()=>({left:rr(o.value),top:rr(s.value)}));return{rootKls:h,barKls:v,barStyle:g,thumbKls:p,thumbStyle:y,update:d}},ake="ElColorAlphaSlider",ike=ae({name:ake}),oke=ae({...ike,props:tke,setup(t,{expose:e}){const n=t,{bar:r,thumb:a,handleDrag:i,handleClick:o}=nke(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=rke(n,{bar:r,thumb:a,handleDrag:i});return e({update:d,bar:r,thumb:a}),(h,v)=>(I(),X("div",{class:z(w(s))},[P("div",{ref_key:"bar",ref:r,class:z(w(l)),style:et(w(u)),onClick:v[0]||(v[0]=(...p)=>w(o)&&w(o)(...p))},null,6),P("div",{ref_key:"thumb",ref:a,class:z(w(c)),style:et(w(f))},null,6)],2))}});var ske=Ae(oke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const lke=ae({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const e=ke("color-hue-slider"),n=_t(),r=G(),a=G(),i=G(0),o=G(0),s=A(()=>t.color.get("hue"));Me(()=>s.value,()=>{d()});function l(h){h.target!==r.value&&u(h)}function u(h){if(!a.value||!r.value)return;const p=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:y}=yO(h);let m;if(t.vertical){let S=y-p.top;S=Math.min(S,p.height-r.value.offsetHeight/2),S=Math.max(r.value.offsetHeight/2,S),m=Math.round((S-r.value.offsetHeight/2)/(p.height-r.value.offsetHeight)*360)}else{let S=g-p.left;S=Math.min(S,p.width-r.value.offsetWidth/2),S=Math.max(r.value.offsetWidth/2,S),m=Math.round((S-r.value.offsetWidth/2)/(p.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 v=t.color.get("hue");return h?Math.round(v*(h.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const h=n.vnode.el;if(!t.vertical)return 0;const v=t.color.get("hue");return h?Math.round(v*(h.offsetHeight-r.value.offsetHeight/2)/360):0}function d(){i.value=c(),o.value=f()}return St(()=>{if(!a.value||!r.value)return;const h={drag:v=>{u(v)},end:v=>{u(v)}};gy(a.value,h),gy(r.value,h),d()}),{bar:a,thumb:r,thumbLeft:i,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:e}}});function uke(t,e,n,r,a,i){return I(),X("div",{class:z([t.ns.b(),t.ns.is("vertical",t.vertical)])},[P("div",{ref:"bar",class:z(t.ns.e("bar")),onClick:e[0]||(e[0]=(...o)=>t.handleClick&&t.handleClick(...o))},null,2),P("div",{ref:"thumb",class:z(t.ns.e("thumb")),style:et({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var cke=Ae(lke,[["render",uke],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const fke=Ne({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:sa,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:ge(Array)},validateEvent:{type:Boolean,default:!0}}),dke={[Et]:t=>vt(t)||mr(t),[Nn]:t=>vt(t)||mr(t),activeChange:t=>vt(t)||mr(t)},Sj=Symbol("colorPickerContextKey"),iP=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},hke=function(t){return typeof t=="string"&&t.includes(".")&&Number.parseFloat(t)===1},pke=function(t){return typeof t=="string"&&t.includes("%")},bp=function(t,e){hke(t)&&(t="100%");const n=pke(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)},oP={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Bb=t=>{t=Math.min(Math.round(t),255);const e=Math.floor(t/16),n=t%16;return`${oP[e]||e}${oP[n]||n}`},sP=function({r:t,g:e,b:n}){return Number.isNaN(+t)||Number.isNaN(+e)||Number.isNaN(+n)?"":`#${Bb(t)}${Bb(e)}${Bb(n)}`},IT={A:10,B:11,C:12,D:13,E:14,F:15},Kc=function(t){return t.length===2?(IT[t[0].toUpperCase()]||+t[0])*16+(IT[t[1].toUpperCase()]||+t[1]):IT[t[1].toUpperCase()]||+t[1]},vke=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}},lP=(t,e,n)=>{t=bp(t,255),e=bp(e,255),n=bp(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<n?6:0);break}case e:{i=(n-t)/s+2;break}case n:{i=(t-e)/s+4;break}}i/=6}return{h:i*360,s:l*100,v:o*100}},og=function(t,e,n){t=bp(t,360)*6,e=bp(e,100),n=bp(n,100);const r=Math.floor(t),a=t-r,i=n*(1-e),o=n*(1-a*e),s=n*(1-(1-a)*e),l=r%6,u=[n,o,i,i,s,n][l],c=[s,n,n,o,i,i][l],f=[i,i,s,n,n,o][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(f*255)}};let b0=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in e)Gt(e,n)&&(this[n]=e[n]);e.value?this.fromString(e.value):this.doOnChange()}set(e,n){if(arguments.length===1&&typeof e=="object"){for(const r in e)Gt(e,r)&&this.set(r,e[r]);return}this[`_${e}`]=n,this.doOnChange()}get(e){return e==="alpha"?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return og(this._hue,this._saturation,this._value)}fromString(e){if(!e){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,a,i)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,a)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(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}=vke(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}=lP(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=Kc(r[0]+r[0]),i=Kc(r[1]+r[1]),o=Kc(r[2]+r[2])):(r.length===6||r.length===8)&&(a=Kc(r.slice(0,2)),i=Kc(r.slice(2,4)),o=Kc(r.slice(4,6))),r.length===8?this._alpha=Kc(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=lP(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=iP(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=`${sP(og(e,n,r))}${Bb(a*255/100)}`;break}default:{const{r:o,g:s,b:l}=og(e,n,r);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const o=iP(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}=og(e,n,r);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=sP(og(e,n,r))}}};const gke=ae({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(t){const e=ke("color-predefine"),{currentColor:n}=Ye(Sj),r=G(i(t.colors,t.color));Me(()=>n.value,o=>{const s=new b0;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 b0;return u.enableAlpha=!0,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:a,ns:e}}}),yke=["onClick"];function mke(t,e,n,r,a,i){return I(),X("div",{class:z(t.ns.b())},[P("div",{class:z(t.ns.e("colors"))},[(I(!0),X(Qe,null,Vt(t.rgbaColors,(o,s)=>(I(),X("div",{key:t.colors[s],class:z([t.ns.e("color-selector"),t.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>t.handleSelect(s)},[P("div",{style:et({backgroundColor:o.value})},null,4)],10,yke))),128))],2)],2)}var Ske=Ae(gke,[["render",mke],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const bke=ae({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const e=ke("color-svpanel"),n=_t(),r=G(0),a=G(0),i=G("hsl(0, 100%, 50%)"),o=A(()=>{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}=yO(u);let v=d-f.left,p=h-f.top;v=Math.max(0,v),v=Math.min(v,f.width),p=Math.max(0,p),p=Math.min(p,f.height),a.value=v,r.value=p,t.color.set({saturation:v/f.width*100,value:100-p/f.height*100})}return Me(()=>o.value,()=>{s()}),St(()=>{gy(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}}}),wke=P("div",null,null,-1),_ke=[wke];function xke(t,e,n,r,a,i){return I(),X("div",{class:z(t.ns.b()),style:et({backgroundColor:t.background})},[P("div",{class:z(t.ns.e("white"))},null,2),P("div",{class:z(t.ns.e("black"))},null,2),P("div",{class:z(t.ns.e("cursor")),style:et({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},_ke,6)],6)}var Cke=Ae(bke,[["render",xke],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const Tke=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],Eke=ae({name:"ElColorPicker"}),Mke=ae({...Eke,props:fke,emits:dke,setup(t,{expose:e,emit:n}){const r=t,{t:a}=jt(),i=ke("color"),{formItem:o}=Qa(),s=_r(),l=mi(),{inputId:u,isLabeledByFormItem:c}=Ac(r,{formItemContext:o}),f=G(),d=G(),h=G(),v=G();let p=!0;const g=Zt(new b0({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),y=G(!1),m=G(!1),S=G(""),b=A(()=>!r.modelValue&&!m.value?"transparent":D(g,r.showAlpha)),x=A(()=>!r.modelValue&&!m.value?"":g.value),_=A(()=>c.value?void 0:r.label||a("el.colorpicker.defaultLabel")),C=A(()=>c.value?o==null?void 0:o.labelId:void 0),T=A(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",s.value)]);function D(L,N){if(!(L instanceof b0))throw new TypeError("color should be instance of _color Class");const{r:H,g:K,b:Q}=L.toRgb();return N?`rgba(${H}, ${K}, ${Q}, ${L.get("alpha")/100})`:`rgb(${H}, ${K}, ${Q})`}function M(L){y.value=L}const E=ja(M,100);function k(){l.value||M(!0)}function R(){E(!1),O()}function O(){Ze(()=>{r.modelValue?g.fromString(r.modelValue):(g.value="",Ze(()=>{m.value=!1}))})}function B(){l.value||E(!y.value)}function $(){g.fromString(S.value)}function V(){const L=g.value;n(Et,L),n("change",L),r.validateEvent&&(o==null||o.validate("change").catch(N=>void 0)),E(!1),Ze(()=>{const N=new b0({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});g.compare(N)||O()})}function F(){E(!1),n(Et,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(o==null||o.validate("change").catch(L=>void 0)),O()}return St(()=>{r.modelValue&&(S.value=x.value)}),Me(()=>r.modelValue,L=>{L?L&&L!==g.value&&(p=!1,g.fromString(L)):m.value=!1}),Me(()=>x.value,L=>{S.value=L,p&&n("activeChange",L),p=!0}),Me(()=>g.value,()=>{!r.modelValue&&!m.value&&(m.value=!0)}),Me(()=>y.value,()=>{Ze(()=>{var L,N,H;(L=f.value)==null||L.update(),(N=d.value)==null||N.update(),(H=h.value)==null||H.update()})}),At(Sj,{currentColor:x}),e({color:g,show:k,hide:R}),(L,N)=>(I(),ve(w(Ya),{ref_key:"popper",ref:v,visible:y.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[w(i).be("picker","panel"),w(i).b("dropdown"),L.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${w(i).namespace.value}-zoom-in-top`,persistent:""},{content:q(()=>[ct((I(),X("div",null,[P("div",{class:z(w(i).be("dropdown","main-wrapper"))},[U(cke,{ref_key:"hue",ref:f,class:"hue-slider",color:w(g),vertical:""},null,8,["color"]),U(Cke,{ref_key:"sv",ref:d,color:w(g)},null,8,["color"])],2),L.showAlpha?(I(),ve(ske,{key:0,ref_key:"alpha",ref:h,color:w(g)},null,8,["color"])):de("v-if",!0),L.predefine?(I(),ve(Ske,{key:1,ref:"predefine",color:w(g),colors:L.predefine},null,8,["color","colors"])):de("v-if",!0),P("div",{class:z(w(i).be("dropdown","btns"))},[P("span",{class:z(w(i).be("dropdown","value"))},[U(w(wa),{modelValue:S.value,"onUpdate:modelValue":N[0]||(N[0]=H=>S.value=H),"validate-event":!1,size:"small",onKeyup:Kt($,["enter"]),onBlur:$},null,8,["modelValue","onKeyup"])],2),U(w(ln),{class:z(w(i).be("dropdown","link-btn")),text:"",size:"small",onClick:F},{default:q(()=>[dt(Le(w(a)("el.colorpicker.clear")),1)]),_:1},8,["class"]),U(w(ln),{plain:"",size:"small",class:z(w(i).be("dropdown","btn")),onClick:V},{default:q(()=>[dt(Le(w(a)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[w(pc),R]])]),default:q(()=>[P("div",{id:w(u),class:z(w(T)),role:"button","aria-label":w(_),"aria-labelledby":w(C),"aria-description":w(a)("el.colorpicker.description",{color:L.modelValue||""}),tabindex:L.tabindex,onKeydown:Kt(B,["enter"])},[w(l)?(I(),X("div",{key:0,class:z(w(i).be("picker","mask"))},null,2)):de("v-if",!0),P("div",{class:z(w(i).be("picker","trigger")),onClick:B},[P("span",{class:z([w(i).be("picker","color"),w(i).is("alpha",L.showAlpha)])},[P("span",{class:z(w(i).be("picker","color-inner")),style:et({backgroundColor:w(b)})},[ct(U(w(qe),{class:z([w(i).be("picker","icon"),w(i).is("icon-arrow-down")])},{default:q(()=>[U(w(Dc))]),_:1},8,["class"]),[[Nt,L.modelValue||m.value]]),ct(U(w(qe),{class:z([w(i).be("picker","empty"),w(i).is("icon-close")])},{default:q(()=>[U(w(Jo))]),_:1},8,["class"]),[[Nt,!L.modelValue&&!m.value]])],6)],2)],2)],42,Tke)]),_:1},8,["visible","popper-class","transition"]))}});var Dke=Ae(Mke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const kke=Tt(Dke),Rke=ae({name:"ElContainer"}),Lke=ae({...Rke,props:{direction:{type:String}},setup(t){const e=t,n=fa(),r=ke("container"),a=A(()=>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)=>(I(),X("section",{class:z([w(r).b(),w(r).is("vertical",w(a))])},[Ce(i.$slots,"default")],2))}});var Oke=Ae(Lke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const Ake=ae({name:"ElAside"}),Nke=ae({...Ake,props:{width:{type:String,default:null}},setup(t){const e=t,n=ke("aside"),r=A(()=>e.width?n.cssVarBlock({width:e.width}):{});return(a,i)=>(I(),X("aside",{class:z(w(n).b()),style:et(w(r))},[Ce(a.$slots,"default")],6))}});var bj=Ae(Nke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Vke=ae({name:"ElFooter"}),Bke=ae({...Vke,props:{height:{type:String,default:null}},setup(t){const e=t,n=ke("footer"),r=A(()=>e.height?n.cssVarBlock({height:e.height}):{});return(a,i)=>(I(),X("footer",{class:z(w(n).b()),style:et(w(r))},[Ce(a.$slots,"default")],6))}});var wj=Ae(Bke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const $ke=ae({name:"ElHeader"}),Ike=ae({...$ke,props:{height:{type:String,default:null}},setup(t){const e=t,n=ke("header"),r=A(()=>e.height?n.cssVarBlock({height:e.height}):{});return(a,i)=>(I(),X("header",{class:z(w(n).b()),style:et(w(r))},[Ce(a.$slots,"default")],6))}});var _j=Ae(Ike,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const Pke=ae({name:"ElMain"}),Fke=ae({...Pke,setup(t){const e=ke("main");return(n,r)=>(I(),X("main",{class:z(w(e).b())},[Ce(n.$slots,"default")],2))}});var xj=Ae(Fke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const zke=Tt(Oke,{Aside:bj,Footer:wj,Header:_j,Main:xj}),Gke=Qn(bj),Uke=Qn(wj),Hke=Qn(_j),Wke=Qn(xj);var Cj={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(gr,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)}}})})(Cj);var Kke=Cj.exports;const jke=Ai(Kke);var Tj={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(gr,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)}}})})(Tj);var Yke=Tj.exports;const Xke=Ai(Yke);var Ej={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(gr,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}}})})(Ej);var qke=Ej.exports;const Zke=Ai(qke);var Mj={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(gr,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")}}})})(Mj);var Qke=Mj.exports;const Jke=Ai(Qke);var Dj={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(gr,function(){return function(n,r){r.prototype.isSameOrAfter=function(a,i){return this.isSame(a,i)||this.isAfter(a,i)}}})})(Dj);var eRe=Dj.exports;const tRe=Ai(eRe);var kj={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(gr,function(){return function(n,r){r.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})})(kj);var nRe=kj.exports;const rRe=Ai(nRe),fA=Symbol(),aRe=Ne({...lA,type:{type:ge(String),default:"date"}}),iRe=["date","dates","year","month","week","range"],dA=Ne({disabledDate:{type:ge(Function)},date:{type:ge(Object),required:!0},minDate:{type:ge(Object)},maxDate:{type:ge(Object)},parsedValue:{type:ge([Object,Array])},rangeState:{type:ge(Object),default:()=>({endDate:null,selecting:!1})}}),Rj=Ne({type:{type:ge(String),required:!0,values:Wbe}}),Lj=Ne({unlinkPanels:Boolean,parsedValue:{type:ge(Array)}}),Oj=t=>({type:String,values:iRe,default:t}),oRe=Ne({...Rj,parsedValue:{type:ge([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),sRe=Ne({...dA,cellClassName:{type:ge(Function)},showWeekNumber:Boolean,selectionMode:Oj("date")}),lRe=["changerange","pick","select"],XD=t=>{if(!Ke(t))return!1;const[e,n]=t;return xt.isDayjs(e)&&xt.isDayjs(n)&&e.isSameOrBefore(n)},Aj=(t,{lang:e,unit:n,unlinkPanels:r})=>{let a;if(Ke(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)]},uRe=(t,e,{columnIndexOffset:n,startDate:r,nextEndDate:a,now:i,unit:o,relativeDateGetter:s,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c<t.row;c++){const f=e[c];for(let d=0;d<t.column;d++){let h=f[d+n];h||(h={row:c,column:d,type:"normal",inRange:!1,start:!1,end:!1});const v=c*t.column+d,p=s(v);h.dayjs=p,h.date=p.toDate(),h.timestamp=p.valueOf(),h.type="normal",h.inRange=!!(r&&p.isSameOrAfter(r,o)&&a&&p.isSameOrBefore(a,o))||!!(r&&p.isSameOrBefore(r,o)&&a&&p.isSameOrAfter(a,o)),r!=null&&r.isSameOrAfter(a)?(h.start=!!a&&p.isSame(a,o),h.end=r&&p.isSame(r,o)):(h.start=!!r&&p.isSame(r,o),h.end=!!a&&p.isSame(a,o)),p.isSame(i,o)&&(h.type="today"),l==null||l(h,{rowIndex:c,columnIndex:d}),f[d+n]=h}u==null||u(f)}},qD=(t="")=>["normal","today"].includes(t),cRe=(t,e)=>{const{lang:n}=jt(),r=G(),a=G(),i=G(),o=G(),s=G([[],[],[],[],[],[]]);let l=!1;const u=t.date.$locale().weekStart||7,c=t.date.locale("en").localeData().weekdaysShort().map(L=>L.toLowerCase()),f=A(()=>u>3?7-u:-u),d=A(()=>{const L=t.date.startOf("month");return L.subtract(L.day()||7,"day")}),h=A(()=>c.concat(c).slice(u,u+7)),v=A(()=>H7(w(b)).some(L=>L.isCurrent)),p=A(()=>{const L=t.date.startOf("month"),N=L.day()||7,H=L.daysInMonth(),K=L.subtract(1,"month").daysInMonth();return{startOfMonthDay:N,dateCountOfMonth:H,dateCountOfLastMonth:K}}),g=A(()=>t.selectionMode==="dates"?Ll(t.parsedValue):[]),y=(L,{count:N,rowIndex:H,columnIndex:K})=>{const{startOfMonthDay:Q,dateCountOfMonth:ie,dateCountOfLastMonth:be}=w(p),le=w(f);if(H>=0&&H<=1){const J=Q+le<0?7+Q+le:Q+le;if(K+H*7>=J)return L.text=N,!0;L.text=be-(J-K%7)+1+H*7,L.type="prev-month"}else return N<=ie?L.text=N:(L.text=N-ie,L.type="next-month"),!0;return!1},m=(L,{columnIndex:N,rowIndex:H},K)=>{const{disabledDate:Q,cellClassName:ie}=t,be=w(g),le=y(L,{count:K,rowIndex:H,columnIndex:N}),J=L.dayjs.toDate();return L.selected=be.find(Z=>Z.valueOf()===L.dayjs.valueOf()),L.isSelected=!!L.selected,L.isCurrent=_(L),L.disabled=Q==null?void 0:Q(J),L.customClass=ie==null?void 0:ie(J),le},S=L=>{if(t.selectionMode==="week"){const[N,H]=t.showWeekNumber?[1,7]:[0,6],K=F(L[N+1]);L[N].inRange=K,L[N].start=K,L[H].inRange=K,L[H].end=K}},b=A(()=>{const{minDate:L,maxDate:N,rangeState:H,showWeekNumber:K}=t,Q=w(f),ie=w(s),be="day";let le=1;if(K)for(let J=0;J<6;J++)ie[J][0]||(ie[J][0]={type:"week",text:w(d).add(J*7+1,be).week()});return uRe({row:6,column:7},ie,{startDate:L,columnIndexOffset:K?1:0,nextEndDate:H.endDate||N||H.selecting&&L||null,now:xt().locale(w(n)).startOf(be),unit:be,relativeDateGetter:J=>w(d).add(J-Q,be),setCellMetadata:(...J)=>{m(...J,le)&&(le+=1)},setRowMetadata:S}),ie});Me(()=>t.date,async()=>{var L;(L=w(r))!=null&&L.contains(document.activeElement)&&(await Ze(),await x())});const x=async()=>{var L;return(L=w(a))==null?void 0:L.focus()},_=L=>t.selectionMode==="date"&&qD(L.type)&&C(L,t.parsedValue),C=(L,N)=>N?xt(N).locale(w(n)).isSame(t.date.date(Number(L.text)),"day"):!1,T=(L,N)=>{const H=L*7+(N-(t.showWeekNumber?1:0))-w(f);return w(d).add(H,"day")},D=L=>{var N;if(!t.rangeState.selecting)return;let H=L.target;if(H.tagName==="SPAN"&&(H=(N=H.parentNode)==null?void 0:N.parentNode),H.tagName==="DIV"&&(H=H.parentNode),H.tagName!=="TD")return;const K=H.parentNode.rowIndex-1,Q=H.cellIndex;w(b)[K][Q].disabled||(K!==w(i)||Q!==w(o))&&(i.value=K,o.value=Q,e("changerange",{selecting:!0,endDate:T(K,Q)}))},M=L=>!w(v)&&(L==null?void 0:L.text)===1&&L.type==="normal"||L.isCurrent,E=L=>{l||w(v)||t.selectionMode!=="date"||V(L,!0)},k=L=>{L.target.closest("td")&&(l=!0)},R=L=>{L.target.closest("td")&&(l=!1)},O=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))},B=L=>{const N=L.week(),H=`${L.year()}w${N}`;e("pick",{year:L.year(),week:N,value:H,date:L.startOf("week")})},$=(L,N)=>{const H=N?Ll(t.parsedValue).filter(K=>(K==null?void 0:K.valueOf())!==L.valueOf()):Ll(t.parsedValue).concat([L]);e("pick",H)},V=(L,N=!1)=>{const H=L.target.closest("td");if(!H)return;const K=H.parentNode.rowIndex-1,Q=H.cellIndex,ie=w(b)[K][Q];if(ie.disabled||ie.type==="week")return;const be=T(K,Q);switch(t.selectionMode){case"range":{O(be);break}case"date":{e("pick",be,N);break}case"week":{B(be);break}case"dates":{$(be,!!ie.selected);break}}},F=L=>{if(t.selectionMode!=="week")return!1;let N=t.date.startOf("day");if(L.type==="prev-month"&&(N=N.subtract(1,"month")),L.type==="next-month"&&(N=N.add(1,"month")),N=N.date(Number.parseInt(L.text,10)),t.parsedValue&&!Array.isArray(t.parsedValue)){const H=(t.parsedValue.day()-u+7)%7-1;return t.parsedValue.subtract(H,"day").isSame(N,"day")}return!1};return{WEEKS:h,rows:b,tbodyRef:r,currentCellRef:a,focus:x,isCurrent:_,isWeekActive:F,isSelectedCell:M,handlePickDate:V,handleMouseUp:R,handleMouseDown:k,handleMouseMove:D,handleFocus:E}},fRe=(t,{isCurrent:e,isWeekActive:n})=>{const r=ke("date-table"),{t:a}=jt(),i=A(()=>[r.b(),{"is-week-mode":t.selectionMode==="week"}]),o=A(()=>a("el.datepicker.dateTablePrompt")),s=A(()=>a("el.datepicker.week"));return{tableKls:i,tableLabel:o,weekLabel:s,getCellClasses:c=>{const f=[];return qD(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),e(c)&&f.push("current"),c.inRange&&(qD(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}},dRe=Ne({cell:{type:ge(Object)}});var hRe=ae({name:"ElDatePickerCell",props:dRe,setup(t){const e=ke("date-table-cell"),{slots:n}=Ye(fA);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 U("div",{class:e.b()},[U("span",{class:e.e("text")},[r==null?void 0:r.text])])}}});const pRe=["aria-label"],vRe={key:0,scope:"col"},gRe=["aria-label"],yRe=["aria-current","aria-selected","tabindex"],mRe=ae({__name:"basic-date-table",props:sRe,emits:lRe,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:v,handleMouseMove:p,handleFocus:g}=cRe(r,n),{tableLabel:y,tableKls:m,weekLabel:S,getCellClasses:b,getRowKls:x,t:_}=fRe(r,{isCurrent:u,isWeekActive:c});return e({focus:l}),(C,T)=>(I(),X("table",{"aria-label":w(y),class:z(w(m)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:T[1]||(T[1]=(...D)=>w(d)&&w(d)(...D)),onMousemove:T[2]||(T[2]=(...D)=>w(p)&&w(p)(...D)),onMousedown:T[3]||(T[3]=ot((...D)=>w(v)&&w(v)(...D),["prevent"])),onMouseup:T[4]||(T[4]=(...D)=>w(h)&&w(h)(...D))},[P("tbody",{ref_key:"tbodyRef",ref:o},[P("tr",null,[C.showWeekNumber?(I(),X("th",vRe,Le(w(S)),1)):de("v-if",!0),(I(!0),X(Qe,null,Vt(w(a),(D,M)=>(I(),X("th",{key:M,"aria-label":w(_)("el.datepicker.weeksFull."+D),scope:"col"},Le(w(_)("el.datepicker.weeks."+D)),9,gRe))),128))]),(I(!0),X(Qe,null,Vt(w(i),(D,M)=>(I(),X("tr",{key:M,class:z(w(x)(D[1]))},[(I(!0),X(Qe,null,Vt(D,(E,k)=>(I(),X("td",{key:`${M}.${k}`,ref_for:!0,ref:R=>w(f)(E)&&(s.value=R),class:z(w(b)(E)),"aria-current":E.isCurrent?"date":void 0,"aria-selected":E.isCurrent,tabindex:w(f)(E)?0:-1,onFocus:T[0]||(T[0]=(...R)=>w(g)&&w(g)(...R))},[U(w(hRe),{cell:E},null,8,["cell"])],42,yRe))),128))],2))),128))],512)],42,pRe))}});var ZD=Ae(mRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const SRe=Ne({...dA,selectionMode:Oj("month")}),bRe=["aria-label"],wRe=["aria-selected","aria-label","tabindex","onKeydown"],_Re={class:"cell"},xRe=ae({__name:"basic-month-table",props:SRe,emits:["changerange","pick","select"],setup(t,{expose:e,emit:n}){const r=t,a=(b,x,_)=>{const C=xt().locale(_).startOf("month").month(x).year(b),T=C.daysInMonth();return Qu(T).map(D=>C.add(D,"day").toDate())},i=ke("month-table"),{t:o,lang:s}=jt(),l=G(),u=G(),c=G(r.date.locale("en").localeData().monthsShort().map(b=>b.toLowerCase())),f=G([[],[],[]]),d=G(),h=G(),v=A(()=>{var b,x;const _=f.value,C=xt().locale(s.value).startOf("month");for(let T=0;T<3;T++){const D=_[T];for(let M=0;M<4;M++){const E=D[M]||(D[M]={row:T,column:M,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});E.type="normal";const k=T*4+M,R=r.date.startOf("year").month(k),O=r.rangeState.endDate||r.maxDate||r.rangeState.selecting&&r.minDate||null;E.inRange=!!(r.minDate&&R.isSameOrAfter(r.minDate,"month")&&O&&R.isSameOrBefore(O,"month"))||!!(r.minDate&&R.isSameOrBefore(r.minDate,"month")&&O&&R.isSameOrAfter(O,"month")),(b=r.minDate)!=null&&b.isSameOrAfter(O)?(E.start=!!(O&&R.isSame(O,"month")),E.end=r.minDate&&R.isSame(r.minDate,"month")):(E.start=!!(r.minDate&&R.isSame(r.minDate,"month")),E.end=!!(O&&R.isSame(O,"month"))),C.isSame(R)&&(E.type="today"),E.text=k,E.disabled=((x=r.disabledDate)==null?void 0:x.call(r,R.toDate()))||!1}}return _}),p=()=>{var b;(b=u.value)==null||b.focus()},g=b=>{const x={},_=r.date.year(),C=new Date,T=b.text;return x.disabled=r.disabledDate?a(_,T,s.value).every(r.disabledDate):!1,x.current=Ll(r.parsedValue).findIndex(D=>xt.isDayjs(D)&&D.year()===_&&D.month()===T)>=0,x.today=C.getFullYear()===_&&C.getMonth()===T,b.inRange&&(x["in-range"]=!0,b.start&&(x["start-date"]=!0),b.end&&(x["end-date"]=!0)),x},y=b=>{const x=r.date.year(),_=b.text;return Ll(r.date).findIndex(C=>C.year()===x&&C.month()===_)>=0},m=b=>{var x;if(!r.rangeState.selecting)return;let _=b.target;if(_.tagName==="A"&&(_=(x=_.parentNode)==null?void 0:x.parentNode),_.tagName==="DIV"&&(_=_.parentNode),_.tagName!=="TD")return;const C=_.parentNode.rowIndex,T=_.cellIndex;v.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)}))},S=b=>{var x;const _=(x=b.target)==null?void 0:x.closest("td");if((_==null?void 0:_.tagName)!=="TD"||Yo(_,"disabled"))return;const C=_.cellIndex,D=_.parentNode.rowIndex*4+C,M=r.date.startOf("year").month(D);r.selectionMode==="range"?r.rangeState.selecting?(r.minDate&&M>=r.minDate?n("pick",{minDate:r.minDate,maxDate:M}):n("pick",{minDate:M,maxDate:r.minDate}),n("select",!1)):(n("pick",{minDate:M,maxDate:null}),n("select",!0)):n("pick",D)};return Me(()=>r.date,async()=>{var b,x;(b=l.value)!=null&&b.contains(document.activeElement)&&(await Ze(),(x=u.value)==null||x.focus())}),e({focus:p}),(b,x)=>(I(),X("table",{role:"grid","aria-label":w(o)("el.datepicker.monthTablePrompt"),class:z(w(i).b()),onClick:S,onMousemove:m},[P("tbody",{ref_key:"tbodyRef",ref:l},[(I(!0),X(Qe,null,Vt(w(v),(_,C)=>(I(),X("tr",{key:C},[(I(!0),X(Qe,null,Vt(_,(T,D)=>(I(),X("td",{key:D,ref_for:!0,ref:M=>y(T)&&(u.value=M),class:z(g(T)),"aria-selected":`${y(T)}`,"aria-label":w(o)(`el.datepicker.month${+T.text+1}`),tabindex:y(T)?0:-1,onKeydown:[Kt(ot(S,["prevent","stop"]),["space"]),Kt(ot(S,["prevent","stop"]),["enter"])]},[P("div",null,[P("span",_Re,Le(w(o)("el.datepicker.months."+c.value[T.text])),1)])],42,wRe))),128))]))),128))],512)],42,bRe))}});var QD=Ae(xRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date:CRe,disabledDate:TRe,parsedValue:ERe}=dA,MRe=Ne({date:CRe,disabledDate:TRe,parsedValue:ERe}),DRe=["aria-label"],kRe=["aria-selected","tabindex","onKeydown"],RRe={class:"cell"},LRe={key:1},ORe=ae({__name:"basic-year-table",props:MRe,emits:["pick"],setup(t,{expose:e,emit:n}){const r=t,a=(p,g)=>{const y=xt(String(p)).locale(g).startOf("year"),S=y.endOf("year").dayOfYear();return Qu(S).map(b=>y.add(b,"day").toDate())},i=ke("year-table"),{t:o,lang:s}=jt(),l=G(),u=G(),c=A(()=>Math.floor(r.date.year()/10)*10),f=()=>{var p;(p=u.value)==null||p.focus()},d=p=>{const g={},y=xt().locale(s.value);return g.disabled=r.disabledDate?a(p,s.value).every(r.disabledDate):!1,g.current=Ll(r.parsedValue).findIndex(m=>m.year()===p)>=0,g.today=y.year()===p,g},h=p=>p===c.value&&r.date.year()<c.value&&r.date.year()>c.value+9||Ll(r.date).findIndex(g=>g.year()===p)>=0,v=p=>{const y=p.target.closest("td");if(y&&y.textContent){if(Yo(y,"disabled"))return;const m=y.textContent||y.innerText;n("pick",Number(m))}};return Me(()=>r.date,async()=>{var p,g;(p=l.value)!=null&&p.contains(document.activeElement)&&(await Ze(),(g=u.value)==null||g.focus())}),e({focus:f}),(p,g)=>(I(),X("table",{role:"grid","aria-label":w(o)("el.datepicker.yearTablePrompt"),class:z(w(i).b()),onClick:v},[P("tbody",{ref_key:"tbodyRef",ref:l},[(I(),X(Qe,null,Vt(3,(y,m)=>P("tr",{key:m},[(I(),X(Qe,null,Vt(4,(S,b)=>(I(),X(Qe,{key:m+"_"+b},[m*4+b<10?(I(),X("td",{key:0,ref_for:!0,ref:x=>h(w(c)+m*4+b)&&(u.value=x),class:z(["available",d(w(c)+m*4+b)]),"aria-selected":`${h(w(c)+m*4+b)}`,tabindex:h(w(c)+m*4+b)?0:-1,onKeydown:[Kt(ot(v,["prevent","stop"]),["space"]),Kt(ot(v,["prevent","stop"]),["enter"])]},[P("span",RRe,Le(w(c)+m*4+b),1)],42,kRe)):(I(),X("td",LRe))],64))),64))])),64))],512)],10,DRe))}});var ARe=Ae(ORe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const NRe=["onClick"],VRe=["aria-label"],BRe=["aria-label"],$Re=["aria-label"],IRe=["aria-label"],PRe=ae({__name:"panel-date-pick",props:oRe,emits:["pick","set-picker-option","panel-change"],setup(t,{emit:e}){const n=t,r=(se,he,pe)=>!0,a=ke("picker-panel"),i=ke("date-picker"),o=Hd(),s=fa(),{t:l,lang:u}=jt(),c=Ye("EP_PICKER_BASE"),f=Ye(rC),{shortcuts:d,disabledDate:h,cellClassName:v,defaultTime:p}=c.props,g=Kn(c.props,"defaultValue"),y=G(),m=G(xt().locale(u.value)),S=G(!1);let b=!1;const x=A(()=>xt(p).locale(u.value)),_=A(()=>m.value.month()),C=A(()=>m.value.year()),T=G([]),D=G(null),M=G(null),E=se=>T.value.length>0?r(se,T.value,n.format||"HH:mm:ss"):!0,k=se=>p&&!oe.value&&!S.value&&!b?x.value.year(se.year()).month(se.month()).date(se.date()):le.value?se.millisecond(0):se.startOf("day"),R=(se,...he)=>{if(!se)e("pick",se,...he);else if(Ke(se)){const pe=se.map(k);e("pick",pe,...he)}else e("pick",k(se),...he);D.value=null,M.value=null,S.value=!1,b=!1},O=(se,he)=>{if(N.value==="date"){se=se;let pe=n.parsedValue?n.parsedValue.year(se.year()).month(se.month()).date(se.date()):se;E(pe)||(pe=T.value[0][0].year(se.year()).month(se.month()).date(se.date())),m.value=pe,R(pe,le.value||he)}else N.value==="week"?R(se.date):N.value==="dates"&&R(se,!0)},B=se=>{const he=se?"add":"subtract";m.value=m.value[he](1,"month"),Je("month")},$=se=>{const he=m.value,pe=se?"add":"subtract";m.value=V.value==="year"?he[pe](10,"year"):he[pe](1,"year"),Je("year")},V=G("date"),F=A(()=>{const se=l("el.datepicker.year");if(V.value==="year"){const he=Math.floor(C.value/10)*10;return se?`${he} ${se} - ${he+9} ${se}`:`${he} - ${he+9}`}return`${C.value} ${se}`}),L=se=>{const he=ft(se.value)?se.value():se.value;if(he){b=!0,R(xt(he).locale(u.value));return}se.onClick&&se.onClick({attrs:o,slots:s,emit:e})},N=A(()=>{const{type:se}=n;return["week","month","year","dates"].includes(se)?se:"date"}),H=A(()=>N.value==="date"?V.value:N.value),K=A(()=>!!d.length),Q=async se=>{m.value=m.value.startOf("month").month(se),N.value==="month"?R(m.value,!1):(V.value="date",["month","year","date","week"].includes(N.value)&&(R(m.value,!0),await Ze(),at())),Je("month")},ie=async se=>{N.value==="year"?(m.value=m.value.startOf("year").year(se),R(m.value,!1)):(m.value=m.value.year(se),V.value="month",["month","year","date","week"].includes(N.value)&&(R(m.value,!0),await Ze(),at())),Je("year")},be=async se=>{V.value=se,await Ze(),at()},le=A(()=>n.type==="datetime"||n.type==="datetimerange"),J=A(()=>le.value||N.value==="dates"),Z=A(()=>h?n.parsedValue?Ke(n.parsedValue)?h(n.parsedValue[0].toDate()):h(n.parsedValue.toDate()):!0:!1),ee=()=>{if(N.value==="dates")R(n.parsedValue);else{let se=n.parsedValue;if(!se){const he=xt(p).locale(u.value),pe=Fe();se=he.year(pe.year()).month(pe.month()).date(pe.date())}m.value=se,R(se)}},ce=A(()=>h?h(xt().locale(u.value).toDate()):!1),ue=()=>{const he=xt().locale(u.value).toDate();S.value=!0,(!h||!h(he))&&E(he)&&(m.value=xt().locale(u.value),R(m.value))},Y=A(()=>BK(n.format)),te=A(()=>VK(n.format)),oe=A(()=>{if(M.value)return M.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(Y.value)}),Se=A(()=>{if(D.value)return D.value;if(!(!n.parsedValue&&!g.value))return(n.parsedValue||m.value).format(te.value)}),fe=G(!1),ne=()=>{fe.value=!0},Ee=()=>{fe.value=!1},_e=se=>({hour:se.hour(),minute:se.minute(),second:se.second(),year:se.year(),month:se.month(),date:se.date()}),me=(se,he,pe)=>{const{hour:Re,minute:re,second:Ue}=_e(se),pt=n.parsedValue?n.parsedValue.hour(Re).minute(re).second(Ue):se;m.value=pt,R(m.value,!0),pe||(fe.value=he)},Te=se=>{const he=xt(se,Y.value).locale(u.value);if(he.isValid()&&E(he)){const{year:pe,month:Re,date:re}=_e(m.value);m.value=he.year(pe).month(Re).date(re),M.value=null,fe.value=!1,R(m.value,!0)}},Ve=se=>{const he=xt(se,te.value).locale(u.value);if(he.isValid()){if(h&&h(he.toDate()))return;const{hour:pe,minute:Re,second:re}=_e(m.value);m.value=he.hour(pe).minute(Re).second(re),D.value=null,R(m.value,!0)}},ze=se=>xt.isDayjs(se)&&se.isValid()&&(h?!h(se.toDate()):!0),We=se=>N.value==="dates"?se.map(he=>he.format(n.format)):se.format(n.format),De=se=>xt(se,n.format).locale(u.value),Fe=()=>{const se=xt(g.value).locale(u.value);if(!g.value){const he=x.value;return xt().hour(he.hour()).minute(he.minute()).second(he.second()).locale(u.value)}return se},at=async()=>{var se;["week","month","year","date"].includes(N.value)&&((se=y.value)==null||se.focus(),N.value==="week"&&Be(nt.down))},yt=se=>{const{code:he}=se;[nt.up,nt.down,nt.left,nt.right,nt.home,nt.end,nt.pageUp,nt.pageDown].includes(he)&&(Be(he),se.stopPropagation(),se.preventDefault()),[nt.enter,nt.space,nt.numpadEnter].includes(he)&&D.value===null&&M.value===null&&(se.preventDefault(),R(m.value,!1))},Be=se=>{var he;const{up:pe,down:Re,left:re,right:Ue,home:pt,end:Bt,pageUp:lr,pageDown:Cr}=nt,ti={year:{[pe]:-4,[Re]:4,[re]:-1,[Ue]:1,offset:(xe,Ge)=>xe.setFullYear(xe.getFullYear()+Ge)},month:{[pe]:-4,[Re]:4,[re]:-1,[Ue]:1,offset:(xe,Ge)=>xe.setMonth(xe.getMonth()+Ge)},week:{[pe]:-1,[Re]:1,[re]:-1,[Ue]:1,offset:(xe,Ge)=>xe.setDate(xe.getDate()+Ge*7)},date:{[pe]:-7,[Re]:7,[re]:-1,[Ue]:1,[pt]:xe=>-xe.getDay(),[Bt]:xe=>-xe.getDay()+6,[lr]:xe=>-new Date(xe.getFullYear(),xe.getMonth(),0).getDate(),[Cr]:xe=>new Date(xe.getFullYear(),xe.getMonth()+1,0).getDate(),offset:(xe,Ge)=>xe.setDate(xe.getDate()+Ge)}},Jr=m.value.toDate();for(;Math.abs(m.value.diff(Jr,"year",!0))<1;){const xe=ti[H.value];if(!xe)return;if(xe.offset(Jr,ft(xe[se])?xe[se](Jr):(he=xe[se])!=null?he:0),h&&h(Jr))break;const Ge=xt(Jr).locale(u.value);m.value=Ge,e("pick",Ge,!0);break}},Je=se=>{e("panel-change",m.value.toDate(),se,V.value)};return Me(()=>N.value,se=>{if(["month","year"].includes(se)){V.value=se;return}V.value="date"},{immediate:!0}),Me(()=>V.value,()=>{f==null||f.updatePopper()}),Me(()=>g.value,se=>{se&&(m.value=Fe())},{immediate:!0}),Me(()=>n.parsedValue,se=>{if(se){if(N.value==="dates"||Array.isArray(se))return;m.value=se}else m.value=Fe()},{immediate:!0}),e("set-picker-option",["isValidValue",ze]),e("set-picker-option",["formatToString",We]),e("set-picker-option",["parseUserInput",De]),e("set-picker-option",["handleFocusPicker",at]),(se,he)=>(I(),X("div",{class:z([w(a).b(),w(i).b(),{"has-sidebar":se.$slots.sidebar||w(K),"has-time":w(le)}])},[P("div",{class:z(w(a).e("body-wrapper"))},[Ce(se.$slots,"sidebar",{class:z(w(a).e("sidebar"))}),w(K)?(I(),X("div",{key:0,class:z(w(a).e("sidebar"))},[(I(!0),X(Qe,null,Vt(w(d),(pe,Re)=>(I(),X("button",{key:Re,type:"button",class:z(w(a).e("shortcut")),onClick:re=>L(pe)},Le(pe.text),11,NRe))),128))],2)):de("v-if",!0),P("div",{class:z(w(a).e("body"))},[w(le)?(I(),X("div",{key:0,class:z(w(i).e("time-header"))},[P("span",{class:z(w(i).e("editor-wrap"))},[U(w(wa),{placeholder:w(l)("el.datepicker.selectDate"),"model-value":w(Se),size:"small","validate-event":!1,onInput:he[0]||(he[0]=pe=>D.value=pe),onChange:Ve},null,8,["placeholder","model-value"])],2),ct((I(),X("span",{class:z(w(i).e("editor-wrap"))},[U(w(wa),{placeholder:w(l)("el.datepicker.selectTime"),"model-value":w(oe),size:"small","validate-event":!1,onFocus:ne,onInput:he[1]||(he[1]=pe=>M.value=pe),onChange:Te},null,8,["placeholder","model-value"]),U(w(Pw),{visible:fe.value,format:w(Y),"parsed-value":m.value,onPick:me},null,8,["visible","format","parsed-value"])],2)),[[w(pc),Ee]])],2)):de("v-if",!0),ct(P("div",{class:z([w(i).e("header"),(V.value==="year"||V.value==="month")&&w(i).e("header--bordered")])},[P("span",{class:z(w(i).e("prev-btn"))},[P("button",{type:"button","aria-label":w(l)("el.datepicker.prevYear"),class:z(["d-arrow-left",w(a).e("icon-btn")]),onClick:he[2]||(he[2]=pe=>$(!1))},[U(w(qe),null,{default:q(()=>[U(w(Gp))]),_:1})],10,VRe),ct(P("button",{type:"button","aria-label":w(l)("el.datepicker.prevMonth"),class:z([w(a).e("icon-btn"),"arrow-left"]),onClick:he[3]||(he[3]=pe=>B(!1))},[U(w(qe),null,{default:q(()=>[U(w(cc))]),_:1})],10,BRe),[[Nt,V.value==="date"]])],2),P("span",{role:"button",class:z(w(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:he[4]||(he[4]=Kt(pe=>be("year"),["enter"])),onClick:he[5]||(he[5]=pe=>be("year"))},Le(w(F)),35),ct(P("span",{role:"button","aria-live":"polite",tabindex:"0",class:z([w(i).e("header-label"),{active:V.value==="month"}]),onKeydown:he[6]||(he[6]=Kt(pe=>be("month"),["enter"])),onClick:he[7]||(he[7]=pe=>be("month"))},Le(w(l)(`el.datepicker.month${w(_)+1}`)),35),[[Nt,V.value==="date"]]),P("span",{class:z(w(i).e("next-btn"))},[ct(P("button",{type:"button","aria-label":w(l)("el.datepicker.nextMonth"),class:z([w(a).e("icon-btn"),"arrow-right"]),onClick:he[8]||(he[8]=pe=>B(!0))},[U(w(qe),null,{default:q(()=>[U(w(za))]),_:1})],10,$Re),[[Nt,V.value==="date"]]),P("button",{type:"button","aria-label":w(l)("el.datepicker.nextYear"),class:z([w(a).e("icon-btn"),"d-arrow-right"]),onClick:he[9]||(he[9]=pe=>$(!0))},[U(w(qe),null,{default:q(()=>[U(w(Up))]),_:1})],10,IRe)],2)],2),[[Nt,V.value!=="time"]]),P("div",{class:z(w(a).e("content")),onKeydown:yt},[V.value==="date"?(I(),ve(ZD,{key:0,ref_key:"currentViewRef",ref:y,"selection-mode":w(N),date:m.value,"parsed-value":se.parsedValue,"disabled-date":w(h),"cell-class-name":w(v),onPick:O},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):de("v-if",!0),V.value==="year"?(I(),ve(ARe,{key:1,ref_key:"currentViewRef",ref:y,date:m.value,"disabled-date":w(h),"parsed-value":se.parsedValue,onPick:ie},null,8,["date","disabled-date","parsed-value"])):de("v-if",!0),V.value==="month"?(I(),ve(QD,{key:2,ref_key:"currentViewRef",ref:y,date:m.value,"parsed-value":se.parsedValue,"disabled-date":w(h),onPick:Q},null,8,["date","parsed-value","disabled-date"])):de("v-if",!0)],34)],2)],2),ct(P("div",{class:z(w(a).e("footer"))},[ct(U(w(ln),{text:"",size:"small",class:z(w(a).e("link-btn")),disabled:w(ce),onClick:ue},{default:q(()=>[dt(Le(w(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Nt,w(N)!=="dates"]]),U(w(ln),{plain:"",size:"small",class:z(w(a).e("link-btn")),disabled:w(Z),onClick:ee},{default:q(()=>[dt(Le(w(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[Nt,w(J)&&V.value==="date"]])],2))}});var FRe=Ae(PRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const zRe=Ne({...Rj,...Lj}),GRe=t=>{const{emit:e}=_t(),n=Hd(),r=fa();return i=>{const o=ft(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})}},Nj=(t,{defaultValue:e,leftDate:n,rightDate:r,unit:a,onParsedValueChanged:i})=>{const{emit:o}=_t(),{pickerNs:s}=Ye(fA),l=ke("date-range-picker"),{t:u,lang:c}=jt(),f=GRe(c),d=G(),h=G(),v=G({endDate:null,selecting:!1}),p=S=>{v.value=S},g=(S=!1)=>{const b=w(d),x=w(h);XD([b,x])&&o("pick",[b,x],S)},y=S=>{v.value.selecting=S,S||(v.value.endDate=null)},m=()=>{const[S,b]=Aj(w(e),{lang:w(c),unit:a,unlinkPanels:t.unlinkPanels});d.value=void 0,h.value=void 0,n.value=S,r.value=b};return Me(e,S=>{S&&m()},{immediate:!0}),Me(()=>t.parsedValue,S=>{if(Ke(S)&&S.length===2){const[b,x]=S;d.value=b,n.value=b,h.value=x,i(w(d),w(h))}else m()},{immediate:!0}),{minDate:d,maxDate:h,rangeState:v,lang:c,ppNs:s,drpNs:l,handleChangeRange:p,handleRangeConfirm:g,handleShortcutClick:f,onSelect:y,t:u}},URe=["onClick"],HRe=["aria-label"],WRe=["aria-label"],KRe=["disabled","aria-label"],jRe=["disabled","aria-label"],YRe=["disabled","aria-label"],XRe=["disabled","aria-label"],qRe=["aria-label"],ZRe=["aria-label"],k1="month",QRe=ae({__name:"panel-date-range",props:zRe,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(t,{emit:e}){const n=t,r=Ye("EP_PICKER_BASE"),{disabledDate:a,cellClassName:i,format:o,defaultTime:s,clearable:l}=r.props,u=Kn(r.props,"shortcuts"),c=Kn(r.props,"defaultValue"),{lang:f}=jt(),d=G(xt().locale(f.value)),h=G(xt().locale(f.value).add(1,k1)),{minDate:v,maxDate:p,rangeState:g,ppNs:y,drpNs:m,handleChangeRange:S,handleRangeConfirm:b,handleShortcutClick:x,onSelect:_,t:C}=Nj(n,{defaultValue:c,leftDate:d,rightDate:h,unit:k1,onParsedValueChanged:he}),T=G({min:null,max:null}),D=G({min:null,max:null}),M=A(()=>`${d.value.year()} ${C("el.datepicker.year")} ${C(`el.datepicker.month${d.value.month()+1}`)}`),E=A(()=>`${h.value.year()} ${C("el.datepicker.year")} ${C(`el.datepicker.month${h.value.month()+1}`)}`),k=A(()=>d.value.year()),R=A(()=>d.value.month()),O=A(()=>h.value.year()),B=A(()=>h.value.month()),$=A(()=>!!u.value.length),V=A(()=>T.value.min!==null?T.value.min:v.value?v.value.format(K.value):""),F=A(()=>T.value.max!==null?T.value.max:p.value||v.value?(p.value||v.value).format(K.value):""),L=A(()=>D.value.min!==null?D.value.min:v.value?v.value.format(H.value):""),N=A(()=>D.value.max!==null?D.value.max:p.value||v.value?(p.value||v.value).format(H.value):""),H=A(()=>BK(o)),K=A(()=>VK(o)),Q=pe=>XD(pe)&&(a?!a(pe[0].toDate())&&!a(pe[1].toDate()):!0),ie=()=>{d.value=d.value.subtract(1,"year"),n.unlinkPanels||(h.value=d.value.add(1,"month")),Y("year")},be=()=>{d.value=d.value.subtract(1,"month"),n.unlinkPanels||(h.value=d.value.add(1,"month")),Y("month")},le=()=>{n.unlinkPanels?h.value=h.value.add(1,"year"):(d.value=d.value.add(1,"year"),h.value=d.value.add(1,"month")),Y("year")},J=()=>{n.unlinkPanels?h.value=h.value.add(1,"month"):(d.value=d.value.add(1,"month"),h.value=d.value.add(1,"month")),Y("month")},Z=()=>{d.value=d.value.add(1,"year"),Y("year")},ee=()=>{d.value=d.value.add(1,"month"),Y("month")},ce=()=>{h.value=h.value.subtract(1,"year"),Y("year")},ue=()=>{h.value=h.value.subtract(1,"month"),Y("month")},Y=pe=>{e("panel-change",[d.value.toDate(),h.value.toDate()],pe)},te=A(()=>{const pe=(R.value+1)%12,Re=R.value+1>=12?1:0;return n.unlinkPanels&&new Date(k.value+Re,pe)<new Date(O.value,B.value)}),oe=A(()=>n.unlinkPanels&&O.value*12+B.value-(k.value*12+R.value+1)>=12),Se=A(()=>!(v.value&&p.value&&!g.value.selecting&&XD([v.value,p.value]))),fe=A(()=>n.type==="datetime"||n.type==="datetimerange"),ne=(pe,Re)=>{if(pe)return s?xt(s[Re]||s).locale(f.value).year(pe.year()).month(pe.month()).date(pe.date()):pe},Ee=(pe,Re=!0)=>{const re=pe.minDate,Ue=pe.maxDate,pt=ne(re,0),Bt=ne(Ue,1);p.value===Bt&&v.value===pt||(e("calendar-change",[re.toDate(),Ue&&Ue.toDate()]),p.value=Bt,v.value=pt,!(!Re||fe.value)&&b())},_e=G(!1),me=G(!1),Te=()=>{_e.value=!1},Ve=()=>{me.value=!1},ze=(pe,Re)=>{T.value[Re]=pe;const re=xt(pe,K.value).locale(f.value);if(re.isValid()){if(a&&a(re.toDate()))return;Re==="min"?(d.value=re,v.value=(v.value||d.value).year(re.year()).month(re.month()).date(re.date()),!n.unlinkPanels&&(!p.value||p.value.isBefore(v.value))&&(h.value=re.add(1,"month"),p.value=v.value.add(1,"month"))):(h.value=re,p.value=(p.value||h.value).year(re.year()).month(re.month()).date(re.date()),!n.unlinkPanels&&(!v.value||v.value.isAfter(p.value))&&(d.value=re.subtract(1,"month"),v.value=p.value.subtract(1,"month")))}},We=(pe,Re)=>{T.value[Re]=null},De=(pe,Re)=>{D.value[Re]=pe;const re=xt(pe,H.value).locale(f.value);re.isValid()&&(Re==="min"?(_e.value=!0,v.value=(v.value||d.value).hour(re.hour()).minute(re.minute()).second(re.second()),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value)):(me.value=!0,p.value=(p.value||h.value).hour(re.hour()).minute(re.minute()).second(re.second()),h.value=p.value,p.value&&p.value.isBefore(v.value)&&(v.value=p.value)))},Fe=(pe,Re)=>{D.value[Re]=null,Re==="min"?(d.value=v.value,_e.value=!1):(h.value=p.value,me.value=!1)},at=(pe,Re,re)=>{D.value.min||(pe&&(d.value=pe,v.value=(v.value||d.value).hour(pe.hour()).minute(pe.minute()).second(pe.second())),re||(_e.value=Re),(!p.value||p.value.isBefore(v.value))&&(p.value=v.value,h.value=pe))},yt=(pe,Re,re)=>{D.value.max||(pe&&(h.value=pe,p.value=(p.value||h.value).hour(pe.hour()).minute(pe.minute()).second(pe.second())),re||(me.value=Re),p.value&&p.value.isBefore(v.value)&&(v.value=p.value))},Be=()=>{d.value=Aj(w(c),{lang:w(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],h.value=d.value.add(1,"month"),e("pick",null)},Je=pe=>Ke(pe)?pe.map(Re=>Re.format(o)):pe.format(o),se=pe=>Ke(pe)?pe.map(Re=>xt(Re,o).locale(f.value)):xt(pe,o).locale(f.value);function he(pe,Re){if(n.unlinkPanels&&Re){const re=(pe==null?void 0:pe.year())||0,Ue=(pe==null?void 0:pe.month())||0,pt=Re.year(),Bt=Re.month();h.value=re===pt&&Ue===Bt?Re.add(1,k1):Re}else h.value=d.value.add(1,k1),Re&&(h.value=h.value.hour(Re.hour()).minute(Re.minute()).second(Re.second()))}return e("set-picker-option",["isValidValue",Q]),e("set-picker-option",["parseUserInput",se]),e("set-picker-option",["formatToString",Je]),e("set-picker-option",["handleClear",Be]),(pe,Re)=>(I(),X("div",{class:z([w(y).b(),w(m).b(),{"has-sidebar":pe.$slots.sidebar||w($),"has-time":w(fe)}])},[P("div",{class:z(w(y).e("body-wrapper"))},[Ce(pe.$slots,"sidebar",{class:z(w(y).e("sidebar"))}),w($)?(I(),X("div",{key:0,class:z(w(y).e("sidebar"))},[(I(!0),X(Qe,null,Vt(w(u),(re,Ue)=>(I(),X("button",{key:Ue,type:"button",class:z(w(y).e("shortcut")),onClick:pt=>w(x)(re)},Le(re.text),11,URe))),128))],2)):de("v-if",!0),P("div",{class:z(w(y).e("body"))},[w(fe)?(I(),X("div",{key:0,class:z(w(m).e("time-header"))},[P("span",{class:z(w(m).e("editors-wrap"))},[P("span",{class:z(w(m).e("time-picker-wrap"))},[U(w(wa),{size:"small",disabled:w(g).selecting,placeholder:w(C)("el.datepicker.startDate"),class:z(w(m).e("editor")),"model-value":w(V),"validate-event":!1,onInput:Re[0]||(Re[0]=re=>ze(re,"min")),onChange:Re[1]||(Re[1]=re=>We(re,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),ct((I(),X("span",{class:z(w(m).e("time-picker-wrap"))},[U(w(wa),{size:"small",class:z(w(m).e("editor")),disabled:w(g).selecting,placeholder:w(C)("el.datepicker.startTime"),"model-value":w(L),"validate-event":!1,onFocus:Re[2]||(Re[2]=re=>_e.value=!0),onInput:Re[3]||(Re[3]=re=>De(re,"min")),onChange:Re[4]||(Re[4]=re=>Fe(re,"min"))},null,8,["class","disabled","placeholder","model-value"]),U(w(Pw),{visible:_e.value,format:w(H),"datetime-role":"start","parsed-value":d.value,onPick:at},null,8,["visible","format","parsed-value"])],2)),[[w(pc),Te]])],2),P("span",null,[U(w(qe),null,{default:q(()=>[U(w(za))]),_:1})]),P("span",{class:z([w(m).e("editors-wrap"),"is-right"])},[P("span",{class:z(w(m).e("time-picker-wrap"))},[U(w(wa),{size:"small",class:z(w(m).e("editor")),disabled:w(g).selecting,placeholder:w(C)("el.datepicker.endDate"),"model-value":w(F),readonly:!w(v),"validate-event":!1,onInput:Re[5]||(Re[5]=re=>ze(re,"max")),onChange:Re[6]||(Re[6]=re=>We(re,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),ct((I(),X("span",{class:z(w(m).e("time-picker-wrap"))},[U(w(wa),{size:"small",class:z(w(m).e("editor")),disabled:w(g).selecting,placeholder:w(C)("el.datepicker.endTime"),"model-value":w(N),readonly:!w(v),"validate-event":!1,onFocus:Re[7]||(Re[7]=re=>w(v)&&(me.value=!0)),onInput:Re[8]||(Re[8]=re=>De(re,"max")),onChange:Re[9]||(Re[9]=re=>Fe(re,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),U(w(Pw),{"datetime-role":"end",visible:me.value,format:w(H),"parsed-value":h.value,onPick:yt},null,8,["visible","format","parsed-value"])],2)),[[w(pc),Ve]])],2)],2)):de("v-if",!0),P("div",{class:z([[w(y).e("content"),w(m).e("content")],"is-left"])},[P("div",{class:z(w(m).e("header"))},[P("button",{type:"button",class:z([w(y).e("icon-btn"),"d-arrow-left"]),"aria-label":w(C)("el.datepicker.prevYear"),onClick:ie},[U(w(qe),null,{default:q(()=>[U(w(Gp))]),_:1})],10,HRe),P("button",{type:"button",class:z([w(y).e("icon-btn"),"arrow-left"]),"aria-label":w(C)("el.datepicker.prevMonth"),onClick:be},[U(w(qe),null,{default:q(()=>[U(w(cc))]),_:1})],10,WRe),pe.unlinkPanels?(I(),X("button",{key:0,type:"button",disabled:!w(oe),class:z([[w(y).e("icon-btn"),{"is-disabled":!w(oe)}],"d-arrow-right"]),"aria-label":w(C)("el.datepicker.nextYear"),onClick:Z},[U(w(qe),null,{default:q(()=>[U(w(Up))]),_:1})],10,KRe)):de("v-if",!0),pe.unlinkPanels?(I(),X("button",{key:1,type:"button",disabled:!w(te),class:z([[w(y).e("icon-btn"),{"is-disabled":!w(te)}],"arrow-right"]),"aria-label":w(C)("el.datepicker.nextMonth"),onClick:ee},[U(w(qe),null,{default:q(()=>[U(w(za))]),_:1})],10,jRe)):de("v-if",!0),P("div",null,Le(w(M)),1)],2),U(ZD,{"selection-mode":"range",date:d.value,"min-date":w(v),"max-date":w(p),"range-state":w(g),"disabled-date":w(a),"cell-class-name":w(i),onChangerange:w(S),onPick:Ee,onSelect:w(_)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),P("div",{class:z([[w(y).e("content"),w(m).e("content")],"is-right"])},[P("div",{class:z(w(m).e("header"))},[pe.unlinkPanels?(I(),X("button",{key:0,type:"button",disabled:!w(oe),class:z([[w(y).e("icon-btn"),{"is-disabled":!w(oe)}],"d-arrow-left"]),"aria-label":w(C)("el.datepicker.prevYear"),onClick:ce},[U(w(qe),null,{default:q(()=>[U(w(Gp))]),_:1})],10,YRe)):de("v-if",!0),pe.unlinkPanels?(I(),X("button",{key:1,type:"button",disabled:!w(te),class:z([[w(y).e("icon-btn"),{"is-disabled":!w(te)}],"arrow-left"]),"aria-label":w(C)("el.datepicker.prevMonth"),onClick:ue},[U(w(qe),null,{default:q(()=>[U(w(cc))]),_:1})],10,XRe)):de("v-if",!0),P("button",{type:"button","aria-label":w(C)("el.datepicker.nextYear"),class:z([w(y).e("icon-btn"),"d-arrow-right"]),onClick:le},[U(w(qe),null,{default:q(()=>[U(w(Up))]),_:1})],10,qRe),P("button",{type:"button",class:z([w(y).e("icon-btn"),"arrow-right"]),"aria-label":w(C)("el.datepicker.nextMonth"),onClick:J},[U(w(qe),null,{default:q(()=>[U(w(za))]),_:1})],10,ZRe),P("div",null,Le(w(E)),1)],2),U(ZD,{"selection-mode":"range",date:h.value,"min-date":w(v),"max-date":w(p),"range-state":w(g),"disabled-date":w(a),"cell-class-name":w(i),onChangerange:w(S),onPick:Ee,onSelect:w(_)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),w(fe)?(I(),X("div",{key:0,class:z(w(y).e("footer"))},[w(l)?(I(),ve(w(ln),{key:0,text:"",size:"small",class:z(w(y).e("link-btn")),onClick:Be},{default:q(()=>[dt(Le(w(C)("el.datepicker.clear")),1)]),_:1},8,["class"])):de("v-if",!0),U(w(ln),{plain:"",size:"small",class:z(w(y).e("link-btn")),disabled:w(Se),onClick:Re[10]||(Re[10]=re=>w(b)(!1))},{default:q(()=>[dt(Le(w(C)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):de("v-if",!0)],2))}});var JRe=Ae(QRe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const eLe=Ne({...Lj}),tLe=["pick","set-picker-option","calendar-change"],nLe=({unlinkPanels:t,leftDate:e,rightDate:n})=>{const{t:r}=jt(),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=A(()=>`${e.value.year()} ${r("el.datepicker.year")}`),u=A(()=>`${n.value.year()} ${r("el.datepicker.year")}`),c=A(()=>e.value.year()),f=A(()=>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}},rLe=["onClick"],aLe=["disabled"],iLe=["disabled"],R1="year",oLe=ae({name:"DatePickerMonthRange"}),sLe=ae({...oLe,props:eLe,emits:tLe,setup(t,{emit:e}){const n=t,{lang:r}=jt(),a=Ye("EP_PICKER_BASE"),{shortcuts:i,disabledDate:o,format:s}=a.props,l=Kn(a.props,"defaultValue"),u=G(xt().locale(r.value)),c=G(xt().locale(r.value).add(1,R1)),{minDate:f,maxDate:d,rangeState:h,ppNs:v,drpNs:p,handleChangeRange:g,handleRangeConfirm:y,handleShortcutClick:m,onSelect:S}=Nj(n,{defaultValue:l,leftDate:u,rightDate:c,unit:R1,onParsedValueChanged:$}),b=A(()=>!!i.length),{leftPrevYear:x,rightNextYear:_,leftNextYear:C,rightPrevYear:T,leftLabel:D,rightLabel:M,leftYear:E,rightYear:k}=nLe({unlinkPanels:Kn(n,"unlinkPanels"),leftDate:u,rightDate:c}),R=A(()=>n.unlinkPanels&&k.value>E.value+1),O=(V,F=!0)=>{const L=V.minDate,N=V.maxDate;d.value===N&&f.value===L||(e("calendar-change",[L.toDate(),N&&N.toDate()]),d.value=N,f.value=L,F&&y())},B=V=>V.map(F=>F.format(s));function $(V,F){if(n.unlinkPanels&&F){const L=(V==null?void 0:V.year())||0,N=F.year();c.value=L===N?F.add(1,R1):F}else c.value=u.value.add(1,R1)}return e("set-picker-option",["formatToString",B]),(V,F)=>(I(),X("div",{class:z([w(v).b(),w(p).b(),{"has-sidebar":!!V.$slots.sidebar||w(b)}])},[P("div",{class:z(w(v).e("body-wrapper"))},[Ce(V.$slots,"sidebar",{class:z(w(v).e("sidebar"))}),w(b)?(I(),X("div",{key:0,class:z(w(v).e("sidebar"))},[(I(!0),X(Qe,null,Vt(w(i),(L,N)=>(I(),X("button",{key:N,type:"button",class:z(w(v).e("shortcut")),onClick:H=>w(m)(L)},Le(L.text),11,rLe))),128))],2)):de("v-if",!0),P("div",{class:z(w(v).e("body"))},[P("div",{class:z([[w(v).e("content"),w(p).e("content")],"is-left"])},[P("div",{class:z(w(p).e("header"))},[P("button",{type:"button",class:z([w(v).e("icon-btn"),"d-arrow-left"]),onClick:F[0]||(F[0]=(...L)=>w(x)&&w(x)(...L))},[U(w(qe),null,{default:q(()=>[U(w(Gp))]),_:1})],2),V.unlinkPanels?(I(),X("button",{key:0,type:"button",disabled:!w(R),class:z([[w(v).e("icon-btn"),{[w(v).is("disabled")]:!w(R)}],"d-arrow-right"]),onClick:F[1]||(F[1]=(...L)=>w(C)&&w(C)(...L))},[U(w(qe),null,{default:q(()=>[U(w(Up))]),_:1})],10,aLe)):de("v-if",!0),P("div",null,Le(w(D)),1)],2),U(QD,{"selection-mode":"range",date:u.value,"min-date":w(f),"max-date":w(d),"range-state":w(h),"disabled-date":w(o),onChangerange:w(g),onPick:O,onSelect:w(S)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),P("div",{class:z([[w(v).e("content"),w(p).e("content")],"is-right"])},[P("div",{class:z(w(p).e("header"))},[V.unlinkPanels?(I(),X("button",{key:0,type:"button",disabled:!w(R),class:z([[w(v).e("icon-btn"),{"is-disabled":!w(R)}],"d-arrow-left"]),onClick:F[2]||(F[2]=(...L)=>w(T)&&w(T)(...L))},[U(w(qe),null,{default:q(()=>[U(w(Gp))]),_:1})],10,iLe)):de("v-if",!0),P("button",{type:"button",class:z([w(v).e("icon-btn"),"d-arrow-right"]),onClick:F[3]||(F[3]=(...L)=>w(_)&&w(_)(...L))},[U(w(qe),null,{default:q(()=>[U(w(Up))]),_:1})],2),P("div",null,Le(w(M)),1)],2),U(QD,{"selection-mode":"range",date:c.value,"min-date":w(f),"max-date":w(d),"range-state":w(h),"disabled-date":w(o),onChangerange:w(g),onPick:O,onSelect:w(S)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var lLe=Ae(sLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const uLe=function(t){switch(t){case"daterange":case"datetimerange":return JRe;case"monthrange":return lLe;default:return FRe}};xt.extend(QK);xt.extend(jke);xt.extend(sA);xt.extend(Xke);xt.extend(Zke);xt.extend(Jke);xt.extend(tRe);xt.extend(rRe);var cLe=ae({name:"ElDatePicker",install:null,props:aRe,emits:["update:modelValue"],setup(t,{expose:e,emit:n,slots:r}){const a=ke("picker-panel");At("ElPopperOptions",Zt(Kn(t,"popperOptions"))),At(fA,{slots:r,pickerNs:a});const i=G();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:U2e[t.type]||Fh,c=uLe(t.type);return U(PK,Mt(t,{format:u,type:t.type,ref:i,"onUpdate:modelValue":s}),{default:f=>U(c,f,null),"range-separator":r["range-separator"]})}}});const $b=cLe;$b.install=t=>{t.component($b.name,$b)};const fLe=$b,hA=Symbol("elDescriptions");var sg=ae({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:Ye(hA,{})}},render(){var t,e,n,r,a,i;const o=qbe(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}`:"",v=o.labelAlign?`is-${o.labelAlign}`:h,p=o.className,g=o.labelClassName,y={width:rr(o.width),minWidth:rr(o.minWidth)},m=ke("descriptions");switch(this.type){case"label":return rt(this.tag,{style:y,class:[m.e("cell"),m.e("label"),m.is("bordered-label",s),m.is("vertical-label",u),v,g],colSpan:u?d:1},c);case"content":return rt(this.tag,{style:y,class:[m.e("cell"),m.e("content"),m.is("bordered-content",s),m.is("vertical-content",u),h,p],colSpan:u?d:d*2-1},f);default:return rt("td",{style:y,class:[m.e("cell"),h],colSpan:d},[mr(c)?void 0:rt("span",{class:[m.e("label"),g]},c),rt("span",{class:[m.e("content"),p]},f)])}}});const dLe=Ne({row:{type:Array,default:()=>[]}}),hLe={key:1},pLe=ae({name:"ElDescriptionsRow"}),vLe=ae({...pLe,props:dLe,setup(t){const e=Ye(hA,{});return(n,r)=>w(e).direction==="vertical"?(I(),X(Qe,{key:0},[P("tr",null,[(I(!0),X(Qe,null,Vt(n.row,(a,i)=>(I(),ve(w(sg),{key:`tr1-${i}`,cell:a,tag:"th",type:"label"},null,8,["cell"]))),128))]),P("tr",null,[(I(!0),X(Qe,null,Vt(n.row,(a,i)=>(I(),ve(w(sg),{key:`tr2-${i}`,cell:a,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(I(),X("tr",hLe,[(I(!0),X(Qe,null,Vt(n.row,(a,i)=>(I(),X(Qe,{key:`tr3-${i}`},[w(e).border?(I(),X(Qe,{key:0},[U(w(sg),{cell:a,tag:"td",type:"label"},null,8,["cell"]),U(w(sg),{cell:a,tag:"td",type:"content"},null,8,["cell"])],64)):(I(),ve(w(sg),{key:1,cell:a,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var gLe=Ae(vLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const yLe=Ne({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:sa,title:{type:String,default:""},extra:{type:String,default:""}}),mLe=ae({name:"ElDescriptions"}),SLe=ae({...mLe,props:yLe,setup(t){const e=t,n=ke("descriptions"),r=_r(),a=fa();At(hA,e);const i=A(()=>[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=yp((l=a.default)==null?void 0:l.call(a)).filter(v=>{var p;return((p=v==null?void 0:v.type)==null?void 0:p.name)==="ElDescriptionsItem"}),c=[];let f=[],d=e.column,h=0;return u.forEach((v,p)=>{var g;const y=((g=v.props)==null?void 0:g.span)||1;if(p<u.length-1&&(h+=y>d?d:y),p===u.length-1){const m=e.column-h%e.column;f.push(o(v,m,d,!0)),c.push(f);return}y<d?(d-=y,f.push(v)):(f.push(o(v,y,d)),c.push(f),d=e.column,f=[])}),c};return(l,u)=>(I(),X("div",{class:z(w(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(I(),X("div",{key:0,class:z(w(n).e("header"))},[P("div",{class:z(w(n).e("title"))},[Ce(l.$slots,"title",{},()=>[dt(Le(l.title),1)])],2),P("div",{class:z(w(n).e("extra"))},[Ce(l.$slots,"extra",{},()=>[dt(Le(l.extra),1)])],2)],2)):de("v-if",!0),P("div",{class:z(w(n).e("body"))},[P("table",{class:z([w(n).e("table"),w(n).is("bordered",l.border)])},[P("tbody",null,[(I(!0),X(Qe,null,Vt(s(),(c,f)=>(I(),ve(gLe,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var bLe=Ae(SLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),Vj=ae({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 wLe=Tt(bLe,{DescriptionsItem:Vj}),_Le=Qn(Vj),xLe=Ne({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:ge([String,Array,Object])},zIndex:{type:ge([String,Number])}}),CLe={click:t=>t instanceof MouseEvent},TLe="overlay";var ELe=ae({name:"ElOverlay",props:xLe,emits:CLe,setup(t,{slots:e,emit:n}){const r=ke(TLe),a=l=>{n("click",l)},{onClick:i,onMousedown:o,onMouseup:s}=XO(t.customMaskEvent?void 0:a);return()=>t.mask?U("div",{class:[r.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:i,onMousedown:o,onMouseup:s},[Ce(e,"default")],Ui.STYLE|Ui.CLASS|Ui.PROPS,["onClick","onMouseup","onMousedown"]):rt("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Ce(e,"default")])}});const pA=ELe,Bj=Symbol("dialogInjectionKey"),$j=Ne({center:Boolean,alignCenter:Boolean,closeIcon:{type:Tn},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),MLe={close:()=>!0},DLe=["aria-level"],kLe=["aria-label"],RLe=["id"],LLe=ae({name:"ElDialogContent"}),OLe=ae({...LLe,props:$j,emits:MLe,setup(t){const e=t,{t:n}=jt(),{Close:r}=x9,{dialogRef:a,headerRef:i,bodyId:o,ns:s,style:l}=Ye(Bj),{focusTrapRef:u}=Ye(aA),c=A(()=>[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=Wx(u,a),d=A(()=>e.draggable);return T9(a,i,d),(h,v)=>(I(),X("div",{ref:w(f),class:z(w(c)),style:et(w(l)),tabindex:"-1"},[P("header",{ref_key:"headerRef",ref:i,class:z(w(s).e("header"))},[Ce(h.$slots,"header",{},()=>[P("span",{role:"heading","aria-level":h.ariaLevel,class:z(w(s).e("title"))},Le(h.title),11,DLe)]),h.showClose?(I(),X("button",{key:0,"aria-label":w(n)("el.dialog.close"),class:z(w(s).e("headerbtn")),type:"button",onClick:v[0]||(v[0]=p=>h.$emit("close"))},[U(w(qe),{class:z(w(s).e("close"))},{default:q(()=>[(I(),ve(Dt(h.closeIcon||w(r))))]),_:1},8,["class"])],10,kLe)):de("v-if",!0)],2),P("div",{id:w(o),class:z(w(s).e("body"))},[Ce(h.$slots,"default")],10,RLe),h.$slots.footer?(I(),X("footer",{key:0,class:z(w(s).e("footer"))},[Ce(h.$slots,"footer")],2)):de("v-if",!0)],6))}});var ALe=Ae(OLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const Ij=Ne({...$j,appendToBody:Boolean,beforeClose:{type:ge(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"}}),Pj={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Et]:t=>Sr(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Fj=(t,e)=>{const r=_t().emit,{nextZIndex:a}=Tv();let i="";const o=lo(),s=lo(),l=G(!1),u=G(!1),c=G(!1),f=G(t.zIndex||a());let d,h;const v=Jx("namespace",g0),p=A(()=>{const O={},B=`--${v.value}-dialog`;return t.fullscreen||(t.top&&(O[`${B}-margin-top`]=t.top),t.width&&(O[`${B}-width`]=rr(t.width))),O}),g=A(()=>t.alignCenter?{display:"flex"}:{});function y(){r("opened")}function m(){r("closed"),r(Et,!1),t.destroyOnClose&&(c.value=!1)}function S(){r("close")}function b(){h==null||h(),d==null||d(),t.openDelay&&t.openDelay>0?{stop:d}=Rd(()=>T(),t.openDelay):T()}function x(){d==null||d(),h==null||h(),t.closeDelay&&t.closeDelay>0?{stop:h}=Rd(()=>D(),t.closeDelay):D()}function _(){function O(B){B||(u.value=!0,l.value=!1)}t.beforeClose?t.beforeClose(O):x()}function C(){t.closeOnClickModal&&_()}function T(){Ht&&(l.value=!0)}function D(){l.value=!1}function M(){r("openAutoFocus")}function E(){r("closeAutoFocus")}function k(O){var B;((B=O.detail)==null?void 0:B.focusReason)==="pointer"&&O.preventDefault()}t.lockScroll&&D9(l);function R(){t.closeOnPressEscape&&_()}return Me(()=>t.modelValue,O=>{O?(u.value=!1,b(),c.value=!0,f.value=t.zIndex?f.value++:a(),Ze(()=>{r("open"),e.value&&(e.value.scrollTop=0)})):l.value&&x()}),Me(()=>t.fullscreen,O=>{e.value&&(O?(i=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=i)}),St(()=>{t.modelValue&&(l.value=!0,c.value=!0,b())}),{afterEnter:y,afterLeave:m,beforeLeave:S,handleClose:_,onModalClick:C,close:x,doClose:D,onOpenAutoFocus:M,onCloseAutoFocus:E,onCloseRequested:R,onFocusoutPrevented:k,titleId:o,bodyId:s,closed:u,style:p,overlayDialogStyle:g,rendered:c,visible:l,zIndex:f}},NLe=["aria-label","aria-labelledby","aria-describedby"],VLe=ae({name:"ElDialog",inheritAttrs:!1}),BLe=ae({...VLe,props:Ij,emits:Pj,setup(t,{expose:e}){const n=t,r=fa();Ws({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"},A(()=>!!r.title)),Ws({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"},A(()=>!!n.customClass));const a=ke("dialog"),i=G(),o=G(),s=G(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:h,zIndex:v,afterEnter:p,afterLeave:g,beforeLeave:y,handleClose:m,onModalClick:S,onOpenAutoFocus:b,onCloseAutoFocus:x,onCloseRequested:_,onFocusoutPrevented:C}=Fj(n,i);At(Bj,{dialogRef:i,headerRef:o,bodyId:c,ns:a,rendered:h,style:f});const T=XO(S),D=A(()=>n.draggable&&!n.fullscreen);return e({visible:l,dialogContentRef:s}),(M,E)=>(I(),ve(vm,{to:"body",disabled:!M.appendToBody},[U(or,{name:"dialog-fade",onAfterEnter:w(p),onAfterLeave:w(g),onBeforeLeave:w(y),persisted:""},{default:q(()=>[ct(U(w(pA),{"custom-mask-event":"",mask:M.modal,"overlay-class":M.modalClass,"z-index":w(v)},{default:q(()=>[P("div",{role:"dialog","aria-modal":"true","aria-label":M.title||void 0,"aria-labelledby":M.title?void 0:w(u),"aria-describedby":w(c),class:z(`${w(a).namespace.value}-overlay-dialog`),style:et(w(d)),onClick:E[0]||(E[0]=(...k)=>w(T).onClick&&w(T).onClick(...k)),onMousedown:E[1]||(E[1]=(...k)=>w(T).onMousedown&&w(T).onMousedown(...k)),onMouseup:E[2]||(E[2]=(...k)=>w(T).onMouseup&&w(T).onMouseup(...k))},[U(w(nC),{loop:"",trapped:w(l),"focus-start-el":"container",onFocusAfterTrapped:w(b),onFocusAfterReleased:w(x),onFocusoutPrevented:w(C),onReleaseRequested:w(_)},{default:q(()=>[w(h)?(I(),ve(ALe,Mt({key:0,ref_key:"dialogContentRef",ref:s},M.$attrs,{"custom-class":M.customClass,center:M.center,"align-center":M.alignCenter,"close-icon":M.closeIcon,draggable:w(D),fullscreen:M.fullscreen,"show-close":M.showClose,title:M.title,"aria-level":M.headerAriaLevel,onClose:w(m)}),Bl({header:q(()=>[M.$slots.title?Ce(M.$slots,"title",{key:1}):Ce(M.$slots,"header",{key:0,close:w(m),titleId:w(u),titleClass:w(a).e("title")})]),default:q(()=>[Ce(M.$slots,"default")]),_:2},[M.$slots.footer?{name:"footer",fn:q(()=>[Ce(M.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):de("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,NLe)]),_:3},8,["mask","overlay-class","z-index"]),[[Nt,w(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var $Le=Ae(BLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const Ds=Tt($Le),ILe=Ne({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ge(String),default:"solid"}}),PLe=ae({name:"ElDivider"}),FLe=ae({...PLe,props:ILe,setup(t){const e=t,n=ke("divider"),r=A(()=>n.cssVar({"border-style":e.borderStyle}));return(a,i)=>(I(),X("div",{class:z([w(n).b(),w(n).m(a.direction)]),style:et(w(r)),role:"separator"},[a.$slots.default&&a.direction!=="vertical"?(I(),X("div",{key:0,class:z([w(n).e("text"),w(n).is(a.contentPosition)])},[Ce(a.$slots,"default")],2)):de("v-if",!0)],6))}});var zLe=Ae(FLe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const zj=Tt(zLe),GLe=Ne({...Ij,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"}}),ULe=Pj,HLe=ae({name:"ElDrawer",components:{ElOverlay:pA,ElFocusTrap:nC,ElIcon:qe,Close:Jo},inheritAttrs:!1,props:GLe,emits:ULe,setup(t,{slots:e}){Ws({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"},A(()=>!!e.title)),Ws({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"},A(()=>!!t.customClass));const n=G(),r=G(),a=ke("drawer"),{t:i}=jt(),o=A(()=>t.direction==="rtl"||t.direction==="ltr"),s=A(()=>rr(t.size));return{...Fj(t,n),drawerRef:n,focusStartRef:r,isHorizontal:o,drawerSize:s,ns:a,t:i}}}),WLe=["aria-label","aria-labelledby","aria-describedby"],KLe=["id","aria-level"],jLe=["aria-label"],YLe=["id"];function XLe(t,e,n,r,a,i){const o=Pe("close"),s=Pe("el-icon"),l=Pe("el-focus-trap"),u=Pe("el-overlay");return I(),ve(vm,{to:"body",disabled:!t.appendToBody},[U(or,{name:t.ns.b("fade"),onAfterEnter:t.afterEnter,onAfterLeave:t.afterLeave,onBeforeLeave:t.beforeLeave,persisted:""},{default:q(()=>[ct(U(u,{mask:t.modal,"overlay-class":t.modalClass,"z-index":t.zIndex,onClick:t.onModalClick},{default:q(()=>[U(l,{loop:"",trapped:t.visible,"focus-trap-el":t.drawerRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:q(()=>[P("div",Mt({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]=ot(()=>{},["stop"]))}),[P("span",{ref:"focusStartRef",class:z(t.ns.e("sr-focus")),tabindex:"-1"},null,2),t.withHeader?(I(),X("header",{key:0,class:z(t.ns.e("header"))},[t.$slots.title?Ce(t.$slots,"title",{key:1},()=>[de(" DEPRECATED SLOT ")]):Ce(t.$slots,"header",{key:0,close:t.handleClose,titleId:t.titleId,titleClass:t.ns.e("title")},()=>[t.$slots.title?de("v-if",!0):(I(),X("span",{key:0,id:t.titleId,role:"heading","aria-level":t.headerAriaLevel,class:z(t.ns.e("title"))},Le(t.title),11,KLe))]),t.showClose?(I(),X("button",{key:2,"aria-label":t.t("el.drawer.close"),class:z(t.ns.e("close-btn")),type:"button",onClick:e[0]||(e[0]=(...c)=>t.handleClose&&t.handleClose(...c))},[U(s,{class:z(t.ns.e("close"))},{default:q(()=>[U(o)]),_:1},8,["class"])],10,jLe)):de("v-if",!0)],2)):de("v-if",!0),t.rendered?(I(),X("div",{key:1,id:t.bodyId,class:z(t.ns.e("body"))},[Ce(t.$slots,"default")],10,YLe)):de("v-if",!0),t.$slots.footer?(I(),X("div",{key:2,class:z(t.ns.e("footer"))},[Ce(t.$slots,"footer")],2)):de("v-if",!0)],16,WLe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Nt,t.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var qLe=Ae(HLe,[["render",XLe],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const ZLe=Tt(qLe),QLe=ae({inheritAttrs:!1});function JLe(t,e,n,r,a,i){return Ce(t.$slots,"default")}var eOe=Ae(QLe,[["render",JLe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const tOe=ae({name:"ElCollectionItem",inheritAttrs:!1});function nOe(t,e,n,r,a,i){return Ce(t.$slots,"default")}var rOe=Ae(tOe,[["render",nOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const Gj="data-el-collection-item",Uj=t=>{const e=`El${t}Collection`,n=`${e}Item`,r=Symbol(e),a=Symbol(n),i={...eOe,name:e,setup(){const s=G(null),l=new Map;At(r,{itemMap:l,getItems:()=>{const c=w(s);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${Gj}]`));return[...l.values()].sort((h,v)=>f.indexOf(h.ref)-f.indexOf(v.ref))},collectionRef:s})}},o={...rOe,name:n,setup(s,{attrs:l}){const u=G(null),c=Ye(r,void 0);At(a,{collectionItemRef:u}),St(()=>{const f=w(u);f&&c.itemMap.set(f,{ref:f,...l})}),Pn(()=>{const f=w(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:i,ElCollectionItem:o}},aOe=Ne({style:{type:ge([String,Array,Object])},currentTabId:{type:ge(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ge(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:iOe,ElCollectionItem:oOe,COLLECTION_INJECTION_KEY:vA,COLLECTION_ITEM_INJECTION_KEY:sOe}=Uj("RovingFocusGroup"),gA=Symbol("elRovingFocusGroup"),Hj=Symbol("elRovingFocusGroupItem"),lOe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},uOe=(t,e)=>{if(e!=="rtl")return t;switch(t){case nt.right:return nt.left;case nt.left:return nt.right;default:return t}},cOe=(t,e,n)=>{const r=uOe(t.key,n);if(!(e==="vertical"&&[nt.left,nt.right].includes(r))&&!(e==="horizontal"&&[nt.up,nt.down].includes(r)))return lOe[r]},fOe=(t,e)=>t.map((n,r)=>t[(r+e)%t.length]),yA=t=>{const{activeElement:e}=document;for(const n of t)if(n===e||(n.focus(),e!==document.activeElement))return},uP="currentTabIdChange",cP="rovingFocusGroup.entryFocus",dOe={bubbles:!1,cancelable:!0},hOe=ae({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:aOe,emits:[uP,"entryFocus"],setup(t,{emit:e}){var n;const r=G((n=t.currentTabId||t.defaultCurrentTabId)!=null?n:null),a=G(!1),i=G(!1),o=G(null),{getItems:s}=Ye(vA,void 0),l=A(()=>[{outline:"none"},t.style]),u=p=>{e(uP,p)},c=()=>{a.value=!0},f=Zn(p=>{var g;(g=t.onMousedown)==null||g.call(t,p)},()=>{i.value=!0}),d=Zn(p=>{var g;(g=t.onFocus)==null||g.call(t,p)},p=>{const g=!w(i),{target:y,currentTarget:m}=p;if(y===m&&g&&!w(a)){const S=new Event(cP,dOe);if(m==null||m.dispatchEvent(S),!S.defaultPrevented){const b=s().filter(D=>D.focusable),x=b.find(D=>D.active),_=b.find(D=>D.id===w(r)),T=[x,_,...b].filter(Boolean).map(D=>D.ref);yA(T)}}i.value=!1}),h=Zn(p=>{var g;(g=t.onBlur)==null||g.call(t,p)},()=>{a.value=!1}),v=(...p)=>{e("entryFocus",...p)};At(gA,{currentTabbedId:bv(r),loop:Kn(t,"loop"),tabIndex:A(()=>w(a)?-1:0),rovingFocusGroupRef:o,rovingFocusGroupRootStyle:l,orientation:Kn(t,"orientation"),dir:Kn(t,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:d,onMousedown:f}),Me(()=>t.currentTabId,p=>{r.value=p??null}),$n(o,cP,v)}});function pOe(t,e,n,r,a,i){return Ce(t.$slots,"default")}var vOe=Ae(hOe,[["render",pOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const gOe=ae({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:iOe,ElRovingFocusGroupImpl:vOe}});function yOe(t,e,n,r,a,i){const o=Pe("el-roving-focus-group-impl"),s=Pe("el-focus-group-collection");return I(),ve(s,null,{default:q(()=>[U(o,Po(Dx(t.$attrs)),{default:q(()=>[Ce(t.$slots,"default")]),_:3},16)]),_:3})}var mOe=Ae(gOe,[["render",yOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const SOe=ae({components:{ElRovingFocusCollectionItem:oOe},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}=Ye(gA,void 0),{getItems:o}=Ye(vA,void 0),s=lo(),l=G(null),u=Zn(h=>{e("mousedown",h)},h=>{t.focusable?a(w(s)):h.preventDefault()}),c=Zn(h=>{e("focus",h)},()=>{a(w(s))}),f=Zn(h=>{e("keydown",h)},h=>{const{key:v,shiftKey:p,target:g,currentTarget:y}=h;if(v===nt.tab&&p){i();return}if(g!==y)return;const m=cOe(h);if(m){h.preventDefault();let b=o().filter(x=>x.focusable).map(x=>x.ref);switch(m){case"last":{b.reverse();break}case"prev":case"next":{m==="prev"&&b.reverse();const x=b.indexOf(y);b=r.value?fOe(b,x+1):b.slice(x+1);break}}Ze(()=>{yA(b)})}}),d=A(()=>n.value===w(s));return At(Hj,{rovingFocusGroupItemRef:l,tabIndex:A(()=>w(d)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:s,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function bOe(t,e,n,r,a,i){const o=Pe("el-roving-focus-collection-item");return I(),ve(o,{id:t.id,focusable:t.focusable,active:t.active},{default:q(()=>[Ce(t.$slots,"default")]),_:3},8,["id","focusable","active"])}var wOe=Ae(SOe,[["render",bOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const Ib=Ne({trigger:py.trigger,effect:{...Hr.effect,default:"light"},type:{type:ge(String)},placement:{type:ge(String),default:"bottom"},popperOptions:{type:ge(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:ge([Number,String]),default:0},maxHeight:{type:ge([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:ge(Object)},teleported:Hr.teleported}),Wj=Ne({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Tn}}),_Oe=Ne({onKeydown:{type:ge(Function)}}),xOe=[nt.down,nt.pageDown,nt.home],Kj=[nt.up,nt.pageUp,nt.end],COe=[...xOe,...Kj],{ElCollection:TOe,ElCollectionItem:EOe,COLLECTION_INJECTION_KEY:MOe,COLLECTION_ITEM_INJECTION_KEY:DOe}=Uj("Dropdown"),iC=Symbol("elDropdown"),{ButtonGroup:kOe}=ln,ROe=ae({name:"ElDropdown",components:{ElButton:ln,ElButtonGroup:kOe,ElScrollbar:Jl,ElDropdownCollection:TOe,ElTooltip:Ya,ElRovingFocusGroup:mOe,ElOnlyChild:yK,ElIcon:qe,ArrowDown:Dc},props:Ib,emits:["visible-change","click","command"],setup(t,{emit:e}){const n=_t(),r=ke("dropdown"),{t:a}=jt(),i=G(),o=G(),s=G(null),l=G(null),u=G(null),c=G(null),f=G(!1),d=[nt.enter,nt.space,nt.down],h=A(()=>({maxHeight:rr(t.maxHeight)})),v=A(()=>[r.m(x.value)]),p=A(()=>Od(t.trigger)),g=lo().value,y=A(()=>t.id||g);Me([i,p],([V,F],[L])=>{var N,H,K;(N=L==null?void 0:L.$el)!=null&&N.removeEventListener&&L.$el.removeEventListener("pointerenter",C),(H=V==null?void 0:V.$el)!=null&&H.removeEventListener&&V.$el.removeEventListener("pointerenter",C),(K=V==null?void 0:V.$el)!=null&&K.addEventListener&&F.includes("hover")&&V.$el.addEventListener("pointerenter",C)},{immediate:!0}),Pn(()=>{var V,F;(F=(V=i.value)==null?void 0:V.$el)!=null&&F.removeEventListener&&i.value.$el.removeEventListener("pointerenter",C)});function m(){S()}function S(){var V;(V=s.value)==null||V.onClose()}function b(){var V;(V=s.value)==null||V.onOpen()}const x=_r();function _(...V){e("command",...V)}function C(){var V,F;(F=(V=i.value)==null?void 0:V.$el)==null||F.focus()}function T(){}function D(){const V=w(l);p.value.includes("hover")&&(V==null||V.focus()),c.value=null}function M(V){c.value=V}function E(V){f.value||(V.preventDefault(),V.stopImmediatePropagation())}function k(){e("visible-change",!0)}function R(V){(V==null?void 0:V.type)==="keydown"&&l.value.focus()}function O(){e("visible-change",!1)}return At(iC,{contentRef:l,role:A(()=>t.role),triggerId:y,isUsingKeyboard:f,onItemEnter:T,onItemLeave:D}),At("elDropdown",{instance:n,dropdownSize:x,handleClick:m,commandHandler:_,trigger:Kn(t,"trigger"),hideOnClick:Kn(t,"hideOnClick")}),{t:a,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:v,dropdownSize:x,triggerId:y,triggerKeys:d,currentTabId:c,handleCurrentTabIdChange:M,handlerMainButtonClick:V=>{e("click",V)},handleEntryFocus:E,handleClose:S,handleOpen:b,handleBeforeShowTooltip:k,handleShowTooltip:R,handleBeforeHideTooltip:O,onFocusAfterTrapped:V=>{var F,L;V.preventDefault(),(L=(F=l.value)==null?void 0:F.focus)==null||L.call(F,{preventScroll:!0})},popperRef:s,contentRef:l,triggeringElementRef:i,referenceElementRef:o}}});function LOe(t,e,n,r,a,i){var o;const s=Pe("el-dropdown-collection"),l=Pe("el-roving-focus-group"),u=Pe("el-scrollbar"),c=Pe("el-only-child"),f=Pe("el-tooltip"),d=Pe("el-button"),h=Pe("arrow-down"),v=Pe("el-icon"),p=Pe("el-button-group");return I(),X("div",{class:z([t.ns.b(),t.ns.is("disabled",t.disabled)])},[U(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},Bl({content:q(()=>[U(u,{ref:"scrollbar","wrap-style":t.wrapStyle,tag:"div","view-class":t.ns.e("list")},{default:q(()=>[U(l,{loop:t.loop,"current-tab-id":t.currentTabId,orientation:"horizontal",onCurrentTabIdChange:t.handleCurrentTabIdChange,onEntryFocus:t.handleEntryFocus},{default:q(()=>[U(s,null,{default:q(()=>[Ce(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:q(()=>[U(c,{id:t.triggerId,ref:"triggeringElementRef",role:"button",tabindex:t.tabindex},{default:q(()=>[Ce(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?(I(),ve(p,{key:0},{default:q(()=>[U(d,Mt({ref:"referenceElementRef"},t.buttonProps,{size:t.dropdownSize,type:t.type,disabled:t.disabled,tabindex:t.tabindex,onClick:t.handlerMainButtonClick}),{default:q(()=>[Ce(t.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),U(d,Mt({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:q(()=>[U(v,{class:z(t.ns.e("icon"))},{default:q(()=>[U(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):de("v-if",!0)],2)}var OOe=Ae(ROe,[["render",LOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const AOe=ae({name:"DropdownItemImpl",components:{ElIcon:qe},props:Wj,emits:["pointermove","pointerleave","click","clickimpl"],setup(t,{emit:e}){const n=ke("dropdown"),{role:r}=Ye(iC,void 0),{collectionItemRef:a}=Ye(DOe,void 0),{collectionItemRef:i}=Ye(sOe,void 0),{rovingFocusGroupItemRef:o,tabIndex:s,handleFocus:l,handleKeydown:u,handleMousedown:c}=Ye(Hj,void 0),f=Wx(a,i,o),d=A(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=Zn(v=>{const{code:p}=v;if(p===nt.enter||p===nt.space)return v.preventDefault(),v.stopImmediatePropagation(),e("clickimpl",v),!0},u);return{ns:n,itemRef:f,dataset:{[Gj]:""},role:d,tabIndex:s,handleFocus:l,handleKeydown:h,handleMousedown:c}}}),NOe=["aria-disabled","tabindex","role"];function VOe(t,e,n,r,a,i){const o=Pe("el-icon");return I(),X(Qe,null,[t.divided?(I(),X("li",Mt({key:0,role:"separator",class:t.ns.bem("menu","item","divided")},t.$attrs),null,16)):de("v-if",!0),P("li",Mt({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]=ot((...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?(I(),ve(o,{key:0},{default:q(()=>[(I(),ve(Dt(t.icon)))]),_:1})):de("v-if",!0),Ce(t.$slots,"default")],16,NOe)],64)}var BOe=Ae(AOe,[["render",VOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const jj=()=>{const t=Ye("elDropdown",{}),e=A(()=>t==null?void 0:t.dropdownSize);return{elDropdown:t,_elDropdownSize:e}},$Oe=ae({name:"ElDropdownItem",components:{ElDropdownCollectionItem:EOe,ElRovingFocusItem:wOe,ElDropdownItemImpl:BOe},inheritAttrs:!1,props:Wj,emits:["pointermove","pointerleave","click"],setup(t,{emit:e,attrs:n}){const{elDropdown:r}=jj(),a=_t(),i=G(null),o=A(()=>{var h,v;return(v=(h=w(i))==null?void 0:h.textContent)!=null?v:""}),{onItemEnter:s,onItemLeave:l}=Ye(iC,void 0),u=Zn(h=>(e("pointermove",h),h.defaultPrevented),c$(h=>{if(t.disabled){l(h);return}const v=h.currentTarget;v===document.activeElement||v.contains(document.activeElement)||(s(h),h.defaultPrevented||v==null||v.focus())})),c=Zn(h=>(e("pointerleave",h),h.defaultPrevented),c$(h=>{l(h)})),f=Zn(h=>{if(!t.disabled)return e("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var v,p,g;if(t.disabled){h.stopImmediatePropagation();return}(v=r==null?void 0:r.hideOnClick)!=null&&v.value&&((p=r.handleClick)==null||p.call(r)),(g=r.commandHandler)==null||g.call(r,t.command,a,h)}),d=A(()=>({...t,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:o,propsAndAttrs:d}}});function IOe(t,e,n,r,a,i){var o;const s=Pe("el-dropdown-item-impl"),l=Pe("el-roving-focus-item"),u=Pe("el-dropdown-collection-item");return I(),ve(u,{disabled:t.disabled,"text-value":(o=t.textValue)!=null?o:t.textContent},{default:q(()=>[U(l,{focusable:!t.disabled},{default:q(()=>[U(s,Mt(t.propsAndAttrs,{onPointerleave:t.handlePointerLeave,onPointermove:t.handlePointerMove,onClickimpl:t.handleClick}),{default:q(()=>[Ce(t.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var Yj=Ae($Oe,[["render",IOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const POe=ae({name:"ElDropdownMenu",props:_Oe,setup(t){const e=ke("dropdown"),{_elDropdownSize:n}=jj(),r=n.value,{focusTrapRef:a,onKeydown:i}=Ye(aA,void 0),{contentRef:o,role:s,triggerId:l}=Ye(iC,void 0),{collectionRef:u,getItems:c}=Ye(MOe,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:d,tabIndex:h,onBlur:v,onFocus:p,onMousedown:g}=Ye(gA,void 0),{collectionRef:y}=Ye(vA,void 0),m=A(()=>[e.b("menu"),e.bm("menu",r==null?void 0:r.value)]),S=Wx(o,u,a,f,y),b=Zn(_=>{var C;(C=t.onKeydown)==null||C.call(t,_)},_=>{const{currentTarget:C,code:T,target:D}=_;if(C.contains(D),nt.tab===T&&_.stopImmediatePropagation(),_.preventDefault(),D!==w(o)||!COe.includes(T))return;const E=c().filter(k=>!k.disabled).map(k=>k.ref);Kj.includes(T)&&E.reverse(),yA(E)});return{size:r,rovingFocusGroupRootStyle:d,tabIndex:h,dropdownKls:m,role:s,triggerId:l,dropdownListWrapperRef:S,handleKeydown:_=>{b(_),i(_)},onBlur:v,onFocus:p,onMousedown:g}}}),FOe=["role","aria-labelledby"];function zOe(t,e,n,r,a,i){return I(),X("ul",{ref:t.dropdownListWrapperRef,class:z(t.dropdownKls),style:et(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]=ot((...o)=>t.handleKeydown&&t.handleKeydown(...o),["self"])),onMousedown:e[3]||(e[3]=ot((...o)=>t.onMousedown&&t.onMousedown(...o),["self"]))},[Ce(t.$slots,"default")],46,FOe)}var Xj=Ae(POe,[["render",zOe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const GOe=Tt(OOe,{DropdownItem:Yj,DropdownMenu:Xj}),UOe=Qn(Yj),HOe=Qn(Xj),WOe={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},KOe=["id"],jOe=["stop-color"],YOe=["stop-color"],XOe=["id"],qOe=["stop-color"],ZOe=["stop-color"],QOe=["id"],JOe={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},eAe={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},tAe={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},nAe=["fill"],rAe=["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)"},iAe=["fill"],oAe=["fill"],sAe=["fill"],lAe=["fill"],uAe=["fill"],cAe={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},fAe=["fill","xlink:href"],dAe=["fill","mask"],hAe=["fill"],pAe=ae({name:"ImgEmpty"}),vAe=ae({...pAe,setup(t){const e=ke("empty"),n=lo();return(r,a)=>(I(),X("svg",WOe,[P("defs",null,[P("linearGradient",{id:`linearGradient-1-${w(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[P("stop",{"stop-color":`var(${w(e).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,jOe),P("stop",{"stop-color":`var(${w(e).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,YOe)],8,KOe),P("linearGradient",{id:`linearGradient-2-${w(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[P("stop",{"stop-color":`var(${w(e).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,qOe),P("stop",{"stop-color":`var(${w(e).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,ZOe)],8,XOe),P("rect",{id:`path-3-${w(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,QOe)]),P("g",JOe,[P("g",eAe,[P("g",tAe,[P("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(${w(e).cssVarBlockName("fill-color-3")})`},null,8,nAe),P("polygon",{id:"Rectangle-Copy-14",fill:`var(${w(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,rAe),P("g",aAe,[P("polygon",{id:"Rectangle-Copy-10",fill:`var(${w(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,iAe),P("polygon",{id:"Rectangle-Copy-11",fill:`var(${w(e).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,oAe),P("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${w(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,sAe),P("polygon",{id:"Rectangle-Copy-13",fill:`var(${w(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,lAe)]),P("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${w(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,uAe),P("g",cAe,[P("use",{id:"Mask",fill:`var(${w(e).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${w(n)}`},null,8,fAe),P("polygon",{id:"Rectangle-Copy",fill:`var(${w(e).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${w(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,dAe)]),P("polygon",{id:"Rectangle-Copy-18",fill:`var(${w(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,hAe)])])])]))}});var gAe=Ae(vAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const yAe=Ne({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),mAe=["src"],SAe={key:1},bAe=ae({name:"ElEmpty"}),wAe=ae({...bAe,props:yAe,setup(t){const e=t,{t:n}=jt(),r=ke("empty"),a=A(()=>e.description||n("el.table.emptyText")),i=A(()=>({width:rr(e.imageSize)}));return(o,s)=>(I(),X("div",{class:z(w(r).b())},[P("div",{class:z(w(r).e("image")),style:et(w(i))},[o.image?(I(),X("img",{key:0,src:o.image,ondragstart:"return false"},null,8,mAe)):Ce(o.$slots,"image",{key:1},()=>[U(gAe)])],6),P("div",{class:z(w(r).e("description"))},[o.$slots.description?Ce(o.$slots,"description",{key:0}):(I(),X("p",SAe,Le(w(a)),1))],2),o.$slots.default?(I(),X("div",{key:0,class:z(w(r).e("bottom"))},[Ce(o.$slots,"default")],2)):de("v-if",!0)],2))}});var _Ae=Ae(wAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const qj=Tt(_Ae),xAe=Ne({urlList:{type:ge(Array),default:()=>Gn([])},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}}),CAe={close:()=>!0,switch:t=>ut(t),rotate:t=>ut(t)},TAe=["src"],EAe=ae({name:"ElImageViewer"}),MAe=ae({...EAe,props:xAe,emits:CAe,setup(t,{expose:e,emit:n}){const r=t,a={CONTAIN:{name:"contain",icon:qu(T1e)},ORIGINAL:{name:"original",icon:qu(FSe)}},{t:i}=jt(),o=ke("image-viewer"),{nextZIndex:s}=Tv(),l=G(),u=G([]),c=ZH(),f=G(!0),d=G(r.initialIndex),h=Cn(a.CONTAIN),v=G({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),p=A(()=>{const{urlList:L}=r;return L.length<=1}),g=A(()=>d.value===0),y=A(()=>d.value===r.urlList.length-1),m=A(()=>r.urlList[d.value]),S=A(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!r.infinite&&g.value)]),b=A(()=>[o.e("btn"),o.e("next"),o.is("disabled",!r.infinite&&y.value)]),x=A(()=>{const{scale:L,deg:N,offsetX:H,offsetY:K,enableTransition:Q}=v.value;let ie=H/L,be=K/L;switch(N%360){case 90:case-270:[ie,be]=[be,-ie];break;case 180:case-180:[ie,be]=[-ie,-be];break;case 270:case-90:[ie,be]=[-be,ie];break}const le={transform:`scale(${L}) rotate(${N}deg) translate(${ie}px, ${be}px)`,transition:Q?"transform .3s":""};return h.value.name===a.CONTAIN.name&&(le.maxWidth=le.maxHeight="100%"),le}),_=A(()=>ut(r.zIndex)?r.zIndex:s());function C(){D(),n("close")}function T(){const L=hd(H=>{switch(H.code){case nt.esc:r.closeOnPressEscape&&C();break;case nt.space:O();break;case nt.left:$();break;case nt.up:F("zoomIn");break;case nt.right:V();break;case nt.down:F("zoomOut");break}}),N=hd(H=>{const K=H.deltaY||H.deltaX;F(K<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});c.run(()=>{$n(document,"keydown",L),$n(document,"wheel",N)})}function D(){c.stop()}function M(){f.value=!1}function E(L){f.value=!1,L.target.alt=i("el.image.error")}function k(L){if(f.value||L.button!==0||!l.value)return;v.value.enableTransition=!1;const{offsetX:N,offsetY:H}=v.value,K=L.pageX,Q=L.pageY,ie=hd(le=>{v.value={...v.value,offsetX:N+le.pageX-K,offsetY:H+le.pageY-Q}}),be=$n(document,"mousemove",ie);$n(document,"mouseup",()=>{be()}),L.preventDefault()}function R(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function O(){if(f.value)return;const L=ly(a),N=Object.values(a),H=h.value.name,Q=(N.findIndex(ie=>ie.name===H)+1)%L.length;h.value=a[L[Q]],R()}function B(L){const N=r.urlList.length;d.value=(L+N)%N}function $(){g.value&&!r.infinite||B(d.value-1)}function V(){y.value&&!r.infinite||B(d.value+1)}function F(L,N={}){if(f.value)return;const{zoomRate:H,rotateDeg:K,enableTransition:Q}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...N};switch(L){case"zoomOut":v.value.scale>.2&&(v.value.scale=Number.parseFloat((v.value.scale/H).toFixed(3)));break;case"zoomIn":v.value.scale<7&&(v.value.scale=Number.parseFloat((v.value.scale*H).toFixed(3)));break;case"clockwise":v.value.deg+=K,n("rotate",v.value.deg);break;case"anticlockwise":v.value.deg-=K,n("rotate",v.value.deg);break}v.value.enableTransition=Q}return Me(m,()=>{Ze(()=>{const L=u.value[0];L!=null&&L.complete||(f.value=!0)})}),Me(d,L=>{R(),n("switch",L)}),St(()=>{var L,N;T(),(N=(L=l.value)==null?void 0:L.focus)==null||N.call(L)}),e({setActiveItem:B}),(L,N)=>(I(),ve(vm,{to:"body",disabled:!L.teleported},[U(or,{name:"viewer-fade",appear:""},{default:q(()=>[P("div",{ref_key:"wrapper",ref:l,tabindex:-1,class:z(w(o).e("wrapper")),style:et({zIndex:w(_)})},[P("div",{class:z(w(o).e("mask")),onClick:N[0]||(N[0]=ot(H=>L.hideOnClickModal&&C(),["self"]))},null,2),de(" CLOSE "),P("span",{class:z([w(o).e("btn"),w(o).e("close")]),onClick:C},[U(w(qe),null,{default:q(()=>[U(w(Jo))]),_:1})],2),de(" ARROW "),w(p)?de("v-if",!0):(I(),X(Qe,{key:0},[P("span",{class:z(w(S)),onClick:$},[U(w(qe),null,{default:q(()=>[U(w(cc))]),_:1})],2),P("span",{class:z(w(b)),onClick:V},[U(w(qe),null,{default:q(()=>[U(w(za))]),_:1})],2)],64)),de(" ACTIONS "),P("div",{class:z([w(o).e("btn"),w(o).e("actions")])},[P("div",{class:z(w(o).e("actions__inner"))},[U(w(qe),{onClick:N[1]||(N[1]=H=>F("zoomOut"))},{default:q(()=>[U(w(Gbe))]),_:1}),U(w(qe),{onClick:N[2]||(N[2]=H=>F("zoomIn"))},{default:q(()=>[U(w(w9))]),_:1}),P("i",{class:z(w(o).e("actions__divider"))},null,2),U(w(qe),{onClick:O},{default:q(()=>[(I(),ve(Dt(w(h).icon)))]),_:1}),P("i",{class:z(w(o).e("actions__divider"))},null,2),U(w(qe),{onClick:N[3]||(N[3]=H=>F("anticlockwise"))},{default:q(()=>[U(w(DSe))]),_:1}),U(w(qe),{onClick:N[4]||(N[4]=H=>F("clockwise"))},{default:q(()=>[U(w(NSe))]),_:1})],2)],2),de(" CANVAS "),P("div",{class:z(w(o).e("canvas"))},[(I(!0),X(Qe,null,Vt(L.urlList,(H,K)=>ct((I(),X("img",{ref_for:!0,ref:Q=>u.value[K]=Q,key:H,src:H,style:et(w(x)),class:z(w(o).e("img")),onLoad:M,onError:E,onMousedown:k},null,46,TAe)),[[Nt,K===d.value]])),128))],2),Ce(L.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var DAe=Ae(MAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const Zj=Tt(DAe),kAe=Ne({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:ge([String,Object])},previewSrcList:{type:ge(Array),default:()=>Gn([])},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}}),RAe={load:t=>t instanceof Event,error:t=>t instanceof Event,switch:t=>ut(t),close:()=>!0,show:()=>!0},LAe=["src","loading"],OAe={key:0},AAe=ae({name:"ElImage",inheritAttrs:!1}),NAe=ae({...AAe,props:kAe,emits:RAe,setup(t,{emit:e}){const n=t;let r="";const{t:a}=jt(),i=ke("image"),o=Hd(),s=PO(),l=G(),u=G(!1),c=G(!0),f=G(!1),d=G(),h=G(),v=Ht&&"loading"in HTMLImageElement.prototype;let p,g;const y=A(()=>[i.e("inner"),b.value&&i.e("preview"),c.value&&i.is("loading")]),m=A(()=>o.style),S=A(()=>{const{fit:F}=n;return Ht&&F?{objectFit:F}:{}}),b=A(()=>{const{previewSrcList:F}=n;return Array.isArray(F)&&F.length>0}),x=A(()=>{const{previewSrcList:F,initialIndex:L}=n;let N=L;return L>F.length-1&&(N=0),N}),_=A(()=>n.loading==="eager"?!1:!v&&n.loading==="lazy"||n.lazy),C=()=>{Ht&&(c.value=!0,u.value=!1,l.value=n.src)};function T(F){c.value=!1,u.value=!1,e("load",F)}function D(F){c.value=!1,u.value=!0,e("error",F)}function M(){lde(d.value,h.value)&&(C(),R())}const E=D7(M,200,!0);async function k(){var F;if(!Ht)return;await Ze();const{scrollContainer:L}=n;io(L)?h.value=L:vt(L)&&L!==""?h.value=(F=document.querySelector(L))!=null?F:void 0:d.value&&(h.value=AO(d.value)),h.value&&(p=$n(h,"scroll",E),setTimeout(()=>M(),100))}function R(){!Ht||!h.value||!E||(p==null||p(),h.value=void 0)}function O(F){if(F.ctrlKey){if(F.deltaY<0)return F.preventDefault(),!1;if(F.deltaY>0)return F.preventDefault(),!1}}function B(){b.value&&(g=$n("wheel",O,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",f.value=!0,e("show"))}function $(){g==null||g(),document.body.style.overflow=r,f.value=!1,e("close")}function V(F){e("switch",F)}return Me(()=>n.src,()=>{_.value?(c.value=!0,u.value=!1,R(),k()):C()}),St(()=>{_.value?k():C()}),(F,L)=>(I(),X("div",{ref_key:"container",ref:d,class:z([w(i).b(),F.$attrs.class]),style:et(w(m))},[u.value?Ce(F.$slots,"error",{key:0},()=>[P("div",{class:z(w(i).e("error"))},Le(w(a)("el.image.error")),3)]):(I(),X(Qe,{key:1},[l.value!==void 0?(I(),X("img",Mt({key:0},w(s),{src:l.value,loading:F.loading,style:w(S),class:w(y),onClick:B,onLoad:T,onError:D}),null,16,LAe)):de("v-if",!0),c.value?(I(),X("div",{key:1,class:z(w(i).e("wrapper"))},[Ce(F.$slots,"placeholder",{},()=>[P("div",{class:z(w(i).e("placeholder"))},null,2)])],2)):de("v-if",!0)],64)),w(b)?(I(),X(Qe,{key:2},[f.value?(I(),ve(w(Zj),{key:0,"z-index":F.zIndex,"initial-index":w(x),infinite:F.infinite,"zoom-rate":F.zoomRate,"url-list":F.previewSrcList,"hide-on-click-modal":F.hideOnClickModal,teleported:F.previewTeleported,"close-on-press-escape":F.closeOnPressEscape,onClose:$,onSwitch:V},{default:q(()=>[F.$slots.viewer?(I(),X("div",OAe,[Ce(F.$slots,"viewer")])):de("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):de("v-if",!0)],64)):de("v-if",!0)],6))}});var VAe=Ae(NAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const BAe=Tt(VAe),$Ae=Ne({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:sa,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:t=>t===null||ut(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}}),IAe={[Nn]:(t,e)=>e!==t,blur:t=>t instanceof FocusEvent,focus:t=>t instanceof FocusEvent,[Ga]:t=>ut(t)||mr(t),[Et]:t=>ut(t)||mr(t)},PAe=["aria-label","onKeydown"],FAe=["aria-label","onKeydown"],zAe=ae({name:"ElInputNumber"}),GAe=ae({...zAe,props:$Ae,emits:IAe,setup(t,{expose:e,emit:n}){const r=t,{t:a}=jt(),i=ke("input-number"),o=G(),s=Zt({currentValue:r.modelValue,userInput:null}),{formItem:l}=Qa(),u=A(()=>ut(r.modelValue)&&r.modelValue<=r.min),c=A(()=>ut(r.modelValue)&&r.modelValue>=r.max),f=A(()=>{const R=y(r.step);return kr(r.precision)?Math.max(y(r.modelValue),R):(R>r.precision,r.precision)}),d=A(()=>r.controls&&r.controlsPosition==="right"),h=_r(),v=mi(),p=A(()=>{if(s.userInput!==null)return s.userInput;let R=s.currentValue;if(mr(R))return"";if(ut(R)){if(Number.isNaN(R))return"";kr(r.precision)||(R=R.toFixed(r.precision))}return R}),g=(R,O)=>{if(kr(O)&&(O=f.value),O===0)return Math.round(R);let B=String(R);const $=B.indexOf(".");if($===-1||!B.replace(".","").split("")[$+O])return R;const L=B.length;return B.charAt(L-1)==="5"&&(B=`${B.slice(0,Math.max(0,L-1))}6`),Number.parseFloat(Number(B).toFixed(O))},y=R=>{if(mr(R))return 0;const O=R.toString(),B=O.indexOf(".");let $=0;return B!==-1&&($=O.length-B-1),$},m=(R,O=1)=>ut(R)?g(R+r.step*O):s.currentValue,S=()=>{if(r.readonly||v.value||c.value)return;const R=Number(p.value)||0,O=m(R);_(O),n(Ga,s.currentValue)},b=()=>{if(r.readonly||v.value||u.value)return;const R=Number(p.value)||0,O=m(R,-1);_(O),n(Ga,s.currentValue)},x=(R,O)=>{const{max:B,min:$,step:V,precision:F,stepStrictly:L,valueOnClear:N}=r;B<$&&wr("InputNumber","min should not be greater than max.");let H=Number(R);if(mr(R)||Number.isNaN(H))return null;if(R===""){if(N===null)return null;H=vt(N)?{min:$,max:B}[N]:N}return L&&(H=g(Math.round(H/V)*V,F)),kr(F)||(H=g(H,F)),(H>B||H<$)&&(H=H>B?B:$,O&&n(Et,H)),H},_=(R,O=!0)=>{var B;const $=s.currentValue,V=x(R);if(!O){n(Et,V);return}$!==V&&(s.userInput=null,n(Et,V),n(Nn,V,$),r.validateEvent&&((B=l==null?void 0:l.validate)==null||B.call(l,"change").catch(F=>void 0)),s.currentValue=V)},C=R=>{s.userInput=R;const O=R===""?null:Number(R);n(Ga,O),_(O,!1)},T=R=>{const O=R!==""?Number(R):"";(ut(O)&&!Number.isNaN(O)||R==="")&&_(O),s.userInput=null},D=()=>{var R,O;(O=(R=o.value)==null?void 0:R.focus)==null||O.call(R)},M=()=>{var R,O;(O=(R=o.value)==null?void 0:R.blur)==null||O.call(R)},E=R=>{n("focus",R)},k=R=>{var O;n("blur",R),r.validateEvent&&((O=l==null?void 0:l.validate)==null||O.call(l,"blur").catch(B=>void 0))};return Me(()=>r.modelValue,R=>{const O=x(s.userInput),B=x(R,!0);!ut(O)&&(!O||O!==B)&&(s.currentValue=B,s.userInput=null)},{immediate:!0}),St(()=>{var R;const{min:O,max:B,modelValue:$}=r,V=(R=o.value)==null?void 0:R.input;if(V.setAttribute("role","spinbutton"),Number.isFinite(B)?V.setAttribute("aria-valuemax",String(B)):V.removeAttribute("aria-valuemax"),Number.isFinite(O)?V.setAttribute("aria-valuemin",String(O)):V.removeAttribute("aria-valuemin"),V.setAttribute("aria-valuenow",s.currentValue||s.currentValue===0?String(s.currentValue):""),V.setAttribute("aria-disabled",String(v.value)),!ut($)&&$!=null){let F=Number($);Number.isNaN(F)&&(F=null),n(Et,F)}}),ql(()=>{var R,O;const B=(R=o.value)==null?void 0:R.input;B==null||B.setAttribute("aria-valuenow",`${(O=s.currentValue)!=null?O:""}`)}),e({focus:D,blur:M}),(R,O)=>(I(),X("div",{class:z([w(i).b(),w(i).m(w(h)),w(i).is("disabled",w(v)),w(i).is("without-controls",!R.controls),w(i).is("controls-right",w(d))]),onDragstart:O[1]||(O[1]=ot(()=>{},["prevent"]))},[R.controls?ct((I(),X("span",{key:0,role:"button","aria-label":w(a)("el.inputNumber.decrease"),class:z([w(i).e("decrease"),w(i).is("disabled",w(u))]),onKeydown:Kt(b,["enter"])},[U(w(qe),null,{default:q(()=>[w(d)?(I(),ve(w(Dc),{key:0})):(I(),ve(w(Y1e),{key:1}))]),_:1})],42,PAe)),[[w(Iw),b]]):de("v-if",!0),R.controls?ct((I(),X("span",{key:1,role:"button","aria-label":w(a)("el.inputNumber.increase"),class:z([w(i).e("increase"),w(i).is("disabled",w(c))]),onKeydown:Kt(S,["enter"])},[U(w(qe),null,{default:q(()=>[w(d)?(I(),ve(w(Ux),{key:0})):(I(),ve(w(S9),{key:1}))]),_:1})],42,FAe)),[[w(Iw),S]]):de("v-if",!0),U(w(wa),{id:R.id,ref_key:"input",ref:o,type:"number",step:R.step,"model-value":w(p),placeholder:R.placeholder,readonly:R.readonly,disabled:w(v),size:w(h),max:R.max,min:R.min,name:R.name,label:R.label,"validate-event":!1,onWheel:O[0]||(O[0]=ot(()=>{},["prevent"])),onKeydown:[Kt(ot(S,["prevent"]),["up"]),Kt(ot(b,["prevent"]),["down"])],onBlur:k,onFocus:E,onInput:C,onChange:T},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var UAe=Ae(GAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const Qj=Tt(UAe),HAe=Ne({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:Tn}}),WAe={click:t=>t instanceof MouseEvent},KAe=["href"],jAe=ae({name:"ElLink"}),YAe=ae({...jAe,props:HAe,emits:WAe,setup(t,{emit:e}){const n=t,r=ke("link"),a=A(()=>[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)=>(I(),X("a",{class:z(w(a)),href:o.disabled||!o.href?void 0:o.href,onClick:i},[o.icon?(I(),ve(w(qe),{key:0},{default:q(()=>[(I(),ve(Dt(o.icon)))]),_:1})):de("v-if",!0),o.$slots.default?(I(),X("span",{key:1,class:z(w(r).e("inner"))},[Ce(o.$slots,"default")],2)):de("v-if",!0),o.$slots.icon?Ce(o.$slots,"icon",{key:2}):de("v-if",!0)],10,KAe))}});var XAe=Ae(YAe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const qAe=Tt(XAe);let ZAe=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 nt.down:{this.gotoSubIndex(this.subIndex+1),a=!0;break}case nt.up:{this.gotoSubIndex(this.subIndex-1),a=!0;break}case nt.tab:{Cb(e,"mouseleave");break}case nt.enter:case nt.space:{a=!0,r.currentTarget.click();break}}return a&&(r.preventDefault(),r.stopPropagation()),!1})})}},QAe=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 ZAe(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{let n=!1;switch(e.code){case nt.down:{Cb(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case nt.up:{Cb(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case nt.tab:{Cb(e.currentTarget,"mouseleave");break}case nt.enter:case nt.space:{n=!0,e.currentTarget.click();break}}n&&e.preventDefault()})}},JAe=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 QAe(r,e)})}};const e3e=ae({name:"ElMenuCollapseTransition",setup(){const t=ke("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){As(n,`${t.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){hi(n,`${t.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),Yo(n,t.m("collapse"))?(hi(n,t.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),As(n,t.m("collapse"))):(As(n,t.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),hi(n,t.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){As(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function t3e(t,e,n,r,a,i){return I(),ve(or,Mt({mode:"out-in"},t.listeners),{default:q(()=>[Ce(t.$slots,"default")]),_:3},16)}var n3e=Ae(e3e,[["render",t3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function Jj(t,e){const n=A(()=>{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:A(()=>{let a=t.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function r3e(t){return A(()=>{const n=t.backgroundColor;return n?new RK(n).shade(20).toString():""})}const eY=(t,e)=>{const n=ke("menu");return A(()=>n.cssVarBlock({"text-color":t.textColor||"","hover-text-color":t.textColor||"","bg-color":t.backgroundColor||"","hover-bg-color":r3e(t).value||"","active-color":t.activeTextColor||"",level:`${e}`}))},a3e=Ne({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:Tn},expandOpenIcon:{type:Tn},collapseCloseIcon:{type:Tn},collapseOpenIcon:{type:Tn}}),L1="ElSubMenu";var mA=ae({name:L1,props:a3e,setup(t,{slots:e,expose:n}){Ws({from:"popper-append-to-body",replacement:"teleported",scope:L1,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},A(()=>t.popperAppendToBody!==void 0));const r=_t(),{indexPath:a,parentMenu:i}=Jj(r,A(()=>t.index)),o=ke("menu"),s=ke("sub-menu"),l=Ye("rootMenu");l||wr(L1,"can not inject root menu");const u=Ye(`subMenu:${i.value.uid}`);u||wr(L1,"can not inject sub menu");const c=G({}),f=G({});let d;const h=G(!1),v=G(),p=G(null),g=A(()=>E.value==="horizontal"&&m.value?"bottom-start":"right-start"),y=A(()=>E.value==="horizontal"&&m.value||E.value==="vertical"&&!l.props.collapse?t.expandCloseIcon&&t.expandOpenIcon?_.value?t.expandOpenIcon:t.expandCloseIcon:Dc:t.collapseCloseIcon&&t.collapseOpenIcon?_.value?t.collapseOpenIcon:t.collapseCloseIcon:za),m=A(()=>u.level===0),S=A(()=>{var N;const H=(N=t.teleported)!=null?N:t.popperAppendToBody;return H===void 0?m.value:H}),b=A(()=>l.props.collapse?`${o.namespace.value}-zoom-in-left`:`${o.namespace.value}-zoom-in-top`),x=A(()=>E.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"]),_=A(()=>l.openedMenus.includes(t.index)),C=A(()=>{let N=!1;return Object.values(c.value).forEach(H=>{H.active&&(N=!0)}),Object.values(f.value).forEach(H=>{H.active&&(N=!0)}),N}),T=A(()=>l.props.backgroundColor||""),D=A(()=>l.props.activeTextColor||""),M=A(()=>l.props.textColor||""),E=A(()=>l.props.mode),k=Zt({index:t.index,indexPath:a,active:C}),R=eY(l.props,u.level+1),O=A(()=>E.value!=="horizontal"?{color:M.value}:{borderBottomColor:C.value?l.props.activeTextColor?D.value:"":"transparent",color:C.value?D.value:M.value}),B=()=>{var N,H,K;return(K=(H=(N=p.value)==null?void 0:N.popperRef)==null?void 0:H.popperInstanceRef)==null?void 0:K.destroy()},$=N=>{N||B()},V=()=>{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})},F=(N,H=t.showTimeout)=>{var K;N.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}=Rd(()=>{l.openMenu(t.index,a.value)},H),S.value&&((K=i.value.vnode.el)==null||K.dispatchEvent(new MouseEvent("mouseenter")))))},L=(N=!1)=>{var H,K;l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||(d==null||d(),u.mouseInChild.value=!1,{stop:d}=Rd(()=>!h.value&&l.closeMenu(t.index,a.value),t.hideTimeout),S.value&&N&&((H=r.parent)==null?void 0:H.type.name)==="ElSubMenu"&&((K=u.handleMouseleave)==null||K.call(u,!0)))};Me(()=>l.props.collapse,N=>$(!!N));{const N=K=>{f.value[K.index]=K},H=K=>{delete f.value[K.index]};At(`subMenu:${r.uid}`,{addSubMenu:N,removeSubMenu:H,handleMouseleave:L,mouseInChild:h,level:u.level+1})}return n({opened:_}),St(()=>{l.addSubMenu(k),u.addSubMenu(k)}),Pn(()=>{u.removeSubMenu(k),l.removeSubMenu(k)}),()=>{var N;const H=[(N=e.title)==null?void 0:N.call(e),rt(qe,{class:s.e("icon-arrow"),style:{transform:_.value?t.expandCloseIcon&&t.expandOpenIcon||t.collapseCloseIcon&&t.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>vt(y.value)?rt(r.appContext.components[y.value]):rt(y.value)})],K=l.isMenuPopup?rt(Ya,{ref:p,visible:_.value,effect:"light",pure:!0,offset:t.popperOffset,showArrow:!1,persistent:!0,popperClass:t.popperClass,placement:g.value,teleported:S.value,fallbackPlacements:x.value,transition:b.value,gpuAcceleration:!1},{content:()=>{var Q;return rt("div",{class:[o.m(E.value),o.m("popup-container"),t.popperClass],onMouseenter:ie=>F(ie,100),onMouseleave:()=>L(!0),onFocus:ie=>F(ie,100)},[rt("ul",{class:[o.b(),o.m("popup"),o.m(`popup-${g.value}`)],style:R.value},[(Q=e.default)==null?void 0:Q.call(e)])])},default:()=>rt("div",{class:s.e("title"),style:[O.value,{backgroundColor:T.value}],onClick:V},H)}):rt(Qe,{},[rt("div",{class:s.e("title"),style:[O.value,{backgroundColor:T.value}],ref:v,onClick:V},H),rt(aC,{},{default:()=>{var Q;return ct(rt("ul",{role:"menu",class:[o.b(),o.m("inline")],style:R.value},[(Q=e.default)==null?void 0:Q.call(e)]),[[Nt,_.value]])}})]);return rt("li",{class:[s.b(),s.is("active",C.value),s.is("opened",_.value),s.is("disabled",t.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:_.value,onMouseenter:F,onMouseleave:()=>L(!0),onFocus:F},[K])}}});const i3e=Ne({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:ge(Array),default:()=>Gn([])},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"}}),PT=t=>Array.isArray(t)&&t.every(e=>vt(e)),o3e={close:(t,e)=>vt(t)&&PT(e),open:(t,e)=>vt(t)&&PT(e),select:(t,e,n,r)=>vt(t)&&PT(e)&&Lt(n)&&(r===void 0||r instanceof Promise)};var s3e=ae({name:"ElMenu",props:i3e,emits:o3e,setup(t,{emit:e,slots:n,expose:r}){const a=_t(),i=a.appContext.config.globalProperties.$router,o=G(),s=ke("menu"),l=ke("sub-menu"),u=G(-1),c=G(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),f=G(t.defaultActive),d=G({}),h=G({}),v=A(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),p=()=>{const E=f.value&&d.value[f.value];if(!E||t.mode==="horizontal"||t.collapse)return;E.indexPath.forEach(R=>{const O=h.value[R];O&&g(R,O.indexPath)})},g=(E,k)=>{c.value.includes(E)||(t.uniqueOpened&&(c.value=c.value.filter(R=>k.includes(R))),c.value.push(E),e("open",E,k))},y=E=>{const k=c.value.indexOf(E);k!==-1&&c.value.splice(k,1)},m=(E,k)=>{y(E),e("close",E,k)},S=({index:E,indexPath:k})=>{c.value.includes(E)?m(E,k):g(E,k)},b=E=>{(t.mode==="horizontal"||t.collapse)&&(c.value=[]);const{index:k,indexPath:R}=E;if(!(mr(k)||mr(R)))if(t.router&&i){const O=E.route||k,B=i.push(O).then($=>($||(f.value=k),$));e("select",k,R,{index:k,indexPath:R,route:O},B)}else f.value=k,e("select",k,R,{index:k,indexPath:R})},x=E=>{const k=d.value,R=k[E]||f.value&&k[f.value]||k[t.defaultActive];R?f.value=R.index:f.value=E},_=()=>{var E,k;if(!o.value)return-1;const R=Array.from((k=(E=o.value)==null?void 0:E.childNodes)!=null?k:[]).filter(N=>N.nodeName!=="#comment"&&(N.nodeName!=="#text"||N.nodeValue)),O=64,B=Number.parseInt(getComputedStyle(o.value).paddingLeft,10),$=Number.parseInt(getComputedStyle(o.value).paddingRight,10),V=o.value.clientWidth-B-$;let F=0,L=0;return R.forEach((N,H)=>{F+=N.offsetWidth||0,F<=V-O&&(L=H+1)}),L===R.length?-1:L},C=(E,k=33.34)=>{let R;return()=>{R&&clearTimeout(R),R=setTimeout(()=>{E()},k)}};let T=!0;const D=()=>{const E=()=>{u.value=-1,Ze(()=>{u.value=_()})};T?E():C(E)(),T=!1};Me(()=>t.defaultActive,E=>{d.value[E]||(f.value=""),x(E)}),Me(()=>t.collapse,E=>{E&&(c.value=[])}),Me(d.value,p);let M;Di(()=>{t.mode==="horizontal"&&t.ellipsis?M=xa(o,D).stop:M==null||M()});{const E=B=>{h.value[B.index]=B},k=B=>{delete h.value[B.index]};At("rootMenu",Zt({props:t,openedMenus:c,items:d,subMenus:h,activeIndex:f,isMenuPopup:v,addMenuItem:B=>{d.value[B.index]=B},removeMenuItem:B=>{delete d.value[B.index]},addSubMenu:E,removeSubMenu:k,openMenu:g,closeMenu:m,handleMenuItemClick:b,handleSubMenuClick:S})),At(`subMenu:${a.uid}`,{addSubMenu:E,removeSubMenu:k,mouseInChild:G(!1),level:0})}return St(()=>{t.mode==="horizontal"&&new JAe(a.vnode.el,s.namespace.value)}),r({open:k=>{const{indexPath:R}=h.value[k];R.forEach(O=>g(O,R))},close:y,handleResize:D}),()=>{var E,k;let R=(k=(E=n.default)==null?void 0:E.call(n))!=null?k:[];const O=[];if(t.mode==="horizontal"&&o.value){const V=yp(R),F=u.value===-1?V:V.slice(0,u.value),L=u.value===-1?[]:V.slice(u.value);L!=null&&L.length&&t.ellipsis&&(R=F,O.push(rt(mA,{index:"sub-menu-more",class:l.e("hide-arrow")},{title:()=>rt(qe,{class:l.e("icon-more")},{default:()=>rt(iSe)}),default:()=>L})))}const B=eY(t,0),$=rt("ul",{key:String(t.collapse),role:"menubar",ref:o,style:B.value,class:{[s.b()]:!0,[s.m(t.mode)]:!0,[s.m("collapse")]:t.collapse}},[...R,...O]);return t.collapseTransition&&t.mode==="vertical"?rt(n3e,()=>$):$}}});const l3e=Ne({index:{type:ge([String,null]),default:null},route:{type:ge([String,Object])},disabled:Boolean}),u3e={click:t=>vt(t.index)&&Array.isArray(t.indexPath)},FT="ElMenuItem",c3e=ae({name:FT,components:{ElTooltip:Ya},props:l3e,emits:u3e,setup(t,{emit:e}){const n=_t(),r=Ye("rootMenu"),a=ke("menu"),i=ke("menu-item");r||wr(FT,"can not inject root menu");const{parentMenu:o,indexPath:s}=Jj(n,Kn(t,"index")),l=Ye(`subMenu:${o.value.uid}`);l||wr(FT,"can not inject sub menu");const u=A(()=>t.index===r.activeIndex),c=Zt({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 St(()=>{l.addSubMenu(c),r.addMenuItem(c)}),Pn(()=>{l.removeSubMenu(c),r.removeMenuItem(c)}),{parentMenu:o,rootMenu:r,active:u,nsMenu:a,nsMenuItem:i,handleClick:f}}});function f3e(t,e,n,r,a,i){const o=Pe("el-tooltip");return I(),X("li",{class:z([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?(I(),ve(o,{key:0,effect:t.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:q(()=>[Ce(t.$slots,"title")]),default:q(()=>[P("div",{class:z(t.nsMenu.be("tooltip","trigger"))},[Ce(t.$slots,"default")],2)]),_:3},8,["effect"])):(I(),X(Qe,{key:1},[Ce(t.$slots,"default"),Ce(t.$slots,"title")],64))],2)}var tY=Ae(c3e,[["render",f3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const d3e={title:String},h3e="ElMenuItemGroup",p3e=ae({name:h3e,props:d3e,setup(){return{ns:ke("menu-item-group")}}});function v3e(t,e,n,r,a,i){return I(),X("li",{class:z(t.ns.b())},[P("div",{class:z(t.ns.e("title"))},[t.$slots.title?Ce(t.$slots,"title",{key:1}):(I(),X(Qe,{key:0},[dt(Le(t.title),1)],64))],2),P("ul",null,[Ce(t.$slots,"default")])],2)}var nY=Ae(p3e,[["render",v3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const g3e=Tt(s3e,{MenuItem:tY,MenuItemGroup:nY,SubMenu:mA}),y3e=Qn(tY),m3e=Qn(nY),S3e=Qn(mA),b3e=Ne({icon:{type:Tn,default:()=>Yye},title:String,content:{type:String,default:""}}),w3e={back:()=>!0},_3e=["aria-label"],x3e=ae({name:"ElPageHeader"}),C3e=ae({...x3e,props:b3e,emits:w3e,setup(t,{emit:e}){const n=fa(),{t:r}=jt(),a=ke("page-header"),i=A(()=>[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)=>(I(),X("div",{class:z(w(i))},[s.$slots.breadcrumb?(I(),X("div",{key:0,class:z(w(a).e("breadcrumb"))},[Ce(s.$slots,"breadcrumb")],2)):de("v-if",!0),P("div",{class:z(w(a).e("header"))},[P("div",{class:z(w(a).e("left"))},[P("div",{class:z(w(a).e("back")),role:"button",tabindex:"0",onClick:o},[s.icon||s.$slots.icon?(I(),X("div",{key:0,"aria-label":s.title||w(r)("el.pageHeader.title"),class:z(w(a).e("icon"))},[Ce(s.$slots,"icon",{},()=>[s.icon?(I(),ve(w(qe),{key:0},{default:q(()=>[(I(),ve(Dt(s.icon)))]),_:1})):de("v-if",!0)])],10,_3e)):de("v-if",!0),P("div",{class:z(w(a).e("title"))},[Ce(s.$slots,"title",{},()=>[dt(Le(s.title||w(r)("el.pageHeader.title")),1)])],2)],2),U(w(zj),{direction:"vertical"}),P("div",{class:z(w(a).e("content"))},[Ce(s.$slots,"content",{},()=>[dt(Le(s.content),1)])],2)],2),s.$slots.extra?(I(),X("div",{key:0,class:z(w(a).e("extra"))},[Ce(s.$slots,"extra")],2)):de("v-if",!0)],2),s.$slots.default?(I(),X("div",{key:1,class:z(w(a).e("main"))},[Ce(s.$slots,"default")],2)):de("v-if",!0)],2))}});var T3e=Ae(C3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const E3e=Tt(T3e),rY=Symbol("elPaginationKey"),M3e=Ne({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Tn}}),D3e={click:t=>t instanceof MouseEvent},k3e=["disabled","aria-label","aria-disabled"],R3e={key:0},L3e=ae({name:"ElPaginationPrev"}),O3e=ae({...L3e,props:M3e,emits:D3e,setup(t){const e=t,{t:n}=jt(),r=A(()=>e.disabled||e.currentPage<=1);return(a,i)=>(I(),X("button",{type:"button",class:"btn-prev",disabled:w(r),"aria-label":a.prevText||w(n)("el.pagination.prev"),"aria-disabled":w(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.prevText?(I(),X("span",R3e,Le(a.prevText),1)):(I(),ve(w(qe),{key:1},{default:q(()=>[(I(),ve(Dt(a.prevIcon)))]),_:1}))],8,k3e))}});var A3e=Ae(O3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const N3e=Ne({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Tn}}),V3e=["disabled","aria-label","aria-disabled"],B3e={key:0},$3e=ae({name:"ElPaginationNext"}),I3e=ae({...$3e,props:N3e,emits:["click"],setup(t){const e=t,{t:n}=jt(),r=A(()=>e.disabled||e.currentPage===e.pageCount||e.pageCount===0);return(a,i)=>(I(),X("button",{type:"button",class:"btn-next",disabled:w(r),"aria-label":a.nextText||w(n)("el.pagination.next"),"aria-disabled":w(r),onClick:i[0]||(i[0]=o=>a.$emit("click",o))},[a.nextText?(I(),X("span",B3e,Le(a.nextText),1)):(I(),ve(w(qe),{key:1},{default:q(()=>[(I(),ve(Dt(a.nextIcon)))]),_:1}))],8,V3e))}});var P3e=Ae(I3e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const aY=Symbol("ElSelectGroup"),km=Symbol("ElSelect");function F3e(t,e){const n=Ye(km),r=Ye(aY,{disabled:!1}),a=A(()=>Object.prototype.toString.call(t.value).toLowerCase()==="[object object]"),i=A(()=>n.props.multiple?f(n.props.modelValue,t.value):d(t.value,n.props.modelValue)),o=A(()=>{if(n.props.multiple){const p=n.props.modelValue||[];return!i.value&&p.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),s=A(()=>t.label||(a.value?"":t.value)),l=A(()=>t.value||t.label||""),u=A(()=>t.disabled||e.groupDisabled||o.value),c=_t(),f=(p=[],g)=>{if(a.value){const y=n.props.valueKey;return p&&p.some(m=>un(Fn(m,y))===Fn(g,y))}else return p&&p.includes(g)},d=(p,g)=>{if(a.value){const{valueKey:y}=n.props;return Fn(p,y)===Fn(g,y)}else return p===g},h=()=>{!t.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(c.proxy))};Me(()=>s.value,()=>{!t.created&&!n.props.remote&&n.setSelected()}),Me(()=>t.value,(p,g)=>{const{remote:y,valueKey:m}=n.props;if(Object.is(p,g)||(n.onOptionDestroy(g,c.proxy),n.onOptionCreate(c.proxy)),!t.created&&!y){if(m&&typeof p=="object"&&typeof g=="object"&&p[m]===g[m])return;n.setSelected()}}),Me(()=>r.disabled,()=>{e.groupDisabled=r.disabled},{immediate:!0});const{queryChange:v}=un(n);return Me(v,p=>{const{query:g}=w(p),y=new RegExp(h9(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 z3e=ae({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(t){const e=ke("select"),n=A(()=>[e.be("dropdown","item"),e.is("disabled",w(o)),{selected:w(i),hover:w(c)}]),r=Zt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:a,itemSelected:i,isDisabled:o,select:s,hoverItem:l}=F3e(t,r),{visible:u,hover:c}=$r(r),f=_t().proxy;s.onOptionCreate(f),Pn(()=>{const h=f.value,{selected:v}=s,g=(s.props.multiple?v:[v]).some(y=>y.value===f.value);Ze(()=>{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 G3e(t,e,n,r,a,i){return ct((I(),X("li",{class:z(t.containerKls),onMouseenter:e[0]||(e[0]=(...o)=>t.hoverItem&&t.hoverItem(...o)),onClick:e[1]||(e[1]=ot((...o)=>t.selectOptionClick&&t.selectOptionClick(...o),["stop"]))},[Ce(t.$slots,"default",{},()=>[P("span",null,Le(t.currentLabel),1)])],34)),[[Nt,t.visible]])}var SA=Ae(z3e,[["render",G3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const U3e=ae({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=Ye(km),e=ke("select"),n=A(()=>t.props.popperClass),r=A(()=>t.props.multiple),a=A(()=>t.props.fitInputWidth),i=G("");function o(){var s;i.value=`${(s=t.selectWrapper)==null?void 0:s.offsetWidth}px`}return St(()=>{o(),xa(t.selectWrapper,o)}),{ns:e,minWidth:i,popperClass:n,isMultiple:r,isFitInputWidth:a}}});function H3e(t,e,n,r,a,i){return I(),X("div",{class:z([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:et({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[Ce(t.$slots,"default")],6)}var W3e=Ae(U3e,[["render",H3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function K3e(t){const{t:e}=jt();return Zt({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 j3e=(t,e,n)=>{const{t:r}=jt(),a=ke("select");Ws({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},A(()=>t.suffixTransition===!1));const i=G(null),o=G(null),s=G(null),l=G(null),u=G(null),c=G(null),f=G(null),d=G(null),h=G(-1),v=Cn({query:""}),p=Cn(""),g=G([]);let y=0;const{form:m,formItem:S}=Qa(),b=A(()=>!t.filterable||t.multiple||!e.visible),x=A(()=>t.disabled||(m==null?void 0:m.disabled)),_=A(()=>{const xe=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&&xe}),C=A(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),T=A(()=>a.is("reverse",C.value&&e.visible&&t.suffixTransition)),D=A(()=>(m==null?void 0:m.statusIcon)&&(S==null?void 0:S.validateState)&&IO[S==null?void 0:S.validateState]),M=A(()=>t.remote?300:0),E=A(()=>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),k=A(()=>{const xe=Array.from(e.options.values()),Ge=[];return g.value.forEach(ye=>{const He=xe.findIndex(Ot=>Ot.currentLabel===ye);He>-1&&Ge.push(xe[He])}),Ge.length>=xe.length?Ge:xe}),R=A(()=>Array.from(e.cachedOptions.values())),O=A(()=>{const xe=k.value.filter(Ge=>!Ge.created).some(Ge=>Ge.currentLabel===e.query);return t.filterable&&t.allowCreate&&e.query!==""&&!xe}),B=_r(),$=A(()=>["small"].includes(B.value)?"small":"default"),V=A({get(){return e.visible&&E.value!==!1},set(xe){e.visible=xe}});Me([()=>x.value,()=>B.value,()=>m==null?void 0:m.size],()=>{Ze(()=>{F()})}),Me(()=>t.placeholder,xe=>{e.cachedPlaceHolder=e.currentPlaceholder=xe,t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(e.currentPlaceholder="")}),Me(()=>t.modelValue,(xe,Ge)=>{t.multiple&&(F(),xe&&xe.length>0||o.value&&e.query!==""?e.currentPlaceholder="":e.currentPlaceholder=e.cachedPlaceHolder,t.filterable&&!t.reserveKeyword&&(e.query="",L(e.query))),K(),t.filterable&&!t.multiple&&(e.inputLength=20),!di(xe,Ge)&&t.validateEvent&&(S==null||S.validate("change").catch(ye=>void 0))},{flush:"post",deep:!0}),Me(()=>e.visible,xe=>{var Ge,ye,He,Ot,Xt;xe?((ye=(Ge=l.value)==null?void 0:Ge.updatePopper)==null||ye.call(Ge),t.filterable&&(e.filteredOptionsCount=e.optionsCount,e.query=t.remote?"":e.selectedLabel,(Ot=(He=s.value)==null?void 0:He.focus)==null||Ot.call(He),t.multiple?(Xt=o.value)==null||Xt.focus():e.selectedLabel&&(e.currentPlaceholder=`${e.selectedLabel}`,e.selectedLabel=""),L(e.query),!t.multiple&&!t.remote&&(v.value.query="",Jv(v),Jv(p)))):(t.filterable&&(ft(t.filterMethod)&&t.filterMethod(""),ft(t.remoteMethod)&&t.remoteMethod("")),e.query="",e.previousQuery=null,e.selectedLabel="",e.inputLength=20,e.menuVisibleOnFocus=!1,ie(),Ze(()=>{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",xe)}),Me(()=>e.options.entries(),()=>{var xe,Ge,ye;if(!Ht)return;(Ge=(xe=l.value)==null?void 0:xe.updatePopper)==null||Ge.call(xe),t.multiple&&F();const He=((ye=f.value)==null?void 0:ye.querySelectorAll("input"))||[];(!t.filterable&&!t.defaultFirstOption&&!kr(t.modelValue)||!Array.from(He).includes(document.activeElement))&&K(),t.defaultFirstOption&&(t.filterable||t.remote)&&e.filteredOptionsCount&&H()},{flush:"post"}),Me(()=>e.hoverIndex,xe=>{ut(xe)&&xe>-1?h.value=k.value[xe]||{}:h.value={},k.value.forEach(Ge=>{Ge.hover=h.value===Ge})});const F=()=>{Ze(()=>{var xe,Ge;if(!i.value)return;const ye=i.value.$el.querySelector("input");y=y||(ye.clientHeight>0?ye.clientHeight+2:0);const He=c.value,Ot=jbe(B.value||(m==null?void 0:m.size)),Xt=B.value||Ot===y||y<=0?Ot:y;!(ye.offsetParent===null)&&(ye.style.height=`${(e.selected.length===0?Xt:Math.max(He?He.clientHeight+(He.clientHeight>Xt?6:0):0,Xt))-2}px`),e.visible&&E.value!==!1&&((Ge=(xe=l.value)==null?void 0:xe.updatePopper)==null||Ge.call(xe))})},L=async xe=>{if(!(e.previousQuery===xe||e.isOnComposition)){if(e.previousQuery===null&&(ft(t.filterMethod)||ft(t.remoteMethod))){e.previousQuery=xe;return}e.previousQuery=xe,Ze(()=>{var Ge,ye;e.visible&&((ye=(Ge=l.value)==null?void 0:Ge.updatePopper)==null||ye.call(Ge))}),e.hoverIndex=-1,t.multiple&&t.filterable&&Ze(()=>{if(!x.value){const Ge=o.value.value.length*15+20;e.inputLength=t.collapseTags?Math.min(50,Ge):Ge,N()}F()}),t.remote&&ft(t.remoteMethod)?(e.hoverIndex=-1,t.remoteMethod(xe)):ft(t.filterMethod)?(t.filterMethod(xe),Jv(p)):(e.filteredOptionsCount=e.optionsCount,v.value.query=xe,Jv(v),Jv(p)),t.defaultFirstOption&&(t.filterable||t.remote)&&e.filteredOptionsCount&&(await Ze(),H())}},N=()=>{e.currentPlaceholder!==""&&(e.currentPlaceholder=o.value.value?"":e.cachedPlaceHolder)},H=()=>{const xe=k.value.filter(He=>He.visible&&!He.disabled&&!He.states.groupDisabled),Ge=xe.find(He=>He.created),ye=xe[0];e.hoverIndex=fe(k.value,Ge||ye)},K=()=>{var xe;if(t.multiple)e.selectedLabel="";else{const ye=Q(t.modelValue);(xe=ye.props)!=null&&xe.created?(e.createdLabel=ye.props.value,e.createdSelected=!0):e.createdSelected=!1,e.selectedLabel=ye.currentLabel,e.selected=ye,t.filterable&&(e.query=e.selectedLabel);return}const Ge=[];Array.isArray(t.modelValue)&&t.modelValue.forEach(ye=>{Ge.push(Q(ye))}),e.selected=Ge,Ze(()=>{F()})},Q=xe=>{let Ge;const ye=vb(xe).toLowerCase()==="object",He=vb(xe).toLowerCase()==="null",Ot=vb(xe).toLowerCase()==="undefined";for(let Er=e.cachedOptions.size-1;Er>=0;Er--){const ha=R.value[Er];if(ye?Fn(ha.value,t.valueKey)===Fn(xe,t.valueKey):ha.value===xe){Ge={value:xe,currentLabel:ha.currentLabel,isDisabled:ha.isDisabled};break}}if(Ge)return Ge;const Xt=ye?xe.label:!He&&!Ot?xe:"",Tr={value:xe,currentLabel:Xt};return t.multiple&&(Tr.hitState=!1),Tr},ie=()=>{setTimeout(()=>{const xe=t.valueKey;t.multiple?e.selected.length>0?e.hoverIndex=Math.min.apply(null,e.selected.map(Ge=>k.value.findIndex(ye=>Fn(ye,xe)===Fn(Ge,xe)))):e.hoverIndex=-1:e.hoverIndex=k.value.findIndex(Ge=>Re(Ge)===Re(e.selected))},300)},be=()=>{var xe,Ge;le(),(Ge=(xe=l.value)==null?void 0:xe.updatePopper)==null||Ge.call(xe),t.multiple&&F()},le=()=>{var xe;e.inputWidth=(xe=i.value)==null?void 0:xe.$el.offsetWidth},J=()=>{t.filterable&&e.query!==e.selectedLabel&&(e.query=e.selectedLabel,L(e.query))},Z=ja(()=>{J()},M.value),ee=ja(xe=>{L(xe.target.value)},M.value),ce=xe=>{di(t.modelValue,xe)||n.emit(Nn,xe)},ue=xe=>Q0e(xe,Ge=>!e.disabledOptions.has(Ge)),Y=xe=>{if(xe.code!==nt.delete){if(xe.target.value.length<=0&&!Ve()){const Ge=t.modelValue.slice(),ye=ue(Ge);if(ye<0)return;Ge.splice(ye,1),n.emit(Et,Ge),ce(Ge)}xe.target.value.length===1&&t.modelValue.length===0&&(e.currentPlaceholder=e.cachedPlaceHolder)}},te=(xe,Ge)=>{const ye=e.selected.indexOf(Ge);if(ye>-1&&!x.value){const He=t.modelValue.slice();He.splice(ye,1),n.emit(Et,He),ce(He),n.emit("remove-tag",Ge.value)}xe.stopPropagation(),Fe()},oe=xe=>{xe.stopPropagation();const Ge=t.multiple?[]:"";if(!vt(Ge))for(const ye of e.selected)ye.isDisabled&&Ge.push(ye.value);n.emit(Et,Ge),ce(Ge),e.hoverIndex=-1,e.visible=!1,n.emit("clear"),Fe()},Se=xe=>{var Ge;if(t.multiple){const ye=(t.modelValue||[]).slice(),He=fe(ye,xe.value);He>-1?ye.splice(He,1):(t.multipleLimit<=0||ye.length<t.multipleLimit)&&ye.push(xe.value),n.emit(Et,ye),ce(ye),xe.created&&(e.query="",L(""),e.inputLength=20),t.filterable&&((Ge=o.value)==null||Ge.focus())}else n.emit(Et,xe.value),ce(xe.value),e.visible=!1;ne(),!e.visible&&Ze(()=>{Ee(xe)})},fe=(xe=[],Ge)=>{if(!Lt(Ge))return xe.indexOf(Ge);const ye=t.valueKey;let He=-1;return xe.some((Ot,Xt)=>un(Fn(Ot,ye))===Fn(Ge,ye)?(He=Xt,!0):!1),He},ne=()=>{const xe=o.value||i.value;xe&&(xe==null||xe.focus())},Ee=xe=>{var Ge,ye,He,Ot,Xt;const Tr=Array.isArray(xe)?xe[0]:xe;let Er=null;if(Tr!=null&&Tr.value){const ha=k.value.filter(pa=>pa.value===Tr.value);ha.length>0&&(Er=ha[0].$el)}if(l.value&&Er){const ha=(Ot=(He=(ye=(Ge=l.value)==null?void 0:Ge.popperRef)==null?void 0:ye.contentRef)==null?void 0:He.querySelector)==null?void 0:Ot.call(He,`.${a.be("dropdown","wrap")}`);ha&&g9(ha,Er)}(Xt=d.value)==null||Xt.handleScroll()},_e=xe=>{e.optionsCount++,e.filteredOptionsCount++,e.options.set(xe.value,xe),e.cachedOptions.set(xe.value,xe),xe.disabled&&e.disabledOptions.set(xe.value,xe)},me=(xe,Ge)=>{e.options.get(xe)===Ge&&(e.optionsCount--,e.filteredOptionsCount--,e.options.delete(xe))},Te=xe=>{xe.code!==nt.backspace&&Ve(!1),e.inputLength=o.value.value.length*15+20,F()},Ve=xe=>{if(!Array.isArray(e.selected))return;const Ge=ue(e.selected.map(He=>He.value)),ye=e.selected[Ge];if(ye)return xe===!0||xe===!1?(ye.hitState=xe,xe):(ye.hitState=!ye.hitState,ye.hitState)},ze=xe=>{const Ge=xe.target.value;if(xe.type==="compositionend")e.isOnComposition=!1,Ze(()=>L(Ge));else{const ye=Ge[Ge.length-1]||"";e.isOnComposition=!jx(ye)}},We=()=>{Ze(()=>Ee(e.selected))},De=xe=>{e.focused||((t.automaticDropdown||t.filterable)&&(t.filterable&&!e.visible&&(e.menuVisibleOnFocus=!0),e.visible=!0),e.focused=!0,n.emit("focus",xe))},Fe=()=>{var xe,Ge;e.visible?(xe=o.value||i.value)==null||xe.focus():(Ge=i.value)==null||Ge.focus()},at=()=>{var xe,Ge,ye;e.visible=!1,(xe=i.value)==null||xe.blur(),(ye=(Ge=s.value)==null?void 0:Ge.blur)==null||ye.call(Ge)},yt=xe=>{var Ge,ye,He;(Ge=l.value)!=null&&Ge.isFocusInsideContent(xe)||(ye=u.value)!=null&&ye.isFocusInsideContent(xe)||(He=f.value)!=null&&He.contains(xe.relatedTarget)||(e.visible&&Je(),e.focused=!1,n.emit("blur",xe))},Be=xe=>{oe(xe)},Je=()=>{e.visible=!1},se=xe=>{e.visible&&(xe.preventDefault(),xe.stopPropagation(),e.visible=!1)},he=xe=>{xe&&!e.mouseEnter||x.value||(e.menuVisibleOnFocus?e.menuVisibleOnFocus=!1:(!l.value||!l.value.isFocusInsideContent())&&(e.visible=!e.visible),Fe())},pe=()=>{e.visible?k.value[e.hoverIndex]&&Se(k.value[e.hoverIndex]):he()},Re=xe=>Lt(xe.value)?Fn(xe.value,t.valueKey):xe.value,re=A(()=>k.value.filter(xe=>xe.visible).every(xe=>xe.disabled)),Ue=A(()=>t.multiple?e.selected.slice(0,t.maxCollapseTags):[]),pt=A(()=>t.multiple?e.selected.slice(t.maxCollapseTags):[]),Bt=xe=>{if(!e.visible){e.visible=!0;return}if(!(e.options.size===0||e.filteredOptionsCount===0)&&!e.isOnComposition&&!re.value){xe==="next"?(e.hoverIndex++,e.hoverIndex===e.options.size&&(e.hoverIndex=0)):xe==="prev"&&(e.hoverIndex--,e.hoverIndex<0&&(e.hoverIndex=e.options.size-1));const Ge=k.value[e.hoverIndex];(Ge.disabled===!0||Ge.states.groupDisabled===!0||!Ge.visible)&&Bt(xe),Ze(()=>Ee(h.value))}},lr=()=>{e.mouseEnter=!0},Cr=()=>{e.mouseEnter=!1},ti=(xe,Ge)=>{var ye,He;te(xe,Ge),(He=(ye=u.value)==null?void 0:ye.updatePopper)==null||He.call(ye)},Jr=A(()=>({maxWidth:`${w(e.inputWidth)-32-(D.value?22:0)}px`,width:"100%"}));return{optionList:g,optionsArray:k,selectSize:B,handleResize:be,debouncedOnInputChange:Z,debouncedQueryChange:ee,deletePrevTag:Y,deleteTag:te,deleteSelected:oe,handleOptionSelect:Se,scrollToOption:Ee,readonly:b,resetInputHeight:F,showClose:_,iconComponent:C,iconReverse:T,showNewOption:O,collapseTagSize:$,setSelected:K,managePlaceholder:N,selectDisabled:x,emptyText:E,toggleLastOptionHitState:Ve,resetInputState:Te,handleComposition:ze,onOptionCreate:_e,onOptionDestroy:me,handleMenuEnter:We,handleFocus:De,focus:Fe,blur:at,handleBlur:yt,handleClearClick:Be,handleClose:Je,handleKeydownEscape:se,toggleMenu:he,selectOption:pe,getValueKey:Re,navigateOptions:Bt,handleDeleteTooltipTag:ti,dropMenuVisible:V,queryChange:v,groupQueryChange:p,showTagList:Ue,collapseTagList:pt,selectTagsStyle:Jr,reference:i,input:o,iOSInput:s,tooltipRef:l,tagTooltipRef:u,tags:c,selectWrapper:f,scrollbar:d,handleMouseEnter:lr,handleMouseLeave:Cr}};var Y3e=ae({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,v,p;const g=(d=(f==null?void 0:f.type)||{})==null?void 0:d.name;g==="ElOptionGroup"?u(!vt(f.children)&&!Array.isArray(f.children)&&ft((h=f.children)==null?void 0:h.default)?(v=f.children)==null?void 0:v.default():f.children):g==="ElOption"?l.push((p=f.props)==null?void 0:p.label):Array.isArray(f.children)&&u(f.children)})}return s.length&&u((o=s[0])==null?void 0:o.children),a(l,r)||(r=l,n("update-options",l)),s}}});const fP="ElSelect",X3e=ae({name:fP,componentName:fP,components:{ElInput:wa,ElSelectMenu:W3e,ElOption:SA,ElOptions:Y3e,ElTag:vy,ElScrollbar:Jl,ElTooltip:Ya,ElIcon:qe},directives:{ClickOutside:pc},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:Kx},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:Hr.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Tn,default:kc},fitInputWidth:Boolean,suffixIcon:{type:Tn,default:Dc},tagType:{...cA.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Yd,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[Et,Nn,"remove-tag","clear","visible-change","focus","blur"],setup(t,e){const n=ke("select"),r=ke("input"),{t:a}=jt(),i=K3e(t),{optionList:o,optionsArray:s,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:v,deleteTag:p,deleteSelected:g,handleOptionSelect:y,scrollToOption:m,setSelected:S,resetInputHeight:b,managePlaceholder:x,showClose:_,selectDisabled:C,iconComponent:T,iconReverse:D,showNewOption:M,emptyText:E,toggleLastOptionHitState:k,resetInputState:R,handleComposition:O,onOptionCreate:B,onOptionDestroy:$,handleMenuEnter:V,handleFocus:F,focus:L,blur:N,handleBlur:H,handleClearClick:K,handleClose:Q,handleKeydownEscape:ie,toggleMenu:be,selectOption:le,getValueKey:J,navigateOptions:Z,handleDeleteTooltipTag:ee,dropMenuVisible:ce,reference:ue,input:Y,iOSInput:te,tooltipRef:oe,tagTooltipRef:Se,tags:fe,selectWrapper:ne,scrollbar:Ee,queryChange:_e,groupQueryChange:me,handleMouseEnter:Te,handleMouseLeave:Ve,showTagList:ze,collapseTagList:We,selectTagsStyle:De}=j3e(t,i,e),{inputWidth:Fe,selected:at,inputLength:yt,filteredOptionsCount:Be,visible:Je,selectedLabel:se,hoverIndex:he,query:pe,inputHovering:Re,currentPlaceholder:re,menuVisibleOnFocus:Ue,isOnComposition:pt,options:Bt,cachedOptions:lr,optionsCount:Cr,prefixWidth:ti}=$r(i),Jr=A(()=>{const pa=[n.b()],zc=w(l);return zc&&pa.push(n.m(zc)),t.disabled&&pa.push(n.m("disabled")),pa}),xe=A(()=>[n.e("tags"),n.is("disabled",w(C))]),Ge=A(()=>[n.b("tags-wrapper"),{"has-prefix":w(ti)&&w(at).length}]),ye=A(()=>[n.e("input"),n.is(w(l)),n.is("disabled",w(C))]),He=A(()=>[n.e("input"),n.is(w(l)),n.em("input","iOS")]),Ot=A(()=>[n.is("empty",!t.allowCreate&&!!w(pe)&&w(Be)===0)]),Xt=A(()=>({maxWidth:`${w(Fe)>123?w(Fe)-123:w(Fe)-75}px`})),Tr=A(()=>({marginLeft:`${w(ti)}px`,flexGrow:1,width:`${w(yt)/(w(Fe)-32)}%`,maxWidth:`${w(Fe)-42}px`}));At(km,Zt({props:t,options:Bt,optionsArray:s,cachedOptions:lr,optionsCount:Cr,filteredOptionsCount:Be,hoverIndex:he,handleOptionSelect:y,onOptionCreate:B,onOptionDestroy:$,selectWrapper:ne,selected:at,setSelected:S,queryChange:_e,groupQueryChange:me})),St(()=>{i.cachedPlaceHolder=re.value=t.placeholder||(()=>a("el.select.placeholder")),t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(re.value=""),xa(ne,c),t.remote&&t.multiple&&b(),Ze(()=>{const pa=ue.value&&ue.value.$el;if(pa&&(Fe.value=pa.getBoundingClientRect().width,e.slots.prefix)){const zc=pa.querySelector(`.${r.e("prefix")}`);ti.value=Math.max(zc.getBoundingClientRect().width+11,30)}}),S()}),t.multiple&&!Array.isArray(t.modelValue)&&e.emit(Et,[]),!t.multiple&&Array.isArray(t.modelValue)&&e.emit(Et,"");const Er=A(()=>{var pa,zc;return(zc=(pa=oe.value)==null?void 0:pa.popperRef)==null?void 0:zc.contentRef});return{isIOS:E7,onOptionsRendered:pa=>{o.value=pa},prefixWidth:ti,selectSize:l,readonly:u,handleResize:c,collapseTagSize:f,debouncedOnInputChange:d,debouncedQueryChange:h,deletePrevTag:v,deleteTag:p,handleDeleteTooltipTag:ee,deleteSelected:g,handleOptionSelect:y,scrollToOption:m,inputWidth:Fe,selected:at,inputLength:yt,filteredOptionsCount:Be,visible:Je,selectedLabel:se,hoverIndex:he,query:pe,inputHovering:Re,currentPlaceholder:re,menuVisibleOnFocus:Ue,isOnComposition:pt,options:Bt,resetInputHeight:b,managePlaceholder:x,showClose:_,selectDisabled:C,iconComponent:T,iconReverse:D,showNewOption:M,emptyText:E,toggleLastOptionHitState:k,resetInputState:R,handleComposition:O,handleMenuEnter:V,handleFocus:F,focus:L,blur:N,handleBlur:H,handleClearClick:K,handleClose:Q,handleKeydownEscape:ie,toggleMenu:be,selectOption:le,getValueKey:J,navigateOptions:Z,dropMenuVisible:ce,reference:ue,input:Y,iOSInput:te,tooltipRef:oe,popperPaneRef:Er,tags:fe,selectWrapper:ne,scrollbar:Ee,wrapperKls:Jr,tagsKls:xe,tagWrapperKls:Ge,inputKls:ye,iOSInputKls:He,scrollbarKls:Ot,selectTagsStyle:De,nsSelect:n,tagTextStyle:Xt,inputStyle:Tr,handleMouseEnter:Te,handleMouseLeave:Ve,showTagList:ze,collapseTagList:We,tagTooltipRef:Se}}}),q3e=["disabled","autocomplete","aria-label"],Z3e=["disabled"],Q3e={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function J3e(t,e,n,r,a,i){const o=Pe("el-tag"),s=Pe("el-tooltip"),l=Pe("el-icon"),u=Pe("el-input"),c=Pe("el-option"),f=Pe("el-options"),d=Pe("el-scrollbar"),h=Pe("el-select-menu"),v=Vp("click-outside");return ct((I(),X("div",{ref:"selectWrapper",class:z(t.wrapperKls),onMouseenter:e[22]||(e[22]=(...p)=>t.handleMouseEnter&&t.handleMouseEnter(...p)),onMouseleave:e[23]||(e[23]=(...p)=>t.handleMouseLeave&&t.handleMouseLeave(...p)),onClick:e[24]||(e[24]=ot((...p)=>t.toggleMenu&&t.toggleMenu(...p),["stop"]))},[U(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:q(()=>[P("div",{class:"select-trigger",onMouseenter:e[20]||(e[20]=p=>t.inputHovering=!0),onMouseleave:e[21]||(e[21]=p=>t.inputHovering=!1)},[t.multiple?(I(),X("div",{key:0,ref:"tags",tabindex:"-1",class:z(t.tagsKls),style:et(t.selectTagsStyle),onClick:e[15]||(e[15]=(...p)=>t.focus&&t.focus(...p))},[t.collapseTags&&t.selected.length?(I(),ve(or,{key:0,onAfterLeave:t.resetInputHeight},{default:q(()=>[P("span",{class:z(t.tagWrapperKls)},[(I(!0),X(Qe,null,Vt(t.showTagList,p=>(I(),ve(o,{key:t.getValueKey(p),closable:!t.selectDisabled&&!p.isDisabled,size:t.collapseTagSize,hit:p.hitState,type:t.tagType,"disable-transitions":"",onClose:g=>t.deleteTag(g,p)},{default:q(()=>[P("span",{class:z(t.nsSelect.e("tags-text")),style:et(t.tagTextStyle)},Le(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),t.selected.length>t.maxCollapseTags?(I(),ve(o,{key:0,closable:!1,size:t.collapseTagSize,type:t.tagType,"disable-transitions":""},{default:q(()=>[t.collapseTagsTooltip?(I(),ve(s,{key:0,ref:"tagTooltipRef",disabled:t.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:q(()=>[P("span",{class:z(t.nsSelect.e("tags-text"))},"+ "+Le(t.selected.length-t.maxCollapseTags),3)]),content:q(()=>[P("div",{class:z(t.nsSelect.e("collapse-tags"))},[(I(!0),X(Qe,null,Vt(t.collapseTagList,p=>(I(),X("div",{key:t.getValueKey(p),class:z(t.nsSelect.e("collapse-tag"))},[U(o,{class:"in-tooltip",closable:!t.selectDisabled&&!p.isDisabled,size:t.collapseTagSize,hit:p.hitState,type:t.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>t.handleDeleteTooltipTag(g,p)},{default:q(()=>[P("span",{class:z(t.nsSelect.e("tags-text")),style:et({maxWidth:t.inputWidth-75+"px"})},Le(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(I(),X("span",{key:1,class:z(t.nsSelect.e("tags-text"))},"+ "+Le(t.selected.length-t.maxCollapseTags),3))]),_:1},8,["size","type"])):de("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):de("v-if",!0),t.collapseTags?de("v-if",!0):(I(),ve(or,{key:1,onAfterLeave:t.resetInputHeight},{default:q(()=>[P("span",{class:z(t.tagWrapperKls),style:et(t.prefixWidth&&t.selected.length?{marginLeft:`${t.prefixWidth}px`}:"")},[(I(!0),X(Qe,null,Vt(t.selected,p=>(I(),ve(o,{key:t.getValueKey(p),closable:!t.selectDisabled&&!p.isDisabled,size:t.collapseTagSize,hit:p.hitState,type:t.tagType,"disable-transitions":"",onClose:g=>t.deleteTag(g,p)},{default:q(()=>[P("span",{class:z(t.nsSelect.e("tags-text")),style:et({maxWidth:t.inputWidth-75+"px"})},Le(p.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),t.filterable&&!t.selectDisabled?ct((I(),X("input",{key:2,ref:"input","onUpdate:modelValue":e[0]||(e[0]=p=>t.query=p),type:"text",class:z(t.inputKls),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:et(t.inputStyle),"aria-label":t.ariaLabel,onFocus:e[1]||(e[1]=(...p)=>t.handleFocus&&t.handleFocus(...p)),onBlur:e[2]||(e[2]=(...p)=>t.handleBlur&&t.handleBlur(...p)),onKeyup:e[3]||(e[3]=(...p)=>t.managePlaceholder&&t.managePlaceholder(...p)),onKeydown:[e[4]||(e[4]=(...p)=>t.resetInputState&&t.resetInputState(...p)),e[5]||(e[5]=Kt(ot(p=>t.navigateOptions("next"),["prevent"]),["down"])),e[6]||(e[6]=Kt(ot(p=>t.navigateOptions("prev"),["prevent"]),["up"])),e[7]||(e[7]=Kt((...p)=>t.handleKeydownEscape&&t.handleKeydownEscape(...p),["esc"])),e[8]||(e[8]=Kt(ot((...p)=>t.selectOption&&t.selectOption(...p),["stop","prevent"]),["enter"])),e[9]||(e[9]=Kt((...p)=>t.deletePrevTag&&t.deletePrevTag(...p),["delete"])),e[10]||(e[10]=Kt(p=>t.visible=!1,["tab"]))],onCompositionstart:e[11]||(e[11]=(...p)=>t.handleComposition&&t.handleComposition(...p)),onCompositionupdate:e[12]||(e[12]=(...p)=>t.handleComposition&&t.handleComposition(...p)),onCompositionend:e[13]||(e[13]=(...p)=>t.handleComposition&&t.handleComposition(...p)),onInput:e[14]||(e[14]=(...p)=>t.debouncedQueryChange&&t.debouncedQueryChange(...p))},null,46,q3e)),[[uO,t.query]]):de("v-if",!0)],6)):de("v-if",!0),de(" fix: https://github.com/element-plus/element-plus/issues/11415 "),t.isIOS&&!t.multiple&&t.filterable&&t.readonly?(I(),X("input",{key:1,ref:"iOSInput",class:z(t.iOSInputKls),disabled:t.selectDisabled,type:"text"},null,10,Z3e)):de("v-if",!0),U(u,{id:t.id,ref:"reference",modelValue:t.selectedLabel,"onUpdate:modelValue":e[16]||(e[16]=p=>t.selectedLabel=p),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:z([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]=Kt(ot(p=>t.navigateOptions("next"),["stop","prevent"]),["down"])),e[18]||(e[18]=Kt(ot(p=>t.navigateOptions("prev"),["stop","prevent"]),["up"])),Kt(ot(t.selectOption,["stop","prevent"]),["enter"]),Kt(t.handleKeydownEscape,["esc"]),e[19]||(e[19]=Kt(p=>t.visible=!1,["tab"]))]},Bl({suffix:q(()=>[t.iconComponent&&!t.showClose?(I(),ve(l,{key:0,class:z([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:q(()=>[(I(),ve(Dt(t.iconComponent)))]),_:1},8,["class"])):de("v-if",!0),t.showClose&&t.clearIcon?(I(),ve(l,{key:1,class:z([t.nsSelect.e("caret"),t.nsSelect.e("icon")]),onClick:t.handleClearClick},{default:q(()=>[(I(),ve(Dt(t.clearIcon)))]),_:1},8,["class","onClick"])):de("v-if",!0)]),_:2},[t.$slots.prefix?{name:"prefix",fn:q(()=>[P("div",Q3e,[Ce(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:q(()=>[U(h,null,{default:q(()=>[ct(U(d,{ref:"scrollbar",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:z(t.scrollbarKls)},{default:q(()=>[t.showNewOption?(I(),ve(c,{key:0,value:t.query,created:!0},null,8,["value"])):de("v-if",!0),U(f,{onUpdateOptions:t.onOptionsRendered},{default:q(()=>[Ce(t.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[Nt,t.options.size>0&&!t.loading]]),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&t.options.size===0)?(I(),X(Qe,{key:0},[t.$slots.empty?Ce(t.$slots,"empty",{key:0}):(I(),X("p",{key:1,class:z(t.nsSelect.be("dropdown","empty"))},Le(t.emptyText),3))],64)):de("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[v,t.handleClose,t.popperPaneRef]])}var eNe=Ae(X3e,[["render",J3e],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const tNe=ae({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(t){const e=ke("select"),n=G(!0),r=_t(),a=G([]);At(aY,Zt({...$r(t)}));const i=Ye(km);St(()=>{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}=un(i);return Me(s,()=>{n.value=a.value.some(l=>l.visible===!0)},{flush:"post"}),{visible:n,ns:e}}});function nNe(t,e,n,r,a,i){return ct((I(),X("ul",{class:z(t.ns.be("group","wrap"))},[P("li",{class:z(t.ns.be("group","title"))},Le(t.label),3),P("li",null,[P("ul",{class:z(t.ns.b("group"))},[Ce(t.$slots,"default")],2)])],2)),[[Nt,t.visible]])}var iY=Ae(tNe,[["render",nNe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const Xs=Tt(eNe,{Option:SA,OptionGroup:iY}),Fw=Qn(SA),rNe=Qn(iY),bA=()=>Ye(rY,{}),aNe=Ne({pageSize:{type:Number,required:!0},pageSizes:{type:ge(Array),default:()=>Gn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:tl}}),iNe=ae({name:"ElPaginationSizes"}),oNe=ae({...iNe,props:aNe,emits:["page-size-change"],setup(t,{emit:e}){const n=t,{t:r}=jt(),a=ke("pagination"),i=bA(),o=G(n.pageSize);Me(()=>n.pageSizes,(u,c)=>{if(!di(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];e("page-size-change",f)}}),Me(()=>n.pageSize,u=>{o.value=u});const s=A(()=>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)=>(I(),X("span",{class:z(w(a).e("sizes"))},[U(w(Xs),{"model-value":o.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,onChange:l},{default:q(()=>[(I(!0),X(Qe,null,Vt(w(s),f=>(I(),ve(w(Fw),{key:f,value:f,label:f+w(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var sNe=Ae(oNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const lNe=Ne({size:{type:String,values:tl}}),uNe=["disabled"],cNe=ae({name:"ElPaginationJumper"}),fNe=ae({...cNe,props:lNe,setup(t){const{t:e}=jt(),n=ke("pagination"),{pageCount:r,disabled:a,currentPage:i,changeEvent:o}=bA(),s=G(),l=A(()=>{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)=>(I(),X("span",{class:z(w(n).e("jump")),disabled:w(a)},[P("span",{class:z([w(n).e("goto")])},Le(w(e)("el.pagination.goto")),3),U(w(wa),{size:f.size,class:z([w(n).e("editor"),w(n).is("in-pagination")]),min:1,max:w(r),disabled:w(a),"model-value":w(l),"validate-event":!1,label:w(e)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","label"]),P("span",{class:z([w(n).e("classifier")])},Le(w(e)("el.pagination.pageClassifier")),3)],10,uNe))}});var dNe=Ae(fNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const hNe=Ne({total:{type:Number,default:1e3}}),pNe=["disabled"],vNe=ae({name:"ElPaginationTotal"}),gNe=ae({...vNe,props:hNe,setup(t){const{t:e}=jt(),n=ke("pagination"),{disabled:r}=bA();return(a,i)=>(I(),X("span",{class:z(w(n).e("total")),disabled:w(r)},Le(w(e)("el.pagination.total",{total:a.total})),11,pNe))}});var yNe=Ae(gNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const mNe=Ne({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),SNe=["onKeyup"],bNe=["aria-current","aria-label","tabindex"],wNe=["tabindex","aria-label"],_Ne=["aria-current","aria-label","tabindex"],xNe=["tabindex","aria-label"],CNe=["aria-current","aria-label","tabindex"],TNe=ae({name:"ElPaginationPager"}),ENe=ae({...TNe,props:mNe,emits:["change"],setup(t,{emit:e}){const n=t,r=ke("pager"),a=ke("icon"),{t:i}=jt(),o=G(!1),s=G(!1),l=G(!1),u=G(!1),c=G(!1),f=G(!1),d=A(()=>{const b=n.pagerCount,x=(b-1)/2,_=Number(n.currentPage),C=Number(n.pageCount);let T=!1,D=!1;C>b&&(_>b-x&&(T=!0),_<C-x&&(D=!0));const M=[];if(T&&!D){const E=C-(b-2);for(let k=E;k<C;k++)M.push(k)}else if(!T&&D)for(let E=2;E<b;E++)M.push(E);else if(T&&D){const E=Math.floor(b/2)-1;for(let k=_-E;k<=_+E;k++)M.push(k)}else for(let E=2;E<C;E++)M.push(E);return M}),h=A(()=>["more","btn-quickprev",a.b(),r.is("disabled",n.disabled)]),v=A(()=>["more","btn-quicknext",a.b(),r.is("disabled",n.disabled)]),p=A(()=>n.disabled?-1:0);Di(()=>{const b=(n.pagerCount-1)/2;o.value=!1,s.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-b&&(o.value=!0),n.currentPage<n.pageCount-b&&(s.value=!0))});function g(b=!1){n.disabled||(b?l.value=!0:u.value=!0)}function y(b=!1){b?c.value=!0:f.value=!0}function m(b){const x=b.target;if(x.tagName.toLowerCase()==="li"&&Array.from(x.classList).includes("number")){const _=Number(x.textContent);_!==n.currentPage&&e("change",_)}else x.tagName.toLowerCase()==="li"&&Array.from(x.classList).includes("more")&&S(b)}function S(b){const x=b.target;if(x.tagName.toLowerCase()==="ul"||n.disabled)return;let _=Number(x.textContent);const C=n.pageCount,T=n.currentPage,D=n.pagerCount-2;x.className.includes("more")&&(x.className.includes("quickprev")?_=T-D:x.className.includes("quicknext")&&(_=T+D)),Number.isNaN(+_)||(_<1&&(_=1),_>C&&(_=C)),_!==T&&e("change",_)}return(b,x)=>(I(),X("ul",{class:z(w(r).b()),onClick:S,onKeyup:Kt(m,["enter"])},[b.pageCount>0?(I(),X("li",{key:0,class:z([[w(r).is("active",b.currentPage===1),w(r).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===1,"aria-label":w(i)("el.pagination.currentPage",{pager:1}),tabindex:w(p)}," 1 ",10,bNe)):de("v-if",!0),o.value?(I(),X("li",{key:1,class:z(w(h)),tabindex:w(p),"aria-label":w(i)("el.pagination.prevPages",{pager:b.pagerCount-2}),onMouseenter:x[0]||(x[0]=_=>g(!0)),onMouseleave:x[1]||(x[1]=_=>l.value=!1),onFocus:x[2]||(x[2]=_=>y(!0)),onBlur:x[3]||(x[3]=_=>c.value=!1)},[(l.value||c.value)&&!b.disabled?(I(),ve(w(Gp),{key:0})):(I(),ve(w(tI),{key:1}))],42,wNe)):de("v-if",!0),(I(!0),X(Qe,null,Vt(w(d),_=>(I(),X("li",{key:_,class:z([[w(r).is("active",b.currentPage===_),w(r).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===_,"aria-label":w(i)("el.pagination.currentPage",{pager:_}),tabindex:w(p)},Le(_),11,_Ne))),128)),s.value?(I(),X("li",{key:2,class:z(w(v)),tabindex:w(p),"aria-label":w(i)("el.pagination.nextPages",{pager:b.pagerCount-2}),onMouseenter:x[4]||(x[4]=_=>g()),onMouseleave:x[5]||(x[5]=_=>u.value=!1),onFocus:x[6]||(x[6]=_=>y()),onBlur:x[7]||(x[7]=_=>f.value=!1)},[(u.value||f.value)&&!b.disabled?(I(),ve(w(Up),{key:0})):(I(),ve(w(tI),{key:1}))],42,xNe)):de("v-if",!0),b.pageCount>1?(I(),X("li",{key:3,class:z([[w(r).is("active",b.currentPage===b.pageCount),w(r).is("disabled",b.disabled)],"number"]),"aria-current":b.currentPage===b.pageCount,"aria-label":w(i)("el.pagination.currentPage",{pager:b.pageCount}),tabindex:w(p)},Le(b.pageCount),11,CNe)):de("v-if",!0)],42,SNe))}});var MNe=Ae(ENe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const Da=t=>typeof t!="number",DNe=Ne({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:t=>ut(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:ge(Array),default:()=>Gn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Tn,default:()=>cc},nextText:{type:String,default:""},nextIcon:{type:Tn,default:()=>za},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),kNe={"update:current-page":t=>ut(t),"update:page-size":t=>ut(t),"size-change":t=>ut(t),"current-change":t=>ut(t),"prev-click":t=>ut(t),"next-click":t=>ut(t)},dP="ElPagination";var RNe=ae({name:dP,props:DNe,emits:kNe,setup(t,{emit:e,slots:n}){const{t:r}=jt(),a=ke("pagination"),i=_t().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=A(()=>{if(Da(t.total)&&Da(t.pageCount)||!Da(t.currentPage)&&!o)return!1;if(t.layout.includes("sizes")){if(Da(t.pageCount)){if(!Da(t.total)&&!Da(t.pageSize)&&!s)return!1}else if(!s)return!1}return!0}),u=G(Da(t.defaultPageSize)?10:t.defaultPageSize),c=G(Da(t.defaultCurrentPage)?1:t.defaultCurrentPage),f=A({get(){return Da(t.pageSize)?u.value:t.pageSize},set(S){Da(t.pageSize)&&(u.value=S),s&&(e("update:page-size",S),e("size-change",S))}}),d=A(()=>{let S=0;return Da(t.pageCount)?Da(t.total)||(S=Math.max(1,Math.ceil(t.total/f.value))):S=t.pageCount,S}),h=A({get(){return Da(t.currentPage)?c.value:t.currentPage},set(S){let b=S;S<1?b=1:S>d.value&&(b=d.value),Da(t.currentPage)&&(c.value=b),o&&(e("update:current-page",b),e("current-change",b))}});Me(d,S=>{h.value>S&&(h.value=S)});function v(S){h.value=S}function p(S){f.value=S;const b=d.value;h.value>b&&(h.value=b)}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(S,b){S&&(S.props||(S.props={}),S.props.class=[S.props.class,b].join(" "))}return At(rY,{pageCount:d,disabled:A(()=>t.disabled),currentPage:h,changeEvent:v,handleSizeChange:p}),()=>{var S,b;if(!l.value)return r("el.pagination.deprecationWarning"),null;if(!t.layout||t.hideOnSinglePage&&d.value<=1)return null;const x=[],_=[],C=rt("div",{class:a.e("rightwrapper")},_),T={prev:rt(A3e,{disabled:t.disabled,currentPage:h.value,prevText:t.prevText,prevIcon:t.prevIcon,onClick:g}),jumper:rt(dNe,{size:t.small?"small":"default"}),pager:rt(MNe,{currentPage:h.value,pageCount:d.value,pagerCount:t.pagerCount,onChange:v,disabled:t.disabled}),next:rt(P3e,{disabled:t.disabled,currentPage:h.value,pageCount:d.value,nextText:t.nextText,nextIcon:t.nextIcon,onClick:y}),sizes:rt(sNe,{pageSize:f.value,pageSizes:t.pageSizes,popperClass:t.popperClass,disabled:t.disabled,teleported:t.teleported,size:t.small?"small":"default"}),slot:(b=(S=n==null?void 0:n.default)==null?void 0:S.call(n))!=null?b:null,total:rt(yNe,{total:Da(t.total)?0:t.total})},D=t.layout.split(",").map(E=>E.trim());let M=!1;return D.forEach(E=>{if(E==="->"){M=!0;return}M?_.push(T[E]):x.push(T[E])}),m(x[0],a.is("first")),m(x[x.length-1],a.is("last")),M&&_.length>0&&(m(_[0],a.is("first")),m(_[_.length-1],a.is("last")),x.push(C)),rt("div",{class:[a.b(),a.is("background",t.background),{[a.m("small")]:t.small}]},x)}}});const LNe=Tt(RNe),ONe=Ne({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:OD,default:"primary"},cancelButtonType:{type:String,values:OD,default:"text"},icon:{type:Tn,default:()=>_Se},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:Hr.teleported,persistent:Hr.persistent,width:{type:[String,Number],default:150}}),ANe={confirm:t=>t instanceof MouseEvent,cancel:t=>t instanceof MouseEvent},NNe=ae({name:"ElPopconfirm"}),VNe=ae({...NNe,props:ONe,emits:ANe,setup(t,{emit:e}){const n=t,{t:r}=jt(),a=ke("popconfirm"),i=G(),o=()=>{var d,h;(h=(d=i.value)==null?void 0:d.onClose)==null||h.call(d)},s=A(()=>({width:rr(n.width)})),l=d=>{e("confirm",d),o()},u=d=>{e("cancel",d),o()},c=A(()=>n.confirmButtonText||r("el.popconfirm.confirmButtonText")),f=A(()=>n.cancelButtonText||r("el.popconfirm.cancelButtonText"));return(d,h)=>(I(),ve(w(Ya),Mt({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},d.$attrs,{"popper-class":`${w(a).namespace.value}-popover`,"popper-style":w(s),teleported:d.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":d.hideAfter,persistent:d.persistent}),{content:q(()=>[P("div",{class:z(w(a).b())},[P("div",{class:z(w(a).e("main"))},[!d.hideIcon&&d.icon?(I(),ve(w(qe),{key:0,class:z(w(a).e("icon")),style:et({color:d.iconColor})},{default:q(()=>[(I(),ve(Dt(d.icon)))]),_:1},8,["class","style"])):de("v-if",!0),dt(" "+Le(d.title),1)],2),P("div",{class:z(w(a).e("action"))},[U(w(ln),{size:"small",type:d.cancelButtonType==="text"?"":d.cancelButtonType,text:d.cancelButtonType==="text",onClick:u},{default:q(()=>[dt(Le(w(f)),1)]),_:1},8,["type","text"]),U(w(ln),{size:"small",type:d.confirmButtonType==="text"?"":d.confirmButtonType,text:d.confirmButtonType==="text",onClick:l},{default:q(()=>[dt(Le(w(c)),1)]),_:1},8,["type","text"])],2)],2)]),default:q(()=>[d.$slots.reference?Ce(d.$slots,"reference",{key:0}):de("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var BNe=Ae(VNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const $Ne=Tt(BNe),INe=Ne({trigger:py.trigger,placement:Ib.placement,disabled:py.disabled,visible:Hr.visible,transition:Hr.transition,popperOptions:Ib.popperOptions,tabindex:Ib.tabindex,content:Hr.content,popperStyle:Hr.popperStyle,popperClass:Hr.popperClass,enterable:{...Hr.enterable,default:!0},effect:{...Hr.effect,default:"light"},teleported:Hr.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}}),PNe={"update:visible":t=>Sr(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},FNe="onUpdate:visible",zNe=ae({name:"ElPopover"}),GNe=ae({...zNe,props:INe,emits:PNe,setup(t,{expose:e,emit:n}){const r=t,a=A(()=>r[FNe]),i=ke("popover"),o=G(),s=A(()=>{var g;return(g=w(o))==null?void 0:g.popperRef}),l=A(()=>[{width:rr(r.width)},r.popperStyle]),u=A(()=>[i.b(),r.popperClass,{[i.m("plain")]:!!r.content}]),c=A(()=>r.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var g;(g=o.value)==null||g.hide()},d=()=>{n("before-enter")},h=()=>{n("before-leave")},v=()=>{n("after-enter")},p=()=>{n("update:visible",!1),n("after-leave")};return e({popperRef:s,hide:f}),(g,y)=>(I(),ve(w(Ya),Mt({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":w(u),"popper-style":w(l),teleported:g.teleported,persistent:g.persistent,"gpu-acceleration":w(c),"onUpdate:visible":w(a),onBeforeShow:d,onBeforeHide:h,onShow:v,onHide:p}),{content:q(()=>[g.title?(I(),X("div",{key:0,class:z(w(i).e("title")),role:"title"},Le(g.title),3)):de("v-if",!0),Ce(g.$slots,"default",{},()=>[dt(Le(g.content),1)])]),default:q(()=>[g.$slots.reference?Ce(g.$slots,"reference",{key:0}):de("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 UNe=Ae(GNe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const hP=(t,e)=>{const n=e.arg||e.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=t)};var HNe={mounted(t,e){hP(t,e)},updated(t,e){hP(t,e)}};const WNe="popover",oY=Hbe(HNe,WNe),KNe=Tt(UNe,{directive:oY}),jNe=Ne({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:ge(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:ge([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:ge(Function),default:t=>`${t}%`}}),YNe=["aria-valuenow"],XNe={viewBox:"0 0 100 100"},qNe=["d","stroke","stroke-linecap","stroke-width"],ZNe=["d","stroke","opacity","stroke-linecap","stroke-width"],QNe={key:0},JNe=ae({name:"ElProgress"}),eVe=ae({...JNe,props:jNe,setup(t){const e=t,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=ke("progress"),a=A(()=>({width:`${e.percentage}%`,animationDuration:`${e.duration}s`,backgroundColor:m(e.percentage)})),i=A(()=>(e.strokeWidth/e.width*100).toFixed(1)),o=A(()=>["circle","dashboard"].includes(e.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),s=A(()=>{const S=o.value,b=e.type==="dashboard";return`
- M 50 50
- m 0 ${b?"":"-"}${S}
- a ${S} ${S} 0 1 1 0 ${b?"-":""}${S*2}
- a ${S} ${S} 0 1 1 0 ${b?"":"-"}${S*2}
- `}),l=A(()=>2*Math.PI*o.value),u=A(()=>e.type==="dashboard"?.75:1),c=A(()=>`${-1*l.value*(1-u.value)/2}px`),f=A(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),d=A(()=>({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=A(()=>{let S;return e.color?S=m(e.percentage):S=n[e.status]||n.default,S}),v=A(()=>e.status==="warning"?Hx:e.type==="line"?e.status==="success"?NO:kc:e.status==="success"?Cm:Jo),p=A(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),g=A(()=>e.format(e.percentage));function y(S){const b=100/S.length;return S.map((_,C)=>vt(_)?{color:_,percentage:(C+1)*b}:_).sort((_,C)=>_.percentage-C.percentage)}const m=S=>{var b;const{color:x}=e;if(ft(x))return x(S);if(vt(x))return x;{const _=y(x);for(const C of _)if(C.percentage>S)return C.color;return(b=_[_.length-1])==null?void 0:b.color}};return(S,b)=>(I(),X("div",{class:z([w(r).b(),w(r).m(S.type),w(r).is(S.status),{[w(r).m("without-text")]:!S.showText,[w(r).m("text-inside")]:S.textInside}]),role:"progressbar","aria-valuenow":S.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[S.type==="line"?(I(),X("div",{key:0,class:z(w(r).b("bar"))},[P("div",{class:z(w(r).be("bar","outer")),style:et({height:`${S.strokeWidth}px`})},[P("div",{class:z([w(r).be("bar","inner"),{[w(r).bem("bar","inner","indeterminate")]:S.indeterminate},{[w(r).bem("bar","inner","striped")]:S.striped},{[w(r).bem("bar","inner","striped-flow")]:S.stripedFlow}]),style:et(w(a))},[(S.showText||S.$slots.default)&&S.textInside?(I(),X("div",{key:0,class:z(w(r).be("bar","innerText"))},[Ce(S.$slots,"default",{percentage:S.percentage},()=>[P("span",null,Le(w(g)),1)])],2)):de("v-if",!0)],6)],6)],2)):(I(),X("div",{key:1,class:z(w(r).b("circle")),style:et({height:`${S.width}px`,width:`${S.width}px`})},[(I(),X("svg",XNe,[P("path",{class:z(w(r).be("circle","track")),d:w(s),stroke:`var(${w(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":S.strokeLinecap,"stroke-width":w(i),fill:"none",style:et(w(f))},null,14,qNe),P("path",{class:z(w(r).be("circle","path")),d:w(s),stroke:w(h),fill:"none",opacity:S.percentage?1:0,"stroke-linecap":S.strokeLinecap,"stroke-width":w(i),style:et(w(d))},null,14,ZNe)]))],6)),(S.showText||S.$slots.default)&&!S.textInside?(I(),X("div",{key:2,class:z(w(r).e("text")),style:et({fontSize:`${w(p)}px`})},[Ce(S.$slots,"default",{percentage:S.percentage},()=>[S.status?(I(),ve(w(qe),{key:1},{default:q(()=>[(I(),ve(Dt(w(v))))]),_:1})):(I(),X("span",QNe,Le(w(g)),1))])],6)):de("v-if",!0)],10,YNe))}});var tVe=Ae(eVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const sY=Tt(tVe),nVe=Ne({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:ge([Array,Object]),default:()=>Gn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:ge([Array,Object]),default:()=>[S1,S1,S1]},voidIcon:{type:Tn,default:()=>vbe},disabledVoidIcon:{type:Tn,default:()=>S1},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:ge(Array),default:()=>Gn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:sa,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),rVe={[Nn]:t=>ut(t),[Et]:t=>ut(t)},aVe=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],iVe=["onMousemove","onClick"],oVe=ae({name:"ElRate"}),sVe=ae({...oVe,props:nVe,emits:rVe,setup(t,{expose:e,emit:n}){const r=t;function a($,V){const F=H=>Lt(H),L=Object.keys(V).map(H=>+H).filter(H=>{const K=V[H];return(F(K)?K.excluded:!1)?$<H:$<=H}).sort((H,K)=>H-K),N=V[L[0]];return F(N)&&N.value||N}const i=Ye(Xd,void 0),o=Ye(Ys,void 0),s=_r(),l=ke("rate"),{inputId:u,isLabeledByFormItem:c}=Ac(r,{formItemContext:o}),f=G(r.modelValue),d=G(-1),h=G(!0),v=A(()=>[l.b(),l.m(s.value)]),p=A(()=>r.disabled||(i==null?void 0:i.disabled)),g=A(()=>l.cssVarBlock({"void-color":r.voidColor,"disabled-void-color":r.disabledVoidColor,"fill-color":b.value})),y=A(()=>{let $="";return r.showScore?$=r.scoreTemplate.replace(/\{\s*value\s*\}/,p.value?`${r.modelValue}`:`${f.value}`):r.showText&&($=r.texts[Math.ceil(f.value)-1]),$}),m=A(()=>r.modelValue*100-Math.floor(r.modelValue)*100),S=A(()=>Ke(r.colors)?{[r.lowThreshold]:r.colors[0],[r.highThreshold]:{value:r.colors[1],excluded:!0},[r.max]:r.colors[2]}:r.colors),b=A(()=>{const $=a(f.value,S.value);return Lt($)?"":$}),x=A(()=>{let $="";return p.value?$=`${m.value}%`:r.allowHalf&&($="50%"),{color:b.value,width:$}}),_=A(()=>{let $=Ke(r.icons)?[...r.icons]:{...r.icons};return $=qu($),Ke($)?{[r.lowThreshold]:$[0],[r.highThreshold]:{value:$[1],excluded:!0},[r.max]:$[2]}:$}),C=A(()=>a(r.modelValue,_.value)),T=A(()=>p.value?vt(r.disabledVoidIcon)?r.disabledVoidIcon:qu(r.disabledVoidIcon):vt(r.voidIcon)?r.voidIcon:qu(r.voidIcon)),D=A(()=>a(f.value,_.value));function M($){const V=p.value&&m.value>0&&$-1<r.modelValue&&$>r.modelValue,F=r.allowHalf&&h.value&&$-.5<=f.value&&$>f.value;return V||F}function E($){r.clearable&&$===r.modelValue&&($=0),n(Et,$),r.modelValue!==$&&n("change",$)}function k($){p.value||(r.allowHalf&&h.value?E(f.value):E($))}function R($){if(p.value)return;let V=f.value;const F=$.code;return F===nt.up||F===nt.right?(r.allowHalf?V+=.5:V+=1,$.stopPropagation(),$.preventDefault()):(F===nt.left||F===nt.down)&&(r.allowHalf?V-=.5:V-=1,$.stopPropagation(),$.preventDefault()),V=V<0?0:V,V=V>r.max?r.max:V,n(Et,V),n("change",V),V}function O($,V){if(!p.value){if(r.allowHalf&&V){let F=V.target;Yo(F,l.e("item"))&&(F=F.querySelector(`.${l.e("icon")}`)),(F.clientWidth===0||Yo(F,l.e("decimal")))&&(F=F.parentNode),h.value=V.offsetX*2<=F.clientWidth,f.value=h.value?$-.5:$}else f.value=$;d.value=$}}function B(){p.value||(r.allowHalf&&(h.value=r.modelValue!==Math.floor(r.modelValue)),f.value=r.modelValue,d.value=-1)}return Me(()=>r.modelValue,$=>{f.value=$,h.value=r.modelValue!==Math.floor(r.modelValue)}),r.modelValue||n(Et,0),e({setCurrentValue:O,resetCurrentValue:B}),($,V)=>{var F;return I(),X("div",{id:w(u),class:z([w(v),w(l).is("disabled",w(p))]),role:"slider","aria-label":w(c)?void 0:$.label||"rating","aria-labelledby":w(c)?(F=w(o))==null?void 0:F.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":w(y)||void 0,"aria-valuemin":"0","aria-valuemax":$.max,tabindex:"0",style:et(w(g)),onKeydown:R},[(I(!0),X(Qe,null,Vt($.max,(L,N)=>(I(),X("span",{key:N,class:z(w(l).e("item")),onMousemove:H=>O(L,H),onMouseleave:B,onClick:H=>k(L)},[U(w(qe),{class:z([w(l).e("icon"),{hover:d.value===L},w(l).is("active",L<=f.value)])},{default:q(()=>[M(L)?de("v-if",!0):(I(),X(Qe,{key:0},[ct((I(),ve(Dt(w(D)),null,null,512)),[[Nt,L<=f.value]]),ct((I(),ve(Dt(w(T)),null,null,512)),[[Nt,!(L<=f.value)]])],64)),M(L)?(I(),ve(w(qe),{key:1,style:et(w(x)),class:z([w(l).e("icon"),w(l).e("decimal")])},{default:q(()=>[(I(),ve(Dt(w(C))))]),_:1},8,["style","class"])):de("v-if",!0)]),_:2},1032,["class"])],42,iVe))),128)),$.showText||$.showScore?(I(),X("span",{key:0,class:z(w(l).e("text")),style:et({color:$.textColor})},Le(w(y)),7)):de("v-if",!0)],46,aVe)}}});var lVe=Ae(sVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const uVe=Tt(lVe),tp={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},pP={[tp.success]:_me,[tp.warning]:Hx,[tp.error]:VO,[tp.info]:BO},cVe=Ne({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),fVe=ae({name:"ElResult"}),dVe=ae({...fVe,props:cVe,setup(t){const e=t,n=ke("result"),r=A(()=>{const a=e.icon,i=a&&tp[a]?tp[a]:"icon-info",o=pP[i]||pP["icon-info"];return{class:i,component:o}});return(a,i)=>(I(),X("div",{class:z(w(n).b())},[P("div",{class:z(w(n).e("icon"))},[Ce(a.$slots,"icon",{},()=>[w(r).component?(I(),ve(Dt(w(r).component),{key:0,class:z(w(r).class)},null,8,["class"])):de("v-if",!0)])],2),a.title||a.$slots.title?(I(),X("div",{key:0,class:z(w(n).e("title"))},[Ce(a.$slots,"title",{},()=>[P("p",null,Le(a.title),1)])],2)):de("v-if",!0),a.subTitle||a.$slots["sub-title"]?(I(),X("div",{key:1,class:z(w(n).e("subtitle"))},[Ce(a.$slots,"sub-title",{},()=>[P("p",null,Le(a.subTitle),1)])],2)):de("v-if",!0),a.$slots.extra?(I(),X("div",{key:2,class:z(w(n).e("extra"))},[Ce(a.$slots,"extra")],2)):de("v-if",!0)],2))}});var hVe=Ae(dVe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const pVe=Tt(hVe);var vP=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function vVe(t,e){return!!(t===e||vP(t)&&vP(e))}function gVe(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!vVe(t[n],e[n]))return!1;return!0}function yVe(t,e){e===void 0&&(e=gVe);var n=null;function r(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(n&&n.lastThis===this&&e(a,n.lastArgs))return n.lastResult;var o=t.apply(this,a);return n={lastResult:o,lastArgs:a,lastThis:this},o}return r.clear=function(){n=null},r}const lY=()=>{const e=_t().proxy.$props;return A(()=>{const n=(r,a,i)=>({});return e.perfMode?Fx(n):yVe(n)})},JD=50,zw="itemRendered",Gw="scroll",np="forward",Uw="backward",Zi="auto",oC="smart",yy="start",Ns="center",my="end",Zp="horizontal",wA="vertical",mVe="ltr",wp="rtl",Sy="negative",_A="positive-ascending",xA="positive-descending",SVe={[Zp]:"left",[wA]:"top"},bVe=20,wVe={[Zp]:"deltaX",[wA]:"deltaY"},_Ve=({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=>{Yx(a);const u=l[wVe[n.value]];o(i)&&o(i+u)||(i+=u,k7()||l.preventDefault(),a=Hp(()=>{r(i),i=0}))}}},ek=ss({type:ge([Number,Function]),required:!0}),tk=ss({type:Number}),nk=ss({type:Number,default:2}),xVe=ss({type:String,values:["ltr","rtl"],default:"ltr"}),rk=ss({type:Number,default:0}),Hw=ss({type:Number,required:!0}),uY=ss({type:String,values:["horizontal","vertical"],default:wA}),cY=Ne({className:{type:String,default:""},containerElement:{type:ge([String,Object]),default:"div"},data:{type:ge(Array),default:()=>Gn([])},direction:xVe,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:ge([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),fY=Ne({cache:nk,estimatedItemSize:tk,layout:uY,initScrollOffset:rk,total:Hw,itemSize:ek,...cY}),ak={type:Number,default:6},dY={type:Number,default:0},hY={type:Number,default:2},vd=Ne({columnCache:nk,columnWidth:ek,estimatedColumnWidth:tk,estimatedRowHeight:tk,initScrollLeft:rk,initScrollTop:rk,itemKey:{type:ge(Function),default:({columnIndex:t,rowIndex:e})=>`${e}:${t}`},rowCache:nk,rowHeight:ek,totalColumn:Hw,totalRow:Hw,hScrollbarSize:ak,vScrollbarSize:ak,scrollbarStartGap:dY,scrollbarEndGap:hY,role:String,...cY}),pY=Ne({alwaysOn:Boolean,class:String,layout:uY,total:Hw,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:ak,startGap:dY,endGap:hY,visible:Boolean}),Jf=(t,e)=>t<e?np:Uw,by=t=>t===mVe||t===wp||t===Zp,gP=t=>t===wp;let uh=null;function Ww(t=!1){if(uh===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?uh=xA:(e.scrollLeft=1,e.scrollLeft===0?uh=Sy:uh=_A),document.body.removeChild(e),uh}return uh}function CVe({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 ik=ae({name:"ElVirtualScrollBar",props:pY,emits:["scroll","start-move","stop-move"],setup(t,{emit:e}){const n=A(()=>t.startGap+t.endGap),r=ke("virtual-scrollbar"),a=ke("scrollbar"),i=G(),o=G();let s=null,l=null;const u=Zt({isDragging:!1,traveled:0}),c=A(()=>dK[t.layout]),f=A(()=>t.clientSize-w(n)),d=A(()=>({position:"absolute",width:`${Zp===t.layout?f.value:t.scrollbarSize}px`,height:`${Zp===t.layout?t.scrollbarSize:f.value}px`,[SVe[t.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),h=A(()=>{const _=t.ratio,C=t.clientSize;if(_>=100)return Number.POSITIVE_INFINITY;if(_>=50)return _*C/100;const T=C/3;return Math.floor(Math.min(Math.max(_*C,bVe),T))}),v=A(()=>{if(!Number.isFinite(h.value))return{display:"none"};const _=`${h.value}px`;return CVe({bar:c.value,size:_,move:u.traveled},t.layout)}),p=A(()=>Math.floor(t.clientSize-h.value-w(n))),g=()=>{window.addEventListener("mousemove",b),window.addEventListener("mouseup",S);const _=w(o);_&&(l=document.onselectstart,document.onselectstart=()=>!1,_.addEventListener("touchmove",b),_.addEventListener("touchend",S))},y=()=>{window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",S),document.onselectstart=l,l=null;const _=w(o);_&&(_.removeEventListener("touchmove",b),_.removeEventListener("touchend",S))},m=_=>{_.stopImmediatePropagation(),!(_.ctrlKey||[1,2].includes(_.button))&&(u.isDragging=!0,u[c.value.axis]=_.currentTarget[c.value.offset]-(_[c.value.client]-_.currentTarget.getBoundingClientRect()[c.value.direction]),e("start-move"),g())},S=()=>{u.isDragging=!1,u[c.value.axis]=0,e("stop-move"),y()},b=_=>{const{isDragging:C}=u;if(!C||!o.value||!i.value)return;const T=u[c.value.axis];if(!T)return;Yx(s);const D=(i.value.getBoundingClientRect()[c.value.direction]-_[c.value.client])*-1,M=o.value[c.value.offset]-T,E=D-M;s=Hp(()=>{u.traveled=Math.max(t.startGap,Math.min(E,p.value)),e("scroll",E,p.value)})},x=_=>{const C=Math.abs(_.target.getBoundingClientRect()[c.value.direction]-_[c.value.client]),T=o.value[c.value.offset]/2,D=C-T;u.traveled=Math.max(0,Math.min(D,p.value)),e("scroll",D,p.value)};return Me(()=>t.scrollFrom,_=>{u.isDragging||(u.traveled=Math.ceil(_*p.value))}),Pn(()=>{y()}),()=>rt("div",{role:"presentation",ref:i,class:[r.b(),t.class,(t.alwaysOn||u.isDragging)&&"always-on"],style:d.value,onMousedown:ot(x,["stop","prevent"]),onTouchstartPrevent:m},rt("div",{ref:o,class:a.e("thumb"),style:v.value,onMousedown:m},[]))}}),vY=({name:t,getOffset:e,getItemSize:n,getItemOffset:r,getEstimatedTotalSize:a,getStartIndexForOffset:i,getStopIndexForStartIndex:o,initCache:s,clearCache:l,validateProps:u})=>ae({name:t??"ElVirtualList",props:fY,emits:[zw,Gw],setup(c,{emit:f,expose:d}){u(c);const h=_t(),v=ke("vl"),p=G(s(c,h)),g=lY(),y=G(),m=G(),S=G(),b=G({isScrolling:!1,scrollDir:"forward",scrollOffset:ut(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),x=A(()=>{const{total:Q,cache:ie}=c,{isScrolling:be,scrollDir:le,scrollOffset:J}=w(b);if(Q===0)return[0,0,0,0];const Z=i(c,J,w(p)),ee=o(c,Z,J,w(p)),ce=!be||le===Uw?Math.max(1,ie):1,ue=!be||le===np?Math.max(1,ie):1;return[Math.max(0,Z-ce),Math.max(0,Math.min(Q-1,ee+ue)),Z,ee]}),_=A(()=>a(c,w(p))),C=A(()=>by(c.layout)),T=A(()=>[{position:"relative",[`overflow-${C.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:ut(c.height)?`${c.height}px`:c.height,width:ut(c.width)?`${c.width}px`:c.width},c.style]),D=A(()=>{const Q=w(_),ie=w(C);return{height:ie?"100%":`${Q}px`,pointerEvents:w(b).isScrolling?"none":void 0,width:ie?`${Q}px`:"100%"}}),M=A(()=>C.value?c.width:c.height),{onWheel:E}=_Ve({atStartEdge:A(()=>b.value.scrollOffset<=0),atEndEdge:A(()=>b.value.scrollOffset>=_.value),layout:A(()=>c.layout)},Q=>{var ie,be;(be=(ie=S.value).onMouseUp)==null||be.call(ie),V(Math.min(b.value.scrollOffset+Q,_.value-M.value))}),k=()=>{const{total:Q}=c;if(Q>0){const[J,Z,ee,ce]=w(x);f(zw,J,Z,ee,ce)}const{scrollDir:ie,scrollOffset:be,updateRequested:le}=w(b);f(Gw,ie,be,le)},R=Q=>{const{clientHeight:ie,scrollHeight:be,scrollTop:le}=Q.currentTarget,J=w(b);if(J.scrollOffset===le)return;const Z=Math.max(0,Math.min(le,be-ie));b.value={...J,isScrolling:!0,scrollDir:Jf(J.scrollOffset,Z),scrollOffset:Z,updateRequested:!1},Ze(N)},O=Q=>{const{clientWidth:ie,scrollLeft:be,scrollWidth:le}=Q.currentTarget,J=w(b);if(J.scrollOffset===be)return;const{direction:Z}=c;let ee=be;if(Z===wp)switch(Ww()){case Sy:{ee=-be;break}case xA:{ee=le-ie-be;break}}ee=Math.max(0,Math.min(ee,le-ie)),b.value={...J,isScrolling:!0,scrollDir:Jf(J.scrollOffset,ee),scrollOffset:ee,updateRequested:!1},Ze(N)},B=Q=>{w(C)?O(Q):R(Q),k()},$=(Q,ie)=>{const be=(_.value-M.value)/ie*Q;V(Math.min(_.value-M.value,be))},V=Q=>{Q=Math.max(Q,0),Q!==w(b).scrollOffset&&(b.value={...w(b),scrollOffset:Q,scrollDir:Jf(w(b).scrollOffset,Q),updateRequested:!0},Ze(N))},F=(Q,ie=Zi)=>{const{scrollOffset:be}=w(b);Q=Math.max(0,Math.min(Q,c.total-1)),V(e(c,Q,ie,be,w(p)))},L=Q=>{const{direction:ie,itemSize:be,layout:le}=c,J=g.value(l&&be,l&&le,l&&ie);let Z;if(Gt(J,String(Q)))Z=J[Q];else{const ee=r(c,Q,w(p)),ce=n(c,Q,w(p)),ue=w(C),Y=ie===wp,te=ue?ee:0;J[Q]=Z={position:"absolute",left:Y?void 0:`${te}px`,right:Y?`${te}px`:void 0,top:ue?0:`${ee}px`,height:ue?"100%":`${ce}px`,width:ue?`${ce}px`:"100%"}}return Z},N=()=>{b.value.isScrolling=!1,Ze(()=>{g.value(-1,null,null)})},H=()=>{const Q=y.value;Q&&(Q.scrollTop=0)};St(()=>{if(!Ht)return;const{initScrollOffset:Q}=c,ie=w(y);ut(Q)&&ie&&(w(C)?ie.scrollLeft=Q:ie.scrollTop=Q),k()}),ql(()=>{const{direction:Q,layout:ie}=c,{scrollOffset:be,updateRequested:le}=w(b),J=w(y);if(le&&J)if(ie===Zp)if(Q===wp)switch(Ww()){case Sy:{J.scrollLeft=-be;break}case _A:{J.scrollLeft=be;break}default:{const{clientWidth:Z,scrollWidth:ee}=J;J.scrollLeft=ee-Z-be;break}}else J.scrollLeft=be;else J.scrollTop=be});const K={ns:v,clientSize:M,estimatedTotalSize:_,windowStyle:T,windowRef:y,innerRef:m,innerStyle:D,itemsToRender:x,scrollbarRef:S,states:b,getItemStyle:L,onScroll:B,onScrollbarScroll:$,onWheel:E,scrollTo:V,scrollToItem:F,resetScrollTop:H};return d({windowRef:y,innerRef:m,getItemStyleCache:g,scrollTo:V,scrollToItem:F,resetScrollTop:H,states:b}),K},render(c){var f;const{$slots:d,className:h,clientSize:v,containerElement:p,data:g,getItemStyle:y,innerElement:m,itemsToRender:S,innerStyle:b,layout:x,total:_,onScroll:C,onScrollbarScroll:T,onWheel:D,states:M,useIsScrolling:E,windowStyle:k,ns:R}=c,[O,B]=S,$=Dt(p),V=Dt(m),F=[];if(_>0)for(let K=O;K<=B;K++)F.push((f=d.default)==null?void 0:f.call(d,{data:g,key:K,index:K,isScrolling:E?M.isScrolling:void 0,style:y(K)}));const L=[rt(V,{style:b,ref:"innerRef"},vt(V)?F:{default:()=>F})],N=rt(ik,{ref:"scrollbarRef",clientSize:v,layout:x,onScroll:T,ratio:v*100/this.estimatedTotalSize,scrollFrom:M.scrollOffset/(this.estimatedTotalSize-v),total:_}),H=rt($,{class:[R.e("window"),h],style:k,onScroll:C,onWheel:D,ref:"windowRef",key:0},vt($)?[L]:{default:()=>[L]});return rt("div",{key:0,class:[R.e("wrapper"),M.scrollbarAlwaysOn?"always-on":""]},[H,N])}}),gY=vY({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=by(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===oC&&(s>=f-l&&s<=c+l?o=Zi:o=Ns),o){case yy:return c;case my:return f;case Ns:{const d=Math.round(f+(c-f)/2);return d<Math.ceil(l/2)?0:d>u+Math.floor(l/2)?u:d}case Zi:default:return s>=f&&s<=c?s:s<f?f:c}},getStartIndexForOffset:({total:t,itemSize:e},n)=>Math.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=by(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(){}}),rp=(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]},TVe=(t,e,n)=>{const{items:r,lastVisitedIndex:a}=e;return(a>0?r[a].offset:0)>=n?yY(t,e,0,a,n):EVe(t,e,Math.max(0,a),n)},yY=(t,e,n,r,a)=>{for(;n<=r;){const i=n+Math.floor((r-n)/2),o=rp(t,i,e).offset;if(o===a)return i;o<a?n=i+1:o>a&&(r=i-1)}return Math.max(0,n-1)},EVe=(t,e,n,r)=>{const{total:a}=t;let i=1;for(;n<a&&rp(t,n,e).offset<r;)n+=i,i*=2;return yY(t,e,Math.floor(n/2),Math.min(n,a-1),r)},yP=({total:t},{items:e,estimatedItemSize:n,lastVisitedIndex: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},MVe=vY({name:"ElDynamicSizeList",getItemOffset:(t,e,n)=>rp(t,e,n).offset,getItemSize:(t,e,{items:n})=>n[e].size,getEstimatedTotalSize:yP,getOffset:(t,e,n,r,a)=>{const{height:i,layout:o,width:s}=t,l=by(o)?s:i,u=rp(t,e,a),c=yP(t,a),f=Math.max(0,Math.min(c-l,u.offset)),d=Math.max(0,u.offset-l+u.size);switch(n===oC&&(r>=d-l&&r<=f+l?n=Zi:n=Ns),n){case yy:return f;case my:return d;case Ns:return Math.round(d+(f-d)/2);case Zi:default:return r>=d&&r<=f?r:r<d?d:f}},getStartIndexForOffset:(t,e,n)=>TVe(t,n,e),getStopIndexForStartIndex:(t,e,n,r)=>{const{height:a,total:i,layout:o,width:s}=t,l=by(o)?s:a,u=rp(t,e,r),c=n+l;let f=u.offset+u.size,d=e;for(;d<i-1&&f<c;)d++,f+=rp(t,d,r).size;return d},initCache({estimatedItemSize:t=JD},e){const n={items:{},estimatedItemSize:t,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(r,a=!0)=>{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})=>{}}),DVe=({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=>{Yx(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=Hp(()=>{a(o,s),o=0,s=0}))}}},mY=({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:v})=>ae({name:t??"ElVirtualList",props:vd,emits:[zw,Gw],setup(p,{emit:g,expose:y,slots:m}){const S=ke("vl");v(p);const b=_t(),x=G(d(p,b));h==null||h(b,x);const _=G(),C=G(),T=G(),D=G(null),M=G({isScrolling:!1,scrollLeft:ut(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:ut(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:np,yAxisScrollDir:np}),E=lY(),k=A(()=>Number.parseInt(`${p.height}`,10)),R=A(()=>Number.parseInt(`${p.width}`,10)),O=A(()=>{const{totalColumn:ne,totalRow:Ee,columnCache:_e}=p,{isScrolling:me,xAxisScrollDir:Te,scrollLeft:Ve}=w(M);if(ne===0||Ee===0)return[0,0,0,0];const ze=r(p,Ve,w(x)),We=a(p,ze,Ve,w(x)),De=!me||Te===Uw?Math.max(1,_e):1,Fe=!me||Te===np?Math.max(1,_e):1;return[Math.max(0,ze-De),Math.max(0,Math.min(ne-1,We+Fe)),ze,We]}),B=A(()=>{const{totalColumn:ne,totalRow:Ee,rowCache:_e}=p,{isScrolling:me,yAxisScrollDir:Te,scrollTop:Ve}=w(M);if(ne===0||Ee===0)return[0,0,0,0];const ze=c(p,Ve,w(x)),We=f(p,ze,Ve,w(x)),De=!me||Te===Uw?Math.max(1,_e):1,Fe=!me||Te===np?Math.max(1,_e):1;return[Math.max(0,ze-De),Math.max(0,Math.min(Ee-1,We+Fe)),ze,We]}),$=A(()=>i(p,w(x))),V=A(()=>o(p,w(x))),F=A(()=>{var ne;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:ut(p.height)?`${p.height}px`:p.height,width:ut(p.width)?`${p.width}px`:p.width},(ne=p.style)!=null?ne:{}]}),L=A(()=>{const ne=`${w(V)}px`;return{height:`${w($)}px`,pointerEvents:w(M).isScrolling?"none":void 0,width:ne}}),N=()=>{const{totalColumn:ne,totalRow:Ee}=p;if(ne>0&&Ee>0){const[We,De,Fe,at]=w(O),[yt,Be,Je,se]=w(B);g(zw,{columnCacheStart:We,columnCacheEnd:De,rowCacheStart:yt,rowCacheEnd:Be,columnVisibleStart:Fe,columnVisibleEnd:at,rowVisibleStart:Je,rowVisibleEnd:se})}const{scrollLeft:_e,scrollTop:me,updateRequested:Te,xAxisScrollDir:Ve,yAxisScrollDir:ze}=w(M);g(Gw,{xAxisScrollDir:Ve,scrollLeft:_e,yAxisScrollDir:ze,scrollTop:me,updateRequested:Te})},H=ne=>{const{clientHeight:Ee,clientWidth:_e,scrollHeight:me,scrollLeft:Te,scrollTop:Ve,scrollWidth:ze}=ne.currentTarget,We=w(M);if(We.scrollTop===Ve&&We.scrollLeft===Te)return;let De=Te;if(gP(p.direction))switch(Ww()){case Sy:De=-Te;break;case xA:De=ze-_e-Te;break}M.value={...We,isScrolling:!0,scrollLeft:De,scrollTop:Math.max(0,Math.min(Ve,me-Ee)),updateRequested:!0,xAxisScrollDir:Jf(We.scrollLeft,De),yAxisScrollDir:Jf(We.scrollTop,Ve)},Ze(()=>Z()),ee(),N()},K=(ne,Ee)=>{const _e=w(k),me=($.value-_e)/Ee*ne;be({scrollTop:Math.min($.value-_e,me)})},Q=(ne,Ee)=>{const _e=w(R),me=(V.value-_e)/Ee*ne;be({scrollLeft:Math.min(V.value-_e,me)})},{onWheel:ie}=DVe({atXStartEdge:A(()=>M.value.scrollLeft<=0),atXEndEdge:A(()=>M.value.scrollLeft>=V.value-w(R)),atYStartEdge:A(()=>M.value.scrollTop<=0),atYEndEdge:A(()=>M.value.scrollTop>=$.value-w(k))},(ne,Ee)=>{var _e,me,Te,Ve;(me=(_e=C.value)==null?void 0:_e.onMouseUp)==null||me.call(_e),(Ve=(Te=T.value)==null?void 0:Te.onMouseUp)==null||Ve.call(Te);const ze=w(R),We=w(k);be({scrollLeft:Math.min(M.value.scrollLeft+ne,V.value-ze),scrollTop:Math.min(M.value.scrollTop+Ee,$.value-We)})}),be=({scrollLeft:ne=M.value.scrollLeft,scrollTop:Ee=M.value.scrollTop})=>{ne=Math.max(ne,0),Ee=Math.max(Ee,0);const _e=w(M);Ee===_e.scrollTop&&ne===_e.scrollLeft||(M.value={..._e,xAxisScrollDir:Jf(_e.scrollLeft,ne),yAxisScrollDir:Jf(_e.scrollTop,Ee),scrollLeft:ne,scrollTop:Ee,updateRequested:!0},Ze(()=>Z()),ee(),N())},le=(ne=0,Ee=0,_e=Zi)=>{const me=w(M);Ee=Math.max(0,Math.min(Ee,p.totalColumn-1)),ne=Math.max(0,Math.min(ne,p.totalRow-1));const Te=v9(S.namespace.value),Ve=w(x),ze=i(p,Ve),We=o(p,Ve);be({scrollLeft:s(p,Ee,_e,me.scrollLeft,Ve,We>p.width?Te:0),scrollTop:l(p,ne,_e,me.scrollTop,Ve,ze>p.height?Te:0)})},J=(ne,Ee)=>{const{columnWidth:_e,direction:me,rowHeight:Te}=p,Ve=E.value(e&&_e,e&&Te,e&&me),ze=`${ne},${Ee}`;if(Gt(Ve,ze))return Ve[ze];{const[,We]=n(p,Ee,w(x)),De=w(x),Fe=gP(me),[at,yt]=u(p,ne,De),[Be]=n(p,Ee,De);return Ve[ze]={position:"absolute",left:Fe?void 0:`${We}px`,right:Fe?`${We}px`:void 0,top:`${yt}px`,height:`${at}px`,width:`${Be}px`},Ve[ze]}},Z=()=>{M.value.isScrolling=!1,Ze(()=>{E.value(-1,null,null)})};St(()=>{if(!Ht)return;const{initScrollLeft:ne,initScrollTop:Ee}=p,_e=w(_);_e&&(ut(ne)&&(_e.scrollLeft=ne),ut(Ee)&&(_e.scrollTop=Ee)),N()});const ee=()=>{const{direction:ne}=p,{scrollLeft:Ee,scrollTop:_e,updateRequested:me}=w(M),Te=w(_);if(me&&Te){if(ne===wp)switch(Ww()){case Sy:{Te.scrollLeft=-Ee;break}case _A:{Te.scrollLeft=Ee;break}default:{const{clientWidth:Ve,scrollWidth:ze}=Te;Te.scrollLeft=ze-Ve-Ee;break}}else Te.scrollLeft=Math.max(0,Ee);Te.scrollTop=Math.max(0,_e)}},{resetAfterColumnIndex:ce,resetAfterRowIndex:ue,resetAfter:Y}=b.proxy;y({windowRef:_,innerRef:D,getItemStyleCache:E,scrollTo:be,scrollToItem:le,states:M,resetAfterColumnIndex:ce,resetAfterRowIndex:ue,resetAfter:Y});const te=()=>{const{scrollbarAlwaysOn:ne,scrollbarStartGap:Ee,scrollbarEndGap:_e,totalColumn:me,totalRow:Te}=p,Ve=w(R),ze=w(k),We=w(V),De=w($),{scrollLeft:Fe,scrollTop:at}=w(M),yt=rt(ik,{ref:C,alwaysOn:ne,startGap:Ee,endGap:_e,class:S.e("horizontal"),clientSize:Ve,layout:"horizontal",onScroll:Q,ratio:Ve*100/We,scrollFrom:Fe/(We-Ve),total:Te,visible:!0}),Be=rt(ik,{ref:T,alwaysOn:ne,startGap:Ee,endGap:_e,class:S.e("vertical"),clientSize:ze,layout:"vertical",onScroll:K,ratio:ze*100/De,scrollFrom:at/(De-ze),total:me,visible:!0});return{horizontalScrollbar:yt,verticalScrollbar:Be}},oe=()=>{var ne;const[Ee,_e]=w(O),[me,Te]=w(B),{data:Ve,totalColumn:ze,totalRow:We,useIsScrolling:De,itemKey:Fe}=p,at=[];if(We>0&&ze>0)for(let yt=me;yt<=Te;yt++)for(let Be=Ee;Be<=_e;Be++)at.push((ne=m.default)==null?void 0:ne.call(m,{columnIndex:Be,data:Ve,key:Fe({columnIndex:Be,data:Ve,rowIndex:yt}),isScrolling:De?w(M).isScrolling:void 0,style:J(yt,Be),rowIndex:yt}));return at},Se=()=>{const ne=Dt(p.innerElement),Ee=oe();return[rt(ne,{style:w(L),ref:D},vt(ne)?Ee:{default:()=>Ee})]};return()=>{const ne=Dt(p.containerElement),{horizontalScrollbar:Ee,verticalScrollbar:_e}=te(),me=Se();return rt("div",{key:0,class:S.e("wrapper"),role:p.role},[rt(ne,{class:p.className,style:w(F),onScroll:H,onWheel:ie,ref:_},vt(ne)?me:{default:()=>me}),Ee,_e])}}}),kVe=mY({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=Zi:a=Ns),a){case yy:return u;case my:return c;case Ns:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case Zi:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getRowOffset:({rowHeight:t,height:e,totalRow:n},r,a,i,o,s)=>{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===oC&&(i>=c-e&&i<=u+e?a=Zi:a=Ns),a){case yy:return u;case my:return c;case Ns:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(e/2)?0:f>l+Math.floor(e/2)?l:f}case Zi:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getColumnStartIndexForOffset:({columnWidth:t,totalColumn:e},n)=>Math.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:Kw,min:SY,floor:bY}=Math,RVe={column:"columnWidth",row:"rowHeight"},ok={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Sl=(t,e,n,r)=>{const[a,i,o]=[n[r],t[RVe[r]],n[ok[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[ok[r]]=e}return a[e]},wY=(t,e,n,r,a,i)=>{for(;n<=r;){const o=n+bY((r-n)/2),s=Sl(t,o,e,i).offset;if(s===a)return o;s<a?n=o+1:r=o-1}return Kw(0,n-1)},LVe=(t,e,n,r,a)=>{const i=a==="column"?t.totalColumn:t.totalRow;let o=1;for(;n<i&&Sl(t,n,e,a).offset<r;)n+=o,o*=2;return wY(t,e,bY(n/2),SY(n,i-1),r,a)},mP=(t,e,n,r)=>{const[a,i]=[e[r],e[ok[r]]];return(i>0?a[i].offset:0)>=n?wY(t,e,0,i,n,r):LVe(t,e,Kw(0,i),n,r)},_Y=({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},xY=({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},OVe={column:xY,row:_Y},SP=(t,e,n,r,a,i,o)=>{const[s,l]=[i==="row"?t.height:t.width,OVe[i]],u=Sl(t,e,a,i),c=l(t,a),f=Kw(0,SY(c-s,u.offset)),d=Kw(0,u.offset-s+o+u.size);switch(n===oC&&(r>=d-s&&r<=f+s?n=Zi:n=Ns),n){case yy:return f;case my:return d;case Ns:return Math.round(d+(f-d)/2);case Zi:default:return r>=d&&r<=f?r:d>f||r<d?d:f}},AVe=mY({name:"ElDynamicSizeGrid",getColumnPosition:(t,e,n)=>{const r=Sl(t,e,n,"column");return[r.size,r.offset]},getRowPosition:(t,e,n)=>{const r=Sl(t,e,n,"row");return[r.size,r.offset]},getColumnOffset:(t,e,n,r,a,i)=>SP(t,e,n,r,a,"column",i),getRowOffset:(t,e,n,r,a,i)=>SP(t,e,n,r,a,"row",i),getColumnStartIndexForOffset:(t,e,n)=>mP(t,n,e,"column"),getColumnStopIndexForStartIndex:(t,e,n,r)=>{const a=Sl(t,e,r,"column"),i=n+t.width;let o=a.offset+a.size,s=e;for(;s<t.totalColumn-1&&o<i;)s++,o+=Sl(t,e,r,"column").size;return s},getEstimatedTotalHeight:_Y,getEstimatedTotalWidth:xY,getRowStartIndexForOffset:(t,e,n)=>mP(t,n,e,"row"),getRowStopIndexForStartIndex:(t,e,n,r)=>{const{totalRow:a,height:i}=t,o=Sl(t,e,r,"row"),s=n+i;let l=o.size+o.offset,u=e;for(;u<a-1&&l<s;)u++,l+=Sl(t,u,r,"row").size;return u},injectToInstance:(t,e)=>{const n=({columnIndex:i,rowIndex:o},s)=>{var l,u;s=kr(s)?!0:s,ut(i)&&(e.value.lastVisitedColumnIndex=Math.min(e.value.lastVisitedColumnIndex,i-1)),ut(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=JD,estimatedRowHeight:e=JD})=>({column:{},estimatedColumnWidth:t,estimatedRowHeight:e,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:t,rowHeight:e})=>{}}),NVe=ae({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:ke("select")}}});function VVe(t,e,n,r,a,i){return t.item.isTitle?(I(),X("div",{key:0,class:z(t.ns.be("group","title")),style:et([t.style,{lineHeight:`${t.height}px`}])},Le(t.item.label),7)):(I(),X("div",{key:1,class:z(t.ns.be("group","split")),style:et(t.style)},[P("span",{class:z(t.ns.be("group","split-dash")),style:et({top:`${t.height/2}px`})},null,6)],6))}var BVe=Ae(NVe,[["render",VVe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function $Ve(t,{emit:e}){return{hoverItem:()=>{t.disabled||e("hover",t.index)},selectOptionClick:()=>{t.disabled||e("select",t.item,t.index)}}}const IVe={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:kc},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:Hr.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:Kx},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:ge(String),values:Yd,default:"bottom-start"}},PVe={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},FVe=ae({props:PVe,emits:["select","hover"],setup(t,{emit:e}){const n=ke("select"),{hoverItem:r,selectOptionClick:a}=$Ve(t,{emit:e});return{ns:n,hoverItem:r,selectOptionClick:a}}}),zVe=["aria-selected"];function GVe(t,e,n,r,a,i){return I(),X("li",{"aria-selected":t.selected,style:et(t.style),class:z([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]=ot((...o)=>t.selectOptionClick&&t.selectOptionClick(...o),["stop"]))},[Ce(t.$slots,"default",{item:t.item,index:t.index,disabled:t.disabled},()=>[P("span",null,Le(t.item.label),1)])],46,zVe)}var UVe=Ae(FVe,[["render",GVe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const CY=Symbol("ElSelectV2Injection");var HVe=ae({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup(t,{slots:e,expose:n}){const r=Ye(CY),a=ke("select"),i=G([]),o=G(),s=A(()=>t.data.length);Me(()=>s.value,()=>{var T,D;(D=(T=r.popper.value).updatePopper)==null||D.call(T)});const l=A(()=>kr(r.props.estimatedOptionHeight)),u=A(()=>l.value?{itemSize:r.props.itemHeight}:{estimatedSize:r.props.estimatedOptionHeight,itemSize:T=>i.value[T]}),c=(T=[],D)=>{const{props:{valueKey:M}}=r;return Lt(D)?T&&T.some(E=>Fn(E,M)===Fn(D,M)):T.includes(D)},f=(T,D)=>{if(Lt(D)){const{valueKey:M}=r.props;return Fn(T,M)===Fn(D,M)}else return T===D},d=(T,D)=>{const{valueKey:M}=r.props;return r.props.multiple?c(T,Fn(D,M)):f(T,Fn(D,M))},h=(T,D)=>{const{disabled:M,multiple:E,multipleLimit:k}=r.props;return M||!D&&(E?k>0&&T.length>=k:!1)},v=T=>t.hoveringIndex===T;n({listRef:o,isSized:l,isItemDisabled:h,isItemHovering:v,isItemSelected:d,scrollToItem:T=>{const D=o.value;D&&D.scrollToItem(T)},resetScrollTop:()=>{const T=o.value;T&&T.resetScrollTop()}});const y=T=>{const{index:D,data:M,style:E}=T,k=w(l),{itemSize:R,estimatedSize:O}=w(u),{modelValue:B}=r.props,{onSelect:$,onHover:V}=r,F=M[D];if(F.type==="Group")return U(BVe,{item:F,style:E,height:k?R:O},null);const L=d(B,F),N=h(B,L),H=v(D);return U(UVe,Mt(T,{selected:L,disabled:F.disabled||N,created:!!F.created,hovering:H,item:F,onSelect:$,onHover:V}),{default:K=>{var Q;return((Q=e.default)==null?void 0:Q.call(e,K))||U("span",null,[F.label])}})},{onKeyboardNavigate:m,onKeyboardSelect:S}=r,b=()=>{m("forward")},x=()=>{m("backward")},_=()=>{r.expanded=!1},C=T=>{const{code:D}=T,{tab:M,esc:E,down:k,up:R,enter:O}=nt;switch(D!==M&&(T.preventDefault(),T.stopPropagation()),D){case M:case E:{_();break}case k:{b();break}case R:{x();break}case O:{S();break}}};return()=>{var T;const{data:D,width:M}=t,{height:E,multiple:k,scrollbarAlwaysOn:R}=r.props;if(D.length===0)return U("div",{class:a.b("dropdown"),style:{width:`${M}px`}},[(T=e.empty)==null?void 0:T.call(e)]);const O=w(l)?gY:MVe;return U("div",{class:[a.b("dropdown"),a.is("multiple",k)]},[U(O,Mt({ref:o},w(u),{className:a.be("dropdown","list"),scrollbarAlwaysOn:R,data:D,height:E,width:M,total:D.length,onKeydown:C}),{default:B=>U(y,B,null)})])}}});function WVe(t,e){const n=G(0),r=G(null),a=A(()=>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 KVe=t=>{const e=[];return t.forEach(n=>{Ke(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 jVe(t){const e=G(!1);return{handleCompositionStart:()=>{e.value=!0},handleCompositionUpdate:i=>{const o=i.target.value,s=o[o.length-1]||"";e.value=!jx(s)},handleCompositionEnd:i=>{e.value&&(e.value=!1,ft(t)&&t(i))}}}const bP="",wP=11,YVe={larget:51,default:42,small:33},XVe=(t,e)=>{const{t:n}=jt(),r=ke("select-v2"),a=ke("input"),{form:i,formItem:o}=Qa(),s=Zt({inputValue:bP,displayInputValue:bP,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=G(-1),u=G(-1),c=G(null),f=G(null),d=G(null),h=G(null),v=G(null),p=G(null),g=G(null),y=G(!1),m=A(()=>t.disabled||(i==null?void 0:i.disabled)),S=A(()=>{const ye=k.value.length*34;return ye>t.height?t.height:ye}),b=A(()=>!mr(t.modelValue)),x=A(()=>{const ye=t.multiple?Array.isArray(t.modelValue)&&t.modelValue.length>0:b.value;return t.clearable&&!m.value&&s.comboBoxHovering&&ye}),_=A(()=>t.remote&&t.filterable?"":Ux),C=A(()=>_.value&&r.is("reverse",y.value)),T=A(()=>(o==null?void 0:o.validateState)||""),D=A(()=>IO[T.value]),M=A(()=>t.remote?300:0),E=A(()=>{const ye=k.value;return t.loading?t.loadingText||n("el.select.loading"):t.remote&&s.inputValue===""&&ye.length===0?!1:t.filterable&&s.inputValue&&ye.length>0?t.noMatchText||n("el.select.noMatch"):ye.length===0?t.noDataText||n("el.select.noData"):null}),k=A(()=>{const ye=He=>{const Ot=s.inputValue,Xt=new RegExp(h9(Ot),"i");return Ot?Xt.test(He.label||""):!0};return t.loading?[]:KVe(t.options.concat(s.createdOptions).map(He=>{if(Ke(He.options)){const Ot=He.options.filter(ye);if(Ot.length>0)return{...He,options:Ot}}else if(t.remote||ye(He))return He;return null}).filter(He=>He!==null))}),R=A(()=>{const ye=new Map;return k.value.forEach((He,Ot)=>{ye.set(Ve(He),{option:He,index:Ot})}),ye}),O=A(()=>k.value.every(ye=>ye.disabled)),B=_r(),$=A(()=>B.value==="small"?"small":"default"),V=A(()=>{const ye=p.value,He=$.value||"default",Ot=ye?Number.parseInt(getComputedStyle(ye).paddingLeft):0,Xt=ye?Number.parseInt(getComputedStyle(ye).paddingRight):0;return s.selectWidth-Xt-Ot-YVe[He]}),F=()=>{var ye;u.value=((ye=v.value)==null?void 0:ye.offsetWidth)||200},L=A(()=>({width:`${s.calculatedWidth===0?wP:Math.ceil(s.calculatedWidth)+wP}px`})),N=A(()=>Ke(t.modelValue)?t.modelValue.length===0&&!s.displayInputValue:t.filterable?s.displayInputValue.length===0:!0),H=A(()=>{const ye=t.placeholder||n("el.select.placeholder");return t.multiple||mr(t.modelValue)?ye:s.selectedLabel}),K=A(()=>{var ye,He;return(He=(ye=h.value)==null?void 0:ye.popperRef)==null?void 0:He.contentRef}),Q=A(()=>{if(t.multiple){const ye=t.modelValue.length;if(t.modelValue.length>0&&R.value.has(t.modelValue[ye-1])){const{index:He}=R.value.get(t.modelValue[ye-1]);return He}}else if(t.modelValue&&R.value.has(t.modelValue)){const{index:ye}=R.value.get(t.modelValue);return ye}return-1}),ie=A({get(){return y.value&&E.value!==!1},set(ye){y.value=ye}}),be=A(()=>s.cachedOptions.slice(0,t.maxCollapseTags)),le=A(()=>s.cachedOptions.slice(t.maxCollapseTags)),{createNewOption:J,removeNewOption:Z,selectNewOption:ee,clearAllNewOption:ce}=WVe(t,s),{handleCompositionStart:ue,handleCompositionUpdate:Y,handleCompositionEnd:te}=jVe(ye=>Cr(ye)),oe=()=>{var ye,He,Ot;(He=(ye=f.value)==null?void 0:ye.focus)==null||He.call(ye),(Ot=h.value)==null||Ot.updatePopper()},Se=()=>{if(!t.automaticDropdown&&!m.value)return s.isComposing&&(s.softFocus=!0),Ze(()=>{var ye,He;y.value=!y.value,(He=(ye=f.value)==null?void 0:ye.focus)==null||He.call(ye)})},fe=()=>(t.filterable&&s.inputValue!==s.selectedLabel&&(s.query=s.selectedLabel),Ee(s.inputValue),Ze(()=>{J(s.inputValue)})),ne=ja(fe,M.value),Ee=ye=>{s.previousQuery!==ye&&(s.previousQuery=ye,t.filterable&&ft(t.filterMethod)?t.filterMethod(ye):t.filterable&&t.remote&&ft(t.remoteMethod)&&t.remoteMethod(ye))},_e=ye=>{di(t.modelValue,ye)||e(Nn,ye)},me=ye=>{e(Et,ye),_e(ye),s.previousValue=ye==null?void 0:ye.toString()},Te=(ye=[],He)=>{if(!Lt(He))return ye.indexOf(He);const Ot=t.valueKey;let Xt=-1;return ye.some((Tr,Er)=>Fn(Tr,Ot)===Fn(He,Ot)?(Xt=Er,!0):!1),Xt},Ve=ye=>Lt(ye)?Fn(ye,t.valueKey):ye,ze=ye=>Lt(ye)?ye.label:ye,We=()=>Ze(()=>{var ye,He;if(!f.value)return;const Ot=p.value;v.value.height=Ot.offsetHeight,y.value&&E.value!==!1&&((He=(ye=h.value)==null?void 0:ye.updatePopper)==null||He.call(ye))}),De=()=>{var ye,He;if(Fe(),F(),(He=(ye=h.value)==null?void 0:ye.updatePopper)==null||He.call(ye),t.multiple)return We()},Fe=()=>{const ye=p.value;ye&&(s.selectWidth=ye.getBoundingClientRect().width)},at=(ye,He,Ot=!0)=>{var Xt,Tr;if(t.multiple){let Er=t.modelValue.slice();const ha=Te(Er,Ve(ye));ha>-1?(Er=[...Er.slice(0,ha),...Er.slice(ha+1)],s.cachedOptions.splice(ha,1),Z(ye)):(t.multipleLimit<=0||Er.length<t.multipleLimit)&&(Er=[...Er,Ve(ye)],s.cachedOptions.push(ye),ee(ye),pt(He)),me(Er),ye.created&&(s.query="",Ee(""),s.inputLength=20),t.filterable&&!t.reserveKeyword&&((Tr=(Xt=f.value).focus)==null||Tr.call(Xt),Re("")),t.filterable&&(s.calculatedWidth=g.value.getBoundingClientRect().width),We(),lr()}else l.value=He,s.selectedLabel=ye.label,me(Ve(ye)),y.value=!1,s.isComposing=!1,s.isSilentBlur=Ot,ee(ye),ye.created||ce(),pt(He)},yt=(ye,He)=>{const{valueKey:Ot}=t,Xt=t.modelValue.indexOf(Fn(He,Ot));if(Xt>-1&&!m.value){const Tr=[...t.modelValue.slice(0,Xt),...t.modelValue.slice(Xt+1)];return s.cachedOptions.splice(Xt,1),me(Tr),e("remove-tag",Fn(He,Ot)),s.softFocus=!0,Z(He),Ze(oe)}ye.stopPropagation()},Be=ye=>{const He=s.isComposing;s.isComposing=!0,s.softFocus?s.softFocus=!1:He||e("focus",ye)},Je=ye=>(s.softFocus=!1,Ze(()=>{var He,Ot;(Ot=(He=f.value)==null?void 0:He.blur)==null||Ot.call(He),g.value&&(s.calculatedWidth=g.value.getBoundingClientRect().width),s.isSilentBlur?s.isSilentBlur=!1:s.isComposing&&e("blur",ye),s.isComposing=!1})),se=()=>{s.displayInputValue.length>0?Re(""):y.value=!1},he=ye=>{if(s.displayInputValue.length===0){ye.preventDefault();const He=t.modelValue.slice();He.pop(),Z(s.cachedOptions.pop()),me(He)}},pe=()=>{let ye;return Ke(t.modelValue)?ye=[]:ye=void 0,s.softFocus=!0,t.multiple?s.cachedOptions=[]:s.selectedLabel="",y.value=!1,me(ye),e("clear"),ce(),Ze(oe)},Re=ye=>{s.displayInputValue=ye,s.inputValue=ye},re=(ye,He=void 0)=>{const Ot=k.value;if(!["forward","backward"].includes(ye)||m.value||Ot.length<=0||O.value)return;if(!y.value)return Se();He===void 0&&(He=s.hoveringIndex);let Xt=-1;ye==="forward"?(Xt=He+1,Xt>=Ot.length&&(Xt=0)):ye==="backward"&&(Xt=He-1,(Xt<0||Xt>=Ot.length)&&(Xt=Ot.length-1));const Tr=Ot[Xt];if(Tr.disabled||Tr.type==="Group")return re(ye,Xt);pt(Xt),xe(Xt)},Ue=()=>{if(y.value)~s.hoveringIndex&&k.value[s.hoveringIndex]&&at(k.value[s.hoveringIndex],s.hoveringIndex,!1);else return Se()},pt=ye=>{s.hoveringIndex=ye},Bt=()=>{s.hoveringIndex=-1},lr=()=>{var ye;const He=f.value;He&&((ye=He.focus)==null||ye.call(He))},Cr=ye=>{const He=ye.target.value;if(Re(He),s.displayInputValue.length>0&&!y.value&&(y.value=!0),s.calculatedWidth=g.value.getBoundingClientRect().width,t.multiple&&We(),t.remote)ne();else return fe()},ti=()=>(y.value=!1,Je()),Jr=()=>(s.inputValue=s.displayInputValue,Ze(()=>{~Q.value&&(pt(Q.value),xe(s.hoveringIndex))})),xe=ye=>{d.value.scrollToItem(ye)},Ge=()=>{if(Bt(),t.multiple)if(t.modelValue.length>0){let ye=!1;s.cachedOptions.length=0,s.previousValue=t.modelValue.toString();for(const He of t.modelValue)if(R.value.has(He)){const{index:Ot,option:Xt}=R.value.get(He);s.cachedOptions.push(Xt),ye||pt(Ot),ye=!0}}else s.cachedOptions=[],s.previousValue=void 0;else if(b.value){s.previousValue=t.modelValue;const ye=k.value,He=ye.findIndex(Ot=>Ve(Ot)===Ve(t.modelValue));~He?(s.selectedLabel=ye[He].label,pt(He)):s.selectedLabel=`${t.modelValue}`}else s.selectedLabel="",s.previousValue=void 0;ce(),F()};return Me(y,ye=>{var He,Ot;e("visible-change",ye),ye?(Ot=(He=h.value).update)==null||Ot.call(He):(s.displayInputValue="",s.previousQuery=null,J(""))}),Me(()=>t.modelValue,(ye,He)=>{var Ot;(!ye||ye.toString()!==s.previousValue)&&Ge(),!di(ye,He)&&t.validateEvent&&((Ot=o==null?void 0:o.validate)==null||Ot.call(o,"change").catch(Xt=>void 0))},{deep:!0}),Me(()=>t.options,()=>{const ye=f.value;(!ye||ye&&document.activeElement!==ye)&&Ge()},{deep:!0}),Me(k,()=>Ze(d.value.resetScrollTop)),Me(()=>ie.value,ye=>{ye||Bt()}),St(()=>{Ge()}),xa(v,De),{collapseTagSize:$,currentPlaceholder:H,expanded:y,emptyText:E,popupHeight:S,debounce:M,filteredOptions:k,iconComponent:_,iconReverse:C,inputWrapperStyle:L,popperSize:u,dropdownMenuVisible:ie,hasModelValue:b,shouldShowPlaceholder:N,selectDisabled:m,selectSize:B,showClearBtn:x,states:s,tagMaxWidth:V,nsSelectV2:r,nsInput:a,calculatorRef:g,controlRef:c,inputRef:f,menuRef:d,popper:h,selectRef:v,selectionRef:p,popperRef:K,validateState:T,validateIcon:D,showTagList:be,collapseTagList:le,debouncedOnInputChange:ne,deleteTag:yt,getLabel:ze,getValueKey:Ve,handleBlur:Je,handleClear:pe,handleClickOutside:ti,handleDel:he,handleEsc:se,handleFocus:Be,handleMenuEnter:Jr,handleResize:De,toggleMenu:Se,scrollTo:xe,onInput:Cr,onKeyboardNavigate:re,onKeyboardSelect:Ue,onSelect:at,onHover:pt,onUpdateInputValue:Re,handleCompositionStart:ue,handleCompositionEnd:te,handleCompositionUpdate:Y}},qVe=ae({name:"ElSelectV2",components:{ElSelectMenu:HVe,ElTag:vy,ElTooltip:Ya,ElIcon:qe},directives:{ClickOutside:pc,ModelText:uO},props:IVe,emits:[Et,Nn,"remove-tag","clear","visible-change","focus","blur"],setup(t,{emit:e}){const n=A(()=>{const{modelValue:a,multiple:i}=t,o=i?[]:void 0;return Ke(a)?i?a:o:i?o:a}),r=XVe(Zt({...$r(t),modelValue:n}),e);return At(CY,{props:Zt({...$r(t),height:r.popupHeight,modelValue:n}),popper:r.popper,onSelect:r.onSelect,onHover:r.onHover,onKeyboardNavigate:r.onKeyboardNavigate,onKeyboardSelect:r.onKeyboardSelect}),{...r,modelValue:n}}}),ZVe={key:0},QVe=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],JVe=["textContent"],eBe=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],tBe=["textContent"];function nBe(t,e,n,r,a,i){const o=Pe("el-tag"),s=Pe("el-tooltip"),l=Pe("el-icon"),u=Pe("el-select-menu"),c=Vp("model-text"),f=Vp("click-outside");return ct((I(),X("div",{ref:"selectRef",class:z([t.nsSelectV2.b(),t.nsSelectV2.m(t.selectSize)]),onClick:e[24]||(e[24]=ot((...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)},[U(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:q(()=>[P("div",{ref:"selectionRef",class:z([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?(I(),X("div",ZVe,[Ce(t.$slots,"prefix")])):de("v-if",!0),t.multiple?(I(),X("div",{key:1,class:z(t.nsSelectV2.e("selection"))},[t.collapseTags&&t.modelValue.length>0?(I(),X(Qe,{key:0},[(I(!0),X(Qe,null,Vt(t.showTagList,d=>(I(),X("div",{key:t.getValueKey(d),class:z(t.nsSelectV2.e("selected-item"))},[U(o,{closable:!t.selectDisabled&&!(d!=null&&d.disable),size:t.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>t.deleteTag(h,d)},{default:q(()=>[P("span",{class:z(t.nsSelectV2.e("tags-text")),style:et({maxWidth:`${t.tagMaxWidth}px`})},Le(d==null?void 0:d.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),P("div",{class:z(t.nsSelectV2.e("selected-item"))},[t.modelValue.length>t.maxCollapseTags?(I(),ve(o,{key:0,closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""},{default:q(()=>[t.collapseTagsTooltip?(I(),ve(s,{key:0,disabled:t.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:!1},{default:q(()=>[P("span",{class:z(t.nsSelectV2.e("tags-text")),style:et({maxWidth:`${t.tagMaxWidth}px`})},"+ "+Le(t.modelValue.length-t.maxCollapseTags),7)]),content:q(()=>[P("div",{class:z(t.nsSelectV2.e("selection"))},[(I(!0),X(Qe,null,Vt(t.collapseTagList,d=>(I(),X("div",{key:t.getValueKey(d),class:z(t.nsSelectV2.e("selected-item"))},[U(o,{closable:!t.selectDisabled&&!d.disabled,size:t.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:h=>t.deleteTag(h,d)},{default:q(()=>[P("span",{class:z(t.nsSelectV2.e("tags-text")),style:et({maxWidth:`${t.tagMaxWidth}px`})},Le(t.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(I(),X("span",{key:1,class:z(t.nsSelectV2.e("tags-text")),style:et({maxWidth:`${t.tagMaxWidth}px`})},"+ "+Le(t.modelValue.length-t.maxCollapseTags),7))]),_:1},8,["size"])):de("v-if",!0)],2)],64)):(I(!0),X(Qe,{key:1},Vt(t.states.cachedOptions,d=>(I(),X("div",{key:t.getValueKey(d),class:z(t.nsSelectV2.e("selected-item"))},[U(o,{closable:!t.selectDisabled&&!d.disabled,size:t.collapseTagSize,type:"info","disable-transitions":"",onClose:h=>t.deleteTag(h,d)},{default:q(()=>[P("span",{class:z(t.nsSelectV2.e("tags-text")),style:et({maxWidth:`${t.tagMaxWidth}px`})},Le(t.getLabel(d)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),P("div",{class:z([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-wrapper")]),style:et(t.inputWrapperStyle)},[ct(P("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:z([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]=Kt(ot(d=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),e[8]||(e[8]=Kt(ot(d=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),e[9]||(e[9]=Kt(ot((...d)=>t.onKeyboardSelect&&t.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),e[10]||(e[10]=Kt(ot((...d)=>t.handleEsc&&t.handleEsc(...d),["stop","prevent"]),["esc"])),e[11]||(e[11]=Kt(ot((...d)=>t.handleDel&&t.handleDel(...d),["stop"]),["delete"]))]},null,42,QVe),[[c,t.states.displayInputValue]]),t.filterable?(I(),X("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:z(t.nsSelectV2.e("input-calculator")),textContent:Le(t.states.displayInputValue)},null,10,JVe)):de("v-if",!0)],6)],2)):(I(),X(Qe,{key:2},[P("div",{class:z([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-wrapper")])},[ct(P("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:z(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]=Kt(ot(d=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),e[19]||(e[19]=Kt(ot(d=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),e[20]||(e[20]=Kt(ot((...d)=>t.onKeyboardSelect&&t.onKeyboardSelect(...d),["stop","prevent"]),["enter"])),e[21]||(e[21]=Kt(ot((...d)=>t.handleEsc&&t.handleEsc(...d),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":e[22]||(e[22]=(...d)=>t.onUpdateInputValue&&t.onUpdateInputValue(...d))},null,42,eBe),[[c,t.states.displayInputValue]])],2),t.filterable?(I(),X("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:z([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-calculator")]),textContent:Le(t.states.displayInputValue)},null,10,tBe)):de("v-if",!0)],64)),t.shouldShowPlaceholder?(I(),X("span",{key:3,class:z([t.nsSelectV2.e("placeholder"),t.nsSelectV2.is("transparent",t.multiple?t.modelValue.length===0:!t.hasModelValue)])},Le(t.currentPlaceholder),3)):de("v-if",!0),P("span",{class:z(t.nsSelectV2.e("suffix"))},[t.iconComponent?ct((I(),ve(l,{key:0,class:z([t.nsSelectV2.e("caret"),t.nsInput.e("icon"),t.iconReverse])},{default:q(()=>[(I(),ve(Dt(t.iconComponent)))]),_:1},8,["class"])),[[Nt,!t.showClearBtn]]):de("v-if",!0),t.showClearBtn&&t.clearIcon?(I(),ve(l,{key:1,class:z([t.nsSelectV2.e("caret"),t.nsInput.e("icon")]),onClick:ot(t.handleClear,["prevent","stop"])},{default:q(()=>[(I(),ve(Dt(t.clearIcon)))]),_:1},8,["class","onClick"])):de("v-if",!0),t.validateState&&t.validateIcon?(I(),ve(l,{key:2,class:z([t.nsInput.e("icon"),t.nsInput.e("validateIcon")])},{default:q(()=>[(I(),ve(Dt(t.validateIcon)))]),_:1},8,["class"])):de("v-if",!0)],2)],2)]),content:q(()=>[U(u,{ref:"menuRef",data:t.filteredOptions,width:t.popperSize,"hovering-index":t.states.hoveringIndex,"scrollbar-always-on":t.scrollbarAlwaysOn},{default:q(d=>[Ce(t.$slots,"default",Po(Dx(d)))]),empty:q(()=>[Ce(t.$slots,"empty",{},()=>[P("p",{class:z(t.nsSelectV2.e("empty"))},Le(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 Pb=Ae(qVe,[["render",nBe],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Pb.install=t=>{t.component(Pb.name,Pb)};const rBe=Pb,aBe=rBe,iBe=Ne({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),oBe=Ne({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),sBe=ae({name:"ElSkeletonItem"}),lBe=ae({...sBe,props:oBe,setup(t){const e=ke("skeleton");return(n,r)=>(I(),X("div",{class:z([w(e).e("item"),w(e).e(n.variant)])},[n.variant==="image"?(I(),ve(w(fSe),{key:0})):de("v-if",!0)],2))}});var jw=Ae(lBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const uBe=ae({name:"ElSkeleton"}),cBe=ae({...uBe,props:iBe,setup(t,{expose:e}){const n=t,r=ke("skeleton"),a=c_e(Kn(n,"loading"),n.throttle);return e({uiLoading:a}),(i,o)=>w(a)?(I(),X("div",Mt({key:0,class:[w(r).b(),w(r).is("animated",i.animated)]},i.$attrs),[(I(!0),X(Qe,null,Vt(i.count,s=>(I(),X(Qe,{key:s},[i.loading?Ce(i.$slots,"template",{key:s},()=>[U(jw,{class:z(w(r).is("first")),variant:"p"},null,8,["class"]),(I(!0),X(Qe,null,Vt(i.rows,l=>(I(),ve(jw,{key:l,class:z([w(r).e("paragraph"),w(r).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):de("v-if",!0)],64))),128))],16)):Ce(i.$slots,"default",Po(Mt({key:1},i.$attrs)))}});var fBe=Ae(cBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const dBe=Tt(fBe,{SkeletonItem:jw}),hBe=Qn(jw),TY=Symbol("sliderContextKey"),pBe=Ne({modelValue:{type:ge([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:sa,inputSize:sa,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:ge(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:ge(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Yd,default:"top"},marks:{type:ge(Object)},validateEvent:{type:Boolean,default:!0}}),zT=t=>ut(t)||Ke(t)&&t.every(ut),vBe={[Et]:zT,[Ga]:zT,[Nn]:zT},gBe=(t,e,n)=>{const r=G();return St(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),$n(window,"resize",n),await Ze(),n()}),{sliderWrapper:r}},yBe=t=>A(()=>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]})):[]),mBe=(t,e,n)=>{const{form:r,formItem:a}=Qa(),i=Cn(),o=G(),s=G(),l={firstButton:o,secondButton:s},u=A(()=>t.disabled||(r==null?void 0:r.disabled)||!1),c=A(()=>Math.min(e.firstValue,e.secondValue)),f=A(()=>Math.max(e.firstValue,e.secondValue)),d=A(()=>t.range?`${100*(f.value-c.value)/(t.max-t.min)}%`:`${100*(e.firstValue-t.min)/(t.max-t.min)}%`),h=A(()=>t.range?`${100*(c.value-t.min)/(t.max-t.min)}%`:"0%"),v=A(()=>t.vertical?{height:t.height}:{}),p=A(()=>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=E=>{const k=t.min+E*(t.max-t.min)/100;if(!t.range)return o;let R;return Math.abs(c.value-k)<Math.abs(f.value-k)?R=e.firstValue<e.secondValue?"firstButton":"secondButton":R=e.firstValue>e.secondValue?"firstButton":"secondButton",l[R]},m=E=>{const k=y(E);return k.value.setPosition(E),k},S=E=>{e.firstValue=E,x(t.range?[c.value,f.value]:E)},b=E=>{e.secondValue=E,t.range&&x([c.value,f.value])},x=E=>{n(Et,E),n(Ga,E)},_=async()=>{await Ze(),n(Nn,t.range?[c.value,f.value]:t.modelValue)},C=E=>{var k,R,O,B,$,V;if(u.value||e.dragging)return;g();let F=0;if(t.vertical){const L=(O=(R=(k=E.touches)==null?void 0:k.item(0))==null?void 0:R.clientY)!=null?O:E.clientY;F=(i.value.getBoundingClientRect().bottom-L)/e.sliderSize*100}else{const L=(V=($=(B=E.touches)==null?void 0:B.item(0))==null?void 0:$.clientX)!=null?V:E.clientX,N=i.value.getBoundingClientRect().left;F=(L-N)/e.sliderSize*100}if(!(F<0||F>100))return m(F)};return{elFormItem:a,slider:i,firstButton:o,secondButton:s,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:v,barStyle:p,resetSize:g,setPosition:m,emitChange:_,onSliderWrapperPrevent:E=>{var k,R;((k=l.firstButton.value)!=null&&k.dragging||(R=l.secondButton.value)!=null&&R.dragging)&&E.preventDefault()},onSliderClick:E=>{C(E)&&_()},onSliderDown:async E=>{const k=C(E);k&&(await Ze(),k.value.onButtonDown(E))},setFirstValue:S,setSecondValue:b}},{left:SBe,down:bBe,right:wBe,up:_Be,home:xBe,end:CBe,pageUp:TBe,pageDown:EBe}=nt,MBe=(t,e,n)=>{const r=G(),a=G(!1),i=A(()=>e.value instanceof Function),o=A(()=>i.value&&e.value(t.modelValue)||t.modelValue),s=ja(()=>{n.value&&(a.value=!0)},50),l=ja(()=>{n.value&&(a.value=!1)},50);return{tooltip:r,tooltipVisible:a,formatValue:o,displayTooltip:s,hideTooltip:l}},DBe=(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}=Ye(TY),{tooltip:v,tooltipVisible:p,formatValue:g,displayTooltip:y,hideTooltip:m}=MBe(t,c,s),S=G(),b=A(()=>`${(t.modelValue-a.value)/(i.value-a.value)*100}%`),x=A(()=>t.vertical?{bottom:b.value}:{left:b.value}),_=()=>{e.hovering=!0,y()},C=()=>{e.hovering=!1,e.dragging||m()},T=K=>{r.value||(K.preventDefault(),F(K),window.addEventListener("mousemove",L),window.addEventListener("touchmove",L),window.addEventListener("mouseup",N),window.addEventListener("touchend",N),window.addEventListener("contextmenu",N),S.value.focus())},D=K=>{r.value||(e.newPosition=Number.parseFloat(b.value)+K/(i.value-a.value)*100,H(e.newPosition),f())},M=()=>{D(-o.value)},E=()=>{D(o.value)},k=()=>{D(-o.value*4)},R=()=>{D(o.value*4)},O=()=>{r.value||(H(0),f())},B=()=>{r.value||(H(100),f())},$=K=>{let Q=!0;[SBe,bBe].includes(K.key)?M():[wBe,_Be].includes(K.key)?E():K.key===xBe?O():K.key===CBe?B():K.key===EBe?k():K.key===TBe?R():Q=!1,Q&&K.preventDefault()},V=K=>{let Q,ie;return K.type.startsWith("touch")?(ie=K.touches[0].clientY,Q=K.touches[0].clientX):(ie=K.clientY,Q=K.clientX),{clientX:Q,clientY:ie}},F=K=>{e.dragging=!0,e.isClick=!0;const{clientX:Q,clientY:ie}=V(K);t.vertical?e.startY=ie:e.startX=Q,e.startPosition=Number.parseFloat(b.value),e.newPosition=e.startPosition},L=K=>{if(e.dragging){e.isClick=!1,y(),d();let Q;const{clientX:ie,clientY:be}=V(K);t.vertical?(e.currentY=be,Q=(e.startY-e.currentY)/u.value*100):(e.currentX=ie,Q=(e.currentX-e.startX)/u.value*100),e.newPosition=e.startPosition+Q,H(e.newPosition)}},N=()=>{e.dragging&&(setTimeout(()=>{e.dragging=!1,e.hovering||m(),e.isClick||H(e.newPosition),f()},0),window.removeEventListener("mousemove",L),window.removeEventListener("touchmove",L),window.removeEventListener("mouseup",N),window.removeEventListener("touchend",N),window.removeEventListener("contextmenu",N))},H=async K=>{if(K===null||Number.isNaN(+K))return;K<0?K=0:K>100&&(K=100);const Q=100/((i.value-a.value)/o.value);let be=Math.round(K/Q)*Q*(i.value-a.value)*.01+a.value;be=Number.parseFloat(be.toFixed(l.value)),be!==t.modelValue&&n(Et,be),!e.dragging&&t.modelValue!==e.oldValue&&(e.oldValue=t.modelValue),await Ze(),e.dragging&&y(),v.value.updatePopper()};return Me(()=>e.dragging,K=>{h(K)}),{disabled:r,button:S,tooltip:v,tooltipVisible:p,showTooltip:s,wrapperStyle:x,formatValue:g,handleMouseEnter:_,handleMouseLeave:C,onButtonDown:T,onKeyDown:$,setPosition:H}},kBe=(t,e,n,r)=>({stops:A(()=>{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}%`}}),RBe=(t,e,n,r,a,i)=>{const o=u=>{a(Et,u),a(Ga,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&&wr("Slider","min should not be greater than max.");const f=t.modelValue;t.range&&Array.isArray(f)?f[1]<t.min?o([t.min,t.min]):f[0]>t.max?o([t.max,t.max]):f[0]<t.min?o([t.min,f[1]]):f[1]>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)&&(f<t.min?o(t.min):f>t.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(),Me(()=>e.dragging,u=>{u||l()}),Me(()=>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}),Me(()=>[t.min,t.max],()=>{l()})},LBe=Ne({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Yd,default:"top"}}),OBe={[Et]:t=>ut(t)},ABe=["tabindex"],NBe=ae({name:"ElSliderButton"}),VBe=ae({...NBe,props:LBe,emits:OBe,setup(t,{expose:e,emit:n}){const r=t,a=ke("slider"),i=Zt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:o,button:s,tooltip:l,showTooltip:u,tooltipVisible:c,wrapperStyle:f,formatValue:d,handleMouseEnter:h,handleMouseLeave:v,onButtonDown:p,onKeyDown:g,setPosition:y}=DBe(r,i,n),{hovering:m,dragging:S}=$r(i);return e({onButtonDown:p,onKeyDown:g,setPosition:y,hovering:m,dragging:S}),(b,x)=>(I(),X("div",{ref_key:"button",ref:s,class:z([w(a).e("button-wrapper"),{hover:w(m),dragging:w(S)}]),style:et(w(f)),tabindex:w(o)?-1:0,onMouseenter:x[0]||(x[0]=(..._)=>w(h)&&w(h)(..._)),onMouseleave:x[1]||(x[1]=(..._)=>w(v)&&w(v)(..._)),onMousedown:x[2]||(x[2]=(..._)=>w(p)&&w(p)(..._)),onTouchstart:x[3]||(x[3]=(..._)=>w(p)&&w(p)(..._)),onFocus:x[4]||(x[4]=(..._)=>w(h)&&w(h)(..._)),onBlur:x[5]||(x[5]=(..._)=>w(v)&&w(v)(..._)),onKeydown:x[6]||(x[6]=(..._)=>w(g)&&w(g)(..._))},[U(w(Ya),{ref_key:"tooltip",ref:l,visible:w(c),placement:b.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":b.tooltipClass,disabled:!w(u),persistent:""},{content:q(()=>[P("span",null,Le(w(d)),1)]),default:q(()=>[P("div",{class:z([w(a).e("button"),{hover:w(m),dragging:w(S)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,ABe))}});var _P=Ae(VBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const BBe=Ne({mark:{type:ge([String,Object]),default:void 0}});var $Be=ae({name:"ElSliderMarker",props:BBe,setup(t){const e=ke("slider"),n=A(()=>vt(t.mark)?t.mark:t.mark.label),r=A(()=>vt(t.mark)?void 0:t.mark.style);return()=>rt("div",{class:e.e("marks-text"),style:r.value},n.value)}});const IBe=["id","role","aria-label","aria-labelledby"],PBe={key:1},FBe=ae({name:"ElSlider"}),zBe=ae({...FBe,props:pBe,emits:vBe,setup(t,{expose:e,emit:n}){const r=t,a=ke("slider"),{t:i}=jt(),o=Zt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:s,slider:l,firstButton:u,secondButton:c,sliderDisabled:f,minValue:d,maxValue:h,runwayStyle:v,barStyle:p,resetSize:g,emitChange:y,onSliderWrapperPrevent:m,onSliderClick:S,onSliderDown:b,setFirstValue:x,setSecondValue:_}=mBe(r,o,n),{stops:C,getStopStyle:T}=kBe(r,o,d,h),{inputId:D,isLabeledByFormItem:M}=Ac(r,{formItemContext:s}),E=_r(),k=A(()=>r.inputSize||E.value),R=A(()=>r.label||i("el.slider.defaultLabel",{min:r.min,max:r.max})),O=A(()=>r.range?r.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):R.value),B=A(()=>r.formatValueText?r.formatValueText(K.value):`${K.value}`),$=A(()=>r.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),V=A(()=>r.formatValueText?r.formatValueText(Q.value):`${Q.value}`),F=A(()=>[a.b(),a.m(E.value),a.is("vertical",r.vertical),{[a.m("with-input")]:r.showInput}]),L=yBe(r);RBe(r,o,d,h,n,s);const N=A(()=>{const le=[r.min,r.max,r.step].map(J=>{const Z=`${J}`.split(".")[1];return Z?Z.length:0});return Math.max.apply(null,le)}),{sliderWrapper:H}=gBe(r,o,g),{firstValue:K,secondValue:Q,sliderSize:ie}=$r(o),be=le=>{o.dragging=le};return At(TY,{...$r(r),sliderSize:ie,disabled:f,precision:N,emitChange:y,resetSize:g,updateDragging:be}),e({onSliderClick:S}),(le,J)=>{var Z,ee;return I(),X("div",{id:le.range?w(D):void 0,ref_key:"sliderWrapper",ref:H,class:z(w(F)),role:le.range?"group":void 0,"aria-label":le.range&&!w(M)?w(R):void 0,"aria-labelledby":le.range&&w(M)?(Z=w(s))==null?void 0:Z.labelId:void 0,onTouchstart:J[2]||(J[2]=(...ce)=>w(m)&&w(m)(...ce)),onTouchmove:J[3]||(J[3]=(...ce)=>w(m)&&w(m)(...ce))},[P("div",{ref_key:"slider",ref:l,class:z([w(a).e("runway"),{"show-input":le.showInput&&!le.range},w(a).is("disabled",w(f))]),style:et(w(v)),onMousedown:J[0]||(J[0]=(...ce)=>w(b)&&w(b)(...ce)),onTouchstart:J[1]||(J[1]=(...ce)=>w(b)&&w(b)(...ce))},[P("div",{class:z(w(a).e("bar")),style:et(w(p))},null,6),U(_P,{id:le.range?void 0:w(D),ref_key:"firstButton",ref:u,"model-value":w(K),vertical:le.vertical,"tooltip-class":le.tooltipClass,placement:le.placement,role:"slider","aria-label":le.range||!w(M)?w(O):void 0,"aria-labelledby":!le.range&&w(M)?(ee=w(s))==null?void 0:ee.labelId:void 0,"aria-valuemin":le.min,"aria-valuemax":le.range?w(Q):le.max,"aria-valuenow":w(K),"aria-valuetext":w(B),"aria-orientation":le.vertical?"vertical":"horizontal","aria-disabled":w(f),"onUpdate:modelValue":w(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"]),le.range?(I(),ve(_P,{key:0,ref_key:"secondButton",ref:c,"model-value":w(Q),vertical:le.vertical,"tooltip-class":le.tooltipClass,placement:le.placement,role:"slider","aria-label":w($),"aria-valuemin":w(K),"aria-valuemax":le.max,"aria-valuenow":w(Q),"aria-valuetext":w(V),"aria-orientation":le.vertical?"vertical":"horizontal","aria-disabled":w(f),"onUpdate:modelValue":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"])):de("v-if",!0),le.showStops?(I(),X("div",PBe,[(I(!0),X(Qe,null,Vt(w(C),(ce,ue)=>(I(),X("div",{key:ue,class:z(w(a).e("stop")),style:et(w(T)(ce))},null,6))),128))])):de("v-if",!0),w(L).length>0?(I(),X(Qe,{key:2},[P("div",null,[(I(!0),X(Qe,null,Vt(w(L),(ce,ue)=>(I(),X("div",{key:ue,style:et(w(T)(ce.position)),class:z([w(a).e("stop"),w(a).e("marks-stop")])},null,6))),128))]),P("div",{class:z(w(a).e("marks"))},[(I(!0),X(Qe,null,Vt(w(L),(ce,ue)=>(I(),ve(w($Be),{key:ue,mark:ce.mark,style:et(w(T)(ce.position))},null,8,["mark","style"]))),128))],2)],64)):de("v-if",!0)],38),le.showInput&&!le.range?(I(),ve(w(Qj),{key:0,ref:"input","model-value":w(K),class:z(w(a).e("input")),step:le.step,disabled:w(f),controls:le.showInputControls,min:le.min,max:le.max,debounce:le.debounce,size:w(k),"onUpdate:modelValue":w(x),onChange:w(y)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):de("v-if",!0)],42,IBe)}}});var GBe=Ae(zBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const UBe=Tt(GBe),HBe=Ne({prefixCls:{type:String}}),xP=ae({name:"ElSpaceItem",props:HBe,setup(t,{slots:e}){const n=ke("space"),r=A(()=>`${t.prefixCls||n.b()}__item`);return()=>rt("div",{class:r.value},Ce(e,"default"))}}),CP={small:8,default:12,large:16};function WBe(t){const e=ke("space"),n=A(()=>[e.b(),e.m(t.direction),t.class]),r=G(0),a=G(0),i=A(()=>{const s=t.wrap||t.fill?{flexWrap:"wrap",marginBottom:`-${a.value}px`}:{},l={alignItems:t.alignment};return[s,l,t.style]}),o=A(()=>{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(Ke(s)){const[f=0,d=0]=s;r.value=f,a.value=d}else{let f;ut(s)?f=s:f=CP[s||"small"]||CP.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 KBe=Ne({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:ge([String,Object,Array]),default:""},style:{type:ge([String,Array,Object]),default:""},alignment:{type:ge(String),default:"center"},prefixCls:{type:String},spacer:{type:ge([Object,String,Number,Array]),default:null,validator:t=>Hn(t)||ut(t)||vt(t)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:tl,validator:t=>ut(t)||Ke(t)&&t.length===2&&t.every(ut)}}),jBe=ae({name:"ElSpace",props:KBe,setup(t,{slots:e}){const{classes:n,containerStyle:r,itemStyle:a}=WBe(t);function i(o,s="",l=[]){const{prefixCls:u}=t;return o.forEach((c,f)=>{xD(c)?Ke(c.children)&&c.children.forEach((d,h)=>{xD(d)&&Ke(d.children)?i(d.children,`${s+h}-`,l):l.push(U(xP,{style:a.value,prefixCls:u,key:`nested-${s+h}`},{default:()=>[d]},Ui.PROPS|Ui.STYLE,["style","prefixCls"]))}):Xbe(c)&&l.push(U(xP,{style:a.value,prefixCls:u,key:`LoopKey${s+f}`},{default:()=>[c]},Ui.PROPS|Ui.STYLE,["style","prefixCls"]))}),l}return()=>{var o;const{spacer:s,direction:l}=t,u=Ce(e,"default",{key:0},()=>[]);if(((o=u.children)!=null?o:[]).length===0)return null;if(Ke(u.children)){let c=i(u.children);if(s){const f=c.length-1;c=c.reduce((d,h,v)=>{const p=[...d,h];return v!==f&&p.push(U("span",{style:[a.value,l==="vertical"?"width: 100%":null],key:v},[Hn(s)?s:dt(s,Ui.TEXT)],Ui.STYLE)),p},[])}return U("div",{class:n.value,style:r.value},c,Ui.STYLE|Ui.CLASS)}return u.children}}}),YBe=Tt(jBe),XBe=Ne({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:ge([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:ge([String,Object,Array])}}),qBe=ae({name:"ElStatistic"}),ZBe=ae({...qBe,props:XBe,setup(t,{expose:e}){const n=t,r=ke("statistic"),a=A(()=>{const{value:i,formatter:o,precision:s,decimalSeparator:l,groupSeparator:u}=n;if(ft(o))return o(i);if(!ut(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)=>(I(),X("div",{class:z(w(r).b())},[i.$slots.title||i.title?(I(),X("div",{key:0,class:z(w(r).e("head"))},[Ce(i.$slots,"title",{},()=>[dt(Le(i.title),1)])],2)):de("v-if",!0),P("div",{class:z(w(r).e("content"))},[i.$slots.prefix||i.prefix?(I(),X("div",{key:0,class:z(w(r).e("prefix"))},[Ce(i.$slots,"prefix",{},()=>[P("span",null,Le(i.prefix),1)])],2)):de("v-if",!0),P("span",{class:z(w(r).e("number")),style:et(i.valueStyle)},Le(w(a)),7),i.$slots.suffix||i.suffix?(I(),X("div",{key:1,class:z(w(r).e("suffix"))},[Ce(i.$slots,"suffix",{},()=>[P("span",null,Le(i.suffix),1)])],2)):de("v-if",!0)],2)],2))}});var QBe=Ae(ZBe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const EY=Tt(QBe),JBe=Ne({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:ge([Number,Object]),default:0},valueStyle:{type:ge([String,Object,Array])}}),e$e={finish:()=>!0,[Nn]:t=>ut(t)},t$e=[["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]],TP=t=>ut(t)?new Date(t).getTime():t.valueOf(),EP=(t,e)=>{let n=t;const r=/\[([^\]]*)]/g;return t$e.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")},n$e=ae({name:"ElCountdown"}),r$e=ae({...n$e,props:JBe,emits:e$e,setup(t,{expose:e,emit:n}){const r=t;let a;const i=G(TP(r.value)-Date.now()),o=A(()=>EP(i.value,r.format)),s=c=>EP(c,r.format),l=()=>{a&&(Yx(a),a=void 0)},u=()=>{const c=TP(r.value),f=()=>{let d=c-Date.now();n("change",d),d<=0?(d=0,l(),n("finish")):a=Hp(f),i.value=d};a=Hp(f)};return Me(()=>[r.value,r.format],()=>{l(),u()},{immediate:!0}),Pn(()=>{l()}),e({displayValue:o}),(c,f)=>(I(),ve(w(EY),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:s},Bl({_:2},[Vt(c.$slots,(d,h)=>({name:h,fn:q(()=>[Ce(c.$slots,h)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var a$e=Ae(r$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const i$e=Tt(a$e),o$e=Ne({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"}}),s$e={[Nn]:(t,e)=>[t,e].every(ut)},l$e=ae({name:"ElSteps"}),u$e=ae({...l$e,props:o$e,emits:s$e,setup(t,{emit:e}){const n=t,r=ke("steps"),{children:a,addChild:i,removeChild:o}=tA(_t(),"ElStep");return Me(a,()=>{a.value.forEach((s,l)=>{s.setIndex(l)})}),At("ElSteps",{props:n,steps:a,addStep:i,removeStep:o}),Me(()=>n.active,(s,l)=>{e(Nn,s,l)}),(s,l)=>(I(),X("div",{class:z([w(r).b(),w(r).m(s.simple?"simple":s.direction)])},[Ce(s.$slots,"default")],2))}});var c$e=Ae(u$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const f$e=Ne({title:{type:String,default:""},icon:{type:Tn},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),d$e=ae({name:"ElStep"}),h$e=ae({...d$e,props:f$e,setup(t){const e=t,n=ke("step"),r=G(-1),a=G({}),i=G(""),o=Ye("ElSteps"),s=_t();St(()=>{Me([()=>o.props.active,()=>o.props.processStatus,()=>o.props.finishStatus],([_])=>{b(_)},{immediate:!0})}),Pn(()=>{o.removeStep(x.uid)});const l=A(()=>e.status||i.value),u=A(()=>{const _=o.steps.value[r.value-1];return _?_.currentStatus:"wait"}),c=A(()=>o.props.alignCenter),f=A(()=>o.props.direction==="vertical"),d=A(()=>o.props.simple),h=A(()=>o.steps.value.length),v=A(()=>{var _;return((_=o.steps.value[h.value-1])==null?void 0:_.uid)===(s==null?void 0:s.uid)}),p=A(()=>d.value?"":o.props.space),g=A(()=>[n.b(),n.is(d.value?"simple":o.props.direction),n.is("flex",v.value&&!p.value&&!c.value),n.is("center",c.value&&!f.value&&!d.value)]),y=A(()=>{const _={flexBasis:ut(p.value)?`${p.value}px`:p.value?p.value:`${100/(h.value-(c.value?0:1))}%`};return f.value||v.value&&(_.maxWidth=`${100/h.value}%`),_}),m=_=>{r.value=_},S=_=>{const C=_==="wait",T={transitionDelay:`${C?"-":""}${150*r.value}ms`},D=_===o.props.processStatus||C?0:100;T.borderWidth=D&&!d.value?"1px":0,T[o.props.direction==="vertical"?"height":"width"]=`${D}%`,a.value=T},b=_=>{_>r.value?i.value=o.props.finishStatus:_===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=Zt({uid:s.uid,currentStatus:l,setIndex:m,calcProgress:S});return o.addStep(x),(_,C)=>(I(),X("div",{style:et(w(y)),class:z(w(g))},[de(" icon & line "),P("div",{class:z([w(n).e("head"),w(n).is(w(l))])},[w(d)?de("v-if",!0):(I(),X("div",{key:0,class:z(w(n).e("line"))},[P("i",{class:z(w(n).e("line-inner")),style:et(a.value)},null,6)],2)),P("div",{class:z([w(n).e("icon"),w(n).is(_.icon||_.$slots.icon?"icon":"text")])},[Ce(_.$slots,"icon",{},()=>[_.icon?(I(),ve(w(qe),{key:0,class:z(w(n).e("icon-inner"))},{default:q(()=>[(I(),ve(Dt(_.icon)))]),_:1},8,["class"])):w(l)==="success"?(I(),ve(w(qe),{key:1,class:z([w(n).e("icon-inner"),w(n).is("status")])},{default:q(()=>[U(w(Cm))]),_:1},8,["class"])):w(l)==="error"?(I(),ve(w(qe),{key:2,class:z([w(n).e("icon-inner"),w(n).is("status")])},{default:q(()=>[U(w(Jo))]),_:1},8,["class"])):w(d)?de("v-if",!0):(I(),X("div",{key:3,class:z(w(n).e("icon-inner"))},Le(r.value+1),3))])],2)],2),de(" title & description "),P("div",{class:z(w(n).e("main"))},[P("div",{class:z([w(n).e("title"),w(n).is(w(l))])},[Ce(_.$slots,"title",{},()=>[dt(Le(_.title),1)])],2),w(d)?(I(),X("div",{key:0,class:z(w(n).e("arrow"))},null,2)):(I(),X("div",{key:1,class:z([w(n).e("description"),w(n).is(w(l))])},[Ce(_.$slots,"description",{},()=>[dt(Le(_.description),1)])],2))],2)],6))}});var MY=Ae(h$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const p$e=Tt(c$e,{Step:MY}),v$e=Qn(MY),g$e=Ne({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:Kx},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:Tn},activeActionIcon:{type:Tn},activeIcon:{type:Tn},inactiveIcon:{type:Tn},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:ge(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),y$e={[Et]:t=>Sr(t)||vt(t)||ut(t),[Nn]:t=>Sr(t)||vt(t)||ut(t),[Ga]:t=>Sr(t)||vt(t)||ut(t)},m$e=["onClick"],S$e=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],b$e=["aria-hidden"],w$e=["aria-hidden"],_$e=["aria-hidden"],sk="ElSwitch",x$e=ae({name:sk}),C$e=ae({...x$e,props:g$e,emits:y$e,setup(t,{expose:e,emit:n}){const r=t,a=_t(),{formItem:i}=Qa(),o=_r(),s=ke("switch");(T=>{T.forEach(D=>{Ws({from:D[0],replacement:D[1],scope:sk,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},A(()=>{var M;return!!((M=a.vnode.props)!=null&&M[D[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}=Ac(r,{formItemContext:i}),c=mi(A(()=>r.loading)),f=G(r.modelValue!==!1),d=G(),h=G(),v=A(()=>[s.b(),s.m(o.value),s.is("disabled",c.value),s.is("checked",S.value)]),p=A(()=>[s.e("label"),s.em("label","left"),s.is("active",!S.value)]),g=A(()=>[s.e("label"),s.em("label","right"),s.is("active",S.value)]),y=A(()=>({width:rr(r.width)}));Me(()=>r.modelValue,()=>{f.value=!0}),Me(()=>r.value,()=>{f.value=!1});const m=A(()=>f.value?r.modelValue:r.value),S=A(()=>m.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(m.value)||(n(Et,r.inactiveValue),n(Nn,r.inactiveValue),n(Ga,r.inactiveValue)),Me(S,T=>{var D;d.value.checked=T,r.validateEvent&&((D=i==null?void 0:i.validate)==null||D.call(i,"change").catch(M=>void 0))});const b=()=>{const T=S.value?r.inactiveValue:r.activeValue;n(Et,T),n(Nn,T),n(Ga,T),Ze(()=>{d.value.checked=S.value})},x=()=>{if(c.value)return;const{beforeChange:T}=r;if(!T){b();return}const D=T();[K0(D),Sr(D)].includes(!0)||wr(sk,"beforeChange must return type `Promise<boolean>` or `boolean`"),K0(D)?D.then(E=>{E&&b()}).catch(E=>{}):D&&b()},_=A(()=>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,D;(D=(T=d.value)==null?void 0:T.focus)==null||D.call(T)};return St(()=>{d.value.checked=S.value}),e({focus:C,checked:S}),(T,D)=>(I(),X("div",{class:z(w(v)),style:et(w(_)),onClick:ot(x,["prevent"])},[P("input",{id:w(u),ref_key:"input",ref:d,class:z(w(s).e("input")),type:"checkbox",role:"switch","aria-checked":w(S),"aria-disabled":w(c),name:T.name,"true-value":T.activeValue,"false-value":T.inactiveValue,disabled:w(c),tabindex:T.tabindex,onChange:b,onKeydown:Kt(x,["enter"])},null,42,S$e),!T.inlinePrompt&&(T.inactiveIcon||T.inactiveText)?(I(),X("span",{key:0,class:z(w(p))},[T.inactiveIcon?(I(),ve(w(qe),{key:0},{default:q(()=>[(I(),ve(Dt(T.inactiveIcon)))]),_:1})):de("v-if",!0),!T.inactiveIcon&&T.inactiveText?(I(),X("span",{key:1,"aria-hidden":w(S)},Le(T.inactiveText),9,b$e)):de("v-if",!0)],2)):de("v-if",!0),P("span",{ref_key:"core",ref:h,class:z(w(s).e("core")),style:et(w(y))},[T.inlinePrompt?(I(),X("div",{key:0,class:z(w(s).e("inner"))},[T.activeIcon||T.inactiveIcon?(I(),ve(w(qe),{key:0,class:z(w(s).is("icon"))},{default:q(()=>[(I(),ve(Dt(w(S)?T.activeIcon:T.inactiveIcon)))]),_:1},8,["class"])):T.activeText||T.inactiveText?(I(),X("span",{key:1,class:z(w(s).is("text")),"aria-hidden":!w(S)},Le(w(S)?T.activeText:T.inactiveText),11,w$e)):de("v-if",!0)],2)):de("v-if",!0),P("div",{class:z(w(s).e("action"))},[T.loading?(I(),ve(w(qe),{key:0,class:z(w(s).is("loading"))},{default:q(()=>[U(w(Rc))]),_:1},8,["class"])):T.activeActionIcon&&w(S)?(I(),ve(w(qe),{key:1},{default:q(()=>[(I(),ve(Dt(T.activeActionIcon)))]),_:1})):T.inactiveActionIcon&&!w(S)?(I(),ve(w(qe),{key:2},{default:q(()=>[(I(),ve(Dt(T.inactiveActionIcon)))]),_:1})):de("v-if",!0)],2)],6),!T.inlinePrompt&&(T.activeIcon||T.activeText)?(I(),X("span",{key:1,class:z(w(g))},[T.activeIcon?(I(),ve(w(qe),{key:0},{default:q(()=>[(I(),ve(Dt(T.activeIcon)))]),_:1})):de("v-if",!0),!T.activeIcon&&T.activeText?(I(),X("span",{key:1,"aria-hidden":!w(S)},Le(T.activeText),9,_$e)):de("v-if",!0)],2)):de("v-if",!0)],14,m$e))}});var T$e=Ae(C$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const E$e=Tt(T$e);/*!
- * escape-html
- * Copyright(c) 2012-2013 TJ Holowaychuk
- * Copyright(c) 2015 Andreas Lubbe
- * Copyright(c) 2015 Tiancheng "Timothy" Gu
- * MIT Licensed
- */var M$e=/["'&<>]/,D$e=k$e;function k$e(t){var e=""+t,n=M$e.exec(e);if(!n)return e;var r,a="",i=0,o=0;for(i=n.index;i<e.length;i++){switch(e.charCodeAt(i)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}o!==i&&(a+=e.substring(o,i)),o=i+1,a+=r}return o!==i?a+e.substring(o,i):a}const R$e=Ai(D$e),GT=function(t){var e;return(e=t.target)==null?void 0:e.closest("td")},L$e=function(t,e,n,r,a){if(!e&&!r&&(!a||Array.isArray(a)&&!a.length))return t;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=r?null:function(s,l){return a?(Array.isArray(a)||(a=[a]),a.map(u=>typeof u=="string"?Fn(s,u):u(s,l,t))):(e!=="$key"&&Lt(s)&&"$value"in s&&(s=s.$value),[Lt(s)?Fn(s,e):s])},o=function(s,l){if(r)return r(s.value,l.value);for(let u=0,c=s.key.length;u<c;u++){if(s.key[u]<l.key[u])return-1;if(s.key[u]>l.key[u])return 1}return 0};return 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)},DY=function(t,e){let n=null;return t.columns.forEach(r=>{r.id===e&&(n=r)}),n},O$e=function(t,e){let n=null;for(let r=0;r<t.columns.length;r++){const a=t.columns[r];if(a.columnKey===e){n=a;break}}return n||wr("ElTable",`No column matching with column-key: ${e}`),n},MP=function(t,e,n){const r=(e.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return r?DY(t,r[0]):null},ra=(t,e)=>{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)},ed=function(t,e){const n={};return(t||[]).forEach((r,a)=>{n[ra(r,e)]={row:r,index:a}}),n};function A$e(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 CA(t){return t===""||t!==void 0&&(t=Number.parseInt(t,10),Number.isNaN(t)&&(t="")),t}function kY(t){return t===""||t!==void 0&&(t=CA(t),Number.isNaN(t)&&(t=80)),t}function N$e(t){return typeof t=="number"?t:typeof t=="string"?/^\d+(?:px)?$/.test(t)?Number.parseInt(t,10):t:null}function V$e(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,n)=>(...r)=>e(n(...r)))}function w0(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,Ke(e.children)&&e.children.forEach(l=>{w0(t,l,n??!i)})};return Sr(n)?n&&!i?o("add"):!n&&i&&o("remove"):o(i?"remove":"add"),r}function B$e(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 pl;function $$e(t,e,n,r,a){a=f9({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=R$e(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()}pl==null||pl(),pl=()=>{try{c&&c.destroy(),h&&(t==null||t.removeChild(h)),e.removeEventListener("mouseenter",f),e.removeEventListener("mouseleave",d),o==null||o.removeEventListener("scroll",pl),pl=void 0}catch{}};let c=null,f=u,d=pl;a.enterable&&({onOpen:f,onClose:d}=W9({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:pl}));const h=s();h.onmouseenter=f,h.onmouseleave=d;const v=[];if(a.offset&&v.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=h.appendChild(l());v.push({name:"arrow",options:{element:g,padding:10}})}const p=a.popperOptions||{};return c=G9(e,h,{placement:a.placement||"top",strategy:"fixed",...p,modifiers:p.modifiers?v.concat(p.modifiers):v}),e.addEventListener("mouseenter",f),e.addEventListener("mouseleave",d),o==null||o.addEventListener("scroll",pl),c}function RY(t){return t.children?tye(t.children,RY):[t]}function DP(t,e){return t+e.colSpan}const LY=(t,e,n,r)=>{let a=0,i=t;const o=n.states.columns.value;if(r){const l=RY(r[t]);a=o.slice(0,o.indexOf(l[0])).reduce(DP,0),i=a+l.reduce(DP,0)-1}else a=t;let s;switch(e){case"left":i<n.states.fixedLeafColumnsLength.value&&(s="left");break;case"right":a>=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:i<n.states.fixedLeafColumnsLength.value?s="left":a>=o.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:a,after:i}:{}},TA=(t,e,n,r,a,i=0)=>{const o=[],{direction:s,start:l,after:u}=LY(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 kP(t,e){return t+(e.realWidth===null||Number.isNaN(e.realWidth)?Number(e.width):e.realWidth)}const EA=(t,e,n,r)=>{const{direction:a,start:i=0,after:o=0}=LY(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(kP,0):s.right=u.slice(o+1).reverse().reduce(kP,0),s},Qp=(t,e)=>{t&&(Number.isNaN(t[e])||(t[e]=`${t[e]}px`))};function I$e(t){const e=_t(),n=G(!1),r=G([]);return{updateExpandRows:()=>{const l=t.data.value||[],u=t.rowKey.value;if(n.value)r.value=l.slice();else if(u){const c=ed(r.value,u);r.value=l.reduce((f,d)=>{const h=ra(d,u);return c[h]&&f.push(d),f},[])}else r.value=[]},toggleRowExpansion:(l,u)=>{w0(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=ed(u,c);r.value=l.reduce((d,h)=>{const v=f[h];return v&&d.push(v.row),d},[])},isRowExpanded:l=>{const u=t.rowKey.value;return u?!!ed(r.value,u)[ra(l,u)]:r.value.includes(l)},states:{expandRows:r,defaultExpandAll:n}}}function P$e(t){const e=_t(),n=G(null),r=G(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=(w(c)||[]).find(h=>ra(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=ra(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 F$e(t){const e=G([]),n=G({}),r=G(16),a=G(!1),i=G({}),o=G("hasChildren"),s=G("children"),l=_t(),u=A(()=>{if(!t.rowKey.value)return{};const y=t.data.value||[];return f(y)}),c=A(()=>{const y=t.rowKey.value,m=Object.keys(i.value),S={};return m.length&&m.forEach(b=>{if(i.value[b].length){const x={children:[]};i.value[b].forEach(_=>{const C=ra(_,y);x.children.push(C),_[o.value]&&!S[C]&&(S[C]={children:[]})}),S[b]=x}}),S}),f=y=>{const m=t.rowKey.value,S={};return B$e(y,(b,x,_)=>{const C=ra(b,m);Array.isArray(x)?S[C]={children:x.map(T=>ra(T,m)),level:_}:a.value&&(S[C]={children:[],lazy:!0,level:_})},s.value,o.value),S},d=(y=!1,m=(S=>(S=l.store)==null?void 0:S.states.defaultExpandAll.value)())=>{var S;const b=u.value,x=c.value,_=Object.keys(b),C={};if(_.length){const T=w(n),D=[],M=(k,R)=>{if(y)return e.value?m||e.value.includes(R):!!(m||k!=null&&k.expanded);{const O=m||e.value&&e.value.includes(R);return!!(k!=null&&k.expanded||O)}};_.forEach(k=>{const R=T[k],O={...b[k]};if(O.expanded=M(R,k),O.lazy){const{loaded:B=!1,loading:$=!1}=R||{};O.loaded=!!B,O.loading=!!$,D.push(k)}C[k]=O});const E=Object.keys(x);a.value&&E.length&&D.length&&E.forEach(k=>{const R=T[k],O=x[k].children;if(D.includes(k)){if(C[k].children.length!==0)throw new Error("[ElTable]children must be an empty array.");C[k].children=O}else{const{loaded:B=!1,loading:$=!1}=R||{};C[k]={lazy:!0,loaded:!!B,loading:!!$,expanded:M(R,k),children:O,level:""}}})}n.value=C,(S=l.store)==null||S.updateTableScrollY()};Me(()=>e.value,()=>{d(!0)}),Me(()=>u.value,()=>{d()}),Me(()=>c.value,()=>{d()});const h=y=>{e.value=y,d()},v=(y,m)=>{l.store.assertRowKey();const S=t.rowKey.value,b=ra(y,S),x=b&&n.value[b];if(b&&x&&"expanded"in x){const _=x.expanded;m=typeof m>"u"?!x.expanded:m,n.value[b].expanded=m,_!==m&&l.emit("expand-change",y,m),l.store.updateTableScrollY()}},p=y=>{l.store.assertRowKey();const m=t.rowKey.value,S=ra(y,m),b=n.value[S];a.value&&b&&"loaded"in b&&!b.loaded?g(y,S,b):v(y,void 0)},g=(y,m,S)=>{const{load:b}=l.props;b&&!n.value[m].loaded&&(n.value[m].loading=!0,b(y,S,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:p,toggleTreeExpansion:v,updateTreeExpandKeys:h,updateTreeData:d,normalize:f,states:{expandRowKeys:e,treeData:n,indent:r,lazy:a,lazyTreeNodeMap:i,lazyColumnIdentifier:o,childrenColumnName:s}}}const z$e=(t,e)=>{const n=e.sortingColumn;return!n||typeof n.sortable=="string"?t:L$e(t,e.sortProp,e.sortOrder,n.sortMethod,n.sortBy)},Fb=t=>{const e=[];return t.forEach(n=>{n.children&&n.children.length>0?e.push.apply(e,Fb(n.children)):e.push(n)}),e};function G$e(){var t;const e=_t(),{size:n}=$r((t=e.proxy)==null?void 0:t.$props),r=G(null),a=G([]),i=G([]),o=G(!1),s=G([]),l=G([]),u=G([]),c=G([]),f=G([]),d=G([]),h=G([]),v=G([]),p=[],g=G(0),y=G(0),m=G(0),S=G(!1),b=G([]),x=G(!1),_=G(!1),C=G(null),T=G({}),D=G(null),M=G(null),E=G(null),k=G(null),R=G(null);Me(a,()=>e.state&&V(!1),{deep:!0});const O=()=>{if(!r.value)throw new Error("[ElTable] prop row-key is required")},B=Je=>{var se;(se=Je.children)==null||se.forEach(he=>{he.fixed=Je.fixed,B(he)})},$=()=>{s.value.forEach(Re=>{B(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 Je=s.value.filter(Re=>!Re.fixed);l.value=[].concat(c.value).concat(Je).concat(f.value);const se=Fb(Je),he=Fb(c.value),pe=Fb(f.value);g.value=se.length,y.value=he.length,m.value=pe.length,u.value=[].concat(he).concat(se).concat(pe),o.value=c.value.length>0||f.value.length>0},V=(Je,se=!1)=>{Je&&$(),se?e.state.doLayout():e.state.debouncedUpdateLayout()},F=Je=>b.value.includes(Je),L=()=>{S.value=!1,b.value.length&&(b.value=[],e.emit("selection-change",[]))},N=()=>{let Je;if(r.value){Je=[];const se=ed(b.value,r.value),he=ed(a.value,r.value);for(const pe in se)Gt(se,pe)&&!he[pe]&&Je.push(se[pe].row)}else Je=b.value.filter(se=>!a.value.includes(se));if(Je.length){const se=b.value.filter(he=>!Je.includes(he));b.value=se,e.emit("selection-change",se.slice())}},H=()=>(b.value||[]).slice(),K=(Je,se=void 0,he=!0)=>{if(w0(b.value,Je,se)){const Re=(b.value||[]).slice();he&&e.emit("select",Re,Je),e.emit("selection-change",Re)}},Q=()=>{var Je,se;const he=_.value?!S.value:!(S.value||b.value.length);S.value=he;let pe=!1,Re=0;const re=(se=(Je=e==null?void 0:e.store)==null?void 0:Je.states)==null?void 0:se.rowKey.value;a.value.forEach((Ue,pt)=>{const Bt=pt+Re;C.value?C.value.call(null,Ue,Bt)&&w0(b.value,Ue,he)&&(pe=!0):w0(b.value,Ue,he)&&(pe=!0),Re+=le(ra(Ue,re))}),pe&&e.emit("selection-change",b.value?b.value.slice():[]),e.emit("select-all",b.value)},ie=()=>{const Je=ed(b.value,r.value);a.value.forEach(se=>{const he=ra(se,r.value),pe=Je[he];pe&&(b.value[pe.index]=se)})},be=()=>{var Je,se,he;if(((Je=a.value)==null?void 0:Je.length)===0){S.value=!1;return}let pe;r.value&&(pe=ed(b.value,r.value));const Re=function(Bt){return pe?!!pe[ra(Bt,r.value)]:b.value.includes(Bt)};let re=!0,Ue=0,pt=0;for(let Bt=0,lr=(a.value||[]).length;Bt<lr;Bt++){const Cr=(he=(se=e==null?void 0:e.store)==null?void 0:se.states)==null?void 0:he.rowKey.value,ti=Bt+pt,Jr=a.value[Bt],xe=C.value&&C.value.call(null,Jr,ti);if(Re(Jr))Ue++;else if(!C.value||xe){re=!1;break}pt+=le(ra(Jr,Cr))}Ue===0&&(re=!1),S.value=re},le=Je=>{var se;if(!e||!e.store)return 0;const{treeData:he}=e.store.states;let pe=0;const Re=(se=he.value[Je])==null?void 0:se.children;return Re&&(pe+=Re.length,Re.forEach(re=>{pe+=le(re)})),pe},J=(Je,se)=>{Array.isArray(Je)||(Je=[Je]);const he={};return Je.forEach(pe=>{T.value[pe.id]=se,he[pe.columnKey||pe.id]=se}),he},Z=(Je,se,he)=>{M.value&&M.value!==Je&&(M.value.order=null),M.value=Je,E.value=se,k.value=he},ee=()=>{let Je=w(i);Object.keys(T.value).forEach(se=>{const he=T.value[se];if(!he||he.length===0)return;const pe=DY({columns:u.value},se);pe&&pe.filterMethod&&(Je=Je.filter(Re=>he.some(re=>pe.filterMethod.call(null,re,Re,pe))))}),D.value=Je},ce=()=>{a.value=z$e(D.value,{sortingColumn:M.value,sortProp:E.value,sortOrder:k.value})},ue=(Je=void 0)=>{Je&&Je.filter||ee(),ce()},Y=Je=>{const{tableHeaderRef:se}=e.refs;if(!se)return;const he=Object.assign({},se.filterPanels),pe=Object.keys(he);if(pe.length)if(typeof Je=="string"&&(Je=[Je]),Array.isArray(Je)){const Re=Je.map(re=>O$e({columns:u.value},re));pe.forEach(re=>{const Ue=Re.find(pt=>pt.id===re);Ue&&(Ue.filteredValue=[])}),e.store.commit("filterChange",{column:Re,values:[],silent:!0,multi:!0})}else pe.forEach(Re=>{const re=u.value.find(Ue=>Ue.id===Re);re&&(re.filteredValue=[])}),T.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},te=()=>{M.value&&(Z(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:oe,toggleRowExpansion:Se,updateExpandRows:fe,states:ne,isRowExpanded:Ee}=I$e({data:a,rowKey:r}),{updateTreeExpandKeys:_e,toggleTreeExpansion:me,updateTreeData:Te,loadOrToggle:Ve,states:ze}=F$e({data:a,rowKey:r}),{updateCurrentRowData:We,updateCurrentRow:De,setCurrentRowKey:Fe,states:at}=P$e({data:a,rowKey:r});return{assertRowKey:O,updateColumns:$,scheduleLayout:V,isSelected:F,clearSelection:L,cleanSelection:N,getSelectionRows:H,toggleRowSelection:K,_toggleAllSelection:Q,toggleAllSelection:null,updateSelectionByRowKey:ie,updateAllSelected:be,updateFilters:J,updateCurrentRow:De,updateSort:Z,execFilter:ee,execSort:ce,execQuery:ue,clearFilter:Y,clearSort:te,toggleRowExpansion:Se,setExpandRowKeysAdapter:Je=>{oe(Je),_e(Je)},setCurrentRowKey:Fe,toggleRowExpansionAdapter:(Je,se)=>{u.value.some(({type:pe})=>pe==="expand")?Se(Je,se):me(Je,se)},isRowExpanded:Ee,updateExpandRows:fe,updateCurrentRowData:We,loadOrToggle:Ve,updateTreeData:Te,states:{tableSize:n,rowKey:r,data:a,_data:i,isComplex:o,_columns:s,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:d,fixedLeafColumns:h,rightFixedLeafColumns:v,updateOrderFns:p,leafColumnsLength:g,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:m,isAllSelected:S,selection:b,reserveSelection:x,selectOnIndeterminate:_,selectable:C,filters:T,filteredData:D,sortingColumn:M,sortProp:E,sortOrder:k,hoverRow:R,...ne,...ze,...at}}}function lk(t,e){return t.map(n=>{var r;return n.id===e.id?e:((r=n.children)!=null&&r.length&&(n.children=lk(n.children,e)),n)})}function uk(t){t.forEach(e=>{var n,r;e.no=(n=e.getColumnIndex)==null?void 0:n.call(e),(r=e.children)!=null&&r.length&&uk(e.children)}),t.sort((e,n)=>e.no-n.no)}function U$e(){const t=_t(),e=G$e();return{ns:ke("table"),...e,mutations:{setData(o,s){const l=w(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),w(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=w(o._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(s),f=lk(c,l)):(c.push(s),f=c),uk(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&&(uk(o._columns.value),t.$ready&&t.store.updateColumns())},removeColumn(o,s,l,u){const c=w(o._columns)||[];if(l)l.children.splice(l.children.findIndex(d=>d.id===s.id),1),Ze(()=>{var d;((d=l.children)==null?void 0:d.length)===0&&delete l.children}),o._columns.value=lk(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=w(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=w(l),d=w(u),h=w(c);h===null&&(o.sortingColumn.value=null,o.sortProp.value=null);const v={filter:!0};t.store.execQuery(v),(!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(){Ze(()=>t.layout.updateScrollY.apply(t.layout))}}}const _0={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 H$e(t,e){if(!t)throw new Error("Table is required.");const n=U$e();return n.toggleAllSelection=ja(n._toggleAllSelection,10),Object.keys(_0).forEach(r=>{OY(AY(e,r),r,n)}),W$e(n,e),n}function W$e(t,e){Object.keys(_0).forEach(n=>{Me(()=>AY(e,n),r=>{OY(r,n,t)})})}function OY(t,e,n){let r=t,a=_0[e];typeof _0[e]=="object"&&(a=a.key,r=r||_0[e].default),n.states[a].value=r}function AY(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 K$e{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=G(null),this.scrollX=G(!1),this.scrollY=G(!1),this.bodyWidth=G(null),this.fixedWidth=G(null),this.rightFixedWidth=G(null),this.gutterWidth=0;for(const n in e)Gt(e,n)&&(en(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(!Ht)return;const r=this.table.vnode.el;if(e=N$e(e),this.height.value=Number(e),!r&&(e||e===0))return Ze(()=>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(!Ht)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 v=Math.floor(Number(d.minWidth||80)*c);f+=v,d.realWidth=Number(d.minWidth||80)+v}),i[0].realWidth=Number(i[0].minWidth||80)+l-f}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(r,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),r+=l.realWidth}),this.scrollX.value=r>n,this.bodyWidth.value=r;const o=this.store.states.fixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const s=this.store.states.rightFixedColumns.value;if(s.length>0){let l=0;s.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(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:j$e}=co,Y$e=ae({name:"ElTableFilterPanel",components:{ElCheckbox:co,ElCheckboxGroup:j$e,ElScrollbar:Jl,ElTooltip:Ya,ElIcon:qe,ArrowDown:Dc,ArrowUp:Ux},directives:{ClickOutside:pc},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup(t){const e=_t(),{t:n}=jt(),r=ke("table-filter"),a=e==null?void 0:e.parent;a.filterPanels.value[t.column.id]||(a.filterPanels.value[t.column.id]=e);const i=G(!1),o=G(null),s=A(()=>t.column&&t.column.filters),l=A({get:()=>{var b;return(((b=t.column)==null?void 0:b.filteredValue)||[])[0]},set:b=>{u.value&&(typeof b<"u"&&b!==null?u.value.splice(0,1,b):u.value.splice(0,1))}}),u=A({get(){return t.column?t.column.filteredValue||[]:[]},set(b){t.column&&t.upDataColumn("filteredValue",b)}}),c=A(()=>t.column?t.column.filterMultiple:!0),f=b=>b.value===l.value,d=()=>{i.value=!1},h=b=>{b.stopPropagation(),i.value=!i.value},v=()=>{i.value=!1},p=()=>{m(u.value),d()},g=()=>{u.value=[],m(u.value),d()},y=b=>{l.value=b,m(typeof b<"u"&&b!==null?u.value:[]),d()},m=b=>{t.store.commit("filterChange",{column:t.column,values:b}),t.store.updateAllSelected()};Me(i,b=>{t.column&&t.upDataColumn("filterOpened",b)},{immediate:!0});const S=A(()=>{var b,x;return(x=(b=o.value)==null?void 0:b.popperRef)==null?void 0:x.contentRef});return{tooltipVisible:i,multiple:c,filteredValue:u,filterValue:l,filters:s,handleConfirm:p,handleReset:g,handleSelect:y,isActive:f,t:n,ns:r,showFilterPanel:h,hideFilterPanel:v,popperPaneRef:S,tooltip:o}}}),X$e={key:0},q$e=["disabled"],Z$e=["label","onClick"];function Q$e(t,e,n,r,a,i){const o=Pe("el-checkbox"),s=Pe("el-checkbox-group"),l=Pe("el-scrollbar"),u=Pe("arrow-up"),c=Pe("arrow-down"),f=Pe("el-icon"),d=Pe("el-tooltip"),h=Vp("click-outside");return I(),ve(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:q(()=>[t.multiple?(I(),X("div",X$e,[P("div",{class:z(t.ns.e("content"))},[U(l,{"wrap-class":t.ns.e("wrap")},{default:q(()=>[U(s,{modelValue:t.filteredValue,"onUpdate:modelValue":e[0]||(e[0]=v=>t.filteredValue=v),class:z(t.ns.e("checkbox-group"))},{default:q(()=>[(I(!0),X(Qe,null,Vt(t.filters,v=>(I(),ve(o,{key:v.value,label:v.value},{default:q(()=>[dt(Le(v.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),P("div",{class:z(t.ns.e("bottom"))},[P("button",{class:z({[t.ns.is("disabled")]:t.filteredValue.length===0}),disabled:t.filteredValue.length===0,type:"button",onClick:e[1]||(e[1]=(...v)=>t.handleConfirm&&t.handleConfirm(...v))},Le(t.t("el.table.confirmFilter")),11,q$e),P("button",{type:"button",onClick:e[2]||(e[2]=(...v)=>t.handleReset&&t.handleReset(...v))},Le(t.t("el.table.resetFilter")),1)],2)])):(I(),X("ul",{key:1,class:z(t.ns.e("list"))},[P("li",{class:z([t.ns.e("list-item"),{[t.ns.is("active")]:t.filterValue===void 0||t.filterValue===null}]),onClick:e[3]||(e[3]=v=>t.handleSelect(null))},Le(t.t("el.table.clearFilter")),3),(I(!0),X(Qe,null,Vt(t.filters,v=>(I(),X("li",{key:v.value,class:z([t.ns.e("list-item"),t.ns.is("active",t.isActive(v))]),label:v.value,onClick:p=>t.handleSelect(v.value)},Le(v.text),11,Z$e))),128))],2))]),default:q(()=>[ct((I(),X("span",{class:z([`${t.ns.namespace.value}-table__column-filter-trigger`,`${t.ns.namespace.value}-none-outline`]),onClick:e[4]||(e[4]=(...v)=>t.showFilterPanel&&t.showFilterPanel(...v))},[U(f,null,{default:q(()=>[t.column.filterOpened?(I(),ve(u,{key:0})):(I(),ve(c,{key:1}))]),_:1})],2)),[[h,t.hideFilterPanel,t.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var J$e=Ae(Y$e,[["render",Q$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function NY(t){const e=_t();Ex(()=>{n.value.addObserver(e)}),St(()=>{r(n.value),a(n.value)}),ql(()=>{r(n.value),a(n.value)}),Mc(()=>{n.value.removeObserver(e)});const n=A(()=>{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<f;c++){const d=s[c],h=d.getAttribute("name"),v=u[h];v&&d.setAttribute("width",v.realWidth||v.width)}},a=i=>{var o,s;const l=((o=t.vnode.el)==null?void 0:o.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((s=t.vnode.el)==null?void 0:s.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const d=u[c];d.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",d.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:r,onScrollableChange:a}}const nl=Symbol("ElTable");function eIe(t,e){const n=_t(),r=Ye(nl),a=p=>{p.stopPropagation()},i=(p,g)=>{!g.filters&&g.sortable?v(p,g,!1):g.filterable&&!g.sortable&&a(p),r==null||r.emit("header-click",g,p)},o=(p,g)=>{r==null||r.emit("header-contextmenu",g,p)},s=G(null),l=G(!1),u=G({}),c=(p,g)=>{if(Ht&&!(g.children&&g.children.length>0)&&s.value&&t.border){l.value=!0;const y=r;e("set-drag-visible",!0);const S=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,b=n.vnode.el.querySelector(`th.${g.id}`),x=b.getBoundingClientRect(),_=x.left-S+30;As(b,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:x.right-S,startColumnLeft:x.left-S,tableLeft:S};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=M=>{const E=M.clientX-u.value.startMouseLeft,k=u.value.startLeft+E;C.style.left=`${Math.max(_,k)}px`},D=()=>{if(l.value){const{startColumnLeft:M,startLeft:E}=u.value,R=Number.parseInt(C.style.left,10)-M;g.width=g.realWidth=R,y==null||y.emit("header-dragend",g.width,E-M,g,p),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",D),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{hi(b,"noclick")},0)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",D)}},f=(p,g)=>{if(g.children&&g.children.length>0)return;const y=p.target;if(!io(y))return;const m=y==null?void 0:y.closest("th");if(!(!g||!g.resizable)&&!l.value&&t.border){const S=m.getBoundingClientRect(),b=document.body.style;S.width>12&&S.right-p.pageX<8?(b.cursor="col-resize",Yo(m,"is-sortable")&&(m.style.cursor="col-resize"),s.value=g):l.value||(b.cursor="",Yo(m,"is-sortable")&&(m.style.cursor="pointer"),s.value=null)}},d=()=>{Ht&&(document.body.style.cursor="")},h=({order:p,sortOrders:g})=>{if(p==="")return g[0];const y=g.indexOf(p||null);return g[y>g.length-2?0:y+1]},v=(p,g,y)=>{var m;p.stopPropagation();const S=g.order===y?null:y||h(g),b=(m=p.target)==null?void 0:m.closest("th");if(b&&Yo(b,"noclick")){hi(b,"noclick");return}if(!g.sortable)return;const x=t.store.states;let _=x.sortProp.value,C;const T=x.sortingColumn.value;(T!==g||T===g&&T.order===null)&&(T&&(T.order=null),x.sortingColumn.value=g,_=g.property),S?C=g.order=S:C=g.order=null,x.sortProp.value=_,x.sortOrder.value=C,r==null||r.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:o,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:v,handleFilterClick:a}}function tIe(t){const e=Ye(nl),n=ke("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=EA(l,c.fixed,t.store,u);return Qp(h,"left"),Qp(h,"right"),Object.assign({},d,h)},getHeaderCellClass:(s,l,u,c)=>{const f=TA(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(v=>!!v).join(" ")}}}const VY=t=>{const e=[];return t.forEach(n=>{n.children?(e.push(n),e.push.apply(e,VY(n.children))):e.push(n)}),e},nIe=t=>{let e=1;const n=(i,o)=>{if(o&&(i.level=o.level+1,e<i.level&&(e=i.level)),i.children){let s=0;i.children.forEach(l=>{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<e;i++)r.push([]);return VY(t).forEach(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 rIe(t){const e=Ye(nl),n=A(()=>nIe(t.store.states.originColumns.value));return{isGroup:A(()=>{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 aIe=ae({name:"ElTableHeader",components:{ElCheckbox:co},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(t,{emit:e}){const n=_t(),r=Ye(nl),a=ke("table"),i=G({}),{onColumnsChange:o,onScrollableChange:s}=NY(r);St(async()=>{await Ze(),await Ze();const{prop:_,order:C}=t.defaultSort;r==null||r.store.commit("sort",{prop:_,order:C,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v}=eIe(t,e),{getHeaderRowStyle:p,getHeaderRowClass:g,getHeaderCellStyle:y,getHeaderCellClass:m}=tIe(t),{isGroup:S,toggleAllSelection:b,columnRows:x}=rIe(t);return n.state={onColumnsChange:o,onScrollableChange:s},n.filterPanels=i,{ns:a,filterPanels:i,onColumnsChange:o,onScrollableChange:s,columnRows:x,getHeaderRowClass:g,getHeaderRowStyle:p,getHeaderCellClass:m,getHeaderCellStyle:y,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:d,handleSortClick:h,handleFilterClick:v,isGroup:S,toggleAllSelection:b}},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:v}=this;let p=1;return rt("thead",{class:{[t.is("group")]:e}},n.map((g,y)=>rt("tr",{class:i(y),key:y,style:o(y)},g.map((m,S)=>(m.rowSpan>p&&(p=m.rowSpan),rt("th",{class:a(y,S,g,m),colspan:m.colSpan,key:`${m.id}-thead`,rowspan:m.rowSpan,style:r(y,S,g,m),onClick:b=>s(b,m),onContextmenu:b=>l(b,m),onMousedown:b=>u(b,m),onMousemove:b=>c(b,m),onMouseout:d},[rt("div",{class:["cell",m.filteredValue&&m.filteredValue.length>0?"highlight":""]},[m.renderHeader?m.renderHeader({column:m,$index:S,store:h,_self:v}):m.label,m.sortable&&rt("span",{onClick:b=>f(b,m),class:"caret-wrapper"},[rt("i",{onClick:b=>f(b,m,"ascending"),class:"sort-caret ascending"}),rt("i",{onClick:b=>f(b,m,"descending"),class:"sort-caret descending"})]),m.filterable&&rt(J$e,{store:h,placement:m.filterPlacement||"bottom-start",column:m,upDataColumn:(b,x)=>{m[b]=x}})])]))))))}});function iIe(t){const e=Ye(nl),n=G(""),r=G(rt("div")),{nextZIndex:a}=Tv(),i=(v,p,g)=>{var y;const m=e,S=GT(v);let b;const x=(y=m==null?void 0:m.vnode.el)==null?void 0:y.dataset.prefix;S&&(b=MP({columns:t.store.states.columns.value},S,x),b&&(m==null||m.emit(`cell-${g}`,p,b,S,v))),m==null||m.emit(`row-${g}`,p,b,v)},o=(v,p)=>{i(v,p,"dblclick")},s=(v,p)=>{t.store.commit("setCurrentRow",p),i(v,p,"click")},l=(v,p)=>{i(v,p,"contextmenu")},u=ja(v=>{t.store.commit("setHoverRow",v)},30),c=ja(()=>{t.store.commit("setHoverRow",null)},30),f=v=>{const p=window.getComputedStyle(v,null),g=Number.parseInt(p.paddingLeft,10)||0,y=Number.parseInt(p.paddingRight,10)||0,m=Number.parseInt(p.paddingTop,10)||0,S=Number.parseInt(p.paddingBottom,10)||0;return{left:g,right:y,top:m,bottom:S}};return{handleDoubleClick:o,handleClick:s,handleContextMenu:l,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(v,p,g)=>{var y;const m=e,S=GT(v),b=(y=m==null?void 0:m.vnode.el)==null?void 0:y.dataset.prefix;if(S){const V=MP({columns:t.store.states.columns.value},S,b),F=m.hoverState={cell:S,column:V,row:p};m==null||m.emit("cell-mouse-enter",F.row,F.column,F.cell,v)}if(!g)return;const x=v.target.querySelector(".cell");if(!(Yo(x,`${b}-tooltip`)&&x.childNodes.length))return;const _=document.createRange();_.setStart(x,0),_.setEnd(x,x.childNodes.length);let C=_.getBoundingClientRect().width,T=_.getBoundingClientRect().height;C-Math.floor(C)<.001&&(C=Math.floor(C)),T-Math.floor(T)<.001&&(T=Math.floor(T));const{top:E,left:k,right:R,bottom:O}=f(x),B=k+R,$=E+O;(C+B>x.offsetWidth||T+$>x.offsetHeight||x.scrollWidth>x.offsetWidth)&&$$e(e==null?void 0:e.refs.tableWrapper,S,S.innerText||S.textContent,a,g)},handleCellMouseLeave:v=>{if(!GT(v))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,v)},tooltipContent:n,tooltipTrigger:r}}function oIe(t){const e=Ye(nl),n=ke("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 v=h??{};typeof h=="function"&&(v=h.call(null,{rowIndex:u,columnIndex:c,row:f,column:d}));const p=EA(c,t==null?void 0:t.fixed,t.store);return Qp(p,"left"),Qp(p,"right"),Object.assign({},v,p)},getCellClass:(u,c,f,d,h)=>{const v=TA(n.b(),c,t==null?void 0:t.fixed,t.store,void 0,h),p=[d.id,d.align,d.className,...v],g=e==null?void 0:e.props.cellClassName;return typeof g=="string"?p.push(g):typeof g=="function"&&p.push(g.call(null,{rowIndex:u,columnIndex:c,row:f,column:d})),p.push(n.e("cell")),p.filter(y=>!!y).join(" ")},getSpan:(u,c,f,d)=>{let h=1,v=1;const p=e==null?void 0:e.props.spanMethod;if(typeof p=="function"){const g=p({row:u,column:c,rowIndex:f,columnIndex:d});Array.isArray(g)?(h=g[0],v=g[1]):typeof g=="object"&&(h=g.rowspan,v=g.colspan)}return{rowspan:h,colspan:v}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const d=u.map(({realWidth:h,width:v})=>h||v).slice(f,f+c);return Number(d.reduce((h,v)=>Number(h)+Number(v),-1))}}}function sIe(t){const e=Ye(nl),n=ke("table"),{handleDoubleClick:r,handleClick:a,handleContextMenu:i,handleMouseEnter:o,handleMouseLeave:s,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=iIe(t),{getRowStyle:d,getRowClass:h,getCellStyle:v,getCellClass:p,getSpan:g,getColspanRealWidth:y}=oIe(t),m=A(()=>t.store.states.columns.value.findIndex(({type:C})=>C==="default")),S=(C,T)=>{const D=e.props.rowKey;return D?ra(C,D):T},b=(C,T,D,M=!1)=>{const{tooltipEffect:E,tooltipOptions:k,store:R}=t,{indent:O,columns:B}=R.states,$=h(C,T);let V=!0;return D&&($.push(n.em("row",`level-${D.level}`)),V=D.display),rt("tr",{style:[V?null:{display:"none"},d(C,T)],class:$,key:S(C,T),onDblclick:L=>r(L,C),onClick:L=>a(L,C),onContextmenu:L=>i(L,C),onMouseenter:()=>o(T),onMouseleave:s},B.value.map((L,N)=>{const{rowspan:H,colspan:K}=g(C,L,T,N);if(!H||!K)return null;const Q=Object.assign({},L);Q.realWidth=y(B.value,K,N);const ie={store:t.store,_self:t.context||e,column:Q,row:C,$index:T,cellIndex:N,expanded:M};N===m.value&&D&&(ie.treeNode={indent:D.level*O.value,level:D.level},typeof D.expanded=="boolean"&&(ie.treeNode.expanded=D.expanded,"loading"in D&&(ie.treeNode.loading=D.loading),"noLazyChildren"in D&&(ie.treeNode.noLazyChildren=D.noLazyChildren)));const be=`${T},${N}`,le=Q.columnKey||Q.rawColumnKey||"",J=x(N,L,ie),Z=L.showOverflowTooltip&&f9({effect:E},k,L.showOverflowTooltip);return rt("td",{style:v(T,N,C,L),class:p(T,N,C,L,K-1),key:`${le}${be}`,rowspan:H,colspan:K,onMouseenter:ee=>l(ee,C,Z),onMouseleave:u},[J])}))},x=(C,T,D)=>T.renderCell(D);return{wrappedRowRender:(C,T)=>{const D=t.store,{isRowExpanded:M,assertRowKey:E}=D,{treeData:k,lazyTreeNodeMap:R,childrenColumnName:O,rowKey:B}=D.states,$=D.states.columns.value;if($.some(({type:F})=>F==="expand")){const F=M(C),L=b(C,T,void 0,F),N=e.renderExpanded;return F?N?[[L,rt("tr",{key:`expanded-row__${L.key}`},[rt("td",{colspan:$.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[N({row:C,$index:T,store:D,expanded:F})])])]]:(console.error("[Element Error]renderExpanded is required."),L):[[L]]}else if(Object.keys(k.value).length){E();const F=ra(C,B.value);let L=k.value[F],N=null;L&&(N={expanded:L.expanded,level:L.level,display:!0},typeof L.lazy=="boolean"&&(typeof L.loaded=="boolean"&&L.loaded&&(N.noLazyChildren=!(L.children&&L.children.length)),N.loading=L.loading));const H=[b(C,T,N)];if(L){let K=0;const Q=(be,le)=>{be&&be.length&&le&&be.forEach(J=>{const Z={display:le.display&&le.expanded,level:le.level+1,expanded:!1,noLazyChildren:!1,loading:!1},ee=ra(J,B.value);if(ee==null)throw new Error("For nested data item, row-key is required.");if(L={...k.value[ee]},L&&(Z.expanded=L.expanded,L.level=L.level||Z.level,L.display=!!(L.expanded&&Z.display),typeof L.lazy=="boolean"&&(typeof L.loaded=="boolean"&&L.loaded&&(Z.noLazyChildren=!(L.children&&L.children.length)),Z.loading=L.loading)),K++,H.push(b(J,T+K,Z)),L){const ce=R.value[ee]||J[O.value];Q(ce,L)}})};L.display=!0;const ie=R.value[F]||C[O.value];Q(ie,L)}return H}else return b(C,T,void 0)},tooltipContent:c,tooltipTrigger:f}}const lIe={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 uIe=ae({name:"ElTableBody",props:lIe,setup(t){const e=_t(),n=Ye(nl),r=ke("table"),{wrappedRowRender:a,tooltipContent:i,tooltipTrigger:o}=sIe(t),{onColumnsChange:s,onScrollableChange:l}=NY(n);return Me(t.store.states.hoverRow,(u,c)=>{!t.store.states.isComplex.value||!Ht||Hp(()=>{const f=e==null?void 0:e.vnode.el,d=Array.from((f==null?void 0:f.children)||[]).filter(p=>p==null?void 0:p.classList.contains(`${r.e("row")}`)),h=d[c],v=d[u];h&&hi(h,"hover-row"),v&&As(v,"hover-row")})}),Mc(()=>{var u;(u=pl)==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 rt("tbody",{tabIndex:-1},[n.reduce((r,a)=>r.concat(t(a,r.length)),[])])}});function MA(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 rt("colgroup",{},n.map(a=>rt("col",r(a))))}MA.props=["columns","tableLayout"];function cIe(){const t=Ye(nl),e=t==null?void 0:t.store,n=A(()=>e.states.fixedLeafColumnsLength.value),r=A(()=>e.states.rightFixedColumns.value.length),a=A(()=>e.states.columns.value.length),i=A(()=>e.states.fixedColumns.value.length),o=A(()=>e.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:r,columnsCount:a,leftFixedCount:i,rightFixedCount:o,columns:e.states.columns}}function fIe(t){const{columns:e}=cIe(),n=ke("table");return{getCellClasses:(i,o)=>{const s=i[o],l=[n.e("cell"),s.id,s.align,s.labelClassName,...TA(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=EA(o,i.fixed,t.store);return Qp(s,"left"),Qp(s,"right"),s},columns:e}}var dIe=ae({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}=fIe(t);return{ns:ke("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(v=>Number(v[l.property])),f=[];let d=!0;c.forEach(v=>{if(!Number.isNaN(+v)){d=!1;const p=`${v}`.split(".")[1];f.push(p?p.length:0)}});const h=Math.max.apply(null,f);d?s[u]="":s[u]=c.reduce((v,p)=>{const g=Number(p);return Number.isNaN(+g)?v:Number.parseFloat((v+p).toFixed(Math.min(h,20)))},0)}),rt("table",{class:i.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[MA({columns:t}),rt("tbody",[rt("tr",{},[...t.map((l,u)=>rt("td",{key:u,colspan:l.colSpan,rowspan:l.rowSpan,class:n(t,u),style:e(l,u)},[rt("div",{class:["cell",l.labelClassName]},[s[u]])]))])])])}});function hIe(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 pIe(t,e,n,r){const a=G(!1),i=G(null),o=G(!1),s=L=>{o.value=L},l=G({width:null,height:null,headerHeight:null}),u=G(!1),c={display:"inline-block",verticalAlign:"middle"},f=G(),d=G(0),h=G(0),v=G(0),p=G(0),g=G(0);Di(()=>{e.setHeight(t.height)}),Di(()=>{e.setMaxHeight(t.maxHeight)}),Me(()=>[t.currentRowKey,n.states.rowKey],([L,N])=>{!w(N)||!w(L)||n.setCurrentRowKey(`${L}`)},{immediate:!0}),Me(()=>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,N)=>{const{pixelX:H,pixelY:K}=N;Math.abs(H)>=Math.abs(K)&&(r.refs.bodyWrapper.scrollLeft+=N.pixelX/5)},S=A(()=>t.height||t.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),b=A(()=>({width:e.bodyWidth.value?`${e.bodyWidth.value}px`:""})),x=()=>{S.value&&e.updateElsHeight(),e.updateColumnsWidth(),requestAnimationFrame(D)};St(async()=>{await Ze(),n.updateColumns(),M(),requestAnimationFrame(x);const L=r.vnode.el,N=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&&N?N.offsetHeight:null},n.states.columns.value.forEach(H=>{H.filteredValue&&H.filteredValue.length&&r.store.commit("filterChange",{column:H,values:H.filteredValue,silent:!0})}),r.$ready=!0});const _=(L,N)=>{if(!L)return;const H=Array.from(L.classList).filter(K=>!K.startsWith("is-scrolling-"));H.push(e.scrollX.value?N:"is-scrolling-none"),L.className=H.join(" ")},C=L=>{const{tableWrapper:N}=r.refs;_(N,L)},T=L=>{const{tableWrapper:N}=r.refs;return!!(N&&N.classList.contains(L))},D=function(){if(!r.refs.scrollBarRef)return;if(!e.scrollX.value){const le="is-scrolling-none";T(le)||C(le);return}const L=r.refs.scrollBarRef.wrapRef;if(!L)return;const{scrollLeft:N,offsetWidth:H,scrollWidth:K}=L,{headerWrapper:Q,footerWrapper:ie}=r.refs;Q&&(Q.scrollLeft=N),ie&&(ie.scrollLeft=N);const be=K-H-1;N>=be?C("is-scrolling-right"):C(N===0?"is-scrolling-left":"is-scrolling-middle")},M=()=>{r.refs.scrollBarRef&&(r.refs.scrollBarRef.wrapRef&&$n(r.refs.scrollBarRef.wrapRef,"scroll",D,{passive:!0}),t.fit?xa(r.vnode.el,E):$n(window,"resize",E),xa(r.refs.bodyWrapper,()=>{var L,N;E(),(N=(L=r.refs)==null?void 0:L.scrollBarRef)==null||N.update()}))},E=()=>{var L,N,H,K;const Q=r.vnode.el;if(!r.$ready||!Q)return;let ie=!1;const{width:be,height:le,headerHeight:J}=l.value,Z=f.value=Q.offsetWidth;be!==Z&&(ie=!0);const ee=Q.offsetHeight;(t.height||S.value)&&le!==ee&&(ie=!0);const ce=t.tableLayout==="fixed"?r.refs.headerWrapper:(L=r.refs.tableHeaderRef)==null?void 0:L.$el;t.showHeader&&(ce==null?void 0:ce.offsetHeight)!==J&&(ie=!0),d.value=((N=r.refs.tableWrapper)==null?void 0:N.scrollHeight)||0,v.value=(ce==null?void 0:ce.scrollHeight)||0,p.value=((H=r.refs.footerWrapper)==null?void 0:H.offsetHeight)||0,g.value=((K=r.refs.appendWrapper)==null?void 0:K.offsetHeight)||0,h.value=d.value-v.value-p.value-g.value,ie&&(l.value={width:Z,height:ee,headerHeight:t.showHeader&&(ce==null?void 0:ce.offsetHeight)||0},x())},k=_r(),R=A(()=>{const{bodyWidth:L,scrollY:N,gutterWidth:H}=e;return L.value?`${L.value-(N.value?H:0)}px`:""}),O=A(()=>t.maxHeight?"fixed":t.tableLayout),B=A(()=>{if(t.data&&t.data.length)return null;let L="100%";t.height&&h.value&&(L=`${h.value}px`);const N=f.value;return{width:N?`${N}px`:"",height:L}}),$=A(()=>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`}:{}),V=A(()=>t.height?{height:"100%"}:t.maxHeight?Number.isNaN(Number(t.maxHeight))?{maxHeight:`calc(${t.maxHeight} - ${v.value+p.value}px)`}:{maxHeight:`${t.maxHeight-v.value-p.value}px`}:{});return{isHidden:a,renderExpanded:i,setDragVisible:s,isGroup:u,handleMouseLeave:y,handleHeaderFooterMousewheel:m,tableSize:k,emptyBlockStyle:B,handleFixedMousewheel:(L,N)=>{const H=r.refs.bodyWrapper;if(Math.abs(N.spinY)>0){const K=H.scrollTop;N.pixelY<0&&K!==0&&L.preventDefault(),N.pixelY>0&&H.scrollHeight-H.clientHeight>K&&L.preventDefault(),H.scrollTop+=Math.ceil(N.pixelY/5)}else H.scrollLeft+=Math.ceil(N.pixelX/5)},resizeProxyVisible:o,bodyWidth:R,resizeState:l,doLayout:x,tableBodyStyles:b,tableLayout:O,scrollbarViewStyle:c,tableInnerStyle:$,scrollbarStyle:V}}function vIe(t){const e=G(),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)};St(()=>{n()}),Mc(()=>{var r;(r=e.value)==null||r.disconnect()})}var gIe={data:{type:Array,default:()=>[]},size:sa,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean,showOverflowTooltip:[Boolean,Object]};const yIe=()=>{const t=G(),e=(i,o)=>{const s=t.value;s&&s.scrollTo(i,o)},n=(i,o)=>{const s=t.value;s&&ut(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 mIe=1;const SIe=ae({name:"ElTable",directives:{Mousewheel:aEe},components:{TableHeader:aIe,TableBody:uIe,TableFooter:dIe,ElScrollbar:Jl,hColgroup:MA},props:gIe,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}=jt(),n=ke("table"),r=_t();At(nl,r);const a=H$e(r,t);r.store=a;const i=new K$e({store:r.store,table:r,fit:t.fit,showHeader:t.showHeader});r.layout=i;const o=A(()=>(a.states.data.value||[]).length===0),{setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,sort:p}=hIe(a),{isHidden:g,renderExpanded:y,setDragVisible:m,isGroup:S,handleMouseLeave:b,handleHeaderFooterMousewheel:x,tableSize:_,emptyBlockStyle:C,handleFixedMousewheel:T,resizeProxyVisible:D,bodyWidth:M,resizeState:E,doLayout:k,tableBodyStyles:R,tableLayout:O,scrollbarViewStyle:B,tableInnerStyle:$,scrollbarStyle:V}=pIe(t,i,a,r),{scrollBarRef:F,scrollTo:L,setScrollLeft:N,setScrollTop:H}=yIe(),K=ja(k,50),Q=`${n.namespace.value}-table_${mIe++}`;r.tableId=Q,r.state={isGroup:S,resizeState:E,doLayout:k,debouncedUpdateLayout:K};const ie=A(()=>t.sumText||e("el.table.sumText")),be=A(()=>t.emptyText||e("el.table.emptyText"));return vIe(r),{ns:n,layout:i,store:a,handleHeaderFooterMousewheel:x,handleMouseLeave:b,tableId:Q,tableSize:_,isHidden:g,isEmpty:o,renderExpanded:y,resizeProxyVisible:D,resizeState:E,isGroup:S,bodyWidth:M,tableBodyStyles:R,emptyBlockStyle:C,debouncedUpdateLayout:K,handleFixedMousewheel:T,setCurrentRow:s,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:d,toggleRowExpansion:h,clearSort:v,doLayout:k,sort:p,t:e,setDragVisible:m,context:r,computedSumText:ie,computedEmptyText:be,tableLayout:O,scrollbarViewStyle:B,tableInnerStyle:$,scrollbarStyle:V,scrollBarRef:F,scrollTo:L,setScrollLeft:N,setScrollTop:H}}}),bIe=["data-prefix"],wIe={ref:"hiddenColumns",class:"hidden-columns"};function _Ie(t,e,n,r,a,i){const o=Pe("hColgroup"),s=Pe("table-header"),l=Pe("table-body"),u=Pe("el-scrollbar"),c=Pe("table-footer"),f=Vp("mousewheel");return I(),X("div",{ref:"tableWrapper",class:z([{[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:et(t.style),"data-prefix":t.ns.namespace.value,onMouseleave:e[0]||(e[0]=(...d)=>t.handleMouseLeave&&t.handleMouseLeave(...d))},[P("div",{class:z(t.ns.e("inner-wrapper")),style:et(t.tableInnerStyle)},[P("div",wIe,[Ce(t.$slots,"default")],512),t.showHeader&&t.tableLayout==="fixed"?ct((I(),X("div",{key:0,ref:"headerWrapper",class:z(t.ns.e("header-wrapper"))},[P("table",{ref:"tableHeader",class:z(t.ns.e("header")),style:et(t.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[U(o,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),U(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]]):de("v-if",!0),P("div",{ref:"bodyWrapper",class:z(t.ns.e("body-wrapper"))},[U(u,{ref:"scrollBarRef","view-style":t.scrollbarViewStyle,"wrap-style":t.scrollbarStyle,always:t.scrollbarAlwaysOn},{default:q(()=>[P("table",{ref:"tableBody",class:z(t.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:et({width:t.bodyWidth,tableLayout:t.tableLayout})},[U(o,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),t.showHeader&&t.tableLayout==="auto"?(I(),ve(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"])):de("v-if",!0),U(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?(I(),X("div",{key:0,ref:"emptyBlock",style:et(t.emptyBlockStyle),class:z(t.ns.e("empty-block"))},[P("span",{class:z(t.ns.e("empty-text"))},[Ce(t.$slots,"empty",{},()=>[dt(Le(t.computedEmptyText),1)])],2)],6)):de("v-if",!0),t.$slots.append?(I(),X("div",{key:1,ref:"appendWrapper",class:z(t.ns.e("append-wrapper"))},[Ce(t.$slots,"append")],2)):de("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),t.showSummary?ct((I(),X("div",{key:1,ref:"footerWrapper",class:z(t.ns.e("footer-wrapper"))},[U(c,{border:t.border,"default-sort":t.defaultSort,store:t.store,style:et(t.tableBodyStyles),"sum-text":t.computedSumText,"summary-method":t.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[Nt,!t.isEmpty],[f,t.handleHeaderFooterMousewheel]]):de("v-if",!0),t.border||t.isGroup?(I(),X("div",{key:2,class:z(t.ns.e("border-left-patch"))},null,2)):de("v-if",!0)],6),ct(P("div",{ref:"resizeProxy",class:z(t.ns.e("column-resize-proxy"))},null,2),[[Nt,t.resizeProxyVisible]])],46,bIe)}var xIe=Ae(SIe,[["render",_Ie],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const CIe={selection:"table-column--selection",expand:"table__expand-column"},TIe={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:""}},EIe=t=>CIe[t]||"",MIe={selection:{renderHeader({store:t,column:e}){function n(){return t.states.data.value&&t.states.data.value.length===0}return rt(co,{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 rt(co,{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)),rt("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")),rt("div",{class:a,onClick:function(o){o.stopPropagation(),e.toggleRowExpansion(t)}},{default:()=>[rt(qe,null,{default:()=>[rt(za)]})]})},sortable:!1,resizable:!1}};function DIe({row:t,column:e,$index:n}){var r;const a=e.property,i=a&&Eb(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 kIe({row:t,treeNode:e,store:n},r=!1){const{ns:a}=n;if(!e)return r?[rt("span",{class:a.e("placeholder")})]:null;const i=[],o=function(s){s.stopPropagation(),!e.loading&&n.loadOrToggle(t)};if(e.indent&&i.push(rt("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=za;e.loading&&(l=Rc),i.push(rt("div",{class:s,onClick:o},{default:()=>[rt(qe,{class:{[a.is("loading")]:e.loading}},{default:()=>[rt(l)]})]}))}else i.push(rt("span",{class:a.e("placeholder")}));return i}function RP(t,e){return t.reduce((n,r)=>(n[r]=r,n),e)}function RIe(t,e){const n=_t();return{registerComplexWatchers:()=>{const i=["fixed"],o={realWidth:"width",realMinWidth:"minWidth"},s=RP(i,o);Object.keys(s).forEach(l=>{const u=o[l];Gt(e,u)&&Me(()=>e[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=CA(c)),u==="minWidth"&&l==="realMinWidth"&&(f=kY(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=RP(i,o);Object.keys(s).forEach(l=>{const u=o[l];Gt(e,u)&&Me(()=>e[u],c=>{n.columnConfig.value[l]=c})})}}}function LIe(t,e,n){const r=_t(),a=G(""),i=G(!1),o=G(),s=G(),l=ke("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=A(()=>{let b=r.vnode.vParent||r.parent;for(;b&&!b.tableId&&!b.columnId;)b=b.vnode.vParent||b.parent;return b}),c=A(()=>{const{store:b}=r.parent;if(!b)return!1;const{treeData:x}=b.states,_=x.value;return _&&Object.keys(_).length>0}),f=G(CA(t.width)),d=G(kY(t.minWidth)),h=b=>(f.value&&(b.width=f.value),d.value&&(b.minWidth=d.value),!f.value&&d.value&&(b.width=void 0),b.minWidth||(b.minWidth=80),b.realWidth=Number(b.width===void 0?b.minWidth:b.width),b),v=b=>{const x=b.type,_=MIe[x]||{};Object.keys(_).forEach(T=>{const D=_[T];T!=="className"&&D!==void 0&&(b[T]=D)});const C=EIe(x);if(C){const T=`${w(l.namespace)}-${C}`;b.className=b.className?`${b.className} ${T}`:T}return b},p=b=>{Array.isArray(b)?b.forEach(_=>x(_)):x(b);function x(_){var C;((C=_==null?void 0:_.type)==null?void 0:C.name)==="ElTableColumn"&&(_.vParent=r)}};return{columnId:a,realAlign:o,isSubColumn:i,realHeaderAlign:s,columnOrTableParent:u,setColumnWidth:h,setColumnForcedProps:v,setColumnRenders:b=>{t.renderHeader||b.type!=="selection"&&(b.renderHeader=_=>{r.columnConfig.value.label;const C=e.header;return C?C(_):b.label});let x=b.renderCell;return b.type==="expand"?(b.renderCell=_=>rt("div",{class:"cell"},[x(_)]),n.value.renderExpanded=_=>e.default?e.default(_):e.default):(x=x||DIe,b.renderCell=_=>{let C=null;if(e.default){const R=e.default(_);C=R.some(O=>O.type!==Fa)?R:x(_)}else C=x(_);const{columns:T}=n.value.store.states,D=T.value.findIndex(R=>R.type==="default"),M=c.value&&_.cellIndex===D,E=kIe(_,M),k={class:"cell",style:{}};return b.showOverflowTooltip&&(k.class=`${k.class} ${w(l.namespace)}-tooltip`,k.style={width:`${(_.column.realWidth||Number(_.column.width))-1}px`}),p(C),rt("div",k,[E,C])}),b},getPropsData:(...b)=>b.reduce((x,_)=>(Array.isArray(_)&&_.forEach(C=>{x[C]=t[C]}),x),{}),getColumnElIndex:(b,x)=>Array.prototype.indexOf.call(b,x),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",r.columnConfig.value)}}}var OIe={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 AIe=1;var BY=ae({name:"ElTableColumn",components:{ElCheckbox:co},props:OIe,setup(t,{slots:e}){const n=_t(),r=G({}),a=A(()=>{let S=n.parent;for(;S&&!S.tableId;)S=S.parent;return S}),{registerNormalWatchers:i,registerComplexWatchers:o}=RIe(a,t),{columnId:s,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:d,setColumnRenders:h,getPropsData:v,getColumnElIndex:p,realAlign:g,updateColumnOrder:y}=LIe(t,e,a),m=c.value;s.value=`${m.tableId||m.columnId}_column_${AIe++}`,Ex(()=>{l.value=a.value!==m;const S=t.type||"default",b=t.sortable===""?!0:t.sortable,x=kr(t.showOverflowTooltip)?m.props.showOverflowTooltip:t.showOverflowTooltip,_={...TIe[S],id:s.value,type:S,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:b,index:t.index,rawColumnKey:n.vnode.key};let E=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);E=A$e(_,E),E=V$e(h,f,d)(E),r.value=E,i(),o()}),St(()=>{var S;const b=c.value,x=l.value?b.vnode.el.children:(S=b.refs.hiddenColumns)==null?void 0:S.children,_=()=>p(x||[],n.vnode.el);r.value.getColumnIndex=_,_()>-1&&a.value.store.commit("insertColumn",r.value,l.value?b.columnConfig.value:null,y)}),Pn(()=>{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===Qe&&Array.isArray(o.children)&&o.children.forEach(s=>{(s==null?void 0:s.patchFlag)!==1024&&!vt(s==null?void 0:s.children)&&a.push(s)});return rt("div",a)}catch{return rt("div",[])}}});const NIe=Tt(xIe,{TableColumn:BY}),VIe=Qn(BY);var wy=(t=>(t.ASC="asc",t.DESC="desc",t))(wy||{}),_y=(t=>(t.CENTER="center",t.RIGHT="right",t))(_y||{}),$Y=(t=>(t.LEFT="left",t.RIGHT="right",t))($Y||{});const ck={asc:"desc",desc:"asc"},xy=Symbol("placeholder"),BIe=(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 $Ie(t,e,n){const r=A(()=>w(e).filter(p=>!p.hidden)),a=A(()=>w(r).filter(p=>p.fixed==="left"||p.fixed===!0)),i=A(()=>w(r).filter(p=>p.fixed==="right")),o=A(()=>w(r).filter(p=>!p.fixed)),s=A(()=>{const p=[];return w(a).forEach(g=>{p.push({...g,placeholderSign:xy})}),w(o).forEach(g=>{p.push(g)}),w(i).forEach(g=>{p.push({...g,placeholderSign:xy})}),p}),l=A(()=>w(a).length||w(i).length),u=A(()=>w(e).reduce((g,y)=>(g[y.key]=BIe(y,w(n),t.fixed),g),{})),c=A(()=>w(r).reduce((p,g)=>p+g.width,0)),f=p=>w(e).find(g=>g.key===p),d=p=>w(u)[p],h=(p,g)=>{p.width=g};function v(p){var g;const{key:y}=p.currentTarget.dataset;if(!y)return;const{sortState:m,sortBy:S}=t;let b=wy.ASC;Lt(m)?b=ck[m[y]]:b=ck[S.order],(g=t.onColumnSort)==null||g.call(t,{column:f(y),key:y,order:b})}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:v}}const IIe=(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r,onMaybeEndReached:a})=>{const i=G({scrollLeft:0,scrollTop:0});function o(h){var v,p,g;const{scrollTop:y}=h;(v=e.value)==null||v.scrollTo(h),(p=n.value)==null||p.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(w(i))}function u(h){var v,p;i.value.scrollLeft=h,(p=(v=e.value)==null?void 0:v.scrollTo)==null||p.call(v,w(i))}function c(h){var v;s(h),(v=t.onScroll)==null||v.call(t,h)}function f({scrollTop:h}){const{scrollTop:v}=w(i);h!==v&&l(h)}function d(h,v="auto"){var p;(p=e.value)==null||p.scrollToRow(h,v)}return Me(()=>w(i).scrollTop,(h,v)=>{h>v&&a()}),{scrollPos:i,scrollTo:s,scrollToLeft:u,scrollToTop:l,scrollToRow:d,onScroll:c,onVerticalScroll:f}},PIe=(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r})=>{const a=_t(),{emit:i}=a,o=Cn(!1),s=Cn(null),l=G(t.defaultExpandedRowKeys||[]),u=G(-1),c=Cn(null),f=G({}),d=G({}),h=Cn({}),v=Cn({}),p=Cn({}),g=A(()=>ut(t.estimatedRowHeight));function y(T){var D;(D=t.onRowsRendered)==null||D.call(t,T),T.rowCacheEnd>w(u)&&(u.value=T.rowCacheEnd)}function m({hovered:T,rowKey:D}){s.value=T?D:null}function S({expanded:T,rowData:D,rowIndex:M,rowKey:E}){var k,R;const O=[...w(l)],B=O.indexOf(E);T?B===-1&&O.push(E):B>-1&&O.splice(B,1),l.value=O,i("update:expandedRowKeys",O),(k=t.onRowExpand)==null||k.call(t,{expanded:T,rowData:D,rowIndex:M,rowKey:E}),(R=t.onExpandedRowsChange)==null||R.call(t,O)}const b=ja(()=>{var T,D,M,E;o.value=!0,f.value={...w(f),...w(d)},x(w(c),!1),d.value={},c.value=null,(T=e.value)==null||T.forceUpdate(),(D=n.value)==null||D.forceUpdate(),(M=r.value)==null||M.forceUpdate(),(E=a.proxy)==null||E.$forceUpdate(),o.value=!1},0);function x(T,D=!1){w(g)&&[e,n,r].forEach(M=>{const E=w(M);E&&E.resetAfterRowIndex(T,D)})}function _(T,D,M){const E=w(c);(E===null||E>M)&&(c.value=M),d.value[T]=D}function C({rowKey:T,height:D,rowIndex:M},E){E?E===$Y.RIGHT?p.value[T]=D:h.value[T]=D:v.value[T]=D;const k=Math.max(...[h,p,v].map(R=>R.value[T]||0));w(f)[T]!==k&&(_(T,k,M),b())}return{hoveringRowKey:s,expandedRowKeys:l,lastRenderedRowIndex:u,isDynamic:g,isResetting:o,rowHeights:f,resetAfterIndex:x,onRowExpanded:S,onRowHovered:m,onRowsRendered:y,onRowHeightChange:C}},FIe=(t,{expandedRowKeys:e,lastRenderedRowIndex:n,resetAfterIndex:r})=>{const a=G({}),i=A(()=>{const s={},{data:l,rowKey:u}=t,c=w(e);if(!c||!c.length)return l;const f=[],d=new Set;c.forEach(v=>d.add(v));let h=l.slice();for(h.forEach(v=>s[v[u]]=0);h.length>0;){const v=h.shift();f.push(v),d.has(v[u])&&Array.isArray(v.children)&&v.children.length>0&&(h=[...v.children,...h],v.children.forEach(p=>s[p[u]]=s[v[u]]+1))}return a.value=s,f}),o=A(()=>{const{data:s,expandColumnKey:l}=t;return l?w(i):s});return Me(o,(s,l)=>{s!==l&&(n.value=-1,r(0,!0))}),{data:o,depthMap:a}},zIe=(t,e)=>t+e,zb=t=>Ke(t)?t.reduce(zIe,0):t,Ad=(t,e,n={})=>ft(t)?t(e):t??n,Fu=t=>(["width","maxWidth","minWidth","height"].forEach(e=>{t[e]=rr(t[e])}),t),IY=t=>Hn(t)?e=>rt(t,e):t,GIe=(t,{columnsTotalWidth:e,data:n,fixedColumnsOnLeft:r,fixedColumnsOnRight:a})=>{const i=A(()=>{const{fixed:S,width:b,vScrollbarSize:x}=t,_=b-x;return S?Math.max(Math.round(w(e)),_):_}),o=A(()=>w(i)+(t.fixed?t.vScrollbarSize:0)),s=A(()=>{const{height:S=0,maxHeight:b=0,footerHeight:x,hScrollbarSize:_}=t;if(b>0){const C=w(v),T=w(l),M=w(h)+C+T+_;return Math.min(M,b-x)}return S-x}),l=A(()=>{const{rowHeight:S,estimatedRowHeight:b}=t,x=w(n);return ut(b)?x.length*b:x.length*S}),u=A(()=>{const{maxHeight:S}=t,b=w(s);if(ut(S)&&S>0)return b;const x=w(l)+w(h)+w(v);return Math.min(b,x)}),c=S=>S.width,f=A(()=>zb(w(r).map(c))),d=A(()=>zb(w(a).map(c))),h=A(()=>zb(t.headerHeight)),v=A(()=>{var S;return(((S=t.fixedData)==null?void 0:S.length)||0)*t.rowHeight}),p=A(()=>w(s)-w(h)-w(v)),g=A(()=>{const{style:S={},height:b,width:x}=t;return Fu({...S,height:b,width:x})}),y=A(()=>Fu({height:t.footerHeight})),m=A(()=>({top:rr(w(h)),bottom:rr(t.footerHeight),width:rr(t.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:s,leftTableWidth:f,rightTableWidth:d,headerWidth:o,rowsHeight:l,windowHeight:p,footerHeight:y,emptyStyle:m,rootStyle:g,headerHeight:h}},UIe=t=>{const e=G(),n=G(0),r=G(0);let a;return St(()=>{a=xa(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,v=Number.parseInt(c)||0,p=Number.parseInt(f)||0;n.value=o-d-h,r.value=s-v-p}).stop}),Pn(()=>{a==null||a()}),Me([n,r],([i,o])=>{var s;(s=t.onResize)==null||s.call(t,{width:i,height:o})}),{sizer:e,width:n,height:r}};function HIe(t){const e=G(),n=G(),r=G(),{columns:a,columnsStyles:i,columnsTotalWidth:o,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=$Ie(t,Kn(t,"columns"),Kn(t,"fixed")),{scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:y,scrollPos:m}=IIe(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r,onMaybeEndReached:Y}),{expandedRowKeys:S,hoveringRowKey:b,lastRenderedRowIndex:x,isDynamic:_,isResetting:C,rowHeights:T,resetAfterIndex:D,onRowExpanded:M,onRowHeightChange:E,onRowHovered:k,onRowsRendered:R}=PIe(t,{mainTableRef:e,leftTableRef:n,rightTableRef:r}),{data:O,depthMap:B}=FIe(t,{expandedRowKeys:S,lastRenderedRowIndex:x,resetAfterIndex:D}),{bodyWidth:$,fixedTableHeight:V,mainTableHeight:F,leftTableWidth:L,rightTableWidth:N,headerWidth:H,rowsHeight:K,windowHeight:Q,footerHeight:ie,emptyStyle:be,rootStyle:le,headerHeight:J}=GIe(t,{columnsTotalWidth:o,data:O,fixedColumnsOnLeft:s,fixedColumnsOnRight:l}),Z=Cn(!1),ee=G(),ce=A(()=>{const te=w(O).length===0;return Ke(t.fixedData)?t.fixedData.length===0&&te:te});function ue(te){const{estimatedRowHeight:oe,rowHeight:Se,rowKey:fe}=t;return oe?w(T)[w(O)[te][fe]]||oe:Se}function Y(){const{onEndReached:te}=t;if(!te)return;const{scrollTop:oe}=w(m),Se=w(K),fe=w(Q),ne=Se-(oe+fe)+t.hScrollbarSize;w(x)>=0&&Se===oe+w(F)-w(J)&&te(ne)}return Me(()=>t.expandedRowKeys,te=>S.value=te,{deep:!0}),{columns:a,containerRef:ee,mainTableRef:e,leftTableRef:n,rightTableRef:r,isDynamic:_,isResetting:C,isScrolling:Z,hoveringRowKey:b,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:o,data:O,expandedRowKeys:S,depthMap:B,fixedColumnsOnLeft:s,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:$,emptyStyle:be,rootStyle:le,headerWidth:H,footerHeight:ie,mainTableHeight:F,fixedTableHeight:V,leftTableWidth:L,rightTableWidth:N,showEmpty:ce,getRowHeight:ue,onColumnSorted:f,onRowHovered:k,onRowExpanded:M,onRowsRendered:R,onRowHeightChange:E,scrollTo:d,scrollToLeft:h,scrollToTop:v,scrollToRow:p,onScroll:g,onVerticalScroll:y}}const DA=Symbol("tableV2"),PY=String,Rm={type:ge(Array),required:!0},kA={type:ge(Array)},FY={...kA,required:!0},WIe=String,LP={type:ge(Array),default:()=>Gn([])},zf={type:Number,required:!0},zY={type:ge([String,Number,Symbol]),default:"id"},OP={type:ge(Object)},td=Ne({class:String,columns:Rm,columnsStyles:{type:ge(Object),required:!0},depth:Number,expandColumnKey:WIe,estimatedRowHeight:{...vd.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:ge(Function)},onRowHover:{type:ge(Function)},onRowHeightChange:{type:ge(Function)},rowData:{type:ge(Object),required:!0},rowEventHandlers:{type:ge(Object)},rowIndex:{type:Number,required:!0},rowKey:zY,style:{type:ge(Object)}}),UT={type:Number,required:!0},RA=Ne({class:String,columns:Rm,fixedHeaderData:{type:ge(Array)},headerData:{type:ge(Array),required:!0},headerHeight:{type:ge([Number,Array]),default:50},rowWidth:UT,rowHeight:{type:Number,default:50},height:UT,width:UT}),Gb=Ne({columns:Rm,data:FY,fixedData:kA,estimatedRowHeight:td.estimatedRowHeight,width:zf,height:zf,headerWidth:zf,headerHeight:RA.headerHeight,bodyWidth:zf,rowHeight:zf,cache:fY.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:vd.scrollbarAlwaysOn,scrollbarStartGap:vd.scrollbarStartGap,scrollbarEndGap:vd.scrollbarEndGap,class:PY,style:OP,containerStyle:OP,getRowHeight:{type:ge(Function),required:!0},rowKey:td.rowKey,onRowsRendered:{type:ge(Function)},onScroll:{type:ge(Function)}}),KIe=Ne({cache:Gb.cache,estimatedRowHeight:td.estimatedRowHeight,rowKey:zY,headerClass:{type:ge([String,Function])},headerProps:{type:ge([Object,Function])},headerCellProps:{type:ge([Object,Function])},headerHeight:RA.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:ge([String,Function])},rowProps:{type:ge([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:ge([Object,Function])},columns:Rm,data:FY,dataGetter:{type:ge(Function)},fixedData:kA,expandColumnKey:td.expandColumnKey,expandedRowKeys:LP,defaultExpandedRowKeys:LP,class:PY,fixed:Boolean,style:{type:ge(Object)},width:zf,height:zf,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:vd.hScrollbarSize,vScrollbarSize:vd.vScrollbarSize,scrollbarAlwaysOn:pY.alwaysOn,sortBy:{type:ge(Object),default:()=>({})},sortState:{type:ge(Object),default:void 0},onColumnSort:{type:ge(Function)},onExpandedRowsChange:{type:ge(Function)},onEndReached:{type:ge(Function)},onRowExpand:td.onRowExpand,onScroll:Gb.onScroll,onRowsRendered:Gb.onRowsRendered,rowEventHandlers:td.rowEventHandlers}),LA=(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 U("div",{class:t.class,title:i,style:a},[e.default?e.default(t):i])};LA.displayName="ElTableV2Cell";LA.inheritAttrs=!1;const OA=(t,{slots:e})=>{var n,r;return e.default?e.default(t):U("div",{class:t.class,title:(n=t.column)==null?void 0:n.title},[(r=t.column)==null?void 0:r.title])};OA.displayName="ElTableV2HeaderCell";OA.inheritAttrs=!1;const jIe=Ne({class:String,columns:Rm,columnsStyles:{type:ge(Object),required:!0},headerIndex:Number,style:{type:ge(Object)}}),YIe=ae({name:"ElTableV2HeaderRow",props:jIe,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=>Ke(s)&&s.length===1?s[0]:s),columns:n,headerIndex:a})),U("div",{class:t.class,style:i,role:"row"},[o])}}}),XIe="ElTableV2Header",qIe=ae({name:XIe,props:RA,setup(t,{slots:e,expose:n}){const r=ke("table-v2"),a=G(),i=A(()=>Fu({width:t.width,height:t.height})),o=A(()=>Fu({width:t.rowWidth,height:t.height})),s=A(()=>Od(w(t.headerHeight))),l=f=>{const d=w(a);Ze(()=>{d!=null&&d.scroll&&d.scroll({left:f})})},u=()=>{const f=r.e("fixed-header-row"),{columns:d,fixedHeaderData:h,rowHeight:v}=t;return h==null?void 0:h.map((p,g)=>{var y;const m=Fu({height:v,width:"100%"});return(y=e.fixed)==null?void 0:y.call(e,{class:f,columns:d,rowData:p,rowIndex:-(g+1),style:m})})},c=()=>{const f=r.e("dynamic-header-row"),{columns:d}=t;return w(s).map((h,v)=>{var p;const g=Fu({width:"100%",height:h});return(p=e.dynamic)==null?void 0:p.call(e,{class:f,columns:d,headerIndex:v,style:g})})};return n({scrollToLeft:l}),()=>{if(!(t.height<=0))return U("div",{ref:a,class:t.class,style:w(i),role:"rowgroup"},[U("div",{style:w(o),class:r.e("header")},[c(),u()])])}}}),ZIe=t=>{const{isScrolling:e}=Ye(DA),n=G(!1),r=G(),a=A(()=>ut(t.estimatedRowHeight)&&t.rowIndex>=0),i=(l=!1)=>{const u=w(r);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:d,rowIndex:h,style:v}=t,{height:p}=u.getBoundingClientRect();n.value=!0,Ze(()=>{if(l||p!==Number.parseInt(v.height)){const g=c[0],y=(g==null?void 0:g.placeholderSign)===xy;f==null||f({rowKey:d,height:p,rowIndex:h},g&&!y&&g.fixed)}})},o=A(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=t,d=t.rowEventHandlers||{},h={};return Object.entries(d).forEach(([v,p])=>{ft(p)&&(h[v]=g=>{p({event:g,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:v,hovered:p})=>{const g=h[v];h[v]=y=>{f({event:y,hovered:p,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 St(()=>{w(a)&&i(!0)}),{isScrolling:e,measurable:a,measured:n,rowRef:r,eventHandlers:o,onExpand:s}},QIe="ElTableV2TableRow",JIe=ae({name:QIe,props:td,setup(t,{expose:e,slots:n,attrs:r}){const{eventHandlers:a,isScrolling:i,measurable:o,measured:s,rowRef:l,onExpand:u}=ZIe(t);return e({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:d,depth:h,rowData:v,rowIndex:p,style:g}=t;let y=c.map((m,S)=>{const b=Ke(v.children)&&v.children.length>0&&m.key===d;return n.cell({column:m,columns:c,columnIndex:S,depth:h,style:f[m.key],rowData:v,rowIndex:p,isScrolling:w(i),expandIconProps:b?{rowData:v,rowIndex:p,onExpand:u}:void 0})});if(n.row&&(y=n.row({cells:y.map(m=>Ke(m)&&m.length===1?m[0]:m),style:g,columns:c,depth:h,rowData:v,rowIndex:p,isScrolling:w(i)})),w(o)){const{height:m,...S}=g||{},b=w(s);return U("div",Mt({ref:l,class:t.class,style:b?g:S,role:"row"},r,w(a)),[y])}return U("div",Mt(r,{ref:l,class:t.class,style:g,role:"row"},w(a)),[y])}}}),ePe=t=>{const{sortOrder:e}=t;return U(qe,{size:14,class:t.class},{default:()=>[e===wy.ASC?U(abe,null,null):U(QSe,null,null)]})},tPe=t=>{const{expanded:e,expandable:n,onExpand:r,style:a,size:i}=t,o={onClick:n?()=>r(!e):void 0,class:t.class};return U(qe,Mt(o,{size:i,style:a}),{default:()=>[U(za,null,null)]})},nPe="ElTableV2Grid",rPe=t=>{const e=G(),n=G(),r=A(()=>{const{data:p,rowHeight:g,estimatedRowHeight:y}=t;if(!y)return p.length*g}),a=A(()=>{const{fixedData:p,rowHeight:g}=t;return((p==null?void 0:p.length)||0)*g}),i=A(()=>zb(t.headerHeight)),o=A(()=>{const{height:p}=t;return Math.max(0,p-w(i)-w(a))}),s=A(()=>w(i)+w(a)>0),l=({data:p,rowIndex:g})=>p[g][t.rowKey];function u({rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:y,rowVisibleEnd:m}){var S;(S=t.onRowsRendered)==null||S.call(t,{rowCacheStart:p,rowCacheEnd:g,rowVisibleStart:y,rowVisibleEnd:m})}function c(p,g){var y;(y=n.value)==null||y.resetAfterRowIndex(p,g)}function f(p,g){const y=w(e),m=w(n);!y||!m||(Lt(p)?(y.scrollToLeft(p.scrollLeft),m.scrollTo(p)):(y.scrollToLeft(p),m.scrollTo({scrollLeft:p,scrollTop:g})))}function d(p){var g;(g=w(n))==null||g.scrollTo({scrollTop:p})}function h(p,g){var y;(y=w(n))==null||y.scrollToItem(p,1,g)}function v(){var p,g;(p=w(n))==null||p.$forceUpdate(),(g=w(e))==null||g.$forceUpdate()}return{bodyRef:n,forceUpdate:v,fixedRowHeight:a,gridHeight:o,hasHeader:s,headerHeight:i,headerRef:e,totalHeight:r,itemKey:l,onItemRendered:u,resetAfterRowIndex:c,scrollTo:f,scrollToTop:d,scrollToRow:h}},AA=ae({name:nPe,props:Gb,setup(t,{slots:e,expose:n}){const{ns:r}=Ye(DA),{bodyRef:a,fixedRowHeight:i,gridHeight:o,hasHeader:s,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:d,onItemRendered:h,resetAfterRowIndex:v,scrollTo:p,scrollToTop:g,scrollToRow:y}=rPe(t);n({forceUpdate:f,totalHeight:c,scrollTo:p,scrollToTop:g,scrollToRow:y,resetAfterRowIndex:v});const m=()=>t.bodyWidth;return()=>{const{cache:S,columns:b,data:x,fixedData:_,useIsScrolling:C,scrollbarAlwaysOn:T,scrollbarEndGap:D,scrollbarStartGap:M,style:E,rowHeight:k,bodyWidth:R,estimatedRowHeight:O,headerWidth:B,height:$,width:V,getRowHeight:F,onScroll:L}=t,N=ut(O),H=N?AVe:kVe,K=w(u);return U("div",{role:"table",class:[r.e("table"),t.class],style:E},[U(H,{ref:a,data:x,useIsScrolling:C,itemKey:d,columnCache:0,columnWidth:N?m:R,totalColumn:1,totalRow:x.length,rowCache:S,rowHeight:N?F:k,width:V,height:w(o),class:r.e("body"),role:"rowgroup",scrollbarStartGap:M,scrollbarEndGap:D,scrollbarAlwaysOn:T,onScroll:L,onItemRendered:h,perfMode:!1},{default:Q=>{var ie;const be=x[Q.rowIndex];return(ie=e.row)==null?void 0:ie.call(e,{...Q,columns:b,rowData:be})}}),w(s)&&U(qIe,{ref:l,class:r.e("header-wrapper"),columns:b,headerData:x,headerHeight:t.headerHeight,fixedHeaderData:_,rowWidth:B,rowHeight:k,width:V,height:Math.min(K+w(i),$)},{dynamic:e.header,fixed:e.row})])}}});function aPe(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Hn(t)}const iPe=(t,{slots:e})=>{const{mainTableRef:n,...r}=t;return U(AA,Mt({ref:n},r),aPe(e)?e:{default:()=>[e]})};function oPe(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Hn(t)}const sPe=(t,{slots:e})=>{if(!t.columns.length)return;const{leftTableRef:n,...r}=t;return U(AA,Mt({ref:n},r),oPe(e)?e:{default:()=>[e]})};function lPe(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Hn(t)}const uPe=(t,{slots:e})=>{if(!t.columns.length)return;const{rightTableRef:n,...r}=t;return U(AA,Mt({ref:n},r),lPe(e)?e:{default:()=>[e]})};function cPe(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Hn(t)}const fPe=(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:v,rowClass:p,rowKey:g,rowEventHandlers:y,ns:m,onRowHovered:S,onRowExpanded:b}=t,x=Ad(p,{columns:n,rowData:c,rowIndex:f},""),_=Ad(v,{columns:n,rowData:c,rowIndex:f}),C=c[g],T=a[C]||0,D=!!i,M=f<0,E=[m.e("row"),x,{[m.e(`row-depth-${T}`)]:D&&f>=0,[m.is("expanded")]:D&&o.includes(C),[m.is("hovered")]:!h&&C===u,[m.is("fixed")]:!T&&M,[m.is("customized")]:!!e.row}],k=l?S:void 0,R={..._,columns:n,columnsStyles:r,class:E,depth:T,expandColumnKey:i,estimatedRowHeight:M?void 0:s,isScrolling:h,rowIndex:f,rowData:c,rowKey:C,rowEventHandlers:y,style:d};return U(JIe,Mt(R,{onRowHover:k,onRowExpand:b}),cPe(e)?e:{default:()=>[e]})},fk=({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:v,rowKey:p},{slots:g})=>{const y=Fu(l);if(e.placeholderSign===xy)return U("div",{class:c.em("row-cell","placeholder"),style:y},null);const{cellRenderer:m,dataKey:S,dataGetter:b}=e,_=IY(m)||g.default||($=>U(LA,$,null)),C=ft(b)?b({columns:t,column:e,columnIndex:n,rowData:o,rowIndex:s}):Fn(o,S??""),T=Ad(f,{cellData:C,columns:t,column:e,columnIndex:n,rowIndex:s,rowData:o}),D={class:c.e("cell-text"),columns:t,column:e,columnIndex:n,cellData:C,isScrolling:i,rowData:o,rowIndex:s},M=_(D),E=[c.e("row-cell"),e.class,e.align===_y.CENTER&&c.is("align-center"),e.align===_y.RIGHT&&c.is("align-right")],k=s>=0&&d&&e.key===d,R=s>=0&&u.includes(o[p]);let O;const B=`margin-inline-start: ${r*h}px;`;return k&&(Lt(a)?O=U(tPe,Mt(a,{class:[c.e("expand-icon"),c.is("expanded",R)],size:v,expanded:R,style:B,expandable:!0}),null):O=U("div",{style:[B,`width: ${v}px; height: ${v}px;`].join(" ")},null)),U("div",Mt({class:E,style:y},T,{role:"cell"}),[O,M])};fk.inheritAttrs=!1;function dPe(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Hn(t)}const hPe=({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"),Ad(a,l,""),{[o.is("customized")]:!!s.header}],c={...Ad(i,l),columnsStyles:e,class:u,columns:t,headerIndex:n,style:r};return U(YIe,c,dPe(s)?s:{default:()=>[s]})},AP=(t,{slots:e})=>{const{column:n,ns:r,style:a,onColumnSorted:i}=t,o=Fu(a);if(n.placeholderSign===xy)return U("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=(IY(s)||e.default||(b=>U(OA,b,null)))(c),{sortBy:h,sortState:v,headerCellProps:p}=t;let g,y;if(v){const b=v[n.key];g=!!ck[b],y=g?b:wy.ASC}else g=n.key===h.key,y=g?h.order:wy.ASC;const m=[r.e("header-cell"),Ad(l,t,""),n.align===_y.CENTER&&r.is("align-center"),n.align===_y.RIGHT&&r.is("align-right"),u&&r.is("sortable")],S={...Ad(p,t),onClick:n.sortable?i:void 0,class:m,style:o,"data-key":n.key};return U("div",Mt(S,{role:"columnheader"}),[d,u&&U(ePe,{class:[r.e("sort-icon"),g&&r.is("sorting")],sortOrder:y},null)])},GY=(t,{slots:e})=>{var n;return U("div",{class:t.class,style:t.style},[(n=e.default)==null?void 0:n.call(e)])};GY.displayName="ElTableV2Footer";const UY=(t,{slots:e})=>U("div",{class:t.class,style:t.style},[e.default?e.default():U(qj,null,null)]);UY.displayName="ElTableV2Empty";const HY=(t,{slots:e})=>{var n;return U("div",{class:t.class,style:t.style},[(n=e.default)==null?void 0:n.call(e)])};HY.displayName="ElTableV2Overlay";function lg(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!Hn(t)}const pPe="ElTableV2",vPe=ae({name:pPe,props:KIe,setup(t,{slots:e,expose:n}){const r=ke("table-v2"),{columnsStyles:a,fixedColumnsOnLeft:i,fixedColumnsOnRight:o,mainColumns:s,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:d,depthMap:h,expandedRowKeys:v,hasFixedColumns:p,hoveringRowKey:g,mainTableRef:y,leftTableRef:m,rightTableRef:S,isDynamic:b,isResetting:x,isScrolling:_,bodyWidth:C,emptyStyle:T,rootStyle:D,headerWidth:M,footerHeight:E,showEmpty:k,scrollTo:R,scrollToLeft:O,scrollToTop:B,scrollToRow:$,getRowHeight:V,onColumnSorted:F,onRowHeightChange:L,onRowHovered:N,onRowExpanded:H,onRowsRendered:K,onScroll:Q,onVerticalScroll:ie}=HIe(t);return n({scrollTo:R,scrollToLeft:O,scrollToTop:B,scrollToRow:$}),At(DA,{ns:r,isResetting:x,hoveringRowKey:g,isScrolling:_}),()=>{const{cache:be,cellProps:le,estimatedRowHeight:J,expandColumnKey:Z,fixedData:ee,headerHeight:ce,headerClass:ue,headerProps:Y,headerCellProps:te,sortBy:oe,sortState:Se,rowHeight:fe,rowClass:ne,rowEventHandlers:Ee,rowKey:_e,rowProps:me,scrollbarAlwaysOn:Te,indentSize:Ve,iconSize:ze,useIsScrolling:We,vScrollbarSize:De,width:Fe}=t,at=w(d),yt={cache:be,class:r.e("main"),columns:w(s),data:at,fixedData:ee,estimatedRowHeight:J,bodyWidth:w(C)+De,headerHeight:ce,headerWidth:w(M),height:w(l),mainTableRef:y,rowKey:_e,rowHeight:fe,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:De,useIsScrolling:We,width:Fe,getRowHeight:V,onRowsRendered:K,onScroll:Q},Be=w(c),Je=w(u),se={cache:be,class:r.e("left"),columns:w(i),data:at,estimatedRowHeight:J,leftTableRef:m,rowHeight:fe,bodyWidth:Be,headerWidth:Be,headerHeight:ce,height:Je,rowKey:_e,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:De,useIsScrolling:We,width:Be,getRowHeight:V,onScroll:ie},pe=w(f)+De,Re={cache:be,class:r.e("right"),columns:w(o),data:at,estimatedRowHeight:J,rightTableRef:S,rowHeight:fe,bodyWidth:pe,headerWidth:pe,headerHeight:ce,height:Je,rowKey:_e,scrollbarAlwaysOn:Te,scrollbarStartGap:2,scrollbarEndGap:De,width:pe,style:`--${w(r.namespace)}-table-scrollbar-size: ${De}px`,useIsScrolling:We,getRowHeight:V,onScroll:ie},re=w(a),Ue={ns:r,depthMap:w(h),columnsStyles:re,expandColumnKey:Z,expandedRowKeys:w(v),estimatedRowHeight:J,hasFixedColumns:w(p),hoveringRowKey:w(g),rowProps:me,rowClass:ne,rowKey:_e,rowEventHandlers:Ee,onRowHovered:N,onRowExpanded:H,onRowHeightChange:L},pt={cellProps:le,expandColumnKey:Z,indentSize:Ve,iconSize:ze,rowKey:_e,expandedRowKeys:w(v),ns:r},Bt={ns:r,headerClass:ue,headerProps:Y,columnsStyles:re},lr={ns:r,sortBy:oe,sortState:Se,headerCellProps:te,onColumnSorted:F},Cr={row:xe=>U(fPe,Mt(xe,Ue),{row:e.row,cell:Ge=>{let ye;return e.cell?U(fk,Mt(Ge,pt,{style:re[Ge.column.key]}),lg(ye=e.cell(Ge))?ye:{default:()=>[ye]}):U(fk,Mt(Ge,pt,{style:re[Ge.column.key]}),null)}}),header:xe=>U(hPe,Mt(xe,Bt),{header:e.header,cell:Ge=>{let ye;return e["header-cell"]?U(AP,Mt(Ge,lr,{style:re[Ge.column.key]}),lg(ye=e["header-cell"](Ge))?ye:{default:()=>[ye]}):U(AP,Mt(Ge,lr,{style:re[Ge.column.key]}),null)}})},ti=[t.class,r.b(),r.e("root"),{[r.is("dynamic")]:w(b)}],Jr={class:r.e("footer"),style:w(E)};return U("div",{class:ti,style:w(D)},[U(iPe,yt,lg(Cr)?Cr:{default:()=>[Cr]}),U(sPe,se,lg(Cr)?Cr:{default:()=>[Cr]}),U(uPe,Re,lg(Cr)?Cr:{default:()=>[Cr]}),e.footer&&U(GY,Jr,{default:e.footer}),w(k)&&U(UY,{class:r.e("empty"),style:w(T)},{default:e.empty}),e.overlay&&U(HY,{class:r.e("overlay")},{default:e.overlay})])}}}),gPe=Ne({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:ge(Function)}}),yPe=ae({name:"ElAutoResizer",props:gPe,setup(t,{slots:e}){const n=ke("auto-resizer"),{height:r,width:a,sizer:i}=UIe(t),o={width:"100%",height:"100%"};return()=>{var s;return U("div",{ref:i,class:n.b(),style:o},[(s=e.default)==null?void 0:s.call(e,{height:r.value,width:a.value})])}}}),mPe=Tt(vPe),SPe=Tt(yPe),sC=Symbol("tabsRootContextKey"),bPe=Ne({tabs:{type:ge(Array),default:()=>Gn([])}}),WY="ElTabBar",wPe=ae({name:WY}),_Pe=ae({...wPe,props:bPe,setup(t,{expose:e}){const n=t,r=_t(),a=Ye(sC);a||wr(WY,"<el-tabs><el-tab-bar /></el-tabs>");const i=ke("tabs"),o=G(),s=G(),l=()=>{let c=0,f=0;const d=["top","bottom"].includes(a.props.tabPosition)?"width":"height",h=d==="width"?"x":"y",v=h==="x"?"left":"top";return n.tabs.every(p=>{var g,y;const m=(y=(g=r.parent)==null?void 0:g.refs)==null?void 0:y[`tab-${p.uid}`];if(!m)return!1;if(!p.active)return!0;c=m[`offset${Ms(v)}`],f=m[`client${Ms(d)}`];const S=window.getComputedStyle(m);return d==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(S.paddingLeft)+Number.parseFloat(S.paddingRight)),c+=Number.parseFloat(S.paddingLeft)),!1}),{[d]:`${f}px`,transform:`translate${Ms(h)}(${c}px)`}},u=()=>s.value=l();return Me(()=>n.tabs,async()=>{await Ze(),u()},{immediate:!0}),xa(o,()=>u()),e({ref:o,update:u}),(c,f)=>(I(),X("div",{ref_key:"barRef",ref:o,class:z([w(i).e("active-bar"),w(i).is(w(a).props.tabPosition)]),style:et(s.value)},null,6))}});var xPe=Ae(_Pe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const CPe=Ne({panes:{type:ge(Array),default:()=>Gn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),TPe={tabClick:(t,e,n)=>n instanceof Event,tabRemove:(t,e)=>e instanceof Event},NP="ElTabNav",EPe=ae({name:NP,props:CPe,emits:TPe,setup(t,{expose:e,emit:n}){const r=_t(),a=Ye(sC);a||wr(NP,"<el-tabs><tab-nav /></el-tabs>");const i=ke("tabs"),o=qfe(),s=ode(),l=G(),u=G(),c=G(),f=G(),d=G(!1),h=G(0),v=G(!1),p=G(!0),g=A(()=>["top","bottom"].includes(a.props.tabPosition)?"width":"height"),y=A(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${h.value}px)`})),m=()=>{if(!l.value)return;const D=l.value[`offset${Ms(g.value)}`],M=h.value;if(!M)return;const E=M>D?M-D:0;h.value=E},S=()=>{if(!l.value||!u.value)return;const D=u.value[`offset${Ms(g.value)}`],M=l.value[`offset${Ms(g.value)}`],E=h.value;if(D-E<=M)return;const k=D-E>M*2?E+M:D-M;h.value=k},b=async()=>{const D=u.value;if(!d.value||!c.value||!l.value||!D)return;await Ze();const M=c.value.querySelector(".is-active");if(!M)return;const E=l.value,k=["top","bottom"].includes(a.props.tabPosition),R=M.getBoundingClientRect(),O=E.getBoundingClientRect(),B=k?D.offsetWidth-O.width:D.offsetHeight-O.height,$=h.value;let V=$;k?(R.left<O.left&&(V=$-(O.left-R.left)),R.right>O.right&&(V=$+R.right-O.right)):(R.top<O.top&&(V=$-(O.top-R.top)),R.bottom>O.bottom&&(V=$+(R.bottom-O.bottom))),V=Math.max(V,0),h.value=Math.min(V,B)},x=()=>{var D;if(!u.value||!l.value)return;t.stretch&&((D=f.value)==null||D.update());const M=u.value[`offset${Ms(g.value)}`],E=l.value[`offset${Ms(g.value)}`],k=h.value;E<M?(d.value=d.value||{},d.value.prev=k,d.value.next=k+E<M,M-k<E&&(h.value=M-E)):(d.value=!1,k>0&&(h.value=0))},_=D=>{const M=D.code,{up:E,down:k,left:R,right:O}=nt;if(![E,k,R,O].includes(M))return;const B=Array.from(D.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),$=B.indexOf(D.target);let V;M===R||M===E?$===0?V=B.length-1:V=$-1:$<B.length-1?V=$+1:V=0,B[V].focus({preventScroll:!0}),B[V].click(),C()},C=()=>{p.value&&(v.value=!0)},T=()=>v.value=!1;return Me(o,D=>{D==="hidden"?p.value=!1:D==="visible"&&setTimeout(()=>p.value=!0,50)}),Me(s,D=>{D?setTimeout(()=>p.value=!0,50):p.value=!1}),xa(c,x),St(()=>setTimeout(()=>b(),0)),ql(()=>x()),e({scrollToActiveTab:b,removeFocus:T}),Me(()=>t.panes,()=>r.update(),{flush:"post",deep:!0}),()=>{const D=d.value?[U("span",{class:[i.e("nav-prev"),i.is("disabled",!d.value.prev)],onClick:m},[U(qe,null,{default:()=>[U(cc,null,null)]})]),U("span",{class:[i.e("nav-next"),i.is("disabled",!d.value.next)],onClick:S},[U(qe,null,{default:()=>[U(za,null,null)]})])]:null,M=t.panes.map((E,k)=>{var R,O,B,$;const V=E.uid,F=E.props.disabled,L=(O=(R=E.props.name)!=null?R:E.index)!=null?O:`${k}`,N=!F&&(E.isClosable||t.editable);E.index=`${k}`;const H=N?U(qe,{class:"is-icon-close",onClick:ie=>n("tabRemove",E,ie)},{default:()=>[U(Jo,null,null)]}):null,K=(($=(B=E.slots).label)==null?void 0:$.call(B))||E.props.label,Q=!F&&E.active?0:-1;return U("div",{ref:`tab-${V}`,class:[i.e("item"),i.is(a.props.tabPosition),i.is("active",E.active),i.is("disabled",F),i.is("closable",N),i.is("focus",v.value)],id:`tab-${L}`,key:`tab-${V}`,"aria-controls":`pane-${L}`,role:"tab","aria-selected":E.active,tabindex:Q,onFocus:()=>C(),onBlur:()=>T(),onClick:ie=>{T(),n("tabClick",E,L,ie)},onKeydown:ie=>{N&&(ie.code===nt.delete||ie.code===nt.backspace)&&n("tabRemove",E,ie)}},[K,H])});return U("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!d.value),i.is(a.props.tabPosition)]},[D,U("div",{class:i.e("nav-scroll"),ref:l},[U("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:_},[t.type?null:U(xPe,{ref:f,tabs:[...t.panes]},null),M])])])}}}),MPe=Ne({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:ge(Function),default:()=>!0},stretch:Boolean}),HT=t=>vt(t)||ut(t),DPe={[Et]:t=>HT(t),tabClick:(t,e)=>e instanceof Event,tabChange:t=>HT(t),edit:(t,e)=>["remove","add"].includes(e),tabRemove:t=>HT(t),tabAdd:()=>!0};var kPe=ae({name:"ElTabs",props:MPe,emits:DPe,setup(t,{emit:e,slots:n,expose:r}){var a,i;const o=ke("tabs"),{children:s,addChild:l,removeChild:u}=tA(_t(),"ElTabPane"),c=G(),f=G((i=(a=t.modelValue)!=null?a:t.activeName)!=null?i:"0"),d=y=>{f.value=y,e(Et,y),e("tabChange",y)},h=async y=>{var m,S,b;if(!(f.value===y||kr(y)))try{await((m=t.beforeLeave)==null?void 0:m.call(t,y,f.value))!==!1&&(d(y),(b=(S=c.value)==null?void 0:S.removeFocus)==null||b.call(S))}catch{}},v=(y,m,S)=>{y.props.disabled||(h(m),e("tabClick",y,S))},p=(y,m)=>{y.props.disabled||kr(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 Ws({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"},A(()=>!!t.activeName)),Me(()=>t.activeName,y=>h(y)),Me(()=>t.modelValue,y=>h(y)),Me(f,async()=>{var y;await Ze(),(y=c.value)==null||y.scrollToActiveTab()}),At(sC,{props:t,currentName:f,registerPane:l,unregisterPane:u}),r({currentName:f}),()=>{const y=t.editable||t.addable?U("span",{class:o.e("new-tab"),tabindex:"0",onClick:g,onKeydown:b=>{b.code===nt.enter&&g()}},[U(qe,{class:o.is("icon-plus")},{default:()=>[U(S9,null,null)]})]):null,m=U("div",{class:[o.e("header"),o.is(t.tabPosition)]},[y,U(EPe,{ref:c,currentName:f.value,editable:t.editable,type:t.type,panes:s.value,stretch:t.stretch,onTabClick:v,onTabRemove:p},null)]),S=U("div",{class:o.e("content")},[Ce(n,"default")]);return U("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,S]:[S,m]])}}});const RPe=Ne({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),LPe=["id","aria-hidden","aria-labelledby"],KY="ElTabPane",OPe=ae({name:KY}),APe=ae({...OPe,props:RPe,setup(t){const e=t,n=_t(),r=fa(),a=Ye(sC);a||wr(KY,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=ke("tab-pane"),o=G(),s=A(()=>e.closable||a.props.closable),l=h$(()=>{var h;return a.currentName.value===((h=e.name)!=null?h:o.value)}),u=G(l.value),c=A(()=>{var h;return(h=e.name)!=null?h:o.value}),f=h$(()=>!e.lazy||u.value||l.value);Me(l,h=>{h&&(u.value=!0)});const d=Zt({uid:n.uid,slots:r,props:e,paneName:c,active:l,index:o,isClosable:s});return St(()=>{a.registerPane(d)}),Mc(()=>{a.unregisterPane(d.uid)}),(h,v)=>w(f)?ct((I(),X("div",{key:0,id:`pane-${w(c)}`,class:z(w(i).b()),role:"tabpanel","aria-hidden":!w(l),"aria-labelledby":`tab-${w(c)}`},[Ce(h.$slots,"default")],10,LPe)),[[Nt,w(l)]]):de("v-if",!0)}});var jY=Ae(APe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const NPe=Tt(kPe,{TabPane:jY}),VPe=Qn(jY),BPe=Ne({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:tl,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),$Pe=ae({name:"ElText"}),IPe=ae({...$Pe,props:BPe,setup(t){const e=t,n=_r(),r=ke("text"),a=A(()=>[r.b(),r.m(e.type),r.m(n.value),r.is("truncated",e.truncated)]);return(i,o)=>(I(),ve(Dt(i.tag),{class:z(w(a))},{default:q(()=>[Ce(i.$slots,"default")]),_:3},8,["class"]))}});var PPe=Ae(IPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const FPe=Tt(PPe),zPe=Ne({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:sa,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:ge([String,Object]),default:()=>m9},clearIcon:{type:ge([String,Object]),default:()=>kc}}),wl=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},WT=(t,e)=>{const n=wl(t);if(!n)return-1;const r=wl(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},VP=t=>`${t}`.padStart(2,"0"),zh=t=>`${VP(t.hours)}:${VP(t.minutes)}`,GPe=(t,e)=>{const n=wl(t);if(!n)return"";const r=wl(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,zh(a)},UPe=ae({name:"ElTimeSelect"}),HPe=ae({...UPe,props:zPe,emits:["change","blur","focus","update:modelValue"],setup(t,{expose:e}){const n=t;xt.extend(sA);const{Option:r}=Xs,a=ke("input"),i=G(),o=mi(),s=A(()=>n.modelValue),l=A(()=>{const g=wl(n.start);return g?zh(g):null}),u=A(()=>{const g=wl(n.end);return g?zh(g):null}),c=A(()=>{const g=wl(n.step);return g?zh(g):null}),f=A(()=>{const g=wl(n.minTime||"");return g?zh(g):null}),d=A(()=>{const g=wl(n.maxTime||"");return g?zh(g):null}),h=A(()=>{const g=[];if(n.start&&n.end&&n.step){let y=l.value,m;for(;y&&u.value&&WT(y,u.value)<=0;)m=xt(y,"HH:mm").format(n.format),g.push({value:m,disabled:WT(y,f.value||"-1:-1")<=0||WT(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)=>(I(),ve(w(Xs),{ref_key:"select",ref:i,"model-value":w(s),disabled:w(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:q(()=>[g.prefixIcon?(I(),ve(w(qe),{key:0,class:z(w(a).e("prefix-icon"))},{default:q(()=>[(I(),ve(Dt(g.prefixIcon)))]),_:1},8,["class"])):de("v-if",!0)]),default:q(()=>[(I(!0),X(Qe,null,Vt(w(h),m=>(I(),ve(w(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 Ub=Ae(HPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);Ub.install=t=>{t.component(Ub.name,Ub)};const WPe=Ub,KPe=WPe,jPe=ae({name:"ElTimeline",setup(t,{slots:e}){const n=ke("timeline");return At("timeline",e),()=>rt("ul",{class:[n.b()]},[Ce(e,"default")])}}),YPe=Ne({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:Tn},hollow:{type:Boolean,default:!1}}),XPe=ae({name:"ElTimelineItem"}),qPe=ae({...XPe,props:YPe,setup(t){const e=t,n=ke("timeline-item"),r=A(()=>[n.e("node"),n.em("node",e.size||""),n.em("node",e.type||""),n.is("hollow",e.hollow)]);return(a,i)=>(I(),X("li",{class:z([w(n).b(),{[w(n).e("center")]:a.center}])},[P("div",{class:z(w(n).e("tail"))},null,2),a.$slots.dot?de("v-if",!0):(I(),X("div",{key:0,class:z(w(r)),style:et({backgroundColor:a.color})},[a.icon?(I(),ve(w(qe),{key:0,class:z(w(n).e("icon"))},{default:q(()=>[(I(),ve(Dt(a.icon)))]),_:1},8,["class"])):de("v-if",!0)],6)),a.$slots.dot?(I(),X("div",{key:1,class:z(w(n).e("dot"))},[Ce(a.$slots,"dot")],2)):de("v-if",!0),P("div",{class:z(w(n).e("wrapper"))},[!a.hideTimestamp&&a.placement==="top"?(I(),X("div",{key:0,class:z([w(n).e("timestamp"),w(n).is("top")])},Le(a.timestamp),3)):de("v-if",!0),P("div",{class:z(w(n).e("content"))},[Ce(a.$slots,"default")],2),!a.hideTimestamp&&a.placement==="bottom"?(I(),X("div",{key:1,class:z([w(n).e("timestamp"),w(n).is("bottom")])},Le(a.timestamp),3)):de("v-if",!0)],2)],2))}});var YY=Ae(qPe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const ZPe=Tt(jPe,{TimelineItem:YY}),QPe=Qn(YY),XY=Ne({nowrap:Boolean});var qY=(t=>(t.top="top",t.bottom="bottom",t.left="left",t.right="right",t))(qY||{});const JPe=Object.values(qY),NA=Ne({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:ge(Object),default:null}}),eFe=Ne({side:{type:ge(String),values:JPe,required:!0}}),tFe=["absolute","fixed"],nFe=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],VA=Ne({ariaLabel:String,arrowPadding:{type:ge(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:ge(String),values:nFe,default:"bottom"},reference:{type:ge(Object),default:null},offset:{type:Number,default:8},strategy:{type:ge(String),values:tFe,default:"absolute"},showArrow:{type:Boolean,default:!1}}),BA=Ne({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:ge(Function)},"onUpdate:open":{type:ge(Function)}}),ch={type:ge(Function)},$A=Ne({onBlur:ch,onClick:ch,onFocus:ch,onMouseDown:ch,onMouseEnter:ch,onMouseLeave:ch}),rFe=Ne({...BA,...NA,...$A,...VA,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:ge(Object),default:null},teleported:Boolean,to:{type:ge(String),default:"body"}}),lC=Symbol("tooltipV2"),ZY=Symbol("tooltipV2Content"),KT="tooltip_v2.open",aFe=ae({name:"ElTooltipV2Root"}),iFe=ae({...aFe,props:BA,setup(t,{expose:e}){const n=t,r=G(n.defaultOpen),a=G(null),i=A({get:()=>yye(n.open)?r.value:n.open,set:g=>{var y;r.value=g,(y=n["onUpdate:open"])==null||y.call(n,g)}}),o=A(()=>ut(n.delayDuration)&&n.delayDuration>0),{start:s,stop:l}=Rd(()=>{i.value=!0},A(()=>n.delayDuration),{immediate:!1}),u=ke("tooltip-v2"),c=lo(),f=()=>{l(),i.value=!0},d=()=>{w(o)?s():f()},h=f,v=()=>{l(),i.value=!1};return Me(i,g=>{var y;g&&(document.dispatchEvent(new CustomEvent(KT)),h()),(y=n.onOpenChange)==null||y.call(n,g)}),St(()=>{document.addEventListener(KT,v)}),Pn(()=>{l(),document.removeEventListener(KT,v)}),At(lC,{contentId:c,triggerRef:a,ns:u,onClose:v,onDelayOpen:d,onOpen:h}),e({onOpen:h,onClose:v}),(g,y)=>Ce(g.$slots,"default",{open:w(i)})}});var oFe=Ae(iFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const sFe=ae({name:"ElTooltipV2Arrow"}),lFe=ae({...sFe,props:{...NA,...eFe},setup(t){const e=t,{ns:n}=Ye(lC),{arrowRef:r}=Ye(ZY),a=A(()=>{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)=>(I(),X("span",{ref_key:"arrowRef",ref:r,style:et(w(a)),class:z(w(n).e("arrow"))},null,6))}});var BP=Ae(lFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const uFe=Ne({style:{type:ge([String,Object,Array]),default:()=>({})}}),cFe=ae({name:"ElVisuallyHidden"}),fFe=ae({...cFe,props:uFe,setup(t){const e=t,n=A(()=>[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)=>(I(),X("span",Mt(r.$attrs,{style:w(n)}),[Ce(r.$slots,"default")],16))}});var dFe=Ae(fFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const hFe=["data-side"],pFe=ae({name:"ElTooltipV2Content"}),vFe=ae({...pFe,props:{...VA,...XY},setup(t){const e=t,{triggerRef:n,contentId:r}=Ye(lC),a=G(e.placement),i=G(e.strategy),o=G(null),{referenceRef:s,contentRef:l,middlewareData:u,x:c,y:f,update:d}=H_e({placement:a,strategy:i,middleware:A(()=>{const S=[T_e(e.offset)];return e.showArrow&&S.push(W_e({arrowRef:o})),S})}),h=Tv().nextZIndex(),v=ke("tooltip-v2"),p=A(()=>a.value.split("-")[0]),g=A(()=>({position:w(i),top:`${w(f)||0}px`,left:`${w(c)||0}px`,zIndex:h})),y=A(()=>{if(!e.showArrow)return{};const{arrow:S}=w(u);return{[`--${v.namespace.value}-tooltip-v2-arrow-x`]:`${S==null?void 0:S.x}px`||"",[`--${v.namespace.value}-tooltip-v2-arrow-y`]:`${S==null?void 0:S.y}px`||""}}),m=A(()=>[v.e("content"),v.is("dark",e.effect==="dark"),v.is(w(i)),e.contentClass]);return Me(o,()=>d()),Me(()=>e.placement,S=>a.value=S),St(()=>{Me(()=>e.reference||n.value,S=>{s.value=S||void 0},{immediate:!0})}),At(ZY,{arrowRef:o}),(S,b)=>(I(),X("div",{ref_key:"contentRef",ref:l,style:et(w(g)),"data-tooltip-v2-root":""},[S.nowrap?de("v-if",!0):(I(),X("div",{key:0,"data-side":w(p),class:z(w(m))},[Ce(S.$slots,"default",{contentStyle:w(g),contentClass:w(m)}),U(w(dFe),{id:w(r),role:"tooltip"},{default:q(()=>[S.ariaLabel?(I(),X(Qe,{key:0},[dt(Le(S.ariaLabel),1)],64)):Ce(S.$slots,"default",{key:1})]),_:3},8,["id"]),Ce(S.$slots,"arrow",{style:et(w(y)),side:w(p)})],10,hFe))],4))}});var $P=Ae(vFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const gFe=Ne({setRef:{type:ge(Function),required:!0},onlyChild:Boolean});var yFe=ae({props:gFe,setup(t,{slots:e}){const n=G(),r=Wx(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?Zbe(i.children):i.children;return U(Qe,{ref:r},[o])}}});const mFe=ae({name:"ElTooltipV2Trigger"}),SFe=ae({...mFe,props:{...XY,...$A},setup(t){const e=t,{onClose:n,onOpen:r,onDelayOpen:a,triggerRef:i,contentId:o}=Ye(lC);let s=!1;const l=m=>{i.value=m},u=()=>{s=!1},c=Zn(e.onMouseEnter,a),f=Zn(e.onMouseLeave,n),d=Zn(e.onMouseDown,()=>{n(),s=!0,document.addEventListener("mouseup",u,{once:!0})}),h=Zn(e.onFocus,()=>{s||r()}),v=Zn(e.onBlur,n),p=Zn(e.onClick,m=>{m.detail===0&&n()}),g={blur:v,click:p,focus:h,mousedown:d,mouseenter:c,mouseleave:f},y=(m,S,b)=>{m&&Object.entries(S).forEach(([x,_])=>{m[b](x,_)})};return Me(i,(m,S)=>{y(m,g,"addEventListener"),y(S,g,"removeEventListener"),m&&m.setAttribute("aria-describedby",o.value)}),Pn(()=>{y(i.value,g,"removeEventListener"),document.removeEventListener("mouseup",u)}),(m,S)=>m.nowrap?(I(),ve(w(yFe),{key:0,"set-ref":l,"only-child":""},{default:q(()=>[Ce(m.$slots,"default")]),_:3})):(I(),X("button",Mt({key:1,ref_key:"triggerRef",ref:i},m.$attrs),[Ce(m.$slots,"default")],16))}});var bFe=Ae(SFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const wFe=ae({name:"ElTooltipV2"}),_Fe=ae({...wFe,props:rFe,setup(t){const n=$r(t),r=Zt(xl(n,Object.keys(NA))),a=Zt(xl(n,Object.keys(VA))),i=Zt(xl(n,Object.keys(BA))),o=Zt(xl(n,Object.keys($A)));return(s,l)=>(I(),ve(oFe,Po(Dx(i)),{default:q(({open:u})=>[U(bFe,Mt(o,{nowrap:""}),{default:q(()=>[Ce(s.$slots,"trigger")]),_:3},16),(I(),ve(vm,{to:s.to,disabled:!s.teleported},[s.fullTransition?(I(),ve(or,Po(Mt({key:0},s.transitionProps)),{default:q(()=>[s.alwaysOn||u?(I(),ve($P,Po(Mt({key:0},a)),{arrow:q(({style:c,side:f})=>[s.showArrow?(I(),ve(BP,Mt({key:0},r,{style:c,side:f}),null,16,["style","side"])):de("v-if",!0)]),default:q(()=>[Ce(s.$slots,"default")]),_:3},16)):de("v-if",!0)]),_:2},1040)):(I(),X(Qe,{key:1},[s.alwaysOn||u?(I(),ve($P,Po(Mt({key:0},a)),{arrow:q(({style:c,side:f})=>[s.showArrow?(I(),ve(BP,Mt({key:0},r,{style:c,side:f}),null,16,["style","side"])):de("v-if",!0)]),default:q(()=>[Ce(s.$slots,"default")]),_:3},16)):de("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var xFe=Ae(_Fe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const CFe=Tt(xFe),QY="left-check-change",JY="right-check-change",Gh=Ne({data:{type:ge(Array),default:()=>[]},titles:{type:ge(Array),default:()=>[]},buttonTexts:{type:ge(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:ge(Function)},leftDefaultChecked:{type:ge(Array),default:()=>[]},rightDefaultChecked:{type:ge(Array),default:()=>[]},renderContent:{type:ge(Function)},modelValue:{type:ge(Array),default:()=>[]},format:{type:ge(Object),default:()=>({})},filterable:Boolean,props:{type:ge(Object),default:()=>Gn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),dk=(t,e)=>[t,e].every(Ke)||Ke(t)&&mr(e),TFe={[Nn]:(t,e,n)=>[t,n].every(Ke)&&["left","right"].includes(e),[Et]:t=>Ke(t),[QY]:dk,[JY]:dk},hk="checked-change",EFe=Ne({data:Gh.data,optionRender:{type:ge(Function)},placeholder:String,title:String,filterable:Boolean,format:Gh.format,filterMethod:Gh.filterMethod,defaultChecked:Gh.leftDefaultChecked,props:Gh.props}),MFe={[hk]:dk},Lm=t=>{const e={label:"label",key:"key",disabled:"disabled"};return A(()=>({...e,...t.props}))},DFe=(t,e,n)=>{const r=Lm(t),a=A(()=>t.data.filter(c=>ft(t.filterMethod)?t.filterMethod(e.query,c):String(c[r.value.label]||c[r.value.key]).toLowerCase().includes(e.query.toLowerCase()))),i=A(()=>a.value.filter(c=>!c[r.value.disabled])),o=A(()=>{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=A(()=>{const c=e.checked.length;return c>0&&c<i.value.length}),l=()=>{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 Me(()=>e.checked,(c,f)=>{if(l(),e.checkChangeByUser){const d=c.concat(f).filter(h=>!c.includes(h)||!f.includes(h));n(hk,c,d)}else n(hk,c),e.checkChangeByUser=!0}),Me(i,()=>{l()}),Me(()=>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}),Me(()=>t.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(v=>f.includes(v)))return;const d=[],h=i.value.map(v=>v[r.value.key]);c.forEach(v=>{h.includes(v)&&d.push(v)}),e.checkChangeByUser=!1,e.checked=d},{immediate:!0}),{filteredData:a,checkableData:i,checkedSummary:o,isIndeterminate:s,updateAllChecked:l,handleAllCheckedChange:u}},kFe=(t,e)=>({onSourceCheckedChange:(a,i)=>{t.leftChecked=a,i&&e(QY,a,i)},onTargetCheckedChange:(a,i)=>{t.rightChecked=a,i&&e(JY,a,i)}}),RFe=t=>{const e=Lm(t),n=A(()=>t.data.reduce((i,o)=>(i[o[e.value.key]]=o)&&i,{})),r=A(()=>t.data.filter(i=>!t.modelValue.includes(i[e.value.key]))),a=A(()=>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}},LFe=(t,e,n)=>{const r=Lm(t),a=(s,l,u)=>{n(Et,s),n(Nn,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)}}},OFe=ae({name:"ElTransferPanel"}),AFe=ae({...OFe,props:EFe,emits:MFe,setup(t,{expose:e,emit:n}){const r=t,a=fa(),i=({option:S})=>S,{t:o}=jt(),s=ke("transfer"),l=Zt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=Lm(r),{filteredData:c,checkedSummary:f,isIndeterminate:d,handleAllCheckedChange:h}=DFe(r,l,n),v=A(()=>!Xi(l.query)&&Xi(c.value)),p=A(()=>!Xi(a.default()[0].children)),{checked:g,allChecked:y,query:m}=$r(l);return e({query:m}),(S,b)=>(I(),X("div",{class:z(w(s).b("panel"))},[P("p",{class:z(w(s).be("panel","header"))},[U(w(co),{modelValue:w(y),"onUpdate:modelValue":b[0]||(b[0]=x=>en(y)?y.value=x:null),indeterminate:w(d),"validate-event":!1,onChange:w(h)},{default:q(()=>[dt(Le(S.title)+" ",1),P("span",null,Le(w(f)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),P("div",{class:z([w(s).be("panel","body"),w(s).is("with-footer",w(p))])},[S.filterable?(I(),ve(w(wa),{key:0,modelValue:w(m),"onUpdate:modelValue":b[1]||(b[1]=x=>en(m)?m.value=x:null),class:z(w(s).be("panel","filter")),size:"default",placeholder:S.placeholder,"prefix-icon":w(KSe),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):de("v-if",!0),ct(U(w(oj),{modelValue:w(g),"onUpdate:modelValue":b[2]||(b[2]=x=>en(g)?g.value=x:null),"validate-event":!1,class:z([w(s).is("filterable",S.filterable),w(s).be("panel","list")])},{default:q(()=>[(I(!0),X(Qe,null,Vt(w(c),x=>(I(),ve(w(co),{key:x[w(u).key],class:z(w(s).be("panel","item")),label:x[w(u).key],disabled:x[w(u).disabled],"validate-event":!1},{default:q(()=>{var _;return[U(i,{option:(_=S.optionRender)==null?void 0:_.call(S,x)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[Nt,!w(v)&&!w(Xi)(S.data)]]),ct(P("p",{class:z(w(s).be("panel","empty"))},Le(w(v)?w(o)("el.transfer.noMatch"):w(o)("el.transfer.noData")),3),[[Nt,w(v)||w(Xi)(S.data)]])],2),w(p)?(I(),X("p",{key:0,class:z(w(s).be("panel","footer"))},[Ce(S.$slots,"default")],2)):de("v-if",!0)],2))}});var IP=Ae(AFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const NFe={key:0},VFe={key:0},BFe=ae({name:"ElTransfer"}),$Fe=ae({...BFe,props:Gh,emits:TFe,setup(t,{expose:e,emit:n}){const r=t,a=fa(),{t:i}=jt(),o=ke("transfer"),{formItem:s}=Qa(),l=Zt({leftChecked:[],rightChecked:[]}),u=Lm(r),{sourceData:c,targetData:f}=RFe(r),{onSourceCheckedChange:d,onTargetCheckedChange:h}=kFe(l,n),{addToLeft:v,addToRight:p}=LFe(r,l,n),g=G(),y=G(),m=T=>{switch(T){case"left":g.value.query="";break;case"right":y.value.query="";break}},S=A(()=>r.buttonTexts.length===2),b=A(()=>r.titles[0]||i("el.transfer.titles.0")),x=A(()=>r.titles[1]||i("el.transfer.titles.1")),_=A(()=>r.filterPlaceholder||i("el.transfer.filterPlaceholder"));Me(()=>r.modelValue,()=>{var T;r.validateEvent&&((T=s==null?void 0:s.validate)==null||T.call(s,"change").catch(D=>void 0))});const C=A(()=>T=>r.renderContent?r.renderContent(rt,T):a.default?a.default({option:T}):rt("span",T[u.value.label]||T[u.value.key]));return e({clearQuery:m,leftPanel:g,rightPanel:y}),(T,D)=>(I(),X("div",{class:z(w(o).b())},[U(IP,{ref_key:"leftPanel",ref:g,data:w(c),"option-render":w(C),placeholder:w(_),title:w(b),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,"default-checked":T.leftDefaultChecked,props:r.props,onCheckedChange:w(d)},{default:q(()=>[Ce(T.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),P("div",{class:z(w(o).e("buttons"))},[U(w(ln),{type:"primary",class:z([w(o).e("button"),w(o).is("with-texts",w(S))]),disabled:w(Xi)(l.rightChecked),onClick:w(v)},{default:q(()=>[U(w(qe),null,{default:q(()=>[U(w(cc))]),_:1}),w(kr)(T.buttonTexts[0])?de("v-if",!0):(I(),X("span",NFe,Le(T.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),U(w(ln),{type:"primary",class:z([w(o).e("button"),w(o).is("with-texts",w(S))]),disabled:w(Xi)(l.leftChecked),onClick:w(p)},{default:q(()=>[w(kr)(T.buttonTexts[1])?de("v-if",!0):(I(),X("span",VFe,Le(T.buttonTexts[1]),1)),U(w(qe),null,{default:q(()=>[U(w(za))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),U(IP,{ref_key:"rightPanel",ref:y,data:w(f),"option-render":w(C),placeholder:w(_),filterable:T.filterable,format:T.format,"filter-method":T.filterMethod,title:w(x),"default-checked":T.rightDefaultChecked,props:r.props,onCheckedChange:w(h)},{default:q(()=>[Ce(T.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var IFe=Ae($Fe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const PFe=Tt(IFe),_p="$treeNodeId",PP=function(t,e){!e||e[_p]||Object.defineProperty(e,_p,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},IA=function(t,e){return t?e[t]:e[_p]},pk=(t,e,n)=>{const r=t.value.currentNode;n();const a=t.value.currentNode;r!==a&&e("current-change",a?a.data:null,a)},vk=t=>{let e=!0,n=!0,r=!0;for(let a=0,i=t.length;a<i;a++){const o=t[a];(o.checked!==!0||o.indeterminate)&&(e=!1,o.disabled||(r=!1)),(o.checked!==!1||o.indeterminate)&&(n=!1)}return{all:e,none:n,allWithoutDisable:r,half:!e&&!n}},Hb=function(t){if(t.childNodes.length===0||t.loading)return;const{all:e,none:n,half:r}=vk(t.childNodes);e?(t.checked=!0,t.indeterminate=!1):r?(t.checked=!1,t.indeterminate=!0):n&&(t.checked=!1,t.indeterminate=!1);const a=t.parent;!a||a.level===0||t.store.checkStrictly||Hb(a)},O1=function(t,e){const n=t.store.props,r=t.data||{},a=n[e];if(typeof a=="function")return a(r,t);if(typeof a=="string")return r[a];if(typeof a>"u"){const i=r[e];return i===void 0?"":i}};let FFe=0,gk=class Wb{constructor(e){this.id=FFe++,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=O1(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)||PP(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)||PP(this,e),this.data=e,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=O1(this,"children")||[];for(let r=0,a=n.length;r<a;r++)this.insertChild({data:n[r]})}get label(){return O1(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return O1(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-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 Wb)){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=Zt(new Wb(e)),e instanceof Wb&&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<this.childNodes.length;r++)if(this.childNodes[r].data===e){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(e,n){const 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||Hb(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}=vk(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<h;d++){const v=u[d];a=a||e!==!1;const p=v.disabled?v.checked:a;v.setChecked(p,n,!0,a)}const{half:c,all:f}=vk(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),Hb(this)},{checked:e!==!1});return}else l()}const i=this.parent;!i||i.level===0||r||Hb(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[_p];!!s&&n.findIndex(u=>u[_p]===s)>=0?r[s]={index:o,data:i}:a.push({index:o,data:i})}),this.store.lazy||n.forEach(i=>{r[i[_p]]||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 zFe{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 gk({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 gk)return e;const n=Lt(e)?IA(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;i<o;i++){const s=n[i];this.append(s,r.data)}}_setCheckedKeys(e,n=!1,r){const a=this._getAllNodes().sort((s,l)=>l.level-s.level),i=Object.create(null),o=Object.keys(r);a.forEach(s=>s.setChecked(!1,!1));for(let s=0,l=a.length;s<l;s++){const u=a[s],c=u.data[e].toString();if(!o.includes(c)){u.checked&&!i[c]&&u.setChecked(!1,!1);continue}let d=u.parent;for(;d&&d.level>0;)i[d.data[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(v){v.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 GFe=ae({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const e=ke("tree"),n=Ye("NodeInstance"),r=Ye("RootTree");return()=>{const a=t.node,{data:i,store:o}=a;return t.renderContent?t.renderContent(rt,{_self:n,node:a,data:i,store:o}):r.ctx.slots.default?r.ctx.slots.default({node:a,data:i}):rt("span",{class:e.be("node","label")},[a.label])}}});var UFe=Ae(GFe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function eX(t){const e=Ye("TreeNodeMap",null),n={treeNodeExpand:r=>{t.node!==r&&t.node.collapse()},children:[]};return e&&e.children.push(n),At("TreeNodeMap",n),{broadcastExpanded:r=>{if(t.accordion)for(const a of n.children)a.treeNodeExpand(r)}}}const tX=Symbol("dragEvents");function HFe({props:t,ctx:e,el$:n,dropIndicator$:r,store:a}){const i=ke("tree"),o=G({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return At(tX,{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&&hi(h.$el,i.is("drop-inner"));const v=o.value.draggingNode;if(!v||!d)return;let p=!0,g=!0,y=!0,m=!0;typeof t.allowDrop=="function"&&(p=t.allowDrop(v.node,d.node,"prev"),m=g=t.allowDrop(v.node,d.node,"inner"),y=t.allowDrop(v.node,d.node,"next")),c.dataTransfer.dropEffect=g||p||y?"move":"none",(p||g||y)&&(h==null?void 0:h.node.id)!==d.node.id&&(h&&e.emit("node-drag-leave",v.node,h.node,c),e.emit("node-drag-enter",v.node,d.node,c)),(p||g||y)&&(o.value.dropNode=d),d.node.nextSibling===v.node&&(y=!1),d.node.previousSibling===v.node&&(p=!1),d.node.contains(v.node,!1)&&(g=!1),(v.node===d.node||v.node.contains(d.node))&&(p=!1,g=!1,y=!1);const S=d.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),b=n.value.getBoundingClientRect();let x;const _=p?g?.25:y?.45:1:-1,C=y?g?.75:p?.55:0:1;let T=-9999;const D=c.clientY-S.top;D<S.height*_?x="before":D>S.height*C?x="after":g?x="inner":x="none";const M=d.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),E=r.value;x==="before"?T=M.top-b.top:x==="after"&&(T=M.bottom-b.top),E.style.top=`${T}px`,E.style.left=`${M.right-b.left}px`,x==="inner"?As(d.$el,i.is("drop-inner")):hi(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",v.node,d.node,c)},treeNodeDragEnd:c=>{const{draggingNode:f,dropType:d,dropNode:h}=o.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&h){const v={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?h.node.parent.insertBefore(v,h.node):d==="after"?h.node.parent.insertAfter(v,h.node):d==="inner"&&h.node.insertChild(v),d!=="none"&&a.value.registerNode(v),hi(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 WFe=ae({name:"ElTreeNode",components:{ElCollapseTransition:aC,ElCheckbox:co,NodeContent:UFe,ElIcon:qe,Loading:Rc},props:{node:{type:gk,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,e){const n=ke("tree"),{broadcastExpanded:r}=eX(t),a=Ye("RootTree"),i=G(!1),o=G(!1),s=G(null),l=G(null),u=G(null),c=Ye(tX),f=_t();At("NodeInstance",f),t.node.expanded&&(i.value=!0,o.value=!0);const d=a.props.props.children||"children";Me(()=>{const D=t.node.data[d];return D&&[...D]},()=>{t.node.updateChildren()}),Me(()=>t.node.indeterminate,D=>{p(t.node.checked,D)}),Me(()=>t.node.checked,D=>{p(D,t.node.indeterminate)}),Me(()=>t.node.expanded,D=>{Ze(()=>i.value=D),D&&(o.value=!0)});const h=D=>IA(a.props.nodeKey,D.data),v=D=>{const M=t.props.class;if(!M)return{};let E;if(ft(M)){const{data:k}=D;E=M(k,D)}else E=M;return vt(E)?{[E]:!0}:E},p=(D,M)=>{(s.value!==D||l.value!==M)&&a.ctx.emit("check-change",t.node.data,D,M),s.value=D,l.value=M},g=D=>{pk(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&&S(null,{target:{checked:!t.node.checked}}),a.ctx.emit("node-click",t.node.data,t.node,f,D)},y=D=>{a.instance.vnode.props.onNodeContextmenu&&(D.stopPropagation(),D.preventDefault()),a.ctx.emit("node-contextmenu",D,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)))},S=(D,M)=>{t.node.setChecked(M.target.checked,!a.props.checkStrictly),Ze(()=>{const E=a.store.value;a.ctx.emit("check",t.node.data,{checkedNodes:E.getCheckedNodes(),checkedKeys:E.getCheckedKeys(),halfCheckedNodes:E.getHalfCheckedNodes(),halfCheckedKeys:E.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:a,expanded:i,childNodeRendered:o,oldChecked:s,oldIndeterminate:l,getNodeKey:h,getNodeClass:v,handleSelectChange:p,handleClick:g,handleContextMenu:y,handleExpandIconClick:m,handleCheckChange:S,handleChildNodeExpand:(D,M,E)=>{r(M),a.ctx.emit("node-expand",D,M,E)},handleDragStart:D=>{a.props.draggable&&c.treeNodeDragStart({event:D,treeNode:t})},handleDragOver:D=>{D.preventDefault(),a.props.draggable&&c.treeNodeDragOver({event:D,treeNode:{$el:u.value,node:t.node}})},handleDrop:D=>{D.preventDefault()},handleDragEnd:D=>{a.props.draggable&&c.treeNodeDragEnd(D)},CaretRight:y9}}}),KFe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],jFe=["aria-expanded"];function YFe(t,e,n,r,a,i){const o=Pe("el-icon"),s=Pe("el-checkbox"),l=Pe("loading"),u=Pe("node-content"),c=Pe("el-tree-node"),f=Pe("el-collapse-transition");return ct((I(),X("div",{ref:"node$",class:z([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]=ot((...d)=>t.handleClick&&t.handleClick(...d),["stop"])),onContextmenu:e[2]||(e[2]=(...d)=>t.handleContextMenu&&t.handleContextMenu(...d)),onDragstart:e[3]||(e[3]=ot((...d)=>t.handleDragStart&&t.handleDragStart(...d),["stop"])),onDragover:e[4]||(e[4]=ot((...d)=>t.handleDragOver&&t.handleDragOver(...d),["stop"])),onDragend:e[5]||(e[5]=ot((...d)=>t.handleDragEnd&&t.handleDragEnd(...d),["stop"])),onDrop:e[6]||(e[6]=ot((...d)=>t.handleDrop&&t.handleDrop(...d),["stop"]))},[P("div",{class:z(t.ns.be("node","content")),style:et({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(I(),ve(o,{key:0,class:z([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:ot(t.handleExpandIconClick,["stop"])},{default:q(()=>[(I(),ve(Dt(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):de("v-if",!0),t.showCheckbox?(I(),ve(s,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:e[0]||(e[0]=ot(()=>{},["stop"])),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):de("v-if",!0),t.node.loading?(I(),ve(o,{key:2,class:z([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:q(()=>[U(l)]),_:1},8,["class"])):de("v-if",!0),U(u,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),U(f,null,{default:q(()=>[!t.renderAfterExpand||t.childNodeRendered?ct((I(),X("div",{key:0,class:z(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded},[(I(!0),X(Qe,null,Vt(t.node.childNodes,d=>(I(),ve(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,jFe)),[[Nt,t.expanded]]):de("v-if",!0)]),_:1})],42,KFe)),[[Nt,t.node.visible]])}var XFe=Ae(WFe,[["render",YFe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function qFe({el$:t},e){const n=ke("tree"),r=Cn([]),a=Cn([]);St(()=>{o()}),ql(()=>{r.value=Array.from(t.value.querySelectorAll("[role=treeitem]")),a.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"))}),Me(a,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),$n(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([nt.up,nt.down].includes(u)){if(s.preventDefault(),u===nt.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-1?c+1:0;const h=f;for(;!e.value.getNode(r.value[f].dataset.key).canFocus;){if(f++,f===h){f=-1;break}f>=r.value.length&&(f=0)}}f!==-1&&r.value[f].focus()}[nt.left,nt.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[nt.enter,nt.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 ZFe=ae({name:"ElTree",components:{ElTreeNode:XFe},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:Tn}},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}=jt(),r=ke("tree"),a=G(new zFe({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=G(a.value.root),o=G(null),s=G(null),l=G(null),{broadcastExpanded:u}=eX(t),{dragState:c}=HFe({props:t,ctx:e,el$:s,dropIndicator$:l,store:a});qFe({el$:s},a);const f=A(()=>{const{childNodes:V}=i.value;return!V||V.length===0||V.every(({visible:F})=>!F)});Me(()=>t.currentNodeKey,V=>{a.value.setCurrentNodeKey(V)}),Me(()=>t.defaultCheckedKeys,V=>{a.value.setDefaultCheckedKey(V)}),Me(()=>t.defaultExpandedKeys,V=>{a.value.setDefaultExpandedKeys(V)}),Me(()=>t.data,V=>{a.value.setData(V)},{deep:!0}),Me(()=>t.checkStrictly,V=>{a.value.checkStrictly=V});const d=V=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");a.value.filter(V)},h=V=>IA(t.nodeKey,V.data),v=V=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const F=a.value.getNode(V);if(!F)return[];const L=[F.data];let N=F.parent;for(;N&&N!==i.value;)L.push(N.data),N=N.parent;return L.reverse()},p=(V,F)=>a.value.getCheckedNodes(V,F),g=V=>a.value.getCheckedKeys(V),y=()=>{const V=a.value.getCurrentNode();return V?V.data:null},m=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const V=y();return V?V[t.nodeKey]:null},S=(V,F)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");a.value.setCheckedNodes(V,F)},b=(V,F)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");a.value.setCheckedKeys(V,F)},x=(V,F,L)=>{a.value.setChecked(V,F,L)},_=()=>a.value.getHalfCheckedNodes(),C=()=>a.value.getHalfCheckedKeys(),T=(V,F=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");pk(a,e.emit,()=>a.value.setUserCurrentNode(V,F))},D=(V,F=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");pk(a,e.emit,()=>a.value.setCurrentNodeKey(V,F))},M=V=>a.value.getNode(V),E=V=>{a.value.remove(V)},k=(V,F)=>{a.value.append(V,F)},R=(V,F)=>{a.value.insertBefore(V,F)},O=(V,F)=>{a.value.insertAfter(V,F)},B=(V,F,L)=>{u(F),e.emit("node-expand",V,F,L)},$=(V,F)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");a.value.updateChildren(V,F)};return At("RootTree",{ctx:e,props:t,store:a,root:i,currentNode:o,instance:_t()}),At(Ys,void 0),{ns:r,store:a,root:i,currentNode:o,dragState:c,el$:s,dropIndicator$:l,isEmpty:f,filter:d,getNodeKey:h,getNodePath:v,getCheckedNodes:p,getCheckedKeys:g,getCurrentNode:y,getCurrentKey:m,setCheckedNodes:S,setCheckedKeys:b,setChecked:x,getHalfCheckedNodes:_,getHalfCheckedKeys:C,setCurrentNode:T,setCurrentKey:D,t:n,getNode:M,remove:E,append:k,insertBefore:R,insertAfter:O,handleNodeExpand:B,updateKeyChildren:$}}});function QFe(t,e,n,r,a,i){const o=Pe("el-tree-node");return I(),X("div",{ref:"el$",class:z([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"},[(I(!0),X(Qe,null,Vt(t.root.childNodes,s=>(I(),ve(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?(I(),X("div",{key:0,class:z(t.ns.e("empty-block"))},[Ce(t.$slots,"empty",{},()=>{var s;return[P("span",{class:z(t.ns.e("empty-text"))},Le((s=t.emptyText)!=null?s:t.t("el.tree.emptyText")),3)]})],2)):de("v-if",!0),ct(P("div",{ref:"dropIndicator$",class:z(t.ns.e("drop-indicator"))},null,2),[[Nt,t.dragState.showDropIndicator]])],2)}var Kb=Ae(ZFe,[["render",QFe],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Kb.install=t=>{t.component(Kb.name,Kb)};const Yw=Kb,JFe=Yw,e4e=(t,{attrs:e},{tree:n,key:r})=>{const a=ke("tree-select"),i={...xl($r(t),Object.keys(Xs.props)),...e,valueKey:r,popperClass:A(()=>{const o=[a.e("popper")];return t.popperClass&&o.push(t.popperClass),o.join(" ")}),filterMethod:(o="")=>{t.filterMethod&&t.filterMethod(o),Ze(()=>{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},t4e=ae({extends:Fw,setup(t,e){const n=Fw.setup(t,e);delete n.selectOptionClick;const r=_t().proxy;return Ze(()=>{n.select.cachedOptions.get(r.value)||n.select.onOptionCreate(r)}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function yk(t){return t||t===0}function PA(t){return Array.isArray(t)&&t.length}function ug(t){return Array.isArray(t)?t:yk(t)?[t]:[]}function jb(t,e,n,r,a){for(let i=0;i<t.length;i++){const o=t[i];if(e(o,i,t,a))return r?r(o,i,t,a):o;{const s=n(o);if(PA(s)){const l=jb(s,e,n,r,o);if(l)return l}}}}function nX(t,e,n,r){for(let a=0;a<t.length;a++){const i=t[a];e(i,a,t,r);const o=n(i);PA(o)&&nX(o,e,n,i)}}const n4e=(t,{attrs:e,slots:n,emit:r},{select:a,tree:i,key:o})=>{Me(()=>t.modelValue,()=>{t.showCheckbox&&Ze(()=>{const d=i.value;d&&!di(d.getCheckedKeys(),ug(t.modelValue))&&d.setCheckedKeys(ug(t.modelValue))})},{immediate:!0,deep:!0});const s=A(()=>({value:o.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...t.props})),l=(d,h)=>{var v;const p=s.value[d];return ft(p)?p(h,(v=i.value)==null?void 0:v.getNode(l("value",h))):h[p]},u=ug(t.modelValue).map(d=>jb(t.data||[],h=>l("value",h)===d,h=>l("children",h),(h,v,p,g)=>g&&l("value",g))).filter(d=>yk(d)),c=A(()=>{if(!t.renderAfterExpand&&!t.lazy)return[];const d=[];return nX(t.data.concat(t.cacheData),h=>{const v=l("value",h);d.push({value:v,currentLabel:l("label",h),isDisabled:l("disabled",h)})},h=>l("children",h)),d}),f=A(()=>c.value.reduce((d,h)=>({...d,[h.value]:h}),{}));return{...xl($r(t),Object.keys(Yw.props)),...e,nodeKey:o,expandOnClickNode:A(()=>!t.checkStrictly&&t.expandOnClickNode),defaultExpandedKeys:A(()=>t.defaultExpandedKeys?t.defaultExpandedKeys.concat(u):u),renderContent:(d,{node:h,data:v,store:p})=>d(t4e,{value:l("value",v),label:l("label",v),disabled:l("disabled",v)},t.renderContent?()=>t.renderContent(d,{node:h,data:v,store:p}):n.default?()=>n.default({node:h,data:v,store:p}):void 0),filterNodeMethod:(d,h,v)=>{var p;return t.filterNodeMethod?t.filterNodeMethod(d,h,v):d?(p=l("label",h))==null?void 0:p.includes(d):!0},onNodeClick:(d,h,v)=>{var p,g,y;if((p=e.onNodeClick)==null||p.call(e,d,h,v),!(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&&v.proxy.handleExpandIconClick()},onCheck:(d,h)=>{if(!t.showCheckbox)return;const v=l("value",d),p=h.checkedKeys,g=t.multiple?ug(t.modelValue).filter(m=>m in f.value&&!i.value.getNode(m)&&!p.includes(m)):[],y=p.concat(g);if(t.checkStrictly)r(Et,t.multiple?y:y.includes(v)?v:void 0);else if(t.multiple)r(Et,i.value.getCheckedKeys(!0));else{const m=jb([d],x=>!PA(l("children",x))&&!l("disabled",x),x=>l("children",x)),S=m?l("value",m):void 0,b=yk(t.modelValue)&&!!jb([d],x=>l("value",x)===t.modelValue,x=>l("children",x));r(Et,S===t.modelValue||b?void 0:S)}Ze(()=>{var m;const S=ug(t.modelValue);i.value.setCheckedKeys(S),(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 r4e=ae({props:{data:{type:Array,default:()=>[]}},setup(t){const e=Ye(km);return Me(()=>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=ae({name:"ElTreeSelect",inheritAttrs:!1,props:{...Xs.props,...Yw.props,cacheData:{type:Array,default:()=>[]}},setup(t,e){const{slots:n,expose:r}=e,a=G(),i=G(),o=A(()=>t.nodeKey||t.valueKey||"value"),s=e4e(t,e,{select:a,tree:i,key:o}),{cacheOptions:l,...u}=n4e(t,e,{select:a,tree:i,key:o}),c=Zt({});return r(c),St(()=>{Object.assign(c,{...xl(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...xl(a.value,["focus","blur"])})}),()=>rt(Xs,Zt({...s,ref:f=>a.value=f}),{...n,default:()=>[rt(r4e,{data:l.value}),rt(Yw,Zt({...u,ref:f=>i.value=f}))]})}});var Yb=Ae(a4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);Yb.install=t=>{t.component(Yb.name,Yb)};const i4e=Yb,o4e=i4e,FA=Symbol(),s4e={key:-1,level:-1,data:{}};var Kg=(t=>(t.KEY="id",t.LABEL="label",t.CHILDREN="children",t.DISABLED="disabled",t))(Kg||{}),mk=(t=>(t.ADD="add",t.DELETE="delete",t))(mk||{});const rX={type:Number,default:26},l4e=Ne({data:{type:ge(Array),default:()=>Gn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:ge(Object),default:()=>Gn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:ge(Array),default:()=>Gn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:ge(Array),default:()=>Gn([])},indent:{type:Number,default:16},itemSize:rX,icon:{type:Tn},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:ge([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:ge(Function)},perfMode:{type:Boolean,default:!0}}),u4e=Ne({node:{type:ge(Object),default:()=>Gn(s4e)},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:rX}),c4e=Ne({node:{type:ge(Object),required:!0}}),aX="node-click",iX="node-expand",oX="node-collapse",sX="current-change",lX="check",uX="check-change",cX="node-contextmenu",f4e={[aX]:(t,e,n)=>t&&e&&n,[iX]:(t,e)=>t&&e,[oX]:(t,e)=>t&&e,[sX]:(t,e)=>t&&e,[lX]:(t,e)=>t&&e,[uX]:(t,e)=>t&&typeof e=="boolean",[cX]:(t,e,n)=>t&&e&&n},d4e={click:(t,e)=>!!(t&&e),toggle:t=>!!t,check:(t,e)=>t&&typeof e=="boolean"};function h4e(t,e){const n=G(new Set),r=G(new Set),{emit:a}=_t();Me([()=>e.value,()=>t.defaultCheckedKeys],()=>Ze(()=>{m(t.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!e.value||!t.showCheckbox||t.checkStrictly)return;const{levelTreeNodeMap:S,maxLevel:b}=e.value,x=n.value,_=new Set;for(let C=b-1;C>=1;--C){const T=S.get(C);T&&T.forEach(D=>{const M=D.children;if(M){let E=!0,k=!1;for(const R of M){const O=R.key;if(x.has(O))k=!0;else if(_.has(O)){E=!1,k=!0;break}else E=!1}E?x.add(D.key):k?(_.add(D.key),x.delete(D.key)):(x.delete(D.key),_.delete(D.key))}})}r.value=_},o=S=>n.value.has(S.key),s=S=>r.value.has(S.key),l=(S,b,x=!0)=>{const _=n.value,C=(T,D)=>{_[D?mk.ADD:mk.DELETE](T.key);const M=T.children;!t.checkStrictly&&M&&M.forEach(E=>{E.disabled||C(E,D)})};C(S,b),i(),x&&u(S,b)},u=(S,b)=>{const{checkedNodes:x,checkedKeys:_}=v(),{halfCheckedNodes:C,halfCheckedKeys:T}=p();a(lX,S.data,{checkedKeys:_,checkedNodes:x,halfCheckedKeys:T,halfCheckedNodes:C}),a(uX,S.data,b)};function c(S=!1){return v(S).checkedKeys}function f(S=!1){return v(S).checkedNodes}function d(){return p().halfCheckedKeys}function h(){return p().halfCheckedNodes}function v(S=!1){const b=[],x=[];if(e!=null&&e.value&&t.showCheckbox){const{treeNodeMap:_}=e.value;n.value.forEach(C=>{const T=_.get(C);T&&(!S||S&&T.isLeaf)&&(x.push(C),b.push(T.data))})}return{checkedKeys:x,checkedNodes:b}}function p(){const S=[],b=[];if(e!=null&&e.value&&t.showCheckbox){const{treeNodeMap:x}=e.value;r.value.forEach(_=>{const C=x.get(_);C&&(b.push(_),S.push(C.data))})}return{halfCheckedNodes:S,halfCheckedKeys:b}}function g(S){n.value.clear(),r.value.clear(),m(S)}function y(S,b){if(e!=null&&e.value&&t.showCheckbox){const x=e.value.treeNodeMap.get(S);x&&l(x,b,!1)}}function m(S){if(e!=null&&e.value){const{treeNodeMap:b}=e.value;if(t.showCheckbox&&b&&S)for(const x of S){const _=b.get(x);_&&!o(_)&&l(_,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:o,isIndeterminate:s,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:d,getHalfCheckedNodes:h,setChecked:y,setCheckedKeys:g}}function p4e(t,e){const n=G(new Set([])),r=G(new Set([])),a=A(()=>ft(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)||[],v=t.filterMethod;f.clear();function p(g){g.forEach(y=>{d.push(y),v!=null&&v(s,y.data)?d.forEach(S=>{u.add(S.key)}):y.isLeaf&&f.add(y.key);const m=y.children;if(m&&p(m),!y.isLeaf){if(!u.has(y.key))f.add(y.key);else if(m){let S=!0;for(const b of m)if(!f.has(b.key)){S=!1;break}S?c.add(y.key):c.delete(y.key)}}d.pop()})}return p(h),u}function o(s){return r.value.has(s.key)}return{hiddenExpandIconKeySet:r,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:o}}function v4e(t,e){const n=G(new Set(t.defaultExpandedKeys)),r=G(),a=Cn();Me(()=>t.currentNodeKey,Z=>{r.value=Z},{immediate:!0}),Me(()=>t.data,Z=>{le(Z)},{immediate:!0});const{isIndeterminate:i,isChecked:o,toggleCheckbox:s,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h}=h4e(t,a),{doFilter:v,hiddenNodeKeySet:p,isForceHiddenExpandIcon:g}=p4e(t,a),y=A(()=>{var Z;return((Z=t.props)==null?void 0:Z.value)||Kg.KEY}),m=A(()=>{var Z;return((Z=t.props)==null?void 0:Z.children)||Kg.CHILDREN}),S=A(()=>{var Z;return((Z=t.props)==null?void 0:Z.disabled)||Kg.DISABLED}),b=A(()=>{var Z;return((Z=t.props)==null?void 0:Z.label)||Kg.LABEL}),x=A(()=>{const Z=n.value,ee=p.value,ce=[],ue=a.value&&a.value.treeNodes||[];function Y(){const te=[];for(let oe=ue.length-1;oe>=0;--oe)te.push(ue[oe]);for(;te.length;){const oe=te.pop();if(oe&&(ee.has(oe.key)||ce.push(oe),Z.has(oe.key))){const Se=oe.children;if(Se){const fe=Se.length;for(let ne=fe-1;ne>=0;--ne)te.push(Se[ne])}}}}return Y(),ce}),_=A(()=>x.value.length>0);function C(Z){const ee=new Map,ce=new Map;let ue=1;function Y(oe,Se=1,fe=void 0){var ne;const Ee=[];for(const _e of oe){const me=M(_e),Te={level:Se,key:me,data:_e};Te.label=k(_e),Te.parent=fe;const Ve=D(_e);Te.disabled=E(_e),Te.isLeaf=!Ve||Ve.length===0,Ve&&Ve.length&&(Te.children=Y(Ve,Se+1,Te)),Ee.push(Te),ee.set(me,Te),ce.has(Se)||ce.set(Se,[]),(ne=ce.get(Se))==null||ne.push(Te)}return Se>ue&&(ue=Se),Ee}const te=Y(Z);return{treeNodeMap:ee,levelTreeNodeMap:ce,maxLevel:ue,treeNodes:te}}function T(Z){const ee=v(Z);ee&&(n.value=ee)}function D(Z){return Z[m.value]}function M(Z){return Z?Z[y.value]:""}function E(Z){return Z[S.value]}function k(Z){return Z[b.value]}function R(Z){n.value.has(Z.key)?L(Z):F(Z)}function O(Z){n.value=new Set(Z)}function B(Z,ee){e(aX,Z.data,Z,ee),$(Z),t.expandOnClickNode&&R(Z),t.showCheckbox&&t.checkOnClickNode&&!Z.disabled&&s(Z,!o(Z),!0)}function $(Z){K(Z)||(r.value=Z.key,e(sX,Z.data,Z))}function V(Z,ee){s(Z,ee)}function F(Z){const ee=n.value;if(a.value&&t.accordion){const{treeNodeMap:ce}=a.value;ee.forEach(ue=>{const Y=ce.get(ue);Z&&Z.level===(Y==null?void 0:Y.level)&&ee.delete(ue)})}ee.add(Z.key),e(iX,Z.data,Z)}function L(Z){n.value.delete(Z.key),e(oX,Z.data,Z)}function N(Z){return n.value.has(Z.key)}function H(Z){return!!Z.disabled}function K(Z){const ee=r.value;return ee!==void 0&&ee===Z.key}function Q(){var Z,ee;if(r.value)return(ee=(Z=a.value)==null?void 0:Z.treeNodeMap.get(r.value))==null?void 0:ee.data}function ie(){return r.value}function be(Z){r.value=Z}function le(Z){Ze(()=>a.value=C(Z))}function J(Z){var ee;const ce=Lt(Z)?M(Z):Z;return(ee=a.value)==null?void 0:ee.treeNodeMap.get(ce)}return{tree:a,flattenTree:x,isNotEmpty:_,getKey:M,getChildren:D,toggleExpand:R,toggleCheckbox:s,isExpanded:N,isChecked:o,isIndeterminate:i,isDisabled:H,isCurrent:K,isForceHiddenExpandIcon:g,handleNodeClick:B,handleNodeCheck:V,getCurrentNode:Q,getCurrentKey:ie,setCurrentKey:be,getCheckedKeys:l,getCheckedNodes:u,getHalfCheckedKeys:c,getHalfCheckedNodes:f,setChecked:d,setCheckedKeys:h,filter:T,setData:le,getNode:J,expandNode:F,collapseNode:L,setExpandedKeys:O}}var g4e=ae({name:"ElTreeNodeContent",props:c4e,setup(t){const e=Ye(FA),n=ke("tree");return()=>{const r=t.node,{data:a}=r;return e!=null&&e.ctx.slots.default?e.ctx.slots.default({node:r,data:a}):rt("span",{class:n.be("node","label")},[r==null?void 0:r.label])}}});const y4e=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],m4e=ae({name:"ElTreeNode"}),S4e=ae({...m4e,props:u4e,emits:d4e,setup(t,{emit:e}){const n=t,r=Ye(FA),a=ke("tree"),i=A(()=>{var f;return(f=r==null?void 0:r.props.indent)!=null?f:16}),o=A(()=>{var f;return(f=r==null?void 0:r.props.icon)!=null?f:y9}),s=f=>{e("click",n.node,f)},l=()=>{e("toggle",n.node)},u=f=>{e("check",n.node,f)},c=f=>{var d,h,v,p;(v=(h=(d=r==null?void 0:r.instance)==null?void 0:d.vnode)==null?void 0:h.props)!=null&&v.onNodeContextmenu&&(f.stopPropagation(),f.preventDefault()),r==null||r.ctx.emit(cX,f,(p=n.node)==null?void 0:p.data,n.node)};return(f,d)=>{var h,v,p;return I(),X("div",{ref:"node$",class:z([w(a).b("node"),w(a).is("expanded",f.expanded),w(a).is("current",f.current),w(a).is("focusable",!f.disabled),w(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:ot(s,["stop"]),onContextmenu:c},[P("div",{class:z(w(a).be("node","content")),style:et({paddingLeft:`${(f.node.level-1)*w(i)}px`,height:f.itemSize+"px"})},[w(o)?(I(),ve(w(qe),{key:0,class:z([w(a).is("leaf",!!((v=f.node)!=null&&v.isLeaf)),w(a).is("hidden",f.hiddenExpandIcon),{expanded:!((p=f.node)!=null&&p.isLeaf)&&f.expanded},w(a).be("node","expand-icon")]),onClick:ot(l,["stop"])},{default:q(()=>[(I(),ve(Dt(w(o))))]),_:1},8,["class","onClick"])):de("v-if",!0),f.showCheckbox?(I(),ve(w(co),{key:1,"model-value":f.checked,indeterminate:f.indeterminate,disabled:f.disabled,onChange:u,onClick:d[0]||(d[0]=ot(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):de("v-if",!0),U(w(g4e),{node:f.node},null,8,["node"])],6)],42,y4e)}}});var b4e=Ae(S4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const w4e=ae({name:"ElTreeV2"}),_4e=ae({...w4e,props:l4e,emits:f4e,setup(t,{expose:e,emit:n}){const r=t,a=fa(),i=A(()=>r.itemSize);At(FA,{ctx:{emit:n,slots:a},props:r,instance:_t()}),At(Ys,void 0);const{t:o}=jt(),s=ke("tree"),{flattenTree:l,isNotEmpty:u,toggleExpand:c,isExpanded:f,isIndeterminate:d,isChecked:h,isDisabled:v,isCurrent:p,isForceHiddenExpandIcon:g,handleNodeClick:y,handleNodeCheck:m,toggleCheckbox:S,getCurrentNode:b,getCurrentKey:x,setCurrentKey:_,getCheckedKeys:C,getCheckedNodes:T,getHalfCheckedKeys:D,getHalfCheckedNodes:M,setChecked:E,setCheckedKeys:k,filter:R,setData:O,getNode:B,expandNode:$,collapseNode:V,setExpandedKeys:F}=v4e(r,n);return e({toggleCheckbox:S,getCurrentNode:b,getCurrentKey:x,setCurrentKey:_,getCheckedKeys:C,getCheckedNodes:T,getHalfCheckedKeys:D,getHalfCheckedNodes:M,setChecked:E,setCheckedKeys:k,filter:R,setData:O,getNode:B,expandNode:$,collapseNode:V,setExpandedKeys:F}),(L,N)=>{var H;return I(),X("div",{class:z([w(s).b(),{[w(s).m("highlight-current")]:L.highlightCurrent}]),role:"tree"},[w(u)?(I(),ve(w(gY),{key:0,"class-name":w(s).b("virtual-list"),data:w(l),total:w(l).length,height:L.height,"item-size":w(i),"perf-mode":L.perfMode},{default:q(({data:K,index:Q,style:ie})=>[(I(),ve(b4e,{key:K[Q].key,style:et(ie),node:K[Q],expanded:w(f)(K[Q]),"show-checkbox":L.showCheckbox,checked:w(h)(K[Q]),indeterminate:w(d)(K[Q]),"item-size":w(i),disabled:w(v)(K[Q]),current:w(p)(K[Q]),"hidden-expand-icon":w(g)(K[Q]),onClick:w(y),onToggle:w(c),onCheck:w(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"])):(I(),X("div",{key:1,class:z(w(s).e("empty-block"))},[P("span",{class:z(w(s).e("empty-text"))},Le((H=L.emptyText)!=null?H:w(o)("el.tree.emptyText")),3)],2))],2)}}});var x4e=Ae(_4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const C4e=Tt(x4e),fX=Symbol("uploadContextKey"),T4e="ElUpload";class E4e extends Error{constructor(e,n,r,a){super(e),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=a}}function FP(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 E4e(r,n.status,e.method,t)}function M4e(t){const e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch{return e}}const D4e=t=>{typeof XMLHttpRequest>"u"&&wr(T4e,"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))Ke(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(FP(n,t,e))}),e.addEventListener("load",()=>{if(e.status<200||e.status>=300)return t.onError(FP(n,t,e));t.onSuccess(M4e(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))mr(o)||e.setRequestHeader(i,String(o));return e.send(r),e},dX=["text","picture","picture-card"];let k4e=1;const Sk=()=>Date.now()+k4e++,hX=Ne({action:{type:String,default:"#"},headers:{type:ge(Object)},method:{type:String,default:"post"},data:{type:ge([Object,Function,Promise]),default:()=>Gn({})},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:ge(Array),default:()=>Gn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:dX,default:"text"},httpRequest:{type:ge(Function),default:D4e},disabled:Boolean,limit:Number}),R4e=Ne({...hX,beforeUpload:{type:ge(Function),default:pn},beforeRemove:{type:ge(Function)},onRemove:{type:ge(Function),default:pn},onChange:{type:ge(Function),default:pn},onPreview:{type:ge(Function),default:pn},onSuccess:{type:ge(Function),default:pn},onProgress:{type:ge(Function),default:pn},onError:{type:ge(Function),default:pn},onExceed:{type:ge(Function),default:pn}}),L4e=Ne({files:{type:ge(Array),default:()=>Gn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:ge(Function),default:pn},listType:{type:String,values:dX,default:"text"}}),O4e={remove:t=>!!t},A4e=["onKeydown"],N4e=["src"],V4e=["onClick"],B4e=["title"],$4e=["onClick"],I4e=["onClick"],P4e=ae({name:"ElUploadList"}),F4e=ae({...P4e,props:L4e,emits:O4e,setup(t,{emit:e}){const{t:n}=jt(),r=ke("upload"),a=ke("icon"),i=ke("list"),o=mi(),s=G(!1),l=u=>{e("remove",u)};return(u,c)=>(I(),ve(ZW,{tag:"ul",class:z([w(r).b("list"),w(r).bm("list",u.listType),w(r).is("disabled",w(o))]),name:w(i).b()},{default:q(()=>[(I(!0),X(Qe,null,Vt(u.files,f=>(I(),X("li",{key:f.uid||f.name,class:z([w(r).be("list","item"),w(r).is(f.status),{focusing:s.value}]),tabindex:"0",onKeydown:Kt(d=>!w(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)},[Ce(u.$slots,"default",{file:f},()=>[u.listType==="picture"||f.status!=="uploading"&&u.listType==="picture-card"?(I(),X("img",{key:0,class:z(w(r).be("list","item-thumbnail")),src:f.url,alt:""},null,10,N4e)):de("v-if",!0),f.status==="uploading"||u.listType!=="picture-card"?(I(),X("div",{key:1,class:z(w(r).be("list","item-info"))},[P("a",{class:z(w(r).be("list","item-name")),onClick:ot(d=>u.handlePreview(f),["prevent"])},[U(w(qe),{class:z(w(a).m("document"))},{default:q(()=>[U(w(S1e))]),_:1},8,["class"]),P("span",{class:z(w(r).be("list","item-file-name")),title:f.name},Le(f.name),11,B4e)],10,V4e),f.status==="uploading"?(I(),ve(w(sY),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(f.percentage),style:et(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):de("v-if",!0)],2)):de("v-if",!0),P("label",{class:z(w(r).be("list","item-status-label"))},[u.listType==="text"?(I(),ve(w(qe),{key:0,class:z([w(a).m("upload-success"),w(a).m("circle-check")])},{default:q(()=>[U(w(NO))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(I(),ve(w(qe),{key:1,class:z([w(a).m("upload-success"),w(a).m("check")])},{default:q(()=>[U(w(Cm))]),_:1},8,["class"])):de("v-if",!0)],2),w(o)?de("v-if",!0):(I(),ve(w(qe),{key:2,class:z(w(a).m("close")),onClick:d=>l(f)},{default:q(()=>[U(w(Jo))]),_:2},1032,["class","onClick"])),de(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),de(" This is a bug which needs to be fixed "),de(" TODO: Fix the incorrect navigation interaction "),w(o)?de("v-if",!0):(I(),X("i",{key:3,class:z(w(a).m("close-tip"))},Le(w(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(I(),X("span",{key:4,class:z(w(r).be("list","item-actions"))},[P("span",{class:z(w(r).be("list","item-preview")),onClick:d=>u.handlePreview(f)},[U(w(qe),{class:z(w(a).m("zoom-in"))},{default:q(()=>[U(w(w9))]),_:1},8,["class"])],10,$4e),w(o)?de("v-if",!0):(I(),X("span",{key:0,class:z(w(r).be("list","item-delete")),onClick:d=>l(f)},[U(w(qe),{class:z(w(a).m("delete"))},{default:q(()=>[U(w(h1e))]),_:1},8,["class"])],10,I4e))],2)):de("v-if",!0)])],42,A4e))),128)),Ce(u.$slots,"append")]),_:3},8,["class","name"]))}});var zP=Ae(F4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const z4e=Ne({disabled:{type:Boolean,default:!1}}),G4e={file:t=>Ke(t)},U4e=["onDrop","onDragover"],pX="ElUploadDrag",H4e=ae({name:pX}),W4e=ae({...H4e,props:z4e,emits:G4e,setup(t,{emit:e}){const n=Ye(fX);n||wr(pX,"usage: <el-upload><el-upload-dragger /></el-upload>");const r=ke("upload"),a=G(!1),i=mi(),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:v}=d,p=v.includes(".")?`.${v.split(".").pop()}`:"",g=h.replace(/\/.*$/,"");return c.split(",").map(y=>y.trim()).filter(y=>y).some(y=>y.startsWith(".")?p===y:/\/\*$/.test(y)?g===y.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(y)?h===y:!1)});e("file",f)},s=()=>{i.value||(a.value=!0)};return(l,u)=>(I(),X("div",{class:z([w(r).b("dragger"),w(r).is("dragover",a.value)]),onDrop:ot(o,["prevent"]),onDragover:ot(s,["prevent"]),onDragleave:u[0]||(u[0]=ot(c=>a.value=!1,["prevent"]))},[Ce(l.$slots,"default")],42,U4e))}});var K4e=Ae(W4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const j4e=Ne({...hX,beforeUpload:{type:ge(Function),default:pn},onRemove:{type:ge(Function),default:pn},onStart:{type:ge(Function),default:pn},onSuccess:{type:ge(Function),default:pn},onProgress:{type:ge(Function),default:pn},onError:{type:ge(Function),default:pn},onExceed:{type:ge(Function),default:pn}}),Y4e=["onKeydown"],X4e=["name","multiple","accept"],q4e=ae({name:"ElUploadContent",inheritAttrs:!1}),Z4e=ae({...q4e,props:j4e,setup(t,{expose:e}){const n=t,r=ke("upload"),a=mi(),i=Cn({}),o=Cn(),s=p=>{if(p.length===0)return;const{autoUpload:g,limit:y,fileList:m,multiple:S,onStart:b,onExceed:x}=n;if(y&&m.length+p.length>y){x(p,m);return}S||(p=p.slice(0,1));for(const _ of p){const C=_;C.uid=Sk(),b(C),g&&l(C)}},l=async p=>{if(o.value.value="",!n.beforeUpload)return c(p);let g,y={};try{const S=n.data,b=n.beforeUpload(p);y=_w(n.data)?Aw(n.data):n.data,g=await b,_w(n.data)&&di(S,y)&&(y=Aw(n.data))}catch{g=!1}if(g===!1){n.onRemove(p);return}let m=p;g instanceof Blob&&(g instanceof File?m=g:m=new File([g],p.name,{type:p.type})),c(Object.assign(m,{uid:p.uid}),y)},u=async(p,g)=>ft(p)?p(g):p,c=async(p,g)=>{const{headers:y,data:m,method:S,withCredentials:b,name:x,action:_,onProgress:C,onSuccess:T,onError:D,httpRequest:M}=n;try{g=await u(g??m,p)}catch{n.onRemove(p);return}const{uid:E}=p,k={headers:y||{},withCredentials:b,file:p,data:g,method:S,filename:x,action:_,onProgress:O=>{C(O,p)},onSuccess:O=>{T(O,p),delete i.value[E]},onError:O=>{D(O,p),delete i.value[E]}},R=M(k);i.value[E]=R,R instanceof Promise&&R.then(k.onSuccess,k.onError)},f=p=>{const g=p.target.files;g&&s(Array.from(g))},d=()=>{a.value||(o.value.value="",o.value.click())},h=()=>{d()};return e({abort:p=>{Sye(i.value).filter(p?([y])=>String(p.uid)===y:()=>!0).forEach(([y,m])=>{m instanceof XMLHttpRequest&&m.abort(),delete i.value[y]})},upload:l}),(p,g)=>(I(),X("div",{class:z([w(r).b(),w(r).m(p.listType),w(r).is("drag",p.drag)]),tabindex:"0",onClick:d,onKeydown:Kt(ot(h,["self"]),["enter","space"])},[p.drag?(I(),ve(K4e,{key:0,disabled:w(a),onFile:s},{default:q(()=>[Ce(p.$slots,"default")]),_:3},8,["disabled"])):Ce(p.$slots,"default",{key:1}),P("input",{ref_key:"inputRef",ref:o,class:z(w(r).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:g[0]||(g[0]=ot(()=>{},["stop"]))},null,42,X4e)],42,Y4e))}});var GP=Ae(Z4e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const UP="ElUpload",HP=t=>{var e;(e=t.url)!=null&&e.startsWith("blob:")&&URL.revokeObjectURL(t.url)},Q4e=(t,e)=>{const n=ide(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 v=r(h);v&&(console.error(d),v.status="fail",n.value.splice(n.value.indexOf(v),1),t.onError(d,v,n.value),t.onChange(v,n.value))},s=(d,h)=>{const v=r(h);v&&(t.onProgress(d,v,n.value),v.status="uploading",v.percentage=Math.round(d.percent))},l=(d,h)=>{const v=r(h);v&&(v.status="success",v.response=d,t.onSuccess(d,v,n.value),t.onChange(v,n.value))},u=d=>{mr(d.uid)&&(d.uid=Sk());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(v){v.message,t.onError(v,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||wr(UP,"file to be removed not found");const v=p=>{a(p);const g=n.value;g.splice(g.indexOf(p),1),t.onRemove(p,g),HP(p)};t.beforeRemove?await t.beforeRemove(h,n.value)!==!1&&v(h):v(h)};function f(){n.value.filter(({status:d})=>d==="ready").forEach(({raw:d})=>{var h;return d&&((h=e.value)==null?void 0:h.upload(d))})}return Me(()=>t.listType,d=>{d!=="picture-card"&&d!=="picture"||(n.value=n.value.map(h=>{const{raw:v,url:p}=h;if(!p&&v)try{h.url=URL.createObjectURL(v)}catch(g){t.onError(g,h,n.value)}return h}))}),Me(n,d=>{for(const h of d)h.uid||(h.uid=Sk()),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:HP}},J4e=ae({name:"ElUpload"}),e5e=ae({...J4e,props:R4e,setup(t,{expose:e}){const n=t,r=mi(),a=Cn(),{abort:i,submit:o,clearFiles:s,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:d,handleProgress:h,revokeFileObjectURL:v}=Q4e(n,a),p=A(()=>n.listType==="picture-card"),g=A(()=>({...n,fileList:l.value,onStart:u,onProgress:h,onSuccess:d,onError:c,onRemove:f}));return Pn(()=>{l.value.forEach(v)}),At(fX,{accept:Kn(n,"accept")}),e({abort:i,submit:o,clearFiles:s,handleStart:u,handleRemove:f}),(y,m)=>(I(),X("div",null,[w(p)&&y.showFileList?(I(),ve(zP,{key:0,disabled:w(r),"list-type":y.listType,files:w(l),"handle-preview":y.onPreview,onRemove:w(f)},Bl({append:q(()=>[U(GP,Mt({ref_key:"uploadRef",ref:a},w(g)),{default:q(()=>[y.$slots.trigger?Ce(y.$slots,"trigger",{key:0}):de("v-if",!0),!y.$slots.trigger&&y.$slots.default?Ce(y.$slots,"default",{key:1}):de("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:q(({file:S})=>[Ce(y.$slots,"file",{file:S})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):de("v-if",!0),!w(p)||w(p)&&!y.showFileList?(I(),ve(GP,Mt({key:1,ref_key:"uploadRef",ref:a},w(g)),{default:q(()=>[y.$slots.trigger?Ce(y.$slots,"trigger",{key:0}):de("v-if",!0),!y.$slots.trigger&&y.$slots.default?Ce(y.$slots,"default",{key:1}):de("v-if",!0)]),_:3},16)):de("v-if",!0),y.$slots.trigger?Ce(y.$slots,"default",{key:2}):de("v-if",!0),Ce(y.$slots,"tip"),!w(p)&&y.showFileList?(I(),ve(zP,{key:3,disabled:w(r),"list-type":y.listType,files:w(l),"handle-preview":y.onPreview,onRemove:w(f)},Bl({_:2},[y.$slots.file?{name:"default",fn:q(({file:S})=>[Ce(y.$slots,"file",{file:S})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):de("v-if",!0)]))}});var t5e=Ae(e5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const n5e=Tt(t5e);var r5e=[sxe,mxe,HTe,SPe,ZTe,a2e,TK,y2e,m2e,ln,OK,$Ee,GEe,nMe,rMe,yDe,rDe,xDe,co,xMe,oj,VDe,JDe,eke,WDe,kke,J_e,zke,Gke,Uke,Hke,Wke,fLe,wLe,_Le,Ds,zj,ZLe,GOe,UOe,HOe,qj,fCe,dCe,qe,BAe,Zj,wa,Qj,qAe,g3e,y3e,m3e,S3e,E3e,LNe,$Ne,KNe,_K,sY,hj,PMe,IMe,uVe,pVe,RDe,Jl,Xs,Fw,rNe,aBe,dBe,hBe,UBe,YBe,EY,i$e,p$e,v$e,E$e,NIe,VIe,mPe,NPe,VPe,vy,FPe,vEe,KPe,ZPe,QPe,Ya,CFe,PFe,JFe,o4e,C4e,n5e];const Ao="ElInfiniteScroll",a5e=50,i5e=200,o5e=0,s5e={delay:{type:Number,default:i5e},distance:{type:Number,default:o5e},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},zA=(t,e)=>Object.entries(s5e).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},{}),vX=t=>{const{observer:e}=t[Ao];e&&(e.disconnect(),delete t[Ao].observer)},l5e=(t,e)=>{const{container:n,containerEl:r,instance:a,observer:i,lastScrollTop:o}=t[Ao],{disabled:s,distance:l}=zA(t,a),{clientHeight:u,scrollHeight:c,scrollTop:f}=r,d=f-o;if(t[Ao].lastScrollTop=f,i||s||d<0)return;let h=!1;if(n===t)h=c-(u+f)<=l;else{const{clientTop:v,scrollHeight:p}=t,g=ude(t,r);h=f+u>=g+v+p-l}h&&e.call(a)};function jT(t,e){const{containerEl:n,instance:r}=t[Ao],{disabled:a}=zA(t,r);a||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?e.call(r):vX(t))}const u5e={async mounted(t,e){const{instance:n,value:r}=e;ft(r)||wr(Ao,"'v-infinite-scroll' binding value must be a function"),await Ze();const{delay:a,immediate:i}=zA(t,n),o=AO(t,!0),s=o===window?document.documentElement:o,l=hd(l5e.bind(null,t,r),a);if(o){if(t[Ao]={instance:n,container:o,containerEl:s,delay:a,cb:r,onScroll:l,lastScrollTop:s.scrollTop},i){const u=new MutationObserver(hd(jT.bind(null,t,r),a5e));t[Ao].observer=u,u.observe(t,{childList:!0,subtree:!0}),jT(t,r)}o.addEventListener("scroll",l)}},unmounted(t){const{container:e,onScroll:n}=t[Ao];e==null||e.removeEventListener("scroll",n),vX(t)},async updated(t){if(!t[Ao])await Ze();else{const{containerEl:e,cb:n,observer:r}=t[Ao];e.clientHeight&&r&&jT(t,n)}}},bk=u5e;bk.install=t=>{t.directive("InfiniteScroll",bk)};const c5e=bk;function f5e(t){let e;const n=G(!1),r=Zt({...t,originalPosition:"",originalOverflow:"",visible:!1});function a(d){r.text=d}function i(){const d=r.parent,h=f.ns;if(!d.vLoadingAddClassList){let v=d.getAttribute("loading-number");v=Number.parseInt(v)-1,v?d.setAttribute("loading-number",v.toString()):(hi(d,h.bm("parent","relative")),d.removeAttribute("loading-number")),hi(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=ae({name:"ElLoading",setup(d,{expose:h}){const{ns:v,zIndex:p}=eC("loading");return h({ns:v,zIndex:p}),()=>{const g=r.spinner||r.svg,y=rt("svg",{class:"circular",viewBox:r.svgViewBox?r.svgViewBox:"0 0 50 50",...g?{innerHTML:g}:{}},[rt("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),m=r.text?rt("p",{class:v.b("text")},[r.text]):void 0;return rt(or,{name:v.b("fade"),onAfterLeave:l},{default:q(()=>[ct(U("div",{style:{backgroundColor:r.background||""},class:[v.b("mask"),r.customClass,r.fullscreen?"is-fullscreen":""]},[rt("div",{class:v.b("spinner")},[y,m])]),[[Nt,r.visible]])])})}}}),c=n7(u),f=c.mount(document.createElement("div"));return{...$r(r),setText:a,removeElLoadingChild:o,close:s,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let A1;const wk=function(t={}){if(!Ht)return;const e=d5e(t);if(e.fullscreen&&A1)return A1;const n=f5e({...e,closed:()=>{var a;(a=e.closed)==null||a.call(e),e.fullscreen&&(A1=void 0)}});h5e(e,e.parent,n),WP(e,e.parent,n),e.parent.vLoadingAddClassList=()=>WP(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),Ze(()=>n.visible.value=e.visible),e.fullscreen&&(A1=n),n},d5e=t=>{var e,n,r,a;let i;return vt(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}},h5e=async(t,e,n)=>{const{nextZIndex:r}=n.vm.zIndex||n.vm._.exposed.zIndex,a={};if(t.fullscreen)n.originalPosition.value=$u(document.body,"position"),n.originalOverflow.value=$u(document.body,"overflow"),a.zIndex=r();else if(t.parent===document.body){n.originalPosition.value=$u(document.body,"position"),await Ze();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($u(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])a[i]=`${t.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=$u(e,"position");for(const[i,o]of Object.entries(a))n.$el.style[i]=o},WP=(t,e,n)=>{const r=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?hi(e,r.bm("parent","relative")):As(e,r.bm("parent","relative")),t.fullscreen&&t.lock?As(e,r.bm("parent","hidden")):hi(e,r.bm("parent","hidden"))},_k=Symbol("ElLoading"),KP=(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=vt(d)&&(o==null?void 0:o[d])||d;return h&&G(h)},u=d=>l(s(d)||t.getAttribute(`element-loading-${Ec(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[_k]={options:f,instance:wk(f)}},p5e=(t,e)=>{for(const n of Object.keys(e))en(e[n])&&(e[n].value=t[n])},jP={mounted(t,e){e.value&&KP(t,e)},updated(t,e){const n=t[_k];e.oldValue!==e.value&&(e.value&&!e.oldValue?KP(t,e):e.value&&e.oldValue?Lt(e.value)&&p5e(e.value,n.options):n==null||n.instance.close())},unmounted(t){var e;(e=t[_k])==null||e.instance.close()}},v5e={install(t){t.directive("loading",jP),t.config.globalProperties.$loading=wk},directive:jP,service:wk},gX=["success","info","warning","error"],ii=Gn({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:Ht?document.body:void 0}),g5e=Ne({customClass:{type:String,default:ii.customClass},center:{type:Boolean,default:ii.center},dangerouslyUseHTMLString:{type:Boolean,default:ii.dangerouslyUseHTMLString},duration:{type:Number,default:ii.duration},icon:{type:Tn,default:ii.icon},id:{type:String,default:ii.id},message:{type:ge([String,Object,Function]),default:ii.message},onClose:{type:ge(Function),required:!1},showClose:{type:Boolean,default:ii.showClose},type:{type:String,values:gX,default:ii.type},offset:{type:Number,default:ii.offset},zIndex:{type:Number,default:ii.zIndex},grouping:{type:Boolean,default:ii.grouping},repeatNum:{type:Number,default:ii.repeatNum}}),y5e={destroy:()=>!0},Go=YL([]),m5e=t=>{const e=Go.findIndex(a=>a.id===t),n=Go[e];let r;return e>0&&(r=Go[e-1]),{current:n,prev:r}},S5e=t=>{const{prev:e}=m5e(t);return e?e.vm.exposed.bottom.value:0},b5e=(t,e)=>Go.findIndex(r=>r.id===t)>0?20:e,w5e=["id"],_5e=["innerHTML"],x5e=ae({name:"ElMessage"}),C5e=ae({...x5e,props:g5e,emits:y5e,setup(t,{expose:e}){const n=t,{Close:r}=$O,{ns:a,zIndex:i}=eC("message"),{currentZIndex:o,nextZIndex:s}=i,l=G(),u=G(!1),c=G(0);let f;const d=A(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=A(()=>{const C=n.type;return{[a.bm("icon",C)]:C&&fc[C]}}),v=A(()=>n.icon||fc[n.type]||""),p=A(()=>S5e(n.id)),g=A(()=>b5e(n.id,n.offset)+p.value),y=A(()=>c.value+g.value),m=A(()=>({top:`${g.value}px`,zIndex:o.value}));function S(){n.duration!==0&&({stop:f}=Rd(()=>{x()},n.duration))}function b(){f==null||f()}function x(){u.value=!1}function _({code:C}){C===nt.esc&&x()}return St(()=>{S(),s(),u.value=!0}),Me(()=>n.repeatNum,()=>{b(),S()}),$n(document,"keydown",_),xa(l,()=>{c.value=l.value.getBoundingClientRect().height}),e({visible:u,bottom:y,close:x}),(C,T)=>(I(),ve(or,{name:w(a).b("fade"),onBeforeLeave:C.onClose,onAfterLeave:T[0]||(T[0]=D=>C.$emit("destroy")),persisted:""},{default:q(()=>[ct(P("div",{id:C.id,ref_key:"messageRef",ref:l,class:z([w(a).b(),{[w(a).m(C.type)]:C.type&&!C.icon},w(a).is("center",C.center),w(a).is("closable",C.showClose),C.customClass]),style:et(w(m)),role:"alert",onMouseenter:b,onMouseleave:S},[C.repeatNum>1?(I(),ve(w(TK),{key:0,value:C.repeatNum,type:w(d),class:z(w(a).e("badge"))},null,8,["value","type","class"])):de("v-if",!0),w(v)?(I(),ve(w(qe),{key:1,class:z([w(a).e("icon"),w(h)])},{default:q(()=>[(I(),ve(Dt(w(v))))]),_:1},8,["class"])):de("v-if",!0),Ce(C.$slots,"default",{},()=>[C.dangerouslyUseHTMLString?(I(),X(Qe,{key:1},[de(" Caution here, message could've been compromised, never use user's input as message "),P("p",{class:z(w(a).e("content")),innerHTML:C.message},null,10,_5e)],2112)):(I(),X("p",{key:0,class:z(w(a).e("content"))},Le(C.message),3))]),C.showClose?(I(),ve(w(qe),{key:2,class:z(w(a).e("closeBtn")),onClick:ot(x,["stop"])},{default:q(()=>[U(w(r))]),_:1},8,["class","onClick"])):de("v-if",!0)],46,w5e),[[Nt,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var T5e=Ae(C5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let E5e=1;const yX=t=>{const e=!t||vt(t)||Hn(t)||ft(t)?{message:t}:t,n={...ii,...e};if(!n.appendTo)n.appendTo=document.body;else if(vt(n.appendTo)){let r=document.querySelector(n.appendTo);io(r)||(r=document.body),n.appendTo=r}return n},M5e=t=>{const e=Go.indexOf(t);if(e===-1)return;Go.splice(e,1);const{handler:n}=t;n.close()},D5e=({appendTo:t,...e},n)=>{const r=`message_${E5e++}`,a=e.onClose,i=document.createElement("div"),o={...e,id:r,onClose:()=>{a==null||a(),M5e(c)},onDestroy:()=>{Ip(null,i)}},s=U(T5e,o,ft(o.message)||Hn(o.message)?{default:ft(o.message)?o.message:()=>o.message}:null);s.appContext=n||Jp._context,Ip(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},Jp=(t={},e)=>{if(!Ht)return{close:()=>{}};if(ut(ED.max)&&Go.length>=ED.max)return{close:()=>{}};const n=yX(t);if(n.grouping&&Go.length){const a=Go.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=D5e(n,e);return Go.push(r),r.handler};gX.forEach(t=>{Jp[t]=(e={},n)=>{const r=yX(e);return Jp({...r,type:t},n)}});function k5e(t){for(const e of Go)(!t||t===e.props.type)&&e.handler.close()}Jp.closeAll=k5e;Jp._context=null;const ks=C9(Jp,"$message"),R5e=ae({name:"ElMessageBox",directives:{TrapFocus:Z2e},components:{ElButton:ln,ElFocusTrap:nC,ElInput:wa,ElOverlay:pA,ElIcon:qe,...$O},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Kx},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}=eC("message-box",A(()=>t.buttonSize)),{t:o}=n,{nextZIndex:s}=r,l=G(!1),u=Zt({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=A(()=>{const B=u.type;return{[a.bm("icon",B)]:B&&fc[B]}}),f=lo(),d=lo(),h=A(()=>u.icon||fc[u.type]||""),v=A(()=>!!u.message),p=G(),g=G(),y=G(),m=G(),S=G(),b=A(()=>u.confirmButtonClass);Me(()=>u.inputValue,async B=>{await Ze(),t.boxType==="prompt"&&B!==null&&E()},{immediate:!0}),Me(()=>l.value,B=>{var $,V;B&&(t.boxType!=="prompt"&&(u.autofocus?y.value=(V=($=S.value)==null?void 0:$.$el)!=null?V:p.value:y.value=p.value),u.zIndex=s()),t.boxType==="prompt"&&(B?Ze().then(()=>{var F;m.value&&m.value.$el&&(u.autofocus?y.value=(F=k())!=null?F:p.value:y.value=p.value)}):(u.editorErrorMessage="",u.validateError=!1))});const x=A(()=>t.draggable);T9(p,g,x),St(async()=>{await Ze(),t.closeOnHashChange&&window.addEventListener("hashchange",_)}),Pn(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",_)});function _(){l.value&&(l.value=!1,Ze(()=>{u.action&&e("action",u.action)}))}const C=()=>{t.closeOnClickModal&&M(u.distinguishCancelAndClose?"close":"cancel")},T=XO(C),D=B=>{if(u.inputType!=="textarea")return B.preventDefault(),M("confirm")},M=B=>{var $;t.boxType==="prompt"&&B==="confirm"&&!E()||(u.action=B,u.beforeClose?($=u.beforeClose)==null||$.call(u,B,u,_):_())},E=()=>{if(t.boxType==="prompt"){const B=u.inputPattern;if(B&&!B.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;const $=u.inputValidator;if(typeof $=="function"){const V=$(u.inputValue);if(V===!1)return u.editorErrorMessage=u.inputErrorMessage||o("el.messagebox.error"),u.validateError=!0,!1;if(typeof V=="string")return u.editorErrorMessage=V,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},k=()=>{const B=m.value.$refs;return B.input||B.textarea},R=()=>{M("close")},O=()=>{t.closeOnPressEscape&&R()};return t.lockScroll&&D9(l),{...$r(u),ns:a,overlayEvent:T,visible:l,hasMessage:v,typeClass:c,contentId:f,inputId:d,btnSize:i,iconComponent:h,confirmButtonClasses:b,rootRef:p,focusStartRef:y,headerRef:g,inputRef:m,confirmRef:S,doClose:_,handleClose:R,onCloseRequested:O,handleWrapperClick:C,handleInputEnter:D,handleAction:M,t:o}}}),L5e=["aria-label","aria-describedby"],O5e=["aria-label"],A5e=["id"];function N5e(t,e,n,r,a,i){const o=Pe("el-icon"),s=Pe("close"),l=Pe("el-input"),u=Pe("el-button"),c=Pe("el-focus-trap"),f=Pe("el-overlay");return I(),ve(or,{name:"fade-in-linear",onAfterLeave:e[11]||(e[11]=d=>t.$emit("vanish")),persisted:""},{default:q(()=>[ct(U(f,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:q(()=>[P("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:z(`${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))},[U(c,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:q(()=>[P("div",{ref:"rootRef",class:z([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:et(t.customStyle),tabindex:"-1",onClick:e[7]||(e[7]=ot(()=>{},["stop"]))},[t.title!==null&&t.title!==void 0?(I(),X("div",{key:0,ref:"headerRef",class:z(t.ns.e("header"))},[P("div",{class:z(t.ns.e("title"))},[t.iconComponent&&t.center?(I(),ve(o,{key:0,class:z([t.ns.e("status"),t.typeClass])},{default:q(()=>[(I(),ve(Dt(t.iconComponent)))]),_:1},8,["class"])):de("v-if",!0),P("span",null,Le(t.title),1)],2),t.showClose?(I(),X("button",{key:0,type:"button",class:z(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]=Kt(ot(d=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[U(o,{class:z(t.ns.e("close"))},{default:q(()=>[U(s)]),_:1},8,["class"])],42,O5e)):de("v-if",!0)],2)):de("v-if",!0),P("div",{id:t.contentId,class:z(t.ns.e("content"))},[P("div",{class:z(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(I(),ve(o,{key:0,class:z([t.ns.e("status"),t.typeClass])},{default:q(()=>[(I(),ve(Dt(t.iconComponent)))]),_:1},8,["class"])):de("v-if",!0),t.hasMessage?(I(),X("div",{key:1,class:z(t.ns.e("message"))},[Ce(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(I(),ve(Dt(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(I(),ve(Dt(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:q(()=>[dt(Le(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):de("v-if",!0)],2),ct(P("div",{class:z(t.ns.e("input"))},[U(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:z({invalid:t.validateError}),onKeydown:Kt(t.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),P("div",{class:z(t.ns.e("errormsg")),style:et({visibility:t.editorErrorMessage?"visible":"hidden"})},Le(t.editorErrorMessage),7)],2),[[Nt,t.showInput]])],10,A5e),P("div",{class:z(t.ns.e("btns"))},[t.showCancelButton?(I(),ve(u,{key:0,loading:t.cancelButtonLoading,class:z([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:e[3]||(e[3]=d=>t.handleAction("cancel")),onKeydown:e[4]||(e[4]=Kt(ot(d=>t.handleAction("cancel"),["prevent"]),["enter"]))},{default:q(()=>[dt(Le(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):de("v-if",!0),ct(U(u,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,class:z([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]=Kt(ot(d=>t.handleAction("confirm"),["prevent"]),["enter"]))},{default:q(()=>[dt(Le(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Nt,t.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,L5e)]),_:3},8,["z-index","overlay-class","mask"]),[[Nt,t.visible]])]),_:3})}var V5e=Ae(R5e,[["render",N5e],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const Cy=new Map,B5e=t=>{let e=document.body;return t.appendTo&&(vt(t.appendTo)&&(e=document.querySelector(t.appendTo)),io(t.appendTo)&&(e=t.appendTo),io(e)||(e=document.body)),e},$5e=(t,e,n=null)=>{const r=U(V5e,t,ft(t.message)||Hn(t.message)?{default:ft(t.message)?t.message:()=>t.message}:null);return r.appContext=n,Ip(r,e),B5e(t).appendChild(e.firstElementChild),r.component},I5e=()=>document.createElement("div"),P5e=(t,e)=>{const n=I5e();t.onVanish=()=>{Ip(null,n),Cy.delete(a)},t.onAction=i=>{const o=Cy.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=$5e(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 Mv(t,e=null){if(!Ht)return Promise.reject();let n;return vt(t)||Hn(t)?t={message:t}:n=t.callback,new Promise((r,a)=>{const i=P5e(t,e??Mv._context);Cy.set(i,{options:t,callback:n,resolve:r,reject:a})})}const F5e=["alert","confirm","prompt"],z5e={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};F5e.forEach(t=>{Mv[t]=G5e(t)});function G5e(t){return(e,n,r,a)=>{let i="";return Lt(n)?(r=n,i=""):kr(n)?i="":i=n,Mv(Object.assign({title:i,message:e,type:"",...z5e[t]},r,{boxType:t}),a)}}Mv.close=()=>{Cy.forEach((t,e)=>{e.doClose()}),Cy.clear()};Mv._context=null;const Cu=Mv;Cu.install=t=>{Cu._context=t._context,t.config.globalProperties.$msgbox=Cu,t.config.globalProperties.$messageBox=Cu,t.config.globalProperties.$alert=Cu.alert,t.config.globalProperties.$confirm=Cu.confirm,t.config.globalProperties.$prompt=Cu.prompt};const U5e=Cu,mX=["success","info","warning","error"],H5e=Ne({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:Tn},id:{type:String,default:""},message:{type:ge([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:ge(Function),default:()=>{}},onClose:{type:ge(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:[...mX,""],default:""},zIndex:Number}),W5e={destroy:()=>!0},K5e=["id"],j5e=["textContent"],Y5e={key:0},X5e=["innerHTML"],q5e=ae({name:"ElNotification"}),Z5e=ae({...q5e,props:H5e,emits:W5e,setup(t,{expose:e}){const n=t,{ns:r,zIndex:a}=eC("notification"),{nextZIndex:i,currentZIndex:o}=a,{Close:s}=x9,l=G(!1);let u;const c=A(()=>{const S=n.type;return S&&fc[n.type]?r.m(S):""}),f=A(()=>n.type&&fc[n.type]||n.icon),d=A(()=>n.position.endsWith("right")?"right":"left"),h=A(()=>n.position.startsWith("top")?"top":"bottom"),v=A(()=>{var S;return{[h.value]:`${n.offset}px`,zIndex:(S=n.zIndex)!=null?S:o.value}});function p(){n.duration>0&&({stop:u}=Rd(()=>{l.value&&y()},n.duration))}function g(){u==null||u()}function y(){l.value=!1}function m({code:S}){S===nt.delete||S===nt.backspace?g():S===nt.esc?l.value&&y():p()}return St(()=>{p(),i(),l.value=!0}),$n(document,"keydown",m),e({visible:l,close:y}),(S,b)=>(I(),ve(or,{name:w(r).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:b[1]||(b[1]=x=>S.$emit("destroy")),persisted:""},{default:q(()=>[ct(P("div",{id:S.id,class:z([w(r).b(),S.customClass,w(d)]),style:et(w(v)),role:"alert",onMouseenter:g,onMouseleave:p,onClick:b[0]||(b[0]=(...x)=>S.onClick&&S.onClick(...x))},[w(f)?(I(),ve(w(qe),{key:0,class:z([w(r).e("icon"),w(c)])},{default:q(()=>[(I(),ve(Dt(w(f))))]),_:1},8,["class"])):de("v-if",!0),P("div",{class:z(w(r).e("group"))},[P("h2",{class:z(w(r).e("title")),textContent:Le(S.title)},null,10,j5e),ct(P("div",{class:z(w(r).e("content")),style:et(S.title?void 0:{margin:0})},[Ce(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(I(),X(Qe,{key:1},[de(" Caution here, message could've been compromised, never use user's input as message "),P("p",{innerHTML:S.message},null,8,X5e)],2112)):(I(),X("p",Y5e,Le(S.message),1))])],6),[[Nt,S.message]]),S.showClose?(I(),ve(w(qe),{key:0,class:z(w(r).e("closeBtn")),onClick:ot(y,["stop"])},{default:q(()=>[U(w(s))]),_:1},8,["class","onClick"])):de("v-if",!0)],2)],46,K5e),[[Nt,l.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Q5e=Ae(Z5e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const Xw={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},xk=16;let J5e=1;const ev=function(t={},e=null){if(!Ht)return{close:()=>{}};(typeof t=="string"||Hn(t))&&(t={message:t});const n=t.position||"top-right";let r=t.offset||0;Xw[n].forEach(({vm:c})=>{var f;r+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+xk}),r+=xk;const a=`notification_${J5e++}`,i=t.onClose,o={...t,offset:r,id:a,onClose:()=>{eze(a,n,i)}};let s=document.body;io(t.appendTo)?s=t.appendTo:vt(t.appendTo)&&(s=document.querySelector(t.appendTo)),io(s)||(s=document.body);const l=document.createElement("div"),u=U(Q5e,o,Hn(o.message)?{default:()=>o.message}:null);return u.appContext=e??ev._context,u.props.onDestroy=()=>{Ip(null,l)},Ip(u,l),Xw[n].push({vm:u}),s.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};mX.forEach(t=>{ev[t]=(e={})=>((typeof e=="string"||Hn(e))&&(e={message:e}),ev({...e,type:t}))});function eze(t,e,n){const r=Xw[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<l;u++){const{el:c,component:f}=r[u].vm,d=Number.parseInt(c.style[s],10)-o-xk;f.props.offset=d}}function tze(){for(const t of Object.values(Xw))t.forEach(({vm:e})=>{e.component.exposed.visible.value=!1})}ev.closeAll=tze;ev._context=null;const nze=C9(ev,"$notify");var rze=[c5e,v5e,ks,U5e,nze,oY],aze=txe([...r5e,...rze]);const Ki="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAALCAYAAACksgdhAAAAAXNSR0IArs4c6QAAANZJREFUKFONkKFOw3AQxn/HGqiYQNQsQSCWzC010/AAPMHUEgQVPETfAbMsSzaHYe8wP4UnAVlRUVFRknYfLQHC2n+Wnblc7n733XfGT8xW8rnE/61d+eOVfBtbaU0zetETRgR4xyCJAuPRomddc877seGDnkj+Q2VVMelVZK4FdsGNxFqQHSqJN0HuVDUCg6sOJDHHKJxKYohx14ZKQVQbTV2QRHgGcfe8E77RUdp/MlhM7VvpYaP72sOyvcf1iOTPkwgw+g4otdtY3mjMzkR4wnXNyPILgh9dNRVCDU4AAAAASUVORK5CYII=",SX="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAABUpJREFUWEfVmW/In1Mcxq+rvJiaWFGEmiJWFmpCWiaTLZYVC1EsW/Ziqy3EolgUMtmKWCgvKMtkilCTyUQhlDJRFPKUlRUv9kJd7mu+53F+9+/+c363nxfPefNsz33u+3zO98/1/Z7zEHNkcI5wYiqgkk4AcA6AUwHMj80fBvALgIMk//yvBhkMKumiCuJGACsCso3lLwBfAngHwG6SXw+BnhhU0s0A7s/gbLlPAsYWTNY7HsCZAM6tIC8GMC8A91U/HyT50STAxaCSzgbwYixqK70C4GUA+0j6/61DkiGvBrAuPOC5fn8LyZkS4CJQSXcA2BFWeQnANpLflyxQnyPpfABPAlgGwJC3kHyv71u9oJIesKsAHAJwG8m3+j5a8jzbvKcb9rWu9zpBM8iDAFaS/LEEonSOpEurGN4D4EQnZhdsK6ik2wE8X+3WLl5aGkulkGmeJMvahyFry9uSrBFUkjP1UwDO6EumbcmGuL3MSRkxu5ik1x0ZbaCGXFJJzmqSb0xqpSHzJd1ZWXW7vUhyfS+opGsB7LV8kLxpyKJD3pF0DIAvQp8X1VVlzKIVaJp8FsmfBy46j+SRtncDCnX9leQQ2G+9Jrk2f38EVJIryMdDrRkAduG94cK7G+LRwm9NPlJl+eKG599ERTspj9U6qIV4M4ArSTq4i4ekBOCy6TFilahsTwFYHs8Pk1zQAJpidR3JF9LzOuh3oWneTWdZzOTFpTUB+B1L2oYEGp2Vi8ZGAI5DNydWlfktoN6oOfaQXDMGKsmi+5s/RHJlnykD4KGASgCbooL9XrnPpdbx5kx2G2g93kjy3ciDhU2gXrfS8J/8s7Lo6U2gKT63kxyLrcyChnIxeDQAXLU2GyAWMZRB07AmPgxgZ/JSAejb0bwcl3rZWddLuiE6mg0kdzVZNLLy2ZCQMYAaqMPA3dZWku4TZkcB6DPhKcuUDfFvhy/p1vjwWpJeYGRkJdW/t1s3NVWQCAlbdExiMq9YArtcn5L6ApJuuicCtca5hzy56qLcnNzV1ERkoFaNVU16WmDRTtDVAF6PeNvZ4no3wE4gZ7D/7WRxfH6VWSuP0cYNFYA+F022i87RvjePUdd21/gdJLd0Zb2khdH8enNJktxMz2QWdVWzkoxtqAD0/Wisj00eyUH9wT8qQT5A8vI+eYrEuSLkx127k8sN9m4Av0a8b8s25FeciP6ds7orRi2Th0guGpOnWDjV+QVdtbqWwd6gE9GQjl+7yqI9m0yS6hs6+okWwU+eHUnGemV6JOr0xO2dJEPeE7Ji+HoJrW+orYQ6B3zKdcdv7/yzqZp1UvnaX+r+BhlzGBh4b75QlmyO2/uiKdna4J0fIq5Pyb3a1OalQF5C8vOSWJ3WnEzLxxK6CTT1hE6qpdOC6PtOnP1tTcvbGfUzWttR5FUA10cT8XTfItN4LimVTd+iWBlGRhvoaaGp3t2KKl4/mAZM2zey8vxZnHjHTgddx2VLintHNxTLqvPTt/8HrKSr4ozmO6sL2068fRcQ10V9t5hbLnqvXibZTCSPi4BHp+dKrnR8KnUz4uEe9LHSYtDhaofU41HP7THrduftXi+oF4s+1K2fa7zbLgf8xOf9OPz52tKNtPPAMbmm5IKjCDRgbQVXLp+HPAxsS/tytvNOStJ5cenri19v1sliWHun6GxWDJpVFlcenxQtX+ly1p2SwX2NmC5yvTFbzfNdjTwc6z78PTHpXdbEoBmwQRy/18T1jy1VH7aWm5QD1R2Wz1RvDo3vwaB1Ikn+I4Mbk/yPDTNDwerfnxroJLI0ZO6cAf0bYrtPSWjc7nQAAAAASUVORK5CYII=",bX="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAABQNJREFUWEfVWW/InlMcvq7ywQcfKCtCFMoHy0SxkK0sK8SyQshWk8nK1iYrE4vFYiGEUGQfCNkyRRKyZUUhZGVlivjgg6L4oC7nevvdj/t9nvu+z7nv50m9p97e5+0553eu8/tz/a5zXmKBDC4QnJgJUEnHAjgLwEkAjonD/wngRwCHSPrzVGMwUEnnA7gOwJUBsgvIlwDeTfNeJfnVEMS9gUq6GsDWtPGFseHvCezn8fMzgMp79uypAM4GcHHN0wcBPExybx/AxUAlnQ7gBQDLAPxj7wB4zZ4i6b9bh6SjY91tAK6JiXsAbCTp9MiOIqCSrgXwUnjFG9xF8nDWesMESUsAPARgZQLqaNxE8p2crSxQSfcAeDCMridpL049JN0C4Nlk+6iULltIPtFltBOopPvS4vsBHAGwYqgX2wBIOgeAI3QagA0kn26b2wo0isZGDHI5Sf+e+ZBkkJ8k755gBiH5XtMmjUAluVoPRdGcO2tPjgORdB6A/cEY3u+n8TltQN8Ofrx+VjmZC4WkOwA8FVx7QxZoLeR7Ejmvym0wy+8lOQXMuctIfly3PeFRSZ8GmS8Z2kWGgpd0aQL5EYB9JK9qBSrJXeTrpokdlXtRtEc3g3un7esJ7Ifh1TPrBTzPo5IeSAW0zd2jtMUFH7oZePxqOiP53BReNb/anrl1V2VnHKjD7s6xqNQzNaD7UuVelvq426VFiHnxQF/Ako4H8ItTIK1fMQFUkjvEXxYXicuWlm5QA7o2UsBRWRfrrQe2lvbzas/Usp1+J6dudVwTUOvJ79zWSN4+BCjJuRSIfv5MFOXfSSM8CmAHSX/OjiSAXrEGAHBKxamj0Ety2N53jpLckbUWE+oerYDWPGO9+nh0Heev1VJWK0iyaLGUXErSsvA/hS/J8uutMNYpEOqH6AIa3nXO3h1F6vTaTfLmLkfUNIZbt+nqfwFqHevQ2xHWrY7YzmmAWhCbw0wv26cNfdyj7MmNwQT2jJng25xtSY/FOvd9M8g8j54B4HureJK35ozV8rDivbXO0WCPG33diNy0wHblv9nD5usAVgdN/jYO1PnzR6q2w8no4h5GR0DjoA6z71NW7/68q7Taa4f/wbeJpE8XtRF+1b5OJDl3ktyoFZNloSnOwzTldjoh1wrsWZ8a6DxRNN6ZNocX1pF8MWc0qrryqP80lWyqKKVk/fgcSc5rp80aki+3edSncZ4eJHlJyUZB7k9Gbo8Ml6xtmpNk5hcRGUfV6TM3mmRelcgTmnDo5qXralp4ojs2AbUo+SyEhTtD5529FERuXtz953o8ANOSc3402q4iz4ewMK10knMOQOn3kh6xtHPLJblpfF0bUD96+XS+Ga5M+fpB6YZD5km6wmLd1AhgcROddV2XL4hrgUNvsL21ZQnodPW5PO72nj4R8tZiqhuvGTHY1W137hJALRXup6Ld8Z1vFY13+saqb+C16sTuXOa3Yl3ZdoAoHAts56Rf/7JOyL49ebN4IHgjnl6+CQXU69kw7Piw1gG+l1lbuLJXjVd40wGLgMYm1pUWtOtDDXkTt8q9uY3ijckPvmsCoJW+BfX2Uh1QDLQ6pST38ztjU4P3sC7wY657e/0h153OvOwLm4c7jSOzs+8zUW+gNcCmML8++53TasmgmoYpxxrAheKHhVFb7FOEg4E2FJ2fws271T8bHN4jpaHNgZ4Z0NxG036/YID+C13f/zrMiYL6AAAAAElFTkSuQmCC",wX="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAABF9JREFUWEfVmU+oVVUYxdeCBg0MahAINVBSaJDwAoUkI0WjJEEDI8VBDRKFBiolGSolJRUaORAieGFBUNF7lBRUEFSoaFhkECRoqCQkFNjAgYNgudfj24/juefcc+6793Z5e3Lf/XP2/u29vz/r+x4xSwZnCScGAippDoD7ANwFwH97XAfwB4DzJP/t90BmDCppMYCnAKwKyFu6wPwG4EsAn5P8cSbQPYNKejgt9AqA5YWTOw7AMD7Ba/H5rQDuiU0sK5z0GT9P8mgvwK1BJd0N4B0AawD8B+BrAO/6laTf1w5JhvbGtgB4DIDffw/gGZKX2gC3ApX0OIAPAdwegDtInm2zQPk3ku4F8DqAdWHHhv2kaa5GUEnb0rUdjFPcSvKDpknbfC/J9j0eJmFT2Nftua6gkp4DcBjAZQCrSdoOBzYkzQPwHQC/7iG5v27yWlBJj4anXgHwEMmLAyMsTFSCXU9ysmqdSlBJcwH8Eja5jOTPw4DMc0paEOv5o0VVh1IH+hGADQBsk/bsoQ9Jm8JhHUVWlxfsAJU0Frs7RXLp0AlvNoOvInwtJ/lDce0q0M8idIyR/PV/BrUJ/J6y3fEEuqIWNAz7QtpV69OMZ66QdG7vGJKcWueRPN9m05K+iKRiW52OMjedqKTnI2Y6CDfGy4A8B+C1ujhYCHH3k3T67DokrbUmiDn35h+XQbON3EnynxaTZns+RHJHzYm+nD63NlhB0mmzCdTp9WoyvzNFHymD+geXUyxb1DShvy843sBAY95jKVU/AOC2bFLToCE6/kxqZ4LkkyMGtfjZGjF1yk6LoN7ByaRs3iD50ohBXzSHQ1W6/m/KoJZhzruNAiFvYohXvx3A2w6TWbcWT3TWgLq0OO3wRHLniK9+t8MTgEdIflu+eotie73rmidGDHrE6h/AwpwoyuHpL6vuFOznjxjUys3p9I5c5pRBP01F2noA89voz2E4kyTf7N/lfF8GfTrl5fdTJfkCybeaTjVir0XEdpLv1WSmXHIsaVNnScoMu0i+WZdC824uklzYBDqM71Nl4Vhux/atugSaGlUyLxtybVkwDMBInSsB2Ms7HLoKNGtC10iWWpXybdCwIQcdHi10OrRwXSlywHbaS0ztF1xSjp3jJDeX56sDtdRyiHCzYDqN9QtT93xUvNagrnitWzuaat3KZXfnbNhW6IadEgeDHpIejO6L11lF8kTVGk0NCNf23qnHhl4bW02bipOciF7Umm6H0aalY1hP5r6nuyY7+3WwcJxXww/cYGu8sUbQCBuOBC66bLOOBk4IlR2NFqfomsi9LM/pgm8jyZ+anmsFGrB2MNc/1or+28Buck02ZZzohBjQqt2APkXfzl6SuZ/albU1aJ4l2j1W4M8WmrMuBF1hGr7YyDWUndItIg/H5I8B7G9bPud1ewYtANtmfUpujbujbKiqYfhT4dlHZ9rPnzFomSi6yu5KF//ZYM0wkMw2MNAmZ+j3+1kDegOA+wZJIwcZzQAAAABJRU5ErkJggg==",_X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAAAAAXNSR0IArs4c6QAABWBJREFUWEfVmW/onlMYx7/f8oIiFEW8sBCLxWoLaSFki7JiIYply154sWWL1cSiWCZbEeIFRSwTilCTyUQhZDJRCLUypXjhxerrfH9d53Ge+7n/PfczL3Zq/X7P7nM/53Ouc13f67rOjzhMBg8TThwSUEnHATgbwCkAjo7N/wngNwD7SP49q0EGg0q6IEHcCGBpQDaxHATwJYB3AOwguXcI9NSgkm4GsKmAs+U+CRhbMFvvWABnADg3QV4I4MgA3JV+3k/yo2mAe4NKOgvAc7GorfQygBcB7CLpz41DkiGvBrAqTsBz/f46kvv7APcClXQHgG1hlRcAbCb5Q58FqnMknQ/gMQCXAjDkLSTf6/quTlBJ9/mo4ktXkXyr60v7PC827+mGfbXtvVbQAnIfgGUkf+oD0XeOpIuTD+8EcIIDsw22EVTS7QCeTbv1ES/p60t9IfM8SZa1D0PWrmgKslpQSY7UTwE4oi861Jas8dtLHJThXgtIet2x0QRqyEVJcpaTfGNaKw2ZL+muZNWtPkWSqztBJV0L4HXLB8mbhiw65B1JRwD4IvR5flVVJiyaQPPkM0n+Wi5qPST5TxNI1/OuDUiyC+y2XpNcWc4fA5XkDPJxnTULObGeWkfHgCMovk4u82by7bVpoZ+7wOqeS/o2MtqJpa9WQS3EawFcSdLOPRqS8jP/n4V6PUlnprkhyQL+fnz0Jmo31AVf+OptJJ/P86ug34emeTdjabEAdWa6PrKUiw1/4VcFqI/utPg3saEeoK4PzLGT5IoJUEkW3d9d5ZBcViMh2aILw6L+7OrJw/DOWC+lD85iWwA4il28OM+PNtQFGqfzS3r3YLLovDrQ7J9bSW5oAyXphX3clrBnkko4f+fhymhzPD8p8nq5oQ1dySOVkG9H8XJMrmVHR5+c+IaoaNaQfLoPaOGfzmIPAjDYCLR4Xm7I/murb29SEElPplNbk+pXy5TT938VvqRbo4xbSdLl3NgofHRhtmg5ofDRCdAC2Gs8Hulyb8rtC+pcoW6t0qKzgubaoBZU0umReZbb//w7yY1DQP0Fr4UGbu9r0QqAXxsDjX7KgbU+AsuqcGeK6G+aAkuS/d5FtpPOXN1bWtR+5By/jeS6LtAAuDt015HtL7S0zIFGSnTbYt89NZ5vIrmjK/JThrIeW5ePyn5cgnqxvwDsIXlZC+hiAOck6zwcwWPAewD8EYLvQHGycIFhJXEP5d+3tKXfir9bJg+kTc2fkKeQk5znj69JkVlHs+VcihngUc8tgsn1gS3oYX3dWK0Z2iwakueTHcv31cz0UFhnoryrpFCrwr0lQCWFuit14+afUw1JD0SicMU/cpMqaE5fu6vHH5WN6wAf4QSAJGuog8Cpb5Sjp6GMbvXHCLqTy1OtK/OyIy8i+fk0C806t9DyiYCuA801oYNqyayL932/sKavh+ZV02xTK/JKVEjWuyf6LjbLvCJt1iaMJlBHrSPPu1ua/PWDWSC63i063s+i453oItra5cvjYuuAxTf1T991LTjkuaSrokez3i5u6ni7LiCui4rKmmm56Lx6mQY2guepeKf15Ppc6bgr9YWWh7NR7wzTBB3p95HI5z4x63br7V4naGQsK4FF3i2Gi2Y7/NT9fk3+t0+u6HPB0Qs0YB1YzlwuaD0MbEv7crb1TkrSedG2uNL3Zh0sLlZ8Oq1XlvlUeoPmF+La0GVbbvD8yPnd4G7m8kWuN2b1cJvifszDvu77LNcHve5FB4MWwAax/14T1z+2VHXYWi5i9qQ7rHfd8/etoKpfNLVFWwLEf2Rwvi//2LB/KNj/BjqNLA2Ze8gsOmTxad75F0QPWUncuoGpAAAAAElFTkSuQmCC",Ck="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAAXNSR0IArs4c6QAAAIpJREFUKFNjzFjz352RgUFiegjjQgYsIGPd/2iGfwxvGMGM/wxL/v9nKJgZwjgRWW36mv/5jIwMExgZGRIYQRIwAWTF6GJgheiKQXyQScga4QqRFYPY6E4hXSGym3BaTZRnMtf8j//PyLAAX/AwMDLEMGZs+O/O8I9BZEYQ41JsAZ657n/8fyaGFwCSUmao4tQfEwAAAABJRU5ErkJggg==";function qw(t){let e=new Date(t),n=e.getFullYear(),r=("0"+(e.getMonth()+1)).slice(-2),a=("0"+e.getDate()).slice(-2),i=("0"+e.getHours()).slice(-2),o=("0"+e.getMinutes()).slice(-2),s=("0"+e.getSeconds()).slice(-2),l=n+"/"+r+"/"+a+" "+i+":"+o+":"+s;return console.log(l),l}const Om=(t,e)=>{const n=t.__vccOpts||t;for(const[r,a]of e)n[r]=a;return n},Rn=t=>(hm("data-v-47c6de76"),t=t(),pm(),t),ize={class:"l_Dialog"},oze={class:"my-header"},sze=["id"],lze={class:"my_content"},uze={class:"dialog-footer class_footer l_btn"},cze={class:"footerbtn"},fze={class:"borderimg"},dze={class:"footerbtn"},hze={class:"borderimg"},pze={class:"my-header"},vze=["id"],gze={class:"my_content1 bgcolor"},yze={class:"demo-pagination-block pagination"},mze={class:"dialog-footer footer_div l_btn"},Sze={class:"footerbtn flex1"},bze={class:"borderimg"},wze={class:"footerbtn flex1"},_ze={class:"borderimg"},xze={class:"footerbtn flex1"},Cze={class:"borderimg"},Tze={class:"ddd"},Eze={class:"header_l"},Mze=Rn(()=>P("h4",{class:"tianjia"}," 事故添加",-1)),Dze={class:"ddd_div",style:{display:"flex"}},kze={class:"demo-input-suffix firsttitle magintop"},Rze={class:"l_btn class_btn",style:{width:"auto"}},Lze={class:"footerbtn"},Oze={class:"borderimg"},Aze={class:"my-header"},Nze=["id"],Vze=Rn(()=>P("h4",{class:"delecttitle"}," 是否确认删除",-1)),Bze={class:"dialog-footer footer_div l_btn"},$ze={class:"footerbtn flex1"},Ize={class:"borderimg"},Pze={class:"footerbtn flex1"},Fze={class:"borderimg"},zze={class:"common-layout",style:{margin:"0"}},Gze={class:"demo-collapse"},Uze={class:"asides_content"},Hze={class:"l_padding",style:{padding:"20px 20px 20px 24px"}},Wze={class:"line"},Kze=Rn(()=>P("span",{class:"inputtext_1"},"时间步长",-1)),jze={class:"inputkuang"},Yze=Rn(()=>P("span",{class:"righttext"},"s",-1)),Xze=Rn(()=>P("span",{class:"inputtext_1"},"空间步长",-1)),qze={class:"inputkuang"},Zze=Rn(()=>P("span",{class:"righttext"},"m",-1)),Qze=Rn(()=>P("span",{class:"inputtext_1"},"模拟时长",-1)),Jze={class:"inputkuang"},eGe=Rn(()=>P("span",{class:"righttext"},"s",-1)),tGe=Rn(()=>P("span",{class:"inputtext_1"},"输出步长",-1)),nGe={class:"inputkuang"},rGe=Rn(()=>P("span",{class:"righttext"},"s",-1)),aGe=Rn(()=>P("span",{class:"inputtext_1"},"交互步长",-1)),iGe={class:"inputkuang"},oGe=Rn(()=>P("span",{class:"righttext"},"s",-1)),sGe=Rn(()=>P("div",{class:"asdis_btn"},[P("div",{class:"btn"},[P("span",{class:"spantext"},"初始数据")]),P("div",{class:"btn"},[P("span",{class:"spantext"},"开始计算")])],-1)),lGe={class:"logs"},uGe={class:"logs_pading"},cGe=Rn(()=>P("h4",null,"模拟日志",-1)),fGe={class:"footerTextBox"},dGe={class:"asides_content"},hGe={class:"l_padding",style:{padding:"20px 20px 20px 24px"}},pGe=Rn(()=>P("span",{class:"inputtext_1"},"时间步长",-1)),vGe={class:"inputkuang"},gGe=Rn(()=>P("span",{class:"righttext"},"s",-1)),yGe=Rn(()=>P("span",{class:"inputtext_1"},"空间步长",-1)),mGe={class:"inputkuang"},SGe=Rn(()=>P("span",{class:"righttext"},"m",-1)),bGe=Rn(()=>P("span",{class:"inputtext_1"},"模拟时长",-1)),wGe={class:"inputkuang"},_Ge=Rn(()=>P("span",{class:"righttext"},"s",-1)),xGe=Rn(()=>P("span",{class:"inputtext_1"},"输出步长",-1)),CGe={class:"inputkuang"},TGe=Rn(()=>P("span",{class:"righttext"},"s",-1)),EGe=Rn(()=>P("span",{class:"inputtext_1"},"交互步长",-1)),MGe={class:"inputkuang"},DGe=Rn(()=>P("span",{class:"righttext"},"s",-1)),kGe=Rn(()=>P("div",{class:"asdis_btn"},[P("div",{class:"btn"},[P("span",{class:"spantext"},"初始数据")]),P("div",{class:"btn"},[P("span",{class:"spantext"},"开始计算")])],-1)),RGe={class:"logs"},LGe={class:"logs_pading"},OGe=Rn(()=>P("h4",null,"模拟日志",-1)),AGe={class:"footerTextBox"},NGe={class:"result"},VGe={class:"newtime"},BGe={class:"newtime"},$Ge={class:"animation_s"},IGe={class:"tanniu"},PGe=Rn(()=>P("p",null,"后退",-1)),FGe=Rn(()=>P("p",null,"播放",-1)),zGe=Rn(()=>P("p",null,"暂停",-1)),GGe=Rn(()=>P("p",null,"快进",-1)),UGe={class:"jiancedian asideg1"},HGe={class:"jc_header he_pading color1"},WGe={class:"jc_content tablecolor"},KGe={class:"jc_padding"},jGe={class:"xian"},YGe=Rn(()=>P("div",{class:"jc_header color1"},[P("span",{class:"jc_tile"},"锋面定义")],-1)),XGe=Rn(()=>P("div",{style:{height:"200px"}},null,-1)),qGe={__name:"Dialoges",props:{addselect:{type:Function,required:!0},headerobj:{type:Object}},emits:["headerclick","childfun"],setup(t,{expose:e,emit:n}){const r=t;let a=G({source:"自荐",type:"预演",sid:"-1"}),i=G({}),o=G({source:"",name:""}),s=G({sgaid:"",name:"",time:""}),l=G(!0),u=G("");G(""),G("");const c=G(1),f=G(3);let d=G(1);const h=G(!0),v=G();let p=G("Fire");const g=G({collfire:!1,collwater:!1}),y=G(!1),m=G({dialogVisible_fire:!1,jianced:!0,monitor:!1,dialogForm:!1,dialogsgdelect:!1});let S=G(["1","2"]),b=G({top:"50px",logs:"",left:"90px"});G("130px");const x=G({user:"11",region:"shanghai",date:""}),_=G([]);let C=G(1),T=G("http://localhost:8080/?aid=0");const D=G("first");let M=G(""),E=G(1),k=G(60);G(2),G(!1),G(20),G("#409eff");const R=({row:Z,rowIndex:ee})=>ee%2!=0?"evenRow":"oddRow",O=G([]),B=[{date:"站点1",name:"2",address:"10"},{date:"站点1",name:"2",address:"10"},{date:"站点1",name:"2",address:"10"},{date:"站点1",name:"2",address:"10"}],$=({row:Z,rowIndex:ee})=>{console.log(Z)};function V(){let Z=T.value.split("?aid=");u.value=parseInt(Z[1])}const F=()=>{h.value=!1,m.value.dialogVisible_fire=!0,v.value=p.value,r.addselect(),J()},L=()=>{s.value.name==""?ks.error("请选择项目"):(n("headerclick",i.value),m.value.dialogVisible_fire=!1,n("childfun"))},N=()=>{v.value=="Fire"?g.value.collfire=!0:v.value=="Water"&&(g.value.collwater=!0)},H=()=>{const Z={transCode:"D00002",source:a.value.source,type:a.value.type,name:o.value.name,stype:v.value,sid:a.value.sid,aid:u.value};Lo(Z).then(ee=>{m.value.dialogForm=!1,J()}).catch(ee=>{ks.error(ee.returnMsg)})},K=Z=>{i.value=Z,u.value=Z.aid,s.value.name=Z.name,s.value.time=Z.time};function Q(Z){}function ie(Z){c.value=Z,J()}const be=Z=>{console.log(Z),Z=="1"?(u.value=0,o.value.name=""):Z=="2"&&(o.value.name=s.value.name),m.value.dialogForm=!0},le=()=>{const Z={transCode:"D000016",aid:u.value};Lo(Z).then(ee=>{J(),ks({message:"删除成功",type:"success"})}).catch(ee=>{l.value=!1,ks.error(ee.returnMsg)})},J=()=>{const Z={transCode:"D00003",count:f.value,page:c.value,aid:u.value,stype:v.value};Lo(Z).then(ee=>{l.value=!1,O.value=ee.rows,d.value=ee.total}).catch(ee=>{l.value=!1})};return St(()=>{V();const Z=new Date().getTime();qw(Z),M.value=qw(Z)}),e({monitor:y,accident2:N,leftcoll:g,classradio:v,aid:u}),(Z,ee)=>{const ce=Pe("el-image"),ue=Pe("el-radio"),Y=Pe("el-radio-group"),te=Pe("el-table-column"),oe=Pe("el-table"),Se=Pe("el-pagination"),fe=Pe("el-input"),ne=Pe("el-form-item"),Ee=Pe("el-icon"),_e=Pe("info-filled"),me=Pe("el-option"),Te=Pe("el-form"),Ve=Pe("el-collapse-item"),ze=Pe("el-collapse"),We=Pe("el-tab-pane"),De=Pe("el-slider"),Fe=Pe("el-tabs"),at=Pe("el-aside"),yt=Vp("loading");return I(),X("div",ize,[U(w(Ds),{modelValue:h.value,"onUpdate:modelValue":ee[3]||(ee[3]=Be=>h.value=Be),width:"482","align-center":"",modal:!1,"close-on-click-modal":!1,draggable:"",class:"dialog_class bgcolor"},{header:q(({titleId:Be,titleClass:Je})=>[P("div",oze,[U(ce,{src:w(Ki),fit:"contain"},null,8,["src"]),P("h4",{id:Be,class:z(Je)},"灾害类型",10,sze)])]),footer:q(()=>[P("div",uze,[P("div",cze,[P("div",fze,[U(w(ln),{onClick:ee[1]||(ee[1]=Be=>h.value=!1)},{default:q(()=>[dt("取消")]),_:1})])]),P("div",dze,[P("div",hze,[U(w(ln),{onClick:ee[2]||(ee[2]=Be=>F())},{default:q(()=>[dt(" 确定 ")]),_:1})])])])]),default:q(()=>[P("div",lze,[U(Y,{modelValue:w(p),"onUpdate:modelValue":ee[0]||(ee[0]=Be=>en(p)?p.value=Be:p=Be),class:"radio-group"},{default:q(()=>[U(ue,{label:"Fire"},{default:q(()=>[dt("火灾")]),_:1}),U(ue,{label:"Water"},{default:q(()=>[dt("突水")]),_:1}),U(ue,{label:"9"},{default:q(()=>[dt("瓦斯爆炸")]),_:1})]),_:1},8,["modelValue"])])]),_:1},8,["modelValue"]),U(w(Ds),{modelValue:m.value.dialogVisible_fire,"onUpdate:modelValue":ee[16]||(ee[16]=Be=>m.value.dialogVisible_fire=Be),width:"600",modal:!1,"close-on-click-modal":!1,draggable:"",class:"dialog_class bgcolor"},{header:q(({titleId:Be,titleClass:Je})=>[P("div",pze,[U(ce,{src:w(Ki),fit:"contain"},null,8,["src"]),P("h4",{id:Be,class:z(Je)}," 事故列表",10,vze)])]),default:q(()=>[P("div",gze,[ct((I(),ve(oe,{data:O.value,style:{width:"100%"},onSizeChange:Z.handleSizeChange,"row-class-name":R,"header-cell-style":{background:" #375A88"},onSelect:Z.projectsSelectionSelect},{default:q(()=>[U(te,null,{default:q(Be=>[U(ue,{modelValue:w(C),"onUpdate:modelValue":ee[4]||(ee[4]=Je=>en(C)?C.value=Je:C=Je),label:Be.row.aid,onChange:Je=>K(Be.row)},null,8,["modelValue","label","onChange"])]),_:1}),U(te,{type:"index",label:"序号",width:"50"}),U(te,{prop:"name",label:"名称"}),U(te,{prop:"name",label:"来源",width:"120"}),U(te,{prop:"time",label:"时间",width:"180"})]),_:1},8,["data","onSizeChange","onSelect"])),[[yt,w(l)]]),P("div",yze,[U(Se,{"current-page":c.value,"onUpdate:currentPage":ee[5]||(ee[5]=Be=>c.value=Be),"page-size":f.value,"onUpdate:pageSize":ee[6]||(ee[6]=Be=>f.value=Be),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(w(d)),class:"mt-4",onSizeChange:Q,onCurrentChange:ie},null,8,["current-page","page-size","total"])]),P("div",mze,[P("div",Sze,[P("div",bze,[U(w(ln),{onClick:ee[7]||(ee[7]=Be=>{be("1")})},{default:q(()=>[dt("添加")]),_:1})])]),P("div",wze,[P("div",_ze,[U(w(ln),{onClick:ee[8]||(ee[8]=Be=>m.value.dialogsgdelect=!0)},{default:q(()=>[dt(" 删除 ")]),_:1})])]),P("div",xze,[P("div",Cze,[U(w(ln),{onClick:ee[9]||(ee[9]=Be=>L())},{default:q(()=>[dt(" 确定 ")]),_:1})])])])]),ct(P("div",Tze,[P("div",Eze,[U(ce,{src:w(Ki),fit:"contain"},null,8,["src"]),Mze,P("div",{class:"closeimg",onClick:ee[10]||(ee[10]=Be=>m.value.dialogForm=!1)},[U(ce,{src:w(Ck),fit:"contain",style:{"margin-top":"-10px"}},null,8,["src"])]),P("div",Dze,[P("div",kze,[U(ne,{label:"事故名称"},{default:q(()=>[U(fe,{modelValue:w(o).name,"onUpdate:modelValue":ee[11]||(ee[11]=Be=>w(o).name=Be),class:"w-50 m-2",placeholder:"某次某事件火灾事故"},null,8,["modelValue"])]),_:1}),P("div",Rze,[P("div",Lze,[P("div",Oze,[U(w(ln),{onClick:ee[12]||(ee[12]=Be=>H())},{default:q(()=>[dt(" 确定 ")]),_:1})])])])])])])],512),[[Nt,m.value.dialogForm]]),U(w(Ds),{modelValue:m.value.dialogsgdelect,"onUpdate:modelValue":ee[15]||(ee[15]=Be=>m.value.dialogsgdelect=Be),width:"400",class:"dialog_class bgcolor tianjia"},{header:q(({titleId:Be,titleClass:Je})=>[P("div",Aze,[U(ce,{src:w(Ki),fit:"contain"},null,8,["src"]),P("h4",{id:Be,class:z(Je)},"删除",10,Nze)])]),default:q(()=>[Vze,P("div",Bze,[P("div",$ze,[P("div",Ize,[U(w(ln),{onClick:ee[13]||(ee[13]=Be=>m.value.dialogsgdelect=!1)},{default:q(()=>[dt("取消")]),_:1})])]),P("div",Pze,[P("div",Fze,[U(w(ln),{onClick:ee[14]||(ee[14]=Be=>{le(),m.value.dialogsgdelect=!1})},{default:q(()=>[dt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),P("div",zze,[U(at,{width:"278px",class:"L_aside asideg asidegbg leftbgimg"},{default:q(()=>[P("div",Gze,[ct(U(ze,{modelValue:w(S),"onUpdate:modelValue":ee[24]||(ee[24]=Be=>en(S)?S.value=Be:S=Be),accordion:""},{default:q(()=>[U(Ve,{name:"1"},{title:q(()=>[U(Ee,{class:"iconimg Frame2",fit:"contain"}),dt(" 火灾"),U(Ee,{class:"header-icon"},{default:q(()=>[U(_e)]),_:1})]),default:q(()=>[P("div",Uze,[U(Te,{inline:!0,model:x.value,class:"demo-form-inline"},{default:q(()=>[P("div",Hze,[P("div",Wze,[U(ne,{label:"污染物选择:"},{default:q(()=>[U(w(Xs),{modelValue:x.value.region,"onUpdate:modelValue":ee[17]||(ee[17]=Be=>x.value.region=Be),placeholder:"请选择"},{default:q(()=>[(I(!0),X(Qe,null,Vt(_.value,Be=>(I(),ve(me,{key:Be.id,label:Be.name,value:Be.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),P("ul",null,[P("li",null,[Kze,P("div",jze,[U(fe,{modelValue:x.value.user,"onUpdate:modelValue":ee[18]||(ee[18]=Be=>x.value.user=Be)},null,8,["modelValue"]),Yze])]),P("li",null,[Xze,P("div",qze,[U(fe,{modelValue:x.value.user,"onUpdate:modelValue":ee[19]||(ee[19]=Be=>x.value.user=Be)},null,8,["modelValue"]),Zze])]),P("li",null,[Qze,P("div",Jze,[U(fe,{modelValue:x.value.user,"onUpdate:modelValue":ee[20]||(ee[20]=Be=>x.value.user=Be)},null,8,["modelValue"]),eGe])]),P("li",null,[tGe,P("div",nGe,[U(fe,{modelValue:x.value.user,"onUpdate:modelValue":ee[21]||(ee[21]=Be=>x.value.user=Be)},null,8,["modelValue"]),rGe])]),P("li",null,[aGe,P("div",iGe,[U(fe,{modelValue:x.value.user,"onUpdate:modelValue":ee[22]||(ee[22]=Be=>x.value.user=Be)},null,8,["modelValue"]),oGe])])])]),sGe,P("div",lGe,[P("div",uGe,[cGe,P("div",fGe,[U(fe,{class:"footerText",type:"textarea",id:"textarea_id",modelValue:w(b).logs,"onUpdate:modelValue":ee[23]||(ee[23]=Be=>w(b).logs=Be)},null,8,["modelValue"])])])])]),_:1},8,["model"])])]),_:1})]),_:1},8,["modelValue"]),[[Nt,g.value.collfire]]),ct(U(ze,{modelValue:w(S),"onUpdate:modelValue":ee[31]||(ee[31]=Be=>en(S)?S.value=Be:S=Be),accordion:""},{default:q(()=>[U(Ve,{name:"2"},{title:q(()=>[U(Ee,{class:"iconimg Frame3",fit:"contain"}),dt(" 突水"),U(Ee,{class:"header-icon"},{default:q(()=>[U(_e)]),_:1})]),default:q(()=>[P("div",dGe,[U(Te,{inline:!0,model:x.value,class:"demo-form-inline"},{default:q(()=>[P("div",hGe,[P("ul",null,[P("li",null,[pGe,P("div",vGe,[U(fe,{modelValue:x.value.user,"onUpdate:modelValue":ee[25]||(ee[25]=Be=>x.value.user=Be)},null,8,["modelValue"]),gGe])]),P("li",null,[yGe,P("div",mGe,[U(fe,{modelValue:x.value.user,"onUpdate:modelValue":ee[26]||(ee[26]=Be=>x.value.user=Be)},null,8,["modelValue"]),SGe])]),P("li",null,[bGe,P("div",wGe,[U(fe,{modelValue:x.value.user,"onUpdate:modelValue":ee[27]||(ee[27]=Be=>x.value.user=Be)},null,8,["modelValue"]),_Ge])]),P("li",null,[xGe,P("div",CGe,[U(fe,{modelValue:x.value.user,"onUpdate:modelValue":ee[28]||(ee[28]=Be=>x.value.user=Be)},null,8,["modelValue"]),TGe])]),P("li",null,[EGe,P("div",MGe,[U(fe,{modelValue:x.value.user,"onUpdate:modelValue":ee[29]||(ee[29]=Be=>x.value.user=Be)},null,8,["modelValue"]),DGe])])])]),kGe,P("div",RGe,[P("div",LGe,[OGe,P("div",AGe,[U(fe,{class:"footerText",type:"textarea",id:"textarea_id",modelValue:w(b).logs,"onUpdate:modelValue":ee[30]||(ee[30]=Be=>w(b).logs=Be)},null,8,["modelValue"])])])])]),_:1},8,["model"])])]),_:1})]),_:1},8,["modelValue"]),[[Nt,g.value.collwater]])]),ct(P("div",NGe,[U(Fe,{modelValue:D.value,"onUpdate:modelValue":ee[32]||(ee[32]=Be=>D.value=Be),type:"card",class:"demo-tabs",onTabClick:Z.handleClick},{default:q(()=>[U(We,{label:"当前时间",name:"first"},{default:q(()=>[P("div",VGe,Le(w(M)),1)]),_:1}),U(We,{label:"指定时间",name:"second"},{default:q(()=>[P("div",BGe,Le(w(M)),1)]),_:1}),U(We,{label:"动画演示",name:"third"},{default:q(()=>[P("div",$Ge,[U(De,{max:w(k),min:w(E)},null,8,["max","min"]),P("div",IGe,[P("ul",null,[P("li",null,[U(ce,{src:w(SX),fit:"contain"},null,8,["src"]),PGe]),P("li",null,[U(ce,{src:w(bX),fit:"contain"},null,8,["src"]),FGe]),P("li",null,[U(ce,{src:w(wX),fit:"contain"},null,8,["src"]),zGe]),P("li",null,[U(ce,{src:w(_X),fit:"contain"},null,8,["src"]),GGe])])])])]),_:1})]),_:1},8,["modelValue","onTabClick"])],512),[[Nt,y.value]])]),_:1})]),ct(P("div",UGe,[P("div",HGe,[U(ne,{label:"污染物选择:"},{default:q(()=>[U(w(Xs),{modelValue:x.value.region,"onUpdate:modelValue":ee[33]||(ee[33]=Be=>x.value.region=Be),placeholder:"请选择"},{default:q(()=>[(I(!0),X(Qe,null,Vt(_.value,Be=>(I(),ve(me,{key:Be.id,label:Be.name,value:Be.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),P("div",WGe,[P("div",KGe,[P("div",jGe,[U(oe,{data:B,style:{width:"100%"},onCurrentChange:$,"row-class-name":R,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:q(()=>[U(te,{prop:"date",label:"监测点名称",width:"120"}),U(te,{prop:"name",label:"水位(m)"}),U(te,{prop:"name",label:"流量(m³/s)"})]),_:1},8,["header-cell-style"])])]),YGe,XGe])],512),[[Nt,y.value]])])}}},ZGe=Om(qGe,[["__scopeId","data-v-47c6de76"]]),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";var JGe=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 eUe=Ai(JGe);var YP=Object.prototype.toString,xX=function(e){var n=YP.call(e),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&YP.call(e.callee)==="[object Function]"),r},YT,XP;function tUe(){if(XP)return YT;XP=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=xX,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 v=h!==null&&typeof h=="object",p=n.call(h)==="[object Function]",g=r(h),y=v&&n.call(h)==="[object String]",m=[];if(!v&&!p&&!g)throw new TypeError("Object.keys called on a non-object");var S=o&&p;if(y&&h.length>0&&!e.call(h,0))for(var b=0;b<h.length;++b)m.push(String(b));if(g&&h.length>0)for(var x=0;x<h.length;++x)m.push(String(x));else for(var _ in h)!(S&&_==="prototype")&&e.call(h,_)&&m.push(String(_));if(i)for(var C=f(h),T=0;T<s.length;++T)!(C&&s[T]==="constructor")&&e.call(h,s[T])&&m.push(s[T]);return m}}return YT=t,YT}var nUe=Array.prototype.slice,rUe=xX,qP=Object.keys,Xb=qP?function(e){return qP(e)}:tUe(),ZP=Object.keys;Xb.shim=function(){if(Object.keys){var e=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);e||(Object.keys=function(r){return rUe(r)?ZP(nUe.call(r)):ZP(r)})}else Object.keys=Xb;return Object.keys||Xb};var aUe=Xb,iUe=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;e[n]=a;for(n in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,n);if(o.value!==a||o.enumerable!==!0)return!1}return!0},QP=typeof Symbol<"u"&&Symbol,oUe=iUe,sUe=function(){return typeof QP!="function"||typeof Symbol!="function"||typeof QP("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:oUe()},JP={foo:{}},lUe=Object,uUe=function(){return{__proto__:JP}.foo===JP.foo&&!({__proto__:null}instanceof lUe)},cUe="Function.prototype.bind called on incompatible ",XT=Array.prototype.slice,fUe=Object.prototype.toString,dUe="[object Function]",hUe=function(e){var n=this;if(typeof n!="function"||fUe.call(n)!==dUe)throw new TypeError(cUe+n);for(var r=XT.call(arguments,1),a,i=function(){if(this instanceof a){var c=n.apply(this,r.concat(XT.call(arguments)));return Object(c)===c?c:this}else return n.apply(e,r.concat(XT.call(arguments)))},o=Math.max(0,n.length-r.length),s=[],l=0;l<o;l++)s.push("$"+l);if(a=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var u=function(){};u.prototype=n.prototype,a.prototype=new u,u.prototype=null}return a},pUe=hUe,CX=Function.prototype.bind||pUe,vUe=CX,gUe=vUe.call(Function.call,Object.prototype.hasOwnProperty),vn,tv=SyntaxError,TX=Function,xp=TypeError,qT=function(t){try{return TX('"use strict"; return ('+t+").constructor;")()}catch{}},gd=Object.getOwnPropertyDescriptor;if(gd)try{gd({},"")}catch{gd=null}var ZT=function(){throw new xp},yUe=gd?function(){try{return arguments.callee,ZT}catch{try{return gd(arguments,"callee").get}catch{return ZT}}}():ZT,fh=sUe(),mUe=uUe(),Ur=Object.getPrototypeOf||(mUe?function(t){return t.__proto__}:null),Uh={},SUe=typeof Uint8Array>"u"||!Ur?vn:Ur(Uint8Array),yd={"%AggregateError%":typeof AggregateError>"u"?vn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?vn:ArrayBuffer,"%ArrayIteratorPrototype%":fh&&Ur?Ur([][Symbol.iterator]()):vn,"%AsyncFromSyncIteratorPrototype%":vn,"%AsyncFunction%":Uh,"%AsyncGenerator%":Uh,"%AsyncGeneratorFunction%":Uh,"%AsyncIteratorPrototype%":Uh,"%Atomics%":typeof Atomics>"u"?vn:Atomics,"%BigInt%":typeof BigInt>"u"?vn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?vn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?vn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?vn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?vn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?vn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?vn:FinalizationRegistry,"%Function%":TX,"%GeneratorFunction%":Uh,"%Int8Array%":typeof Int8Array>"u"?vn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?vn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?vn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fh&&Ur?Ur(Ur([][Symbol.iterator]())):vn,"%JSON%":typeof JSON=="object"?JSON:vn,"%Map%":typeof Map>"u"?vn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!fh||!Ur?vn:Ur(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?vn:Promise,"%Proxy%":typeof Proxy>"u"?vn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?vn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?vn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!fh||!Ur?vn:Ur(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?vn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fh&&Ur?Ur(""[Symbol.iterator]()):vn,"%Symbol%":fh?Symbol:vn,"%SyntaxError%":tv,"%ThrowTypeError%":yUe,"%TypedArray%":SUe,"%TypeError%":xp,"%Uint8Array%":typeof Uint8Array>"u"?vn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?vn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?vn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?vn:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?vn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?vn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?vn:WeakSet};if(Ur)try{null.error}catch(t){var bUe=Ur(Ur(t));yd["%Error.prototype%"]=bUe}var wUe=function t(e){var n;if(e==="%AsyncFunction%")n=qT("async function () {}");else if(e==="%GeneratorFunction%")n=qT("function* () {}");else if(e==="%AsyncGeneratorFunction%")n=qT("async function* () {}");else if(e==="%AsyncGenerator%"){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=t("%AsyncGenerator%");a&&Ur&&(n=Ur(a.prototype))}return yd[e]=n,n},eF={"%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"]},Am=CX,Zw=gUe,_Ue=Am.call(Function.call,Array.prototype.concat),xUe=Am.call(Function.apply,Array.prototype.splice),tF=Am.call(Function.call,String.prototype.replace),Qw=Am.call(Function.call,String.prototype.slice),CUe=Am.call(Function.call,RegExp.prototype.exec),TUe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,EUe=/\\(\\)?/g,MUe=function(e){var n=Qw(e,0,1),r=Qw(e,-1);if(n==="%"&&r!=="%")throw new tv("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new tv("invalid intrinsic syntax, expected opening `%`");var a=[];return tF(e,TUe,function(i,o,s,l){a[a.length]=s?tF(l,EUe,"$1"):o||i}),a},DUe=function(e,n){var r=e,a;if(Zw(eF,r)&&(a=eF[r],r="%"+a[0]+"%"),Zw(yd,r)){var i=yd[r];if(i===Uh&&(i=wUe(r)),typeof i>"u"&&!n)throw new xp("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:i}}throw new tv("intrinsic "+e+" does not exist!")},GA=function(e,n){if(typeof e!="string"||e.length===0)throw new xp("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new xp('"allowMissing" argument must be a boolean');if(CUe(/^%?[^%]*%?$/,e)===null)throw new tv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=MUe(e),a=r.length>0?r[0]:"",i=DUe("%"+a+"%",n),o=i.name,s=i.value,l=!1,u=i.alias;u&&(a=u[0],xUe(r,_Ue([0,1],u)));for(var c=1,f=!0;c<r.length;c+=1){var d=r[c],h=Qw(d,0,1),v=Qw(d,-1);if((h==='"'||h==="'"||h==="`"||v==='"'||v==="'"||v==="`")&&h!==v)throw new tv("property names with quotes must have matching quotes");if((d==="constructor"||!f)&&(l=!0),a+="."+d,o="%"+a+"%",Zw(yd,o))s=yd[o];else if(s!=null){if(!(d in s)){if(!n)throw new xp("base intrinsic for "+e+" exists, but the property is not available.");return}if(gd&&c+1>=r.length){var p=gd(s,d);f=!!p,f&&"get"in p&&!("originalValue"in p.get)?s=p.get:s=s[d]}else f=Zw(s,d),s=s[d];f&&!l&&(yd[o]=s)}}return s},kUe=GA,Tk=kUe("%Object.defineProperty%",!0),Ek=function(){if(Tk)try{return Tk({},"a",{value:1}),!0}catch{return!1}return!1};Ek.hasArrayLengthDefineBug=function(){if(!Ek())return null;try{return Tk([],"length",{value:1}).length!==1}catch{return!0}};var EX=Ek,QT,nF;function RUe(){if(nF)return QT;nF=1;var t=GA,e=t("%Object.getOwnPropertyDescriptor%",!0);if(e)try{e([],"length")}catch{e=null}return QT=e,QT}var LUe=EX(),UA=GA,rF=LUe&&UA("%Object.defineProperty%",!0),OUe=UA("%SyntaxError%"),dh=UA("%TypeError%"),aF=RUe(),AUe=function(e,n,r){if(!e||typeof e!="object"&&typeof e!="function")throw new dh("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new dh("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new dh("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new dh("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new dh("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new dh("`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=!!aF&&aF(e,n);if(rF)rF(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 OUe("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},NUe=aUe,VUe=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",BUe=Object.prototype.toString,$Ue=Array.prototype.concat,iF=AUe,IUe=function(t){return typeof t=="function"&&BUe.call(t)==="[object Function]"},MX=EX(),PUe=function(t,e,n,r){if(e in t){if(r===!0){if(t[e]===n)return}else if(!IUe(r)||!r())return}MX?iF(t,e,n,!0):iF(t,e,n)},DX=function(t,e){var n=arguments.length>2?arguments[2]:{},r=NUe(e);VUe&&(r=$Ue.call(r,Object.getOwnPropertySymbols(e)));for(var a=0;a<r.length;a+=1)PUe(t,r[a],e[r[a]],n[r[a]])};DX.supportsDescriptors=!!MX;var kX=DX,qb={exports:{}};typeof self<"u"?qb.exports=self:typeof window<"u"?qb.exports=window:qb.exports=Function("return this")();var RX=qb.exports,FUe=RX,LX=function(){return typeof gr!="object"||!gr||gr.Math!==Math||gr.Array!==Array?FUe:gr},zUe=kX,GUe=LX,UUe=function(){var e=GUe();if(zUe.supportsDescriptors){var n=Object.getOwnPropertyDescriptor(e,"globalThis");(!n||n.configurable&&(n.enumerable||!n.writable||globalThis!==e))&&Object.defineProperty(e,"globalThis",{configurable:!0,enumerable:!1,value:e,writable:!0})}else(typeof globalThis!="object"||globalThis!==e)&&(e.globalThis=e);return e},HUe=kX,WUe=RX,OX=LX,KUe=UUe,jUe=OX(),AX=function(){return jUe};HUe(AX,{getPolyfill:OX,implementation:WUe,shim:KUe});var YUe=AX;const XUe=Ai(YUe),No=XUe(),NX={vtkObject:()=>null};function Uo(t){if(t==null||t.isA)return t;if(!t.vtkClass)return No.console&&No.console.error&&No.console.error("Invalid VTK object"),null;const e=NX[t.vtkClass];if(!e)return No.console&&No.console.error&&No.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]=Uo(n[a]))});const r=e(n);return r&&r.modified&&r.modified(),r}function qUe(t,e){NX[t]=e}Uo.register=qUe;class JT extends Array{push(){for(let e=0;e<arguments.length;e++)this.includes(arguments[e])||super.push(arguments[e]);return this.length}}let Mk=0;const VX=Symbol("void");function ZUe(){return Mk}const BX={};function Gf(){}const QUe=["log","debug","info","warn","error","time","timeEnd","group","groupEnd"];QUe.forEach(t=>{BX[t]=Gf});No.console=console.hasOwnProperty("log")?console:BX;const vc={debug:Gf,error:No.console.error||Gf,info:No.console.info||Gf,log:No.console.log||Gf,warn:No.console.warn||Gf};function $X(t,e){vc[t]&&(vc[t]=e||Gf)}function IX(){vc.log(...arguments)}function PX(){vc.info(...arguments)}function Jw(){vc.debug(...arguments)}function hn(){vc.error(...arguments)}function HA(){vc.warn(...arguments)}const oF={};function FX(t){oF[t]||(vc.error(t),oF[t]=!0)}const Ca=Object.create(null);Ca.Float32Array=Float32Array;Ca.Float64Array=Float64Array;Ca.Uint8Array=Uint8Array;Ca.Int8Array=Int8Array;Ca.Uint16Array=Uint16Array;Ca.Int16Array=Int16Array;Ca.Uint32Array=Uint32Array;Ca.Int32Array=Int32Array;Ca.Uint8ClampedArray=Uint8ClampedArray;try{Ca.BigInt64Array=BigInt64Array,Ca.BigUint64Array=BigUint64Array}catch{}function Dv(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new(Ca[t]||Float64Array)(...n)}function WA(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return(Ca[t]||Float64Array).from(...n)}function uC(t){return t.charAt(0).toUpperCase()+t.slice(1)}function cr(t){return uC(t[0]==="_"?t.slice(1):t)}function zX(t){return t.charAt(0).toLowerCase()+t.slice(1)}function GX(t){let e=arguments.length>1&&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 UX(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 HX(t){Object.keys(t).forEach(e=>{Array.isArray(t[e])&&(t[e]=[].concat(t[e]))})}function JUe(t){return Object.values(Ca).some(e=>t instanceof e)}function e6e(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;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return!1}function t6e(t,e){return Object.keys(t).find(n=>t[n]===e)}function WX(t){return t&&t.isA?t.getState():t}function KA(t){setTimeout(t,0)}function KX(t,e){const n=performance.now();t.finally(()=>{const r=performance.now()-n;e(r)})}function qr(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};HX(e);const n=[];if(Number.isInteger(e.mtime)||(e.mtime=++Mk),!("classHierarchy"in e))e.classHierarchy=new JT("vtkObject");else if(!(e.classHierarchy instanceof JT)){const i=new JT;for(let o=0;o<e.classHierarchy.length;o++)i.push(e.classHierarchy[o]);e.classHierarchy=i}function r(i){n[i]=null}function a(i){function o(){r(i)}return Object.freeze({unsubscribe:o})}return t.isDeleted=()=>!!e.deleted,t.modified=i=>{if(e.deleted){hn("instance deleted - cannot call any method");return}i&&i<t.getMTime()||(e.mtime=++Mk,n.forEach(o=>o&&o(t)))},t.onModified=i=>{if(e.deleted)return hn("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${uC(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&&HA(`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<i;s++)o[s]=arguments[s];if(!o.length)return e;const l={};return o.forEach(u=>{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(WX):JUe(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&&Jw(`add ${c} in shallowCopy`):l.splice(f,1),e[c]=s[c]}),l.length&&o&&Jw(`Untouched keys: ${l.join(", ")}`),t.modified()},t.toJSON=function(){return t.getState()},t}const n6e={object(t,e,n){return function(){return{...e[n.name]}}}};function Ja(t,e,n){n.forEach(r=>{if(typeof r=="object"){const a=n6e[r.type];a?t[`get${cr(r.name)}`]=a(t,e,r):t[`get${cr(r.name)}`]=()=>e[r.name]}else t[`get${cr(r)}`]=()=>e[r]})}const r6e={enum(t,e,n){const r=`_on${cr(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 hn(`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 hn(`Set Enum outside numeric range ${n}, ${a}`),new RangeError("Set Enum outside numeric range")}return!1}throw hn(`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${cr(n.name)}Changed`;return a=>{var i;if(!eUe(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 sF(t){if(typeof t=="object"){const e=r6e[t.type];if(e)return(n,r)=>e(n,r,t);throw hn(`No setter for field ${t}`),new TypeError("No setter for field")}return function(n,r){const a=`_on${cr(t)}Changed`;return function(o){var s;if(r.deleted)return hn("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 Nm(t,e,n){n.forEach(r=>{typeof r=="object"?t[`set${cr(r.name)}`]=sF(r)(t,e):t[`set${cr(r)}`]=sF(r)(t,e)})}function zr(t,e,n){Ja(t,e,n),Nm(t,e,n)}function kv(t,e,n){n.forEach(r=>{t[`get${cr(r)}`]=()=>e[r]?Array.from(e[r]):e[r],t[`get${cr(r)}ByReference`]=()=>e[r]})}function jA(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${cr(i)}Changed`;t[`set${cr(i)}`]=function(){var h;if(e.deleted)return hn("instance deleted - cannot call any method"),!1;for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];let c=l,f,d=!1;if(c.length===1&&(c[0]==null||c[0].length>=0)&&(c=c[0],d=!0),c==null)f=e[i]!==c;else{if(r&&c.length!==r)if(c.length<r&&a!==void 0)for(c=Array.from(c),d=!1;c.length<r;)c.push(a);else throw new RangeError(`Invalid number of values for array setter (${i})`);f=e[i]==null||e[i].length!==c.length;for(let v=0;!f&&v<c.length;++v)f=e[i][v]!==c[v];f&&d&&(c=Array.from(c))}if(f){const v=e[i.name];e[i]=c,(h=e[o])==null||h.call(e,t,e,c,v),t.modified()}return f},t[`set${cr(i)}From`]=s=>{const l=e[i];s.forEach((u,c)=>{l[c]=u})}})}function YA(t,e,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:void 0;kv(t,e,n),jA(t,e,n,r,a)}function Vm(t,e,n){for(let r=0;r<n.length;r++){const a=n[r];e[a]!==void 0&&(e[`_${a}`]=e[a],delete e[a])}}function jX(t,e,n,r){e.inputData?e.inputData=e.inputData.map(Uo):e.inputData=[],e.inputConnection?e.inputConnection=e.inputConnection.map(Uo):e.inputConnection=[],e.output?e.output=e.output.map(Uo):e.output=[],e.inputArrayToProcess?e.inputArrayToProcess=e.inputArrayToProcess.map(Uo):e.inputArrayToProcess=[],e.numberOfInputs=n;function a(h){let v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e.deleted){hn("instance deleted - cannot call any method");return}if(v>=e.numberOfInputs){hn(`algorithm ${t.getClassName()} only has ${e.numberOfInputs} input ports. To add more input ports, use addInputData()`);return}(e.inputData[v]!==h||e.inputConnection[v])&&(e.inputData[v]=h,e.inputConnection[v]=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 v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(e.deleted){hn("instance deleted - cannot call any method");return}if(v>=e.numberOfInputs){let p=`algorithm ${t.getClassName()} only has `;p+=`${e.numberOfInputs}`,p+=" input ports. To add more input ports, use addInputConnection()",hn(p);return}e.inputData[v]=null,e.inputConnection[v]=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){hn("instance deleted - cannot call any method");return}o(h,l())}function c(h){if(e.deleted){hn("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?(hn("instance deleted - cannot call any method"),null):(t.shouldUpdate()&&t.update(),e.output[h])}t.shouldUpdate=()=>{var g,y;const h=t.getMTime();let v=1/0,p=r;for(;p--;){if(!e.output[p]||e.output[p].isDeleted())return!0;const m=e.output[p].getMTime();if(m<h)return!0;m<v&&(v=m)}for(p=e.numberOfInputs;p--;)if((g=e.inputConnection[p])!=null&&g.filter.shouldUpdate()||((y=t.getInputData(p))==null?void 0:y.getMTime())>v)return!0;return!1};function d(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;const v=()=>f(h);return v.filter=t,v}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 v=0;for(;v<e.numberOfInputs;)h[v]=t.getInputData(v),v++}t.shouldUpdate()&&t.requestData&&t.requestData(h,e.output)},t.getNumberOfInputPorts=()=>e.numberOfInputs,t.getNumberOfOutputPorts=()=>r||e.output.length,t.getInputArrayToProcess=h=>{const v=e.inputArrayToProcess[h],p=e.inputData[h];return v&&p?p[`get${v.fieldAssociation}`]().getArray(v.arrayName):null},t.setInputArrayToProcess=function(h,v,p){let g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"Scalars";for(;e.inputArrayToProcess.length<h;)e.inputArrayToProcess.push(null);e.inputArrayToProcess[h]={arrayName:v,fieldAssociation:p,attributeType:g}}}const XA=Symbol("Event abort");function YX(t,e,n){const r=[],a=t.delete;let i=1;function o(u){for(let c=0;c<r.length;++c){const[f]=r[c];if(f===u){r.splice(c,1);return}}}function s(u){function c(){o(u)}return Object.freeze({unsubscribe:c})}function l(){if(e.deleted){hn("instance deleted - cannot call any method");return}const u=r.slice();for(let c=0;c<u.length;++c){const[,f,d]=u[c];if(f){if(d<0)setTimeout(()=>f.apply(t,arguments),1-d);else if(f.apply(t,arguments)===XA)break}}}t[`invoke${cr(n)}`]=l,t[`on${cr(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 hn("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 Yn(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&&Uo.register(e,n),n}function XX(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return e.filter(o=>!!o).map(o=>o(...a))}}function qA(t){return t&&t.isA&&t.isA("vtkObject")}function e_(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=>{e_(l,e,n,r)}):e_(s,e,n,r)})}return n}function qX(t,e,n){var r=this;let a;const i=function(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];const u=r,c=()=>{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 ZX(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;l<o;l++)s[l]=arguments[l];if(n){r=s;return}n=!0,t(...s),setTimeout(a,e)}return i}function ZA(t,e){let n=arguments.length>2&&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 a6e=1;const N1="__root__";function QX(t,e){ZA(t,e);const n=t.delete;e.proxyId=`${a6e++}`,e.ui=JSON.parse(JSON.stringify(e.ui||[])),Ja(t,e,["proxyId","proxyGroup","proxyName"]),zr(t,e,["proxyManager"]);const r={},a={};function i(u,c){a[c]||(a[c]=[]);const f=a[c];for(let d=0;d<u.length;d++)f.push(u[d].name),r[u[d].name]=u[d],u[d].children&&u[d].children.length&&i(u[d].children,u[d].name)}i(e.ui,N1),t.updateUI=u=>{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,N1),t.modified()};function o(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:N1;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${cr(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,v=!1;function p(b){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(v)return null;const _=[];let C=null;for(h=d.length;h--;){const D=d[h];D.instance===b?C=D:_.push(D)}if(!C)return null;const T=C.instance[`get${cr(C.propertyName)}`]();if(!e6e(T,f)||x){for(f=T,v=!0;_.length;){const D=_.pop();D.instance.set({[D.propertyName]:f})}v=!1}return e.propertyLinkMap[u].persistent&&(e.propertyLinkMap[u].value=T),T}function g(b,x){const _=[];for(h=d.length;h--;){const C=d[h];C.instance===b&&(C.propertyName===x||x===void 0)&&(C.subscription.unsubscribe(),_.push(h))}for(;_.length;)d.splice(_.pop(),1)}function y(b,x){let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const C=b.onModified(p),T=d[0];return d.push({instance:b,propertyName:x,subscription:C}),_&&(e.propertyLinkMap[u].persistent&&e.propertyLinkMap[u].value!==void 0?b.set({[x]:e.propertyLinkMap[u].value}):T&&p(T.instance,!0)),{unsubscribe:()=>g(b,x)}}function m(){for(;d.length;)d.pop().subscription.unsubscribe()}const S={bind:y,unbind:g,unsubscribe:m,persistent:c};return e.propertyLinkMap[u]=S,S};function s(){let u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:N1;const c=[],f=e.proxyId,d=o(u)||[];for(let h=0;h<d.length;h++){const v=d[h],p=t[`get${cr(v)}`],g=p?p():void 0,y={id:f,name:v,value:g},m=s(v);m.length&&(y.children=m),c.push(y)}return c}t.listPropertyNames=()=>s().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<e.links.length;u++){const{link:c,property:f,persistent:d,updateOnBind:h,type:v}=e.links[u];if(v==="application"){const p=e.proxyManager.getPropertyLink(c,d);t.registerPropertyLinkForGC(p,"application"),p.bind(t,f,h)}}}KA(l)}function JX(t,e,n){const r=t.delete,a=[],i=Object.keys(n);let o=i.length;for(;o--;){const s=i[o],{modelKey:l,property:u,modified:c=!0}=n[s],f=cr(u),d=cr(s);t[`get${d}`]=e[l][`get${f}`],t[`set${d}`]=e[l][`set${f}`],c&&a.push(e[l].onModified(t.modified))}t.delete=()=>{for(;a.length;)a.pop().unsubscribe();r()}}function eq(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${cr(s)}`]=u=>{if(u!==e[s]){e[s]=u;const c=l[u];a(c),t.modified()}}}i.length&&Ja(t,e,i)}const lF=10,uF=40,cF=800;function tq(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*lF,a=n*lF,"deltaY"in t&&(a=t.deltaY),"deltaX"in t&&(r=t.deltaX),(r||a)&&t.deltaMode&&(t.deltaMode===1?(r*=uF,a*=uF):(r*=cF,a*=cF)),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 j={algo:jX,capitalize:uC,chain:XX,debounce:qX,enumToString:t6e,event:YX,EVENT_ABORT:XA,formatBytesToProperUnit:GX,formatNumbersWithThousandSeparator:UX,get:Ja,getArray:kv,getCurrentGlobalMTime:ZUe,getStateArrayMapFunc:WX,isVtkObject:qA,keystore:ZA,measurePromiseExecution:KX,moveToProtected:Vm,newInstance:Yn,newTypedArray:Dv,newTypedArrayFrom:WA,normalizeWheel:tq,obj:qr,proxy:QX,proxyPropertyMapping:JX,proxyPropertyState:eq,safeArrays:HX,set:Nm,setArray:jA,setGet:zr,setGetArray:YA,setImmediate:KA,setLoggerFunction:$X,throttle:ZX,traverseInstanceTree:e_,TYPED_ARRAYS:Ca,uncapitalize:zX,VOID:VX,vtkDebugMacro:Jw,vtkErrorMacro:hn,vtkInfoMacro:PX,vtkLogMacro:IX,vtkOnceErrorMacro:FX,vtkWarningMacro:HA},rl=Object.freeze({__proto__:null,VOID:VX,setLoggerFunction:$X,vtkLogMacro:IX,vtkInfoMacro:PX,vtkDebugMacro:Jw,vtkErrorMacro:hn,vtkWarningMacro:HA,vtkOnceErrorMacro:FX,TYPED_ARRAYS:Ca,newTypedArray:Dv,newTypedArrayFrom:WA,capitalize:uC,_capitalize:cr,uncapitalize:zX,formatBytesToProperUnit:GX,formatNumbersWithThousandSeparator:UX,setImmediateVTK:KA,measurePromiseExecution:KX,obj:qr,get:Ja,set:Nm,setGet:zr,getArray:kv,setArray:jA,setGetArray:YA,moveToProtected:Vm,algo:jX,EVENT_ABORT:XA,event:YX,newInstance:Yn,chain:XX,isVtkObject:qA,traverseInstanceTree:e_,debounce:qX,throttle:ZX,keystore:ZA,proxy:QX,proxyPropertyMapping:JX,proxyPropertyState:eq,normalizeWheel:tq,default:j});const da=t=>(hm("data-v-54923a8d"),t=t(),pm(),t),i6e={class:"l_Dialog"},o6e={class:"common-layout",style:{margin:"0"}},s6e={class:"demo-collapse"},l6e={class:"asides_content"},u6e={class:"jc_content tablecolor"},c6e={class:"jc_padding"},f6e={class:"xian btncolor tablefocus"},d6e={class:"asdis_btn"},h6e=da(()=>P("div",{class:"btns"},[P("span",{class:"spantext"},"添加")],-1)),p6e=[h6e],v6e=da(()=>P("div",{class:"btns"},[P("span",{class:"spantext"},"删除")],-1)),g6e=[v6e],y6e=da(()=>P("div",{class:"flex_a"},[P("div",{class:"btns"},[P("span",{class:"spantext"},"确定")])],-1)),m6e={class:"xian tablefocus",style:{"margin-top":"20px"}},S6e={class:"header_l header_z"},b6e=da(()=>P("h4",{class:"tianjia"}," 灾害源表",-1)),w6e={class:"closeimg"},_6e={class:"asdis_btn"},x6e=da(()=>P("div",{class:"btns"},[P("span",{class:"spantext"},"添加")],-1)),C6e=[x6e],T6e=da(()=>P("div",{class:"btns"},[P("span",{class:"spantext"},"删除")],-1)),E6e=[T6e],M6e=da(()=>P("div",{class:"flex_a"},[P("div",{class:"btns"},[P("span",{class:"spantext"},"确定")])],-1)),D6e=da(()=>P("div",{style:{height:"200px"}},null,-1)),k6e={class:"demo-collapse"},R6e={class:"asides_content"},L6e={class:"jc_content tablecolor"},O6e={class:"jc_padding"},A6e={class:"xian btncolor tablefocus"},N6e={class:"asdis_btn"},V6e=da(()=>P("div",{class:"btns"},[P("span",{class:"spantext"},"添加")],-1)),B6e=[V6e],$6e=da(()=>P("div",{class:"btns"},[P("span",{class:"spantext"},"删除")],-1)),I6e=[$6e],P6e=da(()=>P("div",{class:"flex_a"},[P("div",{class:"btns"},[P("span",{class:"spantext"},"确定")])],-1)),F6e={class:"xian",style:{"margin-top":"20px"}},z6e={class:"header_l header_z"},G6e=da(()=>P("h4",{class:"tianjia"},"灾害源表",-1)),U6e={class:"asdis_btn"},H6e=da(()=>P("div",{class:"btns"},[P("span",{class:"spantext"},"添加")],-1)),W6e=[H6e],K6e=da(()=>P("div",{class:"btns"},[P("span",{class:"spantext"},"删除")],-1)),j6e=[K6e],Y6e=da(()=>P("div",{class:"flex_a"},[P("div",{class:"btns"},[P("span",{class:"spantext"},"确定")])],-1)),X6e=da(()=>P("div",{style:{height:"200px"}},null,-1)),q6e={class:"my-header"},Z6e=["id"],Q6e={class:"demo-input-suffix firsttitle magintop"},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:"demo-input-suffix firsttitle leftbgimg2"},u8e={class:"guand_1"},c8e={class:"asdis_btn"},f8e={class:"flex_a"},d8e=da(()=>P("span",{class:"spantext"},"搜索",-1)),h8e=[d8e],p8e={class:"demo-pagination-block"},v8e={class:"dialog-footer footer_div l_btn"},g8e={class:"footerbtn flex1"},y8e={class:"borderimg"},m8e={class:"footerbtn flex1"},S8e={class:"borderimg"},b8e={class:"my-header"},w8e=["id"],_8e={class:"dialog-footer footer_div l_btn"},x8e={class:"footerbtn flex1"},C8e={class:"borderimg"},T8e={class:"footerbtn flex1"},E8e={class:"borderimg"},M8e={class:"my-header"},D8e=["id"],k8e={class:"dialog-footer footer_div l_btn"},R8e={class:"footerbtn flex1"},L8e={class:"borderimg"},O8e={class:"footerbtn flex1"},A8e={class:"borderimg"},N8e={class:"my-header"},V8e=["id"],B8e={class:"delecttitle"},$8e={class:"spanclad"},I8e={class:"dialog-footer footer_div l_btn"},P8e={class:"footerbtn flex1"},F8e={class:"borderimg"},z8e={class:"footerbtn flex1"},G8e={class:"borderimg"},U8e={__name:"Sourcedisaster",props:{classradio:{type:String},aid:{type:String}},setup(t,{expose:e}){const n=t,r=G({adddialog:!1,dialogsgdelect:!1,dianadddialog:!1,dialogVisiblenode:!1,isDisasterfire:!1,isDisasterwter:!1,adddwater:!1});let a=G("");const i=G(1),o=G(5),s=G([]),l=G([]);G(!0);const u=G({collfire:!1,collwater:!1});let c=G(""),f=G(""),d=G(""),h=G(""),v=G(1),p=G("0");G();let g=G(300);const y=G(),m=G([]),S=G(77),b=G(120);let x=Zt({pname:"",site:.1}),_=G({svid:0,timeline:"",val1:"",val2:"",val3:"",val4:""});const C=G([]);let T=G(),D=G(),M=G(["1","2"]),E=G("");const k=({row:fe,rowIndex:ne})=>ne%2!=0?"evenRow":"oddRow",R=G([{date:"15.30",name:"35",address:"20%",address2:"10%"},{date:"15.30",name:"35",address:"20%",address2:"10%"},{date:"15.30",name:"35",address:"20%",address2:"10%"},{date:"15.30",name:"35",address:"20%",address2:"10%"}]),O=G([]),B=()=>{console.log(n.classradio),n.classradio=="Fire"?u.value.collfire=!0:n.classradio=="Water"&&(u.value.collwater=!0)},$=fe=>{T.value=fe;const ne={transCode:"D00005",aid:T.value};Lo(ne).then(Ee=>{n.classradio=="Fire"?R.value=Ee.rows:s.value=Ee.rows}).catch(Ee=>{ks.error(Ee.returnMsg)})},V=()=>{const fe={transCode:"D00004",pid:c.value,aid:T.value,stype:n.classradio,site:x.site};Lo(fe).then(ne=>{ks({message:ne.returnMsg,type:"success"}),$(T.value)}).catch(ne=>{})},F=()=>{p.value=="1"?(V(),r.value.dianadddialog=!1):p.value=="2"&&n.classradio=="Fire"&&(r.value.dianadddialog=!1),$(T.value)},L=fe=>{console.log(fe),d.value=fe.sid,E.value=fe.pname},N=fe=>{D.value=fe,D.value=="1"?H():Se()},H=()=>{const fe={transCode:"D000011",sid:d.value};console.log(fe),Lo(fe).then(ne=>{ks({message:"删除成功",type:"success"}),$(T.value)}).catch(ne=>{})};function K(fe){}const Q=fe=>{ee(h.value)},ie=()=>{a.value="",c.value="",x.site=0,ie.value="1",p.value="1"},be=()=>{ee("")},le=()=>{J()},J=()=>{a.value="",i.value=1,console.log(),m.value.length!=0?(c.value=m.value[0].id,a.value=m.value[0].name):a.value=""},Z=(fe,ne)=>{if(fe.length>1){y.value.clearSelection(),y.value.toggleRowSelection(ne,!0),m.value=fe[1];return}fe.length==1?m.value=fe:fe.length==0},ee=fe=>{const ne={transCode:"D00001",count:o.value,page:i.value,searchtag:fe};Lo(ne).then(Ee=>{C.value=Ee.rows,v.value=Ee.total}).catch(Ee=>{})},ce=(fe,ne)=>{r.value.isDisasterfire=!0,d.value=ne.sid,Y()},ue=(fe,ne)=>{r.value.disDisasterwter=!0,d.value=ne.sid,Y()},Y=()=>{const fe={transCode:"D00007",sid:d.value};Lo(fe).then(ne=>{console.log(ne.rows),n.classradio=="Fire"?l.value=ne.rows:O.value=ne.rows}).catch(ne=>{})},te=()=>{const fe={transCode:"D00006",sid:d.value,timeline:_.value.timeline,val1:_.value.val1,val2:_.value.val2,val3:_.value.val3,val4:_.value.val4};Lo(fe).then(ne=>{ks({message:ne.returnMsg,type:"success"}),Y()}).catch(ne=>{})},oe=fe=>{console.log(fe),d.value=fe.sid,E.value="检测表的一条信息",f.value=fe.svid},Se=()=>{const fe={transCode:"D000013",svid:f.value};Lo(fe).then(ne=>{ks({message:"删除成功",type:"success"}),Y()}).catch(ne=>{})};return St(()=>{}),e({sour:u,accident3:B,handledisaster:$}),(fe,ne)=>{const Ee=Pe("el-icon"),_e=Pe("info-filled"),me=Pe("el-table-column"),Te=Pe("el-table"),Ve=Pe("el-image"),ze=Pe("el-collapse-item"),We=Pe("el-collapse"),De=Pe("el-aside"),Fe=Pe("el-input"),at=Pe("el-form-item"),yt=Pe("el-input-number"),Be=Pe("el-pagination"),Je=Pe("el-form");return I(),X("div",i6e,[P("div",o6e,[ct(U(De,{width:"354px",class:"L_aside asideg asidegbg leftbgimg1"},{default:q(()=>[P("div",s6e,[U(We,{modelValue:w(M),"onUpdate:modelValue":ne[6]||(ne[6]=se=>en(M)?M.value=se:M=se),accordion:""},{default:q(()=>[U(ze,{name:"1"},{title:q(()=>[U(Ee,{class:"iconimg Frame2",fit:"contain"}),dt(" 火灾"),U(Ee,{class:"header-icon"},{default:q(()=>[U(_e)]),_:1})]),default:q(()=>[P("div",l6e,[P("div",u6e,[P("div",c6e,[P("div",f6e,[U(Te,{data:R.value,style:{width:"100%"},onRowClick:ne[0]||(ne[0]=se=>L(se)),"row-class-name":k,"max-height":"350px","header-cell-style":{background:"rgba(13, 22, 57, 0.96) "},"highlight-current-row":!0},{default:q(()=>[U(me,{prop:"pname",label:"选择巷道",width:"130"}),U(me,{prop:"site",label:"位置",width:"70"}),U(me,{label:"操作",width:"100"},{default:q(se=>[U(w(ln),{size:"small",type:"success",onClick:ot(he=>ce(se.$index,se.row),["stop"])},{default:q(()=>[dt("查看")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","header-cell-style"]),P("div",d6e,[P("div",{class:"flex_a",onClick:ne[1]||(ne[1]=se=>{ie(),r.value.dianadddialog=!0})},p6e),P("div",{class:"flex_a",onClick:ne[2]||(ne[2]=se=>{N("1"),r.value.dialogsgdelect=!0})},g6e),y6e])]),ct(P("div",m6e,[P("div",S6e,[U(Ve,{src:w(Ki),fit:"contain"},null,8,["src"]),b6e,P("div",w6e,[U(Ve,{src:w(Ck),fit:"contain"},null,8,["src"])])]),U(Te,{data:l.value,style:{width:"100%"},"row-class-name":k,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "},"max-height":w(g),onRowClick:ne[3]||(ne[3]=se=>oe(se)),"highlight-current-row":!0},{default:q(()=>[U(me,{prop:"timeline",label:"时间",width:"70"}),U(me,{prop:"val1",label:"温度℃",width:"70"}),U(me,{prop:"val2",label:"污染物1浓度",width:"100"}),U(me,{prop:"val2",label:"污染物2浓度",width:"100"})]),_:1},8,["data","header-cell-style","max-height"]),P("div",_6e,[P("div",{class:"flex_a",onClick:ne[4]||(ne[4]=se=>r.value.adddialog=!0)},C6e),P("div",{class:"flex_a",onClick:ne[5]||(ne[5]=se=>{N("2"),r.value.dialogsgdelect=!0})},E6e),M6e])],512),[[Nt,r.value.isDisasterfire]])]),D6e])])]),_:1})]),_:1},8,["modelValue"])])]),_:1},512),[[Nt,u.value.collfire]]),ct(U(De,{width:"354px",class:"L_aside asideg asidegbg leftbgimg1"},{default:q(()=>[P("div",k6e,[U(We,{modelValue:w(M),"onUpdate:modelValue":ne[13]||(ne[13]=se=>en(M)?M.value=se:M=se),accordion:""},{default:q(()=>[U(ze,{name:"1"},{title:q(()=>[U(Ee,{class:"iconimg Frame3",fit:"contain"}),dt(" 突水"),U(Ee,{class:"header-icon"},{default:q(()=>[U(_e)]),_:1})]),default:q(()=>[P("div",R6e,[P("div",L6e,[P("div",O6e,[P("div",A6e,[U(Te,{data:s.value,style:{width:"100%"},"row-class-name":k,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "},onRowClick:ne[7]||(ne[7]=se=>L(se)),"max-height":"350px","highlight-current-row":!0},{default:q(()=>[U(me,{prop:"pname",label:"选择巷道",width:"130"}),U(me,{prop:"site",label:"位置",width:"70"}),U(me,{label:"操作",width:"100"},{default:q(se=>[U(w(ln),{size:"small",type:"success",onClick:ot(he=>ue(se.$index,se.row),["stop"])},{default:q(()=>[dt("查看")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data","header-cell-style"]),P("div",N6e,[P("div",{class:"flex_a",onClick:ne[8]||(ne[8]=se=>{ie(),r.value.dianadddialog=!0})},B6e),P("div",{class:"flex_a",onClick:ne[9]||(ne[9]=se=>{N("2"),r.value.dialogsgdelect=!0})},I6e),P6e])]),ct(P("div",F6e,[P("div",z6e,[U(Ve,{src:w(Ki),fit:"contain"},null,8,["src"]),G6e,P("div",{class:"closeimg",onClick:ne[10]||(ne[10]=(...se)=>r.value.disDisasterwter&&r.value.disDisasterwter(...se))},[U(Ve,{src:w(Ck),fit:"contain"},null,8,["src"])])]),U(Te,{data:O.value,style:{width:"100%"},"max-height":w(g),onCurrentChange:Q,"row-class-name":k,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:q(()=>[U(me,{prop:"timeline",label:"时间"}),U(me,{prop:"val1",label:"突水量(m³/s)"})]),_:1},8,["data","max-height","header-cell-style"]),P("div",U6e,[P("div",{class:"flex_a",onClick:ne[11]||(ne[11]=se=>r.value.adddwater=!0)},W6e),P("div",{class:"flex_a",onClick:ne[12]||(ne[12]=se=>{N("2"),r.value.dialogsgdelect=!0})},j6e),Y6e])],512),[[Nt,r.value.disDisasterwter]])]),X6e])])]),_:1})]),_:1},8,["modelValue"])])]),_:1},512),[[Nt,u.value.collwater]])]),U(w(Ds),{modelValue:r.value.dianadddialog,"onUpdate:modelValue":ne[19]||(ne[19]=se=>r.value.dianadddialog=se),width:"400",class:"dialog_class bgcolor tianjia"},{header:q(({titleId:se,titleClass:he})=>[P("div",q6e,[U(Ve,{src:w(Ki),fit:"contain"},null,8,["src"]),P("h4",{id:se,class:z(he)},"添加",10,Z6e)])]),default:q(()=>[P("div",Q6e,[U(at,{label:"管道名称","label-width":S.value},{default:q(()=>[U(Fe,{modelValue:w(a),"onUpdate:modelValue":ne[14]||(ne[14]=se=>en(a)?a.value=se:a=se),class:"w-50 m-2",placeholder:"管道名称","prefix-icon":fe.Search},null,8,["modelValue","prefix-icon"])]),_:1},8,["label-width"]),P("div",J6e,[U(w(ln),{type:"primary",onClick:ne[15]||(ne[15]=se=>{be(),r.value.dialogVisiblenode=!0})},{default:q(()=>[dt("选择管道")]),_:1})])]),P("div",e8e,[U(at,{label:"位置","label-width":S.value},{default:q(()=>[U(yt,{modelValue:w(x).site,"onUpdate:modelValue":ne[16]||(ne[16]=se=>w(x).site=se),min:0,max:1,precision:2,step:.1,"controls-position":"right",class:"w-50 m-2",placeholder:"位置"},null,8,["modelValue"])]),_:1},8,["label-width"])]),P("div",t8e,[P("div",n8e,[P("div",r8e,[U(w(ln),{onClick:ne[17]||(ne[17]=se=>r.value.dianadddialog=!1)},{default:q(()=>[dt("取消")]),_:1})])]),P("div",a8e,[P("div",i8e,[U(w(ln),{onClick:ne[18]||(ne[18]=se=>{F(),r.value.dianadddialog=!1})},{default:q(()=>[dt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),U(w(Ds),{modelValue:r.value.dialogVisiblenode,"onUpdate:modelValue":ne[25]||(ne[25]=se=>r.value.dialogVisiblenode=se),width:"50%",class:"dialog_class bgcolor tianjia asideg asidegbg leftbgimg"},{header:q(({titleId:se,titleClass:he})=>[P("div",o8e,[U(Ve,{src:w(Ki),fit:"contain"},null,8,["src"]),P("h4",{id:se,class:z(he)}," 选择管道",10,s8e)])]),default:q(()=>[P("div",l8e,[P("div",u8e,[U(at,{label:"节点选择","label-width":S.value},{default:q(()=>[U(Fe,{modelValue:w(h),"onUpdate:modelValue":ne[20]||(ne[20]=se=>en(h)?h.value=se:h=se),class:"w-50 m-2",placeholder:"管道名称","prefix-icon":fe.Search},null,8,["modelValue","prefix-icon"])]),_:1},8,["label-width"]),P("div",c8e,[P("div",f8e,[P("div",{class:"btns",onClick:ne[21]||(ne[21]=(...se)=>fe.searchgd&&fe.searchgd(...se))},h8e)])])]),U(Te,{ref_key:"multipleTableRef",ref:y,data:C.value,style:{width:"100%"},"highlight-current-row":"",onSelectionChange:fe.handleSelectionChange,onSelect:Z,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:q(()=>[U(me,{type:"selection",width:"55"}),U(me,{property:"snId",label:"开始节点"}),U(me,{property:"enId",label:"结束节点"}),U(me,{property:"id",label:"编号",width:"70"}),U(me,{property:"name",label:"名称",width:"70"}),U(me,{property:"sectionType",label:"截面类型",width:"120"}),U(me,{property:"roughCoe",label:"粗糙系数"}),U(me,{property:"sectionPara1",label:"截面参数1",width:"90"}),U(me,{property:"sectionPara2",label:"截面参数2",width:"90"}),U(me,{property:"sectionPara3",label:"截面参数3",width:"90"}),U(me,{property:"sectionPara4",label:"截面参数4",width:"90"}),U(me,{property:"sectionPara5",label:"截面参数5",width:"90"})]),_:1},8,["data","onSelectionChange","header-cell-style"]),P("div",p8e,[U(Be,{"current-page":i.value,"onUpdate:currentPage":ne[22]||(ne[22]=se=>i.value=se),"page-size":o.value,"onUpdate:pageSize":ne[23]||(ne[23]=se=>o.value=se),small:"",background:"",layout:"prev, total,pager, next, jumpe,",total:parseInt(w(v)),class:"mt-4",onSizeChange:K,onCurrentChange:Q},null,8,["current-page","page-size","total"])]),P("div",v8e,[P("div",g8e,[P("div",y8e,[U(w(ln),{onClick:r.value.dialogVisiblenode},{default:q(()=>[dt("取消")]),_:1},8,["onClick"])])]),P("div",m8e,[P("div",S8e,[U(w(ln),{onClick:ne[24]||(ne[24]=se=>{le(),r.value.dialogVisiblenode=!1})},{default:q(()=>[dt(" 确定 ")]),_:1})])])])])]),_:1},8,["modelValue"]),U(w(Ds),{modelValue:r.value.adddialog,"onUpdate:modelValue":ne[32]||(ne[32]=se=>r.value.adddialog=se),width:"400",class:"dialog_class bgcolor tianjia"},{header:q(({titleId:se,titleClass:he})=>[P("div",b8e,[U(Ve,{src:w(Ki),fit:"contain"},null,8,["src"]),P("h4",{id:se,class:z(he)},"添加",10,w8e)])]),default:q(()=>[P("div",null,[U(Je,null,{default:q(()=>[U(at,{label:"时间","label-width":b.value},{default:q(()=>[U(Fe,{modelValue:w(_).timeline,"onUpdate:modelValue":ne[26]||(ne[26]=se=>w(_).timeline=se),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),U(at,{label:"温度℃","label-width":b.value},{default:q(()=>[U(Fe,{modelValue:w(_).val1,"onUpdate:modelValue":ne[27]||(ne[27]=se=>w(_).val1=se),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),U(at,{label:"污染物1浓度","label-width":b.value},{default:q(()=>[U(Fe,{modelValue:w(_).val2,"onUpdate:modelValue":ne[28]||(ne[28]=se=>w(_).val2=se),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),U(at,{label:"污染物2浓度","label-width":b.value},{default:q(()=>[U(Fe,{modelValue:w(_).val3,"onUpdate:modelValue":ne[29]||(ne[29]=se=>w(_).val3=se),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1})]),P("div",_8e,[P("div",x8e,[P("div",C8e,[U(w(ln),{onClick:ne[30]||(ne[30]=se=>r.value.adddialog=!1)},{default:q(()=>[dt("取消")]),_:1})])]),P("div",T8e,[P("div",E8e,[U(w(ln),{onClick:ne[31]||(ne[31]=se=>{te(),r.value.adddialog=!1})},{default:q(()=>[dt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),U(w(Ds),{modelValue:r.value.adddwater,"onUpdate:modelValue":ne[37]||(ne[37]=se=>r.value.adddwater=se),width:"400",class:"dialog_class bgcolor tianjia"},{header:q(({titleId:se,titleClass:he})=>[P("div",M8e,[U(Ve,{src:w(Ki),fit:"contain"},null,8,["src"]),P("h4",{id:se,class:z(he)},"添加",10,D8e)])]),default:q(()=>[P("div",null,[U(Je,null,{default:q(()=>[U(at,{label:"时间","label-width":b.value},{default:q(()=>[U(Fe,{modelValue:w(_).timeline,"onUpdate:modelValue":ne[33]||(ne[33]=se=>w(_).timeline=se),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"]),U(at,{label:"突水量(m³/s)","label-width":b.value},{default:q(()=>[U(Fe,{modelValue:w(_).val1,"onUpdate:modelValue":ne[34]||(ne[34]=se=>w(_).val1=se),class:"w-50 m-2",placeholder:"请输入"},null,8,["modelValue"])]),_:1},8,["label-width"])]),_:1})]),P("div",k8e,[P("div",R8e,[P("div",L8e,[U(w(ln),{onClick:ne[35]||(ne[35]=se=>r.value.adddwater=!1)},{default:q(()=>[dt("取消")]),_:1})])]),P("div",O8e,[P("div",A8e,[U(w(ln),{onClick:ne[36]||(ne[36]=se=>{te(),r.value.adddwater=!1})},{default:q(()=>[dt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"]),U(w(Ds),{modelValue:r.value.dialogsgdelect,"onUpdate:modelValue":ne[40]||(ne[40]=se=>r.value.dialogsgdelect=se),width:"400",class:"dialog_class bgcolor tianjia"},{header:q(({titleId:se,titleClass:he})=>[P("div",N8e,[U(Ve,{src:w(Ki),fit:"contain"},null,8,["src"]),P("h4",{id:se,class:z(he)},"删除框",10,V8e)])]),default:q(()=>[P("h4",B8e,[dt(" 是否确认删除 "),P("span",$8e,Le(w(E)),1)]),P("div",I8e,[P("div",P8e,[P("div",F8e,[U(w(ln),{onClick:ne[38]||(ne[38]=se=>r.value.dialogsgdelect=!1)},{default:q(()=>[dt("取消")]),_:1})])]),P("div",z8e,[P("div",G8e,[U(w(ln),{onClick:ne[39]||(ne[39]=se=>{H(),r.value.dialogsgdelect=!1})},{default:q(()=>[dt(" 确定 ")]),_:1})])])])]),_:1},8,["modelValue"])])}}},H8e=Om(U8e,[["__scopeId","data-v-54923a8d"]]);const Nc=t=>(hm("data-v-16643cfd"),t=t(),pm(),t),W8e={class:"l_Dialog"},K8e={class:"common-layout",style:{margin:"0"}},j8e={class:"demo-collapse"},Y8e={class:"asides_content"},X8e={class:"jc_content tablecolor"},q8e={class:"jc_padding font12"},Z8e={class:"xian btncolor"},Q8e={class:"asdis_btn"},J8e=Nc(()=>P("div",{class:"flex_a"},[P("div",{class:"btns"},[P("span",{class:"spantext"},"添加")])],-1)),eHe=Nc(()=>P("div",{class:"flex_a"},[P("div",{class:"btns"},[P("span",{class:"spantext"},"删除")])],-1)),tHe={class:"flex_a"},nHe=Nc(()=>P("span",{class:"spantext"},"修改",-1)),rHe=[nHe],aHe={class:"my-header"},iHe=["id"],oHe={class:"addye"},sHe={class:"l_padding input",style:{padding:"20px 20px 20px 24px"}},lHe=Nc(()=>P("span",{class:"inputtext_1"},"流量(m³/s)",-1)),uHe={class:"inputkuang"},cHe=Nc(()=>P("span",{class:"inputtext_1"},"压强(pa)",-1)),fHe={class:"inputkuang"},dHe=Nc(()=>P("span",{class:"inputtext_1"},"温度(℃)",-1)),hHe={class:"inputkuang"},pHe=Nc(()=>P("span",{class:"inputtext_1"},"污染物1浓度",-1)),vHe={class:"inputkuang"},gHe=Nc(()=>P("span",{class:"inputtext_1"},"污染物2浓度",-1)),yHe={class:"inputkuang"},mHe={class:"dialog-footer footer_div l_btn"},SHe={class:"footerbtn flex1"},bHe={class:"borderimg"},wHe={class:"footerbtn flex1"},_He={class:"borderimg"},xHe={__name:"MyBoundary",props:{classradio:{type:String}},setup(t,{expose:e}){const n=t,r=Zt({id:0,name:"灾情演化",value:".vtk"});let a=Zt({user:"11",region:"Option1",options:[{value:"Option1",label:"Option1"},{value:"Option2",label:"Option2"},{value:"Option3",label:"Option3"},{value:"Option4",label:"Option4"},{value:"Option5",label:"Option5"}]});G("");const i=G({dialogVisible:!1}),o=G({collfire:!1,collwater:!1});let s=G(["1","2"]);const l=[{date:"01",name:"首次"},{date:"02",name:"火灾"},{date:"03",name:"灾事"}],u=()=>{var h=[{id:0,name:"灾情演化",value:".vtk"},{id:1,name:"演化过程",value:".mesh"}];r.value=h},c=({row:h,rowIndex:v})=>v%2!=0?"evenRow":"oddRow",f=()=>{},d=()=>{n.classradio=="Fire"?(o.value.collfire=!0,console.log(111),console.log(o.value.collfire)):n.classradio=="Water"&&(o.value.collwater=!0)};return St(()=>{}),e({boun:o,accident4:d}),(h,v)=>{const p=Pe("el-icon"),g=Pe("info-filled"),y=Pe("el-table-column"),m=Pe("el-table"),S=Pe("el-collapse-item"),b=Pe("el-collapse"),x=Pe("el-aside"),_=Pe("el-image"),C=Pe("el-option"),T=Pe("el-select"),D=Pe("el-form-item"),M=Pe("el-input"),E=Pe("el-form");return I(),X("div",W8e,[P("div",K8e,[ct(U(x,{width:"591px",class:"L_aside asideg asidegbg leftbgimg2"},{default:q(()=>[P("div",j8e,[U(b,{modelValue:w(s),"onUpdate:modelValue":v[1]||(v[1]=k=>en(s)?s.value=k:s=k),accordion:""},{default:q(()=>[U(S,{name:"1"},{title:q(()=>[U(p,{class:"iconimg Frame2",fit:"contain"}),dt(" 火灾"),U(p,{class:"header-icon"},{default:q(()=>[U(g)]),_:1})]),default:q(()=>[P("div",Y8e,[P("div",X8e,[P("div",q8e,[P("div",Z8e,[U(m,{data:l,style:{width:"100%"},onCurrentChange:f,"row-class-name":c,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:q(()=>[U(y,{prop:"date",label:"节点选择"}),U(y,{prop:"name",label:"边界类型"}),U(y,{prop:"date",label:"流量(m³/s)",width:"80"}),U(y,{prop:"name",label:"压强(pa)",width:"70"}),U(y,{prop:"date",label:"温度(℃)"}),U(y,{prop:"name",label:"污染物1浓度",width:"95"}),U(y,{prop:"date",label:"污染物2浓度",width:"95"})]),_:1},8,["header-cell-style"]),P("div",Q8e,[J8e,eHe,P("div",tHe,[P("div",{class:"btns",onClick:v[0]||(v[0]=k=>{u(),i.value.dialogVisible=!0})},rHe)])])])])])])]),_:1})]),_:1},8,["modelValue"])])]),_:1},512),[[Nt,o.value.collfire]])]),U(w(Ds),{modelValue:i.value.dialogVisible,"onUpdate:modelValue":v[10]||(v[10]=k=>i.value.dialogVisible=k),width:"482",modal:!1,"close-on-click-modal":!1,draggable:"",class:"dialog_class bgcolor foter_l"},{header:q(({titleId:k,titleClass:R})=>[P("div",aHe,[U(_,{src:w(Ki),fit:"contain"},null,8,["src"]),P("h4",{id:k,class:z(R)},"修改",10,iHe)])]),default:q(()=>[P("div",oHe,[U(E,{class:"demo-form-inline",inline:!0,model:w(a)},{default:q(()=>[P("div",sHe,[U(D,{label:"边界类型"},{default:q(()=>[U(T,{clearable:"",modelValue:w(a).region,"onUpdate:modelValue":v[2]||(v[2]=k=>w(a).region=k),placeholder:"请选择"},{default:q(()=>[(I(!0),X(Qe,null,Vt(w(a).options,k=>(I(),ve(C,{key:k.id,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),P("ul",null,[P("li",null,[lHe,P("div",uHe,[U(M,{modelValue:w(a).user,"onUpdate:modelValue":v[3]||(v[3]=k=>w(a).user=k)},null,8,["modelValue"])])]),P("li",null,[cHe,P("div",fHe,[U(M,{modelValue:w(a).user,"onUpdate:modelValue":v[4]||(v[4]=k=>w(a).user=k)},null,8,["modelValue"])])]),P("li",null,[dHe,P("div",hHe,[U(M,{modelValue:w(a).user,"onUpdate:modelValue":v[5]||(v[5]=k=>w(a).user=k)},null,8,["modelValue"])])]),P("li",null,[pHe,P("div",vHe,[U(M,{modelValue:w(a).user,"onUpdate:modelValue":v[6]||(v[6]=k=>w(a).user=k)},null,8,["modelValue"])])]),P("li",null,[gHe,P("div",yHe,[U(M,{modelValue:w(a).user,"onUpdate:modelValue":v[7]||(v[7]=k=>w(a).user=k)},null,8,["modelValue"])])])])])]),_:1},8,["model"]),P("div",mHe,[P("div",SHe,[P("div",bHe,[U(w(ln),{onClick:v[8]||(v[8]=k=>i.value.dialogVisible=!1)},{default:q(()=>[dt("添加")]),_:1})])]),P("div",wHe,[P("div",_He,[U(w(ln),{onClick:v[9]||(v[9]=k=>h.accident())},{default:q(()=>[dt(" 确定 ")]),_:1})])])])])]),_:1},8,["modelValue"])])}}},CHe=Om(xHe,[["__scopeId","data-v-16643cfd"]]);function Zb(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function THe(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nq(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===THe?t:EHe,n=t,r=t);function a(s,l,u=0,c=s.length){if(u<c){if(e(l,l)!==0)return c;do{const f=u+c>>>1;n(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function i(s,l,u=0,c=s.length){if(u<c){if(e(l,l)!==0)return c;do{const f=u+c>>>1;n(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=a(s,l,u,c-1);return f>u&&r(s[f-1],l)>-r(s[f],l)?f-1:f}return{left:a,center:o,right:i}}function EHe(){return 0}function MHe(t){return t===null?NaN:+t}const DHe=nq(Zb),kHe=DHe.right;nq(MHe).center;const RHe=kHe,LHe=Math.sqrt(50),OHe=Math.sqrt(10),AHe=Math.sqrt(2);function t_(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>=LHe?10:i>=OHe?5:i>=AHe?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/u<t&&++s,l/u>e&&--l,u=-u):(u=Math.pow(10,a)*o,s=Math.round(t/u),l=Math.round(e/u),s*u<t&&++s,l*u>e&&--l),l<s&&.5<=n&&n<2?t_(t,e,n*2):[s,l,u]}function NHe(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const r=e<t,[a,i,o]=r?t_(e,t,n):t_(t,e,n);if(!(i>=a))return[];const s=i-a+1,l=new Array(s);if(r)if(o<0)for(let u=0;u<s;++u)l[u]=(i-u)/-o;else for(let u=0;u<s;++u)l[u]=(i-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(a+u)/-o;else for(let u=0;u<s;++u)l[u]=(a+u)*o;return l}function Dk(t,e,n){return e=+e,t=+t,n=+n,t_(t,e,n)[2]}function VHe(t,e,n){e=+e,t=+t,n=+n;const r=e<t,a=r?Dk(e,t,n):Dk(t,e,n);return(r?-1:1)*(a<0?1/-a:a)}function BHe(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function QA(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function rq(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Bm(){}var Ty=.7,n_=1/Ty,Cp="\\s*([+-]?\\d+)\\s*",Ey="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ps="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$He=/^#([0-9a-f]{3,8})$/,IHe=new RegExp(`^rgb\\(${Cp},${Cp},${Cp}\\)$`),PHe=new RegExp(`^rgb\\(${Ps},${Ps},${Ps}\\)$`),FHe=new RegExp(`^rgba\\(${Cp},${Cp},${Cp},${Ey}\\)$`),zHe=new RegExp(`^rgba\\(${Ps},${Ps},${Ps},${Ey}\\)$`),GHe=new RegExp(`^hsl\\(${Ey},${Ps},${Ps}\\)$`),UHe=new RegExp(`^hsla\\(${Ey},${Ps},${Ps},${Ey}\\)$`),fF={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};QA(Bm,My,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:dF,formatHex:dF,formatHex8:HHe,formatHsl:WHe,formatRgb:hF,toString:hF});function dF(){return this.rgb().formatHex()}function HHe(){return this.rgb().formatHex8()}function WHe(){return aq(this).formatHsl()}function hF(){return this.rgb().formatRgb()}function My(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=$He.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?pF(e):n===3?new fi(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?V1(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?V1(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=IHe.exec(t))?new fi(e[1],e[2],e[3],1):(e=PHe.exec(t))?new fi(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=FHe.exec(t))?V1(e[1],e[2],e[3],e[4]):(e=zHe.exec(t))?V1(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=GHe.exec(t))?yF(e[1],e[2]/100,e[3]/100,1):(e=UHe.exec(t))?yF(e[1],e[2]/100,e[3]/100,e[4]):fF.hasOwnProperty(t)?pF(fF[t]):t==="transparent"?new fi(NaN,NaN,NaN,0):null}function pF(t){return new fi(t>>16&255,t>>8&255,t&255,1)}function V1(t,e,n,r){return r<=0&&(t=e=n=NaN),new fi(t,e,n,r)}function KHe(t){return t instanceof Bm||(t=My(t)),t?(t=t.rgb(),new fi(t.r,t.g,t.b,t.opacity)):new fi}function kk(t,e,n,r){return arguments.length===1?KHe(t):new fi(t,e,n,r??1)}function fi(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}QA(fi,kk,rq(Bm,{brighter(t){return t=t==null?n_:Math.pow(n_,t),new fi(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ty:Math.pow(Ty,t),new fi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new fi(md(this.r),md(this.g),md(this.b),r_(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:vF,formatHex:vF,formatHex8:jHe,formatRgb:gF,toString:gF}));function vF(){return`#${nd(this.r)}${nd(this.g)}${nd(this.b)}`}function jHe(){return`#${nd(this.r)}${nd(this.g)}${nd(this.b)}${nd((isNaN(this.opacity)?1:this.opacity)*255)}`}function gF(){const t=r_(this.opacity);return`${t===1?"rgb(":"rgba("}${md(this.r)}, ${md(this.g)}, ${md(this.b)}${t===1?")":`, ${t})`}`}function r_(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function md(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function nd(t){return t=md(t),(t<16?"0":"")+t.toString(16)}function yF(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new $o(t,e,n,r)}function aq(t){if(t instanceof $o)return new $o(t.h,t.s,t.l,t.opacity);if(t instanceof Bm||(t=My(t)),!t)return new $o;if(t instanceof $o)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+(n<r)*6:n===i?o=(r-e)/s+2:o=(e-n)/s+4,s/=l<.5?i+a:2-i-a,o*=60):s=l>0&&l<1?0:o,new $o(o,s,l,t.opacity)}function YHe(t,e,n,r){return arguments.length===1?aq(t):new $o(t,e,n,r??1)}function $o(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}QA($o,YHe,rq(Bm,{brighter(t){return t=t==null?n_:Math.pow(n_,t),new $o(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ty:Math.pow(Ty,t),new $o(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 fi(e2(t>=240?t-240:t+120,a,r),e2(t,a,r),e2(t<120?t+240:t-120,a,r),this.opacity)},clamp(){return new $o(mF(this.h),B1(this.s),B1(this.l),r_(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=r_(this.opacity);return`${t===1?"hsl(":"hsla("}${mF(this.h)}, ${B1(this.s)*100}%, ${B1(this.l)*100}%${t===1?")":`, ${t})`}`}}));function mF(t){return t=(t||0)%360,t<0?t+360:t}function B1(t){return Math.max(0,Math.min(1,t||0))}function e2(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 JA=t=>()=>t;function XHe(t,e){return function(n){return t+n*e}}function qHe(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 ZHe(t){return(t=+t)==1?iq:function(e,n){return n-e?qHe(e,n,t):JA(isNaN(e)?n:e)}}function iq(t,e){var n=e-t;return n?XHe(t,n):JA(isNaN(t)?e:t)}const SF=function t(e){var n=ZHe(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=iq(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 QHe(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=t[a]*(1-i)+e[a]*i;return r}}function JHe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function eWe(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=e3(t[o],e[o]);for(;o<n;++o)i[o]=e[o];return function(s){for(o=0;o<r;++o)i[o]=a[o](s);return i}}function tWe(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function a_(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function nWe(t,e){var n={},r={},a;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(a in e)a in t?n[a]=e3(t[a],e[a]):r[a]=e[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var Rk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,t2=new RegExp(Rk.source,"g");function rWe(t){return function(){return t}}function aWe(t){return function(e){return t(e)+""}}function iWe(t,e){var n=Rk.lastIndex=t2.lastIndex=0,r,a,i,o=-1,s=[],l=[];for(t=t+"",e=e+"";(r=Rk.exec(t))&&(a=t2.exec(e));)(i=a.index)>n&&(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:a_(r,a)})),n=t2.lastIndex;return n<e.length&&(i=e.slice(n),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?aWe(l[0].x):rWe(e):(e=l.length,function(u){for(var c=0,f;c<e;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function e3(t,e){var n=typeof e,r;return e==null||n==="boolean"?JA(e):(n==="number"?a_:n==="string"?(r=My(e))?(e=r,SF):iWe:e instanceof My?SF:e instanceof Date?tWe:JHe(e)?QHe:Array.isArray(e)?eWe:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?nWe:a_)(t,e)}function oWe(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function sWe(t){return function(){return t}}function lWe(t){return+t}var bF=[0,1];function ap(t){return t}function Lk(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:sWe(isNaN(e)?NaN:.5)}function uWe(t,e){var n;return t>e&&(n=t,t=e,e=n),function(r){return Math.max(t,Math.min(e,r))}}function cWe(t,e,n){var r=t[0],a=t[1],i=e[0],o=e[1];return a<r?(r=Lk(a,r),i=n(o,i)):(r=Lk(r,a),i=n(i,o)),function(s){return i(r(s))}}function fWe(t,e,n){var r=Math.min(t.length,e.length)-1,a=new Array(r),i=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)a[o]=Lk(t[o],t[o+1]),i[o]=n(e[o],e[o+1]);return function(s){var l=RHe(t,s,1,r)-1;return i[l](a[l](s))}}function dWe(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function hWe(){var t=bF,e=bF,n=e3,r,a,i,o=ap,s,l,u;function c(){var d=Math.min(t.length,e.length);return o!==ap&&(o=uWe(t[0],t[d-1])),s=d>2?fWe:cWe,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),a_)))(d)))},f.domain=function(d){return arguments.length?(t=Array.from(d,lWe),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=oWe,c()},f.clamp=function(d){return arguments.length?(o=d?!0:ap,c()):o!==ap},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 pWe(){return hWe()(ap,ap)}function vWe(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function i_(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 nv(t){return t=i_(Math.abs(t)),t?t[1]:NaN}function gWe(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 yWe(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var mWe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o_(t){if(!(e=mWe.exec(t)))throw new Error("invalid format: "+t);var e;return new t3({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]})}o_.prototype=t3.prototype;function t3(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+""}t3.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 SWe(t){e:for(var e=t.length,n=1,r=-1,a;n<e;++n)switch(t[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+t[n])break e;r>0&&(r=0);break}return r>0?t.slice(0,r)+t.slice(a+1):t}var oq;function bWe(t,e){var n=i_(t,e);if(!n)return t+"";var r=n[0],a=n[1],i=a-(oq=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")+i_(t,Math.max(0,e+i-1))[0]}function wF(t,e){var n=i_(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 _F={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:vWe,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)=>wF(t*100,e),r:wF,s:bWe,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function xF(t){return t}var CF=Array.prototype.map,TF=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wWe(t){var e=t.grouping===void 0||t.thousands===void 0?xF:gWe(CF.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?xF:yWe(CF.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=o_(f);var d=f.fill,h=f.align,v=f.sign,p=f.symbol,g=f.zero,y=f.width,m=f.comma,S=f.precision,b=f.trim,x=f.type;x==="n"?(m=!0,x="g"):_F[x]||(S===void 0&&(S=12),b=!0,x="g"),(g||d==="0"&&h==="=")&&(g=!0,d="0",h="=");var _=p==="$"?n:p==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",C=p==="$"?r:/[%p]/.test(x)?o:"",T=_F[x],D=/[defgprs%]/.test(x);S=S===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function M(E){var k=_,R=C,O,B,$;if(x==="c")R=T(E)+R,E="";else{E=+E;var V=E<0||1/E<0;if(E=isNaN(E)?l:T(Math.abs(E),S),b&&(E=SWe(E)),V&&+E==0&&v!=="+"&&(V=!1),k=(V?v==="("?v:s:v==="-"||v==="("?"":v)+k,R=(x==="s"?TF[8+oq/3]:"")+R+(V&&v==="("?")":""),D){for(O=-1,B=E.length;++O<B;)if($=E.charCodeAt(O),48>$||$>57){R=($===46?a+E.slice(O+1):E.slice(O))+R,E=E.slice(0,O);break}}}m&&!g&&(E=e(E,1/0));var F=k.length+E.length+R.length,L=F<y?new Array(y-F+1).join(d):"";switch(m&&g&&(E=e(L+E,L.length?y-R.length:1/0),L=""),h){case"<":E=k+E+R+L;break;case"=":E=k+L+E+R;break;case"^":E=L.slice(0,F=L.length>>1)+k+E+R+L.slice(F);break;default:E=L+k+E+R;break}return i(E)}return M.toString=function(){return f+""},M}function c(f,d){var h=u((f=o_(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(nv(d)/3)))*3,p=Math.pow(10,-v),g=TF[8+v/3];return function(y){return h(p*y)+g}}return{format:u,formatPrefix:c}}var $1,sq,lq;uq({thousands:",",grouping:[3],currency:["$",""]});function uq(t){return $1=wWe(t),sq=$1.format,lq=$1.formatPrefix,$1}function _We(t){return Math.max(0,-nv(Math.abs(t)))}function xWe(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(nv(e)/3)))*3-nv(Math.abs(t)))}function CWe(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,nv(e)-nv(t))+1}function TWe(t,e,n,r){var a=VHe(t,e,n),i;switch(r=o_(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return r.precision==null&&!isNaN(i=xWe(a,o))&&(r.precision=i),lq(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=CWe(a,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=_We(a))&&(r.precision=i-(r.type==="%")*2);break}}return sq(r)}function EWe(t){var e=t.domain;return t.ticks=function(n){var r=e();return NHe(r[0],r[r.length-1],n??10)},t.tickFormat=function(n,r){var a=e();return TWe(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(s<o&&(u=o,o=s,s=u,u=a,a=i,i=u);c-- >0;){if(u=Dk(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 cC(){var t=pWe();return t.copy=function(){return dWe(t,cC())},BHe.apply(t,arguments),EWe(t)}var Sn=1e-6,Zr=typeof Float32Array<"u"?Float32Array:Array,MWe=Math.PI/180;function DWe(t){return t*MWe}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function cq(){var t=new Zr(9);return Zr!=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 n3(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 kWe(t){var e=new Zr(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 RWe(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 LWe(t,e,n,r,a,i,o,s,l){var u=new Zr(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 OWe(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 qd(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 fq(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 r3(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,v=n*f+r*d+a*h;return v?(v=1/v,t[0]=f*v,t[1]=(-c*r+a*u)*v,t[2]=(s*r-a*o)*v,t[3]=d*v,t[4]=(c*n-a*l)*v,t[5]=(-s*n+a*i)*v,t[6]=h*v,t[7]=(-u*n+r*l)*v,t[8]=(o*n-r*i)*v,t):null}function AWe(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 NWe(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 dq(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],v=n[2],p=n[3],g=n[4],y=n[5],m=n[6],S=n[7],b=n[8];return t[0]=d*r+h*o+v*u,t[1]=d*a+h*s+v*c,t[2]=d*i+h*l+v*f,t[3]=p*r+g*o+y*u,t[4]=p*a+g*s+y*c,t[5]=p*i+g*l+y*f,t[6]=m*r+S*o+b*u,t[7]=m*a+S*s+b*c,t[8]=m*i+S*l+b*f,t}function VWe(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 BWe(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 $We(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 IWe(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 PWe(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 FWe(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 zWe(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 GWe(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,v=a*l,p=i*o,g=i*s,y=i*l;return t[0]=1-f-v,t[3]=c-y,t[6]=d+g,t[1]=c+y,t[4]=1-u-v,t[7]=h-p,t[2]=d-g,t[5]=h+p,t[8]=1-u-f,t}function UWe(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],v=e[12],p=e[13],g=e[14],y=e[15],m=n*s-r*o,S=n*l-a*o,b=n*u-i*o,x=r*l-a*s,_=r*u-i*s,C=a*u-i*l,T=c*p-f*v,D=c*g-d*v,M=c*y-h*v,E=f*g-d*p,k=f*y-h*p,R=d*y-h*g,O=m*R-S*k+b*E+x*M-_*D+C*T;return O?(O=1/O,t[0]=(s*R-l*k+u*E)*O,t[1]=(l*M-o*R-u*D)*O,t[2]=(o*k-s*M+u*T)*O,t[3]=(a*k-r*R-i*E)*O,t[4]=(n*R-a*M+i*D)*O,t[5]=(r*M-n*k-i*T)*O,t[6]=(p*C-g*_+y*x)*O,t[7]=(g*b-v*C-y*S)*O,t[8]=(v*_-p*b+y*m)*O,t):null}function HWe(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 WWe(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function KWe(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function jWe(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 hq(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 YWe(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 XWe(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 qWe(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 ZWe(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],v=e[3],p=e[4],g=e[5],y=e[6],m=e[7],S=e[8];return Math.abs(n-f)<=Sn*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-d)<=Sn*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(a-h)<=Sn*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(i-v)<=Sn*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(o-p)<=Sn*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(s-g)<=Sn*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-y)<=Sn*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-m)<=Sn*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-S)<=Sn*Math.max(1,Math.abs(c),Math.abs(S))}var QWe=dq,JWe=hq;const e7e=Object.freeze(Object.defineProperty({__proto__:null,add:jWe,adjoint:AWe,clone:kWe,copy:RWe,create:cq,determinant:NWe,equals:ZWe,exactEquals:qWe,frob:KWe,fromMat2d:zWe,fromMat4:n3,fromQuat:GWe,fromRotation:PWe,fromScaling:FWe,fromTranslation:IWe,fromValues:LWe,identity:qd,invert:r3,mul:QWe,multiply:dq,multiplyScalar:YWe,multiplyScalarAndAdd:XWe,normalFromMat4:UWe,projection:HWe,rotate:BWe,scale:$We,set:OWe,str:WWe,sub:JWe,subtract:hq,translate:VWe,transpose:fq},Symbol.toStringTag,{value:"Module"}));function a3(){var t=new Zr(16);return Zr!=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 t7e(t){var e=new Zr(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 na(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 n7e(t,e,n,r,a,i,o,s,l,u,c,f,d,h,v,p){var g=new Zr(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]=v,g[15]=p,g}function r7e(t,e,n,r,a,i,o,s,l,u,c,f,d,h,v,p,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]=v,t[14]=p,t[15]=g,t}function fn(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 Wn(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 Ua(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],v=e[12],p=e[13],g=e[14],y=e[15],m=n*s-r*o,S=n*l-a*o,b=n*u-i*o,x=r*l-a*s,_=r*u-i*s,C=a*u-i*l,T=c*p-f*v,D=c*g-d*v,M=c*y-h*v,E=f*g-d*p,k=f*y-h*p,R=d*y-h*g,O=m*R-S*k+b*E+x*M-_*D+C*T;return O?(O=1/O,t[0]=(s*R-l*k+u*E)*O,t[1]=(a*k-r*R-i*E)*O,t[2]=(p*C-g*_+y*x)*O,t[3]=(d*_-f*C-h*x)*O,t[4]=(l*M-o*R-u*D)*O,t[5]=(n*R-a*M+i*D)*O,t[6]=(g*b-v*C-y*S)*O,t[7]=(c*C-d*b+h*S)*O,t[8]=(o*k-s*M+u*T)*O,t[9]=(r*M-n*k-i*T)*O,t[10]=(v*_-p*b+y*m)*O,t[11]=(f*b-c*_-h*m)*O,t[12]=(s*D-o*E-l*T)*O,t[13]=(n*E-r*D+a*T)*O,t[14]=(p*S-v*x-g*m)*O,t[15]=(c*x-f*S+d*m)*O,t):null}function a7e(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],v=e[12],p=e[13],g=e[14],y=e[15];return t[0]=s*(d*y-h*g)-f*(l*y-u*g)+p*(l*h-u*d),t[1]=-(r*(d*y-h*g)-f*(a*y-i*g)+p*(a*h-i*d)),t[2]=r*(l*y-u*g)-s*(a*y-i*g)+p*(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)+v*(l*h-u*d)),t[5]=n*(d*y-h*g)-c*(a*y-i*g)+v*(a*h-i*d),t[6]=-(n*(l*y-u*g)-o*(a*y-i*g)+v*(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*p)-c*(s*y-u*p)+v*(s*h-u*f),t[9]=-(n*(f*y-h*p)-c*(r*y-i*p)+v*(r*h-i*f)),t[10]=n*(s*y-u*p)-o*(r*y-i*p)+v*(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*p)-c*(s*g-l*p)+v*(s*d-l*f)),t[13]=n*(f*g-d*p)-c*(r*g-a*p)+v*(r*d-a*f),t[14]=-(n*(s*g-l*p)-o*(r*g-a*p)+v*(r*l-a*s)),t[15]=n*(s*d-l*f)-o*(r*d-a*f)+c*(r*l-a*s),t}function i7e(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],v=t[13],p=t[14],g=t[15],y=e*o-n*i,m=e*s-r*i,S=e*l-a*i,b=n*s-r*o,x=n*l-a*o,_=r*l-a*s,C=u*v-c*h,T=u*p-f*h,D=u*g-d*h,M=c*p-f*v,E=c*g-d*v,k=f*g-d*p;return y*k-m*E+S*M+b*D-x*T+_*C}function Yr(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],v=e[11],p=e[12],g=e[13],y=e[14],m=e[15],S=n[0],b=n[1],x=n[2],_=n[3];return t[0]=S*r+b*s+x*f+_*p,t[1]=S*a+b*l+x*d+_*g,t[2]=S*i+b*u+x*h+_*y,t[3]=S*o+b*c+x*v+_*m,S=n[4],b=n[5],x=n[6],_=n[7],t[4]=S*r+b*s+x*f+_*p,t[5]=S*a+b*l+x*d+_*g,t[6]=S*i+b*u+x*h+_*y,t[7]=S*o+b*c+x*v+_*m,S=n[8],b=n[9],x=n[10],_=n[11],t[8]=S*r+b*s+x*f+_*p,t[9]=S*a+b*l+x*d+_*g,t[10]=S*i+b*u+x*h+_*y,t[11]=S*o+b*c+x*v+_*m,S=n[12],b=n[13],x=n[14],_=n[15],t[12]=S*r+b*s+x*f+_*p,t[13]=S*a+b*l+x*d+_*g,t[14]=S*i+b*u+x*h+_*y,t[15]=S*o+b*c+x*v+_*m,t}function pr(t,e,n){var r=n[0],a=n[1],i=n[2],o,s,l,u,c,f,d,h,v,p,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],v=e[8],p=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]=v,t[9]=p,t[10]=g,t[11]=y,t[12]=o*r+c*a+v*i+e[12],t[13]=s*r+f*a+p*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 Nd(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 To(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,v,p,g,y,m,S,b,x,_,C,T,D,M,E,k,R,O,B;return s<Sn?null:(s=1/s,a*=s,i*=s,o*=s,l=Math.sin(n),u=Math.cos(n),c=1-u,f=e[0],d=e[1],h=e[2],v=e[3],p=e[4],g=e[5],y=e[6],m=e[7],S=e[8],b=e[9],x=e[10],_=e[11],C=a*a*c+u,T=i*a*c+o*l,D=o*a*c-i*l,M=a*i*c-o*l,E=i*i*c+u,k=o*i*c+a*l,R=a*o*c+i*l,O=i*o*c-a*l,B=o*o*c+u,t[0]=f*C+p*T+S*D,t[1]=d*C+g*T+b*D,t[2]=h*C+y*T+x*D,t[3]=v*C+m*T+_*D,t[4]=f*M+p*E+S*k,t[5]=d*M+g*E+b*k,t[6]=h*M+y*E+x*k,t[7]=v*M+m*E+_*k,t[8]=f*R+p*O+S*B,t[9]=d*R+g*O+b*B,t[10]=h*R+y*O+x*B,t[11]=v*R+m*O+_*B,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function i3(t,e,n){var r=Math.sin(n),a=Math.cos(n),i=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],d=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*a+u*r,t[5]=o*a+c*r,t[6]=s*a+f*r,t[7]=l*a+d*r,t[8]=u*a-i*r,t[9]=c*a-o*r,t[10]=f*a-s*r,t[11]=d*a-l*r,t}function o3(t,e,n){var r=Math.sin(n),a=Math.cos(n),i=e[0],o=e[1],s=e[2],l=e[3],u=e[8],c=e[9],f=e[10],d=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*a-u*r,t[1]=o*a-c*r,t[2]=s*a-f*r,t[3]=l*a-d*r,t[8]=i*r+u*a,t[9]=o*r+c*a,t[10]=s*r+f*a,t[11]=l*r+d*a,t}function s3(t,e,n){var r=Math.sin(n),a=Math.cos(n),i=e[0],o=e[1],s=e[2],l=e[3],u=e[4],c=e[5],f=e[6],d=e[7];return e!==t&&(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[0]=i*a+u*r,t[1]=o*a+c*r,t[2]=s*a+f*r,t[3]=l*a+d*r,t[4]=u*a-i*r,t[5]=c*a-o*r,t[6]=f*a-s*r,t[7]=d*a-l*r,t}function pq(t,e){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]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function vq(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function gq(t,e,n){var r=n[0],a=n[1],i=n[2],o=Math.hypot(r,a,i),s,l,u;return o<Sn?null:(o=1/o,r*=o,a*=o,i*=o,s=Math.sin(e),l=Math.cos(e),u=1-l,t[0]=r*r*u+l,t[1]=a*r*u+i*s,t[2]=i*r*u-a*s,t[3]=0,t[4]=r*a*u-i*s,t[5]=a*a*u+l,t[6]=i*a*u+r*s,t[7]=0,t[8]=r*i*u+a*s,t[9]=a*i*u-r*s,t[10]=i*i*u+l,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function o7e(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function s7e(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function l7e(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,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 yq(t,e,n){var r=e[0],a=e[1],i=e[2],o=e[3],s=r+r,l=a+a,u=i+i,c=r*s,f=r*l,d=r*u,h=a*l,v=a*u,p=i*u,g=o*s,y=o*l,m=o*u;return t[0]=1-(h+p),t[1]=f+m,t[2]=d-y,t[3]=0,t[4]=f-m,t[5]=1-(c+p),t[6]=v+g,t[7]=0,t[8]=d+y,t[9]=v-g,t[10]=1-(c+h),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function u7e(t,e){var n=new Zr(3),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=r*r+a*a+i*i+o*o;return f>0?(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),yq(t,e,n),t}function c7e(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function mq(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 Sq(t,e){var n=new Zr(3);mq(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,v=e[10]*i,p=o+c+v,g=0;return p>0?(g=Math.sqrt(p+1)*2,t[3]=.25*g,t[0]=(f-h)/g,t[1]=(d-l)/g,t[2]=(s-u)/g):o>c&&o>v?(g=Math.sqrt(1+o-c-v)*2,t[3]=(f-h)/g,t[0]=.25*g,t[1]=(s+u)/g,t[2]=(d+l)/g):c>v?(g=Math.sqrt(1+c-o-v)*2,t[3]=(d-l)/g,t[0]=(s+u)/g,t[1]=.25*g,t[2]=(f+h)/g):(g=Math.sqrt(1+v-o-c)*2,t[3]=(s-u)/g,t[0]=(d+l)/g,t[1]=(f+h)/g,t[2]=.25*g),t}function bq(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,v=i*u,p=i*c,g=o*c,y=s*l,m=s*u,S=s*c,b=r[0],x=r[1],_=r[2];return t[0]=(1-(v+g))*b,t[1]=(d+S)*b,t[2]=(h-m)*b,t[3]=0,t[4]=(d-S)*x,t[5]=(1-(f+g))*x,t[6]=(p+y)*x,t[7]=0,t[8]=(h+m)*_,t[9]=(p-y)*_,t[10]=(1-(f+v))*_,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function f7e(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,v=i*f,p=o*c,g=o*f,y=s*f,m=l*u,S=l*c,b=l*f,x=r[0],_=r[1],C=r[2],T=a[0],D=a[1],M=a[2],E=(1-(p+y))*x,k=(h+b)*x,R=(v-S)*x,O=(h-b)*_,B=(1-(d+y))*_,$=(g+m)*_,V=(v+S)*C,F=(g-m)*C,L=(1-(d+p))*C;return t[0]=E,t[1]=k,t[2]=R,t[3]=0,t[4]=O,t[5]=B,t[6]=$,t[7]=0,t[8]=V,t[9]=F,t[10]=L,t[11]=0,t[12]=n[0]+T-(E*T+O*D+V*M),t[13]=n[1]+D-(k*T+B*D+F*M),t[14]=n[2]+M-(R*T+$*D+L*M),t[15]=1,t}function l3(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,v=a*l,p=i*o,g=i*s,y=i*l;return t[0]=1-f-v,t[1]=c+y,t[2]=d-g,t[3]=0,t[4]=c-y,t[5]=1-u-v,t[6]=h+p,t[7]=0,t[8]=d+g,t[9]=h-p,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function d7e(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 wq(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 h7e=wq;function p7e(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 v7e(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 _q(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 xq=_q;function g7e(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 Cq(t,e,n,r){var a,i,o,s,l,u,c,f,d,h,v=e[0],p=e[1],g=e[2],y=r[0],m=r[1],S=r[2],b=n[0],x=n[1],_=n[2];return Math.abs(v-b)<Sn&&Math.abs(p-x)<Sn&&Math.abs(g-_)<Sn?fn(t):(c=v-b,f=p-x,d=g-_,h=1/Math.hypot(c,f,d),c*=h,f*=h,d*=h,a=m*d-S*f,i=S*c-y*d,o=y*f-m*c,h=Math.hypot(a,i,o),h?(h=1/h,a*=h,i*=h,o*=h):(a=0,i=0,o=0),s=f*o-d*i,l=d*a-c*o,u=c*i-f*a,h=Math.hypot(s,l,u),h?(h=1/h,s*=h,l*=h,u*=h):(s=0,l=0,u=0),t[0]=a,t[1]=s,t[2]=c,t[3]=0,t[4]=i,t[5]=l,t[6]=f,t[7]=0,t[8]=o,t[9]=u,t[10]=d,t[11]=0,t[12]=-(a*v+i*p+o*g),t[13]=-(s*v+l*p+u*g),t[14]=-(c*v+f*p+d*g),t[15]=1,t)}function y7e(t,e,n,r){var a=e[0],i=e[1],o=e[2],s=r[0],l=r[1],u=r[2],c=a-n[0],f=i-n[1],d=o-n[2],h=c*c+f*f+d*d;h>0&&(h=1/Math.sqrt(h),c*=h,f*=h,d*=h);var v=l*d-u*f,p=u*c-s*d,g=s*f-l*c;return h=v*v+p*p+g*g,h>0&&(h=1/Math.sqrt(h),v*=h,p*=h,g*=h),t[0]=v,t[1]=p,t[2]=g,t[3]=0,t[4]=f*g-d*p,t[5]=d*v-c*g,t[6]=c*p-f*v,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 m7e(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 S7e(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 b7e(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 Tq(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 w7e(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 _7e(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 x7e(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 C7e(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],v=t[12],p=t[13],g=t[14],y=t[15],m=e[0],S=e[1],b=e[2],x=e[3],_=e[4],C=e[5],T=e[6],D=e[7],M=e[8],E=e[9],k=e[10],R=e[11],O=e[12],B=e[13],$=e[14],V=e[15];return Math.abs(n-m)<=Sn*Math.max(1,Math.abs(n),Math.abs(m))&&Math.abs(r-S)<=Sn*Math.max(1,Math.abs(r),Math.abs(S))&&Math.abs(a-b)<=Sn*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(i-x)<=Sn*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-_)<=Sn*Math.max(1,Math.abs(o),Math.abs(_))&&Math.abs(s-C)<=Sn*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(l-T)<=Sn*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(u-D)<=Sn*Math.max(1,Math.abs(u),Math.abs(D))&&Math.abs(c-M)<=Sn*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(f-E)<=Sn*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(d-k)<=Sn*Math.max(1,Math.abs(d),Math.abs(k))&&Math.abs(h-R)<=Sn*Math.max(1,Math.abs(h),Math.abs(R))&&Math.abs(v-O)<=Sn*Math.max(1,Math.abs(v),Math.abs(O))&&Math.abs(p-B)<=Sn*Math.max(1,Math.abs(p),Math.abs(B))&&Math.abs(g-$)<=Sn*Math.max(1,Math.abs(g),Math.abs($))&&Math.abs(y-V)<=Sn*Math.max(1,Math.abs(y),Math.abs(V))}var Ok=Yr,T7e=Tq;const Ak=Object.freeze(Object.defineProperty({__proto__:null,add:b7e,adjoint:a7e,clone:t7e,copy:na,create:a3,determinant:i7e,equals:C7e,exactEquals:x7e,frob:S7e,fromQuat:l3,fromQuat2:u7e,fromRotation:gq,fromRotationTranslation:yq,fromRotationTranslationScale:bq,fromRotationTranslationScaleOrigin:f7e,fromScaling:vq,fromTranslation:pq,fromValues:n7e,fromXRotation:o7e,fromYRotation:s7e,fromZRotation:l7e,frustum:d7e,getRotation:Sq,getScaling:mq,getTranslation:c7e,identity:fn,invert:Ua,lookAt:Cq,mul:Ok,multiply:Yr,multiplyScalar:w7e,multiplyScalarAndAdd:_7e,ortho:xq,orthoNO:_q,orthoZO:g7e,perspective:h7e,perspectiveFromFieldOfView:v7e,perspectiveNO:wq,perspectiveZO:p7e,rotate:To,rotateX:i3,rotateY:o3,rotateZ:s3,scale:Nd,set:r7e,str:m7e,sub:T7e,subtract:Tq,targetTo:y7e,translate:pr,transpose:Wn},Symbol.toStringTag,{value:"Module"}));function Eq(){var t=new Zr(3);return Zr!=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 EF(t,e,n){var r=new Zr(3);return r[0]=t,r[1]=e,r[2]=n,r}function Ts(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function jg(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function zu(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function Tu(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function E7e(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function Ju(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 u3(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Tp(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 En(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 MF(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function DF(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)<=Sn*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-o)<=Sn*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(a-s)<=Sn*Math.max(1,Math.abs(a),Math.abs(s))}var Vk=zu,Mq=Nk;(function(){var t=Eq();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;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],i(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}})();function M7e(){var t=new Zr(4);return Zr!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function D7e(t,e,n,r){var a=new Zr(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a}function k7e(t,e){var n=e[0],r=e[1],a=e[2],i=e[3],o=n*n+r*r+a*a+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=a*o,t[3]=i*o,t}function I1(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=M7e();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;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],t[3]=e[s+3],i(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2],e[s+3]=t[3];return e}})();function Vd(){var t=new Zr(4);return Zr!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function c3(t,e,n){n=n*.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function R7e(t,e){var n=Math.acos(e[3])*2,r=Math.sin(n/2);return r>Sn?(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 kF(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 Qb(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,v,p,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>Sn?(d=Math.acos(h),v=Math.sin(d),p=Math.sin((1-r)*d)/v,g=Math.sin(r*d)/v):(p=1-r,g=r),t[0]=p*a+g*l,t[1]=p*i+g*u,t[2]=p*o+g*c,t[3]=p*s+g*f,t}function L7e(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function O7e(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 RF=D7e,Dq=k7e;(function(){var t=Eq(),e=EF(1,0,0),n=EF(0,1,0);return function(r,a,i){var o=u3(a,i);return o<-.999999?(Tp(t,e,a),Mq(t)<1e-6&&Tp(t,n,a),Ju(t,t),c3(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Tp(t,a,i),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,Dq(r,r))}})();(function(){var t=Vd(),e=Vd();return function(n,r,a,i,o,s){return Qb(t,r,o,s),Qb(e,a,i,s),Qb(n,t,e,2*s*(1-s)),n}})();(function(){var t=cq();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],Dq(e,O7e(e,t))}})();const{vtkErrorMacro:A7e}=j,N7e=["Build","Render"];function V7e(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<e.children.length;o++)e.children[o].traverse(r);t.apply(r,!1)},t.apply=(r,a)=>{const i=t[r.getOperation()];i&&i(a,r)},t.getViewNodeFor=r=>{if(e.renderable===r)return t;for(let a=0;a<e.children.length;++a){const o=e.children[a].getViewNodeFor(r);if(o)return o}},t.getFirstAncestorOfType=r=>e._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<r.length;++a){const i=r[a],o=e._renderableChildMap.get(i);if(o!==void 0)o.setVisited(!0);else{const s=t.createViewNode(i);s&&(s.setParent(t),s.setVisited(!0),e._renderableChildMap.set(i,s),e.children.push(s))}}},t.addMissingChildren=r=>{if(!(!r||!r.length))for(let a=0;a<r.length;++a){const i=r[a];e.children.indexOf(i)===-1&&(i.setParent(t),e.children.push(i)),i.setVisited(!0)}},t.prepareNodes=()=>{for(let r=0;r<e.children.length;++r)e.children[r].setVisited(!1)},t.setVisited=r=>{e.visited=r},t.removeUnusedNodes=()=>{let r=0;for(let a=0;a<e.children.length;++a){const i=e.children[a];if(i.getVisited())e.children[r++]=i,i.setVisited(!1);else{const s=i.getRenderable();s&&e._renderableChildMap.delete(s),i.delete()}}e.children.length=r},t.createViewNode=r=>{if(!e.myFactory)return A7e("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;r<e.children.length;r++)e.children[r].delete();n()}}const B7e={renderable:null,myFactory:null,children:[],visited:!1};function kq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,B7e,n),j.obj(t,e),j.event(t,e,"event"),e._renderableChildMap=new Map,j.get(t,e,["visited"]),j.setGet(t,e,["_parent","renderable","myFactory"]),j.getArray(t,e,["children"]),j.moveToProtected(t,e,["parent"]),V7e(t,e)}const $7e=j.newInstance(kq,"vtkViewNode");var dr={newInstance:$7e,extend:kq,PASS_TYPES:N7e};function I7e(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 P7e={};function Rq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,P7e,n),j.obj(t,e),I7e(t,e)}const F7e=j.newInstance(Rq,"vtkViewNodeFactory");var Lq={newInstance:F7e,extend:Rq};const Oq=Object.create(null);function us(t,e){Oq[t]=e}function z7e(t,e){e.classHierarchy.push("vtkOpenGLViewNodeFactory")}const G7e={};function Aq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,G7e,n),e.overrides=Oq,Lq.extend(t,e,n),z7e(t,e)}const U7e=j.newInstance(Aq,"vtkOpenGLViewNodeFactory");var H7e={newInstance:U7e,extend:Aq};function W7e(t,e){e.classHierarchy.push("vtkOpenGLCamera"),t.buildPass=n=>{n&&(e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent(),e.context=e._openGLRenderWindow.getContext())},t.opaquePass=n=>{if(n){const r=e._openGLRenderer.getTiledSizeAndOrigin();e.context.viewport(r.lowerLeftU,r.lowerLeftV,r.usize,r.vsize),e.context.scissor(r.lowerLeftU,r.lowerLeftV,r.usize,r.vsize)}},t.translucentPass=t.opaquePass,t.zBufferPass=t.opaquePass,t.opaqueZBufferPass=t.opaquePass,t.volumePass=t.opaquePass,t.getKeyMatrices=n=>{if(n!==e.lastRenderer||e._openGLRenderWindow.getMTime()>e.keyMatrixTime.getMTime()||t.getMTime()>e.keyMatrixTime.getMTime()||n.getMTime()>e.keyMatrixTime.getMTime()||e.renderable.getMTime()>e.keyMatrixTime.getMTime()){na(e.keyMatrices.wcvc,e.renderable.getViewMatrix()),n3(e.keyMatrices.normalMatrix,e.keyMatrices.wcvc),r3(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix),Wn(e.keyMatrices.wcvc,e.keyMatrices.wcvc);const r=e._openGLRenderer.getAspectRatio();na(e.keyMatrices.vcpc,e.renderable.getProjectionMatrix(r,-1,1)),Wn(e.keyMatrices.vcpc,e.keyMatrices.vcpc),Yr(e.keyMatrices.wcpc,e.keyMatrices.vcpc,e.keyMatrices.wcvc),e.keyMatrixTime.modified(),e.lastRenderer=n}return e.keyMatrices}}const K7e={context:null,lastRenderer:null,keyMatrixTime:null,keyMatrices:null};function j7e(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,K7e,n),dr.extend(t,e,n),e.keyMatrixTime={},qr(e.keyMatrixTime),e.keyMatrices={normalMatrix:new Float64Array(9),vcpc:new Float64Array(16),wcvc:new Float64Array(16),wcpc:new Float64Array(16)},zr(t,e,["context","keyMatrixTime"]),W7e(t,e)}const Y7e=Yn(j7e);us("vtkCamera",Y7e);const{vtkDebugMacro:X7e}=rl;function q7e(t,e){e.classHierarchy.push("vtkOpenGLRenderer"),t.buildPass=n=>{if(n){if(!e.renderable)return;t.updateLights(),t.prepareNodes(),t.addMissingNode(e.renderable.getActiveCamera()),t.addMissingNodes(e.renderable.getViewPropsWithNestedProps()),t.removeUnusedNodes()}},t.updateLights=()=>{let n=0;const r=e.renderable.getLightsByReference();for(let a=0;a<r.length;++a)r[a].getSwitch()>0&&n++;return n||(X7e("No lights are on, creating one."),e.renderable.createLight()),n},t.zBufferPass=n=>{if(n){let r=0;const a=e.context;e.renderable.getTransparent()||(e.context.clearColor(1,0,0,1),r|=a.COLOR_BUFFER_BIT),e.renderable.getPreserveDepthBuffer()||(a.clearDepth(1),r|=a.DEPTH_BUFFER_BIT,e.context.depthMask(!0));const i=t.getTiledSizeAndOrigin();a.enable(a.SCISSOR_TEST),a.scissor(i.lowerLeftU,i.lowerLeftV,i.usize,i.vsize),a.viewport(i.lowerLeftU,i.lowerLeftV,i.usize,i.vsize),a.colorMask(!0,!0,!0,!0),r&&a.clear(r),a.enable(a.DEPTH_TEST)}},t.opaqueZBufferPass=n=>t.zBufferPass(n),t.cameraPass=n=>{n&&t.clear()},t.getAspectRatio=()=>{const n=e._parent.getSizeByReference(),r=e.renderable.getViewportByReference();return n[0]*(r[2]-r[0])/((r[3]-r[1])*n[1])},t.getTiledSizeAndOrigin=()=>{const n=e.renderable.getViewportByReference(),r=[0,0,1,1],a=n[0]-r[0],i=n[1]-r[1],o=e._parent.normalizedDisplayToDisplay(a,i),s=Math.round(o[0]),l=Math.round(o[1]),u=n[2]-r[0],c=n[3]-r[1],f=e._parent.normalizedDisplayToDisplay(u,c);let d=Math.round(f[0])-s,h=Math.round(f[1])-l;return d<0&&(d=0),h<0&&(h=0),{usize:d,vsize:h,lowerLeftU:s,lowerLeftV:l}},t.clear=()=>{let n=0;const r=e.context;if(!e.renderable.getTransparent()){const i=e.renderable.getBackgroundByReference();e.context.clearColor(i[0],i[1],i[2],i[3]),n|=r.COLOR_BUFFER_BIT}e.renderable.getPreserveDepthBuffer()||(r.clearDepth(1),n|=r.DEPTH_BUFFER_BIT,e.context.depthMask(!0)),r.colorMask(!0,!0,!0,!0);const a=t.getTiledSizeAndOrigin();r.enable(r.SCISSOR_TEST),r.scissor(a.lowerLeftU,a.lowerLeftV,a.usize,a.vsize),r.viewport(a.lowerLeftU,a.lowerLeftV,a.usize,a.vsize),n&&r.clear(n),r.enable(r.DEPTH_TEST)},t.releaseGraphicsResources=()=>{e.selector!==null&&e.selector.releaseGraphicsResources(),e.renderable&&e.renderable.getViewProps().forEach(n=>{n.modified()})},t.setOpenGLRenderWindow=n=>{e._openGLRenderWindow!==n&&(t.releaseGraphicsResources(),e._openGLRenderWindow=n,e.context=null,n&&(e.context=e._openGLRenderWindow.getContext()))}}const Z7e={context:null,_openGLRenderWindow:null,selector:null};function Q7e(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Z7e,n),dr.extend(t,e,n),Ja(t,e,["shaderCache"]),zr(t,e,["selector"]),Vm(t,e,["openGLRenderWindow"]),q7e(t,e)}const J7e=Yn(Q7e,"vtkOpenGLRenderer");us("vtkRenderer",J7e);function e9e(t,e){e.classHierarchy.push("vtkOpenGLActor"),t.buildPass=n=>{if(n){e._openGLRenderWindow=t.getFirstAncestorOfType("vtkOpenGLRenderWindow"),e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e.context=e._openGLRenderWindow.getContext(),t.prepareNodes(),t.addMissingNodes(e.renderable.getTextures()),t.addMissingNode(e.renderable.getMapper()),t.removeUnusedNodes(),e.ogltextures=null,e.activeTextures=null;for(let r=0;r<e.children.length;r++){const a=e.children[r];a.isA("vtkOpenGLTexture")?(e.ogltextures||(e.ogltextures=[]),e.ogltextures.push(a)):e.oglmapper=a}}},t.traverseZBufferPass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||e._openGLRenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.oglmapper.traverse(n),t.apply(n,!1))},t.traverseOpaqueZBufferPass=n=>t.traverseOpaquePass(n),t.traverseOpaquePass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||!e.renderable.getIsOpaque()||e._openGLRenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.oglmapper.traverse(n),t.apply(n,!1))},t.traverseTranslucentPass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||e.renderable.getIsOpaque()||e._openGLRenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.oglmapper.traverse(n),t.apply(n,!1))},t.activateTextures=()=>{if(e.ogltextures){e.activeTextures=[];for(let n=0;n<e.ogltextures.length;n++){const r=e.ogltextures[n];r.render(),r.getHandle()&&e.activeTextures.push(r)}}},t.queryPass=(n,r)=>{if(n){if(!e.renderable||!e.renderable.getVisibility())return;e.renderable.getIsOpaque()?r.incrementOpaqueActorCount():r.incrementTranslucentActorCount()}},t.zBufferPass=(n,r)=>t.opaquePass(n,r),t.opaqueZBufferPass=(n,r)=>t.opaquePass(n,r),t.opaquePass=(n,r)=>{if(n)e.context.depthMask(!0),t.activateTextures();else if(e.activeTextures)for(let a=0;a<e.activeTextures.length;a++)e.activeTextures[a].deactivate()},t.translucentPass=(n,r)=>{if(n)e.context.depthMask(!1),t.activateTextures();else if(e.activeTextures)for(let a=0;a<e.activeTextures.length;a++)e.activeTextures[a].deactivate()},t.getKeyMatrices=()=>(e.renderable.getMTime()>e.keyMatrixTime.getMTime()&&(e.renderable.computeMatrix(),na(e.keyMatrices.mcwc,e.renderable.getMatrix()),Wn(e.keyMatrices.mcwc,e.keyMatrices.mcwc),e.renderable.getIsIdentity()?qd(e.keyMatrices.normalMatrix):(n3(e.keyMatrices.normalMatrix,e.keyMatrices.mcwc),r3(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix),fq(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix)),e.keyMatrixTime.modified()),e.keyMatrices)}const t9e={context:null,keyMatrixTime:null,keyMatrices:null,activeTextures:null};function n9e(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,t9e,n),dr.extend(t,e,n),e.keyMatrixTime={},qr(e.keyMatrixTime,{mtime:0}),e.keyMatrices={normalMatrix:qd(new Float64Array(9)),mcwc:fn(new Float64Array(16))},zr(t,e,["context"]),Ja(t,e,["activeTextures"]),e9e(t,e)}const r9e=Yn(n9e);us("vtkActor",r9e);function a9e(t,e){e.classHierarchy.push("vtkOpenGLActor2D"),t.buildPass=n=>{if(n){if(!e.renderable)return;e._openGLRenderWindow=t.getFirstAncestorOfType("vtkOpenGLRenderWindow"),e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e.context=e._openGLRenderWindow.getContext(),t.prepareNodes(),t.addMissingNodes(e.renderable.getTextures()),t.addMissingNode(e.renderable.getMapper()),t.removeUnusedNodes(),e.ogltextures=null,e.activeTextures=null;for(let r=0;r<e.children.length;r++){const a=e.children[r];a.isA("vtkOpenGLTexture")?(e.ogltextures||(e.ogltextures=[]),e.ogltextures.push(a)):e.oglmapper=a}}},t.queryPass=(n,r)=>{if(n){if(!e.renderable||!e.renderable.getVisibility())return;r.incrementOverlayActorCount()}},t.traverseOpaquePass=n=>{!e.oglmapper||!e.renderable||!e.renderable.getNestedVisibility()||!e.renderable.getIsOpaque()||e._openGLRenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.oglmapper.traverse(n),t.apply(n,!1))},t.traverseTranslucentPass=n=>{!e.oglmapper||!e.renderable||!e.renderable.getNestedVisibility()||e.renderable.getIsOpaque()||e._openGLRenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.oglmapper.traverse(n),t.apply(n,!1))},t.traverseOverlayPass=n=>{!e.oglmapper||!e.renderable||!e.renderable.getNestedVisibility()||e._openGLRenderer.getSelector()&&!e.renderable.getNestedPickable||(t.apply(n,!0),e.oglmapper.traverse(n),t.apply(n,!1))},t.activateTextures=()=>{if(e.ogltextures){e.activeTextures=[];for(let n=0;n<e.ogltextures.length;n++){const r=e.ogltextures[n];r.render(),r.getHandle()&&e.activeTextures.push(r)}}},t.opaquePass=(n,r)=>{if(n)e.context.depthMask(!0),t.activateTextures();else if(e.activeTextures)for(let a=0;a<e.activeTextures.length;a++)e.activeTextures[a].deactivate()},t.translucentPass=(n,r)=>{if(n)e.context.depthMask(!1),t.activateTextures();else if(e.activeTextures)for(let a=0;a<e.activeTextures.length;a++)e.activeTextures[a].deactivate()},t.overlayPass=(n,r)=>{if(n)e.context.depthMask(!0),t.activateTextures();else if(e.activeTextures)for(let a=0;a<e.activeTextures.length;a++)e.activeTextures[a].deactivate()}}const i9e={context:null,activeTextures:null};function o9e(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,i9e,n),dr.extend(t,e,n),zr(t,e,["context"]),Ja(t,e,["activeTextures"]),a9e(t,e)}const s9e=Yn(o9e);us("vtkActor2D",s9e);var f3={exports:{}};f3.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<c.length;f++){l+=c.charCodeAt(f);var d=.02519603282416938*l;l=d>>>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})(gr,t,!1)})(f3);var l9e=f3.exports,d3={exports:{}};d3.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<u.length+64;c++)l.x^=u.charCodeAt(c)|0,l.next()}function i(s,l){return l.x=s.x,l.y=s.y,l.z=s.z,l.w=s.w,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,v=(d+h)/(1<<21);while(v===0);return v},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})(gr,t,!1)})(d3);var u9e=d3.exports,h3={exports:{}};h3.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<u.length+64;c++)l.x^=u.charCodeAt(c)|0,c==u.length&&(l.d=l.x<<10^l.x>>>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,v=(d+h)/(1<<21);while(v===0);return v},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})(gr,t,!1)})(h3);var c9e=h3.exports,p3={exports:{}};p3.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;d<f.length;++d)h[d&7]=h[d&7]<<15^f.charCodeAt(d)+h[d+1&7]<<13;for(;h.length<8;)h.push(0);for(d=0;d<8&&h[d]===0;++d);for(d==8?h[7]=-1:h[d],c.x=h,c.i=0,d=256;d>0;--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,v=(d+h)/(1<<21);while(v===0);return v},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})(gr,t,!1)})(p3);var f9e=p3.exports,v3={exports:{}};v3.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,v;return l.w=c=c+1640531527|0,v=f[d+34&127],h=f[d=d+1&127],v^=v<<13,h^=h<<17,v^=v>>>15,h^=h>>>12,v=f[d]=v^h,l.i=d,v+(c^c>>>16)|0};function u(c,f){var d,h,v,p,g,y=[],m=128;for(f===(f|0)?(h=f,f=null):(f=f+"\0",h=0,m=Math.max(m,f.length)),v=0,p=-32;p<m;++p)f&&(h^=f.charCodeAt((p+32)%f.length)),p===0&&(g=h),h^=h<<10,h^=h>>>15,h^=h<<4,h^=h>>>13,p>=0&&(g=g+1640531527|0,d=y[p&127]^=h+g,v=d==0?v+1:0);for(v>=128&&(y[(f&&f.length||0)&127]=-1),v=127,p=4*128;p>0;--p)h=y[v+34&127],d=y[v=v+1&127],h^=h<<13,d^=d<<17,h^=h>>>15,d^=d>>>12,y[v]=h^d;c.w=g,c.X=y,c.i=v}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,v=(d+h)/(1<<21);while(v===0);return v},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})(gr,t,!1)})(v3);var d9e=v3.exports,g3={exports:{}};g3.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,v=l.a;return f=f<<25^f>>>7^d,d=d-h|0,h=h<<24^h>>>8^v,v=v-f|0,l.b=f=f<<20^f>>>12^d,l.c=d=d-h|0,l.d=h<<16^d>>>16^v,l.a=v-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<u.length+20;c++)l.b^=u.charCodeAt(c)|0,l.next()}function i(s,l){return l.a=s.a,l.b=s.b,l.c=s.c,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,v=(d+h)/(1<<21);while(v===0);return v},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})(gr,t,!1)})(g3);var h9e=g3.exports,Nq={exports:{}};const p9e={},v9e=Object.freeze(Object.defineProperty({__proto__:null,default:p9e},Symbol.toStringTag,{value:"Module"})),g9e=Sfe(v9e);(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(b,x,_){var C=[];x=x==!0?{entropy:!0}:x||{};var T=y(g(x.entropy?[b,S(n)]:b??m(),3),C),D=new v(C),M=function(){for(var E=D.g(i),k=l,R=0;E<u;)E=(E+R)*a,k*=a,R=D.g(1);for(;E>=c;)E/=2,k/=2,R>>>=1;return(E+R)/k};return M.int32=function(){return D.g(4)|0},M.quick=function(){return D.g(4)/4294967296},M.double=M,y(S(D.S),n),(x.pass||_||function(E,k,R,O){return O&&(O.S&&p(O,D),E.state=function(){return p(D,{})}),R?(r[s]=E,k):E})(M,T,"global"in x?x.global:this==r,x.state)}function v(b){var x,_=b.length,C=this,T=0,D=C.i=C.j=0,M=C.S=[];for(_||(b=[_++]);T<a;)M[T]=T++;for(T=0;T<a;T++)M[T]=M[D=f&D+b[T%_]+(x=M[T])],M[D]=x;(C.g=function(E){for(var k,R=0,O=C.i,B=C.j,$=C.S;E--;)k=$[O=f&O+1],R=R*a+$[f&($[O]=$[B=f&B+k])+($[B]=k)];return C.i=O,C.j=B,R})(a)}function p(b,x){return x.i=b.i,x.j=b.j,x.S=b.S.slice(),x}function g(b,x){var _=[],C=typeof b,T;if(x&&C=="object")for(T in b)try{_.push(g(b[T],x-1))}catch{}return _.length?_:C=="string"?b:b+"\0"}function y(b,x){for(var _=b+"",C,T=0;T<_.length;)x[f&T]=f&(C^=x[f&T]*19)+_.charCodeAt(T++);return S(x)}function m(){try{var b;return d&&(b=d.randomBytes)?b=b(a):(b=new Uint8Array(a),(e.crypto||e.msCrypto).getRandomValues(b)),S(b)}catch{var x=e.navigator,_=x&&x.plugins;return[+new Date,e,_,e.screen,S(n)]}}function S(b){return String.fromCharCode.apply(0,b)}if(y(r.random(),n),t.exports){t.exports=h;try{d=g9e}catch{}}else r["seed"+s]=h})(typeof self<"u"?self:gr,[],Math)})(Nq);var y9e=Nq.exports,m9e=l9e,S9e=u9e,b9e=c9e,w9e=f9e,_9e=d9e,x9e=h9e,Rv=y9e;Rv.alea=m9e;Rv.xor128=S9e;Rv.xorwow=b9e;Rv.xorshift7=w9e;Rv.xor4096=_9e;Rv.tychei=x9e;const C9e=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T9e=1e-6,E9e=1e-12,{vtkErrorMacro:rDt,vtkWarningMacro:LF}=j;function Bk(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3;const e=Array(t);for(let n=0;n<t;++n)e[n]=0;return e}function hr(t){return t/180*Math.PI}function Dy(t){return t*180/Math.PI}const{round:P1,floor:M9e,ceil:aDt,min:iDt,max:oDt}=Math;function Vo(t){let e=1;for(;e<t;)e*=2;return e}function F1(t){return t===Vo(t)}function ky(t,e,n){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n[2]=t[2]+e[2],n}function Sa(t,e,n){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n[2]=t[2]-e[2],n}function OF(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 Ol(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 ip(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;r<e;r++)n+=t[r]*t[r];return Math.sqrt(n)}}}function Fl(t){const e=ip(t);return e!==0&&(t[0]/=e,t[1]/=e,t[2]/=e),e}function Oo(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])+(t[2]-e[2])*(t[2]-e[2])}function D9e(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function k9e(t){const e=D9e(t);return e!==0&&(t[0]/=e,t[1]/=e),e}function Jb(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.length===2?e[0][0]*e[1][1]-e[1][0]*e[0][1]:e.length===4?e[0]*e[3]-e[1]*e[2]:Number.NaN}function R9e(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:T9e;if(t.length!==e.length)return!1;function r(a,i){return Math.abs(a-e[i])<=n}return t.every(r)}const Vq=R9e;function n2(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 AF(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]=n2(t[0],n),e[1]=n2(t[1],n),e[2]=n2(t[2],n),e}function L9e(t,e,n){let r,a,i,o,s=0,l,u,c;const f=Bk(n);for(r=0;r<n;r++){for(o=0,a=0;a<n;a++)(c=Math.abs(t[r*n+a]))>o&&(o=c);if(o===0)return LF("Unable to factor linear system"),0;f[r]=1/o}for(a=0;a<n;a++){for(r=0;r<a;r++){for(l=t[r*n+a],i=0;i<r;i++)l-=t[r*n+i]*t[i*n+a];t[r*n+a]=l}for(o=0,r=a;r<n;r++){for(l=t[r*n+a],i=0;i<a;i++)l-=t[r*n+i]*t[i*n+a];t[r*n+a]=l,(u=f[r]*Math.abs(l))>=o&&(o=u,s=r)}if(a!==s){for(i=0;i<n;i++)u=t[s*n+i],t[s*n+i]=t[a*n+i],t[a*n+i]=u;f[s]=f[a]}if(e[a]=s,Math.abs(t[a*n+a])<=E9e)return LF("Unable to factor linear system"),0;if(a!==n-1)for(u=1/t[a*n+a],r=a+1;r<n;r++)t[r*n+a]*=u}return 1}function O9e(t,e,n,r){let a,i,o,s,l;for(o=-1,a=0;a<r;a++){if(s=e[a],l=n[s],n[s]=n[a],o>=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;i<r;i++)l-=t[a*r+i]*n[i];n[a]=l/t[a*r+a]}}function A9e(t,e,n){if(n===2){const a=Bk(2),i=Jb(t[0],t[1],t[2],t[3]);return i===0?0:(a[0]=(t[3]*e[0]-t[1]*e[1])/i,a[1]=(-(t[2]*e[0])+t[0]*e[1])/i,e[0]=a[0],e[1]=a[1],1)}if(n===1)return t[0]===0?0:(e[0]/=t[0],1);const r=Bk(n);return L9e(t,r,n)===0?0:(O9e(t,r,e,n),1)}function z1(t,e){let n,r;const[a,i,o]=t,s=1/3,l=1/6,u=2/3;let c=a,f=a;i>c?c=i:i<f&&(f=i),o>c?c=o:o<f&&(f=o);const d=c;d>0?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 Hh(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 N9e(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 V9e(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 B9e(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;l<o&&(l=o),l<s&&(l=s),l>1&&(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 $9e(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 op(t,e){const n=[0,0,0];$9e(t,n),V9e(n,e)}function $k(t,e){const n=[0,0,0];N9e(t,n),B9e(n,e)}function y3(t){return t[0]=1,t[1]=-1,t[2]=1,t[3]=-1,t[4]=1,t[5]=-1,t}function r2(t){return!(t[1]-t[0]<0)}function a2(t,e,n){return t<e?e:t>n?n:t}function NF(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0,0,0];return r[0]=a2(t[0],e[0],n[0]),r[1]=a2(t[1],e[1],n[1]),r[2]=a2(t[2],e[2],n[2]),r}const I9e=t=>!Number.isFinite(t),{isFinite:sDt,isNaN:P9e}=Number,s_=P9e;function m3(){return[].concat([Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE])}const Ik=1e-6,Bq="coincide",$q="disjoint";function F9e(t,e,n){return t[0]*(n[0]-e[0])+t[1]*(n[1]-e[1])+t[2]*(n[2]-e[2])}function Iq(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 Pq(t,e,n,r){const a=[];Sa(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 Fq(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 zq(t,e,n,r){const a=[];Sa(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 Gq(t,e,n,r){const a={intersection:!1,betweenPoints:!1,t:Number.MAX_VALUE,x:[]},i=[],o=[];Sa(e,t,i),Sa(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*Ik:c=s*Ik,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 Uq(t,e,n,r){const a={intersection:!1,l0:[],l1:[],error:null},i=[];Ol(e,r,i);const o=i.map(f=>Math.abs(f));if(o[0]+o[1]+o[2]<Ik){const f=[];return Sa(t,n,f),dn(e,f)===0?a.error=Bq:a.error=$q,a}let s;o[0]>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,ky(l,i,a.l1),a.intersection=!0,a}const z9e={evaluate:F9e,distanceToPlane:Iq,projectPoint:Pq,projectVector:Fq,generalizedProjectPoint:zq,intersectWithLine:Gq,intersectWithPlane:Uq,DISJOINT:$q,COINCIDE:Bq};function G9e(t,e){e.classHierarchy.push("vtkPlane"),t.distanceToPlane=n=>Iq(n,e.origin,e.normal),t.projectPoint=(n,r)=>{Pq(n,e.origin,e.normal,r)},t.projectVector=(n,r)=>Fq(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)=>{zq(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)=>Gq(n,r,e.origin,e.normal),t.intersectWithPlane=(n,r)=>Uq(n,r,e.origin,e.normal)}const U9e={normal:[0,0,1],origin:[0,0,0]};function Hq(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,U9e,n),j.obj(t,e),j.setGetArray(t,e,["normal","origin"],3),G9e(t,e)}const H9e=j.newInstance(Hq,"vtkPlane");var gc={newInstance:H9e,extend:Hq,...z9e};const fC=[Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE,Number.MAX_VALUE,-Number.MAX_VALUE];function Wq(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 zl(t){return(t==null?void 0:t.length)>=6&&t[0]<=t[1]&&t[2]<=t[3]&&t[4]<=t[5]}function S3(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 b3(t){return S3(t,fC)}function l_(t,e,n,r){const[a,i,o,s,l,u]=t;return t[0]=a<e?a:e,t[1]=i>e?i:e,t[2]=o<n?o:n,t[3]=s>n?s:n,t[4]=l<r?l:r,t[5]=u>r?u:r,t}function w3(t,e){if(e.length===0)return t;if(Array.isArray(e[0]))for(let n=0;n<e.length;++n)l_(t,...e[n]);else for(let n=0;n<e.length;n+=3)l_(t,...e.slice(n,n+3));return t}function Kq(t,e,n,r,a,i,o){const[s,l,u,c,f,d]=t;return o===void 0?(t[0]=Math.min(e[0],s),t[1]=Math.max(e[1],l),t[2]=Math.min(e[2],u),t[3]=Math.max(e[3],c),t[4]=Math.min(e[4],f),t[5]=Math.max(e[5],d)):(t[0]=Math.min(e,s),t[1]=Math.max(n,l),t[2]=Math.min(r,u),t[3]=Math.max(a,c),t[4]=Math.min(i,f),t[5]=Math.max(o,d)),t}function jq(t,e,n,r){const[a,i,o,s,l,u]=t;return t[0]=e,t[1]=e>i?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 Yq(t,e,n,r){const[a,i,o,s,l,u]=t;return t[0]=e<a?e:a,t[1]=e,t[2]=n<o?n:o,t[3]=n,t[4]=r<l?r:l,t[5]=r,i!==e||s!==n||u!==r}function Xq(t,e){return t[0]-=e,t[1]+=e,t[2]-=e,t[3]+=e,t[4]-=e,t[5]+=e,t}function _3(t,e,n,r){return zl(t)?(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 x3(t){return[.5*(t[0]+t[1]),.5*(t[2]+t[3]),.5*(t[4]+t[5])]}function W9e(t,e,n,r){if(!zl(t))return!1;const a=x3(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],_3(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 x0(t,e){return t[e*2+1]-t[e*2]}function dC(t){return[x0(t,0),x0(t,1),x0(t,2)]}function qq(t){return t.slice(0,2)}function Zq(t){return t.slice(2,4)}function Qq(t){return t.slice(4,6)}function Jq(t){const e=dC(t);return e[0]>e[1]?e[0]>e[2]?e[0]:e[2]:e[1]>e[2]?e[1]:e[2]}function eZ(t){if(zl(t)){const e=dC(t);return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}return null}function C3(t){return[t[0],t[2],t[4]]}function T3(t){return[t[1],t[3],t[5]]}function G1(t,e){return t<=0&&e>=0||t>=0&&e<=0}function E3(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 tZ(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 nZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];const r=E3(t,[]);for(let a=0;a<r.length;++a)En(r[a],r[a],e);return b3(n),w3(n,r)}function rZ(t){let e=arguments.length>1&&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 aZ(t,e,n,r){const a=[].concat(fC),i=t.getData();for(let o=0;o<i.length;o+=3){const s=[i[o],i[o+1],i[o+2]],l=dn(s,e);a[0]=Math.min(l,a[0]),a[1]=Math.max(l,a[1]);const u=dn(s,n);a[2]=Math.min(u,a[2]),a[3]=Math.max(u,a[3]);const c=dn(s,r);a[4]=Math.min(c,a[4]),a[5]=Math.max(c,a[5])}return a}function iZ(t,e,n,r,a){let i=!0;const o=[];let s=0;const l=[],u=[0,0,0],c=0,f=1,d=2;for(let h=0;h<3;h++)e[h]<t[2*h]?(o[h]=f,u[h]=t[2*h],i=!1):e[h]>t[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]<l[h]&&(s=h);if(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]||r[h]>t[2*h+1])return 0}else r[h]=u[h];return 1}function oZ(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=gc.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 sZ(t,e){if(!(zl(t)&&zl(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 u_(t,e){if(!(zl(t)&&zl(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 c_(t,e,n,r){return!(e<t[0]||e>t[1]||n<t[2]||n>t[3]||r<t[4]||r>t[5])}function K9e(t,e){return!(!u_(t,e)||!c_(t,...C3(e))||!c_(t,...T3(e)))}function lZ(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 v=[t[f],t[d],t[h]];a[i++]=gc.evaluate(n,e,v)}let o=2;for(;o--&&!(G1(a[r[o][0]],a[r[o][4]])&&G1(a[r[o][1]],a[r[o][5]])&&G1(a[r[o][2]],a[r[o][6]])&&G1(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&&d<u&&(u=d),s<0&&d>u&&(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 j9e{constructor(e){this.bounds=e,this.bounds||(this.bounds=new Float64Array(fC))}getBounds(){return this.bounds}equals(e){return Wq(this.bounds,e)}isValid(){return zl(this.bounds)}setBounds(e){return S3(this.bounds,e)}reset(){return b3(this.bounds)}addPoint(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return l_(this.bounds,...n)}addPoints(e){return w3(this.bounds,e)}addBounds(e,n,r,a,i,o){return Kq(this.bounds,e,n,r,a,i,o)}setMinPoint(e,n,r){return jq(this.bounds,e,n,r)}setMaxPoint(e,n,r){return Yq(this.bounds,e,n,r)}inflate(e){return Xq(this.bounds,e)}scale(e,n,r){return _3(this.bounds,e,n,r)}getCenter(){return x3(this.bounds)}getLength(e){return x0(this.bounds,e)}getLengths(){return dC(this.bounds)}getMaxLength(){return Jq(this.bounds)}getDiagonalLength(){return eZ(this.bounds)}getMinPoint(){return C3(this.bounds)}getMaxPoint(){return T3(this.bounds)}getXRange(){return qq(this.bounds)}getYRange(){return Zq(this.bounds)}getZRange(){return Qq(this.bounds)}getCorners(e){return E3(this.bounds,e)}computeCornerPoints(e,n){return tZ(this.bounds,e,n)}computeLocalBounds(e,n,r){return aZ(this.bounds,e,n,r)}transformBounds(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return nZ(this.bounds,e,n)}computeScale3(e){return rZ(this.bounds,e)}cutWithPlane(e,n){return lZ(this.bounds,e,n)}intersectBox(e,n,r,a){return iZ(this.bounds,e,n,r,a)}intersectPlane(e,n){return oZ(this.bounds,e,n)}intersect(e){return sZ(this.bounds,e)}intersects(e){return u_(this.bounds,e)}containsPoint(e,n,r){return c_(this.bounds,e,n,r)}contains(e){return u_(this.bounds,e)}}function Y9e(t){const e=t&&t.bounds;return new j9e(e)}const X9e={equals:Wq,isValid:zl,setBounds:S3,reset:b3,addPoint:l_,addPoints:w3,addBounds:Kq,setMinPoint:jq,setMaxPoint:Yq,inflate:Xq,scale:_3,scaleAboutCenter:W9e,getCenter:x3,getLength:x0,getLengths:dC,getMaxLength:Jq,getDiagonalLength:eZ,getMinPoint:C3,getMaxPoint:T3,getXRange:qq,getYRange:Zq,getZRange:Qq,getCorners:E3,computeCornerPoints:tZ,computeLocalBounds:aZ,transformBounds:nZ,computeScale3:rZ,cutWithPlane:lZ,intersectBox:iZ,intersectPlane:oZ,intersect:sZ,intersects:u_,containsPoint:c_,contains:K9e,INIT_BOUNDS:fC};var zn={newInstance:Y9e,...X9e};const q9e={DISPLAY:0,WORLD:1};var uZ={CoordinateSystem:q9e};const{CoordinateSystem:Pk}=uZ;function VF(t){return()=>j.vtkErrorMacro(`vtkProp::${t} - NOT IMPLEMENTED`)}function Z9e(t,e){e.classHierarchy.push("vtkProp"),t.getMTime=()=>{let n=e.mtime;for(let r=0;r<e.textures.length;++r){const a=e.textures[r].getMTime();a>n&&(n=a)}return n},t.processSelectorPixelBuffers=(n,r)=>{},t.getNestedProps=()=>null,t.getActors=()=>[],t.getActors2D=()=>[],t.getVolumes=()=>[],t.pick=VF("pick"),t.hasKey=VF("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(Pk.WORLD),t.setCoordinateSystemToDisplay=()=>t.setCoordinateSystem(Pk.DISPLAY)}const Q9e={allocatedRenderTime:10,coordinateSystem:Pk.WORLD,dragable:!0,estimatedRenderTime:0,paths:null,pickable:!0,renderTimeMultiplier:1,savedEstimatedRenderTime:0,textures:[],useBounds:!0,visibility:!0};function cZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Q9e,n),j.obj(t,e),j.get(t,e,["estimatedRenderTime","allocatedRenderTime"]),j.setGet(t,e,["_parentProp","coordinateSystem","dragable","pickable","renderTimeMultiplier","useBounds","visibility"]),j.moveToProtected(t,e,["parentProp"]),Z9e(t,e)}const J9e=j.newInstance(cZ,"vtkProp");var $m={newInstance:J9e,extend:cZ,...uZ};function eKe(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=Vd();Sq(r,e.rotation);const a=new Float64Array(3),i=R7e(a,r);return[Dy(i),a[0],a[1],a[2]]},t.rotateX=r=>{r!==0&&(i3(e.rotation,e.rotation,hr(r)),t.modified())},t.rotateY=r=>{r!==0&&(o3(e.rotation,e.rotation,hr(r)),t.modified())},t.rotateZ=r=>{r!==0&&(s3(e.rotation,e.rotation,hr(r)),t.modified())},t.rotateWXYZ=(r,a,i,o)=>{if(r===0||a===0&&i===0&&o===0)return;const s=hr(r),l=Vd();c3(l,[a,i,o],s);const u=new Float64Array(16);l3(u,l),Yr(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],fn(e.rotation),t.rotateZ(i),t.rotateX(r),t.rotateY(a),t.modified(),!0),t.setUserMatrix=r=>Vq(e.userMatrix,r)?!1:(na(e.userMatrix,r),t.modified(),!0),t.getMatrix=()=>(t.computeMatrix(),e.matrix),t.computeMatrix=()=>{if(t.getMTime()>e.matrixMTime.getMTime()){fn(e.matrix),e.userMatrix&&Yr(e.matrix,e.matrix,e.userMatrix),pr(e.matrix,e.matrix,e.origin),pr(e.matrix,e.matrix,e.position),Yr(e.matrix,e.matrix,e.rotation),Nd(e.matrix,e.matrix,e.scale),pr(e.matrix,e.matrix,[-e.origin[0],-e.origin[1],-e.origin[2]]),Wn(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=()=>zn.getCenter(e.bounds),t.getLength=()=>zn.getLength(e.bounds),t.getXRange=()=>zn.getXRange(e.bounds),t.getYRange=()=>zn.getYRange(e.bounds),t.getZRange=()=>zn.getZRange(e.bounds),t.getUserMatrix=()=>e.userMatrix;function n(){t.computeMatrix()}t.onModified(n)}const tKe={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 fZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,tKe,n),$m.extend(t,e,n),e.matrixMTime={},j.obj(e.matrixMTime),j.get(t,e,["bounds","isIdentity"]),j.getArray(t,e,["orientation"]),j.setGetArray(t,e,["origin","position","scale"],3),e.matrix=fn(new Float64Array(16)),e.rotation=fn(new Float64Array(16)),e.userMatrix=fn(new Float64Array(16)),e.transform=null,eKe(t,e)}const nKe=j.newInstance(fZ,"vtkProp3D");var rKe={newInstance:nKe,extend:fZ};const dZ={FLAT:0,GOURAUD:1,PHONG:2},Ei={POINTS:0,WIREFRAME:1,SURFACE:2},aKe=dZ;var hZ={Shading:dZ,Representation:Ei,Interpolation:aKe};const{Representation:Yg,Interpolation:Xg}=hZ;function BF(t){return()=>j.vtkErrorMacro(`vtkProperty::${t} - NOT IMPLEMENTED`)}function iKe(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=BF("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=BF("AddShaderVariable"),t.setInterpolationToFlat=()=>t.setInterpolation(Xg.FLAT),t.setInterpolationToGouraud=()=>t.setInterpolation(Xg.GOURAUD),t.setInterpolationToPhong=()=>t.setInterpolation(Xg.PHONG),t.getInterpolationAsString=()=>j.enumToString(Xg,e.interpolation),t.setRepresentationToWireframe=()=>t.setRepresentation(Yg.WIREFRAME),t.setRepresentationToSurface=()=>t.setRepresentation(Yg.SURFACE),t.setRepresentationToPoints=()=>t.setRepresentation(Yg.POINTS),t.getRepresentationAsString=()=>j.enumToString(Yg,e.representation)}const oKe={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:Xg.GOURAUD,representation:Yg.SURFACE,edgeVisibility:!1,backfaceCulling:!1,frontfaceCulling:!1,pointSize:1,lineWidth:1,lighting:!0,shading:!1,materialName:null};function pZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,oKe,n),j.obj(t,e),j.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"]),j.setGetArray(t,e,["ambientColor","specularColor","diffuseColor","edgeColor"],3),iKe(t,e)}const sKe=j.newInstance(pZ,"vtkProperty");var Lv={newInstance:sKe,extend:pZ,...hZ};const{vtkDebugMacro:lKe}=j;function uKe(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=Lv.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()){lKe("Recomputing bounds..."),e.mapperBounds=r.concat();const a=[];zn.getCorners(r,a),t.computeMatrix();const i=new Float64Array(16);Wn(i,e.matrix),a.forEach(o=>En(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<u[(s-1)/2]?u[(s-1)/2]:l,o)),e.boundsMTime.modified()}return e.bounds},t.getMTime=()=>{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 cKe={mapper:null,property:null,backfaceProperty:null,forceOpaque:!1,forceTranslucent:!1,bounds:[1,-1,1,-1,1,-1]};function vZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,cKe,n),rKe.extend(t,e,n),e.boundsMTime={},j.obj(e.boundsMTime),j.set(t,e,["property"]),j.setGet(t,e,["backfaceProperty","forceOpaque","forceTranslucent","mapper"]),uKe(t,e)}const fKe=j.newInstance(vZ,"vtkActor");var yc={newInstance:fKe,extend:vZ};const gZ={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Dr={VOID:"",CHAR:"Int8Array",SIGNED_CHAR:"Int8Array",UNSIGNED_CHAR:"Uint8Array",SHORT:"Int16Array",UNSIGNED_SHORT:"Uint16Array",INT:"Int32Array",UNSIGNED_INT:"Uint32Array",FLOAT:"Float32Array",DOUBLE:"Float64Array"},dKe=Dr.FLOAT;var yZ={DefaultDataType:dKe,DataTypeByteSize:gZ,VtkDataTypes:Dr};const{vtkErrorMacro:hKe}=rl,{DefaultDataType:pKe}=yZ,vKe=1e-6;function Fk(t,e,n){const r=t.length;let a=Number.MAX_VALUE,i=-Number.MAX_VALUE,o,s;for(s=e;s<r;s+=n)if(!Number.isNaN(t[s])){a=t[s],i=a;break}for(;s<r;s+=n)o=t[s],o<a?a=o:o>i&&(i=o);return{min:a,max:i}}function gKe(){let t=Number.MAX_VALUE,e=-Number.MAX_VALUE,n=0,r=0;return{add(a){t>a&&(t=a),e<a&&(e=a),n++,r+=a},get(){return{min:t,max:e,count:n,sum:r,mean:r/n}},getRange(){return{min:t,max:e}}}}function mZ(t){let e=arguments.length>1&&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;o<a;++o){for(let l=s+n;s<l;++s)i[o]+=t[s]*t[s];i[o]**=.5}return Fk(i,0,1)}return Fk(t,e<0?0:e,n)}function $F(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const n=t||[];for(;n.length<=e;)n.push(null);return n}function M3(t){return Object.prototype.toString.call(t).slice(8,-1)}function yKe(t){const e=t.getNumberOfComponents();let n=0;const r=new Array(e);for(let a=0;a<t.getNumberOfTuples();++a){t.getTuple(a,r);const i=ip(r,e);i>n&&(n=i)}return n}const mKe={computeRange:mZ,createRangeHelper:gKe,fastComputeRange:Fk,getDataType:M3,getMaxNorm:yKe};function SKe(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=Dv(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=$F(e.ranges,e.numberOfComponents)),i=e.ranges[a],i?(e.rangeTuple[0]=i.min,e.rangeTuple[1]=i.max,e.rangeTuple):(i=mZ(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=$F(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<e.numberOfComponents;o++)e.values[i+o]=a[o]},t.setTuples=(r,a)=>{let i=r*e.numberOfComponents;const o=Math.min(a.length,e.size-i);for(let s=0;s<o;)e.values[i++]=a[s++]},t.insertTuple=(r,a)=>(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<i*e.numberOfComponents&&(e.size=i*e.numberOfComponents,n(i)),t.setTuples(r,a),i},t.insertNextTuple=r=>{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]:vKe;for(let i=0;i<e.size;i+=e.numberOfComponents)if(Math.abs(r[0]-e.values[i])<=a){let o=!0;for(let s=1;s<e.numberOfComponents;++s)if(Math.abs(r[s]-e.values[i+s])>a){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=()=>bZ({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=M3(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())&&hKe("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;h<u;h++)d[h]=c[h]+(f[h]-c[h])*l}return t.insertTuple(r,d)}}const bKe={name:"",numberOfComponents:1,dataType:pKe,rangeTuple:[0,0]};function SZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(Object.assign(e,bKe,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=WA(e.dataType,e.values)):e.values=Dv(e.dataType,e.size),e.values&&(e.size=e.size??e.values.length,e.dataType=M3(e.values)),qr(t,e),Nm(t,e,["name","numberOfComponents"]),e.size%e.numberOfComponents!==0)throw new RangeError("model.size is not a multiple of model.numberOfComponents");SKe(t,e)}const bZ=Yn(SZ,"vtkDataArray");var _n={newInstance:bZ,extend:SZ,...mKe,...yZ};function wKe(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<r&&a<6;a++)t.addClippingPlane(n[a])}},t.getClippingPlaneInDataCoords=(n,r,a)=>{const i=e.clippingPlanes,o=n;if(i){const s=i.length;if(r>=0&&r<s){const l=i[r],u=l.getNormal(),c=l.getOrigin(),f=u[0],d=u[1],h=u[2],v=-(f*c[0]+d*c[1]+h*c[2]);a[0]=f*o[0]+d*o[4]+h*o[8]+v*o[12],a[1]=f*o[1]+d*o[5]+h*o[9]+v*o[13],a[2]=f*o[2]+d*o[6]+h*o[10]+v*o[14],a[3]=f*o[3]+d*o[7]+h*o[11]+v*o[15];return}}j.vtkErrorMacro(`Clipping plane index ${r} is out of range.`)}}const _Ke={clippingPlanes:[]};function xKe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,_Ke,n),j.obj(t,e),j.algo(t,e,1,0),e.clippingPlanes||(e.clippingPlanes=[]),wKe(t,e)}var wZ={extend:xKe};function CKe(t,e){t.getBounds=()=>(j.vtkErrorMacro("vtkAbstractMapper3D.getBounds - NOT IMPLEMENTED"),m3()),t.getCenter=()=>{var r;const n=t.getBounds();return e.center=zn.isValid(n)?zn.getCenter(n):null,(r=e.center)==null?void 0:r.slice()},t.getLength=()=>{const n=t.getBounds();return zn.getDiagonalLength(n)}}const TKe=t=>({bounds:[...zn.INIT_BOUNDS],center:[0,0,0],viewSpecificProperties:{},...t});function EKe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,TKe(n)),wZ.extend(t,e,n),j.setGet(t,e,["viewSpecificProperties"]),CKe(t,e)}var MKe={extend:EKe};const{vtkErrorMacro:IF,vtkWarningMacro:DKe}=j;function kKe(t,e){e.classHierarchy.push("vtkFieldData");const n=t.getState;e.arrays&&(e.arrays=e.arrays.map(r=>({data:Uo(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&&r<e.arrays.length?(e.arrays.splice(r,1),!0):!1,t.getArrays=()=>e.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&&r<e.arrays.length?e.arrays[r].data:null,t.hasArray=r=>t.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<o.getNumberOfTuples()){const u=i>-1?i:a;l.insertTuple(u,o.getTuple(a))}else l.insertTuples(0,o.getTuples());else IF("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=_n.newInstance({name:o.getName(),dataType:o.getDataType(),numberOfComponents:u,values:j.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<l.getNumberOfTuples()){const f=o>-1?o:a;c.interpolateTuple(f,l,a,l,i,s),DKe("Unexpected case in interpolateData")}else c.insertTuples(l.getTuples());else IF("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=_n.newInstance({name:l.getName(),dataType:l.getDataType(),numberOfComponents:f,values:j.newTypedArray(l.getDataType(),d),size:0}),c.interpolateTuple(h,l,a,l,i,s),t.addArray(c),r.getAttributes(l).forEach(v=>{t.setAttribute(c,v)})}}})},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 RKe={arrays:[],copyFieldFlags:[],doCopyAllOn:!0,doCopyAllOff:!1};function _Z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,RKe,n),j.obj(t,e),kKe(t,e)}const LKe=j.newInstance(_Z,"vtkFieldData");var OKe={newInstance:LKe,extend:_Z};const AKe={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},VKe={DUPLICATECELL:1,HIGHCONNECTIVITYCELL:2,LOWCONNECTIVITYCELL:4,REFINEDCELL:8,EXTERIORCELL:16,HIDDENCELL:32},BKe={DUPLICATEPOINT:1,HIDDENPOINT:2},$Ke={COPYTUPLE:0,INTERPOLATE:1,PASSDATA:2,ALLCOPY:3},IKe="vtkGhostType",f_={DEFAULT:0,SINGLE:1,DOUBLE:2};var xZ={AttributeCopyOperations:$Ke,AttributeLimitTypes:NKe,AttributeTypes:AKe,CellGhostTypes:VKe,DesiredOutputPrecision:f_,PointGhostTypes:BKe,ghostArrayName:IKe};const{AttributeTypes:lu,AttributeCopyOperations:jc}=xZ,{vtkWarningMacro:U1}=j;function PKe(t,e){const n=["Scalars","Vectors","Normals","TCoords","Tensors","GlobalIds","PedigreeIds"];function r(o){let s=n.find(l=>lu[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&&u<e.arrays.length){if(e.arrays[u]===o)return u;t.removeArrayByIndex(u)}return o?(u=t.addArray(o),e[`active${l}`]=u):e[`active${l}`]=-1,t.modified(),e[`active${l}`]},t.getAttributes=o=>n.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<e.arrays.length){if(l.toUpperCase()!=="PEDIGREEIDS"){const u=t.getArrayByIndex(o);if(!u.isA("vtkDataArray"))return U1(`Cannot set attribute ${l}. Only vtkDataArray subclasses can be set as active attributes.`),-1;if(!t.checkNumberOfComponents(u,l))return U1(`Cannot set attribute ${l}. Incorrect number of components.`),-1}return e[`active${l}`]=o,t.modified(),o}return o===-1&&(e[`active${l}`]=o,t.modified()),-1},t.getActiveAttribute=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<e[`active${s}`]&&(e[`active${s}`]-=1)}),a.removeArrayByIndex(o)),n.forEach(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[jc.PASSDATA][lu[l]]=!1},t[`copy${o}On`]=()=>{const l=o.toUpperCase();e.copyAttributeFlags[jc.PASSDATA][lu[l]]=!0}}),t.initializeAttributeCopyFlags=()=>{e.copyAttributeFlags=[],Object.keys(jc).filter(o=>o!=="ALLCOPY").forEach(o=>{e.copyAttributeFlags[jc[o]]=Object.keys(lu).filter(s=>s!=="NUM_ATTRIBUTES").reduce((s,l)=>(s[lu[l]]=!0,s),[])}),e.copyAttributeFlags[jc.COPYTUPLE][lu.GLOBALIDS]=!1,e.copyAttributeFlags[jc.INTERPOLATE][lu.GLOBALIDS]=!1,e.copyAttributeFlags[jc.COPYTUPLE][lu.PEDIGREEIDS]=!1},t.initialize=j.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(_n.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 FKe={activeScalars:-1,activeVectors:-1,activeTensors:-1,activeNormals:-1,activeTCoords:-1,activeGlobalIds:-1,activePedigreeIds:-1};function CZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,FKe,n),OKe.extend(t,e,n),j.setGet(t,e,["activeScalars","activeNormals","activeTCoords","activeVectors","activeTensors","activeGlobalIds","activePedigreeIds"]),e.arrays||(e.arrays={}),PKe(t,e)}const zKe=j.newInstance(CZ,"vtkDataSetAttributes");var PF={newInstance:zKe,extend:CZ,...xZ};const GKe={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},UKe={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:GKe,FieldAssociations:UKe};const zk=["pointData","cellData","fieldData"];function WKe(t,e){e.classHierarchy.push("vtkDataSet"),zk.forEach(r=>{e[r]?e[r]=Uo(e[r]):e[r]=PF.newInstance()});const n=t.shallowCopy;t.shallowCopy=function(r){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;n(r,a),zk.forEach(i=>{e[i]=PF.newInstance(),e[i].shallowCopy(r.getReferenceByName(i))})}}const KKe={};function TZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,KKe,n),j.obj(t,e),j.setGet(t,e,zk),WKe(t,e)}const jKe=j.newInstance(TZ,"vtkDataSet");var Zd={newInstance:jKe,extend:TZ,...HKe};const Eo={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 EZ={StructuredType:Eo};const{StructuredType:sl}=EZ;function YKe(t){let e=0;for(let n=0;n<3;++n)t[n*2]<t[n*2+1]&&e++;return t[0]>t[1]||t[2]>t[3]||t[4]>t[5]?sl.EMPTY:e===3?sl.XYZ_GRID:e===2?t[0]===t[1]?sl.YZ_PLANE:t[2]===t[3]?sl.XZ_PLANE:sl.XY_PLANE:e===1?t[0]<t[1]?sl.X_LINE:t[2]<t[3]?sl.Y_LINE:sl.Z_LINE:sl.SINGLE_POINT}var XKe={getDataDescriptionFromExtent:YKe,...EZ};const{vtkErrorMacro:Yc}=j;function qKe(t,e){e.classHierarchy.push("vtkImageData"),t.setExtent=function(){if(e.deleted)return Yc("instance deleted - cannot call any method"),!1;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];const i=r.length===1?r[0]:r;if(i.length!==6)return!1;const o=e.extent.some((s,l)=>s!==i[l]);return o&&(e.extent=i.slice(),e.dataDescription=XKe.getDataDescriptionFromExtent(e.extent),t.modified()),o},t.setDimensions=function(){let n,r,a;if(e.deleted){Yc("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{Yc("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 Yc("Requesting a point from an empty image."),null;const a=new Float64Array(3);switch(e.dataDescription){case Eo.EMPTY:return null;case Eo.SINGLE_POINT:break;case Eo.X_LINE:a[0]=n;break;case Eo.Y_LINE:a[1]=n;break;case Eo.Z_LINE:a[2]=n;break;case Eo.XY_PLANE:a[0]=n%r[0],a[1]=n/r[0];break;case Eo.YZ_PLANE:a[1]=n%r[1],a[2]=n/r[1];break;case Eo.XZ_PLANE:a[0]=n%r[0],a[2]=n/r[0];break;case Eo.XYZ_GRID:a[0]=n%r[0],a[1]=n/r[0]%r[1],a[2]=n/(r[0]*r[1]);break;default:Yc("Invalid dataDescription");break}const i=[0,0,0];return t.indexToWorld(a,i),i},t.getBounds=()=>t.extentToBounds(t.getSpatialExtent()),t.extentToBounds=n=>zn.transformBounds(n,e.indexToWorld),t.getSpatialExtent=()=>zn.inflate([...e.extent],.5),t.computeTransforms=()=>{pq(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],Nd(e.indexToWorld,e.indexToWorld,e.spacing),Ua(e.worldToIndex,e.indexToWorld)},t.indexToWorld=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return En(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 En(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 zn.transformBounds(n,e.indexToWorld,r)},t.worldToIndexBounds=function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return zn.transformBounds(n,e.worldToIndex,r)},t.onModified(t.computeTransforms),t.computeTransforms(),t.getCenter=()=>zn.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];zn.computeCornerPoints(a,i,o),AF(i,i),AF(o,o);const s=t.getDimensions();NF(i,[0,0,0],[s[0]-1,s[1]-1,s[2]-1],i),NF(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,v=0,p=0;for(let S=i[2];S<=o[2];S++)for(let b=i[1];b<=o[1];b++){let x=i[0]+b*l+S*u;for(let _=i[0];_<=o[0];_++){if(!r||r([_,b,S],a)){const C=c[x];C>f&&(f=C),C<d&&(d=C),h+=C*C,v+=C,p+=1}++x}}const g=p>0?v/p:0,y=p?Math.abs(h/p-g*g):0,m=Math.sqrt(y);return{minimum:d,maximum:f,average:g,variance:y,sigma:m,count:p}},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]||a[i]>r[i*2+1])return Yc(`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 Yc(`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 ZKe={direction:null,indexToWorld:null,worldToIndex:null,spacing:[1,1,1],origin:[0,0,0],extent:[0,-1,0,-1,0,-1],dataDescription:Eo.EMPTY};function MZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ZKe,n),Zd.extend(t,e,n),e.direction?Array.isArray(e.direction)&&(e.direction=new Float64Array(e.direction.slice(0,9))):e.direction=qd(new Float64Array(9)),e.indexToWorld=new Float64Array(16),e.worldToIndex=new Float64Array(16),j.get(t,e,["indexToWorld","worldToIndex"]),j.setGetArray(t,e,["origin","spacing"],3),j.setGetArray(t,e,["direction"],9),j.getArray(t,e,["extent"],6),qKe(t,e)}const QKe=j.newInstance(MZ,"vtkImageData");var JKe={newInstance:QKe,extend:MZ};const eje={MAGNITUDE:0,COMPONENT:1,RGBCOLORS:2},Gk={LUMINANCE:1,LUMINANCE_ALPHA:2,RGB:3,RGBA:4};var D3={VectorMode:eje,ScalarMappingTarget:Gk};const tje={DEFAULT:0,MAP_SCALARS:1,DIRECT_SCALARS:2},nje={DEFAULT:0,USE_POINT_DATA:1,USE_CELL_DATA:2,USE_POINT_FIELD_DATA:3,USE_CELL_FIELD_DATA:4,USE_FIELD_DATA:5},rje={BY_ID:0,BY_NAME:1};var hC={ColorMode:tje,GetArray:rje,ScalarMode:nje};const{ScalarMappingTarget:FF,VectorMode:Ss}=D3,{VtkDataTypes:Xc}=_n,{ColorMode:H1}=hC,{vtkErrorMacro:zF}=j;function aje(t){return t}function GF(t){return Math.floor(t*255+.5)}function ije(t,e){e.classHierarchy.push("vtkScalarsToColors"),t.setVectorModeToMagnitude=()=>t.setVectorMode(Ss.MAGNITUDE),t.setVectorModeToComponent=()=>t.setVectorMode(Ss.COMPONENT),t.setVectorModeToRGBColors=()=>t.setVectorMode(Ss.RGBCOLORS),t.build=()=>{},t.isOpaque=()=>!0,t.setAnnotations=(n,r)=>{if(!(n&&!r||!n&&r)){if(n&&r&&n.length!==r.length){zF("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<a;i++)e.annotationArray.push({value:n[i],annotation:String(r[i])})}t.updateAnnotatedValueMap(),t.modified()}},t.setAnnotation=(n,r)=>{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<n;r++)e.annotatedValueMap[e.annotationArray[r].value]=r},t.mapScalars=(n,r,a)=>{const i=n.getNumberOfComponents();let o=null;if(r===H1.DEFAULT&&n.getDataType()===Xc.UNSIGNED_CHAR||r===H1.DIRECT_SCALARS&&n)o=t.convertToRGBA(n,i,n.getNumberOfTuples());else{const s={type:"vtkDataArray",name:"temp",numberOfComponents:4,dataType:Xc.UNSIGNED_CHAR},l=j.newTypedArray(s.dataType,4*n.getNumberOfTuples());s.values=l,s.size=l.length,o=_n.newInstance(s);let u=a;u<0&&i>1?t.mapVectorsThroughTable(n,o,FF.RGBA,-1,-1):(u<0&&(u=0),u>=i&&(u=i-1),t.mapScalarsThroughTable(n,o,FF.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<i;u++){let c=0;for(let f=0;f<a;f++)c+=l[u*o+f]*l[u*o+f];s[u]=Math.sqrt(c)}},t.mapVectorsThroughTable=(n,r,a,i,o)=>{let s=t.getVectorMode(),l=o,u=i;const c=n.getNumberOfComponents();s===Ss.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===Ss.MAGNITUDE&&(c===1||l===1)&&(s=Ss.COMPONENT));let f=0;switch(u>0&&(f=u),s){case Ss.COMPONENT:{t.mapScalarsThroughTable(n,r,a,f);break}case Ss.RGBCOLORS:break;case Ss.MAGNITUDE:default:{const d=_n.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<u;h+=f){const v=i(s[h]);l[d*4]=v,l[d*4+1]=v,l[d*4+2]=v,l[d*4+3]=o,d++}},t.luminanceAlphaToRGBA=(n,r,a,i)=>{const o=r.getData(),s=n.getData(),l=o.length,u=0,c=2;let f=0;for(let d=u;d<l;d+=c){const h=i(o[d]);s[f]=h,s[f+1]=h,s[f+2]=h,s[f+3]=i(o[d+1])*a,f+=4}},t.rGBToRGBA=(n,r,a,i)=>{const o=GF(a),s=r.getData(),l=n.getData(),u=s.length,c=0,f=3;let d=0;for(let h=c;h<u;h+=f)l[d*4]=i(s[h]),l[d*4+1]=i(s[h+1]),l[d*4+2]=i(s[h+2]),l[d*4+3]=o,d++},t.rGBAToRGBA=(n,r,a,i)=>{const o=r.getData(),s=n.getData(),l=o.length,u=0,c=4;let f=0;for(let d=u;d<l;d+=c)s[f*4]=i(o[d]),s[f*4+1]=i(o[d+1]),s[f*4+2]=i(o[d+2]),s[f*4+3]=i(o[d+3])*a,f++},t.convertToRGBA=(n,r,a)=>{let{alpha:i}=e;if(r===4&&i>=1&&n.getDataType()===Xc.UNSIGNED_CHAR)return n;const o=_n.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=aje;switch((n.getDataType()===Xc.FLOAT||n.getDataType()===Xc.DOUBLE)&&(s=GF),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 zF("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===H1.DEFAULT&&n.getDataType()===Xc.UNSIGNED_CHAR||r===H1.DIRECT_SCALARS?i===3||i===1?e.alpha>=1:n.getRange(i-1)[0]===255:!0}}const oje={alpha:1,vectorComponent:0,vectorSize:-1,vectorMode:Ss.COMPONENT,mappingRange:null,annotationArray:null,annotatedValueMap:null,indexedLookup:!1};function DZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,oje,n),j.obj(t,e),e.mappingRange=[0,255],e.annotationArray=[],e.annotatedValueMap=[],j.setGet(t,e,["vectorSize","vectorComponent","vectorMode","alpha","indexedLookup"]),j.setArray(t,e,["mappingRange"],2),j.getArray(t,e,["mappingRange"]),ije(t,e)}const sje=j.newInstance(DZ,"vtkScalarsToColors");var pC={newInstance:sje,extend:DZ,...D3};const{vtkErrorMacro:UF}=j,HF=0,WF=1,i2=2;function lje(t,e){e.classHierarchy.push("vtkLookupTable"),t.isOpaque=()=>{if(e.opaqueFlagBuildTime.getMTime()<t.getMTime()){let n=!0;e.nanColor[3]<1&&(n=0),e.useBelowRangeColor&&e.belowRangeColor[3]<1&&(n=0),e.useAboveRangeColor&&e.aboveRangeColor[3]<1&&(n=0);for(let r=3;r<e.table.length&&n;r+=4)e.table[r]<255&&(n=!1);e.opaqueFlag=n,e.opaqueFlagBuildTime.modified()}return e.opaqueFlag},t.usingLogScale=()=>!1,t.getNumberOfAvailableColors=()=>e.table.length/4,t.linearIndexLookup=(n,r)=>{let a=0;const i=Number(n);return i<r.range[0]?a=r.maxIndex+HF+1.5:i>r.range[1]?a=r.maxIndex+WF+1.5:(a=(i+r.shift)*r.scale,a=a<r.maxIndex?a:r.maxIndex),Math.floor(a)},t.linearLookup=(n,r,a)=>{let i=0;s_(n)?i=Math.floor(a.maxIndex+1.5+i2):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+i2);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===Gk.RGBA)for(let v=0;v<c;v++){const p=o(h[v*f+i],e.table,l);d[v*4]=p[0],d[v*4+1]=p[1],d[v*4+2]=p[2],d[v*4+3]=p[3]}}else if(a===Gk.RGBA)for(let v=0;v<c;v++){const p=o(h[v*f+i],e.table,l);d[v*4]=p[0],d[v*4+1]=p[1],d[v*4+2]=p[2],d[v*4+3]=Math.floor(p[3]*u+.5)}},t.forceBuild=()=>{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,Hh(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<e.numberOfColors;s++)e.table[s*4]=255,e.table[s*4+1]=255,e.table[s*4+2]=255,e.table[s*4+3]=255;for(let s=0;s<n.length;s++){const l=n[s];for(let u=0;u<a;u++)e.table[o++]=l[u];o+=i}return t.buildSpecialColors(),e.insertTime.modified(),t.modified(),!0}if(n.getNumberOfComponents()!==4)return UF("Expected 4 components for RGBA colors"),!1;if(n.getDataType()!==Dr.UNSIGNED_CHAR)return UF("Expected unsigned char values for RGBA colors"),!1;e.numberOfColors=n.getNumberOfTuples();const r=n.getData();e.table.length=r.length;for(let a=0;a<r.length;a++)e.table[a]=r[a];return t.buildSpecialColors(),e.insertTime.modified(),t.modified(),!0},t.buildSpecialColors=()=>{const{numberOfColors:n}=e,r=e.table;let a=(n+HF)*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+WF)*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+i2)*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 uje={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 kZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,uje,n),pC.extend(t,e,n),e.table||(e.table=[]),e.buildTime={},j.obj(e.buildTime),e.opaqueFlagBuildTime={},j.obj(e.opaqueFlagBuildTime,{mtime:0}),e.insertTime={},j.obj(e.insertTime,{mtime:0}),j.get(t,e,["buildTime"]),j.setGet(t,e,["numberOfColors","useAboveRangeColor","useBelowRangeColor"]),j.setArray(t,e,["alphaRange","hueRange","saturationRange","valueRange"],2),j.setArray(t,e,["nanColor","belowRangeColor","aboveRangeColor"],4),j.getArray(t,e,["hueRange","saturationRange","valueRange","alphaRange","nanColor","belowRangeColor","aboveRangeColor"]),lje(t,e)}const cje=j.newInstance(kZ,"vtkLookupTable");var qg={newInstance:cje,extend:kZ};let RZ=1,k3=0;const fje=["VTK_RESOLVE_OFF","VTK_RESOLVE_POLYGON_OFFSET"];function dje(){return RZ}function hje(t){RZ=t}function pje(){return k3}function vC(){k3=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0}function vje(){vC(0)}function gje(){vC(0)}function yje(){vC(1)}function mje(){return fje[k3]}var Uk={getResolveCoincidentTopologyAsString:mje,getResolveCoincidentTopologyPolygonOffsetFaces:dje,getResolveCoincidentTopology:pje,setResolveCoincidentTopology:vC,setResolveCoincidentTopologyPolygonOffsetFaces:hje,setResolveCoincidentTopologyToDefault:vje,setResolveCoincidentTopologyToOff:gje,setResolveCoincidentTopologyToPolygonOffset:yje};function LZ(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 R3=["Polygon","Line","Point"],Sje={Polygon:{factor:2,offset:0},Line:{factor:1,offset:-1},Point:{factor:0,offset:-2}},Uf={};LZ(Uf,Sje,R3.map(t=>({key:t,method:`ResolveCoincidentTopology${t}OffsetParameters`})));function bje(t,e){e.resolveCoincidentTopology===void 0&&(e.resolveCoincidentTopology=!1),j.setGet(t,e,["resolveCoincidentTopology"]),e.topologyOffset={Polygon:{factor:0,offset:0},Line:{factor:0,offset:0},Point:{factor:0,offset:0}},Object.keys(Uk).forEach(n=>{t[n]=Uk[n]}),Object.keys(Uf).forEach(n=>{t[n]=Uf[n]}),LZ(t,e.topologyOffset,R3.map(n=>({key:n,method:`RelativeCoincidentTopology${n}OffsetParameters`}))),t.getCoincidentTopologyPolygonOffsetParameters=()=>{const n=Uf.getResolveCoincidentTopologyPolygonOffsetParameters(),r=t.getRelativeCoincidentTopologyPolygonOffsetParameters();return{factor:n.factor+r.factor,offset:n.offset+r.offset}},t.getCoincidentTopologyLineOffsetParameters=()=>{const n=Uf.getResolveCoincidentTopologyLineOffsetParameters(),r=t.getRelativeCoincidentTopologyLineOffsetParameters();return{factor:n.factor+r.factor,offset:n.offset+r.offset}},t.getCoincidentTopologyPointOffsetParameter=()=>{const n=Uf.getResolveCoincidentTopologyPointOffsetParameters(),r=t.getRelativeCoincidentTopologyPointOffsetParameters();return{factor:n.factor+r.factor,offset:n.offset+r.offset}}}var OZ={implementCoincidentTopologyMethods:bje,staticOffsetAPI:Uf,otherStaticMethods:Uk,CATEGORIES:R3};const Ia={MIN_KNOWN_PASS:0,ACTOR_PASS:0,COMPOSITE_INDEX_PASS:1,ID_LOW24:2,ID_HIGH24:3,MAX_KNOWN_PASS:3};var AZ={PassTypes:Ia};const{FieldAssociations:KF}=Zd,{staticOffsetAPI:wje,otherStaticMethods:_je}=OZ,{ColorMode:o2,ScalarMode:qc,GetArray:s2}=hC,{VectorMode:xje}=D3,{VtkDataTypes:Cje}=_n;function cg(t){return()=>j.vtkErrorMacro(`vtkMapper::${t} - NOT IMPLEMENTED`)}function Tje(t,e){e.classHierarchy.push("vtkMapper"),t.getBounds=()=>{const n=t.getInputData();return n?(e.static||t.update(),e.bounds=n.getBounds()):e.bounds=m3(),e.bounds},t.setForceCompileOnly=n=>{e.forceCompileOnly=n},t.setSelectionWebGLIdsToVTKIds=n=>{e.selectionWebGLIdsToVTKIds=n},t.createDefaultLookupTable=()=>{e.lookupTable=qg.newInstance()},t.getColorModeAsString=()=>j.enumToString(o2,e.colorMode),t.setColorModeToDefault=()=>t.setColorMode(0),t.setColorModeToMapScalars=()=>t.setColorMode(1),t.setColorModeToDirectScalars=()=>t.setColorMode(2),t.getScalarModeAsString=()=>j.enumToString(qc,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===qc.DEFAULT)s=n.getPointData().getScalars(),s||(s=n.getCellData().getScalars(),l=!0);else if(r===qc.USE_POINT_DATA)s=n.getPointData().getScalars();else if(r===qc.USE_CELL_DATA)s=n.getCellData().getScalars(),l=!0;else if(r===qc.USE_POINT_FIELD_DATA){const u=n.getPointData();a===s2.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===qc.USE_CELL_FIELD_DATA){const u=n.getCellData();l=!0,a===s2.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===qc.USE_FIELD_DATA){const u=n.getFieldData();a===s2.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 s_(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]),v=r.getData(),p=n.getData();let g=0,y=0;if(o<0||o>=i)for(let m=0;m<a;++m){let S=0;for(let _=0;_<i;++_)S+=p[g]*p[g],g++;let b=Math.sqrt(S);c&&(b=qg.applyLogScale(b,l,s));const x=t.scalarToTextureCoordinate(b,d[0],h);v[y]=x.texCoordS,v[y+1]=x.texCoordT,y+=2}else{g+=o;for(let m=0;m<a;++m){let S=p[g];c&&(S=qg.applyLogScale(S,l,s));const b=t.scalarToTextureCoordinate(S,d[0],h);v[y]=b.texCoordS,v[y+1]=b.texCoordT,y+=2,g+=i}}},t.mapScalarsToTexture=(n,r)=>{const a=e.lookupTable.getRange(),i=e.lookupTable.usingLogScale();i&&qg.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;f<s;++f)u[f]=a[0]+f*l-l/2,i&&(u[f]=10**u[f]);for(let f=0;f<s;++f)u[f+s]=NaN;e.colorTextureMap=JKe.newInstance(),e.colorTextureMap.setExtent(0,s-1,0,1,0,0);const c=_n.newInstance({numberOfComponents:1,values:u});e.colorTextureMap.getPointData().setScalars(e.lookupTable.mapScalars(c,e.colorMode,0)),e.lookupTable.setAlpha(o)}if(!e.colorCoordinates||t.getMTime()>e.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=_n.newInstance({numberOfComponents:2,values:new Float32Array(l*2)});let u=e.lookupTable.getVectorComponent();e.lookupTable.getVectorMode()===xje.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===o2.DEFAULT&&a.getDataType()===Cje.UNSIGNED_CHAR||e.colorMode===o2.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=cg("AcquireInvertibleLookupTable"),t.valueToColor=cg("ValueToColor"),t.colorToValue=cg("ColorToValue"),t.useInvertibleColorFor=cg("UseInvertibleColorFor"),t.clearInvertibleColor=cg("ClearInvertibleColor"),t.processSelectorPixelBuffers=(n,r)=>{if(!n||!e.selectionWebGLIdsToVTKIds||!e.populateSelectionSettings)return;const a=n.getRawPixelBuffer(Ia.ID_LOW24),i=n.getRawPixelBuffer(Ia.ID_HIGH24),o=n.getCurrentPass(),s=n.getFieldAssociation();let l=null;s===KF.FIELD_ASSOCIATION_POINTS?l=e.selectionWebGLIdsToVTKIds.points:s===KF.FIELD_ASSOCIATION_CELLS&&(l=e.selectionWebGLIdsToVTKIds.cells),l&&r.forEach(u=>{if(o===Ia.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(Ia.ID_LOW24);d[u]=f&255,d[u+1]=(f&65280)>>8,d[u+2]=(f&16711680)>>16}else if(o===Ia.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(Ia.ID_HIGH24);d[u]=(f&4278190080)>>24}})}}const Eje={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 NZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Eje,n),MKe.extend(t,e,n),j.get(t,e,["colorCoordinates","colorMapColors","colorTextureMap","selectionWebGLIdsToVTKIds"]),j.setGet(t,e,["colorByArrayName","arrayAccessMode","colorMode","fieldDataTupleId","interpolateScalarsBeforeMapping","lookupTable","populateSelectionSettings","renderTime","scalarMode","scalarVisibility","static","useLookupTableScalarRange","customShaderAttributes"]),j.setGetArray(t,e,["scalarRange"],2),OZ.implementCoincidentTopologyMethods(t,e),Tje(t,e)}const Mje=j.newInstance(NZ,"vtkMapper");var qs={newInstance:Mje,extend:NZ,...wje,..._je,...hC};function VZ(t){let e=0;return t.filter((n,r)=>r===e?(e+=n+1,!0):!1)}function BZ(t){let e=0;for(let n=0;n<t.length;)n+=t[n]+1,e++;return e}const Dje={extractCellSizes:VZ,getNumberOfCells:BZ};function kje(t,e){e.classHierarchy.push("vtkCellArray");const n={...t};t.getNumberOfCells=r=>(e.numberOfCells!==void 0&&!r||(e.cellSizes?e.numberOfCells=e.cellSizes.length:e.numberOfCells=BZ(t.getData())),e.numberOfCells),t.getCellSizes=r=>(e.cellSizes!==void 0&&!r||(e.cellSizes=VZ(t.getData())),e.cellSizes),t.resize=r=>{const a=t.getNumberOfTuples();n.resize(r);const i=t.getNumberOfTuples();i<a&&(i===0?(e.numberOfCells=0,e.cellSizes=[]):(e.numberOfCells=void 0,e.cellSizes=void 0))},t.setData=r=>{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 Rje(t){return{empty:!0,numberOfComponents:1,dataType:Dr.UNSIGNED_INT,...t}}function $Z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};_n.extend(t,e,Rje(n)),kje(t,e)}const Lje=j.newInstance($Z,"vtkCellArray");var jF={newInstance:Lje,extend:$Z,...Dje};const{vtkErrorMacro:Oje}=j,Aje=[1,-1,1,-1,1,-1];function Nje(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=j.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;i<r;i++)a[i-1]=arguments[i];t.setTuple(n,a)},t.getPoint=t.getTuple,t.findPoint=t.findTuple,t.insertNextPoint=(n,r,a)=>t.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 Oje(`getBounds called on an array with components of
- ${t.getNumberOfComponents()}`),Aje;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 Vje={empty:!0,numberOfComponents:3,dataType:Dr.FLOAT,bounds:[1,-1,1,-1,1,-1]};function IZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Vje,n),_n.extend(t,e,n),Nje(t,e)}const Bje=j.newInstance(IZ,"vtkPoints");var Ry={newInstance:Bje,extend:IZ};function $je(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=j.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;a<n;a++)e.points.getPoint(a,r),e.bounds[0]=r[0]<e.bounds[0]?r[0]:e.bounds[0],e.bounds[1]=r[0]>e.bounds[1]?r[0]:e.bounds[1],e.bounds[2]=r[1]<e.bounds[2]?r[1]:e.bounds[2],e.bounds[3]=r[1]>e.bounds[3]?r[1]:e.bounds[3],e.bounds[4]=r[2]<e.bounds[4]?r[2]:e.bounds[4],e.bounds[5]=r[2]>e.bounds[5]?r[2]:e.bounds[5]}else y3(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)=>{j.vtkErrorMacro("vtkCell.evaluatePosition is not implemented.")}}const Ije={bounds:[-1,-1,-1,-1,-1,-1],pointsIds:[]};function PZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Ije,n),j.obj(t,e),e.points||(e.points=Ry.newInstance()),j.get(t,e,["points","pointsIds"]),$je(t,e)}const Pje=j.newInstance(PZ,"vtkCell");var d_={newInstance:Pje,extend:PZ};function Fje(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 zje(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<a;++o){const{cellPointIds:s}=n.getCellPoints(o);s.forEach(l=>{t.incrementLinkCount(l)})}t.allocateLinks(r),e.maxId=r-1;for(let o=0;o<a;++o){const{cellPointIds:s}=n.getCellPoints(o);s.forEach(l=>{t.insertCellReference(l,i[l]++,o)})}}else{for(let o=0;o<a;o++)d_.newInstance().getPointsIds().forEach(l=>{t.incrementLinkCount(l)});t.allocateLinks(r),e.maxId=r-1;for(let o=0;o<a;++o)d_.newInstance().getPointsIds().forEach(l=>{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=()=>{Fje(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<n;++r)e.array[r].cells=new Array(e.array[r].ncells)},t.insertCellReference=(n,r,a)=>{e.array[n].cells[r]=a}}const Gje={array:null,maxId:0,extend:0};function FZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Gje,n),j.obj(t,e),zje(t,e)}const Uje=j.newInstance(FZ,"vtkCellLinks");var Hje={newInstance:Uje,extend:FZ};const qn={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 Wje(t){return t<Hk.length?Hk[t]:"UnknownClass"}function Kje(t){return Hk.findIndex(t)}function jje(t){return t<qn.VTK_QUADRATIC_EDGE||t===qn.VTK_CONVEX_POINT_SET||t===qn.VTK_POLYHEDRON}function Yje(t){return t===qn.VTK_TRIANGLE_STRIP||t===qn.VTK_POLY_LINE||t===qn.VTK_POLY_VERTEX}const Xje={getClassNameFromTypeId:Wje,getTypeIdFromClassName:Kje,isLinear:jje,hasSubCells:Yje};function qje(t,e){e.classHierarchy.push("vtkCellTypes"),t.allocate=function(){let n=arguments.length>0&&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]=qn.VTK_EMPTY_CELL},t.getNumberOfTypes=()=>e.maxId+1,t.isType=n=>{const r=t.getNumberOfTypes();for(let a=0;a<r;++a)if(n===t.getCellType(a))return!0;return!1},t.insertNextType=n=>t.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 Zje={size:0,maxId:-1,extend:1e3};function zZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Zje,n),j.obj(t,e),j.get(t,e,["size","maxId","extend"]),j.getArray(t,e,["typeArray","locationArray"]),qje(t,e)}const Qje=j.newInstance(zZ,"vtkCellTypes");var Jje={newInstance:Qje,extend:zZ,...Xje};const GZ={NO_INTERSECTION:0,YES_INTERSECTION:1,ON_LINE:2};var UZ={IntersectionState:GZ};const{IntersectionState:ew}=UZ;function sp(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),-u<l&&l<u||l<=0||a.t<0?o=e:a.t>1?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=Oo(o,t),a}function HZ(t,e,n,r,a,i){const o=[],s=[],l=[];a[0]=0,i[0]=0,Sa(e,t,o),Sa(r,n,s),Sa(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),A9e(u,c,2)===0){let f=Number.MAX_VALUE;const d=[t,e,n,r],h=[n,n,t,t],v=[r,r,e,e];i[0],i[0],a[0],a[0],a[0],a[0],i[0],i[0];let p;for(let g=0;g<4;g++)p=sp(d[g],h[g],v[g]),p.distance<f&&(f=p.distance);return ew.ON_LINE}return a[0]=c[0],i[0]=c[1],a[0]>=0&&a[0]<=1&&i[0]>=0&&i[0]<=1?ew.YES_INTERSECTION:ew.NO_INTERSECTION}const eYe={distanceToLine:sp,intersection:HZ};function tYe(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=[],v=HZ(r,a,c,f,d,h);if(l.t=d[0],l.betweenPoints=n(l.t),s[0]=h[0],v===ew.YES_INTERSECTION){for(let p=0;p<3;p++)o[p]=c[p]+s[0]*(f[p]-c[p]),u[p]=r[p]+l.t*(a[p]-r[p]);if(Oo(o,u)<=i*i)return l.intersect=1,l}else{let p;if(l.t<0)return p=sp(r,c,f,o),p.distance<=i*i&&(l.t=0,l.intersect=1,l.betweenPoints=!0),l;if(l.t>1)return p=sp(a,c,f,o),p.distance<=i*i&&(l.t=1,l.intersect=1,l.betweenPoints=!0),l;if(s[0]<0)return s[0]=0,p=sp(c,r,a,o),l.t=p.t,p.distance<=i*i&&(l.intersect=1),l;if(s[0]>1)return s[0]=1,p=sp(f,r,a,o),l.t=p.t,p.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?(Qb(a,e.orientations[0],e.orientations[1],r[0]),i[0]=1-r[0],i[1]=r[0],!0):!1}const nYe={orientations:null};function WZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,nYe,n),d_.extend(t,e,n),j.setGet(t,e,["orientations"]),tYe(t,e)}const rYe=j.newInstance(WZ,"vtkLine");var si={newInstance:rYe,extend:WZ,...eYe,...UZ};function aYe(t,e){e.classHierarchy.push("vtkPointSet"),e.points?e.points=Uo(e.points):e.points=Ry.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=Ry.newInstance(),e.points.shallowCopy(r.getPoints())}}const iYe={};function KZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,iYe,n),Zd.extend(t,e,n),j.setGet(t,e,["points"]),aYe(t,e)}const oYe=j.newInstance(KZ,"vtkPointSet");var sYe={newInstance:oYe,extend:KZ};function L3(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 h_(t,e,n,r){L3(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 lYe(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=[];h_(t,e,n,f),h_(r,a,i,d);const h=-dn(f,t),v=-dn(d,r),p=[dn(d,t)+v,dn(d,e)+v,dn(d,n)+v];if(p[0]*p[1]>o&&p[0]*p[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-v)<1e-9)return s=!0,{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};const y=[t,e,n],m=[r,a,i],S=dn(f,d),b=(h-v*S)/(S*S-1),x=(v-h*S)/(S*S-1),_=[b*f[0]+x*d[0],b*f[1]+x*d[1],b*f[2]+x*d[2]],C=Ol(f,d,[]);Fl(C);let T=0,D=0;const M=[],E=[];let k=50,R=50;for(let $=0;$<3;$++){const V=$,F=($+1)%3,L=gc.intersectWithLine(y[V],y[F],r,d);L.intersection&&L.t>0-o&&L.t<1+o&&(L.t<1+o&&L.t>1-o&&(k=T),M[T++]=dn(L.x,C)-dn(_,C));const N=gc.intersectWithLine(m[V],m[F],t,f);N.intersection&&N.t>0-o&&N.t<1+o&&(N.t<1+o&&N.t>1-o&&(R=D),E[D++]=dn(N.x,C)-dn(_,C))}if(T>2){T--;const $=M[2];M[2]=M[k],M[k]=$}if(D>2){D--;const $=E[2];E[2]=E[R],E[R]=$}if(T!==2||D!==2)return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};if(Number.isNaN(M[0])||Number.isNaN(M[1])||Number.isNaN(E[0])||Number.isNaN(E[1]))return{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c};if(M[0]>M[1]){const $=M[1];M[1]=M[0],M[0]=$}if(E[0]>E[1]){const $=E[1];E[1]=E[0],E[0]=$}let O,B;return M[1]<E[0]||E[1]<M[0]?{intersect:!1,coplanar:s,pt1:l,pt2:u,surfaceId:c}:(M[0]<E[0]?M[1]<E[1]?(c[0]=2,c[1]=1,O=E[0],B=M[1]):(c[0]=2,c[1]=2,O=E[0],B=E[1]):M[1]<E[1]?(c[0]=1,c[1]=1,O=M[0],B=M[1]):(c[0]=1,c[1]=2,O=M[0],B=E[1]),OF(_,C,O,l),OF(_,C,B,u),{intersect:!0,coplanar:s,pt1:l,pt2:u,surfaceId:c})}const uYe={computeNormalDirection:L3,computeNormal:h_,intersectWithTriangle:lYe};function cYe(t,e){e.classHierarchy.push("vtkTriangle"),t.getCellDimension=()=>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=[],v=[];if(h_(c,f,d,h),h[0]!==0||h[1]!==0||h[2]!==0){const S=gc.intersectWithLine(n,r,c,h);if(s.betweenPoints=S.betweenPoints,s.t=S.t,i[0]=S.x[0],i[1]=S.x[1],i[2]=S.x[2],!S.intersection)return o[0]=0,o[1]=0,s.intersect=0,s;const b=t.evaluatePosition(i,l,o,v);if(b.evaluation>=0)return b.dist2<=u?(s.intersect=1,s):(s.intersect=b.evaluation,s)}const p=Oo(c,f),g=Oo(f,d),y=Oo(d,c);e.line||(e.line=si.newInstance()),p>g&&p>y?(e.line.getPoints().setPoint(0,c),e.line.getPoints().setPoint(1,f)):g>y&&g>p?(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 S=[],b=[],x=[];for(let _=0;_<3;_++)S[_]=c[_]-d[_],b[_]=f[_]-d[_],x[_]=i[_]-d[_];return o[0]=dn(x,S)/y,o[1]=dn(x,b)/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 v=[],p=[],g=[];let y=0,m=0;const S=[];let b,x,_,C=[];const T=[],D=[],M=[];o.subId=0,a[2]=0,e.points.getPoint(1,u),e.points.getPoint(2,c),e.points.getPoint(0,f),L3(u,c,f,d),gc.generalizedProjectPoint(n,u,d,M);let E=0;for(s=0;s<3;s++)d[s]<0?h=-d[s]:h=d[s],h>E&&(E=h,m=s);for(l=0,s=0;s<3;s++)s!==m&&(S[l++]=s);for(s=0;s<2;s++)v[s]=M[S[s]]-f[S[s]],p[s]=u[S[s]]-f[S[s]],g[s]=c[S[s]]-f[S[s]];if(y=Jb(p,g),y===0)return a[0]=0,a[1]=0,o.evaluation=-1,o;if(a[0]=Jb(v,g)/y,a[1]=Jb(p,v)/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=Oo(M,n),r[0]=M[0],r[1]=M[1],r[2]=M[2]),o.evaluation=1;else{let k;if(r){if(i[1]<0&&i[2]<0)for(b=Oo(n,f),x=si.distanceToLine(n,u,f,k,T),_=si.distanceToLine(n,f,c,k,D),b<x?(o.dist2=b,C=f):(o.dist2=x,C=T),_<o.dist2&&(o.dist2=_,C=D),s=0;s<3;s++)r[s]=C[s];else if(i[2]<0&&i[0]<0)for(b=Oo(n,u),x=si.distanceToLine(n,u,f,k,T),_=si.distanceToLine(n,u,c,k,D),b<x?(o.dist2=b,C=u):(o.dist2=x,C=T),_<o.dist2&&(o.dist2=_,C=D),s=0;s<3;s++)r[s]=C[s];else if(i[1]<0&&i[0]<0)for(b=Oo(n,c),x=si.distanceToLine(n,c,f,k,T),_=si.distanceToLine(n,u,c,k,D),b<x?(o.dist2=b,C=c):(o.dist2=x,C=T),_<o.dist2&&(o.dist2=_,C=D),s=0;s<3;s++)r[s]=C[s];else if(i[0]<0){const R=si.distanceToLine(n,u,c,r);o.dist2=R.distance}else if(i[1]<0){const R=si.distanceToLine(n,c,f,r);o.dist2=R.distance}else if(i[2]<0){const R=si.distanceToLine(n,u,f,r);o.dist2=R.distance}}o.evaluation=0}return o},t.evaluateLocation=(n,r,a)=>{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 fYe={};function jZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,fYe,n),d_.extend(t,e,n),cYe(t,e)}const dYe=j.newInstance(jZ,"vtkTriangle");var hYe={newInstance:dYe,extend:jZ,...uYe};const l2=["verts","lines","polys","strips"],{vtkWarningMacro:YF}=j,pYe={[qn.VTK_LINE]:si,[qn.VTK_POLY_LINE]:si,[qn.VTK_TRIANGLE]:hYe};function vYe(t,e){e.classHierarchy.push("vtkPolyData");function n(a){return a.replace(/(?:^\w|[A-Z]|\b\w)/g,i=>i.toUpperCase()).replace(/\s+/g,"")}l2.forEach(a=>{t[`getNumberOf${n(a)}`]=()=>e[a].getNumberOfCells(),e[a]?e[a]=Uo(e[a]):e[a]=jF.newInstance()}),t.getNumberOfCells=()=>l2.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),l2.forEach(o=>{e[o]=jF.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((v,p)=>{d[p]=h,c[p]=v>1?qn.VTK_POLY_VERTEX:qn.VTK_VERTEX,h+=v+1}),d=d.subarray(a),c=c.subarray(a)}if(i){let h=0;e.lines.getCellSizes().forEach((v,p)=>{d[p]=h,c[p]=v>2?qn.VTK_POLY_LINE:qn.VTK_LINE,v===1&&YF("Building VTK_LINE ",p," with only one point, but VTK_LINE needs at least two points. Check the input."),h+=v+1}),d=d.subarray(i),c=c.subarray(i)}if(o){let h=0;e.polys.getCellSizes().forEach((v,p)=>{switch(d[p]=h,v){case 3:c[p]=qn.VTK_TRIANGLE;break;case 4:c[p]=qn.VTK_QUAD;break;default:c[p]=qn.VTK_POLYGON;break}v<3&&YF("Building VTK_TRIANGLE ",p," with less than three points, but VTK_TRIANGLE needs at least three points. Check the input."),h+=v+1}),d+=d.subarray(o),c+=c.subarray(o)}if(s){let h=0;c.fill(qn.VTK_TRIANGLE_STRIP,0,s),e.strips.getCellSizes().forEach((v,p)=>{d[p]=h,h+=v+1})}e.cells=Jje.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=Hje.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 qn.VTK_VERTEX:case qn.VTK_POLY_VERTEX:o=e.verts;break;case qn.VTK_LINE:case qn.VTK_POLY_LINE:o=e.lines;break;case qn.VTK_TRIANGLE:case qn.VTK_QUAD:case qn.VTK_POLYGON:o=e.polys;break;case qn.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||pYe[o.cellType].newInstance();return s.initialize(t.getPoints(),o.cellPointIds),s}}const gYe={};function YZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,gYe,n),sYe.extend(t,e,n),j.get(t,e,["cells","links"]),j.setGet(t,e,["verts","lines","polys","strips"]),vYe(t,e)}const yYe=j.newInstance(YZ,"vtkPolyData");var Ta={newInstance:yYe,extend:YZ};function mYe(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 SYe=(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;h<r;h++){const v=[...f];u/=2,c/=2,f=new Uint8ClampedArray(u*c*l);const p=l*u;let g=0;for(let m=0;m<f.length;m+=l){m%p===0&&(g+=2*l*u);for(let S=0;S<l;S++){let b=v[g+S];b+=v[g+l+S],b+=v[g-2*p+S],b+=v[g-2*p+l+S],b/=4,f[m+S]=b}g+=2*l}let y=[...f];for(let m=0;m<f.length;m+=l)for(let S=0;S<l;S++){let b=-(o.length-1)/2,x=s,_=0;for(let C=0;C<o.length;C++){let T=m+S+b*l;const D=T%p-(m+S)%p;D>l&&(T+=p),D<-l&&(T-=p),y[T]?_+=y[T]*o[C]:x-=o[C],b+=1}f[m+S]=_/x}y=[...f];for(let m=0;m<f.length;m+=l)for(let S=0;S<l;S++){let b=-(o.length-1)/2,x=s,_=0;for(let C=0;C<o.length;C++){const T=m+S+b*p;y[T]?_+=y[T]*o[C]:x-=o[C],b+=1}f[m+S]=_/x}d.push(f)}return d},bYe={image:null,canvas:null,jsImageData:null,imageLoaded:!1,repeat:!1,interpolate:!1,edgeClamp:!1,mipLevel:0,resizable:!1};function XZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,bYe,n),j.obj(t,e),j.algo(t,e,6,0),j.get(t,e,["canvas","image","jsImageData","imageLoaded","resizable"]),j.setGet(t,e,["repeat","edgeClamp","interpolate","mipLevel"]),mYe(t,e)}const wYe=j.newInstance(XZ,"vtkTexture"),_Ye={generateMipmaps:SYe};var gC={newInstance:wYe,extend:XZ,..._Ye};const xYe=[[-1,0,0],[1,0,0],[0,-1,0],[0,1,0],[0,0,-1],[0,0,1]],XF=[[8,7,11,3],[9,1,10,5],[4,9,0,8],[2,11,6,10],[0,3,2,1],[4,5,6,7]],W1=[[0,1],[1,3],[2,3],[0,2],[4,5],[5,7],[6,7],[4,6],[0,4],[1,5],[3,7],[2,6]],qF=[0,1,0,1,0,1,0,1,2,2,2,2],tr=[[1,2],[1,2],[0,2],[0,2],[0,1],[0,1]],qt=new Float64Array(3),K1=new Float64Array(3),On=new Float64Array(3),Hf=new Float64Array(3),Zc=new Float64Array(3),j1=new Float64Array(3),u2=new Float64Array(16);function c2(t,e){t.strokeStyle=e.strokeColor,t.lineWidth=e.strokeSize,t.fillStyle=e.fontColor,t.font=`${e.fontStyle} ${e.fontSize}px ${e.fontFamily}`}function CYe(t,e){e.classHierarchy.push("vtkCubeAxesActorHelper"),t.setRenderable=n=>{e.renderable!==n&&(e.renderable=n,e.tmActor.addTexture(e.renderable.getTmTexture()),e.tmActor.setProperty(n.getProperty()),e.tmActor.setParentProp(n),t.modified())},t.createPolyDataForOneLabel=(n,r,a,i,o,s,l)=>{const u=e.renderable.get_tmAtlas().get(n);if(!u)return;const c=e.renderable.getTextPolyData().getPoints().getData(),f=e.lastSize;qt[0]=c[r*3],qt[1]=c[r*3+1],qt[2]=c[r*3+2],En(On,qt,a),On[0]+=.1,En(K1,On,i),zu(Zc,K1,qt),On[0]-=.1,On[1]+=.1,En(K1,On,i),zu(j1,K1,qt);for(let v=0;v<3;v++)Zc[v]/=.5*.1*f[0],j1[v]/=.5*.1*f[1];let d=l.ptIdx,h=l.cellIdx;qt[0]=c[r*3],qt[1]=c[r*3+1],qt[2]=c[r*3+2],o[0]<-.5?Tu(On,Zc,o[0]*s-u.width):o[0]>.5?Tu(On,Zc,o[0]*s):Tu(On,Zc,o[0]*s-u.width/2),jg(qt,qt,On),Tu(On,j1,o[1]*s-u.height/2),jg(qt,qt,On),l.points[d*3]=qt[0],l.points[d*3+1]=qt[1],l.points[d*3+2]=qt[2],l.tcoords[d*2]=u.tcoords[0],l.tcoords[d*2+1]=u.tcoords[1],d++,Tu(On,Zc,u.width),jg(qt,qt,On),l.points[d*3]=qt[0],l.points[d*3+1]=qt[1],l.points[d*3+2]=qt[2],l.tcoords[d*2]=u.tcoords[2],l.tcoords[d*2+1]=u.tcoords[3],d++,Tu(On,j1,u.height),jg(qt,qt,On),l.points[d*3]=qt[0],l.points[d*3+1]=qt[1],l.points[d*3+2]=qt[2],l.tcoords[d*2]=u.tcoords[4],l.tcoords[d*2+1]=u.tcoords[5],d++,Tu(On,Zc,u.width),zu(qt,qt,On),l.points[d*3]=qt[0],l.points[d*3+1]=qt[1],l.points[d*3+2]=qt[2],l.tcoords[d*2]=u.tcoords[6],l.tcoords[d*2+1]=u.tcoords[7],d++,l.polys[h*4]=3,l.polys[h*4+1]=d-4,l.polys[h*4+2]=d-3,l.polys[h*4+3]=d-2,h++,l.polys[h*4]=3,l.polys[h*4+1]=d-4,l.polys[h*4+2]=d-2,l.polys[h*4+3]=d-1,l.ptIdx+=4,l.cellIdx+=2},t.updateTexturePolyData=()=>{const n=e.camera.getCompositeProjectionMatrix(e.lastAspectRatio,-1,1);Wn(n,n);const r=e.renderable.getTextValues().length,a=r*4,i=r*2,o=new Float64Array(a*3),s=new Uint16Array(i*4),l=new Float32Array(a*2);Ua(u2,n);const u={ptIdx:0,cellIdx:0,polys:s,points:o,tcoords:l};let c=0,f=0,d=0;const h=e.renderable.getTextPolyData().getPoints().getData(),v=e.renderable.getTextValues();for(;c<h.length/3;){qt[0]=h[c*3],qt[1]=h[c*3+1],qt[2]=h[c*3+2],En(On,qt,n),qt[0]=h[c*3+3],qt[1]=h[c*3+4],qt[2]=h[c*3+5],En(Hf,qt,n),zu(On,On,Hf);const g=[On[0],On[1]];k9e(g),t.createPolyDataForOneLabel(v[f],c,n,u2,g,e.renderable.getAxisTitlePixelOffset(),u),c+=2,f++;for(let y=0;y<e.renderable.getTickCounts()[d];y++)t.createPolyDataForOneLabel(v[f],c,n,u2,g,e.renderable.getTickLabelPixelOffset(),u),c++,f++;d++}const p=_n.newInstance({numberOfComponents:2,values:l,name:"TextureCoordinates"});e.tmPolyData.getPointData().setTCoords(p),e.tmPolyData.getPoints().setData(o,3),e.tmPolyData.getPoints().modified(),e.tmPolyData.getPolys().setData(s,1),e.tmPolyData.getPolys().modified(),e.tmPolyData.modified()},t.updateAPISpecificData=(n,r,a)=>{(e.lastSize[0]!==n[0]||e.lastSize[1]!==n[1])&&(e.lastSize[0]=n[0],e.lastSize[1]=n[1],e.lastAspectRatio=n[0]/n[1],e.forceUpdate=!0),e.camera=r,t.updateTexturePolyData()}}const TYe=j.newInstance(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{renderable:null};Object.assign(e,{},n),j.obj(t,e),e.tmPolyData=Ta.newInstance(),e.tmMapper=qs.newInstance(),e.tmMapper.setInputData(e.tmPolyData),e.tmActor=yc.newInstance({parentProp:t}),e.tmActor.setMapper(e.tmMapper),j.setGet(t,e,["renderable"]),j.get(t,e,["lastSize","lastAspectRatio","axisTextStyle","tickTextStyle","tmActor","ticks"]),e.forceUpdate=!1,e.lastRedrawTime={},j.obj(e.lastRedrawTime,{mtime:0}),e.lastRebuildTime={},j.obj(e.lastRebuildTime,{mtime:0}),e.lastSize=[-1,-1],e.lastTickBounds=[],CYe(t,e)},"vtkCubeAxesActorHelper");function EYe(t,e){e.classHierarchy.push("vtkCubeAxesActor"),t.setCamera=r=>{e.camera!==r&&(e.cameraModifiedSub&&(e.cameraModifiedSub.unsubscribe(),e.cameraModifiedSub=null),e.camera=r,r&&(e.cameraModifiedSub=r.onModified(t.update)),t.update(),t.modified())},t.computeFacesToDraw=()=>{const r=e.camera.getViewMatrix();Wn(r,r);let a=!1;const i=zn.getDiagonalLength(e.dataBounds),o=Math.sin(e.faceVisibilityAngle*Math.PI/180);for(let s=0;s<6;s++){let l=!1;const u=Math.floor(s/2),c=(u+1)%3,f=(u+2)%3;e.dataBounds[c*2]!==e.dataBounds[c*2+1]&&e.dataBounds[f*2]!==e.dataBounds[f*2+1]&&(qt[u]=e.dataBounds[s]-.1*i*xYe[s][u],qt[c]=.5*(e.dataBounds[c*2]+e.dataBounds[c*2+1]),qt[f]=.5*(e.dataBounds[f*2]+e.dataBounds[f*2+1]),En(On,qt,r),qt[u]=e.dataBounds[s],En(Hf,qt,r),zu(On,Hf,On),Ju(On,On),l=On[2]>o,e.camera.getParallelProjection()||(Ju(Hf,Hf),l=u3(Hf,On)>o)),l!==e.lastFacesToDraw[s]&&(e.lastFacesToDraw[s]=l,a=!0)}return a},t.updatePolyData=(r,a,i)=>{let o=0,s=0;o+=8;let l=0;for(let h=0;h<12;h++)a[h]>0&&l++;if(s+=l,e.gridLines)for(let h=0;h<6;h++)r[h]&&(o+=i[tr[h][0]].length*2+i[tr[h][1]].length*2,s+=i[tr[h][0]].length+i[tr[h][1]].length);const u=new Float64Array(o*3),c=new Uint32Array(s*3);let f=0,d=0;for(let h=0;h<2;h++)for(let v=0;v<2;v++)for(let p=0;p<2;p++)u[f*3]=e.dataBounds[p],u[f*3+1]=e.dataBounds[2+v],u[f*3+2]=e.dataBounds[4+h],f++;for(let h=0;h<12;h++)a[h]>0&&(c[d*3]=2,c[d*3+1]=W1[h][0],c[d*3+2]=W1[h][1],d++);if(e.gridLines){for(let h=0;h<6;h++)if(r[h]){const v=Math.floor(h/2);let p=i[tr[h][0]];for(let g=0;g<p.length;g++)u[f*3+v]=e.dataBounds[h],u[f*3+tr[h][0]]=p[g],u[f*3+tr[h][1]]=e.dataBounds[tr[h][1]*2],f++,u[f*3+v]=e.dataBounds[h],u[f*3+tr[h][0]]=p[g],u[f*3+tr[h][1]]=e.dataBounds[tr[h][1]*2+1],f++,c[d*3]=2,c[d*3+1]=f-2,c[d*3+2]=f-1,d++;p=i[tr[h][1]];for(let g=0;g<p.length;g++)u[f*3+v]=e.dataBounds[h],u[f*3+tr[h][1]]=p[g],u[f*3+tr[h][0]]=e.dataBounds[tr[h][0]*2],f++,u[f*3+v]=e.dataBounds[h],u[f*3+tr[h][1]]=p[g],u[f*3+tr[h][0]]=e.dataBounds[tr[h][0]*2+1],f++,c[d*3]=2,c[d*3+1]=f-2,c[d*3+2]=f-1,d++}}e.polyData.getPoints().setData(u,3),e.polyData.getPoints().modified(),e.polyData.getLines().setData(c,1),e.polyData.getLines().modified(),e.polyData.modified()},t.updateTextData=(r,a,i,o)=>{let s=0;for(let h=0;h<12;h++)a[h]===1&&(s+=2,s+=i[qF[h]].length);const l=e.polyData.getPoints().getData(),u=new Float64Array(s*3);let c=0,f=0,d=0;for(let h=0;h<6;h++)if(r[h])for(let v=0;v<4;v++){const p=XF[h][v];if(a[p]===1){const g=qF[p],y=W1[p][0]*3,m=W1[p][1]*3;u[c*3]=.5*(l[y]+l[m]),u[c*3+1]=.5*(l[y+1]+l[m+1]),u[c*3+2]=.5*(l[y+2]+l[m+2]),c++;const S=Math.floor(h/2);u[c*3+S]=e.dataBounds[h],u[c*3+tr[h][0]]=.5*(e.dataBounds[tr[h][0]*2]+e.dataBounds[tr[h][0]*2+1]),u[c*3+tr[h][1]]=.5*(e.dataBounds[tr[h][1]*2]+e.dataBounds[tr[h][1]*2+1]),c++,e.textValues[f]=e.axisLabels[g],f++;const b=(g+1)%3,x=(g+2)%3,_=i[g],C=o[g];e.tickCounts[d]=_.length;for(let T=0;T<_.length;T++)u[c*3+g]=_[T],u[c*3+b]=l[y+b],u[c*3+x]=l[y+x],c++,e.textValues[f]=C[T],f++;d++}}e.textPolyData.getPoints().setData(u,3),e.textPolyData.modified()},t.update=()=>{if(!e.camera)return;const r=t.computeFacesToDraw(),a=e.lastFacesToDraw;let i=!1;for(let o=0;o<6;o++)e.dataBounds[o]!==e.lastTickBounds[o]&&(i=!0,e.lastTickBounds[o]=e.dataBounds[o]);if(r||i||e.forceUpdate){const o=new Array(12).fill(0);for(let u=0;u<6;u++)if(a[u])for(let c=0;c<4;c++)o[XF[u][c]]++;const s=[],l=[];for(let u=0;u<3;u++){const c=cC().domain([e.dataBounds[u*2],e.dataBounds[u*2+1]]);s[u]=c.ticks(5);const f=c.tickFormat(5);l[u]=s[u].map(f)}t.updatePolyData(a,o,s),t.updateTextData(a,o,s,l),(i||e.forceUpdate)&&t.updateTextureAtlas(l)}e.forceUpdate=!1},t.updateTextureAtlas=r=>{e.tmContext.textBaseline="bottom",e.tmContext.textAlign="left",e._tmAtlas.clear();let a=0,i=1;for(let o=0;o<3;o++){if(!e._tmAtlas.has(e.axisLabels[o])){c2(e.tmContext,e.axisTextStyle);const s=e.tmContext.measureText(e.axisLabels[o]),l={height:s.actualBoundingBoxAscent+2,startingHeight:i,width:s.width+2,textStyle:e.axisTextStyle};e._tmAtlas.set(e.axisLabels[o],l),i+=l.height,a<l.width&&(a=l.width)}c2(e.tmContext,e.tickTextStyle);for(let s=0;s<r[o].length;s++)if(!e._tmAtlas.has(r[o][s])){const l=e.tmContext.measureText(r[o][s]),u={height:l.actualBoundingBoxAscent+2,startingHeight:i,width:l.width+2,textStyle:e.tickTextStyle};e._tmAtlas.set(r[o][s],u),i+=u.height,a<u.width&&(a=u.width)}}a=Vo(a),i=Vo(i),e._tmAtlas.forEach(o=>{o.tcoords=[0,(i-o.startingHeight-o.height)/i,o.width/a,(i-o.startingHeight-o.height)/i,o.width/a,(i-o.startingHeight)/i,0,(i-o.startingHeight)/i]}),e.tmCanvas.width=a,e.tmCanvas.height=i,e.tmContext.textBaseline="bottom",e.tmContext.textAlign="left",e.tmContext.clearRect(0,0,a,i),e._tmAtlas.forEach((o,s)=>{c2(e.tmContext,o.textStyle),e.tmContext.fillText(s,1,o.startingHeight+o.height-1)}),e.tmTexture.setCanvas(e.tmCanvas),e.tmTexture.modified()},t.onModified(()=>{e.forceUpdate=!0,t.update()}),t.setTickTextStyle=r=>{e.tickTextStyle={...e.tickTextStyle,...r},t.modified()},t.setAxisTextStyle=r=>{e.axisTextStyle={...e.axisTextStyle,...r},t.modified()},t.get_tmAtlas=()=>e._tmAtlas,t.getBounds=()=>(t.update(),zn.setBounds(e.bounds,e.gridActor.getBounds()),zn.scaleAboutCenter(e.bounds,e.boundsScaleFactor,e.boundsScaleFactor,e.boundsScaleFactor),e.bounds);const n=j.chain(t.setProperty,e.gridActor.setProperty);t.setProperty=r=>n(r)[0]}function MYe(t){return{boundsScaleFactor:1.3,camera:null,dataBounds:[...zn.INIT_BOUNDS],faceVisibilityAngle:8,gridLines:!0,axisLabels:null,axisTitlePixelOffset:35,axisTextStyle:{fontColor:"white",fontStyle:"normal",fontSize:18,fontFamily:"serif"},tickLabelPixelOffset:12,tickTextStyle:{fontColor:"white",fontStyle:"normal",fontSize:14,fontFamily:"serif"},...t}}function qZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,MYe(n)),yc.extend(t,e,n),e.lastFacesToDraw=[!1,!1,!1,!1,!1,!1],e.axisLabels=["X-Axis","Y-Axis","Z-Axis"],e.tickCounts=[],e.textValues=[],e.lastTickBounds=[],e.tmCanvas=document.createElement("canvas"),e.tmContext=e.tmCanvas.getContext("2d"),e._tmAtlas=new Map,e.tmTexture=gC.newInstance(),e.tmTexture.setInterpolate(!1),t.getProperty().setDiffuse(0),t.getProperty().setAmbient(1),e.gridMapper=qs.newInstance(),e.polyData=Ta.newInstance(),e.gridMapper.setInputData(e.polyData),e.gridActor=yc.newInstance(),e.gridActor.setMapper(e.gridMapper),e.gridActor.setProperty(t.getProperty()),e.gridActor.setParentProp(t),e.textPolyData=Ta.newInstance(),j.setGet(t,e,["axisTitlePixelOffset","boundsScaleFactor","faceVisibilityAngle","gridLines","tickLabelPixelOffset"]),j.setGetArray(t,e,["dataBounds"],6),j.setGetArray(t,e,["axisLabels"],3),j.get(t,e,["axisTextStyle","tickTextStyle","camera","tmTexture","textValues","textPolyData","tickCounts","gridActor"]),EYe(t,e)}const DYe=j.newInstance(qZ,"vtkCubeAxesActor");var ZZ={newInstance:DYe,extend:qZ,newCubeAxesActorHelper:TYe};function kYe(t,e){e.classHierarchy.push("vtkOpenGLCubeAxesActor"),t.buildPass=n=>{n&&(e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent(),e.CubeAxesActorHelper.getRenderable()||e.CubeAxesActorHelper.setRenderable(e.renderable),t.prepareNodes(),t.addMissingNode(e.CubeAxesActorHelper.getTmActor()),t.addMissingNode(e.renderable.getGridActor()),t.removeUnusedNodes())},t.opaquePass=(n,r)=>{if(n){const a=e._openGLRenderer?e._openGLRenderer.getRenderable().getActiveCamera():null,i=e._openGLRenderer.getTiledSizeAndOrigin();e.CubeAxesActorHelper.updateAPISpecificData([i.usize,i.vsize],a,e._openGLRenderWindow.getRenderable())}}}const RYe={};function LYe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,RYe,n),dr.extend(t,e,n),e.CubeAxesActorHelper=ZZ.newCubeAxesActorHelper(),kYe(t,e)}const OYe=Yn(LYe,"vtkOpenGLCubeAxesActor");us("vtkCubeAxesActor",OYe);const C0={ARRAY_BUFFER:0,ELEMENT_ARRAY_BUFFER:1,TEXTURE_BUFFER:2};var QZ={ObjectType:C0};const{ObjectType:tw}=QZ,AYe={};function NYe(t,e){e.classHierarchy.push("vtkOpenGLBufferObject");function n(s){switch(s){case tw.ELEMENT_ARRAY_BUFFER:return e.context.ELEMENT_ARRAY_BUFFER;case tw.TEXTURE_BUFFER:if("TEXTURE_BUFFER"in e.context)return e.context.TEXTURE_BUFFER;case tw.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 VYe={objectType:tw.ARRAY_BUFFER,context:null,allocatedGPUMemoryInBytes:0};function JZ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,VYe,n),j.obj(t,e),j.get(t,e,["_openGLRenderWindow","allocatedGPUMemoryInBytes"]),j.moveToProtected(t,e,["openGLRenderWindow"]),NYe(t,e)}const BYe=j.newInstance(JZ);var eQ={newInstance:BYe,extend:JZ,...AYe,...QZ};const{vtkErrorMacro:ZF}=j;function $Ye(t,e){const n=new Float64Array(3);E7e(n,e);const r=new Float64Array(16);return bq(r,Vd(),t,n),r}function IYe(t,e){return t===null||e===null?!1:!(MF(t,[0,0,0])&&MF(e,[1,1,1]))}function PYe(t,e){e.classHierarchy.push("vtkOpenGLCellArrayBufferObject"),t.setType(C0.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=eQ.newInstance()),e.colorBO.setOpenGLRenderWindow(e._openGLRenderWindow)):e.colorBO=null,e.stride=4*e.blockSize;let h=0,v=0,p=0,g=0,y=0,m=0,S;const b={anythingToPoints(L,N,H){for(let K=0;K<L;++K)S(N[H+K])},linesToWireframe(L,N,H){for(let K=0;K<L-1;++K)S(N[H+K]),S(N[H+K+1])},polysToWireframe(L,N,H){if(L>2)for(let K=0;K<L;++K)S(N[H+K]),S(N[H+(K+1)%L])},stripsToWireframe(L,N,H){if(L>2){for(let K=0;K<L-1;++K)S(N[H+K]),S(N[H+K+1]);for(let K=0;K<L-2;K++)S(N[H+K]),S(N[H+K+2])}},polysToSurface(L,N,H){for(let K=0;K<L-2;K++)S(N[H+0]),S(N[H+K+1]),S(N[H+K+2])},stripsToSurface(L,N,H){for(let K=0;K<L-2;K++)S(N[H+K]),S(N[H+K+1+K%2]),S(N[H+K+1+(K+1)%2])}},x={anythingToPoints(L,N){return L},linesToWireframe(L,N){return L>1?(L-1)*2:0},polysToWireframe(L,N){return L>2?L*2:0},stripsToWireframe(L,N){return L>2?L*4-6:0},polysToSurface(L,N){return L>2?(L-2)*3:0},stripsToSurface(L,N,H){return L>2?(L-2)*3:0}};let _=null,C=null;a===Ei.POINTS||r==="verts"?(_=b.anythingToPoints,C=x.anythingToPoints):a===Ei.WIREFRAME||r==="lines"?(_=b[`${r}ToWireframe`],C=x[`${r}ToWireframe`]):(_=b[`${r}ToSurface`],C=x[`${r}ToSurface`]);const T=n.getData(),D=T.length;let M=0;for(let L=0;L<D;)M+=C(T[L],T),L+=T[L]+1;let E=null;const k=new Float32Array(M*e.blockSize);c&&(E=new Uint8Array(M*4));let R=0,O=0,B=0,$=0;for(let L=0;L<3;++L){const N=i.points.getRange(L),H=N[1]-N[0];B+=H*H;const K=.5*(N[1]+N[0]);$+=K*K}if(B>0&&(Math.abs($)/B>1e6||Math.abs(Math.log10(B))>3||B===0&&$>1e6)){const L=new Float64Array(3),N=new Float64Array(3);for(let H=0;H<3;++H){const K=i.points.getRange(H),Q=K[1]-K[0];L[H]=.5*(K[1]+K[0]),N[H]=Q>0?1/Q:1}t.setCoordShiftAndScale(L,N)}else e.coordShiftAndScaleEnabled===!0&&t.setCoordShiftAndScale(null,null);if(o)if(!o.points&&!o.cells)o.points=new Int32Array(M),o.cells=new Int32Array(M);else{const L=new Int32Array(M+o.points.length);L.set(o.points),o.points=L;const N=new Int32Array(M+o.cells.length);N.set(o.cells),o.cells=N}let F=i.vertexOffset;S=function(N){if(o&&(o.points[F]=N,o.cells[F]=m+i.cellOffset),++F,h=N*3,e.coordShiftAndScaleEnabled?(k[R++]=(s[h++]-e.coordShift[0])*e.coordScale[0],k[R++]=(s[h++]-e.coordShift[1])*e.coordScale[1],k[R++]=(s[h++]-e.coordShift[2])*e.coordScale[2]):(k[R++]=s[h++],k[R++]=s[h++],k[R++]=s[h++]),l!==null&&(i.haveCellNormals?v=(m+i.cellOffset)*3:v=N*3,k[R++]=l[v++],k[R++]=l[v++],k[R++]=l[v++]),e.customData.forEach(H=>{y=N*H.components;for(let K=0;K<H.components;++K)k[R++]=H.data[y++]}),u!==null){p=N*d;for(let H=0;H<d;++H)k[R++]=u[p++]}c!==null&&(i.haveCellScalars?g=(m+i.cellOffset)*f:g=N*f,E[O++]=c[g++],E[O++]=c[g++],E[O++]=c[g++],E[O++]=f===4?c[g++]:255)};for(let L=0;L<D;)_(T[L],T,L+1),L+=T[L]+1,m++;return e.elementCount=M,t.upload(k,C0.ARRAY_BUFFER),e.colorBO&&(e.colorBOStride=4,e.colorBO.upload(E,C0.ARRAY_BUFFER)),m},t.setCoordShiftAndScale=(n,r)=>{if(n!==null&&(n.constructor!==Float64Array||n.length!==3)){ZF("Wrong type for coordShift, expected vec3 or null");return}if(r!==null&&(r.constructor!==Float64Array||r.length!==3)){ZF("Wrong type for coordScale, expected vec3 or null");return}(e.coordShift===null||n===null||!DF(n,e.coordShift))&&(e.coordShift=n),(e.coordScale===null||r===null||!DF(r,e.coordScale))&&(e.coordScale=r),e.coordShiftAndScaleEnabled=IYe(e.coordShift,e.coordScale),e.coordShiftAndScaleEnabled?e.inverseShiftAndScaleMatrix=$Ye(e.coordShift,e.coordScale):e.inverseShiftAndScaleMatrix=null}}const FYe={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 tQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,FYe,n),eQ.extend(t,e,n),j.setGet(t,e,["colorBO","elementCount","stride","colorBOStride","vertexOffset","normalOffset","tCoordOffset","tCoordComponents","colorOffset","colorComponents","customData"]),j.get(t,e,["coordShift","coordScale","coordShiftAndScaleEnabled","inverseShiftAndScaleMatrix"]),PYe(t,e)}const zYe=j.newInstance(tQ);var GYe={newInstance:zYe,extend:tQ};const{vtkErrorMacro:UYe}=j;function HYe(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 UYe(`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 WYe={shaderType:"Unknown",source:"",error:"",handle:0,dirty:!1,context:null};function nQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,WYe,n),j.obj(t,e),j.setGet(t,e,["shaderType","source","error","handle","context"]),HYe(t,e)}const KYe=j.newInstance(nQ,"vtkShader");var f2={newInstance:KYe,extend:nQ};const{vtkErrorMacro:ds}=j;function jYe(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 YYe(t,e){e.classHierarchy.push("vtkShaderProgram"),t.compileShader=()=>e.vertexShader.compile()?e.fragmentShader.compile()?!t.attachShader(e.vertexShader)||!t.attachShader(e.fragmentShader)?(ds(e.error),0):t.link()?(t.setCompiled(!0),1):(ds(`Links failed: ${e.error}`),0):(ds(e.fragmentShader.getSource().split(`
- `).map((n,r)=>`${r}: ${n}`).join(`
- `)),ds(e.fragmentShader.getError()),0):(ds(e.vertexShader.getSource().split(`
- `).map((n,r)=>`${r}: ${n}`).join(`
- `)),ds(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 ds(`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<a;o++)i[o-1]=arguments[o];let s=i;if(s.length===1&&Array.isArray(s[0])&&(s=s[0]),s.length!==3)throw new RangeError("Invalid number of values for array");return e.context.uniform3i(r,s[0],s[1],s[2]),!0},t.setUniform3iv=(n,r)=>{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<a;o++)i[o-1]=arguments[o];let s=i;if(s.length===1&&Array.isArray(s[0])&&(s=s[0]),s.length!==4)throw new RangeError("Invalid number of values for array");return e.context.uniform4f(r,s[0],s[1],s[2],s[3]),!0},t.setUniform4fv=(n,r)=>{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<a;o++)i[o-1]=arguments[o];let s=i;if(s.length===1&&Array.isArray(s[0])&&(s=s[0]),s.length!==4)throw new RangeError("Invalid number of values for array");return e.context.uniform4i(r,s[0],s[1],s[2],s[3]),!0},t.setUniform4iv=(n,r)=>{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):(ds("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 ds("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 XYe={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 rQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,XYe,n),e.attributesLocs={},e.uniformLocs={},e.vertexShader=f2.newInstance(),e.vertexShader.setShaderType("Vertex"),e.fragmentShader=f2.newInstance(),e.fragmentShader.setShaderType("Fragment"),e.geometryShader=f2.newInstance(),e.geometryShader.setShaderType("Geometry"),j.obj(t,e),j.get(t,e,["lastCameraMTime"]),j.setGet(t,e,["error","handle","compiled","bound","md5Hash","vertexShader","fragmentShader","geometryShader","linked"]),YYe(t,e)}const qYe=j.newInstance(rQ,"vtkShaderProgram");var Xe={newInstance:qYe,extend:rQ,substitute:jYe};function ZYe(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;r<e.buffers.length;++r){const a=e.buffers[r];e.context.bindBuffer(n.ARRAY_BUFFER,a.buffer);for(let i=0;i<a.attributes.length;++i){const o=a.attributes[i],s=o.isMatrix?o.size:1;for(let l=0;l<s;++l)n.enableVertexAttribArray(o.index+l),n.vertexAttribPointer(o.index+l,o.size,o.type,o.normalize,o.stride,o.offset+o.stride*l/o.size),o.divisor>0&&(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;r<e.buffers.length;++r){const a=e.buffers[r];e.context.bindBuffer(n.ARRAY_BUFFER,a.buffer);for(let i=0;i<a.attributes.length;++i){const o=a.attributes[i],s=o.isMatrix?o.size:1;for(let l=0;l<s;++l)n.enableVertexAttribArray(o.index+l),n.vertexAttribPointer(o.index+l,o.size,o.type,o.normalize,o.stride,o.offset+o.stride*l/o.size),o.divisor>0&&(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()!==C0.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 v=!1;for(let p=0;p<e.buffers.length;++p){const g=e.buffers[p];if(g.buffer===h.buffer){v=!0;let y=!1;for(let m=0;m<g.attributes.length;++m)g.attributes[m].name===a&&(y=!0,g.attributes[m]=h);y||g.attributes.push(h)}}v||e.buffers.push({buffer:h.buffer,attributes:[h]})}return!0},t.addAttributeMatrixWithDivisor=(n,r,a,i,o,s,l,u,c)=>{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 v=1;v<l;v++)d.enableVertexAttribArray(h+v),d.vertexAttribPointer(h+v,l,s,u,o,i+o*v/l),c>0&&(e.instancingExtension?e.instancingExtension.vertexAttribDivisorANGLE(h+v,1):d.vertexAttribDivisor(h+v,1));return!0},t.removeAttributeArray=n=>{if(!t.isReady()||e.handleProgram===0)return!1;if(!e.supported)for(let r=0;r<e.buffers.length;++r){const a=e.buffers[r];for(let i=0;i<a.attributes.length;++i)if(a.attributes[i].name===n)return a.attributes.splice(i,1),a.attributes.length||e.buffers.splice(r,1),!0}return!0},t.setOpenGLRenderWindow=n=>{e._openGLRenderWindow!==n&&(t.releaseGraphicsResources(),e._openGLRenderWindow=n,e.context=null,n&&(e.context=e._openGLRenderWindow.getContext()))}}const QYe={forceEmulation:!1,handleVAO:0,handleProgram:0,supported:!0,buffers:null,context:null};function aQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,QYe,n),e.buffers=[],j.obj(t,e),j.get(t,e,["supported"]),j.setGet(t,e,["forceEmulation"]),ZYe(t,e)}const JYe=j.newInstance(aQ,"vtkOpenGLVertexArrayObject");var iQ={newInstance:JYe,extend:aQ};const Eu={Start:0,Points:0,Lines:1,Tris:2,TriStrips:3,TrisEdges:4,TriStripsEdges:5,End:6};function eXe(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===Ei.POINTS||r===Eu.Points?e.context.POINTS:n===Ei.WIREFRAME||r===Eu.Lines||r===Eu.TrisEdges||r===Eu.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()<a.getMTime()||t.getShaderSourceTime().getMTime()<r.getMTime()),t.updateShaders=(n,r,a)=>{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===Eu.Points||r.getProperty().getRepresentation()===Ei.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=Xe.substitute(i,"//VTK::PositionVC::Dec",["//VTK::PositionVC::Dec","uniform float pointSize;"]).result,i=Xe.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=Xe.substitute(i,"//VTK::PositionVC::Dec",["//VTK::PositionVC::Dec","uniform vec2 viewportSize;","uniform float lineWidthStepSize;","uniform float halfLineWidth;"]).result,i=Xe.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===Eu.Points?2:e.primitiveType===Eu.Lines?4:6,t.getAllocatedGPUMemoryInBytes=()=>t.getCABO().getAllocatedGPUMemoryInBytes()}const tXe={context:null,program:null,shaderSourceTime:null,VAO:null,attributeUpdateTime:null,CABO:null,primitiveType:0,pointPicking:!1};function oQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,tXe,n),j.obj(t,e),e.shaderSourceTime={},j.obj(e.shaderSourceTime),e.attributeUpdateTime={},j.obj(e.attributeUpdateTime),j.setGet(t,e,["program","shaderSourceTime","VAO","attributeUpdateTime","CABO","primitiveType","pointPicking"]),e.program=Xe.newInstance(),e.VAO=iQ.newInstance(),e.CABO=GYe.newInstance(),eXe(t,e)}const nXe=j.newInstance(oQ);var Ov={newInstance:nXe,extend:oQ,primTypes:Eu};const rXe={CLAMP_TO_EDGE:0,REPEAT:1,MIRRORED_REPEAT:2},Wk={NEAREST:0,LINEAR:1,NEAREST_MIPMAP_NEAREST:2,NEAREST_MIPMAP_LINEAR:3,LINEAR_MIPMAP_NEAREST:4,LINEAR_MIPMAP_LINEAR:5};var sQ={Wrap:rXe,Filter:Wk};const lQ=new Float32Array(1),aXe=new Int32Array(lQ.buffer);function iXe(t){lQ[0]=t;const e=aXe[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 oXe(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 Io={fromHalf:oXe,toHalf:iXe};const{Wrap:bl,Filter:ea}=sQ,{VtkDataTypes:mn}=_n,{vtkDebugMacro:d2,vtkErrorMacro:hh,vtkWarningMacro:QF}=rl,{toHalf:sXe}=Io;function lXe(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(ea.LINEAR_MIPMAP_LINEAR):t.setMinificationFilter(ea.LINEAR),t.setMagnificationFilter(ea.LINEAR)):(t.setMinificationFilter(ea.NEAREST),t.setMagnificationFilter(ea.NEAREST)),e.renderable.getRepeat()&&(t.setWrapR(bl.REPEAT),t.setWrapS(bl.REPEAT),t.setWrapT(bl.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(ea.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(ea.LINEAR_MIPMAP_LINEAR));const f=e.renderable.getCanvas();t.create2DFromRaw(f.width,f.height,4,mn.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(ea.LINEAR_MIPMAP_LINEAR)),t.create2DFromRaw(f.width,f.height,4,mn.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 v=0;v<e.renderable.getNumberOfInputPorts();++v){const p=e.renderable.getInputData(v),g=p?p.getPointData().getScalars().getData():null;g&&h.push(g)}e.renderable.getInterpolate()&&d.getNumberOfComponents()===4&&(e.generateMipmap=!0,t.setMinificationFilter(ea.LINEAR_MIPMAP_LINEAR)),h.length%6===0?t.createCubeFromRaw(f[1]-f[0]+1,f[3]-f[2]+1,d.getNumberOfComponents(),d.getDataType(),h):t.create2DFromRaw(f[1]-f[0]+1,f[3]-f[2]+1,d.getNumberOfComponents(),d.getDataType(),d.getData()),t.activate(),t.sendParameters(),e.textureBuildTime.modified()}}e.handle&&t.activate()},t.destroyTexture=()=>{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:QF("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||d2(`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")&&QF("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||(d2("Unsupported internal texture type!"),d2(`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 mn.UNSIGNED_CHAR:return e.context.UNSIGNED_BYTE;case(e.oglNorm16Ext&&!e.useHalfFloat&&mn.SHORT):return e.context.SHORT;case(e.oglNorm16Ext&&!e.useHalfFloat&&mn.UNSIGNED_SHORT):return e.context.UNSIGNED_SHORT;case(e.useHalfFloat&&mn.SHORT):return e.context.HALF_FLOAT;case(e.useHalfFloat&&mn.UNSIGNED_SHORT):return e.context.HALF_FLOAT;case mn.FLOAT:case mn.VOID:default:return e.context.FLOAT}switch(u){case mn.UNSIGNED_CHAR:return e.context.UNSIGNED_BYTE;case mn.FLOAT:case mn.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 ea.NEAREST:return e.context.NEAREST;case ea.LINEAR:return e.context.LINEAR;case ea.NEAREST_MIPMAP_NEAREST:return e.context.NEAREST_MIPMAP_NEAREST;case ea.NEAREST_MIPMAP_LINEAR:return e.context.NEAREST_MIPMAP_LINEAR;case ea.LINEAR_MIPMAP_NEAREST:return e.context.LINEAR_MIPMAP_NEAREST;case ea.LINEAR_MIPMAP_LINEAR:return e.context.LINEAR_MIPMAP_LINEAR;default:return e.context.NEAREST}},t.getOpenGLWrapMode=u=>{switch(u){case bl.CLAMP_TO_EDGE:return e.context.CLAMP_TO_EDGE;case bl.REPEAT:return e.context.REPEAT;case bl.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!==mn.FLOAT&&e.openGLDataType===e.context.FLOAT)for(let p=0;p<c.length;p++)if(c[p]){const g=c[p].length>h?c[p].subarray(0,h):c[p];d.push(new Float32Array(g))}else d.push(null);if(u!==mn.UNSIGNED_CHAR&&e.openGLDataType===e.context.UNSIGNED_BYTE)for(let p=0;p<c.length;p++)if(c[p]){const g=c[p].length>h?c[p].subarray(0,h):c[p];d.push(new Uint8Array(g))}else d.push(null);let v=!1;if(e._openGLRenderWindow.getWebgl2())v=e.openGLDataType===e.context.HALF_FLOAT;else{const p=e.context.getExtension("OES_texture_half_float");v=p&&e.openGLDataType===p.HALF_FLOAT_OES}if(v)for(let p=0;p<c.length;p++)if(c[p]){const g=new Uint16Array(h),y=c[p];for(let m=0;m<h;m++)g[m]=sXe(y[m]);d.push(g)}else d.push(null);if(d.length===0)for(let p=0;p<c.length;p++)d.push(c[p]);return d}function r(u){if(e._openGLRenderWindow.getWebgl2())return u;const c=[],f=e.width,d=e.height,h=e.components;if(u&&(!F1(f)||!F1(d))){const v=e.context.getExtension("OES_texture_half_float"),p=Vo(f),g=Vo(d),y=p*g*e.components;for(let m=0;m<u.length;m++)if(u[m]!==null){let S=null;const b=d/g,x=f/p;let _=!1;e.openGLDataType===e.context.FLOAT?S=new Float32Array(y):v&&e.openGLDataType===v.HALF_FLOAT_OES?(S=new Uint16Array(y),_=!0):S=new Uint8Array(y);for(let C=0;C<g;C++){const T=C*p*h,D=C*b;let M=Math.floor(D),E=Math.ceil(D);E>=d&&(E=d-1);const k=D-M,R=1-k;M=M*f*h,E=E*f*h;for(let O=0;O<p;O++){const B=O*h,$=O*x;let V=Math.floor($),F=Math.ceil($);F>=f&&(F=f-1);const L=$-V;V*=h,F*=h;for(let N=0;N<h;N++)_?S[T+B+N]=Io.toHalf(Io.fromHalf(u[m][M+V+N])*R*(1-L)+Io.fromHalf(u[m][M+F+N])*R*L+Io.fromHalf(u[m][E+V+N])*k*(1-L)+Io.fromHalf(u[m][E+F+N])*k*L):S[T+B+N]=u[m][M+V+N]*R*(1-L)+u[m][M+F+N]*R*L+u[m][E+V+N]*k*(1-L)+u[m][E+F+N]*k*L}}c.push(S),e.width=p,e.height=g}else c.push(null)}if(c.length===0)for(let v=0;v<u.length;v++)c.push(u[v]);return c}function a(u){var c;return e._openGLRenderWindow?e.resizable||(c=e.renderable)!=null&&c.getResizable()?!1:e._openGLRenderWindow.getWebgl2()?!(e._openGLRenderWindow.getGLInformations().RENDERER.value.match(/WebKit/gi)&&navigator.platform.match(/Mac/gi)&&e.oglNorm16Ext&&(u===mn.UNSIGNED_SHORT||u===mn.SHORT)):!1:!1}t.create2DFromRaw=function(u,c,f,d,h){let v=arguments.length>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 hh("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,v),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),v&&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 hh("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 v=n(d,h),p=r(v),g=[];let y=e.width,m=e.height;for(let S=0;S<p.length;S++){S%6===0&&S!==0&&(y/=2,m/=2),g[S]=Dv(d,m*y*e.components);for(let b=0;b<m;++b){const x=b*y*e.components,_=(m-b-1)*y*e.components;g[S].set(p[S].slice(_,_+y*e.components),x)}}e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(d)&&e.context.texStorage2D(e.target,6,e.internalFormat,e.width,e.height);for(let S=0;S<6;S++){let b=0,x=e.width,_=e.height;for(;x>=1&&_>=1;){let C=null;b<=e.maxLevel&&(C=g[6*b+S]),a(d)?C!=null&&e.context.texSubImage2D(e.context.TEXTURE_CUBE_MAP_POSITIVE_X+S,b,0,0,x,_,e.format,e.openGLDataType,C):e.context.texImage2D(e.context.TEXTURE_CUBE_MAP_POSITIVE_X+S,b,e.internalFormat,x,_,0,e.format,e.openGLDataType,C),b++,x/=2,_/=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===mn.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?(hh("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(mn.UNSIGNED_CHAR),t.getInternalFormat(mn.UNSIGNED_CHAR,4),t.getFormat(mn.UNSIGNED_CHAR,4),!e.internalFormat||!e.format||!e.openGLDataType)return hh("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()&&(!F1(u.width)||!F1(u.height)),f=document.createElement("canvas");f.width=c?Vo(u.width):u.width,f.height=c?Vo(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(mn.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(mn.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 v=0;v<f;++v)d[v]=u[v],h[v]=c[v]-u[v]||1;return{scale:h,offset:d}}function o(u,c){for(let f=0;f<u.length;f++){const d=u[f],h=c[f]+d;if(d<-2048||d>2048||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 p=e.context.getExtension("OES_texture_half_float");h=p&&e.openGLDataType===p.HALF_FLOAT_OES}const v=h&&(o(c,f)||d);e.useHalfFloat=v}function l(u,c){const f=u.getNumberOfComponents(),d=u.getDataType(),h=u.getData(),v=new Array(f),p=new Array(f);for(let y=0;y<f;++y){const[m,S]=u.getRange(y);v[y]=m,p[y]=S}const g=i(v,p,f);return s(d,g.offset,g.scale,c),e.useHalfFloat||t.getOpenGLDataType(d,!0),{numComps:f,dataType:d,data:h,scaleOffsets:g}}t.create2DFilterableFromRaw=function(u,c,f,d,h){let v=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1;return t.create2DFilterableFromDataArray(u,c,_n.newInstance({numberOfComponents:f,dataType:d,values:h}),v)},t.create2DFilterableFromDataArray=function(u,c,f){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const{numComps:h,dataType:v,data:p}=l(f,d);t.create2DFromRaw(u,c,h,v,p)},t.create3DFromRaw=(u,c,f,d,h,v)=>{if(t.getOpenGLDataType(h),t.getInternalFormat(h,d),t.getFormat(h,d),!e.internalFormat||!e.format||!e.openGLDataType)return hh("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,[v],!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,v){let p=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1;return t.create3DFilterableFromDataArray(u,c,f,_n.newInstance({numberOfComponents:d,dataType:h,values:v}),p)},t.create3DFilterableFromDataArray=function(u,c,f,d){let h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;const{numComps:v,dataType:p,data:g,scaleOffsets:y}=l(d,h),m=u*c*f,S=[],b=[];for(let N=0;N<v;++N)S[N]=0,b[N]=1;e.volumeInfo={scale:b,offset:S,dataComputedScale:y.scale,dataComputedOffset:y.offset,width:u,height:c,depth:f};const x=structuredClone(y);if(e._openGLRenderWindow.getWebgl2()){if(e.oglNorm16Ext&&!e.useHalfFloat&&p===mn.SHORT){for(let Q=0;Q<v;++Q)e.volumeInfo.scale[Q]=32767;return t.create3DFromRaw(u,c,f,v,p,g)}if(e.oglNorm16Ext&&!e.useHalfFloat&&p===mn.UNSIGNED_SHORT){for(let Q=0;Q<v;++Q)e.volumeInfo.scale[Q]=65535;return t.create3DFromRaw(u,c,f,v,p,g)}if(p===mn.FLOAT||e.useHalfFloat&&(p===mn.SHORT||p===mn.UNSIGNED_SHORT))return t.create3DFromRaw(u,c,f,v,p,g);if(p===mn.UNSIGNED_CHAR){for(let Q=0;Q<v;++Q)e.volumeInfo.scale[Q]=255;return t.create3DFromRaw(u,c,f,v,p,g)}const N=new Float32Array(m*v);e.volumeInfo.offset=x.offset,e.volumeInfo.scale=x.scale;let H=0;const K=x.scale.map(Q=>1/Q);for(let Q=0;Q<m;Q++)for(let ie=0;ie<v;ie++)N[H]=(g[H]-x.offset[ie])*K[ie],H++;return t.create3DFromRaw(u,c,f,v,mn.FLOAT,N)}let _=(N,H,K,Q,ie)=>{N[H]=K},C=mn.UNSIGNED_CHAR;if(p===mn.UNSIGNED_CHAR)for(let N=0;N<v;++N)x.offset[N]=0,x.scale[N]=255;else e.context.getExtension("OES_texture_float")&&e.context.getExtension("OES_texture_float_linear")?(C=mn.FLOAT,_=(N,H,K,Q,ie)=>{N[H]=(K-Q)/ie}):(C=mn.UNSIGNED_CHAR,_=(N,H,K,Q,ie)=>{N[H]=255*(K-Q)/ie});if(t.getOpenGLDataType(C),t.getInternalFormat(C,v),t.getFormat(C,v),!e.internalFormat||!e.format||!e.openGLDataType)return hh("Failed to determine texture parameters."),!1;e.target=e.context.TEXTURE_2D,e.components=v,e.depth=1,e.numberOfDimensions=2;let T=e.context.getParameter(e.context.MAX_TEXTURE_SIZE);T>4096&&(C===mn.FLOAT||v>=3)&&(T=4096);let D=1,M=1;m>T*T&&(D=Math.ceil(Math.sqrt(m/(T*T))),M=D);let E=Math.sqrt(m)/D;E=Vo(E);const k=Math.floor(E*D/u),R=Math.ceil(f/k),O=Vo(c*R/M);e.width=E,e.height=O,e._openGLRenderWindow.activateTexture(t),t.createTexture(),t.bind(),e.volumeInfo.xreps=k,e.volumeInfo.yreps=R,e.volumeInfo.xstride=D,e.volumeInfo.ystride=M,e.volumeInfo.offset=x.offset,e.volumeInfo.scale=x.scale;let B;const $=E*O*v;C===mn.FLOAT?B=new Float32Array($):B=new Uint8Array($);let V=0;const F=Math.floor(u/D),L=Math.floor(c/M);for(let N=0;N<R;N++){const H=Math.min(k,f-N*k),K=v*(e.width-H*Math.floor(u/D));for(let Q=0;Q<L;Q++){for(let ie=0;ie<H;ie++){const be=v*((N*k+ie)*u*c+M*Q*u);for(let le=0;le<F;le++)for(let J=0;J<v;J++)_(B,V,g[be+D*le*v+J],x.offset[J],x.scale[J]),V++}V+=K}}return e.context.pixelStorei(e.context.UNPACK_ALIGNMENT,1),a(C)?(e.context.texStorage2D(e.target,1,e.internalFormat,e.width,e.height),B!=null&&e.context.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.openGLDataType,B)):e.context.texImage2D(e.target,0,e.internalFormat,e.width,e.height,0,e.format,e.openGLDataType,B),t.deactivate(),!0},t.setOpenGLRenderWindow=u=>{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 uXe={_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:bl.CLAMP_TO_EDGE,wrapT:bl.CLAMP_TO_EDGE,wrapR:bl.CLAMP_TO_EDGE,minificationFilter:ea.NEAREST,magnificationFilter:ea.NEAREST,minLOD:-1e3,maxLOD:1e3,baseLevel:0,maxLevel:1e3,generateMipmap:!1,useHalfFloat:!0,oglNorm16Ext:null,allocatedGPUMemoryInBytes:0};function uQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,uXe,n),dr.extend(t,e,n),e.sendParametersTime={},qr(e.sendParametersTime,{mtime:0}),e.textureBuildTime={},qr(e.textureBuildTime,{mtime:0}),Nm(t,e,["format","openGLDataType"]),zr(t,e,["keyMatrixTime","minificationFilter","magnificationFilter","wrapS","wrapT","wrapR","generateMipmap","oglNorm16Ext"]),Ja(t,e,["width","height","volumeInfo","components","handle","target","allocatedGPUMemoryInBytes"]),Vm(t,e,["openGLRenderWindow"]),lXe(t,e)}const cQ=Yn(uQ,"vtkOpenGLTexture");var Sd={newInstance:cQ,extend:uQ,...sQ};us("vtkTexture",cQ);var cXe=`//VTK::System::Dec
- /*=========================================================================
- Program: Visualization Toolkit
- Module: vtkPolyDataVS.glsl
- Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
- All rights reserved.
- See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
- This software is distributed WITHOUT ANY WARRANTY; without even
- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- PURPOSE. See the above copyright notice for more information.
- =========================================================================*/
- attribute vec4 vertexMC;
- // frag position in VC
- //VTK::PositionVC::Dec
- // optional normal declaration
- //VTK::Normal::Dec
- // extra lighting parameters
- //VTK::Light::Dec
- // Texture coordinates
- //VTK::TCoord::Dec
- // material property values
- //VTK::Color::Dec
- // clipping plane vars
- //VTK::Clip::Dec
- // camera and actor matrix values
- //VTK::Camera::Dec
- // Apple Bug
- //VTK::PrimID::Dec
- // picking support
- //VTK::Picking::Dec
- void main()
- {
- //VTK::Color::Impl
- //VTK::Normal::Impl
- //VTK::TCoord::Impl
- //VTK::Clip::Impl
- //VTK::PrimID::Impl
- //VTK::PositionVC::Impl
- //VTK::Light::Impl
- //VTK::Picking::Impl
- }
- `,fXe=`//VTK::System::Dec
- /*=========================================================================
- Program: Visualization Toolkit
- Module: vtkPolyDataFS.glsl
- Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
- All rights reserved.
- See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
- This software is distributed WITHOUT ANY WARRANTY; without even
- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- PURPOSE. See the above copyright notice for more information.
- =========================================================================*/
- // Template for the polydata mappers fragment shader
- uniform int PrimitiveIDOffset;
- // VC position of this fragment
- //VTK::PositionVC::Dec
- // optional color passed in from the vertex shader, vertexColor
- //VTK::Color::Dec
- // optional surface normal declaration
- //VTK::Normal::Dec
- // extra lighting parameters
- //VTK::Light::Dec
- // define vtkImageLabelOutlineOn
- //VTK::ImageLabelOutlineOn
- // Texture coordinates
- //VTK::TCoord::Dec
- // picking support
- //VTK::Picking::Dec
- // Depth Peeling Support
- //VTK::DepthPeeling::Dec
- // clipping plane vars
- //VTK::Clip::Dec
- // label outline
- //VTK::LabelOutline::Dec
- // the output of this shader
- //VTK::Output::Dec
- // Apple Bug
- //VTK::PrimID::Dec
- // handle coincident offsets
- //VTK::Coincident::Dec
- //VTK::ZBuffer::Dec
- //VTK::LabelOutlineHelperFunction
- void main()
- {
- // VC position of this fragment. This should not branch/return/discard.
- //VTK::PositionVC::Impl
- // Place any calls that require uniform flow (e.g. dFdx) here.
- //VTK::UniformFlow::Impl
- // Set gl_FragDepth here (gl_FragCoord.z by default)
- //VTK::Depth::Impl
- // Early depth peeling abort:
- //VTK::DepthPeeling::PreColor
- // Apple Bug
- //VTK::PrimID::Impl
- //VTK::Clip::Impl
- //VTK::Color::Impl
- // Generate the normal if we are not passed in one
- //VTK::Normal::Impl
- //VTK::TCoord::Impl
- //VTK::Light::Impl
- if (gl_FragData[0].a <= 0.0)
- {
- discard;
- }
- //VTK::DepthPeeling::Impl
- //VTK::Picking::Impl
- // handle coincident offsets
- //VTK::Coincident::Impl
- //VTK::ZBuffer::Impl
- //VTK::RenderPassFragmentShader::Impl
- }
- `;function dXe(t,e){t.replaceShaderCoincidentOffset=(n,r,a)=>{const i=t.getCoincidentParameters(r,a);if(i&&(i.factor!==0||i.offset!==0)){let o=n.Fragment;o=Xe.substitute(o,"//VTK::Coincident::Dec",["uniform float cfactor;","uniform float coffset;"]).result,e.context.getExtension("EXT_frag_depth")&&(i.factor!==0?(o=Xe.substitute(o,"//VTK::UniformFlow::Impl",["float cscale = length(vec2(dFdx(gl_FragCoord.z),dFdy(gl_FragCoord.z)));","//VTK::UniformFlow::Impl"],!1).result,o=Xe.substitute(o,"//VTK::Depth::Impl","gl_FragDepthEXT = gl_FragCoord.z + cfactor*cscale + 0.000016*coffset;").result):o=Xe.substitute(o,"//VTK::Depth::Impl","gl_FragDepthEXT = gl_FragCoord.z + 0.000016*coffset;").result),e._openGLRenderWindow.getWebgl2()&&(i.factor!==0?(o=Xe.substitute(o,"//VTK::UniformFlow::Impl",["float cscale = length(vec2(dFdx(gl_FragCoord.z),dFdy(gl_FragCoord.z)));","//VTK::UniformFlow::Impl"],!1).result,o=Xe.substitute(o,"//VTK::Depth::Impl","gl_FragDepth = gl_FragCoord.z + cfactor*cscale + 0.000016*coffset;").result):o=Xe.substitute(o,"//VTK::Depth::Impl","gl_FragDepth = gl_FragCoord.z + 0.000016*coffset;").result),n.Fragment=o}}}function hXe(t,e){t.applyShaderReplacements=(n,r,a)=>{let i=null;if(r&&(i=r.ShaderReplacements),i)for(let o=0;o<i.length;o++){const s=i[o];if(a&&s.replaceFirst||!a&&!s.replaceFirst){const l=s.shaderType,u=n[l],c=Xe.substitute(u,s.originalValue,s.replacementValue,s.replaceAll);n[l]=c.result}}},t.buildShaders=(n,r,a)=>{t.getReplacedShaderTemplate(n,r,a),e.lastRenderPassShaderReplacement=e.currentRenderPass?e.currentRenderPass.getShaderReplacement():null,e.lastRenderPassShaderReplacement&&e.lastRenderPassShaderReplacement(n);const i=e.renderable.getViewSpecificProperties().OpenGL;t.applyShaderReplacements(n,i,!0),t.replaceShaderValues(n,r,a),t.applyShaderReplacements(n,i)},t.getReplacedShaderTemplate=(n,r,a)=>{const i=e.renderable.getViewSpecificProperties().OpenGL;t.getShaderTemplate(n,r,a);let o=n.Vertex;if(i){const u=i.VertexShaderCode;u!==void 0&&u!==""&&(o=u)}n.Vertex=o;let s=n.Fragment;if(i){const u=i.FragmentShaderCode;u!==void 0&&u!==""&&(s=u)}n.Fragment=s;let l=n.Geometry;if(i){const u=i.GeometryShaderCode;u!==void 0&&(l=u)}n.Geometry=l}}var p_={implementReplaceShaderCoincidentOffset:dXe,implementBuildShadersWithReplacements:hXe};const{FieldAssociations:h2}=Zd,{primTypes:Or}=Ov,{Representation:ph,Shading:JF}=Lv,{ScalarMode:Y1}=qs,{Filter:e4,Wrap:t4}=Sd,{vtkErrorMacro:Qc}=rl,pXe={type:"StartEvent"},vXe={type:"EndEvent"},{CoordinateSystem:gXe}=$m;function yXe(t){const e=t.getSelector();return e?e.getCurrentPass():Ia.MIN_KNOWN_PASS-1}function mXe(t,e){e.classHierarchy.push("vtkOpenGLPolyDataMapper"),t.buildPass=r=>{r&&(e.currentRenderPass=null,e.openGLActor=t.getFirstAncestorOfType("vtkOpenGLActor"),e._openGLRenderer=e.openGLActor.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent(),e.openGLCamera=e._openGLRenderer.getViewNodeFor(e._openGLRenderer.getRenderable().getActiveCamera()))},t.translucentPass=(r,a)=>{r&&(e.currentRenderPass=a,t.render())},t.zBufferPass=r=>{r&&(e.haveSeenDepthRequest=!0,e.renderDepth=!0,t.render(),e.renderDepth=!1)},t.opaqueZBufferPass=r=>t.zBufferPass(r),t.opaquePass=r=>{r&&t.render()},t.render=()=>{const r=e._openGLRenderWindow.getContext();if(e.context!==r){e.context=r;for(let o=Or.Start;o<Or.End;o++)e.primitives[o].setOpenGLRenderWindow(e._openGLRenderWindow)}const a=e.openGLActor.getRenderable(),i=e._openGLRenderer.getRenderable();t.renderPiece(i,a)},t.getShaderTemplate=(r,a,i)=>{r.Vertex=cXe,r.Fragment=fXe,r.Geometry=""},t.replaceShaderColor=(r,a,i)=>{let o=r.Vertex,s=r.Geometry,l=r.Fragment;const u=e.lastBoundBO.getReferenceByName("lastLightComplexity");let c=["uniform float ambient;","uniform float diffuse;","uniform float specular;","uniform float opacityUniform; // the fragment opacity","uniform vec3 ambientColorUniform;","uniform vec3 diffuseColorUniform;"];u&&(c=c.concat(["uniform vec3 specularColorUniform;","uniform float specularPowerUniform;"]));let f=["vec3 ambientColor;"," vec3 diffuseColor;"," float opacity;"];u&&(f=f.concat([" vec3 specularColor;"," float specularPower;"])),f=f.concat([" ambientColor = ambientColorUniform;"," diffuseColor = diffuseColorUniform;"," opacity = opacityUniform;"]),u&&(f=f.concat([" specularColor = specularColorUniform;"," specularPower = specularPowerUniform;"])),e.lastBoundBO.getCABO().getColorComponents()!==0&&!e.drawingEdges&&(c=c.concat(["varying vec4 vertexColorVSOutput;"]),o=Xe.substitute(o,"//VTK::Color::Dec",["attribute vec4 scalarColor;","varying vec4 vertexColorVSOutput;"]).result,o=Xe.substitute(o,"//VTK::Color::Impl",["vertexColorVSOutput = scalarColor;"]).result,s=Xe.substitute(s,"//VTK::Color::Dec",["in vec4 vertexColorVSOutput[];","out vec4 vertexColorGSOutput;"]).result,s=Xe.substitute(s,"//VTK::Color::Impl",["vertexColorGSOutput = vertexColorVSOutput[i];"]).result),e.lastBoundBO.getCABO().getColorComponents()!==0&&!e.drawingEdges?l=Xe.substitute(l,"//VTK::Color::Impl",f.concat([" diffuseColor = vertexColorVSOutput.rgb;"," ambientColor = vertexColorVSOutput.rgb;"," opacity = opacity*vertexColorVSOutput.a;"])).result:e.renderable.getInterpolateScalarsBeforeMapping()&&e.renderable.getColorCoordinates()&&!e.drawingEdges?l=Xe.substitute(l,"//VTK::Color::Impl",f.concat([" vec4 texColor = texture2D(texture1, tcoordVCVSOutput.st);"," diffuseColor = texColor.rgb;"," ambientColor = texColor.rgb;"," opacity = opacity*texColor.a;"])).result:(i.getBackfaceProperty()&&!e.drawingEdges&&(c=c.concat(["uniform float opacityUniformBF; // the fragment opacity","uniform float ambientIntensityBF; // the material ambient","uniform float diffuseIntensityBF; // the material diffuse","uniform vec3 ambientColorUniformBF; // ambient material color","uniform vec3 diffuseColorUniformBF; // diffuse material color"]),u?(c=c.concat(["uniform float specularIntensityBF; // the material specular intensity","uniform vec3 specularColorUniformBF; // intensity weighted color","uniform float specularPowerUniformBF;"]),f=f.concat(["if (gl_FrontFacing == false) {"," ambientColor = ambientIntensityBF * ambientColorUniformBF;"," diffuseColor = diffuseIntensityBF * diffuseColorUniformBF;"," specularColor = specularIntensityBF * specularColorUniformBF;"," specularPower = specularPowerUniformBF;"," opacity = opacityUniformBF; }"])):f=f.concat(["if (gl_FrontFacing == false) {"," ambientColor = ambientIntensityBF * ambientColorUniformBF;"," diffuseColor = diffuseIntensityBF * diffuseColorUniformBF;"," opacity = opacityUniformBF; }"])),e.haveCellScalars&&!e.drawingEdges&&(c=c.concat(["uniform samplerBuffer texture1;"])),l=Xe.substitute(l,"//VTK::Color::Impl",f).result),l=Xe.substitute(l,"//VTK::Color::Dec",c).result,r.Vertex=o,r.Geometry=s,r.Fragment=l},t.replaceShaderLight=(r,a,i)=>{let o=r.Fragment;const s="",l=e.lastBoundBO.getReferenceByName("lastLightComplexity"),u=e.lastBoundBO.getReferenceByName("lastLightCount");let c=[];switch(l){case 0:o=Xe.substitute(o,"//VTK::Light::Impl",[" gl_FragData[0] = vec4(ambientColor * ambient + diffuseColor * diffuse, opacity);"," //VTK::Light::Impl"],!1).result;break;case 1:o=Xe.substitute(o,"//VTK::Light::Impl",[" float df = max(0.0, normalVCVSOutput.z);"," float sf = pow(df, specularPower);"," vec3 diffuseL = df * diffuseColor;"," vec3 specularL = sf * specularColor;"," gl_FragData[0] = vec4(ambientColor * ambient + diffuseL * diffuse + specularL * specular, opacity);"," //VTK::Light::Impl"],!1).result;break;case 2:for(let f=0;f<u;++f)c=c.concat([`uniform vec3 lightColor${f};`,`uniform vec3 lightDirectionVC${f}; // normalized`,`uniform vec3 lightHalfAngleVC${f}; // normalized`]);o=Xe.substitute(o,"//VTK::Light::Dec",c).result,c=["vec3 diffuseL = vec3(0,0,0);"," vec3 specularL = vec3(0,0,0);"," float df;"];for(let f=0;f<u;++f)c=c.concat([` df = max(0.0, dot(normalVCVSOutput, -lightDirectionVC${f}));`,` diffuseL += ((df${s}) * lightColor${f});`,` if (dot(normalVCVSOutput, lightDirectionVC${f}) < 0.0)`," {",` float sf = sign(df)*pow(max(1e-5,
- dot(reflect(lightDirectionVC${f},normalVCVSOutput),
- normalize(-vertexVC.xyz))),
- specularPower);`,` specularL += (sf${s} * lightColor${f});`," }"]);c=c.concat([" diffuseL = diffuseL * diffuseColor;"," specularL = specularL * specularColor;"," gl_FragData[0] = vec4(ambientColor * ambient + diffuseL * diffuse + specularL * specular, opacity);"," //VTK::Light::Impl"]),o=Xe.substitute(o,"//VTK::Light::Impl",c,!1).result;break;case 3:for(let f=0;f<u;++f)c=c.concat([`uniform vec3 lightColor${f};`,`uniform vec3 lightDirectionVC${f}; // normalized`,`uniform vec3 lightHalfAngleVC${f}; // normalized`,`uniform vec3 lightPositionVC${f};`,`uniform vec3 lightAttenuation${f};`,`uniform float lightConeAngle${f};`,`uniform float lightExponent${f};`,`uniform int lightPositional${f};`]);o=Xe.substitute(o,"//VTK::Light::Dec",c).result,c=["vec3 diffuseL = vec3(0,0,0);"," vec3 specularL = vec3(0,0,0);"," vec3 vertLightDirectionVC;"," float attenuation;"," float df;"];for(let f=0;f<u;++f)c=c.concat([" attenuation = 1.0;",` if (lightPositional${f} == 0)`," {",` vertLightDirectionVC = lightDirectionVC${f};`," }"," else"," {",` vertLightDirectionVC = vertexVC.xyz - lightPositionVC${f};`," float distanceVC = length(vertLightDirectionVC);"," vertLightDirectionVC = normalize(vertLightDirectionVC);"," attenuation = 1.0 /",` (lightAttenuation${f}.x`,` + lightAttenuation${f}.y * distanceVC`,` + lightAttenuation${f}.z * distanceVC * distanceVC);`," // per OpenGL standard cone angle is 90 or less for a spot light",` if (lightConeAngle${f} <= 90.0)`," {",` float coneDot = dot(vertLightDirectionVC, lightDirectionVC${f});`," // if inside the cone",` if (coneDot >= cos(radians(lightConeAngle${f})))`," {",` attenuation = attenuation * pow(coneDot, lightExponent${f});`," }"," else"," {"," attenuation = 0.0;"," }"," }"," }"," df = max(0.0, attenuation*dot(normalVCVSOutput, -vertLightDirectionVC));",` diffuseL += ((df${s}) * lightColor${f});`," if (dot(normalVCVSOutput, vertLightDirectionVC) < 0.0)"," {",` float sf = sign(df)*attenuation*pow(max(1e-5,
- dot(reflect(lightDirectionVC${f},
- normalVCVSOutput),
- normalize(-vertexVC.xyz))),
- specularPower);`,` specularL += ((sf${s}) * lightColor${f});`," }"]);c=c.concat([" diffuseL = diffuseL * diffuseColor;"," specularL = specularL * specularColor;"," gl_FragData[0] = vec4(ambientColor * ambient + diffuseL * diffuse + specularL * specular, opacity);"," //VTK::Light::Impl"]),o=Xe.substitute(o,"//VTK::Light::Impl",c,!1).result;break;default:Qc("bad light complexity")}r.Fragment=o},t.replaceShaderNormal=(r,a,i)=>{if(e.lastBoundBO.getReferenceByName("lastLightComplexity")>0){let s=r.Vertex,l=r.Geometry,u=r.Fragment;e.lastBoundBO.getCABO().getNormalOffset()?(s=Xe.substitute(s,"//VTK::Normal::Dec",["attribute vec3 normalMC;","uniform mat3 normalMatrix;","varying vec3 normalVCVSOutput;"]).result,s=Xe.substitute(s,"//VTK::Normal::Impl",["normalVCVSOutput = normalMatrix * normalMC;"]).result,l=Xe.substitute(l,"//VTK::Normal::Dec",["in vec3 normalVCVSOutput[];","out vec3 normalVCGSOutput;"]).result,l=Xe.substitute(l,"//VTK::Normal::Impl",["normalVCGSOutput = normalVCVSOutput[i];"]).result,u=Xe.substitute(u,"//VTK::Normal::Dec",["varying vec3 normalVCVSOutput;"]).result,u=Xe.substitute(u,"//VTK::Normal::Impl",["vec3 normalVCVSOutput = normalize(normalVCVSOutput);"," if (gl_FrontFacing == false) { normalVCVSOutput = -normalVCVSOutput; }"]).result):e.haveCellNormals?(u=Xe.substitute(u,"//VTK::Normal::Dec",["uniform mat3 normalMatrix;","uniform samplerBuffer textureN;"]).result,u=Xe.substitute(u,"//VTK::Normal::Impl",["vec3 normalVCVSOutput = normalize(normalMatrix *"," texelFetchBuffer(textureN, gl_PrimitiveID + PrimitiveIDOffset).xyz);"," if (gl_FrontFacing == false) { normalVCVSOutput = -normalVCVSOutput; }"]).result):e.lastBoundBO.getOpenGLMode(i.getProperty().getRepresentation())===e.context.LINES?(u=Xe.substitute(u,"//VTK::UniformFlow::Impl",[" vec3 fdx = dFdx(vertexVC.xyz);"," vec3 fdy = dFdy(vertexVC.xyz);"," //VTK::UniformFlow::Impl"]).result,u=Xe.substitute(u,"//VTK::Normal::Impl",["vec3 normalVCVSOutput;"," if (abs(fdx.x) > 0.0)"," { fdx = normalize(fdx); normalVCVSOutput = normalize(cross(vec3(fdx.y, -fdx.x, 0.0), fdx)); }"," else { fdy = normalize(fdy); normalVCVSOutput = normalize(cross(vec3(fdy.y, -fdy.x, 0.0), fdy));}"]).result):(u=Xe.substitute(u,"//VTK::Normal::Dec",["uniform int cameraParallel;"]).result,u=Xe.substitute(u,"//VTK::UniformFlow::Impl",[" vec3 fdx = dFdx(vertexVC.xyz);"," vec3 fdy = dFdy(vertexVC.xyz);"," //VTK::UniformFlow::Impl"]).result,u=Xe.substitute(u,"//VTK::Normal::Impl",[" fdx = normalize(fdx);"," fdy = normalize(fdy);"," vec3 normalVCVSOutput = normalize(cross(fdx,fdy));"," if (cameraParallel == 1 && normalVCVSOutput.z < 0.0) { normalVCVSOutput = -1.0*normalVCVSOutput; }"," if (cameraParallel == 0 && dot(normalVCVSOutput,vertexVC.xyz) > 0.0) { normalVCVSOutput = -1.0*normalVCVSOutput; }"]).result),r.Vertex=s,r.Geometry=l,r.Fragment=u}},t.replaceShaderPositionVC=(r,a,i)=>{e.lastBoundBO.replaceShaderPositionVC(r,a,i);let o=r.Vertex,s=r.Geometry,l=r.Fragment;e.lastBoundBO.getReferenceByName("lastLightComplexity")>0?(o=Xe.substitute(o,"//VTK::PositionVC::Dec",["varying vec4 vertexVCVSOutput;"]).result,o=Xe.substitute(o,"//VTK::PositionVC::Impl",["vertexVCVSOutput = MCVCMatrix * vertexMC;"," gl_Position = MCPCMatrix * vertexMC;"]).result,o=Xe.substitute(o,"//VTK::Camera::Dec",["uniform mat4 MCPCMatrix;","uniform mat4 MCVCMatrix;"]).result,s=Xe.substitute(s,"//VTK::PositionVC::Dec",["in vec4 vertexVCVSOutput[];","out vec4 vertexVCGSOutput;"]).result,s=Xe.substitute(s,"//VTK::PositionVC::Impl",["vertexVCGSOutput = vertexVCVSOutput[i];"]).result,l=Xe.substitute(l,"//VTK::PositionVC::Dec",["varying vec4 vertexVCVSOutput;"]).result,l=Xe.substitute(l,"//VTK::PositionVC::Impl",["vec4 vertexVC = vertexVCVSOutput;"]).result):(o=Xe.substitute(o,"//VTK::Camera::Dec",["uniform mat4 MCPCMatrix;"]).result,o=Xe.substitute(o,"//VTK::PositionVC::Impl",[" gl_Position = MCPCMatrix * vertexMC;"]).result),r.Vertex=o,r.Geometry=s,r.Fragment=l},t.replaceShaderTCoord=(r,a,i)=>{if(e.lastBoundBO.getCABO().getTCoordOffset()){let o=r.Vertex,s=r.Geometry,l=r.Fragment;if(e.drawingEdges)return;o=Xe.substitute(o,"//VTK::TCoord::Impl","tcoordVCVSOutput = tcoordMC;").result;const u=e.openGLActor.getActiveTextures();let c=2,f=2;if(u&&u.length>0&&(c=u[0].getComponents(),u[0].getTarget()===e.context.TEXTURE_CUBE_MAP&&(f=3)),e.renderable.getColorTextureMap()&&(c=e.renderable.getColorTextureMap().getPointData().getScalars().getNumberOfComponents(),f=2),f===2){if(o=Xe.substitute(o,"//VTK::TCoord::Dec","attribute vec2 tcoordMC; varying vec2 tcoordVCVSOutput;").result,s=Xe.substitute(s,"//VTK::TCoord::Dec",["in vec2 tcoordVCVSOutput[];","out vec2 tcoordVCGSOutput;"]).result,s=Xe.substitute(s,"//VTK::TCoord::Impl","tcoordVCGSOutput = tcoordVCVSOutput[i];").result,l=Xe.substitute(l,"//VTK::TCoord::Dec",["varying vec2 tcoordVCVSOutput;","uniform sampler2D texture1;"]).result,u&&u.length>=1)switch(c){case 1:l=Xe.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = texture2D(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.r;"," diffuseColor = diffuseColor*tcolor.r;"]).result;break;case 2:l=Xe.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = texture2D(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.r;"," diffuseColor = diffuseColor*tcolor.r;"," opacity = opacity * tcolor.g;"]).result;break;default:l=Xe.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = texture2D(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.rgb;"," diffuseColor = diffuseColor*tcolor.rgb;"," opacity = opacity * tcolor.a;"]).result}}else switch(o=Xe.substitute(o,"//VTK::TCoord::Dec","attribute vec3 tcoordMC; varying vec3 tcoordVCVSOutput;").result,s=Xe.substitute(s,"//VTK::TCoord::Dec",["in vec3 tcoordVCVSOutput[];","out vec3 tcoordVCGSOutput;"]).result,s=Xe.substitute(s,"//VTK::TCoord::Impl","tcoordVCGSOutput = tcoordVCVSOutput[i];").result,l=Xe.substitute(l,"//VTK::TCoord::Dec",["varying vec3 tcoordVCVSOutput;","uniform samplerCube texture1;"]).result,c){case 1:l=Xe.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = textureCube(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.r;"," diffuseColor = diffuseColor*tcolor.r;"]).result;break;case 2:l=Xe.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = textureCube(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.r;"," diffuseColor = diffuseColor*tcolor.r;"," opacity = opacity * tcolor.g;"]).result;break;default:l=Xe.substitute(l,"//VTK::TCoord::Impl",[" vec4 tcolor = textureCube(texture1, tcoordVCVSOutput);"," ambientColor = ambientColor*tcolor.rgb;"," diffuseColor = diffuseColor*tcolor.rgb;"," opacity = opacity * tcolor.a;"]).result}r.Vertex=o,r.Geometry=s,r.Fragment=l}},t.replaceShaderClip=(r,a,i)=>{let o=r.Vertex,s=r.Fragment;if(e.renderable.getNumberOfClippingPlanes()){const l=e.renderable.getNumberOfClippingPlanes();o=Xe.substitute(o,"//VTK::Clip::Dec",["uniform int numClipPlanes;",`uniform vec4 clipPlanes[${l}];`,`varying float clipDistancesVSOutput[${l}];`]).result,o=Xe.substitute(o,"//VTK::Clip::Impl",[`for (int planeNum = 0; planeNum < ${l}; planeNum++)`," {"," if (planeNum >= numClipPlanes)"," {"," break;"," }"," clipDistancesVSOutput[planeNum] = dot(clipPlanes[planeNum], vertexMC);"," }"]).result,s=Xe.substitute(s,"//VTK::Clip::Dec",["uniform int numClipPlanes;",`varying float clipDistancesVSOutput[${l}];`]).result,s=Xe.substitute(s,"//VTK::Clip::Impl",[`for (int planeNum = 0; planeNum < ${l}; planeNum++)`," {"," if (planeNum >= numClipPlanes)"," {"," break;"," }"," if (clipDistancesVSOutput[planeNum] < 0.0) discard;"," }"]).result}r.Vertex=o,r.Fragment=s},t.getCoincidentParameters=(r,a)=>{let i={factor:0,offset:0};const o=a.getProperty();if(e.renderable.getResolveCoincidentTopology()||o.getEdgeVisibility()&&o.getRepresentation()===ph.SURFACE){const l=e.lastBoundBO.getPrimitiveType();l===Or.Points||o.getRepresentation()===ph.POINTS?i=e.renderable.getCoincidentTopologyPointOffsetParameter():l===Or.Lines||o.getRepresentation()===ph.WIREFRAME?i=e.renderable.getCoincidentTopologyLineOffsetParameters():(l===Or.Tris||l===Or.TriStrips)&&(i=e.renderable.getCoincidentTopologyPolygonOffsetParameters()),(l===Or.TrisEdges||l===Or.TriStripsEdges)&&(i=e.renderable.getCoincidentTopologyPolygonOffsetParameters(),i.factor/=2,i.offset/=2)}const s=e._openGLRenderer.getSelector();return s&&s.getFieldAssociation()===h2.FIELD_ASSOCIATION_POINTS&&(i.offset-=2),i},t.replaceShaderPicking=(r,a,i)=>{let o=r.Fragment,s=r.Vertex;if(o=Xe.substitute(o,"//VTK::Picking::Dec",["uniform int picking;","//VTK::Picking::Dec"]).result,!!e._openGLRenderer.getSelector()){switch((e.lastSelectionState===Ia.ID_LOW24||e.lastSelectionState===Ia.ID_HIGH24)&&(s=Xe.substitute(s,"//VTK::Picking::Dec",[`flat out int vertexIDVSOutput;
- `,`uniform int VertexIDOffset;
- `]).result,s=Xe.substitute(s,"//VTK::Picking::Impl",` vertexIDVSOutput = gl_VertexID + VertexIDOffset;
- `).result,o=Xe.substitute(o,"//VTK::Picking::Dec",`flat in int vertexIDVSOutput;
- `).result,o=Xe.substitute(o,"//VTK::Picking::Impl",[" int idx = vertexIDVSOutput;","//VTK::Picking::Impl"]).result),e.lastSelectionState){case Ia.ID_LOW24:o=Xe.substitute(o,"//VTK::Picking::Impl"," gl_FragData[0] = vec4(float(idx%256)/255.0, float((idx/256)%256)/255.0, float((idx/65536)%256)/255.0, 1.0);").result;break;case Ia.ID_HIGH24:o=Xe.substitute(o,"//VTK::Picking::Impl"," gl_FragData[0] = vec4(float(idx)/255.0, 0.0, 0.0, 1.0);").result;break;default:o=Xe.substitute(o,"//VTK::Picking::Dec","uniform vec3 mapperIndex;").result,o=Xe.substitute(o,"//VTK::Picking::Impl"," gl_FragData[0] = picking != 0 ? vec4(mapperIndex,1.0) : gl_FragData[0];").result}r.Fragment=o,r.Vertex=s}},t.replaceShaderValues=(r,a,i)=>{if(t.replaceShaderColor(r,a,i),t.replaceShaderNormal(r,a,i),t.replaceShaderLight(r,a,i),t.replaceShaderTCoord(r,a,i),t.replaceShaderPicking(r,a,i),t.replaceShaderClip(r,a,i),t.replaceShaderCoincidentOffset(r,a,i),t.replaceShaderPositionVC(r,a,i),e.haveSeenDepthRequest){let o=r.Fragment;o=Xe.substitute(o,"//VTK::ZBuffer::Dec","uniform int depthRequest;").result,o=Xe.substitute(o,"//VTK::ZBuffer::Impl",["if (depthRequest == 1) {","float iz = floor(gl_FragCoord.z*65535.0 + 0.1);","float rf = floor(iz/256.0)/255.0;","float gf = mod(iz,256.0)/255.0;","gl_FragData[0] = vec4(rf, gf, 0.0, 1.0); }"]).result,r.Fragment=o}},t.getNeedToRebuildShaders=(r,a,i)=>{let o=0,s=0;const l=r.getPrimitiveType(),u=e.currentInput;let c=!1;const f=u.getPointData().getNormals(),d=u.getCellData().getNormals(),h=i.getProperty().getInterpolation()===JF.FLAT,v=i.getProperty().getRepresentation(),p=r.getOpenGLMode(v,l);if((p===e.context.TRIANGLES||d&&!f||!h&&f||!h&&p===e.context.LINES)&&(c=!0),i.getProperty().getLighting()&&c){o=0;const S=a.getLightsByReference();for(let b=0;b<S.length;++b){const x=S[b];x.getSwitch()>0&&(s++,o===0&&(o=1)),o===1&&(s>1||x.getIntensity()!==1||!x.lightTypeIsHeadLight())&&(o=2),o<3&&x.getPositional()&&(o=3)}}let g=!1;const y=e.lastBoundBO.getReferenceByName("lastLightComplexity"),m=e.lastBoundBO.getReferenceByName("lastLightCount");return(y!==o||m!==s)&&(e.lastBoundBO.set({lastLightComplexity:o},!0),e.lastBoundBO.set({lastLightCount:s},!0),g=!0),(!e.currentRenderPass&&e.lastRenderPassShaderReplacement||e.currentRenderPass&&e.currentRenderPass.getShaderReplacement()!==e.lastRenderPassShaderReplacement)&&(g=!0),e.lastHaveSeenDepthRequest!==e.haveSeenDepthRequest||r.getShaderSourceTime().getMTime()<e.renderable.getMTime()||r.getShaderSourceTime().getMTime()<e.currentInput.getMTime()||r.getShaderSourceTime().getMTime()<e.selectionStateChanged.getMTime()||g?(e.lastHaveSeenDepthRequest=e.haveSeenDepthRequest,!0):!1},t.invokeShaderCallbacks=(r,a,i)=>{const o=e.renderable.getViewSpecificProperties().ShadersCallbacks;o&&o.forEach(s=>{s.callback(s.userData,r,a,i)})},t.setMapperShaderParameters=(r,a,i)=>{if(r.getProgram().isUniformUsed("PrimitiveIDOffset")&&r.getProgram().setUniformi("PrimitiveIDOffset",e.primitiveIDOffset),r.getProgram().isUniformUsed("VertexIDOffset")&&r.getProgram().setUniformi("VertexIDOffset",e.vertexIDOffset),r.getCABO().getElementCount()&&(e.VBOBuildTime.getMTime()>r.getAttributeUpdateTime().getMTime()||r.getShaderSourceTime().getMTime()>r.getAttributeUpdateTime().getMTime())){const l=e.lastBoundBO.getReferenceByName("lastLightComplexity");r.getProgram().isAttributeUsed("vertexMC")&&(r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),"vertexMC",r.getCABO().getVertexOffset(),r.getCABO().getStride(),e.context.FLOAT,3,!1)||Qc("Error setting vertexMC in shader VAO.")),r.getProgram().isAttributeUsed("normalMC")&&r.getCABO().getNormalOffset()&&l>0?r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),"normalMC",r.getCABO().getNormalOffset(),r.getCABO().getStride(),e.context.FLOAT,3,!1)||Qc("Error setting normalMC in shader VAO."):r.getVAO().removeAttributeArray("normalMC"),e.renderable.getCustomShaderAttributes().forEach((u,c)=>{r.getProgram().isAttributeUsed(`${u}MC`)&&(r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),`${u}MC`,r.getCABO().getCustomData()[c].offset,r.getCABO().getStride(),e.context.FLOAT,r.getCABO().getCustomData()[c].components,!1)||Qc(`Error setting ${u}MC in shader VAO.`))}),r.getProgram().isAttributeUsed("tcoordMC")&&r.getCABO().getTCoordOffset()?r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),"tcoordMC",r.getCABO().getTCoordOffset(),r.getCABO().getStride(),e.context.FLOAT,r.getCABO().getTCoordComponents(),!1)||Qc("Error setting tcoordMC in shader VAO."):r.getVAO().removeAttributeArray("tcoordMC"),r.getProgram().isAttributeUsed("scalarColor")&&r.getCABO().getColorComponents()?r.getVAO().addAttributeArray(r.getProgram(),r.getCABO().getColorBO(),"scalarColor",r.getCABO().getColorOffset(),r.getCABO().getColorBOStride(),e.context.UNSIGNED_BYTE,4,!0)||Qc("Error setting scalarColor in shader VAO."):r.getVAO().removeAttributeArray("scalarColor"),r.getAttributeUpdateTime().modified()}if(e.renderable.getNumberOfClippingPlanes()){const l=e.renderable.getNumberOfClippingPlanes(),u=[],f=r.getCABO().getCoordShiftAndScaleEnabled()?r.getCABO().getInverseShiftAndScaleMatrix():null,d=f?na(e.tmpMat4,i.getMatrix()):i.getMatrix();f&&(Wn(d,d),Yr(d,d,f),Wn(d,d));for(let h=0;h<l;h++){const v=[];e.renderable.getClippingPlaneInDataCoords(d,h,v);for(let p=0;p<4;p++)u.push(v[p])}r.getProgram().setUniformi("numClipPlanes",l),r.getProgram().setUniform4fv("clipPlanes",u)}e.internalColorTexture&&r.getProgram().isUniformUsed("texture1")&&r.getProgram().setUniformi("texture1",e.internalColorTexture.getTextureUnit());const o=e.openGLActor.getActiveTextures();if(o)for(let l=0;l<o.length;++l){const c=o[l].getTextureUnit(),f=`texture${c+1}`;r.getProgram().isUniformUsed(f)&&r.getProgram().setUniformi(f,c)}if(e.haveSeenDepthRequest&&r.getProgram().setUniformi("depthRequest",e.renderDepth?1:0),r.getProgram().isUniformUsed("coffset")){const l=t.getCoincidentParameters(a,i);r.getProgram().setUniformf("coffset",l.offset),r.getProgram().isUniformUsed("cfactor")&&r.getProgram().setUniformf("cfactor",l.factor)}r.setMapperShaderParameters(a,i,e._openGLRenderer.getTiledSizeAndOrigin());const s=e._openGLRenderer.getSelector();r.getProgram().setUniform3fArray("mapperIndex",s?s.getPropColorValue():[0,0,0]),r.getProgram().setUniformi("picking",s?s.getCurrentPass()+1:0)},t.setLightingShaderParameters=(r,a,i)=>{const o=e.lastBoundBO.getReferenceByName("lastLightComplexity");if(o<2)return;const s=r.getProgram();let l=0;const u=a.getLightsByReference();for(let d=0;d<u.length;++d){const h=u[d];if(h.getSwitch()>0){const p=h.getColorByReference(),g=h.getIntensity();e.lightColor[0]=p[0]*g,e.lightColor[1]=p[1]*g,e.lightColor[2]=p[2]*g;const y=h.getDirection(),m=a.getActiveCamera().getViewMatrix(),S=[...y];h.lightTypeIsSceneLight()&&(S[0]=m[0]*y[0]+m[1]*y[1]+m[2]*y[2],S[1]=m[4]*y[0]+m[5]*y[1]+m[6]*y[2],S[2]=m[8]*y[0]+m[9]*y[1]+m[10]*y[2],Fl(S)),e.lightDirection[0]=S[0],e.lightDirection[1]=S[1],e.lightDirection[2]=S[2],Fl(e.lightDirection),s.setUniform3fArray(`lightColor${l}`,e.lightColor),s.setUniform3fArray(`lightDirectionVC${l}`,e.lightDirection),l++}}if(o<3)return;const f=a.getActiveCamera().getViewMatrix();Wn(f,f),l=0;for(let d=0;d<u.length;++d){const h=u[d];if(h.getSwitch()>0){const p=h.getTransformedPosition(),g=new Float64Array(3);En(g,p,f),s.setUniform3fArray(`lightAttenuation${l}`,h.getAttenuationValuesByReference()),s.setUniformi(`lightPositional${l}`,h.getPositional()),s.setUniformf(`lightExponent${l}`,h.getExponent()),s.setUniformf(`lightConeAngle${l}`,h.getConeAngle()),s.setUniform3fArray(`lightPositionVC${l}`,[g[0],g[1],g[2]]),l++}}};function n(r,a,i){return a.identity(i),r.reduce((o,s,l)=>l===0?s?a.copy(o,s):a.identity(o):s?a.multiply(o,o,s):o,i)}t.setCameraShaderParameters=(r,a,i)=>{const o=r.getProgram(),s=e.openGLCamera.getKeyMatrices(a),l=a.getActiveCamera(),u=e.openGLCamera.getKeyMatrixTime().getMTime(),c=o.getLastCameraMTime(),d=r.getCABO().getCoordShiftAndScaleEnabled()?r.getCABO().getInverseShiftAndScaleMatrix():null,h=i.getIsIdentity(),v=h?{mcwc:null,normalMatrix:null}:e.openGLActor.getKeyMatrices();if(i.getCoordinateSystem()===gXe.DISPLAY){const p=e._openGLRenderer.getTiledSizeAndOrigin();fn(e.tmpMat4),e.tmpMat4[0]=2/p.usize,e.tmpMat4[12]=-1,e.tmpMat4[5]=2/p.vsize,e.tmpMat4[13]=-1,Yr(e.tmpMat4,e.tmpMat4,d),o.setUniformMatrix("MCPCMatrix",e.tmpMat4)}else o.setUniformMatrix("MCPCMatrix",n([s.wcpc,v.mcwc,d],Ak,e.tmpMat4));o.isUniformUsed("MCVCMatrix")&&o.setUniformMatrix("MCVCMatrix",n([s.wcvc,v.mcwc,d],Ak,e.tmpMat4)),o.isUniformUsed("normalMatrix")&&o.setUniformMatrix3x3("normalMatrix",n([s.normalMatrix,v.normalMatrix],e7e,e.tmpMat3)),c!==u&&(o.isUniformUsed("cameraParallel")&&o.setUniformi("cameraParallel",l.getParallelProjection()),o.setLastCameraMTime(u)),h||o.setLastCameraMTime(0)},t.setPropertyShaderParameters=(r,a,i)=>{const o=r.getProgram();let s=i.getProperty(),l=s.getOpacity(),u=e.drawingEdges?s.getEdgeColorByReference():s.getAmbientColorByReference(),c=e.drawingEdges?s.getEdgeColorByReference():s.getDiffuseColorByReference(),f=e.drawingEdges?1:s.getAmbient(),d=e.drawingEdges?0:s.getDiffuse(),h=e.drawingEdges?0:s.getSpecular();const v=s.getSpecularPower();o.setUniformf("opacityUniform",l),o.setUniform3fArray("ambientColorUniform",u),o.setUniform3fArray("diffuseColorUniform",c),o.setUniformf("ambient",f),o.setUniformf("diffuse",d);const p=e.lastBoundBO.getReferenceByName("lastLightComplexity");if(p<1)return;let g=s.getSpecularColorByReference();if(o.setUniform3fArray("specularColorUniform",g),o.setUniformf("specularPowerUniform",v),o.setUniformf("specular",h),o.isUniformUsed("ambientIntensityBF")){if(s=i.getBackfaceProperty(),l=s.getOpacity(),u=s.getAmbientColor(),f=s.getAmbient(),c=s.getDiffuseColor(),d=s.getDiffuse(),g=s.getSpecularColor(),h=s.getSpecular(),o.setUniformf("ambientIntensityBF",f),o.setUniformf("diffuseIntensityBF",d),o.setUniformf("opacityUniformBF",l),o.setUniform3fArray("ambientColorUniformBF",u),o.setUniform3fArray("diffuseColorUniformBF",c),p<1)return;o.setUniformf("specularIntensityBF",h),o.setUniform3fArray("specularColorUniformBF",g),o.setUniformf("specularPowerUniformBF",v)}},t.updateMaximumPointCellIds=(r,a)=>{var s,l,u,c;const i=e._openGLRenderer.getSelector();if(!i)return;if((l=(s=e.selectionWebGLIdsToVTKIds)==null?void 0:s.points)!=null&&l.length){const f=e.selectionWebGLIdsToVTKIds.points.length;i.setMaximumPointId(f-1)}if((c=(u=e.selectionWebGLIdsToVTKIds)==null?void 0:u.cells)!=null&&c.length){const f=e.selectionWebGLIdsToVTKIds.cells.length;i.setMaximumCellId(f-1)}i.getFieldAssociation()===h2.FIELD_ASSOCIATION_POINTS&&(e.pointPicking=!0)},t.renderPieceStart=(r,a)=>{e.primitiveIDOffset=0,e.vertexIDOffset=0;const i=yXe(e._openGLRenderer);if(e.lastSelectionState!==i&&(e.selectionStateChanged.modified(),e.lastSelectionState=i),e._openGLRenderer.getSelector())switch(i){default:e._openGLRenderer.getSelector().renderProp(a)}t.updateBufferObjects(r,a),e.renderable.getColorTextureMap()&&e.internalColorTexture.activate(),e.lastBoundBO=null},t.renderPieceDraw=(r,a)=>{const i=a.getProperty().getRepresentation(),o=a.getProperty().getEdgeVisibility()&&i===ph.SURFACE,s=e._openGLRenderer.getSelector(),l=s&&s.getFieldAssociation()===h2.FIELD_ASSOCIATION_POINTS&&(e.lastSelectionState===Ia.ID_LOW24||e.lastSelectionState===Ia.ID_HIGH24);for(let u=Or.Start;u<Or.End;u++)e.primitives[u].setPointPicking(l),e.primitives[u].getCABO().getElementCount()&&(e.drawingEdges=o&&(u===Or.TrisEdges||u===Or.TriStripsEdges),(!e.drawingEdges||!(e.renderDepth||e.lastSelectionState>=0))&&(e.lastBoundBO=e.primitives[u],e.primitiveIDOffset+=e.primitives[u].drawArrays(r,a,i,t),e.vertexIDOffset+=e.primitives[u].getCABO().getElementCount()))},t.renderPieceFinish=(r,a)=>{e.LastBoundBO&&e.LastBoundBO.getVAO().release(),e.renderable.getColorTextureMap()&&e.internalColorTexture.deactivate()},t.renderPiece=(r,a)=>{if(t.invokeEvent(pXe),e.renderable.getStatic()||e.renderable.update(),e.currentInput=e.renderable.getInputData(),t.invokeEvent(vXe),!e.currentInput){Qc("No input!");return}if(!e.currentInput.getPoints||!e.currentInput.getPoints().getNumberOfValues())return;const i=e.context,o=a.getProperty().getBackfaceCulling(),s=a.getProperty().getFrontfaceCulling();!o&&!s?e._openGLRenderWindow.disableCullFace():s?(e._openGLRenderWindow.enableCullFace(),i.cullFace(i.FRONT)):(e._openGLRenderWindow.enableCullFace(),i.cullFace(i.BACK)),t.renderPieceStart(r,a),t.renderPieceDraw(r,a),t.renderPieceFinish(r,a)},t.computeBounds=(r,a)=>{if(!t.getInput()){y3(e.bounds);return}e.bounds=t.getInput().getBounds()},t.updateBufferObjects=(r,a)=>{t.getNeedToRebuildBufferObjects(r,a)&&t.buildBufferObjects(r,a)},t.getNeedToRebuildBufferObjects=(r,a)=>{const i=e.VBOBuildTime.getMTime();return i<t.getMTime()||i<e.renderable.getMTime()||i<a.getMTime()||i<e.currentInput.getMTime()},t.buildBufferObjects=(r,a)=>{const i=e.currentInput;if(i===null)return;e.renderable.mapScalars(i,1);const o=e.renderable.getColorMapColors();e.haveCellScalars=!1;const s=e.renderable.getScalarMode();e.renderable.getScalarVisibility()&&(s===Y1.USE_CELL_DATA||s===Y1.USE_CELL_FIELD_DATA||s===Y1.USE_FIELD_DATA||!i.getPointData().getScalars())&&s!==Y1.USE_POINT_FIELD_DATA&&o&&(e.haveCellScalars=!0);let l=a.getProperty().getInterpolation()!==JF.FLAT?i.getPointData().getNormals():null;l===null&&i.getCellData().getNormals()&&(e.haveCellNormals=!0,l=i.getCellData().getNormals());const u=a.getProperty().getRepresentation();let c=i.getPointData().getTCoords();if(e.openGLActor.getActiveTextures()||(c=null),e.renderable.getColorCoordinates()){c=e.renderable.getColorCoordinates(),e.internalColorTexture||(e.internalColorTexture=Sd.newInstance({resizable:!0}));const d=e.internalColorTexture;d.setMinificationFilter(e4.NEAREST),d.setMagnificationFilter(e4.NEAREST),d.setWrapS(t4.CLAMP_TO_EDGE),d.setWrapT(t4.CLAMP_TO_EDGE),d.setOpenGLRenderWindow(e._openGLRenderWindow);const h=e.renderable.getColorTextureMap(),v=h.getExtent(),p=h.getPointData().getScalars();d.create2DFromRaw(v[1]-v[0]+1,v[3]-v[2]+1,p.getNumberOfComponents(),p.getDataType(),p.getData()),d.activate(),d.sendParameters(),d.deactivate()}const f=`${i.getMTime()}A${u}B${i.getMTime()}C${l?l.getMTime():1}D${o?o.getMTime():1}E${a.getProperty().getEdgeVisibility()}F${c?c.getMTime():1}`;if(e.VBOBuildString!==f){const h={points:i.getPoints(),normals:l,tcoords:c,colors:o,cellOffset:0,vertexOffset:0,haveCellScalars:e.haveCellScalars,haveCellNormals:e.haveCellNormals,customAttributes:e.renderable.getCustomShaderAttributes().map(g=>i.getPointData().getArrayByName(g))};e.renderable.getPopulateSelectionSettings()&&(e.selectionWebGLIdsToVTKIds={points:null,cells:null});const v=[{inRep:"verts",cells:i.getVerts()},{inRep:"lines",cells:i.getLines()},{inRep:"polys",cells:i.getPolys()},{inRep:"strips",cells:i.getStrips()},{inRep:"polys",cells:i.getPolys()},{inRep:"strips",cells:i.getStrips()}],p=a.getProperty().getEdgeVisibility()&&u===ph.SURFACE;for(let g=Or.Start;g<Or.End;g++)g!==Or.TrisEdges&&g!==Or.TriStripsEdges?(h.cellOffset+=e.primitives[g].getCABO().createVBO(v[g].cells,v[g].inRep,u,h,e.selectionWebGLIdsToVTKIds),h.vertexOffset+=e.primitives[g].getCABO().getElementCount()):p?e.primitives[g].getCABO().createVBO(v[g].cells,v[g].inRep,ph.WIREFRAME,{...h,tcoords:null,colors:null,haveCellScalars:!1,haveCellNormals:!1}):e.primitives[g].releaseGraphicsResources();e.renderable.getPopulateSelectionSettings()&&(e.renderable.setSelectionWebGLIdsToVTKIds(e.selectionWebGLIdsToVTKIds),t.updateMaximumPointCellIds()),e.VBOBuildTime.modified(),e.VBOBuildString=f}},t.getAllocatedGPUMemoryInBytes=()=>{let r=0;return e.primitives.forEach(a=>{r+=a.getAllocatedGPUMemoryInBytes()}),r}}const SXe={context:null,VBOBuildTime:0,VBOBuildString:null,primitives:null,primTypes:null,shaderRebuildString:null,tmpMat4:null,ambientColor:[],diffuseColor:[],specularColor:[],lightColor:[],lightDirection:[],lastHaveSeenDepthRequest:!1,haveSeenDepthRequest:!1,lastSelectionState:Ia.MIN_KNOWN_PASS-1,selectionStateChanged:null,selectionWebGLIdsToVTKIds:null,pointPicking:!1};function bXe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,SXe,n),dr.extend(t,e,n),p_.implementReplaceShaderCoincidentOffset(t,e,n),p_.implementBuildShadersWithReplacements(t,e,n),e.primitives=[],e.primTypes=Or,e.tmpMat3=qd(new Float64Array(9)),e.tmpMat4=fn(new Float64Array(16));for(let r=Or.Start;r<Or.End;r++)e.primitives[r]=Ov.newInstance(),e.primitives[r].setPrimitiveType(r),e.primitives[r].set({lastLightComplexity:0,lastLightCount:0,lastSelectionPass:!1},!0);zr(t,e,["context"]),e.VBOBuildTime={},qr(e.VBOBuildTime,{mtime:0}),e.selectionStateChanged={},qr(e.selectionStateChanged,{mtime:0}),mXe(t,e)}const wXe=Yn(bXe,"vtkOpenGLPolyDataMapper");us("vtkMapper",wXe);const{ColorMode:_Xe,ScalarMode:Jc,GetArray:p2}=hC;function xXe(t,e){e.classHierarchy.push("vtkMapper2D"),t.createDefaultLookupTable=()=>{e.lookupTable=qg.newInstance()},t.getColorModeAsString=()=>j.enumToString(_Xe,e.colorMode),t.setColorModeToDefault=()=>t.setColorMode(0),t.setColorModeToMapScalars=()=>t.setColorMode(1),t.setColorModeToDirectScalars=()=>t.setColorMode(2),t.getScalarModeAsString=()=>j.enumToString(Jc,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===Jc.DEFAULT)s=n.getPointData().getScalars(),s||(s=n.getCellData().getScalars(),l=!0);else if(r===Jc.USE_POINT_DATA)s=n.getPointData().getScalars();else if(r===Jc.USE_CELL_DATA)s=n.getCellData().getScalars(),l=!0;else if(r===Jc.USE_POINT_FIELD_DATA){const u=n.getPointData();a===p2.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===Jc.USE_CELL_FIELD_DATA){const u=n.getCellData();l=!0,a===p2.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}else if(r===Jc.USE_FIELD_DATA){const u=n.getFieldData();a===p2.BY_ID?s=u.getArrayByIndex(i):s=u.getArrayByName(o)}return{scalars:s,cellFlag:l}},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.mapScalars=(n,r)=>{const a=t.getAbstractScalars(n,e.scalarMode,e.arrayAccessMode,e.arrayId,e.colorByArrayName).scalars;if(!a){e.colorMapColors=null;return}const i=`${t.getMTime()}${a.getMTime()}${r}`;if(e.colorBuildString===i)return;e.useLookupTableScalarRange||t.getLookupTable().setRange(e.scalarRange[0],e.scalarRange[1]);const o=t.getLookupTable();o&&(o.build(),e.colorMapColors=o.mapScalars(a,e.colorMode,e.fieldDataTupleId)),e.colorBuildString=`${t.getMTime()}${a.getMTime()}${r}`},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()}}}const CXe={static:!1,lookupTable:null,scalarVisibility:!1,scalarRange:[0,1],useLookupTableScalarRange:!1,colorMode:0,scalarMode:0,arrayAccessMode:1,renderTime:0,colorByArrayName:null,transformCoordinate:null,viewSpecificProperties:null,customShaderAttributes:[]};function fQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,CXe,n),wZ.extend(t,e,n),j.get(t,e,["colorMapColors"]),j.setGet(t,e,["arrayAccessMode","colorByArrayName","colorMode","lookupTable","renderTime","scalarMode","scalarVisibility","static","transformCoordinate","useLookupTableScalarRange","viewSpecificProperties","customShaderAttributes"]),j.setGetArray(t,e,["scalarRange"],2),e.viewSpecificProperties||(e.viewSpecificProperties={}),xXe(t,e)}const TXe=j.newInstance(fQ,"vtkMapper2D");var EXe={newInstance:TXe,extend:fQ},MXe=`//VTK::System::Dec
- /*=========================================================================
- Program: Visualization Toolkit
- Module: vtkPolyData2DFS.glsl
- Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
- All rights reserved.
- See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
- This software is distributed WITHOUT ANY WARRANTY; without even
- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- PURPOSE. See the above copyright notice for more information.
- =========================================================================*/
- uniform int PrimitiveIDOffset;
- // Texture coordinates
- //VTK::TCoord::Dec
- // Scalar coloring
- //VTK::Color::Dec
- // Depth Peeling
- //VTK::DepthPeeling::Dec
- // picking support
- //VTK::Picking::Dec
- // the output of this shader
- //VTK::Output::Dec
- // Apple Bug
- //VTK::PrimID::Dec
- void main()
- {
- // Apple Bug
- //VTK::PrimID::Impl
- //VTK::Color::Impl
- //VTK::TCoord::Impl
- //VTK::DepthPeeling::Impl
- //VTK::Picking::Impl
- if (gl_FragData[0].a <= 0.0)
- {
- discard;
- }
- }
- `,DXe=`//VTK::System::Dec
- /*=========================================================================
- Program: Visualization Toolkit
- Module: vtkPolyData2DVS.glsl
- Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
- All rights reserved.
- See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
- This software is distributed WITHOUT ANY WARRANTY; without even
- the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- PURPOSE. See the above copyright notice for more information.
- =========================================================================*/
- // all variables that represent positions or directions have a suffix
- // indicating the coordinate system they are in. The possible values are
- // MC - Model Coordinates
- // WC - WC world coordinates
- // VC - View Coordinates
- // DC - Display Coordinates
- in vec4 vertexWC;
- // frag position in VC
- //VTK::PositionVC::Dec
- // material property values
- //VTK::Color::Dec
- // Texture coordinates
- //VTK::TCoord::Dec
- // Apple Bug
- //VTK::PrimID::Dec
- uniform mat4 WCVCMatrix; // World to view matrix
- void main()
- {
- // Apple Bug
- //VTK::PrimID::Impl
- gl_Position = WCVCMatrix*vertexWC;
- //VTK::TCoord::Impl
- //VTK::Color::Impl
- //VTK::PositionVC::Impl
- }
- `;const dQ={BACKGROUND:0,FOREGROUND:1};var hQ={DisplayLocation:dQ};const{primTypes:ko}=Ov,{ScalarMode:X1}=EXe,{vtkErrorMacro:q1}=rl,kXe={type:"StartEvent"},RXe={type:"EndEvent"};function LXe(t,e){e.classHierarchy.push("vtkOpenGLPolyDataMapper2D"),t.buildPass=r=>{r&&(e.openGLActor2D=t.getFirstAncestorOfType("vtkOpenGLActor2D"),e._openGLRenderer=e.openGLActor2D.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent(),e.openGLCamera=e._openGLRenderer.getViewNodeFor(e._openGLRenderer.getRenderable().getActiveCamera()))},t.overlayPass=r=>{r&&t.render()},t.getShaderTemplate=(r,a,i)=>{r.Vertex=DXe,r.Fragment=MXe,r.Geometry=""},t.render=()=>{const r=e._openGLRenderWindow.getContext();if(e.context!==r){e.context=r;for(let o=ko.Start;o<ko.End;o++)e.primitives[o].setOpenGLRenderWindow(e._openGLRenderWindow)}const a=e.openGLActor2D.getRenderable(),i=e._openGLRenderer.getRenderable();t.renderPiece(i,a)},t.renderPiece=(r,a)=>{if(t.invokeEvent(kXe),e.renderable.getStatic()||e.renderable.update(),e.currentInput=e.renderable.getInputData(),t.invokeEvent(RXe),!e.currentInput){q1("No input!");return}!e.currentInput.getPoints||!e.currentInput.getPoints().getNumberOfValues()||(t.renderPieceStart(r,a),t.renderPieceDraw(r,a),t.renderPieceFinish(r,a))},t.renderPieceStart=(r,a)=>{if(e.primitiveIDOffset=0,e._openGLRenderer.getSelector())switch(e._openGLRenderer.getSelector().getCurrentPass()){default:e._openGLRenderer.getSelector().renderProp(a)}t.updateBufferObjects(r,a),e.lastBoundBO=null},t.getNeedToRebuildShaders=(r,a,i)=>r.getShaderSourceTime().getMTime()<e.renderable.getMTime()||r.getShaderSourceTime().getMTime()<e.currentInput.getMTime(),t.updateBufferObjects=(r,a)=>{t.getNeedToRebuildBufferObjects(r,a)&&t.buildBufferObjects(r,a)},t.getNeedToRebuildBufferObjects=(r,a)=>{const i=e.VBOBuildTime.getMTime();return!!(i<t.getMTime()||i<e._openGLRenderWindow.getMTime()||i<e.renderable.getMTime()||i<a.getMTime()||i<e.currentInput.getMTime()||e.renderable.getTransformCoordinate()&&i<r.getMTime())},t.buildBufferObjects=(r,a)=>{const i=e.currentInput;if(i===null)return;e.renderable.mapScalars(i,a.getProperty().getOpacity());const o=e.renderable.getColorMapColors();e.haveCellScalars=!1;const s=e.renderable.getScalarMode();e.renderable.getScalarVisibility()&&(s===X1.USE_CELL_DATA||s===X1.USE_CELL_FIELD_DATA||s===X1.USE_FIELD_DATA||!i.getPointData().getScalars())&&s!==X1.USE_POINT_FIELD_DATA&&o&&(e.haveCellScalars=!0);const l=a.getProperty().getRepresentation();let u=i.getPointData().getTCoords();e.openGLActor2D.getActiveTextures()||(u=null);const c=e.renderable.getTransformCoordinate(),d=r.getRenderWindow().getViews()[0].getViewportSize(r),h=`${i.getMTime()}A${l}B${i.getMTime()}C${o?o.getMTime():1}D${u?u.getMTime():1}E${c?r.getMTime():1}F${d}`;if(e.VBOBuildString!==h){let v=i.getPoints();if(c){const g=Ry.newInstance(),y=v.getNumberOfPoints();g.setNumberOfPoints(y);const m=[];for(let S=0;S<y;++S){v.getPoint(S,m),c.setValue(m);const b=c.getComputedDoubleViewportValue(r);g.setPoint(S,b[0],b[1],0)}v=g}const p={points:v,tcoords:u,colors:o,cellOffset:0,haveCellScalars:e.haveCellSCalars,customAttributes:e.renderable.getCustomShaderAttributes().map(g=>i.getPointData().getArrayByName(g))};p.cellOffset+=e.primitives[ko.Points].getCABO().createVBO(i.getVerts(),"verts",l,p),p.cellOffset+=e.primitives[ko.Lines].getCABO().createVBO(i.getLines(),"lines",l,p),p.cellOffset+=e.primitives[ko.Tris].getCABO().createVBO(i.getPolys(),"polys",l,p),p.cellOffset+=e.primitives[ko.TriStrips].getCABO().createVBO(i.getStrips(),"strips",l,p),e.VBOBuildTime.modified(),e.VBOBuildString=h}},t.renderPieceDraw=(r,a)=>{const i=a.getProperty().getRepresentation();e.context.depthMask(!0);for(let s=ko.Start;s<ko.End;s++)e.primitives[s].getCABO().getElementCount()&&(e.lastBoundBO=e.primitives[s],e.primitiveIDOffset+=e.primitives[s].drawArrays(r,a,i,t))},t.renderPieceFinish=(r,a)=>{e.lastBoundBO&&e.lastBoundBO.getVAO().release()},t.replaceShaderValues=(r,a,i)=>{t.replaceShaderColor(r,a,i),t.replaceShaderTCoord(r,a,i),t.replaceShaderPicking(r,a,i),t.replaceShaderPositionVC(r,a,i)},t.replaceShaderColor=(r,a,i)=>{let o=r.Vertex,s=r.Geometry,l=r.Fragment;e.haveCellScalars&&(l=Xe.substitute(l,"//VTK::Color::Dec",["uniform samplerBuffer texture1;"]).result,l=Xe.substitute(l,"//VTK::Color::Impl",["gl_FragData[0] = texelFetchBuffer(texture1, gl_PrimitiveID + PrimitiveIDOffset);"]).result),e.lastBoundBO.getCABO().getColorComponents()!==0?(o=Xe.substitute(o,"//VTK::Color::Dec",["in vec4 diffuseColor;","out vec4 fcolorVSOutput;"]).result,o=Xe.substitute(o,"//VTK::Color::Impl",["fcolorVSOutput = diffuseColor;"]).result,s=Xe.substitute(s,"//VTK::Color::Dec",[`in vec4 fcolorVSOutput[];
- `,"out vec4 fcolorGSOutput;"]).result,s=Xe.substitute(s,"//VTK::Color::Impl",["fcolorGSOutput = fcolorVSOutput[i];"]).result,l=Xe.substitute(l,"//VTK::Color::Dec",["in vec4 fcolorVSOutput;"]).result,l=Xe.substitute(l,"//VTK::Color::Impl",["gl_FragData[0] = fcolorVSOutput;"]).result):(l=Xe.substitute(l,"//VTK::Color::Dec",["uniform vec4 diffuseColor;"]).result,l=Xe.substitute(l,"//VTK::Color::Impl",["gl_FragData[0] = diffuseColor;"]).result),r.Vertex=o,r.Geometry=s,r.Fragment=l},t.replaceShaderTCoord=(r,a,i)=>{if(e.lastBoundBO.getCABO().getTCoordOffset()){let o=r.Vertex,s=r.Geometry,l=r.Fragment;const u=e.lastBoundBO.getCABO().getTCoordComponents();u===1?(o=Xe.substitute(o,"//VTK::TCoord::Dec",["in float tcoordMC;","out float tcoordVCVSOutput;"]).result,o=Xe.substitute(o,"//VTK::TCoord::Impl",["tcoordVCVSOutput = tcoordMC;"]).result,s=Xe.substitute(s,"//VTK::TCoord::Dec",[`in float tcoordVCVSOutput[];
- `,"out float tcoordVCGSOutput;"]).result,s=Xe.substitute(s,["//VTK::TCoord::Impl","tcoordVCGSOutput = tcoordVCVSOutput[i];"]).result,l=Xe.substitute(l,"//VTK::TCoord::Dec",["in float tcoordVCVSOutput;","uniform sampler2D texture1;"]).result,l=Xe.substitute(l,"//VTK::TCoord::Impl",["gl_FragData[0] = gl_FragData[0]*texture2D(texture1, vec2(tcoordVCVSOutput,0));"]).result):u===2&&(o=Xe.substitute(o,"//VTK::TCoord::Dec",["in vec2 tcoordMC;","out vec2 tcoordVCVSOutput;"]).result,o=Xe.substitute(o,"//VTK::TCoord::Impl",["tcoordVCVSOutput = tcoordMC;"]).result,s=Xe.substitute(s,"//VTK::TCoord::Dec",[`in vec2 tcoordVCVSOutput[];
- `,"out vec2 tcoordVCGSOutput;"]).result,s=Xe.substitute(s,"//VTK::TCoord::Impl",["tcoordVCGSOutput = tcoordVCVSOutput[i];"]).result,l=Xe.substitute(l,"//VTK::TCoord::Dec",["in vec2 tcoordVCVSOutput;","uniform sampler2D texture1;"]).result,l=Xe.substitute(l,"//VTK::TCoord::Impl",["gl_FragData[0] = gl_FragData[0]*texture2D(texture1, tcoordVCVSOutput.st);"]).result),e.haveCellScalars&&(s=Xe.substitute(s,"//VTK::PrimID::Impl",["gl_PrimitiveID = gl_PrimitiveIDIn;"]).result),r.Vertex=o,r.Geometry=s,r.Fragment=l}},t.replaceShaderPicking=(r,a,i)=>{let o=r.Fragment;o=Xe.substitute(o,"//VTK::Picking::Dec",["uniform vec3 mapperIndex;","uniform int picking;"]).result,o=Xe.substitute(o,"//VTK::Picking::Impl"," gl_FragData[0] = picking != 0 ? vec4(mapperIndex,1.0) : gl_FragData[0];").result,r.Fragment=o},t.replaceShaderPositionVC=(r,a,i)=>{e.lastBoundBO.replaceShaderPositionVC(r,a,i)},t.invokeShaderCallbacks=(r,a,i)=>{const o=e.renderable.getViewSpecificProperties().ShadersCallbacks;o&&o.forEach(s=>{s.callback(s.userData,r,a,i)})},t.setMapperShaderParameters=(r,a,i)=>{if(r.getProgram().isUniformUsed("PrimitiveIDOffset")&&r.getProgram().setUniformi("PrimitiveIDOffset",e.primitiveIDOffset),r.getProgram().isAttributeUsed("vertexWC")&&(r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),"vertexWC",r.getCABO().getVertexOffset(),r.getCABO().getStride(),e.context.FLOAT,3,!1)||q1("Error setting vertexWC in shader VAO.")),r.getCABO().getElementCount()&&(e.VBOBuildTime.getMTime()>r.getAttributeUpdateTime().getMTime()||r.getShaderSourceTime().getMTime()>r.getAttributeUpdateTime().getMTime())){e.renderable.getCustomShaderAttributes().forEach((l,u)=>{r.getProgram().isAttributeUsed(`${l}MC`)&&(r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),`${l}MC`,r.getCABO().getCustomData()[u].offset,r.getCABO().getStride(),e.context.FLOAT,r.getCABO().getCustomData()[u].components,!1)||q1(`Error setting ${l}MC in shader VAO.`))}),r.getProgram().isAttributeUsed("tcoordMC")&&r.getCABO().getTCoordOffset()?r.getVAO().addAttributeArray(r.getProgram(),r.getCABO(),"tcoordMC",r.getCABO().getTCoordOffset(),r.getCABO().getStride(),e.context.FLOAT,r.getCABO().getTCoordComponents(),!1)||q1("Error setting tcoordMC in shader VAO."):r.getVAO().removeAttributeArray("tcoordMC"),e.internalColorTexture&&r.getProgram().isUniformUsed("texture1")&&r.getProgram().setUniformi("texture1",e.internalColorTexture.getTextureUnit());const o=e.openGLActor2D.getActiveTextures();if(o)for(let l=0;l<o.length;++l){const c=o[l].getTextureUnit(),f=`texture${c+1}`;r.getProgram().isUniformUsed(f)&&r.getProgram().setUniformi(f,c)}r.setMapperShaderParameters(a,i,e._openGLRenderer.getTiledSizeAndOrigin());const s=e._openGLRenderer.getSelector();r.getProgram().setUniform3fArray("mapperIndex",s?s.getPropColorValue():[0,0,0]),r.getProgram().setUniformi("picking",s?s.getCurrentPass()+1:0)}},t.setPropertyShaderParameters=(r,a,i)=>{const o=e.renderable.getColorMapColors();if(!o||o.getNumberOfComponents()===0){const s=r.getProgram(),l=i.getProperty(),u=l.getOpacity(),c=l.getColor(),f=[c[0],c[1],c[2],u];s.setUniform4f("diffuseColor",f)}},t.setLightingShaderParameters=(r,a,i)=>{};function n(r,a,i){return a.identity(i),r.reduce((o,s,l)=>l===0?s?a.copy(o,s):a.identity(o):s?a.multiply(o,o,s):o,i)}t.setCameraShaderParameters=(r,a,i)=>{const o=r.getProgram(),l=r.getCABO().getCoordShiftAndScaleEnabled()?r.getCABO().getInverseShiftAndScaleMatrix():null,c=a.getRenderWindow().getViews()[0].getViewportSize(a),f=a.getViewport(),d=i.getActualPositionCoordinate().getComputedDoubleViewportValue(a),h=[0,0,1,1],v=[0,0,1,1];if(v[0]=f[0]>=h[0]?f[0]:h[0],v[1]=f[1]>=h[1]?f[1]:h[1],v[2]=f[2]<=h[2]?f[2]:h[2],v[3]=f[3]<=h[3]?f[3]:h[3],v[0]>=v[2]||v[1]>=v[3])return;c[0]=P1(c[0]*(v[2]-v[0])/(f[2]-f[0])),c[1]=P1(c[1]*(v[3]-v[1])/(f[3]-f[1]));const p=e._openGLRenderer.getParent().getSize(),g=P1(d[0]-(v[0]-f[0])*p[0]),y=P1(d[1]-(v[1]-f[1])*p[1]),m=-g;let S=-g+c[0];const b=-y;let x=-y+c[1];m===S&&(S=m+1),b===x&&(x=b+1);const _=fn(new Float64Array(16));_[0]=2/(S-m),_[1*4+1]=2/(x-b),_[0*4+3]=-1*(S+m)/(S-m),_[1*4+3]=-1*(x+b)/(x-b),_[2*4+2]=0,_[2*4+3]=i.getProperty().getDisplayLocation()===dQ.FOREGROUND?-1:1,_[3*4+3]=1,Wn(_,_),o.setUniformMatrix("WCVCMatrix",n([_,l],Ak,e.tmpMat4))},t.getAllocatedGPUMemoryInBytes=()=>{let r=0;return e.primitives.forEach(a=>{r+=a.getAllocatedGPUMemoryInBytes()}),r}}const OXe={context:null,VBOBuildTime:0,VBOBuildString:null,primitives:null,primTypes:null,shaderRebuildString:null};function AXe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,OXe,n),dr.extend(t,e,n),p_.implementReplaceShaderCoincidentOffset(t,e,n),p_.implementBuildShadersWithReplacements(t,e,n),e.primitives=[],e.primTypes=ko,e.tmpMat4=fn(new Float64Array(16));for(let r=ko.Start;r<ko.End;r++)e.primitives[r]=Ov.newInstance(),e.primitives[r].setPrimitiveType(r),e.primitives[r].set({lastLightComplexity:0,lastLightCount:0,lastSelectionPass:!1},!0);zr(t,e,["context"]),e.VBOBuildTime={},qr(e.VBOBuildTime,{mtime:0}),LXe(t,e)}const NXe=Yn(AXe,"vtkOpenGLPolyDataMapper2D");us("vtkMapper2D",NXe);const{VectorMode:VXe}=pC;function v2(t,e){t.strokeStyle=e.strokeColor,t.lineWidth=e.strokeSize,t.fillStyle=e.fontColor,t.font=`${e.fontStyle} ${e.fontSize}px ${e.fontFamily}`}function pQ(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 vQ(t,e){return n=>{const r=n.getLastTickBounds(),a=cC().domain([r[0],r[1]]),i=a.ticks(5),o=a.tickFormat(5);n.setTicks(i),n.setTickStrings(i.map(o))}}function BXe(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;v2(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,v2(e.tmContext,e.tickTextStyle);const c=[...t.getTickStrings(),"NaN","Below","Above"];for(let f=0;f<c.length;f++)i.has(c[f])||(l=e.tmContext.measureText(c[f]),u={height:l.actualBoundingBoxAscent+2,startingHeight:s,width:l.width+2,textStyle:e.tickTextStyle},i.set(c[f],u),s+=u.height,o<u.width&&(o=u.width),a.tickWidth<u.width&&(a.tickWidth=u.width),a.tickHeight<u.height&&(a.tickHeight=u.height));return o=Vo(o),s=Vo(s),i.forEach(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)=>{v2(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,v,p;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=(p=(v=e.renderable.getScalarsToColors()).getUseAboveRangeColor)==null?void 0:p.call(v);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=[],v=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[v[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[v[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[v[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 v=[0,1];const p=[0,0];e.vertical?(p[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)),v=[-1,0]):(p[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*v[f]+.5)*e.barSize[f],r[d]=e.barPosition[d]+e.barSize[d]*.5;let g=null;for(let _=0;_<e.barSegments.length;_++){const C=e.barSegments[_];C.title==="ticks"?g=C:(r[d]=e.barPosition[d]+.5*e.barSize[d]*(C.corners[2][d]+C.corners[0][d]),t.createPolyDataForOneLabel(C.title,r,h,"horizontal",p,c))}const y=e.barPosition[d]+e.barSize[d]*g.corners[0][d],m=e.barSize[d]*(g.corners[2][d]-g.corners[0][d]),S=t.getTicks(),b=t.getTickStrings();for(let _=0;_<S.length;_++){const C=(S[_]-e.lastTickBounds[0])/(e.lastTickBounds[1]-e.lastTickBounds[0]);r[d]=y+m*C,t.createPolyDataForOneLabel(b[_],r,h,"horizontal",p,c)}const x=_n.newInstance({numberOfComponents:2,values:u,name:"TextureCoordinates"});e.tmPolyData.getPointData().setTCoords(x),e.tmPolyData.getPoints().setData(s,3),e.tmPolyData.getPoints().modified(),e.tmPolyData.getPolys().setData(l,1),e.tmPolyData.getPolys().modified(),e.tmPolyData.modified()},t.updatePolyDataForBarSegments=()=>{var p,g;const a=e.renderable.getScalarsToColors();let i=0;e.renderable.getDrawNanAnnotation()&&a.getNanColor()&&(i+=1),e.renderable.getDrawBelowRangeSwatch()&&((p=a.getUseBelowRangeColor)!=null&&p.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()===VXe.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;y<e.barSegments.length;y++){const m=e.barSegments[y];for(let S=0;S<4;S++){r[0]=e.barPosition[0]+m.corners[S][0]*e.barSize[0],r[1]=e.barPosition[1]+m.corners[S][1]*e.barSize[1],u[d*3]=(.5*r[0]+.5)*e.lastSize[0],u[d*3+1]=(.5*r[1]+.5)*e.lastSize[1],u[d*3+2]=r[2];for(let b=0;b<l;b++)f[d*l+b]=e.lastTickBounds[0]+m.scalars[S]*(e.lastTickBounds[1]-e.lastTickBounds[0]);d++}c[h*5]=4,c[h*5+1]=d-4,c[h*5+2]=d-3,c[h*5+3]=d-2,c[h*5+4]=d-1,h++}const v=_n.newInstance({numberOfComponents:l,values:f,name:"Scalars"});e.polyData.getPointData().setScalars(v),e.polyData.getPoints().setData(u,3),e.polyData.getPoints().modified(),e.polyData.getPolys().setData(c,1),e.polyData.getPolys().modified(),e.polyData.modified()}}const $Xe=j.newInstance(function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{renderable:null};Object.assign(e,{},n),j.obj(t,e),j.setGet(t,e,["axisTitlePixelOffset","tickLabelPixelOffset","renderable","topTitle","ticks","tickStrings"]),j.get(t,e,["lastSize","lastAspectRatio","lastTickBounds","axisTextStyle","tickTextStyle","barActor","tmActor"]),j.getArray(t,e,["boxPosition","boxSize"]),j.setArray(t,e,["boxPosition","boxSize"],2),e.forceUpdate=!1,e.lastRebuildTime={},j.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=qs.newInstance(),e.barMapper.setInterpolateScalarsBeforeMapping(!0),e.barMapper.setUseLookupTableScalarRange(!0),e.polyData=Ta.newInstance(),e.barMapper.setInputData(e.polyData),e.barActor=yc.newInstance(),e.barActor.setMapper(e.barMapper),e.tmPolyData=Ta.newInstance(),e.tmMapper=qs.newInstance(),e.tmMapper.setInputData(e.tmPolyData),e.tmTexture=gC.newInstance({resizable:!0}),e.tmTexture.setInterpolate(!1),e.tmActor=yc.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=[],BXe(t,e)},"vtkScalarBarActorHelper");function IXe(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(pQ(t,e))},t.resetGenerateTicksToDefault=()=>{t.setGenerateTicks(vQ())}}function PXe(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 gQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,PXe(n)),e.autoLayout||(e.autoLayout=pQ(t,e)),e.generateTicks||(e.generateTicks=vQ()),yc.extend(t,e,n),t.getProperty().setDiffuse(0),t.getProperty().setAmbient(1),j.setGet(t,e,["automated","autoLayout","axisTitlePixelOffset","axisLabel","scalarsToColors","tickLabelPixelOffset","generateTicks","drawNanAnnotation","drawBelowRangeSwatch","drawAboveRangeSwatch"]),j.get(t,e,["axisTextStyle","tickTextStyle"]),j.getArray(t,e,["barPosition","barSize","boxPosition","boxSize"]),j.setArray(t,e,["barPosition","barSize","boxPosition","boxSize"],2),IXe(t,e)}const FXe=j.newInstance(gQ,"vtkScalarBarActor");var v_={newInstance:FXe,extend:gQ,newScalarBarActorHelper:$Xe};function zXe(t,e){e.classHierarchy.push("vtkOpenGLScalarBarActor"),t.buildPass=n=>{n&&(e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent(),e.scalarBarActorHelper.getRenderable()||e.scalarBarActorHelper.setRenderable(e.renderable),t.prepareNodes(),t.addMissingNode(e.scalarBarActorHelper.getBarActor()),t.addMissingNode(e.scalarBarActorHelper.getTmActor()),t.removeUnusedNodes())},t.opaquePass=(n,r)=>{if(n){const a=e._openGLRenderer?e._openGLRenderer.getRenderable().getActiveCamera():null,i=e._openGLRenderer.getTiledSizeAndOrigin();e.scalarBarActorHelper.updateAPISpecificData([i.usize,i.vsize],a,e._openGLRenderWindow.getRenderable())}}}const GXe={};function UXe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,GXe,n),dr.extend(t,e,n),e.scalarBarActorHelper=v_.newScalarBarActorHelper(),zXe(t,e)}const HXe=Yn(UXe,"vtkOpenGLScalarBarActor");us("vtkScalarBarActor",HXe);const{vtkErrorMacro:n4}=rl;function WXe(t,e){e.classHierarchy.push("vtkOpenGLSkybox"),t.buildPass=n=>{if(n){e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent(),e.context=e._openGLRenderWindow.getContext(),e.tris.setOpenGLRenderWindow(e._openGLRenderWindow),e.openGLTexture.setOpenGLRenderWindow(e._openGLRenderWindow);const r=e._openGLRenderer.getRenderable();e.openGLCamera=e._openGLRenderer.getViewNodeFor(r.getActiveCamera())}},t.queryPass=(n,r)=>{if(n){if(!e.renderable||!e.renderable.getVisibility())return;r.incrementOpaqueActorCount()}},t.opaquePass=(n,r)=>{if(n&&!e._openGLRenderer.getSelector()){t.updateBufferObjects(),e.context.depthMask(!0),e._openGLRenderWindow.getShaderCache().readyShaderProgram(e.tris.getProgram()),e.openGLTexture.render(e._openGLRenderWindow);const a=e.openGLTexture.getTextureUnit();e.tris.getProgram().setUniformi("sbtexture",a);const i=e._openGLRenderer.getRenderable(),o=e.openGLCamera.getKeyMatrices(i),s=new Float64Array(16);if(Ua(s,o.wcpc),e.tris.getProgram().setUniformMatrix("IMCPCMatrix",s),e.lastFormat==="box"){const l=i.getActiveCamera().getPosition();e.tris.getProgram().setUniform3f("camPos",l[0],l[1],l[2])}e.tris.getVAO().bind(),e.context.drawArrays(e.context.TRIANGLES,0,e.tris.getCABO().getElementCount()),e.tris.getVAO().release(),e.openGLTexture.deactivate()}},t.updateBufferObjects=()=>{if(!e.tris.getCABO().getElementCount()){const r=new Float32Array(12);for(let s=0;s<4;s++)r[s*3]=s%2*2-1,r[s*3+1]=s>1?1:-1,r[s*3+2]=1;const a=_n.newInstance({numberOfComponents:3,values:r});a.setName("points");const i=new Uint16Array(8);i[0]=3,i[1]=0,i[2]=1,i[3]=3,i[4]=3,i[5]=0,i[6]=3,i[7]=2;const o=_n.newInstance({numberOfComponents:1,values:i});e.tris.getCABO().createVBO(o,"polys",Ei.SURFACE,{points:a,cellOffset:0})}e.renderable.getFormat()!==e.lastFormat&&(e.lastFormat=e.renderable.getFormat(),e.lastFormat==="box"&&e.tris.setProgram(e._openGLRenderWindow.getShaderCache().readyShaderProgramArray(`//VTK::System::Dec
- attribute vec3 vertexMC;
- uniform mat4 IMCPCMatrix;
- varying vec3 TexCoords;
- void main () {
- gl_Position = vec4(vertexMC.xyz, 1.0);
- vec4 wpos = IMCPCMatrix * gl_Position;
- TexCoords = wpos.xyz/wpos.w;
- }`,`//VTK::System::Dec
- //VTK::Output::Dec
- varying vec3 TexCoords;
- uniform samplerCube sbtexture;
- uniform vec3 camPos;
- void main () {
- // skybox looks from inside out
- // which means we have to adjust
- // our tcoords. Otherwise text would
- // be flipped
- vec3 tc = normalize(TexCoords - camPos);
- if (abs(tc.z) < max(abs(tc.x),abs(tc.y)))
- {
- tc = vec3(1.0, 1.0, -1.0) * tc;
- }
- else
- {
- tc = vec3(-1.0, 1.0, 1.0) * tc;
- }
- gl_FragData[0] = textureCube(sbtexture, tc);
- }`,"")),e.lastFormat==="background"&&e.tris.setProgram(e._openGLRenderWindow.getShaderCache().readyShaderProgramArray(`//VTK::System::Dec
- attribute vec3 vertexMC;
- uniform mat4 IMCPCMatrix;
- varying vec2 TexCoords;
- void main () {
- gl_Position = vec4(vertexMC.xyz, 1.0);
- vec4 wpos = IMCPCMatrix * gl_Position;
- TexCoords = vec2(vertexMC.x, vertexMC.y)*0.5 + 0.5;
- }`,`//VTK::System::Dec
- //VTK::Output::Dec
- varying vec2 TexCoords;
- uniform sampler2D sbtexture;
- void main () {
- gl_FragData[0] = texture2D(sbtexture, TexCoords);
- }`,"")),e.tris.getShaderSourceTime().modified(),e.tris.getVAO().bind(),e.tris.getVAO().addAttributeArray(e.tris.getProgram(),e.tris.getCABO(),"vertexMC",e.tris.getCABO().getVertexOffset(),e.tris.getCABO().getStride(),e.context.FLOAT,3,e.context.FALSE)||n4("Error setting vertexMC in shader VAO."));const n=e.renderable.getTextures();n.length||n4("vtkSkybox requires a texture map"),e.openGLTexture.getRenderable()!==n[0]&&(e.openGLTexture.releaseGraphicsResources(e._openGLRenderWindow),e.openGLTexture.setRenderable(n[0]))}}const KXe={context:null};function jXe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,KXe,n),dr.extend(t,e,n),e.openGLTexture=Sd.newInstance(),e.tris=Ov.newInstance(),e.keyMatrixTime={},qr(e.keyMatrixTime,{mtime:0}),e.keyMatrices={normalMatrix:qd(new Float64Array(9)),mcwc:fn(new Float64Array(16))},zr(t,e,["context"]),Ja(t,e,["activeTextures"]),WXe(t,e)}const YXe=Yn(jXe);us("vtkSkybox",YXe);const{vtkDebugMacro:XXe}=rl;function qXe(t,e){e.classHierarchy.push("vtkOpenGLPixelSpaceCallbackMapper"),t.opaquePass=(n,r)=>{e._openGLRenderer=t.getFirstAncestorOfType("vtkOpenGLRenderer"),e._openGLRenderWindow=e._openGLRenderer.getParent();const a=e._openGLRenderer.getAspectRatio(),i=e._openGLRenderer?e._openGLRenderer.getRenderable().getActiveCamera():null,o=e._openGLRenderer.getTiledSizeAndOrigin();let s=null;if(e.renderable.getUseZValues()){const l=r.getZBufferTexture(),u=Math.floor(l.getWidth()),c=Math.floor(l.getHeight()),f=e._openGLRenderWindow.getContext();l.bind();const d=r.getFramebuffer();d?d.saveCurrentBindingsAndBuffers():XXe("No framebuffer to save/restore");const h=f.createFramebuffer();f.bindFramebuffer(f.FRAMEBUFFER,h),f.framebufferTexture2D(f.FRAMEBUFFER,f.COLOR_ATTACHMENT0,f.TEXTURE_2D,l.getHandle(),0),f.checkFramebufferStatus(f.FRAMEBUFFER)===f.FRAMEBUFFER_COMPLETE&&(s=new Uint8Array(u*c*4),f.viewport(0,0,u,c),f.readPixels(0,0,u,c,f.RGBA,f.UNSIGNED_BYTE,s)),d&&d.restorePreviousBindingsAndBuffers(),f.deleteFramebuffer(h)}e.renderable.invokeCallback(e.renderable.getInputData(),i,a,o,s)},t.queryPass=(n,r)=>{n&&e.renderable.getUseZValues()&&r.requestDepth()}}const ZXe={};function QXe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ZXe,n),dr.extend(t,e,n),qXe(t,e)}const JXe=Yn(QXe,"vtkOpenGLPixelSpaceCallbackMapper");us("vtkPixelSpaceCallbackMapper",JXe);const yQ=Object.create(null);function eu(t,e){yQ[t]=e}function eqe(t,e){e.classHierarchy.push("vtkWebGPUViewNodeFactory")}const tqe={};function mQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,tqe,n),e.overrides=yQ,Lq.extend(t,e,n),eqe(t,e)}const nqe=j.newInstance(mQ,"vtkWebGPUViewNodeFactory");var rqe={newInstance:nqe,extend:mQ};function aqe(t,e){e.classHierarchy.push("vtkWebGPUCamera"),t.getProjectionMatrix=(n,r,a,i)=>{if(fn(n),e.renderable.getParallelProjection()){const o=e.renderable.getParallelScale(),s=o*r,l=o,u=(i[0]-1)*s,c=(i[0]+1)*s,f=(i[1]-1)*l,d=(i[1]+1)*l,h=1/(c-u),v=1/(d-f);n[0]=2*h,n[5]=2*v,n[10]=1/(a[1]-a[0]),n[12]=(c+u)*h,n[13]=(d+f)*v,n[14]=a[1]/(a[1]-a[0])}else{const o=Math.tan(Math.PI*e.renderable.getViewAngle()/360);let s,l;e.renderable.getUseHorizontalViewAngle()===!0?(s=a[0]*o,l=a[0]*o/r):(s=a[0]*o*r,l=a[0]*o);const u=(i[0]-1)*s,c=(i[0]+1)*s,f=(i[1]-1)*l,d=(i[1]+1)*l;n[0]=2*a[0]/(c-u),n[5]=2*a[0]/(d-f),n[12]=(u+c)/(c-u),n[13]=(f+d)/(d-f),n[10]=0,n[14]=a[0],n[11]=-1,n[15]=0}},t.convertToOpenGLDepth=n=>{if(e.renderable.getParallelProjection())return 1-n;const r=e.renderable.getClippingRangeByReference();let a=-r[0]/n;return a=(r[0]+r[1])/(r[1]-r[0])+2*r[0]*r[1]/(a*(r[1]-r[0])),.5*a+.5},t.getKeyMatrices=n=>{const r=n.getRenderable(),a=n.getParent();if(Math.max(a.getMTime(),t.getMTime(),r.getMTime(),e.renderable.getMTime(),n.getStabilizedTime())>e.keyMatrixTime.getMTime()){const i=e.renderable.getViewMatrix();na(e.keyMatrices.normalMatrix,i),e.keyMatrices.normalMatrix[3]=0,e.keyMatrices.normalMatrix[7]=0,e.keyMatrices.normalMatrix[11]=0,Ua(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix),Wn(e.keyMatrices.wcvc,i);const o=n.getStabilizedCenterByReference();pr(e.keyMatrices.scvc,e.keyMatrices.wcvc,o);const s=n.getAspectRatio(),l=e.renderable.getClippingRangeByReference();t.getProjectionMatrix(e.keyMatrices.vcpc,s,l,e.renderable.getWindowCenterByReference()),Yr(e.keyMatrices.scpc,e.keyMatrices.vcpc,e.keyMatrices.scvc),Ua(e.keyMatrices.pcsc,e.keyMatrices.scpc),e.keyMatrixTime.modified()}return e.keyMatrices}}const iqe={keyMatrixTime:null,keyMatrices:null};function oqe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,iqe,n),dr.extend(t,e,n),e.keyMatrixTime={},j.obj(e.keyMatrixTime),e.keyMatrices={normalMatrix:new Float64Array(16),vcpc:new Float64Array(16),pcsc:new Float64Array(16),wcvc:new Float64Array(16),scpc:new Float64Array(16),scvc:new Float64Array(16)},j.setGet(t,e,["keyMatrixTime"]),aqe(t,e)}const sqe=j.newInstance(oqe);eu("vtkCamera",sqe);function lqe(t,e){e.classHierarchy.push("vtkWebGPUBindGroup"),t.setBindables=n=>{if(e.bindables.length===n.length){let r=!0;for(let a=0;a<e.bindables.length;a++)e.bindables[a]!==n[a]&&(r=!1);if(r)return}e.bindables=n,t.modified()},t.getBindGroupLayout=n=>{const r=[];for(let a=0;a<e.bindables.length;a++){const i=e.bindables[a].getBindGroupLayoutEntry();i.binding=a,r.push(i)}return n.getBindGroupLayout({entries:r})},t.getBindGroup=n=>{let r=t.getMTime();for(let i=0;i<e.bindables.length;i++){const o=e.bindables[i].getBindGroupTime().getMTime();r=o>r?o:r}if(r<e.bindGroupTime.getMTime())return e.bindGroup;const a=[];for(let i=0;i<e.bindables.length;i++){const o=e.bindables[i].getBindGroupEntry();o.binding=i,a.push(o)}return e.bindGroup=n.getHandle().createBindGroup({layout:t.getBindGroupLayout(n),entries:a,label:e.label}),e.bindGroupTime.modified(),e.bindGroup},t.getShaderCode=n=>{const r=[],a=n.getBindGroupLayoutCount(e.label);for(let i=0;i<e.bindables.length;i++)r.push(e.bindables[i].getShaderCode(i,a));return r.join(`
- `)}}const uqe={device:null,handle:null,label:null};function SQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,uqe,n),j.obj(t,e),e.bindables=[],e.bindGroupTime={},j.obj(e.bindGroupTime,{mtime:0}),j.get(t,e,["bindGroupTime","handle","sizeInBytes","usage"]),j.setGet(t,e,["label","device","arrayInformation"]),lqe(t,e)}const cqe=j.newInstance(SQ);var bQ={newInstance:cqe,extend:SQ};function fqe(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 wQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,dqe,n),j.obj(t,e),j.get(t,e,["lastCameraMTime"]),j.setGet(t,e,["device","handle"]),fqe(t,e)}const hqe=j.newInstance(wQ,"vtkWebGPUShaderModule");var pqe={newInstance:hqe,extend:wQ};function vqe(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 gqe(t,e){e.classHierarchy.push("vtkWebGPUShaderCache"),t.getShaderModule=n=>{const r=n.getType(),a=n.getHash(),i=e._shaderModules.keys();for(let s=0;s<i.length;s++){const l=i[s];if(l.getHash()===a&&l.getType()===r)return e._shaderModules.get(l)}const o=pqe.newInstance();return o.initialize(e.device,n),e._shaderModules.set(n,o),o}}const yqe={shaderModules:null,device:null,window:null};function _Q(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,yqe,n),e._shaderModules=new Map,j.obj(t,e),j.setGet(t,e,["device","window"]),gqe(t,e)}const mqe=j.newInstance(_Q,"vtkWebGPUShaderCache");var Jt={newInstance:mqe,extend:_Q,substitute:vqe};function Sqe(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<e.layouts.length;i++)a.push(e.layouts[i].layout);e.pipelineLayout=n.getHandle().createPipelineLayout({bindGroupLayouts:a}),e.pipelineDescription.layout=e.pipelineLayout;for(let i=0;i<e.shaderDescriptions.length;i++){const o=e.shaderDescriptions[i],s=n.getShaderModule(o);o.getType()==="vertex"&&(e.pipelineDescription.vertex.module=s.getHandle(),e.pipelineDescription.vertex.entryPoint="main"),o.getType()==="fragment"&&(e.pipelineDescription.fragment.module=s.getHandle(),e.pipelineDescription.fragment.entryPoint="main")}e.handle=n.getHandle().createRenderPipeline(e.pipelineDescription)},t.getShaderDescription=n=>{for(let r=0;r<e.shaderDescriptions.length;r++)if(e.shaderDescriptions[r].getType()===n)return e.shaderDescriptions[r];return null},t.addBindGroupLayout=n=>{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<e.layouts.length;r++)if(e.layouts[r].label===n)return r;return 0},t.bindVertexInput=(n,r)=>{r.bindBuffers(n)}}const bqe={handle:null,layouts:null,renderEncoder:null,shaderDescriptions:null,vertexState:null,topology:null,pipelineDescription:null};function xQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,bqe,n),qr(t,e),e.layouts=[],e.shaderDescriptions=[],Ja(t,e,["handle","pipelineDescription"]),zr(t,e,["device","renderEncoder","topology","vertexState"]),Sqe(t,e)}const wqe=Yn(xQ,"vtkWebGPUPipeline");var _qe={newInstance:wqe,extend:xQ};function xqe(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;c<s.length;c++)u[c]!==void 0?o.push(` @location(${c}) @interpolate(${u[c]}) ${s[c]} : ${l[c]},`):o.push(` @location(${c}) ${s[c]} : ${l[c]},`)}for(let s=0;s<e.builtinInputNames.length;s++)o.push(` ${e.builtinInputNames[s]} : ${e.builtinInputTypes[s]},`);o.length>1&&(o.push("};"),i=o,a[a.length-1]+=",",a.push(`input: ${e.type}Input`))}if(a.length&&(e.code=Jt.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.outputNames.length;s++)e.outputInterpolations[s]!==void 0?o.push(` @location(${s}) @interpolate(${e.outputInterpolations[s]}) ${e.outputNames[s]} : ${e.outputTypes[s]},`):o.push(` @location(${s}) ${e.outputNames[s]} : ${e.outputTypes[s]},`);for(let s=0;s<e.builtinOutputNames.length;s++)o.push(` ${e.builtinOutputNames[s]} : ${e.builtinOutputTypes[s]},`);o.push("};"),i=i.concat(o),e.code=Jt.substitute(e.code,"//VTK::IOStructs::Output",[`-> ${e.type}Output`]).result}e.code=Jt.substitute(e.code,"//VTK::IOStructs::Dec",i).result}}const Cqe={type:null,hash:null,code:null,outputNames:null,outputTypes:null};function CQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Cqe,n),e.outputNames=[],e.outputTypes=[],e.outputInterpolations=[],e.builtinOutputNames=[],e.builtinOutputTypes=[],e.builtinInputNames=[],e.builtinInputTypes=[],j.obj(t,e),j.setGet(t,e,["type","hash","code"]),j.getArray(t,e,["outputTypes","outputNames","outputInterpolations"]),xqe(t,e)}const Tqe=j.newInstance(CQ,"vtkWebGPUShaderDescription");var r4={newInstance:Tqe,extend:CQ};const a4={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 Eqe(t){return!t||t.length<6?0:t in a4?a4[t]:(hn(`unknown format ${t}`),null)}function Mqe(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 hn(`unknown format ${t}`),0;const a=5-r/2;return e*a}function Dqe(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 kqe(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{hn(`unknown format ${t}`);return}const n=t.split("x")[0],r=Number(n[n.length-1]);if(Number.isNaN(r)){hn(`unknown format ${t}`);return}return e+=8*(5-r/2),e+="Array",e}function Rqe(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{hn(`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 Lqe(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 Oqe(t){if(t){if(t.includes("f32"))return"Float32Array";if(t.includes("i32"))return"Int32Array";if(t.includes("u32"))return"Uint32Array";hn(`unknown format ${t}`)}}var jr={getDetailsFromTextureFormat:Eqe,getByteStrideFromBufferFormat:Mqe,getNumberOfComponentsFromBufferFormat:Dqe,getNativeTypeFromBufferFormat:kqe,getShaderTypeFromBufferFormat:Rqe,getByteStrideFromShaderFormat:Lqe,getNativeTypeFromShaderFormat:Oqe};function Aqe(t,e){if(t===e)return!0;if(t==null||e==null||t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!e.includes(t[n]))return!1;return!0}function Nqe(t,e){e.classHierarchy.push("vtkWebGPUVertexInput"),t.addBuffer=function(n,r){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"vertex",i=r;Array.isArray(i)||(i=[i]);for(let o=0;o<e.inputs.length;o++)if(Aqe(e.inputs[o].names,i)){if(e.inputs[o].buffer===n)return;e.inputs[o].buffer=n;return}e.inputs.push({buffer:n,stepMode:a,names:i}),e.inputs=e.inputs.sort((o,s)=>o.names[0]<s.names[0]?-1:o.names[0]>s.names[0]?1:0)},t.removeBufferIfPresent=n=>{for(let r=0;r<e.inputs.length;r++)e.inputs[r].names.includes(n)&&e.inputs.splice(r,1)},t.getBuffer=n=>{for(let r=0;r<e.inputs.length;r++)if(e.inputs[r].names.includes(n))return e.inputs[r].buffer;return null},t.hasAttribute=n=>{for(let r=0;r<e.inputs.length;r++)if(e.inputs[r].names.includes(n))return!0;return!1},t.getAttributeTime=n=>{for(let r=0;r<e.inputs.length;r++)if(e.inputs[r].names.includes(n))return e.inputs[r].buffer.getSourceTime();return 0},t.getShaderCode=()=>{let n="",r=0;for(let a=0;a<e.inputs.length;a++)for(let i=0;i<e.inputs[a].names.length;i++){const o=e.inputs[a].buffer.getArrayInformation()[i],s=jr.getShaderTypeFromBufferFormat(o.format);r>0&&(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<e.inputs.length;i++){const o=e.inputs[i].buffer,s={arrayStride:o.getStrideInBytes(),stepMode:e.inputs[i].stepMode,attributes:[]},l=o.getArrayInformation();for(let u=0;u<e.inputs[i].names.length;u++)s.attributes.push({shaderLocation:a,offset:l[u].offset,format:l[u].format}),a++;r.push(s)}n.buffers=r}return n},t.bindBuffers=n=>{for(let r=0;r<e.inputs.length;r++)n.setVertexBuffer(r,e.inputs[r].buffer.getHandle());e.indexBuffer&&n.setIndexBuffer(e.indexBuffer.getHandle(),e.indexBuffer.getArrayInformation()[0].format)},t.getReady=()=>{},t.releaseGraphicsResources=()=>{e.created&&(e.inputs=[],e.bindingDescriptions=[],e.attributeDescriptions=[])}}const Vqe={inputs:null,bindingDescriptions:!1,attributeDescriptions:null,indexBuffer:null};function TQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Vqe,n),qr(t,e),e.bindingDescriptions=[],e.attributeDescriptions=[],e.inputs=[],zr(t,e,["created","device","handle","indexBuffer"]),Nqe(t,e)}const Bqe=Yn(TQ,"vtkWebGPUVertexInput");var $qe={newInstance:Bqe,extend:TQ};const Iqe=`
- //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<f32> = vertexBC;
- //VTK::Color::Impl
- //VTK::Normal::Impl
- //VTK::TCoord::Impl
- //VTK::Select::Impl
- //VTK::Position::Impl
- return output;
- }
- `,Pqe=`
- //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<f32> = vec4<f32>(1.0,0.5,0.5,1.0);
- //VTK::RenderEncoder::Impl
- return output;
- }
- `;function Fqe(t,e){e.classHierarchy.push("vtkWebGPUSimpleMapper"),t.generateShaderDescriptions=(n,r,a)=>{const i=r4.newInstance({type:"vertex",hash:n,code:e.vertexShaderTemplate}),o=r4.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,v)=>v.indexOf(d)===h).map(d=>`replaceShader${d.substring(7,d.length-2)}`);for(let d=0;d<f.length;d++){const h=f[d];h!=="replaceShaderIOStructs"&&e.shaderReplacements.has(h)&&e.shaderReplacements.get(h)(n,r,a)}t.replaceShaderIOStructs(n,r,a)},t.replaceShaderIOStructs=(n,r,a)=>{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=Jt.substitute(s,"//VTK::Renderer::Dec",[i]).result,o.setCode(s);const l=r.getShaderDescription("fragment");s=l.getCode(),s=Jt.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=Jt.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=Jt.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<f32>","@builtin(position) Position");let o=i.getCode();o=Jt.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<f32>","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<e.textureViews.length;r++){n.push(e.textureViews[r]);const a=e.textureViews[r].getSampler();a&&n.push(a)}return n},t.updatePipeline=()=>{t.computePipelineHash(),e.pipeline=e.device.getPipeline(e.pipelineHash),e.pipeline||(e.pipeline=_qe.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 zqe={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 EQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,zqe,n),dr.extend(t,e,n),e.textureViews=[],e.vertexInput=$qe.newInstance(),e.bindGroup=bQ.newInstance({label:"mapperBG"}),e.additionalBindables=[],e.fragmentShaderTemplate=e.fragmentShaderTemplate||Pqe,e.vertexShaderTemplate=e.vertexShaderTemplate||Iqe,e.shaderReplacements=new Map,j.get(t,e,["pipeline","vertexInput"]),j.setGet(t,e,["additionalBindables","device","fragmentShaderTemplate","interpolate","numberOfInstances","numberOfVertices","pipelineHash","shaderReplacements","SSBO","textureViews","topology","UBO","vertexShaderTemplate","WebGPURenderer"]),Fqe(t,e)}const Gqe=j.newInstance(EQ,"vtkWebGPUSimpleMapper");var O3={newInstance:Gqe,extend:EQ};function Uqe(t,e){e.classHierarchy.push("vtkWebGPUFullScreenQuad"),t.replaceShaderPosition=(n,r,a)=>{const i=r.getShaderDescription("vertex");i.addBuiltinOutput("vec4<f32>","@builtin(position) Position"),i.addOutput("vec4<f32>","vertexVC");let o=i.getCode();o=Jt.substitute(o,"//VTK::Position::Impl",["output.tcoordVS = vec2<f32>(vertexBC.x * 0.5 + 0.5, 1.0 - vertexBC.y * 0.5 - 0.5);","output.Position = vec4<f32>(vertexBC, 1.0);","output.vertexVC = vec4<f32>(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 Hqe={};function MQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Hqe,n),O3.extend(t,e,n),Uqe(t,e)}const Wqe=j.newInstance(MQ,"vtkWebGPUFullScreenQuad");var rv={newInstance:Wqe,extend:MQ};const Kqe={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},jqe={Start:0,Points:0,Lines:1,Triangles:2,TriangleStrips:3,TriangleEdges:4,TriangleStripEdges:5,End:6};var Im={BufferUsage:Kqe,PrimitiveTypes:jqe};const g2=["getMappedRange","mapAsync","unmap"];function Yqe(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 Xqe(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=>{Yqe(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;n<g2.length;n++)t[g2[n]]=function(){return e.handle[g2[n]](...arguments)}}const qqe={device:null,handle:null,sizeInBytes:0,strideInBytes:0,arrayInformation:null,usage:null,label:null,sourceTime:null};function DQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,qqe,n),j.obj(t,e),j.get(t,e,["handle","sizeInBytes","usage"]),j.setGet(t,e,["strideInBytes","device","arrayInformation","label","sourceTime"]),Xqe(t,e)}const Zqe=j.newInstance(DQ);var av={newInstance:Zqe,extend:DQ,...Im};const{Representation:i4}=Lv,{PrimitiveTypes:Lu}=Im;class Qqe{constructor(){this.keys=new Uint32Array(10),this.values=new Uint32Array(10),this.count=0}clear(){this.count=0}has(e){for(let n=0;n<this.count;n++)if(this.keys[n]===e)return!0}get(e){for(let n=0;n<this.count;n++)if(this.keys[n]===e)return this.values[n]}set(e,n){this.count<9&&(this.keys[this.count]=e,this.values[this.count++]=n)}}function Jqe(t){switch(t){case Lu.Points:return"points";case Lu.Lines:return"lines";case Lu.Triangles:case Lu.TriangleEdges:return"polys";case Lu.TriangleStripEdges:case Lu.TriangleStrips:return"strips";default:return""}}function Z1(t,e,n){let r=t.pointIdToFlatId[e];return r<0&&(r=t.flatId,t.pointIdToFlatId[e]=r,t.flatIdToPointId[t.flatId]=e,t.flatIdToCellId[t.flatId]=n,t.flatId++),r}function eZe(t,e,n){const r=t.length;for(let o=0;o<r;o++){let s=t[o];if(n.cellProvokedMap.has(s)){n.ibo[n.iboId++]=n.cellProvokedMap.get(s);for(let l=o+1;l<o+r;l++){s=t[l%r];const u=Z1(n,s,e);n.ibo[n.iboId++]=u}return}}for(let o=0;o<r;o++){let s=t[o];if(!n.provokedPointIds[s]){let l=Z1(n,s,e);n.provokedPointIds[s]=1,n.cellProvokedMap.set(s,l),n.flatIdToCellId[l]=e,n.ibo[n.iboId++]=l;for(let u=o+1;u<o+r;u++)s=t[u%r],l=Z1(n,s,e),n.ibo[n.iboId++]=l;return}}let a=t[0],i=n.flatId;n.cellProvokedMap.set(a,i),n.flatIdToPointId[n.flatId]=a,n.flatIdToCellId[n.flatId]=e,n.flatId++,n.ibo[n.iboId++]=i;for(let o=1;o<r;o++)a=t[o],i=Z1(n,a,e),n.ibo[n.iboId++]=i}function tZe(t,e,n){const r=t.length;n.iboSize+=r;for(let a=0;a<r;a++){const i=t[a];if(n.cellProvokedMap.has(i))return}for(let a=0;a<r;a++){const i=t[a];if(!n.provokedPointIds[i]){n.provokedPointIds[i]=1,n.cellProvokedMap.set(i,1);return}}n.cellProvokedMap.set(t[0],1),n.extraPoints++}let gl;const o4=new Uint32Array(1),Vi=new Uint32Array(2),uu=new Uint32Array(3),y2={anythingToPoints(t,e,n,r,a){for(let i=0;i<t;++i)o4[0]=e[n+i],gl(o4,r,a)},linesToWireframe(t,e,n,r,a){for(let i=0;i<t-1;++i)Vi[0]=e[n+i],Vi[1]=e[n+i+1],gl(Vi,r,a)},polysToWireframe(t,e,n,r,a){if(t>2)for(let i=0;i<t;++i)Vi[0]=e[n+i],Vi[1]=e[n+(i+1)%t],gl(Vi,r,a)},stripsToWireframe(t,e,n,r,a){if(t>2){for(let i=0;i<t-1;++i)Vi[0]=e[n+i],Vi[1]=e[n+i+1],gl(Vi,r,a);for(let i=0;i<t-2;i++)Vi[0]=e[n+i],Vi[1]=e[n+i+2],gl(Vi,r,a)}},polysToSurface(t,e,n,r,a){for(let i=0;i<t-2;i++)uu[0]=e[n],uu[1]=e[n+i+1],uu[2]=e[n+i+2],gl(uu,r,a)},stripsToSurface(t,e,n,r,a){for(let i=0;i<t-2;i++)uu[0]=e[n+i],uu[1]=e[n+i+1+i%2],uu[2]=e[n+i+1+(i+1)%2],gl(uu,r,a)}};function nZe(t,e){e.classHierarchy.push("vtkWebGPUIndexBuffer"),t.buildIndexBuffer=n=>{const r=n.cells,a=n.primitiveType,i=n.representation,o=n.cellOffset,s=r.getData(),l=s.length,u=Jqe(a),c=n.numberOfPoints,f={provokedPointIds:new Uint8Array(c),extraPoints:0,iboSize:0,flatId:0,iboId:0,cellProvokedMap:new Qqe};let d=null;i===i4.POINTS||a===Lu.Points?d=y2.anythingToPoints:i===i4.WIREFRAME||a===Lu.Lines?d=y2[`${u}ToWireframe`]:d=y2[`${u}ToSurface`],gl=tZe;let h=o||0;for(let v=0;v<l;)f.cellProvokedMap.clear(),d(s[v],s,v+1,h,f),v+=s[v]+1,h++;c<=65535?f.flatIdToPointId=new Uint16Array(c+f.extraPoints):f.flatIdToPointId=new Uint32Array(c+f.extraPoints),c+f.extraPoints<36863?f.pointIdToFlatId=new Int16Array(c):f.pointIdToFlatId=new Int32Array(c),c+f.extraPoints<=65535?(f.ibo=new Uint16Array(f.iboSize),n.format="uint16"):(f.ibo=new Uint32Array(f.iboSize),n.format="uint32"),h<=65535?f.flatIdToCellId=new Uint16Array(c+f.extraPoints):f.flatIdToCellId=new Uint32Array(c+f.extraPoints),f.pointIdToFlatId.fill(-1),f.provokedPointIds.fill(0),gl=eZe,h=o||0;for(let v=0;v<l;)f.cellProvokedMap.clear(),d(s[v],s,v+1,h,f),v+=s[v]+1,h++;delete f.provokedPointIds,delete f.pointIdToFlatId,n.nativeArray=f.ibo,e.flatIdToPointId=f.flatIdToPointId,e.flatIdToCellId=f.flatIdToCellId,e.flatSize=f.flatId,e.indexCount=f.iboId}}const rZe={flatIdToPointId:null,flatIdToCellId:null,flatSize:0,indexCount:0};function kQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,rZe,n),av.extend(t,e,n),j.setGet(t,e,["flatIdToPointId","flatIdToCellId","flatSize","indexCount"]),nZe(t,e)}const aZe=j.newInstance(kQ);var iZe={newInstance:aZe,extend:kQ,...Im};const{BufferUsage:cu}=Im,{vtkErrorMacro:oZe}=rl,{VtkDataTypes:ef}=_n,sZe={};function lZe(t){let e;switch(t.getDataType()){case ef.UNSIGNED_CHAR:e="uint8";break;case ef.FLOAT:e="float32";break;case ef.UNSIGNED_INT:e="uint32";break;case ef.INT:e="sint32";break;case ef.DOUBLE:e="float32";break;case ef.UNSIGNED_SHORT:e="uint16";break;case ef.SHORT:e="sin16";break;default:e="float32";break}switch(t.getNumberOfComponents()){case 2:e+="x2";break;case 3:e.includes("32")||oZe(`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=Dv(r,o*d);let v=t.getFlatIdToPointId();a.cellData&&(v=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 p=0;p<o;p++){const g=n*v[p];c(g)}return i.nativeArray=h,i}function uZe(t,e,n,r){const a=[t[r*3]-t[n*3],t[r*3+1]-t[n*3+1],t[r*3+2]-t[n*3+2]],i=[t[e*3]-t[n*3],t[e*3+1]-t[n*3+1],t[e*3+2]-t[n*3+2]],o=[];return Ol(a,i,o),Fl(o),o}function cZe(t,e){const n=e.getData(),r=t.getData();if(!r||!n)return null;const a=new Int8Array(t.getNumberOfCells()*4),i=r.length;let o=0;for(let s=0;s<i;){const l=uZe(n,r[s+1],r[s+2],r[s+3]);a[o++]=127*l[0],a[o++]=127*l[1],a[o++]=127*l[2],a[o++]=127,s+=r[s]+1}return a}function fZe(t,e){e.classHierarchy.push("vtkWebGPUBufferManager");function n(r){r.dataArray&&!r.nativeArray&&(r.nativeArray=r.dataArray.getData());let a,i;if(r.usage===cu.Index&&(a=iZe.newInstance({label:r.label}),a.setDevice(e.device),i=GPUBufferUsage.INDEX|GPUBufferUsage.COPY_DST,a.buildIndexBuffer(r),a.createAndWrite(r.nativeArray,i),a.setArrayInformation([{format:r.format}])),a||(a=av.newInstance({label:r.label}),a.setDevice(e.device)),r.usage===cu.UniformArray&&(i=GPUBufferUsage.UNIFORM|GPUBufferUsage.COPY_DST,a.createAndWrite(r.nativeArray,i)),r.usage===cu.Storage&&(i=GPUBufferUsage.STORAGE|GPUBufferUsage.COPY_DST,a.createAndWrite(r.nativeArray,i)),r.usage===cu.Texture&&(i=GPUBufferUsage.COPY_SRC,a.createAndWrite(r.nativeArray,i)),r.usage===cu.PointArray){i=GPUBufferUsage.VERTEX;const o=jr.getNativeTypeFromBufferFormat(r.format),s=s4(r.indexBuffer,r.dataArray.getData(),r.dataArray.getNumberOfComponents(),o,{packExtra:r.packExtra,shift:r.shift,scale:r.scale,cellData:r.cellData,cellOffset:r.cellOffset});a.createAndWrite(s.nativeArray,i),a.setStrideInBytes(jr.getByteStrideFromBufferFormat(r.format)),a.setArrayInformation([{offset:0,format:r.format,interpolation:r.cellData?"flat":"perspective"}])}if(r.usage===cu.NormalsFromPoints){i=GPUBufferUsage.VERTEX;const o=jr.getNativeTypeFromBufferFormat(r.format),s=cZe(r.cells,r.dataArray),l=s4(r.indexBuffer,s,4,o,{cellData:!0});a.createAndWrite(l.nativeArray,i),a.setStrideInBytes(jr.getByteStrideFromBufferFormat(r.format)),a.setArrayInformation([{offset:0,format:r.format,interpolation:"flat"}])}return r.usage===cu.RawVertex&&(i=GPUBufferUsage.VERTEX,a.createAndWrite(r.nativeArray,i),a.setStrideInBytes(jr.getByteStrideFromBufferFormat(r.format)),a.setArrayInformation([{offset:0,format:r.format}])),a.setSourceTime(r.time),a}t.hasBuffer=r=>e.device.hasCachedObject(r),t.getBuffer=r=>r.hash?e.device.getCachedObject(r.hash,n,r):n(r),t.getBufferForPointArray=(r,a)=>{const i=lZe(r),o={hash:`${r.getMTime()}I${a.getMTime()}${i}`,usage:cu.PointArray,format:i,dataArray:r,indexBuffer:a};return t.getBuffer(o)},t.getFullScreenQuadBuffer=()=>{if(e.fullScreenQuadBuffer)return e.fullScreenQuadBuffer;e.fullScreenQuadBuffer=av.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 dZe={device:null,fullScreenQuadBuffer:null};function RQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,dZe,n),qr(t,e),zr(t,e,["device"]),fZe(t,e)}const hZe=Yn(RQ);var Vc={newInstance:hZe,extend:RQ,...sZe,...Im};const{BufferUsage:pZe}=Vc,{vtkErrorMacro:vh}=j;function vZe(t,e){e.classHierarchy.push("vtkWebGPUStorageBuffer"),t.addEntry=(n,r)=>{if(e._bufferEntryNames.has(n)){vh(`entry named ${n} already exists`);return}e._bufferEntryNames.set(n,e.bufferEntries.length);const a=jr.getByteStrideFromShaderFormat(r);e.bufferEntries.push({name:n,type:r,sizeInBytes:a,offset:e.sizeInBytes,nativeType:jr.getNativeTypeFromShaderFormat(r)}),e.sizeInBytes+=a},t.send=n=>{if(!e._buffer){const r={nativeArray:e.Float32Array,usage:pZe.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]=j.newTypedArray(n,e.arrayBuffer))},t.setValue=(n,r,a)=>{const i=e._bufferEntryNames.get(n);if(i===void 0){vh(`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){vh(`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<a.length;u++)s[l+u]=a[u]},t.setAllInstancesFromArray=(n,r)=>{const a=e._bufferEntryNames.get(n);if(a===void 0){vh(`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<e.numberOfInstances;l++){const u=(i.offset+l*e.sizeInBytes)/o.BYTES_PER_ELEMENT;for(let c=0;c<s;c++)o[u+c]=r[l*s+c]}},t.setAllInstancesFromArrayColorToFloat=(n,r)=>{const a=e._bufferEntryNames.get(n);if(a===void 0){vh(`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<e.numberOfInstances;l++){const u=(i.offset+l*e.sizeInBytes)/o.BYTES_PER_ELEMENT;for(let c=0;c<s;c++)o[u+c]=r[l*s+c]/255}},t.setAllInstancesFromArray3x3To4x4=(n,r)=>{const a=e._bufferEntryNames.get(n);if(a===void 0){vh(`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;l<e.numberOfInstances;l++){const u=(i.offset+l*e.sizeInBytes)/o.BYTES_PER_ELEMENT;for(let c=0;c<3;c++)for(let f=0;f<3;f++)o[u+c*4+f]=r[l*s+c*3+f]}},t.getSendTime=()=>e._sendTime.getMTime(),t.getShaderCode=(n,r)=>{const a=[`struct ${e.label}StructEntry
- {`];for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];a.push(` ${o.name}: ${o.type},`)}return a.push(`
- };
- struct ${e.label}Struct
- {
- values: array<${e.label}StructEntry>,
- };
- @binding(${n}) @group(${r}) var<storage, read> ${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 gZe={bufferEntries:null,bufferEntryNames:null,sizeInBytes:0,label:null,numberOfInstances:1};function LQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,gZe,n),j.obj(t,e),e._bufferEntryNames=new Map,e.bufferEntries=[],e._sendTime={},j.obj(e._sendTime,{mtime:0}),e.bindGroupTime={},j.obj(e.bindGroupTime,{mtime:0}),e.bindGroupLayoutEntry=e.bindGroupLayoutEntry||{buffer:{type:"read-only-storage"}},j.get(t,e,["bindGroupTime"]),j.setGet(t,e,["device","bindGroupLayoutEntry","label","numberOfInstances","sizeInBytes"]),vZe(t,e)}const yZe=j.newInstance(LQ,"vtkWebGPUStorageBuffer");var Kk={newInstance:yZe,extend:LQ};const{BufferUsage:mZe}=Vc,{vtkErrorMacro:m2}=j;function SZe(t,e){e.classHierarchy.push("vtkWebGPUUniformBuffer"),t.addEntry=(n,r)=>{if(e._bufferEntryNames.has(n)){m2(`entry named ${n} already exists`);return}e.sortDirty=!0,e._bufferEntryNames.set(n,e.bufferEntries.length),e.bufferEntries.push({name:n,type:r,sizeInBytes:jr.getByteStrideFromShaderFormat(r),offset:-1,nativeType:jr.getNativeTypeFromShaderFormat(r),packed:!1})},t.sortBufferEntries=()=>{if(!e.sortDirty)return;let n=0;const r=[];let a=4;for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];o.sizeInBytes%16===0&&(a=Math.max(16,a)),o.sizeInBytes%8===0&&(a=Math.max(8,a))}for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];o.packed===!1&&o.sizeInBytes%16===0&&(o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes)}for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];if(o.packed===!1&&o.sizeInBytes===12)for(let s=0;s<e.bufferEntries.length;s++){const l=e.bufferEntries[s];if(l.packed===!1&&l.sizeInBytes===4){o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes,l.packed=!0,l.offset=n,r.push(l),n+=l.sizeInBytes;break}}}for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];if(!o.packed&&o.sizeInBytes%8===0)for(let s=i+1;s<e.bufferEntries.length;s++){const l=e.bufferEntries[s];if(!l.packed&&l.sizeInBytes%8===0){o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes,l.packed=!0,l.offset=n,r.push(l),n+=l.sizeInBytes;break}}}for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];if(!o.packed&&o.sizeInBytes%8===0){let s=!1;for(let l=0;!s&&l<e.bufferEntries.length;l++){const u=e.bufferEntries[l];if(!u.packed&&u.sizeInBytes===4)for(let c=l+1;c<e.bufferEntries.length;c++){const f=e.bufferEntries[c];if(!f.packed&&f.sizeInBytes===4){o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes,u.packed=!0,u.offset=n,r.push(u),n+=u.sizeInBytes,f.packed=!0,f.offset=n,r.push(f),n+=f.sizeInBytes,s=!0;break}}}}}for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];!o.packed&&o.sizeInBytes>4&&(o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes)}for(let i=0;i<e.bufferEntries.length;i++){const o=e.bufferEntries[i];o.packed||(o.packed=!0,o.offset=n,r.push(o),n+=o.sizeInBytes)}e.bufferEntries=r,e._bufferEntryNames.clear();for(let i=0;i<e.bufferEntries.length;i++)e._bufferEntryNames.set(e.bufferEntries[i].name,i);e.sizeInBytes=n,e.sizeInBytes=a*Math.ceil(e.sizeInBytes/a),e.sortDirty=!1},t.sendIfNeeded=n=>{if(!e.UBO){const r={nativeArray:e.Float32Array,usage:mZe.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]=j.newTypedArray(n,e.arrayBuffer))},t.setValue=(n,r)=>{t.sortBufferEntries();const a=e._bufferEntryNames.get(n);if(a===void 0){m2(`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){m2(`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<r.length;l++)(!i.lastValue||i.lastValue[l]!==r[l])&&(o[i.offset/o.BYTES_PER_ELEMENT+l]=r[l],s=!0);s&&(e.sendDirty=!0,i.lastValue=[...r])},t.getBindGroupEntry=()=>({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.bufferEntries.length;i++){const o=e.bufferEntries[i];a.push(` ${o.name}: ${o.type},`)}return a.push(`};
- @binding(${n}) @group(${r}) var<uniform> ${e.label}: ${e.label}Struct;`),a.join(`
- `)}}const bZe={bufferEntries:null,bufferEntryNames:null,sizeInBytes:0,label:null,bindGroupLayoutEntry:null,bindGroupEntry:null};function OQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,bZe,n),j.obj(t,e),e._bufferEntryNames=new Map,e.bufferEntries=[],e.bindGroupLayoutEntry=e.bindGroupLayoutEntry||{buffer:{type:"uniform"}},e.sendTime={},j.obj(e.sendTime,{mtime:0}),e.bindGroupTime={},j.obj(e.bindGroupTime,{mtime:0}),e.sendDirty=!0,e.sortDirty=!0,j.get(t,e,["binding","bindGroupTime"]),j.setGet(t,e,["bindGroupLayoutEntry","device","label","sizeInBytes"]),SZe(t,e)}const wZe=j.newInstance(OQ,"vtkWebGPUUniformBuffer");var bd={newInstance:wZe,extend:OQ};const{vtkDebugMacro:_Ze}=rl,l4=`
- //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<f32> = mapperUBO.BackgroundColor;
- //VTK::RenderEncoder::Impl
- return output;
- }
- `,xZe=`
- fn vecToRectCoord(dir: vec3<f32>) -> vec2<f32> {
- var tau: f32 = 6.28318530718;
- var pi: f32 = 3.14159265359;
- var out: vec2<f32> = vec2<f32>(0.0);
- out.x = atan2(dir.z, dir.x) / tau;
- out.x += 0.5;
- var phix: f32 = length(vec2(dir.x, dir.z));
- out.y = atan2(dir.y, phix) / pi + 0.5;
- return out;
- }
- //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 tcoord: vec4<f32> = vec4<f32>(input.vertexVC.xy, -1, 1);
- var V: vec4<f32> = normalize(mapperUBO.FSQMatrix * tcoord); // vec2<f32>((input.tcoordVS.x - 0.5) * 2, -(input.tcoordVS.y - 0.5) * 2);
- // textureSampleLevel gets rid of some ugly artifacts
- var background = textureSampleLevel(EnvironmentTexture, EnvironmentTextureSampler, vecToRectCoord(V.xyz), 0.0);
- var computedColor: vec4<f32> = vec4<f32>(background.rgb, 1);
- //VTK::RenderEncoder::Impl
- return output;
- }
- `,Q1=new Float64Array(16),u4=new Float64Array(16);function CZe(t){return t.getPositional()?t.getConeAngle()>=90?0:2:1}function TZe(t,e){e.classHierarchy.push("vtkWebGPURenderer"),t.buildPass=n=>{if(n){if(!e.renderable)return;e.camera=e.renderable.getActiveCamera(),t.updateLights(),t.prepareNodes(),t.addMissingNode(e.camera),t.addMissingNodes(e.renderable.getViewPropsWithNestedProps()),t.removeUnusedNodes(),e.webgpuCamera=t.getViewNodeFor(e.camera),t.updateStabilizedMatrix()}},t.updateStabilizedMatrix=()=>{const n=e.camera.getClippingRange(),r=e.camera.getPositionByReference(),a=e.camera.getDirectionOfProjectionByReference(),i=[],o=[];Tu(o,a,.5*(n[0]+n[1])),jg(i,r,o),Vk(o,i,e.stabilizedCenter),Mq(o)/(n[1]-n[0])>e.recenterThreshold&&(e.stabilizedCenter=i,e.stabilizedTime.modified())},t.updateLights=()=>{let n=0;const r=e.renderable.getLightsByReference();for(let a=0;a<r.length;++a)r[a].getSwitch()>0&&n++;return n||(_Ze("No lights are on, creating one."),e.renderable.createLight()),n},t.updateUBO=()=>{var r;const n=e.UBO.getSendTime();if(e._parent.getMTime()>n||t.getMTime()>n||e.camera.getMTime()>n||e.renderable.getMTime()>n){const a=e.webgpuCamera.getKeyMatrices(t);e.UBO.setArray("WCVCMatrix",a.wcvc),e.UBO.setArray("SCPCMatrix",a.scpc),e.UBO.setArray("PCSCMatrix",a.pcsc),e.UBO.setArray("SCVCMatrix",a.scvc),e.UBO.setArray("VCPCMatrix",a.vcpc),e.UBO.setArray("WCVCNormals",a.normalMatrix),e.UBO.setValue("LightCount",e.renderable.getLights().length),e.UBO.setValue("MaxEnvironmentMipLevel",(r=e.renderable.getEnvironmentTexture())==null?void 0:r.getMipLevel()),e.UBO.setValue("BackgroundDiffuseStrength",e.renderable.getEnvironmentTextureDiffuseStrength()),e.UBO.setValue("BackgroundSpecularStrength",e.renderable.getEnvironmentTextureSpecularStrength());const i=t.getYInvertedTiledSizeAndOrigin();e.UBO.setArray("viewportSize",[i.usize,i.vsize]),e.UBO.setValue("cameraParallel",e.camera.getParallelProjection());const o=e._parent.getDevice();e.UBO.sendIfNeeded(o)}},t.updateSSBO=()=>{const n=e.renderable.getLights(),r=e.webgpuCamera.getKeyMatrices(t);let a=`${e.renderable.getMTime()}`;for(let i=0;i<n.length;i++)a+=n[i].getMTime();if(a!==e.lightTimeString){const i=new Float32Array(n.length*4),o=new Float32Array(n.length*4),s=new Float32Array(n.length*4),l=new Float32Array(n.length*4);for(let c=0;c<n.length;c++){const f=c*4,d=n[c].getPosition();En(d,d,r.wcvc),i[f]=d[0],i[f+1]=d[1],i[f+2]=d[2],i[f+3]=0,o[f]=-n[c].getDirection()[0],o[f+1]=-n[c].getDirection()[1],o[f+2]=-n[c].getDirection()[2],o[f+3]=0,s[f]=n[c].getColor()[0],s[f+1]=n[c].getColor()[1],s[f+2]=n[c].getColor()[2],s[f+3]=n[c].getIntensity()*5,l[f]=CZe(n[c]),l[f+1]=Math.cos(hr(n[c].getConeAngle())),l[f+2]=Math.cos(hr(n[c].getConeAngle()+n[c].getConeFalloff())),l[f+3]=0}e.SSBO.clearData(),e.SSBO.setNumberOfInstances(n.length),e.SSBO.addEntry("LightPos","vec4<f32>"),e.SSBO.addEntry("LightDir","vec4<f32>"),e.SSBO.addEntry("LightColor","vec4<f32>"),e.SSBO.addEntry("LightData","vec4<f32>"),e.SSBO.setAllInstancesFromArray("LightPos",i),e.SSBO.setAllInstancesFromArray("LightDir",o),e.SSBO.setAllInstancesFromArray("LightColor",s),e.SSBO.setAllInstancesFromArray("LightData",l);const u=e._parent.getDevice();e.SSBO.send(u)}e.lightTimeString=a},t.scissorAndViewport=n=>{const r=t.getYInvertedTiledSizeAndOrigin();n.getHandle().setViewport(r.lowerLeftU,r.lowerLeftV,r.usize,r.vsize,0,1),n.getHandle().setScissorRect(r.lowerLeftU,r.lowerLeftV,r.usize,r.vsize)},t.bindUBO=n=>{n.activateBindGroup(e.bindGroup)},t.opaquePass=n=>{n?(e.renderEncoder.begin(e._parent.getCommandEncoder()),t.updateUBO(),t.updateSSBO()):(t.scissorAndViewport(e.renderEncoder),t.clear(),e.renderEncoder.end())},t.clear=()=>{var i;if(e.renderable.getTransparent()||e.suppressClear)return;const n=e._parent.getDevice();if(!e.clearFSQ){e.clearFSQ=rv.newInstance(),e.clearFSQ.setDevice(n),e.clearFSQ.setPipelineHash("clearfsq"),e.clearFSQ.setFragmentShaderTemplate(l4);const o=bd.newInstance({label:"mapperUBO"});o.addEntry("FSQMatrix","mat4x4<f32>"),o.addEntry("BackgroundColor","vec4<f32>"),e.clearFSQ.setUBO(o),e.backgroundTex=e.renderable.getEnvironmentTexture()}if(e.clearFSQ.getPipelineHash()!=="clearfsqwithtexture"&&e.renderable.getUseEnvironmentTextureAsBackground()&&((i=e.backgroundTex)!=null&&i.getImageLoaded())){e.clearFSQ.setFragmentShaderTemplate(xZe);const o=bd.newInstance({label:"mapperUBO"});o.addEntry("FSQMatrix","mat4x4<f32>"),o.addEntry("BackgroundColor","vec4<f32>"),e.clearFSQ.setUBO(o);const s=n.getTextureManager().getTextureForVTKTexture(e.backgroundTex);if(s.getReady()){const l=s.createView("EnvironmentTexture");e.clearFSQ.setTextureViews([l]),e.backgroundTexLoaded=!0;const u=e.backgroundTex.getInterpolate()?"linear":"nearest";l.addSampler(n,{addressModeU:"repeat",addressModeV:"clamp-to-edge",addressModeW:"repeat",minFilter:u,magFilter:u,mipmapFilter:"linear"})}e.clearFSQ.setPipelineHash("clearfsqwithtexture")}else if(e.clearFSQ.getPipelineHash()==="clearfsqwithtexture"&&!e.renderable.getUseEnvironmentTextureAsBackground()){e.clearFSQ=rv.newInstance(),e.clearFSQ.setDevice(n),e.clearFSQ.setPipelineHash("clearfsq"),e.clearFSQ.setFragmentShaderTemplate(l4);const o=bd.newInstance({label:"mapperUBO"});o.addEntry("FSQMatrix","mat4x4<f32>"),o.addEntry("BackgroundColor","vec4<f32>"),e.clearFSQ.setUBO(o)}const r=e.webgpuCamera.getKeyMatrices(t),a=e.renderable.getBackgroundByReference();e.clearFSQ.getUBO().setArray("BackgroundColor",a),Wn(u4,r.normalMatrix),Ok(Q1,r.scvc,r.pcsc),Ok(Q1,u4,Q1),e.clearFSQ.getUBO().setArray("FSQMatrix",Q1),e.clearFSQ.getUBO().sendIfNeeded(n),e.clearFSQ.prepareAndDraw(e.renderEncoder)},t.translucentPass=n=>{n?e.renderEncoder.begin(e._parent.getCommandEncoder()):(t.scissorAndViewport(e.renderEncoder),e.renderEncoder.end())},t.volumeDepthRangePass=n=>{n?e.renderEncoder.begin(e._parent.getCommandEncoder()):(t.scissorAndViewport(e.renderEncoder),e.renderEncoder.end())},t.getAspectRatio=()=>{const n=e._parent.getSizeByReference(),r=e.renderable.getViewportByReference();return n[0]*(r[2]-r[0])/((r[3]-r[1])*n[1])},t.convertToOpenGLDepth=n=>e.webgpuCamera.convertToOpenGLDepth(n),t.getYInvertedTiledSizeAndOrigin=()=>{const n=t.getTiledSizeAndOrigin(),r=e._parent.getSizeByReference();return n.lowerLeftV=r[1]-n.vsize-n.lowerLeftV,n},t.getTiledSizeAndOrigin=()=>{const n=e.renderable.getViewportByReference(),r=[0,0,1,1],a=n[0]-r[0],i=n[1]-r[1],o=e._parent.normalizedDisplayToDisplay(a,i),s=Math.round(o[0]),l=Math.round(o[1]),u=n[2]-r[0],c=n[3]-r[1],f=e._parent.normalizedDisplayToDisplay(u,c);let d=Math.round(f[0])-s,h=Math.round(f[1])-l;return d<0&&(d=0),h<0&&(h=0),{usize:d,vsize:h,lowerLeftU:s,lowerLeftV:l}},t.getPropFromID=n=>{for(let r=0;r<e.children.length;r++)if((e.children[r].getPropID?e.children[r].getPropID():-1)===n)return e.children[r];return null},t.getStabilizedTime=()=>e.stabilizedTime.getMTime(),t.releaseGraphicsResources=()=>{e.selector!==null&&e.selector.releaseGraphicsResources()}}const EZe={bindGroup:null,selector:null,renderEncoder:null,recenterThreshold:20,suppressClear:!1,stabilizedCenter:[0,0,0]};function MZe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,EZe,n),dr.extend(t,e,n),e.UBO=bd.newInstance({label:"rendererUBO"}),e.UBO.addEntry("WCVCMatrix","mat4x4<f32>"),e.UBO.addEntry("SCPCMatrix","mat4x4<f32>"),e.UBO.addEntry("PCSCMatrix","mat4x4<f32>"),e.UBO.addEntry("SCVCMatrix","mat4x4<f32>"),e.UBO.addEntry("VCPCMatrix","mat4x4<f32>"),e.UBO.addEntry("WCVCNormals","mat4x4<f32>"),e.UBO.addEntry("viewportSize","vec2<f32>"),e.UBO.addEntry("LightCount","i32"),e.UBO.addEntry("MaxEnvironmentMipLevel","f32"),e.UBO.addEntry("BackgroundDiffuseStrength","f32"),e.UBO.addEntry("BackgroundSpecularStrength","f32"),e.UBO.addEntry("cameraParallel","u32"),e.SSBO=Kk.newInstance({label:"rendererLightSSBO"}),e.lightTimeString="",e.bindGroup=bQ.newInstance({label:"rendererBG"}),e.bindGroup.setBindables([e.UBO,e.SSBO]),e.tmpMat4=fn(new Float64Array(16)),e.stabilizedTime={},qr(e.stabilizedTime,{mtime:0}),Ja(t,e,["bindGroup","stabilizedTime"]),kv(t,e,["stabilizedCenter"]),zr(t,e,["renderEncoder","selector","suppressClear","UBO"]),TZe(t,e)}const DZe=Yn(MZe,"vtkWebGPURenderer");eu("vtkRenderer",DZe);const{CoordinateSystem:c4}=$m;function kZe(t,e){e.classHierarchy.push("vtkWebGPUActor"),t.buildPass=n=>{n&&(e.WebGPURenderer=t.getFirstAncestorOfType("vtkWebGPURenderer"),e.WebGPURenderWindow=e.WebGPURenderer.getFirstAncestorOfType("vtkWebGPURenderWindow"),e.propID===void 0&&(e.propID=e.WebGPURenderWindow.getUniquePropID()),t.prepareNodes(),t.addMissingNode(e.renderable.getMapper()),t.removeUnusedNodes())},t.traverseOpaquePass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||!e.renderable.getIsOpaque()||e.WebGPURenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.children[0]&&e.children[0].traverse(n),t.apply(n,!1))},t.traverseTranslucentPass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||e.renderable.getIsOpaque()||e.WebGPURenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.children[0]&&e.children[0].traverse(n),t.apply(n,!1))},t.queryPass=(n,r)=>{if(n){if(!e.renderable||!e.renderable.getVisibility())return;e.renderable.getIsOpaque()?r.incrementOpaqueActorCount():r.incrementTranslucentActorCount()}},t.getBufferShift=n=>(t.getKeyMatrices(n),e.bufferShift),t.getKeyMatrices=n=>{if(Math.max(e.renderable.getMTime(),n.getStabilizedTime())>e.keyMatricesTime.getMTime()){e.renderable.computeMatrix();const r=e.renderable.getMatrix();e.bufferShift[0]=r[3],e.bufferShift[1]=r[7],e.bufferShift[2]=r[11];const a=n.getStabilizedCenterByReference();e.renderable.getCoordinateSystem()===c4.WORLD&&(e.bufferShift[0]-=a[0],e.bufferShift[1]-=a[1],e.bufferShift[2]-=a[2]),Wn(e.keyMatrices.bcwc,r),e.renderable.getIsIdentity()?fn(e.keyMatrices.normalMatrix):(na(e.keyMatrices.normalMatrix,e.keyMatrices.bcwc),e.keyMatrices.normalMatrix[3]=0,e.keyMatrices.normalMatrix[7]=0,e.keyMatrices.normalMatrix[11]=0,Ua(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix),Wn(e.keyMatrices.normalMatrix,e.keyMatrices.normalMatrix)),pr(e.keyMatrices.bcwc,e.keyMatrices.bcwc,[-e.bufferShift[0],-e.bufferShift[1],-e.bufferShift[2]]),e.renderable.getCoordinateSystem()===c4.WORLD?pr(e.keyMatrices.bcsc,e.keyMatrices.bcwc,[-a[0],-a[1],-a[2]]):na(e.keyMatrices.bcsc,e.keyMatrices.bcwc),e.keyMatricesTime.modified()}return e.keyMatrices}}const RZe={keyMatricesTime:null,keyMatrices:null,propID:void 0,bufferShift:void 0};function LZe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,RZe,n),dr.extend(t,e,n),e.keyMatricesTime={},j.obj(e.keyMatricesTime,{mtime:0}),e.keyMatrices={normalMatrix:new Float64Array(16),bcwc:new Float64Array(16),bcsc:new Float64Array(16)},j.get(t,e,["propID","keyMatricesTime"]),e.bufferShift=[0,0,0,0],kZe(t,e)}const OZe=j.newInstance(LZe);eu("vtkActor",OZe);const{CoordinateSystem:f4}=$m;function AZe(t,e){e.classHierarchy.push("vtkWebGPUActor2D"),t.buildPass=n=>{n&&(e.WebGPURenderer=t.getFirstAncestorOfType("vtkWebGPURenderer"),e.WebGPURenderWindow=e.WebGPURenderer.getFirstAncestorOfType("vtkWebGPURenderWindow"),e.propID===void 0&&(e.propID=e.WebGPURenderWindow.getUniquePropID()),t.prepareNodes(),t.addMissingNode(e.renderable.getMapper()),t.removeUnusedNodes())},t.traverseOpaquePass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||!e.renderable.getIsOpaque()||e.WebGPURenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.children[0]&&e.children[0].traverse(n),t.apply(n,!1))},t.traverseTranslucentPass=n=>{!e.renderable||!e.renderable.getNestedVisibility()||e.renderable.getIsOpaque()||e.WebGPURenderer.getSelector()&&!e.renderable.getNestedPickable()||(t.apply(n,!0),e.children[0]&&e.children[0].traverse(n),t.apply(n,!1))},t.queryPass=(n,r)=>{if(n){if(!e.renderable||!e.renderable.getVisibility())return;e.renderable.getIsOpaque()?r.incrementOpaqueActorCount():r.incrementTranslucentActorCount()}},t.getBufferShift=n=>(t.getKeyMatrices(n),e.bufferShift),t.getKeyMatrices=n=>{if(Math.max(e.renderable.getMTime(),n.getStabilizedTime())>e.keyMatricesTime.getMTime()){e.bufferShift[0]=0,e.bufferShift[1]=0,e.bufferShift[2]=0;const r=n.getStabilizedCenterByReference();e.renderable.getCoordinateSystem()===f4.WORLD&&(e.bufferShift[0]-=r[0],e.bufferShift[1]-=r[1],e.bufferShift[2]-=r[2]),fn(e.keyMatrices.bcwc),fn(e.keyMatrices.normalMatrix),pr(e.keyMatrices.bcwc,e.keyMatrices.bcwc,[-e.bufferShift[0],-e.bufferShift[1],-e.bufferShift[2]]),e.renderable.getCoordinateSystem()===f4.WORLD?pr(e.keyMatrices.bcsc,e.keyMatrices.bcwc,[-r[0],-r[1],-r[2]]):na(e.keyMatrices.bcsc,e.keyMatrices.bcwc),e.keyMatricesTime.modified()}return e.keyMatrices}}const NZe={keyMatricesTime:null,keyMatrices:null,propID:void 0,bufferShift:void 0};function VZe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,NZe,n),dr.extend(t,e,n),e.keyMatricesTime={},j.obj(e.keyMatricesTime,{mtime:0}),e.keyMatrices={normalMatrix:new Float64Array(16),bcwc:new Float64Array(16),bcsc:new Float64Array(16)},j.get(t,e,["propID","keyMatricesTime"]),e.bufferShift=[0,0,0,0],AZe(t,e)}const BZe=j.newInstance(VZe);eu("vtkActor2D",BZe);function $Ze(t,e){e.classHierarchy.push("vtkWebGPUCubeAxesActor"),t.buildPass=n=>{n&&(e.WebGPURenderer=t.getFirstAncestorOfType("vtkWebGPURenderer"),e.WebGPURenderWindow=e.WebGPURenderer.getParent(),e.CubeAxesActorHelper.getRenderable()||e.CubeAxesActorHelper.setRenderable(e.renderable),t.prepareNodes(),t.addMissingNode(e.CubeAxesActorHelper.getTmActor()),t.addMissingNode(e.renderable.getGridActor()),t.removeUnusedNodes())},t.opaquePass=(n,r)=>{if(n){const a=e.WebGPURenderer?e.WebGPURenderer.getRenderable().getActiveCamera():null,i=e.WebGPURenderer.getTiledSizeAndOrigin();e.CubeAxesActorHelper.updateAPISpecificData([i.usize,i.vsize],a,e.WebGPURenderWindow.getRenderable())}}}const IZe={};function PZe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,IZe,n),dr.extend(t,e,n),e.CubeAxesActorHelper=ZZ.newCubeAxesActorHelper(),$Ze(t,e)}const FZe=Yn(PZe,"vtkWebGPUCubeAxesActor");eu("vtkCubeAxesActor",FZe);const{DisplayLocation:jk}=hQ;function zZe(t,e){e.classHierarchy.push("vtkProperty2D"),t.setDisplayLocationToBackground=()=>t.setDisplayLocation(jk.BACKGROUND),t.setDisplayLocationToForeground=()=>t.setDisplayLocation(jk.FOREGROUND),t.setRepresentationToWireframe=()=>t.setRepresentation(Ei.WIREFRAME),t.setRepresentationToSurface=()=>t.setRepresentation(Ei.SURFACE),t.setRepresentationToPoints=()=>t.setRepresentation(Ei.POINTS),t.getRepresentationAsString=()=>j.enumToString(Ei,e.representation)}const GZe={color:[1,1,1],opacity:1,pointSize:1,lineWidth:1,representation:Ei.SURFACE,displayLocation:jk.FOREGROUND};function AQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,GZe,n),j.obj(t,e),j.setGet(t,e,["opacity","lineWidth","pointSize","displayLocation","representation"]),j.setGetArray(t,e,["color"],3),zZe(t,e)}const UZe=j.newInstance(AQ,"vtkProperty2D");var HZe={newInstance:UZe,extend:AQ,...hQ};const{BufferUsage:Gr,PrimitiveTypes:ka}=Vc,{Representation:J1}=Lv,{ScalarMode:eS}=qs,{CoordinateSystem:WZe}=$m,{DisplayLocation:KZe}=HZe,jZe=`
- //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<f32> = vertexBC;
- //VTK::Color::Impl
- //VTK::Normal::Impl
- //VTK::TCoord::Impl
- //VTK::Select::Impl
- //VTK::Position::Impl
- return output;
- }
- `,YZe=`
- struct PBRData {
- diffuse: vec3<f32>,
- specular: vec3<f32>,
- }
- // Dot product with the max already in it
- fn mdot(a: vec3<f32>, b: vec3<f32>) -> f32 {
- return max(0.0, dot(a, b));
- }
- // Dot product with a max in it that does not allow for negative values
- // Physically based rendering is accurate as long as normals are accurate,
- // however this is pretty often not the case. In order to prevent negative
- // values from ruining light calculations and creating zones of zero light,
- // this remapping is used, which smoothly clamps the dot product between
- // zero and one while still maintaining a good amount of accuracy.
- fn cdot(a: vec3<f32>, b: vec3<f32>) -> f32 {
- var d: f32 = max(0.0, dot(a, b));
- d = pow((d + 1.0) / 2.0, 2.6);
- return d;
- }
- // Lambertian diffuse model
- fn lambertDiffuse(base: vec3<f32>, N: vec3<f32>, L: vec3<f32>) -> vec3<f32> {
- var pi: f32 = 3.14159265359;
- var NdotL: f32 = mdot(N, L);
- NdotL = pow(NdotL, 1.5);
- return (base/pi)*NdotL;
- }
- // Yasuhiro Fujii improvement on the Oren-Nayar model
- // https://mimosa-pudica.net/improved-oren-nayar.html
- // p is surface color, o is roughness
- fn fujiiOrenNayar(p: vec3<f32>, o: f32, N: vec3<f32>, L: vec3<f32>, V: vec3<f32>) -> vec3<f32> {
- var invpi: f32 = 0.31830988618; // 1/pi
- var o2 = o*o;
- var NdotL: f32 = mdot(N, L);
- NdotL = pow(NdotL, 1.5); // Less physically accurate, but hides the "seams" between lights better
- var NdotV: f32 = mdot(N, V);
- var LdotV: f32 = mdot(L, V);
- var s: f32 = LdotV - NdotL*NdotV;
- var t: f32 = mix(1.0, max(NdotL, NdotV), step(0.0, s)); // Mix with step is the equivalent of an if statement
- var A: vec3<f32> = 0.5*(o2 / (o2 + 0.33)) + 0.17*p*(o2 / (o2 + 0.13));
- A = invpi*(1 - A);
- var B: f32 = 0.45*(o2 / (o2 + 0.09));
- B = invpi*B;
- return p*NdotL*(A + B*(s/t));
- }
- // Fresnel portion of BRDF (IOR only, simplified)
- fn schlickFresnelIOR(V: vec3<f32>, N: vec3<f32>, ior: f32, k: f32) -> f32 {
- var NdotV: f32 = mdot(V, N);
- var F0: f32 = (pow((ior - 1.0), 2.0) + k*k) / (pow((ior + 1.0), 2.0) + k*k); // This takes into account the roughness, which the other one does not
- return F0 + (1.0 - F0) * pow((1.0-NdotV), 5.0);
- }
- // Fresnel portion of BRDF (Color ior, better)
- fn schlickFresnelRGB(V: vec3<f32>, N: vec3<f32>, F0: vec3<f32>) -> vec3<f32> {
- var NdotV: f32 = mdot(V, N);
- return F0 + (1.0 - F0) * pow((1-NdotV), 5.0);
- }
- // Normal portion of BRDF
- // https://learnopengl.com/PBR/Theory
- // Trowbridge-Reitz GGX functions: normal, halfway, roughness^2
- fn trGGX(N: vec3<f32>, H: vec3<f32>, a: f32) -> f32 {
- var pi: f32 = 3.14159265359;
- var a2: f32 = a*a;
- var NdotH = mdot(N, H);
- var NdotH2 = NdotH*NdotH;
-
- var denom: f32 = NdotH2 * (a2 - 1.0) + 1.0;
- return a2 / max((pi*denom*denom), 0.000001);
- }
- // A VERY bad approximation of anisotropy. Real anisotropic calculations require tangent and bitangent
- fn anisotrophicTrGGX(N: vec3<f32>, H: vec3<f32>, O: vec3<f32>, s: f32, a: f32) -> f32 {
- var Op: vec3<f32> = (rendererUBO.WCVCNormals * vec4<f32>(normalize(O) * s, 0.)).xyz;
- var ggx1: f32 = trGGX(N + Op*s, H, a);
- var ggx2: f32 = trGGX(N - Op*s, H, a);
- return (0.5 * ggx1 + 0.5 * ggx2);
- }
- // Geometry portion of BRDF
- fn schlickGGX(N: vec3<f32>, X: vec3<f32>, k: f32) -> f32 {
- var NdotX = cdot(N, X);
- return NdotX / max(0.000001, (NdotX*(1.0-k) + k));
- }
- fn smithSurfaceRoughness(N: vec3<f32>, V: vec3<f32>, L: vec3<f32>, k: f32) -> f32 {
- var ggx1: f32 = min(1.0, schlickGGX(N, V, k));
- var ggx2: f32 = min(1.0, schlickGGX(N, L, k));
- return ggx1*ggx2;
- }
- // BRDF Combination
- fn cookTorrance(D: f32, F: f32, G: f32, N: vec3<f32>, V: vec3<f32>, L: vec3<f32>) -> f32 {
- var num: f32 = D*F*G;
- var denom: f32 = 4*cdot(V, N)*cdot(L, N);
- return num / max(denom, 0.000001);
- }
- // Different lighting calculations for different light sources
- fn calcDirectionalLight(N: vec3<f32>, V: vec3<f32>, ior: f32, roughness: f32, metallic: f32, direction: vec3<f32>, color: vec3<f32>, base: vec3<f32>) -> PBRData {
- var L: vec3<f32> = normalize(direction); // Light Vector
- var H: vec3<f32> = normalize(L + V); // Halfway Vector
- var alpha = roughness*roughness;
- var k: f32 = alpha*alpha / 2;
- var D: f32 = trGGX(N, H, alpha); // Distribution
- // var F: f32 = schlickFresnelIOR(V, N, ior, k); // Fresnel
- var G: f32 = smithSurfaceRoughness(N, V, L, k); // Geometry
- var brdf: f32 = cookTorrance(D, 1.0, G, N, V, L); // Fresnel term is replaced with 1 because it is added later
- var incoming: vec3<f32> = color;
- var angle: f32 = mdot(L, N);
- angle = pow(angle, 1.5);
- var specular: vec3<f32> = brdf*incoming*angle;
- // Oren-Nayar gives a clay-like effect when fully rough which some people may not want, so it might be better to give a separate
- // control property for the diffuse vs specular roughness
- var diffuse: vec3<f32> = incoming*fujiiOrenNayar(base, roughness, N, L, V);
- // Stores the specular and diffuse separately to allow for finer post processing
- var out = PBRData(diffuse, specular);
-
- return out; // Returns angle along with color of light so the final color can be multiplied by angle as well (creates black areas)
- }
- // TODO: find some way to reduce the number of arguments going in here
- fn calcPointLight(N: vec3<f32>, V: vec3<f32>, fragPos: vec3<f32>, ior: f32, roughness: f32, metallic: f32, position: vec3<f32>, color: vec3<f32>, base: vec3<f32>) -> PBRData {
- var L: vec3<f32> = normalize(position - fragPos); // Light Vector
- var H: vec3<f32> = normalize(L + V); // Halfway Vector
- var dist = distance(position, fragPos);
- var alpha = roughness*roughness;
- var k: f32 = alpha*alpha / 2.0; // could also be pow(alpha + 1.0, 2) / 8
- var D: f32 = trGGX(N, H, alpha); // Distribution
- // var F: f32 = schlickFresnelIOR(V, N, ior, k); // Fresnel
- var G: f32 = smithSurfaceRoughness(N, V, L, k); // Geometry
- var brdf: f32 = cookTorrance(D, 1.0, G, N, V, L);
- var incoming: vec3<f32> = color * (1.0 / (dist*dist));
- var angle: f32 = mdot(L, N);
- angle = pow(angle, 1.5); // Smoothing factor makes it less accurate, but reduces ugly "seams" bewteen light sources
- var specular: vec3<f32> = brdf*incoming*angle;
- var diffuse: vec3<f32> = incoming*fujiiOrenNayar(base, roughness, N, L, V);
- // Stores the specular and diffuse separately to allow for finer post processing
- // Could also be done (propably more properly) with a struct
- var out = PBRData(diffuse, specular);
-
- return out; // Returns angle along with color of light so the final color can be multiplied by angle as well (creates black areas)
- }
- // For a reason unknown to me, spheres dont seem to behave propperly with head-on spot lights
- fn calcSpotLight(N: vec3<f32>, V: vec3<f32>, fragPos: vec3<f32>, ior: f32, roughness: f32, metallic: f32, position: vec3<f32>, direction: vec3<f32>, cones: vec2<f32>, color: vec3<f32>, base: vec3<f32>) -> PBRData {
- var L: vec3<f32> = normalize(position - fragPos);
- var H: vec3<f32> = normalize(L + V); // Halfway Vector
- var dist = distance(position, fragPos);
- var alpha = roughness*roughness;
- var k: f32 = alpha*alpha / 2.0; // could also be pow(alpha + 1.0, 2) / 8
- var D: f32 = trGGX(N, H, alpha); // Distribution
- // var F: f32 = schlickFresnelIOR(V, N, ior, k); // Fresnel
- var G: f32 = smithSurfaceRoughness(N, V, L, k); // Geometry
- var brdf: f32 = cookTorrance(D, 1.0, G, N, V, L);
-
- // Cones.x is the inner phi and cones.y is the outer phi
- var theta: f32 = mdot(normalize(direction), L);
- var epsilon: f32 = cones.x - cones.y;
- var intensity: f32 = (theta - cones.y) / epsilon;
- intensity = clamp(intensity, 0.0, 1.0);
- intensity /= dist*dist;
- var incoming: vec3<f32> = color * intensity;
- var angle: f32 = mdot(L, N);
- angle = pow(angle, 1.5); // Smoothing factor makes it less accurate, but reduces ugly "seams" bewteen light sources
- var specular: vec3<f32> = brdf*incoming*angle;
- var diffuse: vec3<f32> = incoming*fujiiOrenNayar(base, roughness, N, L, V);
- // Stores the specular and diffuse separately to allow for finer post processing
- // Could also be done (propably more properly) with a struct
- var out = PBRData(diffuse, specular);
-
- return out; // Returns angle along with color of light so the final color can be multiplied by angle as well (creates black areas)
- }
- // Environment mapping stuff
- // Takes in a vector and converts it to an equivalent coordinate in a rectilinear texture. Should be replaced with cubemaps at some point
- fn vecToRectCoord(dir: vec3<f32>) -> vec2<f32> {
- var tau: f32 = 6.28318530718;
- var pi: f32 = 3.14159265359;
- var out: vec2<f32> = vec2<f32>(0.0);
- out.x = atan2(dir.z, dir.x) / tau;
- out.x += 0.5;
- var phix: f32 = length(vec2(dir.x, dir.z));
- out.y = atan2(dir.y, phix) / pi + 0.5;
- return out;
- }
- //VTK::Renderer::Dec
- //VTK::Color::Dec
- //VTK::TCoord::Dec
- // optional surface normal declaration
- //VTK::Normal::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;
- // Temporary ambient, diffuse, and opacity
- var ambientColor: vec4<f32> = mapperUBO.AmbientColor;
- var diffuseColor: vec4<f32> = mapperUBO.DiffuseColor;
- var opacity: f32 = mapperUBO.Opacity;
- // This should be declared somewhere else
- var _diffuseMap: vec4<f32> = vec4<f32>(1.0);
- var _roughnessMap: vec4<f32> = vec4<f32>(1.0);
- var _metallicMap: vec4<f32> = vec4<f32>(1.0);
- var _normalMap: vec4<f32> = vec4<f32>(0.0, 0.0, 1.0, 0.0); // normal map was setting off the normal vector detection in fragment
- var _ambientOcclusionMap: vec4<f32> = vec4<f32>(1.);
- var _emissionMap: vec4<f32> = vec4<f32>(0.);
- //VTK::Color::Impl
- //VTK::TCoord::Impl
- //VTK::Normal::Impl
- var computedColor: vec4<f32> = vec4<f32>(diffuseColor.rgb, 1.0);
- //VTK::Light::Impl
- //VTK::Select::Impl
- if (computedColor.a == 0.0) { discard; };
- //VTK::Position::Impl
- //VTK::RenderEncoder::Impl
- return output;
- }
- `;function d4(t){return t.indexOf("edge")>=0}function XZe(t,e){e.classHierarchy.push("vtkWebGPUCellArrayMapper"),t.buildPass=n=>{n&&(e.is2D?(e.WebGPUActor=t.getFirstAncestorOfType("vtkWebGPUActor2D"),e.forceZValue=!0):(e.WebGPUActor=t.getFirstAncestorOfType("vtkWebGPUActor"),e.forceZValue=!1),e.coordinateSystem=e.WebGPUActor.getRenderable().getCoordinateSystem(),e.useRendererMatrix=e.coordinateSystem!==WZe.DISPLAY,e.WebGPURenderer=e.WebGPUActor.getFirstAncestorOfType("vtkWebGPURenderer"),e.WebGPURenderWindow=e.WebGPURenderer.getParent(),e.device=e.WebGPURenderWindow.getDevice())},t.translucentPass=n=>{n&&(t.prepareToDraw(e.WebGPURenderer.getRenderEncoder()),e.renderEncoder.registerDrawCallback(e.pipeline,t.draw))},t.opaquePass=n=>{n&&(t.prepareToDraw(e.WebGPURenderer.getRenderEncoder()),e.renderEncoder.registerDrawCallback(e.pipeline,t.draw))},t.updateUBO=()=>{var i;const r=e.WebGPUActor.getRenderable().getProperty(),a=e.UBO.getSendTime();if(t.getMTime()>a||r.getMTime()>a||e.renderable.getMTime()>a){const o=e.WebGPUActor.getKeyMatrices(e.WebGPURenderer);if(e.UBO.setArray("BCWCMatrix",o.bcwc),e.UBO.setArray("BCSCMatrix",o.bcsc),e.UBO.setArray("MCWCNormals",o.normalMatrix),e.is2D){e.UBO.setValue("ZValue",e.WebGPUActor.getRenderable().getProperty().getDisplayLocation()===KZe.FOREGROUND?1:0);const u=r.getColorByReference();e.UBO.setValue("AmbientIntensity",1),e.UBO.setArray("DiffuseColor",[u[0],u[1],u[2],1]),e.UBO.setValue("DiffuseIntensity",0),e.UBO.setValue("SpecularIntensity",0)}else{let u=r.getAmbientColorByReference();e.UBO.setValue("AmbientIntensity",r.getAmbient()),e.UBO.setArray("AmbientColor",[u[0],u[1],u[2],1]),e.UBO.setValue("DiffuseIntensity",r.getDiffuse()),u=r.getDiffuseColorByReference(),e.UBO.setArray("DiffuseColor",[u[0],u[1],u[2],1]),e.UBO.setValue("Roughness",r.getRoughness()),e.UBO.setValue("BaseIOR",r.getBaseIOR()),e.UBO.setValue("Metallic",r.getMetallic()),e.UBO.setValue("NormalStrength",r.getNormalStrength()),e.UBO.setValue("Emission",r.getEmission()),e.UBO.setValue("SpecularIntensity",r.getSpecular()),u=r.getSpecularColorByReference(),e.UBO.setArray("SpecularColor",[u[0],u[1],u[2],1])}const s=(i=r.getEdgeColorByReference)==null?void 0:i.call(r);s&&e.UBO.setArray("EdgeColor",[s[0],s[1],s[2],1]),e.UBO.setValue("LineWidth",r.getLineWidth()),e.UBO.setValue("Opacity",r.getOpacity()),e.UBO.setValue("PropID",e.WebGPUActor.getPropID());const l=e.WebGPURenderWindow.getDevice();e.UBO.sendIfNeeded(l)}},t.haveWideLines=()=>{const n=e.WebGPUActor.getRenderable(),r=n.getProperty().getRepresentation();return n.getProperty().getLineWidth()<=1||e.primitiveType===ka.Verts?!1:e.primitiveType===ka.Triangles||e.primitiveType===ka.TriangleStrips?r===J1.WIREFRAME:!0},t.replaceShaderPosition=(n,r,a)=>{const i=r.getShaderDescription("vertex");i.addBuiltinOutput("vec4<f32>","@builtin(position) Position"),i.hasOutput("vertexVC")||i.addOutput("vec4<f32>","vertexVC");let o=i.getCode();e.useRendererMatrix?(o=Jt.substitute(o,"//VTK::Position::Impl",[" var pCoord: vec4<f32> = rendererUBO.SCPCMatrix*mapperUBO.BCSCMatrix*vertexBC;"," output.vertexVC = rendererUBO.SCVCMatrix * mapperUBO.BCSCMatrix * vec4<f32>(vertexBC.xyz, 1.0);","//VTK::Position::Impl"]).result,e.forceZValue&&(o=Jt.substitute(o,"//VTK::Position::Impl",["pCoord = vec4<f32>(pCoord.xyz/pCoord.w, 1.0);","pCoord.z = mapperUBO.ZValue;","//VTK::Position::Impl"]).result)):(o=Jt.substitute(o,"//VTK::Position::Impl",[" var pCoord: vec4<f32> = mapperUBO.BCSCMatrix*vertexBC;"," pCoord.x = 2.0* pCoord.x / rendererUBO.viewportSize.x - 1.0;"," pCoord.y = 2.0* pCoord.y / rendererUBO.viewportSize.y - 1.0;"," pCoord.z = 0.5 - 0.5 * pCoord.z;","//VTK::Position::Impl"]).result,e.forceZValue&&(o=Jt.substitute(o,"//VTK::Position::Impl",[" pCoord.z = mapperUBO.ZValue;","//VTK::Position::Impl"]).result)),t.haveWideLines()&&(i.addBuiltinInput("u32","@builtin(instance_index) instanceIndex"),o=Jt.substitute(o,"//VTK::Position::Impl",[" var tmpPos: vec4<f32> = pCoord;"," var numSteps: f32 = ceil(mapperUBO.LineWidth - 1.0);"," var offset: f32 = (mapperUBO.LineWidth - 1.0) * (f32(input.instanceIndex / 2u) - numSteps/2.0) / numSteps;"," var tmpPos2: vec3<f32> = tmpPos.xyz / tmpPos.w;"," tmpPos2.x = tmpPos2.x + 2.0 * (f32(input.instanceIndex) % 2.0) * offset / rendererUBO.viewportSize.x;"," tmpPos2.y = tmpPos2.y + 2.0 * (f32(input.instanceIndex + 1u) % 2.0) * offset / rendererUBO.viewportSize.y;"," tmpPos2.z = min(1.0, tmpPos2.z + 0.00001);"," pCoord = vec4<f32>(tmpPos2.xyz * tmpPos.w, tmpPos.w);","//VTK::Position::Impl"]).result),o=Jt.substitute(o,"//VTK::Position::Impl",[" output.Position = pCoord;"]).result,i.setCode(o)},e.shaderReplacements.set("replaceShaderPosition",t.replaceShaderPosition),t.replaceShaderNormal=(n,r,a)=>{const i=a.getBuffer("normalMC"),o=e.WebGPUActor.getRenderable();if(i){const s=r.getShaderDescription("vertex");s.hasOutput("normalVC")||s.addOutput("vec3<f32>","normalVC",i.getArrayInformation()[0].interpolation),s.hasOutput("tangentVC")||s.addOutput("vec3<f32>","tangentVC",i.getArrayInformation()[0].interpolation),s.hasOutput("bitangentVC")||s.addOutput("vec3<f32>","bitangentVC",i.getArrayInformation()[0].interpolation);let l=s.getCode();l=Jt.substitute(l,"//VTK::Normal::Impl",[" output.normalVC = normalize((rendererUBO.WCVCNormals * mapperUBO.MCWCNormals * normalMC).xyz);"," var c1: vec3<f32> = cross(output.normalVC, vec3<f32>(0, 0, 1));"," var c2: vec3<f32> = cross(output.normalVC, vec3<f32>(0, 1, 0));"," var tangent: vec3<f32> = mix(c1, c2, distance(c1, c2));"," output.tangentVC = normalize(tangent);"," output.bitangentVC = normalize(cross(output.normalVC, tangent));"]).result,s.setCode(l);const u=r.getShaderDescription("fragment");l=u.getCode(),o.getProperty().getNormalTexture()?l=Jt.substitute(l,"//VTK::Normal::Impl",[" var normal: vec3<f32> = input.normalVC;"," if (!input.frontFacing) { normal = -normal; }"," var tangent: vec3<f32> = input.tangentVC;"," var bitangent: vec3<f32> = input.bitangentVC;"," var TCVCMatrix: mat3x3<f32> = mat3x3<f32>("," tangent.x, bitangent.x, normal.x,"," tangent.y, bitangent.y, normal.y,"," tangent.z, bitangent.z, normal.z,"," );"," var mappedNormal: vec3<f32> = TCVCMatrix * (_normalMap.xyz * 2 - 1);"," normal = mix(normal, mappedNormal, mapperUBO.NormalStrength);"," normal = normalize(normal);"]).result:l=Jt.substitute(l,"//VTK::Normal::Impl",[" var normal: vec3<f32> = input.normalVC;"," if (!input.frontFacing) { normal = -normal; }"," normal = normalize(normal);"]).result,u.setCode(l)}},e.shaderReplacements.set("replaceShaderNormal",t.replaceShaderNormal),t.replaceShaderLight=(n,r,a)=>{var u;if(n.includes("sel"))return;const i=r.getShaderDescription("vertex");i.hasOutput("vertexVC")||i.addOutput("vec4<f32>","vertexVC");const o=e.WebGPURenderer.getRenderable(),s=r.getShaderDescription("fragment");let l=s.getCode();if(l.includes("var normal:")&&e.useRendererMatrix&&!d4(n)&&!e.is2D&&!n.includes("sel")){const c=[" var pi: f32 = 3.14159265359;"," var fragPos: vec3<f32> = vec3<f32>(input.vertexVC.xyz);"," var V: vec3<f32> = mix(normalize(-fragPos), vec3<f32>(0, 0, 1), f32(rendererUBO.cameraParallel)); // View Vector"," var baseColor: vec3<f32> = _diffuseMap.rgb * diffuseColor.rgb;"," var roughness: f32 = max(0.000001, mapperUBO.Roughness * _roughnessMap.r);"," var metallic: f32 = mapperUBO.Metallic * _metallicMap.r;"," var alpha: f32 = roughness*roughness;"," var ior: f32 = mapperUBO.BaseIOR;"," var k: f32 = alpha*alpha / 2;"," var diffuse: vec3<f32> = vec3<f32>(0.);"," var specular: vec3<f32> = vec3<f32>(0.);"," var emission: vec3<f32> = _emissionMap.rgb * mapperUBO.Emission;"," {"," var i: i32 = 0;"," loop {"," if !(i < rendererUBO.LightCount) { break; }"," switch (i32(rendererLightSSBO.values[i].LightData.x)) {"," // Point Light"," case 0 {"," var color: vec3<f32> = rendererLightSSBO.values[i].LightColor.rgb * rendererLightSSBO.values[i].LightColor.w;"," var pos: vec3<f32> = (rendererLightSSBO.values[i].LightPos).xyz;"," var calculated: PBRData = calcPointLight(normal, V, fragPos, ior, roughness, metallic, pos, color, baseColor);"," diffuse += max(vec3<f32>(0), calculated.diffuse);"," specular += max(vec3<f32>(0), calculated.specular);"," }"," // Directional light"," case 1 {"," var dir: vec3<f32> = (rendererUBO.WCVCNormals * vec4<f32>(normalize(rendererLightSSBO.values[i].LightDir.xyz), 0.)).xyz;"," dir = normalize(dir);"," var color: vec3<f32> = rendererLightSSBO.values[i].LightColor.rgb * rendererLightSSBO.values[i].LightColor.w;"," var calculated: PBRData = calcDirectionalLight(normal, V, ior, roughness, metallic, dir, color, baseColor); // diffuseColor.rgb needs to be fixed with a more dynamic diffuse color"," diffuse += max(vec3<f32>(0), calculated.diffuse);"," specular += max(vec3<f32>(0), calculated.specular);"," }"," // Spot Light"," case 2 {"," var color: vec3<f32> = rendererLightSSBO.values[i].LightColor.rgb * rendererLightSSBO.values[i].LightColor.w;"," var pos: vec3<f32> = (rendererLightSSBO.values[i].LightPos).xyz;"," var dir: vec3<f32> = (rendererUBO.WCVCNormals * vec4<f32>(normalize(rendererLightSSBO.values[i].LightDir.xyz), 0.)).xyz;"," dir = normalize(dir);"," var cones: vec2<f32> = vec2<f32>(rendererLightSSBO.values[i].LightData.y, rendererLightSSBO.values[i].LightData.z);"," var calculated: PBRData = calcSpotLight(normal, V, fragPos, ior, roughness, metallic, pos, dir, cones, color, baseColor);"," diffuse += max(vec3<f32>(0), calculated.diffuse);"," specular += max(vec3<f32>(0), calculated.specular);"," }"," default { continue; }"," }"," continuing { i++; }"," }"," }"," var fresnel: f32 = schlickFresnelIOR(V, normal, ior, k); // Fresnel"," fresnel = min(1.0, fresnel);"," // This could be controlled with its own variable (that isnt base color) for better artistic control"," var fresnelMetallic: vec3<f32> = schlickFresnelRGB(V, normal, baseColor); // Fresnel for metal, takes color into account"," var kS: vec3<f32> = mix(vec3<f32>(fresnel), fresnelMetallic, metallic);"," kS = min(vec3<f32>(1.0), kS);"," var kD: vec3<f32> = (1.0 - kS) * (1.0 - metallic);"," var PBR: vec3<f32> = mapperUBO.DiffuseIntensity*kD*diffuse + kS*specular;"," PBR += emission;"," computedColor = vec4<f32>(PBR, mapperUBO.Opacity);"];(u=o.getEnvironmentTexture())!=null&&u.getImageLoaded()&&c.push(" // To get diffuse IBL, the texture is sampled with normals in worldspace"," var diffuseIBLCoords: vec3<f32> = (transpose(rendererUBO.WCVCNormals) * vec4<f32>(normal, 1.)).xyz;"," var diffuseCoords: vec2<f32> = vecToRectCoord(diffuseIBLCoords);"," // To get specular IBL, the texture is sampled as the worldspace reflection between the normal and view vectors"," // Reflections are first calculated in viewspace, then converted to worldspace to sample the environment"," var VreflN: vec3<f32> = normalize(reflect(-V, normal));"," var reflectionIBLCoords = (transpose(rendererUBO.WCVCNormals) * vec4<f32>(VreflN, 1.)).xyz;"," var specularCoords: vec2<f32> = vecToRectCoord(reflectionIBLCoords);"," var diffuseIBL = textureSampleLevel(EnvironmentTexture, EnvironmentTextureSampler, diffuseCoords, rendererUBO.MaxEnvironmentMipLevel);"," var level = roughness * rendererUBO.MaxEnvironmentMipLevel;"," var specularIBL = textureSampleLevel(EnvironmentTexture, EnvironmentTextureSampler, specularCoords, level);"," var specularIBLContribution: vec3<f32> = specularIBL.rgb*rendererUBO.BackgroundSpecularStrength;"," computedColor += vec4<f32>(specularIBLContribution*kS, 0);"," var diffuseIBLContribution: vec3<f32> = diffuseIBL.rgb*rendererUBO.BackgroundDiffuseStrength;"," diffuseIBLContribution *= baseColor * _ambientOcclusionMap.rgb;"," computedColor += vec4<f32>(diffuseIBLContribution*kD, 0);"),l=Jt.substitute(l,"//VTK::Light::Impl",c).result,s.setCode(l)}else l=Jt.substitute(l,"//VTK::Light::Impl",[" var diffuse: vec3<f32> = diffuseColor.rgb;"," var specular: vec3<f32> = mapperUBO.SpecularColor.rgb * mapperUBO.SpecularColor.a;"," computedColor = vec4<f32>(diffuse * _diffuseMap.rgb, mapperUBO.Opacity);"]).result,s.setCode(l)},e.shaderReplacements.set("replaceShaderLight",t.replaceShaderLight),t.replaceShaderColor=(n,r,a)=>{if(d4(n)){const u=r.getShaderDescription("fragment");let c=u.getCode();c=Jt.substitute(c,"//VTK::Color::Impl",["ambientColor = mapperUBO.EdgeColor;","diffuseColor = mapperUBO.EdgeColor;"]).result,u.setCode(c);return}const i=a.getBuffer("colorVI");if(!i)return;const o=r.getShaderDescription("vertex");o.addOutput("vec4<f32>","color",i.getArrayInformation()[0].interpolation);let s=o.getCode();s=Jt.substitute(s,"//VTK::Color::Impl",[" output.color = colorVI;"]).result,o.setCode(s);const l=r.getShaderDescription("fragment");s=l.getCode(),s=Jt.substitute(s,"//VTK::Color::Impl",["ambientColor = input.color;","diffuseColor = input.color;","opacity = mapperUBO.Opacity * input.color.a;"]).result,l.setCode(s)},e.shaderReplacements.set("replaceShaderColor",t.replaceShaderColor),t.replaceShaderTCoord=(n,r,a)=>{var h,v,p,g,y,m,S,b,x,_,C,T,D,M,E,k,R,O,B,$;if(!a.hasAttribute("tcoord"))return;const i=r.getShaderDescription("vertex"),o=a.getBuffer("tcoord"),s=jr.getNumberOfComponentsFromBufferFormat(o.getArrayInformation()[0].format);let l=i.getCode();i.addOutput(`vec${s}<f32>`,"tcoordVS"),l=Jt.substitute(l,"//VTK::TCoord::Impl",[" output.tcoordVS = tcoord;"]).result,i.setCode(l);const u=r.getShaderDescription("fragment");l=u.getCode();const c=e.WebGPUActor.getRenderable(),f=V=>V?V.getDimensionality()===s:!1,d=[];((p=(v=(h=c.getProperty()).getDiffuseTexture)==null?void 0:v.call(h))!=null&&p.getImageLoaded()||c.getTextures()[0]||e.colorTexture)&&(f((y=(g=c.getProperty()).getDiffuseTexture)==null?void 0:y.call(g))||f(c.getTextures()[0])||f(e.colorTexture))&&d.push("_diffuseMap = textureSample(DiffuseTexture, DiffuseTextureSampler, input.tcoordVS);"),(b=(S=(m=c.getProperty()).getRoughnessTexture)==null?void 0:S.call(m))!=null&&b.getImageLoaded()&&f(c.getProperty().getRoughnessTexture())&&d.push("_roughnessMap = textureSample(RoughnessTexture, RoughnessTextureSampler, input.tcoordVS);"),(C=(_=(x=c.getProperty()).getMetallicTexture)==null?void 0:_.call(x))!=null&&C.getImageLoaded()&&f(c.getProperty().getMetallicTexture())&&d.push("_metallicMap = textureSample(MetallicTexture, MetallicTextureSampler, input.tcoordVS);"),(M=(D=(T=c.getProperty()).getNormalTexture)==null?void 0:D.call(T))!=null&&M.getImageLoaded()&&f(c.getProperty().getNormalTexture())&&d.push("_normalMap = textureSample(NormalTexture, NormalTextureSampler, input.tcoordVS);"),(R=(k=(E=c.getProperty()).getAmbientOcclusionTexture)==null?void 0:k.call(E))!=null&&R.getImageLoaded()&&f(c.getProperty().getAmbientOcclusionTexture())&&d.push("_ambientOcclusionMap = textureSample(AmbientOcclusionTexture, AmbientOcclusionTextureSampler, input.tcoordVS);"),($=(B=(O=c.getProperty()).getEmissionTexture)==null?void 0:B.call(O))!=null&&$.getImageLoaded()&&f(c.getProperty().getEmissionTexture())&&d.push("_emissionMap = textureSample(EmissionTexture, EmissionTextureSampler, input.tcoordVS);"),l=Jt.substitute(l,"//VTK::TCoord::Impl",d).result,u.setCode(l)},e.shaderReplacements.set("replaceShaderTCoord",t.replaceShaderTCoord),t.replaceShaderSelect=(n,r,a)=>{if(n.includes("sel")){const i=r.getShaderDescription("fragment");let o=i.getCode();o=Jt.substitute(o,"//VTK::Select::Impl",[" var compositeID: u32 = 0u;"]).result,i.setCode(o)}},e.shaderReplacements.set("replaceShaderSelect",t.replaceShaderSelect),t.getUsage=(n,r)=>n===J1.POINTS||r===ka.Points?Gr.Verts:r===ka.Lines?Gr.Lines:n===J1.WIREFRAME?r===ka.Triangles?Gr.LinesFromTriangles:Gr.LinesFromStrips:r===ka.Triangles?Gr.Triangles:r===ka.TriangleStrips?Gr.Strips:r===ka.TriangleEdges?Gr.LinesFromTriangles:Gr.LinesFromStrips,t.getHashFromUsage=n=>`pt${n}`,t.getTopologyFromUsage=n=>{switch(n){case Gr.Triangles:return"triangle-list";case Gr.Verts:return"point-list";case Gr.Lines:default:return"line-list"}},t.buildVertexInput=()=>{var p,g;const n=e.currentInput,r=e.cellArray,a=e.primitiveType;let o=e.WebGPUActor.getRenderable().getProperty().getRepresentation();const s=e.WebGPURenderWindow.getDevice();let l=!1;a===ka.TriangleEdges&&(l=!0,o=J1.WIREFRAME);const u=e.vertexInput,c=n.getPoints();let f;if(r){const y={hash:`R${o}P${a}${r.getMTime()}`,usage:Gr.Index,cells:r,numberOfPoints:c.getNumberOfPoints(),primitiveType:a,representation:o};f=s.getBufferManager().getBuffer(y),u.setIndexBuffer(f)}else u.setIndexBuffer(null);if(c){const y=e.WebGPUActor.getBufferShift(e.WebGPURenderer),m={hash:`${c.getMTime()}I${f.getMTime()}${y.join()}float32x4`,usage:Gr.PointArray,format:"float32x4",dataArray:c,indexBuffer:f,shift:y,packExtra:!0},S=s.getBufferManager().getBuffer(m);u.addBuffer(S,["vertexBC"])}else u.removeBufferIfPresent("vertexBC");const d=t.getUsage(o,a);if(e._usesCellNormals=!1,!e.is2D&&(d===Gr.Triangles||d===Gr.Strips)){const y=n.getPointData().getNormals(),m={format:"snorm8x4",indexBuffer:f,packExtra:!0,shift:0,scale:127};if(y){m.hash=`${y.getMTime()}I${f.getMTime()}snorm8x4`,m.dataArray=y,m.usage=Gr.PointArray;const S=s.getBufferManager().getBuffer(m);u.addBuffer(S,["normalMC"])}else if(a===ka.Triangles){e._usesCellNormals=!0,m.hash=`PFN${c.getMTime()}I${f.getMTime()}snorm8x4`,m.dataArray=c,m.cells=r,m.usage=Gr.NormalsFromPoints;const S=s.getBufferManager().getBuffer(m);u.addBuffer(S,["normalMC"])}else u.removeBufferIfPresent("normalMC")}else u.removeBufferIfPresent("normalMC");let h=!1;if(e.renderable.getScalarVisibility()){const y=e.renderable.getColorMapColors();if(y&&!l){const m=e.renderable.getScalarMode();let S=!1;(m===eS.USE_CELL_DATA||m===eS.USE_CELL_FIELD_DATA||m===eS.USE_FIELD_DATA||!n.getPointData().getScalars())&&m!==eS.USE_POINT_FIELD_DATA&&y&&(S=!0);const b={usage:Gr.PointArray,format:"unorm8x4",hash:`${S}${y.getMTime()}I${f.getMTime()}unorm8x4`,dataArray:y,indexBuffer:f,cellData:S,cellOffset:0},x=s.getBufferManager().getBuffer(b);u.addBuffer(x,["colorVI"]),h=!0}}h||u.removeBufferIfPresent("colorVI");let v=null;if((g=(p=e.renderable).getInterpolateScalarsBeforeMapping)!=null&&g.call(p)&&e.renderable.getColorCoordinates()?v=e.renderable.getColorCoordinates():v=n.getPointData().getTCoords(),v&&!l){const y=s.getBufferManager().getBufferForPointArray(v,u.getIndexBuffer());u.addBuffer(y,["tcoord"])}else u.removeBufferIfPresent("tcoord")},t.updateTextures=()=>{var l,u,c,f,d,h,v,p,g,y,m,S,b,x,_;const n=[],r=[],a=(u=(l=e.renderable).getColorTextureMap)==null?void 0:u.call(l);a&&(e.colorTexture||(e.colorTexture=gC.newInstance({label:"polyDataColor"})),e.colorTexture.setInputData(a),r.push(["Diffuse",e.colorTexture]));const i=e.WebGPUActor.getRenderable(),o=e.WebGPURenderer.getRenderable(),s=[];if((f=(c=i.getProperty()).getDiffuseTexture)!=null&&f.call(c)){const C=["Diffuse",i.getProperty().getDiffuseTexture()];s.push(C)}if(i.getTextures()[0]){const C=["Diffuse",i.getTextures()[0]];s.push(C)}if(e.colorTexture){const C=["Diffuse",e.colorTexture];s.push(C)}if((h=(d=i.getProperty()).getRoughnessTexture)!=null&&h.call(d)){const C=["Roughness",i.getProperty().getRoughnessTexture()];s.push(C)}if((p=(v=i.getProperty()).getMetallicTexture)!=null&&p.call(v)){const C=["Metallic",i.getProperty().getMetallicTexture()];s.push(C)}if((y=(g=i.getProperty()).getNormalTexture)!=null&&y.call(g)){const C=["Normal",i.getProperty().getNormalTexture()];s.push(C)}if((S=(m=i.getProperty()).getAmbientOcclusionTexture)!=null&&S.call(m)){const C=["AmbientOcclusion",i.getProperty().getAmbientOcclusionTexture()];s.push(C)}if((x=(b=i.getProperty()).getEmissionTexture)!=null&&x.call(b)){const C=["Emission",i.getProperty().getEmissionTexture()];s.push(C)}if((_=o.getEnvironmentTexture)!=null&&_.call(o)){const C=["Environment",o.getEnvironmentTexture()];s.push(C)}for(let C=0;C<s.length;C++)(s[C][1].getInputData()||s[C][1].getJsImageData()||s[C][1].getCanvas())&&r.push(s[C]),s[C][1].getImage()&&s[C][1].getImageLoaded()&&r.push(s[C]);for(let C=0;C<r.length;C++){const T=r[C][1],D=r[C][0],M=e.device.getTextureManager().getTextureForVTKTexture(T);if(M.getReady()){let E=!1;for(let k=0;k<e.textures.length;k++)e.textures[k]===M&&(E=!0,n[k]=!0);if(!E){n[e.textures.length]=!0;const k=M.createView(`${D}Texture`);e.textures.push(M),e.textureViews.push(k);const R=T.getInterpolate()?"linear":"nearest";let O=null;!O&&T.getEdgeClamp()&&T.getRepeat()&&(O="mirror-repeat"),!O&&T.getEdgeClamp()&&(O="clamp-to-edge"),!O&&T.getRepeat()&&(O="repeat"),D!=="Environment"?k.addSampler(e.device,{addressModeU:O,addressModeV:O,addressModeW:O,minFilter:R,magFilter:R}):k.addSampler(e.device,{addressModeU:"repeat",addressModeV:"clamp-to-edge",addressModeW:"repeat",minFilter:R,magFilter:R,mipmapFilter:"linear"})}}}for(let C=e.textures.length-1;C>=0;C--)n[C]||(e.textures.splice(C,1),e.textureViews.splice(C,1))},t.computePipelineHash=()=>{let n=`pd${e.useRendererMatrix?"r":""}${e.forceZValue?"z":""}`;if(e.primitiveType===ka.TriangleEdges||e.primitiveType===ka.TriangleStripEdges)n+="edge";else{if(e.vertexInput.hasAttribute("normalMC")&&(n+="n"),e.vertexInput.hasAttribute("colorVI")&&(n+="c"),e.vertexInput.hasAttribute("tcoord")){const a=e.vertexInput.getBuffer("tcoord"),i=jr.getNumberOfComponentsFromBufferFormat(a.getArrayInformation()[0].format);n+=`t${i}`}e.textures.length&&(n+=`tx${e.textures.length}`)}e._usesCellNormals&&(n+="cn"),e.SSBO&&(n+="ssbo");const r=t.getHashFromUsage(e.usage);n+=r,n+=e.renderEncoder.getPipelineHash(),e.pipelineHash=n},t.updateBuffers=()=>{e.primitiveType!==ka.TriangleEdges&&e.primitiveType!==ka.TriangleStripEdges&&t.updateTextures();const n=e.WebGPUActor.getRenderable(),r=n.getProperty().getRepresentation();e.usage=t.getUsage(r,e.primitiveType),t.buildVertexInput();const a=e.vertexInput.getBuffer("vertexBC");if(t.setNumberOfVertices(a.getSizeInBytes()/a.getStrideInBytes()),t.setTopology(t.getTopologyFromUsage(e.usage)),t.updateUBO(),t.haveWideLines()){const i=n.getProperty();t.setNumberOfInstances(Math.ceil(i.getLineWidth()*2))}else t.setNumberOfInstances(1)}}const qZe={is2D:!1,cellArray:null,currentInput:null,cellOffset:0,primitiveType:0,colorTexture:null,renderEncoder:null,textures:null};function NQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,qZe,n),O3.extend(t,e,n),e.fragmentShaderTemplate=YZe,e.vertexShaderTemplate=jZe,e._tmpMat3=qd(new Float64Array(9)),e._tmpMat4=fn(new Float64Array(16)),e.UBO=bd.newInstance({label:"mapperUBO"}),e.UBO.addEntry("BCWCMatrix","mat4x4<f32>"),e.UBO.addEntry("BCSCMatrix","mat4x4<f32>"),e.UBO.addEntry("MCWCNormals","mat4x4<f32>"),e.UBO.addEntry("AmbientColor","vec4<f32>"),e.UBO.addEntry("DiffuseColor","vec4<f32>"),e.UBO.addEntry("EdgeColor","vec4<f32>"),e.UBO.addEntry("SpecularColor","vec4<f32>"),e.UBO.addEntry("AmbientIntensity","f32"),e.UBO.addEntry("DiffuseIntensity","f32"),e.UBO.addEntry("Roughness","f32"),e.UBO.addEntry("Metallic","f32"),e.UBO.addEntry("Ambient","f32"),e.UBO.addEntry("Normal","f32"),e.UBO.addEntry("Emission","f32"),e.UBO.addEntry("NormalStrength","f32"),e.UBO.addEntry("BaseIOR","f32"),e.UBO.addEntry("SpecularIntensity","f32"),e.UBO.addEntry("LineWidth","f32"),e.UBO.addEntry("Opacity","f32"),e.UBO.addEntry("ZValue","f32"),e.UBO.addEntry("PropID","u32"),e.UBO.addEntry("ClipNear","f32"),e.UBO.addEntry("ClipFar","f32"),e.UBO.addEntry("Time","u32"),zr(t,e,["cellArray","currentInput","cellOffset","is2D","primitiveType","renderEncoder"]),e.textures=[],XZe(t,e)}const ZZe=Yn(NQ,"vtkWebGPUCellArrayMapper");var VQ={newInstance:ZZe,extend:NQ};const{PrimitiveTypes:tS}=Vc;function QZe(t,e){e.classHierarchy.push("vtkWebGPUPolyDataMapper"),t.createCellArrayMapper=()=>VQ.newInstance(),t.buildPass=n=>{if(n){e.WebGPUActor=t.getFirstAncestorOfType("vtkWebGPUActor"),e.renderable.getStatic()||e.renderable.update();const r=e.renderable.getInputData();e.renderable.mapScalars(r,1),t.updateCellArrayMappers(r)}},t.updateCellArrayMappers=n=>{const r=[n.getVerts(),n.getLines(),n.getPolys(),n.getStrips()],a=[];let i=0;for(let o=tS.Points;o<=tS.Triangles;o++)if(r[o].getNumberOfValues()>0){e.primitives[o]||(e.primitives[o]=t.createCellArrayMapper());const s=e.primitives[o];s.setCellArray(r[o]),s.setCurrentInput(n),s.setCellOffset(i),s.setPrimitiveType(o),s.setRenderable(e.renderable),i+=r[o].getNumberOfCells(),a.push(s)}else e.primitives[o]=null;if(e.WebGPUActor.getRenderable().getProperty().getEdgeVisibility())for(let o=tS.TriangleEdges;o<=tS.TriangleStripEdges;o++)if(r[o-2].getNumberOfValues()>0){e.primitives[o]||(e.primitives[o]=t.createCellArrayMapper());const s=e.primitives[o];s.setCellArray(r[o-2]),s.setCurrentInput(n),s.setCellOffset(e.primitives[o-2].getCellOffset()),s.setPrimitiveType(o),s.setRenderable(e.renderable),a.push(s)}else e.primitives[o]=null;t.prepareNodes(),t.addMissingChildren(a),t.removeUnusedNodes()}}const JZe={primitives:null};function eQe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,JZe,n),dr.extend(t,e,n),e.primitives=[],QZe(t,e)}const tQe=Yn(eQe,"vtkWebGPUPolyDataMapper");eu("vtkMapper",tQe);const{PrimitiveTypes:h4}=Vc;function nQe(t,e){e.classHierarchy.push("vtkWebGPUPolyDataMapper2D"),t.createCellArrayMapper=()=>VQ.newInstance(),t.buildPass=n=>{if(n){e.WebGPUActor=t.getFirstAncestorOfType("vtkWebGPUActor2D"),e.renderable.getStatic()||e.renderable.update();const r=e.renderable.getInputData();e.renderable.mapScalars(r,1),t.updateCellArrayMappers(r)}},t.updateCellArrayMappers=n=>{const r=[n.getVerts(),n.getLines(),n.getPolys(),n.getStrips()],a=[];let i=0;for(let o=h4.Points;o<=h4.Triangles;o++)if(r[o].getNumberOfValues()>0){e.primitives[o]||(e.primitives[o]=t.createCellArrayMapper());const s=e.primitives[o];s.setCellArray(r[o]),s.setCurrentInput(n),s.setCellOffset(i),s.setPrimitiveType(o),s.setRenderable(e.renderable),s.setIs2D(!0),i+=r[o].getNumberOfCells(),a.push(s)}else e.primitives[o]=null;t.prepareNodes(),t.addMissingChildren(a),t.removeUnusedNodes()}}function rQe(t){return{primitives:[],...t}}function aQe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,rQe(n)),dr.extend(t,e,n),e.primitives=[],nQe(t,e)}const iQe=Yn(aQe,"vtkWebGPUPolyDataMapper2D");eu("vtkMapper2D",iQe);function oQe(t,e){e.classHierarchy.push("vtkWebGPUScalarBarActor"),t.buildPass=n=>{n&&(e.WebGPURenderer=t.getFirstAncestorOfType("vtkWebGPURenderer"),e.WebGPURenderWindow=e.WebGPURenderer.getParent(),e.scalarBarActorHelper.getRenderable()||e.scalarBarActorHelper.setRenderable(e.renderable),t.prepareNodes(),t.addMissingNode(e.scalarBarActorHelper.getBarActor()),t.addMissingNode(e.scalarBarActorHelper.getTmActor()),t.removeUnusedNodes())},t.opaquePass=(n,r)=>{if(n){const a=e.WebGPURenderer?e.WebGPURenderer.getRenderable().getActiveCamera():null,i=e.WebGPURenderer.getTiledSizeAndOrigin();e.scalarBarActorHelper.updateAPISpecificData([i.usize,i.vsize],a,e.WebGPURenderWindow.getRenderable())}}}const sQe={};function lQe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,sQe,n),dr.extend(t,e,n),e.scalarBarActorHelper=v_.newScalarBarActorHelper(),oQe(t,e)}const uQe=Yn(lQe,"vtkWebGPUScalarBarActor");eu("vtkScalarBarActor",uQe);function cQe(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 fQe={device:null,handle:null,label:null,options:null};function BQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,fQe,n),j.obj(t,e),e.options={},e.bindGroupLayoutEntry={visibility:GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT,sampler:{}},e.bindGroupTime={},j.obj(e.bindGroupTime,{mtime:0}),j.get(t,e,["bindGroupTime","handle","options"]),j.setGet(t,e,["bindGroupLayoutEntry","device","label"]),cQe(t,e)}const dQe=j.newInstance(BQ);var A3={newInstance:dQe,extend:BQ};function hQe(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=jr.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=jr.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=A3.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 pQe={texture:null,handle:null,sampler:null,label:null};function $Q(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,pQe,n),j.obj(t,e),e.bindGroupLayoutEntry={visibility:GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT,texture:{sampleType:"float",viewDimension:"2d"}},e.bindGroupTime={},j.obj(e.bindGroupTime,{mtime:0}),j.get(t,e,["bindGroupTime","texture"]),j.setGet(t,e,["bindGroupLayoutEntry","label","sampler"]),hQe(t,e)}const vQe=j.newInstance($Q);var IQ={newInstance:vQe,extend:$Q};const{BufferUsage:p4}=Vc;function gQe(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=jr.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,v=f/h.BYTES_PER_ELEMENT,p=a.elementSize,g=256*Math.floor((v*p+255)/256),y=g/p,m=j.newTypedArray(d?"Uint16Array":h.constructor.name,y*u*c);for(let S=0;S<u*c;S++)if(d)for(let b=0;b<v;b++)m[S*y+b]=Io.toHalf(h[S*v+b]);else m.set(h.subarray(S*v,(S+1)*v),S*y);return[m,g]}return[l,f]};if(n.nativeArray&&(r=n.nativeArray),n.image){const l=document.createElement("canvas");l.width=n.image.width,l.height=n.image.height;const u=l.getContext("2d");u.translate(0,l.height),u.scale(1,-1),u.drawImage(n.image,0,0,n.image.width,n.image.height,0,0,l.width,l.height),r=u.getImageData(0,0,n.image.width,n.image.height).data}const s=e.device.createCommandEncoder();if(t.getDimensionality()!==3){const l=gC.generateMipmaps(r,e.width,e.height,e.mipLevel);let u=e.width,c=e.height;for(let f=0;f<=e.mipLevel;f++){const d=o(l[f],c,1);i=d[1];const h={dataArray:n.dataArray?n.dataArray:null,nativeArray:d[0],usage:p4.Texture},v=e.device.getBufferManager().getBuffer(h);s.copyBufferToTexture({buffer:v.getHandle(),offset:0,bytesPerRow:i,rowsPerImage:c},{texture:e.handle,mipLevel:f},[u,c,1]),u/=2,c/=2}e.device.submitCommandEncoder(s),e.ready=!0}else{const l=o(r,e.height,e.depth);i=l[1];const u={dataArray:n.dataArray?n.dataArray:null,usage:p4.Texture};u.nativeArray=l[0];const c=e.device.getBufferManager().getBuffer(u);s.copyBufferToTexture({buffer:c.getHandle(),offset:0,bytesPerRow:i,rowsPerImage:e.height},{texture:e.handle},[e.width,e.height,e.depth]),e.device.submitCommandEncoder(s),e.ready=!0}},t.getScale=()=>{const n=jr.getDetailsFromTextureFormat(e.format);return n.elementSize===2&&n.sampleType==="float"?1:255},t.getNumberOfComponents=()=>jr.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=IQ.newInstance({label:n});return a.create(t,r),a}}const yQe={device:null,handle:null,buffer:null,ready:!1,label:null};function PQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,yQe,n),j.obj(t,e),j.get(t,e,["handle","ready","width","height","depth","format","usage"]),j.setGet(t,e,["device","label"]),gQe(t,e)}const mQe=j.newInstance(PQ);var Fs={newInstance:mQe,extend:PQ};function SQe(t,e){e.classHierarchy.push("vtkWebGPUPixelSpaceCallbackMapper"),t.opaquePass=(n,r)=>{e.WebGPURenderer=t.getFirstAncestorOfType("vtkWebGPURenderer"),e.WebGPURenderWindow=e.WebGPURenderer.getParent();const a=e.WebGPURenderer.getAspectRatio(),i=e.WebGPURenderer?e.WebGPURenderer.getRenderable().getActiveCamera():null,o=e.WebGPURenderer.getTiledSizeAndOrigin(),s=null;e.renderable.getUseZValues(),e.renderable.invokeCallback(e.renderable.getInputData(),i,a,o,s)}}const bQe={};function wQe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,bQe,n),dr.extend(t,e,n),SQe(t,e)}const _Qe=j.newInstance(wQe,"vtkWebGPUPixelSpaceCallbackMapper");eu("vtkPixelSpaceCallbackMapper",_Qe);const{vtkDebugMacro:nS}=j;function xQe(t,e){e.classHierarchy.push("vtkCamera");const n=new Float64Array(3),r=new Float64Array([0,0,-1]),a=new Float64Array([0,1,0]),i=fn(new Float64Array(16)),o=fn(new Float64Array(16)),s=new Float64Array(3),l=new Float64Array(3),u=new Float64Array(3),c=fn(new Float64Array(16)),f=fn(new Float64Array(16)),d=new Float64Array(3),h=new Float64Array(3);function v(){e.viewPlaneNormal[0]=-e.directionOfProjection[0],e.viewPlaneNormal[1]=-e.directionOfProjection[1],e.viewPlaneNormal[2]=-e.directionOfProjection[2]}t.orthogonalizeViewUp=()=>{const p=t.getViewMatrix();e.viewUp[0]=p[4],e.viewUp[1]=p[5],e.viewUp[2]=p[6],t.modified()},t.setPosition=(p,g,y)=>{p===e.position[0]&&g===e.position[1]&&y===e.position[2]||(e.position[0]=p,e.position[1]=g,e.position[2]=y,t.computeDistance(),t.modified())},t.setFocalPoint=(p,g,y)=>{p===e.focalPoint[0]&&g===e.focalPoint[1]&&y===e.focalPoint[2]||(e.focalPoint[0]=p,e.focalPoint[1]=g,e.focalPoint[2]=y,t.computeDistance(),t.modified())},t.setDistance=p=>{if(e.distance===p)return;e.distance=p,e.distance<1e-20&&(e.distance=1e-20,nS("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 p=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(p*p+g*g+y*y),e.distance<1e-20){e.distance=1e-20,nS("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]=p/e.distance,e.directionOfProjection[1]=g/e.distance,e.directionOfProjection[2]=y/e.distance,v()},t.dolly=p=>{if(p<=0)return;const g=e.distance/p;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=p=>{const g=e.position,y=e.focalPoint,m=e.viewUp,S=new Float64Array([m[0],m[1],m[2],0]);fn(c);const b=new Float64Array([y[0]-g[0],y[1]-g[1],y[2]-g[2]]);To(c,c,hr(p),b),I1(S,S,c),e.viewUp[0]=S[0],e.viewUp[1]=S[1],e.viewUp[2]=S[2],t.modified()},t.azimuth=p=>{const g=e.focalPoint;fn(f),pr(f,f,g),To(f,f,hr(p),e.viewUp),pr(f,f,[-g[0],-g[1],-g[2]]),En(d,e.position,f),t.setPosition(d[0],d[1],d[2])},t.yaw=p=>{const g=e.position;fn(f),pr(f,f,g),To(f,f,hr(p),e.viewUp),pr(f,f,[-g[0],-g[1],-g[2]]),En(h,e.focalPoint,f),t.setFocalPoint(h[0],h[1],h[2])},t.elevation=p=>{const g=e.focalPoint,y=t.getViewMatrix(),m=[-y[0],-y[1],-y[2]];fn(f),pr(f,f,g),To(f,f,hr(p),m),pr(f,f,[-g[0],-g[1],-g[2]]),En(d,e.position,f),t.setPosition(d[0],d[1],d[2])},t.pitch=p=>{const g=e.position,y=t.getViewMatrix(),m=[y[0],y[1],y[2]];fn(f),pr(f,f,g),To(f,f,hr(p),m),pr(f,f,[-g[0],-g[1],-g[2]]),En(h,e.focalPoint,f),t.setFocalPoint(...h)},t.zoom=p=>{p<=0||(e.parallelProjection?e.parallelScale/=p:e.viewAngle/=p,t.modified())},t.translate=(p,g,y)=>{const m=[p,g,y];ky(e.position,m,e.position),ky(e.focalPoint,m,e.focalPoint),t.computeDistance(),t.modified()},t.applyTransform=p=>{const g=[...e.viewUp,1],y=[],m=[],S=[];g[0]+=e.position[0],g[1]+=e.position[1],g[2]+=e.position[2],I1(y,[...e.position,1],p),I1(m,[...e.focalPoint,1],p),I1(S,g,p),S[0]-=y[0],S[1]-=y[1],S[2]-=y[2],t.setPosition(...y.slice(0,3)),t.setFocalPoint(...m.slice(0,3)),t.setViewUp(...S.slice(0,3))},t.getThickness=()=>e.clippingRange[1]-e.clippingRange[0],t.setThickness=p=>{let g=p;g<1e-20&&(g=1e-20,nS("Thickness is set to minimum.")),t.setClippingRange(e.clippingRange[0],e.clippingRange[0]+g)},t.setThicknessFromFocalPoint=p=>{let g=p;g<1e-20&&(g=1e-20,nS("Thickness is set to minimum.")),t.setClippingRange(e.distance-g/2,e.distance+g/2)},t.setRoll=p=>{},t.getRoll=()=>{},t.setObliqueAngles=(p,g)=>{},t.getOrientation=()=>{},t.getOrientationWXYZ=()=>{},t.getFrustumPlanes=p=>{},t.getCameraLightTransformMatrix=p=>(na(p,e.cameraLightTransform),p),t.computeCameraLightTransform=()=>{na(i,t.getViewMatrix()),Ua(i,i),vq(o,[e.distance,e.distance,e.distance]),Yr(i,i,o),fn(e.cameraLightTransform),pr(e.cameraLightTransform,i,[0,0,-1])},t.deepCopy=p=>{},t.physicalOrientationToWorldDirection=p=>{const g=RF(p[0],p[1],p[2],p[3]),y=Vd(),m=RF(0,0,1,0);return L7e(y,g),kF(m,g,m),kF(m,m,y),[m[0],m[1],m[2]]},t.getPhysicalToWorldMatrix=p=>{t.getWorldToPhysicalMatrix(p),Ua(p,p)},t.getWorldToPhysicalMatrix=p=>{fn(p);const g=[3];Ol(e.physicalViewNorth,e.physicalViewUp,g),p[0]=g[0],p[1]=g[1],p[2]=g[2],p[4]=e.physicalViewUp[0],p[5]=e.physicalViewUp[1],p[6]=e.physicalViewUp[2],p[8]=-e.physicalViewNorth[0],p[9]=-e.physicalViewNorth[1],p[10]=-e.physicalViewNorth[2],Wn(p,p),Ts(s,1/e.physicalScale,1/e.physicalScale,1/e.physicalScale),Nd(p,p,s),pr(p,p,e.physicalTranslation)},t.computeViewParametersFromViewMatrix=p=>{Ua(i,p),En(s,n,i),t.computeDistance();const g=e.distance;t.setPosition(s[0],s[1],s[2]),En(l,r,i),zu(l,l,s),Ju(l,l),t.setDirectionOfProjection(l[0],l[1],l[2]),En(u,a,i),zu(u,u,s),Ju(u,u),t.setViewUp(u[0],u[1],u[2]),t.setDistance(g)},t.computeViewParametersFromPhysicalMatrix=p=>{t.getWorldToPhysicalMatrix(i),Yr(i,p,i),t.computeViewParametersFromViewMatrix(i)},t.setViewMatrix=p=>{e.viewMatrix=p,e.viewMatrix&&(na(i,e.viewMatrix),t.computeViewParametersFromViewMatrix(i),Wn(e.viewMatrix,e.viewMatrix))},t.getViewMatrix=()=>{if(e.viewMatrix)return e.viewMatrix;Cq(i,e.position,e.focalPoint,e.viewUp),Wn(i,i);const p=new Float64Array(16);return na(p,i),p},t.setProjectionMatrix=p=>{e.projectionMatrix=p},t.getProjectionMatrix=(p,g,y)=>{const m=new Float64Array(16);if(fn(m),e.projectionMatrix){const x=1/e.physicalScale;return Ts(s,x,x,x),na(m,e.projectionMatrix),Nd(m,m,s),Wn(m,m),m}fn(i);const S=e.clippingRange[1]-e.clippingRange[0],b=[e.clippingRange[0]+(g+1)*S/2,e.clippingRange[0]+(y+1)*S/2];if(e.parallelProjection){const x=e.parallelScale*p,_=e.parallelScale,C=(e.windowCenter[0]-1)*x,T=(e.windowCenter[0]+1)*x,D=(e.windowCenter[1]-1)*_,M=(e.windowCenter[1]+1)*_;xq(i,C,T,D,M,b[0],b[1]),Wn(i,i)}else{if(e.useOffAxisProjection)throw new Error("Off-Axis projection is not supported at this time");{const x=Math.tan(hr(e.viewAngle)/2);let _,C;e.useHorizontalViewAngle===!0?(_=e.clippingRange[0]*x,C=e.clippingRange[0]*x/p):(_=e.clippingRange[0]*x*p,C=e.clippingRange[0]*x);const T=(e.windowCenter[0]-1)*_,D=(e.windowCenter[0]+1)*_,M=(e.windowCenter[1]-1)*C,E=(e.windowCenter[1]+1)*C,k=b[0],R=b[1];i[0]=2*k/(D-T),i[5]=2*k/(E-M),i[2]=(T+D)/(D-T),i[6]=(M+E)/(E-M),i[10]=-(k+R)/(R-k),i[14]=-1,i[11]=-2*k*R/(R-k),i[15]=0}}return na(m,i),m},t.getCompositeProjectionMatrix=(p,g,y)=>{const m=t.getViewMatrix(),S=t.getProjectionMatrix(p,g,y);return Yr(S,m,S),S},t.setDirectionOfProjection=(p,g,y)=>{if(e.directionOfProjection[0]===p&&e.directionOfProjection[1]===g&&e.directionOfProjection[2]===y)return;e.directionOfProjection[0]=p,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,v()},t.setDeviceAngles=(p,g,y,m)=>{const S=[3];Ol(e.physicalViewNorth,e.physicalViewUp,S);const b=fn(new Float64Array(16));To(b,b,hr(p),e.physicalViewUp),To(b,b,hr(g),S),To(b,b,hr(y),e.physicalViewNorth),To(b,b,hr(-m),e.physicalViewUp);const x=new Float64Array([-e.physicalViewUp[0],-e.physicalViewUp[1],-e.physicalViewUp[2]]),_=new Float64Array(e.physicalViewNorth);En(x,x,b),En(_,_,b),t.setDirectionOfProjection(x[0],x[1],x[2]),t.setViewUp(_[0],_[1],_[2]),t.modified()},t.setOrientationWXYZ=(p,g,y,m)=>{const S=fn(new Float64Array(16));if(p!==0&&(g!==0||y!==0||m!==0)){const _=hr(p),C=Vd();c3(C,[g,y,m],_),l3(S,C)}const b=new Float64Array(3);En(b,[0,0,-1],S);const x=new Float64Array(3);En(x,[0,1,0],S),t.setDirectionOfProjection(...b),t.setViewUp(...x),t.modified()},t.computeClippingRange=p=>{let g=null,y=null;g=e.viewPlaneNormal,y=e.position;const m=-g[0],S=-g[1],b=-g[2],x=-(m*y[0]+S*y[1]+b*y[2]),_=[m*p[0]+S*p[2]+b*p[4]+x,1e-18];for(let C=0;C<2;C++)for(let T=0;T<2;T++)for(let D=0;D<2;D++){const M=m*p[D]+S*p[2+T]+b*p[4+C]+x;_[0]=M<_[0]?M:_[0],_[1]=M>_[1]?M:_[1]}return _}}const CQe={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:a3(),physicalTranslation:[0,0,0],physicalScale:1,physicalViewUp:[0,1,0],physicalViewNorth:[0,0,-1]};function FQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,CQe,n),j.obj(t,e),j.get(t,e,["distance"]),j.setGet(t,e,["parallelProjection","useHorizontalViewAngle","viewAngle","parallelScale","useOffAxisProjection","freezeFocalPoint","physicalScale"]),j.getArray(t,e,["directionOfProjection","viewPlaneNormal","position","focalPoint"]),j.setGetArray(t,e,["clippingRange","windowCenter"],2),j.setGetArray(t,e,["viewUp","screenBottomLeft","screenBottomRight","screenTopRight","physicalTranslation","physicalViewUp","physicalViewNorth"],3),xQe(t,e)}const TQe=j.newInstance(FQ,"vtkCamera");var EQe={newInstance:TQe,extend:FQ};const MQe=["HeadLight","CameraLight","SceneLight"];function DQe(t,e){e.classHierarchy.push("vtkLight");const n=new Float64Array(3);t.getTransformedPosition=()=>(e.transformMatrix?En(n,e.position,e.transformMatrix):Ts(n,e.position[0],e.position[1],e.position[2]),n),t.getTransformedFocalPoint=()=>(e.transformMatrix?En(n,e.focalPoint,e.transformMatrix):Ts(n,e.focalPoint[0],e.focalPoint[1],e.focalPoint[2]),n),t.getDirection=()=>(e.directionMTime<e.mtime&&(Vk(e.direction,e.focalPoint,e.position),Fl(e.direction),e.directionMTime=e.mtime),e.direction),t.setDirection=r=>{const a=new Float64Array(3);Vk(a,e.position,r),e.focalPoint=a},t.setDirectionAngle=(r,a)=>{const i=hr(r),o=hr(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 kQe={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 zQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,kQe,n),j.obj(t,e),j.setGet(t,e,["intensity","switch","positional","exponent","coneAngle","coneFalloff","transformMatrix","lightType","shadowAttenuation","attenuationValues"]),j.setGetArray(t,e,["color","position","focalPoint","attenuationValues"],3),DQe(t,e)}const RQe=j.newInstance(zQ,"vtkLight");var LQe={newInstance:RQe,extend:zQ,LIGHT_TYPES:MQe};const{vtkErrorMacro:nw}=j;function OQe(t){return()=>nw(`vtkViewport::${t} - NOT IMPLEMENTED`)}function AQe(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<i.length;o++)n(i[o],a);return a}t.getViewPropsWithNestedProps=()=>{const r=[];for(let a=0;a<e.props.length;a++)n(e.props[a],r);return r},t.addActor2D=t.addViewProp,t.removeActor2D=r=>{t.removeViewProp(r)},t.getActors2D=()=>(e.actors2D=[],e.props.forEach(r=>{e.actors2D=e.actors2D.concat(r.getActors2D())}),e.actors2D),t.displayToView=()=>nw("call displayToView on your view instead"),t.viewToDisplay=()=>nw("callviewtodisplay on your view instead"),t.getSize=()=>nw("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=OQe("PickPropFrom")}const NQe={background:[0,0,0],background2:[.2,.2,.2],gradientBackground:!1,viewport:[0,0,1,1],aspect:[1,1],pixelAspect:[1,1],props:[],actors2D:[]};function GQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,NQe,n),j.obj(t,e),j.event(t,e,"event"),j.setGetArray(t,e,["viewport"],4),j.setGetArray(t,e,["background","background2"],3),AQe(t,e)}const VQe=j.newInstance(GQ,"vtkViewport");var BQe={newInstance:VQe,extend:GQ};const{vtkDebugMacro:fg,vtkErrorMacro:Mu,vtkWarningMacro:$Qe}=rl;function v4(t){return()=>Mu(`vtkRenderer::${t} - NOT IMPLEMENTED`)}function IQe(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||(fg("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(a3())):Mu("light has unknown light type",o.get()))})},t.updateLightGeometry=()=>e.lightFollowCamera?t.updateLightsGeometryToFollowCamera():!0,t.allocateTime=v4("allocateTime"),t.updateGeometry=v4("updateGeometry"),t.getVTKWindow=()=>e._renderWindow,t.setLayer=i=>{fg(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=EQe.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=LQe.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 Mu("ViewToWorld: no active camera, cannot compute view to world, returning 0,0,0"),[0,0,0];const l=e.activeCamera.getViewMatrix();Ua(l,l),Wn(l,l);const u=new Float64Array([i,o,s]);return En(u,u,l),u},t.projectionToView=(i,o,s,l)=>{if(e.activeCamera===null)return Mu("ProjectionToView: no active camera, cannot compute projection to view, returning 0,0,0"),[0,0,0];const u=e.activeCamera.getProjectionMatrix(l,-1,1);Ua(u,u),Wn(u,u);const c=new Float64Array([i,o,s]);return En(c,c,u),c},t.worldToView=(i,o,s)=>{if(e.activeCamera===null)return Mu("WorldToView: no active camera, cannot compute view to world, returning 0,0,0"),[0,0,0];const l=e.activeCamera.getViewMatrix();Wn(l,l);const u=new Float64Array([i,o,s]);return En(u,u,l),u},t.viewToProjection=(i,o,s,l)=>{if(e.activeCamera===null)return Mu("ViewToProjection: no active camera, cannot compute view to projection, returning 0,0,0"),[0,0,0];const u=e.activeCamera.getProjectionMatrix(l,-1,1);Wn(u,u);const c=new Float64Array([i,o,s]);return En(c,c,u),c},t.computeVisiblePropBounds=()=>{e.allBounds[0]=zn.INIT_BOUNDS[0],e.allBounds[1]=zn.INIT_BOUNDS[1],e.allBounds[2]=zn.INIT_BOUNDS[2],e.allBounds[3]=zn.INIT_BOUNDS[3],e.allBounds[4]=zn.INIT_BOUNDS[4],e.allBounds[5]=zn.INIT_BOUNDS[5];let i=!0;t.invokeEvent(n);for(let o=0;o<e.props.length;++o){const s=e.props[o];if(s.getVisibility()&&s.getUseBounds()){const l=s.getBounds();l&&r2(l)&&(i=!1,l[0]<e.allBounds[0]&&(e.allBounds[0]=l[0]),l[1]>e.allBounds[1]&&(e.allBounds[1]=l[1]),l[2]<e.allBounds[2]&&(e.allBounds[2]=l[2]),l[3]>e.allBounds[3]&&(e.allBounds[3]=l[3]),l[4]<e.allBounds[4]&&(e.allBounds[4]=l[4]),l[5]>e.allBounds[5]&&(e.allBounds[5]=l[5]))}}return i&&(y3(e.allBounds),fg("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(!r2(o))return fg("Cannot reset camera!"),!1;let l=null;if(t.getActiveCamera())l=e.activeCamera.getViewPlaneNormal();else return Mu("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=hr(e.activeCamera.getViewAngle()),v=d,p=d/Math.sin(h*.5),g=e.activeCamera.getViewUp();return Math.abs(dn(g,l))>.999&&($Qe("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]+p*l[0],s[1]+p*l[1],s[2]+p*l[2]),t.resetCameraClippingRange(o),e.activeCamera.setParallelScale(v),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(!r2(o))return fg("Cannot reset camera clipping range!"),!1;if(t.getActiveCameraAndResetIfCreated(),!e.activeCamera)return Mu("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=hr(e.activeCamera.getViewAngle());l=.2*Math.tan(u/2)*s[1]}return s[1]-s[0]<l&&(l=l-s[1]+s[0],s[1]+=l/2,s[0]-=l/2),s[0]<0&&(s[0]=0),s[0]=.99*s[0]-(s[1]-s[0])*e.clippingRangeExpansion,s[1]=1.01*s[1]+(s[1]-s[0])*e.clippingRangeExpansion,s[0]=s[0]>=s[1]?.01*s[1]:s[0],e.nearClippingPlaneTolerance||(e.nearClippingPlaneTolerance=.01),s[0]<e.nearClippingPlaneTolerance*s[1]&&(s[0]=e.nearClippingPlaneTolerance*s[1]),e.activeCamera.setClippingRange(s[0],s[1]),t.invokeEvent(r),!1},t.setRenderWindow=i=>{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 PQe={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:m3(),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 UQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(Object.assign(e,PQe,n),BQe.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),Ja(t,e,["_renderWindow","allocatedRenderTime","timeFactor","lastRenderTimeInSeconds","numberOfPropsRendered","lastRenderingUsedDepthPeeling","selector"]),zr(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"]),kv(t,e,["actors","volumes","lights"]),YA(t,e,["background"],4,1),Vm(t,e,["renderWindow"]),IQe(t,e)}const FQe=Yn(UQ,"vtkRenderer");var HQ={newInstance:FQe,extend:UQ};const zQe="WebGL",g_=Object.create(null);function N3(t,e){g_[t]=e}function GQe(){return Object.keys(g_)}function WQ(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return g_[t]&&g_[t](e)}function UQe(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 WQ(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 j.setImmediate(t.render),e._views.map(a=>a.captureNextImage?a.captureNextImage(n,r):void 0).filter(a=>!!a)}}const HQe={defaultViewAPI:zQe,renderers:[],views:[],interactor:null,neverRendered:!0,numberOfLayers:1};function KQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,HQe,n),j.obj(t,e),j.setGet(t,e,["interactor","numberOfLayers","_views","defaultViewAPI"]),j.get(t,e,["neverRendered"]),j.getArray(t,e,["renderers"]),j.moveToProtected(t,e,["views"]),j.event(t,e,"completion"),UQe(t,e)}const WQe=j.newInstance(KQ,"vtkRenderWindow");var jQ={newInstance:WQe,extend:KQ,registerViewConstructor:N3,listViewAPIs:GQe,newAPISpecificView:WQ};const Yk={Unknown:0,LeftController:1,RightController:2},Zg={Unknown:0,Trigger:1,TrackPad:2,Grip:3,Thumbstick:4,A:5,B:6,ApplicationMenu:7},KQe={Unknown:0,TouchpadX:1,TouchpadY:2,ThumbstickX:3,ThumbstickY:4};var YQ={Device:Yk,Input:Zg,Axis:KQe};const{Device:rS,Input:Df}=YQ,{vtkWarningMacro:aS,vtkErrorMacro:iS,normalizeWheel:jQe,vtkOnceErrorMacro:YQe}=j,gh={ctrlKey:!1,altKey:!1,shiftKey:!1},S2={"xr-standard":[Df.Trigger,Df.Grip,Df.TrackPad,Df.Thumbstick,Df.A,Df.B]},V3=["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 dg(t){t.cancelable&&t.preventDefault()}function oS(t){const e=Object.create(null);return t.forEach(n=>{let{pointerId:r,position:a}=n;e[r]=a}),e}function XQe(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=p=>{iS("you want to call setView(view) instead of setRenderWindow on a vtk.js interactor")},t.setInteractorStyle=p=>{e.interactorStyle!==p&&(e.interactorStyle!=null&&e.interactorStyle.setInteractor(null),e.interactorStyle=p,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=()=>aS("empty event loop");function o(p,g){e._forcedRenderer||(e.currentRenderer=t.findPokedRenderer(p,g))}t.getCurrentRenderer=()=>(e.currentRenderer||o(0,0),e.currentRenderer);function s(p){const g=e._view.getCanvas(),y=g.getBoundingClientRect(),m=g.width/y.width,S=g.height/y.height,b={x:m*(p.clientX-y.left),y:S*(y.height-p.clientY+y.top),z:0};return(a.size<=1||!e.currentRenderer)&&o(b.x,b.y),b}const l=e._getScreenEventPositionFor||s;function u(p){return{controlKey:p.ctrlKey,altKey:p.altKey,shiftKey:p.shiftKey}}function c(p){const g=u(p);return{key:p.key,keyCode:p.charCode,...g}}function f(p){return p.pointerType||""}const d=()=>{if(e.container===null)return;const{container:p}=e;p.addEventListener("contextmenu",dg),p.addEventListener("wheel",t.handleWheel),p.addEventListener("DOMMouseScroll",t.handleWheel),p.addEventListener("pointerenter",t.handlePointerEnter),p.addEventListener("pointerleave",t.handlePointerLeave),p.addEventListener("pointermove",t.handlePointerMove,{passive:!1}),p.addEventListener("pointerdown",t.handlePointerDown,{passive:!1}),p.addEventListener("pointerup",t.handlePointerUp),p.addEventListener("pointercancel",t.handlePointerCancel),document.addEventListener("keypress",t.handleKeyPress),document.addEventListener("keydown",t.handleKeyDown),document.addEventListener("keyup",t.handleKeyUp),document.addEventListener("pointerlockchange",t.handlePointerLockChange),p.style.touchAction="none",p.style.userSelect="none",p.style.webkitTapHighlightColor="rgba(0,0,0,0)"};t.bindEvents=p=>{if(p===null)return;n.setContainer(p)&&d()};const h=()=>{clearTimeout(e.moveTimeoutID),clearTimeout(e.wheelTimeoutID),e.moveTimeoutID=0,e.wheelTimeoutID=0,i=1;const{container:p}=e;p&&(p.removeEventListener("contextmenu",dg),p.removeEventListener("wheel",t.handleWheel),p.removeEventListener("DOMMouseScroll",t.handleWheel),p.removeEventListener("pointerenter",t.handlePointerEnter),p.removeEventListener("pointerleave",t.handlePointerLeave),p.removeEventListener("pointermove",t.handlePointerMove,{passive:!1}),p.removeEventListener("pointerdown",t.handlePointerDown,{passive:!1}),p.removeEventListener("pointerup",t.handlePointerUp),p.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=p=>{const g=c(p);t.keyPressEvent(g)},t.handleKeyDown=p=>{const g=c(p);t.keyDownEvent(g)},t.handleKeyUp=p=>{const g=c(p);t.keyUpEvent(g)},t.handlePointerEnter=p=>{const g={...u(p),position:l(p),deviceType:f(p)};t.pointerEnterEvent(g),g.deviceType==="mouse"&&t.mouseEnterEvent(g)},t.handlePointerLeave=p=>{const g={...u(p),position:l(p),deviceType:f(p)};t.pointerLeaveEvent(g),g.deviceType==="mouse"&&t.mouseLeaveEvent(g)},t.handlePointerDown=p=>{if(!(p.button>2||t.isPointerLocked()))switch(e.preventDefaultOnPointerDown&&dg(p),p.target.hasPointerCapture(p.pointerId)&&p.target.releasePointerCapture(p.pointerId),e.container.setPointerCapture(p.pointerId),a.has(p.pointerId)&&aS("[RenderWindowInteractor] duplicate pointerId detected"),a.set(p.pointerId,{pointerId:p.pointerId,position:l(p)}),p.pointerType){case"pen":case"touch":t.handleTouchStart(p);break;case"mouse":default:t.handleMouseDown(p);break}},t.handlePointerUp=p=>{if(a.has(p.pointerId))switch(e.preventDefaultOnPointerUp&&dg(p),a.delete(p.pointerId),e.container.releasePointerCapture(p.pointerId),p.pointerType){case"pen":case"touch":t.handleTouchEnd(p);break;case"mouse":default:t.handleMouseUp(p);break}},t.handlePointerCancel=p=>{if(a.has(p.pointerId))switch(a.delete(p.pointerId),p.pointerType){case"pen":case"touch":t.handleTouchEnd(p);break;case"mouse":default:t.handleMouseUp(p);break}},t.handlePointerMove=p=>{if(a.has(p.pointerId)){const g=a.get(p.pointerId);g.position=l(p)}switch(p.pointerType){case"pen":case"touch":t.handleTouchMove(p);break;case"mouse":default:t.handleMouseMove(p);break}},t.handleMouseDown=p=>{const g={...u(p),position:l(p),deviceType:f(p)};switch(p.button){case 0:t.leftButtonPressEvent(g);break;case 1:t.middleButtonPressEvent(g);break;case 2:t.rightButtonPressEvent(g);break;default:iS(`Unknown mouse button pressed: ${p.button}`);break}},t.requestPointerLock=()=>{e.container&&e.container.requestPointerLock()},t.exitPointerLock=()=>{var p;return(p=document.exitPointerLock)==null?void 0:p.call(document)},t.isPointerLocked=()=>!!e.container&&document.pointerLockElement===e.container,t.handlePointerLockChange=()=>{t.isPointerLocked()?t.startPointerLockEvent():t.endPointerLockEvent()};function v(){e._view&&e.enabled&&e.enableRender&&(e.inRender=!0,e._view.traverseAllPasses(),e.inRender=!1),t.invokeRenderEvent()}t.requestAnimation=p=>{if(p===void 0){iS("undefined requester, can not start animating");return}if(r.has(p)){aS("requester is already registered for animating");return}r.add(p),!e.animationRequest&&r.size===1&&!e.xrAnimation&&(e._animationStartTime=Date.now(),e._animationFrameCount=0,e.animationRequest=requestAnimationFrame(t.handleAnimation),t.startAnimationEvent())},t.extendAnimation=p=>{const g=Date.now()+p;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(p){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!r.has(p)){if(!g){const y=p&&p.getClassName?p.getClassName():p;aS(`${y} did not request an animation`)}return}r.delete(p),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=(p,g,y)=>{p.inputSources.forEach(m=>{const S=m.gripSpace==null?null:g.getPose(m.gripSpace,y),b=m.gamepad,x=m.handedness;if(b){b.index in e.lastGamepadValues||(e.lastGamepadValues[b.index]={left:{buttons:{}},right:{buttons:{}},none:{buttons:{}}});for(let _=0;_<b.buttons.length;++_)_ in e.lastGamepadValues[b.index][x].buttons||(e.lastGamepadValues[b.index][x].buttons[_]=!1),e.lastGamepadValues[b.index][x].buttons[_]!==b.buttons[_].pressed&&S!=null&&(t.button3DEvent({gamepad:b,position:S.transform.position,orientation:S.transform.orientation,pressed:b.buttons[_].pressed,device:m.handedness==="left"?rS.LeftController:rS.RightController,input:S2[b.mapping]&&S2[b.mapping][_]?S2[b.mapping][_]:Df.Trigger}),e.lastGamepadValues[b.index][x].buttons[_]=b.buttons[_].pressed),e.lastGamepadValues[b.index][x].buttons[_]&&S!=null&&t.move3DEvent({gamepad:b,position:S.transform.position,orientation:S.transform.orientation,device:m.handedness==="left"?rS.LeftController:rS.RightController})}})},t.handleMouseMove=p=>{const g={...u(p),position:l(p),deviceType:f(p)};e.moveTimeoutID===0?t.startMouseMoveEvent(g):(t.mouseMoveEvent(g),clearTimeout(e.moveTimeoutID)),e.moveTimeoutID=setTimeout(()=>{t.endMouseMoveEvent(),e.moveTimeoutID=0},200)},t.handleAnimation=()=>{const p=Date.now();e._animationFrameCount++,p-e._animationStartTime>1e3&&e._animationFrameCount>1&&(e.recentAnimationFrameRate=1e3*(e._animationFrameCount-1)/(p-e._animationStartTime),e.lastFrameTime=1/e.recentAnimationFrameRate,t.animationFrameRateUpdateEvent(),e._animationStartTime=p,e._animationFrameCount=1),t.animationEvent(),v(),r.size>0||Date.now()<e._animationExtendedEnd?e.animationRequest=requestAnimationFrame(t.handleAnimation):(cancelAnimationFrame(e.animationRequest),e.animationRequest=null,t.endAnimationEvent(),t.render())},t.handleWheel=p=>{dg(p);const g={...jQe(p),...u(p),position:l(p),deviceType:f(p)};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=p=>{const g={...u(p),position:l(p),deviceType:f(p)};switch(p.button){case 0:t.leftButtonReleaseEvent(g);break;case 1:t.middleButtonReleaseEvent(g);break;case 2:t.rightButtonReleaseEvent(g);break;default:iS(`Unknown mouse button released: ${p.button}`);break}},t.handleTouchStart=p=>{const g=[...a.values()];if(e.recognizeGestures&&g.length>1){const y=oS(a);if(g.length===2){const m={...u(gh),position:g[0].position,deviceType:f(p)};t.leftButtonReleaseEvent(m)}t.recognizeGesture("TouchStart",y)}else if(g.length===1){const y={...u(gh),position:l(p),deviceType:f(p)};t.leftButtonPressEvent(y)}},t.handleTouchMove=p=>{const g=[...a.values()];if(e.recognizeGestures&&g.length>1){const y=oS(a);t.recognizeGesture("TouchMove",y)}else if(g.length===1){const y={...u(gh),position:g[0].position,deviceType:f(p)};t.mouseMoveEvent(y)}},t.handleTouchEnd=p=>{const g=[...a.values()];if(e.recognizeGestures)if(g.length===0){const y={...u(gh),position:l(p),deviceType:f(p)};t.leftButtonReleaseEvent(y)}else if(g.length===1){const y=oS(a);t.recognizeGesture("TouchEnd",y);const m={...u(gh),position:g[0].position,deviceType:f(p)};t.leftButtonPressEvent(m)}else{const y=oS(a);t.recognizeGesture("TouchMove",y)}else if(g.length===1){const y={...u(gh),position:g[0].position,deviceType:f(p)};t.leftButtonReleaseEvent(y)}},t.setView=p=>{e._view!==p&&(e._view=p,e._view.getRenderable().setInteractor(t),t.modified())},t.getFirstRenderer=()=>{var p,g,y;return(y=(g=(p=e._view)==null?void 0:p.getRenderable())==null?void 0:g.getRenderersByReference())==null?void 0:y[0]},t.findPokedRenderer=function(){var _,C;let p=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=(_=e._view)==null?void 0:_.getRenderable())==null?void 0:C.getRenderers();if(!y||y.length===0)return null;y.sort((T,D)=>T.getLayer()-D.getLayer());let m=null,S=null,b=null,x=y.length;for(;x--;){const T=y[x];if(e._view.isInViewport(p,g,T)&&T.getInteractive()){b=T;break}m===null&&T.getInteractive()&&(m=T),S===null&&e._view.isInViewport(p,g,T)&&(S=T)}return b===null&&(b=m),b===null&&(b=S),b==null&&(b=y[0]),b},t.render=()=>{!t.isAnimating()&&!e.inRender&&v()},V3.forEach(p=>{const g=p.charAt(0).toLowerCase()+p.slice(1);t[`${g}Event`]=y=>{if(!e.enabled)return;if(!t.getCurrentRenderer()){YQe(`
- Can not forward events without a current renderer on the interactor.
- `);return}const S={type:p,pokedRenderer:e.currentRenderer,firstRenderer:t.getFirstRenderer(),...y};t[`invoke${p}`](S)}}),t.recognizeGesture=(p,g)=>{if(Object.keys(g).length>2)return;if(e.startingEventPositions||(e.startingEventPositions={}),p==="TouchStart"){Object.keys(g).forEach(M=>{e.startingEventPositions[M]=g[M]}),e.currentGesture="Start";return}if(p==="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=[],S=[];Object.keys(g).forEach(M=>{m[y]=g[M],S[y]=e.startingEventPositions[M],y++});const b=Math.sqrt((S[0].x-S[1].x)*(S[0].x-S[1].x)+(S[0].y-S[1].y)*(S[0].y-S[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 _=Dy(Math.atan2(S[1].y-S[0].y,S[1].x-S[0].x)),C=Dy(Math.atan2(m[1].y-m[0].y,m[1].x-m[0].x)),T=C-_;C=C+180>=360?C-180:C+180,_=_+180>=360?_-180:_+180,Math.abs(C-_)<Math.abs(T)&&(T=C-_);const D=[];if(D[0]=(m[0].x-S[0].x+m[1].x-S[1].x)/2,D[1]=(m[0].y-S[0].y+m[1].y-S[1].y)/2,p==="TouchMove")if(e.currentGesture==="Start"){let M=.01*Math.sqrt(e.container.clientWidth*e.container.clientWidth+e.container.clientHeight*e.container.clientHeight);M<15&&(M=15);const E=Math.abs(x-b),k=x*3.1415926*Math.abs(T)/360,R=Math.sqrt(D[0]*D[0]+D[1]*D[1]);if(E>M&&E>k&&E>R){e.currentGesture="Pinch";const O={scale:1,touches:g};t.startPinchEvent(O)}else if(k>M&&k>R){e.currentGesture="Rotate";const O={rotation:0,touches:g};t.startRotateEvent(O)}else if(R>M){e.currentGesture="Pan";const O={translation:[0,0],touches:g};t.startPanEvent(O)}}else{if(e.currentGesture==="Rotate"){const M={rotation:T,touches:g};t.rotateEvent(M)}if(e.currentGesture==="Pinch"){const M={scale:x/b,touches:g};t.pinchEvent(M)}if(e.currentGesture==="Pan"){const M={translation:D,touches:g};t.panEvent(M)}}},t.handleVisibilityChange=()=>{e._animationStartTime=Date.now(),e._animationFrameCount=0},t.setCurrentRenderer=p=>{e._forcedRenderer=!!p,e.currentRenderer=p},t.setContainer=p=>{h();const g=n.setContainer(p??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 qQe={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 XQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,qQe,n),j.obj(t,e),e._animationExtendedEnd=0,j.event(t,e,"RenderEvent"),V3.forEach(r=>j.event(t,e,r)),j.get(t,e,["initialized","interactorStyle","lastFrameTime","recentAnimationFrameRate","_view"]),j.setGet(t,e,["container","lightFollowCamera","enabled","enableRender","recognizeGestures","desiredUpdateRate","stillUpdateRate","picker","preventDefaultOnPointerDown","preventDefaultOnPointerUp","mouseScrollDebounceByPass"]),j.moveToProtected(t,e,["view"]),XQe(t,e)}const ZQe=j.newInstance(XQ,"vtkRenderWindowInteractor");var B3={newInstance:ZQe,extend:XQ,handledEvents:V3,...YQ};const{vtkErrorMacro:QQe,VOID:JQe}=j;function eJe(t,e,n,r){return t.getRenderWindow().getViews()[0].worldToDisplay(e,n,r,t)}function tJe(t,e,n,r){return t.getRenderWindow().getViews()[0].displayToWorld(e,n,r,t)}const nJe={computeWorldToDisplay:eJe,computeDisplayToWorld:tJe};function rJe(t,e){e.classHierarchy.push("vtkInteractorObserver");const n={...t};function r(){for(;e.subscribedEvents.length;)e.subscribedEvents.pop().unsubscribe()}function a(){B3.handledEvents.forEach(i=>{t[`handle${i}`]&&e.subscribedEvents.push(e._interactor[`on${i}`](o=>e.processEvents?t[`handle${i}`](o):JQe,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():QQe(`
- 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 aJe={enabled:!0,priority:0,processEvents:!0,subscribedEvents:[]};function qQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,aJe,n),j.obj(t,e),j.event(t,e,"InteractionEvent"),j.event(t,e,"StartInteractionEvent"),j.event(t,e,"EndInteractionEvent"),j.get(t,e,["_interactor","enabled"]),j.setGet(t,e,["priority","processEvents"]),j.moveToProtected(t,e,["interactor"]),rJe(t,e)}const iJe=j.newInstance(qQ,"vtkInteractorObserver");var oJe={newInstance:iJe,extend:qQ,...nJe};const sJe={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 $3={States:sJe};const{States:_s}=$3,b2={Rotate:_s.IS_ROTATE,Pan:_s.IS_PAN,Spin:_s.IS_SPIN,Dolly:_s.IS_DOLLY,CameraPose:_s.IS_CAMERA_POSE,WindowLevel:_s.IS_WINDOW_LEVEL,Slice:_s.IS_SLICE};function lJe(t,e){e.classHierarchy.push("vtkInteractorStyle"),Object.keys(b2).forEach(n=>{j.event(t,e,`Start${n}Event`),t[`start${n}`]=()=>{e.state===_s.IS_NONE&&(e.state=b2[n],e._interactor.requestAnimation(t),t.invokeStartInteractionEvent({type:"StartInteractionEvent"}),t[`invokeStart${n}Event`]({type:`Start${n}Event`}))},j.event(t,e,`End${n}Event`),t[`end${n}`]=()=>{e.state===b2[n]&&(e.state=_s.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 uJe={state:_s.IS_NONE,handleObservers:1,autoAdjustCameraClippingRange:1};function ZQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,uJe,n),oJe.extend(t,e,n),lJe(t,e)}const cJe=j.newInstance(ZQ,"vtkInteractorStyle");var fJe={newInstance:cJe,extend:ZQ,...$3};const{States:hs}=$3;function dJe(t,e){e.classHierarchy.push("vtkInteractorStyleTrackballCamera"),t.handleMouseMove=n=>{const r=n.position,a=n.pokedRenderer;switch(e.state){case hs.IS_ROTATE:t.handleMouseRotate(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break;case hs.IS_PAN:t.handleMousePan(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break;case hs.IS_DOLLY:t.handleMouseDolly(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break;case hs.IS_SPIN:t.handleMouseSpin(a,r),t.invokeInteractionEvent({type:"InteractionEvent"});break}e.previousPosition=r},t.handleButton3D=n=>{if(n&&n.pressed&&n.device===Yk.RightController&&(n.input===Zg.Trigger||n.input===Zg.TrackPad)){t.startCameraPose();return}n&&!n.pressed&&n.device===Yk.RightController&&(n.input===Zg.Trigger||n.input===Zg.TrackPad)&&e.state===hs.IS_CAMERA_POSE&&t.endCameraPose()},t.handleMove3D=n=>{switch(e.state){case hs.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 hs.IS_DOLLY:t.endDolly();break;case hs.IS_PAN:t.endPan();break;case hs.IS_SPIN:t.endSpin();break;case hs.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=Dy(Math.atan2(e.previousPosition.y-o[1],e.previousPosition.x-o[0])),l=Dy(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 hJe={motionFactor:10,zoomFactor:10};function QQ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,hJe,n),fJe.extend(t,e,n),j.setGet(t,e,["motionFactor","zoomFactor"]),dJe(t,e)}const pJe=j.newInstance(QQ,"vtkInteractorStyleTrackballCamera");var JQ={newInstance:pJe,extend:QQ};function vJe(t){return t}function I3(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=>I3(e.trim())):t===""||Number.isNaN(Number(t))?t:Number(t)}function gJe(){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?I3:vJe;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 eJ={toNativeType:I3,extractURLParameters:gJe};function yJe(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){hn("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){hn("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<e.colorBuffers.length;a++)e.colorBuffers[a].bind();e._openGLRenderWindow.setActiveFramebuffer(t)},t.create=(n,r)=>{if(!e.context){hn("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){hn("you must set the OpenGLRenderWindow before calling setColorBuffer");return}let i=a.COLOR_ATTACHMENT0;if(r>0)if(e._openGLRenderWindow.getWebgl2())i+=r;else{hn("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){hn("you must set the OpenGLRenderWindow before calling removeColorBuffer");return}let a=r.COLOR_ATTACHMENT0;if(n>0)if(e._openGLRenderWindow.getWebgl2())a+=n;else{hn("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){hn("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 hn("Attaching depth buffer textures to fbo requires WebGL 2")},t.removeDepthBuffer=()=>{if(!e.context){hn("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 hn("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){hn("you must set the OpenGLRenderWindow before calling populateFrameBuffer");return}t.bind();const n=e.context,r=Sd.newInstance();r.setOpenGLRenderWindow(e._openGLRenderWindow),r.setMinificationFilter(Wk.LINEAR),r.setMagnificationFilter(Wk.LINEAR),r.create2DFromRaw(e.glFramebuffer.width,e.glFramebuffer.height,4,Dr.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 mJe={glFramebuffer:null,colorBuffers:null,depthTexture:null,previousDrawBinding:0,previousReadBinding:0,previousDrawBuffer:0,previousReadBuffer:0,previousActiveFramebuffer:null};function tJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,mJe,n),qr(t,e),e.colorBuffers&&hn("you cannot initialize colorBuffers through the constructor. You should call setColorBuffer() instead."),e.colorBuffers=[],kv(t,e,["colorBuffers"]),yJe(t,e)}const SJe=Yn(tJ,"vtkFramebuffer");var P3={newInstance:SJe,extend:tJ};function bJe(t,e){e.classHierarchy.push("vtkRenderPass"),t.getOperation=()=>e.currentOperation,t.setCurrentOperation=n=>{e.currentOperation=n,e.currentTraverseOperation=`traverse${j.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 wJe={delegates:[],currentOperation:null,preDelegateOperations:[],postDelegateOperations:[],currentParent:null};function nJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,wJe,n),j.obj(t,e),j.get(t,e,["currentOperation"]),j.setGet(t,e,["delegates","_currentParent","preDelegateOperations","postDelegateOperations"]),j.moveToProtected(t,e,["currentParent"]),bJe(t,e)}const _Je=j.newInstance(nJ,"vtkRenderPass");var tu={newInstance:_Je,extend:nJ};const{Representation:xJe}=Lv,{vtkErrorMacro:g4}=j;function CJe(t){const e=Xe.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 TJe=`//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 EJe(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=_n.newInstance({numberOfComponents:3,values:n});i.setName("points");const o=_n.newInstance({numberOfComponents:2,values:r});o.setName("tcoords");const s=_n.newInstance({numberOfComponents:1,values:a});e.tris.getCABO().createVBO(s,"polys",xJe.SURFACE,{points:i,tcoords:o,cellOffset:0}),e.VBOBuildTime.modified()},t.createFramebuffer=n=>{const r=n.getSize(),a=n.getContext();e.framebuffer=P3.newInstance(),e.framebuffer.setOpenGLRenderWindow(n),e.framebuffer.create(...r),e.framebuffer.saveCurrentBindingsAndBuffers(),e.framebuffer.bind(),e.translucentRGBATexture=Sd.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=Sd.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=Sd.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(`
- `),TJe,"")},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)||g4("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)||g4("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=iQ.newInstance(),e.copyVAO.setOpenGLRenderWindow(n)),e.copyVAO.bind(),e.VBOBuildTime.getMTime()<t.getMTime()&&t.createVBO(n),o.blendFuncSeparate(o.SRC_ALPHA,o.ONE_MINUS_SRC_ALPHA,o.ONE,o.ONE_MINUS_SRC_ALPHA),o.depthMask(!1),o.depthFunc(o.ALWAYS),o.viewport(0,0,i[0],i[1]),o.scissor(0,0,i[0],i[1]),e.translucentRGBATexture.activate(),e.copyShader.setUniformi("translucentRGBATexture",e.translucentRGBATexture.getTextureUnit()),e.translucentRTexture.activate(),e.copyShader.setUniformi("translucentRTexture",e.translucentRTexture.getTextureUnit()),o.drawArrays(o.TRIANGLES,0,e.tris.getCABO().getElementCount()),o.depthMask(!0),o.depthFunc(o.LEQUAL),e.translucentRGBATexture.deactivate(),e.translucentRTexture.deactivate()},t.getShaderReplacement=()=>e._supported?CJe: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 MJe={framebuffer:null,copyShader:null,tris:null};function rJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,MJe,n),tu.extend(t,e,n),e.VBOBuildTime={},j.obj(e.VBOBuildTime,{mtime:0}),e.tris=Ov.newInstance(),j.get(t,e,["framebuffer"]),EJe(t,e)}const DJe=j.newInstance(rJ,"vtkOpenGLOrderIndependentTranslucentPass");var kJe={newInstance:DJe,extend:rJ};function RJe(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;o<a;o++)for(let s=0;s<i.length;s++){const l=i[s],u=n.getRenderable().getRenderers()[s];if(u.getDraw()&&u.getLayer()===o){if(e.opaqueActorCount=0,e.translucentActorCount=0,e.volumeCount=0,e.overlayActorCount=0,t.setCurrentOperation("queryPass"),l.traverse(t),(e.opaqueActorCount>0||e.translucentActorCount>0)&&e.volumeCount>0||e.depthRequested){const c=n.getFramebufferSize();e.framebuffer===null&&(e.framebuffer=P3.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=kJe.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 LJe={opaqueActorCount:0,translucentActorCount:0,volumeCount:0,overlayActorCount:0,framebuffer:null,depthRequested:!1};function aJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,LJe,n),tu.extend(t,e,n),j.get(t,e,["framebuffer","opaqueActorCount","translucentActorCount","volumeCount"]),RJe(t,e)}const OJe=j.newInstance(aJ,"vtkForwardPass");var AJe={newInstance:OJe,extend:aJ};const{FieldAssociations:NJe}=Zd;function VJe(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 BJe={fieldAssociation:NJe.FIELD_ASSOCIATION_CELLS,captureZValues:!1};function iJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,BJe,n),j.obj(t,e),j.setGet(t,e,["fieldAssociation","captureZValues"]),VJe(t,e)}const $Je=j.newInstance(iJ,"vtkHardwareSelector");var oJ={newInstance:$Je,extend:iJ};const IJe={GLOBALIDS:0,PEDIGREEIDS:1,VALUES:2,INDICES:3,FRUSTUM:4,LOCATIONS:5,THRESHOLDS:6,BLOCKS:7,QUERY:8},PJe={CELL:0,POINT:1,FIELD:2,VERTEX:3,EDGE:4,ROW:5};var FJe={SelectionContent:IJe,SelectionField:PJe};function zJe(t,e){e.classHierarchy.push("vtkSelectionNode"),t.getBounds=()=>e.points.getBounds()}const GJe={contentType:-1,fieldType:-1,properties:null,selectionList:[]};function sJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,GJe,n),j.obj(t,e),e.properties={},j.setGet(t,e,["contentType","fieldType","properties","selectionList"]),zJe(t,e)}const UJe=j.newInstance(sJ,"vtkSelectionNode");var yC={newInstance:UJe,extend:sJ,...FJe};const{PassTypes:Mr}=AZ,{SelectionContent:HJe,SelectionField:y4}=yC,{FieldAssociations:T0}=Zd,{vtkErrorMacro:lJ}=j,Iu=1;function uJ(t){return`${t.propID} ${t.compositeID}`}function cJ(t,e,n,r){if(!n)return 0;const a=(e*(r[2]-r[0]+1)+t)*4;return n[a+3]}function _l(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 fJ(t,e){let n=e;return n<<=24,n|=t,n}function Wh(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[0]||e[0]>t.area[2]||e[1]<t.area[1]||e[1]>t.area[3])return null;const l=[e[0]-t.area[0],e[1]-t.area[1]],u=_l(l[0],l[1],t.pixBuffer[Mr.ACTOR_PASS],t.area);if(u<=0||u-Iu>=t.props.length)return null;const c={};c.valid=!0,c.propID=u-Iu,c.prop=t.props[c.propID];let f=_l(l[0],l[1],t.pixBuffer[Mr.COMPOSITE_INDEX_PASS],t.area);if((f<0||f>16777215)&&(f=0),c.compositeID=f-Iu,t.captureZValues){const v=(l[1]*(t.area[2]-t.area[0]+1)+l[0])*4;c.zValue=(256*t.zBuffer[v]+t.zBuffer[v+1])/65535,c.displayPosition=e}if(t.pixBuffer[Mr.ID_LOW24]&&cJ(l[0],l[1],t.pixBuffer[Mr.ID_LOW24],t.area)===0)return c;const d=_l(l[0],l[1],t.pixBuffer[Mr.ID_LOW24],t.area),h=_l(l[0],l[1],t.pixBuffer[Mr.ID_HIGH24],t.area);return c.attributeID=fJ(d,h),c}const i=[e[0],e[1]],o=[0,0];let s=Wh(t,e,0,r);if(s&&s.valid)return s;for(let l=1;l<a;++l){for(let u=i[1]>l?i[1]-l:0;u<=i[1]+l;++u)if(o[1]=u,i[0]>=l&&(o[0]=i[0]-l,s=Wh(t,o,0,r),s&&s.valid)||(o[0]=i[0]+l,s=Wh(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=Wh(t,o,0,r),s&&s.valid)||(o[1]=i[1]+l,s=Wh(t,o,0,r),s&&s.valid))return s}return r[0]=e[0],r[1]=e[1],null}function dJ(t,e,n,r,a){const i=[];let o=0;return e.forEach((s,l)=>{const u=yC.newInstance();switch(u.setContentType(HJe.INDICES),t){case T0.FIELD_ASSOCIATION_CELLS:u.setFieldType(y4.CELL);break;case T0.FIELD_ASSOCIATION_POINTS:u.setFieldType(y4.POINT);break;default:lJ("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 WJe(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 v=Wh(t,[d,f],0,c);if(v&&v.valid){const p=uJ(v);if(!u.has(p))u.set(p,{info:v,pixelCount:1,attributeIDs:[v.attributeID]});else{const g=u.get(p);g.pixelCount++,t.captureZValues&&v.zValue<g.info.zValue&&(g.info=v),g.attributeIDs.indexOf(v.attributeID)===-1&&g.attributeIDs.push(v.attributeID)}}}return dJ(t.fieldAssociation,u,t.captureZValues,t.renderer,t.openGLRenderWindow)}function KJe(t,e){e.classHierarchy.push("vtkOpenGLHardwareSelector"),t.releasePixBuffers=()=>{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=P3.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===T0.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<u;f++)c[f]=arguments[f];return WJe(l,...c)},l},t.captureBuffers=()=>{if(!e._renderer||!e._openGLRenderWindow)return lJ("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===T0.FIELD_ASSOCIATION_POINTS)return e.maximumPointId>16777215;if(e.fieldAssociation===T0.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=_l(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+Iu),e.props.push(r))},t.renderCompositeIndex=r=>{e.currentPass===Mr.COMPOSITE_INDEX_PASS&&t.setPropColorValueFromInt(r+Iu)},t.renderAttributeId=r=>{r<0||(e.maxAttributeId=r>e.maxAttributeId?r:e.maxAttributeId)},t.passTypeToString=r=>j.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[0]||r[0]>e.area[2]||r[1]<e.area[1]||r[1]>e.area[3])return null;const c=[r[0]-e.area[0],r[1]-e.area[1]],f=_l(c[0],c[1],e.pixBuffer[Mr.ACTOR_PASS],e.area);if(f<=0||f-Iu>=e.props.length)return null;const d={};d.valid=!0,d.propID=f-Iu,d.prop=e.props[d.propID];let h=_l(c[0],c[1],e.pixBuffer[Mr.COMPOSITE_INDEX_PASS],e.area);if((h<0||h>16777215)&&(h=0),d.compositeID=h-Iu,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]&&cJ(c[0],c[1],e.pixBuffer[Mr.ID_LOW24],e.area)===0)return d;const v=_l(c[0],c[1],e.pixBuffer[Mr.ID_LOW24],e.area),p=_l(c[0],c[1],e.pixBuffer[Mr.ID_HIGH24],e.area);return d.attributeID=fJ(v,p),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;c<o;++c){for(let f=s[1]>c?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 v=s;v<=u;v++){const p=[v,h],g=t.getPixelInformation(p,0,d);if(g&&g.valid){const y=uJ(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.zValue<m.info.zValue&&(m.info=g),m.attributeIDs.indexOf(g.attributeID)===-1&&m.attributeIDs.push(g.attributeID)}}}return dJ(e.fieldAssociation,f,e.captureZValues,e._renderer,e._openGLRenderWindow)},t.getRawPixelBuffer=r=>e.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 jJe={area:void 0,currentPass:-1,propColorValue:null,props:null,maximumPointId:0,maximumCellId:0,idOffset:1};function hJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,jJe,n),oJ.extend(t,e,n),e.propColorValue=[0,0,0],e.props=[],e.area||(e.area=[0,0,0,0]),j.setGetArray(t,e,["area"],4),j.setGet(t,e,["_renderer","currentPass","_openGLRenderWindow","maximumPointId","maximumCellId"]),j.setGetArray(t,e,["propColorValue"],3),j.moveToProtected(t,e,["renderer","openGLRenderWindow"]),j.event(t,e,"event"),KJe(t,e)}const YJe=j.newInstance(hJ,"vtkOpenGLHardwareSelector");var pJ={newInstance:YJe,extend:hJ,...AZ},vJ={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 S=y[0],b=y[1],x=y[2],_=y[3];S+=(b&x|~b&_)+m[0]-680876936|0,S=(S<<7|S>>>25)+b|0,_+=(S&b|~S&x)+m[1]-389564586|0,_=(_<<12|_>>>20)+S|0,x+=(_&S|~_&b)+m[2]+606105819|0,x=(x<<17|x>>>15)+_|0,b+=(x&_|~x&S)+m[3]-1044525330|0,b=(b<<22|b>>>10)+x|0,S+=(b&x|~b&_)+m[4]-176418897|0,S=(S<<7|S>>>25)+b|0,_+=(S&b|~S&x)+m[5]+1200080426|0,_=(_<<12|_>>>20)+S|0,x+=(_&S|~_&b)+m[6]-1473231341|0,x=(x<<17|x>>>15)+_|0,b+=(x&_|~x&S)+m[7]-45705983|0,b=(b<<22|b>>>10)+x|0,S+=(b&x|~b&_)+m[8]+1770035416|0,S=(S<<7|S>>>25)+b|0,_+=(S&b|~S&x)+m[9]-1958414417|0,_=(_<<12|_>>>20)+S|0,x+=(_&S|~_&b)+m[10]-42063|0,x=(x<<17|x>>>15)+_|0,b+=(x&_|~x&S)+m[11]-1990404162|0,b=(b<<22|b>>>10)+x|0,S+=(b&x|~b&_)+m[12]+1804603682|0,S=(S<<7|S>>>25)+b|0,_+=(S&b|~S&x)+m[13]-40341101|0,_=(_<<12|_>>>20)+S|0,x+=(_&S|~_&b)+m[14]-1502002290|0,x=(x<<17|x>>>15)+_|0,b+=(x&_|~x&S)+m[15]+1236535329|0,b=(b<<22|b>>>10)+x|0,S+=(b&_|x&~_)+m[1]-165796510|0,S=(S<<5|S>>>27)+b|0,_+=(S&x|b&~x)+m[6]-1069501632|0,_=(_<<9|_>>>23)+S|0,x+=(_&b|S&~b)+m[11]+643717713|0,x=(x<<14|x>>>18)+_|0,b+=(x&S|_&~S)+m[0]-373897302|0,b=(b<<20|b>>>12)+x|0,S+=(b&_|x&~_)+m[5]-701558691|0,S=(S<<5|S>>>27)+b|0,_+=(S&x|b&~x)+m[10]+38016083|0,_=(_<<9|_>>>23)+S|0,x+=(_&b|S&~b)+m[15]-660478335|0,x=(x<<14|x>>>18)+_|0,b+=(x&S|_&~S)+m[4]-405537848|0,b=(b<<20|b>>>12)+x|0,S+=(b&_|x&~_)+m[9]+568446438|0,S=(S<<5|S>>>27)+b|0,_+=(S&x|b&~x)+m[14]-1019803690|0,_=(_<<9|_>>>23)+S|0,x+=(_&b|S&~b)+m[3]-187363961|0,x=(x<<14|x>>>18)+_|0,b+=(x&S|_&~S)+m[8]+1163531501|0,b=(b<<20|b>>>12)+x|0,S+=(b&_|x&~_)+m[13]-1444681467|0,S=(S<<5|S>>>27)+b|0,_+=(S&x|b&~x)+m[2]-51403784|0,_=(_<<9|_>>>23)+S|0,x+=(_&b|S&~b)+m[7]+1735328473|0,x=(x<<14|x>>>18)+_|0,b+=(x&S|_&~S)+m[12]-1926607734|0,b=(b<<20|b>>>12)+x|0,S+=(b^x^_)+m[5]-378558|0,S=(S<<4|S>>>28)+b|0,_+=(S^b^x)+m[8]-2022574463|0,_=(_<<11|_>>>21)+S|0,x+=(_^S^b)+m[11]+1839030562|0,x=(x<<16|x>>>16)+_|0,b+=(x^_^S)+m[14]-35309556|0,b=(b<<23|b>>>9)+x|0,S+=(b^x^_)+m[1]-1530992060|0,S=(S<<4|S>>>28)+b|0,_+=(S^b^x)+m[4]+1272893353|0,_=(_<<11|_>>>21)+S|0,x+=(_^S^b)+m[7]-155497632|0,x=(x<<16|x>>>16)+_|0,b+=(x^_^S)+m[10]-1094730640|0,b=(b<<23|b>>>9)+x|0,S+=(b^x^_)+m[13]+681279174|0,S=(S<<4|S>>>28)+b|0,_+=(S^b^x)+m[0]-358537222|0,_=(_<<11|_>>>21)+S|0,x+=(_^S^b)+m[3]-722521979|0,x=(x<<16|x>>>16)+_|0,b+=(x^_^S)+m[6]+76029189|0,b=(b<<23|b>>>9)+x|0,S+=(b^x^_)+m[9]-640364487|0,S=(S<<4|S>>>28)+b|0,_+=(S^b^x)+m[12]-421815835|0,_=(_<<11|_>>>21)+S|0,x+=(_^S^b)+m[15]+530742520|0,x=(x<<16|x>>>16)+_|0,b+=(x^_^S)+m[2]-995338651|0,b=(b<<23|b>>>9)+x|0,S+=(x^(b|~_))+m[0]-198630844|0,S=(S<<6|S>>>26)+b|0,_+=(b^(S|~x))+m[7]+1126891415|0,_=(_<<10|_>>>22)+S|0,x+=(S^(_|~b))+m[14]-1416354905|0,x=(x<<15|x>>>17)+_|0,b+=(_^(x|~S))+m[5]-57434055|0,b=(b<<21|b>>>11)+x|0,S+=(x^(b|~_))+m[12]+1700485571|0,S=(S<<6|S>>>26)+b|0,_+=(b^(S|~x))+m[3]-1894986606|0,_=(_<<10|_>>>22)+S|0,x+=(S^(_|~b))+m[10]-1051523|0,x=(x<<15|x>>>17)+_|0,b+=(_^(x|~S))+m[1]-2054922799|0,b=(b<<21|b>>>11)+x|0,S+=(x^(b|~_))+m[8]+1873313359|0,S=(S<<6|S>>>26)+b|0,_+=(b^(S|~x))+m[15]-30611744|0,_=(_<<10|_>>>22)+S|0,x+=(S^(_|~b))+m[6]-1560198380|0,x=(x<<15|x>>>17)+_|0,b+=(_^(x|~S))+m[13]+1309151649|0,b=(b<<21|b>>>11)+x|0,S+=(x^(b|~_))+m[4]-145523070|0,S=(S<<6|S>>>26)+b|0,_+=(b^(S|~x))+m[11]-1120210379|0,_=(_<<10|_>>>22)+S|0,x+=(S^(_|~b))+m[2]+718787259|0,x=(x<<15|x>>>17)+_|0,b+=(_^(x|~S))+m[9]-343485551|0,b=(b<<21|b>>>11)+x|0,y[0]=S+y[0]|0,y[1]=b+y[1]|0,y[2]=x+y[2]|0,y[3]=_+y[3]|0}function i(y){var m=[],S;for(S=0;S<64;S+=4)m[S>>2]=y.charCodeAt(S)+(y.charCodeAt(S+1)<<8)+(y.charCodeAt(S+2)<<16)+(y.charCodeAt(S+3)<<24);return m}function o(y){var m=[],S;for(S=0;S<64;S+=4)m[S>>2]=y[S]+(y[S+1]<<8)+(y[S+2]<<16)+(y[S+3]<<24);return m}function s(y){var m=y.length,S=[1732584193,-271733879,-1732584194,271733878],b,x,_,C,T,D;for(b=64;b<=m;b+=64)a(S,i(y.substring(b-64,b)));for(y=y.substring(b-64),x=y.length,_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b=0;b<x;b+=1)_[b>>2]|=y.charCodeAt(b)<<(b%4<<3);if(_[b>>2]|=128<<(b%4<<3),b>55)for(a(S,_),b=0;b<16;b+=1)_[b]=0;return C=m*8,C=C.toString(16).match(/(.*?)(.{0,8})$/),T=parseInt(C[2],16),D=parseInt(C[1],16)||0,_[14]=T,_[15]=D,a(S,_),S}function l(y){var m=y.length,S=[1732584193,-271733879,-1732584194,271733878],b,x,_,C,T,D;for(b=64;b<=m;b+=64)a(S,o(y.subarray(b-64,b)));for(y=b-64<m?y.subarray(b-64):new Uint8Array(0),x=y.length,_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b=0;b<x;b+=1)_[b>>2]|=y[b]<<(b%4<<3);if(_[b>>2]|=128<<(b%4<<3),b>55)for(a(S,_),b=0;b<16;b+=1)_[b]=0;return C=m*8,C=C.toString(16).match(/(.*?)(.{0,8})$/),T=parseInt(C[2],16),D=parseInt(C[1],16)||0,_[14]=T,_[15]=D,a(S,_),S}function u(y){var m="",S;for(S=0;S<4;S+=1)m+=r[y>>S*8+4&15]+r[y>>S*8&15];return m}function c(y){var m;for(m=0;m<y.length;m+=1)y[m]=u(y[m]);return y.join("")}c(s("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function y(m,S){return m=m|0||0,m<0?Math.max(m+S,0):Math.min(m,S)}ArrayBuffer.prototype.slice=function(m,S){var b=this.byteLength,x=y(m,b),_=b,C,T,D,M;return S!==n&&(_=y(S,b)),x>_?new ArrayBuffer(0):(C=_-x,T=new ArrayBuffer(C),D=new Uint8Array(T),M=new Uint8Array(this,x,C),D.set(M),T)}}();function f(y){return/[\u0080-\uFFFF]/.test(y)&&(y=unescape(encodeURIComponent(y))),y}function d(y,m){var S=y.length,b=new ArrayBuffer(S),x=new Uint8Array(b),_;for(_=0;_<S;_+=1)x[_]=y.charCodeAt(_);return m?x:b}function h(y){return String.fromCharCode.apply(null,new Uint8Array(y))}function v(y,m,S){var b=new Uint8Array(y.byteLength+m.byteLength);return b.set(new Uint8Array(y)),b.set(new Uint8Array(m),y.byteLength),S?b:b.buffer}function p(y){var m=[],S=y.length,b;for(b=0;b<S-1;b+=2)m.push(parseInt(y.substr(b,2),16));return String.fromCharCode.apply(String,m)}function g(){this.reset()}return g.prototype.append=function(y){return this.appendBinary(f(y)),this},g.prototype.appendBinary=function(y){this._buff+=y,this._length+=y.length;var m=this._buff.length,S;for(S=64;S<=m;S+=64)a(this._hash,i(this._buff.substring(S-64,S)));return this._buff=this._buff.substring(S-64),this},g.prototype.end=function(y){var m=this._buff,S=m.length,b,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],_;for(b=0;b<S;b+=1)x[b>>2]|=m.charCodeAt(b)<<(b%4<<3);return this._finish(x,S),_=c(this._hash),y&&(_=p(_)),this.reset(),_},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 S=m,b,x,_;if(y[S>>2]|=128<<(S%4<<3),S>55)for(a(this._hash,y),S=0;S<16;S+=1)y[S]=0;b=this._length*8,b=b.toString(16).match(/(.*?)(.{0,8})$/),x=parseInt(b[2],16),_=parseInt(b[1],16)||0,y[14]=x,y[15]=_,a(this._hash,y)},g.hash=function(y,m){return g.hashBinary(f(y),m)},g.hashBinary=function(y,m){var S=s(y),b=c(S);return m?p(b):b},g.ArrayBuffer=function(){this.reset()},g.ArrayBuffer.prototype.append=function(y){var m=v(this._buff.buffer,y,!0),S=m.length,b;for(this._length+=y.byteLength,b=64;b<=S;b+=64)a(this._hash,o(m.subarray(b-64,b)));return this._buff=b-64<S?new Uint8Array(m.buffer.slice(b-64)):new Uint8Array(0),this},g.ArrayBuffer.prototype.end=function(y){var m=this._buff,S=m.length,b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x,_;for(x=0;x<S;x+=1)b[x>>2]|=m[x]<<(x%4<<3);return this._finish(b,S),_=c(this._hash),y&&(_=p(_)),this.reset(),_},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 S=l(new Uint8Array(y)),b=c(S);return m?p(b):b},g})})(vJ);var XJe=vJ.exports;const qJe=Ai(XJe),ZJe=["lastShaderProgramBound","context","_openGLRenderWindow"];function QJe(t,e){e.classHierarchy.push("vtkShaderCache"),t.replaceShaderValues=(n,r,a)=>{let i=r;a.length>0&&(i=Xe.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=Xe.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=Xe.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=Xe.substitute(u,"varying","out").result,i=Xe.substitute(i,"varying","in").result;let f="",d=0;for(;i.includes(`gl_FragData[${d}]`);)i=Xe.substitute(i,`gl_FragData\\[${d}\\]`,`fragOutput${d}`).result,f+=`layout(location = ${d}) out vec4 fragOutput${d};
- `,d++;i=Xe.substitute(i,"//VTK::Output::Dec",f).result}const c=Xe.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=qJe.hash(i);if(!(o in e.shaderPrograms)){const s=Xe.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 JJe={lastShaderProgramBound:null,shaderPrograms:null,context:null};function gJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,JJe,n),e.shaderPrograms={},j.obj(t,e),j.setGet(t,e,ZJe),j.moveToProtected(t,e,["openGLRenderWindow"]),QJe(t,e)}const eet=j.newInstance(gJ,"vtkShaderCache");var tet={newInstance:eet,extend:gJ};const{vtkErrorMacro:net}=j;function ret(t,e){e.classHierarchy.push("vtkOpenGLTextureUnitManager"),t.deleteTable=()=>{for(let n=0;n<e.numberOfTextureUnits;++n)e.textureUnits[n]===!0&&net("some texture units were not properly released");e.textureUnits=[],e.numberOfTextureUnits=0},t.setContext=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<e.numberOfTextureUnits;++r)e.textureUnits[r]=!1}t.modified()}},t.allocate=()=>{for(let n=0;n<e.numberOfTextureUnits;n++)if(!t.isAllocated(n))return e.textureUnits[n]=!0,n;return-1},t.allocateUnit=n=>t.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;n<e.numberOfTextureUnits;++n)e.textureUnits[n]=!1}}const aet={context:null,numberOfTextureUnits:0,textureUnits:0};function yJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,aet,n),j.obj(t,e),e.textureUnits=[],j.get(t,e,["numberOfTextureUnits"]),j.setGet(t,e,["context"]),ret(t,e)}const iet=j.newInstance(yJ,"vtkOpenGLTextureUnitManager");var oet={newInstance:iet,extend:yJ};function set(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=()=>{j.vtkErrorMacro("not implemented")},t.getPixelData=(n,r,a,i)=>{j.vtkErrorMacro("not implemented")},t.createSelector=()=>{j.vtkErrorMacro("not implemented")}}const uet={size:void 0,selector:void 0};function mJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,uet,n),e.size||(e.size=[300,300]),j.getArray(t,e,["size"],2),j.get(t,e,["selector"]),dr.extend(t,e,n),set(t,e)}const cet=j.newInstance(mJ,"vtkRenderWindowViewNode");var SJ={newInstance:cet,extend:mJ};const fet="__getUnderlyingContext";function det(){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===fet)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:m4,vtkErrorMacro:S4}=j,het={position:"absolute",top:0,left:0,width:"100%",height:"100%"};function Ra(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 y_=0;const bJ=[];function pet(){y_++,bJ.forEach(t=>t(y_))}function vet(){y_--,bJ.forEach(t=>t(y_))}function b4(t){t.preventDefault()}function get(t,e){e.classHierarchy.push("vtkOpenGLRenderWindow");const n=det();t.getViewNodeFactory=()=>e.myFactory,e.canvas.addEventListener("webglcontextlost",b4,!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=oet.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&&S4("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,m4("using webgl2"))),c||(m4("using webgl1"),c=e.canvas.getContext("webgl",u)||e.canvas.getContext("experimental-webgl",u)),new Proxy(c,n)},t.restoreContext=()=>{const u=tu.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){S4("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 Dr.CHAR:case Dr.SIGNED_CHAR:case Dr.UNSIGNED_CHAR:return 1;case c:case f:case Dr.UNSIGNED_SHORT:case Dr.SHORT:case Dr.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 Dr.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&&Dr.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&&Dr.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 Dr.UNSIGNED_SHORT:case Dr.SHORT:case Dr.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 b=m.getContainer().getElementsByTagName("canvas");for(let x=0;x<b.length;x++){const _=b[x],C=_.getBoundingClientRect(),T=C.x-d.x,D=C.y-d.y;f.drawImage(_,T,D)}}})});const p=c.toDataURL(u);c.remove(),t.invokeImageReady(p)}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(v=>v*d):null},new Promise((v,p)=>{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:S,arg:b}=m;return S(b)}),t.traverseAllPasses(),e.el.removeChild(e._screenshot.placeHolder),e._screenshot.placeHolder.remove(),e._screenshot=null),v(y);else{const m=document.createElement("img");if(m.style=het,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 S=c!==!0;e._screenshot.cameras=e.renderable.getRenderers().map(b=>{const x=b.getActiveCamera(),_=x.get("focalPoint","position","parallelScale");return{resetCameraArgs:S?{renderer:b}:void 0,resetCameraFn:S?c:b.resetCamera,restoreParamsFn:x.set,arg:JSON.parse(JSON.stringify(_))}}),e._screenshot.cameras.forEach(b=>{let{resetCameraFn:x,resetCameraArgs:_}=b;return x(_)})}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"),v=u.getExtension("EXT_texture_filter_anisotropic")||u.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),p=[["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",v&&u.getParameter(v.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&&Ra(u,u.RGBA,u.UNSIGNED_BYTE)?"RGBA":"",c&&Ra(u,u.RGB,u.UNSIGNED_BYTE)?"RGB":"",c&&Ra(u,u.LUMINANCE,u.UNSIGNED_BYTE)?"LUMINANCE":"",c&&Ra(u,u.ALPHA,u.UNSIGNED_BYTE)?"ALPHA":"",c&&Ra(u,u.LUMINANCE_ALPHA,u.UNSIGNED_BYTE)?"LUMINANCE_ALPHA":""].join(" ")],["Supported Formats for Half Float Render Targets","HALF FLOAT RENDER TARGET FORMATS",[f&&Ra(u,u.RGBA,f.HALF_FLOAT_OES)?"RGBA":"",f&&Ra(u,u.RGB,f.HALF_FLOAT_OES)?"RGB":"",f&&Ra(u,u.LUMINANCE,f.HALF_FLOAT_OES)?"LUMINANCE":"",f&&Ra(u,u.ALPHA,f.HALF_FLOAT_OES)?"ALPHA":"",f&&Ra(u,u.LUMINANCE_ALPHA,f.HALF_FLOAT_OES)?"LUMINANCE_ALPHA":""].join(" ")],["Supported Formats for Full Float Render Targets","FLOAT RENDER TARGET FORMATS",[c&&Ra(u,u.RGBA,u.FLOAT)?"RGBA":"",c&&Ra(u,u.RGB,u.FLOAT)?"RGB":"",c&&Ra(u,u.LUMINANCE,u.FLOAT)?"LUMINANCE":"",c&&Ra(u,u.ALPHA,u.FLOAT)?"ALPHA":"",c&&Ra(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<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_FLOAT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_FLOAT).rangeMax,"</sup>)"].join("")],["Medium Float Precision in Vertex Shader","MEDIUM_FLOAT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_FLOAT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_FLOAT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_FLOAT).rangeMax,"</sup>)"].join("")],["Low Float Precision in Vertex Shader","LOW_FLOAT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_FLOAT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_FLOAT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_FLOAT).rangeMax,"</sup>)"].join("")],["High Float Precision in Fragment Shader","HIGH_FLOAT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_FLOAT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_FLOAT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_FLOAT).rangeMax,"</sup>)"].join("")],["Medium Float Precision in Fragment Shader","MEDIUM_FLOAT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_FLOAT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_FLOAT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_FLOAT).rangeMax,"</sup>)"].join("")],["Low Float Precision in Fragment Shader","LOW_FLOAT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_FLOAT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_FLOAT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_FLOAT).rangeMax,"</sup>)"].join("")],["High Int Precision in Vertex Shader","HIGH_INT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_INT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_INT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.HIGH_INT).rangeMax,"</sup>)"].join("")],["Medium Int Precision in Vertex Shader","MEDIUM_INT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_INT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_INT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.MEDIUM_INT).rangeMax,"</sup>)"].join("")],["Low Int Precision in Vertex Shader","LOW_INT VERTEX_SHADER",[u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_INT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_INT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.VERTEX_SHADER,u.LOW_INT).rangeMax,"</sup>)"].join("")],["High Int Precision in Fragment Shader","HIGH_INT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_INT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_INT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.HIGH_INT).rangeMax,"</sup>)"].join("")],["Medium Int Precision in Fragment Shader","MEDIUM_INT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_INT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_INT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.MEDIUM_INT).rangeMax,"</sup>)"].join("")],["Low Int Precision in Fragment Shader","LOW_INT FRAGMENT_SHADER",[u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_INT).precision," (-2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_INT).rangeMin,"</sup> - 2<sup>",u.getShaderPrecisionFormat(u.FRAGMENT_SHADER,u.LOW_INT).rangeMax,"</sup>)"].join("")],["Supported Extensions","EXTENSIONS",u.getSupportedExtensions().join("<br/> ")],["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(;p.length;){const[y,m,S]=p.pop();m&&(g[m]={label:y,value:S})}return e._glInformation=g,g},t.traverseAllPasses=()=>{if(e.renderPasses)for(let u=0;u<e.renderPasses.length;++u)e.renderPasses[u].traverse(t,null);e.notifyStartCaptureImage&&i()},t.disableCullFace=()=>{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=pJ.newInstance();return u.setOpenGLRenderWindow(t),u};function s(){e.canvas.removeEventListener("webglcontextlost",b4),e.canvas.removeEventListener("webglcontextrestored",t.restoreContext)}t.delete=j.chain(s,t.delete,t.setViewStream,vet),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 yet={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 met(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,yet,n),SJ.extend(t,e,n),e.canvas=document.createElement("canvas"),e.canvas.style.width="100%",pet(),e.selector||(e.selector=pJ.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=H7e.newInstance(),e.myFactory.registerOverride("vtkRenderWindow",wJ),e.shaderCache=tet.newInstance(),e.shaderCache.setOpenGLRenderWindow(t),e.renderPasses[0]=AJe.newInstance(),j.event(t,e,"imageReady"),j.get(t,e,["shaderCache","textureUnitManager","webgl2","useBackgroundImage","activeFramebuffer"]),j.setGet(t,e,["initialized","context","canvas","renderPasses","notifyStartCaptureImage","defaultToWebgl2","cursor","useOffScreen"]),j.setGetArray(t,e,["size"],2),j.event(t,e,"windowResizeEvent"),get(t,e)}const wJ=j.newInstance(met,"vtkOpenGLRenderWindow");N3("WebGL",wJ);const w2=["setBindGroup","setIndexBuffer","setVertexBuffer","draw","drawIndexed"];function bet(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<e.drawCallbacks.length;n++){const r=e.drawCallbacks[n],a=r.pipeline;t.setPipeline(a);for(let i=0;i<r.callbacks.length;i++)r.callbacks[i](t)}e.label&&e.handle.popDebugGroup(),e.handle.end(),e.boundPipeline=null},t.setPipeline=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.colorTextureViews.length;o++){const s=(a=e.colorTextureViews[o].getTexture())==null?void 0:a.getFormat();s&&s!==r.fragment.targets[o].format&&(console.log(`mismatched attachments for attachment ${o} on pipeline ${r.fragment.targets[o].format} while encoder has ${s}`),console.trace())}if(!e.depthTextureView!=!("depthStencil"in r))console.log("mismatched depth attachments"),console.trace();else if(e.depthTextureView){const o=(i=e.depthTextureView.getTexture())==null?void 0:i.getFormat();o&&o!==r.depthStencil.format&&(console.log(`mismatched depth attachments on pipeline ${r.depthStencil.format} while encoder has ${o}`),console.trace())}e.boundPipeline=n},t.replaceShaderCode=n=>{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<e.colorTextureViews.length;n++)e.description.colorAttachments[n]?e.description.colorAttachments[n].view=e.colorTextureViews[n].getHandle():e.description.colorAttachments[n]={view:e.colorTextureViews[n].getHandle()};e.depthTextureView&&(e.description.depthStencilAttachment.view=e.depthTextureView.getHandle())},t.registerDrawCallback=(n,r)=>{for(let a=0;a<e.drawCallbacks.length;a++)if(e.drawCallbacks[a].pipeline===n){e.drawCallbacks[a].callbacks.push(r);return}e.drawCallbacks.push({pipeline:n,callbacks:[r]})};for(let n=0;n<w2.length;n++)t[w2[n]]=function(){return e.handle[w2[n]](...arguments)}}const wet={description:null,handle:null,boundPipeline:null,pipelineHash:null,pipelineSettings:null,replaceShaderCodeFunction:null,depthTextureView:null,label:null};function _J(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,wet,n),qr(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<f32>","outColor");let i=a.getCode();i=Jt.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=[],Ja(t,e,["boundPipeline","colorTextureViews"]),zr(t,e,["depthTextureView","description","handle","label","pipelineHash","pipelineSettings","replaceShaderCodeFunction"]),bet(t,e)}const _et=Yn(_J,"vtkWebGPURenderEncoder");var Cl={newInstance:_et,extend:_J};function xet(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=Fs.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=Fs.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=Cl.newInstance({label:"OpaquePass"}),e.renderEncoder.setPipelineHash("op")}}const Cet={renderEncoder:null,colorTexture:null,depthTexture:null};function xJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Cet,n),tu.extend(t,e,n),j.get(t,e,["colorTexture","depthTexture"]),xet(t,e)}const Tet=j.newInstance(xJ,"vtkWebGPUOpaquePass");var Eet={newInstance:Tet,extend:xJ};const Met=`
- //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<i32> = vec2<i32>(i32(input.fragPos.x), i32(input.fragPos.y));
- var reveal: f32 = textureLoad(oitpAccumTexture, tcoord, 0).r;
- if (reveal == 1.0) { discard; }
- var tcolor: vec4<f32> = textureLoad(oitpColorTexture, tcoord, 0);
- var total: f32 = max(tcolor.a, 0.01);
- var computedColor: vec4<f32> = vec4<f32>(tcolor.r/total, tcolor.g/total, tcolor.b/total, 1.0 - reveal);
- //VTK::RenderEncoder::Impl
- return output;
- }
- `;function Det(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=Fs.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=Fs.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=rv.newInstance(),e.fullScreenQuad.setDevice(r.getDevice()),e.fullScreenQuad.setPipelineHash("oitpfsq"),e.fullScreenQuad.setTextureViews(e.translucentRenderEncoder.getColorTextureViews()),e.fullScreenQuad.setFragmentShaderTemplate(Met)}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=Cl.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<f32>","outColor"),a.addOutput("f32","outAccum"),a.addBuiltinInput("vec4<f32>","@builtin(position) fragPos");let i=a.getCode();i=Jt.substitute(i,"//VTK::RenderEncoder::Impl",["var w: f32 = computedColor.a * pow(0.1 + input.fragPos.z, 2.0);","output.outColor = vec4<f32>(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=Cl.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<f32>","outColor"),r.addBuiltinInput("vec4<f32>","@builtin(position) fragPos");let a=r.getCode();a=Jt.substitute(a,"//VTK::RenderEncoder::Impl",["output.outColor = vec4<f32>(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 ket={colorTextureView:null,depthTextureView:null};function CJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ket,n),tu.extend(t,e,n),j.setGet(t,e,["colorTextureView","depthTextureView"]),Det(t,e)}const Ret=j.newInstance(CJ,"vtkWebGPUOrderIndependentTranslucentPass");var Let={newInstance:Ret,extend:CJ};const yh={COMPOSITE_BLEND:0,MAXIMUM_INTENSITY_BLEND:1,MINIMUM_INTENSITY_BLEND:2,AVERAGE_INTENSITY_BLEND:3,ADDITIVE_INTENSITY_BLEND:4,RADON_TRANSFORM_BLEND:5},Oet=`
- //VTK::Renderer::Dec
- //VTK::Mapper::Dec
- //VTK::TCoord::Dec
- //VTK::Volume::TraverseDec
- //VTK::RenderEncoder::Dec
- //VTK::IOStructs::Dec
- fn getTextureValue(vTex: texture_3d<f32>, tpos: vec4<f32>) -> f32
- {
- // todo multicomponent support
- return textureSampleLevel(vTex, clampSampler, tpos.xyz, 0.0).r;
- }
- fn getGradient(vTex: texture_3d<f32>, tpos: vec4<f32>, vNum: i32, scalar: f32) -> vec4<f32>
- {
- var result: vec4<f32>;
- var tstep: vec4<f32> = volumeSSBO.values[vNum].tstep;
- result.x = getTextureValue(vTex, tpos + vec4<f32>(tstep.x, 0.0, 0.0, 1.0)) - scalar;
- result.y = getTextureValue(vTex, tpos + vec4<f32>(0.0, tstep.y, 0.0, 1.0)) - scalar;
- result.z = getTextureValue(vTex, tpos + vec4<f32>(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<f32> = 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<f32>, vNum: i32, cNum: i32, posSC: vec4<f32>, tfunRows: f32) -> vec4<f32>
- {
- var outColor: vec4<f32> = vec4<f32>(0.0, 0.0, 0.0, 0.0);
- // convert to tcoords and reject if outside the volume
- var tpos: vec4<f32> = 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<f32> =
- vec2<f32>(scalar * componentSSBO.values[cNum].cScale + componentSSBO.values[cNum].cShift,
- (0.5 + 2.0 * f32(vNum)) / tfunRows);
- var color: vec4<f32> = textureSampleLevel(tfunTexture, clampSampler, coord, 0.0);
- var gofactor: f32 = 1.0;
- var normal: vec4<f32> = vec4<f32>(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<f32>(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<f32>, tstep: vec4<f32>, numSteps: f32) -> vec2<f32>
- {
- var result: vec2<f32> = vec2<f32>(0.0, numSteps);
- var tpos2: vec4<f32> = 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<f32>
- {
- // how many rows (tfuns) do we have in our tfunTexture
- var tfunRows: f32 = f32(textureDimensions(tfunTexture).y);
- var coord: vec2<f32> =
- vec2<f32>(scalar * componentSSBO.values[cNum].cScale + componentSSBO.values[cNum].cShift,
- (0.5 + 2.0 * f32(vNum)) / tfunRows);
- var color: vec4<f32> = 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<f32>(color.rgb, opacity);
- }
- fn traverseMax(vTex: texture_3d<f32>, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>)
- {
- // convert to tcoords and reject if outside the volume
- var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance;
- var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*minPosSC;
- var tpos2: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC);
- var tstep: vec4<f32> = tpos2 - tpos;
- var rayBounds: vec2<f32> = adjustBounds(tpos, tstep, numSteps);
- // did we hit anything
- if (rayBounds.x >= rayBounds.y)
- {
- traverseVals[vNum] = vec4<f32>(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<f32>, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>)
- {
- // convert to tcoords and reject if outside the volume
- var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance;
- var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*minPosSC;
- var tpos2: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC);
- var tstep: vec4<f32> = tpos2 - tpos;
- var rayBounds: vec2<f32> = adjustBounds(tpos, tstep, numSteps);
- // did we hit anything
- if (rayBounds.x >= rayBounds.y)
- {
- traverseVals[vNum] = vec4<f32>(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<f32>, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>)
- {
- // convert to tcoords and reject if outside the volume
- var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance;
- var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*minPosSC;
- var tpos2: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC);
- var tstep: vec4<f32> = tpos2 - tpos;
- var rayBounds: vec2<f32> = adjustBounds(tpos, tstep, numSteps);
- // did we hit anything
- if (rayBounds.x >= rayBounds.y)
- {
- traverseVals[vNum] = vec4<f32>(0.0,0.0,0.0,0.0);
- return;
- }
- let ipRange: vec4<f32> = 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<f32>(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<f32>, vNum: i32, cNum: i32, rayLengthSC: f32, minPosSC: vec4<f32>, rayStepSC: vec4<f32>)
- {
- // convert to tcoords and reject if outside the volume
- var numSteps: f32 = rayLengthSC/mapperUBO.SampleDistance;
- var tpos: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*minPosSC;
- var tpos2: vec4<f32> = volumeSSBO.values[vNum].SCTCMatrix*(minPosSC + rayStepSC);
- var tstep: vec4<f32> = tpos2 - tpos;
- var rayBounds: vec2<f32> = adjustBounds(tpos, tstep, numSteps);
- // did we hit anything
- if (rayBounds.x >= rayBounds.y)
- {
- traverseVals[vNum] = vec4<f32>(0.0,0.0,0.0,0.0);
- return;
- }
- let ipRange: vec4<f32> = 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<f32>, rayStepSC: vec4<f32>) -> vec4<f32>
- {
- // initial ray position is at the beginning
- var rayPosSC: vec4<f32> = 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<f32> = vec4<f32>(0.0, 0.0, 0.0, 0.0);
- var sampleColor: vec4<f32>;
- //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<f32> = rendererUBO.PCSCMatrix*vec4<f32>(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<f32> = rendererUBO.PCSCMatrix*vec4<f32>(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<f32> = (maxPosSC - minPosSC)*(mapperUBO.SampleDistance/rayLengthSC);
- rayStepSC.w = 0.0;
- var computedColor: vec4<f32>;
- //VTK::Volume::Loop
- //VTK::RenderEncoder::Impl
- }
- return output;
- }
- `,La=new Float64Array(16),fu=new Float64Array(16);function Aet(t,e){e.classHierarchy.push("vtkWebGPUVolumePassFSQ"),t.replaceShaderPosition=(a,i,o)=>{const s=i.getShaderDescription("vertex");s.addBuiltinOutput("vec4<f32>","@builtin(position) Position");let l=s.getCode();l=Jt.substitute(l,"//VTK::Position::Impl",["output.tcoordVS = vec2<f32>(vertexBC.x * 0.5 + 0.5, 1.0 - vertexBC.y * 0.5 - 0.5);","output.Position = vec4<f32>(vertexBC, 1.0);"]).result,s.setCode(l),i.getShaderDescription("fragment").addBuiltinInput("vec4<f32>","@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<e.volumes.length;d++)e.volumes[d].getRenderable().getMapper().getBlendMode()===yh.COMPOSITE_BLEND?(u.push(` sampleColor = processVolume(volTexture${d}, ${d}, ${e.rowStarts[d]}, rayPosSC, tfunRows);`),u.push(` computedColor = vec4<f32>(
- 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<f32>(
- sampleColor.a * sampleColor.rgb * (1.0 - computedColor.a) + computedColor.rgb,
- (1.0 - computedColor.a)*sampleColor.a + computedColor.a);`));l=Jt.substitute(l,"//VTK::Volume::CompositeCalls",u).result,l=Jt.substitute(l,"//VTK::Volume::TraverseCalls",c).result,l=Jt.substitute(l,"//VTK::Volume::TraverseDec",[`var<private> traverseVals: array<vec4<f32>,${e.volumes.length}>;`]).result;let f=!1;for(let d=0;d<e.volumes.length;d++){const h=e.volumes[d].getRenderable().getMapper().getBlendMode();h===yh.COMPOSITE_BLEND?f=!0:h===yh.MAXIMUM_INTENSITY_BLEND?l=Jt.substitute(l,"//VTK::Volume::Loop",[` traverseMax(volTexture${d}, ${d}, ${d}, rayLengthSC, minPosSC, rayStepSC);`,` computedColor = traverseVals[${d}];`,"//VTK::Volume::Loop"]).result:h===yh.MINIMUM_INTENSITY_BLEND?l=Jt.substitute(l,"//VTK::Volume::Loop",[` traverseMin(volTexture${d}, ${d}, ${d}, rayLengthSC, minPosSC, rayStepSC);`,` computedColor = traverseVals[${d}];`,"//VTK::Volume::Loop"]).result:h===yh.AVERAGE_INTENSITY_BLEND?l=Jt.substitute(l,"//VTK::Volume::Loop",[` traverseAverage(volTexture${d}, ${d}, ${d}, rayLengthSC, minPosSC, rayStepSC);`,` computedColor = traverseVals[${d}];`,"//VTK::Volume::Loop"]).result:h===yh.ADDITIVE_INTENSITY_BLEND&&(l=Jt.substitute(l,"//VTK::Volume::Loop",[` traverseAdditive(volTexture${d}, ${d}, ${d}, rayLengthSC, minPosSC, rayStepSC);`,` computedColor = traverseVals[${d}];`,"//VTK::Volume::Loop"]).result)}f&&(l=Jt.substitute(l,"//VTK::Volume::Loop",[" computedColor = composite(rayLengthSC, minPosSC, rayStepSC);"]).result),s.setCode(l)},e.shaderReplacements.set("replaceShaderVolume",t.replaceShaderVolume),t.updateLUTImage=a=>{let i=t.getMTime();for(let f=0;f<e.volumes.length;f++){const d=e.volumes[f].getRenderable(),h=d.getMapper().getInputData();i=Math.max(i,d.getMTime(),h.getMTime())}if(i<e.lutBuildTime.getMTime())return;e.numRows=0,e.rowStarts=[];for(let f=0;f<e.volumes.length;f++){e.rowStarts.push(e.numRows);const h=e.volumes[f].getRenderable(),v=h.getMapper(),p=h.getProperty(),g=v.getInputData(),m=(g.getPointData()&&g.getPointData().getScalars()).getNumberOfComponents(),b=p.getIndependentComponents()?m:1;e.numRows+=b}const o=new Uint8ClampedArray(e.numRows*2*e.rowLength*4),s=new Float32Array(e.numRows*2*e.rowLength);let l=0;const u=new Float32Array(e.rowLength*3),c=e.rowLength;for(let f=0;f<e.volumes.length;f++){const h=e.volumes[f].getRenderable(),v=h.getMapper(),p=h.getProperty(),g=v.getInputData(),m=(g.getPointData()&&g.getPointData().getScalars()).getNumberOfComponents(),b=p.getIndependentComponents()?m:1;for(let x=0;x<b;++x){const _=p.getRGBTransferFunction(x),C=_.getRange();_.getTable(C[0],C[1],c,u,1);let T=l*c*4;for(let k=0;k<c;++k){o[T+k*4]=255*u[k*3],o[T+k*4+1]=255*u[k*3+1],o[T+k*4+2]=255*u[k*3+2],o[T+k*4+3]=255;for(let R=0;R<4;R++)o[T+(c+k)*4+R]=o[T+k*4+R]}const D=p.getScalarOpacity(x),M=e.sampleDist/p.getScalarOpacityUnitDistance(x),E=D.getRange();D.getTable(E[0],E[1],c,u,1),T=l*c;for(let k=0;k<c;++k)s[T+k]=1-(1-u[k])**M,s[T+k+c]=s[T+k];l+=2}}{const f={nativeArray:o,width:e.rowLength,height:e.numRows*2,depth:1,format:"rgba8unorm"},h=a.getTextureManager().getTexture(f).createView("tfunTexture");e.textureViews[2]=h}{const f={nativeArray:s,width:e.rowLength,height:e.numRows*2,depth:1,format:"r16float"},h=a.getTextureManager().getTexture(f).createView("ofunTexture");e.textureViews[3]=h}e.lutBuildTime.modified()},t.updateSSBO=a=>{let i=Math.max(t.getMTime(),e.WebGPURenderer.getStabilizedTime());for(let _=0;_<e.volumes.length;_++){const C=e.volumes[_].getRenderable(),T=C.getMapper(),D=T.getInputData();i=Math.max(i,C.getMTime(),D.getMTime(),T.getMTime())}if(i<e.SSBO.getSendTime())return;const o=e.WebGPURenderer.getStabilizedCenterByReference();e.SSBO.clearData(),e.SSBO.setNumberOfInstances(e.volumes.length);const s=new Float64Array(e.volumes.length*16),l=new Float64Array(e.volumes.length*16),u=new Float64Array(e.volumes.length*4),c=new Float64Array(e.volumes.length*4),f=new Float64Array(e.volumes.length*4),d=new Float64Array(e.volumes.length*4);for(let _=0;_<e.volumes.length;_++){const T=e.volumes[_].getRenderable(),D=T.getMapper(),M=D.getInputData();fn(La),pr(La,La,o);const E=T.getMatrix();Wn(fu,E),Ua(fu,fu),Yr(La,fu,La);const k=M.getWorldToIndex();Yr(La,k,La);const R=M.getDimensions();fn(fu),Nd(fu,fu,[1/R[0],1/R[1],1/R[2]]),Yr(La,fu,La);for(let V=0;V<16;V++)s[_*16+V]=La[V];Ua(La,La);for(let V=0;V<4;V++)l[_*16+V*4]=La[V*4],l[_*16+V*4+1]=La[V*4+1],l[_*16+V*4+2]=La[V*4+2],l[_*16+V*4+3]=0;u[_*4]=1/R[0],u[_*4+1]=1/R[1],u[_*4+2]=1/R[2],u[_*4+3]=1,c[_*4]=T.getProperty().getShade()?1:0;const O=M.getSpacing();f[_*4]=O[0],f[_*4+1]=O[1],f[_*4+2]=O[2],f[_*4+3]=1;const B=e.textureViews[_+4].getTexture().getScale(),$=D.getIpScalarRange();d[_*4]=$[0]/B,d[_*4+1]=$[1]/B,d[_*4+2]=D.getFilterMode()}e.SSBO.addEntry("SCTCMatrix","mat4x4<f32>"),e.SSBO.addEntry("planeNormals","mat4x4<f32>"),e.SSBO.addEntry("shade","vec4<f32>"),e.SSBO.addEntry("tstep","vec4<f32>"),e.SSBO.addEntry("spacing","vec4<f32>"),e.SSBO.addEntry("ipScalarRange","vec4<f32>"),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),v=new Float64Array(e.numRows),p=new Float64Array(e.numRows),g=new Float64Array(e.numRows),y=new Float64Array(e.numRows),m=new Float64Array(e.numRows),S=new Float64Array(e.numRows),b=new Float64Array(e.numRows);let x=0;for(let _=0;_<e.volumes.length;_++){const T=e.volumes[_].getRenderable(),D=T.getMapper(),M=T.getProperty(),E=D.getInputData(),R=(E.getPointData()&&E.getPointData().getScalars()).getNumberOfComponents(),O=M.getIndependentComponents(),B=e.textureViews[_+4].getTexture().getFormat(),$=jr.getDetailsFromTextureFormat(B),V=$.elementSize===2&&$.sampleType==="float",F={scale:[255],offset:[0]};V&&(F.scale[0]=1);for(let L=0;L<R;L++){const N=O?L:0,H=F.scale[L],Q=M.getScalarOpacity(N).getRange(),ie=H/(Q[1]-Q[0]),be=(F.offset[L]-Q[0])/(Q[1]-Q[0]);g[x]=be,p[x]=ie;const J=M.getRGBTransferFunction(N).getRange();if(v[x]=(F.offset[L]-J[0])/(J[1]-J[0]),h[x]=H/(J[1]-J[0]),M.getUseGradientOpacity(N)){const ee=M.getGradientOpacityMinimumOpacity(N),ce=M.getGradientOpacityMaximumOpacity(N);y[x]=ee,m[x]=ce;const ue=[M.getGradientOpacityMinimumValue(N),M.getGradientOpacityMaximumValue(N)];b[x]=H*(ce-ee)/(ue[1]-ue[0]),S[x]=-ue[0]*(ce-ee)/(ue[1]-ue[0])+ee}else y[x]=1,m[x]=1,b[x]=0,S[x]=1;x++}}e.componentSSBO.addEntry("cScale","f32"),e.componentSSBO.addEntry("cShift","f32"),e.componentSSBO.addEntry("oScale","f32"),e.componentSSBO.addEntry("oShift","f32"),e.componentSSBO.addEntry("goShift","f32"),e.componentSSBO.addEntry("goScale","f32"),e.componentSSBO.addEntry("gomin","f32"),e.componentSSBO.addEntry("gomax","f32"),e.componentSSBO.setAllInstancesFromArray("cScale",h),e.componentSSBO.setAllInstancesFromArray("cShift",v),e.componentSSBO.setAllInstancesFromArray("oScale",p),e.componentSSBO.setAllInstancesFromArray("oShift",g),e.componentSSBO.setAllInstancesFromArray("goScale",b),e.componentSSBO.setAllInstancesFromArray("goShift",S),e.componentSSBO.setAllInstancesFromArray("gomin",y),e.componentSSBO.setAllInstancesFromArray("gomax",m),e.componentSSBO.send(a)};const n=t.updateBuffers;t.updateBuffers=()=>{n();let a=e.volumes[0].getRenderable().getMapper().getSampleDistance();for(let i=0;i<e.volumes.length;i++){const l=e.volumes[i].getRenderable().getMapper().getSampleDistance();l<a&&(a=l)}e.sampleDist!==a&&(e.sampleDist=a,e.UBO.setValue("SampleDistance",a),e.UBO.sendIfNeeded(e.device));for(let i=0;i<e.volumes.length;i++){const u=e.volumes[i].getRenderable().getMapper().getInputData(),c=e.device.getTextureManager().getTextureForImageData(u);if(!e.textureViews[i+4]||e.textureViews[i+4].getTexture()!==c){const f=c.createView(`volTexture${i}`);e.textureViews[i+4]=f}}if(e.volumes.length<e.lastVolumeLength)for(let i=e.volumes.length;i<e.lastVolumeLength;i++)e.textureViews.pop();e.lastVolumeLength=e.volumes.length,t.updateLUTImage(e.device),t.updateSSBO(e.device),e.clampSampler||(e.clampSampler=A3.newInstance({label:"clampSampler"}),e.clampSampler.create(e.device,{minFilter:"linear",magFilter:"linear"}))},t.computePipelineHash=()=>{e.pipelineHash="volfsq";for(let a=0;a<e.volumes.length;a++){const i=e.volumes[a].getRenderable().getMapper().getBlendMode();e.pipelineHash+=`${i}`}},t.setVolumes=a=>{if(!e.volumes||e.volumes.length!==a.length){e.volumes=[...a],t.modified();return}for(let i=0;i<a.length;i++)if(a[i]!==e.volumes[i]){e.volumes=[...a],t.modified();return}};const r=t.getBindables;t.getBindables=()=>{const a=r();return a.push(e.componentSSBO),a.push(e.clampSampler),a}}const Net={volumes:null,rowLength:1024,lastVolumeLength:0};function TJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Net,n),rv.extend(t,e,n),e.fragmentShaderTemplate=Oet,e.UBO=bd.newInstance({label:"mapperUBO"}),e.UBO.addEntry("SampleDistance","f32"),e.SSBO=Kk.newInstance({label:"volumeSSBO"}),e.componentSSBO=Kk.newInstance({label:"componentSSBO"}),e.lutBuildTime={},j.obj(e.lutBuildTime,{mtime:0}),Aet(t,e)}const Vet=j.newInstance(TJ,"vtkWebGPUVolumePassFSQ");var Bet={newInstance:Vet,extend:TJ};const{Representation:$et}=Lv,{BufferUsage:w4,PrimitiveTypes:Iet}=Vc,_2=[[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]],Pet=`
- //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>(i32(input.fragPos.x), i32(input.fragPos.y)), 0));
- //VTK::RenderEncoder::Impl
- return output;
- }
- `,Fet=`
- //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<f32> = textureSample(volumePassColorTexture,
- volumePassColorTextureSampler, mapperUBO.tscale*input.tcoordVS);
- //VTK::RenderEncoder::Impl
- return output;
- }
- `;function zet(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=Bet.newInstance(),e.fullScreenQuad.setDevice(n.getDevice()),e.fullScreenQuad.setTextureViews([...e._depthRangeEncoder.getColorTextureViews()])),e._volumeCopyQuad||(e._volumeCopyQuad=rv.newInstance(),e._volumeCopyQuad.setPipelineHash("volpassfsq"),e._volumeCopyQuad.setDevice(n.getDevice()),e._volumeCopyQuad.setFragmentShaderTemplate(Fet),e._copyUBO=bd.newInstance({label:"mapperUBO"}),e._copyUBO.addEntry("tscale","vec2<f32>"),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;f<e.volumes.length;f++){const d=e.volumes[f].getRenderable().getBounds(),h=[.5*(d[1]+d[0]),.5*(d[3]+d[2]),.5*(d[5]+d[4])];s[f]=Oo(h,o)}const l=[...Array(e.volumes.length).keys()];l.sort((f,d)=>s[d]-s[f]);let u=[],c=l.length%i;for(let f=0;f<l.length;f++)u.push(e.volumes[l[f]]),u.length>=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=j.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:w4.Index,cells:o,numberOfPoints:i.getNumberOfPoints(),primitiveType:Iet.Triangles,representation:$et.SURFACE};const l=r.getDevice().getBufferManager().getBuffer(s);e._mapper.getVertexInput().setIndexBuffer(l),s={usage:w4.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.volumes.length;c++){const f=e.volumes[c].getMTime();(!e._lastMTimes[c]||f!==e._lastMTimes[c])&&(r=!0,e._lastMTimes[c]=f)}const a=n.getStabilizedTime();if((e._lastMTimes.length<=e.volumes.length||a!==e._lastMTimes[e.volumes.length])&&(r=!0,e._lastMTimes[e.volumes.length]=a),!r)return;const i=n.getStabilizedCenterByReference(),o=e.volumes.length*8,s=new Float64Array(o*3),l=e.volumes.length*12,u=new Uint16Array(l*4);for(let c=0;c<e.volumes.length;c++){e.volumes[c].getBoundingCubePoints(s,c*24);let f=c*12*4;const d=c*8;for(let h=0;h<12;h++)u[f++]=3,u[f++]=d+_2[h][0],u[f++]=d+_2[h][1],u[f++]=d+_2[h][2]}for(let c=0;c<s.length;c+=3)s[c]-=i[0],s[c+1]-=i[1],s[c+2]-=i[2];e._boundsPoly.getPoints().setData(s,3),e._boundsPoly.getPoints().modified(),e._boundsPoly.getPolys().setData(u,1),e._boundsPoly.getPolys().modified(),e._boundsPoly.modified()},t.drawDepthRange=(n,r)=>{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=Cl.newInstance({label:"VolumePass DepthRange"}),e._depthRangeEncoder.setPipelineHash("volr"),e._depthRangeEncoder.setReplaceShaderCodeFunction(o=>{const s=o.getShaderDescription("fragment");s.addOutput("vec4<f32>","outColor1"),s.addOutput("vec4<f32>","outColor2");let l=s.getCode();l=Jt.substitute(l,"//VTK::RenderEncoder::Impl",["output.outColor1 = vec4<f32>(input.fragPos.z, 0.0, 0.0, 0.0);","output.outColor2 = vec4<f32>(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=Fs.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=Fs.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=Fs.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=Cl.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=Cl.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=Cl.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<f32>","outColor");let i=a.getCode();i=Jt.substitute(i,"//VTK::RenderEncoder::Impl",["output.outColor = vec4<f32>(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;r<n.length;r++)if(n[r]!==e.volumes[r]){e.volumes=[...n],t.modified();return}}}const Get={colorTextureView:null,depthTextureView:null,volumes:null};function EJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Get,n),tu.extend(t,e,n),e._mapper=O3.newInstance(),e._mapper.setFragmentShaderTemplate(Pet),e._mapper.getShaderReplacements().set("replaceShaderVolumePass",(r,a,i)=>{a.getShaderDescription("fragment").addBuiltinInput("vec4<f32>","@builtin(position) fragPos")}),e._boundsPoly=Ta.newInstance(),e._lastMTimes=[],j.setGet(t,e,["colorTextureView","depthTextureView"]),zet(t,e)}const Uet=j.newInstance(EJ,"vtkWebGPUVolumePass");var Het={newInstance:Uet,extend:EJ};const Wet=`
- //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<f32> = clamp(textureSampleLevel(opaquePassColorTexture, finalPassSampler, input.tcoordVS, 0.0),vec4<f32>(0.0),vec4<f32>(1.0));
- //VTK::RenderEncoder::Impl
- return output;
- }
- `;function Ket(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=Eet.newInstance());const a=n.getRenderable().getNumberOfLayers(),i=n.getChildren();for(let o=0;o<a;o++)for(let s=0;s<i.length;s++){const l=i[s],u=n.getRenderable().getRenderers()[s];u.getDraw()&&u.getLayer()===o&&(e.opaqueActorCount=0,e.translucentActorCount=0,e.volumes=[],t.setCurrentOperation("queryPass"),l.traverse(t),t.setCurrentOperation("cameraPass"),l.traverse(t),e.opaquePass.traverse(l,n),e.translucentActorCount>0&&(e.translucentPass||(e.translucentPass=Let.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=Het.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=Cl.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=A3.newInstance({label:"finalPassSampler"}),e._fsqSampler.create(n.getDevice(),{minFilter:"linear",magFilter:"linear"}),e._fullScreenQuad=rv.newInstance(),e._fullScreenQuad.setDevice(n.getDevice()),e._fullScreenQuad.setPipelineHash("fpfsq"),e._fullScreenQuad.setTextureViews([e.opaquePass.getColorTextureView()]),e._fullScreenQuad.setAdditionalBindables([e._fsqSampler]),e._fullScreenQuad.setFragmentShaderTemplate(Wet),e._finalBlitOutputTextureView=IQ.newInstance(),e._finalBlitEncoder.setColorTextureView(0,e._finalBlitOutputTextureView)},t.incrementOpaqueActorCount=()=>e.opaqueActorCount++,t.incrementTranslucentActorCount=()=>e.translucentActorCount++,t.addVolume=n=>{e.volumes.push(n)}}const jet={opaqueActorCount:0,translucentActorCount:0,volumes:null,opaqueRenderEncoder:null,translucentPass:null,volumePass:null};function MJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,jet,n),tu.extend(t,e,n),j.setGet(t,e,["opaquePass","translucentPass","volumePass"]),Ket(t,e)}const Yet=j.newInstance(MJ,"vtkForwardPass");var Xet={newInstance:Yet,extend:MJ};const{VtkDataTypes:tf}=_n;function qet(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 tf.UNSIGNED_CHAR:a.format+="8unorm";break;case tf.FLOAT:case tf.UNSIGNED_INT:case tf.INT:case tf.DOUBLE:case tf.UNSIGNED_SHORT:case tf.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=Fs.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 Zet={handle:null,device:null};function DJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Zet,n),j.obj(t,e),j.setGet(t,e,["device"]),qet(t,e)}const Qet=j.newInstance(DJ);var Jet={newInstance:Qet,extend:DJ};class ett 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 ttt(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<n.entries.length;i++){const o=n.entries[i];o.binding=o.binding||0,o.visibility=o.visibility||GPUShaderStage.VERTEX|GPUShaderStage.FRAGMENT}const r=JSON.stringify(n);for(let i=0;i<e.bindGroupLayouts.length;i++)if(e.bindGroupLayouts[i].sval===r)return e.bindGroupLayouts[i].layout;const a=e.handle.createBindGroupLayout(n);return e.bindGroupLayouts.push({sval:r,layout:a}),a},t.getBindGroupLayoutDescription=n=>{for(let r=0;r<e.bindGroupLayouts.length;r++)if(e.bindGroupLayouts[r].layout===n)return e.bindGroupLayouts[r].sval;return vtkErrorMacro("layout not found"),console.trace(),null},t.getPipeline=n=>n 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;s<i;s++)o[s-2]=arguments[s];const l=r(...o);return e.objectCache.setValue(n,l),l}}const ntt={handle:null,pipelines:null,shaderCache:null,bindGroupLayouts:null,bufferManager:null,textureManager:null};function kJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ntt,n),qr(t,e),zr(t,e,["handle"]),Ja(t,e,["bufferManager","shaderCache","textureManager"]),e.objectCache=new ett,e.shaderCache=Jt.newInstance(),e.shaderCache.setDevice(t),e.bindGroupLayouts=[],e.bufferManager=Vc.newInstance(),e.bufferManager.setDevice(t),e.textureManager=Jet.newInstance(),e.textureManager.setDevice(t),e.pipelines={},ttt(t,e)}const rtt=Yn(kJ,"vtkWebGPUDevice");var att={newInstance:rtt,extend:kJ};function itt(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=Fs.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=Fs.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=Cl.newInstance({label:"HardwareSelectionPass"}),e.selectionRenderEncoder.setPipelineHash("sel"),e.selectionRenderEncoder.setReplaceShaderCodeFunction(r=>{const a=r.getShaderDescription("fragment");a.addOutput("vec4<u32>","outColor");let i=a.getCode();i=Jt.substitute(i,"//VTK::RenderEncoder::Impl",["output.outColor = vec4<u32>(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 ott={selectionRenderEncoder:null,colorTexture:null,depthTexture:null};function RJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ott,n),tu.extend(t,e,n),j.get(t,e,["colorTexture","depthTexture"]),itt(t,e)}const stt=j.newInstance(RJ,"vtkWebGPUHardwareSelectionPass");var ltt={newInstance:stt,extend:RJ};const{SelectionContent:utt,SelectionField:_4}=yC,{FieldAssociations:x4}=Zd,{vtkErrorMacro:LJ}=j;function ctt(t){return`${t.propID} ${t.compositeID}`}function C4(t,e,n,r){const a=((n.height-e-1)*n.colorBufferWidth+t)*4+r;return n.colorValues[a]}function Kh(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=C4(e[0],e[1],t,0);if(l<=0)return null;const u={};u.propID=l;let c=C4(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=Kh(t,e,0,r);if(s)return s;for(let l=1;l<a;++l){for(let u=i[1]>l?i[1]-l:0;u<=i[1]+l;++u)if(o[1]=u,i[0]>=l&&(o[0]=i[0]-l,s=Kh(t,o,0,r),s)||(o[0]=i[0]+l,s=Kh(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=Kh(t,o,0,r),s)||(o[1]=i[1]+l,s=Kh(t,o,0,r),s))return s}return r[0]=e[0],r[1]=e[1],null}function ftt(t,e,n){const r=[];let a=0;return e.forEach((i,o)=>{const s=yC.newInstance();switch(s.setContentType(utt.INDICES),t){case x4.FIELD_ASSOCIATION_CELLS:s.setFieldType(_4.CELL);break;case x4.FIELD_ASSOCIATION_POINTS:s.setFieldType(_4.POINT);break;default:LJ("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 dtt(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 v=Kh(t,[d,f],0,c);if(v){const p=ctt(v);if(!u.has(p))u.set(p,{info:v,pixelCount:1,attributeIDs:[v.attributeID]});else{const g=u.get(p);g.pixelCount++,t.captureZValues&&v.zValue<g.info.zValue&&(g.info=v),g.attributeIDs.indexOf(v.attributeID)===-1&&g.attributeIDs.push(v.attributeID)}}}return ftt(t.fieldAssociation,u,t)}function htt(t,e){e.classHierarchy.push("vtkWebGPUHardwareSelector"),t.endSelection=()=>{e.WebGPURenderer.setSelector(null)},t.getSourceDataAsync=async n=>{if(!n||!e._WebGPURenderWindow)return LJ("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=av.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=av.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,v,p,g)=>dtt(l,h,v,p,g),l}}const ptt={};function OJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ptt,n),oJ.extend(t,e,n),e._selectionPass=ltt.newInstance(),j.setGet(t,e,["_WebGPURenderWindow"]),j.moveToProtected(t,e,["WebGPURenderWindow"]),htt(t,e)}const vtt=j.newInstance(OJ,"vtkWebGPUHardwareSelector");var AJ={newInstance:vtt,extend:OJ};const{vtkErrorMacro:T4}=j,gtt={position:"absolute",top:0,left:0,width:"100%",height:"100%"};function ytt(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){T4("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&&T4("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=att.newInstance(),e.device.initialize(await e.adapter.requestDevice()),e.deleted){e.device=null;return}e.context=e.canvas.getContext("webgpu")}},t.releaseGraphicsResources=()=>{const o=tu.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(p=>{p.getViewProps().forEach(y=>{if(y.getContainer){const S=y.getContainer().getElementsByTagName("canvas");for(let b=0;b<S.length;b++){const x=S[b],_=x.getBoundingClientRect(),C=_.x-f.x,T=_.y-f.y;l.drawImage(x,C,T)}}})});const v=s.toDataURL(o);s.remove(),t.invokeImageReady(v)}t.captureNextImage=function(){let o=arguments.length>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(v=>{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(p=>{let{restoreParamsFn:g,arg:y}=p;return g(y)}),t.traverseAllPasses(),e.el.removeChild(e._screenshot.placeHolder),e._screenshot.placeHolder.remove(),e._screenshot=null),f(v);else{const p=document.createElement("img");if(p.style=gtt,p.src=v,e._screenshot.placeHolder=e.el.appendChild(p),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(),S=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(S))}}),e._screenshot.cameras.forEach(y=>{let{resetCameraFn:m,resetCameraArgs:S}=y;return m(S)})}t.traverseAllPasses()}})})},t.traverseAllPasses=()=>{if(!e.deleted)if(e.initialized){if(e.renderPasses)for(let o=0;o<e.renderPasses.length;++o)e.renderPasses[o].traverse(t,null);e.commandEncoder&&(e.device.submitCommandEncoder(e.commandEncoder),e.commandEncoder=null,e.notifyStartCaptureImage&&e.device.onSubmittedWorkDone().then(()=>{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<e.children.length;s++){const l=e.children[s].getPropFromID(o);if(l!==null)return l}return null},t.getPixelsAsync=async()=>{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=av.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<l.height;h++)for(let v=0;v<l.width;v++){const p=(h*l.width+v)*4,g=(h*l.colorBufferWidth+v)*4;d[p]=255*Io.fromHalf(l.colorValues[g]),d[p+1]=255*Io.fromHalf(l.colorValues[g+1]),d[p+2]=255*Io.fromHalf(l.colorValues[g+2]),d[p+3]=255*Io.fromHalf(l.colorValues[g+3])}return l.colorValues=d,l},t.createSelector=()=>{const o=AJ.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=j.chain(t.delete,t.setViewStream)}const mtt={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 Stt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,mtt,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",SJ.extend(t,e,n),e.myFactory=rqe.newInstance(),e.myFactory.registerOverride("vtkRenderWindow",NJ),e.renderPasses[0]=Xet.newInstance(),e.selector||(e.selector=AJ.newInstance(),e.selector.setWebGPURenderWindow(t)),j.event(t,e,"imageReady"),j.event(t,e,"initialized"),j.get(t,e,["commandEncoder","device","presentationFormat","useBackgroundImage","xrSupported"]),j.setGet(t,e,["initialized","context","canvas","device","renderPasses","notifyStartCaptureImage","cursor","useOffScreen"]),j.setGetArray(t,e,["size"],2),j.event(t,e,"windowResizeEvent"),ytt(t,e)}const NJ=j.newInstance(Stt,"vtkWebGPURenderWindow");N3("WebGPU",NJ);const btt=eJ.extractURLParameters();function wtt(t,e){const n=t.invokeResize;delete t.invokeResize,e.renderWindow=jQ.newInstance(),e.renderer=HQ.newInstance(),e.renderWindow.addRenderer(e.renderer),e._apiSpecificRenderWindow=e.renderWindow.newAPISpecificView(btt.viewAPI??e.defaultViewAPI),e.renderWindow.addView(e._apiSpecificRenderWindow),e.interactor=B3.newInstance(),e.interactor.setInteractorStyle(JQ.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=j.chain(t.setContainer,e._apiSpecificRenderWindow.delete,t.delete),e.listenWindowResize&&window.addEventListener("resize",t.resize),t.resize()}const _tt={background:[.32,.34,.43],listenWindowResize:!0,container:null};function VJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,_tt,n),j.obj(t,e),j.get(t,e,["renderWindow","renderer","_apiSpecificRenderWindow","interactor","container"]),j.moveToProtected(t,e,["_apiSpecificRenderWindow"]),j.event(t,e,"resize"),wtt(t,e)}const xtt=j.newInstance(VJ);var Ctt={newInstance:xtt,extend:VJ};function Ttt(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 Ett=`.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;
- }
- `,sS={rootContainer:"RenderWindowWithControlBar-module_rootContainer__1xqVd",renderWindow:"RenderWindowWithControlBar-module_renderWindow__2mz6Z",control:"RenderWindowWithControlBar-module_control__38_dI"};Ttt(Ett);const Mtt={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 Dtt(t,e,n){const r=Mtt[e](n);Object.keys(r).forEach(a=>{t.style[a]=r[a]})}function ktt(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`,Dtt(e.controlContainer,e.controlPosition,e.controlSize)}e.renderWindowContainer=document.createElement("div"),e.renderWindowContainer.classList.add(sS.renderWindow),n.setContainer(e.renderWindowContainer),e.controlContainer=document.createElement("div"),e.controlContainer.classList.add(sS.control),t.setContainer=i=>{e.rootContainer&&(e.rootContainer.removeChild(e.container),e.rootContainer.removeChild(e.controlContainer),e.rootContainer.classList.remove(sS.rootContainer)),e.rootContainer=i,e.rootContainer&&(e.rootContainer.appendChild(e.container),e.rootContainer.appendChild(e.controlContainer),e.rootContainer.classList.add(sS.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 Rtt={rootContainer:null,controlPosition:"left",controlSize:10};function Ltt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Rtt,n),Ctt.extend(t,e),j.get(t,e,["rootContainer","controlContainer","renderWindowContainer"]),ktt(t,e)}j.newInstance(Ltt,"vtkRenderWindowWithControlBar");const Ott=eJ.extractURLParameters(),Att={margin:"0",padding:"0",position:"absolute",top:"0",left:"0",width:"100%",height:"100%",overflow:"hidden"},Ntt={position:"absolute",left:"25px",top:"25px",backgroundColor:"white",borderRadius:"5px",listStyle:"none",padding:"5px 10px",margin:"0",display:"block",border:"solid 1px black",maxWidth:"calc(100% - 70px)",maxHeight:"calc(100% - 60px)",overflow:"auto"};function E4(t,e){Object.keys(e).forEach(n=>{t.style[n]=e[n]})}function Vtt(t,e){e.classHierarchy.push("vtkFullScreenRenderWindow");const n=document.querySelector("body");e.rootContainer||(e.rootContainer=n),e.container||(e.container=document.createElement("div"),E4(e.container,e.containerStyle||Att),e.rootContainer.appendChild(e.container)),e.rootContainer===n&&(document.documentElement.style.height="100%",n.style.height="100%",n.style.padding="0",n.style.margin="0"),e.renderWindow=jQ.newInstance(),e.renderer=HQ.newInstance(),e.renderWindow.addRenderer(e.renderer),e.apiSpecificRenderWindow=e.renderWindow.newAPISpecificView(Ott.viewAPI??e.defaultViewAPI),e.apiSpecificRenderWindow.setContainer(e.container),e.renderWindow.addView(e.apiSpecificRenderWindow),e.interactor=B3.newInstance(),e.interactor.setInteractorStyle(JQ.newInstance()),e.interactor.setView(e.apiSpecificRenderWindow),e.interactor.initialize(),e.interactor.bindEvents(e.container),t.setBackground=e.renderer.setBackground,t.removeController=()=>{const r=e.controlContainer;r&&r.parentNode.removeChild(r)},t.setControllerVisibility=r=>{e.controllerVisibility=r,e.controlContainer&&(r?e.controlContainer.style.display="block":e.controlContainer.style.display="none")},t.toggleControllerVisibility=()=>{t.setControllerVisibility(!e.controllerVisibility)},t.addController=r=>{e.controlContainer=document.createElement("div"),E4(e.controlContainer,e.controlPanelStyle||Ntt),e.rootContainer.appendChild(e.controlContainer),e.controlContainer.innerHTML=r,t.setControllerVisibility(e.controllerVisibility),e.rootContainer.addEventListener("keypress",a=>{String.fromCharCode(a.charCode)==="c"&&t.toggleControllerVisibility()})},t.setBackground(...e.background),t.addRepresentation=r=>{r.getActors().forEach(a=>{e.renderer.addActor(a)})},t.removeRepresentation=r=>{r.getActors().forEach(a=>e.renderer.removeActor(a))},t.delete=j.chain(t.setContainer,e.apiSpecificRenderWindow.delete,t.delete),t.resize=()=>{const r=e.container.getBoundingClientRect(),a=window.devicePixelRatio||1;e.apiSpecificRenderWindow.setSize(Math.floor(r.width*a),Math.floor(r.height*a)),e.resizeCallback&&e.resizeCallback(r),e.renderWindow.render()},t.setResizeCallback=r=>{e.resizeCallback=r,t.resize()},e.listenWindowResize&&window.addEventListener("resize",t.resize),t.resize()}const Btt={background:[.32,.34,.43],containerStyle:null,controlPanelStyle:null,listenWindowResize:!0,resizeCallback:null,controllerVisibility:!0};function BJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Btt,n),j.obj(t,e),j.get(t,e,["renderWindow","renderer","apiSpecificRenderWindow","interactor","rootContainer","container","controlContainer"]),Vtt(t,e)}const $tt=j.newInstance(BJ);var Itt={newInstance:$tt,extend:BJ};const F3={};function $J(t){return!!F3[t]}function Ptt(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"http",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F3[t](e)}function IJ(t,e){F3[t]=e}var Ftt={get:Ptt,has:$J,registerType:IJ};const ztt={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 x2(t,e,n){let r=0;function a(i){return i.split(" ").forEach(o=>{o.length&&(t[r++]=Number(o))}),r<t.length?!0:(e(t,n),!1)}return a}const Gtt={DATASET:{init(t,e){const n=t.split(" ")[1];switch(n){case"UNSTRUCTURED_GRID":e.dataset=Ta.newInstance();break;default:console.error(`Dataset of type ${n} not supported`)}return!1},parse(t,e){return!1}},POINTS:{init(t,e){const[n,r,a]=t.split(" "),i=a==="float"?new Float32Array(3*Number(r)):new Float64Array(3*Number(r)),o=e.dataset.getPoints();return o.setName(n),e.arrayHandler=x2(i,o.setData,3),!0},parse(t,e){return e.arrayHandler(t)}},CELLS:{init(t,e){const[n,r,a]=t.split(" "),i=e.dataset.getPolys();return i.set({numberOfCells:Number(r)},!0),e.arrayHandler=x2(new Uint32Array(Number(a)),i.setData,1),!0},parse(t,e){return e.arrayHandler(t)}},POINT_DATA:{init(t,e){return e.POINT_DATA=Number(t.split(" ")[1]),e.activeFieldLocation="POINT_DATA",!1},parse(t,e){return!1}},SCALARS:{init(t,e){e.scalars||(e.scalars=new Map);const[n,r,a]=t.split(" "),i=1,o=new ztt[a](e.POINT_DATA),s=_n.newInstance({name:r,size:e.POINT_DATA});return e.scalars.set(r,o),e.arrayHandler=x2(o,s.setData,i),!0},parse(t,e){return t.split(" ")[0]==="LOOKUP_TABLE"?!0:e.arrayHandler(t)}}};function Utt(t,e){const n=t.split(" ");return Gtt[n[0]]}function Htt(t){let e=arguments.length>1&&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=Utt(o),!n)return;n=n.init(o,e)?n:null;return}n&&!n.parse(o,e)&&(n=null)}}),e}var Wtt={parseLegacyASCII:Htt};function PJ(){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 Ktt=PJ();function jtt(t,e){if(e<2)return;const n=new Int8Array(t),r=n.length,a=[];for(let i=0;i<r;i+=e){for(let o=0;o<e;o++)a.push(n[i+o]);for(let o=0;o<e;o++)n[i+o]=a.pop()}}var C2={ENDIANNESS:Ktt,getEndianness:PJ,swapBytes:jtt};const{vtkErrorMacro:FJ,vtkDebugMacro:Ytt}=j,z3=()=>(FJ("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 iv=0;function mC(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 Xtt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new Promise((n,r)=>{const a=mC("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 qtt(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r&&r.compression?z3():n.ref&&!n.ref.pending?new Promise((a,i)=>{const o=[e,n.ref.basepath,n.ref.id].join("/"),s=mC("GET",o,r);s.onreadystatechange=l=>{s.readyState===1&&(n.ref.pending=!0,++iv===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):(C2.ENDIANNESS!==n.ref.encode&&C2.ENDIANNESS&&(Ytt(`Swap bytes of ${n.name}`),C2.swapBytes(n.buffer,gZ[n.dataType])),n.values=j.newTypedArray(n.dataType,n.buffer)),n.values.length!==n.size&&FJ(`Error in FetchArray: ${n.name}, does not have the proper array size. Got ${n.values.length}, instead of ${n.size}`),delete n.ref,--iv===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 Ztt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n&&n.compression?z3():new Promise((r,a)=>{const i=mC("GET",e,n);i.onreadystatechange=o=>{i.readyState===1&&++iv===1&&t!=null&&t.invokeBusy&&t.invokeBusy(!0),i.readyState===4&&(--iv===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 Qtt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n&&n.compression?z3():new Promise((r,a)=>{const i=mC("GET",e,n);i.onreadystatechange=o=>{i.readyState===1&&++iv===1&&t!=null&&t.invokeBusy&&t.invokeBusy(!0),i.readyState===4&&(--iv===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 Jtt(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 ent={fetchArray:qtt,fetchJSON:Ztt,fetchText:Qtt,fetchBinary:Xtt,fetchImage:Jtt};$J("http")||IJ("http",t=>ent);function tnt(t,e){e.classHierarchy.push("vtkUnstructuredDataReader"),e.dataAccessHelper||(e.dataAccessHelper=Ftt.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=Wtt.parseLegacyASCII(e.parseData),e.output[0]=e.dataModel.dataset,e.output[1]=e.dataModel.scalars}},t.requestData=(r,a)=>{t.parseAsText(e.parseData)}}const nnt={};function zJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,nnt,n),j.obj(t,e),j.get(t,e,["url","baseURL"]),j.setGet(t,e,["dataAccessHelper"]),j.algo(t,e,0,1),tnt(t,e),e.compression||(e.compression=null),e.progressCallback||(e.progressCallback=null)}const rnt=j.newInstance(zJ,"vtkUnstructuredDataReader");var GJ={newInstance:rnt,extend:zJ};class ant{constructor(){this.aid=5,this.step,this.stepsum=10,this._url="http://192.168.0.131:8187/TransServlet?channelNo=service&clientToken=e47b87eec69545559d1e81e56626da68&userId=5f06c8bc77234f969d13e160b54c27e3&aid=",this.polydata,this.scalars=new Array,this.scalar=new Map,this.reader=GJ.newInstance()}async initGemetry(){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.push(n)})}async getScalrsByStep(e){this.step=e;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})}}function int(){return new ant}const ont={RGB:0,HSV:1,LAB:2,DIVERGING:3},snt={LINEAR:0,LOG10:1};var UJ={ColorSpace:ont,Scale:snt};const{ColorSpace:xo,Scale:HJ}=UJ,{ScalarMappingTarget:lS}=pC,{vtkDebugMacro:lnt,vtkErrorMacro:ll,vtkWarningMacro:unt}=j;function M4(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 cnt(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 D4(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 fnt(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 k4(t,e,n,r){const a=[],i=[];op(e,a),op(n,i);const o=[],s=[];M4(a,o),M4(i,s);let l=t;if(o[1]>.05&&s[1]>.05&&fnt(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]=D4(s,o[0]):s[1]<.05&&o[1]>.05&&(s[2]=D4(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=[];cnt(u,c),$k(c,r)}function dnt(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 ll("Midpoint outside range [0.0, 1.0]"),-1;if(s<0||s>1)return ll("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(;u<e.nodes.length&&e.nodes[u].x!==n;u++);return u<e.nodes.length?u:-1},t.addHSVPoint=(n,r,a,i)=>t.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 Hh([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&&e.nodes[r].x!==n;r++);const a=r;if(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.length;a++)if(e.nodes[a].x===n){e.nodes[a].x=r,t.sortAndUpdateRange();break}}},t.removeAllPoints=()=>{e.nodes=[],t.sortAndUpdateRange()},t.addRGBSegment=(n,r,a,i,o,s,l,u)=>{t.sortAndUpdateRange();for(let c=0;c<e.nodes.length;)e.nodes[c].x>=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=[];Hh(c,d),Hh(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(s_(o)||s_(s)){for(let D=0;D<a;D++)i[D*3+0]=e.nanColor[0],i[D*3+1]=e.nanColor[1],i[D*3+2]=e.nanColor[2];return}let l=0;const u=e.nodes.length;let c=0,f=0,d=0;u!==0&&(c=e.nodes[u-1].r,f=e.nodes[u-1].g,d=e.nodes[u-1].b);let h=0,v=0,p=0;const g=[0,0,0],y=[0,0,0];let m=0,S=0;const b=[];let x=e.scale===HJ.LOG10;x&&(x=e.mappingRange[0]>0);let _=0,C=0,T=0;x&&(_=Math.log10(o),C=Math.log10(s));for(let D=0;D<a;D++){const M=3*D;if(a>1?x?(T=_+D/(a-1)*(C-_),h=10**T):h=o+D/(a-1)*(s-o):x?(T=.5*(_+C),h=10**T):h=.5*(o+s),e.discretize){const E=e.mappingRange;if(h>=E[0]&&h<=E[1]){const k=e.numberOfValues,R=E[1]-E[0];if(k<=1)h=E[0]+R/2;else{const O=(h-E[0])/R,B=M9e(k*O);h=E[0]+B/(k-1)*R}}}for(;l<u&&h>e.nodes[l].x;)l++,l<u&&(v=e.nodes[l-1].x,p=e.nodes[l].x,x&&(v=Math.log10(v),p=Math.log10(p)),g[0]=e.nodes[l-1].r,y[0]=e.nodes[l].r,g[1]=e.nodes[l-1].g,y[1]=e.nodes[l].g,g[2]=e.nodes[l-1].b,y[2]=e.nodes[l].b,m=e.nodes[l-1].midpoint,S=e.nodes[l-1].sharpness,m<1e-5&&(m=1e-5),m>.99999&&(m=.99999));if(h>e.mappingRange[1])i[M]=0,i[M+1]=0,i[M+2]=0,e.clamping&&(t.getUseAboveRangeColor()?(i[M]=e.aboveRangeColor[0],i[M+1]=e.aboveRangeColor[1],i[M+2]=e.aboveRangeColor[2]):(i[M]=c,i[M+1]=f,i[M+2]=d));else if(h<e.mappingRange[0]||I9e(h)&&h<0)i[M]=0,i[M+1]=0,i[M+2]=0,e.clamping&&(t.getUseBelowRangeColor()?(i[M]=e.belowRangeColor[0],i[M+1]=e.belowRangeColor[1],i[M+2]=e.belowRangeColor[2]):u>0&&(i[M]=e.nodes[0].r,i[M+1]=e.nodes[0].g,i[M+2]=e.nodes[0].b));else if(l===0&&(Math.abs(h-o)<1e-6||e.discretize))u>0?(i[M]=e.nodes[0].r,i[M+1]=e.nodes[0].g,i[M+2]=e.nodes[0].b):(i[M]=0,i[M+1]=0,i[M+2]=0);else{let E=0;if(x?E=(T-v)/(p-v):E=(h-v)/(p-v),E<m?E=.5*E/m:E=.5+.5*(E-m)/(1-m),S>.99)if(E<.5){i[M]=g[0],i[M+1]=g[1],i[M+2]=g[2];continue}else{i[M]=y[0],i[M+1]=y[1],i[M+2]=y[2];continue}if(S<.01){if(e.colorSpace===xo.RGB)i[M]=(1-E)*g[0]+E*y[0],i[M+1]=(1-E)*g[1]+E*y[1],i[M+2]=(1-E)*g[2]+E*y[2];else if(e.colorSpace===xo.HSV){const N=[],H=[];z1(g,N),z1(y,H),e.hSVWrap&&(N[0]-H[0]>.5||H[0]-N[0]>.5)&&(N[0]>H[0]?N[0]-=1:H[0]-=1);const K=[];K[0]=(1-E)*N[0]+E*H[0],K[0]<0&&(K[0]+=1),K[1]=(1-E)*N[1]+E*H[1],K[2]=(1-E)*N[2]+E*H[2],Hh(K,b),i[M]=b[0],i[M+1]=b[1],i[M+2]=b[2]}else if(e.colorSpace===xo.LAB){const N=[],H=[];op(g,N),op(y,H);const K=[];K[0]=(1-E)*N[0]+E*H[0],K[1]=(1-E)*N[1]+E*H[1],K[2]=(1-E)*N[2]+E*H[2],$k(K,b),i[M]=b[0],i[M+1]=b[1],i[M+2]=b[2]}else e.colorSpace===xo.DIVERGING?(k4(E,g,y,b),i[M]=b[0],i[M+1]=b[1],i[M+2]=b[2]):ll("ColorSpace set to invalid value.",e.colorSpace);continue}E<.5?E=.5*(E*2)**(1+10*S):E>.5&&(E=1-.5*((1-E)*2)**(1+10*S));const k=E*E,R=k*E,O=2*R-3*k+1,B=-2*R+3*k,$=R-2*k+E,V=R-k;let F,L;if(e.colorSpace===xo.RGB)for(let N=0;N<3;N++)F=y[N]-g[N],L=(1-S)*F,i[M+N]=O*g[N]+B*y[N]+$*L+V*L;else if(e.colorSpace===xo.HSV){const N=[],H=[];z1(g,N),z1(y,H),e.hSVWrap&&(N[0]-H[0]>.5||H[0]-N[0]>.5)&&(N[0]>H[0]?N[0]-=1:H[0]-=1);const K=[];for(let Q=0;Q<3;Q++)F=H[Q]-N[Q],L=(1-S)*F,K[Q]=O*N[Q]+B*H[Q]+$*L+V*L,Q===0&&K[Q]<0&&(K[Q]+=1);Hh(K,b),i[M]=b[0],i[M+1]=b[1],i[M+2]=b[2]}else if(e.colorSpace===xo.LAB){const N=[],H=[];op(g,N),op(y,H);const K=[];for(let Q=0;Q<3;Q++)F=H[Q]-N[Q],L=(1-S)*F,K[Q]=O*N[Q]+B*H[Q]+$*L+V*L;$k(K,b),i[M]=b[0],i[M+1]=b[1],i[M+2]=b[2]}else e.colorSpace===xo.DIVERGING?(k4(E,g,y,b),i[M]=b[0],i[M+1]=b[1],i[M+2]=b[2]):ll("ColorSpace set to invalid value.");for(let N=0;N<3;N++)i[M+N]=i[M+N]<0?0:i[M+N],i[M+N]=i[M+N]>1?1:i[M+N]}}},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 ll("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<a;l++)e.table[l*o+0]=Math.floor(s[l*3+0]*255+.5),e.table[l*o+1]=Math.floor(s[l*3+1]*255+.5),e.table[l*o+2]=Math.floor(s[l*3+2]*255+.5),i&&(e.table[l*o+3]=255);return e.buildTime.modified(),e.table},t.buildFunctionFromArray=n=>{t.removeAllPoints();const r=n.getNumberOfComponents();for(let a=0;a<n.getNumberOfTuples();a++)switch(r){case 3:{e.nodes.push({x:a,r:n.getComponent(a,0),g:n.getComponent(a,1),b:n.getComponent(a,2),midpoint:.5,sharpness:0});break}case 4:{e.nodes.push({x:n.getComponent(a,0),r:n.getComponent(a,1),g:n.getComponent(a,2),b:n.getComponent(a,3),midpoint:.5,sharpness:0});break}case 5:{e.nodes.push({x:a,r:n.getComponent(a,0),g:n.getComponent(a,1),b:n.getComponent(a,2),midpoint:n.getComponent(a,4),sharpness:n.getComponent(a,5)});break}case 6:{e.nodes.push({x:n.getComponent(a,0),r:n.getComponent(a,1),g:n.getComponent(a,2),b:n.getComponent(a,3),midpoint:n.getComponent(a,4),sharpness:n.getComponent(a,5)});break}}t.sortAndUpdateRange()},t.buildFunctionFromTable=(n,r,a,i)=>{let o=0;t.removeAllPoints(),a>1&&(o=(r-n)/(a-1));for(let s=0;s<a;s++){const l={x:n+o*s,r:i[s*3],g:i[s*3+1],b:i[s*3+2],sharpness:0,midpoint:.5};e.nodes.push(l)}t.sortAndUpdateRange()},t.getNodeValue=(n,r)=>n<0||n>=e.nodes.length?(ll("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 ll("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<n;a++)t.addRGBPoint(r[a*4],r[a*4+1],r[a*4+2],r[a*4+3])}},t.setMappingRange=(n,r)=>{const a=[n,r],i=t.getRange();if(i[1]===a[1]&&i[0]===a[0])return;if(a[1]===a[0]){ll("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<e.nodes.length;++l)e.nodes[l].x=e.nodes[l].x*o+s;e.mappingRange[0]=a[0],e.mappingRange[1]=a[1],t.modified()},t.adjustRange=n=>{const r=t.getRange(),a=[];r[0]<n[0]?(t.getColor(n[0],a),t.addRGBPoint(n[0],a[0],a[1],a[2])):(t.getColor(r[0],a),t.addRGBPoint(n[0],a[0],a[1],a[2])),r[1]>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<e.nodes.length;)e.nodes[i].x>=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<e.nodes.length-1;r++){const a=e.nodes[r+1].x-e.nodes[r].x;a<n&&(n=a)}return n},t.mapScalarsThroughTable=(n,r,a,i)=>{if(t.getSize()===0){lnt("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){unt("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===lS.RGBA)for(let d=0;d<s;d++){const h=c[d*l+i];t.getColor(h,f),u[d*4]=Math.floor(f[0]*255+.5),u[d*4+1]=Math.floor(f[1]*255+.5),u[d*4+2]=Math.floor(f[2]*255+.5),u[d*4+3]=o}if(a===lS.RGB)for(let d=0;d<s;d++){const h=c[d*l+i];t.getColor(h,f),u[d*3]=Math.floor(f[0]*255+.5),u[d*3+1]=Math.floor(f[1]*255+.5),u[d*3+2]=Math.floor(f[2]*255+.5)}if(a===lS.LUMINANCE)for(let d=0;d<s;d++){const h=c[d*l+i];t.getColor(h,f),u[d]=Math.floor(f[0]*76.5+f[1]*150.45+f[2]*28.05+.5)}if(a===lS.LUMINANCE_ALPHA)for(let d=0;d<s;d++){const h=c[d*l+i];t.getColor(h,f),u[d*2]=Math.floor(f[0]*76.5+f[1]*150.45+f[2]*28.05+.5),u[d*2+1]=o}},t.applyColorMap=n=>{const r=JSON.stringify(e.colorSpace);n.ColorSpace&&(e.colorSpace=xo[n.ColorSpace.toUpperCase()],e.colorSpace===void 0&&(ll(`ColorSpace ${n.ColorSpace} not supported, using RGB instead`),e.colorSpace=xo.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;d<u;d+=4)e.nodes.push({x:n.RGBPoints[d],r:n.RGBPoints[d+1],g:n.RGBPoints[d+2],b:n.RGBPoints[d+3],midpoint:c,sharpness:f})}const s=t.sortAndUpdateRange(),l=!s&&(a||o!==JSON.stringify(e.nodes));return l&&t.modified(),s||l}}const hnt={clamping:!0,colorSpace:xo.RGB,hSVWrap:!0,scale:HJ.LINEAR,nanColor:null,belowRangeColor:null,aboveRangeColor:null,useAboveRangeColor:!1,useBelowRangeColor:!1,allowDuplicateScalars:!1,table:null,tableSize:0,buildTime:null,nodes:null,discretize:!1,numberOfValues:256};function WJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,hnt,n),pC.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={},j.obj(e.buildTime),j.get(t,e,["buildTime","mappingRange"]),j.setGet(t,e,["useAboveRangeColor","useBelowRangeColor","colorSpace","discretize","numberOfValues"]),j.setArray(t,e,["nanColor","belowRangeColor","aboveRangeColor"],4),j.getArray(t,e,["nanColor","belowRangeColor","aboveRangeColor"]),dnt(t,e)}const pnt=j.newInstance(WJ,"vtkColorTransferFunction");var vnt={newInstance:pnt,extend:WJ,...UJ};const gnt=t=>t,R4=1e-6;class KJ{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.matrix=fn(new Float64Array(16)),this.tmp=new Float64Array(3),this.angleConv=e?DWe:gnt}rotateFromDirections(e,n){const r=new Float64Array(3),a=new Float64Array(3),i=new Float64Array(16);Ts(r,e[0],e[1],e[2]),Ts(a,n[0],n[1],n[2]),Ju(r,r),Ju(a,a);const o=u3(r,a);return o>=1?this:(Tp(this.tmp,r,a),Nk(this.tmp)<R4&&(Tp(this.tmp,[1,0,0],e),Nk(this.tmp)<R4&&Tp(this.tmp,[0,1,0],e)),gq(i,Math.acos(o),this.tmp),Yr(this.matrix,this.matrix,i),this)}rotate(e,n){return Ts(this.tmp,...n),Ju(this.tmp,this.tmp),To(this.matrix,this.matrix,this.angleConv(e),this.tmp),this}rotateX(e){return i3(this.matrix,this.matrix,this.angleConv(e)),this}rotateY(e){return o3(this.matrix,this.matrix,this.angleConv(e)),this}rotateZ(e){return s3(this.matrix,this.matrix,this.angleConv(e)),this}translate(e,n,r){return Ts(this.tmp,e,n,r),pr(this.matrix,this.matrix,this.tmp),this}scale(e,n,r){return Ts(this.tmp,e,n,r),Nd(this.matrix,this.matrix,this.tmp),this}multiply(e){return Yr(this.matrix,this.matrix,e),this}multiply3x3(e){return Yr(this.matrix,this.matrix,[e[0],e[1],e[2],0,e[3],e[4],e[5],0,e[6],e[7],e[8],0,0,0,0,1]),this}invert(){return Ua(this.matrix,this.matrix),this}identity(){return fn(this.matrix),this}apply(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-1;if(Vq(C9e,this.matrix))return this;const a=r===-1?e.length:n+r*3;for(let i=n;i<a;i+=3)Ts(this.tmp,e[i],e[i+1],e[i+2]),En(this.tmp,this.tmp,this.matrix),e[i]=this.tmp[0],e[i+1]=this.tmp[1],e[i+2]=this.tmp[2];return this}getMatrix(){return this.matrix}setMatrix(e){return e&&e.length===16&&na(this.matrix,e),this}}function ynt(){return new KJ(!0)}function mnt(){return new KJ(!1)}var Rs={buildFromDegree:ynt,buildFromRadian:mnt};function Snt(t,e){e.classHierarchy.push("vtkConeSource");function n(r,a){if(e.deleted)return;let i=a[0];const o=2*Math.PI/e.resolution,s=-e.height/2,l=e.resolution+1,u=4*e.resolution+1+e.resolution;let c=0;const f=j.newTypedArray(e.pointType,l*3);let d=0;const h=new Uint32Array(u);f[0]=e.height/2,f[1]=0,f[2]=0,e.capping&&(h[d++]=e.resolution);for(let v=0;v<e.resolution;v++)c++,f[c*3+0]=s,f[c*3+1]=e.radius*Math.cos(v*o),f[c*3+2]=e.radius*Math.sin(v*o),e.capping&&(h[e.resolution-d+++1]=c);for(let v=0;v<e.resolution;v++)h[d++]=3,h[d++]=0,h[d++]=v+1,h[d++]=v+2>e.resolution?1:v+2;Rs.buildFromRadian().translate(...e.center).rotateFromDirections([1,0,0],e.direction).apply(f),i=Ta.newInstance(),i.getPoints().setData(f,3),i.getPolys().setData(h,1),a[0]=i}t.requestData=n}const bnt={height:1,radius:.5,resolution:6,center:[0,0,0],direction:[1,0,0],capping:!0,pointType:"Float64Array"};function jJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,bnt,n),j.obj(t,e),j.setGet(t,e,["height","radius","resolution","capping"]),j.setGetArray(t,e,["center","direction"],3),j.algo(t,e,0,1),Snt(t,e)}const wnt=j.newInstance(jJ,"vtkConeSource");var _nt={newInstance:wnt,extend:jJ};function xnt(t,e){e.classHierarchy.push("vtkSphereMapper")}const Cnt={scaleArray:null,radius:.05,scaleFactor:1};function Tnt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Cnt,n),qs.extend(t,e,n),j.setGet(t,e,["radius","scaleArray","scaleFactor"]),xnt(t,e)}j.newInstance(Tnt,"vtkSphereMapper");function Ent(t,e){e.classHierarchy.push("vtkPixelSpaceCallbackMapper"),e.callback||(e.callback=()=>{}),t.invokeCallback=(n,r,a,i,o)=>{if(!e.callback)return;const s=r.getCompositeProjectionMatrix(a,-1,1);Wn(s,s);const l=n.getPoints(),u=new Float64Array(3),c=i.usize,f=i.vsize,d=c/2,h=f/2,v=[];for(let p=0;p<l.getNumberOfPoints();p+=1){const g=l.getPoint(p);En(u,g,s);const y=[u[0]*d+d,u[1]*h+h,u[2],0];if(o){const S=(Math.floor(y[1])*c+Math.floor(y[0]))*4,b=o[S]/255,x=o[S+1]/255,_=(b*256+x)/257;y[3]=_*2-1}v.push(y)}e.callback(v,r,a,o,[c,f])}}const Mnt={callback:null,useZValues:!1};function Dnt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Mnt,n),qs.extend(t,e,n),j.setGet(t,e,["callback","useZValues"]),Ent(t,e)}j.newInstance(Dnt,"vtkPixelSpaceCallbackMapper");function knt(t,e){e.classHierarchy.push("vtkSphereSource"),t.requestData=(n,r)=>{if(e.deleted)return;let a=r[0];const i=a?a.getPoints().getDataType():e.pointType;a=Ta.newInstance();let o=0,{thetaResolution:s}=e,l=e.startTheta<e.endTheta?e.startTheta:e.endTheta;l*=Math.PI/180;let u=e.endTheta>e.startTheta?e.endTheta:e.startTheta;u*=Math.PI/180;let c=e.startPhi<e.endPhi?e.startPhi:e.endPhi;c*=Math.PI/180;let f=e.endPhi>e.startPhi?e.endPhi:e.startPhi;f*=Math.PI/180,Math.abs(l-u)<2*Math.PI&&++s;const d=(u-l)/e.thetaResolution,h=e.startPhi<=0?1:0,v=e.phiResolution+(e.endPhi>=180?-1:0),p=e.phiResolution*s+2,g=e.phiResolution*2*e.thetaResolution;let y=0,m=j.newTypedArray(i,p*3),S=new Float32Array(p*3),b=0,x=new Uint32Array(g*5);e.startPhi<=0&&(m[y*3+0]=e.center[0],m[y*3+1]=e.center[1],m[y*3+2]=e.center[2]+e.radius,S[y*3+0]=0,S[y*3+1]=0,S[y*3+2]=1,y++,o++),e.endPhi>=180&&(m[y*3+0]=e.center[0],m[y*3+1]=e.center[1],m[y*3+2]=e.center[2]-e.radius,S[y*3+0]=0,S[y*3+1]=0,S[y*3+2]=-1,y++,o++);const _=e.phiResolution-o,C=(f-c)/(e.phiResolution-1);for(let M=0;M<s;M++){const E=l+M*d;for(let k=h;k<v;k++){const R=c+k*C,O=e.radius*Math.sin(R);S[y*3+0]=O*Math.cos(E),S[y*3+1]=O*Math.sin(E),S[y*3+2]=e.radius*Math.cos(R),m[y*3+0]=S[y*3+0]+e.center[0],m[y*3+1]=S[y*3+1]+e.center[1],m[y*3+2]=S[y*3+2]+e.center[2];let B=Math.sqrt(S[y*3+0]*S[y*3+0]+S[y*3+1]*S[y*3+1]+S[y*3+2]*S[y*3+2]);B=B===0?1:B,S[y*3+0]/=B,S[y*3+1]/=B,S[y*3+2]/=B,y++}}const T=_*s;if(Math.abs(l-u)<2*Math.PI&&--s,e.startPhi<=0)for(let M=0;M<s;M++)x[b++]=3,x[b++]=_*M+o,x[b++]=_*(M+1)%T+o,x[b++]=0;if(e.endPhi>=180){const M=_-1+o;for(let E=0;E<s;E++)x[b++]=3,x[b++]=_*E+M,x[b++]=o-1,x[b++]=_*(E+1)%T+M}for(let M=0;M<s;M++)for(let E=0;E<_-1;E++){const k=_*M+E+o,R=k+1,O=(_*(M+1)+E)%T+o+1;e.latLongTessellation?(x[b++]=4,x[b++]=k,x[b++]=R,x[b++]=O,x[b++]=O-1):(x[b++]=3,x[b++]=k,x[b++]=R,x[b++]=O,x[b++]=3,x[b++]=k,x[b++]=O,x[b++]=O-1)}m=m.subarray(0,y*3),a.getPoints().setData(m,3),S=S.subarray(0,y*3);const D=_n.newInstance({name:"Normals",values:S,numberOfComponents:3});a.getPointData().setNormals(D),x=x.subarray(0,b),a.getPolys().setData(x,1),r[0]=a}}const Rnt={radius:.5,latLongTessellation:!1,thetaResolution:8,startTheta:0,endTheta:360,phiResolution:8,startPhi:0,endPhi:180,center:[0,0,0],pointType:"Float64Array"};function Lnt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Rnt,n),j.obj(t,e),j.setGet(t,e,["radius","latLongTessellation","thetaResolution","startTheta","endTheta","phiResolution","startPhi","endPhi"]),j.setGetArray(t,e,["center"],3),j.algo(t,e,0,1),knt(t,e)}j.newInstance(Lnt,"vtkSphereSource");const{vtkErrorMacro:Ont}=j;function Ant(t,e){let n=0;return t.map((r,a)=>a===n?(n+=r+1,r):r+e)}function uS(t,e,n,r){t.set(Ant(e,n),r)}function Nnt(t,e){e.classHierarchy.push("vtkAppendPolyData"),t.requestData=(n,r)=>{const a=t.getNumberOfInputPorts();if(!a){Ont("No input specified.");return}if(a===1){r[0]=n[0];return}const i=Ta.newInstance();let o=0,s=0,l=1,u=1,c=0,f=0,d=0,h=0,v=!0,p=!0,g=!0;for(let E=0;E<a;E++){const k=n[E];if(!k)continue;const R=k.getPoints().getNumberOfPoints();o+=R,c+=k.getVerts().getNumberOfValues(),f+=k.getLines().getNumberOfValues(),d+=k.getStrips().getNumberOfValues(),h+=k.getPolys().getNumberOfValues(),R&&(u&&(u=0,s=k.getPoints().getDataType()),l=k.getPoints().getDataType(),s=s>l?s:l);const O=k.getPointData();O?(v=v&&O.getNormals()!==null,p=p&&O.getTCoords()!==null,g=g&&O.getScalars()!==null):(v=!1,p=!1,g=!1)}e.outputPointsPrecision===f_.SINGLE?s=Dr.FLOAT:e.outputPointsPrecision===f_.DOUBLE&&(s=Dr.DOUBLE);const y=Ry.newInstance({dataType:s});y.setNumberOfPoints(o);const m=y.getData(),S=new Uint32Array(c),b=new Uint32Array(f),x=new Uint32Array(d),_=new Uint32Array(h);let C=null,T=null,D=null;const M=n[a-1];if(v){const E=M.getPointData().getNormals();C=_n.newInstance({numberOfComponents:3,numberOfTuples:o,size:3*o,dataType:E.getDataType(),name:E.getName()})}if(p){const E=M.getPointData().getTCoords();T=_n.newInstance({numberOfComponents:2,numberOfTuples:o,size:2*o,dataType:E.getDataType(),name:E.getName()})}if(g){const E=M.getPointData().getScalars();D=_n.newInstance({numberOfComponents:E.getNumberOfComponents(),numberOfTuples:o,size:o*E.getNumberOfComponents(),dataType:E.getDataType(),name:E.getName()})}o=0,c=0,f=0,d=0,h=0;for(let E=0;E<a;E++){const k=n[E];m.set(k.getPoints().getData(),o*3),uS(S,k.getVerts().getData(),o,c),c+=k.getVerts().getNumberOfValues(),uS(b,k.getLines().getData(),o,f),f+=k.getLines().getNumberOfValues(),uS(x,k.getStrips().getData(),o,d),d+=k.getStrips().getNumberOfValues(),uS(_,k.getPolys().getData(),o,h),h+=k.getPolys().getNumberOfValues();const R=k.getPointData();if(v){const O=R.getNormals();C.getData().set(O.getData(),o*3)}if(p){const O=R.getTCoords();T.getData().set(O.getData(),o*2)}if(g){const O=R.getScalars();D.getData().set(O.getData(),o*D.getNumberOfComponents())}o+=k.getPoints().getNumberOfPoints()}i.setPoints(y),i.getVerts().setData(S),i.getLines().setData(b),i.getStrips().setData(x),i.getPolys().setData(_),C&&i.getPointData().setNormals(C),T&&i.getPointData().setTCoords(T),D&&i.getPointData().setScalars(D),r[0]=i}}const Vnt={outputPointsPrecision:f_.DEFAULT};function YJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Vnt,n),j.setGet(t,e,["outputPointsPrecision"]),j.obj(t,e),j.algo(t,e,1,1),Nnt(t,e)}const Bnt=j.newInstance(YJ,"vtkAppendPolyData");var XJ={newInstance:Bnt,extend:YJ};function $nt(t,e){e.classHierarchy.push("vtkCylinderSource");function n(r,a){if(e.deleted)return;let i=a[0];const o=2*Math.PI/e.resolution;let s=2*e.resolution,l=5*e.resolution;e.capping&&(s=4*e.resolution,l=7*e.resolution+2);const u=j.newTypedArray(e.pointType,s*3);let c=0;const f=new Uint32Array(l),d=new Float32Array(s*3),h=_n.newInstance({numberOfComponents:3,values:d,name:"Normals"}),v=new Float32Array(s*2),p=_n.newInstance({numberOfComponents:2,values:v,name:"TCoords"}),g=[0,0,0],y=[0,0,0],m=[0,0,0],S=[0,0,0],b=[0,0],x=[0,0],_=e.otherRadius==null?e.radius:e.otherRadius;for(let C=0;C<e.resolution;C++){g[0]=Math.cos(C*o+e.initAngle),y[0]=g[0],m[0]=e.radius*g[0]+e.center[0],S[0]=m[0],b[0]=Math.abs(2*C/e.resolution-1),x[0]=b[0],m[1]=.5*e.height+e.center[1],S[1]=-.5*e.height+e.center[1],b[1]=0,x[1]=1,g[2]=-Math.sin(C*o+e.initAngle),y[2]=g[2],m[2]=_*g[2]+e.center[2],S[2]=m[2];const T=2*C;for(let D=0;D<3;D++)d[T*3+D]=g[D],d[(T+1)*3+D]=y[D],u[T*3+D]=m[D],u[(T+1)*3+D]=S[D],D<2&&(v[T*2+D]=b[D],v[(T+1)*2+D]=x[D])}for(let C=0;C<e.resolution;C++){f[c++]=4,f[c++]=2*C,f[c++]=2*C+1;const T=(2*C+3)%(2*e.resolution);f[c++]=T,f[c++]=T-1}if(e.capping){for(let C=0;C<e.resolution;C++){m[0]=e.radius*Math.cos(C*o+e.initAngle),S[0]=m[0],b[0]=m[0],x[0]=m[0],m[0]+=e.center[0],S[0]+=e.center[0],g[1]=1,y[1]=-1,m[1]=.5*e.height+e.center[1],S[1]=-.5*e.height+e.center[1],m[2]=-_*Math.sin(C*o+e.initAngle),S[2]=m[2],b[1]=m[2],x[1]=m[2],m[2]+=e.center[2],S[2]+=e.center[2];const T=2*e.resolution+C,D=3*e.resolution+e.resolution-C-1;for(let M=0;M<3;M++)d[3*T+M]=g[M],d[3*D+M]=y[M],u[3*T+M]=m[M],u[3*D+M]=S[M],M<2&&(v[2*T+M]=b[M],v[2*D+M]=x[M])}f[c++]=e.resolution;for(let C=0;C<e.resolution;C++)f[c++]=2*e.resolution+C;f[c++]=e.resolution;for(let C=0;C<e.resolution;C++)f[c++]=3*e.resolution+C}Rs.buildFromRadian().translate(...e.center).rotateFromDirections([0,1,0],e.direction).translate(...e.center.map(C=>C*-1)).apply(u),i=Ta.newInstance(),i.getPoints().setData(u,3),i.getPolys().setData(f,1),i.getPointData().setNormals(h),i.getPointData().setTCoords(p),a[0]=i}t.requestData=n}const Int={height:1,initAngle:0,radius:1,resolution:6,center:[0,0,0],direction:[0,1,0],capping:!0,pointType:"Float64Array"};function qJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Int,n),j.obj(t,e),j.setGet(t,e,["height","initAngle","otherRadius","radius","resolution","capping"]),j.setGetArray(t,e,["center","direction"],3),j.algo(t,e,0,1),$nt(t,e)}const Pnt=j.newInstance(qJ,"vtkCylinderSource");var Fnt={newInstance:Pnt,extend:qJ};function znt(t,e){e.classHierarchy.push("vtkArrowSource");function n(r,a){if(e.deleted)return;const i=Fnt.newInstance({capping:!0});i.setResolution(e.shaftResolution),i.setRadius(e.shaftRadius),i.setHeight(1-e.tipLength),i.setCenter(0,(1-e.tipLength)*.5,0);const o=i.getOutputData(),s=o.getPoints().getData(),l=o.getPointData().getNormals().getData();Rs.buildFromDegree().rotateZ(-90).apply(s).apply(l);const u=_nt.newInstance();u.setResolution(e.tipResolution),u.setHeight(e.tipLength),u.setRadius(e.tipRadius);const c=u.getOutputData(),f=c.getPoints().getData();Rs.buildFromRadian().translate(1-e.tipLength*.5,0,0).apply(f);const d=XJ.newInstance();d.setInputData(o),d.addInputData(c);const h=d.getOutputData(),v=h.getPoints().getData();Rs.buildFromRadian().translate(-.5+e.tipLength*.5,0,0).apply(v),e.invert?(Rs.buildFromRadian().rotateFromDirections([1,0,0],e.direction).scale(-1,-1,-1).apply(v),a[0]=h):(Rs.buildFromRadian().rotateFromDirections([1,0,0],e.direction).scale(1,1,1).apply(v),a[0]=d.getOutputData())}t.requestData=n}const Gnt={tipResolution:6,tipRadius:.1,tipLength:.35,shaftResolution:6,shaftRadius:.03,invert:!1,direction:[1,0,0],pointType:"Float64Array"};function ZJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Gnt,n),j.obj(t,e),j.setGet(t,e,["tipResolution","tipRadius","tipLength","shaftResolution","shaftRadius","invert"]),j.setGetArray(t,e,["direction"],3),j.algo(t,e,0,1),znt(t,e)}const Unt=j.newInstance(ZJ,"vtkArrowSource");var T2={newInstance:Unt,extend:ZJ};function E2(t){const e=t.getPoints().getBounds(),n=[-(e[0]+e[1])*.5,-(e[2]+e[3])*.5,-(e[4]+e[5])*.5];Rs.buildFromDegree().translate(...n).apply(t.getPoints().getData())}function M2(t,e){const n=t.getPoints().getBounds(),r=[0,0,0];r[e]=-n[e*2],Rs.buildFromDegree().translate(...r).apply(t.getPoints().getData())}function D2(t,e,n,r){const a=t.getPoints().getData().length,i=new Uint8ClampedArray(a);let o=0;for(;o<a;)i[o++]=e,i[o++]=n,i[o++]=r;t.getPointData().setScalars(_n.newInstance({name:"color",numberOfComponents:3,values:i}))}function Hnt(t,e){e.classHierarchy.push("vtkAxesActor");const n=qs.newInstance();t.setMapper(n),t.update=()=>{const l=T2.newInstance({direction:[1,0,0],...e.config}).getOutputData();e.config.recenter?E2(l):M2(l,0),D2(l,...e.xAxisColor);const u=T2.newInstance({direction:[0,1,0],...e.config}).getOutputData();e.config.recenter?E2(u):M2(u,1),D2(u,...e.yAxisColor);const c=T2.newInstance({direction:[0,0,1],...e.config}).getOutputData();e.config.recenter?E2(c):M2(c,2),D2(c,...e.zAxisColor);const f=XJ.newInstance();f.setInputData(l),f.addInputData(u),f.addInputData(c),n.setInputConnection(f.getOutputPort())},t.update();const r=j.debounce(t.update,0),{setConfig:a,setXAxisColor:i,setYAxisColor:o,setZAxisColor:s}=t;t.setConfig=l=>a(l)?(r(),!0):!1,t.setXAxisColor=l=>i(l)?(r(),!0):!1,t.setYAxisColor=l=>o(l)?(r(),!0):!1,t.setZAxisColor=l=>s(l)?(r(),!0):!1}const Wnt={config:{recenter:!0,tipResolution:60,tipRadius:.1,tipLength:.2,shaftResolution:60,shaftRadius:.03,invert:!1},xAxisColor:[255,0,0],yAxisColor:[255,255,0],zAxisColor:[0,128,0]};function Knt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,Wnt,n),yc.extend(t,e,n),j.setGet(t,e,["config"]),j.setGetArray(t,e,["xAxisColor","yAxisColor","zAxisColor"],3,255),Hnt(t,e)}j.newInstance(Knt,"vtkAxesActor");const jnt={TRIANGLE:"triangle",STAR:"star",ARROW_4:"arrow4points",ARROW_6:"arrow6points"};var Ynt={ShapeType:jnt};const{ShapeType:cS}=Ynt;function Xnt(t,e){const n=Ta.newInstance(),r=j.newTypedArray(e.pointType,10*3),a=new Uint32Array(11);a[0]=10;for(let i=0;i<10;i++){const o=i%2===1?e.height:e.height*.4;r[3*i+0]=o*Math.cos((2*i-1)*Math.PI/10),r[3*i+1]=o*Math.sin((2*i-1)*Math.PI/10),r[3*i+2]=0,a[1+i]=i}return n.getPoints().setData(r,3),n.getPolys().setData(a,1),n}function qnt(t,e){const n=Ta.newInstance(),r=j.newTypedArray(e.pointType,6*3),a=e.height*.5*e.thickness,i=e.height*.5-a,o=(e.height*.9+a-i-(e.height*.5-a-i))*(1-e.base);r[0]=e.width/2*-1-a,r[1]=e.height/4-i-o,r[2]=0,r[3]=0,r[4]=e.height*.9+a-i-o,r[5]=0,r[6]=e.width/2+a,r[7]=e.height/4-i-o,r[8]=0,r[9]=e.width/3,r[10]=e.height*.1-a-i-o,r[11]=0,r[12]=0,r[13]=e.height*.5-a-i-o,r[14]=0,r[15]=e.width/3*-1,r[16]=e.height*.1-a-i-o,r[17]=0;const s=Uint8Array.from([3,0,1,5,3,1,4,5,3,1,4,3,3,1,2,3]);return n.getPoints().setData(r,3),n.getPolys().setData(s,1),n}function Znt(t,e){const n=Ta.newInstance(),r=j.newTypedArray(e.pointType,4*3),a=e.height/3*e.thickness,i=e.height/3-a,o=(e.height-i-(e.height/3-a-i))*(1-e.base);r[0]=e.width/2*-1,r[1]=0-i-o,r[2]=0,r[3]=0,r[4]=e.height-i-o,r[5]=0,r[6]=e.width/2,r[7]=0-i-o,r[8]=0,r[9]=0,r[10]=e.height/3-a-i-o,r[11]=0;const s=Uint8Array.from([3,0,1,3,3,1,2,3]);return n.getPoints().setData(r,3),n.getPolys().setData(s,1),n}function Qnt(t,e){const n=Ta.newInstance(),r=j.newTypedArray(e.pointType,3*3),a=e.height*(1-e.base);r[0]=e.width/2*-1,r[1]=0-a,r[2]=0,r[3]=0,r[4]=e.height-a,r[5]=0,r[6]=e.width/2,r[7]=0-a,r[8]=0;const i=Uint8Array.from([3,0,1,2]);return n.getPoints().setData(r,3),n.getPolys().setData(i,1),n}function Jnt(t,e){const n={[cS.TRIANGLE]:Qnt,[cS.STAR]:Xnt,[cS.ARROW_4]:Znt,[cS.ARROW_6]:qnt};t.requestData=(r,a)=>{a[0]=n[e.shape](t,e),Rs.buildFromRadian().translate(...e.center).rotateFromDirections([1,0,0],e.direction).apply(a[0].getPoints().getData())}}function ert(t){return{base:0,center:[0,0,0],height:1,direction:[1,0,0],pointType:"Float64Array",thickness:0,width:1,...t}}function trt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,ert(n)),j.obj(t,e),j.setGet(t,e,["height","width","thickness","base"]),j.setGetArray(t,e,["center","direction"],3),j.algo(t,e,0,1),Jnt(t,e)}j.newInstance(trt,"vtkArrow2DSource");function nrt(t,e){e.classHierarchy.push("vtkPriorityQueue"),t.push=(n,r)=>{const a=e.elements.findIndex(i=>i.priority>n);e.elements.splice(a,0,{priority:n,element:r})},t.pop=()=>e.elements.length>0?e.elements.shift().element:null,t.deleteById=n=>{e.elements=e.elements.filter(r=>{let{element:a}=r;return a.id!==n})},t.length=()=>e.elements.length}const rrt={elements:[]};function QJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,rrt,n),j.obj(t,e),nrt(t,e)}const art=j.newInstance(QJ,"vtkPriorityQueue");var irt={newInstance:art,extend:QJ};const fS=1e-6,L4=11920929e-14,ort=1e-8,kf={FAILURE:-1,OUTSIDE:0,INSIDE:1,INTERSECTION:2,ON_LINE:3};function O4(t,e,n,r,a){return(r[t]-n[t])*(a[e]-n[e])-(a[t]-n[t])*(r[e]-n[e])}function srt(t,e,n,r){if(t[0]<n[0]||t[0]>n[1]||t[1]<n[2]||t[1]>n[3]||t[2]<n[4]||t[2]>n[5])return kf.OUTSIDE;if(Fl(r)<=L4)return kf.FAILURE;let a=ort*((n[1]-n[0])*(n[1]-n[0])+(n[3]-n[2])*(n[3]-n[2])+(n[5]-n[4])*(n[5]-n[4]));a*=a,a=a===0?L4:a;const i=[],o=[];for(let c=0;c<e.length;){if(i[0]=e[c++],i[1]=e[c++],i[2]=e[c++],Oo(t,i)<=a)return kf.INSIDE;const{distance:f,t:d}=si.distanceToLine(t,i,o);if(f<=a&&d>0&&d<1)return kf.INSIDE}let s,l;Math.abs(r[0])>Math.abs(r[1])?Math.abs(r[0])>Math.abs(r[2])?(s=1,l=2):(s=0,l=1):Math.abs(r[1])>Math.abs(r[2])?(s=0,l=2):(s=0,l=1);let u=0;for(let c=0;c<e.length;)i[0]=e[c++],i[1]=e[c++],i[2]=e[c++],c<e.length?(o[0]=e[c],o[1]=e[c+1],o[2]=e[c+2]):(o[0]=e[0],o[1]=e[1],o[2]=e[2]),i[l]<=t[l]?o[l]>t[l]&&O4(s,l,i,o,t)>0&&++u:o[l]<=t[l]&&O4(s,l,i,o,t)<0&&--u;return u===0?kf.OUTSIDE:kf.INSIDE}function lrt(t,e,n){const r=t.length,a=[];e.getPoint(t[0],a),n[0]=a[0],n[1]=a[0],n[2]=a[1],n[3]=a[1],n[4]=a[2],n[5]=a[2];for(let o=1;o<r;o++)e.getPoint(t[o],a),zn.addPoint(n,...a);const i=zn.getLengths(n);return dn(i,i)}function urt(t,e,n){n.length=3,n[0]=0,n[1]=0,n[2]=0;const r=[];let a=[],i=[];const o=[],s=[];e.getPoint(t[0],r),e.getPoint(t[1],a);for(let l=2;l<t.length;l++){e.getPoint(t[l],i),Sa(i,a,o),Sa(r,a,s);const u=[0,0,0];Ol(o,s,u),ky(n,u,n),[a,i]=[i,a]}return Fl(n)}const crt={PolygonWithPointIntersectionState:kf,pointInPolygon:srt,getBounds:lrt,getNormal:urt};function frt(t,e){e.classHierarchy.push("vtkPolygon");function n(){const s=[0,0,0],l=[0,0,0];e.normal=[0,0,0];const u=[...e.firstPoint.point];let c=e.firstPoint;for(let f=0;f<e.pointCount;f++){Sa(c.point,u,s),Sa(c.next.point,u,l);const d=[0,0,0];Ol(s,l,d),ky(e.normal,d,e.normal),c=c.next}return Fl(e.normal)}function r(s){const l=[0,0,0],u=[0,0,0],c=[0,0,0],f=[0,0,0];Sa(s.point,s.previous.point,l),Sa(s.next.point,s.point,u),Sa(s.previous.point,s.next.point,c),Ol(l,u,f);const d=dn(f,e.normal);if(d<=0)return-1;const h=ip(l)+ip(u)+ip(c);return h*h/d}function a(s){if(e.pointCount<=3)return!0;const l=s.previous,u=s.next,c=[0,0,0];Sa(u.point,l.point,c);const f=[0,0,0];if(Ol(c,e.normal,f),Fl(f),ip(f)===0)return!1;let d=gc.evaluate(f,l.point,u.next.point),h=d>fS?1:d<-fS?-1:0,v=h<0?1:0;for(let p=u.next.next;p.id!==l.id;p=p.next){const g=p.previous;d=gc.evaluate(f,l.point,p.point);const y=d>fS?1:d<-fS?-1:0;if(y!==h){if(v||(v=y<=0?1:0),si.intersection(l.point,u.point,p.point,g.point,[0],[0])===GZ.YES_INTERSECTION)return!1;h=y}}return v===1}function i(s,l){e.pointCount-=1;const u=s.previous,c=s.next;e.tris=e.tris.concat(s.point),e.tris=e.tris.concat(c.point),e.tris=e.tris.concat(u.point),u.next=c,c.previous=u,l.deleteById(u.id),l.deleteById(c.id);const f=r(u);f>0&&l.push(f,u);const d=r(c);d>0&&l.push(d,c),s.id===e.firstPoint.id&&(e.firstPoint=c)}function o(){n();const s=irt.newInstance();let l=e.firstPoint;for(let u=0;u<e.pointCount;u++){const c=r(l);c>0&&s.push(c,l),l=l.next}for(;e.pointCount>2&&s.length()>0;)if(e.pointCount===s.length()){const u=s.pop();i(u,s)}else{const u=s.pop();a(u)&&i(u,s)}return e.pointCount<=2}t.triangulate=()=>e.firstPoint?o():null,t.setPoints=s=>{e.pointCount=s.length,e.firstPoint={id:0,point:s[0],next:null,previous:null};let l=e.firstPoint;for(let u=1;u<e.pointCount;u++)l.next={id:u,point:s[u],next:null,previous:l},l=l.next;e.firstPoint.previous=l,l.next=e.firstPoint},t.getPointArray=()=>e.tris}const drt={firstPoint:null,pointCount:0,tris:[]};function JJ(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,drt,n),j.obj(t,e),frt(t,e)}const hrt=j.newInstance(JJ,"vtkPolygon");var prt={newInstance:hrt,extend:JJ,...crt};const{vtkWarningMacro:vrt}=j;function grt(t,e){e.classHierarchy.push("vtkTriangleFilter"),t.requestData=(n,r)=>{const a=n[0],i=a.getPoints().getData(),o=a.getPolys().getData(),s=a.getPolys().getDataType(),l=a.getPoints().getDataType(),u=[],c=[];if(e.errorCount=0,o){let d=0,h=!1;for(let v=0;v<o.length;v+=d+1){d=o[v],h=o[v+1]===o[v+d],h&&--d;const p=[];p.length=d;for(let g=0;g<d;g++){const y=o[v+g+1];p[g]=[i[3*y],i[3*y+1],i[3*y+2]]}if(d===3){const g=c.length/3;u.push(3,g,g+1,g+2),c.push(...p[0],...p[1],...p[2])}else if(d>3){const g=prt.newInstance();g.setPoints(p),g.triangulate()||(vrt(`Triangulation failed at cellOffset ${v}`),++e.errorCount);const y=g.getPointArray(),m=Math.floor(y.length/9),S=[];S.length=9;for(let b=0;b<m;b++){for(let _=0;_<9;_++)S[_]=y[9*b+_];const x=c.length/3;u.push(3,x,x+1,x+2),c.push(...S)}}h&&++d}}const f=Ta.newInstance();f.getPoints().setData(j.newTypedArrayFrom(l,c)),f.getPolys().setData(j.newTypedArrayFrom(s,u)),r[0]=f}}const yrt={errorCount:0};function mrt(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.assign(e,yrt,n),j.setGet(t,e,[]),j.get(t,e,["errorCount"]),j.obj(t,e),j.algo(t,e,1,1),grt(t,e)}j.newInstance(mrt,"vtkTriangleFilter");const Av=t=>(hm("data-v-9f645af7"),t=t(),pm(),t),Srt={class:"l_Dialog"},brt={class:"result"},wrt={class:"newtime"},_rt={class:"newtime"},xrt={class:"animation_s"},Crt={class:"tanniu"},Trt=Av(()=>P("p",null,"后退",-1)),Ert=Av(()=>P("p",null,"播放",-1)),Mrt=Av(()=>P("p",null,"暂停",-1)),Drt=Av(()=>P("p",null,"快进",-1)),krt={class:"l_Dialog"},Rrt={class:"jiancedian asideg1"},Lrt={class:"jc_header he_pading color1"},Ort={class:"jc_content tablecolor"},Art={class:"jc_padding"},Nrt={class:"xian"},Vrt=Av(()=>P("div",{class:"jc_header color1"},[P("span",{class:"jc_tile"},"锋面定义")],-1)),Brt=Av(()=>P("div",{style:{height:"200px"}},null,-1)),$rt={__name:"tanimation",props:{classradio:{type:String}},emits:[],setup(t,{expose:e,emit:n}){const r=t,a=Itt.newInstance(),i=a.getRenderer(),o=a.getRenderWindow();i.resetCamera,o.render;const s=qs.newInstance(),l=yc.newInstance();GJ.newInstance(),v_.newInstance(),l.getProperty().setRepresentation(Ei.SURFACE);const u=G(!1),c=G([{id:0,name:"灾情演化",value:".vtk"},{id:1,name:"演化过程",value:".mesh"}]);G("http://localhost:8080/?aid=0");const f=G("first");let d=G(""),h=G(1),v=G(60);G(2),G(!1);let p=G();G(20),G("#409eff");const g=({row:E,rowIndex:k})=>k%2!=0?"evenRow":"oddRow",y=G({user:"11",region:"shanghai",date:""});G([]);const m=[{date:"站点1",name:"2",address:"10"},{date:"站点1",name:"2",address:"10"},{date:"站点1",name:"2",address:"10"},{date:"站点1",name:"2",address:"10"}],S=({row:E,rowIndex:k})=>{console.log(E)},b=E=>{p.value=E,console.log(p.value),console.log(11111),(r.classradio=="Fire"||r.classradio=="Water")&&(u.value=!0),C()};St(()=>{console.log();const E=new Date().getTime();qw(E),d.value=qw(E)});const x=G(0),_=G(1);function C(){var E=int();E.aid=p.value,E.initGemetry().then(k=>{console.log(E.polydata),E.getScalrsByStep(1).then(R=>{console.log(E.scalar);const O=E.scalar.get("Pressure");console.log("scalarArray:",O);const B=_n.newInstance({name:"Pressure",size:E.polydata.getNumberOfPoints()});console.log(B),B.setData(O),E.polydata.getPointData().setScalars(B),s.setInputData(E.polydata),D(O),s.setScalarRange(x.value,_.value),l.setMapper(s),i.addActor(l),T(),i.resetCamera(),o.render()}).catch(R=>{console.log(R)})}).catch(k=>{})}function T(){const E=v_.newInstance();let k=s.getLookupTable();E.setScalarsToColors(k),E.setGenerateTicks(M(5)),E.setAxisLabel("Pressure"),E.setDrawAboveRangeSwatch(!0);const R=vnt.newInstance();R.addRGBPoint(0,0,0,1),R.addRGBPoint(1,0,1,.5),R.addRGBPoint(2,0,1,0),R.addRGBPoint(3,1,.5,0),R.addRGBPoint(4,1,0,0),s.setLookupTable(R),k=s.getLookupTable(),E.setScalarsToColors(k),i.addActor(E)}function D(E){x.value=E[0],_.value=E[0];for(let k=0;k<=E.length;k++){let R=E[k];x.value>R&&(x.value=R),_.value<R&&(_.value=R)}}function M(E){return k=>{const R=k.getLastTickBounds(),O=cC().domain([0,1]).range([R[0],R[1]]),$=O.ticks(E).map(L=>O(L));uq({minus:"-"});const V=O.tickFormat($[0],$[$.length-1],E),F=$.map(V).map(L=>Number(parseFloat(L).toPrecision(12)).toPrecision());k.setTicks($),k.setTickStrings(F)}}return e({monitor:u,accident5:b}),(E,k)=>{const R=Pe("el-tab-pane"),O=Pe("el-slider"),B=Pe("el-image"),$=Pe("el-tabs"),V=Pe("el-aside"),F=Pe("el-option"),L=Pe("el-form-item"),N=Pe("el-table-column"),H=Pe("el-table");return I(),X("div",Srt,[ct(U(V,{width:"278px",class:"L_aside asideg asidegbg leftbgimg"},{default:q(()=>[P("div",brt,[U($,{modelValue:f.value,"onUpdate:modelValue":k[0]||(k[0]=K=>f.value=K),type:"card",class:"demo-tabs",onTabClick:E.handleClick},{default:q(()=>[U(R,{label:"当前时间",name:"first"},{default:q(()=>[P("div",wrt,Le(w(d)),1)]),_:1}),U(R,{label:"指定时间",name:"second"},{default:q(()=>[P("div",_rt,Le(w(d)),1)]),_:1}),U(R,{label:"动画演示",name:"third"},{default:q(()=>[P("div",xrt,[U(O,{max:w(v),min:w(h)},null,8,["max","min"]),P("div",Crt,[P("ul",null,[P("li",null,[U(B,{src:w(SX),fit:"contain"},null,8,["src"]),Trt]),P("li",null,[U(B,{src:w(bX),fit:"contain"},null,8,["src"]),Ert]),P("li",null,[U(B,{src:w(wX),fit:"contain"},null,8,["src"]),Mrt]),P("li",null,[U(B,{src:w(_X),fit:"contain"},null,8,["src"]),Drt])])])])]),_:1})]),_:1},8,["modelValue","onTabClick"])])]),_:1},512),[[Nt,u.value]]),P("div",krt,[ct(P("div",Rrt,[P("div",Lrt,[U(L,{label:"污染物选择:"},{default:q(()=>[U(w(Xs),{modelValue:y.value.region,"onUpdate:modelValue":k[1]||(k[1]=K=>y.value.region=K),placeholder:"请选择"},{default:q(()=>[(I(!0),X(Qe,null,Vt(c.value,K=>(I(),ve(F,{key:K.id,label:K.name,value:K.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),P("div",Ort,[P("div",Art,[P("div",Nrt,[U(H,{data:m,style:{width:"100%"},onCurrentChange:S,"row-class-name":g,"header-cell-style":{background:"rgba(13, 22, 57, 0.96) "}},{default:q(()=>[U(N,{prop:"date",label:"监测点名称",width:"120"}),U(N,{prop:"name",label:"水位(m)"}),U(N,{prop:"name",label:"流量(m³/s)"})]),_:1},8,["header-cell-style"])])]),Vrt,Brt])],512),[[Nt,u.value]])])])}}},Irt=Om($rt,[["__scopeId","data-v-9f645af7"]]),Prt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAeCAYAAADQBxWhAAAAAXNSR0IArs4c6QAAAd1JREFUSEvtlz1oFFEUhb877hLQgFpYGFRsFgsLZ42N2NlZaoizESGNhTZaCDZKIKBiYRo7LcRCTGYREQXBKgo2IpJZmzSx0moFgz8BDZk5OussLIHMvLGxcKa7vHPefe/OfedwDWB2QXs3GScEm9N4o0/i+9owd0837OsgZjZS4EEjj5utvQl8e27tjvZJvAa2OpAQLHe3sPN8w36m+DDSI+C4CzfDnLN2pCnBdAkSCbQmfAtTzlykVYN6Cf6ShZFuAhdLkJC40mratSxpbOA5843lKmlutaryOjVT1UhFZUrE5YmmXf+rdwqf7WFHk7G4V5RocL1m7B47YB8zGfwGDLvyE/HSUnC7o8e/9fcY0IvzNB/xJGjaeB9zv6NddVhEDOUTe5t368bBoiSuFyiF+3dJbz3T0I4RLnkwUnDkpcC3mfWYsKMxwVHTxsIv8YOEO61RW7QHkfbX4K3I/ycDib4Evm3rx2GkV8ARp/oaicSF1E+nBVNOpAwUx5w9NWq3s+5dpYSfCj5U1lZZW68ClYk7Pbv/x8ThUyoOJ9PpwKk0f0DSGo3WIXvfU6QFrWD5M9C6vZ/a/Lxq3e3MGJwpGqCAFQ9ujPt2tb9R+50OK2YOY0/RwSVeeDGTvwDKqlpaV85FCQAAAABJRU5ErkJggg==";const Frt=t=>(hm("data-v-03e6d232"),t=t(),pm(),t),zrt={class:"appmian"},Grt={class:"ve_menu_logo"},Urt={class:"ve_title"},Hrt={class:"ve_logo_img"},Wrt={class:"ve_right"},Krt={class:"ve_time"},jrt={class:"l_huoqing"},Yrt={class:"l_time"},Xrt={class:"ve_timeioc"},qrt=Frt(()=>P("span",null,"模型库",-1)),Zrt="灾情推演软件",Qrt={__name:"appmian",setup(t){let e=G(),n=G();const r=G("1");G("1");let a=G(),i=G(),o=G(),s=G({time:"火灾事故2023.02.26",name:"2024-03-20 11:30:20"});G({});let l=G();St(()=>{});const u=()=>{a.value=e.value.classradio},c=()=>{n.value.handledisaster(l.value),n.value.accident3()},f=h=>{console.log(h),s.value.name=h.name,s.value.time=h.time,l.value=h.aid},d=(h,v)=>{switch(h){case"1":n.value.accident3(),i.value.boun.collfire=!1,e.value.leftcoll.collfire=!1,e.value.leftcoll.collwater=!1,o.value.monitor=!1;break;case"2":i.value.accident4(),n.value.sour.collfire=!1,n.value.sour.collwater=!1,e.value.leftcoll.collfire=!1,e.value.leftcoll.collwater=!1,o.value.monitor=!1;break;case"3":n.value.sour.collfire=!1,n.value.sour.collwater=!1,i.value.boun.collfire=!1,e.value.accident2(),o.value.monitor=!1;break;case"4":o.value.accident5(l.value),n.value.sour.collfire=!1,n.value.sour.collwater=!1,i.value.boun.collfire=!1,e.value.leftcoll.collfire=!1,e.value.leftcoll.collwater=!1}};return(h,v)=>{const p=Pe("el-image"),g=Pe("el-menu-item"),y=Pe("el-menu"),m=Pe("el-header"),S=Pe("el-main"),b=Pe("el-container");return I(),X("div",zrt,[U(b,null,{default:q(()=>[U(m,null,{default:q(()=>[P("div",Grt,[P("div",Urt,[P("div",Hrt,[U(p,{style:{height:"100%"},src:w(QGe),fit:"contain"},null,8,["src"])]),P("h3",{class:"ve_logo_title"},Le(Zrt))]),U(y,{"default-active":r.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:d},{default:q(()=>[U(g,{index:"1"},{default:q(()=>[dt("灾害源设置")]),_:1}),U(g,{index:"2"},{default:q(()=>[dt("边界设置")]),_:1}),U(g,{index:"3"},{default:q(()=>[dt("灾害推演")]),_:1}),U(g,{index:"4"},{default:q(()=>[dt("推演结果")]),_:1})]),_:1},8,["default-active"]),P("div",Wrt,[P("div",Krt,[P("span",jrt,Le(w(s).name),1),P("span",Yrt,Le(w(s).time),1)]),P("div",Xrt,[U(p,{src:w(Prt),fit:"contain"},null,8,["src"]),qrt])])])]),_:1}),U(S,null,{default:q(()=>[U(ZGe,{ref_key:"lliudialog",ref:e,addselect:u,headerobj:w(s),onHeaderclick:f,onChildfun:c},null,8,["headerobj"]),U(H8e,{ref_key:"sourcedis",ref:n,classradio:w(a),aid:w(l)},null,8,["classradio","aid"]),U(CHe,{ref_key:"boundary",ref:i,classradio:w(a),aid:w(l)},null,8,["classradio","aid"]),U(Irt,{ref_key:"tanimation",ref:o,classradio:w(a),aid:w(l)},null,8,["classradio","aid"])]),_:1})]),_:1})])}}},Jrt=Om(Qrt,[["__scopeId","data-v-03e6d232"]]);const eat={__name:"App",setup(t){return(e,n)=>(I(),ve(Jrt))}},tat="modulepreload",nat=function(t,e){return new URL(t,e).href},A4={},N4=function(e,n,r){if(!n||n.length===0)return e();const a=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=nat(i,r),i in A4)return;A4[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":tat,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.2.5
- * (c) 2023 Eduardo San Martin Morote
- * @license MIT
- */const jh=typeof window<"u";function rat(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const Vn=Object.assign;function k2(t,e){const n={};for(const r in e){const a=e[r];n[r]=es(a)?a.map(t):t(a)}return n}const E0=()=>{},es=Array.isArray,aat=/\/$/,iat=t=>t.replace(aat,"");function R2(t,e,n="/"){let r,a={},i="",o="";const s=e.indexOf("#");let l=e.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(r=e.slice(0,l),i=e.slice(l+1,s>-1?s:e.length),a=t(i)),s>-1&&(r=r||e.slice(0,s),o=e.slice(s,e.length)),r=uat(r??e,n),{fullPath:r+(i&&"?")+i+o,path:r,query:a,hash:o}}function oat(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function V4(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function sat(t,e,n){const r=e.matched.length-1,a=n.matched.length-1;return r>-1&&r===a&&ov(e.matched[r],n.matched[a])&&eee(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function ov(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function eee(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!lat(t[n],e[n]))return!1;return!0}function lat(t,e){return es(t)?B4(t,e):es(e)?B4(e,t):t===e}function B4(t,e){return es(e)?t.length===e.length&&t.every((n,r)=>n===e[r]):t.length===1&&t[0]===e}function uat(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),r=t.split("/"),a=r[r.length-1];(a===".."||a===".")&&r.push("");let i=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==".")if(s==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var Ly;(function(t){t.pop="pop",t.push="push"})(Ly||(Ly={}));var M0;(function(t){t.back="back",t.forward="forward",t.unknown=""})(M0||(M0={}));function cat(t){if(!t)if(jh){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),iat(t)}const fat=/^[^#]+#/;function dat(t,e){return t.replace(fat,"#")+e}function hat(t,e){const n=document.documentElement.getBoundingClientRect(),r=t.getBoundingClientRect();return{behavior:e.behavior,left:r.left-n.left-(e.left||0),top:r.top-n.top-(e.top||0)}}const SC=()=>({left:window.pageXOffset,top:window.pageYOffset});function pat(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=hat(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 $4(t,e){return(history.state?history.state.position-e:-1)+t}const Xk=new Map;function vat(t,e){Xk.set(t,e)}function gat(t){const e=Xk.get(t);return Xk.delete(t),e}let yat=()=>location.protocol+"//"+location.host;function tee(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),V4(l,"")}return V4(n,t)+r+a}function mat(t,e,n,r){let a=[],i=[],o=null;const s=({state:d})=>{const h=tee(t,location),v=n.value,p=e.value;let g=0;if(d){if(n.value=h,e.value=d,o&&o===v){o=null;return}g=p?d.position-p.position:0}else r(h);a.forEach(y=>{y(n.value,v,{delta:g,type:Ly.pop,direction:g?g>0?M0.forward:M0.back:M0.unknown})})};function l(){o=n.value}function u(d){a.push(d);const h=()=>{const v=a.indexOf(d);v>-1&&a.splice(v,1)};return i.push(h),h}function c(){const{history:d}=window;d.state&&d.replaceState(Vn({},d.state,{scroll:SC()}),"")}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,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function I4(t,e,n,r=!1,a=!1){return{back:t,current:e,forward:n,replaced:r,position:window.history.length,scroll:a?SC():null}}function Sat(t){const{history:e,location:n}=window,r={value:tee(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:yat()+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=Vn({},e.state,I4(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=Vn({},a.value,e.state,{forward:l,scroll:SC()});i(c.current,c,!0);const f=Vn({},I4(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 bat(t){t=cat(t);const e=Sat(t),n=mat(t,e.state,e.location,e.replace);function r(i,o=!0){o||n.pauseListeners(),history.go(i)}const a=Vn({location:"",base:t,go:r,createHref:dat.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 wat(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),bat(t)}function _at(t){return typeof t=="string"||t&&typeof t=="object"}function nee(t){return typeof t=="string"||typeof t=="symbol"}const du={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ree=Symbol("");var P4;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(P4||(P4={}));function sv(t,e){return Vn(new Error,{type:t,[ree]:!0},e)}function ul(t,e){return t instanceof Error&&ree in t&&(e==null||!!(t.type&e))}const F4="[^/]+?",xat={sensitive:!1,strict:!1,start:!0,end:!0},Cat=/[.+*?^${}()[\]/\\]/g;function Tat(t,e){const n=Vn({},xat,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;f<u.length;f++){const d=u[f];let h=40+(n.sensitive?.25:0);if(d.type===0)f||(a+="/"),a+=d.value.replace(Cat,"\\$&"),h+=40;else if(d.type===1){const{value:v,repeatable:p,optional:g,regexp:y}=d;i.push({name:v,repeatable:p,optional:g});const m=y||F4;if(m!==F4){h+=10;try{new RegExp(`(${m})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${v}" (${m}): `+b.message)}}let S=p?`((?:${m})(?:/(?:${m}))*)`:`(${m})`;f||(S=g&&u.length<2?`(?:/${S})`:"/"+S),g&&(S+="?"),a+=S,h+=20,g&&(h+=-8),p&&(h+=-20),m===".*"&&(h+=-50)}c.push(h)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(a+="/?"),n.end?a+="$":n.strict&&(a+="(?:/|$)");const o=new RegExp(a,n.sensitive?"":"i");function s(u){const c=u.match(o),f={};if(!c)return null;for(let d=1;d<c.length;d++){const h=c[d]||"",v=i[d-1];f[v.name]=h&&v.repeatable?h.split("/"):h}return f}function l(u){let c="",f=!1;for(const d of t){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const h of d)if(h.type===0)c+=h.value;else if(h.type===1){const{value:v,repeatable:p,optional:g}=h,y=v in u?u[v]:"";if(es(y)&&!p)throw new Error(`Provided param "${v}" is an array but it is not repeatable (* or + modifiers)`);const m=es(y)?y.join("/"):y;if(!m)if(g)d.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${v}"`);c+=m}}return c||"/"}return{re:o,score:r,keys:i,parse:s,stringify:l}}function Eat(t,e){let n=0;for(;n<t.length&&n<e.length;){const r=e[n]-t[n];if(r)return r;n++}return t.length<e.length?t.length===1&&t[0]===40+40?-1:1:t.length>e.length?e.length===1&&e[0]===40+40?1:-1:0}function Mat(t,e){let n=0;const r=t.score,a=e.score;for(;n<r.length&&n<a.length;){const i=Eat(r[n],a[n]);if(i)return i;n++}if(Math.abs(a.length-r.length)===1){if(z4(r))return 1;if(z4(a))return-1}return a.length-r.length}function z4(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const Dat={type:0,value:""},kat=/[a-zA-Z0-9_]/;function Rat(t){if(!t)return[[]];if(t==="/")return[[Dat]];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<t.length;){if(l=t[s++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),o()):l===":"?(f(),n=1):d();break;case 4:d(),n=r;break;case 1:l==="("?n=2:kat.test(l)?d():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&s--,c="";break;default:e("Unknown state");break}}return n===2&&e(`Unfinished custom RegExp for param "${u}"`),f(),o(),a}function Lat(t,e,n){const r=Tat(Rat(t.path),n),a=Vn(r,{record:t,parent:e,children:[],alias:[]});return e&&!a.record.aliasOf==!e.record.aliasOf&&e.children.push(a),a}function Oat(t,e){const n=[],r=new Map;e=H4({strict:!1,end:!0,sensitive:!1},e);function a(c){return r.get(c)}function i(c,f,d){const h=!d,v=Aat(c);v.aliasOf=d&&d.record;const p=H4(e,c),g=[v];if("alias"in c){const S=typeof c.alias=="string"?[c.alias]:c.alias;for(const b of S)g.push(Vn({},v,{components:d?d.record.components:v.components,path:b,aliasOf:d?d.record:v}))}let y,m;for(const S of g){const{path:b}=S;if(f&&b[0]!=="/"){const x=f.record.path,_=x[x.length-1]==="/"?"":"/";S.path=f.record.path+(b&&_+b)}if(y=Lat(S,f,p),d?d.alias.push(y):(m=m||y,m!==y&&m.alias.push(y),h&&c.name&&!U4(y)&&o(c.name)),v.children){const x=v.children;for(let _=0;_<x.length;_++)i(x[_],y,d&&d.children[_])}d=d||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&l(y)}return m?()=>{o(m)}:E0}function o(c){if(nee(c)){const f=r.get(c);f&&(r.delete(c),n.splice(n.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=n.indexOf(c);f>-1&&(n.splice(f,1),c.record.name&&r.delete(c.record.name),c.children.forEach(o),c.alias.forEach(o))}}function s(){return n}function l(c){let f=0;for(;f<n.length&&Mat(c,n[f])>=0&&(c.record.path!==n[f].record.path||!aee(c,n[f]));)f++;n.splice(f,0,c),c.record.name&&!U4(c)&&r.set(c.record.name,c)}function u(c,f){let d,h={},v,p;if("name"in c&&c.name){if(d=r.get(c.name),!d)throw sv(1,{location:c});p=d.record.name,h=Vn(G4(f.params,d.keys.filter(m=>!m.optional).map(m=>m.name)),c.params&&G4(c.params,d.keys.map(m=>m.name))),v=d.stringify(h)}else if("path"in c)v=c.path,d=n.find(m=>m.re.test(v)),d&&(h=d.parse(v),p=d.record.name);else{if(d=f.name?r.get(f.name):n.find(m=>m.re.test(f.path)),!d)throw sv(1,{location:c,currentLocation:f});p=d.record.name,h=Vn({},f.params,c.params),v=d.stringify(h)}const g=[];let y=d;for(;y;)g.unshift(y.record),y=y.parent;return{name:p,path:v,params:h,matched:g,meta:Vat(g)}}return t.forEach(c=>i(c)),{addRoute:i,resolve:u,removeRoute:o,getRoutes:s,getRecordMatcher:a}}function G4(t,e){const n={};for(const r of e)r in t&&(n[r]=t[r]);return n}function Aat(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:Nat(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function Nat(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=="object"?n[r]:n;return e}function U4(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function Vat(t){return t.reduce((e,n)=>Vn(e,n.meta),{})}function H4(t,e){const n={};for(const r in t)n[r]=r in e?e[r]:t[r];return n}function aee(t,e){return e.children.some(n=>n===t||aee(t,n))}const iee=/#/g,Bat=/&/g,$at=/\//g,Iat=/=/g,Pat=/\?/g,oee=/\+/g,Fat=/%5B/g,zat=/%5D/g,see=/%5E/g,Gat=/%60/g,lee=/%7B/g,Uat=/%7C/g,uee=/%7D/g,Hat=/%20/g;function G3(t){return encodeURI(""+t).replace(Uat,"|").replace(Fat,"[").replace(zat,"]")}function Wat(t){return G3(t).replace(lee,"{").replace(uee,"}").replace(see,"^")}function qk(t){return G3(t).replace(oee,"%2B").replace(Hat,"+").replace(iee,"%23").replace(Bat,"%26").replace(Gat,"`").replace(lee,"{").replace(uee,"}").replace(see,"^")}function Kat(t){return qk(t).replace(Iat,"%3D")}function jat(t){return G3(t).replace(iee,"%23").replace(Pat,"%3F")}function Yat(t){return t==null?"":jat(t).replace($at,"%2F")}function m_(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function Xat(t){const e={};if(t===""||t==="?")return e;const r=(t[0]==="?"?t.slice(1):t).split("&");for(let a=0;a<r.length;++a){const i=r[a].replace(oee," "),o=i.indexOf("="),s=m_(o<0?i:i.slice(0,o)),l=o<0?null:m_(i.slice(o+1));if(s in e){let u=e[s];es(u)||(u=e[s]=[u]),u.push(l)}else e[s]=l}return e}function W4(t){let e="";for(let n in t){const r=t[n];if(n=Kat(n),r==null){r!==void 0&&(e+=(e.length?"&":"")+n);continue}(es(r)?r.map(i=>i&&qk(i)):[r&&qk(r)]).forEach(i=>{i!==void 0&&(e+=(e.length?"&":"")+n,i!=null&&(e+="="+i))})}return e}function qat(t){const e={};for(const n in t){const r=t[n];r!==void 0&&(e[n]=es(r)?r.map(a=>a==null?null:""+a):r==null?r:""+r)}return e}const Zat=Symbol(""),K4=Symbol(""),U3=Symbol(""),cee=Symbol(""),Zk=Symbol("");function hg(){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.slice(),reset:n}}function Ou(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(sv(4,{from:n,to:e})):f instanceof Error?s(f):_at(f)?s(sv(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 L2(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(Qat(s)){const u=(s.__vccOpts||s)[e];u&&a.push(Ou(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=rat(u)?u.default:u;i.components[o]=c;const d=(c.__vccOpts||c)[e];return d&&Ou(d,n,r,i,o)()}))}}return a}function Qat(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function j4(t){const e=Ye(U3),n=Ye(cee),r=A(()=>e.resolve(w(t.to))),a=A(()=>{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(ov.bind(null,c));if(d>-1)return d;const h=Y4(l[u-2]);return u>1&&Y4(c)===h&&f[f.length-1].path!==h?f.findIndex(ov.bind(null,l[u-2])):d}),i=A(()=>a.value>-1&&nit(n.params,r.value.params)),o=A(()=>a.value>-1&&a.value===n.matched.length-1&&eee(n.params,r.value.params));function s(l={}){return tit(l)?e[w(t.replace)?"replace":"push"](w(t.to)).catch(E0):Promise.resolve()}return{route:r,href:A(()=>r.value.href),isActive:i,isExactActive:o,navigate:s}}const Jat=ae({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:j4,setup(t,{slots:e}){const n=Zt(j4(t)),{options:r}=Ye(U3),a=A(()=>({[X4(t.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[X4(t.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=e.default&&e.default(n);return t.custom?i:rt("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:a.value},i)}}}),eit=Jat;function tit(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 nit(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(!es(a)||a.length!==r.length||r.some((i,o)=>i!==a[o]))return!1}return!0}function Y4(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const X4=(t,e,n)=>t??e??n,rit=ae({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const r=Ye(Zk),a=A(()=>t.route||r.value),i=Ye(K4,0),o=A(()=>{let u=w(i);const{matched:c}=a.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),s=A(()=>a.value.matched[o.value]);At(K4,A(()=>o.value+1)),At(Zat,s),At(Zk,a);const l=G();return Me(()=>[l.value,s.value,t.name],([u,c,f],[d,h,v])=>{c&&(c.instances[f]=u,h&&h!==c&&u&&u===d&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!ov(c,h)||!d)&&(c.enterCallbacks[f]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=a.value,c=t.name,f=s.value,d=f&&f.components[c];if(!d)return q4(n.default,{Component:d,route:u});const h=f.props[c],v=h?h===!0?u.params:typeof h=="function"?h(u):h:null,g=rt(d,Vn({},v,e,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return q4(n.default,{Component:g,route:u})||g}}});function q4(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const ait=rit;function iit(t){const e=Oat(t.routes,t),n=t.parseQuery||Xat,r=t.stringifyQuery||W4,a=t.history,i=hg(),o=hg(),s=hg(),l=Cn(du);let u=du;jh&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=k2.bind(null,J=>""+J),f=k2.bind(null,Yat),d=k2.bind(null,m_);function h(J,Z){let ee,ce;return nee(J)?(ee=e.getRecordMatcher(J),ce=Z):ce=J,e.addRoute(ce,ee)}function v(J){const Z=e.getRecordMatcher(J);Z&&e.removeRoute(Z)}function p(){return e.getRoutes().map(J=>J.record)}function g(J){return!!e.getRecordMatcher(J)}function y(J,Z){if(Z=Vn({},Z||l.value),typeof J=="string"){const oe=R2(n,J,Z.path),Se=e.resolve({path:oe.path},Z),fe=a.createHref(oe.fullPath);return Vn(oe,Se,{params:d(Se.params),hash:m_(oe.hash),redirectedFrom:void 0,href:fe})}let ee;if("path"in J)ee=Vn({},J,{path:R2(n,J.path,Z.path).path});else{const oe=Vn({},J.params);for(const Se in oe)oe[Se]==null&&delete oe[Se];ee=Vn({},J,{params:f(oe)}),Z.params=f(Z.params)}const ce=e.resolve(ee,Z),ue=J.hash||"";ce.params=c(d(ce.params));const Y=oat(r,Vn({},J,{hash:Wat(ue),path:ce.path})),te=a.createHref(Y);return Vn({fullPath:Y,hash:ue,query:r===W4?qat(J.query):J.query||{}},ce,{redirectedFrom:void 0,href:te})}function m(J){return typeof J=="string"?R2(n,J,l.value.path):Vn({},J)}function S(J,Z){if(u!==J)return sv(8,{from:Z,to:J})}function b(J){return C(J)}function x(J){return b(Vn(m(J),{replace:!0}))}function _(J){const Z=J.matched[J.matched.length-1];if(Z&&Z.redirect){const{redirect:ee}=Z;let ce=typeof ee=="function"?ee(J):ee;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=m(ce):{path:ce},ce.params={}),Vn({query:J.query,hash:J.hash,params:"path"in ce?{}:J.params},ce)}}function C(J,Z){const ee=u=y(J),ce=l.value,ue=J.state,Y=J.force,te=J.replace===!0,oe=_(ee);if(oe)return C(Vn(m(oe),{state:typeof oe=="object"?Vn({},ue,oe.state):ue,force:Y,replace:te}),Z||ee);const Se=ee;Se.redirectedFrom=Z;let fe;return!Y&&sat(r,ce,ee)&&(fe=sv(16,{to:Se,from:ce}),H(ce,ce,!0,!1)),(fe?Promise.resolve(fe):M(Se,ce)).catch(ne=>ul(ne)?ul(ne,2)?ne:N(ne):F(ne,Se,ce)).then(ne=>{if(ne){if(ul(ne,2))return C(Vn({replace:te},m(ne.to),{state:typeof ne.to=="object"?Vn({},ue,ne.to.state):ue,force:Y}),Z||Se)}else ne=k(Se,ce,!0,te,ue);return E(Se,ce,ne),ne})}function T(J,Z){const ee=S(J,Z);return ee?Promise.reject(ee):Promise.resolve()}function D(J){const Z=ie.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(J):J()}function M(J,Z){let ee;const[ce,ue,Y]=oit(J,Z);ee=L2(ce.reverse(),"beforeRouteLeave",J,Z);for(const oe of ce)oe.leaveGuards.forEach(Se=>{ee.push(Ou(Se,J,Z))});const te=T.bind(null,J,Z);return ee.push(te),le(ee).then(()=>{ee=[];for(const oe of i.list())ee.push(Ou(oe,J,Z));return ee.push(te),le(ee)}).then(()=>{ee=L2(ue,"beforeRouteUpdate",J,Z);for(const oe of ue)oe.updateGuards.forEach(Se=>{ee.push(Ou(Se,J,Z))});return ee.push(te),le(ee)}).then(()=>{ee=[];for(const oe of Y)if(oe.beforeEnter)if(es(oe.beforeEnter))for(const Se of oe.beforeEnter)ee.push(Ou(Se,J,Z));else ee.push(Ou(oe.beforeEnter,J,Z));return ee.push(te),le(ee)}).then(()=>(J.matched.forEach(oe=>oe.enterCallbacks={}),ee=L2(Y,"beforeRouteEnter",J,Z),ee.push(te),le(ee))).then(()=>{ee=[];for(const oe of o.list())ee.push(Ou(oe,J,Z));return ee.push(te),le(ee)}).catch(oe=>ul(oe,8)?oe:Promise.reject(oe))}function E(J,Z,ee){s.list().forEach(ce=>D(()=>ce(J,Z,ee)))}function k(J,Z,ee,ce,ue){const Y=S(J,Z);if(Y)return Y;const te=Z===du,oe=jh?history.state:{};ee&&(ce||te?a.replace(J.fullPath,Vn({scroll:te&&oe&&oe.scroll},ue)):a.push(J.fullPath,ue)),l.value=J,H(J,Z,ee,te),N()}let R;function O(){R||(R=a.listen((J,Z,ee)=>{if(!be.listening)return;const ce=y(J),ue=_(ce);if(ue){C(Vn(ue,{replace:!0}),ce).catch(E0);return}u=ce;const Y=l.value;jh&&vat($4(Y.fullPath,ee.delta),SC()),M(ce,Y).catch(te=>ul(te,12)?te:ul(te,2)?(C(te.to,ce).then(oe=>{ul(oe,20)&&!ee.delta&&ee.type===Ly.pop&&a.go(-1,!1)}).catch(E0),Promise.reject()):(ee.delta&&a.go(-ee.delta,!1),F(te,ce,Y))).then(te=>{te=te||k(ce,Y,!1),te&&(ee.delta&&!ul(te,8)?a.go(-ee.delta,!1):ee.type===Ly.pop&&ul(te,20)&&a.go(-1,!1)),E(ce,Y,te)}).catch(E0)}))}let B=hg(),$=hg(),V;function F(J,Z,ee){N(J);const ce=$.list();return ce.length?ce.forEach(ue=>ue(J,Z,ee)):console.error(J),Promise.reject(J)}function L(){return V&&l.value!==du?Promise.resolve():new Promise((J,Z)=>{B.add([J,Z])})}function N(J){return V||(V=!J,O(),B.list().forEach(([Z,ee])=>J?ee(J):Z()),B.reset()),J}function H(J,Z,ee,ce){const{scrollBehavior:ue}=t;if(!jh||!ue)return Promise.resolve();const Y=!ee&&gat($4(J.fullPath,0))||(ce||!ee)&&history.state&&history.state.scroll||null;return Ze().then(()=>ue(J,Z,Y)).then(te=>te&&pat(te)).catch(te=>F(te,J,Z))}const K=J=>a.go(J);let Q;const ie=new Set,be={currentRoute:l,listening:!0,addRoute:h,removeRoute:v,hasRoute:g,getRoutes:p,resolve:y,options:t,push:b,replace:x,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:i.add,beforeResolve:o.add,afterEach:s.add,onError:$.add,isReady:L,install(J){const Z=this;J.component("RouterLink",eit),J.component("RouterView",ait),J.config.globalProperties.$router=Z,Object.defineProperty(J.config.globalProperties,"$route",{enumerable:!0,get:()=>w(l)}),jh&&!Q&&l.value===du&&(Q=!0,b(a.location).catch(ue=>{}));const ee={};for(const ue in du)Object.defineProperty(ee,ue,{get:()=>l.value[ue],enumerable:!0});J.provide(U3,Z),J.provide(cee,YL(ee)),J.provide(Zk,l);const ce=J.unmount;ie.add(J),J.unmount=function(){ie.delete(J),ie.size<1&&(u=du,R&&R(),R=null,l.value=du,Q=!1,V=!1),ce()}}};function le(J){return J.reduce((Z,ee)=>Z.then(()=>D(ee)),Promise.resolve())}return be}function oit(t,e){const n=[],r=[],a=[],i=Math.max(e.matched.length,t.matched.length);for(let o=0;o<i;o++){const s=e.matched[o];s&&(t.matched.find(u=>ov(u,s))?r.push(s):n.push(s));const l=t.matched[o];l&&(e.matched.find(u=>ov(u,l))||a.push(l))}return[n,r,a]}const sit=iit({history:wat(),routes:[{path:"/myHome",component:()=>N4(()=>import("./myHome-0b347f35.js"),["./myHome-0b347f35.js","./myHome-eeb55409.css"],import.meta.url)},{path:"/myDemo",name:"MyDemo",component:()=>N4(()=>import("./myDemo-b1f5f175.js"),["./myDemo-b1f5f175.js","./myDemo-b2d8d5e4.css"],import.meta.url)}]});/*! *****************************************************************************
- 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 Qk=function(t,e){return Qk=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])},Qk(t,e)};function we(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Qk(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var lit=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),uit=function(){function t(){this.browser=new lit,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}(),Rf=new uit;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Rf.wxa=!0,Rf.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Rf.worker=!0:typeof navigator>"u"?(Rf.node=!0,Rf.svgSupported=!0):cit(navigator.userAgent,Rf);function cit(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 an=Rf;var H3=12,fee="sans-serif",mc=H3+"px "+fee,fit=20,dit=100,hit="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function pit(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),a=(t.charCodeAt(n)-fit)/dit;e[r]=a}return e}var vit=pit(hit),ts={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var a=ts.createCanvas();t=a&&a.getContext("2d")}if(t)return e!==r&&(e=t.font=r||mc),t.measureText(n);n=n||"",r=r||mc;var i=/(\d+)px/.exec(r),o=i&&+i[1]||H3,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var u=vit[n[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function dee(t){for(var e in ts)t[e]&&(ts[e]=t[e])}var hee=fo(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),pee=fo(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Nv=Object.prototype.toString,bC=Array.prototype,git=bC.forEach,yit=bC.filter,W3=bC.slice,mit=bC.map,Z4=(function(){}).constructor,dS=Z4?Z4.prototype:null,K3="__proto__",Sit=2311;function j3(){return Sit++}function wC(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function wt(t){if(t==null||typeof t!="object")return t;var e=t,n=Nv.call(t);if(n==="[object Array]"){if(!Ep(t)){e=[];for(var r=0,a=t.length;r<a;r++)e[r]=wt(t[r])}}else if(pee[n]){if(!Ep(t)){var i=t.constructor;if(i.from)e=i.from(t);else{e=new i(t.length);for(var r=0,a=t.length;r<a;r++)e[r]=t[r]}}}else if(!hee[n]&&!Ep(t)&&!lv(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==K3&&(e[o]=wt(t[o]))}return e}function $t(t,e,n){if(!bt(e)||!bt(t))return n?wt(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==K3){var a=t[r],i=e[r];bt(i)&&bt(a)&&!$e(i)&&!$e(a)&&!lv(i)&&!lv(a)&&!Jk(i)&&!Jk(a)&&!Ep(i)&&!Ep(a)?$t(a,i,n):(n||!(r in t))&&(t[r]=wt(e[r]))}return t}function _C(t,e){for(var n=t[0],r=1,a=t.length;r<a;r++)n=$t(n,t[r],e);return n}function Oe(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==K3&&(t[n]=e[n]);return t}function mt(t,e,n){for(var r=Yt(e),a=0;a<r.length;a++){var i=r[a];(n?e[i]!=null:t[i]==null)&&(t[i]=e[i])}return t}var bit=ts.createCanvas;function zt(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function Y3(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var a in n)n.hasOwnProperty(a)&&(t.prototype[a]=n[a]);t.prototype.constructor=t,t.superClass=e}function sr(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),a=0;a<r.length;a++){var i=r[a];i!=="constructor"&&(n?e[i]!=null:t[i]==null)&&(t[i]=e[i])}else mt(t,e,n)}function la(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function W(t,e,n){if(t&&e)if(t.forEach&&t.forEach===git)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,a=t.length;r<a;r++)e.call(n,t[r],r,t);else for(var i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function Ie(t,e,n){if(!t)return[];if(!e)return xC(t);if(t.map&&t.map===mit)return t.map(e,n);for(var r=[],a=0,i=t.length;a<i;a++)r.push(e.call(n,t[a],a,t));return r}function fo(t,e,n,r){if(t&&e){for(var a=0,i=t.length;a<i;a++)n=e.call(r,n,t[a],a,t);return n}}function wn(t,e,n){if(!t)return[];if(!e)return xC(t);if(t.filter&&t.filter===yit)return t.filter(e,n);for(var r=[],a=0,i=t.length;a<i;a++)e.call(n,t[a],a,t)&&r.push(t[a]);return r}function vee(t,e,n){if(t&&e){for(var r=0,a=t.length;r<a;r++)if(e.call(n,t[r],r,t))return t[r]}}function Yt(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function wit(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(W3.call(arguments)))}}var st=dS&>(dS.bind)?dS.call.bind(dS.bind):wit;function kt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(W3.call(arguments)))}}function $e(t){return Array.isArray?Array.isArray(t):Nv.call(t)==="[object Array]"}function gt(t){return typeof t=="function"}function it(t){return typeof t=="string"}function S_(t){return Nv.call(t)==="[object String]"}function on(t){return typeof t=="number"}function bt(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function Jk(t){return!!hee[Nv.call(t)]}function yi(t){return!!pee[Nv.call(t)]}function lv(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function Pm(t){return t.colorStops!=null}function gee(t){return t.image!=null}function yee(t){return Nv.call(t)==="[object RegExp]"}function uv(t){return t!==t}function Nr(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(t[n]!=null)return t[n]}function Pt(t,e){return t??e}function Xo(t,e,n){return t??e??n}function xC(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return W3.apply(t,e)}function CC(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Ea(t,e){if(!t)throw new Error(e)}function Qi(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var mee="__ec_primitive__";function Oy(t){t[mee]=!0}function Ep(t){return t[mee]}var _it=function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return Yt(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t}(),See=typeof Map=="function";function xit(){return See?new Map:new _it}var bee=function(){function t(e){var n=$e(e);this.data=xit();var r=this;e instanceof t?e.each(a):e&&W(e,a);function a(i,o){n?r.set(i,o):r.set(o,i)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,a){e.call(n,r,a)})},t.prototype.keys=function(){var e=this.data.keys();return See?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function ht(t){return new bee(t)}function Ay(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var a=t.length,r=0;r<e.length;r++)n[r+a]=e[r];return n}function Fm(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&Oe(n,e),n}function X3(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function lt(t,e){return t.hasOwnProperty(e)}function ir(){}var D0=180/Math.PI;const Cit=Object.freeze(Object.defineProperty({__proto__:null,HashMap:bee,RADIAN_TO_DEGREE:D0,assert:Ea,bind:st,clone:wt,concatArray:Ay,createCanvas:bit,createHashMap:ht,createObject:Fm,curry:kt,defaults:mt,disableUserSelect:X3,each:W,eqNaN:uv,extend:Oe,filter:wn,find:vee,guid:j3,hasOwn:lt,indexOf:zt,inherits:Y3,isArray:$e,isArrayLike:la,isBuiltInObject:Jk,isDom:lv,isFunction:gt,isGradientObject:Pm,isImagePatternObject:gee,isNumber:on,isObject:bt,isPrimitive:Ep,isRegExp:yee,isString:it,isStringSafe:S_,isTypedArray:yi,keys:Yt,logError:wC,map:Ie,merge:$t,mergeAll:_C,mixin:sr,noop:ir,normalizeCssArray:CC,reduce:fo,retrieve:Nr,retrieve2:Pt,retrieve3:Xo,setAsPrimitive:Oy,slice:xC,trim:Qi},Symbol.toStringTag,{value:"Module"}));function Bc(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function ya(t,e){return t[0]=e[0],t[1]=e[1],t}function zs(t){return[t[0],t[1]]}function wee(t,e,n){return t[0]=e,t[1]=n,t}function eR(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function b_(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function Gu(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Ny(t){return Math.sqrt(q3(t))}var Tit=Ny;function q3(t){return t[0]*t[0]+t[1]*t[1]}var Eit=q3;function Mit(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function Dit(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function kit(t,e){return t[0]*e[0]+t[1]*e[1]}function k0(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Qd(t,e){var n=Ny(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function w_(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Tl=w_;function _ee(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ec=_ee;function Rit(t,e){return t[0]=-e[0],t[1]=-e[1],t}function R0(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function Xr(t,e,n){var r=e[0],a=e[1];return t[0]=n[0]*r+n[2]*a+n[4],t[1]=n[1]*r+n[3]*a+n[5],t}function El(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Ml(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}const Lit=Object.freeze(Object.defineProperty({__proto__:null,add:eR,applyTransform:Xr,clone:zs,copy:ya,create:Bc,dist:Tl,distSquare:ec,distance:w_,distanceSquare:_ee,div:Dit,dot:kit,len:Ny,lenSquare:q3,length:Tit,lengthSquare:Eit,lerp:R0,max:Ml,min:El,mul:Mit,negate:Rit,normalize:Qd,scale:k0,scaleAndAdd:b_,set:wee,sub:Gu},Symbol.toStringTag,{value:"Module"}));var mh=function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t}(),Oit=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var n=e.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new mh(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,a=e.offsetY,i=r-this._x,o=a-this._y;this._x=r,this._y=a,n.drift(i,o,e),this.handler.dispatchToElement(new mh(n,e),"drag",e.event);var s=this.handler.findHover(r,a,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new mh(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new mh(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new mh(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new mh(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}();const Ait=Oit;var Nit=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof n=="function"&&(a=r,r=n,n=null),!r||!e)return this;var o=this._$eventProcessor;n!=null&&o&&o.normalizeQuery&&(n=o.normalizeQuery(n)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===r)return this;var l={h:r,query:n,ctx:a||this,callAtLast:r.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var a=[],i=0,o=r[e].length;i<o;i++)r[e][i].h!==n&&a.push(r[e][i]);r[e]=a}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=n.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=n.length,s=n[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,n[0]);break;case 2:c.h.call(s,n[0],n[1]);break;default:c.h.apply(s,n.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},t}();const po=Nit;var Vit=Math.log(2);function tR(t,e,n,r,a,i){var o=r+"-"+a,s=t.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/Vit);return t[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&a||(f+=(h%2?-1:1)*t[n][d]*tR(t,e-1,c,u,a|v,i),h++)}return i[o]=f,f}function Q4(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},a=tR(n,8,0,0,0,r);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*tR(n,7,o===0?1:0,1<<o,1<<s,r)/a*e[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var J4="___zrEVENTSAVED",O2=[];function Bit(t,e,n,r,a){return nR(O2,e,r,a,!0)&&nR(t,n,O2[0],O2[1])}function nR(t,e,n,r,a){if(e.getBoundingClientRect&&an.domSupported&&!xee(e)){var i=e[J4]||(e[J4]={}),o=$it(e,i),s=Iit(o,i,a);if(s)return s(t,n,r),!0}return!1}function $it(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",a[u]+":0",r[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),t.appendChild(o),n.push(o)}return n}function Iit(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?Q4(s,o):Q4(o,s))}function xee(t){return t.nodeName.toUpperCase()==="CANVAS"}var Pit=/([&<>"'])/g,Fit={"&":"&","<":"<",">":">",'"':""","'":"'"};function Pa(t){return t==null?"":(t+"").replace(Pit,function(e,n){return Fit[n]})}var zit=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,A2=[],Git=an.browser.firefox&&+an.browser.version.split(".")[0]<39;function rR(t,e,n,r){return n=n||{},r?e5(t,e,n):Git&&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):e5(t,e,n),n}function e5(t,e,n){if(an.domSupported&&t.getBoundingClientRect){var r=e.clientX,a=e.clientY;if(xee(t)){var i=t.getBoundingClientRect();n.zrX=r-i.left,n.zrY=a-i.top;return}else if(nR(A2,t,r,a)){n.zrX=A2[0],n.zrY=A2[1];return}}n.zrX=n.zrY=0}function Z3(t){return t||window.event}function zi(t,e,n){if(e=Z3(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&&rR(t,o,e,n)}else{rR(t,e,e,n);var i=Uit(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&zit.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Uit(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 aR(t,e,n,r){t.addEventListener(e,n,r)}function Hit(t,e,n,r){t.removeEventListener(e,n,r)}var Gl=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function t5(t){return t.which===2||t.which===3}var Wit=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;o<s;o++){var l=a[o],u=rR(r,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},t.prototype._recognize=function(e){for(var n in N2)if(N2.hasOwnProperty(n)){var r=N2[n](this._track,e);if(r)return r}},t}();function n5(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function Kit(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var N2={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,a=(t[n-2]||{}).points||r;if(a&&a.length>1&&r&&r.length>1){var i=n5(r)/n5(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Kit(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function Li(){return[1,0,0,1,0,0]}function zm(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function TC(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 Gs(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 ns(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 $c(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 EC(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 Jd(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 Cee(t){var e=Li();return TC(e,t),e}const jit=Object.freeze(Object.defineProperty({__proto__:null,clone:Cee,copy:TC,create:Li,identity:zm,invert:Jd,mul:Gs,rotate:$c,scale:EC,translate:ns},Symbol.toStringTag,{value:"Module"}));var Yit=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 It=Yit;var hS=Math.min,pS=Math.max,nf=new It,rf=new It,af=new It,of=new It,pg=new It,vg=new It,Xit=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=hS(e.x,this.x),r=hS(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=pS(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=pS(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=Li();return ns(i,i,[-n.x,-n.y]),EC(i,i,[r,a]),ns(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=!(i<l||u<a||s<c||f<o);if(n){var h=1/0,v=0,p=Math.abs(i-l),g=Math.abs(u-a),y=Math.abs(s-c),m=Math.abs(f-o),S=Math.min(p,g),b=Math.min(y,m);i<l||u<a?S>v&&(v=S,p<g?It.set(vg,-p,0):It.set(vg,g,0)):S<h&&(h=S,p<g?It.set(pg,p,0):It.set(pg,-g,0)),s<c||f<o?b>v&&(v=b,y<m?It.set(vg,0,-y):It.set(vg,0,m)):S<h&&(h=S,y<m?It.set(pg,0,y):It.set(pg,0,-m))}return n&&It.copy(n,d?pg:vg),d},t.prototype.contain=function(e,n){var r=this;return e>=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}nf.x=af.x=n.x,nf.y=of.y=n.y,rf.x=of.x=n.x+n.width,rf.y=af.y=n.y+n.height,nf.transform(r),of.transform(r),rf.transform(r),af.transform(r),e.x=hS(nf.x,rf.x,af.x,of.x),e.y=hS(nf.y,rf.y,af.y,of.y);var l=pS(nf.x,rf.x,af.x,of.x),u=pS(nf.y,rf.y,af.y,of.y);e.width=l-e.x,e.height=u-e.y},t}();const Ft=Xit;var Tee="silent";function qit(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:Zit}}function Zit(){Gl(this.event)}var Qit=function(t){we(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}(po),gg=function(){function t(e,n){this.x=e,this.y=n}return t}(),Jit=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],V2=new Ft(0,0,0,0),Eee=function(t){we(e,t);function e(n,r,a,i,o){var s=t.call(this)||this;return s._hovered=new gg(0,0),s.storage=n,s.painter=r,s.painterRoot=i,s._pointerSize=o,a=a||new Qit,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new Ait(s),s}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(W(Jit,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=Mee(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 gg(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 gg(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=qit(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 gg(n,r);if(r5(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)&&(V2.copy(d.getBoundingRect()),d.transform&&V2.applyTransform(d.transform),V2.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=v){var m=n+g*Math.cos(y),S=r+g*Math.sin(y);if(r5(s,o,m,S,a),o.target)return o}}return o},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new Wit);var a=this._gestureMgr;r==="start"&&a.clear();var i=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&a.clear(),i){var o=i.type;n.gestureEvent=o;var s=new gg;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(po);W(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Eee.prototype[t]=function(e){var n=e.zrX,r=e.zrY,a=Mee(this,n,r),i,o;if((t!=="mouseup"||!a)&&(i=this.findHover(n,r),o=i.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Tl(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});function eot(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?Tee:!0}return!1}function r5(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=eot(o,n,r))&&(!e.topTarget&&(e.topTarget=o),s!==Tee)){e.target=o;break}}}function Mee(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}const tot=Eee;var Dee=32,yg=7;function not(t){for(var e=0;t>=Dee;)e|=t&1,t>>=1;return t+e}function a5(t,e,n,r){var a=e+1;if(a===n)return 1;if(r(t[a++],t[e])<0){for(;a<n&&r(t[a],t[a-1])<0;)a++;rot(t,e,a)}else for(;a<n&&r(t[a],t[a-1])>=0;)a++;return a-e}function rot(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function i5(t,e,n,r,a){for(r===e&&r++;r<n;r++){for(var i=t[r],o=e,s=r,l;o<s;)l=o+s>>>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 B2(t,e,n,r,a,i){var o=0,s=0,l=1;if(i(t,e[n+a])>0){for(s=r-a;l<s&&i(t,e[n+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(t,e[n+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(t,e[n+c])>0?o=c+1:l=c}return l}function $2(t,e,n,r,a,i){var o=0,s=0,l=1;if(i(t,e[n+a])<0){for(s=a+1;l<s&&i(t,e[n+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=r-a;l<s&&i(t,e[n+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(t,e[n+c])<0?l=c:o=c+1}return l}function aot(t,e){var n=yg,r,a,i=0;t.length;var o=[];r=[],a=[];function s(h,v){r[i]=h,a[i]=v,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var v=r[h],p=a[h],g=r[h+1],y=a[h+1];a[h]=p+y,h===i-3&&(r[h+1]=r[h+2],a[h+1]=a[h+2]),i--;var m=$2(t[g],t,v,p,0,e);v+=m,p-=m,p!==0&&(y=B2(t[v+p-1],t,g,y,y-1,e),y!==0&&(p<=y?f(v,p,g,y):d(v,p,g,y)))}function f(h,v,p,g){var y=0;for(y=0;y<v;y++)o[y]=t[h+y];var m=0,S=p,b=h;if(t[b++]=t[S++],--g===0){for(y=0;y<v;y++)t[b+y]=o[m+y];return}if(v===1){for(y=0;y<g;y++)t[b+y]=t[S+y];t[b+g]=o[m];return}for(var x=n,_,C,T;;){_=0,C=0,T=!1;do if(e(t[S],o[m])<0){if(t[b++]=t[S++],C++,_=0,--g===0){T=!0;break}}else if(t[b++]=o[m++],_++,C=0,--v===1){T=!0;break}while((_|C)<x);if(T)break;do{if(_=$2(t[S],o,m,v,0,e),_!==0){for(y=0;y<_;y++)t[b+y]=o[m+y];if(b+=_,m+=_,v-=_,v<=1){T=!0;break}}if(t[b++]=t[S++],--g===0){T=!0;break}if(C=B2(o[m],t,S,g,0,e),C!==0){for(y=0;y<C;y++)t[b+y]=t[S+y];if(b+=C,S+=C,g-=C,g===0){T=!0;break}}if(t[b++]=o[m++],--v===1){T=!0;break}x--}while(_>=yg||C>=yg);if(T)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),v===1){for(y=0;y<g;y++)t[b+y]=t[S+y];t[b+g]=o[m]}else{if(v===0)throw new Error;for(y=0;y<v;y++)t[b+y]=o[m+y]}}function d(h,v,p,g){var y=0;for(y=0;y<g;y++)o[y]=t[p+y];var m=h+v-1,S=g-1,b=p+g-1,x=0,_=0;if(t[b--]=t[m--],--v===0){for(x=b-(g-1),y=0;y<g;y++)t[x+y]=o[y];return}if(g===1){for(b-=v,m-=v,_=b+1,x=m+1,y=v-1;y>=0;y--)t[_+y]=t[x+y];t[b]=o[S];return}for(var C=n;;){var T=0,D=0,M=!1;do if(e(o[S],t[m])<0){if(t[b--]=t[m--],T++,D=0,--v===0){M=!0;break}}else if(t[b--]=o[S--],D++,T=0,--g===1){M=!0;break}while((T|D)<C);if(M)break;do{if(T=v-$2(o[S],t,h,v,v-1,e),T!==0){for(b-=T,m-=T,v-=T,_=b+1,x=m+1,y=T-1;y>=0;y--)t[_+y]=t[x+y];if(v===0){M=!0;break}}if(t[b--]=o[S--],--g===1){M=!0;break}if(D=g-B2(t[m],o,0,g,g-1,e),D!==0){for(b-=D,S-=D,g-=D,_=b+1,x=S+1,y=0;y<D;y++)t[_+y]=o[x+y];if(g<=1){M=!0;break}}if(t[b--]=t[m--],--v===0){M=!0;break}C--}while(T>=yg||D>=yg);if(M)break;C<0&&(C=0),C+=2}if(n=C,n<1&&(n=1),g===1){for(b-=v,m-=v,_=b+1,x=m+1,y=v-1;y>=0;y--)t[_+y]=t[x+y];t[b]=o[S]}else{if(g===0)throw new Error;for(x=b-(g-1),y=0;y<g;y++)t[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function rw(t,e,n,r){n||(n=0),r||(r=t.length);var a=r-n;if(!(a<2)){var i=0;if(a<Dee){i=a5(t,n,r,e),i5(t,n,r,n+i,e);return}var o=aot(t,e),s=not(a);do{if(i=a5(t,n,r,e),i<s){var l=a;l>s&&(l=s),i5(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 _i=1,Qg=2,Yh=4,o5=!1;function I2(){o5||(o5=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function s5(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var iot=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=s5}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,a=0,i=n.length;a<i;a++)this._updateAndAddDisplayable(n[a],null,e);r.length=this._displayListLen,rw(r,s5)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath();if(e.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var i=a,o=e;i;)i.parent=o,i.updateTransform(),n.push(i),o=i,i=i.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=_i),this._updateAndAddDisplayable(u,n,r)}e.__dirty=0}else{var c=e;n&&n.length?c.__clipPaths=n:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(I2(),c.z=0),isNaN(c.z2)&&(I2(),c.z2=0),isNaN(c.zlevel)&&(I2(),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<r;n++)this.delRoot(e[n]);return}var a=zt(this._roots,e);a>=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 oot=iot;var kee;kee=an.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};const iR=kee;var aw={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-aw.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?aw.bounceIn(t*2)*.5:aw.bounceOut(t*2-1)*.5+.5}};const Ree=aw;var vS=Math.pow,tc=Math.sqrt,__=1e-8,Lee=1e-4,l5=tc(3),gS=1/3,Ls=Bc(),ji=Bc(),Mp=Bc();function Uu(t){return t>-__&&t<__}function Oee(t){return t>__||t<-__}function Ar(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 u5(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(Uu(c)&&Uu(f))if(Uu(s))i[0]=0;else{var v=-l/s;v>=0&&v<=1&&(i[h++]=v)}else{var p=f*f-4*c*d;if(Uu(p)){var g=f/c,v=-s/o+g,y=-g/2;v>=0&&v<=1&&(i[h++]=v),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=tc(p),S=c*s+1.5*o*(-f+m),b=c*s+1.5*o*(-f-m);S<0?S=-vS(-S,gS):S=vS(S,gS),b<0?b=-vS(-b,gS):b=vS(b,gS);var v=(-s-(S+b))/(3*o);v>=0&&v<=1&&(i[h++]=v)}else{var x=(2*c*s-3*o*f)/(2*tc(c*c*c)),_=Math.acos(x)/3,C=tc(c),T=Math.cos(_),v=(-s-2*C*T)/(3*o),y=(-s+C*(T+l5*Math.sin(_)))/(3*o),D=(-s+C*(T-l5*Math.sin(_)))/(3*o);v>=0&&v<=1&&(i[h++]=v),y>=0&&y<=1&&(i[h++]=y),D>=0&&D<=1&&(i[h++]=D)}}return h}function Aee(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(Uu(o)){if(Oee(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Uu(c))a[0]=-i/(2*o);else if(c>0){var f=tc(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 Sc(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 Nee(t,e,n,r,a,i,o,s,l,u,c){var f,d=.005,h=1/0,v,p,g,y;Ls[0]=l,Ls[1]=u;for(var m=0;m<1;m+=.05)ji[0]=Ar(t,n,a,o,m),ji[1]=Ar(e,r,i,s,m),g=ec(Ls,ji),g<h&&(f=m,h=g);h=1/0;for(var S=0;S<32&&!(d<Lee);S++)v=f-d,p=f+d,ji[0]=Ar(t,n,a,o,v),ji[1]=Ar(e,r,i,s,v),g=ec(ji,Ls),v>=0&&g<h?(f=v,h=g):(Mp[0]=Ar(t,n,a,o,p),Mp[1]=Ar(e,r,i,s,p),y=ec(Mp,Ls),p<=1&&y<h?(f=p,h=y):d*=.5);return c&&(c[0]=Ar(t,n,a,o,f),c[1]=Ar(e,r,i,s,f)),tc(h)}function sot(t,e,n,r,a,i,o,s,l){for(var u=t,c=e,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,p=Ar(t,n,a,o,v),g=Ar(e,r,i,s,v),y=p-u,m=g-c;f+=Math.sqrt(y*y+m*m),u=p,c=g}return f}function Wr(t,e,n,r){var a=1-r;return a*(a*t+2*r*e)+r*r*n}function oR(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function lot(t,e,n,r,a){var i=t-2*e+n,o=2*(e-t),s=t-r,l=0;if(Uu(i)){if(Oee(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Uu(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=tc(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 Vee(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function Vy(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 Bee(t,e,n,r,a,i,o,s,l){var u,c=.005,f=1/0;Ls[0]=o,Ls[1]=s;for(var d=0;d<1;d+=.05){ji[0]=Wr(t,n,a,d),ji[1]=Wr(e,r,i,d);var h=ec(Ls,ji);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<Lee);v++){var p=u-c,g=u+c;ji[0]=Wr(t,n,a,p),ji[1]=Wr(e,r,i,p);var h=ec(ji,Ls);if(p>=0&&h<f)u=p,f=h;else{Mp[0]=Wr(t,n,a,g),Mp[1]=Wr(e,r,i,g);var y=ec(Mp,Ls);g<=1&&y<f?(u=g,f=y):c*=.5}}return l&&(l[0]=Wr(t,n,a,u),l[1]=Wr(e,r,i,u)),tc(f)}function uot(t,e,n,r,a,i,o){for(var s=t,l=e,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=Wr(t,n,a,d),v=Wr(e,r,i,d),p=h-s,g=v-l;u+=Math.sqrt(p*p+g*g),s=h,l=v}return u}var cot=/cubic-bezier\(([0-9,\.e ]+)\)/;function Q3(t){var e=t&&cot.exec(t);if(e){var n=e[1].split(","),r=+Qi(n[0]),a=+Qi(n[1]),i=+Qi(n[2]),o=+Qi(n[3]);if(isNaN(r+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:x_(0,r,i,1,l,s)&&Ar(0,a,o,1,s[0])}}}var fot=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||ir,this.ondestroy=e.ondestroy||ir,this.onrestart=e.onrestart||ir,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=gt(e)?e:Ree[e]||Q3(e)},t}();const dot=fot;var $ee=function(){function t(e){this.value=e}return t}(),hot=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new $ee(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}(),pot=function(){function t(e){this._list=new hot,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 $ee(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 Gm=pot;var c5={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function qo(t){return t=Math.round(t),t<0?0:t>255?255:t}function vot(t){return t=Math.round(t),t<0?0:t>360?360:t}function By(t){return t<0?0:t>1?1:t}function P2(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?qo(parseFloat(e)/100*255):qo(parseInt(e,10))}function wd(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?By(parseFloat(e)/100):By(parseFloat(e))}function F2(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 Hu(t,e,n){return t+(e-t)*n}function Fi(t,e,n,r,a){return t[0]=e,t[1]=n,t[2]=r,t[3]=a,t}function sR(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Iee=new Gm(20),yS=null;function Sh(t,e){yS&&sR(yS,e),yS=Iee.put(t,yS||e.slice())}function Ha(t,e){if(t){e=e||[];var n=Iee.get(t);if(n)return sR(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in c5)return sR(e,c5[r]),Sh(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)){Fi(e,0,0,0,1);return}return Fi(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),Sh(t,e),e}else if(a===7||a===9){var i=parseInt(r.slice(1,7),16);if(!(i>=0&&i<=16777215)){Fi(e,0,0,0,1);return}return Fi(e,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(r.slice(7),16)/255:1),Sh(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?Fi(e,+u[0],+u[1],+u[2],1):Fi(e,0,0,0,1);c=wd(u.pop());case"rgb":if(u.length>=3)return Fi(e,P2(u[0]),P2(u[1]),P2(u[2]),u.length===3?c:wd(u[3])),Sh(t,e),e;Fi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Fi(e,0,0,0,1);return}return u[3]=wd(u[3]),lR(u,e),Sh(t,e),e;case"hsl":if(u.length!==3){Fi(e,0,0,0,1);return}return lR(u,e),Sh(t,e),e;default:return}}Fi(e,0,0,0,1)}}function lR(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=wd(t[1]),a=wd(t[2]),i=a<=.5?a*(r+1):a+r-a*r,o=a*2-i;return e=e||[],Fi(e,qo(F2(o,i,n+1/3)*255),qo(F2(o,i,n)*255),qo(F2(o,i,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function got(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=Ha(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 Zo(n,n.length===4?"rgba":"rgb")}}function yot(t){var e=Ha(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function L0(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]=qo(Hu(o[0],s[0],l)),n[1]=qo(Hu(o[1],s[1],l)),n[2]=qo(Hu(o[2],s[2],l)),n[3]=By(Hu(o[3],s[3],l)),n}}var mot=L0;function J3(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=Ha(e[a]),s=Ha(e[i]),l=r-a,u=Zo([qo(Hu(o[0],s[0],l)),qo(Hu(o[1],s[1],l)),qo(Hu(o[2],s[2],l)),By(Hu(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:a,rightIndex:i,value:r}:u}}var Sot=J3;function Dp(t,e,n,r){var a=Ha(t);if(t)return a=got(a),e!=null&&(a[0]=vot(e)),n!=null&&(a[1]=wd(n)),r!=null&&(a[2]=wd(r)),Zo(lR(a),"rgba")}function $y(t,e){var n=Ha(t);if(n&&e!=null)return n[3]=By(e),Zo(n,"rgba")}function Zo(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=Ha(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function bot(){return Zo([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const wot=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:L0,fastMapToColor:mot,lerp:J3,lift:C_,lum:Iy,mapToColor:Sot,modifyAlpha:$y,modifyHSL:Dp,parse:Ha,random:bot,stringify:Zo,toHex:yot},Symbol.toStringTag,{value:"Module"}));var T_=Math.round;function Py(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var n=Ha(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}return{color:t,opacity:e??1}}var f5=1e-4;function Wu(t){return t<f5&&t>-f5}function mS(t){return T_(t*1e3)/1e3}function uR(t){return T_(t*1e4)/1e4}function _ot(t){return"matrix("+mS(t[0])+","+mS(t[1])+","+mS(t[2])+","+mS(t[3])+","+uR(t[4])+","+uR(t[5])+")"}var xot={left:"start",right:"end",center:"middle",middle:"middle"};function Cot(t,e,n){return n==="top"?t+=e/2:n==="bottom"&&(t-=e/2),t}function Tot(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function Eot(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 Pee(t){return t&&!!t.image}function Mot(t){return t&&!!t.svgElement}function eN(t){return Pee(t)||Mot(t)}function Fee(t){return t.type==="linear"}function zee(t){return t.type==="radial"}function Gee(t){return t&&(t.type==="linear"||t.type==="radial")}function MC(t){return"url(#"+t+")"}function Uee(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 Hee(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*D0,a=Pt(t.scaleX,1),i=Pt(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*D0)+"deg, "+T_(s*D0)+"deg)"),l.join(" ")}var Dot=function(){return an.hasGlobalWindow&>(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}}(),cR=Array.prototype.slice;function yl(t,e,n){return(e-t)*n+t}function z2(t,e,n,r){for(var a=e.length,i=0;i<a;i++)t[i]=yl(e[i],n[i],r);return t}function kot(t,e,n,r){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=yl(e[o][s],n[o][s],r)}return t}function SS(t,e,n,r){for(var a=e.length,i=0;i<a;i++)t[i]=e[i]+n[i]*r;return t}function d5(t,e,n,r){for(var a=e.length,i=a&&e[0].length,o=0;o<a;o++){t[o]||(t[o]=[]);for(var s=0;s<i;s++)t[o][s]=e[o][s]+n[o][s]*r}return t}function Rot(t,e){for(var n=t.length,r=e.length,a=n>r?e:t,i=Math.min(n,r),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(n,r);s++)a.push({offset:o.offset,color:o.color.slice()})}function Lot(t,e,n){var r=t,a=e;if(!(!r.push||!a.push)){var i=r.length,o=a.length;if(i!==o){var s=i>o;if(s)r.length=o;else for(var l=i;l<o;l++)r.push(n===1?a[l]:cR.call(a[l]))}for(var u=r[0]&&r[0].length,l=0;l<r.length;l++)if(n===1)isNaN(r[l])&&(r[l]=a[l]);else for(var c=0;c<u;c++)isNaN(r[l][c])&&(r[l][c]=a[l][c])}}function O0(t){if(la(t)){var e=t.length;if(la(t[0])){for(var n=[],r=0;r<e;r++)n.push(cR.call(t[r]));return n}return cR.call(t)}return t}function iw(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function Oot(t){return la(t&&t[0])?2:1}var bS=0,ow=1,Wee=2,Jg=3,fR=4,dR=5,h5=6;function p5(t){return t===fR||t===dR}function wS(t){return t===ow||t===Wee}var mg=[0,0,0,0],Aot=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=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=h5,l=n;if(la(n)){var u=Oot(n);s=u,(u===1&&!on(n[0])||u===2&&!on(n[0][0]))&&(o=!0)}else if(on(n)&&!uv(n))s=bS;else if(it(n))if(!isNaN(+n))s=bS;else{var c=Ha(n);c&&(l=c,s=Jg)}else if(Pm(n)){var f=Oe({},l);f.colorStops=Ie(n.colorStops,function(h){return{offset:h.offset,color:Ha(h.color)}}),Fee(n)?s=fR:zee(n)&&(s=dR),l=f}i===0?this.valType=s:(s!==this.valType||s===h5)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=gt(r)?r:Ree[r]||Q3(r)),a.push(d),d},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(p,g){return p.time-g.time});for(var a=this.valType,i=r.length,o=r[i-1],s=this.discrete,l=wS(a),u=p5(a),c=0;c<i;c++){var f=r[c],d=f.value,h=o.value;f.percent=f.time/e,s||(l&&c!==i-1?Lot(d,h,a):u&&Rot(d.colorStops,h.colorStops))}if(!s&&a!==dR&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var v=r[0].value,c=0;c<i;c++)a===bS?r[c].additiveValue=r[c].value-v:a===Jg?r[c].additiveValue=SS([],r[c].value,v,-1):wS(a)&&(r[c].additiveValue=a===ow?SS([],r[c].value,v,-1):d5([],r[c].value,v,-1))}},t.prototype.step=function(e,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,a=r?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Jg,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(n<0)c=0;else if(n<this._lastFrP){var p=d(f+1,s-1);for(c=p;c>=0&&!(o[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>n);c++);c=d(c-1,s-2)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,this._lastFrP=n;var g=v.percent-h.percent,y=g===0?1:d((n-h.percent)/g,1);v.easingFunc&&(y=v.easingFunc(y));var m=r?this._additiveValue:u?mg:e[l];if((wS(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:v.rawValue;else if(wS(i))i===ow?z2(m,h[a],v[a],y):kot(m,h[a],v[a],y);else if(p5(i)){var S=h[a],b=v[a],x=i===fR;e[l]={type:x?"linear":"radial",x:yl(S.x,b.x,y),y:yl(S.y,b.y,y),colorStops:Ie(S.colorStops,function(C,T){var D=b.colorStops[T];return{offset:yl(C.offset,D.offset,y),color:iw(z2([],C.color,D.color,y))}}),global:b.global},x?(e[l].x2=yl(S.x2,b.x2,y),e[l].y2=yl(S.y2,b.y2,y)):e[l].r=yl(S.r,b.r,y)}else if(u)z2(m,h[a],v[a],y),r||(e[l]=iw(m));else{var _=yl(h[a],v[a],y);r?this._additiveValue=_:e[l]=_}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,a=this._additiveValue;n===bS?e[r]=e[r]+a:n===Jg?(Ha(e[r],mg),SS(mg,mg,a,1),e[r]=iw(mg)):n===ow?SS(e[r],e[r],a,1):n===Wee&&d5(e[r],e[r],a,1)},t}(),Not=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){wC("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;o<r.length;o++){var s=r[o],l=i[s];if(!l){l=i[s]=new Aot(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===Jg&&u&&(u=iw(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,O0(u),a),this._trackKeys.push(s)}l.addKeyframe(e,O0(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;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var a=0;a<r.length;a++){var i=r[a].getTrack(e);i&&(n=i)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new dot({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var v=n._additiveAnimators;if(v){for(var p=!1,g=0;g<v.length;g++)if(v[g]._clip){p=!0;break}p||(n._additiveAnimators=null)}for(var g=0;g<r.length;g++)r[g].step(n._target,h);var y=n._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](n._target,h)},ondestroy:function(){n._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return Ie(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,a=this._trackKeys,i=0;i<e.length;i++){var o=r[e[i]];o&&!o.isFinished()&&(n?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!r[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,n,r){if(e){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var i=n[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[r?0:s.length-1];l&&(e[i]=O0(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||Yt(e);for(var r=0;r<n.length;r++){var a=n[r],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();const tN=Not;function lp(){return new Date().getTime()}var Vot=function(t){we(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=lp()-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&&(iR(r),!n._paused&&n.update())}iR(r)},e.prototype.start=function(){this._running||(this._time=lp(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=lp(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=lp()-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 tN(n,r.loop);return this.addAnimator(a),a},e}(po);const Bot=Vot;var $ot=300,G2=an.domSupported,U2=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=Ie(t,function(a){var i=a.replace("mouse","pointer");return n.hasOwnProperty(i)?i:a});return{mouse:t,touch:e,pointer:r}}(),v5={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},g5=!1;function hR(t){var e=t.pointerType;return e==="pen"||e==="touch"}function Iot(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 H2(t){t&&(t.zrByTouch=!0)}function Pot(t,e){return zi(t.dom,new Fot(t,e),!0)}function Kee(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 Fot=function(){function t(e,n){this.stopPropagation=ir,this.stopImmediatePropagation=ir,this.preventDefault=ir,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),Mo={mousedown:function(t){t=zi(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=zi(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=zi(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=zi(this.dom,t);var e=t.toElement||t.relatedTarget;Kee(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){g5=!0,t=zi(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){g5||(t=zi(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=zi(this.dom,t),H2(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Mo.mousemove.call(this,t),Mo.mousedown.call(this,t)},touchmove:function(t){t=zi(this.dom,t),H2(t),this.handler.processGesture(t,"change"),Mo.mousemove.call(this,t)},touchend:function(t){t=zi(this.dom,t),H2(t),this.handler.processGesture(t,"end"),Mo.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<$ot&&Mo.click.call(this,t)},pointerdown:function(t){Mo.mousedown.call(this,t)},pointermove:function(t){hR(t)||Mo.mousemove.call(this,t)},pointerup:function(t){Mo.mouseup.call(this,t)},pointerout:function(t){hR(t)||Mo.mouseout.call(this,t)}};W(["click","dblclick","contextmenu"],function(t){Mo[t]=function(e){e=zi(this.dom,e),this.trigger(t,e)}});var pR={pointermove:function(t){hR(t)||pR.mousemove.call(this,t)},pointerup:function(t){pR.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function zot(t,e){var n=e.domHandlers;an.pointerEventsSupported?W(U2.pointer,function(r){sw(e,r,function(a){n[r].call(t,a)})}):(an.touchEventsSupported&&W(U2.touch,function(r){sw(e,r,function(a){n[r].call(t,a),Iot(e)})}),W(U2.mouse,function(r){sw(e,r,function(a){a=Z3(a),e.touching||n[r].call(t,a)})}))}function Got(t,e){an.pointerEventsSupported?W(v5.pointer,n):an.touchEventsSupported||W(v5.mouse,n);function n(r){function a(i){i=Z3(i),Kee(t,i.target)||(i=Pot(t,i),e.domHandlers[r].call(t,i))}sw(e,r,a,{capture:!0})}}function sw(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,aR(t.domTarget,e,n,r)}function W2(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&Hit(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var y5=function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t}(),Uot=function(t){we(e,t);function e(n,r){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=r,a._localHandlerScope=new y5(n,Mo),G2&&(a._globalHandlerScope=new y5(document,pR)),zot(a,a._localHandlerScope),a}return e.prototype.dispose=function(){W2(this._localHandlerScope),G2&&W2(this._globalHandlerScope)},e.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},e.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,G2&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?Got(this,r):W2(r)}},e}(po);const Hot=Uot;var jee=1;an.hasGlobalWindow&&(jee=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var E_=jee,vR=.4,gR="#333",yR="#ccc",Wot="#eee",m5=zm,S5=5e-5;function sf(t){return t>S5||t<-S5}var lf=[],bh=[],K2=Li(),j2=Math.abs,Kot=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 sf(this.rotation)||sf(this.x)||sf(this.y)||sf(this.scaleX-1)||sf(this.scaleY-1)||sf(this.skewX)||sf(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(m5(r),this.invTransform=null);return}r=r||Li(),n?this.getLocalTransform(r):m5(r),e&&(n?Gs(r,e,r):TC(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(lf);var r=lf[0]<0?-1:1,a=lf[1]<0?-1:1,i=((lf[0]-r)*n+r)/lf[0]||0,o=((lf[1]-a)*n+a)/lf[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Li(),Jd(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&&(Gs(bh,e.invTransform,n),n=bh);var r=this.originX,a=this.originY;(r||a)&&(K2[4]=r,K2[5]=a,Gs(bh,n,K2),bh[4]-=r,bh[5]-=a,n=bh),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&&Xr(r,r,a),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],a=this.transform;return a&&Xr(r,r,a),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&j2(e[0]-1)>1e-10&&j2(e[3]-1)>1e-10?Math.sqrt(j2(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Yee(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 v=r+s,p=a+l;n[4]=-v*i-d*p*o,n[5]=-p*o-h*v*i}else n[4]=n[5]=0;return n[0]=i,n[3]=o,n[1]=h*i,n[2]=d*o,u&&$c(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}(),Zs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Yee(t,e){for(var n=0;n<Zs.length;n++){var r=Zs[n];t[r]=e[r]}}const Dl=Kot;var b5={};function Ri(t,e){e=e||mc;var n=b5[e];n||(n=b5[e]=new Gm(500));var r=n.get(t);return r==null&&(r=ts.measureText(t,e).width,n.put(t,r)),r}function w5(t,e,n,r){var a=Ri(t,e),i=DC(e),o=e0(0,a,n),s=Xh(0,i,r),l=new Ft(o,s,a,i);return l}function Um(t,e,n,r){var a=((t||"")+"").split(`
- `),i=a.length;if(i===1)return w5(a[0],e,n,r);for(var o=new Ft(0,0,0,0),s=0;s<a.length;s++){var l=w5(a[s],e,n,r);s===0?o.copy(l):o.union(l)}return o}function e0(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function Xh(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function DC(t){return Ri("国",t)}function rs(t,e){return typeof t=="string"?t.lastIndexOf("%")>=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+=rs(r[0],n.width),u+=rs(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 Y2="__zr_normal__",X2=Zs.concat(["ignore"]),jot=fo(Zs,function(t,e){return t[e]=!0,t},{ignore:!1}),wh={},Yot=new Ft(0,0,0,0),nN=function(){function t(e){this.id=j3(),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=Yot;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(wh,r,c):M_(wh,r,c),i.x=wh.x,i.y=wh.y,o=wh.align,s=wh.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=rs(f[0],c.width),h=rs(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}r.rotation!=null&&(i.rotation=r.rotation);var v=r.offset;v&&(i.x+=v[0],i.y+=v[1],u||(i.originX=-v[0],i.originY=-v[1]));var p=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,S=void 0;p&&this.canBeInsideText()?(y=r.insideFill,m=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),S=!0)):(y=r.outsideFill,m=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),S=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=S,g.align=o,g.verticalAlign=s,n.setDefaultTextStyle(g)),n.__dirty|=_i,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()?yR:gR},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Ha(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,Zo(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(bt(e))for(var r=e,a=Yt(r),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var n=this._normalState,r=0;r<this.animators.length;r++){var a=this.animators[r],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==Y2)){var o=a.targetName,s=o?n[o]:n;a.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var n=this._normalState;n||(n=this._normalState={}),e.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(e,n,X2)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var a=0;a<r.length;a++){var i=r[a];e[i]!=null&&!(i in n)&&(n[i]=this[i])}},t.prototype.hasState=function(){return this.currentStates.length>0},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(Y2,!1,e)},t.prototype.useState=function(e,n,r,a){var i=e===Y2,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){wC("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&=~_i),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;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&a.push(c)}var f=a[o-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!n&&!this.__inHover&&v&&v.duration>0,v);var p=this._textContent,g=this._textGuide;p&&p.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&=~_i)}},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var n=this.animators[e];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(e){var n=zt(this.currentStates,e);if(n>=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<e.length;a++){var i=e[a];Oe(n,i),i.textConfig&&(r=r||{},Oe(r,i.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,a,i,o){var s=!(n&&a);n&&n.textConfig?(this.textConfig=Oe({},a?this.textConfig:r.textConfig),Oe(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<X2.length;c++){var f=X2[c],d=i&&jot[f];n&&n[f]!=null?d?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!i)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(n||r)[v]:n||r)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var n=this.__zr;n&&e.addSelfToZr(n),e.__zr=n,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var n=this._textContent;n!==e&&(n&&n!==e&&this.removeTextContent(),e.innerTransformable=new Dl,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),Oe(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=_i;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=e),r&&(r.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,n,r){var a=e?this[e]:this,i=new tN(a,n,r);return e&&(i.targetName=e),this.addAnimator(i,e),i},t.prototype.addAnimator=function(e,n){var r=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(n)}).done(function(){var i=a.animators,o=zt(i,e);o>=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;o<a;o++){var s=r[o];!e||e===s.scope?s.stop(n):i.push(s)}return this.animators=i,this},t.prototype.animateTo=function(e,n,r){q2(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){q2(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,a){for(var i=q2(this,n,r,a),o=0;o<i.length;o++)i[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=_i;function n(r,a,i,o){Object.defineProperty(e,r,{get:function(){if(!this[a]){var l=this[a]=[];s(this,l)}return this[a]},set:function(l){this[i]=l[0],this[o]=l[1],this[a]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(c){l[i]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();sr(nN,po);sr(nN,Dl);function q2(t,e,n,r,a){n=n||{};var i=[];Xee(t,"",t,e,n,r,i,a);var o=i.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&n.during&&i[0].during(function(v,p){n.during(p)});for(var d=0;d<i.length;d++){var h=i[d];c&&h.done(c),f&&h.aborted(f),n.force&&h.duration(n.duration),h.start(n.easing)}return i}function Z2(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function Xot(t){return la(t[0])}function qot(t,e,n){if(la(e[n]))if(la(t[n])||(t[n]=[]),yi(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),Z2(t[n],e[n],r))}else{var a=e[n],i=t[n],o=a.length;if(Xot(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?Z2(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else Z2(i,a,o);i.length=a.length}else t[n]=e[n]}function Zot(t,e){return t===e||la(t)&&la(e)&&Qot(t,e)}function Qot(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Xee(t,e,n,r,a,i,o,s){for(var l=Yt(r),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!bt(i),v=t.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=r[y];if(m!=null&&n[y]!=null&&(h||i[y]))if(bt(m)&&!la(m)&&!Pm(m)){if(e){s||(n[y]=m,t.updateDuringAnimation(e));continue}Xee(t,y,n[y],m,a,i&&i[y],o,s)}else p.push(y);else s||(n[y]=m,t.updateDuringAnimation(e),p.push(y))}var S=p.length;if(!f&&S)for(var b=0;b<v.length;b++){var x=v[b];if(x.targetName===e){var _=x.stopTracks(p);if(_){var C=zt(v,x);v.splice(C,1)}}}if(a.force||(p=wn(p,function(E){return!Zot(r[E],n[E])}),S=p.length),S>0||a.force&&!o.length){var T=void 0,D=void 0,M=void 0;if(s){D={},d&&(T={});for(var b=0;b<S;b++){var y=p[b];D[y]=n[y],d?T[y]=r[y]:n[y]=r[y]}}else if(d){M={};for(var b=0;b<S;b++){var y=p[b];M[y]=O0(n[y]),qot(n,r,y)}}var x=new tN(n,!1,!1,f?wn(v,function(k){return k.targetName===e}):null);x.targetName=e,a.scope&&(x.scope=a.scope),d&&T&&x.whenWithKeys(0,T,p),M&&x.whenWithKeys(0,M,p),x.whenWithKeys(u??500,s?D:r,p).delay(c||0),t.addAnimator(x,e),o.push(x)}}const qee=nN;var Zee=function(t){we(e,t);function e(n){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(n){return this._children[n]},e.prototype.childOfName=function(n){for(var r=this._children,a=0;a<r.length;a++)if(r[a].name===n)return r[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},e.prototype.addBefore=function(n,r){if(n&&n!==this&&n.parent!==this&&r&&r.parent===this){var a=this._children,i=a.indexOf(r);i>=0&&(a.splice(i,0,n),this._doAdd(n))}return this},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;a<n.length;a++){var i=n[a];r&&i.removeSelfFromZr(r),i.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];n.call(r,o,i)}return this},e.prototype.traverse=function(n,r){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=n.call(r,i);i.isGroup&&!o&&i.traverse(n,r)}return this},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var a=this._children[r];a.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new Ft(0,0,0,0),a=n||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(Ft.applyTransform(r,u,c),o=o||r.clone(),o.union(r)):(o=o||u.clone(),o.union(u))}}return o||r},e}(qee);Zee.prototype.type="group";const Ct=Zee;/*!
- * ZRender, a high performance 2d drawing library.
- *
- * Copyright (c) 2013, Baidu Inc.
- * All rights reserved.
- *
- * LICENSE
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
- */var lw={},rd={};function Jot(t){delete rd[t]}function est(t){if(!t)return!1;if(typeof t=="string")return Iy(t,1)<vR;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,a=0;a<r;a++)n+=Iy(e[a].color,1);return n/=r,n<vR}return!1}var tst=function(){function t(e,n,r){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=n,this.id=e;var i=new oot,o=r.renderer||"canvas";lw[o]||(o=Yt(lw)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new lw[o](n,i,r,e),l=r.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!an.node&&!an.worker&&!l?new Hot(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?an.touchEventsSupported:!!c,d=44,h;f&&(h=Pt(r.pointerSize,d)),this.handler=new tot(i,s,u,s.root,h),this.animation=new Bot({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,n){this.painter.configLayer&&this.painter.configLayer(e,n),this.refresh()},t.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=est(e)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(e){var n,r=lp();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=lp();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-r})):this._sleepAfterStill>0&&(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;n<e.length;n++)e[n]instanceof Ct&&e[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,Jot(this.id)},t}();function mR(t,e){var n=new tst(j3(),t,e);return rd[n.id]=n,n}function nst(t){t.dispose()}function rst(){for(var t in rd)rd.hasOwnProperty(t)&&rd[t].dispose();rd={}}function ast(t){return rd[t]}function Qee(t,e){lw[t]=e}var ist="5.4.4";const ost=Object.freeze(Object.defineProperty({__proto__:null,dispose:nst,disposeAll:rst,getInstance:ast,init:mR,registerPainter:Qee,version:ist},Symbol.toStringTag,{value:"Module"}));var _5=1e-4,Jee=20;function sst(t){return t.replace(/^\s+|\s+$/g,"")}function bn(t,e,n,r){var a=e[0],i=e[1],o=n[0],s=n[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(r)if(l>0){if(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 tt(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 it(t)?sst(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function nr(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),Jee),t=(+t).toFixed(e),n?t:+t}function Mi(t){return t.sort(function(e,n){return e-n}),t}function Ho(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 ete(t)}function ete(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 rN(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 lst(t,e,n){if(!t[e])return 0;var r=tte(t,n);return r[e]||0}function tte(t,e){var n=fo(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(n===0)return[];for(var r=Math.pow(10,e),a=Ie(t,function(h){return(isNaN(h)?0:h)/n*r*100}),i=r*100,o=Ie(a,function(h){return Math.floor(h)}),s=fo(o,function(h,v){return h+v},0),l=Ie(a,function(h,v){return h-o[v]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return Ie(o,function(h){return h/r})}function ust(t,e){var n=Math.max(Ho(t),Ho(e)),r=t+e;return n>Jee?r:nr(r,n)}var SR=9007199254740991;function aN(t){var e=Math.PI*2;return(t%e+e)%e}function Fy(t){return t>-_5&&t<_5}var cst=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Oi(t){if(t instanceof Date)return t;if(it(t)){var e=cst.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function nte(t){return Math.pow(10,kC(t))}function kC(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function iN(t,e){var n=kC(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 uw(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 bR(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,n=1,r=0;r<t.length;){for(var a=t[r].interval,i=t[r].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,i[o]=o?1:1-n),e=a[o],n=i[o];a[0]===a[1]&&i[0]*i[1]!==1?t.splice(r,1):r++}return t;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function Qs(t){var e=parseFloat(t);return e==t&&(e!==0||!it(t)||t.indexOf("x")<=0)?e:NaN}function oN(t){return!isNaN(Qs(t))}function rte(){return Math.round(Math.random()*9)}function ate(t,e){return e===0?t:ate(e,t%e)}function x5(t,e){return t==null?e:e==null?t:t*e/ate(t,e)}function gn(t){throw new Error(t)}function C5(t,e,n){return(e-t)*n+t}var ite="series\0",ote="\0_ec_\0";function Dn(t){return t instanceof Array?t:t==null?[]:[t]}function Bd(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,a=n.length;r<a;r++){var i=n[r];!t.emphasis[e].hasOwnProperty(i)&&t[e].hasOwnProperty(i)&&(t.emphasis[e][i]=t[e][i])}}}var T5=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Vv(t){return bt(t)&&!$e(t)&&!(t instanceof Date)?t.value:t}function fst(t){return bt(t)&&!(t instanceof Array)}function ste(t,e,n){var r=n==="normalMerge",a=n==="replaceMerge",i=n==="replaceAll";t=t||[],e=(e||[]).slice();var o=ht();W(e,function(l,u){if(!bt(l)){e[u]=null;return}});var s=dst(t,o,n);return(r||a)&&hst(s,t,o,e),r&&pst(s,e),r||a?vst(s,e,a):i&&gst(s,e),yst(s),s}function dst(t,e,n){var r=[];if(n==="replaceAll")return r;for(var a=0;a<t.length;a++){var i=t[a];i&&i.id!=null&&e.set(i.id,a),r.push({existing:n==="replaceMerge"||zy(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return r}function hst(t,e,n,r){W(r,function(a,i){if(!(!a||a.id==null)){var o=A0(a.id),s=n.get(o);if(s!=null){var l=t[s];Ea(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],r[i]=null}}})}function pst(t,e){W(e,function(n,r){if(!(!n||n.name==null))for(var a=0;a<t.length;a++){var i=t[a].existing;if(!t[a].newOption&&i&&(i.id==null||n.id==null)&&!zy(n)&&!zy(i)&<e("name",i,n)){t[a].newOption=n,e[r]=null;return}}})}function vst(t,e,n){W(e,function(r){if(r){for(var a,i=0;(a=t[i])&&(a.newOption||zy(a.existing)||a.existing&&r.id!=null&&!lte("id",r,a.existing));)i++;a?(a.newOption=r,a.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),i++}})}function gst(t,e){W(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function yst(t){var e=ht();W(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),W(t,function(n){var r=n.newOption;Ea(!r||r.id==null||!e.get(r.id)||e.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),W(t,function(n,r){var a=n.existing,i=n.newOption,o=n.keyInfo;if(bt(i)){if(o.name=i.name!=null?A0(i.name):a?a.name:ite+r,a)o.id=A0(a.id);else if(i.id!=null)o.id=A0(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,n)}})}function lte(t,e,n){var r=Rr(e[t],null),a=Rr(n[t],null);return r!=null&&a!=null&&r===a}function A0(t){return Rr(t,"")}function Rr(t,e){return t==null?e:it(t)?t:on(t)||S_(t)?t+"":e}function sN(t){var e=t.name;return!!(e&&e.indexOf(ite))}function zy(t){return t&&t.id!=null&&A0(t.id).indexOf(ote)===0}function mst(t){return ote+t}function Sst(t,e,n){W(t,function(r){var a=r.newOption;bt(a)&&(r.keyInfo.mainType=e,r.keyInfo.subType=bst(e,a,r.existing,n))})}function bst(t,e,n,r){var a=e.type?e.type:n?n.subType:r.determineSubType(t,e);return a}function wst(t,e){var n={},r={};return a(t||[],n),a(e||[],r,n),[i(n),i(r)];function a(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=Rr(o[u].seriesId,null);if(f==null)return;for(var d=Dn(o[u].dataIndex),h=l&&l[f],v=0,p=d.length;v<p;v++){var g=d[v];h&&h[g]?h[g]=null:(s[f]||(s[f]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=i(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function $d(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return $e(e.dataIndex)?Ie(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return $e(e.name)?Ie(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function sn(){var t="__ec_inner_"+_st++;return function(e){return e[t]||(e[t]={})}}var _st=rte();function N0(t,e,n){var r=lN(e,n),a=r.mainTypeSpecified,i=r.queryOptionMap,o=r.others,s=o,l=n?n.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var f=Hm(t,c,u,{useDefault:l===c,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function lN(t,e){var n;if(it(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var a=ht(),i={},o=!1;return W(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&zt(e.includeMainTypes,c)<0)){o=o||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var yr={useDefault:!0,enableAll:!1,enableNone:!1},xst={useDefault:!1,enableAll:!0,enableNone:!0};function Hm(t,e,n,r){r=r||yr;var a=n.index,i=n.id,o=n.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return a==="none"||a===!1?(Ea(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(Ea(r.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=t.queryComponents({mainType:e,index:a,id:i,name:o}),s)}function ute(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Cst(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function Tst(t){return t==="auto"?an.domSupported?"html":"richText":t||"html"}function wR(t,e){var n=ht(),r=[];return W(t,function(a){var i=e(a);(n.get(i)||(r.push(i),n.set(i,[]))).push(a)}),{keys:r,buckets:n}}function cte(t,e,n,r,a){var i=e==null||e==="auto";if(r==null)return r;if(on(r)){var o=C5(n||0,r,a);return nr(o,i?Math.max(Ho(n||0),Ho(r)):e)}else{if(it(r))return a<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=t.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],o=C5(h,v,a);s[f]=nr(o,i?Math.max(Ho(h),Ho(v)):e)}}return s}}var Est=".",uf="___EC__COMPONENT__CONTAINER___",fte="___EC__EXTENDED_CLASS___";function Vs(t){var e={main:"",sub:""};if(t){var n=t.split(Est);e.main=n[0]||"",e.sub=n[1]||""}return e}function Mst(t){Ea(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function Dst(t){return!!(t&&t[fte])}function uN(t,e){t.$constructor=t,t.extend=function(n){var r=this,a;return kst(r)?a=function(i){we(o,i);function o(){return i.apply(this,arguments)||this}return o}(r):(a=function(){(n.$constructor||r).apply(this,arguments)},Y3(a,this)),Oe(a.prototype,n),a[fte]=!0,a.extend=this.extend,a.superCall=Ost,a.superApply=Ast,a.superClass=r,a}}function kst(t){return gt(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function dte(t,e){t.extend=e.extend}var Rst=Math.round(Math.random()*10);function Lst(t){var e=["__\0is_clz",Rst++].join("_");t.prototype[e]=!0,t.isInstance=function(n){return!!(n&&n[e])}}function Ost(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function Ast(t,e,n){return this.superClass.prototype[e].apply(t,n)}function RC(t){var e={};t.registerClass=function(r){var a=r.type||r.prototype.type;if(a){Mst(a),r.prototype.type=a;var i=Vs(a);if(!i.sub)e[i.main]=r;else if(i.sub!==uf){var o=n(i);o[i.sub]=r}}return r},t.getClass=function(r,a,i){var o=e[r];if(o&&o[uf]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+r+"."+(a||"")+" is used but not imported.":r+".type should be specified.");return o},t.getClassesByMainType=function(r){var a=Vs(r),i=[],o=e[a.main];return o&&o[uf]?W(o,function(s,l){l!==uf&&i.push(s)}):i.push(o),i},t.hasClass=function(r){var a=Vs(r);return!!e[a.main]},t.getAllClassMainTypes=function(){var r=[];return W(e,function(a,i){r.push(i)}),r},t.hasSubTypes=function(r){var a=Vs(r),i=e[a.main];return i&&i[uf]};function n(r){var a=e[r.main];return(!a||!a[uf])&&(a=e[r.main]={},a[uf]=!0),a}}function Id(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(r,a,i){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(a&&zt(a,l)>=0||i&&zt(i,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var Nst=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Vst=Id(Nst),Bst=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return Vst(this,e,n)},t}(),_R=new Gm(50);function $st(t){if(typeof t=="string"){var e=_R.get(t);return e&&e.image}else return t}function cN(t,e,n,r,a){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var i=_R.get(t),o={hostEl:n,cb:r,cbPayload:a};return i?(e=i.image,!LC(e)&&i.pending.push(o)):(e=ts.loadImage(t,E5,E5),e.__zrImageSrc=t,_R.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function E5(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function LC(t){return t&&t.width&&t.height}var Q2=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function hte(t,e,n,r,a){if(!e)return"";var i=(t+"").split(`
- `);a=pte(e,n,r,a);for(var o=0,s=i.length;o<s;o++)i[o]=vte(i[o],a);return i.join(`
- `)}function pte(t,e,n,r){r=r||{};var a=Oe({},r);a.font=e,n=Pt(n,"..."),a.maxIterations=Pt(r.maxIterations,2);var i=a.minChar=Pt(r.minChar,0);a.cnCharWidth=Ri("国",e);var o=a.ascCharWidth=Ri("a",e);a.placeholder=Pt(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<i&&s>=o;l++)s-=o;var u=Ri(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 vte(t,e){var n=e.containerWidth,r=e.font,a=e.contentWidth;if(!n)return"";var i=Ri(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?Ist(t,a,e.ascCharWidth,e.cnCharWidth):i>0?Math.floor(t.length*a/i):0;t=t.substr(0,s),i=Ri(t,r)}return t===""&&(t=e.placeholder),t}function Ist(t,e,n,r){for(var a=0,i=0,o=t.length;i<o&&a<e;i++){var s=t.charCodeAt(i);a+=0<=s&&s<=127?n:r}return i}function Pst(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,a=e.font,i=n==="truncate",o=DC(a),s=Pt(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=e.width,f;c!=null&&(n==="break"||n==="breakAll")?f=t?gte(t,e.font,c,n==="breakAll",0).lines:[]:f=t?t.split(`
- `):[];var d=f.length*s,h=Pt(e.height,d);if(d>h&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(t&&i&&c!=null)for(var p=pte(c,a,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<f.length;g++)f[g]=vte(f[g],p);for(var y=h,m=0,g=0;g<f.length;g++)m=Math.max(Ri(f[g],a),m);c==null&&(c=m);var S=m;return r&&(y+=r[0]+r[2],S+=r[1]+r[3],c+=r[1]+r[3]),l&&(S=c),{lines:f,height:h,outerWidth:S,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:d,width:c}}var Fst=function(){function t(){}return t}(),M5=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),zst=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function Gst(t,e){var n=new zst;if(t!=null&&(t+=""),!t)return n;for(var r=e.width,a=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:i==="breakAll"}:null,s=Q2.lastIndex=0,l;(l=Q2.exec(t))!=null;){var u=l.index;u>s&&J2(n,t.substring(s,u),e,o),J2(n,l[2],e,o,l[1]),s=Q2.lastIndex}s<t.length&&J2(n,t.substring(s,t.length),e,o);var c=[],f=0,d=0,h=e.padding,v=i==="truncate",p=e.lineOverflow==="truncate";function g(F,L,N){F.width=L,F.lineHeight=N,f+=N,d=Math.max(d,L)}e:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],S=0,b=0,x=0;x<m.tokens.length;x++){var _=m.tokens[x],C=_.styleName&&e.rich[_.styleName]||{},T=_.textPadding=C.padding,D=T?T[1]+T[3]:0,M=_.font=C.font||e.font;_.contentHeight=DC(M);var E=Pt(C.height,_.contentHeight);if(_.innerHeight=E,T&&(E+=T[0]+T[2]),_.height=E,_.lineHeight=Xo(C.lineHeight,e.lineHeight,E),_.align=C&&C.align||e.align,_.verticalAlign=C&&C.verticalAlign||"middle",p&&a!=null&&f+_.lineHeight>a){x>0?(m.tokens=m.tokens.slice(0,x),g(m,b,S),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var k=C.width,R=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")_.percentWidth=k,c.push(_),_.contentWidth=Ri(_.text,M);else{if(R){var O=C.backgroundColor,B=O&&O.image;B&&(B=$st(B),LC(B)&&(_.width=Math.max(_.width,B.width*E/B.height)))}var $=v&&r!=null?r-b:null;$!=null&&$<_.width?!R||$<D?(_.text="",_.width=_.contentWidth=0):(_.text=hte(_.text,$-D,M,e.ellipsis,{minChar:e.truncateMinChar}),_.width=_.contentWidth=Ri(_.text,M)):_.contentWidth=Ri(_.text,M)}_.width+=D,b+=_.width,C&&(S=Math.max(S,_.lineHeight))}g(m,b,S)}n.outerWidth=n.width=Pt(r,d),n.outerHeight=n.height=Pt(a,f),n.contentHeight=f,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var y=0;y<c.length;y++){var _=c[y],V=_.percentWidth;_.width=parseInt(V,10)/100*n.width}return n}function J2(t,e,n,r,a){var i=e==="",o=a&&n.rich[a]||{},s=t.lines,l=o.font||n.font,u=!1,c,f;if(r){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=rs(o.width,r.width)+h;s.length>0&&v+r.accumWidth>r.width&&(c=e.split(`
- `),u=!0),r.accumWidth=v}else{var p=gte(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=p.accumWidth+h,f=p.linesWidths,c=p.lines}}else c=e.split(`
- `);for(var g=0;g<c.length;g++){var y=c[g],m=new Fst;if(m.styleName=a,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=f?f[g]:Ri(y,l),!g&&!u){var S=(s[s.length-1]||(s[0]=new M5)).tokens,b=S.length;b===1&&S[0].isLineHolder?S[0]=m:(y||!b||i)&&S.push(m)}else s.push(new M5([m]))}}function Ust(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Hst=fo(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Wst(t){return Ust(t)?!!Hst[t]:!0}function gte(t,e,n,r,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;f<t.length;f++){var d=t.charAt(f);if(d===`
- `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=Ri(d,e),v=r?!1:!Wst(d);if(i.length?c+h>n:a+c+h>n){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=h)):v?(i.push(l),o.push(u),l=d,u=h):(i.push(d),o.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=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 xR="__zr_style_"+Math.round(Math.random()*10),_d={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},OC={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_d[xR]=!0;var D5=["z","z2","invisible"],Kst=["invisible"],jst=function(t){we(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=Yt(n),a=0;a<r.length;a++){var i=r[a];i==="style"?this.useStyle(n[i]):t.prototype.attrKV.call(this,i,n[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(n,r,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Yst(this,n,r)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(n,r){return this.rectContain(n,r)},e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.rectContain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();return i.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Ft(0,0,0,0)),r?Ft.applyTransform(n,a,r):n.copy(a),(o||s||l)&&(n.width+=o*2+Math.abs(s),n.height+=o*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-o),n.y=Math.min(n.y,n.y+l-o));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},e.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Ft(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(n){return this.animate("style",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(n,r){n!=="style"?t.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:Oe(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=Qg,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Qg)},e.prototype.styleUpdated=function(){this.__dirty&=~Qg},e.prototype.createStyle=function(n){return Fm(_d,n)},e.prototype.useStyle=function(n){n[xR]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[xR]},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,r,D5)},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.style?o?i?u=r.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,r.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Yt(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=Yt(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?Kst:D5,d=0;d<p.length;d++){var h=p[d];r&&r[h]!=null?this[h]=r[h]:l&&a[h]!=null&&(this[h]=a[h])}},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(r.style=a),r},e.prototype._mergeStyle=function(n,r){return Oe(n,r),n},e.prototype.getAnimationStyleProps=function(){return OC},e.initDefaultProps=function(){var n=e.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=_i|Qg}(),e}(qee),eE=new Ft(0,0,0,0),tE=new Ft(0,0,0,0);function Yst(t,e,n){return eE.copy(t.getBoundingRect()),t.transform&&eE.applyTransform(t.transform),tE.width=e,tE.height=n,!eE.intersect(tE)}const ho=jst;var li=Math.min,ui=Math.max,nE=Math.sin,rE=Math.cos,cf=Math.PI*2,_S=Bc(),xS=Bc(),CS=Bc();function AC(t,e,n){if(t.length!==0){for(var r=t[0],a=r[0],i=r[0],o=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],a=li(a,r[0]),i=ui(i,r[0]),o=li(o,r[1]),s=ui(s,r[1]);e[0]=a,e[1]=o,n[0]=i,n[1]=s}}function k5(t,e,n,r,a,i){a[0]=li(t,n),a[1]=li(e,r),i[0]=ui(t,n),i[1]=ui(e,r)}var R5=[],L5=[];function Xst(t,e,n,r,a,i,o,s,l,u){var c=Aee,f=Ar,d=c(t,n,a,o,R5);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(t,n,a,o,R5[h]);l[0]=li(v,l[0]),u[0]=ui(v,u[0])}d=c(e,r,i,s,L5);for(var h=0;h<d;h++){var p=f(e,r,i,s,L5[h]);l[1]=li(p,l[1]),u[1]=ui(p,u[1])}l[0]=li(t,l[0]),u[0]=ui(t,u[0]),l[0]=li(o,l[0]),u[0]=ui(o,u[0]),l[1]=li(e,l[1]),u[1]=ui(e,u[1]),l[1]=li(s,l[1]),u[1]=ui(s,u[1])}function qst(t,e,n,r,a,i,o,s){var l=Vee,u=Wr,c=ui(li(l(t,n,a),1),0),f=ui(li(l(e,r,i),1),0),d=u(t,n,a,c),h=u(e,r,i,f);o[0]=li(t,a,d),o[1]=li(e,i,h),s[0]=ui(t,a,d),s[1]=ui(e,i,h)}function Zst(t,e,n,r,a,i,o,s,l){var u=El,c=Ml,f=Math.abs(a-i);if(f%cf<1e-4&&f>1e-4){s[0]=t-n,s[1]=e-r,l[0]=t+n,l[1]=e+r;return}if(_S[0]=rE(a)*n+t,_S[1]=nE(a)*r+e,xS[0]=rE(i)*n+t,xS[1]=nE(i)*r+e,u(s,_S,xS),c(l,_S,xS),a=a%cf,a<0&&(a=a+cf),i=i%cf,i<0&&(i=i+cf),a>i&&!o?i+=cf:a<i&&o&&(a+=cf),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(CS[0]=rE(h)*n+t,CS[1]=nE(h)*r+e,u(s,CS,s),c(l,CS,l))}var Ln={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ff=[],df=[],ps=[],hu=[],vs=[],gs=[],aE=Math.min,iE=Math.max,hf=Math.cos,pf=Math.sin,cl=Math.abs,CR=Math.PI,Du=CR*2,oE=typeof Float32Array<"u",Sg=[];function sE(t){var e=Math.round(t/CR*1e8)/1e8;return e%2*CR}function yte(t,e){var n=sE(t[0]);n<0&&(n+=Du);var r=n-t[0],a=t[1];a+=r,!e&&a-n>=Du?a=n+Du:e&&n-a>=Du?a=n-Du:!e&&n>a?a=n+(Du-sE(n-a)):e&&n<a&&(a=n-(Du-sE(a-n))),t[0]=n,t[1]=a}var Qst=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,n,r){r=r||0,r>0&&(this._ux=cl(r/E_/e)||0,this._uy=cl(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(Ln.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=cl(e-this._xi),a=cl(n-this._yi),i=r>this._ux||a>this._uy;if(this.addData(Ln.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(Ln.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(Ln.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(),Sg[0]=a,Sg[1]=i,yte(Sg,o),a=Sg[0],i=Sg[1];var s=i-a;return this.addData(Ln.A,e,n,r,r,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,n,r,a,i,o),this._xi=hf(i)*r+e,this._yi=pf(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(Ln.R,e,n,r,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ln.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)&&oE&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=e[r];this._len=n},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var n=e.length,r=0,a=this._len,i=0;i<n;i++)r+=e[i].len();oE&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+r));for(var i=0;i<n;i++)for(var o=e[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},t.prototype.addData=function(e,n,r,a,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(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;n<this._len;n++)e[n]=this.data[n];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,oE&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){ps[0]=ps[1]=vs[0]=vs[1]=Number.MAX_VALUE,hu[0]=hu[1]=gs[0]=gs[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,a=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(n=e[o],r=e[o+1],a=n,i=r),s){case Ln.M:n=a=e[o++],r=i=e[o++],vs[0]=a,vs[1]=i,gs[0]=a,gs[1]=i;break;case Ln.L:k5(n,r,e[o],e[o+1],vs,gs),n=e[o++],r=e[o++];break;case Ln.C:Xst(n,r,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],vs,gs),n=e[o++],r=e[o++];break;case Ln.Q:qst(n,r,e[o++],e[o++],e[o],e[o+1],vs,gs),n=e[o++],r=e[o++];break;case Ln.A:var u=e[o++],c=e[o++],f=e[o++],d=e[o++],h=e[o++],v=e[o++]+h;o+=1;var p=!e[o++];l&&(a=hf(h)*f+u,i=pf(h)*d+c),Zst(u,c,f,d,h,v,p,vs,gs),n=hf(v)*f+u,r=pf(v)*d+c;break;case Ln.R:a=n=e[o++],i=r=e[o++];var g=e[o++],y=e[o++];k5(a,i,a+g,i+y,vs,gs);break;case Ln.Z:n=a,r=i;break}El(ps,ps,vs),Ml(hu,hu,gs)}return o===0&&(ps[0]=ps[1]=hu[0]=hu[1]=0),new Ft(ps[0],ps[1],hu[0]-ps[0],hu[1]-ps[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var h=e[d++],v=d===1;v&&(i=e[d],o=e[d+1],s=i,l=o);var p=-1;switch(h){case Ln.M:i=s=e[d++],o=l=e[d++];break;case Ln.L:{var g=e[d++],y=e[d++],m=g-i,S=y-o;(cl(m)>r||cl(S)>a||d===n-1)&&(p=Math.sqrt(m*m+S*S),i=g,o=y);break}case Ln.C:{var b=e[d++],x=e[d++],g=e[d++],y=e[d++],_=e[d++],C=e[d++];p=sot(i,o,b,x,g,y,_,C,10),i=_,o=C;break}case Ln.Q:{var b=e[d++],x=e[d++],g=e[d++],y=e[d++];p=uot(i,o,b,x,g,y,10),i=g,o=y;break}case Ln.A:var T=e[d++],D=e[d++],M=e[d++],E=e[d++],k=e[d++],R=e[d++],O=R+k;d+=1,e[d++],v&&(s=hf(k)*M+T,l=pf(k)*E+D),p=iE(M,E)*aE(Du,Math.abs(R)),i=hf(O)*M+T,o=pf(O)*E+D;break;case Ln.R:{s=i=e[d++],l=o=e[d++];var B=e[d++],$=e[d++];p=B*2+$*2;break}case Ln.Z:{var m=s-i,S=l-o;p=Math.sqrt(m*m+S*S),i=s,o=l;break}}p>=0&&(u[f++]=p,c+=p)}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,v,p,g=0,y=0,m,S=0,b,x;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,p=this._pathLen,m=n*p,!m)))e:for(var _=0;_<o;){var C=r[_++],T=_===1;switch(T&&(u=r[_],c=r[_+1],s=u,l=c),C!==Ln.L&&S>0&&(e.lineTo(b,x),S=0),C){case Ln.M:s=u=r[_++],l=c=r[_++],e.moveTo(u,c);break;case Ln.L:{f=r[_++],d=r[_++];var D=cl(f-u),M=cl(d-c);if(D>a||M>i){if(h){var E=v[y++];if(g+E>m){var k=(m-g)/E;e.lineTo(u*(1-k)+f*k,c*(1-k)+d*k);break e}g+=E}e.lineTo(f,d),u=f,c=d,S=0}else{var R=D*D+M*M;R>S&&(b=f,x=d,S=R)}break}case Ln.C:{var O=r[_++],B=r[_++],$=r[_++],V=r[_++],F=r[_++],L=r[_++];if(h){var E=v[y++];if(g+E>m){var k=(m-g)/E;Sc(u,O,$,F,k,ff),Sc(c,B,V,L,k,df),e.bezierCurveTo(ff[1],df[1],ff[2],df[2],ff[3],df[3]);break e}g+=E}e.bezierCurveTo(O,B,$,V,F,L),u=F,c=L;break}case Ln.Q:{var O=r[_++],B=r[_++],$=r[_++],V=r[_++];if(h){var E=v[y++];if(g+E>m){var k=(m-g)/E;Vy(u,O,$,k,ff),Vy(c,B,V,k,df),e.quadraticCurveTo(ff[1],df[1],ff[2],df[2]);break e}g+=E}e.quadraticCurveTo(O,B,$,V),u=$,c=V;break}case Ln.A:var N=r[_++],H=r[_++],K=r[_++],Q=r[_++],ie=r[_++],be=r[_++],le=r[_++],J=!r[_++],Z=K>Q?K:Q,ee=cl(K-Q)>.001,ce=ie+be,ue=!1;if(h){var E=v[y++];g+E>m&&(ce=ie+be*(m-g)/E,ue=!0),g+=E}if(ee&&e.ellipse?e.ellipse(N,H,K,Q,le,ie,ce,J):e.arc(N,H,Z,ie,ce,J),ue)break e;T&&(s=hf(ie)*K+N,l=pf(ie)*Q+H),u=hf(ce)*K+N,c=pf(ce)*Q+H;break;case Ln.R:s=u=r[_],l=c=r[_+1],f=r[_++],d=r[_++];var Y=r[_++],te=r[_++];if(h){var E=v[y++];if(g+E>m){var oe=m-g;e.moveTo(f,d),e.lineTo(f+aE(oe,Y),d),oe-=Y,oe>0&&e.lineTo(f+Y,d+aE(oe,te)),oe-=te,oe>0&&e.lineTo(f+iE(Y-oe,0),d+te),oe-=Y,oe>0&&e.lineTo(f,d+iE(te-oe,0));break e}g+=E}e.rect(f,d,Y,te);break;case Ln.Z:if(h){var E=v[y++];if(g+E>m){var k=(m-g)/E;e.lineTo(u*(1-k)+s*k,c*(1-k)+l*k);break e}g+=E}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=Ln,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const Js=Qst;function Au(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||o<e-s&&o<r-s||i>t+s&&i>n+s||i<t-s&&i<n-s)return!1;if(t!==n)l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);else return Math.abs(i-t)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function Jst(t,e,n,r,a,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>r+f&&c>i+f&&c>s+f||c<e-f&&c<r-f&&c<i-f&&c<s-f||u>t+f&&u>n+f&&u>a+f&&u>o+f||u<t-f&&u<n-f&&u<a-f&&u<o-f)return!1;var d=Nee(t,e,n,r,a,i,o,s,u,c,null);return d<=f/2}function mte(t,e,n,r,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>r+u&&l>i+u||l<e-u&&l<r-u&&l<i-u||s>t+u&&s>n+u&&s>a+u||s<t-u&&s<n-u&&s<a-u)return!1;var c=Bee(t,e,n,r,a,i,s,l,null);return c<=u/2}var O5=Math.PI*2;function Wo(t){return t%=O5,t<0&&(t+=O5),t}var bg=Math.PI*2;function elt(t,e,n,r,a,i,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-a)%bg<1e-4)return!0;if(i){var f=r;r=Wo(a),a=Wo(f)}else r=Wo(r),a=Wo(a);r>a&&(a+=bg);var d=Math.atan2(l,s);return d<0&&(d+=bg),d>=r&&d<=a||d+bg>=r&&d+bg<=a}function ml(t,e,n,r,a,i){if(i>e&&i>r||i<e&&i<r||r===e)return 0;var o=(i-e)/(r-e),s=r<e?1:-1;(o===1||o===0)&&(s=r<e?.5:-.5);var l=o*(n-t)+t;return l===a?1/0:l>a?s:0}var pu=Js.CMD,vf=Math.PI*2,tlt=1e-4;function nlt(t,e){return Math.abs(t-e)<tlt}var Va=[-1,-1,-1],Hi=[-1,-1];function rlt(){var t=Hi[0];Hi[0]=Hi[1],Hi[1]=t}function alt(t,e,n,r,a,i,o,s,l,u){if(u>e&&u>r&&u>i&&u>s||u<e&&u<r&&u<i&&u<s)return 0;var c=x_(e,r,i,s,u,Va);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,p=0;p<c;p++){var g=Va[p],y=g===0||g===1?.5:1,m=Ar(t,n,a,o,g);m<l||(d<0&&(d=Aee(e,r,i,s,Hi),Hi[1]<Hi[0]&&d>1&&rlt(),h=Ar(e,r,i,s,Hi[0]),d>1&&(v=Ar(e,r,i,s,Hi[1]))),d===2?g<Hi[0]?f+=h<e?y:-y:g<Hi[1]?f+=v<h?y:-y:f+=s<v?y:-y:g<Hi[0]?f+=h<e?y:-y:f+=s<h?y:-y)}return f}function ilt(t,e,n,r,a,i,o,s){if(s>e&&s>r&&s>i||s<e&&s<r&&s<i)return 0;var l=lot(e,r,i,s,Va);if(l===0)return 0;var u=Vee(e,r,i);if(u>=0&&u<=1){for(var c=0,f=Wr(e,r,i,u),d=0;d<l;d++){var h=Va[d]===0||Va[d]===1?.5:1,v=Wr(t,n,a,Va[d]);v<o||(Va[d]<u?c+=f<e?h:-h:c+=i<f?h:-h)}return c}else{var h=Va[0]===0||Va[0]===1?.5:1,v=Wr(t,n,a,Va[0]);return v<o?0:i<e?h:-h}}function olt(t,e,n,r,a,i,o,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Va[0]=-l,Va[1]=l;var u=Math.abs(r-a);if(u<1e-4)return 0;if(u>=vf-1e-4){r=0,a=vf;var c=i?1:-1;return o>=Va[0]+t&&o<=Va[1]+t?c:0}if(r>a){var f=r;r=a,a=f}r<0&&(r+=vf,a+=vf);for(var d=0,h=0;h<2;h++){var v=Va[h];if(v+t>o){var p=Math.atan2(s,v),c=i?1:-1;p<0&&(p=vf+p),(p>=r&&p<=a||p+vf>=r&&p+vf<=a)&&(p>Math.PI/2&&p<Math.PI*1.5&&(c=-c),d+=c)}}return d}function Ste(t,e,n,r,a){for(var i=t.data,o=t.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<o;){var p=i[v++],g=v===1;switch(p===pu.M&&v>1&&(n||(s+=ml(l,u,c,f,r,a))),g&&(l=i[v],u=i[v+1],c=l,f=u),p){case pu.M:c=i[v++],f=i[v++],l=c,u=f;break;case pu.L:if(n){if(Au(l,u,i[v],i[v+1],e,r,a))return!0}else s+=ml(l,u,i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case pu.C:if(n){if(Jst(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],e,r,a))return!0}else s+=alt(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case pu.Q:if(n){if(mte(l,u,i[v++],i[v++],i[v],i[v+1],e,r,a))return!0}else s+=ilt(l,u,i[v++],i[v++],i[v],i[v+1],r,a)||0;l=i[v++],u=i[v++];break;case pu.A:var y=i[v++],m=i[v++],S=i[v++],b=i[v++],x=i[v++],_=i[v++];v+=1;var C=!!(1-i[v++]);d=Math.cos(x)*S+y,h=Math.sin(x)*b+m,g?(c=d,f=h):s+=ml(l,u,d,h,r,a);var T=(r-y)*b/S+y;if(n){if(elt(y,m,b,x,x+_,C,e,T,a))return!0}else s+=olt(y,m,b,x,x+_,C,T,a);l=Math.cos(x+_)*S+y,u=Math.sin(x+_)*b+m;break;case pu.R:c=l=i[v++],f=u=i[v++];var D=i[v++],M=i[v++];if(d=c+D,h=f+M,n){if(Au(c,f,d,f,e,r,a)||Au(d,f,d,h,e,r,a)||Au(d,h,c,h,e,r,a)||Au(c,h,c,f,e,r,a))return!0}else s+=ml(d,f,d,h,r,a),s+=ml(c,h,c,f,r,a);break;case pu.Z:if(n){if(Au(l,u,c,f,e,r,a))return!0}else s+=ml(l,u,c,f,r,a);l=c,u=f;break}}return!n&&!nlt(u,f)&&(s+=ml(l,u,c,f,r,a)||0),s!==0}function slt(t,e,n){return Ste(t,0,!1,e,n)}function llt(t,e,n,r){return Ste(t,e,!0,n,r)}var D_=mt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_d),ult={style:mt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},OC.style)},lE=Zs.concat(["invisible","culling","z","z2","zlevel","parent"]),clt=function(t){we(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<lE.length;++s)a[lE[s]]=this[lE[s]];a.__dirty|=_i}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=Yt(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<r.length;i++){var o=r[i],s=n[o];o==="style"?this.style?Oe(this.style,s):this.useStyle(s):o==="shape"?Oe(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(it(n)){var r=Iy(n,0);return r>.5?gR:r>.2?Wot:yR}else if(n)return yR}return gR},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(it(r)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=Iy(n,0)<vR;if(i===o)return r}},e.prototype.buildPath=function(n,r,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Yh},e.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},e.prototype.createPathProxy=function(){this.path=new Js(!1)},e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>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&Yh)&&(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)),llt(s,l/u,n,r)))return!0}if(this.hasFill())return slt(s,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Yh,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&Yh)},e.prototype.createStyle=function(n){return Fm(D_,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;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),a,i=0;i<n.length;i++){var o=n[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(r.shape=a),r},e.prototype.getAnimationStyleProps=function(){return ult},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=function(i){we(o,i);function o(s){var l=i.call(this,s)||this;return n.init&&n.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return wt(n.style)},o.prototype.getDefaultShape=function(){return wt(n.shape)},o}(e);for(var a in n)typeof n[a]=="function"&&(r.prototype[a]=n[a]);return r},e.initDefaultProps=function(){var n=e.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=_i|Qg|Yh}(),e}(ho);const Wt=clt;var flt=mt({strokeFirst:!0,font:mc,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},D_),bte=function(t){we(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(n){return Fm(flt,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=Um(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}(ho);bte.prototype.type="tspan";const Gy=bte;var dlt=mt({x:0,y:0},_d),hlt={style:mt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},OC.style)};function plt(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var wte=function(t){we(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return Fm(dlt,n)},e.prototype._getSize=function(n){var r=this.style,a=r[n];if(a!=null)return a;var i=plt(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 hlt},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}(ho);wte.prototype.type="image";const Qr=wte;function vlt(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 up=Math.round;function _te(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&&(up(r*2)===up(a*2)&&(t.x1=t.x2=ad(r,s,!0)),up(i*2)===up(o*2)&&(t.y1=t.y2=ad(i,s,!0))),t}}function xte(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=ad(r,s,!0),t.y=ad(a,s,!0),t.width=Math.max(ad(r+i,s,!1)-t.x,i===0?0:1),t.height=Math.max(ad(a+o,s,!1)-t.y,o===0?0:1)),t}}function ad(t,e,n){if(!e)return t;var r=up(t*2);return(r+up(e))%2===0?r/2:(r+(n?1:-1))/2}var glt=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),ylt={},Cte=function(t){we(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new glt},e.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=xte(ylt,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?vlt(n,r):n.rect(a,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Wt);Cte.prototype.type="rect";const nn=Cte;var A5={fill:"#000"},N5=2,mlt={style:mt({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},OC.style)},Tte=function(t){we(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=A5,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;n<this._children.length;n++){var r=this._children[n];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},e.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):t.prototype.getLocalTransform.call(this,n)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,wlt(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new Ft(0,0,0,0),r=this._children,a=[],i=null,o=0;o<r.length;o++){var s=r[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(n.copy(l),n.applyTransform(u),i=i||n.clone(),i.union(n)):(i=i||l.clone(),i.union(l))}this._rect=i||n}return this._rect},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||A5},e.prototype.setTextContent=function(n){},e.prototype._mergeStyle=function(n,r){if(!r)return n;var a=r.rich,i=n.rich||a&&{};return Oe(n,r),a&&i?(this._mergeRich(i,a),n.rich=i):i&&(n.rich=i),n},e.prototype._mergeRich=function(n,r){for(var a=Yt(r),i=0;i<a.length;i++){var o=a[i];n[o]=n[o]||{},Oe(n[o],r[o])}},e.prototype.getAnimationStyleProps=function(){return mlt},e.prototype._getOrCreateChild=function(n){var r=this._children[this._childCursor];return(!r||!(r instanceof n))&&(r=new n),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},e.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||mc,a=n.padding,i=z5(n),o=Pst(i,n),s=uE(n),l=!!n.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,p=n.x||0,g=n.y||0,y=n.align||v.align||"left",m=n.verticalAlign||v.verticalAlign||"top",S=p,b=Xh(g,o.contentHeight,m);if(s||a){var x=e0(p,c,y),_=Xh(g,u,m);s&&this._renderBackground(n,n,x,_,c,u)}b+=h/2,a&&(S=F5(p,y,a),m==="top"?b+=a[0]:m==="bottom"&&(b-=a[2]));for(var C=0,T=!1,D=P5("fill"in n?n.fill:(T=!0,v.fill)),M=I5("stroke"in n?n.stroke:!l&&(!v.autoStroke||T)?(C=N5,v.stroke):null),E=n.textShadowBlur>0,k=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),R=o.calculatedLineHeight,O=0;O<d.length;O++){var B=this._getOrCreateChild(Gy),$=B.createStyle();B.useStyle($),$.text=d[O],$.x=S,$.y=b,y&&($.textAlign=y),$.textBaseline="middle",$.opacity=n.opacity,$.strokeFirst=!0,E&&($.shadowBlur=n.textShadowBlur||0,$.shadowColor=n.textShadowColor||"transparent",$.shadowOffsetX=n.textShadowOffsetX||0,$.shadowOffsetY=n.textShadowOffsetY||0),$.stroke=M,$.fill=D,M&&($.lineWidth=n.lineWidth||C,$.lineDash=n.lineDash,$.lineDashOffset=n.lineDashOffset||0),$.font=r,B5($,n),b+=h,k&&B.setBoundingRect(new Ft(e0($.x,n.width,$.textAlign),Xh($.y,R,$.textBaseline),f,R))}},e.prototype._updateRichTexts=function(){var n=this.style,r=z5(n),a=Gst(r,n),i=a.width,o=a.outerWidth,s=a.outerHeight,l=n.padding,u=n.x||0,c=n.y||0,f=this._defaultStyle,d=n.align||f.align,h=n.verticalAlign||f.verticalAlign,v=e0(u,o,d),p=Xh(c,s,h),g=v,y=p;l&&(g+=l[3],y+=l[0]);var m=g+i;uE(n)&&this._renderBackground(n,n,v,p,o,s);for(var S=!!n.backgroundColor,b=0;b<a.lines.length;b++){for(var x=a.lines[b],_=x.tokens,C=_.length,T=x.lineHeight,D=x.width,M=0,E=g,k=m,R=C-1,O=void 0;M<C&&(O=_[M],!O.align||O.align==="left");)this._placeToken(O,n,T,y,E,"left",S),D-=O.width,E+=O.width,M++;for(;R>=0&&(O=_[R],O.align==="right");)this._placeToken(O,n,T,y,k,"right",S),D-=O.width,k-=O.width,R--;for(E+=(i-(E-g)-(m-k)-D)/2;M<=R;)O=_[M],this._placeToken(O,n,T,y,E+O.width/2,"center",S),E+=O.width,M++;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&&uE(u);d&&this._renderBackground(u,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var h=!!u.backgroundColor,v=n.textPadding;v&&(o=F5(o,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var p=this._getOrCreateChild(Gy),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,S=0,b=P5("fill"in u?u.fill:"fill"in r?r.fill:(m=!0,y.fill)),x=I5("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||m)?(S=N5,y.stroke):null),_=u.textShadowBlur>0||r.textShadowBlur>0;g.text=n.text,g.x=o,g.y=f,_&&(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||mc,g.opacity=Xo(u.opacity,r.opacity,1),B5(g,u),x&&(g.lineWidth=Xo(u.lineWidth,r.lineWidth,S),g.lineDash=Pt(u.lineDash,r.lineDash),g.lineDashOffset=r.lineDashOffset||0,g.stroke=x),b&&(g.fill=b);var C=n.contentWidth,T=n.contentHeight;p.setBoundingRect(new Ft(e0(g.x,C,g.textAlign),Xh(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,v=this,p,g;if(d||n.lineHeight||u&&c){p=this._getOrCreateChild(nn),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(d){var m=p.style;m.fill=l||null,m.fillOpacity=Pt(n.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Qr),g.onload=function(){v.dirtyStyle()};var S=g.style;S.image=l.image,S.x=a,S.y=i,S.width=o,S.height=s}if(u&&c){var m=p.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=Pt(n.strokeOpacity,1),m.lineDash=n.borderDash,m.lineDashOffset=n.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var b=(p||g).style;b.shadowBlur=n.shadowBlur||0,b.shadowColor=n.shadowColor||"transparent",b.shadowOffsetX=n.shadowOffsetX||0,b.shadowOffsetY=n.shadowOffsetY||0,b.opacity=Xo(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return Mte(n)&&(r=[n.fontStyle,n.fontWeight,Ete(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Qi(r)||n.textFont||n.font},e}(ho),Slt={left:!0,right:1,center:1},blt={top:1,bottom:1,middle:1},V5=["fontStyle","fontWeight","fontSize","fontFamily"];function Ete(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?H3+"px":t+"px"}function B5(t,e){for(var n=0;n<V5.length;n++){var r=V5[n],a=e[r];a!=null&&(t[r]=a)}}function Mte(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function wlt(t){return $5(t),W(t.rich,$5),t}function $5(t){if(t){t.font=Tte.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||Slt[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||blt[n]?n:"top";var r=t.padding;r&&(t.padding=CC(t.padding))}}function I5(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function P5(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function F5(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function z5(t){var e=t.text;return e!=null&&(e+=""),e}function uE(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const tn=Tte;var Rt=sn(),TR=function(t,e,n,r){if(r){var a=Rt(r);a.dataIndex=n,a.dataType=e,a.seriesIndex=t,r.type==="group"&&r.traverse(function(i){var o=Rt(i);o.seriesIndex=t,o.dataIndex=n,o.dataType=e})}},G5=1,U5={},Dte=sn(),fN=sn(),dN=0,Wm=1,NC=2,Xa=["emphasis","blur","select"],Uy=["normal","emphasis","blur","select"],Bv=10,_lt=9,xd="highlight",cw="downplay",V0="select",fw="unselect",B0="toggleSelect";function _h(t){return t!=null&&t!=="none"}var H5=new Gm(100);function W5(t){if(it(t)){var e=H5.get(t);return e||(e=C_(t,-.1),H5.put(t,e)),e}else if(Pm(t)){var n=Oe({},t);return n.colorStops=Ie(t.colorStops,function(r){return{offset:r.offset,color:C_(r.color,-.1)}}),n}return t}function VC(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function kte(t){VC(t,"emphasis",NC)}function Rte(t){t.hoverState===NC&&VC(t,"normal",dN)}function hN(t){VC(t,"blur",Wm)}function Lte(t){t.hoverState===Wm&&VC(t,"normal",dN)}function xlt(t){t.selected=!0}function Clt(t){t.selected=!1}function K5(t,e,n){e(t,n)}function nu(t,e,n){K5(t,e,n),t.isGroup&&t.traverse(function(r){K5(r,e,n)})}function k_(t,e){switch(e){case"emphasis":t.hoverState=NC;break;case"normal":t.hoverState=dN;break;case"blur":t.hoverState=Wm;break;case"select":t.selected=!0}}function Tlt(t,e,n,r){for(var a=t.style,i={},o=0;o<e.length;o++){var s=e[o],l=a[s];i[s]=l??(r&&r[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function Elt(t,e,n,r){var a=n&&zt(n,"select")>=0,i=!1;if(t instanceof Wt){var o=Dte(t),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(_h(s)||_h(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(i=!0,r=Oe({},r),u=Oe({},u),u.fill=s):!_h(u.fill)&&_h(s)?(i=!0,r=Oe({},r),u=Oe({},u),u.fill=W5(s)):!_h(u.stroke)&&_h(l)&&(i||(r=Oe({},r),u=Oe({},u)),u.stroke=W5(l)),r.style=u}}if(r&&r.z2==null){i||(r=Oe({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(c??Bv)}return r}function Mlt(t,e,n){if(n&&n.z2==null){n=Oe({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??_lt)}return n}function Dlt(t,e,n){var r=zt(t.currentStates,e)>=0,a=t.style.opacity,i=r?null:Tlt(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 cE(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return Elt(this,t,e,n);if(t==="blur")return Dlt(this,t,n);if(t==="select")return Mlt(this,t,n)}return n}function Pd(t){t.stateProxy=cE;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=cE),n&&(n.stateProxy=cE)}function j5(t,e){!Vte(t,e)&&!t.__highByOuter&&nu(t,kte)}function Y5(t,e){!Vte(t,e)&&!t.__highByOuter&&nu(t,Rte)}function Ul(t,e){t.__highByOuter|=1<<(e||0),nu(t,kte)}function Hl(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&nu(t,Rte)}function Ote(t){nu(t,hN)}function pN(t){nu(t,Lte)}function Ate(t){nu(t,xlt)}function Nte(t){nu(t,Clt)}function Vte(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Bte(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(a,i){var o=fN(i),s=a==="series",l=s?t.getViewOfSeriesModel(i):t.getViewOfComponentModel(i);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){Lte(u)}),s&&n.push(i)),o.isBlured=!1}),W(r,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,e)})}function ER(t,e,n,r){var a=r.getModel();n=n||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&pN(d)}}if(t!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!d||e==="series"&&c)){var h=r.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&c&&e==="self"||hN(g)}),la(e))i(u.getData(),e);else if(bt(e))for(var v=Yt(e),p=0;p<v.length;p++)i(u.getData(v[p]),e[v[p]]);l.push(u),fN(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=r.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function MR(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){fN(r).isBlured=!0;var a=n.getViewOfComponentModel(r);!a||!a.focusBlurEnabled||a.group.traverse(function(i){hN(i)})}}}function klt(t,e,n){var r=t.seriesIndex,a=t.getData(e.dataType);if(a){var i=$d(a,e);i=($e(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=Rt(o);ER(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);c!=null&&ER(r,c,f,n)}}}function vN(t,e,n,r){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return a;var i=r.getModel().getComponent(t,e);if(!i)return a;var o=r.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(Rt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Rlt(t,e,n){var r=Rt(t),a=vN(r.componentMainType,r.componentIndex,r.componentHighDownName,n),i=a.dispatchers,o=a.focusSelf;i?(o&&MR(r.componentMainType,r.componentIndex,n),W(i,function(s){return j5(s,e)})):(ER(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&MR(r.componentMainType,r.componentIndex,n),j5(t,e))}function Llt(t,e,n){Bte(n);var r=Rt(t),a=vN(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;a?W(a,function(i){return Y5(i,e)}):Y5(t,e)}function Olt(t,e,n){if(kR(e)){var r=e.dataType,a=t.getData(r),i=$d(a,e);$e(i)||(i=[i]),t[e.type===B0?"toggleSelect":e.type===V0?"select":"unselect"](i,r)}}function X5(t){var e=t.getAllData();W(e,function(n){var r=n.data,a=n.type;r.eachItemGraphicEl(function(i,o){t.isSelected(o,a)?Ate(i):Nte(i)})})}function Alt(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();W(r,function(a){a.data;var i=a.type,o=n.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:n.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function nc(t,e,n){id(t,!0),nu(t,Pd),DR(t,e,n)}function Nlt(t){id(t,!1)}function ar(t,e,n,r){r?Nlt(t):nc(t,e,n)}function DR(t,e,n){var r=Rt(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var q5=["emphasis","blur","select"],Vlt={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function ua(t,e,n,r){n=n||"itemStyle";for(var a=0;a<q5.length;a++){var i=q5[a],o=e.getModel([i,n]),s=t.ensureState(i);s.style=r?r(o):o[Vlt[n]]()}}function id(t,e){var n=e===!1,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Hy(t){return!!(t&&t.__highDownDispatcher)}function Blt(t,e,n){var r=Rt(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function $lt(t){var e=U5[t];return e==null&&G5<=32&&(e=U5[t]=G5++),e}function kR(t){var e=t.type;return e===V0||e===fw||e===B0}function Z5(t){var e=t.type;return e===xd||e===cw}function Ilt(t){var e=Dte(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var xh=Js.CMD,Plt=[[],[],[]],Q5=Math.sqrt,Flt=Math.atan2;function $te(t,e){if(e){var n=t.data,r=t.len(),a,i,o,s,l,u,c=xh.M,f=xh.C,d=xh.L,h=xh.R,v=xh.A,p=xh.Q;for(o=0,s=0;o<r;){switch(a=n[o++],s=o,i=0,a){case c:i=1;break;case d:i=1;break;case f:i=3;break;case p:i=2;break;case v:var g=e[4],y=e[5],m=Q5(e[0]*e[0]+e[1]*e[1]),S=Q5(e[2]*e[2]+e[3]*e[3]),b=Flt(-e[1]/S,e[0]/m);n[o]*=m,n[o++]+=g,n[o]*=S,n[o++]+=y,n[o++]*=m,n[o++]*=S,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case h:u[0]=n[o++],u[1]=n[o++],Xr(u,u,e),n[s++]=u[0],n[s++]=u[1],u[0]+=n[o++],u[1]+=n[o++],Xr(u,u,e),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<i;l++){var x=Plt[l];x[0]=n[o++],x[1]=n[o++],Xr(x,x,e),n[s++]=x[0],n[s++]=x[1]}}t.increaseVersion()}}var fE=Math.sqrt,TS=Math.sin,ES=Math.cos,wg=Math.PI;function J5(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function RR(t,e){return(t[0]*e[0]+t[1]*e[1])/(J5(t)*J5(e))}function ez(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(RR(t,e))}function tz(t,e,n,r,a,i,o,s,l,u,c){var f=l*(wg/180),d=ES(f)*(t-n)/2+TS(f)*(e-r)/2,h=-1*TS(f)*(t-n)/2+ES(f)*(e-r)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=fE(v),s*=fE(v));var p=(a===i?-1:1)*fE((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=p*o*h/s,y=p*-s*d/o,m=(t+n)/2+ES(f)*g-TS(f)*y,S=(e+r)/2+TS(f)*g+ES(f)*y,b=ez([1,0],[(d-g)/o,(h-y)/s]),x=[(d-g)/o,(h-y)/s],_=[(-1*d-g)/o,(-1*h-y)/s],C=ez(x,_);if(RR(x,_)<=-1&&(C=wg),RR(x,_)>=1&&(C=0),C<0){var T=Math.round(C/wg*1e6)/1e6;C=wg*2+T%2*wg}c.addData(u,m,S,o,s,b,C,f,i)}var zlt=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Glt=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ult(t){var e=new Js;if(!t)return e;var n=0,r=0,a=n,i=r,o,s=Js.CMD,l=t.match(zlt);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(Glt)||[],v=h.length,p=0;p<v;p++)h[p]=parseFloat(h[p]);for(var g=0;g<v;){var y=void 0,m=void 0,S=void 0,b=void 0,x=void 0,_=void 0,C=void 0,T=n,D=r,M=void 0,E=void 0;switch(f){case"l":n+=h[g++],r+=h[g++],d=s.L,e.addData(d,n,r);break;case"L":n=h[g++],r=h[g++],d=s.L,e.addData(d,n,r);break;case"m":n+=h[g++],r+=h[g++],d=s.M,e.addData(d,n,r),a=n,i=r,f="l";break;case"M":n=h[g++],r=h[g++],d=s.M,e.addData(d,n,r),a=n,i=r,f="L";break;case"h":n+=h[g++],d=s.L,e.addData(d,n,r);break;case"H":n=h[g++],d=s.L,e.addData(d,n,r);break;case"v":r+=h[g++],d=s.L,e.addData(d,n,r);break;case"V":r=h[g++],d=s.L,e.addData(d,n,r);break;case"C":d=s.C,e.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),n=h[g-2],r=h[g-1];break;case"c":d=s.C,e.addData(d,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r),n+=h[g-2],r+=h[g-1];break;case"S":y=n,m=r,M=e.len(),E=e.data,o===s.C&&(y+=n-E[M-4],m+=r-E[M-3]),d=s.C,T=h[g++],D=h[g++],n=h[g++],r=h[g++],e.addData(d,y,m,T,D,n,r);break;case"s":y=n,m=r,M=e.len(),E=e.data,o===s.C&&(y+=n-E[M-4],m+=r-E[M-3]),d=s.C,T=n+h[g++],D=r+h[g++],n+=h[g++],r+=h[g++],e.addData(d,y,m,T,D,n,r);break;case"Q":T=h[g++],D=h[g++],n=h[g++],r=h[g++],d=s.Q,e.addData(d,T,D,n,r);break;case"q":T=h[g++]+n,D=h[g++]+r,n+=h[g++],r+=h[g++],d=s.Q,e.addData(d,T,D,n,r);break;case"T":y=n,m=r,M=e.len(),E=e.data,o===s.Q&&(y+=n-E[M-4],m+=r-E[M-3]),n=h[g++],r=h[g++],d=s.Q,e.addData(d,y,m,n,r);break;case"t":y=n,m=r,M=e.len(),E=e.data,o===s.Q&&(y+=n-E[M-4],m+=r-E[M-3]),n+=h[g++],r+=h[g++],d=s.Q,e.addData(d,y,m,n,r);break;case"A":S=h[g++],b=h[g++],x=h[g++],_=h[g++],C=h[g++],T=n,D=r,n=h[g++],r=h[g++],d=s.A,tz(T,D,n,r,_,C,S,b,x,d,e);break;case"a":S=h[g++],b=h[g++],x=h[g++],_=h[g++],C=h[g++],T=n,D=r,n+=h[g++],r+=h[g++],d=s.A,tz(T,D,n,r,_,C,S,b,x,d,e);break}}(f==="z"||f==="Z")&&(d=s.Z,e.addData(d),n=a,r=i),o=d}return e.toStatic(),e}var Ite=function(t){we(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e}(Wt);function Pte(t){return t.setData!=null}function Fte(t,e){var n=Ult(t),r=Oe({},e);return r.buildPath=function(a){if(Pte(a)){a.setData(n.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;n.rebuildPath(i,1)}},r.applyTransform=function(a){$te(n,a),this.dirtyShape()},r}function zte(t,e){return new Ite(Fte(t,e))}function Hlt(t,e){var n=Fte(t,e),r=function(a){we(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return i}(Ite);return r}function Wlt(t,e){for(var n=[],r=t.length,a=0;a<r;a++){var i=t[a];n.push(i.getUpdatedPathProxy(!0))}var o=new Wt(e);return o.createPathProxy(),o.buildPath=function(s){if(Pte(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function gN(t,e){e=e||{};var n=new Wt;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?$te(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var Klt=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Gte=function(t){we(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Klt},e.prototype.buildPath=function(n,r){n.moveTo(r.cx+r.r,r.cy),n.arc(r.cx,r.cy,r.r,0,Math.PI*2)},e}(Wt);Gte.prototype.type="circle";const as=Gte;var jlt=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Ute=function(t){we(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new jlt},e.prototype.buildPath=function(n,r){var a=.5522848,i=r.cx,o=r.cy,s=r.rx,l=r.ry,u=s*a,c=l*a;n.moveTo(i-s,o),n.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),n.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),n.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),n.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),n.closePath()},e}(Wt);Ute.prototype.type="ellipse";const BC=Ute;var Hte=Math.PI,dE=Hte*2,gf=Math.sin,Ch=Math.cos,Ylt=Math.acos,va=Math.atan2,nz=Math.abs,$0=Math.sqrt,t0=Math.max,ys=Math.min,Co=1e-4;function Xlt(t,e,n,r,a,i,o,s){var l=n-t,u=r-e,c=o-a,f=s-i,d=f*l-c*u;if(!(d*d<Co))return d=(c*(e-i)-f*(t-a))/d,[t+d*l,e+d*u]}function MS(t,e,n,r,a,i,o){var s=t-n,l=e-r,u=(o?i:-i)/$0(s*s+l*l),c=u*l,f=-u*s,d=t+c,h=e+f,v=n+c,p=r+f,g=(d+v)/2,y=(h+p)/2,m=v-d,S=p-h,b=m*m+S*S,x=a-i,_=d*p-v*h,C=(S<0?-1:1)*$0(t0(0,x*x*b-_*_)),T=(_*S-m*C)/b,D=(-_*m-S*C)/b,M=(_*S+m*C)/b,E=(-_*m+S*C)/b,k=T-g,R=D-y,O=M-g,B=E-y;return k*k+R*R>O*O+B*B&&(T=M,D=E),{cx:T,cy:D,x0:-c,y0:-f,x1:T*(a/x-1),y1:D*(a/x-1)}}function qlt(t){var e;if($e(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 Zlt(t,e){var n,r=t0(e.r,0),a=t0(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=nz(u-l),v=h>dE&&h%dE;if(v>Co&&(h=v),!(r>Co))t.moveTo(c,f);else if(h>dE-Co)t.moveTo(c+r*Ch(l),f+r*gf(l)),t.arc(c,f,r,l,u,!d),a>Co&&(t.moveTo(c+a*Ch(u),f+a*gf(u)),t.arc(c,f,a,u,l,d));else{var p=void 0,g=void 0,y=void 0,m=void 0,S=void 0,b=void 0,x=void 0,_=void 0,C=void 0,T=void 0,D=void 0,M=void 0,E=void 0,k=void 0,R=void 0,O=void 0,B=r*Ch(l),$=r*gf(l),V=a*Ch(u),F=a*gf(u),L=h>Co;if(L){var N=e.cornerRadius;N&&(n=qlt(N),p=n[0],g=n[1],y=n[2],m=n[3]);var H=nz(r-a)/2;if(S=ys(H,y),b=ys(H,m),x=ys(H,p),_=ys(H,g),D=C=t0(S,b),M=T=t0(x,_),(C>Co||T>Co)&&(E=r*Ch(u),k=r*gf(u),R=a*Ch(l),O=a*gf(l),h<Hte)){var K=Xlt(B,$,R,O,E,k,V,F);if(K){var Q=B-K[0],ie=$-K[1],be=E-K[0],le=k-K[1],J=1/gf(Ylt((Q*be+ie*le)/($0(Q*Q+ie*ie)*$0(be*be+le*le)))/2),Z=$0(K[0]*K[0]+K[1]*K[1]);D=ys(C,(r-Z)/(J+1)),M=ys(T,(a-Z)/(J-1))}}}if(!L)t.moveTo(c+B,f+$);else if(D>Co){var ee=ys(y,D),ce=ys(m,D),ue=MS(R,O,B,$,r,ee,d),Y=MS(E,k,V,F,r,ce,d);t.moveTo(c+ue.cx+ue.x0,f+ue.cy+ue.y0),D<C&&ee===ce?t.arc(c+ue.cx,f+ue.cy,D,va(ue.y0,ue.x0),va(Y.y0,Y.x0),!d):(ee>0&&t.arc(c+ue.cx,f+ue.cy,ee,va(ue.y0,ue.x0),va(ue.y1,ue.x1),!d),t.arc(c,f,r,va(ue.cy+ue.y1,ue.cx+ue.x1),va(Y.cy+Y.y1,Y.cx+Y.x1),!d),ce>0&&t.arc(c+Y.cx,f+Y.cy,ce,va(Y.y1,Y.x1),va(Y.y0,Y.x0),!d))}else t.moveTo(c+B,f+$),t.arc(c,f,r,l,u,!d);if(!(a>Co)||!L)t.lineTo(c+V,f+F);else if(M>Co){var ee=ys(p,M),ce=ys(g,M),ue=MS(V,F,E,k,a,-ce,d),Y=MS(B,$,R,O,a,-ee,d);t.lineTo(c+ue.cx+ue.x0,f+ue.cy+ue.y0),M<T&&ee===ce?t.arc(c+ue.cx,f+ue.cy,M,va(ue.y0,ue.x0),va(Y.y0,Y.x0),!d):(ce>0&&t.arc(c+ue.cx,f+ue.cy,ce,va(ue.y0,ue.x0),va(ue.y1,ue.x1),!d),t.arc(c,f,a,va(ue.cy+ue.y1,ue.cx+ue.x1),va(Y.cy+Y.y1,Y.cx+Y.x1),d),ee>0&&t.arc(c+Y.cx,f+Y.cy,ee,va(Y.y1,Y.x1),va(Y.y0,Y.x0),!d))}else t.lineTo(c+V,f+F),t.arc(c,f,a,u,l,d)}t.closePath()}}}var Qlt=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}(),Wte=function(t){we(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Qlt},e.prototype.buildPath=function(n,r){Zlt(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Wt);Wte.prototype.type="sector";const qa=Wte;var Jlt=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Kte=function(t){we(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Jlt},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);Kte.prototype.type="ring";const Km=Kte;function eut(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<h;d++)El(c,c,t[d]),Ml(f,f,t[d]);El(c,c,r[0]),Ml(f,f,r[1])}for(var d=0,h=t.length;d<h;d++){var v=t[d];if(n)l=t[d?d-1:h-1],u=t[(d+1)%h];else if(d===0||d===h-1){a.push(zs(t[d]));continue}else l=t[d-1],u=t[d+1];Gu(i,u,l),k0(i,i,e);var p=w_(v,l),g=w_(v,u),y=p+g;y!==0&&(p/=y,g/=y),k0(o,i,-p),k0(s,i,g);var m=eR([],v,o),S=eR([],v,s);r&&(Ml(m,m,c),El(m,m,f),Ml(S,S,c),El(S,S,f)),a.push(m),a.push(S)}return n&&a.push(a.shift()),a}function jte(t,e,n){var r=e.smooth,a=e.points;if(a&&a.length>=2){if(r){var i=eut(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;s<f;s++)t.lineTo(a[s][0],a[s][1])}n&&t.closePath()}}var tut=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Yte=function(t){we(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new tut},e.prototype.buildPath=function(n,r){jte(n,r,!0)},e}(Wt);Yte.prototype.type="polygon";const Za=Yte;var nut=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Xte=function(t){we(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 nut},e.prototype.buildPath=function(n,r){jte(n,r,!1)},e}(Wt);Xte.prototype.type="polyline";const ei=Xte;var rut={},aut=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),qte=function(t){we(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 aut},e.prototype.buildPath=function(n,r){var a,i,o,s;if(this.subPixelOptimize){var l=_te(rut,r,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=r.x1,i=r.y1,o=r.x2,s=r.y2;var u=r.percent;u!==0&&(n.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),n.lineTo(o,s))},e.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},e}(Wt);qte.prototype.type="line";const Vr=qte;var ri=[],iut=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function rz(t,e,n){var r=t.cpx2,a=t.cpy2;return r!=null||a!=null?[(n?u5:Ar)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?u5:Ar)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?oR:Wr)(t.x1,t.cpx1,t.x2,e),(n?oR:Wr)(t.y1,t.cpy1,t.y2,e)]}var Zte=function(t){we(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 iut},e.prototype.buildPath=function(n,r){var a=r.x1,i=r.y1,o=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,f=r.cpy2,d=r.percent;d!==0&&(n.moveTo(a,i),c==null||f==null?(d<1&&(Vy(a,l,o,d,ri),l=ri[1],o=ri[2],Vy(i,u,s,d,ri),u=ri[1],s=ri[2]),n.quadraticCurveTo(l,u,o,s)):(d<1&&(Sc(a,l,c,o,d,ri),l=ri[1],c=ri[2],o=ri[3],Sc(i,u,f,s,d,ri),u=ri[1],f=ri[2],s=ri[3]),n.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(n){return rz(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=rz(this.shape,n,!0);return Qd(r,r)},e}(Wt);Zte.prototype.type="bezier-curve";const jm=Zte;var out=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Qte=function(t){we(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 out},e.prototype.buildPath=function(n,r){var a=r.cx,i=r.cy,o=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,u=r.clockwise,c=Math.cos(s),f=Math.sin(s);n.moveTo(c*o+a,f*o+i),n.arc(a,i,o,s,l,!u)},e}(Wt);Qte.prototype.type="arc";const $C=Qte;var sut=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return e.prototype._updatePathDirty=function(){for(var n=this.shape.paths,r=this.shapeChanged(),a=0;a<n.length;a++)r=r||n[a].shapeChanged();r&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],r=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(r[0],r[1],n[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(n,r){for(var a=r.paths||[],i=0;i<a.length;i++)a[i].buildPath(n,a[i].shape,!0)},e.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Wt.prototype.getBoundingRect.call(this)},e}(Wt);const IC=sut;var lut=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t}();const Jte=lut;var uut=function(t){we(e,t);function e(n,r,a,i,o,s){var l=t.call(this,o)||this;return l.x=n??0,l.y=r??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e}(Jte);const $v=uut;var cut=function(t){we(e,t);function e(n,r,a,i,o){var s=t.call(this,i)||this;return s.x=n??.5,s.y=r??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e}(Jte);const yN=cut;var yf=[0,0],mf=[0,0],DS=new It,kS=new It,fut=function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new It;for(var r=0;r<2;r++)this._axes[r]=new It;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,a=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(r[0].set(i,o),r[1].set(s,o),r[2].set(s,l),r[3].set(i,l),n)for(var u=0;u<4;u++)r[u].transform(n);It.sub(a[0],r[1],r[0]),It.sub(a[1],r[3],r[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(r[0])},t.prototype.intersect=function(e,n){var r=!0,a=!n;return DS.set(1/0,1/0),kS.set(0,0),!this._intersectCheckOneSide(this,e,DS,kS,a,1)&&(r=!1,a)||!this._intersectCheckOneSide(e,this,DS,kS,a,-1)&&(r=!1,a)||a||It.copy(n,r?DS:kS),r},t.prototype._intersectCheckOneSide=function(e,n,r,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,yf),this._getProjMinMaxOnAxis(l,n._corners,mf),yf[1]<mf[0]||yf[0]>mf[1]){if(s=!1,i)return s;var c=Math.abs(mf[0]-yf[1]),f=Math.abs(yf[0]-mf[1]);Math.min(c,f)>a.len()&&(c<f?It.scale(a,u,-c*o):It.scale(a,u,f*o))}else if(r){var c=Math.abs(mf[0]-yf[1]),f=Math.abs(yf[0]-mf[1]);Math.min(c,f)<r.len()&&(c<f?It.scale(r,u,c*o):It.scale(r,u,-f*o))}}return s},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var a=this._axes[e],i=this._origin,o=n[0].dot(a)+i[e],s=o,l=o,u=1;u<n.length;u++){var c=n[u].dot(a)+i[e];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},t}();const R_=fut;var dut=[],hut=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},e.prototype.addDisplayables=function(n,r){r=r||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(n){for(var r=this._cursor;r<this._displayables.length;r++)n&&n(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)n&&n(this._temporaryDisplayables[r])},e.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var r=this._displayables[n];r.parent=this,r.update(),r.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var r=this._temporaryDisplayables[n];r.parent=this,r.update(),r.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Ft(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var a=this._displayables[r],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(dut)),n.union(i)}this._rect=n}return this._rect},e.prototype.contain=function(n,r){var a=this.transformCoordToLocal(n,r),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(n,r))return!0}return!1},e}(ho);const ene=hut;var tne=sn();function Iv(t,e,n,r,a){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=Pt(r.duration,200),c=Pt(r.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),gt(f)&&(f=f(n,a)),gt(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function mN(t,e,n,r,a,i,o){var s=!1,l;gt(a)?(o=i,i=a,a=null):bt(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var c=Iv(t,r,a,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(n,v):e.animateTo(n,v)}else e.stopAnimation(),!s&&e.attr(n),o&&o(1),i&&i()}function cn(t,e,n,r,a,i){mN("update",t,e,n,r,a,i)}function Un(t,e,n,r,a,i){mN("enter",t,e,n,r,a,i)}function kp(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if(n.scope==="leave")return!0}return!1}function bc(t,e,n,r,a,i){kp(t)||mN("leave",t,e,n,r,a,i)}function az(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),bc(t,{style:{opacity:0}},e,n,r)}function Wy(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||az(a,e,n,r)}):az(t,e,n,r)}function is(t){tne(t).oldStyle=t.style}function put(t){return tne(t).oldStyle}var L_=Math.max,O_=Math.min,LR={};function nne(t){return Wt.extend(t)}var vut=Hlt;function rne(t,e){return vut(t,e)}function vo(t,e){LR[t]=e}function PC(t){if(LR.hasOwnProperty(t))return LR[t]}function Ym(t,e,n,r){var a=zte(t,e);return n&&(r==="center"&&(n=ane(n,a.getBoundingRect())),bN(a,n)),a}function SN(t,e,n){var r=new Qr({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(n==="center"){var i={width:a.width,height:a.height};r.setStyle(ane(e,i))}}});return r}function ane(t,e){var n=e.width/e.height,r=t.height*n,a;r<=t.width?a=t.height:(r=t.width,a=r/n);var i=t.x+t.width/2,o=t.y+t.height/2;return{x:i-r/2,y:o-a/2,width:r,height:a}}var xi=Wlt;function bN(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function cv(t,e){return _te(t,t,{lineWidth:e}),t}function gut(t){return xte(t.shape,t.shape,t.style),t}var dw=ad;function rc(t,e){for(var n=zm([]);t&&t!==e;)Gs(n,t.getLocalTransform(),n),t=t.parent;return n}function Qo(t,e,n){return e&&!la(e)&&(e=Dl.getLocalTransform(e)),n&&(e=Jd([],e)),Xr([],t,e)}function FC(t,e,n){var r=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),i=[t==="left"?-r:t==="right"?r:0,t==="top"?-a:t==="bottom"?a:0];return i=Qo(i,e,n),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function iz(t){return!t.isGroup}function yut(t){return t.shape!=null}function Xm(t,e,n){if(!t||!e)return;function r(o){var s={};return o.traverse(function(l){iz(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return yut(o)&&(s.shape=Oe({},o.shape)),s}var i=r(t);e.traverse(function(o){if(iz(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),cn(o,l,n,Rt(o).dataIndex)}}})}function wN(t,e){return Ie(t,function(n){var r=n[0];r=L_(r,e.x),r=O_(r,e.x+e.width);var a=n[1];return a=L_(a,e.y),a=O_(a,e.y+e.height),[r,a]})}function ine(t,e){var n=L_(t.x,e.x),r=O_(t.x+t.width,e.x+e.width),a=L_(t.y,e.y),i=O_(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 Pv(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),mt(a,n),new Qr(r)):Ym(t.replace("path://",""),r,n,"center")}function n0(t,e,n,r,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(one(t,e,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function one(t,e,n,r,a,i,o,s){var l=n-t,u=r-e,c=o-a,f=s-i,d=hE(c,f,l,u);if(mut(d))return!1;var h=t-a,v=e-i,p=hE(h,v,l,u)/d;if(p<0||p>1)return!1;var g=hE(h,v,c,f)/d;return!(g<0||g>1)}function hE(t,e,n,r){return t*r-n*e}function mut(t){return t<=1e-6&&t>=-1e-6}function Fv(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,a=it(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){lt(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:mt({content:r,formatterParams:s},a)}}function oz(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Ic(t,e){if(t)if($e(t))for(var n=0;n<t.length;n++)oz(t[n],e);else oz(t,e)}vo("circle",as);vo("ellipse",BC);vo("sector",qa);vo("ring",Km);vo("polygon",Za);vo("polyline",ei);vo("rect",nn);vo("line",Vr);vo("bezierCurve",jm);vo("arc",$C);const qm=Object.freeze(Object.defineProperty({__proto__:null,Arc:$C,BezierCurve:jm,BoundingRect:Ft,Circle:as,CompoundPath:IC,Ellipse:BC,Group:Ct,Image:Qr,IncrementalDisplayable:ene,Line:Vr,LinearGradient:$v,OrientedBoundingRect:R_,Path:Wt,Point:It,Polygon:Za,Polyline:ei,RadialGradient:yN,Rect:nn,Ring:Km,Sector:qa,Text:tn,applyTransform:Qo,clipPointsByRect:wN,clipRectByRect:ine,createIcon:Pv,extendPath:rne,extendShape:nne,getShapeClass:PC,getTransform:rc,groupTransition:Xm,initProps:Un,isElementRemoved:kp,lineLineIntersect:one,linePolygonIntersect:n0,makeImage:SN,makePath:Ym,mergePath:xi,registerShape:vo,removeElement:bc,removeElementWithFadeOut:Wy,resizePath:bN,setTooltipConfig:Fv,subPixelOptimize:dw,subPixelOptimizeLine:cv,subPixelOptimizeRect:gut,transformDirection:FC,traverseElements:Ic,updateProps:cn},Symbol.toStringTag,{value:"Module"}));var zC={};function sne(t,e){for(var n=0;n<Xa.length;n++){var r=Xa[n],a=e[r],i=t.ensureState(r);i.style=i.style||{},i.style.text=a}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function OR(t,e,n){var r=t.labelFetcher,a=t.labelDataIndex,i=t.labelDimIndex,o=e.normal,s;r&&(s=r.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=gt(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var l={normal:s},u=0;u<Xa.length;u++){var c=Xa[u],f=e[c];l[c]=Pt(r?r.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function ca(t,e,n,r){n=n||zC;for(var a=t instanceof tn,i=!1,o=0;o<Uy.length;o++){var s=e[Uy[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?t:t.getTextContent();if(i){a||(l||(l=new tn,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=OR(n,e),c=e.normal,f=!!c.getShallow("show"),d=An(c,r&&r.normal,n,!1,!a);d.text=u.normal,a||t.setTextConfig(A_(c,n,!1));for(var o=0;o<Xa.length;o++){var h=Xa[o],s=e[h];if(s){var v=l.ensureState(h),p=!!Pt(s.getShallow("show"),f);if(p!==f&&(v.ignore=!p),v.style=An(s,r&&r[h],n,!0,!a),v.style.text=u[h],!a){var g=t.ensureState(h);g.textConfig=A_(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),n.enableTextSetter&&(zv(l).setLabelText=function(y){var m=OR(n,e,y);sne(l,m)})}else l&&(l.ignore=!0);t.dirty()}function Pr(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Xa.length;r++){var a=Xa[r];n[a]=t.getModel([a,e])}return n}function An(t,e,n,r,a){var i={};return Sut(i,t,n,r,a),e&&Oe(i,e),i}function A_(t,e,n){e=e||{};var r={},a,i=t.getShallow("rotate"),o=Pt(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return a=t.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(r.position=a),s!=null&&(r.offset=s),i!=null&&(i*=Math.PI/180,r.rotation=i),o!=null&&(r.distance=o),r.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",r}function Sut(t,e,n,r,a){n=n||zC;var i=e.ecModel,o=i&&i.option.textStyle,s=but(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);cz(l[u]={},c,o,n,r,a,!1,!0)}}l&&(t.rich=l);var f=e.get("overflow");f&&(t.overflow=f);var d=e.get("minMargin");d!=null&&(t.margin=d),cz(t,e,o,n,r,a,!0,!1)}function but(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||zC).rich;if(n){e=e||{};for(var r=Yt(n),a=0;a<r.length;a++){var i=r[a];e[i]=1}}t=t.parentModel}return e}var sz=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],lz=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],uz=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function cz(t,e,n,r,a,i,o,s){n=!a&&n||zC;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),f=Pt(e.getShallow("opacity"),n.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),i||(u=u||n.color,c=c||n.textBorderColor),u!=null&&(t.fill=u),c!=null&&(t.stroke=c);var d=Pt(e.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(t.lineWidth=d);var h=Pt(e.getShallow("textBorderType"),n.textBorderType);h!=null&&(t.lineDash=h);var v=Pt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);v!=null&&(t.lineDashOffset=v),!a&&f==null&&!s&&(f=r&&r.defaultOpacity),f!=null&&(t.opacity=f),!a&&!i&&t.fill==null&&r.inheritColor&&(t.fill=r.inheritColor);for(var p=0;p<sz.length;p++){var g=sz[p],y=Pt(e.getShallow(g),n[g]);y!=null&&(t[g]=y)}for(var p=0;p<lz.length;p++){var g=lz[p],y=e.getShallow(g);y!=null&&(t[g]=y)}if(t.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(t.verticalAlign=m)}if(!o||!r.disableBox){for(var p=0;p<uz.length;p++){var g=uz[p],y=e.getShallow(g);y!=null&&(t[g]=y)}var S=e.getShallow("borderType");S!=null&&(t.borderDash=S),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(t.borderColor=l)}}function lne(t,e){var n=e&&e.getModel("textStyle");return Qi([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var zv=sn();function une(t,e,n,r){if(t){var a=zv(t);a.prevValue=a.value,a.value=n;var i=e.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=r,a.statesModels=e)}}function cne(t,e,n,r,a){var i=zv(t);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=Pt(i.interpolatedValue,i.prevValue),l=i.value;function u(c){var f=cte(n,i.precision,s,l,c);i.interpolatedValue=c===1?null:f;var d=OR({labelDataIndex:e,labelFetcher:a,defaultText:o?o(f):f+""},i.statesModels,f);sne(t,d)}t.percent=0,(i.prevValue==null?Un:cn)(t,{percent:1},r,e,null,u)}var wut=["textStyle","color"],pE=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],vE=new tn,_ut=function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(wut):null)},t.prototype.getFont=function(){return lne({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var n={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<pE.length;r++)n[pE[r]]=this.getShallow(pE[r]);return vE.useStyle(n),vE.update(),vE.getBoundingRect()},t}();const xut=_ut;var fne=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Cut=Id(fne),Tut=function(){function t(){}return t.prototype.getLineStyle=function(e){return Cut(this,e)},t}(),dne=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Eut=Id(dne),Mut=function(){function t(){}return t.prototype.getItemStyle=function(e,n){return Eut(this,e,n)},t}(),eh=function(){function t(e,n,r){this.parentModel=n,this.ecModel=r,this.option=e}return t.prototype.init=function(e,n,r){},t.prototype.mergeOption=function(e,n){$t(this.option,e,!0)},t.prototype.get=function(e,n){return e==null?this.option:this._doGet(this.parsePath(e),!n&&this.parentModel)},t.prototype.getShallow=function(e,n){var r=this.option,a=r==null?r:r[e];if(a==null&&!n){var i=this.parentModel;i&&(a=i.getShallow(e))}return a},t.prototype.getModel=function(e,n){var r=e!=null,a=r?this.parsePath(e):null,i=r?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(i,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(wt(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!an.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,n){var r=this.option;if(!e)return r;for(var a=0;a<e.length&&!(e[a]&&(r=r&&typeof r=="object"?r[e[a]]:null,r==null));a++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(e),n.parentModel)),r},t}();uN(eh);Lst(eh);sr(eh,Tut);sr(eh,Mut);sr(eh,Bst);sr(eh,xut);const Mn=eh;var Dut=Math.round(Math.random()*10);function Gv(t){return[t||"",Dut++].join("_")}function kut(t){var e={};t.registerSubTypeDefaulter=function(n,r){var a=Vs(n);e[a.main]=r},t.determineSubType=function(n,r){var a=r.type;if(!a){var i=Vs(n).main;t.hasSubTypes(n)&&e[i]&&(a=e[i](r))}return a}}function Rut(t,e){t.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=n(o),c=u.graph,f=u.noEntryList,d={};for(W(i,function(m){d[m]=!0});f.length;){var h=f.pop(),v=c[h],p=!!d[h];p&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),W(v.successor,p?y:g)}W(d,function(){var m="";throw new Error(m)});function g(m){c[m].entryCount--,c[m].entryCount===0&&f.push(m)}function y(m){d[m]=!0,g(m)}};function n(i){var o={},s=[];return W(i,function(l){var u=r(o,l),c=u.originalDeps=e(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),W(f,function(d){zt(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(o,d);zt(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function r(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return W(i,function(l){zt(o,l)>=0&&s.push(l)}),s}}function Pc(t,e){return $t($t({},t,!0),e,!0)}const Lut={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:". "}}}},Out={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",_N="EN",Ky=_N,hw={},xN={},hne=an.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(N_)>-1?N_:Ky}():Ky;function CN(t,e){t=t.toUpperCase(),xN[t]=new Mn(e),hw[t]=e}function Aut(t){if(it(t)){var e=hw[t.toUpperCase()]||{};return t===N_||t===_N?wt(e):$t(wt(e),wt(hw[Ky]),!1)}else return $t(wt(t),wt(hw[Ky]),!1)}function AR(t){return xN[t]}function Nut(){return xN[Ky]}CN(_N,Lut);CN(N_,Out);var TN=1e3,EN=TN*60,I0=EN*60,qi=I0*24,fz=qi*365,r0={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}"},RS="{yyyy}-{MM}-{dd}",dz={year:"{yyyy}",month:"{yyyy}-{MM}",day:RS,hour:RS+" "+r0.hour,minute:RS+" "+r0.minute,second:RS+" "+r0.second,millisecond:r0.none},gE=["year","month","day","hour","minute","second","millisecond"],pne=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ba(t,e){return t+="","0000".substr(0,e-t.length)+t}function Rp(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 Vut(t){return t===Rp(t)}function But(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Zm(t,e,n,r){var a=Oi(t),i=a[MN(n)](),o=a[Lp(n)]()+1,s=Math.floor((o-1)/3)+1,l=a[GC(n)](),u=a["get"+(n?"UTC":"")+"Day"](),c=a[jy(n)](),f=(c-1)%12+1,d=a[UC(n)](),h=a[HC(n)](),v=a[WC(n)](),p=r instanceof Mn?r:AR(r||hne)||Nut(),g=p.getModel("time"),y=g.get("month"),m=g.get("monthAbbr"),S=g.get("dayOfWeek"),b=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ba(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,m[o-1]).replace(/{MM}/g,Ba(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ba(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ba(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Ba(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Ba(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Ba(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ba(v,3)).replace(/{S}/g,v+"")}function $ut(t,e,n,r,a){var i=null;if(it(n))i=n;else if(gt(n))i=n(t.value,e,{level:t.level});else{var o=Oe({},r0);if(t.level>0)for(var s=0;s<gE.length;++s)o[gE[s]]="{primary|"+o[gE[s]]+"}";var l=n?n.inherit===!1?n:mt(n,o):o,u=vne(t.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=pne.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if($e(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 Zm(new Date(t.value),i,a,r)}function vne(t,e){var n=Oi(t),r=n[Lp(e)]()+1,a=n[GC(e)](),i=n[jy(e)](),o=n[UC(e)](),s=n[HC(e)](),l=n[WC(e)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,h=d&&a===1,v=h&&r===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function hz(t,e,n){var r=on(t)?Oi(t):t;switch(e=e||vne(t,n),e){case"year":return r[MN(n)]();case"half-year":return r[Lp(n)]()>=6?1:0;case"quarter":return Math.floor((r[Lp(n)]()+1)/4);case"month":return r[Lp(n)]();case"day":return r[GC(n)]();case"half-day":return r[jy(n)]()/24;case"hour":return r[jy(n)]();case"minute":return r[UC(n)]();case"second":return r[HC(n)]();case"millisecond":return r[WC(n)]()}}function MN(t){return t?"getUTCFullYear":"getFullYear"}function Lp(t){return t?"getUTCMonth":"getMonth"}function GC(t){return t?"getUTCDate":"getDate"}function jy(t){return t?"getUTCHours":"getHours"}function UC(t){return t?"getUTCMinutes":"getMinutes"}function HC(t){return t?"getUTCSeconds":"getSeconds"}function WC(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Iut(t){return t?"setUTCFullYear":"setFullYear"}function gne(t){return t?"setUTCMonth":"setMonth"}function yne(t){return t?"setUTCDate":"setDate"}function mne(t){return t?"setUTCHours":"setHours"}function Sne(t){return t?"setUTCMinutes":"setMinutes"}function bne(t){return t?"setUTCSeconds":"setSeconds"}function wne(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Put(t,e,n,r,a,i,o,s){var l=new tn({style:{text:t,font:e,align:n,verticalAlign:r,padding:a,rich:i,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function DN(t){if(!oN(t))return it(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function kN(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 th=CC;function NR(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&Qi(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?Oi(t):t;if(isNaN(+l)){if(s)return"-"}else return Zm(l,r,n)}if(e==="ordinal")return S_(t)?a(t):on(t)&&i(t)?t+"":"-";var u=Qs(t);return i(u)?DN(u):S_(t)?a(t):typeof t=="boolean"?t+"":"-"}var pz=["a","b","c","d","e","f","g"],yE=function(t,e){return"{"+t+(e??"")+"}"};function RN(t,e,n){$e(e)||(e=[e]);var r=e.length;if(!r)return"";for(var a=e[0].$vars||[],i=0;i<a.length;i++){var o=pz[i];t=t.replace(yE(o),yE(o,0))}for(var s=0;s<r;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];t=t.replace(yE(pz[l],s),n?Pa(u):u)}return t}function Fut(t,e,n){return W(e,function(r,a){t=t.replace("{"+a+"}",n?Pa(r):r)}),t}function _ne(t,e){var n=it(t)?{color:t,extraCssText:e}:t||{},r=n.color,a=n.type;e=n.extraCssText;var i=n.renderMode||"html";if(!r)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Pa(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Pa(r)+";"+(e||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function zut(t,e,n){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
- yyyy`);var r=Oi(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",Ba(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Ba(i%100+"",2)).replace("dd",Ba(s,2)).replace("d",s).replace("hh",Ba(l,2)).replace("h",l).replace("mm",Ba(u,2)).replace("m",u).replace("ss",Ba(c,2)).replace("s",c).replace("SSS",Ba(f,3)),t}function Gut(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function Fd(t,e){return e=e||"transparent",it(t)?t:bt(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function V_(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var pw=W,xne=["left","right","top","bottom","width","height"],od=[["width","left","right"],["height","top","bottom"]];function LN(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,v;if(t==="horizontal"){var p=c.width+(d?-d.x+c.x:0);h=i+p,h>r||l.newline?(i=0,h=p,o+=s+n,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=o+g,v>a||l.newline?(i+=s+n,o=0,v=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),t==="horizontal"?i=h+n:o=v+n)})}var Cd=LN;kt(LN,"vertical");kt(LN,"horizontal");function Uut(t,e,n){var r=e.width,a=e.height,i=tt(t.left,r),o=tt(t.top,a),s=tt(t.right,r),l=tt(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=th(n||0),{width:Math.max(s-i-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function xr(t,e,n){n=th(n||0);var r=e.width,a=e.height,i=tt(t.left,r),o=tt(t.top,a),s=tt(t.right,r),l=tt(t.bottom,a),u=tt(t.width,r),c=tt(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 v=new Ft(i+n[3],o+n[0],u,c);return v.margin=n,v}function KC(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=xr(mt({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 Hut(t,e){return t[od[e][0]]!=null||t[od[e][1]]!=null&&t[od[e][2]]!=null}function Yy(t){var e=t.layoutMode||t.constructor.layoutMode;return bt(e)?e:e?{type:e}:null}function wc(t,e,n){var r=n&&n.ignoreSize;!$e(r)&&(r=[r,r]);var a=o(od[0],0),i=o(od[1],1);u(od[0],t,a),u(od[1],t,i);function o(c,f){var d={},h=0,v={},p=0,g=2;if(pw(c,function(S){v[S]=t[S]}),pw(c,function(S){s(e,S)&&(d[S]=v[S]=e[S]),l(d,S)&&h++,l(v,S)&&p++}),r[f])return l(e,c[1])?v[c[2]]=null:l(e,c[2])&&(v[c[1]]=null),v;if(p===g||!h)return v;if(h>=g)return d;for(var y=0;y<c.length;y++){var m=c[y];if(!s(d,m)&&s(t,m)){d[m]=t[m];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){pw(c,function(h){f[h]=d[h]})}}function Uv(t){return Cne({},t)}function Cne(t,e){return e&&t&&pw(xne,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var Wut=sn(),Hv=function(t){we(e,t);function e(n,r,a){var i=t.call(this,n,r,a)||this;return i.uid=Gv("ec_cpt_model"),i}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=Yy(this),i=a?Uv(n):{},o=r.getTheme();$t(n,o.get(this.mainType)),$t(n,this.getDefaultOption()),a&&wc(n,i,a)},e.prototype.mergeOption=function(n,r){$t(this.option,n,!0);var a=Yy(this);a&&wc(this.option,n,a)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!Dst(n))return n.defaultOption;var r=Wut(this);if(!r.defaultOption){for(var a=[],i=n;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=$t(s,a[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var a=n+"Index",i=n+"Id";return Hm(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}(Mn);dte(Hv,Mn);RC(Hv);kut(Hv);Rut(Hv,Kut);function Kut(t){var e=[];return W(Hv.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=Ie(e,function(n){return Vs(n).main}),t!=="dataset"&&zt(e,"dataset")<=0&&e.unshift("dataset"),e}const Qt=Hv;var Tne="";typeof navigator<"u"&&(Tne=navigator.platform||"");var Th="rgba(0, 0, 0, 0.2)";const jut={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Th,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Th,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Th,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Th,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Th,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Th,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Tne.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 Ene=ht(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),go="original",Ma="arrayRows",yo="objectRows",al="keyedColumns",ac="typedArray",Mne="unknown",Us="column",Wv="row",ta={Must:1,Might:2,Not:3},Dne=sn();function Yut(t){Dne(t).datasetMap=ht()}function kne(t,e,n){var r={},a=AN(e);if(!a||!t)return r;var i=[],o=[],s=e.ecModel,l=Dne(s).datasetMap,u=a.uid+"_"+n.seriesLayoutBy,c,f;t=t.slice(),W(t,function(p,g){var y=bt(p)?p:t[g]={name:p};y.type==="ordinal"&&c==null&&(c=g,f=v(y)),r[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});W(t,function(p,g){var y=p.name,m=v(p);if(c==null){var S=d.valueWayDim;h(r[y],S,m),h(o,S,m),d.valueWayDim+=m}else if(c===g)h(r[y],0,m),h(i,0,m);else{var S=d.categoryWayDim;h(r[y],S,m),h(o,S,m),d.categoryWayDim+=m}});function h(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function v(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(r.itemName=i),o.length&&(r.seriesName=o),r}function ON(t,e,n){var r={},a=AN(t);if(!a)return r;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===yo||i===al)&&W(o,function(c,f){(bt(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,n);h<v;h++){var p=Lne(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);d.push(p);var g=p===ta.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===ta.Not)&&(c.n=h),y(c)&&d[c.n]!==ta.Not)return c;g||(p===ta.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(c)?c:y(f)?f:null}();if(l){r.value=[l.v];var u=s??l.n;r.itemName=[u],r.seriesName=[u]}return r}function AN(t){var e=t.get("data",!0);if(!e)return Hm(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},yr).models[0]}function Xut(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Hm(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},yr).models}function Rne(t,e){return Lne(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Lne(t,e,n,r,a,i){var o,s=5;if(yi(t))return ta.Not;var l,u;if(r){var c=r[i];bt(c)?(l=c.name,u=c.type):it(c)&&(l=c)}if(u!=null)return u==="ordinal"?ta.Must:ta.Not;if(e===Ma){var f=t;if(n===Wv){for(var d=f[i],h=0;h<(d||[]).length&&h<s;h++)if((o=b(d[a+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var v=f[a+h];if(v&&(o=b(v[i]))!=null)return o}}else if(e===yo){var p=t;if(!l)return ta.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=b(g[l]))!=null)return o}}else if(e===al){var y=t;if(!l)return ta.Not;var d=y[l];if(!d||yi(d))return ta.Not;for(var h=0;h<d.length&&h<s;h++)if((o=b(d[h]))!=null)return o}else if(e===go)for(var m=t,h=0;h<m.length&&h<s;h++){var g=m[h],S=Vv(g);if(!$e(S))return ta.Not;if((o=b(S[i]))!=null)return o}function b(x){var _=it(x);if(x!=null&&isFinite(x)&&x!=="")return _?ta.Might:ta.Not;if(_&&x!=="-")return ta.Must}return ta.Not}var VR=ht();function qut(t,e){Ea(VR.get(t)==null&&e),VR.set(t,e)}function Zut(t,e,n){var r=VR.get(e);if(!r)return n;var a=r(t);return a?n.concat(a):n}var vz=sn(),Qut=sn(),NN=function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var a=Dn(this.get("color",!0)),i=this.get("colorLayer",!0);return One(this,vz,a,i,e,n,r)},t.prototype.clearColorPalette=function(){ect(this,vz)},t}();function BR(t,e,n,r){var a=Dn(t.get(["aria","decal","decals"]));return One(t,Qut,a,null,e,n,r)}function Jut(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function One(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:Jut(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 ect(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var LS,_g,gz,yz="\0_ec_inner",tct=1,Ane=function(t){we(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 Mn(i),this._locale=new Mn(o),this._optionManager=s},e.prototype.setOption=function(n,r,a){var i=bz(r);this._optionManager.setOption(n,a,i),this._resetOption(null,i)},e.prototype.resetOption=function(n,r){return this._resetOption(n,bz(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"?gz(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=ht(),u=r&&r.replaceMergeMainTypeMap;Yut(this),W(n,function(f,d){f!=null&&(Qt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?wt(f):$t(a[d],f,!0))}),u&&u.each(function(f,d){Qt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Qt.topologicalTravel(s,Qt.getAllClassMainTypes(),c,this);function c(f){var d=Zut(this,f,Dn(n[f])),h=i.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",p=ste(h,d,v);Sst(p,f,Qt),a[f]=null,i.set(f,null),o.set(f,0);var g=[],y=[],m=0,S;W(p,function(b,x){var _=b.existing,C=b.newOption;if(!C)_&&(_.mergeOption({},this),_.optionUpdated({},!1));else{var T=f==="series",D=Qt.getClass(f,b.keyInfo.subType,!T);if(!D)return;if(f==="tooltip"){if(S)return;S=!0}if(_&&_.constructor===D)_.name=b.keyInfo.name,_.mergeOption(C,this),_.optionUpdated(C,!1);else{var M=Oe({componentIndex:x},b.keyInfo);_=new D(C,this,this,M),Oe(_,M),b.brandNew&&(_.__requireNewView=!0),_.init(C,this,this),_.optionUpdated(null,!0)}}_?(g.push(_.option),y.push(_),m++):(g.push(void 0),y.push(void 0))},this),a[f]=g,i.set(f,y),o.set(f,m),f==="series"&&LS(this)}this._seriesIndices||LS(this)},e.prototype.getOption=function(){var n=wt(this.option);return W(n,function(r,a){if(Qt.hasClass(a)){for(var i=Dn(r),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!zy(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,n[a]=i}}),delete n[yz],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<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var a=n.index,i=n.id,o=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return a!=null?(l=[],W(Dn(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=mz("id",i,s):o!=null?l=mz("name",o,s):l=wn(s,function(u){return!!u}),Sz(l,n)},e.prototype.findComponents=function(n){var r=n.query,a=n.mainType,i=s(r),o=i?this.queryComponents(i):wn(this._componentsMap.get(a),function(u){return!!u});return l(Sz(o,n));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return n.filter?wn(u,n.filter):u}},e.prototype.eachComponent=function(n,r,a){var i=this._componentsMap;if(gt(n)){var o=r,s=n;i.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=it(n)?i.get(n):bt(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(a,c,c.componentIndex)}},e.prototype.getSeriesByName=function(n){var r=Rr(n,null);return wn(this._componentsMap.get("series"),function(a){return!!a&&r!=null&&a.name===r})},e.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},e.prototype.getSeriesByType=function(n){return wn(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return wn(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){_g(this),W(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];n.call(r,i,a)},this)},e.prototype.eachRawSeries=function(n,r){W(this._componentsMap.get("series"),function(a){a&&n.call(r,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,a){_g(this),W(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===n&&r.call(a,o,i)},this)},e.prototype.eachRawSeriesByType=function(n,r,a){return W(this.getSeriesByType(n),r,a)},e.prototype.isSeriesFiltered=function(n){return _g(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){_g(this);var a=[];W(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ht(a)},e.prototype.restoreData=function(n){LS(this);var r=this._componentsMap,a=[];r.each(function(i,o){Qt.hasClass(o)&&a.push(o)}),Qt.topologicalTravel(a,Qt.getAllClassMainTypes(),function(i){W(r.get(i),function(o){o&&(i!=="series"||!nct(o,n))&&o.restoreData()})})},e.internalField=function(){LS=function(n){var r=n._seriesIndices=[];W(n._componentsMap.get("series"),function(a){a&&r.push(a.componentIndex)}),n._seriesIndicesMap=ht(r)},_g=function(n){},gz=function(n,r){n.option={},n.option[yz]=tct,n._componentsMap=ht({series:[]}),n._componentsCount=ht();var a=r.aria;bt(a)&&a.enabled==null&&(a.enabled=!0),rct(r,n._theme.option),$t(r,jut,!1),n._mergeOption(r,null)}}(),e}(Mn);function nct(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,a=e.seriesName;return n!=null&&t.componentIndex!==n||r!=null&&t.id!==r||a!=null&&t.name!==a}}function rct(t,e){var n=t.color&&!t.colorLayer;W(e,function(r,a){a==="colorLayer"&&n||Qt.hasClass(a)||(typeof r=="object"?t[a]=t[a]?$t(t[a],r,!1):wt(r):t[a]==null&&(t[a]=r))})}function mz(t,e,n){if($e(e)){var r=ht();return W(e,function(i){if(i!=null){var o=Rr(i,null);o!=null&&r.set(i,!0)}}),wn(n,function(i){return i&&r.get(i[t])})}else{var a=Rr(e,null);return wn(n,function(i){return i&&a!=null&&i[t]===a})}}function Sz(t,e){return e.hasOwnProperty("subType")?wn(t,function(n){return n&&n.subType===e.subType}):t}function bz(t){var e=ht();return t&&W(Dn(t.replaceMerge),function(n){e.set(n,!0)}),{replaceMergeMainTypeMap:e}}sr(Ane,NN);const Nne=Ane;var act=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ict=function(){function t(e){W(act,function(n){this[n]=st(e[n],e)},this)}return t}();const Vne=ict;var mE={},oct=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,n){var r=[];W(mE,function(a,i){var o=a.create(e,n);r=r.concat(o||[])}),this._coordinateSystems=r},t.prototype.update=function(e,n){W(this._coordinateSystems,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,n){mE[e]=n},t.get=function(e){return mE[e]},t}();const Kv=oct;var sct=/^(min|max)?(.+)$/,lct=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(W(Dn(e.series),function(o){o&&o.data&&yi(o.data)&&Oy(o.data)}),W(Dn(e.dataset),function(o){o&&o.source&&yi(o.source)&&Oy(o.source)})),e=wt(e);var a=this._optionBackup,i=uct(e,n,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],wt(e?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var n,r=this._timelineOptions;if(r.length){var a=e.getComponent("timeline");a&&(n=wt(r[a.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){var n=this._api.getWidth(),r=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)cct(a[l].query,n,r)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!dct(o,this._currentMediaIndices)&&(s=Ie(o,function(c){return wt(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},t}();function uct(t,e,n){var r=[],a,i,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(t.options=t.media=null),i=t),c&&$e(u)&&W(u,function(h){h&&h.option&&(h.query?r.push(h):a||(a=h))}),d(i),W(l,function(h){return d(h)}),W(r,function(h){return d(h.option)});function d(h){W(e,function(v){v(h,n)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:r}}function cct(t,e,n){var r={width:e,height:n,aspectratio:e/n},a=!0;return W(t,function(i,o){var s=o.match(sct);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();fct(r[u],i,l)||(a=!1)}}),a}function fct(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function dct(t,e){return t.join(",")===e.join(",")}const hct=lct;var bo=W,Xy=bt,wz=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function SE(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=wz.length;n<r;n++){var a=wz[n],i=e.normal,o=e.emphasis;i&&i[a]&&(t[a]=t[a]||{},t[a].normal?$t(t[a].normal,i[a]):t[a].normal=i[a],i[a]=null),o&&o[a]&&(t[a]=t[a]||{},t[a].emphasis?$t(t[a].emphasis,o[a]):t[a].emphasis=o[a],o[a]=null)}}function ma(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,a=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,mt(t[e],r)):t[e]=r),a&&(t.emphasis=t.emphasis||{},t.emphasis[e]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.blurScope))}}function a0(t){ma(t,"itemStyle"),ma(t,"lineStyle"),ma(t,"areaStyle"),ma(t,"label"),ma(t,"labelLine"),ma(t,"upperLabel"),ma(t,"edgeLabel")}function vr(t,e){var n=Xy(t)&&t[e],r=Xy(n)&&n.textStyle;if(r)for(var a=0,i=T5.length;a<i;a++){var o=T5[a];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Gi(t){t&&(a0(t),vr(t,"label"),t.emphasis&&vr(t.emphasis,"label"))}function pct(t){if(Xy(t)){SE(t),a0(t),vr(t,"label"),vr(t,"upperLabel"),vr(t,"edgeLabel"),t.emphasis&&(vr(t.emphasis,"label"),vr(t.emphasis,"upperLabel"),vr(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(SE(e),Gi(e));var n=t.markLine;n&&(SE(n),Gi(n));var r=t.markArea;r&&Gi(r);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var i=t.links||t.edges;if(i&&!yi(i))for(var o=0;o<i.length;o++)Gi(i[o]);W(t.categories,function(u){a0(u)})}if(a&&!yi(a))for(var o=0;o<a.length;o++)Gi(a[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Gi(s[o]);if(n=t.markLine,n&&n.data)for(var l=n.data,o=0;o<l.length;o++)$e(l[o])?(Gi(l[o][0]),Gi(l[o][1])):Gi(l[o]);t.type==="gauge"?(vr(t,"axisLabel"),vr(t,"title"),vr(t,"detail")):t.type==="treemap"?(ma(t.breadcrumb,"itemStyle"),W(t.levels,function(u){a0(u)})):t.type==="tree"&&a0(t.leaves)}}function fl(t){return $e(t)?t:t?[t]:[]}function _z(t){return($e(t)?t[0]:t)||{}}function vct(t,e){bo(fl(t.series),function(r){Xy(r)&&pct(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),bo(n,function(r){bo(fl(t[r]),function(a){a&&(vr(a,"axisLabel"),vr(a.axisPointer,"label"))})}),bo(fl(t.parallel),function(r){var a=r&&r.parallelAxisDefault;vr(a,"axisLabel"),vr(a&&a.axisPointer,"label")}),bo(fl(t.calendar),function(r){ma(r,"itemStyle"),vr(r,"dayLabel"),vr(r,"monthLabel"),vr(r,"yearLabel")}),bo(fl(t.radar),function(r){vr(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),bo(fl(t.geo),function(r){Xy(r)&&(Gi(r),bo(fl(r.regions),function(a){Gi(a)}))}),bo(fl(t.timeline),function(r){Gi(r),ma(r,"label"),ma(r,"itemStyle"),ma(r,"controlStyle",!0);var a=r.data;$e(a)&&W(a,function(i){bt(i)&&(ma(i,"label"),ma(i,"itemStyle"))})}),bo(fl(t.toolbox),function(r){ma(r,"iconStyle"),bo(r.feature,function(a){ma(a,"iconStyle")})}),vr(_z(t.axisPointer),"label"),vr(_z(t.tooltip).axisPointer,"label")}function gct(t,e){for(var n=e.split(","),r=t,a=0;a<n.length&&(r=r&&r[n[a]],r!=null);a++);return r}function yct(t,e,n,r){for(var a=e.split(","),i=t,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(r||i[a[s]]==null)&&(i[a[s]]=n)}function xz(t){t&&W(mct,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var mct=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Sct=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],bE=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function xg(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<bE.length;n++){var r=bE[n][1],a=bE[n][0];e[r]!=null&&(e[a]=e[r])}}function Cz(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function Tz(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function bct(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function Bne(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&Bne(t[n].children,e)}function $ne(t,e){vct(t,e),t.series=Dn(t.series),W(t.series,function(n){if(bt(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),Cz(n.label);var a=n.data;if(a&&!yi(a))for(var i=0;i<a.length;i++)Cz(a[i]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=gct(n,"pointer.color");o!=null&&yct(n,"itemStyle.color",o)}else if(r==="bar"){xg(n),xg(n.backgroundStyle),xg(n.emphasis);var a=n.data;if(a&&!yi(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(xg(a[i]),xg(a[i]&&a[i].emphasis))}else if(r==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),Tz(n),Bne(n.data,Tz)}else r==="graph"||r==="sankey"?bct(n):r==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&mt(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),xz(n)}}),t.dataRange&&(t.visualMap=t.dataRange),W(Sct,function(n){var r=t[n];r&&($e(r)||(r=[r]),W(r,function(a){xz(a)}))})}function wct(t){var e=ht();t.eachSeries(function(n){var r=n.get("stack");if(r){var a=e.get(r)||e.set(r,[]),i=n.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:n};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),e.each(_ct)}function _ct(t){W(t,function(e,n){var r=[],a=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var d=o.get(e.stackedDimension,f);if(isNaN(d))return a;var h,v;s?v=o.getRawIndex(f):h=o.get(e.stackedByDimension,f);for(var p=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,h)),v>=0){var m=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&d>=0&&m>0||l==="samesign"&&d<=0&&m<0){d=ust(d,m),p=m;break}}}return r[0]=d,r[1]=p,r})})}var jC=function(){function t(e){this.data=e.data||(e.sourceFormat===al?{}:[]),this.sourceFormat=e.sourceFormat||Mne,this.seriesLayoutBy=e.seriesLayoutBy||Us,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;r<n.length;r++){var a=n[r];a.type==null&&Rne(this,r)===ta.Must&&(a.type="ordinal")}}return t}();function VN(t){return t instanceof jC}function $R(t,e,n){n=n||Ine(t);var r=e.seriesLayoutBy,a=Cct(t,n,r,e.sourceHeader,e.dimensions),i=new jC({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:wt(e)});return i}function BN(t){return new jC({data:t,sourceFormat:yi(t)?ac:go})}function xct(t){return new jC({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:wt(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Ine(t){var e=Mne;if(yi(t))e=ac;else if($e(t)){t.length===0&&(e=Ma);for(var n=0,r=t.length;n<r;n++){var a=t[n];if(a!=null){if($e(a)){e=Ma;break}else if(bt(a)){e=yo;break}}}}else if(bt(t)){for(var i in t)if(lt(t,i)&&la(t[i])){e=al;break}}return e}function Cct(t,e,n,r,a){var i,o;if(!t)return{dimensionsDefine:Ez(a),startIndex:o,dimensionsDetectedCount:i};if(e===Ma){var s=t;r==="auto"||r==null?Mz(function(u){u!=null&&u!=="-"&&(it(u)?o==null&&(o=1):o=0)},n,s,10):o=on(r)?r:r?1:0,!a&&o===1&&(a=[],Mz(function(u,c){a[c]=u!=null?u+"":""},n,s,1/0)),i=a?a.length:n===Wv?s.length:s[0]?s[0].length:null}else if(e===yo)a||(a=Tct(t));else if(e===al)a||(a=[],W(t,function(u,c){a.push(c)}));else if(e===go){var l=Vv(t[0]);i=$e(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Ez(a),dimensionsDetectedCount:i}}function Tct(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n)return Yt(n)}function Ez(t){if(t){var e=ht();return Ie(t,function(n,r){n=bt(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=e.get(a.name);return i?a.name+="-"+i.count++:e.set(a.name,{count:1}),a})}}function Mz(t,e,n,r){if(e===Wv)for(var a=0;a<n.length&&a<r;a++)t(n[a]?n[a][0]:null,a);else for(var i=n[0]||[],a=0;a<i.length&&a<r;a++)t(i[a],a)}function Pne(t){var e=t.sourceFormat;return e===yo||e===al}var Sf,bf,wf,Dz,kz,Fne=function(){function t(e,n){var r=VN(e)?e:BN(e);this._source=r;var a=this._data=r.data;r.sourceFormat===ac&&(this._offset=0,this._dimSize=n,this._data=a),kz(this,a,r)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,n){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;kz=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=Dz[$N(u,c)];if(Oe(o,h),u===ac)o.getItem=n,o.count=a,o.fillStorage=r;else{var v=zne(u,c);o.getItem=st(v,null,s,f,d);var p=Gne(u,c);o.count=st(p,null,s,f,d)}};var n=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[d],m=0;m<g;m++){var S=c[m*f+d];y[o+m]=S,S<v&&(v=S),S>p&&(p=S)}h[0]=v,h[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};Dz=(e={},e[Ma+"_"+Us]={pure:!0,appendData:i},e[Ma+"_"+Wv]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[yo]={pure:!0,appendData:i},e[al]={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[go]={appendData:i},e[ac]={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<o.length;s++)this._data.push(o[s])}}(),t}(),Rz=function(t,e,n,r){return t[r]},Ect=(Sf={},Sf[Ma+"_"+Us]=function(t,e,n,r){return t[r+e]},Sf[Ma+"_"+Wv]=function(t,e,n,r,a){r+=e;for(var i=a||[],o=t,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[r]:null}return i},Sf[yo]=Rz,Sf[al]=function(t,e,n,r,a){for(var i=a||[],o=0;o<n.length;o++){var s=n[o].name,l=t[s];i[o]=l?l[r]:null}return i},Sf[go]=Rz,Sf);function zne(t,e){var n=Ect[$N(t,e)];return n}var Lz=function(t,e,n){return t.length},Mct=(bf={},bf[Ma+"_"+Us]=function(t,e,n){return Math.max(0,t.length-e)},bf[Ma+"_"+Wv]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},bf[yo]=Lz,bf[al]=function(t,e,n){var r=n[0].name,a=t[r];return a?a.length:0},bf[go]=Lz,bf);function Gne(t,e){var n=Mct[$N(t,e)];return n}var wE=function(t,e,n){return t[e]},Dct=(wf={},wf[Ma]=wE,wf[yo]=function(t,e,n){return t[n]},wf[al]=wE,wf[go]=function(t,e,n){var r=Vv(t);return r instanceof Array?r[e]:r},wf[ac]=wE,wf);function Une(t){var e=Dct[t];return e}function $N(t,e){return t===Ma?t+"_"+e:t}function fv(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var a=t.getStore(),i=a.getSource().sourceFormat;if(n!=null){var o=t.getDimensionIndex(n),s=a.getDimensionProperty(o);return Une(i)(r,o,s)}else{var l=r;return i===go&&(l=Vv(r)),l}}}}var kct=/\{@(.+?)\}/g,IN=function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),a=this.getRawValue(e,n),i=r.getRawIndex(e),o=r.getName(e),s=r.getRawDataItem(e),l=r.getItemVisual(e,"style"),u=l&&l[r.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:i,data:s,dataType:n,value:a,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,a,i,o){n=n||"normal";var s=this.getData(r),l=this.getDataParams(e,r);if(o&&(l.value=o.interpolatedValue),a!=null&&$e(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(e);i=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(gt(i))return l.status=n,l.dimensionIndex=a,i(l);if(it(i)){var c=RN(i,l);return c.replace(kct,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var p=fv(s,e,v);if(o&&$e(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},t.prototype.getRawValue=function(e,n){return fv(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t}();function Oz(t){var e,n;return bt(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function P0(t){return new Rct(t)}var Rct=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,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h<v)){var p=this._progress;if($e(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,v,l,u);else this._doProgress(p,h,v,l,u)}this._dueIndex=v;var y=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,n,r,a,i){Az.reset(n,r,a,i),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:Az.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!e&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),$e(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),r},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),Az=function(){var t,e,n,r,a,i={reset:function(l,u,c,f){e=l,t=u,n=c,r=f,a=Math.ceil(r/n),i.next=n>1&&r>0?s:o}};return i;function o(){return e<t?e++:null}function s(){var l=e%a*n+Math.ceil(e/a),u=e>=t?null:l<r?l:e;return e++,u}}();function ic(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!on(t)&&t!=null&&t!=="-"&&(t=+Oi(t)),t==null||t===""?NaN:+t)}var Lct=ht({number:function(t){return parseFloat(t)},time:function(t){return+Oi(t)},trim:function(t){return it(t)?Qi(t):t}});function Hne(t){return Lct.get(t)}var Wne={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},Oct=function(){function t(e,n){if(!on(n)){var r="";gn(r)}this._opFn=Wne[e],this._rvalFloat=Qs(n)}return t.prototype.evaluate=function(e){return on(e)?this._opFn(e,this._rvalFloat):this._opFn(Qs(e),this._rvalFloat)},t}(),Kne=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=on(e)?e:Qs(e),a=on(n)?n:Qs(n),i=isNaN(r),o=isNaN(a);if(i&&(r=this._incomparable),o&&(a=this._incomparable),i&&o){var s=it(e),l=it(n);s&&(r=l?e:0),l&&(a=s?n:0)}return r<a?this._resultLT:r>a?-this._resultLT:0},t}(),Act=function(){function t(e,n){this._rval=n,this._isEQ=e,this._rvalTypeof=typeof n,this._rvalFloat=Qs(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=Qs(e)===this._rvalFloat)}return this._isEQ?n:!n},t}();function Nct(t,e){return t==="eq"||t==="ne"?new Act(t==="eq",e):lt(Wne,t)?new Oct(t,e):null}var Vct=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 ic(e,n)},t}();function Bct(t,e){var n=new Vct,r=t.data,a=n.sourceFormat=t.sourceFormat,i=t.startIndex,o="";t.seriesLayoutBy!==Us&&gn(o);var s=[],l={},u=t.dimensionsDefine;if(u)W(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var S="";lt(l,y)&&gn(S),l[y]=m}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var f=zne(a,Us);e.__isBuiltIn&&(n.getRawDataItem=function(p){return f(r,i,s,p)},n.getRawData=st($ct,null,t)),n.cloneRawData=st(Ict,null,t);var d=Gne(a,Us);n.count=st(d,null,r,i,s);var h=Une(a);n.retrieveValue=function(p,g){var y=f(r,i,s,p);return v(y,g)};var v=n.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return n.getDimensionInfo=st(Pct,null,s,l),n.cloneAllDimensionInfo=st(Fct,null,s),n}function $ct(t){var e=t.sourceFormat;if(!PN(e)){var n="";gn(n)}return t.data}function Ict(t){var e=t.sourceFormat,n=t.data;if(!PN(e)){var r="";gn(r)}if(e===Ma){for(var a=[],i=0,o=n.length;i<o;i++)a.push(n[i].slice());return a}else if(e===yo){for(var a=[],i=0,o=n.length;i<o;i++)a.push(Oe({},n[i]));return a}}function Pct(t,e,n){if(n!=null){if(on(n)||!isNaN(n)&&!lt(e,n))return t[n];if(lt(e,n))return e[n]}}function Fct(t){return wt(t)}var jne=ht();function zct(t){t=wt(t);var e=t.type,n="";e||gn(n);var r=e.split(":");r.length!==2&&gn(n);var a=!1;r[0]==="echarts"&&(e=r[1],a=!0),t.__isBuiltIn=a,jne.set(e,t)}function Gct(t,e,n){var r=Dn(t),a=r.length,i="";a||gn(i);for(var o=0,s=a;o<s;o++){var l=r[o];e=Uct(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function Uct(t,e,n,r){var a="";e.length||gn(a),bt(t)||gn(a);var i=t.type,o=jne.get(i);o||gn(a);var s=Ie(e,function(u){return Bct(u,o)}),l=Dn(o.transform({upstream:s[0],upstreamList:s,config:wt(t.config)}));return Ie(l,function(u,c){var f="";bt(u)||gn(f),u.data||gn(f);var d=Ine(u.data);PN(d)||gn(f);var h,v=e[0];if(v&&c===0&&!u.dimensions){var p=v.startIndex;p&&(u.data=v.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:Us,sourceHeader:p,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:Us,sourceHeader:0,dimensions:u.dimensions};return $R(u.data,h,null)})}function PN(t){return t===Ma||t===yo}var YC="undefined",Hct=typeof Uint32Array===YC?Array:Uint32Array,Wct=typeof Uint16Array===YC?Array:Uint16Array,Yne=typeof Int32Array===YC?Array:Int32Array,Nz=typeof Float64Array===YC?Array:Float64Array,Xne={float:Nz,int:Yne,ordinal:Array,number:Array,time:Nz},_E;function Cg(t){return t>65535?Hct:Wct}function Eh(){return[1/0,-1/0]}function Kct(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Vz(t,e,n,r,a){var i=Xne[n||"float"];if(a){var o=t[e],s=o&&o.length;if(s!==r){for(var l=new i(r),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new i(r)}var jct=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ht()}return t.prototype.initData=function(e,n,r){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),i=this.defaultDimValueGetter=_E[a.sourceFormat];this._dimValueGetter=r||i,this._rawExtent=[],Pne(a),this._dimensions=Ie(n,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,n){var r=this._calcDimNameToIdx,a=this._dimensions,i=r.get(e);if(i!=null){if(a[i].type===n)return i}else i=a.length;return a[i]={type:n},r.set(e,i),this._chunks[i]=new Xne[n||"float"](this._rawCount),this._rawExtent[i]=Eh(),i},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],a=this._dimensions[e],i=this._rawExtent,o=a.ordinalOffset||0,s=r.length;o===0&&(i[e]=Eh());for(var l=i[e],u=o;u<s;u++){var c=r[u]=n.parseAndCollect(r[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=n,a.ordinalOffset=s,a.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var n=this._dimensions[e],r=n.ordinalMeta;return r},t.prototype.getDimensionProperty=function(e){var n=this._dimensions[e];return n&&n.property},t.prototype.appendData=function(e){var n=this._provider,r=this.count();n.appendData(e);var a=n.count();return n.persistent||(a+=r),r<a&&this._initDataFromProvider(r,a,!0),[r,a]},t.prototype.appendValues=function(e,n){for(var r=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,n||0),u=0;u<i;u++){var c=a[u];Vz(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<i;v++){var c=a[v],p=_E.arrayRows.call(this,e[h]||f,c.property,h,v);r[v][d]=p;var g=o[v];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},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=Ie(o,function(m){return m.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Eh()),Vz(i,c,f.type,n,r)}if(a.fillStorage)a.fillStorage(e,n,i,l);else for(var d=[],h=e;h<n;h++){d=a.getItem(h,d);for(var v=0;v<s;v++){var p=i[v],g=this._dimValueGetter(d,u[v],h,v);p[h]=g;var y=l[v];g<y[0]&&(y[0]=g),g>y[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<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(e,n){var r=[],a=[];if(n==null){n=e,e=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=e;for(var i=0,o=a.length;i<o;i++)r.push(this.get(a[i],n));return r},t.prototype.getByRawIndex=function(e,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[e];return r?r[n]:NaN},t.prototype.getSum=function(e){var n=this._chunks[e],r=0;if(n)for(var a=0,i=this.count();a<i;a++){var o=this.get(e,a);isNaN(o)||(r+=o)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],function(i){isNaN(i)||n.push(i)});var r=n.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?r[(a-1)/2]:(r[a/2]+r[a/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&r<this._count&&r===e)return e;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(n[o]<e)a=o+1;else if(n[o]>e)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<f;c++){var d=this.getRawIndex(c),h=n-i[d],v=Math.abs(h);v<=r&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},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<a;i++)e[i]=n[i]}else e=new r(n.buffer,0,a)}else{var r=Cg(this._rawCount);e=new r(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),a=r.count(),i=Cg(r._rawCount),o=new i(a),s=[],l=e.length,u=0,c=e[0],f=r._chunks,d=0;d<a;d++){var h=void 0,v=r.getRawIndex(d);if(l===0)h=n(d);else if(l===1){var p=f[c][v];h=n(p,d)}else{for(var g=0;g<l;g++)s[g]=f[e[g]][v];s[g]=d,h=n.apply(null,s)}h&&(o[u++]=v)}return u<a&&(r._indices=o),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.selectRange=function(e){var n=this.clone(),r=n._count;if(!r)return this;var a=Yt(e),i=a.length;if(!i)return this;var o=n.count(),s=Cg(n._rawCount),l=new s(o),u=0,c=a[0],f=e[c][0],d=e[c][1],h=n._chunks,v=!1;if(!n._indices){var p=0;if(i===1){for(var g=h[a[0]],y=0;y<r;y++){var m=g[y];(m>=f&&m<=d||isNaN(m))&&(l[u++]=p),p++}v=!0}else if(i===2){for(var g=h[a[0]],S=h[a[1]],b=e[a[1]][0],x=e[a[1]][1],y=0;y<r;y++){var m=g[y],_=S[y];(m>=f&&m<=d||isNaN(m))&&(_>=b&&_<=x||isNaN(_))&&(l[u++]=p),p++}v=!0}}if(!v)if(i===1)for(var y=0;y<o;y++){var C=n.getRawIndex(y),m=h[a[0]][C];(m>=f&&m<=d||isNaN(m))&&(l[u++]=C)}else for(var y=0;y<o;y++){for(var T=!0,C=n.getRawIndex(y),D=0;D<i;D++){var M=a[D],m=h[M][C];(m<e[M][0]||m>e[M][1])&&(T=!1)}T&&(l[u++]=n.getRawIndex(y))}return u<o&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(e,n){var r=this.clone(e);return this._updateDims(r,e,n),r},t.prototype.modify=function(e,n){this._updateDims(this,e,n)},t.prototype._updateDims=function(e,n,r){for(var a=e._chunks,i=[],o=n.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<n.length;c++)u[n[c]]=Eh();for(var f=0;f<s;f++){for(var d=e.getRawIndex(f),h=0;h<o;h++)l[h]=a[n[h]][d];l[o]=f;var v=r&&r.apply(null,l);if(v!=null){typeof v!="object"&&(i[0]=v,v=i);for(var c=0;c<v.length;c++){var p=n[c],g=v[c],y=u[p],m=a[p];m&&(m[d]=g),g<y[0]&&(y[0]=g),g>y[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(Cg(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var p=Math.min(v+l,o-1),g=Math.min(v+l*2,o),y=(g+p)/2,m=0,S=p;S<g;S++){var b=this.getRawIndex(S),x=i[b];isNaN(x)||(m+=x)}m/=g-p;var _=v,C=Math.min(v+l,o),T=v-1,D=i[u];c=-1,d=_;for(var M=-1,E=0,S=_;S<C;S++){var b=this.getRawIndex(S),x=i[b];if(isNaN(x)){E++,M<0&&(M=b);continue}f=Math.abs((T-y)*(x-D)-(T-S)*(m-D)),f>c&&(c=f,d=b)}E>0&&E<C-_&&(h[s++]=Math.min(M,d),d=Math.max(M,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),r._count=s,r._indices=h,r.getRawIndex=this._getRawIdx,r},t.prototype.downSample=function(e,n,r,a){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/n),u=o[e],c=this.count(),f=i._rawExtent[e]=Eh(),d=new(Cg(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(v+p);s[p]=u[g]}var y=r(s),m=this.getRawIndex(Math.min(v+a(s,y)||0,c-1));u[m]=y,y<f[0]&&(f[0]=y),y>f[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();i<o;i++){var s=this.getRawIndex(i);switch(r){case 0:n(i);break;case 1:n(a[e[0]][s],i);break;case 2:n(a[e[0]][s],a[e[1]][s],i);break;default:for(var l=0,u=[];l<r;l++)u[l]=a[e[l]][s];u[l]=i,n.apply(null,u)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=Eh();if(!n)return r;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=r;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=n[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[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<a.length;i++)r.push(a[i][n]);return r},t.prototype.clone=function(e,n){var r=new t,a=this._chunks,i=e&&fo(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)r._chunks[o]=i[o]?Kct(a[o]):a[o];else r._chunks=a;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=wt(this._extent),e._rawExtent=wt(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,n=void 0;if(e===Array){var r=this._indices.length;n=new e(r);for(var a=0;a<r;a++)n[a]=this._indices[a]}else n=new e(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=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 ic(n[i],this._dimensions[i])}_E={arrayRows:e,objectRows:function(n,r,a,i){return ic(n[r],this._dimensions[i])},keyedColumns:e,original:function(n,r,a,i){var o=n&&(n.value==null?n:n.value);return ic(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(n,r,a,i){return n[i]}}}(),t}();const IR=jct;var qne=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(OS(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=yi(s)?ac:go,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Pt(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=Pt(f.sourceHeader,d.sourceHeader),p=Pt(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||p;a=g?[$R(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:p},l)]:[]}else{var y=e;if(r){var m=this._applyTransform(n);a=m.sourceList,i=m.upstreamSignList}else{var S=y.get("source",!0);a=[$R(S,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&&$z(i)}var o,s=[],l=[];return W(e,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&$z(f),s.push(c),l.push(u._getVersionSign())}),r?o=Gct(r,s,{datasetIndex:n.componentIndex}):a!=null&&(o=[xct(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var n=this._sourceList[e];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return n},t.prototype.getSharedDataStore=function(e){var n=e.makeStoreSchema();return this._innerGetDataStore(n.dimensions,e.source,n.hash)},t.prototype._innerGetDataStore=function(e,n,r){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[r];if(!s){var l=this._getUpstreamSourceManagers()[0];OS(this._sourceHost)&&l?s=l._innerGetDataStore(e,n,r):(s=new IR,s.initData(new Fne(n,e.length),e)),o[r]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(OS(e)){var n=AN(e);return n?[n.getSourceManager()]:[]}else return Ie(Xut(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,a;if(OS(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;n=i.get("seriesLayoutBy",!0),r=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:a}},t}();function Bz(t){var e=t.option.transform;e&&Oy(t.option.transform)}function OS(t){return t.mainType==="series"}function $z(t){throw new Error(t)}var Zne="line-height:1";function Qne(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,a=t.fontWeight||"400",i=t.color||"#464646",o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Pa(r+"")+"px;color:"+Pa(n)+";font-weight:"+Pa(a+""),valueStyle:"font-size:"+Pa(o+"")+"px;color:"+Pa(i)+";font-weight:"+Pa(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var Yct=[0,10,20,30],Xct=["",`
- `,`
- `,`
- `];function Fr(t,e){return e.type=t,e}function PR(t){return t.type==="section"}function Jne(t){return PR(t)?qct:Zct}function ere(t){if(PR(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return W(t.blocks,function(a){var i=ere(a);i>=e&&(e=i+ +(r&&(!i||PR(a)&&!a.noHeader)))}),e}return 0}function qct(t,e,n,r){var a=e.noHeader,i=Qct(ere(e)),o=[],s=e.blocks||[];Ea(!s||$e(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(lt(u,l)){var c=new Kne(u[l],null);s.sort(function(v,p){return c.evaluate(v.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}W(s,function(v,p){var g=e.valueFormatter,y=Jne(v)(g?Oe(Oe({},t),{valueFormatter:g}):t,v,p>0?i.html:0,r);y!=null&&o.push(y)});var f=t.renderMode==="richText"?o.join(i.richText):FR(o.join(""),a?n:i.html);if(a)return f;var d=NR(e.header,"ordinal",t.useUTC),h=Qne(r,t.renderMode).nameStyle;return t.renderMode==="richText"?tre(t,d,h)+i.richText+f:FR('<div style="'+h+";"+Zne+';">'+Pa(d)+"</div>"+f,n)}function Zct(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(b){return b=$e(b)?b:[b],Ie(b,function(x,_){return NR(x,$e(h)?h[_]:h,u)})};if(!(i&&o)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),d=i?"":NR(l,"ordinal",u),h=e.valueType,v=o?[]:c(e.value),p=!s||!i,g=!s&&i,y=Qne(r,a),m=y.nameStyle,S=y.valueStyle;return a==="richText"?(s?"":f)+(i?"":tre(t,d,m))+(o?"":tft(t,v,p,g,S)):FR((s?"":f)+(i?"":Jct(d,!s,m))+(o?"":eft(v,p,g,S)),n)}}function Iz(t,e,n,r,a,i){if(t){var o=Jne(t),s={useUTC:a,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,i)}}function Qct(t){return{html:Yct[t],richText:Xct[t]}}function FR(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+Zne+';">'+t+n+"</div>"}function Jct(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Pa(t)+"</span>"}function eft(t,e,n,r){var a=n?"10px":"20px",i=e?"float:right;margin-left:"+a:"";return t=$e(t)?t:[t],'<span style="'+i+";"+r+'">'+Ie(t,function(o){return Pa(o)}).join(" ")+"</span>"}function tre(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function tft(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($e(e)?e.join(" "):e,i)}function nre(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return Fd(r)}function rre(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var xE=function(){function t(){this.richTextStyles={},this._nextStyleNameId=rte()}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=_ne({color:n,type:e,renderMode:r,markerId:a});return it(i)?i:(this.richTextStyles[a]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};$e(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 are(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=$e(s),u=nre(e,n),c,f,d,h;if(o>1||l&&!o){var v=nft(s,e,n,i,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var p=a.getDimensionInfo(i[0]);h=c=fv(a,n,i[0]),f=p.type}else h=c=l?s[0]:s;var g=sN(e),y=g&&e.name||"",m=a.getName(n),S=r?y:m;return Fr("section",{header:y,noHeader:r||!g,sortParam:h,blocks:[Fr("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Qi(S),value:c,valueType:f})].concat(d||[])})}function nft(t,e,n,r,a){var i=e.getData(),o=fo(t,function(f,d,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?W(r,function(f){c(fv(i,n,f),f)}):W(t,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Fr("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 vu=sn();function AS(t,e){return t.getName(e)||t.getId(e)}var vw="__universalTransitionEnabled",XC=function(t){we(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=P0({count:aft,reset:ift}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var i=vu(this).sourceManager=new qne(this);i.prepareSource();var o=this.getInitialData(n,a);Fz(o,this),this.dataTask.context.data=o,vu(this).dataBeforeProcessed=o,Pz(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(n,r){var a=Yy(this),i=a?Uv(n):{},o=this.subType;Qt.hasClass(o)&&(o+="Series"),$t(n,r.getTheme().get(this.subType)),$t(n,this.getDefaultOption()),Bd(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&wc(n,i,a)},e.prototype.mergeOption=function(n,r){n=$t(this.option,n,!0),this.fillDataTextStyle(n.data);var a=Yy(this);a&&wc(this.option,n,a);var i=vu(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(n,r);Fz(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,vu(this).dataBeforeProcessed=o,Pz(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(n){if(n&&!yi(n))for(var r=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&Bd(n[a],"label",r)},e.prototype.getInitialData=function(n,r){},e.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},e.prototype.getData=function(n){var r=zR(this);if(r){var a=r.context.data;return n==null?a:a.getLinkedData(n)}else return vu(this).data},e.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},e.prototype.setData=function(n){var r=zR(this);if(r){var a=r.context;a.outputData=n,r!==this.dataTask&&(a.data=n)}vu(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return ht(n)},e.prototype.getSourceManager=function(){return vu(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return vu(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},e.prototype.formatTooltip=function(n,r,a){return are({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(an.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,a){var i=this.ecModel,o=NN.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<n.length;s++){var l=n[s],u=AS(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(n,r){for(var a=[],i=0;i<n.length;i++)a[0]=n[i],this.isSelected(n[i],r)?this.unselect(a,r):this.select(a,r)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=Yt(n),a=[],i=0;i<r.length;i++){var o=n[r[i]];o>=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[AS(i,n)])&&!i.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[vw])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"){bt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=r[c],d=AS(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=AS(n,h);o.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(i={},i[d]=n.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(a){var i=n.getRawDataItem(a);i&&i.selected&&r.push(a)}),r.length>0&&this._innerSelect(n,r)}},e.registerClass=function(n){return Qt.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}(Qt);sr(XC,IN);sr(XC,NN);dte(XC,Qt);function Pz(t){var e=t.name;sN(t)||(t.name=rft(t)||e)}function rft(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 aft(t){return t.model.getRawData().count()}function ift(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),oft}function oft(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Fz(t,e){W(Ay(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,kt(sft,e))})}function sft(t,e){var n=zR(t);return n&&n.setOutputEnd((e||this).count()),e}function zR(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 In=XC;var FN=function(){function t(){this.group=new Ct,this.uid=Gv("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}();uN(FN);RC(FN);const jn=FN;function jv(){var t=sn();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 ire=sn(),lft=jv(),zN=function(){function t(){this.group=new Ct,this.uid=Gv("viewChart"),this.renderTask=P0({plan:uft,reset:cft}),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&&Gz(i,a,"emphasis")},t.prototype.downplay=function(e,n,r,a){var i=e.getData(a&&a.dataType);i&&Gz(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){Ic(this.group,e)},t.markUpdateMethod=function(e,n){ire(e).updateMethod=n},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function zz(t,e,n){t&&Hy(t)&&(e==="emphasis"?Ul:Hl)(t,n)}function Gz(t,e,n){var r=$d(t,e),a=e&&e.highlightKey!=null?$lt(e.highlightKey):null;r!=null?W(Dn(r),function(i){zz(t.getItemGraphicEl(i),n,a)}):t.eachItemGraphicEl(function(i){zz(i,n,a)})}uN(zN);RC(zN);function uft(t){return lft(t.model)}function cft(t){var e=t.model,n=t.ecModel,r=t.api,a=t.payload,i=e.pipelineContext.progressiveRender,o=t.view,s=a&&ire(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,n,r,a),fft[l]}var fft={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 kn=zN;var B_="\0__throttleOriginMethod",Uz="\0__throttleRate",Hz="\0__throttleType";function qC(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=[],v=0;v<arguments.length;v++)h[v]=arguments[v];r=new Date().getTime(),l=this,u=h;var p=c||e,g=c||n;c=null,s=r-(g?a:i)-p,clearTimeout(o),g?o=setTimeout(f,p):s>=0?f():o=setTimeout(f,-s),a=r};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Yv(t,e,n,r){var a=t[e];if(a){var i=a[B_]||a,o=a[Hz],s=a[Uz];if(s!==n||o!==r){if(n==null||!r)return t[e]=i;a=t[e]=qC(i,n,r==="debounce"),a[B_]=i,a[Hz]=r,a[Uz]=n}return a}}function qy(t,e){var n=t[e];n&&n[B_]&&(n.clear&&n.clear(),t[e]=n[B_])}var Wz=sn(),Kz={itemStyle:Id(dne,!0),lineStyle:Id(fne,!0)},dft={lineStyle:"stroke",itemStyle:"fill"};function ore(t,e){var n=t.visualStyleMapper||Kz[e];return n||(console.warn("Unknown style type '"+e+"'."),Kz.itemStyle)}function sre(t,e){var n=t.visualDrawType||dft[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var hft={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=t.getModel(r),i=ore(t,r),o=i(a),s=a.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=sre(t,r),u=o[l],c=gt(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"||gt(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||gt(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,v){var p=t.getDataParams(v),g=Oe({},o);g[l]=c(p),h.setItemVisual(v,"style",g)}}}},Tg=new Mn,pft={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",a=ore(t,r),i=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){Tg.option=l[r];var u=a(Tg),c=o.ensureUniqueItemVisual(s,"style");Oe(c,u),Tg.option.decal&&(o.setItemVisual(s,"decal",Tg.option.decal),Tg.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},vft={performRawSeries:!0,overallReset:function(t){var e=ht();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)),Wz(n).scope=i}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),a={},i=n.getData(),o=Wz(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=sre(n,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),r.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",v=r.count();d[l]=n.getColorFromPalette(h,o,v)}})}})}},NS=Math.PI;function gft(t,e){e=e||{},mt(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 nn({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var a=new tn({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 nn({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 $C({shape:{startAngle:-NS/2,endAngle:-NS/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:NS*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:NS*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 yft=function(){function t(e,n,r,a){this._stageTaskMap=ht(),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=ht();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="";Ea(!(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,v=d.agentStubMap;v.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,r);var p=o.getPerformArgs(d,a.block);v.each(function(g){g.perform(p)}),d.perform(p)&&(i=!0)}else f&&f.each(function(g,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=ht(),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)||P0({plan:_ft,reset:xft,count:Tft}));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||P0({reset:mft});o.context={ecModel:r,api:a,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ht(),u=e.seriesType,c=e.getTargetSeries,f=!0,d=!1,h="";Ea(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,v):c?c(r,a).each(v):(f=!1,W(r.getSeries(),v));function v(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(d=!0,P0({reset:Sft,onDirty:wft})));y.context={model:p,overallProgress:f},y.agent=o,y.__block=f,i._pipe(p,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 gt(e)&&(e={overallReset:e,seriesType:Eft(e)}),e.uid=Gv("stageHandler"),n&&(e.visualType=n),e},t}();function mft(t){t.overallReset(t.ecModel,t.api,t.payload)}function Sft(t){return t.overallProgress&&bft}function bft(){this.agent.dirty(),this.getDownstream().dirty()}function wft(){this.agent&&this.agent.dirty()}function _ft(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function xft(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Dn(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Ie(e,function(n,r){return lre(r)}):Cft}var Cft=lre(0);function lre(t){return function(e,n){var r=n.data,a=n.resetDefines[t];if(a&&a.dataEach)for(var i=e.start;i<e.end;i++)a.dataEach(r,i);else a&&a.progress&&a.progress(e,r)}}function Tft(t){return t.data.count()}function Eft(t){$_=null;try{t(Zy,ure)}catch{}return $_}var Zy={},ure={},$_;cre(Zy,Nne);cre(ure,Vne);Zy.eachSeriesByType=Zy.eachRawSeriesByType=function(t){$_=t};Zy.eachComponent=function(t){t.mainType==="series"&&t.subType&&($_=t.subType)};function cre(t,e){for(var n in e.prototype)t[n]=ir}const fre=yft;var jz=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Mft={color:jz,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],jz]};var Na="#B9B8CE",Yz="#100C2A",VS=function(){return{axisLine:{lineStyle:{color:Na}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Xz=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],dre={darkMode:!0,color:Xz,backgroundColor:Yz,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Na}},textStyle:{color:Na},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Na}},dataZoom:{borderColor:"#71708A",textStyle:{color:Na},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Na}},timeline:{lineStyle:{color:Na},label:{color:Na},controlStyle:{color:Na,borderColor:Na}},calendar:{itemStyle:{color:Yz},dayLabel:{color:Na},monthLabel:{color:Na},yearLabel:{color:Na}},timeAxis:VS(),logAxis:VS(),valueAxis:VS(),categoryAxis:VS(),line:{symbol:"circle"},graph:{color:Xz},gauge:{title:{color:Na},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Na},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};dre.categoryAxis.splitLine.show=!1;const Dft=dre;var kft=function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},a={};if(it(e)){var i=Vs(e);n.mainType=i.main||null,n.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};W(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(n.mainType=v,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:a}},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,v){return f[h]==null||d[v||h]===f[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),GR=["symbol","symbolSize","symbolRotate","symbolOffset"],qz=GR.concat(["symbolKeepAspect"]),Rft={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<GR.length;o++){var s=GR[o],l=t.get(s);gt(l)?(i=!0,a[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Oe({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var u=Yt(a);function c(f,d){for(var h=t.getRawValue(d),v=t.getDataParams(d),p=0;p<u.length;p++){var g=u[p];f.setItemVisual(d,g,a[g](h,v))}}return{dataEach:i?c:null}}},Lft={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(a,i){for(var o=a.getItemModel(i),s=0;s<qz.length;s++){var l=qz[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function GN(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Qm(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function hre(t,e,n,r){switch(n){case"color":var a=t.ensureUniqueItemVisual(e,"style");a[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break}}function pre(t,e){function n(r,a){var i=[];return r.eachComponent({mainType:"series",subType:t,query:a},function(o){i.push(o.seriesIndex)}),i}W([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(r){e(r[0],function(a,i,o){a=Oe({},a),o.dispatchAction(Oe(a,{type:r[1],seriesIndex:n(i,a)}))})})}function Mh(t,e,n,r,a){var i=t+e;n.isSilent(i)||r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=$d(f,a.fromActionPayload);n.trigger(i,{type:i,seriesId:o.id,name:$e(d)?f.getName(d[0]):f.getName(d),selected:it(l)?l:Oe({},l)})}})}function Oft(t,e,n){t.on("selectchanged",function(r){var a=n.getModel();r.isFromClick?(Mh("map","selectchanged",e,a,r),Mh("pie","selectchanged",e,a,r)):r.fromAction==="select"?(Mh("map","selected",e,a,r),Mh("pie","selected",e,a,r)):r.fromAction==="unselect"&&(Mh("map","unselected",e,a,r),Mh("pie","unselected",e,a,r))})}function sd(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var Aft=Math.round(Math.random()*9),Nft=typeof Object.defineProperty=="function",Vft=function(){function t(){this._id="__ec_inner_"+Aft++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return Nft?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}();const Bft=Vft;var $ft=Wt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,i=e.height/2;t.moveTo(n,r-i),t.lineTo(n+a,r+i),t.lineTo(n-a,r+i),t.closePath()}}),Ift=Wt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,a=e.width/2,i=e.height/2;t.moveTo(n,r-i),t.lineTo(n+a,r),t.lineTo(n,r+i),t.lineTo(n-a,r),t.closePath()}}),Pft=Wt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,a=e.width/5*3,i=Math.max(a,e.height),o=a/2,s=o*o/(i-o),l=r-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;t.moveTo(n-c,l+s),t.arc(n,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(n+c-f*h,l+s+d*h,n,r-v,n,r),t.bezierCurveTo(n,r-v,n-c+f*h,l+s+d*h,n-c,l+s),t.closePath()}}),Fft=Wt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,a=e.x,i=e.y,o=r/3*2;t.moveTo(a,i),t.lineTo(a+o,i+n),t.lineTo(a,i+n/4*3),t.lineTo(a-o,i+n),t.lineTo(a,i),t.closePath()}}),zft={line:Vr,rect:nn,roundRect:nn,square:nn,circle:as,diamond:Ift,pin:Pft,arrow:Fft,triangle:$ft},Gft={line:function(t,e,n,r,a){a.x1=t,a.y1=e+r/2,a.x2=t+n,a.y2=e+r/2},rect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r},roundRect:function(t,e,n,r,a){a.x=t,a.y=e,a.width=n,a.height=r,a.r=Math.min(n,r)/4},square:function(t,e,n,r,a){var i=Math.min(n,r);a.x=t,a.y=e,a.width=i,a.height=i},circle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.r=Math.min(n,r)/2},diamond:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r},pin:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},arrow:function(t,e,n,r,a){a.x=t+n/2,a.y=e+r/2,a.width=n,a.height=r},triangle:function(t,e,n,r,a){a.cx=t+n/2,a.cy=e+r/2,a.width=n,a.height=r}},I_={};W(zft,function(t,e){I_[e]=new t});var Uft=Wt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=M_(t,e,n),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(t,e,n){var r=e.symbolType;if(r!=="none"){var a=I_[r];a||(r="rect",a=I_[r]),Gft[r](e.x,e.y,e.width,e.height,a.shape),a.buildPath(t,a.shape,n)}}});function Hft(t,e){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=t:n.fill=t,this.markRedraw()}}function fr(t,e,n,r,a,i,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=SN(t.slice(8),new Ft(e,n,r,a),o?"center":"cover"):t.indexOf("path://")===0?l=Ym(t.slice(7),{},new Ft(e,n,r,a),o?"center":"cover"):l=new Uft({shape:{symbolType:t,x:e,y:n,width:r,height:a}}),l.__isEmptyBrush=s,l.setColor=Hft,i&&l.setColor(i),l}function Xv(t){return $e(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function nh(t,e){if(t!=null)return $e(t)||(t=[t,t]),[tt(t[0],e[0])||0,tt(Pt(t[1],t[0]),e[1])||0]}function ld(t){return isFinite(t)}function Wft(t,e,n){var r=e.x==null?0:e.x,a=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(r=r*n.width+n.x,a=a*n.width+n.x,i=i*n.height+n.y,o=o*n.height+n.y),r=ld(r)?r:0,a=ld(a)?a:1,i=ld(i)?i:0,o=ld(o)?o:0;var s=t.createLinearGradient(r,i,a,o);return s}function Kft(t,e,n){var r=n.width,a=n.height,i=Math.min(r,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*r+n.x,s=s*a+n.y,l=l*i),o=ld(o)?o:.5,s=ld(s)?s:.5,l=l>=0&&ld(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function UR(t,e,n){for(var r=e.type==="radial"?Kft(t,e,n):Wft(t,e,n),a=e.colorStops,i=0;i<a.length;i++)r.addColorStop(a[i].offset,a[i].color);return r}function jft(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function BS(t){return parseInt(t,10)}function cp(t,e,n){var r=["width","height"][e],a=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[a]||BS(s[r])||BS(t.style[r]))-(BS(s[i])||0)-(BS(s[o])||0)|0}function Yft(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:on(t)?[t]:$e(t)?t:null}function UN(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Yft(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(n=Ie(n,function(i){return i/a}),r/=a)}return[n,r]}var Xft=new Js(!0);function P_(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function Zz(t){return typeof t=="string"&&t!=="none"}function F_(t){var e=t.fill;return e!=null&&e!=="none"}function Qz(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 Jz(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 HR(t,e,n){var r=cN(e.image,e.__image,n);if(LC(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)*D0),i.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(i)}return a}}function qft(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||Xft,f=e.__dirty;if(!r){var d=n.fill,h=n.stroke,v=o&&!!d.colorStops,p=i&&!!h.colorStops,g=o&&!!d.image,y=i&&!!h.image,m=void 0,S=void 0,b=void 0,x=void 0,_=void 0;(v||p)&&(_=e.getBoundingRect()),v&&(m=f?UR(t,d,_):e.__canvasFillGradient,e.__canvasFillGradient=m),p&&(S=f?UR(t,h,_):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),g&&(b=f||!e.__canvasFillPattern?HR(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=b),y&&(x=f||!e.__canvasStrokePattern?HR(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),v?t.fillStyle=m:g&&(b?t.fillStyle=b:o=!1),p?t.strokeStyle=S:y&&(x?t.strokeStyle=x:i=!1)}var C=e.getGlobalScale();c.setScale(C[0],C[1],e.segmentIgnoreThreshold);var T,D;t.setLineDash&&n.lineDash&&(a=UN(e),T=a[0],D=a[1]);var M=!0;(u||f&Yh)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),M=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),M&&c.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=D),r||(n.strokeFirst?(i&&Jz(t,n),o&&Qz(t,n)):(o&&Qz(t,n),i&&Jz(t,n))),T&&t.setLineDash([])}function Zft(t,e,n){var r=e.__image=cN(n.image,e.__image,e,e.onload);if(!(!r||!LC(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 Qft(t,e,n){var r,a=n.text;if(a!=null&&(a+=""),a){t.font=n.font||mc,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var i=void 0,o=void 0;t.setLineDash&&n.lineDash&&(r=UN(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 eG=["shadowBlur","shadowOffsetX","shadowOffsetY"],tG=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function vre(t,e,n,r,a){var i=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){ci(t,a),i=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?_d.opacity:o}(r||e.blend!==n.blend)&&(i||(ci(t,a),i=!0),t.globalCompositeOperation=e.blend||_d.blend);for(var s=0;s<eG.length;s++){var l=eG[s];(r||e[l]!==n[l])&&(i||(ci(t,a),i=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(i||(ci(t,a),i=!0),t.shadowColor=e.shadowColor||_d.shadowColor),i}function nG(t,e,n,r,a){var i=Qy(e,a.inHover),o=r?null:n&&Qy(n,a.inHover)||{};if(i===o)return!1;var s=vre(t,i,o,r,a);if((r||i.fill!==o.fill)&&(s||(ci(t,a),s=!0),Zz(i.fill)&&(t.fillStyle=i.fill)),(r||i.stroke!==o.stroke)&&(s||(ci(t,a),s=!0),Zz(i.stroke)&&(t.strokeStyle=i.stroke)),(r||i.opacity!==o.opacity)&&(s||(ci(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||(ci(t,a),s=!0),t.lineWidth=u)}for(var c=0;c<tG.length;c++){var f=tG[c],d=f[0];(r||i[d]!==o[d])&&(s||(ci(t,a),s=!0),t[d]=i[d]||f[1])}return s}function Jft(t,e,n,r,a){return vre(t,Qy(e,a.inHover),n&&Qy(n,a.inHover),r,a)}function gre(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function edt(t,e,n){for(var r=!1,a=0;a<t.length;a++){var i=t[a];r=r||i.isZeroArea(),gre(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}n.allClipped=r}function tdt(t,e){return t&&e?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&&!e)}var rG=1,aG=2,iG=3,oG=4;function ndt(t){var e=F_(t),n=P_(t);return!(t.lineDash||!(+e^+n)||e&&typeof t.fill!="string"||n&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function ci(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Qy(t,e){return e&&t.__hoverStyle||t.style}function HN(t,e){ud(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ud(t,e,n,r){var a=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~_i,e.__isRendered=!1;return}var i=e.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if((!o||jft(i,o))&&(o&&o.length&&(ci(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(ci(t,n),t.save(),edt(i,t,n),s=!0),n.prevElClipPaths=i),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof Wt&&e.autoBatch&&ndt(e.style);s||tdt(a,u.transform)?(ci(t,n),gre(t,e)):c||ci(t,n);var f=Qy(e,n.inHover);e instanceof Wt?(n.lastDrawType!==rG&&(l=!0,n.lastDrawType=rG),nG(t,e,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&t.beginPath(),qft(t,e,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof Gy?(n.lastDrawType!==iG&&(l=!0,n.lastDrawType=iG),nG(t,e,u,l,n),Qft(t,e,f)):e instanceof Qr?(n.lastDrawType!==aG&&(l=!0,n.lastDrawType=aG),Jft(t,e,u,l,n),Zft(t,e,f)):e.getTemporalDisplayables&&(n.lastDrawType!==oG&&(l=!0,n.lastDrawType=oG),rdt(t,e,n)),c&&r&&ci(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function rdt(t,e,n){var r=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=e.getCursor(),s=r.length;o<s;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ud(t,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ud(t,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var CE=new Bft,sG=new Gm(100),lG=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function dv(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),a=r.painter.type==="svg";t.dirty&&CE.delete(t);var i=CE.get(t);if(i)return i;var o=mt(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/n,CE.set(t,s),t.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<lG.length;++d){var h=o[lG[d]];if(h!=null&&!$e(h)&&!it(h)&&!on(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(a?"-svg":"");var p=sG.get(v);p&&(a?u.svgElement=p:u.image=p)}var g=mre(o.dashArrayX),y=adt(o.dashArrayY),m=yre(o.symbol),S=idt(g),b=Sre(y),x=!a&&ts.createCanvas(),_=a&&{tag:"g",attrs:{},key:"dcl",children:[]},C=D(),T;x&&(x.width=C.width*n,x.height=C.height*n,T=x.getContext("2d")),M(),f&&sG.put(v,x||_),u.image=x,u.svgElement=_,u.svgWidth=C.width,u.svgHeight=C.height;function D(){for(var E=1,k=0,R=S.length;k<R;++k)E=x5(E,S[k]);for(var O=1,k=0,R=m.length;k<R;++k)O=x5(O,m[k].length);E*=O;var B=b*S.length*m.length;return{width:Math.max(1,Math.min(E,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,x.width,x.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,x.width,x.height)));for(var E=0,k=0;k<y.length;++k)E+=y[k];if(E<=0)return;for(var R=-b,O=0,B=0,$=0;R<C.height;){if(O%2===0){for(var V=B/2%m.length,F=0,L=0,N=0;F<C.width*2;){for(var H=0,k=0;k<g[$].length;++k)H+=g[$][k];if(H<=0)break;if(L%2===0){var K=(1-o.symbolSize)*.5,Q=F+g[$][L]*K,ie=R+y[O]*K,be=g[$][L]*o.symbolSize,le=y[O]*o.symbolSize,J=N/2%m[V].length;Z(Q,ie,be,le,m[V][J])}F+=g[$][L],++N,++L,L===g[$].length&&(L=0)}++$,$===g.length&&($=0)}R+=y[O],++B,++O,O===y.length&&(O=0)}function Z(ee,ce,ue,Y,te){var oe=a?1:n,Se=fr(te,ee*oe,ce*oe,ue*oe,Y*oe,o.color,o.symbolKeepAspect);if(a){var fe=r.painter.renderOneToVNode(Se);fe&&_.children.push(fe)}else HN(T,Se)}}}}function yre(t){if(!t||t.length===0)return[["rect"]];if(it(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!it(t[n])){e=!1;break}if(e)return yre([t]);for(var r=[],n=0;n<t.length;++n)it(t[n])?r.push([t[n]]):r.push(t[n]);return r}function mre(t){if(!t||t.length===0)return[[0,0]];if(on(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!on(t[r])){n=!1;break}if(n)return mre([t]);for(var a=[],r=0;r<t.length;++r)if(on(t[r])){var e=Math.ceil(t[r]);a.push([e,e])}else{var e=Ie(t[r],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function adt(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(on(t)){var e=Math.ceil(t);return[e,e]}var n=Ie(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function idt(t){return Ie(t,function(e){return Sre(e)})}function Sre(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function odt(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(o){var s=r.getItemVisual(o,"decal");if(s){var l=r.ensureUniqueItemVisual(o,"style");l.decal=dv(s,e)}});var a=r.getVisual("decal");if(a){var i=r.getVisual("style");i.decal=dv(a,e)}}})}var sdt=new po;const Do=sdt;var bre={};function ldt(t,e){bre[t]=e}function wre(t){return bre[t]}var udt="5.4.3",cdt={zrender:"5.4.4"},fdt=1,ddt=800,hdt=900,pdt=1e3,vdt=2e3,gdt=5e3,_re=1e3,ydt=1100,WN=2e3,xre=3e3,mdt=4e3,ZC=4500,Sdt=4600,bdt=5e3,wdt=6e3,Cre=7e3,Tre={PROCESSOR:{FILTER:pdt,SERIES_FILTER:ddt,STATISTIC:gdt},VISUAL:{LAYOUT:_re,PROGRESSIVE_LAYOUT:ydt,GLOBAL:WN,CHART:xre,POST_CHART_LAYOUT:Sdt,COMPONENT:mdt,BRUSH:bdt,CHART_ITEM:ZC,ARIA:wdt,DECAL:Cre}},ga="__flagInMainProcess",ai="__pendingUpdate",TE="__needsUpdateStatus",uG=/^[a-zA-Z0-9_]+$/,EE="__connectUpdateStatus",cG=0,_dt=1,xdt=2;function Ere(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){this.id;return}return Dre(this,t,e)}}function Mre(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Dre(this,t,e)}}function Dre(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),po.prototype[e].apply(t,n)}var kre=function(t){we(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(po),Rre=kre.prototype;Rre.on=Mre("on");Rre.off=Mre("off");var Dh,ME,$S,gu,DE,kE,RE,Eg,Mg,fG,dG,LE,hG,IS,pG,Lre,Bi,vG,z_=function(t){we(e,t);function e(n,r,a){var i=t.call(this,new kft)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},it(r)&&(r=Ore[r]),i._dom=n;var o="canvas",s="auto",l=!1,u=i._zr=mR(n,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Pt(a.useDirtyRect,l),useCoarsePointer:Pt(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=qC(st(u.flush,u),17),r=wt(r),r&&$ne(r,!0),i._theme=r,i._locale=Aut(a.locale||hne),i._coordSysMgr=new Kv;var c=i._api=pG(i);function f(d,h){return d.__prio-h.__prio}return rw(U_,f),rw(WR,f),i._scheduler=new fre(i,c,WR,U_),i._messageCenter=new kre,i._initEvents(),i.resize=st(i.resize,i),u.animation.on("frame",i._onframe,i),fG(u,i),dG(u,i),Oy(i),i}return e.prototype._onframe=function(){if(!this._disposed){vG(this);var n=this._scheduler;if(this[ai]){var r=this[ai].silent;this[ga]=!0;try{Dh(this),gu.update.call(this,null,this[ai].updateParams)}catch(l){throw this[ga]=!1,this[ai]=null,l}this._zr.flush(),this[ga]=!1,this[ai]=null,Eg.call(this,r),Mg.call(this,r)}else if(n.unfinished){var a=fdt,i=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(i),n.performDataProcessorTasks(i),kE(this,i),n.performVisualTasks(i),IS(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&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[ga]){if(this._disposed){this.id;return}var i,o,s;if(bt(r)&&(a=r.lazyUpdate,i=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[ga]=!0,!this._model||r){var l=new hct(this._api),u=this._theme,c=this._model=new Nne;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},KR);var f={seriesTransition:s,optionChanged:!0};if(a)this[ai]={silent:i,updateParams:f},this[ga]=!1,this.getZr().wakeUp();else{try{Dh(this),gu.update.call(this,null,f)}catch(d){throw this[ai]=null,this[ga]=!1,d}this._ssr||this._zr.flush(),this[ai]=null,this[ga]=!1,Eg.call(this,i),Mg.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||an.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(an.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(H_[a]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();W(Td,function(S,b){if(S.group===a){var x=r?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(wt(n)),_=S.getDom().getBoundingClientRect();l=i(_.left,l),u=i(_.top,u),c=o(_.right,c),f=o(_.bottom,f),d.push({dom:x,left:_.left,top:_.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,p=f-u,g=ts.createCanvas(),y=mR(g,{renderer:r?"svg":"canvas"});if(y.resize({width:v,height:p}),r){var m="";return W(d,function(S){var b=S.left-l,x=S.top-u;m+='<g transform="translate('+b+","+x+')">'+S.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new nn({shape:{x:0,y:0,width:v,height:p},style:{fill:n.connectedBackgroundColor}})),W(d,function(S){var b=new Qr({style:{x:S.left*h-l,y:S.top*h-u,image:S.dom}});y.add(b)}),y.refreshImmediately(),g.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return DE(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return DE(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var a=this._model,i,o=N0(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=N0(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?GN(s,l,r):Qm(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(Cdt,function(r){var a=function(i){var o=n.getModel(),s=i.target,l,u=r==="globalout";if(u?l={}:s&&sd(s,function(v){var p=Rt(v);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=Oe({},p.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=i,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};a.zrEventfulCallAtLast=!0,n._zr.on(r,a,n)}),W(F0,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)}),Oft(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&&ute(this.getDom(),jN,"");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 Td[r.id]},e.prototype.resize=function(n){if(!this[ga]){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[ai]&&(i==null&&(i=this[ai].silent),a=!0,this[ai]=null),this[ga]=!0;try{a&&Dh(this),gu.update.call(this,{type:"resize",animation:Oe({duration:0},n&&n.animation)})}catch(o){throw this[ga]=!1,o}this[ga]=!1,Eg.call(this,i),Mg.call(this,i)}}},e.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(bt(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!jR[n]){var a=jR[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=F0[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(bt(r)||(r={silent:!!r}),!!G_[n.type]&&this._model){if(this[ga]){this._pendingActions.push(n);return}var a=r.silent;RE.call(this,n,a);var i=r.flush;i?this._zr.flush():i!==!1&&an.browser.weChat&&this._throttledZrFlush(),Eg.call(this,a),Mg.call(this,a)}},e.prototype.updateLabelLayout=function(){Do.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(){Dh=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),ME(f,!0),ME(f,!1),d.plan()},ME=function(f,d){for(var h=f._model,v=f._scheduler,p=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,y=f._zr,m=f._api,S=0;S<p.length;S++)p[S].__alive=!1;d?h.eachComponent(function(_,C){_!=="series"&&b(C)}):h.eachSeries(b);function b(_){var C=_.__requireNewView;_.__requireNewView=!1;var T="_ec_"+_.id+"_"+_.type,D=!C&&g[T];if(!D){var M=Vs(_.type),E=d?jn.getClass(M.main,M.sub):kn.getClass(M.sub);D=new E,D.init(h,m),g[T]=D,p.push(D),y.add(D.group)}_.__viewId=D.__id=T,D.__alive=!0,D.__model=_,D.group.__ecComponentInfo={mainType:_.mainType,index:_.componentIndex},!d&&v.prepareView(D,_,h,m)}for(var S=0;S<p.length;){var x=p[S];x.__alive?S++:(!d&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,m),p.splice(S,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},$S=function(f,d,h,v,p){var g=f._model;if(g.setUpdatePayload(h),!v){W([].concat(f._componentsViews).concat(f._chartsViews),x);return}var y={};y[v+"Id"]=h[v+"Id"],y[v+"Index"]=h[v+"Index"],y[v+"Name"]=h[v+"Name"];var m={mainType:v,query:y};p&&(m.subType=p);var S=h.excludeSeriesId,b;S!=null&&(b=ht(),W(Dn(S),function(_){var C=Rr(_,null);C!=null&&b.set(C,!0)})),g&&g.eachComponent(m,function(_){var C=b&&b.get(_.id)!=null;if(!C)if(Z5(h))if(_ instanceof In)h.type===xd&&!h.notBlur&&!_.get(["emphasis","disabled"])&&klt(_,h,f._api);else{var T=vN(_.mainType,_.componentIndex,h.name,f._api),D=T.focusSelf,M=T.dispatchers;h.type===xd&&D&&!h.notBlur&&MR(_.mainType,_.componentIndex,f._api),M&&W(M,function(E){h.type===xd?Ul(E):Hl(E)})}else kR(h)&&_ instanceof In&&(Olt(_,h,f._api),X5(_),Bi(f))},f),g&&g.eachComponent(m,function(_){var C=b&&b.get(_.id)!=null;C||x(f[v==="series"?"_chartsMap":"_componentsMap"][_.__viewId])},f);function x(_){_&&_.__alive&&_[d]&&_[d](_.__model,g,f._api,h)}},gu={prepareAndUpdate:function(f){Dh(this),gu.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),g.create(h,v),y.performDataProcessorTasks(h,f),kE(this,h),g.update(h,v),n(h),y.performVisualTasks(h,f),LE(this,h,v,f,d);var m=h.get("backgroundColor")||"transparent",S=h.get("darkMode");p.setBackgroundColor(m),S!=null&&S!=="auto"&&p.setDarkMode(S),Do.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var p=[];h.eachComponent(function(y,m){if(y!=="series"){var S=d.getViewOfComponentModel(m);if(S&&S.__alive)if(S.updateTransform){var b=S.updateTransform(m,h,v,f);b&&b.update&&p.push(S)}else p.push(S)}});var g=ht();h.eachSeries(function(y){var m=d._chartsMap[y.__viewId];if(m.updateTransform){var S=m.updateTransform(y,h,v,f);S&&S.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),IS(this,h,v,f,{},g),Do.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),kn.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),LE(this,d,this._api,f,{}),Do.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),kn.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,p){if(v!=="series"){var g=d.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,d._api,f)}}),h.eachSeries(function(v){var p=d._chartsMap[v.__viewId];p.updateVisual(v,h,d._api,f)}),Do.trigger("afterupdate",h,this._api))},updateLayout:function(f){gu.update.call(this,f)}},DE=function(f,d,h,v){if(f._disposed){f.id;return}for(var p=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,m=N0(p,h),S=0;S<g.length;S++){var b=g[S];if(b[d]&&(y=b[d](p,m,v))!=null)return y}},kE=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(p){v.updateStreamModes(p,h[p.__viewId])})},RE=function(f,d){var h=this,v=this.getModel(),p=f.type,g=f.escapeConnect,y=G_[p],m=y.actionInfo,S=(m.update||"update").split(":"),b=S.pop(),x=S[0]!=null&&Vs(S[0]);this[ga]=!0;var _=[f],C=!1;f.batch&&(C=!0,_=Ie(f.batch,function(O){return O=mt(Oe({},O),f),O.batch=null,O}));var T=[],D,M=kR(f),E=Z5(f);if(E&&Bte(this._api),W(_,function(O){if(D=y.action(O,h._model,h._api),D=D||Oe({},O),D.type=m.event||D.type,T.push(D),E){var B=lN(f),$=B.queryOptionMap,V=B.mainTypeSpecified,F=V?$.keys()[0]:"series";$S(h,b,O,F),Bi(h)}else M?($S(h,b,O,"series"),Bi(h)):x&&$S(h,b,O,x.main,x.sub)}),b!=="none"&&!E&&!M&&!x)try{this[ai]?(Dh(this),gu.update.call(this,f),this[ai]=null):gu[b].call(this,f)}catch(O){throw this[ga]=!1,O}if(C?D={type:m.event||p,escapeConnect:g,batch:T}:D=T[0],this[ga]=!1,!d){var k=this._messageCenter;if(k.trigger(D.type,D),M){var R={type:"selectchanged",escapeConnect:g,selected:Alt(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};k.trigger(R.type,R)}}},Eg=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();RE.call(this,h,f)}},Mg=function(f){!f&&this.trigger("updated")},fG=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[ai]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},dG=function(f,d){f.on("mouseover",function(h){var v=h.target,p=sd(v,Hy);p&&(Rlt(p,h,d._api),Bi(d))}).on("mouseout",function(h){var v=h.target,p=sd(v,Hy);p&&(Llt(p,h,d._api),Bi(d))}).on("click",function(h){var v=h.target,p=sd(v,function(m){return Rt(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=Rt(p);d._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function r(f){var d=[],h=[],v=!1;if(f.eachComponent(function(m,S){var b=S.get("zlevel")||0,x=S.get("z")||0,_=S.getZLevelKey();v=v||!!_,(m==="series"?h:d).push({zlevel:b,z:x,idx:S.componentIndex,type:m,key:_})}),v){var p=d.concat(h),g,y;rw(p,function(m,S){return m.zlevel===S.zlevel?m.z-S.z:m.zlevel-S.zlevel}),W(p,function(m){var S=f.getComponent(m.type,m.idx),b=m.zlevel,x=m.key;g!=null&&(b=Math.max(g,b)),x?(b===g&&x!==y&&b++,y=x):y&&(b===g&&b++,y=""),g=b,S.setZLevel(b)})}}LE=function(f,d,h,v,p){r(d),hG(f,d,h,v,p),W(f._chartsViews,function(g){g.__alive=!1}),IS(f,d,h,v,p),W(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},hG=function(f,d,h,v,p,g){W(g||f._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,d,h,v),s(m,y),c(m,y)})},IS=function(f,d,h,v,p,g){var y=f._scheduler;p=Oe(p||{},{updatedSeries:d.getSeries()}),Do.trigger("series:beforeupdate",d,h,p);var m=!1;d.eachSeries(function(S){var b=f._chartsMap[S.__viewId];b.__alive=!0;var x=b.renderTask;y.updatePayload(x,v),u(S,b),g&&g.get(S.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(m=!0),b.group.silent=!!S.get("silent"),o(S,b),X5(S)}),y.unfinished=m||y.unfinished,Do.trigger("series:layoutlabels",d,h,p),Do.trigger("series:transition",d,h,p),d.eachSeries(function(S){var b=f._chartsMap[S.__viewId];s(S,b),c(S,b)}),i(f,d),Do.trigger("series:afterupdate",d,h,p)},Bi=function(f){f[TE]=!0,f.getZr().wakeUp()},vG=function(f){f[TE]&&(f.getZr().storage.traverse(function(d){kp(d)||a(d)}),f[TE]=!1)};function a(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var p=h[v];p==="emphasis"||p==="blur"||p==="select"||d.push(p)}f.selected&&f.states.select&&d.push("select"),f.hoverState===NC&&f.states.emphasis?d.push("emphasis"):f.hoverState===Wm&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var h=f._zr,v=h.storage,p=0;v.traverse(function(g){g.isGroup||p++}),p>d.get("hoverLayerThreshold")&&!an.node&&!an.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(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(p){return l(p,h,v,-1/0),!0})}}function l(f,d,h,v){var p=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var m=f.childrenRef(),S=0;S<m.length;S++)v=Math.max(l(m[S],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(p&&(p.z=d,p.zlevel=h,isFinite(v)&&(p.z2=v+2)),g){var b=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(b&&b.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!kp(h)){var v=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(kp(y))return;if(y instanceof Wt&&Ilt(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(v){y.stateTransition=g;var S=y.getTextContent(),b=y.getTextGuideLine();S&&(S.stateTransition=g),b&&(b.stateTransition=g)}y.__dirty&&a(y)}})}pG=function(f){return new(function(d){we(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var p=v.__ecComponentInfo;if(p!=null)return f._model.getComponent(p.mainType,p.index);v=v.parent}},h.prototype.enterEmphasis=function(v,p){Ul(v,p),Bi(f)},h.prototype.leaveEmphasis=function(v,p){Hl(v,p),Bi(f)},h.prototype.enterBlur=function(v){Ote(v),Bi(f)},h.prototype.leaveBlur=function(v){pN(v),Bi(f)},h.prototype.enterSelect=function(v){Ate(v),Bi(f)},h.prototype.leaveSelect=function(v){Nte(v),Bi(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(Vne))(f)},Lre=function(f){function d(h,v){for(var p=0;p<h.length;p++){var g=h[p];g[EE]=v}}W(F0,function(h,v){f._messageCenter.on(v,function(p){if(H_[f.group]&&f[EE]!==cG){if(p&&p.escapeConnect)return;var g=f.makeActionFromEvent(p),y=[];W(Td,function(m){m!==f&&m.group===f.group&&y.push(m)}),d(y,cG),W(y,function(m){m[EE]!==_dt&&m.dispatchAction(g)}),d(y,xdt)}})})}}(),e}(po),KN=z_.prototype;KN.on=Ere("on");KN.off=Ere("off");KN.one=function(t,e,n){var r=this;function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),r.off(t,a)}this.on.call(this,t,a,n)};var Cdt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var G_={},F0={},WR=[],KR=[],U_=[],Ore={},jR={},Td={},H_={},Tdt=+new Date-0,Edt=+new Date-0,jN="_echarts_instance_";function Mdt(t,e,n){var r=!(n&&n.ssr);if(r){var a=YN(t);if(a)return a}var i=new z_(t,e,n);return i.id="ec_"+Tdt++,Td[i.id]=i,r&&ute(t,jN,i.id),Lre(i),Do.trigger("afterinit",i),i}function Ddt(t){if($e(t)){var e=t;t=null,W(e,function(n){n.group!=null&&(t=n.group)}),t=t||"g_"+Edt++,W(e,function(n){n.group=t})}return H_[t]=!0,t}function Are(t){H_[t]=!1}var kdt=Are;function Rdt(t){it(t)?t=Td[t]:t instanceof z_||(t=YN(t)),t instanceof z_&&!t.isDisposed()&&t.dispose()}function YN(t){return Td[Cst(t,jN)]}function Ldt(t){return Td[t]}function XN(t,e){Ore[t]=e}function qN(t){zt(KR,t)<0&&KR.push(t)}function ZN(t,e){QN(WR,t,e,vdt)}function Nre(t){QC("afterinit",t)}function Vre(t){QC("afterupdate",t)}function QC(t,e){Do.on(t,e)}function cs(t,e,n){gt(e)&&(n=e,e="");var r=bt(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,!F0[e]&&(Ea(uG.test(r)&&uG.test(e)),G_[r]||(G_[r]={action:n,actionInfo:t}),F0[e]=r)}function Bre(t,e){Kv.register(t,e)}function Odt(t){var e=Kv.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function $re(t,e){QN(U_,t,e,_re,"layout")}function Fc(t,e){QN(U_,t,e,xre,"visual")}var gG=[];function QN(t,e,n,r,a){if((gt(e)||bt(e))&&(n=e,e=r),!(zt(gG,n)>=0)){gG.push(n);var i=fre.wrapStageHandler(n,a);i.__prio=e,i.__raw=n,t.push(i)}}function JN(t,e){jR[t]=e}function Adt(t){dee({createCanvas:t})}function Ire(t,e,n){var r=wre("registerMap");r&&r(t,e,n)}function Ndt(t){var e=wre("getMap");return e&&e(t)}var Pre=zct;Fc(WN,hft);Fc(ZC,pft);Fc(ZC,vft);Fc(WN,Rft);Fc(ZC,Lft);Fc(Cre,odt);qN($ne);ZN(hdt,wct);JN("default",gft);cs({type:xd,event:xd,update:xd},ir);cs({type:cw,event:cw,update:cw},ir);cs({type:V0,event:V0,update:V0},ir);cs({type:fw,event:fw,update:fw},ir);cs({type:B0,event:B0,update:B0},ir);XN("light",Mft);XN("dark",Dft);var Vdt={},yG=[],Bdt={registerPreprocessor:qN,registerProcessor:ZN,registerPostInit:Nre,registerPostUpdate:Vre,registerUpdateLifecycle:QC,registerAction:cs,registerCoordinateSystem:Bre,registerLayout:$re,registerVisual:Fc,registerTransform:Pre,registerLoading:JN,registerMap:Ire,registerImpl:ldt,PRIORITY:Tre,ComponentModel:Qt,ComponentView:jn,SeriesModel:In,ChartView:kn,registerComponentModel:function(t){Qt.registerClass(t)},registerComponentView:function(t){jn.registerClass(t)},registerSeriesModel:function(t){In.registerClass(t)},registerChartView:function(t){kn.registerClass(t)},registerSubTypeDefaulter:function(t,e){Qt.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Qee(t,e)}};function Ut(t){if($e(t)){W(t,function(e){Ut(e)});return}zt(yG,t)>=0||(yG.push(t),gt(t)&&(t={install:t}),t.install(Bdt))}function Dg(t){return t==null?0:t.length||1}function mG(t){return t}var $dt=function(){function t(e,n,r,a,i,o){this._old=e,this._new=n,this._oldKeyGetter=r||mG,this._newKeyGetter=a||mG,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;o<e.length;o++){var s=a[o],l=r[s],u=Dg(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,r)},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;s<i.length;s++){var l=i[s],u=r[l],c=a[l],f=Dg(u),d=Dg(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var a=e[r],i=n[a],o=Dg(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);n[a]=null}},t.prototype._initIndexMap=function(e,n,r,a){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(i||(r[o]=s),!!n){var l=n[s],u=Dg(l);u===0?(n[s]=o,i&&r.push(s)):u===1?n[s]=[l,o]:l.push(o)}}},t}();const Wl=$dt;var Idt=function(){function t(e,n){this._encode=e,this._schema=n}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function Pdt(t,e){var n={},r=n.encode={},a=ht(),i=[],o=[],s={};W(t.dimensions,function(d){var h=t.getDimensionInfo(d),v=h.coordDim;if(v){var p=h.coordDimIndex;OE(r,v)[p]=d,h.isExtraCoord||(a.set(v,1),Fdt(h.type)&&(i[0]=d),OE(s,v)[p]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}Ene.each(function(g,y){var m=OE(r,y),S=h.otherDims[y];S!=null&&S!==!1&&(m[S]=h.name)})});var l=[],u={};a.each(function(d,h){var v=r[h];u[h]=v[0],l=l.concat(v)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Ie(l,function(d){return t.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(i=c.slice());var f=r.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),r.defaultedLabel=i,r.defaultedTooltip=o,n.userOutput=new Idt(s,e),n}function OE(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function W_(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function Fdt(t){return!(t==="ordinal"||t==="time")}var zdt=function(){function t(e){this.otherDims={},e!=null&&Oe(this,e)}return t}();const gw=zdt;var Gdt=sn(),Udt={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Fre=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Ure(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Pt(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var n=this.source.dimensionsDefine;if(n)return n[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,n=Pne(this.source),r=!Hre(e),a="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=n?d.name:null,u=d.type)}i.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=Udt[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],n=0,r=0;n<this._fullDimCount;n++){var a=void 0,i=this.dimensions[r];if(i&&i.storeDimIndex===n)i.isCalculationCoord||(a=i.name),r++;else{var o=this.getSourceDimension(n);o&&(a=o.name)}e.push(a)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function zre(t){return t instanceof Fre}function Gre(t){for(var e=ht(),n=0;n<(t||[]).length;n++){var r=t[n],a=bt(r)?r.name:r;a!=null&&e.get(a)==null&&e.set(a,n)}return e}function Ure(t){var e=Gdt(t);return e.dimNameMap||(e.dimNameMap=Gre(t.dimensionsDefine))}function Hre(t){return t>30}var kg=bt,yu=Ie,Hdt=typeof Int32Array>"u"?Array:Int32Array,Wdt="e\0\0",SG=-1,Kdt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],jdt=["_approximateExtent"],bG,PS,Rg,Lg,AE,FS,NE,Ydt=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;zre(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<r.length;c++){var f=r[c],d=it(f)?new gw({name:f}):f instanceof gw?f:new gw(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),a&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ht();W(o,function(g){p.set(i[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var n=this._recognizeDimIndex(e);if(n==null)return e;if(n=e,!this._dimOmitted)return this.dimensions[n];var r=this._dimIdxToName.get(n);if(r!=null)return r;var a=this._schema.getSourceDimension(n);if(a)return a.name},t.prototype.getDimensionIndex=function(e){var n=this._recognizeDimIndex(e);if(n!=null)return n;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(on(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var n=this.getDimensionIndex(e);return n},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var n=this._dimInfos;this._getDimInfo=e?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[e];var a=r.encode[e];return a?a[n]:null},t.prototype.mapDimensionsAll=function(e){var n=this._dimSummary,r=n.encode[e];return(r||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,n,r){var a=this,i;if(e instanceof IR&&(i=e),!i){var o=this.dimensions,s=VN(e)||la(e)?new Fne(e,o.length):e;i=new IR;var l=yu(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,r)}this._store=i,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=Pdt(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var n=this._store.appendData(e);this._doInit(n[0],n[1])},t.prototype.appendValues=function(e,n){var r=this._store.appendValues(e,n.length),a=r.start,i=r.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=n[l],o&&NE(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,n=this.dimensions,r=0;r<n.length;r++){var a=this._dimInfos[n[r]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==ac&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,a=r.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===go;if(l&&!a.pure)for(var u=[],c=e;c<n;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&fst(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=Rr(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=Rr(h,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<n;c++)NE(this,c);bG(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,n){n=this.getDimension(n),this._approximateExtent[n]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,n){kg(e)?Oe(this._calculationInfo,e):this._calculationInfo[e]=n},t.prototype.getName=function(e){var n=this.getRawIndex(e),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=Rg(this,this._nameDimIdx,n)),r==null&&(r=""),r},t.prototype._getCategory=function(e,n){var r=this._store.get(e,n),a=this._store.getOrdinalMeta(e);return a?a.categories[r]:r},t.prototype.getId=function(e){return PS(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.get(a.storeDimIndex,n)},t.prototype.getByRawIndex=function(e,n){var r=this._store,a=this._dimInfos[e];if(a)return r.getByRawIndex(a.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,n){var r=this,a=this._store;return $e(e)?a.getValues(yu(e,function(i){return r._getStoreDimIndex(i)}),n):a.getValues(e)},t.prototype.hasValue=function(e){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,a=n.length;r<a;r++)if(isNaN(this._store.get(n[r],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===e)return n;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,n){var r=e&&this._invertedIndicesMap[e],a=r[n];return a==null||isNaN(a)?SG:a},t.prototype.indicesOfNearest=function(e,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),n,r)},t.prototype.each=function(e,n,r){gt(e)&&(r=n,n=e,e=[]);var a=r||this,i=yu(Lg(e),this._getStoreDimIndex,this);this._store.each(i,a?st(n,a):n)},t.prototype.filterSelf=function(e,n,r){gt(e)&&(r=n,n=e,e=[]);var a=r||this,i=yu(Lg(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?st(n,a):n),this},t.prototype.selectRange=function(e){var n=this,r={},a=Yt(e);return W(a,function(i){var o=n._getStoreDimIndex(i);r[o]=e[i]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){gt(e)&&(r=n,n=e,e=[]),r=r||this;var a=[];return this.each(e,function(){a.push(n&&n.apply(this,arguments))},r),a},t.prototype.map=function(e,n,r,a){var i=r||a||this,o=yu(Lg(e),this._getStoreDimIndex,this),s=FS(this);return s._store=this._store.map(o,i?st(n,i):n),s},t.prototype.modify=function(e,n,r,a){var i=r||a||this,o=yu(Lg(e),this._getStoreDimIndex,this);this._store.modify(o,i?st(n,i):n)},t.prototype.downSample=function(e,n,r,a){var i=FS(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),n,r,a),i},t.prototype.lttbDownSample=function(e,n){var r=FS(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),n),r},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var n=this.hostModel,r=this.getRawDataItem(e);return new Mn(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new Wl(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return PS(e,r)},function(r){return PS(n,r)})},t.prototype.getVisual=function(e){var n=this._visual;return n&&n[e]},t.prototype.setVisual=function(e,n){this._visual=this._visual||{},kg(e)?Oe(this._visual,e):this._visual[e]=n},t.prototype.getItemVisual=function(e,n){var r=this._itemVisuals[e],a=r&&r[n];return a??this.getVisual(n)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},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),$e(i)?i=i.slice():kg(i)&&(i=Oe({},i)),a[n]=i),i},t.prototype.setItemVisual=function(e,n,r){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,kg(n)?Oe(a,n):a[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){kg(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;TR(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:yu(this.dimensions,this._getDimInfo,this),this.hostModel)),AE(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];gt(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=r.apply(this,arguments);return n.apply(this,[a].concat(xC(arguments)))})},t.internalField=function(){bG=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 Hdt(o.categories.length);for(var l=0;l<r.length;l++)r[l]=SG;for(var l=0;l<s.count();l++)r[s.get(i.storeDimIndex,l)]=l}})},Rg=function(e,n,r){return Rr(e._getCategory(n,r),null)},PS=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=Rg(e,e._idDimIdx,n)),r==null&&(r=Wdt+n),r},Lg=function(e){return $e(e)||(e=e!=null?[e]:[]),e},FS=function(e){var n=new t(e._schema?e._schema:yu(e.dimensions,e._getDimInfo,e),e.hostModel);return AE(n,e),n},AE=function(e,n){W(Kdt.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,W(jdt,function(r){e[r]=wt(n[r])}),e._calculationInfo=Oe({},n._calculationInfo)},NE=function(e,n){var r=e._nameList,a=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=r[n],l=a[n];if(s==null&&i!=null&&(r[n]=s=Rg(e,i,n)),l==null&&o!=null&&(a[n]=l=Rg(e,o,n)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[n]=l}}}(),t}();const _a=Ydt;function Xdt(t,e){return qv(t,e).dimensions}function qv(t,e){VN(t)||(t=BN(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=ht(),i=[],o=Zdt(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Hre(o),l=r===t.dimensionsDefine,u=l?Ure(t):Gre(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var f=ht(c),d=new Yne(o),h=0;h<d.length;h++)d[h]=-1;function v(D){var M=d[D];if(M<0){var E=r[D],k=bt(E)?E:{name:E},R=new gw,O=k.name;O!=null&&u.get(O)!=null&&(R.name=R.displayName=O),k.type!=null&&(R.type=k.type),k.displayName!=null&&(R.displayName=k.displayName);var B=i.length;return d[D]=B,R.storeDimIndex=D,i.push(R),R}return i[M]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(D,M){var E=Dn(D).slice();if(E.length===1&&!it(E[0])&&E[0]<0){f.set(M,!1);return}var k=f.set(M,[]);W(E,function(R,O){var B=it(R)?u.get(R):R;B!=null&&B<o&&(k[O]=B,g(v(B),M,O))})});var p=0;W(n,function(D){var M,E,k,R;if(it(D))M=D,R={};else{R=D,M=R.name;var O=R.ordinalMeta;R.ordinalMeta=null,R=Oe({},R),R.ordinalMeta=O,E=R.dimsDef,k=R.otherDims,R.name=R.coordDim=R.coordDimIndex=R.dimsDef=R.otherDims=null}var B=f.get(M);if(B!==!1){if(B=Dn(B),!B.length)for(var $=0;$<(E&&E.length||1);$++){for(;p<o&&v(p).coordDim!=null;)p++;p<o&&B.push(p++)}W(B,function(V,F){var L=v(V);if(l&&R.type!=null&&(L.type=R.type),g(mt(L,R),M,F),L.name==null&&E){var N=E[F];!bt(N)&&(N={name:N}),L.name=L.displayName=N.name,L.defaultTooltip=N.defaultTooltip}k&&mt(L.otherDims,k)})}});function g(D,M,E){Ene.get(M)!=null?D.otherDims[M]=E:(D.coordDim=M,D.coordDimIndex=E,a.set(M,!0))}var y=e.generateCoord,m=e.generateCoordCount,S=m!=null;m=y?m||1:0;var b=y||"value";function x(D){D.name==null&&(D.name=D.coordDim)}if(s)W(i,function(D){x(D)}),i.sort(function(D,M){return D.storeDimIndex-M.storeDimIndex});else for(var _=0;_<o;_++){var C=v(_),T=C.coordDim;T==null&&(C.coordDim=Qdt(b,a,S),C.coordDimIndex=0,(!y||m<=0)&&(C.isExtraCoord=!0),m--),x(C),C.type==null&&(Rne(t,_)===ta.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return qdt(i),new Fre({source:t,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function qdt(t){for(var e=ht(),n=0;n<t.length;n++){var r=t[n],a=r.name,i=e.get(a)||0;i>0&&(r.name=a+(i-1)),i++,e.set(a,i)}}function Zdt(t,e,n,r){var a=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return W(e,function(i){var o;bt(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function Qdt(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 Jdt=function(){function t(e){this.coordSysDims=[],this.axisMap=ht(),this.categoryAxisMap=ht(),this.coordSysName=e}return t}();function eht(t){var e=t.get("coordinateSystem"),n=new Jdt(e),r=tht[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var tht={cartesian2d:function(t,e,n,r){var a=t.getReferringComponents("xAxis",yr).models[0],i=t.getReferringComponents("yAxis",yr).models[0];e.coordSysDims=["x","y"],n.set("x",a),n.set("y",i),kh(a)&&(r.set("x",a),e.firstCategoryDimIndex=0),kh(i)&&(r.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var a=t.getReferringComponents("singleAxis",yr).models[0];e.coordSysDims=["single"],n.set("single",a),kh(a)&&(r.set("single",a),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var a=t.getReferringComponents("polar",yr).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",i),n.set("angle",o),kh(i)&&(r.set("radius",i),e.firstCategoryDimIndex=0),kh(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),kh(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function kh(t){return t.get("type")==="category"}function Wre(t,e,n){n=n||{};var r=n.byIndex,a=n.stackedCoordDimension,i,o,s;nht(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,S){it(m)&&(i[S]=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,v=c.type,p=0;W(i,function(m){m.coordDim===h&&p++});var g={name:f,coordDim:h,coordDimIndex:p,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:p+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),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 nht(t){return!zre(t.schema)}function Kl(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function eV(t,e){return Kl(t,e)?t.getCalculationInfo("stackResultDimension"):e}function rht(t,e){var n=t.get("coordinateSystem"),r=Kv.get(n),a;return e&&e.coordSysDims&&(a=Ie(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 aht(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 il(t,e,n){n=n||{};var r=e.getSourceManager(),a,i=!1;t?(i=!0,a=BN(t)):(a=r.getSource(),i=a.sourceFormat===go);var o=eht(e),s=rht(e,o),l=n.useEncodeDefaulter,u=gt(l)?l:l?kt(kne,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=qv(a,c),d=aht(f.dimensions,n.createInvertedIndices,o),h=i?null:r.getSharedDataStore(f),v=Wre(e,{schema:f,store:h}),p=new _a(f,e);p.setCalculationInfo(v);var g=d!=null&&iht(a)?function(y,m,S,b){return b===d?S:this.defaultDimValueGetter(y,m,S,b)}:null;return p.hasItemOption=!1,p.initData(i?a:h,null,g),p}function iht(t){if(t.sourceFormat===go){var e=oht(t.data||[]);return!$e(Vv(e))}}function oht(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var Kre=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[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}();RC(Kre);const ru=Kre;var sht=0,lht=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++sht}return t.createByAxisModel=function(e){var n=e.option,r=n.data,a=r&&Ie(r,uht);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(!it(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=ht(this.categories))},t}();function uht(t){return bt(t)&&t.value!=null?t.value:t+""}const YR=lht;function XR(t){return t.type==="interval"||t.type==="log"}function cht(t,e,n,r){var a={},i=t[1]-t[0],o=a.interval=iN(i/e,!0);n!=null&&o<n&&(o=a.interval=n),r!=null&&o>r&&(o=a.interval=r);var s=a.intervalPrecision=jre(o),l=a.niceTickExtent=[nr(Math.ceil(t[0]/o)*o,s),nr(Math.floor(t[1]/o)*o,s)];return fht(l,t),a}function VE(t){var e=Math.pow(10,kC(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,nr(n*e)}function jre(t){return Ho(t)+2}function wG(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function fht(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),wG(t,0,e),wG(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function JC(t,e){return t>=e[0]&&t<=e[1]}function eT(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function tT(t,e){return t*(e[1]-e[0])+e[0]}var Yre=function(t){we(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var a=r.getSetting("ordinalMeta");return a||(a=new YR({})),$e(a)&&(a=new YR({categories:Ie(a,function(i){return bt(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:it(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),JC(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),eT(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(tT(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<l;++o){var u=r[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},e.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[r];return a==null?"":a+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(ru);ru.registerClass(Yre);const tV=Yre;var _f=nr,Xre=function(t){we(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 JC(n,this._extent)},e.prototype.normalize=function(n){return eT(n,this._extent)},e.prototype.scale=function(n){return tT(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[0]&&(r[0]=n[0]),n[1]>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=jre(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]<i[0]&&(n?s.push({value:_f(i[0]-r,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=_f(u+r,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(n?s.push({value:_f(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;o<r.length;o++){for(var s=r[o],l=r[o-1],u=0,c=[],f=s.value-l.value,d=f/n;u<n-1;){var h=_f(l.value+(u+1)*d);h>i[0]&&h<i[1]&&c.push(h),u++}a.push(c)}return a},e.prototype.getLabel=function(n,r){if(n==null)return"";var a=r&&r.precision;a==null?a=Ho(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=_f(n.value,a,!0);return DN(i)},e.prototype.calcNiceTicks=function(n,r,a){n=n||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=cht(i,n,r,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1])if(r[0]!==0){var a=Math.abs(r[0]);n.fixMax||(r[1]+=a/2),r[0]-=a/2}else r[1]=1;var i=r[1]-r[0];isFinite(i)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var o=this._interval;n.fixMin||(r[0]=_f(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=_f(Math.ceil(r[1]/o)*o))},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e}(ru);ru.registerClass(Xre);const _c=Xre;var qre=typeof Float32Array<"u",dht=qre?Float32Array:Array;function Bs(t){return $e(t)?qre?new Float32Array(t):t:new dht(t)}var qR="__ec_stack_";function nV(t){return t.get("stack")||qR+t.seriesIndex}function rV(t){return t.dim+t.index}function hht(t){var e=[],n=t.axis,r="axis0";if(n.type==="category"){for(var a=n.getBandWidth(),i=0;i<t.count;i++)e.push(mt({bandWidth:a,axisKey:r,stackId:qR+i},t));for(var o=Jre(e),s=[],i=0;i<t.count;i++){var l=o[r][qR+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Zre(t,e){var n=[];return e.eachSeriesByType(t,function(r){nae(r)&&n.push(r)}),n}function pht(t){var e={};W(t,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),p=0,g=v.count();p<g;++p){var y=v.get(h,p);e[d]?e[d].push(y):e[d]=[y]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}n[r]=i}}return n}function Qre(t){var e=pht(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 v=tt(r.get("barWidth"),s),p=tt(r.get("barMaxWidth"),s),g=tt(r.get("barMinWidth")||(rae(r)?.5:1),s),y=r.get("barGap"),m=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:v,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:rV(i),stackId:nV(r)})}),Jre(n)}function Jre(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 v=r.barCategoryGap;v!=null&&(s.categoryGap=v)});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=tt(s,o),c=tt(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,S=y.minWidth;if(y.width){var b=y.width;m&&(b=Math.min(b,m)),S&&(b=Math.max(b,S)),y.width=b,f-=b+c*b,d--}else{var b=h;m&&m<b&&(b=Math.min(m,f)),S&&S>b&&(b=S),b!==h&&(y.width=b,f-=b+c*b,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,p;W(i,function(y,m){y.width||(y.width=h),p=y,v+=y.width*(1+c)}),p&&(v-=p.width*c);var g=-v/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 vht(t,e,n){if(t&&e){var r=t[rV(e)];return r!=null&&n!=null?r[nV(n)]:r}}function eae(t,e){var n=Zre(t,e),r=Qre(n);W(n,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=nV(a),u=r[rV(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function tae(t){return{seriesType:t,plan:jv(),reset:function(e){if(nae(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=Kl(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=ght(a,i),v=rae(e),p=e.get("barMinHeight")||0,g=c&&n.getDimensionIndex(c),y=n.getLayout("size"),m=n.getLayout("offset");return{progress:function(S,b){for(var x=S.count,_=v&&Bs(x*3),C=v&&l&&Bs(x*3),T=v&&Bs(x),D=r.master.getRect(),M=d?D.width:D.height,E,k=b.getStore(),R=0;(E=S.next())!=null;){var O=k.get(f?g:o,E),B=k.get(s,E),$=h,V=void 0;f&&(V=+O-k.get(o,E));var F=void 0,L=void 0,N=void 0,H=void 0;if(d){var K=r.dataToPoint([O,B]);if(f){var Q=r.dataToPoint([V,B]);$=Q[0]}F=$,L=K[1]+m,N=K[0]-$,H=y,Math.abs(N)<p&&(N=(N<0?-1:1)*p)}else{var K=r.dataToPoint([B,O]);if(f){var Q=r.dataToPoint([B,V]);$=Q[1]}F=K[0]+m,L=$,N=y,H=K[1]-$,Math.abs(H)<p&&(H=(H<=0?-1:1)*p)}v?(_[R]=F,_[R+1]=L,_[R+2]=d?N:H,C&&(C[R]=d?D.x:F,C[R+1]=d?L:D.y,C[R+2]=M),T[E]=E):b.setItemLayout(E,{x:F,y:L,width:N,height:H}),R+=3}v&&b.setLayout({largePoints:_,largeDataIndices:T,largeBackgroundPoints:C,valueAxisHorizontal:d})}}}}}}function nae(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function rae(t){return t.pipelineContext&&t.pipelineContext.large}function ght(t,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var yht=function(t,e,n,r){for(;n<r;){var a=n+r>>>1;t[a][1]<e?n=a+1:r=a}return n},aae=function(t){we(e,t);function e(n){var r=t.call(this,n)||this;return r.type="time",r}return e.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return Zm(n.value,dz[But(Rp(this._minLevelUnit))]||dz.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return $ut(n,r,a,o,i)},e.prototype.getTicks=function(){var n=this._interval,r=this._extent,a=[];if(!n)return a;a.push({value:r[0],level:0});var i=this.getSetting("useUTC"),o=Cht(this._minLevelUnit,this._approxInterval,i,r);return a=a.concat(o),a.push({value:r[1],level:0}),a},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=qi,r[1]+=qi),r[1]===-1/0&&r[0]===1/0){var a=new Date;r[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),r[0]=r[1]-qi}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},e.prototype.calcNiceTicks=function(n,r,a){n=n||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=zS.length,l=Math.min(yht(zS,this._approxInterval,0,s),s-1);this._interval=zS[l][1],this._minLevelUnit=zS[Math.max(l-1,0)][0]},e.prototype.parse=function(n){return on(n)?n:+Oi(n)},e.prototype.contain=function(n){return JC(this.parse(n),this._extent)},e.prototype.normalize=function(n){return eT(this.parse(n),this._extent)},e.prototype.scale=function(n){return tT(n,this._extent)},e.type="time",e}(_c),zS=[["second",TN],["minute",EN],["hour",I0],["quarter-day",I0*6],["half-day",I0*12],["day",qi*1.2],["half-week",qi*3.5],["week",qi*7],["month",qi*31],["quarter",qi*95],["half-year",fz/2],["year",fz]];function mht(t,e,n,r){var a=Oi(e),i=Oi(n),o=function(v){return hz(a,v,r)===hz(i,v,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(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 Sht(t,e){return t/=qi,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function bht(t){var e=30*qi;return t/=e,t>6?6:t>3?3:t>2?2:1}function wht(t){return t/=I0,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function _G(t,e){return t/=e?EN:TN,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function _ht(t){return iN(t,!0)}function xht(t,e,n){var r=new Date(t);switch(Rp(e)){case"year":case"month":r[gne(n)](0);case"day":r[yne(n)](1);case"hour":r[mne(n)](0);case"minute":r[Sne(n)](0);case"second":r[bne(n)](0),r[wne(n)](0)}return r.getTime()}function Cht(t,e,n,r){var a=1e4,i=pne,o=0;function s(M,E,k,R,O,B,$){for(var V=new Date(E),F=E,L=V[R]();F<k&&F<=r[1];)$.push({value:F}),L+=M,V[O](L),F=V.getTime();$.push({value:F,notAdd:!0})}function l(M,E,k){var R=[],O=!E.length;if(!mht(Rp(M),r[0],r[1],n)){O&&(E=[{value:xht(new Date(r[0]),M,n)},{value:r[1]}]);for(var B=0;B<E.length-1;B++){var $=E[B].value,V=E[B+1].value;if($!==V){var F=void 0,L=void 0,N=void 0,H=!1;switch(M){case"year":F=Math.max(1,Math.round(e/qi/365)),L=MN(n),N=Iut(n);break;case"half-year":case"quarter":case"month":F=bht(e),L=Lp(n),N=gne(n);break;case"week":case"half-week":case"day":F=Sht(e),L=GC(n),N=yne(n),H=!0;break;case"half-day":case"quarter-day":case"hour":F=wht(e),L=jy(n),N=mne(n);break;case"minute":F=_G(e,!0),L=UC(n),N=Sne(n);break;case"second":F=_G(e,!1),L=HC(n),N=bne(n);break;case"millisecond":F=_ht(e),L=WC(n),N=wne(n);break}s(F,$,V,L,N,H,R),M==="year"&&k.length>1&&B===0&&k.unshift({value:k[0].value-F})}}for(var B=0;B<R.length;B++)k.push(R[B]);return R}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var v=Rp(i[h]);if(Vut(i[h])){l(i[h],u[u.length-1]||[],c);var p=i[h+1]?Rp(i[h+1]):null;if(v!==p){if(c.length){d=f,c.sort(function(M,E){return M.value-E.value});for(var g=[],y=0;y<c.length;++y){var m=c[y].value;(y===0||c[y-1].value!==m)&&(g.push(c[y]),m>=r[0]&&m<=r[1]&&f++)}var S=(r[1]-r[0])/e;if(f>S*1.5&&d>S/1.5||(u.push(g),f>S||t===i[h]))break}c=[]}}}for(var b=wn(Ie(u,function(M){return wn(M,function(E){return E.value>=r[0]&&E.value<=r[1]&&!E.notAdd})}),function(M){return M.length>0}),x=[],_=b.length-1,h=0;h<b.length;++h)for(var C=b[h],T=0;T<C.length;++T)x.push({value:C[T].value,level:_-h});x.sort(function(M,E){return M.value-E.value});for(var D=[],h=0;h<x.length;++h)(h===0||x[h].value!==x[h-1].value)&&D.push(x[h]);return D}ru.registerClass(aae);const iae=aae;var xG=ru.prototype,z0=_c.prototype,Tht=nr,Eht=Math.floor,Mht=Math.ceil,GS=Math.pow,wo=Math.log,aV=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new _c,n._interval=0,n}return e.prototype.getTicks=function(n){var r=this._originalScale,a=this._extent,i=r.getExtent(),o=z0.getTicks.call(this,n);return Ie(o,function(s){var l=s.value,u=nr(GS(this.base,l));return u=l===a[0]&&this._fixMin?US(u,i[0]):u,u=l===a[1]&&this._fixMax?US(u,i[1]):u,{value:u}},this)},e.prototype.setExtent=function(n,r){var a=wo(this.base);n=wo(Math.max(0,n))/a,r=wo(Math.max(0,r))/a,z0.setExtent.call(this,n,r)},e.prototype.getExtent=function(){var n=this.base,r=xG.getExtent.call(this);r[0]=GS(n,r[0]),r[1]=GS(n,r[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(r[0]=US(r[0],i[0])),this._fixMax&&(r[1]=US(r[1],i[1])),r},e.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=wo(n[0])/wo(r),n[1]=wo(n[1])/wo(r),xG.unionExtent.call(this,n)},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,a=r[1]-r[0];if(!(a===1/0||a<=0)){var i=nte(a),o=n/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[nr(Mht(r[0]/i)*i),nr(Eht(r[1]/i)*i)];this._interval=i,this._niceExtent=s}},e.prototype.calcNiceExtent=function(n){z0.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=wo(n)/wo(this.base),JC(n,this._extent)},e.prototype.normalize=function(n){return n=wo(n)/wo(this.base),eT(n,this._extent)},e.prototype.scale=function(n){return n=tT(n,this._extent),GS(this.base,n)},e.type="log",e}(ru),oae=aV.prototype;oae.getMinorTicks=z0.getMinorTicks;oae.getLabel=z0.getLabel;function US(t,e){return Tht(t,Ho(e))}ru.registerClass(aV);const Dht=aV;var kht=function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var a=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var i=this._modelMinRaw=n.get("min",!0);gt(i)?this._modelMinNum=HS(e,i({min:r[0],max:r[1]})):i!=="dataMin"&&(this._modelMinNum=HS(e,i));var o=this._modelMaxRaw=n.get("max",!0);if(gt(o)?this._modelMaxNum=HS(e,o({min:r[0],max:r[1]})):o!=="dataMax"&&(this._modelMaxNum=HS(e,o)),a)this._axisDataLen=n.getCategories().length;else{var s=n.get("boundaryGap"),l=$e(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[rs(l[0],1),rs(l[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=e?null:r-n||Math.abs(n),s=this._modelMinRaw==="dataMin"?n:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?a?0:NaN:n-i[0]*o),l==null&&(l=e?a?a-1:NaN:r+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=uv(s)||uv(l)||e&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},t.prototype.modifyDataMinMax=function(e,n){this[Lht[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=Rht[e];this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),Rht={min:"_determinedMin",max:"_determinedMax"},Lht={min:"_dataMin",max:"_dataMax"};function sae(t,e,n){var r=t.rawExtentInfo;return r||(r=new kht(t,e,n),t.rawExtentInfo=r,r)}function HS(t,e){return e==null?null:uv(e)?NaN:t.parse(e)}function lae(t,e){var n=t.type,r=sae(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=Zre("bar",o),l=!1;if(W(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=Qre(s),c=Oht(a,i,e,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:r.minFixed,fixMax:r.maxFixed}}function Oht(t,e,n,r){var a=n.axis.getExtent(),i=a[1]-a[0],o=vht(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 zd(t,e){var n=e,r=lae(t,n),a=r.extent,i=n.get("splitNumber");t instanceof Dht&&(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 Jm(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new tV({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new iae({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(ru.getClass(e)||_c)}}function Aht(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function e1(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):it(e)?function(r){return function(a){var i=t.scale.getLabel(a),o=r.replace("{value}",i??"");return o}}(e):gt(e)?function(r){return function(a,i){return n!=null&&(i=a.value-n),r(iV(t,a),i,a.level!=null?{level:a.level}:null)}}(e):function(r){return t.scale.getLabel(r)}}function iV(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function Nht(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,a,i=n.getExtent();n instanceof tV?a=n.count():(r=n.getTicks(),a=r.length);var o=t.getLabelModel(),s=e1(t),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var f=r?r[c]:{value:i[0]+c},d=s(f,c),h=o.getTextRect(d),v=Vht(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function Vht(t,e){var n=e*Math.PI/180,r=t.width,a=t.height,i=r*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),s=new Ft(t.x,t.y,i,o);return s}function oV(t){var e=t.get("interval");return e??"auto"}function uae(t){return t.type==="category"&&oV(t.getLabelModel())===0}function K_(t,e){var n={};return W(t.mapDimensionsAll(e),function(r){n[eV(t,r)]=!0}),Yt(n)}function Bht(t,e,n){e&&W(K_(e,n),function(r){var a=e.getApproximateExtent(r);a[0]<t[0]&&(t[0]=a[0]),a[1]>t[1]&&(t[1]=a[1])})}var Zv=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function $ht(t){return il(null,t)}var Iht={isDimensionStacked:Kl,enableDataStack:Wre,getStackedDimension:eV};function Pht(t,e){var n=e;e instanceof Mn||(n=new Mn(e));var r=Jm(n);return r.setExtent(t[0],t[1]),zd(r,n),r}function Fht(t){sr(t,Zv)}function zht(t,e){return e=e||{},An(t,null,null,e.state!=="normal")}const Ght=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Xdt,createList:$ht,createScale:Pht,createSymbol:fr,createTextStyle:zht,dataStack:Iht,enableHoverEmphasis:nc,getECData:Rt,getLayoutRect:xr,mixinAxisModelCommonMethods:Fht},Symbol.toStringTag,{value:"Module"}));var Uht=1e-8;function CG(t,e){return Math.abs(t-e)<Uht}function Wf(t,e,n){var r=0,a=t[0];if(!a)return!1;for(var i=1;i<t.length;i++){var o=t[i];r+=ml(a[0],a[1],o[0],o[1],e,n),a=o}var s=t[0];return(!CG(a[0],s[0])||!CG(a[1],s[1]))&&(r+=ml(a[0],a[1],s[0],s[1],e,n)),r!==0}var Hht=[];function BE(t,e){for(var n=0;n<t.length;n++)Xr(t[n],t[n],e)}function TG(t,e,n,r){for(var a=0;a<t.length;a++){var i=t[a];r&&(i=r.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(El(e,e,i),Ml(n,n,i))}}function Wht(t){for(var e=0,n=0,r=0,a=t.length,i=t[a-1][0],o=t[a-1][1],s=0;s<a;s++){var l=t[s][0],u=t[s][1],c=i*u-l*o;e+=c,n+=(i+l)*c,r+=(o+u)*c,i=l,o=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var cae=function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t}(),EG=function(){function t(e,n){this.type="polygon",this.exterior=e,this.interiors=n}return t}(),MG=function(){function t(e){this.type="linestring",this.points=e}return t}(),fae=function(t){we(e,t);function e(n,r,a){var i=t.call(this,n)||this;return i.type="geoJSON",i.geometries=r,i._center=a&&[a[0],a[1]],i}return e.prototype.calcCenter=function(){for(var n=this.geometries,r,a=0,i=0;i<n.length;i++){var o=n[i],s=o.exterior,l=s&&s.length;l>a&&(r=o,a=l)}if(r)return Wht(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"?TG(s.exterior,a,i,n):W(s.points,function(l){TG(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<o;i++){var s=a[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Wf(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(Wf(u[c],n[0],n[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=o.width/o.height;a?i||(i=a/s):a=s*i;for(var l=new Ft(n,r,a,i),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(BE(d.exterior,u),W(d.interiors,function(h){BE(h,u)})):W(d.points,function(h){BE(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(n){n==null&&(n=this.name);var r=new e(n,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},e}(cae),Kht=function(t){we(e,t);function e(n,r){var a=t.call(this,n)||this;return a.type="geoSVG",a._elOnlyForCalculate=r,a}return e.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),a=[r.x+r.width/2,r.y+r.height/2],i=zm(Hht),o=n;o&&!o.isGeoSVGGraphicRoot;)Gs(i,o.getLocalTransform(),i),o=o.parent;return Jd(i,i),Xr(a,a,i),a},e}(cae);function jht(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;n==null&&(n=1024);var r=e.features;return W(r,function(a){var i=a.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=dae(s,o,n);break;case"Polygon":$E(s,o,n);break;case"MultiLineString":$E(s,o,n);break;case"MultiPolygon":W(s,function(l,u){return $E(l,o[u],n)})}}),e.UTF8Encoding=!1,e}function $E(t,e,n){for(var r=0;r<t.length;r++)t[r]=dae(t[r],e[r],n)}function dae(t,e,n){for(var r=[],a=e[0],i=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=i,a=s,i=l,r.push([s/n,l/n])}return r}function ZR(t,e){return t=jht(t),Ie(wn(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 EG(o[0],o.slice(1)));break;case"MultiPolygon":W(a.coordinates,function(l){l[0]&&i.push(new EG(l[0],l.slice(1)))});break;case"LineString":i.push(new MG([a.coordinates]));break;case"MultiLineString":i.push(new MG(a.coordinates))}var s=new fae(r[e||"name"],i,r.cp);return s.properties=r,s})}const Yht=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:SR,asc:Mi,getPercentWithPrecision:lst,getPixelPrecision:rN,getPrecision:Ho,getPrecisionSafe:ete,isNumeric:oN,isRadianAroundZero:Fy,linearMap:bn,nice:iN,numericToNumber:Qs,parseDate:Oi,quantile:uw,quantity:nte,quantityExponent:kC,reformIntervals:bR,remRadian:aN,round:nr},Symbol.toStringTag,{value:"Module"})),Xht=Object.freeze(Object.defineProperty({__proto__:null,format:Zm,parse:Oi},Symbol.toStringTag,{value:"Module"})),qht=Object.freeze(Object.defineProperty({__proto__:null,Arc:$C,BezierCurve:jm,BoundingRect:Ft,Circle:as,CompoundPath:IC,Ellipse:BC,Group:Ct,Image:Qr,IncrementalDisplayable:ene,Line:Vr,LinearGradient:$v,Polygon:Za,Polyline:ei,RadialGradient:yN,Rect:nn,Ring:Km,Sector:qa,Text:tn,clipPointsByRect:wN,clipRectByRect:ine,createIcon:Pv,extendPath:rne,extendShape:nne,getShapeClass:PC,getTransform:rc,initProps:Un,makeImage:SN,makePath:Ym,mergePath:xi,registerShape:vo,resizePath:bN,updateProps:cn},Symbol.toStringTag,{value:"Module"})),Zht=Object.freeze(Object.defineProperty({__proto__:null,addCommas:DN,capitalFirst:Gut,encodeHTML:Pa,formatTime:zut,formatTpl:RN,getTextRect:Put,getTooltipMarker:_ne,normalizeCssArray:th,toCamelCase:kN,truncateText:hte},Symbol.toStringTag,{value:"Module"})),Qht=Object.freeze(Object.defineProperty({__proto__:null,bind:st,clone:wt,curry:kt,defaults:mt,each:W,extend:Oe,filter:wn,indexOf:zt,inherits:Y3,isArray:$e,isFunction:gt,isObject:bt,isString:it,map:Ie,merge:$t,reduce:fo},Symbol.toStringTag,{value:"Module"}));var Jy=sn();function Jht(t){return t.type==="category"?tpt(t):rpt(t)}function ept(t,e){return t.type==="category"?npt(t,e):{ticks:Ie(t.scale.getTicks(),function(n){return n.value})}}function tpt(t){var e=t.getLabelModel(),n=hae(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function hae(t,e){var n=pae(t,"labels"),r=oV(e),a=vae(n,r);if(a)return a;var i,o;return gt(r)?i=mae(t,r):(o=r==="auto"?apt(t):r,i=yae(t,o)),gae(n,r,{labels:i,labelCategoryInterval:o})}function npt(t,e){var n=pae(t,"ticks"),r=oV(e),a=vae(n,r);if(a)return a;var i,o;if((!e.get("show")||t.scale.isBlank())&&(i=[]),gt(r))i=mae(t,r,!0);else if(r==="auto"){var s=hae(t,t.getLabelModel());o=s.labelCategoryInterval,i=Ie(s.labels,function(l){return l.tickValue})}else o=r,i=yae(t,o,!0);return gae(n,r,{ticks:i,tickCategoryInterval:o})}function rpt(t){var e=t.scale.getTicks(),n=e1(t);return{labels:Ie(e,function(r,a){return{level:r.level,formattedLabel:n(r,a),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function pae(t,e){return Jy(t)[e]||(Jy(t)[e]=[])}function vae(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function gae(t,e,n){return t.push({key:e,value:n}),n}function apt(t){var e=Jy(t).autoInterval;return e??(Jy(t).autoInterval=t.calculateCategoryInterval())}function ipt(t){var e=opt(t),n=e1(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,a=t.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=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 v=0,p=0,g=Um(n({value:l}),e.font,"center","top");v=g.width*1.3,p=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,p,7)}var y=d/c,m=h/f;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var S=Math.max(0,Math.floor(Math.min(y,m))),b=Jy(t.model),x=t.getExtent(),_=b.lastAutoInterval,C=b.lastTickCount;return _!=null&&C!=null&&Math.abs(_-S)<=1&&Math.abs(C-o)<=1&&_>S&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?S=_:(b.lastTickCount=o,b.lastAutoInterval=S,b.axisExtent0=x[0],b.axisExtent1=x[1]),S}function opt(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 yae(t,e,n){var r=e1(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=uae(t),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==i[0]&&p(i[0]);for(var v=u;v<=i[1];v+=l)p(v);h&&v-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(n?g:{formattedLabel:r(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function mae(t,e,n){var r=t.scale,a=e1(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 DG=[0,1],spt=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 rN(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(),kG(r,a.count())),bn(e,DG,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(r=r.slice(),kG(r,a.count()));var i=bn(e,r,DG,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=ept(this,n),a=r.ticks,i=Ie(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return lpt(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=Ie(r,function(i){return Ie(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},t.prototype.getViewLabels=function(){return Jht(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 ipt(this)},t}();function kG(t,e){var n=t[1]-t[0],r=e,a=n/r/2;t[0]+=a,t[1]-=a}function lpt(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,v){return h=nr(h),v=nr(v),f?h>v:h<v}}const mo=spt;function upt(t){var e=Qt.extend(t);return Qt.registerClass(e),e}function cpt(t){var e=jn.extend(t);return jn.registerClass(e),e}function fpt(t){var e=In.extend(t);return In.registerClass(e),e}function dpt(t){var e=kn.extend(t);return kn.registerClass(e),e}var Og=Math.PI*2,xf=Js.CMD,hpt=["top","right","bottom","left"];function ppt(t,e,n,r,a){var i=n.width,o=n.height;switch(t){case"top":r.set(n.x+i/2,n.y-e),a.set(0,-1);break;case"bottom":r.set(n.x+i/2,n.y+o+e),a.set(0,1);break;case"left":r.set(n.x-e,n.y+o/2),a.set(-1,0);break;case"right":r.set(n.x+i+e,n.y+o/2),a.set(1,0);break}}function vpt(t,e,n,r,a,i,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*n+t,f=s*n+e;if(Math.abs(r-a)%Og<1e-4)return l[0]=c,l[1]=f,u-n;if(i){var d=r;r=Wo(a),a=Wo(d)}else r=Wo(r),a=Wo(a);r>a&&(a+=Og);var h=Math.atan2(s,o);if(h<0&&(h+=Og),h>=r&&h<=a||h+Og>=r&&h+Og<=a)return l[0]=c,l[1]=f,u-n;var v=n*Math.cos(r)+t,p=n*Math.sin(r)+e,g=n*Math.cos(a)+t,y=n*Math.sin(a)+e,m=(v-o)*(v-o)+(p-s)*(p-s),S=(g-o)*(g-o)+(y-s)*(y-s);return m<S?(l[0]=v,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(S))}function j_(t,e,n,r,a,i,o,s){var l=a-t,u=i-e,c=n-t,f=r-e,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var p=o[0]=t+v*c,g=o[1]=e+v*f;return Math.sqrt((p-a)*(p-a)+(g-i)*(g-i))}function Sae(t,e,n,r,a,i,o){n<0&&(t=t+n,n=-n),r<0&&(e=e+r,r=-r);var s=t+n,l=e+r,u=o[0]=Math.min(Math.max(a,t),s),c=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-a)*(u-a)+(c-i)*(c-i))}var Ro=[];function gpt(t,e,n){var r=Sae(e.x,e.y,e.width,e.height,t.x,t.y,Ro);return n.set(Ro[0],Ro[1]),r}function ypt(t,e,n){for(var r=0,a=0,i=0,o=0,s,l,u=1/0,c=e.data,f=t.x,d=t.y,h=0;h<c.length;){var v=c[h++];h===1&&(r=c[h],a=c[h+1],i=r,o=a);var p=u;switch(v){case xf.M:i=c[h++],o=c[h++],r=i,a=o;break;case xf.L:p=j_(r,a,c[h],c[h+1],f,d,Ro,!0),r=c[h++],a=c[h++];break;case xf.C:p=Nee(r,a,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,Ro),r=c[h++],a=c[h++];break;case xf.Q:p=Bee(r,a,c[h++],c[h++],c[h],c[h+1],f,d,Ro),r=c[h++],a=c[h++];break;case xf.A:var g=c[h++],y=c[h++],m=c[h++],S=c[h++],b=c[h++],x=c[h++];h+=1;var _=!!(1-c[h++]);s=Math.cos(b)*m+g,l=Math.sin(b)*S+y,h<=1&&(i=s,o=l);var C=(f-g)*S/m+g;p=vpt(g,y,S,b,b+x,_,C,d,Ro),r=Math.cos(b+x)*m+g,a=Math.sin(b+x)*S+y;break;case xf.R:i=r=c[h++],o=a=c[h++];var T=c[h++],D=c[h++];p=Sae(i,o,T,D,f,d,Ro);break;case xf.Z:p=j_(r,a,i,o,f,d,Ro,!0),r=i,a=o;break}p<u&&(u=p,n.set(Ro[0],Ro[1]))}return u}var Ko=new It,Bn=new It,ur=new It,$s=new It,Os=new It;function RG(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var a=t.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=a.candidates||hpt,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=a.anchor,c=t.getComputedTransform(),f=c&&Jd([],c),d=e.get("length2")||0;u&&ur.copy(u);for(var h=0;h<o.length;h++){var v=o[h];ppt(v,0,s,Ko,$s),It.scaleAndAdd(Bn,Ko,$s,d),Bn.transform(f);var p=t.getBoundingRect(),g=u?u.distance(Bn):t instanceof Wt?ypt(Bn,t.path,ur):gpt(Bn,p,ur);g<l&&(l=g,Bn.transform(c),ur.transform(c),ur.toArray(i[0]),Bn.toArray(i[1]),Ko.toArray(i[2]))}bae(i,e.get("minTurnAngle")),n.setShape({points:i})}}}var Y_=[],$a=new It;function bae(t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ko.fromArray(t[0]),Bn.fromArray(t[1]),ur.fromArray(t[2]),It.sub($s,Ko,Bn),It.sub(Os,ur,Bn);var n=$s.len(),r=Os.len();if(!(n<.001||r<.001)){$s.scale(1/n),Os.scale(1/r);var a=$s.dot(Os),i=Math.cos(e);if(i<a){var o=j_(Bn.x,Bn.y,ur.x,ur.y,Ko.x,Ko.y,Y_,!1);$a.fromArray(Y_),$a.scaleAndAdd(Os,o/Math.tan(Math.PI-e));var s=ur.x!==Bn.x?($a.x-Bn.x)/(ur.x-Bn.x):($a.y-Bn.y)/(ur.y-Bn.y);if(isNaN(s))return;s<0?It.copy($a,Bn):s>1&&It.copy($a,ur),$a.toArray(t[1])}}}}function mpt(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,Ko.fromArray(t[0]),Bn.fromArray(t[1]),ur.fromArray(t[2]),It.sub($s,Bn,Ko),It.sub(Os,ur,Bn);var r=$s.len(),a=Os.len();if(!(r<.001||a<.001)){$s.scale(1/r),Os.scale(1/a);var i=$s.dot(e),o=Math.cos(n);if(i<o){var s=j_(Bn.x,Bn.y,ur.x,ur.y,Ko.x,Ko.y,Y_,!1);$a.fromArray(Y_);var l=Math.PI/2,u=Math.acos(Os.dot(e)),c=l+u-n;if(c>=l)It.copy($a,ur);else{$a.scaleAndAdd(Os,s/Math.tan(Math.PI/2-c));var f=ur.x!==Bn.x?($a.x-Bn.x)/(ur.x-Bn.x):($a.y-Bn.y)/(ur.y-Bn.y);if(isNaN(f))return;f<0?It.copy($a,Bn):f>1&&It.copy($a,ur)}$a.toArray(t[1])}}}}function LG(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 Spt(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=Tl(r[0],r[1]),i=Tl(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=R0([],r[1],r[0],o/a),l=R0([],r[1],r[2],o/i),u=R0([],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;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function sV(t,e,n){var r=t.getTextGuideLine(),a=t.getTextContent();if(!a){r&&t.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=a.ignore,l=0;l<Uy.length;l++){var u=Uy[l],c=e[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:Pt(a.states[u]&&a.states[u].ignore,s);if(h||!Pt(d,o)){var v=f?r:r&&r.states[u];v&&(v.ignore=!0);continue}r||(r=new ei,t.setTextGuideLine(r),!f&&(s||!o)&&LG(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),LG(r,!1,u,c)}}if(r){mt(r.style,n),r.style.fill=null;var p=i.get("showAbove"),g=t.textGuideLineConfig=t.textGuideLineConfig||{};g.showAbove=p||!1,r.buildPath=Spt}}function lV(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Xa.length;r++){var a=Xa[r];n[a]=t.getModel([a,e])}return n}function wae(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var a=r.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new R_(o,i):null;e.push({label:a,labelLine:r.labelLine,rect:u,localRect:o,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:i})}}return e}function _ae(t,e,n,r,a,i){var o=t.length;if(o<2)return;t.sort(function(T,D){return T.rect[e]-D.rect[e]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=t[f],h=d.rect;l=h[e]-s,l<0&&(h[e]-=l,d.label[e]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=h[e]+h[n]}c>0&&i&&x(-c/o,0,o);var p=t[0],g=t[o-1],y,m;S(),y<0&&_(-y,.8),m<0&&_(m,.8),S(),b(y,m,1),b(m,y,-1),S(),y<0&&C(-y),m<0&&C(m);function S(){y=p.rect[e]-r,m=a-g.rect[e]-g.rect[n]}function b(T,D,M){if(T<0){var E=Math.min(D,-T);if(E>0){x(E*M,0,o);var k=E+T;k<0&&_(-k*M,1)}else _(-T*M,1)}}function x(T,D,M){T!==0&&(u=!0);for(var E=D;E<M;E++){var k=t[E],R=k.rect;R[e]+=T,k.label[e]+=T}}function _(T,D){for(var M=[],E=0,k=1;k<o;k++){var R=t[k-1].rect,O=Math.max(t[k].rect[e]-R[e]-R[n],0);M.push(O),E+=O}if(E){var B=Math.min(Math.abs(T)/E,D);if(T>0)for(var k=0;k<o-1;k++){var $=M[k]*B;x($,0,k+1)}else for(var k=o-1;k>0;k--){var $=M[k-1]*B;x(-$,k,o)}}}function C(T){var D=T<0?-1:1;T=Math.abs(T);for(var M=Math.ceil(T/(o-1)),E=0;E<o-1;E++)if(D>0?x(M,0,E+1):x(-M,o-E-1,o),T-=M,T<=0)return}return u}function bpt(t,e,n,r){return _ae(t,"x","width",e,n,r)}function xae(t,e,n,r){return _ae(t,"y","height",e,n,r)}function Cae(t){var e=[];t.sort(function(p,g){return g.priority-p.priority});var n=new Ft(0,0,0,0);function r(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var a=0;a<t.length;a++){var i=t[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;n.copy(i.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=i.obb,d=!1,h=0;h<e.length;h++){var v=e[h];if(n.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new R_(v.localRect,v.transform)),f||(f=new R_(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),e.push(i))}}function wpt(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function _pt(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:wpt(r&&r.shape.points)}}var OG=["align","verticalAlign","width","height","fontSize"],Oa=new Dl,IE=sn(),xpt=sn();function WS(t,e,n){for(var r=0;r<n.length;r++){var a=n[r];e[a]!=null&&(t[a]=e[a])}}var KS=["x","y","rotation"],Cpt=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,n,r,a,i){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),c=a.getBoundingRect().plain();Ft.applyTransform(c,c,u),u?Oa.setLocalTransform(u):(Oa.x=Oa.y=Oa.rotation=Oa.originX=Oa.originY=0,Oa.scaleX=Oa.scaleY=1),Oa.rotation=Wo(Oa.rotation);var f=a.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();Ft.applyTransform(d,d,h)}var v=d&&f.getTextGuideLine();this._labelList.push({label:a,labelLine:v,seriesModel:r,dataIndex:e,dataType:n,layoutOption:i,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:v&&v.ignore,x:Oa.x,y:Oa.y,scaleX:Oa.scaleX,scaleY:Oa.scaleY,rotation:Oa.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var n=this;this._chartViewList.push(e);var r=e.__model,a=r.get("labelLayout");(gt(a)||Yt(a).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=Rt(i);o&&!o.disableLabelLayout&&n._addLabel(s.dataIndex,s.dataType,r,o,a)})},t.prototype.updateLayoutConfig=function(e){var n=e.getWidth(),r=e.getHeight();function a(S,b){return function(){RG(S,b)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;gt(o.layoutOption)?c=o.layoutOption(_pt(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=tt(c.x,n),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=tt(c.y,r),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var v=IE(s);v.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<OG.length;p++){var g=OG[p];s.setStyle(g,c[g]!=null?c[g]:u.style[g])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",a(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var n=e.getWidth(),r=e.getHeight(),a=wae(this._labelList),i=wn(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=wn(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});bpt(i,0,n),xae(o,0,r);var s=wn(a,function(l){return l.layoutOption.hideOverlap});Cae(s)},t.prototype.processLabelsOverall=function(){var e=this;W(this._chartViewList,function(n){var r=n.__model,a=n.ignoreLabelLineUpdate,i=r.isAnimationEnabled();n.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=IE(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,r),i&&e._animateLabels(o,r)})})},t.prototype._updateLabelLine=function(e,n){var r=e.getTextContent(),a=Rt(e),i=a.dataIndex;if(r&&i!=null){var o=n.getData(a.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");sV(e,lV(s),l),RG(e,f)}},t.prototype._animateLabels=function(e,n){var r=e.getTextContent(),a=e.getTextGuideLine();if(r&&(e.forceLabelAnimation||!r.ignore&&!r.invisible&&!e.disableLabelAnimation&&!kp(e))){var i=IE(r),o=i.oldLayout,s=Rt(e),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},c=n.getData(s.dataType);if(o){r.attr(o);var d=e.prevStates;d&&(zt(d,"select")>=0&&r.attr(i.oldLayoutSelect),zt(d,"emphasis")>=0&&r.attr(i.oldLayoutEmphasis)),cn(r,u,n,l)}else if(r.attr(u),!zv(r).valueAnimation){var f=Pt(r.style.opacity,1);r.style.opacity=0,Un(r,{style:{opacity:f}},n,l)}if(i.oldLayout=u,r.states.select){var h=i.oldLayoutSelect={};WS(h,u,KS),WS(h,r.states.select,KS)}if(r.states.emphasis){var v=i.oldLayoutEmphasis={};WS(v,u,KS),WS(v,r.states.emphasis,KS)}cne(r,l,c,n,n)}if(a&&!a.ignore&&!a.invisible){var i=xpt(a),o=i.oldLayout,p={points:a.shape.points};o?(a.attr({shape:o}),cn(a,{shape:p},n)):(a.setShape(p),a.style.strokePercent=0,Un(a,{style:{strokePercent:1}},n)),i.oldLayout=p}},t}();const Tpt=Cpt;var PE=sn();function Ept(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){var a=PE(n).labelManager;a||(a=PE(n).labelManager=new Tpt),a.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,n,r){var a=PE(n).labelManager;r.updatedSeries.forEach(function(i){a.addLabelsOfSeries(n.getViewOfSeriesModel(i))}),a.updateLayoutConfig(n),a.layout(n),a.processLabelsOverall()})}var FE=Math.sin,zE=Math.cos,Tae=Math.PI,Cf=Math.PI*2,Mpt=180/Tae,Dpt=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=Wu(f-Cf)||(c?u>=Cf:-u>=Cf),h=u>0?u%Cf:u%Cf+Cf,v=!1;d?v=!0:Wu(f)?v=!1:v=h>=Tae==!!c;var p=e+r*zE(o),g=n+a*FE(o);this._start&&this._add("M",p,g);var y=Math.round(i*Mpt);if(d){var m=1/this._p,S=(c?1:-1)*(Cf-m);this._add("A",r,a,y,1,+c,e+r*zE(o+S),n+a*FE(o+S)),m>.01&&this._add("A",r,a,y,0,+c,p,g)}else{var b=e+r*zE(s),x=n+a*FE(s);this._add("A",r,a,y,+v,+c,b,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<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*f)/f)}this._d.push(e+c.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}();const Eae=Dpt;var G0="none",kpt=Math.round;function Rpt(t){var e=t.fill;return e!=null&&e!==G0}function Lpt(t){var e=t.stroke;return e!=null&&e!==G0}var QR=["lineCap","miterLimit","lineJoin"],Opt=Ie(QR,function(t){return"stroke-"+t.toLowerCase()});function Apt(t,e,n,r){var a=e.opacity==null?1:e.opacity;if(n instanceof Qr){t("opacity",a);return}if(Rpt(e)){var i=Py(e.fill);t("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*a:i.opacity*a;(r||o<1)&&t("fill-opacity",o)}else t("fill",G0);if(Lpt(e)){var s=Py(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,f=e.strokeFirst;if((r||u!==1)&&t("stroke-width",u),(r||f)&&t("paint-order",f?"stroke":"fill"),(r||c<1)&&t("stroke-opacity",c),e.lineDash){var d=UN(n),h=d[0],v=d[1];h&&(v=kpt(v||0),t("stroke-dasharray",h.join(",")),(v||r)&&t("stroke-dashoffset",v))}else r&&t("stroke-dasharray",G0);for(var p=0;p<QR.length;p++){var g=QR[p];if(r||e[g]!==D_[g]){var y=e[g]||D_[g];y&&t(Opt[p],y)}}}else r&&t("stroke",G0)}var Mae="http://www.w3.org/2000/svg",Dae="http://www.w3.org/1999/xlink",Npt="http://www.w3.org/2000/xmlns/",Vpt="http://www.w3.org/XML/1998/namespace";function kae(t){return document.createElementNS(Mae,t)}function Br(t,e,n,r,a){return{tag:t,attrs:n||{},children:r,text:a,key:e}}function Bpt(t,e){var n=[];if(e)for(var r in e){var a=e[r],i=r;a!==!1&&(a!==!0&&a!=null&&(i+='="'+a+'"'),n.push(i))}return"<"+t+" "+n.join(" ")+">"}function $pt(t){return"</"+t+">"}function uV(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 Bpt(o,s)+(o!=="style"?Pa(l):l||"")+(i?""+n+Ie(i,function(u){return r(u)}).join(n)+n:"")+$pt(o)}return r(t)}function Ipt(t,e,n){n=n||{};var r=n.newline?`
- `:"",a=" {"+r,i=r+"}",o=Ie(Yt(t),function(l){return l+a+Ie(Yt(t[l]),function(u){return u+":"+t[l][u]+";"}).join(r)+i}).join(r),s=Ie(Yt(e),function(l){return"@keyframes "+l+a+Ie(Yt(e[l]),function(u){return u+a+Ie(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?"":["<![CDATA[",o,s,"]]>"].join(r)}function JR(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function AG(t,e,n,r){return Br("svg","root",{width:t,height:e,xmlns:Mae,"xmlns:xlink":Dae,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+t+" "+e:!1},n)}var NG={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"},Lf="transform-origin";function Ppt(t,e,n){var r=Oe({},t.shape);Oe(r,e),t.buildPath(n,r);var a=new Eae;return a.reset(Uee(t)),n.rebuildPath(a,1),a.generateStr(),a.getStr()}function Fpt(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[Lf]=n+"px "+r+"px")}var zpt={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Rae(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function Gpt(t,e,n){var r=t.shape.paths,a={},i,o;if(W(r,function(l){var u=JR(n.zrId);u.animation=!0,nT(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Yt(c),h=d.length;if(h){o=d[h-1];var v=c[o];for(var p in v){var g=v[p];a[p]=a[p]||{d:""},a[p].d+=g.d||""}for(var y in f){var m=f[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=Rae(a,n);return i.replace(o,s)}}function VG(t){return it(t)?NG[t]?"cubic-bezier("+NG[t]+")":Q3(t)?t:"":""}function nT(t,e,n,r){var a=t.animators,i=a.length,o=[];if(t instanceof IC){var s=Gpt(t,e,n);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var c=a[u],f=[c.getMaxTime()/1e3+"s"],d=VG(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var v=f.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(c)}function p(m){var S=m[1],b=S.length,x={},_={},C={},T="animation-timing-function";function D(Z,ee,ce){for(var ue=Z.getTracks(),Y=Z.getMaxTime(),te=0;te<ue.length;te++){var oe=ue[te];if(oe.needsAnimate()){var Se=oe.keyframes,fe=oe.propName;if(ce&&(fe=ce(fe)),fe)for(var ne=0;ne<Se.length;ne++){var Ee=Se[ne],_e=Math.round(Ee.time/Y*100)+"%",me=VG(Ee.easing),Te=Ee.rawValue;(it(Te)||on(Te))&&(ee[_e]=ee[_e]||{},ee[_e][fe]=Ee.rawValue,me&&(ee[_e][T]=me))}}}}for(var M=0;M<b;M++){var E=S[M],k=E.targetName;k?k==="shape"&&D(E,_):!r&&D(E,x)}for(var R in x){var O={};Yee(O,t),Oe(O,x[R]);var B=Hee(O),$=x[R][T];C[R]=B?{transform:B}:{},Fpt(C[R],O),$&&(C[R][T]=$)}var V,F=!0;for(var R in _){C[R]=C[R]||{};var L=!V,$=_[R][T];L&&(V=new Js);var N=V.len();V.reset(),C[R].d=Ppt(t,_[R],V);var H=V.len();if(!L&&N!==H){F=!1;break}$&&(C[R][T]=$)}if(!F)for(var R in C)delete C[R].d;if(!r)for(var M=0;M<b;M++){var E=S[M],k=E.targetName;k==="style"&&D(E,C,function(ue){return zpt[ue]})}for(var K=Yt(C),Q=!0,ie,M=1;M<K.length;M++){var be=K[M-1],le=K[M];if(C[be][Lf]!==C[le][Lf]){Q=!1;break}ie=C[be][Lf]}if(Q&&ie){for(var R in C)C[R][Lf]&&delete C[R][Lf];e[Lf]=ie}if(wn(K,function(Z){return Yt(C[Z]).length>0}).length){var J=Rae(C,n);return J+" "+m[0]+" both"}}for(var g in l){var s=p(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 em=Math.round;function Lae(t){return t&&it(t.src)}function Oae(t){return t&>(t.toDataURL)}function cV(t,e,n,r){Apt(function(a,i){var o=a==="fill"||a==="stroke";o&&Gee(i)?Nae(e,t,a,r):o&&eN(i)?Vae(n,t,a,r):t[a]=i},e,n,!1),Xpt(n,t,r)}function BG(t){return Wu(t[0]-1)&&Wu(t[1])&&Wu(t[2])&&Wu(t[3]-1)}function Upt(t){return Wu(t[4])&&Wu(t[5])}function fV(t,e,n){if(e&&!(Upt(e)&&BG(e))){var r=n?10:1e4;t.transform=BG(e)?"translate("+em(e[4]*r)/r+" "+em(e[5]*r)/r+")":_ot(e)}}function $G(t,e,n){for(var r=t.points,a=[],i=0;i<r.length;i++)a.push(em(r[i][0]*n)/n),a.push(em(r[i][1]*n)/n);e.points=a.join(" ")}function IG(t){return!t.smooth}function Hpt(t){var e=Ie(t,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,a){for(var i=0;i<e.length;i++){var o=e[i],s=n[o[0]];s!=null&&(r[o[1]]=em(s*a)/a)}}}var Wpt={circle:[Hpt(["cx","cy","r"])],polyline:[$G,IG],polygon:[$G,IG]};function Kpt(t){for(var e=t.animators,n=0;n<e.length;n++)if(e[n].targetName==="shape")return!0;return!1}function Aae(t,e){var n=t.style,r=t.shape,a=Wpt[t.type],i={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Uee(t)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](r))&&!(o&&Kpt(t))&&!(l<1)){s=t.type;var c=Math.pow(10,u);a[0](r,i,c)}else{var f=!t.path||t.shapeChanged();t.path||t.createPathProxy();var d=t.path;f&&(d.beginPath(),t.buildPath(d,t.shape),t.pathUpdated());var h=d.getVersion(),v=t,p=v.__svgPathBuilder;(v.__svgPathVersion!==h||!p||l!==v.__svgPathStrokePercent)&&(p||(p=v.__svgPathBuilder=new Eae),p.reset(u),d.rebuildPath(p,l),p.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),i.d=p.getStr()}return fV(i,t.transform),cV(i,n,t,e),e.animation&&nT(t,i,e),Br(s,t.id+"",i)}function jpt(t,e){var n=t.style,r=n.image;if(r&&!it(r)&&(Lae(r)?r=r.src:Oae(r)&&(r=r.toDataURL())),!!r){var a=n.x||0,i=n.y||0,o=n.width,s=n.height,l={href:r,width:o,height:s};return a&&(l.x=a),i&&(l.y=i),fV(l,t.transform),cV(l,n,t,e),e.animation&&nT(t,l,e),Br("image",t.id+"",l)}}function Ypt(t,e){var n=t.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var a=n.font||mc,i=n.x||0,o=Cot(n.y||0,DC(a),n.textBaseline),s=xot[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Mte(n)){var u="",c=n.fontStyle,f=Ete(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||fee,h=n.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+a;return r.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),fV(l,t.transform),cV(l,n,t,e),e.animation&&nT(t,l,e),Br("text",t.id+"",l,void 0,r)}}function PG(t,e){if(t instanceof Wt)return Aae(t,e);if(t instanceof Qr)return jpt(t,e);if(t instanceof Gy)return Ypt(t,e)}function Xpt(t,e,n){var r=t.style;if(Tot(r)){var a=Eot(t),i=n.shadowCache,o=i[a];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,f=r.shadowOffsetY||0,d=r.shadowBlur,h=Py(r.shadowColor),v=h.opacity,p=h.color,g=d/2/l,y=d/2/u,m=g+" "+y;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=Br("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Br("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:m,"flood-color":p,"flood-opacity":v})]),i[a]=o}e.filter=MC(o)}}function Nae(t,e,n,r){var a=t[n],i,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Fee(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(zee(a))i="radialGradient",o.cx=Pt(a.x,.5),o.cy=Pt(a.y,.5),o.r=Pt(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=uR(s[u].offset)*100+"%",d=s[u].color,h=Py(d),v=h.color,p=h.opacity,g={offset:f};g["stop-color"]=v,p<1&&(g["stop-opacity"]=p),l.push(Br("stop",u+"",g))}var y=Br(i,"",o,l),m=uV(y),S=r.gradientCache,b=S[m];b||(b=r.zrId+"-g"+r.gradientIdx++,S[m]=b,o.id=b,r.defs[b]=Br(i,b,o,l)),e[n]=MC(b)}function Vae(t,e,n,r){var a=t.style[n],i=t.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(Pee(a)){var d=a.imageWidth,h=a.imageHeight,v=void 0,p=a.image;if(it(p)?v=p:Lae(p)?v=p.src:Oae(p)&&(v=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Ea(d,g),Ea(h,g)}else if(d==null||h==null){var y=function(M,E){if(M){var k=M.elm,R=d||E.width,O=h||E.height;M.tag==="pattern"&&(u?(O=1,R/=i.width):c&&(R=1,O/=i.height)),M.attrs.width=R,M.attrs.height=O,k&&(k.setAttribute("width",R),k.setAttribute("height",O))}},m=cN(v,null,t,function(M){l||y(_,M),y(f,M)});m&&m.width&&m.height&&(d=d||m.width,h=h||m.height)}f=Br("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else a.svgElement&&(f=wt(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(f){var S,b;l?S=b=1:u?(b=1,S=o.width/i.width):c?(S=1,b=o.height/i.height):o.patternUnits="userSpaceOnUse",S!=null&&!isNaN(S)&&(o.width=S),b!=null&&!isNaN(b)&&(o.height=b);var x=Hee(a);x&&(o.patternTransform=x);var _=Br("pattern","",o,[f]),C=uV(_),T=r.patternCache,D=T[C];D||(D=r.zrId+"-p"+r.patternIdx++,T[C]=D,o.id=D,_=r.defs[D]=Br("pattern",D,o,[f])),e[n]=MC(D)}}function qpt(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]=Br("clipPath",i,o,[Aae(t,n)])}e["clip-path"]=MC(i)}function FG(t){return document.createTextNode(t)}function Kf(t,e,n){t.insertBefore(e,n)}function zG(t,e){t.removeChild(e)}function GG(t,e){t.appendChild(e)}function Bae(t){return t.parentNode}function $ae(t){return t.nextSibling}function GE(t,e){t.textContent=e}var UG=58,Zpt=120,Qpt=Br("","");function eL(t){return t===void 0}function xs(t){return t!==void 0}function Jpt(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 i0(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function tm(t){var e,n=t.children,r=t.tag;if(xs(r)){var a=t.elm=kae(r);if(dV(Qpt,t),$e(n))for(e=0;e<n.length;++e){var i=n[e];i!=null&&GG(a,tm(i))}else xs(t.text)&&!bt(t.text)&&GG(a,FG(t.text))}else t.elm=FG(t.text);return t.elm}function Iae(t,e,n,r,a){for(;r<=a;++r){var i=n[r];i!=null&&Kf(t,tm(i),e)}}function X_(t,e,n,r){for(;n<=r;++n){var a=e[n];if(a!=null)if(xs(a.tag)){var i=Bae(a.elm);zG(i,a.elm)}else zG(t,a.elm)}}function dV(t,e){var n,r=e.elm,a=t&&t.attrs||{},i=e.attrs||{};if(a!==i){for(n in i){var o=i[n],s=a[n];s!==o&&(o===!0?r.setAttribute(n,""):o===!1?r.removeAttribute(n):n.charCodeAt(0)!==Zpt?r.setAttribute(n,o):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(Npt,n,o):n.charCodeAt(3)===UG?r.setAttributeNS(Vpt,n,o):n.charCodeAt(5)===UG?r.setAttributeNS(Dae,n,o):r.setAttribute(n,o))}for(n in a)n in i||r.removeAttribute(n)}}function evt(t,e,n){for(var r=0,a=0,i=e.length-1,o=e[0],s=e[i],l=n.length-1,u=n[0],c=n[l],f,d,h,v;r<=i&&a<=l;)o==null?o=e[++r]:s==null?s=e[--i]:u==null?u=n[++a]:c==null?c=n[--l]:i0(o,u)?(qh(o,u),o=e[++r],u=n[++a]):i0(s,c)?(qh(s,c),s=e[--i],c=n[--l]):i0(o,c)?(qh(o,c),Kf(t,o.elm,$ae(s.elm)),o=e[++r],c=n[--l]):i0(s,u)?(qh(s,u),Kf(t,s.elm,o.elm),s=e[--i],u=n[++a]):(eL(f)&&(f=Jpt(e,r,i)),d=f[u.key],eL(d)?Kf(t,tm(u),o.elm):(h=e[d],h.tag!==u.tag?Kf(t,tm(u),o.elm):(qh(h,u),e[d]=void 0,Kf(t,h.elm,o.elm))),u=n[++a]);(r<=i||a<=l)&&(r>i?(v=n[l+1]==null?null:n[l+1].elm,Iae(t,v,n,a,l)):X_(t,e,r,i))}function qh(t,e){var n=e.elm=t.elm,r=t.children,a=e.children;t!==e&&(dV(t,e),eL(e.text)?xs(r)&&xs(a)?r!==a&&evt(n,r,a):xs(a)?(xs(t.text)&&GE(n,""),Iae(n,null,a,0,a.length-1)):xs(r)?X_(n,r,0,r.length-1):xs(t.text)&&GE(n,""):t.text!==e.text&&(xs(r)&&X_(n,r,0,r.length-1),GE(n,e.text)))}function tvt(t,e){if(i0(t,e))qh(t,e);else{var n=t.elm,r=Bae(n);tm(e),r!==null&&(Kf(r,e.elm,$ae(n)),X_(r,[t],0,0))}return e}var nvt=0,rvt=function(){function t(e,n,r){if(this.type="svg",this.refreshHover=HG(),this.configLayer=HG(),this.storage=n,this._opts=r=Oe({},r),this.root=e,this._id="zr"+nvt++,this._oldVNode=AG(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=kae("svg");dV(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",tvt(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return PG(e,JR(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var n=this.storage.getDisplayList(!0),r=this._width,a=this._height,i=JR(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress;var o=[],s=this._bgVNode=avt(r,a,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=Br("g","main",{},[]);this._paintList(n,i,l?l.children:o),l&&o.push(l);var u=Ie(Yt(i.defs),function(d){return i.defs[d]});if(u.length&&o.push(Br("defs","defs",{},u)),e.animation){var c=Ipt(i.cssNodes,i.cssAnims,{newline:!0});if(c){var f=Br("style","stl",{},[],c);o.push(f)}}return AG(r,a,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},uV(this.renderToVNode({animation:Pt(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Pt(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<a;c++){var f=e[c];if(!f.invisible){var d=f.__clipPaths,h=d&&d.length||0,v=l&&l.length||0,p=void 0;for(p=Math.max(h-1,v-1);p>=0&&!(d&&l&&d[p]===l[p]);p--);for(var g=v-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y<h;y++){var m={};qpt(d[y],m,n);var S=Br("g","clip-g-"+u++,m,[]);(s?s.children:r).push(S),i[o++]=S,s=S}l=d;var b=PG(f,n);b&&(s?s.children:r).push(b)}}},t.prototype.resize=function(e,n){var r=this._opts,a=this.root,i=this._viewport;if(e!=null&&(r.width=e),n!=null&&(r.height=n),a&&i&&(i.style.display="none",e=cp(a,0,r),n=cp(a,1,r),i.style.display=""),this._width!==e||this._height!==n){if(this._width=e,this._height=n,i){var o=i.style;o.width=e+"px",o.height=n+"px"}if(eN(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",n));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",n))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var n=this.renderToString(),r="data:image/svg+xml;";return e?(n=Dot(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},t}();function HG(t){return function(){}}function avt(t,e,n,r){var a;if(n&&n!=="none")if(a=Br("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),Gee(n))Nae({fill:n},a.attrs,"fill",r);else if(eN(n))Vae({style:{fill:n},dirty:ir,getBoundingRect:function(){return{width:t,height:e}}},a.attrs,"fill",r);else{var i=Py(n),o=i.color,s=i.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}const ivt=rvt;function ovt(t){t.registerPainter("svg",ivt)}function WG(t,e,n){var r=ts.createCanvas(),a=e.getWidth(),i=e.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*n,r.height=i*n,r}var svt=function(t){we(e,t);function e(n,r,a){var i=t.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||E_,typeof n=="string"?o=WG(n,r,a):bt(n)&&(o=n,n=o.id),i.id=n,i.dom=o;var s=o.style;return s&&(X3(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=r,i.dpr=a,i}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=WG("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},e.prototype.createRepaintRects=function(n,r,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new Ft(0,0,0,0);function c(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var S=new Ft(0,0,0,0);S.copy(m),o.push(S)}else{for(var b=!1,x=1/0,_=0,C=0;C<o.length;++C){var T=o[C];if(T.intersect(m)){var D=new Ft(0,0,0,0);D.copy(T),D.union(m),o[C]=D,b=!0;break}else if(l){u.copy(m),u.union(T);var M=m.width*m.height,E=T.width*T.height,k=u.width*u.height,R=k-M-E;R<x&&(x=R,_=C)}}if(l&&(o[_].union(m),b=!0),!b){var S=new Ft(0,0,0,0);S.copy(m),o.push(S)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=n[f];if(d){var h=d.shouldBePainted(a,i,!0,!0),v=d.__isRendered&&(d.__dirty&_i||!h)?d.getPrevPaintRect():null;v&&c(v);var p=h&&(d.__dirty&_i||!d.__isRendered)?d.getPaintRect():null;p&&c(p)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],h=d.shouldBePainted(a,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var y=f+1;y<o.length;)o[f].intersect(o[y])?(g=!0,o[f].union(o[y]),o.splice(y,1)):y++;f++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=n+"px",o.height=r+"px"),i.width=n*a,i.height=r*a,s&&(s.width=n*a,s.height=r*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(n,r,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;r=r||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var h=this.domBack;function v(p,g,y,m){if(o.clearRect(p,g,y,m),r&&r!=="transparent"){var S=void 0;if(Pm(r)){var b=r.global||r.__width===y&&r.__height===m;S=b&&r.__canvasGradient||UR(o,r,{x:0,y:0,width:y,height:m}),r.__canvasGradient=S,r.__width=y,r.__height=m}else gee(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,S=HR(o,r,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}}));o.save(),o.fillStyle=S||r,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,p,g,y,m),o.restore())}!a||u?v(0,0,s,l):a.length&&W(a,function(p){v(p.x*f,p.y*f,p.width*f,p.height*f)})},e}(po);const UE=svt;var KG=1e5,Tf=314159,jS=.01,lvt=.001;function uvt(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function cvt(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var fvt=function(){function t(e,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=Oe({},r||{}),this.dpr=r.devicePixelRatio||E_,this._singleCanvas=i,this.root=e;var o=e.style;o&&(X3(e),e.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=e,f=c.width,d=c.height;r.width!=null&&(f=r.width),r.height!=null&&(d=r.height),this.dpr=r.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new UE(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Tf]=h,h.zlevel=Tf,s.push(Tf),this._domRoot=e}else{this._width=cp(e,0,r),this._height=cp(e,1,r);var u=this._domRoot=cvt(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var n=e.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<n;o++){var s=e[o];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(KG)),i||(i=r.ctx,i.save()),ud(i,s,a,o===n-1))}i&&i.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(KG)},t.prototype.paintOne=function(e,n){HN(e,n)},t.prototype._paintList=function(e,n,r,a){if(this._redrawId===a){r=r||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,n,r),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;iR(function(){l._paintList(e,n,r,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Tf).ctx,n=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,n,r),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&i.push(u)}for(var c=!0,f=!1,d=function(p){var g=i[p],y=g.ctx,m=o&&g.createRepaintRects(e,n,h._width,h._height),S=r?g.__startIndex:g.__drawIndex,b=!r&&g.incremental&&Date.now,x=b&&Date.now(),_=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,_,m);else if(S===g.__startIndex){var C=e[S];(!C.incremental||!C.notClear||r)&&g.clear(!1,_,m)}S===-1&&(console.error("For some unknown reason. drawIndex is -1"),S=g.__startIndex);var T,D=function(R){var O={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(T=S;T<g.__endIndex;T++){var B=e[T];if(B.__inHover&&(f=!0),a._doPaintEl(B,g,o,R,O,T===g.__endIndex-1),b){var $=Date.now()-x;if($>15)break}}O.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=h.dpr,E=0;E<m.length;++E){var k=m[E];y.save(),y.beginPath(),y.rect(k.x*M,k.y*M,k.width*M,k.height*M),y.clip(),D(k),y.restore()}else y.save(),D(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<i.length;v++)d(v);return an.wxa&&W(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:c,needsRefreshHover:f}},t.prototype._doPaintEl=function(e,n,r,a,i,o){var s=n.ctx;if(r){var l=e.getPaintRect();(!a||l&&l.intersect(a))&&(ud(s,e,i,o),e.setPrevPaintRect(l))}else ud(s,e,i,o)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Tf);var r=this._layers[e];return r||(r=new UE("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?$t(r,this._layerConfig[e],!0):this._layerConfig[e-jS]&&$t(r,this._layerConfig[e-jS],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(!r[e]&&uvt(n)){if(i>0&&e>a[0]){for(l=0;l<i-1&&!(a[l]<e&&a[l+1]>e);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;a<r.length;a++){var i=r[a];e.call(n,this._layers[i],i)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a],o=this._layers[i];o.__builtin__&&e.call(n,o,i)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var i=r[a],o=this._layers[i];o.__builtin__||e.call(n,o,i)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function n(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var a=e[r];if(a.zlevel!==e[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var a=e[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+lvt,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?jS:0),this._needsManuallyCompositing),c.__builtin__||wC("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&_i&&!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]?$t(r[e],n,!0):r[e]=n;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===e||i===e+jS){var o=this._layers[i];$t(o,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,a=n[e];a&&(a.dom.parentNode.removeChild(a.dom),delete n[e],r.splice(zt(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,i=this.root;if(e!=null&&(a.width=e),n!=null&&(a.height=n),e=cp(i,0,a),n=cp(i,1,a),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,n);this.refresh(!0)}this._width=e,this._height=n}else{if(e==null||n==null)return;this._width=e,this._height=n,this.getLayer(Tf).resize(e,n)}return this},t.prototype.clearLayer=function(e){var n=this._layers[e];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Tf].dom;var n=new UE("image",this,e.pixelRatio||this.dpr);n.initContext(),n.clear(!1,e.backgroundColor||this._backgroundColor);var r=n.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,i=n.dom.height;this.eachLayer(function(f){f.__builtin__?r.drawImage(f.dom,0,0,a,i):f.renderToCanvas&&(r.save(),f.renderToCanvas(r),r.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];ud(r,c,o,l===u-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const dvt=fvt;function hvt(t){t.registerPainter("canvas",dvt)}var pvt=function(t){we(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){return il(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(n){var r=new Ct,a=fr("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(a),a.setStyle(n.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=n.itemHeight*.8,u=fr(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);r.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?o:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),r},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}(In);const vvt=pvt;function hv(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var a=fv(t,e,n[0]);return a!=null?a+"":null}else if(r){for(var i=[],o=0;o<n.length;o++)i.push(fv(t,e,n[o]));return i.join(" ")}}function Pae(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!$e(e))return e+"";for(var r=[],a=0;a<n.length;a++){var i=t.getDimensionIndex(n[a]);i>=0&&r.push(e[i])}return r.join(" ")}var gvt=function(t){we(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=fr(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=yvt,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(){Ul(this.childAt(0))},e.prototype.downplay=function(){Hl(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):cn(d,h,s,r),is(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,Un(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,v,p,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,v=i.emphasisDisabled),!i||n.hasItemOption){var m=i&&i.itemModel?i.itemModel:n.getItemModel(r),S=m.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),f=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),d=S.get("focus"),h=S.get("blurScope"),v=S.get("disabled"),p=Pr(m),g=S.getShallow("scale"),y=m.getShallow("cursor")}var b=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var x=nh(n.getItemVisual(r,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var _=n.getItemVisual(r,"style"),C=_.fill;if(s instanceof Qr){var T=s.style;s.useStyle(Oe({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},_))}else s.__isEmptyBrush?s.useStyle(Oe({},_)):s.useStyle(_),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=n.getItemVisual(r,"liftZ"),M=this._z2;D!=null?M==null&&(this._z2=s.z2,s.z2+=D):M!=null&&(s.z2=M,this._z2=null);var E=o&&o.useNameLabel;ca(s,p,{labelFetcher:l,labelDataIndex:r,defaultText:k,inheritColor:C,defaultOpacity:_.opacity});function k(B){return E?n.getName(B):hv(n,B)}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 O=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;R.scaleX=this._sizeX*O,R.scaleY=this._sizeY*O,this.setSymbolScale(1),ar(this,d,h,v)},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&&bc(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();bc(i,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},e.getSymbolSize=function(n,r){return Xv(n.getItemVisual(r,"symbolSize"))},e}(Ct);function yvt(t,e){this.parent.drift(t,e)}const t1=gvt;function HE(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 jG(t){return t!=null&&!bt(t)&&(t={isIgnore:t}),t||{}}function YG(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:Pr(e),cursorStyle:e.get("cursor")}}var mvt=function(){function t(e){this.group=new Ct,this._SymbolCtor=e||t1}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=jG(n);var r=this.group,a=e.hostModel,i=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=YG(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(HE(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),v=c(f);if(!HE(e,v,f,n)){r.remove(h);return}var p=e.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)r.remove(h),h=new o(e,f,l,u),h.setPosition(v);else{h.updateData(e,f,l,u);var y={x:v[0],y:v[1]};s?h.attr(y):cn(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=YG(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=jG(r);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=n.getItemLayout(i);if(HE(n,o,i,r)){var s=new this._SymbolCtor(n,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),n.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){Ic(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var n=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(a){a.fadeOut(function(){n.remove(a)},r.hostModel)}):n.removeAll()},t}();const n1=mvt;function Fae(t,e,n){var r=t.getBaseAxis(),a=t.getOtherAxis(r),i=Svt(a,n),o=r.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=Ie(t.dimensions,function(v){return e.mapDimension(v)}),d=!1,h=e.getCalculationInfo("stackResultDimension");return Kl(e,f[0])&&(d=!0,f[0]=h),Kl(e,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Svt(t,e){var n=0,r=t.scale.getExtent();return e==="start"?n=r[0]:e==="end"?n=r[1]:on(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function zae(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 bvt(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 wvt(t,e,n,r,a,i,o,s){for(var l=bvt(t,e),u=[],c=[],f=[],d=[],h=[],v=[],p=[],g=Fae(a,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],S=0;S<l.length;S++){var b=l[S],x=!0,_=void 0,C=void 0;switch(b.cmd){case"=":_=b.idx*2,C=b.idx1*2;var T=y[_],D=y[_+1],M=m[C],E=m[C+1];(isNaN(T)||isNaN(D))&&(T=M,D=E),u.push(T,D),c.push(M,E),f.push(n[_],n[_+1]),d.push(r[C],r[C+1]),p.push(e.getRawIndex(b.idx1));break;case"+":var k=b.idx,R=g.dataDimsForPoint,O=a.dataToPoint([e.get(R[0],k),e.get(R[1],k)]);C=k*2,u.push(O[0],O[1]),c.push(m[C],m[C+1]);var B=zae(g,a,e,k);f.push(B[0],B[1]),d.push(r[C],r[C+1]),p.push(e.getRawIndex(k));break;case"-":x=!1}x&&(h.push(b),v.push(v.length))}v.sort(function(be,le){return p[be]-p[le]});for(var $=u.length,V=Bs($),F=Bs($),L=Bs($),N=Bs($),H=[],S=0;S<v.length;S++){var K=v[S],Q=S*2,ie=K*2;V[Q]=u[ie],V[Q+1]=u[ie+1],F[Q]=c[ie],F[Q+1]=c[ie+1],L[Q]=f[ie],L[Q+1]=f[ie+1],N[Q]=d[ie],N[Q+1]=d[ie+1],H[S]=h[K]}return{current:V,next:F,stackedOnCurrent:L,stackedOnNext:N,status:H}}var mu=Math.min,Su=Math.max;function Ed(t,e){return isNaN(t)||isNaN(e)}function tL(t,e,n,r,a,i,o,s,l){for(var u,c,f,d,h,v,p=n,g=0;g<r;g++){var y=e[p*2],m=e[p*2+1];if(p>=a||p<0)break;if(Ed(y,m)){if(l){p+=i;continue}break}if(p===n)t[i>0?"moveTo":"lineTo"](y,m),f=y,d=m;else{var S=y-u,b=m-c;if(S*S+b*b<.5){p+=i;continue}if(o>0){for(var x=p+i,_=e[x*2],C=e[x*2+1];_===y&&C===m&&g<r;)g++,x+=i,p+=i,_=e[x*2],C=e[x*2+1],y=e[p*2],m=e[p*2+1],S=y-u,b=m-c;var T=g+1;if(l)for(;Ed(_,C)&&T<r;)T++,x+=i,_=e[x*2],C=e[x*2+1];var D=.5,M=0,E=0,k=void 0,R=void 0;if(T>=r||Ed(_,C))h=y,v=m;else{M=_-u,E=C-c;var O=y-u,B=_-y,$=m-c,V=C-m,F=void 0,L=void 0;if(s==="x"){F=Math.abs(O),L=Math.abs(B);var N=M>0?1:-1;h=y-N*F*o,v=m,k=y+N*L*o,R=m}else if(s==="y"){F=Math.abs($),L=Math.abs(V);var H=E>0?1:-1;h=y,v=m-H*F*o,k=y,R=m+H*L*o}else F=Math.sqrt(O*O+$*$),L=Math.sqrt(B*B+V*V),D=L/(L+F),h=y-M*o*(1-D),v=m-E*o*(1-D),k=y+M*o*D,R=m+E*o*D,k=mu(k,Su(_,y)),R=mu(R,Su(C,m)),k=Su(k,mu(_,y)),R=Su(R,mu(C,m)),M=k-y,E=R-m,h=y-M*F/L,v=m-E*F/L,h=mu(h,Su(u,y)),v=mu(v,Su(c,m)),h=Su(h,mu(u,y)),v=Su(v,mu(c,m)),M=y-h,E=m-v,k=y+M*L/F,R=m+E*L/F}t.bezierCurveTo(f,d,h,v,y,m),f=k,d=R}else t.lineTo(y,m)}u=y,c=m,p+=i}return g}var Gae=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),_vt=function(t){we(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 Gae},e.prototype.buildPath=function(n,r){var a=r.points,i=0,o=a.length/2;if(r.connectNulls){for(;o>0&&Ed(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Ed(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=tL(n,a,i,o,o,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Js.CMD,s,l,u=r==="x",c=[],f=0;f<i.length;){var d=i[f++],h=void 0,v=void 0,p=void 0,g=void 0,y=void 0,m=void 0,S=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],v=i[f++],S=u?(n-s)/(h-s):(n-l)/(v-l),S<=1&&S>=0){var b=u?(v-l)*S+l:(h-s)*S+s;return u?[n,b]:[b,n]}s=h,l=v;break;case o.C:h=i[f++],v=i[f++],p=i[f++],g=i[f++],y=i[f++],m=i[f++];var x=u?x_(s,h,p,y,n,c):x_(l,v,g,m,n,c);if(x>0)for(var _=0;_<x;_++){var C=c[_];if(C<=1&&C>=0){var b=u?Ar(l,v,g,m,C):Ar(s,h,p,y,C);return u?[n,b]:[b,n]}}s=y,l=m;break}}},e}(Wt),xvt=function(t){we(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Gae),Uae=function(t){we(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 xvt},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&&Ed(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Ed(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=tL(n,a,o,s,s,1,r.smooth,l,r.connectNulls);tL(n,i,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,n.closePath()}},e}(Wt);function Hae(t,e,n,r,a){var i=t.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=n.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,o=Math.floor(o),l=Math.round(l);var f=new nn({shape:{x:o,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var p=gt(a)?function(g){a(g,f)}:null;Un(f,{shape:{width:l,height:u,x:o,y:s}},n,null,r,p)}return f}function Wae(t,e,n){var r=t.getArea(),a=nr(r.r0,1),i=nr(r.r,1),o=new qa({shape:{cx:nr(t.cx,1),cy:nr(t.cy,1),r0:a,r:i,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=r.startAngle:o.shape.r=a,Un(o,{shape:{endAngle:r.endAngle,r:i}},n)}return o}function rT(t,e,n,r,a){if(t){if(t.type==="polar")return Wae(t,e,n);if(t.type==="cartesian2d")return Hae(t,e,n,r,a)}else return null;return null}function rh(t,e){return t.type===e}function XG(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function qG(t){for(var e=1/0,n=1/0,r=-1/0,a=-1/0,i=0;i<t.length;){var o=t[i++],s=t[i++];isNaN(o)||(e=Math.min(o,e),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),a=Math.max(s,a))}return[[e,n],[r,a]]}function ZG(t,e){var n=qG(t),r=n[0],a=n[1],i=qG(e),o=i[0],s=i[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function QG(t){return on(t)?t:t?.5:0}function Cvt(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),a=Bs(r*2),i=0;i<r;i++){var o=zae(n,t,e,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function bu(t,e,n,r){var a=e.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(r){for(s=0;s<t.length;s+=2)!isNaN(t[s])&&!isNaN(t[s+1])&&f.push(t[s],t[s+1]);t=f}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],o.push(u[0],u[1]),n){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var d=(u[i]+c[i])/2,h=[];l[i]=h[i]=d,l[1-i]=u[1-i],h[1-i]=c[1-i],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(t[s++],t[s++]),o}function Tvt(t,e){var n=[],r=t.length,a,i;function o(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),p=J3(v,[c.color,f.color]);return{coord:d,color:p}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)a=l;else if(u>e){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 Evt(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=Ie(i.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=Tvt(u,a==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,p=d[0].coord-v,g=d[h-1].coord+v,y=g-p;if(y<.001)return"transparent";W(d,function(S){S.offset=(S.coord-p)/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 $v(0,0,0,0,d,!0);return m[a]=p,m[a+"2"]=g,m}}}function Mvt(t,e,n){var r=t.get("showAllSymbol"),a=r==="auto";if(!(r&&!a)){var i=n.getAxesByScale("ordinal")[0];if(i&&!(a&&Dvt(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 Dvt(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;o<a;o+=i)if(t1.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>r)return!1;return!0}function kvt(t,e){return isNaN(t)||isNaN(e)}function Rvt(t){for(var e=t.length/2;e>0&&kvt(t[e*2-2],t[e*2-1]);e--);return e-1}function JG(t,e){return[t[e*2],t[e*2+1]]}function Lvt(t,e,n){for(var r=t.length/2,a=n==="x"?0:1,i,o,s=0,l=-1,u=0;u<r;u++)if(o=t[u*2+a],!(isNaN(o)||isNaN(t[u*2+1-a]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function Kae(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Xa.length;e++)if(t.get([Xa[e],"endLabel","show"]))return!0;return!1}function WE(t,e,n,r){if(rh(e,"cartesian2d")){var a=r.getModel("endLabel"),i=a.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=Kae(r)?function(h,v){t._endLabelOnDuring(h,v,o,s,i,a,e)}:null,u=e.getBaseAxis().isHorizontal(),c=Hae(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 Wae(e,n,r)}function Ovt(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 Avt=function(t){we(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=new Ct,r=new n1;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,v=this._symbolDraw,p=this._polyline,g=this._polygon,y=this._lineGroup,m=!r.ssr&&n.isAnimationEnabled(),S=!c.isEmpty(),b=c.get("origin"),x=Fae(o,l,b),_=S&&Cvt(o,l,x),C=n.get("showSymbol"),T=n.get("connectNulls"),D=C&&!d&&Mvt(n,l,o),M=this._data;M&&M.eachItemGraphicEl(function(le,J){le.__temp&&(s.remove(le),M.setItemGraphicEl(J,null))}),C||v.remove(),s.add(y);var E=d?!1:n.get("step"),k;o&&o.getArea&&n.get("clip",!0)&&(k=o.getArea(),k.width!=null?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var R=Evt(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(p&&h.type===o.type&&E===this._step))C&&v.updateData(l,{isIgnore:D,clipShape:k,disableAnimation:!0,getSymbolPoint:function(le){return[f[le*2],f[le*2+1]]}}),m&&this._initSymbolLabelAnimation(l,o,k),E&&(f=bu(f,o,E,T),_&&(_=bu(_,o,E,T))),p=this._newPolyline(f),S?g=this._newPolygon(f,_):g&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,Fd(R)),y.setClipPath(WE(this,o,!0,n));else{S&&!g?g=this._newPolygon(f,_):g&&!S&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,Fd(R));var O=y.getClipPath();if(O){var B=WE(this,o,!1,n);Un(O,{shape:B.shape},n)}else y.setClipPath(WE(this,o,!0,n));C&&v.updateData(l,{isIgnore:D,clipShape:k,disableAnimation:!0,getSymbolPoint:function(le){return[f[le*2],f[le*2+1]]}}),(!XG(this._stackedOnPoints,_)||!XG(this._points,f))&&(m?this._doUpdateAnimation(l,_,o,a,E,b,T):(E&&(f=bu(f,o,E,T),_&&(_=bu(_,o,E,T))),p.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:_})))}var $=n.getModel("emphasis"),V=$.get("focus"),F=$.get("blurScope"),L=$.get("disabled");if(p.useStyle(mt(u.getLineStyle(),{fill:"none",stroke:R,lineJoin:"bevel"})),ua(p,n,"lineStyle"),p.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var N=p.getState("emphasis").style;N.lineWidth=+p.style.lineWidth+1}Rt(p).seriesIndex=n.seriesIndex,ar(p,V,F,L);var H=QG(n.get("smooth")),K=n.get("smoothMonotone");if(p.setShape({smooth:H,smoothMonotone:K,connectNulls:T}),g){var Q=l.getCalculationInfo("stackedOnSeries"),ie=0;g.useStyle(mt(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(ie=QG(Q.get("smooth"))),g.setShape({smooth:H,stackedOnSmooth:ie,smoothMonotone:K,connectNulls:T}),ua(g,n,"areaStyle"),Rt(g).seriesIndex=n.seriesIndex,ar(g,V,F,L)}var be=function(le){i._changePolyState(le)};l.eachItemGraphicEl(function(le){le&&(le.onHoverStateChange=be)}),this._polyline.onHoverStateChange=be,this._data=l,this._coordSys=o,this._stackedOnPoints=_,this._points=f,this._step=E,this._valueOrigin=b,n.get("triggerLineEvent")&&(this.packEventData(n,p),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=$d(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 t1(o,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else kn.prototype.highlight.call(this,n,r,a,i)},e.prototype.downplay=function(n,r,a,i){var o=n.getData(),s=$d(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 kn.prototype.downplay.call(this,n,r,a,i)},e.prototype._changePolyState=function(n){var r=this._polygon;k_(this._polyline,n),r&&k_(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new _vt({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 Uae({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");gt(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=gt(f)?f(null):f;n.eachItemGraphicEl(function(h,v){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,S=void 0;if(a)if(o){var b=a,x=r.pointToCoord(g);i?(y=b.startAngle,m=b.endAngle,S=-x[1]/180*Math.PI):(y=b.r0,m=b.r,S=x[0])}else{var _=a;i?(y=_.x,m=_.x+_.width,S=h.x):(y=_.y+_.height,m=_.y,S=h.y)}var C=m===y?0:(S-y)/(m-y);l&&(C=1-C);var T=gt(f)?f(v):c*C+d,D=p.getSymbolPath(),M=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,a){var i=n.getModel("endLabel");if(Kae(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 tn({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=Rvt(l);c>=0&&(ca(s,Pr(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Pae(o,h):hv(o,f)},enableTextSetter:!0},Ovt(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"),v=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,S=r.shape,b=m?y?S.x:S.y+S.height:y?S.x+S.width:S.y,x=(y?p:0)*(m?-1:1),_=(y?0:-p)*(m?-1:1),C=y?"x":"y",T=Lvt(f,b,C),D=T.range,M=D[1]-D[0],E=void 0;if(M>=1){if(M>1&&!h){var k=JG(f,D[0]);u.attr({x:k[0]+x,y:k[1]+_}),o&&(E=d.getRawValue(D[0]))}else{var k=c.getPointOn(b,C);k&&u.attr({x:k[0]+x,y:k[1]+_});var R=d.getRawValue(D[0]),O=d.getRawValue(D[1]);o&&(E=cte(a,v,R,O,T.t))}i.lastFrameIndex=D[0]}else{var B=n===1||i.lastFrameIndex>0?D[0]:0,k=JG(f,B);o&&(E=d.getRawValue(B)),u.attr({x:k[0]+x,y:k[1]+_})}if(o){var $=zv(u);typeof $.setLabelText=="function"&&$.setLabelText(E)}}},e.prototype._doUpdateAnimation=function(n,r,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=wvt(this._data,n,this._stackedOnPoints,r,this._coordSys,a,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,p=d.next,g=d.stackedOnNext;if(o&&(h=bu(d.current,a,o,l),v=bu(d.stackedOnCurrent,a,o,l),p=bu(d.next,a,o,l),g=bu(d.stackedOnNext,a,o,l)),ZG(h,p)>3e3||c&&ZG(v,g)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var y={shape:{points:p}};d.current!==h&&(y.shape.__points=d.next),u.stopAnimation(),cn(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),cn(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],S=d.status,b=0;b<S.length;b++){var x=S[b].cmd;if(x==="="){var _=n.getItemGraphicEl(S[b].idx1);_&&m.push({el:_,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var C=u.shape.__points,T=0;T<m.length;T++){var D=m[T].el,M=m[T].ptIdx*2;D.x=C[M],D.y=C[M+1],D.markRedraw()}})},e.prototype.remove=function(n){var r=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(r.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(kn);const Nvt=Avt;function r1(t,e){return{seriesType:t,plan:jv(),reset:function(n){var r=n.getData(),a=n.coordinateSystem,i=n.pipelineContext,o=e||i.large;if(a){var s=Ie(a.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");Kl(r,s[0])&&(s[0]=u),Kl(r,s[1])&&(s[1]=u);var c=r.getStore(),f=r.getDimensionIndex(s[0]),d=r.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var p=h.end-h.start,g=o&&Bs(p*l),y=[],m=[],S=h.start,b=0;S<h.end;S++){var x=void 0;if(l===1){var _=c.get(f,S);x=a.dataToPoint(_,null,m)}else y[0]=c.get(f,S),y[1]=c.get(d,S),x=a.dataToPoint(y,null,m);o?(g[b++]=x[0],g[b++]=x[1]):v.setItemLayout(S,x.slice())}o&&v.setLayout("points",g)}}}}}}var Vvt={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return n===0?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Bvt=function(t){return Math.round(t.length/2)};function jae(t){return{seriesType:t,reset:function(e,n,r){var a=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){i==="lttb"&&e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var v=void 0;it(i)?v=Vvt[i]:gt(i)&&(v=i),v&&e.setData(a.downSample(a.mapDimension(u.dim),1/h,v,Bvt))}}}}}function $vt(t){t.registerChartView(Nvt),t.registerSeriesModel(vvt),t.registerLayout(r1("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,jae("line"))}var Yae=function(t){we(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 il(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 v=d.getTicksCoords(),p=o[h],g=r[h]==="x1"||r[h]==="y1";if(g&&(p+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[g?1:0]);return}for(var y=void 0,m=void 0,S=1,b=0;b<v.length;b++){var x=v[b].coord,_=b===v.length-1?v[b-1].tickValue+S:v[b].tickValue;if(_===p){m=x;break}else if(_<p)y=x;else if(y!=null&&_>p){m=(x+y)/2;break}b===1&&(S=_-v[0].tickValue)}m==null&&(y?y&&(m=v[v.length-1].coord):m=v[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}(In);In.registerClass(Yae);const q_=Yae;var Ivt=function(t){we(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 il(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=Pc(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 Pvt=Ivt;var Fvt=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}(),zvt=function(t){we(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new Fvt},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,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var p=Math.cos(c),g=Math.sin(c),y=Math.cos(f),m=Math.sin(f);v?(n.moveTo(p*o+a,g*o+i),n.arc(p*u+a,g*u+i,l,-Math.PI+c,c,!d)):n.moveTo(p*s+a,g*s+i),n.arc(a,i,s,c,f,!d),n.arc(y*u+a,m*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&n.arc(a,i,o,f,c,d)},e}(Wt);const Z_=zvt;function Gvt(t,e){e=e||{};var n=e.isRoundCap;return function(r,a,i){var o=a.position;if(!o||o instanceof Array)return M_(r,a,i);var s=t(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,v=(d+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=n?Math.abs(d-h)/2:0,S=Math.cos,b=Math.sin,x=c+d*S(p),_=f+d*b(p),C="left",T="top";switch(s){case"startArc":x=c+(h-l)*S(y),_=f+(h-l)*b(y),C="center",T="top";break;case"insideStartArc":x=c+(h+l)*S(y),_=f+(h+l)*b(y),C="center",T="bottom";break;case"startAngle":x=c+v*S(p)+YS(p,l+m,!1),_=f+v*b(p)+XS(p,l+m,!1),C="right",T="middle";break;case"insideStartAngle":x=c+v*S(p)+YS(p,-l+m,!1),_=f+v*b(p)+XS(p,-l+m,!1),C="left",T="middle";break;case"middle":x=c+v*S(y),_=f+v*b(y),C="center",T="middle";break;case"endArc":x=c+(d+l)*S(y),_=f+(d+l)*b(y),C="center",T="bottom";break;case"insideEndArc":x=c+(d-l)*S(y),_=f+(d-l)*b(y),C="center",T="top";break;case"endAngle":x=c+v*S(g)+YS(g,l+m,!0),_=f+v*b(g)+XS(g,l+m,!0),C="left",T="middle";break;case"insideEndAngle":x=c+v*S(g)+YS(g,-l+m,!0),_=f+v*b(g)+XS(g,-l+m,!0),C="right",T="middle";break;default:return M_(r,a,i)}return r=r||{},r.x=x,r.y=_,r.align=C,r.verticalAlign=T,r}}function Uvt(t,e,n,r){if(on(r)){t.setTextConfig({rotation:r});return}else if($e(e)){t.setTextConfig({rotation:0});return}var a=t.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),t.setTextConfig({rotation:c})}function YS(t,e,n){return e*Math.sin(t)*(n?-1:1)}function XS(t,e,n){return e*Math.cos(t)*(n?1:-1)}function cd(t,e,n){var r=t.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;$e(r)||(r=[r,r,r,r]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Ie(r,function(i){return rs(i,a)})}}var KE=Math.max,jE=Math.min;function Hvt(t,e){var n=t.getArea&&t.getArea();if(rh(t,"cartesian2d")){var r=t.getBaseAxis();if(r.type!=="category"||!r.onBand){var a=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=a,n.width+=a*2):(n.y-=a,n.height+=a*2)}}return n}var Wvt=function(t){we(e,t);function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return e.prototype.render=function(n,r,a,i){this._model=n,this._removeOnRenderedListener(a),this._updateDrawMode(n);var o=n.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,a):this._renderNormal(n,r,a,i))},e.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},e.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},e.prototype.eachRendered=function(n){Ic(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,r,a,i){var o=this.group,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=n.isAnimationEnabled()?n:null,h=Kvt(n,u);h&&this._enableRealtimeSort(h,s,a);var v=n.get("clip",!0)||h,p=Hvt(u,s);o.removeClipPath();var g=n.get("roundCap",!0),y=n.get("showBackground",!0),m=n.getModel("backgroundStyle"),S=m.get("borderRadius")||0,b=[],x=this._backgroundEls,_=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function T(E){var k=qS[u.type](s,E),R=Jvt(u,f,k);return R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",S):R.setShape("cornerRadius",S),b[E]=R,R}s.diff(l).add(function(E){var k=s.getItemModel(E),R=qS[u.type](s,E,k);if(y&&T(E),!(!s.hasValue(E)||!aU[u.type](R))){var O=!1;v&&(O=eU[u.type](p,R));var B=tU[u.type](n,s,E,R,f,d,c.model,!1,g);h&&(B.forceLabelAnimation=!0),iU(B,s,E,k,R,n,f,u.type==="polar"),_?B.attr({shape:R}):h?nU(h,d,B,R,E,f,!1,!1):Un(B,{shape:R},n,E),s.setItemGraphicEl(E,B),o.add(B),B.ignore=O}}).update(function(E,k){var R=s.getItemModel(E),O=qS[u.type](s,E,R);if(y){var B=void 0;x.length===0?B=T(k):(B=x[k],B.useStyle(m.getItemStyle()),u.type==="cartesian2d"?B.setShape("r",S):B.setShape("cornerRadius",S),b[E]=B);var $=qS[u.type](s,E),V=qae(f,$,u);cn(B,{shape:V},d,E)}var F=l.getItemGraphicEl(k);if(!s.hasValue(E)||!aU[u.type](O)){o.remove(F);return}var L=!1;if(v&&(L=eU[u.type](p,O),L&&o.remove(F)),F?is(F):F=tU[u.type](n,s,E,O,f,d,c.model,!!F,g),h&&(F.forceLabelAnimation=!0),C){var N=F.getTextContent();if(N){var H=zv(N);H.prevValue!=null&&(H.prevValue=H.value)}}else iU(F,s,E,R,O,n,f,u.type==="polar");_?F.attr({shape:O}):h?nU(h,d,F,O,E,f,!0,C):cn(F,{shape:O},n,E,null),s.setItemGraphicEl(E,F),F.ignore=L,o.add(F)}).remove(function(E){var k=l.getItemGraphicEl(E);k&&Wy(k,n,E)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Ct);D.removeAll();for(var M=0;M<b.length;++M)D.add(b[M]);o.add(D),this._backgroundEls=b,this._data=s},e.prototype._renderLarge=function(n,r,a){this._clear(),sU(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),sU(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&rT(n.coordinateSystem,!1,n),a=this.group;r?a.setClipPath(r):a.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,a){var i=this;if(r.count()){var o=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,a),this._isFirstFrame=!1;else{var s=function(l){var u=r.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(r,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,a){var i=[];return n.each(n.mapDimension(r.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Ie(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,a){for(var i=a.scale,o=n.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=n.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:r(n.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},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){Wy(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}(kn),eU={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=KE(e.x,t.x),s=jE(e.x+e.width,a),l=KE(e.y,t.y),u=jE(e.y+e.height,i),c=s<o,f=u<l;return e.x=c&&o>a?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=jE(e.r,t.r),i=KE(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}},tU={cartesian2d:function(t,e,n,r,a,i,o,s,l){var u=new nn({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_:qa,c=new u({shape:r,z2:1});c.name="item";var f=Xae(a);if(c.calculateTextPosition=Gvt(f,{isRoundCap:u===Z_}),i){var d=c.shape,h=a?"r":"endAngle",v={};d[h]=a?r.r0:r.startAngle,v[h]=r[h],(s?cn:Un)(c,{shape:v},i)}return c}};function Kvt(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 nU(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?cn:Un)(n,{shape:l},e,a,null);var c=e?t.baseAxis.model:null;(o?cn:Un)(n,{shape:u},c,a)}function rU(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var jvt=["x","y","width","height"],Yvt=["cx","cy","r","startAngle","endAngle"],aU={cartesian2d:function(t){return!rU(t,jvt)},polar:function(t){return!rU(t,Yvt)}},qS={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),a=n?qvt(n,r):0,i=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+i*a/2,y:r.y+o*a/2,width:r.width-i*a,height:r.height-o*a}},polar:function(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 Xvt(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function Xae(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 iU(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=cd(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",v=Pr(r);ca(t,v,{labelFetcher:i,labelDataIndex:n,defaultText:hv(i.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=t.getTextContent();if(s&&p){var g=r.get(["label","position"]);t.textConfig.inside=g==="middle"?!0:null,Uvt(t,g==="outside"?h:g,Xae(o),r.get(["label","rotate"]))}une(p,v,i.getRawValue(n),function(m){return Pae(e,m)});var y=r.getModel(["emphasis"]);ar(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),ua(t,r),Xvt(a)&&(t.style.fill="none",t.style.stroke="none",W(t.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function qvt(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 Zvt=function(){function t(){}return t}(),oU=function(t){we(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new Zvt},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<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],n.rect(s[0],s[1],l[0],l[1])},e}(Wt);function sU(t,e,n,r){var a=t.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=t.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new oU({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var f=new oU({shape:{points:a.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(a.getVisual("style")),Rt(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",lU),f.on("mousemove",lU)),n&&n.push(f)}var lU=qC(function(t){var e=this,n=Qvt(e,t.offsetX,t.offsetY);Rt(e).dataIndex=n>=0?n:null},30,!1);function Qvt(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<f;c++){var d=c*3;if(l[r]=u,l[a]=i[d+2],s[r]=i[d+r],s[a]=i[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function qae(t,e,n){if(rh(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 Jvt(t,e,n){var r=t.type==="polar"?qa:nn;return new r({shape:qae(e,n,t),silent:!0,z2:0})}const egt=Wvt;function tgt(t){t.registerChartView(egt),t.registerSeriesModel(Pvt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,kt(eae,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,tae("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,jae("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 ZS=Math.PI*2,uU=Math.PI/180;function Zae(t,e){return xr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Qae(t,e){var n=Zae(t,e),r=t.get("center"),a=t.get("radius");$e(a)||(a=[0,a]);var i=tt(n.width,e.getWidth()),o=tt(n.height,e.getHeight()),s=Math.min(i,o),l=tt(a[0],s/2),u=tt(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 $e(r)||(r=[r,r]),c=tt(r[0],i)+n.x,f=tt(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function ngt(t,e,n){e.eachSeriesByType(t,function(r){var a=r.getData(),i=a.mapDimension("value"),o=Zae(r,n),s=Qae(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*uU,h=r.get("minAngle")*uU,v=0;a.each(i,function(M){!isNaN(M)&&v++});var p=a.getSum(i),g=Math.PI/(p||v)*2,y=r.get("clockwise"),m=r.get("roseType"),S=r.get("stillShowZeroSum"),b=a.getDataExtent(i);b[0]=0;var x=ZS,_=0,C=d,T=y?1:-1;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(M,E){var k;if(isNaN(M)){a.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:f,r:m?NaN:c});return}m!=="area"?k=p===0&&S?g:M*g:k=ZS/v,k<h?(k=h,x-=h):_+=M;var R=C+T*k;a.setItemLayout(E,{angle:k,startAngle:C,endAngle:R,clockwise:y,cx:l,cy:u,r0:f,r:m?bn(M,b,[f,c]):c}),C=R}),x<ZS&&v)if(x<=.001){var D=ZS/v;a.each(i,function(M,E){if(!isNaN(M)){var k=a.getItemLayout(E);k.angle=D,k.startAngle=d+T*E*D,k.endAngle=d+T*(E+1)*D}})}else g=x/_,C=d,a.each(i,function(M,E){if(!isNaN(M)){var k=a.getItemLayout(E),R=k.angle===h?h:M*g;k.startAngle=C,k.endAngle=C+T*R,C+=T*R}})})}function a1(t){return{seriesType:t,reset:function(e,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var a=e.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<r.length;s++)if(!r[s].isSelected(o))return!1;return!0})}}}}var rgt=Math.PI/180;function cU(t,e,n,r,a,i,o,s,l,u){if(t.length<2)return;function c(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var S=p.list[m],b=Math.abs(S.label.y-n),x=r+S.len,_=x*x,C=Math.sqrt((1-Math.abs(b*b/y))*_),T=e+(C+S.len2)*a,D=T-S.label.x,M=S.targetTextWidth-D*a;Jae(S,M,!0),S.label.x=T}}function f(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var S=p[m],b=S.label.y>n?y:g,x=Math.abs(S.label.y-n);if(x>=b.maxY){var _=S.label.x-e-S.len2*a,C=r+S.len,T=Math.abs(_)<C?Math.sqrt(x*x/(1-_*_/C/C)):C;b.rB=T,b.maxY=x}b.list.push(S)}c(g),c(y)}for(var d=t.length,h=0;h<d;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var v=t[h].label.x-u;t[h].linePoints[1][0]+=v,t[h].label.x=u}xae(t,l,l+o)&&f(t)}function agt(t,e,n,r,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<t.length;d++){var h=t[d].label;YE(t[d])||(h.x<e?(c=Math.min(c,h.x),l.push(t[d])):(f=Math.max(f,h.x),u.push(t[d])))}for(var d=0;d<t.length;d++){var v=t[d];if(!YE(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,p=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<e?g=p[2][0]-v.labelDistance-o-v.edgeDistance:g=o+a-v.edgeDistance-p[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<e?g=c-o-v.bleedMargin:g=o+a-f-v.bleedMargin:h.x<e?g=h.x-o-v.bleedMargin:g=o+a-h.x-v.bleedMargin,v.targetTextWidth=g,Jae(v,g)}}cU(u,e,n,r,1,a,i,o,s,f),cU(l,e,n,r,-1,a,i,o,s,c);for(var d=0;d<t.length;d++){var v=t[d];if(!YE(v)&&v.linePoints){var h=v.label,p=v.linePoints,y=v.labelAlignTo==="edge",m=h.style.padding,S=m?m[1]+m[3]:0,b=h.style.backgroundColor?0:S,x=v.rect.width+b,_=p[1][0]-p[2][0];y?h.x<e?p[2][0]=o+v.edgeDistance+x+v.labelDistance:p[2][0]=o+a-v.edgeDistance-x-v.labelDistance:(h.x<e?p[2][0]=h.x+v.labelDistance:p[2][0]=h.x-v.labelDistance,p[1][0]=p[2][0]+_),p[1][1]=p[2][1]=h.y}}}function Jae(t,e,n){if(n===void 0&&(n=!1),t.labelStyleWidth==null){var r=t.label,a=r.style,i=t.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(e<c||n){var f=i.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",o)}else{var h=e-l,v=e<c?h:n?h>t.unconstrainedWidth?null:h:null;r.setStyle("width",v)}var p=r.getBoundingRect();i.width=p.width;var g=(r.style.margin||0)+2.1;i.height=p.height+g,i.y-=(i.height-f)/2}}}function YE(t){return t.position==="center"}function igt(t){var e=t.getData(),n=[],r,a,i=!1,o=(t.get("minShowLabelAngle")||0)*rgt,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(_){_.ignore=!0}function v(_){if(!_.ignore)return!0;for(var C in _.states)if(_.states[C].ignore===!1)return!0;return!1}e.each(function(_){var C=e.getItemGraphicEl(_),T=C.shape,D=C.getTextContent(),M=C.getTextGuideLine(),E=e.getItemModel(_),k=E.getModel("label"),R=k.get("position")||E.get(["emphasis","label","position"]),O=k.get("distanceToLabelLine"),B=k.get("alignTo"),$=tt(k.get("edgeDistance"),u),V=k.get("bleedMargin"),F=E.getModel("labelLine"),L=F.get("length");L=tt(L,u);var N=F.get("length2");if(N=tt(N,u),Math.abs(T.endAngle-T.startAngle)<o){W(D.states,h),D.ignore=!0,M&&(W(M.states,h),M.ignore=!0);return}if(v(D)){var H=(T.startAngle+T.endAngle)/2,K=Math.cos(H),Q=Math.sin(H),ie,be,le,J;r=T.cx,a=T.cy;var Z=R==="inside"||R==="inner";if(R==="center")ie=T.cx,be=T.cy,J="center";else{var ee=(Z?(T.r+T.r0)/2*K:T.r*K)+r,ce=(Z?(T.r+T.r0)/2*Q:T.r*Q)+a;if(ie=ee+K*3,be=ce+Q*3,!Z){var ue=ee+K*(L+l-T.r),Y=ce+Q*(L+l-T.r),te=ue+(K<0?-1:1)*N,oe=Y;B==="edge"?ie=K<0?c+$:c+u-$:ie=te+(K<0?-O:O),be=oe,le=[[ee,ce],[ue,Y],[te,oe]]}J=Z?"center":B==="edge"?K>0?"right":"left":K>0?"left":"right"}var Se=Math.PI,fe=0,ne=k.get("rotate");if(on(ne))fe=ne*(Se/180);else if(R==="center")fe=0;else if(ne==="radial"||ne===!0){var Ee=K<0?-H+Se:-H;fe=Ee}else if(ne==="tangential"&&R!=="outside"&&R!=="outer"){var _e=Math.atan2(K,Q);_e<0&&(_e=Se*2+_e);var me=Q>0;me&&(_e=Se+_e),fe=_e-Se}if(i=!!fe,D.x=ie,D.y=be,D.rotation=fe,D.setStyle({verticalAlign:"middle"}),Z){D.setStyle({align:J});var ze=D.states.select;ze&&(ze.x+=D.x,ze.y+=D.y)}else{var Te=D.getBoundingRect().clone();Te.applyTransform(D.getComputedTransform());var Ve=(D.style.margin||0)+2.1;Te.y-=Ve/2,Te.height+=Ve,n.push({label:D,labelLine:M,position:R,len:L,len2:N,minTurnAngle:F.get("minTurnAngle"),maxSurfaceAngle:F.get("maxSurfaceAngle"),surfaceNormal:new It(K,Q),linePoints:le,textAlign:J,labelDistance:O,labelAlignTo:B,edgeDistance:$,bleedMargin:V,rect:Te,unconstrainedWidth:Te.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:Z})}}),!i&&t.get("avoidLabelOverlap")&&agt(n,r,a,l,u,d,c,f);for(var p=0;p<n.length;p++){var g=n[p],y=g.label,m=g.labelLine,S=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),S&&(W(y.states,h),y.ignore=!0);var b=y.states.select;b&&(b.x+=y.x,b.y+=y.y)}if(m){var x=g.linePoints;S||!x?(W(m.states,h),m.ignore=!0):(bae(x,g.minTurnAngle),mpt(x,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new It(x[0][0],x[0][1])})}}}var ogt=function(t){we(e,t);function e(n,r,a){var i=t.call(this)||this;i.z2=2;var o=new tn;return i.setTextContent(o),i.updateData(n,r,a,!0),i}return e.prototype.updateData=function(n,r,a,i){var o=this,s=n.hostModel,l=n.getItemModel(r),u=l.getModel("emphasis"),c=n.getItemLayout(r),f=Oe(cd(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(Un(o,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,Un(o,{shape:{r:c.r}},s,r)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Un(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(o.shape.endAngle=c.startAngle,cn(o,{shape:{endAngle:c.endAngle}},s,r))}else is(o),cn(o,{shape:f},s,r);o.useStyle(n.getItemVisual(r,"style")),ua(o,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),p=Math.cos(h)*v,g=Math.sin(h)*v,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,n,r),o.ensureState("emphasis").shape=Oe({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},cd(u.getModel("itemStyle"),c)),Oe(o.ensureState("select"),{x:p,y:g,shape:cd(l.getModel(["select","itemStyle"]),c)}),Oe(o.ensureState("blur"),{shape:cd(l.getModel(["blur","itemStyle"]),c)});var m=o.getTextGuideLine(),S=o.getTextContent();m&&Oe(m.ensureState("select"),{x:p,y:g}),Oe(S.ensureState("select"),{x:p,y:g}),ar(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r,a){var i=this,o=r.getItemModel(a),s=o.getModel("labelLine"),l=r.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;ca(i,Pr(o),{labelFetcher:r.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:n.getFormattedLabel(a,"normal")||r.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=n.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ei,this.setTextGuideLine(h)),sV(this,lV(o),{stroke:u,opacity:Xo(s.get(["lineStyle","opacity"]),c,1)})}},e}(qa),sgt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,a,i){var o=n.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&n.get("showEmptyCircle")){var d=new qa({shape:Qae(n,a)});d.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new ogt(o,h,u);o.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var p=s.getItemGraphicEl(v);p.updateData(o,h,u),p.off("click"),l.add(p),o.setItemGraphicEl(h,p)}).remove(function(h){var v=s.getItemGraphicEl(h);Wy(v,n,h)}).execute(),igt(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},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="pie",e}(kn);const lgt=sgt;function Qv(t,e,n){e=$e(e)&&{coordDimensions:e}||Oe({encodeDefine:t.getEncode()},e);var r=t.getSource(),a=qv(r,e).dimensions,i=new _a(a,t);return i.initData(r,n),i}var ugt=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 i1=ugt;var cgt=sn(),fgt=function(t){we(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 i1(st(this.getData,this),st(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Qv(this,{coordDimensions:["value"],encodeDefaulter:kt(ON,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),a=cgt(r),i=a.seats;if(!i){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),i=a.seats=tte(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){Bd(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}(In);const dgt=fgt;function hgt(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!(on(o)&&!isNaN(o)&&o<0)})}}}function pgt(t){t.registerChartView(lgt),t.registerSeriesModel(dgt),pre("pie",t.registerAction),t.registerLayout(kt(ngt,"pie")),t.registerProcessor(a1("pie")),t.registerProcessor(hgt("pie"))}var vgt=function(t){we(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 il(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}(In);const ggt=vgt;var eie=4,ygt=function(){function t(){}return t}(),mgt=function(t){we(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 ygt},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]<eie,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<a.length;){var d=a[f++],h=a[f++];isNaN(d)||isNaN(h)||c&&!c.contain(d,h)||(s.x=d-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(n,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var n=this.shape,r=n.points,a=n.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(n,r){for(var a=this.shape,i=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var c=u*2,f=i[c]-s/2,d=i[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},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<a.length;){var h=a[d++],v=a[d++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(v,u),f=Math.max(v,f)}n=this._rect=new Ft(l-o/2,u-s/2,c-l+o,f-u+s)}return n},e}(Wt),Sgt=function(){function t(){this.group=new Ct}return t.prototype.updateData=function(e,n){this._clear();var r=this._create();r.setShape({points:e.getLayout("points")}),this._setCommon(r,e,n)},t.prototype.updateLayout=function(e){var n=e.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var a=(r.endIndex-r.startIndex)*2,i=r.startIndex*4*2;n=new Float32Array(n.buffer,i,a)}r.setShape("points",n),r.reset()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,n,r){var a=this._newAdded[0],i=n.getLayout("points"),o=a&&a.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),a.endIndex=e.end,a.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,n,r)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new mgt({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,n,r){var a=n.hostModel;r=r||{};var i=n.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=r.clipShape||null,e.symbolProxy=fr(n.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<eie;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=Rt(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>=0&&(u.dataIndex=f+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const bgt=Sgt;var wgt=function(t){we(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=r1("").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 bgt:new n1,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}(kn);const _gt=wgt;var xgt=function(t){we(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}(Qt);const Cgt=xgt;var nL=function(t){we(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",yr).models[0]},e.type="cartesian2dAxis",e}(Qt);sr(nL,Zv);var tie={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)"]}}},Tgt=$t({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},tie),hV=$t({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}}},tie),Egt=$t({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},hV),Mgt=mt({logBase:10},hV);const nie={category:Tgt,value:hV,time:Egt,log:Mgt};var Dgt={value:1,category:1,time:1,log:1};function pv(t,e,n,r){W(Dgt,function(a,i){var o=$t($t({},nie[i],!0),r,!0),s=function(l){we(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=Yy(this),h=d?Uv(c):{},v=f.getTheme();$t(c,v.get(i+"Axis")),$t(c,this.getDefaultOption()),c.type=fU(c),d&&wc(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=YR.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",fU)}function fU(t){return t.type||(t.data?"category":"value")}var kgt=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 Ie(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),wn(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 Rgt=kgt;var rL=["x","y"];function dU(t){return t.type==="interval"||t.type==="time"}var Lgt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=rL,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!dU(n)||!dU(r))){var a=n.getExtent(),i=r.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,h=o[1]-i[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=Jd([],v)}}},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 Xr(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 Xr(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}(Rgt),Ogt=function(t){we(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}(mo);const Agt=Ogt;function aL(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,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(p,v[1]),v[0])}i.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?v[d[s]]-v[d.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Nr(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 hU(t){return t.get("coordinateSystem")==="cartesian2d"}function pU(t){var e={xAxisModel:null,yAxisModel:null};return W(e,function(n,r){var a=r.replace(/Model$/,""),i=t.getReferringComponents(a,yr).models[0];e[r]=i}),e}var XE=Math.log;function rie(t,e,n){var r=_c.prototype,a=r.getTicks.call(n),i=r.getTicks.call(n,!0),o=a.length-1,s=r.getInterval.call(n),l=lae(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(t.type==="log"){var d=XE(t.base);u=[XE(u[0])/d,XE(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 v=r.getInterval.call(t),p=u[0],g=u[1];if(c&&f)v=(g-p)/o;else if(c)for(g=u[0]+v*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=VE(v),g=u[0]+v*o;else if(f)for(p=u[1]-v*o;p>u[0]&&isFinite(p)&&isFinite(u[0]);)v=VE(v),p=u[1]-v*o;else{var y=t.getTicks().length-1;y>o&&(v=VE(v));var m=v*o;g=Math.ceil(u[1]/v)*v,p=nr(g-m),p<0&&u[0]>=0?(p=0,g=nr(m)):g>0&&u[1]<=0&&(g=0,p=-nr(m))}var S=(a[0].value-i[0].value)/s,b=(a[o].value-i[o].value)/s;r.setExtent.call(t,p+v*S,g+v*b),r.setInterval.call(t,v),(S||b)&&r.setNiceExtent.call(t,p+v,g-v)}var Ngt=function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=rL,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],v=h.model,p=h.scale;XR(p)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(zd(p,v),XR(p)&&(s=h))}c.length&&(s||(s=c.pop(),zd(s.scale,s.model)),W(c,function(g){rie(g.scale,g.model,s.scale)}))}}a(r.x),a(r.y);var i={};W(r.x,function(o){vU(r,"y",o,i)}),W(r.y,function(o){vU(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=xr(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=Nht(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]),Vgt(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]}bt(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===e||i[a].getAxis("y").index===n)return i[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(r):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(r)):null},t.prototype.convertFromPixel=function(e,n,r){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(r):a.axis?a.axis.coordToData(a.axis.toLocalCoord(r)):null},t.prototype._findConvertTarget=function(e){var n=e.seriesModel,r=e.xAxisModel||n&&n.getReferringComponents("xAxis",yr).models[0],a=e.yAxisModel||n&&n.getReferringComponents("yAxis",yr).models[0],i=e.gridModel,o=this._coordsList,s,l;if(n)s=n.coordinateSystem,zt(o,s)<0&&(s=null);else if(r&&a)s=this.getCartesian(r.componentIndex,a.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var n=this._coordsList[0];if(n)return n.containPoint(e)},t.prototype._initCartesian=function(e,n,r){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,W(s.x,function(c,f){W(s.y,function(d,h){var v="x"+f+"y"+h,p=new Lgt(v);p.master=a,p.model=e,a._coordsMap[v]=p,a._coordsList.push(p),p.addAxis(c),p.addAxis(d)})});function u(c){return function(f,d){if(qE(f,e)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new Agt(c,Jm(f),[0,0],f.get("type"),h),p=v.type==="category";v.onBand=p&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=i,v.index=d,i._axesList.push(v),s[c][d]=v,l[c]++}}}},t.prototype._updateScale=function(e,n){W(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),e.eachSeries(function(a){if(hU(a)){var i=pU(a),o=i.xAxisModel,s=i.yAxisModel;if(!qE(o,n)||!qE(s,n))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(a,i){W(K_(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return W(this.getCartesians(),function(a){var i=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(i);zt(n,i)<0&&n.push(i),zt(r,o)<0&&r.push(o)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(a,i){var o=new t(a,e,n);o.name="grid_"+i,o.resize(a,n,!0),a.coordinateSystem=o,r.push(o)}),e.eachSeries(function(a){if(hU(a)){var i=pU(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),r},t.dimensions=rL,t}();function qE(t,e){return t.getCoordSysModel()===e}function vU(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var a=t[e],i,o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)gU(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&gU(a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function gU(t){return t&&t.type!=="category"&&t.type!=="time"&&Aht(t)}function Vgt(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+e}:function(a){return r-a+e},t.toLocalCoord=t.dim==="x"?function(a){return a-e}:function(a){return r-a+e}}const Bgt=Ngt;var Ku=Math.PI,Md=function(){function t(e,n){this.group=new Ct,this.opt=n,this.axisModel=e,mt(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Ct({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return t.prototype.hasBuilder=function(e){return!!yU[e]},t.prototype.add=function(e){yU[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,n,r){var a=aN(n-e),i,o;return Fy(a)?(o=r>0?"top":"bottom",i="center"):Fy(a-Ku)?(o=r>0?"bottom":"top",i="center"):(o="middle",a>0&&a<Ku?i=r>0?"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}(),yU={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&&(Xr(s,s,o),Xr(l,l,o));var c=Oe({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Vr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});cv(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"]);it(d)&&(d=[d,d]),(it(h)||on(h))&&(h=[h,h]);var v=nh(e.get(["axisLine","symbolOffset"])||0,h),p=h[0],g=h[1];W([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(d[m]!=="none"&&d[m]!=null){var S=fr(d[m],-p/2,-g/2,p,g,c.stroke,!0),b=y.r+y.offset,x=u?l:s;S.attr({rotation:y.rotate,x:x[0]+b*Math.cos(t.rotation),y:x[1]-b*Math.sin(t.rotation),silent:!0,z2:11}),n.add(S)}})}}},axisTickLabel:function(t,e,n,r){var a=Pgt(n,r,e,t),i=zgt(n,r,e,t);if(Igt(e,i,a),Fgt(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=wae(Ie(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Cae(o)}},axisName:function(t,e,n,r){var a=Nr(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,SU(i)?t.labelOffset+o*l:0],d,h=e.get("nameRotate");h!=null&&(h=h*Ku/180);var v;SU(i)?d=Md.innerTextLayout(t.rotation,h??t.rotation,o):(d=$gt(t.rotation,i,h||0,u),v=t.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var p=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=Nr(t.nameTruncateMaxWidth,g.maxWidth,v),S=new tn({x:f[0],y:f[1],rotation:d.rotation,silent:Md.isLabelSilent(e),style:An(s,{text:a,font:p,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(Fv({el:S,componentModel:e,itemName:a}),S.__fullText=a,S.anid="name",e.get("triggerEvent")){var b=Md.makeAxisEventDataBase(e);b.targetType="axisName",b.name=a,Rt(S).eventData=b}r.add(S),S.updateTransform(),n.add(S),S.decomposeTransform()}}};function $gt(t,e,n,r){var a=aN(n-t),i,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return Fy(a-Ku/2)?(o=l?"bottom":"top",i="center"):Fy(a-Ku*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<Ku*1.5&&a>Ku/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function Igt(t,e,n){if(!uae(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)):mU(i,o)&&(r?($i(o),$i(c)):($i(i),$i(u))),a===!1?($i(s),$i(f)):mU(l,s)&&(a?($i(l),$i(d)):($i(s),$i(f)))}}function $i(t){t&&(t.ignore=!0)}function mU(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var a=zm([]);return $c(a,a,-t.rotation),n.applyTransform(Gs([],a,t.getLocalTransform())),r.applyTransform(Gs([],a,e.getLocalTransform())),n.intersect(r)}}function SU(t){return t==="middle"||t==="center"}function aie(t,e,n,r,a){for(var i=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,e&&(Xr(o,o,e),Xr(s,s,e));var c=new Vr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});cv(c.shape,c.style.lineWidth),c.anid=a+"_"+t[l].tickValue,i.push(c)}return i}function Pgt(t,e,n,r){var a=n.axis,i=n.getModel("axisTick"),o=i.get("show");if(o==="auto"&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=a.getTicksCoords(),c=aie(u,e.transform,l,mt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}}function Fgt(t,e,n,r){var a=n.axis,i=n.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=r*i.get("length"),u=mt(s.getLineStyle(),mt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=aie(o[c],e.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)t.add(f[d])}}function zgt(t,e,n,r){var a=n.axis,i=Nr(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=n.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Nr(r.labelRotate,o.get("rotate"))||0)*Ku/180,c=Md.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=Md.isLabelSilent(n),v=n.get("triggerEvent");return W(l,function(p,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,S=p.rawLabel,b=o;if(f&&f[y]){var x=f[y];bt(x)&&x.textStyle&&(b=new Mn(x.textStyle,o,n.ecModel))}var _=b.getTextColor()||n.get(["axisLine","lineStyle","color"]),C=a.dataToCoord(y),T=new tn({x:C,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(p.level||0),style:An(b,{text:m,align:b.getShallow("align",!0)||c.textAlign,verticalAlign:b.getShallow("verticalAlign",!0)||b.getShallow("baseline",!0)||c.textVerticalAlign,fill:gt(_)?_(a.type==="category"?S:a.type==="value"?y+"":y,g):_})});if(T.anid="label_"+y,v){var D=Md.makeAxisEventDataBase(n);D.targetType="axisLabel",D.value=S,D.tickIndex=g,a.type==="category"&&(D.dataIndex=y),Rt(T).eventData=D}e.add(T),T.updateTransform(),d.push(T),t.add(T),T.decomposeTransform()}),d}}const jl=Md;function Ggt(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Ugt(n,t,e),n.seriesInvolved&&Wgt(n,t),n}function Ugt(t,e,n){var r=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];W(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=nm(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(W(s.getAxes(),kt(p,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&W(v.baseAxes,kt(p,h?"cross":!0,d)),h&&W(v.otherAxes,kt(p,"cross",!1))}function p(g,y,m){var S=m.model.getModel("axisPointer",a),b=S.get("show");if(!(!b||b==="auto"&&!g&&!iL(S))){y==null&&(y=S.get("triggerTooltip")),S=g?Hgt(m,f,a,e,g,y):S;var x=S.get("snap"),_=S.get("triggerEmphasis"),C=nm(m.model),T=y||x||m.type==="category",D=t.axesInfo[C]={key:C,axis:m,coordSys:s,axisPointerModel:S,triggerTooltip:y,triggerEmphasis:_,involveSeries:T,snap:x,useHandle:iL(S),seriesModels:[],linkGroup:null};u[C]=D,t.seriesInvolved=t.seriesInvolved||T;var M=Kgt(i,m);if(M!=null){var E=o[M]||(o[M]={axesInfo:{}});E.axesInfo[C]=D,E.mapper=i[M].mapper,D.linkGroup=E}}}})}function Hgt(t,e,n,r,a,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};W(s,function(d){l[d]=wt(o.get(d))}),l.snap=t.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&mt(u,f.textStyle)}}return t.model.getModel("axisPointer",new Mn(l,n,r))}function Wgt(t,e){e.eachSeries(function(n){var r=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),i=n.get(["tooltip","show"],!0);!r||a==="none"||a===!1||a==="item"||i===!1||n.get(["axisPointer","show"],!0)===!1||W(t.coordSysAxesInfo[nm(r.model)],function(o){var s=o.axis;r.getAxis(s.dim)===s&&(o.seriesModels.push(n),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=n.getData().count())})})}function Kgt(t,e){for(var n=e.model,r=e.dim,a=0;a<t.length;a++){var i=t[a]||{};if(ZE(i[r+"AxisId"],n.id)||ZE(i[r+"AxisIndex"],n.componentIndex)||ZE(i[r+"AxisName"],n.name))return a}}function ZE(t,e){return t==="all"||$e(t)&&zt(t,e)>=0||t===e}function jgt(t){var e=pV(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=iL(n);i==null&&(a.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function pV(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[nm(t)]}function Ygt(t){var e=pV(t);return e&&e.axisPointerModel}function iL(t){return!!t.get(["handle","show"])}function nm(t){return t.type+"||"+t.id}var bU={},Xgt=function(t){we(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){this.axisPointerClass&&jgt(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},e.prototype.updateAxisPointer=function(n,r,a,i){this._doUpdateAxisPointerClass(n,a,!1)},e.prototype.remove=function(n,r){var a=this._axisPointer;a&&a.remove(r)},e.prototype.dispose=function(n,r){this._disposeAxisPointer(r),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(n,r,a){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=Ygt(n);o?(this._axisPointer||(this._axisPointer=new i)).render(n,o,r,a):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},e.registerAxisPointerClass=function(n,r){bU[n]=r},e.getAxisPointerClass=function(n){return n&&bU[n]},e.type="axis",e}(jn);const ah=Xgt;var oL=sn();function iie(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=oL(t).splitAreaColors,d=ht(),h=0;if(f)for(var v=0;v<u.length;v++){var p=f.get(u[v].tickValue);if(p!=null){h=(p+(c-1)*v)%c;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=$e(s)?s:[s];for(var v=1;v<u.length;v++){var m=a.toGlobalCoord(u[v].coord),S=void 0,b=void 0,x=void 0,_=void 0;a.isHorizontal()?(S=g,b=l.y,x=m-S,_=l.height,g=S+x):(S=l.x,b=g,x=l.width,_=m-b,g=b+_);var C=u[v-1].tickValue;C!=null&&d.set(C,h),e.add(new nn({anid:C!=null?"area_"+C:null,shape:{x:S,y:b,width:x,height:_},style:mt({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}oL(t).splitAreaColors=d}}}function oie(t){oL(t).splitAreaColors=null}var qgt=["axisLine","axisTickLabel","axisName"],Zgt=["splitArea","splitLine","minorSplitLine"],sie=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return e.prototype.render=function(n,r,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ct,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=aL(s,n),u=new jl(n,Oe({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(XR(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));W(qgt,u.add,u),this._axisGroup.add(u.getGroup()),W(Zgt,function(f){n.get([f,"show"])&&Qgt[f](this,this._axisGroup,n,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||Xm(o,this._axisGroup,n),t.prototype.render.call(this,n,r,a,i)}},e.prototype.remove=function(){oie(this)},e.type="cartesianAxis",e}(ah),Qgt={splitLine:function(t,e,n,r){var a=n.axis;if(!a.scale.isBlank()){var i=n.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=$e(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:i}),d=[],h=[],v=o.getLineStyle(),p=0;p<f.length;p++){var g=a.toGlobalCoord(f[p].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var y=c++%s.length,m=f[p].tickValue,S=new Vr({anid:m!=null?"line_"+f[p].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:mt({stroke:s[y]},v),silent:!0});cv(S.shape,v.lineWidth),e.add(S)}}},minorSplitLine:function(t,e,n,r){var a=n.axis,i=n.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var p=a.toGlobalCoord(u[h][v].coord);l?(c[0]=p,c[1]=s.y,f[0]=p,f[1]=s.y+s.height):(c[0]=s.x,c[1]=p,f[0]=s.x+s.width,f[1]=p);var g=new Vr({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});cv(g.shape,d.lineWidth),e.add(g)}},splitArea:function(t,e,n,r){iie(t,e,n,r)}},lie=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="xAxis",e}(sie),Jgt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=lie.type,n}return e.type="yAxis",e}(sie),e0t=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return e.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new nn({shape:n.coordinateSystem.getRect(),style:mt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(jn),wU={offset:0};function uie(t){t.registerComponentView(e0t),t.registerComponentModel(Cgt),t.registerCoordinateSystem("cartesian2d",Bgt),pv(t,"x",nL,wU),pv(t,"y",nL,wU),t.registerComponentView(lie),t.registerComponentView(Jgt),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function t0t(t){Ut(uie),t.registerSeriesModel(ggt),t.registerChartView(_gt),t.registerLayout(r1("scatter"))}function n0t(t){t.eachSeriesByType("radar",function(e){var n=e.getData(),r=[],a=e.coordinateSystem;if(a){var i=a.getIndicatorAxes();W(i,function(o,s){n.each(n.mapDimension(i[s].dim),function(l,u){r[u]=r[u]||[];var c=a.dataToPoint(l,s);r[u][s]=_U(c)?c:xU(a)})}),n.each(function(o){var s=vee(r[o],function(l){return _U(l)})||xU(a);r[o].push(s.slice()),n.setItemLayout(o,r[o])})}})}function _U(t){return!isNaN(t[0])&&!isNaN(t[1])}function xU(t){return[t.cx,t.cy]}function r0t(t){var e=t.polar;if(e){$e(e)||(e=[e]);var n=[];W(e,function(r,a){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),t.radar=t.radar||[],$e(t.radar)||(t.radar=[t.radar]),t.radar.push(r)):n.push(r)}),t.polar=n}W(t.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var a0t=function(t){we(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.coordinateSystem,o=this.group,s=n.getData(),l=this._data;function u(d,h){var v=d.getItemVisual(h,"symbol")||"circle";if(v!=="none"){var p=Xv(d.getItemVisual(h,"symbolSize")),g=fr(v,-1,-1,2,2),y=d.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function c(d,h,v,p,g,y){v.removeAll();for(var m=0;m<h.length-1;m++){var S=u(p,g);S&&(S.__dimIdx=m,d[m]?(S.setPosition(d[m]),qm[y?"initProps":"updateProps"](S,{x:h[m][0],y:h[m][1]},n,g)):S.setPosition(h[m]),v.add(S))}}function f(d){return Ie(d,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var v=new Za,p=new ei,g={shape:{points:h}};v.shape.points=f(h),p.shape.points=f(h),Un(v,g,n,d),Un(p,g,n,d);var y=new Ct,m=new Ct;y.add(p),y.add(v),y.add(m),c(p.shape.points,h,m,s,d,!0),s.setItemGraphicEl(d,y)}}).update(function(d,h){var v=l.getItemGraphicEl(h),p=v.childAt(0),g=v.childAt(1),y=v.childAt(2),m={shape:{points:s.getItemLayout(d)}};m.shape.points&&(c(p.shape.points,m.shape.points,y,s,d,!1),is(g),is(p),cn(p,m,n),cn(g,m,n),s.setItemGraphicEl(d,v))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var v=s.getItemModel(h),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m=s.getItemVisual(h,"style"),S=m.fill;o.add(d),p.useStyle(mt(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:S})),ua(p,v,"lineStyle"),ua(g,v,"areaStyle");var b=v.getModel("areaStyle"),x=b.isEmpty()&&b.parentModel.isEmpty();g.ignore=x,W(["emphasis","select","blur"],function(T){var D=v.getModel([T,"areaStyle"]),M=D.isEmpty()&&D.parentModel.isEmpty();g.ensureState(T).ignore=M&&x}),g.useStyle(mt(b.getAreaStyle(),{fill:S,opacity:.7,decal:m.decal}));var _=v.getModel("emphasis"),C=_.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof Qr){var D=T.style;T.useStyle(Oe({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},m))}else T.useStyle(m),T.setColor(S),T.style.strokeNoScale=!0;var M=T.ensureState("emphasis");M.style=wt(C);var E=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);(E==null||isNaN(E))&&(E=""),ca(T,Pr(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:E,inheritColor:S,defaultOpacity:m.opacity})}),ar(d,_.get("focus"),_.get("blurScope"),_.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(kn);const i0t=a0t;var o0t=function(t){we(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),this.legendVisualProvider=new i1(st(this.getData,this),st(this.getRawData,this))},e.prototype.getInitialData=function(n,r){return Qv(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(n),u=l===""?this.name:l,c=nre(this,n);return Fr("section",{header:u,sortBlocks:!0,blocks:Ie(s,function(f){var d=i.get(i.mapDimension(f.dim),n);return Fr("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),a=this.coordinateSystem,i=r.getValues(Ie(a.dimensions,function(u){return r.mapDimension(u)}),n),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(i[o]),o)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(In);const s0t=o0t;var Ag=nie.value;function QS(t,e){return mt({show:e},t)}var l0t=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),a=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),h=Ie(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var p=l;v.color!=null&&(p=mt({color:v.color},l));var g=$t(wt(v),{boundaryGap:n,splitNumber:r,scale:a,axisLine:i,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:p,triggerEvent:d},!1);if(it(c)){var y=g.name;g.name=c.replace("{value}",y??"")}else gt(c)&&(g.name=c(g.name,g));var m=new Mn(g,null,this.ecModel);return sr(m,Zv.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:$t({lineStyle:{color:"#bbb"}},Ag.axisLine),axisLabel:QS(Ag.axisLabel,!1),axisTick:QS(Ag.axisTick,!1),splitLine:QS(Ag.splitLine,!0),splitArea:QS(Ag.splitArea,!0),indicator:[]},e}(Qt);const u0t=l0t;var c0t=["axisLine","axisTickLabel","axisName"],f0t=function(t){we(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=Ie(a,function(o){var s=o.model.get("showName")?o.name:"",l=new jl(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(c0t,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"),v=$e(d)?d:[d],p=$e(h)?h:[h],g=[],y=[];function m(B,$,V){var F=V%$.length;return B[F]=B[F]||[],F}if(i==="circle")for(var S=a[0].getTicksCoords(),b=r.cx,x=r.cy,_=0;_<S.length;_++){if(c){var C=m(g,v,_);g[C].push(new as({shape:{cx:b,cy:x,r:S[_].coord}}))}if(f&&_<S.length-1){var C=m(y,p,_);y[C].push(new Km({shape:{cx:b,cy:x,r0:S[_].coord,r:S[_+1].coord}}))}}else for(var T,D=Ie(a,function(B,$){var V=B.getTicksCoords();return T=T==null?V.length-1:Math.min(V.length-1,T),Ie(V,function(F){return r.coordToPoint(F.coord,$)})}),M=[],_=0;_<=T;_++){for(var E=[],k=0;k<a.length;k++)E.push(D[k][_]);if(E[0]&&E.push(E[0].slice()),c){var C=m(g,v,_);g[C].push(new ei({shape:{points:E}}))}if(f&&M){var C=m(y,p,_-1);y[C].push(new Za({shape:{points:E.concat(M)}}))}M=E.slice().reverse()}var R=l.getLineStyle(),O=u.getAreaStyle();W(y,function(B,$){this.group.add(xi(B,{style:mt({stroke:"none",fill:p[$%p.length]},O),silent:!0}))},this),W(g,function(B,$){this.group.add(xi(B,{style:mt({fill:"none",stroke:v[$%v.length]},R),silent:!0}))},this)},e.type="radar",e}(jn);const d0t=f0t;var h0t=function(t){we(e,t);function e(n,r,a){var i=t.call(this,n,r,a)||this;return i.type="value",i.angle=0,i.name="",i}return e}(mo);const p0t=h0t;var v0t=function(){function t(e,n,r){this.dimensions=[],this._model=e,this._indicatorAxes=Ie(e.getIndicatorModels(),function(a,i){var o="indicator_"+i,s=new p0t(o,new _c);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,r)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(e),n)},t.prototype.coordToPoint=function(e,n){var r=this._indicatorAxes[n],a=r.angle,i=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[i,o]},t.prototype.pointToData=function(e){var n=e[0]-this.cx,r=e[1]-this.cy,a=Math.sqrt(n*n+r*r);n/=a,r/=a;for(var i=Math.atan2(-r,n),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(i-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(a))]},t.prototype.resize=function(e,n){var r=e.get("center"),a=n.getWidth(),i=n.getHeight(),o=Math.min(a,i)/2;this.cx=tt(r[0],a),this.cy=tt(r[1],i),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(it(s)||on(s))&&(s=[0,s]),this.r0=tt(s[0],o),this.r=tt(s[1],o),W(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},t.prototype.update=function(e,n){var r=this._indicatorAxes,a=this._model;W(r,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==a)){var u=s.getData();W(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var i=a.get("splitNumber"),o=new _c;o.setExtent(0,i),o.setInterval(1),W(r,function(s,l){rie(s.scale,s.model,o)})},t.prototype.convertToPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",function(a){var i=new t(a,e,n);r.push(i),a.coordinateSystem=i}),e.eachSeriesByType("radar",function(a){a.get("coordinateSystem")==="radar"&&(a.coordinateSystem=r[a.get("radarIndex")||0])}),r},t.dimensions=[],t}();const g0t=v0t;function y0t(t){t.registerCoordinateSystem("radar",g0t),t.registerComponentModel(u0t),t.registerComponentView(d0t),t.registerVisual({seriesType:"radar",reset:function(e){var n=e.getData();n.each(function(r){n.setItemVisual(r,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function m0t(t){Ut(y0t),t.registerChartView(i0t),t.registerSeriesModel(s0t),t.registerLayout(n0t),t.registerProcessor(a1("radar")),t.registerPreprocessor(r0t)}var CU="\0_ec_interaction_mutex";function S0t(t,e,n){var r=vV(t);r[e]=n}function b0t(t,e,n){var r=vV(t),a=r[e];a===n&&(r[e]=null)}function TU(t,e){return!!vV(t)[e]}function vV(t){return t[CU]||(t[CU]={})}cs({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ir);var w0t=function(t){we(e,t);function e(n){var r=t.call(this)||this;r._zr=n;var a=st(r._mousedownHandler,r),i=st(r._mousemoveHandler,r),o=st(r._mouseupHandler,r),s=st(r._mousewheelHandler,r),l=st(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=mt(wt(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(n.on("mousedown",a),n.on("mousemove",i),n.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(n.on("mousewheel",s),n.on("pinch",l))},r.disable=function(){n.off("mousedown",a),n.off("mousemove",i),n.off("mouseup",o),n.off("mousewheel",s),n.off("pinch",l)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(n){this.pointerChecker=n},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(n){if(!t5(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var a=n.offsetX,i=n.offsetY;this.pointerChecker&&this.pointerChecker(n,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!yw("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||TU(this._zr,"globalPan"))){var r=n.offsetX,a=n.offsetY,i=this._x,o=this._y,s=r-i,l=a-o;this._x=r,this._y=a,this._opt.preventDefaultMouseMove&&Gl(n.event),cie(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:i,oldY:o,newX:r,newY:a,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(n){t5(n)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(n){var r=yw("zoomOnMouseWheel",n,this._opt),a=yw("moveOnMouseWheel",n,this._opt),i=n.wheelDelta,o=Math.abs(i),s=n.offsetX,l=n.offsetY;if(!(i===0||!r&&!a)){if(r){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;QE(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);QE(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(n){if(!TU(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;QE(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e}(po);function QE(t,e,n,r,a){t.pointerChecker&&t.pointerChecker(r,a.originX,a.originY)&&(Gl(r.event),cie(t,e,n,r,a))}function cie(t,e,n,r,a){a.isAvailableBehavior=st(yw,null,n,r),t.trigger(e,a)}function yw(t,e,n){var r=n[t];return!t||r&&(!it(r)||e.event[r+"Key"])}const o1=w0t;function gV(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function yV(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 _0t={axisPointer:1,tooltip:1,brush:1};function aT(t,e,n){var r=e.getComponentByElement(t.topTarget),a=r&&r.coordinateSystem;return r&&r!==n&&!_0t.hasOwnProperty(r.mainType)&&a&&a.model!==n}function fie(t){if(it(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 JE,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"},EU=Yt(Q_),J_={"alignment-baseline":"textBaseline","stop-color":"stopColor"},MU=Yt(J_),x0t=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,n){n=n||{};var r=fie(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),Si(r,a,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,a,i,null,!1,!1),u=u.nextSibling;E0t(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=iT(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=hie(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 nn({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=JE[s];if(c&<(JE,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=DU[s];if(h&<(DU,s)){var v=h.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=v)}}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 Gy({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ii(n,r),Si(e,r,this._defsUsePending,!1,!1),C0t(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(){JE={g:function(e,n){var r=new Ct;return Ii(n,r),Si(e,r,this._defsUsePending,!1,!1),r},rect:function(e,n){var r=new nn;return Ii(n,r),Si(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 as;return Ii(n,r),Si(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 Vr;return Ii(n,r),Si(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 BC;return Ii(n,r),Si(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=LU(r));var i=new Za({shape:{points:a||[]},silent:!0});return Ii(n,i),Si(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,n){var r=e.getAttribute("points"),a;r&&(a=LU(r));var i=new ei({shape:{points:a||[]},silent:!0});return Ii(n,i),Si(e,i,this._defsUsePending,!1,!1),i},image:function(e,n){var r=new Qr;return Ii(n,r),Si(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 Ii(n,s),Si(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 Ii(n,s),Si(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=zte(r);return Ii(n,a),Si(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}}(),t}(),DU={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 $v(e,n,r,a);return kU(t,i),RU(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 yN(e,n,r);return kU(t,a),RU(t,a),a}};function kU(t,e){var n=t.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(e.global=!0)}function RU(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={};die(n,i,i);var o=i.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:a,color:o})}n=n.nextSibling}}function Ii(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),mt(e.__inheritedStyle,t.__inheritedStyle))}function LU(t){for(var e=iT(t),n=[],r=0;r<e.length;r+=2){var a=parseFloat(e[r]),i=parseFloat(e[r+1]);n.push([a,i])}return n}function Si(t,e,n,r,a){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};t.nodeType===1&&(k0t(t,e),die(t,o,s),r||R0t(t,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=OU(i,"fill",o.fill,n)),o.stroke!=null&&(i.style.stroke=OU(i,"stroke",o.stroke,n)),W(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),W(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),a&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=Ie(iT(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function C0t(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,a=r;!r||r==="auto"||r==="baseline"?a="alphabetic":r==="before-edge"||r==="text-before-edge"?a="top":r==="after-edge"||r==="text-after-edge"?a="bottom":(r==="central"||r==="mathematical")&&(a="middle"),t.style.textBaseline=a}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),t.style.textAlign=s)}}var T0t=/^url\(\s*#(.*?)\)/;function OU(t,e,n,r){var a=n&&n.match(T0t);if(a){var i=Qi(a[1]);r.push([t,e,i]);return}return n==="none"&&(n=null),n}function E0t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}var M0t=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function iT(t){return t.match(M0t)||[]}var D0t=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,eM=Math.PI/180;function k0t(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],a=null;n.replace(D0t,function(f,d,h){return r.push(d,h),""});for(var i=r.length-1;i>0;i-=2){var o=r[i],s=r[i-1],l=iT(o);switch(a=a||Li(),s){case"translate":ns(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":EC(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":$c(a,a,-parseFloat(l[0])*eM);break;case"skewX":var u=Math.tan(parseFloat(l[0])*eM);Gs(a,[1,0,u,1,0,0],a);break;case"skewY":var c=Math.tan(parseFloat(l[0])*eM);Gs(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 AU=/([^\s:;]+)\s*:\s*([^:;]+)/g;function die(t,e,n){var r=t.getAttribute("style");if(r){AU.lastIndex=0;for(var a;(a=AU.exec(r))!=null;){var i=a[1],o=lt(Q_,i)?Q_[i]:null;o&&(e[o]=a[2]);var s=lt(J_,i)?J_[i]:null;s&&(n[s]=a[2])}}}function R0t(t,e,n){for(var r=0;r<EU.length;r++){var a=EU[r],i=t.getAttribute(a);i!=null&&(e[Q_[a]]=i)}for(var r=0;r<MU.length;r++){var a=MU[r],i=t.getAttribute(a);i!=null&&(n[J_[a]]=i)}}function hie(t,e){var n=e.width/t.width,r=e.height/t.height,a=Math.min(n,r);return{scale:a,x:-(t.x+t.width/2)*a+(e.x+e.width/2),y:-(t.y+t.height/2)*a+(e.y+e.height/2)}}function L0t(t,e){var n=new x0t;return n.parse(t,e)}var O0t=ht(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),A0t=function(){function t(e,n){this.type="geoSVG",this._usedGraphicMap=ht(),this._freedGraphics=[],this._mapName=e,this._parsedXML=fie(n)}return t.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var n=V0t(e.named),r=n.regions,a=n.regionsMap;this._regions=r,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(e){var n,r;try{n=e&&L0t(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,Ea(r!=null)}catch(g){throw new Error(`Invalid svg format
- `+g.message)}var a=new Ct;a.add(r),a.isGeoSVGGraphicRoot=!0;var i=n.width,o=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(i!=null?(u=0,f=i):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var h=r.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,d=h.height)}l=this._boundingRect=new Ft(u,c,f,d)}if(s){var v=hie(s,l);r.scaleX=r.scaleY=v.scale,r.x=v.x,r.y=v.y}a.setClipPath(new nn({shape:l.plain()}));var p=[];return W(n.named,function(g){O0t.get(g.svgNodeTagLower)!=null&&(p.push(g),N0t(g.el))}),{root:a,boundingRect:l,named:p}},t.prototype.useGraphic=function(e){var n=this._usedGraphicMap,r=n.get(e);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(e,r),r)},t.prototype.freeGraphic=function(e){var n=this._usedGraphicMap,r=n.get(e);r&&(n.removeKey(e),this._freedGraphics.push(r))},t}();function N0t(t){t.silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1})}function V0t(t){var e=[],n=ht();return W(t,function(r){if(r.namedFrom==null){var a=new Kht(r.name,r.el);e.push(a),n.set(r.name,a)}}),{regions:e,regionsMap:n}}var sL=[126,25],NU="南海诸岛",Of=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Ef=0;Ef<Of.length;Ef++)for(var Rh=0;Rh<Of[Ef].length;Rh++)Of[Ef][Rh][0]/=10.5,Of[Ef][Rh][1]/=-10.5/.75,Of[Ef][Rh][0]+=sL[0],Of[Ef][Rh][1]+=sL[1];function B0t(t,e){if(t==="china"){for(var n=0;n<e.length;n++)if(e[n].name===NU)return;e.push(new fae(NU,Ie(Of,function(r){return{type:"polygon",exterior:r}}),sL))}}var $0t={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function I0t(t,e){if(t==="china"){var n=$0t[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),e.setCenter(r)}}}var P0t=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function F0t(t,e){t==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:P0t[0]})}var z0t="name",G0t=function(){function t(e,n,r){this.type="geoJSON",this._parsedMap=ht(),this._mapName=e,this._specialAreas=r,this._geoJSON=H0t(n)}return t.prototype.load=function(e,n){n=n||z0t;var r=this._parsedMap.get(n);if(!r){var a=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:a,boundingRect:U0t(a)})}var i=ht(),o=[];return W(r.regions,function(s){var l=s.name;e&<(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new Ft(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(e){var n=this._mapName,r=this._geoJSON,a;try{a=r?ZR(r,e):[]}catch(i){throw new Error(`Invalid geoJson format
- `+i.message)}return B0t(n,a),W(a,function(i){var o=i.name;I0t(n,i),F0t(n,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),a},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function U0t(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function H0t(t){return it(t)?typeof JSON<"u"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var Ng=ht();const Yl={registerMap:function(t,e,n){if(e.svg){var r=new A0t(t,e.svg);Ng.set(t,r)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?n=e.specialAreas:a=e;var r=new G0t(t,a,n);Ng.set(t,r)}},getGeoResource:function(t){return Ng.get(t)},getMapForUser:function(t){var e=Ng.get(t);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(t,e,n){var r=Ng.get(t);if(r)return r.load(e,n)}};var mV=["rect","circle","line","ellipse","polygon","polyline","path"],W0t=ht(mV),K0t=ht(mV.concat(["g"])),j0t=ht(mV.concat(["g"])),pie=sn();function JS(t){var e=t.getItemStyle(),n=t.get("areaColor");return n!=null&&(e.fill=n),e}function VU(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Y0t=function(){function t(e){var n=new Ct;this.uid=Gv("ec_map_draw"),this._controller=new o1(e.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new Ct),n.add(this._svgGroup=new Ct)}return t.prototype.draw=function(e,n,r,a,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&n.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,h=f.roam,v=!u.childAt(0)||i;v?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):cn(c,h,e);var p=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:p,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=ht(),r=ht(),a=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,v){return v&&(h=v(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function f(h){for(var v=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var y=c(h[g],p);y&&v.push(y)}return v}function d(h){return{shape:{points:f(h)}}}a.removeAll(),W(e.geo.regions,function(h){var v=h.name,p=n.get(v),g=r.get(v)||{},y=g.dataIdx,m=g.regionModel;p||(p=n.set(v,new Ct),a.add(p),y=s?s.indexOfName(v):null,m=e.isGeo?o.getRegionModel(v):s?s.getItemModel(y):null,r.set(v,{dataIdx:y,regionModel:m}));var S=[],b=[];W(h.geometries,function(C){if(C.type==="polygon"){var T=[C.exterior].concat(C.interiors||[]);u&&(T=zU(T,u)),W(T,function(M){S.push(new Za(d(M)))})}else{var D=C.points;u&&(D=zU(D,u,!0)),W(D,function(M){b.push(new ei(d(M)))})}});var x=c(h.getCenter(),l&&l.project);function _(C,T){if(C.length){var D=new IC({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});p.add(D),BU(e,D,y,m),$U(e,D,v,m,o,y,x),T&&(VU(D),W(D.states,VU))}}_(S),_(b,!0)}),n.each(function(h,v){var p=r.get(v),g=p.dataIdx,y=p.regionModel;IU(e,h,v,y,o,g),PU(e,h,v,y,o),FU(e,h,v,y,o)},this)},t.prototype._buildSVG=function(e){var n=e.geo.map,r=e.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var a=this._svgDispatcherMap=ht(),i=!1;W(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(W0t.get(c)!=null&&f instanceof ho&&BU(e,f,d,h),f instanceof ho&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(j0t.get(c)!=null&&$U(e,f,s,h,l,d,null),IU(e,f,s,h,l,d),PU(e,f,s,h,l),K0t.get(c)!=null)){var v=FU(e,f,s,h,l);v==="self"&&(i=!0);var p=a.get(s)||a.set(s,[]);p.push(f)}},this),this._enableBlurEntireSVG(i,e)},t.prototype._enableBlurEntireSVG=function(e,n){if(e&&n.isGeo){var r=n.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),a=r.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){Pd(i);var o=i.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),i.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(e,n){if(e==null)return[];var r=n.coordinateSystem;if(r.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var i=a.get(e);return i?[i]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},t.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},t.prototype._useSVG=function(e){var n=Yl.getGeoResource(e);if(n&&n.type==="geoSVG"){var r=n.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=e}},t.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var n=Yl.getGeoResource(e);n&&n.type==="geoSVG"&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(e,n,r){var a=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=a.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,gV(o,u.dx,u.dy),r.dispatchAction(Oe(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,yV(o,u.scale,u.originX,u.originY),r.dispatchAction(Oe(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,c,f){return a.containPoint([c,f])&&!aT(u,r,e)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var n=e.getTextContent();n&&(n.ignore=pie(n).ignore)})},t.prototype._updateMapSelectHandler=function(e,n,r,a){var i=this;n.off("mousedown"),n.off("click"),e.get("selectedMode")&&(n.on("mousedown",function(){i._mouseDownFlag=!0}),n.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},t}();function BU(t,e,n,r){var a=r.getModel("itemStyle"),i=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=JS(a),u=JS(i),c=JS(s),f=JS(o),d=t.data;if(d){var h=d.getItemVisual(n,"style"),v=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),v&&(l.decal=dv(v,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=f,Pd(e)}function $U(t,e,n,r,a,i,o){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),c=s&&s.getItemLayout(i);if(l||u||c&&c.showLabel){var f=l?n:i,d=void 0;(!s||i>=0)&&(d=a);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ca(e,Pr(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var v=e.getTextContent();if(v&&(pie(v).ignore=v.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function IU(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 PU(t,e,n,r,a){t.data||Fv({el:e,componentModel:a,itemName:n,itemTooltipOption:r.get("tooltip")})}function FU(t,e,n,r,a){e.highDownSilentOnTouch=!!a.get("selectedMode");var i=r.getModel("emphasis"),o=i.get("focus");return ar(e,o,i.get("blurScope"),i.get("disabled")),t.isGeo&&Blt(e,a,n),o}function zU(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<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}const vie=Y0t;var X0t=function(t){we(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){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===n.id){var s=this._mapDraw;s&&o.add(s.group)}else if(n.needsDrawMap){var s=this._mapDraw||new vie(a);o.add(s.group),s.draw(n,r,a,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(n,r,a)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(n,r,a){var i=n.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new as({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Bv+1)});if(!f){var h=n.mainSeries.getData(),v=i.getName(l),p=h.indexOfName(v),g=i.getItemModel(l),y=g.getModel("label"),m=h.getItemGraphicEl(p);ca(d,Pr(g),{labelFetcher:{getFormattedLabel:function(S,b){return n.getFormattedLabel(p,b)}},defaultText:v}),d.disableLabelAnimation=!0,y.get("position")||d.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(S){k_(d,S)}}o.add(d)}}})},e.type="map",e}(kn);const q0t=X0t;var Z0t=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(r){if(r!=null){var a=this.getData().getName(r),i=this.coordinateSystem,o=i.getRegion(a);return o&&i.dataToPoint(o.getCenter())}},n}return e.prototype.getInitialData=function(n){for(var r=Qv(this,{coordDimensions:["value"],encodeDefaulter:kt(ON,this)}),a=ht(),i=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);a.set(l,!0)}var u=Yl.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return W(u.regions,function(c){var f=c.name;a.get(f)||i.push(f)}),r.appendValues([],i),r},e.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return n!=null?this.ecModel.getComponent("geo",n):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(n){var r=this.getData();return r.get(r.mapDimension("value"),n)},e.prototype.getRegionModel=function(n){var r=this.getData();return r.getItemModel(r.indexOfName(n))},e.prototype.formatTooltip=function(n,r,a){for(var i=this.getData(),o=this.getRawValue(n),s=i.getName(n),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=i.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return Fr("section",{header:u.join(", "),noHeader:!u.length,blocks:[Fr("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.getLegendIcon=function(n){var r=n.icon||"roundRect",a=fr(r,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return a.setStyle(n.itemStyle),a.style.stroke="none",r.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.style.lineWidth=2),a},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}(In);const Q0t=Z0t;function J0t(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;c<u;c++)s=Math.min(s,n[i][c]),l=Math.max(l,n[i][c]),o+=n[i][c];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=o/u:f=o,u===0?NaN:f})}function eyt(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getHostGeoModel(),a=r?"o"+r.id:"i"+n.getMapType();(e[a]=e[a]||[]).push(n)}),W(e,function(n,r){for(var a=J0t(Ie(n,function(o){return o.getData()}),n[0].get("mapValueCalculation")),i=0;i<n.length;i++)n[i].originalData=n[i].getData();for(var i=0;i<n.length;i++)n[i].seriesGroup=n,n[i].needsDrawMap=i===0&&!n[i].getHostGeoModel(),n[i].setData(a.cloneShallow()),n[i].mainSeries=n[0]})}function tyt(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||e[r])){var a={};W(n.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&t.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var h=a[f]||0,v=s.dataToPoint(d.getCenter());a[f]=h+1,l.setItemLayout(c,{point:v,offset:h})}})});var i=n.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!a[s],i.setItemLayout(o,l)}),e[r]=!0}})}var GU=Xr,nyt=function(t){we(e,t);function e(n){var r=t.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Dl,r._rawTransformable=new Dl,r.name=n,r}return e.prototype.setBoundingRect=function(n,r,a,i){return this._rect=new Ft(n,r,a,i),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(n,r,a,i){this._transformTo(n,r,a,i),this._viewRect=new Ft(n,r,a,i)},e.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new Ft(n,r,a,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(n,r){n&&(this._center=[tt(n[0],r.getWidth()),tt(n[1],r.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(n){n=n||1;var r=this.zoomLimit;r&&(r.max!=null&&(n=Math.min(r.max,n)),r.min!=null&&(n=Math.max(r.min,n))),this._zoom=n,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,a=n.y+n.height/2;return[r,a]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,a=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=Xr([],i,n),a=Xr([],a,n),r.originX=i[0],r.originY=i[1],r.x=a[0]-i[0],r.y=a[1]-i[1],r.scaleX=r.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),TC(this.transform||(this.transform=[]),r.transform||Li()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],Jd(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,a=new Dl;return a.transform=r.transform,a.decomposeTransform(),{roam:{x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},e.prototype.dataToPoint=function(n,r,a){var i=r?this._rawTransform:this.transform;return a=a||[],i?GU(a,n,i):ya(a,n)},e.prototype.pointToData=function(n){var r=this.invTransform;return r?GU([],n,r):[n[0],n[1]]},e.prototype.convertToPixel=function(n,r,a){var i=UU(r);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(n,r,a){var i=UU(r);return i===this?i.pointToData(a):null},e.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},e.dimensions=["x","y"],e}(Dl);function UU(t){var e=t.seriesModel;return e?e.coordinateSystem:null}const s1=nyt;var ryt={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},gie=["lng","lat"],yie=function(t){we(e,t);function e(n,r,a){var i=t.call(this,n)||this;i.dimensions=gie,i.type="geo",i._nameCoordMap=ht(),i.map=r;var o=a.projection,s=Yl.load(r,a.nameMap,a.nameProperty),l=Yl.getGeoResource(r);i.resourceType=l?l.type:null;var u=i.regions=s.regions,c=ryt[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var f;if(o)for(var d=0;d<u.length;d++){var h=u[d].getBoundingRect(o);f=f||h.clone(),f.union(h)}else f=s.boundingRect;return i.setBoundingRect(f.x,f.y,f.width,f.height),i.aspectScale=o?1:Pt(a.aspectScale,c.aspectScale),i._invertLongitute=o?!1:c.invertLongitute,i}return e.prototype._transformTo=function(n,r,a,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new Ft(n,r,a,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(n){return this._regionsMap.get(n)},e.prototype.getRegionByCoord=function(n){for(var r=this.regions,a=0;a<r.length;a++){var i=r[a];if(i.type==="geoJSON"&&i.contain(n))return r[a]}},e.prototype.addGeoCoord=function(n,r){this._nameCoordMap.set(n,r)},e.prototype.getGeoCoord=function(n){var r=this._regionsMap.get(n);return this._nameCoordMap.get(n)||r&&r.getCenter()},e.prototype.dataToPoint=function(n,r,a){if(it(n)&&(n=this.getGeoCoord(n)),n){var i=this.projection;return i&&(n=i.project(n)),n&&this.projectedToPoint(n,r,a)}},e.prototype.pointToData=function(n){var r=this.projection;return r&&(n=r.unproject(n)),n&&this.pointToProjected(n)},e.prototype.pointToProjected=function(n){return t.prototype.pointToData.call(this,n)},e.prototype.projectedToPoint=function(n,r,a){return t.prototype.dataToPoint.call(this,n,r,a)},e.prototype.convertToPixel=function(n,r,a){var i=HU(r);return i===this?i.dataToPoint(a):null},e.prototype.convertFromPixel=function(n,r,a){var i=HU(r);return i===this?i.pointToData(a):null},e}(s1);sr(yie,s1);function HU(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",yr).models[0]||{}).coordinateSystem:null}const WU=yie;function KU(t,e){var n=t.get("boundingCoords");if(n!=null){var r=n[0],a=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(a[0])&&isFinite(a[1])){var i=this.projection;if(i){var o=r[0],s=r[1],l=a[0],u=a[1];r=[1/0,1/0],a=[-1/0,-1/0];var c=function(_,C,T,D){for(var M=T-_,E=D-C,k=0;k<=100;k++){var R=k/100,O=i.project([_+M*R,C+E*R]);El(r,r,O),Ml(a,a,O)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(r[0],r[1],a[0]-r[0],a[1]-r[1])}}var f=this.getBoundingRect(),d=t.get("layoutCenter"),h=t.get("layoutSize"),v=e.getWidth(),p=e.getHeight(),g=f.width/f.height*this.aspectScale,y=!1,m,S;d&&h&&(m=[tt(d[0],v),tt(d[1],p)],S=tt(h,Math.min(v,p)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(S)&&(y=!0));var b;if(y)b={},g>1?(b.width=S,b.height=S/g):(b.height=S,b.width=S*g),b.y=m[1]-b.height/2,b.x=m[0]-b.width/2;else{var x=t.getBoxLayoutParams();x.aspect=g,b=xr(x,{width:v,height:p})}this.setViewRect(b.x,b.y,b.width,b.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function ayt(t,e){W(e.get("geoCoord"),function(n,r){t.addGeoCoord(r,n)})}var iyt=function(){function t(){this.dimensions=gie}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 WU(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=KU,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=Ie(o,function(c){return c.get("nameMap")}),u=new WU(s,s,Oe({nameMap:_C(l)},a(o[0])));u.zoomLimit=Nr.apply(null,Ie(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=KU,u.resize(o[0],n),W(o,function(c){c.coordinateSystem=u,ayt(u,c)})}),r},t.prototype.getFilledRegions=function(e,n,r,a){for(var i=(e||[]).slice(),o=ht(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=Yl.load(n,r,a);return W(l.regions,function(u){var c=u.name;!o.get(c)&&i.push({name:c})}),i},t}(),oyt=new iyt;const mie=oyt;var syt=function(t){we(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=Yl.getGeoResource(n.map);if(i&&i.type==="geoJSON"){var o=n.itemStyle=n.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(n,a),Bd(n,"label",["show"])},e.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=mie.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var a={};this._optionModelMap=fo(r.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Mn(o,n,n.ecModel)),o.selected&&(a[s]=!0)),i},ht()),r.selectedMap||(r.selectedMap=a)},e.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new Mn(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(n,r){var a=this.getRegionModel(n),i=r==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:n};if(gt(i))return o.status=r,i(o);if(it(i))return i.replace("{a}",n??"")},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.select=function(n){var r=this.option,a=r.selectedMode;if(a){a!=="multiple"&&(r.selectedMap=null);var i=r.selectedMap||(r.selectedMap={});i[n]=!0}},e.prototype.unSelect=function(n){var r=this.option.selectedMap;r&&(r[n]=!1)},e.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},e.prototype.isSelected=function(n){var r=this.option.selectedMap;return!!(r&&r[n])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(Qt);const lyt=syt;function jU(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function SV(t,e,n,r){var a=t.getZoom(),i=t.getCenter(),o=e.zoom,s=t.projectedToPoint?t.projectedToPoint(i):t.dataToPoint(i);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(jU(t,s),r)),o!=null){if(n){var l=n.min||0,u=n.max||1/0;o=Math.max(Math.min(a*o,u),l)/a}t.scaleX*=o,t.scaleY*=o;var c=(e.originX-t.x)*(o-1),f=(e.originY-t.y)*(o-1);t.x-=c,t.y-=f,t.updateTransform(),t.setCenter(jU(t,s),r),t.setZoom(o*a)}return{center:t.getCenter(),zoom:t.getZoom()}}var uyt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return e.prototype.init=function(n,r){this._api=r},e.prototype.render=function(n,r,a,i){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new vie(a));var o=this._mapDraw;o.draw(n,r,a,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=n.get("silent"),this.group.add(o.group),this.updateSelectStatus(n,r,a)},e.prototype._handleRegionClick=function(n){var r;sd(n.target,function(a){return(r=Rt(a).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},e.prototype.updateSelectStatus=function(n,r,a){var i=this;this._mapDraw.group.traverse(function(o){var s=Rt(o).eventData;if(s)return i._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(jn);const cyt=uyt;function fyt(t,e,n){Yl.registerMap(t,e,n)}function Sie(t){t.registerCoordinateSystem("geo",mie),t.registerComponentModel(lyt),t.registerComponentView(cyt),t.registerImpl("registerMap",fyt),t.registerImpl("getMap",function(n){return Yl.getMapForUser(n)});function e(n,r){r.update="geo:updateSelectStatus",t.registerAction(r,function(a,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:a},function(l){l[n](a.name);var u=l.coordinateSystem;W(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];W(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,r,a){var i=n.componentType||"series";r.eachComponent({mainType:i,query:n},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=SV(s,n,o.get("scaleLimit"),a);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&W(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function dyt(t){Ut(Sie),t.registerChartView(q0t),t.registerSeriesModel(Q0t),t.registerLayout(tyt),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,eyt),pre("map",t.registerAction)}function hyt(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[e],r,a;r=n.pop();)if(a=r.children,r.isExpand&&a.length)for(var i=a.length,o=i-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function pyt(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){yyt(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=myt(t,a,t.parentNode.hierNode.defaultAncestor||r[0],e)}function vyt(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function YU(t){return arguments.length?t:wyt}function o0(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function gyt(t,e){return xr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function yyt(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 myt(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=tM(s),i=nM(i),s&&i;){a=tM(a),o=nM(o),a.hierNode.ancestor=t;var d=s.hierNode.prelim+f-i.hierNode.prelim-u+r(s,i);d>0&&(byt(Syt(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&&!tM(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=f-l),i&&!nM(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-c,n=t)}return n}function tM(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function nM(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function Syt(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function byt(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 wyt(t,e){return t.parentNode===e.parentNode?1:2}var _yt=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),xyt=function(t){we(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 _yt},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=tt(r.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,n.moveTo(o[0],o[1]),n.lineTo(h[0],h[1]),n.moveTo(s[0],s[1]),h[c]=s[c],n.lineTo(h[0],h[1]),h[c]=l[c],n.lineTo(h[0],h[1]),n.lineTo(l[0],l[1]);for(var v=1;v<i-1;v++){var p=a[v];n.moveTo(p[0],p[1]),h[c]=p[c],n.lineTo(h[0],h[1])}},e}(Wt),Cyt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Ct,n}return e.prototype.init=function(n,r){this._controller=new o1(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(n,r,a){var i=n.getData(),o=n.layoutInfo,s=this._mainGroup,l=n.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(n,a),this._updateController(n,r,a);var u=this._data;i.diff(u).add(function(c){XU(i,c)&&qU(i,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!XU(i,c)){d&&QU(u,f,d,s,n);return}qU(i,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&QU(u,c,f,s,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:f})})}),this._data=i},e.prototype._updateViewCoordSys=function(n,r){var a=n.getData(),i=[];a.each(function(f){var d=a.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&i.push([+d.x,+d.y])});var o=[],s=[];AC(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=n.coordinateSystem=new s1;c.zoomLimit=n.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(n.get("center"),r),c.setZoom(n.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(n,r,a){var i=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!aT(u,a,n)}),o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){gV(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){yV(s,u.scale,u.originX,u.originY),a.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),i._updateNodeAndLinkScale(n),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),a=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(i,o){i.setSymbolScale(a)})},e.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var a=this._nodeScaleRatio,i=r.scaleX||1,o=r.getZoom(),s=(o-1)*a+1;return s/i},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(kn);function XU(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function qU(t,e,n,r,a){var i=!n,o=t.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=t.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=t.getItemGraphicEl(f.dataIndex),h=f.getLayout(),v=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,p=o.getLayout();i?(n=new t1(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=v.x,n.y=v.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=p.rawX,n.__radialRawY=p.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,cn(n,{x:p.x,y:p.y},a);var g=n.getSymbolPath();if(a.get("layout")==="radial"){var y=c.children[0],m=y.getLayout(),S=y.children.length,b=void 0,x=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var _={x:(y.children[0].getLayout().x+y.children[S-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[S-1].getLayout().y)/2};b=Math.atan2(_.y-m.y,_.x-m.x),b<0&&(b=Math.PI*2+b),x=_.x<m.x,x&&(b=b-Math.PI)}else b=Math.atan2(p.y-m.y,p.x-m.x),b<0&&(b=Math.PI*2+b),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(x=p.x<m.x,x&&(b=b-Math.PI)):(x=p.x>m.x,x||(b=b-Math.PI));var C=x?"left":"right",T=s.getModel("label"),D=T.get("rotate"),M=D*(Math.PI/180),E=g.getTextContent();E&&(g.setTextConfig({position:T.get("position")||C,rotation:D==null?-b:M,origin:"center"}),E.setStyle("verticalAlign","middle"))}var k=s.get(["emphasis","focus"]),R=k==="relative"?Ay(o.getAncestorsIndices(),o.getDescendantIndices()):k==="ancestor"?o.getAncestorsIndices():k==="descendant"?o.getDescendantIndices():null;R&&(Rt(n).focus=R),Tyt(a,o,c,n,v,h,p,r),n.__edge&&(n.onHoverStateChange=function(O){if(O!=="blur"){var B=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);B&&B.hoverState===Wm||k_(n.__edge,O)}})}function Tyt(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"),v=l.getModel("lineStyle").getLineStyle(),p=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==n&&(p||(p=r.__edge=new jm({shape:lL(c,f,d,a,a)})),cn(p,{shape:lL(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;m<g.length;m++){var S=g[m].getLayout();y.push([S.x,S.y])}p||(p=r.__edge=new xyt({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),cn(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},t)}p&&!(u==="polyline"&&!e.isExpand)&&(p.useStyle(mt({strokeNoScale:!0,fill:null},v)),ua(p,l,"lineStyle"),Pd(p),s.add(p))}function ZU(t,e,n,r,a){var i=e.tree.root,o=bie(i,t),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),h=r.get("edgeShape"),v=r.get("layout"),p=r.get("orient"),g=r.get(["lineStyle","curveness"]);d&&(h==="curve"?bc(d,{shape:lL(v,p,g,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}):h==="polyline"&&r.get("layout")==="orthogonal"&&bc(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:a}))}}function bie(t,e){for(var n=e.parentNode===t?e:e.parentNode||e,r;r=n.getLayout(),r==null;)n=n.parentNode===t?n:n.parentNode||n;return{source:n,sourceLayout:r}}function QU(t,e,n,r,a){var i=t.tree.getNodeByDataIndex(e),o=t.tree.root,s=bie(o,i).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};bc(n,{x:s.x+1,y:s.y+1},a,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){ZU(u,t,r,a,l)}),ZU(i,t,r,a,l)}function lL(t,e,n,r,a){var i,o,s,l,u,c,f,d;if(t==="radial"){u=r.rawX,f=r.rawY,c=a.rawX,d=a.rawY;var h=o0(u,f),v=o0(u,f+(d-f)*n),p=o0(c,d+(f-d)*n),g=o0(c,d);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=r.x,f=r.y,c=a.x,d=a.y,(e==="LR"||e==="RL")&&(i=u+(c-u)*n,o=f,s=c+(u-c)*n,l=d),(e==="TB"||e==="BT")&&(i=u,o=f+(d-f)*n,s=c,l=d+(f-d)*n);return{x1:u,y1:f,x2:c,y2:d,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const Eyt=Cyt;var no=sn();function wie(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,_ie(e,n,t),W(n,function(r){W(e.TRANSFERABLE_METHODS,function(a){r.wrapMethod(a,kt(Myt,t))})}),e.wrapMethod("cloneShallow",kt(kyt,t)),W(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,kt(Dyt,t))}),Ea(n[e.dataType]===e)}function Myt(t,e){if(Oyt(this)){var n=Oe({},no(this).datas);n[this.dataType]=e,_ie(e,n,t)}else bV(e,this.dataType,no(this).mainData,t);return e}function Dyt(t,e){return t.struct&&t.struct.update(),e}function kyt(t,e){return W(no(e).datas,function(n,r){n!==e&&bV(n.cloneShallow(),r,e,t)}),e}function Ryt(t){var e=no(this).mainData;return t==null||e==null?e:no(e).datas[t]}function Lyt(){var t=no(this).mainData;return t==null?[{data:t}]:Ie(Yt(no(t).datas),function(e){return{type:e,data:no(t).datas[e]}})}function Oyt(t){return no(t).mainData===t}function _ie(t,e,n){no(t).datas={},W(e,function(r,a){bV(r,a,t,n)})}function bV(t,e,n,r){no(n).datas[e]=t,no(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=Ryt,t.getLinkedDataAll=Lyt}var Ayt=function(){function t(e,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=n}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(e,n,r){gt(e)&&(r=n,n=e,e=null),e=e||{},it(e)&&(e={order:e});var a=e.order||"preorder",i=this[e.attr||"children"],o;a==="preorder"&&(o=n.call(r,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,n,r);a==="postorder"&&n.call(r,this)},t.prototype.updateDepthAndHeight=function(e){var n=0;this.depth=e;for(var r=0;r<this.children.length;r++){var a=this.children[r];a.updateDepthAndHeight(e+1),a.height>n&&(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<a;n++){var i=r[n].getNodeById(e);if(i)return i}},t.prototype.contains=function(e){if(e===this)return!0;for(var n=0,r=this.children,a=r.length;n<a;n++){var i=r[n].contains(e);if(i)return i}},t.prototype.getAncestors=function(e){for(var n=[],r=e?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},t.prototype.getAncestorsIndices=function(){for(var e=[],n=this;n;)e.push(n.dataIndex),n=n.parentNode;return e.reverse(),e},t.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(n){e.push(n.dataIndex)}),e},t.prototype.getValue=function(e){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},t.prototype.setLayout=function(e,n){this.dataIndex>=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<e.length;++n)if(e[n]===this)return n;return-1}return-1},t.prototype.isAncestorOf=function(e){for(var n=e.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},t.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},t}(),Nyt=function(){function t(e){this.type="tree",this._nodes=[],this.hostModel=e}return t.prototype.eachNode=function(e,n,r){this.root.eachNode(e,n,r)},t.prototype.getNodeByDataIndex=function(e){var n=this.data.getRawIndex(e);return this._nodes[n]},t.prototype.getNodeById=function(e){return this.root.getNodeById(e)},t.prototype.update=function(){for(var e=this.data,n=this._nodes,r=0,a=n.length;r<a;r++)n[r].dataIndex=-1;for(var r=0,a=e.count();r<a;r++)n[e.getRawIndex(r)].dataIndex=r},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var a=new t(n),i=[],o=1;s(e);function s(c,f){var d=c.value;o=Math.max(o,$e(d)?d.length:1),i.push(c);var h=new Ayt(Rr(c.name,""),a);f?Vyt(h,f):a.root=h,a._nodes.push(h);var v=c.children;if(v)for(var p=0;p<v.length;p++)s(v[p],h)}a.root.updateDepthAndHeight(0);var l=qv(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new _a(l,n);return u.initData(i),r&&r(u),wie({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},t}();function Vyt(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}const wV=Nyt;function rm(t,e,n){if(t&&zt(e,t.type)>=0){var r=n.getData().tree.root,a=t.targetNode;if(it(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 xie(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function _V(t,e){var n=xie(t);return zt(n,e)>=0}function oT(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 Byt=function(t){we(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 Mn(a,this,this.ecModel),o=wV.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(d.parentModel=i),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},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 Fr("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=oT(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}(In);const $yt=Byt;function Iyt(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<o.length;s++)r.push(o[s])}for(;i=a.pop();)e(i,n)}function Vg(t,e){for(var n=[t],r;r=n.pop();)if(e(r),r.isExpand){var a=r.children;if(a.length)for(var i=a.length-1;i>=0;i--)n.push(a[i])}}function Pyt(t,e){t.eachSeriesByType("tree",function(n){Fyt(n,e)})}function Fyt(t,e){var n=gyt(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=YU(function(S,b){return(S.parentNode===b.parentNode?1:2)/S.depth})):(a=n.width,i=n.height,o=YU());var s=t.getData().tree.root,l=s.children[0];if(l){hyt(s),Iyt(l,pyt,o),s.hierNode.modifier=-l.hierNode.prelim,Vg(l,vyt);var u=l,c=l,f=l;Vg(l,function(S){var b=S.getLayout().x;b<u.getLayout().x&&(u=S),b>c.getLayout().x&&(c=S),S.depth>f.depth&&(f=S)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,v=0,p=0,g=0,y=0;if(r==="radial")v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Vg(l,function(S){g=(S.getLayout().x+h)*v,y=(S.depth-1)*p;var b=o0(g,y);S.setLayout({x:b.x,y:b.y,rawX:g,rawY:y},!0)});else{var m=t.getOrient();m==="RL"||m==="LR"?(p=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),Vg(l,function(S){y=(S.getLayout().x+h)*p,g=m==="LR"?(S.depth-1)*v:a-(S.depth-1)*v,S.setLayout({x:g,y},!0)})):(m==="TB"||m==="BT")&&(v=a/(c.getLayout().x+d+h),p=i/(f.depth-1||1),Vg(l,function(S){g=(S.getLayout().x+h)*v,y=m==="TB"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:g,y},!0)}))}}}function zyt(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 Gyt(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=SV(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}function Uyt(t){t.registerChartView(Eyt),t.registerSeriesModel($yt),t.registerLayout(Pyt),t.registerVisual(zyt),Gyt(t)}var JU=["treemapZoomToNode","treemapRender","treemapMove"];function Hyt(t){for(var e=0;e<JU.length;e++)t.registerAction({type:JU[e],update:"updateView"},ir);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},a);function a(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=rm(n,s,i);if(l){var u=i.getViewRoot();u&&(n.direction=_V(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function Cie(t){var e=t.getData(),n=e.tree,r={};n.eachNode(function(a){for(var i=a;i&&i.depth>1;)i=i.parentNode;var o=BR(t.ecModel,i.name||i.dataIndex+"",r);a.setVisual("decal",o)})}var Wyt=function(t){we(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};Tie(a);var i=n.levels||[],o=this.designatedVisualItemStyle={},s=new Mn({itemStyle:o},this,r);i=n.levels=Kyt(i,r);var l=Ie(i||[],function(f){return new Mn(f,s,r)},this),u=wV.createTree(a,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var v=u.getNodeByDataIndex(h),p=v?l[v.depth]:null;return d.parentModel=p||s,d})}return u.data},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 Fr("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=oT(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=ht(),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(){Cie(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}(In);function Tie(t){var e=0;W(t.children,function(r){Tie(r);var a=r.value;$e(a)&&(a=a[0]),e+=a});var n=t.value;$e(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),$e(t.value)?t.value[0]=n:t.value=n}function Kyt(t,e){var n=Dn(e.get("color")),r=Dn(e.get(["aria","decal","decals"]));if(n){t=t||[];var a,i;W(t,function(s){var l=new Mn(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 jyt=Wyt;var Yyt=8,e6=8,rM=5,Xyt=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),KC(o,f.pos,f.box)}},t.prototype._prepare=function(e,n,r){for(var a=e;a;a=a.parentNode){var i=Rr(a.getModel().get("name"),""),o=r.getTextRect(i),s=Math.max(o.width+Yyt*2,n.emptyItemWidth);n.totalWidth+=s+e6,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=Uut(n.pos,n.box),d=n.totalWidth,h=n.renderList,v=a.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,S=g.text;d>f.width&&(d-=m-u,m=u,S=null);var b=new Za({shape:{points:qyt(l,0,m,c,p===h.length-1,p===0)},style:mt(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new tn({style:An(i,{text:S})}),textConfig:{position:"inside"},z2:Bv*1e4,onclick:kt(s,y)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=An(o,{text:S}),b.ensureState("emphasis").style=v,ar(b,a.get("focus"),a.get("blurScope"),a.get("disabled")),this.group.add(b),Zyt(b,e,y),l+=m+e6}},t.prototype.remove=function(){this.group.removeAll()},t}();function qyt(t,e,n,r,a,i){var o=[[a?t:t-rM,e],[t+n,e],[t+n,e+r],[a?t:t-rM,e+r]];return!i&&o.splice(2,0,[t+n+rM,e+r/2]),!a&&o.push([t,e+r/2]),o}function Zyt(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&&oT(n,e)}}const Qyt=Xyt;var Jyt=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;a<i;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:r,aborted:r})}return this},t}();function emt(){return new Jyt}var uL=Ct,t6=nn,n6=3,r6="label",a6="upperLabel",tmt=Bv*10,nmt=Bv*2,rmt=Bv*3,Af=Id([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),i6=function(t){var e=Af(t);return e.stroke=e.fill=e.lineWidth=null,e},ex=sn(),amt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=Bg(),n}return e.prototype.render=function(n,r,a,i){var o=r.findComponents({mainType:"series",subType:"treemap",query:i});if(!(zt(o,n)<0)){this.seriesModel=n,this.api=a,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=rm(i,s,n),u=i&&i.type,c=n.layoutInfo,f=!this._oldTree,d=this._storage,h=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,v=this._giveContainerGroup(c),p=n.get("animation"),g=this._doRender(v,n,h);p&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,g,n,h):g.renderFinally(),this._resetController(a),this._renderBreadcrumb(n,a,l)}},e.prototype._giveContainerGroup=function(n){var r=this._containerGroup;return r||(r=this._containerGroup=new uL,this._initEvents(r),this.group.add(r)),r.x=n.x,r.y=n.y,r},e.prototype._doRender=function(n,r,a){var i=r.getData().tree,o=this._oldTree,s=Bg(),l=Bg(),u=this._storage,c=[];function f(g,y,m,S){return imt(r,l,u,a,s,c,g,y,m,S)}h(i.root?[i.root]:[],o&&o.root?[o.root]:[],n,i===o||!o,0);var d=v(u);return this._oldTree=i,this._storage=l,{lastsForAnimation:s,willDeleteEls:d,renderFinally:p};function h(g,y,m,S,b){S?(y=g,W(g,function(C,T){!C.isRemoved()&&_(T,T)})):new Wl(y,g,x,x).add(_).update(_).remove(kt(_,null)).execute();function x(C){return C.getId()}function _(C,T){var D=C!=null?g[C]:null,M=T!=null?y[T]:null,E=f(D,M,m,b);E&&h(D&&D.viewChildren||[],M&&M.viewChildren||[],E,S,b+1)}}function v(g){var y=Bg();return g&&W(g,function(m,S){var b=y[S];W(m,function(x){x&&(b.push(x),ex(x).willDelete=!0)})}),y}function p(){W(d,function(g){W(g,function(y){y.parent&&y.parent.remove(y)})}),W(c,function(g){g.invisible=!0,g.dirty()})}},e.prototype._doAnimation=function(n,r,a,i){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(gt(o)?0:o)||0,u=(gt(s)?null:s)||"cubicOut",c=emt();W(r.willDeleteEls,function(f,d){W(f,function(h,v){if(!h.invisible){var p=h.parent,g,y=ex(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,S=0;y.willDelete||(m=y.nodeWidth/2,S=y.nodeHeight/2),g=d==="nodeGroup"?{x:m,y:S,style:{opacity:0}}:{shape:{x:m,y:S,width:0,height:0},style:{opacity:0}}}g&&c.add(h,g,l,0,u)}})}),W(this._storage,function(f,d){W(f,function(h,v){var p=r.lastsForAnimation[d][v],g={};p&&(h instanceof Ct?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=Oe({},h.shape),h.setShape(p.oldShape)),p.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),c.add(h,g,l,0,u))})},this),this._state="animating",c.finished(st(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(n){var r=this._controller;r||(r=this._controller=new o1(n.getZr()),r.enable(this.seriesModel.get("roam")),r.on("pan",st(this._onPan,this)),r.on("zoom",st(this._onZoom,this)));var a=new Ft(0,0,n.getWidth(),n.getHeight());r.setPointerChecker(function(i,o,s){return a.contain(o,s)})},e.prototype._clearController=function(){var n=this._controller;n&&(n.dispose(),n=null)},e.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>n6||Math.abs(n.dy)>n6)){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=Li();ns(u,u,[-r,-a]),EC(u,u,[n.scale,n.scale]),ns(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&&V_(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 Qyt(this.group))).render(n,r,a.node,function(o){i._state!=="animating"&&(_V(n.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Bg(),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}(kn);function Bg(){return{nodeGroup:[],background:[],content:[]}}function imt(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,v=c.height,p=c.borderWidth,g=c.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),S=o.viewChildren,b=c.upperHeight,x=S&&S.length,_=d.getModel("itemStyle"),C=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),D=d.getModel(["select","itemStyle"]),M=_.get("borderRadius")||0,E=ie("nodeGroup",uL);if(!E)return;if(l.add(E),E.x=c.x||0,E.y=c.y||0,E.markRedraw(),ex(E).nodeWidth=h,ex(E).nodeHeight=v,c.isAboveViewRoot)return E;var k=ie("background",t6,u,nmt);k&&L(E,k,x&&c.upperLabelHeight);var R=d.getModel("emphasis"),O=R.get("focus"),B=R.get("blurScope"),$=R.get("disabled"),V=O==="ancestor"?o.getAncestorsIndices():O==="descendant"?o.getDescendantIndices():O;if(x)Hy(E)&&id(E,!1),k&&(id(k,!$),f.setItemGraphicEl(o.dataIndex,k),DR(k,V,B));else{var F=ie("content",t6,u,rmt);F&&N(E,F),k.disableMorphing=!0,k&&Hy(k)&&id(k,!1),id(E,!$),f.setItemGraphicEl(o.dataIndex,E),DR(E,V,B)}return E;function L(J,Z,ee){var ce=Rt(Z);if(ce.dataIndex=o.dataIndex,ce.seriesIndex=t.seriesIndex,Z.setShape({x:0,y:0,width:h,height:v,r:M}),g)H(Z);else{Z.invisible=!1;var ue=o.getVisual("style"),Y=ue.stroke,te=i6(_);te.fill=Y;var oe=Af(C);oe.fill=C.get("borderColor");var Se=Af(T);Se.fill=T.get("borderColor");var fe=Af(D);if(fe.fill=D.get("borderColor"),ee){var ne=h-2*p;K(Z,Y,ue.opacity,{x:p,y:0,width:ne,height:b})}else Z.removeTextContent();Z.setStyle(te),Z.ensureState("emphasis").style=oe,Z.ensureState("blur").style=Se,Z.ensureState("select").style=fe,Pd(Z)}J.add(Z)}function N(J,Z){var ee=Rt(Z);ee.dataIndex=o.dataIndex,ee.seriesIndex=t.seriesIndex;var ce=Math.max(h-2*p,0),ue=Math.max(v-2*p,0);if(Z.culling=!0,Z.setShape({x:p,y:p,width:ce,height:ue,r:M}),g)H(Z);else{Z.invisible=!1;var Y=o.getVisual("style"),te=Y.fill,oe=i6(_);oe.fill=te,oe.decal=Y.decal;var Se=Af(C),fe=Af(T),ne=Af(D);K(Z,te,Y.opacity,null),Z.setStyle(oe),Z.ensureState("emphasis").style=Se,Z.ensureState("blur").style=fe,Z.ensureState("select").style=ne,Pd(Z)}J.add(Z)}function H(J){!J.invisible&&i.push(J)}function K(J,Z,ee,ce){var ue=d.getModel(ce?a6:r6),Y=Rr(d.get("name"),null),te=ue.getShallow("show");ca(J,Pr(d,ce?a6:r6),{defaultText:te?Y:null,inheritColor:Z,defaultOpacity:ee,labelFetcher:t,labelDataIndex:o.dataIndex});var oe=J.getTextContent();if(oe){var Se=oe.style,fe=CC(Se.padding||0);ce&&(J.setTextConfig({layoutRect:ce}),oe.disableLabelLayout=!0),oe.beforeUpdate=function(){var Ee=Math.max((ce?ce.width:J.shape.width)-fe[1]-fe[3],0),_e=Math.max((ce?ce.height:J.shape.height)-fe[0]-fe[2],0);(Se.width!==Ee||Se.height!==_e)&&oe.setStyle({width:Ee,height:_e})},Se.truncateMinChar=2,Se.lineOverflow="truncate",Q(Se,ce,c);var ne=oe.getState("emphasis");Q(ne?ne.style:null,ce,c)}}function Q(J,Z,ee){var ce=J?J.text:null;if(!Z&&ee.isLeafRoot&&ce!=null){var ue=t.get("drillDownIcon",!0);J.text=ue?ue+" "+ce:ce}}function ie(J,Z,ee,ce){var ue=m!=null&&n[J][m],Y=a[J];return ue?(n[J][m]=null,be(Y,ue)):g||(ue=new Z,ue instanceof ho&&(ue.z2=omt(ee,ce)),le(Y,ue)),e[J][y]=ue}function be(J,Z){var ee=J[y]={};Z instanceof uL?(ee.oldX=Z.x,ee.oldY=Z.y):ee.oldShape=Oe({},Z.shape)}function le(J,Z){var ee=J[y]={},ce=o.parentNode,ue=Z instanceof Ct;if(ce&&(!r||r.direction==="drillDown")){var Y=0,te=0,oe=a.background[ce.getRawIndex()];!r&&oe&&oe.oldShape&&(Y=oe.oldShape.width,te=oe.oldShape.height),ue?(ee.oldX=0,ee.oldY=te):ee.oldShape={x:Y,y:te,width:0,height:0}}ee.fadein=!ue}}function omt(t,e){return t*tmt+e}const smt=amt;var am=W,lmt=bt,tx=-1,xV=function(){function t(e){var n=e.mappingMethod,r=e.type,a=this.option=wt(e);this.type=r,this.mappingMethod=n,this._normalizeData=fmt[n];var i=t.visualHandlers[r];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[n],n==="piecewise"?(aM(a),umt(a)):n==="category"?a.categories?cmt(a):aM(a,!0):(Ea(n!=="linear"||a.dataExtent),aM(a))}return t.prototype.mapValueToVisual=function(e){var n=this._normalizeData(e);return this._normalizedToVisual(n,e)},t.prototype.getNormalizer=function(){return st(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){bt(e)?W(e,n,r):n.call(r,e)},t.mapVisual=function(e,n,r){var a,i=$e(e)?[]:bt(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&&am(t.visualHandlers,function(a,i){e.hasOwnProperty(i)&&(n[i]=e[i],r=!0)}),r?n:null},t.prepareVisualTypes=function(e){if($e(e))e=e.slice();else if(lmt(e)){var n=[];am(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<s;o++){var l=n[o].value;if(l!=null){if(l===e||it(l)&&l===e+"")return o;r&&d(l,o)}}for(var o=0,s=n.length;o<s;o++){var u=n[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(tb(f[1],e,c[1]))return o}else if(c[1]===1/0){if(tb(f[0],c[0],e))return o}else if(tb(f[0],c[0],e)&&tb(f[1],e,c[1]))return o;r&&d(c[0],o),r&&d(c[1],o)}}if(r)return e===1/0?n.length-1:e===-1/0?0:a;function d(h,v){var p=Math.abs(h-e);p<i&&(i=p,a=v)}},t.visualHandlers={color:{applyVisual:$g("color"),getColorMapper:function(){var e=this.option;return st(e.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),s0.call(this,n)}:function(n,r,a){var i=!!a;return!r&&(n=this._normalizeData(n)),a=L0(n,e.parsedVisual,a),i?a:Zo(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Zo(L0(e,this.option.parsedVisual),"rgba")},category:s0,piecewise:function(e,n){var r=fL.call(this,n);return r==null&&(r=Zo(L0(e,this.option.parsedVisual),"rgba")),r},fixed:Nf}},colorHue:eb(function(e,n){return Dp(e,n)}),colorSaturation:eb(function(e,n){return Dp(e,null,n)}),colorLightness:eb(function(e,n){return Dp(e,null,null,n)}),colorAlpha:eb(function(e,n){return $y(e,n)}),decal:{applyVisual:$g("decal"),_normalizedToVisual:{linear:null,category:s0,piecewise:null,fixed:null}},opacity:{applyVisual:$g("opacity"),_normalizedToVisual:cL([0,1])},liftZ:{applyVisual:$g("liftZ"),_normalizedToVisual:{linear:Nf,category:Nf,piecewise:Nf,fixed:Nf}},symbol:{applyVisual:function(e,n,r){var a=this.mapValueToVisual(e);r("symbol",a)},_normalizedToVisual:{linear:o6,category:s0,piecewise:function(e,n){var r=fL.call(this,n);return r==null&&(r=o6.call(this,e)),r},fixed:Nf}},symbolSize:{applyVisual:$g("symbolSize"),_normalizedToVisual:cL([0,1])}},t}();function umt(t){var e=t.pieceList;t.hasSpecialVisual=!1,W(e,function(n,r){n.originIndex=r,n.visual!=null&&(t.hasSpecialVisual=!0)})}function cmt(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(am(e,function(o,s){n[o]=s}),!$e(r)){var a=[];bt(r)?am(r,function(o,s){var l=n[s];a[l??tx]=o}):a[tx]=r,r=Eie(t,a)}for(var i=e.length-1;i>=0;i--)r[i]==null&&(delete n[e[i]],e.pop())}function aM(t,e){var n=t.visual,r=[];bt(n)?am(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]),Eie(t,r)}function eb(t){return{applyVisual:function(e,n,r){var a=this.mapValueToVisual(e);r("color",t(n("color"),a))},_normalizedToVisual:cL([0,1])}}function o6(t){var e=this.option.visual;return e[Math.round(bn(t,[0,1],[0,e.length-1],!0))]||{}}function $g(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function s0(t){var e=this.option.visual;return e[this.option.loop&&t!==tx?t%e.length:t]}function Nf(){return this.option.visual[0]}function cL(t){return{linear:function(e){return bn(e,t,this.option.visual,!0)},category:s0,piecewise:function(e,n){var r=fL.call(this,n);return r==null&&(r=bn(e,t,this.option.visual,!0)),r},fixed:Nf}}function fL(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=xV.findPieceIndex(t,n),a=n[r];if(a&&a.visual)return a.visual[this.type]}}function Eie(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=Ie(e,function(n){var r=Ha(n);return r||[0,0,0,1]})),e}var fmt={linear:function(t){return bn(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=xV.findPieceIndex(t,e,!0);if(n!=null)return bn(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??tx},fixed:ir};function tb(t,e,n){return t?e<=n:e<n}const oa=xV;var dmt="itemStyle",Mie=sn();const hmt={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||Die(n,{},t.getViewRoot().getAncestors(),t)}};function Die(t,e,n,r){var a=t.getModel(),i=t.getLayout(),o=t.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=a.getModel(dmt),l=pmt(s,e,r),u=o.ensureUniqueItemVisual(t.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=s6(l),c=vmt(f,d)),u.stroke=c;var h=t.viewChildren;if(!h||!h.length)d=s6(l),u.fill=d;else{var v=gmt(t,a,i,s,l,h);W(h,function(p,g){if(p.depth>=n.length||p===n[p.depth]){var y=ymt(a,l,p,g,v,r);Die(p,y,n,r)}})}}}function pmt(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 s6(t){var e=iM(t,"color");if(e){var n=iM(t,"colorAlpha"),r=iM(t,"colorSaturation");return r&&(e=Dp(e,null,null,r)),n&&(e=$y(e,n)),e}}function vmt(t,e){return e!=null?Dp(e,null,null,t):null}function iM(t,e){var n=t[e];if(n!=null&&n!=="none")return n}function gmt(t,e,n,r,a,i){if(!(!i||!i.length)){var o=oM(e,"color")||a.color!=null&&a.color!=="none"&&(oM(e,"colorAlpha")||oM(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[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 oa(f);return Mie(d).drColorMappingBy=c,d}}}function oM(t,e){var n=t.get(e);return $e(n)&&n.length?{name:e,range:n}:null}function ymt(t,e,n,r,a,i){var o=Oe({},e);if(a){var s=a.type,l=s==="color"&&Mie(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 im=Math.max,nx=Math.min,l6=Nr,CV=W,kie=["itemStyle","borderWidth"],mmt=["itemStyle","gapWidth"],Smt=["upperLabel","show"],bmt=["upperLabel","height"];const wmt={seriesType:"treemap",reset:function(t,e,n,r){var a=n.getWidth(),i=n.getHeight(),o=t.option,s=xr(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=tt(l6(s.width,l[0]),a),c=tt(l6(s.height,l[1]),i),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],h=rm(r,d,t),v=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,p=t.getViewRoot(),g=xie(p);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?Mmt(t,h,p,u,c):v?[v.width,v.height]:[u,c],m=o.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var S={squareRatio:o.squareRatio,sort:m,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var b={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};p.setLayout(b),Rie(p,S,!1,0),b=p.getLayout(),CV(g,function(_,C){var T=(g[C+1]||p).getValue();_.setLayout(Oe({dataExtent:[T,T],borderWidth:0,upperHeight:0},b))})}var x=t.getData().tree.root;x.setLayout(Dmt(s,v,h),!0),t.setLayoutInfo(s),Lie(x,new Ft(-s.x,-s.y,a,i),g,p,0)}};function Rie(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(kie),u=s.get(mmt)/2,c=Oie(s),f=Math.max(l,c),d=l-u,h=f-u;t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),a=im(a-2*d,0),i=im(i-d-h,0);var v=a*i,p=_mt(t,s,v,e,n,r);if(p.length){var g={x:d,y:h,width:a,height:i},y=nx(a,i),m=1/0,S=[];S.area=0;for(var b=0,x=p.length;b<x;){var _=p[b];S.push(_),S.area+=_.getLayout().area;var C=Emt(S,y,e.squareRatio);C<=m?(b++,m=C):(S.area-=S.pop().getLayout().area,u6(S,y,g,u,!1),y=nx(g.width,g.height),S.length=S.area=0,m=1/0)}if(S.length&&u6(S,y,g,u,!0),!n){var T=s.get("childrenVisibleMin");T!=null&&v<T&&(n=!0)}for(var b=0,x=p.length;b<x;b++)Rie(p[b],e,n,r+1)}}}function _mt(t,e,n,r,a,i){var o=t.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=i;if(a&&!l)return t.viewChildren=[];o=wn(o,function(h){return!h.isRemoved()}),Cmt(o,s);var u=Tmt(e,o,s);if(u.sum===0)return t.viewChildren=[];if(u.sum=xmt(e,n,u.sum,s,o),u.sum===0)return t.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*n;o[c].setLayout({area:d})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}function xmt(t,e,n,r,a){if(!r)return n;for(var i=t.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[r==="asc"?o-l-1:l].getValue();u/n*e<i&&(s=l,n-=u)}return r==="asc"?a.splice(0,o-s):a.splice(s,o-s),n}function Cmt(t,e){return e&&t.sort(function(n,r){var a=e==="asc"?n.getValue()-r.getValue():r.getValue()-n.getValue();return a===0?e==="asc"?n.dataIndex-r.dataIndex:r.dataIndex-n.dataIndex:a}),t}function Tmt(t,e,n){for(var r=0,a=0,i=e.length;a<i;a++)r+=e[a].getValue();var o=t.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&n?(s=[e[e.length-1].getValue(),e[0].getValue()],n==="asc"&&s.reverse()):(s=[1/0,-1/0],CV(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function Emt(t,e,n){for(var r=0,a=1/0,i=0,o=void 0,s=t.length;i<s;i++)o=t[i].getLayout().area,o&&(o<a&&(a=o),o>r&&(r=o));var l=t.area*t.area,u=e*e*n;return l?im(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;f<d;f++){var h=t[f],v={},p=c?h.getLayout().area/c:0,g=v[l[o]]=im(c-2*r,0),y=n[s[i]]+n[l[i]]-u,m=f===d-1||y<p?y:p,S=v[l[i]]=im(m-2*r,0);v[s[o]]=n[s[o]]+nx(r,g/2),v[s[i]]=u+nx(r,S/2),u+=m,h.setLayout(v,!0)}n[s[o]]+=c,n[l[o]]-=c}function Mmt(t,e,n,r,a){var i=(e||{}).node,o=[r,a];if(!i||i===n)return o;for(var s,l=r*a,u=l*t.option.zoomToNodeRatio;s=i.parentNode;){for(var c=0,f=s.children,d=0,h=f.length;d<h;d++)c+=f[d].getValue();var v=i.getValue();if(v===0)return o;u*=c/v;var p=s.getModel(),g=p.get(kie),y=Math.max(g,Oie(p));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>SR&&(u=SR),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[r*m,a*m]}function Dmt(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var a=n.node,i=a.getLayout();if(!i)return r;for(var o=[i.width/2,i.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function Lie(t,e,n,r,a){var i=t.getLayout(),o=n[a],s=o&&o===t;if(!(o&&!s||a===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new Ft(e.x-i.x,e.y-i.y,e.width,e.height);CV(t.viewChildren||[],function(u){Lie(u,l,n,r,a+1)})}}function Oie(t){return t.get(Smt)?t.get(bmt):0}function kmt(t){t.registerSeriesModel(jyt),t.registerChartView(smt),t.registerVisual(hmt),t.registerLayout(wmt),Hyt(t)}function Rmt(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getGraph(),i=a.data,o=r.mapArray(r.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){on(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function Lmt(t){var e={};t.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),a=n.getData(),i={};r.each(function(o){var s=r.getName(o);i["ec-"+s]=o;var l=r.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=n.getColorFromPalette(s,e)),r.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&r.setItemVisual(o,c[f],d)}}),r.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){it(l)&&(l=i["ec-"+l]);var u=r.getItemVisual(l,"style"),c=a.ensureUniqueItemVisual(o,"style");Oe(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)a.setItemVisual(o,f[d],r.getItemVisual(l,f[d]))}})})}function nb(t){return t instanceof Array||(t=[t,t]),t}function Omt(t){t.eachSeriesByType("graph",function(e){var n=e.getGraph(),r=e.getEdgeData(),a=nb(e.get("edgeSymbol")),i=nb(e.get("edgeSymbolSize"));r.setVisual("fromSymbol",a&&a[0]),r.setVisual("toSymbol",a&&a[1]),r.setVisual("fromSymbolSize",i&&i[0]),r.setVisual("toSymbolSize",i&&i[1]),r.setVisual("style",e.getModel("lineStyle").getLineStyle()),r.each(function(o){var s=r.getItemModel(o),l=n.getEdgeByIndex(o),u=nb(s.getShallow("symbol",!0)),c=nb(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(o,"style");switch(Oe(d,f),d.stroke){case"source":{var h=l.node1.getVisual("style");d.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");d.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var dL="-->",sT=function(t){return t.get("autoCurveness")||null},Aie=function(t,e){var n=sT(t),r=20,a=[];if(on(n))r=n;else if($e(n)){t.__curvenessList=n;return}e>r&&(r=e);var i=r%2?r+2:r+3;a=[];for(var o=0;o<i;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));t.__curvenessList=a},om=function(t,e,n){var r=[t.id,t.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[n.uid,r,a].join(dL)},Nie=function(t){var e=t.split(dL);return[e[0],e[2],e[1]].join(dL)},Amt=function(t,e){var n=om(t.node1,t.node2,e);return e.__edgeMap[n]},Nmt=function(t,e){var n=hL(om(t.node1,t.node2,e),e),r=hL(om(t.node2,t.node1,e),e);return n+r},hL=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function Vmt(t){sT(t)&&(t.__curvenessList=[],t.__edgeMap={},Aie(t))}function Bmt(t,e,n,r){if(sT(n)){var a=om(t,e,n),i=n.__edgeMap,o=i[Nie(a)];i[a]&&!o?i[a].isForward=!0:o&&i[a]&&(o.isForward=!0,i[a].isForward=!1),i[a]=i[a]||[],i[a].push(r)}}function TV(t,e,n,r){var a=sT(e),i=$e(a);if(!a)return null;var o=Amt(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var u=Nmt(t,e);Aie(e,u),t.lineStyle=t.lineStyle||{};var c=om(t.node1,t.node2,e),f=e.__curvenessList,d=i||u%2?0:1;if(o.isForward)return f[d+s];var h=Nie(c),v=hL(h,e),p=f[s+v+d];return r?i?a&&a[0]===0?(v+d)%2?p:-p:((v%2?0:1)+d)%2?p:-p:(v+d)%2?p:-p:f[s+v+d]}function Vie(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view")){var n=t.getGraph();n.eachNode(function(r){var a=r.getModel();r.setLayout([+a.get("x"),+a.get("y")])}),EV(n,t)}}function EV(t,e){t.eachEdge(function(n,r){var a=Xo(n.getModel().get(["lineStyle","curveness"]),-TV(n,e,r,!0),0),i=zs(n.node1.getLayout()),o=zs(n.node2.getLayout()),s=[i,o];+a&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*a,(i[1]+o[1])/2-(o[0]-i[0])*a]),n.setLayout(s)})}function $mt(t,e){t.eachSeriesByType("graph",function(n){var r=n.get("layout"),a=n.coordinateSystem;if(a&&a.type!=="view"){var i=n.getData(),o=[];W(a.dimensions,function(d){o=o.concat(i.mapDimensionsAll(d))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=i.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?i.setItemLayout(s,a.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}EV(i.graph,n)}else(!r||r==="none")&&Vie(n)})}function l0(t){var e=t.coordinateSystem;if(e.type!=="view")return 1;var n=t.option.nodeScaleRatio,r=e.scaleX,a=e.getZoom(),i=(a-1)*n+1;return i/r}function u0(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var c6=Math.PI,sM=[];function MV(t,e,n,r){var a=t.coordinateSystem;if(!(a&&a.type!=="view")){var i=a.getBoundingRect(),o=t.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,c=Math.min(i.width,i.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(n){var d=a.pointToData(r),h=d[0],v=d[1],p=[h-l,v-u];Qd(p,p),k0(p,p,c),n.setLayout([l+p[0],u+p[1]],!0);var g=t.get(["circular","rotateLabel"]);Bie(n,g,l,u)}Imt[e](t,s,o,c,l,u,f),s.eachEdge(function(y,m){var S=Xo(y.getModel().get(["lineStyle","curveness"]),TV(y,t,m),0),b=zs(y.node1.getLayout()),x=zs(y.node2.getLayout()),_,C=(b[0]+x[0])/2,T=(b[1]+x[1])/2;+S&&(S*=3,_=[l*S+C*(1-S),u*S+T*(1-S)]),y.setLayout([b,x,_])})}}}var Imt={value:function(t,e,n,r,a,i,o){var s=0,l=n.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([r*Math.cos(s)+a,r*Math.sin(s)+i]),s+=d})},symbolSize:function(t,e,n,r,a,i,o){var s=0;sM.length=o;var l=l0(t);e.eachNode(function(f){var d=u0(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/r);isNaN(h)&&(h=c6/2),sM[f.dataIndex]=h,s+=h*2});var u=(2*c6-s)/o/2,c=0;e.eachNode(function(f){var d=u+sM[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+a,r*Math.sin(c)+i]),c+=d})}};function Bie(t,e,n,r){var a=t.getGraphicEl();if(a){var i=t.getModel(),o=i.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-r,l[0]-n);u<0&&(u=Math.PI*2+u);var c=l[0]<n;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");Oe(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function Pmt(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&MV(e,"symbolSize")})}var Lh=b_;function Fmt(t,e,n){for(var r=t,a=e,i=n.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=n.gravity==null?.1:n.gravity,c=0;c<r.length;c++){var f=r[c];f.p||(f.p=Bc(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=zs(f.p),f.edges=null}var d=n.friction==null?.6:n.friction,h=d,v,p;return{warmUp:function(){h=d*.8},setFixed:function(g){r[g].fixed=!0},setUnfixed:function(g){r[g].fixed=!1},beforeStep:function(g){v=g},afterStep:function(g){p=g},step:function(g){v&&v(r,a);for(var y=[],m=r.length,S=0;S<a.length;S++){var b=a[S];if(!b.ignoreForceLayout){var x=b.n1,_=b.n2;Gu(y,_.p,x.p);var C=Ny(y)-b.d,T=_.w/(x.w+_.w);isNaN(T)&&(T=0),Qd(y,y),!x.fixed&&Lh(x.p,x.p,y,T*C*h),!_.fixed&&Lh(_.p,_.p,y,-(1-T)*C*h)}}for(var S=0;S<m;S++){var D=r[S];D.fixed||(Gu(y,l,D.p),Lh(D.p,D.p,y,u*h))}for(var S=0;S<m;S++)for(var x=r[S],M=S+1;M<m;M++){var _=r[M];Gu(y,_.p,x.p);var C=Ny(y);C===0&&(wee(y,Math.random()-.5,Math.random()-.5),C=1);var E=(x.rep+_.rep)/C/C;!x.fixed&&Lh(x.pp,x.pp,y,E),!_.fixed&&Lh(_.pp,_.pp,y,-E)}for(var k=[],S=0;S<m;S++){var D=r[S];D.fixed||(Gu(k,D.p,D.pp),Lh(D.p,D.p,k,h),ya(D.pp,D.p))}h=h*.992;var R=h<.01;p&&p(r,a,R),g&&g(R)}}}function zmt(t){t.eachSeriesByType("graph",function(e){var n=e.coordinateSystem;if(!(n&&n.type!=="view"))if(e.get("layout")==="force"){var r=e.preservedPoints||{},a=e.getGraph(),i=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(S){var b=i.getId(S);i.setItemLayout(S,r[b]||[NaN,NaN])}):!l||l==="none"?Vie(e):l==="circular"&&MV(e,"value");var u=i.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=$e(f)?f:[f,f],v=$e(d)?d:[d,d];v=[v[1],v[0]];var p=i.mapArray("value",function(S,b){var x=i.getItemLayout(b),_=bn(S,u,h);return isNaN(_)&&(_=(h[0]+h[1])/2),{w:_,rep:_,fixed:i.getItemModel(b).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),g=o.mapArray("value",function(S,b){var x=a.getEdgeByIndex(b),_=bn(S,c,v);isNaN(_)&&(_=(v[0]+v[1])/2);var C=x.getModel(),T=Xo(x.getModel().get(["lineStyle","curveness"]),-TV(x,e,b,!0),0);return{n1:p[x.node1.dataIndex],n2:p[x.node2.dataIndex],d:_,curveness:T,ignoreForceLayout:C.get("ignoreForceLayout")}}),y=n.getBoundingRect(),m=Fmt(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(S,b){for(var x=0,_=S.length;x<_;x++)S[x].fixed&&ya(S[x].p,a.getNodeByIndex(x).getLayout())}),m.afterStep(function(S,b,x){for(var _=0,C=S.length;_<C;_++)S[_].fixed||a.getNodeByIndex(_).setLayout(S[_].p),r[i.getId(_)]=S[_].p;for(var _=0,C=b.length;_<C;_++){var T=b[_],D=a.getEdgeByIndex(_),M=T.n1.p,E=T.n2.p,k=D.getLayout();k=k?k.slice():[],k[0]=k[0]||[],k[1]=k[1]||[],ya(k[0],M),ya(k[1],E),+T.curveness&&(k[2]=[(M[0]+E[0])/2-(M[1]-E[1])*T.curveness,(M[1]+E[1])/2-(E[0]-M[0])*T.curveness]),D.setLayout(k)}}),e.forceLayout=m,e.preservedPoints=r,m.step()}else e.forceLayout=null})}function Gmt(t,e,n){var r=Oe(t.getBoxLayoutParams(),{aspect:n});return xr(r,{width:e.getWidth(),height:e.getHeight()})}function Umt(t,e){var n=[];return t.eachSeriesByType("graph",function(r){var a=r.get("coordinateSystem");if(!a||a==="view"){var i=r.getData(),o=i.mapArray(function(g){var y=i.getItemModel(g);return[+y.get("x"),+y.get("y")]}),s=[],l=[];AC(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=Gmt(r,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],h=c.width,v=c.height,p=r.coordinateSystem=new s1;p.zoomLimit=r.get("scaleLimit"),p.setBoundingRect(s[0],s[1],f,d),p.setViewRect(c.x,c.y,h,v),p.setCenter(r.get("center"),e),p.setZoom(r.get("zoom")),n.push(p)}}),n}var f6=Vr.prototype,lM=jm.prototype,$ie=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){we(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})($ie);function uM(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var Hmt=function(t){we(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-line",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new $ie},e.prototype.buildPath=function(n,r){uM(r)?f6.buildPath.call(this,n,r):lM.buildPath.call(this,n,r)},e.prototype.pointAt=function(n){return uM(this.shape)?f6.pointAt.call(this,n):lM.pointAt.call(this,n)},e.prototype.tangentAt=function(n){var r=this.shape,a=uM(r)?[r.x2-r.x1,r.y2-r.y1]:lM.tangentAt.call(this,n);return Qd(a,a)},e}(Wt);const Wmt=Hmt;var cM=["fromSymbol","toSymbol"];function d6(t){return"_"+t+"Type"}function h6(t,e,n){var r=e.getItemVisual(n,t);if(!r||r==="none")return r;var a=e.getItemVisual(n,t+"Size"),i=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Xv(a),u=nh(o||0,l);return r+l+u+(i||"")+(s||"")}function p6(t,e,n){var r=e.getItemVisual(n,t);if(!(!r||r==="none")){var a=e.getItemVisual(n,t+"Size"),i=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Xv(a),u=nh(o||0,l),c=fr(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=t,c}}function Kmt(t){var e=new Wmt({name:"line",subPixelOptimize:!0});return pL(e.shape,t),e}function pL(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var jmt=function(t){we(e,t);function e(n,r,a){var i=t.call(this)||this;return i._createLine(n,r,a),i}return e.prototype._createLine=function(n,r,a){var i=n.hostModel,o=n.getItemLayout(r),s=Kmt(o);s.shape.percent=0,Un(s,{shape:{percent:1}},i,r),this.add(s),W(cM,function(l){var u=p6(l,n,r);this.add(u),this[d6(l)]=h6(l,n,r)},this),this._updateCommonStl(n,r,a)},e.prototype.updateData=function(n,r,a){var i=n.hostModel,o=this.childOfName("line"),s=n.getItemLayout(r),l={shape:{}};pL(l.shape,s),cn(o,l,i,r),W(cM,function(u){var c=h6(u,n,r),f=d6(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=p6(u,n,r);this.add(d)}this[f]=c},this),this._updateCommonStl(n,r,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(n,r,a){var i=n.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,h=a&&a.blurScope;if(!a||n.hasItemOption){var v=n.getItemModel(r),p=v.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=p.get("disabled"),d=p.get("focus"),h=p.get("blurScope"),c=Pr(v)}var g=n.getItemVisual(r,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,W(cM,function(_){var C=this.childOfName(_);if(C){C.setColor(y),C.style.opacity=g.opacity;for(var T=0;T<Xa.length;T++){var D=Xa[T],M=o.getState(D);if(M){var E=M.style||{},k=C.ensureState(D),R=k.style||(k.style={});E.stroke!=null&&(R[C.__isEmptyBrush?"stroke":"fill"]=E.stroke),E.opacity!=null&&(R.opacity=E.opacity)}}C.markRedraw()}},this);var m=i.getRawValue(r);ca(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(_,C){return i.getFormattedLabel(_,C,n.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(m==null?n.getName(r):isFinite(m)?nr(m):m)+""});var S=this.getTextContent();if(S){var b=c.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=b.get("position")||"middle";var x=b.get("distance");$e(x)||(x=[x,x]),S.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),ar(this,d,h,f)},e.prototype.highlight=function(){Ul(this)},e.prototype.downplay=function(){Hl(this)},e.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},e.prototype.setLinePoints=function(n){var r=this.childOfName("line");pL(r.shape,n),r.dirty()},e.prototype.beforeUpdate=function(){var n=this,r=n.childOfName("fromSymbol"),a=n.childOfName("toSymbol"),i=n.getTextContent();if(!r&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=n.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=Gu([],f,c);Qd(d,d);function h(M,E){var k=M.__specifiedRotation;if(k==null){var R=l.tangentAt(E);M.attr("rotation",(E===1?-1:1)*Math.PI/2-Math.atan2(R[1],R[0]))}else M.attr("rotation",k)}if(r&&(r.setPosition(c),h(r,0),r.scaleX=r.scaleY=o*u,r.markRedraw()),a&&(a.setPosition(f),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var v=void 0,p=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,S=u/2,b=l.tangentAt(S),x=[b[1],-b[0]],_=l.pointAt(S);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var C=b[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(b[1],b[0]);f[0]<c[0]&&(T=Math.PI+T),i.rotation=T}var D=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":D=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":D=m,p="top";break;default:D=0,p="middle"}switch(i.__position){case"end":i.x=d[0]*y+f[0],i.y=d[1]*m+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",p=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*y+c[0],i.y=-d[1]*m+c[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",p=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*C+c[0],i.y=c[1]+D,v=b[0]<0?"right":"left",i.originX=-y*C,i.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+D,v="center",i.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*C+f[0],i.y=f[1]+D,v=b[0]>=0?"right":"left",i.originX=y*C,i.originY=-D;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||v})}},e}(Ct);const DV=jmt;var Ymt=function(){function t(e){this.group=new Ct,this._LineCtor=e||DV}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=v6(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=v6(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n){this._progressiveEls=[];function r(s){!s.isGroup&&!Xmt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var i=n.getItemLayout(a);if(fM(i)){var o=new this._LineCtor(n,a,this._seriesScope);o.traverse(r),this.group.add(o),n.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){Ic(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,n,r){var a=e.getItemLayout(n);if(fM(a)){var i=new this._LineCtor(e,n,r);e.setItemGraphicEl(n,i),this.group.add(i)}},t.prototype._doUpdate=function(e,n,r,a,i){var o=e.getItemGraphicEl(r);if(!fM(n.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(n,a,i):o=new this._LineCtor(n,a,i),n.setItemGraphicEl(a,o),this.group.add(o)},t}();function Xmt(t){return t.animators&&t.animators.length>0}function v6(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:Pr(e)}}function g6(t){return isNaN(t[0])||isNaN(t[1])}function fM(t){return t&&!g6(t[0])&&!g6(t[1])}const kV=Ymt;var dM=[],hM=[],pM=[],Oh=Wr,vM=ec,y6=Math.abs;function m6(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){dM[0]=Oh(r[0],a[0],i[0],c),dM[1]=Oh(r[1],a[1],i[1],c);var f=y6(vM(dM,e)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;hM[0]=Oh(r[0],a[0],i[0],s),hM[1]=Oh(r[1],a[1],i[1],s),pM[0]=Oh(r[0],a[0],i[0],h),pM[1]=Oh(r[1],a[1],i[1],h);var f=vM(hM,e)-l;if(y6(f)<.01)break;var v=vM(pM,e)-l;u/=2,f<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function gM(t,e){var n=[],r=Vy,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=[zs(u[0]),zs(u[1])],u[2]&&u.__original.push(zs(u[2])));var d=u.__original;if(u[2]!=null){if(ya(a[0],d[0]),ya(a[1],d[2]),ya(a[2],d[1]),c&&c!=="none"){var h=u0(s.node1),v=m6(a,d[0],h*e);r(a[0][0],a[1][0],a[2][0],v,n),a[0][0]=n[3],a[1][0]=n[4],r(a[0][1],a[1][1],a[2][1],v,n),a[0][1]=n[3],a[1][1]=n[4]}if(f&&f!=="none"){var h=u0(s.node2),v=m6(a,d[1],h*e);r(a[0][0],a[1][0],a[2][0],v,n),a[1][0]=n[1],a[2][0]=n[2],r(a[0][1],a[1][1],a[2][1],v,n),a[1][1]=n[1],a[2][1]=n[2]}ya(u[0],a[0]),ya(u[1],a[2]),ya(u[2],a[1])}else{if(ya(i[0],d[0]),ya(i[1],d[1]),Gu(o,i[1],i[0]),Qd(o,o),c&&c!=="none"){var h=u0(s.node1);b_(i[0],i[0],o,h*e)}if(f&&f!=="none"){var h=u0(s.node2);b_(i[1],i[1],o,-h*e)}ya(u[0],i[0]),ya(u[1],i[1])}})}function S6(t){return t.type==="view"}var qmt=function(t){we(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 n1,i=new kV,o=this.group;this._controller=new o1(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(S6(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):cn(u,c,n)}gM(n.getGraph(),l0(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,a),clearTimeout(this._layoutTimeout);var h=n.forceLayout,v=n.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var p=n.get("layout");f.graph.eachNode(function(S){var b=S.dataIndex,x=S.getGraphicEl(),_=S.getModel();if(x){x.off("drag").off("dragend");var C=_.get("draggable");C&&x.on("drag",function(D){switch(p){case"force":h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,v),h.setFixed(b),f.setItemLayout(b,[x.x,x.y]);break;case"circular":f.setItemLayout(b,[x.x,x.y]),S.setLayout({fixed:!0},!0),MV(n,"symbolSize",S,[D.offsetX,D.offsetY]),i.updateLayout(n);break;case"none":default:f.setItemLayout(b,[x.x,x.y]),EV(n.getGraph(),n),i.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(b)}),x.setDraggable(C,!!_.get("cursor"));var T=_.get(["emphasis","focus"]);T==="adjacency"&&(Rt(x).focus=S.getAdjacentDataIndices())}}),f.graph.eachEdge(function(S){var b=S.getGraphicEl(),x=S.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(Rt(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var g=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),y=f.getLayout("cx"),m=f.getLayout("cy");f.graph.eachNode(function(S){Bie(S,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)&&!aT(u,a,n)}),!S6(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){gV(s,u.dx,u.dy),a.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){yV(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(),gM(n.getGraph(),l0(n)),i._lineDraw.updateLayout(),a.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),a=l0(n);r.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(a)})},e.prototype.updateLayout=function(n){gM(n.getGraph(),l0(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}(kn);const Zmt=qmt;function Ah(t){return"_EC_"+t}var Qmt=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[Ah(e)]){var a=new Vf(e,n);return a.hostGraph=this,this.nodes.push(a),r[Ah(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[Ah(e)]},t.prototype.addEdge=function(e,n,r){var a=this._nodesMap,i=this._edgesMap;if(on(e)&&(e=this.nodes[e]),on(n)&&(n=this.nodes[n]),e instanceof Vf||(e=a[Ah(e)]),n instanceof Vf||(n=a[Ah(n)]),!(!e||!n)){var o=e.id+"-"+n.id,s=new Iie(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 Vf&&(e=e.id),n instanceof Vf&&(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<a;i++)r[i].dataIndex>=0&&e.call(n,r[i],i)},t.prototype.eachEdge=function(e,n){for(var r=this.edges,a=r.length,i=0;i<a;i++)r[i].dataIndex>=0&&r[i].node1.dataIndex>=0&&r[i].node2.dataIndex>=0&&e.call(n,r[i],i)},t.prototype.breadthFirstTraverse=function(e,n,r,a){if(n instanceof Vf||(n=this._nodesMap[Ah(n)]),!!n){for(var i=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,n,null))for(var s=[n];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(e.call(a,f,l))return;s.push(f),f.__visited=!0}}}},t.prototype.update=function(){for(var e=this.data,n=this.edgeData,r=this.nodes,a=this.edges,i=0,o=r.length;i<o;i++)r[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)r[e.getRawIndex(i)].dataIndex=i;n.filterSelf(function(s){var l=a[n.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=n.count();i<o;i++)a[n.getRawIndex(i)].dataIndex=i},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,a=0;a<n.length;a++)e.addNode(n[a].id,n[a].dataIndex);for(var a=0;a<r.length;a++){var i=r[a];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},t}(),Vf=function(){function t(e,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=n??-1}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},n=0;n<this.edges.length;n++){var r=this.edges[n];r.dataIndex<0||(e.edge.push(r.dataIndex),e.node.push(r.node1.dataIndex,r.node2.dataIndex))}return e},t.prototype.getTrajectoryDataIndices=function(){for(var e=ht(),n=ht(),r=0;r<this.edges.length;r++){var a=this.edges[r];if(!(a.dataIndex<0)){e.set(a.dataIndex,!0);for(var i=[a.node1],o=[a.node2],s=0;s<i.length;){var l=i[s];s++,n.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),i.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,n.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:n.keys()}},t}(),Iie=function(){function t(e,n,r){this.dataIndex=-1,this.node1=e,this.node2=n,this.dataIndex=r??-1}return t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.edgeData.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var e=ht(),n=ht();e.set(this.dataIndex,!0);for(var r=[this.node1],a=[this.node2],i=0;i<r.length;){var o=r[i];i++,n.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),r.push(o.inEdges[s].node1)}for(i=0;i<a.length;){var l=a[i];i++,n.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),a.push(l.outEdges[s].node2)}return{edge:e.keys(),node:n.keys()}},t}();function Pie(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=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)}}}sr(Vf,Pie("hostGraph","data"));sr(Iie,Pie("hostGraph","edgeData"));const Jmt=Qmt;function Fie(t,e,n,r,a){for(var i=new Jmt(r),o=0;o<t.length;o++)i.addNode(Nr(t[o].id,t[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],f=c.source,d=c.target;i.addEdge(f,d,u)&&(l.push(c),s.push(Nr(Rr(c.id,null),f+" > "+d)),u++)}var h=n.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=il(t,n);else{var p=Kv.get(h),g=p?p.dimensions||[]:[];zt(g,"value")<0&&g.concat(["value"]);var y=qv(t,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;v=new _a(y,n),v.initData(t)}var m=new _a(["value"],n);return m.initData(l,s),a&&a(v,m),wie({mainData:v,struct:i,structAttr:"graph",datas:{node:v,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var e1t=function(t){we(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 i1(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),Bd(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){Vmt(this);var s=Fie(i,a,this,!0,l);return W(s.edges,function(u){Bmt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var p=o._categoriesModels,g=v.getShallow("category"),y=p[g];return y&&(y.parentModel=v.parentModel,v.parentModel=y),v});var f=Mn.prototype.getModel;function d(v,p){var g=f.call(this,v,p);return g.resolveParentPath=h,g}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=d,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var p=v.slice();return v[0]==="label"?p[0]="edgeLabel":v[1]==="label"&&(p[1]="edgeLabel"),p}return v}}},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),Fr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=are({series:this,dataIndex:n,multipleSeries:r});return f},e.prototype._updateCategoriesData=function(){var n=Ie(this.option.categories||[],function(a){return a.value!=null?a:Oe({value:0},a)}),r=new _a(["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}(In);const t1t=e1t;var n1t={type:"graphRoam",event:"graphRoam",update:"none"};function r1t(t){t.registerChartView(Zmt),t.registerSeriesModel(t1t),t.registerProcessor(Rmt),t.registerVisual(Lmt),t.registerVisual(Omt),t.registerLayout($mt),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,Pmt),t.registerLayout(zmt),t.registerCoordinateSystem("graphView",{dimensions:s1.dimensions,create:Umt}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},ir),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},ir),t.registerAction(n1t,function(e,n,r){n.eachComponent({mainType:"series",query:e},function(a){var i=a.coordinateSystem,o=SV(i,e,void 0,r);a.setCenter&&a.setCenter(o.center),a.setZoom&&a.setZoom(o.zoom)})})}var a1t=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),i1t=function(t){we(e,t);function e(n){var r=t.call(this,n)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new a1t},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 o1t=i1t;function s1t(t,e){var n=t.get("center"),r=e.getWidth(),a=e.getHeight(),i=Math.min(r,a),o=tt(n[0],e.getWidth()),s=tt(n[1],e.getHeight()),l=tt(t.get("radius"),i/2);return{cx:o,cy:s,r:l}}function rb(t,e){var n=t==null?"":t+"";return e&&(it(e)?n=e.replace("{value}",n):gt(e)&&(n=e(t))),n}var l1t=function(t){we(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=s1t(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_:qa,v=f.get("show"),p=f.getModel("lineStyle"),g=p.get("width"),y=[u,c];yte(y,!l),u=y[0],c=y[1];for(var m=c-u,S=u,b=[],x=0;v&&x<i.length;x++){var _=Math.min(Math.max(i[x][0],0),1);c=u+m*_;var C=new h({shape:{startAngle:S,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});C.setStyle({fill:i[x][1]}),C.setStyle(p.getLineStyle(["color","width"])),b.push(C),S=c}b.reverse(),W(b,function(D){return s.add(D)});var T=function(D){if(D<=0)return i[0][1];var M;for(M=0;M<i.length;M++)if(i[M][0]>=D&&(M===0?0:i[M-1][0])<D)return i[M][1];return i[M-1][1]};this._renderTicks(n,r,a,T,o,u,c,l,g),this._renderTitleAndDetail(n,r,a,T,o),this._renderAnchor(n,o),this._renderPointer(n,r,a,T,o,u,c,l,g)},e.prototype._renderTicks=function(n,r,a,i,o,s,l,u,c){for(var f=this.group,d=o.cx,h=o.cy,v=o.r,p=+n.get("min"),g=+n.get("max"),y=n.getModel("splitLine"),m=n.getModel("axisTick"),S=n.getModel("axisLabel"),b=n.get("splitNumber"),x=m.get("splitNumber"),_=tt(y.get("length"),v),C=tt(m.get("length"),v),T=s,D=(l-s)/b,M=D/x,E=y.getModel("lineStyle").getLineStyle(),k=m.getModel("lineStyle").getLineStyle(),R=y.get("distance"),O,B,$=0;$<=b;$++){if(O=Math.cos(T),B=Math.sin(T),y.get("show")){var V=R?R+c:c,F=new Vr({shape:{x1:O*(v-V)+d,y1:B*(v-V)+h,x2:O*(v-_-V)+d,y2:B*(v-_-V)+h},style:E,silent:!0});E.stroke==="auto"&&F.setStyle({stroke:i($/b)}),f.add(F)}if(S.get("show")){var V=S.get("distance")+R,L=rb(nr($/b*(g-p)+p),S.get("formatter")),N=i($/b),H=O*(v-_-V)+d,K=B*(v-_-V)+h,Q=S.get("rotate"),ie=0;Q==="radial"?(ie=-T+2*Math.PI,ie>Math.PI/2&&(ie+=Math.PI)):Q==="tangential"?ie=-T-Math.PI/2:on(Q)&&(ie=Q*Math.PI/180),ie===0?f.add(new tn({style:An(S,{text:L,x:H,y:K,verticalAlign:B<-.8?"top":B>.8?"bottom":"middle",align:O<-.4?"left":O>.4?"right":"center"},{inheritColor:N}),silent:!0})):f.add(new tn({style:An(S,{text:L,x:H,y:K,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:H,originY:K,rotation:ie}))}if(m.get("show")&&$!==b){var V=m.get("distance");V=V?V+c:c;for(var be=0;be<=x;be++){O=Math.cos(T),B=Math.sin(T);var le=new Vr({shape:{x1:O*(v-V)+d,y1:B*(v-V)+h,x2:O*(v-C-V)+d,y2:B*(v-C-V)+h},silent:!0,style:k});k.stroke==="auto"&&le.setStyle({stroke:i(($+be/x)/b)}),f.add(le),T+=M}T-=M}else T+=D}},e.prototype._renderPointer=function(n,r,a,i,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,v=[],p=n.get(["pointer","show"]),g=n.getModel("progress"),y=g.get("show"),m=n.getData(),S=m.mapDimension("value"),b=+n.get("min"),x=+n.get("max"),_=[b,x],C=[s,l];function T(M,E){var k=m.getItemModel(M),R=k.getModel("pointer"),O=tt(R.get("width"),o.r),B=tt(R.get("length"),o.r),$=n.get(["pointer","icon"]),V=R.get("offsetCenter"),F=tt(V[0],o.r),L=tt(V[1],o.r),N=R.get("keepAspect"),H;return $?H=fr($,F-O/2,L-B,O,B,null,N):H=new o1t({shape:{angle:-Math.PI/2,width:O,r:B,x:F,y:L}}),H.rotation=-(E+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function D(M,E){var k=g.get("roundCap"),R=k?Z_:qa,O=g.get("overlap"),B=O?g.get("width"):c/m.count(),$=O?o.r-B:o.r-(M+1)*B,V=O?o.r:o.r-M*B,F=new R({shape:{startAngle:s,endAngle:E,cx:o.cx,cy:o.cy,clockwise:u,r0:$,r:V}});return O&&(F.z2=x-m.get(S,M)%x),F}(y||p)&&(m.diff(d).add(function(M){var E=m.get(S,M);if(p){var k=T(M,s);Un(k,{rotation:-((isNaN(+E)?C[0]:bn(E,_,C,!0))+Math.PI/2)},n),f.add(k),m.setItemGraphicEl(M,k)}if(y){var R=D(M,s),O=g.get("clip");Un(R,{shape:{endAngle:bn(E,_,C,O)}},n),f.add(R),TR(n.seriesIndex,m.dataType,M,R),v[M]=R}}).update(function(M,E){var k=m.get(S,M);if(p){var R=d.getItemGraphicEl(E),O=R?R.rotation:s,B=T(M,O);B.rotation=O,cn(B,{rotation:-((isNaN(+k)?C[0]:bn(k,_,C,!0))+Math.PI/2)},n),f.add(B),m.setItemGraphicEl(M,B)}if(y){var $=h[E],V=$?$.shape.endAngle:s,F=D(M,V),L=g.get("clip");cn(F,{shape:{endAngle:bn(k,_,C,L)}},n),f.add(F),TR(n.seriesIndex,m.dataType,M,F),v[M]=F}}).execute(),m.each(function(M){var E=m.getItemModel(M),k=E.getModel("emphasis"),R=k.get("focus"),O=k.get("blurScope"),B=k.get("disabled");if(p){var $=m.getItemGraphicEl(M),V=m.getItemVisual(M,"style"),F=V.fill;if($ instanceof Qr){var L=$.style;$.useStyle(Oe({image:L.image,x:L.x,y:L.y,width:L.width,height:L.height},V))}else $.useStyle(V),$.type!=="pointer"&&$.setColor(F);$.setStyle(E.getModel(["pointer","itemStyle"]).getItemStyle()),$.style.fill==="auto"&&$.setStyle("fill",i(bn(m.get(S,M),_,[0,1],!0))),$.z2EmphasisLift=0,ua($,E),ar($,R,O,B)}if(y){var N=v[M];N.useStyle(m.getItemVisual(M,"style")),N.setStyle(E.getModel(["progress","itemStyle"]).getItemStyle()),N.z2EmphasisLift=0,ua(N,E),ar(N,R,O,B)}}),this._progressEls=v)},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=fr(s,r.cx-o/2+tt(l[0],r.r),r.cy-o/2+tt(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=[],v=[],p=n.isAnimationEnabled(),g=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new tn({silent:!0}),v[y]=new tn({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],v[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),S=l.get(u,y),b=new Ct,x=i(bn(S,[c,f],[0,1],!0)),_=m.getModel("title");if(_.get("show")){var C=_.get("offsetCenter"),T=o.cx+tt(C[0],o.r),D=o.cy+tt(C[1],o.r),M=h[y];M.attr({z2:g?0:2,style:An(_,{x:T,y:D,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),b.add(M)}var E=m.getModel("detail");if(E.get("show")){var k=E.get("offsetCenter"),R=o.cx+tt(k[0],o.r),O=o.cy+tt(k[1],o.r),B=tt(E.get("width"),o.r),$=tt(E.get("height"),o.r),V=n.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,M=v[y],F=E.get("formatter");M.attr({z2:g?0:2,style:An(E,{x:R,y:O,text:rb(S,F),width:isNaN(B)?null:B,height:isNaN($)?null:$,align:"center",verticalAlign:"middle"},{inheritColor:V})}),une(M,{normal:E},S,function(N){return rb(N,F)}),p&&cne(M,y,l,n,{getFormattedLabel:function(N,H,K,Q,ie,be){return rb(be?be.interpolatedValue:S,F)}}),b.add(M)}d.add(b)}),this.group.add(d),this._titleEls=h,this._detailEls=v},e.type="gauge",e}(kn);const u1t=l1t;var c1t=function(t){we(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 Qv(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}(In);const f1t=c1t;function d1t(t){t.registerChartView(u1t),t.registerSeriesModel(f1t)}var h1t=["itemStyle","opacity"],p1t=function(t){we(e,t);function e(n,r){var a=t.call(this)||this,i=a,o=new ei,s=new tn;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(h1t);c=c??1,a||is(i),i.useStyle(n.getItemVisual(r,"style")),i.style.lineJoin="round",a?(i.setShape({points:l.points}),i.style.opacity=0,Un(i,{style:{opacity:c}},o,r)):cn(i,{style:{opacity:c},shape:{points:l.points}},o,r),ua(i,s),this._updateLabel(n,r),ar(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;ca(o,Pr(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 It(h[0][0],h[0][1]):null},cn(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),sV(a,lV(l),{stroke:d})},e}(Za),v1t=function(t){we(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 p1t(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);Wy(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}(kn);const g1t=v1t;var y1t=function(t){we(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 i1(st(this.getData,this),st(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.getInitialData=function(n,r){return Qv(this,{coordDimensions:["value"],encodeDefaulter:kt(ON,this)})},e.prototype._defaultLabelLine=function(n){Bd(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}(In);const m1t=y1t;function S1t(t,e){return xr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function b1t(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();o<s;o++)a[o]=o;return gt(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return i?r[l]-r[u]:r[u]-r[l]}),a}function w1t(t){var e=t.hostModel,n=e.get("orient");t.each(function(r){var a=t.getItemModel(r),i=a.getModel("label"),o=i.get("position"),s=a.getModel("labelLine"),l=t.getItemLayout(r),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,h,v;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),v=[[d,h],[d,h]];else{var p=void 0,g=void 0,y=void 0,m=void 0,S=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-S,d=y-5,f="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+S,d=y+5,f="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-S,h=m-5,f="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+S,h=m+5,f="center"):o==="rightTop"?(p=n==="horizontal"?u[3][0]:u[1][0],g=n==="horizontal"?u[3][1]:u[1][1],n==="horizontal"?(m=g-S,h=m-5,f="center"):(y=p+S,d=y+5,f="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],n==="horizontal"?(m=g+S,h=m+5,f="center"):(y=p+S,d=y+5,f="bottom")):o==="leftTop"?(p=u[0][0],g=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(m=g-S,h=m-5,f="center"):(y=p-S,d=y-5,f="right")):o==="leftBottom"?(p=n==="horizontal"?u[1][0]:u[3][0],g=n==="horizontal"?u[1][1]:u[2][1],n==="horizontal"?(m=g+S,h=m+5,f="center"):(y=p-S,d=y-5,f="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,n==="horizontal"?(m=g+S,h=m+5,f="center"):(y=p+S,d=y+5,f="left")),n==="horizontal"?(y=p,d=y):(m=g,h=m),v=[[p,g],[y,m]]}l.label={linePoints:v,x:d,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}function _1t(t,e){t.eachSeriesByType("funnel",function(n){var r=n.getData(),a=r.mapDimension("value"),i=n.get("sort"),o=S1t(n,e),s=n.get("orient"),l=o.width,u=o.height,c=b1t(r,i),f=o.x,d=o.y,h=s==="horizontal"?[tt(n.get("minSize"),u),tt(n.get("maxSize"),u)]:[tt(n.get("minSize"),l),tt(n.get("maxSize"),l)],v=r.getDataExtent(a),p=n.get("min"),g=n.get("max");p==null&&(p=Math.min(v[0],0)),g==null&&(g=v[1]);var y=n.get("funnelAlign"),m=n.get("gap"),S=s==="horizontal"?l:u,b=(S-m*(r.count()-1))/r.count(),x=function(O,B){if(s==="horizontal"){var $=r.get(a,O)||0,V=bn($,[p,g],h,!0),F=void 0;switch(y){case"top":F=d;break;case"center":F=d+(u-V)/2;break;case"bottom":F=d+(u-V);break}return[[B,F],[B,F+V]]}var L=r.get(a,O)||0,N=bn(L,[p,g],h,!0),H;switch(y){case"left":H=f;break;case"center":H=f+(l-N)/2;break;case"right":H=f+l-N;break}return[[H,B],[H+N,B]]};i==="ascending"&&(b=-b,m=-m,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var _=0;_<c.length;_++){var C=c[_],T=c[_+1],D=r.getItemModel(C);if(s==="horizontal"){var M=D.get(["itemStyle","width"]);M==null?M=b:(M=tt(M,l),i==="ascending"&&(M=-M));var E=x(C,f),k=x(T,f+M);f+=M+m,r.setItemLayout(C,{points:E.concat(k.slice().reverse())})}else{var R=D.get(["itemStyle","height"]);R==null?R=b:(R=tt(R,u),i==="ascending"&&(R=-R));var E=x(C,d),k=x(T,d+R);d+=R+m,r.setItemLayout(C,{points:E.concat(k.slice().reverse())})}}w1t(r)})}function x1t(t){t.registerChartView(g1t),t.registerSeriesModel(m1t),t.registerLayout(_1t),t.registerProcessor(a1("funnel"))}var C1t=.3,T1t=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new Ct,n._initialized=!1,n}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(n,r,a,i){this._progressiveEls=null;var o=this._dataGroup,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.dimensions,f=w6(n);s.diff(l).add(d).update(h).remove(v).execute();function d(g){var y=b6(s,o,g,c,u);yM(y,s,g,f)}function h(g,y){var m=l.getItemGraphicEl(y),S=zie(s,g,c,u);s.setItemGraphicEl(g,m),cn(m,{shape:{points:S}},n,g),is(m),yM(m,s,g,f)}function v(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=E1t(u,n,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},e.prototype.incrementalPrepareRender=function(n,r,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(n,r,a){for(var i=r.getData(),o=r.coordinateSystem,s=o.dimensions,l=w6(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=b6(i,this._dataGroup,c,s,o);f.incremental=!0,yM(f,i,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(kn);function E1t(t,e,n){var r=t.model,a=t.getRect(),i=new nn({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=r.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),Un(i,{shape:{width:a.width,height:a.height}},e,n),i}function zie(t,e,n,r){for(var a=[],i=0;i<n.length;i++){var o=n[i],s=t.get(t.mapDimension(o),e);M1t(s,r.getAxis(o).type)||a.push(r.dataToPoint(s,o))}return a}function b6(t,e,n,r,a){var i=zie(t,n,r,a),o=new ei({shape:{points:i},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function w6(t){var e=t.get("smooth",!0);return e===!0&&(e=C1t),e=Qs(e),uv(e)&&(e=0),{smooth:e}}function yM(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var a=e.getItemModel(n),i=a.getModel("emphasis");ua(t,a,"lineStyle"),ar(t,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function M1t(t,e){return e==="category"?t==null:t==null||isNaN(t)}const D1t=T1t;var k1t=function(t){we(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.getInitialData=function(n,r){return il(null,this,{useEncodeDefaulter:st(R1t,null,this)})},e.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,a=this.getData(),i=[];return r.eachActiveState(a,function(o,s){n===o&&i.push(a.getRawIndex(s))}),i},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(In);function R1t(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return W(e.dimensions,function(r){var a=L1t(r);n[r]=a}),n}}function L1t(t){return+t.replace("dim","")}const O1t=k1t;var A1t=["lineStyle","opacity"],N1t={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(a,i){n.eachActiveState(i,function(o,s){var l=r[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(A1t,!0);u!=null&&(l=u)}var c=i.ensureUniqueItemVisual(s,"style");c.opacity=l},a.start,a.end)}}}};const V1t=N1t;function B1t(t){$1t(t),I1t(t)}function $1t(t){if(!t.parallel){var e=!1;W(t.series,function(n){n&&n.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}}function I1t(t){var e=Dn(t.parallelAxis);W(e,function(n){if(bt(n)){var r=n.parallelIndex||0,a=Dn(t.parallel)[r];a&&a.parallelAxisDefault&&$t(n,a.parallelAxisDefault,!1)}})}var P1t=5,F1t=function(t){we(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._model=n,this._api=a,this._handlers||(this._handlers={},W(z1t,function(i,o){a.getZr().on(o,this._handlers[o]=st(i,this))},this)),Yv(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(n,r){qy(this,"_throttledDispatchExpand"),W(this._handlers,function(a,i){r.getZr().off(i,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},e.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(Oe({type:"parallelAxisExpand"},n))},e.type="parallel",e}(jn),z1t={mousedown:function(t){mM(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(mM(this,"click")&&e){var n=[t.offsetX,t.offsetY],r=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(r>P1t)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||!mM(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 mM(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}const G1t=F1t;var U1t=function(t){we(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&&$t(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=wn(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}(Qt);const H1t=U1t;var W1t=function(t){we(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}(mo);const K1t=W1t;function ih(t,e,n,r,a,i){t=t||0;var o=n[1]-n[0];if(a!=null&&(a=Nh(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Nh(s,[0,o]),a=i=Nh(s,[a,i]),r=0}e[0]=Nh(e[0],n),e[1]=Nh(e[1],n);var l=SM(e,r);e[r]+=t;var u=a||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Nh(e[r],c);var f;return f=SM(e,r),a!=null&&(f.sign!==l.sign||f.span<a)&&(e[1-r]=e[r]+l.sign*a),f=SM(e,r),i!=null&&f.span>i&&(e[1-r]=e[r]+f.sign*i),e}function SM(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 Nh(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var bM=W,Gie=Math.min,Uie=Math.max,_6=Math.floor,j1t=Math.ceil,x6=nr,Y1t=Math.PI,X1t=function(){function t(e,n,r){this.type="parallel",this._axesMap=ht(),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;bM(a,function(o,s){var l=i[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new K1t(o,Jm(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();bM(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(a,a.mapDimension(i)),zd(o.scale,o.model)},this)}},this)},t.prototype.resize=function(e,n){this._rect=xr(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=ab(e.get("axisExpandWidth"),l),f=ab(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=e.get("axisExpandWindow"),v;if(h)v=ab(h[1]-h[0],l),h[1]=h[0]+v;else{v=ab(c*(f-1),l);var p=e.get("axisExpandCenter")||_6(u/2);h=[c*p-v/2],h[1]=h[0]+v}var g=(s-v)/(u-f);g<3&&(g=0);var y=[_6(x6(h[0]/c,1))+1,j1t(x6(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])}),bM(r,function(o,s){var l=(a.axisExpandable?Z1t:q1t)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},c={horizontal:Y1t/2,vertical:0},f=[u[i].x+e.x,u[i].y+e.y],d=c[i],h=Li();$c(h,h,d),ns(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;c<a;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=e.getValues(s,c),h=0,v=o.length;h<v;h++){var p=l[h].getActiveState(d[h]);if(p==="inactive"){f="inactive";break}}}n(f,c)}},t.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,n=this._axesMap,r=!1,a=0,i=e.length;a<i;a++)n.get(e[a]).model.getActiveState()!=="normal"&&(r=!0);return r},t.prototype.axisCoordToPoint=function(e,n){var r=this._axesLayout[n];return Qo([e,0],r.transform)},t.prototype.getAxisLayout=function(e){return wt(this._axesLayout[e])},t.prototype.getSlidedAxisExpandWindow=function(e){var n=this._makeLayoutInfo(),r=n.pixelDimIndex,a=n.axisExpandWindow.slice(),i=a[1]-a[0],o=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[r]-n.layoutBase-n.axisExpandWindow0Pos,l,u="slide",c=n.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<i*f[0]?(u="jump",l=s-i*f[2]):d&&c&&s>i*(1-f[0])?(u="jump",l=s-i*(1-f[2])):(l=s-i*f[1])>=0&&(l=s-i*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?ih(l,a,o,"all"):u="none";else{var h=a[1]-a[0],v=o[1]*s/h;a=[Uie(0,v-h/2)],a[1]=Gie(o[1],a[0]+h),a[0]=a[1]-h}return{axisExpandWindow:a,behavior:u}},t}();function ab(t,e){return Gie(Uie(t,e[0]),e[1])}function q1t(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function Z1t(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<o[0]?(s=t*i,c=i):t<=o[1]?(s=e.axisExpandWindow0Pos+t*r-e.axisExpandWindow[0],l=r,u=!0):(s=n-(a-1-t)*i,c=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const Q1t=X1t;function J1t(t,e){var n=[];return t.eachComponent("parallel",function(r,a){var i=new Q1t(r,t,e);i.name="parallel_"+a,i.resize(r,e),r.coordinateSystem=i,i.model=r,n.push(i)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var a=r.getReferringComponents("parallel",yr).models[0];r.coordinateSystem=a.coordinateSystem}}),n}var eSt={create:J1t};const tSt=eSt;var Hie=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return e.prototype.getAreaSelectStyle=function(){return Id([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=wt(n);if(r)for(var a=r.length-1;a>=0;a--)Mi(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;i<o;i++)if(r[i][0]<=n&&n<=r[i][1])return"active";return"inactive"},e}(Qt);sr(Hie,Zv);const C6=Hie;var Gd=!0,sm=Math.min,vv=Math.max,nSt=Math.pow,rSt=1e4,aSt=6,iSt=6,T6="globalPan",oSt={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},sSt={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},E6={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},lSt=0,uSt=function(t){we(e,t);function e(n){var r=t.call(this)||this;return r._track=[],r._covers=[],r._handlers={},r._zr=n,r.group=new Ct,r._uid="brushController_"+lSt++,W(gSt,function(a,i){this._handlers[i]=st(a,this)},r),r}return e.prototype.enableBrush=function(n){return this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},e.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||S0t(r,T6,this._uid),W(this._handlers,function(a,i){r.on(i,a)}),this._brushType=n.brushType,this._brushOption=$t(wt(E6),n,!0)},e.prototype._doDisableBrush=function(){var n=this._zr;b0t(n,T6,this._uid),W(this._handlers,function(r,a){n.off(a,r)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};W(n,function(a){r[a.panelId]=wt(a)})}else this._panels=null;return this},e.prototype.mount=function(n){n=n||{},this._enableGlobalPan=n.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=r.getLocalTransform(),this},e.prototype.updateCovers=function(n){n=Ie(n,function(d){return $t(wt(E6),d,!0)});var r="\0-brush-index-",a=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new Wl(a,n,u,l).add(c).update(c).remove(f).execute(),this;function l(d,h){return(d.id!=null?d.id:r+h)+"-"+d.brushType}function u(d,h){return l(d.__brushOption,h)}function c(d,h){var v=n[d];if(h!=null&&a[h]===s)i[d]=a[h];else{var p=i[d]=h!=null?(a[h].__brushOption=v,a[h]):Kie(o,Wie(o,v));RV(o,p)}}function f(d){a[d]!==s&&o.group.remove(a[d])}},e.prototype.unmount=function(){return this.enableBrush(!1),vL(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(po);function Wie(t,e){var n=lT[e.brushType].createCover(t,e);return n.__brushOption=e,Yie(n,e),t.group.add(n),n}function Kie(t,e){var n=LV(e);return n.endCreating&&(n.endCreating(t,e),Yie(e,e.__brushOption)),e}function jie(t,e){var n=e.__brushOption;LV(e).updateCoverShape(t,e,n.range,n)}function Yie(t,e){var n=e.z;n==null&&(n=rSt),t.traverse(function(r){r.z=n,r.z2=n})}function RV(t,e){LV(e).updateCommon(t,e),jie(t,e)}function LV(t){return lT[t.__brushOption.brushType]}function OV(t,e,n){var r=t._panels;if(!r)return Gd;var a,i=t._transform;return W(r,function(o){o.isTargetByCursor(e,n,i)&&(a=o)}),a}function Xie(t,e){var n=t._panels;if(!n)return Gd;var r=e.__brushOption.panelId;return r!=null?n[r]:Gd}function vL(t){var e=t._covers,n=e.length;return W(e,function(r){t.group.remove(r)},t),e.length=0,!!n}function Ud(t,e){var n=Ie(t._covers,function(r){var a=r.__brushOption,i=wt(a.range);return{brushType:a.brushType,panelId:a.panelId,range:i}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function cSt(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],a=n[0]-r[0],i=n[1]-r[1],o=nSt(a*a+i*i,.5);return o>aSt}function qie(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function Zie(t,e,n,r){var a=new Ct;return a.add(new nn({name:"main",style:AV(n),silent:!0,draggable:!0,cursor:"move",drift:kt(M6,t,e,a,["n","s","w","e"]),ondragend:kt(Ud,e,{isEnd:!0})})),W(r,function(i){a.add(new nn({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:kt(M6,t,e,a,i),ondragend:kt(Ud,e,{isEnd:!0})}))}),a}function Qie(t,e,n,r){var a=r.brushStyle.lineWidth||0,i=vv(a,iSt),o=n[0][0],s=n[1][0],l=o-a/2,u=s-a/2,c=n[0][1],f=n[1][1],d=c-i+a/2,h=f-i+a/2,v=c-o,p=f-s,g=v+a,y=p+a;dl(t,e,"main",o,s,v,p),r.transformable&&(dl(t,e,"w",l,u,i,y),dl(t,e,"e",d,u,i,y),dl(t,e,"n",l,u,g,i),dl(t,e,"s",l,h,g,i),dl(t,e,"nw",l,u,i,i),dl(t,e,"ne",d,u,i,i),dl(t,e,"sw",l,h,i,i),dl(t,e,"se",d,h,i,i))}function gL(t,e){var n=e.__brushOption,r=n.transformable,a=e.childAt(0);a.useStyle(AV(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?yL(t,i[0]):dSt(t,i);o&&o.attr({silent:!r,invisible:!r,cursor:r?sSt[s]+"-resize":null})})}function dl(t,e,n,r,a,i,o){var s=e.childOfName(n);s&&s.setShape(pSt(NV(t,e,[[r,a],[r+i,a+o]])))}function AV(t){return mt({strokeNoScale:!0},t.brushStyle)}function Jie(t,e,n,r){var a=[sm(t,n),sm(e,r)],i=[vv(t,n),vv(e,r)];return[[a[0],i[0]],[a[1],i[1]]]}function fSt(t){return rc(t.group)}function yL(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},a=FC(n[e],fSt(t));return r[a]}function dSt(t,e){var n=[yL(t,e[0]),yL(t,e[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function M6(t,e,n,r,a,i){var o=n.__brushOption,s=t.toRectRange(o.range),l=eoe(e,a,i);W(r,function(u){var c=oSt[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=t.fromRectRange(Jie(s[0][0],s[1][0],s[0][1],s[1][1])),RV(e,n),Ud(e,{isEnd:!1})}function hSt(t,e,n,r){var a=e.__brushOption.range,i=eoe(t,n,r);W(a,function(o){o[0]+=i[0],o[1]+=i[1]}),RV(t,e),Ud(t,{isEnd:!1})}function eoe(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 NV(t,e,n){var r=Xie(t,e);return r&&r!==Gd?r.clipPath(n,t._transform):wt(n)}function pSt(t){var e=sm(t[0][0],t[1][0]),n=sm(t[0][1],t[1][1]),r=vv(t[0][0],t[1][0]),a=vv(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:a-n}}function vSt(t,e,n){if(!(!t._brushType||ySt(t,e.offsetX,e.offsetY))){var r=t._zr,a=t._covers,i=OV(t,e,n);if(!t._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(i&&(i===Gd||s.panelId===i.panelId)&&lT[s.brushType].contain(a[o],n[0],n[1]))return}i&&r.setCursorStyle("crosshair")}}function mL(t){var e=t.event;e.preventDefault&&e.preventDefault()}function SL(t,e,n){return t.childOfName("main").contain(e,n)}function toe(t,e,n,r){var a=t._creatingCover,i=t._creatingPanel,o=t._brushOption,s;if(t._track.push(n.slice()),cSt(t)||a){if(i&&!a){o.brushMode==="single"&&vL(t);var l=wt(o);l.brushType=D6(l.brushType,i),l.panelId=i===Gd?null:i.panelId,a=t._creatingCover=Wie(t,l),t._covers.push(a)}if(a){var u=lT[D6(t._brushType,i)],c=a.__brushOption;c.range=u.getCreatingRange(NV(t,a,t._track)),r&&(Kie(t,a),u.updateCommon(t,a)),jie(t,a),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&OV(t,e,n)&&vL(t)&&(s={isEnd:r,removeOnClick:!0});return s}function D6(t,e){return t==="auto"?e.defaultBrushType:t}var gSt={mousedown:function(t){if(this._dragging)k6(this,t);else if(!t.target||!t.target.draggable){mL(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=OV(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(vSt(this,t,r),this._dragging){mL(t);var a=toe(this,t,r,!1);a&&Ud(this,a)}},mouseup:function(t){k6(this,t)}};function k6(t,e){if(t._dragging){mL(e);var n=e.offsetX,r=e.offsetY,a=t.group.transformCoordToLocal(n,r),i=toe(t,e,a,!0);t._dragging=!1,t._track=[],t._creatingCover=null,i&&Ud(t,i)}}function ySt(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var lT={lineX:R6(0),lineY:R6(1),rect:{createCover:function(t,e){function n(r){return r}return Zie({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=qie(t);return Jie(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){Qie(t,e,n,r)},updateCommon:gL,contain:SL},polygon:{createCover:function(t,e){var n=new Ct;return n.add(new ei({name:"main",style:AV(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Za({name:"main",draggable:!0,drift:kt(hSt,t,e),ondragend:kt(Ud,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:NV(t,e,n)})},updateCommon:gL,contain:SL}};function R6(t){return{createCover:function(e,n){return Zie({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=qie(e),r=sm(n[0][t],n[1][t]),a=vv(n[0][t],n[1][t]);return[r,a]},updateCoverShape:function(e,n,r,a){var i,o=Xie(e,n);if(o!==Gd&&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(),Qie(e,n,l,a)},updateCommon:gL,contain:SL}}const VV=uSt;function noe(t){return t=BV(t),function(e){return wN(e,t)}}function roe(t,e){return t=BV(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 aoe(t,e,n){var r=BV(t);return function(a,i){return r.contain(i[0],i[1])&&!aT(a,e,n)}}function BV(t){return Ft.create(t)}var mSt=["axisLine","axisTickLabel","axisName"],SSt=function(t){we(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 VV(r.getZr())).on("brush",st(this._onBrush,this))},e.prototype.render=function(n,r,a,i){if(!bSt(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=_St(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),h=Oe({strokeContainThreshold:c},d),v=new jl(n,h);W(mSt,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,n,s,c,a),Xm(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:noe(f),isTargetByCursor:aoe(f,s,i),getLinearBrushOtherExtent:roe(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(wSt(a))},e.prototype._onBrush=function(n){var r=n.areas,a=this.axisModel,i=a.axis,o=Ie(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}(jn);function bSt(t,e,n){return n&&n.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function wSt(t){var e=t.axis;return Ie(t.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(n[0],!0),e.dataToCoord(n[1],!0)]}})}function _St(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}const xSt=SSt;var CSt={type:"axisAreaSelect",event:"axisAreaSelected"};function TSt(t){t.registerAction(CSt,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 ESt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function ioe(t){t.registerComponentView(G1t),t.registerComponentModel(H1t),t.registerCoordinateSystem("parallel",tSt),t.registerPreprocessor(B1t),t.registerComponentModel(C6),t.registerComponentView(xSt),pv(t,"parallel",C6,ESt),TSt(t)}function MSt(t){Ut(ioe),t.registerChartView(D1t),t.registerSeriesModel(O1t),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,V1t)}var DSt=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}(),kSt=function(t){we(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new DSt},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(){Ul(this)},e.prototype.downplay=function(){Hl(this)},e}(Wt),RSt=function(t){we(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(v){var p=new kSt,g=Rt(p);g.dataIndex=v.dataIndex,g.seriesIndex=n.seriesIndex,g.dataType="edge";var y=v.getModel(),m=y.getModel("lineStyle"),S=m.get("curveness"),b=v.node1.getLayout(),x=v.node1.getModel(),_=x.get("localX"),C=x.get("localY"),T=v.node2.getLayout(),D=v.node2.getModel(),M=D.get("localX"),E=D.get("localY"),k=v.getLayout(),R,O,B,$,V,F,L,N;p.shape.extent=Math.max(1,k.dy),p.shape.orient=h,h==="vertical"?(R=(_!=null?_*u:b.x)+k.sy,O=(C!=null?C*c:b.y)+b.dy,B=(M!=null?M*u:T.x)+k.ty,$=E!=null?E*c:T.y,V=R,F=O*(1-S)+$*S,L=B,N=O*S+$*(1-S)):(R=(_!=null?_*u:b.x)+b.dx,O=(C!=null?C*c:b.y)+k.sy,B=M!=null?M*u:T.x,$=(E!=null?E*c:T.y)+k.ty,V=R*(1-S)+B*S,F=O,L=R*S+B*(1-S),N=$),p.setShape({x1:R,y1:O,x2:B,y2:$,cpx1:V,cpy1:F,cpx2:L,cpy2:N}),p.useStyle(m.getItemStyle()),L6(p.style,h,v);var H=""+y.get("value"),K=Pr(y,"edgeLabel");ca(p,K,{labelFetcher:{getFormattedLabel:function(be,le,J,Z,ee,ce){return n.getFormattedLabel(be,le,"edge",Z,Xo(ee,K.normal&&K.normal.get("formatter"),H),ce)}},labelDataIndex:v.dataIndex,defaultText:H}),p.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");ua(p,y,"lineStyle",function(be){var le=be.getItemStyle();return L6(le,h,v),le}),s.add(p),d.setItemGraphicEl(v.dataIndex,p);var ie=Q.get("focus");ar(p,ie==="adjacency"?v.getAdjacentDataIndices():ie==="trajectory"?v.getTrajectoryDataIndices():ie,Q.get("blurScope"),Q.get("disabled"))}),o.eachNode(function(v){var p=v.getLayout(),g=v.getModel(),y=g.get("localX"),m=g.get("localY"),S=g.getModel("emphasis"),b=new nn({shape:{x:y!=null?y*u:p.x,y:m!=null?m*c:p.y,width:p.dx,height:p.dy},style:g.getModel("itemStyle").getItemStyle(),z2:10});ca(b,Pr(g),{labelFetcher:{getFormattedLabel:function(_,C){return n.getFormattedLabel(_,C,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),b.disableLabelAnimation=!0,b.setStyle("fill",v.getVisual("color")),b.setStyle("decal",v.getVisual("style").decal),ua(b,g),s.add(b),f.setItemGraphicEl(v.dataIndex,b),Rt(b).dataType="node";var x=S.get("focus");ar(b,x==="adjacency"?v.getAdjacentDataIndices():x==="trajectory"?v.getTrajectoryDataIndices():x,S.get("blurScope"),S.get("disabled"))}),f.eachItemGraphicEl(function(v,p){var g=f.getItemModel(p);g.get("draggable")&&(v.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(p),localX:this.shape.x/u,localY:this.shape.y/c})},v.ondragend=function(){i._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(LSt(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(kn);function L6(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");it(r)&&it(a)&&(t.fill=new $v(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:a,offset:1}]))}}function LSt(t,e,n){var r=new nn({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Un(r,{shape:{width:t.width+20}},e,n),r}const OSt=RSt;var ASt=function(t){we(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<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Mn(o[l],this,r));if(i&&a){var u=Fie(i,a,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,v){var p=h.parentModel,g=p.getData().getItemLayout(v);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),d.wrapMethod("getItemModel",function(h,v){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(v),y=g.node1.getLayout();if(y){var m=y.depth,S=p.levelModels[m];S&&(h.parentModel=S)}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 Fr("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 Fr("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}(In);const NSt=ASt;function VSt(t,e){t.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),a=n.get("nodeGap"),i=BSt(n,e);n.layoutInfo=i;var o=i.width,s=i.height,l=n.getGraph(),u=l.nodes,c=l.edges;ISt(u);var f=wn(u,function(p){return p.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),v=n.get("nodeAlign");$St(u,c,r,a,o,s,d,h,v)})}function BSt(t,e){return xr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function $St(t,e,n,r,a,i,o,s,l){PSt(t,e,n,a,i,s,l),USt(t,e,i,a,r,o,s),QSt(t,s)}function ISt(t){W(t,function(e){var n=oc(e.outEdges,rx),r=oc(e.inEdges,rx),a=e.getValue()||0,i=Math.max(n,r,a);e.setLayout({value:i},!0)})}function PSt(t,e,n,r,a,i,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<e.length;d++)s[d]=1;for(var d=0;d<t.length;d++)l[d]=t[d].inEdges.length,l[d]===0&&u.push(t[d]);for(var h=-1;u.length;){for(var v=0;v<u.length;v++){var p=u[v],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:f},!0),i==="vertical"?p.setLayout({dy:n},!0):p.setLayout({dx:n},!0);for(var m=0;m<p.outEdges.length;m++){var S=p.outEdges[m],b=e.indexOf(S);s[b]=0;var x=S.node2,_=t.indexOf(x);--l[_]===0&&c.indexOf(x)<0&&c.push(x)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var C=h>f-1?h:f-1;o&&o!=="left"&&FSt(t,o,i,C);var T=i==="vertical"?(a-n)/C:(r-n)/C;GSt(t,T,i)}function ooe(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function FSt(t,e,n,r){if(e==="right"){for(var a=[],i=t,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];a.indexOf(c.node1)<0&&a.push(c.node1)}}i=a,a=[],++o}W(t,function(f){ooe(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&zSt(t,r)}function zSt(t,e){W(t,function(n){!ooe(n)&&!n.outEdges.length&&n.setLayout({depth:e},!0)})}function GSt(t,e,n){W(t,function(r){var a=r.getLayout().depth*e;n==="vertical"?r.setLayout({y:a},!0):r.setLayout({x:a},!0)})}function USt(t,e,n,r,a,i,o){var s=HSt(t,o);WSt(s,e,n,r,a,o),wM(s,a,n,r,o);for(var l=1;i>0;i--)l*=.99,KSt(s,l,o),wM(s,a,n,r,o),ZSt(s,l,o),wM(s,a,n,r,o)}function HSt(t,e){var n=[],r=e==="vertical"?"y":"x",a=wR(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 WSt(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;c<o&&(o=c)}),W(t,function(s){W(s,function(l,u){var c=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),W(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function wM(t,e,n,r,a){var i=a==="vertical"?"x":"y";W(t,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,c=0,f=o.length,d=a==="vertical"?"dx":"dy",h=0;h<f;h++)l=o[h],u=c-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[i]+l.getLayout()[d]+e;var v=a==="vertical"?r:n;if(u=c-e-v,u>0){s=l.getLayout()[i]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[d]+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 KSt(t,e,n){W(t.slice().reverse(),function(r){W(r,function(a){if(a.outEdges.length){var i=oc(a.outEdges,jSt,n)/oc(a.outEdges,rx);if(isNaN(i)){var o=a.outEdges.length;i=o?oc(a.outEdges,YSt,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-xc(a,n))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-xc(a,n))*e;a.setLayout({y:l},!0)}}})})}function jSt(t,e){return xc(t.node2,e)*t.getValue()}function YSt(t,e){return xc(t.node2,e)}function XSt(t,e){return xc(t.node1,e)*t.getValue()}function qSt(t,e){return xc(t.node1,e)}function xc(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function rx(t){return t.getValue()}function oc(t,e,n){for(var r=0,a=t.length,i=-1;++i<a;){var o=+e(t[i],n);isNaN(o)||(r+=o)}return r}function ZSt(t,e,n){W(t,function(r){W(r,function(a){if(a.inEdges.length){var i=oc(a.inEdges,XSt,n)/oc(a.inEdges,rx);if(isNaN(i)){var o=a.inEdges.length;i=o?oc(a.inEdges,qSt,n)/o:0}if(n==="vertical"){var s=a.getLayout().x+(i-xc(a,n))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(i-xc(a,n))*e;a.setLayout({y:l},!0)}}})})}function QSt(t,e){var n=e==="vertical"?"x":"y";W(t,function(r){r.outEdges.sort(function(a,i){return a.node2.getLayout()[n]-i.node2.getLayout()[n]}),r.inEdges.sort(function(a,i){return a.node1.getLayout()[n]-i.node1.getLayout()[n]})}),W(t,function(r){var a=0,i=0;W(r.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),W(r.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function JSt(t){t.eachSeriesByType("sankey",function(e){var n=e.getGraph(),r=n.nodes,a=n.edges;if(r.length){var i=1/0,o=-1/0;W(r,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),W(r,function(s){var l=new oa({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 ebt(t){t.registerChartView(OSt),t.registerSeriesModel(NSt),t.registerLayout(VSt),t.registerVisual(JSt),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 soe=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],v=h[c].get("type"),p=h[1-c].get("type"),g=e.data;if(g&&l){var y=[];W(g,function(b,x){var _;$e(b)?(_=b.slice(),b.unshift(x)):$e(b.value)?(_=Oe({},b),_.value=_.value.slice(),b.value.unshift(x)):_=b,y.push(_)}),e.data=y}var m=this.defaultValueDimensions,S=[{name:f,type:W_(v),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:W_(p),dimsDef:m.slice()}];return Qv(this,{coordDimensions:S,dimensionsCount:m.length+1,encodeDefaulter:kt(kne,S,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),loe=function(t){we(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}(In);sr(loe,soe,!0);const tbt=loe;var nbt=function(t){we(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=O6(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?(is(f),uoe(d,f,i,u)):f=O6(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}(kn),rbt=function(){function t(){}return t}(),abt=function(t){we(e,t);function e(n){var r=t.call(this,n)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new rbt},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();i<a.length;i++)n.moveTo(a[i][0],a[i][1]),i++,n.lineTo(a[i][0],a[i][1])},e}(Wt);function O6(t,e,n,r,a){var i=t.ends,o=new abt({shape:{points:a?ibt(i,r,t):i}});return uoe(t,o,e,n,a),o}function uoe(t,e,n,r,a){var i=n.hostModel,o=qm[a?"initProps":"updateProps"];o(e,{shape:{points:t.ends}},i,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");ua(e,s),ar(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function ibt(t,e,n){return Ie(t,function(r){return r=r.slice(),r[e]=n.initBaseline,r})}const obt=nbt;var U0=W;function sbt(t){var e=lbt(t);U0(e,function(n){var r=n.seriesModels;r.length&&(ubt(n),U0(r,function(a,i){cbt(a,n.boxOffsetList[i],n.boxWidthList[i])}))})}function lbt(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(r){var a=r.getBaseAxis(),i=zt(n,a);i<0&&(i=n.length,n[i]=a,e[i]={axis:a,seriesModels:[]}),e[i].seriesModels.push(r)}),e}function ubt(t){var e=t.axis,n=t.seriesModels,r=n.length,a=t.boxWidthList=[],i=t.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;U0(n,function(v){l=Math.max(l,v.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}U0(n,function(v){var p=v.get("boxWidth");$e(p)||(p=[p,p]),o.push([tt(p[0],s)||0,tt(p[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,h=d/2-c/2;U0(n,function(v,p){i.push(h),h+=f+d,a.push(Math.min(Math.max(d,o[p][0]),o[p][1]))})}function cbt(t,e,n){var r=t.coordinateSystem,a=t.getData(),i=n/2,o=t.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),c=a.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<a.count();f++){var d=a.get(u,f),h=S(d,c[2],f),v=S(d,c[0],f),p=S(d,c[1],f),g=S(d,c[3],f),y=S(d,c[4],f),m=[];b(m,p,!1),b(m,g,!0),m.push(v,p,y,g),x(m,v),x(m,y),x(m,h),a.setItemLayout(f,{initBaseline:h[s],ends:m})}function S(_,C,T){var D=a.get(C,T),M=[];M[o]=_,M[s]=D;var E;return isNaN(_)||isNaN(D)?E=[NaN,NaN]:(E=r.dataToPoint(M),E[o]+=e),E}function b(_,C,T){var D=C.slice(),M=C.slice();D[o]+=i,M[o]-=i,T?_.push(D,M):_.push(M,D)}function x(_,C){var T=C.slice(),D=C.slice();T[o]-=i,D[o]+=i,_.push(T,D)}}function fbt(t,e){e=e||{};for(var n=[],r=[],a=e.boundIQR,i=a==="none"||a===0,o=0;o<t.length;o++){var s=Mi(t[o].slice()),l=uw(s,.25),u=uw(s,.5),c=uw(s,.75),f=s[0],d=s[s.length-1],h=(a??1.5)*(c-l),v=i?f:Math.max(f,l-h),p=i?d:Math.min(d,c+h),g=e.itemNameFormatter,y=gt(g)?g({value:o}):it(g)?g.replace("{value}",o+""):o+"";n.push([y,v,l,u,c,p]);for(var m=0;m<s.length;m++){var S=s[m];if(S<v||S>p){var b=[y,S];r.push(b)}}}return{boxData:n,outliers:r}}var dbt={type:"echarts:boxplot",transform:function(e){var n=e.upstream;if(n.sourceFormat!==Ma){var r="";gn(r)}var a=fbt(n.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function hbt(t){t.registerSeriesModel(tbt),t.registerChartView(obt),t.registerLayout(sbt),t.registerTransform(dbt)}var pbt=["color","borderColor"],vbt=function(t){we(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){Ic(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&&A6(u,f))return;var d=_M(f,c,!0);Un(d,{shape:{points:f.ends}},n,c),xM(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&&A6(u,h)){i.remove(d);return}d?(cn(d,{shape:{points:h.ends}},n,c),is(d)):d=_M(h),xM(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(),N6(n,this.group);var r=n.get("clip",!0)?rT(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=_M(s);xM(l,a,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(n,r){N6(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}(kn),gbt=function(){function t(){}return t}(),ybt=function(t){we(e,t);function e(n){var r=t.call(this,n)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new gbt},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 _M(t,e,n){var r=t.ends;return new ybt({shape:{points:n?mbt(r,t):r},z2:100})}function A6(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function xM(t,e,n,r){var a=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,ua(t,a)}function mbt(t,e){return Ie(t,function(n){return n=n.slice(),n[1]=e.initBaseline,n})}var Sbt=function(){function t(){}return t}(),CM=function(t){we(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Sbt},e.prototype.buildPath=function(n,r){for(var a=r.points,i=0;i<a.length;)if(this.__sign===a[i++]){var o=a[i++];n.moveTo(o,a[i++]),n.lineTo(o,a[i++])}else i+=3},e}(Wt);function N6(t,e,n,r){var a=t.getData(),i=a.getLayout("largePoints"),o=new CM({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new CM({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new CM({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),TM(1,o,t),TM(-1,s,t),TM(0,l,t),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function TM(t,e,n,r){var a=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);t===0&&(a=n.get(["itemStyle","borderColorDoji"]));var i=n.getModel("itemStyle").getItemStyle(pbt);e.useStyle(i),e.style.fill=null,e.style.stroke=a}const bbt=vbt;var coe=function(t){we(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}(In);sr(coe,soe,!0);const wbt=coe;function _bt(t){!t||!$e(t.series)||W(t.series,function(e){bt(e)&&e.type==="k"&&(e.type="candlestick")})}var xbt=["itemStyle","borderColor"],Cbt=["itemStyle","borderColor0"],Tbt=["itemStyle","borderColorDoji"],Ebt=["itemStyle","color"],Mbt=["itemStyle","color0"],Dbt={seriesType:"candlestick",plan:jv(),performRawSeries:!0,reset:function(t,e){function n(i,o){return o.get(i>0?Ebt:Mbt)}function r(i,o){return o.get(i===0?Tbt:i>0?xbt:Cbt)}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 kbt=Dbt;var Rbt={seriesType:"candlestick",plan:jv(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=Lbt(t,n),a=0,i=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[a])),l=Ie(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?v:h};function h(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var S=m.get(s,y),b=m.get(u,y),x=m.get(c,y),_=m.get(f,y),C=m.get(d,y),T=Math.min(b,x),D=Math.max(b,x),M=V(T,S),E=V(D,S),k=V(_,S),R=V(C,S),O=[];F(O,E,0),F(O,M,1),O.push(N(R),N(E),N(k),N(M));var B=g.getItemModel(y),$=!!B.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:V6(m,y,b,x,c,$),initBaseline:b>x?E[i]:M[i],ends:O,brushRect:L(_,C,S)})}function V(H,K){var Q=[];return Q[a]=K,Q[i]=H,isNaN(K)||isNaN(H)?[NaN,NaN]:e.dataToPoint(Q)}function F(H,K,Q){var ie=K.slice(),be=K.slice();ie[a]=dw(ie[a]+r/2,1,!1),be[a]=dw(be[a]-r/2,1,!0),Q?H.push(ie,be):H.push(be,ie)}function L(H,K,Q){var ie=V(H,Q),be=V(K,Q);return ie[a]-=r/2,be[a]-=r/2,{x:ie[0],y:ie[1],width:r,height:be[1]-ie[1]}}function N(H){return H[a]=dw(H[a],1),H}}function v(p,g){for(var y=Bs(p.count*4),m=0,S,b=[],x=[],_,C=g.getStore(),T=!!t.get(["itemStyle","borderColorDoji"]);(_=p.next())!=null;){var D=C.get(s,_),M=C.get(u,_),E=C.get(c,_),k=C.get(f,_),R=C.get(d,_);if(isNaN(D)||isNaN(k)||isNaN(R)){y[m++]=NaN,m+=3;continue}y[m++]=V6(C,_,M,E,c,T),b[a]=D,b[i]=k,S=e.dataToPoint(b,null,x),y[m++]=S?S[0]:NaN,y[m++]=S?S[1]:NaN,b[i]=R,S=e.dataToPoint(b,null,x),y[m++]=S?S[1]:NaN}g.setLayout("largePoints",y)}}};function V6(t,e,n,r,a,i){var o;return n>r?o=-1:n<r?o=1:o=i?0:e>0?t.get(a,e-1)<=r?1:-1:1,o}function Lbt(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=tt(Pt(t.get("barMaxWidth"),a),a),o=tt(Pt(t.get("barMinWidth"),1),a),s=t.get("barWidth");return s!=null?tt(s,a):Math.max(Math.min(a/2,i),o)}const Obt=Rbt;function Abt(t){t.registerChartView(bbt),t.registerSeriesModel(wbt),t.registerPreprocessor(_bt),t.registerVisual(kbt),t.registerLayout(Obt)}function B6(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 Nbt=function(t){we(e,t);function e(n,r){var a=t.call(this)||this,i=new t1(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;s<i;s++){var l=fr(r,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*n.period+n.effectOffset;l.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(n.period,{opacity:0}).delay(u).start(),o.add(l)}B6(o,n)},e.prototype.updateEffectAnimation=function(n){for(var r=this._effectCfg,a=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(r[s]!==n[s]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}B6(a,n)},e.prototype.highlight=function(){Ul(this)},e.prototype.downplay=function(){Hl(this)},e.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},e.prototype.updateData=function(n,r){var a=this,i=n.hostModel;this.childAt(0).updateData(n,r);var o=this.childAt(1),s=n.getItemModel(r),l=n.getItemVisual(r,"symbol"),u=Xv(n.getItemVisual(r,"symbolSize")),c=n.getItemVisual(r,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",f)});var h=nh(n.getItemVisual(r,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var v=n.getItemVisual(r,"symbolRotate");o.rotation=(v||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=r/n.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=f,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&a.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=p,ar(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(n){n&&n()},e}(Ct);const Vbt=Nbt;var Bbt=function(t){we(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._symbolDraw=new n1(Vbt)},e.prototype.render=function(n,r,a){var i=n.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(n)}),this.group.add(o.group)},e.prototype._getClipShape=function(n){var r=n.coordinateSystem,a=r&&r.getArea&&r.getArea();return n.get("clip",!0)?a:null},e.prototype.updateTransform=function(n,r,a){var i=n.getData();this.group.dirty();var o=r1("").reset(n,r,a);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(n){var r=n.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=Cee(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(kn);const $bt=Bbt;var Ibt=function(t){we(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 il(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(n,r,a){return a.point(r.getItemLayout(n))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(In);const Pbt=Ibt;function Fbt(t){t.registerChartView($bt),t.registerSeriesModel(Pbt),t.registerLayout(r1("effectScatter"))}var zbt=function(t){we(e,t);function e(n,r,a){var i=t.call(this)||this;return i.add(i.createLine(n,r,a)),i._updateEffectSymbol(n,r),i}return e.prototype.createLine=function(n,r,a){return new DV(n,r,a)},e.prototype._updateEffectSymbol=function(n,r){var a=n.getItemModel(r),i=a.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");$e(o)||(o=[o,o]);var l=n.getItemVisual(r,"style"),u=i.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=fr(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(i.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(n,i,r))},e.prototype._updateEffectAnimation=function(n,r,a){var i=this.childAt(1);if(i){var o=n.getItemLayout(a),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),c=r.get("constantSpeed"),f=Nr(r.get("delay"),function(h){return h/n.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),c>0&&(s=this._getLineLength(i)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var d=void 0;gt(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 Tl(n.__p1,n.__cp1)+Tl(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=Wr,c=oR;s[0]=u(r[0],i[0],a[0],o),s[1]=u(r[1],i[1],a[1],o);var f=n.__t<1?c(r[0],i[0],a[0],o):c(a[0],i[0],r[0],1-o),d=n.__t<1?c(r[1],i[1],a[1],o):c(a[1],i[1],r[1],1-o);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT<n.__t?(n.scaleY=Tl(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):n.__lastT===1?n.scaleY=2*Tl(r,s):n.scaleY=this._symbolScale[1]),n.__lastT=n.__t,n.ignore=!1,n.x=s[0],n.y=s[1]},e.prototype.updateLayout=function(n,r){this.childAt(0).updateLayout(n,r);var a=n.getItemModel(r).getModel("effect");this._updateEffectAnimation(n,a,r)},e}(Ct);const foe=zbt;var Gbt=function(t){we(e,t);function e(n,r,a){var i=t.call(this)||this;return i._createPolyline(n,r,a),i}return e.prototype._createPolyline=function(n,r,a){var i=n.getItemLayout(r),o=new ei({shape:{points:i}});this.add(o),this._updateCommonStl(n,r,a)},e.prototype.updateData=function(n,r,a){var i=n.hostModel,o=this.childAt(0),s={shape:{points:n.getItemLayout(r)}};cn(o,s,i,r),this._updateCommonStl(n,r,a)},e.prototype._updateCommonStl=function(n,r,a){var i=this.childAt(0),o=n.getItemModel(r),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,c=a&&a.emphasisDisabled;if(!a||n.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}i.useStyle(n.getItemVisual(r,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var d=i.ensureState("emphasis");d.style=s,ar(this,l,u,c)},e.prototype.updateLayout=function(n,r){var a=this.childAt(0);a.setShape("points",n.getItemLayout(r))},e}(Ct);const doe=Gbt;var Ubt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._lastFrame=0,n._lastFramePercent=0,n}return e.prototype.createLine=function(n,r,a){return new doe(n,r,a)},e.prototype._updateAnimationPoints=function(n,r){this._points=r;for(var a=[0],i=0,o=1;o<r.length;o++){var s=r[o-1],l=r[o];i+=Tl(s,l),a.push(i)}if(i===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=i;this._offsets=a,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(n){var r=n.__t<1?n.__t:2-n.__t,a=this._points,i=this._offsets,o=a.length;if(i){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>r);l++);l=Math.min(l-1,o-2)}var c=(r-i[l])/(i[l+1]-i[l]),f=a[l],d=a[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var h=n.__t<1?d[0]-f[0]:f[0]-d[0],v=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},e}(foe);const Hbt=Ubt;var Wbt=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),Kbt=function(t){we(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 Wbt},e.prototype.buildPath=function(n,r){var a=r.segs,i=r.curveness,o;if(r.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){n.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)n.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],c=a[o++],f=a[o++],d=a[o++];if(n.moveTo(u,c),i>0){var h=(u+f)/2-(c-d)*i,v=(c+d)/2-(f-u)*i;n.quadraticCurveTo(h,v,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},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;u<i.length;){var c=i[u++];if(c>0)for(var f=i[u++],d=i[u++],h=1;h<c;h++){var v=i[u++],p=i[u++];if(Au(f,d,v,p,s,n,r))return l}l++}else for(var l=0,u=0;u<i.length;){var f=i[u++],d=i[u++],v=i[u++],p=i[u++];if(o>0){var g=(f+v)/2-(d-p)*o,y=(d+p)/2-(v-f)*o;if(mte(f,d,g,y,v,p,s,n,r))return l}else if(Au(f,d,v,p,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;u<a.length;){var c=a[u++],f=a[u++];i=Math.min(c,i),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}n=this._rect=new Ft(i,o,s,l)}return n},e}(Wt),jbt=function(){function t(){this.group=new Ct}return t.prototype.updateData=function(e){this._clear();var n=this._create();n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e)},t.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(e,n){var r=this._newAdded[0],a=n.getLayout("linesPoints"),i=r&&r.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+a.length);s.set(i),s.set(a,o),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:a}),this._setCommon(l,n),l.__startIndex=e.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new Kbt({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},t.prototype._setCommon=function(e,n,r){var a=n.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=n.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=Rt(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const Ybt=jbt;var Xbt={seriesType:"lines",plan:jv(),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;c<a.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=a.start;c<a.end;c++){var h=t.getLineCoords(c,o);n&&(s[f++]=h);for(var v=0;v<h;v++)d=e.dataToPoint(o[v],!1,d),s[f++]=d[0],s[f++]=d[1]}i.setLayout("linesPoints",s)}else for(var c=a.start;c<a.end;c++){var p=i.getItemModel(c),h=t.getLineCoords(c,o),g=[];if(n)for(var y=0;y<h;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(c,g)}}}}}};const hoe=Xbt;var qbt=function(t){we(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._updateLineDraw(i,n),s=n.get("zlevel"),l=n.get(["effect","trailLength"]),u=a.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(n)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var f=n.get("clip",!0)&&rT(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=hoe.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 Ybt:new kV(o?i?Hbt:doe:i?foe:DV),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}(kn);const Zbt=qbt;var Qbt=typeof Uint32Array>"u"?Array:Uint32Array,Jbt=typeof Float64Array>"u"?Array:Float64Array;function $6(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Ie(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),_C([a,n[0],n[1]])}))}var ewt=function(t){we(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||[],$6(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($6(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=Ay(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Ay(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<i;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[a+o*2],r[o][1]=this._flatCoords[a+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(n),o=0;o<s.length;o++)r[o]=r[o]||[],r[o][0]=s[o][0],r[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(n){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),on(n[0])){for(var a=n.length,i=new Qbt(a),o=new Jbt(a),s=0,l=0,u=0,c=0;c<a;){u++;var f=n[c++];i[l++]=s+r,i[l++]=f;for(var d=0;d<f;d++){var h=n[c++],v=n[c++];o[s++]=h,o[s++]=v}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},e.prototype.getInitialData=function(n,r){var a=new _a(["value"],this);return a.hasItemOption=!1,a.initData(n.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;a.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),a},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=i.getItemModel(n),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Fr("nameValue",{name:c.join(" > ")})},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}(In);const twt=ewt;function ib(t){return t instanceof Array||(t=[t,t]),t}var nwt={seriesType:"lines",reset:function(t){var e=ib(t.get("symbol")),n=ib(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=ib(s.getShallow("symbol",!0)),u=ib(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 rwt=nwt;function awt(t){t.registerChartView(Zbt),t.registerSeriesModel(twt),t.registerLayout(hoe),t.registerVisual(rwt)}var iwt=256,owt=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ts.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 v=0;v<h;++v){var p=e[v],g=p[0],y=p[1],m=p[2],S=a(m);d.globalAlpha=S,d.drawImage(s,g-c,y-c)}if(!f.width||!f.height)return f;for(var b=d.getImageData(0,0,f.width,f.height),x=b.data,_=0,C=x.length,T=this.minOpacity,D=this.maxOpacity,M=D-T;_<C;){var S=x[_+3]/256,E=Math.floor(S*(iwt-1))*4;if(S>0){var k=o(S)?l:u;S>0&&(S=S*M+T),x[_++]=k[E],x[_++]=k[E+1],x[_++]=k[E+2],x[_++]=k[E+3]*S*256}else _+=4}return d.putImageData(b,0,0),f},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ts.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 swt=owt;function lwt(t,e,n){var r=t[1]-t[0];e=Ie(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<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===a)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<a&&n[s]}}function uwt(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(r){return r>=e[0]&&r<=e[1]}}function I6(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var cwt=function(t){we(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()):I6(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&&(I6(o)?this.render(r,a,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,i,n.start,n.end,!0)))},e.prototype.eachRendered=function(n){Ic(this._progressiveEls||this.group,n)},e.prototype._renderOnCartesianAndCalendar=function(n,r,a,i,o){var s=n.coordinateSystem,l=rh(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),v=s.getAxis("y");u=h.getBandWidth()+.5,c=v.getBandWidth()+.5,f=h.scale.getExtent(),d=v.scale.getExtent()}for(var p=this.group,g=n.getData(),y=n.getModel(["emphasis","itemStyle"]).getItemStyle(),m=n.getModel(["blur","itemStyle"]).getItemStyle(),S=n.getModel(["select","itemStyle"]).getItemStyle(),b=n.get(["itemStyle","borderRadius"]),x=Pr(n),_=n.getModel("emphasis"),C=_.get("focus"),T=_.get("blurScope"),D=_.get("disabled"),M=l?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],E=a;E<i;E++){var k=void 0,R=g.getItemVisual(E,"style");if(l){var O=g.get(M[0],E),B=g.get(M[1],E);if(isNaN(g.get(M[2],E))||isNaN(O)||isNaN(B)||O<f[0]||O>f[1]||B<d[0]||B>d[1])continue;var $=s.dataToPoint([O,B]);k=new nn({shape:{x:$[0]-u/2,y:$[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(g.get(M[1],E)))continue;k=new nn({z2:1,shape:s.dataToRect([g.get(M[0],E)]).contentShape,style:R})}if(g.hasItemOption){var V=g.getItemModel(E),F=V.getModel("emphasis");y=F.getModel("itemStyle").getItemStyle(),m=V.getModel(["blur","itemStyle"]).getItemStyle(),S=V.getModel(["select","itemStyle"]).getItemStyle(),b=V.get(["itemStyle","borderRadius"]),C=F.get("focus"),T=F.get("blurScope"),D=F.get("disabled"),x=Pr(V)}k.shape.r=b;var L=n.getRawValue(E),N="-";L&&L[2]!=null&&(N=L[2]+""),ca(k,x,{labelFetcher:n,labelDataIndex:E,defaultOpacity:R.opacity,defaultText:N}),k.ensureState("emphasis").style=y,k.ensureState("blur").style=m,k.ensureState("select").style=S,ar(k,C,T,D),k.incremental=o,o&&(k.states.emphasis.hoverLayer=!0),p.add(k),g.setItemGraphicEl(E,k),this._progressiveEls&&this._progressiveEls.push(k)}},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 swt;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),v=Math.min(c.width+c.x,i.getWidth()),p=Math.min(c.height+c.y,i.getHeight()),g=v-d,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],S=l.mapArray(m,function(C,T,D){var M=n.dataToPoint([C,T]);return M[0]-=d,M[1]-=h,M.push(D),M}),b=a.getExtent(),x=a.type==="visualMap.continuous"?uwt(b,a.option.range):lwt(b,a.getPieceList(),a.option.selected);u.update(S,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var _=new Qr({style:{width:g,height:y,x:d,y:h,image:u.canvas},silent:!0});this.group.add(_)},e.type="heatmap",e}(kn);const fwt=cwt;var dwt=function(t){we(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 il(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var n=Kv.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}(In);const hwt=dwt;function pwt(t){t.registerChartView(fwt),t.registerSeriesModel(hwt)}var vwt=["itemStyle","borderWidth"],P6=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],EM=new as,gwt=function(t){we(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:P6[+c],categoryDim:P6[1-+c]};return o.diff(s).add(function(h){if(o.hasValue(h)){var v=z6(o,h),p=F6(o,h,v,d),g=G6(o,d,p);o.setItemGraphicEl(h,g),i.add(g),H6(g,d,p)}}).update(function(h,v){var p=s.getItemGraphicEl(v);if(!o.hasValue(h)){i.remove(p);return}var g=z6(o,h),y=F6(o,h,g,d),m=Soe(o,y);p&&m!==p.__pictorialShapeStr&&(i.remove(p),o.setItemGraphicEl(h,null),p=null),p?xwt(p,d,y):p=G6(o,d,y,!0),o.setItemGraphicEl(h,p),p.__pictorialSymbolMeta=y,i.add(p),H6(p,d,y)}).remove(function(h){var v=s.getItemGraphicEl(h);v&&U6(s,h,v.__pictorialSymbolMeta.animationModel,v)}).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){U6(i,Rt(o).dataIndex,n,o)}):a.removeAll()},e.type="pictorialBar",e}(kn);function F6(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};ywt(n,i,a,r,d),mwt(t,e,a,i,o,d.boundingLength,d.pxSign,c,r,d),Swt(n,d.symbolScale,u,r,d);var h=d.symbolSize,v=nh(n.get("symbolOffset"),h);return bwt(n,h,a,i,o,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function ywt(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($e(o)){var f=[MM(s,o[0])-l,MM(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=MM(s,o)-l:e?c=r.coordSysExtent[i.index][u]-l:c=n[i.wh];a.boundingLength=c,e&&(a.repeatCutLength=n[i.wh]),a.pxSign=c>0?1:-1}function MM(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function mwt(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"),v;$e(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=tt(v[f.index],d),v[c.index]=tt(v[c.index],r?d:Math.abs(i)),u.symbolSize=v;var p=u.symbolScale=[v[0]/s,v[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function Swt(t,e,n,r,a){var i=t.get(vwt)||0;i&&(EM.attr({scaleX:e[0],scaleY:e[1],rotation:n}),EM.updateTransform(),i/=EM.getLineScale(),i*=e[r.valueDim.index]),a.valueLineWidth=i||0}function bwt(t,e,n,r,a,i,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,v=f.pxSign,p=Math.max(e[h.index]+s,0),g=p;if(r){var y=Math.abs(l),m=Nr(t.get("symbolMargin"),"15%")+"",S=!1;m.lastIndexOf("!")===m.length-1&&(S=!0,m=m.slice(0,m.length-1));var b=tt(m,e[h.index]),x=Math.max(p+b*2,0),_=S?0:b*2,C=oN(r),T=C?r:W6((y+_)/x),D=y-T*p;b=D/2/(S?T:Math.max(T-1,1)),x=p+b*2,_=S?0:b*2,!C&&r!=="fixed"&&(T=u?W6((Math.abs(u)+_)/x):0),g=T*x-_,f.repeatTimes=T,f.symbolMargin=b}var M=v*(g/2),E=f.pathPosition=[];E[d.index]=n[d.wh]/2,E[h.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(E[0]+=i[0],E[1]+=i[1]);var k=f.bundlePosition=[];k[d.index]=n[d.xy],k[h.index]=n[h.xy];var R=f.barRectShape=Oe({},n);R[h.wh]=v*Math.max(Math.abs(n[h.wh]),Math.abs(E[h.index]+M)),R[d.wh]=n[d.wh];var O=f.clipShape={};O[d.xy]=-n[d.xy],O[d.wh]=c.ecSize[d.wh],O[h.xy]=0,O[h.wh]=n[h.wh]}function poe(t){var e=t.symbolPatternSize,n=fr(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function voe(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($V(t,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c<u?Op(p,null,v(c),n,r):Op(p,null,{scaleX:0,scaleY:0},n,r,function(){a.remove(p)}),c++});c<u;c++){var d=poe(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,a.add(d);var h=v(c);Op(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function v(p){var g=s.slice(),y=n.pxSign,m=p;return(n.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),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 goe(t,e,n,r){var a=t.__pictorialBundle,i=t.__pictorialMainPath;i?Op(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=poe(n),a.add(i),Op(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 yoe(t,e,n){var r=Oe({},e.barRectShape),a=t.__pictorialBarRect;a?Op(a,null,{shape:r},e,n):(a=t.__pictorialBarRect=new nn({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,t.add(a))}function moe(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)cn(a,{shape:i},s,l);else{i[o.wh]=0,a=new nn({shape:i}),t.__pictorialBundle.setClipPath(a),t.__pictorialClipPath=a;var u={};u[o.wh]=n.clipShape[o.wh],qm[r?"updateProps":"initProps"](a,{shape:u},s,l)}}}function z6(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=wwt,n.isAnimationEnabled=_wt,n}function wwt(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function _wt(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function G6(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?voe(a,e,n):goe(a,e,n),yoe(a,n,r),moe(a,e,n,r),a.__pictorialShapeStr=Soe(t,n),a.__pictorialSymbolMeta=n,a}function xwt(t,e,n){var r=n.animationModel,a=n.dataIndex,i=t.__pictorialBundle;cn(i,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,a),n.symbolRepeat?voe(t,e,n,!0):goe(t,e,n,!0),yoe(t,n,!0),moe(t,e,n,!0)}function U6(t,e,n,r){var a=r.__pictorialBarRect;a&&a.removeTextContent();var i=[];$V(r,function(o){i.push(o)}),r.__pictorialMainPath&&i.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),W(i,function(o){bc(o,{scaleX:0,scaleY:0},n,e,function(){r.parent&&r.parent.remove(r)})}),t.setItemGraphicEl(e,null)}function Soe(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function $V(t,e,n){W(t.__pictorialBundle.children(),function(r){r!==t.__pictorialBarRect&&e.call(n,r)})}function Op(t,e,n,r,a,i){e&&t.attr(e),r.symbolClip&&!a?n&&t.attr(n):n&&qm[a?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,i)}function H6(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");$V(t,function(p){if(p instanceof Qr){var g=p.style;p.useStyle(Oe({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},n.style))}else p.useStyle(n.style);var y=p.ensureState("emphasis");y.style=o,d&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=n.z2});var h=e.valueDim.posDesc[+(n.boundingLength>0)],v=t.__pictorialBarRect;ca(v,Pr(a),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:hv(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),ar(t,c,f,i.get("disabled"))}function W6(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const Cwt=gwt;var Twt=function(t){we(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=Pc(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 Ewt=Twt;function Mwt(t){t.registerChartView(Cwt),t.registerSeriesModel(Ewt),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,kt(eae,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,tae("pictorialBar"))}var Dwt=function(t){we(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 Wl(this._layersSeries||[],l,d,d),v=[];h.add(st(p,this,"add")).update(st(p,this,"update")).remove(st(p,this,"remove")).execute();function p(g,y,m){var S=o._layers;if(g==="remove"){s.remove(S[y]);return}for(var b=[],x=[],_,C=l[y].indices,T=0;T<C.length;T++){var D=i.getItemLayout(C[T]),M=D.x,E=D.y0,k=D.y;b.push(M,E),x.push(M,E+k),_=i.getItemVisual(C[T],"style")}var R,O=i.getItemLayout(C[0]),B=n.getModel("label"),$=B.get("margin"),V=n.getModel("emphasis");if(g==="add"){var F=v[y]=new Ct;R=new Uae({shape:{points:b,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),F.add(R),s.add(F),n.isAnimationEnabled()&&R.setClipPath(kwt(R.getBoundingRect(),n,function(){R.removeClipPath()}))}else{var F=S[m];R=F.childAt(0),s.add(F),v[y]=F,cn(R,{shape:{points:b,stackedOnPoints:x}},n),is(R)}ca(R,Pr(n),{labelDataIndex:C[T-1],defaultText:i.getName(C[T-1]),inheritColor:_.fill},{normal:{verticalAlign:"middle"}}),R.setTextConfig({position:null,local:!0});var L=R.getTextContent();L&&(L.x=O.x-$,L.y=O.y0+O.y/2),R.useStyle(_),i.setItemGraphicEl(y,R),ua(R,n),ar(R,V.get("focus"),V.get("blurScope"),V.get("disabled"))}this._layersSeries=l,this._layers=v},e.type="themeRiver",e}(kn);function kwt(t,e,n){var r=new nn({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Un(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}const Rwt=Dwt;var DM=2,Lwt=function(t){we(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 i1(st(this.getData,this),st(this.getRawData,this))},e.prototype.fixData=function(n){var r=n.length,a={},i=wR(n,function(d){return a.hasOwnProperty(d[0]+"")||(a[d[0]+""]=-1),d[2]}),o=[];i.buckets.each(function(d,h){o.push({name:h,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";a[f]=l}for(var f in a)a.hasOwnProperty(f)&&a[f]!==l&&(a[f]=l,n[r]=[f,0,u],r++)}return n},e.prototype.getInitialData=function(n,r){for(var a=this.getReferringComponents("singleAxis",yr).models[0],i=a.get("type"),o=wn(n.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=ht(),c=0,f=0;f<s.length;++f)l.push(s[f][DM]),u.get(s[f][DM])||(u.set(s[f][DM],c),c++);var d=qv(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:W_(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new _a(d,this);return h.initData(s),h},e.prototype.getLayerSeries=function(){for(var n=this.getData(),r=n.count(),a=[],i=0;i<r;++i)a[i]=i;var o=n.mapDimension("single"),s=wR(a,function(u){return n.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return n.get(o,f)-n.get(o,d)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(n,r,a){$e(n)||(n=n?[n]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,h=o[c].indices.length,v=0;v<h;++v){var p=i.get(n[0],o[c].indices[v]),g=Math.abs(p-r);g<=f&&(u=p,f=g,d=o[c].indices[v])}s.push(d)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=i.getName(n),s=i.get(i.mapDimension("value"),n);return Fr("nameValue",{name:o,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(In);const Owt=Lwt;function Awt(t,e){t.eachSeriesByType("themeRiver",function(n){var r=n.getData(),a=n.coordinateSystem,i={},o=a.getRect();i.rect=o;var s=n.get("boundaryGap"),l=a.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=tt(s[0],o.height),s[1]=tt(s[1],o.height);var u=o.height-s[0]-s[1];K6(r,n,u)}else{s[0]=tt(s[0],o.width),s[1]=tt(s[1],o.width);var c=o.width-s[0]-s[1];K6(r,n,c)}r.setLayout("layoutInfo",i)})}function K6(t,e,n){if(t.count())for(var r=e.coordinateSystem,a=e.getLayerSeries(),i=t.mapDimension("single"),o=t.mapDimension("value"),s=Ie(a,function(g){return Ie(g.indices,function(y){var m=r.dataToPoint(t.get(i,y));return m[1]=t.get(o,y),m})}),l=Nwt(s),u=l.y0,c=n/l.max,f=a.length,d=a[0].indices.length,h,v=0;v<d;++v){h=u[v]*c,t.setItemLayout(a[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:h,y:s[0][v][1]*c});for(var p=1;p<f;++p)h+=s[p-1][v][1]*c,t.setItemLayout(a[p].indices[v],{layerIndex:p,x:s[p][v][0],y0:h,y:s[p][v][1]*c})}}function Nwt(t){for(var e=t.length,n=t[0].length,r=[],a=[],i=0,o=0;o<n;++o){for(var s=0,l=0;l<e;++l)s+=t[l][o][1];s>i&&(i=s),r.push(s)}for(var u=0;u<n;++u)a[u]=(i-r[u])/2;i=0;for(var c=0;c<n;++c){var f=r[c]+a[c];f>i&&(i=f)}return{y0:a,max:i}}function Vwt(t){t.registerChartView(Rwt),t.registerSeriesModel(Owt),t.registerLayout(Awt),t.registerProcessor(a1("themeRiver"))}var Bwt=2,$wt=4,Iwt=function(t){we(e,t);function e(n,r,a,i){var o=t.call(this)||this;o.z2=Bwt,o.textConfig={inside:!0},Rt(o).seriesIndex=r.seriesIndex;var s=new tn({z2:$wt,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=dv(h,o));var v=cd(l.getModel("itemStyle"),f,!0);Oe(f,v),W(Xa,function(m){var S=s.ensureState(m),b=l.getModel([m,"itemStyle"]);S.style=b.getItemStyle();var x=cd(b,f);x&&(S.shape=x)}),n?(s.setShape(f),s.shape.r=c.r0,Un(s,{shape:{r:c.r}},a,r.dataIndex)):(cn(s,{shape:f},a),is(s)),s.useStyle(d),this._updateLabel(a);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=a||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="ancestor"?r.getAncestorsIndices():g==="descendant"?r.getDescendantIndices():g;ar(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,v=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(v!=null&&Math.abs(s)<v);d.ignore=!p,W(Uy,function(y){var m=y==="normal"?a.getModel("label"):a.getModel([y,"label"]),S=y==="normal",b=S?d:d.ensureState(y),x=n.getFormattedLabel(h,y);S&&(x=x||r.node.name),b.style=An(m,{},null,y!=="normal",!0),x&&(b.style.text=x);var _=m.get("show");_!=null&&!S&&(b.ignore=!_);var C=g(m,"position"),T=S?f:f.states[y],D=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?D:null,inside:C!=="outside"};var M,E=g(m,"distance")||0,k=g(m,"align");C==="outside"?(M=o.r+E,k=l>Math.PI/2?"right":"left"):!k||k==="center"?(s===2*Math.PI&&o.r0===0?M=0:M=(o.r+o.r0)/2,k="center"):k==="left"?(M=o.r0+E,l>Math.PI/2&&(k="right")):k==="right"&&(M=o.r-E,l>Math.PI/2&&(k="left")),b.style.align=k,b.style.verticalAlign=g(m,"verticalAlign")||"middle",b.x=M*u+o.cx,b.y=M*c+o.cy;var R=g(m,"rotate"),O=0;R==="radial"?(O=Wo(-l),O>Math.PI/2&&O<Math.PI*1.5&&(O+=Math.PI)):R==="tangential"?(O=Math.PI/2-l,O>Math.PI/2?O-=Math.PI:O<-Math.PI/2&&(O+=Math.PI)):on(R)&&(O=R*Math.PI/180),b.rotation=Wo(O)});function g(y,m){var S=y.get(m);return S??i.get(m)}d.dirtyStyle()},e}(qa);const j6=Iwt;var bL="sunburstRootToNode",Y6="sunburstHighlight",Pwt="sunburstUnhighlight";function Fwt(t){t.registerAction({type:bL,update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(a,i){var o=rm(e,[bL],a);if(o){var s=a.getViewRoot();s&&(e.direction=_V(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),t.registerAction({type:Y6,update:"none"},function(e,n,r){e=Oe({},e),n.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(i){var o=rm(e,[Y6],i);o&&(e.dataIndex=o.node.dataIndex)}r.dispatchAction(Oe(e,{type:"highlight"}))}),t.registerAction({type:Pwt,update:"updateView"},function(e,n,r){e=Oe({},e),r.dispatchAction(Oe(e,{type:"downplay"}))})}var zwt=function(t){we(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||[];v(d,h),y(l,u),this._initEvents(),this._oldChildren=d;function v(m,S){if(m.length===0&&S.length===0)return;new Wl(S,m,b,b).add(x).update(x).remove(kt(x,null)).execute();function b(_){return _.getId()}function x(_,C){var T=_==null?null:m[_],D=C==null?null:S[C];p(T,D)}}function p(m,S){if(!f&&m&&!m.getValue()&&(m=null),m!==l&&S!==l){if(S&&S.piece)m?(S.piece.updateData(!1,m,n,r,a),s.setItemGraphicEl(m.dataIndex,S.piece)):g(S);else if(m){var b=new j6(m,n,r,a);c.add(b),s.setItemGraphicEl(m.dataIndex,b)}}}function g(m){m&&m.piece&&(c.remove(m.piece),m.piece=null)}function y(m,S){S.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,n,r,a):(o.virtualPiece=new j6(m,n,r,a),c.add(o.virtualPiece)),S.piece.off("click"),o.virtualPiece.on("click",function(b){o._rootToNode(S.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";V_(u,c)}}a=!0}})})},e.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:bL,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}(kn);const Gwt=zwt;var Uwt=function(t){we(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};boe(a);var i=this._levelModels=Ie(n.levels||[],function(l){return new Mn(l,this,r)},this),o=wV.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=oT(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(){Cie(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}(In);function boe(t){var e=0;W(t.children,function(r){boe(r);var a=r.value;$e(a)&&(a=a[0]),e+=a});var n=t.value;$e(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),$e(t.value)?t.value[0]=n:t.value=n}const Hwt=Uwt;var X6=Math.PI/180;function Wwt(t,e,n){e.eachSeriesByType(t,function(r){var a=r.get("center"),i=r.get("radius");$e(i)||(i=[0,i]),$e(a)||(a=[a,a]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=tt(a[0],o),c=tt(a[1],s),f=tt(i[0],l/2),d=tt(i[1],l/2),h=-r.get("startAngle")*X6,v=r.get("minAngle")*X6,p=r.getData().tree.root,g=r.getViewRoot(),y=g.depth,m=r.get("sort");m!=null&&woe(g,m);var S=0;W(g.children,function($){!isNaN($.getValue())&&S++});var b=g.getValue(),x=Math.PI/(b||S)*2,_=g.depth>0,C=g.height-(_?-1:1),T=(d-f)/(C||1),D=r.get("clockwise"),M=r.get("stillShowZeroSum"),E=D?1:-1,k=function($,V){if($){var F=V;if($!==p){var L=$.getValue(),N=b===0&&M?x:L*x;N<v&&(N=v),F=V+E*N;var H=$.depth-y-(_?-1:1),K=f+T*H,Q=f+T*(H+1),ie=r.getLevelModel($);if(ie){var be=ie.get("r0",!0),le=ie.get("r",!0),J=ie.get("radius",!0);J!=null&&(be=J[0],le=J[1]),be!=null&&(K=tt(be,l/2)),le!=null&&(Q=tt(le,l/2))}$.setLayout({angle:N,startAngle:V,endAngle:F,clockwise:D,cx:u,cy:c,r0:K,r:Q})}if($.children&&$.children.length){var Z=0;W($.children,function(ee){Z+=k(ee,V+Z)})}return F-V}};if(_){var R=f,O=f+T,B=Math.PI*2;p.setLayout({angle:B,startAngle:h,endAngle:h+B,clockwise:D,cx:u,cy:c,r0:R,r:O})}k(g,h)})}function woe(t,e){var n=t.children||[];t.children=Kwt(n,e),n.length&&W(t.children,function(r){woe(r,e)})}function Kwt(t,e){if(gt(e)){var n=Ie(t,function(a,i){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:i}});return n.sort(function(a,i){return e(a.params,i.params)}),Ie(n,function(a){return t[a.index]})}else{var r=e==="asc";return t.sort(function(a,i){var o=(a.getValue()-i.getValue())*(r?1:-1);return o===0?(a.dataIndex-i.dataIndex)*(r?-1:1):o})}}function jwt(t){var e={};function n(r,a,i){for(var o=r;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&it(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 Ywt(t){t.registerChartView(Gwt),t.registerSeriesModel(Hwt),t.registerLayout(kt(Wwt,"sunburst")),t.registerProcessor(kt(a1,"sunburst")),t.registerVisual(jwt),Fwt(t)}var q6={color:"fill",borderColor:"stroke"},Xwt={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Al=sn(),qwt=function(t){we(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 il(null,this)},e.prototype.getDataParams=function(n,r,a){var i=t.prototype.getDataParams.call(this,n,r);return a&&(i.info=Al(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}(In);const Zwt=qwt;function Qwt(t,e){return e=e||[0,0],Ie(["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 Jwt(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:st(Qwt,t)}}}function e_t(t,e){return e=e||[0,0],Ie([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 t_t(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:st(e_t,t)}}}function n_t(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 r_t(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:st(n_t,t)}}}function a_t(t,e){return e=e||[0,0],Ie(["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 i_t(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:st(a_t,t)}}}function o_t(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 _oe(t,e,n,r){return t&&(t.legacy||t.legacy!==!1&&!n&&!r&&e!=="tspan"&&(e==="text"||lt(t,"text")))}function xoe(t,e,n){var r=t,a,i,o;if(e==="text")o=r;else{o={},lt(r,"text")&&(o.text=r.text),lt(r,"rich")&&(o.rich=r.rich),lt(r,"textFill")&&(o.fill=r.textFill),lt(r,"textStroke")&&(o.stroke=r.textStroke),lt(r,"fontFamily")&&(o.fontFamily=r.fontFamily),lt(r,"fontSize")&&(o.fontSize=r.fontSize),lt(r,"fontStyle")&&(o.fontStyle=r.fontStyle),lt(r,"fontWeight")&&(o.fontWeight=r.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=lt(r,"textPosition");n?a.position=s?r.textPosition:"inside":s&&(a.position=r.textPosition),lt(r,"textPosition")&&(a.position=r.textPosition),lt(r,"textOffset")&&(a.offset=r.textOffset),lt(r,"textRotation")&&(a.rotation=r.textRotation),lt(r,"textDistance")&&(a.distance=r.textDistance)}return Z6(o,t),W(o.rich,function(l){Z6(l,l)}),{textConfig:a,textContent:i}}function Z6(t,e){e&&(e.font=e.textFont||e.font,lt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),lt(e,"textAlign")&&(t.align=e.textAlign),lt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),lt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),lt(e,"textWidth")&&(t.width=e.textWidth),lt(e,"textHeight")&&(t.height=e.textHeight),lt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),lt(e,"textPadding")&&(t.padding=e.textPadding),lt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),lt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),lt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),lt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),lt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),lt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),lt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function Q6(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";J6(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){J6(s,s)}),r}function J6(t,e){e&&(lt(e,"fill")&&(t.textFill=e.fill),lt(e,"stroke")&&(t.textStroke=e.fill),lt(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),lt(e,"font")&&(t.font=e.font),lt(e,"fontStyle")&&(t.fontStyle=e.fontStyle),lt(e,"fontWeight")&&(t.fontWeight=e.fontWeight),lt(e,"fontSize")&&(t.fontSize=e.fontSize),lt(e,"fontFamily")&&(t.fontFamily=e.fontFamily),lt(e,"align")&&(t.textAlign=e.align),lt(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),lt(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),lt(e,"width")&&(t.textWidth=e.width),lt(e,"height")&&(t.textHeight=e.height),lt(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),lt(e,"padding")&&(t.textPadding=e.padding),lt(e,"borderColor")&&(t.textBorderColor=e.borderColor),lt(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),lt(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),lt(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),lt(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),lt(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),lt(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),lt(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),lt(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),lt(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),lt(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var Coe={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},e8=Yt(Coe);fo(Zs,function(t,e){return t[e]=1,t},{});Zs.join(", ");var ax=["","style","shape","extra"],gv=sn();function IV(t,e,n,r,a){var i=t+"Animation",o=Iv(t,r,a)||{},s=gv(e).userDuring;return o.duration>0&&(o.during=s?st(f_t,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),Oe(o,n[i]),o}function mw(t,e,n,r){r=r||{};var a=r.dataIndex,i=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=gv(t),u=e.style;l.userDuring=e.during;var c={},f={};if(h_t(t,e,f),n8("shape",e,f),n8("extra",e,f),!i&&s&&(d_t(t,e,c),t8("shape",t,e,c),t8("extra",t,e,c),p_t(t,e,u,c)),f.style=u,s_t(t,f,o),u_t(t,e),s)if(i){var d={};W(ax,function(v){var p=v?e[v]:e;p&&p.enterFrom&&(v&&(d[v]=d[v]||{}),Oe(v?d[v]:d,p.enterFrom))});var h=IV("enter",t,e,n,a);h.duration>0&&t.animateFrom(d,h)}else l_t(t,e,a||0,n,c);Toe(t,e),u?t.dirty():t.markRedraw()}function Toe(t,e){for(var n=gv(t).leaveToProps,r=0;r<ax.length;r++){var a=ax[r],i=a?e[a]:e;i&&i.leaveTo&&(n||(n=gv(t).leaveToProps={}),a&&(n[a]=n[a]||{}),Oe(a?n[a]:n,i.leaveTo))}}function uT(t,e,n,r){if(t){var a=t.parent,i=gv(t).leaveToProps;if(i){var o=IV("update",t,e,n,0);o.done=function(){a.remove(t),r&&r()},t.animateTo(i,o)}else a.remove(t),r&&r()}}function Dd(t){return t==="all"}function s_t(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var a=t.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}function l_t(t,e,n,r,a){if(a){var i=IV("update",t,e,r,n);i.duration>0&&t.animateFrom(a,i)}}function u_t(t,e){lt(e,"silent")&&(t.silent=e.silent),lt(e,"ignore")&&(t.ignore=e.ignore),t instanceof ho&<(e,"invisible")&&(t.invisible=e.invisible),t instanceof Wt&<(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var bs={},c_t={setTransform:function(t,e){return bs.el[t]=e,this},getTransform:function(t){return bs.el[t]},setShape:function(t,e){var n=bs.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=bs.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=bs.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=bs.el.style;if(e)return e[t]},setExtra:function(t,e){var n=bs.el.extra||(bs.el.extra={});return n[t]=e,this},getExtra:function(t){var e=bs.el.extra;if(e)return e[t]}};function f_t(){var t=this,e=t.el;if(e){var n=gv(e).userDuring,r=t.userDuring;if(n!==r){t.el=t.userDuring=null;return}bs.el=e,r(c_t)}}function t8(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]={}),Dd(l))Oe(o,i);else for(var u=Dn(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(Dd(s)||zt(s,t)>=0){!o&&(o=r[t]={});for(var h=Yt(i),c=0;c<h.length;c++){var f=h[c],d=i[f];v_t(a[f],d)&&(o[f]=d)}}}}}function n8(t,e,n){var r=e[t];if(r)for(var a=n[t]={},i=Yt(r),o=0;o<i.length;o++){var s=i[o];a[s]=O0(r[s])}}function d_t(t,e,n){for(var r=e.transition,a=Dd(r)?Zs:Dn(r||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=t[o];n[o]=s}}}function h_t(t,e,n){for(var r=0;r<e8.length;r++){var a=e8[r],i=Coe[a],o=e[a];o&&(n[i[0]]=o[0],n[i[1]]=o[1])}for(var r=0;r<Zs.length;r++){var s=Zs[r];e[s]!=null&&(n[s]=e[s])}}function p_t(t,e,n,r){if(n){var a=t.style,i;if(a){var o=n.transition,s=e.transition;if(o&&!Dd(o)){var l=Dn(o);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];i[c]=f}}else if(t.getAnimationStyleProps&&(Dd(s)||Dd(o)||zt(s,"style")>=0)){var d=t.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=r.style={});for(var v=Yt(n),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function v_t(t,e){return la(t)?t!==e:t!=null&&isFinite(t)}var Eoe=sn(),g_t=["percent","easing","shape","style","extra"];function Moe(t){t.stopAnimation("keyframe"),t.attr(Eoe(t))}function ix(t,e,n){if(!(!n.isAnimationEnabled()||!e)){if($e(e)){W(e,function(s){ix(t,s,n)});return}var r=e.keyframes,a=e.duration;if(n&&a==null){var i=Iv("enter",n,0);a=i&&i.duration}if(!(!r||!a)){var o=Eoe(t);W(ax,function(s){if(!(s&&!t[s])){var l;r.sort(function(u,c){return u.percent-c.percent}),W(r,function(u){var c=t.animators,f=s?u[s]:u;if(f){var d=Yt(f);if(s||(d=wn(d,function(p){return zt(g_t,p)<0})),!!d.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(d);s&&(o[s]=o[s]||{});var v=s?o[s]:o;W(d,function(p){v[p]=((s?t[s]:t)||{})[p]}),l.whenWithKeys(a*u.percent,f,d,u.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var Nl="emphasis",ju="normal",PV="blur",FV="select",Cc=[ju,Nl,PV,FV],kM={normal:["itemStyle"],emphasis:[Nl,"itemStyle"],blur:[PV,"itemStyle"],select:[FV,"itemStyle"]},RM={normal:["label"],emphasis:[Nl,"label"],blur:[PV,"label"],select:[FV,"label"]},y_t=["x","y"],m_t="e\0\0",Pi={normal:{},emphasis:{},blur:{},select:{}},S_t={cartesian2d:Jwt,geo:t_t,single:r_t,polar:i_t,calendar:o_t};function wL(t){return t instanceof Wt}function _L(t){return t instanceof ho}function b_t(t,e){e.copyTransform(t),_L(e)&&_L(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,wL(e)&&wL(t)&&e.setShape(t.shape))}var w_t=function(t){we(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){this._progressiveEls=null;var o=this._data,s=n.getData(),l=this.group,u=r8(n,s,r,a);o||l.removeAll(),s.diff(o).add(function(f){LM(a,null,f,u(f,i),n,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&uT(d,Al(d).option,n)}).update(function(f,d){var h=o.getItemGraphicEl(d);LM(a,h,f,u(f,i),n,l,s)}).execute();var c=n.get("clip",!0)?rT(n.coordinateSystem,!1,n):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(n,r,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(n,r,a,i,o){var s=r.getData(),l=r8(r,s,a,i),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=n.start;f<n.end;f++){var d=LM(null,null,f,l(f,o),r,this.group,s);d&&(d.traverse(c),u.push(d))}},e.prototype.eachRendered=function(n){Ic(this._progressiveEls||this.group,n)},e.prototype.filterForExposedEvent=function(n,r,a,i){var o=r.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e}(kn);const __t=w_t;function zV(t){var e=t.type,n;if(e==="path"){var r=t.shape,a=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,i=Roe(r);n=Ym(i,null,a,r.layout||"center"),Al(n).customPathData=i}else if(e==="image")n=new Qr({}),Al(n).customImagePath=t.style.image;else if(e==="text")n=new tn({});else if(e==="group")n=new Ct;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=PC(e);if(!o){var s="";gn(s)}n=new o}return Al(n).customGraphicType=e,n.name=t.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function GV(t,e,n,r,a,i,o){Moe(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),r&&r.transition==null&&(r.transition=y_t);var l=r&&r.style;if(l){if(e.type==="text"){var u=l;lt(u,"textFill")&&(u.fill=u.textFill),lt(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=wL(e)?l.decal:null;t&&f&&(f.dirty=!0,c=dv(f,t)),l.__decalPattern=c}if(_L(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}mw(e,r,i,{dataIndex:n,isInit:o,clearStyle:!0}),ix(e,r.keyframeAnimation,i)}function Doe(t,e,n,r,a){var i=e.isGroup?null:e,o=a&&a[t].cfg;if(i){var s=i.ensureState(t);if(r===!1){var l=i.getState(t);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),Pd(i)}}function x_t(t,e,n){if(!t.isGroup){var r=t,a=n.currentZ,i=n.currentZLevel;r.z=a,r.zlevel=i;var o=e.z2;o!=null&&(r.z2=o||0);for(var s=0;s<Cc.length;s++)C_t(r,e,Cc[s])}}function C_t(t,e,n){var r=n===ju,a=r?e:ox(e,n),i=a?a.z2:null,o;i!=null&&(o=r?t:t.ensureState(n),o.z2=i||0)}function r8(t,e,n,r){var a=t.get("renderItem"),i=t.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):S_t[i.type](i));for(var s=mt({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:b,style:_,ordinalRawValue:x,styleEmphasis:C,visual:M,barLayout:E,currentSeriesIndices:k,font:R},o.api||{}),l={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:T_t(t.getData())},u,c,f={},d={},h={},v={},p=0;p<Cc.length;p++){var g=Cc[p];h[g]=t.getModel(kM[g]),v[g]=t.getModel(RM[g])}function y(O){return O===u?c||(c=e.getItemModel(O)):e.getItemModel(O)}function m(O,B){return e.hasItemOption?O===u?f[B]||(f[B]=y(O).getModel(kM[B])):y(O).getModel(kM[B]):h[B]}function S(O,B){return e.hasItemOption?O===u?d[B]||(d[B]=y(O).getModel(RM[B])):y(O).getModel(RM[B]):v[B]}return function(O,B){return u=O,c=null,f={},d={},a&&a(mt({dataIndexInside:O,dataIndex:e.getRawIndex(O),actionType:B?B.type:null},l),s)};function b(O,B){return B==null&&(B=u),e.getStore().get(e.getDimensionIndex(O||0),B)}function x(O,B){B==null&&(B=u),O=O||0;var $=e.getDimensionInfo(O);if(!$){var V=e.getDimensionIndex(O);return V>=0?e.getStore().get(V,B):void 0}var F=e.get($.name,B),L=$&&$.ordinalMeta;return L?L.categories[F]:F}function _(O,B){B==null&&(B=u);var $=e.getItemVisual(B,"style"),V=$&&$.fill,F=$&&$.opacity,L=m(B,ju).getItemStyle();V!=null&&(L.fill=V),F!=null&&(L.opacity=F);var N={inheritColor:it(V)?V:"#000"},H=S(B,ju),K=An(H,null,N,!1,!0);K.text=H.getShallow("show")?Pt(t.getFormattedLabel(B,ju),hv(e,B)):null;var Q=A_(H,N,!1);return D(O,L),L=Q6(L,K,Q),O&&T(L,O),L.legacy=!0,L}function C(O,B){B==null&&(B=u);var $=m(B,Nl).getItemStyle(),V=S(B,Nl),F=An(V,null,null,!0,!0);F.text=V.getShallow("show")?Xo(t.getFormattedLabel(B,Nl),t.getFormattedLabel(B,ju),hv(e,B)):null;var L=A_(V,null,!0);return D(O,$),$=Q6($,F,L),O&&T($,O),$.legacy=!0,$}function T(O,B){for(var $ in B)lt(B,$)&&(O[$]=B[$])}function D(O,B){O&&(O.textFill&&(B.textFill=O.textFill),O.textPosition&&(B.textPosition=O.textPosition))}function M(O,B){if(B==null&&(B=u),lt(q6,O)){var $=e.getItemVisual(B,"style");return $?$[q6[O]]:null}if(lt(Xwt,O))return e.getItemVisual(B,O)}function E(O){if(i.type==="cartesian2d"){var B=i.getBaseAxis();return hht(mt({axis:B},O))}}function k(){return n.getCurrentSeriesIndices()}function R(O){return lne(O,n)}}function T_t(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 LM(t,e,n,r,a,i,o){if(!r){i.remove(e);return}var s=UV(t,e,n,r,a,i);return s&&o.setItemGraphicEl(n,s),s&&ar(s,r.focus,r.blurScope,r.emphasisDisabled),s}function UV(t,e,n,r,a,i){var o=-1,s=e;e&&koe(e,r,a)&&(o=zt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=zV(r),s&&b_t(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Pi.normal.cfg=Pi.normal.conOpt=Pi.emphasis.cfg=Pi.emphasis.conOpt=Pi.blur.cfg=Pi.blur.conOpt=Pi.select.cfg=Pi.select.conOpt=null,Pi.isLegacy=!1,M_t(u,n,r,a,l,Pi),E_t(u,n,r,a,l),GV(t,u,n,r,Pi,a,l),lt(r,"info")&&(Al(u).info=r.info);for(var c=0;c<Cc.length;c++){var f=Cc[c];if(f!==ju){var d=ox(r,f),h=HV(r,d,f);Doe(f,u,d,h,Pi)}}return x_t(u,r,a),r.type==="group"&&D_t(t,u,n,r,a),o>=0?i.replaceAt(u,o):i.add(u),u}function koe(t,e,n){var r=Al(t),a=e.type,i=e.shape,o=e.style;return n.isUniversalTransitionEnabled()||a!=null&&a!==r.customGraphicType||a==="path"&&O_t(i)&&Roe(i)!==r.customPathData||a==="image"&<(o,"image")&&o.image!==r.customImagePath}function E_t(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&&koe(o,i,r)&&(o=null),o||(o=zV(i),t.setClipPath(o)),GV(null,o,e,i,null,r,a)}}function M_t(t,e,n,r,a,i){if(!t.isGroup){a8(n,null,i),a8(n,Nl,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=zV(o),t.setTextContent(c)),GV(null,c,e,o,null,r,a);for(var f=o&&o.style,d=0;d<Cc.length;d++){var h=Cc[d];if(h!==ju){var v=i[h].conOpt;Doe(h,c,v,HV(o,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function a8(t,e,n){var r=e?ox(t,e):t,a=e?HV(t,r,Nl):t.style,i=t.type,o=r?r.textConfig:null,s=t.textContent,l=s?e?ox(s,e):s:null;if(a&&(n.isLegacy||_oe(a,i,!!o,!!l))){n.isLegacy=!0;var u=xoe(a,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var f=e?n[e]:n.normal;f.cfg=o,f.conOpt=l}function ox(t,e){return e?t?t[e]:null:t}function HV(t,e,n){var r=e&&e.style;return r==null&&n===Nl&&t&&(r=t.styleEmphasis),r}function D_t(t,e,n,r,a){var i=r.children,o=i?i.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){R_t({api:t,oldChildren:e.children()||[],newChildren:i||[],dataIndex:n,seriesModel:a,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var f=i[c],d=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),UV(t,d,n,f,a,e)):d.ignore=!0}for(var h=e.childCount()-1;h>=c;h--){var v=e.childAt(h);k_t(e,v,a)}}}function k_t(t,e,n){e&&uT(e,Al(t).option,n)}function R_t(t){new Wl(t.oldChildren,t.newChildren,i8,i8,t).add(o8).update(o8).remove(L_t).execute()}function i8(t,e){var n=t&&t.name;return n??m_t+e}function o8(t,e){var n=this.context,r=t!=null?n.newChildren[t]:null,a=e!=null?n.oldChildren[e]:null;UV(n.api,a,n.dataIndex,r,n.seriesModel,n.group)}function L_t(t){var e=this.context,n=e.oldChildren[t];n&&uT(n,Al(n).option,e.seriesModel)}function Roe(t){return t&&(t.pathData||t.d)}function O_t(t){return t&&(lt(t,"pathData")||lt(t,"d"))}function A_t(t){t.registerChartView(__t),t.registerSeriesModel(Zwt)}var jf=sn(),s8=wt,OM=st,N_t=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=kt(l8,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}c8(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=pV(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=jf(e).pointerEl=new qm[i.type](s8(n.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,n,r,a){if(n.label){var i=jf(e).labelEl=new tn(s8(n.label));e.add(i),u8(i,a)}},t.prototype.updatePointerEl=function(e,n,r){var a=jf(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=jf(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=Pv(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Gl(u.event)},onmousedown:OM(this._onHandleDragMove,this,0,0),drift:OM(this._onHandleDragMove,this),ondragend:OM(this._onHandleDragEnd,this)}),r.add(a)),c8(a,n,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");$e(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Yv(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,n){l8(this._axisPointerModel,!n&&this._moveAnimation,this._handle,AM(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(AM(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,r.stopAnimation(),r.attr(AM(a)),jf(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),qy(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 l8(t,e,n,r){Loe(jf(n).lastProp,r)||(jf(n).lastProp=r,e?cn(n,r,t):(n.stopAnimation(),n.attr(r)))}function Loe(t,e){if(bt(t)&&bt(e)){var n=!0;return W(e,function(r,a){n=n&&Loe(t[a],r)}),!!n}else return t===e}function u8(t,e){t[e.get(["label","show"])?"show":"hide"]()}function AM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function c8(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 WV=N_t;function KV(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 Ooe(t,e,n,r,a){var i=n.get("value"),o=Aoe(i,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=th(s.get("padding")||0),u=s.getFont(),c=Um(o,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=a.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var p=a.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),V_t(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:An(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function V_t(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 Aoe(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:iV(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)}),it(o)?i=o.replace("{value}",i):gt(o)&&(i=o(s))}return i}function jV(t,e,n){var r=Li();return $c(r,r,n.rotation),ns(r,r,n.position),Qo([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Noe(t,e,n,r,a,i){var o=jl.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),Ooe(e,r,a,i,{position:jV(r.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function YV(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function Voe(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function f8(t,e,n,r,a,i){return{cx:t,cy:e,r0:n,r,startAngle:a,endAngle:i,clockwise:!0}}var B_t=function(t){we(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=d8(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=KV(i),h=$_t[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=aL(l.model,a);Noe(r,n,v,a,i,o)},e.prototype.getHandleTransform=function(n,r,a){var i=aL(r.axis.grid.model,r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=jV(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=d8(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:v[c]}},e}(WV);function d8(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var $_t={line:function(t,e,n){var r=YV([e,n[0]],[e,n[1]],h8(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:Voe([e-r/2,n[0]],[r,a],h8(t))}}};function h8(t){return t.dim==="x"?0:1}const I_t=B_t;var P_t=function(t){we(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}(Qt);const F_t=P_t;var kl=sn(),z_t=W;function Boe(t,e,n){if(!an.node){var r=e.getZr();kl(r).records||(kl(r).records={}),G_t(r,e);var a=kl(r).records[t]||(kl(r).records[t]={});a.handler=n}}function G_t(t,e){if(kl(t).initialized)return;kl(t).initialized=!0,n("click",kt(p8,"click")),n("mousemove",kt(p8,"mousemove")),n("globalout",H_t);function n(r,a){t.on(r,function(i){var o=W_t(e);z_t(kl(t).records,function(s){s&&a(s,i,o.dispatchAction)}),U_t(o.pendings,e)})}}function U_t(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 H_t(t,e,n){t.handler("leave",null,n)}function p8(t,e,n,r){e.handler(t,n,r)}function W_t(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 xL(t,e){if(!an.node){var n=e.getZr(),r=(kl(n).records||{})[t];r&&(kl(n).records[t]=null)}}var K_t=function(t){we(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";Boe("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){xL("axisPointer",r)},e.prototype.dispose=function(n,r){xL("axisPointer",r)},e.type="axisPointer",e}(jn);const j_t=K_t;function $oe(t,e){var n=[],r=t.seriesIndex,a;if(r==null||!(a=e.getSeriesByIndex(r)))return{point:[]};var i=a.getData(),o=$d(i,t);if(o==null||o<0||$e(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,v=i.mapDimension(d),p=[];p[h]=i.get(v,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(p)||[]}else n=l.dataToPoint(i.getValues(Ie(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 v8=sn();function Y_t(t,e,n){var r=t.currTrigger,a=[t.x,t.y],i=t,o=t.dispatchAction||st(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Sw(a)&&(a=$oe({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Sw(a),u=i.axesInfo,c=s.axesInfo,f=r==="leave"||Sw(a),d={},h={},v={list:[],map:{}},p={showPointer:kt(q_t,h),showTooltip:kt(Z_t,v)};W(s.coordSysMap,function(y,m){var S=l||y.containPoint(a);W(s.coordSysAxesInfo[m],function(b,x){var _=b.axis,C=txt(u,b);if(!f&&S&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=_.pointToData(a)),T!=null&&g8(b,T,p,!1,d)}})});var g={};return W(c,function(y,m){var S=y.linkGroup;S&&!h[m]&&W(S.axesInfo,function(b,x){var _=h[x];if(b!==y&&_){var C=_.value;S.mapper&&(C=y.axis.scale.parse(S.mapper(C,y8(b),y8(y)))),g[y.key]=C}})}),W(g,function(y,m){g8(c[m],y,p,!0,d)}),Q_t(h,c,d),J_t(v,a,t,o),ext(c,o,n),d}}function g8(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=X_t(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 X_t(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 v=t-f,p=Math.abs(v);p<=o&&((p<o||v>=0&&s<0)&&(o=p,s=v,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 q_t(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function Z_t(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=nm(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 Q_t(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 J_t(t,e,n,r){if(Sw(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 ext(t,e,n){var r=n.getZr(),a="axisPointerLastHighlights",i=v8(r)[a]||{},o=v8(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 txt(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 y8(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 Sw(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function l1(t){ah.registerAxisPointerClass("CartesianAxisPointer",I_t),t.registerComponentModel(F_t),t.registerComponentView(j_t),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!$e(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=Ggt(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Y_t)}function nxt(t){Ut(uie),Ut(l1)}var rxt=function(t){we(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=KV(i),v=ixt[d](s,l,f,c);v.style=h,n.graphicKey=v.type,n.pointer=v}var p=i.get(["label","margin"]),g=axt(r,a,i,l,p);Ooe(n,a,i,o,g)},e}(WV);function axt(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=Li();$c(d,d,s),ns(d,d,[r.cx,r.cy]),u=Qo([o,-a],d);var h=e.getModel("axisLabel").get("rotate")||0,v=jl.innerTextLayout(s,h*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var p=l[1];u=r.coordToPoint([p+a,o]);var g=r.cx,y=r.cy;c=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",f=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var ixt={line:function(t,e,n,r){return t.dim==="angle"?{type:"Line",shape:YV(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:f8(e.cx,e.cy,r[0],r[1],(-n-a/2)*i,(-n+a/2)*i)}:{type:"Sector",shape:f8(e.cx,e.cy,n-a/2,n+a/2,0,Math.PI*2)}}};const oxt=rxt;var sxt=function(t){we(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}(Qt);const lxt=sxt;var XV=function(t){we(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",yr).models[0]},e.type="polarAxis",e}(Qt);sr(XV,Zv);var uxt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="angleAxis",e}(XV),cxt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="radiusAxis",e}(XV),qV=function(t){we(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}(mo);qV.prototype.dataToRadius=mo.prototype.dataToCoord;qV.prototype.radiusToData=mo.prototype.coordToData;const fxt=qV;var dxt=sn(),ZV=function(t){we(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=Um(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),v=dxt(n.model),p=v.lastAutoInterval,g=v.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(v.lastTickCount=o,v.lastAutoInterval=h),h},e}(mo);ZV.prototype.dataToAngle=mo.prototype.dataToCoord;ZV.prototype.angleToData=mo.prototype.coordToData;const hxt=ZV;var Ioe=["radius","angle"],pxt=function(){function t(e){this.dimensions=Ioe,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new fxt,this._angleAxis=new hxt,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=u<o?1:-1;u<o||u>s;)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=m8(n);return a===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=m8(n);return a===this?this.pointToData(r):null},t}();function m8(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const vxt=pxt;function gxt(t,e,n){var r=e.get("center"),a=n.getWidth(),i=n.getHeight();t.cx=tt(r[0],a),t.cy=tt(r[1],i);var o=t.getRadiusAxis(),s=Math.min(a,i)/2,l=e.get("radius");l==null?l=[0,"100%"]:$e(l)||(l=[0,l]);var u=[tt(l[0],s),tt(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function yxt(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(K_(l,"radius"),function(u){a.scale.unionExtentFromData(l,u)}),W(K_(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),zd(r.scale,r.model),zd(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 mxt(t){return t.mainType==="angleAxis"}function S8(t,e){if(t.type=e.get("type"),t.scale=Jm(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),mxt(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 Sxt={dimensions:Ioe,create:function(t,e){var n=[];return t.eachComponent("polar",function(r,a){var i=new vxt(a+"");i.update=yxt;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");S8(o,l),S8(s,u),gxt(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",yr).models[0];r.coordinateSystem=a.coordinateSystem}}),n}};const bxt=Sxt;var wxt=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ob(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 sb(t){var e=t.getRadiusAxis();return e.inverse?0:1}function b8(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 _xt=function(t){we(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=Ie(a.getViewLabels(),function(c){c=wt(c);var f=a.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=a.dataToCoord(d),c});b8(u),b8(s),W(wxt,function(c){n.get([c,"show"])&&(!a.scale.isBlank()||c==="axisLine")&&xxt[c](this.group,n,i,s,l,o,u)},this)}},e.type="angleAxis",e}(ah),xxt={axisLine:function(t,e,n,r,a,i){var o=e.getModel(["axisLine","lineStyle"]),s=sb(n),l=s?0:1,u;i[l]===0?u=new as({shape:{cx:n.cx,cy:n.cy,r:i[s]},style:o.getLineStyle(),z2:1,silent:!0}):u=new Km({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[sb(n)],u=Ie(r,function(c){return new Vr({shape:ob(n,[l,l+s],c.coord)})});t.add(xi(u,{style:mt(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[sb(n)],c=[],f=0;f<a.length;f++)for(var d=0;d<a[f].length;d++)c.push(new Vr({shape:ob(n,[u,u+l],a[f][d].coord)}));t.add(xi(c,{style:mt(s.getModel("lineStyle").getLineStyle(),mt(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,a,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");W(o,function(f,d){var h=l,v=f.tickValue,p=i[sb(n)],g=n.coordToPoint([p+u,f.coord]),y=n.cx,m=n.cy,S=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",b=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[v]){var x=s[v];bt(x)&&x.textStyle&&(h=new Mn(x.textStyle,l,l.ecModel))}var _=new tn({silent:jl.isLabelSilent(e),style:An(h,{x:g[0],y:g[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:S,verticalAlign:b})});if(t.add(_),c){var C=jl.makeAxisEventDataBase(e);C.targetType="axisLabel",C.value=f.rawLabel,Rt(_).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<r.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Vr({shape:ob(n,i,r[f].coord)}))}for(var f=0;f<c.length;f++)t.add(xi(c[f],{style:mt({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,a,i){if(a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var c=0;c<a[u].length;c++)l.push(new Vr({shape:ob(n,i,a[u][c].coord)}));t.add(xi(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,a,i){if(r.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-r[0].coord*f,h=Math.min(i[0],i[1]),v=Math.max(i[0],i[1]),p=e.get("clockwise"),g=1,y=r.length;g<=y;g++){var m=g===y?r[0].coord:r[g].coord,S=u++%l.length;c[S]=c[S]||[],c[S].push(new qa({shape:{cx:n.cx,cy:n.cy,r0:h,r:v,startAngle:d,endAngle:-m*f,clockwise:p},silent:!0})),d=-m*f}for(var g=0;g<c.length;g++)t.add(xi(c[g],{style:mt({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const Cxt=_xt;var Txt=["axisLine","axisTickLabel","axisName"],Ext=["splitLine","splitArea","minorSplitLine"],Mxt=function(t){we(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=this._axisGroup,i=this._axisGroup=new Ct;this.group.add(i);var o=n.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],d=o.getExtent(),h=kxt(s,n,f),v=new jl(n,h);W(Txt,v.add,v),i.add(v.getGroup()),Xm(a,i,n),W(Ext,function(p){n.get([p,"show"])&&!o.scale.isBlank()&&Dxt[p](this.group,n,s,f,d,u,c)},this)}},e.type="radiusAxis",e}(ah),Dxt={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<i.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new as({shape:{cx:n.cx,cy:n.cy,r:Math.max(i[f].coord,0)}}))}for(var f=0;f<c.length;f++)t.add(xi(c[f],{style:mt({stroke:l[f%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,a,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new as({shape:{cx:n.cx,cy:n.cy,r:o[c][f].coord}}));t.add(xi(u,{style:mt({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,a,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=i[0].coord,d=1;d<i.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new qa({shape:{cx:n.cx,cy:n.cy,r0:f,r:i[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=i[d].coord}for(var d=0;d<c.length;d++)t.add(xi(c[d],{style:mt({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function kxt(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const Rxt=Mxt;function Poe(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Foe(t,e){return e.dim+t.model.componentIndex}function Lxt(t,e,n){var r={},a=Oxt(wn(e.getSeriesByType(t),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(t,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=Foe(s,l),c=Poe(i),f=a[u][c],d=f.offset,h=f.width,v=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;r[c]=r[c]||[];for(var S=o.mapDimension(v.dim),b=o.mapDimension(l.dim),x=Kl(o,S),_=l.dim!=="radius"||!i.get("roundCap",!0),C=v.dataToCoord(0),T=0,D=o.count();T<D;T++){var M=o.get(S,T),E=o.get(b,T),k=M>=0?"p":"n",R=C;x&&(r[c][E]||(r[c][E]={p:C,n:C}),R=r[c][E][k]);var O=void 0,B=void 0,$=void 0,V=void 0;if(v.dim==="radius"){var F=v.dataToCoord(M)-C,L=l.dataToCoord(E);Math.abs(F)<y&&(F=(F<0?-1:1)*y),O=R,B=R+F,$=L-d,V=$-h,x&&(r[c][E][k]=B)}else{var N=v.dataToCoord(M,_)-C,H=l.dataToCoord(E);Math.abs(N)<m&&(N=(N<0?-1:1)*m),O=H+d,B=O+h,$=R,V=R+N,x&&(r[c][E][k]=V)}o.setItemLayout(T,{cx:p,cy:g,r0:O,r:B,startAngle:-$*Math.PI/180,endAngle:-V*Math.PI/180,clockwise:$>=V})}}})}function Oxt(t){var e={};W(t,function(r,a){var i=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=Foe(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=Poe(r);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var v=tt(r.get("barWidth"),c),p=tt(r.get("barMaxWidth"),c),g=r.get("barGap"),y=r.get("barCategoryGap");v&&!d[h].width&&(v=Math.min(f.remainedWidth,v),d[h].width=v,f.remainedWidth-=v),p&&(d[h].maxWidth=p),g!=null&&(f.gap=g),y!=null&&(f.categoryGap=y)});var n={};return W(e,function(r,a){n[a]={};var i=r.stacks,o=r.bandWidth,s=tt(r.categoryGap,o),l=tt(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),W(i,function(p,g){var y=p.maxWidth;y&&y<f&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;W(i,function(p,g){p.width||(p.width=f),h=p,d+=p.width*(1+l)}),h&&(d-=h.width*l);var v=-d/2;W(i,function(p,g){n[a][g]=n[a][g]||{offset:v,width:p.width},v+=p.width*(1+l)})}),n}var Axt={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},Nxt={splitNumber:5},Vxt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="polar",e}(jn);function Bxt(t){Ut(l1),ah.registerAxisPointerClass("PolarAxisPointer",oxt),t.registerCoordinateSystem("polar",bxt),t.registerComponentModel(lxt),t.registerComponentView(Vxt),pv(t,"angle",uxt,Axt),pv(t,"radius",cxt,Nxt),t.registerComponentView(Cxt),t.registerComponentView(Rxt),t.registerLayout(kt(Lxt,"bar"))}function CL(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,a={},i=r.position,o=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var c={horizontal:0,vertical:1};a.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=f[i],t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Nr(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=e.rotate;return d==null&&(d=t.get(["axisLabel","rotate"])),a.labelRotation=i==="top"?-d:d,a.z2=1,a}var $xt=["axisLine","axisTickLabel","axisName"],Ixt=["splitArea","splitLine"],Pxt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return e.prototype.render=function(n,r,a,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Ct;var l=CL(n),u=new jl(n,l);W($xt,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),W(Ixt,function(c){n.get([c,"show"])&&Fxt[c](this,this.group,this._axisGroup,n)},this),Xm(s,this._axisGroup,n),t.prototype.render.call(this,n,r,a,i)},e.prototype.remove=function(){oie(this)},e.type="singleAxis",e}(ah),Fxt={splitLine:function(t,e,n,r){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=r.coordinateSystem.getRect(),c=a.isHorizontal(),f=[],d=0,h=a.getTicksCoords({tickModel:i}),v=[],p=[],g=0;g<h.length;++g){var y=a.toGlobalCoord(h[g].coord);c?(v[0]=y,v[1]=u.y,p[0]=y,p[1]=u.y+u.height):(v[0]=u.x,v[1]=y,p[0]=u.x+u.width,p[1]=y);var m=new Vr({shape:{x1:v[0],y1:v[1],x2:p[0],y2:p[1]},silent:!0});cv(m.shape,l);var S=d++%s.length;f[S]=f[S]||[],f[S].push(m)}for(var b=o.getLineStyle(["color"]),g=0;g<f.length;++g)e.add(xi(f[g],{style:mt({stroke:s[g%s.length]},b),silent:!0}))}},splitArea:function(t,e,n,r){iie(t,n,r,r)}};const zxt=Pxt;var zoe=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(Qt);sr(zoe,Zv.prototype);const NM=zoe;var Gxt=function(t){we(e,t);function e(n,r,a,i,o){var s=t.call(this,n,r,a)||this;return 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.pointToData=function(n,r){return this.coordinateSystem.pointToData(n)[0]},e}(mo);const Uxt=Gxt;var Goe=["single"],Hxt=function(){function t(e,n,r){this.type="single",this.dimension="single",this.dimensions=Goe,this.axisPointerEnabled=!0,this.model=e,this._init(e,n,r)}return t.prototype._init=function(e,n,r){var a=this.dimension,i=new Uxt(a,Jm(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},t.prototype.update=function(e,n){e.eachSeries(function(r){if(r.coordinateSystem===this){var a=r.getData();W(a.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(a,i)},this),zd(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(e,n){this._rect=xr({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var e=this._rect,n=this._axis,r=n.isHorizontal(),a=r?[0,e.width]:[0,e.height],i=n.inverse?1:0;n.setExtent(a[i],a[1-i]),this._updateAxisTransform(n,r?e.x:e.y)},t.prototype._updateAxisTransform=function(e,n){var r=e.getExtent(),a=r[0]+r[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+n}:function(o){return a-o+n},e.toLocalCoord=i?function(o){return o-n}:function(o){return a-o+n}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(e){var n=this.getRect(),r=this.getAxis(),a=r.orient;return a==="horizontal"?r.contain(r.toLocalCoord(e[0]))&&e[1]>=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=w8(n);return a===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=w8(n);return a===this?this.pointToData(r):null},t}();function w8(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function Wxt(t,e){var n=[];return t.eachComponent("singleAxis",function(r,a){var i=new Hxt(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",yr).models[0];r.coordinateSystem=a&&a.coordinateSystem}}),n}var Kxt={create:Wxt,dimensions:Goe};const jxt=Kxt;var _8=["x","y"],Yxt=["width","height"],Xxt=function(t){we(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=VM(l,1-sx(s)),c=l.dataToPoint(r)[0],f=i.get("type");if(f&&f!=="none"){var d=KV(i),h=qxt[f](s,c,u);h.style=d,n.graphicKey=h.type,n.pointer=h}var v=CL(a);Noe(r,n,v,a,i,o)},e.prototype.getHandleTransform=function(n,r,a){var i=CL(r,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=jV(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=sx(o),u=VM(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=VM(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}(WV),qxt={line:function(t,e,n){var r=YV([e,n[0]],[e,n[1]],sx(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:Voe([e-r/2,n[0]],[r,a],sx(t))}}};function sx(t){return t.isHorizontal()?0:1}function VM(t,e){var n=t.getRect();return[n[_8[e]],n[_8[e]]+n[Yxt[e]]]}const Zxt=Xxt;var Qxt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="single",e}(jn);function Jxt(t){Ut(l1),ah.registerAxisPointerClass("SingleAxisPointer",Zxt),t.registerComponentView(Qxt),t.registerComponentView(zxt),t.registerComponentModel(NM),pv(t,"single",NM,NM.defaultOption),t.registerCoordinateSystem("single",jxt)}var eCt=function(t){we(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=Uv(n);t.prototype.init.apply(this,arguments),x8(n,i)},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),x8(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}(Qt);function x8(t,e){var n=t.cellSize,r;$e(n)?r=n:r=t.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var a=Ie([0,1],function(i){return Hut(e,i)&&(r[i]="auto"),r[i]!=null&&r[i]!=="auto"});wc(t,e,{type:"box",ignoreSize:a})}const tCt=eCt;var nCt=function(t){we(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 nn({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++){v(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}v(s.getNextNDay(r.end.time,1).formatedDate);function v(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var g=o._getLinePointsOfOneWeek(n,p,a);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,a),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,a),l,i)},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 ei({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 it(n)&&n?Fut(n,r):gt(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]},v=r.start.y;+r.end.y>+r.start.y&&(v=v+"-"+r.end.y);var p=o.get("formatter"),g={start:r.start.y,end:r.end.y,nameMap:v},y=this._formatterLabel(p,g),m=new tn({z2:30,style:An(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||it(s))&&(s&&(r=AR(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=c==="center",p=0;p<f[d].length-1;p++){var g=f[d][p].slice(),y=this._firstDayOfMonth[p];if(v){var m=this._firstDayPoints[p];g[h]=(m[h]+f[0][p+1][h])/2}var S=o.get("formatter"),b=s[+y.m-1],x={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:b},_=this._formatterLabel(S,x),C=new tn({z2:30,style:Oe(An(o,{text:_}),this._monthTextPositionControl(g,v,a,u,l))});i.add(C)}}},e.prototype._weekTextPositionControl=function(n,r,a,i,o){var s="center",l="middle",u=n[0],c=n[1],f=a==="start";return r==="horizontal"?(u=u+i+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+i+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(n,r,a,i,o){var s=n.getModel("dayLabel");if(s.get("show")){var l=n.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||it(c)){c&&(r=AR(c)||r);var h=r.get(["time","dayOfWeekShort"]);c=h||Ie(r.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var v=l.getNextNDay(a.end.time,7-a.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];f=tt(f,Math.min(p[1],p[0])),u==="start"&&(v=l.getNextNDay(a.start.time,-(7+a.fweek)).time,f=-f);for(var g=0;g<7;g++){var y=l.getNextNDay(v,g),m=l.dataToRect([y.time],!1).center,S=g;S=Math.abs((g+d)%7);var b=new tn({z2:30,style:Oe(An(s,{text:c[S]}),this._weekTextPositionControl(m,i,u,f,p))});o.add(b)}}},e.type="calendar",e}(jn);const rCt=nCt;var BM=864e5,aCt=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(e){e=Oi(e);var n=e.getFullYear(),r=e.getMonth()+1,a=r<10?"0"+r:""+r,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:n+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:n+"-"+a+"-"+o,date:e}},t.prototype.getNextNDay=function(e,n){return n=n||0,n===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+n),this.getDateInfo(e))},t.prototype.update=function(e,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,a=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];W([0,1],function(f){c(i,f)&&(o[a[f]]=i[f]*s[f])});var l={width:n.getWidth(),height:n.getHeight()},u=this._rect=xr(o,l);W([0,1],function(f){c(i,f)||(i[f]=u[a[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(e,n){$e(e)&&(e=e[0]),n==null&&(n=!0);var r=this.getDateInfo(e),a=this._rangeInfo,i=r.formatedDate;if(n&&!(r.time>=a.start.time&&r.time<a.end.time+BM))return[NaN,NaN];var o=r.day,s=this._getRangeInfo([a.start.time,i]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},t.prototype.pointToData=function(e){var n=this.pointToDate(e);return n&&n.time},t.prototype.dataToRect=function(e,n){var r=this.dataToPoint(e,n);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},t.prototype.pointToDate=function(e){var n=Math.floor((e[0]-this._rect.x)/this._sw)+1,r=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,n-1,a):this._getDateByWeeksAndDay(n,r-1,a)},t.prototype.convertToPixel=function(e,n,r){var a=C8(n);return a===this?a.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var a=C8(n);return a===this?a.pointToData(r):null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var e=this._model.get("range"),n;if($e(e)&&e.length===1&&(e=e[0]),$e(e))n=e;else{var r=e.toString();if(/^\d{4}$/.test(r)&&(n=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var a=this.getDateInfo(r),i=a.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);n=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(n=[r,r])}if(!n)return e;var s=this._getRangeInfo(n);return s.start.time>s.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/BM)-Math.floor(n[0].time/BM)+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&&n<a.fweek||e===a.weeks&&n>a.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 C8(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}const iCt=aCt;function oCt(t){t.registerComponentModel(tCt),t.registerComponentView(rCt),t.registerCoordinateSystem("calendar",iCt)}function sCt(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 T8(t,e){var n;return W(e,function(r){t[r]!=null&&t[r]!=="auto"&&(n=!0)}),n}function lCt(t,e,n){var r=Oe({},n),a=t[e],i=n.$action||"merge";i==="merge"?a?($t(a,r,!0),wc(a,r,{ignoreSize:!0}),Cne(n,a),lb(n,a),lb(n,a,"shape"),lb(n,a,"style"),lb(n,a,"extra"),n.clipPath=a.clipPath):t[e]=r:i==="replace"?t[e]=r:i==="remove"&&a&&(t[e]=null)}var Uoe=["transition","enterFrom","leaveTo"],uCt=Uoe.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function lb(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),!(!t||!e))for(var r=n?Uoe:uCt,a=0;a<r.length;a++){var i=r[a];t[i]==null&&e[i]!=null&&(t[i]=e[i])}}function cCt(t,e){if(t&&(t.hv=e.hv=[T8(e,["left","right"]),T8(e,["top","bottom"])],t.type==="group")){var n=t,r=e;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var fCt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return e.prototype.mergeOption=function(n,r){var a=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,n,r),this.option.elements=a},e.prototype.optionUpdated=function(n,r){var a=this.option,i=(r?a:n).elements,o=a.elements=r?[]:a.elements,s=[];this._flatten(i,s,null);var l=ste(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];W(l,function(c,f){var d=c.newOption;d&&(u.push(d),sCt(c,d),lCt(o,f,d),cCt(o[f],d))},this),a.elements=wn(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(n,r,a){W(n,function(i){if(i){a&&(i.parentOption=a),r.push(i);var o=i.children;o&&o.length&&this._flatten(o,r,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},e.type="graphic",e.defaultOption={elements:[]},e}(Qt),E8={path:null,compoundPath:null,group:Ct,image:Qr,text:tn},Wi=sn(),dCt=function(t){we(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._elMap=ht()},e.prototype.render=function(n,r,a){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,a)},e.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var a=this._elMap,i=this.group,o=n.get("z"),s=n.get("zlevel");W(r,function(l){var u=Rr(l.id,null),c=u!=null?a.get(u):null,f=Rr(l.parentId,null),d=f!=null?a.get(f):i,h=l.type,v=l.style;h==="text"&&v&&l.hv&&l.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var p=l.textContent,g=l.textConfig;if(v&&_oe(v,h,!!g,!!p)){var y=xoe(v,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=hCt(l),S=l.$action||"merge",b=S==="merge",x=S==="replace";if(b){var _=!c,C=c;_?C=M8(u,d,l.type,a):(C&&(Wi(C).isNew=!1),Moe(C)),C&&(mw(C,m,n,{isInit:_}),D8(C,l,o,s))}else if(x){bw(c,l,a,n);var T=M8(u,d,l.type,a);T&&(mw(T,m,n,{isInit:!0}),D8(T,l,o,s))}else S==="remove"&&(Toe(c,l),bw(c,l,a,n));var D=a.get(u);if(D&&p)if(b){var M=D.getTextContent();M?M.attr(p):D.setTextContent(new tn(p))}else x&&D.setTextContent(new tn(p));if(D){var E=l.clipPath;if(E){var k=E.type,R=void 0,_=!1;if(b){var O=D.getClipPath();_=!O||Wi(O).type!==k,R=_?TL(k):O}else x&&(_=!0,R=TL(k));D.setClipPath(R),mw(R,E,n,{isInit:_}),ix(R,E.keyframeAnimation,n)}var B=Wi(D);D.setTextConfig(g),B.option=l,pCt(D,n,l),Fv({el:D,componentModel:n,itemName:D.name,itemTooltipOption:l.tooltip}),ix(D,l.keyframeAnimation,n)}})}},e.prototype._relocate=function(n,r){for(var a=n.option.elements,i=this.group,o=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<a.length;c++){var f=a[c],d=Rr(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var v=h.parent,p=v===i,g=Wi(h),y=Wi(v);g.width=tt(g.option.width,p?s:y.width)||0,g.height=tt(g.option.height,p?l:y.height)||0}}for(var c=a.length-1;c>=0;c--){var f=a[c],d=Rr(f.id,null),h=d!=null?o.get(d):null;if(h){var v=h.parent,y=Wi(v),m=v===i?{width:s,height:l}:{width:y.width,height:y.height},S={},b=KC(h,f,m,null,{hv:f.hv,boundingMode:f.bounding},S);if(!Wi(h).isNew&&b){for(var x=f.transition,_={},C=0;C<u.length;C++){var T=u[C],D=S[T];x&&(Dd(x)||zt(x,T)>=0)?_[T]=D:h[T]=D}cn(h,_,n,0)}else h.attr(S)}}},e.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(a){bw(a,Wi(a).option,r,n._lastGraphicModel)}),this._elMap=ht()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(jn);function TL(t){var e=lt(E8,t)?E8[t]:PC(t),n=new e({});return Wi(n).type=t,n}function M8(t,e,n,r){var a=TL(n);return e.add(a),r.set(t,a),Wi(a).id=t,Wi(a).isNew=!0,a}function bw(t,e,n,r){var a=t&&t.parent;a&&(t.type==="group"&&t.traverse(function(i){bw(i,e,n,r)}),uT(t,e,r),n.removeKey(Wi(t).id))}function D8(t,e,n,r){t.isGroup||W([["cursor",ho.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(a){var i=a[0];lt(e,i)?t[i]=Pt(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]=gt(i)?i:null}}),lt(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function hCt(t){return t=Oe({},t),W(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(xne),function(e){delete t[e]}),t}function pCt(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 vCt(t){t.registerComponentModel(fCt),t.registerComponentView(dCt),t.registerPreprocessor(function(e){var n=e.graphic;$e(n)?!n[0]||!n[0].elements?e.graphic=[{elements:n}]:e.graphic=[e.graphic[0]]:n&&!n.elements&&(e.graphic=[{elements:[n]}])})}var k8=["x","y","radius","angle","single"],gCt=["cartesian2d","polar","singleAxis"];function yCt(t){var e=t.get("coordinateSystem");return zt(gCt,e)>=0}function Yu(t){return t+"Axis"}function mCt(t,e){var n=ht(),r=[],a=ht();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 v=n.get(d);v&&v[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function Hoe(t){var e=t.ecModel,n={infoList:[],infoMap:ht()};return t.eachTargetAxis(function(r,a){var i=e.getComponent(Yu(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 $M=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}(),SCt=function(t){we(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=R8(n);this.settledOption=i,this.mergeDefaultAndTheme(n,a),this._doInit(i)},e.prototype.mergeOption=function(n){var r=R8(n);$t(this.option,n,!0),$t(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=ht(),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(k8,function(a){var i=this.getReferringComponents(Yu(a),xst);if(i.specified){r=!0;var o=new $M;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 $M;if(d.add(f.componentIndex),n.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",yr).models[0];h&&W(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",yr).models[0]&&d.add(v.componentIndex)})}}}i&&W(k8,function(u){if(i){var c=a.findComponents({mainType:Yu(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new $M;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(Yu(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(Yu(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;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(Qt);function R8(t){var e={};return W(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}const lm=SCt;var bCt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.select",e}(lm);const wCt=bCt;var _Ct=function(t){we(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){this.dataZoomModel=n,this.ecModel=r,this.api=a},e.type="dataZoom",e}(jn);const QV=_Ct;var xCt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.select",e}(QV);const CCt=xCt;var Zh=W,L8=Mi,TCt=function(){function t(e,n,r,a){this._dimName=e,this._axisIndex=n,this.ecModel=a,this._dataZoomModel=r}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(n){if(yCt(n)){var r=Yu(this._dimName),a=n.getReferringComponents(r,yr).models[0];a&&this._axisIndex===a.componentIndex&&e.push(n)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return wt(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var n=this._dataExtent,r=this.getAxisModel(),a=r.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Zh(["start","end"],function(d,h){var v=e[d],p=e[d+"Value"];i[h]==="percent"?(v==null&&(v=o[h]),p=a.parse(bn(v,o,n))):(u=!0,p=p==null?n[h]:a.parse(p),v=bn(p,n,o)),l[h]=p==null||isNaN(p)?n[h]:p,s[h]=v==null||isNaN(v)?o[h]:v}),L8(l),L8(s);var c=this._minMaxSpan;u?f(l,s,n,o,!1):f(s,l,o,n,!0);function f(d,h,v,p,g){var y=g?"Span":"ValueSpan";ih(0,d,v,"all",c["min"+y],c["max"+y]);for(var m=0;m<2;m++)h[m]=bn(d[m],v,p,!0),g&&(h[m]=a.parse(h[m]))}return{valueWindow:l,percentWindow:s}},t.prototype.reset=function(e){if(e===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=ECt(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(e,n){if(e!==this._dataZoomModel)return;var r=this._dimName,a=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;Zh(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=Ie(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,p,g,y=0;y<c.length;y++){var m=f.get(d[y],h),S=!isNaN(m),b=m<o[0],x=m>o[1];if(S&&!b&&!x)return!0;S&&(g=!0),b&&(v=!0),x&&(p=!0)}return g&&v&&p})}else Zh(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});Zh(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;Zh(["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=bn(r[0]+o,r,[0,100],!0):i!=null&&(o=bn(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=rN(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 ECt(t,e,n){var r=[1/0,-1/0];Zh(n,function(o){Bht(r,o.getData(),e)});var a=t.getAxisModel(),i=sae(a.axis.scale,a,r).calculate();return[i.min,i.max]}const MCt=TCt;var DCt={getTargetSeries:function(t){function e(a){t.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=t.getComponent(Yu(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 MCt(a,i,s,t),n.push(o.__dzAxisProxy))});var r=ht();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 kCt=DCt;function RCt(t){t.registerAction("dataZoom",function(e,n){var r=mCt(n,e);W(r,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var O8=!1;function JV(t){O8||(O8=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,kCt),RCt(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function LCt(t){t.registerComponentModel(wCt),t.registerComponentView(CCt),JV(t)}var Yi=function(){function t(){}return t}(),Woe={};function Qh(t,e){Woe[t]=e}function Koe(t){return Woe[t]}var OCt=function(t){we(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=Koe(a);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(n)),$t(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}(Qt);const ACt=OCt;function NCt(t,e,n){var r=e.getBoxLayoutParams(),a=e.get("padding"),i={width:n.getWidth(),height:n.getHeight()},o=xr(r,i,a);Cd(e.get("orient"),t,e.get("itemGap"),o.width,o.height),KC(t,r,i,a)}function joe(t,e){var n=th(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new nn({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 VCt=function(t){we(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(v,p){f.push(p)}),new Wl(this._featureNames||[],f).add(d).update(d).remove(kt(d,null)).execute(),this._featureNames=f;function d(v,p){var g=f[v],y=f[p],m=u[g],S=new Mn(m,n,n.ecModel),b;if(i&&i.newTitle!=null&&i.featureName===g&&(m.title=i.newTitle),g&&!y){if(BCt(g))b={onclick:S.option.onclick,featureName:g};else{var x=Koe(g);if(!x)return;b=new x}c[g]=b}else if(b=c[y],!b)return;b.uid=Gv("toolbox-feature"),b.model=S,b.ecModel=r,b.api=a;var _=b instanceof Yi;if(!g&&y){_&&b.dispose&&b.dispose(r,a);return}if(!S.get("show")||_&&b.unusable){_&&b.remove&&b.remove(r,a);return}h(S,b,g),S.setIconStatus=function(C,T){var D=this.option,M=this.iconPaths;D.iconStatus=D.iconStatus||{},D.iconStatus[C]=T,M[C]&&(T==="emphasis"?Ul:Hl)(M[C])},b instanceof Yi&&b.render&&b.render(S,r,a,i)}function h(v,p,g){var y=v.getModel("iconStyle"),m=v.getModel(["emphasis","iconStyle"]),S=p instanceof Yi&&p.getIcons?p.getIcons():v.get("icon"),b=v.get("title")||{},x,_;it(S)?(x={},x[g]=S):x=S,it(b)?(_={},_[g]=b):_=b;var C=v.iconPaths={};W(x,function(T,D){var M=Pv(T,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var E=M.ensureState("emphasis");E.style=m.getItemStyle();var k=new tn({style:{text:_[D],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});M.setTextContent(k),Fv({el:M,componentModel:n,itemName:D,formatterParamsExtra:{title:_[D]}}),M.__title=_[D],M.on("mouseover",function(){var R=m.getItemStyle(),O=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";k.setStyle({fill:m.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||O}),k.ignore=!n.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",D])!=="emphasis"&&a.leaveEmphasis(this),k.hide()}),(v.get(["iconStatus",D])==="emphasis"?Ul:Hl)(M),o.add(M),M.on("click",st(p.onclick,p,r,a,D)),C[D]=M})}NCt(o,n,a),o.add(joe(o.getBoundingRect(),n)),l||o.eachChild(function(v){var p=v.__title,g=v.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=v.getTextContent(),S=m&&m.ensureState("emphasis");if(S&&!gt(S)&&p){var b=S.style||(S.style={}),x=Um(p,tn.makeFont(b)),_=v.x+o.x,C=v.y+o.y+s,T=!1;C+x.height>a.getHeight()&&(y.position="top",T=!0);var D=T?-5-x.height:s+10;_+x.width/2>a.getWidth()?(y.position=["100%",D],b.align="right"):_-x.width/2<0&&(y.position=[0,D],b.align="left")}})},e.prototype.updateView=function(n,r,a,i){W(this._features,function(o){o instanceof Yi&&o.updateView&&o.updateView(o.model,r,a,i)})},e.prototype.remove=function(n,r){W(this._features,function(a){a instanceof Yi&&a.remove&&a.remove(n,r)}),this.group.removeAll()},e.prototype.dispose=function(n,r){W(this._features,function(a){a instanceof Yi&&a.dispose&&a.dispose(n,r)})},e.type="toolbox",e}(jn);function BCt(t){return t.indexOf("my")===0}const $Ct=VCt;var ICt=function(t){we(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=an.browser;if(gt(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=i+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,v=o?decodeURIComponent(d[1]):d[1];h&&(v=window.atob(v));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=v.length,y=new Uint8Array(g);g--;)y[g]=v.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var S=document.createElement("iframe");document.body.appendChild(S);var b=S.contentWindow,x=b.document;x.open("image/svg+xml","replace"),x.write(v),x.close(),b.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(S)}}else{var _=a.get("lang"),C='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(_&&_[0]||"")+'" /></body>',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}(Yi);const PCt=ICt;var A8="__ec_magicType_stack__",FCt=[["line","bar"],["stack"]],zCt=function(t){we(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(N8[a]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,v=N8[a](d,h,f,i);v&&(mt(v,f.option),s.series.push(v));var p=f.coordinateSystem;if(p&&p.type==="cartesian2d"&&(a==="line"||a==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",S=f.getReferringComponents(m,yr).models[0],b=S.componentIndex;s[m]=s[m]||[];for(var x=0;x<=b;x++)s[m][b]=s[m][b]||{};s[m][b].boundaryGap=a==="bar"}}};W(FCt,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=$t({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}(Yi),N8={line:function(t,e,n,r){if(t==="bar")return $t({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 $t({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")===A8;if(t==="line"||t==="bar")return r.setIconStatus("stack",a?"normal":"emphasis"),$t({id:e,stack:a?"":A8},r.get(["option","stack"])||{},!0)}};cs({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});const GCt=zCt;var cT=new Array(60).join("-"),yv=" ";function UCt(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 HCt(t){var e=[];return W(t,function(n,r){var a=n.categoryAxis,i=n.valueAxis,o=i.dim,s=[" "].concat(Ie(n.series,function(h){return h.name})),l=[a.model.getCategories()];W(n.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(p){return p}))});for(var u=[s.join(yv)],c=0;c<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(yv))}e.push(u.join(`
- `))}),e.join(`
- `+cT+`
- `)}function WCt(t){return Ie(t,function(e){var n=e.getRawData(),r=[e.name],a=[];return n.each(n.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=n.getName(o),l=0;l<i-1;l++)a[l]=arguments[l];r.push((s?s+yv:"")+a.join(yv))}),r.join(`
- `)}).join(`
- `+cT+`
- `)}function KCt(t){var e=UCt(t);return{value:wn([HCt(e.seriesGroupByCategoryAxis),WCt(e.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
- `+cT+`
- `),meta:e.meta}}function lx(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jCt(t){var e=t.slice(0,t.indexOf(`
- `));if(e.indexOf(yv)>=0)return!0}var EL=new RegExp("["+yv+"]+","g");function YCt(t){for(var e=t.split(/\n+/g),n=lx(e.shift()).split(EL),r=[],a=Ie(n,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=lx(e[i]).split(EL);r.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[i]=o[s])}return{series:a,categories:r}}function XCt(t){for(var e=t.split(/\n+/g),n=lx(e.shift()),r=[],a=0;a<e.length;a++){var i=lx(e[a]);if(i){var o=i.split(EL),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[a]={name:s,value:[]},l=r[a].value):l=r[a]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?r[a].value=l[0]:r[a]=l[0])}}return{name:n,data:r}}function qCt(t,e){var n=t.split(new RegExp(`
- *`+cT+`
- *`,"g")),r={series:[]};return W(n,function(a,i){if(jCt(a)){var o=YCt(a),s=e[i],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=XCt(a);r.series.push(o)}}),r}var ZCt=function(t){we(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var a=r.getDom(),i=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=i.get("optionToContent"),d=i.get("contentToOption"),h=KCt(n);if(gt(f)){var v=f(r.getOption());it(v)?u.innerHTML=v:lv(v)&&u.appendChild(v)}else{c.readOnly=i.get("readOnly");var p=c.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),c.value=h.value,u.appendChild(c)}var g=h.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",S=document.createElement("div"),b=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var x=this;function _(){a.removeChild(o),x._dom=null}aR(S,"click",_),aR(b,"click",function(){if(d==null&&f!=null||d!=null&&f==null){_();return}var C;try{gt(d)?C=d(u,r.getOption()):C=qCt(c.value,g)}catch(T){throw _(),new Error("Data view format error "+T)}C&&r.dispatchAction({type:"changeDataView",newOption:C}),_()}),S.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=S.style.cssText=m,!i.get("readOnly")&&y.appendChild(b),y.appendChild(S),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(n,r){this.remove(n,r)},e.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},e}(Yi);function QCt(t,e){return Ie(t,function(n,r){var a=e&&e[r];if(bt(a)&&!$e(a)){var i=bt(n)&&!$e(n);i||(n={value:n});var o=a.name!=null&&n.name==null;return n=mt(n,a),o&&delete n.name,n}else return n})}cs({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];W(t.newOption.series,function(r){var a=e.getSeriesByName(r.name)[0];if(!a)n.push(Oe({type:"scatter"},r));else{var i=a.get("data");n.push({name:r.name,data:QCt(r.data,i)})}}),e.mergeOption(mt({series:n},t.newOption))});const JCt=ZCt;var Yoe=W,Xoe=sn();function eTt(t,e){var n=eB(t);Yoe(e,function(r,a){for(var i=n.length-1;i>=0;i--){var o=n[i];if(o[a])break}if(i<0){var s=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 tTt(t){var e=eB(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return Yoe(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 nTt(t){Xoe(t).snapshots=null}function rTt(t){return eB(t).length}function eB(t){var e=Xoe(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var aTt=function(t){we(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){nTt(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}(Yi);cs({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});const iTt=aTt;var oTt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],sTt=function(){function t(e,n,r){var a=this;this._targetInfoList=[];var i=V8(n,e);W(lTt,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=IM[r.brushType](0,i,a);r.__rangeOffset={offset:P8[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=IM[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=IM[r.brushType](0,a.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?P8[r.brushType](i.values,o.offset,uTt(i.xyMinMax,o.xyMinMax)):i.values}},this)},t.prototype.makePanelOpts=function(e,n){return Ie(this._targetInfoList,function(r){var a=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:noe(a),isTargetByCursor:aoe(a,e,r.coordSysModel),getLinearBrushOtherExtent:roe(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=V8(n,e),i=0;i<r.length;i++){var o=r[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<B8.length;l++)if(B8[l](a,o))return o}return!0},t}();function ML(t){return t[0]>t[1]&&t.reverse(),t}function V8(t,e){return N0(t,e,{includeMainTypes:oTt})}var lTt={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,a=t.gridModels,i=ht(),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:$8.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:$8.geo})})}},B8=[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}],$8={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(rc(t)),e}},IM={lineX:kt(I8,0),lineY:kt(I8,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=[ML([a[0],i[0]]),ML([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=Ie(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 I8(t,e,n,r){var a=n.getAxis(["x","y"][t]),i=ML(Ie([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 P8={lineX:kt(F8,0),lineY:kt(F8,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 Ie(t,function(r,a){return[r[0]-n[0]*e[a][0],r[1]-n[1]*e[a][1]]})}};function F8(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function uTt(t,e){var n=z8(t),r=z8(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 z8(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const tB=sTt;var DL=W,cTt=mst("toolbox-dataZoom_"),fTt=function(t){we(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 VV(a.getZr()),this._brushController.on("brush",st(this._onBrush,this)).mount()),pTt(n,r,this,i,a),hTt(n,r)},e.prototype.onclick=function(n,r,a){dTt[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 tB(nB(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)}}),eTt(i,a),this._dispatchZoomAction(a);function s(u,c,f){var d=c.getAxis(u),h=d.model,v=l(u,h,i),p=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(f=ih(0,f.slice(),d.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),v&&(a[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(u,c.componentIndex);v&&(d=h)}),d}},e.prototype._dispatchZoomAction=function(n){var r=[];DL(n,function(a,i){r.push(wt(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}(Yi),dTt={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(tTt(this.ecModel))}};function nB(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 hTt(t,e){t.setIconStatus("back",rTt(e)>1?"emphasis":"normal")}function pTt(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 tB(nB(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)}qut("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=nB(r),o=N0(t,i);DL(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),DL(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:cTt+u+f};d[c]=f,a.push(d)}return a});const vTt=fTt;function gTt(t){t.registerComponentModel(ACt),t.registerComponentView($Ct),Qh("saveAsImage",PCt),Qh("magicType",GCt),Qh("dataView",JCt),Qh("dataZoom",vTt),Qh("restore",iTt),Ut(LCt)}var yTt=function(t){we(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}(Qt);const mTt=yTt;function qoe(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function Zoe(t){if(an.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var Qoe=Zoe(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),STt=Zoe(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Joe(t,e){if(!t)return e;e=kN(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function bTt(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var wTt=Joe(STt,"transition"),rB=Joe(Qoe,"transform"),_Tt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(an.transform3dSupported?"will-change:transform;":"");function xTt(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function CTt(t,e,n){if(!it(n)||n==="inside")return"";var r=t.get("backgroundColor"),a=t.get("borderWidth");e=Fd(e);var i=xTt(n),o=Math.max(Math.round(a)*1.5,6),s="",l=rB+":",u;zt(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+h+"px";var v=e+" solid "+a+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+r+";"];return'<div style="'+p.join("")+'"></div>'}function TTt(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+=an.transformSupported?","+rB+r:",left"+r+",top"+r),wTt+":"+a}function G8(t,e,n){var r=t.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!an.transformSupported)return n?"top:"+a+";left:"+r+";":[["top",a],["left",r]];var i=an.transform3dSupported,o="translate"+(i?"3d":"")+"("+r+","+a+(i?",0":"")+")";return n?"top:0;left:0;"+rB+":"+o+";":[["top",0],["left",0],[Qoe,o]]}function ETt(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 MTt(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=rre(t,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),e&&a&&r.push(TTt(a,n)),i&&r.push("background-color:"+i),W(["width","color","radius"],function(h){var v="border-"+h,p=kN(v),g=t.get(p);g!=null&&r.push(v+":"+g+(h==="color"?"":"px"))}),r.push(ETt(c)),f!=null&&r.push("padding:"+th(f).join("px ")+"px"),r.join(";")+";"}function U8(t,e,n,r,a){var i=e&&e.painter;if(n){var o=i&&i.getViewportRoot();o&&Bit(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 DTt=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,an.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;U8(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();zi(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=bTt(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=_Tt+MTt(e,!this._firstShow,this._longHide)+G8(i[0],i[1],!0)+("border-color:"+Fd(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(it(i)&&r.get("trigger")==="item"&&!qoe(r)&&(s=CTt(r,a,i)),it(e))o.innerHTML=e+s;else if(e){o.innerHTML="",$e(e)||(e=[e]);for(var l=0;l<e.length;l++)lv(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},t.prototype.moveTo=function(e,n){var r=this._styleCoord;if(U8(r,this._zr,this._appendToBody,e,n),r[0]!=null&&r[1]!=null){var a=this.el.style,i=G8(r[0],r[1]);W(i,function(o){a[o[0]]=o[1]})}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){var e=this,n=this.el.style;n.visibility="hidden",n.opacity="0",an.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(st(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}();const kTt=DTt;var RTt=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),W8(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,n,r,a,i){var o=this;bt(e)&&gn(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new tn({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:rre(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),W(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),W(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,n=this.el.getBoundingRect(),r=H8(e.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},t.prototype.moveTo=function(e,n){var r=this.el;if(r){var a=this._styleCoord;W8(a,this._zr,e,n),e=a[0],n=a[1];var i=r.style,o=ku(i.borderWidth||0),s=H8(i);r.x=e+o+s.left,r.y=n+o+s.top,r.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(st(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function ku(t){return Math.max(0,t)}function H8(t){var e=ku(t.shadowBlur||0),n=ku(t.shadowOffsetX||0),r=ku(t.shadowOffsetY||0);return{left:ku(e-n),right:ku(e+n),top:ku(e-r),bottom:ku(e+r)}}function W8(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}const LTt=RTt;var OTt=new nn({shape:{x:-1,y:-1,width:2,height:2}}),ATt=function(t){we(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){if(!(an.node||!r.getDom())){var a=n.getComponent("tooltip"),i=this._renderMode=Tst(a.get("renderMode"));this._tooltipContent=i==="richText"?new LTt(r):new kTt(r.getDom(),r,{appendToBody:a.get("appendToBody",!0)})}},e.prototype.render=function(n,r,a){if(!(an.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=a;var i=this._tooltipContent;i.update(n),i.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?Yv(this,"_updatePosition",50,"fixRate"):qy(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");Boe("itemTooltip",this._api,st(function(a,i,o){r!=="none"&&(r.indexOf(a)>=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||an.node||!a.getDom())){var o=K8(i,a);this._ticket="";var s=i.dataByCoordSys,l=$Tt(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=OTt;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=$oe(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(K8(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=Ig([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;sd(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=st(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=Ig([r.tooltipOption],i),l=this._renderMode,u=[],c=Fr("section",{blocks:[],noHeader:!0}),f=[],d=new xE;W(n,function(m){W(m.dataByAxis,function(S){var b=a.getComponent(S.axisDim+"Axis",S.axisIndex),x=S.value;if(!(!b||x==null)){var _=Aoe(x,b.axis,a,S.seriesDataIndices,S.valueLabelOpt),C=Fr("section",{header:_,noHeader:!Qi(_),sortBlocks:!0,blocks:[]});c.blocks.push(C),W(S.seriesDataIndices,function(T){var D=a.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,E=D.getDataParams(M);if(!(E.dataIndex<0)){E.axisDim=S.axisDim,E.axisIndex=S.axisIndex,E.axisType=S.axisType,E.axisId=S.axisId,E.axisValue=iV(b.axis,{value:x}),E.axisValueLabel=_,E.marker=d.makeTooltipMarker("item",Fd(E.color),l);var k=Oz(D.formatTooltip(M,!0,null)),R=k.frag;if(R){var O=Ig([D],i).get("valueFormatter");C.blocks.push(O?Oe({valueFormatter:O},R):R)}k.text&&f.push(k.text),u.push(E)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,v=s.get("order"),p=Iz(c,d,l,v,a.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var g=l==="richText"?`
- `:"<br/>",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,v=n.positionDefault,p=Ig([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),m=new xE;y.marker=m.makeTooltipMarker("item",Fd(y.color),h);var S=Oz(u.formatTooltip(c,!1,f)),b=p.get("order"),x=p.get("valueFormatter"),_=S.frag,C=_?Iz(x?Oe({valueFormatter:x},_):_,m,h,b,i.get("useUTC"),p.get("textStyle")):S.text,T="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,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(it(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=Ig(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",p=new xE;this._showOrMove(d,function(){var g=wt(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,n.offsetX,n.offsetY,n.position,r,p)}),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,v=this._getNearestPoint([o,s],a,n.get("trigger"),n.get("borderColor")),p=v.color;if(d)if(it(d)){var g=n.ecModel.get("useUTC"),y=$e(a)?a[0]:a,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,m&&(h=Zm(y.axisValue,h,g)),h=RN(h,a,!0)}else if(gt(d)){var S=st(function(b,x){b===this._ticket&&(f.setContent(x,c,n,p,l),this._updatePosition(n,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,S)}else h=d;f.setContent(h,c,n,p,l),f.show(n,p),this._updatePosition(n,l,o,s,f,a,u)}},e.prototype._getNearestPoint=function(n,r,a,i){if(a==="axis"||$e(r))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!$e(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"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),gt(r)&&(r=r([a,i],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),$e(r))a=tt(r[0],u),i=tt(r[1],c);else if(bt(r)){var p=r;p.width=f[0],p.height=f[1];var g=xr(p,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(it(r)&&l){var y=BTt(r,v,f,n.get("borderWidth"));a=y[0],i=y[1]}else{var y=NTt(a,i,o,u,c,d?null:20,h?null:20);a=y[0],i=y[1]}if(d&&(a-=j8(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=j8(h)?f[1]/2:h==="bottom"?f[1]:0),qoe(n)){var y=VTt(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 v=f[h]||{},p=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&p.length===g.length,o&&W(p,function(y,m){var S=g[m];o=o&&y.seriesIndex===S.seriesIndex&&y.dataIndex===S.dataIndex}),i&&W(d.seriesDataIndices,function(y){var m=y.seriesIndex,S=r[m],b=i[m];S&&b&&b.data!==S.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){an.node||!r.getDom()||(qy(this,"_updatePosition"),this._tooltipContent.dispose(),xL("itemTooltip",r))},e.type="tooltip",e}(jn);function Ig(t,e,n){var r=e.ecModel,a;n?(a=new Mn(n,r,r),a=new Mn(e.option,a,r)):a=e;for(var i=t.length-1;i>=0;i--){var o=t[i];o&&(o instanceof Mn&&(o=o.get("tooltip",!0)),it(o)&&(o={formatter:o}),o&&(a=new Mn(o,a,r)))}return a}function K8(t,e){return t.dispatchAction||st(e.dispatchAction,e)}function NTt(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 VTt(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 BTt(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 j8(t){return t==="center"||t==="middle"}function $Tt(t,e,n){var r=lN(t).queryOptionMap,a=r.keys()[0];if(!(!a||a==="series")){var i=Hm(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 ITt=ATt;function PTt(t){Ut(l1),t.registerComponentModel(mTt),t.registerComponentView(ITt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ir),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ir)}var FTt=["rect","polygon","keep","clear"];function zTt(t,e){var n=Dn(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;$e(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),GTt(s),e&&!s.length&&s.push.apply(s,FTt)}}function GTt(t){var e={};W(t,function(n){e[n]=1}),t.length=0,W(e,function(n,r){t.push(r)})}var Y8=W;function X8(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function kL(t,e,n){var r={};return Y8(e,function(i){var o=r[i]=a();Y8(t[i],function(s,l){if(oa.isValidType(l)){var u={type:l,visual:s};n&&n(u,i),o[l]=new oa(u),l==="opacity"&&(u=wt(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new oa(u))}})}),r;function a(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function ese(t,e,n){var r;W(n,function(a){e.hasOwnProperty(a)&&X8(e[a])&&(r=!0)}),r&&W(n,function(a){e.hasOwnProperty(a)&&X8(e[a])?t[a]=wt(e[a]):delete t[a]})}function UTt(t,e,n,r,a,i){var o={};W(t,function(f){var d=oa.prepareVisualTypes(e[f]);o[f]=d});var s;function l(f){return GN(n,s,f)}function u(f,d){hre(n,s,f,d)}i==null?n.each(c):n.each([i],c);function c(f,d){s=i==null?f:d;var h=n.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=r.call(a,f),p=e[v],g=o[v],y=0,m=g.length;y<m;y++){var S=g[y];p[S]&&p[S].applyVisual(f,l,u)}}}function HTt(t,e,n,r){var a={};return W(t,function(i){var o=oa.prepareVisualTypes(e[i]);a[i]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(x){return GN(s,f,x)}function c(x,_){hre(s,f,x,_)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var v=r!=null?d.get(l,f):f,p=n(v),g=e[p],y=a[p],m=0,S=y.length;m<S;m++){var b=y[m];g[b]&&g[b].applyVisual(v,u,c)}}}}}function WTt(t){var e=t.brushType,n={point:function(r){return q8[e].point(r,n,t)},rect:function(r){return q8[e].rect(r,n,t)}};return n}var q8={lineX:Z8(0),lineY:Z8(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&Wf(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var a=t.x,i=t.y,o=t.width,s=t.height,l=r[0];if(Wf(r,a,i)||Wf(r,a+o,i)||Wf(r,a,i+s)||Wf(r,a+o,i+s)||Ft.create(t).contain(l[0],l[1])||n0(a,i,a+o,i,r)||n0(a,i,a,i+s,r)||n0(a+o,i,a+o,i+s,r)||n0(a,i+s,a+o,i+s,r))return!0}}};function Z8(t){var e=["x","y"],n=["width","height"];return{point:function(r,a,i){if(r){var o=i.range,s=r[t];return Pg(s,o)}},rect:function(r,a,i){if(r){var o=i.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),Pg(s[0],o)||Pg(s[1],o)||Pg(o[0],s)||Pg(o[1],s)}}}}function Pg(t,e){return e[0]<=t&&t<=e[1]}var Q8=["inBrush","outOfBrush"],PM="__ecBrushSelect",RL="__ecInBrushSelectEvent";function tse(t){t.eachComponent({mainType:"brush"},function(e){var n=e.brushTargetManager=new tB(e.option,t);n.setInputRanges(e.areas,t)})}function KTt(t,e,n){var r=[],a,i;t.eachComponent({mainType:"brush"},function(o){n&&n.type==="takeGlobalCursor"&&o.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),tse(t),t.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:wt(o.areas),selected:[]};r.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],v=!1;s||(a=u.throttleType,i=u.throttleDelay);var p=Ie(o.areas,function(x){var _=qTt[x.brushType],C=mt({boundingRect:_?_(x):void 0},x);return C.selectors=WTt(C),C}),g=kL(o.option,Q8,function(x){x.mappingMethod="fixed"});$e(c)&&W(c,function(x){f[x]=1});function y(x){return c==="all"||!!f[x]}function m(x){return!!x.length}t.eachSeries(function(x,_){var C=h[_]=[];x.subType==="parallel"?S(x,_):b(x,_,C)});function S(x,_){var C=x.coordinateSystem;v=v||C.hasAxisBrushed(),y(_)&&C.eachActiveState(x.getData(),function(T,D){T==="active"&&(d[D]=1)})}function b(x,_,C){if(!(!x.brushSelector||XTt(o,_))&&(W(p,function(D){o.brushTargetManager.controlSeries(D,x,t)&&C.push(D),v=v||m(C)}),y(_)&&m(C))){var T=x.getData();T.each(function(D){J8(x,C,T,D)&&(d[D]=1)})}}t.eachSeries(function(x,_){var C={seriesId:x.id,seriesIndex:_,seriesName:x.name,dataIndex:[]};l.selected.push(C);var T=h[_],D=x.getData(),M=y(_)?function(E){return d[E]?(C.dataIndex.push(D.getRawIndex(E)),"inBrush"):"outOfBrush"}:function(E){return J8(x,T,D,E)?(C.dataIndex.push(D.getRawIndex(E)),"inBrush"):"outOfBrush"};(y(_)?v:m(T))&&UTt(Q8,g,D,M)})}),jTt(e,a,i,r,n)}function jTt(t,e,n,r,a){if(a){var i=t.getZr();if(!i[RL]){i[PM]||(i[PM]=YTt);var o=Yv(i,PM,n,e);o(t,r)}}}function YTt(t,e){if(!t.isDisposed()){var n=t.getZr();n[RL]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[RL]=!1}}function J8(t,e,n,r){for(var a=0,i=e.length;a<i;a++){var o=e[a];if(t.brushSelector(r,n,o.selectors,o))return!0}}function XTt(t,e){var n=t.option.seriesIndex;return n!=null&&n!=="all"&&($e(n)?zt(n,e)<0:e!==n)}var qTt={rect:function(t){return eH(t.range)},polygon:function(t){for(var e,n=t.range,r=0,a=n.length;r<a;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=n[r];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&eH(e)}};function eH(t){return new Ft(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var ZTt=function(t){we(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 VV(r.getZr())).on("brush",st(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){tse(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:wt(a),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:wt(a),$from:r})},e.type="brush",e}(jn);const QTt=ZTt;var JTt="#ddd",e2t=function(t){we(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&&ese(a,n,["inBrush","outOfBrush"]);var i=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:JTt},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(n){n&&(this.areas=Ie(n,function(r){return tH(this.option,r)},this))},e.prototype.setBrushOption=function(n){this.brushOption=tH(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}(Qt);function tH(t,e){return $t({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Mn(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const t2t=e2t;var n2t=["rect","polygon","lineX","lineY","keep","clear"],r2t=function(t){we(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:n2t.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}(Yi);const a2t=r2t;function i2t(t){t.registerComponentView(QTt),t.registerComponentModel(t2t),t.registerPreprocessor(zTt),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,KTt),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"},ir),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},ir),Qh("brush",a2t)}var o2t=function(t){we(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}(Qt),s2t=function(t){we(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=Pt(n.get("textBaseline"),n.get("textVerticalAlign")),c=new tn({style:An(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),h=new tn({style:An(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=n.get("link"),p=n.get("sublink"),g=n.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!p&&!g,v&&c.on("click",function(){V_(v,"_"+n.get("target"))}),p&&h.on("click",function(){V_(p,"_"+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 S=xr(m,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};c.setStyle(b),h.setStyle(b),y=i.getBoundingRect();var x=S.margin,_=n.getItemStyle(["color","opacity"]);_.fill=n.get("backgroundColor");var C=new nn({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:_,subPixelOptimize:!0,silent:!0});i.add(C)}},e.type="title",e}(jn);function l2t(t){t.registerComponentModel(o2t),t.registerComponentView(s2t)}var u2t=function(t){we(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=Rr(Vv(u),""),d;bt(u)?(d=wt(u),d.value=c):d=c,o.push(d),i.push(f)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new _a([{name:"value",type:s}],this);l.initData(o,i)},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}(Qt);const nH=u2t;var nse=function(t){we(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=Pc(nH.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}(nH);sr(nse,IN.prototype);const c2t=nse;var f2t=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline",e}(jn);const d2t=f2t;var h2t=function(t){we(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}(mo);const p2t=h2t;var FM=Math.PI,rH=sn(),v2t=function(t){we(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 Fr("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=y2t(n,r),s;a==null||a==="auto"?s=i==="horizontal"?o.y+o.height/2<r.getHeight()/2?"-":"+":o.x+o.width/2<r.getWidth()/2?"+":"-":it(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:FM/2},f=i==="vertical"?o.height:o.width,d=n.getModel("controlStyle"),h=d.get("show",!0),v=h?d.get("itemSize"):0,p=h?d.get("itemGap"):0,g=v+p,y=n.get(["label","rotate"])||0;y=y*FM/180;var m,S,b,x=d.get("position",!0),_=h&&d.get("showPlayBtn",!0),C=h&&d.get("showPrevBtn",!0),T=h&&d.get("showNextBtn",!0),D=0,M=f;x==="left"||x==="bottom"?(_&&(m=[0,0],D+=g),C&&(S=[D,0],D+=g),T&&(b=[M-v,0],M-=g)):(_&&(m=[M-v,0],M-=g),C&&(S=[0,0],D+=g),T&&(b=[M-v,0],M-=g));var E=[D,M];return n.get("inverse")&&E.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:S,nextBtnPosition:b,axisExtent:E,controlSize:v,controlGap:p}},e.prototype._position=function(n,r){var a=this._mainGroup,i=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=Li(),l=o.x,u=o.y+o.height;ns(s,s,[-l,-u]),$c(s,s,-FM/2),ns(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],v=[i.x,i.y];v[0]=h[0]=c[0][0];var p=n.labelPosOpt;if(p==null||it(p)){var g=p==="+"?0:1;S(h,f,c,1,g),S(v,d,c,1,1-g)}else{var g=p>=0?0:1;S(h,f,c,1,g),v[1]=h[1]+p}a.setPosition(h),i.setPosition(v),a.rotation=i.rotation=n.rotation,y(a),y(i);function y(b){b.originX=c[0][0]-b.x,b.originY=c[1][0]-b.y}function m(b){return[[b.x,b.x+b.width],[b.y,b.y+b.height]]}function S(b,x,_,C,T){b[C]+=_[C][T]-x[C][T]}},e.prototype._createAxis=function(n,r){var a=r.getData(),i=r.get("axisType"),o=g2t(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 p2t("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 Vr({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 Vr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:mt({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"]),v=f.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:st(o._changeTimeline,o,u.value)},g=aH(f,d,r,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=v.getItemStyle(),nc(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"),v=d.getModel(["emphasis","label"]),p=d.getModel(["progress","label"]),g=a.dataToCoord(c.tickValue),y=new tn({x:g,y:0,rotation:n.labelRotation-n.rotation,onclick:st(o._changeTimeline,o,f),silent:!1,style:An(h,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});y.ensureState("emphasis").style=An(v),y.ensureState("progress").style=An(p),r.add(y),nc(y),rH(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",st(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",st(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",st(this._handlePlayClick,this,!c),!0);function d(h,v,p,g){if(h){var y=rs(Pt(i.get(["controlStyle",v+"BtnSize"]),o),o),m=[0,-y/2,y,y],S=m2t(i,v+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});S.ensureState("emphasis").style=u,r.add(S),nc(S)}}},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=st(u._handlePointerDrag,u),f.ondragend=st(u._handlePointerDragend,u),iH(f,u._progressLine,s,a,i,!0)},onUpdate:function(f){iH(f,u._progressLine,s,a,i)}};this._currentPointer=aH(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=Mi(i.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(r||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=n.model;n._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(n){var r=this._mainGroup.getLocalTransform();return Qo(n,r,!0)},e.prototype._findNearestTick=function(n){var r=this.model.getData(),a=1/0,i,o=this._axis;return r.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-n);c<a&&(a=c,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(n){var r=this.model.getCurrentIndex();n==="+"?n=r+1:n==="-"&&(n=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},e.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),r=this._tickSymbols,a=this._tickLabels;if(r)for(var i=0;i<r.length;i++)r&&r[i]&&r[i].toggleState("progress",i<n);if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",rH(a[i]).dataIndex<=n)},e.type="timeline.slider",e}(d2t);function g2t(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new tV({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new iae({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new _c}}function y2t(t,e){return xr(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function m2t(t,e,n,r){var a=r.style,i=Pv(t.get(["controlStyle",e]),r||{},new Ft(n[0],n[1],n[2],n[3]));return a&&i.setStyle(a),i}function aH(t,e,n,r,a,i){var o=e.get("color");if(a)a.setColor(o),n.add(a),i&&i.onUpdate(a);else{var s=t.get("symbol");a=fr(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),n.add(a),i&&i.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),r=$t({rectHover:!0,z2:100},r,!0);var u=Xv(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=nh(t.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var f=t.get("symbolRotate");return r.rotation=(f||0)*Math.PI/180||0,a.attr(r),a.updateTransform(),a}function iH(t,e,n,r,a,i){if(!t.dragging){var o=a.getModel("checkpointStyle"),s=r.dataToCoord(a.getData().get("value",n));if(i||!o.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const S2t=v2t;function b2t(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,n,r){var a=n.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),n.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),mt({currentIndex:a.option.currentIndex},e)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,n){var r=n.getComponent("timeline");r&&e.playState!=null&&r.setPlayState(e.playState)})}function w2t(t){var e=t&&t.timeline;$e(e)||(e=e?[e]:[]),W(e,function(n){n&&_2t(n)})}function _2t(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),oH(t),Yf(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});Yf(r,"position")||(r.position=t.controlPosition),r.position==="none"&&!Yf(r,"show")&&(r.show=!1,delete r.position),delete t.controlPosition}W(t.data||[],function(a){bt(a)&&!$e(a)&&(!Yf(a,"value")&&Yf(a,"name")&&(a.value=a.name),oH(a))})}function oH(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},a=r.normal||(r.normal={}),i={normal:1,emphasis:1};W(r,function(o,s){!i[s]&&!Yf(a,s)&&(a[s]=o)}),n.label&&!Yf(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function Yf(t,e){return t.hasOwnProperty(e)}function x2t(t){t.registerComponentModel(c2t),t.registerComponentView(S2t),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),b2t(t),t.registerPreprocessor(w2t)}function aB(t,e){if(!t)return!1;for(var n=$e(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function ub(t){Bd(t,"label",["show"])}var cb=sn(),rse=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return e.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),this._mergeOption(n,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(an.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},e.prototype.mergeOption=function(n,r){this._mergeOption(n,r,!1,!1)},e.prototype._mergeOption=function(n,r,a,i){var o=this.mainType;a||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=cb(s)[o];if(!l||!l.data){cb(s)[o]=null;return}u?u._mergeOption(l,r,!0):(i&&ub(l),W(l.data,function(c){c instanceof Array?(ub(c[0]),ub(c[1])):ub(c)}),u=this.createMarkerModelFromSeries(l,this,r),Oe(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),cb(s)[o]=u},this)},e.prototype.formatTooltip=function(n,r,a){var i=this.getData(),o=this.getRawValue(n),s=i.getName(n);return Fr("section",{header:this.name,blocks:[Fr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(n){this._data=n},e.getMarkerModelFromSeries=function(n,r){return cb(n)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Qt);sr(rse,IN.prototype);const Tc=rse;var C2t=function(t){we(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="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(Tc);const T2t=C2t;function LL(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function E2t(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function fb(t,e,n,r,a,i){var o=[],s=Kl(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=iB(e,l,t),c=e.indicesOfNearest(l,u)[0];o[a]=e.get(n,c),o[i]=e.get(l,c);var f=e.get(r,c),d=Ho(e.get(r,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var zM={min:kt(fb,"min"),max:kt(fb,"max"),average:kt(fb,"average"),median:kt(fb,"median")};function um(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,a=r&&r.dimensions;if(!E2t(e)&&!$e(e.coord)&&$e(a)){var i=ase(e,n,r,t);if(e=wt(e),e.type&&zM[e.type]&&i.baseAxis&&i.valueAxis){var o=zt(a,i.baseAxis.dim),s=zt(a,i.valueAxis.dim),l=zM[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||!$e(a))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)zM[u[c]]&&(u[c]=iB(n,n.mapDimension(a[c]),u[c]));return e}}function ase(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(M2t(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 M2t(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function cm(t,e){return t&&t.containData&&e.coord&&!LL(e)?t.containData(e.coord):!0}function D2t(t,e,n){return t&&t.containZone&&e.coord&&n.coord&&!LL(e)&&!LL(n)?t.containZone(e.coord,n.coord):!0}function ise(t,e){return t?function(n,r,a,i){var o=i<2?n.coord&&n.coord[i]:n.value;return ic(o,e[i])}:function(n,r,a,i){return ic(n.value,e[i])}}function iB(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 GM=sn(),k2t=function(t){we(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=ht()},e.prototype.render=function(n,r,a){var i=this,o=this.markerGroupMap;o.each(function(s){GM(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){!GM(s).keep&&i.group.remove(s.group)})},e.prototype.markKeep=function(n){GM(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?Ote(l):pN(l))})}})},e.type="marker",e}(jn);const oB=k2t;function sH(t,e,n){var r=e.coordinateSystem;t.each(function(a){var i=t.getItemModel(a),o,s=tt(i.get("x"),n.getWidth()),l=tt(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 R2t=function(t){we(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&&(sH(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 n1),f=L2t(o,n,r);r.setData(f),sH(r.getData(),n,i),f.each(function(d){var h=f.getItemModel(d),v=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(gt(v)||gt(p)||gt(g)||gt(y)){var S=r.getRawValue(d),b=r.getDataParams(d);gt(v)&&(v=v(S,b)),gt(p)&&(p=p(S,b)),gt(g)&&(g=g(S,b)),gt(y)&&(y=y(S,b))}var x=h.getModel("itemStyle").getItemStyle(),_=Qm(l,"color");x.fill||(x.fill=_),f.setItemVisual(d,{symbol:v,symbolSize:p,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}(oB);function L2t(t,e,n){var r;t?r=Ie(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 _a(r,n),i=Ie(n.get("data"),kt(um,e));t&&(i=wn(i,kt(cm,t)));var o=ise(!!t,r);return a.initData(i,null,o),a}const O2t=R2t;function A2t(t){t.registerComponentModel(T2t),t.registerComponentView(O2t),t.registerPreprocessor(function(e){aB(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var N2t=function(t){we(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 V2t=N2t;var db=sn(),B2t=function(t,e,n,r){var a=t.getData(),i;if($e(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=Nr(r.yAxis,r.xAxis);else{var u=ase(r,a,e,t);s=u.valueAxis;var c=eV(a,u.valueDataDim);l=iB(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=wt(r),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var p=n.get("precision");p>=0&&on(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[f]=v.coord[f]=l,i=[h,v,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var g=[um(t,i[0]),um(t,i[1]),Oe({},i[2])];return g[2].type=g[2].type||null,$t(g[2],g[0]),$t(g[2],g[1]),g};function ux(t){return!isNaN(t)&&!isFinite(t)}function lH(t,e,n,r){var a=1-t,i=r.dimensions[t];return ux(e[a])&&ux(n[a])&&e[t]===n[t]&&r.getAxis(i).containData(e[t])}function $2t(t,e){if(t.type==="cartesian2d"){var n=e[0].coord,r=e[1].coord;if(n&&r&&(lH(1,n,r,t)||lH(0,n,r,t)))return!0}return cm(t,e[0])&&cm(t,e[1])}function UM(t,e,n,r,a){var i=r.coordinateSystem,o=t.getItemModel(e),s,l=tt(o.get("x"),a.getWidth()),u=tt(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(rh(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),c=i.dimensions;ux(t.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):ux(t.get(c[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var I2t=function(t){we(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=db(o).from,u=db(o).to;l.each(function(c){UM(l,c,!0,i,a),UM(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 kV);this.group.add(c.group);var f=P2t(o,n,r),d=f.from,h=f.to,v=f.line;db(r).from=d,db(r).to=h,r.setData(v);var p=r.get("symbol"),g=r.get("symbolSize"),y=r.get("symbolRotate"),m=r.get("symbolOffset");$e(p)||(p=[p,p]),$e(g)||(g=[g,g]),$e(y)||(y=[y,y]),$e(m)||(m=[m,m]),f.from.each(function(b){S(d,b,!0),S(h,b,!1)}),v.each(function(b){var x=v.getItemModel(b).getModel("lineStyle").getLineStyle();v.setItemLayout(b,[d.getItemLayout(b),h.getItemLayout(b)]),x.stroke==null&&(x.stroke=d.getItemVisual(b,"style").fill),v.setItemVisual(b,{fromSymbolKeepAspect:d.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(b,"symbolOffset"),fromSymbolRotate:d.getItemVisual(b,"symbolRotate"),fromSymbolSize:d.getItemVisual(b,"symbolSize"),fromSymbol:d.getItemVisual(b,"symbol"),toSymbolKeepAspect:h.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(b,"symbolOffset"),toSymbolRotate:h.getItemVisual(b,"symbolRotate"),toSymbolSize:h.getItemVisual(b,"symbolSize"),toSymbol:h.getItemVisual(b,"symbol"),style:x})}),c.updateData(v),f.line.eachItemGraphicEl(function(b){Rt(b).dataModel=r,b.traverse(function(x){Rt(x).dataModel=r})});function S(b,x,_){var C=b.getItemModel(x);UM(b,x,_,n,i);var T=C.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Qm(l,"color")),b.setItemVisual(x,{symbolKeepAspect:C.get("symbolKeepAspect"),symbolOffset:Pt(C.get("symbolOffset",!0),m[_?0:1]),symbolRotate:Pt(C.get("symbolRotate",!0),y[_?0:1]),symbolSize:Pt(C.get("symbolSize"),g[_?0:1]),symbol:Pt(C.get("symbol",!0),p[_?0:1]),style:T})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markLine",e}(oB);function P2t(t,e,n){var r;t?r=Ie(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 _a(r,n),i=new _a(r,n),o=new _a([],n),s=Ie(n.get("data"),kt(B2t,e,t,n));t&&(s=wn(s,kt($2t,t)));var l=ise(!!t,r);return a.initData(Ie(s,function(u){return u[0]}),null,l),i.initData(Ie(s,function(u){return u[1]}),null,l),o.initData(Ie(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const F2t=I2t;function z2t(t){t.registerComponentModel(V2t),t.registerComponentView(F2t),t.registerPreprocessor(function(e){aB(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var G2t=function(t){we(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 U2t=G2t;var hb=sn(),H2t=function(t,e,n,r){var a=r[0],i=r[1];if(!(!a||!i)){var o=um(t,a),s=um(t,i),l=o.coord,u=s.coord;l[0]=Nr(l[0],-1/0),l[1]=Nr(l[1],-1/0),u[0]=Nr(u[0],1/0),u[1]=Nr(u[1],1/0);var c=_C([{},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 cx(t){return!isNaN(t)&&!isFinite(t)}function uH(t,e,n,r){var a=1-t;return cx(e[a])&&cx(n[a])}function W2t(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 rh(t,"cartesian2d")?n&&r&&(uH(1,n,r)||uH(0,n,r))?!0:D2t(t,a,i):cm(t,a)||cm(t,i)}function cH(t,e,n,r,a){var i=r.coordinateSystem,o=t.getItemModel(e),s,l=tt(o.get(n[0]),a.getWidth()),u=tt(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),v=[];n[0]==="x0"?v[0]=d[0]>h[0]?f[0]:c[0]:v[0]=d[0]>h[0]?c[0]:f[0],n[1]==="y0"?v[1]=d[1]>h[1]?f[1]:c[1]:v[1]=d[1]>h[1]?c[1]:f[1],s=r.getMarkerPosition(v,n,!0)}else{var p=t.get(n[0],e),g=t.get(n[1],e),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(rh(i,"cartesian2d")){var m=i.getAxis("x"),S=i.getAxis("y"),p=t.get(n[0],e),g=t.get(n[1],e);cx(p)?s[0]=m.toGlobalCoord(m.getExtent()[n[0]==="x0"?0:1]):cx(g)&&(s[1]=S.toGlobalCoord(S.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var fH=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],K2t=function(t){we(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=Ie(fH,function(f){return cH(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=j2t(o,n,r);r.setData(f),f.each(function(d){var h=Ie(fH,function(T){return cH(f,d,T,n,i)}),v=o.getAxis("x").scale,p=o.getAxis("y").scale,g=v.getExtent(),y=p.getExtent(),m=[v.parse(f.get("x0",d)),v.parse(f.get("x1",d))],S=[p.parse(f.get("y0",d)),p.parse(f.get("y1",d))];Mi(m),Mi(S);var b=!(g[0]>m[1]||g[1]<m[0]||y[0]>S[1]||y[1]<S[0]),x=!b;f.setItemLayout(d,{points:h,allClipped:x});var _=f.getItemModel(d).getModel("itemStyle").getItemStyle(),C=Qm(l,"color");_.fill||(_.fill=C,it(_.fill)&&(_.fill=$y(_.fill,.4))),_.stroke||(_.stroke=C),f.setItemVisual(d,"style",_)}),f.diff(hb(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var v=new Za({shape:{points:h.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,h){var v=hb(c).data.getItemGraphicEl(h),p=f.getItemLayout(d);p.allClipped?v&&c.group.remove(v):(v?cn(v,{shape:{points:p.points}},r,d):v=new Za({shape:{points:p.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var h=hb(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var v=f.getItemModel(h),p=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),ca(d,Pr(v),{labelFetcher:r,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:it(p.fill)?$y(p.fill,1):"#000"}),ua(d,v),ar(d,null,null,v.get(["emphasis","disabled"])),Rt(d).dataModel=r}),hb(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},e.type="markArea",e}(oB);function j2t(t,e,n){var r,a,i=["x0","y0","x1","y1"];if(t){var o=Ie(t&&t.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return Oe(Oe({},f),{name:u,ordinalMeta:null})});a=Ie(i,function(u,c){return{name:u,type:o[c%2].type}}),r=new _a(a,n)}else a=[{name:"value",type:"float"}],r=new _a(a,n);var s=Ie(n.get("data"),kt(H2t,e,t,n));t&&(s=wn(s,kt(W2t,t)));var l=t?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return ic(h,a[d])}:function(u,c,f,d){return ic(u.value,a[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}const Y2t=K2t;function X2t(t){t.registerComponentModel(U2t),t.registerComponentView(Y2t),t.registerPreprocessor(function(e){aB(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var q2t=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Z2t=function(t){we(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.prototype.init=function(n,r,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},e.prototype._updateSelector=function(n){var r=n.selector,a=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),$e(r)&&W(r,function(i,o){it(i)&&(i={type:i}),r[o]=$t(i,q2t(a,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,a=0;a<n.length;a++){var i=n[a].get("name");if(this.isSelected(i)){this.select(i),r=!0;break}}!r&&this.select(n[0].get("name"))}},e.prototype._updateData=function(n){var r=[],a=[];n.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();n.isSeriesFiltered(l)||(a=a.concat(d)),d.length?r=r.concat(d):c=!0}else c=!0;c&&sN(l)&&r.push(l.name)}),this._availableNames=a;var i=this.get("data")||r,o=ht(),s=Ie(i,function(l){return(it(l)||on(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Mn(l,this,this.ecModel))},this);this._data=wn(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(n){var r=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;W(i,function(o){r[o.get("name")]=!1})}r[n]=!0},e.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},e.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},e.prototype.allSelect=function(){var n=this._data,r=this.option.selected;W(n,function(a){r[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;W(n,function(a){var i=a.get("name",!0);r.hasOwnProperty(i)||(r[i]=!0),r[i]=!r[i]})},e.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&zt(this._availableNames,n)>=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}(Qt);const OL=Z2t;var Vh=kt,AL=W,pb=Ct,Q2t=function(t){we(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 pb),this.group.add(this._selectorGroup=new pb),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=xr(c,f,d),v=this.layoutInner(n,o,h,i,l,u),p=xr(mt({width:v.width,height:v.height},c),f,d);this.group.x=p.x-v.x,this.group.y=p.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=joe(v,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=ht(),f=r.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),AL(r.getData(),function(h,v){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===`
- `)){var g=new pb;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(p)[0];if(!c.get(p))if(y){var m=y.getData(),S=m.getVisual("legendLineStyle")||{},b=m.getVisual("legendIcon"),x=m.getVisual("style"),_=this._createItem(y,p,v,h,r,n,S,x,b,f,i);_.on("click",Vh(dH,p,null,i,d)).on("mouseover",Vh(NL,y.name,null,i,d)).on("mouseout",Vh(VL,y.name,null,i,d)),c.set(p,!0)}else a.eachRawSeries(function(C){if(!c.get(p)&&C.legendVisualProvider){var T=C.legendVisualProvider;if(!T.containName(p))return;var D=T.indexOfName(p),M=T.getItemVisual(D,"style"),E=T.getItemVisual(D,"legendIcon"),k=Ha(M.fill);k&&k[3]===0&&(k[3]=.2,M=Oe(Oe({},M),{fill:Zo(k,"rgba")}));var R=this._createItem(C,p,v,h,r,n,{},M,E,f,i);R.on("click",Vh(dH,null,p,i,d)).on("mouseover",Vh(NL,null,p,i,d)).on("mouseout",Vh(VL,null,p,i,d)),c.set(p,!0)}},this)},this),o&&this._createSelector(o,r,i,s,l)},e.prototype._createSelector=function(n,r,a,i,o){var s=this.getSelectorGroup();AL(n,function(u){var c=u.type,f=new tn({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"]);ca(f,{normal:d,emphasis:h},{defaultText:u.title}),nc(f)})},e.prototype._createItem=function(n,r,a,i,o,s,l,u,c,f,d){var h=n.visualDrawType,v=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(r),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),S=i.get("icon");c=S||c||"roundRect";var b=J2t(c,i,l,u,h,g,d),x=new pb,_=i.getModel("textStyle");if(gt(n.getLegendIcon)&&(!S||S==="inherit"))x.add(n.getLegendIcon({itemWidth:v,itemHeight:p,icon:c,iconRotate:y,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}));else{var C=S==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;x.add(eEt({itemWidth:v,itemHeight:p,icon:c,iconRotate:C,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?v+5:-5,D=s,M=o.get("formatter"),E=r;it(M)&&M?E=M.replace("{name}",r??""):gt(M)&&(E=M(r));var k=g?_.getTextColor():i.get("inactiveColor");x.add(new tn({style:An(_,{text:E,x:T,y:p/2,fill:k,align:D,verticalAlign:"middle"},{inheritColor:k})}));var R=new nn({shape:x.getBoundingRect(),invisible:!0}),O=i.getModel("tooltip");return O.get("show")&&Fv({el:R,componentModel:o,itemName:r,itemTooltipOption:O.option}),x.add(R),x.eachChild(function(B){B.silent=!0}),R.silent=!f,this.getContentGroup().add(x),nc(x),x.__legendDataIndex=a,x},e.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Cd(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){Cd("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=n.get("selectorButtonGap",!0),p=n.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=c[g]+v:f[p]+=d[g]+v,h[1-p]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var S={x:0,y:0};return S[g]=c[g]+v+d[g],S[y]=Math.max(c[y],d[y]),S[m]=Math.min(0,d[m]+h[1-p]),S}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}(jn);function J2t(t,e,n,r,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),AL(g,function(m,S){g[S]==="inherit"&&(g[S]=y[S])})}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:dv(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 v=e.get("inactiveBorderWidth"),p=u[c];u.lineWidth=v==="auto"?r.lineWidth>0&&p?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 eEt(t){var e=t.icon||"roundRect",n=fr(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 dH(t,e,n,r){VL(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),NL(t,e,n,r)}function ose(t){for(var e=t.getZr().storage.getDisplayList(),n,r=0,a=e.length;r<a&&!(n=e[r].states.emphasis);)r++;return n&&n.hoverLayer}function NL(t,e,n,r){ose(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function VL(t,e,n,r){ose(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}const sse=Q2t;function tEt(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(n){for(var r=0;r<e.length;r++)if(!e[r].isSelected(n.name))return!1;return!0})}function Fg(t,e,n){var r={},a=t==="toggleSelected",i;return n.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](e.name):t==="allSelect"||t==="inverseSelect"?o[t]():(o[t](e.name),i=o.isSelected(e.name));var s=o.getData();W(s,function(l){var u=l.get("name");if(!(u===`
- `||u==="")){var c=o.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&c:r[u]=c}})}),t==="allSelect"||t==="inverseSelect"?{selected:r}:{name:e.name,selected:r}}function nEt(t){t.registerAction("legendToggleSelect","legendselectchanged",kt(Fg,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",kt(Fg,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",kt(Fg,"inverseSelect")),t.registerAction("legendSelect","legendselected",kt(Fg,"select")),t.registerAction("legendUnSelect","legendunselected",kt(Fg,"unSelect"))}function lse(t){t.registerComponentModel(OL),t.registerComponentView(sse),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,tEt),t.registerSubTypeDefaulter("legend",function(){return"plain"}),nEt(t)}var rEt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},e.prototype.init=function(n,r,a){var i=Uv(n);t.prototype.init.call(this,n,r,a),hH(this,n,i)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),hH(this,this.option,n)},e.type="legend.scroll",e.defaultOption=Pc(OL.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(OL);function hH(t,e,n){var r=t.getOrient(),a=[1,1];a[r.index]=0,wc(e,n,{type:"box",ignoreSize:!!a})}const aEt=rEt;var pH=Ct,HM=["width","height"],WM=["x","y"],iEt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new pH),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pH)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(n,r,a,i,o,s,l){var u=this;t.prototype.renderInner.call(this,n,r,a,i,o,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=$e(f)?f:[f,f];v("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new tn({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(p,g){var y=p+"DataIndex",m=Pv(r.get("pageIcons",!0)[r.getOrient().name][g],{onclick:st(u._pageGo,u,y,r,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});m.name=p,c.add(m)}},e.prototype.layoutInner=function(n,r,a,i,o,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=HM[u],f=WM[u],d=HM[1-u],h=WM[1-u];o&&Cd("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=wt(a);o&&(y[c]=a[c]-p[c]-v);var m=this._layoutContentAndController(n,i,y,u,c,d,h,f);if(o){if(s==="end")g[u]+=m[c]+v;else{var S=p[c]+v;g[u]-=S,m[f]-=S}m[c]+=p[c]+v,g[1-u]+=m[h]+m[d]/2-p[d]/2,m[d]=Math.max(m[d],p[d]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(n,r,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Cd(n.get("orient"),c,n.get("itemGap"),i?a.width:null,i?null:a.height),Cd("horizontal",d,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),p=this._showController=h[o]>a[o],g=[-h.x,-h.y];r||(g[i]=c[u]);var y=[0,0],m=[-v.x,-v.y],S=Pt(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(p){var b=n.get("pageButtonPosition",!0);b==="end"?m[i]+=a[o]-v[o]:y[i]+=v[o]+S}m[1-i]+=h[s]/2-v[s]/2,c.setPosition(g),f.setPosition(y),d.setPosition(m);var x={x:0,y:0};if(x[o]=p?a[o]:h[o],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+m[1-i]),f.__rectSize=a[o],p){var _={x:0,y:0};_[o]=Math.max(a[o]-v[o]-S,0),_[s]=x[s],f.setClipPath(new nn({shape:_})),f.__rectSize=_[o]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(n);return C.pageIndex!=null&&cn(c,{x:C.contentPosition[0],y:C.contentPosition[1]},p?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",it(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=HM[o],l=WM[o],u=this._findTargetItemIndex(r),c=a.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var p=b(f);v.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,S=null;g<=d;++g)S=b(c[g]),(!S&&m.e>y.s+i||S&&!x(S,y.s))&&(m.i>y.i?y=m:y=S,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),m=S;for(var g=u-1,y=p,m=p,S=null;g>=-1;--g)S=b(c[g]),(!S||!x(m,S.s))&&y.i<m.i&&(m=y,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=S;return v;function b(_){if(_){var C=_.getBoundingRect(),T=C[l]+_[l];return{s:T,e:T+C[s],i:_.__legendDataIndex}}}function x(_,C){return _.e>=C&&_.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}(sse);const oEt=iEt;function sEt(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 lEt(t){Ut(lse),t.registerComponentModel(aEt),t.registerComponentView(oEt),sEt(t)}function uEt(t){Ut(lse),Ut(lEt)}var cEt=function(t){we(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=Pc(lm.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(lm);const fEt=cEt;var sB=sn();function dEt(t,e,n){sB(t).coordSysRecordMap.each(function(r){var a=r.dataZoomInfoMap.get(e.uid);a&&(a.getRange=n)})}function hEt(t,e){for(var n=sB(t).coordSysRecordMap,r=n.keys(),a=0;a<r.length;a++){var i=r[a],o=n.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||use(n,o))}}}function use(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function pEt(t,e){var n={model:e,containsPoint:kt(gEt,e),dispatchAction:kt(vEt,t),dataZoomInfoMap:null,controller:null},r=n.controller=new o1(t.getZr());return W(["pan","zoom","scrollMove"],function(a){r.on(a,function(i){var o=[];n.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&n.dispatchAction(o)})}),n}function vEt(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function gEt(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function yEt(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return t.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[n+s]>r[n+e]&&(e=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function mEt(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=sB(n),a=r.coordSysRecordMap||(r.coordSysRecordMap=ht());a.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Hoe(i);W(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,pEt(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ht());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){use(a,i);return}var c=yEt(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Yv(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var SEt=function(t){we(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(),dEt(a,n,{pan:st(KM.pan,this),zoom:st(KM.zoom,this),scrollMove:st(KM.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){hEt(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(QV),KM={zoom:function(t,e,n,r){var a=this.range,i=a.slice(),o=t.axisModels[0];if(o){var s=jM[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(ih(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:vH(function(t,e,n,r,a,i){var o=jM[r]([i.oldX,i.oldY],[i.newX,i.newY],e,a,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:vH(function(t,e,n,r,a,i){var o=jM[r]([0,0],[i.scrollDelta,i.scrollDelta],e,a,n);return o.signal*(t[1]-t[0])*i.scrollDelta})};function vH(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(ih(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var jM={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 bEt=SEt;function cse(t){JV(t),t.registerComponentModel(fEt),t.registerComponentView(bEt),mEt(t)}var wEt=function(t){we(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=Pc(lm.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}(lm);const _Et=wEt;var zg=nn,gH=7,xEt=1,YM=30,CEt=7,Gg="horizontal",yH="vertical",TEt=5,EEt=["line","bar","candlestick","scatter"],MEt={easing:"cubicOut",duration:100,delay:0},DEt=function(t){we(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=st(this._onBrush,this),this._onBrushEnd=st(this._onBrushEnd,this)},e.prototype.render=function(n,r,a,i){if(t.prototype.render.apply(this,arguments),Yv(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(){qy(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?CEt:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===Gg?{right:s.width-o.x-o.width,top:s.height-YM-gH-i,width:o.width,height:YM}:{right:gH,top:o.y,width:YM,height:o.height},u=Uv(n.option);W(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=xr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===yH&&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===Gg&&!o?{scaleY:l?1:-1,scaleX:1}:a===Gg&&o?{scaleY:l?1:-1,scaleX:-1}:a===yH&&!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 zg({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new zg({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:st(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]],v=[0,r[0]],p=[[r[0],0],[0,0]],g=[],y=v[1]/(o.count()-1),m=0,S=Math.round(o.count()/r[0]),b;o.each([l],function(D,M){if(S>0&&M%S){m+=y;return}var E=D==null||isNaN(D)||D==="",k=E?0:bn(D,f,h,!0);E&&!b&&M?(p.push([p[p.length-1][0],0]),g.push([g[g.length-1][0],0])):!E&&b&&(p.push([m,0]),g.push([m,0])),p.push([m,k]),g.push([m,k]),m+=y,b=E}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var x=this.dataZoomModel;function _(D){var M=x.getModel(D?"selectedDataBackground":"dataBackground"),E=new Ct,k=new Za({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new ei({shape:{points:c},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return E.add(k),E.add(R),E}for(var C=0;C<3;C++){var T=_(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(EEt,u.get("type"))<0)){var c=i.getComponent(Yu(o),s).axis,f=kEt(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 zg({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new zg({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:xEt,fill:"rgba(0,0,0,0)"}})),W([0,1],function(S){var b=l.get("handleIcon");!I_[b]&&b.indexOf("path://")<0&&b.indexOf("image://")<0&&(b="path://"+b);var x=fr(b,-1,0,2,2,null,!0);x.attr({cursor:mH(this._orient),draggable:!0,drift:st(this._onDragMove,this,S),ondragend:st(this._onDragEnd,this),onmouseover:st(this._showDataInfo,this,!0),onmouseout:st(this._showDataInfo,this,!1),z2:5});var _=x.getBoundingRect(),C=l.get("handleSize");this._handleHeight=tt(C,this._size[1]),this._handleWidth=_.width/_.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(),nc(x);var T=l.get("handleColor");T!=null&&(x.style.fill=T),o.add(a[S]=x);var D=l.getModel("textStyle");n.add(i[S]=new tn({silent:!0,invisible:!0,style:An(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var h=d;if(f){var v=tt(l.get("moveHandleSize"),s[1]),p=r.moveHandle=new nn({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,y=r.moveHandleIcon=fr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(v,10));h=r.moveZone=new nn({invisible:!0,shape:{y:s[1]-m,height:v+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:mH(this._orient),drift:st(this._onDragMove,this,"all"),ondragstart:st(this._showDataInfo,this,!0),ondragend:st(this._onDragEnd,this),onmouseover:st(this._showDataInfo,this,!0),onmouseout:st(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[bn(n[0],[0,100],r,!0),bn(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];ih(r,i,o,a.get("zoomLock")?"all":n,s.minSpan!=null?bn(s.minSpan,l,o,!0):null,s.maxSpan!=null?bn(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Mi([bn(i[0],o,l,!0),bn(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=Mi(a.slice()),o=this._size;W([0,1],function(h){var v=r.handles[h],p=this._handleHeight;v.attr({scaleX:p/2,scaleY:p/2,x:a[h]+(h?-1:1),y:o[1]/2-p/2})},this),r.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new nn,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(n)},e.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=n?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Mi(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var p=rc(a.handles[v].parent,this.group),g=FC(v===0?"right":"left",p),y=this._handleWidth/2+TEt,m=Qo([d[v]+(v===0?-y:y),this._size[1]/2],p);i[v].setStyle({x:m[0],y:m[1],verticalAlign:o===Gg?"middle":g,align:o===Gg?g:"center",text:s[v]})}},e.prototype._formatLabel=function(n,r){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(o,20));return gt(i)?i(n,s):it(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(n){n=this._dragging||n;var r=this._displayables,a=r.handleLabels;a[0].attr("invisible",!n),a[1].attr("invisible",!n),r.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(n,r,a,i){this._dragging=!0,Gl(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Qo([r,a],o,!0),l=this._updateInterval(n,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(n){var r=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(a[0]<0||a[0]>r[0]||a[1]<0||a[1]>r[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(n){var r=n.offsetX,a=n.offsetY;this._brushStart=new It(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=Mi([bn(a.x,o,s,!0),bn(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&&(Gl(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 zg({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?MEt:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=Hoe(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}(QV);function kEt(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function mH(t){return t==="vertical"?"ns-resize":"ew-resize"}const REt=DEt;function fse(t){t.registerComponentModel(_Et),t.registerComponentView(REt),JV(t)}function LEt(t){Ut(cse),Ut(fse)}var OEt={get:function(t,e,n){var r=wt((AEt[t]||{})[e]);return n&&$e(r)?r[r.length-1]:r}},AEt={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 dse=OEt;var SH=oa.mapVisual,NEt=oa.eachVisual,VEt=$e,bH=W,BEt=Mi,$Et=bn,IEt=function(t){we(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&&ese(a,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(n){var r=this.stateList;n=st(n,this),this.controllerVisuals=kL(this.option.controller,r,n),this.targetVisuals=kL(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=Dn(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||["<",">"],$e(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(it(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(gt(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=BEt([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={});$t(i,a),$t(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){VEt(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,h){var v=f[d],p=f[h];v&&!p&&(p=f[h]={},bH(v,function(g,y){if(oa.isValidType(y)){var m=dse.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";bH(this.stateList,function(y){var m=this.itemSize,S=f[y];S||(S=f[y]={color:s?v:[v]}),S.symbol==null&&(S.symbol=d&&wt(d)||(s?g:[g])),S.symbolSize==null&&(S.symbolSize=h&&wt(h)||(s?m[0]:[m[0],m[0]])),S.symbol=SH(S.symbol,function(_){return _==="none"?g:_});var b=S.symbolSize;if(b!=null){var x=-1/0;NEt(b,function(_){_>x&&(x=_)}),S.symbolSize=SH(b,function(_){return $Et(_,[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}(Qt);const fx=IEt;var wH=[20,140],PEt=function(t){we(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]=wH[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=wH[1])},e.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):$e(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=Mi((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},e.prototype.getValueState=function(n){var r=this.option.range,a=this.getExtent();return(r[0]<=a[0]||r[0]<=n)&&(r[1]>=a[1]||n<=r[1])?"inRange":"outOfRange"},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=_H(this,"outOfRange",this.getExtent()),a=_H(this,"inRange",this.option.range.slice()),i=[];function o(h,v){i.push({value:h,color:n(h,v)})}for(var s=0,l=0,u=a.length,c=r.length;l<c&&(!a.length||r[l]<=a[0]);l++)r[l]<a[s]&&o(r[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&i.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var f=1;l<c;l++)(!a.length||a[a.length-1]<r[l])&&(f&&(i.length&&o(i[i.length-1].value,"outOfRange"),f=0),o(r[l],"outOfRange"));var d=i.length;return{stops:i,outerColors:[d?i[0].color:"transparent",d?i[d-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Pc(fx.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(fx);function _H(t,e,n){if(n[0]===n[1])return n.slice();for(var r=200,a=(n[1]-n[0])/r,i=n[0],o=[],s=0;s<=r&&i<n[1];s++)o.push(i),i+=a;return o.push(n[1]),o}const FEt=PEt;var zEt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r},e.prototype.render=function(n,r,a,i){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,a,i)},e.prototype.renderBackground=function(n){var r=this.visualMapModel,a=th(r.get("padding")||0),i=n.getBoundingRect();n.add(new nn({z2:-1,silent:!0,shape:{x:i.x-a[3],y:i.y-a[0],width:i.width+a[3]+a[1],height:i.height+a[0]+a[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},e.prototype.getControllerVisual=function(n,r,a){a=a||{};var i=a.forceState,o=this.visualMapModel,s={};if(r==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,v){s[h]=v}var f=o.controllerVisuals[i||o.getValueState(n)],d=oa.prepareVisualTypes(f);return W(d,function(h){var v=f[h];a.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=f.__alphaForOpacity),oa.dependsOn(h,r)&&v&&v.applyVisual(n,u,c)}),s[r]},e.prototype.positionGroup=function(n){var r=this.visualMapModel,a=this.api;KC(n,r.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})},e.prototype.doRender=function(n,r,a,i){},e.type="visualMap",e}(jn);const hse=zEt;var xH=[["left","right","width"],["top","bottom","height"]];function pse(t,e,n){var r=t.option,a=r.align;if(a!=null&&a!=="auto")return a;for(var i={width:e.getWidth(),height:e.getHeight()},o=r.orient==="horizontal"?1:0,s=xH[o],l=[0,null,10],u={},c=0;c<3;c++)u[xH[1-o][c]]=l[c],u[s[c]]=c===2?n[0]:r[s[c]];var f=[["x","width",3],["y","height",0]][o],d=xr(u,i,r.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<i[f[1]]*.5?0:1]}function ww(t,e){return W(t||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var ws=bn,GEt=W,CH=Math.min,XM=Math.max,UEt=12,HEt=6,WEt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return e.prototype.doRender=function(n,r,a,i){this._api=a,(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var a=n.get("text");this._renderEndsText(r,a,0),this._renderEndsText(r,a,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},e.prototype._renderEndsText=function(n,r,a){if(r){var i=r[1-a];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),f=this._applyTransform(a===0?"bottom":"top",u),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new tn({style:An(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:i})}))}},e.prototype._renderBar=function(n){var r=this.visualMapModel,a=this._shapes,i=r.itemSize,o=this._orient,s=this._useHandle,l=pse(r,this.api,i),u=a.mainGroup=this._createBarGroup(l),c=new Ct;u.add(c),c.add(a.outOfRange=TH()),c.add(a.inRange=TH(null,s?MH(this._orient):null,st(this._dragHandle,this,"all",!1),st(this._dragHandle,this,"all",!0))),c.setClipPath(new nn({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=XM(f.width,f.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(r,u,0,i,d,o),this._createHandle(r,u,1,i,d,o)),this._createIndicator(r,u,i,d,o),n.add(u)},e.prototype._createHandle=function(n,r,a,i,o,s){var l=st(this._dragHandle,this,a,!1),u=st(this._dragHandle,this,a,!0),c=rs(n.get("handleSize"),i[0]),f=fr(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=MH(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Gl(y.event)}}),f.x=i[0]/2,f.useStyle(n.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),id(f,!0),r.add(f);var h=this.visualMapModel.textStyleModel,v=new tn({cursor:d,draggable:!0,drift:l,onmousemove:function(y){Gl(y.event)},ondragend:u,style:An(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var p=[c,0],g=this._shapes;g.handleThumbs[a]=f,g.handleLabelPoints[a]=p,g.handleLabels[a]=v},e.prototype._createIndicator=function(n,r,a,i,o){var s=rs(n.get("indicatorSize"),a[0]),l=fr(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=n.getModel("indicatorStyle").getItemStyle();if(l instanceof Qr){var c=l.style;l.useStyle(Oe({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);r.add(l);var f=this.visualMapModel.textStyleModel,d=new tn({silent:!0,invisible:!0,style:An(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?i/2:HEt)+a[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=d,v.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(n,r,a,i){if(this._useHandle){if(this._dragging=!r,!r){var o=this._applyTransform([a,i],this._shapes.mainGroup,!0);this._updateInterval(n,o[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():EH(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},e.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),a=n.getExtent(),i=[0,n.itemSize[1]];this._handleEnds=[ws(r[0],a,i,!0),ws(r[1],a,i,!0)]},e.prototype._updateInterval=function(n,r){r=r||0;var a=this.visualMapModel,i=this._handleEnds,o=[0,a.itemSize[1]];ih(r,i,o,n,0);var s=a.getExtent();this._dataInterval=[ws(i[0],o,s,!0),ws(i[1],o,s,!0)]},e.prototype._updateView=function(n){var r=this.visualMapModel,a=r.getExtent(),i=this._shapes,o=[0,r.itemSize[1]],s=n?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(n,r,a,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,o),l=[this.getControllerVisual(n[0],"symbolSize",o),this.getControllerVisual(n[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new $v(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(n,r){var a=100,i=[],o=(n[1]-n[0])/a;i.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<a;s++){var l=n[0]+o*s;if(l>n[1])break;i.push({color:this.getControllerVisual(l,"color",r),offset:s/a})}return i.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),i},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();GEt([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=ws(n[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var v=Qo(a.handleLabelPoints[c],rc(f,this.group));s[c].setStyle({x:v[0],y:v[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},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),v=this.getControllerVisual(n,"symbolSize"),p=ws(n,s,u,!0),g=l[0]-v/2,y={x:f.x,y:f.y};f.y=p,f.x=g;var m=Qo(c.indicatorLabelPoint,rc(f,this.group)),S=c.indicatorLabel;S.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),x=this._orient,_=x==="horizontal";S.setStyle({text:(a||"")+o.formatValueText(r),verticalAlign:_?b:"middle",align:_?"center":b});var C={x:g,y:p,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(C,D),S.animateTo(T,D)}else f.attr(C),S.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var E=0;E<M.length;E++)this._api.enterBlur(M[E])}},e.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var a=n.visualMapModel.itemSize,i=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);i[1]=CH(XM(0,i[1]),a[1]),n._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=a[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(n,r){var a=this.visualMapModel,i=a.itemSize;if(a.option.hoverLink){var o=[0,i[1]],s=a.getExtent();n=CH(XM(o[0],n),o[1]);var l=KEt(a,s,o),u=[n-l,n+l],c=ws(n,o,s,!0),f=[ws(u[0],o,s,!0),ws(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(r||EH(a))&&(h=this._hoverLinkDataIndices=a.findTargetDataIndices(f));var v=wst(d,h);this._dispatchHighDown("downplay",ww(v[0],a)),this._dispatchHighDown("highlight",ww(v[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(sd(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<r.length;a++)this._api.leaveBlur(r[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",ww(n,this.visualMapModel)),n.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(n,r,a,i){var o=rc(r,i?null:this.group);return $e(n)?Qo(n,o,a):FC(n,o,a)},e.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(hse);function TH(t,e,n,r){return new Za({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(a){Gl(a.event)},ondragend:r})}function KEt(t,e,n){var r=UEt/2,a=t.get("hoverLinkDataSize");return a&&(r=ws(a,e,n,!0)/2),r}function EH(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function MH(t){return t==="vertical"?"ns-resize":"ew-resize"}const jEt=WEt;var YEt={type:"selectDataRange",event:"dataRangeSelected",update:"update"},XEt=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(n){n.setSelected(t.selected)})},qEt=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",function(r){var a=t.pipelineContext;!r.isTargetSeries(t)||a&&a.large||n.push(HTt(r.stateList,r.targetVisuals,st(r.getValueState,r),r.getDataDimensionIndex(t.getData())))}),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(t)){var i=a.getVisualMeta(st(ZEt,null,t,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(n);o>=0&&(i.dimension=o,r.push(i))}}),t.getData().setVisual("visualMeta",r)}}];function ZEt(t,e,n,r){for(var a=e.targetVisuals[r],i=oa.prepareVisualTypes(a),o={color:Qm(t.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],c=a[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(n,f,d)}return o.color;function f(h){return o[h]}function d(h,v){o[h]=v}}var DH=W;function QEt(t){var e=t&&t.visualMap;$e(e)||(e=e?[e]:[]),DH(e,function(n){if(n){Bh(n,"splitList")&&!Bh(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&$e(r)&&DH(r,function(a){bt(a)&&(Bh(a,"start")&&!Bh(a,"min")&&(a.min=a.start),Bh(a,"end")&&!Bh(a,"max")&&(a.max=a.end))})}})}function Bh(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var kH=!1;function vse(t){kH||(kH=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(YEt,XEt),W(qEt,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(QEt))}function gse(t){t.registerComponentModel(FEt),t.registerComponentView(jEt),vse(t)}var JEt=function(t){we(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=[],eMt[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=wt(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Ie(this._pieceList,function(l){return l=wt(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var n=this.option,r={},a=oa.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]=dse.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=wt(n)},e.prototype.getValueState=function(n){var r=oa.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=oa.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=Pc(fx.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}(fx),eMt={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<a;s+=i,o++){var l=o===a-1?r[1]:s+i;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),bR(t),W(t,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;W(e.categories,function(n){t.push({text:this.formatValueText(n,!0),value:n})},this),RH(e,t)},pieces:function(t){var e=this.option;W(e.pieces,function(n,r){bt(n)||(n={value:n});var a={text:"",index:r};if(n.label!=null&&(a.text=n.label),n.hasOwnProperty("value")){var i=a.value=n.value;a.interval=[i,i],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=n[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=oa.retrieveVisuals(n),t.push(a)},this),RH(e,t),bR(t),W(t,function(n){var r=n.close,a=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,a)},this)}};function RH(t,e){var n=t.inverse;(t.orient==="vertical"?!n:n)&&e.reverse()}const tMt=JEt;var nMt=function(t){we(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=Nr(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),W(c.viewPieceList,function(h){var v=h.piece,p=new Ct;p.onclick=st(this._onItemClick,this,v),this._enableHoverLink(p,h.indexInModelPieceList);var g=r.getRepresentValue(v);if(this._createItemSymbol(p,g,[0,0,u[0],u[1]]),d){var y=this.visualMapModel.getValueState(g);p.add(new tn({style:{x:l==="right"?-a:u[0]+a,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}n.add(p)},this),f&&this._renderEndsText(n,f[1],u,d,l),Cd(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:ww(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return pse(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 tn({style:An(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=Ie(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(fr(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=wt(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}(hse);const rMt=nMt;function yse(t){t.registerComponentModel(tMt),t.registerComponentView(rMt),vse(t)}function aMt(t){Ut(gse),Ut(yse)}var iMt={label:{enabled:!0},decal:{show:!1}},LH=sn(),oMt={};function sMt(t,e){var n=t.getModel("aria");if(!n.get("enabled"))return;var r=wt(iMt);$t(r.label,t.getLocaleModel().get("aria"),!1),$t(n.option,r,!1),a(),i();function a(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=ht();t.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),LH(d).scope=h}}),t.eachRawSeries(function(d){if(t.isSeriesFiltered(d))return;if(gt(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var m=BR(d.ecModel,d.name,oMt,t.getSeriesCount()),S=h.getVisual("decal");h.setVisual("decal",b(S,m))}else{var v=d.getRawData(),p={},g=LH(d).scope;h.each(function(x){var _=h.getRawIndex(x);p[_]=x});var y=v.count();v.each(function(x){var _=p[x],C=v.getName(x)||x+"",T=BR(d.ecModel,C,g,y),D=h.getItemVisual(_,"decal");h.setItemVisual(_,"decal",b(D,T))})}function b(x,_){var C=x?Oe(Oe({},_),x):_;return C.dirty=!0,C}})}}function i(){var u=t.getLocaleModel().get("aria"),c=n.getModel("label");if(c.option=mt(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,v=c.get(["series","maxCount"])||10,p=Math.min(d,v),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 S=[],b=d>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=o(b,{seriesCount:d}),t.eachSeries(function(T,D){if(D<p){var M=void 0,E=T.get("name"),k=E?"withName":"withoutName";M=d>1?c.get(["series","multiple",k]):c.get(["series","single",k]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var R=T.getData();if(R.count()>h){var O=c.get(["data","partialData"]);M+=o(O,{displayCnt:h})}else M+=c.get(["data","allData"]);for(var B=c.get(["data","separator","middle"]),$=c.get(["data","separator","end"]),V=[],F=0;F<R.count();F++)if(F<h){var L=R.getName(F),N=R.getValues(F),H=c.get(["data",L?"withName":"withoutName"]);V.push(o(H,{name:L,value:N.join(B)}))}M+=V.join(B)+$,S.push(M)}});var x=c.getModel(["series","multiple","separator"]),_=x.get("middle"),C=x.get("end");g+=S.join(_)+C,f.setAttribute("aria-label",g)}}}function o(u,c){if(!it(u))return u;var f=u;return W(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=t.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return t.getLocaleModel().get(["series","typeNames"])[u]||"自定义图"}}function lMt(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},W(["description","general","series","data"],function(n){e[n]!=null&&(e.label[n]=e[n])})}}function uMt(t){t.registerPreprocessor(lMt),t.registerVisual(t.PRIORITY.VISUAL.ARIA,sMt)}var OH={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},cMt=function(){function t(e){var n=this._condVal=it(e)?new RegExp(e):yee(e)?e:null;if(n==null){var r="";gn(r)}}return t.prototype.evaluate=function(e){var n=typeof e;return it(n)?this._condVal.test(e):on(n)?this._condVal.test(e+""):!1},t}(),fMt=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),dMt=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(!e[n].evaluate())return!1;return!0},t}(),hMt=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(e[n].evaluate())return!0;return!1},t}(),pMt=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),vMt=function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),a=e?this.valueParser(r):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?a:r))return!1;return!0},t}();function lB(t,e){if(t===!0||t===!1){var n=new fMt;return n.value=t,n}var r="";return mse(t)||gn(r),t.and?AH("and",t,e):t.or?AH("or",t,e):t.not?gMt(t,e):yMt(t,e)}function AH(t,e,n){var r=e[t],a="";$e(r)||gn(a),r.length||gn(a);var i=t==="and"?new dMt:new hMt;return i.children=Ie(r,function(o){return lB(o,n)}),i.children.length||gn(a),i}function gMt(t,e){var n=t.not,r="";mse(n)||gn(r);var a=new pMt;return a.child=lB(n,e),a.child||gn(r),a}function yMt(t,e){for(var n="",r=e.prepareGetValue(t),a=[],i=Yt(t),o=t.parser,s=o?Hne(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=lt(OH,u)?OH[u]:u,f=t[u],d=s?s(f):f,h=Nct(c,d)||c==="reg"&&new cMt(d);h||gn(n),a.push(h)}}a.length||gn(n);var v=new vMt;return v.valueGetterParam=r,v.valueParser=s,v.getValue=e.getValue,v.subCondList=a,v}function mse(t){return bt(t)&&!la(t)}var mMt=function(){function t(e,n){this._cond=lB(e,n)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function SMt(t,e){return new mMt(t,e)}var bMt={type:"echarts:filter",transform:function(t){for(var e=t.upstream,n,r=SMt(t.config,{valueGetterAttrMap:ht({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;lt(s,"dimension")||gn(l);var c=e.getDimensionInfo(u);return c||gn(l),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(n,s.dimIdx)}}),a=[],i=0,o=e.count();i<o;i++)n=e.getRawDataItem(i),r.evaluate()&&a.push(n);return{data:a}}},wMt={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",a=Dn(n);a.length||gn(r);var i=[];W(a,function(c){var f=c.dimension,d=c.order,h=c.parser,v=c.incomparable;if(f==null&&gn(r),d!=="asc"&&d!=="desc"&&gn(r),v&&v!=="min"&&v!=="max"){var p="";gn(p)}if(d!=="asc"&&d!=="desc"){var g="";gn(g)}var y=e.getDimensionInfo(f);y||gn(r);var m=h?Hne(h):null;h&&!m&&gn(r),i.push({dimIdx:y.index,parser:m,comparator:new Kne(d,v)})});var o=e.sourceFormat;o!==Ma&&o!==yo&&gn(r);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<i.length;d++){var h=i[d],v=e.retrieveValueFromItem(c,h.dimIdx),p=e.retrieveValueFromItem(f,h.dimIdx);h.parser&&(v=h.parser(v),p=h.parser(p));var g=h.comparator.evaluate(v,p);if(g!==0)return g}return 0}),{data:s}}};function _Mt(t){t.registerTransform(bMt),t.registerTransform(wMt)}var xMt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.prototype.init=function(n,r,a){t.prototype.init.call(this,n,r,a),this._sourceManager=new qne(this),Bz(this)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),Bz(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Us},e}(Qt),CMt=function(t){we(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.type="dataset",e}(jn);function TMt(t){t.registerComponentModel(xMt),t.registerComponentView(CMt)}var ms=Js.CMD;function fp(t,e){return Math.abs(t-e)<1e-5}function BL(t){var e=t.data,n=t.len(),r=[],a,i=0,o=0,s=0,l=0;function u(R,O){a&&a.length>2&&r.push(a),a=[R,O]}function c(R,O,B,$){fp(R,B)&&fp(O,$)||a.push(R,O,B,$,B,$)}function f(R,O,B,$,V,F){var L=Math.abs(O-R),N=Math.tan(L/4)*4/3,H=O<R?-1:1,K=Math.cos(R),Q=Math.sin(R),ie=Math.cos(O),be=Math.sin(O),le=K*V+B,J=Q*F+$,Z=ie*V+B,ee=be*F+$,ce=V*N*H,ue=F*N*H;a.push(le-ce*Q,J+ue*K,Z+ce*be,ee-ue*ie,Z,ee)}for(var d,h,v,p,g=0;g<n;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===ms.L||y===ms.C||y===ms.Q)&&(a=[s,l])),y){case ms.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case ms.L:d=e[g++],h=e[g++],c(i,o,d,h),i=d,o=h;break;case ms.C:a.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case ms.Q:d=e[g++],h=e[g++],v=e[g++],p=e[g++],a.push(i+2/3*(d-i),o+2/3*(h-o),v+2/3*(d-v),p+2/3*(h-p),v,p),i=v,o=p;break;case ms.A:var S=e[g++],b=e[g++],x=e[g++],_=e[g++],C=e[g++],T=e[g++]+C;g+=1;var D=!e[g++];d=Math.cos(C)*x+S,h=Math.sin(C)*_+b,m?(s=d,l=h,u(s,l)):c(i,o,d,h),i=Math.cos(T)*x+S,o=Math.sin(T)*_+b;for(var M=(D?-1:1)*Math.PI/2,E=C;D?E>T:E<T;E+=M){var k=D?Math.max(E+M,T):Math.min(E+M,T);f(E,k,S,b,x,_)}break;case ms.R:s=i=e[g++],l=o=e[g++],d=s+e[g++],h=l+e[g++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case ms.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&r.push(a),r}function $L(t,e,n,r,a,i,o,s,l,u){if(fp(t,n)&&fp(e,r)&&fp(a,o)&&fp(i,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-t,h=s-e,v=Math.sqrt(d*d+h*h);d/=v,h/=v;var p=n-t,g=r-e,y=a-o,m=i-s,S=p*p+g*g,b=y*y+m*m;if(S<f&&b<f){l.push(o,s);return}var x=d*p+h*g,_=-d*y-h*m,C=S-x*x,T=b-_*_;if(C<f&&x>=0&&T<f&&_>=0){l.push(o,s);return}var D=[],M=[];Sc(t,n,a,o,.5,D),Sc(e,r,i,s,.5,M),$L(D[0],M[0],D[1],M[1],D[2],M[2],D[3],M[3],l,u),$L(D[4],M[4],D[5],M[5],D[6],M[6],D[7],M[7],l,u)}function EMt(t,e){var n=BL(t),r=[];e=e||1;for(var a=0;a<n.length;a++){var i=n[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],d=i[u++],h=i[u++],v=i[u++],p=i[u++];$L(s,l,c,f,d,h,v,p,o,e),s=v,l=p}r.push(o)}return r}function Sse(t,e,n){var r=t[e],a=t[1-e],i=Math.abs(r/a),o=Math.ceil(Math.sqrt(i*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=n-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function NH(t,e,n){for(var r=t.r0,a=t.r,i=t.startAngle,o=t.endAngle,s=Math.abs(o-i),l=s*a,u=a-r,c=l>Math.abs(u),f=Sse([l,u],c?0:1,e),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var v=(c?u:s)/f[h],p=0;p<f[h];p++){var g={};c?(g.startAngle=i+d*h,g.endAngle=i+d*(h+1),g.r0=r+v*p,g.r=r+v*(p+1)):(g.startAngle=i+v*p,g.endAngle=i+v*(p+1),g.r0=r+d*h,g.r=r+d*(h+1)),g.clockwise=t.clockwise,g.cx=t.cx,g.cy=t.cy,n.push(g)}}function MMt(t,e,n){for(var r=t.width,a=t.height,i=r>a,o=Sse([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;d<o.length;d++)for(var h=t[l]/o[d],v=0;v<o[d];v++){var p={};p[u]=d*f,p[c]=v*h,p[s]=f,p[l]=h,p.x+=t.x,p.y+=t.y,n.push(p)}}function VH(t,e,n,r){return t*r-n*e}function DMt(t,e,n,r,a,i,o,s){var l=n-t,u=r-e,c=o-a,f=s-i,d=VH(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=t-a,v=e-i,p=VH(h,v,c,f)/d;return p<0||p>1?null:new It(p*l+t,p*u+e)}function kMt(t,e,n){var r=new It;It.sub(r,n,e),r.normalize();var a=new It;It.sub(a,t,e);var i=a.dot(r);return i}function $h(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function RMt(t,e,n){for(var r=t.length,a=[],i=0;i<r;i++){var o=t[i],s=t[(i+1)%r],l=DMt(o[0],o[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&a.push({projPt:kMt(l,e,n),pt:l,idx:i})}if(a.length<2)return[{points:t},{points:t}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],v=[d],p=[h],i=u.idx+1;i<=c.idx;i++)$h(v,t[i].slice());$h(v,h),$h(v,d);for(var i=c.idx+1;i<=u.idx+r;i++)$h(p,t[i%r].slice());return $h(p,d),$h(p,h),[{points:v},{points:p}]}function BH(t){var e=t.points,n=[],r=[];AC(e,n,r);var a=new Ft(n[0],n[1],r[0]-n[0],r[1]-n[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new It,c=new It;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),RMt(e,u,c)}function dx(t,e,n,r){if(n===1)r.push(e);else{var a=Math.floor(n/2),i=t(e);dx(t,i[0],a,r),dx(t,i[1],n-a,r)}return r}function LMt(t,e){for(var n=[],r=0;r<e;r++)n.push(gN(t));return n}function OMt(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function AMt(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function NMt(t,e){var n=[],r=t.shape,a;switch(t.type){case"rect":MMt(r,e,n),a=nn;break;case"sector":NH(r,e,n),a=qa;break;case"circle":NH({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,n),a=qa;break;default:var i=t.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=Ie(EMt(t.getUpdatedPathProxy(),o),function(y){return AMt(y)}),l=s.length;if(l===0)dx(BH,{points:s[0]},e,n);else if(l===e)for(var u=0;u<l;u++)n.push({points:s[u]});else{var c=0,f=Ie(s,function(y){var m=[],S=[];AC(y,m,S);var b=(S[1]-m[1])*(S[0]-m[0]);return c+=b,{poly:y,area:b}});f.sort(function(y,m){return m.area-y.area});for(var d=e,u=0;u<l;u++){var h=f[u];if(d<=0)break;var v=u===l-1?d:Math.ceil(h.area/c*e);v<0||(dx(BH,{points:h.poly},v,n),d-=v)}}a=Za;break}if(!a)return LMt(t,e);for(var p=[],u=0;u<n.length;u++){var g=new a;g.setShape(n[u]),OMt(t,g),p.push(g)}return p}function VMt(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var a=[],i=[],o=n<r?t:e,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var v=o[h-2],p=o[h-1],g=o[h++],y=o[h++],m=o[h++],S=o[h++],b=o[h++],x=o[h++];if(d<=0){f.push(g,y,m,S,b,x);continue}for(var _=Math.min(d,c-1)+1,C=1;C<=_;C++){var T=C/_;Sc(v,g,m,b,T,a),Sc(p,y,S,x,T,i),v=a[3],p=i[3],f.push(a[1],i[1],a[2],i[2],v,p),g=a[5],y=i[5],m=a[6],S=i[6]}d-=_-1}return o===t?[f,e]:[t,f]}function $H(t,e){for(var n=t.length,r=t[n-2],a=t[n-1],i=[],o=0;o<e.length;)i[o++]=r,i[o++]=a;return i}function BMt(t,e){for(var n,r,a,i=[],o=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,f=void 0;l?u?(n=VMt(l,u),c=n[0],f=n[1],r=c,a=f):(f=$H(a||l,l),c=l):(c=$H(r||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function IH(t){for(var e=0,n=0,r=0,a=t.length,i=0,o=a-2;i<a;o=i,i+=2){var s=t[o],l=t[o+1],u=t[i],c=t[i+1],f=s*c-u*l;e+=f,n+=(s+u)*f,r+=(l+c)*f}return e===0?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function $Mt(t,e,n,r){for(var a=(t.length-2)/6,i=1/0,o=0,s=t.length,l=s-2,u=0;u<a;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var h=d===0?c:(c+d-2)%l+2,v=t[h]-n[0],p=t[h+1]-n[1],g=e[d]-r[0],y=e[d+1]-r[1],m=g-v,S=y-p;f+=m*m+S*S}f<i&&(i=f,o=u)}return o}function IMt(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function PMt(t,e,n,r){for(var a=[],i,o=0;o<t.length;o++){var s=t[o],l=e[o],u=IH(s),c=IH(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],d=[],h=0,v=1/0,p=[],g=s.length;i&&(s=IMt(s));for(var y=$Mt(s,l,u,c)*6,m=g-2,S=0;S<m;S+=2){var b=(y+S)%m+2;f[S+2]=s[b]-u[0],f[S+3]=s[b+1]-u[1]}if(f[0]=s[y]-u[0],f[1]=s[y+1]-u[1],n>0)for(var x=r/n,_=-r/2;_<=r/2;_+=x){for(var C=Math.sin(_),T=Math.cos(_),D=0,S=0;S<s.length;S+=2){var M=f[S],E=f[S+1],k=l[S]-c[0],R=l[S+1]-c[1],O=k*T-R*C,B=k*C+R*T;p[S]=O,p[S+1]=B;var $=O-M,V=B-E;D+=$*$+V*V}if(D<v){v=D,h=_;for(var F=0;F<p.length;F++)d[F]=p[F]}}else for(var L=0;L<g;L+=2)d[L]=l[L]-c[0],d[L+1]=l[L+1]-c[1];a.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return a}function hx(t){return t.__isCombineMorphing}var bse="__mOriginal_";function px(t,e,n){var r=bse+e,a=t[r]||t[e];t[r]||(t[r]=t[e]);var i=n.replace,o=n.after,s=n.before;t[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function H0(t,e){var n=bse+e;t[n]&&(t[e]=t[n],t[n]=null)}function PH(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;){var i=r[a],o=r[a+1];r[a++]=e[0]*i+e[2]*o+e[4],r[a++]=e[1]*i+e[3]*o+e[5]}}function wse(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),a=BMt(BL(n),BL(r)),i=a[0],o=a[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&PH(i,s),l&&PH(o,l),px(e,"updateTransform",{replace:u}),e.transform=null;var c=PMt(i,o,10,Math.PI),f=[];px(e,"buildPath",{replace:function(d){for(var h=e.__morphT,v=1-h,p=[],g=0;g<c.length;g++){var y=c[g],m=y.from,S=y.to,b=y.rotation*h,x=y.fromCp,_=y.toCp,C=Math.sin(b),T=Math.cos(b);R0(p,x,_,h);for(var D=0;D<m.length;D+=2){var M=m[D],E=m[D+1],k=S[D],R=S[D+1],O=M*v+k*h,B=E*v+R*h;f[D]=O*T-B*C+p[0],f[D+1]=O*C+B*T+p[1]}var $=f[0],V=f[1];d.moveTo($,V);for(var D=2;D<m.length;){var k=f[D++],R=f[D++],F=f[D++],L=f[D++],N=f[D++],H=f[D++];$===k&&V===R&&F===N&&L===H?d.lineTo(N,H):d.bezierCurveTo(k,R,F,L,N,H),$=N,V=H}}}})}function uB(t,e,n){if(!t||!e)return e;var r=n.done,a=n.during;wse(t,e),e.__morphT=0;function i(){H0(e,"buildPath"),H0(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},mt({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),r&&r()}},n)),e}function FMt(t,e,n,r,a,i){var o=16;t=a===n?0:Math.round(32767*(t-n)/(a-n)),e=i===r?0:Math.round(32767*(e-r)/(i-r));for(var s=0,l,u=(1<<o)/2;u>0;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 vx(t){var e=1/0,n=1/0,r=-1/0,a=-1/0,i=Ie(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=Ie(i,function(s,l){return{cp:s,z:FMt(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 _se(t){return NMt(t.path,t.count)}function IL(){return{fromIndividuals:[],toIndividuals:[],count:0}}function zMt(t,e,n){var r=[];function a(x){for(var _=0;_<x.length;_++){var C=x[_];hx(C)?a(C.childrenRef()):C instanceof Wt&&r.push(C)}}a(t);var i=r.length;if(!i)return IL();var o=n.dividePath||_se,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),IL();r=vx(r),s=vx(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new Dl,d=0;d<i;d++){var h=r[d],v=s[d];v.parent=e,v.copyTransform(f),c||wse(h,v)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(x){for(var _=0;_<s.length;_++)s[_].addSelfToZr(x)}px(e,"addSelfToZr",{after:function(x){p(x)}}),px(e,"removeSelfFromZr",{after:function(x){for(var _=0;_<s.length;_++)s[_].removeSelfFromZr(x)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,H0(e,"addSelfToZr"),H0(e,"removeSelfFromZr")}var y=s.length;if(c)for(var m=y,S=function(){m--,m===0&&(g(),l&&l())},d=0;d<y;d++){var b=c?mt({delay:(n.delay||0)+c(d,y,r[d],s[d]),done:S},n):n;uB(r[d],s[d],b)}else e.__morphT=0,e.animateTo({__morphT:1},mt({during:function(x){for(var _=0;_<y;_++){var C=s[_];C.__morphT=e.__morphT,C.dirtyShape()}u&&u(x)},done:function(){g();for(var x=0;x<t.length;x++)H0(t[x],"updateTransform");l&&l()}},n));return e.__zr&&p(e.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function GMt(t,e,n){var r=e.length,a=[],i=n.dividePath||_se;function o(h){for(var v=0;v<h.length;v++){var p=h[v];hx(p)?o(p.childrenRef()):p instanceof Wt&&a.push(p)}}if(hx(t)){o(t.childrenRef());var s=a.length;if(s<r)for(var l=0,u=s;u<r;u++)a.push(gN(a[l++%s]));a.length=r}else{a=i({path:t,count:r});for(var c=t.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),IL()}a=vx(a),e=vx(e);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?mt({delay:(n.delay||0)+f(u,r,a[u],e[u])},n):n;uB(a[u],e[u],d)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function FH(t){return $e(t[0])}function zH(t,e){for(var n=[],r=t.length,a=0;a<r;a++)n.push({one:t[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)n[o%r].many.push(e[a][o])}for(var s=0,a=r-1;a>=0;a--)if(!n[a].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var i=l.length,u=Math.ceil(i/2);n[a].many=l.slice(u,i),n[s].many=l.slice(0,u),s++}return n}var UMt={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var a=gN(t.path);a.setStyle("opacity",n),e.push(a)}return e},split:null};function qM(t,e,n,r,a,i){if(!t.length||!e.length)return;var o=Iv("update",r,a);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;FH(t)&&(u=t,c=e),FH(e)&&(u=e,c=t);function f(y,m,S,b,x){var _=y.many,C=y.one;if(_.length===1&&!x){var T=m?_[0]:C,D=m?C:_[0];if(hx(T))f({many:[T],one:D},!0,S,b,!0);else{var M=s?mt({delay:s(S,b)},l):l;uB(T,D,M),i(T,D,T,D,M)}}else for(var E=mt({dividePath:UMt[n],individualDelay:s&&function(V,F,L,N){return s(V+S,b)}},l),k=m?zMt(_,C,E):GMt(C,_,E),R=k.fromIndividuals,O=k.toIndividuals,B=R.length,$=0;$<B;$++){var M=s?mt({delay:s($,B)},l):l;i(R[$],O[$],m?_[$]:y.one,m?y.one:_[$],M)}}for(var d=u?u===t:t.length>e.length,h=u?zH(c,u):zH(d?e:t,[d?t:e]),v=0,p=0;p<h.length;p++)v+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)f(h[p],d,g,v),g+=h[p].many.length}function Bf(t){if(!t)return[];if($e(t)){for(var e=[],n=0;n<t.length;n++)e.push(Bf(t[n]));return e}var r=[];return t.traverse(function(a){a instanceof Wt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var xse=1e4,HMt=sn();function WMt(t){for(var e=t.dimensions,n=0;n<e.length;n++){var r=t.getDimensionInfo(e[n]);if(r&&r.otherDims.itemGroupId===0)return e[n]}}function GH(t){var e=[];return W(t,function(n){var r=n.data;if(!(r.count()>xse))for(var a=r.getIndices(),i=WMt(r),o=0;o<a.length;o++)e.push({dataGroupId:n.dataGroupId,data:r,dim:n.dim||i,divide:n.divide,dataIndex:o})}),e}function ZM(t,e,n){t.traverse(function(r){r instanceof Wt&&Un(r,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function QM(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Ih(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function KMt(t,e,n){var r=Iv("update",n,e);r&&t.traverse(function(a){if(a instanceof ho){var i=put(a);i&&a.animateFrom({style:i},r)}})}function jMt(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var a=t[r],i=e[r];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Cse(t,e,n){var r=GH(t),a=GH(e);function i(y,m,S,b,x){(S||y)&&m.animateFrom({style:S&&S!==y?Oe(Oe({},S.style),y.style):y.style},x)}function o(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=o(r),l=o(a),u=!1;function c(y,m){return function(S){var b=S.data,x=S.dataIndex;if(m)return b.getId(x);var _=S.dataGroupId,C=y?s||l:l||s,T=C&&b.getDimensionInfo(C),D=T&&T.ordinalMeta;if(T){var M=b.get(T.name,x);return D&&D.categories[M]||M+""}var E=b.getRawDataItem(x);return E&&E.groupId?E.groupId+"":_||b.getId(x)}}var f=jMt(r,a),d={};if(!f)for(var h=0;h<a.length;h++){var v=a[h],p=v.data.getItemGraphicEl(v.dataIndex);p&&(d[p.id]=!0)}function g(y,m){var S=r[m],b=a[y],x=b.data.hostModel,_=S.data.getItemGraphicEl(S.dataIndex),C=b.data.getItemGraphicEl(b.dataIndex);if(_===C){C&&KMt(C,b.dataIndex,x);return}_&&d[_.id]||C&&(Ih(C),_?(Ih(_),QM(_),u=!0,qM(Bf(_),Bf(C),b.divide,x,y,i)):ZM(C,x,y))}new Wl(r,a,c(!0,f),c(!1,f),null,"multiple").update(g).updateManyToOne(function(y,m){var S=a[y],b=S.data,x=b.hostModel,_=b.getItemGraphicEl(S.dataIndex),C=wn(Ie(m,function(T){return r[T].data.getItemGraphicEl(r[T].dataIndex)}),function(T){return T&&T!==_&&!d[T.id]});_&&(Ih(_),C.length?(W(C,function(T){Ih(T),QM(T)}),u=!0,qM(Bf(C),Bf(_),S.divide,x,y,i)):ZM(_,x,S.dataIndex))}).updateOneToMany(function(y,m){var S=r[m],b=S.data.getItemGraphicEl(S.dataIndex);if(!(b&&d[b.id])){var x=wn(Ie(y,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==b}),_=a[y[0]].data.hostModel;x.length&&(W(x,function(C){return Ih(C)}),b?(Ih(b),QM(b),u=!0,qM(Bf(b),Bf(x),S.divide,_,y[0],i)):W(x,function(C){return ZM(C,_,y[0])}))}}).updateManyToMany(function(y,m){new Wl(m,y,function(S){return r[S].data.getId(r[S].dataIndex)},function(S){return a[S].data.getId(a[S].dataIndex)}).update(function(S,b){g(y[S],m[b])}).execute()}).execute(),u&&W(e,function(y){var m=y.data,S=m.hostModel,b=S&&n.getViewOfSeriesModel(S),x=Iv("update",S,0);b&&S.isAnimationEnabled()&&x&&x.duration>0&&b.group.traverse(function(_){_ instanceof Wt&&!_.animators.length&&_.animateFrom({style:{opacity:0}},x)})})}function UH(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function HH(t){return $e(t)?t.sort().join(","):t}function Nu(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function YMt(t,e){var n=ht(),r=ht(),a=ht();return W(t.oldSeries,function(i,o){var s=t.oldDataGroupIds[o],l=t.oldData[o],u=UH(i),c=HH(u);r.set(c,{dataGroupId:s,data:l}),$e(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=UH(i),u=HH(l),c=r.get(u);if(c)n.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:Nu(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:Nu(s),data:s}]});else if($e(l)){var f=[];W(l,function(v){var p=r.get(v);p.data&&f.push({dataGroupId:p.dataGroupId,divide:Nu(p.data),data:p.data})}),f.length&&n.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:Nu(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:Nu(d.data)}],newSeries:[]},n.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:Nu(s)})}}}}),n}function WH(t,e){for(var n=0;n<t.length;n++){var r=e.seriesIndex!=null&&e.seriesIndex===t[n].seriesIndex||e.seriesId!=null&&e.seriesId===t[n].id;if(r)return n}}function XMt(t,e,n,r){var a=[],i=[];W(Dn(t.from),function(o){var s=WH(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Nu(e.oldData[s]),dim:o.dimension})}),W(Dn(t.to),function(o){var s=WH(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Nu(l),dim:o.dimension})}}),a.length>0&&i.length>0&&Cse(a,i,r)}function qMt(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){W(Dn(r.seriesTransition),function(a){W(Dn(a.to),function(i){for(var o=r.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][vw]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,n,r){var a=HMt(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var i=r.seriesTransition;if(i)W(Dn(i),function(h){XMt(h,a,r,n)});else{var o=YMt(a,r);W(o.keys(),function(h){var v=o.get(h);Cse(v.oldSeries,v.newSeries,n)})}W(r.updatedSeries,function(h){h[vw]&&(h[vw]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<xse&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}Ut([hvt]);Ut([ovt]);Ut([$vt,tgt,pgt,t0t,m0t,dyt,Uyt,kmt,r1t,d1t,x1t,MSt,ebt,hbt,Abt,Fbt,awt,pwt,Mwt,Vwt,Ywt,A_t]);Ut(nxt);Ut(Bxt);Ut(Sie);Ut(Jxt);Ut(ioe);Ut(oCt);Ut(vCt);Ut(gTt);Ut(PTt);Ut(l1);Ut(i2t);Ut(l2t);Ut(x2t);Ut(A2t);Ut(z2t);Ut(X2t);Ut(uEt);Ut(LEt);Ut(cse);Ut(fse);Ut(aMt);Ut(gse);Ut(yse);Ut(uMt);Ut(_Mt);Ut(TMt);Ut(qMt);Ut(Ept);const ZMt=Object.freeze(Object.defineProperty({__proto__:null,Axis:mo,ChartView:kn,ComponentModel:Qt,ComponentView:jn,List:_a,Model:Mn,PRIORITY:Tre,SeriesModel:In,color:wot,connect:Ddt,dataTool:Vdt,dependencies:cdt,disConnect:kdt,disconnect:Are,dispose:Rdt,env:an,extendChartView:dpt,extendComponentModel:upt,extendComponentView:cpt,extendSeriesModel:fpt,format:Zht,getCoordinateSystemDimensions:Odt,getInstanceByDom:YN,getInstanceById:Ldt,getMap:Ndt,graphic:qht,helper:Ght,init:Mdt,innerDrawElementOnCanvas:HN,matrix:jit,number:Yht,parseGeoJSON:ZR,parseGeoJson:ZR,registerAction:cs,registerCoordinateSystem:Bre,registerLayout:$re,registerLoading:JN,registerLocale:CN,registerMap:Ire,registerPostInit:Nre,registerPostUpdate:Vre,registerPreprocessor:qN,registerProcessor:ZN,registerTheme:XN,registerTransform:Pre,registerUpdateLifecycle:QC,registerVisual:Fc,setCanvasCreator:Adt,setPlatformAPI:dee,throttle:qC,time:Xht,use:Ut,util:Qht,vector:Lit,version:udt,zrUtil:Cit,zrender:ost},Symbol.toStringTag,{value:"Module"})),u1=n7(eat);u1.use(sit);u1.use(Jh);u1.use(aze);u1.config.globalProperties.$echarts=ZMt;u1.mount("#app");export{eit as R,Om as _,pm as a,P as b,X as c,St as d,Pe as e,U as f,Lo as g,dt as h,ait as i,I as o,hm as p,G as r,w as u,q as w};
|